./builtin.h:112:28: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
int is_builtin(const char *s);
                           ^
builtin/check-ref-format.c:24:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        char ch;
        ^
./builtin.h:189:5: warning: function 'cmd_mktree' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int cmd_mktree(int argc, const char **argv, const char *prefix);
    ^
builtin/mktree.c:150:5: note: the definition seen here
int cmd_mktree(int ac, const char **av, const char *prefix)
    ^
/datasets/git/./builtin.h:189:5: note: differing parameters are named here: ('argc', 'argv'), in definition: ('ac', 'av')
int cmd_mktree(int argc, const char **argv, const char *prefix);
    ^              ~~~~               ~~~~
                   ac                 av
/datasets/git/./builtin.h:221:5: warning: function 'cmd_show_branch' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int cmd_show_branch(int argc, const char **argv, const char *prefix);
    ^
builtin/show-branch.c:622:5: note: the definition seen here
int cmd_show_branch(int ac, const char **av, const char *prefix)
    ^
/datasets/git/./builtin.h:221:5: note: differing parameters are named here: ('argc', 'argv'), in definition: ('ac', 'av')
int cmd_show_branch(int argc, const char **argv, const char *prefix);
    ^                   ~~~~               ~~~~
                        ac                 av
/datasets/git/./builtin.h:244:5: warning: function 'cmd_worktree' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int cmd_worktree(int argc, const char **argv, const char *prefix);
    ^
builtin/worktree.c:1173:5: note: the definition seen here
int cmd_worktree(int ac, const char **av, const char *prefix)
    ^
/datasets/git/./builtin.h:244:5: note: differing parameters are named here: ('argc', 'argv'), in definition: ('ac', 'av')
int cmd_worktree(int argc, const char **argv, const char *prefix);
    ^                ~~~~               ~~~~
                     ac                 av
./cache.h:635:7: warning: function 'prefix_filename' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
char *prefix_filename(const char *prefix, const char *path);
      ^
abspath.c:265:7: note: the definition seen here
char *prefix_filename(const char *pfx, const char *arg)
      ^
/datasets/git/./cache.h:635:7: note: differing parameters are named here: ('prefix', 'path'), in definition: ('pfx', 'arg')
char *prefix_filename(const char *prefix, const char *path);
      ^                           ~~~~~~              ~~~~
                                  pfx                 arg
/datasets/git/./cache.h:787:21: warning: function 'index_file_exists' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
struct cache_entry *index_file_exists(struct index_state *istate, const char *name, int namelen, int igncase);
                    ^
name-hash.c:716:21: note: the definition seen here
struct cache_entry *index_file_exists(struct index_state *istate, const char *name, int namelen, int icase)
                    ^
/datasets/git/./cache.h:787:21: note: differing parameters are named here: ('igncase'), in definition: ('icase')
struct cache_entry *index_file_exists(struct index_state *istate, const char *name, int namelen, int igncase);
                    ^                                                                                ~~~~~~~
                                                                                                     icase
/datasets/git/./cache.h:848:6: warning: function 'rename_index_entry_at' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
void rename_index_entry_at(struct index_state *, int pos, const char *new_name);
     ^
read-cache.c:135:6: note: the definition seen here
void rename_index_entry_at(struct index_state *istate, int nr, const char *new_name)
     ^
/datasets/git/./cache.h:848:6: note: differing parameters are named here: ('pos'), in definition: ('nr')
void rename_index_entry_at(struct index_state *, int pos, const char *new_name);
     ^                                               ~~~
                                                     nr
/datasets/git/./cache.h:1358:33: warning: function 'unpack_loose_header' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
enum unpack_loose_header_result unpack_loose_header(git_zstream *stream,
                                ^
object-file.c:1253:33: note: the definition seen here
enum unpack_loose_header_result unpack_loose_header(git_zstream *stream,
                                ^
/datasets/git/./cache.h:1358:33: note: differing parameters are named here: ('hdrbuf'), in definition: ('header')
enum unpack_loose_header_result unpack_loose_header(git_zstream *stream,
                                ^
/datasets/git/./cache.h:1383:5: warning: function 'check_object_signature' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int check_object_signature(struct repository *r, const struct object_id *oid,
    ^
object-file.c:1075:5: note: the definition seen here
int check_object_signature(struct repository *r, const struct object_id *oid,
    ^
/datasets/git/./cache.h:1383:5: note: differing parameters are named here: ('map'), in definition: ('buf')
int check_object_signature(struct repository *r, const struct object_id *oid,
    ^
/datasets/git/./cache.h:1471:5: warning: function 'repo_get_oid' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int repo_get_oid(struct repository *r, const char *str, struct object_id *oid);
    ^
object-name.c:1702:5: note: the definition seen here
int repo_get_oid(struct repository *r, const char *name, struct object_id *oid)
    ^
/datasets/git/./cache.h:1471:5: note: differing parameters are named here: ('str'), in definition: ('name')
int repo_get_oid(struct repository *r, const char *str, struct object_id *oid);
    ^                                              ~~~
                                                   name
/datasets/git/./cache.h:1474:5: warning: function 'repo_get_oid_commit' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int repo_get_oid_commit(struct repository *r, const char *str, struct object_id *oid);
    ^
object-name.c:1756:5: note: the definition seen here
int repo_get_oid_commit(struct repository *r,
    ^
/datasets/git/./cache.h:1474:5: note: differing parameters are named here: ('str'), in definition: ('name')
int repo_get_oid_commit(struct repository *r, const char *str, struct object_id *oid);
    ^                                                     ~~~
                                                          name
/datasets/git/./cache.h:1475:5: warning: function 'repo_get_oid_committish' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int repo_get_oid_committish(struct repository *r, const char *str, struct object_id *oid);
    ^
object-name.c:1738:5: note: the definition seen here
int repo_get_oid_committish(struct repository *r,
    ^
/datasets/git/./cache.h:1475:5: note: differing parameters are named here: ('str'), in definition: ('name')
int repo_get_oid_committish(struct repository *r, const char *str, struct object_id *oid);
    ^                                                         ~~~
                                                              name
/datasets/git/./cache.h:1476:5: warning: function 'repo_get_oid_tree' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int repo_get_oid_tree(struct repository *r, const char *str, struct object_id *oid);
    ^
object-name.c:1765:5: note: the definition seen here
int repo_get_oid_tree(struct repository *r,
    ^
/datasets/git/./cache.h:1476:5: note: differing parameters are named here: ('str'), in definition: ('name')
int repo_get_oid_tree(struct repository *r, const char *str, struct object_id *oid);
    ^                                                   ~~~
                                                        name
/datasets/git/./cache.h:1477:5: warning: function 'repo_get_oid_treeish' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int repo_get_oid_treeish(struct repository *r, const char *str, struct object_id *oid);
    ^
object-name.c:1747:5: note: the definition seen here
int repo_get_oid_treeish(struct repository *r,
    ^
/datasets/git/./cache.h:1477:5: note: differing parameters are named here: ('str'), in definition: ('name')
int repo_get_oid_treeish(struct repository *r, const char *str, struct object_id *oid);
    ^                                                      ~~~
                                                           name
/datasets/git/./cache.h:1478:5: warning: function 'repo_get_oid_blob' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int repo_get_oid_blob(struct repository *r, const char *str, struct object_id *oid);
    ^
object-name.c:1774:5: note: the definition seen here
int repo_get_oid_blob(struct repository *r,
    ^
/datasets/git/./cache.h:1478:5: note: differing parameters are named here: ('str'), in definition: ('name')
int repo_get_oid_blob(struct repository *r, const char *str, struct object_id *oid);
    ^                                                   ~~~
                                                        name
/datasets/git/./cache.h:1479:5: warning: function 'repo_get_oid_mb' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int repo_get_oid_mb(struct repository *r, const char *str, struct object_id *oid);
    ^
object-name.c:1452:5: note: the definition seen here
int repo_get_oid_mb(struct repository *r,
    ^
/datasets/git/./cache.h:1479:5: note: differing parameters are named here: ('str'), in definition: ('name')
int repo_get_oid_mb(struct repository *r, const char *str, struct object_id *oid);
    ^                                                 ~~~
                                                      name
/datasets/git/./cache.h:1509:5: warning: function 'get_oid_hex' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int get_oid_hex(const char *hex, struct object_id *sha1);
    ^
hex.c:92:5: note: the definition seen here
int get_oid_hex(const char *hex, struct object_id *oid)
    ^
/datasets/git/./cache.h:1509:5: note: differing parameters are named here: ('sha1'), in definition: ('oid')
int get_oid_hex(const char *hex, struct object_id *sha1);
    ^                                              ~~~~
                                                   oid
/datasets/git/./cache.h:1535:7: warning: function 'oid_to_hex_r' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
char *oid_to_hex_r(char *out, const struct object_id *oid);
      ^
hex.c:144:7: note: the definition seen here
char *oid_to_hex_r(char *buffer, const struct object_id *oid)
      ^
/datasets/git/./cache.h:1535:7: note: differing parameters are named here: ('out'), in definition: ('buffer')
char *oid_to_hex_r(char *out, const struct object_id *oid);
      ^                  ~~~
                         buffer
/datasets/git/./cache.h:1603:5: warning: function 'repo_interpret_branch_name' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int repo_interpret_branch_name(struct repository *r,
    ^
object-name.c:1611:5: note: the definition seen here
int repo_interpret_branch_name(struct repository *r,
    ^
/datasets/git/./cache.h:1603:5: note: differing parameters are named here: ('str'), in definition: ('name')
int repo_interpret_branch_name(struct repository *r,
    ^
/datasets/git/./cache.h:1610:5: warning: function 'validate_headref' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int validate_headref(const char *ref);
    ^
path.c:661:5: note: the definition seen here
int validate_headref(const char *path)
    ^
/datasets/git/./cache.h:1610:5: note: differing parameters are named here: ('ref'), in definition: ('path')
int validate_headref(const char *ref);
    ^                            ~~~
                                 path
/datasets/git/./cache.h:1617:7: warning: function 'read_object_with_reference' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
void *read_object_with_reference(struct repository *r,
      ^
object-file.c:1740:7: note: the definition seen here
void *read_object_with_reference(struct repository *r,
      ^
/datasets/git/./cache.h:1617:7: note: differing parameters are named here: ('oid_ret'), in definition: ('actual_oid_return')
void *read_object_with_reference(struct repository *r,
      ^
/datasets/git/./cache.h:1825:5: warning: function 'decode_85' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int decode_85(char *dst, const char *line, int linelen);
    ^
base85.c:40:5: note: the definition seen here
int decode_85(char *dst, const char *buffer, int len)
    ^
/datasets/git/./cache.h:1825:5: note: differing parameters are named here: ('line'), in definition: ('buffer')
int decode_85(char *dst, const char *line, int linelen);
    ^                                ~~~~
                                     buffer
/datasets/git/./cache.h:1890:5: warning: function 'checkout_fast_forward' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int checkout_fast_forward(struct repository *r,
    ^
merge.c:47:5: note: the definition seen here
int checkout_fast_forward(struct repository *r,
    ^
/datasets/git/./cache.h:1890:5: note: differing parameters are named here: ('from', 'to'), in definition: ('head', 'remote')
int checkout_fast_forward(struct repository *r,
    ^
./commit-graph.h:27:7: warning: function 'get_commit_graph_filename' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
char *get_commit_graph_filename(struct object_directory *odb);
      ^
commit-graph.c:179:7: note: the definition seen here
char *get_commit_graph_filename(struct object_directory *obj_dir)
      ^
/datasets/git/./commit-graph.h:27:7: note: differing parameters are named here: ('odb'), in definition: ('obj_dir')
char *get_commit_graph_filename(struct object_directory *odb);
      ^                                                  ~~~
                                                         obj_dir
./commit-reach.h:12:21: warning: function 'repo_get_merge_bases' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
struct commit_list *repo_get_merge_bases(struct repository *r,
                    ^
commit-reach.c:434:21: note: the definition seen here
struct commit_list *repo_get_merge_bases(struct repository *r,
                    ^
/datasets/git/./commit-reach.h:12:21: note: differing parameters are named here: ('rev1', 'rev2'), in definition: ('one', 'two')
struct commit_list *repo_get_merge_bases(struct repository *r,
                    ^
/datasets/git/./commit-reach.h:91:5: warning: function 'can_all_from_reach' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int can_all_from_reach(struct commit_list *from, struct commit_list *to,
    ^
commit-reach.c:817:5: note: the definition seen here
int can_all_from_reach(struct commit_list *from, struct commit_list *to,
    ^
/datasets/git/./commit-reach.h:91:5: note: differing parameters are named here: ('commit_date_cutoff'), in definition: ('cutoff_by_min_date')
int can_all_from_reach(struct commit_list *from, struct commit_list *to,
    ^
./commit.h:344:5: warning: function 'parse_signed_commit' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int parse_signed_commit(const struct commit *commit,
    ^
commit.c:1079:5: note: the definition seen here
int parse_signed_commit(const struct commit *commit,
    ^
/datasets/git/./commit.h:344:5: note: differing parameters are named here: ('message'), in definition: ('payload')
int parse_signed_commit(const struct commit *commit,
    ^
/datasets/git/./commit.h:363:5: warning: function 'compare_commits_by_author_date' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int compare_commits_by_author_date(const void *a_, const void *b_, void *unused);
    ^
commit.c:775:5: note: the definition seen here
int compare_commits_by_author_date(const void *a_, const void *b_,
    ^
/datasets/git/./commit.h:363:5: note: differing parameters are named here: ('unused'), in definition: ('cb_data')
int compare_commits_by_author_date(const void *a_, const void *b_, void *unused);
    ^                                                                    ~~~~~~
                                                                         cb_data
/datasets/git/./commit.h:379:6: warning: function 'verify_merge_signature' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
void verify_merge_signature(struct commit *commit, int verbose,
     ^
commit.c:1250:6: note: the definition seen here
void verify_merge_signature(struct commit *commit, int verbosity,
     ^
/datasets/git/./commit.h:379:6: note: differing parameters are named here: ('verbose'), in definition: ('verbosity')
void verify_merge_signature(struct commit *commit, int verbose,
     ^                                                 ~~~~~~~
                                                       verbosity
./compat/../git-compat-util.h:1316:5: warning: function 'git_qsort_s' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int git_qsort_s(void *base, size_t nmemb, size_t size,
    ^
compat/qsort_s.c:48:5: note: the definition seen here
int git_qsort_s(void *b, size_t n, size_t s,
    ^
/datasets/git/./compat/../git-compat-util.h:1316:5: note: differing parameters are named here: ('compar'), in definition: ('cmp')
int git_qsort_s(void *base, size_t nmemb, size_t size,
    ^
./config.h:484:5: warning: function 'git_configset_get_value' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int git_configset_get_value(struct config_set *cs, const char *key, const char **dest);
    ^
config.c:2409:5: note: the definition seen here
int git_configset_get_value(struct config_set *cs, const char *key, const char **value)
    ^
/datasets/git/./config.h:484:5: note: differing parameters are named here: ('dest'), in definition: ('value')
int git_configset_get_value(struct config_set *cs, const char *key, const char **dest);
    ^                                                                            ~~~~
                                                                                 value
./connect.h:14:5: warning: function 'parse_feature_request' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int parse_feature_request(const char *features, const char *feature);
    ^
connect.c:615:5: note: the definition seen here
int parse_feature_request(const char *feature_list, const char *feature)
    ^
/datasets/git/./connect.h:14:5: note: differing parameters are named here: ('features'), in definition: ('feature_list')
int parse_feature_request(const char *features, const char *feature);
    ^                                 ~~~~~~~~
                                      feature_list
./date.h:46:13: warning: function 'show_date' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
const char *show_date(timestamp_t time, int timezone, const struct date_mode *mode);
            ^
date.c:283:13: note: the definition seen here
const char *show_date(timestamp_t time, int tz, const struct date_mode *mode)
            ^
/datasets/git/./date.h:46:13: note: differing parameters are named here: ('timezone'), in definition: ('tz')
const char *show_date(timestamp_t time, int timezone, const struct date_mode *mode);
            ^                               ~~~~~~~~
                                            tz
/datasets/git/./date.h:65:5: warning: function 'parse_date' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int parse_date(const char *date, struct strbuf *out);
    ^
date.c:923:5: note: the definition seen here
int parse_date(const char *date, struct strbuf *result)
    ^
/datasets/git/./date.h:65:5: note: differing parameters are named here: ('out'), in definition: ('result')
int parse_date(const char *date, struct strbuf *out);
    ^                                           ~~~
                                                result
/datasets/git/./date.h:72:5: warning: function 'date_overflows' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int date_overflows(timestamp_t date);
    ^
date.c:1363:5: note: the definition seen here
int date_overflows(timestamp_t t)
    ^
/datasets/git/./date.h:72:5: note: differing parameters are named here: ('date'), in definition: ('t')
int date_overflows(timestamp_t date);
    ^                          ~~~~
                               t
/datasets/git/./decorate.h:23:8: warning: accessing fields in struct 'decoration' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct decoration {
       ^
/datasets/git/./decorate.h:23:8: note: use "__attribute__((aligned(32)))" to align struct 'decoration' to 32 bytes
decorate.c:17:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct decoration_entry *entries = n->entries;
        ^
./delta.h:44:1: warning: function 'create_delta' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
create_delta(const struct delta_index *index,
^
diff-delta.c:318:1: note: the definition seen here
create_delta(const struct delta_index *index,
^
/datasets/git/./delta.h:44:1: note: differing parameters are named here: ('bufsize', 'max_delta_size'), in definition: ('trg_size', 'max_size')
create_delta(const struct delta_index *index,
^
./diff.h:492:6: warning: function 'show_combined_diff' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
void show_combined_diff(struct combine_diff_path *elem, int num_parent,
     ^
combine-diff.c:1286:6: note: the definition seen here
void show_combined_diff(struct combine_diff_path *p,
     ^
/datasets/git/./diff.h:492:6: note: differing parameters are named here: ('elem'), in definition: ('p')
void show_combined_diff(struct combine_diff_path *elem, int num_parent,
     ^                                            ~~~~
                                                  p
/datasets/git/./diff.h:503:6: warning: function 'diff_addremove' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
void diff_addremove(struct diff_options *,
     ^
diff.c:6921:6: note: the definition seen here
void diff_addremove(struct diff_options *options,
     ^
/datasets/git/./diff.h:503:6: note: differing parameters are named here: ('fullpath'), in definition: ('concatpath')
void diff_addremove(struct diff_options *,
     ^
/datasets/git/./diff.h:510:6: warning: function 'diff_change' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
void diff_change(struct diff_options *,
     ^
diff.c:6967:6: note: the definition seen here
void diff_change(struct diff_options *options,
     ^
/datasets/git/./diff.h:510:6: note: differing parameters are named here: ('mode1', 'mode2', 'fullpath', 'dirty_submodule1', 'dirty_submodule2'), in definition: ('old_mode', 'new_mode', 'concatpath', 'old_dirty_submodule', 'new_dirty_submodule')
void diff_change(struct diff_options *,
     ^
/datasets/git/./diff.h:622:13: warning: function 'diff_aligned_abbrev' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
const char *diff_aligned_abbrev(const struct object_id *sha1, int);
            ^
diff.c:5782:13: note: the definition seen here
const char *diff_aligned_abbrev(const struct object_id *oid, int len)
            ^
/datasets/git/./diff.h:622:13: note: differing parameters are named here: ('sha1'), in definition: ('oid')
const char *diff_aligned_abbrev(const struct object_id *sha1, int);
            ^                                           ~~~~
                                                        oid
./dir.h:365:5: warning: function 'match_pathspec' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int match_pathspec(struct index_state *istate,
    ^
dir.c:534:5: note: the definition seen here
int match_pathspec(struct index_state *istate,
    ^
/datasets/git/./dir.h:365:5: note: differing parameters are named here: ('pathspec'), in definition: ('ps')
int match_pathspec(struct index_state *istate,
    ^
/datasets/git/./dir.h:443:6: warning: function 'parse_path_pattern' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
void parse_path_pattern(const char **string, int *patternlen, unsigned *flags, int *nowildcardlen);
     ^
dir.c:620:6: note: the definition seen here
void parse_path_pattern(const char **pattern,
     ^
/datasets/git/./dir.h:443:6: note: differing parameters are named here: ('string'), in definition: ('pattern')
void parse_path_pattern(const char **string, int *patternlen, unsigned *flags, int *nowildcardlen);
     ^                               ~~~~~~
                                     pattern
/datasets/git/./dir.h:462:5: warning: function 'is_empty_dir' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int is_empty_dir(const char *dir);
    ^
dir.c:3103:5: note: the definition seen here
int is_empty_dir(const char *path)
    ^
/datasets/git/./dir.h:462:5: note: differing parameters are named here: ('dir'), in definition: ('path')
int is_empty_dir(const char *dir);
    ^                        ~~~
                             path
/datasets/git/./dir.h:515:5: warning: function 'remove_path' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int remove_path(const char *path);
    ^
dir.c:3366:5: note: the definition seen here
int remove_path(const char *name)
    ^
/datasets/git/./dir.h:515:5: note: differing parameters are named here: ('path'), in definition: ('name')
int remove_path(const char *path);
    ^                       ~~~~
                            name
/datasets/git/./dir.h:540:52: warning: Access to field 'ce_namelen' results in a dereference of a null pointer (loaded from variable 'ce') [clang-analyzer-core.NullDereference]
        return match_pathspec(istate, pathspec, ce->name, ce_namelen(ce), 0, seen,
                                                          ^
/datasets/git/./cache.h:240:24: note: expanded from macro 'ce_namelen'
#define ce_namelen(ce) ((ce)->ce_namelen)
                       ^
/datasets/git/diff-lib.c:511:6: note: Assuming 'tree' is equal to field 'df_conflict_entry'
        if (tree == o->df_conflict_entry)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff-lib.c:511:2: note: Taking true branch
        if (tree == o->df_conflict_entry)
        ^
/datasets/git/diff-lib.c:512:3: note: Null pointer value stored to 'tree'
                tree = NULL;
                ^~~~~~~~~~~
/datasets/git/diff-lib.c:515:6: note: Assuming 'idx' is null
                          idx ? idx : tree,
                          ^~~
/datasets/git/diff-lib.c:515:6: note: '?' condition is false
/datasets/git/diff-lib.c:515:6: note: Passing null pointer value via 2nd parameter 'ce'
                          idx ? idx : tree,
                          ^~~
/datasets/git/diff-lib.c:514:6: note: Calling 'ce_path_match'
        if (ce_path_match(revs->diffopt.repo->index,
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./dir.h:540:52: note: Access to field 'ce_namelen' results in a dereference of a null pointer (loaded from variable 'ce')
        return match_pathspec(istate, pathspec, ce->name, ce_namelen(ce), 0, seen,
                                                          ^
/datasets/git/./cache.h:240:24: note: expanded from macro 'ce_namelen'
#define ce_namelen(ce) ((ce)->ce_namelen)
                       ^ ~~
/datasets/git/./dir.h:619:5: warning: function 'path_match_flags' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int path_match_flags(const char *const path, const enum path_match_flags f);
    ^
dir.c:3976:5: note: the definition seen here
int path_match_flags(const char *const str, const enum path_match_flags flags)
    ^
/datasets/git/./dir.h:619:5: note: differing parameters are named here: ('path'), in definition: ('str')
int path_match_flags(const char *const path, const enum path_match_flags f);
    ^                                  ~~~~
                                       str
./ewah/ewok.h:80:5: warning: function 'ewah_serialize_to' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int ewah_serialize_to(struct ewah_bitmap *self,
    ^
ewah/ewah_io.c:23:5: note: the definition seen here
int ewah_serialize_to(struct ewah_bitmap *self,
    ^
/datasets/git/./ewah/ewok.h:80:5: note: differing parameters are named here: ('out'), in definition: ('data')
int ewah_serialize_to(struct ewah_bitmap *self,
    ^
/datasets/git/./ewah/ewok.h:180:6: warning: function 'bitmap_free' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
void bitmap_free(struct bitmap *self);
     ^
ewah/bitmap.c:219:6: note: the definition seen here
void bitmap_free(struct bitmap *bitmap)
     ^
/datasets/git/./ewah/ewok.h:180:6: note: differing parameters are named here: ('self'), in definition: ('bitmap')
void bitmap_free(struct bitmap *self);
     ^                          ~~~~
                                bitmap
./ewah/ewok_rlw.h:99:6: warning: function 'rlwit_init' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
void rlwit_init(struct rlw_iterator *it, struct ewah_bitmap *bitmap);
     ^
ewah/ewah_rlw.c:39:6: note: the definition seen here
void rlwit_init(struct rlw_iterator *it, struct ewah_bitmap *from_ewah)
     ^
/datasets/git/./ewah/ewok_rlw.h:99:6: note: differing parameters are named here: ('bitmap'), in definition: ('from_ewah')
void rlwit_init(struct rlw_iterator *it, struct ewah_bitmap *bitmap);
     ^                                                       ~~~~~~
                                                             from_ewah
./exec-cmd.h:7:6: warning: function 'git_resolve_executable_dir' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
void git_resolve_executable_dir(const char *path);
     ^
exec-cmd.c:255:6: note: the definition seen here
void git_resolve_executable_dir(const char *argv0 UNUSED)
     ^
./exec-cmd.h:7:6: note: differing parameters are named here: ('path'), in definition: ('argv0')
void git_resolve_executable_dir(const char *path);
     ^
./fsck.h:178:5: warning: function 'fsck_tag_standalone' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int fsck_tag_standalone(const struct object_id *oid, const char *buffer,
    ^
fsck.c:888:5: note: the definition seen here
int fsck_tag_standalone(const struct object_id *oid, const char *buffer,
    ^
/datasets/git/./fsck.h:178:5: note: differing parameters are named here: ('tag_type'), in definition: ('tagged_type')
int fsck_tag_standalone(const struct object_id *oid, const char *buffer,
    ^
./git-compat-util.h:611:5: warning: function 'die_message_errno' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int die_message_errno(const char *err, ...) __attribute__((format (printf, 1, 2)));
    ^
usage.c:237:5: note: the definition seen here
int die_message_errno(const char *fmt, ...)
    ^
/datasets/git/./git-compat-util.h:611:5: note: differing parameters are named here: ('err'), in definition: ('fmt')
int die_message_errno(const char *err, ...) __attribute__((format (printf, 1, 2)));
    ^                             ~~~
                                  fmt
/datasets/git/./git-compat-util.h:613:5: warning: function 'error_errno' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int error_errno(const char *err, ...) __attribute__((format (printf, 1, 2)));
    ^
usage.c:249:5: note: the definition seen here
int error_errno(const char *fmt, ...)
    ^
/datasets/git/./git-compat-util.h:613:5: note: differing parameters are named here: ('err'), in definition: ('fmt')
int error_errno(const char *err, ...) __attribute__((format (printf, 1, 2)));
    ^                       ~~~
                            fmt
/datasets/git/./git-compat-util.h:614:6: warning: function 'warning' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
void warning(const char *err, ...) __attribute__((format (printf, 1, 2)));
     ^
usage.c:281:6: note: the definition seen here
void warning(const char *warn, ...)
     ^
/datasets/git/./git-compat-util.h:614:6: note: differing parameters are named here: ('err'), in definition: ('warn')
void warning(const char *err, ...) __attribute__((format (printf, 1, 2)));
     ^                   ~~~
                         warn
/datasets/git/./git-compat-util.h:615:6: warning: function 'warning_errno' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
void warning_errno(const char *err, ...) __attribute__((format (printf, 1, 2)));
     ^
usage.c:271:6: note: the definition seen here
void warning_errno(const char *warn, ...)
     ^
/datasets/git/./git-compat-util.h:615:6: note: differing parameters are named here: ('err'), in definition: ('warn')
void warning_errno(const char *err, ...) __attribute__((format (printf, 1, 2)));
     ^                         ~~~
                               warn
/datasets/git/./git-compat-util.h:1065:5: warning: function 'xopen' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int xopen(const char *path, int flags, ...);
    ^
wrapper.c:167:5: note: the definition seen here
int xopen(const char *path, int oflag, ...)
    ^
/datasets/git/./git-compat-util.h:1065:5: note: differing parameters are named here: ('flags'), in definition: ('oflag')
int xopen(const char *path, int flags, ...);
    ^                           ~~~~~
                                oflag
/datasets/git/./git-compat-util.h:1072:5: warning: function 'xmkstemp' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int xmkstemp(char *temp_filename);
    ^
wrapper.c:418:5: note: the definition seen here
int xmkstemp(char *filename_template)
    ^
/datasets/git/./git-compat-util.h:1072:5: note: differing parameters are named here: ('temp_filename'), in definition: ('filename_template')
int xmkstemp(char *temp_filename);
    ^              ~~~~~~~~~~~~~
                   filename_template
/datasets/git/./git-compat-util.h:1073:5: warning: function 'xmkstemp_mode' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int xmkstemp_mode(char *temp_filename, int mode);
    ^
wrapper.c:508:5: note: the definition seen here
int xmkstemp_mode(char *filename_template, int mode)
    ^
/datasets/git/./git-compat-util.h:1073:5: note: differing parameters are named here: ('temp_filename'), in definition: ('filename_template')
int xmkstemp_mode(char *temp_filename, int mode);
    ^                   ~~~~~~~~~~~~~
                        filename_template
/datasets/git/./git-compat-util.h:1099:3: warning: Null pointer passed to 1st parameter expecting 'nonnull' [clang-analyzer-core.NonNullParamChecker]
                memcpy(dst, src, st_mult(size, n));
                ^
/datasets/git/pretty.c:168:6: note: Assuming 'arg' is non-null
        if (!arg) {
            ^~~~
/datasets/git/pretty.c:168:2: note: Taking false branch
        if (!arg) {
        ^
/datasets/git/pretty.c:172:6: note: Assuming the condition is false
        if (skip_prefix(arg, "format:", &arg)) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pretty.c:172:2: note: Taking false branch
        if (skip_prefix(arg, "format:", &arg)) {
        ^
/datasets/git/pretty.c:177:6: note: Assuming the condition is false
        if (!*arg || skip_prefix(arg, "tformat:", &arg) || strchr(arg, '%')) {
            ^~~~~
/datasets/git/pretty.c:177:6: note: Left side of '||' is false
/datasets/git/pretty.c:177:15: note: Value assigned to 'commit_formats'
        if (!*arg || skip_prefix(arg, "tformat:", &arg) || strchr(arg, '%')) {
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pretty.c:177:15: note: Assuming the condition is false
        if (!*arg || skip_prefix(arg, "tformat:", &arg) || strchr(arg, '%')) {
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pretty.c:177:6: note: Left side of '||' is false
        if (!*arg || skip_prefix(arg, "tformat:", &arg) || strchr(arg, '%')) {
            ^
/datasets/git/pretty.c:177:53: note: Assuming the condition is false
        if (!*arg || skip_prefix(arg, "tformat:", &arg) || strchr(arg, '%')) {
                                                           ^~~~~~~~~~~~~~~~
/datasets/git/pretty.c:177:2: note: Taking false branch
        if (!*arg || skip_prefix(arg, "tformat:", &arg) || strchr(arg, '%')) {
        ^
/datasets/git/pretty.c:182:18: note: Calling 'find_commit_format'
        commit_format = find_commit_format(arg);
                        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pretty.c:157:6: note: Assuming 'commit_formats' is null
        if (!commit_formats)
            ^~~~~~~~~~~~~~~
/datasets/git/pretty.c:157:2: note: Taking true branch
        if (!commit_formats)
        ^
/datasets/git/pretty.c:158:3: note: Calling 'setup_commit_formats'
                setup_commit_formats();
                ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pretty.c:113:2: note: Assuming 'commit_formats_len' is <= 'commit_formats_alloc'
        ALLOC_GROW(commit_formats, commit_formats_len, commit_formats_alloc);
        ^
/datasets/git/./cache.h:702:7: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                    ^~~~~~~~~~~~
/datasets/git/pretty.c:113:2: note: Taking false branch
        ALLOC_GROW(commit_formats, commit_formats_len, commit_formats_alloc);
        ^
/datasets/git/./cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/pretty.c:113:2: note: Loop condition is false.  Exiting loop
        ALLOC_GROW(commit_formats, commit_formats_len, commit_formats_alloc);
        ^
/datasets/git/./cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/pretty.c:114:2: note: Passing null pointer value via 1st parameter 'dst'
        COPY_ARRAY(commit_formats, builtin_formats,
        ^
/datasets/git/./git-compat-util.h:1094:44: note: expanded from macro 'COPY_ARRAY'
#define COPY_ARRAY(dst, src, n) copy_array((dst), (src), (n), sizeof(*(dst)) + \
                                           ^~~~~
/datasets/git/pretty.c:114:2: note: Calling 'copy_array'
        COPY_ARRAY(commit_formats, builtin_formats,
        ^
/datasets/git/./git-compat-util.h:1094:33: note: expanded from macro 'COPY_ARRAY'
#define COPY_ARRAY(dst, src, n) copy_array((dst), (src), (n), sizeof(*(dst)) + \
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1098:6: note: 'n' is 9
        if (n)
            ^
/datasets/git/./git-compat-util.h:1098:2: note: Taking true branch
        if (n)
        ^
/datasets/git/./git-compat-util.h:1099:3: note: Null pointer passed to 1st parameter expecting 'nonnull'
                memcpy(dst, src, st_mult(size, n));
                ^      ~~~
/datasets/git/./git-compat-util.h:1276:6: warning: Null pointer passed to 1st parameter expecting 'nonnull' [clang-analyzer-core.NonNullParamChecker]
        if (strchr(s, '-'))
            ^
builtin/update-index.c:890:2: note: Assuming 'unset' is 0
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:285:6: note: expanded from macro 'BUG_ON_OPT_NEG'
        if ((unset)) \
            ^~~~~~~
builtin/update-index.c:890:2: note: Taking false branch
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:285:2: note: expanded from macro 'BUG_ON_OPT_NEG'
        if ((unset)) \
        ^
builtin/update-index.c:890:2: note: Loop condition is false.  Exiting loop
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
builtin/update-index.c:891:2: note: Assuming 'arg' is null
        BUG_ON_OPT_ARG(arg);
        ^
/datasets/git/./parse-options.h:289:6: note: expanded from macro 'BUG_ON_OPT_ARG'
        if ((arg)) \
            ^~~~~
builtin/update-index.c:891:2: note: Taking false branch
        BUG_ON_OPT_ARG(arg);
        ^
/datasets/git/./parse-options.h:289:2: note: expanded from macro 'BUG_ON_OPT_ARG'
        if ((arg)) \
        ^
builtin/update-index.c:891:2: note: Loop condition is false.  Exiting loop
        BUG_ON_OPT_ARG(arg);
        ^
/datasets/git/./parse-options.h:288:29: note: expanded from macro 'BUG_ON_OPT_ARG'
#define BUG_ON_OPT_ARG(arg) do { \
                            ^
/datasets/git/builtin/update-index.c:893:7: note: Calling 'parse_new_style_cacheinfo'
        if (!parse_new_style_cacheinfo(ctx->argv[1], &mode, &oid, &path)) {
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:867:6: note: Assuming 'arg' is null
        if (!arg)
            ^~~~
/datasets/git/builtin/update-index.c:867:2: note: Taking true branch
        if (!arg)
        ^
/datasets/git/builtin/update-index.c:893:7: note: Returning from 'parse_new_style_cacheinfo'
        if (!parse_new_style_cacheinfo(ctx->argv[1], &mode, &oid, &path)) {
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:893:2: note: Taking false branch
        if (!parse_new_style_cacheinfo(ctx->argv[1], &mode, &oid, &path)) {
        ^
/datasets/git/builtin/update-index.c:900:6: note: Assuming field 'argc' is > 3
        if (ctx->argc <= 3)
            ^~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:900:2: note: Taking false branch
        if (ctx->argc <= 3)
        ^
/datasets/git/builtin/update-index.c:902:17: note: Passing null pointer value via 1st parameter 's'
        if (strtoul_ui(*++ctx->argv, 8, &mode) ||
                       ^~~~~~~~~~~~
/datasets/git/builtin/update-index.c:902:6: note: Calling 'strtoul_ui'
        if (strtoul_ui(*++ctx->argv, 8, &mode) ||
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1276:6: note: Null pointer passed to 1st parameter expecting 'nonnull'
        if (strchr(s, '-'))
            ^      ~
/datasets/git/./git-compat-util.h:1298:6: warning: function 'git_stable_qsort' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
void git_stable_qsort(void *base, size_t nmemb, size_t size,
     ^
stable-qsort.c:47:6: note: the definition seen here
void git_stable_qsort(void *b, size_t n, size_t s,
     ^
/datasets/git/./git-compat-util.h:1298:6: note: differing parameters are named here: ('compar'), in definition: ('cmp')
void git_stable_qsort(void *base, size_t nmemb, size_t size,
     ^
/datasets/git/./git-compat-util.h:1431:5: warning: function 'unlink_or_warn' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int unlink_or_warn(const char *path);
    ^
wrapper.c:634:5: note: the definition seen here
int unlink_or_warn(const char *file)
    ^
/datasets/git/./git-compat-util.h:1431:5: note: differing parameters are named here: ('path'), in definition: ('file')
int unlink_or_warn(const char *path);
    ^                          ~~~~
                               file
/datasets/git/./git-compat-util.h:1444:5: warning: function 'rmdir_or_warn' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int rmdir_or_warn(const char *path);
    ^
wrapper.c:639:5: note: the definition seen here
int rmdir_or_warn(const char *file)
    ^
/datasets/git/./git-compat-util.h:1444:5: note: differing parameters are named here: ('path'), in definition: ('file')
int rmdir_or_warn(const char *path);
    ^                         ~~~~
                              file
/datasets/git/./git-compat-util.h:1449:5: warning: function 'remove_or_warn' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int remove_or_warn(unsigned int mode, const char *path);
    ^
wrapper.c:644:5: note: the definition seen here
int remove_or_warn(unsigned int mode, const char *file)
    ^
/datasets/git/./git-compat-util.h:1449:5: note: differing parameters are named here: ('path'), in definition: ('file')
int remove_or_warn(unsigned int mode, const char *path);
    ^                                             ~~~~
                                                  file
./hash.h:249:6: warning: Branch condition evaluates to a garbage value [clang-analyzer-core.uninitialized.Branch]
        if (!oid1->algo)
            ^
/datasets/git/builtin/pull.c:990:7: note: Assuming the environment variable exists
        if (!getenv("GIT_REFLOG_ACTION"))
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pull.c:990:2: note: Taking false branch
        if (!getenv("GIT_REFLOG_ACTION"))
        ^
/datasets/git/builtin/pull.c:994:6: note: Assuming field 'gitdir' is null
        if (the_repository->gitdir) {
            ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pull.c:994:2: note: Taking false branch
        if (the_repository->gitdir) {
        ^
/datasets/git/builtin/pull.c:1001:6: note: Assuming 'recurse_submodules_cli' is equal to RECURSE_SUBMODULES_DEFAULT
        if (recurse_submodules_cli != RECURSE_SUBMODULES_DEFAULT)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pull.c:1001:2: note: Taking false branch
        if (recurse_submodules_cli != RECURSE_SUBMODULES_DEFAULT)
        ^
/datasets/git/builtin/pull.c:1004:6: note: Assuming 'cleanup_arg' is null
        if (cleanup_arg)
            ^~~~~~~~~~~
/datasets/git/builtin/pull.c:1004:2: note: Taking false branch
        if (cleanup_arg)
        ^
/datasets/git/builtin/pull.c:1013:6: note: Assuming 'opt_ff' is non-null
        if (!opt_ff) {
            ^~~~~~~
/datasets/git/builtin/pull.c:1013:2: note: Taking false branch
        if (!opt_ff) {
        ^
/datasets/git/builtin/pull.c:1030:6: note: Assuming 'opt_rebase' is >= 0
        if (opt_rebase < 0)
            ^~~~~~~~~~~~~~
/datasets/git/builtin/pull.c:1030:2: note: Taking false branch
        if (opt_rebase < 0)
        ^
/datasets/git/builtin/pull.c:1033:6: note: Assuming the condition is false
        if (repo_read_index_unmerged(the_repository))
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pull.c:1033:2: note: Taking false branch
        if (repo_read_index_unmerged(the_repository))
        ^
/datasets/git/builtin/pull.c:1036:6: note: Assuming the condition is false
        if (file_exists(git_path_merge_head(the_repository)))
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pull.c:1036:2: note: Taking false branch
        if (file_exists(git_path_merge_head(the_repository)))
        ^
/datasets/git/builtin/pull.c:1039:6: note: Assuming the condition is false
        if (get_oid("HEAD", &orig_head))
            ^
/datasets/git/./cache.h:1487:28: note: expanded from macro 'get_oid'
#define get_oid(str, oid)               repo_get_oid(the_repository, str, oid)
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pull.c:1039:2: note: Taking false branch
        if (get_oid("HEAD", &orig_head))
        ^
/datasets/git/builtin/pull.c:1042:6: note: Assuming 'opt_rebase' is 0
        if (opt_rebase) {
            ^~~~~~~~~~
/datasets/git/builtin/pull.c:1042:2: note: Taking false branch
        if (opt_rebase) {
        ^
/datasets/git/builtin/pull.c:1058:6: note: Assuming the condition is false
        if (run_fetch(repo, refspecs))
            ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pull.c:1058:2: note: Taking false branch
        if (run_fetch(repo, refspecs))
        ^
/datasets/git/builtin/pull.c:1061:6: note: Assuming 'opt_dry_run' is 0
        if (opt_dry_run)
            ^~~~~~~~~~~
/datasets/git/builtin/pull.c:1061:2: note: Taking false branch
        if (opt_dry_run)
        ^
/datasets/git/builtin/pull.c:1064:6: note: Assuming the condition is false
        if (get_oid("HEAD", &curr_head))
            ^
/datasets/git/./cache.h:1487:28: note: expanded from macro 'get_oid'
#define get_oid(str, oid)               repo_get_oid(the_repository, str, oid)
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pull.c:1064:2: note: Taking false branch
        if (get_oid("HEAD", &curr_head))
        ^
/datasets/git/builtin/pull.c:1067:31: note: Left side of '&&' is false
        if (!is_null_oid(&orig_head) && !is_null_oid(&curr_head) &&
                                     ^
/datasets/git/builtin/pull.c:1093:6: note: Assuming field 'nr' is not equal to 0
        if (!merge_heads.nr)
            ^~~~~~~~~~~~~~~
/datasets/git/builtin/pull.c:1093:2: note: Taking false branch
        if (!merge_heads.nr)
        ^
/datasets/git/builtin/pull.c:1096:2: note: Taking false branch
        if (is_null_oid(&orig_head)) {
        ^
/datasets/git/builtin/pull.c:1102:6: note: Assuming field 'nr' is > 1
        if (merge_heads.nr > 1) {
            ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pull.c:1102:2: note: Taking true branch
        if (merge_heads.nr > 1) {
        ^
/datasets/git/builtin/pull.c:1103:7: note: Assuming 'opt_rebase' is 0
                if (opt_rebase)
                    ^~~~~~~~~~
/datasets/git/builtin/pull.c:1103:3: note: Taking false branch
                if (opt_rebase)
                ^
/datasets/git/builtin/pull.c:1105:7: note: Assuming 'opt_ff' is null
                if (opt_ff && !strcmp(opt_ff, "--ff-only"))
                    ^~~~~~
/datasets/git/builtin/pull.c:1105:14: note: Left side of '&&' is false
                if (opt_ff && !strcmp(opt_ff, "--ff-only"))
                           ^
/datasets/git/builtin/pull.c:1110:15: note: 'can_ff' is 0
        divergent = !can_ff && !already_up_to_date(&orig_head, &merge_heads);
                     ^~~~~~
/datasets/git/builtin/pull.c:1110:14: note: Left side of '&&' is true
        divergent = !can_ff && !already_up_to_date(&orig_head, &merge_heads);
                    ^
/datasets/git/builtin/pull.c:1110:25: note: Assuming the condition is false
        divergent = !can_ff && !already_up_to_date(&orig_head, &merge_heads);
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pull.c:1113:6: note: Assuming 'opt_ff' is null
        if (opt_ff && !strcmp(opt_ff, "--ff-only")) {
            ^~~~~~
/datasets/git/builtin/pull.c:1113:13: note: Left side of '&&' is false
        if (opt_ff && !strcmp(opt_ff, "--ff-only")) {
                   ^
/datasets/git/builtin/pull.c:1119:7: note: 'opt_ff' is null
        if (!opt_ff && rebase_unspecified && divergent) {
             ^~~~~~
/datasets/git/builtin/pull.c:1119:6: note: Left side of '&&' is true
        if (!opt_ff && rebase_unspecified && divergent) {
            ^
/datasets/git/builtin/pull.c:1119:17: note: 'rebase_unspecified' is 0
        if (!opt_ff && rebase_unspecified && divergent) {
                       ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pull.c:1119:36: note: Left side of '&&' is false
        if (!opt_ff && rebase_unspecified && divergent) {
                                          ^
/datasets/git/builtin/pull.c:1124:6: note: Assuming 'opt_rebase' is not equal to 0
        if (opt_rebase) {
            ^~~~~~~~~~
/datasets/git/builtin/pull.c:1124:2: note: Taking true branch
        if (opt_rebase) {
        ^
/datasets/git/builtin/pull.c:1127:3: note: Calling 'get_rebase_newbase_and_upstream'
                get_rebase_newbase_and_upstream(&newbase, &upstream, &curr_head,
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pull.c:857:7: note: Calling 'get_octopus_merge_base'
        if (!get_octopus_merge_base(&oct_merge_base, curr_head, merge_head, fork_point))
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pull.c:828:7: note: Calling 'is_null_oid'
        if (!is_null_oid(fork_point))
             ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./hash.h:258:9: note: Calling 'oideq'
        return oideq(oid, null_oid());
               ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./hash.h:249:6: note: Branch condition evaluates to a garbage value
        if (!oid1->algo)
            ^~~~~~~~~~~
/datasets/git/./hash.h:268:2: warning: Null pointer passed to 2nd parameter expecting 'nonnull' [clang-analyzer-core.NonNullParamChecker]
        memcpy(dst->hash, src->hash, GIT_MAX_RAWSZ);
        ^
/datasets/git/fmt-merge-msg.c:646:6: note: Assuming 'suppress_dest_pattern_seen' is not equal to 0
        if (!suppress_dest_pattern_seen) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/fmt-merge-msg.c:646:2: note: Taking false branch
        if (!suppress_dest_pattern_seen) {
        ^
/datasets/git/fmt-merge-msg.c:656:6: note: Assuming 'current_branch' is non-null
        if (!current_branch)
            ^~~~~~~~~~~~~~~
/datasets/git/fmt-merge-msg.c:656:2: note: Taking false branch
        if (!current_branch)
        ^
/datasets/git/fmt-merge-msg.c:659:6: note: Assuming field 'into_name' is null
        if (opts->into_name)
            ^~~~~~~~~~~~~~~
/datasets/git/fmt-merge-msg.c:659:2: note: Taking false branch
        if (opts->into_name)
        ^
/datasets/git/fmt-merge-msg.c:661:11: note: Assuming the condition is false
        else if (starts_with(current_branch, "refs/heads/"))
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/fmt-merge-msg.c:661:7: note: Taking false branch
        else if (starts_with(current_branch, "refs/heads/"))
             ^
/datasets/git/fmt-merge-msg.c:664:2: note: Calling 'find_merge_parents'
        find_merge_parents(&merge_parents, in, &head_oid);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/fmt-merge-msg.c:586:9: note: Assuming 'pos' is < field 'len'
        while (pos < in->len) {
               ^~~~~~~~~~~~~
/datasets/git/fmt-merge-msg.c:586:2: note: Loop condition is true.  Entering loop body
        while (pos < in->len) {
        ^
/datasets/git/fmt-merge-msg.c:595:9: note: Assuming 'newline' is non-null
                len = newline ? newline - p : strlen(p);
                      ^~~~~~~
/datasets/git/fmt-merge-msg.c:595:9: note: '?' condition is true
/datasets/git/fmt-merge-msg.c:596:18: note: 'newline' is non-null
                pos += len + !!newline;
                               ^~~~~~~
/datasets/git/fmt-merge-msg.c:598:7: note: Assuming the condition is false
                if (parse_oid_hex(p, &oid, &q) ||
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/fmt-merge-msg.c:598:7: note: Left side of '||' is false
/datasets/git/fmt-merge-msg.c:599:7: note: Assuming the condition is false
                    q[0] != '\t' ||
                    ^~~~~~~~~~~~
/datasets/git/fmt-merge-msg.c:598:7: note: Left side of '||' is false
                if (parse_oid_hex(p, &oid, &q) ||
                    ^
/datasets/git/fmt-merge-msg.c:600:7: note: Assuming the condition is false
                    q[1] != '\t')
                    ^~~~~~~~~~~~
/datasets/git/fmt-merge-msg.c:598:3: note: Taking false branch
                if (parse_oid_hex(p, &oid, &q) ||
                ^
/datasets/git/fmt-merge-msg.c:609:7: note: Assuming 'parent' is non-null
                if (!parent)
                    ^~~~~~~
/datasets/git/fmt-merge-msg.c:609:3: note: Taking false branch
                if (!parent)
                ^
/datasets/git/fmt-merge-msg.c:586:9: note: Assuming 'pos' is < field 'len'
        while (pos < in->len) {
               ^~~~~~~~~~~~~
/datasets/git/fmt-merge-msg.c:586:2: note: Loop condition is true.  Entering loop body
        while (pos < in->len) {
        ^
/datasets/git/fmt-merge-msg.c:595:9: note: Assuming 'newline' is non-null
                len = newline ? newline - p : strlen(p);
                      ^~~~~~~
/datasets/git/fmt-merge-msg.c:595:9: note: '?' condition is true
/datasets/git/fmt-merge-msg.c:596:18: note: 'newline' is non-null
                pos += len + !!newline;
                               ^~~~~~~
/datasets/git/fmt-merge-msg.c:598:7: note: Assuming the condition is false
                if (parse_oid_hex(p, &oid, &q) ||
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/fmt-merge-msg.c:598:7: note: Left side of '||' is false
/datasets/git/fmt-merge-msg.c:599:7: note: Assuming the condition is false
                    q[0] != '\t' ||
                    ^~~~~~~~~~~~
/datasets/git/fmt-merge-msg.c:598:7: note: Left side of '||' is false
                if (parse_oid_hex(p, &oid, &q) ||
                    ^
/datasets/git/fmt-merge-msg.c:600:7: note: Assuming the condition is false
                    q[1] != '\t')
                    ^~~~~~~~~~~~
/datasets/git/fmt-merge-msg.c:598:3: note: Taking false branch
                if (parse_oid_hex(p, &oid, &q) ||
                ^
/datasets/git/fmt-merge-msg.c:609:7: note: Assuming 'parent' is non-null
                if (!parent)
                    ^~~~~~~
/datasets/git/fmt-merge-msg.c:609:3: note: Taking false branch
                if (!parent)
                ^
/datasets/git/fmt-merge-msg.c:612:3: note: Calling 'add_merge_parent'
                add_merge_parent(result, &obj->oid, &parent->object.oid);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/fmt-merge-msg.c:102:13: note: Field 'nr' is 1
        if (table->nr && find_merge_parent(table, given, commit))
                   ^
/datasets/git/fmt-merge-msg.c:102:6: note: Left side of '&&' is true
        if (table->nr && find_merge_parent(table, given, commit))
            ^
/datasets/git/fmt-merge-msg.c:102:2: note: Taking false branch
        if (table->nr && find_merge_parent(table, given, commit))
        ^
/datasets/git/fmt-merge-msg.c:104:2: note: Taking false branch
        ALLOC_GROW(table->item, table->nr + 1, table->alloc);
        ^
/datasets/git/./cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/fmt-merge-msg.c:104:2: note: Loop condition is false.  Exiting loop
        ALLOC_GROW(table->item, table->nr + 1, table->alloc);
        ^
/datasets/git/./cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/fmt-merge-msg.c:105:2: note: Calling 'oidcpy'
        oidcpy(&table->item[table->nr].given, given);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./hash.h:268:2: note: Null pointer passed to 2nd parameter expecting 'nonnull'
        memcpy(dst->hash, src->hash, GIT_MAX_RAWSZ);
        ^                 ~~~~~~~~~
/datasets/git/./hash.h:269:12: warning: Assigned value is garbage or undefined [clang-analyzer-core.uninitialized.Assign]
        dst->algo = src->algo;
                  ^
/datasets/git/builtin/index-pack.c:1739:6: note: Assuming 'argc' is not equal to 2
        if (argc == 2 && !strcmp(argv[1], "-h"))
            ^~~~~~~~~
/datasets/git/builtin/index-pack.c:1739:16: note: Left side of '&&' is false
        if (argc == 2 && !strcmp(argv[1], "-h"))
                      ^
/datasets/git/builtin/index-pack.c:1747:6: note: Assuming 'prefix' is null
        if (prefix && chdir(prefix))
            ^~~~~~
/datasets/git/builtin/index-pack.c:1747:13: note: Left side of '&&' is false
        if (prefix && chdir(prefix))
                   ^
/datasets/git/builtin/index-pack.c:1750:6: note: Assuming the condition is false
        if (git_env_bool(GIT_TEST_WRITE_REV_INDEX, 0))
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1750:2: note: Taking false branch
        if (git_env_bool(GIT_TEST_WRITE_REV_INDEX, 0))
        ^
/datasets/git/builtin/index-pack.c:1753:16: note: Assuming the condition is false
                rev_index = !!(opts.flags & (WRITE_REV_VERIFY | WRITE_REV));
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1755:14: note: Assuming 'i' is >= 'argc'
        for (i = 1; i < argc; i++) {
                    ^~~~~~~~
/datasets/git/builtin/index-pack.c:1755:2: note: Loop condition is false. Execution continues on line 1851
        for (i = 1; i < argc; i++) {
        ^
/datasets/git/builtin/index-pack.c:1851:7: note: 'pack_name' is null
        if (!pack_name && !from_stdin)
             ^~~~~~~~~
/datasets/git/builtin/index-pack.c:1851:6: note: Left side of '&&' is true
        if (!pack_name && !from_stdin)
            ^
/datasets/git/builtin/index-pack.c:1851:20: note: Assuming 'from_stdin' is not equal to 0
        if (!pack_name && !from_stdin)
                          ^~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1851:2: note: Taking false branch
        if (!pack_name && !from_stdin)
        ^
/datasets/git/builtin/index-pack.c:1853:6: note: 'fix_thin_pack' is 0
        if (fix_thin_pack && !from_stdin)
            ^~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1853:20: note: Left side of '&&' is false
        if (fix_thin_pack && !from_stdin)
                          ^
/datasets/git/builtin/index-pack.c:1855:6: note: 'from_stdin' is not equal to 0
        if (from_stdin && !startup_info->have_repository)
            ^~~~~~~~~~
/datasets/git/builtin/index-pack.c:1855:6: note: Left side of '&&' is true
/datasets/git/builtin/index-pack.c:1855:20: note: Assuming field 'have_repository' is not equal to 0
        if (from_stdin && !startup_info->have_repository)
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1855:2: note: Taking false branch
        if (from_stdin && !startup_info->have_repository)
        ^
/datasets/git/builtin/index-pack.c:1857:6: note: 'from_stdin' is not equal to 0
        if (from_stdin && hash_algo)
            ^~~~~~~~~~
/datasets/git/builtin/index-pack.c:1857:6: note: Left side of '&&' is true
/datasets/git/builtin/index-pack.c:1857:20: note: 'hash_algo' is 0
        if (from_stdin && hash_algo)
                          ^~~~~~~~~
/datasets/git/builtin/index-pack.c:1857:2: note: Taking false branch
        if (from_stdin && hash_algo)
        ^
/datasets/git/builtin/index-pack.c:1859:7: note: 'index_name' is null
        if (!index_name && pack_name)
             ^~~~~~~~~~
/datasets/git/builtin/index-pack.c:1859:6: note: Left side of '&&' is true
        if (!index_name && pack_name)
            ^
/datasets/git/builtin/index-pack.c:1859:21: note: 'pack_name' is null
        if (!index_name && pack_name)
                           ^~~~~~~~~
/datasets/git/builtin/index-pack.c:1859:2: note: Taking false branch
        if (!index_name && pack_name)
        ^
/datasets/git/builtin/index-pack.c:1863:6: note: 'rev_index' is 1
        if (rev_index) {
            ^~~~~~~~~
/datasets/git/builtin/index-pack.c:1863:2: note: Taking true branch
        if (rev_index) {
        ^
/datasets/git/builtin/index-pack.c:1864:17: note: 'verify' is 0
                opts.flags |= verify ? WRITE_REV_VERIFY : WRITE_REV;
                              ^~~~~~
/datasets/git/builtin/index-pack.c:1864:17: note: '?' condition is false
/datasets/git/builtin/index-pack.c:1865:7: note: 'index_name' is null
                if (index_name)
                    ^~~~~~~~~~
/datasets/git/builtin/index-pack.c:1865:3: note: Taking false branch
                if (index_name)
                ^
/datasets/git/builtin/index-pack.c:1871:6: note: 'verify' is 0
        if (verify) {
            ^~~~~~
/datasets/git/builtin/index-pack.c:1871:2: note: Taking false branch
        if (verify) {
        ^
/datasets/git/builtin/index-pack.c:1877:6: note: Assuming 'strict' is 0
        if (strict)
            ^~~~~~
/datasets/git/builtin/index-pack.c:1877:2: note: Taking false branch
        if (strict)
        ^
/datasets/git/builtin/index-pack.c:1880:6: note: Left side of '&&' is true
        if (HAVE_THREADS && !nr_threads) {
            ^
./thread-utils.h:7:22: note: expanded from macro 'HAVE_THREADS'
#define HAVE_THREADS 1
                     ^
/datasets/git/builtin/index-pack.c:1880:22: note: Assuming 'nr_threads' is 0
        if (HAVE_THREADS && !nr_threads) {
                            ^~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1880:2: note: Taking true branch
        if (HAVE_THREADS && !nr_threads) {
        ^
/datasets/git/builtin/index-pack.c:1890:7: note: Assuming 'nr_threads' is < 4
                if (nr_threads < 4)
                    ^~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1890:3: note: Taking true branch
                if (nr_threads < 4)
                ^
/datasets/git/builtin/index-pack.c:1903:6: note: Assuming 'show_stat' is 0
        if (show_stat)
            ^~~~~~~~~
/datasets/git/builtin/index-pack.c:1903:2: note: Taking false branch
        if (show_stat)
        ^
/datasets/git/builtin/index-pack.c:1906:2: note: Calling 'parse_pack_objects'
        parse_pack_objects(pack_hash);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1158:6: note: Assuming 'verbose' is 0
        if (verbose)
            ^~~~~~~
/datasets/git/builtin/index-pack.c:1158:2: note: Taking false branch
        if (verbose)
        ^
/datasets/git/builtin/index-pack.c:1163:14: note: Assuming 'i' is < 'nr_objects'
        for (i = 0; i < nr_objects; i++) {
                    ^~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1163:2: note: Loop condition is true.  Entering loop body
        for (i = 0; i < nr_objects; i++) {
        ^
/datasets/git/builtin/index-pack.c:1165:16: note: Calling 'unpack_raw_entry'
                void *data = unpack_raw_entry(obj, &ofs_delta->offset,
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:512:2: note: Loop condition is false. Execution continues on line 519
        while (c & 0x80) {
        ^
/datasets/git/builtin/index-pack.c:521:2: note: Control jumps to 'case OBJ_COMMIT:'  at line 544
        switch (obj->type) {
        ^
/datasets/git/builtin/index-pack.c:548:3: note:  Execution continues on line 552
                break;
                ^
/datasets/git/builtin/index-pack.c:556:2: note: Returning without writing to 'ref_oid->algo'
        return data;
        ^
/datasets/git/builtin/index-pack.c:1165:16: note: Returning from 'unpack_raw_entry'
                void *data = unpack_raw_entry(obj, &ofs_delta->offset,
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1169:7: note: Assuming field 'type' is not equal to OBJ_OFS_DELTA
                if (obj->type == OBJ_OFS_DELTA) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1169:3: note: Taking false branch
                if (obj->type == OBJ_OFS_DELTA) {
                ^
/datasets/git/builtin/index-pack.c:1173:14: note: Assuming field 'type' is equal to OBJ_REF_DELTA
                } else if (obj->type == OBJ_REF_DELTA) {
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1173:10: note: Taking true branch
                } else if (obj->type == OBJ_REF_DELTA) {
                       ^
/datasets/git/builtin/index-pack.c:1174:4: note: Assuming the condition is false
                        ALLOC_GROW(ref_deltas, nr_ref_deltas + 1, ref_deltas_alloc);
                        ^
/datasets/git/./cache.h:702:7: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                    ^~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1174:4: note: Taking false branch
                        ALLOC_GROW(ref_deltas, nr_ref_deltas + 1, ref_deltas_alloc);
                        ^
/datasets/git/./cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/builtin/index-pack.c:1174:4: note: Loop condition is false.  Exiting loop
                        ALLOC_GROW(ref_deltas, nr_ref_deltas + 1, ref_deltas_alloc);
                        ^
/datasets/git/./cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/builtin/index-pack.c:1175:4: note: Calling 'oidcpy'
                        oidcpy(&ref_deltas[nr_ref_deltas].oid, &ref_delta_oid);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./hash.h:269:12: note: Assigned value is garbage or undefined
        dst->algo = src->algo;
                  ^ ~~~~~~~~~
./hashmap.h:117:14: warning: function 'strhash' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
unsigned int strhash(const char *buf);
             ^
hashmap.c:10:14: note: the definition seen here
unsigned int strhash(const char *str)
             ^
/datasets/git/./hashmap.h:117:14: note: differing parameters are named here: ('buf'), in definition: ('str')
unsigned int strhash(const char *buf);
             ^                   ~~~
                                 str
/datasets/git/./hashmap.h:118:14: warning: function 'strihash' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
unsigned int strihash(const char *buf);
             ^
hashmap.c:18:14: note: the definition seen here
unsigned int strihash(const char *str)
             ^
/datasets/git/./hashmap.h:118:14: note: differing parameters are named here: ('buf'), in definition: ('str')
unsigned int strihash(const char *buf);
             ^                    ~~~
                                  str
/datasets/git/./hashmap.h:233:6: warning: function 'hashmap_init' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
void hashmap_init(struct hashmap *map,
     ^
hashmap.c:153:6: note: the definition seen here
void hashmap_init(struct hashmap *map, hashmap_cmp_fn equals_function,
     ^
/datasets/git/./hashmap.h:233:6: note: differing parameters are named here: ('equals_function_data'), in definition: ('cmpfn_data')
void hashmap_init(struct hashmap *map,
     ^
./help.h:41:5: warning: function 'is_in_cmdlist' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int is_in_cmdlist(struct cmdnames *cmds, const char *name);
    ^
help.c:527:5: note: the definition seen here
int is_in_cmdlist(struct cmdnames *c, const char *s)
    ^
/datasets/git/./help.h:41:5: note: differing parameters are named here: ('name'), in definition: ('s')
int is_in_cmdlist(struct cmdnames *cmds, const char *name);
    ^                                                ~~~~
                                                     s
./levenshtein.h:4:5: warning: function 'levenshtein' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int levenshtein(const char *string1, const char *string2,
    ^
levenshtein.c:41:5: note: the definition seen here
int levenshtein(const char *string1, const char *string2,
    ^
/datasets/git/./levenshtein.h:4:5: note: differing parameters are named here: ('swap_penalty', 'insertion_penalty'), in definition: ('w', 'a')
int levenshtein(const char *string1, const char *string2,
    ^
./line-log.h:31:6: warning: function 'range_set_append_unsafe' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
void range_set_append_unsafe(struct range_set *, long start, long end);
     ^
line-log.c:61:6: note: the definition seen here
void range_set_append_unsafe(struct range_set *rs, long a, long b)
     ^
/datasets/git/./line-log.h:31:6: note: differing parameters are named here: ('start', 'end'), in definition: ('a', 'b')
void range_set_append_unsafe(struct range_set *, long start, long end);
     ^                                                ~~~~~       ~~~
                                                      a           b
/datasets/git/./line-log.h:33:6: warning: function 'range_set_append' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
void range_set_append(struct range_set *, long start, long end);
     ^
line-log.c:70:6: note: the definition seen here
void range_set_append(struct range_set *rs, long a, long b)
     ^
/datasets/git/./line-log.h:33:6: note: differing parameters are named here: ('start', 'end'), in definition: ('a', 'b')
void range_set_append(struct range_set *, long start, long end);
     ^                                         ~~~~~       ~~~
                                               a           b
./merge-ort-wrappers.h:10:5: warning: function 'merge_ort_nonrecursive' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int merge_ort_nonrecursive(struct merge_options *opt,
    ^
merge-ort-wrappers.c:22:5: note: the definition seen here
int merge_ort_nonrecursive(struct merge_options *opt,
    ^
/datasets/git/./merge-ort-wrappers.h:10:5: note: differing parameters are named here: ('common'), in definition: ('merge_base')
int merge_ort_nonrecursive(struct merge_options *opt,
    ^
/datasets/git/./merge-ort-wrappers.h:19:5: warning: function 'merge_ort_recursive' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int merge_ort_recursive(struct merge_options *opt,
    ^
merge-ort-wrappers.c:44:5: note: the definition seen here
int merge_ort_recursive(struct merge_options *opt,
    ^
/datasets/git/./merge-ort-wrappers.h:19:5: note: differing parameters are named here: ('h1', 'h2', 'ancestors'), in definition: ('side1', 'side2', 'merge_bases')
int merge_ort_recursive(struct merge_options *opt,
    ^
./negotiator/../commit.h:208:5: warning: function 'has_non_ascii' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int has_non_ascii(const char *text);
    ^
/datasets/git/pretty.c:221:5: note: the definition seen here
int has_non_ascii(const char *s)
    ^
/datasets/git/./negotiator/../commit.h:208:5: note: differing parameters are named here: ('text'), in definition: ('s')
int has_non_ascii(const char *text);
    ^                         ~~~~
                              s
./negotiator/../refs.h:161:5: warning: function 'repo_dwim_log' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int repo_dwim_log(struct repository *r, const char *str, int len, struct object_id *oid, char **ref);
    ^
refs.c:768:5: note: the definition seen here
int repo_dwim_log(struct repository *r, const char *str, int len,
    ^
/datasets/git/./negotiator/../refs.h:161:5: note: differing parameters are named here: ('ref'), in definition: ('log')
int repo_dwim_log(struct repository *r, const char *str, int len, struct object_id *oid, char **ref);
    ^                                                                                           ~~~
                                                                                                log
/datasets/git/./negotiator/../refs.h:168:5: warning: function 'dwim_log' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int dwim_log(const char *str, int len, struct object_id *oid, char **ref);
    ^
refs.c:809:5: note: the definition seen here
int dwim_log(const char *str, int len, struct object_id *oid, char **log)
    ^
/datasets/git/./negotiator/../refs.h:168:5: note: differing parameters are named here: ('ref'), in definition: ('log')
int dwim_log(const char *str, int len, struct object_id *oid, char **ref);
    ^                                                                ~~~
                                                                     log
/datasets/git/./negotiator/../refs.h:560:5: warning: function 'refs_create_symref' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int refs_create_symref(struct ref_store *refs, const char *refname,
    ^
refs.c:2138:5: note: the definition seen here
int refs_create_symref(struct ref_store *refs,
    ^
/datasets/git/./negotiator/../refs.h:560:5: note: differing parameters are named here: ('refname', 'target'), in definition: ('ref_target', 'refs_heads_master')
int refs_create_symref(struct ref_store *refs, const char *refname,
    ^                                                      ~~~~~~~
                                                           ref_target
/datasets/git/./negotiator/../refs.h:562:5: warning: function 'create_symref' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int create_symref(const char *refname, const char *target, const char *logmsg);
    ^
refs.c:2153:5: note: the definition seen here
int create_symref(const char *ref_target, const char *refs_heads_master,
    ^
/datasets/git/./negotiator/../refs.h:562:5: note: differing parameters are named here: ('refname', 'target'), in definition: ('ref_target', 'refs_heads_master')
int create_symref(const char *refname, const char *target, const char *logmsg);
    ^                         ~~~~~~~              ~~~~~~
                              ref_target           refs_heads_master
./object-store.h:70:6: warning: function 'add_to_alternates_file' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
void add_to_alternates_file(const char *dir);
     ^
object-file.c:634:6: note: the definition seen here
void add_to_alternates_file(const char *reference)
     ^
/datasets/git/./object-store.h:70:6: note: differing parameters are named here: ('dir'), in definition: ('reference')
void add_to_alternates_file(const char *dir);
     ^                                  ~~~
                                        reference
/datasets/git/./object-store.h:77:6: warning: function 'add_to_alternates_memory' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
void add_to_alternates_memory(const char *dir);
     ^
object-file.c:677:6: note: the definition seen here
void add_to_alternates_memory(const char *reference)
     ^
/datasets/git/./object-store.h:77:6: note: differing parameters are named here: ('dir'), in definition: ('reference')
void add_to_alternates_memory(const char *dir);
     ^                                    ~~~
                                          reference
./oid-array.h:107:6: warning: function 'oid_array_filter' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
void oid_array_filter(struct oid_array *array,
     ^
oid-array.c:78:6: note: the definition seen here
void oid_array_filter(struct oid_array *array,
     ^
/datasets/git/./oid-array.h:107:6: note: differing parameters are named here: ('cbdata'), in definition: ('cb_data')
void oid_array_filter(struct oid_array *array,
     ^
./oidtree.h:19:6: warning: function 'oidtree_each' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
void oidtree_each(struct oidtree *, const struct object_id *,
     ^
oidtree.c:94:6: note: the definition seen here
void oidtree_each(struct oidtree *ot, const struct object_id *oid,
     ^
/datasets/git/./oidtree.h:19:6: note: differing parameters are named here: ('data'), in definition: ('arg')
void oidtree_each(struct oidtree *, const struct object_id *,
     ^
./pack-objects.h:269:6: warning: function 'oe_set_delta_ext' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
void oe_set_delta_ext(struct packing_data *pack,
     ^
pack-objects.c:210:6: note: the definition seen here
void oe_set_delta_ext(struct packing_data *pdata,
     ^
/datasets/git/./pack-objects.h:269:6: note: differing parameters are named here: ('pack', 'e'), in definition: ('pdata', 'delta')
void oe_set_delta_ext(struct packing_data *pack,
     ^                                     ~~~~
                                           pdata
./pack.h:91:7: warning: function 'index_pack_lockfile' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
char *index_pack_lockfile(int fd, int *is_well_formed);
      ^
pack-write.c:449:7: note: the definition seen here
char *index_pack_lockfile(int ip_out, int *is_well_formed)
      ^
/datasets/git/./pack.h:91:7: note: differing parameters are named here: ('fd'), in definition: ('ip_out')
char *index_pack_lockfile(int fd, int *is_well_formed);
      ^                       ~~
                              ip_out
/datasets/git/./pack.h:124:6: warning: function 'rename_tmp_packfile_idx' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
void rename_tmp_packfile_idx(struct strbuf *basename,
     ^
pack-write.c:529:6: note: the definition seen here
void rename_tmp_packfile_idx(struct strbuf *name_buffer,
     ^
/datasets/git/./pack.h:124:6: note: differing parameters are named here: ('__xpg_basename'), in definition: ('name_buffer')
void rename_tmp_packfile_idx(struct strbuf *basename,
     ^                                      ~~~~~~~~
                                            name_buffer
./packfile.h:18:7: warning: function 'odb_pack_name' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
char *odb_pack_name(struct strbuf *buf, const unsigned char *sha1, const char *ext);
      ^
packfile.c:21:7: note: the definition seen here
char *odb_pack_name(struct strbuf *buf,
      ^
/datasets/git/./packfile.h:18:7: note: differing parameters are named here: ('sha1'), in definition: ('hash')
char *odb_pack_name(struct strbuf *buf, const unsigned char *sha1, const char *ext);
      ^                                                      ~~~~
                                                             hash
/datasets/git/./parse-options.h:334:16: warning: function 'parse_options_dup' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
struct option *parse_options_dup(const struct option *a);
               ^
parse-options-cb.c:174:16: note: the definition seen here
struct option *parse_options_dup(const struct option *o)
               ^
/datasets/git/./parse-options.h:334:16: note: differing parameters are named here: ('a'), in definition: ('o')
struct option *parse_options_dup(const struct option *a);
               ^                                      ~
                                                      o
./path.h:142:5: warning: function 'strbuf_git_path_submodule' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int strbuf_git_path_submodule(struct strbuf *sb, const char *path,
    ^
path.c:617:5: note: the definition seen here
int strbuf_git_path_submodule(struct strbuf *buf, const char *path,
    ^
/datasets/git/./path.h:142:5: note: differing parameters are named here: ('sb'), in definition: ('buf')
int strbuf_git_path_submodule(struct strbuf *sb, const char *path,
    ^                                        ~~
                                             buf
./pathspec.h:114:6: warning: function 'parse_pathspec' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
void parse_pathspec(struct pathspec *pathspec,
     ^
pathspec.c:555:6: note: the definition seen here
void parse_pathspec(struct pathspec *pathspec,
     ^
/datasets/git/./pathspec.h:114:6: note: differing parameters are named here: ('args'), in definition: ('argv')
void parse_pathspec(struct pathspec *pathspec,
     ^
./pkt-line.h:133:7: warning: function 'packet_read_line' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
char *packet_read_line(int fd, int *size);
      ^
pkt-line.c:491:7: note: the definition seen here
char *packet_read_line(int fd, int *dst_len)
      ^
/datasets/git/./pkt-line.h:133:7: note: differing parameters are named here: ('size'), in definition: ('dst_len')
char *packet_read_line(int fd, int *size);
      ^                             ~~~~
                                    dst_len
/datasets/git/./pkt-line.h:144:5: warning: function 'packet_read_line_gently' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int packet_read_line_gently(int fd, int *size, char **dst_line);
    ^
pkt-line.c:500:5: note: the definition seen here
int packet_read_line_gently(int fd, int *dst_len, char **dst_line)
    ^
/datasets/git/./pkt-line.h:144:5: note: differing parameters are named here: ('size'), in definition: ('dst_len')
int packet_read_line_gently(int fd, int *size, char **dst_line);
    ^                                    ~~~~
                                         dst_len
./pretty.h:119:6: warning: function 'repo_format_commit_message' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
void repo_format_commit_message(struct repository *r,
     ^
/datasets/git/pretty.c:1855:6: note: the definition seen here
void repo_format_commit_message(struct repository *r,
     ^
/datasets/git/./pretty.h:119:6: note: differing parameters are named here: ('context'), in definition: ('pretty_ctx')
void repo_format_commit_message(struct repository *r,
     ^
./quote.h:64:7: warning: function 'sq_dequote_step' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
char *sq_dequote_step(char *src, char **next);
      ^
quote.c:119:7: note: the definition seen here
char *sq_dequote_step(char *arg, char **next)
      ^
/datasets/git/./quote.h:64:7: note: differing parameters are named here: ('src'), in definition: ('arg')
char *sq_dequote_step(char *src, char **next);
      ^                     ~~~
                            arg
./reflog-walk.h:25:5: warning: function 'reflog_walk_empty' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int reflog_walk_empty(struct reflog_walk_info *walk);
    ^
reflog-walk.c:320:5: note: the definition seen here
int reflog_walk_empty(struct reflog_walk_info *info)
    ^
/datasets/git/./reflog-walk.h:25:5: note: differing parameters are named here: ('walk'), in definition: ('info')
int reflog_walk_empty(struct reflog_walk_info *walk);
    ^                                          ~~~~
                                               info
/datasets/git/./reflog-walk.h:27:16: warning: function 'next_reflog_entry' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
struct commit *next_reflog_entry(struct reflog_walk_info *reflog_info);
               ^
reflog-walk.c:343:16: note: the definition seen here
struct commit *next_reflog_entry(struct reflog_walk_info *walk)
               ^
/datasets/git/./reflog-walk.h:27:16: note: differing parameters are named here: ('reflog_info'), in definition: ('walk')
struct commit *next_reflog_entry(struct reflog_walk_info *reflog_info);
               ^                                          ~~~~~~~~~~~
                                                          walk
./refs/../cache.h:577:5: warning: function 'is_git_directory' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int is_git_directory(const char *path);
    ^
setup.c:345:5: note: the definition seen here
int is_git_directory(const char *suspect)
    ^
/datasets/git/./refs/../cache.h:577:5: note: differing parameters are named here: ('path'), in definition: ('suspect')
int is_git_directory(const char *path);
    ^                            ~~~~
                                 suspect
/datasets/git/./refs/../cache.h:637:5: warning: function 'check_filename' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int check_filename(const char *prefix, const char *name);
    ^
setup.c:156:5: note: the definition seen here
int check_filename(const char *prefix, const char *arg)
    ^
/datasets/git/./refs/../cache.h:637:5: note: differing parameters are named here: ('name'), in definition: ('arg')
int check_filename(const char *prefix, const char *name);
    ^                                              ~~~~
                                                   arg
/datasets/git/./refs/../cache.h:638:6: warning: function 'verify_filename' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
void verify_filename(const char *prefix,
     ^
setup.c:265:6: note: the definition seen here
void verify_filename(const char *prefix,
     ^
/datasets/git/./refs/../cache.h:638:6: note: differing parameters are named here: ('name'), in definition: ('arg')
void verify_filename(const char *prefix,
     ^
/datasets/git/./refs/../cache.h:641:6: warning: function 'verify_non_filename' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
void verify_non_filename(const char *prefix, const char *name);
     ^
setup.c:281:6: note: the definition seen here
void verify_non_filename(const char *prefix, const char *arg)
     ^
/datasets/git/./refs/../cache.h:641:6: note: differing parameters are named here: ('name'), in definition: ('arg')
void verify_non_filename(const char *prefix, const char *name);
     ^                                                   ~~~~
                                                         arg
./refspec.h:66:5: warning: function 'valid_fetch_refspec' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int valid_fetch_refspec(const char *refspec);
    ^
refspec.c:243:5: note: the definition seen here
int valid_fetch_refspec(const char *fetch_refspec_str)
    ^
/datasets/git/./refspec.h:66:5: note: differing parameters are named here: ('refspec'), in definition: ('fetch_refspec_str')
int valid_fetch_refspec(const char *refspec);
    ^                               ~~~~~~~
                                    fetch_refspec_str
./remote.h:336:5: warning: function 'branch_merge_matches' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int branch_merge_matches(struct branch *, int n, const char *);
    ^
remote.c:1838:5: note: the definition seen here
int branch_merge_matches(struct branch *branch,
    ^
/datasets/git/./remote.h:336:5: note: differing parameters are named here: ('n'), in definition: ('i')
int branch_merge_matches(struct branch *, int n, const char *);
    ^                                         ~
                                              i
/datasets/git/./remote.h:374:5: warning: function 'stat_tracking_info' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int stat_tracking_info(struct branch *branch, int *num_ours, int *num_theirs,
    ^
remote.c:2230:5: note: the definition seen here
int stat_tracking_info(struct branch *branch, int *num_ours, int *num_theirs,
    ^
/datasets/git/./remote.h:374:5: note: differing parameters are named here: ('upstream_name'), in definition: ('tracking_name')
int stat_tracking_info(struct branch *branch, int *num_ours, int *num_theirs,
    ^
./repository.h:186:6: warning: function 'repo_set_gitdir' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
void repo_set_gitdir(struct repository *repo, const char *root,
     ^
repository.c:61:6: note: the definition seen here
void repo_set_gitdir(struct repository *repo,
     ^
/datasets/git/./repository.h:186:6: note: differing parameters are named here: ('extra_args'), in definition: ('o')
void repo_set_gitdir(struct repository *repo, const char *root,
     ^
./sequencer.h:217:6: warning: function 'commit_post_rewrite' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
void commit_post_rewrite(struct repository *r,
     ^
sequencer.c:1237:6: note: the definition seen here
void commit_post_rewrite(struct repository *r,
     ^
/datasets/git/./sequencer.h:217:6: note: differing parameters are named here: ('current_head'), in definition: ('old_head')
void commit_post_rewrite(struct repository *r,
     ^
./strbuf.h:90:6: warning: function 'strbuf_init' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
void strbuf_init(struct strbuf *sb, size_t alloc);
     ^
strbuf.c:54:6: note: the definition seen here
void strbuf_init(struct strbuf *sb, size_t hint)
     ^
/datasets/git/./strbuf.h:90:6: note: differing parameters are named here: ('alloc'), in definition: ('hint')
void strbuf_init(struct strbuf *sb, size_t alloc);
     ^                                     ~~~~~
                                           hint
/datasets/git/./strbuf.h:120:6: warning: function 'strbuf_attach' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
void strbuf_attach(struct strbuf *sb, void *str, size_t len, size_t mem);
     ^
strbuf.c:81:6: note: the definition seen here
void strbuf_attach(struct strbuf *sb, void *buf, size_t len, size_t alloc)
     ^
/datasets/git/./strbuf.h:120:6: note: differing parameters are named here: ('str', 'mem'), in definition: ('buf', 'alloc')
void strbuf_attach(struct strbuf *sb, void *str, size_t len, size_t mem);
     ^                                      ~~~                     ~~~
                                            buf                     alloc
/datasets/git/./strbuf.h:151:6: warning: function 'strbuf_grow' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
void strbuf_grow(struct strbuf *sb, size_t amount);
     ^
strbuf.c:91:6: note: the definition seen here
void strbuf_grow(struct strbuf *sb, size_t extra)
     ^
/datasets/git/./strbuf.h:151:6: note: differing parameters are named here: ('amount'), in definition: ('extra')
void strbuf_grow(struct strbuf *sb, size_t amount);
     ^                                     ~~~~~~
                                           extra
/datasets/git/./strbuf.h:166:16: warning: Array access (via field 'buf') results in a null pointer dereference [clang-analyzer-core.NullDereference]
                sb->buf[len] = '\0';
                             ^
/datasets/git/abspath.c:229:8: note: Assuming 'die_on_error' is not equal to 0
                                 ((die_on_error ? REALPATH_DIE_ON_ERROR : 0) |
                                   ^~~~~~~~~~~~
/datasets/git/abspath.c:229:8: note: '?' condition is true
/datasets/git/abspath.c:228:9: note: Calling 'strbuf_realpath_1'
        return strbuf_realpath_1(resolved, path,
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/abspath.c:87:6: note: Assuming the condition is false
        if (!*path) {
            ^~~~~~
/datasets/git/abspath.c:87:2: note: Taking false branch
        if (!*path) {
        ^
/datasets/git/abspath.c:95:2: note: Calling 'get_root_part'
        get_root_part(resolved, &remaining);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/abspath.c:56:2: note: Calling 'strbuf_setlen'
        strbuf_reset(resolved);
        ^
/datasets/git/./strbuf.h:174:27: note: expanded from macro 'strbuf_reset'
#define strbuf_reset(sb)  strbuf_setlen(sb, 0)
                          ^~~~~~~~~~~~~~~~~~~~
/datasets/git/./strbuf.h:162:13: note: Assuming field 'alloc' is 0
        if (len > (sb->alloc ? sb->alloc - 1 : 0))
                   ^~~~~~~~~
/datasets/git/./strbuf.h:162:13: note: '?' condition is false
/datasets/git/./strbuf.h:162:2: note: Taking false branch
        if (len > (sb->alloc ? sb->alloc - 1 : 0))
        ^
/datasets/git/./strbuf.h:165:6: note: Assuming 'strbuf_slopbuf' is not equal to field 'buf'
        if (sb->buf != strbuf_slopbuf)
            ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./strbuf.h:165:2: note: Taking true branch
        if (sb->buf != strbuf_slopbuf)
        ^
/datasets/git/./strbuf.h:169:1: note: Returning without writing to 'sb->buf'
}
^
/datasets/git/abspath.c:56:2: note: Returning from 'strbuf_setlen'
        strbuf_reset(resolved);
        ^
/datasets/git/./strbuf.h:174:27: note: expanded from macro 'strbuf_reset'
#define strbuf_reset(sb)  strbuf_setlen(sb, 0)
                          ^~~~~~~~~~~~~~~~~~~~
/datasets/git/abspath.c:57:2: note: Value assigned to field 'buf'
        strbuf_add(resolved, remaining->buf, offset);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/abspath.c:95:2: note: Returning from 'get_root_part'
        get_root_part(resolved, &remaining);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/abspath.c:97:6: note: Assuming field 'len' is not equal to 0
        if (!resolved->len) {
            ^~~~~~~~~~~~~~
/datasets/git/abspath.c:97:2: note: Taking false branch
        if (!resolved->len) {
        ^
/datasets/git/abspath.c:108:9: note: Assuming field 'len' is <= 0
        while (remaining.len > 0) {
               ^~~~~~~~~~~~~~~~~
/datasets/git/abspath.c:108:2: note: Loop condition is false. Execution continues on line 189
        while (remaining.len > 0) {
        ^
/datasets/git/abspath.c:196:6: note: Assuming 'retval' is null
        if (!retval)
            ^~~~~~~
/datasets/git/abspath.c:196:2: note: Taking true branch
        if (!retval)
        ^
/datasets/git/abspath.c:197:3: note: Calling 'strbuf_setlen'
                strbuf_reset(resolved);
                ^
/datasets/git/./strbuf.h:174:27: note: expanded from macro 'strbuf_reset'
#define strbuf_reset(sb)  strbuf_setlen(sb, 0)
                          ^~~~~~~~~~~~~~~~~~~~
/datasets/git/./strbuf.h:162:13: note: Assuming field 'alloc' is 0
        if (len > (sb->alloc ? sb->alloc - 1 : 0))
                   ^~~~~~~~~
/datasets/git/./strbuf.h:162:13: note: '?' condition is false
/datasets/git/./strbuf.h:162:2: note: Taking false branch
        if (len > (sb->alloc ? sb->alloc - 1 : 0))
        ^
/datasets/git/./strbuf.h:165:17: note: 'strbuf_slopbuf' is not equal to field 'buf'
        if (sb->buf != strbuf_slopbuf)
                       ^~~~~~~~~~~~~~
/datasets/git/./strbuf.h:165:2: note: Taking true branch
        if (sb->buf != strbuf_slopbuf)
        ^
/datasets/git/./strbuf.h:166:16: note: Array access (via field 'buf') results in a null pointer dereference
                sb->buf[len] = '\0';
                    ~~~      ^
/datasets/git/./strbuf.h:212:5: warning: function 'strbuf_cmp' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int strbuf_cmp(const struct strbuf *first, const struct strbuf *second);
    ^
strbuf.c:222:5: note: the definition seen here
int strbuf_cmp(const struct strbuf *a, const struct strbuf *b)
    ^
/datasets/git/./strbuf.h:212:5: note: differing parameters are named here: ('first', 'second'), in definition: ('a', 'b')
int strbuf_cmp(const struct strbuf *first, const struct strbuf *second);
    ^                               ~~~~~                       ~~~~~~
                                    a                           b
/datasets/git/./strbuf.h:278:6: warning: function 'strbuf_splice' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
void strbuf_splice(struct strbuf *sb, size_t pos, size_t len,
     ^
strbuf.c:231:6: note: the definition seen here
void strbuf_splice(struct strbuf *sb, size_t pos, size_t len,
     ^
/datasets/git/./strbuf.h:278:6: note: differing parameters are named here: ('data_len'), in definition: ('dlen')
void strbuf_splice(struct strbuf *sb, size_t pos, size_t len,
     ^
/datasets/git/./strbuf.h:305:20: warning: Null pointer passed to 1st parameter expecting 'nonnull' [clang-analyzer-core.NonNullParamChecker]
        strbuf_add(sb, s, strlen(s));
                          ^
/datasets/git/builtin/config.c:641:15: note: Assuming field 'have_repository' is not equal to 0
        int nongit = !startup_info->have_repository;
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:645:45: note: Assuming the environment variable does not exist
        given_config_source.file = xstrdup_or_null(getenv(CONFIG_ENVIRONMENT));
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:653:7: note: Assuming field 'file' is non-null
            !!given_config_source.file + !!given_config_source.blob > 1) {
             ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:653:36: note: Assuming field 'blob' is non-null
            !!given_config_source.file + !!given_config_source.blob > 1) {
                                          ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:651:6: note: Assuming the condition is false
        if (use_global_config + use_system_config + use_local_config +
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:651:2: note: Taking false branch
        if (use_global_config + use_system_config + use_local_config +
        ^
/datasets/git/builtin/config.c:658:6: note: 'nongit' is 0
        if (nongit) {
            ^~~~~~
/datasets/git/builtin/config.c:658:2: note: Taking false branch
        if (nongit) {
        ^
/datasets/git/builtin/config.c:668:26: note: Field 'file' is non-null
        if (given_config_source.file &&
                                ^
/datasets/git/builtin/config.c:668:6: note: Left side of '&&' is true
        if (given_config_source.file &&
            ^
/datasets/git/builtin/config.c:669:4: note: Assuming the condition is false
                        !strcmp(given_config_source.file, "-")) {
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:668:2: note: Taking false branch
        if (given_config_source.file &&
        ^
/datasets/git/builtin/config.c:675:6: note: Assuming 'use_global_config' is 0
        if (use_global_config) {
            ^~~~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:675:2: note: Taking false branch
        if (use_global_config) {
        ^
/datasets/git/builtin/config.c:699:11: note: Assuming 'use_system_config' is not equal to 0
        else if (use_system_config) {
                 ^~~~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:699:7: note: Taking true branch
        else if (use_system_config) {
             ^
/datasets/git/builtin/config.c:729:6: note: Assuming the condition is false
        if (respect_includes_opt == -1)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:729:2: note: Taking false branch
        if (respect_includes_opt == -1)
        ^
/datasets/git/builtin/config.c:733:7: note: 'nongit' is 0
        if (!nongit) {
             ^~~~~~
/datasets/git/builtin/config.c:733:2: note: Taking true branch
        if (!nongit) {
        ^
/datasets/git/builtin/config.c:738:6: note: Assuming 'end_nul' is 0
        if (end_nul) {
            ^~~~~~~
/datasets/git/builtin/config.c:738:2: note: Taking false branch
        if (end_nul) {
        ^
/datasets/git/builtin/config.c:744:7: note: Assuming the condition is false
        if ((actions & (ACTION_GET_COLOR|ACTION_GET_COLORBOOL)) && type) {
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:744:58: note: Left side of '&&' is false
        if ((actions & (ACTION_GET_COLOR|ACTION_GET_COLORBOOL)) && type) {
                                                                ^
/datasets/git/builtin/config.c:749:6: note: Assuming the condition is false
        if (HAS_MULTI_BITS(actions)) {
            ^
/datasets/git/./git-compat-util.h:156:29: note: expanded from macro 'HAS_MULTI_BITS'
#define HAS_MULTI_BITS(i)  ((i) & ((i) - 1))  /* checks if an integer has more than 1 bit set */
                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:749:2: note: Taking false branch
        if (HAS_MULTI_BITS(actions)) {
        ^
/datasets/git/builtin/config.c:753:6: note: Assuming 'actions' is not equal to 0
        if (actions == 0)
            ^~~~~~~~~~~~
/datasets/git/builtin/config.c:753:2: note: Taking false branch
        if (actions == 0)
        ^
/datasets/git/builtin/config.c:761:6: note: Assuming 'omit_values' is 0
        if (omit_values &&
            ^~~~~~~~~~~
/datasets/git/builtin/config.c:761:18: note: Left side of '&&' is false
        if (omit_values &&
                        ^
/datasets/git/builtin/config.c:767:6: note: Assuming 'show_origin' is 0
        if (show_origin && !(actions &
            ^~~~~~~~~~~
/datasets/git/builtin/config.c:767:18: note: Left side of '&&' is false
        if (show_origin && !(actions &
                        ^
/datasets/git/builtin/config.c:774:6: note: Assuming 'default_value' is null
        if (default_value && !(actions & ACTION_GET)) {
            ^~~~~~~~~~~~~
/datasets/git/builtin/config.c:774:20: note: Left side of '&&' is false
        if (default_value && !(actions & ACTION_GET)) {
                          ^
/datasets/git/builtin/config.c:780:6: note: Assuming 'fixed_value' is 0
        if (fixed_value) {
            ^~~~~~~~~~~
/datasets/git/builtin/config.c:780:2: note: Taking false branch
        if (fixed_value) {
        ^
/datasets/git/builtin/config.c:815:6: note: Assuming the condition is true
        if (actions & PAGING_ACTIONS)
            ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:815:2: note: Taking true branch
        if (actions & PAGING_ACTIONS)
        ^
/datasets/git/builtin/config.c:818:6: note: Assuming the condition is false
        if (actions == ACTION_LIST) {
            ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:818:2: note: Taking false branch
        if (actions == ACTION_LIST) {
        ^
/datasets/git/builtin/config.c:830:11: note: Assuming the condition is false
        else if (actions == ACTION_EDIT) {
                 ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:830:7: note: Taking false branch
        else if (actions == ACTION_EDIT) {
             ^
/datasets/git/builtin/config.c:858:11: note: Assuming the condition is false
        else if (actions == ACTION_SET) {
                 ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:858:7: note: Taking false branch
        else if (actions == ACTION_SET) {
             ^
/datasets/git/builtin/config.c:870:11: note: Assuming the condition is false
        else if (actions == ACTION_SET_ALL) {
                 ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:870:7: note: Taking false branch
        else if (actions == ACTION_SET_ALL) {
             ^
/datasets/git/builtin/config.c:879:11: note: Assuming the condition is false
        else if (actions == ACTION_ADD) {
                 ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:879:7: note: Taking false branch
        else if (actions == ACTION_ADD) {
             ^
/datasets/git/builtin/config.c:889:11: note: Assuming the condition is false
        else if (actions == ACTION_REPLACE_ALL) {
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:889:7: note: Taking false branch
        else if (actions == ACTION_REPLACE_ALL) {
             ^
/datasets/git/builtin/config.c:898:11: note: Assuming the condition is false
        else if (actions == ACTION_GET) {
                 ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:898:7: note: Taking false branch
        else if (actions == ACTION_GET) {
             ^
/datasets/git/builtin/config.c:902:11: note: Assuming the condition is false
        else if (actions == ACTION_GET_ALL) {
                 ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:902:7: note: Taking false branch
        else if (actions == ACTION_GET_ALL) {
             ^
/datasets/git/builtin/config.c:907:11: note: Assuming the condition is false
        else if (actions == ACTION_GET_REGEXP) {
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:907:7: note: Taking false branch
        else if (actions == ACTION_GET_REGEXP) {
             ^
/datasets/git/builtin/config.c:914:11: note: Assuming the condition is true
        else if (actions == ACTION_GET_URLMATCH) {
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:914:7: note: Taking true branch
        else if (actions == ACTION_GET_URLMATCH) {
             ^
/datasets/git/builtin/config.c:916:10: note: Calling 'get_urlmatch'
                return get_urlmatch(argv[0], argv[1]);
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:587:6: note: Assuming the condition is false
        if (!url_normalize(url, &config.url))
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:587:2: note: Taking false branch
        if (!url_normalize(url, &config.url))
        ^
/datasets/git/builtin/config.c:592:6: note: Assuming 'section_tail' is null
        if (section_tail) {
            ^~~~~~~~~~~~
/datasets/git/builtin/config.c:592:2: note: Taking false branch
        if (section_tail) {
        ^
/datasets/git/builtin/config.c:604:8: note: Assuming field 'nr' is not equal to 0
        ret = !values.nr;
              ^~~~~~~~~~
/datasets/git/builtin/config.c:606:28: note: Assuming 'item' is non-null
        for_each_string_list_item(item, &values) {
                                  ^
/datasets/git/./string-list.h:152:7: note: expanded from macro 'for_each_string_list_item'
             item && item < (list)->items + (list)->nr; \
             ^~~~
/datasets/git/builtin/config.c:606:28: note: Left side of '&&' is true
        for_each_string_list_item(item, &values) {
                                  ^
/datasets/git/builtin/config.c:606:2: note: Loop condition is true.  Entering loop body
        for_each_string_list_item(item, &values) {
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/config.c:611:10: note: Assuming field 'value_is_null' is not equal to 0
                              matched->value_is_null ? NULL : matched->value.buf);
                              ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:611:10: note: '?' condition is true
/datasets/git/builtin/config.c:611:10: note: Passing null pointer value via 3rd parameter 'value_'
                              matched->value_is_null ? NULL : matched->value.buf);
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:610:3: note: Calling 'format_config'
                format_config(&buf, item->string,
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:238:6: note: Assuming 'show_scope' is 0
        if (show_scope)
            ^~~~~~~~~~
/datasets/git/builtin/config.c:238:2: note: Taking false branch
        if (show_scope)
        ^
/datasets/git/builtin/config.c:240:6: note: Assuming 'show_origin' is 0
        if (show_origin)
            ^~~~~~~~~~~
/datasets/git/builtin/config.c:240:2: note: Taking false branch
        if (show_origin)
        ^
/datasets/git/builtin/config.c:242:6: note: Assuming 'show_keys' is 0
        if (show_keys)
            ^~~~~~~~~
/datasets/git/builtin/config.c:242:2: note: Taking false branch
        if (show_keys)
        ^
/datasets/git/builtin/config.c:244:6: note: Assuming 'omit_values' is 0
        if (!omit_values) {
            ^~~~~~~~~~~~
/datasets/git/builtin/config.c:244:2: note: Taking true branch
        if (!omit_values) {
        ^
/datasets/git/builtin/config.c:245:7: note: 'show_keys' is 0
                if (show_keys)
                    ^~~~~~~~~
/datasets/git/builtin/config.c:245:3: note: Taking false branch
                if (show_keys)
                ^
/datasets/git/builtin/config.c:248:7: note: Assuming 'type' is not equal to TYPE_INT
                if (type == TYPE_INT)
                    ^~~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:248:3: note: Taking false branch
                if (type == TYPE_INT)
                ^
/datasets/git/builtin/config.c:251:12: note: Assuming 'type' is not equal to TYPE_BOOL
                else if (type == TYPE_BOOL)
                         ^~~~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:251:8: note: Taking false branch
                else if (type == TYPE_BOOL)
                     ^
/datasets/git/builtin/config.c:254:12: note: Assuming 'type' is not equal to TYPE_BOOL_OR_INT
                else if (type == TYPE_BOOL_OR_INT) {
                         ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:254:8: note: Taking false branch
                else if (type == TYPE_BOOL_OR_INT) {
                     ^
/datasets/git/builtin/config.c:261:14: note: Assuming 'type' is equal to TYPE_BOOL_OR_STR
                } else if (type == TYPE_BOOL_OR_STR) {
                           ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:261:10: note: Taking true branch
                } else if (type == TYPE_BOOL_OR_STR) {
                       ^
/datasets/git/builtin/config.c:263:8: note: Assuming 'v' is < 0
                        if (v < 0)
                            ^~~~~
/datasets/git/builtin/config.c:263:4: note: Taking true branch
                        if (v < 0)
                        ^
/datasets/git/builtin/config.c:264:24: note: Passing null pointer value via 2nd parameter 's'
                                strbuf_addstr(buf, value_);
                                                   ^~~~~~
/datasets/git/builtin/config.c:264:5: note: Calling 'strbuf_addstr'
                                strbuf_addstr(buf, value_);
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./strbuf.h:305:20: note: Null pointer passed to 1st parameter expecting 'nonnull'
        strbuf_add(sb, s, strlen(s));
                          ^      ~
/datasets/git/./strbuf.h:476:9: warning: function 'strbuf_write' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
ssize_t strbuf_write(struct strbuf *sb, FILE *stream);
        ^
strbuf.c:557:9: note: the definition seen here
ssize_t strbuf_write(struct strbuf *sb, FILE *f)
        ^
/datasets/git/./strbuf.h:476:9: note: differing parameters are named here: ('stream'), in definition: ('f')
ssize_t strbuf_write(struct strbuf *sb, FILE *stream);
        ^                                     ~~~~~~
                                              f
/datasets/git/./strbuf.h:502:5: warning: function 'strbuf_getline' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int strbuf_getline(struct strbuf *sb, FILE *file);
    ^
strbuf.c:716:5: note: the definition seen here
int strbuf_getline(struct strbuf *sb, FILE *fp)
    ^
/datasets/git/./strbuf.h:502:5: note: differing parameters are named here: ('file'), in definition: ('fp')
int strbuf_getline(struct strbuf *sb, FILE *file);
    ^                                       ~~~~
                                            fp
/datasets/git/./strbuf.h:509:5: warning: function 'strbuf_getwholeline' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int strbuf_getwholeline(struct strbuf *sb, FILE *file, int term);
    ^
strbuf.c:625:5: note: the definition seen here
int strbuf_getwholeline(struct strbuf *sb, FILE *fp, int term)
    ^
/datasets/git/./strbuf.h:509:5: note: differing parameters are named here: ('file'), in definition: ('fp')
int strbuf_getwholeline(struct strbuf *sb, FILE *file, int term);
    ^                                            ~~~~
                                                 fp
/datasets/git/./strbuf.h:515:5: warning: function 'strbuf_appendwholeline' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int strbuf_appendwholeline(struct strbuf *sb, FILE *file, int term);
    ^
strbuf.c:697:5: note: the definition seen here
int strbuf_appendwholeline(struct strbuf *sb, FILE *fp, int term)
    ^
/datasets/git/./strbuf.h:515:5: note: differing parameters are named here: ('file'), in definition: ('fp')
int strbuf_appendwholeline(struct strbuf *sb, FILE *file, int term);
    ^                                               ~~~~
                                                    fp
/datasets/git/./strbuf.h:557:5: warning: function 'strbuf_normalize_path' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int strbuf_normalize_path(struct strbuf *sb);
    ^
strbuf.c:1156:5: note: the definition seen here
int strbuf_normalize_path(struct strbuf *src)
    ^
/datasets/git/./strbuf.h:557:5: note: differing parameters are named here: ('sb'), in definition: ('src')
int strbuf_normalize_path(struct strbuf *sb);
    ^                                    ~~
                                         src
/datasets/git/./strbuf.h:563:6: warning: function 'strbuf_stripspace' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
void strbuf_stripspace(struct strbuf *buf, int skip_comments);
     ^
strbuf.c:1122:6: note: the definition seen here
void strbuf_stripspace(struct strbuf *sb, int skip_comments)
     ^
/datasets/git/./strbuf.h:563:6: note: differing parameters are named here: ('buf'), in definition: ('sb')
void strbuf_stripspace(struct strbuf *buf, int skip_comments);
     ^                                ~~~
                                      sb
/datasets/git/./strbuf.h:631:6: warning: function 'strbuf_list_free' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
void strbuf_list_free(struct strbuf **list);
     ^
strbuf.c:209:6: note: the definition seen here
void strbuf_list_free(struct strbuf **sbs)
     ^
/datasets/git/./strbuf.h:631:6: note: differing parameters are named here: ('list'), in definition: ('sbs')
void strbuf_list_free(struct strbuf **list);
     ^                                ~~~~
                                      sbs
/datasets/git/./strbuf.h:667:6: warning: function 'strbuf_add_lines' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
void strbuf_add_lines(struct strbuf *sb,
     ^
strbuf.c:774:6: note: the definition seen here
void strbuf_add_lines(struct strbuf *out, const char *prefix,
     ^
/datasets/git/./strbuf.h:667:6: note: differing parameters are named here: ('sb'), in definition: ('out')
void strbuf_add_lines(struct strbuf *sb,
     ^                               ~~
                                     out
/datasets/git/./strbuf.h:676:6: warning: function 'strbuf_addstr_xml_quoted' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
void strbuf_addstr_xml_quoted(struct strbuf *sb,
     ^
strbuf.c:780:6: note: the definition seen here
void strbuf_addstr_xml_quoted(struct strbuf *buf, const char *s)
     ^
/datasets/git/./strbuf.h:676:6: note: differing parameters are named here: ('sb'), in definition: ('buf')
void strbuf_addstr_xml_quoted(struct strbuf *sb,
     ^                                       ~~
                                             buf
/datasets/git/./strbuf.h:723:6: warning: function 'strbuf_addstr_urlencode' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
void strbuf_addstr_urlencode(struct strbuf *sb, const char *name,
     ^
strbuf.c:838:6: note: the definition seen here
void strbuf_addstr_urlencode(struct strbuf *sb, const char *s,
     ^
/datasets/git/./strbuf.h:723:6: note: differing parameters are named here: ('name'), in definition: ('s')
void strbuf_addstr_urlencode(struct strbuf *sb, const char *name,
     ^                                                      ~~~~
                                                            s
/datasets/git/./string-list.h:141:5: warning: function 'for_each_string_list' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int for_each_string_list(struct string_list *list,
    ^
string-list.c:132:5: note: the definition seen here
int for_each_string_list(struct string_list *list,
    ^
/datasets/git/./string-list.h:141:5: note: differing parameters are named here: ('func'), in definition: ('fn')
int for_each_string_list(struct string_list *list,
    ^
./strmap.h:189:10: warning: Access to field 'default_value' results in a dereference of a null pointer (loaded from variable 'map') [clang-analyzer-core.NullDereference]
                return map->default_value;
                       ^
diffcore-rename.c:1403:9: note: Assuming 'dir_rename_count' is non-null
        assert(!dir_rename_count || strmap_empty(dir_rename_count));
               ^
/usr/include/assert.h:109:11: note: expanded from macro 'assert'
      if (expr)                                                         \
          ^~~~
diffcore-rename.c:1403:9: note: Left side of '||' is false
        assert(!dir_rename_count || strmap_empty(dir_rename_count));
               ^
diffcore-rename.c:1403:2: note: Taking true branch
        assert(!dir_rename_count || strmap_empty(dir_rename_count));
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/diffcore-rename.c:1404:17: note: Assuming 'detect_rename' is not equal to DIFF_DETECT_COPY
        want_copies = (detect_rename == DIFF_DETECT_COPY);
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:1405:6: note: Assuming 'dirs_removed' is null
        if (dirs_removed && (break_idx || want_copies))
            ^~~~~~~~~~~~
/datasets/git/diffcore-rename.c:1405:19: note: Left side of '&&' is false
        if (dirs_removed && (break_idx || want_copies))
                         ^
/datasets/git/diffcore-rename.c:1407:6: note: Assuming 'break_idx' is null
        if (break_idx && relevant_sources)
            ^~~~~~~~~
/datasets/git/diffcore-rename.c:1407:16: note: Left side of '&&' is false
        if (break_idx && relevant_sources)
                      ^
/datasets/git/diffcore-rename.c:1409:6: note: Assuming 'minimum_score' is not equal to 0
        if (!minimum_score)
            ^~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:1409:2: note: Taking false branch
        if (!minimum_score)
        ^
/datasets/git/diffcore-rename.c:1412:14: note: Assuming 'i' is >= field 'nr'
        for (i = 0; i < q->nr; i++) {
                    ^~~~~~~~~
/datasets/git/diffcore-rename.c:1412:2: note: Loop condition is false. Execution continues on line 1454
        for (i = 0; i < q->nr; i++) {
        ^
/datasets/git/diffcore-rename.c:1455:6: note: Assuming 'rename_dst_nr' is not equal to 0
        if (rename_dst_nr == 0 || rename_src_nr == 0)
            ^~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:1455:6: note: Left side of '||' is false
/datasets/git/diffcore-rename.c:1455:28: note: Assuming 'rename_src_nr' is not equal to 0
        if (rename_dst_nr == 0 || rename_src_nr == 0)
                                  ^~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:1455:2: note: Taking false branch
        if (rename_dst_nr == 0 || rename_src_nr == 0)
        ^
/datasets/git/diffcore-rename.c:1474:6: note: Assuming 'minimum_score' is not equal to MAX_SCORE
        if (minimum_score == MAX_SCORE)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:1474:2: note: Taking false branch
        if (minimum_score == MAX_SCORE)
        ^
/datasets/git/diffcore-rename.c:1479:6: note: 'want_copies' is 0
        if (want_copies || break_idx) {
            ^~~~~~~~~~~
/datasets/git/diffcore-rename.c:1479:6: note: Left side of '||' is false
/datasets/git/diffcore-rename.c:1479:21: note: Assuming 'break_idx' is null
        if (want_copies || break_idx) {
                           ^~~~~~~~~
/datasets/git/diffcore-rename.c:1479:2: note: Taking false branch
        if (want_copies || break_idx) {
        ^
/datasets/git/diffcore-rename.c:1491:27: note: Assuming the environment variable does not exist
                char *basename_factor = getenv("GIT_BASENAME_FACTOR");
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:1494:7: note: 'basename_factor' is null
                if (basename_factor)
                    ^~~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:1494:3: note: Taking false branch
                if (basename_factor)
                ^
/datasets/git/diffcore-rename.c:1496:10: note: Assuming the condition is true
                assert(factor >= 0.0 && factor <= 1.0);
                       ^
/usr/include/assert.h:109:11: note: expanded from macro 'assert'
      if (expr)                                                         \
          ^~~~
/datasets/git/diffcore-rename.c:1496:10: note: Left side of '&&' is true
                assert(factor >= 0.0 && factor <= 1.0);
                       ^
/datasets/git/diffcore-rename.c:1496:27: note: Assuming the condition is true
                assert(factor >= 0.0 && factor <= 1.0);
                                        ^
/usr/include/assert.h:109:11: note: expanded from macro 'assert'
      if (expr)                                                         \
          ^~~~
/datasets/git/diffcore-rename.c:1496:3: note: Taking true branch
                assert(factor >= 0.0 && factor <= 1.0);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/diffcore-rename.c:1510:3: note: Calling 'initialize_dir_rename_info'
                initialize_dir_rename_info(&info, relevant_sources,
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:577:7: note: 'dirs_removed' is null
        if (!dirs_removed && !relevant_sources) {
             ^~~~~~~~~~~~
/datasets/git/diffcore-rename.c:577:6: note: Left side of '&&' is true
        if (!dirs_removed && !relevant_sources) {
            ^
/datasets/git/diffcore-rename.c:577:23: note: Assuming 'relevant_sources' is non-null
        if (!dirs_removed && !relevant_sources) {
                             ^~~~~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:577:2: note: Taking false branch
        if (!dirs_removed && !relevant_sources) {
        ^
/datasets/git/diffcore-rename.c:584:13: note: Field 'dir_rename_count' is non-null
        if (!info->dir_rename_count) {
                   ^
/datasets/git/diffcore-rename.c:584:2: note: Taking false branch
        if (!info->dir_rename_count) {
        ^
/datasets/git/diffcore-rename.c:593:6: note: 'dirs_removed' is null
        if (dirs_removed || !relevant_sources) {
            ^~~~~~~~~~~~
/datasets/git/diffcore-rename.c:593:6: note: Left side of '||' is false
/datasets/git/diffcore-rename.c:593:23: note: 'relevant_sources' is non-null
        if (dirs_removed || !relevant_sources) {
                             ^~~~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:593:2: note: Taking false branch
        if (dirs_removed || !relevant_sources) {
        ^
/datasets/git/diffcore-rename.c:598:3: note: Loop condition is false. Execution continues on line 612
                strintmap_for_each_entry(relevant_sources, &iter, entry) {
                ^
./strmap.h:134:2: note: expanded from macro 'strintmap_for_each_entry'
        strmap_for_each_entry(&(mystrmap)->map, iter, var)
        ^
./strmap.h:112:2: note: expanded from macro 'strmap_for_each_entry'
        hashmap_for_each_entry(&(mystrmap)->map, iter, var, ent)
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/diffcore-rename.c:612:14: note: Assuming 'i' is >= 'rename_dst_nr'
        for (i = 0; i < rename_dst_nr; ++i) {
                    ^~~~~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:612:2: note: Loop condition is false. Execution continues on line 637
        for (i = 0; i < rename_dst_nr; ++i) {
        ^
/datasets/git/diffcore-rename.c:637:2: note: Loop condition is false. Execution continues on line 654
        strmap_for_each_entry(cached_pairs, &iter, entry) {
        ^
./strmap.h:112:2: note: expanded from macro 'strmap_for_each_entry'
        hashmap_for_each_entry(&(mystrmap)->map, iter, var, ent)
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/diffcore-rename.c:654:2: note: Loop condition is false. Execution continues on line 654
        strmap_for_each_entry(info->dir_rename_count, &iter, entry) {
        ^
./strmap.h:112:2: note: expanded from macro 'strmap_for_each_entry'
        hashmap_for_each_entry(&(mystrmap)->map, iter, var, ent)
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/diffcore-rename.c:1510:3: note: Returning from 'initialize_dir_rename_info'
                initialize_dir_rename_info(&info, relevant_sources,
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:1517:19: note: Calling 'find_basename_matches'
                rename_count += find_basename_matches(options,
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:955:14: note: Assuming 'i' is >= 'rename_src_nr'
        for (i = 0; i < rename_src_nr; ++i) {
                    ^~~~~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:955:2: note: Loop condition is false. Execution continues on line 969
        for (i = 0; i < rename_src_nr; ++i) {
        ^
/datasets/git/diffcore-rename.c:969:14: note: Assuming 'i' is >= 'rename_dst_nr'
        for (i = 0; i < rename_dst_nr; ++i) {
                    ^~~~~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:969:2: note: Loop condition is false. Execution continues on line 984
        for (i = 0; i < rename_dst_nr; ++i) {
        ^
/datasets/git/diffcore-rename.c:984:6: note: Assuming 'the_repository' is not equal to field 'repo'
        if (options->repo == the_repository && has_promisor_remote()) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:984:38: note: Left side of '&&' is false
        if (options->repo == the_repository && has_promisor_remote()) {
                                            ^
/datasets/git/diffcore-rename.c:990:14: note: 'i' is >= 'rename_src_nr'
        for (i = 0; i < rename_src_nr; ++i) {
                    ^
/datasets/git/diffcore-rename.c:990:2: note: Loop condition is false. Execution continues on line 1052
        for (i = 0; i < rename_src_nr; ++i) {
        ^
/datasets/git/diffcore-rename.c:1055:2: note: Returning without writing to 'info->setup', which participates in a condition later
        return renames;
        ^
/datasets/git/diffcore-rename.c:1517:19: note: Returning from 'find_basename_matches'
                rename_count += find_basename_matches(options,
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:1536:3: note: Calling 'handle_early_known_dir_renames'
                handle_early_known_dir_renames(&info, relevant_sources,
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:1224:7: note: 'dirs_removed' is null
        if (!dirs_removed || !relevant_sources)
             ^~~~~~~~~~~~
/datasets/git/diffcore-rename.c:1224:20: note: Left side of '||' is true
        if (!dirs_removed || !relevant_sources)
                          ^
/datasets/git/diffcore-rename.c:1225:3: note: Returning without writing to 'info->setup', which participates in a condition later
                return; /* nothing to cull */
                ^
/datasets/git/diffcore-rename.c:1536:3: note: Returning from 'handle_early_known_dir_renames'
                handle_early_known_dir_renames(&info, relevant_sources,
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:1546:6: note: Assuming 'num_destinations' is not equal to 0
        if (!num_destinations || !num_sources)
            ^~~~~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:1546:6: note: Left side of '||' is false
/datasets/git/diffcore-rename.c:1546:27: note: Assuming 'num_sources' is not equal to 0
        if (!num_destinations || !num_sources)
                                 ^~~~~~~~~~~~
/datasets/git/diffcore-rename.c:1546:2: note: Taking false branch
        if (!num_destinations || !num_sources)
        ^
/datasets/git/diffcore-rename.c:1549:2: note: Control jumps to 'case 1:'  at line 1551
        switch (too_many_rename_candidates(num_destinations, num_sources,
        ^
/datasets/git/diffcore-rename.c:1552:3: note: Control jumps to line 1633
                goto cleanup;
                ^
/datasets/git/diffcore-rename.c:1634:2: note: Loop condition is false.  Exiting loop
        DIFF_QUEUE_CLEAR(&outq);
        ^
./diffcore.h:155:2: note: expanded from macro 'DIFF_QUEUE_CLEAR'
        do { \
        ^
/datasets/git/diffcore-rename.c:1635:14: note: Assuming 'i' is >= field 'nr'
        for (i = 0; i < q->nr; i++) {
                    ^~~~~~~~~
/datasets/git/diffcore-rename.c:1635:2: note: Loop condition is false. Execution continues on line 1691
        for (i = 0; i < q->nr; i++) {
        ^
/datasets/git/diffcore-rename.c:1691:2: note: Loop condition is false.  Exiting loop
        diff_debug_queue("done copying original", &outq);
        ^
./diffcore.h:217:31: note: expanded from macro 'diff_debug_queue'
#define diff_debug_queue(a,b) do { /* nothing */ } while (0)
                              ^
/datasets/git/diffcore-rename.c:1695:2: note: Loop condition is false.  Exiting loop
        diff_debug_queue("done collapsing", q);
        ^
./diffcore.h:217:31: note: expanded from macro 'diff_debug_queue'
#define diff_debug_queue(a,b) do { /* nothing */ } while (0)
                              ^
/datasets/git/diffcore-rename.c:1697:14: note: Assuming 'i' is >= 'rename_dst_nr'
        for (i = 0; i < rename_dst_nr; i++)
                    ^~~~~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:1697:2: note: Loop condition is false. Execution continues on line 1701
        for (i = 0; i < rename_dst_nr; i++)
        ^
/datasets/git/diffcore-rename.c:1701:47: note: 'dir_rename_count' is not equal to NULL
        cleanup_dir_rename_info(&info, dirs_removed, dir_rename_count != NULL);
                                                     ^~~~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:1701:33: note: Passing null pointer value via 2nd parameter 'dirs_removed'
        cleanup_dir_rename_info(&info, dirs_removed, dir_rename_count != NULL);
                                       ^~~~~~~~~~~~
/datasets/git/diffcore-rename.c:1701:2: note: Calling 'cleanup_dir_rename_info'
        cleanup_dir_rename_info(&info, dirs_removed, dir_rename_count != NULL);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:686:6: note: Assuming field 'setup' is not equal to 0
        if (!info->setup)
            ^~~~~~~~~~~~
/datasets/git/diffcore-rename.c:686:2: note: Taking false branch
        if (!info->setup)
        ^
/datasets/git/diffcore-rename.c:696:6: note: Assuming field 'relevant_source_dirs' is null
        if (info->relevant_source_dirs &&
            ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:696:33: note: Left side of '&&' is false
        if (info->relevant_source_dirs &&
                                       ^
/datasets/git/diffcore-rename.c:703:7: note: 'keep_dir_rename_count' is 1
        if (!keep_dir_rename_count) {
             ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:703:2: note: Taking false branch
        if (!keep_dir_rename_count) {
        ^
/datasets/git/diffcore-rename.c:717:2: note: Calling 'container_of_or_null_offset'
        strmap_for_each_entry(info->dir_rename_count, &iter, entry) {
        ^
/datasets/git/./strmap.h:112:2: note: expanded from macro 'strmap_for_each_entry'
        hashmap_for_each_entry(&(mystrmap)->map, iter, var, ent)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./hashmap.h:504:13: note: expanded from macro 'hashmap_for_each_entry'
             var = hashmap_iter_first_entry_offset(map, iter, \
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./hashmap.h:496:2: note: expanded from macro 'hashmap_iter_first_entry_offset'
        container_of_or_null_offset(hashmap_iter_first(map, iter), offset)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1581:9: note: Assuming 'ptr' is non-null
        return ptr ? (char *)ptr - offset : NULL;
               ^~~
/datasets/git/./git-compat-util.h:1581:9: note: '?' condition is true
/datasets/git/./git-compat-util.h:1581:2: note: Returning pointer, which participates in a condition later
        return ptr ? (char *)ptr - offset : NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:717:2: note: Returning from 'container_of_or_null_offset'
        strmap_for_each_entry(info->dir_rename_count, &iter, entry) {
        ^
/datasets/git/./strmap.h:112:2: note: expanded from macro 'strmap_for_each_entry'
        hashmap_for_each_entry(&(mystrmap)->map, iter, var, ent)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./hashmap.h:504:13: note: expanded from macro 'hashmap_for_each_entry'
             var = hashmap_iter_first_entry_offset(map, iter, \
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./hashmap.h:496:2: note: expanded from macro 'hashmap_iter_first_entry_offset'
        container_of_or_null_offset(hashmap_iter_first(map, iter), offset)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:717:2: note: Loop condition is true.  Entering loop body
        strmap_for_each_entry(info->dir_rename_count, &iter, entry) {
        ^
/datasets/git/./strmap.h:112:2: note: expanded from macro 'strmap_for_each_entry'
        hashmap_for_each_entry(&(mystrmap)->map, iter, var, ent)
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/diffcore-rename.c:721:22: note: Passing null pointer value via 1st parameter 'map'
                if (!strintmap_get(dirs_removed, source_dir)) {
                                   ^~~~~~~~~~~~
/datasets/git/diffcore-rename.c:721:8: note: Calling 'strintmap_get'
                if (!strintmap_get(dirs_removed, source_dir)) {
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./strmap.h:188:6: note: Assuming 'result' is null
        if (!result)
            ^~~~~~~
/datasets/git/./strmap.h:188:2: note: Taking true branch
        if (!result)
        ^
/datasets/git/./strmap.h:189:10: note: Access to field 'default_value' results in a dereference of a null pointer (loaded from variable 'map')
                return map->default_value;
                       ^~~
./submodule-config.h:67:25: warning: function 'submodule_from_name' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
const struct submodule *submodule_from_name(struct repository *r,
                        ^
submodule-config.c:716:25: note: the definition seen here
const struct submodule *submodule_from_name(struct repository *r,
                        ^
/datasets/git/./submodule-config.h:67:25: note: differing parameters are named here: ('commit_or_tree'), in definition: ('treeish_name')
const struct submodule *submodule_from_name(struct repository *r,
                        ^
/datasets/git/./submodule-config.h:75:25: warning: function 'submodule_from_path' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
const struct submodule *submodule_from_path(struct repository *r,
                        ^
submodule-config.c:724:25: note: the definition seen here
const struct submodule *submodule_from_path(struct repository *r,
                        ^
/datasets/git/./submodule-config.h:75:25: note: differing parameters are named here: ('commit_or_tree'), in definition: ('treeish_name')
const struct submodule *submodule_from_path(struct repository *r,
                        ^
/datasets/git/./submodule-config.h:135:6: warning: function 'submodules_of_tree' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
void submodules_of_tree(struct repository *r,
     ^
submodule-config.c:781:6: note: the definition seen here
void submodules_of_tree(struct repository *r,
     ^
/datasets/git/./submodule-config.h:135:6: note: differing parameters are named here: ('ret'), in definition: ('out')
void submodules_of_tree(struct repository *r,
     ^
./submodule.h:118:5: warning: function 'submodule_touches_in_range' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int submodule_touches_in_range(struct repository *r,
    ^
submodule.c:1344:5: note: the definition seen here
int submodule_touches_in_range(struct repository *r,
    ^
/datasets/git/./submodule.h:118:5: note: differing parameters are named here: ('a', 'b'), in definition: ('excl_oid', 'incl_oid')
int submodule_touches_in_range(struct repository *r,
    ^
/datasets/git/./submodule.h:165:6: warning: function 'prepare_submodule_repo_env' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
void prepare_submodule_repo_env(struct strvec *env);
     ^
submodule.c:504:6: note: the definition seen here
void prepare_submodule_repo_env(struct strvec *out)
     ^
/datasets/git/./submodule.h:165:6: note: differing parameters are named here: ('env'), in definition: ('out')
void prepare_submodule_repo_env(struct strvec *env);
     ^                                         ~~~
                                               out
./trace.h:268:6: warning: function 'trace_performance_fl' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
void trace_performance_fl(const char *file, int line,
     ^
trace.c:245:6: note: the definition seen here
void trace_performance_fl(const char *file, int line, uint64_t nanos,
     ^
/datasets/git/./trace.h:268:6: note: differing parameters are named here: ('fmt'), in definition: ('format')
void trace_performance_fl(const char *file, int line,
     ^
/datasets/git/./trace.h:271:6: warning: function 'trace_performance_leave_fl' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
void trace_performance_leave_fl(const char *file, int line,
     ^
trace.c:254:6: note: the definition seen here
void trace_performance_leave_fl(const char *file, int line,
     ^
/datasets/git/./trace.h:271:6: note: differing parameters are named here: ('fmt'), in definition: ('format')
void trace_performance_leave_fl(const char *file, int line,
     ^
./trace2.h:464:6: warning: function 'trace2_data_json_fl' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
void trace2_data_json_fl(const char *file, int line, const char *category,
     ^
trace2.c:821:6: note: the definition seen here
void trace2_data_json_fl(const char *file, int line, const char *category,
     ^
/datasets/git/./trace2.h:464:6: note: differing parameters are named here: ('jw'), in definition: ('value')
void trace2_data_json_fl(const char *file, int line, const char *category,
     ^
./transport.h:246:5: warning: function 'transport_push' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int transport_push(struct repository *repo,
    ^
transport.c:1277:5: note: the definition seen here
int transport_push(struct repository *r,
    ^
/datasets/git/./transport.h:246:5: note: differing parameters are named here: ('connection'), in definition: ('transport')
int transport_push(struct repository *repo,
    ^
./tree.h:21:5: warning: function 'parse_tree_gently' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int parse_tree_gently(struct tree *tree, int quiet_on_missing);
    ^
tree.c:124:5: note: the definition seen here
int parse_tree_gently(struct tree *item, int quiet_on_missing)
    ^
/datasets/git/./tree.h:21:5: note: differing parameters are named here: ('tree'), in definition: ('item')
int parse_tree_gently(struct tree *tree, int quiet_on_missing);
    ^                              ~~~~
                                   item
/datasets/git/./varint.h:5:47: warning: all parameters should be named in a function [hicpp-named-parameter]
uintmax_t decode_varint(const unsigned char **);
                                              ^
                                               /*bufp*/
varint.c:7:2: note: inferred assignment of ID-dependent value from ID-dependent variable buf [altera-id-dependent-backward-branch]
        unsigned char c = *buf++;
        ^
./walker.h:31:5: warning: function 'walker_fetch' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int walker_fetch(struct walker *impl, int targets, char **target,
    ^
walker.c:271:5: note: the definition seen here
int walker_fetch(struct walker *walker, int targets, char **target,
    ^
/datasets/git/./walker.h:31:5: note: differing parameters are named here: ('impl'), in definition: ('walker')
int walker_fetch(struct walker *impl, int targets, char **target,
    ^                           ~~~~
                                walker
./xdiff-interface.h:51:6: warning: function 'xdiff_set_find_func' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
void xdiff_set_find_func(xdemitconf_t *xecfg, const char *line, int cflags);
     ^
xdiff-interface.c:245:6: note: the definition seen here
void xdiff_set_find_func(xdemitconf_t *xecfg, const char *value, int cflags)
     ^
/datasets/git/./xdiff-interface.h:51:6: note: differing parameters are named here: ('line'), in definition: ('value')
void xdiff_set_find_func(xdemitconf_t *xecfg, const char *line, int cflags);
     ^                                                    ~~~~
                                                          value
/datasets/git/abspath.c:10:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/abspath.c:21:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (offset < len && !is_dir_sep(path->buf[len - 1]))
        ^
/datasets/git/abspath.c:21:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'offset' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (offset < len && !is_dir_sep(path->buf[len - 1]))
               ^
/datasets/git/abspath.c:21:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (offset < len && !is_dir_sep(path->buf[len - 1]))
                                                               ^
                                                                {
/datasets/git/abspath.c:24:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (offset < len && is_dir_sep(path->buf[len - 1]))
        ^
/datasets/git/abspath.c:24:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'offset' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (offset < len && is_dir_sep(path->buf[len - 1]))
               ^
/datasets/git/abspath.c:24:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (offset < len && is_dir_sep(path->buf[len - 1]))
                                                              ^
                                                               {
/datasets/git/abspath.c:31:32: warning: 2 adjacent parameters of 'get_next_component' of similar type ('struct strbuf *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void get_next_component(struct strbuf *next, struct strbuf *remaining)
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/abspath.c:31:47: note: the first parameter in the range is 'next'
static void get_next_component(struct strbuf *next, struct strbuf *remaining)
                                              ^~~~
/datasets/git/abspath.c:31:68: note: the last parameter in the range is 'remaining'
static void get_next_component(struct strbuf *next, struct strbuf *remaining)
                                                                   ^~~~~~~~~
/datasets/git/abspath.c:40:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (start = remaining->buf; is_dir_sep(*start); start++)
        ^
/datasets/git/abspath.c:40:31: warning: backward branch (for loop) is ID-dependent due to variable reference to 'start' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (start = remaining->buf; is_dir_sep(*start); start++)
                                     ^
/datasets/git/./git-compat-util.h:451:20: note: expanded from macro 'is_dir_sep'
#define is_dir_sep git_is_dir_sep
                   ^
/datasets/git/abspath.c:40:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (start = remaining->buf; is_dir_sep(*start); start++)
                                                                 ^
                                                                  {
/datasets/git/abspath.c:43:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (end = start; *end && !is_dir_sep(*end); end++)
        ^
/datasets/git/abspath.c:43:20: warning: backward branch (for loop) is ID-dependent due to variable reference to 'end' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (end = start; *end && !is_dir_sep(*end); end++)
                          ^
/datasets/git/abspath.c:43:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (end = start; *end && !is_dir_sep(*end); end++)
                                                           ^
                                                            {
/datasets/git/abspath.c:73:1: warning: replace macro with enum [modernize-macro-to-enum]
#define REALPATH_MANY_MISSING (1 << 0)
^~~~~~~~
                              =       ,
/datasets/git/abspath.c:73:9: warning: macro 'REALPATH_MANY_MISSING' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define REALPATH_MANY_MISSING (1 << 0)
        ^
/datasets/git/abspath.c:75:9: warning: macro 'REALPATH_DIE_ON_ERROR' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define REALPATH_DIE_ON_ERROR (1 << 1)
        ^
/datasets/git/abspath.c:77:14: warning: function 'strbuf_realpath_1' has cognitive complexity of 57 (threshold 25) [readability-function-cognitive-complexity]
static char *strbuf_realpath_1(struct strbuf *resolved, const char *path,
             ^
/datasets/git/abspath.c:87:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!*path) {
        ^
/datasets/git/abspath.c:88:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (flags & REALPATH_DIE_ON_ERROR)
                ^
/datasets/git/abspath.c:90:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/abspath.c:97:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!resolved->len) {
        ^
/datasets/git/abspath.c:99:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (strbuf_getcwd(resolved)) {
                ^
/datasets/git/abspath.c:100:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (flags & REALPATH_DIE_ON_ERROR)
                        ^
/datasets/git/abspath.c:102:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/abspath.c:108:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (remaining.len > 0) {
        ^
/datasets/git/abspath.c:111:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (next.len == 0) {
                ^
/datasets/git/abspath.c:113:10: note: +1, nesting level increased to 2
                } else if (next.len == 1 && !strcmp(next.buf, ".")) {
                       ^
/datasets/git/abspath.c:113:28: note: +1
                } else if (next.len == 1 && !strcmp(next.buf, ".")) {
                                         ^
/datasets/git/abspath.c:115:10: note: +1, nesting level increased to 2
                } else if (next.len == 2 && !strcmp(next.buf, "..")) {
                       ^
/datasets/git/abspath.c:115:28: note: +1
                } else if (next.len == 2 && !strcmp(next.buf, "..")) {
                                         ^
/datasets/git/abspath.c:122:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!is_dir_sep(resolved->buf[resolved->len - 1]))
                ^
/datasets/git/abspath.c:126:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (lstat(resolved->buf, &st)) {
                ^
/datasets/git/abspath.c:128:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (errno != ENOENT ||
                        ^
/datasets/git/abspath.c:128:24: note: +1
                        if (errno != ENOENT ||
                                            ^
/datasets/git/abspath.c:129:41: note: +1
                           (!(flags & REALPATH_MANY_MISSING) && remaining.len)) {
                                                             ^
/datasets/git/abspath.c:130:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (flags & REALPATH_DIE_ON_ERROR)
                                ^
/datasets/git/abspath.c:133:5: note: +1, nesting level increased to 4
                                else
                                ^
/datasets/git/abspath.c:136:10: note: +1, nesting level increased to 2
                } else if (S_ISLNK(st.st_mode)) {
                       ^
/datasets/git/abspath.c:140:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (num_symlinks++ > MAXSYMLINKS) {
                        ^
/datasets/git/abspath.c:143:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (flags & REALPATH_DIE_ON_ERROR)
                                ^
/datasets/git/abspath.c:146:5: note: +1, nesting level increased to 4
                                else
                                ^
/datasets/git/abspath.c:152:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (len < 0) {
                        ^
/datasets/git/abspath.c:153:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (flags & REALPATH_DIE_ON_ERROR)
                                ^
/datasets/git/abspath.c:156:5: note: +1, nesting level increased to 4
                                else
                                ^
/datasets/git/abspath.c:160:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (is_absolute_path(symlink.buf)) {
                        ^
/datasets/git/abspath.c:163:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/abspath.c:176:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (remaining.len) {
                        ^
/datasets/git/abspath.c:196:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!retval)
        ^
/datasets/git/abspath.c:80:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct strbuf remaining = STRBUF_INIT;
        ^
/datasets/git/abspath.c:85:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/abspath.c:88:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flags & REALPATH_DIE_ON_ERROR)
                    ^~~~~
/datasets/git/abspath.c:88:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flags & REALPATH_DIE_ON_ERROR)
                            ^
/datasets/git/abspath.c:75:32: note: expanded from macro 'REALPATH_DIE_ON_ERROR'
#define REALPATH_DIE_ON_ERROR (1 << 1)
                               ^
/datasets/git/abspath.c:88:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (flags & REALPATH_DIE_ON_ERROR)
                                                  ^
                                                   {
/datasets/git/abspath.c:90:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/abspath.c:100:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (flags & REALPATH_DIE_ON_ERROR)
                            ^~~~~
/datasets/git/abspath.c:100:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (flags & REALPATH_DIE_ON_ERROR)
                                    ^
/datasets/git/abspath.c:75:32: note: expanded from macro 'REALPATH_DIE_ON_ERROR'
#define REALPATH_DIE_ON_ERROR (1 << 1)
                               ^
/datasets/git/abspath.c:100:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (flags & REALPATH_DIE_ON_ERROR)
                                                          ^
                                                           {
/datasets/git/abspath.c:102:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/abspath.c:108:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (remaining.len > 0) {
        ^
/datasets/git/abspath.c:108:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'remaining' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (remaining.len > 0) {
               ^
/datasets/git/abspath.c:111:22: warning: repeated branch in conditional chain [bugprone-branch-clone]
                if (next.len == 0) {
                                   ^
/datasets/git/abspath.c:113:4: note: end of the original
                } else if (next.len == 1 && !strcmp(next.buf, ".")) {
                 ^
/datasets/git/abspath.c:113:55: note: clone 1 starts here
                } else if (next.len == 1 && !strcmp(next.buf, ".")) {
                                                                    ^
/datasets/git/abspath.c:113:5: warning: do not use 'else' after 'continue' [llvm-else-after-return,readability-else-after-return]
                } else if (next.len == 1 && !strcmp(next.buf, ".")) {
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/abspath.c:122:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!is_dir_sep(resolved->buf[resolved->len - 1]))
                                                                  ^
                                                                   {
/datasets/git/abspath.c:129:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                           (!(flags & REALPATH_MANY_MISSING) && remaining.len)) {
                              ^~~~~
/datasets/git/abspath.c:129:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                           (!(flags & REALPATH_MANY_MISSING) && remaining.len)) {
                                      ^
/datasets/git/abspath.c:73:32: note: expanded from macro 'REALPATH_MANY_MISSING'
#define REALPATH_MANY_MISSING (1 << 0)
                               ^
/datasets/git/abspath.c:130:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (flags & REALPATH_DIE_ON_ERROR)
                                    ^~~~~
/datasets/git/abspath.c:130:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (flags & REALPATH_DIE_ON_ERROR)
                                            ^
/datasets/git/abspath.c:75:32: note: expanded from macro 'REALPATH_DIE_ON_ERROR'
#define REALPATH_DIE_ON_ERROR (1 << 1)
                               ^
/datasets/git/abspath.c:130:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (flags & REALPATH_DIE_ON_ERROR)
                                                                  ^
                                                                   {
/datasets/git/abspath.c:133:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                else
                                    ^
                                     {
/datasets/git/abspath.c:137:12: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
                        ssize_t len;
                                ^
                                    = 0
/datasets/git/abspath.c:143:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (flags & REALPATH_DIE_ON_ERROR)
                                    ^~~~~
/datasets/git/abspath.c:143:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (flags & REALPATH_DIE_ON_ERROR)
                                            ^
/datasets/git/abspath.c:75:32: note: expanded from macro 'REALPATH_DIE_ON_ERROR'
#define REALPATH_DIE_ON_ERROR (1 << 1)
                               ^
/datasets/git/abspath.c:143:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (flags & REALPATH_DIE_ON_ERROR)
                                                                  ^
                                                                   {
/datasets/git/abspath.c:146:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                else
                                    ^
                                     {
/datasets/git/abspath.c:153:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (flags & REALPATH_DIE_ON_ERROR)
                                    ^~~~~
/datasets/git/abspath.c:153:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (flags & REALPATH_DIE_ON_ERROR)
                                            ^
/datasets/git/abspath.c:75:32: note: expanded from macro 'REALPATH_DIE_ON_ERROR'
#define REALPATH_DIE_ON_ERROR (1 << 1)
                               ^
/datasets/git/abspath.c:153:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (flags & REALPATH_DIE_ON_ERROR)
                                                                  ^
                                                                   {
/datasets/git/abspath.c:156:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                else
                                    ^
                                     {
/datasets/git/abspath.c:196:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!retval)
                    ^
                     {
/datasets/git/abspath.c:218:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                 die_on_error ? REALPATH_DIE_ON_ERROR : 0);
                                                ^
/datasets/git/abspath.c:75:32: note: expanded from macro 'REALPATH_DIE_ON_ERROR'
#define REALPATH_DIE_ON_ERROR (1 << 1)
                               ^
/datasets/git/abspath.c:229:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                 ((die_on_error ? REALPATH_DIE_ON_ERROR : 0) |
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/abspath.c:229:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                 ((die_on_error ? REALPATH_DIE_ON_ERROR : 0) |
                                                  ^
/datasets/git/abspath.c:75:32: note: expanded from macro 'REALPATH_DIE_ON_ERROR'
#define REALPATH_DIE_ON_ERROR (1 << 1)
                               ^
/datasets/git/abspath.c:230:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                  REALPATH_MANY_MISSING));
                                  ^
/datasets/git/abspath.c:73:32: note: expanded from macro 'REALPATH_MANY_MISSING'
#define REALPATH_MANY_MISSING (1 << 0)
                               ^
/datasets/git/abspath.c:238:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strbuf_realpath(&realpath, path, die_on_error))
                                                           ^
                                                            {
/datasets/git/abspath.c:252:23: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        static struct strbuf sb = STRBUF_INIT;
                             ^
/datasets/git/abspath.c:260:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/abspath.c:265:23: warning: 2 adjacent parameters of 'prefix_filename' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
char *prefix_filename(const char *pfx, const char *arg)
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/abspath.c:265:35: note: the first parameter in the range is 'pfx'
char *prefix_filename(const char *pfx, const char *arg)
                                  ^~~
/datasets/git/abspath.c:265:52: note: the last parameter in the range is 'arg'
char *prefix_filename(const char *pfx, const char *arg)
                                                   ^~~
/datasets/git/abspath.c:270:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!pfx_len)
                     ^
                      {
/datasets/git/abspath.c:272:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (is_absolute_path(arg))
                                       ^
                                        {
/datasets/git/abspath.c:273:3: warning: Value stored to 'pfx_len' is never read [clang-analyzer-deadcode.DeadStores]
                pfx_len = 0;
                ^         ~
/datasets/git/abspath.c:273:3: note: Value stored to 'pfx_len' is never read
                pfx_len = 0;
                ^         ~
/datasets/git/abspath.c:274:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/add-interactive.c:6:1: warning: #includes are not sorted properly [llvm-include-order]
#include "revision.h"
^        ~~~~~~~~~~~~
         "dir.h"
/datasets/git/add-interactive.c:14:43: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void init_color(struct repository *r, struct add_i_state *s,
                                          ^
/datasets/git/add-interactive.c:14:66: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void init_color(struct repository *r, struct add_i_state *s,
                                                                 ^
/datasets/git/add-interactive.c:19:14: warning: variable 'value' is not initialized [cppcoreguidelines-init-variables]
        const char *value;
                    ^
                          = NULL
/datasets/git/add-interactive.c:21:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!s->use_color)
                          ^
                           {
/datasets/git/add-interactive.c:24:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                 color_parse(value, dst))
                                         ^
                                          {
/datasets/git/add-interactive.c:30:43: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
void init_add_i_state(struct add_i_state *s, struct repository *r)
                                          ^
/datasets/git/add-interactive.c:30:65: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void init_add_i_state(struct add_i_state *s, struct repository *r)
                                                                ^
/datasets/git/add-interactive.c:32:14: warning: variable 'value' is not initialized [cppcoreguidelines-init-variables]
        const char *value;
                    ^
                          = NULL
/datasets/git/add-interactive.c:36:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_config_get_value(r, "color.interactive", &value))
                                                                  ^
                                                                   {
/datasets/git/add-interactive.c:38:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/add-interactive.c:53:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(s->context_color, "fall back"))
                                                   ^
                                                    {
/datasets/git/add-interactive.c:64:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(s->interactive_diff_filter);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/add-interactive.c:68:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(s->interactive_diff_algorithm);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/add-interactive.c:73:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (s->use_single_key)
                              ^
                               {
/datasets/git/add-interactive.c:77:44: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
void clear_add_i_state(struct add_i_state *s)
                                           ^
/datasets/git/add-interactive.c:79:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(s->interactive_diff_filter);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/add-interactive.c:80:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(s->interactive_diff_algorithm);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/add-interactive.c:81:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(s, 0, sizeof(*s));
        ^~~~~~
/datasets/git/add-interactive.c:81:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(s, 0, sizeof(*s));
        ^~~~~~
/datasets/git/add-interactive.c:101:8: warning: accessing fields in struct 'prefix_item_list' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct prefix_item_list {
       ^
/datasets/git/add-interactive.c:101:8: note: use "__attribute__((aligned(128)))" to align struct 'prefix_item_list' to 128 bytes
/datasets/git/add-interactive.c:118:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(list->selected);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/add-interactive.c:121:59: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static void extend_prefix_length(struct string_list_item *p,
                                                          ^
/datasets/git/add-interactive.c:126:15: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (!*len || memcmp(p->string, other_string, *len))
                     ^
                                                           != 0
/datasets/git/add-interactive.c:126:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!*len || memcmp(p->string, other_string, *len))
                                                           ^
                                                            {
/datasets/git/add-interactive.c:129:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/add-interactive.c:130:8: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                char c = p->string[*len];
                     ^
/datasets/git/add-interactive.c:138:37: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!c || ++*len > max_length || !isascii(c)) {
                                                  ^
/datasets/git/./git-compat-util.h:1216:22: note: expanded from macro 'isascii'
#define isascii(x) (((x) & ~0x7f) == 0)
                     ^~~
/datasets/git/add-interactive.c:138:37: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                if (!c || ++*len > max_length || !isascii(c)) {
                                                  ^
/datasets/git/./git-compat-util.h:1216:28: note: expanded from macro 'isascii'
#define isascii(x) (((x) & ~0x7f) == 0)
                           ^~~~~
/datasets/git/add-interactive.c:143:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (c != other_string[*len - 1])
                                                ^
                                                 {
/datasets/git/add-interactive.c:150:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i;
               ^
                 = 0
/datasets/git/add-interactive.c:150:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/add-interactive.c:171:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                size_t *len = item->util;
                ^
/datasets/git/add-interactive.c:152:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (list->sorted.nr == list->items.nr)
                                              ^
                                               {
/datasets/git/add-interactive.c:161:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < list->items.nr; i++) {
        ^
/datasets/git/./string-list.h:89:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        size_t nr;
        ^
/datasets/git/add-interactive.c:161:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < list->items.nr; i++) {
                    ^
/datasets/git/add-interactive.c:168:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < list->sorted.nr; i++) {
                    ^
/datasets/git/add-interactive.c:174:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (*len < list->min_length) {
                ^
/datasets/git/add-interactive.c:174:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (*len < list->min_length) {
                       ^
/datasets/git/add-interactive.c:175:9: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                        char c = item->string[(*len)++];
                             ^
/datasets/git/add-interactive.c:177:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!c || !isascii(c)) {
                                   ^
/datasets/git/./git-compat-util.h:1216:22: note: expanded from macro 'isascii'
#define isascii(x) (((x) & ~0x7f) == 0)
                     ^~~
/datasets/git/add-interactive.c:177:15: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                        if (!c || !isascii(c)) {
                                   ^
/datasets/git/./git-compat-util.h:1216:28: note: expanded from macro 'isascii'
#define isascii(x) (((x) & ~0x7f) == 0)
                           ^~~~~
/datasets/git/add-interactive.c:183:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (i > 0)
                          ^
                           {
/datasets/git/add-interactive.c:186:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (i + 1 < list->sorted.nr)
                                            ^
                                             {
/datasets/git/add-interactive.c:195:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/add-interactive.c:197:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (list->items.nr != list->sorted.nr)
                                              ^
                                               {
/datasets/git/add-interactive.c:202:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (index < 0)
                      ^
                       {
/datasets/git/add-interactive.c:205:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                 starts_with(list->sorted.items[index - 1].string, string))
                                                                           ^
                                                                            {
/datasets/git/add-interactive.c:206:3: warning: repeated branch in conditional chain [bugprone-branch-clone]
                return -1;
                ^
/datasets/git/add-interactive.c:206:12: note: end of the original
                return -1;
                         ^
/datasets/git/add-interactive.c:209:3: note: clone 1 starts here
                return -1;
                ^
/datasets/git/add-interactive.c:214:3: note: clone 2 starts here
                return -1;
                ^
/datasets/git/add-interactive.c:208:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                 starts_with(list->sorted.items[index + 1].string, string))
                                                                           ^
                                                                            {
/datasets/git/add-interactive.c:211:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                 starts_with(list->sorted.items[index].string, string))
                                                                       ^
                                                                        {
/datasets/git/add-interactive.c:213:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/add-interactive.c:218:8: warning: accessing fields in struct 'list_options' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct list_options {
       ^
/datasets/git/add-interactive.c:218:8: note: use "__attribute__((aligned(32)))" to align struct 'list_options' to 32 bytes
/datasets/git/add-interactive.c:221:25: warning: parameter name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        void (*print_item)(int i, int selected, struct string_list_item *item,
                               ^
/datasets/git/add-interactive.c:226:38: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void list(struct add_i_state *s, struct string_list *list, int *selected,
                                     ^
/datasets/git/add-interactive.c:229:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, last_lf = 0;
        ^~~~~~~~~~~~~~~~~~~
/datasets/git/add-interactive.c:229:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, last_lf = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/add-interactive.c:229:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/add-interactive.c:231:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!list->nr)
                      ^
                       {
/datasets/git/add-interactive.c:234:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->header)
                         ^
                          {
/datasets/git/add-interactive.c:238:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < list->nr; i++) {
        ^
/datasets/git/add-interactive.c:238:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < list->nr; i++) {
                    ^
/datasets/git/add-interactive.c:252:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!last_lf)
                     ^
                      {
/datasets/git/add-interactive.c:255:8: warning: accessing fields in struct 'list_and_choose_options' is inefficient due to padding; only needs 52 bytes but is using 56 bytes [altera-struct-pack-align]
struct list_and_choose_options {
       ^
/datasets/git/add-interactive.c:255:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'list_and_choose_options'
/datasets/git/add-interactive.c:255:8: warning: accessing fields in struct 'list_and_choose_options' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct list_and_choose_options {
       ^
/datasets/git/add-interactive.c:255:8: note: use "__attribute__((aligned(64)))" to align struct 'list_and_choose_options' to 64 bytes
/datasets/git/add-interactive.c:260:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                SINGLETON = (1<<0),
                             ^
/datasets/git/add-interactive.c:261:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                IMMEDIATE = (1<<1),
                             ^
/datasets/git/add-interactive.c:263:41: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
        void (*print_help)(struct add_i_state *s);
                                               ^
/datasets/git/add-interactive.c:266:1: warning: replace macro with enum [modernize-macro-to-enum]
#define LIST_AND_CHOOSE_ERROR (-1)
^~~~~~~~
                              =   ,
/datasets/git/add-interactive.c:266:9: warning: macro 'LIST_AND_CHOOSE_ERROR' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define LIST_AND_CHOOSE_ERROR (-1)
        ^
/datasets/git/add-interactive.c:267:9: warning: macro 'LIST_AND_CHOOSE_QUIT' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define LIST_AND_CHOOSE_QUIT  (-2)
        ^
/datasets/git/add-interactive.c:276:16: warning: function 'list_and_choose' has cognitive complexity of 84 (threshold 25) [readability-function-cognitive-complexity]
static ssize_t list_and_choose(struct add_i_state *s,
               ^
/datasets/git/add-interactive.c:284:26: note: +1, including nesting penalty of 0, nesting level increased to 1
        ssize_t res = singleton ? LIST_AND_CHOOSE_ERROR : 0;
                                ^
/datasets/git/add-interactive.c:286:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!singleton) {
        ^
/datasets/git/add-interactive.c:291:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (singleton && !immediate)
        ^
/datasets/git/add-interactive.c:291:16: note: +1
        if (singleton && !immediate)
                      ^
/datasets/git/add-interactive.c:296:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (;;) {
        ^
/datasets/git/add-interactive.c:304:19: note: +2, including nesting penalty of 1, nesting level increased to 2
                fputs(singleton ? "> " : ">> ", stdout);
                                ^
/datasets/git/add-interactive.c:307:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (git_read_line_interactively(&input) == EOF) {
                ^
/datasets/git/add-interactive.c:309:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (immediate)
                        ^
/datasets/git/add-interactive.c:314:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!input.len)
                ^
/datasets/git/add-interactive.c:317:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(input.buf, "?")) {
                ^
/datasets/git/add-interactive.c:323:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (;;) {
                ^
/datasets/git/add-interactive.c:329:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!sep) {
                        ^
/datasets/git/add-interactive.c:330:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!*p)
                                ^
/datasets/git/add-interactive.c:337:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (*p == '-') {
                        ^
/datasets/git/add-interactive.c:343:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (sep == 1 && *p == '*') {
                        ^
/datasets/git/add-interactive.c:343:17: note: +1
                        if (sep == 1 && *p == '*') {
                                     ^
/datasets/git/add-interactive.c:346:11: note: +1, nesting level increased to 3
                        } else if (isdigit(*p)) {
                               ^
/datasets/git/add-interactive.c:358:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (endp == p + sep)
                                ^
/datasets/git/add-interactive.c:360:10: note: +1, nesting level increased to 4
                                else if (*endp == '-') {
                                     ^
/datasets/git/add-interactive.c:361:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (isdigit(*(++endp)))
                                        ^
/datasets/git/add-interactive.c:363:6: note: +1, nesting level increased to 5
                                        else
                                        ^
/datasets/git/add-interactive.c:366:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (endp != p + sep)
                                        ^
/datasets/git/add-interactive.c:371:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (p[sep])
                        ^
/datasets/git/add-interactive.c:373:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (from < 0) {
                        ^
/datasets/git/add-interactive.c:375:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (from >= 0)
                                ^
/datasets/git/add-interactive.c:379:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (from < 0 || from >= items->items.nr ||
                        ^
/datasets/git/add-interactive.c:379:44: note: +1
                        if (from < 0 || from >= items->items.nr ||
                                                                ^
/datasets/git/add-interactive.c:380:19: note: +1
                            (singleton && from + 1 != to)) {
                                       ^
/datasets/git/add-interactive.c:384:11: note: +1, nesting level increased to 3
                        } else if (singleton) {
                               ^
/datasets/git/add-interactive.c:389:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (to > items->items.nr)
                        ^
/datasets/git/add-interactive.c:392:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (; from < to; from++)
                        ^
/datasets/git/add-interactive.c:393:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (items->selected[from] != choose) {
                                ^
/datasets/git/add-interactive.c:395:20: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        res += choose ? +1 : -1;
                                                      ^
/datasets/git/add-interactive.c:401:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((immediate && res != LIST_AND_CHOOSE_ERROR) ||
                ^
/datasets/git/add-interactive.c:401:51: note: +1
                if ((immediate && res != LIST_AND_CHOOSE_ERROR) ||
                                                                ^
/datasets/git/add-interactive.c:401:18: note: +1
                if ((immediate && res != LIST_AND_CHOOSE_ERROR) ||
                               ^
/datasets/git/add-interactive.c:276:52: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static ssize_t list_and_choose(struct add_i_state *s,
                                                   ^
/datasets/git/add-interactive.c:280:18: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int singleton = opts->flags & SINGLETON;
                        ^
/datasets/git/add-interactive.c:280:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int singleton = opts->flags & SINGLETON;
                        ^             ~~~~~~~~~
/datasets/git/add-interactive.c:281:18: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int immediate = opts->flags & IMMEDIATE;
                        ^
/datasets/git/add-interactive.c:281:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int immediate = opts->flags & IMMEDIATE;
                        ^             ~~~~~~~~~
/datasets/git/add-interactive.c:291:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (singleton && !immediate)
                                    ^
                                     {
/datasets/git/add-interactive.c:297:9: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                char *p;
                      ^
                        = NULL
/datasets/git/add-interactive.c:297:9: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/add-interactive.c:304:3: warning: the value returned by this function should be used [cert-err33-c]
                fputs(singleton ? "> " : ">> ", stdout);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-interactive.c:304:3: note: cast the expression to void to silence this warning
/datasets/git/add-interactive.c:305:3: warning: the value returned by this function should be used [cert-err33-c]
                fflush(stdout);
                ^~~~~~~~~~~~~~
/datasets/git/add-interactive.c:305:3: note: cast the expression to void to silence this warning
/datasets/git/add-interactive.c:309:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (immediate)
                                      ^
                                       {
/datasets/git/add-interactive.c:314:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!input.len)
                               ^
                                {
/datasets/git/add-interactive.c:327:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        ssize_t from = -1, to = -1;
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-interactive.c:327:23: warning: variable name 'to' is too short, expected at least 3 characters [readability-identifier-length]
                        ssize_t from = -1, to = -1;
                                           ^
/datasets/git/add-interactive.c:330:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!*p)
                                        ^
                                         {
/datasets/git/add-interactive.c:345:10: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'ssize_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                to = items->items.nr;
                                     ^
/datasets/git/add-interactive.c:346:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        } else if (isdigit(*p)) {
                                   ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/add-interactive.c:347:11: warning: variable 'endp' is not initialized [cppcoreguidelines-init-variables]
                                char *endp;
                                      ^
                                           = NULL
/datasets/git/add-interactive.c:357:12: warning: narrowing conversion from 'unsigned long' to signed type 'ssize_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                from = strtoul(p, &endp, 10) - 1;
                                       ^
/datasets/git/add-interactive.c:357:30: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                from = strtoul(p, &endp, 10) - 1;
                                                         ^
/datasets/git/add-interactive.c:358:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (endp == p + sep)
                                                    ^
                                                     {
/datasets/git/add-interactive.c:361:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        if (isdigit(*(++endp)))
                                            ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/add-interactive.c:361:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        if (isdigit(*(++endp)))
                                                               ^
                                                                {
/datasets/git/add-interactive.c:362:12: warning: narrowing conversion from 'unsigned long' to signed type 'ssize_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                                to = strtoul(endp, &endp, 10);
                                                     ^
/datasets/git/add-interactive.c:362:33: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                                to = strtoul(endp, &endp, 10);
                                                                          ^
/datasets/git/add-interactive.c:363:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        else
                                            ^
                                             {
/datasets/git/add-interactive.c:364:12: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'ssize_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                                to = items->items.nr;
                                                     ^
/datasets/git/add-interactive.c:366:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        if (endp != p + sep)
                                                            ^
                                                             {
/datasets/git/add-interactive.c:371:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (p[sep])
                                   ^
                                    {
/datasets/git/add-interactive.c:375:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (from >= 0)
                                              ^
                                               {
/datasets/git/add-interactive.c:384:6: warning: do not use 'else' after 'break' [llvm-else-after-return,readability-else-after-return]
                        } else if (singleton) {
                          ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-interactive.c:389:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (to > items->items.nr)
                                                 ^
                                                  {
/datasets/git/add-interactive.c:390:10: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'ssize_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                to = items->items.nr;
                                     ^
/datasets/git/add-interactive.c:392:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (; from < to; from++)
                        ^
/datasets/git/add-interactive.c:392:11: warning: backward branch (for loop) is ID-dependent due to variable reference to 'from' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (; from < to; from++)
                               ^
/datasets/git/add-interactive.c:392:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (; from < to; from++)
                                                 ^
                                                  {
/datasets/git/add-interactive.c:402:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !strcmp(input.buf, "*"))
                                            ^
                                             {
/datasets/git/add-interactive.c:410:8: warning: accessing fields in struct 'adddel' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct adddel {
       ^
/datasets/git/add-interactive.c:410:8: note: use "__attribute__((aligned(32)))" to align struct 'adddel' to 32 bytes
/datasets/git/add-interactive.c:415:8: warning: accessing fields in struct 'file_item' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct file_item {
       ^
/datasets/git/add-interactive.c:415:8: note: use "__attribute__((aligned(64)))" to align struct 'file_item' to 64 bytes
/datasets/git/add-interactive.c:427:8: warning: accessing fields in struct 'pathname_entry' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct pathname_entry {
       ^
/datasets/git/add-interactive.c:427:8: note: use "__attribute__((aligned(32)))" to align struct 'pathname_entry' to 32 bytes
/datasets/git/add-interactive.c:438:31: warning: variable name 'e1' is too short, expected at least 3 characters [readability-identifier-length]
        const struct pathname_entry *e1 =
                                     ^
/datasets/git/add-interactive.c:440:31: warning: variable name 'e2' is too short, expected at least 3 characters [readability-identifier-length]
        const struct pathname_entry *e2 =
                                     ^
/datasets/git/add-interactive.c:446:8: warning: accessing fields in struct 'collection_status' is inefficient due to padding; only needs 88 bytes but is using 96 bytes [altera-struct-pack-align]
struct collection_status {
       ^
/datasets/git/add-interactive.c:446:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'collection_status'
/datasets/git/add-interactive.c:446:8: warning: accessing fields in struct 'collection_status' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct collection_status {
       ^
/datasets/git/add-interactive.c:446:8: note: use "__attribute__((aligned(128)))" to align struct 'collection_status' to 128 bytes
/datasets/git/add-interactive.c:457:58: warning: parameter name 'q' is too short, expected at least 3 characters [readability-identifier-length]
static void collect_changes_cb(struct diff_queue_struct *q,
                                                         ^
/datasets/git/add-interactive.c:461:28: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
        struct collection_status *s = data;
                                  ^
/datasets/git/add-interactive.c:463:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/add-interactive.c:463:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/add-interactive.c:465:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!q->nr)
                   ^
                    {
/datasets/git/add-interactive.c:470:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < stat.nr; i++) {
        ^
/datasets/git/add-interactive.c:472:14: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int hash = strhash(name);
                           ^
/datasets/git/add-interactive.c:473:26: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
                struct pathname_entry *entry;
                                       ^
                                             = NULL
/datasets/git/add-interactive.c:474:21: warning: variable 'file_item' is not initialized [cppcoreguidelines-init-variables]
                struct file_item *file_item;
                                  ^
                                            = NULL
/datasets/git/add-interactive.c:475:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                struct adddel *adddel, *other_adddel;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-interactive.c:475:18: warning: variable 'adddel' is not initialized [cppcoreguidelines-init-variables]
                struct adddel *adddel, *other_adddel;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/add-interactive.c:475:27: warning: variable 'other_adddel' is not initialized [cppcoreguidelines-init-variables]
                struct adddel *adddel, *other_adddel;
                                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/add-interactive.c:480:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (s->skip_unseen)
                                           ^
                                            {
/datasets/git/add-interactive.c:501:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!other_adddel->binary)
                                                  ^
                                                   {
/datasets/git/add-interactive.c:506:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!other_adddel->unmerged)
                                                    ^
                                                     {
/datasets/git/add-interactive.c:520:50: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int get_modified_files(struct repository *r,
                                                 ^
/datasets/git/add-interactive.c:523:33: warning: parameter name 'ps' is too short, expected at least 3 characters [readability-identifier-length]
                              const struct pathspec *ps,
                                                     ^
/datasets/git/add-interactive.c:524:10: warning: 2 adjacent parameters of 'get_modified_files' of similar type ('size_t *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                              size_t *unmerged_count,
                              ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-interactive.c:524:18: note: the first parameter in the range is 'unmerged_count'
                              size_t *unmerged_count,
                                      ^~~~~~~~~~~~~~
/datasets/git/add-interactive.c:525:18: note: the last parameter in the range is 'binary_count'
                              size_t *binary_count)
                                      ^~~~~~~~~~~~
/datasets/git/add-interactive.c:530:27: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
        struct collection_status s = { 0 };
                                 ^
/datasets/git/add-interactive.c:531:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/add-interactive.c:531:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/add-interactive.c:534:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_read_index_preload(r, ps, 0) < 0)
                                                  ^
                                                   {
/datasets/git/add-interactive.c:541:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < 2; i++) {
        ^
/datasets/git/add-interactive.c:545:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (filter == INDEX_ONLY)
                                         ^
                                          {
/datasets/git/add-interactive.c:547:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/add-interactive.c:561:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ps)
                       ^
                        {
/datasets/git/add-interactive.c:564:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (s.mode == FROM_INDEX)
                                         ^
                                          {
/datasets/git/add-interactive.c:574:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unmerged_count)
                           ^
                            {
/datasets/git/add-interactive.c:576:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (binary_count)
                         ^
                          {
/datasets/git/add-interactive.c:586:20: warning: parameter name 'ad' is too short, expected at least 3 characters [readability-identifier-length]
                                struct adddel *ad, const char *no_changes)
                                               ^
/datasets/git/add-interactive.c:588:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ad->binary)
                       ^
                        {
/datasets/git/add-interactive.c:590:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (ad->seen)
                          ^
                           {
/datasets/git/add-interactive.c:592:8: warning: redundant cast to the same type [google-readability-casting]
                            (uintmax_t)ad->add, (uintmax_t)ad->del);
                            ^~~~~~~~~~~
/datasets/git/add-interactive.c:592:28: warning: redundant cast to the same type [google-readability-casting]
                            (uintmax_t)ad->add, (uintmax_t)ad->del);
                                                ^~~~~~~~~~~
/datasets/git/add-interactive.c:593:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/add-interactive.c:608:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                !isdigit(*prefix) &&                            /* selection */
                 ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/add-interactive.c:614:8: warning: accessing fields in struct 'print_file_item_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct print_file_item_data {
       ^
/datasets/git/add-interactive.c:614:8: note: use "__attribute__((aligned(128)))" to align struct 'print_file_item_data' to 128 bytes
/datasets/git/add-interactive.c:620:33: warning: parameter name 'i' is too short, expected at least 3 characters [readability-identifier-length]
static void print_file_item(int i, int selected, struct string_list_item *item,
                                ^
/datasets/git/add-interactive.c:623:20: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        struct file_item *c = item->util;
                          ^
/datasets/git/add-interactive.c:624:31: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
        struct print_file_item_data *d = print_file_item_data;
                                     ^
/datasets/git/add-interactive.c:656:43: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static int run_status(struct add_i_state *s, const struct pathspec *ps,
                                          ^
/datasets/git/add-interactive.c:656:69: warning: parameter name 'ps' is too short, expected at least 3 characters [readability-identifier-length]
static int run_status(struct add_i_state *s, const struct pathspec *ps,
                                                                    ^
/datasets/git/add-interactive.c:660:69: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_modified_files(s->r, NO_FILTER, files, ps, NULL, NULL) < 0)
                                                                           ^
                                                                            {
/datasets/git/add-interactive.c:669:43: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static int run_update(struct add_i_state *s, const struct pathspec *ps,
                                          ^
/datasets/git/add-interactive.c:669:69: warning: parameter name 'ps' is too short, expected at least 3 characters [readability-identifier-length]
static int run_update(struct add_i_state *s, const struct pathspec *ps,
                                                                    ^
/datasets/git/add-interactive.c:673:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int res = 0, fd;
        ^~~~~~~~~~~~~~~~
/datasets/git/add-interactive.c:673:15: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int res = 0, fd;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/add-interactive.c:673:15: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/add-interactive.c:674:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t count, i;
        ^~~~~~~~~~~~~~~~
/datasets/git/add-interactive.c:674:9: warning: variable 'count' is not initialized [cppcoreguidelines-init-variables]
        size_t count, i;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/add-interactive.c:674:16: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t count, i;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/add-interactive.c:674:16: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/add-interactive.c:677:73: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_modified_files(s->r, WORKTREE_ONLY, files, ps, NULL, NULL) < 0)
                                                                               ^
                                                                                {
/datasets/git/add-interactive.c:698:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < files->items.nr; i++) {
        ^
/datasets/git/add-interactive.c:698:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < files->items.nr; i++) {
                    ^
/datasets/git/add-interactive.c:700:15: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                struct stat st;
                            ^
/datasets/git/add-interactive.c:702:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!files->selected[i])
                                        ^
                                         {
/datasets/git/add-interactive.c:715:59: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!res && write_locked_index(s->r->index, &index_lock, COMMIT_LOCK) < 0)
                                                                 ^
/datasets/git/./refs/../cache.h:744:23: note: expanded from macro 'COMMIT_LOCK'
#define COMMIT_LOCK             (1 << 0)
                                 ^
/datasets/git/add-interactive.c:715:76: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!res && write_locked_index(s->r->index, &index_lock, COMMIT_LOCK) < 0)
                                                                                  ^
                                                                                   {
/datasets/git/add-interactive.c:718:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!res)
                 ^
                  {
/datasets/git/add-interactive.c:726:56: warning: parameter name 'q' is too short, expected at least 3 characters [readability-identifier-length]
static void revert_from_diff(struct diff_queue_struct *q,
                                                       ^
/datasets/git/add-interactive.c:727:41: warning: parameter 'data' is unused [misc-unused-parameters]
                             struct diff_options *opt, void *data)
                                                             ^
/datasets/git/add-interactive.c:729:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, add_flags = ADD_CACHE_OK_TO_ADD | ADD_CACHE_OK_TO_REPLACE;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-interactive.c:729:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, add_flags = ADD_CACHE_OK_TO_ADD | ADD_CACHE_OK_TO_REPLACE;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/add-interactive.c:729:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/add-interactive.c:729:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int i, add_flags = ADD_CACHE_OK_TO_ADD | ADD_CACHE_OK_TO_REPLACE;
                           ^
/datasets/git/./refs/../cache.h:840:29: note: expanded from macro 'ADD_CACHE_OK_TO_ADD'
#define ADD_CACHE_OK_TO_ADD 1           /* Ok to add */
                            ^
/datasets/git/add-interactive.c:731:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < q->nr; i++) {
        ^
/datasets/git/add-interactive.c:733:23: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
                struct cache_entry *ce;
                                    ^
                                       = NULL
/datasets/git/add-interactive.c:733:23: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/add-interactive.c:741:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!ce)
                                ^
                                 {
/datasets/git/add-interactive.c:749:43: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static int run_revert(struct add_i_state *s, const struct pathspec *ps,
                                          ^
/datasets/git/add-interactive.c:749:69: warning: parameter name 'ps' is too short, expected at least 3 characters [readability-identifier-length]
static int run_revert(struct add_i_state *s, const struct pathspec *ps,
                                                                    ^
/datasets/git/add-interactive.c:753:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int res = 0, fd;
        ^~~~~~~~~~~~~~~~
/datasets/git/add-interactive.c:753:15: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int res = 0, fd;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/add-interactive.c:753:15: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/add-interactive.c:754:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t count, i, j;
        ^~~~~~~~~~~~~~~~~~~
/datasets/git/add-interactive.c:754:9: warning: variable 'count' is not initialized [cppcoreguidelines-init-variables]
        size_t count, i, j;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/add-interactive.c:754:16: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t count, i, j;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/add-interactive.c:754:16: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/add-interactive.c:754:19: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        size_t count, i, j;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/add-interactive.c:754:19: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/add-interactive.c:760:15: warning: variable 'paths' is not initialized [cppcoreguidelines-init-variables]
        const char **paths;
                     ^
                           = NULL
/datasets/git/add-interactive.c:761:15: warning: variable 'tree' is not initialized [cppcoreguidelines-init-variables]
        struct tree *tree;
                     ^
                          = NULL
/datasets/git/add-interactive.c:764:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_modified_files(s->r, INDEX_ONLY, files, ps, NULL, NULL) < 0)
                                                                            ^
                                                                             {
/datasets/git/add-interactive.c:774:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (count <= 0)
                       ^
                        {
/datasets/git/add-interactive.c:783:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_initial)
                       ^
                        {
/datasets/git/add-interactive.c:795:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = j = 0; i < files->items.nr; i++)
        ^
/datasets/git/add-interactive.c:795:18: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = j = 0; i < files->items.nr; i++)
                        ^
/datasets/git/add-interactive.c:795:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = j = 0; i < files->items.nr; i++)
                                                 ^
                                                  {
/datasets/git/add-interactive.c:796:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (files->selected[i])
                                       ^
                                        {
/datasets/git/add-interactive.c:801:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_PREFER_FULL | PATHSPEC_LITERAL_PATH,
                       ^
/datasets/git/./pathspec.h:66:30: note: expanded from macro 'PATHSPEC_PREFER_FULL'
#define PATHSPEC_PREFER_FULL (1<<1) /* No args means match everything */
                             ^~~~~~
/datasets/git/add-interactive.c:801:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_PREFER_FULL | PATHSPEC_LITERAL_PATH,
                                              ^
/datasets/git/./pathspec.h:78:32: note: expanded from macro 'PATHSPEC_LITERAL_PATH'
#define PATHSPEC_LITERAL_PATH (1<<6)
                               ^
/datasets/git/add-interactive.c:819:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                       COMMIT_LOCK) < 0)
                                       ^
/datasets/git/./refs/../cache.h:744:23: note: expanded from macro 'COMMIT_LOCK'
#define COMMIT_LOCK             (1 << 0)
                                 ^
/datasets/git/add-interactive.c:819:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                       COMMIT_LOCK) < 0)
                                                        ^
                                                         {
/datasets/git/add-interactive.c:821:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/add-interactive.c:822:44: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                res = repo_refresh_and_write_index(s->r, REFRESH_QUIET, 0, 1,
                                                         ^
/datasets/git/./refs/../cache.h:923:43: note: expanded from macro 'REFRESH_QUIET'
#define REFRESH_QUIET                    (1 << 2) /* be quiet about it */
                                          ^
/datasets/git/add-interactive.c:825:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!res)
                 ^
                  {
/datasets/git/add-interactive.c:834:51: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int get_untracked_files(struct repository *r,
                                                  ^
/datasets/git/add-interactive.c:836:34: warning: parameter name 'ps' is too short, expected at least 3 characters [readability-identifier-length]
                               const struct pathspec *ps)
                                                      ^
/datasets/git/add-interactive.c:839:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i;
               ^
                 = 0
/datasets/git/add-interactive.c:839:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/add-interactive.c:842:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_read_index(r) < 0)
                                   ^
                                    {
/datasets/git/add-interactive.c:850:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < dir.nr; i++) {
        ^
/datasets/git/add-interactive.c:853:48: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                if (index_name_is_other(r->index, ent->name, ent->len)) {
                                                             ^
/datasets/git/add-interactive.c:864:50: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static int run_add_untracked(struct add_i_state *s, const struct pathspec *ps,
                                                 ^
/datasets/git/add-interactive.c:864:76: warning: parameter name 'ps' is too short, expected at least 3 characters [readability-identifier-length]
static int run_add_untracked(struct add_i_state *s, const struct pathspec *ps,
                                                                           ^
/datasets/git/add-interactive.c:868:31: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
        struct print_file_item_data *d = opts->list_opts.print_item_data;
                                     ^
/datasets/git/add-interactive.c:869:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int res = 0, fd;
        ^~~~~~~~~~~~~~~~
/datasets/git/add-interactive.c:869:15: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int res = 0, fd;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/add-interactive.c:869:15: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/add-interactive.c:870:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t count, i;
        ^~~~~~~~~~~~~~~~
/datasets/git/add-interactive.c:870:9: warning: variable 'count' is not initialized [cppcoreguidelines-init-variables]
        size_t count, i;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/add-interactive.c:870:16: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t count, i;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/add-interactive.c:870:16: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/add-interactive.c:873:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_untracked_files(s->r, files, ps) < 0)
                                                     ^
                                                      {
/datasets/git/add-interactive.c:885:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (count <= 0)
                       ^
                        {
/datasets/git/add-interactive.c:894:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < files->items.nr; i++) {
        ^
/datasets/git/add-interactive.c:894:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < files->items.nr; i++) {
                    ^
/datasets/git/add-interactive.c:904:51: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            write_locked_index(s->r->index, &index_lock, COMMIT_LOCK) < 0)
                                                         ^
/datasets/git/./refs/../cache.h:744:23: note: expanded from macro 'COMMIT_LOCK'
#define COMMIT_LOCK             (1 << 0)
                                 ^
/datasets/git/add-interactive.c:904:68: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            write_locked_index(s->r->index, &index_lock, COMMIT_LOCK) < 0)
                                                                          ^
                                                                           {
/datasets/git/add-interactive.c:907:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!res)
                 ^
                  {
/datasets/git/add-interactive.c:916:42: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static int run_patch(struct add_i_state *s, const struct pathspec *ps,
                                         ^
/datasets/git/add-interactive.c:916:68: warning: parameter name 'ps' is too short, expected at least 3 characters [readability-identifier-length]
static int run_patch(struct add_i_state *s, const struct pathspec *ps,
                                                                   ^
/datasets/git/add-interactive.c:921:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        ssize_t count, i, j;
        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/add-interactive.c:921:10: warning: variable 'count' is not initialized [cppcoreguidelines-init-variables]
        ssize_t count, i, j;
                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/add-interactive.c:921:17: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        ssize_t count, i, j;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/add-interactive.c:921:17: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/add-interactive.c:921:20: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        ssize_t count, i, j;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/add-interactive.c:921:20: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/add-interactive.c:921:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        ssize_t count, i, j;
        ^
/datasets/git/add-interactive.c:922:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t unmerged_count = 0, binary_count = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-interactive.c:925:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                               &unmerged_count, &binary_count) < 0)
                                                                   ^
                                                                    {
/datasets/git/add-interactive.c:929:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = j = 0; i < files->items.nr; i++) {
                ^
/datasets/git/add-interactive.c:929:19: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = j = 0; i < files->items.nr; i++) {
                                ^
/datasets/git/add-interactive.c:942:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        } else
                              ^
                               {
/datasets/git/add-interactive.c:949:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (binary_count)
                                 ^
                                  {
/datasets/git/add-interactive.c:950:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, _("Only binary files changed.\n"));
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-interactive.c:950:4: note: cast the expression to void to silence this warning
/datasets/git/add-interactive.c:951:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/add-interactive.c:952:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, _("No changes.\n"));
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-interactive.c:952:4: note: cast the expression to void to silence this warning
/datasets/git/add-interactive.c:962:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < files->items.nr; i++)
                ^
/datasets/git/add-interactive.c:962:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < files->items.nr; i++)
                            ^
/datasets/git/add-interactive.c:962:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < files->items.nr; i++)
                                                     ^
                                                      {
/datasets/git/add-interactive.c:963:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (files->selected[i])
                                               ^
                                                {
/datasets/git/add-interactive.c:967:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                               PATHSPEC_ALL_MAGIC & ~PATHSPEC_LITERAL,
                               ^
/datasets/git/./pathspec.h:15:2: note: expanded from macro 'PATHSPEC_ALL_MAGIC'
        (PATHSPEC_FROMTOP       | \
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-interactive.c:967:32: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                               PATHSPEC_ALL_MAGIC & ~PATHSPEC_LITERAL,
                                                    ^
/datasets/git/add-interactive.c:967:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                               PATHSPEC_ALL_MAGIC & ~PATHSPEC_LITERAL,
                                                     ^
/datasets/git/./pathspec.h:9:27: note: expanded from macro 'PATHSPEC_LITERAL'
#define PATHSPEC_LITERAL        (1<<2)
                                 ^
/datasets/git/add-interactive.c:968:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                               PATHSPEC_LITERAL_PATH, "", args.v);
                               ^
/datasets/git/./pathspec.h:78:32: note: expanded from macro 'PATHSPEC_LITERAL_PATH'
#define PATHSPEC_LITERAL_PATH (1<<6)
                               ^
/datasets/git/add-interactive.c:977:41: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static int run_diff(struct add_i_state *s, const struct pathspec *ps,
                                        ^
/datasets/git/add-interactive.c:977:67: warning: parameter name 'ps' is too short, expected at least 3 characters [readability-identifier-length]
static int run_diff(struct add_i_state *s, const struct pathspec *ps,
                                                                  ^
/datasets/git/add-interactive.c:982:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        ssize_t count, i;
        ^~~~~~~~~~~~~~~~~
/datasets/git/add-interactive.c:982:10: warning: variable 'count' is not initialized [cppcoreguidelines-init-variables]
        ssize_t count, i;
                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/add-interactive.c:982:17: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        ssize_t count, i;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/add-interactive.c:982:17: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/add-interactive.c:987:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_modified_files(s->r, INDEX_ONLY, files, ps, NULL, NULL) < 0)
                                                                            ^
                                                                             {
/datasets/git/add-interactive.c:1006:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < files->items.nr; i++)
                ^
/datasets/git/add-interactive.c:1006:15: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < files->items.nr; i++)
                            ^
/datasets/git/add-interactive.c:1006:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < files->items.nr; i++)
                                                     ^
                                                      {
/datasets/git/add-interactive.c:1007:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (files->selected[i])
                                               ^
                                                {
/datasets/git/add-interactive.c:1017:41: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static int run_help(struct add_i_state *s, const struct pathspec *unused_ps,
                                        ^
/datasets/git/add-interactive.c:1017:67: warning: parameter 'unused_ps' is unused [misc-unused-parameters]
static int run_help(struct add_i_state *s, const struct pathspec *unused_ps,
                                                                  ^
/datasets/git/add-interactive.c:1018:32: warning: parameter 'unused_files' is unused [misc-unused-parameters]
                    struct prefix_item_list *unused_files,
                                             ^
/datasets/git/add-interactive.c:1019:39: warning: parameter 'unused_opts' is unused [misc-unused-parameters]
                    struct list_and_choose_options *unused_opts)
                                                    ^
/datasets/git/add-interactive.c:1037:52: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void choose_prompt_help(struct add_i_state *s)
                                                   ^
/datasets/git/add-interactive.c:1057:46: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
typedef int (*command_t)(struct add_i_state *s, const struct pathspec *ps,
                                             ^
/datasets/git/add-interactive.c:1057:72: warning: parameter name 'ps' is too short, expected at least 3 characters [readability-identifier-length]
typedef int (*command_t)(struct add_i_state *s, const struct pathspec *ps,
                                                                       ^
/datasets/git/add-interactive.c:1061:8: warning: accessing fields in struct 'command_item' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct command_item {
       ^
/datasets/git/add-interactive.c:1061:8: note: use "__attribute__((aligned(16)))" to align struct 'command_item' to 16 bytes
/datasets/git/add-interactive.c:1066:8: warning: accessing fields in struct 'print_command_item_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct print_command_item_data {
       ^
/datasets/git/add-interactive.c:1066:8: note: use "__attribute__((aligned(16)))" to align struct 'print_command_item_data' to 16 bytes
/datasets/git/add-interactive.c:1070:32: warning: 2 adjacent parameters of 'print_command_item' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void print_command_item(int i, int selected,
                               ^~~~~~~~~~~~~~~~~~~
/datasets/git/add-interactive.c:1070:36: note: the first parameter in the range is 'i'
static void print_command_item(int i, int selected,
                                   ^
/datasets/git/add-interactive.c:1070:43: note: the last parameter in the range is 'selected'
static void print_command_item(int i, int selected,
                                          ^~~~~~~~
/datasets/git/add-interactive.c:1070:36: warning: parameter name 'i' is too short, expected at least 3 characters [readability-identifier-length]
static void print_command_item(int i, int selected,
                                   ^
/datasets/git/add-interactive.c:1070:43: warning: parameter 'selected' is unused [misc-unused-parameters]
static void print_command_item(int i, int selected,
                                          ^
/datasets/git/add-interactive.c:1074:34: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
        struct print_command_item_data *d = print_command_item_data;
                                        ^
/datasets/git/add-interactive.c:1078:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !is_valid_prefix(item->string, util->prefix_length))
                                                                ^
                                                                 {
/datasets/git/add-interactive.c:1080:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/add-interactive.c:1086:53: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void command_prompt_help(struct add_i_state *s)
                                                    ^
/datasets/git/add-interactive.c:1098:34: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int run_add_i(struct repository *r, const struct pathspec *ps)
                                 ^
/datasets/git/add-interactive.c:1098:60: warning: parameter name 'ps' is too short, expected at least 3 characters [readability-identifier-length]
int run_add_i(struct repository *r, const struct pathspec *ps)
                                                           ^
/datasets/git/add-interactive.c:1131:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        ssize_t i;
        ^
/datasets/git/add-interactive.c:1100:21: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
        struct add_i_state s = { NULL };
                           ^
/datasets/git/add-interactive.c:1104:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                N_("What now"), SINGLETON | IMMEDIATE, command_prompt_help
                                ^~~~~~~~~
/datasets/git/add-interactive.c:1106:2: warning: accessing fields in struct '' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
        struct {
        ^
/datasets/git/add-interactive.c:1106:2: note: use "__attribute__((aligned(16)))" to align struct '' to 16 bytes
/datasets/git/add-interactive.c:1131:10: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        ssize_t i;
                ^
                  = 0
/datasets/git/add-interactive.c:1131:10: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/add-interactive.c:1134:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ARRAY_SIZE(command_list); i++) {
        ^
/datasets/git/add-interactive.c:1134:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < ARRAY_SIZE(command_list); i++) {
                    ^
/datasets/git/add-interactive.c:1161:38: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            repo_refresh_and_write_index(r, REFRESH_QUIET, 0, 1,
                                            ^
/datasets/git/./refs/../cache.h:923:43: note: expanded from macro 'REFRESH_QUIET'
#define REFRESH_QUIET                    (1 << 2) /* be quiet about it */
                                          ^
/datasets/git/add-interactive.c:1162:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                         NULL, NULL, NULL) < 0)
                                                               ^
                                                                {
/datasets/git/add-interactive.c:1165:2: warning: Value stored to 'res' is never read [clang-analyzer-deadcode.DeadStores]
        res = run_status(&s, ps, &files, &opts);
        ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-interactive.c:1165:2: note: Value stored to 'res' is never read
        res = run_status(&s, ps, &files, &opts);
        ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-interactive.c:1167:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/add-interactive.c:1168:24: warning: variable 'util' is not initialized [cppcoreguidelines-init-variables]
                struct command_item *util;
                                     ^
                                          = NULL
/datasets/git/add-interactive.c:1171:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (i < 0 || i >= commands.items.nr)
                                                    ^
                                                     {
/datasets/git/add-interactive.c:1173:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/add-interactive.c:1182:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (util)
                         ^
                          {
/datasets/git/add-interactive.c:1183:4: warning: Value stored to 'res' is never read [clang-analyzer-deadcode.DeadStores]
                        res = util->command(&s, ps, &files, &opts);
                        ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-interactive.c:1183:4: note: Value stored to 'res' is never read
                        res = util->command(&s, ps, &files, &opts);
                        ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:3:1: warning: #includes are not sorted properly [llvm-include-order]
#include "strbuf.h"
^        ~~~~~~~~~~
         "color.h"
/datasets/git/add-patch.c:17:8: warning: accessing fields in struct 'patch_mode' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct patch_mode {
       ^
/datasets/git/add-patch.c:17:8: note: use "__attribute__((aligned(128)))" to align struct 'patch_mode' to 128 bytes
/datasets/git/add-patch.c:29:26: warning: variable 'patch_mode_add' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct patch_mode patch_mode_add = {
                         ^
/datasets/git/add-patch.c:51:26: warning: variable 'patch_mode_stash' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct patch_mode patch_mode_stash = {
                         ^
/datasets/git/add-patch.c:73:26: warning: variable 'patch_mode_reset_head' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct patch_mode patch_mode_reset_head = {
                         ^
/datasets/git/add-patch.c:97:26: warning: variable 'patch_mode_reset_nothead' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct patch_mode patch_mode_reset_nothead = {
                         ^
/datasets/git/add-patch.c:120:26: warning: variable 'patch_mode_checkout_index' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct patch_mode patch_mode_checkout_index = {
                         ^
/datasets/git/add-patch.c:143:26: warning: variable 'patch_mode_checkout_head' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct patch_mode patch_mode_checkout_head = {
                         ^
/datasets/git/add-patch.c:166:26: warning: variable 'patch_mode_checkout_nothead' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct patch_mode patch_mode_checkout_nothead = {
                         ^
/datasets/git/add-patch.c:188:26: warning: variable 'patch_mode_worktree_head' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct patch_mode patch_mode_worktree_head = {
                         ^
/datasets/git/add-patch.c:211:26: warning: variable 'patch_mode_worktree_nothead' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct patch_mode patch_mode_worktree_nothead = {
                         ^
/datasets/git/add-patch.c:233:8: warning: accessing fields in struct 'hunk_header' is inefficient due to padding; only needs 68 bytes but is using 72 bytes [altera-struct-pack-align]
struct hunk_header {
       ^
/datasets/git/add-patch.c:233:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'hunk_header'
/datasets/git/add-patch.c:233:8: warning: accessing fields in struct 'hunk_header' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct hunk_header {
       ^
/datasets/git/add-patch.c:233:8: note: use "__attribute__((aligned(128)))" to align struct 'hunk_header' to 128 bytes
/datasets/git/add-patch.c:244:8: warning: accessing fields in struct 'hunk' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct hunk {
       ^
/datasets/git/add-patch.c:244:8: note: use "__attribute__((aligned(128)))" to align struct 'hunk' to 128 bytes
/datasets/git/add-patch.c:251:8: warning: accessing fields in struct 'add_p_state' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct add_p_state {
       ^
/datasets/git/add-patch.c:251:8: note: use "__attribute__((aligned(128)))" to align struct 'add_p_state' to 128 bytes
/datasets/git/add-patch.c:257:9: warning: accessing fields in struct 'file_diff' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
        struct file_diff {
               ^
/datasets/git/add-patch.c:257:9: note: use "__attribute__((aligned(128)))" to align struct 'file_diff' to 128 bytes
/datasets/git/add-patch.c:270:51: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void add_p_state_clear(struct add_p_state *s)
                                                  ^
/datasets/git/add-patch.c:272:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i;
               ^
                 = 0
/datasets/git/add-patch.c:272:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/add-patch.c:278:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < s->file_diff_nr; i++)
        ^
/datasets/git/add-patch.c:278:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < s->file_diff_nr; i++)
                                             ^
                                              {
/datasets/git/add-patch.c:285:37: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void err(struct add_p_state *s, const char *fmt, ...)
                                    ^
/datasets/git/add-patch.c:290:2: warning: the value returned by this function should be used [cert-err33-c]
        fputs(s->s.error_color, stderr);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:290:2: note: cast the expression to void to silence this warning
/datasets/git/add-patch.c:291:2: warning: the value returned by this function should be used [cert-err33-c]
        vfprintf(stderr, fmt, args);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:291:2: note: cast the expression to void to silence this warning
/datasets/git/add-patch.c:291:2: warning: Function 'vfprintf' is called with an uninitialized va_list argument [clang-analyzer-valist.Uninitialized]
        vfprintf(stderr, fmt, args);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:291:2: note: Function 'vfprintf' is called with an uninitialized va_list argument
        vfprintf(stderr, fmt, args);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:292:2: warning: the value returned by this function should be used [cert-err33-c]
        fputs(s->s.reset_color, stderr);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:292:2: note: cast the expression to void to silence this warning
/datasets/git/add-patch.c:293:2: warning: the value returned by this function should be used [cert-err33-c]
        fputc('\n', stderr);
        ^~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:293:2: note: cast the expression to void to silence this warning
/datasets/git/add-patch.c:297:53: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void setup_child_process(struct add_p_state *s,
                                                    ^
/datasets/git/add-patch.c:298:27: warning: parameter name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
                                struct child_process *cp, ...)
                                                      ^
/datasets/git/add-patch.c:300:10: warning: variable name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
        va_list ap;
                ^
/datasets/git/add-patch.c:301:14: warning: variable 'arg' is not initialized [cppcoreguidelines-init-variables]
        const char *arg;
                    ^
                        = NULL
/datasets/git/add-patch.c:304:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((arg = va_arg(ap, const char *)))
        ^
/datasets/git/add-patch.c:304:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'arg' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((arg = va_arg(ap, const char *)))
               ^
/datasets/git/add-patch.c:304:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while ((arg = va_arg(ap, const char *)))
                                                ^
                                                 {
/datasets/git/add-patch.c:313:37: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static int parse_range(const char **p,
                                    ^
/datasets/git/add-patch.c:314:10: warning: 2 adjacent parameters of 'parse_range' of similar type ('unsigned long *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                       unsigned long *offset, unsigned long *count)
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:314:25: note: the first parameter in the range is 'offset'
                       unsigned long *offset, unsigned long *count)
                                      ^~~~~~
/datasets/git/add-patch.c:314:48: note: the last parameter in the range is 'count'
                       unsigned long *offset, unsigned long *count)
                                                             ^~~~~
/datasets/git/add-patch.c:316:8: warning: variable 'pend' is not initialized [cppcoreguidelines-init-variables]
        char *pend;
              ^
                   = NULL
/datasets/git/add-patch.c:318:31: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        *offset = strtoul(*p, &pend, 10);
                                     ^
/datasets/git/add-patch.c:319:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pend == *p)
                       ^
                        {
/datasets/git/add-patch.c:326:41: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        *count = strtoul(pend + 1, (char **)p, 10);
                                               ^
/datasets/git/add-patch.c:330:50: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static int parse_hunk_header(struct add_p_state *s, struct hunk *hunk)
                                                 ^
/datasets/git/add-patch.c:333:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *line = s->plain.buf + hunk->start, *p = line;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:333:50: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        const char *line = s->plain.buf + hunk->start, *p = line;
                                                        ^
/datasets/git/add-patch.c:336:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!eol)
                 ^
                  {
/datasets/git/add-patch.c:343:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !skip_prefix(p, " @@", &p))
                                       ^
                                        {
/datasets/git/add-patch.c:359:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!eol)
                 ^
                  {
/datasets/git/add-patch.c:362:12: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if (p && (p = memmem(p + 4, eol - p - 4, " @@", 3))) {
                  ^
/datasets/git/add-patch.c:362:12: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/add-patch.c:362:12: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/add-patch.c:375:33: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static int is_octal(const char *p, size_t len)
                                ^
/datasets/git/add-patch.c:377:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!len)
                 ^
                  {
/datasets/git/add-patch.c:380:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (len--)
        ^
/datasets/git/add-patch.c:380:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (len--)
                     ^
                      {
/datasets/git/add-patch.c:381:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*p < '0' || *(p++) > '7')
                                             ^
                                              {
/datasets/git/add-patch.c:388:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (marker == '-' || marker == '+')
                                           ^
                                            {
/datasets/git/add-patch.c:397:12: warning: function 'parse_diff' has cognitive complexity of 187 (threshold 25) [readability-function-cognitive-complexity]
static int parse_diff(struct add_p_state *s, const struct pathspec *ps)
           ^
/datasets/git/add-patch.c:410:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (diff_algorithm)
        ^
/datasets/git/add-patch.c:412:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (s->revision) {
        ^
/datasets/git/add-patch.c:417:30: note: +2, including nesting penalty of 1, nesting level increased to 2
                            get_oid("HEAD", &oid) ?
                                                  ^
/datasets/git/add-patch.c:416:37: note: +1
                            !strcmp("HEAD", s->revision) &&
                                                         ^
/datasets/git/add-patch.c:424:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < ps->nr; i++)
        ^
/datasets/git/add-patch.c:430:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (res) {
        ^
/datasets/git/add-patch.c:434:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!plain->len) {
        ^
/datasets/git/add-patch.c:440:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (want_color_fd(1, -1)) {
        ^
/datasets/git/add-patch.c:450:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (res)
                ^
/datasets/git/add-patch.c:453:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (diff_filter) {
                ^
/datasets/git/add-patch.c:461:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (pipe_command(&filter_cp,
                        ^
/datasets/git/add-patch.c:479:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (p != pend) {
        ^
/datasets/git/add-patch.c:483:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!eol)
                ^
/datasets/git/add-patch.c:486:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (starts_with(p, "diff ")) {
                ^
/datasets/git/add-patch.c:488:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        ALLOC_GROW_BY(s->file_diff, s->file_diff_nr, 1,
                        ^
/datasets/git/./refs/../cache.h:719:2: note: expanded from macro 'ALLOC_GROW_BY'
        do { \
        ^
/datasets/git/add-patch.c:488:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        ALLOC_GROW_BY(s->file_diff, s->file_diff_nr, 1,
                        ^
/datasets/git/./refs/../cache.h:720:3: note: expanded from macro 'ALLOC_GROW_BY'
                if (increase) { \
                ^
/datasets/git/add-patch.c:488:4: note: +5, including nesting penalty of 4, nesting level increased to 5
                        ALLOC_GROW_BY(s->file_diff, s->file_diff_nr, 1,
                        ^
/datasets/git/./refs/../cache.h:722:4: note: expanded from macro 'ALLOC_GROW_BY'
                        if (new_nr < nr) \
                        ^
/datasets/git/add-patch.c:488:4: note: +5, including nesting penalty of 4, nesting level increased to 5
                        ALLOC_GROW_BY(s->file_diff, s->file_diff_nr, 1,
                        ^
/datasets/git/./refs/../cache.h:724:4: note: expanded from macro 'ALLOC_GROW_BY'
                        ALLOC_GROW(x, new_nr, alloc); \
                        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/add-patch.c:488:4: note: +6, including nesting penalty of 5, nesting level increased to 6
                        ALLOC_GROW_BY(s->file_diff, s->file_diff_nr, 1,
                        ^
/datasets/git/./refs/../cache.h:724:4: note: expanded from macro 'ALLOC_GROW_BY'
                        ALLOC_GROW(x, new_nr, alloc); \
                        ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/add-patch.c:488:4: note: +7, including nesting penalty of 6, nesting level increased to 7
                        ALLOC_GROW_BY(s->file_diff, s->file_diff_nr, 1,
                        ^
/datasets/git/./refs/../cache.h:724:4: note: expanded from macro 'ALLOC_GROW_BY'
                        ALLOC_GROW(x, new_nr, alloc); \
                        ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/add-patch.c:488:4: note: +1, nesting level increased to 7
                        ALLOC_GROW_BY(s->file_diff, s->file_diff_nr, 1,
                        ^
/datasets/git/./refs/../cache.h:724:4: note: expanded from macro 'ALLOC_GROW_BY'
                        ALLOC_GROW(x, new_nr, alloc); \
                        ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/add-patch.c:493:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (colored_p)
                        ^
/datasets/git/add-patch.c:496:10: note: +1, nesting level increased to 2
                } else if (p == plain->buf)
                       ^
/datasets/git/add-patch.c:499:8: note: +1, nesting level increased to 2
                else if (file_diff->deleted)
                     ^
/datasets/git/add-patch.c:501:8: note: +1, nesting level increased to 2
                else if (starts_with(p, "@@ ") ||
                     ^
/datasets/git/add-patch.c:501:34: note: +1
                else if (starts_with(p, "@@ ") ||
                                               ^
/datasets/git/add-patch.c:502:31: note: +1
                         (hunk == &file_diff->head &&
                                                   ^
/datasets/git/add-patch.c:504:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (marker == '-' || marker == '+')
                        ^
/datasets/git/add-patch.c:504:22: note: +1
                        if (marker == '-' || marker == '+')
                                          ^
/datasets/git/add-patch.c:511:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        ALLOC_GROW_BY(file_diff->hunk, file_diff->hunk_nr, 1,
                        ^
/datasets/git/./refs/../cache.h:719:2: note: expanded from macro 'ALLOC_GROW_BY'
        do { \
        ^
/datasets/git/add-patch.c:511:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        ALLOC_GROW_BY(file_diff->hunk, file_diff->hunk_nr, 1,
                        ^
/datasets/git/./refs/../cache.h:720:3: note: expanded from macro 'ALLOC_GROW_BY'
                if (increase) { \
                ^
/datasets/git/add-patch.c:511:4: note: +5, including nesting penalty of 4, nesting level increased to 5
                        ALLOC_GROW_BY(file_diff->hunk, file_diff->hunk_nr, 1,
                        ^
/datasets/git/./refs/../cache.h:722:4: note: expanded from macro 'ALLOC_GROW_BY'
                        if (new_nr < nr) \
                        ^
/datasets/git/add-patch.c:511:4: note: +5, including nesting penalty of 4, nesting level increased to 5
                        ALLOC_GROW_BY(file_diff->hunk, file_diff->hunk_nr, 1,
                        ^
/datasets/git/./refs/../cache.h:724:4: note: expanded from macro 'ALLOC_GROW_BY'
                        ALLOC_GROW(x, new_nr, alloc); \
                        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/add-patch.c:511:4: note: +6, including nesting penalty of 5, nesting level increased to 6
                        ALLOC_GROW_BY(file_diff->hunk, file_diff->hunk_nr, 1,
                        ^
/datasets/git/./refs/../cache.h:724:4: note: expanded from macro 'ALLOC_GROW_BY'
                        ALLOC_GROW(x, new_nr, alloc); \
                        ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/add-patch.c:511:4: note: +7, including nesting penalty of 6, nesting level increased to 7
                        ALLOC_GROW_BY(file_diff->hunk, file_diff->hunk_nr, 1,
                        ^
/datasets/git/./refs/../cache.h:724:4: note: expanded from macro 'ALLOC_GROW_BY'
                        ALLOC_GROW(x, new_nr, alloc); \
                        ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/add-patch.c:511:4: note: +1, nesting level increased to 7
                        ALLOC_GROW_BY(file_diff->hunk, file_diff->hunk_nr, 1,
                        ^
/datasets/git/./refs/../cache.h:724:4: note: expanded from macro 'ALLOC_GROW_BY'
                        ALLOC_GROW(x, new_nr, alloc); \
                        ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/add-patch.c:516:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (colored)
                        ^
/datasets/git/add-patch.c:519:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (deleted)
                        ^
/datasets/git/add-patch.c:521:9: note: +1, nesting level increased to 3
                        else if (parse_hunk_header(s, hunk) < 0)
                             ^
/datasets/git/add-patch.c:529:10: note: +1, nesting level increased to 2
                } else if (hunk == &file_diff->head &&
                       ^
/datasets/git/add-patch.c:529:39: note: +1
                } else if (hunk == &file_diff->head &&
                                                    ^
/datasets/git/add-patch.c:532:10: note: +1, nesting level increased to 2
                } else if (hunk == &file_diff->head &&
                       ^
/datasets/git/add-patch.c:533:49: note: +1
                           skip_prefix(p, "old mode ", &mode_change) &&
                                                                     ^
/datasets/git/add-patch.c:535:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (file_diff->mode_change)
                        ^
/datasets/git/add-patch.c:538:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (file_diff->hunk_nr)
                        ^
/datasets/git/add-patch.c:547:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        ALLOC_GROW_BY(file_diff->hunk, file_diff->hunk_nr, 1,
                        ^
/datasets/git/./refs/../cache.h:719:2: note: expanded from macro 'ALLOC_GROW_BY'
        do { \
        ^
/datasets/git/add-patch.c:547:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        ALLOC_GROW_BY(file_diff->hunk, file_diff->hunk_nr, 1,
                        ^
/datasets/git/./refs/../cache.h:720:3: note: expanded from macro 'ALLOC_GROW_BY'
                if (increase) { \
                ^
/datasets/git/add-patch.c:547:4: note: +5, including nesting penalty of 4, nesting level increased to 5
                        ALLOC_GROW_BY(file_diff->hunk, file_diff->hunk_nr, 1,
                        ^
/datasets/git/./refs/../cache.h:722:4: note: expanded from macro 'ALLOC_GROW_BY'
                        if (new_nr < nr) \
                        ^
/datasets/git/add-patch.c:547:4: note: +5, including nesting penalty of 4, nesting level increased to 5
                        ALLOC_GROW_BY(file_diff->hunk, file_diff->hunk_nr, 1,
                        ^
/datasets/git/./refs/../cache.h:724:4: note: expanded from macro 'ALLOC_GROW_BY'
                        ALLOC_GROW(x, new_nr, alloc); \
                        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/add-patch.c:547:4: note: +6, including nesting penalty of 5, nesting level increased to 6
                        ALLOC_GROW_BY(file_diff->hunk, file_diff->hunk_nr, 1,
                        ^
/datasets/git/./refs/../cache.h:724:4: note: expanded from macro 'ALLOC_GROW_BY'
                        ALLOC_GROW(x, new_nr, alloc); \
                        ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/add-patch.c:547:4: note: +7, including nesting penalty of 6, nesting level increased to 7
                        ALLOC_GROW_BY(file_diff->hunk, file_diff->hunk_nr, 1,
                        ^
/datasets/git/./refs/../cache.h:724:4: note: expanded from macro 'ALLOC_GROW_BY'
                        ALLOC_GROW(x, new_nr, alloc); \
                        ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/add-patch.c:547:4: note: +1, nesting level increased to 7
                        ALLOC_GROW_BY(file_diff->hunk, file_diff->hunk_nr, 1,
                        ^
/datasets/git/./refs/../cache.h:724:4: note: expanded from macro 'ALLOC_GROW_BY'
                        ALLOC_GROW(x, new_nr, alloc); \
                        ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/add-patch.c:550:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (colored_p)
                        ^
/datasets/git/add-patch.c:553:10: note: +1, nesting level increased to 2
                } else if (hunk == &file_diff->head &&
                       ^
/datasets/git/add-patch.c:554:49: note: +1
                           skip_prefix(p, "new mode ", &mode_change) &&
                                                                     ^
/datasets/git/add-patch.c:561:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!file_diff->mode_change)
                        ^
/datasets/git/add-patch.c:564:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (file_diff->hunk_nr != 1)
                        ^
/datasets/git/add-patch.c:567:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (p - plain->buf != file_diff->hunk->end)
                        ^
/datasets/git/add-patch.c:571:10: note: +1, nesting level increased to 2
                } else if (hunk == &file_diff->head &&
                       ^
/datasets/git/add-patch.c:571:39: note: +1
                } else if (hunk == &file_diff->head &&
                                                    ^
/datasets/git/add-patch.c:575:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!!file_diff->deleted + !!file_diff->added +
                ^
/datasets/git/add-patch.c:582:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((marker == '-' || marker == '+') && *p == ' ')
                ^
/datasets/git/add-patch.c:582:40: note: +1
                if ((marker == '-' || marker == '+') && *p == ' ')
                                                     ^
/datasets/git/add-patch.c:582:22: note: +1
                if ((marker == '-' || marker == '+') && *p == ' ')
                                   ^
/datasets/git/add-patch.c:584:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (marker && *p != '\\')
                ^
/datasets/git/add-patch.c:584:14: note: +1
                if (marker && *p != '\\')
                           ^
/datasets/git/add-patch.c:587:19: note: +2, including nesting penalty of 1, nesting level increased to 2
                p = eol == pend ? pend : eol + 1;
                                ^
/datasets/git/add-patch.c:590:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (colored) {
                ^
/datasets/git/add-patch.c:593:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (colored_eol)
                        ^
/datasets/git/add-patch.c:595:9: note: +1, nesting level increased to 3
                        else if (p != pend)
                             ^
/datasets/git/add-patch.c:598:9: note: +1, nesting level increased to 3
                        else if (colored_p == colored_pend)
                             ^
/datasets/git/add-patch.c:601:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/add-patch.c:607:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (mode_change) {
                ^
/datasets/git/add-patch.c:608:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (file_diff->hunk_nr != 1)
                        ^
/datasets/git/add-patch.c:613:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (colored)
                        ^
/datasets/git/add-patch.c:620:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (colored_p != colored_pend) {
        ^
/datasets/git/add-patch.c:397:43: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static int parse_diff(struct add_p_state *s, const struct pathspec *ps)
                                          ^
/datasets/git/add-patch.c:397:69: warning: parameter name 'ps' is too short, expected at least 3 characters [readability-identifier-length]
static int parse_diff(struct add_p_state *s, const struct pathspec *ps)
                                                                    ^
/datasets/git/add-patch.c:401:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct strbuf *plain = &s->plain, *colored = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:402:23: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
        struct child_process cp = CHILD_PROCESS_INIT;
                             ^
/datasets/git/add-patch.c:403:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *p, *pend, *colored_p = NULL, *colored_pend = NULL, marker = '\0';
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:403:8: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        char *p, *pend, *colored_p = NULL, *colored_pend = NULL, marker = '\0';
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/add-patch.c:403:8: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/add-patch.c:403:12: warning: variable 'pend' is not initialized [cppcoreguidelines-init-variables]
        char *p, *pend, *colored_p = NULL, *colored_pend = NULL, marker = '\0';
                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/add-patch.c:404:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t file_diff_alloc = 0, i, color_arg_index;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:404:30: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t file_diff_alloc = 0, i, color_arg_index;
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/add-patch.c:404:30: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/add-patch.c:404:33: warning: variable 'color_arg_index' is not initialized [cppcoreguidelines-init-variables]
        size_t file_diff_alloc = 0, i, color_arg_index;
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/add-patch.c:407:6: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        int res;
            ^
                = 0
/datasets/git/add-patch.c:410:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (diff_algorithm)
                           ^
                            {
/datasets/git/add-patch.c:424:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ps->nr; i++)
        ^
/datasets/git/add-patch.c:403:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        char *p, *pend, *colored_p = NULL, *colored_pend = NULL, marker = '\0';
        ^
/datasets/git/add-patch.c:424:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < ps->nr; i++)
                                    ^
                                     {
/datasets/git/add-patch.c:445:46: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                xsnprintf((char *)args.v[color_arg_index], 8, "--color");
                                                           ^
/datasets/git/add-patch.c:450:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (res)
                        ^
                         {
/datasets/git/add-patch.c:464:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                         NULL, 0) < 0)
                                                      ^
                                                       {
/datasets/git/add-patch.c:479:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (p != pend) {
               ^
/datasets/git/add-patch.c:481:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                const char *deleted = NULL, *mode_change = NULL;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:483:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!eol)
                         ^
                          {
/datasets/git/add-patch.c:488:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        ALLOC_GROW_BY(s->file_diff, s->file_diff_nr, 1,
                        ^
/datasets/git/./refs/../cache.h:724:4: note: expanded from macro 'ALLOC_GROW_BY'
                        ALLOC_GROW(x, new_nr, alloc); \
                        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/add-patch.c:488:4: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        ALLOC_GROW_BY(s->file_diff, s->file_diff_nr, 1,
                        ^
/datasets/git/./refs/../cache.h:725:4: note: expanded from macro 'ALLOC_GROW_BY'
                        memset((x) + nr, 0, sizeof(*(x)) * (increase)); \
                        ^~~~~~
/datasets/git/add-patch.c:488:4: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                        ALLOC_GROW_BY(s->file_diff, s->file_diff_nr, 1,
                        ^
/datasets/git/./refs/../cache.h:725:4: note: expanded from macro 'ALLOC_GROW_BY'
                        memset((x) + nr, 0, sizeof(*(x)) * (increase)); \
                        ^~~~~~
/datasets/git/add-patch.c:493:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (colored_p)
                                      ^
                                       {
/datasets/git/add-patch.c:496:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else if (p == plain->buf)
                                           ^
                                            {
/datasets/git/add-patch.c:499:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (file_diff->deleted)
                                            ^
                                             {
/datasets/git/add-patch.c:504:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (marker == '-' || marker == '+')
                                                           ^
                                                            {
/datasets/git/add-patch.c:511:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        ALLOC_GROW_BY(file_diff->hunk, file_diff->hunk_nr, 1,
                        ^
/datasets/git/./refs/../cache.h:724:4: note: expanded from macro 'ALLOC_GROW_BY'
                        ALLOC_GROW(x, new_nr, alloc); \
                        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/add-patch.c:511:4: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        ALLOC_GROW_BY(file_diff->hunk, file_diff->hunk_nr, 1,
                        ^
/datasets/git/./refs/../cache.h:725:4: note: expanded from macro 'ALLOC_GROW_BY'
                        memset((x) + nr, 0, sizeof(*(x)) * (increase)); \
                        ^~~~~~
/datasets/git/add-patch.c:511:4: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                        ALLOC_GROW_BY(file_diff->hunk, file_diff->hunk_nr, 1,
                        ^
/datasets/git/./refs/../cache.h:725:4: note: expanded from macro 'ALLOC_GROW_BY'
                        memset((x) + nr, 0, sizeof(*(x)) * (increase)); \
                        ^~~~~~
/datasets/git/add-patch.c:516:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (colored)
                                    ^
                                     {
/datasets/git/add-patch.c:519:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (deleted)
                                    ^
                                     {
/datasets/git/add-patch.c:521:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (parse_hunk_header(s, hunk) < 0)
                                                                ^
                                                                 {
/datasets/git/add-patch.c:535:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (file_diff->mode_change)
                                                   ^
                                                    {
/datasets/git/add-patch.c:538:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (file_diff->hunk_nr)
                                               ^
                                                {
/datasets/git/add-patch.c:547:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        ALLOC_GROW_BY(file_diff->hunk, file_diff->hunk_nr, 1,
                        ^
/datasets/git/./refs/../cache.h:724:4: note: expanded from macro 'ALLOC_GROW_BY'
                        ALLOC_GROW(x, new_nr, alloc); \
                        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/add-patch.c:547:4: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        ALLOC_GROW_BY(file_diff->hunk, file_diff->hunk_nr, 1,
                        ^
/datasets/git/./refs/../cache.h:725:4: note: expanded from macro 'ALLOC_GROW_BY'
                        memset((x) + nr, 0, sizeof(*(x)) * (increase)); \
                        ^~~~~~
/datasets/git/add-patch.c:547:4: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                        ALLOC_GROW_BY(file_diff->hunk, file_diff->hunk_nr, 1,
                        ^
/datasets/git/./refs/../cache.h:725:4: note: expanded from macro 'ALLOC_GROW_BY'
                        memset((x) + nr, 0, sizeof(*(x)) * (increase)); \
                        ^~~~~~
/datasets/git/add-patch.c:550:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (colored_p)
                                      ^
                                       {
/datasets/git/add-patch.c:561:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!file_diff->mode_change)
                                                    ^
                                                     {
/datasets/git/add-patch.c:564:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (file_diff->hunk_nr != 1)
                                                    ^
                                                     {
/datasets/git/add-patch.c:567:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (p - plain->buf != file_diff->hunk->end)
                                                                   ^
                                                                    {
/datasets/git/add-patch.c:572:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                           starts_with(p, "Binary files "))
                                                           ^
                                                            {
/datasets/git/add-patch.c:576:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !!file_diff->mode_change > 1)
                                                 ^
                                                  {
/datasets/git/add-patch.c:582:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((marker == '-' || marker == '+') && *p == ' ')
                                                                  ^
                                                                   {
/datasets/git/add-patch.c:584:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (marker && *p != '\\')
                                         ^
                                          {
/datasets/git/add-patch.c:591:24: warning: Null pointer passed to 1st parameter expecting 'nonnull' [clang-analyzer-core.NonNullParamChecker]
                        char *colored_eol = memchr(colored_p, '\n',
                                            ^      ~~~~~~~~~
/datasets/git/add-patch.c:410:6: note: Assuming 'diff_algorithm' is null
        if (diff_algorithm)
            ^~~~~~~~~~~~~~
/datasets/git/add-patch.c:410:2: note: Taking false branch
        if (diff_algorithm)
        ^
/datasets/git/add-patch.c:412:6: note: Assuming field 'revision' is null
        if (s->revision) {
            ^~~~~~~~~~~
/datasets/git/add-patch.c:412:2: note: Taking false branch
        if (s->revision) {
        ^
/datasets/git/add-patch.c:424:14: note: Assuming 'i' is >= field 'nr'
        for (i = 0; i < ps->nr; i++)
                    ^~~~~~~~~~
/datasets/git/add-patch.c:424:2: note: Loop condition is false. Execution continues on line 427
        for (i = 0; i < ps->nr; i++)
        ^
/datasets/git/add-patch.c:429:8: note: Calling 'capture_command'
        res = capture_command(&cp, plain, 0);
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./run-command.h:252:9: note: Value assigned to field 'len', which participates in a condition later
        return pipe_command(cmd, NULL, 0, out, hint, NULL, 0);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./run-command.h:252:9: note: Value assigned to field 'interactive_diff_filter', which participates in a condition later
        return pipe_command(cmd, NULL, 0, out, hint, NULL, 0);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./run-command.h:252:2: note: Returning value, which participates in a condition later
        return pipe_command(cmd, NULL, 0, out, hint, NULL, 0);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:429:8: note: Returning from 'capture_command'
        res = capture_command(&cp, plain, 0);
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:430:6: note: Assuming 'res' is 0
        if (res) {
            ^~~
/datasets/git/add-patch.c:430:2: note: Taking false branch
        if (res) {
        ^
/datasets/git/add-patch.c:434:6: note: Assuming field 'len' is not equal to 0
        if (!plain->len) {
            ^~~~~~~~~~~
/datasets/git/add-patch.c:434:2: note: Taking false branch
        if (!plain->len) {
        ^
/datasets/git/add-patch.c:440:6: note: Assuming the condition is true
        if (want_color_fd(1, -1)) {
            ^~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:440:2: note: Taking true branch
        if (want_color_fd(1, -1)) {
        ^
/datasets/git/add-patch.c:448:9: note: Calling 'capture_command'
                res = capture_command(&colored_cp, colored, 0);
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./run-command.h:252:9: note: Value assigned to field 'buf'
        return pipe_command(cmd, NULL, 0, out, hint, NULL, 0);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./run-command.h:252:2: note: Returning value, which participates in a condition later
        return pipe_command(cmd, NULL, 0, out, hint, NULL, 0);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:448:9: note: Returning from 'capture_command'
                res = capture_command(&colored_cp, colored, 0);
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:450:7: note: Assuming 'res' is 0
                if (res)
                    ^~~
/datasets/git/add-patch.c:450:3: note: Taking false branch
                if (res)
                ^
/datasets/git/add-patch.c:453:7: note: Assuming 'diff_filter' is null
                if (diff_filter) {
                    ^~~~~~~~~~~
/datasets/git/add-patch.c:453:3: note: Taking false branch
                if (diff_filter) {
                ^
/datasets/git/add-patch.c:470:3: note: Calling 'strbuf_complete_line'
                strbuf_complete_line(colored);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./strbuf.h:693:2: note: Calling 'strbuf_complete'
        strbuf_complete(sb, '\n');
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./strbuf.h:687:6: note: Assuming field 'len' is 0
        if (sb->len && sb->buf[sb->len - 1] != term)
            ^~~~~~~
/datasets/git/./strbuf.h:687:14: note: Left side of '&&' is false
        if (sb->len && sb->buf[sb->len - 1] != term)
                    ^
/datasets/git/./strbuf.h:689:1: note: Returning without writing to 'sb->buf'
}
^
/datasets/git/./strbuf.h:693:2: note: Returning from 'strbuf_complete'
        strbuf_complete(sb, '\n');
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./strbuf.h:694:1: note: Returning without writing to 'sb->buf'
}
^
/datasets/git/add-patch.c:470:3: note: Returning from 'strbuf_complete_line'
                strbuf_complete_line(colored);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:471:3: note: Value assigned to 'colored_p'
                colored_p = colored->buf;
                ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:479:2: note: Loop condition is true.  Entering loop body
        while (p != pend) {
        ^
/datasets/git/add-patch.c:483:7: note: Assuming 'eol' is non-null
                if (!eol)
                    ^~~~
/datasets/git/add-patch.c:483:3: note: Taking false branch
                if (!eol)
                ^
/datasets/git/add-patch.c:486:7: note: Assuming the condition is true
                if (starts_with(p, "diff ")) {
                    ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:486:3: note: Taking true branch
                if (starts_with(p, "diff ")) {
                ^
/datasets/git/add-patch.c:488:4: note: Taking true branch
                        ALLOC_GROW_BY(s->file_diff, s->file_diff_nr, 1,
                        ^
/datasets/git/./refs/../cache.h:720:3: note: expanded from macro 'ALLOC_GROW_BY'
                if (increase) { \
                ^
/datasets/git/add-patch.c:488:4: note: Assuming 'new_nr' is >= field 'file_diff_nr'
                        ALLOC_GROW_BY(s->file_diff, s->file_diff_nr, 1,
                        ^
/datasets/git/./refs/../cache.h:722:8: note: expanded from macro 'ALLOC_GROW_BY'
                        if (new_nr < nr) \
                            ^~~~~~~~~~~
/datasets/git/add-patch.c:488:4: note: Taking false branch
                        ALLOC_GROW_BY(s->file_diff, s->file_diff_nr, 1,
                        ^
/datasets/git/./refs/../cache.h:722:4: note: expanded from macro 'ALLOC_GROW_BY'
                        if (new_nr < nr) \
                        ^
/datasets/git/add-patch.c:488:4: note: Assuming 'new_nr' is > 'file_diff_alloc'
                        ALLOC_GROW_BY(s->file_diff, s->file_diff_nr, 1,
                        ^
/datasets/git/./refs/../cache.h:724:4: note: expanded from macro 'ALLOC_GROW_BY'
                        ALLOC_GROW(x, new_nr, alloc); \
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./refs/../cache.h:702:7: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                    ^~~~~~~~~~~~
/datasets/git/add-patch.c:488:4: note: Taking true branch
                        ALLOC_GROW_BY(s->file_diff, s->file_diff_nr, 1,
                        ^
/datasets/git/./refs/../cache.h:724:4: note: expanded from macro 'ALLOC_GROW_BY'
                        ALLOC_GROW(x, new_nr, alloc); \
                        ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/add-patch.c:488:4: note: Assuming the condition is false
                        ALLOC_GROW_BY(s->file_diff, s->file_diff_nr, 1,
                        ^
/datasets/git/./refs/../cache.h:724:4: note: expanded from macro 'ALLOC_GROW_BY'
                        ALLOC_GROW(x, new_nr, alloc); \
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./refs/../cache.h:703:8: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                            ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./refs/../cache.h:655:21: note: expanded from macro 'alloc_nr'
#define alloc_nr(x) (((x)+16)*3/2)
                    ^
/datasets/git/add-patch.c:488:4: note: Taking false branch
                        ALLOC_GROW_BY(s->file_diff, s->file_diff_nr, 1,
                        ^
/datasets/git/./refs/../cache.h:724:4: note: expanded from macro 'ALLOC_GROW_BY'
                        ALLOC_GROW(x, new_nr, alloc); \
                        ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/add-patch.c:488:4: note: Loop condition is false.  Exiting loop
                        ALLOC_GROW_BY(s->file_diff, s->file_diff_nr, 1,
                        ^
/datasets/git/./refs/../cache.h:724:4: note: expanded from macro 'ALLOC_GROW_BY'
                        ALLOC_GROW(x, new_nr, alloc); \
                        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/add-patch.c:488:4: note: Loop condition is false.  Exiting loop
                        ALLOC_GROW_BY(s->file_diff, s->file_diff_nr, 1,
                        ^
/datasets/git/./refs/../cache.h:719:2: note: expanded from macro 'ALLOC_GROW_BY'
        do { \
        ^
/datasets/git/add-patch.c:493:8: note: Assuming 'colored_p' is null
                        if (colored_p)
                            ^~~~~~~~~
/datasets/git/add-patch.c:493:4: note: Taking false branch
                        if (colored_p)
                        ^
/datasets/git/add-patch.c:575:7: note: Assuming the condition is false
                if (!!file_diff->deleted + !!file_diff->added +
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:575:3: note: Taking false branch
                if (!!file_diff->deleted + !!file_diff->added +
                ^
/datasets/git/add-patch.c:582:8: note: Left side of '||' is false
                if ((marker == '-' || marker == '+') && *p == ' ')
                     ^
/datasets/git/add-patch.c:582:40: note: Left side of '&&' is false
                if ((marker == '-' || marker == '+') && *p == ' ')
                                                     ^
/datasets/git/add-patch.c:584:7: note: 'marker' is 0
                if (marker && *p != '\\')
                    ^~~~~~
/datasets/git/add-patch.c:584:14: note: Left side of '&&' is false
                if (marker && *p != '\\')
                           ^
/datasets/git/add-patch.c:587:7: note: Assuming 'eol' is not equal to 'pend'
                p = eol == pend ? pend : eol + 1;
                    ^~~~~~~~~~~
/datasets/git/add-patch.c:587:7: note: '?' condition is false
/datasets/git/add-patch.c:590:7: note: 'colored' is non-null
                if (colored) {
                    ^~~~~~~
/datasets/git/add-patch.c:590:3: note: Taking true branch
                if (colored) {
                ^
/datasets/git/add-patch.c:591:24: note: Null pointer passed to 1st parameter expecting 'nonnull'
                        char *colored_eol = memchr(colored_p, '\n',
                                            ^      ~~~~~~~~~
/datasets/git/add-patch.c:593:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (colored_eol)
                                        ^
                                         {
/datasets/git/add-patch.c:595:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (p != pend)
                                           ^
                                            {
/datasets/git/add-patch.c:597:5: warning: repeated branch in conditional chain [bugprone-branch-clone]
                                goto mismatched_output;
                                ^
/datasets/git/add-patch.c:597:27: note: end of the original
                                goto mismatched_output;
                                                      ^
/datasets/git/add-patch.c:600:5: note: clone 1 starts here
                                goto mismatched_output;
                                ^
/datasets/git/add-patch.c:598:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (colored_p == colored_pend)
                                                           ^
                                                            {
/datasets/git/add-patch.c:601:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/add-patch.c:608:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (file_diff->hunk_nr != 1)
                                                    ^
                                                     {
/datasets/git/add-patch.c:613:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (colored)
                                    ^
                                     {
/datasets/git/add-patch.c:631:45: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static size_t find_next_line(struct strbuf *sb, size_t offset)
                                            ^
/datasets/git/add-patch.c:633:8: warning: variable 'eol' is not initialized [cppcoreguidelines-init-variables]
        char *eol;
              ^
                  = NULL
/datasets/git/add-patch.c:635:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (offset >= sb->len)
                              ^
                               {
/datasets/git/add-patch.c:640:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!eol)
                 ^
                  {
/datasets/git/add-patch.c:645:45: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void render_hunk(struct add_p_state *s, struct hunk *hunk,
                                            ^
/datasets/git/add-patch.c:646:4: warning: 2 adjacent parameters of 'render_hunk' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                        ssize_t delta, int colored, struct strbuf *out)
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:646:12: note: the first parameter in the range is 'delta'
                        ssize_t delta, int colored, struct strbuf *out)
                                ^~~~~
/datasets/git/add-patch.c:646:23: note: the last parameter in the range is 'colored'
                        ssize_t delta, int colored, struct strbuf *out)
                                           ^~~~~~~
/datasets/git/add-patch.c:646:4: note: 
                        ssize_t delta, int colored, struct strbuf *out)
                        ^
/datasets/git/add-patch.c:646:19: note: 'ssize_t' and 'int' may be implicitly converted: 'ssize_t' (as 'long') -> 'int', 'int' -> 'ssize_t' (as 'long')
                        ssize_t delta, int colored, struct strbuf *out)
                                       ^
/datasets/git/add-patch.c:655:15: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                const char *p;
                            ^
                              = NULL
/datasets/git/add-patch.c:655:15: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/add-patch.c:656:10: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
                size_t len;
                       ^
                           = 0
/datasets/git/add-patch.c:679:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (s->mode->is_reverse)
                                        ^
                                         {
/datasets/git/add-patch.c:681:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/add-patch.c:685:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (header->old_count != 1)
                                           ^
                                            {
/datasets/git/add-patch.c:688:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (header->new_count != 1)
                                           ^
                                            {
/datasets/git/add-patch.c:692:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (len)
                        ^
                         {
/datasets/git/add-patch.c:694:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (colored)
                                 ^
                                  {
/datasets/git/add-patch.c:696:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/add-patch.c:700:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (colored)
                    ^
                     {
/datasets/git/add-patch.c:703:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/add-patch.c:708:52: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void render_diff_header(struct add_p_state *s,
                                                   ^
/datasets/git/add-patch.c:719:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct hunk *head = &file_diff->head, *first = file_diff->hunk;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:727:15: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                const char *p = s->colored.buf;
                            ^
/datasets/git/add-patch.c:734:15: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                const char *p = s->plain.buf;
                            ^
/datasets/git/add-patch.c:742:12: warning: function 'merge_hunks' has cognitive complexity of 30 (threshold 25) [readability-function-cognitive-complexity]
static int merge_hunks(struct add_p_state *s, struct file_diff *file_diff,
           ^
/datasets/git/add-patch.c:750:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!use_all && hunk->use != USE_HUNK)
        ^
/datasets/git/add-patch.c:750:15: note: +1
        if (!use_all && hunk->use != USE_HUNK)
                     ^
/datasets/git/add-patch.c:757:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (; i + 1 < file_diff->hunk_nr; i++) {
        ^
/datasets/git/add-patch.c:767:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((!use_all && hunk->use != USE_HUNK) ||
                ^
/datasets/git/add-patch.c:768:62: note: +1
                    header->new_offset >= next->new_offset + merged->delta ||
                                                                           ^
/datasets/git/add-patch.c:767:17: note: +1
                if ((!use_all && hunk->use != USE_HUNK) ||
                              ^
/datasets/git/add-patch.c:777:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (merged->start < hunk->start && merged->end > hunk->start) {
                ^
/datasets/git/add-patch.c:777:35: note: +1
                if (merged->start < hunk->start && merged->end > hunk->start) {
                                                ^
/datasets/git/add-patch.c:781:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/add-patch.c:798:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (j = 0; j < overlapping_line_count; j++) {
                        ^
/datasets/git/add-patch.c:802:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (overlap_next > hunk->end)
                                ^
/datasets/git/add-patch.c:809:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (plain[overlap_end] != ' ')
                                ^
/datasets/git/add-patch.c:822:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (len > merged->end - merged->start ||
                        ^
/datasets/git/add-patch.c:822:42: note: +1
                        if (len > merged->end - merged->start ||
                                                              ^
/datasets/git/add-patch.c:837:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (merged->end != s->plain.len) {
                        ^
/datasets/git/add-patch.c:862:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (i == *hunk_index)
        ^
/datasets/git/add-patch.c:742:44: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static int merge_hunks(struct add_p_state *s, struct file_diff *file_diff,
                                           ^
/datasets/git/add-patch.c:745:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t i = *hunk_index, delta;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:745:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        size_t i = *hunk_index, delta;
               ^
/datasets/git/add-patch.c:745:26: warning: variable 'delta' is not initialized [cppcoreguidelines-init-variables]
        size_t i = *hunk_index, delta;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/add-patch.c:748:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct hunk_header *header = &merged->header, *next;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:748:49: warning: variable 'next' is not initialized [cppcoreguidelines-init-variables]
        struct hunk_header *header = &merged->header, *next;
                                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/add-patch.c:750:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!use_all && hunk->use != USE_HUNK)
                                              ^
                                               {
/datasets/git/add-patch.c:757:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; i + 1 < file_diff->hunk_nr; i++) {
               ^
/datasets/git/add-patch.c:770:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    < next->new_offset + merged->delta)
                                                       ^
                                                        {
/datasets/git/add-patch.c:788:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        size_t overlap_next, len, j;
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:783:4: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                        size_t  overlapping_line_count = header->new_offset
                        ^
/datasets/git/add-patch.c:788:11: warning: variable 'overlap_next' is not initialized [cppcoreguidelines-init-variables]
                        size_t overlap_next, len, j;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/add-patch.c:788:25: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
                        size_t overlap_next, len, j;
                                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/add-patch.c:788:30: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
                        size_t overlap_next, len, j;
                                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/add-patch.c:788:30: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/add-patch.c:798:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (j = 0; j < overlapping_line_count; j++) {
                        ^
/datasets/git/add-patch.c:798:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'overlapping_line_count' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (j = 0; j < overlapping_line_count; j++) {
                                    ^
/datasets/git/add-patch.c:802:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (overlap_next > hunk->end)
                                                             ^
                                                              {
/datasets/git/add-patch.c:809:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (plain[overlap_end] != ' ')
                                                              ^
                                                               {
/datasets/git/add-patch.c:823:8: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                            memcmp(plain + merged->end - len,
                            ^
/datasets/git/add-patch.c:824:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                   plain + overlap_start, len))
                                                               ^
                                                                {
/datasets/git/add-patch.c:862:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (i == *hunk_index)
                             ^
                              {
/datasets/git/add-patch.c:869:50: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void reassemble_patch(struct add_p_state *s,
                                                 ^
/datasets/git/add-patch.c:873:15: warning: variable 'hunk' is not initialized [cppcoreguidelines-init-variables]
        struct hunk *hunk;
                     ^
                          = NULL
/datasets/git/add-patch.c:874:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t save_len = s->plain.len, i;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:874:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/add-patch.c:874:34: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t save_len = s->plain.len, i;
                                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/add-patch.c:874:34: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/add-patch.c:879:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = file_diff->mode_change; i < file_diff->hunk_nr; i++) {
        ^
/datasets/git/add-patch.c:879:35: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = file_diff->mode_change; i < file_diff->hunk_nr; i++) {
                                         ^
/datasets/git/add-patch.c:883:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!use_all && hunk->use != USE_HUNK)
                                                      ^
                                                       {
/datasets/git/add-patch.c:884:13: warning: narrowing conversion from 'unsigned long' to signed type 'ssize_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        delta += hunk->header.old_count
                                 ^
/datasets/git/add-patch.c:888:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (merge_hunks(s, file_diff, &i, use_all, &merged))
                                                                            ^
                                                                             {
/datasets/git/add-patch.c:905:12: warning: function 'split_hunk' has cognitive complexity of 53 (threshold 25) [readability-function-cognitive-complexity]
static int split_hunk(struct add_p_state *s, struct file_diff *file_diff,
           ^
/datasets/git/add-patch.c:915:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (hunk_index >= file_diff->hunk_nr)
        ^
/datasets/git/add-patch.c:919:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (hunk->splittable_into < 2)
        ^
/datasets/git/add-patch.c:929:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        ALLOC_GROW(file_diff->hunk, file_diff->hunk_nr, file_diff->hunk_alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/add-patch.c:929:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        ALLOC_GROW(file_diff->hunk, file_diff->hunk_nr, file_diff->hunk_alloc);
        ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/add-patch.c:929:2: note: +3, including nesting penalty of 2, nesting level increased to 3
        ALLOC_GROW(file_diff->hunk, file_diff->hunk_nr, file_diff->hunk_alloc);
        ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/add-patch.c:929:2: note: +1, nesting level increased to 3
        ALLOC_GROW(file_diff->hunk, file_diff->hunk_nr, file_diff->hunk_alloc);
        ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/add-patch.c:930:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (hunk_index + splittable_into < file_diff->hunk_nr)
        ^
/datasets/git/add-patch.c:943:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (colored)
        ^
/datasets/git/add-patch.c:948:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (splittable_into > 1) {
        ^
/datasets/git/add-patch.c:951:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!ch)
                ^
/datasets/git/add-patch.c:958:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((marker == '-' || marker == '+') && ch == ' ') {
                ^
/datasets/git/add-patch.c:958:40: note: +1
                if ((marker == '-' || marker == '+') && ch == ' ') {
                                                     ^
/datasets/git/add-patch.c:958:22: note: +1
                if ((marker == '-' || marker == '+') && ch == ' ') {
                                   ^
/datasets/git/add-patch.c:961:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (colored)
                        ^
/datasets/git/add-patch.c:973:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (marker != ' ' || (ch != '-' && ch != '+')) {
                ^
/datasets/git/add-patch.c:973:21: note: +1
                if (marker != ' ' || (ch != '-' && ch != '+')) {
                                  ^
/datasets/git/add-patch.c:973:35: note: +1
                if (marker != ' ' || (ch != '-' && ch != '+')) {
                                                ^
/datasets/git/add-patch.c:976:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ch == '\\')
                        ^
/datasets/git/add-patch.c:977:17: note: +4, including nesting penalty of 3, nesting level increased to 4
                                ch = marker ? marker : ' ';
                                            ^
/datasets/git/add-patch.c:980:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ch == ' ')
                        ^
/datasets/git/add-patch.c:982:9: note: +1, nesting level increased to 3
                        else if (ch == '-')
                             ^
/datasets/git/add-patch.c:984:9: note: +1, nesting level increased to 3
                        else if (ch == '+')
                             ^
/datasets/git/add-patch.c:986:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/add-patch.c:990:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (colored)
                        ^
/datasets/git/add-patch.c:1004:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (first) {
                ^
/datasets/git/add-patch.c:1005:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (header->old_count || header->new_count)
                        ^
/datasets/git/add-patch.c:1005:26: note: +1
                        if (header->old_count || header->new_count)
                                              ^
/datasets/git/add-patch.c:1014:4: note: +1
                        goto next_hunk_line;
                        ^
/datasets/git/add-patch.c:1033:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (colored)
                ^
/datasets/git/add-patch.c:1049:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (header->old_offset != remaining.old_offset)
        ^
/datasets/git/add-patch.c:1052:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (header->new_offset != remaining.new_offset)
        ^
/datasets/git/add-patch.c:1058:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (colored)
        ^
/datasets/git/add-patch.c:905:43: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static int split_hunk(struct add_p_state *s, struct file_diff *file_diff,
                                          ^
/datasets/git/add-patch.c:908:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int colored = !!s->colored.len, first = 1;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:910:9: warning: variable 'splittable_into' is not initialized [cppcoreguidelines-init-variables]
        size_t splittable_into;
               ^
                               = 0
/datasets/git/add-patch.c:911:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t end, colored_end, current, colored_current = 0, context_line_count;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:911:9: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
        size_t end, colored_end, current, colored_current = 0, context_line_count;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/add-patch.c:911:14: warning: variable 'colored_end' is not initialized [cppcoreguidelines-init-variables]
        size_t end, colored_end, current, colored_current = 0, context_line_count;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/add-patch.c:911:27: warning: variable 'current' is not initialized [cppcoreguidelines-init-variables]
        size_t end, colored_end, current, colored_current = 0, context_line_count;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/add-patch.c:911:57: warning: variable 'context_line_count' is not initialized [cppcoreguidelines-init-variables]
        size_t end, colored_end, current, colored_current = 0, context_line_count;
                                                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/add-patch.c:912:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct hunk_header remaining, *header;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:912:33: warning: variable 'header' is not initialized [cppcoreguidelines-init-variables]
        struct hunk_header remaining, *header;
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/add-patch.c:913:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char marker, ch;
        ^~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:913:7: warning: variable 'marker' is not initialized [cppcoreguidelines-init-variables]
        char marker, ch;
             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/add-patch.c:913:15: warning: variable 'ch' is not initialized [cppcoreguidelines-init-variables]
        char marker, ch;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/add-patch.c:913:15: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/add-patch.c:915:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (hunk_index >= file_diff->hunk_nr)
                                             ^
                                              {
/datasets/git/add-patch.c:919:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (hunk->splittable_into < 2)
                                      ^
                                       {
/datasets/git/add-patch.c:929:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(file_diff->hunk, file_diff->hunk_nr, file_diff->hunk_alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/add-patch.c:930:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (hunk_index + splittable_into < file_diff->hunk_nr)
                                                              ^
                                                               {
/datasets/git/add-patch.c:931:3: warning: Call to function 'memmove' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memmove_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memmove(file_diff->hunk + hunk_index + splittable_into,
                ^~~~~~~
/datasets/git/add-patch.c:931:3: note: Call to function 'memmove' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memmove_s' in case of C11
                memmove(file_diff->hunk + hunk_index + splittable_into,
                ^~~~~~~
/datasets/git/add-patch.c:937:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(hunk + 1, 0, (splittable_into - 1) * sizeof(*hunk));
        ^~~~~~
/datasets/git/add-patch.c:937:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(hunk + 1, 0, (splittable_into - 1) * sizeof(*hunk));
        ^~~~~~
/datasets/git/add-patch.c:943:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (colored)
                    ^
                     {
/datasets/git/add-patch.c:948:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (splittable_into > 1) {
        ^
/datasets/git/add-patch.c:948:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'splittable_into' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (splittable_into > 1) {
               ^
/datasets/git/add-patch.c:951:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ch)
                        ^
                         {
/datasets/git/add-patch.c:961:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (colored)
                                    ^
                                     {
/datasets/git/add-patch.c:976:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ch == '\\')
                                       ^
                                        {
/datasets/git/add-patch.c:977:19: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                ch = marker ? marker : ' ';
                                              ^
/datasets/git/add-patch.c:980:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ch == ' ')
                                      ^
                                       {
/datasets/git/add-patch.c:982:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (ch == '-')
                                           ^
                                            {
/datasets/git/add-patch.c:984:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (ch == '+')
                                           ^
                                            {
/datasets/git/add-patch.c:986:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/add-patch.c:990:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (colored)
                                    ^
                                     {
/datasets/git/add-patch.c:1005:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (header->old_count || header->new_count)
                                                                   ^
                                                                    {
/datasets/git/add-patch.c:1033:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (colored)
                            ^
                             {
/datasets/git/add-patch.c:1049:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (header->old_offset != remaining.old_offset)
                                                       ^
                                                        {
/datasets/git/add-patch.c:1052:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (header->new_offset != remaining.new_offset)
                                                       ^
                                                        {
/datasets/git/add-patch.c:1058:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (colored)
                    ^
                     {
/datasets/git/add-patch.c:1064:46: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void recolor_hunk(struct add_p_state *s, struct hunk *hunk)
                                             ^
/datasets/git/add-patch.c:1067:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t current, eol, next;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:1067:9: warning: variable 'current' is not initialized [cppcoreguidelines-init-variables]
        size_t current, eol, next;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/add-patch.c:1067:18: warning: variable 'eol' is not initialized [cppcoreguidelines-init-variables]
        size_t current, eol, next;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/add-patch.c:1067:23: warning: variable 'next' is not initialized [cppcoreguidelines-init-variables]
        size_t current, eol, next;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/add-patch.c:1069:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!s->colored.len)
                            ^
                             {
/datasets/git/add-patch.c:1073:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'current' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (current = hunk->start; current < hunk->end; ) {
                                    ^
/datasets/git/add-patch.c:1074:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (eol = current; eol < hunk->end; eol++)
                ^
/datasets/git/add-patch.c:1074:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 'eol' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (eol = current; eol < hunk->end; eol++)
                                    ^
/datasets/git/add-patch.c:1074:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (eol = current; eol < hunk->end; eol++)
                                                           ^
                                                            {
/datasets/git/add-patch.c:1075:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (plain[eol] == '\n')
                                               ^
                                                {
/datasets/git/add-patch.c:1078:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (eol > current && plain[eol - 1] == '\r')
                                                            ^
                                                             {
/datasets/git/add-patch.c:1089:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (next > eol)
                               ^
                                {
/datasets/git/add-patch.c:1096:51: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static int edit_hunk_manually(struct add_p_state *s, struct hunk *hunk)
                                                  ^
/datasets/git/add-patch.c:1098:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i;
               ^
                 = 0
/datasets/git/add-patch.c:1098:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/add-patch.c:1125:74: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strbuf_edit_interactively(&s->buf, "addp-hunk-edit.diff", NULL) < 0)
                                                                                ^
                                                                                 {
/datasets/git/add-patch.c:1130:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < s->buf.len; ) {
        ^
/datasets/git/add-patch.c:1130:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < s->buf.len; ) {
                    ^
/datasets/git/add-patch.c:1133:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (s->buf.buf[i] != comment_line_char)
                                                       ^
                                                        {
/datasets/git/add-patch.c:1139:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (hunk->end == hunk->start)
                                     ^
                                      {
/datasets/git/add-patch.c:1151:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            parse_hunk_header(s, hunk) < 0)
                                           ^
                                            {
/datasets/git/add-patch.c:1157:56: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static ssize_t recount_edited_hunk(struct add_p_state *s, struct hunk *hunk,
                                                       ^
/datasets/git/add-patch.c:1161:2: note: inferred assignment of ID-dependent value from ID-dependent member start [altera-id-dependent-backward-branch]
        size_t i;
        ^
/datasets/git/add-patch.c:1161:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i;
               ^
                 = 0
/datasets/git/add-patch.c:1161:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/add-patch.c:1164:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = hunk->start; i < hunk->end; ) {
        ^
/datasets/git/add-patch.c:1164:24: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = hunk->start; i < hunk->end; ) {
                              ^
/datasets/git/add-patch.c:1181:9: warning: narrowing conversion from 'unsigned long' to signed type 'ssize_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return orig_old_count - orig_new_count
               ^
/datasets/git/add-patch.c:1185:48: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static int run_apply_check(struct add_p_state *s,
                                               ^
/datasets/git/add-patch.c:1188:23: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
        struct child_process cp = CHILD_PROCESS_INIT;
                             ^
/datasets/git/add-patch.c:1196:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pipe_command(&cp, s->buf.buf, s->buf.len, NULL, 0, NULL, 0))
                                                                        ^
                                                                         {
/datasets/git/add-patch.c:1202:54: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static int read_single_character(struct add_p_state *s)
                                                     ^
/datasets/git/add-patch.c:1210:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (git_read_line_interactively(&s->answer) == EOF)
                                                           ^
                                                            {
/datasets/git/add-patch.c:1215:45: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static int prompt_yesno(struct add_p_state *s, const char *prompt)
                                            ^
/datasets/git/add-patch.c:1217:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/add-patch.c:1219:3: warning: the value returned by this function should be used [cert-err33-c]
                fflush(stdout);
                ^~~~~~~~~~~~~~
/datasets/git/add-patch.c:1219:3: note: cast the expression to void to silence this warning
/datasets/git/add-patch.c:1220:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (read_single_character(s) == EOF)
                                                    ^
                                                     {
/datasets/git/add-patch.c:1229:47: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static int edit_hunk_loop(struct add_p_state *s,
                                              ^
/datasets/git/add-patch.c:1232:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t plain_len = s->plain.len, colored_len = s->colored.len;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:1237:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/add-patch.c:1250:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!run_apply_check(s, file_diff))
                                                           ^
                                                            {
/datasets/git/add-patch.c:1269:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (res < 1)
                            ^
                             {
/datasets/git/add-patch.c:1274:51: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static int apply_for_checkout(struct add_p_state *s, struct strbuf *diff,
                                                  ^
/datasets/git/add-patch.c:1282:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int applies_index, applies_worktree;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:1282:6: warning: variable 'applies_index' is not initialized [cppcoreguidelines-init-variables]
        int applies_index, applies_worktree;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/add-patch.c:1282:21: warning: variable 'applies_worktree' is not initialized [cppcoreguidelines-init-variables]
        int applies_index, applies_worktree;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/add-patch.c:1318:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/add-patch.c:1320:3: warning: the value returned by this function should be used [cert-err33-c]
                fwrite(diff->buf, diff->len, 1, stderr);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:1320:3: note: cast the expression to void to silence this warning
/datasets/git/add-patch.c:1325:1: warning: replace macro with enum [modernize-macro-to-enum]
#define SUMMARY_HEADER_WIDTH 20
^~~~~~~~
                             = ,
/datasets/git/add-patch.c:1325:9: warning: macro 'SUMMARY_HEADER_WIDTH' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define SUMMARY_HEADER_WIDTH 20
        ^
/datasets/git/add-patch.c:1326:9: warning: macro 'SUMMARY_LINE_WIDTH' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define SUMMARY_LINE_WIDTH 80
        ^
/datasets/git/add-patch.c:1327:48: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void summarize_hunk(struct add_p_state *s, struct hunk *hunk,
                                               ^
/datasets/git/add-patch.c:1332:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t len = out->len, i;
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:1332:25: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t len = out->len, i;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/add-patch.c:1332:25: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/add-patch.c:1337:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (out->len - len < SUMMARY_HEADER_WIDTH)
                                                  ^
                                                   {
/datasets/git/add-patch.c:1340:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = hunk->start; i < hunk->end; i = find_next_line(plain, i))
        ^
/datasets/git/add-patch.c:1340:24: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = hunk->start; i < hunk->end; i = find_next_line(plain, i))
                              ^
/datasets/git/add-patch.c:1340:68: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = hunk->start; i < hunk->end; i = find_next_line(plain, i))
                                                                          ^
                                                                           {
/datasets/git/add-patch.c:1341:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (plain->buf[i] != ' ')
                                         ^
                                          {
/datasets/git/add-patch.c:1343:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (i < hunk->end)
                          ^
                           {
/datasets/git/add-patch.c:1345:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (out->len - len > SUMMARY_LINE_WIDTH)
                                                ^
                                                 {
/datasets/git/add-patch.c:1350:1: warning: replace macro with enum [modernize-macro-to-enum]
#define DISPLAY_HUNKS_LINES 20
^~~~~~~~
                            =
/datasets/git/add-patch.c:1350:9: warning: macro 'DISPLAY_HUNKS_LINES' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define DISPLAY_HUNKS_LINES 20
        ^
/datasets/git/add-patch.c:1351:49: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static size_t display_hunks(struct add_p_state *s,
                                                ^
/datasets/git/add-patch.c:1356:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (end_index > file_diff->hunk_nr)
                                           ^
                                            {
/datasets/git/add-patch.c:1359:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (start_index < end_index) {
        ^
/datasets/git/add-patch.c:1359:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'end_index' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (start_index < end_index) {
               ^
/datasets/git/add-patch.c:1367:3: warning: the value returned by this function should be used [cert-err33-c]
                fputs(s->buf.buf, stdout);
                ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:1367:3: note: cast the expression to void to silence this warning
/datasets/git/add-patch.c:1384:12: warning: function 'patch_update_file' has cognitive complexity of 215 (threshold 25) [readability-function-cognitive-complexity]
static int patch_update_file(struct add_p_state *s,
           ^
/datasets/git/add-patch.c:1405:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!file_diff->hunk_nr && !file_diff->added)
        ^
/datasets/git/add-patch.c:1405:26: note: +1
        if (!file_diff->hunk_nr && !file_diff->added)
                                ^
/datasets/git/add-patch.c:1411:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (;;) {
        ^
/datasets/git/add-patch.c:1412:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (hunk_index >= file_diff->hunk_nr)
                ^
/datasets/git/add-patch.c:1415:5: note: +2, including nesting penalty of 1, nesting level increased to 2
                                ? file_diff->hunk + hunk_index
                                ^
/datasets/git/add-patch.c:1420:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (file_diff->hunk_nr) {
                ^
/datasets/git/add-patch.c:1421:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (i = hunk_index - 1; i >= 0; i--)
                        ^
/datasets/git/add-patch.c:1422:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (file_diff->hunk[i].use == UNDECIDED_HUNK) {
                                ^
/datasets/git/add-patch.c:1427:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (i = hunk_index + 1; i < file_diff->hunk_nr; i++)
                        ^
/datasets/git/add-patch.c:1428:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (file_diff->hunk[i].use == UNDECIDED_HUNK) {
                                ^
/datasets/git/add-patch.c:1435:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (undecided_previous < 0 && undecided_next < 0 &&
                ^
/datasets/git/add-patch.c:1435:52: note: +1
                if (undecided_previous < 0 && undecided_next < 0 &&
                                                                 ^
/datasets/git/add-patch.c:1440:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (file_diff->hunk_nr) {
                ^
/datasets/git/add-patch.c:1445:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (undecided_previous >= 0) {
                        ^
/datasets/git/add-patch.c:1449:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (hunk_index) {
                        ^
/datasets/git/add-patch.c:1453:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (undecided_next >= 0) {
                        ^
/datasets/git/add-patch.c:1457:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (hunk_index + 1 < file_diff->hunk_nr) {
                        ^
/datasets/git/add-patch.c:1461:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (file_diff->hunk_nr > 1) {
                        ^
/datasets/git/add-patch.c:1465:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (hunk->splittable_into > 1) {
                        ^
/datasets/git/add-patch.c:1469:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (hunk_index + 1 > file_diff->mode_change &&
                        ^
/datasets/git/add-patch.c:1469:48: note: +1
                        if (hunk_index + 1 > file_diff->mode_change &&
                                                                    ^
/datasets/git/add-patch.c:1475:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (file_diff->deleted)
                ^
/datasets/git/add-patch.c:1477:8: note: +1, nesting level increased to 2
                else if (file_diff->added)
                     ^
/datasets/git/add-patch.c:1479:8: note: +1, nesting level increased to 2
                else if (file_diff->mode_change && !hunk_index)
                     ^
/datasets/git/add-patch.c:1479:35: note: +1
                else if (file_diff->mode_change && !hunk_index)
                                                ^
/datasets/git/add-patch.c:1481:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/add-patch.c:1487:7: note: +2, including nesting penalty of 1, nesting level increased to 2
                                                ? file_diff->hunk_nr
                                                ^
/datasets/git/add-patch.c:1491:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*s->s.reset_color)
                ^
/datasets/git/add-patch.c:1494:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (read_single_character(s) == EOF)
                ^
/datasets/git/add-patch.c:1497:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!s->answer.len)
                ^
/datasets/git/add-patch.c:1500:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ch == 'y') {
                ^
/datasets/git/add-patch.c:1503:36: note: +3, including nesting penalty of 2, nesting level increased to 3
                        hunk_index = undecided_next < 0 ?
                                                        ^
/datasets/git/add-patch.c:1505:10: note: +1, nesting level increased to 2
                } else if (ch == 'n') {
                       ^
/datasets/git/add-patch.c:1507:4: note: +1
                        goto soft_increment;
                        ^
/datasets/git/add-patch.c:1508:10: note: +1, nesting level increased to 2
                } else if (ch == 'a') {
                       ^
/datasets/git/add-patch.c:1509:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (file_diff->hunk_nr) {
                        ^
/datasets/git/add-patch.c:1510:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                for (; hunk_index < file_diff->hunk_nr; hunk_index++) {
                                ^
/datasets/git/add-patch.c:1512:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (hunk->use == UNDECIDED_HUNK)
                                        ^
/datasets/git/add-patch.c:1515:11: note: +1, nesting level increased to 3
                        } else if (hunk->use == UNDECIDED_HUNK) {
                               ^
/datasets/git/add-patch.c:1518:10: note: +1, nesting level increased to 2
                } else if (ch == 'd' || ch == 'q') {
                       ^
/datasets/git/add-patch.c:1518:24: note: +1
                } else if (ch == 'd' || ch == 'q') {
                                     ^
/datasets/git/add-patch.c:1519:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (file_diff->hunk_nr) {
                        ^
/datasets/git/add-patch.c:1520:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                for (; hunk_index < file_diff->hunk_nr; hunk_index++) {
                                ^
/datasets/git/add-patch.c:1522:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (hunk->use == UNDECIDED_HUNK)
                                        ^
/datasets/git/add-patch.c:1525:11: note: +1, nesting level increased to 3
                        } else if (hunk->use == UNDECIDED_HUNK) {
                               ^
/datasets/git/add-patch.c:1528:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ch == 'q') {
                        ^
/datasets/git/add-patch.c:1532:10: note: +1, nesting level increased to 2
                } else if (s->answer.buf[0] == 'K') {
                       ^
/datasets/git/add-patch.c:1533:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (permitted & ALLOW_GOTO_PREVIOUS_HUNK)
                        ^
/datasets/git/add-patch.c:1535:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/add-patch.c:1537:10: note: +1, nesting level increased to 2
                } else if (s->answer.buf[0] == 'J') {
                       ^
/datasets/git/add-patch.c:1538:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (permitted & ALLOW_GOTO_NEXT_HUNK)
                        ^
/datasets/git/add-patch.c:1540:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/add-patch.c:1542:10: note: +1, nesting level increased to 2
                } else if (s->answer.buf[0] == 'k') {
                       ^
/datasets/git/add-patch.c:1543:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (permitted & ALLOW_GOTO_PREVIOUS_UNDECIDED_HUNK)
                        ^
/datasets/git/add-patch.c:1545:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/add-patch.c:1547:10: note: +1, nesting level increased to 2
                } else if (s->answer.buf[0] == 'j') {
                       ^
/datasets/git/add-patch.c:1548:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (permitted & ALLOW_GOTO_NEXT_UNDECIDED_HUNK)
                        ^
/datasets/git/add-patch.c:1550:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/add-patch.c:1552:10: note: +1, nesting level increased to 2
                } else if (s->answer.buf[0] == 'g') {
                       ^
/datasets/git/add-patch.c:1556:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!(permitted & ALLOW_SEARCH_AND_GOTO)) {
                        ^
/datasets/git/add-patch.c:1563:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (i < (int)file_diff->mode_change)
                        ^
/datasets/git/add-patch.c:1565:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (s->answer.len == 0) {
                        ^
/datasets/git/add-patch.c:1567:41: note: +4, including nesting penalty of 3, nesting level increased to 4
                                printf("%s", i < file_diff->hunk_nr ?
                                                                    ^
/datasets/git/add-patch.c:1571:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (strbuf_getline(&s->answer,
                                ^
/datasets/git/add-patch.c:1579:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (*pend || pend == s->answer.buf)
                        ^
/datasets/git/add-patch.c:1579:14: note: +1
                        if (*pend || pend == s->answer.buf)
                                  ^
/datasets/git/add-patch.c:1582:9: note: +1, nesting level increased to 3
                        else if (0 < response && response <= file_diff->hunk_nr)
                             ^
/datasets/git/add-patch.c:1582:26: note: +1
                        else if (0 < response && response <= file_diff->hunk_nr)
                                              ^
/datasets/git/add-patch.c:1584:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/add-patch.c:1589:10: note: +1, nesting level increased to 2
                } else if (s->answer.buf[0] == '/') {
                       ^
/datasets/git/add-patch.c:1593:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!(permitted & ALLOW_SEARCH_AND_GOTO)) {
                        ^
/datasets/git/add-patch.c:1599:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (s->answer.len == 0) {
                        ^
/datasets/git/add-patch.c:1602:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (strbuf_getline(&s->answer,
                                ^
/datasets/git/add-patch.c:1606:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (s->answer.len == 0)
                                ^
/datasets/git/add-patch.c:1611:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ret) {
                        ^
/datasets/git/add-patch.c:1620:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (;;) {
                        ^
/datasets/git/add-patch.c:1624:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (regexec(&regex, s->buf.buf, 0, NULL, 0)
                                ^
/datasets/git/add-patch.c:1628:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (i == file_diff->hunk_nr)
                                ^
/datasets/git/add-patch.c:1630:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (i != hunk_index)
                                ^
/datasets/git/add-patch.c:1636:10: note: +1, nesting level increased to 2
                } else if (s->answer.buf[0] == 's') {
                       ^
/datasets/git/add-patch.c:1638:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!(permitted & ALLOW_SPLIT))
                        ^
/datasets/git/add-patch.c:1640:9: note: +1, nesting level increased to 3
                        else if (!split_hunk(s, file_diff,
                             ^
/datasets/git/add-patch.c:1645:10: note: +1, nesting level increased to 2
                } else if (s->answer.buf[0] == 'e') {
                       ^
/datasets/git/add-patch.c:1646:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!(permitted & ALLOW_EDIT))
                        ^
/datasets/git/add-patch.c:1648:9: note: +1, nesting level increased to 3
                        else if (edit_hunk_loop(s, file_diff, hunk) >= 0) {
                             ^
/datasets/git/add-patch.c:1650:5: note: +1
                                goto soft_increment;
                                ^
/datasets/git/add-patch.c:1652:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/add-patch.c:1662:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (; *p; p = eol + (*eol == '\n')) {
                        ^
/datasets/git/add-patch.c:1670:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (*p != '?' && !strchr(s->buf.buf, *p))
                                ^
/datasets/git/add-patch.c:1670:19: note: +1
                                if (*p != '?' && !strchr(s->buf.buf, *p))
                                              ^
/datasets/git/add-patch.c:1680:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < file_diff->hunk_nr; i++)
        ^
/datasets/git/add-patch.c:1681:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (file_diff->hunk[i].use == USE_HUNK)
                ^
/datasets/git/add-patch.c:1684:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (i < file_diff->hunk_nr ||
        ^
/datasets/git/add-patch.c:1684:29: note: +1
        if (i < file_diff->hunk_nr ||
                                   ^
/datasets/git/add-patch.c:1685:27: note: +1
            (!file_diff->hunk_nr && file_diff->head.use == USE_HUNK)) {
                                 ^
/datasets/git/add-patch.c:1691:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (s->mode->apply_for_checkout)
                ^
/datasets/git/add-patch.c:1694:3: note: +1, nesting level increased to 2
                else {
                ^
/datasets/git/add-patch.c:1697:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (pipe_command(&cp, s->buf.buf, s->buf.len,
                        ^
/datasets/git/add-patch.c:1701:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (repo_read_index(s->s.r) >= 0)
                ^
/datasets/git/add-patch.c:1384:50: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static int patch_update_file(struct add_p_state *s,
                                                 ^
/datasets/git/add-patch.c:1388:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        ssize_t i, undecided_previous, undecided_next;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:1388:10: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        ssize_t i, undecided_previous, undecided_next;
                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/add-patch.c:1388:10: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/add-patch.c:1388:13: warning: variable 'undecided_previous' is not initialized [cppcoreguidelines-init-variables]
        ssize_t i, undecided_previous, undecided_next;
                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/add-patch.c:1388:33: warning: variable 'undecided_next' is not initialized [cppcoreguidelines-init-variables]
        ssize_t i, undecided_previous, undecided_next;
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/add-patch.c:1389:15: warning: variable 'hunk' is not initialized [cppcoreguidelines-init-variables]
        struct hunk *hunk;
                     ^
                          = NULL
/datasets/git/add-patch.c:1390:7: warning: variable 'ch' is not initialized [cppcoreguidelines-init-variables]
        char ch;
             ^
                = 0
/datasets/git/add-patch.c:1390:7: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/add-patch.c:1391:23: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
        struct child_process cp = CHILD_PROCESS_INIT;
                             ^
/datasets/git/add-patch.c:1392:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int colored = !!s->colored.len, quit = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:1393:24: warning: variable 'prompt_mode_type' is not initialized [cppcoreguidelines-init-variables]
        enum prompt_mode_type prompt_mode_type;
                              ^
/datasets/git/add-patch.c:1395:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ALLOW_GOTO_PREVIOUS_HUNK = 1 << 0,
                                           ^
/datasets/git/add-patch.c:1396:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ALLOW_GOTO_PREVIOUS_UNDECIDED_HUNK = 1 << 1,
                                                     ^
/datasets/git/add-patch.c:1397:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ALLOW_GOTO_NEXT_HUNK = 1 << 2,
                                       ^
/datasets/git/add-patch.c:1398:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ALLOW_GOTO_NEXT_UNDECIDED_HUNK = 1 << 3,
                                                 ^
/datasets/git/add-patch.c:1399:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ALLOW_SEARCH_AND_GOTO = 1 << 4,
                                        ^
/datasets/git/add-patch.c:1400:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ALLOW_SPLIT = 1 << 5,
                              ^
/datasets/git/add-patch.c:1401:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ALLOW_EDIT = 1 << 6
                             ^
/datasets/git/add-patch.c:1405:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!file_diff->hunk_nr && !file_diff->added)
                                                     ^
                                                      {
/datasets/git/add-patch.c:1410:2: warning: the value returned by this function should be used [cert-err33-c]
        fputs(s->buf.buf, stdout);
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:1410:2: note: cast the expression to void to silence this warning
/datasets/git/add-patch.c:1412:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (hunk_index >= file_diff->hunk_nr)
                                                     ^
                                                      {
/datasets/git/add-patch.c:1421:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = hunk_index - 1; i >= 0; i--)
                        ^
/datasets/git/add-patch.c:1421:13: warning: narrowing conversion from 'unsigned long' to signed type 'ssize_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        for (i = hunk_index - 1; i >= 0; i--)
                                 ^
/datasets/git/add-patch.c:1421:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (i = hunk_index - 1; i >= 0; i--)
                                                 ^
/datasets/git/add-patch.c:1421:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (i = hunk_index - 1; i >= 0; i--)
                                                             ^
                                                              {
/datasets/git/add-patch.c:1427:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = hunk_index + 1; i < file_diff->hunk_nr; i++)
                        ^
/datasets/git/add-patch.c:1427:13: warning: narrowing conversion from 'unsigned long' to signed type 'ssize_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        for (i = hunk_index + 1; i < file_diff->hunk_nr; i++)
                                 ^
/datasets/git/add-patch.c:1427:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (i = hunk_index + 1; i < file_diff->hunk_nr; i++)
                                                 ^
/datasets/git/add-patch.c:1427:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (i = hunk_index + 1; i < file_diff->hunk_nr; i++)
                                                                             ^
                                                                              {
/datasets/git/add-patch.c:1436:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    hunk->use != UNDECIDED_HUNK)
                                                ^
                                                 {
/datasets/git/add-patch.c:1442:4: warning: the value returned by this function should be used [cert-err33-c]
                        fputs(s->buf.buf, stdout);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:1442:4: note: cast the expression to void to silence this warning
/datasets/git/add-patch.c:1446:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                permitted |= ALLOW_GOTO_PREVIOUS_UNDECIDED_HUNK;
                                ^            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:1450:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                permitted |= ALLOW_GOTO_PREVIOUS_HUNK;
                                ^            ~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:1454:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                permitted |= ALLOW_GOTO_NEXT_UNDECIDED_HUNK;
                                ^            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:1458:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                permitted |= ALLOW_GOTO_NEXT_HUNK;
                                ^            ~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:1462:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                permitted |= ALLOW_SEARCH_AND_GOTO;
                                ^            ~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:1466:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                permitted |= ALLOW_SPLIT;
                                ^            ~~~~~~~~~~~
/datasets/git/add-patch.c:1471:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                permitted |= ALLOW_EDIT;
                                ^            ~~~~~~~~~~
/datasets/git/add-patch.c:1475:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (file_diff->deleted)
                                       ^
                                        {
/datasets/git/add-patch.c:1477:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (file_diff->added)
                                          ^
                                           {
/datasets/git/add-patch.c:1479:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (file_diff->mode_change && !hunk_index)
                                                               ^
                                                                {
/datasets/git/add-patch.c:1481:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/add-patch.c:1491:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*s->s.reset_color)
                                      ^
                                       {
/datasets/git/add-patch.c:1492:4: warning: the value returned by this function should be used [cert-err33-c]
                        fputs(s->s.reset_color, stdout);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:1492:4: note: cast the expression to void to silence this warning
/datasets/git/add-patch.c:1493:3: warning: the value returned by this function should be used [cert-err33-c]
                fflush(stdout);
                ^~~~~~~~~~~~~~
/datasets/git/add-patch.c:1493:3: note: cast the expression to void to silence this warning
/datasets/git/add-patch.c:1494:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (read_single_character(s) == EOF)
                                                    ^
                                                     {
/datasets/git/add-patch.c:1497:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!s->answer.len)
                                   ^
                                    {
/datasets/git/add-patch.c:1510:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                for (; hunk_index < file_diff->hunk_nr; hunk_index++) {
                                ^
/datasets/git/add-patch.c:1510:12: warning: backward branch (for loop) is ID-dependent due to variable reference to 'hunk_index' and may cause performance degradation [altera-id-dependent-backward-branch]
                                for (; hunk_index < file_diff->hunk_nr; hunk_index++) {
                                       ^
/datasets/git/add-patch.c:1512:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        if (hunk->use == UNDECIDED_HUNK)
                                                                        ^
                                                                         {
/datasets/git/add-patch.c:1520:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                for (; hunk_index < file_diff->hunk_nr; hunk_index++) {
                                ^
/datasets/git/add-patch.c:1520:12: warning: backward branch (for loop) is ID-dependent due to variable reference to 'hunk_index' and may cause performance degradation [altera-id-dependent-backward-branch]
                                for (; hunk_index < file_diff->hunk_nr; hunk_index++) {
                                       ^
/datasets/git/add-patch.c:1522:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        if (hunk->use == UNDECIDED_HUNK)
                                                                        ^
                                                                         {
/datasets/git/add-patch.c:1533:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (permitted & ALLOW_GOTO_PREVIOUS_HUNK)
                            ^           ~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:1533:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (permitted & ALLOW_GOTO_PREVIOUS_HUNK)
                                                                 ^
                                                                  {
/datasets/git/add-patch.c:1535:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/add-patch.c:1538:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (permitted & ALLOW_GOTO_NEXT_HUNK)
                            ^           ~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:1538:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (permitted & ALLOW_GOTO_NEXT_HUNK)
                                                             ^
                                                              {
/datasets/git/add-patch.c:1540:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/add-patch.c:1543:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (permitted & ALLOW_GOTO_PREVIOUS_UNDECIDED_HUNK)
                            ^           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:1543:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (permitted & ALLOW_GOTO_PREVIOUS_UNDECIDED_HUNK)
                                                                           ^
                                                                            {
/datasets/git/add-patch.c:1545:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/add-patch.c:1548:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (permitted & ALLOW_GOTO_NEXT_UNDECIDED_HUNK)
                            ^           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:1548:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (permitted & ALLOW_GOTO_NEXT_UNDECIDED_HUNK)
                                                                       ^
                                                                        {
/datasets/git/add-patch.c:1550:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/add-patch.c:1553:10: warning: variable 'pend' is not initialized [cppcoreguidelines-init-variables]
                        char *pend;
                              ^
                                   = NULL
/datasets/git/add-patch.c:1554:18: warning: variable 'response' is not initialized [cppcoreguidelines-init-variables]
                        unsigned long response;
                                      ^
                                               = 0
/datasets/git/add-patch.c:1556:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!(permitted & ALLOW_SEARCH_AND_GOTO)) {
                              ^           ~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:1562:8: warning: narrowing conversion from 'unsigned long' to signed type 'ssize_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        i = hunk_index - DISPLAY_HUNKS_LINES / 2;
                            ^
/datasets/git/add-patch.c:1563:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (i < (int)file_diff->mode_change)
                                                            ^
                                                             {
/datasets/git/add-patch.c:1565:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (s->answer.len == 0) {
                        ^
/datasets/git/add-patch.c:1565:11: warning: backward branch (while loop) is ID-dependent due to member reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (s->answer.len == 0) {
                               ^
/datasets/git/add-patch.c:1566:9: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'ssize_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                i = display_hunks(s, file_diff, i);
                                    ^
/datasets/git/add-patch.c:1570:5: warning: the value returned by this function should be used [cert-err33-c]
                                fflush(stdout);
                                ^~~~~~~~~~~~~~
/datasets/git/add-patch.c:1570:5: note: cast the expression to void to silence this warning
/datasets/git/add-patch.c:1572:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                   stdin) == EOF)
                                                                 ^
                                                                  {
/datasets/git/add-patch.c:1578:45: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        response = strtoul(s->answer.buf, &pend, 10);
                                                                 ^
/datasets/git/add-patch.c:1579:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (*pend || pend == s->answer.buf)
                                                           ^
                                                            {
/datasets/git/add-patch.c:1582:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (0 < response && response <= file_diff->hunk_nr)
                                                                                ^
                                                                                 {
/datasets/git/add-patch.c:1584:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/add-patch.c:1591:8: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
                        int ret;
                            ^
                                = 0
/datasets/git/add-patch.c:1593:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!(permitted & ALLOW_SEARCH_AND_GOTO)) {
                              ^           ~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:1601:5: warning: the value returned by this function should be used [cert-err33-c]
                                fflush(stdout);
                                ^~~~~~~~~~~~~~
/datasets/git/add-patch.c:1601:5: note: cast the expression to void to silence this warning
/datasets/git/add-patch.c:1603:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                   stdin) == EOF)
                                                                 ^
                                                                  {
/datasets/git/add-patch.c:1606:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (s->answer.len == 0)
                                                       ^
                                                        {
/datasets/git/add-patch.c:1612:17: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                char errbuf[1024];
                                            ^
/datasets/git/add-patch.c:1619:8: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'ssize_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        i = hunk_index;
                            ^
/datasets/git/add-patch.c:1620:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (;;) {
                        ^
/datasets/git/add-patch.c:1625:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                    != REG_NOMATCH)
                                                   ^
                                                    {
/datasets/git/add-patch.c:1628:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (i == file_diff->hunk_nr)
                                                            ^
                                                             {
/datasets/git/add-patch.c:1630:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (i != hunk_index)
                                                    ^
                                                     {
/datasets/git/add-patch.c:1638:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!(permitted & ALLOW_SPLIT))
                              ^           ~~~~~~~~~~~
/datasets/git/add-patch.c:1638:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!(permitted & ALLOW_SPLIT))
                                                       ^
                                                        {
/datasets/git/add-patch.c:1641:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                             hunk - file_diff->hunk))
                                                                     ^
                                                                      {
/datasets/git/add-patch.c:1646:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!(permitted & ALLOW_EDIT))
                              ^           ~~~~~~~~~~
/datasets/git/add-patch.c:1646:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!(permitted & ALLOW_EDIT))
                                                      ^
                                                       {
/datasets/git/add-patch.c:1653:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        const char *p = _(help_patch_remainder), *eol = p;
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:1653:4: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/add-patch.c:1653:16: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                        const char *p = _(help_patch_remainder), *eol = p;
                                    ^
/datasets/git/add-patch.c:1653:46: warning: Value stored to 'eol' during its initialization is never read [clang-analyzer-deadcode.DeadStores]
                        const char *p = _(help_patch_remainder), *eol = p;
                                                                  ^~~   ~
/datasets/git/add-patch.c:1653:46: note: Value stored to 'eol' during its initialization is never read
                        const char *p = _(help_patch_remainder), *eol = p;
                                                                  ^~~   ~
/datasets/git/add-patch.c:1662:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (; *p; p = eol + (*eol == '\n')) {
                        ^
/datasets/git/add-patch.c:1662:11: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (; *p; p = eol + (*eol == '\n')) {
                               ^
/datasets/git/add-patch.c:1670:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (*p != '?' && !strchr(s->buf.buf, *p))
                                                                         ^
                                                                          {
/datasets/git/add-patch.c:1680:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < file_diff->hunk_nr; i++)
        ^
/datasets/git/add-patch.c:1680:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < file_diff->hunk_nr; i++)
                    ^
/datasets/git/add-patch.c:1680:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < file_diff->hunk_nr; i++)
                                                ^
                                                 {
/datasets/git/add-patch.c:1681:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (file_diff->hunk[i].use == USE_HUNK)
                                                       ^
                                                        {
/datasets/git/add-patch.c:1691:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (s->mode->apply_for_checkout)
                                                ^
                                                 {
/datasets/git/add-patch.c:1698:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                         NULL, 0, NULL, 0))
                                                           ^
                                                            {
/datasets/git/add-patch.c:1701:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (repo_read_index(s->s.r) >= 0)
                                                 ^
                                                  {
/datasets/git/add-patch.c:1702:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        repo_refresh_and_write_index(s->s.r, REFRESH_QUIET, 0,
                                                             ^
/datasets/git/./refs/../cache.h:923:43: note: expanded from macro 'REFRESH_QUIET'
#define REFRESH_QUIET                    (1 << 2) /* be quiet about it */
                                          ^
/datasets/git/add-patch.c:1710:5: warning: function 'run_add_p' has cognitive complexity of 27 (threshold 25) [readability-function-cognitive-complexity]
int run_add_p(struct repository *r, enum add_p_mode mode,
    ^
/datasets/git/add-patch.c:1720:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mode == ADD_P_STASH)
        ^
/datasets/git/add-patch.c:1722:7: note: +1, nesting level increased to 1
        else if (mode == ADD_P_RESET) {
             ^
/datasets/git/add-patch.c:1731:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!revision || !strcmp(revision, "HEAD"))
                ^
/datasets/git/add-patch.c:1731:17: note: +1
                if (!revision || !strcmp(revision, "HEAD"))
                              ^
/datasets/git/add-patch.c:1733:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/add-patch.c:1735:9: note: +1, nesting level increased to 1
        } else if (mode == ADD_P_CHECKOUT) {
               ^
/datasets/git/add-patch.c:1736:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!revision)
                ^
/datasets/git/add-patch.c:1738:8: note: +1, nesting level increased to 2
                else if (!strcmp(revision, "HEAD"))
                     ^
/datasets/git/add-patch.c:1740:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/add-patch.c:1742:9: note: +1, nesting level increased to 1
        } else if (mode == ADD_P_WORKTREE) {
               ^
/datasets/git/add-patch.c:1743:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!revision)
                ^
/datasets/git/add-patch.c:1745:8: note: +1, nesting level increased to 2
                else if (!strcmp(revision, "HEAD"))
                     ^
/datasets/git/add-patch.c:1747:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/add-patch.c:1749:4: note: +1, nesting level increased to 1
        } else
          ^
/datasets/git/add-patch.c:1754:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (repo_read_index(r) < 0 ||
        ^
/datasets/git/add-patch.c:1757:31: note: +1
                                          NULL, NULL, NULL) < 0) ||
                                                                 ^
/datasets/git/add-patch.c:1755:27: note: +1
            (!s.mode->index_only &&
                                 ^
/datasets/git/add-patch.c:1763:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < s.file_diff_nr; i++)
        ^
/datasets/git/add-patch.c:1764:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (s.file_diff[i].binary && !s.file_diff[i].hunk_nr)
                ^
/datasets/git/add-patch.c:1764:29: note: +1
                if (s.file_diff[i].binary && !s.file_diff[i].hunk_nr)
                                          ^
/datasets/git/add-patch.c:1766:8: note: +1, nesting level increased to 2
                else if (patch_update_file(&s, s.file_diff + i))
                     ^
/datasets/git/add-patch.c:1769:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (s.file_diff_nr == 0)
        ^
/datasets/git/add-patch.c:1771:7: note: +1, nesting level increased to 1
        else if (binary_count == s.file_diff_nr)
             ^
/datasets/git/add-patch.c:1710:34: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int run_add_p(struct repository *r, enum add_p_mode mode,
                                 ^
/datasets/git/add-patch.c:1711:53: warning: parameter name 'ps' is too short, expected at least 3 characters [readability-identifier-length]
              const char *revision, const struct pathspec *ps)
                                                           ^
/datasets/git/add-patch.c:1713:21: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
        struct add_p_state s = {
                           ^
/datasets/git/add-patch.c:1716:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t i, binary_count = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:1716:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i, binary_count = 0;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/add-patch.c:1716:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/add-patch.c:1720:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mode == ADD_P_STASH)
                                ^
                                 {
/datasets/git/add-patch.c:1731:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!revision || !strcmp(revision, "HEAD"))
                                                           ^
                                                            {
/datasets/git/add-patch.c:1733:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/add-patch.c:1736:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!revision)
                              ^
                               {
/datasets/git/add-patch.c:1738:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(revision, "HEAD"))
                                                   ^
                                                    {
/datasets/git/add-patch.c:1740:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/add-patch.c:1743:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!revision)
                              ^
                               {
/datasets/git/add-patch.c:1745:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(revision, "HEAD"))
                                                   ^
                                                    {
/datasets/git/add-patch.c:1747:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/add-patch.c:1749:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/add-patch.c:1756:39: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
             repo_refresh_and_write_index(r, REFRESH_QUIET, 0, 1,
                                             ^
/datasets/git/./refs/../cache.h:923:43: note: expanded from macro 'REFRESH_QUIET'
#define REFRESH_QUIET                    (1 << 2) /* be quiet about it */
                                          ^
/datasets/git/add-patch.c:1763:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < s.file_diff_nr; i++)
        ^
/datasets/git/add-patch.c:1763:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 's' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < s.file_diff_nr; i++)
                    ^
/datasets/git/add-patch.c:1763:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < s.file_diff_nr; i++)
                                            ^
                                             {
/datasets/git/add-patch.c:1764:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (s.file_diff[i].binary && !s.file_diff[i].hunk_nr)
                                                                     ^
                                                                      {
/datasets/git/add-patch.c:1766:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (patch_update_file(&s, s.file_diff + i))
                                                                ^
                                                                 {
/datasets/git/add-patch.c:1769:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (s.file_diff_nr == 0)
                                ^
                                 {
/datasets/git/add-patch.c:1770:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, _("No changes.\n"));
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:1770:3: note: cast the expression to void to silence this warning
/datasets/git/add-patch.c:1771:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (binary_count == s.file_diff_nr)
                                                ^
                                                 {
/datasets/git/add-patch.c:1772:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, _("Only binary files changed.\n"));
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/add-patch.c:1772:3: note: cast the expression to void to silence this warning
/datasets/git/advice.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "color.h"
/datasets/git/advice.c:7:12: warning: variable 'advice_use_color' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int advice_use_color = -1;
           ^
/datasets/git/advice.c:8:13: warning: variable 'advice_colors' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char advice_colors[][COLOR_MAXLEN] = {
            ^
/datasets/git/advice.c:20:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcasecmp(slot, "reset"))
                                       ^
                                        {
/datasets/git/advice.c:22:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcasecmp(slot, "hint"))
                                      ^
                                       {
/datasets/git/advice.c:27:55: warning: parameter name 'ix' is too short, expected at least 3 characters [readability-identifier-length]
static const char *advise_get_color(enum color_advice ix)
                                                      ^
/datasets/git/advice.c:29:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (want_color_stderr(advice_use_color))
                                                ^
                                                 {
/datasets/git/advice.c:34:8: warning: accessing fields in struct '' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
static struct {
       ^
/datasets/git/advice.c:34:8: note: use "__attribute__((aligned(16)))" to align struct '' to 16 bytes
/datasets/git/advice.c:37:3: warning: variable 'advice_setting' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} advice_setting[] = {
  ^
/datasets/git/advice.c:88:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *cp, *np;
        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/advice.c:88:14: warning: variable 'cp' is not initialized [cppcoreguidelines-init-variables]
        const char *cp, *np;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/advice.c:88:14: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/advice.c:88:19: warning: variable 'np' is not initialized [cppcoreguidelines-init-variables]
        const char *cp, *np;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/advice.c:88:19: warning: variable name 'np' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/advice.c:92:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (display_instructions)
                                 ^
                                  {
/datasets/git/advice.c:95:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cp = buf.buf; *cp; cp = np) {
        ^
/datasets/git/advice.c:95:21: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cp' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (cp = buf.buf; *cp; cp = np) {
                           ^
/datasets/git/advice.c:97:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, _("%shint: %.*s%s\n"),
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/advice.c:97:3: note: cast the expression to void to silence this warning
/datasets/git/advice.c:101:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*np)
                        ^
                         {
/datasets/git/advice.c:117:2: warning: switch could be better written as an if/else statement [hicpp-multiway-paths-covered]
        switch(type) {
        ^
/datasets/git/advice.c:130:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!advice_enabled(type))
                                  ^
                                   {
/datasets/git/advice.c:140:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *k, *slot_name;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/advice.c:140:14: warning: variable 'k' is not initialized [cppcoreguidelines-init-variables]
        const char *k, *slot_name;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/advice.c:140:14: warning: variable name 'k' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/advice.c:140:18: warning: variable 'slot_name' is not initialized [cppcoreguidelines-init-variables]
        const char *k, *slot_name;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/advice.c:141:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/advice.c:141:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/advice.c:150:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (slot < 0)
                             ^
                              {
/datasets/git/advice.c:152:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
                            {
/datasets/git/advice.c:157:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!skip_prefix(var, "advice.", &k))
                                             ^
                                              {
/datasets/git/advice.c:160:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ARRAY_SIZE(advice_setting); i++) {
        ^
/datasets/git/advice.c:161:7: warning: function 'strcasecmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (strcasecmp(k, advice_setting[i].key))
                    ^
                                                         != 0
/datasets/git/advice.c:161:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strcasecmp(k, advice_setting[i].key))
                                                         ^
                                                          {
/datasets/git/advice.c:172:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/advice.c:172:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/advice.c:174:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ARRAY_SIZE(advice_setting); i++)
        ^
/datasets/git/advice.c:174:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < ARRAY_SIZE(advice_setting); i++)
                                                        ^
                                                         {
/datasets/git/advice.c:178:40: warning: parameter name 'me' is too short, expected at least 3 characters [readability-identifier-length]
int error_resolve_conflict(const char *me)
                                       ^
/datasets/git/advice.c:180:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(me, "cherry-pick"))
                                       ^
                                        {
/datasets/git/advice.c:182:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(me, "commit"))
                                       ^
                                        {
/datasets/git/advice.c:184:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(me, "merge"))
                                      ^
                                       {
/datasets/git/advice.c:186:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(me, "pull"))
                                     ^
                                      {
/datasets/git/advice.c:188:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(me, "revert"))
                                       ^
                                        {
/datasets/git/advice.c:190:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/advice.c:194:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (advice_enabled(ADVICE_RESOLVE_CONFLICT))
                                                    ^
                                                     {
/datasets/git/advice.c:204:48: warning: parameter name 'me' is too short, expected at least 3 characters [readability-identifier-length]
void NORETURN die_resolve_conflict(const char *me)
                                               ^
/datasets/git/advice.c:213:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (advice_enabled(ADVICE_RESOLVE_CONFLICT))
                                                    ^
                                                     {
/datasets/git/advice.c:225:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/advice.c:227:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!pathspec_list->nr)
                               ^
                                {
/datasets/git/advice.c:230:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(stderr, _("The following paths and/or pathspecs matched paths that exist\n"
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/advice.c:230:2: note: cast the expression to void to silence this warning
/datasets/git/advice.c:233:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(item, pathspec_list)
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/advice.c:233:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(item, pathspec_list)
                                  ^
/datasets/git/advice.c:234:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "%s\n", item->string);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/advice.c:234:3: note: cast the expression to void to silence this warning
/datasets/git/advice.c:262:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(stderr, fmt, new_name);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/advice.c:262:2: note: cast the expression to void to silence this warning
/datasets/git/advice.c:267:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/advice.c:269:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!pathspec_list->nr)
                               ^
                                {
/datasets/git/advice.c:272:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(stderr, _("The following paths have been moved outside the\n"
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/advice.c:272:2: note: cast the expression to void to silence this warning
/datasets/git/advice.c:275:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(item, pathspec_list)
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/advice.c:275:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(item, pathspec_list)
                                  ^
/datasets/git/advice.c:276:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "%s\n", item->string);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/advice.c:276:3: note: cast the expression to void to silence this warning
/datasets/git/alias.c:6:8: warning: accessing fields in struct 'config_alias_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct config_alias_data {
       ^
/datasets/git/alias.c:6:8: note: use "__attribute__((aligned(32)))" to align struct 'config_alias_data' to 32 bytes
/datasets/git/alias.c:12:70: warning: parameter name 'd' is too short, expected at least 3 characters [readability-identifier-length]
static int config_alias_cb(const char *key, const char *value, void *d)
                                                                     ^
/datasets/git/alias.c:15:14: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        const char *p;
                    ^
                      = NULL
/datasets/git/alias.c:15:14: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/alias.c:17:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!skip_prefix(key, "alias.", &p))
                                            ^
                                             {
/datasets/git/alias.c:21:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcasecmp(p, data->alias))
                                                ^
                                                 {
/datasets/git/alias.c:47:1: warning: replace macro with enum [modernize-macro-to-enum]
#define SPLIT_CMDLINE_BAD_ENDING 1
^~~~~~~~
                                 =,
/datasets/git/alias.c:47:9: warning: macro 'SPLIT_CMDLINE_BAD_ENDING' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define SPLIT_CMDLINE_BAD_ENDING 1
        ^
/datasets/git/alias.c:48:9: warning: macro 'SPLIT_CMDLINE_UNCLOSED_QUOTE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define SPLIT_CMDLINE_UNCLOSED_QUOTE 2
        ^
/datasets/git/alias.c:49:9: warning: macro 'SPLIT_CMDLINE_ARGC_OVERFLOW' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define SPLIT_CMDLINE_ARGC_OVERFLOW 3
        ^
/datasets/git/alias.c:50:20: warning: variable 'split_cmdline_errors' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *split_cmdline_errors[] = {
                   ^
/datasets/git/alias.c:56:5: warning: function 'split_cmdline' has cognitive complexity of 52 (threshold 25) [readability-function-cognitive-complexity]
int split_cmdline(char *cmdline, const char ***argv)
    ^
/datasets/git/alias.c:65:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (src = dst = 0; cmdline[src];) {
        ^
/datasets/git/alias.c:67:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!quoted && isspace(c)) {
                ^
/datasets/git/alias.c:67:15: note: +1
                if (!quoted && isspace(c)) {
                            ^
/datasets/git/alias.c:69:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (cmdline[++src]
                        ^
/datasets/git/alias.c:70:6: note: +1
                                        && isspace(cmdline[src]))
                                        ^
/datasets/git/alias.c:72:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        ALLOC_GROW(*argv, count + 1, size);
                        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/alias.c:72:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        ALLOC_GROW(*argv, count + 1, size);
                        ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/alias.c:72:4: note: +5, including nesting penalty of 4, nesting level increased to 5
                        ALLOC_GROW(*argv, count + 1, size);
                        ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/alias.c:72:4: note: +1, nesting level increased to 5
                        ALLOC_GROW(*argv, count + 1, size);
                        ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/alias.c:74:10: note: +1, nesting level increased to 2
                } else if (!quoted && (c == '\'' || c == '"')) {
                       ^
/datasets/git/alias.c:74:22: note: +1
                } else if (!quoted && (c == '\'' || c == '"')) {
                                   ^
/datasets/git/alias.c:74:36: note: +1
                } else if (!quoted && (c == '\'' || c == '"')) {
                                                 ^
/datasets/git/alias.c:77:10: note: +1, nesting level increased to 2
                } else if (c == quoted) {
                       ^
/datasets/git/alias.c:80:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/alias.c:81:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (c == '\\' && quoted != '\'') {
                        ^
/datasets/git/alias.c:81:18: note: +1
                        if (c == '\\' && quoted != '\'') {
                                      ^
/datasets/git/alias.c:84:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!c) {
                                ^
/datasets/git/alias.c:85:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        FREE_AND_NULL(*argv);
                                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/alias.c:96:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (quoted) {
        ^
/datasets/git/alias.c:97:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                FREE_AND_NULL(*argv);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/alias.c:101:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (count >= INT_MAX) {
        ^
/datasets/git/alias.c:102:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                FREE_AND_NULL(*argv);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/alias.c:106:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        ALLOC_GROW(*argv, count + 1, size);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/alias.c:106:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        ALLOC_GROW(*argv, count + 1, size);
        ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/alias.c:106:2: note: +3, including nesting penalty of 2, nesting level increased to 3
        ALLOC_GROW(*argv, count + 1, size);
        ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/alias.c:106:2: note: +1, nesting level increased to 3
        ALLOC_GROW(*argv, count + 1, size);
        ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/alias.c:58:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t src, dst, count = 0, size = 16;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/alias.c:58:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/alias.c:58:9: warning: variable 'src' is not initialized [cppcoreguidelines-init-variables]
        size_t src, dst, count = 0, size = 16;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/alias.c:58:14: warning: variable 'dst' is not initialized [cppcoreguidelines-init-variables]
        size_t src, dst, count = 0, size = 16;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/alias.c:58:37: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        size_t src, dst, count = 0, size = 16;
                                           ^
/datasets/git/alias.c:65:22: warning: backward branch (for loop) is ID-dependent due to variable reference to 'src' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (src = dst = 0; cmdline[src];) {
                            ^
/datasets/git/alias.c:66:8: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                char c = cmdline[src];
                     ^
/datasets/git/alias.c:67:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!quoted && isspace(c)) {
                               ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/alias.c:69:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (cmdline[++src]
                        ^
/datasets/git/alias.c:69:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'src' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (cmdline[++src]
                               ^
/datasets/git/alias.c:70:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        && isspace(cmdline[src]))
                                           ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/alias.c:70:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        && isspace(cmdline[src]))
                                                                 ^
                                                                  {
/datasets/git/alias.c:72:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        ALLOC_GROW(*argv, count + 1, size);
                        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/alias.c:85:6: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                        FREE_AND_NULL(*argv);
                                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/alias.c:97:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FREE_AND_NULL(*argv);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/alias.c:102:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FREE_AND_NULL(*argv);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/alias.c:106:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(*argv, count + 1, size);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/alias.c:109:9: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return count;
               ^
/datasets/git/alloc.c:12:1: warning: #includes are not sorted properly [llvm-include-order]
#include "object.h"
^        ~~~~~~~~~~
         "alloc.h"
/datasets/git/alloc.c:19:1: warning: replace macro with enum [modernize-macro-to-enum]
#define BLOCKING 1024
^~~~~~~~
                 =
/datasets/git/alloc.c:19:9: warning: macro 'BLOCKING' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define BLOCKING 1024
        ^
/datasets/git/alloc.c:29:8: warning: accessing fields in struct 'alloc_state' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct alloc_state {
       ^
/datasets/git/alloc.c:29:8: note: use "__attribute__((aligned(32)))" to align struct 'alloc_state' to 32 bytes
/datasets/git/alloc.c:43:44: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
void clear_alloc_state(struct alloc_state *s)
                                           ^
/datasets/git/alloc.c:45:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (s->slab_nr > 0) {
        ^
/datasets/git/alloc.c:50:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(s->slabs);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/alloc.c:53:52: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static inline void *alloc_node(struct alloc_state *s, size_t node_size)
                                                   ^
/datasets/git/alloc.c:55:8: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        void *ret;
              ^
                  = NULL
/datasets/git/alloc.c:61:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                ALLOC_GROW(s->slabs, s->slab_nr + 1, s->slab_alloc);
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/alloc.c:67:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(ret, 0, node_size);
        ^~~~~~
/datasets/git/alloc.c:67:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(ret, 0, node_size);
        ^~~~~~
/datasets/git/alloc.c:72:42: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void *alloc_blob_node(struct repository *r)
                                         ^
/datasets/git/alloc.c:74:15: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        struct blob *b = alloc_node(r->parsed_objects->blob_state, sizeof(struct blob));
                     ^
/datasets/git/alloc.c:79:42: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void *alloc_tree_node(struct repository *r)
                                         ^
/datasets/git/alloc.c:81:15: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
        struct tree *t = alloc_node(r->parsed_objects->tree_state, sizeof(struct tree));
                     ^
/datasets/git/alloc.c:86:41: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void *alloc_tag_node(struct repository *r)
                                        ^
/datasets/git/alloc.c:88:14: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
        struct tag *t = alloc_node(r->parsed_objects->tag_state, sizeof(struct tag));
                    ^
/datasets/git/alloc.c:93:44: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void *alloc_object_node(struct repository *r)
                                           ^
/datasets/git/alloc.c:111:38: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
void init_commit_node(struct commit *c)
                                     ^
/datasets/git/alloc.c:117:44: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void *alloc_commit_node(struct repository *r)
                                           ^
/datasets/git/alloc.c:119:17: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        struct commit *c = alloc_node(r->parsed_objects->commit_state, sizeof(struct commit));
                       ^
/datasets/git/apply.c:11:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "apply.h"
/datasets/git/apply.c:26:8: warning: accessing fields in struct 'gitdiff_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct gitdiff_data {
       ^
/datasets/git/apply.c:26:8: note: use "__attribute__((aligned(16)))" to align struct 'gitdiff_data' to 16 bytes
/datasets/git/apply.c:93:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(state, 0, sizeof(*state));
        ^~~~~~
/datasets/git/apply.c:93:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(state, 0, sizeof(*state));
        ^~~~~~
/datasets/git/apply.c:100:37: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        state->squelch_whitespace_errors = 5;
                                           ^
/datasets/git/apply.c:111:91: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (apply_default_whitespace && parse_whitespace_option(state, apply_default_whitespace))
                                                                                                 ^
                                                                                                  {
/datasets/git/apply.c:113:109: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (apply_default_ignorewhitespace && parse_ignorewhitespace_option(state, apply_default_ignorewhitespace))
                                                                                                                   ^
                                                                                                                    {
/datasets/git/apply.c:137:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (state->apply_with_reject && state->threeway)
                                                        ^
                                                         {
/datasets/git/apply.c:140:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_not_gitdir)
                                  ^
                                   {
/datasets/git/apply.c:146:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (state->apply_verbosity == verbosity_normal)
                                                               ^
                                                                {
/datasets/git/apply.c:149:116: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!force_apply && (state->diffstat || state->numstat || state->summary || state->check || state->fake_ancestor))
                                                                                                                          ^
                                                                                                                           {
/datasets/git/apply.c:151:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (state->check_index && is_not_gitdir)
                                                ^
                                                 {
/datasets/git/apply.c:154:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_not_gitdir)
                                  ^
                                   {
/datasets/git/apply.c:158:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (state->ita_only && (state->check_index || is_not_gitdir))
                                                                     ^
                                                                      {
/datasets/git/apply.c:160:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (state->check_index)
                               ^
                                {
/datasets/git/apply.c:175:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!state->whitespace_option && !apply_default_whitespace)
                                                                   ^
                                                                    {
/datasets/git/apply.c:186:8: warning: accessing fields in struct 'fragment' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct fragment {
       ^
/datasets/git/apply.c:186:8: note: use "__attribute__((aligned(128)))" to align struct 'fragment' to 128 bytes
/datasets/git/apply.c:211:32: note: inferred assignment of ID-dependent value from ID-dependent variable next [altera-id-dependent-backward-branch]
static void free_fragment_list(struct fragment *list)
                               ^
/datasets/git/apply.c:208:1: warning: replace macro with enum [modernize-macro-to-enum]
#define BINARY_DELTA_DEFLATED   1
^~~~~~~~
                              =  ,
/datasets/git/apply.c:208:9: warning: macro 'BINARY_DELTA_DEFLATED' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define BINARY_DELTA_DEFLATED   1
        ^
/datasets/git/apply.c:209:9: warning: macro 'BINARY_LITERAL_DEFLATED' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define BINARY_LITERAL_DEFLATED 2
        ^
/datasets/git/apply.c:213:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (list) {
        ^
/datasets/git/apply.c:213:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'list' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (list) {
               ^
/datasets/git/apply.c:215:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (list->free_patch)
                                     ^
                                      {
/datasets/git/apply.c:239:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (list) {
        ^
/datasets/git/apply.c:239:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'list' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (list) {
               ^
/datasets/git/apply.c:251:8: warning: accessing fields in struct 'line' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct line {
       ^
/datasets/git/apply.c:251:8: note: use "__attribute__((aligned(16)))" to align struct 'line' to 16 bytes
/datasets/git/apply.c:262:8: warning: accessing fields in struct 'image' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct image {
       ^
/datasets/git/apply.c:262:8: note: use "__attribute__((aligned(64)))" to align struct 'image' to 64 bytes
/datasets/git/apply.c:271:39: warning: parameter name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
static uint32_t hash_line(const char *cp, size_t len)
                                      ^
/datasets/git/apply.c:273:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i;
               ^
                 = 0
/datasets/git/apply.c:273:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/apply.c:274:11: warning: variable 'h' is not initialized [cppcoreguidelines-init-variables]
        uint32_t h;
                 ^
                   = 0
/datasets/git/apply.c:274:11: warning: variable name 'h' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/apply.c:275:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0, h = 0; i < len; i++) {
        ^
/datasets/git/apply.c:276:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!isspace(cp[i])) {
                     ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/apply.c:277:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        h = h * 3 + (cp[i] & 0xff);
                                     ^~~~~
/datasets/git/apply.c:277:25: warning: 0xff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        h = h * 3 + (cp[i] & 0xff);
                                             ^
/datasets/git/apply.c:287:41: warning: parameter name 's1' is too short, expected at least 3 characters [readability-identifier-length]
static int fuzzy_matchlines(const char *s1, size_t n1,
                                        ^
/datasets/git/apply.c:287:52: warning: parameter name 'n1' is too short, expected at least 3 characters [readability-identifier-length]
static int fuzzy_matchlines(const char *s1, size_t n1,
                                                   ^
/datasets/git/apply.c:288:20: warning: parameter name 's2' is too short, expected at least 3 characters [readability-identifier-length]
                            const char *s2, size_t n2)
                                        ^
/datasets/git/apply.c:288:31: warning: parameter name 'n2' is too short, expected at least 3 characters [readability-identifier-length]
                            const char *s2, size_t n2)
                                                   ^
/datasets/git/apply.c:294:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (s1 < end1 && (end1[-1] == '\r' || end1[-1] == '\n'))
        ^
/datasets/git/apply.c:294:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'end1' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (s1 < end1 && (end1[-1] == '\r' || end1[-1] == '\n'))
               ^
/datasets/git/apply.c:294:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (s1 < end1 && (end1[-1] == '\r' || end1[-1] == '\n'))
                                                                   ^
                                                                    {
/datasets/git/apply.c:296:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (s2 < end2 && (end2[-1] == '\r' || end2[-1] == '\n'))
        ^
/datasets/git/apply.c:290:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        const char *end1 = s1 + n1;
        ^
/datasets/git/apply.c:296:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'end2' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (s2 < end2 && (end2[-1] == '\r' || end2[-1] == '\n'))
               ^
/datasets/git/apply.c:296:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (s2 < end2 && (end2[-1] == '\r' || end2[-1] == '\n'))
                                                                   ^
                                                                    {
/datasets/git/apply.c:299:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'end1' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (s1 < end1 && s2 < end2) {
               ^
/datasets/git/apply.c:300:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (isspace(*s1)) {
                    ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/apply.c:305:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!isspace(*s2))
                             ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/apply.c:305:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!isspace(*s2))
                                          ^
                                           {
/datasets/git/apply.c:307:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (s1 < end1 && isspace(*s1))
                        ^
/datasets/git/apply.c:307:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'end1' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (s1 < end1 && isspace(*s1))
                               ^
/datasets/git/apply.c:307:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        while (s1 < end1 && isspace(*s1))
                                            ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/apply.c:307:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        while (s1 < end1 && isspace(*s1))
                                                         ^
                                                          {
/datasets/git/apply.c:309:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (s2 < end2 && isspace(*s2))
                        ^
/datasets/git/apply.c:309:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'end2' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (s2 < end2 && isspace(*s2))
                               ^
/datasets/git/apply.c:309:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        while (s2 < end2 && isspace(*s2))
                                            ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/apply.c:309:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        while (s2 < end2 && isspace(*s2))
                                                         ^
                                                          {
/datasets/git/apply.c:311:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else if (*s1++ != *s2++)
                                          ^
                                           {
/datasets/git/apply.c:319:63: warning: 2 adjacent parameters of 'add_line_info' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void add_line_info(struct image *img, const char *bol, size_t len, unsigned flag)
                                                              ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:319:70: note: the first parameter in the range is 'len'
static void add_line_info(struct image *img, const char *bol, size_t len, unsigned flag)
                                                                     ^~~
/datasets/git/apply.c:319:84: note: the last parameter in the range is 'flag'
static void add_line_info(struct image *img, const char *bol, size_t len, unsigned flag)
                                                                                   ^~~~
/datasets/git/apply.c:319:63: note: 
static void add_line_info(struct image *img, const char *bol, size_t len, unsigned flag)
                                                              ^
/datasets/git/apply.c:319:75: note: 'size_t' and 'unsigned int' may be implicitly converted: 'size_t' (as 'unsigned long') -> 'unsigned int', 'unsigned int' -> 'size_t' (as 'unsigned long')
static void add_line_info(struct image *img, const char *bol, size_t len, unsigned flag)
                                                                          ^
/datasets/git/apply.c:321:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(img->line_allocated, img->nr + 1, img->alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/apply.c:333:59: warning: 2 adjacent parameters of 'prepare_image' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void prepare_image(struct image *image, char *buf, size_t len,
                                                          ^~~~~~~~~~~
/datasets/git/apply.c:333:66: note: the first parameter in the range is 'len'
static void prepare_image(struct image *image, char *buf, size_t len,
                                                                 ^~~
/datasets/git/apply.c:334:10: note: the last parameter in the range is 'prepare_linetable'
                          int prepare_linetable)
                              ^~~~~~~~~~~~~~~~~
/datasets/git/apply.c:333:59: note: 
static void prepare_image(struct image *image, char *buf, size_t len,
                                                          ^
/datasets/git/apply.c:334:6: note: 'size_t' and 'int' may be implicitly converted: 'size_t' (as 'unsigned long') -> 'int', 'int' -> 'size_t' (as 'unsigned long')
                          int prepare_linetable)
                          ^
/datasets/git/apply.c:336:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *cp, *ep;
        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:336:14: warning: variable 'cp' is not initialized [cppcoreguidelines-init-variables]
        const char *cp, *ep;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:336:14: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/apply.c:336:19: warning: variable 'ep' is not initialized [cppcoreguidelines-init-variables]
        const char *cp, *ep;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:336:19: warning: variable name 'ep' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/apply.c:338:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(image, 0, sizeof(*image));
        ^~~~~~
/datasets/git/apply.c:338:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(image, 0, sizeof(*image));
        ^~~~~~
/datasets/git/apply.c:342:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!prepare_linetable)
                               ^
                                {
/datasets/git/apply.c:347:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'cp' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (cp < ep) {
               ^
/datasets/git/apply.c:348:15: warning: variable 'next' is not initialized [cppcoreguidelines-init-variables]
                const char *next;
                            ^
                                 = NULL
/datasets/git/apply.c:349:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (next = cp; next < ep && *next != '\n'; next++)
                ^
/datasets/git/apply.c:349:19: warning: backward branch (for loop) is ID-dependent due to variable reference to 'next' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (next = cp; next < ep && *next != '\n'; next++)
                                ^
/datasets/git/apply.c:349:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (next = cp; next < ep && *next != '\n'; next++)
                                                                   ^
                                                                    {
/datasets/git/apply.c:351:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (next < ep)
                              ^
                               {
/datasets/git/apply.c:363:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(image, 0, sizeof(*image));
        ^~~~~~
/datasets/git/apply.c:363:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(image, 0, sizeof(*image));
        ^~~~~~
/datasets/git/apply.c:369:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/apply.c:372:6: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
            strcmp(patch->old_name, patch->new_name)) {
            ^
                                                     != 0
/datasets/git/apply.c:377:15: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
                const char *n = patch->new_name;
                            ^
/datasets/git/apply.c:378:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!n)
                       ^
                        {
/datasets/git/apply.c:382:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(output, fmt, sb.buf);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:382:2: note: cast the expression to void to silence this warning
/datasets/git/apply.c:383:2: warning: the value returned by this function should be used [cert-err33-c]
        fputc('\n', output);
        ^~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:383:2: note: cast the expression to void to silence this warning
/datasets/git/apply.c:387:1: warning: replace macro with enum [modernize-macro-to-enum]
#define SLOP (16)
^~~~~~~~
             =
/datasets/git/apply.c:387:9: warning: macro 'SLOP' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define SLOP (16)
        ^
/datasets/git/apply.c:399:43: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static int read_patch_file(struct strbuf *sb, int fd)
                                          ^
/datasets/git/apply.c:399:51: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
static int read_patch_file(struct strbuf *sb, int fd)
                                                  ^
/datasets/git/apply.c:401:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strbuf_read(sb, fd, 0) < 0 || sb->len >= MAX_APPLY_SIZE)
                                                                    ^
                                                                     {
/datasets/git/apply.c:410:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(sb->buf + sb->len, 0, SLOP);
        ^~~~~~
/datasets/git/apply.c:410:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(sb->buf + sb->len, 0, SLOP);
        ^~~~~~
/datasets/git/apply.c:417:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (size--) {
        ^
/datasets/git/apply.c:419:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*buffer++ == '\n')
                                      ^
                                       {
/datasets/git/apply.c:427:48: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return skip_prefix(str, "/dev/null", &str) && isspace(*str);
                                                      ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/apply.c:430:1: warning: replace macro with enum [modernize-macro-to-enum]
#define TERM_SPACE      1
^~~~~~~~
                   =     ,
/datasets/git/apply.c:430:9: warning: macro 'TERM_SPACE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define TERM_SPACE      1
        ^
/datasets/git/apply.c:431:9: warning: macro 'TERM_TAB' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define TERM_TAB        2
        ^
/datasets/git/apply.c:433:31: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static int name_terminate(int c, int terminate)
                              ^
/datasets/git/apply.c:435:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (c == ' ' && !(terminate & TERM_SPACE))
                          ^~~~~~~~~
/datasets/git/apply.c:435:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (c == ' ' && !(terminate & TERM_SPACE))
                                                  ^
                                                   {
/datasets/git/apply.c:437:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (c == '\t' && !(terminate & TERM_TAB))
                           ^~~~~~~~~
/datasets/git/apply.c:437:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (c == '\t' && !(terminate & TERM_TAB))
                                                 ^
                                                  {
/datasets/git/apply.c:446:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i = 0, j = 0;
        ^~~~~~~~~~~~~~~~~
/datasets/git/apply.c:446:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0, j = 0;
            ^
/datasets/git/apply.c:446:13: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0, j = 0;
                   ^
/datasets/git/apply.c:448:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!name)
                  ^
                   {
/datasets/git/apply.c:452:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                if ((name[j++] = name[i++]) == '/')
                     ^
/datasets/git/apply.c:452:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/apply.c:452:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/apply.c:452:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((name[j++] = name[i++]) == '/')
                                                   ^
                                                    {
/datasets/git/apply.c:453:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (name[i] == '/')
                        ^
/datasets/git/apply.c:453:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        while (name[i] == '/')
                                              ^
                                               {
/datasets/git/apply.c:465:8: warning: variable 'cp' is not initialized [cppcoreguidelines-init-variables]
        char *cp;
              ^
                 = NULL
/datasets/git/apply.c:465:8: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/apply.c:476:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cp = name.buf; p_value; p_value--) {
        ^
/datasets/git/apply.c:486:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (root->len)
                      ^
                       {
/datasets/git/apply.c:493:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *tz, *p;
        ^~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:493:14: warning: variable 'tz' is not initialized [cppcoreguidelines-init-variables]
        const char *tz, *p;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:493:14: warning: variable name 'tz' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/apply.c:493:19: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        const char *tz, *p;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:493:19: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/apply.c:495:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len < strlen(" +0500") || line[len-strlen(" +0500")] != ' ')
                                                                        ^
                                                                         {
/datasets/git/apply.c:499:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (tz[1] != '+' && tz[1] != '-')
                                         ^
                                          {
/datasets/git/apply.c:502:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = tz + 2; p != line + len; p++)
        ^
/datasets/git/apply.c:502:19: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = tz + 2; p != line + len; p++)
                         ^
/datasets/git/apply.c:502:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (p = tz + 2; p != line + len; p++)
                                              ^
                                               {
/datasets/git/apply.c:503:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!isdigit(*p))
                     ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/apply.c:503:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!isdigit(*p))
                                 ^
                                  {
/datasets/git/apply.c:511:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *tz, *p;
        ^~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:511:14: warning: variable 'tz' is not initialized [cppcoreguidelines-init-variables]
        const char *tz, *p;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:511:14: warning: variable name 'tz' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/apply.c:511:19: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        const char *tz, *p;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:511:19: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/apply.c:513:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len < strlen(" +08:00") || line[len - strlen(":00")] != ':')
                                                                        ^
                                                                         {
/datasets/git/apply.c:517:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (tz[0] != ' ' || (tz[1] != '+' && tz[1] != '-'))
                                                           ^
                                                            {
/datasets/git/apply.c:520:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!isdigit(*p++) || !isdigit(*p++) || *p++ != ':' ||
             ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/apply.c:520:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!isdigit(*p++) || !isdigit(*p++) || *p++ != ':' ||
                               ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/apply.c:521:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            !isdigit(*p++) || !isdigit(*p++))
             ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/apply.c:521:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            !isdigit(*p++) || !isdigit(*p++))
                               ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/apply.c:521:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !isdigit(*p++) || !isdigit(*p++))
                                             ^
                                              {
/datasets/git/apply.c:529:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *date, *p;
        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:529:14: warning: variable 'date' is not initialized [cppcoreguidelines-init-variables]
        const char *date, *p;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:529:21: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        const char *date, *p;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:529:21: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/apply.c:531:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len < strlen("72-02-05") || line[len-strlen("-05")] != '-')
                                                                       ^
                                                                        {
/datasets/git/apply.c:535:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!isdigit(*p++) || !isdigit(*p++) || *p++ != '-' ||
             ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/apply.c:535:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!isdigit(*p++) || !isdigit(*p++) || *p++ != '-' ||
                               ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/apply.c:536:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            !isdigit(*p++) || !isdigit(*p++) || *p++ != '-' ||
             ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/apply.c:536:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            !isdigit(*p++) || !isdigit(*p++) || *p++ != '-' ||
                               ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/apply.c:537:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            !isdigit(*p++) || !isdigit(*p++))   /* Not a date. */
             ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/apply.c:537:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            !isdigit(*p++) || !isdigit(*p++))   /* Not a date. */
                               ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/apply.c:537:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !isdigit(*p++) || !isdigit(*p++))   /* Not a date. */
                                             ^
                                              {
/datasets/git/apply.c:541:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            isdigit(date[-1]) && isdigit(date[-2]))     /* 4-digit year */
            ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/apply.c:541:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            isdigit(date[-1]) && isdigit(date[-2]))     /* 4-digit year */
                                 ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/apply.c:541:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            isdigit(date[-1]) && isdigit(date[-2]))     /* 4-digit year */
                                                   ^
                                                    {
/datasets/git/apply.c:549:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *time, *p;
        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:549:14: warning: variable 'time' is not initialized [cppcoreguidelines-init-variables]
        const char *time, *p;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:549:21: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        const char *time, *p;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:549:21: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/apply.c:551:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len < strlen(" 07:01:32") || line[len-strlen(":32")] != ':')
                                                                        ^
                                                                         {
/datasets/git/apply.c:557:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            !isdigit(*p++) || !isdigit(*p++) || *p++ != ':' ||
             ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/apply.c:557:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            !isdigit(*p++) || !isdigit(*p++) || *p++ != ':' ||
                               ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/apply.c:558:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            !isdigit(*p++) || !isdigit(*p++) || *p++ != ':' ||
             ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/apply.c:558:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            !isdigit(*p++) || !isdigit(*p++) || *p++ != ':' ||
                               ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/apply.c:559:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            !isdigit(*p++) || !isdigit(*p++))   /* Not a time. */
             ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/apply.c:559:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            !isdigit(*p++) || !isdigit(*p++))   /* Not a time. */
                               ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/apply.c:559:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !isdigit(*p++) || !isdigit(*p++))   /* Not a time. */
                                             ^
                                              {
/datasets/git/apply.c:567:14: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        const char *p;
                    ^
                      = NULL
/datasets/git/apply.c:567:14: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/apply.c:568:9: warning: variable 'n' is not initialized [cppcoreguidelines-init-variables]
        size_t n;
               ^
                 = 0
/datasets/git/apply.c:568:9: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/apply.c:571:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!len || !isdigit(line[len - 1]))
                     ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/apply.c:571:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!len || !isdigit(line[len - 1]))
                                            ^
                                             {
/datasets/git/apply.c:576:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (p > line && isdigit(*p))
        ^
/datasets/git/apply.c:576:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (p > line && isdigit(*p))
               ^
/datasets/git/apply.c:576:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        while (p > line && isdigit(*p))
                           ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/apply.c:576:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (p > line && isdigit(*p))
                                       ^
                                        {
/datasets/git/apply.c:578:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*p != '.')
                      ^
                       {
/datasets/git/apply.c:583:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!n)
               ^
                {
/datasets/git/apply.c:591:14: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        const char *p;
                    ^
                      = NULL
/datasets/git/apply.c:591:14: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/apply.c:594:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!len || line[len - 1] != ' ')
                                         ^
                                          {
/datasets/git/apply.c:598:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (p != line) {
        ^
/datasets/git/apply.c:598:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (p != line) {
               ^
/datasets/git/apply.c:600:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*p != ' ')
                              ^
                               {
/datasets/git/apply.c:611:9: warning: variable 'n' is not initialized [cppcoreguidelines-init-variables]
        size_t n;
               ^
                 = 0
/datasets/git/apply.c:611:9: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/apply.c:618:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!isdigit(end[-1]))
             ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/apply.c:618:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!isdigit(end[-1]))
                              ^
                               {
/datasets/git/apply.c:622:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!n)
               ^
                {
/datasets/git/apply.c:627:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!n)
               ^
                {
/datasets/git/apply.c:632:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!n) /* No date.  Too bad. */
               ^
                {
/datasets/git/apply.c:636:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (end == line)        /* No space before date. */
                        ^
                         {
/datasets/git/apply.c:642:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (end[-1] != ' ')     /* No space before date. */
                           ^
                            {
/datasets/git/apply.c:651:10: warning: 2 adjacent parameters of 'find_name_common' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                              const char *line,
                              ^~~~~~~~~~~~~~~~~
/datasets/git/apply.c:651:22: note: the first parameter in the range is 'line'
                              const char *line,
                                          ^~~~
/datasets/git/apply.c:652:22: note: the last parameter in the range is 'def'
                              const char *def,
                                          ^~~
/datasets/git/apply.c:657:6: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int len;
            ^
                = 0
/datasets/git/apply.c:660:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (p_value == 0)
                         ^
                          {
/datasets/git/apply.c:662:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (line != end) {
        ^
/datasets/git/apply.c:663:8: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                char c = *line;
                     ^
/datasets/git/apply.c:665:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!end && isspace(c)) {
                            ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/apply.c:666:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (c == '\n')
                                      ^
                                       {
/datasets/git/apply.c:668:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (name_terminate(c, terminate))
                                                         ^
                                                          {
/datasets/git/apply.c:672:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (c == '/' && !--p_value)
                                           ^
                                            {
/datasets/git/apply.c:675:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!start)
                   ^
                    {
/datasets/git/apply.c:677:8: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        len = line - start;
              ^
/datasets/git/apply.c:678:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!len)
                 ^
                  {
/datasets/git/apply.c:688:16: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int deflen = strlen(def);
                             ^
/datasets/git/apply.c:689:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (deflen < len && !strncmp(start, def, deflen))
                                                                 ^
                                                                  {
/datasets/git/apply.c:709:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (name)
                         ^
                          {
/datasets/git/apply.c:721:9: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        size_t len;
               ^
                   = 0
/datasets/git/apply.c:722:9: warning: variable 'date_len' is not initialized [cppcoreguidelines-init-variables]
        size_t date_len;
               ^
                        = 0
/datasets/git/apply.c:726:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (name)
                         ^
                          {
/datasets/git/apply.c:732:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!date_len)
                      ^
                       {
/datasets/git/apply.c:745:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *name, *cp;
        ^~~~~~~~~~~~~~~~
/datasets/git/apply.c:745:8: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
        char *name, *cp;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:745:15: warning: variable 'cp' is not initialized [cppcoreguidelines-init-variables]
        char *name, *cp;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:745:15: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/apply.c:748:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_dev_null(nameline))
                                  ^
                                   {
/datasets/git/apply.c:751:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!name)
                  ^
                   {
/datasets/git/apply.c:754:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!cp)
                ^
                 {
/datasets/git/apply.c:761:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (starts_with(name, state->prefix))
                                                     ^
                                                      {
/datasets/git/apply.c:765:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (starts_with(cp, state->prefix))
                                                           ^
                                                            {
/datasets/git/apply.c:790:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *timestamp = NULL, *cp, *colon;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:790:33: warning: variable 'cp' is not initialized [cppcoreguidelines-init-variables]
        const char *timestamp = NULL, *cp, *colon;
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:790:33: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/apply.c:790:38: warning: variable 'colon' is not initialized [cppcoreguidelines-init-variables]
        const char *timestamp = NULL, *cp, *colon;
                                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:791:18: warning: variable 'stamp' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
        static regex_t *stamp;
                        ^
/datasets/git/apply.c:792:13: warning: variable name 'm' is too short, expected at least 3 characters [readability-identifier-length]
        regmatch_t m[10];
                   ^
/datasets/git/apply.c:792:15: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        regmatch_t m[10];
                     ^
/datasets/git/apply.c:793:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int zoneoffset, epoch_hour, hour, minute;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:790:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        const char *timestamp = NULL, *cp, *colon;
        ^
/datasets/git/apply.c:793:6: warning: variable 'zoneoffset' is not initialized [cppcoreguidelines-init-variables]
        int zoneoffset, epoch_hour, hour, minute;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:793:18: warning: variable 'epoch_hour' is not initialized [cppcoreguidelines-init-variables]
        int zoneoffset, epoch_hour, hour, minute;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:793:30: warning: variable 'hour' is not initialized [cppcoreguidelines-init-variables]
        int zoneoffset, epoch_hour, hour, minute;
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:793:36: warning: variable 'minute' is not initialized [cppcoreguidelines-init-variables]
        int zoneoffset, epoch_hour, hour, minute;
                                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:794:6: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int status;
            ^
                   = 0
/datasets/git/apply.c:796:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cp = nameline; *cp != '\n'; cp++) {
        ^
/datasets/git/apply.c:796:22: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cp' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (cp = nameline; *cp != '\n'; cp++) {
                            ^
/datasets/git/apply.c:797:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*cp == '\t')
                                ^
                                 {
/datasets/git/apply.c:800:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!timestamp)
                       ^
                        {
/datasets/git/apply.c:807:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (skip_prefix(timestamp, "1969-12-31 ", &timestamp))
                                                              ^
                                                               {
/datasets/git/apply.c:808:16: warning: 24 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                epoch_hour = 24;
                             ^
/datasets/git/apply.c:809:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (skip_prefix(timestamp, "1970-01-01 ", &timestamp))
                                                                   ^
                                                                    {
/datasets/git/apply.c:811:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/apply.c:825:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (status != REG_NOMATCH)
                                          ^
                                           {
/datasets/git/apply.c:831:9: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        hour = strtol(timestamp, NULL, 10);
               ^
/datasets/git/apply.c:831:33: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        hour = strtol(timestamp, NULL, 10);
                                       ^
/datasets/git/apply.c:832:11: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        minute = strtol(timestamp + m[1].rm_so, NULL, 10);
                 ^
/datasets/git/apply.c:832:48: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        minute = strtol(timestamp + m[1].rm_so, NULL, 10);
                                                      ^
/datasets/git/apply.c:834:15: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        zoneoffset = strtol(timestamp + m[3].rm_so + 1, (char **) &colon, 10);
                     ^
/datasets/git/apply.c:834:68: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        zoneoffset = strtol(timestamp + m[3].rm_so + 1, (char **) &colon, 10);
                                                                          ^
/datasets/git/apply.c:835:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*colon == ':')
                          ^
                           {
/datasets/git/apply.c:836:16: warning: performing an implicit widening conversion to type 'long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                zoneoffset = zoneoffset * 60 + strtol(colon + 1, NULL, 10);
                             ^
/datasets/git/apply.c:836:16: note: make conversion explicit to silence this warning
                zoneoffset = zoneoffset * 60 + strtol(colon + 1, NULL, 10);
                             ^~~~~~~~~~~~~~~
                             (long)(      )
/datasets/git/apply.c:836:16: note: perform multiplication in a wider type
                zoneoffset = zoneoffset * 60 + strtol(colon + 1, NULL, 10);
                             ^~~~~~~~~~
                             (long)
/datasets/git/apply.c:836:16: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                zoneoffset = zoneoffset * 60 + strtol(colon + 1, NULL, 10);
                             ^
/datasets/git/apply.c:836:29: warning: 60 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                zoneoffset = zoneoffset * 60 + strtol(colon + 1, NULL, 10);
                                          ^
/datasets/git/apply.c:836:58: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                zoneoffset = zoneoffset * 60 + strtol(colon + 1, NULL, 10);
                                                                       ^
/datasets/git/apply.c:837:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/apply.c:838:30: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                zoneoffset = (zoneoffset / 100) * 60 + (zoneoffset % 100);
                                           ^
/datasets/git/apply.c:838:37: warning: 60 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                zoneoffset = (zoneoffset / 100) * 60 + (zoneoffset % 100);
                                                  ^
/datasets/git/apply.c:838:56: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                zoneoffset = (zoneoffset / 100) * 60 + (zoneoffset % 100);
                                                                     ^
/datasets/git/apply.c:839:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (timestamp[m[3].rm_so] == '-')
                                         ^
                                          {
/datasets/git/apply.c:842:16: warning: 60 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        return hour * 60 + minute - zoneoffset == epoch_hour * 60;
                      ^
/datasets/git/apply.c:842:57: warning: 60 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        return hour * 60 + minute - zoneoffset == epoch_hour * 60;
                                                               ^
/datasets/git/apply.c:857:8: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
        char *name;
              ^
                   = NULL
/datasets/git/apply.c:862:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int p, q;
                ^~~~~~~~~
/datasets/git/apply.c:862:7: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                int p, q;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:862:7: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/apply.c:862:10: warning: variable 'q' is not initialized [cppcoreguidelines-init-variables]
                int p, q;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:862:10: warning: variable name 'q' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/apply.c:865:13: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                if (p < 0) p = q;
                          ^
                           {
/datasets/git/apply.c:882:9: warning: variable 'first_name' is not initialized [cppcoreguidelines-init-variables]
                char *first_name;
                      ^
                                 = NULL
/datasets/git/apply.c:899:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!name)
                  ^
                   {
/datasets/git/apply.c:921:1: warning: replace macro with enum [modernize-macro-to-enum]
#define DIFF_OLD_NAME 0
^~~~~~~~
                      =,
/datasets/git/apply.c:921:9: warning: macro 'DIFF_OLD_NAME' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define DIFF_OLD_NAME 0
        ^
/datasets/git/apply.c:922:9: warning: macro 'DIFF_NEW_NAME' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define DIFF_NEW_NAME 1
        ^
/datasets/git/apply.c:936:9: warning: variable 'another' is not initialized [cppcoreguidelines-init-variables]
                char *another;
                      ^
                              = NULL
/datasets/git/apply.c:937:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (isnull)
                           ^
                            {
/datasets/git/apply.c:941:19: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (!another || strcmp(another, *name)) {
                                ^
                                                       != 0
/datasets/git/apply.c:949:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!is_dev_null(line))
                                       ^
                                        {
/datasets/git/apply.c:976:8: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
        char *end;
              ^
                  = NULL
/datasets/git/apply.c:977:30: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        *mode = strtoul(line, &end, 8);
                                    ^
/datasets/git/apply.c:978:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (end == line || !isspace(*end))
                            ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/apply.c:978:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (end == line || !isspace(*end))
                                          ^
                                           {
/datasets/git/apply.c:1061:42: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        unsigned long val = strtoul(line, NULL, 10);
                                                ^
/datasets/git/apply.c:1062:13: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (val <= 100)
                   ^
/datasets/git/apply.c:1062:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (val <= 100)
                       ^
                        {
/datasets/git/apply.c:1063:18: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                patch->score = val;
                               ^
/datasets/git/apply.c:1071:42: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        unsigned long val = strtoul(line, NULL, 10);
                                                ^
/datasets/git/apply.c:1072:13: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (val <= 100)
                   ^
/datasets/git/apply.c:1072:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (val <= 100)
                       ^
                        {
/datasets/git/apply.c:1073:18: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                patch->score = val;
                               ^
/datasets/git/apply.c:1085:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *ptr, *eol;
        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:1085:14: warning: variable 'ptr' is not initialized [cppcoreguidelines-init-variables]
        const char *ptr, *eol;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:1085:20: warning: variable 'eol' is not initialized [cppcoreguidelines-init-variables]
        const char *ptr, *eol;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:1086:6: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int len;
            ^
                = 0
/datasets/git/apply.c:1090:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ptr || ptr[1] != '.' || hexsz < ptr - line)
                                                        ^
                                                         {
/datasets/git/apply.c:1092:8: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        len = ptr - line;
              ^
/datasets/git/apply.c:1093:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(patch->old_oid_prefix, line, len);
        ^~~~~~
/datasets/git/apply.c:1093:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(patch->old_oid_prefix, line, len);
        ^~~~~~
/datasets/git/apply.c:1100:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ptr || eol < ptr)
                              ^
                               {
/datasets/git/apply.c:1102:8: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        len = ptr - line;
              ^
/datasets/git/apply.c:1104:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (hexsz < len)
                        ^
                         {
/datasets/git/apply.c:1106:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(patch->new_oid_prefix, line, len);
        ^~~~~~
/datasets/git/apply.c:1106:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(patch->new_oid_prefix, line, len);
        ^~~~~~
/datasets/git/apply.c:1108:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*ptr == ' ')
                        ^
                         {
/datasets/git/apply.c:1132:6: warning: variable 'nslash' is not initialized [cppcoreguidelines-init-variables]
        int nslash;
            ^
                   = 0
/datasets/git/apply.c:1133:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/apply.c:1133:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/apply.c:1135:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!p_value)
                     ^
                      {
/datasets/git/apply.c:1139:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < llen; i++) {
        ^
/datasets/git/apply.c:1140:7: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
                int ch = line[i];
                    ^
/datasets/git/apply.c:1140:12: warning: 'signed char' to 'int' conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse,cert-str34-c]
                int ch = line[i];
                         ^
/datasets/git/apply.c:1141:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ch == '/' && --nslash <= 0)
                                               ^
                                                {
/datasets/git/apply.c:1155:14: warning: function 'git_header_name' has cognitive complexity of 54 (threshold 25) [readability-function-cognitive-complexity]
static char *git_header_name(int p_value,
             ^
/datasets/git/apply.c:1166:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (*line == '"') {
        ^
/datasets/git/apply.c:1171:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (unquote_c_style(&first, line, &second))
                ^
/datasets/git/apply.c:1176:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!cp)
                ^
/datasets/git/apply.c:1184:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while ((second < line + llen) && isspace(*second))
                ^
/datasets/git/apply.c:1184:33: note: +1
                while ((second < line + llen) && isspace(*second))
                                              ^
/datasets/git/apply.c:1187:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (line + llen <= second)
                ^
/datasets/git/apply.c:1189:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*second == '"') {
                ^
/datasets/git/apply.c:1190:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (unquote_c_style(&sp, second, NULL))
                        ^
/datasets/git/apply.c:1193:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!cp)
                        ^
/datasets/git/apply.c:1196:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (strcmp(cp, first.buf))
                        ^
/datasets/git/apply.c:1204:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!cp)
                ^
/datasets/git/apply.c:1206:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (line + llen - cp != first.len ||
                ^
/datasets/git/apply.c:1206:37: note: +1
                if (line + llen - cp != first.len ||
                                                  ^
/datasets/git/apply.c:1219:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!name)
        ^
/datasets/git/apply.c:1226:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (second = name; second < line + llen; second++) {
        ^
/datasets/git/apply.c:1227:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*second == '"') {
                ^
/datasets/git/apply.c:1231:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (unquote_c_style(&sp, second, NULL))
                        ^
/datasets/git/apply.c:1235:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!np)
                        ^
/datasets/git/apply.c:1239:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (len < second - name &&
                        ^
/datasets/git/apply.c:1240:32: note: +1
                            !strncmp(np, name, len) &&
                                                    ^
/datasets/git/apply.c:1258:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!second)
        ^
/datasets/git/apply.c:1261:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (len = 0 ; ; len++) {
        ^
/datasets/git/apply.c:1262:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                switch (name[len]) {
                ^
/datasets/git/apply.c:1276:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!name[len + 1])
                        ^
/datasets/git/apply.c:1280:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!second)
                        ^
/datasets/git/apply.c:1287:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (second[len] == '\n' && !strncmp(name, second, len))
                        ^
/datasets/git/apply.c:1287:28: note: +1
                        if (second[len] == '\n' && !strncmp(name, second, len))
                                                ^
/datasets/git/apply.c:1159:14: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
        const char *name;
                    ^
                         = NULL
/datasets/git/apply.c:1161:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t len, line_len;
        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:1161:9: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        size_t len, line_len;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:1161:14: warning: variable 'line_len' is not initialized [cppcoreguidelines-init-variables]
        size_t len, line_len;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:1167:15: warning: variable 'cp' is not initialized [cppcoreguidelines-init-variables]
                const char *cp;
                            ^
                               = NULL
/datasets/git/apply.c:1167:15: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/apply.c:1169:17: warning: variable name 'sp' is too short, expected at least 3 characters [readability-identifier-length]
                struct strbuf sp = STRBUF_INIT;
                              ^
/datasets/git/apply.c:1171:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (unquote_c_style(&first, line, &second))
                                                           ^
                                                            {
/datasets/git/apply.c:1175:45: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                cp = skip_tree_prefix(p_value, first.buf, first.len);
                                                          ^
/datasets/git/apply.c:1176:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!cp)
                        ^
                         {
/datasets/git/apply.c:1184:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while ((second < line + llen) && isspace(*second))
                ^
/datasets/git/apply.c:1184:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'second' and may cause performance degradation [altera-id-dependent-backward-branch]
                while ((second < line + llen) && isspace(*second))
                       ^
/datasets/git/apply.c:1184:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                while ((second < line + llen) && isspace(*second))
                                                 ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/apply.c:1184:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while ((second < line + llen) && isspace(*second))
                                                                  ^
                                                                   {
/datasets/git/apply.c:1187:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (line + llen <= second)
                                          ^
                                           {
/datasets/git/apply.c:1190:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (unquote_c_style(&sp, second, NULL))
                                                               ^
                                                                {
/datasets/git/apply.c:1192:43: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        cp = skip_tree_prefix(p_value, sp.buf, sp.len);
                                                               ^
/datasets/git/apply.c:1193:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!cp)
                                ^
                                 {
/datasets/git/apply.c:1196:8: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                        if (strcmp(cp, first.buf))
                            ^
                                                  != 0
/datasets/git/apply.c:1196:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (strcmp(cp, first.buf))
                                                  ^
                                                   {
/datasets/git/apply.c:1203:42: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                cp = skip_tree_prefix(p_value, second, line + llen - second);
                                                       ^
/datasets/git/apply.c:1204:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!cp)
                        ^
                         {
/datasets/git/apply.c:1207:7: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                    memcmp(first.buf, cp, first.len))
                    ^
                                                     != 0
/datasets/git/apply.c:1207:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    memcmp(first.buf, cp, first.len))
                                                     ^
                                                      {
/datasets/git/apply.c:1219:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!name)
                  ^
                   {
/datasets/git/apply.c:1226:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (second = name; second < line + llen; second++) {
        ^
/datasets/git/apply.c:1226:22: warning: backward branch (for loop) is ID-dependent due to variable reference to 'second' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (second = name; second < line + llen; second++) {
                            ^
/datasets/git/apply.c:1228:18: warning: variable name 'sp' is too short, expected at least 3 characters [readability-identifier-length]
                        struct strbuf sp = STRBUF_INIT;
                                      ^
/datasets/git/apply.c:1229:16: warning: variable 'np' is not initialized [cppcoreguidelines-init-variables]
                        const char *np;
                                    ^
                                       = NULL
/datasets/git/apply.c:1229:16: warning: variable name 'np' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/apply.c:1231:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (unquote_c_style(&sp, second, NULL))
                                                               ^
                                                                {
/datasets/git/apply.c:1234:43: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        np = skip_tree_prefix(p_value, sp.buf, sp.len);
                                                               ^
/datasets/git/apply.c:1235:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!np)
                                ^
                                 {
/datasets/git/apply.c:1241:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            isspace(name[len])) {
                            ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/apply.c:1258:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!second)
                    ^
                     {
/datasets/git/apply.c:1261:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (len = 0 ; ; len++) {
        ^
/datasets/git/apply.c:1276:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!name[len + 1])
                                           ^
                                            {
/datasets/git/apply.c:1279:9: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                                  line_len - (len + 1));
                                                  ^
/datasets/git/apply.c:1280:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!second)
                                    ^
                                     {
/datasets/git/apply.c:1287:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (second[len] == '\n' && !strncmp(name, second, len))
                                                                               ^
                                                                                {
/datasets/git/apply.c:1297:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (extensions > 1)
                           ^
                            {
/datasets/git/apply.c:1300:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (extensions && !patch->extension_linenr)
                                                   ^
                                                    {
/datasets/git/apply.c:1305:5: warning: function 'parse_git_diff_header' has cognitive complexity of 29 (threshold 25) [readability-function-cognitive-complexity]
int parse_git_diff_header(struct strbuf *root,
    ^
/datasets/git/apply.c:1327:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (patch->def_name && root->len) {
        ^
/datasets/git/apply.c:1327:22: note: +1
        if (patch->def_name && root->len) {
                            ^
/datasets/git/apply.c:1340:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (offset = len ; size > 0 ; offset += len, size -= len, line += len, (*linenr)++) {
        ^
/datasets/git/apply.c:1366:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!len || line[len-1] != '\n')
                ^
/datasets/git/apply.c:1366:12: note: +1
                if (!len || line[len-1] != '\n')
                         ^
/datasets/git/apply.c:1368:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < ARRAY_SIZE(optable); i++) {
                ^
/datasets/git/apply.c:1372:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (len < oplen || memcmp(p->str, line, oplen))
                        ^
/datasets/git/apply.c:1372:20: note: +1
                        if (len < oplen || memcmp(p->str, line, oplen))
                                        ^
/datasets/git/apply.c:1375:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (res < 0)
                        ^
/datasets/git/apply.c:1377:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (check_header_line(*linenr, patch))
                        ^
/datasets/git/apply.c:1379:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (res > 0)
                        ^
/datasets/git/apply.c:1386:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!patch->old_name && !patch->new_name) {
        ^
/datasets/git/apply.c:1386:23: note: +1
        if (!patch->old_name && !patch->new_name) {
                             ^
/datasets/git/apply.c:1387:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!patch->def_name) {
                ^
/datasets/git/apply.c:1399:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((!patch->new_name && !patch->is_delete) ||
        ^
/datasets/git/apply.c:1399:46: note: +1
        if ((!patch->new_name && !patch->is_delete) ||
                                                    ^
/datasets/git/apply.c:1399:24: note: +1
        if ((!patch->new_name && !patch->is_delete) ||
                              ^
/datasets/git/apply.c:1400:24: note: +1
            (!patch->old_name && !patch->is_new)) {
                              ^
/datasets/git/apply.c:1310:6: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                          unsigned int size,
                          ^
/datasets/git/apply.c:1313:16: warning: variable 'offset' is not initialized [cppcoreguidelines-init-variables]
        unsigned long offset;
                      ^
                             = 0
/datasets/git/apply.c:1328:9: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
                char *s = xstrfmt("%s%s", root->buf, patch->def_name);
                      ^
/datasets/git/apply.c:1340:22: warning: backward branch (for loop) is ID-dependent due to variable reference to 'size' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (offset = len ; size > 0 ; offset += len, size -= len, line += len, (*linenr)++) {
                            ^
/datasets/git/apply.c:1341:23: warning: accessing fields in struct 'opentry' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
                static const struct opentry {
                                    ^
/datasets/git/apply.c:1341:23: note: use "__attribute__((aligned(16)))" to align struct 'opentry' to 16 bytes
/datasets/git/apply.c:1363:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/apply.c:1363:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/apply.c:1365:9: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                len = linelen(line, size);
                      ^
/datasets/git/apply.c:1366:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!len || line[len-1] != '\n')
                                                ^
                                                 {
/datasets/git/apply.c:1368:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < ARRAY_SIZE(optable); i++) {
                ^
/datasets/git/apply.c:1369:26: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                        const struct opentry *p = optable + i;
                                              ^
/datasets/git/apply.c:1370:16: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        int oplen = strlen(p->str);
                                    ^
/datasets/git/apply.c:1371:8: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
                        int res;
                            ^
                                = 0
/datasets/git/apply.c:1372:23: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                        if (len < oplen || memcmp(p->str, line, oplen))
                                           ^
                                                                       != 0
/datasets/git/apply.c:1372:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (len < oplen || memcmp(p->str, line, oplen))
                                                                       ^
                                                                        {
/datasets/git/apply.c:1375:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (res < 0)
                                    ^
                                     {
/datasets/git/apply.c:1377:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (check_header_line(*linenr, patch))
                                                              ^
                                                               {
/datasets/git/apply.c:1379:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (res > 0)
                                    ^
                                     {
/datasets/git/apply.c:1394:12: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        return -128;
                                ^
/datasets/git/apply.c:1403:11: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                return -128;
                        ^
/datasets/git/apply.c:1406:9: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return offset;
               ^
/datasets/git/apply.c:1409:55: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static int parse_num(const char *line, unsigned long *p)
                                                      ^
/datasets/git/apply.c:1411:8: warning: variable 'ptr' is not initialized [cppcoreguidelines-init-variables]
        char *ptr;
              ^
                  = NULL
/datasets/git/apply.c:1413:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!isdigit(*line))
             ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/apply.c:1413:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!isdigit(*line))
                            ^
                             {
/datasets/git/apply.c:1415:27: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        *p = strtoul(line, &ptr, 10);
                                 ^
/datasets/git/apply.c:1416:9: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return ptr - line;
               ^
/datasets/git/apply.c:1420:25: warning: parameter name 'p1' is too short, expected at least 3 characters [readability-identifier-length]
                       unsigned long *p1, unsigned long *p2)
                                      ^
/datasets/git/apply.c:1420:44: warning: parameter name 'p2' is too short, expected at least 3 characters [readability-identifier-length]
                       unsigned long *p1, unsigned long *p2)
                                                         ^
/datasets/git/apply.c:1422:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int digits, ex;
        ^~~~~~~~~~~~~~~
/datasets/git/apply.c:1422:6: warning: variable 'digits' is not initialized [cppcoreguidelines-init-variables]
        int digits, ex;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:1422:14: warning: variable 'ex' is not initialized [cppcoreguidelines-init-variables]
        int digits, ex;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:1422:14: warning: variable name 'ex' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/apply.c:1424:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (offset < 0 || offset >= len)
                                        ^
                                         {
/datasets/git/apply.c:1430:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!digits)
                    ^
                     {
/datasets/git/apply.c:1440:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!digits)
                            ^
                             {
/datasets/git/apply.c:1448:7: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        ex = strlen(expect);
             ^
/datasets/git/apply.c:1449:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ex > len)
                     ^
                      {
/datasets/git/apply.c:1451:6: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (memcmp(line, expect, ex))
            ^
                                     != 0
/datasets/git/apply.c:1451:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (memcmp(line, expect, ex))
                                     ^
                                      {
/datasets/git/apply.c:1459:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int oldlines = 0, newlines = 0, ret = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:1466:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/apply.c:1467:13: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int len = linelen(line, size);
                          ^
/datasets/git/apply.c:1471:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (size < 1)
                             ^
                              {
/datasets/git/apply.c:1490:17: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        ret = size < 5 || !starts_with(line, "diff ");
                                     ^
/datasets/git/apply.c:1513:6: warning: variable 'offset' is not initialized [cppcoreguidelines-init-variables]
        int offset;
            ^
                   = 0
/datasets/git/apply.c:1515:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!len || line[len-1] != '\n')
                                        ^
                                         {
/datasets/git/apply.c:1533:12: warning: function 'find_header' has cognitive complexity of 28 (threshold 25) [readability-function-cognitive-complexity]
static int find_header(struct apply_state *state,
           ^
/datasets/git/apply.c:1546:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (offset = 0; size > 0; offset += len, size -= len, line += len, state->linenr++) {
        ^
/datasets/git/apply.c:1550:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!len)
                ^
/datasets/git/apply.c:1554:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (len < 6)
                ^
/datasets/git/apply.c:1562:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!memcmp("@@ -", line, 4)) {
                ^
/datasets/git/apply.c:1564:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (parse_fragment_header(line, len, &dummy) < 0)
                        ^
/datasets/git/apply.c:1571:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (size < len + 6)
                ^
/datasets/git/apply.c:1578:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!memcmp("diff --git ", line, 11)) {
                ^
/datasets/git/apply.c:1582:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (git_hdr_len < 0)
                        ^
/datasets/git/apply.c:1584:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (git_hdr_len <= len)
                        ^
/datasets/git/apply.c:1591:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (memcmp("--- ", line,  4) || memcmp("+++ ", line + len, 4))
                ^
/datasets/git/apply.c:1591:32: note: +1
                if (memcmp("--- ", line,  4) || memcmp("+++ ", line + len, 4))
                                             ^
/datasets/git/apply.c:1600:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (size < nextlen + 14 || memcmp("@@ -", line + len + nextlen, 4))
                ^
/datasets/git/apply.c:1600:27: note: +1
                if (size < nextlen + 14 || memcmp("@@ -", line + len + nextlen, 4))
                                        ^
/datasets/git/apply.c:1604:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (parse_traditional_patch(state, line, line+len, patch))
                ^
/datasets/git/apply.c:1539:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned long offset, len;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:1535:10: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                       unsigned long size,
                       ^
/datasets/git/apply.c:1539:16: warning: variable 'offset' is not initialized [cppcoreguidelines-init-variables]
        unsigned long offset, len;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:1539:24: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        unsigned long offset, len;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:1546:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (offset = 0; size > 0; offset += len, size -= len, line += len, state->linenr++) {
        ^
/datasets/git/apply.c:1546:19: warning: backward branch (for loop) is ID-dependent due to variable reference to 'size' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (offset = 0; size > 0; offset += len, size -= len, line += len, state->linenr++) {
                         ^
/datasets/git/apply.c:1547:17: warning: variable 'nextlen' is not initialized [cppcoreguidelines-init-variables]
                unsigned long nextlen;
                              ^
                                      = 0
/datasets/git/apply.c:1550:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!len)
                         ^
                          {
/datasets/git/apply.c:1554:13: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (len < 6)
                          ^
/datasets/git/apply.c:1554:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (len < 6)
                            ^
                             {
/datasets/git/apply.c:1564:36: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        if (parse_fragment_header(line, len, &dummy) < 0)
                                                        ^
/datasets/git/apply.c:1564:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (parse_fragment_header(line, len, &dummy) < 0)
                                                                         ^
                                                                          {
/datasets/git/apply.c:1568:12: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        return -128;
                                ^
/datasets/git/apply.c:1571:20: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (size < len + 6)
                                 ^
/datasets/git/apply.c:1571:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (size < len + 6)
                                   ^
                                    {
/datasets/git/apply.c:1578:36: warning: 11 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (!memcmp("diff --git ", line, 11)) {
                                                 ^
/datasets/git/apply.c:1580:31: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                                                state->p_value, line, len,
                                                                                      ^
/datasets/git/apply.c:1582:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (git_hdr_len < 0)
                                            ^
                                             {
/datasets/git/apply.c:1583:13: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                return -128;
                                        ^
/datasets/git/apply.c:1584:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (git_hdr_len <= len)
                                               ^
                                                {
/datasets/git/apply.c:1587:11: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        return offset;
                               ^
/datasets/git/apply.c:1591:7: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (memcmp("--- ", line,  4) || memcmp("+++ ", line + len, 4))
                    ^
                                             != 0
/datasets/git/apply.c:1591:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (memcmp("--- ", line,  4) || memcmp("+++ ", line + len, 4))
                                                                              ^
                                                                               {
/datasets/git/apply.c:1600:24: warning: 14 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (size < nextlen + 14 || memcmp("@@ -", line + len + nextlen, 4))
                                     ^
/datasets/git/apply.c:1600:30: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (size < nextlen + 14 || memcmp("@@ -", line + len + nextlen, 4))
                                           ^
                                                                                   != 0
/datasets/git/apply.c:1600:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (size < nextlen + 14 || memcmp("@@ -", line + len + nextlen, 4))
                                                                                   ^
                                                                                    {
/datasets/git/apply.c:1604:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (parse_traditional_patch(state, line, line+len, patch))
                                                                          ^
                                                                           {
/datasets/git/apply.c:1605:12: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        return -128;
                                ^
/datasets/git/apply.c:1606:14: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                *hdrsize = len + nextlen;
                           ^
/datasets/git/apply.c:1608:10: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                return offset;
                       ^
/datasets/git/apply.c:1619:8: warning: variable 'err' is not initialized [cppcoreguidelines-init-variables]
        char *err;
              ^
                  = NULL
/datasets/git/apply.c:1621:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!result)
                    ^
                     {
/datasets/git/apply.c:1626:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            state->squelch_whitespace_errors < state->whitespace_error)
                                                                       ^
                                                                        {
/datasets/git/apply.c:1630:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (state->apply_verbosity > verbosity_silent)
                                                      ^
                                                       {
/datasets/git/apply.c:1631:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "%s:%d: %s.\n%.*s\n",
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:1631:3: note: cast the expression to void to silence this warning
/datasets/git/apply.c:1653:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                patch->ws_rule |= WS_CR_AT_EOL;
                ^
/datasets/git/apply.c:1665:12: warning: function 'parse_fragment' has cognitive complexity of 48 (threshold 25) [readability-function-cognitive-complexity]
static int parse_fragment(struct apply_state *state,
           ^
/datasets/git/apply.c:1677:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (offset < 0)
        ^
/datasets/git/apply.c:1679:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (offset > 0 && patch->recount)
        ^
/datasets/git/apply.c:1679:17: note: +1
        if (offset > 0 && patch->recount)
                       ^
/datasets/git/apply.c:1691:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (offset = len;
        ^
/datasets/git/apply.c:1694:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!oldlines && !newlines)
                ^
/datasets/git/apply.c:1694:17: note: +1
                if (!oldlines && !newlines)
                              ^
/datasets/git/apply.c:1697:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!len || line[len-1] != '\n')
                ^
/datasets/git/apply.c:1697:12: note: +1
                if (!len || line[len-1] != '\n')
                         ^
/datasets/git/apply.c:1699:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                switch (*line) {
                ^
/datasets/git/apply.c:1706:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!deleted && !added)
                        ^
/datasets/git/apply.c:1706:17: note: +1
                        if (!deleted && !added)
                                     ^
/datasets/git/apply.c:1710:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!state->apply_in_reverse &&
                        ^
/datasets/git/apply.c:1710:33: note: +1
                        if (!state->apply_in_reverse &&
                                                     ^
/datasets/git/apply.c:1715:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!state->apply_in_reverse)
                        ^
/datasets/git/apply.c:1717:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (state->apply_in_reverse &&
                        ^
/datasets/git/apply.c:1717:32: note: +1
                        if (state->apply_in_reverse &&
                                                    ^
/datasets/git/apply.c:1725:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (state->apply_in_reverse)
                        ^
/datasets/git/apply.c:1727:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!state->apply_in_reverse &&
                        ^
/datasets/git/apply.c:1727:33: note: +1
                        if (!state->apply_in_reverse &&
                                                     ^
/datasets/git/apply.c:1744:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (len < 12 || memcmp(line, "\\ ", 2))
                        ^
/datasets/git/apply.c:1744:17: note: +1
                        if (len < 12 || memcmp(line, "\\ ", 2))
                                     ^
/datasets/git/apply.c:1749:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (oldlines || newlines)
        ^
/datasets/git/apply.c:1749:15: note: +1
        if (oldlines || newlines)
                     ^
/datasets/git/apply.c:1751:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!patch->recount && !deleted && !added)
        ^
/datasets/git/apply.c:1751:34: note: +1
        if (!patch->recount && !deleted && !added)
                                        ^
/datasets/git/apply.c:1762:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (12 < size && !memcmp(line, "\\ ", 2))
        ^
/datasets/git/apply.c:1762:16: note: +1
        if (12 < size && !memcmp(line, "\\ ", 2))
                      ^
/datasets/git/apply.c:1768:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (0 < patch->is_new && oldlines)
        ^
/datasets/git/apply.c:1768:24: note: +1
        if (0 < patch->is_new && oldlines)
                              ^
/datasets/git/apply.c:1770:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (0 < patch->is_delete && newlines)
        ^
/datasets/git/apply.c:1770:27: note: +1
        if (0 < patch->is_delete && newlines)
                                 ^
/datasets/git/apply.c:1671:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int added, deleted;
        ^~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:1671:6: warning: variable 'added' is not initialized [cppcoreguidelines-init-variables]
        int added, deleted;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:1671:13: warning: variable 'deleted' is not initialized [cppcoreguidelines-init-variables]
        int added, deleted;
                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:1672:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int len = linelen(line, size), offset;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:1672:12: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int len = linelen(line, size), offset;
                  ^
/datasets/git/apply.c:1672:33: warning: variable 'offset' is not initialized [cppcoreguidelines-init-variables]
        int len = linelen(line, size), offset;
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:1673:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned long oldlines, newlines;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:1673:16: warning: variable 'oldlines' is not initialized [cppcoreguidelines-init-variables]
        unsigned long oldlines, newlines;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:1673:26: warning: variable 'newlines' is not initialized [cppcoreguidelines-init-variables]
        unsigned long oldlines, newlines;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:1674:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned long leading, trailing;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:1674:16: warning: variable 'leading' is not initialized [cppcoreguidelines-init-variables]
        unsigned long leading, trailing;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:1674:25: warning: variable 'trailing' is not initialized [cppcoreguidelines-init-variables]
        unsigned long leading, trailing;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:1677:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (offset < 0)
                       ^
                        {
/datasets/git/apply.c:1679:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (offset > 0 && patch->recount)
                                         ^
                                          {
/datasets/git/apply.c:1680:31: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                recount_diff(line + offset, size - offset, fragment);
                                            ^
/datasets/git/apply.c:1691:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (offset = len;
        ^
/datasets/git/apply.c:1692:7: warning: backward branch (for loop) is ID-dependent due to variable reference to 'size' and may cause performance degradation [altera-id-dependent-backward-branch]
             0 < size;
             ^
/datasets/git/apply.c:1694:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!oldlines && !newlines)
                                           ^
                                            {
/datasets/git/apply.c:1696:9: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                len = linelen(line, size);
                      ^
/datasets/git/apply.c:1697:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!len || line[len-1] != '\n')
                                                ^
                                                 {
/datasets/git/apply.c:1706:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!deleted && !added)
                                               ^
                                                {
/datasets/git/apply.c:1711:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            state->ws_error_action == correct_ws_error)
                                                                       ^
                                                                        {
/datasets/git/apply.c:1715:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!state->apply_in_reverse)
                                                     ^
                                                      {
/datasets/git/apply.c:1718:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            state->ws_error_action != nowarn_ws_error)
                                                                      ^
                                                                       {
/datasets/git/apply.c:1725:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (state->apply_in_reverse)
                                                    ^
                                                     {
/datasets/git/apply.c:1728:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            state->ws_error_action != nowarn_ws_error)
                                                                      ^
                                                                       {
/datasets/git/apply.c:1744:14: warning: 12 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        if (len < 12 || memcmp(line, "\\ ", 2))
                                  ^
/datasets/git/apply.c:1744:20: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                        if (len < 12 || memcmp(line, "\\ ", 2))
                                        ^
                                                               != 0
/datasets/git/apply.c:1744:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (len < 12 || memcmp(line, "\\ ", 2))
                                                               ^
                                                                {
/datasets/git/apply.c:1749:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oldlines || newlines)
                                 ^
                                  {
/datasets/git/apply.c:1751:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!patch->recount && !deleted && !added)
                                                  ^
                                                   {
/datasets/git/apply.c:1762:6: warning: 12 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (12 < size && !memcmp(line, "\\ ", 2))
            ^
/datasets/git/apply.c:1762:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (12 < size && !memcmp(line, "\\ ", 2))
                                                 ^
                                                  {
/datasets/git/apply.c:1763:13: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                offset += linelen(line, size);
                          ^
/datasets/git/apply.c:1768:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (0 < patch->is_new && oldlines)
                                          ^
                                           {
/datasets/git/apply.c:1770:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (0 < patch->is_delete && newlines)
                                             ^
                                              {
/datasets/git/apply.c:1793:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned long oldlines = 0, newlines = 0, context = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:1789:10: note: inferred assignment of ID-dependent value from ID-dependent variable len [altera-id-dependent-backward-branch]
                              unsigned long size,
                              ^
/datasets/git/apply.c:1796:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (size > 4 && !memcmp(line, "@@ -", 4)) {
        ^
/datasets/git/apply.c:1796:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'size' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (size > 4 && !memcmp(line, "@@ -", 4)) {
               ^
/datasets/git/apply.c:1797:20: warning: variable 'fragment' is not initialized [cppcoreguidelines-init-variables]
                struct fragment *fragment;
                                 ^
                                          = NULL
/datasets/git/apply.c:1798:7: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
                int len;
                    ^
                        = 0
/datasets/git/apply.c:1835:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            (oldlines || (patch->fragments && patch->fragments->next)))
                                                                       ^
                                                                        {
/datasets/git/apply.c:1838:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            (newlines || (patch->fragments && patch->fragments->next)))
                                                                       ^
                                                                        {
/datasets/git/apply.c:1841:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (0 < patch->is_new && oldlines)
                                          ^
                                           {
/datasets/git/apply.c:1843:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (0 < patch->is_delete && newlines)
                                             ^
                                              {
/datasets/git/apply.c:1845:93: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!patch->is_delete && !newlines && context && state->apply_verbosity > verbosity_silent)
                                                                                                   ^
                                                                                                    {
/datasets/git/apply.c:1851:9: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return offset;
               ^
/datasets/git/apply.c:1864:43: warning: 2 adjacent parameters of 'inflate_it' of similar type ('unsigned long') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static char *inflate_it(const void *data, unsigned long size,
                                          ^~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:1864:57: note: the first parameter in the range is 'size'
static char *inflate_it(const void *data, unsigned long size,
                                                        ^~~~
/datasets/git/apply.c:1865:18: note: the last parameter in the range is 'inflated_size'
                        unsigned long inflated_size)
                                      ^~~~~~~~~~~~~
/datasets/git/apply.c:1868:8: warning: variable 'out' is not initialized [cppcoreguidelines-init-variables]
        void *out;
              ^
                  = NULL
/datasets/git/apply.c:1869:6: warning: variable 'st' is not initialized [cppcoreguidelines-init-variables]
        int st;
            ^
               = 0
/datasets/git/apply.c:1869:6: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/apply.c:1871:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&stream, 0, sizeof(stream));
        ^~~~~~
/datasets/git/apply.c:1871:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&stream, 0, sizeof(stream));
        ^~~~~~
/datasets/git/apply.c:1895:8: warning: 2 adjacent parameters of 'parse_binary_hunk' of similar type ('int *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                          int *status_p,
                                          ^~~~~~~~~~~~~~
/datasets/git/apply.c:1895:13: note: the first parameter in the range is 'status_p'
                                          int *status_p,
                                               ^~~~~~~~
/datasets/git/apply.c:1896:13: note: the last parameter in the range is 'used_p'
                                          int *used_p)
                                               ^~~~~~
/datasets/git/apply.c:1910:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int llen, used;
        ^~~~~~~~~~~~~~~
/datasets/git/apply.c:1910:6: warning: variable 'llen' is not initialized [cppcoreguidelines-init-variables]
        int llen, used;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:1910:12: warning: variable 'used' is not initialized [cppcoreguidelines-init-variables]
        int llen, used;
                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:1913:6: warning: variable 'patch_method' is not initialized [cppcoreguidelines-init-variables]
        int patch_method;
            ^
                         = 0
/datasets/git/apply.c:1914:16: warning: variable 'origlen' is not initialized [cppcoreguidelines-init-variables]
        unsigned long origlen;
                      ^
                              = 0
/datasets/git/apply.c:1917:19: warning: variable 'frag' is not initialized [cppcoreguidelines-init-variables]
        struct fragment *frag;
                         ^
                              = NULL
/datasets/git/apply.c:1919:9: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        llen = linelen(buffer, size);
               ^
/datasets/git/apply.c:1926:30: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                origlen = strtoul(buffer + 6, NULL, 10);
                                           ^
/datasets/git/apply.c:1926:39: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                origlen = strtoul(buffer + 6, NULL, 10);
                                                    ^
/datasets/git/apply.c:1930:30: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                origlen = strtoul(buffer + 8, NULL, 10);
                                           ^
/datasets/git/apply.c:1930:39: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                origlen = strtoul(buffer + 8, NULL, 10);
                                                    ^
/datasets/git/apply.c:1932:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/apply.c:1938:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/apply.c:1939:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int byte_length, max_byte_length, newsize;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:1939:7: warning: variable 'byte_length' is not initialized [cppcoreguidelines-init-variables]
                int byte_length, max_byte_length, newsize;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:1939:20: warning: variable 'max_byte_length' is not initialized [cppcoreguidelines-init-variables]
                int byte_length, max_byte_length, newsize;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:1939:37: warning: variable 'newsize' is not initialized [cppcoreguidelines-init-variables]
                int byte_length, max_byte_length, newsize;
                                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:1940:10: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                llen = linelen(buffer, size);
                       ^
/datasets/git/apply.c:1953:15: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if ((llen < 7) || (llen-2) % 5)
                            ^
/datasets/git/apply.c:1953:32: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if ((llen < 7) || (llen-2) % 5)
                                             ^
/datasets/git/apply.c:1953:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((llen < 7) || (llen-2) % 5)
                                               ^
                                                {
/datasets/git/apply.c:1955:34: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                max_byte_length = (llen - 2) / 5 * 4;
                                               ^
/datasets/git/apply.c:1956:17: warning: 'signed char' to 'int' conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse,cert-str34-c]
                byte_length = *buffer;
                              ^
/datasets/git/apply.c:1957:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ('A' <= byte_length && byte_length <= 'Z')
                                                             ^
                                                              {
/datasets/git/apply.c:1959:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if ('a' <= byte_length && byte_length <= 'z')
                                                                  ^
                                                                   {
/datasets/git/apply.c:1960:38: warning: 27 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        byte_length = byte_length - 'a' + 27;
                                                          ^
/datasets/git/apply.c:1961:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/apply.c:1968:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    byte_length <= max_byte_length - 4)
                                                       ^
                                                        {
/datasets/git/apply.c:1972:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (decode_85(data + hunk_size, buffer + 1, byte_length))
                                                                         ^
                                                                          {
/datasets/git/apply.c:1982:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!frag->patch)
                         ^
                          {
/datasets/git/apply.c:1985:15: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        frag->size = origlen;
                     ^
/datasets/git/apply.c:2024:19: warning: variable 'forward' is not initialized [cppcoreguidelines-init-variables]
        struct fragment *forward;
                         ^
                                 = NULL
/datasets/git/apply.c:2025:19: warning: variable 'reverse' is not initialized [cppcoreguidelines-init-variables]
        struct fragment *reverse;
                         ^
                                 = NULL
/datasets/git/apply.c:2026:6: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int status;
            ^
                   = 0
/datasets/git/apply.c:2027:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int used, used_1;
        ^~~~~~~~~~~~~~~~~
/datasets/git/apply.c:2027:6: warning: variable 'used' is not initialized [cppcoreguidelines-init-variables]
        int used, used_1;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:2027:12: warning: variable 'used_1' is not initialized [cppcoreguidelines-init-variables]
        int used, used_1;
                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:2030:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!forward && !status)
                                ^
                                 {
/datasets/git/apply.c:2033:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (status)
                   ^
                    {
/datasets/git/apply.c:2038:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (reverse)
                    ^
                     {
/datasets/git/apply.c:2058:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!old_name)
                      ^
                       {
/datasets/git/apply.c:2064:67: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static void prefix_patch(struct apply_state *state, struct patch *p)
                                                                  ^
/datasets/git/apply.c:2066:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!state->prefix || p->is_toplevel_relative)
                                                      ^
                                                       {
/datasets/git/apply.c:2080:27: warning: variable 'it' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *it;
                                 ^
                                    = NULL
/datasets/git/apply.c:2080:27: warning: variable name 'it' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/apply.c:2086:63: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static int use_patch(struct apply_state *state, struct patch *p)
                                                              ^
/datasets/git/apply.c:2089:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/apply.c:2089:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/apply.c:2093:15: warning: variable 'rest' is not initialized [cppcoreguidelines-init-variables]
                const char *rest;
                            ^
                                 = NULL
/datasets/git/apply.c:2094:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!skip_prefix(pathname, state->prefix, &rest) || !*rest)
                                                                           ^
                                                                            {
/datasets/git/apply.c:2099:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < state->limit_by_name.nr; i++) {
        ^
/datasets/git/apply.c:2100:28: warning: variable name 'it' is too short, expected at least 3 characters [readability-identifier-length]
                struct string_list_item *it = &state->limit_by_name.items[i];
                                         ^
/datasets/git/apply.c:2101:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!wildmatch(it->string, pathname, 0))
                                                        ^
                                                         {
/datasets/git/apply.c:2124:12: warning: function 'parse_chunk' has cognitive complexity of 29 (threshold 25) [readability-function-cognitive-complexity]
static int parse_chunk(struct apply_state *state, char *buffer, unsigned long size, struct patch *patch)
           ^
/datasets/git/apply.c:2129:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (offset < 0)
        ^
/datasets/git/apply.c:2134:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!use_patch(state, patch))
        ^
/datasets/git/apply.c:2136:7: note: +1, nesting level increased to 1
        else if (patch->new_name)
             ^
/datasets/git/apply.c:2139:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/apply.c:2148:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (patchsize < 0)
        ^
/datasets/git/apply.c:2151:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!patchsize) {
        ^
/datasets/git/apply.c:2156:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (llen == sizeof(git_binary) - 1 &&
                ^
/datasets/git/apply.c:2156:38: note: +1
                if (llen == sizeof(git_binary) - 1 &&
                                                   ^
/datasets/git/apply.c:2162:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (used < 0)
                        ^
/datasets/git/apply.c:2164:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (used)
                        ^
/datasets/git/apply.c:2166:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/apply.c:2169:8: note: +1, nesting level increased to 2
                else if (!memcmp(" differ\n", buffer + hd + llen - 8, 8)) {
                     ^
/datasets/git/apply.c:2176:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (i = 0; binhdr[i]; i++) {
                        ^
/datasets/git/apply.c:2178:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (len < size - hd &&
                                ^
/datasets/git/apply.c:2178:25: note: +1
                                if (len < size - hd &&
                                                    ^
/datasets/git/apply.c:2192:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((state->apply || state->check) &&
                ^
/datasets/git/apply.c:2192:38: note: +1
                if ((state->apply || state->check) &&
                                                   ^
/datasets/git/apply.c:2192:21: note: +1
                if ((state->apply || state->check) &&
                                  ^
/datasets/git/apply.c:2126:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int hdrsize, patchsize;
        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:2126:6: warning: variable 'hdrsize' is not initialized [cppcoreguidelines-init-variables]
        int hdrsize, patchsize;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:2126:15: warning: variable 'patchsize' is not initialized [cppcoreguidelines-init-variables]
        int hdrsize, patchsize;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:2129:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (offset < 0)
                       ^
                        {
/datasets/git/apply.c:2134:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!use_patch(state, patch))
                                     ^
                                      {
/datasets/git/apply.c:2136:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (patch->new_name)
                                 ^
                                  {
/datasets/git/apply.c:2139:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/apply.c:2148:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (patchsize < 0)
                          ^
                           {
/datasets/git/apply.c:2149:11: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                return -128;
                        ^
/datasets/git/apply.c:2153:7: warning: variable name 'hd' is too short, expected at least 3 characters [readability-identifier-length]
                int hd = hdrsize + offset;
                    ^
/datasets/git/apply.c:2158:8: warning: variable 'used' is not initialized [cppcoreguidelines-init-variables]
                        int used;
                            ^
                                 = 0
/datasets/git/apply.c:2162:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (used < 0)
                                     ^
                                      {
/datasets/git/apply.c:2164:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (used)
                                 ^
                                  {
/datasets/git/apply.c:2165:17: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                patchsize = used + llen;
                                            ^
/datasets/git/apply.c:2166:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/apply.c:2169:54: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                else if (!memcmp(" differ\n", buffer + hd + llen - 8, 8)) {
                                                                   ^
/datasets/git/apply.c:2169:57: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                else if (!memcmp(" differ\n", buffer + hd + llen - 8, 8)) {
                                                                      ^
/datasets/git/apply.c:2175:8: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                        int i;
                            ^
                              = 0
/datasets/git/apply.c:2175:8: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/apply.c:2176:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = 0; binhdr[i]; i++) {
                        ^
/datasets/git/apply.c:2177:15: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                int len = strlen(binhdr[i]);
                                          ^
/datasets/git/apply.c:2182:18: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                        patchsize = llen;
                                                    ^
/datasets/git/apply.c:2195:12: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        return -128;
                                ^
/datasets/git/apply.c:2202:43: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static void reverse_patches(struct patch *p)
                                          ^
/datasets/git/apply.c:2202:29: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
static void reverse_patches(struct patch *p)
                            ^
/datasets/git/apply.c:2204:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; p; p = p->next) {
               ^
/datasets/git/apply.c:2207:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                SWAP(p->new_name, p->old_name);
                ^
/datasets/git/./git-compat-util.h:759:20: note: expanded from macro 'SWAP'
#define SWAP(a, b) do {                                         \
                   ^
/datasets/git/apply.c:2207:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                SWAP(p->new_name, p->old_name);
                ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/apply.c:2207:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                SWAP(p->new_name, p->old_name);
                ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/apply.c:2208:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                SWAP(p->new_mode, p->old_mode);
                ^
/datasets/git/./git-compat-util.h:759:20: note: expanded from macro 'SWAP'
#define SWAP(a, b) do {                                         \
                   ^
/datasets/git/apply.c:2208:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                SWAP(p->new_mode, p->old_mode);
                ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/apply.c:2208:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                SWAP(p->new_mode, p->old_mode);
                ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/apply.c:2209:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                SWAP(p->is_new, p->is_delete);
                ^
/datasets/git/./git-compat-util.h:759:20: note: expanded from macro 'SWAP'
#define SWAP(a, b) do {                                         \
                   ^
/datasets/git/apply.c:2209:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                SWAP(p->is_new, p->is_delete);
                ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/apply.c:2209:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                SWAP(p->is_new, p->is_delete);
                ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/apply.c:2210:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                SWAP(p->lines_added, p->lines_deleted);
                ^
/datasets/git/./git-compat-util.h:759:20: note: expanded from macro 'SWAP'
#define SWAP(a, b) do {                                         \
                   ^
/datasets/git/apply.c:2210:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                SWAP(p->lines_added, p->lines_deleted);
                ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/apply.c:2210:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                SWAP(p->lines_added, p->lines_deleted);
                ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/apply.c:2211:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                SWAP(p->old_oid_prefix, p->new_oid_prefix);
                ^
/datasets/git/./git-compat-util.h:759:20: note: expanded from macro 'SWAP'
#define SWAP(a, b) do {                                         \
                   ^
/datasets/git/apply.c:2205:3: note: inferred assignment of ID-dependent value from ID-dependent member fragments [altera-id-dependent-backward-branch]
                struct fragment *frag = p->fragments;
                ^
/datasets/git/apply.c:2211:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                SWAP(p->old_oid_prefix, p->new_oid_prefix);
                ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/apply.c:2211:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                SWAP(p->old_oid_prefix, p->new_oid_prefix);
                ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/apply.c:2213:10: warning: backward branch (for loop) is ID-dependent due to variable reference to 'frag' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (; frag; frag = frag->next) {
                       ^
/datasets/git/apply.c:2214:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        SWAP(frag->newpos, frag->oldpos);
                        ^
/datasets/git/./git-compat-util.h:759:20: note: expanded from macro 'SWAP'
#define SWAP(a, b) do {                                         \
                   ^
/datasets/git/apply.c:2214:4: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        SWAP(frag->newpos, frag->oldpos);
                        ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/apply.c:2214:4: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                        SWAP(frag->newpos, frag->oldpos);
                        ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/apply.c:2215:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        SWAP(frag->newlines, frag->oldlines);
                        ^
/datasets/git/./git-compat-util.h:759:20: note: expanded from macro 'SWAP'
#define SWAP(a, b) do {                                         \
                   ^
/datasets/git/apply.c:2215:4: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        SWAP(frag->newlines, frag->oldlines);
                        ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/apply.c:2215:4: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                        SWAP(frag->newlines, frag->oldlines);
                        ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/apply.c:2228:8: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
        char *cp = patch->new_name ? patch->new_name : patch->old_name;
              ^
/datasets/git/apply.c:2229:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int max, add, del;
        ^~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:2229:6: warning: variable 'max' is not initialized [cppcoreguidelines-init-variables]
        int max, add, del;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:2229:11: warning: variable 'add' is not initialized [cppcoreguidelines-init-variables]
        int max, add, del;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:2229:16: warning: variable 'del' is not initialized [cppcoreguidelines-init-variables]
        int max, add, del;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:2237:12: warning: 50 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (max > 50)
                  ^
/datasets/git/apply.c:2237:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (max > 50)
                     ^
                      {
/datasets/git/apply.c:2238:9: warning: 50 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                max = 50;
                      ^
/datasets/git/apply.c:2242:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!cp)
                        ^
                         {
/datasets/git/apply.c:2259:34: warning: 70 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        max = max + state->max_change > 70 ? 70 - max : state->max_change;
                                        ^
/datasets/git/apply.c:2259:39: warning: 70 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        max = max + state->max_change > 70 ? 70 - max : state->max_change;
                                             ^
/datasets/git/apply.c:2272:39: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
static int read_old_data(struct stat *st, struct patch *patch,
                                      ^
/datasets/git/apply.c:2276:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                CONV_EOL_KEEP_CRLF : CONV_EOL_RENORMALIZE;
                ^
/datasets/git/./convert.h:16:32: note: expanded from macro 'CONV_EOL_KEEP_CRLF'
#define CONV_EOL_KEEP_CRLF    (1<<3) /* Keep CRLF line endings as is */
                               ^
/datasets/git/apply.c:2276:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                CONV_EOL_KEEP_CRLF : CONV_EOL_RENORMALIZE;
                                     ^
/datasets/git/./convert.h:15:32: note: expanded from macro 'CONV_EOL_RENORMALIZE'
#define CONV_EOL_RENORMALIZE  (1<<2) /* Convert CRLF to LF */
                               ^
/datasets/git/apply.c:2277:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        switch (st->st_mode & S_IFMT) {
                ^
/datasets/git/apply.c:2279:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strbuf_readlink(buf, path, st->st_size) < 0)
                                                                ^
                                                                 {
/datasets/git/apply.c:2283:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strbuf_read_file(buf, path, st->st_size) != st->st_size)
                                                                            ^
                                                                             {
/datasets/git/apply.c:2310:8: warning: 2 adjacent parameters of 'update_pre_post_images' of similar type ('size_t') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                   size_t len, size_t postlen)
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:2310:15: note: the first parameter in the range is 'len'
                                   size_t len, size_t postlen)
                                          ^~~
/datasets/git/apply.c:2310:27: note: the last parameter in the range is 'postlen'
                                   size_t len, size_t postlen)
                                                      ^~~~~~~
/datasets/git/apply.c:2312:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, ctx, reduced;
        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:2312:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, ctx, reduced;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:2312:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/apply.c:2312:9: warning: variable 'ctx' is not initialized [cppcoreguidelines-init-variables]
        int i, ctx, reduced;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:2312:14: warning: variable 'reduced' is not initialized [cppcoreguidelines-init-variables]
        int i, ctx, reduced;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:2313:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *new_buf, *old_buf, *fixed;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:2313:8: warning: variable 'new_buf' is not initialized [cppcoreguidelines-init-variables]
        char *new_buf, *old_buf, *fixed;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:2313:18: warning: variable 'old_buf' is not initialized [cppcoreguidelines-init-variables]
        char *new_buf, *old_buf, *fixed;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:2313:28: warning: variable 'fixed' is not initialized [cppcoreguidelines-init-variables]
        char *new_buf, *old_buf, *fixed;
                                  ^
/datasets/git/apply.c:265:2: note: inferred assignment of ID-dependent member from ID-dependent variable reduced [altera-id-dependent-backward-branch]
        size_t nr;
        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:2325:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < fixed_preimage.nr; i++)
        ^
/datasets/git/apply.c:2325:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < fixed_preimage.nr; i++)
                    ^
/datasets/git/apply.c:2325:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < fixed_preimage.nr; i++)
                                               ^
                                                {
/datasets/git/apply.c:2340:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (postlen)
                    ^
                     {
/datasets/git/apply.c:2342:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/apply.c:2346:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = reduced = ctx = 0; i < postimage->nr; i++) {
                                    ^
/datasets/git/apply.c:2348:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(postimage->line[i].flag & LINE_COMMON)) {
                      ^
/datasets/git/apply.c:2350:4: warning: Call to function 'memmove' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memmove_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memmove(new_buf, old_buf, l_len);
                        ^~~~~~~
/datasets/git/apply.c:2350:4: note: Call to function 'memmove' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memmove_s' in case of C11
                        memmove(new_buf, old_buf, l_len);
                        ^~~~~~~
/datasets/git/apply.c:2360:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (ctx < preimage->nr &&
                ^
/datasets/git/apply.c:2360:10: warning: backward branch (while loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (ctx < preimage->nr &&
                       ^
/datasets/git/apply.c:2361:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       !(preimage->line[ctx].flag & LINE_COMMON)) {
                         ^
/datasets/git/apply.c:2377:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(new_buf, fixed, l_len);
                ^~~~~~
/datasets/git/apply.c:2377:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(new_buf, fixed, l_len);
                ^~~~~~
/datasets/git/apply.c:2386:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            : postimage->len < new_buf - postimage->buf)
                                                        ^
                                                         {
/datasets/git/apply.c:2398:9: warning: 3 adjacent parameters of 'line_by_line_fuzzy_match' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                    unsigned long current,
                                    ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:2398:23: note: the first parameter in the range is 'current'
                                    unsigned long current,
                                                  ^~~~~~~
/datasets/git/apply.c:2400:13: note: the last parameter in the range is 'preimage_limit'
                                    int preimage_limit)
                                        ^~~~~~~~~~~~~~
/datasets/git/apply.c:2399:9: note: 'unsigned long' and 'int' may be implicitly converted
                                    int current_lno,
                                    ^
/datasets/git/apply.c:2402:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/apply.c:2402:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/apply.c:2406:9: warning: variable 'extra_chars' is not initialized [cppcoreguidelines-init-variables]
        size_t extra_chars;
               ^
                           = 0
/datasets/git/apply.c:2407:8: warning: variable 'buf' is not initialized [cppcoreguidelines-init-variables]
        char *buf;
              ^
                  = NULL
/datasets/git/apply.c:2408:8: warning: variable 'preimage_eof' is not initialized [cppcoreguidelines-init-variables]
        char *preimage_eof;
              ^
                           = NULL
/datasets/git/apply.c:2409:8: warning: variable 'preimage_end' is not initialized [cppcoreguidelines-init-variables]
        char *preimage_end;
              ^
                           = NULL
/datasets/git/apply.c:2411:8: warning: variable 'fixed_buf' is not initialized [cppcoreguidelines-init-variables]
        char *fixed_buf;
              ^
                        = NULL
/datasets/git/apply.c:2412:9: warning: variable 'fixed_len' is not initialized [cppcoreguidelines-init-variables]
        size_t fixed_len;
               ^
                         = 0
/datasets/git/apply.c:2414:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < preimage_limit; i++) {
        ^
/datasets/git/apply.c:2419:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                      preimage->buf + preoff, prelen))
                                                                      ^
                                                                       {
/datasets/git/apply.c:2421:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (preimage->line[i].flag & LINE_COMMON)
                    ^
/datasets/git/apply.c:2421:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (preimage->line[i].flag & LINE_COMMON)
                                                         ^
                                                          {
/datasets/git/apply.c:2439:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for ( ; i < preimage->nr; i++)
        ^
/datasets/git/apply.c:2439:10: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for ( ; i < preimage->nr; i++)
                ^
/datasets/git/apply.c:2439:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for ( ; i < preimage->nr; i++)
                                      ^
                                       {
/datasets/git/apply.c:2442:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for ( ; buf < preimage_end; buf++)
        ^
/datasets/git/apply.c:2442:10: warning: backward branch (for loop) is ID-dependent due to variable reference to 'buf' and may cause performance degradation [altera-id-dependent-backward-branch]
        for ( ; buf < preimage_end; buf++)
                ^
/datasets/git/apply.c:2442:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for ( ; buf < preimage_end; buf++)
                                          ^
                                           {
/datasets/git/apply.c:2443:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!isspace(*buf))
                     ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/apply.c:2443:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!isspace(*buf))
                                   ^
                                    {
/datasets/git/apply.c:2463:12: warning: function 'match_fragment' has cognitive complexity of 47 (threshold 25) [readability-function-cognitive-complexity]
static int match_fragment(struct apply_state *state,
           ^
/datasets/git/apply.c:2478:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (preimage->nr + current_lno <= img->nr) {
        ^
/datasets/git/apply.c:2483:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (match_end && (preimage->nr + current_lno != img->nr))
                ^
/datasets/git/apply.c:2483:17: note: +1
                if (match_end && (preimage->nr + current_lno != img->nr))
                              ^
/datasets/git/apply.c:2485:9: note: +1, nesting level increased to 1
        } else if (state->ws_error_action == correct_ws_error &&
               ^
/datasets/git/apply.c:2485:56: note: +1
        } else if (state->ws_error_action == correct_ws_error &&
                                                              ^
/datasets/git/apply.c:2495:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/apply.c:2504:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (match_beginning && current_lno)
        ^
/datasets/git/apply.c:2504:22: note: +1
        if (match_beginning && current_lno)
                            ^
/datasets/git/apply.c:2508:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < preimage_limit; i++)
        ^
/datasets/git/apply.c:2509:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((img->line[current_lno + i].flag & LINE_PATCHED) ||
                ^
/datasets/git/apply.c:2509:56: note: +1
                if ((img->line[current_lno + i].flag & LINE_PATCHED) ||
                                                                     ^
/datasets/git/apply.c:2513:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (preimage_limit == preimage->nr) {
        ^
/datasets/git/apply.c:2521:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((match_end
                ^
/datasets/git/apply.c:2523:49: note: +1
                     : (current + preimage->len <= img->len)) &&
                                                              ^
/datasets/git/apply.c:2522:8: note: +2, including nesting penalty of 1, nesting level increased to 2
                     ? (current + preimage->len == img->len)
                     ^
/datasets/git/apply.c:2526:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/apply.c:2538:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < preimage_limit; i++)
                ^
/datasets/git/apply.c:2541:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for ( ; buf < buf_end; buf++)
                ^
/datasets/git/apply.c:2542:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!isspace(*buf))
                        ^
/datasets/git/apply.c:2544:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (buf == buf_end)
                ^
/datasets/git/apply.c:2553:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (state->ws_ignore_action == ignore_ws_change)
        ^
/datasets/git/apply.c:2557:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (state->ws_error_action != correct_ws_error)
        ^
/datasets/git/apply.c:2577:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < postimage->nr; i++) {
        ^
/datasets/git/apply.c:2578:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!(postimage->line[i].flag & LINE_COMMON))
                ^
/datasets/git/apply.c:2590:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < preimage_limit; i++) {
        ^
/datasets/git/apply.c:2614:47: note: +1
                match = (tgtfix.len == fixed.len - fixstart &&
                                                            ^
/datasets/git/apply.c:2619:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (preimage->line[i].flag & LINE_COMMON)
                ^
/datasets/git/apply.c:2623:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!match)
                ^
/datasets/git/apply.c:2637:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for ( ; i < preimage->nr; i++) {
        ^
/datasets/git/apply.c:2645:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (j = fixstart; j < fixed.len; j++)
                ^
/datasets/git/apply.c:2646:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!isspace(fixed.buf[j]))
                        ^
/datasets/git/apply.c:2658:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (postlen < postimage->len)
        ^
/datasets/git/apply.c:2468:6: warning: 2 adjacent parameters of 'match_fragment' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                          int current_lno,
                          ^~~~~~~~~~~~~~~~
/datasets/git/apply.c:2468:10: note: the first parameter in the range is 'current_lno'
                          int current_lno,
                              ^~~~~~~~~~~
/datasets/git/apply.c:2469:15: note: the last parameter in the range is 'ws_rule'
                          unsigned ws_rule,
                                   ^~~~~~~
/datasets/git/apply.c:2469:6: note: 'int' and 'unsigned int' may be implicitly converted
                          unsigned ws_rule,
                          ^
/datasets/git/apply.c:2470:6: warning: 2 adjacent parameters of 'match_fragment' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                          int match_beginning, int match_end)
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:2470:10: note: the first parameter in the range is 'match_beginning'
                          int match_beginning, int match_end)
                              ^~~~~~~~~~~~~~~
/datasets/git/apply.c:2470:31: note: the last parameter in the range is 'match_end'
                          int match_beginning, int match_end)
                                                   ^~~~~~~~~
/datasets/git/apply.c:2472:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/apply.c:2472:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/apply.c:2473:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *fixed_buf, *buf, *orig, *target;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:2473:8: warning: variable 'fixed_buf' is not initialized [cppcoreguidelines-init-variables]
        char *fixed_buf, *buf, *orig, *target;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:2473:20: warning: variable 'buf' is not initialized [cppcoreguidelines-init-variables]
        char *fixed_buf, *buf, *orig, *target;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:2473:26: warning: variable 'orig' is not initialized [cppcoreguidelines-init-variables]
        char *fixed_buf, *buf, *orig, *target;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:2473:33: warning: variable 'target' is not initialized [cppcoreguidelines-init-variables]
        char *fixed_buf, *buf, *orig, *target;
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:2475:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t fixed_len, postlen;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:2475:9: warning: variable 'fixed_len' is not initialized [cppcoreguidelines-init-variables]
        size_t fixed_len, postlen;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:2475:20: warning: variable 'postlen' is not initialized [cppcoreguidelines-init-variables]
        size_t fixed_len, postlen;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:2476:6: warning: variable 'preimage_limit' is not initialized [cppcoreguidelines-init-variables]
        int preimage_limit;
            ^
                           = 0
/datasets/git/apply.c:2482:20: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                preimage_limit = preimage->nr;
                                 ^
/datasets/git/apply.c:2483:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (match_end && (preimage->nr + current_lno != img->nr))
                                                                         ^
                                                                          {
/datasets/git/apply.c:2486:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                   (ws_rule & WS_BLANK_AT_EOF)) {
                    ^
/datasets/git/apply.c:2494:20: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                preimage_limit = img->nr - current_lno;
                                 ^
/datasets/git/apply.c:2504:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (match_beginning && current_lno)
                                           ^
                                            {
/datasets/git/apply.c:2508:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < preimage_limit; i++)
        ^
/datasets/git/apply.c:2508:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'preimage_limit' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < preimage_limit; i++)
                    ^
/datasets/git/apply.c:2508:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < preimage_limit; i++)
                                            ^
                                             {
/datasets/git/apply.c:2509:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((img->line[current_lno + i].flag & LINE_PATCHED) ||
                     ^
/datasets/git/apply.c:2510:67: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    (preimage->line[i].hash != img->line[current_lno + i].hash))
                                                                                ^
                                                                                 {
/datasets/git/apply.c:2524:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !memcmp(img->buf + current, preimage->buf, preimage->len))
                                                                              ^
                                                                               {
/datasets/git/apply.c:2534:9: warning: variable 'buf_end' is not initialized [cppcoreguidelines-init-variables]
                char *buf_end;
                      ^
                              = NULL
/datasets/git/apply.c:2538:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < preimage_limit; i++)
                ^
/datasets/git/apply.c:2538:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'preimage_limit' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < preimage_limit; i++)
                            ^
/datasets/git/apply.c:2538:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < preimage_limit; i++)
                                                    ^
                                                     {
/datasets/git/apply.c:2541:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for ( ; buf < buf_end; buf++)
                ^
/datasets/git/apply.c:2541:11: warning: backward branch (for loop) is ID-dependent due to variable reference to 'buf' and may cause performance degradation [altera-id-dependent-backward-branch]
                for ( ; buf < buf_end; buf++)
                        ^
/datasets/git/apply.c:2541:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for ( ; buf < buf_end; buf++)
                                             ^
                                              {
/datasets/git/apply.c:2542:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!isspace(*buf))
                             ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/apply.c:2542:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!isspace(*buf))
                                           ^
                                            {
/datasets/git/apply.c:2544:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (buf == buf_end)
                                   ^
                                    {
/datasets/git/apply.c:2553:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (state->ws_ignore_action == ignore_ws_change)
                                                        ^
                                                         {
/datasets/git/apply.c:2557:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (state->ws_error_action != correct_ws_error)
                                                       ^
                                                        {
/datasets/git/apply.c:2577:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < postimage->nr; i++) {
        ^
/datasets/git/apply.c:2476:2: note: inferred assignment of ID-dependent value from ID-dependent member nr [altera-id-dependent-backward-branch]
        int preimage_limit;
        ^
/datasets/git/apply.c:2577:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < postimage->nr; i++) {
                    ^
/datasets/git/apply.c:2578:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(postimage->line[i].flag & LINE_COMMON))
                      ^
/datasets/git/apply.c:2578:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(postimage->line[i].flag & LINE_COMMON))
                                                             ^
                                                              {
/datasets/git/apply.c:2590:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < preimage_limit; i++) {
        ^
/datasets/git/apply.c:265:2: note: inferred assignment of ID-dependent member from ID-dependent variable reduced [altera-id-dependent-backward-branch]
        size_t nr;
        ^
/datasets/git/apply.c:2590:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'preimage_limit' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < preimage_limit; i++) {
                    ^
/datasets/git/apply.c:2595:7: warning: variable 'match' is not initialized [cppcoreguidelines-init-variables]
                int match;
                    ^
                          = 0
/datasets/git/apply.c:2598:29: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                ws_fix_copy(&fixed, orig, oldlen, ws_rule, NULL);
                                          ^
/datasets/git/apply.c:2602:32: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                ws_fix_copy(&tgtfix, target, tgtlen, ws_rule, NULL);
                                             ^
/datasets/git/apply.c:2619:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (preimage->line[i].flag & LINE_COMMON)
                    ^
/datasets/git/apply.c:2619:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (preimage->line[i].flag & LINE_COMMON)
                                                         ^
                                                          {
/datasets/git/apply.c:2623:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!match)
                           ^
                            {
/datasets/git/apply.c:2637:10: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for ( ; i < preimage->nr; i++) {
                ^
/datasets/git/apply.c:2640:7: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
                int j;
                    ^
                      = 0
/datasets/git/apply.c:2640:7: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/apply.c:2643:29: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                ws_fix_copy(&fixed, orig, oldlen, ws_rule, NULL);
                                          ^
/datasets/git/apply.c:2645:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (j = fixstart; j < fixed.len; j++)
                ^
/datasets/git/apply.c:2645:12: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                for (j = fixstart; j < fixed.len; j++)
                         ^
/datasets/git/apply.c:2645:22: warning: backward branch (for loop) is ID-dependent due to variable reference to 'j' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (j = fixstart; j < fixed.len; j++)
                                   ^
/datasets/git/apply.c:2645:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (j = fixstart; j < fixed.len; j++)
                                                      ^
                                                       {
/datasets/git/apply.c:2646:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!isspace(fixed.buf[j]))
                             ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/apply.c:2646:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!isspace(fixed.buf[j]))
                                                   ^
                                                    {
/datasets/git/apply.c:2658:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (postlen < postimage->len)
                                     ^
                                      {
/datasets/git/apply.c:2673:7: warning: 2 adjacent parameters of 'find_pos' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                    int line,
                    ^~~~~~~~~
/datasets/git/apply.c:2673:11: note: the first parameter in the range is 'line'
                    int line,
                        ^~~~
/datasets/git/apply.c:2674:16: note: the last parameter in the range is 'ws_rule'
                    unsigned ws_rule,
                             ^~~~~~~
/datasets/git/apply.c:2674:7: note: 'int' and 'unsigned int' may be implicitly converted
                    unsigned ws_rule,
                    ^
/datasets/git/apply.c:2677:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/apply.c:2677:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/apply.c:2678:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned long backwards, forwards, current;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:2678:16: warning: variable 'backwards' is not initialized [cppcoreguidelines-init-variables]
        unsigned long backwards, forwards, current;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:2678:27: warning: variable 'forwards' is not initialized [cppcoreguidelines-init-variables]
        unsigned long backwards, forwards, current;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:2678:37: warning: variable 'current' is not initialized [cppcoreguidelines-init-variables]
        unsigned long backwards, forwards, current;
                                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:2679:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int backwards_lno, forwards_lno, current_lno;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:2679:6: warning: variable 'backwards_lno' is not initialized [cppcoreguidelines-init-variables]
        int backwards_lno, forwards_lno, current_lno;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:2679:21: warning: variable 'forwards_lno' is not initialized [cppcoreguidelines-init-variables]
        int backwards_lno, forwards_lno, current_lno;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:2679:35: warning: variable 'current_lno' is not initialized [cppcoreguidelines-init-variables]
        int backwards_lno, forwards_lno, current_lno;
                                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:2688:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            img->nr - preimage->nr != 0)
                                        ^
                                         {
/datasets/git/apply.c:2696:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (match_beginning)
                            ^
                             {
/datasets/git/apply.c:2698:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (match_end)
                           ^
                            {
/datasets/git/apply.c:2699:10: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                line = img->nr - preimage->nr;
                       ^
/datasets/git/apply.c:2706:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((size_t) line > img->nr)
                                    ^
                                     {
/datasets/git/apply.c:2707:10: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                line = img->nr;
                       ^
/datasets/git/apply.c:2710:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < line; i++)
        ^
/datasets/git/apply.c:2710:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'line' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < line; i++)
                    ^
/datasets/git/apply.c:2710:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < line; i++)
                                  ^
                                   {
/datasets/git/apply.c:2723:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; ; i++) {
        ^
/datasets/git/apply.c:2726:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                   match_beginning, match_end))
                                                               ^
                                                                {
/datasets/git/apply.c:2730:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (backwards_lno == 0 && forwards_lno == img->nr)
                                                                  ^
                                                                   {
/datasets/git/apply.c:2733:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (i & 1) {
                    ^
/datasets/git/apply.c:2785:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, nr;
        ^~~~~~~~~~
/datasets/git/apply.c:2785:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, nr;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:2785:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/apply.c:2785:9: warning: variable 'nr' is not initialized [cppcoreguidelines-init-variables]
        int i, nr;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:2785:9: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/apply.c:2786:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t remove_count, insert_count, applied_at = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:2786:9: warning: variable 'remove_count' is not initialized [cppcoreguidelines-init-variables]
        size_t remove_count, insert_count, applied_at = 0;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:2786:23: warning: variable 'insert_count' is not initialized [cppcoreguidelines-init-variables]
        size_t remove_count, insert_count, applied_at = 0;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:2787:8: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        char *result;
              ^
                     = NULL
/datasets/git/apply.c:2788:6: warning: variable 'preimage_limit' is not initialized [cppcoreguidelines-init-variables]
        int preimage_limit;
            ^
                           = 0
/datasets/git/apply.c:2799:19: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        preimage_limit = preimage->nr;
                         ^
/datasets/git/apply.c:2800:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (preimage_limit > img->nr - applied_pos)
                                                   ^
                                                    {
/datasets/git/apply.c:2801:20: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                preimage_limit = img->nr - applied_pos;
                                 ^
/datasets/git/apply.c:2803:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < applied_pos; i++)
        ^
/datasets/git/apply.c:2803:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < applied_pos; i++)
                                         ^
                                          {
/datasets/git/apply.c:2807:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < preimage_limit; i++)
        ^
/datasets/git/apply.c:2807:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'preimage_limit' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < preimage_limit; i++)
                    ^
/datasets/git/apply.c:2807:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < preimage_limit; i++)
                                            ^
                                             {
/datasets/git/apply.c:2813:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(result, img->buf, applied_at);
        ^~~~~~
/datasets/git/apply.c:2813:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(result, img->buf, applied_at);
        ^~~~~~
/datasets/git/apply.c:2814:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(result + applied_at, postimage->buf, postimage->len);
        ^~~~~~
/datasets/git/apply.c:2814:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(result + applied_at, postimage->buf, postimage->len);
        ^~~~~~
/datasets/git/apply.c:2815:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(result + applied_at + postimage->len,
        ^~~~~~
/datasets/git/apply.c:2815:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(result + applied_at + postimage->len,
        ^~~~~~
/datasets/git/apply.c:2824:7: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        nr = img->nr + postimage->nr - preimage_limit;
             ^
/datasets/git/apply.c:2833:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (preimage_limit != postimage->nr)
                                            ^
                                             {
/datasets/git/apply.c:2838:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!state->allow_overlap)
                                  ^
                                   {
/datasets/git/apply.c:2839:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < postimage->nr; i++)
                ^
/datasets/git/apply.c:2839:15: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < postimage->nr; i++)
                            ^
/datasets/git/apply.c:2839:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < postimage->nr; i++)
                                                   ^
                                                    {
/datasets/git/apply.c:2840:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        img->line[applied_pos + i].flag |= LINE_PATCHED;
                        ^
/datasets/git/apply.c:2849:12: warning: function 'apply_one_fragment' has cognitive complexity of 100 (threshold 25) [readability-function-cognitive-complexity]
static int apply_one_fragment(struct apply_state *state,
           ^
/datasets/git/apply.c:2873:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (size > 0) {
        ^
/datasets/git/apply.c:2881:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!len)
                ^
/datasets/git/apply.c:2892:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (len < size && patch[len] == '\\')
                ^
/datasets/git/apply.c:2892:18: note: +1
                if (len < size && patch[len] == '\\')
                               ^
/datasets/git/apply.c:2895:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (state->apply_in_reverse) {
                ^
/datasets/git/apply.c:2896:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (first == '-')
                        ^
/datasets/git/apply.c:2898:9: note: +1, nesting level increased to 3
                        else if (first == '+')
                             ^
/datasets/git/apply.c:2902:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                switch (first) {
                ^
/datasets/git/apply.c:2905:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (plen < 0)
                        ^
/datasets/git/apply.c:2915:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (plen && (ws_rule & WS_BLANK_AT_EOF) &&
                        ^
/datasets/git/apply.c:2915:44: note: +1
                        if (plen && (ws_rule & WS_BLANK_AT_EOF) &&
                                                                ^
/datasets/git/apply.c:2922:25: note: +3, including nesting penalty of 2, nesting level increased to 3
                                      (first == ' ' ? LINE_COMMON : 0));
                                                    ^
/datasets/git/apply.c:2924:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (first == '-')
                        ^
/datasets/git/apply.c:2929:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (first == '+' && state->no_add)
                        ^
/datasets/git/apply.c:2929:21: note: +1
                        if (first == '+' && state->no_add)
                                         ^
/datasets/git/apply.c:2933:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (first != '+' ||
                        ^
/datasets/git/apply.c:2934:33: note: +1
                            !state->whitespace_error ||
                                                     ^
/datasets/git/apply.c:2938:4: note: +1, nesting level increased to 3
                        else {
                        ^
/datasets/git/apply.c:2942:25: note: +3, including nesting penalty of 2, nesting level increased to 3
                                      (first == '+' ? 0 : LINE_COMMON));
                                                    ^
/datasets/git/apply.c:2943:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (first == '+' &&
                        ^
/datasets/git/apply.c:2944:36: note: +1
                            (ws_rule & WS_BLANK_AT_EOF) &&
                                                        ^
/datasets/git/apply.c:2952:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (state->apply_verbosity > verbosity_normal)
                        ^
/datasets/git/apply.c:2955:4: note: +1
                        goto out;
                        ^
/datasets/git/apply.c:2957:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (added_blank_line) {
                ^
/datasets/git/apply.c:2958:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!new_blank_lines_at_end)
                        ^
/datasets/git/apply.c:2962:8: note: +1, nesting level increased to 2
                else if (is_blank_context)
                     ^
/datasets/git/apply.c:2964:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/apply.c:2970:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (inaccurate_eof &&
        ^
/datasets/git/apply.c:2972:23: note: +1
            newlines.len > 0 && newlines.buf[newlines.len - 1] == '\n') {
                             ^
/datasets/git/apply.c:2994:35: note: +1
        match_beginning = (!frag->oldpos ||
                                         ^
/datasets/git/apply.c:2995:26: note: +1
                           (frag->oldpos == 1 && !state->unidiff_zero));
                                              ^
/datasets/git/apply.c:3003:35: note: +1
        match_end = !state->unidiff_zero && !trailing;
                                         ^
/datasets/git/apply.c:3005:21: note: +1, including nesting penalty of 0, nesting level increased to 1
        pos = frag->newpos ? (frag->newpos - 1) : 0;
                           ^
/datasets/git/apply.c:3013:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (;;) {
        ^
/datasets/git/apply.c:3018:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (applied_pos >= 0)
                ^
/datasets/git/apply.c:3022:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((leading <= state->p_context) && (trailing <= state->p_context))
                ^
/datasets/git/apply.c:3022:37: note: +1
                if ((leading <= state->p_context) && (trailing <= state->p_context))
                                                  ^
/datasets/git/apply.c:3024:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (match_beginning || match_end) {
                ^
/datasets/git/apply.c:3024:23: note: +1
                if (match_beginning || match_end) {
                                    ^
/datasets/git/apply.c:3034:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (leading >= trailing) {
                ^
/datasets/git/apply.c:3040:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (trailing > leading) {
                ^
/datasets/git/apply.c:3047:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (applied_pos >= 0) {
        ^
/datasets/git/apply.c:3048:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (new_blank_lines_at_end &&
                ^
/datasets/git/apply.c:3050:35: note: +1
                    (ws_rule & WS_BLANK_AT_EOF) &&
                                                ^
/datasets/git/apply.c:3054:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (state->ws_error_action == correct_ws_error) {
                        ^
/datasets/git/apply.c:3055:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                while (new_blank_lines_at_end--)
                                ^
/datasets/git/apply.c:3065:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (state->ws_error_action == die_on_ws_error)
                        ^
/datasets/git/apply.c:3069:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (state->apply_verbosity > verbosity_normal && applied_pos != pos) {
                ^
/datasets/git/apply.c:3069:49: note: +1
                if (state->apply_verbosity > verbosity_normal && applied_pos != pos) {
                                                              ^
/datasets/git/apply.c:3071:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (state->apply_in_reverse)
                        ^
/datasets/git/apply.c:3084:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((leading != frag->leading ||
                ^
/datasets/git/apply.c:3085:36: note: +1
                     trailing != frag->trailing) && state->apply_verbosity > verbosity_silent)
                                                 ^
/datasets/git/apply.c:3084:33: note: +1
                if ((leading != frag->leading ||
                                              ^
/datasets/git/apply.c:3090:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/apply.c:3091:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (state->apply_verbosity > verbosity_normal)
                ^
/datasets/git/apply.c:2851:10: warning: 3 adjacent parameters of 'apply_one_fragment' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                              int inaccurate_eof, unsigned ws_rule,
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:2851:14: note: the first parameter in the range is 'inaccurate_eof'
                              int inaccurate_eof, unsigned ws_rule,
                                  ^~~~~~~~~~~~~~
/datasets/git/apply.c:2852:14: note: the last parameter in the range is 'nth_fragment'
                              int nth_fragment)
                                  ^~~~~~~~~~~~
/datasets/git/apply.c:2851:30: note: 'int' and 'unsigned int' may be implicitly converted
                              int inaccurate_eof, unsigned ws_rule,
                                                  ^
/datasets/git/apply.c:2854:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int match_beginning, match_end;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:2854:6: warning: variable 'match_beginning' is not initialized [cppcoreguidelines-init-variables]
        int match_beginning, match_end;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:2854:23: warning: variable 'match_end' is not initialized [cppcoreguidelines-init-variables]
        int match_beginning, match_end;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:2857:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *old, *oldlines;
        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:2857:8: warning: variable 'old' is not initialized [cppcoreguidelines-init-variables]
        char *old, *oldlines;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:2857:14: warning: variable 'oldlines' is not initialized [cppcoreguidelines-init-variables]
        char *old, *oldlines;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:2862:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned long leading, trailing;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:2862:16: warning: variable 'leading' is not initialized [cppcoreguidelines-init-variables]
        unsigned long leading, trailing;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:2862:25: warning: variable 'trailing' is not initialized [cppcoreguidelines-init-variables]
        unsigned long leading, trailing;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:2863:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int pos, applied_pos;
        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:2856:2: note: inferred assignment of ID-dependent value from ID-dependent member size [altera-id-dependent-backward-branch]
        int size = frag->size;
        ^
/datasets/git/apply.c:2863:6: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        int pos, applied_pos;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:2863:11: warning: variable 'applied_pos' is not initialized [cppcoreguidelines-init-variables]
        int pos, applied_pos;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:2867:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&preimage, 0, sizeof(preimage));
        ^~~~~~
/datasets/git/apply.c:2867:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&preimage, 0, sizeof(preimage));
        ^~~~~~
/datasets/git/apply.c:2868:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&postimage, 0, sizeof(postimage));
        ^~~~~~
/datasets/git/apply.c:2868:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&postimage, 0, sizeof(postimage));
        ^~~~~~
/datasets/git/apply.c:2873:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (size > 0) {
        ^
/datasets/git/apply.c:2873:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'size' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (size > 0) {
               ^
/datasets/git/apply.c:2874:8: warning: variable 'first' is not initialized [cppcoreguidelines-init-variables]
                char first;
                     ^
                           = 0
/datasets/git/apply.c:2875:13: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int len = linelen(patch, size);
                          ^
/datasets/git/apply.c:2876:7: warning: variable 'plen' is not initialized [cppcoreguidelines-init-variables]
                int plen;
                    ^
                         = 0
/datasets/git/apply.c:2879:10: warning: variable 'start' is not initialized [cppcoreguidelines-init-variables]
                size_t start;
                       ^
                             = 0
/datasets/git/apply.c:2881:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!len)
                         ^
                          {
/datasets/git/apply.c:2892:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (len < size && patch[len] == '\\')
                                                     ^
                                                      {
/datasets/git/apply.c:2896:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (first == '-')
                                         ^
                                          {
/datasets/git/apply.c:2898:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (first == '+')
                                              ^
                                               {
/datasets/git/apply.c:2905:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (plen < 0)
                                     ^
                                      {
/datasets/git/apply.c:2915:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (plen && (ws_rule & WS_BLANK_AT_EOF) &&
                                     ^
/datasets/git/apply.c:2916:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            ws_blank_line(patch + 1, plen, ws_rule))
                                                                    ^
                                                                     {
/datasets/git/apply.c:2920:4: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memcpy(old, patch + 1, plen);
                        ^~~~~~
/datasets/git/apply.c:2920:4: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                        memcpy(old, patch + 1, plen);
                        ^~~~~~
/datasets/git/apply.c:2924:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (first == '-')
                                         ^
                                          {
/datasets/git/apply.c:2929:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (first == '+' && state->no_add)
                                                          ^
                                                           {
/datasets/git/apply.c:2944:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            (ws_rule & WS_BLANK_AT_EOF) &&
                             ^
/datasets/git/apply.c:2945:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            ws_blank_line(patch + 1, plen, ws_rule))
                                                                    ^
                                                                     {
/datasets/git/apply.c:2952:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (state->apply_verbosity > verbosity_normal)
                                                                      ^
                                                                       {
/datasets/git/apply.c:2958:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!new_blank_lines_at_end)
                                                    ^
                                                     {
/datasets/git/apply.c:2962:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (is_blank_context)
                                          ^
                                           {
/datasets/git/apply.c:2964:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/apply.c:2976:3: warning: Dereference of null pointer [clang-analyzer-core.NullDereference]
                postimage.line_allocated[postimage.nr - 1].len--;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:2868:2: note: Null pointer value stored to 'postimage.line_allocated'
        memset(&postimage, 0, sizeof(postimage));
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:2873:9: note: Assuming 'size' is > 0
        while (size > 0) {
               ^~~~~~~~
/datasets/git/apply.c:2873:2: note: Loop condition is true.  Entering loop body
        while (size > 0) {
        ^
/datasets/git/apply.c:2881:7: note: Assuming 'len' is not equal to 0
                if (!len)
                    ^~~~
/datasets/git/apply.c:2881:3: note: Taking false branch
                if (!len)
                ^
/datasets/git/apply.c:2892:7: note: Assuming 'len' is >= 'size'
                if (len < size && patch[len] == '\\')
                    ^~~~~~~~~~
/datasets/git/apply.c:2892:18: note: Left side of '&&' is false
                if (len < size && patch[len] == '\\')
                               ^
/datasets/git/apply.c:2895:7: note: Assuming field 'apply_in_reverse' is 0
                if (state->apply_in_reverse) {
                    ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:2895:3: note: Taking false branch
                if (state->apply_in_reverse) {
                ^
/datasets/git/apply.c:2902:3: note: Control jumps to 'case 45:'  at line 2919
                switch (first) {
                ^
/datasets/git/apply.c:2922:12: note: '?' condition is false
                                      (first == ' ' ? LINE_COMMON : 0));
                                       ^
/datasets/git/apply.c:2924:4: note: Taking true branch
                        if (first == '-')
                        ^
/datasets/git/apply.c:2925:5: note:  Execution continues on line 2957
                                break;
                                ^
/datasets/git/apply.c:2957:7: note: 'added_blank_line' is 0
                if (added_blank_line) {
                    ^~~~~~~~~~~~~~~~
/datasets/git/apply.c:2957:3: note: Taking false branch
                if (added_blank_line) {
                ^
/datasets/git/apply.c:2962:12: note: 'is_blank_context' is 0
                else if (is_blank_context)
                         ^~~~~~~~~~~~~~~~
/datasets/git/apply.c:2962:8: note: Taking false branch
                else if (is_blank_context)
                     ^
/datasets/git/apply.c:2873:9: note: 'size' is <= 0
        while (size > 0) {
               ^~~~
/datasets/git/apply.c:2873:2: note: Loop condition is false. Execution continues on line 2970
        while (size > 0) {
        ^
/datasets/git/apply.c:2970:6: note: Assuming 'inaccurate_eof' is not equal to 0
        if (inaccurate_eof &&
            ^~~~~~~~~~~~~~
/datasets/git/apply.c:2970:6: note: Left side of '&&' is true
/datasets/git/apply.c:2971:6: note: 'old' is > 'oldlines'
            old > oldlines && old[-1] == '\n' &&
            ^~~
/datasets/git/apply.c:2970:6: note: Left side of '&&' is true
        if (inaccurate_eof &&
            ^
/datasets/git/apply.c:2971:24: note: Assuming the condition is true
            old > oldlines && old[-1] == '\n' &&
                              ^~~~~~~~~~~~~~~
/datasets/git/apply.c:2970:6: note: Left side of '&&' is true
        if (inaccurate_eof &&
            ^
/datasets/git/apply.c:2972:6: note: Assuming field 'len' is > 0
            newlines.len > 0 && newlines.buf[newlines.len - 1] == '\n') {
            ^~~~~~~~~~~~~~~~
/datasets/git/apply.c:2970:6: note: Left side of '&&' is true
        if (inaccurate_eof &&
            ^
/datasets/git/apply.c:2972:26: note: Assuming the condition is true
            newlines.len > 0 && newlines.buf[newlines.len - 1] == '\n') {
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:2970:2: note: Taking true branch
        if (inaccurate_eof &&
        ^
/datasets/git/apply.c:2976:3: note: Dereference of null pointer
                postimage.line_allocated[postimage.nr - 1].len--;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:3005:23: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        pos = frag->newpos ? (frag->newpos - 1) : 0;
                             ^
/datasets/git/apply.c:3013:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/apply.c:3018:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (applied_pos >= 0)
                                     ^
                                      {
/datasets/git/apply.c:3022:71: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((leading <= state->p_context) && (trailing <= state->p_context))
                                                                                    ^
                                                                                     {
/datasets/git/apply.c:3050:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (ws_rule & WS_BLANK_AT_EOF) &&
                     ^
/datasets/git/apply.c:3055:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                while (new_blank_lines_at_end--)
                                ^
/datasets/git/apply.c:3055:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                while (new_blank_lines_at_end--)
                                                                ^
                                                                 {
/datasets/git/apply.c:3065:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (state->ws_error_action == die_on_ws_error)
                                                                      ^
                                                                       {
/datasets/git/apply.c:3071:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (state->apply_in_reverse)
                                                    ^
                                                     {
/datasets/git/apply.c:3085:81: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                     trailing != frag->trailing) && state->apply_verbosity > verbosity_silent)
                                                                                              ^
                                                                                               {
/datasets/git/apply.c:3091:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (state->apply_verbosity > verbosity_normal)
                                                              ^
                                                               {
/datasets/git/apply.c:3110:16: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        unsigned long len;
                      ^
                          = 0
/datasets/git/apply.c:3111:8: warning: variable 'dst' is not initialized [cppcoreguidelines-init-variables]
        void *dst;
              ^
                  = NULL
/datasets/git/apply.c:3113:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!fragment)
                      ^
                       {
/datasets/git/apply.c:3121:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!fragment->next)
                                    ^
                                     {
/datasets/git/apply.c:3132:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!dst)
                         ^
                          {
/datasets/git/apply.c:3168:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            get_oid_hex(patch->new_oid_prefix, &oid))
                                                     ^
                                                      {
/datasets/git/apply.c:3179:7: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (strcmp(oid_to_hex(&oid), patch->old_oid_prefix))
                    ^
                                                                    != 0
/datasets/git/apply.c:3179:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strcmp(oid_to_hex(&oid), patch->old_oid_prefix))
                                                                    ^
                                                                     {
/datasets/git/apply.c:3187:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (img->len)
                             ^
                              {
/datasets/git/apply.c:3200:20: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
                enum object_type type;
                                 ^
/datasets/git/apply.c:3201:17: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
                unsigned long size;
                              ^
                                   = 0
/datasets/git/apply.c:3202:9: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
                char *result;
                      ^
                             = NULL
/datasets/git/apply.c:3205:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!result)
                            ^
                             {
/datasets/git/apply.c:3218:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (apply_binary_fragment(state, img, patch))
                                                             ^
                                                              {
/datasets/git/apply.c:3225:7: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (strcmp(oid_to_hex(&oid), patch->new_oid_prefix))
                    ^
                                                                    != 0
/datasets/git/apply.c:3225:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strcmp(oid_to_hex(&oid), patch->new_oid_prefix))
                                                                    ^
                                                                     {
/datasets/git/apply.c:3241:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (patch->is_binary)
                             ^
                              {
/datasets/git/apply.c:3244:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (frag) {
        ^
/datasets/git/apply.c:3244:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'frag' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (frag) {
               ^
/datasets/git/apply.c:3246:44: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                if (apply_one_fragment(state, img, frag, inaccurate_eof, ws_rule, nth)) {
                                                         ^
/datasets/git/apply.c:3248:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!state->apply_with_reject)
                                                      ^
                                                       {
/datasets/git/apply.c:3259:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (S_ISGITLINK(mode)) {
            ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/apply.c:3260:20: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                strbuf_grow(buf, 100);
                                 ^
/datasets/git/apply.c:3263:20: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
                enum object_type type;
                                 ^
/datasets/git/apply.c:3264:17: warning: variable 'sz' is not initialized [cppcoreguidelines-init-variables]
                unsigned long sz;
                              ^
                                 = 0
/datasets/git/apply.c:3264:17: warning: variable name 'sz' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/apply.c:3265:9: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
                char *result;
                      ^
                             = NULL
/datasets/git/apply.c:3268:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!result)
                            ^
                             {
/datasets/git/apply.c:3276:59: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static int read_file_or_gitlink(const struct cache_entry *ce, struct strbuf *buf)
                                                          ^
/datasets/git/apply.c:3278:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ce)
                ^
                 {
/datasets/git/apply.c:3285:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/apply.c:3287:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!name)
                  ^
                   {
/datasets/git/apply.c:3291:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (item)
                 ^
                  {
/datasets/git/apply.c:3314:18: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
        return patch == PATH_TO_BE_DELETED;
                        ^
/datasets/git/apply.c:3309:29: note: expanded from macro 'PATH_TO_BE_DELETED'
#define PATH_TO_BE_DELETED ((struct patch *) -2)
                            ^
/datasets/git/apply.c:3319:18: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
        return patch == PATH_WAS_DELETED;
                        ^
/datasets/git/apply.c:3310:27: note: expanded from macro 'PATH_WAS_DELETED'
#define PATH_WAS_DELETED ((struct patch *) -1)
                          ^
/datasets/git/apply.c:3324:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/apply.c:3342:16: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
                item->util = PATH_WAS_DELETED;
                             ^
/datasets/git/apply.c:3310:27: note: expanded from macro 'PATH_WAS_DELETED'
#define PATH_WAS_DELETED ((struct patch *) -1)
                          ^
/datasets/git/apply.c:3346:57: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
static void prepare_fn_table(struct apply_state *state, struct patch *patch)
                                                        ^
/datasets/git/apply.c:3351:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (patch) {
        ^
/datasets/git/apply.c:3351:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'patch' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (patch) {
               ^
/datasets/git/apply.c:3353:29: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
                        struct string_list_item *item;
                                                 ^
                                                      = NULL
/datasets/git/apply.c:3355:17: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
                        item->util = PATH_TO_BE_DELETED;
                                     ^
/datasets/git/apply.c:3309:29: note: expanded from macro 'PATH_TO_BE_DELETED'
#define PATH_TO_BE_DELETED ((struct patch *) -2)
                            ^
/datasets/git/apply.c:3362:27: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                           struct cache_entry *ce, struct stat *st)
                                               ^
/datasets/git/apply.c:3362:44: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                           struct cache_entry *ce, struct stat *st)
                                                                ^
/datasets/git/apply.c:3369:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            lstat(ce->name, st))
                                ^
                                 {
/datasets/git/apply.c:3378:16: warning: variable 'previous' is not initialized [cppcoreguidelines-init-variables]
        struct patch *previous;
                      ^
                               = NULL
/datasets/git/apply.c:3381:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (patch->is_copy || patch->is_rename)
                                               ^
                                                {
/datasets/git/apply.c:3385:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!previous)
                      ^
                       {
/datasets/git/apply.c:3388:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (to_be_deleted(previous))
                                    ^
                                     {
/datasets/git/apply.c:3391:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (was_deleted(previous))
                                  ^
                                   {
/datasets/git/apply.c:3398:36: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                              const struct cache_entry *ce,
                                                        ^
/datasets/git/apply.c:3399:23: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                              struct stat *st)
                                           ^
/datasets/git/apply.c:3401:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (S_ISGITLINK(ce->ce_mode)) {
            ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/apply.c:3402:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!S_ISDIR(st->st_mode))
                                          ^
                                           {
/datasets/git/apply.c:3407:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                             CE_MATCH_IGNORE_VALID | CE_MATCH_IGNORE_SKIP_WORKTREE);
                             ^
/datasets/git/./refs/../cache.h:879:32: note: expanded from macro 'CE_MATCH_IGNORE_VALID'
#define CE_MATCH_IGNORE_VALID           01
                                        ^~
/datasets/git/apply.c:3410:1: warning: replace macro with enum [modernize-macro-to-enum]
#define SUBMODULE_PATCH_WITHOUT_INDEX 1
^~~~~~~~
                                      =
/datasets/git/apply.c:3410:9: warning: macro 'SUBMODULE_PATCH_WITHOUT_INDEX' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define SUBMODULE_PATCH_WITHOUT_INDEX 1
        ^
/datasets/git/apply.c:3414:35: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                             const struct cache_entry *ce,
                                                       ^
/datasets/git/apply.c:3415:22: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                             struct stat *st,
                                          ^
/datasets/git/apply.c:3421:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (read_file_or_gitlink(ce, buf))
                                                  ^
                                                   {
/datasets/git/apply.c:3424:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (S_ISGITLINK(expected_mode)) {
                    ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/apply.c:3425:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ce)
                               ^
                                {
/datasets/git/apply.c:3427:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                        else
                        ^~~~
                                                        return SUBMODULE_PATCH_WITHOUT_INDEX
/datasets/git/apply.c:3427:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:3429:45: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                } else if (has_symlink_leading_path(name, strlen(name))) {
                                                          ^
/datasets/git/apply.c:3432:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (read_old_data(st, patch, name, buf))
                                                                ^
                                                                 {
/datasets/git/apply.c:3448:39: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                         struct patch *patch, struct stat *st,
                                                           ^
/datasets/git/apply.c:3449:31: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                         const struct cache_entry *ce)
                                                   ^
/datasets/git/apply.c:3452:9: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        size_t len;
               ^
                   = 0
/datasets/git/apply.c:3453:8: warning: variable 'img' is not initialized [cppcoreguidelines-init-variables]
        char *img;
              ^
                  = NULL
/datasets/git/apply.c:3454:16: warning: variable 'previous' is not initialized [cppcoreguidelines-init-variables]
        struct patch *previous;
                      ^
                               = NULL
/datasets/git/apply.c:3455:6: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int status;
            ^
                   = 0
/datasets/git/apply.c:3458:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (status)
                   ^
                    {
/datasets/git/apply.c:3467:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (status < 0)
                               ^
                                {
/datasets/git/apply.c:3469:3: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                else if (status == SUBMODULE_PATCH_WITHOUT_INDEX) {
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:3490:16: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size;
                      ^
                           = 0
/datasets/git/apply.c:3491:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/apply.c:3496:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!image->buf || type != OBJ_BLOB)
                                            ^
                                             {
/datasets/git/apply.c:3510:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        mmfile_t base_file, our_file, their_file;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:3512:23: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        enum ll_merge_result status;
                             ^
/datasets/git/apply.c:3515:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oideq(base, ours))
                              ^
                               {
/datasets/git/apply.c:3517:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (oideq(base, theirs) || oideq(ours, theirs))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:3517:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (oideq(base, theirs) || oideq(ours, theirs))
                                                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:3529:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (status == LL_MERGE_BINARY_CONFLICT)
                                               ^
                                                {
/datasets/git/apply.c:3556:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int status, pos;
        ^~~~~~~~~~~~~~~~
/datasets/git/apply.c:3556:6: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int status, pos;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:3556:14: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        int status, pos;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:3557:9: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        size_t len;
               ^
                   = 0
/datasets/git/apply.c:3558:8: warning: variable 'img' is not initialized [cppcoreguidelines-init-variables]
        char *img;
              ^
                  = NULL
/datasets/git/apply.c:3559:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/apply.c:3560:22: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
        struct cache_entry *ce;
                            ^
                               = NULL
/datasets/git/apply.c:3560:22: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/apply.c:3564:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!patch->is_new)
                           ^
                            {
/datasets/git/apply.c:3567:49: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        pos = index_name_pos(state->repo->index, name, strlen(name));
                                                       ^
/datasets/git/apply.c:3568:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pos < 0)
                    ^
                     {
/datasets/git/apply.c:3572:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (errno != ENOENT)
                                    ^
                                     {
/datasets/git/apply.c:3574:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (checkout_target(state->repo->index, ce, &st))
                                                                 ^
                                                                  {
/datasets/git/apply.c:3577:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (verify_index_match(state, ce, &st))
                                               ^
                                                {
/datasets/git/apply.c:3581:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (status < 0)
                       ^
                        {
/datasets/git/apply.c:3583:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (status)
        ^~~~~~~~~~~~~~~~
/datasets/git/apply.c:3583:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (status)
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:3590:12: warning: function 'try_threeway' has cognitive complexity of 28 (threshold 25) [readability-function-cognitive-complexity]
static int try_threeway(struct apply_state *state,
           ^
/datasets/git/apply.c:3604:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (patch->is_delete ||
        ^
/datasets/git/apply.c:3606:52: note: +1
            (patch->is_new && !patch->direct_to_threeway) ||
                                                          ^
/datasets/git/apply.c:3606:21: note: +1
            (patch->is_new && !patch->direct_to_threeway) ||
                           ^
/datasets/git/apply.c:3607:47: note: +1
            (patch->is_rename && !patch->lines_added && !patch->lines_deleted))
                                                     ^
/datasets/git/apply.c:3611:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (patch->is_new)
        ^
/datasets/git/apply.c:3613:7: note: +1, nesting level increased to 1
        else if (get_oid(patch->old_oid_prefix, &pre_oid) ||
             ^
/datasets/git/apply.c:3613:52: note: +1
        else if (get_oid(patch->old_oid_prefix, &pre_oid) ||
                                                          ^
/datasets/git/apply.c:3617:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (state->apply_verbosity > verbosity_silent && patch->direct_to_threeway)
        ^
/datasets/git/apply.c:3617:48: note: +1
        if (state->apply_verbosity > verbosity_silent && patch->direct_to_threeway)
                                                      ^
/datasets/git/apply.c:3623:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (apply_fragments(state, &tmp_image, patch) < 0) {
        ^
/datasets/git/apply.c:3632:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (patch->is_new) {
        ^
/datasets/git/apply.c:3633:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (load_current(state, &tmp_image, patch))
                ^
/datasets/git/apply.c:3636:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/apply.c:3637:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (load_preimage(state, &tmp_image, patch, st, ce))
                ^
/datasets/git/apply.c:3647:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (status < 0) {
        ^
/datasets/git/apply.c:3648:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (state->apply_verbosity > verbosity_silent)
                ^
/datasets/git/apply.c:3654:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (status) {
        ^
/datasets/git/apply.c:3656:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (patch->is_new)
                ^
/datasets/git/apply.c:3658:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/apply.c:3662:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (state->apply_verbosity > verbosity_silent)
                ^
/datasets/git/apply.c:3666:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/apply.c:3667:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (state->apply_verbosity > verbosity_silent)
                ^
/datasets/git/apply.c:3593:17: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                        struct stat *st,
                                     ^
/datasets/git/apply.c:3594:30: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                        const struct cache_entry *ce)
                                                  ^
/datasets/git/apply.c:3596:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct object_id pre_oid, post_oid, our_oid;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:3598:9: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        size_t len;
               ^
                   = 0
/datasets/git/apply.c:3599:6: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int status;
            ^
                   = 0
/datasets/git/apply.c:3600:8: warning: variable 'img' is not initialized [cppcoreguidelines-init-variables]
        char *img;
              ^
                  = NULL
/datasets/git/apply.c:3605:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            S_ISGITLINK(patch->old_mode) || S_ISGITLINK(patch->new_mode) ||
            ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/apply.c:3605:38: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            S_ISGITLINK(patch->old_mode) || S_ISGITLINK(patch->new_mode) ||
                                            ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/apply.c:3607:73: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            (patch->is_rename && !patch->lines_added && !patch->lines_deleted))
                                                                               ^
                                                                                {
/datasets/git/apply.c:3611:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (patch->is_new)
                          ^
                           {
/datasets/git/apply.c:3614:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                 read_blob_object(&buf, &pre_oid, patch->old_mode))
                                                                   ^
                                                                    {
/datasets/git/apply.c:3617:77: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (state->apply_verbosity > verbosity_silent && patch->direct_to_threeway)
                                                                                   ^
                                                                                    {
/datasets/git/apply.c:3618:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, _("Performing three-way merge...\n"));
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:3618:3: note: cast the expression to void to silence this warning
/datasets/git/apply.c:3633:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (load_current(state, &tmp_image, patch))
                                                           ^
                                                            {
/datasets/git/apply.c:3637:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (load_preimage(state, &tmp_image, patch, st, ce))
                                                                    ^
                                                                     {
/datasets/git/apply.c:3648:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (state->apply_verbosity > verbosity_silent)
                                                              ^
                                                               {
/datasets/git/apply.c:3649:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr,
                        ^~~~~~~~~~~~~~~
/datasets/git/apply.c:3649:4: note: cast the expression to void to silence this warning
/datasets/git/apply.c:3656:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (patch->is_new)
                                  ^
                                   {
/datasets/git/apply.c:3658:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/apply.c:3662:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (state->apply_verbosity > verbosity_silent)
                                                              ^
                                                               {
/datasets/git/apply.c:3663:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr,
                        ^~~~~~~~~~~~~~~
/datasets/git/apply.c:3663:4: note: cast the expression to void to silence this warning
/datasets/git/apply.c:3667:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (state->apply_verbosity > verbosity_silent)
                                                              ^
                                                               {
/datasets/git/apply.c:3668:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr,
                        ^~~~~~~~~~~~~~~
/datasets/git/apply.c:3668:4: note: cast the expression to void to silence this warning
/datasets/git/apply.c:3676:22: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                      struct stat *st, const struct cache_entry *ce)
                                   ^
/datasets/git/apply.c:3676:52: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                      struct stat *st, const struct cache_entry *ce)
                                                                 ^
/datasets/git/apply.c:3680:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (load_preimage(state, &image, patch, st, ce) < 0)
                                                            ^
                                                             {
/datasets/git/apply.c:3685:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    state->threeway && !patch->direct_to_threeway)
                                                                  ^
                                                                   {
/datasets/git/apply.c:3686:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, _("Falling back to direct application...\n"));
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:3686:4: note: cast the expression to void to silence this warning
/datasets/git/apply.c:3689:78: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (patch->direct_to_threeway || apply_fragments(state, &image, patch) < 0)
                                                                                           ^
                                                                                            {
/datasets/git/apply.c:3697:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (0 < patch->is_delete && patch->resultsize)
                                                      ^
                                                       {
/datasets/git/apply.c:3714:12: warning: function 'check_preimage' has cognitive complexity of 40 (threshold 25) [readability-function-cognitive-complexity]
static int check_preimage(struct apply_state *state,
           ^
/datasets/git/apply.c:3724:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!old_name)
        ^
/datasets/git/apply.c:3727:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(patch->is_new <= 0);
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/apply.c:3727:2: note: nesting level increased to 1
        assert(patch->is_new <= 0);
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/apply.c:3727:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(patch->is_new <= 0);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/apply.c:3727:2: note: +1, nesting level increased to 2
        assert(patch->is_new <= 0);
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/apply.c:3730:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (status)
        ^
/datasets/git/apply.c:3732:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (previous) {
        ^
/datasets/git/apply.c:3734:9: note: +1, nesting level increased to 1
        } else if (!state->cached) {
               ^
/datasets/git/apply.c:3736:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (stat_ret && errno != ENOENT)
                ^
/datasets/git/apply.c:3736:16: note: +1
                if (stat_ret && errno != ENOENT)
                             ^
/datasets/git/apply.c:3740:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (state->check_index && !previous) {
        ^
/datasets/git/apply.c:3740:25: note: +1
        if (state->check_index && !previous) {
                               ^
/datasets/git/apply.c:3743:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (pos < 0) {
                ^
/datasets/git/apply.c:3744:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (patch->is_new < 0)
                        ^
/datasets/git/apply.c:3749:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (stat_ret < 0) {
                ^
/datasets/git/apply.c:3750:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (checkout_target(state->repo->index, *ce, st))
                        ^
/datasets/git/apply.c:3753:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!state->cached && verify_index_match(state, *ce, st))
                ^
/datasets/git/apply.c:3753:22: note: +1
                if (!state->cached && verify_index_match(state, *ce, st))
                                   ^
/datasets/git/apply.c:3755:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (state->cached)
                ^
/datasets/git/apply.c:3757:9: note: +1, nesting level increased to 1
        } else if (stat_ret < 0) {
               ^
/datasets/git/apply.c:3758:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (patch->is_new < 0)
                ^
/datasets/git/apply.c:3763:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!state->cached && !previous)
        ^
/datasets/git/apply.c:3763:21: note: +1
        if (!state->cached && !previous)
                           ^
/datasets/git/apply.c:3766:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (patch->is_new < 0)
        ^
/datasets/git/apply.c:3768:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!patch->old_mode)
        ^
/datasets/git/apply.c:3770:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((st_mode ^ patch->old_mode) & S_IFMT)
        ^
/datasets/git/apply.c:3772:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (st_mode != patch->old_mode)
        ^
/datasets/git/apply.c:3775:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!patch->new_mode && !patch->is_delete)
        ^
/datasets/git/apply.c:3775:23: note: +1
        if (!patch->new_mode && !patch->is_delete)
                             ^
/datasets/git/apply.c:3782:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        FREE_AND_NULL(patch->old_name);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/apply.c:3716:27: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                          struct cache_entry **ce,
                                               ^
/datasets/git/apply.c:3717:19: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                          struct stat *st)
                                       ^
/datasets/git/apply.c:3721:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int stat_ret = 0, status;
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:3721:20: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int stat_ret = 0, status;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:3724:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!old_name)
                      ^
                       {
/datasets/git/apply.c:3730:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (status)
                   ^
                    {
/datasets/git/apply.c:3736:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (stat_ret && errno != ENOENT)
                                                ^
                                                 {
/datasets/git/apply.c:3742:7: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                         strlen(old_name));
                                         ^
/datasets/git/apply.c:3744:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (patch->is_new < 0)
                                              ^
                                               {
/datasets/git/apply.c:3750:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (checkout_target(state->repo->index, *ce, st))
                                                                         ^
                                                                          {
/datasets/git/apply.c:3753:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!state->cached && verify_index_match(state, *ce, st))
                                                                         ^
                                                                          {
/datasets/git/apply.c:3755:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (state->cached)
                                  ^
                                   {
/datasets/git/apply.c:3758:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (patch->is_new < 0)
                                      ^
                                       {
/datasets/git/apply.c:3763:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!state->cached && !previous)
                                        ^
                                         {
/datasets/git/apply.c:3766:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (patch->is_new < 0)
                              ^
                               {
/datasets/git/apply.c:3768:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!patch->old_mode)
                             ^
                              {
/datasets/git/apply.c:3770:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((st_mode ^ patch->old_mode) & S_IFMT)
            ^
/datasets/git/apply.c:3770:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((st_mode ^ patch->old_mode) & S_IFMT)
                                                 ^
                                                  {
/datasets/git/apply.c:3772:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (st_mode != patch->old_mode)
                                       ^
                                        {
/datasets/git/apply.c:3775:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!patch->new_mode && !patch->is_delete)
                                                  ^
                                                   {
/datasets/git/apply.c:3782:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(patch->old_name);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/apply.c:3787:1: warning: replace macro with enum [modernize-macro-to-enum]
#define EXISTS_IN_INDEX 1
^~~~~~~~
                        =,
/datasets/git/apply.c:3787:9: warning: macro 'EXISTS_IN_INDEX' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define EXISTS_IN_INDEX 1
        ^
/datasets/git/apply.c:3788:9: warning: macro 'EXISTS_IN_WORKTREE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define EXISTS_IN_WORKTREE 2
        ^
/datasets/git/apply.c:3789:9: warning: macro 'EXISTS_IN_INDEX_AS_ITA' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define EXISTS_IN_INDEX_AS_ITA 3
        ^
/datasets/git/apply.c:3798:7: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
                int pos;
                    ^
                        = 0
/datasets/git/apply.c:3800:54: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                pos = index_name_pos(state->repo->index, new_name, strlen(new_name));
                                                                   ^
/datasets/git/apply.c:3802:24: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                        struct cache_entry *ce = state->repo->index->cache[pos];
                                            ^
/datasets/git/apply.c:3805:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!ok_if_exists && !(ce->ce_flags & CE_INTENT_TO_ADD))
                                               ^
/datasets/git/apply.c:3805:42: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!ok_if_exists && !(ce->ce_flags & CE_INTENT_TO_ADD))
                                                              ^
/datasets/git/./refs/../cache.h:189:31: note: expanded from macro 'CE_INTENT_TO_ADD'
#define CE_INTENT_TO_ADD     (1 << 29)
                              ^
/datasets/git/apply.c:3805:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!ok_if_exists && !(ce->ce_flags & CE_INTENT_TO_ADD))
                                                                                ^
                                                                                 {
/datasets/git/apply.c:3809:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!state->cached && (ce->ce_flags & CE_INTENT_TO_ADD))
                                               ^
/datasets/git/apply.c:3809:42: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!state->cached && (ce->ce_flags & CE_INTENT_TO_ADD))
                                                              ^
/datasets/git/./refs/../cache.h:189:31: note: expanded from macro 'CE_INTENT_TO_ADD'
#define CE_INTENT_TO_ADD     (1 << 29)
                              ^
/datasets/git/apply.c:3809:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!state->cached && (ce->ce_flags & CE_INTENT_TO_ADD))
                                                                                ^
                                                                                 {
/datasets/git/apply.c:3814:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (state->cached)
                          ^
                           {
/datasets/git/apply.c:3818:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (S_ISDIR(nst.st_mode) || ok_if_exists)
                                                         ^
                                                          {
/datasets/git/apply.c:3827:42: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                if (has_symlink_leading_path(new_name, strlen(new_name)))
                                                       ^
/datasets/git/apply.c:3827:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (has_symlink_leading_path(new_name, strlen(new_name)))
                                                                         ^
                                                                          {
/datasets/git/apply.c:3831:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else if (!is_missing_file_error(errno)) {
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:3839:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for ( ; patch; patch = patch->next) {
        ^
/datasets/git/apply.c:3839:10: warning: backward branch (for loop) is ID-dependent due to variable reference to 'patch' and may cause performance degradation [altera-id-dependent-backward-branch]
        for ( ; patch; patch = patch->next) {
                ^
/datasets/git/apply.c:3841:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    (patch->is_rename || patch->is_delete))
                                                           ^
                                                            {
/datasets/git/apply.c:3845:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (patch->new_name && S_ISLNK(patch->new_mode))
                                                                ^
                                                                 {
/datasets/git/apply.c:3854:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (--name->len && name->buf[name->len] != '/')
                ^
/datasets/git/apply.c:3854:10: warning: backward branch (while loop) is ID-dependent due to member reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (--name->len && name->buf[name->len] != '/')
                       ^
/datasets/git/apply.c:3854:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (--name->len && name->buf[name->len] != '/')
                                                                  ^
                                                                   {
/datasets/git/apply.c:3856:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!name->len)
                               ^
                                {
/datasets/git/apply.c:3859:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strset_contains(&state->kept_symlinks, name->buf))
                                                                      ^
                                                                       {
/datasets/git/apply.c:3861:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strset_contains(&state->removed_symlinks, name->buf))
                                                                         ^
                                                                          {
/datasets/git/apply.c:3870:24: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
                        struct cache_entry *ce;
                                            ^
                                               = NULL
/datasets/git/apply.c:3870:24: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/apply.c:3873:13: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                               name->len, ignore_case);
                                               ^
/datasets/git/apply.c:3874:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ce && S_ISLNK(ce->ce_mode))
                                                       ^
                                                        {
/datasets/git/apply.c:3877:16: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                        struct stat st;
                                    ^
/datasets/git/apply.c:3878:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!lstat(name->buf, &st) && S_ISLNK(st.st_mode))
                                                                          ^
                                                                           {
/datasets/git/apply.c:3887:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/apply.c:3902:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (patch->is_delete)
                             ^
                              {
/datasets/git/apply.c:3903:3: warning: repeated branch in conditional chain [bugprone-branch-clone]
                old_name = patch->old_name;
                ^
/datasets/git/apply.c:3903:29: note: end of the original
                old_name = patch->old_name;
                                          ^
/datasets/git/apply.c:3905:3: note: clone 1 starts here
                old_name = patch->old_name;
                ^
/datasets/git/apply.c:3904:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!patch->is_new && !patch->is_copy)
                                                   ^
                                                    {
/datasets/git/apply.c:3906:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!patch->is_delete)
                              ^
                               {
/datasets/git/apply.c:3909:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (old_name && !verify_path(old_name, patch->old_mode))
                                                                ^
                                                                 {
/datasets/git/apply.c:3911:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (new_name && !verify_path(new_name, patch->new_mode))
                                                                ^
                                                                 {
/datasets/git/apply.c:3920:12: warning: function 'check_patch' has cognitive complexity of 34 (threshold 25) [readability-function-cognitive-complexity]
static int check_patch(struct apply_state *state, struct patch *patch)
           ^
/datasets/git/apply.c:3925:30: note: +1, including nesting penalty of 0, nesting level increased to 1
        const char *name = old_name ? old_name : new_name;
                                    ^
/datasets/git/apply.c:3934:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (status)
        ^
/datasets/git/apply.c:3952:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((tpatch = in_fn_table(state, new_name)) &&
        ^
/datasets/git/apply.c:3952:46: note: +1
        if ((tpatch = in_fn_table(state, new_name)) &&
                                                    ^
/datasets/git/apply.c:3953:27: note: +1
            (was_deleted(tpatch) || to_be_deleted(tpatch)))
                                 ^
/datasets/git/apply.c:3955:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/apply.c:3958:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (new_name &&
        ^
/datasets/git/apply.c:3958:15: note: +1
        if (new_name &&
                     ^
/datasets/git/apply.c:3959:47: note: +1
            ((0 < patch->is_new) || patch->is_rename || patch->is_copy)) {
                                                     ^
/datasets/git/apply.c:3962:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (err && state->threeway) {
                ^
/datasets/git/apply.c:3962:11: note: +1
                if (err && state->threeway) {
                        ^
/datasets/git/apply.c:3964:5: note: +1, nesting level increased to 2
                } else switch (err) {
                  ^
/datasets/git/apply.c:3978:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!patch->new_mode) {
                ^
/datasets/git/apply.c:3979:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (0 < patch->is_new)
                        ^
/datasets/git/apply.c:3981:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/apply.c:3986:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (new_name && old_name) {
        ^
/datasets/git/apply.c:3986:15: note: +1
        if (new_name && old_name) {
                     ^
/datasets/git/apply.c:3988:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!patch->new_mode)
                ^
/datasets/git/apply.c:3990:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((patch->old_mode ^ patch->new_mode) & S_IFMT) {
                ^
/datasets/git/apply.c:3991:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (same)
                        ^
/datasets/git/apply.c:3996:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/apply.c:4004:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!state->unsafe_paths && check_unsafe_path(patch))
        ^
/datasets/git/apply.c:4004:27: note: +1
        if (!state->unsafe_paths && check_unsafe_path(patch))
                                 ^
/datasets/git/apply.c:4016:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!patch->is_delete && path_is_beyond_symlink(state, patch->new_name))
        ^
/datasets/git/apply.c:4016:24: note: +1
        if (!patch->is_delete && path_is_beyond_symlink(state, patch->new_name))
                              ^
/datasets/git/apply.c:4020:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (apply_data(state, patch, &st, ce) < 0)
        ^
/datasets/git/apply.c:3922:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/apply.c:3926:22: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
        struct cache_entry *ce = NULL;
                            ^
/datasets/git/apply.c:3927:16: warning: variable 'tpatch' is not initialized [cppcoreguidelines-init-variables]
        struct patch *tpatch;
                      ^
                             = NULL
/datasets/git/apply.c:3928:6: warning: variable 'ok_if_exists' is not initialized [cppcoreguidelines-init-variables]
        int ok_if_exists;
            ^
                         = 0
/datasets/git/apply.c:3929:6: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int status;
            ^
                   = 0
/datasets/git/apply.c:3934:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (status)
                   ^
                    {
/datasets/git/apply.c:3952:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if ((tpatch = in_fn_table(state, new_name)) &&
             ^
/datasets/git/apply.c:3952:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/apply.c:3952:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/apply.c:3953:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            (was_deleted(tpatch) || to_be_deleted(tpatch)))
                                                           ^
                                                            {
/datasets/git/apply.c:3955:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/apply.c:3964:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else switch (err) {
                      ^
                       {
/datasets/git/apply.c:3979:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (0 < patch->is_new)
                                              ^
                                               {
/datasets/git/apply.c:3980:33: warning: 0644 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                patch->new_mode = S_IFREG | 0644;
                                                            ^
/datasets/git/apply.c:3981:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/apply.c:3988:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!patch->new_mode)
                                     ^
                                      {
/datasets/git/apply.c:3990:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((patch->old_mode ^ patch->new_mode) & S_IFMT) {
                    ^
/datasets/git/apply.c:3991:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (same)
                                 ^
                                  {
/datasets/git/apply.c:3996:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                        else
                        ^~~~
                                                        return error
/datasets/git/apply.c:3996:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:4004:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!state->unsafe_paths && check_unsafe_path(patch))
                                                             ^
                                                              {
/datasets/git/apply.c:4005:11: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                return -128;
                        ^
/datasets/git/apply.c:4016:74: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!patch->is_delete && path_is_beyond_symlink(state, patch->new_name))
                                                                                ^
                                                                                 {
/datasets/git/apply.c:4020:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (apply_data(state, patch, &st, ce) < 0)
                                                  ^
                                                   {
/datasets/git/apply.c:4032:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (patch) {
        ^
/datasets/git/apply.c:4032:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'patch' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (patch) {
               ^
/datasets/git/apply.c:4033:7: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
                int res;
                    ^
                        = 0
/datasets/git/apply.c:4034:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (state->apply_verbosity > verbosity_normal)
                                                              ^
                                                               {
/datasets/git/apply.c:4038:15: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (res == -128)
                            ^
/datasets/git/apply.c:4038:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (res == -128)
                                ^
                                 {
/datasets/git/apply.c:4039:12: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        return -128;
                                ^
/datasets/git/apply.c:4040:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                err |= res;
                ^~~
/datasets/git/apply.c:4048:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (state->index_file)
                              ^
                               {
/datasets/git/apply.c:4051:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else
        ^~~~
                        return repo_read_index(state->repo)
/datasets/git/apply.c:4051:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:4059:6: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        int pos;
            ^
                = 0
/datasets/git/apply.c:4061:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (read_apply_cache(state) < 0)
                                        ^
                                         {
/datasets/git/apply.c:4063:49: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        pos = index_name_pos(state->repo->index, path, strlen(path));
                                                       ^
/datasets/git/apply.c:4064:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pos < 0)
                    ^
                     {
/datasets/git/apply.c:4070:56: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static int preimage_oid_in_gitlink_patch(struct patch *p, struct object_id *oid)
                                                       ^
/datasets/git/apply.c:4084:8: warning: variable 'preimage' is not initialized [cppcoreguidelines-init-variables]
        char *preimage;
              ^
                       = NULL
/datasets/git/apply.c:4107:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct patch *patch;
        ^
/datasets/git/apply.c:4091:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
            (preimage = memchr(hunk->patch, '\n', hunk->size)) != NULL &&
             ^
/datasets/git/apply.c:4091:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/apply.c:4091:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/apply.c:4097:69: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            starts_with(preimage + sizeof(heading) - 1, p->old_oid_prefix))
                                                                           ^
                                                                            {
/datasets/git/apply.c:4107:16: warning: variable 'patch' is not initialized [cppcoreguidelines-init-variables]
        struct patch *patch;
                      ^
                            = NULL
/datasets/git/apply.c:4110:6: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        int res;
            ^
                = 0
/datasets/git/apply.c:4115:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (patch = list; patch; patch = patch->next) {
        ^
/datasets/git/apply.c:4115:21: warning: backward branch (for loop) is ID-dependent due to variable reference to 'patch' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (patch = list; patch; patch = patch->next) {
                           ^
/datasets/git/apply.c:4117:23: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
                struct cache_entry *ce;
                                    ^
                                       = NULL
/datasets/git/apply.c:4117:23: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/apply.c:4118:15: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
                const char *name;
                            ^
                                 = NULL
/datasets/git/apply.c:4121:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (0 < patch->is_new)
                                      ^
                                       {
/datasets/git/apply.c:4124:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (S_ISGITLINK(patch->old_mode)) {
                    ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/apply.c:4125:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!preimage_oid_in_gitlink_patch(patch, &oid))
                                                                        ^
                                                                         {
/datasets/git/apply.c:4127:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/apply.c:4134:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (get_current_oid(state, patch->old_name, &oid))
                                                                          ^
                                                                           {
/datasets/git/apply.c:4137:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/apply.c:4142:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ce)
                        ^
                         {
/datasets/git/apply.c:4153:43: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        res = write_locked_index(&result, &lock, COMMIT_LOCK);
                                                 ^
/datasets/git/./refs/../cache.h:744:23: note: expanded from macro 'COMMIT_LOCK'
#define COMMIT_LOCK             (1 << 0)
                                 ^
/datasets/git/apply.c:4156:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (res)
                ^
                 {
/datasets/git/apply.c:4165:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int files, adds, dels;
        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:4163:56: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
static void stat_patch_list(struct apply_state *state, struct patch *patch)
                                                       ^
/datasets/git/apply.c:4165:6: warning: variable 'files' is not initialized [cppcoreguidelines-init-variables]
        int files, adds, dels;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:4165:13: warning: variable 'adds' is not initialized [cppcoreguidelines-init-variables]
        int files, adds, dels;
                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:4165:19: warning: variable 'dels' is not initialized [cppcoreguidelines-init-variables]
        int files, adds, dels;
                         ^
/datasets/git/apply.c:4178:11: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                               struct patch *patch)
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:4167:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (files = adds = dels = 0 ; patch ; patch = patch->next) {
        ^
/datasets/git/apply.c:4167:33: warning: backward branch (for loop) is ID-dependent due to variable reference to 'patch' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (files = adds = dels = 0 ; patch ; patch = patch->next) {
                                       ^
/datasets/git/apply.c:4180:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for ( ; patch; patch = patch->next) {
        ^
/datasets/git/apply.c:4180:10: warning: backward branch (for loop) is ID-dependent due to variable reference to 'patch' and may cause performance degradation [altera-id-dependent-backward-branch]
        for ( ; patch; patch = patch->next) {
                ^
/datasets/git/apply.c:4181:15: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
                const char *name;
                            ^
                                 = NULL
/datasets/git/apply.c:4183:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (patch->is_binary)
                                     ^
                                      {
/datasets/git/apply.c:4185:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/apply.c:4193:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mode)
                 ^
                  {
/datasets/git/apply.c:4195:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/apply.c:4199:44: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static void show_mode_change(struct patch *p, int show_name)
                                           ^
/datasets/git/apply.c:4202:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (show_name)
                              ^
                               {
/datasets/git/apply.c:4205:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/apply.c:4211:44: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static void show_rename_copy(struct patch *p)
                                           ^
/datasets/git/apply.c:4214:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *old_name, *new_name;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:4214:14: warning: variable 'old_name' is not initialized [cppcoreguidelines-init-variables]
        const char *old_name, *new_name;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:4214:25: warning: variable 'new_name' is not initialized [cppcoreguidelines-init-variables]
        const char *old_name, *new_name;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:4219:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/apply.c:4220:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                const char *slash_old, *slash_new;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:4220:15: warning: variable 'slash_old' is not initialized [cppcoreguidelines-init-variables]
                const char *slash_old, *slash_new;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:4220:27: warning: variable 'slash_new' is not initialized [cppcoreguidelines-init-variables]
                const char *slash_old, *slash_new;
                                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:4226:7: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                    memcmp(old_name, new_name, slash_new - new_name))
                    ^
                                                                     != 0
/datasets/git/apply.c:4246:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct patch *p;
        ^
/datasets/git/apply.c:4226:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    memcmp(old_name, new_name, slash_new - new_name))
                                                                     ^
                                                                      {
/datasets/git/apply.c:4234:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (old_name != p->old_name)
                                    ^
                                     {
/datasets/git/apply.c:4238:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/apply.c:4246:16: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct patch *p;
                      ^
                        = NULL
/datasets/git/apply.c:4246:16: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/apply.c:4248:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = patch; p; p = p->next) {
        ^
/datasets/git/apply.c:4248:18: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = patch; p; p = p->next) {
                        ^
/datasets/git/apply.c:4249:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (p->is_new)
                              ^
                               {
/datasets/git/apply.c:4251:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (p->is_delete)
                                      ^
                                       {
/datasets/git/apply.c:4254:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (p->is_rename || p->is_copy)
                                                       ^
                                                        {
/datasets/git/apply.c:4262:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                else
                                    ^
                                     {
/datasets/git/apply.c:4273:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (lines > state->max_change)
                                      ^
                                       {
/datasets/git/apply.c:4276:13: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int len = quote_c_style(patch->old_name, NULL, NULL, 0);
                          ^
/datasets/git/apply.c:4277:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!len)
                         ^
                          {
/datasets/git/apply.c:4278:10: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        len = strlen(patch->old_name);
                              ^
/datasets/git/apply.c:4279:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (len > state->max_len)
                                         ^
                                          {
/datasets/git/apply.c:4283:13: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int len = quote_c_style(patch->new_name, NULL, NULL, 0);
                          ^
/datasets/git/apply.c:4284:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!len)
                         ^
                          {
/datasets/git/apply.c:4285:10: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        len = strlen(patch->new_name);
                              ^
/datasets/git/apply.c:4286:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (len > state->max_len)
                                         ^
                                          {
/datasets/git/apply.c:4294:71: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (remove_file_from_index(state->repo->index, patch->old_name) < 0)
                                                                                    ^
                                                                                     {
/datasets/git/apply.c:4311:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/apply.c:4312:22: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
        struct cache_entry *ce;
                            ^
                               = NULL
/datasets/git/apply.c:4312:22: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/apply.c:4313:16: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int namelen = strlen(path);
                      ^
/datasets/git/apply.c:4316:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(ce->name, path, namelen);
        ^~~~~~
/datasets/git/apply.c:4316:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(ce->name, path, namelen);
        ^~~~~~
/datasets/git/apply.c:4321:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ce->ce_flags |= CE_INTENT_TO_ADD;
                ^
/datasets/git/apply.c:4321:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ce->ce_flags |= CE_INTENT_TO_ADD;
                                ^
/datasets/git/./refs/../cache.h:189:31: note: expanded from macro 'CE_INTENT_TO_ADD'
#define CE_INTENT_TO_ADD     (1 << 29)
                              ^
/datasets/git/apply.c:4323:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        } else if (S_ISGITLINK(mode)) {
                   ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/apply.c:4324:15: warning: variable 's' is not initialized [cppcoreguidelines-init-variables]
                const char *s;
                            ^
                              = NULL
/datasets/git/apply.c:4324:15: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/apply.c:4365:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int fd, res;
        ^~~~~~~~~~~~
/datasets/git/apply.c:4365:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd, res;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:4365:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/apply.c:4365:10: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        int fd, res;
                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:4368:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (S_ISGITLINK(mode)) {
            ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/apply.c:4369:15: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                struct stat st;
                            ^
/datasets/git/apply.c:4370:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!lstat(path, &st) && S_ISDIR(st.st_mode))
                                                             ^
                                                              {
/datasets/git/apply.c:4372:24: warning: 0777 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                return !!mkdir(path, 0777);
                                     ^
/datasets/git/apply.c:4375:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (has_symlinks && S_ISLNK(mode))
                                          ^
                                           {
/datasets/git/apply.c:4381:45: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
        fd = open(path, O_CREAT | O_EXCL | O_WRONLY, (mode & 0100) ? 0777 : 0666);
                                                   ^
                                                    | O_CLOEXEC
/datasets/git/apply.c:4381:48: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        fd = open(path, O_CREAT | O_EXCL | O_WRONLY, (mode & 0100) ? 0777 : 0666);
                                                      ^      ~~~~
/datasets/git/apply.c:4381:55: warning: 0100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        fd = open(path, O_CREAT | O_EXCL | O_WRONLY, (mode & 0100) ? 0777 : 0666);
                                                             ^
/datasets/git/apply.c:4381:63: warning: 0777 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        fd = open(path, O_CREAT | O_EXCL | O_WRONLY, (mode & 0100) ? 0777 : 0666);
                                                                     ^
/datasets/git/apply.c:4381:70: warning: 0666 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        fd = open(path, O_CREAT | O_EXCL | O_WRONLY, (mode & 0100) ? 0777 : 0666);
                                                                            ^
/datasets/git/apply.c:4382:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fd < 0)
                   ^
                    {
/datasets/git/apply.c:4391:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (res)
                ^
                 {
/datasets/git/apply.c:4395:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (close(fd) < 0 && !res)
                                  ^
                                   {
/datasets/git/apply.c:4410:12: warning: function 'create_one_file' has cognitive complexity of 32 (threshold 25) [readability-function-cognitive-complexity]
static int create_one_file(struct apply_state *state,
           ^
/datasets/git/apply.c:4418:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (state->cached)
        ^
/datasets/git/apply.c:4422:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (res < 0)
        ^
/datasets/git/apply.c:4424:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!res)
        ^
/datasets/git/apply.c:4427:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (errno == ENOENT) {
        ^
/datasets/git/apply.c:4428:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (safe_create_leading_directories_no_share(path))
                ^
/datasets/git/apply.c:4431:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (res < 0)
                ^
/datasets/git/apply.c:4433:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!res)
                ^
/datasets/git/apply.c:4437:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (errno == EEXIST || errno == EACCES) {
        ^
/datasets/git/apply.c:4437:22: note: +1
        if (errno == EEXIST || errno == EACCES) {
                            ^
/datasets/git/apply.c:4442:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!lstat(path, &st) && (!S_ISDIR(st.st_mode) || !rmdir(path)))
                ^
/datasets/git/apply.c:4442:25: note: +1
                if (!lstat(path, &st) && (!S_ISDIR(st.st_mode) || !rmdir(path)))
                                      ^
/datasets/git/apply.c:4442:50: note: +1
                if (!lstat(path, &st) && (!S_ISDIR(st.st_mode) || !rmdir(path)))
                                                               ^
/datasets/git/apply.c:4446:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (errno == EEXIST) {
        ^
/datasets/git/apply.c:4449:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (;;) {
                ^
/datasets/git/apply.c:4453:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (res < 0)
                        ^
/datasets/git/apply.c:4455:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!res) {
                        ^
/datasets/git/apply.c:4456:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!rename(newpath, path))
                                ^
/datasets/git/apply.c:4461:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (errno != EEXIST)
                        ^
/datasets/git/apply.c:4416:6: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        int res;
            ^
                = 0
/datasets/git/apply.c:4418:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (state->cached)
                          ^
                           {
/datasets/git/apply.c:4422:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (res < 0)
                    ^
                     {
/datasets/git/apply.c:4424:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!res)
                 ^
                  {
/datasets/git/apply.c:4428:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (safe_create_leading_directories_no_share(path))
                                                                   ^
                                                                    {
/datasets/git/apply.c:4431:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (res < 0)
                            ^
                             {
/datasets/git/apply.c:4433:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!res)
                         ^
                          {
/datasets/git/apply.c:4441:15: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                struct stat st;
                            ^
/datasets/git/apply.c:4442:67: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!lstat(path, &st) && (!S_ISDIR(st.st_mode) || !rmdir(path)))
                                                                                ^
                                                                                 {
/datasets/git/apply.c:4447:16: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
                unsigned int nr = getpid();
                             ^
/datasets/git/apply.c:4449:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (;;) {
                ^
/datasets/git/apply.c:4453:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (res < 0)
                                    ^
                                     {
/datasets/git/apply.c:4456:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!rename(newpath, path))
                                                           ^
                                                            {
/datasets/git/apply.c:4461:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (errno != EEXIST)
                                            ^
                                             {
/datasets/git/apply.c:4473:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int stage, namelen;
        ^~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:4473:6: warning: variable 'stage' is not initialized [cppcoreguidelines-init-variables]
        int stage, namelen;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:4473:13: warning: variable 'namelen' is not initialized [cppcoreguidelines-init-variables]
        int stage, namelen;
                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:4474:11: warning: variable 'mode' is not initialized [cppcoreguidelines-init-variables]
        unsigned mode;
                 ^
                      = 0
/datasets/git/apply.c:4475:22: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
        struct cache_entry *ce;
                            ^
                               = NULL
/datasets/git/apply.c:4475:22: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/apply.c:4477:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!state->update_index)
                                 ^
                                  {
/datasets/git/apply.c:4479:12: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        namelen = strlen(patch->new_name);
                  ^
/datasets/git/apply.c:4480:56: warning: 0644 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mode = patch->new_mode ? patch->new_mode : (S_IFREG | 0644);
                                                              ^
/datasets/git/apply.c:4483:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (stage = 1; stage < 4; stage++) {
        ^
/datasets/git/apply.c:4484:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_null_oid(&patch->threeway_stage[stage - 1]))
                                                                   ^
                                                                    {
/datasets/git/apply.c:4487:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(ce->name, patch->new_name, namelen);
                ^~~~~~
/datasets/git/apply.c:4487:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(ce->name, patch->new_name, namelen);
                ^~~~~~
/datasets/git/apply.c:4509:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!mode)
                  ^
                   {
/datasets/git/apply.c:4510:20: warning: 0644 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mode = S_IFREG | 0644;
                                 ^
/datasets/git/apply.c:4511:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (create_one_file(state, path, mode, buf, size))
                                                          ^
                                                           {
/datasets/git/apply.c:4514:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (patch->conflicted_threeway)
                                       ^
                                        {
/datasets/git/apply.c:4516:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (state->update_index)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:4516:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (state->update_index)
                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:4527:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (phase == 0)
                               ^
                                {
/datasets/git/apply.c:4532:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (phase == 1)
                               ^
                                {
/datasets/git/apply.c:4540:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (phase == 0)
                       ^
                        {
/datasets/git/apply.c:4542:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (phase == 1)
                       ^
                        {
/datasets/git/apply.c:4549:8: warning: variable 'rej' is not initialized [cppcoreguidelines-init-variables]
        FILE *rej;
              ^
                  = NULL
/datasets/git/apply.c:4551:19: warning: variable 'frag' is not initialized [cppcoreguidelines-init-variables]
        struct fragment *frag;
                         ^
                              = NULL
/datasets/git/apply.c:4553:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/apply.c:4555:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cnt = 0, frag = patch->fragments; frag; frag = frag->next) {
        ^
/datasets/git/apply.c:4555:41: warning: backward branch (for loop) is ID-dependent due to variable reference to 'frag' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (cnt = 0, frag = patch->fragments; frag; frag = frag->next) {
                                               ^
/datasets/git/apply.c:4556:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!frag->rejected)
                                    ^
                                     {
/datasets/git/apply.c:4562:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (state->apply_verbosity > verbosity_normal)
                                                              ^
                                                               {
/datasets/git/apply.c:4571:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!patch->new_name)
                             ^
                              {
/datasets/git/apply.c:4579:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (state->apply_verbosity > verbosity_silent)
                                                      ^
                                                       {
/datasets/git/apply.c:4583:8: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        cnt = strlen(patch->new_name);
              ^
/datasets/git/apply.c:4584:35: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (ARRAY_SIZE(namebuf) <= cnt + 5) {
                                         ^
/datasets/git/apply.c:4585:31: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                cnt = ARRAY_SIZE(namebuf) - 5;
                                            ^
/datasets/git/apply.c:4589:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(namebuf, patch->new_name, cnt);
        ^~~~~~
/datasets/git/apply.c:4589:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(namebuf, patch->new_name, cnt);
        ^~~~~~
/datasets/git/apply.c:4590:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(namebuf + cnt, ".rej", 5);
        ^~~~~~
/datasets/git/apply.c:4590:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(namebuf + cnt, ".rej", 5);
        ^~~~~~
/datasets/git/apply.c:4590:32: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        memcpy(namebuf + cnt, ".rej", 5);
                                      ^
/datasets/git/apply.c:4593:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!rej)
                 ^
                  {
/datasets/git/apply.c:4601:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(rej, "diff a/%s b/%s\t(rejected hunks)\n",
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:4601:2: note: cast the expression to void to silence this warning
/datasets/git/apply.c:4603:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cnt = 1, frag = patch->fragments;
        ^
/datasets/git/apply.c:4604:7: warning: backward branch (for loop) is ID-dependent due to variable reference to 'frag' and may cause performance degradation [altera-id-dependent-backward-branch]
             frag;
             ^
/datasets/git/apply.c:4607:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (state->apply_verbosity > verbosity_silent)
                                                                      ^
                                                                       {
/datasets/git/apply.c:4611:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (state->apply_verbosity > verbosity_silent)
                                                              ^
                                                               {
/datasets/git/apply.c:4613:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(rej, "%.*s", frag->size, frag->patch);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:4613:3: note: cast the expression to void to silence this warning
/datasets/git/apply.c:4614:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (frag->patch[frag->size-1] != '\n')
                                                      ^
                                                       {
/datasets/git/apply.c:4615:4: warning: the value returned by this function should be used [cert-err33-c]
                        fputc('\n', rej);
                        ^~~~~~~~~~~~~~~~
/datasets/git/apply.c:4615:4: note: cast the expression to void to silence this warning
/datasets/git/apply.c:4617:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(rej);
        ^~~~~~~~~~~
/datasets/git/apply.c:4617:2: note: cast the expression to void to silence this warning
/datasets/git/apply.c:4551:2: note: inferred assignment of ID-dependent value from ID-dependent member next [altera-id-dependent-backward-branch]
        struct fragment *frag;
        ^
/datasets/git/apply.c:4627:12: warning: function 'write_out_results' has cognitive complexity of 34 (threshold 25) [readability-function-cognitive-complexity]
static int write_out_results(struct apply_state *state, struct patch *list)
           ^
/datasets/git/apply.c:4634:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (phase = 0; phase < 2; phase++) {
        ^
/datasets/git/apply.c:4636:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (l) {
                ^
/datasets/git/apply.c:4637:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (l->rejected)
                        ^
/datasets/git/apply.c:4639:4: note: +1, nesting level increased to 3
                        else {
                        ^
/datasets/git/apply.c:4640:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (write_out_one_result(state, l, phase)) {
                                ^
/datasets/git/apply.c:4644:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (phase == 1) {
                                ^
/datasets/git/apply.c:4645:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (write_out_one_reject(state, l))
                                        ^
/datasets/git/apply.c:4647:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (l->conflicted_threeway) {
                                        ^
/datasets/git/apply.c:4657:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (cpath.nr) {
        ^
/datasets/git/apply.c:4661:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (state->apply_verbosity > verbosity_silent) {
                ^
/datasets/git/apply.c:4662:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for_each_string_list_item(item, &cpath)
                        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/apply.c:4662:4: note: +1
                        for_each_string_list_item(item, &cpath)
                        ^
/datasets/git/./string-list.h:152:12: note: expanded from macro 'for_each_string_list_item'
             item && item < (list)->items + (list)->nr; \
                  ^
/datasets/git/apply.c:4671:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!state->cached)
                ^
/datasets/git/apply.c:4629:6: warning: variable 'phase' is not initialized [cppcoreguidelines-init-variables]
        int phase;
            ^
                  = 0
/datasets/git/apply.c:4631:16: warning: variable 'l' is not initialized [cppcoreguidelines-init-variables]
        struct patch *l;
                      ^
                        = NULL
/datasets/git/apply.c:4631:16: warning: variable name 'l' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/apply.c:4631:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct patch *l;
        ^
/datasets/git/apply.c:4636:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (l) {
                ^
/datasets/git/apply.c:4636:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'l' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (l) {
                       ^
/datasets/git/apply.c:4637:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (l->rejected)
                                        ^
                                         {
/datasets/git/apply.c:4645:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        if (write_out_one_reject(state, l))
                                                                           ^
                                                                            {
/datasets/git/apply.c:4658:28: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
                struct string_list_item *item;
                                         ^
                                              = NULL
/datasets/git/apply.c:4658:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                struct string_list_item *item;
                ^
/datasets/git/apply.c:4662:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for_each_string_list_item(item, &cpath)
                        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/apply.c:4662:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for_each_string_list_item(item, &cpath)
                                                  ^
/datasets/git/apply.c:4663:5: warning: the value returned by this function should be used [cert-err33-c]
                                fprintf(stderr, "U %s\n", item->string);
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:4663:5: note: cast the expression to void to silence this warning
/datasets/git/apply.c:4671:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!state->cached)
                                   ^
                                    {
/datasets/git/apply.c:4687:12: warning: function 'apply_patch' has cognitive complexity of 73 (threshold 25) [readability-function-cognitive-complexity]
static int apply_patch(struct apply_state *state,
           ^
/datasets/git/apply.c:4700:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (read_patch_file(&buf, fd) < 0)
        ^
/datasets/git/apply.c:4703:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (offset < buf.len) {
        ^
/datasets/git/apply.c:4711:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (nr < 0) {
                ^
/datasets/git/apply.c:4713:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (nr == -128) {
                        ^
/datasets/git/apply.c:4715:5: note: +1
                                goto end;
                                ^
/datasets/git/apply.c:4719:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (state->apply_in_reverse)
                ^
/datasets/git/apply.c:4721:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (use_patch(state, patch)) {
                ^
/datasets/git/apply.c:4723:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!list || !state->apply_in_reverse) {
                        ^
/datasets/git/apply.c:4723:14: note: +1
                        if (!list || !state->apply_in_reverse) {
                                  ^
/datasets/git/apply.c:4726:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/apply.c:4731:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if ((patch->new_name &&
                        ^
/datasets/git/apply.c:4733:35: note: +1
                                                       GITATTRIBUTES_FILE)) ||
                                                                            ^
/datasets/git/apply.c:4731:25: note: +1
                        if ((patch->new_name &&
                                             ^
/datasets/git/apply.c:4734:25: note: +1
                            (patch->old_name &&
                                             ^
/datasets/git/apply.c:4739:3: note: +1, nesting level increased to 2
                else {
                ^
/datasets/git/apply.c:4740:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (state->apply_verbosity > verbosity_normal)
                        ^
/datasets/git/apply.c:4748:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!list && !skipped_patch) {
        ^
/datasets/git/apply.c:4748:12: note: +1
        if (!list && !skipped_patch) {
                  ^
/datasets/git/apply.c:4749:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!state->allow_empty) {
                ^
/datasets/git/apply.c:4753:3: note: +1
                goto end;
                ^
/datasets/git/apply.c:4756:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (state->whitespace_error && (state->ws_error_action == die_on_ws_error))
        ^
/datasets/git/apply.c:4756:30: note: +1
        if (state->whitespace_error && (state->ws_error_action == die_on_ws_error))
                                    ^
/datasets/git/apply.c:4759:64: note: +1
        state->update_index = (state->check_index || state->ita_only) && state->apply;
                                                                      ^
/datasets/git/apply.c:4759:44: note: +1
        state->update_index = (state->check_index || state->ita_only) && state->apply;
                                                  ^
/datasets/git/apply.c:4760:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (state->update_index && !is_lock_file_locked(&state->lock_file)) {
        ^
/datasets/git/apply.c:4760:26: note: +1
        if (state->update_index && !is_lock_file_locked(&state->lock_file)) {
                                ^
/datasets/git/apply.c:4761:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (state->index_file)
                ^
/datasets/git/apply.c:4765:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/apply.c:4770:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (state->check_index && read_apply_cache(state) < 0) {
        ^
/datasets/git/apply.c:4770:25: note: +1
        if (state->check_index && read_apply_cache(state) < 0) {
                               ^
/datasets/git/apply.c:4773:3: note: +1
                goto end;
                ^
/datasets/git/apply.c:4776:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (state->check || state->apply) {
        ^
/datasets/git/apply.c:4776:19: note: +1
        if (state->check || state->apply) {
                         ^
/datasets/git/apply.c:4778:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (r == -128) {
                ^
/datasets/git/apply.c:4780:4: note: +1
                        goto end;
                        ^
/datasets/git/apply.c:4782:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (r < 0 && !state->apply_with_reject) {
                ^
/datasets/git/apply.c:4782:13: note: +1
                if (r < 0 && !state->apply_with_reject) {
                          ^
/datasets/git/apply.c:4784:4: note: +1
                        goto end;
                        ^
/datasets/git/apply.c:4788:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (state->apply) {
        ^
/datasets/git/apply.c:4790:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (write_res < 0) {
                ^
/datasets/git/apply.c:4792:4: note: +1
                        goto end;
                        ^
/datasets/git/apply.c:4794:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (write_res > 0) {
                ^
/datasets/git/apply.c:4796:35: note: +3, including nesting penalty of 2, nesting level increased to 3
                        res = state->apply_with_reject ? -1 : 1;
                                                       ^
/datasets/git/apply.c:4797:4: note: +1
                        goto end;
                        ^
/datasets/git/apply.c:4801:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (state->fake_ancestor &&
        ^
/datasets/git/apply.c:4801:27: note: +1
        if (state->fake_ancestor &&
                                 ^
/datasets/git/apply.c:4804:3: note: +1
                goto end;
                ^
/datasets/git/apply.c:4807:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (state->diffstat && state->apply_verbosity > verbosity_silent)
        ^
/datasets/git/apply.c:4807:22: note: +1
        if (state->diffstat && state->apply_verbosity > verbosity_silent)
                            ^
/datasets/git/apply.c:4810:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (state->numstat && state->apply_verbosity > verbosity_silent)
        ^
/datasets/git/apply.c:4810:21: note: +1
        if (state->numstat && state->apply_verbosity > verbosity_silent)
                           ^
/datasets/git/apply.c:4813:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (state->summary && state->apply_verbosity > verbosity_silent)
        ^
/datasets/git/apply.c:4813:21: note: +1
        if (state->summary && state->apply_verbosity > verbosity_silent)
                           ^
/datasets/git/apply.c:4816:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (flush_attributes)
        ^
/datasets/git/apply.c:4688:14: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
                       int fd,
                           ^
/datasets/git/apply.c:4692:9: warning: variable 'offset' is not initialized [cppcoreguidelines-init-variables]
        size_t offset;
               ^
                      = 0
/datasets/git/apply.c:4694:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct patch *list = NULL, **listp = &list;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/apply.c:4700:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (read_patch_file(&buf, fd) < 0)
                                          ^
                                           {
/datasets/git/apply.c:4701:11: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                return -128;
                        ^
/datasets/git/apply.c:4703:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (offset < buf.len) {
        ^
/datasets/git/apply.c:4703:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'offset' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (offset < buf.len) {
               ^
/datasets/git/apply.c:4704:17: warning: variable 'patch' is not initialized [cppcoreguidelines-init-variables]
                struct patch *patch;
                              ^
                                    = NULL
/datasets/git/apply.c:4705:7: warning: variable 'nr' is not initialized [cppcoreguidelines-init-variables]
                int nr;
                    ^
                       = 0
/datasets/git/apply.c:4705:7: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/apply.c:4708:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                patch->inaccurate_eof = !!(options & APPLY_OPT_INACCURATE_EOF);
                                           ^~~~~~~
/datasets/git/apply.c:4708:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                patch->inaccurate_eof = !!(options & APPLY_OPT_INACCURATE_EOF);
                                                     ^
/datasets/git/./apply.h:182:35: note: expanded from macro 'APPLY_OPT_INACCURATE_EOF'
#define APPLY_OPT_INACCURATE_EOF        (1<<0) /* accept inaccurate eof */
                                         ^
/datasets/git/apply.c:4709:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                patch->recount =  !!(options & APPLY_OPT_RECOUNT);
                                     ^~~~~~~
/datasets/git/apply.c:4709:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                patch->recount =  !!(options & APPLY_OPT_RECOUNT);
                                               ^
/datasets/git/./apply.h:183:29: note: expanded from macro 'APPLY_OPT_RECOUNT'
#define APPLY_OPT_RECOUNT               (1<<1) /* accept inaccurate line count */
                                         ^
/datasets/git/apply.c:4713:15: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        if (nr == -128) {
                                   ^
/datasets/git/apply.c:4714:12: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                res = -128;
                                       ^
/datasets/git/apply.c:4719:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (state->apply_in_reverse)
                                            ^
                                             {
/datasets/git/apply.c:4736:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                       GITATTRIBUTES_FILE)))
                                                                            ^
                                                                             {
/datasets/git/apply.c:4740:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (state->apply_verbosity > verbosity_normal)
                                                                      ^
                                                                       {
/datasets/git/apply.c:4751:11: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        res = -128;
                               ^
/datasets/git/apply.c:4756:77: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (state->whitespace_error && (state->ws_error_action == die_on_ws_error))
                                                                                   ^
                                                                                    {
/datasets/git/apply.c:4761:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (state->index_file)
                                      ^
                                       {
/datasets/git/apply.c:4765:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/apply.c:4772:10: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                res = -128;
                       ^
/datasets/git/apply.c:4777:7: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
                int r = check_patch_list(state, list);
                    ^
/datasets/git/apply.c:4778:13: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (r == -128) {
                          ^
/datasets/git/apply.c:4779:11: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        res = -128;
                               ^
/datasets/git/apply.c:4791:11: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        res = -128;
                               ^
/datasets/git/apply.c:4803:10: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                res = -128;
                       ^
/datasets/git/apply.c:4807:67: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (state->diffstat && state->apply_verbosity > verbosity_silent)
                                                                         ^
                                                                          {
/datasets/git/apply.c:4810:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (state->numstat && state->apply_verbosity > verbosity_silent)
                                                                        ^
                                                                         {
/datasets/git/apply.c:4813:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (state->summary && state->apply_verbosity > verbosity_silent)
                                                                        ^
                                                                         {
/datasets/git/apply.c:4816:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flush_attributes)
                             ^
                              {
/datasets/git/apply.c:4830:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/apply.c:4841:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/apply.c:4854:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/apply.c:4856:19: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c]
        state->p_value = atoi(arg);
                         ^
/datasets/git/apply.c:4866:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_ARG(arg);
        ^
/datasets/git/./parse-options.h:288:29: note: expanded from macro 'BUG_ON_OPT_ARG'
#define BUG_ON_OPT_ARG(arg) do { \
                            ^
/datasets/git/apply.c:4868:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unset)
                  ^
                   {
/datasets/git/apply.c:4870:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/apply.c:4880:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/apply.c:4883:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_whitespace_option(state, arg))
                                                ^
                                                 {
/datasets/git/apply.c:4893:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/apply.c:4901:5: warning: function 'apply_all_patches' has cognitive complexity of 33 (threshold 25) [readability-function-cognitive-complexity]
int apply_all_patches(struct apply_state *state,
    ^
/datasets/git/apply.c:4911:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < argc; i++) {
        ^
/datasets/git/apply.c:4916:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(arg, "-")) {
                ^
/datasets/git/apply.c:4918:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (res < 0)
                        ^
/datasets/git/apply.c:4923:5: note: +1, nesting level increased to 2
                } else
                  ^
/datasets/git/apply.c:4927:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (fd < 0) {
                ^
/datasets/git/apply.c:4931:4: note: +1
                        goto end;
                        ^
/datasets/git/apply.c:4938:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (res < 0)
                ^
/datasets/git/apply.c:4943:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (read_stdin) {
        ^
/datasets/git/apply.c:4945:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (res < 0)
                ^
/datasets/git/apply.c:4950:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (state->whitespace_error) {
        ^
/datasets/git/apply.c:4951:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (state->squelch_whitespace_errors &&
                ^
/datasets/git/apply.c:4951:40: note: +1
                if (state->squelch_whitespace_errors &&
                                                     ^
/datasets/git/apply.c:4960:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (state->ws_error_action == die_on_ws_error) {
                ^
/datasets/git/apply.c:4966:4: note: +1
                        goto end;
                        ^
/datasets/git/apply.c:4968:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (state->applied_after_fixing_ws && state->apply)
                ^
/datasets/git/apply.c:4968:38: note: +1
                if (state->applied_after_fixing_ws && state->apply)
                                                   ^
/datasets/git/apply.c:4975:8: note: +1, nesting level increased to 2
                else if (state->whitespace_error)
                     ^
/datasets/git/apply.c:4982:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (state->update_index) {
        ^
/datasets/git/apply.c:4984:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (res) {
                ^
/datasets/git/apply.c:4987:4: note: +1
                        goto end;
                        ^
/datasets/git/apply.c:4996:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (state->apply_verbosity <= verbosity_silent) {
        ^
/datasets/git/apply.c:5001:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (res > -1)
        ^
/datasets/git/apply.c:5003:20: note: +1, including nesting penalty of 0, nesting level increased to 1
        return (res == -1 ? 1 : 128);
                          ^
/datasets/git/apply.c:4906:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/apply.c:4906:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/apply.c:4907:6: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        int res;
            ^
                = 0
/datasets/git/apply.c:4911:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < argc; i++) {
        ^
/datasets/git/apply.c:4914:7: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
                int fd;
                    ^
                       = 0
/datasets/git/apply.c:4914:7: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/apply.c:4918:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (res < 0)
                                    ^
                                     {
/datasets/git/apply.c:4920:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        errs |= res;
                        ^~~~
/datasets/git/apply.c:4923:5: warning: do not use 'else' after 'continue' [llvm-else-after-return,readability-else-after-return]
                } else
                  ^~~~
                                        arg = to_free = prefix_filename(state->prefix, arg)
/datasets/git/apply.c:4923:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/apply.c:4926:26: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
                fd = open(arg, O_RDONLY);
                                       ^
                                        | O_CLOEXEC
/datasets/git/apply.c:4928:47: warning: function is not thread safe [concurrency-mt-unsafe]
                        error(_("can't open patch '%s': %s"), arg, strerror(errno));
                                                                   ^
/datasets/git/apply.c:4929:11: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        res = -128;
                               ^
/datasets/git/apply.c:4938:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (res < 0)
                            ^
                             {
/datasets/git/apply.c:4940:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                errs |= res;
                ^~~~
/datasets/git/apply.c:4945:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (res < 0)
                            ^
                             {
/datasets/git/apply.c:4947:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                errs |= res;
                ^~~~
/datasets/git/apply.c:4965:11: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        res = -128;
                               ^
/datasets/git/apply.c:4968:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (state->applied_after_fixing_ws && state->apply)
                                                                   ^
                                                                    {
/datasets/git/apply.c:4975:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (state->whitespace_error)
                                                 ^
                                                  {
/datasets/git/apply.c:4983:67: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                res = write_locked_index(state->repo->index, &state->lock_file, COMMIT_LOCK);
                                                                                ^
/datasets/git/./refs/../cache.h:744:23: note: expanded from macro 'COMMIT_LOCK'
#define COMMIT_LOCK             (1 << 0)
                                 ^
/datasets/git/apply.c:4986:11: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        res = -128;
                               ^
/datasets/git/apply.c:5001:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (res > -1)
                     ^
                      {
/datasets/git/apply.c:5003:26: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        return (res == -1 ? 1 : 128);
                                ^
/datasets/git/apply.c:5021:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "no-add", &state->no_add,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/apply.c:5023:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "stat", &state->diffstat,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/apply.c:5025:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_NOOP_NOARG(0, "allow-binary-replacement"),
                ^
/datasets/git/./parse-options.h:215:4: note: expanded from macro 'OPT_NOOP_NOARG'
          PARSE_OPT_HIDDEN | PARSE_OPT_NOARG, parse_opt_noop_cb }
          ^~~~~~~~~~~~~~~~
/datasets/git/apply.c:5026:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_NOOP_NOARG(0, "binary"),
                ^
/datasets/git/./parse-options.h:215:4: note: expanded from macro 'OPT_NOOP_NOARG'
          PARSE_OPT_HIDDEN | PARSE_OPT_NOARG, parse_opt_noop_cb }
          ^~~~~~~~~~~~~~~~
/datasets/git/apply.c:5027:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "numstat", &state->numstat,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/apply.c:5029:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "summary", &state->summary,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/apply.c:5031:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "check", &state->check,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/apply.c:5033:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "index", &state->check_index,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/apply.c:5035:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('N', "intent-to-add", &state->ita_only,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/apply.c:5037:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "cached", &state->cached,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/apply.c:5039:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL_F(0, "unsafe-paths", &state->unsafe_paths,
                ^
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/apply.c:5042:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "apply", force_apply,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/apply.c:5044:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('3', "3way", &state->threeway,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/apply.c:5049:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT('z', NULL, &state->line_termination,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/apply.c:5062:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('R', "reverse", &state->apply_in_reverse,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/apply.c:5064:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "unidiff-zero", &state->unidiff_zero,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/apply.c:5066:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "reject", &state->apply_with_reject,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/apply.c:5068:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "allow-overlap", &state->allow_overlap,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/apply.c:5071:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT(0, "inaccurate-eof", options,
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/apply.c:5073:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        APPLY_OPT_INACCURATE_EOF),
                        ^
/datasets/git/./apply.h:182:35: note: expanded from macro 'APPLY_OPT_INACCURATE_EOF'
#define APPLY_OPT_INACCURATE_EOF        (1<<0) /* accept inaccurate eof */
                                         ^
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/apply.c:5074:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT(0, "recount", options,
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/apply.c:5076:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        APPLY_OPT_RECOUNT),
                        ^
/datasets/git/./apply.h:183:29: note: expanded from macro 'APPLY_OPT_RECOUNT'
#define APPLY_OPT_RECOUNT               (1<<1) /* accept inaccurate line count */
                                         ^
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/apply.c:5080:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "allow-empty", &state->allow_empty,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/archive-tar.c:5:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "archive.h"
/datasets/git/archive-tar.c:12:1: warning: replace macro with enum [modernize-macro-to-enum]
#define RECORDSIZE      (512)
^~~~~~~~
                   =
/datasets/git/archive-tar.c:12:9: warning: macro 'RECORDSIZE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define RECORDSIZE      (512)
        ^
/datasets/git/archive-tar.c:15:13: warning: variable 'block' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char block[BLOCKSIZE];
            ^
/datasets/git/archive-tar.c:16:22: warning: variable 'offset' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned long offset;
                     ^
/datasets/git/archive-tar.c:18:12: warning: variable 'tar_umask' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int tar_umask = 002;
           ^
/datasets/git/archive-tar.c:20:60: warning: parameter name 'ar' is too short, expected at least 3 characters [readability-identifier-length]
static int write_tar_filter_archive(const struct archiver *ar,
                                                           ^
/datasets/git/archive-tar.c:43:23: warning: performing an implicit widening conversion to type 'size_t' (aka 'unsigned long') of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        write_or_die(1, buf, BLOCKSIZE);
                             ^
/datasets/git/archive-tar.c:13:20: note: expanded from macro 'BLOCKSIZE'
#define BLOCKSIZE       (RECORDSIZE * 20)
                         ^
/datasets/git/archive-tar.c:12:20: note: expanded from macro 'RECORDSIZE'
#define RECORDSIZE      (512)
                        ^
/datasets/git/archive-tar.c:43:23: note: make conversion explicit to silence this warning
        write_or_die(1, buf, BLOCKSIZE);
                             ^
/datasets/git/archive-tar.c:13:20: note: expanded from macro 'BLOCKSIZE'
#define BLOCKSIZE       (RECORDSIZE * 20)
                         ^~~~~~~~~~~~~~~
/datasets/git/archive-tar.c:12:20: note: expanded from macro 'RECORDSIZE'
#define RECORDSIZE      (512)
                        ^
/datasets/git/archive-tar.c:43:23: note: perform multiplication in a wider type
        write_or_die(1, buf, BLOCKSIZE);
                             ^
/datasets/git/archive-tar.c:13:20: note: expanded from macro 'BLOCKSIZE'
#define BLOCKSIZE       (RECORDSIZE * 20)
                         ^~~~~~~~~~
/datasets/git/archive-tar.c:12:20: note: expanded from macro 'RECORDSIZE'
#define RECORDSIZE      (512)
                        ^~~~
/datasets/git/archive-tar.c:46:15: warning: variable 'write_block' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static void (*write_block)(const void *) = tar_write_block;
              ^
/datasets/git/archive-tar.c:46:15: warning: variable 'write_block' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/archive-tar.c:51:16: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        if (offset == BLOCKSIZE) {
                      ^
/datasets/git/archive-tar.c:13:20: note: expanded from macro 'BLOCKSIZE'
#define BLOCKSIZE       (RECORDSIZE * 20)
                         ^
/datasets/git/archive-tar.c:12:20: note: expanded from macro 'RECORDSIZE'
#define RECORDSIZE      (512)
                        ^
/datasets/git/archive-tar.c:51:16: note: make conversion explicit to silence this warning
        if (offset == BLOCKSIZE) {
                      ^
/datasets/git/archive-tar.c:13:20: note: expanded from macro 'BLOCKSIZE'
#define BLOCKSIZE       (RECORDSIZE * 20)
                         ^~~~~~~~~~~~~~~
/datasets/git/archive-tar.c:12:20: note: expanded from macro 'RECORDSIZE'
#define RECORDSIZE      (512)
                        ^
/datasets/git/archive-tar.c:51:16: note: perform multiplication in a wider type
        if (offset == BLOCKSIZE) {
                      ^
/datasets/git/archive-tar.c:13:20: note: expanded from macro 'BLOCKSIZE'
#define BLOCKSIZE       (RECORDSIZE * 20)
                         ^~~~~~~~~~
/datasets/git/archive-tar.c:12:20: note: expanded from macro 'RECORDSIZE'
#define RECORDSIZE      (512)
                        ^~~~
/datasets/git/archive-tar.c:61:48: note: inferred assignment of ID-dependent value from ID-dependent variable chunk [altera-id-dependent-backward-branch]
static void do_write_blocked(const void *data, unsigned long size)
                                               ^
/datasets/git/archive-tar.c:66:25: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                unsigned long chunk = BLOCKSIZE - offset;
                                      ^
/datasets/git/archive-tar.c:13:20: note: expanded from macro 'BLOCKSIZE'
#define BLOCKSIZE       (RECORDSIZE * 20)
                         ^
/datasets/git/archive-tar.c:12:20: note: expanded from macro 'RECORDSIZE'
#define RECORDSIZE      (512)
                        ^
/datasets/git/archive-tar.c:66:25: note: make conversion explicit to silence this warning
                unsigned long chunk = BLOCKSIZE - offset;
                                      ^
/datasets/git/archive-tar.c:13:20: note: expanded from macro 'BLOCKSIZE'
#define BLOCKSIZE       (RECORDSIZE * 20)
                         ^~~~~~~~~~~~~~~
/datasets/git/archive-tar.c:12:20: note: expanded from macro 'RECORDSIZE'
#define RECORDSIZE      (512)
                        ^
/datasets/git/archive-tar.c:66:25: note: perform multiplication in a wider type
                unsigned long chunk = BLOCKSIZE - offset;
                                      ^
/datasets/git/archive-tar.c:13:20: note: expanded from macro 'BLOCKSIZE'
#define BLOCKSIZE       (RECORDSIZE * 20)
                         ^~~~~~~~~~
/datasets/git/archive-tar.c:12:20: note: expanded from macro 'RECORDSIZE'
#define RECORDSIZE      (512)
                        ^~~~
/datasets/git/archive-tar.c:67:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (size < chunk)
                                 ^
                                  {
/datasets/git/archive-tar.c:69:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(block + offset, buf, chunk);
                ^~~~~~
/datasets/git/archive-tar.c:69:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(block + offset, buf, chunk);
                ^~~~~~
/datasets/git/archive-tar.c:75:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (size >= BLOCKSIZE) {
        ^
/datasets/git/archive-tar.c:75:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'size' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (size >= BLOCKSIZE) {
               ^
/datasets/git/archive-tar.c:75:17: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        while (size >= BLOCKSIZE) {
                       ^
/datasets/git/archive-tar.c:13:20: note: expanded from macro 'BLOCKSIZE'
#define BLOCKSIZE       (RECORDSIZE * 20)
                         ^
/datasets/git/archive-tar.c:12:20: note: expanded from macro 'RECORDSIZE'
#define RECORDSIZE      (512)
                        ^
/datasets/git/archive-tar.c:75:17: note: make conversion explicit to silence this warning
        while (size >= BLOCKSIZE) {
                       ^
/datasets/git/archive-tar.c:13:20: note: expanded from macro 'BLOCKSIZE'
#define BLOCKSIZE       (RECORDSIZE * 20)
                         ^~~~~~~~~~~~~~~
/datasets/git/archive-tar.c:12:20: note: expanded from macro 'RECORDSIZE'
#define RECORDSIZE      (512)
                        ^
/datasets/git/archive-tar.c:75:17: note: perform multiplication in a wider type
        while (size >= BLOCKSIZE) {
                       ^
/datasets/git/archive-tar.c:13:20: note: expanded from macro 'BLOCKSIZE'
#define BLOCKSIZE       (RECORDSIZE * 20)
                         ^~~~~~~~~~
/datasets/git/archive-tar.c:12:20: note: expanded from macro 'RECORDSIZE'
#define RECORDSIZE      (512)
                        ^~~~
/datasets/git/archive-tar.c:77:11: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                size -= BLOCKSIZE;
                        ^
/datasets/git/archive-tar.c:13:20: note: expanded from macro 'BLOCKSIZE'
#define BLOCKSIZE       (RECORDSIZE * 20)
                         ^
/datasets/git/archive-tar.c:12:20: note: expanded from macro 'RECORDSIZE'
#define RECORDSIZE      (512)
                        ^
/datasets/git/archive-tar.c:77:11: note: make conversion explicit to silence this warning
                size -= BLOCKSIZE;
                        ^
/datasets/git/archive-tar.c:13:20: note: expanded from macro 'BLOCKSIZE'
#define BLOCKSIZE       (RECORDSIZE * 20)
                         ^~~~~~~~~~~~~~~
/datasets/git/archive-tar.c:12:20: note: expanded from macro 'RECORDSIZE'
#define RECORDSIZE      (512)
                        ^
/datasets/git/archive-tar.c:77:11: note: perform multiplication in a wider type
                size -= BLOCKSIZE;
                        ^
/datasets/git/archive-tar.c:13:20: note: expanded from macro 'BLOCKSIZE'
#define BLOCKSIZE       (RECORDSIZE * 20)
                         ^~~~~~~~~~
/datasets/git/archive-tar.c:12:20: note: expanded from macro 'RECORDSIZE'
#define RECORDSIZE      (512)
                        ^~~~
/datasets/git/archive-tar.c:78:3: warning: result of multiplication in type 'int' is used as a pointer offset after an implicit widening conversion to type 'ptrdiff_t' [bugprone-implicit-widening-of-multiplication-result]
                buf += BLOCKSIZE;
                ^
/datasets/git/archive-tar.c:78:10: note: make conversion explicit to silence this warning
                buf += BLOCKSIZE;
                       ^
/datasets/git/archive-tar.c:13:20: note: expanded from macro 'BLOCKSIZE'
#define BLOCKSIZE       (RECORDSIZE * 20)
                         ^~~~~~~~~~~~~~~
/datasets/git/archive-tar.c:12:20: note: expanded from macro 'RECORDSIZE'
#define RECORDSIZE      (512)
                        ^
/datasets/git/archive-tar.c:78:10: note: perform multiplication in a wider type
                buf += BLOCKSIZE;
                       ^
/datasets/git/archive-tar.c:13:20: note: expanded from macro 'BLOCKSIZE'
#define BLOCKSIZE       (RECORDSIZE * 20)
                         ^~~~~~~~~~
/datasets/git/archive-tar.c:12:20: note: expanded from macro 'RECORDSIZE'
#define RECORDSIZE      (512)
                        ^~~~
/datasets/git/archive-tar.c:81:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(block + offset, buf, size);
                ^~~~~~
/datasets/git/archive-tar.c:81:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(block + offset, buf, size);
                ^~~~~~
/datasets/git/archive-tar.c:88:16: warning: variable 'tail' is not initialized [cppcoreguidelines-init-variables]
        unsigned long tail;
                      ^
                           = 0
/datasets/git/archive-tar.c:91:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(block + offset, 0, RECORDSIZE - tail);
                ^~~~~~
/datasets/git/archive-tar.c:91:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(block + offset, 0, RECORDSIZE - tail);
                ^~~~~~
/datasets/git/archive-tar.c:109:13: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        int tail = BLOCKSIZE - offset;
                   ^
/datasets/git/archive-tar.c:13:20: note: expanded from macro 'BLOCKSIZE'
#define BLOCKSIZE       (RECORDSIZE * 20)
                         ^
/datasets/git/archive-tar.c:12:20: note: expanded from macro 'RECORDSIZE'
#define RECORDSIZE      (512)
                        ^
/datasets/git/archive-tar.c:109:13: note: make conversion explicit to silence this warning
        int tail = BLOCKSIZE - offset;
                   ^
/datasets/git/archive-tar.c:13:20: note: expanded from macro 'BLOCKSIZE'
#define BLOCKSIZE       (RECORDSIZE * 20)
                         ^~~~~~~~~~~~~~~
/datasets/git/archive-tar.c:12:20: note: expanded from macro 'RECORDSIZE'
#define RECORDSIZE      (512)
                        ^
/datasets/git/archive-tar.c:109:13: note: perform multiplication in a wider type
        int tail = BLOCKSIZE - offset;
                   ^
/datasets/git/archive-tar.c:13:20: note: expanded from macro 'BLOCKSIZE'
#define BLOCKSIZE       (RECORDSIZE * 20)
                         ^~~~~~~~~~
/datasets/git/archive-tar.c:12:20: note: expanded from macro 'RECORDSIZE'
#define RECORDSIZE      (512)
                        ^~~~
/datasets/git/archive-tar.c:110:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(block + offset, 0, tail);
        ^~~~~~
/datasets/git/archive-tar.c:110:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(block + offset, 0, tail);
        ^~~~~~
/datasets/git/archive-tar.c:113:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(block, 0, offset);
                ^~~~~~
/datasets/git/archive-tar.c:113:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(block, 0, offset);
                ^~~~~~
/datasets/git/archive-tar.c:122:46: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int stream_blocked(struct repository *r, const struct object_id *oid)
                                             ^
/datasets/git/archive-tar.c:124:22: warning: variable 'st' is not initialized [cppcoreguidelines-init-variables]
        struct git_istream *st;
                            ^
                               = NULL
/datasets/git/archive-tar.c:124:22: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/archive-tar.c:125:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/archive-tar.c:126:16: warning: variable 'sz' is not initialized [cppcoreguidelines-init-variables]
        unsigned long sz;
                      ^
                         = 0
/datasets/git/archive-tar.c:126:16: warning: variable name 'sz' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/archive-tar.c:128:10: warning: variable 'readlen' is not initialized [cppcoreguidelines-init-variables]
        ssize_t readlen;
                ^
                        = 0
/datasets/git/archive-tar.c:131:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!st)
                ^
                 {
/datasets/git/archive-tar.c:133:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/archive-tar.c:135:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (readlen <= 0)
                                 ^
                                  {
/datasets/git/archive-tar.c:140:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!readlen)
                     ^
                      {
/datasets/git/archive-tar.c:142:9: warning: narrowing conversion from 'ssize_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return readlen;
               ^
/datasets/git/archive-tar.c:151:53: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static void strbuf_append_ext_header(struct strbuf *sb, const char *keyword,
                                                    ^
/datasets/git/archive-tar.c:151:57: warning: 2 adjacent parameters of 'strbuf_append_ext_header' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void strbuf_append_ext_header(struct strbuf *sb, const char *keyword,
                                                        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/archive-tar.c:151:69: note: the first parameter in the range is 'keyword'
static void strbuf_append_ext_header(struct strbuf *sb, const char *keyword,
                                                                    ^~~~~~~
/datasets/git/archive-tar.c:152:22: note: the last parameter in the range is 'value'
                                     const char *value, size_t valuelen)
                                                 ^~~~~
/datasets/git/archive-tar.c:155:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t len, tmp;
        ^~~~~~~~~~~~~~~~
/datasets/git/archive-tar.c:155:9: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        size_t len, tmp;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/archive-tar.c:155:14: warning: variable 'tmp' is not initialized [cppcoreguidelines-init-variables]
        size_t len, tmp;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/archive-tar.c:159:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (tmp = 1; len / 10 >= tmp; tmp *= 10)
        ^
/datasets/git/archive-tar.c:159:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (tmp = 1; len / 10 >= tmp; tmp *= 10)
                      ^
/datasets/git/archive-tar.c:159:22: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        for (tmp = 1; len / 10 >= tmp; tmp *= 10)
                            ^
/datasets/git/archive-tar.c:159:40: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        for (tmp = 1; len / 10 >= tmp; tmp *= 10)
                                              ^
/datasets/git/archive-tar.c:159:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (tmp = 1; len / 10 >= tmp; tmp *= 10)
                                                 ^
                                                  {
/datasets/git/archive-tar.c:167:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len != sb->len - orig_len)
                                      ^
                                       {
/datasets/git/archive-tar.c:176:58: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static void strbuf_append_ext_header_uint(struct strbuf *sb,
                                                         ^
/datasets/git/archive-tar.c:180:11: warning: 40 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        char buf[40]; /* big enough for 2^128 in decimal, plus NUL */
                 ^
/datasets/git/archive-tar.c:181:6: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int len;
            ^
                = 0
/datasets/git/archive-tar.c:189:23: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        const unsigned char *p = (const unsigned char *)header;
                             ^
/datasets/git/archive-tar.c:191:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (p < (const unsigned char *)header->chksum)
        ^
/datasets/git/archive-tar.c:191:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (p < (const unsigned char *)header->chksum)
               ^
/datasets/git/archive-tar.c:191:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (p < (const unsigned char *)header->chksum)
                                                         ^
                                                          {
/datasets/git/archive-tar.c:195:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (p < (const unsigned char *)header + sizeof(struct ustar_header))
        ^
/datasets/git/archive-tar.c:195:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (p < (const unsigned char *)header + sizeof(struct ustar_header))
               ^
/datasets/git/archive-tar.c:195:73: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (p < (const unsigned char *)header + sizeof(struct ustar_header))
                                                                               ^
                                                                                {
/datasets/git/archive-tar.c:200:49: warning: 2 adjacent parameters of 'get_path_prefix' of similar type ('size_t') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static size_t get_path_prefix(const char *path, size_t pathlen, size_t maxlen)
                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/archive-tar.c:200:56: note: the first parameter in the range is 'pathlen'
static size_t get_path_prefix(const char *path, size_t pathlen, size_t maxlen)
                                                       ^~~~~~~
/datasets/git/archive-tar.c:200:72: note: the last parameter in the range is 'maxlen'
static size_t get_path_prefix(const char *path, size_t pathlen, size_t maxlen)
                                                                       ^~~~~~
/datasets/git/archive-tar.c:202:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        size_t i = pathlen;
               ^
/datasets/git/archive-tar.c:203:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (i > 1 && path[i - 1] == '/')
                                        ^
                                         {
/datasets/git/archive-tar.c:205:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (i > maxlen)
                       ^
                        {
/datasets/git/archive-tar.c:207:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        do {
        ^
/datasets/git/archive-tar.c:209:11: warning: backward branch (do loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        } while (i > 0 && path[i] != '/');
                 ^
/datasets/git/archive-tar.c:217:56: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        xsnprintf(header->mode, sizeof(header->mode), "%07o", mode & 07777);
                                                              ^      ~~~~~
/datasets/git/archive-tar.c:217:63: warning: 07777 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        xsnprintf(header->mode, sizeof(header->mode), "%07o", mode & 07777);
                                                                     ^
/datasets/git/archive-tar.c:228:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(header->magic, "ustar", 6);
        ^~~~~~
/datasets/git/archive-tar.c:228:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(header->magic, "ustar", 6);
        ^~~~~~
/datasets/git/archive-tar.c:228:33: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        memcpy(header->magic, "ustar", 6);
                                       ^
/datasets/git/archive-tar.c:229:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(header->version, "00", 2);
        ^~~~~~
/datasets/git/archive-tar.c:229:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(header->version, "00", 2);
        ^~~~~~
/datasets/git/archive-tar.c:239:15: warning: variable 'mode' is not initialized [cppcoreguidelines-init-variables]
        unsigned int mode;
                     ^
                          = 0
/datasets/git/archive-tar.c:240:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&header, 0, sizeof(header));
        ^~~~~~
/datasets/git/archive-tar.c:240:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&header, 0, sizeof(header));
        ^~~~~~
/datasets/git/archive-tar.c:242:9: warning: 0100666 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mode = 0100666;
               ^
/datasets/git/archive-tar.c:251:25: warning: 2 adjacent parameters of 'write_tar_entry' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                           const char *path, size_t pathlen,
                                             ^~~~~~~~~~~~~~~
/datasets/git/archive-tar.c:251:32: note: the first parameter in the range is 'pathlen'
                           const char *path, size_t pathlen,
                                                    ^~~~~~~
/datasets/git/archive-tar.c:252:20: note: the last parameter in the range is 'mode'
                           unsigned int mode,
                                        ^~~~
/datasets/git/archive-tar.c:251:25: note: 
                           const char *path, size_t pathlen,
                                             ^
/datasets/git/archive-tar.c:252:7: note: 'size_t' and 'unsigned int' may be implicitly converted: 'size_t' (as 'unsigned long') -> 'unsigned int', 'unsigned int' -> 'size_t' (as 'unsigned long')
                           unsigned int mode,
                           ^
/datasets/git/archive-tar.c:257:16: warning: variable 'size_in_header' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size_in_header;
                      ^
                                     = 0
/datasets/git/archive-tar.c:260:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&header, 0, sizeof(header));
        ^~~~~~
/datasets/git/archive-tar.c:260:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&header, 0, sizeof(header));
        ^~~~~~
/datasets/git/archive-tar.c:262:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (S_ISDIR(mode) || S_ISGITLINK(mode)) {
                             ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/archive-tar.c:264:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mode = (mode | 0777) & ~tar_umask;
                       ^               ~~~~~~~~~~
/datasets/git/archive-tar.c:264:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mode = (mode | 0777) & ~tar_umask;
                        ^      ~~~~
/datasets/git/archive-tar.c:264:18: warning: 0777 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mode = (mode | 0777) & ~tar_umask;
                               ^
/datasets/git/archive-tar.c:264:26: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                mode = (mode | 0777) & ~tar_umask;
                                       ^~~~~~~~~~
/datasets/git/archive-tar.c:267:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mode |= 0777;
                ^       ~~~~
/datasets/git/archive-tar.c:267:11: warning: 0777 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mode |= 0777;
                        ^
/datasets/git/archive-tar.c:270:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mode = (mode | ((mode & 0100) ? 0777 : 0666)) & ~tar_umask;
                       ^                                        ~~~~~~~~~~
/datasets/git/archive-tar.c:270:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mode = (mode | ((mode & 0100) ? 0777 : 0666)) & ~tar_umask;
                        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/archive-tar.c:270:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mode = (mode | ((mode & 0100) ? 0777 : 0666)) & ~tar_umask;
                                 ^      ~~~~
/datasets/git/archive-tar.c:270:27: warning: 0100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mode = (mode | ((mode & 0100) ? 0777 : 0666)) & ~tar_umask;
                                        ^
/datasets/git/archive-tar.c:270:35: warning: 0777 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mode = (mode | ((mode & 0100) ? 0777 : 0666)) & ~tar_umask;
                                                ^
/datasets/git/archive-tar.c:270:42: warning: 0666 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mode = (mode | ((mode & 0100) ? 0777 : 0666)) & ~tar_umask;
                                                       ^
/datasets/git/archive-tar.c:270:51: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                mode = (mode | ((mode & 0100) ? 0777 : 0666)) & ~tar_umask;
                                                                ^~~~~~~~~~
/datasets/git/archive-tar.c:280:4: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memcpy(header.prefix, path, plen);
                        ^~~~~~
/datasets/git/archive-tar.c:280:4: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                        memcpy(header.prefix, path, plen);
                        ^~~~~~
/datasets/git/archive-tar.c:281:4: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memcpy(header.name, path + plen + 1, rest);
                        ^~~~~~
/datasets/git/archive-tar.c:281:4: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                        memcpy(header.name, path + plen + 1, rest);
                        ^~~~~~
/datasets/git/archive-tar.c:288:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/archive-tar.c:289:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(header.name, path, pathlen);
                ^~~~~~
/datasets/git/archive-tar.c:289:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(header.name, path, pathlen);
                ^~~~~~
/datasets/git/archive-tar.c:297:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/archive-tar.c:298:4: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memcpy(header.linkname, buffer, size);
                        ^~~~~~
/datasets/git/archive-tar.c:298:4: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                        memcpy(header.linkname, buffer, size);
                        ^~~~~~
/datasets/git/archive-tar.c:316:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (buffer)
                           ^
                            {
/datasets/git/archive-tar.c:318:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/archive-tar.c:329:15: warning: variable 'mode' is not initialized [cppcoreguidelines-init-variables]
        unsigned int mode;
                     ^
                          = 0
/datasets/git/archive-tar.c:331:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oid)
                ^
                 {
/datasets/git/archive-tar.c:341:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ext_header.len)
                            ^
                             {
/datasets/git/archive-tar.c:344:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&header, 0, sizeof(header));
        ^~~~~~
/datasets/git/archive-tar.c:344:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&header, 0, sizeof(header));
        ^~~~~~
/datasets/git/archive-tar.c:346:9: warning: 0100666 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mode = 0100666;
               ^
/datasets/git/archive-tar.c:354:26: warning: variable 'tar_filters' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct archiver **tar_filters;
                         ^
/datasets/git/archive-tar.c:354:26: warning: variable 'tar_filters' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/archive-tar.c:355:12: warning: variable 'nr_tar_filters' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int nr_tar_filters;
           ^
/datasets/git/archive-tar.c:356:12: warning: variable 'alloc_tar_filters' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int alloc_tar_filters;
           ^
/datasets/git/archive-tar.c:360:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/archive-tar.c:360:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/archive-tar.c:361:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr_tar_filters; i++) {
        ^
/datasets/git/archive-tar.c:362:20: warning: variable name 'ar' is too short, expected at least 3 characters [readability-identifier-length]
                struct archiver *ar = tar_filters[i];
                                 ^
/datasets/git/archive-tar.c:363:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strncmp(ar->name, name, len) && !ar->name[len])
                                                                    ^
                                                                     {
/datasets/git/archive-tar.c:372:19: warning: variable 'ar' is not initialized [cppcoreguidelines-init-variables]
        struct archiver *ar;
                         ^
                            = NULL
/datasets/git/archive-tar.c:372:19: warning: variable name 'ar' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/archive-tar.c:373:14: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
        const char *name;
                    ^
                         = NULL
/datasets/git/archive-tar.c:374:14: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        const char *type;
                    ^
                         = NULL
/datasets/git/archive-tar.c:375:9: warning: variable 'namelen' is not initialized [cppcoreguidelines-init-variables]
        size_t namelen;
               ^
                       = 0
/datasets/git/archive-tar.c:377:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_config_key(var, "tar", &name, &namelen, &type) < 0 || !name)
                                                                              ^
                                                                               {
/datasets/git/archive-tar.c:385:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ar->flags = ARCHIVER_WANT_COMPRESSION_LEVELS |
                            ^
/datasets/git/./archive.h:39:42: note: expanded from macro 'ARCHIVER_WANT_COMPRESSION_LEVELS'
#define ARCHIVER_WANT_COMPRESSION_LEVELS 1
                                         ^
/datasets/git/archive-tar.c:387:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                ALLOC_GROW(tar_filters, nr_tar_filters + 1, alloc_tar_filters);
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/archive-tar.c:387:3: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                ALLOC_GROW(tar_filters, nr_tar_filters + 1, alloc_tar_filters);
                ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/archive-tar.c:392:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
                            {
/datasets/git/archive-tar.c:399:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (git_config_bool(var, value))
                                                ^
                                                 {
/datasets/git/archive-tar.c:400:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ar->flags |= ARCHIVER_REMOTE;
                        ^
/datasets/git/archive-tar.c:401:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/archive-tar.c:402:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ar->flags &= ~ARCHIVER_REMOTE;
                        ^            ~~~~~~~~~~~~~~~~
/datasets/git/archive-tar.c:402:17: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                        ar->flags &= ~ARCHIVER_REMOTE;
                                     ^
/datasets/git/archive-tar.c:409:69: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int git_tar_config(const char *var, const char *value, void *cb)
                                                                    ^
/datasets/git/archive-tar.c:413:16: warning: narrowing conversion from '__mode_t' (aka 'unsigned int') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        tar_umask = umask(0);
                                    ^
/datasets/git/archive-tar.c:424:53: warning: parameter name 'ar' is too short, expected at least 3 characters [readability-identifier-length]
static int write_tar_archive(const struct archiver *ar UNUSED,
                                                    ^
/datasets/git/archive-tar.c:431:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!err)
                 ^
                  {
/datasets/git/archive-tar.c:436:20: warning: variable 'gzstream' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static git_zstream gzstream;
                   ^
/datasets/git/archive-tar.c:437:22: warning: variable 'outbuf' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned char outbuf[16384];
                     ^
/datasets/git/archive-tar.c:437:29: warning: 16384 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
static unsigned char outbuf[16384];
                            ^
/datasets/git/archive-tar.c:441:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (gzstream.avail_in || flush == Z_FINISH) {
        ^
/datasets/git/archive-tar.c:447:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (status == Z_STREAM_END)
                                                   ^
                                                    {
/datasets/git/archive-tar.c:450:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (status != Z_OK && status != Z_BUF_ERROR)
                                                            ^
                                                             {
/datasets/git/archive-tar.c:458:22: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        gzstream.avail_in = BLOCKSIZE;
                            ^
/datasets/git/archive-tar.c:13:20: note: expanded from macro 'BLOCKSIZE'
#define BLOCKSIZE       (RECORDSIZE * 20)
                         ^
/datasets/git/archive-tar.c:12:20: note: expanded from macro 'RECORDSIZE'
#define RECORDSIZE      (512)
                        ^
/datasets/git/archive-tar.c:458:22: note: make conversion explicit to silence this warning
        gzstream.avail_in = BLOCKSIZE;
                            ^
/datasets/git/archive-tar.c:13:20: note: expanded from macro 'BLOCKSIZE'
#define BLOCKSIZE       (RECORDSIZE * 20)
                         ^~~~~~~~~~~~~~~
/datasets/git/archive-tar.c:12:20: note: expanded from macro 'RECORDSIZE'
#define RECORDSIZE      (512)
                        ^
/datasets/git/archive-tar.c:458:22: note: perform multiplication in a wider type
        gzstream.avail_in = BLOCKSIZE;
                            ^
/datasets/git/archive-tar.c:13:20: note: expanded from macro 'BLOCKSIZE'
#define BLOCKSIZE       (RECORDSIZE * 20)
                         ^~~~~~~~~~
/datasets/git/archive-tar.c:12:20: note: expanded from macro 'RECORDSIZE'
#define RECORDSIZE      (512)
                        ^~~~
/datasets/git/archive-tar.c:464:60: warning: parameter name 'ar' is too short, expected at least 3 characters [readability-identifier-length]
static int write_tar_filter_archive(const struct archiver *ar,
                                                           ^
/datasets/git/archive-tar.c:472:6: warning: variable 'r' is not initialized [cppcoreguidelines-init-variables]
        int r;
            ^
              = 0
/datasets/git/archive-tar.c:472:6: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/archive-tar.c:474:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ar->filter_command)
                                ^
                                 {
/datasets/git/archive-tar.c:481:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (deflateSetHeader(&gzstream.z, &gzhead) != Z_OK)
                                                                   ^
                                                                    {
/datasets/git/archive-tar.c:495:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (args->compression_level >= 0)
                                         ^
                                          {
/datasets/git/archive-tar.c:503:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (start_command(&filter) < 0)
                                       ^
                                        {
/datasets/git/archive-tar.c:506:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (dup2(filter.in, 1) < 0)
                                   ^
                                    {
/datasets/git/archive-tar.c:513:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (finish_command(&filter) != 0)
                                         ^
                                          {
/datasets/git/archive-tar.c:520:24: warning: variable 'tar_archiver' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct archiver tar_archiver = {
                       ^
/datasets/git/archive-tar.c:528:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/archive-tar.c:528:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/archive-tar.c:536:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr_tar_filters; i++) {
        ^
/datasets/git/archive-tar.c:538:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (tar_filters[i]->filter_command)
                                                   ^
                                                    {
/datasets/git/archive-zip.c:5:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "archive.h"
/datasets/git/archive-zip.c:14:12: warning: variable 'zip_date' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int zip_date;
           ^
/datasets/git/archive-zip.c:15:12: warning: variable 'zip_time' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int zip_time;
           ^
/datasets/git/archive-zip.c:18:22: warning: variable 'zip_dir' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct strbuf zip_dir;
                     ^
/datasets/git/archive-zip.c:20:18: warning: variable 'zip_offset' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static uintmax_t zip_offset;
                 ^
/datasets/git/archive-zip.c:21:17: warning: variable 'zip_dir_entries' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static uint64_t zip_dir_entries;
                ^
/datasets/git/archive-zip.c:23:21: warning: variable 'max_creator_version' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned int max_creator_version;
                    ^
/datasets/git/archive-zip.c:25:1: warning: replace macro with enum [modernize-macro-to-enum]
#define ZIP_STREAM      (1 <<  3)
^~~~~~~~
                   =             ,
/datasets/git/archive-zip.c:25:9: warning: macro 'ZIP_STREAM' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define ZIP_STREAM      (1 <<  3)
        ^
/datasets/git/archive-zip.c:26:9: warning: macro 'ZIP_UTF8' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define ZIP_UTF8        (1 << 11)
        ^
/datasets/git/archive-zip.c:33:8: warning: accessing fields in struct 'zip_local_header' is inefficient due to poor alignment; currently aligned to 1 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct zip_local_header {
       ^
/datasets/git/archive-zip.c:33:8: note: use "__attribute__((aligned(32)))" to align struct 'zip_local_header' to 32 bytes
/datasets/git/archive-zip.c:48:8: warning: accessing fields in struct 'zip_data_desc' is inefficient due to poor alignment; currently aligned to 1 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct zip_data_desc {
       ^
/datasets/git/archive-zip.c:48:8: note: use "__attribute__((aligned(32)))" to align struct 'zip_data_desc' to 32 bytes
/datasets/git/archive-zip.c:56:8: warning: accessing fields in struct 'zip64_data_desc' is inefficient due to poor alignment; currently aligned to 1 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct zip64_data_desc {
       ^
/datasets/git/archive-zip.c:56:8: note: use "__attribute__((aligned(32)))" to align struct 'zip64_data_desc' to 32 bytes
/datasets/git/archive-zip.c:59:32: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        unsigned char compressed_size[8];
                                      ^
/datasets/git/archive-zip.c:60:21: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        unsigned char size[8];
                           ^
/datasets/git/archive-zip.c:64:8: warning: accessing fields in struct 'zip_dir_trailer' is inefficient due to poor alignment; currently aligned to 1 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct zip_dir_trailer {
       ^
/datasets/git/archive-zip.c:64:8: note: use "__attribute__((aligned(32)))" to align struct 'zip_dir_trailer' to 32 bytes
/datasets/git/archive-zip.c:76:8: warning: accessing fields in struct 'zip_extra_mtime' is inefficient due to poor alignment; currently aligned to 1 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct zip_extra_mtime {
       ^
/datasets/git/archive-zip.c:76:8: note: use "__attribute__((aligned(16)))" to align struct 'zip_extra_mtime' to 16 bytes
/datasets/git/archive-zip.c:84:8: warning: accessing fields in struct 'zip64_extra' is inefficient due to poor alignment; currently aligned to 1 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct zip64_extra {
       ^
/datasets/git/archive-zip.c:84:8: note: use "__attribute__((aligned(32)))" to align struct 'zip64_extra' to 32 bytes
/datasets/git/archive-zip.c:87:21: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        unsigned char size[8];
                           ^
/datasets/git/archive-zip.c:88:32: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        unsigned char compressed_size[8];
                                      ^
/datasets/git/archive-zip.c:92:8: warning: accessing fields in struct 'zip64_dir_trailer' is inefficient due to poor alignment; currently aligned to 1 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct zip64_dir_trailer {
       ^
/datasets/git/archive-zip.c:92:8: note: use "__attribute__((aligned(64)))" to align struct 'zip64_dir_trailer' to 64 bytes
/datasets/git/archive-zip.c:94:28: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        unsigned char record_size[8];
                                  ^
/datasets/git/archive-zip.c:99:37: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        unsigned char entries_on_this_disk[8];
                                           ^
/datasets/git/archive-zip.c:100:24: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        unsigned char entries[8];
                              ^
/datasets/git/archive-zip.c:101:21: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        unsigned char size[8];
                           ^
/datasets/git/archive-zip.c:102:23: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        unsigned char offset[8];
                             ^
/datasets/git/archive-zip.c:106:8: warning: accessing fields in struct 'zip64_dir_trailer_locator' is inefficient due to poor alignment; currently aligned to 1 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct zip64_dir_trailer_locator {
       ^
/datasets/git/archive-zip.c:106:8: note: use "__attribute__((aligned(32)))" to align struct 'zip64_dir_trailer_locator' to 32 bytes
/datasets/git/archive-zip.c:109:23: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        unsigned char offset[8];
                             ^
/datasets/git/archive-zip.c:139:12: warning: 0xff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        dest[0] = 0xff & n;
                  ^
/datasets/git/archive-zip.c:139:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        dest[0] = 0xff & n;
                  ^~~~
/datasets/git/archive-zip.c:140:12: warning: 0xff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        dest[1] = 0xff & (n >> 010);
                  ^
/datasets/git/archive-zip.c:140:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        dest[1] = 0xff & (n >> 010);
                  ^~~~
/datasets/git/archive-zip.c:140:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        dest[1] = 0xff & (n >> 010);
                          ^    ~~~
/datasets/git/archive-zip.c:140:25: warning: 010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        dest[1] = 0xff & (n >> 010);
                               ^
/datasets/git/archive-zip.c:145:12: warning: 0xff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        dest[0] = 0xff & n;
                  ^
/datasets/git/archive-zip.c:145:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        dest[0] = 0xff & n;
                  ^~~~
/datasets/git/archive-zip.c:146:12: warning: 0xff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        dest[1] = 0xff & (n >> 010);
                  ^
/datasets/git/archive-zip.c:146:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        dest[1] = 0xff & (n >> 010);
                  ^~~~
/datasets/git/archive-zip.c:146:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        dest[1] = 0xff & (n >> 010);
                          ^    ~~~
/datasets/git/archive-zip.c:146:25: warning: 010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        dest[1] = 0xff & (n >> 010);
                               ^
/datasets/git/archive-zip.c:147:12: warning: 0xff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        dest[2] = 0xff & (n >> 020);
                  ^
/datasets/git/archive-zip.c:147:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        dest[2] = 0xff & (n >> 020);
                  ^~~~
/datasets/git/archive-zip.c:147:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        dest[2] = 0xff & (n >> 020);
                          ^    ~~~
/datasets/git/archive-zip.c:147:25: warning: 020 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        dest[2] = 0xff & (n >> 020);
                               ^
/datasets/git/archive-zip.c:148:12: warning: 0xff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        dest[3] = 0xff & (n >> 030);
                  ^
/datasets/git/archive-zip.c:148:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        dest[3] = 0xff & (n >> 030);
                  ^~~~
/datasets/git/archive-zip.c:148:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        dest[3] = 0xff & (n >> 030);
                          ^    ~~~
/datasets/git/archive-zip.c:148:25: warning: 030 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        dest[3] = 0xff & (n >> 030);
                               ^
/datasets/git/archive-zip.c:153:12: warning: 0xff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        dest[0] = 0xff & n;
                  ^
/datasets/git/archive-zip.c:153:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        dest[0] = 0xff & n;
                  ^~~~
/datasets/git/archive-zip.c:154:12: warning: 0xff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        dest[1] = 0xff & (n >> 010);
                  ^
/datasets/git/archive-zip.c:154:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        dest[1] = 0xff & (n >> 010);
                  ^~~~
/datasets/git/archive-zip.c:154:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        dest[1] = 0xff & (n >> 010);
                          ^    ~~~
/datasets/git/archive-zip.c:154:25: warning: 010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        dest[1] = 0xff & (n >> 010);
                               ^
/datasets/git/archive-zip.c:155:12: warning: 0xff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        dest[2] = 0xff & (n >> 020);
                  ^
/datasets/git/archive-zip.c:155:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        dest[2] = 0xff & (n >> 020);
                  ^~~~
/datasets/git/archive-zip.c:155:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        dest[2] = 0xff & (n >> 020);
                          ^    ~~~
/datasets/git/archive-zip.c:155:25: warning: 020 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        dest[2] = 0xff & (n >> 020);
                               ^
/datasets/git/archive-zip.c:156:12: warning: 0xff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        dest[3] = 0xff & (n >> 030);
                  ^
/datasets/git/archive-zip.c:156:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        dest[3] = 0xff & (n >> 030);
                  ^~~~
/datasets/git/archive-zip.c:156:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        dest[3] = 0xff & (n >> 030);
                          ^    ~~~
/datasets/git/archive-zip.c:156:25: warning: 030 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        dest[3] = 0xff & (n >> 030);
                               ^
/datasets/git/archive-zip.c:157:12: warning: 0xff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        dest[4] = 0xff & (n >> 040);
                  ^
/datasets/git/archive-zip.c:157:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        dest[4] = 0xff & (n >> 040);
                  ^~~~
/datasets/git/archive-zip.c:157:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        dest[4] = 0xff & (n >> 040);
                          ^    ~~~
/datasets/git/archive-zip.c:157:25: warning: 040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        dest[4] = 0xff & (n >> 040);
                               ^
/datasets/git/archive-zip.c:158:7: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        dest[5] = 0xff & (n >> 050);
             ^
/datasets/git/archive-zip.c:158:12: warning: 0xff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        dest[5] = 0xff & (n >> 050);
                  ^
/datasets/git/archive-zip.c:158:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        dest[5] = 0xff & (n >> 050);
                  ^~~~
/datasets/git/archive-zip.c:158:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        dest[5] = 0xff & (n >> 050);
                          ^    ~~~
/datasets/git/archive-zip.c:158:25: warning: 050 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        dest[5] = 0xff & (n >> 050);
                               ^
/datasets/git/archive-zip.c:159:7: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        dest[6] = 0xff & (n >> 060);
             ^
/datasets/git/archive-zip.c:159:12: warning: 0xff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        dest[6] = 0xff & (n >> 060);
                  ^
/datasets/git/archive-zip.c:159:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        dest[6] = 0xff & (n >> 060);
                  ^~~~
/datasets/git/archive-zip.c:159:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        dest[6] = 0xff & (n >> 060);
                          ^    ~~~
/datasets/git/archive-zip.c:159:25: warning: 060 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        dest[6] = 0xff & (n >> 060);
                               ^
/datasets/git/archive-zip.c:160:7: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        dest[7] = 0xff & (n >> 070);
             ^
/datasets/git/archive-zip.c:160:12: warning: 0xff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        dest[7] = 0xff & (n >> 070);
                  ^
/datasets/git/archive-zip.c:160:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        dest[7] = 0xff & (n >> 070);
                  ^~~~
/datasets/git/archive-zip.c:160:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        dest[7] = 0xff & (n >> 070);
                          ^    ~~~
/datasets/git/archive-zip.c:160:25: warning: 070 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        dest[7] = 0xff & (n >> 070);
                               ^
/datasets/git/archive-zip.c:165:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (n <= max)
                     ^
                      {
/datasets/git/archive-zip.c:173:31: warning: 0xffff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        copy_le16(dest, clamp_max(n, 0xffff, clamped));
                                     ^
/datasets/git/archive-zip.c:178:31: warning: 0xffffffff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        copy_le32(dest, clamp_max(n, 0xffffffff, clamped));
                                     ^
/datasets/git/archive-zip.c:181:41: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static int strbuf_add_le(struct strbuf *sb, size_t size, uintmax_t n)
                                        ^
/datasets/git/archive-zip.c:181:45: warning: 2 adjacent parameters of 'strbuf_add_le' of similar type are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int strbuf_add_le(struct strbuf *sb, size_t size, uintmax_t n)
                                            ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/archive-zip.c:181:52: note: the first parameter in the range is 'size'
static int strbuf_add_le(struct strbuf *sb, size_t size, uintmax_t n)
                                                   ^~~~
/datasets/git/archive-zip.c:181:68: note: the last parameter in the range is 'n'
static int strbuf_add_le(struct strbuf *sb, size_t size, uintmax_t n)
                                                                   ^
/datasets/git/archive-zip.c:181:45: note: after resolving type aliases, the common type of 'size_t' and 'uintmax_t' is 'unsigned long'
static int strbuf_add_le(struct strbuf *sb, size_t size, uintmax_t n)
                                            ^
/datasets/git/archive-zip.c:183:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (size-- > 0) {
        ^
/datasets/git/archive-zip.c:184:20: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                strbuf_addch(sb, n & 0xff);
                                 ^
/datasets/git/archive-zip.c:184:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                strbuf_addch(sb, n & 0xff);
                                 ^   ~~~~
/datasets/git/archive-zip.c:184:24: warning: 0xff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                strbuf_addch(sb, n & 0xff);
                                     ^
/datasets/git/archive-zip.c:185:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                n >>= 8;
                ^     ~
/datasets/git/archive-zip.c:185:9: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                n >>= 8;
                      ^
/datasets/git/archive-zip.c:196:43: warning: 2 adjacent parameters of 'zlib_deflate_raw' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void *zlib_deflate_raw(void *data, unsigned long size,
                                          ^~~~~~~~~~~~~~~~~~~
/datasets/git/archive-zip.c:196:57: note: the first parameter in the range is 'size'
static void *zlib_deflate_raw(void *data, unsigned long size,
                                                        ^~~~
/datasets/git/archive-zip.c:197:14: note: the last parameter in the range is 'compression_level'
                              int compression_level,
                                  ^~~~~~~~~~~~~~~~~
/datasets/git/archive-zip.c:197:10: note: 'unsigned long' and 'int' may be implicitly converted
                              int compression_level,
                              ^
/datasets/git/archive-zip.c:203:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int result;
        ^
/datasets/git/archive-zip.c:201:16: warning: variable 'maxsize' is not initialized [cppcoreguidelines-init-variables]
        unsigned long maxsize;
                      ^
                              = 0
/datasets/git/archive-zip.c:202:8: warning: variable 'buffer' is not initialized [cppcoreguidelines-init-variables]
        void *buffer;
              ^
                     = NULL
/datasets/git/archive-zip.c:203:6: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        int result;
            ^
                   = 0
/datasets/git/archive-zip.c:214:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        do {
        ^
/datasets/git/archive-zip.c:216:11: warning: backward branch (do loop) is ID-dependent due to variable reference to 'result' and may cause performance degradation [altera-id-dependent-backward-branch]
        } while (result == Z_OK);
                 ^
/datasets/git/archive-zip.c:233:14: warning: 0xffffffff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (size >= 0xffffffff || compressed_size >= 0xffffffff) {
                    ^
/datasets/git/archive-zip.c:233:47: warning: 0xffffffff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (size >= 0xffffffff || compressed_size >= 0xffffffff) {
                                                     ^
/datasets/git/archive-zip.c:235:28: warning: 0x08074b50 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                copy_le32(trailer.magic, 0x08074b50);
                                         ^
/datasets/git/archive-zip.c:243:28: warning: 0x08074b50 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                copy_le32(trailer.magic, 0x08074b50);
                                         ^
/datasets/git/archive-zip.c:262:39: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static int has_only_ascii(const char *s)
                                      ^
/datasets/git/archive-zip.c:264:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/archive-zip.c:265:7: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                int c = *s++;
                    ^
/datasets/git/archive-zip.c:265:11: warning: 'signed char' to 'int' conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse,cert-str34-c]
                int c = *s++;
                        ^
/datasets/git/archive-zip.c:266:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (c == '\0')
                              ^
                               {
/datasets/git/archive-zip.c:268:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!isascii(c))
                     ^
/datasets/git/./git-compat-util.h:1216:22: note: expanded from macro 'isascii'
#define isascii(x) (((x) & ~0x7f) == 0)
                     ^~~
/datasets/git/archive-zip.c:268:8: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                if (!isascii(c))
                     ^
/datasets/git/./git-compat-util.h:1216:28: note: expanded from macro 'isascii'
#define isascii(x) (((x) & ~0x7f) == 0)
                           ^~~~~
/datasets/git/archive-zip.c:268:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!isascii(c))
                                ^
                                 {
/datasets/git/archive-zip.c:277:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!driver)
                    ^
                     {
/datasets/git/archive-zip.c:279:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (driver->binary != -1)
                                 ^
                                  {
/datasets/git/archive-zip.c:284:1: warning: replace macro with enum [modernize-macro-to-enum]
#define STREAM_BUFFER_SIZE (1024 * 16)
^~~~~~~~
                           =
/datasets/git/archive-zip.c:284:9: warning: macro 'STREAM_BUFFER_SIZE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define STREAM_BUFFER_SIZE (1024 * 16)
        ^
/datasets/git/archive-zip.c:286:12: warning: function 'write_zip_entry' has cognitive complexity of 91 (threshold 25) [readability-function-cognitive-complexity]
static int write_zip_entry(struct archiver_args *args,
           ^
/datasets/git/archive-zip.c:315:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!has_only_ascii(path)) {
        ^
/datasets/git/archive-zip.c:316:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (is_utf8(path))
                ^
/datasets/git/archive-zip.c:318:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/archive-zip.c:322:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (pathlen > 0xffff) {
        ^
/datasets/git/archive-zip.c:327:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (S_ISDIR(mode) || S_ISGITLINK(mode)) {
        ^
/datasets/git/archive-zip.c:327:20: note: +1
        if (S_ISDIR(mode) || S_ISGITLINK(mode)) {
                          ^
/datasets/git/archive-zip.c:332:9: note: +1, nesting level increased to 1
        } else if (S_ISREG(mode) || S_ISLNK(mode)) {
               ^
/datasets/git/archive-zip.c:332:27: note: +1
        } else if (S_ISREG(mode) || S_ISLNK(mode)) {
                                 ^
/datasets/git/archive-zip.c:334:25: note: +2, including nesting penalty of 1, nesting level increased to 2
                attr2 = S_ISLNK(mode) ? ((mode | 0777) << 16) :
                                      ^
/datasets/git/archive-zip.c:335:18: note: +3, including nesting penalty of 2, nesting level increased to 3
                        (mode & 0111) ? ((mode) << 16) : 0;
                                      ^
/datasets/git/archive-zip.c:336:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (S_ISLNK(mode) || (mode & 0111))
                ^
/datasets/git/archive-zip.c:336:21: note: +1
                if (S_ISLNK(mode) || (mode & 0111))
                                  ^
/datasets/git/archive-zip.c:338:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (S_ISREG(mode) && args->compression_level != 0 && size > 0)
                ^
/datasets/git/archive-zip.c:338:53: note: +1
                if (S_ISREG(mode) && args->compression_level != 0 && size > 0)
                                                                  ^
/datasets/git/archive-zip.c:341:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!buffer) {
                ^
/datasets/git/archive-zip.c:345:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!stream)
                        ^
/datasets/git/archive-zip.c:350:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/archive-zip.c:357:50: note: +2, including nesting penalty of 1, nesting level increased to 2
                compressed_size = (method == ZIP_METHOD_STORE) ? size : 0;
                                                               ^
/datasets/git/archive-zip.c:358:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/archive-zip.c:363:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (creator_version > max_creator_version)
        ^
/datasets/git/archive-zip.c:366:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (buffer && method == ZIP_METHOD_DEFLATE) {
        ^
/datasets/git/archive-zip.c:366:13: note: +1
        if (buffer && method == ZIP_METHOD_DEFLATE) {
                   ^
/datasets/git/archive-zip.c:370:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!out || compressed_size >= size) {
                ^
/datasets/git/archive-zip.c:370:12: note: +1
                if (!out || compressed_size >= size) {
                         ^
/datasets/git/archive-zip.c:382:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (size > 0xffffffff || compressed_size > 0xffffffff)
        ^
/datasets/git/archive-zip.c:382:24: note: +1
        if (size > 0xffffffff || compressed_size > 0xffffffff)
                              ^
/datasets/git/archive-zip.c:384:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (stream && size > 0x7fffffff)
        ^
/datasets/git/archive-zip.c:384:13: note: +1
        if (stream && size > 0x7fffffff)
                   ^
/datasets/git/archive-zip.c:387:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (need_zip64_extra)
        ^
/datasets/git/archive-zip.c:396:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (need_zip64_extra) {
        ^
/datasets/git/archive-zip.c:399:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/archive-zip.c:410:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (need_zip64_extra) {
        ^
/datasets/git/archive-zip.c:419:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (stream && method == ZIP_METHOD_STORE) {
        ^
/datasets/git/archive-zip.c:419:13: note: +1
        if (stream && method == ZIP_METHOD_STORE) {
                   ^
/datasets/git/archive-zip.c:423:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (;;) {
                ^
/datasets/git/archive-zip.c:425:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (readlen <= 0)
                        ^
/datasets/git/archive-zip.c:428:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (is_binary == -1)
                        ^
/datasets/git/archive-zip.c:435:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (readlen)
                ^
/datasets/git/archive-zip.c:442:9: note: +1, nesting level increased to 1
        } else if (stream && method == ZIP_METHOD_DEFLATE) {
               ^
/datasets/git/archive-zip.c:442:20: note: +1
        } else if (stream && method == ZIP_METHOD_DEFLATE) {
                          ^
/datasets/git/archive-zip.c:456:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (;;) {
                ^
/datasets/git/archive-zip.c:458:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (readlen <= 0)
                        ^
/datasets/git/archive-zip.c:461:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (is_binary == -1)
                        ^
/datasets/git/archive-zip.c:469:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (result != Z_OK)
                        ^
/datasets/git/archive-zip.c:473:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (out_len > 0) {
                        ^
/datasets/git/archive-zip.c:482:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (readlen)
                ^
/datasets/git/archive-zip.c:488:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (result != Z_STREAM_END)
                ^
/datasets/git/archive-zip.c:498:9: note: +1, nesting level increased to 1
        } else if (compressed_size > 0) {
               ^
/datasets/git/archive-zip.c:505:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (compressed_size > 0xffffffff || size > 0xffffffff ||
        ^
/datasets/git/archive-zip.c:505:56: note: +1
        if (compressed_size > 0xffffffff || size > 0xffffffff ||
                                                              ^
/datasets/git/archive-zip.c:507:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (compressed_size >= 0xffffffff)
                ^
/datasets/git/archive-zip.c:509:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (size >= 0xffffffff)
                ^
/datasets/git/archive-zip.c:511:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (offset >= 0xffffffff)
                ^
/datasets/git/archive-zip.c:535:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (zip64_dir_extra_payload_size) {
        ^
/datasets/git/archive-zip.c:538:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (size >= 0xffffffff)
                ^
/datasets/git/archive-zip.c:540:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (compressed_size >= 0xffffffff)
                ^
/datasets/git/archive-zip.c:542:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (offset >= 0xffffffff)
                ^
/datasets/git/archive-zip.c:288:25: warning: 2 adjacent parameters of 'write_zip_entry' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                           const char *path, size_t pathlen,
                                             ^~~~~~~~~~~~~~~
/datasets/git/archive-zip.c:288:32: note: the first parameter in the range is 'pathlen'
                           const char *path, size_t pathlen,
                                                    ^~~~~~~
/datasets/git/archive-zip.c:289:20: note: the last parameter in the range is 'mode'
                           unsigned int mode,
                                        ^~~~
/datasets/git/archive-zip.c:288:25: note: 
                           const char *path, size_t pathlen,
                                             ^
/datasets/git/archive-zip.c:289:7: note: 'size_t' and 'unsigned int' may be implicitly converted: 'size_t' (as 'unsigned long') -> 'unsigned int', 'unsigned int' -> 'size_t' (as 'unsigned long')
                           unsigned int mode,
                           ^
/datasets/git/archive-zip.c:298:16: warning: variable 'attr2' is not initialized [cppcoreguidelines-init-variables]
        unsigned long attr2;
                      ^
                            = 0
/datasets/git/archive-zip.c:299:16: warning: variable 'compressed_size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long compressed_size;
                      ^
                                      = 0
/datasets/git/archive-zip.c:300:16: warning: variable 'crc' is not initialized [cppcoreguidelines-init-variables]
        unsigned long crc;
                      ^
                          = 0
/datasets/git/archive-zip.c:301:18: warning: variable 'method' is not initialized [cppcoreguidelines-init-variables]
        enum zip_method method;
                        ^
/datasets/git/archive-zip.c:302:17: warning: variable 'out' is not initialized [cppcoreguidelines-init-variables]
        unsigned char *out;
                       ^
                           = NULL
/datasets/git/archive-zip.c:309:32: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        unsigned int version_needed = 10;
                                      ^
/datasets/git/archive-zip.c:316:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_utf8(path))
                                  ^
                                   {
/datasets/git/archive-zip.c:317:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        flags |= ZIP_UTF8;
                        ^
/datasets/git/archive-zip.c:317:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        flags |= ZIP_UTF8;
                                 ^
/datasets/git/archive-zip.c:26:19: note: expanded from macro 'ZIP_UTF8'
#define ZIP_UTF8        (1 << 11)
                         ^
/datasets/git/archive-zip.c:318:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/archive-zip.c:322:16: warning: 0xffff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (pathlen > 0xffff) {
                      ^
/datasets/git/archive-zip.c:327:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (S_ISDIR(mode) || S_ISGITLINK(mode)) {
                             ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/archive-zip.c:329:11: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                attr2 = 16;
                        ^
/datasets/git/archive-zip.c:334:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                attr2 = S_ISLNK(mode) ? ((mode | 0777) << 16) :
                                         ^                ~~
/datasets/git/archive-zip.c:334:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                attr2 = S_ISLNK(mode) ? ((mode | 0777) << 16) :
                                          ^      ~~~~
/datasets/git/archive-zip.c:334:36: warning: 0777 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                attr2 = S_ISLNK(mode) ? ((mode | 0777) << 16) :
                                                 ^
/datasets/git/archive-zip.c:334:45: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                attr2 = S_ISLNK(mode) ? ((mode | 0777) << 16) :
                                                          ^
/datasets/git/archive-zip.c:335:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        (mode & 0111) ? ((mode) << 16) : 0;
                         ^      ~~~~
/datasets/git/archive-zip.c:335:12: warning: 0111 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        (mode & 0111) ? ((mode) << 16) : 0;
                                ^
/datasets/git/archive-zip.c:335:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        (mode & 0111) ? ((mode) << 16) : 0;
                                         ^         ~~
/datasets/git/archive-zip.c:335:31: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        (mode & 0111) ? ((mode) << 16) : 0;
                                                   ^
/datasets/git/archive-zip.c:336:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (S_ISLNK(mode) || (mode & 0111))
                                      ^      ~~~~
/datasets/git/archive-zip.c:336:32: warning: 0111 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (S_ISLNK(mode) || (mode & 0111))
                                             ^
/datasets/git/archive-zip.c:336:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (S_ISLNK(mode) || (mode & 0111))
                                                   ^
                                                    {
/datasets/git/archive-zip.c:337:22: warning: 0x0317 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        creator_version = 0x0317;
                                          ^
/datasets/git/archive-zip.c:338:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (S_ISREG(mode) && args->compression_level != 0 && size > 0)
                                                                              ^
                                                                               {
/datasets/git/archive-zip.c:342:21: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
                        enum object_type type;
                                         ^
/datasets/git/archive-zip.c:345:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!stream)
                                    ^
                                     {
/datasets/git/archive-zip.c:348:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        flags |= ZIP_STREAM;
                        ^
/datasets/git/archive-zip.c:348:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        flags |= ZIP_STREAM;
                                 ^
/datasets/git/archive-zip.c:25:21: note: expanded from macro 'ZIP_STREAM'
#define ZIP_STREAM      (1 <<  3)
                         ^
/datasets/git/archive-zip.c:363:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (creator_version > max_creator_version)
                                                  ^
                                                   {
/datasets/git/archive-zip.c:377:25: warning: 0x5455 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        copy_le16(extra.magic, 0x5455);
                               ^
/datasets/git/archive-zip.c:382:13: warning: 0xffffffff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (size > 0xffffffff || compressed_size > 0xffffffff)
                   ^
/datasets/git/archive-zip.c:382:45: warning: 0xffffffff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (size > 0xffffffff || compressed_size > 0xffffffff)
                                                   ^
/datasets/git/archive-zip.c:382:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (size > 0xffffffff || compressed_size > 0xffffffff)
                                                              ^
                                                               {
/datasets/git/archive-zip.c:384:23: warning: 0x7fffffff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (stream && size > 0x7fffffff)
                             ^
/datasets/git/archive-zip.c:384:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (stream && size > 0x7fffffff)
                                        ^
                                         {
/datasets/git/archive-zip.c:387:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (need_zip64_extra)
                             ^
                              {
/datasets/git/archive-zip.c:388:20: warning: 45 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                version_needed = 45;
                                 ^
/datasets/git/archive-zip.c:390:26: warning: 0x04034b50 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        copy_le32(header.magic, 0x04034b50);
                                ^
/datasets/git/archive-zip.c:397:37: warning: 0xffffffff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                set_zip_header_data_desc(&header, 0xffffffff, 0xffffffff, crc);
                                                  ^
/datasets/git/archive-zip.c:397:49: warning: 0xffffffff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                set_zip_header_data_desc(&header, 0xffffffff, 0xffffffff, crc);
                                                              ^
/datasets/git/archive-zip.c:421:11: warning: variable 'readlen' is not initialized [cppcoreguidelines-init-variables]
                ssize_t readlen;
                        ^
                                = 0
/datasets/git/archive-zip.c:423:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (;;) {
                ^
/datasets/git/archive-zip.c:425:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (readlen <= 0)
                                         ^
                                          {
/datasets/git/archive-zip.c:428:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (is_binary == -1)
                                            ^
                                             {
/datasets/git/archive-zip.c:435:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (readlen)
                            ^
                             {
/datasets/git/archive-zip.c:436:11: warning: narrowing conversion from 'ssize_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        return readlen;
                               ^
/datasets/git/archive-zip.c:444:11: warning: variable 'readlen' is not initialized [cppcoreguidelines-init-variables]
                ssize_t readlen;
                        ^
                                = 0
/datasets/git/archive-zip.c:446:7: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
                int result;
                    ^
                           = 0
/datasets/git/archive-zip.c:447:10: warning: variable 'out_len' is not initialized [cppcoreguidelines-init-variables]
                size_t out_len;
                       ^
                               = 0
/datasets/git/archive-zip.c:456:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (;;) {
                ^
/datasets/git/archive-zip.c:458:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (readlen <= 0)
                                         ^
                                          {
/datasets/git/archive-zip.c:461:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (is_binary == -1)
                                            ^
                                             {
/datasets/git/archive-zip.c:469:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (result != Z_OK)
                                           ^
                                            {
/datasets/git/archive-zip.c:482:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (readlen)
                            ^
                             {
/datasets/git/archive-zip.c:483:11: warning: narrowing conversion from 'ssize_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        return readlen;
                               ^
/datasets/git/archive-zip.c:488:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (result != Z_STREAM_END)
                                           ^
                                            {
/datasets/git/archive-zip.c:505:24: warning: 0xffffffff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (compressed_size > 0xffffffff || size > 0xffffffff ||
                              ^
/datasets/git/archive-zip.c:505:45: warning: 0xffffffff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (compressed_size > 0xffffffff || size > 0xffffffff ||
                                                   ^
/datasets/git/archive-zip.c:506:15: warning: 0xffffffff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
            offset > 0xffffffff) {
                     ^
/datasets/git/archive-zip.c:507:26: warning: 0xffffffff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (compressed_size >= 0xffffffff)
                                       ^
/datasets/git/archive-zip.c:507:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (compressed_size >= 0xffffffff)
                                                  ^
                                                   {
/datasets/git/archive-zip.c:508:36: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        zip64_dir_extra_payload_size += 8;
                                                        ^
/datasets/git/archive-zip.c:509:15: warning: 0xffffffff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (size >= 0xffffffff)
                            ^
/datasets/git/archive-zip.c:509:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (size >= 0xffffffff)
                                       ^
                                        {
/datasets/git/archive-zip.c:510:36: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        zip64_dir_extra_payload_size += 8;
                                                        ^
/datasets/git/archive-zip.c:511:17: warning: 0xffffffff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (offset >= 0xffffffff)
                              ^
/datasets/git/archive-zip.c:511:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (offset >= 0xffffffff)
                                         ^
                                          {
/datasets/git/archive-zip.c:512:36: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        zip64_dir_extra_payload_size += 8;
                                                        ^
/datasets/git/archive-zip.c:516:29: warning: 0x02014b50 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        strbuf_add_le(&zip_dir, 4, 0x02014b50); /* magic */
                                   ^
/datasets/git/archive-zip.c:538:15: warning: 0xffffffff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (size >= 0xffffffff)
                            ^
/datasets/git/archive-zip.c:538:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (size >= 0xffffffff)
                                       ^
                                        {
/datasets/git/archive-zip.c:539:28: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        strbuf_add_le(&zip_dir, 8, size);
                                                ^
/datasets/git/archive-zip.c:540:26: warning: 0xffffffff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (compressed_size >= 0xffffffff)
                                       ^
/datasets/git/archive-zip.c:540:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (compressed_size >= 0xffffffff)
                                                  ^
                                                   {
/datasets/git/archive-zip.c:541:28: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        strbuf_add_le(&zip_dir, 8, compressed_size);
                                                ^
/datasets/git/archive-zip.c:542:17: warning: 0xffffffff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (offset >= 0xffffffff)
                              ^
/datasets/git/archive-zip.c:542:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (offset >= 0xffffffff)
                                         ^
                                          {
/datasets/git/archive-zip.c:543:28: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        strbuf_add_le(&zip_dir, 8, offset);
                                                ^
/datasets/git/archive-zip.c:555:29: warning: 0x06064b50 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        copy_le32(trailer64.magic, 0x06064b50);
                                   ^
/datasets/git/archive-zip.c:558:31: warning: 45 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        copy_le16(trailer64.version, 45);
                                     ^
/datasets/git/archive-zip.c:566:29: warning: 0x07064b50 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        copy_le32(locator64.magic, 0x07064b50);
                                   ^
/datasets/git/archive-zip.c:580:27: warning: 0x06054b50 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        copy_le32(trailer.magic, 0x06054b50);
                                 ^
/datasets/git/archive-zip.c:591:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (clamped)
                    ^
                     {
/datasets/git/archive-zip.c:594:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oid)
                ^
                 {
/datasets/git/archive-zip.c:598:46: warning: 2 adjacent parameters of 'dos_time' of similar type ('int *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void dos_time(timestamp_t *timestamp, int *dos_date, int *dos_time)
                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/archive-zip.c:598:51: note: the first parameter in the range is 'dos_date'
static void dos_time(timestamp_t *timestamp, int *dos_date, int *dos_time)
                                                  ^~~~~~~~
/datasets/git/archive-zip.c:598:66: note: the last parameter in the range is 'dos_time'
static void dos_time(timestamp_t *timestamp, int *dos_date, int *dos_time)
                                                                 ^~~~~~~~
/datasets/git/archive-zip.c:600:9: warning: variable 'time' is not initialized [cppcoreguidelines-init-variables]
        time_t time;
               ^
                    = 0
/datasets/git/archive-zip.c:601:12: warning: variable name 'tm' is too short, expected at least 3 characters [readability-identifier-length]
        struct tm tm;
                  ^
/datasets/git/archive-zip.c:603:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (date_overflows(*timestamp))
                                       ^
                                        {
/datasets/git/archive-zip.c:610:45: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        *dos_date = tm.tm_mday + (tm.tm_mon + 1) * 32 +
                                                   ^
/datasets/git/archive-zip.c:611:21: warning: 1900 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                    (tm.tm_year + 1900 - 1980) * 512;
                                  ^
/datasets/git/archive-zip.c:611:28: warning: 1980 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                    (tm.tm_year + 1900 - 1980) * 512;
                                         ^
/datasets/git/archive-zip.c:611:36: warning: 512 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                    (tm.tm_year + 1900 - 1980) * 512;
                                                 ^
/datasets/git/archive-zip.c:612:42: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        *dos_time = tm.tm_sec / 2 + tm.tm_min * 32 + tm.tm_hour * 2048;
                                                ^
/datasets/git/archive-zip.c:612:60: warning: 2048 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        *dos_time = tm.tm_sec / 2 + tm.tm_min * 32 + tm.tm_hour * 2048;
                                                                  ^
/datasets/git/archive-zip.c:621:53: warning: parameter name 'ar' is too short, expected at least 3 characters [readability-identifier-length]
static int write_zip_archive(const struct archiver *ar UNUSED,
                                                    ^
/datasets/git/archive-zip.c:624:6: warning: variable 'err' is not initialized [cppcoreguidelines-init-variables]
        int err;
            ^
                = 0
/datasets/git/archive-zip.c:633:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!err)
                 ^
                  {
/datasets/git/archive-zip.c:641:24: warning: variable 'zip_archiver' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct archiver zip_archiver = {
                       ^
/datasets/git/archive-zip.c:644:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        .flags = ARCHIVER_WANT_COMPRESSION_LEVELS|ARCHIVER_REMOTE,
                 ^
/datasets/git/./archive.h:39:42: note: expanded from macro 'ARCHIVER_WANT_COMPRESSION_LEVELS'
#define ARCHIVER_WANT_COMPRESSION_LEVELS 1
                                         ^
/datasets/git/archive.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "archive.h"
/datasets/git/archive.c:22:32: warning: variable 'archivers' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const struct archiver **archivers;
                               ^
/datasets/git/archive.c:22:32: warning: variable 'archivers' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/archive.c:23:12: warning: variable 'nr_archivers' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int nr_archivers;
           ^
/datasets/git/archive.c:24:12: warning: variable 'alloc_archivers' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int alloc_archivers;
           ^
/datasets/git/archive.c:25:12: warning: variable 'remote_allow_unreachable' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int remote_allow_unreachable;
           ^
/datasets/git/archive.c:27:41: warning: parameter name 'ar' is too short, expected at least 3 characters [readability-identifier-length]
void register_archiver(struct archiver *ar)
                                        ^
/datasets/git/archive.c:29:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(archivers, nr_archivers + 1, alloc_archivers);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/archive.c:29:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_GROW(archivers, nr_archivers + 1, alloc_archivers);
        ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/archive.c:46:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (src == buf->buf)
                            ^
                             {
/datasets/git/archive.c:48:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/archive.c:49:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                const char *b, *c;
                ^~~~~~~~~~~~~~~~~~
/datasets/git/archive.c:49:15: warning: variable 'b' is not initialized [cppcoreguidelines-init-variables]
                const char *b, *c;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/archive.c:49:15: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/archive.c:49:19: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
                const char *b, *c;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/archive.c:49:19: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/archive.c:51:36: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                b = memmem(src, len, "$Format:", 8);
                                                 ^
/datasets/git/archive.c:52:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!b)
                       ^
                        {
/datasets/git/archive.c:54:18: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                c = memchr(b + 8, '$', (src + len) - b - 8);
                               ^
/datasets/git/archive.c:54:44: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                c = memchr(b + 8, '$', (src + len) - b - 8);
                                                         ^
/datasets/git/archive.c:55:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!c)
                       ^
                        {
/datasets/git/archive.c:59:24: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                strbuf_add(&fmt, b + 8, c - b - 8);
                                     ^
/datasets/git/archive.c:59:35: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                strbuf_add(&fmt, b + 8, c - b - 8);
                                                ^
/datasets/git/archive.c:78:8: warning: variable 'buffer' is not initialized [cppcoreguidelines-init-variables]
        void *buffer;
              ^
                     = NULL
/datasets/git/archive.c:94:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (commit)
                           ^
                            {
/datasets/git/archive.c:111:8: warning: accessing fields in struct 'archiver_context' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct archiver_context {
       ^
/datasets/git/archive.c:111:8: note: use "__attribute__((aligned(32)))" to align struct 'archiver_context' to 32 bytes
/datasets/git/archive.c:120:28: warning: variable 'check' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
        static struct attr_check *check;
                                  ^
/datasets/git/archive.c:121:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!check)
                   ^
                    {
/datasets/git/archive.c:142:27: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        struct archiver_context *c = context;
                                 ^
/datasets/git/archive.c:145:6: warning: variable 'err' is not initialized [cppcoreguidelines-init-variables]
        int err;
            ^
                = 0
/datasets/git/archive.c:146:14: warning: variable 'path_without_prefix' is not initialized [cppcoreguidelines-init-variables]
        const char *path_without_prefix;
                    ^
                                        = NULL
/datasets/git/archive.c:147:16: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size;
                      ^
                           = 0
/datasets/git/archive.c:148:8: warning: variable 'buffer' is not initialized [cppcoreguidelines-init-variables]
        void *buffer;
              ^
                     = NULL
/datasets/git/archive.c:149:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/archive.c:157:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (S_ISDIR(mode) || S_ISGITLINK(mode))
                             ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/archive.c:157:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (S_ISDIR(mode) || S_ISGITLINK(mode))
                                               ^
                                                {
/datasets/git/archive.c:162:28: warning: variable 'check' is not initialized [cppcoreguidelines-init-variables]
                const struct attr_check *check;
                                         ^
                                               = NULL
/datasets/git/archive.c:164:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (check_attr_export_ignore(check))
                                                    ^
                                                     {
/datasets/git/archive.c:169:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (args->verbose)
                          ^
                           {
/datasets/git/archive.c:170:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "%.*s\n", (int)path.len, path.buf);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/archive.c:170:3: note: cast the expression to void to silence this warning
/datasets/git/archive.c:172:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (S_ISDIR(mode) || S_ISGITLINK(mode)) {
                             ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/archive.c:174:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err)
                        ^
                         {
/datasets/git/archive.c:182:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            size > big_file_threshold)
                                      ^
                                       {
/datasets/git/archive.c:186:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!buffer)
                    ^
                     {
/datasets/git/archive.c:195:43: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                unsigned mode, struct archiver_context *c)
                                                        ^
/datasets/git/archive.c:197:20: warning: variable 'd' is not initialized [cppcoreguidelines-init-variables]
        struct directory *d;
                          ^
                            = NULL
/datasets/git/archive.c:197:20: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/archive.c:201:15: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        d->baselen = base->len;
                     ^
/datasets/git/archive.c:208:12: warning: function 'write_directory' is within a recursive call chain [misc-no-recursion]
static int write_directory(struct archiver_context *c)
           ^
/datasets/git/archive.c:208:12: note: example recursive call chain, starting from function 'write_directory'
/datasets/git/archive.c:218:3: note: Frame #1: function 'write_directory' calls function 'write_directory' here:
                write_directory(c) ||
                ^
/datasets/git/archive.c:218:3: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/archive.c:208:53: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static int write_directory(struct archiver_context *c)
                                                    ^
/datasets/git/archive.c:210:20: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
        struct directory *d = c->bottom;
                          ^
/datasets/git/archive.c:211:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/archive.c:230:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct archiver_context *c = context;
        ^
/datasets/git/archive.c:213:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!d)
               ^
                {
/datasets/git/archive.c:230:27: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        struct archiver_context *c = context;
                                 ^
/datasets/git/archive.c:232:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (c->bottom &&
        ^
/datasets/git/archive.c:232:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'c' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (c->bottom &&
               ^
/datasets/git/archive.c:242:28: warning: variable 'check' is not initialized [cppcoreguidelines-init-variables]
                const struct attr_check *check;
                                         ^
                                               = NULL
/datasets/git/archive.c:250:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (check_attr_export_ignore(check))
                                                    ^
                                                     {
/datasets/git/archive.c:256:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_directory(c))
                               ^
                                {
/datasets/git/archive.c:258:45: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return write_archive_entry(oid, base->buf, base->len, filename, mode,
                                                   ^
/datasets/git/archive.c:262:8: warning: accessing fields in struct 'extra_file_info' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct extra_file_info {
       ^
/datasets/git/archive.c:262:8: note: use "__attribute__((aligned(128)))" to align struct 'extra_file_info' to 128 bytes
/datasets/git/archive.c:268:5: warning: function 'write_archive_entries' has cognitive complexity of 27 (threshold 25) [readability-function-cognitive-complexity]
int write_archive_entries(struct archiver_args *args,
    ^
/datasets/git/archive.c:282:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (args->baselen > 0 && args->base[args->baselen - 1] == '/') {
        ^
/datasets/git/archive.c:282:24: note: +1
        if (args->baselen > 0 && args->base[args->baselen - 1] == '/') {
                              ^
/datasets/git/archive.c:285:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (len > 1 && args->base[len - 2] == '/')
                ^
/datasets/git/archive.c:285:18: note: +1
                while (len > 1 && args->base[len - 2] == '/')
                               ^
/datasets/git/archive.c:287:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (args->verbose)
                ^
/datasets/git/archive.c:291:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (err)
                ^
/datasets/git/archive.c:302:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!args->worktree_attributes) {
        ^
/datasets/git/archive.c:310:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (unpack_trees(1, &t, &opts))
                ^
/datasets/git/archive.c:319:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (err == READ_TREE_RECURSIVE)
        ^
/datasets/git/archive.c:321:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (context.bottom) {
        ^
/datasets/git/archive.c:327:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < args->extra_files.nr; i++) {
        ^
/datasets/git/archive.c:334:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!info->content) {
                ^
/datasets/git/archive.c:336:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (info->base)
                        ^
/datasets/git/archive.c:341:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (strbuf_read_file(&content, path, info->stat.st_size) < 0)
                        ^
/datasets/git/archive.c:343:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/archive.c:348:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/archive.c:355:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (err)
                ^
/datasets/git/archive.c:273:19: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
        struct tree_desc t;
                         ^
/datasets/git/archive.c:274:6: warning: variable 'err' is not initialized [cppcoreguidelines-init-variables]
        int err;
            ^
                = 0
/datasets/git/archive.c:278:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/archive.c:278:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/archive.c:285:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (len > 1 && args->base[len - 2] == '/')
                ^
/datasets/git/archive.c:285:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (len > 1 && args->base[len - 2] == '/')
                       ^
/datasets/git/archive.c:285:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (len > 1 && args->base[len - 2] == '/')
                                                             ^
                                                              {
/datasets/git/archive.c:287:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (args->verbose)
                                  ^
                                   {
/datasets/git/archive.c:288:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, "%.*s\n", (int)len, args->base);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/archive.c:288:4: note: cast the expression to void to silence this warning
/datasets/git/archive.c:290:12: warning: 040777 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                  len, 040777, NULL, 0);
                                       ^
/datasets/git/archive.c:291:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err)
                        ^
                         {
/datasets/git/archive.c:295:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&context, 0, sizeof(context));
        ^~~~~~
/datasets/git/archive.c:295:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&context, 0, sizeof(context));
        ^~~~~~
/datasets/git/archive.c:303:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(&opts, 0, sizeof(opts));
                ^~~~~~
/datasets/git/archive.c:303:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(&opts, 0, sizeof(opts));
                ^~~~~~
/datasets/git/archive.c:310:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (unpack_trees(1, &t, &opts))
                                               ^
                                                {
/datasets/git/archive.c:319:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err == READ_TREE_RECURSIVE)
                                       ^
                                        {
/datasets/git/archive.c:321:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (context.bottom) {
        ^
/datasets/git/archive.c:321:9: warning: backward branch (while loop) is ID-dependent due to member reference to 'bottom' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (context.bottom) {
               ^
/datasets/git/archive.c:327:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < args->extra_files.nr; i++) {
        ^
/datasets/git/archive.c:336:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (info->base)
                                       ^
                                        {
/datasets/git/archive.c:341:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (strbuf_read_file(&content, path, info->stat.st_size) < 0)
                                                                                     ^
                                                                                      {
/datasets/git/archive.c:343:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/archive.c:355:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err)
                        ^
                         {
/datasets/git/archive.c:366:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/archive.c:366:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/archive.c:368:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!name)
                  ^
                   {
/datasets/git/archive.c:371:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr_archivers; i++) {
        ^
/datasets/git/archive.c:372:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(name, archivers[i]->name))
                                                      ^
                                                       {
/datasets/git/archive.c:378:8: warning: accessing fields in struct 'path_exists_context' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct path_exists_context {
       ^
/datasets/git/archive.c:378:8: note: use "__attribute__((aligned(32)))" to align struct 'path_exists_context' to 32 bytes
/datasets/git/archive.c:392:17: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                struct strbuf sb = STRBUF_INIT;
                              ^
/datasets/git/archive.c:397:17: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                    sb.buf, sb.len, 0, NULL, 1))
                                            ^
/datasets/git/archive.c:397:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                    sb.buf, sb.len, 0, NULL, 1))
                                                                ^
                                                                 {
/datasets/git/archive.c:408:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/archive.c:429:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_PREFER_FULL,
                       ^
/datasets/git/./pathspec.h:66:31: note: expanded from macro 'PATHSPEC_PREFER_FULL'
#define PATHSPEC_PREFER_FULL (1<<1) /* No args means match everything */
                              ^
/datasets/git/archive.c:433:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (*pathspec) {
                ^
/datasets/git/archive.c:434:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (**pathspec && !path_exists(ar_args, *pathspec))
                                                                           ^
                                                                            {
/datasets/git/archive.c:446:26: warning: variable 'commit_oid' is not initialized [cppcoreguidelines-init-variables]
        const struct object_id *commit_oid;
                                ^
                                           = NULL
/datasets/git/archive.c:447:9: warning: variable 'archive_time' is not initialized [cppcoreguidelines-init-variables]
        time_t archive_time;
               ^
                            = 0
/datasets/git/archive.c:448:15: warning: variable 'tree' is not initialized [cppcoreguidelines-init-variables]
        struct tree *tree;
                     ^
                          = NULL
/datasets/git/archive.c:449:23: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        const struct commit *commit;
                             ^
                                    = NULL
/datasets/git/archive.c:456:20: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int refnamelen = colon - name;
                                 ^
/datasets/git/archive.c:458:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!dwim_ref(name, refnamelen, &oid, &ref, 0))
                                                               ^
                                                                {
/datasets/git/archive.c:461:18: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                dwim_ref(name, strlen(name), &oid, &ref, 0);
                               ^
/datasets/git/archive.c:464:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid(name, &oid))
                                ^
                                 {
/datasets/git/archive.c:470:18: warning: narrowing conversion from 'timestamp_t' (aka 'unsigned long') to signed type 'time_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                archive_time = commit->date;
                               ^
/datasets/git/archive.c:477:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!tree)
                  ^
                   {
/datasets/git/archive.c:482:18: warning: variable 'mode' is not initialized [cppcoreguidelines-init-variables]
                unsigned short mode;
                               ^
                                    = 0
/datasets/git/archive.c:483:7: warning: variable 'err' is not initialized [cppcoreguidelines-init-variables]
                int err;
                    ^
                        = 0
/datasets/git/archive.c:489:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err || !S_ISDIR(mode))
                                          ^
                                           {
/datasets/git/archive.c:512:23: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
        const char **basep = (const char **)opt->defval;
                             ^
/datasets/git/archive.c:514:8: warning: variable 'path' is not initialized [cppcoreguidelines-init-variables]
        char *path;
              ^
                   = NULL
/datasets/git/archive.c:515:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/archive.c:516:26: warning: variable 'info' is not initialized [cppcoreguidelines-init-variables]
        struct extra_file_info *info;
                                ^
                                     = NULL
/datasets/git/archive.c:524:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!arg)
                 ^
                  {
/datasets/git/archive.c:532:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (stat(path, &info->stat))
                                            ^
                                             {
/datasets/git/archive.c:534:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!S_ISREG(info->stat.st_mode))
                                                 ^
                                                  {
/datasets/git/archive.c:539:15: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                const char *p = arg;
                            ^
/datasets/git/archive.c:541:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*p != '"')
                              ^
                               {
/datasets/git/archive.c:543:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (unquote_c_style(&buf, p, &p) < 0)
                                                          ^
                                                           {
/datasets/git/archive.c:546:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!p || *p != ':')
                                    ^
                                     {
/datasets/git/archive.c:549:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (p == arg)
                             ^
                              {
/datasets/git/archive.c:560:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(&info->stat, 0, sizeof(info->stat));
                ^~~~~~
/datasets/git/archive.c:560:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(&info->stat, 0, sizeof(info->stat));
                ^~~~~~
/datasets/git/archive.c:561:34: warning: 0644 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                info->stat.st_mode = S_IFREG | 0644;
                                               ^
/datasets/git/archive.c:563:24: warning: narrowing conversion from 'unsigned long' to signed type '__off_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                info->stat.st_size = strlen(info->content);
                                     ^
/datasets/git/archive.c:575:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/archive.c:576:23: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        *(int *)opt->value = strtol(arg, NULL, 10);
                             ^
/datasets/git/archive.c:576:41: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        *(int *)opt->value = strtol(arg, NULL, 10);
                                               ^
/datasets/git/archive.c:580:12: warning: function 'parse_archive_args' has cognitive complexity of 26 (threshold 25) [readability-function-cognitive-complexity]
static int parse_archive_args(int argc, const char **argv,
           ^
/datasets/git/archive.c:625:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (remote)
        ^
/datasets/git/archive.c:627:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (exec)
        ^
/datasets/git/archive.c:629:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (output)
        ^
/datasets/git/archive.c:631:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (is_remote && args->extra_files.nr)
        ^
/datasets/git/archive.c:631:16: note: +1
        if (is_remote && args->extra_files.nr)
                      ^
/datasets/git/archive.c:634:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!base)
        ^
/datasets/git/archive.c:637:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (list) {
        ^
/datasets/git/archive.c:638:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < nr_archivers; i++)
                ^
/datasets/git/archive.c:639:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!is_remote || archivers[i]->flags & ARCHIVER_REMOTE)
                        ^
/datasets/git/archive.c:639:19: note: +1
                        if (!is_remote || archivers[i]->flags & ARCHIVER_REMOTE)
                                       ^
/datasets/git/archive.c:644:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!format && name_hint)
        ^
/datasets/git/archive.c:644:14: note: +1
        if (!format && name_hint)
                    ^
/datasets/git/archive.c:646:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!format)
        ^
/datasets/git/archive.c:650:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (argc < 1)
        ^
/datasets/git/archive.c:653:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!*ar || (is_remote && !((*ar)->flags & ARCHIVER_REMOTE)))
        ^
/datasets/git/archive.c:653:11: note: +1
        if (!*ar || (is_remote && !((*ar)->flags & ARCHIVER_REMOTE)))
                 ^
/datasets/git/archive.c:653:25: note: +1
        if (!*ar || (is_remote && !((*ar)->flags & ARCHIVER_REMOTE)))
                               ^
/datasets/git/archive.c:657:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (compression_level != -1) {
        ^
/datasets/git/archive.c:660:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (levels_ok && (compression_level <= 9 || high_ok))
                ^
/datasets/git/archive.c:660:17: note: +1
                if (levels_ok && (compression_level <= 9 || high_ok))
                              ^
/datasets/git/archive.c:660:44: note: +1
                if (levels_ok && (compression_level <= 9 || high_ok))
                                                         ^
/datasets/git/archive.c:662:3: note: +1, nesting level increased to 2
                else {
                ^
/datasets/git/archive.c:581:27: warning: parameter name 'ar' is too short, expected at least 3 characters [readability-identifier-length]
                const struct archiver **ar, struct archiver_args *args,
                                        ^
/datasets/git/archive.c:591:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/archive.c:591:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/archive.c:607:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "worktree-attributes", &worktree_attributes,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/archive.c:609:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__VERBOSE(&verbose, N_("report archived files on stderr")),
                ^
/datasets/git/./parse-options.h:359:31: note: expanded from macro 'OPT__VERBOSE'
#define OPT__VERBOSE(var, h)  OPT_COUNTUP('v', "verbose", (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/archive.c:610:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_NUMBER_CALLBACK(&compression_level,
                ^
/datasets/git/./parse-options.h:205:4: note: expanded from macro 'OPT_NUMBER_CALLBACK'
          PARSE_OPT_NOARG | PARSE_OPT_NONEG, (f) }
          ^~~~~~~~~~~~~~~
/datasets/git/archive.c:613:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('l', "list", &list,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/archive.c:625:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (remote)
                   ^
                    {
/datasets/git/archive.c:627:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (exec)
                 ^
                  {
/datasets/git/archive.c:629:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (output)
                   ^
                    {
/datasets/git/archive.c:631:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_remote && args->extra_files.nr)
                                              ^
                                               {
/datasets/git/archive.c:634:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!base)
                  ^
                   {
/datasets/git/archive.c:638:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < nr_archivers; i++)
                ^
/datasets/git/archive.c:638:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < nr_archivers; i++)
                                                  ^
                                                   {
/datasets/git/archive.c:639:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!is_remote || archivers[i]->flags & ARCHIVER_REMOTE)
                                          ^
/datasets/git/archive.c:639:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!is_remote || archivers[i]->flags & ARCHIVER_REMOTE)
                                                                                ^
                                                                                 {
/datasets/git/archive.c:641:3: warning: function is not thread safe [concurrency-mt-unsafe]
                exit(0);
                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/archive.c:644:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!format && name_hint)
                                 ^
                                  {
/datasets/git/archive.c:646:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!format)
                    ^
                     {
/datasets/git/archive.c:650:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc < 1)
                     ^
                      {
/datasets/git/archive.c:653:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!*ar || (is_remote && !((*ar)->flags & ARCHIVER_REMOTE)))
                                    ^
/datasets/git/archive.c:653:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!*ar || (is_remote && !((*ar)->flags & ARCHIVER_REMOTE)))
                                                                     ^
                                                                      {
/datasets/git/archive.c:658:19: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int levels_ok = (*ar)->flags & ARCHIVER_WANT_COMPRESSION_LEVELS;
                                ^
/datasets/git/archive.c:658:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
/datasets/git/archive.c:659:17: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int high_ok = (*ar)->flags & ARCHIVER_HIGH_COMPRESSION_LEVELS;
                              ^
/datasets/git/archive.c:659:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
/datasets/git/archive.c:660:42: warning: 9 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (levels_ok && (compression_level <= 9 || high_ok))
                                                       ^
/datasets/git/archive.c:660:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (levels_ok && (compression_level <= 9 || high_ok))
                                                                     ^
                                                                      {
/datasets/git/archive.c:679:25: warning: variable name 'ar' is too short, expected at least 3 characters [readability-identifier-length]
        const struct archiver *ar = NULL;
                               ^
/datasets/git/archive.c:683:6: warning: variable 'rc' is not initialized [cppcoreguidelines-init-variables]
        int rc;
            ^
               = 0
/datasets/git/archive.c:683:6: warning: variable name 'rc' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/archive.c:696:2: warning: Value stored to 'argc' is never read [clang-analyzer-deadcode.DeadStores]
        argc = parse_archive_args(argc, argv, &ar, &args, name_hint, remote);
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/archive.c:696:2: note: Value stored to 'argc' is never read
        argc = parse_archive_args(argc, argv, &ar, &args, name_hint, remote);
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/archive.c:719:18: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int prefixlen = strlen(filename) - strlen(ext);
                        ^
/datasets/git/archive.c:726:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prefixlen < 2 || filename[prefixlen - 1] != '.')
                                                            ^
                                                             {
/datasets/git/archive.c:733:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/archive.c:733:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/archive.c:735:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr_archivers; i++)
        ^
/datasets/git/archive.c:735:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < nr_archivers; i++)
                                          ^
                                           {
/datasets/git/archive.c:736:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (match_extension(filename, archivers[i]->name))
                                                                  ^
                                                                   {
/datasets/git/attr.c:10:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "attr.h"
/datasets/git/attr.c:36:8: warning: accessing fields in struct 'attr_hashmap' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct attr_hashmap {
       ^
/datasets/git/attr.c:36:8: note: use "__attribute__((aligned(128)))" to align struct 'attr_hashmap' to 128 bytes
/datasets/git/attr.c:52:8: warning: accessing fields in struct 'attr_hash_entry' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct attr_hash_entry {
       ^
/datasets/git/attr.c:52:8: note: use "__attribute__((aligned(64)))" to align struct 'attr_hash_entry' to 64 bytes
/datasets/git/attr.c:61:11: warning: 2 adjacent parameters of 'attr_hash_entry_cmp' of similar type ('const struct hashmap_entry *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                               const struct hashmap_entry *eptr,
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/attr.c:61:39: note: the first parameter in the range is 'eptr'
                               const struct hashmap_entry *eptr,
                                                           ^~~~
/datasets/git/attr.c:62:39: note: the last parameter in the range is 'entry_or_key'
                               const struct hashmap_entry *entry_or_key,
                                                           ^~~~~~~~~~~~
/datasets/git/attr.c:65:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const struct attr_hash_entry *a, *b;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/attr.c:65:32: warning: variable 'a' is not initialized [cppcoreguidelines-init-variables]
        const struct attr_hash_entry *a, *b;
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/attr.c:65:32: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/attr.c:65:36: warning: variable 'b' is not initialized [cppcoreguidelines-init-variables]
        const struct attr_hash_entry *a, *b;
                                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/attr.c:65:36: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/attr.c:69:37: warning: function 'strncmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        return (a->keylen != b->keylen) || strncmp(a->key, b->key, a->keylen);
                                           ^
                                                                              != 0
/datasets/git/attr.c:77:28: warning: variable 'g_attr_hashmap' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct attr_hashmap g_attr_hashmap = {
                           ^
/datasets/git/attr.c:88:25: warning: variable name 'k' is too short, expected at least 3 characters [readability-identifier-length]
        struct attr_hash_entry k;
                               ^
/datasets/git/attr.c:89:26: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct attr_hash_entry *e;
                                ^
                                  = NULL
/datasets/git/attr.c:89:26: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/attr.c:104:26: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct attr_hash_entry *e;
                                ^
                                  = NULL
/datasets/git/attr.c:104:26: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/attr.c:115:8: warning: accessing fields in struct 'all_attrs_item' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct all_attrs_item {
       ^
/datasets/git/attr.c:115:8: note: use "__attribute__((aligned(32)))" to align struct 'all_attrs_item' to 32 bytes
/datasets/git/attr.c:133:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/attr.c:133:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/attr.c:134:15: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned int size;
                     ^
                          = 0
/datasets/git/attr.c:149:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                struct attr_hash_entry *e;
                ^
/datasets/git/attr.c:139:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (size < check->all_attrs_nr)
                                       ^
                                        {
/datasets/git/attr.c:149:27: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
                struct attr_hash_entry *e;
                                        ^
                                          = NULL
/datasets/git/attr.c:149:27: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/attr.c:153:25: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                check->all_attrs_nr = size;
                                      ^
/datasets/git/attr.c:155:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                hashmap_for_each_entry(&map->map, &iter, e,
                ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/attr.c:155:44: warning: backward branch (for loop) is ID-dependent due to variable reference to 'e' and may cause performance degradation [altera-id-dependent-backward-branch]
                hashmap_for_each_entry(&map->map, &iter, e,
                                                         ^
/datasets/git/attr.c:157:27: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
                        const struct git_attr *a = e->value;
                                               ^
/datasets/git/attr.c:169:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < check->all_attrs_nr; i++) {
        ^
/datasets/git/attr.c:169:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'all_attrs_nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < check->all_attrs_nr; i++) {
                    ^
/datasets/git/attr.c:181:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (namelen <= 0 || *name == '-')
                                         ^
                                          {
/datasets/git/attr.c:183:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (namelen--) {
        ^
/datasets/git/attr.c:184:8: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
                char ch = *name++;
                     ^
/datasets/git/attr.c:188:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                       ('A' <= ch && ch <= 'Z')) )
                                                  ^
                                                   {
/datasets/git/attr.c:200:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(stderr, "%s: %s:%d\n", err.buf, src, lineno);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/attr.c:200:2: note: cast the expression to void to silence this warning
/datasets/git/attr.c:211:19: warning: variable 'a' is not initialized [cppcoreguidelines-init-variables]
        struct git_attr *a;
                         ^
                           = NULL
/datasets/git/attr.c:211:19: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/attr.c:213:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!attr_name_valid(name, namelen))
                                            ^
                                             {
/datasets/git/attr.c:221:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FLEX_ALLOC_MEM(a, name, name, namelen);
                ^
/datasets/git/./git-compat-util.h:1151:47: note: expanded from macro 'FLEX_ALLOC_MEM'
#define FLEX_ALLOC_MEM(x, flexname, buf, len) do { \
                                              ^
/datasets/git/attr.c:221:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                FLEX_ALLOC_MEM(a, name, name, namelen);
                ^
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/attr.c:221:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                FLEX_ALLOC_MEM(a, name, name, namelen);
                ^
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/attr.c:222:16: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                a->attr_nr = hashmap_get_size(&g_attr_hashmap.map);
                             ^
/datasets/git/attr.c:236:33: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return git_attr_internal(name, strlen(name));
                                       ^
/datasets/git/attr.c:240:8: warning: accessing fields in struct 'attr_state' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct attr_state {
       ^
/datasets/git/attr.c:240:8: note: use "__attribute__((aligned(16)))" to align struct 'attr_state' to 16 bytes
/datasets/git/attr.c:245:8: warning: accessing fields in struct 'pattern' is inefficient due to padding; only needs 20 bytes but is using 24 bytes [altera-struct-pack-align]
struct pattern {
       ^
/datasets/git/attr.c:245:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'pattern'
/datasets/git/attr.c:245:8: warning: accessing fields in struct 'pattern' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct pattern {
       ^
/datasets/git/attr.c:245:8: note: use "__attribute__((aligned(32)))" to align struct 'pattern' to 32 bytes
/datasets/git/attr.c:278:1: warning: replace macro with enum [modernize-macro-to-enum]
#define READ_ATTR_MACRO_OK (1<<0)
^~~~~~~~
                           =     ,
/datasets/git/attr.c:278:9: warning: macro 'READ_ATTR_MACRO_OK' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define READ_ATTR_MACRO_OK (1<<0)
        ^
/datasets/git/attr.c:279:9: warning: macro 'READ_ATTR_NOFOLLOW' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define READ_ATTR_NOFOLLOW (1<<1)
        ^
/datasets/git/attr.c:288:72: warning: parameter name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
static const char *parse_attr(const char *src, int lineno, const char *cp,
                                                                       ^
/datasets/git/attr.c:289:29: warning: parameter name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                              struct attr_state *e)
                                                 ^
/datasets/git/attr.c:291:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *ep, *equals;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/attr.c:291:14: warning: variable 'ep' is not initialized [cppcoreguidelines-init-variables]
        const char *ep, *equals;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/attr.c:291:14: warning: variable name 'ep' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/attr.c:291:19: warning: variable 'equals' is not initialized [cppcoreguidelines-init-variables]
        const char *ep, *equals;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/attr.c:292:6: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int len;
            ^
                = 0
/datasets/git/attr.c:296:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (equals && ep < equals)
                                  ^
                                   {
/datasets/git/attr.c:298:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (equals)
                   ^
                    {
/datasets/git/attr.c:299:9: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                len = equals - cp;
                      ^
/datasets/git/attr.c:300:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/attr.c:301:9: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                len = ep - cp;
                      ^
/datasets/git/attr.c:323:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!equals)
                                 ^
                                  {
/datasets/git/attr.c:333:43: warning: 2 adjacent parameters of 'parse_attr_line' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static struct match_attr *parse_attr_line(const char *line, const char *src,
                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/attr.c:333:55: note: the first parameter in the range is 'line'
static struct match_attr *parse_attr_line(const char *line, const char *src,
                                                      ^~~~
/datasets/git/attr.c:333:73: note: the last parameter in the range is 'src'
static struct match_attr *parse_attr_line(const char *line, const char *src,
                                                                        ^~~
/datasets/git/attr.c:334:8: warning: 2 adjacent parameters of 'parse_attr_line' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                          int lineno, unsigned flags)
                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/attr.c:334:12: note: the first parameter in the range is 'lineno'
                                          int lineno, unsigned flags)
                                              ^~~~~~
/datasets/git/attr.c:334:29: note: the last parameter in the range is 'flags'
                                          int lineno, unsigned flags)
                                                               ^~~~~
/datasets/git/attr.c:334:20: note: 'int' and 'unsigned int' may be implicitly converted
                                          int lineno, unsigned flags)
                                                      ^
/datasets/git/attr.c:336:6: warning: variable 'namelen' is not initialized [cppcoreguidelines-init-variables]
        int namelen;
            ^
                    = 0
/datasets/git/attr.c:337:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int num_attr, i;
        ^~~~~~~~~~~~~~~~
/datasets/git/attr.c:337:6: warning: variable 'num_attr' is not initialized [cppcoreguidelines-init-variables]
        int num_attr, i;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/attr.c:337:16: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int num_attr, i;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/attr.c:337:16: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/attr.c:338:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *cp, *name, *states;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/attr.c:338:14: warning: variable 'cp' is not initialized [cppcoreguidelines-init-variables]
        const char *cp, *name, *states;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/attr.c:338:14: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/attr.c:338:19: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
        const char *cp, *name, *states;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/attr.c:338:26: warning: variable 'states' is not initialized [cppcoreguidelines-init-variables]
        const char *cp, *name, *states;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/attr.c:340:6: warning: variable 'is_macro' is not initialized [cppcoreguidelines-init-variables]
        int is_macro;
            ^
                     = 0
/datasets/git/attr.c:344:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!*cp || *cp == '#')
                               ^
                                {
/datasets/git/attr.c:350:13: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                namelen = pattern.len;
                          ^
/datasets/git/attr.c:352:13: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                namelen = strcspn(name, blank);
                          ^
/datasets/git/attr.c:358:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(flags & READ_ATTR_MACRO_OK)) {
                      ^
/datasets/git/attr.c:358:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(flags & READ_ATTR_MACRO_OK)) {
                              ^
/datasets/git/attr.c:278:29: note: expanded from macro 'READ_ATTR_MACRO_OK'
#define READ_ATTR_MACRO_OK (1<<0)
                            ^
/datasets/git/attr.c:366:13: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                namelen = strcspn(name, blank);
                          ^
/datasets/git/attr.c:372:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/attr.c:378:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cp = states, num_attr = 0; *cp; num_attr++) {
        ^
/datasets/git/attr.c:338:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        const char *cp, *name, *states;
        ^
/datasets/git/attr.c:378:34: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cp' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (cp = states, num_attr = 0; *cp; num_attr++) {
                                        ^
/datasets/git/attr.c:380:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!cp)
                        ^
                         {
/datasets/git/attr.c:391:9: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                char *p = (char *)&(res->state[num_attr]);
                      ^
/datasets/git/attr.c:392:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(p, name, namelen);
                ^~~~~~
/datasets/git/attr.c:392:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(p, name, namelen);
                ^~~~~~
/datasets/git/attr.c:398:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (res->u.pat.flags & PATTERN_FLAG_NEGATIVE) {
                    ^
/datasets/git/attr.c:404:18: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        res->is_macro = is_macro;
                        ^
/datasets/git/attr.c:408:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cp = states, i = 0; *cp; i++) {
        ^
/datasets/git/attr.c:408:27: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cp' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (cp = states, i = 0; *cp; i++) {
                                 ^
/datasets/git/attr.c:439:8: warning: accessing fields in struct 'attr_stack' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct attr_stack {
       ^
/datasets/git/attr.c:439:8: note: use "__attribute__((aligned(64)))" to align struct 'attr_stack' to 64 bytes
/datasets/git/attr.c:448:48: warning: parameter name 'e' is too short, expected at least 3 characters [readability-identifier-length]
static void attr_stack_free(struct attr_stack *e)
                                               ^
/datasets/git/attr.c:450:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/attr.c:450:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/attr.c:453:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                struct match_attr *a = e->attrs[i];
                ^
/datasets/git/attr.c:453:22: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
                struct match_attr *a = e->attrs[i];
                                   ^
/datasets/git/attr.c:454:7: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
                int j;
                    ^
                      = 0
/datasets/git/attr.c:454:7: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/attr.c:455:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (j = 0; j < a->num_attr; j++) {
                ^
/datasets/git/attr.c:455:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'a' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (j = 0; j < a->num_attr; j++) {
                            ^
/datasets/git/attr.c:460:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            setto == ATTR__UNKNOWN)
                                                   ^
                                                    {
/datasets/git/attr.c:462:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/attr.c:473:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*stack) {
        ^
/datasets/git/attr.c:481:15: warning: accessing fields in struct 'check_vector' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
static struct check_vector {
              ^
/datasets/git/attr.c:481:15: note: use "__attribute__((aligned(64)))" to align struct 'check_vector' to 64 bytes
/datasets/git/attr.c:486:3: warning: variable 'check_vector' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} check_vector;
  ^
/datasets/git/attr.c:498:49: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static void check_vector_add(struct attr_check *c)
                                                ^
/datasets/git/attr.c:502:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(check_vector.checks,
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/attr.c:502:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_GROW(check_vector.checks,
        ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/attr.c:512:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/attr.c:512:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/attr.c:517:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < check_vector.nr; i++)
        ^
/datasets/git/attr.c:517:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < check_vector.nr; i++)
                                             ^
                                              {
/datasets/git/attr.c:518:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (check_vector.checks[i] == check)
                                                    ^
                                                     {
/datasets/git/attr.c:521:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (i >= check_vector.nr)
                                 ^
                                  {
/datasets/git/attr.c:525:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; i < check_vector.nr - 1; i++)
        ^
/datasets/git/attr.c:525:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (; i < check_vector.nr - 1; i++)
                                            ^
                                             {
/datasets/git/attr.c:536:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/attr.c:536:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/attr.c:540:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < check_vector.nr; i++) {
        ^
/datasets/git/attr.c:549:21: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        struct attr_check *c = xcalloc(1, sizeof(struct attr_check));
                           ^
/datasets/git/attr.c:559:21: warning: variable 'check' is not initialized [cppcoreguidelines-init-variables]
        struct attr_check *check;
                           ^
                                 = NULL
/datasets/git/attr.c:560:6: warning: variable 'cnt' is not initialized [cppcoreguidelines-init-variables]
        int cnt;
            ^
                = 0
/datasets/git/attr.c:562:14: warning: variable 'param' is not initialized [cppcoreguidelines-init-variables]
        const char *param;
                    ^
                          = NULL
/datasets/git/attr.c:565:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cnt = 1; (param = va_arg(params, const char *)) != NULL; cnt++)
        ^
./attr.h:166:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        int nr;
        ^
/datasets/git/attr.c:565:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'param' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (cnt = 1; (param = va_arg(params, const char *)) != NULL; cnt++)
                      ^
/datasets/git/attr.c:565:17: warning: Although the value stored to 'param' is used in the enclosing expression, the value is never actually read from 'param' [clang-analyzer-deadcode.DeadStores]
        for (cnt = 1; (param = va_arg(params, const char *)) != NULL; cnt++)
                       ^
/datasets/git/attr.c:565:17: note: Although the value stored to 'param' is used in the enclosing expression, the value is never actually read from 'param'
/datasets/git/attr.c:565:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (cnt = 1; (param = va_arg(params, const char *)) != NULL; cnt++)
                                                                            ^
                                                                             {
/datasets/git/attr.c:576:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cnt = 1; cnt < check->nr; cnt++) {
        ^
/datasets/git/attr.c:576:16: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (cnt = 1; cnt < check->nr; cnt++) {
                      ^
/datasets/git/attr.c:577:26: warning: variable 'attr' is not initialized [cppcoreguidelines-init-variables]
                const struct git_attr *attr;
                                       ^
                                            = NULL
/datasets/git/attr.c:579:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!param)
                           ^
                            {
/datasets/git/attr.c:583:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!attr)
                          ^
                           {
/datasets/git/attr.c:593:21: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        struct attr_check *ret;
                           ^
                               = NULL
/datasets/git/attr.c:595:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!check)
                   ^
                    {
/datasets/git/attr.c:611:26: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct attr_check_item *item;
                                ^
                                     = NULL
/datasets/git/attr.c:613:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(check->items, check->nr + 1, check->alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/attr.c:626:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(check->items);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/attr.c:630:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(check->all_attrs);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/attr.c:647:20: warning: variable 'builtin_attr' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *builtin_attr[] = {
                   ^
/datasets/git/attr.c:658:21: warning: variable 'a' is not initialized [cppcoreguidelines-init-variables]
        struct match_attr *a;
                           ^
                             = NULL
/datasets/git/attr.c:658:21: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/attr.c:661:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!a)
               ^
                {
/datasets/git/attr.c:663:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(res->attrs, res->num_matches + 1, res->alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/attr.c:663:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_GROW(res->attrs, res->num_matches + 1, res->alloc);
        ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/attr.c:669:21: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        struct attr_stack *res;
                           ^
                               = NULL
/datasets/git/attr.c:670:14: warning: variable 'line' is not initialized [cppcoreguidelines-init-variables]
        const char *line;
                    ^
                         = NULL
/datasets/git/attr.c:674:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((line = *(list++)) != NULL)
        ^
/datasets/git/attr.c:674:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'line' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((line = *(list++)) != NULL)
               ^
/datasets/git/attr.c:674:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while ((line = *(list++)) != NULL)
                                          ^
                                           {
/datasets/git/attr.c:676:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                 READ_ATTR_MACRO_OK);
                                 ^
/datasets/git/attr.c:278:29: note: expanded from macro 'READ_ATTR_MACRO_OK'
#define READ_ATTR_MACRO_OK (1<<0)
                            ^
/datasets/git/attr.c:689:32: warning: variable 'direction' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static enum git_attr_direction direction;
                               ^
/datasets/git/attr.c:693:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_bare_repository() && new_direction != GIT_ATTR_INDEX)
                                                                    ^
                                                                     {
/datasets/git/attr.c:696:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (new_direction != direction)
                                       ^
                                        {
/datasets/git/attr.c:704:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/attr.c:704:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/attr.c:705:8: warning: variable 'fp' is not initialized [cppcoreguidelines-init-variables]
        FILE *fp;
              ^
                 = NULL
/datasets/git/attr.c:705:8: warning: variable name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/attr.c:706:21: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        struct attr_stack *res;
                           ^
                               = NULL
/datasets/git/attr.c:707:11: warning: 2048 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        char buf[2048];
                 ^
/datasets/git/attr.c:710:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & READ_ATTR_NOFOLLOW)
            ^
/datasets/git/attr.c:710:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & READ_ATTR_NOFOLLOW)
                    ^
/datasets/git/attr.c:279:29: note: expanded from macro 'READ_ATTR_NOFOLLOW'
#define READ_ATTR_NOFOLLOW (1<<1)
                            ^
/datasets/git/attr.c:710:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & READ_ATTR_NOFOLLOW)
                                       ^
                                        {
/datasets/git/attr.c:712:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/attr.c:713:27: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
                fd = open(path, O_RDONLY);
                                        ^
                                         | O_CLOEXEC
/datasets/git/attr.c:722:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (fgets(buf, sizeof(buf), fp)) {
        ^
/datasets/git/attr.c:722:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'fp' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (fgets(buf, sizeof(buf), fp)) {
               ^
/datasets/git/attr.c:724:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!lineno)
                            ^
                             {
/datasets/git/attr.c:728:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(fp);
        ^~~~~~~~~~
/datasets/git/attr.c:728:2: note: cast the expression to void to silence this warning
/datasets/git/attr.c:736:21: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        struct attr_stack *res;
                           ^
                               = NULL
/datasets/git/attr.c:737:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *buf, *sp;
        ^~~~~~~~~~~~~~~
/datasets/git/attr.c:737:8: warning: variable 'buf' is not initialized [cppcoreguidelines-init-variables]
        char *buf, *sp;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/attr.c:737:14: warning: variable 'sp' is not initialized [cppcoreguidelines-init-variables]
        char *buf, *sp;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/attr.c:737:14: warning: variable name 'sp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/attr.c:740:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!istate)
                    ^
                     {
/datasets/git/attr.c:754:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!path_in_cone_mode_sparse_checkout(path, istate))
                                                             ^
                                                              {
/datasets/git/attr.c:758:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!buf)
                 ^
                  {
/datasets/git/attr.c:762:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (sp = buf; *sp; ) {
        ^
/datasets/git/attr.c:762:17: warning: backward branch (for loop) is ID-dependent due to variable reference to 'sp' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (sp = buf; *sp; ) {
                       ^
/datasets/git/attr.c:763:9: warning: variable 'ep' is not initialized [cppcoreguidelines-init-variables]
                char *ep;
                      ^
                         = NULL
/datasets/git/attr.c:763:9: warning: variable name 'ep' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/attr.c:764:7: warning: variable 'more' is not initialized [cppcoreguidelines-init-variables]
                int more;
                    ^
                         = 0
/datasets/git/attr.c:786:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!res)
                                 ^
                                  {
/datasets/git/attr.c:790:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!res)
                                 ^
                                  {
/datasets/git/attr.c:801:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!res)
                 ^
                  {
/datasets/git/attr.c:809:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!system_wide)
                         ^
                          {
/datasets/git/attr.c:816:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!git_attributes_file)
                                 ^
                                  {
/datasets/git/attr.c:827:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(git_path_info_attributes, INFOATTRIBUTES_FILE)
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/attr.c:834:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (origin)
                           ^
                            {
/datasets/git/attr.c:844:21: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct attr_stack *e;
                           ^
                             = NULL
/datasets/git/attr.c:844:21: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/attr.c:845:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned flags = READ_ATTR_MACRO_OK;
                         ^
/datasets/git/attr.c:278:29: note: expanded from macro 'READ_ATTR_MACRO_OK'
#define READ_ATTR_MACRO_OK (1<<0)
                            ^
/datasets/git/attr.c:847:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*stack)
                   ^
                    {
/datasets/git/attr.c:867:44: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        e = read_attr(istate, GITATTRIBUTES_FILE, flags | READ_ATTR_NOFOLLOW);
                                                  ^
/datasets/git/attr.c:867:52: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        e = read_attr(istate, GITATTRIBUTES_FILE, flags | READ_ATTR_NOFOLLOW);
                                                          ^
/datasets/git/attr.c:279:29: note: expanded from macro 'READ_ATTR_NOFOLLOW'
#define READ_ATTR_NOFOLLOW (1<<1)
                            ^
/datasets/git/attr.c:441:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        char *origin;
        ^
/datasets/git/attr.c:871:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (startup_info->have_repository)
                                          ^
                                           {
/datasets/git/attr.c:873:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/attr.c:875:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!e)
               ^
                {
/datasets/git/attr.c:884:21: warning: variable 'info' is not initialized [cppcoreguidelines-init-variables]
        struct attr_stack *info;
                           ^
                                = NULL
/datasets/git/attr.c:908:11: warning: Access to field 'prev' results in a dereference of a null pointer (loaded from variable 'info') [clang-analyzer-core.NullDereference]
        *stack = info->prev;
                 ^
/datasets/git/attr.c:1128:2: note: Calling 'collect_some_attrs'
        collect_some_attrs(istate, path, check);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/attr.c:1084:2: note: Loop condition is false. Execution continues on line 1088
        for (cp = path; *cp; cp++) {
        ^
/datasets/git/attr.c:1089:6: note: 'last_slash' is null
        if (last_slash) {
            ^~~~~~~~~~
/datasets/git/attr.c:1089:2: note: Taking false branch
        if (last_slash) {
        ^
/datasets/git/attr.c:1097:2: note: Calling 'prepare_attr_stack'
        prepare_attr_stack(istate, path, dirlen, &check->stack);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/attr.c:907:2: note: Null pointer value stored to 'info'
        info = *stack;
        ^~~~~~~~~~~~~
/datasets/git/attr.c:908:11: note: Access to field 'prev' results in a dereference of a null pointer (loaded from variable 'info')
        *stack = info->prev;
                 ^~~~
/datasets/git/attr.c:916:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((*stack)->origin) {
        ^
/datasets/git/attr.c:885:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct strbuf pathbuf = STRBUF_INIT;
        ^
/datasets/git/attr.c:916:9: warning: backward branch (while loop) is ID-dependent due to member reference to 'origin' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((*stack)->origin) {
               ^
/datasets/git/attr.c:916:9: warning: Access to field 'origin' results in a dereference of a null pointer [clang-analyzer-core.NullDereference]
/datasets/git/attr.c:1128:2: note: Calling 'collect_some_attrs'
        collect_some_attrs(istate, path, check);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/attr.c:1084:2: note: Loop condition is false. Execution continues on line 1088
        for (cp = path; *cp; cp++) {
        ^
/datasets/git/attr.c:1089:6: note: 'last_slash' is null
        if (last_slash) {
            ^~~~~~~~~~
/datasets/git/attr.c:1089:2: note: Taking false branch
        if (last_slash) {
        ^
/datasets/git/attr.c:1097:2: note: Calling 'prepare_attr_stack'
        prepare_attr_stack(istate, path, dirlen, &check->stack);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/attr.c:902:2: note: Calling 'bootstrap_attr_stack'
        bootstrap_attr_stack(istate, stack);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/attr.c:847:6: note: Assuming the condition is false
        if (*stack)
            ^~~~~~
/datasets/git/attr.c:847:2: note: Taking false branch
        if (*stack)
        ^
/datasets/git/attr.c:855:2: note: Taking false branch
        if (git_attr_system()) {
        ^
/datasets/git/attr.c:861:6: note: Assuming the condition is false
        if (get_home_gitattributes()) {
            ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/attr.c:861:2: note: Taking false branch
        if (get_home_gitattributes()) {
        ^
/datasets/git/attr.c:871:6: note: Assuming field 'have_repository' is 0
        if (startup_info->have_repository)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/attr.c:871:2: note: Taking false branch
        if (startup_info->have_repository)
        ^
/datasets/git/attr.c:875:7: note: 'e' is null
        if (!e)
             ^
/datasets/git/attr.c:875:2: note: Taking true branch
        if (!e)
        ^
/datasets/git/attr.c:877:2: note: Calling 'push_stack'
        push_stack(stack, e, NULL, 0);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/attr.c:832:6: note: Assuming 'elem' is non-null
        if (elem) {
            ^~~~
/datasets/git/attr.c:832:2: note: Taking true branch
        if (elem) {
        ^
/datasets/git/attr.c:834:7: note: 'origin' is null
                if (origin)
                    ^~~~~~
/datasets/git/attr.c:834:3: note: Taking false branch
                if (origin)
                ^
/datasets/git/attr.c:836:3: note: Null pointer value stored to field 'prev'
                elem->prev = *attr_stack_p;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/attr.c:877:2: note: Returning from 'push_stack'
        push_stack(stack, e, NULL, 0);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/attr.c:902:2: note: Returning from 'bootstrap_attr_stack'
        bootstrap_attr_stack(istate, stack);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/attr.c:908:2: note: Null pointer value stored to field 'stack'
        *stack = info->prev;
        ^~~~~~~~~~~~~~~~~~~
/datasets/git/attr.c:916:9: note: Access to field 'origin' results in a dereference of a null pointer
        while ((*stack)->origin) {
               ^~~~~~~~~~~~~~~~
/datasets/git/attr.c:917:17: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int namelen = (*stack)->originlen;
                              ^
/datasets/git/attr.c:918:22: warning: variable 'elem' is not initialized [cppcoreguidelines-init-variables]
                struct attr_stack *elem;
                                   ^
                                        = NULL
/datasets/git/attr.c:923:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    (!namelen || path[namelen] == '/'))
                                                       ^
                                                        {
/datasets/git/attr.c:940:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'pathbuf' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (pathbuf.len < dirlen) {
               ^
/datasets/git/attr.c:942:22: warning: variable 'next' is not initialized [cppcoreguidelines-init-variables]
                struct attr_stack *next;
                                   ^
                                        = NULL
/datasets/git/attr.c:943:9: warning: variable 'origin' is not initialized [cppcoreguidelines-init-variables]
                char *origin;
                      ^
                             = NULL
/datasets/git/attr.c:946:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (len < dirlen && is_dir_sep(path[len]))
                                                          ^
                                                           {
/datasets/git/attr.c:949:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (len < dirlen && !is_dir_sep(path[len]))
                ^
/datasets/git/attr.c:949:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (len < dirlen && !is_dir_sep(path[len]))
                       ^
/datasets/git/attr.c:949:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (len < dirlen && !is_dir_sep(path[len]))
                                                              ^
                                                               {
/datasets/git/attr.c:952:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pathbuf.len > 0)
                                    ^
                                     {
/datasets/git/attr.c:957:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                next = read_attr(istate, pathbuf.buf, READ_ATTR_NOFOLLOW);
                                                      ^
/datasets/git/attr.c:279:29: note: expanded from macro 'READ_ATTR_NOFOLLOW'
#define READ_ATTR_NOFOLLOW (1<<1)
                            ^
/datasets/git/attr.c:983:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((pat->flags & PATTERN_FLAG_MUSTBEDIR) && !isdir)
             ^
/datasets/git/attr.c:983:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((pat->flags & PATTERN_FLAG_MUSTBEDIR) && !isdir)
                                                            ^
                                                             {
/datasets/git/attr.c:986:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (pat->flags & PATTERN_FLAG_NODIR) {
            ^
/datasets/git/attr.c:997:66: warning: parameter name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
static int macroexpand_one(struct all_attrs_item *all_attrs, int nr, int rem);
                                                                 ^
/datasets/git/attr.c:999:12: warning: function 'fill_one' is within a recursive call chain [misc-no-recursion]
static int fill_one(struct all_attrs_item *all_attrs,
           ^
/datasets/git/attr.c:1039:12: note: example recursive call chain, starting from function 'macroexpand_one'
static int macroexpand_one(struct all_attrs_item *all_attrs, int nr, int rem)
           ^
/datasets/git/attr.c:1044:10: note: Frame #1: function 'macroexpand_one' calls function 'fill_one' here:
                return fill_one(all_attrs, item->macro, rem);
                       ^
/datasets/git/attr.c:1012:10: note: Frame #2: function 'fill_one' calls function 'macroexpand_one' here:
                        rem = macroexpand_one(all_attrs, attr->attr_nr, rem);
                              ^
/datasets/git/attr.c:1012:10: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/attr.c:1000:32: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
                    const struct match_attr *a, int rem)
                                             ^
/datasets/git/attr.c:1000:35: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                    const struct match_attr *a, int rem)
                                                ^
/datasets/git/attr.c:1002:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/attr.c:1002:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/attr.c:1004:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = a->num_attr - 1; rem > 0 && i >= 0; i--) {
        ^
/datasets/git/attr.c:1004:11: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        for (i = a->num_attr - 1; rem > 0 && i >= 0; i--) {
                 ^
/datasets/git/attr.c:1004:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'rem' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = a->num_attr - 1; rem > 0 && i >= 0; i--) {
                                  ^
/datasets/git/attr.c:1006:16: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
                const char **n = &(all_attrs[attr->attr_nr].value);
                             ^
/datasets/git/attr.c:1007:15: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
                const char *v = a->state[i].setto;
                            ^
/datasets/git/attr.c:1020:37: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                struct all_attrs_item *all_attrs, int rem)
                                                  ^
/datasets/git/attr.c:1022:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'rem' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; rem > 0 && stack; stack = stack->prev) {
               ^
/datasets/git/attr.c:1020:37: note: inferred assignment of ID-dependent value from ID-dependent 
                struct all_attrs_item *all_attrs, int rem)
                                                  ^
/datasets/git/attr.c:1023:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/attr.c:1023:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/attr.c:1026:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = stack->num_matches - 1; 0 < rem && 0 <= i; i--) {
                ^
/datasets/git/attr.c:1026:12: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                for (i = stack->num_matches - 1; 0 < rem && 0 <= i; i--) {
                         ^
/datasets/git/attr.c:1026:36: warning: backward branch (for loop) is ID-dependent due to variable reference to 'rem' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = stack->num_matches - 1; 0 < rem && 0 <= i; i--) {
                                                 ^
/datasets/git/attr.c:1027:29: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
                        const struct match_attr *a = stack->attrs[i];
                                                 ^
/datasets/git/attr.c:1028:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (a->is_macro)
                                        ^
                                         {
/datasets/git/attr.c:1031:24: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                         &a->u.pat, base, stack->originlen))
                                                          ^
/datasets/git/attr.c:1031:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                         &a->u.pat, base, stack->originlen))
                                                                            ^
                                                                             {
/datasets/git/attr.c:1039:12: warning: function 'macroexpand_one' is within a recursive call chain [misc-no-recursion]
static int macroexpand_one(struct all_attrs_item *all_attrs, int nr, int rem)
           ^
/datasets/git/attr.c:1039:62: warning: 2 adjacent parameters of 'macroexpand_one' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int macroexpand_one(struct all_attrs_item *all_attrs, int nr, int rem)
                                                             ^~~~~~~~~~~~~~~
/datasets/git/attr.c:1039:66: note: the first parameter in the range is 'nr'
static int macroexpand_one(struct all_attrs_item *all_attrs, int nr, int rem)
                                                                 ^~
/datasets/git/attr.c:1039:74: note: the last parameter in the range is 'rem'
static int macroexpand_one(struct all_attrs_item *all_attrs, int nr, int rem)
                                                                         ^~~
/datasets/git/attr.c:1039:66: warning: parameter name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
static int macroexpand_one(struct all_attrs_item *all_attrs, int nr, int rem)
                                                                 ^
/datasets/git/attr.c:1043:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (item->macro && item->value == ATTR__TRUE)
                                                     ^
                                                      {
/datasets/git/attr.c:1045:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else
        ^~~~
                        return rem
/datasets/git/attr.c:1045:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/attr.c:1057:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'stack' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; stack; stack = stack->prev) {
               ^
/datasets/git/attr.c:1058:3: note: inferred assignment of ID-dependent value from ID-dependent 
                int i;
                ^
/datasets/git/attr.c:1058:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/attr.c:1058:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/attr.c:1059:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = stack->num_matches - 1; i >= 0; i--) {
                ^
/datasets/git/attr.c:1059:12: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                for (i = stack->num_matches - 1; i >= 0; i--) {
                         ^
/datasets/git/attr.c:1059:36: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = stack->num_matches - 1; i >= 0; i--) {
                                                 ^
/datasets/git/attr.c:1060:29: warning: variable name 'ma' is too short, expected at least 3 characters [readability-identifier-length]
                        const struct match_attr *ma = stack->attrs[i];
                                                 ^
/datasets/git/attr.c:1062:9: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
                                int n = ma->u.attr->attr_nr;
                                    ^
/datasets/git/attr.c:1080:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int pathlen, rem, dirlen;
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/attr.c:1080:6: warning: variable 'pathlen' is not initialized [cppcoreguidelines-init-variables]
        int pathlen, rem, dirlen;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/attr.c:1080:15: warning: variable 'rem' is not initialized [cppcoreguidelines-init-variables]
        int pathlen, rem, dirlen;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/attr.c:1080:20: warning: variable 'dirlen' is not initialized [cppcoreguidelines-init-variables]
        int pathlen, rem, dirlen;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/attr.c:1081:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *cp, *last_slash = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/attr.c:1081:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/attr.c:1081:14: warning: variable 'cp' is not initialized [cppcoreguidelines-init-variables]
        const char *cp, *last_slash = NULL;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/attr.c:1081:14: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/attr.c:1082:6: warning: variable 'basename_offset' is not initialized [cppcoreguidelines-init-variables]
        int basename_offset;
            ^
                            = 0
/datasets/git/attr.c:1084:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cp = path; *cp; cp++) {
        ^
/datasets/git/attr.c:1084:18: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cp' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (cp = path; *cp; cp++) {
                        ^
/datasets/git/attr.c:1085:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*cp == '/' && cp[1])
                                        ^
                                         {
/datasets/git/attr.c:1088:12: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        pathlen = cp - path;
                  ^
/datasets/git/attr.c:1090:21: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                basename_offset = last_slash + 1 - path;
                                  ^
/datasets/git/attr.c:1091:12: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                dirlen = last_slash - path;
                         ^
/datasets/git/attr.c:1109:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/attr.c:1109:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/attr.c:1113:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < check->nr; i++) {
        ^
/datasets/git/attr.c:1113:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < check->nr; i++) {
                    ^
/datasets/git/attr.c:1114:10: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
                size_t n = check->items[i].attr->attr_nr;
                       ^
./attr.h:169:2: note: inferred assignment of ID-dependent member from ID-dependent variable size [altera-id-dependent-backward-branch]
        int all_attrs_nr;
        ^
/datasets/git/attr.c:1116:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (value == ATTR__UNKNOWN)
                                           ^
                                            {
/datasets/git/attr.c:1125:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/attr.c:1125:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/attr.c:1130:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < check->all_attrs_nr; i++) {
        ^
/datasets/git/attr.c:1130:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'all_attrs_nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < check->all_attrs_nr; i++) {
                    ^
/datasets/git/attr.c:1133:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
                struct attr_check_item *item;
                                        ^
                                             = NULL
/datasets/git/attr.c:1134:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (value == ATTR__UNSET || value == ATTR__UNKNOWN)
                                                                   ^
                                                                    {
base85.c:28:13: warning: variable 'de85' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char de85[256];
            ^
base85.c:28:18: warning: 256 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
static char de85[256];
                 ^
/datasets/git/base85.c:31:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/base85.c:31:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/base85.c:32:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (de85['Z'])
                      ^
                       {
/datasets/git/base85.c:34:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ARRAY_SIZE(en85); i++) {
        ^
/datasets/git/base85.c:35:7: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
                int ch = en85[i];
                    ^
/datasets/git/base85.c:35:12: warning: 'signed char' to 'int' conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse,cert-str34-c]
                int ch = en85[i];
                         ^
/datasets/git/base85.c:36:14: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                de85[ch] = i + 1;
                           ^
/datasets/git/base85.c:44:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        say2("decode 85 <%.*s>", len / 4 * 5, buffer);
        ^
/datasets/git/base85.c:12:21: note: expanded from macro 'say2'
#define say2(a,b,c) do { /* nothing */ } while (0)
                    ^
/datasets/git/base85.c:40:46: note: inferred assignment of ID-dependent value from ID-dependent variable cnt [altera-id-dependent-backward-branch]
int decode_85(char *dst, const char *buffer, int len)
                                             ^
/datasets/git/base85.c:45:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (len) {
               ^
/datasets/git/base85.c:47:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int de, cnt = 4;
                ^~~~~~~~~~~~~~~~
/datasets/git/base85.c:47:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/base85.c:47:7: warning: variable 'de' is not initialized [cppcoreguidelines-init-variables]
                int de, cnt = 4;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/base85.c:47:7: warning: variable name 'de' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/base85.c:48:17: warning: variable 'ch' is not initialized [cppcoreguidelines-init-variables]
                unsigned char ch;
                              ^
                                 = 0
/datasets/git/base85.c:48:17: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/base85.c:49:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                do {
                ^
/datasets/git/base85.c:51:9: warning: 'signed char' to 'int' conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse,cert-str34-c]
                        de = de85[ch];
                             ^
/datasets/git/base85.c:52:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (--de < 0)
                                     ^
                                      {
/datasets/git/base85.c:54:16: warning: 85 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        acc = acc * 85 + de;
                                    ^
/datasets/git/base85.c:55:12: warning: backward branch (do loop) is ID-dependent due to variable reference to 'cnt' and may cause performance degradation [altera-id-dependent-backward-branch]
                } while (--cnt);
                         ^
/datasets/git/base85.c:57:8: warning: 'signed char' to 'int' conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse,cert-str34-c]
                de = de85[ch];
                     ^
/datasets/git/base85.c:58:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (--de < 0)
                             ^
                              {
/datasets/git/base85.c:61:7: warning: 0xffffffff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (0xffffffff / 85 < acc ||
                    ^
/datasets/git/base85.c:61:20: warning: 85 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (0xffffffff / 85 < acc ||
                                 ^
/datasets/git/base85.c:62:7: warning: 0xffffffff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                    0xffffffff - de < (acc *= 85))
                    ^
/datasets/git/base85.c:62:26: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                    0xffffffff - de < (acc *= 85))
                                       ^
/datasets/git/base85.c:62:26: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/base85.c:62:26: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/base85.c:62:33: warning: 85 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                    0xffffffff - de < (acc *= 85))
                                              ^
/datasets/git/base85.c:62:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    0xffffffff - de < (acc *= 85))
                                                  ^
                                                   {
/datasets/git/base85.c:65:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                say1(" %08x", acc);
                ^
/datasets/git/base85.c:11:19: note: expanded from macro 'say1'
#define say1(a,b) do { /* nothing */ } while (0)
                  ^
/datasets/git/base85.c:47:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                int de, cnt = 4;
                ^
/datasets/git/base85.c:69:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                do {
                ^
/datasets/git/base85.c:70:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        acc = (acc << 8) | (acc >> 24);
                               ^      ~
/datasets/git/base85.c:70:18: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        acc = (acc << 8) | (acc >> 24);
                                      ^
/datasets/git/base85.c:70:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        acc = (acc << 8) | (acc >> 24);
                                            ^      ~~
/datasets/git/base85.c:70:31: warning: 24 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        acc = (acc << 8) | (acc >> 24);
                                                   ^
/datasets/git/base85.c:71:13: warning: narrowing conversion from 'unsigned int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        *dst++ = acc;
                                 ^
/datasets/git/base85.c:72:12: warning: backward branch (do loop) is ID-dependent due to variable reference to 'cnt' and may cause performance degradation [altera-id-dependent-backward-branch]
                } while (--cnt);
                         ^
/datasets/git/base85.c:74:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        say("\n");
        ^
/datasets/git/base85.c:10:16: note: expanded from macro 'say'
#define say(a) do { /* nothing */ } while (0)
               ^
/datasets/git/base85.c:81:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        say("encode 85");
        ^
/datasets/git/base85.c:10:16: note: expanded from macro 'say'
#define say(a) do { /* nothing */ } while (0)
               ^
/datasets/git/base85.c:84:7: warning: variable 'cnt' is not initialized [cppcoreguidelines-init-variables]
                int cnt;
                    ^
                        = 0
/datasets/git/base85.c:85:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (cnt = 24; cnt >= 0; cnt -= 8) {
                ^
/datasets/git/base85.c:85:14: warning: 24 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                for (cnt = 24; cnt >= 0; cnt -= 8) {
                           ^
/datasets/git/base85.c:85:35: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                for (cnt = 24; cnt >= 0; cnt -= 8) {
                                                ^
/datasets/git/base85.c:86:13: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
                        unsigned ch = *data++;
                                 ^
/datasets/git/base85.c:87:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        acc |= ch << cnt;
                               ^     ~~~
/datasets/git/base85.c:88:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (--bytes == 0)
                                         ^
                                          {
/datasets/git/base85.c:91:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                say1(" %08x", acc);
                ^
/datasets/git/base85.c:11:19: note: expanded from macro 'say1'
#define say1(a,b) do { /* nothing */ } while (0)
                  ^
/datasets/git/base85.c:92:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (cnt = 4; cnt >= 0; cnt--) {
                ^
/datasets/git/base85.c:93:14: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        int val = acc % 85;
                                  ^
/datasets/git/base85.c:93:20: warning: 85 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        int val = acc % 85;
                                        ^
/datasets/git/base85.c:94:11: warning: 85 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        acc /= 85;
                               ^
/datasets/git/base85.c:97:10: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                buf += 5;
                       ^
/datasets/git/base85.c:99:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        say("\n");
        ^
/datasets/git/base85.c:10:16: note: expanded from macro 'say'
#define say(a) do { /* nothing */ } while (0)
               ^
/datasets/git/bisect.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "bisect.h"
/datasets/git/bisect.c:20:25: warning: variable 'good_revs' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct oid_array good_revs;
                        ^
/datasets/git/bisect.c:21:25: warning: variable 'skipped_revs' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct oid_array skipped_revs;
                        ^
/datasets/git/bisect.c:23:26: warning: variable 'current_bad_oid' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct object_id *current_bad_oid;
                         ^
/datasets/git/bisect.c:23:26: warning: variable 'current_bad_oid' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/bisect.c:25:20: warning: variable 'term_bad' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *term_bad;
                   ^
/datasets/git/bisect.c:26:20: warning: variable 'term_good' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *term_good;
                   ^
/datasets/git/bisect.c:38:27: note: inferred assignment of ID-dependent value from ID-dependent variable p [altera-id-dependent-backward-branch]
static int count_distance(struct commit_list *entry)
                          ^
/datasets/git/bisect.c:29:1: warning: replace macro with enum [modernize-macro-to-enum]
#define COUNTED         (1u<<16)
^~~~~~~~
                =
/datasets/git/bisect.c:29:9: warning: macro 'COUNTED' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define COUNTED         (1u<<16)
        ^
/datasets/git/bisect.c:38:12: warning: function 'count_distance' is within a recursive call chain [misc-no-recursion]
static int count_distance(struct commit_list *entry)
           ^
/datasets/git/bisect.c:38:12: note: example recursive call chain, starting from function 'count_distance'
/datasets/git/bisect.c:56:11: note: Frame #1: function 'count_distance' calls function 'count_distance' here:
                                nr += count_distance(p);
                                      ^
/datasets/git/bisect.c:56:11: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/bisect.c:40:6: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
        int nr = 0;
            ^
/datasets/git/bisect.c:42:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'entry' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (entry) {
               ^
/datasets/git/bisect.c:44:23: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                struct commit_list *p;
                                    ^
                                      = NULL
/datasets/git/bisect.c:44:23: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/bisect.c:46:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (commit->object.flags & (UNINTERESTING | COUNTED))
                                            ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/bisect.c:46:47: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (commit->object.flags & (UNINTERESTING | COUNTED))
                                                            ^
/datasets/git/bisect.c:29:19: note: expanded from macro 'COUNTED'
#define COUNTED         (1u<<16)
                         ^   ~~
/datasets/git/bisect.c:46:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (commit->object.flags & (UNINTERESTING | COUNTED))
                                                                     ^
                                                                      {
/datasets/git/bisect.c:48:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(commit->object.flags & TREESAME))
                                             ^
/datasets/git/./revision.h:29:19: note: expanded from macro 'TREESAME'
#define TREESAME        (1u<<2)
                         ^   ~
/datasets/git/bisect.c:48:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(commit->object.flags & TREESAME))
                                                       ^
                                                        {
/datasets/git/bisect.c:50:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                commit->object.flags |= COUNTED;
                                        ^
/datasets/git/bisect.c:29:19: note: expanded from macro 'COUNTED'
#define COUNTED         (1u<<16)
                         ^   ~~
/datasets/git/bisect.c:44:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                struct commit_list *p;
                ^
/datasets/git/bisect.c:55:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (p) {
                        ^
/datasets/git/bisect.c:65:28: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
static void clear_distance(struct commit_list *list)
                           ^
/datasets/git/bisect.c:55:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (p) {
                               ^
/datasets/git/bisect.c:67:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (list) {
        ^
/datasets/git/bisect.c:67:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'list' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (list) {
               ^
/datasets/git/bisect.c:69:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                commit->object.flags &= ~COUNTED;
                                         ^
/datasets/git/bisect.c:29:19: note: expanded from macro 'COUNTED'
#define COUNTED         (1u<<16)
                         ^   ~~
/datasets/git/bisect.c:74:1: warning: backward branch (for loop) is ID-dependent due to member reference to 'slab_size' and may cause performance degradation [altera-id-dependent-backward-branch]
define_commit_slab(commit_weight, int *);
^
./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
./commit-slab-impl.h:48:15: note: expanded from macro 'implement_commit_slab'
                for (j = 0; j < s->slab_size; j++)                      \
                            ^
/datasets/git/bisect.c:74:1: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
define_commit_slab(commit_weight, int *);
^
./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
./commit-slab-impl.h:68:27: note: expanded from macro 'implement_commit_slab'
                for (i = s->slab_count; i <= nth_slab; i++)             \
                                        ^
/datasets/git/bisect.c:74:1: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
define_commit_slab(commit_weight, int *);
^
./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
./commit-slab-impl.h:35:2: note: expanded from macro 'implement_commit_slab'
        for (i = 0; i < s->slab_count; i++)                             \
        ^
/datasets/git/bisect.c:74:1: warning: result of multiplication in type 'unsigned int' is used as a pointer offset after an implicit widening conversion to type 'size_t' [bugprone-implicit-widening-of-multiplication-result]
define_commit_slab(commit_weight, int *);
^
./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
./commit-slab-impl.h:49:13: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                 ^
/datasets/git/bisect.c:74:1: note: make conversion explicit to silence this warning
define_commit_slab(commit_weight, int *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:49:24: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                            ^~~~~~~~~~~~~
/datasets/git/bisect.c:74:1: note: perform multiplication in a wider type
define_commit_slab(commit_weight, int *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:49:24: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                            ^
/datasets/git/bisect.c:74:1: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(commit_weight, int *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:55:30: note: expanded from macro 'implement_commit_slab'
                                                  const struct commit *c, \
                                                                       ^
/datasets/git/bisect.c:74:1: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(commit_weight, int *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:14:61: note: expanded from macro 'implement_commit_slab'
scope void init_ ##slabname## _with_stride(struct slabname *s,          \
                                                            ^
/datasets/git/bisect.c:74:1: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(commit_weight, int *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:34:15: note: expanded from macro 'implement_commit_slab'
        unsigned int i;                                                 \
                     ^
/datasets/git/bisect.c:74:1: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(commit_weight, int *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:45:16: note: expanded from macro 'implement_commit_slab'
                unsigned int j;                                         \
                             ^
/datasets/git/bisect.c:74:1: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
define_commit_slab(commit_weight, int *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:58:2: note: expanded from macro 'implement_commit_slab'
        unsigned int nth_slab, nth_slot;                                \
        ^
/datasets/git/bisect.c:74:1: note: inferred assignment of ID-dependent value from ID-dependent member slab_count [altera-id-dependent-backward-branch]
define_commit_slab(commit_weight, int *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:64:3: note: expanded from macro 'implement_commit_slab'
                unsigned int i;                                         \
                ^
/datasets/git/bisect.c:74:20: warning: accessing fields in struct 'commit_weight' is inefficient due to padding; only needs 20 bytes but is using 24 bytes [altera-struct-pack-align]
define_commit_slab(commit_weight, int *);
                   ^
/datasets/git/bisect.c:74:20: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'commit_weight'
/datasets/git/bisect.c:74:20: warning: accessing fields in struct 'commit_weight' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
define_commit_slab(commit_weight, int *);
                   ^
/datasets/git/bisect.c:74:20: note: use "__attribute__((aligned(32)))" to align struct 'commit_weight' to 32 bytes
/datasets/git/bisect.c:75:29: warning: variable 'commit_weight' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct commit_weight commit_weight;
                            ^
/datasets/git/bisect.c:91:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct commit_list *p;
        ^
/datasets/git/bisect.c:77:1: warning: replace macro with enum [modernize-macro-to-enum]
#define DEBUG_BISECT 0
^~~~~~~~
                     =
/datasets/git/bisect.c:77:9: warning: macro 'DEBUG_BISECT' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define DEBUG_BISECT 0
        ^
/datasets/git/bisect.c:91:22: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *p;
                            ^
                              = NULL
/datasets/git/bisect.c:91:22: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/bisect.c:92:6: warning: variable 'count' is not initialized [cppcoreguidelines-init-variables]
        int count;
            ^
                  = 0
/datasets/git/bisect.c:94:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (count = 0, p = commit->parents; p; p = p->next) {
        ^
/datasets/git/bisect.c:94:39: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (count = 0, p = commit->parents; p; p = p->next) {
                                             ^
/datasets/git/bisect.c:95:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(p->item->object.flags & UNINTERESTING))
                                              ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/bisect.c:95:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(p->item->object.flags & UNINTERESTING))
                                                             ^
                                                              {
/datasets/git/bisect.c:97:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (bisect_flags & FIND_BISECTION_FIRST_PARENT_ONLY)
                                   ^
/datasets/git/./bisect.h:28:43: note: expanded from macro 'FIND_BISECTION_FIRST_PARENT_ONLY'
#define FIND_BISECTION_FIRST_PARENT_ONLY        (1u<<1)
                                                 ^   ~
/datasets/git/bisect.c:97:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (bisect_flags & FIND_BISECTION_FIRST_PARENT_ONLY)
                                                                    ^
                                                                     {
/datasets/git/bisect.c:103:54: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static inline int approx_halfway(struct commit_list *p, int nr)
                                                     ^
/datasets/git/bisect.c:103:61: warning: parameter name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
static inline int approx_halfway(struct commit_list *p, int nr)
                                                            ^
/datasets/git/bisect.c:105:6: warning: variable 'diff' is not initialized [cppcoreguidelines-init-variables]
        int diff;
            ^
                 = 0
/datasets/git/bisect.c:110:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (p->item->object.flags & TREESAME)
                                    ^
/datasets/git/./revision.h:29:19: note: expanded from macro 'TREESAME'
#define TREESAME        (1u<<2)
                         ^   ~
/datasets/git/bisect.c:110:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (p->item->object.flags & TREESAME)
                                             ^
                                              {
/datasets/git/bisect.c:112:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (DEBUG_BISECT)
                         ^
                          {
/datasets/git/bisect.c:129:24: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (abs(diff) < nr / 1024)
                                     ^
/datasets/git/bisect.c:129:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (abs(diff) < nr / 1024)
                                          ^
                                           {
/datasets/git/bisect.c:135:59: warning: parameter name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
static void show_list(const char *debug, int counted, int nr,
                                                          ^
/datasets/git/bisect.c:138:22: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *p;
                            ^
                              = NULL
/datasets/git/bisect.c:138:22: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/bisect.c:140:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!DEBUG_BISECT)
                          ^
                           {
/datasets/git/bisect.c:143:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(stderr, "%s (%d/%d)\n", debug, counted, nr);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/bisect.c:143:2: note: cast the expression to void to silence this warning
/datasets/git/bisect.c:145:17: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = list; p; p = p->next) {
                       ^
/datasets/git/bisect.c:146:23: warning: variable 'pp' is not initialized [cppcoreguidelines-init-variables]
                struct commit_list *pp;
                                    ^
                                       = NULL
/datasets/git/bisect.c:146:23: warning: variable name 'pp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/bisect.c:149:20: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
                enum object_type type;
                                 ^
/datasets/git/bisect.c:150:17: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
                unsigned long size;
                              ^
                                   = 0
/datasets/git/bisect.c:153:15: warning: variable 'subject_start' is not initialized [cppcoreguidelines-init-variables]
                const char *subject_start;
                            ^
                                          = NULL
/datasets/git/bisect.c:154:7: warning: variable 'subject_len' is not initialized [cppcoreguidelines-init-variables]
                int subject_len;
                    ^
                                = 0
/datasets/git/bisect.c:156:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "%c%c%c ",
                ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/bisect.c:156:3: note: cast the expression to void to silence this warning
/datasets/git/bisect.c:157:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        (commit_flags & TREESAME) ? ' ' : 'T',
                                        ^
/datasets/git/./revision.h:29:19: note: expanded from macro 'TREESAME'
#define TREESAME        (1u<<2)
                         ^   ~
/datasets/git/bisect.c:158:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        (commit_flags & UNINTERESTING) ? 'U' : ' ',
                                        ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/bisect.c:159:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        (commit_flags & COUNTED) ? 'C' : ' ');
                                        ^
/datasets/git/bisect.c:29:19: note: expanded from macro 'COUNTED'
#define COUNTED         (1u<<16)
                         ^   ~~
/datasets/git/bisect.c:160:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*commit_weight_at(&commit_weight, p->item))
                                                               ^
                                                                {
/datasets/git/bisect.c:161:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, "%3d", weight(p));
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/bisect.c:161:4: note: cast the expression to void to silence this warning
/datasets/git/bisect.c:162:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/bisect.c:163:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, "---");
                        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/bisect.c:163:4: note: cast the expression to void to silence this warning
/datasets/git/bisect.c:164:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, " %.*s", 8, oid_to_hex(&commit->object.oid));
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/bisect.c:164:3: note: cast the expression to void to silence this warning
/datasets/git/bisect.c:164:28: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                fprintf(stderr, " %.*s", 8, oid_to_hex(&commit->object.oid));
                                         ^
/datasets/git/bisect.c:165:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (pp = commit->parents; pp; pp = pp->next)
                ^
/datasets/git/bisect.c:165:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'pp' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (pp = commit->parents; pp; pp = pp->next)
                                           ^
/datasets/git/bisect.c:165:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (pp = commit->parents; pp; pp = pp->next)
                                                             ^
                                                              {
/datasets/git/bisect.c:166:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, " %.*s", 8,
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/bisect.c:166:4: note: cast the expression to void to silence this warning
/datasets/git/bisect.c:166:29: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        fprintf(stderr, " %.*s", 8,
                                                 ^
/datasets/git/bisect.c:170:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (subject_len)
                                ^
                                 {
/datasets/git/bisect.c:171:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, " %.*s", subject_len, subject_start);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/bisect.c:171:4: note: cast the expression to void to silence this warning
/datasets/git/bisect.c:172:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "\n");
                ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/bisect.c:172:3: note: cast the expression to void to silence this warning
/datasets/git/bisect.c:176:73: warning: parameter name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
static struct commit_list *best_bisection(struct commit_list *list, int nr)
                                                                        ^
/datasets/git/bisect.c:178:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit_list *p, *best;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/bisect.c:178:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/bisect.c:178:22: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *p, *best;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/bisect.c:178:22: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/bisect.c:178:26: warning: variable 'best' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *p, *best;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/bisect.c:182:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = list; p; p = p->next) {
        ^
/datasets/git/bisect.c:182:17: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = list; p; p = p->next) {
                       ^
/datasets/git/bisect.c:183:7: warning: variable 'distance' is not initialized [cppcoreguidelines-init-variables]
                int distance;
                    ^
                             = 0
/datasets/git/bisect.c:186:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (commit_flags & TREESAME)
                                   ^
/datasets/git/./revision.h:29:19: note: expanded from macro 'TREESAME'
#define TREESAME        (1u<<2)
                         ^   ~
/datasets/git/bisect.c:186:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (commit_flags & TREESAME)
                                            ^
                                             {
/datasets/git/bisect.c:189:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (nr - distance < distance)
                                             ^
                                              {
/datasets/git/bisect.c:200:8: warning: accessing fields in struct 'commit_dist' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct commit_dist {
       ^
/datasets/git/bisect.c:200:8: note: use "__attribute__((aligned(16)))" to align struct 'commit_dist' to 16 bytes
/datasets/git/bisect.c:205:44: warning: parameter name 'a_' is too short, expected at least 3 characters [readability-identifier-length]
static int compare_commit_dist(const void *a_, const void *b_)
                                           ^
/datasets/git/bisect.c:205:60: warning: parameter name 'b_' is too short, expected at least 3 characters [readability-identifier-length]
static int compare_commit_dist(const void *a_, const void *b_)
                                                           ^
/datasets/git/bisect.c:207:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit_dist *a, *b;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/bisect.c:207:22: warning: variable 'a' is not initialized [cppcoreguidelines-init-variables]
        struct commit_dist *a, *b;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/bisect.c:207:22: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/bisect.c:207:26: warning: variable 'b' is not initialized [cppcoreguidelines-init-variables]
        struct commit_dist *a, *b;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/bisect.c:207:26: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/bisect.c:211:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (a->distance != b->distance)
                                       ^
                                        {
/datasets/git/bisect.c:216:80: warning: parameter name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
static struct commit_list *best_bisection_sorted(struct commit_list *list, int nr)
                                                                               ^
/datasets/git/bisect.c:218:22: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *p;
                            ^
                              = NULL
/datasets/git/bisect.c:218:22: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/bisect.c:221:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int cnt, i;
        ^~~~~~~~~~~
/datasets/git/bisect.c:218:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct commit_list *p;
        ^
/datasets/git/bisect.c:221:6: warning: variable 'cnt' is not initialized [cppcoreguidelines-init-variables]
        int cnt, i;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/bisect.c:221:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int cnt, i;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/bisect.c:221:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/bisect.c:223:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = list, cnt = 0; p; p = p->next) {
        ^
/datasets/git/bisect.c:223:26: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = list, cnt = 0; p; p = p->next) {
                                ^
/datasets/git/bisect.c:224:7: warning: variable 'distance' is not initialized [cppcoreguidelines-init-variables]
                int distance;
                    ^
                             = 0
/datasets/git/bisect.c:227:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (commit_flags & TREESAME)
                                   ^
/datasets/git/./revision.h:29:19: note: expanded from macro 'TREESAME'
#define TREESAME        (1u<<2)
                         ^   ~
/datasets/git/bisect.c:227:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (commit_flags & TREESAME)
                                            ^
                                             {
/datasets/git/bisect.c:230:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (nr - distance < distance)
                                             ^
                                              {
/datasets/git/bisect.c:237:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = list, i = 0; i < cnt; i++) {
        ^
/datasets/git/bisect.c:245:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (i < cnt - 1)
                                ^
                                 {
/datasets/git/bisect.c:270:28: warning: function 'do_find_bisection' has cognitive complexity of 50 (threshold 25) [readability-function-cognitive-complexity]
static struct commit_list *do_find_bisection(struct commit_list *list,
                           ^
/datasets/git/bisect.c:279:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (n = 0, p = list; p; p = p->next) {
        ^
/datasets/git/bisect.c:284:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                switch (count_interesting_parents(commit, bisect_flags)) {
                ^
/datasets/git/bisect.c:286:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!(commit_flags & TREESAME)) {
                        ^
/datasets/git/bisect.c:322:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (p = list; p; p = p->next) {
        ^
/datasets/git/bisect.c:323:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (p->item->object.flags & UNINTERESTING)
                ^
/datasets/git/bisect.c:325:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (weight(p) != -2)
                ^
/datasets/git/bisect.c:327:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (bisect_flags & FIND_BISECTION_FIRST_PARENT_ONLY)
                ^
/datasets/git/bisect.c:333:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!(bisect_flags & FIND_BISECTION_ALL) &&
                ^
/datasets/git/bisect.c:333:44: note: +1
                if (!(bisect_flags & FIND_BISECTION_ALL) &&
                                                         ^
/datasets/git/bisect.c:341:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (counted < nr) {
        ^
/datasets/git/bisect.c:342:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (p = list; p; p = p->next) {
                ^
/datasets/git/bisect.c:346:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (0 <= weight(p))
                        ^
/datasets/git/bisect.c:349:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (q = p->item->parents;
                        ^
/datasets/git/bisect.c:351:61: note: +4, including nesting penalty of 3, nesting level increased to 4
                             q = bisect_flags & FIND_BISECTION_FIRST_PARENT_ONLY ? NULL : q->next) {
                                                                                 ^
/datasets/git/bisect.c:352:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (q->item->object.flags & UNINTERESTING)
                                ^
/datasets/git/bisect.c:354:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (0 <= weight(q))
                                ^
/datasets/git/bisect.c:357:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!q)
                        ^
/datasets/git/bisect.c:365:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!(commit_flags & TREESAME)) {
                        ^
/datasets/git/bisect.c:371:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/bisect.c:375:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!(bisect_flags & FIND_BISECTION_ALL) &&
                        ^
/datasets/git/bisect.c:375:45: note: +1
                        if (!(bisect_flags & FIND_BISECTION_ALL) &&
                                                                 ^
/datasets/git/bisect.c:383:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!(bisect_flags & FIND_BISECTION_ALL))
        ^
/datasets/git/bisect.c:385:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/bisect.c:271:15: warning: parameter name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
                                             int nr, int *weights,
                                                 ^
/datasets/git/bisect.c:274:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int n, counted;
        ^~~~~~~~~~~~~~~
/datasets/git/bisect.c:275:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct commit_list *p;
        ^
/datasets/git/bisect.c:274:6: warning: variable 'n' is not initialized [cppcoreguidelines-init-variables]
        int n, counted;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/bisect.c:274:6: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/bisect.c:274:9: warning: variable 'counted' is not initialized [cppcoreguidelines-init-variables]
        int n, counted;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/bisect.c:275:22: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *p;
                            ^
                              = NULL
/datasets/git/bisect.c:275:22: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/bisect.c:279:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (n = 0, p = list; p; p = p->next) {
        ^
/datasets/git/bisect.c:275:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct commit_list *p;
        ^
/datasets/git/bisect.c:279:24: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (n = 0, p = list; p; p = p->next) {
                              ^
/datasets/git/bisect.c:286:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!(commit_flags & TREESAME)) {
                                             ^
/datasets/git/./revision.h:29:19: note: expanded from macro 'TREESAME'
#define TREESAME        (1u<<2)
                         ^   ~
/datasets/git/bisect.c:322:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = list; p; p = p->next) {
        ^
/datasets/git/bisect.c:322:17: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = list; p; p = p->next) {
                       ^
/datasets/git/bisect.c:323:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (p->item->object.flags & UNINTERESTING)
                                            ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/bisect.c:323:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (p->item->object.flags & UNINTERESTING)
                                                          ^
                                                           {
/datasets/git/bisect.c:325:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (weight(p) != -2)
                                    ^
                                     {
/datasets/git/bisect.c:327:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (bisect_flags & FIND_BISECTION_FIRST_PARENT_ONLY)
                                   ^
/datasets/git/./bisect.h:28:43: note: expanded from macro 'FIND_BISECTION_FIRST_PARENT_ONLY'
#define FIND_BISECTION_FIRST_PARENT_ONLY        (1u<<1)
                                                 ^   ~
/datasets/git/bisect.c:327:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (bisect_flags & FIND_BISECTION_FIRST_PARENT_ONLY)
                                                                    ^
                                                                     {
/datasets/git/bisect.c:333:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(bisect_flags & FIND_BISECTION_ALL) &&
                                     ^
/datasets/git/./bisect.h:27:31: note: expanded from macro 'FIND_BISECTION_ALL'
#define FIND_BISECTION_ALL                      (1u<<0)
                                                 ^   ~
/datasets/git/bisect.c:275:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct commit_list *p;
        ^
/datasets/git/bisect.c:334:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                      approx_halfway(p, nr))
                                            ^
                                             {
/datasets/git/bisect.c:342:18: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (p = list; p; p = p->next) {
                               ^
/datasets/git/bisect.c:343:24: warning: variable 'q' is not initialized [cppcoreguidelines-init-variables]
                        struct commit_list *q;
                                            ^
                                              = NULL
/datasets/git/bisect.c:343:24: warning: variable name 'q' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/bisect.c:346:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (0 <= weight(p))
                                           ^
                                            {
/datasets/git/bisect.c:349:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (q = p->item->parents;
                        ^
/datasets/git/bisect.c:350:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'q' and may cause performance degradation [altera-id-dependent-backward-branch]
                             q;
                             ^
/datasets/git/bisect.c:351:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                             q = bisect_flags & FIND_BISECTION_FIRST_PARENT_ONLY ? NULL : q->next) {
                                                ^
/datasets/git/./bisect.h:28:43: note: expanded from macro 'FIND_BISECTION_FIRST_PARENT_ONLY'
#define FIND_BISECTION_FIRST_PARENT_ONLY        (1u<<1)
                                                 ^   ~
/datasets/git/bisect.c:352:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (q->item->object.flags & UNINTERESTING)
                                                            ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/bisect.c:352:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (q->item->object.flags & UNINTERESTING)
                                                                          ^
                                                                           {
/datasets/git/bisect.c:354:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (0 <= weight(q))
                                                   ^
                                                    {
/datasets/git/bisect.c:357:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!q)
                               ^
                                {
/datasets/git/bisect.c:365:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!(commit_flags & TREESAME)) {
                                             ^
/datasets/git/./revision.h:29:19: note: expanded from macro 'TREESAME'
#define TREESAME        (1u<<2)
                         ^   ~
/datasets/git/bisect.c:371:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/bisect.c:375:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!(bisect_flags & FIND_BISECTION_ALL) &&
                                             ^
/datasets/git/./bisect.h:27:31: note: expanded from macro 'FIND_BISECTION_ALL'
#define FIND_BISECTION_ALL                      (1u<<0)
                                                 ^   ~
/datasets/git/bisect.c:376:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                              approx_halfway(p, nr))
                                                    ^
                                                     {
/datasets/git/bisect.c:383:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(bisect_flags & FIND_BISECTION_ALL))
                             ^
/datasets/git/./bisect.h:27:31: note: expanded from macro 'FIND_BISECTION_ALL'
#define FIND_BISECTION_ALL                      (1u<<0)
                                                 ^   ~
/datasets/git/bisect.c:383:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(bisect_flags & FIND_BISECTION_ALL))
                                                 ^
                                                  {
/datasets/git/bisect.c:385:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else
        ^~~~
                        return best_bisection_sorted(list, nr)
/datasets/git/bisect.c:385:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/bisect.c:389:55: warning: 2 adjacent parameters of 'find_bisection' of similar type ('int *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
void find_bisection(struct commit_list **commit_list, int *reaches,
                                                      ^~~~~~~~~~~~~
/datasets/git/bisect.c:389:60: note: the first parameter in the range is 'reaches'
void find_bisection(struct commit_list **commit_list, int *reaches,
                                                           ^~~~~~~
/datasets/git/bisect.c:390:12: note: the last parameter in the range is 'all'
                    int *all, unsigned bisect_flags)
                         ^~~
/datasets/git/bisect.c:392:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int nr, on_list;
        ^~~~~~~~~~~~~~~~
/datasets/git/bisect.c:392:6: warning: variable 'nr' is not initialized [cppcoreguidelines-init-variables]
        int nr, on_list;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/bisect.c:392:6: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/bisect.c:392:10: warning: variable 'on_list' is not initialized [cppcoreguidelines-init-variables]
        int nr, on_list;
                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/bisect.c:393:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit_list *list, *p, *best, *next, *last;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/bisect.c:393:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/bisect.c:393:22: warning: variable 'list' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *list, *p, *best, *next, *last;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/bisect.c:393:29: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *list, *p, *best, *next, *last;
                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/bisect.c:393:29: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/bisect.c:393:33: warning: variable 'best' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *list, *p, *best, *next, *last;
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/bisect.c:393:40: warning: variable 'next' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *list, *p, *best, *next, *last;
                                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/bisect.c:393:47: warning: variable 'last' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *list, *p, *best, *next, *last;
                                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/bisect.c:394:7: warning: variable 'weights' is not initialized [cppcoreguidelines-init-variables]
        int *weights;
             ^
                     = NULL
/datasets/git/bisect.c:403:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (nr = on_list = 0, last = NULL, p = *commit_list;
        ^
/datasets/git/bisect.c:404:7: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
             p;
             ^
/datasets/git/bisect.c:409:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (commit_flags & UNINTERESTING) {
                                   ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/bisect.c:415:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(commit_flags & TREESAME))
                                     ^
/datasets/git/./revision.h:29:19: note: expanded from macro 'TREESAME'
#define TREESAME        (1u<<2)
                         ^   ~
/datasets/git/bisect.c:415:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(commit_flags & TREESAME))
                                               ^
                                                {
/datasets/git/bisect.c:428:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(bisect_flags & FIND_BISECTION_ALL)) {
                                     ^
/datasets/git/./bisect.h:27:31: note: expanded from macro 'FIND_BISECTION_ALL'
#define FIND_BISECTION_ALL                      (1u<<0)
                                                 ^   ~
/datasets/git/bisect.c:429:15: warning: Access to field 'item' results in a dereference of a null pointer (loaded from variable 'list') [clang-analyzer-core.NullDereference]
                        list->item = best->item;
                                   ^
/datasets/git/bisect.c:1032:6: note: Assuming the condition is false
        if (read_bisect_refs())
            ^~~~~~~~~~~~~~~~~~
/datasets/git/bisect.c:1032:2: note: Taking false branch
        if (read_bisect_refs())
        ^
/datasets/git/bisect.c:1035:6: note: Assuming the condition is false
        if (file_exists(git_path_bisect_first_parent()))
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/bisect.c:1035:2: note: Taking false branch
        if (file_exists(git_path_bisect_first_parent()))
        ^
/datasets/git/bisect.c:1038:6: note: Assuming field 'nr' is 0
        if (skipped_revs.nr)
            ^~~~~~~~~~~~~~~
/datasets/git/bisect.c:1038:2: note: Taking false branch
        if (skipped_revs.nr)
        ^
/datasets/git/bisect.c:1042:6: note: 'res' is 0
        if (res)
            ^~~
/datasets/git/bisect.c:1042:2: note: Taking false branch
        if (res)
        ^
/datasets/git/bisect.c:1052:2: note: Calling 'find_bisection'
        find_bisection(&revs.commits, &reaches, &all, bisect_flags);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/bisect.c:403:25: note: Null pointer value stored to 'last'
        for (nr = on_list = 0, last = NULL, p = *commit_list;
                               ^~~~~~~~~~~
/datasets/git/bisect.c:403:2: note: Loop condition is true.  Entering loop body
        for (nr = on_list = 0, last = NULL, p = *commit_list;
        ^
/datasets/git/bisect.c:409:7: note: Assuming the condition is true
                if (commit_flags & UNINTERESTING) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/bisect.c:409:3: note: Taking true branch
                if (commit_flags & UNINTERESTING) {
                ^
/datasets/git/bisect.c:411:4: note:  Execution continues on line 405
                        continue;
                        ^
/datasets/git/bisect.c:403:2: note: Loop condition is false. Execution continues on line 419
        for (nr = on_list = 0, last = NULL, p = *commit_list;
        ^
/datasets/git/bisect.c:419:2: note: Null pointer value stored to 'list'
        list = last;
        ^~~~~~~~~~~
/datasets/git/bisect.c:427:6: note: Assuming 'best' is non-null
        if (best) {
            ^~~~
/datasets/git/bisect.c:427:2: note: Taking true branch
        if (best) {
        ^
/datasets/git/bisect.c:428:3: note: Taking true branch
                if (!(bisect_flags & FIND_BISECTION_ALL)) {
                ^
/datasets/git/bisect.c:429:15: note: Access to field 'item' results in a dereference of a null pointer (loaded from variable 'list')
                        list->item = best->item;
                        ~~~~       ^
/datasets/git/bisect.c:467:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(git_path_bisect_names, "BISECT_NAMES")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/bisect.c:468:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(git_path_bisect_expected_rev, "BISECT_EXPECTED_REV")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/bisect.c:469:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(git_path_bisect_ancestors_ok, "BISECT_ANCESTORS_OK")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/bisect.c:470:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(git_path_bisect_run, "BISECT_RUN")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/bisect.c:471:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(git_path_bisect_start, "BISECT_START")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/bisect.c:472:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(git_path_bisect_log, "BISECT_LOG")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/bisect.c:473:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(git_path_bisect_terms, "BISECT_TERMS")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/bisect.c:474:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(git_path_bisect_first_parent, "BISECT_FIRST_PARENT")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/bisect.c:475:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(git_path_head_name, "head-name")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/bisect.c:481:8: warning: variable name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
        FILE *fp = xfopen(filename, "r");
              ^
/datasets/git/bisect.c:483:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (strbuf_getline_lf(&str, fp) != EOF) {
        ^
/datasets/git/bisect.c:483:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'str' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (strbuf_getline_lf(&str, fp) != EOF) {
               ^
/datasets/git/bisect.c:485:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (sq_dequote_to_strvec(str.buf, array))
                                                         ^
                                                          {
/datasets/git/bisect.c:491:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(fp);
        ^~~~~~~~~~
/datasets/git/bisect.c:491:2: note: cast the expression to void to silence this warning
/datasets/git/bisect.c:479:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct strbuf str = STRBUF_INIT;
        ^
/datasets/git/bisect.c:497:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/bisect.c:497:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/bisect.c:499:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < array->nr; i++) {
        ^
/datasets/git/bisect.c:501:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (i + 1 < array->nr)
                                      ^
                                       {
/datasets/git/bisect.c:521:21: warning: function 'filter_skipped' has cognitive complexity of 26 (threshold 25) [readability-function-cognitive-complexity]
struct commit_list *filter_skipped(struct commit_list *list,
                    ^
/datasets/git/bisect.c:531:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (skipped_first)
        ^
/datasets/git/bisect.c:533:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (count)
        ^
/datasets/git/bisect.c:536:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!skipped_revs.nr)
        ^
/datasets/git/bisect.c:539:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (list) {
        ^
/datasets/git/bisect.c:542:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (0 <= oid_array_lookup(&skipped_revs, &list->item->object.oid)) {
                ^
/datasets/git/bisect.c:543:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (skipped_first && !*skipped_first)
                        ^
/datasets/git/bisect.c:543:22: note: +1
                        if (skipped_first && !*skipped_first)
                                          ^
/datasets/git/bisect.c:548:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/bisect.c:549:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!show_all) {
                        ^
/datasets/git/bisect.c:550:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!skipped_first || !*skipped_first)
                                ^
/datasets/git/bisect.c:550:24: note: +1
                                if (!skipped_first || !*skipped_first)
                                                   ^
/datasets/git/bisect.c:552:11: note: +1, nesting level increased to 3
                        } else if (skipped_first && !*skipped_first) {
                               ^
/datasets/git/bisect.c:552:29: note: +1
                        } else if (skipped_first && !*skipped_first) {
                                                 ^
/datasets/git/bisect.c:559:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (count)
                        ^
/datasets/git/bisect.c:565:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (skipped_first && *skipped_first == -1)
        ^
/datasets/git/bisect.c:565:20: note: +1
        if (skipped_first && *skipped_first == -1)
                          ^
/datasets/git/bisect.c:524:8: warning: 2 adjacent parameters of 'filter_skipped' of similar type ('int *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                   int *count,
                                   ^~~~~~~~~~~
/datasets/git/bisect.c:524:13: note: the first parameter in the range is 'count'
                                   int *count,
                                        ^~~~~
/datasets/git/bisect.c:525:13: note: the last parameter in the range is 'skipped_first'
                                   int *skipped_first)
                                        ^~~~~~~~~~~~~
/datasets/git/bisect.c:527:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit_list *filtered = NULL, **f = &filtered;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/bisect.c:527:41: warning: variable name 'f' is too short, expected at least 3 characters [readability-identifier-length]
        struct commit_list *filtered = NULL, **f = &filtered;
                                               ^
/datasets/git/bisect.c:531:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (skipped_first)
                          ^
                           {
/datasets/git/bisect.c:533:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (count)
                  ^
                   {
/datasets/git/bisect.c:536:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!skipped_revs.nr)
                             ^
                              {
/datasets/git/bisect.c:539:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (list) {
        ^
/datasets/git/bisect.c:539:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'list' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (list) {
               ^
/datasets/git/bisect.c:543:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (skipped_first && !*skipped_first)
                                                             ^
                                                              {
/datasets/git/bisect.c:550:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!skipped_first || !*skipped_first)
                                                                      ^
                                                                       {
/datasets/git/bisect.c:559:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (count)
                                  ^
                                   {
/datasets/git/bisect.c:565:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (skipped_first && *skipped_first == -1)
                                                  ^
                                                   {
/datasets/git/bisect.c:581:18: warning: 1103515245 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        count = count * 1103515245 + 12345;
                        ^
/datasets/git/bisect.c:581:31: warning: 12345 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        count = count * 1103515245 + 12345;
                                     ^
/datasets/git/bisect.c:582:16: warning: 65536 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        return (count/65536) % PRN_MODULO;
                      ^
/datasets/git/bisect.c:591:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        float d, x = val;
        ^~~~~~~~~~~~~~~~~
/datasets/git/bisect.c:591:8: warning: variable 'd' is not initialized [cppcoreguidelines-init-variables]
        float d, x = val;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/bisect.c:591:8: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/bisect.c:591:11: warning: variable name 'x' is too short, expected at least 3 characters [readability-identifier-length]
        float d, x = val;
                 ^
/datasets/git/bisect.c:591:15: warning: narrowing conversion from 'int' to 'float' [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        float d, x = val;
                     ^
/datasets/git/bisect.c:593:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!val)
                 ^
                  {
/datasets/git/bisect.c:596:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        do {
        ^
/datasets/git/bisect.c:597:9: warning: variable name 'y' is too short, expected at least 3 characters [readability-identifier-length]
                float y = (x + (float)val / x) / 2;
                      ^
/datasets/git/bisect.c:600:11: warning: backward branch (do loop) is ID-dependent due to variable reference to 'd' and may cause performance degradation [altera-id-dependent-backward-branch]
        } while (d >= 0.5);
                 ^
/datasets/git/bisect.c:600:16: warning: 0.5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        } while (d >= 0.5);
                      ^
/datasets/git/bisect.c:607:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit_list *cur, *previous;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/bisect.c:607:22: warning: variable 'cur' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *cur, *previous;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/bisect.c:607:28: warning: variable 'previous' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *cur, *previous;
                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/bisect.c:608:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int prn, index, i;
        ^~~~~~~~~~~~~~~~~~
/datasets/git/bisect.c:607:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct commit_list *cur, *previous;
        ^
/datasets/git/bisect.c:608:6: warning: variable 'prn' is not initialized [cppcoreguidelines-init-variables]
        int prn, index, i;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/bisect.c:608:11: warning: variable 'index' is not initialized [cppcoreguidelines-init-variables]
        int prn, index, i;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/bisect.c:608:18: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int prn, index, i;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/bisect.c:608:18: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/bisect.c:610:8: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        prn = get_prn(count);
              ^
/datasets/git/bisect.c:616:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; cur; cur = cur->next, i++) {
        ^
/datasets/git/bisect.c:616:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cur' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; cur; cur = cur->next, i++) {
                    ^
/datasets/git/bisect.c:618:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!oideq(&cur->item->object.oid, current_bad_oid))
                                                                            ^
                                                                             {
/datasets/git/bisect.c:620:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (previous)
                                     ^
                                      {
/datasets/git/bisect.c:633:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int count, skipped_first;
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/bisect.c:633:6: warning: variable 'count' is not initialized [cppcoreguidelines-init-variables]
        int count, skipped_first;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/bisect.c:633:13: warning: variable 'skipped_first' is not initialized [cppcoreguidelines-init-variables]
        int count, skipped_first;
                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/bisect.c:637:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!skipped_revs.nr)
                             ^
                              {
/datasets/git/bisect.c:642:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!skipped_first)
                           ^
                            {
/datasets/git/bisect.c:648:49: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void bisect_rev_setup(struct repository *r, struct rev_info *revs,
                                                ^
/datasets/git/bisect.c:650:9: warning: 2 adjacent parameters of 'bisect_rev_setup' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                             const char *prefix,
                             ^~~~~~~~~~~~~~~~~~~
/datasets/git/bisect.c:650:21: note: the first parameter in the range is 'prefix'
                             const char *prefix,
                                         ^~~~~~
/datasets/git/bisect.c:651:21: note: the last parameter in the range is 'bad_format'
                             const char *bad_format, const char *good_format,
                                         ^~~~~~~~~~
/datasets/git/bisect.c:657:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/bisect.c:657:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/bisect.c:666:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < good_revs.nr; i++)
        ^
/datasets/git/bisect.c:666:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < good_revs.nr; i++)
                                          ^
                                           {
/datasets/git/bisect.c:670:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (read_paths)
                       ^
                        {
/datasets/git/bisect.c:673:18: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        setup_revisions(rev_argv->nr, rev_argv->v, revs, &opt);
                        ^
/datasets/git/bisect.c:678:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prepare_revision_walk(revs))
                                        ^
                                         {
/datasets/git/bisect.c:680:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->tree_objects)
                               ^
                                {
/datasets/git/bisect.c:687:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!tried)
                   ^
                    {
/datasets/git/bisect.c:693:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for ( ; tried; tried = tried->next)
        ^
/datasets/git/bisect.c:693:10: warning: backward branch (for loop) is ID-dependent due to variable reference to 'tried' and may cause performance degradation [altera-id-dependent-backward-branch]
        for ( ; tried; tried = tried->next)
                ^
/datasets/git/bisect.c:693:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for ( ; tried; tried = tried->next)
                                           ^
                                            {
/datasets/git/bisect.c:696:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (bad)
                ^
                 {
/datasets/git/bisect.c:706:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/bisect.c:708:8: warning: variable 'fp' is not initialized [cppcoreguidelines-init-variables]
        FILE *fp;
              ^
                 = NULL
/datasets/git/bisect.c:708:8: warning: variable name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/bisect.c:711:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (stat(filename, &st) || !S_ISREG(st.st_mode))
                                                        ^
                                                         {
/datasets/git/bisect.c:715:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!fp)
                ^
                 {
/datasets/git/bisect.c:718:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strbuf_getline_lf(&str, fp) != EOF)
                                               ^
                                                {
/datasets/git/bisect.c:722:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(fp);
        ^~~~~~~~~~
/datasets/git/bisect.c:722:2: note: cast the expression to void to silence this warning
/datasets/git/bisect.c:730:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/bisect.c:731:30: warning: variable name 'pp' is too short, expected at least 3 characters [readability-identifier-length]
        struct pretty_print_context pp = {0};
                                    ^
/datasets/git/bisect.c:745:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (run_command(&cmd))
                                      ^
                                       {
/datasets/git/bisect.c:756:2: warning: the value returned by this function should be used [cert-err33-c]
        fputs(commit_msg.buf, stdout);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/bisect.c:756:2: note: cast the expression to void to silence this warning
/datasets/git/bisect.c:762:63: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static struct commit *get_commit_reference(struct repository *r,
                                                              ^
/datasets/git/bisect.c:765:17: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        struct commit *c = lookup_commit_reference(r, oid);
                       ^
/datasets/git/bisect.c:766:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!c)
               ^
                {
/datasets/git/bisect.c:771:68: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static struct commit **get_bad_and_good_commits(struct repository *r,
                                                                   ^
/datasets/git/bisect.c:774:18: warning: variable 'rev' is not initialized [cppcoreguidelines-init-variables]
        struct commit **rev;
                        ^
                            = NULL
/datasets/git/bisect.c:775:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, n = 0;
        ^~~~~~~~~~~~~
/datasets/git/bisect.c:775:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, n = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/bisect.c:775:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/bisect.c:775:9: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
        int i, n = 0;
               ^
/datasets/git/bisect.c:777:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_ARRAY(rev, 1 + good_revs.nr);
        ^
/datasets/git/./git-compat-util.h:1090:53: note: expanded from macro 'ALLOC_ARRAY'
#define ALLOC_ARRAY(x, alloc) (x) = xmalloc(st_mult(sizeof(*(x)), (alloc)))
                                                    ^
/datasets/git/bisect.c:779:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < good_revs.nr; i++)
        ^
/datasets/git/bisect.c:779:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < good_revs.nr; i++)
                                          ^
                                           {
/datasets/git/bisect.c:792:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, _("The merge base %s is bad.\n"
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/bisect.c:792:4: note: cast the expression to void to silence this warning
/datasets/git/bisect.c:797:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, _("The merge base %s is new.\n"
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/bisect.c:797:4: note: cast the expression to void to silence this warning
/datasets/git/bisect.c:802:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, _("The merge base %s is %s.\n"
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/bisect.c:802:4: note: cast the expression to void to silence this warning
/datasets/git/bisect.c:810:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(stderr, _("Some %s revs are not ancestors of the %s rev.\n"
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/bisect.c:810:2: note: cast the expression to void to silence this warning
/datasets/git/bisect.c:817:63: warning: parameter name 'mb' is too short, expected at least 3 characters [readability-identifier-length]
static void handle_skipped_merge_base(const struct object_id *mb)
                                                              ^
/datasets/git/bisect.c:848:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct commit_list *result;
        ^
/datasets/git/bisect.c:848:22: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *result;
                            ^
                                   = NULL
/datasets/git/bisect.c:852:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; result; result = result->next) {
        ^
/datasets/git/bisect.c:852:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'result' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; result; result = result->next) {
               ^
/datasets/git/bisect.c:853:27: warning: variable name 'mb' is too short, expected at least 3 characters [readability-identifier-length]
                const struct object_id *mb = &result->item->object.oid;
                                        ^
/datasets/git/bisect.c:857:5: warning: do not use 'else' after 'break' [llvm-else-after-return,readability-else-after-return]
                } else if (0 <= oid_array_lookup(&good_revs, mb)) {
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/bisect.c:864:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!res)
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/bisect.c:875:47: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int check_ancestors(struct repository *r, int rev_nr,
                                              ^
/datasets/git/bisect.c:880:6: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        int res;
            ^
                = 0
/datasets/git/bisect.c:888:39: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        clear_commit_marks_many(rev_nr, rev, ALL_REV_FLAGS);
                                             ^
/datasets/git/./revision.h:52:26: note: expanded from macro 'ALL_REV_FLAGS'
#define ALL_REV_FLAGS   (((1u<<11)-1) | NOT_USER_GIVEN | TRACK_LINEAR | PULL_MERGE)
                           ^   ~~
/datasets/git/bisect.c:904:77: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static enum bisect_error check_good_are_ancestors_of_bad(struct repository *r,
                                                                            ^
/datasets/git/bisect.c:908:8: warning: variable 'filename' is not initialized [cppcoreguidelines-init-variables]
        char *filename;
              ^
                       = NULL
/datasets/git/bisect.c:909:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/bisect.c:910:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int fd, rev_nr;
        ^~~~~~~~~~~~~~~
/datasets/git/bisect.c:910:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd, rev_nr;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/bisect.c:910:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/bisect.c:910:10: warning: variable 'rev_nr' is not initialized [cppcoreguidelines-init-variables]
        int fd, rev_nr;
                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/bisect.c:912:18: warning: variable 'rev' is not initialized [cppcoreguidelines-init-variables]
        struct commit **rev;
                        ^
                            = NULL
/datasets/git/bisect.c:914:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!current_bad_oid)
                             ^
                              {
/datasets/git/bisect.c:920:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!stat(filename, &st) && S_ISREG(st.st_mode))
                                                        ^
                                                         {
/datasets/git/bisect.c:924:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!good_revs.nr)
                          ^
                           {
/datasets/git/bisect.c:930:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (check_ancestors(r, rev_nr, rev, prefix))
                                                    ^
                                                     {
/datasets/git/bisect.c:936:51: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
                fd = open(filename, O_CREAT | O_TRUNC | O_WRONLY, 0600);
                                                                ^
                                                                 | O_CLOEXEC
/datasets/git/bisect.c:936:53: warning: 0600 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                fd = open(filename, O_CREAT | O_TRUNC | O_WRONLY, 0600);
                                                                  ^
/datasets/git/bisect.c:937:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fd < 0)
                           ^
                            {
/datasets/git/bisect.c:947:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/bisect.c:958:47: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void show_diff_tree(struct repository *r,
                                              ^
/datasets/git/bisect.c:980:24: warning: 2 adjacent parameters of 'read_bisect_terms' of similar type ('const char **') are easily swapped by mistake [bugprone-easily-swappable-parameters]
void read_bisect_terms(const char **read_bad, const char **read_good)
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/bisect.c:980:37: note: the first parameter in the range is 'read_bad'
void read_bisect_terms(const char **read_bad, const char **read_good)
                                    ^~~~~~~~
/datasets/git/bisect.c:980:60: note: the last parameter in the range is 'read_good'
void read_bisect_terms(const char **read_bad, const char **read_good)
                                                           ^~~~~~~~~
/datasets/git/bisect.c:984:8: warning: variable name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
        FILE *fp = fopen(filename, "r");
              ^
/datasets/git/bisect.c:991:5: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                } else {
                  ^~~~~~
/datasets/git/bisect.c:1001:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(fp);
        ^~~~~~~~~~
/datasets/git/bisect.c:1001:2: note: cast the expression to void to silence this warning
/datasets/git/bisect.c:1015:54: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
enum bisect_error bisect_next_all(struct repository *r, const char *prefix)
                                                     ^
/datasets/git/bisect.c:1019:22: warning: variable 'tried' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *tried;
                            ^
                                  = NULL
/datasets/git/bisect.c:1020:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int reaches = 0, all = 0, nr, steps;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/bisect.c:1020:28: warning: variable 'nr' is not initialized [cppcoreguidelines-init-variables]
        int reaches = 0, all = 0, nr, steps;
                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/bisect.c:1020:28: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/bisect.c:1020:32: warning: variable 'steps' is not initialized [cppcoreguidelines-init-variables]
        int reaches = 0, all = 0, nr, steps;
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/bisect.c:1022:20: warning: variable 'bisect_rev' is not initialized [cppcoreguidelines-init-variables]
        struct object_id *bisect_rev;
                          ^
                                     = NULL
/datasets/git/bisect.c:1023:8: warning: variable 'steps_msg' is not initialized [cppcoreguidelines-init-variables]
        char *steps_msg;
              ^
                        = NULL
/datasets/git/bisect.c:1032:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (read_bisect_refs())
                               ^
                                {
/datasets/git/bisect.c:1035:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (file_exists(git_path_bisect_first_parent()))
                                                        ^
                                                         {
/datasets/git/bisect.c:1036:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                bisect_flags |= FIND_BISECTION_FIRST_PARENT_ONLY;
                                ^
/datasets/git/./bisect.h:28:43: note: expanded from macro 'FIND_BISECTION_FIRST_PARENT_ONLY'
#define FIND_BISECTION_FIRST_PARENT_ONLY        (1u<<1)
                                                 ^   ~
/datasets/git/bisect.c:1038:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (skipped_revs.nr)
                            ^
                             {
/datasets/git/bisect.c:1039:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                bisect_flags |= FIND_BISECTION_ALL;
                                ^
/datasets/git/./bisect.h:27:31: note: expanded from macro 'FIND_BISECTION_ALL'
#define FIND_BISECTION_ALL                      (1u<<0)
                                                 ^   ~
/datasets/git/bisect.c:1042:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (res)
                ^
                 {
/datasets/git/bisect.c:1047:45: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        revs.first_parent_only = !!(bisect_flags & FIND_BISECTION_FIRST_PARENT_ONLY);
                                                   ^
/datasets/git/./bisect.h:28:43: note: expanded from macro 'FIND_BISECTION_FIRST_PARENT_ONLY'
#define FIND_BISECTION_FIRST_PARENT_ONLY        (1u<<1)
                                                 ^   ~
/datasets/git/bisect.c:1061:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (res < 0)
                            ^
                             {
/datasets/git/bisect.c:1073:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, _("No testable commit found.\n"
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/bisect.c:1073:3: note: cast the expression to void to silence this warning
/datasets/git/bisect.c:1084:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (res)
                        ^
                         {
/datasets/git/bisect.c:1115:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        repo_clear_commit_marks(r, ALL_REV_FLAGS);
                                   ^
/datasets/git/./revision.h:52:26: note: expanded from macro 'ALL_REV_FLAGS'
#define ALL_REV_FLAGS   (((1u<<11)-1) | NOT_USER_GIVEN | TRACK_LINEAR | PULL_MERGE)
                           ^   ~~
/datasets/git/bisect.c:1128:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; n > 1; n >>= 1)
        ^
/datasets/git/bisect.c:1128:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        for (; n > 1; n >>= 1)
                      ^
/datasets/git/bisect.c:1128:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (; n > 1; n >>= 1)
                              ^
                               {
/datasets/git/bisect.c:1136:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return 1 << n;
               ^
/datasets/git/bisect.c:1151:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int n, x, e;
        ^~~~~~~~~~~~
/datasets/git/bisect.c:1151:6: warning: variable 'n' is not initialized [cppcoreguidelines-init-variables]
        int n, x, e;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/bisect.c:1151:6: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/bisect.c:1151:9: warning: variable 'x' is not initialized [cppcoreguidelines-init-variables]
        int n, x, e;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/bisect.c:1151:9: warning: variable name 'x' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/bisect.c:1151:12: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        int n, x, e;
                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/bisect.c:1151:12: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/bisect.c:1153:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (all < 3)
                    ^
                     {
/datasets/git/bisect.c:1181:60: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        result = delete_refs("bisect: remove", &refs_for_removal, REF_NO_DEREF);
                                                                  ^
/datasets/git/./refs.h:631:23: note: expanded from macro 'REF_NO_DEREF'
#define REF_NO_DEREF (1 << 0)
                      ^
/datasets/git/blame.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "refs.h"
^        ~~~~~~~~
         "alloc.h"
/datasets/git/blame.c:15:1: warning: backward branch (for loop) is ID-dependent due to member reference to 'slab_size' and may cause performance degradation [altera-id-dependent-backward-branch]
define_commit_slab(blame_suspects, struct blame_origin *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:48:15: note: expanded from macro 'implement_commit_slab'
                for (j = 0; j < s->slab_size; j++)                      \
                            ^
/datasets/git/blame.c:15:1: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
define_commit_slab(blame_suspects, struct blame_origin *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:68:27: note: expanded from macro 'implement_commit_slab'
                for (i = s->slab_count; i <= nth_slab; i++)             \
                                        ^
/datasets/git/blame.c:15:1: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
define_commit_slab(blame_suspects, struct blame_origin *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:35:2: note: expanded from macro 'implement_commit_slab'
        for (i = 0; i < s->slab_count; i++)                             \
        ^
/datasets/git/blame.c:15:1: warning: result of multiplication in type 'unsigned int' is used as a pointer offset after an implicit widening conversion to type 'size_t' [bugprone-implicit-widening-of-multiplication-result]
define_commit_slab(blame_suspects, struct blame_origin *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:49:13: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                 ^
/datasets/git/blame.c:15:1: note: make conversion explicit to silence this warning
define_commit_slab(blame_suspects, struct blame_origin *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:49:24: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                            ^~~~~~~~~~~~~
/datasets/git/blame.c:15:1: note: perform multiplication in a wider type
define_commit_slab(blame_suspects, struct blame_origin *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:49:24: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                            ^
/datasets/git/blame.c:15:1: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
define_commit_slab(blame_suspects, struct blame_origin *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:76:10: note: expanded from macro 'implement_commit_slab'
                                            sizeof(**s->slab) * s->stride);             \
                                            ^
/datasets/git/blame.c:15:1: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(blame_suspects, struct blame_origin *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:55:30: note: expanded from macro 'implement_commit_slab'
                                                  const struct commit *c, \
                                                                       ^
/datasets/git/blame.c:15:1: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(blame_suspects, struct blame_origin *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:14:61: note: expanded from macro 'implement_commit_slab'
scope void init_ ##slabname## _with_stride(struct slabname *s,          \
                                                            ^
/datasets/git/blame.c:15:1: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(blame_suspects, struct blame_origin *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:34:15: note: expanded from macro 'implement_commit_slab'
        unsigned int i;                                                 \
                     ^
/datasets/git/blame.c:15:1: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(blame_suspects, struct blame_origin *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:45:16: note: expanded from macro 'implement_commit_slab'
                unsigned int j;                                         \
                             ^
/datasets/git/blame.c:15:1: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
define_commit_slab(blame_suspects, struct blame_origin *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:58:2: note: expanded from macro 'implement_commit_slab'
        unsigned int nth_slab, nth_slot;                                \
        ^
/datasets/git/blame.c:15:1: note: inferred assignment of ID-dependent value from ID-dependent member slab_count [altera-id-dependent-backward-branch]
define_commit_slab(blame_suspects, struct blame_origin *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:64:3: note: expanded from macro 'implement_commit_slab'
                unsigned int i;                                         \
                ^
/datasets/git/blame.c:15:20: warning: accessing fields in struct 'blame_suspects' is inefficient due to padding; only needs 20 bytes but is using 24 bytes [altera-struct-pack-align]
define_commit_slab(blame_suspects, struct blame_origin *);
                   ^
/datasets/git/blame.c:15:20: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'blame_suspects'
/datasets/git/blame.c:15:20: warning: accessing fields in struct 'blame_suspects' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
define_commit_slab(blame_suspects, struct blame_origin *);
                   ^
/datasets/git/blame.c:15:20: note: use "__attribute__((aligned(32)))" to align struct 'blame_suspects' to 32 bytes
/datasets/git/blame.c:16:30: warning: variable 'blame_suspects' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct blame_suspects blame_suspects;
                             ^
/datasets/git/blame.c:20:24: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        struct blame_origin **result;
                              ^
                                     = NULL
/datasets/git/blame.c:32:6: warning: function 'blame_origin_decref' is within a recursive call chain [misc-no-recursion]
void blame_origin_decref(struct blame_origin *o)
     ^
/datasets/git/blame.c:32:6: note: example recursive call chain, starting from function 'blame_origin_decref'
/datasets/git/blame.c:37:4: note: Frame #1: function 'blame_origin_decref' calls function 'blame_origin_decref' here:
                        blame_origin_decref(o->previous);
                        ^
/datasets/git/blame.c:37:4: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/blame.c:32:47: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
void blame_origin_decref(struct blame_origin *o)
                                              ^
/datasets/git/blame.c:35:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                struct blame_origin *p, *l = NULL;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:35:24: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                struct blame_origin *p, *l = NULL;
                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:35:24: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/blame.c:35:28: warning: variable name 'l' is too short, expected at least 3 characters [readability-identifier-length]
                struct blame_origin *p, *l = NULL;
                                         ^
/datasets/git/blame.c:36:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (o->previous)
                                ^
                                 {
/datasets/git/blame.c:40:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (p = get_blame_suspects(o->commit); p; l = p, p = p->next) {
                ^
/datasets/git/blame.c:40:43: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (p = get_blame_suspects(o->commit); p; l = p, p = p->next) {
                                                        ^
/datasets/git/blame.c:42:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (l)
                                      ^
                                       {
/datasets/git/blame.c:44:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                else
                                    ^
                                     {
/datasets/git/blame.c:62:23: warning: variable 'o' is not initialized [cppcoreguidelines-init-variables]
        struct blame_origin *o;
                             ^
                               = NULL
/datasets/git/blame.c:62:23: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/blame.c:63:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FLEX_ALLOC_STR(o, path, path);
        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^
/datasets/git/./git-compat-util.h:1151:47: note: expanded from macro 'FLEX_ALLOC_MEM'
#define FLEX_ALLOC_MEM(x, flexname, buf, len) do { \
                                              ^
/datasets/git/blame.c:63:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        FLEX_ALLOC_STR(o, path, path);
        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/blame.c:63:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        FLEX_ALLOC_STR(o, path, path);
        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/blame.c:77:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct blame_origin *o, *l;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:77:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/blame.c:77:23: warning: variable 'o' is not initialized [cppcoreguidelines-init-variables]
        struct blame_origin *o, *l;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:77:23: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/blame.c:77:27: warning: variable 'l' is not initialized [cppcoreguidelines-init-variables]
        struct blame_origin *o, *l;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:77:27: warning: variable name 'l' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/blame.c:79:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (o = get_blame_suspects(commit), l = NULL; o; l = o, o = o->next) {
        ^
/datasets/git/blame.c:79:49: warning: backward branch (for loop) is ID-dependent due to variable reference to 'o' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (o = get_blame_suspects(commit), l = NULL; o; l = o, o = o->next) {
                                                       ^
/datasets/git/blame.c:95:57: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void verify_working_tree_path(struct repository *r,
                                                        ^
/datasets/git/blame.c:98:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct commit_list *parents;
        ^
/datasets/git/blame.c:98:22: warning: variable 'parents' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *parents;
                            ^
                                    = NULL
/datasets/git/blame.c:99:6: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        int pos;
            ^
                = 0
/datasets/git/blame.c:101:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (parents = work_tree->parents; parents; parents = parents->next) {
        ^
/datasets/git/blame.c:101:37: warning: backward branch (for loop) is ID-dependent due to variable reference to 'parents' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (parents = work_tree->parents; parents; parents = parents->next) {
                                           ^
/datasets/git/blame.c:104:18: warning: variable 'mode' is not initialized [cppcoreguidelines-init-variables]
                unsigned short mode;
                               ^
                                    = 0
/datasets/git/blame.c:107:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    oid_object_info(r, &blob_oid, NULL) == OBJ_BLOB)
                                                                    ^
                                                                     {
/datasets/git/blame.c:111:39: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        pos = index_name_pos(r->index, path, strlen(path));
                                             ^
/datasets/git/blame.c:112:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pos >= 0)
                     ^
                      {
/datasets/git/blame.c:113:3: warning: repeated branch in conditional chain [bugprone-branch-clone]
                ; /* path is in the index */
                ^
/datasets/git/blame.c:113:4: note: end of the original
                ; /* path is in the index */
                 ^
/datasets/git/blame.c:116:3: note: clone 1 starts here
                ; /* path is in the index, unmerged */
                ^
/datasets/git/blame.c:115:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                 !strcmp(r->index->cache[-1 - pos]->name, path))
                                                                ^
                                                                 {
/datasets/git/blame.c:117:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/blame.c:121:62: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static struct commit_list **append_parent(struct repository *r,
                                                             ^
/datasets/git/blame.c:125:17: warning: variable 'parent' is not initialized [cppcoreguidelines-init-variables]
        struct commit *parent;
                       ^
                              = NULL
/datasets/git/blame.c:128:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!parent)
                    ^
                     {
/datasets/git/blame.c:133:53: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void append_merge_parents(struct repository *r,
                                                    ^
/datasets/git/blame.c:137:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct strbuf line = STRBUF_INIT;
        ^
/datasets/git/blame.c:136:6: warning: variable 'merge_head' is not initialized [cppcoreguidelines-init-variables]
        int merge_head;
            ^
                       = 0
/datasets/git/blame.c:139:52: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
        merge_head = open(git_path_merge_head(r), O_RDONLY);
                                                          ^
                                                           | O_CLOEXEC
/datasets/git/blame.c:141:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (errno == ENOENT)
                                    ^
                                     {
/datasets/git/blame.c:147:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (!strbuf_getwholeline_fd(&line, merge_head, '\n')) {
        ^
/datasets/git/blame.c:147:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'line' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (!strbuf_getwholeline_fd(&line, merge_head, '\n')) {
               ^
/datasets/git/blame.c:149:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (get_oid_hex(line.buf, &oid))
                                                ^
                                                 {
/datasets/git/blame.c:163:62: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void set_commit_buffer_from_strbuf(struct repository *r,
                                                             ^
/datasets/git/blame.c:164:23: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                                          struct commit *c,
                                                         ^
/datasets/git/blame.c:165:23: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                                          struct strbuf *sb)
                                                         ^
/datasets/git/blame.c:167:9: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        size_t len;
               ^
                   = 0
/datasets/git/blame.c:176:23: warning: function 'fake_working_tree_commit' has cognitive complexity of 33 (threshold 25) [readability-function-cognitive-complexity]
static struct commit *fake_working_tree_commit(struct repository *r,
                      ^
/datasets/git/blame.c:200:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!resolve_ref_unsafe("HEAD", RESOLVE_REF_READING, &head_oid, NULL))
        ^
/datasets/git/blame.c:212:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (parent = commit->parents; parent; parent = parent->next)
        ^
/datasets/git/blame.c:220:23: note: +1, including nesting penalty of 0, nesting level increased to 1
                    (!contents_from ? path :
                                    ^
/datasets/git/blame.c:221:37: note: +2, including nesting penalty of 1, nesting level increased to 2
                     (!strcmp(contents_from, "-") ? "standard input" : contents_from)));
                                                  ^
/datasets/git/blame.c:224:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!contents_from || strcmp("-", contents_from)) {
        ^
/datasets/git/blame.c:224:21: note: +1
        if (!contents_from || strcmp("-", contents_from)) {
                           ^
/datasets/git/blame.c:230:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (contents_from) {
                ^
/datasets/git/blame.c:231:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (stat(contents_from, &st) < 0)
                        ^
/datasets/git/blame.c:235:3: note: +1, nesting level increased to 2
                else {
                ^
/datasets/git/blame.c:236:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (lstat(path, &st) < 0)
                        ^
/datasets/git/blame.c:242:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                switch (st.st_mode & S_IFMT) {
                ^
/datasets/git/blame.c:244:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (opt->flags.allow_textconv &&
                        ^
/datasets/git/blame.c:244:34: note: +1
                        if (opt->flags.allow_textconv &&
                                                      ^
/datasets/git/blame.c:247:9: note: +1, nesting level increased to 3
                        else if (strbuf_read_file(&buf, read_from, st.st_size) != st.st_size)
                             ^
/datasets/git/blame.c:251:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (strbuf_readlink(&buf, read_from, st.st_size) < 0)
                        ^
/datasets/git/blame.c:258:2: note: +1, nesting level increased to 1
        else {
        ^
/datasets/git/blame.c:261:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (strbuf_read(&buf, 0, 0) < 0)
                ^
/datasets/git/blame.c:279:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!mode) {
        ^
/datasets/git/blame.c:281:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (0 <= pos)
                ^
/datasets/git/blame.c:283:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/blame.c:176:67: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static struct commit *fake_working_tree_commit(struct repository *r,
                                                                  ^
/datasets/git/blame.c:181:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/blame.c:182:23: warning: variable 'origin' is not initialized [cppcoreguidelines-init-variables]
        struct blame_origin *origin;
                             ^
                                    = NULL
/datasets/git/blame.c:183:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit_list **parent_tail, *parent;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:183:23: warning: variable 'parent_tail' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list **parent_tail, *parent;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:183:37: warning: variable 'parent' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list **parent_tail, *parent;
                                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:186:14: warning: variable 'ident' is not initialized [cppcoreguidelines-init-variables]
        const char *ident;
                    ^
                          = NULL
/datasets/git/blame.c:187:9: warning: variable 'now' is not initialized [cppcoreguidelines-init-variables]
        time_t now;
               ^
                   = 0
/datasets/git/blame.c:188:6: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int len;
            ^
                = 0
/datasets/git/blame.c:189:22: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
        struct cache_entry *ce;
                            ^
                               = NULL
/datasets/git/blame.c:189:22: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/blame.c:190:11: warning: variable 'mode' is not initialized [cppcoreguidelines-init-variables]
        unsigned mode;
                 ^
                      = 0
/datasets/git/blame.c:194:2: warning: the value returned by this function should be used [cert-err33-c]
        time(&now);
        ^~~~~~~~~~
/datasets/git/blame.c:194:2: note: cast the expression to void to silence this warning
/datasets/git/blame.c:200:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!resolve_ref_unsafe("HEAD", RESOLVE_REF_READING, &head_oid, NULL))
                                                                              ^
                                                                               {
/datasets/git/blame.c:212:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (parent = commit->parents; parent; parent = parent->next)
        ^
/datasets/git/blame.c:212:33: warning: backward branch (for loop) is ID-dependent due to variable reference to 'parent' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (parent = commit->parents; parent; parent = parent->next)
                                       ^
/datasets/git/blame.c:212:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (parent = commit->parents; parent; parent = parent->next)
                                                                     ^
                                                                      {
/datasets/git/blame.c:224:24: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (!contents_from || strcmp("-", contents_from)) {
                              ^
                                                         != 0
/datasets/git/blame.c:225:15: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                struct stat st;
                            ^
/datasets/git/blame.c:226:15: warning: variable 'read_from' is not initialized [cppcoreguidelines-init-variables]
                const char *read_from;
                            ^
                                      = NULL
/datasets/git/blame.c:227:9: warning: variable 'buf_ptr' is not initialized [cppcoreguidelines-init-variables]
                char *buf_ptr;
                      ^
                              = NULL
/datasets/git/blame.c:228:17: warning: variable 'buf_len' is not initialized [cppcoreguidelines-init-variables]
                unsigned long buf_len;
                              ^
                                      = 0
/datasets/git/blame.c:231:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (stat(contents_from, &st) < 0)
                                                         ^
                                                          {
/datasets/git/blame.c:236:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (lstat(path, &st) < 0)
                                                 ^
                                                  {
/datasets/git/blame.c:242:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                switch (st.st_mode & S_IFMT) {
                        ^
/datasets/git/blame.c:245:79: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            textconv_object(r, read_from, mode, null_oid(), 0, &buf_ptr, &buf_len))
                                                                                                   ^
                                                                                                    {
/datasets/git/blame.c:247:73: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (strbuf_read_file(&buf, read_from, st.st_size) != st.st_size)
                                                                                             ^
                                                                                              {
/datasets/git/blame.c:251:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (strbuf_readlink(&buf, read_from, st.st_size) < 0)
                                                                             ^
                                                                              {
/datasets/git/blame.c:261:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strbuf_read(&buf, 0, 0) < 0)
                                                ^
                                                 {
/datasets/git/blame.c:266:22: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'long' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        origin->file.size = buf.len;
                            ^
/datasets/git/blame.c:278:8: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        len = strlen(path);
              ^
/datasets/git/blame.c:281:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (0 <= pos)
                             ^
                              {
/datasets/git/blame.c:283:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/blame.c:285:21: warning: 0644 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        mode = S_IFREG | 0644;
                                         ^
/datasets/git/blame.c:289:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(ce->name, path, len);
        ^~~~~~
/datasets/git/blame.c:289:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(ce->name, path, len);
        ^~~~~~
/datasets/git/blame.c:294:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ADD_CACHE_OK_TO_ADD | ADD_CACHE_OK_TO_REPLACE);
                        ^
/datasets/git/./refs/../cache.h:840:29: note: expanded from macro 'ADD_CACHE_OK_TO_ADD'
#define ADD_CACHE_OK_TO_ADD 1           /* Ok to add */
                            ^
/datasets/git/blame.c:318:14: warning: variable name 'nl' is too short, expected at least 3 characters [readability-identifier-length]
        const char *nl = memchr(start, '\n', end - start);
                    ^
/datasets/git/blame.c:327:14: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        const char *p;
                    ^
                      = NULL
/datasets/git/blame.c:327:14: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/blame.c:328:7: warning: variable 'lineno' is not initialized [cppcoreguidelines-init-variables]
        int *lineno;
             ^
                    = NULL
/datasets/git/blame.c:331:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = buf; p < end; p = get_next_line(p, end))
        ^
/datasets/git/blame.c:331:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = buf; p < end; p = get_next_line(p, end))
                      ^
/datasets/git/blame.c:331:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (p = buf; p < end; p = get_next_line(p, end))
                                                         ^
                                                          {
/datasets/git/blame.c:337:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = buf; p < end; p = get_next_line(p, end))
        ^
/datasets/git/blame.c:337:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = buf; p < end; p = get_next_line(p, end))
                      ^
/datasets/git/blame.c:337:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (p = buf; p < end; p = get_next_line(p, end))
                                                         ^
                                                          {
/datasets/git/blame.c:338:15: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                *lineno++ = p - buf;
                            ^
/datasets/git/blame.c:340:12: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        *lineno = len;
                  ^
/datasets/git/blame.c:366:8: warning: accessing fields in struct 'fingerprint' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct fingerprint {
       ^
/datasets/git/blame.c:366:8: note: use "__attribute__((aligned(64)))" to align struct 'fingerprint' to 64 bytes
/datasets/git/blame.c:378:8: warning: accessing fields in struct 'fingerprint_entry' is inefficient due to padding; only needs 20 bytes but is using 24 bytes [altera-struct-pack-align]
struct fingerprint_entry {
       ^
/datasets/git/blame.c:378:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'fingerprint_entry'
/datasets/git/blame.c:378:8: warning: accessing fields in struct 'fingerprint_entry' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct fingerprint_entry {
       ^
/datasets/git/blame.c:378:8: note: use "__attribute__((aligned(32)))" to align struct 'fingerprint_entry' to 32 bytes
/datasets/git/blame.c:399:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned int hash, c0 = 0, c1;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:400:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        const char *p;
        ^
/datasets/git/blame.c:399:15: warning: variable 'hash' is not initialized [cppcoreguidelines-init-variables]
        unsigned int hash, c0 = 0, c1;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:399:21: warning: variable name 'c0' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned int hash, c0 = 0, c1;
                           ^
/datasets/git/blame.c:399:29: warning: variable 'c1' is not initialized [cppcoreguidelines-init-variables]
        unsigned int hash, c0 = 0, c1;
                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:399:29: warning: variable name 'c1' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/blame.c:400:14: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        const char *p;
                    ^
                      = NULL
/datasets/git/blame.c:400:14: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/blame.c:401:28: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int max_map_entry_count = 1 + line_end - line_begin;
                                  ^
/datasets/git/blame.c:404:28: warning: variable 'found_entry' is not initialized [cppcoreguidelines-init-variables]
        struct fingerprint_entry *found_entry;
                                  ^
                                              = NULL
/datasets/git/blame.c:408:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = line_begin; p <= line_end; ++p, c0 = c1) {
        ^
/datasets/git/blame.c:408:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = line_begin; p <= line_end; ++p, c0 = c1) {
                             ^
/datasets/git/blame.c:414:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((p == line_end) || isspace(*p))
                                       ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/blame.c:414:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((p == line_end) || isspace(*p))
                                                   ^
                                                    {
/datasets/git/blame.c:416:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/blame.c:418:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                hash = c0 | (c1 << 8);
                             ^     ~
/datasets/git/blame.c:418:22: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                hash = c0 | (c1 << 8);
                                   ^
/datasets/git/blame.c:420:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (hash == 0)
                              ^
                               {
/datasets/git/blame.c:436:50: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
static void free_fingerprint(struct fingerprint *f)
                                                 ^
/datasets/git/blame.c:449:55: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static int fingerprint_similarity(struct fingerprint *a, struct fingerprint *b)
                                                      ^
/datasets/git/blame.c:449:78: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static int fingerprint_similarity(struct fingerprint *a, struct fingerprint *b)
                                                                             ^
/datasets/git/blame.c:453:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const struct fingerprint_entry *entry_a, *entry_b;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:453:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/blame.c:453:34: warning: variable 'entry_a' is not initialized [cppcoreguidelines-init-variables]
        const struct fingerprint_entry *entry_a, *entry_b;
                                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:453:44: warning: variable 'entry_b' is not initialized [cppcoreguidelines-init-variables]
        const struct fingerprint_entry *entry_a, *entry_b;
                                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:455:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        hashmap_for_each_entry(&b->map, &iter, entry_b,
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/blame.c:455:41: warning: backward branch (for loop) is ID-dependent due to variable reference to 'entry_b' and may cause performance degradation [altera-id-dependent-backward-branch]
        hashmap_for_each_entry(&b->map, &iter, entry_b,
                                               ^
/datasets/git/blame.c:468:54: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static void fingerprint_subtract(struct fingerprint *a, struct fingerprint *b)
                                                     ^
/datasets/git/blame.c:468:77: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static void fingerprint_subtract(struct fingerprint *a, struct fingerprint *b)
                                                                            ^
/datasets/git/blame.c:472:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        const struct fingerprint_entry *entry_b;
        ^
/datasets/git/blame.c:471:28: warning: variable 'entry_a' is not initialized [cppcoreguidelines-init-variables]
        struct fingerprint_entry *entry_a;
                                  ^
                                          = NULL
/datasets/git/blame.c:472:34: warning: variable 'entry_b' is not initialized [cppcoreguidelines-init-variables]
        const struct fingerprint_entry *entry_b;
                                        ^
                                                = NULL
/datasets/git/blame.c:476:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        hashmap_for_each_entry(&b->map, &iter, entry_b,
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/blame.c:476:41: warning: backward branch (for loop) is ID-dependent due to variable reference to 'entry_b' and may cause performance degradation [altera-id-dependent-backward-branch]
        hashmap_for_each_entry(&b->map, &iter, entry_b,
                                               ^
/datasets/git/blame.c:480:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (entry_a->count <= entry_b->count)
                                                             ^
                                                              {
/datasets/git/blame.c:482:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/blame.c:494:7: warning: 2 adjacent parameters of 'get_line_fingerprints' of similar type ('long') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                  long first_line, long line_count)
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:494:12: note: the first parameter in the range is 'first_line'
                                  long first_line, long line_count)
                                       ^~~~~~~~~~
/datasets/git/blame.c:494:29: note: the last parameter in the range is 'line_count'
                                  long first_line, long line_count)
                                                        ^~~~~~~~~~
/datasets/git/blame.c:496:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/blame.c:496:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/blame.c:497:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *linestart, *lineend;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:497:14: warning: variable 'linestart' is not initialized [cppcoreguidelines-init-variables]
        const char *linestart, *lineend;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:497:26: warning: variable 'lineend' is not initialized [cppcoreguidelines-init-variables]
        const char *linestart, *lineend;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:500:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < line_count; ++i) {
        ^
/datasets/git/blame.c:510:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/blame.c:510:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/blame.c:512:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr_fingerprints; i++)
        ^
/datasets/git/blame.c:512:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < nr_fingerprints; i++)
                                             ^
                                              {
/datasets/git/blame.c:520:8: warning: accessing fields in struct 'line_number_mapping' is inefficient due to poor alignment; currently aligned to 4 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct line_number_mapping {
       ^
/datasets/git/blame.c:520:8: note: use "__attribute__((aligned(16)))" to align struct 'line_number_mapping' to 16 bytes
/datasets/git/blame.c:590:9: warning: result of multiplication in type 'int' is used as a pointer offset after an implicit widening conversion to type 'ptrdiff_t' [bugprone-implicit-widening-of-multiplication-result]
        return similarities + line_a - closest_line_a +
               ^
/datasets/git/blame.c:592:9: note: make conversion explicit to silence this warning
               local_line_b * (max_search_distance_a * 2 + 1);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
               (ptrdiff_t)(                                 )
/datasets/git/blame.c:592:9: note: perform multiplication in a wider type
               local_line_b * (max_search_distance_a * 2 + 1);
               ^~~~~~~~~~~~
               (ptrdiff_t)
/datasets/git/blame.c:595:1: warning: replace macro with enum [modernize-macro-to-enum]
#define CERTAIN_NOTHING_MATCHES -2
^~~~~~~~
                                = ,
/datasets/git/blame.c:595:9: warning: macro 'CERTAIN_NOTHING_MATCHES' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define CERTAIN_NOTHING_MATCHES -2
        ^
/datasets/git/blame.c:595:33: warning: macro replacement list should be enclosed in parentheses [bugprone-macro-parentheses]
#define CERTAIN_NOTHING_MATCHES -2
                                ^
                                ( )
/datasets/git/blame.c:596:9: warning: macro 'CERTAINTY_NOT_CALCULATED' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define CERTAINTY_NOT_CALCULATED -1
        ^
/datasets/git/blame.c:596:34: warning: macro replacement list should be enclosed in parentheses [bugprone-macro-parentheses]
#define CERTAINTY_NOT_CALCULATED -1
                                 ^
                                 ( )
/datasets/git/blame.c:623:2: warning: 2 adjacent parameters of 'find_best_line_matches' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
        int start_a,
        ^~~~~~~~~~~~
/datasets/git/blame.c:623:6: note: the first parameter in the range is 'start_a'
        int start_a,
            ^~~~~~~
/datasets/git/blame.c:624:6: note: the last parameter in the range is 'length_a'
        int length_a,
            ^~~~~~~~
/datasets/git/blame.c:629:2: warning: 4 adjacent parameters of 'find_best_line_matches' of similar type ('int *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
        int *similarities,
        ^~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:629:7: note: the first parameter in the range is 'similarities'
        int *similarities,
             ^~~~~~~~~~~~
/datasets/git/blame.c:632:7: note: the last parameter in the range is 'result'
        int *result,
             ^~~~~~
/datasets/git/blame.c:637:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, search_start, search_end, closest_local_line_a, *similarity,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:637:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, search_start, search_end, closest_local_line_a, *similarity,
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:637:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/blame.c:637:9: warning: variable 'search_start' is not initialized [cppcoreguidelines-init-variables]
        int i, search_start, search_end, closest_local_line_a, *similarity,
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:637:23: warning: variable 'search_end' is not initialized [cppcoreguidelines-init-variables]
        int i, search_start, search_end, closest_local_line_a, *similarity,
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:637:35: warning: variable 'closest_local_line_a' is not initialized [cppcoreguidelines-init-variables]
        int i, search_start, search_end, closest_local_line_a, *similarity,
                                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:637:58: warning: variable 'similarity' is not initialized [cppcoreguidelines-init-variables]
        int i, search_start, search_end, closest_local_line_a, *similarity,
                                                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:642:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (certainties[local_line_b] != CERTAINTY_NOT_CALCULATED)
                                                                  ^
                                                                   {
/datasets/git/blame.c:649:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (search_start < 0)
                             ^
                              {
/datasets/git/blame.c:653:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (search_end > length_a)
                                  ^
                                   {
/datasets/git/blame.c:656:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = search_start; i < search_end; ++i) {
        ^
/datasets/git/blame.c:656:25: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = search_start; i < search_end; ++i) {
                               ^
/datasets/git/blame.c:673:6: warning: 1000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                (1000 - abs(i - closest_local_line_a));
                                 ^
/datasets/git/blame.c:751:13: warning: function 'fuzzy_find_matching_lines_recurse' is within a recursive call chain [misc-no-recursion]
static void fuzzy_find_matching_lines_recurse(
            ^
/datasets/git/blame.c:751:13: note: example recursive call chain, starting from function 'fuzzy_find_matching_lines_recurse'
/datasets/git/blame.c:867:3: note: Frame #1: function 'fuzzy_find_matching_lines_recurse' calls function 'fuzzy_find_matching_lines_recurse' here:
                fuzzy_find_matching_lines_recurse(
                ^
/datasets/git/blame.c:867:3: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/blame.c:764:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, invalidate_min, invalidate_max, offset_b,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:764:2: note: inferred assignment of ID-dependent value from ID-dependent variable invalidate_min [altera-id-dependent-backward-branch]
/datasets/git/blame.c:764:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, invalidate_min, invalidate_max, offset_b,
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:764:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/blame.c:764:9: warning: variable 'invalidate_min' is not initialized [cppcoreguidelines-init-variables]
        int i, invalidate_min, invalidate_max, offset_b,
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:764:25: warning: variable 'invalidate_max' is not initialized [cppcoreguidelines-init-variables]
        int i, invalidate_min, invalidate_max, offset_b,
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:764:41: warning: variable 'offset_b' is not initialized [cppcoreguidelines-init-variables]
        int i, invalidate_min, invalidate_max, offset_b,
                                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:765:3: warning: variable 'second_half_start_a' is not initialized [cppcoreguidelines-init-variables]
                second_half_start_a, second_half_start_b,
                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:765:24: warning: variable 'second_half_start_b' is not initialized [cppcoreguidelines-init-variables]
                second_half_start_a, second_half_start_b,
                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:766:3: warning: variable 'second_half_length_a' is not initialized [cppcoreguidelines-init-variables]
                second_half_length_a, second_half_length_b,
                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:766:25: warning: variable 'second_half_length_b' is not initialized [cppcoreguidelines-init-variables]
                second_half_length_a, second_half_length_b,
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:767:3: warning: variable 'most_certain_line_a' is not initialized [cppcoreguidelines-init-variables]
                most_certain_line_a, most_certain_local_line_b = -1,
                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:769:3: warning: variable 'closest_local_line_a' is not initialized [cppcoreguidelines-init-variables]
                closest_local_line_a;
                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:771:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < length_b; ++i) {
        ^
/datasets/git/blame.c:771:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < length_b; ++i) {
                    ^
/datasets/git/blame.c:792:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (most_certain_local_line_b == -1)
                                            ^
                                             {
/datasets/git/blame.c:810:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (invalidate_min < 0)
                               ^
                                {
/datasets/git/blame.c:812:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (invalidate_max > length_b)
                                      ^
                                       {
/datasets/git/blame.c:818:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = invalidate_min; i < invalidate_max; ++i) {
        ^
/datasets/git/blame.c:764:2: note: inferred assignment of ID-dependent value from ID-dependent variable invalidate_min [altera-id-dependent-backward-branch]
        int i, invalidate_min, invalidate_max, offset_b,
        ^
/datasets/git/blame.c:818:27: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = invalidate_min; i < invalidate_max; ++i) {
                                 ^
/datasets/git/blame.c:841:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = most_certain_local_line_b - 1; i >= invalidate_min; --i) {
        ^
/datasets/git/blame.c:764:2: note: inferred assignment of ID-dependent value from ID-dependent variable invalidate_min [altera-id-dependent-backward-branch]
        int i, invalidate_min, invalidate_max, offset_b,
        ^
/datasets/git/blame.c:841:42: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = most_certain_local_line_b - 1; i >= invalidate_min; --i) {
                                                ^
/datasets/git/blame.c:852:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = most_certain_local_line_b + 1; i < invalidate_max; ++i) {
        ^
/datasets/git/blame.c:852:42: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = most_certain_local_line_b + 1; i < invalidate_max; ++i) {
                                                ^
/datasets/git/blame.c:892:4: warning: result of multiplication in type 'int' is used as a pointer offset after an implicit widening conversion to type 'ptrdiff_t' [bugprone-implicit-widening-of-multiplication-result]
                        similarities +
                        ^
/datasets/git/blame.c:893:5: note: make conversion explicit to silence this warning
                                offset_b * (max_search_distance_a * 2 + 1),
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                (ptrdiff_t)(                             )
/datasets/git/blame.c:893:5: note: perform multiplication in a wider type
                                offset_b * (max_search_distance_a * 2 + 1),
                                ^~~~~~~~
                                (ptrdiff_t)
/datasets/git/blame.c:913:11: warning: 2 adjacent parameters of 'fuzzy_find_matching_lines' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                      int tlno, int parent_slno, int same,
                                      ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:913:15: note: the first parameter in the range is 'tlno'
                                      int tlno, int parent_slno, int same,
                                          ^~~~
/datasets/git/blame.c:913:25: note: the last parameter in the range is 'parent_slno'
                                      int tlno, int parent_slno, int same,
                                                    ^~~~~~~~~~~
/datasets/git/blame.c:913:38: warning: 2 adjacent parameters of 'fuzzy_find_matching_lines' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                      int tlno, int parent_slno, int same,
                                                                 ^~~~~~~~~
/datasets/git/blame.c:913:42: note: the first parameter in the range is 'same'
                                      int tlno, int parent_slno, int same,
                                                                     ^~~~
/datasets/git/blame.c:914:15: note: the last parameter in the range is 'parent_len'
                                      int parent_len)
                                          ^~~~~~~~~~
/datasets/git/blame.c:930:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, *result, *second_best_result,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:930:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, *result, *second_best_result,
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:930:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/blame.c:930:10: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        int i, *result, *second_best_result,
                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:930:19: warning: variable 'second_best_result' is not initialized [cppcoreguidelines-init-variables]
        int i, *result, *second_best_result,
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:931:4: warning: variable 'certainties' is not initialized [cppcoreguidelines-init-variables]
                *certainties, *similarities, similarity_count;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:931:18: warning: variable 'similarities' is not initialized [cppcoreguidelines-init-variables]
                *certainties, *similarities, similarity_count;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:931:32: warning: variable 'similarity_count' is not initialized [cppcoreguidelines-init-variables]
                *certainties, *similarities, similarity_count;
                                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:943:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int max_search_distance_a = 10, max_search_distance_b;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:943:30: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        int max_search_distance_a = 10, max_search_distance_b;
                                    ^
/datasets/git/blame.c:943:34: warning: variable 'max_search_distance_b' is not initialized [cppcoreguidelines-init-variables]
        int max_search_distance_a = 10, max_search_distance_b;
                                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:945:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (length_a <= 0)
                          ^
                           {
/datasets/git/blame.c:948:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (max_search_distance_a >= length_a)
                                              ^
                                               {
/datasets/git/blame.c:962:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < length_b; ++i) {
        ^
/datasets/git/blame.c:962:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'length_b' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < length_b; ++i) {
                    ^
/datasets/git/blame.c:968:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < similarity_count; ++i)
        ^
/datasets/git/blame.c:968:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'similarity_count' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < similarity_count; ++i)
                    ^
/datasets/git/blame.c:968:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < similarity_count; ++i)
                                              ^
                                               {
/datasets/git/blame.c:990:59: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static void fill_origin_fingerprints(struct blame_origin *o)
                                                          ^
/datasets/git/blame.c:992:7: warning: variable 'line_starts' is not initialized [cppcoreguidelines-init-variables]
        int *line_starts;
             ^
                         = NULL
/datasets/git/blame.c:994:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (o->fingerprints)
                            ^
                             {
/datasets/git/blame.c:1004:59: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static void drop_origin_fingerprints(struct blame_origin *o)
                                                          ^
/datasets/git/blame.c:1009:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FREE_AND_NULL(o->fingerprints);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/blame.c:1018:30: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                             struct blame_origin *o, mmfile_t *file,
                                                  ^
/datasets/git/blame.c:1022:20: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
                enum object_type type;
                                 ^
/datasets/git/blame.c:1023:17: warning: variable 'file_size' is not initialized [cppcoreguidelines-init-variables]
                unsigned long file_size;
                              ^
                                        = 0
/datasets/git/blame.c:1028:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                    &o->blob_oid, 1, &file->ptr, &file_size))
                                                                             ^
                                                                              {
/datasets/git/blame.c:1030:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/blame.c:1033:16: warning: narrowing conversion from 'unsigned long' to signed type 'long' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                file->size = file_size;
                             ^
/datasets/git/blame.c:1035:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!file->ptr)
                               ^
                                {
/datasets/git/blame.c:1041:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/blame.c:1043:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fill_fingerprints)
                              ^
                               {
/datasets/git/blame.c:1047:51: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static void drop_origin_blob(struct blame_origin *o)
                                                  ^
/datasets/git/blame.c:1049:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(o->file.ptr);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/blame.c:1064:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct blame_entry *p1 = list1, *p2 = list2,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:1064:22: warning: variable name 'p1' is too short, expected at least 3 characters [readability-identifier-length]
        struct blame_entry *p1 = list1, *p2 = list2,
                            ^
/datasets/git/blame.c:1064:35: warning: variable name 'p2' is too short, expected at least 3 characters [readability-identifier-length]
        struct blame_entry *p1 = list1, *p2 = list2,
                                         ^
/datasets/git/blame.c:1064:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct blame_entry *p1 = list1, *p2 = list2,
        ^
/datasets/git/blame.c:1067:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!p1)
                ^
                 {
/datasets/git/blame.c:1069:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!p2)
                ^
                 {
/datasets/git/blame.c:1073:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                do {
                ^
/datasets/git/blame.c:1075:10: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                        if (!(p1 = *tail)) {
                              ^
/datasets/git/blame.c:1075:10: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/blame.c:1075:10: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/blame.c:1064:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct blame_entry *p1 = list1, *p2 = list2,
        ^
/datasets/git/blame.c:1079:12: warning: backward branch (do loop) is ID-dependent due to variable reference to 'p1' and may cause performance degradation [altera-id-dependent-backward-branch]
                } while (p1->s_lno <= p2->s_lno);
                         ^
/datasets/git/blame.c:1083:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                do {
                ^
/datasets/git/blame.c:1064:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct blame_entry *p1 = list1, *p2 = list2,
        ^
/datasets/git/blame.c:1085:10: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                        if (!(p2 = *tail))  {
                              ^
/datasets/git/blame.c:1085:10: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/blame.c:1085:10: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/blame.c:1089:12: warning: backward branch (do loop) is ID-dependent due to variable reference to 'p1' and may cause performance degradation [altera-id-dependent-backward-branch]
                } while (p1->s_lno > p2->s_lno);
                         ^
/datasets/git/blame.c:1091:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                do {
                ^
/datasets/git/blame.c:1093:10: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                        if (!(p1 = *tail)) {
                              ^
/datasets/git/blame.c:1093:10: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/blame.c:1093:10: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/blame.c:1097:12: warning: backward branch (do loop) is ID-dependent due to variable reference to 'p1' and may cause performance degradation [altera-id-dependent-backward-branch]
                } while (p1->s_lno <= p2->s_lno);
                         ^
/datasets/git/blame.c:1101:1: warning: backward branch (do loop) is ID-dependent due to variable reference to 'list' and may cause performance degradation [altera-id-dependent-backward-branch]
DEFINE_LIST_SORT(static, sort_blame_entries, struct blame_entry, next);
^
./mergesort.h:102:58: note: expanded from macro 'DEFINE_LIST_SORT'
#define DEFINE_LIST_SORT(scope, name, type, next_member) \
                                                         ^
./mergesort.h:97:9: note: expanded from macro '\
DEFINE_LIST_SORT_DEBUG'
                                                                \
                                                                ^
./mergesort.h:24:12: note: expanded from macro '\
DEFINE_LIST_MERGE_INTERNAL'
                } while (compare_fn(list, other) < prefer_list);        \
                         ^
/datasets/git/blame.c:1101:1: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
DEFINE_LIST_SORT(static, sort_blame_entries, struct blame_entry, next);
^
./mergesort.h:102:58: note: expanded from macro 'DEFINE_LIST_SORT'
#define DEFINE_LIST_SORT(scope, name, type, next_member) \
                                                         ^
./mergesort.h:97:9: note: expanded from macro '\
DEFINE_LIST_SORT_DEBUG'
                                                                \
                                                                ^
./mergesort.h:14:3: note: expanded from macro '\
DEFINE_LIST_MERGE_INTERNAL'
                SWAP(list, other);                                      \
                ^
/datasets/git/./git-compat-util.h:759:20: note: expanded from macro 'SWAP'
#define SWAP(a, b) do {                                         \
                   ^
/datasets/git/blame.c:1101:1: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
DEFINE_LIST_SORT(static, sort_blame_entries, struct blame_entry, next);
^
./mergesort.h:102:58: note: expanded from macro 'DEFINE_LIST_SORT'
#define DEFINE_LIST_SORT(scope, name, type, next_member) \
                                                         ^
./mergesort.h:97:9: note: expanded from macro '\
DEFINE_LIST_SORT_DEBUG'
                                                                \
                                                                ^
./mergesort.h:14:3: note: expanded from macro '\
DEFINE_LIST_MERGE_INTERNAL'
                SWAP(list, other);                                      \
                ^
/datasets/git/./git-compat-util.h:762:29: note: expanded from macro 'SWAP'
        unsigned char _swap_buffer[sizeof(a)];                  \
                                   ^
/datasets/git/blame.c:1101:1: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
DEFINE_LIST_SORT(static, sort_blame_entries, struct blame_entry, next);
^
/datasets/git/./mergesort.h:102:58: note: expanded from macro 'DEFINE_LIST_SORT'
#define DEFINE_LIST_SORT(scope, name, type, next_member) \
                                                         ^
/datasets/git/./mergesort.h:97:9: note: expanded from macro '\
DEFINE_LIST_SORT_DEBUG'
                                                                \
                                                                ^
/datasets/git/./mergesort.h:14:3: note: expanded from macro '\
DEFINE_LIST_MERGE_INTERNAL'
                SWAP(list, other);                                      \
                ^~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/blame.c:1101:1: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
DEFINE_LIST_SORT(static, sort_blame_entries, struct blame_entry, next);
^
/datasets/git/./mergesort.h:102:58: note: expanded from macro 'DEFINE_LIST_SORT'
#define DEFINE_LIST_SORT(scope, name, type, next_member) \
                                                         ^
/datasets/git/./mergesort.h:97:9: note: expanded from macro '\
DEFINE_LIST_SORT_DEBUG'
                                                                \
                                                                ^
/datasets/git/./mergesort.h:14:3: note: expanded from macro '\
DEFINE_LIST_MERGE_INTERNAL'
                SWAP(list, other);                                      \
                ^~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/blame.c:1101:1: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
DEFINE_LIST_SORT(static, sort_blame_entries, struct blame_entry, next);
^
/datasets/git/./mergesort.h:102:58: note: expanded from macro 'DEFINE_LIST_SORT'
#define DEFINE_LIST_SORT(scope, name, type, next_member) \
                                                         ^
/datasets/git/./mergesort.h:97:9: note: expanded from macro '\
DEFINE_LIST_SORT_DEBUG'
                                                                \
                                                                ^
/datasets/git/./mergesort.h:26:3: note: expanded from macro '\
DEFINE_LIST_MERGE_INTERNAL'
                prefer_list ^= 1;                                       \
                ^~~~~~~~~~~
/datasets/git/blame.c:1101:1: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
DEFINE_LIST_SORT(static, sort_blame_entries, struct blame_entry, next);
^
/datasets/git/./mergesort.h:102:58: note: expanded from macro 'DEFINE_LIST_SORT'
#define DEFINE_LIST_SORT(scope, name, type, next_member) \
                                                         ^
/datasets/git/./mergesort.h:98:43: note: expanded from macro '\
DEFINE_LIST_SORT_DEBUG'
DEFINE_LIST_MERGE_INTERNAL(name, type)                          \
                                                                ^
/datasets/git/./mergesort.h:57:7: note: expanded from macro '\
DEFINE_LIST_SORT_INTERNAL'
                int i;                                                  \
                    ^
/datasets/git/blame.c:1101:1: warning: variable name 'm' is too short, expected at least 3 characters [readability-identifier-length]
DEFINE_LIST_SORT(static, sort_blame_entries, struct blame_entry, next);
^
/datasets/git/./mergesort.h:102:58: note: expanded from macro 'DEFINE_LIST_SORT'
#define DEFINE_LIST_SORT(scope, name, type, next_member) \
                                                         ^
/datasets/git/./mergesort.h:98:43: note: expanded from macro '\
DEFINE_LIST_SORT_DEBUG'
DEFINE_LIST_MERGE_INTERNAL(name, type)                          \
                                                                ^
/datasets/git/./mergesort.h:58:10: note: expanded from macro '\
DEFINE_LIST_SORT_INTERNAL'
                size_t m;                                               \
                       ^
/datasets/git/blame.c:1101:1: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
DEFINE_LIST_SORT(static, sort_blame_entries, struct blame_entry, next);
^
/datasets/git/./mergesort.h:102:58: note: expanded from macro 'DEFINE_LIST_SORT'
#define DEFINE_LIST_SORT(scope, name, type, next_member) \
                                                         ^
/datasets/git/./mergesort.h:98:43: note: expanded from macro '\
DEFINE_LIST_SORT_DEBUG'
DEFINE_LIST_MERGE_INTERNAL(name, type)                          \
                                                                ^
/datasets/git/./mergesort.h:51:9: note: expanded from macro '\
DEFINE_LIST_SORT_INTERNAL'
        size_t n = 0;                                                   \
               ^
/datasets/git/blame.c:1101:46: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
DEFINE_LIST_SORT(static, sort_blame_entries, struct blame_entry, next);
                                             ^
/datasets/git/blame.c:1108:58: warning: parameter name 'e1' is too short, expected at least 3 characters [readability-identifier-length]
static int compare_blame_final(const struct blame_entry *e1,
                                                         ^
/datasets/git/blame.c:1109:37: warning: parameter name 'e2' is too short, expected at least 3 characters [readability-identifier-length]
                               const struct blame_entry *e2)
                                                         ^
/datasets/git/blame.c:1114:60: warning: parameter name 's1' is too short, expected at least 3 characters [readability-identifier-length]
static int compare_blame_suspect(const struct blame_entry *s1,
                                                           ^
/datasets/git/blame.c:1115:32: warning: parameter name 's2' is too short, expected at least 3 characters [readability-identifier-length]
                                 const struct blame_entry *s2)
                                                           ^
/datasets/git/blame.c:1124:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (s1->suspect != s2->suspect)
                                       ^
                                        {
/datasets/git/blame.c:1126:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (s1->s_lno == s2->s_lno)
                                   ^
                                    {
/datasets/git/blame.c:1131:48: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void blame_sort_final(struct blame_scoreboard *sb)
                                               ^
/datasets/git/blame.c:1136:63: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static int compare_commits_by_reverse_commit_date(const void *a,
                                                              ^
/datasets/git/blame.c:1137:21: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
                                                  const void *b,
                                                              ^
/datasets/git/blame.c:1138:15: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                                                  void *c)
                                                        ^
/datasets/git/blame.c:1147:58: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static void sanity_check_refcnt(struct blame_scoreboard *sb)
                                                         ^
/datasets/git/blame.c:1150:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct blame_entry *ent;
        ^
/datasets/git/blame.c:1150:22: warning: variable 'ent' is not initialized [cppcoreguidelines-init-variables]
        struct blame_entry *ent;
                            ^
                                = NULL
/datasets/git/blame.c:1152:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (ent = sb->ent; ent; ent = ent->next) {
        ^
/datasets/git/blame.c:1152:22: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ent' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (ent = sb->ent; ent; ent = ent->next) {
                            ^
/datasets/git/blame.c:1155:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, "%s in %s has negative refcnt %d\n",
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:1155:4: note: cast the expression to void to silence this warning
/datasets/git/blame.c:1162:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (baa)
                ^
                 {
/datasets/git/blame.c:1171:46: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void blame_coalesce(struct blame_scoreboard *sb)
                                             ^
/datasets/git/blame.c:1173:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct blame_entry *ent, *next;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:1173:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/blame.c:1173:22: warning: variable 'ent' is not initialized [cppcoreguidelines-init-variables]
        struct blame_entry *ent, *next;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:1173:28: warning: variable 'next' is not initialized [cppcoreguidelines-init-variables]
        struct blame_entry *ent, *next;
                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:1175:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (ent = sb->ent; ent && (next = ent->next); ent = next) {
        ^
/datasets/git/blame.c:1175:22: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ent' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (ent = sb->ent; ent && (next = ent->next); ent = next) {
                            ^
/datasets/git/blame.c:1190:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (sb->debug) /* sanity */
                      ^
                       {
/datasets/git/blame.c:1200:51: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static void queue_blames(struct blame_scoreboard *sb, struct blame_origin *porigin,
                                                  ^
/datasets/git/blame.c:1203:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (porigin->suspects)
                              ^
                               {
/datasets/git/blame.c:1206:24: warning: variable 'o' is not initialized [cppcoreguidelines-init-variables]
                struct blame_origin *o;
                                     ^
                                       = NULL
/datasets/git/blame.c:1206:24: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/blame.c:1207:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (o = get_blame_suspects(porigin->commit); o; o = o->next) {
                ^
/datasets/git/blame.c:1207:49: warning: backward branch (for loop) is ID-dependent due to variable reference to 'o' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (o = get_blame_suspects(porigin->commit); o; o = o->next) {
                                                              ^
/datasets/git/blame.c:1227:55: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int fill_blob_sha1_and_mode(struct repository *r,
                                                      ^
/datasets/git/blame.c:1230:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_null_oid(&origin->blob_oid))
                                            ^
                                             {
/datasets/git/blame.c:1232:101: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_tree_entry(r, &origin->commit->object.oid, origin->path, &origin->blob_oid, &origin->mode))
                                                                                                           ^
                                                                                                            {
/datasets/git/blame.c:1234:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oid_object_info(r, &origin->blob_oid, NULL) != OBJ_BLOB)
                                                                    ^
                                                                     {
/datasets/git/blame.c:1243:8: warning: accessing fields in struct 'blame_bloom_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct blame_bloom_data {
       ^
/datasets/git/blame.c:1243:8: note: use "__attribute__((aligned(32)))" to align struct 'blame_bloom_data' to 32 bytes
/datasets/git/blame.c:1255:12: warning: variable 'bloom_count_queries' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int bloom_count_queries = 0;
           ^
/datasets/git/blame.c:1256:12: warning: variable 'bloom_count_no' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int bloom_count_no = 0;
           ^
/datasets/git/blame.c:1257:50: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int maybe_changed_path(struct repository *r,
                                                 ^
/datasets/git/blame.c:1259:35: warning: parameter name 'bd' is too short, expected at least 3 characters [readability-identifier-length]
                              struct blame_bloom_data *bd)
                                                       ^
/datasets/git/blame.c:1261:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/blame.c:1261:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/blame.c:1262:23: warning: variable 'filter' is not initialized [cppcoreguidelines-init-variables]
        struct bloom_filter *filter;
                             ^
                                    = NULL
/datasets/git/blame.c:1264:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!bd)
                ^
                 {
/datasets/git/blame.c:1267:49: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (commit_graph_generation(origin->commit) == GENERATION_NUMBER_INFINITY)
                                                       ^
/datasets/git/./negotiator/../commit.h:14:38: note: expanded from macro 'GENERATION_NUMBER_INFINITY'
#define GENERATION_NUMBER_INFINITY ((1ULL << 63) - 1)
                                     ^       ~~
/datasets/git/blame.c:1267:76: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (commit_graph_generation(origin->commit) == GENERATION_NUMBER_INFINITY)
                                                                                  ^
                                                                                   {
/datasets/git/blame.c:1272:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!filter)
                    ^
                     {
/datasets/git/blame.c:1276:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < bd->nr; i++) {
        ^
/datasets/git/blame.c:1279:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                          bd->settings))
                                                        ^
                                                         {
/datasets/git/blame.c:1287:52: warning: parameter name 'bd' is too short, expected at least 3 characters [readability-identifier-length]
static void add_bloom_key(struct blame_bloom_data *bd,
                                                   ^
/datasets/git/blame.c:1290:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!bd)
                ^
                 {
/datasets/git/blame.c:1295:3: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                REALLOC_ARRAY(bd->keys, bd->alloc);
                ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/blame.c:1307:60: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static struct blame_origin *find_origin(struct repository *r,
                                                           ^
/datasets/git/blame.c:1310:31: warning: parameter name 'bd' is too short, expected at least 3 characters [readability-identifier-length]
                                        struct blame_bloom_data *bd)
                                                                 ^
/datasets/git/blame.c:1312:23: warning: variable 'porigin' is not initialized [cppcoreguidelines-init-variables]
        struct blame_origin *porigin;
                             ^
                                     = NULL
/datasets/git/blame.c:1317:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (porigin = get_blame_suspects(parent); porigin; porigin = porigin->next)
        ^
/datasets/git/blame.c:1317:45: warning: backward branch (for loop) is ID-dependent due to variable reference to 'porigin' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (porigin = get_blame_suspects(parent); porigin; porigin = porigin->next)
                                                   ^
/datasets/git/blame.c:1317:78: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (porigin = get_blame_suspects(parent); porigin; porigin = porigin->next)
                                                                                    ^
                                                                                     {
/datasets/git/blame.c:1338:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_ALL_MAGIC & ~PATHSPEC_LITERAL,
                       ^
/datasets/git/./pathspec.h:15:2: note: expanded from macro 'PATHSPEC_ALL_MAGIC'
        (PATHSPEC_FROMTOP       | \
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:1338:31: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_ALL_MAGIC & ~PATHSPEC_LITERAL,
                                            ^
/datasets/git/blame.c:1338:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_ALL_MAGIC & ~PATHSPEC_LITERAL,
                                             ^
/datasets/git/./pathspec.h:9:27: note: expanded from macro 'PATHSPEC_LITERAL'
#define PATHSPEC_LITERAL        (1<<2)
                                 ^
/datasets/git/blame.c:1339:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_LITERAL_PATH, "", paths);
                       ^
/datasets/git/./pathspec.h:78:32: note: expanded from macro 'PATHSPEC_LITERAL_PATH'
#define PATHSPEC_LITERAL_PATH (1<<6)
                               ^
/datasets/git/blame.c:1342:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_null_oid(&origin->commit->object.oid))
                                                     ^
                                                      {
/datasets/git/blame.c:1348:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                          &origin->commit->parents->item->object.oid))
                                                                      ^
                                                                       {
/datasets/git/blame.c:1351:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (compute_diff)
                                 ^
                                  {
/datasets/git/blame.c:1370:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/blame.c:1370:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/blame.c:1371:25: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct diff_filepair *p = NULL;
                                      ^
/datasets/git/blame.c:1372:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < diff_queued_diff.nr; i++) {
                ^
/datasets/git/blame.c:1373:16: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
                        const char *name;
                                    ^
                                         = NULL
/datasets/git/blame.c:1376:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!strcmp(name, origin->path))
                                                        ^
                                                         {
/datasets/git/blame.c:1379:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!p)
                       ^
                        {
/datasets/git/blame.c:1404:60: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static struct blame_origin *find_rename(struct repository *r,
                                                           ^
/datasets/git/blame.c:1407:31: warning: parameter name 'bd' is too short, expected at least 3 characters [readability-identifier-length]
                                        struct blame_bloom_data *bd)
                                                                 ^
/datasets/git/blame.c:1411:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/blame.c:1411:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/blame.c:1420:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_null_oid(&origin->commit->object.oid))
                                                     ^
                                                      {
/datasets/git/blame.c:1422:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/blame.c:1428:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < diff_queued_diff.nr; i++) {
        ^
/datasets/git/blame.c:1429:25: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct diff_filepair *p = diff_queued_diff.queue[i];
                                      ^
/datasets/git/blame.c:1449:22: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
        struct blame_entry *e = xmalloc(sizeof(*e));
                            ^
/datasets/git/blame.c:1450:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(e, src, sizeof(*e));
        ^~~~~~
/datasets/git/blame.c:1450:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(e, src, sizeof(*e));
        ^~~~~~
/datasets/git/blame.c:1453:10: warning: Assigned value is garbage or undefined [clang-analyzer-core.uninitialized.Assign]
        e->next = **queue;
                ^
/datasets/git/blame.c:2575:2: note: Loop condition is true.  Entering loop body
        while (commit) {
        ^
/datasets/git/blame.c:2580:10: note: Assuming 'suspect' is non-null
                while (suspect && !suspect->suspects)
                       ^~~~~~~
/datasets/git/blame.c:2580:10: note: Left side of '&&' is true
/datasets/git/blame.c:2580:21: note: Assuming field 'suspects' is non-null
                while (suspect && !suspect->suspects)
                                  ^~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:2580:3: note: Loop condition is false. Execution continues on line 2583
                while (suspect && !suspect->suspects)
                ^
/datasets/git/blame.c:2583:8: note: 'suspect' is non-null
                if (!suspect) {
                     ^~~~~~~
/datasets/git/blame.c:2583:3: note: Taking false branch
                if (!suspect) {
                ^
/datasets/git/blame.c:2588:10: note: Assuming 'commit' is equal to field 'commit'
                assert(commit == suspect->commit);
                       ^
/usr/include/assert.h:109:11: note: expanded from macro 'assert'
      if (expr)                                                         \
          ^~~~
/datasets/git/blame.c:2588:3: note: Taking true branch
                assert(commit == suspect->commit);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/blame.c:2596:7: note: Assuming field 'reverse' is 0
                if (sb->reverse ||
                    ^~~~~~~~~~~
/datasets/git/blame.c:2596:7: note: Left side of '||' is false
/datasets/git/blame.c:2597:8: note: Assuming the condition is true
                    (!(commit->object.flags & UNINTERESTING) &&
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:2597:8: note: Left side of '&&' is true
/datasets/git/blame.c:2598:10: note: Assuming the condition is false
                     !(revs->max_age != -1 && commit->date < revs->max_age)))
                       ^~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:2598:30: note: Left side of '&&' is false
                     !(revs->max_age != -1 && commit->date < revs->max_age)))
                                           ^
/datasets/git/blame.c:2596:3: note: Taking true branch
                if (sb->reverse ||
                ^
/datasets/git/blame.c:2599:4: note: Calling 'pass_blame'
                        pass_blame(sb, suspect, opt);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:2407:22: note: 'blames' declared without an initial value
        struct blame_entry *blames, **blametail = &blames;
                            ^~~~~~
/datasets/git/blame.c:2410:6: note: Assuming 'num_sg' is not equal to 0
        if (!num_sg)
            ^~~~~~~
/datasets/git/blame.c:2410:2: note: Taking false branch
        if (!num_sg)
        ^
/datasets/git/blame.c:2412:11: note: Assuming the condition is false
        else if (num_sg < ARRAY_SIZE(sg_buf))
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:2412:7: note: Taking false branch
        else if (num_sg < ARRAY_SIZE(sg_buf))
             ^
/datasets/git/blame.c:2421:17: note: Assuming the condition is false
        for (pass = 0; pass < 2 - sb->no_whole_file_rename; pass++) {
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:2421:2: note: Loop condition is false. Execution continues on line 2455
        for (pass = 0; pass < 2 - sb->no_whole_file_rename; pass++) {
        ^
/datasets/git/blame.c:2457:7: note: 'i' is < 'num_sg'
             i < num_sg && sg;
             ^
/datasets/git/blame.c:2457:7: note: Left side of '&&' is true
/datasets/git/blame.c:2456:2: note: Loop condition is true.  Entering loop body
        for (i = 0, sg = first_scapegoat(revs, commit, sb->reverse);
        ^
/datasets/git/blame.c:2460:7: note: Assuming 'porigin' is non-null
                if (!porigin)
                    ^~~~~~~~
/datasets/git/blame.c:2460:3: note: Taking false branch
                if (!porigin)
                ^
/datasets/git/blame.c:2462:7: note: Assuming field 'previous' is non-null
                if (!origin->previous) {
                    ^~~~~~~~~~~~~~~~~
/datasets/git/blame.c:2462:3: note: Taking false branch
                if (!origin->previous) {
                ^
/datasets/git/blame.c:2467:7: note: Assuming field 'suspects' is non-null
                if (!origin->suspects)
                    ^~~~~~~~~~~~~~~~~
/datasets/git/blame.c:2467:3: note: Taking false branch
                if (!origin->suspects)
                ^
/datasets/git/blame.c:2457:7: note: 'i' is < 'num_sg'
             i < num_sg && sg;
             ^
/datasets/git/blame.c:2457:7: note: Left side of '&&' is true
/datasets/git/blame.c:2456:2: note: Loop condition is false. Execution continues on line 2474
        for (i = 0, sg = first_scapegoat(revs, commit, sb->reverse);
        ^
/datasets/git/blame.c:2474:6: note: Assuming the condition is false
        if (oidset_contains(&sb->ignore_list, &commit->object.oid)) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:2474:2: note: Taking false branch
        if (oidset_contains(&sb->ignore_list, &commit->object.oid)) {
        ^
/datasets/git/blame.c:2497:6: note: Assuming the condition is false
        if (opt & PICKAXE_BLAME_MOVE) {
            ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:2497:2: note: Taking false branch
        if (opt & PICKAXE_BLAME_MOVE) {
        ^
/datasets/git/blame.c:2516:6: note: Assuming the condition is true
        if (opt & PICKAXE_BLAME_COPY) {
            ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:2516:2: note: Taking true branch
        if (opt & PICKAXE_BLAME_COPY) {
        ^
/datasets/git/blame.c:2517:7: note: Assuming field 'copy_score' is <= field 'move_score'
                if (sb->copy_score > sb->move_score)
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:2517:3: note: Taking false branch
                if (sb->copy_score > sb->move_score)
                ^
/datasets/git/blame.c:2519:12: note: Assuming field 'copy_score' is >= field 'move_score'
                else if (sb->copy_score < sb->move_score) {
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:2519:8: note: Taking false branch
                else if (sb->copy_score < sb->move_score) {
                     ^
/datasets/git/blame.c:2524:16: note: Field 'suspects' is non-null
                if (!origin->suspects)
                             ^
/datasets/git/blame.c:2524:3: note: Taking false branch
                if (!origin->suspects)
                ^
/datasets/git/blame.c:2528:8: note: 'i' is < 'num_sg'
                     i < num_sg && sg;
                     ^
/datasets/git/blame.c:2528:8: note: Left side of '&&' is true
/datasets/git/blame.c:2527:3: note: Loop condition is true.  Entering loop body
                for (i = 0, sg = first_scapegoat(revs, commit, sb->reverse);
                ^
/datasets/git/blame.c:2531:4: note: Calling 'find_copy_in_parent'
                        find_copy_in_parent(sb, &blametail, &toosmall,
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:2233:7: note: 'unblamed' is non-null
        if (!unblamed)
             ^~~~~~~~
/datasets/git/blame.c:2233:2: note: Taking false branch
        if (!unblamed)
        ^
/datasets/git/blame.c:2249:7: note: Assuming the condition is false
        if ((opt & PICKAXE_BLAME_COPY_HARDEST)
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:2249:6: note: Left side of '||' is false
        if ((opt & PICKAXE_BLAME_COPY_HARDEST)
            ^
/datasets/git/blame.c:2250:11: note: Assuming the condition is false
            || ((opt & PICKAXE_BLAME_COPY_HARDER)
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:2251:3: note: Left side of '&&' is false
                && (!porigin || strcmp(target->path, porigin->path))))
                ^
/datasets/git/blame.c:2254:2: note: Taking false branch
        if (is_null_oid(&target->commit->object.oid))
        ^
/datasets/git/blame.c:2261:6: note: Assuming field 'find_copies_harder' is not equal to 0
        if (!diff_opts.flags.find_copies_harder)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:2261:2: note: Taking false branch
        if (!diff_opts.flags.find_copies_harder)
        ^
/datasets/git/blame.c:2268:15: note: Assuming 'i' is >= field 'nr'
                for (i = 0; i < diff_queued_diff.nr; i++) {
                            ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:2268:3: note: Loop condition is false. Execution continues on line 2300
                for (i = 0; i < diff_queued_diff.nr; i++) {
                ^
/datasets/git/blame.c:2300:3: note: Loop condition is true.  Entering loop body
                for (j = 0; j < num_ents; j++) {
                ^
/datasets/git/blame.c:2302:8: note: Assuming field 'suspect' is non-null
                        if (split[1].suspect &&
                            ^~~~~~~~~~~~~~~~
/datasets/git/blame.c:2302:8: note: Left side of '&&' is true
/datasets/git/blame.c:2303:8: note: Assuming the condition is true
                            sb->copy_score < blame_entry_score(sb, &split[1])) {
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:2302:4: note: Taking true branch
                        if (split[1].suspect &&
                        ^
/datasets/git/blame.c:2304:5: note: Calling 'split_blame'
                                split_blame(blamed, &unblamedtail, split,
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:1552:6: note: Assuming field 'suspect' is non-null
        if (split[0].suspect && split[2].suspect) {
            ^~~~~~~~~~~~~~~~
/datasets/git/blame.c:1552:6: note: Left side of '&&' is true
/datasets/git/blame.c:1552:26: note: Assuming field 'suspect' is null
        if (split[0].suspect && split[2].suspect) {
                                ^~~~~~~~~~~~~~~~
/datasets/git/blame.c:1552:2: note: Taking false branch
        if (split[0].suspect && split[2].suspect) {
        ^
/datasets/git/blame.c:1562:21: note: Field 'suspect' is non-null
        else if (!split[0].suspect && !split[2].suspect)
                           ^
/datasets/git/blame.c:1562:29: note: Left side of '&&' is false
        else if (!split[0].suspect && !split[2].suspect)
                                   ^
/datasets/git/blame.c:1568:20: note: Field 'suspect' is non-null
        else if (split[0].suspect) {
                          ^
/datasets/git/blame.c:1568:7: note: Taking true branch
        else if (split[0].suspect) {
             ^
/datasets/git/blame.c:1571:3: note: Calling 'add_blame_entry'
                add_blame_entry(blamed, &split[1]);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:1453:10: note: Assigned value is garbage or undefined
        e->next = **queue;
                ^ ~~~~~~~
/datasets/git/blame.c:1468:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(dst, src, sizeof(*src));
        ^~~~~~
/datasets/git/blame.c:1468:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(dst, src, sizeof(*src));
        ^~~~~~
/datasets/git/blame.c:1469:12: warning: Assigned value is garbage or undefined [clang-analyzer-core.uninitialized.Assign]
        dst->next = **queue;
                  ^
/datasets/git/blame.c:2575:2: note: Loop condition is true.  Entering loop body
        while (commit) {
        ^
/datasets/git/blame.c:2580:10: note: Assuming 'suspect' is non-null
                while (suspect && !suspect->suspects)
                       ^~~~~~~
/datasets/git/blame.c:2580:10: note: Left side of '&&' is true
/datasets/git/blame.c:2580:21: note: Assuming field 'suspects' is non-null
                while (suspect && !suspect->suspects)
                                  ^~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:2580:3: note: Loop condition is false. Execution continues on line 2583
                while (suspect && !suspect->suspects)
                ^
/datasets/git/blame.c:2583:8: note: 'suspect' is non-null
                if (!suspect) {
                     ^~~~~~~
/datasets/git/blame.c:2583:3: note: Taking false branch
                if (!suspect) {
                ^
/datasets/git/blame.c:2588:10: note: Assuming 'commit' is equal to field 'commit'
                assert(commit == suspect->commit);
                       ^
/usr/include/assert.h:109:11: note: expanded from macro 'assert'
      if (expr)                                                         \
          ^~~~
/datasets/git/blame.c:2588:3: note: Taking true branch
                assert(commit == suspect->commit);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/blame.c:2596:7: note: Assuming field 'reverse' is 0
                if (sb->reverse ||
                    ^~~~~~~~~~~
/datasets/git/blame.c:2596:7: note: Left side of '||' is false
/datasets/git/blame.c:2597:8: note: Assuming the condition is true
                    (!(commit->object.flags & UNINTERESTING) &&
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:2597:8: note: Left side of '&&' is true
/datasets/git/blame.c:2598:10: note: Assuming the condition is false
                     !(revs->max_age != -1 && commit->date < revs->max_age)))
                       ^~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:2598:30: note: Left side of '&&' is false
                     !(revs->max_age != -1 && commit->date < revs->max_age)))
                                           ^
/datasets/git/blame.c:2596:3: note: Taking true branch
                if (sb->reverse ||
                ^
/datasets/git/blame.c:2599:4: note: Calling 'pass_blame'
                        pass_blame(sb, suspect, opt);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:2407:22: note: 'blames' declared without an initial value
        struct blame_entry *blames, **blametail = &blames;
                            ^~~~~~
/datasets/git/blame.c:2410:6: note: Assuming 'num_sg' is not equal to 0
        if (!num_sg)
            ^~~~~~~
/datasets/git/blame.c:2410:2: note: Taking false branch
        if (!num_sg)
        ^
/datasets/git/blame.c:2412:11: note: Assuming the condition is false
        else if (num_sg < ARRAY_SIZE(sg_buf))
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:2412:7: note: Taking false branch
        else if (num_sg < ARRAY_SIZE(sg_buf))
             ^
/datasets/git/blame.c:2421:17: note: Assuming the condition is false
        for (pass = 0; pass < 2 - sb->no_whole_file_rename; pass++) {
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:2421:2: note: Loop condition is false. Execution continues on line 2455
        for (pass = 0; pass < 2 - sb->no_whole_file_rename; pass++) {
        ^
/datasets/git/blame.c:2457:7: note: 'i' is < 'num_sg'
             i < num_sg && sg;
             ^
/datasets/git/blame.c:2457:7: note: Left side of '&&' is true
/datasets/git/blame.c:2456:2: note: Loop condition is true.  Entering loop body
        for (i = 0, sg = first_scapegoat(revs, commit, sb->reverse);
        ^
/datasets/git/blame.c:2460:7: note: Assuming 'porigin' is non-null
                if (!porigin)
                    ^~~~~~~~
/datasets/git/blame.c:2460:3: note: Taking false branch
                if (!porigin)
                ^
/datasets/git/blame.c:2462:7: note: Assuming field 'previous' is non-null
                if (!origin->previous) {
                    ^~~~~~~~~~~~~~~~~
/datasets/git/blame.c:2462:3: note: Taking false branch
                if (!origin->previous) {
                ^
/datasets/git/blame.c:2467:7: note: Assuming field 'suspects' is non-null
                if (!origin->suspects)
                    ^~~~~~~~~~~~~~~~~
/datasets/git/blame.c:2467:3: note: Taking false branch
                if (!origin->suspects)
                ^
/datasets/git/blame.c:2457:7: note: 'i' is < 'num_sg'
             i < num_sg && sg;
             ^
/datasets/git/blame.c:2457:7: note: Left side of '&&' is true
/datasets/git/blame.c:2456:2: note: Loop condition is false. Execution continues on line 2474
        for (i = 0, sg = first_scapegoat(revs, commit, sb->reverse);
        ^
/datasets/git/blame.c:2474:6: note: Assuming the condition is false
        if (oidset_contains(&sb->ignore_list, &commit->object.oid)) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:2474:2: note: Taking false branch
        if (oidset_contains(&sb->ignore_list, &commit->object.oid)) {
        ^
/datasets/git/blame.c:2497:6: note: Assuming the condition is false
        if (opt & PICKAXE_BLAME_MOVE) {
            ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:2497:2: note: Taking false branch
        if (opt & PICKAXE_BLAME_MOVE) {
        ^
/datasets/git/blame.c:2516:6: note: Assuming the condition is true
        if (opt & PICKAXE_BLAME_COPY) {
            ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:2516:2: note: Taking true branch
        if (opt & PICKAXE_BLAME_COPY) {
        ^
/datasets/git/blame.c:2517:7: note: Assuming field 'copy_score' is <= field 'move_score'
                if (sb->copy_score > sb->move_score)
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:2517:3: note: Taking false branch
                if (sb->copy_score > sb->move_score)
                ^
/datasets/git/blame.c:2519:12: note: Assuming field 'copy_score' is >= field 'move_score'
                else if (sb->copy_score < sb->move_score) {
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:2519:8: note: Taking false branch
                else if (sb->copy_score < sb->move_score) {
                     ^
/datasets/git/blame.c:2524:16: note: Field 'suspects' is non-null
                if (!origin->suspects)
                             ^
/datasets/git/blame.c:2524:3: note: Taking false branch
                if (!origin->suspects)
                ^
/datasets/git/blame.c:2528:8: note: 'i' is < 'num_sg'
                     i < num_sg && sg;
                     ^
/datasets/git/blame.c:2528:8: note: Left side of '&&' is true
/datasets/git/blame.c:2527:3: note: Loop condition is true.  Entering loop body
                for (i = 0, sg = first_scapegoat(revs, commit, sb->reverse);
                ^
/datasets/git/blame.c:2531:4: note: Calling 'find_copy_in_parent'
                        find_copy_in_parent(sb, &blametail, &toosmall,
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:2233:7: note: 'unblamed' is non-null
        if (!unblamed)
             ^~~~~~~~
/datasets/git/blame.c:2233:2: note: Taking false branch
        if (!unblamed)
        ^
/datasets/git/blame.c:2249:7: note: Assuming the condition is false
        if ((opt & PICKAXE_BLAME_COPY_HARDEST)
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:2249:6: note: Left side of '||' is false
        if ((opt & PICKAXE_BLAME_COPY_HARDEST)
            ^
/datasets/git/blame.c:2250:11: note: Assuming the condition is false
            || ((opt & PICKAXE_BLAME_COPY_HARDER)
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:2251:3: note: Left side of '&&' is false
                && (!porigin || strcmp(target->path, porigin->path))))
                ^
/datasets/git/blame.c:2254:2: note: Taking false branch
        if (is_null_oid(&target->commit->object.oid))
        ^
/datasets/git/blame.c:2261:6: note: Assuming field 'find_copies_harder' is not equal to 0
        if (!diff_opts.flags.find_copies_harder)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:2261:2: note: Taking false branch
        if (!diff_opts.flags.find_copies_harder)
        ^
/datasets/git/blame.c:2268:15: note: Assuming 'i' is >= field 'nr'
                for (i = 0; i < diff_queued_diff.nr; i++) {
                            ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:2268:3: note: Loop condition is false. Execution continues on line 2300
                for (i = 0; i < diff_queued_diff.nr; i++) {
                ^
/datasets/git/blame.c:2300:3: note: Loop condition is true.  Entering loop body
                for (j = 0; j < num_ents; j++) {
                ^
/datasets/git/blame.c:2302:8: note: Assuming field 'suspect' is non-null
                        if (split[1].suspect &&
                            ^~~~~~~~~~~~~~~~
/datasets/git/blame.c:2302:8: note: Left side of '&&' is true
/datasets/git/blame.c:2303:8: note: Assuming the condition is true
                            sb->copy_score < blame_entry_score(sb, &split[1])) {
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:2302:4: note: Taking true branch
                        if (split[1].suspect &&
                        ^
/datasets/git/blame.c:2304:5: note: Calling 'split_blame'
                                split_blame(blamed, &unblamedtail, split,
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:1552:6: note: Assuming field 'suspect' is null
        if (split[0].suspect && split[2].suspect) {
            ^~~~~~~~~~~~~~~~
/datasets/git/blame.c:1552:23: note: Left side of '&&' is false
        if (split[0].suspect && split[2].suspect) {
                             ^
/datasets/git/blame.c:1562:21: note: Field 'suspect' is null
        else if (!split[0].suspect && !split[2].suspect)
                           ^
/datasets/git/blame.c:1562:11: note: Left side of '&&' is true
        else if (!split[0].suspect && !split[2].suspect)
                 ^
/datasets/git/blame.c:1562:32: note: Assuming field 'suspect' is null
        else if (!split[0].suspect && !split[2].suspect)
                                      ^~~~~~~~~~~~~~~~~
/datasets/git/blame.c:1562:7: note: Taking true branch
        else if (!split[0].suspect && !split[2].suspect)
             ^
/datasets/git/blame.c:1567:3: note: Calling 'dup_entry'
                dup_entry(blamed, e, &split[1]);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:1469:12: note: Assigned value is garbage or undefined
        dst->next = **queue;
                  ^ ~~~~~~~
/datasets/git/blame.c:1474:53: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
const char *blame_nth_line(struct blame_scoreboard *sb, long lno)
                                                    ^
/datasets/git/blame.c:1494:26: warning: parameter name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                          struct blame_entry *e,
                                              ^
/datasets/git/blame.c:1495:16: warning: 2 adjacent parameters of 'split_overlap' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                          int tlno, int plno, int same,
                                    ^~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:1495:20: note: the first parameter in the range is 'plno'
                          int tlno, int plno, int same,
                                        ^~~~
/datasets/git/blame.c:1495:30: note: the last parameter in the range is 'same'
                          int tlno, int plno, int same,
                                                  ^~~~
/datasets/git/blame.c:1498:6: warning: variable 'chunk_end_lno' is not initialized [cppcoreguidelines-init-variables]
        int chunk_end_lno;
            ^
                          = 0
/datasets/git/blame.c:1499:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/blame.c:1499:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/blame.c:1500:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(split, 0, sizeof(struct blame_entry [3]));
        ^~~~~~
/datasets/git/blame.c:1500:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(split, 0, sizeof(struct blame_entry [3]));
        ^~~~~~
/datasets/git/blame.c:1502:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < 3; i++) {
        ^
/datasets/git/blame.c:1529:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/blame.c:1537:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (split[1].num_lines < 1)
                                   ^
                                    {
/datasets/git/blame.c:1550:24: warning: parameter name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                        struct blame_entry *e)
                                            ^
/datasets/git/blame.c:1562:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!split[0].suspect && !split[2].suspect)
                                                        ^
                                                         {
/datasets/git/blame.c:1586:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/blame.c:1586:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/blame.c:1602:42: note: inferred assignment of ID-dependent value from ID-dependent variable next [altera-id-dependent-backward-branch]
static struct blame_entry *reverse_blame(struct blame_entry *head,
                                         ^
/datasets/git/blame.c:1588:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < 3; i++)
        ^
/datasets/git/blame.c:1588:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < 3; i++)
                               ^
                                {
/datasets/git/blame.c:1605:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (head) {
        ^
/datasets/git/blame.c:1605:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'head' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (head) {
               ^
/datasets/git/blame.c:1621:63: warning: parameter name 'e' is too short, expected at least 3 characters [readability-identifier-length]
static struct blame_entry *split_blame_at(struct blame_entry *e, int len,
                                                              ^
/datasets/git/blame.c:1624:22: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
        struct blame_entry *n = xcalloc(1, sizeof(struct blame_entry));
                            ^
/datasets/git/blame.c:1637:8: warning: accessing fields in struct 'blame_line_tracker' is inefficient due to poor alignment; currently aligned to 4 bytes, but recommended alignment is 8 bytes [altera-struct-pack-align]
struct blame_line_tracker {
       ^
/datasets/git/blame.c:1637:8: note: use "__attribute__((aligned(8)))" to align struct 'blame_line_tracker' to 8 bytes
/datasets/git/blame.c:1650:36: warning: 2 adjacent parameters of 'scan_parent_range' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                             struct fingerprint *t_fps, int t_idx,
                                                        ^~~~~~~~~~
/datasets/git/blame.c:1650:40: note: the first parameter in the range is 't_idx'
                             struct fingerprint *t_fps, int t_idx,
                                                            ^~~~~
/datasets/git/blame.c:1651:13: note: the last parameter in the range is 'from'
                             int from, int nr_lines)
                                 ^~~~
/datasets/git/blame.c:1653:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int sim, p_idx;
        ^~~~~~~~~~~~~~~
/datasets/git/blame.c:1653:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/blame.c:1653:6: warning: variable 'sim' is not initialized [cppcoreguidelines-init-variables]
        int sim, p_idx;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:1653:11: warning: variable 'p_idx' is not initialized [cppcoreguidelines-init-variables]
        int sim, p_idx;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:1658:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p_idx = from; p_idx < from + nr_lines; p_idx++) {
        ^
/datasets/git/blame.c:1658:21: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p_idx' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p_idx = from; p_idx < from + nr_lines; p_idx++) {
                           ^
/datasets/git/blame.c:1660:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (sim < best_sim_val)
                                       ^
                                        {
/datasets/git/blame.c:1664:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    abs(best_sim_idx - t_idx) < abs(p_idx - t_idx))
                                                                   ^
                                                                    {
/datasets/git/blame.c:1680:20: warning: 2 adjacent parameters of 'guess_line_blames' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                              int tlno, int offset, int same, int parent_len,
                                        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:1680:24: note: the first parameter in the range is 'offset'
                              int tlno, int offset, int same, int parent_len,
                                            ^~~~~~
/datasets/git/blame.c:1680:36: note: the last parameter in the range is 'same'
                              int tlno, int offset, int same, int parent_len,
                                                        ^~~~
/datasets/git/blame.c:1683:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, best_idx, target_idx;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:1683:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, best_idx, target_idx;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:1683:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/blame.c:1683:9: warning: variable 'best_idx' is not initialized [cppcoreguidelines-init-variables]
        int i, best_idx, target_idx;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:1683:19: warning: variable 'target_idx' is not initialized [cppcoreguidelines-init-variables]
        int i, best_idx, target_idx;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:1685:7: warning: variable 'fuzzy_matches' is not initialized [cppcoreguidelines-init-variables]
        int *fuzzy_matches;
             ^
                           = NULL
/datasets/git/blame.c:1690:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < same - tlno; i++) {
        ^
/datasets/git/blame.c:1721:52: warning: parameter name 'e' is too short, expected at least 3 characters [readability-identifier-length]
static void ignore_blame_entry(struct blame_entry *e,
                                                   ^
/datasets/git/blame.c:1723:11: warning: 2 adjacent parameters of 'ignore_blame_entry' of similar type ('struct blame_entry **') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                               struct blame_entry **diffp,
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:1723:32: note: the first parameter in the range is 'diffp'
                               struct blame_entry **diffp,
                                                    ^~~~~
/datasets/git/blame.c:1724:32: note: the last parameter in the range is 'ignoredp'
                               struct blame_entry **ignoredp,
                                                    ^~~~~~~~
/datasets/git/blame.c:1727:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int entry_len, nr_lines, i;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:1727:2: note: inferred assignment of ID-dependent value from ID-dependent member num_lines [altera-id-dependent-backward-branch]
/datasets/git/blame.c:1727:6: warning: variable 'entry_len' is not initialized [cppcoreguidelines-init-variables]
        int entry_len, nr_lines, i;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:1727:17: warning: variable 'nr_lines' is not initialized [cppcoreguidelines-init-variables]
        int entry_len, nr_lines, i;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:1727:27: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int entry_len, nr_lines, i;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:1727:27: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/blame.c:1736:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr_lines; i++) {
        ^
/datasets/git/blame.c:1736:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'nr_lines' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < nr_lines; i++) {
                    ^
/datasets/git/blame.c:1787:25: warning: 2 adjacent parameters of 'blame_chunk' of similar type ('struct blame_entry ***') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void blame_chunk(struct blame_entry ***dstq, struct blame_entry ***srcq,
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:1787:47: note: the first parameter in the range is 'dstq'
static void blame_chunk(struct blame_entry ***dstq, struct blame_entry ***srcq,
                                              ^~~~
/datasets/git/blame.c:1787:75: note: the last parameter in the range is 'srcq'
static void blame_chunk(struct blame_entry ***dstq, struct blame_entry ***srcq,
                                                                          ^~~~
/datasets/git/blame.c:1792:22: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
        struct blame_entry *e = **srcq;
                            ^
/datasets/git/blame.c:1793:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct blame_entry *samep = NULL, *diffp = NULL, *ignoredp = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:1792:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct blame_entry *e = **srcq;
        ^
/datasets/git/blame.c:1796:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (e && e->s_lno < tlno) {
        ^
/datasets/git/blame.c:1792:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct blame_entry *e = **srcq;
        ^
/datasets/git/blame.c:1796:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'e' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (e && e->s_lno < tlno) {
               ^
/datasets/git/blame.c:1805:24: warning: variable 'n' is not initialized [cppcoreguidelines-init-variables]
                        struct blame_entry *n;
                                            ^
                                              = NULL
/datasets/git/blame.c:1805:24: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/blame.c:1811:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/blame.c:1850:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (e && e->s_lno < same) {
        ^
/datasets/git/blame.c:1850:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'e' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (e && e->s_lno < same) {
               ^
/datasets/git/blame.c:1861:24: warning: variable 'n' is not initialized [cppcoreguidelines-init-variables]
                        struct blame_entry *n;
                                            ^
                                              = NULL
/datasets/git/blame.c:1861:24: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/blame.c:1894:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (diffp)
                  ^
                   {
/datasets/git/blame.c:1898:8: warning: accessing fields in struct 'blame_chunk_cb_data' is inefficient due to padding; only needs 44 bytes but is using 48 bytes [altera-struct-pack-align]
struct blame_chunk_cb_data {
       ^
/datasets/git/blame.c:1898:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'blame_chunk_cb_data'
/datasets/git/blame.c:1898:8: warning: accessing fields in struct 'blame_chunk_cb_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct blame_chunk_cb_data {
       ^
/datasets/git/blame.c:1898:8: note: use "__attribute__((aligned(64)))" to align struct 'blame_chunk_cb_data' to 64 bytes
/datasets/git/blame.c:1911:30: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
        struct blame_chunk_cb_data *d = data;
                                    ^
/datasets/git/blame.c:1912:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (start_a - start_b != d->offset)
                                           ^
                                            {
/datasets/git/blame.c:1914:34: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        blame_chunk(&d->dstq, &d->srcq, start_b, start_a - start_b,
                                        ^
/datasets/git/blame.c:1914:43: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        blame_chunk(&d->dstq, &d->srcq, start_b, start_a - start_b,
                                                 ^
/datasets/git/blame.c:1915:7: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                    start_b + count_b, count_a, d->parent, d->target,
                    ^
/datasets/git/blame.c:1915:26: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                    start_b + count_b, count_a, d->parent, d->target,
                                       ^
/datasets/git/blame.c:1926:59: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static void pass_blame_to_parent(struct blame_scoreboard *sb,
                                                          ^
/datasets/git/blame.c:1930:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        mmfile_t file_p, file_o;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:1931:29: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
        struct blame_chunk_cb_data d;
                                   ^
/datasets/git/blame.c:1934:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!target->suspects)
                              ^
                               {
/datasets/git/blame.c:1949:69: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (diff_hunks(&file_p, &file_o, blame_chunk_cb, &d, sb->xdl_opts))
                                                                           ^
                                                                            {
/datasets/git/blame.c:1954:41: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        blame_chunk(&d.dstq, &d.srcq, INT_MAX, d.offset, INT_MAX, 0,
                                               ^
/datasets/git/blame.c:1957:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ignore_diffs)
                         ^
                          {
/datasets/git/blame.c:1961:2: warning: redundant return statement at the end of a function with a void return type [readability-redundant-control-flow]
        return;
~~~~~~~~^~~~~~~
/datasets/git/blame.c:1973:53: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
unsigned blame_entry_score(struct blame_scoreboard *sb, struct blame_entry *e)
                                                    ^
/datasets/git/blame.c:1973:77: warning: parameter name 'e' is too short, expected at least 3 characters [readability-identifier-length]
unsigned blame_entry_score(struct blame_scoreboard *sb, struct blame_entry *e)
                                                                            ^
/datasets/git/blame.c:1975:11: warning: variable 'score' is not initialized [cppcoreguidelines-init-variables]
        unsigned score;
                 ^
                       = 0
/datasets/git/blame.c:1976:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *cp, *ep;
        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:1976:14: warning: variable 'cp' is not initialized [cppcoreguidelines-init-variables]
        const char *cp, *ep;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:1976:14: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/blame.c:1976:19: warning: variable 'ep' is not initialized [cppcoreguidelines-init-variables]
        const char *cp, *ep;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:1976:19: warning: variable name 'ep' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/blame.c:1978:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (e->score)
                     ^
                      {
/datasets/git/blame.c:1984:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (cp < ep) {
        ^
/datasets/git/blame.c:1984:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'cp' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (cp < ep) {
               ^
/datasets/git/blame.c:1985:12: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
                unsigned ch = *((unsigned char *)cp);
                         ^
/datasets/git/blame.c:1986:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (isalnum(ch))
                    ^
/datasets/git/./git-compat-util.h:1220:20: note: expanded from macro 'isalnum'
#define isalnum(x) sane_istest(x,GIT_ALPHA | GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/blame.c:1986:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (isalnum(ch))
                                ^
                                 {
/datasets/git/blame.c:2000:59: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static void copy_split_if_better(struct blame_scoreboard *sb,
                                                          ^
/datasets/git/blame.c:2004:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/blame.c:2004:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/blame.c:2006:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!potential[1].suspect)
                                  ^
                                   {
/datasets/git/blame.c:2010:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    blame_entry_score(sb, &best_so_far[1]))
                                                           ^
                                                            {
/datasets/git/blame.c:2014:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < 3; i++)
        ^
/datasets/git/blame.c:2014:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < 3; i++)
                               ^
                                {
/datasets/git/blame.c:2017:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(best_so_far, potential, sizeof(struct blame_entry[3]));
        ^~~~~~
/datasets/git/blame.c:2017:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(best_so_far, potential, sizeof(struct blame_entry[3]));
        ^~~~~~
/datasets/git/blame.c:2035:51: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static void handle_split(struct blame_scoreboard *sb,
                                                  ^
/datasets/git/blame.c:2041:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ent->num_lines <= tlno)
                                   ^
                                    {
/datasets/git/blame.c:2053:8: warning: accessing fields in struct 'handle_split_cb_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct handle_split_cb_data {
       ^
/datasets/git/blame.c:2053:8: note: use "__attribute__((aligned(64)))" to align struct 'handle_split_cb_data' to 64 bytes
/datasets/git/blame.c:2062:42: warning: 2 adjacent parameters of 'handle_split_cb' of similar type ('long') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int handle_split_cb(long start_a, long count_a,
                                         ^~~~~~~~~~~~~
/datasets/git/blame.c:2062:47: note: the first parameter in the range is 'count_a'
static int handle_split_cb(long start_a, long count_a,
                                              ^~~~~~~
/datasets/git/blame.c:2063:12: note: the last parameter in the range is 'start_b'
                           long start_b, long count_b, void *data)
                                ^~~~~~~
/datasets/git/blame.c:2065:31: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
        struct handle_split_cb_data *d = data;
                                     ^
/datasets/git/blame.c:2066:30: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        handle_split(d->sb, d->ent, d->tlno, d->plno, start_b, d->parent,
                                    ^
/datasets/git/blame.c:2066:39: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        handle_split(d->sb, d->ent, d->tlno, d->plno, start_b, d->parent,
                                             ^
/datasets/git/blame.c:2066:48: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        handle_split(d->sb, d->ent, d->tlno, d->plno, start_b, d->parent,
                                                      ^
/datasets/git/blame.c:2078:56: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static void find_copy_in_blob(struct blame_scoreboard *sb,
                                                       ^
/datasets/git/blame.c:2084:14: warning: variable 'cp' is not initialized [cppcoreguidelines-init-variables]
        const char *cp;
                    ^
                       = NULL
/datasets/git/blame.c:2084:14: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/blame.c:2086:30: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
        struct handle_split_cb_data d;
                                    ^
/datasets/git/blame.c:2088:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&d, 0, sizeof(d));
        ^~~~~~
/datasets/git/blame.c:2088:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&d, 0, sizeof(d));
        ^~~~~~
/datasets/git/blame.c:2101:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(split, 0, sizeof(struct blame_entry [3]));
        ^~~~~~
/datasets/git/blame.c:2101:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(split, 0, sizeof(struct blame_entry [3]));
        ^~~~~~
/datasets/git/blame.c:2102:69: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (diff_hunks(file_p, &file_o, handle_split_cb, &d, sb->xdl_opts))
                                                                           ^
                                                                            {
/datasets/git/blame.c:2106:24: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        handle_split(sb, ent, d.tlno, d.plno, ent->num_lines, parent, split);
                              ^
/datasets/git/blame.c:2106:32: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        handle_split(sb, ent, d.tlno, d.plno, ent->num_lines, parent, split);
                                      ^
/datasets/git/blame.c:2114:67: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static struct blame_entry **filter_small(struct blame_scoreboard *sb,
                                                                  ^
/datasets/git/blame.c:2119:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct blame_entry *p = *source;
        ^
/datasets/git/blame.c:2115:7: warning: 2 adjacent parameters of 'filter_small' of similar type ('struct blame_entry **') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                         struct blame_entry **small,
                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:2115:28: note: the first parameter in the range is 'small'
                                         struct blame_entry **small,
                                                              ^~~~~
/datasets/git/blame.c:2116:28: note: the last parameter in the range is 'source'
                                         struct blame_entry **source,
                                                              ^~~~~~
/datasets/git/blame.c:2119:22: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        struct blame_entry *p = *source;
                            ^
/datasets/git/blame.c:2121:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (p) {
        ^
/datasets/git/blame.c:2121:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (p) {
               ^
/datasets/git/blame.c:2141:58: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static void find_move_in_parent(struct blame_scoreboard *sb,
                                                         ^
/datasets/git/blame.c:2144:5: warning: 2 adjacent parameters of 'find_move_in_parent' of similar type ('struct blame_origin *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                struct blame_origin *target,
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:2144:26: note: the first parameter in the range is 'target'
                                struct blame_origin *target,
                                                     ^~~~~~
/datasets/git/blame.c:2145:26: note: the last parameter in the range is 'parent'
                                struct blame_origin *parent)
                                                     ^~~~~~
/datasets/git/blame.c:2147:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct blame_entry *e, split[3];
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:2147:22: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct blame_entry *e, split[3];
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:2147:22: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/blame.c:2147:2: note: inferred assignment of ID-dependent value from ID-dependent variable unblamed [altera-id-dependent-backward-branch]
        struct blame_entry *e, split[3];
        ^
/datasets/git/blame.c:2152:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!unblamed)
                      ^
                       {
/datasets/git/blame.c:2157:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!file_p.ptr)
                        ^
                         {
/datasets/git/blame.c:2167:23: warning: variable 'next' is not initialized [cppcoreguidelines-init-variables]
                struct blame_entry *next;
                                    ^
                                         = NULL
/datasets/git/blame.c:2168:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (e = unblamed; e; e = next) {
                ^
/datasets/git/blame.c:2168:22: warning: backward branch (for loop) is ID-dependent due to variable reference to 'e' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (e = unblamed; e; e = next) {
                                   ^
/datasets/git/blame.c:2182:11: warning: backward branch (do loop) is ID-dependent due to variable reference to 'unblamed' and may cause performance degradation [altera-id-dependent-backward-branch]
        } while (unblamed);
                 ^
/datasets/git/blame.c:2186:8: warning: accessing fields in struct 'blame_list' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct blame_list {
       ^
/datasets/git/blame.c:2186:8: note: use "__attribute__((aligned(128)))" to align struct 'blame_list' to 128 bytes
/datasets/git/blame.c:2198:22: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct blame_entry *e;
                            ^
                              = NULL
/datasets/git/blame.c:2198:22: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/blame.c:2199:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int num_ents, i;
        ^~~~~~~~~~~~~~~~
/datasets/git/blame.c:2199:6: warning: variable 'num_ents' is not initialized [cppcoreguidelines-init-variables]
        int num_ents, i;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:2199:16: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int num_ents, i;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:2199:16: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/blame.c:2202:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (e = unblamed, num_ents = 0; e; e = e->next)
        ^
/datasets/git/blame.c:2202:35: warning: backward branch (for loop) is ID-dependent due to variable reference to 'e' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (e = unblamed, num_ents = 0; e; e = e->next)
                                         ^
/datasets/git/blame.c:2202:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (e = unblamed, num_ents = 0; e; e = e->next)
                                                        ^
                                                         {
/datasets/git/blame.c:2206:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (e = unblamed, i = 0; e; e = e->next)
                ^
/datasets/git/blame.c:2206:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'e' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (e = unblamed, i = 0; e; e = e->next)
                                          ^
/datasets/git/blame.c:2206:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (e = unblamed, i = 0; e; e = e->next)
                                                         ^
                                                          {
/datasets/git/blame.c:2218:13: warning: function 'find_copy_in_parent' has cognitive complexity of 34 (threshold 25) [readability-function-cognitive-complexity]
static void find_copy_in_parent(struct blame_scoreboard *sb,
            ^
/datasets/git/blame.c:2233:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!unblamed)
        ^
/datasets/git/blame.c:2249:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((opt & PICKAXE_BLAME_COPY_HARDEST)
        ^
/datasets/git/blame.c:2250:6: note: +1
            || ((opt & PICKAXE_BLAME_COPY_HARDER)
            ^
/datasets/git/blame.c:2251:3: note: +1
                && (!porigin || strcmp(target->path, porigin->path))))
                ^
/datasets/git/blame.c:2251:16: note: +1
                && (!porigin || strcmp(target->path, porigin->path))))
                             ^
/datasets/git/blame.c:2254:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (is_null_oid(&target->commit->object.oid))
        ^
/datasets/git/blame.c:2256:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/blame.c:2261:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!diff_opts.flags.find_copies_harder)
        ^
/datasets/git/blame.c:2264:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        do {
        ^
/datasets/git/blame.c:2268:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < diff_queued_diff.nr; i++) {
                ^
/datasets/git/blame.c:2274:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!DIFF_FILE_VALID(p->one))
                        ^
/datasets/git/blame.c:2276:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (S_ISGITLINK(p->one->mode))
                        ^
/datasets/git/blame.c:2278:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (porigin && !strcmp(p->one->path, porigin->path))
                        ^
/datasets/git/blame.c:2278:16: note: +1
                        if (porigin && !strcmp(p->one->path, porigin->path))
                                    ^
/datasets/git/blame.c:2287:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!file_p.ptr)
                        ^
/datasets/git/blame.c:2290:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (j = 0; j < num_ents; j++) {
                        ^
/datasets/git/blame.c:2300:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (j = 0; j < num_ents; j++) {
                ^
/datasets/git/blame.c:2302:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (split[1].suspect &&
                        ^
/datasets/git/blame.c:2302:25: note: +1
                        if (split[1].suspect &&
                                             ^
/datasets/git/blame.c:2306:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/blame.c:2218:58: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static void find_copy_in_parent(struct blame_scoreboard *sb,
                                                         ^
/datasets/git/blame.c:2227:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, j;
        ^~~~~~~~~
/datasets/git/blame.c:2227:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, j;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:2227:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/blame.c:2227:9: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int i, j;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:2227:9: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/blame.c:2228:21: warning: variable 'blame_list' is not initialized [cppcoreguidelines-init-variables]
        struct blame_list *blame_list;
                           ^
                                      = NULL
/datasets/git/blame.c:2229:6: warning: variable 'num_ents' is not initialized [cppcoreguidelines-init-variables]
        int num_ents;
            ^
                     = 0
/datasets/git/blame.c:2233:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!unblamed)
                      ^
                       {
/datasets/git/blame.c:2249:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((opt & PICKAXE_BLAME_COPY_HARDEST)
             ^~~
/datasets/git/blame.c:2250:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            || ((opt & PICKAXE_BLAME_COPY_HARDER)
                 ^~~
/datasets/git/blame.c:2251:19: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                && (!porigin || strcmp(target->path, porigin->path))))
                                ^
                                                                    != 0
/datasets/git/blame.c:2251:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                && (!porigin || strcmp(target->path, porigin->path))))
                                                                      ^
                                                                       {
/datasets/git/blame.c:2254:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_null_oid(&target->commit->object.oid))
                                                     ^
                                                      {
/datasets/git/blame.c:2256:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/blame.c:2261:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!diff_opts.flags.find_copies_harder)
                                                ^
                                                 {
/datasets/git/blame.c:2269:26: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                        struct diff_filepair *p = diff_queued_diff.queue[i];
                                              ^
/datasets/git/blame.c:2270:25: warning: variable 'norigin' is not initialized [cppcoreguidelines-init-variables]
                        struct blame_origin *norigin;
                                             ^
                                                     = NULL
/datasets/git/blame.c:2274:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!DIFF_FILE_VALID(p->one))
                                                     ^
                                                      {
/datasets/git/blame.c:2276:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (S_ISGITLINK(p->one->mode))
                            ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/blame.c:2276:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (S_ISGITLINK(p->one->mode))
                                                      ^
                                                       {
/datasets/git/blame.c:2278:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (porigin && !strcmp(p->one->path, porigin->path))
                                                                            ^
                                                                             {
/datasets/git/blame.c:2287:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!file_p.ptr)
                                        ^
                                         {
/datasets/git/blame.c:2290:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (j = 0; j < num_ents; j++) {
                        ^
/datasets/git/blame.c:2300:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (j = 0; j < num_ents; j++) {
                ^
/datasets/git/blame.c:2315:11: warning: backward branch (do loop) is ID-dependent due to variable reference to 'unblamed' and may cause performance degradation [altera-id-dependent-backward-branch]
        } while (unblamed);
                 ^
/datasets/git/blame.c:2324:55: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static void pass_whole_blame(struct blame_scoreboard *sb,
                                                      ^
/datasets/git/blame.c:2327:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct blame_entry *e, *suspects;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:2327:2: note: inferred assignment of ID-dependent value from ID-dependent variable suspects [altera-id-dependent-backward-branch]
/datasets/git/blame.c:2327:22: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct blame_entry *e, *suspects;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:2327:22: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/blame.c:2327:26: warning: variable 'suspects' is not initialized [cppcoreguidelines-init-variables]
        struct blame_entry *e, *suspects;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:2336:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (e = suspects; e; e = e->next) {
        ^
/datasets/git/blame.c:2336:21: warning: backward branch (for loop) is ID-dependent due to variable reference to 'e' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (e = suspects; e; e = e->next) {
                           ^
/datasets/git/blame.c:2366:22: warning: variable name 'l' is too short, expected at least 3 characters [readability-identifier-length]
        struct commit_list *l = first_scapegoat(revs, commit, reverse);
                            ^
/datasets/git/blame.c:2367:9: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return commit_list_count(l);
               ^
/datasets/git/blame.c:2373:55: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static void distribute_blame(struct blame_scoreboard *sb, struct blame_entry *blamed)
                                                      ^
/datasets/git/blame.c:2373:59: note: inferred assignment of ID-dependent value from ID-dependent variable next [altera-id-dependent-backward-branch]
static void distribute_blame(struct blame_scoreboard *sb, struct blame_entry *blamed)
                                                          ^
/datasets/git/blame.c:2376:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'blamed' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (blamed)
               ^
/datasets/git/blame.c:2373:59: note: inferred assignment of ID-dependent value from ID-dependent variable next
static void distribute_blame(struct blame_scoreboard *sb, struct blame_entry *blamed)
                                                          ^
/datasets/git/blame.c:2380:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                do {
                ^
/datasets/git/blame.c:2385:12: warning: backward branch (do loop) is ID-dependent due to variable reference to 'blamed' and may cause performance degradation [altera-id-dependent-backward-branch]
                } while (blamed && blamed->suspect == porigin);
                         ^
/datasets/git/blame.c:2391:1: warning: replace macro with enum [modernize-macro-to-enum]
#define MAXSG 16
^~~~~~~~
              =
/datasets/git/blame.c:2391:9: warning: macro 'MAXSG' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define MAXSG 16
        ^
/datasets/git/blame.c:2398:13: warning: function 'pass_blame' has cognitive complexity of 89 (threshold 25) [readability-function-cognitive-complexity]
static void pass_blame(struct blame_scoreboard *sb, struct blame_origin *origin, int opt)
            ^
/datasets/git/blame.c:2410:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!num_sg)
        ^
/datasets/git/blame.c:2412:7: note: +1, nesting level increased to 1
        else if (num_sg < ARRAY_SIZE(sg_buf))
             ^
/datasets/git/blame.c:2414:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/blame.c:2421:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (pass = 0; pass < 2 - sb->no_whole_file_rename; pass++) {
        ^
/datasets/git/blame.c:2422:30: note: +2, including nesting penalty of 1, nesting level increased to 2
                blame_find_alg find = pass ? find_rename : find_origin;
                                           ^
/datasets/git/blame.c:2424:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0, sg = first_scapegoat(revs, commit, sb->reverse);
                ^
/datasets/git/blame.c:2425:19: note: +1
                     i < num_sg && sg;
                                ^
/datasets/git/blame.c:2430:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (sg_origin[i])
                        ^
/datasets/git/blame.c:2432:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (parse_commit(p))
                        ^
/datasets/git/blame.c:2435:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!porigin)
                        ^
/datasets/git/blame.c:2437:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (oideq(&porigin->blob_oid, &origin->blob_oid)) {
                        ^
/datasets/git/blame.c:2440:5: note: +1
                                goto finish;
                                ^
/datasets/git/blame.c:2442:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (j = same = 0; j < i; j++)
                        ^
/datasets/git/blame.c:2443:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (sg_origin[j] &&
                                ^
/datasets/git/blame.c:2443:22: note: +1
                                if (sg_origin[j] &&
                                                 ^
/datasets/git/blame.c:2448:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!same)
                        ^
/datasets/git/blame.c:2450:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/blame.c:2456:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0, sg = first_scapegoat(revs, commit, sb->reverse);
        ^
/datasets/git/blame.c:2457:18: note: +1
             i < num_sg && sg;
                        ^
/datasets/git/blame.c:2460:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!porigin)
                ^
/datasets/git/blame.c:2462:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!origin->previous) {
                ^
/datasets/git/blame.c:2467:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!origin->suspects)
                ^
/datasets/git/blame.c:2474:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (oidset_contains(&sb->ignore_list, &commit->object.oid)) {
        ^
/datasets/git/blame.c:2475:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0, sg = first_scapegoat(revs, commit, sb->reverse);
                ^
/datasets/git/blame.c:2476:19: note: +1
                     i < num_sg && sg;
                                ^
/datasets/git/blame.c:2480:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!porigin)
                        ^
/datasets/git/blame.c:2489:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!origin->suspects)
                        ^
/datasets/git/blame.c:2497:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt & PICKAXE_BLAME_MOVE) {
        ^
/datasets/git/blame.c:2499:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (origin->suspects) {
                ^
/datasets/git/blame.c:2500:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (i = 0, sg = first_scapegoat(revs, commit, sb->reverse);
                        ^
/datasets/git/blame.c:2501:20: note: +1
                             i < num_sg && sg;
                                        ^
/datasets/git/blame.c:2504:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!porigin)
                                ^
/datasets/git/blame.c:2507:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!origin->suspects)
                                ^
/datasets/git/blame.c:2516:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt & PICKAXE_BLAME_COPY) {
        ^
/datasets/git/blame.c:2517:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (sb->copy_score > sb->move_score)
                ^
/datasets/git/blame.c:2519:8: note: +1, nesting level increased to 2
                else if (sb->copy_score < sb->move_score) {
                     ^
/datasets/git/blame.c:2524:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!origin->suspects)
                ^
/datasets/git/blame.c:2527:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0, sg = first_scapegoat(revs, commit, sb->reverse);
                ^
/datasets/git/blame.c:2528:19: note: +1
                     i < num_sg && sg;
                                ^
/datasets/git/blame.c:2533:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!origin->suspects)
                        ^
/datasets/git/blame.c:2547:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (toosmall) {
        ^
/datasets/git/blame.c:2549:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (*tail)
                ^
/datasets/git/blame.c:2554:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < num_sg; i++) {
        ^
/datasets/git/blame.c:2555:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (sg_origin[i]) {
                ^
/datasets/git/blame.c:2556:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!sg_origin[i]->suspects)
                        ^
/datasets/git/blame.c:2562:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (sg_buf != sg_origin)
        ^
/datasets/git/blame.c:2398:49: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static void pass_blame(struct blame_scoreboard *sb, struct blame_origin *origin, int opt)
                                                ^
/datasets/git/blame.c:2401:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, pass, num_sg;
        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:2401:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, pass, num_sg;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:2401:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/blame.c:2401:9: warning: variable 'pass' is not initialized [cppcoreguidelines-init-variables]
        int i, pass, num_sg;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:2401:15: warning: variable 'num_sg' is not initialized [cppcoreguidelines-init-variables]
        int i, pass, num_sg;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:2403:22: warning: variable 'sg' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *sg;
                            ^
                               = NULL
/datasets/git/blame.c:2403:22: warning: variable name 'sg' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/blame.c:2405:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct blame_origin *porigin, **sg_origin = sg_buf;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:2405:23: warning: variable 'porigin' is not initialized [cppcoreguidelines-init-variables]
        struct blame_origin *porigin, **sg_origin = sg_buf;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:2407:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct blame_entry *blames, **blametail = &blames;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:2407:22: warning: variable 'blames' is not initialized [cppcoreguidelines-init-variables]
        struct blame_entry *blames, **blametail = &blames;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:2410:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!num_sg)
                    ^
                     {
/datasets/git/blame.c:2412:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (num_sg < ARRAY_SIZE(sg_buf))
                                             ^
                                              {
/datasets/git/blame.c:2413:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(sg_buf, 0, sizeof(sg_buf));
                ^~~~~~
/datasets/git/blame.c:2413:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(sg_buf, 0, sizeof(sg_buf));
                ^~~~~~
/datasets/git/blame.c:2414:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/blame.c:2415:3: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                CALLOC_ARRAY(sg_origin, num_sg);
                ^
/datasets/git/./git-compat-util.h:1091:55: note: expanded from macro 'CALLOC_ARRAY'
#define CALLOC_ARRAY(x, alloc) (x) = xcalloc((alloc), sizeof(*(x)))
                                                      ^
/datasets/git/blame.c:2401:2: note: inferred assignment of ID-dependent value from ID-dependent variable revs [altera-id-dependent-backward-branch]
        int i, pass, num_sg;
        ^
/datasets/git/blame.c:2425:8: warning: backward branch (for loop) is ID-dependent due to variable reference to 'num_sg' and may cause performance degradation [altera-id-dependent-backward-branch]
                     i < num_sg && sg;
                     ^
/datasets/git/blame.c:2427:19: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                        struct commit *p = sg->item;
                                       ^
/datasets/git/blame.c:2428:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        int j, same;
                        ^~~~~~~~~~~~
/datasets/git/blame.c:2428:8: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
                        int j, same;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:2428:8: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/blame.c:2428:11: warning: variable 'same' is not initialized [cppcoreguidelines-init-variables]
                        int j, same;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/blame.c:2430:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (sg_origin[i])
                                         ^
                                          {
/datasets/git/blame.c:2432:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (parse_commit(p))
                                            ^
                                             {
/datasets/git/blame.c:2435:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!porigin)
                                     ^
                                      {
/datasets/git/blame.c:2442:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (j = same = 0; j < i; j++)
                        ^
/datasets/git/blame.c:2442:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 'j' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (j = same = 0; j < i; j++)
                                           ^
/datasets/git/blame.c:2442:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (j = same = 0; j < i; j++)
                                                      ^
                                                       {
/datasets/git/blame.c:2448:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!same)
                                  ^
                                   {
/datasets/git/blame.c:2450:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/blame.c:2456:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0, sg = first_scapegoat(revs, commit, sb->reverse);
        ^
/datasets/git/blame.c:2401:2: note: inferred assignment of ID-dependent value from ID-dependent variable revs [altera-id-dependent-backward-branch]
        int i, pass, num_sg;
        ^
/datasets/git/blame.c:2457:7: warning: backward branch (for loop) is ID-dependent due to variable reference to 'num_sg' and may cause performance degradation [altera-id-dependent-backward-branch]
             i < num_sg && sg;
             ^
/datasets/git/blame.c:2460:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!porigin)
                             ^
                              {
/datasets/git/blame.c:2467:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!origin->suspects)
                                      ^
                                       {
/datasets/git/blame.c:2475:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0, sg = first_scapegoat(revs, commit, sb->reverse);
                ^
/datasets/git/blame.c:2476:8: warning: backward branch (for loop) is ID-dependent due to variable reference to 'num_sg' and may cause performance degradation [altera-id-dependent-backward-branch]
                     i < num_sg && sg;
                     ^
/datasets/git/blame.c:2480:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!porigin)
                                     ^
                                      {
/datasets/git/blame.c:2489:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!origin->suspects)
                                              ^
                                               {
/datasets/git/blame.c:2497:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (opt & PICKAXE_BLAME_MOVE) {
            ^~~
/datasets/git/blame.c:2401:2: note: inferred assignment of ID-dependent value from ID-dependent variable revs [altera-id-dependent-backward-branch]
        int i, pass, num_sg;
        ^
/datasets/git/blame.c:2500:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = 0, sg = first_scapegoat(revs, commit, sb->reverse);
                        ^
/datasets/git/blame.c:2501:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'num_sg' and may cause performance degradation [altera-id-dependent-backward-branch]
                             i < num_sg && sg;
                             ^
/datasets/git/blame.c:2504:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!porigin)
                                             ^
                                              {
/datasets/git/blame.c:2507:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!origin->suspects)
                                                      ^
                                                       {
/datasets/git/blame.c:2516:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (opt & PICKAXE_BLAME_COPY) {
            ^~~
/datasets/git/blame.c:2517:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (sb->copy_score > sb->move_score)
                                                    ^
                                                     {
/datasets/git/blame.c:2524:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!origin->suspects)
                                      ^
                                       {
/datasets/git/blame.c:2527:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0, sg = first_scapegoat(revs, commit, sb->reverse);
                ^
/datasets/git/blame.c:2528:8: warning: backward branch (for loop) is ID-dependent due to variable reference to 'num_sg' and may cause performance degradation [altera-id-dependent-backward-branch]
                     i < num_sg && sg;
                     ^
/datasets/git/blame.c:2533:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!origin->suspects)
                                              ^
                                               {
/datasets/git/blame.c:2549:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (*tail)
                ^
/datasets/git/blame.c:2549:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'tail' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (*tail)
                       ^
/datasets/git/blame.c:2549:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (*tail)
                             ^
                              {
/datasets/git/blame.c:2554:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < num_sg; i++) {
        ^
/datasets/git/blame.c:2554:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'num_sg' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < num_sg; i++) {
                    ^
/datasets/git/blame.c:2556:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!sg_origin[i]->suspects)
                                                    ^
                                                     {
/datasets/git/blame.c:2562:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (sg_buf != sg_origin)
                                ^
                                 {
/datasets/git/blame.c:2570:6: warning: function 'assign_blame' has cognitive complexity of 38 (threshold 25) [readability-function-cognitive-complexity]
void assign_blame(struct blame_scoreboard *sb, int opt)
     ^
/datasets/git/blame.c:2575:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (commit) {
        ^
/datasets/git/blame.c:2580:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (suspect && !suspect->suspects)
                ^
/datasets/git/blame.c:2580:18: note: +1
                while (suspect && !suspect->suspects)
                               ^
/datasets/git/blame.c:2583:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!suspect) {
                ^
/datasets/git/blame.c:2588:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(commit == suspect->commit);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/blame.c:2588:3: note: nesting level increased to 2
                assert(commit == suspect->commit);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/blame.c:2588:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(commit == suspect->commit);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/blame.c:2588:3: note: +1, nesting level increased to 3
                assert(commit == suspect->commit);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/blame.c:2596:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (sb->reverse ||
                ^
/datasets/git/blame.c:2596:19: note: +1
                if (sb->reverse ||
                                ^
/datasets/git/blame.c:2597:48: note: +1
                    (!(commit->object.flags & UNINTERESTING) &&
                                                             ^
/datasets/git/blame.c:2600:3: note: +1, nesting level increased to 2
                else {
                ^
/datasets/git/blame.c:2602:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (commit->object.parsed)
                        ^
/datasets/git/blame.c:2606:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!commit->parents && !sb->show_root)
                ^
/datasets/git/blame.c:2606:24: note: +1
                if (!commit->parents && !sb->show_root)
                                     ^
/datasets/git/blame.c:2611:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ent) {
                ^
/datasets/git/blame.c:2613:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (;;) {
                        ^
/datasets/git/blame.c:2615:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (sb->found_guilty_entry)
                                ^
/datasets/git/blame.c:2617:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (next) {
                                ^
/datasets/git/blame.c:2629:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (sb->debug) /* sanity */
                ^
/datasets/git/blame.c:2570:44: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void assign_blame(struct blame_scoreboard *sb, int opt)
                                           ^
/datasets/git/blame.c:2573:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct commit *commit = prio_queue_get(&sb->commits);
        ^
/datasets/git/blame.c:2575:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'commit' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (commit) {
               ^
/datasets/git/blame.c:2576:23: warning: variable 'ent' is not initialized [cppcoreguidelines-init-variables]
                struct blame_entry *ent;
                                    ^
                                        = NULL
/datasets/git/blame.c:2580:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (suspect && !suspect->suspects)
                ^
/datasets/git/blame.c:2580:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'suspect' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (suspect && !suspect->suspects)
                       ^
/datasets/git/blame.c:2580:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (suspect && !suspect->suspects)
                                                     ^
                                                      {
/datasets/git/blame.c:2597:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (!(commit->object.flags & UNINTERESTING) &&
                                              ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/blame.c:2598:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                     !(revs->max_age != -1 && commit->date < revs->max_age)))
                                                                             ^
                                                                              {
/datasets/git/blame.c:2601:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        commit->object.flags |= UNINTERESTING;
                                                ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/blame.c:2602:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (commit->object.parsed)
                                                  ^
                                                   {
/datasets/git/blame.c:2606:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!commit->parents && !sb->show_root)
                                                       ^
                                                        {
/datasets/git/blame.c:2607:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        commit->object.flags |= UNINTERESTING;
                                                ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/blame.c:2613:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (;;) {
                        ^
/datasets/git/blame.c:2615:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (sb->found_guilty_entry)
                                                           ^
                                                            {
/datasets/git/blame.c:2629:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (sb->debug) /* sanity */
                              ^
                               {
/datasets/git/blame.c:2638:51: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static int prepare_lines(struct blame_scoreboard *sb)
                                                  ^
/datasets/git/blame.c:2648:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/blame.c:2648:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/blame.c:2652:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < revs->pending.nr; i++) {
        ^
/datasets/git/blame.c:2654:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (obj->flags & UNINTERESTING)
                                 ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/blame.c:2654:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (obj->flags & UNINTERESTING)
                                               ^
                                                {
/datasets/git/blame.c:2657:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!obj || obj->type != OBJ_COMMIT)
                                                    ^
                                                     {
/datasets/git/blame.c:2659:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (found)
                          ^
                           {
/datasets/git/blame.c:2665:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (name_p)
                   ^
                    {
/datasets/git/blame.c:2678:17: warning: variable 'obj' is not initialized [cppcoreguidelines-init-variables]
        struct object *obj;
                       ^
                           = NULL
/datasets/git/blame.c:2679:17: warning: variable 'head_commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *head_commit;
                       ^
                                   = NULL
/datasets/git/blame.c:2682:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->pending.nr != 1)
                                  ^
                                   {
/datasets/git/blame.c:2688:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!obj || obj->type != OBJ_COMMIT)
                                            ^
                                             {
/datasets/git/blame.c:2692:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!resolve_ref_unsafe("HEAD", RESOLVE_REF_READING, &head_oid, NULL))
                                                                              ^
                                                                               {
/datasets/git/blame.c:2696:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!head_commit)
                         ^
                          {
/datasets/git/blame.c:2700:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        obj->flags |= UNINTERESTING;
                      ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/blame.c:2703:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (name_p)
                   ^
                    {
/datasets/git/blame.c:2711:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/blame.c:2711:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/blame.c:2719:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < revs->pending.nr; i++) {
        ^
/datasets/git/blame.c:2721:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(obj->flags & UNINTERESTING))
                                   ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/blame.c:2721:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(obj->flags & UNINTERESTING))
                                                  ^
                                                   {
/datasets/git/blame.c:2724:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!obj || obj->type != OBJ_COMMIT)
                                                    ^
                                                     {
/datasets/git/blame.c:2726:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (found)
                          ^
                           {
/datasets/git/blame.c:2733:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!name)
                  ^
                   {
/datasets/git/blame.c:2735:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!name)
                  ^
                   {
/datasets/git/blame.c:2738:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (name_p)
                   ^
                    {
/datasets/git/blame.c:2743:47: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void init_scoreboard(struct blame_scoreboard *sb)
                                              ^
/datasets/git/blame.c:2745:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(sb, 0, sizeof(struct blame_scoreboard));
        ^~~~~~
/datasets/git/blame.c:2745:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(sb, 0, sizeof(struct blame_scoreboard));
        ^~~~~~
/datasets/git/blame.c:2750:6: warning: function 'setup_scoreboard' has cognitive complexity of 36 (threshold 25) [readability-function-cognitive-complexity]
void setup_scoreboard(struct blame_scoreboard *sb,
     ^
/datasets/git/blame.c:2760:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (sb->reverse && sb->contents_from)
        ^
/datasets/git/blame.c:2760:18: note: +1
        if (sb->reverse && sb->contents_from)
                        ^
/datasets/git/blame.c:2763:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!sb->repo)
        ^
/datasets/git/blame.c:2766:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!sb->reverse) {
        ^
/datasets/git/blame.c:2769:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/blame.c:2774:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (sb->final && sb->contents_from)
        ^
/datasets/git/blame.c:2774:16: note: +1
        if (sb->final && sb->contents_from)
                      ^
/datasets/git/blame.c:2777:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (sb->reverse && sb->revs->first_parent_only)
        ^
/datasets/git/blame.c:2777:18: note: +1
        if (sb->reverse && sb->revs->first_parent_only)
                        ^
/datasets/git/blame.c:2780:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!sb->final) {
        ^
/datasets/git/blame.c:2793:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (sb->reverse && sb->revs->first_parent_only) {
        ^
/datasets/git/blame.c:2793:18: note: +1
        if (sb->reverse && sb->revs->first_parent_only) {
                        ^
/datasets/git/blame.c:2795:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!final_commit)
                ^
/datasets/git/blame.c:2804:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (prepare_revision_walk(sb->revs))
        ^
/datasets/git/blame.c:2807:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (sb->reverse && sb->revs->first_parent_only) {
        ^
/datasets/git/blame.c:2807:18: note: +1
        if (sb->reverse && sb->revs->first_parent_only) {
                        ^
/datasets/git/blame.c:2811:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (c->parents &&
                ^
/datasets/git/blame.c:2811:21: note: +1
                while (c->parents &&
                                  ^
/datasets/git/blame.c:2816:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (add_decoration(&sb->revs->children,
                        ^
/datasets/git/blame.c:2822:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!oideq(&c->object.oid, &sb->final->object.oid))
                ^
/datasets/git/blame.c:2826:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (is_null_oid(&sb->final->object.oid)) {
        ^
/datasets/git/blame.c:2831:2: note: +1, nesting level increased to 1
        else {
        ^
/datasets/git/blame.c:2833:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (fill_blob_sha1_and_mode(sb->repo, o))
                ^
/datasets/git/blame.c:2836:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (sb->revs->diffopt.flags.allow_textconv &&
                ^
/datasets/git/blame.c:2836:46: note: +1
                if (sb->revs->diffopt.flags.allow_textconv &&
                                                           ^
/datasets/git/blame.c:2840:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/blame.c:2844:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!sb->final_buf)
                ^
/datasets/git/blame.c:2852:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (orig)
        ^
/datasets/git/blame.c:2750:48: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void setup_scoreboard(struct blame_scoreboard *sb,
                                               ^
/datasets/git/blame.c:2754:23: warning: variable 'o' is not initialized [cppcoreguidelines-init-variables]
        struct blame_origin *o;
                             ^
                               = NULL
/datasets/git/blame.c:2754:23: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/blame.c:2756:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/blame.c:2760:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (sb->reverse && sb->contents_from)
                                             ^
                                              {
/datasets/git/blame.c:2763:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!sb->repo)
                      ^
                       {
/datasets/git/blame.c:2774:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (sb->final && sb->contents_from)
                                           ^
                                            {
/datasets/git/blame.c:2777:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (sb->reverse && sb->revs->first_parent_only)
                                                       ^
                                                        {
/datasets/git/blame.c:2795:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!final_commit)
                                  ^
                                   {
/datasets/git/blame.c:2804:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prepare_revision_walk(sb->revs))
                                            ^
                                             {
/datasets/git/blame.c:2808:18: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                struct commit *c = final_commit;
                               ^
/datasets/git/blame.c:2811:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (c->parents &&
                ^
/datasets/git/blame.c:2811:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'c' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (c->parents &&
                       ^
/datasets/git/blame.c:2811:10: warning: Access to field 'parents' results in a dereference of a null pointer (loaded from variable 'c') [clang-analyzer-core.NullDereference]
                while (c->parents &&
                       ^
/datasets/git/blame.c:2755:2: note: 'final_commit' initialized to a null pointer value
        struct commit *final_commit = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:2760:6: note: Assuming field 'reverse' is not equal to 0
        if (sb->reverse && sb->contents_from)
            ^~~~~~~~~~~
/datasets/git/blame.c:2760:6: note: Left side of '&&' is true
/datasets/git/blame.c:2760:21: note: Assuming field 'contents_from' is null
        if (sb->reverse && sb->contents_from)
                           ^~~~~~~~~~~~~~~~~
/datasets/git/blame.c:2760:2: note: Taking false branch
        if (sb->reverse && sb->contents_from)
        ^
/datasets/git/blame.c:2763:6: note: Assuming field 'repo' is non-null
        if (!sb->repo)
            ^~~~~~~~~
/datasets/git/blame.c:2763:2: note: Taking false branch
        if (!sb->repo)
        ^
/datasets/git/blame.c:2766:11: note: Field 'reverse' is not equal to 0
        if (!sb->reverse) {
                 ^
/datasets/git/blame.c:2766:2: note: Taking false branch
        if (!sb->reverse) {
        ^
/datasets/git/blame.c:2774:6: note: Assuming field 'final' is non-null
        if (sb->final && sb->contents_from)
            ^~~~~~~~~
/datasets/git/blame.c:2774:6: note: Left side of '&&' is true
/datasets/git/blame.c:2774:23: note: Field 'contents_from' is null
        if (sb->final && sb->contents_from)
                             ^
/datasets/git/blame.c:2774:2: note: Taking false branch
        if (sb->final && sb->contents_from)
        ^
/datasets/git/blame.c:2777:10: note: Field 'reverse' is not equal to 0
        if (sb->reverse && sb->revs->first_parent_only)
                ^
/datasets/git/blame.c:2777:6: note: Left side of '&&' is true
        if (sb->reverse && sb->revs->first_parent_only)
            ^
/datasets/git/blame.c:2777:21: note: Assuming field 'first_parent_only' is 0
        if (sb->reverse && sb->revs->first_parent_only)
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:2777:2: note: Taking false branch
        if (sb->reverse && sb->revs->first_parent_only)
        ^
/datasets/git/blame.c:2780:11: note: Field 'final' is non-null
        if (!sb->final) {
                 ^
/datasets/git/blame.c:2780:2: note: Taking false branch
        if (!sb->final) {
        ^
/datasets/git/blame.c:2793:10: note: Field 'reverse' is not equal to 0
        if (sb->reverse && sb->revs->first_parent_only) {
                ^
/datasets/git/blame.c:2793:6: note: Left side of '&&' is true
        if (sb->reverse && sb->revs->first_parent_only) {
            ^
/datasets/git/blame.c:2793:31: note: Field 'first_parent_only' is 0
        if (sb->reverse && sb->revs->first_parent_only) {
                                     ^
/datasets/git/blame.c:2793:2: note: Taking false branch
        if (sb->reverse && sb->revs->first_parent_only) {
        ^
/datasets/git/blame.c:2804:6: note: Assuming the condition is false
        if (prepare_revision_walk(sb->revs))
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:2804:2: note: Taking false branch
        if (prepare_revision_walk(sb->revs))
        ^
/datasets/git/blame.c:2807:10: note: Field 'reverse' is not equal to 0
        if (sb->reverse && sb->revs->first_parent_only) {
                ^
/datasets/git/blame.c:2807:6: note: Left side of '&&' is true
        if (sb->reverse && sb->revs->first_parent_only) {
            ^
/datasets/git/blame.c:2807:21: note: Assuming field 'first_parent_only' is not equal to 0
        if (sb->reverse && sb->revs->first_parent_only) {
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/blame.c:2807:2: note: Taking true branch
        if (sb->reverse && sb->revs->first_parent_only) {
        ^
/datasets/git/blame.c:2808:3: note: 'c' initialized to a null pointer value
                struct commit *c = final_commit;
                ^~~~~~~~~~~~~~~~
/datasets/git/blame.c:2811:10: note: Access to field 'parents' results in a dereference of a null pointer (loaded from variable 'c')
                while (c->parents &&
                       ^
/datasets/git/blame.c:2813:24: warning: variable name 'l' is too short, expected at least 3 characters [readability-identifier-length]
                        struct commit_list *l = xcalloc(1, sizeof(*l));
                                            ^
/datasets/git/blame.c:2817:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                           &c->parents->item->object, l))
                                                                         ^
                                                                          {
/datasets/git/blame.c:2822:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!oideq(&c->object.oid, &sb->final->object.oid))
                                                                   ^
                                                                    {
/datasets/git/blame.c:2833:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fill_blob_sha1_and_mode(sb->repo, o))
                                                         ^
                                                          {
/datasets/git/blame.c:2838:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                    &sb->final_buf_size))
                                                         ^
                                                          {
/datasets/git/blame.c:2840:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/blame.c:2844:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!sb->final_buf)
                                   ^
                                    {
/datasets/git/blame.c:2852:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (orig)
                 ^
                  {
/datasets/git/blame.c:2862:27: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                                        struct blame_origin *o)
                                                             ^
/datasets/git/blame.c:2865:18: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        new_head->lno = start;
                        ^
/datasets/git/blame.c:2866:24: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        new_head->num_lines = end - start;
                              ^
/datasets/git/blame.c:2868:20: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        new_head->s_lno = start;
                          ^
/datasets/git/blame.c:2874:54: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void setup_blame_bloom_data(struct blame_scoreboard *sb)
                                                     ^
/datasets/git/blame.c:2876:27: warning: variable 'bd' is not initialized [cppcoreguidelines-init-variables]
        struct blame_bloom_data *bd;
                                 ^
                                    = NULL
/datasets/git/blame.c:2876:27: warning: variable name 'bd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/blame.c:2877:32: warning: variable 'bs' is not initialized [cppcoreguidelines-init-variables]
        struct bloom_filter_settings *bs;
                                      ^
                                         = NULL
/datasets/git/blame.c:2877:32: warning: variable name 'bs' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/blame.c:2879:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!sb->repo->objects->commit_graph)
                                             ^
                                              {
/datasets/git/blame.c:2883:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!bs)
                ^
                 {
/datasets/git/blame.c:2892:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_ARRAY(bd->keys, bd->alloc);
        ^
/datasets/git/./git-compat-util.h:1090:53: note: expanded from macro 'ALLOC_ARRAY'
#define ALLOC_ARRAY(x, alloc) (x) = xmalloc(st_mult(sizeof(*(x)), (alloc)))
                                                    ^
/datasets/git/blame.c:2899:50: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void cleanup_scoreboard(struct blame_scoreboard *sb)
                                                 ^
/datasets/git/blame.c:2902:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/blame.c:2902:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/blame.c:2903:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < sb->bloom_data->nr; i++) {
                ^
/datasets/git/blame.c:2908:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FREE_AND_NULL(sb->bloom_data);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/blob.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "blob.h"
^        ~~~~~~~~
         "alloc.h"
/datasets/git/blob.c:6:13: warning: variable 'blob_type' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
const char *blob_type = "blob";
            ^
/datasets/git/blob.c:8:45: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
struct blob *lookup_blob(struct repository *r, const struct object_id *oid)
                                            ^
/datasets/git/blob.c:11:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!obj)
                 ^
                  {
/datasets/git/blob.c:16:48: warning: parameter 'buffer' is unused [misc-unused-parameters]
int parse_blob_buffer(struct blob *item, void *buffer, unsigned long size)
                                               ^
/datasets/git/blob.c:16:70: warning: parameter 'size' is unused [misc-unused-parameters]
int parse_blob_buffer(struct blob *item, void *buffer, unsigned long size)
                                                                     ^
/datasets/git/bloom.c:3:1: warning: #includes are not sorted properly [llvm-include-order]
#include "diff.h"
^        ~~~~~~~~
         "commit-graph.h"
/datasets/git/bloom.c:10:1: warning: backward branch (for loop) is ID-dependent due to member reference to 'slab_size' and may cause performance degradation [altera-id-dependent-backward-branch]
define_commit_slab(bloom_filter_slab, struct bloom_filter);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:48:15: note: expanded from macro 'implement_commit_slab'
                for (j = 0; j < s->slab_size; j++)                      \
                            ^
/datasets/git/bloom.c:10:1: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
define_commit_slab(bloom_filter_slab, struct bloom_filter);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:68:27: note: expanded from macro 'implement_commit_slab'
                for (i = s->slab_count; i <= nth_slab; i++)             \
                                        ^
/datasets/git/bloom.c:10:1: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
define_commit_slab(bloom_filter_slab, struct bloom_filter);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:35:2: note: expanded from macro 'implement_commit_slab'
        for (i = 0; i < s->slab_count; i++)                             \
        ^
/datasets/git/bloom.c:10:1: warning: result of multiplication in type 'unsigned int' is used as a pointer offset after an implicit widening conversion to type 'size_t' [bugprone-implicit-widening-of-multiplication-result]
define_commit_slab(bloom_filter_slab, struct bloom_filter);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:49:13: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                 ^
/datasets/git/bloom.c:10:1: note: make conversion explicit to silence this warning
define_commit_slab(bloom_filter_slab, struct bloom_filter);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:49:24: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                            ^~~~~~~~~~~~~
/datasets/git/bloom.c:10:1: note: perform multiplication in a wider type
define_commit_slab(bloom_filter_slab, struct bloom_filter);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:49:24: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                            ^
/datasets/git/bloom.c:10:1: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
define_commit_slab(bloom_filter_slab, struct bloom_filter);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:67:3: note: expanded from macro 'implement_commit_slab'
                REALLOC_ARRAY(s->slab, nth_slab + 1);                   \
                ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/bloom.c:10:1: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(bloom_filter_slab, struct bloom_filter);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:55:30: note: expanded from macro 'implement_commit_slab'
                                                  const struct commit *c, \
                                                                       ^
/datasets/git/bloom.c:10:1: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(bloom_filter_slab, struct bloom_filter);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:14:61: note: expanded from macro 'implement_commit_slab'
scope void init_ ##slabname## _with_stride(struct slabname *s,          \
                                                            ^
/datasets/git/bloom.c:10:1: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(bloom_filter_slab, struct bloom_filter);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:34:15: note: expanded from macro 'implement_commit_slab'
        unsigned int i;                                                 \
                     ^
/datasets/git/bloom.c:10:1: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(bloom_filter_slab, struct bloom_filter);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:45:16: note: expanded from macro 'implement_commit_slab'
                unsigned int j;                                         \
                             ^
/datasets/git/bloom.c:10:1: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
define_commit_slab(bloom_filter_slab, struct bloom_filter);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:58:2: note: expanded from macro 'implement_commit_slab'
        unsigned int nth_slab, nth_slot;                                \
        ^
/datasets/git/bloom.c:10:1: note: inferred assignment of ID-dependent value from ID-dependent member slab_count [altera-id-dependent-backward-branch]
define_commit_slab(bloom_filter_slab, struct bloom_filter);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:64:3: note: expanded from macro 'implement_commit_slab'
                unsigned int i;                                         \
                ^
/datasets/git/bloom.c:10:20: warning: accessing fields in struct 'bloom_filter_slab' is inefficient due to padding; only needs 20 bytes but is using 24 bytes [altera-struct-pack-align]
define_commit_slab(bloom_filter_slab, struct bloom_filter);
                   ^
/datasets/git/bloom.c:10:20: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'bloom_filter_slab'
/datasets/git/bloom.c:10:20: warning: accessing fields in struct 'bloom_filter_slab' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
define_commit_slab(bloom_filter_slab, struct bloom_filter);
                   ^
/datasets/git/bloom.c:10:20: note: use "__attribute__((aligned(32)))" to align struct 'bloom_filter_slab' to 32 bytes
/datasets/git/bloom.c:12:33: warning: variable 'bloom_filters' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct bloom_filter_slab bloom_filters;
                                ^
/datasets/git/bloom.c:21:18: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        uint32_t mask = 8 * sizeof(uint32_t) - 1;
                        ^
/datasets/git/bloom.c:22:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        count &= mask;
        ^~~~~
/datasets/git/bloom.c:22:11: warning: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'int32_t' (aka 'int') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        count &= mask;
                 ^
/datasets/git/bloom.c:23:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return ((value << count) | (value >> ((-count) & mask)));
                 ^        ~~~~~
/datasets/git/bloom.c:23:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return ((value << count) | (value >> ((-count) & mask)));
                                              ^~~~~~~~
/datasets/git/bloom.c:28:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return ((unsigned char)1) << (pos & (BITS_PER_WORD - 1));
                                      ^     ~~~~~~~~~~~~~~~~~~~
/datasets/git/bloom.c:31:62: warning: parameter name 'g' is too short, expected at least 3 characters [readability-identifier-length]
static int load_bloom_filter_from_graph(struct commit_graph *g,
                                                             ^
/datasets/git/bloom.c:35:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        uint32_t lex_pos, start_index, end_index;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/bloom.c:35:11: warning: variable 'lex_pos' is not initialized [cppcoreguidelines-init-variables]
        uint32_t lex_pos, start_index, end_index;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/bloom.c:35:20: warning: variable 'start_index' is not initialized [cppcoreguidelines-init-variables]
        uint32_t lex_pos, start_index, end_index;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/bloom.c:35:33: warning: variable 'end_index' is not initialized [cppcoreguidelines-init-variables]
        uint32_t lex_pos, start_index, end_index;
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/bloom.c:37:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (graph_pos < g->num_commits_in_base)
        ^
/datasets/git/bloom.c:37:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'g' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (graph_pos < g->num_commits_in_base)
               ^
/datasets/git/bloom.c:37:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (graph_pos < g->num_commits_in_base)
                                                  ^
                                                   {
/datasets/git/bloom.c:41:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!g->chunk_bloom_indexes)
                                    ^
                                     {
/datasets/git/bloom.c:46:23: warning: result of multiplication in type 'unsigned int' is used as a pointer offset after an implicit widening conversion to type 'size_t' [bugprone-implicit-widening-of-multiplication-result]
        end_index = get_be32(g->chunk_bloom_indexes + 4 * lex_pos);
                             ^
/datasets/git/bloom.c:46:48: note: make conversion explicit to silence this warning
        end_index = get_be32(g->chunk_bloom_indexes + 4 * lex_pos);
                                                      ^~~~~~~~~~~
                                                      (size_t)( )
/datasets/git/bloom.c:46:48: note: perform multiplication in a wider type
        end_index = get_be32(g->chunk_bloom_indexes + 4 * lex_pos);
                                                      ^
                                                      (size_t)
/datasets/git/bloom.c:48:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (lex_pos > 0)
                        ^
                         {
/datasets/git/bloom.c:49:26: warning: result of multiplication in type 'unsigned int' is used as a pointer offset after an implicit widening conversion to type 'size_t' [bugprone-implicit-widening-of-multiplication-result]
                start_index = get_be32(g->chunk_bloom_indexes + 4 * (lex_pos - 1));
                                       ^
/datasets/git/bloom.c:49:51: note: make conversion explicit to silence this warning
                start_index = get_be32(g->chunk_bloom_indexes + 4 * (lex_pos - 1));
                                                                ^~~~~~~~~~~~~~~~~
                                                                (size_t)(       )
/datasets/git/bloom.c:49:51: note: perform multiplication in a wider type
                start_index = get_be32(g->chunk_bloom_indexes + 4 * (lex_pos - 1));
                                                                ^
                                                                (size_t)
/datasets/git/bloom.c:80:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int len4 = len / sizeof(uint32_t);
        ^
/datasets/git/bloom.c:50:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/bloom.c:70:17: warning: variable name 'c1' is too short, expected at least 3 characters [readability-identifier-length]
        const uint32_t c1 = 0xcc9e2d51;
                       ^
/datasets/git/bloom.c:71:17: warning: variable name 'c2' is too short, expected at least 3 characters [readability-identifier-length]
        const uint32_t c2 = 0x1b873593;
                       ^
/datasets/git/bloom.c:72:17: warning: variable name 'r1' is too short, expected at least 3 characters [readability-identifier-length]
        const uint32_t r1 = 15;
                       ^
/datasets/git/bloom.c:73:17: warning: variable name 'r2' is too short, expected at least 3 characters [readability-identifier-length]
        const uint32_t r2 = 13;
                       ^
/datasets/git/bloom.c:74:17: warning: variable name 'm' is too short, expected at least 3 characters [readability-identifier-length]
        const uint32_t m = 5;
                       ^
/datasets/git/bloom.c:75:17: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
        const uint32_t n = 0xe6546b64;
                       ^
/datasets/git/bloom.c:76:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/bloom.c:76:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/bloom.c:77:11: warning: variable name 'k1' is too short, expected at least 3 characters [readability-identifier-length]
        uint32_t k1 = 0;
                 ^
/datasets/git/bloom.c:78:14: warning: variable 'tail' is not initialized [cppcoreguidelines-init-variables]
        const char *tail;
                    ^
                         = NULL
/datasets/git/bloom.c:80:13: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int len4 = len / sizeof(uint32_t);
                   ^
/datasets/git/bloom.c:82:11: warning: variable 'k' is not initialized [cppcoreguidelines-init-variables]
        uint32_t k;
                 ^
                   = 0
/datasets/git/bloom.c:82:11: warning: variable name 'k' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/bloom.c:83:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < len4; i++) {
        ^
/datasets/git/bloom.c:83:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'len4' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < len4; i++) {
                    ^
/datasets/git/bloom.c:84:30: warning: result of multiplication in type 'int' is used as a pointer offset after an implicit widening conversion to type 'ptrdiff_t' [bugprone-implicit-widening-of-multiplication-result]
                uint32_t byte1 = (uint32_t)data[4*i];
                                           ^
/datasets/git/bloom.c:84:35: note: make conversion explicit to silence this warning
                uint32_t byte1 = (uint32_t)data[4*i];
                                                ^~~
                                                (ptrdiff_t)( )
/datasets/git/bloom.c:84:35: note: perform multiplication in a wider type
                uint32_t byte1 = (uint32_t)data[4*i];
                                                ^
                                                (ptrdiff_t)
/datasets/git/bloom.c:85:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                uint32_t byte2 = ((uint32_t)data[4*i + 1]) << 8;
                                 ^                            ~
/datasets/git/bloom.c:85:49: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                uint32_t byte2 = ((uint32_t)data[4*i + 1]) << 8;
                                                              ^
/datasets/git/bloom.c:86:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                uint32_t byte3 = ((uint32_t)data[4*i + 2]) << 16;
                                 ^                            ~~
/datasets/git/bloom.c:86:49: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                uint32_t byte3 = ((uint32_t)data[4*i + 2]) << 16;
                                                              ^
/datasets/git/bloom.c:87:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                uint32_t byte4 = ((uint32_t)data[4*i + 3]) << 24;
                                 ^                            ~~
/datasets/git/bloom.c:87:49: warning: 24 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                uint32_t byte4 = ((uint32_t)data[4*i + 3]) << 24;
                                                              ^
/datasets/git/bloom.c:90:22: warning: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'int32_t' (aka 'int') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                k = rotate_left(k, r1);
                                   ^
/datasets/git/bloom.c:94:28: warning: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'int32_t' (aka 'int') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                seed = rotate_left(seed, r2) * m + n;
                                         ^
/datasets/git/bloom.c:101:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                k1 ^= ((uint32_t)tail[2]) << 16;
                      ^                      ~~
/datasets/git/bloom.c:101:32: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                k1 ^= ((uint32_t)tail[2]) << 16;
                                             ^
/datasets/git/bloom.c:104:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                k1 ^= ((uint32_t)tail[1]) << 8;
                      ^                      ~
/datasets/git/bloom.c:104:32: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                k1 ^= ((uint32_t)tail[1]) << 8;
                                             ^
/datasets/git/bloom.c:107:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                k1 ^= ((uint32_t)tail[0]) << 0;
                      ^                      ~
/datasets/git/bloom.c:109:24: warning: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'int32_t' (aka 'int') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                k1 = rotate_left(k1, r1);
                                     ^
/datasets/git/bloom.c:116:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        seed ^= (seed >> 16);
                 ^       ~~
/datasets/git/bloom.c:116:19: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        seed ^= (seed >> 16);
                         ^
/datasets/git/bloom.c:117:10: warning: 0x85ebca6b is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        seed *= 0x85ebca6b;
                ^
/datasets/git/bloom.c:118:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        seed ^= (seed >> 13);
                 ^       ~~
/datasets/git/bloom.c:118:19: warning: 13 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        seed ^= (seed >> 13);
                         ^
/datasets/git/bloom.c:119:10: warning: 0xc2b2ae35 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        seed *= 0xc2b2ae35;
                ^
/datasets/git/bloom.c:120:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        seed ^= (seed >> 16);
                 ^       ~~
/datasets/git/bloom.c:120:19: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        seed ^= (seed >> 16);
                         ^
/datasets/git/bloom.c:130:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/bloom.c:130:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/bloom.c:137:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < settings->num_hashes; i++)
        ^
/datasets/git/bloom.c:137:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < settings->num_hashes; i++)
                                                  ^
                                                   {
/datasets/git/bloom.c:143:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(key->hashes);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/bloom.c:150:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/bloom.c:150:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/bloom.c:153:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < settings->num_hashes; i++) {
        ^
/datasets/git/bloom.c:167:10: warning: 2 adjacent parameters of 'pathmap_cmp' of similar type ('const struct hashmap_entry *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                       const struct hashmap_entry *eptr,
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/bloom.c:167:38: note: the first parameter in the range is 'eptr'
                       const struct hashmap_entry *eptr,
                                                   ^~~~
/datasets/git/bloom.c:168:38: note: the last parameter in the range is 'entry_or_key'
                       const struct hashmap_entry *entry_or_key,
                                                   ^~~~~~~~~~~~
/datasets/git/bloom.c:171:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const struct pathmap_hash_entry *e1, *e2;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/bloom.c:171:35: warning: variable 'e1' is not initialized [cppcoreguidelines-init-variables]
        const struct pathmap_hash_entry *e1, *e2;
                                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/bloom.c:171:35: warning: variable name 'e1' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/bloom.c:171:40: warning: variable 'e2' is not initialized [cppcoreguidelines-init-variables]
        const struct pathmap_hash_entry *e1, *e2;
                                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/bloom.c:171:40: warning: variable name 'e2' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/bloom.c:182:20: warning: 0xFF is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        filter->data[0] = 0xFF;
                          ^
/datasets/git/bloom.c:186:22: warning: function 'get_or_compute_bloom_filter' has cognitive complexity of 49 (threshold 25) [readability-function-cognitive-complexity]
struct bloom_filter *get_or_compute_bloom_filter(struct repository *r,
                     ^
/datasets/git/bloom.c:196:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (computed)
        ^
/datasets/git/bloom.c:199:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!bloom_filters.slab_size)
        ^
/datasets/git/bloom.c:204:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!filter->data) {
        ^
/datasets/git/bloom.c:206:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (repo_find_commit_pos_in_graph(r, c, &graph_pos))
                ^
/datasets/git/bloom.c:211:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (filter->data && filter->len)
        ^
/datasets/git/bloom.c:211:19: note: +1
        if (filter->data && filter->len)
                         ^
/datasets/git/bloom.c:213:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!compute_if_not_present)
        ^
/datasets/git/bloom.c:225:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (c->parents)
        ^
/datasets/git/bloom.c:227:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/bloom.c:231:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (diff_queued_diff.nr <= settings->max_changed_paths) {
        ^
/datasets/git/bloom.c:236:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < diff_queued_diff.nr; i++) {
                ^
/datasets/git/bloom.c:247:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        do {
                        ^
/datasets/git/bloom.c:250:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                FLEX_ALLOC_STR(e, path, path);
                                ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^
/datasets/git/./git-compat-util.h:1151:47: note: expanded from macro 'FLEX_ALLOC_MEM'
#define FLEX_ALLOC_MEM(x, flexname, buf, len) do { \
                                              ^
/datasets/git/bloom.c:253:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!hashmap_get(&pathmap, &e->entry, NULL))
                                ^
/datasets/git/bloom.c:255:5: note: +1, nesting level increased to 4
                                else
                                ^
/datasets/git/bloom.c:258:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!last_slash)
                                ^
/datasets/git/bloom.c:267:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (hashmap_get_size(&pathmap) > settings->max_changed_paths) {
                ^
/datasets/git/bloom.c:269:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (computed)
                        ^
/datasets/git/bloom.c:271:4: note: +1
                        goto cleanup;
                        ^
/datasets/git/bloom.c:275:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!filter->len) {
                ^
/datasets/git/bloom.c:276:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (computed)
                        ^
/datasets/git/bloom.c:282:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                hashmap_for_each_entry(&pathmap, &iter, e, entry) {
                ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/bloom.c:291:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/bloom.c:292:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < diff_queued_diff.nr; i++)
                ^
/datasets/git/bloom.c:296:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (computed)
                ^
/datasets/git/bloom.c:300:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (computed)
        ^
/datasets/git/bloom.c:304:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        DIFF_QUEUE_CLEAR(&diff_queued_diff);
        ^
./diffcore.h:155:2: note: expanded from macro 'DIFF_QUEUE_CLEAR'
        do { \
        ^
/datasets/git/bloom.c:186:69: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
struct bloom_filter *get_or_compute_bloom_filter(struct repository *r,
                                                                    ^
/datasets/git/bloom.c:187:23: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                                                 struct commit *c,
                                                                ^
/datasets/git/bloom.c:192:23: warning: variable 'filter' is not initialized [cppcoreguidelines-init-variables]
        struct bloom_filter *filter;
                             ^
                                    = NULL
/datasets/git/bloom.c:193:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/bloom.c:193:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/bloom.c:196:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (computed)
                     ^
                      {
/datasets/git/bloom.c:199:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!bloom_filters.slab_size)
                                     ^
                                      {
/datasets/git/bloom.c:205:12: warning: variable 'graph_pos' is not initialized [cppcoreguidelines-init-variables]
                uint32_t graph_pos;
                         ^
                                   = 0
/datasets/git/bloom.c:206:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (repo_find_commit_pos_in_graph(r, c, &graph_pos))
                                                                    ^
                                                                     {
/datasets/git/bloom.c:211:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (filter->data && filter->len)
                                        ^
                                         {
/datasets/git/bloom.c:213:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!compute_if_not_present)
                                    ^
                                     {
/datasets/git/bloom.c:219:24: warning: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        diffopt.max_changes = settings->max_changed_paths;
                              ^
/datasets/git/bloom.c:225:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (c->parents)
                       ^
                        {
/datasets/git/bloom.c:227:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/bloom.c:233:30: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
                struct pathmap_hash_entry *e;
                                           ^
                                             = NULL
/datasets/git/bloom.c:233:30: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/bloom.c:237:4: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                        const char *path = diff_queued_diff.queue[i]->two->path;
                        ^
/datasets/git/bloom.c:236:15: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < diff_queued_diff.nr; i++) {
                            ^
/datasets/git/bloom.c:233:3: note: inferred assignment of ID-dependent value from ID-dependent 
                struct pathmap_hash_entry *e;
                ^
/datasets/git/bloom.c:250:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                FLEX_ALLOC_STR(e, path, path);
                                ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^
/datasets/git/./git-compat-util.h:1151:47: note: expanded from macro 'FLEX_ALLOC_MEM'
#define FLEX_ALLOC_MEM(x, flexname, buf, len) do { \
                                              ^
/datasets/git/bloom.c:250:5: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                                FLEX_ALLOC_STR(e, path, path);
                                ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/bloom.c:250:5: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                                FLEX_ALLOC_STR(e, path, path);
                                ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/bloom.c:253:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!hashmap_get(&pathmap, &e->entry, NULL))
                                                                            ^
                                                                             {
/datasets/git/bloom.c:255:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                else
                                    ^
                                     {
/datasets/git/bloom.c:258:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!last_slash)
                                                ^
                                                 {
/datasets/git/bloom.c:262:13: warning: backward branch (do loop) is ID-dependent due to variable reference to 'path' and may cause performance degradation [altera-id-dependent-backward-branch]
                        } while (*path);
                                 ^
/datasets/git/bloom.c:269:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (computed)
                                     ^
                                      {
/datasets/git/bloom.c:270:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                *computed |= BLOOM_TRUNC_LARGE;
                                ^            ~~~~~~~~~~~~~~~~~
/datasets/git/bloom.c:276:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (computed)
                                     ^
                                      {
/datasets/git/bloom.c:277:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                *computed |= BLOOM_TRUNC_EMPTY;
                                ^            ~~~~~~~~~~~~~~~~~
/datasets/git/bloom.c:282:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                hashmap_for_each_entry(&pathmap, &iter, e, entry) {
                ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/bloom.c:282:43: warning: backward branch (for loop) is ID-dependent due to variable reference to 'e' and may cause performance degradation [altera-id-dependent-backward-branch]
                hashmap_for_each_entry(&pathmap, &iter, e, entry) {
                                                        ^
/datasets/git/bloom.c:292:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < diff_queued_diff.nr; i++)
                ^
/datasets/git/bloom.c:292:15: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < diff_queued_diff.nr; i++)
                            ^
/datasets/git/bloom.c:292:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < diff_queued_diff.nr; i++)
                                                         ^
                                                          {
/datasets/git/bloom.c:296:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (computed)
                             ^
                              {
/datasets/git/bloom.c:297:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        *computed |= BLOOM_TRUNC_LARGE;
                        ^            ~~~~~~~~~~~~~~~~~
/datasets/git/bloom.c:300:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (computed)
                     ^
                      {
/datasets/git/bloom.c:301:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                *computed |= BLOOM_COMPUTED;
                ^            ~~~~~~~~~~~~~~
/datasets/git/bloom.c:304:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        DIFF_QUEUE_CLEAR(&diff_queued_diff);
        ^
./diffcore.h:155:2: note: expanded from macro 'DIFF_QUEUE_CLEAR'
        do { \
        ^
/datasets/git/bloom.c:313:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/bloom.c:313:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/bloom.c:316:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!mod)
                 ^
                  {
/datasets/git/bloom.c:319:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < settings->num_hashes; i++) {
        ^
/datasets/git/bloom.c:322:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(filter->data[block_pos] & get_bitmask(hash_mod)))
                                                                       ^
                                                                        {
/datasets/git/branch.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "cache.h"
^        ~~~~~~~~~
         "branch.h"
/datasets/git/branch.c:15:8: warning: accessing fields in struct 'tracking' is inefficient due to padding; only needs 44 bytes but is using 48 bytes [altera-struct-pack-align]
struct tracking {
       ^
/datasets/git/branch.c:15:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'tracking'
/datasets/git/branch.c:15:8: warning: accessing fields in struct 'tracking' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct tracking {
       ^
/datasets/git/branch.c:15:8: note: use "__attribute__((aligned(64)))" to align struct 'tracking' to 64 bytes
/datasets/git/branch.c:22:8: warning: accessing fields in struct 'find_tracked_branch_cb' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct find_tracked_branch_cb {
       ^
/datasets/git/branch.c:22:8: note: use "__attribute__((aligned(64)))" to align struct 'find_tracked_branch_cb' to 64 bytes
/datasets/git/branch.c:56:2: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
        switch (autorebase) {
        ^
/datasets/git/branch.c:83:12: warning: function 'install_branch_config_multiple_remotes' has cognitive complexity of 47 (threshold 25) [readability-function-cognitive-complexity]
static int install_branch_config_multiple_remotes(int flag, const char *local,
           ^
/datasets/git/branch.c:91:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!remotes->nr)
        ^
/datasets/git/branch.c:93:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (rebasing && remotes->nr > 1)
        ^
/datasets/git/branch.c:93:15: note: +1
        if (rebasing && remotes->nr > 1)
                     ^
/datasets/git/branch.c:101:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!origin)
        ^
/datasets/git/branch.c:102:3: note: +1
                for_each_string_list_item(item, remotes)
                ^
/datasets/git/./string-list.h:152:12: note: expanded from macro 'for_each_string_list_item'
             item && item < (list)->items + (list)->nr; \
                  ^
/datasets/git/branch.c:103:4: note: +2, including nesting penalty of 1, nesting level increased to 2
                        if (skip_prefix(item->string, "refs/heads/", &shortname)
                        ^
/datasets/git/branch.c:104:8: note: +1
                            && !strcmp(local, shortname)) {
                            ^
/datasets/git/branch.c:111:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (git_config_set_gently(key.buf, origin ? origin : ".") < 0)
        ^
/datasets/git/branch.c:111:44: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (git_config_set_gently(key.buf, origin ? origin : ".") < 0)
                                                  ^
/datasets/git/branch.c:122:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (git_config_set_gently(key.buf, NULL) < 0)
        ^
/datasets/git/branch.c:124:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for_each_string_list_item(item, remotes)
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/branch.c:124:2: note: +1
        for_each_string_list_item(item, remotes)
        ^
/datasets/git/./string-list.h:152:12: note: expanded from macro 'for_each_string_list_item'
             item && item < (list)->items + (list)->nr; \
                  ^
/datasets/git/branch.c:125:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (git_config_set_multivar_gently(key.buf, item->string, CONFIG_REGEX_NONE, 0) < 0)
                ^
/datasets/git/branch.c:128:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (rebasing) {
        ^
/datasets/git/branch.c:131:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (git_config_set_gently(key.buf, "true") < 0)
                ^
/datasets/git/branch.c:136:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (flag & BRANCH_CONFIG_VERBOSE) {
        ^
/datasets/git/branch.c:140:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for_each_string_list_item(item, remotes) {
                ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/branch.c:140:3: note: +1
                for_each_string_list_item(item, remotes) {
                ^
/datasets/git/./string-list.h:152:12: note: expanded from macro 'for_each_string_list_item'
             item && item < (list)->items + (list)->nr; \
                  ^
/datasets/git/branch.c:143:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (origin) {
                        ^
/datasets/git/branch.c:149:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/branch.c:155:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (remotes->nr == 1) {
                ^
/datasets/git/branch.c:160:23: note: +3, including nesting penalty of 2, nesting level increased to 3
                        printf_ln(rebasing ?
                                           ^
/datasets/git/branch.c:164:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/branch.c:166:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for_each_string_list_item(item, &friendly_ref_names)
                        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/branch.c:166:4: note: +1
                        for_each_string_list_item(item, &friendly_ref_names)
                        ^
/datasets/git/./string-list.h:152:12: note: expanded from macro 'for_each_string_list_item'
             item && item < (list)->items + (list)->nr; \
                  ^
/datasets/git/branch.c:181:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (remotes->nr == 1)
        ^
/datasets/git/branch.c:183:11: note: +2, including nesting penalty of 1, nesting level increased to 2
                        origin ? origin : "",
                               ^
/datasets/git/branch.c:184:11: note: +2, including nesting penalty of 1, nesting level increased to 2
                        origin ? "/" : "",
                               ^
/datasets/git/branch.c:186:2: note: +1, nesting level increased to 1
        else {
        ^
/datasets/git/branch.c:188:18: note: +2, including nesting penalty of 1, nesting level increased to 2
                        local, origin ? origin : ".");
                                      ^
/datasets/git/branch.c:189:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for_each_string_list_item(item, remotes)
                ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/branch.c:189:3: note: +1
                for_each_string_list_item(item, remotes)
                ^
/datasets/git/./string-list.h:152:12: note: expanded from macro 'for_each_string_list_item'
             item && item < (list)->items + (list)->nr; \
                  ^
/datasets/git/branch.c:88:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/branch.c:88:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct string_list_item *item;
        ^
/datasets/git/branch.c:91:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!remotes->nr)
                         ^
                          {
/datasets/git/branch.c:93:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (rebasing && remotes->nr > 1)
                                        ^
                                         {
/datasets/git/branch.c:101:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!origin)
                    ^
                     {
/datasets/git/branch.c:102:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for_each_string_list_item(item, remotes)
                ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/branch.c:102:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
                for_each_string_list_item(item, remotes)
                                          ^
/datasets/git/branch.c:111:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (git_config_set_gently(key.buf, origin ? origin : ".") < 0)
                                                                      ^
                                                                       {
/datasets/git/branch.c:122:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (git_config_set_gently(key.buf, NULL) < 0)
                                                     ^
                                                      {
/datasets/git/branch.c:124:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(item, remotes)
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/branch.c:124:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(item, remotes)
                                  ^
/datasets/git/branch.c:125:87: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (git_config_set_multivar_gently(key.buf, item->string, CONFIG_REGEX_NONE, 0) < 0)
                                                                                                    ^
                                                                                                     {
/datasets/git/branch.c:131:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (git_config_set_gently(key.buf, "true") < 0)
                                                               ^
                                                                {
/datasets/git/branch.c:136:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flag & BRANCH_CONFIG_VERBOSE) {
            ^~~~
/datasets/git/branch.c:88:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct string_list_item *item;
        ^
/datasets/git/branch.c:140:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for_each_string_list_item(item, remotes) {
                ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/branch.c:88:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct string_list_item *item;
        ^
/datasets/git/branch.c:140:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
                for_each_string_list_item(item, remotes) {
                                          ^
/datasets/git/branch.c:163:12: warning: Dereference of null pointer [clang-analyzer-core.NullDereference]
                                local, friendly_ref_names.items[0].string);
                                       ^
/datasets/git/branch.c:745:6: note: Assuming 'tracking_name' is non-null
        if (!tracking_name)
            ^~~~~~~~~~~~~~
/datasets/git/branch.c:745:2: note: Taking false branch
        if (!tracking_name)
        ^
/datasets/git/branch.c:753:14: note: Assuming 'i' is >= field 'entry_nr'
        for (i = 0; i < submodule_entry_list.entry_nr; i++) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/branch.c:753:2: note: Loop condition is false. Execution continues on line 775
        for (i = 0; i < submodule_entry_list.entry_nr; i++) {
        ^
/datasets/git/branch.c:777:6: note: 'dry_run' is 0
        if (dry_run)
            ^~~~~~~
/datasets/git/branch.c:777:2: note: Taking false branch
        if (dry_run)
        ^
/datasets/git/branch.c:786:6: note: Assuming 'track' is not equal to 0
        if (track)
            ^~~~~
/datasets/git/branch.c:786:2: note: Taking true branch
        if (track)
        ^
/datasets/git/branch.c:787:3: note: Calling 'setup_tracking'
                setup_tracking(name, tracking_name, track, quiet);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/branch.c:249:21: note: Assuming 'quiet' is 0
        int config_flags = quiet ? 0 : BRANCH_CONFIG_VERBOSE;
                           ^~~~~
/datasets/git/branch.c:249:21: note: '?' condition is false
/datasets/git/branch.c:255:7: note: 'track' is not equal to 0
        if (!track)
             ^~~~~
/datasets/git/branch.c:255:2: note: Taking false branch
        if (!track)
        ^
/datasets/git/branch.c:261:6: note: Assuming 'track' is not equal to BRANCH_TRACK_INHERIT
        if (track != BRANCH_TRACK_INHERIT)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/branch.c:261:2: note: Taking true branch
        if (track != BRANCH_TRACK_INHERIT)
        ^
/datasets/git/branch.c:266:6: note: Assuming field 'matches' is not equal to 0
        if (!tracking.matches)
            ^~~~~~~~~~~~~~~~~
/datasets/git/branch.c:266:2: note: Taking false branch
        if (!tracking.matches)
        ^
/datasets/git/branch.c:285:6: note: Assuming field 'matches' is <= 1
        if (tracking.matches > 1) {
            ^~~~~~~~~~~~~~~~~~~~
/datasets/git/branch.c:285:2: note: Taking false branch
        if (tracking.matches > 1) {
        ^
/datasets/git/branch.c:319:6: note: Assuming 'track' is not equal to BRANCH_TRACK_SIMPLE
        if (track == BRANCH_TRACK_SIMPLE) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/branch.c:319:2: note: Taking false branch
        if (track == BRANCH_TRACK_SIMPLE) {
        ^
/datasets/git/branch.c:334:6: note: Assuming field 'nr' is >= 1
        if (tracking.srcs->nr < 1)
            ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/branch.c:334:2: note: Taking false branch
        if (tracking.srcs->nr < 1)
        ^
/datasets/git/branch.c:336:6: note: Calling 'install_branch_config_multiple_remotes'
        if (install_branch_config_multiple_remotes(config_flags, new_ref,
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/branch.c:89:17: note: Calling 'should_setup_rebase'
        int rebasing = should_setup_rebase(origin);
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/branch.c:56:2: note: Control jumps to 'case AUTOREBASE_NEVER:'  at line 57
        switch (autorebase) {
        ^
/datasets/git/branch.c:58:3: note: Returning zero, which participates in a condition later
                return 0;
                ^~~~~~~~
/datasets/git/branch.c:89:17: note: Returning from 'should_setup_rebase'
        int rebasing = should_setup_rebase(origin);
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/branch.c:91:16: note: Field 'nr' is not equal to 0
        if (!remotes->nr)
                      ^
/datasets/git/branch.c:91:2: note: Taking false branch
        if (!remotes->nr)
        ^
/datasets/git/branch.c:93:6: note: 'rebasing' is 0
        if (rebasing && remotes->nr > 1)
            ^~~~~~~~
/datasets/git/branch.c:93:15: note: Left side of '&&' is false
        if (rebasing && remotes->nr > 1)
                     ^
/datasets/git/branch.c:101:6: note: Assuming 'origin' is non-null
        if (!origin)
            ^~~~~~~
/datasets/git/branch.c:101:2: note: Taking false branch
        if (!origin)
        ^
/datasets/git/branch.c:111:37: note: 'origin' is non-null
        if (git_config_set_gently(key.buf, origin ? origin : ".") < 0)
                                           ^~~~~~
/datasets/git/branch.c:111:37: note: '?' condition is true
/datasets/git/branch.c:111:6: note: Assuming the condition is false
        if (git_config_set_gently(key.buf, origin ? origin : ".") < 0)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/branch.c:111:2: note: Taking false branch
        if (git_config_set_gently(key.buf, origin ? origin : ".") < 0)
        ^
/datasets/git/branch.c:122:6: note: Assuming the condition is false
        if (git_config_set_gently(key.buf, NULL) < 0)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/branch.c:122:2: note: Taking false branch
        if (git_config_set_gently(key.buf, NULL) < 0)
        ^
/datasets/git/branch.c:124:28: note: Assuming 'item' is null
        for_each_string_list_item(item, remotes)
                                  ^
/datasets/git/./string-list.h:152:7: note: expanded from macro 'for_each_string_list_item'
             item && item < (list)->items + (list)->nr; \
             ^~~~
/datasets/git/branch.c:124:2: note: Left side of '&&' is false
        for_each_string_list_item(item, remotes)
        ^
/datasets/git/./string-list.h:152:12: note: expanded from macro 'for_each_string_list_item'
             item && item < (list)->items + (list)->nr; \
                  ^
/datasets/git/branch.c:128:6: note: 'rebasing' is 0
        if (rebasing) {
            ^~~~~~~~
/datasets/git/branch.c:128:2: note: Taking false branch
        if (rebasing) {
        ^
/datasets/git/branch.c:136:2: note: Taking true branch
        if (flag & BRANCH_CONFIG_VERBOSE) {
        ^
/datasets/git/branch.c:138:3: note: 'friendly_ref_names.items' initialized to a null pointer value
                struct string_list friendly_ref_names = STRING_LIST_INIT_DUP;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/branch.c:140:29: note: 'item' is null
                for_each_string_list_item(item, remotes) {
                                          ^
/datasets/git/./string-list.h:152:7: note: expanded from macro 'for_each_string_list_item'
             item && item < (list)->items + (list)->nr; \
             ^~~~
/datasets/git/branch.c:140:3: note: Left side of '&&' is false
                for_each_string_list_item(item, remotes) {
                ^
/datasets/git/./string-list.h:152:12: note: expanded from macro 'for_each_string_list_item'
             item && item < (list)->items + (list)->nr; \
                  ^
/datasets/git/branch.c:155:7: note: Assuming field 'nr' is equal to 1
                if (remotes->nr == 1) {
                    ^~~~~~~~~~~~~~~~
/datasets/git/branch.c:155:3: note: Taking true branch
                if (remotes->nr == 1) {
                ^
/datasets/git/branch.c:160:14: note: 'rebasing' is 0
                        printf_ln(rebasing ?
                                  ^~~~~~~~
/datasets/git/branch.c:160:14: note: '?' condition is false
/datasets/git/branch.c:163:12: note: Dereference of null pointer
                                local, friendly_ref_names.items[0].string);
                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/branch.c:166:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for_each_string_list_item(item, &friendly_ref_names)
                        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/branch.c:88:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct string_list_item *item;
        ^
/datasets/git/branch.c:166:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for_each_string_list_item(item, &friendly_ref_names)
                                                  ^
/datasets/git/branch.c:181:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (remotes->nr == 1)
                             ^
                              {
/datasets/git/branch.c:189:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for_each_string_list_item(item, remotes)
                ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/branch.c:189:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
                for_each_string_list_item(item, remotes)
                                          ^
/datasets/git/branch.c:197:56: warning: 2 adjacent parameters of 'install_branch_config' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
int install_branch_config(int flag, const char *local, const char *origin,
                                                       ^~~~~~~~~~~~~~~~~~~
/datasets/git/branch.c:197:68: note: the first parameter in the range is 'origin'
int install_branch_config(int flag, const char *local, const char *origin,
                                                                   ^~~~~~
/datasets/git/branch.c:198:15: note: the last parameter in the range is 'remote'
                const char *remote)
                            ^~~~~~
/datasets/git/branch.c:200:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/branch.c:211:14: warning: variable 'bare_ref' is not initialized [cppcoreguidelines-init-variables]
        const char *bare_ref;
                    ^
                             = NULL
/datasets/git/branch.c:212:17: warning: variable 'branch' is not initialized [cppcoreguidelines-init-variables]
        struct branch *branch;
                       ^
                              = NULL
/datasets/git/branch.c:213:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/branch.c:213:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/branch.c:232:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < branch->merge_nr; i++)
        ^
/datasets/git/branch.c:232:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'branch' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < branch->merge_nr; i++)
                    ^
/datasets/git/branch.c:232:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < branch->merge_nr; i++)
                                              ^
                                               {
/datasets/git/branch.c:244:28: warning: 2 adjacent parameters of 'setup_tracking' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void setup_tracking(const char *new_ref, const char *orig_ref,
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/branch.c:244:40: note: the first parameter in the range is 'new_ref'
static void setup_tracking(const char *new_ref, const char *orig_ref,
                                       ^~~~~~~
/datasets/git/branch.c:244:61: note: the last parameter in the range is 'orig_ref'
static void setup_tracking(const char *new_ref, const char *orig_ref,
                                                            ^~~~~~~~
/datasets/git/branch.c:245:7: warning: 2 adjacent parameters of 'setup_tracking' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                           enum branch_track track, int quiet)
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/branch.c:245:25: note: the first parameter in the range is 'track'
                           enum branch_track track, int quiet)
                                             ^~~~~
/datasets/git/branch.c:245:36: note: the last parameter in the range is 'quiet'
                           enum branch_track track, int quiet)
                                                        ^~~~~
/datasets/git/branch.c:245:32: note: 'enum branch_track' and 'int' may be implicitly converted
                           enum branch_track track, int quiet)
                                                    ^
/datasets/git/branch.c:255:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!track)
                   ^
                    {
/datasets/git/branch.c:258:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&tracking, 0, sizeof(tracking));
        ^~~~~~
/datasets/git/branch.c:258:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&tracking, 0, sizeof(tracking));
        ^~~~~~
/datasets/git/branch.c:261:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (track != BRANCH_TRACK_INHERIT)
                                          ^
                                           {
/datasets/git/branch.c:263:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (inherit_tracking(&tracking, orig_ref))
                                                       ^
                                                        {
/datasets/git/branch.c:266:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!tracking.matches)
                              ^
                               {
/datasets/git/branch.c:290:29: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
                        struct string_list_item *item;
                                                 ^
                                                      = NULL
/datasets/git/branch.c:292:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for_each_string_list_item(item, &ftb_cb.ambiguous_remotes)
                        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/branch.c:292:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for_each_string_list_item(item, &ftb_cb.ambiguous_remotes)
                                                  ^
/datasets/git/branch.c:316:3: warning: function is not thread safe [concurrency-mt-unsafe]
                exit(status);
                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/branch.c:290:4: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                        struct string_list_item *item;
                        ^
/datasets/git/branch.c:327:15: warning: variable 'tracked_branch' is not initialized [cppcoreguidelines-init-variables]
                const char *tracked_branch;
                            ^
                                           = NULL
/datasets/git/branch.c:330:7: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                    strcmp(tracked_branch, new_ref))
                    ^
                                                    != 0
/datasets/git/branch.c:330:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    strcmp(tracked_branch, new_ref))
                                                    ^
                                                     {
/datasets/git/branch.c:334:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (tracking.srcs->nr < 1)
                                  ^
                                   {
/datasets/git/branch.c:337:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                tracking.remote, tracking.srcs) < 0)
                                                                    ^
                                                                     {
/datasets/git/branch.c:338:3: warning: function is not thread safe [concurrency-mt-unsafe]
                exit(1);
                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/branch.c:347:8: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
        char *v = NULL;
              ^
/datasets/git/branch.c:367:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strbuf_check_branch_ref(ref, name))
                                               ^
                                                {
/datasets/git/branch.c:373:12: warning: variable 'initialized_checked_out_branches' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int initialized_checked_out_branches;
           ^
/datasets/git/branch.c:374:22: warning: variable 'current_checked_out_branches' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct strmap current_checked_out_branches = STRMAP_INIT;
                     ^
/datasets/git/branch.c:378:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0;
            ^
/datasets/git/branch.c:379:20: warning: variable 'worktrees' is not initialized [cppcoreguidelines-init-variables]
        struct worktree **worktrees;
                          ^
                                    = NULL
/datasets/git/branch.c:381:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (initialized_checked_out_branches)
                                             ^
                                              {
/datasets/git/branch.c:388:9: warning: variable 'old' is not initialized [cppcoreguidelines-init-variables]
                char *old;
                      ^
                          = NULL
/datasets/git/branch.c:390:20: warning: variable name 'wt' is too short, expected at least 3 characters [readability-identifier-length]
                struct worktree *wt = worktrees[i++];
                                 ^
/datasets/git/branch.c:430:4: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                        struct string_list_item *item;
                        ^
/datasets/git/branch.c:393:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (wt->is_bare)
                                ^
                                 {
/datasets/git/branch.c:430:29: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
                        struct string_list_item *item;
                                                 ^
                                                      = NULL
/datasets/git/branch.c:431:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for_each_string_list_item(item, &update_refs) {
                        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/branch.c:431:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for_each_string_list_item(item, &update_refs) {
                                                  ^
/datasets/git/branch.c:458:14: warning: variable 'path' is not initialized [cppcoreguidelines-init-variables]
        const char *path;
                    ^
                         = NULL
/datasets/git/branch.c:459:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!validate_branchname(name, ref))
                                            ^
                                             {
/datasets/git/branch.c:462:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!force)
                   ^
                    {
/datasets/git/branch.c:466:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if ((path = branch_checked_out(ref->buf)))
             ^
/datasets/git/branch.c:466:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/branch.c:466:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/branch.c:466:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((path = branch_checked_out(ref->buf)))
                                                  ^
                                                   {
/datasets/git/branch.c:478:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&query, 0, sizeof(struct refspec_item));
        ^~~~~~
/datasets/git/branch.c:478:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&query, 0, sizeof(struct refspec_item));
        ^~~~~~
/datasets/git/branch.c:521:50: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void dwim_branch_start(struct repository *r, const char *start_name,
                                                 ^
/datasets/git/branch.c:525:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/branch.c:527:8: warning: variable 'real_ref' is not initialized [cppcoreguidelines-init-variables]
        char *real_ref;
              ^
                       = NULL
/datasets/git/branch.c:530:71: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (track == BRANCH_TRACK_EXPLICIT || track == BRANCH_TRACK_OVERRIDE)
                                                                             ^
                                                                              {
/datasets/git/branch.c:539:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        exit(code);
                        ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/branch.c:544:31: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        switch (dwim_ref(start_name, strlen(start_name), &oid, &real_ref, 0)) {
                                     ^
/datasets/git/branch.c:547:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (explicit_tracking)
                                      ^
                                       {
/datasets/git/branch.c:554:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (explicit_tracking)
                                              ^
                                               {
/datasets/git/branch.c:556:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/branch.c:557:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                FREE_AND_NULL(real_ref);
                                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/branch.c:565:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if (!(commit = lookup_commit_reference(r, &oid)))
              ^
/datasets/git/branch.c:565:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/branch.c:565:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/branch.c:565:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(commit = lookup_commit_reference(r, &oid)))
                                                         ^
                                                          {
/datasets/git/branch.c:571:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (out_oid)
                    ^
                     {
/datasets/git/branch.c:574:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(real_ref);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/branch.c:577:39: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void create_branch(struct repository *r,
                                      ^
/datasets/git/branch.c:578:6: warning: 2 adjacent parameters of 'create_branch' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                   const char *name, const char *start_name,
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/branch.c:578:18: note: the first parameter in the range is 'name'
                   const char *name, const char *start_name,
                               ^~~~
/datasets/git/branch.c:578:36: note: the last parameter in the range is 'start_name'
                   const char *name, const char *start_name,
                                                 ^~~~~~~~~~
/datasets/git/branch.c:579:17: warning: 3 adjacent parameters of 'create_branch' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                   int force, int clobber_head_ok, int reflog,
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/branch.c:579:21: note: the first parameter in the range is 'clobber_head_ok'
                   int force, int clobber_head_ok, int reflog,
                                  ^~~~~~~~~~~~~~~
/datasets/git/branch.c:580:10: note: the last parameter in the range is 'quiet'
                   int quiet, enum branch_track track, int dry_run)
                       ^~~~~
/datasets/git/branch.c:580:17: warning: 2 adjacent parameters of 'create_branch' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                   int quiet, enum branch_track track, int dry_run)
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/branch.c:580:35: note: the first parameter in the range is 'track'
                   int quiet, enum branch_track track, int dry_run)
                                                ^~~~~
/datasets/git/branch.c:580:46: note: the last parameter in the range is 'dry_run'
                   int quiet, enum branch_track track, int dry_run)
                                                           ^~~~~~~
/datasets/git/branch.c:580:42: note: 'enum branch_track' and 'int' may be implicitly converted
                   int quiet, enum branch_track track, int dry_run)
                                                       ^
/datasets/git/branch.c:583:8: warning: variable 'real_ref' is not initialized [cppcoreguidelines-init-variables]
        char *real_ref;
              ^
                       = NULL
/datasets/git/branch.c:586:26: warning: variable 'transaction' is not initialized [cppcoreguidelines-init-variables]
        struct ref_transaction *transaction;
                                ^
                                            = NULL
/datasets/git/branch.c:588:8: warning: variable 'msg' is not initialized [cppcoreguidelines-init-variables]
        char *msg;
              ^
                  = NULL
/datasets/git/branch.c:590:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (track == BRANCH_TRACK_OVERRIDE)
                                           ^
                                            {
/datasets/git/branch.c:592:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (clobber_head_ok && !force)
                                      ^
                                       {
/datasets/git/branch.c:602:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (dry_run)
                    ^
                     {
/datasets/git/branch.c:605:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (reflog)
                   ^
                    {
/datasets/git/branch.c:608:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (forcing)
                    ^
                     {
/datasets/git/branch.c:610:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/branch.c:617:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                ref_transaction_commit(transaction, &err))
                                                          ^
                                                           {
/datasets/git/branch.c:623:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (real_ref && track)
                              ^
                               {
/datasets/git/branch.c:624:28: warning: 11 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                setup_tracking(ref.buf + 11, real_ref, track, quiet);
                                         ^
/datasets/git/branch.c:631:49: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void dwim_and_setup_tracking(struct repository *r, const char *new_ref,
                                                ^
/datasets/git/branch.c:631:52: warning: 2 adjacent parameters of 'dwim_and_setup_tracking' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
void dwim_and_setup_tracking(struct repository *r, const char *new_ref,
                                                   ^~~~~~~~~~~~~~~~~~~~
/datasets/git/branch.c:631:64: note: the first parameter in the range is 'new_ref'
void dwim_and_setup_tracking(struct repository *r, const char *new_ref,
                                                               ^~~~~~~
/datasets/git/branch.c:632:21: note: the last parameter in the range is 'orig_ref'
                             const char *orig_ref, enum branch_track track,
                                         ^~~~~~~~
/datasets/git/branch.c:635:8: warning: variable 'real_orig_ref' is not initialized [cppcoreguidelines-init-variables]
        char *real_orig_ref;
              ^
                            = NULL
/datasets/git/branch.c:647:55: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int submodule_create_branch(struct repository *r,
                                                      ^
/datasets/git/branch.c:650:35: warning: 5 adjacent parameters of 'submodule_create_branch' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                   const char *tracking_name, int force,
                                                              ^~~~~~~~~~
/datasets/git/branch.c:650:39: note: the first parameter in the range is 'force'
                                   const char *tracking_name, int force,
                                                                  ^~~~~
/datasets/git/branch.c:652:37: note: the last parameter in the range is 'dry_run'
                                   enum branch_track track, int dry_run)
                                                                ^~~~~~~
/datasets/git/branch.c:652:8: note: 'int' and 'enum branch_track' may be implicitly converted
                                   enum branch_track track, int dry_run)
                                   ^
/datasets/git/branch.c:675:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (dry_run)
                    ^
                     {
/datasets/git/branch.c:677:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (force)
                  ^
                   {
/datasets/git/branch.c:679:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (quiet)
                  ^
                   {
/datasets/git/branch.c:681:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (reflog)
                   ^
                    {
/datasets/git/branch.c:684:2: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
        switch (track) {
        ^
/datasets/git/branch.c:709:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if ((ret = start_command(&child)))
             ^
/datasets/git/branch.c:709:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/branch.c:709:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/branch.c:709:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((ret = start_command(&child)))
                                          ^
                                           {
/datasets/git/branch.c:715:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/branch.c:716:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "%s", out_buf.buf);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/branch.c:716:3: note: cast the expression to void to silence this warning
/datasets/git/branch.c:717:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/branch.c:725:53: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void create_branches_recursively(struct repository *r, const char *name,
                                                    ^
/datasets/git/branch.c:726:6: warning: 2 adjacent parameters of 'create_branches_recursively' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                 const char *start_commitish,
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/branch.c:726:18: note: the first parameter in the range is 'start_commitish'
                                 const char *start_commitish,
                                             ^~~~~~~~~~~~~~~
/datasets/git/branch.c:727:18: note: the last parameter in the range is 'tracking_name'
                                 const char *tracking_name, int force,
                                             ^~~~~~~~~~~~~
/datasets/git/branch.c:728:29: warning: 2 adjacent parameters of 'create_branches_recursively' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                 int reflog, int quiet, enum branch_track track,
                                                        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/branch.c:728:47: note: the first parameter in the range is 'track'
                                 int reflog, int quiet, enum branch_track track,
                                                                          ^~~~~
/datasets/git/branch.c:729:10: note: the last parameter in the range is 'dry_run'
                                 int dry_run)
                                     ^~~~~~~
/datasets/git/branch.c:729:6: note: 'enum branch_track' and 'int' may be implicitly converted
                                 int dry_run)
                                 ^
/datasets/git/branch.c:731:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0;
            ^
/datasets/git/branch.c:745:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!tracking_name)
                           ^
                            {
/datasets/git/branch.c:753:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < submodule_entry_list.entry_nr; i++) {
        ^
/datasets/git/branch.c:758:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (advice_enabled(ADVICE_SUBMODULES_NOT_UPDATED))
                                                                          ^
                                                                           {
/datasets/git/branch.c:761:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        exit(code);
                        ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/branch.c:769:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            tracking_name, force, reflog, quiet, track, 1))
                                                                           ^
                                                                            {
/datasets/git/branch.c:777:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (dry_run)
                    ^
                     {
/datasets/git/branch.c:786:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (track)
                  ^
                   {
/datasets/git/branch.c:789:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < submodule_entry_list.entry_nr; i++) {
        ^
/datasets/git/branch.c:795:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            tracking_name, force, reflog, quiet, track, 0))
                                                                           ^
                                                                            {
/datasets/git/branch.c:803:51: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void remove_merge_branch_state(struct repository *r)
                                                  ^
/datasets/git/branch.c:813:45: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void remove_branch_state(struct repository *r, int verbose)
                                            ^
/datasets/git/branch.c:823:25: warning: variable 'wt' is not initialized [cppcoreguidelines-init-variables]
        const struct worktree *wt;
                               ^
                                  = NULL
/datasets/git/branch.c:823:25: warning: variable name 'wt' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/branch.c:834:39: warning: 2 adjacent parameters of 'replace_each_worktree_head_symref' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
int replace_each_worktree_head_symref(const char *oldref, const char *newref,
                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/branch.c:834:51: note: the first parameter in the range is 'oldref'
int replace_each_worktree_head_symref(const char *oldref, const char *newref,
                                                  ^~~~~~
/datasets/git/branch.c:834:71: note: the last parameter in the range is 'newref'
int replace_each_worktree_head_symref(const char *oldref, const char *newref,
                                                                      ^~~~~~
/datasets/git/branch.c:839:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/branch.c:839:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/branch.c:841:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; worktrees[i]; i++) {
        ^
/datasets/git/branch.c:842:21: warning: variable 'refs' is not initialized [cppcoreguidelines-init-variables]
                struct ref_store *refs;
                                  ^
                                       = NULL
/datasets/git/branch.c:844:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (worktrees[i]->is_detached)
                                              ^
                                               {
/datasets/git/branch.c:846:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!worktrees[i]->head_ref)
                                            ^
                                             {
/datasets/git/branch.c:848:7: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (strcmp(oldref, worktrees[i]->head_ref))
                    ^
                                                           != 0
/datasets/git/branch.c:848:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strcmp(oldref, worktrees[i]->head_ref))
                                                           ^
                                                            {
/datasets/git/branch.c:852:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (refs_create_symref(refs, "HEAD", newref, logmsg))
                                                                     ^
                                                                      {
/datasets/git/builtin/add.c:8:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "add-interactive.h"
/datasets/git/builtin/add.c:29:12: warning: variable 'patch_interactive' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int patch_interactive, add_interactive, edit_interactive;
           ^
/datasets/git/builtin/add.c:29:31: warning: variable 'add_interactive' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int patch_interactive, add_interactive, edit_interactive;
                              ^
/datasets/git/builtin/add.c:29:48: warning: variable 'edit_interactive' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int patch_interactive, add_interactive, edit_interactive;
                                               ^
/datasets/git/builtin/add.c:30:12: warning: variable 'take_worktree_changes' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int take_worktree_changes;
           ^
/datasets/git/builtin/add.c:31:12: warning: variable 'add_renormalize' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int add_renormalize;
           ^
/datasets/git/builtin/add.c:32:12: warning: variable 'pathspec_file_nul' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int pathspec_file_nul;
           ^
/datasets/git/builtin/add.c:33:12: warning: variable 'include_sparse' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int include_sparse;
           ^
/datasets/git/builtin/add.c:34:20: warning: variable 'pathspec_from_file' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *pathspec_from_file;
                   ^
/datasets/git/builtin/add.c:36:8: warning: accessing fields in struct 'update_callback_data' is inefficient due to poor alignment; currently aligned to 4 bytes, but recommended alignment is 8 bytes [altera-struct-pack-align]
struct update_callback_data {
       ^
/datasets/git/builtin/add.c:36:8: note: use "__attribute__((aligned(8)))" to align struct 'update_callback_data' to 8 bytes
/datasets/git/builtin/add.c:41:54: warning: 2 adjacent parameters of 'chmod_pathspec' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int chmod_pathspec(struct pathspec *pathspec, char flip, int show_only)
                                                     ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/add.c:41:59: note: the first parameter in the range is 'flip'
static int chmod_pathspec(struct pathspec *pathspec, char flip, int show_only)
                                                          ^~~~
/datasets/git/builtin/add.c:41:69: note: the last parameter in the range is 'show_only'
static int chmod_pathspec(struct pathspec *pathspec, char flip, int show_only)
                                                                    ^~~~~~~~~
/datasets/git/builtin/add.c:41:65: note: 'char' and 'int' may be implicitly converted
static int chmod_pathspec(struct pathspec *pathspec, char flip, int show_only)
                                                                ^
/datasets/git/builtin/add.c:43:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, ret = 0;
        ^~~~~~~~~~~~~~~
/datasets/git/builtin/add.c:43:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, ret = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/add.c:43:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/add.c:45:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < the_index.cache_nr; i++) {
        ^
/datasets/git/builtin/add.c:46:23: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                struct cache_entry *ce = the_index.cache[i];
                                    ^
/datasets/git/builtin/add.c:47:7: warning: variable 'err' is not initialized [cppcoreguidelines-init-variables]
                int err;
                    ^
                        = 0
/datasets/git/builtin/add.c:50:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (ce_skip_worktree(ce) ||
                     ^
/datasets/git/./refs/../cache.h:244:31: note: expanded from macro 'ce_skip_worktree'
#define ce_skip_worktree(ce) ((ce)->ce_flags & CE_SKIP_WORKTREE)
                              ^                ~~~~~~~~~~~~~~~~
/datasets/git/builtin/add.c:51:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                     !path_in_sparse_checkout(ce->name, &the_index)))
                                                                     ^
                                                                      {
/datasets/git/builtin/add.c:54:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pathspec && !ce_path_match(&the_index, ce, pathspec, NULL))
                                                                               ^
                                                                                {
/datasets/git/builtin/add.c:57:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!show_only)
                               ^
                                {
/datasets/git/builtin/add.c:59:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/add.c:62:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err < 0)
                            ^
                             {
/datasets/git/builtin/add.c:69:54: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static int fix_unmerged_status(struct diff_filepair *p,
                                                     ^
/datasets/git/builtin/add.c:72:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (p->status != DIFF_STATUS_UNMERGED)
                                              ^
                                               {
/datasets/git/builtin/add.c:74:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(data->flags & ADD_CACHE_IGNORE_REMOVAL) && !p->two->mode)
              ^~~~~~~~~~~
/datasets/git/builtin/add.c:74:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(data->flags & ADD_CACHE_IGNORE_REMOVAL) && !p->two->mode)
                                                                       ^
                                                                        {
/datasets/git/builtin/add.c:80:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else
        ^~~~
/datasets/git/builtin/add.c:80:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/add.c:90:55: warning: parameter name 'q' is too short, expected at least 3 characters [readability-identifier-length]
static void update_callback(struct diff_queue_struct *q,
                                                      ^
/datasets/git/builtin/add.c:91:29: warning: parameter 'opt' is unused [misc-unused-parameters]
                            struct diff_options *opt, void *cbdata)
                                                 ^
/datasets/git/builtin/add.c:93:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/add.c:93:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/add.c:96:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < q->nr; i++) {
        ^
/datasets/git/builtin/add.c:97:25: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct diff_filepair *p = q->queue[i];
                                      ^
/datasets/git/builtin/add.c:100:69: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!include_sparse && !path_in_sparse_checkout(path, &the_index))
                                                                                  ^
                                                                                   {
/datasets/git/builtin/add.c:109:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (!(data->flags & ADD_CACHE_IGNORE_ERRORS))
                                      ^~~~~~~~~~~
/datasets/git/builtin/add.c:109:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!(data->flags & ADD_CACHE_IGNORE_ERRORS))
                                                                             ^
                                                                              {
/datasets/git/builtin/add.c:115:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (data->flags & ADD_CACHE_IGNORE_REMOVAL)
                            ^~~~~~~~~~~
/datasets/git/builtin/add.c:115:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (data->flags & ADD_CACHE_IGNORE_REMOVAL)
                                                                   ^
                                                                    {
/datasets/git/builtin/add.c:117:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!(data->flags & ADD_CACHE_PRETEND))
                              ^~~~~~~~~~~
/datasets/git/builtin/add.c:117:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!(data->flags & ADD_CACHE_PRETEND))
                                                               ^
                                                                {
/datasets/git/builtin/add.c:119:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (data->flags & (ADD_CACHE_PRETEND|ADD_CACHE_VERBOSE))
                            ^~~~~~~~~~~
/datasets/git/builtin/add.c:119:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (data->flags & (ADD_CACHE_PRETEND|ADD_CACHE_VERBOSE))
                                           ^
/datasets/git/./refs/../cache.h:856:27: note: expanded from macro 'ADD_CACHE_PRETEND'
#define ADD_CACHE_PRETEND 2
                          ^
/datasets/git/builtin/add.c:119:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (data->flags & (ADD_CACHE_PRETEND|ADD_CACHE_VERBOSE))
                                                                                ^
                                                                                 {
/datasets/git/builtin/add.c:132:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&data, 0, sizeof(data));
        ^~~~~~
/datasets/git/builtin/add.c:132:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&data, 0, sizeof(data));
        ^~~~~~
/datasets/git/builtin/add.c:137:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pathspec)
                     ^
                      {
/datasets/git/builtin/add.c:160:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, retval = 0;
        ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/add.c:160:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, retval = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/add.c:160:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/add.c:162:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < the_index.cache_nr; i++) {
        ^
/datasets/git/builtin/add.c:163:23: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                struct cache_entry *ce = the_index.cache[i];
                                    ^
/datasets/git/builtin/add.c:166:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (ce_skip_worktree(ce) ||
                     ^
/datasets/git/./refs/../cache.h:244:31: note: expanded from macro 'ce_skip_worktree'
#define ce_skip_worktree(ce) ((ce)->ce_flags & CE_SKIP_WORKTREE)
                              ^                ~~~~~~~~~~~~~~~~
/datasets/git/builtin/add.c:167:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                     !path_in_sparse_checkout(ce->name, &the_index)))
                                                                     ^
                                                                      {
/datasets/git/builtin/add.c:169:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce_stage(ce))
                    ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/builtin/add.c:169:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ce_stage(ce))
                                 ^
                                  {
/datasets/git/builtin/add.c:171:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!S_ISREG(ce->ce_mode) && !S_ISLNK(ce->ce_mode))
                                                                   ^
                                                                    {
/datasets/git/builtin/add.c:173:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pathspec && !ce_path_match(&the_index, ce, pathspec, NULL))
                                                                               ^
                                                                                {
/datasets/git/builtin/add.c:175:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                retval |= add_file_to_index(&the_index, ce->name,
                ^~~~~~
/datasets/git/builtin/add.c:176:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                            flags | ADD_CACHE_RENORMALIZE);
                                            ^~~~~
/datasets/git/builtin/add.c:184:8: warning: variable 'seen' is not initialized [cppcoreguidelines-init-variables]
        char *seen;
              ^
                   = NULL
/datasets/git/builtin/add.c:185:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/add.c:185:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/add.c:186:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct dir_entry **src, **dst;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/add.c:185:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int i;
        ^
/datasets/git/builtin/add.c:186:21: warning: variable 'src' is not initialized [cppcoreguidelines-init-variables]
        struct dir_entry **src, **dst;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/add.c:186:28: warning: variable 'dst' is not initialized [cppcoreguidelines-init-variables]
        struct dir_entry **src, **dst;
                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/add.c:192:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (--i >= 0) {
        ^
/datasets/git/builtin/add.c:192:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (--i >= 0) {
               ^
/datasets/git/builtin/add.c:194:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (dir_path_match(&the_index, entry, pathspec, prefix, seen))
                                                                              ^
                                                                               {
/datasets/git/builtin/add.c:197:12: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        dir->nr = dst - dir->entries;
                  ^
/datasets/git/builtin/add.c:205:8: warning: variable 'seen' is not initialized [cppcoreguidelines-init-variables]
        char *seen;
              ^
                   = NULL
/datasets/git/builtin/add.c:206:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, ret = 0;
        ^~~~~~~~~~~~~~~
/datasets/git/builtin/add.c:206:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, ret = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/add.c:206:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/add.c:209:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int flags = REFRESH_IGNORE_SKIP_WORKTREE |
                    ^
/datasets/git/./refs/../cache.h:928:42: note: expanded from macro 'REFRESH_IGNORE_SKIP_WORKTREE'
#define REFRESH_IGNORE_SKIP_WORKTREE     (1 << 7) /* ignore skip_worktree entries */
                                         ^~~~~~~~
/datasets/git/builtin/add.c:210:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (verbose ? REFRESH_IN_PORCELAIN : REFRESH_QUIET);
                               ^
/datasets/git/./refs/../cache.h:926:43: note: expanded from macro 'REFRESH_IN_PORCELAIN'
#define REFRESH_IN_PORCELAIN             (1 << 5) /* user friendly output, not "needs update" */
                                          ^
/datasets/git/builtin/add.c:210:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (verbose ? REFRESH_IN_PORCELAIN : REFRESH_QUIET);
                                                      ^
/datasets/git/./refs/../cache.h:923:43: note: expanded from macro 'REFRESH_QUIET'
#define REFRESH_QUIET                    (1 << 2) /* be quiet about it */
                                          ^
/datasets/git/builtin/add.c:215:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < pathspec->nr; i++) {
        ^
/datasets/git/builtin/add.c:244:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/add.c:244:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/add.c:251:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                &use_builtin_add_i))
                                                    ^
                                                     {
/datasets/git/builtin/add.c:255:19: warning: variable 'mode' is not initialized [cppcoreguidelines-init-variables]
                enum add_p_mode mode;
                                ^
/datasets/git/builtin/add.c:257:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!patch_mode)
                                ^
                                 {
/datasets/git/builtin/add.c:260:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(patch_mode, "--patch"))
                                                   ^
                                                    {
/datasets/git/builtin/add.c:262:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(patch_mode, "--patch=stash"))
                                                              ^
                                                               {
/datasets/git/builtin/add.c:264:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(patch_mode, "--patch=reset"))
                                                              ^
                                                               {
/datasets/git/builtin/add.c:266:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(patch_mode, "--patch=checkout"))
                                                                 ^
                                                                  {
/datasets/git/builtin/add.c:268:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(patch_mode, "--patch=worktree"))
                                                                 ^
                                                                  {
/datasets/git/builtin/add.c:270:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/add.c:277:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (patch_mode)
                       ^
                        {
/datasets/git/builtin/add.c:279:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revision)
                     ^
                      {
/datasets/git/builtin/add.c:282:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < pathspec->nr; i++)
        ^
/datasets/git/builtin/add.c:282:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < pathspec->nr; i++)
                                          ^
                                           {
/datasets/git/builtin/add.c:295:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_PREFER_FULL |
                       ^
/datasets/git/./pathspec.h:66:30: note: expanded from macro 'PATHSPEC_PREFER_FULL'
#define PATHSPEC_PREFER_FULL (1<<1) /* No args means match everything */
                             ^
/datasets/git/builtin/add.c:296:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_SYMLINK_LEADING_PATH |
                       ^
/datasets/git/./pathspec.h:69:40: note: expanded from macro 'PATHSPEC_SYMLINK_LEADING_PATH'
#define PATHSPEC_SYMLINK_LEADING_PATH (1<<3)
                                       ^
/datasets/git/builtin/add.c:297:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_PREFIX_ORIGIN,
                       ^
/datasets/git/./pathspec.h:70:33: note: expanded from macro 'PATHSPEC_PREFIX_ORIGIN'
#define PATHSPEC_PREFIX_ORIGIN (1<<4)
                                ^
/datasets/git/builtin/add.c:310:6: warning: variable 'out' is not initialized [cppcoreguidelines-init-variables]
        int out;
            ^
                = 0
/datasets/git/builtin/add.c:311:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/builtin/add.c:315:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_read_index(the_repository) < 0)
                                                ^
                                                 {
/datasets/git/builtin/add.c:319:24: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        rev.diffopt.context = 7;
                              ^
/datasets/git/builtin/add.c:321:2: warning: Value stored to 'argc' is never read [clang-analyzer-deadcode.DeadStores]
        argc = setup_revisions(argc, argv, &rev, NULL);
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/add.c:321:2: note: Value stored to 'argc' is never read
        argc = setup_revisions(argc, argv, &rev, NULL);
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/add.c:325:50: warning: 0666 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        out = xopen(file, O_CREAT | O_WRONLY | O_TRUNC, 0666);
                                                        ^
/datasets/git/builtin/add.c:328:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (run_diff_files(&rev, 0))
                                    ^
                                     {
/datasets/git/builtin/add.c:331:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (launch_editor(file, NULL, NULL))
                                            ^
                                             {
/datasets/git/builtin/add.c:334:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (stat(file, &st))
                            ^
                             {
/datasets/git/builtin/add.c:336:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!st.st_size)
                        ^
                         {
/datasets/git/builtin/add.c:342:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (run_command(&child))
                                ^
                                 {
/datasets/git/builtin/add.c:354:12: warning: variable 'verbose' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int verbose, show_only, ignored_too, refresh_only;
           ^
/datasets/git/builtin/add.c:354:21: warning: variable 'show_only' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int verbose, show_only, ignored_too, refresh_only;
                    ^
/datasets/git/builtin/add.c:354:32: warning: variable 'ignored_too' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int verbose, show_only, ignored_too, refresh_only;
                               ^
/datasets/git/builtin/add.c:354:45: warning: variable 'refresh_only' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int verbose, show_only, ignored_too, refresh_only;
                                            ^
/datasets/git/builtin/add.c:355:12: warning: variable 'ignore_add_errors' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int ignore_add_errors, intent_to_add, ignore_missing;
           ^
/datasets/git/builtin/add.c:355:31: warning: variable 'intent_to_add' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int ignore_add_errors, intent_to_add, ignore_missing;
                              ^
/datasets/git/builtin/add.c:355:46: warning: variable 'ignore_missing' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int ignore_add_errors, intent_to_add, ignore_missing;
                                             ^
/datasets/git/builtin/add.c:356:12: warning: variable 'warn_on_embedded_repo' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int warn_on_embedded_repo = 1;
           ^
/datasets/git/builtin/add.c:359:12: warning: variable 'addremove' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int addremove = ADDREMOVE_DEFAULT;
           ^
/datasets/git/builtin/add.c:360:12: warning: variable 'addremove_explicit' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int addremove_explicit = -1; /* unspecified */
           ^
/datasets/git/builtin/add.c:362:14: warning: variable 'chmod_arg' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *chmod_arg;
             ^
/datasets/git/builtin/add.c:362:14: warning: variable 'chmod_arg' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/add.c:364:68: warning: parameter 'arg' is unused [misc-unused-parameters]
static int ignore_removal_cb(const struct option *opt, const char *arg, int unset)
                                                                   ^
/datasets/git/builtin/add.c:371:22: warning: variable 'builtin_add_options' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct option builtin_add_options[] = {
                     ^
/datasets/git/builtin/add.c:372:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT__DRY_RUN(&show_only, N_("dry run")),
        ^
/datasets/git/./parse-options.h:366:31: note: expanded from macro 'OPT__DRY_RUN'
#define OPT__DRY_RUN(var, h)  OPT_BOOL('n', "dry-run", (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/add.c:373:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT__VERBOSE(&verbose, N_("be verbose")),
        ^
/datasets/git/./parse-options.h:359:31: note: expanded from macro 'OPT__VERBOSE'
#define OPT__VERBOSE(var, h)  OPT_COUNTUP('v', "verbose", (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/add.c:375:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL('i', "interactive", &add_interactive, N_("interactive picking")),
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/add.c:376:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL('p', "patch", &patch_interactive, N_("select hunks interactively")),
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/add.c:377:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL('e', "edit", &edit_interactive, N_("edit current diff and apply")),
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/add.c:378:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT__FORCE(&ignored_too, N_("allow adding otherwise ignored files"), 0),
        ^
/datasets/git/./parse-options.h:367:31: note: expanded from macro 'OPT__FORCE'
#define OPT__FORCE(var, h, f) OPT_COUNTUP_F('f', "force",   (var), (h), (f))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/add.c:379:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL('u', "update", &take_worktree_changes, N_("update tracked files")),
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/add.c:380:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "renormalize", &add_renormalize, N_("renormalize EOL of tracked files (implies -u)")),
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/add.c:381:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL('N', "intent-to-add", &intent_to_add, N_("record only the fact that the path will be added later")),
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/add.c:382:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL('A', "all", &addremove_explicit, N_("add changes from all tracked and untracked files")),
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/add.c:387:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL( 0 , "refresh", &refresh_only, N_("don't add, only refresh the index")),
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/add.c:388:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL( 0 , "ignore-errors", &ignore_add_errors, N_("just skip files which cannot be added because of errors")),
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/add.c:389:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL( 0 , "ignore-missing", &ignore_missing, N_("check if - even missing - files are ignored in dry run")),
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/add.c:390:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "sparse", &include_sparse, N_("allow updating entries outside of the sparse-checkout cone")),
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/add.c:393:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_HIDDEN_BOOL(0, "warn-embedded-repo", &warn_on_embedded_repo,
        ^
/datasets/git/./parse-options.h:185:16: note: expanded from macro 'OPT_HIDDEN_BOOL'
                                      (h), PARSE_OPT_NOARG | PARSE_OPT_HIDDEN, NULL, 1}
                                           ^~~~~~~~~~~~~~~
/datasets/git/builtin/add.c:396:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_PATHSPEC_FILE_NUL(&pathspec_file_nul),
        ^
/datasets/git/./parse-options.h:391:35: note: expanded from macro 'OPT_PATHSPEC_FILE_NUL'
#define OPT_PATHSPEC_FILE_NUL(v)  OPT_BOOL(0, "pathspec-file-nul", v, N_("with --pathspec-from-file, pathspec elements are separated with NUL character"))
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/add.c:400:65: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int add_config(const char *var, const char *value, void *cb)
                                                                ^
/datasets/git/builtin/add.c:432:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!warn_on_embedded_repo)
                                   ^
                                    {
/datasets/git/builtin/add.c:434:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ends_with(path, "/"))
                                  ^
                                   {
/datasets/git/builtin/add.c:453:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, exit_status = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./dir.h:215:2: note: inferred assignment of ID-dependent member from ID-dependent variable dst [altera-id-dependent-backward-branch]
        int nr;
        ^
/datasets/git/builtin/add.c:453:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, exit_status = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/add.c:453:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/add.c:457:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, _(ignore_error));
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/add.c:457:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/add.c:458:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < dir->ignored_nr; i++)
                ^
/datasets/git/builtin/add.c:458:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < dir->ignored_nr; i++)
                                                     ^
                                                      {
/datasets/git/builtin/add.c:459:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, "%s\n", dir->ignored[i]->name);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/add.c:459:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/add.c:460:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (advice_enabled(ADVICE_ADD_IGNORED_FILE))
                                                            ^
                                                             {
/datasets/git/builtin/add.c:467:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < dir->nr; i++) {
        ^
/datasets/git/builtin/add.c:467:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < dir->nr; i++) {
                    ^
/datasets/git/builtin/add.c:475:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!ignore_add_errors)
                                               ^
                                                {
/datasets/git/builtin/add.c:493:5: warning: function 'cmd_add' has cognitive complexity of 92 (threshold 25) [readability-function-cognitive-complexity]
int cmd_add(int argc, const char **argv, const char *prefix)
    ^
/datasets/git/builtin/add.c:508:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (patch_interactive)
        ^
/datasets/git/builtin/add.c:510:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (add_interactive) {
        ^
/datasets/git/builtin/add.c:511:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (show_only)
                ^
/datasets/git/builtin/add.c:513:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (pathspec_from_file)
                ^
/datasets/git/builtin/add.c:518:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (edit_interactive) {
        ^
/datasets/git/builtin/add.c:519:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (pathspec_from_file)
                ^
/datasets/git/builtin/add.c:526:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (0 <= addremove_explicit)
        ^
/datasets/git/builtin/add.c:528:7: note: +1, nesting level increased to 1
        else if (take_worktree_changes && ADDREMOVE_DEFAULT)
             ^
/datasets/git/builtin/add.c:528:33: note: +1
        else if (take_worktree_changes && ADDREMOVE_DEFAULT)
                                       ^
/datasets/git/builtin/add.c:531:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (addremove && take_worktree_changes)
        ^
/datasets/git/builtin/add.c:531:16: note: +1
        if (addremove && take_worktree_changes)
                      ^
/datasets/git/builtin/add.c:534:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!show_only && ignore_missing)
        ^
/datasets/git/builtin/add.c:534:17: note: +1
        if (!show_only && ignore_missing)
                       ^
/datasets/git/builtin/add.c:537:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (chmod_arg && ((chmod_arg[0] != '-' && chmod_arg[0] != '+') ||
        ^
/datasets/git/builtin/add.c:537:16: note: +1
        if (chmod_arg && ((chmod_arg[0] != '-' && chmod_arg[0] != '+') ||
                      ^
/datasets/git/builtin/add.c:538:26: note: +1
                          chmod_arg[1] != 'x' || chmod_arg[2]))
                                              ^
/datasets/git/builtin/add.c:537:41: note: +1
        if (chmod_arg && ((chmod_arg[0] != '-' && chmod_arg[0] != '+') ||
                                               ^
/datasets/git/builtin/add.c:541:58: note: +1
        add_new_files = !take_worktree_changes && !refresh_only && !add_renormalize;
                                                                ^
/datasets/git/builtin/add.c:542:45: note: +1
        require_pathspec = !(take_worktree_changes || (0 < addremove_explicit));
                                                   ^
/datasets/git/builtin/add.c:558:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (pathspec_from_file) {
        ^
/datasets/git/builtin/add.c:559:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (pathspec.nr)
                ^
/datasets/git/builtin/add.c:566:9: note: +1, nesting level increased to 1
        } else if (pathspec_file_nul) {
               ^
/datasets/git/builtin/add.c:570:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (require_pathspec && pathspec.nr == 0) {
        ^
/datasets/git/builtin/add.c:570:23: note: +1
        if (require_pathspec && pathspec.nr == 0) {
                             ^
/datasets/git/builtin/add.c:572:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (advice_enabled(ADVICE_ADD_EMPTY_PATHSPEC))
                ^
/datasets/git/builtin/add.c:579:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!take_worktree_changes && addremove_explicit < 0 && pathspec.nr)
        ^
/datasets/git/builtin/add.c:579:55: note: +1
        if (!take_worktree_changes && addremove_explicit < 0 && pathspec.nr)
                                                             ^
/datasets/git/builtin/add.c:583:20: note: +1, including nesting penalty of 0, nesting level increased to 1
        flags = ((verbose ? ADD_CACHE_VERBOSE : 0) |
                          ^
/datasets/git/builtin/add.c:584:15: note: +1, including nesting penalty of 0, nesting level increased to 1
                 (show_only ? ADD_CACHE_PRETEND : 0) |
                            ^
/datasets/git/builtin/add.c:585:19: note: +1, including nesting penalty of 0, nesting level increased to 1
                 (intent_to_add ? ADD_CACHE_INTENT : 0) |
                                ^
/datasets/git/builtin/add.c:586:23: note: +1, including nesting penalty of 0, nesting level increased to 1
                 (ignore_add_errors ? ADD_CACHE_IGNORE_ERRORS : 0) |
                                    ^
/datasets/git/builtin/add.c:588:5: note: +1, including nesting penalty of 0, nesting level increased to 1
                  ? ADD_CACHE_IGNORE_REMOVAL : 0));
                  ^
/datasets/git/builtin/add.c:587:17: note: +1
                 (!(addremove || take_worktree_changes)
                              ^
/datasets/git/builtin/add.c:590:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (repo_read_index_preload(the_repository, &pathspec, 0) < 0)
        ^
/datasets/git/builtin/add.c:596:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (add_new_files) {
        ^
/datasets/git/builtin/add.c:600:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!ignored_too) {
                ^
/datasets/git/builtin/add.c:607:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (pathspec.nr)
                ^
/datasets/git/builtin/add.c:611:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (refresh_only) {
        ^
/datasets/git/builtin/add.c:613:3: note: +1
                goto finish;
                ^
/datasets/git/builtin/add.c:616:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (pathspec.nr) {
        ^
/datasets/git/builtin/add.c:621:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!seen)
                ^
/datasets/git/builtin/add.c:628:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                GUARD_PATHSPEC(&pathspec,
                ^
/datasets/git/./pathspec.h:59:2: note: expanded from macro 'GUARD_PATHSPEC'
        do { \
        ^
/datasets/git/builtin/add.c:628:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                GUARD_PATHSPEC(&pathspec,
                ^
/datasets/git/./pathspec.h:60:3: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                ^
/datasets/git/builtin/add.c:635:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < pathspec.nr; i++) {
                ^
/datasets/git/builtin/add.c:638:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (pathspec.items[i].magic & PATHSPEC_EXCLUDE)
                        ^
/datasets/git/builtin/add.c:640:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (seen[i])
                        ^
/datasets/git/builtin/add.c:643:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!include_sparse &&
                        ^
/datasets/git/builtin/add.c:643:24: note: +1
                        if (!include_sparse &&
                                            ^
/datasets/git/builtin/add.c:651:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!path[0])
                        ^
/datasets/git/builtin/add.c:654:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if ((pathspec.items[i].magic & (PATHSPEC_GLOB | PATHSPEC_ICASE)) ||
                        ^
/datasets/git/builtin/add.c:654:69: note: +1
                        if ((pathspec.items[i].magic & (PATHSPEC_GLOB | PATHSPEC_ICASE)) ||
                                                                                         ^
/datasets/git/builtin/add.c:656:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (ignore_missing) {
                                ^
/datasets/git/builtin/add.c:658:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (is_excluded(&dir, &the_index, path, &dtype))
                                        ^
/datasets/git/builtin/add.c:661:7: note: +1, nesting level increased to 4
                                } else
                                  ^
/datasets/git/builtin/add.c:668:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (only_match_skip_worktree.nr) {
                ^
/datasets/git/builtin/add.c:680:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (add_renormalize)
        ^
/datasets/git/builtin/add.c:682:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/builtin/add.c:685:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (add_new_files)
        ^
/datasets/git/builtin/add.c:688:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (chmod_arg && pathspec.nr)
        ^
/datasets/git/builtin/add.c:688:16: note: +1
        if (chmod_arg && pathspec.nr)
                      ^
/datasets/git/builtin/add.c:693:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (write_locked_index(&the_index, &lock_file,
        ^
/datasets/git/builtin/add.c:698:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        UNLEAK(pathspec);
        ^
/datasets/git/./git-compat-util.h:1544:21: note: expanded from macro 'UNLEAK'
#define UNLEAK(var) do {} while (0)
                    ^
/datasets/git/builtin/add.c:498:6: warning: variable 'flags' is not initialized [cppcoreguidelines-init-variables]
        int flags;
            ^
                  = 0
/datasets/git/builtin/add.c:499:6: warning: variable 'add_new_files' is not initialized [cppcoreguidelines-init-variables]
        int add_new_files;
            ^
                          = 0
/datasets/git/builtin/add.c:500:6: warning: variable 'require_pathspec' is not initialized [cppcoreguidelines-init-variables]
        int require_pathspec;
            ^
                             = 0
/datasets/git/builtin/add.c:508:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (patch_interactive)
                              ^
                               {
/datasets/git/builtin/add.c:511:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (show_only)
                              ^
                               {
/datasets/git/builtin/add.c:513:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pathspec_from_file)
                                       ^
                                        {
/datasets/git/builtin/add.c:515:3: warning: function is not thread safe [concurrency-mt-unsafe]
                exit(interactive_add(argv + 1, prefix, patch_interactive));
                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/add.c:519:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pathspec_from_file)
                                       ^
                                        {
/datasets/git/builtin/add.c:526:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (0 <= addremove_explicit)
                                    ^
                                     {
/datasets/git/builtin/add.c:528:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (take_worktree_changes && ADDREMOVE_DEFAULT)
                                                            ^
                                                             {
/datasets/git/builtin/add.c:531:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (addremove && take_worktree_changes)
                                               ^
                                                {
/datasets/git/builtin/add.c:534:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!show_only && ignore_missing)
                                         ^
                                          {
/datasets/git/builtin/add.c:538:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                          chmod_arg[1] != 'x' || chmod_arg[2]))
                                                               ^
                                                                {
/datasets/git/builtin/add.c:553:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        parse_pathspec(&pathspec, PATHSPEC_ATTR,
                                  ^
/datasets/git/./pathspec.h:13:25: note: expanded from macro 'PATHSPEC_ATTR'
#define PATHSPEC_ATTR           (1<<6)
                                 ^
/datasets/git/builtin/add.c:554:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_PREFER_FULL |
                       ^
/datasets/git/./pathspec.h:66:30: note: expanded from macro 'PATHSPEC_PREFER_FULL'
#define PATHSPEC_PREFER_FULL (1<<1) /* No args means match everything */
                             ^~~~~~
/datasets/git/builtin/add.c:555:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_SYMLINK_LEADING_PATH,
                       ^
/datasets/git/./pathspec.h:69:40: note: expanded from macro 'PATHSPEC_SYMLINK_LEADING_PATH'
#define PATHSPEC_SYMLINK_LEADING_PATH (1<<3)
                                       ^
/datasets/git/builtin/add.c:559:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pathspec.nr)
                                ^
                                 {
/datasets/git/builtin/add.c:562:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                parse_pathspec_file(&pathspec, PATHSPEC_ATTR,
                                               ^
/datasets/git/./pathspec.h:13:25: note: expanded from macro 'PATHSPEC_ATTR'
#define PATHSPEC_ATTR           (1<<6)
                                 ^
/datasets/git/builtin/add.c:563:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                    PATHSPEC_PREFER_FULL |
                                    ^
/datasets/git/./pathspec.h:66:30: note: expanded from macro 'PATHSPEC_PREFER_FULL'
#define PATHSPEC_PREFER_FULL (1<<1) /* No args means match everything */
                             ^~~~~~
/datasets/git/builtin/add.c:564:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                    PATHSPEC_SYMLINK_LEADING_PATH,
                                    ^
/datasets/git/./pathspec.h:69:40: note: expanded from macro 'PATHSPEC_SYMLINK_LEADING_PATH'
#define PATHSPEC_SYMLINK_LEADING_PATH (1<<3)
                                       ^
/datasets/git/builtin/add.c:571:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, _("Nothing specified, nothing added.\n"));
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/add.c:571:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/add.c:572:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (advice_enabled(ADVICE_ADD_EMPTY_PATHSPEC))
                                                              ^
                                                               {
/datasets/git/builtin/add.c:579:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!take_worktree_changes && addremove_explicit < 0 && pathspec.nr)
                                                                            ^
                                                                             {
/datasets/git/builtin/add.c:583:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        flags = ((verbose ? ADD_CACHE_VERBOSE : 0) |
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/add.c:590:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_read_index_preload(the_repository, &pathspec, 0) < 0)
                                                                      ^
                                                                       {
/datasets/git/builtin/add.c:597:7: warning: variable 'baselen' is not initialized [cppcoreguidelines-init-variables]
                int baselen;
                    ^
                            = 0
/datasets/git/builtin/add.c:601:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        dir.flags |= DIR_COLLECT_IGNORED;
                        ^            ~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/add.c:607:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pathspec.nr)
                                ^
                                 {
/datasets/git/builtin/add.c:612:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                exit_status |= refresh(verbose, &pathspec);
                ^~~~~~~~~~~
/datasets/git/builtin/add.c:617:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/builtin/add.c:617:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/add.c:621:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!seen)
                          ^
                           {
/datasets/git/builtin/add.c:628:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                GUARD_PATHSPEC(&pathspec,
                ^
/datasets/git/./pathspec.h:59:2: note: expanded from macro 'GUARD_PATHSPEC'
        do { \
        ^
/datasets/git/builtin/add.c:628:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                GUARD_PATHSPEC(&pathspec,
                ^
/datasets/git/./pathspec.h:60:7: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                    ^             ~~~~~~~
/datasets/git/builtin/add.c:628:3: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                GUARD_PATHSPEC(&pathspec,
                ^
/datasets/git/./pathspec.h:60:21: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                                  ^~~~~~~
/datasets/git/builtin/add.c:629:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                               PATHSPEC_FROMTOP |
                               ^
/datasets/git/./pathspec.h:7:26: note: expanded from macro 'PATHSPEC_FROMTOP'
#define PATHSPEC_FROMTOP        (1<<0)
                                ^
/datasets/git/./pathspec.h:60:23: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                                    ^~~~
/datasets/git/builtin/add.c:630:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                               PATHSPEC_LITERAL |
                               ^
/datasets/git/./pathspec.h:9:27: note: expanded from macro 'PATHSPEC_LITERAL'
#define PATHSPEC_LITERAL        (1<<2)
                                 ^
/datasets/git/./pathspec.h:60:23: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                                    ^~~~
/datasets/git/builtin/add.c:631:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                               PATHSPEC_GLOB |
                               ^
/datasets/git/./pathspec.h:10:25: note: expanded from macro 'PATHSPEC_GLOB'
#define PATHSPEC_GLOB           (1<<3)
                                 ^
/datasets/git/./pathspec.h:60:23: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                                    ^~~~
/datasets/git/builtin/add.c:632:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                               PATHSPEC_ICASE |
                               ^
/datasets/git/./pathspec.h:11:26: note: expanded from macro 'PATHSPEC_ICASE'
#define PATHSPEC_ICASE          (1<<4)
                                 ^
/datasets/git/./pathspec.h:60:23: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                                    ^~~~
/datasets/git/builtin/add.c:633:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                               PATHSPEC_EXCLUDE);
                               ^
/datasets/git/./pathspec.h:12:27: note: expanded from macro 'PATHSPEC_EXCLUDE'
#define PATHSPEC_EXCLUDE        (1<<5)
                                 ^
/datasets/git/./pathspec.h:60:23: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                                    ^~~~
/datasets/git/builtin/add.c:635:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < pathspec.nr; i++) {
                ^
/datasets/git/builtin/add.c:638:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (pathspec.items[i].magic & PATHSPEC_EXCLUDE)
                            ^
/datasets/git/builtin/add.c:638:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (pathspec.items[i].magic & PATHSPEC_EXCLUDE)
                                                      ^
/datasets/git/./pathspec.h:12:27: note: expanded from macro 'PATHSPEC_EXCLUDE'
#define PATHSPEC_EXCLUDE        (1<<5)
                                 ^
/datasets/git/builtin/add.c:638:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (pathspec.items[i].magic & PATHSPEC_EXCLUDE)
                                                                       ^
                                                                        {
/datasets/git/builtin/add.c:640:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (seen[i])
                                    ^
                                     {
/datasets/git/builtin/add.c:651:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!path[0])
                                     ^
                                      {
/datasets/git/builtin/add.c:654:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if ((pathspec.items[i].magic & (PATHSPEC_GLOB | PATHSPEC_ICASE)) ||
                             ^                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/add.c:654:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if ((pathspec.items[i].magic & (PATHSPEC_GLOB | PATHSPEC_ICASE)) ||
                                                        ^
/datasets/git/./pathspec.h:10:24: note: expanded from macro 'PATHSPEC_GLOB'
#define PATHSPEC_GLOB           (1<<3)
                                ^~~~~~
/datasets/git/builtin/add.c:654:52: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if ((pathspec.items[i].magic & (PATHSPEC_GLOB | PATHSPEC_ICASE)) ||
                                                                        ^
/datasets/git/./pathspec.h:11:26: note: expanded from macro 'PATHSPEC_ICASE'
#define PATHSPEC_ICASE          (1<<4)
                                 ^
/datasets/git/builtin/add.c:658:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        if (is_excluded(&dir, &the_index, path, &dtype))
                                                                                        ^
                                                                                         {
/datasets/git/builtin/add.c:661:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                } else
                                      ^
                                       {
/datasets/git/builtin/add.c:680:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (add_renormalize)
                            ^
                             {
/datasets/git/builtin/add.c:681:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                exit_status |= renormalize_tracked_files(&pathspec, flags);
                ^~~~~~~~~~~
/datasets/git/builtin/add.c:682:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/add.c:683:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                exit_status |= add_files_to_cache(prefix, &pathspec, flags);
                ^~~~~~~~~~~
/datasets/git/builtin/add.c:685:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (add_new_files)
                          ^
                           {
/datasets/git/builtin/add.c:686:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                exit_status |= add_files(&dir, flags);
                ^~~~~~~~~~~
/datasets/git/builtin/add.c:688:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (chmod_arg && pathspec.nr)
                                     ^
                                      {
/datasets/git/builtin/add.c:689:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                exit_status |= chmod_pathspec(&pathspec, chmod_arg[0], show_only);
                ^~~~~~~~~~~
/datasets/git/builtin/add.c:694:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                               COMMIT_LOCK | SKIP_IF_UNCHANGED))
                               ^
/datasets/git/./refs/../cache.h:744:22: note: expanded from macro 'COMMIT_LOCK'
#define COMMIT_LOCK             (1 << 0)
                                ^~~~~~~~
/datasets/git/builtin/add.c:694:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                               COMMIT_LOCK | SKIP_IF_UNCHANGED))
                                             ^
/datasets/git/./refs/../cache.h:745:28: note: expanded from macro 'SKIP_IF_UNCHANGED'
#define SKIP_IF_UNCHANGED       (1 << 1)
                                 ^
/datasets/git/builtin/add.c:694:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                               COMMIT_LOCK | SKIP_IF_UNCHANGED))
                                                                ^
                                                                 {
/datasets/git/builtin/add.c:698:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        UNLEAK(pathspec);
        ^
/datasets/git/./git-compat-util.h:1544:21: note: expanded from macro 'UNLEAK'
#define UNLEAK(var) do {} while (0)
                    ^
/datasets/git/builtin/am.c:8:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "apply.h"
/datasets/git/builtin/am.c:44:9: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return strchrnul(msg, '\n') - msg;
               ^
/datasets/git/builtin/am.c:52:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; *str; str++)
        ^
/datasets/git/builtin/am.c:52:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (; *str; str++)
                           ^
                            {
/datasets/git/builtin/am.c:53:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!isspace(*str))
                     ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/builtin/am.c:53:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!isspace(*str))
                                   ^
                                    {
/datasets/git/builtin/am.c:97:8: warning: accessing fields in struct 'am_state' is inefficient due to padding; only needs 192 bytes but is using 200 bytes [altera-struct-pack-align]
struct am_state {
       ^
/datasets/git/builtin/am.c:97:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'am_state'
/datasets/git/builtin/am.c:97:8: warning: accessing fields in struct 'am_state' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct am_state {
       ^
/datasets/git/builtin/am.c:97:8: note: use "__attribute__((aligned(128)))" to align struct 'am_state' to 128 bytes
/datasets/git/builtin/am.c:143:6: warning: variable 'gpgsign' is not initialized [cppcoreguidelines-init-variables]
        int gpgsign;
            ^
                    = 0
/datasets/git/builtin/am.c:145:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(state, 0, sizeof(*state));
        ^~~~~~
/datasets/git/builtin/am.c:145:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(state, 0, sizeof(*state));
        ^~~~~~
/datasets/git/builtin/am.c:162:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!git_config_get_bool("commit.gpgsign", &gpgsign))
                                                             ^
                                                              {
/datasets/git/builtin/am.c:182:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/am.c:184:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mailinfo_parse_quoted_cr_action(arg, opt->value) != 0)
                                                                  ^
                                                                   {
/datasets/git/builtin/am.c:194:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/am.c:196:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(arg, "stop"))
                                 ^
                                  {
/datasets/git/builtin/am.c:198:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(arg, "drop"))
                                      ^
                                       {
/datasets/git/builtin/am.c:200:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(arg, "keep"))
                                      ^
                                       {
/datasets/git/builtin/am.c:202:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/am.c:242:53: warning: parameter name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
static void say(const struct am_state *state, FILE *fp, const char *fmt, ...)
                                                    ^
/datasets/git/builtin/am.c:244:10: warning: variable name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
        va_list ap;
                ^
/datasets/git/builtin/am.c:248:3: warning: the value returned by this function should be used [cert-err33-c]
                vfprintf(fp, fmt, ap);
                ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:248:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/am.c:248:3: warning: Function 'vfprintf' is called with an uninitialized va_list argument [clang-analyzer-valist.Uninitialized]
                vfprintf(fp, fmt, ap);
                ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:247:6: note: Assuming field 'quiet' is 0
        if (!state->quiet) {
            ^~~~~~~~~~~~~
/datasets/git/builtin/am.c:247:2: note: Taking true branch
        if (!state->quiet) {
        ^
/datasets/git/builtin/am.c:248:3: note: Function 'vfprintf' is called with an uninitialized va_list argument
                vfprintf(fp, fmt, ap);
                ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:249:3: warning: the value returned by this function should be used [cert-err33-c]
                putc('\n', fp);
                ^~~~~~~~~~~~~~
/datasets/git/builtin/am.c:249:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/am.c:259:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/builtin/am.c:261:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (lstat(state->dir, &st) < 0 || !S_ISDIR(st.st_mode))
                                                               ^
                                                                {
/datasets/git/builtin/am.c:263:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (lstat(am_path(state, "last"), &st) || !S_ISREG(st.st_mode))
                                                                       ^
                                                                        {
/datasets/git/builtin/am.c:265:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (lstat(am_path(state, "next"), &st) || !S_ISREG(st.st_mode))
                                                                       ^
                                                                        {
/datasets/git/builtin/am.c:275:43: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static int read_state_file(struct strbuf *sb, const struct am_state *state,
                                          ^
/datasets/git/builtin/am.c:281:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (trim)
                         ^
                          {
/datasets/git/builtin/am.c:284:10: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                return sb->len;
                       ^
/datasets/git/builtin/am.c:287:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (errno == ENOENT)
                            ^
                             {
/datasets/git/builtin/am.c:327:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/am.c:355:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/am.c:382:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/am.c:384:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (read_state_file(&sb, state, "next", 1) < 0)
                                                       ^
                                                        {
/datasets/git/builtin/am.c:386:15: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        state->cur = strtol(sb.buf, NULL, 10);
                     ^
/datasets/git/builtin/am.c:386:36: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        state->cur = strtol(sb.buf, NULL, 10);
                                          ^
/datasets/git/builtin/am.c:388:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (read_state_file(&sb, state, "last", 1) < 0)
                                                       ^
                                                        {
/datasets/git/builtin/am.c:390:16: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        state->last = strtol(sb.buf, NULL, 10);
                      ^
/datasets/git/builtin/am.c:390:37: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        state->last = strtol(sb.buf, NULL, 10);
                                           ^
/datasets/git/builtin/am.c:392:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (read_am_author_script(state) < 0)
                                             ^
                                              {
/datasets/git/builtin/am.c:397:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (read_state_file(&sb, state, "original-commit", 1) < 0)
                                                                  ^
                                                                   {
/datasets/git/builtin/am.c:399:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (get_oid_hex(sb.buf, &state->orig_commit) < 0)
                                                              ^
                                                               {
/datasets/git/builtin/am.c:423:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(sb.buf, "t"))
                                 ^
                                  {
/datasets/git/builtin/am.c:425:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(sb.buf, "b"))
                                      ^
                                       {
/datasets/git/builtin/am.c:427:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/am.c:434:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(sb.buf, "t"))
                                 ^
                                  {
/datasets/git/builtin/am.c:436:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(sb.buf, "f"))
                                      ^
                                       {
/datasets/git/builtin/am.c:438:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/am.c:442:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!*sb.buf)
                     ^
                      {
/datasets/git/builtin/am.c:444:75: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (mailinfo_parse_quoted_cr_action(sb.buf, &state->quoted_cr) != 0)
                                                                                 ^
                                                                                  {
/datasets/git/builtin/am.c:449:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (sq_dequote_to_strvec(sb.buf, &state->git_apply_opts) < 0)
                                                                     ^
                                                                      {
/datasets/git/builtin/am.c:463:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/am.c:475:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/builtin/am.c:481:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FREE_AND_NULL(state->msg);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/am.c:482:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (read_commit_msg(state) < 0)
                                               ^
                                                {
/datasets/git/builtin/am.c:495:23: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
        struct child_process cp = CHILD_PROCESS_INIT;
                             ^
/datasets/git/builtin/am.c:497:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/builtin/am.c:499:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!hook)
                  ^
                   {
/datasets/git/builtin/am.c:523:28: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        struct notes_rewrite_cfg *c;
                                  ^
                                    = NULL
/datasets/git/builtin/am.c:523:28: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/am.c:524:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/am.c:527:8: warning: variable 'fp' is not initialized [cppcoreguidelines-init-variables]
        FILE *fp;
              ^
                 = NULL
/datasets/git/builtin/am.c:527:8: warning: variable name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/am.c:533:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!c)
               ^
                {
/datasets/git/builtin/am.c:538:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (!strbuf_getline_lf(&sb, fp)) {
        ^
/datasets/git/builtin/am.c:538:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'sb' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (!strbuf_getline_lf(&sb, fp)) {
               ^
/datasets/git/builtin/am.c:539:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                struct object_id from_obj, to_obj;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:540:15: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                const char *p;
                            ^
                              = NULL
/datasets/git/builtin/am.c:540:15: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/am.c:562:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (copy_note_for_rewrite(c, &from_obj, &to_obj))
                                                                 ^
                                                                  {
/datasets/git/builtin/am.c:569:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(fp);
        ^~~~~~~~~~
/datasets/git/builtin/am.c:569:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/am.c:581:26: warning: parameter name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
static int is_mail(FILE *fp)
                         ^
/datasets/git/builtin/am.c:584:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/am.c:588:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fseek(fp, 0L, SEEK_SET))
                                    ^
                                     {
/datasets/git/builtin/am.c:591:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (regcomp(&regex, header_regex, REG_NOSUB | REG_EXTENDED))
                                                                    ^
                                                                     {
/datasets/git/builtin/am.c:594:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (!strbuf_getline(&sb, fp)) {
        ^
/datasets/git/builtin/am.c:594:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'sb' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (!strbuf_getline(&sb, fp)) {
               ^
/datasets/git/builtin/am.c:595:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!sb.len)
                            ^
                             {
/datasets/git/builtin/am.c:599:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*sb.buf == '\t' || *sb.buf == ' ')
                                                      ^
                                                       {
/datasets/git/builtin/am.c:623:16: warning: variable name 'l1' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf l1 = STRBUF_INIT;
                      ^
/datasets/git/builtin/am.c:624:16: warning: variable name 'l2' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf l2 = STRBUF_INIT;
                      ^
/datasets/git/builtin/am.c:625:16: warning: variable name 'l3' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf l3 = STRBUF_INIT;
                      ^
/datasets/git/builtin/am.c:626:8: warning: variable 'fp' is not initialized [cppcoreguidelines-init-variables]
        FILE *fp;
              ^
                 = NULL
/datasets/git/builtin/am.c:626:8: warning: variable name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/am.c:631:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!*paths || !strcmp(*paths, "-") || is_directory(*paths))
                                                                    ^
                                                                     {
/datasets/git/builtin/am.c:641:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (!strbuf_getline(&l1, fp)) {
        ^
/datasets/git/builtin/am.c:641:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'l1' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (!strbuf_getline(&l1, fp)) {
               ^
/datasets/git/builtin/am.c:642:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (l1.len)
                           ^
                            {
/datasets/git/builtin/am.c:694:5: warning: 2 adjacent parameters of 'split_mail_mbox' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                int keep_cr, int mboxrd)
                                ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:694:9: note: the first parameter in the range is 'keep_cr'
                                int keep_cr, int mboxrd)
                                    ^~~~~~~
/datasets/git/builtin/am.c:694:22: note: the last parameter in the range is 'mboxrd'
                                int keep_cr, int mboxrd)
                                                 ^~~~~~
/datasets/git/builtin/am.c:696:23: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
        struct child_process cp = CHILD_PROCESS_INIT;
                             ^
/datasets/git/builtin/am.c:698:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/builtin/am.c:705:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (keep_cr)
                    ^
                     {
/datasets/git/builtin/am.c:707:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mboxrd)
                   ^
                    {
/datasets/git/builtin/am.c:712:36: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        ret = capture_command(&cp, &last, 8);
                                          ^
/datasets/git/builtin/am.c:713:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/builtin/am.c:717:16: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        state->last = strtol(last.buf, NULL, 10);
                      ^
/datasets/git/builtin/am.c:717:39: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        state->last = strtol(last.buf, NULL, 10);
                                             ^
/datasets/git/builtin/am.c:729:46: warning: parameter name 'in' is too short, expected at least 3 characters [readability-identifier-length]
typedef int (*mail_conv_fn)(FILE *out, FILE *in, int keep_cr);
                                             ^
/datasets/git/builtin/am.c:737:41: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
static int split_mail_conv(mail_conv_fn fn, struct am_state *state,
                                        ^
/datasets/git/builtin/am.c:741:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/am.c:741:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/am.c:743:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!*paths)
                    ^
                     {
/datasets/git/builtin/am.c:746:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; *paths; paths++, i++) {
        ^
/datasets/git/builtin/am.c:746:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'paths' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; *paths; paths++, i++) {
                    ^
/datasets/git/builtin/am.c:747:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                FILE *in, *out;
                ^~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:747:9: warning: variable 'in' is not initialized [cppcoreguidelines-init-variables]
                FILE *in, *out;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/am.c:747:9: warning: variable name 'in' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/am.c:747:14: warning: variable 'out' is not initialized [cppcoreguidelines-init-variables]
                FILE *in, *out;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/am.c:748:15: warning: variable 'mail' is not initialized [cppcoreguidelines-init-variables]
                const char *mail;
                            ^
                                 = NULL
/datasets/git/builtin/am.c:749:7: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
                int ret;
                    ^
                        = 0
/datasets/git/builtin/am.c:751:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(*paths, "-"))
                                         ^
                                          {
/datasets/git/builtin/am.c:753:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/am.c:756:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!in)
                        ^
                         {
/datasets/git/builtin/am.c:764:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (in != stdin)
                                        ^
                                         {
/datasets/git/builtin/am.c:765:5: warning: the value returned by this function should be used [cert-err33-c]
                                fclose(in);
                                ^~~~~~~~~~
/datasets/git/builtin/am.c:765:5: note: cast the expression to void to silence this warning
/datasets/git/builtin/am.c:772:3: warning: the value returned by this function should be used [cert-err33-c]
                fclose(out);
                ^~~~~~~~~~~
/datasets/git/builtin/am.c:772:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/am.c:773:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (in != stdin)
                                ^
                                 {
/datasets/git/builtin/am.c:774:4: warning: the value returned by this function should be used [cert-err33-c]
                        fclose(in);
                        ^~~~~~~~~~
/datasets/git/builtin/am.c:774:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/am.c:776:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret)
                        ^
                         {
/datasets/git/builtin/am.c:789:32: warning: 2 adjacent parameters of 'stgit_patch_to_mail' of similar type ('FILE *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int stgit_patch_to_mail(FILE *out, FILE *in, int keep_cr)
                               ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:789:38: note: the first parameter in the range is 'out'
static int stgit_patch_to_mail(FILE *out, FILE *in, int keep_cr)
                                     ^~~
/datasets/git/builtin/am.c:789:49: note: the last parameter in the range is 'in'
static int stgit_patch_to_mail(FILE *out, FILE *in, int keep_cr)
                                                ^~
/datasets/git/builtin/am.c:789:49: warning: parameter name 'in' is too short, expected at least 3 characters [readability-identifier-length]
static int stgit_patch_to_mail(FILE *out, FILE *in, int keep_cr)
                                                ^
/datasets/git/builtin/am.c:791:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct strbuf sb = STRBUF_INIT;
        ^
/datasets/git/builtin/am.c:789:57: warning: parameter 'keep_cr' is unused [misc-unused-parameters]
static int stgit_patch_to_mail(FILE *out, FILE *in, int keep_cr)
                                                        ^
/datasets/git/builtin/am.c:791:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/am.c:794:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (!strbuf_getline_lf(&sb, in)) {
        ^
/datasets/git/builtin/am.c:791:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct strbuf sb = STRBUF_INIT;
        ^
/datasets/git/builtin/am.c:794:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'sb' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (!strbuf_getline_lf(&sb, in)) {
               ^
/datasets/git/builtin/am.c:795:15: warning: variable 'str' is not initialized [cppcoreguidelines-init-variables]
                const char *str;
                            ^
                                = NULL
/datasets/git/builtin/am.c:797:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (str_isspace(sb.buf))
                                        ^
                                         {
/datasets/git/builtin/am.c:799:3: warning: do not use 'else' after 'continue' [llvm-else-after-return,readability-else-after-return]
                else if (skip_prefix(sb.buf, "Author:", &str))
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:799:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (skip_prefix(sb.buf, "Author:", &str))
                                                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/am.c:800:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(out, "From:%s\n", str);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:800:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/am.c:801:71: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (starts_with(sb.buf, "From") || starts_with(sb.buf, "Date"))
                                                                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/am.c:802:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(out, "%s\n", sb.buf);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:802:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/am.c:804:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(out, "Subject: %s\n", sb.buf);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:804:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/am.c:807:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(out, "\n%s\n", sb.buf);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:807:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/am.c:813:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (strbuf_fread(&sb, 8192, in) > 0) {
        ^
/datasets/git/builtin/am.c:813:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'sb' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (strbuf_fread(&sb, 8192, in) > 0) {
               ^
/datasets/git/builtin/am.c:813:27: warning: 8192 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        while (strbuf_fread(&sb, 8192, in) > 0) {
                                 ^
/datasets/git/builtin/am.c:814:3: warning: the value returned by this function should be used [cert-err33-c]
                fwrite(sb.buf, 1, sb.len, out);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:814:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/am.c:834:14: warning: variable 'series_dir' is not initialized [cppcoreguidelines-init-variables]
        const char *series_dir;
                    ^
                               = NULL
/datasets/git/builtin/am.c:835:8: warning: variable 'series_dir_buf' is not initialized [cppcoreguidelines-init-variables]
        char *series_dir_buf;
              ^
                             = NULL
/datasets/git/builtin/am.c:836:8: warning: variable 'fp' is not initialized [cppcoreguidelines-init-variables]
        FILE *fp;
              ^
                 = NULL
/datasets/git/builtin/am.c:836:8: warning: variable name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/am.c:838:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/am.c:839:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/builtin/am.c:841:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!paths[0] || paths[1])
                                  ^
                                   {
/datasets/git/builtin/am.c:845:15: warning: function is not thread safe [concurrency-mt-unsafe]
        series_dir = dirname(series_dir_buf);
                     ^
/datasets/git/builtin/am.c:848:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!fp)
                ^
                 {
/datasets/git/builtin/am.c:851:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (!strbuf_getline_lf(&sb, fp)) {
        ^
/datasets/git/builtin/am.c:851:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'sb' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (!strbuf_getline_lf(&sb, fp)) {
               ^
/datasets/git/builtin/am.c:852:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*sb.buf == '#')
                                   ^
                                    {
/datasets/git/builtin/am.c:858:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(fp);
        ^~~~~~~~~~
/datasets/git/builtin/am.c:858:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/am.c:872:12: warning: function 'hg_patch_to_mail' has cognitive complexity of 26 (threshold 25) [readability-function-cognitive-complexity]
static int hg_patch_to_mail(FILE *out, FILE *in, int keep_cr)
           ^
/datasets/git/builtin/am.c:877:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (!strbuf_getline_lf(&sb, in)) {
        ^
/datasets/git/builtin/am.c:880:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (skip_prefix(sb.buf, "# User ", &str))
                ^
/datasets/git/builtin/am.c:882:8: note: +1, nesting level increased to 2
                else if (skip_prefix(sb.buf, "# Date ", &str)) {
                     ^
/datasets/git/builtin/am.c:889:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (errno) {
                        ^
/datasets/git/builtin/am.c:891:5: note: +1
                                goto exit;
                                ^
/datasets/git/builtin/am.c:894:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!skip_prefix(end, " ", &str)) {
                        ^
/datasets/git/builtin/am.c:896:5: note: +1
                                goto exit;
                                ^
/datasets/git/builtin/am.c:901:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (errno) {
                        ^
/datasets/git/builtin/am.c:903:5: note: +1
                                goto exit;
                                ^
/datasets/git/builtin/am.c:906:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (*end) {
                        ^
/datasets/git/builtin/am.c:908:5: note: +1
                                goto exit;
                                ^
/datasets/git/builtin/am.c:917:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (tz > 0)
                        ^
/datasets/git/builtin/am.c:921:10: note: +1, nesting level increased to 2
                } else if (starts_with(sb.buf, "# ")) {
                       ^
/datasets/git/builtin/am.c:923:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/am.c:930:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (strbuf_fread(&sb, 8192, in) > 0) {
        ^
/datasets/git/builtin/am.c:872:29: warning: 2 adjacent parameters of 'hg_patch_to_mail' of similar type ('FILE *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int hg_patch_to_mail(FILE *out, FILE *in, int keep_cr)
                            ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:872:35: note: the first parameter in the range is 'out'
static int hg_patch_to_mail(FILE *out, FILE *in, int keep_cr)
                                  ^~~
/datasets/git/builtin/am.c:872:46: note: the last parameter in the range is 'in'
static int hg_patch_to_mail(FILE *out, FILE *in, int keep_cr)
                                             ^~
/datasets/git/builtin/am.c:872:46: warning: parameter name 'in' is too short, expected at least 3 characters [readability-identifier-length]
static int hg_patch_to_mail(FILE *out, FILE *in, int keep_cr)
                                             ^
/datasets/git/builtin/am.c:874:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct strbuf sb = STRBUF_INIT;
        ^
/datasets/git/builtin/am.c:872:54: warning: parameter 'keep_cr' is unused [misc-unused-parameters]
static int hg_patch_to_mail(FILE *out, FILE *in, int keep_cr)
                                                     ^
/datasets/git/builtin/am.c:874:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/am.c:875:6: warning: variable name 'rc' is too short, expected at least 3 characters [readability-identifier-length]
        int rc = 0;
            ^
/datasets/git/builtin/am.c:877:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (!strbuf_getline_lf(&sb, in)) {
        ^
/datasets/git/builtin/am.c:874:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct strbuf sb = STRBUF_INIT;
        ^
/datasets/git/builtin/am.c:877:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'sb' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (!strbuf_getline_lf(&sb, in)) {
               ^
/datasets/git/builtin/am.c:878:15: warning: variable 'str' is not initialized [cppcoreguidelines-init-variables]
                const char *str;
                            ^
                                = NULL
/datasets/git/builtin/am.c:880:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (skip_prefix(sb.buf, "# User ", &str))
                                                         ^
                                                          {
/datasets/git/builtin/am.c:881:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(out, "From: %s\n", str);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:881:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/am.c:883:16: warning: variable 'timestamp' is not initialized [cppcoreguidelines-init-variables]
                        timestamp_t timestamp;
                                    ^
                                              = 0
/datasets/git/builtin/am.c:884:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        long tz, tz2;
                        ^~~~~~~~~~~~~
/datasets/git/builtin/am.c:884:9: warning: variable 'tz' is not initialized [cppcoreguidelines-init-variables]
                        long tz, tz2;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/am.c:884:9: warning: variable name 'tz' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/am.c:884:13: warning: variable 'tz2' is not initialized [cppcoreguidelines-init-variables]
                        long tz, tz2;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/am.c:885:10: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
                        char *end;
                              ^
                                  = NULL
/datasets/git/builtin/am.c:888:43: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        timestamp = parse_timestamp(str, &end, 10);
                                                               ^
/datasets/git/builtin/am.c:900:27: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        tz = strtol(str, &end, 10);
                                               ^
/datasets/git/builtin/am.c:916:21: warning: 3600 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        tz2 = labs(tz) / 3600 * 100 + labs(tz) % 3600 / 60;
                                         ^
/datasets/git/builtin/am.c:916:28: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        tz2 = labs(tz) / 3600 * 100 + labs(tz) % 3600 / 60;
                                                ^
/datasets/git/builtin/am.c:916:45: warning: 3600 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        tz2 = labs(tz) / 3600 * 100 + labs(tz) % 3600 / 60;
                                                                 ^
/datasets/git/builtin/am.c:916:52: warning: 60 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        tz2 = labs(tz) / 3600 * 100 + labs(tz) % 3600 / 60;
                                                                        ^
/datasets/git/builtin/am.c:917:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (tz > 0)
                                   ^
                                    {
/datasets/git/builtin/am.c:920:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(out, "Date: %s\n", show_date(timestamp, tz2, DATE_MODE(RFC2822)));
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:920:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/am.c:920:52: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        fprintf(out, "Date: %s\n", show_date(timestamp, tz2, DATE_MODE(RFC2822)));
                                                                        ^
/datasets/git/builtin/am.c:924:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(out, "\n%s\n", sb.buf);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:924:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/am.c:930:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (strbuf_fread(&sb, 8192, in) > 0) {
        ^
/datasets/git/builtin/am.c:930:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'sb' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (strbuf_fread(&sb, 8192, in) > 0) {
               ^
/datasets/git/builtin/am.c:930:27: warning: 8192 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        while (strbuf_fread(&sb, 8192, in) > 0) {
                                 ^
/datasets/git/builtin/am.c:931:3: warning: the value returned by this function should be used [cert-err33-c]
                fwrite(sb.buf, 1, sb.len, out);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:931:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/am.c:988:14: warning: variable 'str' is not initialized [cppcoreguidelines-init-variables]
        const char *str;
                    ^
                        = NULL
/datasets/git/builtin/am.c:989:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/am.c:991:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!patch_format)
                          ^
                           {
/datasets/git/builtin/am.c:996:3: warning: function is not thread safe [concurrency-mt-unsafe]
                exit(128);
                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/am.c:999:24: warning: 0777 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (mkdir(state->dir, 0777) < 0 && errno != EEXIST)
                              ^
/datasets/git/builtin/am.c:999:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mkdir(state->dir, 0777) < 0 && errno != EEXIST)
                                                           ^
                                                            {
/datasets/git/builtin/am.c:1001:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        delete_ref(NULL, "REBASE_HEAD", NULL, REF_NO_DEREF);
                                              ^
/datasets/git/./refs.h:631:23: note: expanded from macro 'REF_NO_DEREF'
#define REF_NO_DEREF (1 << 0)
                      ^
/datasets/git/builtin/am.c:1008:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (state->rebasing)
                            ^
                             {
/datasets/git/builtin/am.c:1016:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (state->allow_rerere_autoupdate)
                                           ^
                                            {
/datasets/git/builtin/am.c:1073:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (state->rebasing)
                            ^
                             {
/datasets/git/builtin/am.c:1075:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/am.c:1080:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!state->rebasing)
                                     ^
                                      {
/datasets/git/builtin/am.c:1085:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!state->rebasing)
                                     ^
                                      {
/datasets/git/builtin/am.c:1108:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(state->author_name);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/am.c:1109:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(state->author_email);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/am.c:1110:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(state->author_date);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/am.c:1111:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(state->msg);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/am.c:1119:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        delete_ref(NULL, "REBASE_HEAD", NULL, REF_NO_DEREF);
                                              ^
/datasets/git/./refs.h:631:23: note: expanded from macro 'REF_NO_DEREF'
#define REF_NO_DEREF (1 << 0)
                      ^
/datasets/git/builtin/am.c:1121:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!get_oid("HEAD", &head))
                                    ^
                                     {
/datasets/git/builtin/am.c:1123:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/am.c:1135:23: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        static struct strbuf sb = STRBUF_INIT;
                             ^
/datasets/git/builtin/am.c:1159:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !repo_index_has_changes(the_repository, NULL, NULL))
                                                                        ^
                                                                         {
/datasets/git/builtin/am.c:1165:2: warning: function is not thread safe [concurrency-mt-unsafe]
        exit(128);
        ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/am.c:1173:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/am.c:1189:12: warning: function 'parse_mail' has cognitive complexity of 35 (threshold 25) [readability-function-cognitive-complexity]
static int parse_mail(struct am_state *state, const char *mail)
           ^
/datasets/git/builtin/am.c:1202:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (state->utf8)
        ^
/datasets/git/builtin/am.c:1204:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/builtin/am.c:1207:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        switch (state->keep) {
        ^
/datasets/git/builtin/am.c:1220:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (state->message_id)
        ^
/datasets/git/builtin/am.c:1223:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        switch (state->scissors) {
        ^
/datasets/git/builtin/am.c:1236:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        switch (state->quoted_cr) {
        ^
/datasets/git/builtin/am.c:1250:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mailinfo(&mi, am_path(state, "msg"), am_path(state, "patch")))
        ^
/datasets/git/builtin/am.c:1256:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mi.format_flowed)
        ^
/datasets/git/builtin/am.c:1262:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (!strbuf_getline_lf(&sb, fp)) {
        ^
/datasets/git/builtin/am.c:1265:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (skip_prefix(sb.buf, "Subject: ", &x)) {
                ^
/datasets/git/builtin/am.c:1266:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (msg.len)
                        ^
/datasets/git/builtin/am.c:1269:10: note: +1, nesting level increased to 2
                } else if (skip_prefix(sb.buf, "Author: ", &x))
                       ^
/datasets/git/builtin/am.c:1271:8: note: +1, nesting level increased to 2
                else if (skip_prefix(sb.buf, "Email: ", &x))
                     ^
/datasets/git/builtin/am.c:1273:8: note: +1, nesting level increased to 2
                else if (skip_prefix(sb.buf, "Date: ", &x))
                     ^
/datasets/git/builtin/am.c:1279:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(author_name.buf, "Mail System Internal Data")) {
        ^
/datasets/git/builtin/am.c:1281:3: note: +1
                goto finish;
                ^
/datasets/git/builtin/am.c:1288:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(!state->author_name);
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/builtin/am.c:1288:2: note: nesting level increased to 1
        assert(!state->author_name);
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/builtin/am.c:1288:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(!state->author_name);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/builtin/am.c:1288:2: note: +1, nesting level increased to 2
        assert(!state->author_name);
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/builtin/am.c:1291:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(!state->author_email);
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/builtin/am.c:1291:2: note: nesting level increased to 1
        assert(!state->author_email);
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/builtin/am.c:1291:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(!state->author_email);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/builtin/am.c:1291:2: note: +1, nesting level increased to 2
        assert(!state->author_email);
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/builtin/am.c:1294:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(!state->author_date);
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/builtin/am.c:1294:2: note: nesting level increased to 1
        assert(!state->author_date);
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/builtin/am.c:1294:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(!state->author_date);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/builtin/am.c:1294:2: note: +1, nesting level increased to 2
        assert(!state->author_date);
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/builtin/am.c:1297:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(!state->msg);
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/builtin/am.c:1297:2: note: nesting level increased to 1
        assert(!state->msg);
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/builtin/am.c:1297:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(!state->msg);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/builtin/am.c:1297:2: note: +1, nesting level increased to 2
        assert(!state->msg);
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/builtin/am.c:1191:8: warning: variable 'fp' is not initialized [cppcoreguidelines-init-variables]
        FILE *fp;
              ^
                 = NULL
/datasets/git/builtin/am.c:1191:8: warning: variable name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/am.c:1192:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/am.c:1198:18: warning: variable name 'mi' is too short, expected at least 3 characters [readability-identifier-length]
        struct mailinfo mi;
                        ^
/datasets/git/builtin/am.c:1202:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (state->utf8)
                        ^
                         {
/datasets/git/builtin/am.c:1204:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/am.c:1220:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (state->message_id)
                              ^
                               {
/datasets/git/builtin/am.c:1250:68: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mailinfo(&mi, am_path(state, "msg"), am_path(state, "patch")))
                                                                          ^
                                                                           {
/datasets/git/builtin/am.c:1253:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(mi.input);
        ^~~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:1253:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/am.c:1254:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(mi.output);
        ^~~~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:1254:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/am.c:1256:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mi.format_flowed)
                             ^
                              {
/datasets/git/builtin/am.c:1262:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (!strbuf_getline_lf(&sb, fp)) {
        ^
/datasets/git/builtin/am.c:1262:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'sb' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (!strbuf_getline_lf(&sb, fp)) {
               ^
/datasets/git/builtin/am.c:1263:15: warning: variable 'x' is not initialized [cppcoreguidelines-init-variables]
                const char *x;
                            ^
                              = NULL
/datasets/git/builtin/am.c:1263:15: warning: variable name 'x' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/am.c:1266:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (msg.len)
                                    ^
                                     {
/datasets/git/builtin/am.c:1269:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else if (skip_prefix(sb.buf, "Author: ", &x))
                                                               ^
                                                                {
/datasets/git/builtin/am.c:1271:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (skip_prefix(sb.buf, "Email: ", &x))
                                                            ^
                                                             {
/datasets/git/builtin/am.c:1273:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (skip_prefix(sb.buf, "Date: ", &x))
                                                           ^
                                                            {
/datasets/git/builtin/am.c:1276:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(fp);
        ^~~~~~~~~~
/datasets/git/builtin/am.c:1276:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/am.c:1316:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/am.c:1317:8: warning: variable name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
        FILE *fp = xfopen(mail, "r");
              ^
/datasets/git/builtin/am.c:1318:14: warning: variable 'x' is not initialized [cppcoreguidelines-init-variables]
        const char *x;
                    ^
                      = NULL
/datasets/git/builtin/am.c:1318:14: warning: variable name 'x' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/am.c:1323:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            get_oid_hex(x, commit_id) < 0)
                                          ^
                                           {
/datasets/git/builtin/am.c:1327:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(fp);
        ^~~~~~~~~~
/datasets/git/builtin/am.c:1327:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/am.c:1337:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *buffer, *ident_line, *msg;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:1337:14: warning: variable 'buffer' is not initialized [cppcoreguidelines-init-variables]
        const char *buffer, *ident_line, *msg;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/am.c:1337:23: warning: variable 'ident_line' is not initialized [cppcoreguidelines-init-variables]
        const char *buffer, *ident_line, *msg;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/am.c:1337:36: warning: variable 'msg' is not initialized [cppcoreguidelines-init-variables]
        const char *buffer, *ident_line, *msg;
                                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/am.c:1338:9: warning: variable 'ident_len' is not initialized [cppcoreguidelines-init-variables]
        size_t ident_len;
               ^
                         = 0
/datasets/git/builtin/am.c:1339:21: warning: variable name 'id' is too short, expected at least 3 characters [readability-identifier-length]
        struct ident_split id;
                           ^
/datasets/git/builtin/am.c:1344:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ident_line)
                        ^
                         {
/datasets/git/builtin/am.c:1347:40: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        if (split_ident_line(&id, ident_line, ident_len) < 0)
                                              ^
/datasets/git/builtin/am.c:1347:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (split_ident_line(&id, ident_line, ident_len) < 0)
                                                             ^
                                                              {
/datasets/git/builtin/am.c:1351:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (id.name_begin)
                          ^
                           {
/datasets/git/builtin/am.c:1354:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/am.c:1358:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (id.mail_begin)
                          ^
                           {
/datasets/git/builtin/am.c:1361:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/am.c:1369:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!msg)
                 ^
                  {
/datasets/git/builtin/am.c:1382:8: warning: variable 'fp' is not initialized [cppcoreguidelines-init-variables]
        FILE *fp;
              ^
                 = NULL
/datasets/git/builtin/am.c:1382:8: warning: variable name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/am.c:1409:15: warning: variable 'tree' is not initialized [cppcoreguidelines-init-variables]
        struct tree *tree;
                     ^
                          = NULL
/datasets/git/builtin/am.c:1412:8: warning: variable 'fp' is not initialized [cppcoreguidelines-init-variables]
        FILE *fp;
              ^
                 = NULL
/datasets/git/builtin/am.c:1412:8: warning: variable name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/am.c:1417:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/builtin/am.c:1447:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/builtin/am.c:1450:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_mail_commit_oid(&commit_oid, mail) < 0)
                                                       ^
                                                        {
/datasets/git/builtin/am.c:1462:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                   NULL, REF_NO_DEREF, UPDATE_REFS_DIE_ON_ERR);
                         ^
/datasets/git/./refs.h:631:23: note: expanded from macro 'REF_NO_DEREF'
#define REF_NO_DEREF (1 << 0)
                      ^
/datasets/git/builtin/am.c:1476:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int res, opts_left;
        ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:1476:6: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        int res, opts_left;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/am.c:1476:11: warning: variable 'opts_left' is not initialized [cppcoreguidelines-init-variables]
        int res, opts_left;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/am.c:1480:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (init_apply_state(&apply_state, the_repository, NULL))
                                                                 ^
                                                                  {
/datasets/git/builtin/am.c:1486:34: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        opts_left = apply_parse_options(apply_opts.nr, apply_opts.v,
                                        ^
/datasets/git/builtin/am.c:1490:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts_left != 0)
                           ^
                            {
/datasets/git/builtin/am.c:1496:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/builtin/am.c:1503:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (state->threeway && !index_file)
                                           ^
                                            {
/datasets/git/builtin/am.c:1506:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (check_apply_state(&apply_state, force_apply))
                                                         ^
                                                          {
/datasets/git/builtin/am.c:1511:40: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        res = apply_all_patches(&apply_state, apply_paths.nr, apply_paths.v, options);
                                              ^
/datasets/git/builtin/am.c:1517:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (res)
                ^
                 {
/datasets/git/builtin/am.c:1534:23: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
        struct child_process cp = CHILD_PROCESS_INIT;
                             ^
/datasets/git/builtin/am.c:1542:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (run_command(&cp))
                             ^
                              {
/datasets/git/builtin/am.c:1553:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct object_id orig_tree, their_tree, our_tree;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:1555:23: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
        struct merge_options o;
                             ^
/datasets/git/builtin/am.c:1556:17: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        struct commit *result;
                       ^
                              = NULL
/datasets/git/builtin/am.c:1557:8: warning: variable 'their_tree_name' is not initialized [cppcoreguidelines-init-variables]
        char *their_tree_name;
              ^
                              = NULL
/datasets/git/builtin/am.c:1559:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid("HEAD", &our_tree) < 0)
                                           ^
                                            {
/datasets/git/builtin/am.c:1562:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (build_fake_ancestor(state, index_path))
                                                   ^
                                                    {
/datasets/git/builtin/am.c:1568:71: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_index_as_tree(&orig_tree, &the_index, index_path, 0, NULL))
                                                                             ^
                                                                              {
/datasets/git/builtin/am.c:1590:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (run_apply(state, index_path))
                                         ^
                                          {
/datasets/git/builtin/am.c:1594:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_index_as_tree(&their_tree, &the_index, index_path, 0, NULL))
                                                                              ^
                                                                               {
/datasets/git/builtin/am.c:1617:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (state->quiet)
                         ^
                          {
/datasets/git/builtin/am.c:1637:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct object_id tree, parent, commit;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:1638:26: warning: variable 'old_oid' is not initialized [cppcoreguidelines-init-variables]
        const struct object_id *old_oid;
                                ^
                                        = NULL
/datasets/git/builtin/am.c:1640:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *reflog_msg, *author, *committer = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:1640:14: warning: variable 'reflog_msg' is not initialized [cppcoreguidelines-init-variables]
        const char *reflog_msg, *author, *committer = NULL;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/am.c:1640:27: warning: variable 'author' is not initialized [cppcoreguidelines-init-variables]
        const char *reflog_msg, *author, *committer = NULL;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/am.c:1641:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/am.c:1643:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (run_hooks("pre-applypatch"))
                                        ^
                                         {
/datasets/git/builtin/am.c:1644:3: warning: function is not thread safe [concurrency-mt-unsafe]
                exit(1);
                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/am.c:1646:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_cache_as_tree(&tree, 0, NULL))
                                                ^
                                                 {
/datasets/git/builtin/am.c:1663:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (state->committer_date_is_author_date)
                                                 ^
                                                  {
/datasets/git/builtin/am.c:1664:25: warning: function is not thread safe [concurrency-mt-unsafe]
                committer = fmt_ident(getenv("GIT_COMMITTER_NAME"),
                                      ^
/datasets/git/builtin/am.c:1665:11: warning: function is not thread safe [concurrency-mt-unsafe]
                                      getenv("GIT_COMMITTER_EMAIL"),
                                      ^
/datasets/git/builtin/am.c:1673:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                 NULL))
                                       ^
                                        {
/datasets/git/builtin/am.c:1676:15: warning: function is not thread safe [concurrency-mt-unsafe]
        reflog_msg = getenv("GIT_REFLOG_ACTION");
                     ^
/datasets/git/builtin/am.c:1677:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!reflog_msg)
                        ^
                         {
/datasets/git/builtin/am.c:1687:9: warning: variable name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
                FILE *fp = xfopen(am_path(state, "rewritten"), "a");
                      ^
/datasets/git/builtin/am.c:1690:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(fp, "%s ", oid_to_hex(&state->orig_commit));
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:1690:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/am.c:1691:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(fp, "%s\n", oid_to_hex(&commit));
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:1691:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/am.c:1692:3: warning: the value returned by this function should be used [cert-err33-c]
                fclose(fp);
                ^~~~~~~~~~
/datasets/git/builtin/am.c:1692:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/am.c:1706:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!state->msg)
                        ^
                         {
/datasets/git/builtin/am.c:1710:73: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!state->author_name || !state->author_email || !state->author_date)
                                                                               ^
                                                                                {
/datasets/git/builtin/am.c:1726:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/builtin/am.c:1727:14: warning: 64 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                char reply[64];
                           ^
/datasets/git/builtin/am.c:1740:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!fgets(reply, sizeof(reply), stdin))
                                                        ^
                                                         {
/datasets/git/builtin/am.c:1745:5: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                } else if (*reply == 'a' || *reply == 'A') {
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:1760:25: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
                        struct child_process cp = CHILD_PROCESS_INIT;
                                             ^
/datasets/git/builtin/am.c:1762:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!pager)
                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/am.c:1778:13: warning: function 'am_run' has cognitive complexity of 54 (threshold 25) [readability-function-cognitive-complexity]
static void am_run(struct am_state *state, int resume)
            ^
/datasets/git/builtin/am.c:1784:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (repo_refresh_and_write_index(the_repository, REFRESH_QUIET, 0, 0,
        ^
/datasets/git/builtin/am.c:1788:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (repo_index_has_changes(the_repository, NULL, &sb)) {
        ^
/datasets/git/builtin/am.c:1795:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (state->cur <= state->last) {
        ^
/datasets/git/builtin/am.c:1802:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!file_exists(mail))
                ^
/datasets/git/builtin/am.c:1805:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (resume) {
                ^
/datasets/git/builtin/am.c:1807:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/am.c:1810:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (state->rebasing)
                        ^
/datasets/git/builtin/am.c:1812:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/builtin/am.c:1815:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (skip)
                        ^
/datasets/git/builtin/am.c:1818:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (state->signoff)
                        ^
/datasets/git/builtin/am.c:1825:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (state->interactive && do_interactive(state))
                ^
/datasets/git/builtin/am.c:1825:26: note: +1
                if (state->interactive && do_interactive(state))
                                       ^
/datasets/git/builtin/am.c:1829:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (is_empty_or_missing_file(am_path(state, "patch"))) {
                ^
/datasets/git/builtin/am.c:1830:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        switch (state->empty_type) {
                        ^
/datasets/git/builtin/am.c:1833:5: note: +1
                                goto next;
                                ^
/datasets/git/builtin/am.c:1847:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (run_applypatch_msg_hook(state))
                ^
/datasets/git/builtin/am.c:1849:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (to_keep)
                ^
/datasets/git/builtin/am.c:1856:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (apply_status && state->threeway) {
                ^
/datasets/git/builtin/am.c:1856:20: note: +1
                if (apply_status && state->threeway) {
                                 ^
/datasets/git/builtin/am.c:1867:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!apply_status &&
                        ^
/datasets/git/builtin/am.c:1867:22: note: +1
                        if (!apply_status &&
                                          ^
/datasets/git/builtin/am.c:1870:5: note: +1
                                goto next;
                                ^
/datasets/git/builtin/am.c:1874:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (apply_status) {
                ^
/datasets/git/builtin/am.c:1878:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (advice_enabled(ADVICE_AM_WORK_DIR))
                        ^
/datasets/git/builtin/am.c:1890:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (resume)
                ^
/datasets/git/builtin/am.c:1895:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!is_empty_or_missing_file(am_path(state, "rewritten"))) {
        ^
/datasets/git/builtin/am.c:1896:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(state->rebasing);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/builtin/am.c:1896:3: note: nesting level increased to 2
                assert(state->rebasing);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/builtin/am.c:1896:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(state->rebasing);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/builtin/am.c:1896:3: note: +1, nesting level increased to 3
                assert(state->rebasing);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/builtin/am.c:1905:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!state->rebasing) {
        ^
/datasets/git/builtin/am.c:1780:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/am.c:1784:51: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (repo_refresh_and_write_index(the_repository, REFRESH_QUIET, 0, 0,
                                                         ^
/datasets/git/./refs/../cache.h:923:43: note: expanded from macro 'REFRESH_QUIET'
#define REFRESH_QUIET                    (1 << 2) /* be quiet about it */
                                          ^
/datasets/git/builtin/am.c:1785:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                         NULL, NULL, NULL) < 0)
                                                               ^
                                                                {
/datasets/git/builtin/am.c:1795:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (state->cur <= state->last) {
        ^
/datasets/git/builtin/am.c:1795:9: warning: backward branch (while loop) is ID-dependent due to member reference to 'cur' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (state->cur <= state->last) {
               ^
/datasets/git/builtin/am.c:1797:7: warning: variable 'apply_status' is not initialized [cppcoreguidelines-init-variables]
                int apply_status;
                    ^
                                 = 0
/datasets/git/builtin/am.c:1798:7: warning: variable 'to_keep' is not initialized [cppcoreguidelines-init-variables]
                int to_keep;
                    ^
                            = 0
/datasets/git/builtin/am.c:1802:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!file_exists(mail))
                                       ^
                                        {
/datasets/git/builtin/am.c:1808:8: warning: variable 'skip' is not initialized [cppcoreguidelines-init-variables]
                        int skip;
                            ^
                                 = 0
/datasets/git/builtin/am.c:1810:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (state->rebasing)
                                            ^
                                             {
/datasets/git/builtin/am.c:1812:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/builtin/am.c:1815:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (skip)
                                 ^
                                  {
/datasets/git/builtin/am.c:1818:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (state->signoff)
                                           ^
                                            {
/datasets/git/builtin/am.c:1825:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (state->interactive && do_interactive(state))
                                                                ^
                                                                 {
/datasets/git/builtin/am.c:1847:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (run_applypatch_msg_hook(state))
                                                   ^
                                                    {
/datasets/git/builtin/am.c:1848:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        exit(1);
                        ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/am.c:1849:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (to_keep)
                            ^
                             {
/datasets/git/builtin/am.c:1857:18: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                        struct strbuf sb = STRBUF_INIT;
                                      ^
/datasets/git/builtin/am.c:1878:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (advice_enabled(ADVICE_AM_WORK_DIR))
                                                               ^
                                                                {
/datasets/git/builtin/am.c:1890:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (resume)
                           ^
                            {
/datasets/git/builtin/am.c:1943:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (do_interactive(state))
                                          ^
                                           {
/datasets/git/builtin/am.c:1966:19: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
        struct tree_desc t[2];
                         ^
/datasets/git/builtin/am.c:1968:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_tree(head) || parse_tree(remote))
                                                   ^
                                                    {
/datasets/git/builtin/am.c:1973:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        refresh_index(&the_index, REFRESH_QUIET, NULL, NULL, NULL);
                                  ^
/datasets/git/./refs/../cache.h:923:43: note: expanded from macro 'REFRESH_QUIET'
#define REFRESH_QUIET                    (1 << 2) /* be quiet about it */
                                          ^
/datasets/git/builtin/am.c:1975:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&opts, 0, sizeof(opts));
        ^~~~~~
/datasets/git/builtin/am.c:1975:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&opts, 0, sizeof(opts));
        ^~~~~~
/datasets/git/builtin/am.c:1992:49: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (write_locked_index(&the_index, &lock_file, COMMIT_LOCK))
                                                       ^
/datasets/git/./refs/../cache.h:744:23: note: expanded from macro 'COMMIT_LOCK'
#define COMMIT_LOCK             (1 << 0)
                                 ^
/datasets/git/builtin/am.c:1992:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_locked_index(&the_index, &lock_file, COMMIT_LOCK))
                                                                    ^
                                                                     {
/datasets/git/builtin/am.c:2006:19: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
        struct tree_desc t[1];
                         ^
/datasets/git/builtin/am.c:2008:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_tree(tree))
                             ^
                              {
/datasets/git/builtin/am.c:2013:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&opts, 0, sizeof(opts));
        ^~~~~~
/datasets/git/builtin/am.c:2013:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&opts, 0, sizeof(opts));
        ^~~~~~
/datasets/git/builtin/am.c:2026:49: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (write_locked_index(&the_index, &lock_file, COMMIT_LOCK))
                                                       ^
/datasets/git/./refs/../cache.h:744:23: note: expanded from macro 'COMMIT_LOCK'
#define COMMIT_LOCK             (1 << 0)
                                 ^
/datasets/git/builtin/am.c:2026:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_locked_index(&the_index, &lock_file, COMMIT_LOCK))
                                                                    ^
                                                                     {
/datasets/git/builtin/am.c:2038:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct tree *head_tree, *remote_tree, *index_tree;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:2038:15: warning: variable 'head_tree' is not initialized [cppcoreguidelines-init-variables]
        struct tree *head_tree, *remote_tree, *index_tree;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/am.c:2038:27: warning: variable 'remote_tree' is not initialized [cppcoreguidelines-init-variables]
        struct tree *head_tree, *remote_tree, *index_tree;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/am.c:2038:41: warning: variable 'index_tree' is not initialized [cppcoreguidelines-init-variables]
        struct tree *head_tree, *remote_tree, *index_tree;
                                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/am.c:2042:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!head_tree)
                       ^
                        {
/datasets/git/builtin/am.c:2046:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!remote_tree)
                         ^
                          {
/datasets/git/builtin/am.c:2051:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fast_forward_to(head_tree, head_tree, 1))
                                                     ^
                                                      {
/datasets/git/builtin/am.c:2054:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_cache_as_tree(&index, 0, NULL))
                                                 ^
                                                  {
/datasets/git/builtin/am.c:2058:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!index_tree)
                        ^
                         {
/datasets/git/builtin/am.c:2061:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fast_forward_to(index_tree, remote_tree, 0))
                                                        ^
                                                         {
/datasets/git/builtin/am.c:2064:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (merge_tree(remote_tree))
                                    ^
                                     {
/datasets/git/builtin/am.c:2091:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid("HEAD", &head))
                                   ^
                                    {
/datasets/git/builtin/am.c:2094:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (clean_index(&head, &head))
                                      ^
                                       {
/datasets/git/builtin/am.c:2098:9: warning: variable name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
                FILE *fp = xfopen(am_path(state, "rewritten"), "a");
                      ^
/datasets/git/builtin/am.c:2101:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(fp, "%s ", oid_to_hex(&state->orig_commit));
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:2101:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/am.c:2102:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(fp, "%s\n", oid_to_hex(&head));
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:2102:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/am.c:2103:3: warning: the value returned by this function should be used [cert-err33-c]
                fclose(fp);
                ^~~~~~~~~~
/datasets/git/builtin/am.c:2103:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/am.c:2120:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/am.c:2121:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct object_id abort_safety, head;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:2123:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (file_exists(am_path(state, "dirtyindex")))
                                                      ^
                                                       {
/datasets/git/builtin/am.c:2127:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (get_oid_hex(sb.buf, &abort_safety))
                                                       ^
                                                        {
/datasets/git/builtin/am.c:2129:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/builtin/am.c:2133:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid("HEAD", &head))
                                   ^
                                    {
/datasets/git/builtin/am.c:2136:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oideq(&head, &abort_safety))
                                        ^
                                         {
/datasets/git/builtin/am.c:2150:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct object_id curr_head, orig_head;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:2151:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int has_curr_head, has_orig_head;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:2151:6: warning: variable 'has_curr_head' is not initialized [cppcoreguidelines-init-variables]
        int has_curr_head, has_orig_head;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/am.c:2151:21: warning: variable 'has_orig_head' is not initialized [cppcoreguidelines-init-variables]
        int has_curr_head, has_orig_head;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/am.c:2152:8: warning: variable 'curr_branch' is not initialized [cppcoreguidelines-init-variables]
        char *curr_branch;
              ^
                          = NULL
/datasets/git/builtin/am.c:2163:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!has_curr_head)
                           ^
                            {
/datasets/git/builtin/am.c:2167:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!has_orig_head)
                           ^
                            {
/datasets/git/builtin/am.c:2170:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (clean_index(&curr_head, &orig_head))
                                                ^
                                                 {
/datasets/git/builtin/am.c:2173:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (has_orig_head)
                          ^
                           {
/datasets/git/builtin/am.c:2177:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (curr_branch)
                             ^
                              {
/datasets/git/builtin/am.c:2178:39: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                delete_ref(NULL, curr_branch, NULL, REF_NO_DEREF);
                                                    ^
/datasets/git/./refs.h:631:23: note: expanded from macro 'REF_NO_DEREF'
#define REF_NO_DEREF (1 << 0)
                      ^
/datasets/git/builtin/am.c:2186:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/am.c:2187:14: warning: variable 'patch_path' is not initialized [cppcoreguidelines-init-variables]
        const char *patch_path;
                    ^
                               = NULL
/datasets/git/builtin/am.c:2188:6: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int len;
            ^
                = 0
/datasets/git/builtin/am.c:2210:8: warning: narrowing conversion from 'ssize_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        len = strbuf_read_file(&sb, patch_path, 0);
              ^
/datasets/git/builtin/am.c:2211:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len < 0)
                    ^
                     {
/datasets/git/builtin/am.c:2228:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unset)
                  ^
                   {
/datasets/git/builtin/am.c:2230:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(arg, "mbox"))
                                      ^
                                       {
/datasets/git/builtin/am.c:2232:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(arg, "stgit"))
                                       ^
                                        {
/datasets/git/builtin/am.c:2234:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(arg, "stgit-series"))
                                              ^
                                               {
/datasets/git/builtin/am.c:2236:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(arg, "hg"))
                                    ^
                                     {
/datasets/git/builtin/am.c:2238:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(arg, "mboxrd"))
                                        ^
                                         {
/datasets/git/builtin/am.c:2244:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/am.c:2261:8: warning: accessing fields in struct 'resume_mode' is inefficient due to poor alignment; currently aligned to 4 bytes, but recommended alignment is 8 bytes [altera-struct-pack-align]
struct resume_mode {
       ^
/datasets/git/builtin/am.c:2261:8: note: use "__attribute__((aligned(8)))" to align struct 'resume_mode' to 8 bytes
/datasets/git/builtin/am.c:2281:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/am.c:2284:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (new_value = 0; new_value < ARRAY_SIZE(valid_modes); new_value++) {
                ^
/datasets/git/builtin/am.c:2285:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!strcmp(arg, valid_modes[new_value]))
                                                                 ^
                                                                  {
/datasets/git/builtin/am.c:2288:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (new_value >= ARRAY_SIZE(valid_modes))
                                                         ^
                                                          {
/datasets/git/builtin/am.c:2293:73: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (resume->mode == RESUME_SHOW_PATCH && new_value != resume->sub_mode)
                                                                               ^
                                                                                {
/datasets/git/builtin/am.c:2303:38: warning: parameter name 'k' is too short, expected at least 3 characters [readability-identifier-length]
static int git_am_config(const char *k, const char *v, void *cb UNUSED)
                                     ^
/datasets/git/builtin/am.c:2303:53: warning: parameter name 'v' is too short, expected at least 3 characters [readability-identifier-length]
static int git_am_config(const char *k, const char *v, void *cb UNUSED)
                                                    ^
/datasets/git/builtin/am.c:2303:62: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int git_am_config(const char *k, const char *v, void *cb UNUSED)
                                                             ^
/datasets/git/builtin/am.c:2305:6: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int status;
            ^
                   = 0
/datasets/git/builtin/am.c:2308:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (status)
                   ^
                    {
/datasets/git/builtin/am.c:2314:5: warning: function 'cmd_am' has cognitive complexity of 37 (threshold 25) [readability-function-cognitive-complexity]
int cmd_am(int argc, const char **argv, const char *prefix)
    ^
/datasets/git/builtin/am.c:2432:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (argc == 2 && !strcmp(argv[1], "-h"))
        ^
/datasets/git/builtin/am.c:2432:16: note: +1
        if (argc == 2 && !strcmp(argv[1], "-h"))
                      ^
/datasets/git/builtin/am.c:2440:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (in_progress)
        ^
/datasets/git/builtin/am.c:2445:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (binary >= 0)
        ^
/datasets/git/builtin/am.c:2452:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (repo_read_index_preload(the_repository, NULL, 0) < 0)
        ^
/datasets/git/builtin/am.c:2455:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (in_progress) {
        ^
/datasets/git/builtin/am.c:2467:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (argc || (resume.mode == RESUME_FALSE && !isatty(0)))
                ^
/datasets/git/builtin/am.c:2467:12: note: +1
                if (argc || (resume.mode == RESUME_FALSE && !isatty(0)))
                         ^
/datasets/git/builtin/am.c:2467:44: note: +1
                if (argc || (resume.mode == RESUME_FALSE && !isatty(0)))
                                                         ^
/datasets/git/builtin/am.c:2471:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (resume.mode == RESUME_FALSE)
                ^
/datasets/git/builtin/am.c:2474:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (state.signoff == SIGNOFF_EXPLICIT)
                ^
/datasets/git/builtin/am.c:2476:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/am.c:2485:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (file_exists(state.dir) && !state.rebasing) {
                ^
/datasets/git/builtin/am.c:2485:30: note: +1
                if (file_exists(state.dir) && !state.rebasing) {
                                           ^
/datasets/git/builtin/am.c:2486:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (resume.mode == RESUME_ABORT || resume.mode == RESUME_QUIT) {
                        ^
/datasets/git/builtin/am.c:2486:36: note: +1
                        if (resume.mode == RESUME_ABORT || resume.mode == RESUME_QUIT) {
                                                        ^
/datasets/git/builtin/am.c:2497:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (resume.mode)
                ^
/datasets/git/builtin/am.c:2500:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < argc; i++) {
                ^
/datasets/git/builtin/am.c:2501:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (is_absolute_path(argv[i]) || !prefix)
                        ^
/datasets/git/builtin/am.c:2501:34: note: +1
                        if (is_absolute_path(argv[i]) || !prefix)
                                                      ^
/datasets/git/builtin/am.c:2503:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/builtin/am.c:2507:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (state.interactive && !paths.nr)
                ^
/datasets/git/builtin/am.c:2507:25: note: +1
                if (state.interactive && !paths.nr)
                                      ^
/datasets/git/builtin/am.c:2515:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        switch (resume.mode) {
        ^
/datasets/git/builtin/am.c:2524:56: note: +2, including nesting penalty of 1, nesting level increased to 2
                am_resolve(&state, resume.mode == RESUME_ALLOW_EMPTY ? 1 : 0);
                                                                     ^
/datasets/git/builtin/am.c:2321:6: warning: variable 'in_progress' is not initialized [cppcoreguidelines-init-variables]
        int in_progress;
            ^
                        = 0
/datasets/git/builtin/am.c:2331:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('i', "interactive", &state.interactive,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:2333:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_HIDDEN_BOOL('b', "binary", &binary,
                ^
/datasets/git/./parse-options.h:185:16: note: expanded from macro 'OPT_HIDDEN_BOOL'
                                      (h), PARSE_OPT_NOARG | PARSE_OPT_HIDDEN, NULL, 1}
                                           ^~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:2335:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('3', "3way", &state.threeway,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:2337:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__QUIET(&state.quiet, N_("be quiet")),
                ^
/datasets/git/./parse-options.h:360:31: note: expanded from macro 'OPT__QUIET'
#define OPT__QUIET(var, h)    OPT_COUNTUP('q', "quiet",   (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:2338:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT('s', "signoff", &state.signoff,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:2341:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('u', "utf8", &state.utf8,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:2343:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT('k', "keep", &state.keep,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:2345:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT(0, "keep-non-patch", &state.keep,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:2347:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('m', "message-id", &state.message_id,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:2349:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT_F(0, "keep-cr", &keep_cr,
                ^
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:2352:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT_F(0, "no-keep-cr", &keep_cr,
                ^
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:2355:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('c', "scissors", &state.scissors,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:2392:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_CMDMODE(0, "continue", &resume.mode,
                ^
/datasets/git/./parse-options.h:188:37: note: expanded from macro 'OPT_CMDMODE'
#define OPT_CMDMODE(s, l, v, h, i)  OPT_CMDMODE_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:187:16: note: expanded from macro 'OPT_CMDMODE_F'
                                      (h), PARSE_OPT_CMDMODE|PARSE_OPT_NOARG|PARSE_OPT_NONEG | (f), NULL, (i) }
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:2395:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_CMDMODE('r', "resolved", &resume.mode,
                ^
/datasets/git/./parse-options.h:188:37: note: expanded from macro 'OPT_CMDMODE'
#define OPT_CMDMODE(s, l, v, h, i)  OPT_CMDMODE_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:187:16: note: expanded from macro 'OPT_CMDMODE_F'
                                      (h), PARSE_OPT_CMDMODE|PARSE_OPT_NOARG|PARSE_OPT_NONEG | (f), NULL, (i) }
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:2398:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_CMDMODE(0, "skip", &resume.mode,
                ^
/datasets/git/./parse-options.h:188:37: note: expanded from macro 'OPT_CMDMODE'
#define OPT_CMDMODE(s, l, v, h, i)  OPT_CMDMODE_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:187:16: note: expanded from macro 'OPT_CMDMODE_F'
                                      (h), PARSE_OPT_CMDMODE|PARSE_OPT_NOARG|PARSE_OPT_NONEG | (f), NULL, (i) }
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:2401:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_CMDMODE(0, "abort", &resume.mode,
                ^
/datasets/git/./parse-options.h:188:37: note: expanded from macro 'OPT_CMDMODE'
#define OPT_CMDMODE(s, l, v, h, i)  OPT_CMDMODE_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:187:16: note: expanded from macro 'OPT_CMDMODE_F'
                                      (h), PARSE_OPT_CMDMODE|PARSE_OPT_NOARG|PARSE_OPT_NONEG | (f), NULL, (i) }
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:2404:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_CMDMODE(0, "quit", &resume.mode,
                ^
/datasets/git/./parse-options.h:188:37: note: expanded from macro 'OPT_CMDMODE'
#define OPT_CMDMODE(s, l, v, h, i)  OPT_CMDMODE_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:187:16: note: expanded from macro 'OPT_CMDMODE_F'
                                      (h), PARSE_OPT_CMDMODE|PARSE_OPT_NOARG|PARSE_OPT_NONEG | (f), NULL, (i) }
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:2410:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                  PARSE_OPT_CMDMODE | PARSE_OPT_OPTARG | PARSE_OPT_NONEG | PARSE_OPT_LITERAL_ARGHELP,
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:2412:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_CMDMODE(0, "allow-empty", &resume.mode,
                ^
/datasets/git/./parse-options.h:188:37: note: expanded from macro 'OPT_CMDMODE'
#define OPT_CMDMODE(s, l, v, h, i)  OPT_CMDMODE_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:187:16: note: expanded from macro 'OPT_CMDMODE_F'
                                      (h), PARSE_OPT_CMDMODE|PARSE_OPT_NOARG|PARSE_OPT_NONEG | (f), NULL, (i) }
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:2415:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "committer-date-is-author-date",
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:2418:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "ignore-date", &state.ignore_date,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:2427:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_HIDDEN_BOOL(0, "rebasing", &state.rebasing,
                ^
/datasets/git/./parse-options.h:185:16: note: expanded from macro 'OPT_HIDDEN_BOOL'
                                      (h), PARSE_OPT_NOARG | PARSE_OPT_HIDDEN, NULL, 1}
                                           ^~~~~~~~~~~~~~~
/datasets/git/builtin/am.c:2432:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc == 2 && !strcmp(argv[1], "-h"))
                                                ^
                                                 {
/datasets/git/builtin/am.c:2440:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (in_progress)
                        ^
                         {
/datasets/git/builtin/am.c:2445:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (binary >= 0)
                        ^
                         {
/datasets/git/builtin/am.c:2452:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_read_index_preload(the_repository, NULL, 0) < 0)
                                                                 ^
                                                                  {
/datasets/git/builtin/am.c:2467:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (argc || (resume.mode == RESUME_FALSE && !isatty(0)))
                                                                        ^
                                                                         {
/datasets/git/builtin/am.c:2471:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (resume.mode == RESUME_FALSE)
                                                ^
                                                 {
/datasets/git/builtin/am.c:2474:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (state.signoff == SIGNOFF_EXPLICIT)
                                                      ^
                                                       {
/datasets/git/builtin/am.c:2478:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/builtin/am.c:2478:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/am.c:2497:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (resume.mode)
                                ^
                                 {
/datasets/git/builtin/am.c:2500:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < argc; i++) {
                ^
/datasets/git/builtin/am.c:2500:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'argc' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < argc; i++) {
                            ^
/datasets/git/builtin/am.c:2501:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (is_absolute_path(argv[i]) || !prefix)
                                                                 ^
                                                                  {
/datasets/git/builtin/am.c:2503:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/builtin/am.c:2507:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (state.interactive && !paths.nr)
                                                   ^
                                                    {
/datasets/git/builtin/annotate.c:13:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/annotate.c:13:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/annotate.c:17:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 1; i < argc; i++) {
        ^
/datasets/git/builtin/annotate.c:21:19: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return cmd_blame(args.nr, args.v, prefix);
                         ^
/datasets/git/builtin/apply.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "builtin.h"
^        ~~~~~~~~~~~
         "apply.h"
/datasets/git/builtin/apply.c:15:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/builtin/apply.c:18:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (init_apply_state(&state, the_repository, prefix))
                                                             ^
                                                              {
/datasets/git/builtin/apply.c:19:3: warning: function is not thread safe [concurrency-mt-unsafe]
                exit(128);
                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/apply.c:25:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (check_apply_state(&state, force_apply))
                                                   ^
                                                    {
/datasets/git/builtin/apply.c:26:3: warning: function is not thread safe [concurrency-mt-unsafe]
                exit(128);
                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/archive.c:6:1: warning: #includes are not sorted properly [llvm-include-order]
#include "builtin.h"
^        ~~~~~~~~~~~
         "archive.h"
/datasets/git/builtin/archive.c:15:67: warning: 0666 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        int output_fd = xopen(output_file, O_CREAT | O_WRONLY | O_TRUNC, 0666);
                                                                         ^
/datasets/git/builtin/archive.c:17:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (dup2(output_fd, 1) < 0)
                                           ^
                                            {
/datasets/git/builtin/archive.c:19:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/archive.c:25:11: warning: 3 adjacent parameters of 'run_remote_archiver' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                               const char *remote, const char *exec,
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/archive.c:25:23: note: the first parameter in the range is 'remote'
                               const char *remote, const char *exec,
                                           ^~~~~~
/datasets/git/builtin/archive.c:26:23: note: the last parameter in the range is 'name_hint'
                               const char *name_hint)
                                           ^~~~~~~~~
/datasets/git/builtin/archive.c:28:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int fd[2], i, rv;
        ^~~~~~~~~~~~~~~~~
/datasets/git/builtin/archive.c:28:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
        int fd[2], i, rv;
            ^
/datasets/git/builtin/archive.c:28:13: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int fd[2], i, rv;
                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/archive.c:28:13: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/archive.c:28:16: warning: variable 'rv' is not initialized [cppcoreguidelines-init-variables]
        int fd[2], i, rv;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/archive.c:28:16: warning: variable name 'rv' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/archive.c:29:20: warning: variable 'transport' is not initialized [cppcoreguidelines-init-variables]
        struct transport *transport;
                          ^
                                    = NULL
/datasets/git/builtin/archive.c:30:17: warning: variable '_remote' is not initialized [cppcoreguidelines-init-variables]
        struct remote *_remote;
                       ^
                               = NULL
/datasets/git/builtin/archive.c:34:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!_remote->url[0])
                             ^
                              {
/datasets/git/builtin/archive.c:47:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (format)
                           ^
                            {
/datasets/git/builtin/archive.c:50:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 1; i < argc; i++)
        ^
/datasets/git/builtin/archive.c:50:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 1; i < argc; i++)
                                  ^
                                   {
/datasets/git/builtin/archive.c:55:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                           PACKET_READ_CHOMP_NEWLINE |
                           ^
/datasets/git/./pkt-line.h:85:43: note: expanded from macro 'PACKET_READ_CHOMP_NEWLINE'
#define PACKET_READ_CHOMP_NEWLINE        (1u<<1)
                                          ^   ~
/datasets/git/builtin/archive.c:56:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                           PACKET_READ_DIE_ON_ERR_PACKET);
                           ^
/datasets/git/./pkt-line.h:86:43: note: expanded from macro 'PACKET_READ_DIE_ON_ERR_PACKET'
#define PACKET_READ_DIE_ON_ERR_PACKET    (1u<<2)
                                          ^   ~
/datasets/git/builtin/archive.c:58:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (packet_reader_read(&reader) != PACKET_READ_NORMAL)
                                                              ^
                                                               {
/datasets/git/builtin/archive.c:60:6: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (strcmp(reader.line, "ACK")) {
            ^
                                       != 0
/datasets/git/builtin/archive.c:61:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (starts_with(reader.line, "NACK "))
                                                      ^
                                                       {
/datasets/git/builtin/archive.c:62:49: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        die(_("git archive: NACK %s"), reader.line + 5);
                                                                     ^
/datasets/git/builtin/archive.c:66:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (packet_reader_read(&reader) != PACKET_READ_FLUSH)
                                                             ^
                                                              {
/datasets/git/builtin/archive.c:71:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        rv |= transport_disconnect(transport);
        ^~
/datasets/git/builtin/archive.c:97:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                             PARSE_OPT_KEEP_ALL);
                             ^
/datasets/git/builtin/archive.c:76:30: note: expanded from macro 'PARSE_OPT_KEEP_ALL'
#define PARSE_OPT_KEEP_ALL ( PARSE_OPT_KEEP_DASHDASH |  \
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/archive.c:101:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (output)
                   ^
                    {
/datasets/git/builtin/archive.c:104:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (remote)
                   ^
                    {
/datasets/git/builtin/archive.c:107:2: warning: the value returned by this function should be used [cert-err33-c]
        setvbuf(stderr, NULL, _IOLBF, BUFSIZ);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/archive.c:107:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/bisect--helper.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "cache.h"
^        ~~~~~~~~~
         "bisect.h"
/datasets/git/builtin/bisect--helper.c:13:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(git_path_bisect_terms, "BISECT_TERMS")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/builtin/bisect--helper.c:14:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(git_path_bisect_expected_rev, "BISECT_EXPECTED_REV")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/builtin/bisect--helper.c:15:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(git_path_bisect_ancestors_ok, "BISECT_ANCESTORS_OK")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/builtin/bisect--helper.c:16:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(git_path_bisect_start, "BISECT_START")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/builtin/bisect--helper.c:17:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(git_path_bisect_log, "BISECT_LOG")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/builtin/bisect--helper.c:18:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(git_path_head_name, "head-name")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/builtin/bisect--helper.c:19:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(git_path_bisect_names, "BISECT_NAMES")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/builtin/bisect--helper.c:20:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(git_path_bisect_first_parent, "BISECT_FIRST_PARENT")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/builtin/bisect--helper.c:21:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(git_path_bisect_run, "BISECT_RUN")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/builtin/bisect--helper.c:26:5: warning: suspicious string literal, probably missing a comma [bugprone-suspicious-missing-comma]
        N_("git bisect--helper --bisect-start [--term-{new,bad}=<term> --term-{old,good}=<term>]"
           ^
/datasets/git/builtin/bisect--helper.c:38:8: warning: accessing fields in struct 'add_bisect_ref_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct add_bisect_ref_data {
       ^
/datasets/git/builtin/bisect--helper.c:38:8: note: use "__attribute__((aligned(16)))" to align struct 'add_bisect_ref_data' to 16 bytes
/datasets/git/builtin/bisect--helper.c:43:8: warning: accessing fields in struct 'bisect_terms' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct bisect_terms {
       ^
/datasets/git/builtin/bisect--helper.c:43:8: note: use "__attribute__((aligned(16)))" to align struct 'bisect_terms' to 16 bytes
/datasets/git/builtin/bisect--helper.c:50:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(terms->term_good);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/bisect--helper.c:51:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(terms->term_bad);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/bisect--helper.c:77:14: warning: variable 'match' is not initialized [cppcoreguidelines-init-variables]
        const char *match;
                    ^
                          = NULL
/datasets/git/builtin/bisect--helper.c:80:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (!res && (match = va_arg(matches, const char *)))
        ^
/datasets/git/builtin/bisect--helper.c:80:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'res' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (!res && (match = va_arg(matches, const char *)))
               ^
/datasets/git/builtin/bisect--helper.c:80:26: warning: va_arg() is called on an uninitialized va_list [clang-analyzer-valist.Uninitialized]
        while (!res && (match = va_arg(matches, const char *)))
                                ^
/usr/lib/llvm-15/lib/clang/15.0.2/include/stdarg.h:19:29: note: expanded from macro 'va_arg'
#define va_arg(ap, type)    __builtin_va_arg(ap, type)
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:80:10: note: 'res' is 0
        while (!res && (match = va_arg(matches, const char *)))
                ^~~
/datasets/git/builtin/bisect--helper.c:80:9: note: Left side of '&&' is true
        while (!res && (match = va_arg(matches, const char *)))
               ^
/datasets/git/builtin/bisect--helper.c:80:26: note: va_arg() is called on an uninitialized va_list
        while (!res && (match = va_arg(matches, const char *)))
                                ^
/usr/lib/llvm-15/lib/clang/15.0.2/include/stdarg.h:19:29: note: expanded from macro 'va_arg'
#define va_arg(ap, type)    __builtin_va_arg(ap, type)
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:80:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (!res && (match = va_arg(matches, const char *)))
                                                               ^
                                                                {
/datasets/git/builtin/bisect--helper.c:100:44: warning: 2 adjacent parameters of 'write_in_file' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int write_in_file(const char *path, const char *mode, const char *format, va_list args)
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:100:56: note: the first parameter in the range is 'mode'
static int write_in_file(const char *path, const char *mode, const char *format, va_list args)
                                                       ^~~~
/datasets/git/builtin/bisect--helper.c:100:74: note: the last parameter in the range is 'format'
static int write_in_file(const char *path, const char *mode, const char *format, va_list args)
                                                                         ^~~~~~
/datasets/git/builtin/bisect--helper.c:102:8: warning: variable name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
        FILE *fp = NULL;
              ^
/datasets/git/builtin/bisect--helper.c:105:6: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (strcmp(mode, "w") && strcmp(mode, "a"))
            ^
                              != 0
/datasets/git/builtin/bisect--helper.c:105:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strcmp(mode, "w") && strcmp(mode, "a"))
                                                   ^
                                                    {
/datasets/git/builtin/bisect--helper.c:108:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!fp)
                ^
                 {
/datasets/git/builtin/bisect--helper.c:110:8: warning: Function 'vfprintf' is called with an uninitialized va_list argument [clang-analyzer-valist.Uninitialized]
        res = vfprintf(fp, format, args);
              ^
/datasets/git/builtin/bisect--helper.c:129:8: note: Calling 'write_in_file'
        res = write_in_file(path, "w", format, args);
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:105:24: note: Left side of '&&' is false
        if (strcmp(mode, "w") && strcmp(mode, "a"))
                              ^
/datasets/git/builtin/bisect--helper.c:108:6: note: Assuming 'fp' is non-null
        if (!fp)
            ^~~
/datasets/git/builtin/bisect--helper.c:108:2: note: Taking false branch
        if (!fp)
        ^
/datasets/git/builtin/bisect--helper.c:110:8: note: Function 'vfprintf' is called with an uninitialized va_list argument
        res = vfprintf(fp, format, args);
              ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:114:3: warning: the value returned by this function should be used [cert-err33-c]
                fclose(fp);
                ^~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:114:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/bisect--helper.c:125:6: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        int res;
            ^
                = 0
/datasets/git/builtin/bisect--helper.c:138:6: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        int res;
            ^
                = 0
/datasets/git/builtin/bisect--helper.c:150:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
        int fd = open(path, O_RDONLY);
            ^
/datasets/git/builtin/bisect--helper.c:150:30: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
        int fd = open(path, O_RDONLY);
                                    ^
                                     | O_CLOEXEC
/datasets/git/builtin/bisect--helper.c:153:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fd < 0)
                   ^
                    {
/datasets/git/builtin/bisect--helper.c:155:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (copy_fd(fd, 1) < 0)
                               ^
                                {
/datasets/git/builtin/bisect--helper.c:163:6: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        int res;
            ^
                = 0
/datasets/git/builtin/bisect--helper.c:169:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (res)
                ^
                 {
/datasets/git/builtin/bisect--helper.c:173:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        "visualize", "view", "replay", "log", "run", "terms", NULL))
                                                                                    ^
                                                                                     {
/datasets/git/builtin/bisect--helper.c:182:7: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if ((strcmp(orig_term, "bad") && one_of(term, "bad", "new", NULL)) ||
             ^
                                      != 0
/datasets/git/builtin/bisect--helper.c:183:5: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                 (strcmp(orig_term, "good") && one_of(term, "good", "old", NULL)))
                  ^
                                            != 0
/datasets/git/builtin/bisect--helper.c:183:69: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                 (strcmp(orig_term, "good") && one_of(term, "good", "old", NULL)))
                                                                                  ^
                                                                                   {
/datasets/git/builtin/bisect--helper.c:191:6: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        int res;
            ^
                = 0
/datasets/git/builtin/bisect--helper.c:193:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(bad, good))
                               ^
                                {
/datasets/git/builtin/bisect--helper.c:196:71: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (check_term_format(bad, "bad") || check_term_format(good, "good"))
                                                                             ^
                                                                              {
/datasets/git/builtin/bisect--helper.c:217:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (get_oid_commit(commit, &oid))
                                                 ^
                                                  {
/datasets/git/builtin/bisect--helper.c:240:30: warning: parameter name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
static void log_commit(FILE *fp, char *fmt, const char *state,
                             ^
/datasets/git/builtin/bisect--helper.c:243:30: warning: variable name 'pp' is too short, expected at least 3 characters [readability-identifier-length]
        struct pretty_print_context pp = {0};
                                    ^
/datasets/git/builtin/bisect--helper.c:249:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(fp, "# %s: [%s] %s\n", label, oid_to_hex(&commit->object.oid),
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:249:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/bisect--helper.c:261:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/builtin/bisect--helper.c:262:8: warning: variable name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
        FILE *fp = NULL;
              ^
/datasets/git/builtin/bisect--helper.c:294:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!nolog)
                   ^
                    {
/datasets/git/builtin/bisect--helper.c:295:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(fp, "git bisect %s %s\n", state, rev);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:295:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/bisect--helper.c:298:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fp)
               ^
                {
/datasets/git/builtin/bisect--helper.c:299:3: warning: the value returned by this function should be used [cert-err33-c]
                fclose(fp);
                ^~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:299:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/bisect--helper.c:308:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (one_of(cmd, "skip", "start", "terms", NULL))
                                                        ^
                                                         {
/datasets/git/builtin/bisect--helper.c:311:23: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (has_term_file && strcmp(cmd, terms->term_bad) &&
                             ^
                                                          != 0
/datasets/git/builtin/bisect--helper.c:311:23: warning: Null pointer passed to 2nd parameter expecting 'nonnull' [clang-analyzer-core.NonNullParamChecker]
/datasets/git/builtin/bisect--helper.c:1383:2: note: 'terms.term_bad' initialized to a null pointer value
        struct bisect_terms terms = { 0 };
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:1385:6: note: Assuming 'argc' is not equal to 0
        if (!argc)
            ^~~~~
/datasets/git/builtin/bisect--helper.c:1385:2: note: Taking false branch
        if (!argc)
        ^
/datasets/git/builtin/bisect--helper.c:1387:2: note: Calling 'get_terms'
        get_terms(&terms);
        ^~~~~~~~~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:454:6: note: Assuming 'fp' is null
        if (!fp) {
            ^~~
/datasets/git/builtin/bisect--helper.c:454:2: note: Taking true branch
        if (!fp) {
        ^
/datasets/git/builtin/bisect--helper.c:456:3: note: Control jumps to line 466
                goto finish;
                ^
/datasets/git/builtin/bisect--helper.c:466:6: note: 'fp' is null
        if (fp)
            ^~
/datasets/git/builtin/bisect--helper.c:466:2: note: Taking false branch
        if (fp)
        ^
/datasets/git/builtin/bisect--helper.c:469:2: note: Returning without writing to 'terms->term_bad'
        return res;
        ^
/datasets/git/builtin/bisect--helper.c:1387:2: note: Returning from 'get_terms'
        get_terms(&terms);
        ^~~~~~~~~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:1388:8: note: Calling 'bisect_run'
        res = bisect_run(&terms, argv, argc);
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:1191:2: note: Taking false branch
        if (bisect_next_check(terms, NULL))
        ^
/datasets/git/builtin/bisect--helper.c:1194:6: note: 'argc' is not equal to 0
        if (argc)
            ^~~~
/datasets/git/builtin/bisect--helper.c:1194:2: note: Taking true branch
        if (argc)
        ^
/datasets/git/builtin/bisect--helper.c:1201:2: note: Loop condition is true.  Entering loop body
        while (1) {
        ^
/datasets/git/builtin/bisect--helper.c:1211:7: note: 'is_first_run' is 1
                if (is_first_run && (res == 126 || res == 127)) {
                    ^~~~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:1211:7: note: Left side of '&&' is true
/datasets/git/builtin/bisect--helper.c:1211:24: note: Assuming 'res' is not equal to 126
                if (is_first_run && (res == 126 || res == 127)) {
                                     ^~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:1211:24: note: Left side of '||' is false
/datasets/git/builtin/bisect--helper.c:1211:38: note: Assuming 'res' is not equal to 127
                if (is_first_run && (res == 126 || res == 127)) {
                                                   ^~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:1211:3: note: Taking false branch
                if (is_first_run && (res == 126 || res == 127)) {
                ^
/datasets/git/builtin/bisect--helper.c:1228:7: note: Assuming 'res' is >= 0
                if (res < 0 || 128 <= res) {
                    ^~~~~~~
/datasets/git/builtin/bisect--helper.c:1228:7: note: Left side of '||' is false
/datasets/git/builtin/bisect--helper.c:1228:18: note: Assuming 'res' is < 128
                if (res < 0 || 128 <= res) {
                               ^~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:1228:3: note: Taking false branch
                if (res < 0 || 128 <= res) {
                ^
/datasets/git/builtin/bisect--helper.c:1234:7: note: Assuming 'res' is equal to 125
                if (res == 125)
                    ^~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:1234:3: note: Taking true branch
                if (res == 125)
                ^
/datasets/git/builtin/bisect--helper.c:1243:7: note: Assuming 'temporary_stdout_fd' is >= 0
                if (temporary_stdout_fd < 0) {
                    ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:1243:3: note: Taking false branch
                if (temporary_stdout_fd < 0) {
                ^
/datasets/git/builtin/bisect--helper.c:1252:9: note: Calling 'bisect_state'
                res = bisect_state(terms, &new_state, 1);
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:903:7: note: 'argc' is 1
        if (!argc)
             ^~~~
/datasets/git/builtin/bisect--helper.c:903:2: note: Taking false branch
        if (!argc)
        ^
/datasets/git/builtin/bisect--helper.c:906:6: note: Calling 'bisect_autostart'
        if (bisect_autostart(terms))
            ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:872:2: note: Taking true branch
        if (file_is_not_empty(git_path_bisect_start()))
        ^
/datasets/git/builtin/bisect--helper.c:873:3: note: Returning without writing to 'terms->term_bad'
                return 0;
                ^
/datasets/git/builtin/bisect--helper.c:906:6: note: Returning from 'bisect_autostart'
        if (bisect_autostart(terms))
            ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:906:2: note: Taking false branch
        if (bisect_autostart(terms))
        ^
/datasets/git/builtin/bisect--helper.c:910:6: note: Calling 'check_and_set_terms'
        if (check_and_set_terms(terms, state) ||
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:306:22: note: Assuming the condition is true
        int has_term_file = !is_empty_or_missing_file(git_path_bisect_terms());
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:308:6: note: Assuming the condition is false
        if (one_of(cmd, "skip", "start", "terms", NULL))
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:308:2: note: Taking false branch
        if (one_of(cmd, "skip", "start", "terms", NULL))
        ^
/datasets/git/builtin/bisect--helper.c:311:6: note: 'has_term_file' is 1
        if (has_term_file && strcmp(cmd, terms->term_bad) &&
            ^~~~~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:311:6: note: Left side of '&&' is true
/datasets/git/builtin/bisect--helper.c:311:23: note: Null pointer passed to 2nd parameter expecting 'nonnull'
        if (has_term_file && strcmp(cmd, terms->term_bad) &&
                             ^           ~~~~~~~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:312:6: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
            strcmp(cmd, terms->term_good))
            ^
                                          != 0
/datasets/git/builtin/bisect--helper.c:312:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            strcmp(cmd, terms->term_good))
                                          ^
                                           {
/datasets/git/builtin/bisect--helper.c:335:16: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned int *nr = (unsigned int *)cb_data;
                      ^
/datasets/git/builtin/bisect--helper.c:353:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!missing_good && !missing_bad)
                                          ^
                                           {
/datasets/git/builtin/bisect--helper.c:355:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!current_term)
                          ^
                           {
/datasets/git/builtin/bisect--helper.c:360:9: warning: variable 'yesno' is not initialized [cppcoreguidelines-init-variables]
                char *yesno;
                      ^
                            = NULL
/datasets/git/builtin/bisect--helper.c:366:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!isatty(0))
                               ^
                                {
/datasets/git/builtin/bisect--helper.c:373:49: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                yesno = git_prompt(_("Are you sure [Y/n]? "), PROMPT_ECHO);
                                                              ^
/datasets/git/./prompt.h:5:25: note: expanded from macro 'PROMPT_ECHO'
#define PROMPT_ECHO    (1<<1)
                        ^
/datasets/git/builtin/bisect--helper.c:374:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (starts_with(yesno, "N") || starts_with(yesno, "n"))
                                                                       ^
                                                                        {
/datasets/git/builtin/bisect--helper.c:379:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_empty_or_missing_file(git_path_bisect_start()))
                                                               ^
                                                                {
/datasets/git/builtin/bisect--helper.c:382:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else
        ^~~~
                        return error
/datasets/git/builtin/bisect--helper.c:382:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/bisect--helper.c:393:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ref_exists(bad_ref))
                                ^
                                 {
/datasets/git/builtin/bisect--helper.c:407:10: warning: variable name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
        va_list ap;
                ^
/datasets/git/builtin/bisect--helper.c:426:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (state.nr_good && state.nr_bad)
                                          ^
                                           {
/datasets/git/builtin/bisect--helper.c:429:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!state.nr_good && !state.nr_bad)
                                            ^
                                             {
/datasets/git/builtin/bisect--helper.c:431:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (state.nr_good)
                               ^
                                {
/datasets/git/builtin/bisect--helper.c:435:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/bisect--helper.c:450:8: warning: variable name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
        FILE *fp = NULL;
              ^
/datasets/git/builtin/bisect--helper.c:466:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fp)
               ^
                {
/datasets/git/builtin/bisect--helper.c:467:3: warning: the value returned by this function should be used [cert-err33-c]
                fclose(fp);
                ^~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:467:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/bisect--helper.c:474:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_terms(terms))
                             ^
                              {
/datasets/git/builtin/bisect--helper.c:483:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (one_of(option, "--term-good", "--term-old", NULL))
                                                              ^
                                                               {
/datasets/git/builtin/bisect--helper.c:485:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (one_of(option, "--term-bad", "--term-new", NULL))
                                                                  ^
                                                                   {
/datasets/git/builtin/bisect--helper.c:487:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/bisect--helper.c:499:8: warning: variable name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
        FILE *fp = fopen(git_path_bisect_log(), "a");
              ^
/datasets/git/builtin/bisect--helper.c:502:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!fp)
                ^
                 {
/datasets/git/builtin/bisect--helper.c:511:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fprintf(fp, "%s\n", orig_args.buf) < 1)
                                                   ^
                                                    {
/datasets/git/builtin/bisect--helper.c:521:30: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
                          int flags UNUSED, void *cb)
                                                  ^
/datasets/git/builtin/bisect--helper.c:533:29: warning: variable name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
        struct add_bisect_ref_data cb = { revs };
                                   ^
/datasets/git/builtin/bisect--helper.c:552:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        cb.object_flags = UNINTERESTING;
                          ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/builtin/bisect--helper.c:554:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prepare_revision_walk(revs))
                                        ^
                                         {
/datasets/git/builtin/bisect--helper.c:564:6: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        int res;
            ^
                = 0
/datasets/git/builtin/bisect--helper.c:565:8: warning: variable name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
        FILE *fp = NULL;
              ^
/datasets/git/builtin/bisect--helper.c:567:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/builtin/bisect--helper.c:568:30: warning: variable name 'pp' is too short, expected at least 3 characters [readability-identifier-length]
        struct pretty_print_context pp = {0};
                                    ^
/datasets/git/builtin/bisect--helper.c:572:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (res)
                ^
                 {
/datasets/git/builtin/bisect--helper.c:576:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!fp)
                ^
                 {
/datasets/git/builtin/bisect--helper.c:580:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fprintf(fp, "# only skipped commits left to test\n") < 0)
                                                                     ^
                                                                      {
/datasets/git/builtin/bisect--helper.c:583:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((commit = get_revision(&revs)) != NULL) {
        ^
/datasets/git/builtin/bisect--helper.c:583:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'commit' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((commit = get_revision(&revs)) != NULL) {
               ^
/datasets/git/builtin/bisect--helper.c:587:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(fp, "# possible first %s commit: [%s] %s\n",
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:587:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/bisect--helper.c:600:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(fp);
        ^~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:600:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/bisect--helper.c:607:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/builtin/bisect--helper.c:608:30: warning: variable name 'pp' is too short, expected at least 3 characters [readability-identifier-length]
        struct pretty_print_context pp = {0};
                                    ^
/datasets/git/builtin/bisect--helper.c:611:6: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        int res;
            ^
                = 0
/datasets/git/builtin/bisect--helper.c:626:26: warning: function 'bisect_next' is within a recursive call chain [misc-no-recursion]
static enum bisect_error bisect_next(struct bisect_terms *terms, const char *prefix)
                         ^
/datasets/git/builtin/bisect--helper.c:649:26: note: example recursive call chain, starting from function 'bisect_auto_next'
static enum bisect_error bisect_auto_next(struct bisect_terms *terms, const char *prefix)
                         ^
/datasets/git/builtin/bisect--helper.c:656:9: note: Frame #1: function 'bisect_auto_next' calls function 'bisect_next' here:
        return bisect_next(terms, prefix);
               ^
/datasets/git/builtin/bisect--helper.c:630:6: note: Frame #2: function 'bisect_next' calls function 'bisect_autostart' here:
        if (bisect_autostart(terms))
            ^
/datasets/git/builtin/bisect--helper.c:889:8: note: Frame #3: function 'bisect_autostart' calls function 'bisect_start' here:
                -1 : bisect_start(terms, empty_strvec, 0);
                     ^
/datasets/git/builtin/bisect--helper.c:856:8: note: Frame #4: function 'bisect_start' calls function 'bisect_auto_next' here:
        res = bisect_auto_next(terms, NULL);
              ^
/datasets/git/builtin/bisect--helper.c:856:8: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/builtin/bisect--helper.c:628:20: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        enum bisect_error res;
                          ^
/datasets/git/builtin/bisect--helper.c:630:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (bisect_autostart(terms))
                                    ^
                                     {
/datasets/git/builtin/bisect--helper.c:633:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (bisect_next_check(terms, terms->term_good))
                                                       ^
                                                        {
/datasets/git/builtin/bisect--helper.c:642:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else if (res == BISECT_ONLY_SKIPPED_LEFT) {
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:649:26: warning: function 'bisect_auto_next' is within a recursive call chain [misc-no-recursion]
static enum bisect_error bisect_auto_next(struct bisect_terms *terms, const char *prefix)
                         ^
/datasets/git/builtin/bisect--helper.c:659:26: warning: function 'bisect_start' is within a recursive call chain [misc-no-recursion]
static enum bisect_error bisect_start(struct bisect_terms *terms, const char **argv, int argc)
                         ^
/datasets/git/builtin/bisect--helper.c:659:26: warning: function 'bisect_start' has cognitive complexity of 72 (threshold 25) [readability-function-cognitive-complexity]
/datasets/git/builtin/bisect--helper.c:674:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (is_bare_repository())
        ^
/datasets/git/builtin/bisect--helper.c:680:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < argc; i++) {
        ^
/datasets/git/builtin/bisect--helper.c:681:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(argv[i], "--")) {
                ^
/datasets/git/builtin/bisect--helper.c:687:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < argc; i++) {
        ^
/datasets/git/builtin/bisect--helper.c:689:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(argv[i], "--")) {
                ^
/datasets/git/builtin/bisect--helper.c:691:10: note: +1, nesting level increased to 2
                } else if (!strcmp(arg, "--no-checkout")) {
                       ^
/datasets/git/builtin/bisect--helper.c:693:10: note: +1, nesting level increased to 2
                } else if (!strcmp(arg, "--first-parent")) {
                       ^
/datasets/git/builtin/bisect--helper.c:695:10: note: +1, nesting level increased to 2
                } else if (!strcmp(arg, "--term-good") ||
                       ^
/datasets/git/builtin/bisect--helper.c:695:42: note: +1
                } else if (!strcmp(arg, "--term-good") ||
                                                       ^
/datasets/git/builtin/bisect--helper.c:698:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (argc <= i)
                        ^
/datasets/git/builtin/bisect--helper.c:703:10: note: +1, nesting level increased to 2
                } else if (skip_prefix(arg, "--term-good=", &arg) ||
                       ^
/datasets/git/builtin/bisect--helper.c:703:53: note: +1
                } else if (skip_prefix(arg, "--term-good=", &arg) ||
                                                                  ^
/datasets/git/builtin/bisect--helper.c:708:10: note: +1, nesting level increased to 2
                } else if (!strcmp(arg, "--term-bad") ||
                       ^
/datasets/git/builtin/bisect--helper.c:708:41: note: +1
                } else if (!strcmp(arg, "--term-bad") ||
                                                      ^
/datasets/git/builtin/bisect--helper.c:711:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (argc <= i)
                        ^
/datasets/git/builtin/bisect--helper.c:716:10: note: +1, nesting level increased to 2
                } else if (skip_prefix(arg, "--term-bad=", &arg) ||
                       ^
/datasets/git/builtin/bisect--helper.c:716:52: note: +1
                } else if (skip_prefix(arg, "--term-bad=", &arg) ||
                                                                 ^
/datasets/git/builtin/bisect--helper.c:721:10: note: +1, nesting level increased to 2
                } else if (starts_with(arg, "--")) {
                       ^
/datasets/git/builtin/bisect--helper.c:723:10: note: +1, nesting level increased to 2
                } else if (!get_oidf(&oid, "%s^{commit}", arg)) {
                       ^
/datasets/git/builtin/bisect--helper.c:725:10: note: +1, nesting level increased to 2
                } else if (has_double_dash) {
                       ^
/datasets/git/builtin/bisect--helper.c:728:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/bisect--helper.c:740:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (revs.nr)
        ^
/datasets/git/builtin/bisect--helper.c:742:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < revs.nr; i++) {
        ^
/datasets/git/builtin/bisect--helper.c:743:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (bad_seen) {
                ^
/datasets/git/builtin/bisect--helper.c:745:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/bisect--helper.c:755:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!head)
        ^
/datasets/git/builtin/bisect--helper.c:756:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (get_oid("HEAD", &head_oid))
                ^
/datasets/git/builtin/bisect--helper.c:762:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!is_empty_or_missing_file(git_path_bisect_start())) {
        ^
/datasets/git/builtin/bisect--helper.c:766:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!no_checkout) {
                ^
/datasets/git/builtin/bisect--helper.c:772:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (run_command(&cmd)) {
                        ^
/datasets/git/builtin/bisect--helper.c:777:5: note: +1
                                goto finish;
                                ^
/datasets/git/builtin/bisect--helper.c:780:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/bisect--helper.c:782:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!get_oid(head, &head_oid) &&
                ^
/datasets/git/builtin/bisect--helper.c:782:33: note: +1
                if (!get_oid(head, &head_oid) &&
                                              ^
/datasets/git/builtin/bisect--helper.c:786:10: note: +1, nesting level increased to 2
                } else if (!get_oid(head, &head_oid) &&
                       ^
/datasets/git/builtin/bisect--helper.c:786:40: note: +1
                } else if (!get_oid(head, &head_oid) &&
                                                     ^
/datasets/git/builtin/bisect--helper.c:793:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!is_empty_or_missing_file(git_path_head_name()))
                        ^
/datasets/git/builtin/bisect--helper.c:796:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/bisect--helper.c:804:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (bisect_clean_state())
        ^
/datasets/git/builtin/bisect--helper.c:812:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (first_parent_only)
        ^
/datasets/git/builtin/bisect--helper.c:815:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (no_checkout) {
        ^
/datasets/git/builtin/bisect--helper.c:816:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (get_oid(start_head.buf, &oid) < 0) {
                ^
/datasets/git/builtin/bisect--helper.c:818:4: note: +1
                        goto finish;
                        ^
/datasets/git/builtin/bisect--helper.c:820:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (update_ref(NULL, "BISECT_HEAD", &oid, NULL, 0,
                ^
/datasets/git/builtin/bisect--helper.c:823:4: note: +1
                        goto finish;
                        ^
/datasets/git/builtin/bisect--helper.c:827:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (pathspec_pos < argc - 1)
        ^
/datasets/git/builtin/bisect--helper.c:831:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < states.nr; i++)
        ^
/datasets/git/builtin/bisect--helper.c:832:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (bisect_write(states.items[i].string,
                ^
/datasets/git/builtin/bisect--helper.c:835:4: note: +1
                        goto finish;
                        ^
/datasets/git/builtin/bisect--helper.c:838:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (must_write_terms && write_terms(terms->term_bad,
        ^
/datasets/git/builtin/bisect--helper.c:838:23: note: +1
        if (must_write_terms && write_terms(terms->term_bad,
                             ^
/datasets/git/builtin/bisect--helper.c:841:3: note: +1
                goto finish;
                ^
/datasets/git/builtin/bisect--helper.c:845:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (res)
        ^
/datasets/git/builtin/bisect--helper.c:853:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (res)
        ^
/datasets/git/builtin/bisect--helper.c:857:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!is_bisect_success(res))
        ^
/datasets/git/builtin/bisect--helper.c:663:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, has_double_dash = 0, must_write_terms = 0, bad_seen = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:663:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, has_double_dash = 0, must_write_terms = 0, bad_seen = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/bisect--helper.c:663:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/bisect--helper.c:664:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int flags, pathspec_pos;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:664:6: warning: variable 'flags' is not initialized [cppcoreguidelines-init-variables]
        int flags, pathspec_pos;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/bisect--helper.c:664:13: warning: variable 'pathspec_pos' is not initialized [cppcoreguidelines-init-variables]
        int flags, pathspec_pos;
                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/bisect--helper.c:672:14: warning: variable 'head' is not initialized [cppcoreguidelines-init-variables]
        const char *head;
                    ^
                         = NULL
/datasets/git/builtin/bisect--helper.c:674:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_bare_repository())
                                 ^
                                  {
/datasets/git/builtin/bisect--helper.c:680:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < argc; i++) {
        ^
/datasets/git/builtin/bisect--helper.c:687:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < argc; i++) {
        ^
/datasets/git/builtin/bisect--helper.c:689:31: warning: repeated branch in conditional chain [bugprone-branch-clone]
                if (!strcmp(argv[i], "--")) {
                                            ^
/datasets/git/builtin/bisect--helper.c:691:4: note: end of the original
                } else if (!strcmp(arg, "--no-checkout")) {
                 ^
/datasets/git/builtin/bisect--helper.c:728:10: note: clone 1 starts here
                } else {
                       ^
/datasets/git/builtin/bisect--helper.c:691:5: warning: do not use 'else' after 'break' [llvm-else-after-return,readability-else-after-return]
                } else if (!strcmp(arg, "--no-checkout")) {
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:698:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (argc <= i)
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/bisect--helper.c:711:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (argc <= i)
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/bisect--helper.c:740:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs.nr)
                    ^
                     {
/datasets/git/builtin/bisect--helper.c:742:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < revs.nr; i++) {
        ^
/datasets/git/builtin/bisect--helper.c:755:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!head)
                  ^
                   {
/datasets/git/builtin/bisect--helper.c:756:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (get_oid("HEAD", &head_oid))
                                               ^
                                                {
/datasets/git/builtin/bisect--helper.c:793:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!is_empty_or_missing_file(git_path_head_name()))
                                                                            ^
                                                                             {
/datasets/git/builtin/bisect--helper.c:804:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (bisect_clean_state())
                                 ^
                                  {
/datasets/git/builtin/bisect--helper.c:812:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (first_parent_only)
                              ^
                               {
/datasets/git/builtin/bisect--helper.c:827:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pathspec_pos < argc - 1)
                                    ^
                                     {
/datasets/git/builtin/bisect--helper.c:831:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < states.nr; i++)
        ^
/datasets/git/builtin/bisect--helper.c:831:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < states.nr; i++)
                                       ^
                                        {
/datasets/git/builtin/bisect--helper.c:845:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (res)
                ^
                 {
/datasets/git/builtin/bisect--helper.c:853:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (res)
                ^
                 {
/datasets/git/builtin/bisect--helper.c:857:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_bisect_success(res))
                                    ^
                                     {
/datasets/git/builtin/bisect--helper.c:867:12: warning: function 'bisect_autostart' is within a recursive call chain [misc-no-recursion]
static int bisect_autostart(struct bisect_terms *terms)
           ^
/datasets/git/builtin/bisect--helper.c:869:6: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        int res;
            ^
                = 0
/datasets/git/builtin/bisect--helper.c:870:14: warning: variable 'yesno' is not initialized [cppcoreguidelines-init-variables]
        const char *yesno;
                    ^
                          = NULL
/datasets/git/builtin/bisect--helper.c:872:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (file_is_not_empty(git_path_bisect_start()))
                                                       ^
                                                        {
/datasets/git/builtin/bisect--helper.c:878:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!isatty(STDIN_FILENO))
                                  ^
                                   {
/datasets/git/builtin/bisect--helper.c:887:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                             "[Y/n]? "), PROMPT_ECHO);
                                         ^
/datasets/git/./prompt.h:5:25: note: expanded from macro 'PROMPT_ECHO'
#define PROMPT_ECHO    (1<<1)
                        ^
/datasets/git/builtin/bisect--helper.c:897:14: warning: variable 'state' is not initialized [cppcoreguidelines-init-variables]
        const char *state;
                    ^
                          = NULL
/datasets/git/builtin/bisect--helper.c:898:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, verify_expected = 1;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:898:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, verify_expected = 1;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/bisect--helper.c:898:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/bisect--helper.c:899:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct object_id oid, expected;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:903:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!argc)
                  ^
                   {
/datasets/git/builtin/bisect--helper.c:906:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (bisect_autostart(terms))
                                    ^
                                     {
/datasets/git/builtin/bisect--helper.c:911:7: warning: Use of memory after it is freed [clang-analyzer-unix.Malloc]
            !one_of(state, terms->term_good, terms->term_bad, "skip", NULL))
             ^
/datasets/git/builtin/bisect--helper.c:1385:6: note: Assuming 'argc' is not equal to 0
        if (!argc)
            ^~~~~
/datasets/git/builtin/bisect--helper.c:1385:2: note: Taking false branch
        if (!argc)
        ^
/datasets/git/builtin/bisect--helper.c:1388:8: note: Calling 'bisect_run'
        res = bisect_run(&terms, argv, argc);
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:1191:2: note: Taking false branch
        if (bisect_next_check(terms, NULL))
        ^
/datasets/git/builtin/bisect--helper.c:1194:6: note: 'argc' is not equal to 0
        if (argc)
            ^~~~
/datasets/git/builtin/bisect--helper.c:1194:2: note: Taking true branch
        if (argc)
        ^
/datasets/git/builtin/bisect--helper.c:1201:2: note: Loop condition is true.  Entering loop body
        while (1) {
        ^
/datasets/git/builtin/bisect--helper.c:1211:7: note: 'is_first_run' is 1
                if (is_first_run && (res == 126 || res == 127)) {
                    ^~~~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:1211:7: note: Left side of '&&' is true
/datasets/git/builtin/bisect--helper.c:1211:24: note: Assuming 'res' is not equal to 126
                if (is_first_run && (res == 126 || res == 127)) {
                                     ^~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:1211:24: note: Left side of '||' is false
/datasets/git/builtin/bisect--helper.c:1211:38: note: Assuming 'res' is not equal to 127
                if (is_first_run && (res == 126 || res == 127)) {
                                                   ^~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:1211:3: note: Taking false branch
                if (is_first_run && (res == 126 || res == 127)) {
                ^
/datasets/git/builtin/bisect--helper.c:1228:7: note: Assuming 'res' is >= 0
                if (res < 0 || 128 <= res) {
                    ^~~~~~~
/datasets/git/builtin/bisect--helper.c:1228:7: note: Left side of '||' is false
/datasets/git/builtin/bisect--helper.c:1228:18: note: Assuming 'res' is < 128
                if (res < 0 || 128 <= res) {
                               ^~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:1228:3: note: Taking false branch
                if (res < 0 || 128 <= res) {
                ^
/datasets/git/builtin/bisect--helper.c:1234:7: note: Assuming 'res' is not equal to 125
                if (res == 125)
                    ^~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:1234:3: note: Taking false branch
                if (res == 125)
                ^
/datasets/git/builtin/bisect--helper.c:1236:12: note: Assuming 'res' is not equal to 0
                else if (!res)
                         ^~~~
/datasets/git/builtin/bisect--helper.c:1236:8: note: Taking false branch
                else if (!res)
                     ^
/datasets/git/builtin/bisect--helper.c:1243:7: note: Assuming 'temporary_stdout_fd' is >= 0
                if (temporary_stdout_fd < 0) {
                    ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:1243:3: note: Taking false branch
                if (temporary_stdout_fd < 0) {
                ^
/datasets/git/builtin/bisect--helper.c:1252:9: note: Calling 'bisect_state'
                res = bisect_state(terms, &new_state, 1);
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:903:7: note: 'argc' is 1
        if (!argc)
             ^~~~
/datasets/git/builtin/bisect--helper.c:903:2: note: Taking false branch
        if (!argc)
        ^
/datasets/git/builtin/bisect--helper.c:906:2: note: Taking false branch
        if (bisect_autostart(terms))
        ^
/datasets/git/builtin/bisect--helper.c:910:6: note: Calling 'check_and_set_terms'
        if (check_and_set_terms(terms, state) ||
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:306:22: note: Assuming the condition is false
        int has_term_file = !is_empty_or_missing_file(git_path_bisect_terms());
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:308:6: note: Assuming the condition is false
        if (one_of(cmd, "skip", "start", "terms", NULL))
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:308:2: note: Taking false branch
        if (one_of(cmd, "skip", "start", "terms", NULL))
        ^
/datasets/git/builtin/bisect--helper.c:311:6: note: 'has_term_file' is 0
        if (has_term_file && strcmp(cmd, terms->term_bad) &&
            ^~~~~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:311:20: note: Left side of '&&' is false
        if (has_term_file && strcmp(cmd, terms->term_bad) &&
                          ^
/datasets/git/builtin/bisect--helper.c:317:7: note: 'has_term_file' is 0
        if (!has_term_file) {
             ^~~~~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:317:2: note: Taking true branch
        if (!has_term_file) {
        ^
/datasets/git/builtin/bisect--helper.c:318:7: note: Assuming the condition is true
                if (one_of(cmd, "bad", "good", NULL)) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:318:3: note: Taking true branch
                if (one_of(cmd, "bad", "good", NULL)) {
                ^
/datasets/git/builtin/bisect--helper.c:319:4: note: Calling 'set_terms'
                        set_terms(terms, "bad", "good");
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:59:2: note: Memory is released
        free((void *)terms->term_bad);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:319:4: note: Returning; memory was released
                        set_terms(terms, "bad", "good");
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:910:6: note: Returning; memory was released via 2nd parameter
        if (check_and_set_terms(terms, state) ||
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:910:6: note: Assuming the condition is false
        if (check_and_set_terms(terms, state) ||
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:910:6: note: Left side of '||' is false
/datasets/git/builtin/bisect--helper.c:911:7: note: Use of memory after it is freed
            !one_of(state, terms->term_good, terms->term_bad, "skip", NULL))
             ^      ~~~~~
/datasets/git/builtin/bisect--helper.c:911:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !one_of(state, terms->term_good, terms->term_bad, "skip", NULL))
                                                                            ^
                                                                             {
/datasets/git/builtin/bisect--helper.c:916:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc > 1 && !strcmp(state, terms->term_bad))
                                                        ^
                                                         {
/datasets/git/builtin/bisect--helper.c:928:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (res_head)
                             ^
                              {
/datasets/git/builtin/bisect--helper.c:938:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; argc; argc--, argv++) {
        ^
/datasets/git/builtin/bisect--helper.c:939:18: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
                struct commit *commit;
                               ^
                                      = NULL
/datasets/git/builtin/bisect--helper.c:948:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!commit)
                            ^
                             {
/datasets/git/builtin/bisect--helper.c:955:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            get_oid_hex(buf.buf, &expected) < 0)
                                                ^
                                                 {
/datasets/git/builtin/bisect--helper.c:959:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < revs.nr; i++) {
        ^
/datasets/git/builtin/bisect--helper.c:977:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int fd, status;
        ^~~~~~~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:977:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd, status;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/bisect--helper.c:977:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/bisect--helper.c:977:10: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int fd, status;
                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/bisect--helper.c:980:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_empty_or_missing_file(filename))
                                               ^
                                                {
/datasets/git/builtin/bisect--helper.c:983:30: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
        fd = open(filename, O_RDONLY);
                                    ^
                                     | O_CLOEXEC
/datasets/git/builtin/bisect--helper.c:984:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fd < 0)
                   ^
                    {
/datasets/git/builtin/bisect--helper.c:994:14: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        const char *p = line->buf + strspn(line->buf, " \t");
                    ^
/datasets/git/builtin/bisect--helper.c:995:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *word_end, *rev;
        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:995:8: warning: variable 'word_end' is not initialized [cppcoreguidelines-init-variables]
        char *word_end, *rev;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/bisect--helper.c:995:19: warning: variable 'rev' is not initialized [cppcoreguidelines-init-variables]
        char *word_end, *rev;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/bisect--helper.c:998:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        !skip_prefix(p, "git-bisect", &p)) || !isspace(*p))
                                               ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/builtin/bisect--helper.c:998:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        !skip_prefix(p, "git-bisect", &p)) || !isspace(*p))
                                                           ^
                                                            {
/datasets/git/builtin/bisect--helper.c:1007:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (check_and_set_terms(terms, p))
                                          ^
                                           {
/datasets/git/builtin/bisect--helper.c:1012:7: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
                int res;
                    ^
                        = 0
/datasets/git/builtin/bisect--helper.c:1014:37: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                res = bisect_start(terms, argv.v, argv.nr);
                                                  ^
/datasets/git/builtin/bisect--helper.c:1020:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
           terms->term_bad, "skip", NULL))
                                          ^
                                           {
/datasets/git/builtin/bisect--helper.c:1025:7: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
                int res;
                    ^
                        = 0
/datasets/git/builtin/bisect--helper.c:1038:8: warning: variable name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
        FILE *fp = NULL;
              ^
/datasets/git/builtin/bisect--helper.c:1042:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_empty_or_missing_file(filename))
                                               ^
                                                {
/datasets/git/builtin/bisect--helper.c:1045:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (bisect_reset(NULL))
                               ^
                                {
/datasets/git/builtin/bisect--helper.c:1049:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!fp)
                ^
                 {
/datasets/git/builtin/bisect--helper.c:1052:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((strbuf_getline(&line, fp) != EOF) && !res)
        ^
/datasets/git/builtin/bisect--helper.c:1052:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'line' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((strbuf_getline(&line, fp) != EOF) && !res)
               ^
/datasets/git/builtin/bisect--helper.c:1052:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while ((strbuf_getline(&line, fp) != EOF) && !res)
                                                          ^
                                                           {
/datasets/git/builtin/bisect--helper.c:1056:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(fp);
        ^~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:1056:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/bisect--helper.c:1058:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (res)
                ^
                 {
/datasets/git/builtin/bisect--helper.c:1066:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/bisect--helper.c:1066:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/bisect--helper.c:1067:20: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        enum bisect_error res;
                          ^
/datasets/git/builtin/bisect--helper.c:1077:19: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
                        struct commit *commit;
                                       ^
                                              = NULL
/datasets/git/builtin/bisect--helper.c:1082:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (prepare_revision_walk(&revs))
                                                         ^
                                                          {
/datasets/git/builtin/bisect--helper.c:1084:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while ((commit = get_revision(&revs)) != NULL)
                        ^
/datasets/git/builtin/bisect--helper.c:1084:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'commit' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while ((commit = get_revision(&revs)) != NULL)
                               ^
/datasets/git/builtin/bisect--helper.c:1084:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        while ((commit = get_revision(&revs)) != NULL)
                                                                      ^
                                                                       {
/datasets/git/builtin/bisect--helper.c:1094:42: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        res = bisect_state(terms, argv_state.v, argv_state.nr);
                                                ^
/datasets/git/builtin/bisect--helper.c:1103:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/bisect--helper.c:1105:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (bisect_next_check(terms, NULL) != 0)
                                                ^
                                                 {
/datasets/git/builtin/bisect--helper.c:1110:8: warning: function is not thread safe [concurrency-mt-unsafe]
                if ((getenv("DISPLAY") || getenv("SESSIONNAME") || getenv("MSYSTEM") ||
                     ^
/datasets/git/builtin/bisect--helper.c:1110:29: warning: function is not thread safe [concurrency-mt-unsafe]
                if ((getenv("DISPLAY") || getenv("SESSIONNAME") || getenv("MSYSTEM") ||
                                          ^
/datasets/git/builtin/bisect--helper.c:1110:54: warning: function is not thread safe [concurrency-mt-unsafe]
                if ((getenv("DISPLAY") || getenv("SESSIONNAME") || getenv("MSYSTEM") ||
                                                                   ^
/datasets/git/builtin/bisect--helper.c:1111:8: warning: function is not thread safe [concurrency-mt-unsafe]
                     getenv("SECURITYSESSIONID")) && exists_in_PATH("gitk")) {
                     ^
/datasets/git/builtin/bisect--helper.c:1121:14: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                } else if (strcmp(argv[0], "tig") && !starts_with(argv[0], "git"))
                           ^
                                                  != 0
/datasets/git/builtin/bisect--helper.c:1121:69: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else if (strcmp(argv[0], "tig") && !starts_with(argv[0], "git"))
                                                                                  ^
                                                                                   {
/datasets/git/builtin/bisect--helper.c:1156:6: warning: variable 'rc' is not initialized [cppcoreguidelines-init-variables]
        int rc;
            ^
               = 0
/datasets/git/builtin/bisect--helper.c:1156:6: warning: variable name 'rc' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/bisect--helper.c:1157:20: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        enum bisect_error res;
                          ^
/datasets/git/builtin/bisect--helper.c:1167:67: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (read_ref(no_checkout ? "BISECT_HEAD" : "HEAD", &current_rev))
                                                                         ^
                                                                          {
/datasets/git/builtin/bisect--helper.c:1171:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (res != BISECT_OK)
                             ^
                              {
/datasets/git/builtin/bisect--helper.c:1177:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (res != BISECT_OK)
                             ^
                              {
/datasets/git/builtin/bisect--helper.c:1183:12: warning: function 'bisect_run' has cognitive complexity of 29 (threshold 25) [readability-function-cognitive-complexity]
static int bisect_run(struct bisect_terms *terms, const char **argv, int argc)
           ^
/datasets/git/builtin/bisect--helper.c:1191:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (bisect_next_check(terms, NULL))
        ^
/datasets/git/builtin/bisect--helper.c:1194:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (argc)
        ^
/datasets/git/builtin/bisect--helper.c:1196:2: note: +1, nesting level increased to 1
        else {
        ^
/datasets/git/builtin/bisect--helper.c:1201:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (1) {
        ^
/datasets/git/builtin/bisect--helper.c:1211:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (is_first_run && (res == 126 || res == 127)) {
                ^
/datasets/git/builtin/bisect--helper.c:1211:20: note: +1
                if (is_first_run && (res == 126 || res == 127)) {
                                 ^
/datasets/git/builtin/bisect--helper.c:1211:35: note: +1
                if (is_first_run && (res == 126 || res == 127)) {
                                                ^
/datasets/git/builtin/bisect--helper.c:1214:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (rc < 0) {
                        ^
/datasets/git/builtin/bisect--helper.c:1220:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (rc == res) {
                        ^
/datasets/git/builtin/bisect--helper.c:1228:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (res < 0 || 128 <= res) {
                ^
/datasets/git/builtin/bisect--helper.c:1228:15: note: +1
                if (res < 0 || 128 <= res) {
                            ^
/datasets/git/builtin/bisect--helper.c:1234:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (res == 125)
                ^
/datasets/git/builtin/bisect--helper.c:1236:8: note: +1, nesting level increased to 2
                else if (!res)
                     ^
/datasets/git/builtin/bisect--helper.c:1238:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/bisect--helper.c:1243:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (temporary_stdout_fd < 0) {
                ^
/datasets/git/builtin/bisect--helper.c:1261:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (res == BISECT_ONLY_SKIPPED_LEFT)
                ^
/datasets/git/builtin/bisect--helper.c:1263:8: note: +1, nesting level increased to 2
                else if (res == BISECT_INTERNAL_SUCCESS_MERGE_BASE) {
                     ^
/datasets/git/builtin/bisect--helper.c:1266:10: note: +1, nesting level increased to 2
                } else if (res == BISECT_INTERNAL_SUCCESS_1ST_BAD_FOUND) {
                       ^
/datasets/git/builtin/bisect--helper.c:1269:10: note: +1, nesting level increased to 2
                } else if (res) {
                       ^
/datasets/git/builtin/bisect--helper.c:1272:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/bisect--helper.c:1187:14: warning: variable 'new_state' is not initialized [cppcoreguidelines-init-variables]
        const char *new_state;
                    ^
                              = NULL
/datasets/git/builtin/bisect--helper.c:1188:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int temporary_stdout_fd, saved_stdout;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:1188:6: warning: variable 'temporary_stdout_fd' is not initialized [cppcoreguidelines-init-variables]
        int temporary_stdout_fd, saved_stdout;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/bisect--helper.c:1188:27: warning: variable 'saved_stdout' is not initialized [cppcoreguidelines-init-variables]
        int temporary_stdout_fd, saved_stdout;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/bisect--helper.c:1191:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (bisect_next_check(terms, NULL))
                                           ^
                                            {
/datasets/git/builtin/bisect--helper.c:1194:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc)
                 ^
                  {
/datasets/git/builtin/bisect--helper.c:1201:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/builtin/bisect--helper.c:1211:31: warning: 126 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (is_first_run && (res == 126 || res == 127)) {
                                            ^
/datasets/git/builtin/bisect--helper.c:1211:45: warning: 127 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (is_first_run && (res == 126 || res == 127)) {
                                                          ^
/datasets/git/builtin/bisect--helper.c:1212:8: warning: variable name 'rc' is too short, expected at least 3 characters [readability-identifier-length]
                        int rc = verify_good(terms, command.buf);
                            ^
/datasets/git/builtin/bisect--helper.c:1228:18: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (res < 0 || 128 <= res) {
                               ^
/datasets/git/builtin/bisect--helper.c:1234:14: warning: 125 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (res == 125)
                           ^
/datasets/git/builtin/bisect--helper.c:1234:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (res == 125)
                               ^
                                {
/datasets/git/builtin/bisect--helper.c:1236:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!res)
                              ^
                               {
/datasets/git/builtin/bisect--helper.c:1238:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/bisect--helper.c:1241:81: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
                temporary_stdout_fd = open(git_path_bisect_run(), O_CREAT | O_WRONLY | O_TRUNC, 0666);
                                                                                              ^
                                                                                               | O_CLOEXEC
/datasets/git/builtin/bisect--helper.c:1241:83: warning: 0666 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                temporary_stdout_fd = open(git_path_bisect_run(), O_CREAT | O_WRONLY | O_TRUNC, 0666);
                                                                                                ^
/datasets/git/builtin/bisect--helper.c:1248:3: warning: the value returned by this function should be used [cert-err33-c]
                fflush(stdout);
                ^~~~~~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:1248:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/bisect--helper.c:1249:18: warning: prefer fcntl() to dup() because fcntl() allows F_DUPFD_CLOEXEC [android-cloexec-dup]
                saved_stdout = dup(1);
                               ^~~~~~
                               fcntl(1, F_DUPFD_CLOEXEC)
/datasets/git/builtin/bisect--helper.c:1254:3: warning: the value returned by this function should be used [cert-err33-c]
                fflush(stdout);
                ^~~~~~~~~~~~~~
/datasets/git/builtin/bisect--helper.c:1254:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/bisect--helper.c:1261:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (res == BISECT_ONLY_SKIPPED_LEFT)
                                                    ^
                                                     {
/datasets/git/builtin/bisect--helper.c:1284:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc > 1)
                     ^
                      {
/datasets/git/builtin/bisect--helper.c:1291:6: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        int res;
            ^
                = 0
/datasets/git/builtin/bisect--helper.c:1294:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc > 1)
                     ^
                      {
/datasets/git/builtin/bisect--helper.c:1303:6: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        int res;
            ^
                = 0
/datasets/git/builtin/bisect--helper.c:1314:6: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        int res;
            ^
                = 0
/datasets/git/builtin/bisect--helper.c:1317:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc)
                 ^
                  {
/datasets/git/builtin/bisect--helper.c:1327:6: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        int res;
            ^
                = 0
/datasets/git/builtin/bisect--helper.c:1339:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc)
                 ^
                  {
/datasets/git/builtin/bisect--helper.c:1346:6: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        int res;
            ^
                = 0
/datasets/git/builtin/bisect--helper.c:1349:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc != 1)
                      ^
                       {
/datasets/git/builtin/bisect--helper.c:1359:6: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        int res;
            ^
                = 0
/datasets/git/builtin/bisect--helper.c:1371:6: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        int res;
            ^
                = 0
/datasets/git/builtin/bisect--helper.c:1382:6: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        int res;
            ^
                = 0
/datasets/git/builtin/bisect--helper.c:1385:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!argc)
                  ^
                   {
/datasets/git/builtin/bisect--helper.c:1396:27: warning: variable name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
        parse_opt_subcommand_fn *fn = NULL;
                                 ^
/datasets/git/builtin/bisect--helper.c:1414:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!fn)
                ^
                 {
/datasets/git/builtin/bisect--helper.c:1425:100: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((res == BISECT_INTERNAL_SUCCESS_MERGE_BASE) || (res == BISECT_INTERNAL_SUCCESS_1ST_BAD_FOUND))
                                                                                                          ^
                                                                                                           {
/datasets/git/builtin/blame.c:9:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "blame.h"
/datasets/git/builtin/blame.c:32:13: warning: variable 'blame_usage' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char blame_usage[] = N_("git blame [<options>] [<rev-opts>] [<rev>] [--] <file>");
            ^
/datasets/git/builtin/blame.c:33:13: warning: variable 'annotate_usage' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char annotate_usage[] = N_("git annotate [<options>] [<rev-opts>] [<rev>] [--] <file>");
            ^
/datasets/git/builtin/blame.c:35:20: warning: variable 'blame_opt_usage' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *blame_opt_usage[] = {
                   ^
/datasets/git/builtin/blame.c:42:20: warning: variable 'annotate_opt_usage' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *annotate_opt_usage[] = {
                   ^
/datasets/git/builtin/blame.c:49:12: warning: variable 'longest_file' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int longest_file;
           ^
/datasets/git/builtin/blame.c:50:12: warning: variable 'longest_author' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int longest_author;
           ^
/datasets/git/builtin/blame.c:51:12: warning: variable 'max_orig_digits' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int max_orig_digits;
           ^
/datasets/git/builtin/blame.c:52:12: warning: variable 'max_digits' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int max_digits;
           ^
/datasets/git/builtin/blame.c:53:12: warning: variable 'max_score_digits' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int max_score_digits;
           ^
/datasets/git/builtin/blame.c:54:12: warning: variable 'show_root' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int show_root;
           ^
/datasets/git/builtin/blame.c:55:12: warning: variable 'reverse' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int reverse;
           ^
/datasets/git/builtin/blame.c:56:12: warning: variable 'blank_boundary' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int blank_boundary;
           ^
/datasets/git/builtin/blame.c:57:12: warning: variable 'incremental' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int incremental;
           ^
/datasets/git/builtin/blame.c:58:12: warning: variable 'xdl_opts' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int xdl_opts;
           ^
/datasets/git/builtin/blame.c:59:12: warning: variable 'abbrev' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int abbrev = -1;
           ^
/datasets/git/builtin/blame.c:60:12: warning: variable 'no_whole_file_rename' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int no_whole_file_rename;
           ^
/datasets/git/builtin/blame.c:61:12: warning: variable 'show_progress' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int show_progress;
           ^
/datasets/git/builtin/blame.c:62:13: warning: variable 'repeated_meta_color' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char repeated_meta_color[COLOR_MAXLEN];
            ^
/datasets/git/builtin/blame.c:63:12: warning: variable 'coloring_mode' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int coloring_mode;
           ^
/datasets/git/builtin/blame.c:64:27: warning: variable 'ignore_revs_file_list' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct string_list ignore_revs_file_list = STRING_LIST_INIT_NODUP;
                          ^
/datasets/git/builtin/blame.c:65:12: warning: variable 'mark_unblamable_lines' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int mark_unblamable_lines;
           ^
/datasets/git/builtin/blame.c:66:12: warning: variable 'mark_ignored_lines' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int mark_ignored_lines;
           ^
/datasets/git/builtin/blame.c:68:25: warning: variable 'blame_date_mode' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct date_mode blame_date_mode = { DATE_ISO8601 };
                        ^
/datasets/git/builtin/blame.c:69:15: warning: variable 'blame_date_width' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static size_t blame_date_width;
              ^
/datasets/git/builtin/blame.c:71:27: warning: variable 'mailmap' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct string_list mailmap = STRING_LIST_INIT_NODUP;
                          ^
/datasets/git/builtin/blame.c:77:17: warning: variable 'blame_move_score' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned blame_move_score;
                ^
/datasets/git/builtin/blame.c:78:17: warning: variable 'blame_copy_score' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned blame_copy_score;
                ^
/datasets/git/builtin/blame.c:84:8: warning: accessing fields in struct 'progress_info' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct progress_info {
       ^
/datasets/git/builtin/blame.c:84:8: note: use "__attribute__((aligned(16)))" to align struct 'progress_info' to 16 bytes
/datasets/git/builtin/blame.c:97:8: warning: accessing fields in struct 'commit_info' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct commit_info {
       ^
/datasets/git/builtin/blame.c:97:8: note: use "__attribute__((aligned(128)))" to align struct 'commit_info' to 128 bytes
/datasets/git/builtin/blame.c:127:36: warning: parameter name 'tz' is too short, expected at least 3 characters [readability-identifier-length]
        timestamp_t *time, struct strbuf *tz)
                                          ^
/datasets/git/builtin/blame.c:130:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t len, maillen, namelen;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/blame.c:130:9: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        size_t len, maillen, namelen;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/blame.c:130:14: warning: variable 'maillen' is not initialized [cppcoreguidelines-init-variables]
        size_t len, maillen, namelen;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/blame.c:130:23: warning: variable 'namelen' is not initialized [cppcoreguidelines-init-variables]
        size_t len, maillen, namelen;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/blame.c:131:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *tmp, *endp;
        ^~~~~~~~~~~~~~~~~
/datasets/git/builtin/blame.c:131:8: warning: variable 'tmp' is not initialized [cppcoreguidelines-init-variables]
        char *tmp, *endp;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/blame.c:131:14: warning: variable 'endp' is not initialized [cppcoreguidelines-init-variables]
        char *tmp, *endp;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/blame.c:132:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *namebuf, *mailbuf;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/blame.c:132:14: warning: variable 'namebuf' is not initialized [cppcoreguidelines-init-variables]
        const char *namebuf, *mailbuf;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/blame.c:132:24: warning: variable 'mailbuf' is not initialized [cppcoreguidelines-init-variables]
        const char *namebuf, *mailbuf;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/blame.c:135:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!tmp)
                 ^
                  {
/datasets/git/builtin/blame.c:139:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!endp)
                  ^
                   {
/datasets/git/builtin/blame.c:141:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/blame.c:144:36: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        if (split_ident_line(&ident, tmp, len)) {
                                          ^
/datasets/git/builtin/blame.c:161:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ident.date_begin && ident.date_end)
                                               ^
                                                {
/datasets/git/builtin/blame.c:162:43: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                *time = strtoul(ident.date_begin, NULL, 10);
                                                        ^
/datasets/git/builtin/blame.c:163:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/blame.c:166:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ident.tz_begin && ident.tz_end)
                                           ^
                                            {
/datasets/git/builtin/blame.c:168:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/blame.c:181:53: warning: parameter name 'ci' is too short, expected at least 3 characters [readability-identifier-length]
static void commit_info_destroy(struct commit_info *ci)
                                                    ^
/datasets/git/builtin/blame.c:197:6: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int len;
            ^
                = 0
/datasets/git/builtin/blame.c:198:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *subject, *encoding;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/blame.c:198:14: warning: variable 'subject' is not initialized [cppcoreguidelines-init-variables]
        const char *subject, *encoding;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/blame.c:198:24: warning: variable 'encoding' is not initialized [cppcoreguidelines-init-variables]
        const char *subject, *encoding;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/blame.c:199:14: warning: variable 'message' is not initialized [cppcoreguidelines-init-variables]
        const char *message;
                    ^
                            = NULL
/datasets/git/builtin/blame.c:217:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len)
                ^
                 {
/datasets/git/builtin/blame.c:219:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/blame.c:253:21: warning: variable name 'ci' is too short, expected at least 3 characters [readability-identifier-length]
        struct commit_info ci = COMMIT_INFO_INIT;
                           ^
/datasets/git/builtin/blame.c:255:50: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!repeat && (suspect->commit->object.flags & METAINFO_SHOWN))
                                                        ^
/datasets/git/builtin/blame.c:81:26: note: expanded from macro 'METAINFO_SHOWN'
#define METAINFO_SHOWN          (1u<<12)
                                 ^   ~~
/datasets/git/builtin/blame.c:255:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!repeat && (suspect->commit->object.flags & METAINFO_SHOWN))
                                                                        ^
                                                                         {
/datasets/git/builtin/blame.c:258:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        suspect->commit->object.flags |= METAINFO_SHOWN;
                                         ^
/datasets/git/builtin/blame.c:81:26: note: expanded from macro 'METAINFO_SHOWN'
#define METAINFO_SHOWN          (1u<<12)
                                 ^   ~~
/datasets/git/builtin/blame.c:269:38: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (suspect->commit->object.flags & UNINTERESTING)
                                            ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/builtin/blame.c:269:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (suspect->commit->object.flags & UNINTERESTING)
                                                          ^
                                                           {
/datasets/git/builtin/blame.c:283:24: warning: variable name 'pi' is too short, expected at least 3 characters [readability-identifier-length]
        struct progress_info *pi = (struct progress_info *)data;
                              ^
/datasets/git/builtin/blame.c:309:15: warning: variable 'time_str' is not initialized [cppcoreguidelines-init-variables]
                const char *time_str;
                            ^
                                     = NULL
/datasets/git/builtin/blame.c:310:10: warning: variable 'time_width' is not initialized [cppcoreguidelines-init-variables]
                size_t time_width;
                       ^
                                  = 0
/datasets/git/builtin/blame.c:311:7: warning: variable 'tz' is not initialized [cppcoreguidelines-init-variables]
                int tz;
                    ^
                       = 0
/datasets/git/builtin/blame.c:311:7: warning: variable name 'tz' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/blame.c:312:8: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c]
                tz = atoi(tz_str);
                     ^
/datasets/git/builtin/blame.c:319:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (time_width = utf8_strwidth(time_str);
                ^
/datasets/git/builtin/blame.c:320:8: warning: backward branch (for loop) is ID-dependent due to variable reference to 'time_width' and may cause performance degradation [altera-id-dependent-backward-branch]
                     time_width < blame_date_width;
                     ^
/datasets/git/builtin/blame.c:321:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                     time_width++)
                                  ^
                                   {
/datasets/git/builtin/blame.c:343:39: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            (suspect->commit->object.flags & MORE_THAN_ONE_PATH))
                                             ^
/datasets/git/builtin/blame.c:82:29: note: expanded from macro 'MORE_THAN_ONE_PATH'
#define MORE_THAN_ONE_PATH      (1u<<13)
                                 ^   ~~
/datasets/git/builtin/blame.c:343:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            (suspect->commit->object.flags & MORE_THAN_ONE_PATH))
                                                                 ^
                                                                  {
/datasets/git/builtin/blame.c:347:53: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static void emit_porcelain(struct blame_scoreboard *sb, struct blame_entry *ent,
                                                    ^
/datasets/git/builtin/blame.c:350:15: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int repeat = opt & OUTPUT_LINE_PORCELAIN;
                     ^
/datasets/git/builtin/blame.c:350:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int repeat = opt & OUTPUT_LINE_PORCELAIN;
                     ^~~
/datasets/git/builtin/blame.c:350:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int repeat = opt & OUTPUT_LINE_PORCELAIN;
                           ^
/datasets/git/builtin/blame.c:336:38: note: expanded from macro 'OUTPUT_LINE_PORCELAIN'
#define OUTPUT_LINE_PORCELAIN       (1U<<9)
                                     ^   ~
/datasets/git/builtin/blame.c:351:6: warning: variable 'cnt' is not initialized [cppcoreguidelines-init-variables]
        int cnt;
            ^
                = 0
/datasets/git/builtin/blame.c:352:14: warning: variable 'cp' is not initialized [cppcoreguidelines-init-variables]
        const char *cp;
                    ^
                       = NULL
/datasets/git/builtin/blame.c:352:14: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/blame.c:366:3: note: inferred assignment of ID-dependent value from ID-dependent variable cp [altera-id-dependent-backward-branch]
                char ch;
                ^
/datasets/git/builtin/blame.c:366:8: warning: variable 'ch' is not initialized [cppcoreguidelines-init-variables]
                char ch;
                     ^
                        = 0
/datasets/git/builtin/blame.c:366:8: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/blame.c:371:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (repeat)
                                   ^
                                    {
/datasets/git/builtin/blame.c:375:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                do {
                ^
/datasets/git/builtin/blame.c:378:12: warning: backward branch (do loop) is ID-dependent due to variable reference to 'ch' and may cause performance degradation [altera-id-dependent-backward-branch]
                } while (ch != '\n' &&
                         ^
/datasets/git/builtin/blame.c:382:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (sb->final_buf_size && cp[-1] != '\n')
                                                 ^
                                                  {
/datasets/git/builtin/blame.c:386:15: warning: accessing fields in struct 'color_field' is inefficient due to padding; only needs 83 bytes but is using 88 bytes [altera-struct-pack-align]
static struct color_field {
              ^
/datasets/git/builtin/blame.c:386:15: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'color_field'
/datasets/git/builtin/blame.c:386:15: warning: accessing fields in struct 'color_field' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
static struct color_field {
              ^
/datasets/git/builtin/blame.c:386:15: note: use "__attribute__((aligned(128)))" to align struct 'color_field' to 128 bytes
/datasets/git/builtin/blame.c:389:4: warning: variable 'colorfield' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} *colorfield;
   ^
/datasets/git/builtin/blame.c:389:4: warning: variable 'colorfield' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/blame.c:390:12: warning: variable 'colorfield_nr' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int colorfield_nr, colorfield_alloc;
           ^
/datasets/git/builtin/blame.c:390:27: warning: variable 'colorfield_alloc' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int colorfield_nr, colorfield_alloc;
                          ^
/datasets/git/builtin/blame.c:392:13: warning: function 'parse_color_fields' has cognitive complexity of 28 (threshold 25) [readability-function-cognitive-complexity]
static void parse_color_fields(const char *s)
            ^
/datasets/git/builtin/blame.c:402:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        ALLOC_GROW(colorfield, colorfield_nr + 1, colorfield_alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/builtin/blame.c:402:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        ALLOC_GROW(colorfield, colorfield_nr + 1, colorfield_alloc);
        ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/builtin/blame.c:402:2: note: +3, including nesting penalty of 2, nesting level increased to 3
        ALLOC_GROW(colorfield, colorfield_nr + 1, colorfield_alloc);
        ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/builtin/blame.c:402:2: note: +1, nesting level increased to 3
        ALLOC_GROW(colorfield, colorfield_nr + 1, colorfield_alloc);
        ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/builtin/blame.c:404:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for_each_string_list_item(item, &l) {
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/blame.c:404:2: note: +1
        for_each_string_list_item(item, &l) {
        ^
/datasets/git/./string-list.h:152:12: note: expanded from macro 'for_each_string_list_item'
             item && item < (list)->items + (list)->nr; \
                  ^
/datasets/git/builtin/blame.c:405:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                switch (next) {
                ^
/datasets/git/builtin/blame.c:410:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        ALLOC_GROW(colorfield, colorfield_nr + 1, colorfield_alloc);
                        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/builtin/blame.c:410:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        ALLOC_GROW(colorfield, colorfield_nr + 1, colorfield_alloc);
                        ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/builtin/blame.c:410:4: note: +5, including nesting penalty of 4, nesting level increased to 5
                        ALLOC_GROW(colorfield, colorfield_nr + 1, colorfield_alloc);
                        ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/builtin/blame.c:410:4: note: +1, nesting level increased to 5
                        ALLOC_GROW(colorfield, colorfield_nr + 1, colorfield_alloc);
                        ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/builtin/blame.c:413:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (color_parse(item->string, colorfield[colorfield_nr].col))
                        ^
/datasets/git/builtin/blame.c:420:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (next == EXPECT_COLOR)
        ^
/datasets/git/builtin/blame.c:392:44: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void parse_color_fields(const char *s)
                                           ^
/datasets/git/builtin/blame.c:394:21: warning: variable name 'l' is too short, expected at least 3 characters [readability-identifier-length]
        struct string_list l = STRING_LIST_INIT_DUP;
                           ^
/datasets/git/builtin/blame.c:395:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/builtin/blame.c:402:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(colorfield, colorfield_nr + 1, colorfield_alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/builtin/blame.c:395:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct string_list_item *item;
        ^
/datasets/git/builtin/blame.c:404:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(item, &l) {
                                  ^
/datasets/git/builtin/blame.c:405:3: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
                switch (next) {
                ^
/datasets/git/builtin/blame.c:410:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        ALLOC_GROW(colorfield, colorfield_nr + 1, colorfield_alloc);
                        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/builtin/blame.c:413:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (color_parse(item->string, colorfield[colorfield_nr].col))
                                                                                     ^
                                                                                      {
/datasets/git/builtin/blame.c:420:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (next == EXPECT_COLOR)
                                 ^
                                  {
/datasets/git/builtin/blame.c:432:53: warning: parameter name 'ci' is too short, expected at least 3 characters [readability-identifier-length]
static void determine_line_heat(struct commit_info *ci, const char **dest_color)
                                                    ^
/datasets/git/builtin/blame.c:434:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0;
            ^
/datasets/git/builtin/blame.c:436:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (i < colorfield_nr && ci->author_time > colorfield[i].hop)
        ^
/datasets/git/builtin/blame.c:436:9: warning: backward branch (while loop) is ID-dependent due to member reference to 'hop' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (i < colorfield_nr && ci->author_time > colorfield[i].hop)
               ^
/datasets/git/builtin/blame.c:436:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (i < colorfield_nr && ci->author_time > colorfield[i].hop)
                                                                        ^
                                                                         {
/datasets/git/builtin/blame.c:442:13: warning: function 'emit_other' has cognitive complexity of 63 (threshold 25) [readability-function-cognitive-complexity]
static void emit_other(struct blame_scoreboard *sb, struct blame_entry *ent, int opt)
            ^
/datasets/git/builtin/blame.c:457:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt & OUTPUT_SHOW_AGE_WITH_COLOR) {
        ^
/datasets/git/builtin/blame.c:463:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (cnt = 0; cnt < ent->num_lines; cnt++) {
        ^
/datasets/git/builtin/blame.c:465:48: note: +2, including nesting penalty of 1, nesting level increased to 2
                int length = (opt & OUTPUT_LONG_OBJECT_NAME) ? the_hash_algo->hexsz : abbrev;
                                                             ^
/datasets/git/builtin/blame.c:467:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opt & OUTPUT_COLOR_LINE) {
                ^
/datasets/git/builtin/blame.c:468:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (cnt > 0) {
                        ^
/datasets/git/builtin/blame.c:471:6: note: +1, nesting level increased to 3
                        } else  {
                          ^
/datasets/git/builtin/blame.c:472:27: note: +4, including nesting penalty of 3, nesting level increased to 4
                                color = default_color ? default_color : NULL;
                                                      ^
/datasets/git/builtin/blame.c:473:27: note: +4, including nesting penalty of 3, nesting level increased to 4
                                reset = default_color ? GIT_COLOR_RESET : NULL;
                                                      ^
/datasets/git/builtin/blame.c:476:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (color)
                ^
/datasets/git/builtin/blame.c:479:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (suspect->commit->object.flags & UNINTERESTING) {
                ^
/datasets/git/builtin/blame.c:480:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (blank_boundary)
                        ^
/datasets/git/builtin/blame.c:482:9: note: +1, nesting level increased to 3
                        else if (!(opt & OUTPUT_ANNOTATE_COMPAT)) {
                             ^
/datasets/git/builtin/blame.c:488:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (mark_unblamable_lines && ent->unblamable) {
                ^
/datasets/git/builtin/blame.c:488:29: note: +1
                if (mark_unblamable_lines && ent->unblamable) {
                                          ^
/datasets/git/builtin/blame.c:492:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (mark_ignored_lines && ent->ignored) {
                ^
/datasets/git/builtin/blame.c:492:26: note: +1
                if (mark_ignored_lines && ent->ignored) {
                                       ^
/datasets/git/builtin/blame.c:497:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opt & OUTPUT_ANNOTATE_COMPAT) {
                ^
/datasets/git/builtin/blame.c:499:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (opt & OUTPUT_SHOW_EMAIL)
                        ^
/datasets/git/builtin/blame.c:501:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/builtin/blame.c:507:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/blame.c:508:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (opt & OUTPUT_SHOW_SCORE)
                        ^
/datasets/git/builtin/blame.c:512:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (opt & OUTPUT_SHOW_NAME)
                        ^
/datasets/git/builtin/blame.c:515:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (opt & OUTPUT_SHOW_NUMBER)
                        ^
/datasets/git/builtin/blame.c:519:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!(opt & OUTPUT_NO_AUTHOR)) {
                        ^
/datasets/git/builtin/blame.c:522:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (opt & OUTPUT_SHOW_EMAIL)
                                ^
/datasets/git/builtin/blame.c:524:5: note: +1, nesting level increased to 4
                                else
                                ^
/datasets/git/builtin/blame.c:536:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (reset)
                ^
/datasets/git/builtin/blame.c:538:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                do {
                ^
/datasets/git/builtin/blame.c:541:23: note: +1
                } while (ch != '\n' &&
                                    ^
/datasets/git/builtin/blame.c:545:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (sb->final_buf_size && cp[-1] != '\n')
        ^
/datasets/git/builtin/blame.c:545:25: note: +1
        if (sb->final_buf_size && cp[-1] != '\n')
                               ^
/datasets/git/builtin/blame.c:442:49: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static void emit_other(struct blame_scoreboard *sb, struct blame_entry *ent, int opt)
                                                ^
/datasets/git/builtin/blame.c:444:6: warning: variable 'cnt' is not initialized [cppcoreguidelines-init-variables]
        int cnt;
            ^
                = 0
/datasets/git/builtin/blame.c:445:14: warning: variable 'cp' is not initialized [cppcoreguidelines-init-variables]
        const char *cp;
                    ^
                       = NULL
/datasets/git/builtin/blame.c:445:14: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/blame.c:447:21: warning: variable name 'ci' is too short, expected at least 3 characters [readability-identifier-length]
        struct commit_info ci = COMMIT_INFO_INIT;
                           ^
/datasets/git/builtin/blame.c:449:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int show_raw_time = !!(opt & OUTPUT_RAW_TIMESTAMP);
                               ^~~
/datasets/git/builtin/blame.c:449:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int show_raw_time = !!(opt & OUTPUT_RAW_TIMESTAMP);
                                     ^
/datasets/git/builtin/blame.c:329:38: note: expanded from macro 'OUTPUT_RAW_TIMESTAMP'
#define OUTPUT_RAW_TIMESTAMP        (1U<<2)
                                     ^   ~
/datasets/git/builtin/blame.c:450:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *default_color = NULL, *color = NULL, *reset = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/blame.c:457:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (opt & OUTPUT_SHOW_AGE_WITH_COLOR) {
            ^~~
/datasets/git/builtin/blame.c:457:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (opt & OUTPUT_SHOW_AGE_WITH_COLOR) {
                  ^
/datasets/git/builtin/blame.c:338:38: note: expanded from macro 'OUTPUT_SHOW_AGE_WITH_COLOR'
#define OUTPUT_SHOW_AGE_WITH_COLOR  (1U<<11)
                                     ^   ~~
/datasets/git/builtin/blame.c:464:8: warning: variable 'ch' is not initialized [cppcoreguidelines-init-variables]
                char ch;
                     ^
                        = 0
/datasets/git/builtin/blame.c:464:8: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/blame.c:465:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                int length = (opt & OUTPUT_LONG_OBJECT_NAME) ? the_hash_algo->hexsz : abbrev;
                              ^~~
/datasets/git/builtin/blame.c:465:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                int length = (opt & OUTPUT_LONG_OBJECT_NAME) ? the_hash_algo->hexsz : abbrev;
                                    ^
/datasets/git/builtin/blame.c:328:38: note: expanded from macro 'OUTPUT_LONG_OBJECT_NAME'
#define OUTPUT_LONG_OBJECT_NAME     (1U<<1)
                                     ^   ~
/datasets/git/builtin/blame.c:465:50: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int length = (opt & OUTPUT_LONG_OBJECT_NAME) ? the_hash_algo->hexsz : abbrev;
                                                               ^
/datasets/git/./hash.h:200:23: note: expanded from macro 'the_hash_algo'
#define the_hash_algo the_repository->hash_algo
                      ^
/datasets/git/builtin/blame.c:465:73: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int length = (opt & OUTPUT_LONG_OBJECT_NAME) ? the_hash_algo->hexsz : abbrev;
                                                                                      ^
/datasets/git/builtin/blame.c:467:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (opt & OUTPUT_COLOR_LINE) {
                    ^~~
/datasets/git/builtin/blame.c:467:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (opt & OUTPUT_COLOR_LINE) {
                          ^
/datasets/git/builtin/blame.c:337:38: note: expanded from macro 'OUTPUT_COLOR_LINE'
#define OUTPUT_COLOR_LINE           (1U<<10)
                                     ^   ~~
/datasets/git/builtin/blame.c:476:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (color)
                          ^
                           {
/datasets/git/builtin/blame.c:477:4: warning: the value returned by this function should be used [cert-err33-c]
                        fputs(color, stdout);
                        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/blame.c:477:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/blame.c:479:39: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (suspect->commit->object.flags & UNINTERESTING) {
                                                    ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/builtin/blame.c:480:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (blank_boundary)
                                           ^
                                            {
/datasets/git/builtin/blame.c:481:5: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                                memset(hex, ' ', length);
                                ^~~~~~
/datasets/git/builtin/blame.c:481:5: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                                memset(hex, ' ', length);
                                ^~~~~~
/datasets/git/builtin/blame.c:482:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        else if (!(opt & OUTPUT_ANNOTATE_COMPAT)) {
                                   ^~~
/datasets/git/builtin/blame.c:482:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        else if (!(opt & OUTPUT_ANNOTATE_COMPAT)) {
                                         ^
/datasets/git/builtin/blame.c:327:38: note: expanded from macro 'OUTPUT_ANNOTATE_COMPAT'
#define OUTPUT_ANNOTATE_COMPAT      (1U<<0)
                                     ^   ~
/datasets/git/builtin/blame.c:497:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (opt & OUTPUT_ANNOTATE_COMPAT) {
                    ^~~
/datasets/git/builtin/blame.c:497:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (opt & OUTPUT_ANNOTATE_COMPAT) {
                          ^
/datasets/git/builtin/blame.c:327:38: note: expanded from macro 'OUTPUT_ANNOTATE_COMPAT'
#define OUTPUT_ANNOTATE_COMPAT      (1U<<0)
                                     ^   ~
/datasets/git/builtin/blame.c:498:16: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
                        const char *name;
                                    ^
                                         = NULL
/datasets/git/builtin/blame.c:499:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (opt & OUTPUT_SHOW_EMAIL)
                            ^~~
/datasets/git/builtin/blame.c:499:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (opt & OUTPUT_SHOW_EMAIL)
                                  ^
/datasets/git/builtin/blame.c:335:38: note: expanded from macro 'OUTPUT_SHOW_EMAIL'
#define OUTPUT_SHOW_EMAIL           (1U<<8)
                                     ^   ~
/datasets/git/builtin/blame.c:499:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (opt & OUTPUT_SHOW_EMAIL)
                                                    ^
                                                     {
/datasets/git/builtin/blame.c:501:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/builtin/blame.c:508:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (opt & OUTPUT_SHOW_SCORE)
                            ^~~
/datasets/git/builtin/blame.c:508:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (opt & OUTPUT_SHOW_SCORE)
                                  ^
/datasets/git/builtin/blame.c:333:38: note: expanded from macro 'OUTPUT_SHOW_SCORE'
#define OUTPUT_SHOW_SCORE           (1U<<6)
                                     ^   ~
/datasets/git/builtin/blame.c:508:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (opt & OUTPUT_SHOW_SCORE)
                                                    ^
                                                     {
/datasets/git/builtin/blame.c:512:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (opt & OUTPUT_SHOW_NAME)
                            ^~~
/datasets/git/builtin/blame.c:512:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (opt & OUTPUT_SHOW_NAME)
                                  ^
/datasets/git/builtin/blame.c:331:38: note: expanded from macro 'OUTPUT_SHOW_NAME'
#define OUTPUT_SHOW_NAME            (1U<<4)
                                     ^   ~
/datasets/git/builtin/blame.c:512:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (opt & OUTPUT_SHOW_NAME)
                                                   ^
                                                    {
/datasets/git/builtin/blame.c:515:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (opt & OUTPUT_SHOW_NUMBER)
                            ^~~
/datasets/git/builtin/blame.c:515:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (opt & OUTPUT_SHOW_NUMBER)
                                  ^
/datasets/git/builtin/blame.c:332:38: note: expanded from macro 'OUTPUT_SHOW_NUMBER'
#define OUTPUT_SHOW_NUMBER          (1U<<5)
                                     ^   ~
/datasets/git/builtin/blame.c:515:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (opt & OUTPUT_SHOW_NUMBER)
                                                     ^
                                                      {
/datasets/git/builtin/blame.c:519:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!(opt & OUTPUT_NO_AUTHOR)) {
                              ^~~
/datasets/git/builtin/blame.c:519:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!(opt & OUTPUT_NO_AUTHOR)) {
                                    ^
/datasets/git/builtin/blame.c:334:38: note: expanded from macro 'OUTPUT_NO_AUTHOR'
#define OUTPUT_NO_AUTHOR            (1U<<7)
                                     ^   ~
/datasets/git/builtin/blame.c:520:17: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
                                const char *name;
                                            ^
                                                 = NULL
/datasets/git/builtin/blame.c:521:9: warning: variable 'pad' is not initialized [cppcoreguidelines-init-variables]
                                int pad;
                                    ^
                                        = 0
/datasets/git/builtin/blame.c:522:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (opt & OUTPUT_SHOW_EMAIL)
                                    ^~~
/datasets/git/builtin/blame.c:522:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (opt & OUTPUT_SHOW_EMAIL)
                                          ^
/datasets/git/builtin/blame.c:335:38: note: expanded from macro 'OUTPUT_SHOW_EMAIL'
#define OUTPUT_SHOW_EMAIL           (1U<<8)
                                     ^   ~
/datasets/git/builtin/blame.c:522:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (opt & OUTPUT_SHOW_EMAIL)
                                                            ^
                                                             {
/datasets/git/builtin/blame.c:524:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                else
                                    ^
                                     {
/datasets/git/builtin/blame.c:536:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (reset)
                          ^
                           {
/datasets/git/builtin/blame.c:537:4: warning: the value returned by this function should be used [cert-err33-c]
                        fputs(reset, stdout);
                        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/blame.c:537:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/blame.c:464:3: note: inferred assignment of ID-dependent value from ID-dependent variable cp [altera-id-dependent-backward-branch]
                char ch;
                ^
/datasets/git/builtin/blame.c:538:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                do {
                ^
/datasets/git/builtin/blame.c:541:12: warning: backward branch (do loop) is ID-dependent due to variable reference to 'ch' and may cause performance degradation [altera-id-dependent-backward-branch]
                } while (ch != '\n' &&
                         ^
/datasets/git/builtin/blame.c:545:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (sb->final_buf_size && cp[-1] != '\n')
                                                 ^
                                                  {
/datasets/git/builtin/blame.c:551:45: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static void output(struct blame_scoreboard *sb, int option)
                                            ^
/datasets/git/builtin/blame.c:553:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct blame_entry *ent;
        ^
/datasets/git/builtin/blame.c:553:22: warning: variable 'ent' is not initialized [cppcoreguidelines-init-variables]
        struct blame_entry *ent;
                            ^
                                = NULL
/datasets/git/builtin/blame.c:555:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (option & OUTPUT_PORCELAIN) {
            ^~~~~~
/datasets/git/builtin/blame.c:555:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (option & OUTPUT_PORCELAIN) {
                     ^
/datasets/git/builtin/blame.c:330:38: note: expanded from macro 'OUTPUT_PORCELAIN'
#define OUTPUT_PORCELAIN            (1U<<3)
                                     ^   ~
/datasets/git/builtin/blame.c:553:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct blame_entry *ent;
        ^
/datasets/git/builtin/blame.c:556:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ent' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (ent = sb->ent; ent; ent = ent->next) {
                                    ^
/datasets/git/builtin/blame.c:558:25: warning: variable 'suspect' is not initialized [cppcoreguidelines-init-variables]
                        struct blame_origin *suspect;
                                             ^
                                                     = NULL
/datasets/git/builtin/blame.c:560:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (commit->object.flags & MORE_THAN_ONE_PATH)
                                                   ^
/datasets/git/builtin/blame.c:82:29: note: expanded from macro 'MORE_THAN_ONE_PATH'
#define MORE_THAN_ONE_PATH      (1u<<13)
                                 ^   ~~
/datasets/git/builtin/blame.c:560:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (commit->object.flags & MORE_THAN_ONE_PATH)
                                                                      ^
                                                                       {
/datasets/git/builtin/blame.c:562:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (suspect = get_blame_suspects(commit); suspect; suspect = suspect->next) {
                        ^
/datasets/git/builtin/blame.c:562:47: warning: backward branch (for loop) is ID-dependent due to variable reference to 'suspect' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (suspect = get_blame_suspects(commit); suspect; suspect = suspect->next) {
                                                                   ^
/datasets/git/builtin/blame.c:564:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        commit->object.flags |= MORE_THAN_ONE_PATH;
                                                                ^
/datasets/git/builtin/blame.c:82:29: note: expanded from macro 'MORE_THAN_ONE_PATH'
#define MORE_THAN_ONE_PATH      (1u<<13)
                                 ^   ~~
/datasets/git/builtin/blame.c:571:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (ent = sb->ent; ent; ent = ent->next) {
        ^
/datasets/git/builtin/blame.c:571:22: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ent' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (ent = sb->ent; ent; ent = ent->next) {
                            ^
/datasets/git/builtin/blame.c:572:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (option & OUTPUT_PORCELAIN)
                    ^~~~~~
/datasets/git/builtin/blame.c:572:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (option & OUTPUT_PORCELAIN)
                             ^
/datasets/git/builtin/blame.c:330:38: note: expanded from macro 'OUTPUT_PORCELAIN'
#define OUTPUT_PORCELAIN            (1U<<3)
                                     ^   ~
/datasets/git/builtin/blame.c:572:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (option & OUTPUT_PORCELAIN)
                                              ^
                                               {
/datasets/git/builtin/blame.c:587:8: warning: variable name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
        FILE *fp = fopen_or_warn(graft_file, "r");
              ^
/datasets/git/builtin/blame.c:589:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!fp)
                ^
                 {
/datasets/git/builtin/blame.c:591:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (!strbuf_getwholeline(&buf, fp, '\n')) {
        ^
/datasets/git/builtin/blame.c:591:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'buf' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (!strbuf_getwholeline(&buf, fp, '\n')) {
               ^
/datasets/git/builtin/blame.c:594:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (graft)
                          ^
                           {
/datasets/git/builtin/blame.c:597:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(fp);
        ^~~~~~~~~~
/datasets/git/builtin/blame.c:597:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/blame.c:606:12: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int len = strlen(uniq);
                  ^
/datasets/git/builtin/blame.c:607:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (auto_abbrev < len)
                              ^
                               {
/datasets/git/builtin/blame.c:616:53: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static void find_alignment(struct blame_scoreboard *sb, int *option)
                                                    ^
/datasets/git/builtin/blame.c:621:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct blame_entry *e;
        ^
/datasets/git/builtin/blame.c:621:22: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct blame_entry *e;
                            ^
                              = NULL
/datasets/git/builtin/blame.c:621:22: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/blame.c:625:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (e = sb->ent; e; e = e->next) {
        ^
/datasets/git/builtin/blame.c:625:20: warning: backward branch (for loop) is ID-dependent due to variable reference to 'e' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (e = sb->ent; e; e = e->next) {
                          ^
/datasets/git/builtin/blame.c:627:7: warning: variable 'num' is not initialized [cppcoreguidelines-init-variables]
                int num;
                    ^
                        = 0
/datasets/git/builtin/blame.c:629:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (compute_auto_abbrev)
                                        ^
                                         {
/datasets/git/builtin/blame.c:631:7: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (strcmp(suspect->path, sb->path))
                    ^
                                                    != 0
/datasets/git/builtin/blame.c:631:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strcmp(suspect->path, sb->path))
                                                    ^
                                                     {
/datasets/git/builtin/blame.c:632:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        *option |= OUTPUT_SHOW_NAME;
                        ^~~~~~~
/datasets/git/builtin/blame.c:632:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        *option |= OUTPUT_SHOW_NAME;
                                   ^
/datasets/git/builtin/blame.c:331:38: note: expanded from macro 'OUTPUT_SHOW_NAME'
#define OUTPUT_SHOW_NAME            (1U<<4)
                                     ^   ~
/datasets/git/builtin/blame.c:633:9: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                num = strlen(suspect->path);
                      ^
/datasets/git/builtin/blame.c:634:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (longest_file < num)
                                       ^
                                        {
/datasets/git/builtin/blame.c:636:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(suspect->commit->object.flags & METAINFO_SHOWN)) {
                                                      ^
/datasets/git/builtin/blame.c:81:26: note: expanded from macro 'METAINFO_SHOWN'
#define METAINFO_SHOWN          (1u<<12)
                                 ^   ~~
/datasets/git/builtin/blame.c:637:23: warning: variable name 'ci' is too short, expected at least 3 characters [readability-identifier-length]
                        struct commit_info ci = COMMIT_INFO_INIT;
                                           ^
/datasets/git/builtin/blame.c:638:37: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        suspect->commit->object.flags |= METAINFO_SHOWN;
                                                         ^
/datasets/git/builtin/blame.c:81:26: note: expanded from macro 'METAINFO_SHOWN'
#define METAINFO_SHOWN          (1u<<12)
                                 ^   ~~
/datasets/git/builtin/blame.c:640:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (*option & OUTPUT_SHOW_EMAIL)
                            ^~~~~~~
/datasets/git/builtin/blame.c:640:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (*option & OUTPUT_SHOW_EMAIL)
                                      ^
/datasets/git/builtin/blame.c:335:38: note: expanded from macro 'OUTPUT_SHOW_EMAIL'
#define OUTPUT_SHOW_EMAIL           (1U<<8)
                                     ^   ~
/datasets/git/builtin/blame.c:640:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (*option & OUTPUT_SHOW_EMAIL)
                                                        ^
                                                         {
/datasets/git/builtin/blame.c:642:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/builtin/blame.c:644:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (longest_author < num)
                                                 ^
                                                  {
/datasets/git/builtin/blame.c:649:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (longest_src_lines < num)
                                            ^
                                             {
/datasets/git/builtin/blame.c:652:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (longest_dst_lines < num)
                                            ^
                                             {
/datasets/git/builtin/blame.c:654:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (largest_score < blame_entry_score(sb, e))
                                                             ^
                                                              {
/datasets/git/builtin/blame.c:661:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (compute_auto_abbrev)
                                ^
                                 {
/datasets/git/builtin/blame.c:666:59: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static void sanity_check_on_fail(struct blame_scoreboard *sb, int baa)
                                                          ^
/datasets/git/builtin/blame.c:668:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int opt = OUTPUT_SHOW_SCORE | OUTPUT_SHOW_NUMBER | OUTPUT_SHOW_NAME;
                  ^
/datasets/git/builtin/blame.c:333:38: note: expanded from macro 'OUTPUT_SHOW_SCORE'
#define OUTPUT_SHOW_SCORE           (1U<<6)
                                     ^   ~
/datasets/git/builtin/blame.c:668:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int opt = OUTPUT_SHOW_SCORE | OUTPUT_SHOW_NUMBER | OUTPUT_SHOW_NAME;
                                      ^
/datasets/git/builtin/blame.c:332:38: note: expanded from macro 'OUTPUT_SHOW_NUMBER'
#define OUTPUT_SHOW_NUMBER          (1U<<5)
                                     ^   ~
/datasets/git/builtin/blame.c:668:53: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int opt = OUTPUT_SHOW_SCORE | OUTPUT_SHOW_NUMBER | OUTPUT_SHOW_NAME;
                                                           ^
/datasets/git/builtin/blame.c:331:38: note: expanded from macro 'OUTPUT_SHOW_NAME'
#define OUTPUT_SHOW_NAME            (1U<<4)
                                     ^   ~
/datasets/git/builtin/blame.c:676:8: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
        char *end;
              ^
                  = NULL
/datasets/git/builtin/blame.c:677:43: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        unsigned long score = strtoul(arg, &end, 10);
                                                 ^
/datasets/git/builtin/blame.c:678:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*end)
                 ^
                  {
/datasets/git/builtin/blame.c:685:38: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return prefix_path(prefix, prefix ? strlen(prefix) : 0, path);
                                            ^
/datasets/git/builtin/blame.c:688:12: warning: function 'git_blame_config' has cognitive complexity of 26 (threshold 25) [readability-function-cognitive-complexity]
static int git_blame_config(const char *var, const char *value, void *cb)
           ^
/datasets/git/builtin/blame.c:690:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "blame.showroot")) {
        ^
/datasets/git/builtin/blame.c:694:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "blame.blankboundary")) {
        ^
/datasets/git/builtin/blame.c:698:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "blame.showemail")) {
        ^
/datasets/git/builtin/blame.c:700:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (git_config_bool(var, value))
                ^
/datasets/git/builtin/blame.c:702:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/blame.c:706:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "blame.date")) {
        ^
/datasets/git/builtin/blame.c:707:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!value)
                ^
/datasets/git/builtin/blame.c:712:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "blame.ignorerevsfile")) {
        ^
/datasets/git/builtin/blame.c:717:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ret)
                ^
/datasets/git/builtin/blame.c:722:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "blame.markunblamablelines")) {
        ^
/datasets/git/builtin/blame.c:726:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "blame.markignoredlines")) {
        ^
/datasets/git/builtin/blame.c:730:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "color.blame.repeatedlines")) {
        ^
/datasets/git/builtin/blame.c:731:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (color_parse_mem(value, strlen(value), repeated_meta_color))
                ^
/datasets/git/builtin/blame.c:736:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "color.blame.highlightrecent")) {
        ^
/datasets/git/builtin/blame.c:741:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "blame.coloring")) {
        ^
/datasets/git/builtin/blame.c:742:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(value, "repeatedLines")) {
                ^
/datasets/git/builtin/blame.c:744:10: note: +1, nesting level increased to 2
                } else if (!strcmp(value, "highlightRecent")) {
                       ^
/datasets/git/builtin/blame.c:746:10: note: +1, nesting level increased to 2
                } else if (!strcmp(value, "none")) {
                       ^
/datasets/git/builtin/blame.c:749:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/blame.c:756:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (git_diff_heuristic_config(var, value, cb) < 0)
        ^
/datasets/git/builtin/blame.c:758:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (userdiff_config(var, value) < 0)
        ^
/datasets/git/builtin/blame.c:688:71: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int git_blame_config(const char *var, const char *value, void *cb)
                                                                      ^
/datasets/git/builtin/blame.c:700:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (git_config_bool(var, value))
                                                ^
                                                 {
/datasets/git/builtin/blame.c:701:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        *output_option |= OUTPUT_SHOW_EMAIL;
                        ^~~~~~~~~~~~~~
/datasets/git/builtin/blame.c:701:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        *output_option |= OUTPUT_SHOW_EMAIL;
                                          ^
/datasets/git/builtin/blame.c:335:38: note: expanded from macro 'OUTPUT_SHOW_EMAIL'
#define OUTPUT_SHOW_EMAIL           (1U<<8)
                                     ^   ~
/datasets/git/builtin/blame.c:702:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/blame.c:703:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        *output_option &= ~OUTPUT_SHOW_EMAIL;
                        ^~~~~~~~~~~~~~
/datasets/git/builtin/blame.c:703:22: warning: narrowing conversion from constant value 4294967039 (0xFFFFFEFF) of type 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        *output_option &= ~OUTPUT_SHOW_EMAIL;
                                          ^
/datasets/git/builtin/blame.c:703:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        *output_option &= ~OUTPUT_SHOW_EMAIL;
                                           ^
/datasets/git/builtin/blame.c:335:38: note: expanded from macro 'OUTPUT_SHOW_EMAIL'
#define OUTPUT_SHOW_EMAIL           (1U<<8)
                                     ^   ~
/datasets/git/builtin/blame.c:707:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
                            {
/datasets/git/builtin/blame.c:713:15: warning: variable 'str' is not initialized [cppcoreguidelines-init-variables]
                const char *str;
                            ^
                                = NULL
/datasets/git/builtin/blame.c:714:7: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
                int ret;
                    ^
                        = 0
/datasets/git/builtin/blame.c:717:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret)
                        ^
                         {
/datasets/git/builtin/blame.c:731:30: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                if (color_parse_mem(value, strlen(value), repeated_meta_color))
                                           ^
/datasets/git/builtin/blame.c:731:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (color_parse_mem(value, strlen(value), repeated_meta_color))
                                                                               ^
                                                                                {
/datasets/git/builtin/blame.c:743:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        coloring_mode |= OUTPUT_COLOR_LINE;
                        ^~~~~~~~~~~~~
/datasets/git/builtin/blame.c:743:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        coloring_mode |= OUTPUT_COLOR_LINE;
                                         ^
/datasets/git/builtin/blame.c:337:38: note: expanded from macro 'OUTPUT_COLOR_LINE'
#define OUTPUT_COLOR_LINE           (1U<<10)
                                     ^   ~~
/datasets/git/builtin/blame.c:745:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        coloring_mode |= OUTPUT_SHOW_AGE_WITH_COLOR;
                        ^~~~~~~~~~~~~
/datasets/git/builtin/blame.c:745:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        coloring_mode |= OUTPUT_SHOW_AGE_WITH_COLOR;
                                         ^
/datasets/git/builtin/blame.c:338:38: note: expanded from macro 'OUTPUT_SHOW_AGE_WITH_COLOR'
#define OUTPUT_SHOW_AGE_WITH_COLOR  (1U<<11)
                                     ^   ~~
/datasets/git/builtin/blame.c:747:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        coloring_mode &= ~(OUTPUT_COLOR_LINE |
                        ^~~~~~~~~~~~~
/datasets/git/builtin/blame.c:747:21: warning: narrowing conversion from constant value 4294964223 (0xFFFFF3FF) of type 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        coloring_mode &= ~(OUTPUT_COLOR_LINE |
                                         ^
/datasets/git/builtin/blame.c:747:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        coloring_mode &= ~(OUTPUT_COLOR_LINE |
                                           ^
/datasets/git/builtin/blame.c:337:38: note: expanded from macro 'OUTPUT_COLOR_LINE'
#define OUTPUT_COLOR_LINE           (1U<<10)
                                     ^   ~~
/datasets/git/builtin/blame.c:748:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                            OUTPUT_SHOW_AGE_WITH_COLOR);
                                            ^
/datasets/git/builtin/blame.c:338:38: note: expanded from macro 'OUTPUT_SHOW_AGE_WITH_COLOR'
#define OUTPUT_SHOW_AGE_WITH_COLOR  (1U<<11)
                                     ^   ~~
/datasets/git/builtin/blame.c:756:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (git_diff_heuristic_config(var, value, cb) < 0)
                                                          ^
                                                           {
/datasets/git/builtin/blame.c:758:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (userdiff_config(var, value) < 0)
                                            ^
                                             {
/datasets/git/builtin/blame.c:768:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/blame.c:777:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (*opt & PICKAXE_BLAME_COPY_HARDER)
            ^~~~
/datasets/git/builtin/blame.c:777:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*opt & PICKAXE_BLAME_COPY_HARDER)
                                             ^
                                              {
/datasets/git/builtin/blame.c:778:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                *opt |= PICKAXE_BLAME_COPY_HARDEST;
                ^~~~
/datasets/git/builtin/blame.c:779:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (*opt & PICKAXE_BLAME_COPY)
            ^~~~
/datasets/git/builtin/blame.c:779:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*opt & PICKAXE_BLAME_COPY)
                                      ^
                                       {
/datasets/git/builtin/blame.c:780:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                *opt |= PICKAXE_BLAME_COPY_HARDER;
                ^~~~
/datasets/git/builtin/blame.c:781:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        *opt |= PICKAXE_BLAME_COPY | PICKAXE_BLAME_MOVE;
        ^~~~
/datasets/git/builtin/blame.c:781:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        *opt |= PICKAXE_BLAME_COPY | PICKAXE_BLAME_MOVE;
                ^
/datasets/git/./blame.h:12:29: note: expanded from macro 'PICKAXE_BLAME_COPY'
#define PICKAXE_BLAME_COPY              02
                                        ^~
/datasets/git/builtin/blame.c:783:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (arg)
                ^
                 {
/datasets/git/builtin/blame.c:792:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/blame.c:794:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        *opt |= PICKAXE_BLAME_MOVE;
        ^~~~
/datasets/git/builtin/blame.c:796:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (arg)
                ^
                 {
/datasets/git/builtin/blame.c:805:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid(name, &oid))
                                ^
                                 {
/datasets/git/builtin/blame.c:812:21: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        struct repository *r = ((struct blame_scoreboard *)cbdata)->repo;
                           ^
/datasets/git/builtin/blame.c:816:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/builtin/blame.c:817:18: warning: variable 'obj' is not initialized [cppcoreguidelines-init-variables]
                struct object *obj;
                               ^
                                   = NULL
/datasets/git/builtin/blame.c:823:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (kind != OBJ_TAG)
                                    ^
                                     {
/datasets/git/builtin/blame.c:826:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!obj)
                         ^
                          {
/datasets/git/builtin/blame.c:832:55: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static void build_ignorelist(struct blame_scoreboard *sb,
                                                      ^
/datasets/git/builtin/blame.c:836:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct string_list_item *i;
        ^
/datasets/git/builtin/blame.c:836:27: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *i;
                                 ^
                                   = NULL
/datasets/git/builtin/blame.c:836:27: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/blame.c:840:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(i, ignore_revs_file_list) {
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/blame.c:836:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct string_list_item *i;
        ^
/datasets/git/builtin/blame.c:840:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(i, ignore_revs_file_list) {
                                  ^
/datasets/git/builtin/blame.c:841:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(i->string, ""))
                                           ^
                                            {
/datasets/git/builtin/blame.c:843:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/blame.c:847:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(i, ignore_rev_list) {
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/blame.c:847:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(i, ignore_rev_list) {
                                  ^
/datasets/git/builtin/blame.c:849:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    peel_to_commit_oid(&oid, sb))
                                                 ^
                                                  {
/datasets/git/builtin/blame.c:855:5: warning: function 'cmd_blame' has cognitive complexity of 78 (threshold 25) [readability-function-cognitive-complexity]
int cmd_blame(int argc, const char **argv, const char *prefix)
    ^
/datasets/git/builtin/blame.c:910:42: note: +1, including nesting penalty of 0, nesting level increased to 1
        const char *str_usage = cmd_is_annotate ? annotate_usage : blame_usage;
                                                ^
/datasets/git/builtin/blame.c:911:43: note: +1, including nesting penalty of 0, nesting level increased to 1
        const char **opt_usage = cmd_is_annotate ? annotate_opt_usage : blame_opt_usage;
                                                 ^
/datasets/git/builtin/blame.c:926:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (;;) {
        ^
/datasets/git/builtin/blame.c:927:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                switch (parse_options_step(&ctx, options, opt_usage)) {
                ^
/datasets/git/builtin/blame.c:938:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ctx.argv[0])
                        ^
/datasets/git/builtin/blame.c:940:4: note: +1
                        goto parse_done;
                        ^
/datasets/git/builtin/blame.c:943:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(ctx.argv[0], "--reverse")) {
                ^
/datasets/git/builtin/blame.c:959:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (incremental || (output_option & OUTPUT_PORCELAIN)) {
        ^
/datasets/git/builtin/blame.c:959:18: note: +1
        if (incremental || (output_option & OUTPUT_PORCELAIN)) {
                        ^
/datasets/git/builtin/blame.c:960:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (show_progress > 0)
                ^
/datasets/git/builtin/blame.c:963:9: note: +1, nesting level increased to 1
        } else if (show_progress < 0)
               ^
/datasets/git/builtin/blame.c:966:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (0 < abbrev && abbrev < hexsz)
        ^
/datasets/git/builtin/blame.c:966:17: note: +1
        if (0 < abbrev && abbrev < hexsz)
                       ^
/datasets/git/builtin/blame.c:969:7: note: +1, nesting level increased to 1
        else if (!abbrev)
             ^
/datasets/git/builtin/blame.c:972:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (revs_file && read_ancestry(revs_file))
        ^
/datasets/git/builtin/blame.c:972:16: note: +1
        if (revs_file && read_ancestry(revs_file))
                      ^
/datasets/git/builtin/blame.c:975:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (cmd_is_annotate) {
        ^
/datasets/git/builtin/blame.c:978:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/blame.c:983:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        switch (blame_date_mode.type) {
        ^
/datasets/git/builtin/blame.c:1027:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (revs.diffopt.flags.find_copies_harder)
        ^
/datasets/git/builtin/blame.c:1049:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (dashdash_pos) {
        ^
/datasets/git/builtin/blame.c:1050:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                switch (argc - dashdash_pos - 1) {
                ^
/datasets/git/builtin/blame.c:1052:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (argc != 4)
                        ^
/datasets/git/builtin/blame.c:1066:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/blame.c:1067:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (argc < 2)
                ^
/datasets/git/builtin/blame.c:1069:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (argc == 3 && is_a_rev(argv[argc - 1])) { /* (2b) */
                ^
/datasets/git/builtin/blame.c:1069:17: note: +1
                if (argc == 3 && is_a_rev(argv[argc - 1])) { /* (2b) */
                              ^
/datasets/git/builtin/blame.c:1072:5: note: +1, nesting level increased to 2
                } else {        /* (2a) */
                  ^
/datasets/git/builtin/blame.c:1073:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (argc == 2 && is_a_rev(argv[1]) && !get_git_work_tree())
                        ^
/datasets/git/builtin/blame.c:1073:39: note: +1
                        if (argc == 2 && is_a_rev(argv[1]) && !get_git_work_tree())
                                                           ^
/datasets/git/builtin/blame.c:1082:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!revs.pending.nr && is_bare_repository()) {
        ^
/datasets/git/builtin/blame.c:1082:23: note: +1
        if (!revs.pending.nr && is_bare_repository()) {
                             ^
/datasets/git/builtin/blame.c:1086:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!resolve_ref_unsafe("HEAD", RESOLVE_REF_READING,
                ^
/datasets/git/builtin/blame.c:1087:23: note: +1
                                        &head_oid, NULL) ||
                                                         ^
/datasets/git/builtin/blame.c:1110:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!(opt & PICKAXE_BLAME_COPY))
        ^
/datasets/git/builtin/blame.c:1115:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (lno && !range_list.nr)
        ^
/datasets/git/builtin/blame.c:1115:10: note: +1
        if (lno && !range_list.nr)
                ^
/datasets/git/builtin/blame.c:1120:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (range_i = 0; range_i < range_list.nr; ++range_i) {
        ^
/datasets/git/builtin/blame.c:1122:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (parse_range_arg(range_list.items[range_i].string,
                ^
/datasets/git/builtin/blame.c:1127:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((!lno && (top || bottom)) || lno < bottom)
                ^
/datasets/git/builtin/blame.c:1127:33: note: +1
                if ((!lno && (top || bottom)) || lno < bottom)
                                              ^
/datasets/git/builtin/blame.c:1127:13: note: +1
                if ((!lno && (top || bottom)) || lno < bottom)
                          ^
/datasets/git/builtin/blame.c:1127:21: note: +1
                if ((!lno && (top || bottom)) || lno < bottom)
                                  ^
/datasets/git/builtin/blame.c:1131:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (bottom < 1)
                ^
/datasets/git/builtin/blame.c:1133:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (top < 1 || lno < top)
                ^
/datasets/git/builtin/blame.c:1133:15: note: +1
                if (top < 1 || lno < top)
                            ^
/datasets/git/builtin/blame.c:1141:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (range_i = ranges.nr; range_i > 0; --range_i) {
        ^
/datasets/git/builtin/blame.c:1146:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!num_lines)
        ^
/datasets/git/builtin/blame.c:1159:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (blame_move_score)
        ^
/datasets/git/builtin/blame.c:1161:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (blame_copy_score)
        ^
/datasets/git/builtin/blame.c:1175:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (show_progress)
        ^
/datasets/git/builtin/blame.c:1182:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!incremental)
        ^
/datasets/git/builtin/blame.c:1184:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/builtin/blame.c:1191:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!(output_option & (OUTPUT_COLOR_LINE | OUTPUT_SHOW_AGE_WITH_COLOR)))
        ^
/datasets/git/builtin/blame.c:1194:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!(output_option & OUTPUT_PORCELAIN)) {
        ^
/datasets/git/builtin/blame.c:1196:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!*repeated_meta_color &&
                ^
/datasets/git/builtin/blame.c:1196:29: note: +1
                if (!*repeated_meta_color &&
                                          ^
/datasets/git/builtin/blame.c:1202:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (output_option & OUTPUT_ANNOTATE_COMPAT)
        ^
/datasets/git/builtin/blame.c:1207:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (ent = sb.ent; ent; ) {
        ^
/datasets/git/builtin/blame.c:1213:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (show_stats) {
        ^
/datasets/git/builtin/blame.c:858:14: warning: variable 'path' is not initialized [cppcoreguidelines-init-variables]
        const char *path;
                    ^
                         = NULL
/datasets/git/builtin/blame.c:859:26: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct blame_scoreboard sb;
                                ^
/datasets/git/builtin/blame.c:860:23: warning: variable 'o' is not initialized [cppcoreguidelines-init-variables]
        struct blame_origin *o;
                             ^
                               = NULL
/datasets/git/builtin/blame.c:860:23: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/blame.c:862:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        long dashdash_pos, lno;
        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/blame.c:862:7: warning: variable 'dashdash_pos' is not initialized [cppcoreguidelines-init-variables]
        long dashdash_pos, lno;
             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/blame.c:862:21: warning: variable 'lno' is not initialized [cppcoreguidelines-init-variables]
        long dashdash_pos, lno;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/blame.c:863:23: warning: variable name 'pi' is too short, expected at least 3 characters [readability-identifier-length]
        struct progress_info pi = { NULL, 0 };
                             ^
/datasets/git/builtin/blame.c:867:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int output_option = 0, opt = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/blame.c:872:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "incremental", &incremental, N_("show blame entries as we find them, incrementally")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/blame.c:873:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('b', NULL, &blank_boundary, N_("do not show object names of boundary commits (Default: off)")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/blame.c:874:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "root", &show_root, N_("do not treat root commits as boundaries (Default: off)")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/blame.c:875:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "show-stats", &show_stats, N_("show work cost statistics")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/blame.c:876:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "progress", &show_progress, N_("force progress reporting")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/blame.c:877:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT(0, "score-debug", &output_option, N_("show output score for blame entries"), OUTPUT_SHOW_SCORE),
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/blame.c:877:88: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT(0, "score-debug", &output_option, N_("show output score for blame entries"), OUTPUT_SHOW_SCORE),
                                                                                                     ^
/datasets/git/builtin/blame.c:333:38: note: expanded from macro 'OUTPUT_SHOW_SCORE'
#define OUTPUT_SHOW_SCORE           (1U<<6)
                                     ^   ~
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/blame.c:878:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT('f', "show-name", &output_option, N_("show original filename (Default: auto)"), OUTPUT_SHOW_NAME),
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/blame.c:878:91: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT('f', "show-name", &output_option, N_("show original filename (Default: auto)"), OUTPUT_SHOW_NAME),
                                                                                                        ^
/datasets/git/builtin/blame.c:331:38: note: expanded from macro 'OUTPUT_SHOW_NAME'
#define OUTPUT_SHOW_NAME            (1U<<4)
                                     ^   ~
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/blame.c:879:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT('n', "show-number", &output_option, N_("show original linenumber (Default: off)"), OUTPUT_SHOW_NUMBER),
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/blame.c:879:94: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT('n', "show-number", &output_option, N_("show original linenumber (Default: off)"), OUTPUT_SHOW_NUMBER),
                                                                                                           ^
/datasets/git/builtin/blame.c:332:38: note: expanded from macro 'OUTPUT_SHOW_NUMBER'
#define OUTPUT_SHOW_NUMBER          (1U<<5)
                                     ^   ~
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/blame.c:880:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT('p', "porcelain", &output_option, N_("show in a format designed for machine consumption"), OUTPUT_PORCELAIN),
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/blame.c:880:102: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT('p', "porcelain", &output_option, N_("show in a format designed for machine consumption"), OUTPUT_PORCELAIN),
                                                                                                                   ^
/datasets/git/builtin/blame.c:330:38: note: expanded from macro 'OUTPUT_PORCELAIN'
#define OUTPUT_PORCELAIN            (1U<<3)
                                     ^   ~
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/blame.c:881:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT(0, "line-porcelain", &output_option, N_("show porcelain format with per-line commit information"), OUTPUT_PORCELAIN|OUTPUT_LINE_PORCELAIN),
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/blame.c:881:110: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT(0, "line-porcelain", &output_option, N_("show porcelain format with per-line commit information"), OUTPUT_PORCELAIN|OUTPUT_LINE_PORCELAIN),
                                                                                                                           ^
/datasets/git/builtin/blame.c:330:38: note: expanded from macro 'OUTPUT_PORCELAIN'
#define OUTPUT_PORCELAIN            (1U<<3)
                                     ^   ~
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/blame.c:881:127: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT(0, "line-porcelain", &output_option, N_("show porcelain format with per-line commit information"), OUTPUT_PORCELAIN|OUTPUT_LINE_PORCELAIN),
                                                                                                                                            ^
/datasets/git/builtin/blame.c:336:38: note: expanded from macro 'OUTPUT_LINE_PORCELAIN'
#define OUTPUT_LINE_PORCELAIN       (1U<<9)
                                     ^   ~
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/blame.c:882:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT('c', NULL, &output_option, N_("use the same output mode as git-annotate (Default: off)"), OUTPUT_ANNOTATE_COMPAT),
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/blame.c:882:101: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT('c', NULL, &output_option, N_("use the same output mode as git-annotate (Default: off)"), OUTPUT_ANNOTATE_COMPAT),
                                                                                                                  ^
/datasets/git/builtin/blame.c:327:38: note: expanded from macro 'OUTPUT_ANNOTATE_COMPAT'
#define OUTPUT_ANNOTATE_COMPAT      (1U<<0)
                                     ^   ~
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/blame.c:883:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT('t', NULL, &output_option, N_("show raw timestamp (Default: off)"), OUTPUT_RAW_TIMESTAMP),
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/blame.c:883:79: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT('t', NULL, &output_option, N_("show raw timestamp (Default: off)"), OUTPUT_RAW_TIMESTAMP),
                                                                                            ^
/datasets/git/builtin/blame.c:329:38: note: expanded from macro 'OUTPUT_RAW_TIMESTAMP'
#define OUTPUT_RAW_TIMESTAMP        (1U<<2)
                                     ^   ~
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/blame.c:884:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT('l', NULL, &output_option, N_("show long commit SHA1 (Default: off)"), OUTPUT_LONG_OBJECT_NAME),
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/blame.c:884:82: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT('l', NULL, &output_option, N_("show long commit SHA1 (Default: off)"), OUTPUT_LONG_OBJECT_NAME),
                                                                                               ^
/datasets/git/builtin/blame.c:328:38: note: expanded from macro 'OUTPUT_LONG_OBJECT_NAME'
#define OUTPUT_LONG_OBJECT_NAME     (1U<<1)
                                     ^   ~
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/blame.c:885:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT('s', NULL, &output_option, N_("suppress author name and timestamp (Default: off)"), OUTPUT_NO_AUTHOR),
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/blame.c:885:95: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT('s', NULL, &output_option, N_("suppress author name and timestamp (Default: off)"), OUTPUT_NO_AUTHOR),
                                                                                                            ^
/datasets/git/builtin/blame.c:334:38: note: expanded from macro 'OUTPUT_NO_AUTHOR'
#define OUTPUT_NO_AUTHOR            (1U<<7)
                                     ^   ~
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/blame.c:886:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT('e', "show-email", &output_option, N_("show author email instead of name (Default: off)"), OUTPUT_SHOW_EMAIL),
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/blame.c:886:102: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT('e', "show-email", &output_option, N_("show author email instead of name (Default: off)"), OUTPUT_SHOW_EMAIL),
                                                                                                                   ^
/datasets/git/builtin/blame.c:335:38: note: expanded from macro 'OUTPUT_SHOW_EMAIL'
#define OUTPUT_SHOW_EMAIL           (1U<<8)
                                     ^   ~
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/blame.c:887:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT('w', NULL, &xdl_opts, N_("ignore whitespace differences"), XDF_IGNORE_WHITESPACE),
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/blame.c:887:70: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT('w', NULL, &xdl_opts, N_("ignore whitespace differences"), XDF_IGNORE_WHITESPACE),
                                                                                   ^
/datasets/git/./xdiff/xdiff.h:33:32: note: expanded from macro 'XDF_IGNORE_WHITESPACE'
#define XDF_IGNORE_WHITESPACE (1 << 1)
                               ^
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/blame.c:890:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT(0, "color-lines", &output_option, N_("color redundant metadata from previous line differently"), OUTPUT_COLOR_LINE),
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/blame.c:890:108: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT(0, "color-lines", &output_option, N_("color redundant metadata from previous line differently"), OUTPUT_COLOR_LINE),
                                                                                                                         ^
/datasets/git/builtin/blame.c:337:38: note: expanded from macro 'OUTPUT_COLOR_LINE'
#define OUTPUT_COLOR_LINE           (1U<<10)
                                     ^   ~~
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/blame.c:891:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT(0, "color-by-age", &output_option, N_("color lines by age"), OUTPUT_SHOW_AGE_WITH_COLOR),
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/blame.c:891:72: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT(0, "color-by-age", &output_option, N_("color lines by age"), OUTPUT_SHOW_AGE_WITH_COLOR),
                                                                                     ^
/datasets/git/builtin/blame.c:338:38: note: expanded from macro 'OUTPUT_SHOW_AGE_WITH_COLOR'
#define OUTPUT_SHOW_AGE_WITH_COLOR  (1U<<11)
                                     ^   ~~
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/blame.c:892:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT(0, "minimal", &xdl_opts, N_("spend extra cycles to find better match"), XDF_NEED_MINIMAL),
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/blame.c:892:83: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT(0, "minimal", &xdl_opts, N_("spend extra cycles to find better match"), XDF_NEED_MINIMAL),
                                                                                                ^
/datasets/git/./xdiff/xdiff.h:31:27: note: expanded from macro 'XDF_NEED_MINIMAL'
#define XDF_NEED_MINIMAL (1 << 0)
                          ^
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/blame.c:906:15: warning: variable 'range_i' is not initialized [cppcoreguidelines-init-variables]
        unsigned int range_i;
                     ^
                             = 0
/datasets/git/builtin/blame.c:907:7: warning: variable 'anchor' is not initialized [cppcoreguidelines-init-variables]
        long anchor;
             ^
                    = 0
/datasets/git/builtin/blame.c:925:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            PARSE_OPT_KEEP_DASHDASH | PARSE_OPT_KEEP_ARGV0);
                            ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/blame.c:926:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/builtin/blame.c:934:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        exit(129);
                        ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/blame.c:936:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        exit(0);
                        ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/blame.c:938:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ctx.argv[0])
                                        ^
                                         {
/datasets/git/builtin/blame.c:952:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        xdl_opts |= revs.diffopt.xdl_opts & XDF_INDENT_HEURISTIC;
        ^~~~~~~~
/datasets/git/builtin/blame.c:952:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        xdl_opts |= revs.diffopt.xdl_opts & XDF_INDENT_HEURISTIC;
                    ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/blame.c:952:38: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        xdl_opts |= revs.diffopt.xdl_opts & XDF_INDENT_HEURISTIC;
                                            ^
/datasets/git/./xdiff/xdiff.h:49:31: note: expanded from macro 'XDF_INDENT_HEURISTIC'
#define XDF_INDENT_HEURISTIC (1 << 23)
                              ^
/datasets/git/builtin/blame.c:959:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (incremental || (output_option & OUTPUT_PORCELAIN)) {
                            ^~~~~~~~~~~~~
/datasets/git/builtin/blame.c:959:38: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (incremental || (output_option & OUTPUT_PORCELAIN)) {
                                            ^
/datasets/git/builtin/blame.c:330:38: note: expanded from macro 'OUTPUT_PORCELAIN'
#define OUTPUT_PORCELAIN            (1U<<3)
                                     ^   ~
/datasets/git/builtin/blame.c:960:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (show_progress > 0)
                                      ^
                                       {
/datasets/git/builtin/blame.c:963:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else if (show_progress < 0)
                                     ^
                                      {
/datasets/git/builtin/blame.c:966:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (0 < abbrev && abbrev < hexsz)
                                         ^
                                          {
/datasets/git/builtin/blame.c:969:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!abbrev)
                         ^
                          {
/datasets/git/builtin/blame.c:972:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs_file && read_ancestry(revs_file))
                                                  ^
                                                   {
/datasets/git/builtin/blame.c:976:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                output_option |= OUTPUT_ANNOTATE_COMPAT;
                ^~~~~~~~~~~~~
/datasets/git/builtin/blame.c:976:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                output_option |= OUTPUT_ANNOTATE_COMPAT;
                                 ^
/datasets/git/builtin/blame.c:327:38: note: expanded from macro 'OUTPUT_ANNOTATE_COMPAT'
#define OUTPUT_ANNOTATE_COMPAT      (1U<<0)
                                     ^   ~
/datasets/git/builtin/blame.c:1027:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs.diffopt.flags.find_copies_harder)
                                                  ^
                                                   {
/datasets/git/builtin/blame.c:1028:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                opt |= (PICKAXE_BLAME_COPY | PICKAXE_BLAME_MOVE |
                ^~~
/datasets/git/builtin/blame.c:1028:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                opt |= (PICKAXE_BLAME_COPY | PICKAXE_BLAME_MOVE |
                        ^
/datasets/git/./blame.h:12:29: note: expanded from macro 'PICKAXE_BLAME_COPY'
#define PICKAXE_BLAME_COPY              02
                                        ^
/datasets/git/builtin/blame.c:1052:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (argc != 4)
                                      ^
                                       {
/datasets/git/builtin/blame.c:1067:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (argc < 2)
                             ^
                              {
/datasets/git/builtin/blame.c:1073:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (argc == 2 && is_a_rev(argv[1]) && !get_git_work_tree())
                                                                                   ^
                                                                                    {
/datasets/git/builtin/blame.c:1083:18: warning: variable 'head_commit' is not initialized [cppcoreguidelines-init-variables]
                struct commit *head_commit;
                               ^
                                           = NULL
/datasets/git/builtin/blame.c:1088:9: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                    !(head_commit = lookup_commit_reference_gently(revs.repo,
                      ^
/datasets/git/builtin/blame.c:1088:9: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/builtin/blame.c:1088:9: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/builtin/blame.c:1089:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                             &head_oid, 1)))
                                                                            ^
                                                                             {
/datasets/git/builtin/blame.c:1110:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(opt & PICKAXE_BLAME_COPY))
              ^~~
/datasets/git/builtin/blame.c:1110:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(opt & PICKAXE_BLAME_COPY))
                                        ^
                                         {
/datasets/git/builtin/blame.c:1115:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (lno && !range_list.nr)
                                  ^
                                   {
/datasets/git/builtin/blame.c:1120:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (range_i = 0; range_i < range_list.nr; ++range_i) {
        ^
/datasets/git/builtin/blame.c:906:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        unsigned int range_i;
        ^
/datasets/git/builtin/blame.c:1120:20: warning: backward branch (for loop) is ID-dependent due to variable reference to 'range_i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (range_i = 0; range_i < range_list.nr; ++range_i) {
                          ^
/datasets/git/builtin/blame.c:1121:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                long bottom, top;
                ^~~~~~~~~~~~~~~~~
/datasets/git/builtin/blame.c:1121:8: warning: variable 'bottom' is not initialized [cppcoreguidelines-init-variables]
                long bottom, top;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/blame.c:1121:16: warning: variable 'top' is not initialized [cppcoreguidelines-init-variables]
                long bottom, top;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/blame.c:1125:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                    the_repository->index))
                                                           ^
                                                            {
/datasets/git/builtin/blame.c:1127:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((!lno && (top || bottom)) || lno < bottom)
                                                              ^
                                                               {
/datasets/git/builtin/blame.c:1131:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (bottom < 1)
                               ^
                                {
/datasets/git/builtin/blame.c:1133:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (top < 1 || lno < top)
                                         ^
                                          {
/datasets/git/builtin/blame.c:1141:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (range_i = ranges.nr; range_i > 0; --range_i) {
        ^
/datasets/git/builtin/blame.c:1141:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'range_i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (range_i = ranges.nr; range_i > 0; --range_i) {
                                  ^
/datasets/git/builtin/blame.c:1142:23: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
                const struct range *r = &ranges.ranges[range_i - 1];
                                    ^
/datasets/git/builtin/blame.c:1146:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!num_lines)
                       ^
                        {
/datasets/git/builtin/blame.c:1159:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (blame_move_score)
                             ^
                              {
/datasets/git/builtin/blame.c:1161:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (blame_copy_score)
                             ^
                              {
/datasets/git/builtin/blame.c:1175:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (show_progress)
                          ^
                           {
/datasets/git/builtin/blame.c:1182:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!incremental)
                         ^
                          {
/datasets/git/builtin/blame.c:1184:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/blame.c:1191:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(output_option & (OUTPUT_COLOR_LINE | OUTPUT_SHOW_AGE_WITH_COLOR)))
              ^~~~~~~~~~~~~
/datasets/git/builtin/blame.c:1191:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(output_option & (OUTPUT_COLOR_LINE | OUTPUT_SHOW_AGE_WITH_COLOR)))
                               ^
/datasets/git/builtin/blame.c:337:38: note: expanded from macro 'OUTPUT_COLOR_LINE'
#define OUTPUT_COLOR_LINE           (1U<<10)
                                     ^   ~~
/datasets/git/builtin/blame.c:1191:45: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(output_option & (OUTPUT_COLOR_LINE | OUTPUT_SHOW_AGE_WITH_COLOR)))
                                                   ^
/datasets/git/builtin/blame.c:338:38: note: expanded from macro 'OUTPUT_SHOW_AGE_WITH_COLOR'
#define OUTPUT_SHOW_AGE_WITH_COLOR  (1U<<11)
                                     ^   ~~
/datasets/git/builtin/blame.c:1191:74: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(output_option & (OUTPUT_COLOR_LINE | OUTPUT_SHOW_AGE_WITH_COLOR)))
                                                                                ^
                                                                                 {
/datasets/git/builtin/blame.c:1192:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                output_option |= coloring_mode;
                ^~~~~~~~~~~~~
/datasets/git/builtin/blame.c:1194:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(output_option & OUTPUT_PORCELAIN)) {
              ^~~~~~~~~~~~~
/datasets/git/builtin/blame.c:1194:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(output_option & OUTPUT_PORCELAIN)) {
                              ^
/datasets/git/builtin/blame.c:330:38: note: expanded from macro 'OUTPUT_PORCELAIN'
#define OUTPUT_PORCELAIN            (1U<<3)
                                     ^   ~
/datasets/git/builtin/blame.c:1197:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (output_option & OUTPUT_COLOR_LINE))
                     ^~~~~~~~~~~~~
/datasets/git/builtin/blame.c:1197:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (output_option & OUTPUT_COLOR_LINE))
                                     ^
/datasets/git/builtin/blame.c:337:38: note: expanded from macro 'OUTPUT_COLOR_LINE'
#define OUTPUT_COLOR_LINE           (1U<<10)
                                     ^   ~~
/datasets/git/builtin/blame.c:1197:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    (output_option & OUTPUT_COLOR_LINE))
                                                        ^
                                                         {
/datasets/git/builtin/blame.c:1202:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (output_option & OUTPUT_ANNOTATE_COMPAT)
            ^~~~~~~~~~~~~
/datasets/git/builtin/blame.c:1202:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (output_option & OUTPUT_ANNOTATE_COMPAT)
                            ^
/datasets/git/builtin/blame.c:327:38: note: expanded from macro 'OUTPUT_ANNOTATE_COMPAT'
#define OUTPUT_ANNOTATE_COMPAT      (1U<<0)
                                     ^   ~
/datasets/git/builtin/blame.c:1202:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (output_option & OUTPUT_ANNOTATE_COMPAT)
                                                   ^
                                                    {
/datasets/git/builtin/blame.c:1203:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                output_option &= ~(OUTPUT_COLOR_LINE | OUTPUT_SHOW_AGE_WITH_COLOR);
                ^~~~~~~~~~~~~
/datasets/git/builtin/blame.c:1203:20: warning: narrowing conversion from constant value 4294964223 (0xFFFFF3FF) of type 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                output_option &= ~(OUTPUT_COLOR_LINE | OUTPUT_SHOW_AGE_WITH_COLOR);
                                 ^
/datasets/git/builtin/blame.c:1203:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                output_option &= ~(OUTPUT_COLOR_LINE | OUTPUT_SHOW_AGE_WITH_COLOR);
                                   ^
/datasets/git/builtin/blame.c:337:38: note: expanded from macro 'OUTPUT_COLOR_LINE'
#define OUTPUT_COLOR_LINE           (1U<<10)
                                     ^   ~~
/datasets/git/builtin/blame.c:1203:42: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                output_option &= ~(OUTPUT_COLOR_LINE | OUTPUT_SHOW_AGE_WITH_COLOR);
                                                       ^
/datasets/git/builtin/blame.c:338:38: note: expanded from macro 'OUTPUT_SHOW_AGE_WITH_COLOR'
#define OUTPUT_SHOW_AGE_WITH_COLOR  (1U<<11)
                                     ^   ~~
/datasets/git/builtin/blame.c:1207:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (ent = sb.ent; ent; ) {
        ^
/datasets/git/builtin/blame.c:1207:21: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ent' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (ent = sb.ent; ent; ) {
                           ^
/datasets/git/builtin/blame.c:1208:23: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                struct blame_entry *e = ent->next;
                                    ^
/datasets/git/builtin/branch.c:9:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "branch.h"
/datasets/git/builtin/branch.c:40:20: warning: variable 'head' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *head;
                   ^
/datasets/git/builtin/branch.c:41:25: warning: variable 'head_oid' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct object_id head_oid;
                        ^
/datasets/git/builtin/branch.c:42:12: warning: variable 'recurse_submodules' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int recurse_submodules = 0;
           ^
/datasets/git/builtin/branch.c:43:12: warning: variable 'submodule_propagate_branches' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int submodule_propagate_branches = 0;
           ^
/datasets/git/builtin/branch.c:45:12: warning: variable 'branch_use_color' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int branch_use_color = -1;
           ^
/datasets/git/builtin/branch.c:46:13: warning: variable 'branch_colors' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char branch_colors[][COLOR_MAXLEN] = {
            ^
/datasets/git/builtin/branch.c:65:20: warning: variable 'color_branch_slots' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *color_branch_slots[] = {
                   ^
/datasets/git/builtin/branch.c:75:27: warning: variable 'output' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct string_list output = STRING_LIST_INIT_DUP;
                          ^
/datasets/git/builtin/branch.c:76:21: warning: variable 'colopts' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned int colopts;
                    ^
/datasets/git/builtin/branch.c:78:1: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
define_list_config_array(color_branch_slots);
^
/datasets/git/./help.h:62:2: note: expanded from macro 'define_list_config_array'
        for (i = 0; i < ARRAY_SIZE(array); i++)                         \
        ^
/datasets/git/builtin/branch.c:78:1: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
define_list_config_array(color_branch_slots);
^
/datasets/git/./help.h:61:6: note: expanded from macro 'define_list_config_array'
        int i;                                                          \
            ^
/datasets/git/builtin/branch.c:80:72: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int git_branch_config(const char *var, const char *value, void *cb)
                                                                       ^
/datasets/git/builtin/branch.c:82:14: warning: variable 'slot_name' is not initialized [cppcoreguidelines-init-variables]
        const char *slot_name;
                    ^
                              = NULL
/datasets/git/builtin/branch.c:85:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
                            {
/datasets/git/builtin/branch.c:91:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (starts_with(var, "column."))
                                        ^
                                         {
/datasets/git/builtin/branch.c:99:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (slot < 0)
                             ^
                              {
/datasets/git/builtin/branch.c:101:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
                            {
/datasets/git/builtin/branch.c:117:55: warning: parameter name 'ix' is too short, expected at least 3 characters [readability-identifier-length]
static const char *branch_get_color(enum color_branch ix)
                                                      ^
/datasets/git/builtin/branch.c:119:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (want_color(branch_use_color))
                                         ^
                                          {
/datasets/git/builtin/branch.c:136:6: warning: variable 'merged' is not initialized [cppcoreguidelines-init-variables]
        int merged;
            ^
                   = 0
/datasets/git/builtin/branch.c:144:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                    (reference_name = reference_name_to_free =
                     ^
/datasets/git/builtin/branch.c:144:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/builtin/branch.c:144:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/builtin/branch.c:144:25: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                    (reference_name = reference_name_to_free =
                                      ^
/datasets/git/builtin/branch.c:144:25: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/builtin/branch.c:144:25: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/builtin/branch.c:146:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                    &oid, NULL)) != NULL)
                                                         ^
                                                          {
/datasets/git/builtin/branch.c:150:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!reference_rev)
                           ^
                            {
/datasets/git/builtin/branch.c:164:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (merged)
                           ^
                            {
/datasets/git/builtin/branch.c:168:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/branch.c:177:32: warning: 2 adjacent parameters of 'check_branch_commit' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int check_branch_commit(const char *branchname, const char *refname,
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/branch.c:177:44: note: the first parameter in the range is 'branchname'
static int check_branch_commit(const char *branchname, const char *refname,
                                           ^~~~~~~~~~
/datasets/git/builtin/branch.c:177:68: note: the last parameter in the range is 'refname'
static int check_branch_commit(const char *branchname, const char *refname,
                                                                   ^~~~~~~
/datasets/git/builtin/branch.c:199:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (git_config_rename_section(buf.buf, NULL) < 0)
                                                         ^
                                                          {
/datasets/git/builtin/branch.c:204:12: warning: function 'delete_branches' has cognitive complexity of 34 (threshold 25) [readability-function-cognitive-complexity]
static int delete_branches(int argc, const char **argv, int force, int kinds,
           ^
/datasets/git/builtin/branch.c:220:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        switch (kinds) {
        ^
/datasets/git/builtin/branch.c:238:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!force)
        ^
/datasets/git/builtin/branch.c:241:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < argc; i++, strbuf_reset(&bname)) {
        ^
/datasets/git/builtin/branch.c:249:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (kinds == FILTER_REFS_BRANCHES) {
                ^
/datasets/git/builtin/branch.c:251:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if ((path = branch_checked_out(name))) {
                        ^
/datasets/git/builtin/branch.c:265:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!target) {
                ^
/datasets/git/builtin/branch.c:267:10: note: +3, including nesting penalty of 2, nesting level increased to 3
                              ? _("remote-tracking branch '%s' not found.")
                              ^
/datasets/git/builtin/branch.c:273:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!(flags & (REF_ISSYMREF|REF_ISBROKEN)) &&
                ^
/datasets/git/builtin/branch.c:273:46: note: +1
                if (!(flags & (REF_ISSYMREF|REF_ISBROKEN)) &&
                                                           ^
/datasets/git/builtin/branch.c:277:4: note: +1
                        goto next;
                        ^
/datasets/git/builtin/branch.c:281:47: note: +2, including nesting penalty of 1, nesting level increased to 2
                item->util = xstrdup((flags & REF_ISBROKEN) ? "broken"
                                                            ^
/datasets/git/builtin/branch.c:282:34: note: +3, including nesting penalty of 2, nesting level increased to 3
                                    : (flags & REF_ISSYMREF) ? target
                                                             ^
/datasets/git/builtin/branch.c:289:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (delete_refs(NULL, &refs_to_delete, REF_NO_DEREF))
        ^
/datasets/git/builtin/branch.c:292:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for_each_string_list_item(item, &refs_to_delete) {
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/branch.c:292:2: note: +1
        for_each_string_list_item(item, &refs_to_delete) {
        ^
/datasets/git/./string-list.h:152:12: note: expanded from macro 'for_each_string_list_item'
             item && item < (list)->items + (list)->nr; \
                  ^
/datasets/git/builtin/branch.c:295:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!ref_exists(name)) {
                ^
/datasets/git/builtin/branch.c:297:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!quiet)
                        ^
/datasets/git/builtin/branch.c:299:6: note: +4, including nesting penalty of 3, nesting level increased to 4
                                        ? _("Deleted remote-tracking branch %s (was %s).\n")
                                        ^
/datasets/git/builtin/branch.c:204:68: warning: 2 adjacent parameters of 'delete_branches' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int delete_branches(int argc, const char **argv, int force, int kinds,
                                                                   ^~~~~~~~~~
/datasets/git/builtin/branch.c:204:72: note: the first parameter in the range is 'kinds'
static int delete_branches(int argc, const char **argv, int force, int kinds,
                                                                       ^~~~~
/datasets/git/builtin/branch.c:205:11: note: the last parameter in the range is 'quiet'
                           int quiet)
                               ^~~~~
/datasets/git/builtin/branch.c:210:14: warning: variable 'fmt' is not initialized [cppcoreguidelines-init-variables]
        const char *fmt;
                    ^
                        = NULL
/datasets/git/builtin/branch.c:211:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/branch.c:211:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/branch.c:215:11: warning: variable 'allowed_interpret' is not initialized [cppcoreguidelines-init-variables]
        unsigned allowed_interpret;
                 ^
                                   = 0
/datasets/git/builtin/branch.c:217:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/builtin/branch.c:218:6: warning: variable 'branch_name_pos' is not initialized [cppcoreguidelines-init-variables]
        int branch_name_pos;
            ^
                            = 0
/datasets/git/builtin/branch.c:225:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                allowed_interpret = INTERPRET_BRANCH_REMOTE;
                                    ^
/datasets/git/./refs/../cache.h:1585:34: note: expanded from macro 'INTERPRET_BRANCH_REMOTE'
#define INTERPRET_BRANCH_REMOTE (1<<1)
                                 ^
/datasets/git/builtin/branch.c:231:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                allowed_interpret = INTERPRET_BRANCH_LOCAL;
                                    ^
/datasets/git/./refs/../cache.h:1584:33: note: expanded from macro 'INTERPRET_BRANCH_LOCAL'
#define INTERPRET_BRANCH_LOCAL (1<<0)
                                ^
/datasets/git/builtin/branch.c:236:20: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        branch_name_pos = strcspn(fmt, "%");
                          ^
/datasets/git/builtin/branch.c:238:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!force)
                   ^
                    {
/datasets/git/builtin/branch.c:241:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < argc; i++, strbuf_reset(&bname)) {
        ^
/datasets/git/builtin/branch.c:250:16: warning: variable 'path' is not initialized [cppcoreguidelines-init-variables]
                        const char *path;
                                    ^
                                         = NULL
/datasets/git/builtin/branch.c:251:9: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                        if ((path = branch_checked_out(name))) {
                             ^
/datasets/git/builtin/branch.c:251:9: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/builtin/branch.c:251:9: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/builtin/branch.c:261:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        RESOLVE_REF_READING
                                        ^
/datasets/git/./refs.h:63:29: note: expanded from macro 'RESOLVE_REF_READING'
#define RESOLVE_REF_READING 0x01
                            ^
/datasets/git/builtin/branch.c:273:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(flags & (REF_ISSYMREF|REF_ISBROKEN)) &&
                      ^~~~~
/datasets/git/builtin/branch.c:273:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(flags & (REF_ISSYMREF|REF_ISBROKEN)) &&
                               ^
/datasets/git/./refs.h:274:22: note: expanded from macro 'REF_ISSYMREF'
#define REF_ISSYMREF 0x01
                     ^~~~
/datasets/git/builtin/branch.c:281:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                item->util = xstrdup((flags & REF_ISBROKEN) ? "broken"
                                      ^~~~~
/datasets/git/builtin/branch.c:282:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                    : (flags & REF_ISSYMREF) ? target
                                       ^~~~~
/datasets/git/builtin/branch.c:289:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (delete_refs(NULL, &refs_to_delete, REF_NO_DEREF))
                                               ^
/datasets/git/./refs.h:631:23: note: expanded from macro 'REF_NO_DEREF'
#define REF_NO_DEREF (1 << 0)
                      ^
/datasets/git/builtin/branch.c:289:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (delete_refs(NULL, &refs_to_delete, REF_NO_DEREF))
                                                             ^
                                                              {
/datasets/git/builtin/branch.c:292:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(item, &refs_to_delete) {
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/branch.c:292:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(item, &refs_to_delete) {
                                  ^
/datasets/git/builtin/branch.c:297:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!quiet)
                                   ^
                                    {
/datasets/git/builtin/branch.c:317:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, max = 0;
        ^~~~~~~~~~~~~~~
/datasets/git/builtin/branch.c:317:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, max = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/branch.c:317:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/branch.c:318:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < refs->nr; i++) {
        ^
/datasets/git/builtin/branch.c:319:26: warning: variable name 'it' is too short, expected at least 3 characters [readability-identifier-length]
                struct ref_array_item *it = refs->items[i];
                                       ^
/datasets/git/builtin/branch.c:321:7: warning: variable 'w' is not initialized [cppcoreguidelines-init-variables]
                int w;
                    ^
                      = 0
/datasets/git/builtin/branch.c:321:7: warning: variable name 'w' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/branch.c:329:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/builtin/branch.c:332:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (it->kind == FILTER_REFS_REMOTES)
                                                    ^
                                                     {
/datasets/git/builtin/branch.c:334:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (w > max)
                            ^
                             {
/datasets/git/builtin/branch.c:340:57: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static const char *quote_literal_for_format(const char *s)
                                                        ^
/datasets/git/builtin/branch.c:340:45: note: inferred assignment of ID-dependent value from ID-dependent variable ep [altera-id-dependent-backward-branch]
static const char *quote_literal_for_format(const char *s)
                                            ^
/datasets/git/builtin/branch.c:345:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*s) {
        ^
/datasets/git/builtin/branch.c:345:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 's' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (*s) {
               ^
/datasets/git/builtin/branch.c:346:15: warning: variable name 'ep' is too short, expected at least 3 characters [readability-identifier-length]
                const char *ep = strchrnul(s, '%');
                            ^
/datasets/git/builtin/branch.c:347:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (s < ep)
                           ^
                            {
/datasets/git/builtin/branch.c:375:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (filter->abbrev < 0)
                                       ^
                                        {
/datasets/git/builtin/branch.c:377:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!filter->abbrev)
                                         ^
                                          {
/datasets/git/builtin/branch.c:379:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/branch.c:394:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/branch.c:421:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/branch.c:421:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/branch.c:434:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (filter->kind != FILTER_REFS_REMOTES)
                                                ^
                                                 {
/datasets/git/builtin/branch.c:437:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&array, 0, sizeof(array));
        ^~~~~~
/datasets/git/builtin/branch.c:437:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&array, 0, sizeof(array));
        ^~~~~~
/datasets/git/builtin/branch.c:441:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (filter->verbose)
                            ^
                             {
/datasets/git/builtin/branch.c:442:36: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                maxwidth = calc_maxwidth(&array, strlen(remote_prefix));
                                                 ^
/datasets/git/builtin/branch.c:444:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!format->format)
                            ^
                             {
/datasets/git/builtin/branch.c:448:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (verify_ref_format(format))
                                      ^
                                       {
/datasets/git/builtin/branch.c:453:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < array.nr; i++) {
        ^
/datasets/git/builtin/branch.c:456:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (format_ref_array_item(array.items[i], format, &out, &err))
                                                                              ^
                                                                               {
/datasets/git/builtin/branch.c:463:4: warning: the value returned by this function should be used [cert-err33-c]
                        fwrite(out.buf, 1, out.len, stdout);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/branch.c:463:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/branch.c:476:6: warning: variable 'flags' is not initialized [cppcoreguidelines-init-variables]
        int flags;
            ^
                  = 0
/datasets/git/builtin/branch.c:478:14: warning: variable 'shortname' is not initialized [cppcoreguidelines-init-variables]
        const char *shortname;
                    ^
                              = NULL
/datasets/git/builtin/branch.c:479:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!refname)
                     ^
                      {
/datasets/git/builtin/branch.c:481:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        else if (!(flags & REF_ISSYMREF))
                   ^~~~~
/datasets/git/builtin/branch.c:481:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!(flags & REF_ISSYMREF))
                                         ^
                                          {
/datasets/git/builtin/branch.c:483:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (skip_prefix(refname, "refs/heads/", &shortname))
                                                                 ^
                                                                  {
/datasets/git/builtin/branch.c:485:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/branch.c:492:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/branch.c:492:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/branch.c:494:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; worktrees[i]; i++) {
        ^
/datasets/git/builtin/branch.c:495:20: warning: variable name 'wt' is too short, expected at least 3 characters [readability-identifier-length]
                struct worktree *wt = worktrees[i];
                                 ^
/datasets/git/builtin/branch.c:497:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!wt->is_detached)
                                     ^
                                      {
/datasets/git/builtin/branch.c:500:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_worktree_being_rebased(wt, target))
                                                          ^
                                                           {
/datasets/git/builtin/branch.c:504:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_worktree_being_bisected(wt, target))
                                                           ^
                                                            {
/datasets/git/builtin/branch.c:512:13: warning: function 'copy_or_rename_branch' has cognitive complexity of 32 (threshold 25) [readability-function-cognitive-complexity]
static void copy_or_rename_branch(const char *oldname, const char *newname, int copy, int force)
            ^
/datasets/git/builtin/branch.c:520:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (strbuf_check_branch_ref(&oldref, oldname)) {
        ^
/datasets/git/builtin/branch.c:525:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ref_exists(oldref.buf))
                ^
/datasets/git/builtin/branch.c:527:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/branch.c:531:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((copy || strcmp(head, oldname)) && !ref_exists(oldref.buf)) {
        ^
/datasets/git/builtin/branch.c:531:38: note: +1
        if ((copy || strcmp(head, oldname)) && !ref_exists(oldref.buf)) {
                                            ^
/datasets/git/builtin/branch.c:531:12: note: +1
        if ((copy || strcmp(head, oldname)) && !ref_exists(oldref.buf)) {
                  ^
/datasets/git/builtin/branch.c:532:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (copy && !strcmp(head, oldname))
                ^
/datasets/git/builtin/branch.c:532:12: note: +1
                if (copy && !strcmp(head, oldname))
                         ^
/datasets/git/builtin/branch.c:534:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/branch.c:542:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(oldname, newname))
        ^
/datasets/git/builtin/branch.c:544:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/builtin/branch.c:549:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!skip_prefix(oldref.buf, "refs/heads/", &interpreted_oldname) ||
        ^
/datasets/git/builtin/branch.c:549:68: note: +1
        if (!skip_prefix(oldref.buf, "refs/heads/", &interpreted_oldname) ||
                                                                          ^
/datasets/git/builtin/branch.c:554:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (copy)
        ^
/datasets/git/builtin/branch.c:557:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/builtin/branch.c:561:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!copy &&
        ^
/datasets/git/builtin/branch.c:562:66: note: +1
            (!head || strcmp(oldname, head) || !is_null_oid(&head_oid)) &&
                                                                        ^
/datasets/git/builtin/branch.c:562:38: note: +1
            (!head || strcmp(oldname, head) || !is_null_oid(&head_oid)) &&
                                            ^
/datasets/git/builtin/branch.c:565:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (copy && copy_existing_ref(oldref.buf, newref.buf, logmsg.buf))
        ^
/datasets/git/builtin/branch.c:565:11: note: +1
        if (copy && copy_existing_ref(oldref.buf, newref.buf, logmsg.buf))
                 ^
/datasets/git/builtin/branch.c:568:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (recovery) {
        ^
/datasets/git/builtin/branch.c:569:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (copy)
                ^
/datasets/git/builtin/branch.c:572:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/branch.c:577:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!copy &&
        ^
/datasets/git/builtin/branch.c:577:12: note: +1
        if (!copy &&
                  ^
/datasets/git/builtin/branch.c:587:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!copy && git_config_rename_section(oldsection.buf, newsection.buf) < 0)
        ^
/datasets/git/builtin/branch.c:587:12: note: +1
        if (!copy && git_config_rename_section(oldsection.buf, newsection.buf) < 0)
                  ^
/datasets/git/builtin/branch.c:589:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (copy && strcmp(oldname, newname) && git_config_copy_section(oldsection.buf, newsection.buf) < 0)
        ^
/datasets/git/builtin/branch.c:589:39: note: +1
        if (copy && strcmp(oldname, newname) && git_config_copy_section(oldsection.buf, newsection.buf) < 0)
                                             ^
/datasets/git/builtin/branch.c:512:77: warning: 2 adjacent parameters of 'copy_or_rename_branch' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void copy_or_rename_branch(const char *oldname, const char *newname, int copy, int force)
                                                                            ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/branch.c:512:81: note: the first parameter in the range is 'copy'
static void copy_or_rename_branch(const char *oldname, const char *newname, int copy, int force)
                                                                                ^~~~
/datasets/git/builtin/branch.c:512:91: note: the last parameter in the range is 'force'
static void copy_or_rename_branch(const char *oldname, const char *newname, int copy, int force)
                                                                                          ^~~~~
/datasets/git/builtin/branch.c:514:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct strbuf oldref = STRBUF_INIT, newref = STRBUF_INIT, logmsg = STRBUF_INIT;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/branch.c:515:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct strbuf oldsection = STRBUF_INIT, newsection = STRBUF_INIT;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/branch.c:525:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ref_exists(oldref.buf))
                                           ^
                                            {
/datasets/git/builtin/branch.c:527:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/branch.c:531:15: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if ((copy || strcmp(head, oldname)) && !ref_exists(oldref.buf)) {
                     ^
                                           != 0
/datasets/git/builtin/branch.c:532:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (copy && !strcmp(head, oldname))
                                                   ^
                                                    {
/datasets/git/builtin/branch.c:534:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/branch.c:542:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(oldname, newname))
                                      ^
                                       {
/datasets/git/builtin/branch.c:544:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/branch.c:554:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (copy)
                 ^
                  {
/datasets/git/builtin/branch.c:557:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/branch.c:562:16: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
            (!head || strcmp(oldname, head) || !is_null_oid(&head_oid)) &&
                      ^
                                            != 0
/datasets/git/builtin/branch.c:563:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            rename_ref(oldref.buf, newref.buf, logmsg.buf))
                                                           ^
                                                            {
/datasets/git/builtin/branch.c:565:68: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (copy && copy_existing_ref(oldref.buf, newref.buf, logmsg.buf))
                                                                          ^
                                                                           {
/datasets/git/builtin/branch.c:569:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (copy)
                         ^
                          {
/datasets/git/builtin/branch.c:572:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/branch.c:578:76: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            replace_each_worktree_head_symref(oldref.buf, newref.buf, logmsg.buf))
                                                                                  ^
                                                                                   {
/datasets/git/builtin/branch.c:587:77: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!copy && git_config_rename_section(oldsection.buf, newsection.buf) < 0)
                                                                                   ^
                                                                                    {
/datasets/git/builtin/branch.c:589:14: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (copy && strcmp(oldname, newname) && git_config_copy_section(oldsection.buf, newsection.buf) < 0)
                    ^
                                             != 0
/datasets/git/builtin/branch.c:589:102: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (copy && strcmp(oldname, newname) && git_config_copy_section(oldsection.buf, newsection.buf) < 0)
                                                                                                            ^
                                                                                                             {
/datasets/git/builtin/branch.c:595:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(edit_description, "EDIT_DESCRIPTION")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/builtin/branch.c:599:6: warning: variable 'exists' is not initialized [cppcoreguidelines-init-variables]
        int exists;
            ^
                   = 0
/datasets/git/builtin/branch.c:604:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!buf.len || buf.buf[buf.len-1] != '\n')
                                                   ^
                                                    {
/datasets/git/builtin/branch.c:620:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (buf.len || exists)
                              ^
                               {
/datasets/git/builtin/branch.c:628:5: warning: function 'cmd_branch' has cognitive complexity of 103 (threshold 25) [readability-function-cognitive-complexity]
int cmd_branch(int argc, const char **argv, const char *prefix)
    ^
/datasets/git/builtin/branch.c:699:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (argc == 2 && !strcmp(argv[1], "-h"))
        ^
/datasets/git/builtin/branch.c:699:16: note: +1
        if (argc == 2 && !strcmp(argv[1], "-h"))
                      ^
/datasets/git/builtin/branch.c:707:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!head)
        ^
/datasets/git/builtin/branch.c:709:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(head, "HEAD"))
        ^
/datasets/git/builtin/branch.c:711:7: note: +1, nesting level increased to 1
        else if (!skip_prefix(head, "refs/heads/", &head))
             ^
/datasets/git/builtin/branch.c:717:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!delete && !rename && !copy && !edit_description && !new_upstream &&
        ^
/datasets/git/builtin/branch.c:718:39: note: +1
            !show_current && !unset_upstream && argc == 0)
                                             ^
/datasets/git/builtin/branch.c:721:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (filter.with_commit || filter.no_commit ||
        ^
/datasets/git/builtin/branch.c:722:55: note: +1
            filter.reachable_from || filter.unreachable_from || filter.points_at.nr)
                                                             ^
/datasets/git/builtin/branch.c:728:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (noncreate_actions > 1)
        ^
/datasets/git/builtin/branch.c:731:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (recurse_submodules_explicit) {
        ^
/datasets/git/builtin/branch.c:732:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!submodule_propagate_branches)
                ^
/datasets/git/builtin/branch.c:734:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (noncreate_actions)
                ^
/datasets/git/builtin/branch.c:739:55: note: +1
                (recurse_submodules || recurse_submodules_explicit) &&
                                                                    ^
/datasets/git/builtin/branch.c:739:23: note: +1
                (recurse_submodules || recurse_submodules_explicit) &&
                                    ^
/datasets/git/builtin/branch.c:742:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (filter.abbrev == -1)
        ^
/datasets/git/builtin/branch.c:747:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (filter.verbose) {
        ^
/datasets/git/builtin/branch.c:748:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (explicitly_enable_column(colopts))
                ^
/datasets/git/builtin/branch.c:748:7: note: +1
                if (explicitly_enable_column(colopts))
                    ^
./column.h:20:24: note: expanded from macro 'explicitly_enable_column'
        (((c) & COL_PARSEOPT) && column_active(c))
                              ^
/datasets/git/builtin/branch.c:753:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (force) {
        ^
/datasets/git/builtin/branch.c:759:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (list)
        ^
/datasets/git/builtin/branch.c:762:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (delete) {
        ^
/datasets/git/builtin/branch.c:763:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!argc)
                ^
/datasets/git/builtin/branch.c:766:9: note: +1, nesting level increased to 1
        } else if (show_current) {
               ^
/datasets/git/builtin/branch.c:769:9: note: +1, nesting level increased to 1
        } else if (list) {
               ^
/datasets/git/builtin/branch.c:771:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((filter.kind & FILTER_REFS_BRANCHES) && filter.detached)
                ^
/datasets/git/builtin/branch.c:771:44: note: +1
                if ((filter.kind & FILTER_REFS_BRANCHES) && filter.detached)
                                                         ^
/datasets/git/builtin/branch.c:790:9: note: +1, nesting level increased to 1
        } else if (edit_description) {
               ^
/datasets/git/builtin/branch.c:796:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!argc) {
                ^
/datasets/git/builtin/branch.c:797:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (filter.detached)
                        ^
/datasets/git/builtin/branch.c:800:10: note: +1, nesting level increased to 2
                } else if (argc == 1) {
                       ^
/datasets/git/builtin/branch.c:803:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/branch.c:808:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!ref_exists(branch_ref.buf))
                ^
/datasets/git/builtin/branch.c:810:10: note: +3, including nesting penalty of 2, nesting level increased to 3
                              ? _("No commit on branch '%s' yet.")
                              ^
/datasets/git/builtin/branch.c:809:17: note: +1
                        error((!argc || !strcmp(head, branch_name))
                                     ^
/datasets/git/builtin/branch.c:813:8: note: +1, nesting level increased to 2
                else if (!edit_branch_description(branch_name))
                     ^
/datasets/git/builtin/branch.c:820:9: note: +1, nesting level increased to 1
        } else if (copy || rename) {
               ^
/datasets/git/builtin/branch.c:820:18: note: +1
        } else if (copy || rename) {
                        ^
/datasets/git/builtin/branch.c:821:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!argc)
                ^
/datasets/git/builtin/branch.c:823:8: note: +1, nesting level increased to 2
                else if ((argc == 1) && filter.detached)
                     ^
/datasets/git/builtin/branch.c:823:24: note: +1
                else if ((argc == 1) && filter.detached)
                                     ^
/datasets/git/builtin/branch.c:824:12: note: +3, including nesting penalty of 2, nesting level increased to 3
                        die(copy? _("cannot copy the current branch while not on any.")
                                ^
/datasets/git/builtin/branch.c:826:8: note: +1, nesting level increased to 2
                else if (argc == 1)
                     ^
/datasets/git/builtin/branch.c:828:8: note: +1, nesting level increased to 2
                else if (argc == 2)
                     ^
/datasets/git/builtin/branch.c:830:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/branch.c:831:12: note: +3, including nesting penalty of 2, nesting level increased to 3
                        die(copy? _("too many branches for a copy operation")
                                ^
/datasets/git/builtin/branch.c:833:9: note: +1, nesting level increased to 1
        } else if (new_upstream) {
               ^
/datasets/git/builtin/branch.c:837:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!argc)
                ^
/datasets/git/builtin/branch.c:839:8: note: +1, nesting level increased to 2
                else if (argc == 1) {
                     ^
/datasets/git/builtin/branch.c:842:5: note: +1, nesting level increased to 2
                } else
                  ^
/datasets/git/builtin/branch.c:845:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!branch) {
                ^
/datasets/git/builtin/branch.c:846:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!argc || !strcmp(argv[0], "HEAD"))
                        ^
/datasets/git/builtin/branch.c:846:14: note: +1
                        if (!argc || !strcmp(argv[0], "HEAD"))
                                  ^
/datasets/git/builtin/branch.c:853:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!ref_exists(branch->refname)) {
                ^
/datasets/git/builtin/branch.c:854:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!argc || !strcmp(head, branch->name))
                        ^
/datasets/git/builtin/branch.c:854:14: note: +1
                        if (!argc || !strcmp(head, branch->name))
                                  ^
/datasets/git/builtin/branch.c:863:9: note: +1, nesting level increased to 1
        } else if (unset_upstream) {
               ^
/datasets/git/builtin/branch.c:867:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!argc)
                ^
/datasets/git/builtin/branch.c:869:8: note: +1, nesting level increased to 2
                else if (argc == 1) {
                     ^
/datasets/git/builtin/branch.c:872:5: note: +1, nesting level increased to 2
                } else
                  ^
/datasets/git/builtin/branch.c:875:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!branch) {
                ^
/datasets/git/builtin/branch.c:876:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!argc || !strcmp(argv[0], "HEAD"))
                        ^
/datasets/git/builtin/branch.c:876:14: note: +1
                        if (!argc || !strcmp(argv[0], "HEAD"))
                                  ^
/datasets/git/builtin/branch.c:882:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!branch_has_merge_config(branch))
                ^
/datasets/git/builtin/branch.c:892:9: note: +1, nesting level increased to 1
        } else if (!noncreate_actions && argc > 0 && argc <= 2) {
               ^
/datasets/git/builtin/branch.c:892:44: note: +1
        } else if (!noncreate_actions && argc > 0 && argc <= 2) {
                                                  ^
/datasets/git/builtin/branch.c:894:38: note: +2, including nesting penalty of 1, nesting level increased to 2
                const char *start_name = argc == 2 ? argv[1] : head;
                                                   ^
/datasets/git/builtin/branch.c:896:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (filter.kind != FILTER_REFS_BRANCHES)
                ^
/datasets/git/builtin/branch.c:900:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (track == BRANCH_TRACK_OVERRIDE)
                ^
/datasets/git/builtin/branch.c:903:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (recurse_submodules) {
                ^
/datasets/git/builtin/branch.c:911:4: note: +1, nesting level increased to 1
        } else
          ^
/datasets/git/builtin/branch.c:631:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int delete = 0, rename = 0, copy = 0, list = 0,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/branch.c:636:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int reflog = 0, quiet = 0, icase = 0, force = 0,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/branch.c:638:20: warning: variable 'track' is not initialized [cppcoreguidelines-init-variables]
        enum branch_track track;
                          ^
/datasets/git/builtin/branch.c:640:29: warning: variable 'sorting' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
        static struct ref_sorting *sorting;
                                   ^
/datasets/git/builtin/branch.c:646:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__VERBOSE(&filter.verbose,
                ^
/datasets/git/./parse-options.h:359:31: note: expanded from macro 'OPT__VERBOSE'
#define OPT__VERBOSE(var, h)  OPT_COUNTUP('v', "verbose", (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/branch.c:648:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__QUIET(&quiet, N_("suppress informational messages")),
                ^
/datasets/git/./parse-options.h:360:31: note: expanded from macro 'OPT__QUIET'
#define OPT__QUIET(var, h)    OPT_COUNTUP('q', "quiet",   (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/branch.c:653:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT_F(0, "set-upstream", &track, N_("do not use"),
                ^
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/branch.c:656:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "unset-upstream", &unset_upstream, N_("unset the upstream info")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/branch.c:658:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT('r', "remotes",     &filter.kind, N_("act on remote-tracking branches"),
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/branch.c:660:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_CONTAINS(&filter.with_commit, N_("print only branches that contain the commit")),
                ^
/datasets/git/./parse-options.h:385:28: note: expanded from macro 'OPT_CONTAINS'
#define OPT_CONTAINS(v, h) _OPT_CONTAINS_OR_WITH("contains", v, h, PARSE_OPT_NONEG)
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:382:4: note: expanded from macro '_OPT_CONTAINS_OR_WITH'
          PARSE_OPT_LASTARG_DEFAULT | flag, \
          ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/branch.c:661:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_NO_CONTAINS(&filter.no_commit, N_("print only branches that don't contain the commit")),
                ^
/datasets/git/./parse-options.h:386:31: note: expanded from macro 'OPT_NO_CONTAINS'
#define OPT_NO_CONTAINS(v, h) _OPT_CONTAINS_OR_WITH("no-contains", v, h, PARSE_OPT_NONEG)
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:382:4: note: expanded from macro '_OPT_CONTAINS_OR_WITH'
          PARSE_OPT_LASTARG_DEFAULT | flag, \
          ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/branch.c:662:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_WITH(&filter.with_commit, N_("print only branches that contain the commit")),
                ^
/datasets/git/./parse-options.h:387:24: note: expanded from macro 'OPT_WITH'
#define OPT_WITH(v, h) _OPT_CONTAINS_OR_WITH("with", v, h, PARSE_OPT_HIDDEN | PARSE_OPT_NONEG)
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:382:4: note: expanded from macro '_OPT_CONTAINS_OR_WITH'
          PARSE_OPT_LASTARG_DEFAULT | flag, \
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/branch.c:663:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_WITHOUT(&filter.no_commit, N_("print only branches that don't contain the commit")),
                ^
/datasets/git/./parse-options.h:388:27: note: expanded from macro 'OPT_WITHOUT'
#define OPT_WITHOUT(v, h) _OPT_CONTAINS_OR_WITH("without", v, h, PARSE_OPT_HIDDEN | PARSE_OPT_NONEG)
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:382:4: note: expanded from macro '_OPT_CONTAINS_OR_WITH'
          PARSE_OPT_LASTARG_DEFAULT | flag, \
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/branch.c:667:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT('a', "all", &filter.kind, N_("list both remote-tracking and local branches"),
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/branch.c:668:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        FILTER_REFS_REMOTES | FILTER_REFS_BRANCHES),
                        ^
/datasets/git/./ref-filter.h:18:36: note: expanded from macro 'FILTER_REFS_REMOTES'
#define FILTER_REFS_REMOTES        0x0008
                                   ^~~~~~
/datasets/git/./parse-options.h:182:63: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                                              ^
/datasets/git/./parse-options.h:166:43: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                                                             ^
/datasets/git/builtin/branch.c:669:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT('d', "delete", &delete, N_("delete fully merged branch"), 1),
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/branch.c:670:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT('D', NULL, &delete, N_("delete branch (even if not merged)"), 2),
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/branch.c:671:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT('m', "move", &rename, N_("move/rename a branch and its reflog"), 1),
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/branch.c:672:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT('M', NULL, &rename, N_("move/rename a branch, even if target exists"), 2),
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/branch.c:673:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT('c', "copy", &copy, N_("copy a branch and its reflog"), 1),
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/branch.c:674:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT('C', NULL, &copy, N_("copy a branch, even if target exists"), 2),
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/branch.c:675:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('l', "list", &list, N_("list branch names")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/branch.c:676:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "show-current", &show_current, N_("show current branch name")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/branch.c:677:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "create-reflog", &reflog, N_("create the branch's reflog")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/branch.c:678:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "edit-description", &edit_description,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/branch.c:680:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__FORCE(&force, N_("force creation, move/rename, deletion"), PARSE_OPT_NOCOMPLETE),
                ^
/datasets/git/./parse-options.h:367:31: note: expanded from macro 'OPT__FORCE'
#define OPT__FORCE(var, h, f) OPT_COUNTUP_F('f', "force",   (var), (h), (f))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/branch.c:681:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_MERGED(&filter, N_("print only branches that are merged")),
                ^
/datasets/git/./ref-filter.h:93:26: note: expanded from macro 'OPT_MERGED'
#define OPT_MERGED(f, h) _OPT_MERGED_NO_MERGED("merged", f, h)
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./ref-filter.h:90:4: note: expanded from macro '_OPT_MERGED_NO_MERGED'
          PARSE_OPT_LASTARG_DEFAULT | PARSE_OPT_NONEG, \
          ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/branch.c:682:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_NO_MERGED(&filter, N_("print only branches that are not merged")),
                ^
/datasets/git/./ref-filter.h:94:29: note: expanded from macro 'OPT_NO_MERGED'
#define OPT_NO_MERGED(f, h) _OPT_MERGED_NO_MERGED("no-merged", f, h)
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./ref-filter.h:90:4: note: expanded from macro '_OPT_MERGED_NO_MERGED'
          PARSE_OPT_LASTARG_DEFAULT | PARSE_OPT_NONEG, \
          ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/branch.c:687:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('i', "ignore-case", &icase, N_("sorting and filtering are case insensitive")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/branch.c:688:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "recurse-submodules", &recurse_submodules_explicit, N_("recurse through submodules")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/branch.c:695:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&filter, 0, sizeof(filter));
        ^~~~~~
/datasets/git/builtin/branch.c:695:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&filter, 0, sizeof(filter));
        ^~~~~~
/datasets/git/builtin/branch.c:699:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc == 2 && !strcmp(argv[1], "-h"))
                                                ^
                                                 {
/datasets/git/builtin/branch.c:707:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!head)
                  ^
                   {
/datasets/git/builtin/branch.c:709:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(head, "HEAD"))
                                  ^
                                   {
/datasets/git/builtin/branch.c:711:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!skip_prefix(head, "refs/heads/", &head))
                                                          ^
                                                           {
/datasets/git/builtin/branch.c:718:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !show_current && !unset_upstream && argc == 0)
                                                          ^
                                                           {
/datasets/git/builtin/branch.c:722:78: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            filter.reachable_from || filter.unreachable_from || filter.points_at.nr)
                                                                                    ^
                                                                                     {
/datasets/git/builtin/branch.c:728:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (noncreate_actions > 1)
                                  ^
                                   {
/datasets/git/builtin/branch.c:732:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!submodule_propagate_branches)
                                                  ^
                                                   {
/datasets/git/builtin/branch.c:734:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (noncreate_actions)
                                      ^
                                       {
/datasets/git/builtin/branch.c:742:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (filter.abbrev == -1)
                                ^
                                 {
/datasets/git/builtin/branch.c:748:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (explicitly_enable_column(colopts))
                    ^
/datasets/git/./column.h:20:4: note: expanded from macro 'explicitly_enable_column'
        (((c) & COL_PARSEOPT) && column_active(c))
          ^     ~~~~~~~~~~~~
/datasets/git/builtin/branch.c:748:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (explicitly_enable_column(colopts))
                                                      ^
                                                       {
/datasets/git/builtin/branch.c:759:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (list)
                 ^
                  {
/datasets/git/builtin/branch.c:763:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!argc)
                          ^
                           {
/datasets/git/builtin/branch.c:765:50: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                return delete_branches(argc, argv, delete > 1, filter.kind, quiet);
                                                               ^
/datasets/git/builtin/branch.c:766:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else if (show_current) {
          ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/branch.c:771:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((filter.kind & FILTER_REFS_BRANCHES) && filter.detached)
                     ^
/datasets/git/builtin/branch.c:771:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((filter.kind & FILTER_REFS_BRANCHES) && filter.detached)
                                                                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/branch.c:772:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        filter.kind |= FILTER_REFS_DETACHED_HEAD;
                        ^
/datasets/git/builtin/branch.c:791:15: warning: variable 'branch_name' is not initialized [cppcoreguidelines-init-variables]
                const char *branch_name;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/branch.c:797:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (filter.detached)
                                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/branch.c:801:37: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        strbuf_branchname(&buf, argv[0], INTERPRET_BRANCH_LOCAL);
                                                         ^
/datasets/git/./refs/../cache.h:1584:33: note: expanded from macro 'INTERPRET_BRANCH_LOCAL'
#define INTERPRET_BRANCH_LOCAL (1<<0)
                                ^
/datasets/git/builtin/branch.c:808:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ref_exists(branch_ref.buf))
                                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/branch.c:813:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!edit_branch_description(branch_name))
                                                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/branch.c:821:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!argc)
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/branch.c:823:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if ((argc == 1) && filter.detached)
                                                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/branch.c:826:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (argc == 1)
                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/branch.c:828:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (argc == 2)
                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/branch.c:830:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/branch.c:834:18: warning: variable 'branch' is not initialized [cppcoreguidelines-init-variables]
                struct branch *branch;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/branch.c:837:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!argc)
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/branch.c:840:37: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        strbuf_branchname(&buf, argv[0], INTERPRET_BRANCH_LOCAL);
                                                         ^
/datasets/git/./refs/../cache.h:1584:33: note: expanded from macro 'INTERPRET_BRANCH_LOCAL'
#define INTERPRET_BRANCH_LOCAL (1<<0)
                                ^
/datasets/git/builtin/branch.c:842:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/branch.c:846:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!argc || !strcmp(argv[0], "HEAD"))
                                                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/branch.c:854:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!argc || !strcmp(head, branch->name))
                                                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/branch.c:864:18: warning: variable 'branch' is not initialized [cppcoreguidelines-init-variables]
                struct branch *branch;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/branch.c:867:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!argc)
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/branch.c:870:37: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        strbuf_branchname(&buf, argv[0], INTERPRET_BRANCH_LOCAL);
                                                         ^
/datasets/git/./refs/../cache.h:1584:33: note: expanded from macro 'INTERPRET_BRANCH_LOCAL'
#define INTERPRET_BRANCH_LOCAL (1<<0)
                                ^
/datasets/git/builtin/branch.c:872:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/branch.c:876:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!argc || !strcmp(argv[0], "HEAD"))
                                                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/branch.c:882:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!branch_has_merge_config(branch))
                                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/branch.c:887:48: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                git_config_set_multivar(buf.buf, NULL, NULL, CONFIG_FLAGS_MULTI_REPLACE);
                                                             ^
/datasets/git/./config.h:294:37: note: expanded from macro 'CONFIG_FLAGS_MULTI_REPLACE'
#define CONFIG_FLAGS_MULTI_REPLACE (1 << 0)
                                    ^
/datasets/git/builtin/branch.c:890:48: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                git_config_set_multivar(buf.buf, NULL, NULL, CONFIG_FLAGS_MULTI_REPLACE);
                                                             ^
/datasets/git/./config.h:294:37: note: expanded from macro 'CONFIG_FLAGS_MULTI_REPLACE'
#define CONFIG_FLAGS_MULTI_REPLACE (1 << 0)
                                    ^
/datasets/git/builtin/branch.c:896:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (filter.kind != FILTER_REFS_BRANCHES)
                                                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/branch.c:900:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (track == BRANCH_TRACK_OVERRIDE)
                                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/branch.c:911:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/bugreport.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "parse-options.h"
^        ~~~~~~~~~~~~~~~~~
         "compat/compiler.h"
/datasets/git/builtin/bugreport.c:22:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (uname(&uname_info))
                               ^
                                {
/datasets/git/builtin/bugreport.c:24:8: warning: function is not thread safe [concurrency-mt-unsafe]
                            strerror(errno),
                            ^
/datasets/git/builtin/bugreport.c:26:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/bugreport.c:39:10: warning: function is not thread safe [concurrency-mt-unsafe]
        shell = getenv("SHELL");
                ^
/datasets/git/builtin/bugreport.c:46:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        const char **p;
        ^
/datasets/git/builtin/bugreport.c:46:15: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        const char **p;
                     ^
                       = NULL
/datasets/git/builtin/bugreport.c:46:15: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/bugreport.c:54:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = hook_name_list; *p; p++) {
        ^
/datasets/git/builtin/bugreport.c:54:27: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = hook_name_list; *p; p++) {
                                 ^
/datasets/git/builtin/bugreport.c:57:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (hook_exists(hook))
                                      ^
                                       {
/datasets/git/builtin/bugreport.c:102:12: warning: variable name 'tm' is too short, expected at least 3 characters [readability-identifier-length]
        struct tm tm;
                  ^
/datasets/git/builtin/bugreport.c:107:8: warning: variable 'prefixed_filename' is not initialized [cppcoreguidelines-init-variables]
        char *prefixed_filename;
              ^
                                = NULL
/datasets/git/builtin/bugreport.c:108:9: warning: variable 'output_path_len' is not initialized [cppcoreguidelines-init-variables]
        size_t output_path_len;
               ^
                               = 0
/datasets/git/builtin/bugreport.c:121:2: warning: Value stored to 'argc' is never read [clang-analyzer-deadcode.DeadStores]
        argc = parse_options(argc, argv, prefix, bugreport_options,
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/bugreport.c:121:2: note: Value stored to 'argc' is never read
        argc = parse_options(argc, argv, prefix, bugreport_options,
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/bugreport.c:152:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (create_diagnostics_archive(&zip_path, diagnose))
                                                                    ^
                                                                     {
/datasets/git/builtin/bugreport.c:168:63: warning: 0666 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        report = xopen(report_path.buf, O_CREAT | O_EXCL | O_WRONLY, 0666);
                                                                     ^
/datasets/git/builtin/bugreport.c:170:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_in_full(report, buffer.buf, buffer.len) < 0)
                                                              ^
                                                               {
/datasets/git/builtin/bugreport.c:179:77: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(prefix && skip_prefix(report_path.buf, prefix, &user_relative_path)))
                                                                                   ^
                                                                                    {
/datasets/git/builtin/bugreport.c:181:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(stderr, _("Created new report at '%s'.\n"),
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/bugreport.c:181:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/bugreport.c:185:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        UNLEAK(buffer);
        ^
/datasets/git/./git-compat-util.h:1544:21: note: expanded from macro 'UNLEAK'
#define UNLEAK(var) do {} while (0)
                    ^
/datasets/git/builtin/bugreport.c:186:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        UNLEAK(report_path);
        ^
/datasets/git/./git-compat-util.h:1544:21: note: expanded from macro 'UNLEAK'
#define UNLEAK(var) do {} while (0)
                    ^
/datasets/git/builtin/bundle.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "strvec.h"
^        ~~~~~~~~~~
         "bundle.h"
/datasets/git/builtin/bundle.c:25:2: warning: suspicious string literal, probably missing a comma [bugprone-suspicious-missing-comma]
        BUILTIN_BUNDLE_CREATE_USAGE,
        ^
/datasets/git/builtin/bundle.c:15:5: note: expanded from macro 'BUILTIN_BUNDLE_CREATE_USAGE'
        N_("git bundle create [-q | --quiet | --progress | --all-progress] [--all-progress-implied]\n" \
           ^
/datasets/git/builtin/bundle.c:58:6: warning: variable 'newargc' is not initialized [cppcoreguidelines-init-variables]
        int newargc;
            ^
                    = 0
/datasets/git/builtin/bundle.c:61:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc < 1)
                     ^
                      {
/datasets/git/builtin/bundle.c:72:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/builtin/bundle.c:74:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT('q', "quiet", &progress,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/bundle.c:76:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT(0, "progress", &progress,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/bundle.c:78:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT(0, "all-progress", &progress,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/bundle.c:80:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "all-progress-implied",
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/bundle.c:87:8: warning: variable 'bundle_file' is not initialized [cppcoreguidelines-init-variables]
        char *bundle_file;
              ^
                          = NULL
/datasets/git/builtin/bundle.c:94:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (progress == 0)
                          ^
                           {
/datasets/git/builtin/bundle.c:96:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (progress == 1)
                               ^
                                {
/datasets/git/builtin/bundle.c:98:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (progress == 2)
                               ^
                                {
/datasets/git/builtin/bundle.c:100:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (progress && all_progress_implied)
                                             ^
                                              {
/datasets/git/builtin/bundle.c:103:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!startup_info->have_repository)
                                           ^
                                            {
/datasets/git/builtin/bundle.c:115:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/builtin/bundle.c:117:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('q', "quiet", &quiet,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/bundle.c:121:8: warning: variable 'bundle_file' is not initialized [cppcoreguidelines-init-variables]
        char *bundle_file;
              ^
                          = NULL
/datasets/git/builtin/bundle.c:123:2: warning: Value stored to 'argc' is never read [clang-analyzer-deadcode.DeadStores]
        argc = parse_options_cmd_bundle(argc, argv, prefix,
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/bundle.c:123:2: note: Value stored to 'argc' is never read
        argc = parse_options_cmd_bundle(argc, argv, prefix,
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/bundle.c:127:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if ((bundle_fd = read_bundle_header(bundle_file, &header)) < 0) {
             ^
/datasets/git/builtin/bundle.c:127:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/builtin/bundle.c:127:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/builtin/bundle.c:138:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(stderr, _("%s is okay\n"), bundle_file);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/bundle.c:138:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/bundle.c:149:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/builtin/bundle.c:153:8: warning: variable 'bundle_file' is not initialized [cppcoreguidelines-init-variables]
        char *bundle_file;
              ^
                          = NULL
/datasets/git/builtin/bundle.c:159:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if ((bundle_fd = read_bundle_header(bundle_file, &header)) < 0) {
             ^
/datasets/git/builtin/bundle.c:159:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/builtin/bundle.c:159:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/builtin/bundle.c:174:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/builtin/bundle.c:178:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "progress", &progress,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/bundle.c:182:8: warning: variable 'bundle_file' is not initialized [cppcoreguidelines-init-variables]
        char *bundle_file;
              ^
                          = NULL
/datasets/git/builtin/bundle.c:189:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if ((bundle_fd = read_bundle_header(bundle_file, &header)) < 0) {
             ^
/datasets/git/builtin/bundle.c:189:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/builtin/bundle.c:189:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/builtin/bundle.c:193:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!startup_info->have_repository)
                                           ^
                                            {
/datasets/git/builtin/bundle.c:195:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (progress)
                     ^
                      {
/datasets/git/builtin/bundle.c:209:27: warning: variable name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
        parse_opt_subcommand_fn *fn = NULL;
                                 ^
/datasets/git/builtin/cat-file.c:8:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "builtin.h"
/datasets/git/builtin/cat-file.c:27:8: warning: accessing fields in struct 'batch_options' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct batch_options {
       ^
/datasets/git/builtin/cat-file.c:27:8: note: use "__attribute__((aligned(64)))" to align struct 'batch_options' to 64 bytes
/datasets/git/builtin/cat-file.c:39:20: warning: variable 'force_path' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *force_path;
                   ^
/datasets/git/builtin/cat-file.c:41:27: warning: variable 'mailmap' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct string_list mailmap = STRING_LIST_INIT_NODUP;
                          ^
/datasets/git/builtin/cat-file.c:42:12: warning: variable 'use_mailmap' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int use_mailmap;
           ^
/datasets/git/builtin/cat-file.c:44:49: warning: all parameters should be named in a function [hicpp-named-parameter,readability-named-parameter]
static char *replace_idents_using_mailmap(char *, size_t *);
                                                ^
                                                 /*object_buf*/  /*size*/
/datasets/git/builtin/cat-file.c:48:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/cat-file.c:61:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/builtin/cat-file.c:64:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!*buf)
                  ^
                   {
/datasets/git/builtin/cat-file.c:84:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (stream_blob_to_fd(1, oid, NULL, 0))
                                               ^
                                                {
/datasets/git/builtin/cat-file.c:89:12: warning: function 'cat_one_file' has cognitive complexity of 51 (threshold 25) [readability-function-cognitive-complexity]
static int cat_one_file(int opt, const char *exp_type, const char *obj_name,
           ^
/datasets/git/builtin/cat-file.c:103:33: note: +1
        const int opt_cw = (opt == 'c' || opt == 'w');
                                       ^
/datasets/git/builtin/cat-file.c:104:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!path && opt_cw)
        ^
/datasets/git/builtin/cat-file.c:104:12: note: +1
        if (!path && opt_cw)
                  ^
/datasets/git/builtin/cat-file.c:107:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (unknown_type)
        ^
/datasets/git/builtin/cat-file.c:110:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (get_oid_with_context(the_repository, obj_name, get_oid_flags, &oid,
        ^
/datasets/git/builtin/cat-file.c:114:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!path)
        ^
/datasets/git/builtin/cat-file.c:116:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (obj_context.mode == S_IFINVALID)
        ^
/datasets/git/builtin/cat-file.c:120:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        switch (opt) {
        ^
/datasets/git/builtin/cat-file.c:123:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (oid_object_info_extended(the_repository, &oid, &oi, flags) < 0)
                ^
/datasets/git/builtin/cat-file.c:125:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (sb.len) {
                ^
/datasets/git/builtin/cat-file.c:129:4: note: +1
                        goto cleanup;
                        ^
/datasets/git/builtin/cat-file.c:135:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (oid_object_info_extended(the_repository, &oid, &oi, flags) < 0)
                ^
/datasets/git/builtin/cat-file.c:139:3: note: +1
                goto cleanup;
                ^
/datasets/git/builtin/cat-file.c:146:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (filter_object(path, obj_context.mode,
                ^
/datasets/git/builtin/cat-file.c:149:4: note: +1
                        goto cleanup;
                        ^
/datasets/git/builtin/cat-file.c:154:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (textconv_object(the_repository, path, obj_context.mode,
                ^
/datasets/git/builtin/cat-file.c:161:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (type < 0)
                ^
/datasets/git/builtin/cat-file.c:165:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (type == OBJ_TREE) {
                ^
/datasets/git/builtin/cat-file.c:170:4: note: +1
                        goto cleanup;
                        ^
/datasets/git/builtin/cat-file.c:173:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (type == OBJ_BLOB) {
                ^
/datasets/git/builtin/cat-file.c:175:4: note: +1
                        goto cleanup;
                        ^
/datasets/git/builtin/cat-file.c:178:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!buf)
                ^
/datasets/git/builtin/cat-file.c:181:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (use_mailmap) {
                ^
/datasets/git/builtin/cat-file.c:194:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (exp_type_id == OBJ_BLOB) {
                ^
/datasets/git/builtin/cat-file.c:196:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (oid_object_info(the_repository, &oid, NULL) == OBJ_TAG) {
                        ^
/datasets/git/builtin/cat-file.c:200:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!skip_prefix(buffer, "object ", &target) ||
                                ^
/datasets/git/builtin/cat-file.c:200:50: note: +1
                                if (!skip_prefix(buffer, "object ", &target) ||
                                                                             ^
/datasets/git/builtin/cat-file.c:204:6: note: +1, nesting level increased to 3
                        } else
                          ^
/datasets/git/builtin/cat-file.c:207:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (oid_object_info(the_repository, &blob_oid, NULL) == OBJ_BLOB) {
                        ^
/datasets/git/builtin/cat-file.c:209:5: note: +1
                                goto cleanup;
                                ^
/datasets/git/builtin/cat-file.c:221:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (use_mailmap) {
                ^
/datasets/git/builtin/cat-file.c:232:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!buf)
        ^
/datasets/git/builtin/cat-file.c:89:34: warning: 2 adjacent parameters of 'cat_one_file' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int cat_one_file(int opt, const char *exp_type, const char *obj_name,
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/cat-file.c:89:46: note: the first parameter in the range is 'exp_type'
static int cat_one_file(int opt, const char *exp_type, const char *obj_name,
                                             ^~~~~~~~
/datasets/git/builtin/cat-file.c:89:68: note: the last parameter in the range is 'obj_name'
static int cat_one_file(int opt, const char *exp_type, const char *obj_name,
                                                                   ^~~~~~~~
/datasets/git/builtin/cat-file.c:92:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/builtin/cat-file.c:94:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/builtin/cat-file.c:95:8: warning: variable 'buf' is not initialized [cppcoreguidelines-init-variables]
        char *buf;
              ^
                  = NULL
/datasets/git/builtin/cat-file.c:96:16: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size;
                      ^
                           = 0
/datasets/git/builtin/cat-file.c:98:21: warning: variable name 'oi' is too short, expected at least 3 characters [readability-identifier-length]
        struct object_info oi = OBJECT_INFO_INIT;
                           ^
/datasets/git/builtin/cat-file.c:99:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/cat-file.c:101:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned get_oid_flags = GET_OID_RECORD_PATH | GET_OID_ONLY_TO_DIE;
                                 ^
/datasets/git/./refs/../cache.h:1444:33: note: expanded from macro 'GET_OID_RECORD_PATH'
#define GET_OID_RECORD_PATH     0200
                                ^~~~
/datasets/git/builtin/cat-file.c:104:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!path && opt_cw)
                            ^
                             {
/datasets/git/builtin/cat-file.c:105:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                get_oid_flags |= GET_OID_REQUIRE_PATH;
                ^
/datasets/git/builtin/cat-file.c:107:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unknown_type)
                         ^
                          {
/datasets/git/builtin/cat-file.c:108:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags |= OBJECT_INFO_ALLOW_UNKNOWN_TYPE;
                ^
/datasets/git/builtin/cat-file.c:111:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                 &obj_context))
                                               ^
                                                {
/datasets/git/builtin/cat-file.c:114:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!path)
                  ^
                   {
/datasets/git/builtin/cat-file.c:116:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (obj_context.mode == S_IFINVALID)
                                            ^
                                             {
/datasets/git/builtin/cat-file.c:117:22: warning: 0100644 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                obj_context.mode = 0100644;
                                   ^
/datasets/git/builtin/cat-file.c:123:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (oid_object_info_extended(the_repository, &oid, &oi, flags) < 0)
                                                                                   ^
                                                                                    {
/datasets/git/builtin/cat-file.c:135:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (oid_object_info_extended(the_repository, &oid, &oi, flags) < 0)
                                                                                   ^
                                                                                    {
/datasets/git/builtin/cat-file.c:155:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                    &oid, 1, &buf, &size))
                                                          ^
                                                           {
/datasets/git/builtin/cat-file.c:161:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (type < 0)
                             ^
                              {
/datasets/git/builtin/cat-file.c:178:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!buf)
                         ^
                          {
/datasets/git/builtin/cat-file.c:182:11: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
                        size_t s = size;
                               ^
/datasets/git/builtin/cat-file.c:199:17: warning: variable 'target' is not initialized [cppcoreguidelines-init-variables]
                                const char *target;
                                            ^
                                                   = NULL
/datasets/git/builtin/cat-file.c:201:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                    get_oid_hex(target, &blob_oid))
                                                                   ^
                                                                    {
/datasets/git/builtin/cat-file.c:204:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        } else
                              ^
                               {
/datasets/git/builtin/cat-file.c:222:11: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
                        size_t s = size;
                               ^
/datasets/git/builtin/cat-file.c:232:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!buf)
                 ^
                  {
/datasets/git/builtin/cat-file.c:243:8: warning: accessing fields in struct 'expand_data' is inefficient due to padding; only needs 192 bytes but is using 200 bytes [altera-struct-pack-align]
struct expand_data {
       ^
/datasets/git/builtin/cat-file.c:243:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'expand_data'
/datasets/git/builtin/cat-file.c:243:8: warning: accessing fields in struct 'expand_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct expand_data {
       ^
/datasets/git/builtin/cat-file.c:243:8: note: use "__attribute__((aligned(128)))" to align struct 'expand_data' to 128 bytes
/datasets/git/builtin/cat-file.c:279:50: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static int is_atom(const char *atom, const char *s, int slen)
                                                 ^
/datasets/git/builtin/cat-file.c:281:13: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int alen = strlen(atom);
                   ^
/datasets/git/builtin/cat-file.c:285:40: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static void expand_atom(struct strbuf *sb, const char *atom, int len,
                                       ^
/datasets/git/builtin/cat-file.c:291:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!data->mark_query)
                                      ^
                                       {
/datasets/git/builtin/cat-file.c:294:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (data->mark_query)
                                     ^
                                      {
/datasets/git/builtin/cat-file.c:296:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/cat-file.c:299:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (data->mark_query)
                                     ^
                                      {
/datasets/git/builtin/cat-file.c:301:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/cat-file.c:304:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (data->mark_query)
                                     ^
                                      {
/datasets/git/builtin/cat-file.c:306:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/cat-file.c:309:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (data->mark_query)
                                     ^
                                      {
/datasets/git/builtin/cat-file.c:311:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (data->rest)
                                    ^
                                     {
/datasets/git/builtin/cat-file.c:314:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (data->mark_query)
                                     ^
                                      {
/datasets/git/builtin/cat-file.c:316:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/cat-file.c:319:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/builtin/cat-file.c:323:44: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static size_t expand_format(struct strbuf *sb, const char *start, void *data)
                                           ^
/datasets/git/builtin/cat-file.c:325:14: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
        const char *end;
                    ^
                        = NULL
/datasets/git/builtin/cat-file.c:327:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*start != '(')
                          ^
                           {
/datasets/git/builtin/cat-file.c:330:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!end)
                 ^
                  {
/datasets/git/builtin/cat-file.c:333:29: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        expand_atom(sb, start + 1, end - start - 1, data);
                                   ^
/datasets/git/builtin/cat-file.c:341:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fwrite(data, 1, len, stdout) != len)
                                                        ^
                                                         {
/datasets/git/builtin/cat-file.c:343:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/builtin/cat-file.c:347:13: warning: function 'print_object_or_die' has cognitive complexity of 40 (threshold 25) [readability-function-cognitive-complexity]
static void print_object_or_die(struct batch_options *opt, struct expand_data *data)
            ^
/datasets/git/builtin/cat-file.c:351:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(data->info.typep);
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/builtin/cat-file.c:351:2: note: nesting level increased to 1
        assert(data->info.typep);
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/builtin/cat-file.c:351:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(data->info.typep);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/builtin/cat-file.c:351:2: note: +1, nesting level increased to 2
        assert(data->info.typep);
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/builtin/cat-file.c:353:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (data->type == OBJ_BLOB) {
        ^
/datasets/git/builtin/cat-file.c:354:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opt->buffer_output)
                ^
/datasets/git/builtin/cat-file.c:356:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opt->transform_mode) {
                ^
/datasets/git/builtin/cat-file.c:360:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!data->rest)
                        ^
/datasets/git/builtin/cat-file.c:363:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (opt->transform_mode == 'w') {
                        ^
/datasets/git/builtin/cat-file.c:364:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (filter_object(data->rest, 0100644, oid,
                                ^
/datasets/git/builtin/cat-file.c:368:11: note: +1, nesting level increased to 3
                        } else if (opt->transform_mode == 'c') {
                               ^
/datasets/git/builtin/cat-file.c:370:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!textconv_object(the_repository,
                                ^
/datasets/git/builtin/cat-file.c:376:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!contents)
                                ^
/datasets/git/builtin/cat-file.c:379:6: note: +1, nesting level increased to 3
                        } else
                          ^
/datasets/git/builtin/cat-file.c:383:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/cat-file.c:387:2: note: +1, nesting level increased to 1
        else {
        ^
/datasets/git/builtin/cat-file.c:394:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (use_mailmap) {
                ^
/datasets/git/builtin/cat-file.c:400:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!contents)
                ^
/datasets/git/builtin/cat-file.c:402:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (type != data->type)
                ^
/datasets/git/builtin/cat-file.c:404:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (data->info.sizep && size != data->size && !use_mailmap)
                ^
/datasets/git/builtin/cat-file.c:404:46: note: +1
                if (data->info.sizep && size != data->size && !use_mailmap)
                                                           ^
/datasets/git/builtin/cat-file.c:354:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opt->buffer_output)
                                       ^
                                        {
/datasets/git/builtin/cat-file.c:355:4: warning: the value returned by this function should be used [cert-err33-c]
                        fflush(stdout);
                        ^~~~~~~~~~~~~~
/datasets/git/builtin/cat-file.c:355:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/cat-file.c:357:10: warning: variable 'contents' is not initialized [cppcoreguidelines-init-variables]
                        char *contents;
                              ^
                                       = NULL
/datasets/git/builtin/cat-file.c:358:18: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
                        unsigned long size;
                                      ^
                                           = 0
/datasets/git/builtin/cat-file.c:360:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!data->rest)
                                        ^
                                         {
/datasets/git/builtin/cat-file.c:364:35: warning: 0100644 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                if (filter_object(data->rest, 0100644, oid,
                                                              ^
/datasets/git/builtin/cat-file.c:365:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                  &contents, &size))
                                                                    ^
                                                                     {
/datasets/git/builtin/cat-file.c:369:22: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
                                enum object_type type;
                                                 ^
/datasets/git/builtin/cat-file.c:371:24: warning: 0100644 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                                     data->rest, 0100644, oid,
                                                                 ^
/datasets/git/builtin/cat-file.c:372:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                     1, &contents, &size))
                                                                          ^
                                                                           {
/datasets/git/builtin/cat-file.c:376:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!contents)
                                              ^
                                               {
/datasets/git/builtin/cat-file.c:379:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        } else
                              ^
                               {
/datasets/git/builtin/cat-file.c:381:31: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        batch_write(opt, contents, size);
                                                   ^
/datasets/git/builtin/cat-file.c:388:20: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
                enum object_type type;
                                 ^
/datasets/git/builtin/cat-file.c:389:17: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
                unsigned long size;
                              ^
                                   = 0
/datasets/git/builtin/cat-file.c:390:9: warning: variable 'contents' is not initialized [cppcoreguidelines-init-variables]
                void *contents;
                      ^
                               = NULL
/datasets/git/builtin/cat-file.c:395:11: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
                        size_t s = size;
                               ^
/datasets/git/builtin/cat-file.c:400:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!contents)
                              ^
                               {
/datasets/git/builtin/cat-file.c:402:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (type != data->type)
                                       ^
                                        {
/datasets/git/builtin/cat-file.c:404:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (data->info.sizep && size != data->size && !use_mailmap)
                                                                           ^
                                                                            {
/datasets/git/builtin/cat-file.c:407:30: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                batch_write(opt, contents, size);
                                           ^
/datasets/git/builtin/cat-file.c:432:7: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
                int ret;
                    ^
                        = 0
/datasets/git/builtin/cat-file.c:434:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pack)
                         ^
                          {
/datasets/git/builtin/cat-file.c:437:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/cat-file.c:444:4: warning: the value returned by this function should be used [cert-err33-c]
                        fflush(stdout);
                        ^~~~~~~~~~~~~~
/datasets/git/builtin/cat-file.c:444:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/cat-file.c:458:33: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        batch_write(opt, scratch->buf, scratch->len);
                                       ^
/datasets/git/builtin/cat-file.c:473:22: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        enum get_oid_result result;
                            ^
/datasets/git/builtin/cat-file.c:502:3: warning: the value returned by this function should be used [cert-err33-c]
                fflush(stdout);
                ^~~~~~~~~~~~~~
/datasets/git/builtin/cat-file.c:502:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/cat-file.c:510:3: warning: the value returned by this function should be used [cert-err33-c]
                fflush(stdout);
                ^~~~~~~~~~~~~~
/datasets/git/builtin/cat-file.c:510:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/cat-file.c:517:8: warning: accessing fields in struct 'object_cb_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct object_cb_data {
       ^
/datasets/git/builtin/cat-file.c:517:8: note: use "__attribute__((aligned(32)))" to align struct 'object_cb_data' to 32 bytes
/datasets/git/builtin/cat-file.c:534:17: warning: parameter 'path' is unused [misc-unused-parameters]
                                const char *path,
                                            ^
/datasets/git/builtin/cat-file.c:542:25: warning: parameter 'pack' is unused [misc-unused-parameters]
                                 struct packed_git *pack,
                                                    ^
/datasets/git/builtin/cat-file.c:543:15: warning: parameter 'pos' is unused [misc-unused-parameters]
                                 uint32_t pos,
                                          ^
/datasets/git/builtin/cat-file.c:556:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oidset_insert(data->seen, oid))
                                           ^
                                            {
/datasets/git/builtin/cat-file.c:566:18: warning: parameter 'path' is unused [misc-unused-parameters]
                                 const char *path,
                                             ^
/datasets/git/builtin/cat-file.c:585:8: warning: accessing fields in struct 'queued_cmd' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct queued_cmd {
       ^
/datasets/git/builtin/cat-file.c:585:8: note: use "__attribute__((aligned(16)))" to align struct 'queued_cmd' to 16 bytes
/datasets/git/builtin/cat-file.c:612:7: warning: parameter name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
                int nr)
                    ^
/datasets/git/builtin/cat-file.c:614:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/cat-file.c:614:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/cat-file.c:616:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opt->buffer_output)
                                ^
                                 {
/datasets/git/builtin/cat-file.c:619:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr; i++)
        ^
/datasets/git/builtin/cat-file.c:619:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < nr; i++)
                                ^
                                 {
/datasets/git/builtin/cat-file.c:622:2: warning: the value returned by this function should be used [cert-err33-c]
        fflush(stdout);
        ^~~~~~~~~~~~~~
/datasets/git/builtin/cat-file.c:622:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/cat-file.c:625:55: warning: parameter name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
static void free_cmds(struct queued_cmd *cmd, size_t *nr)
                                                      ^
/datasets/git/builtin/cat-file.c:627:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i;
               ^
                 = 0
/datasets/git/builtin/cat-file.c:627:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/cat-file.c:629:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < *nr; i++)
                                 ^
                                  {
/datasets/git/builtin/cat-file.c:630:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FREE_AND_NULL(cmd[i].line);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/cat-file.c:636:21: warning: accessing fields in struct 'parse_cmd' is inefficient due to padding; only needs 20 bytes but is using 24 bytes [altera-struct-pack-align]
static const struct parse_cmd {
                    ^
/datasets/git/builtin/cat-file.c:636:21: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'parse_cmd'
/datasets/git/builtin/cat-file.c:636:21: warning: accessing fields in struct 'parse_cmd' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
static const struct parse_cmd {
                    ^
/datasets/git/builtin/cat-file.c:636:21: note: use "__attribute__((aligned(32)))" to align struct 'parse_cmd' to 32 bytes
/datasets/git/builtin/cat-file.c:646:13: warning: function 'batch_objects_command' has cognitive complexity of 44 (threshold 25) [readability-function-cognitive-complexity]
static void batch_objects_command(struct batch_options *opt,
            ^
/datasets/git/builtin/cat-file.c:654:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (1) {
        ^
/datasets/git/builtin/cat-file.c:660:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opt->nul_terminated)
                ^
/datasets/git/builtin/cat-file.c:662:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/cat-file.c:665:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ret)
                ^
/datasets/git/builtin/cat-file.c:668:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!input.len)
                ^
/datasets/git/builtin/cat-file.c:670:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (isspace(*input.buf))
                ^
/datasets/git/builtin/cat-file.c:673:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < ARRAY_SIZE(commands); i++) {
                ^
/datasets/git/builtin/cat-file.c:674:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!skip_prefix(input.buf, commands[i].name, &cmd_end))
                        ^
/datasets/git/builtin/cat-file.c:678:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (cmd->takes_args) {
                        ^
/datasets/git/builtin/cat-file.c:679:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (*cmd_end != ' ')
                                ^
/datasets/git/builtin/cat-file.c:684:11: note: +1, nesting level increased to 3
                        } else if (*cmd_end) {
                               ^
/datasets/git/builtin/cat-file.c:692:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!cmd)
                ^
/datasets/git/builtin/cat-file.c:695:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(cmd->name, "flush")) {
                ^
/datasets/git/builtin/cat-file.c:698:10: note: +1, nesting level increased to 2
                } else if (!opt->buffer_output) {
                       ^
/datasets/git/builtin/cat-file.c:700:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/cat-file.c:701:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        ALLOC_GROW(queued_cmd, nr + 1, alloc);
                        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/builtin/cat-file.c:701:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        ALLOC_GROW(queued_cmd, nr + 1, alloc);
                        ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/builtin/cat-file.c:701:4: note: +5, including nesting penalty of 4, nesting level increased to 5
                        ALLOC_GROW(queued_cmd, nr + 1, alloc);
                        ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/builtin/cat-file.c:701:4: note: +1, nesting level increased to 5
                        ALLOC_GROW(queued_cmd, nr + 1, alloc);
                        ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/builtin/cat-file.c:708:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt->buffer_output &&
        ^
/datasets/git/builtin/cat-file.c:709:9: note: +1
            nr &&
               ^
/datasets/git/builtin/cat-file.c:652:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t alloc = 0, nr = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/cat-file.c:652:20: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
        size_t alloc = 0, nr = 0;
                          ^
/datasets/git/builtin/cat-file.c:655:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int i, ret;
                ^~~~~~~~~~~
/datasets/git/builtin/cat-file.c:655:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i, ret;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/cat-file.c:655:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/cat-file.c:655:10: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
                int i, ret;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/cat-file.c:657:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                const char *p = NULL, *cmd_end;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/cat-file.c:657:15: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                const char *p = NULL, *cmd_end;
                            ^
/datasets/git/builtin/cat-file.c:657:26: warning: variable 'cmd_end' is not initialized [cppcoreguidelines-init-variables]
                const char *p = NULL, *cmd_end;
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/cat-file.c:660:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opt->nul_terminated)
                                        ^
                                         {
/datasets/git/builtin/cat-file.c:662:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/cat-file.c:665:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret)
                        ^
                         {
/datasets/git/builtin/cat-file.c:668:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!input.len)
                               ^
                                {
/datasets/git/builtin/cat-file.c:670:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (isspace(*input.buf))
                    ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/builtin/cat-file.c:670:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (isspace(*input.buf))
                                        ^
                                         {
/datasets/git/builtin/cat-file.c:673:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < ARRAY_SIZE(commands); i++) {
                ^
/datasets/git/builtin/cat-file.c:674:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!skip_prefix(input.buf, commands[i].name, &cmd_end))
                                                                                ^
                                                                                 {
/datasets/git/builtin/cat-file.c:679:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (*cmd_end != ' ')
                                                    ^
                                                     {
/datasets/git/builtin/cat-file.c:692:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!cmd)
                         ^
                          {
/datasets/git/builtin/cat-file.c:696:50: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        dispatch_calls(opt, output, data, queued_cmd, nr);
                                                                      ^
/datasets/git/builtin/cat-file.c:701:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        ALLOC_GROW(queued_cmd, nr + 1, alloc);
                        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/builtin/cat-file.c:711:49: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                dispatch_calls(opt, output, data, queued_cmd, nr);
                                                              ^
/datasets/git/builtin/cat-file.c:722:12: warning: function 'batch_objects' has cognitive complexity of 31 (threshold 25) [readability-function-cognitive-complexity]
static int batch_objects(struct batch_options *opt)
           ^
/datasets/git/builtin/cat-file.c:738:21: note: +1, including nesting penalty of 0, nesting level increased to 1
                      opt->format ? opt->format : DEFAULT_FORMAT,
                                  ^
/datasets/git/builtin/cat-file.c:743:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt->transform_mode)
        ^
/datasets/git/builtin/cat-file.c:746:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt->format && !strcmp(opt->format, DEFAULT_FORMAT))
        ^
/datasets/git/builtin/cat-file.c:746:18: note: +1
        if (opt->format && !strcmp(opt->format, DEFAULT_FORMAT))
                        ^
/datasets/git/builtin/cat-file.c:752:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt->batch_mode == BATCH_MODE_CONTENTS)
        ^
/datasets/git/builtin/cat-file.c:755:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt->all_objects) {
        ^
/datasets/git/builtin/cat-file.c:759:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!memcmp(&data.info, &empty, sizeof(empty)))
                ^
/datasets/git/builtin/cat-file.c:762:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (has_promisor_remote())
                ^
/datasets/git/builtin/cat-file.c:771:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opt->unordered) {
                ^
/datasets/git/builtin/cat-file.c:781:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/cat-file.c:806:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt->batch_mode == BATCH_MODE_QUEUE_AND_DISPATCH) {
        ^
/datasets/git/builtin/cat-file.c:808:3: note: +1
                goto cleanup;
                ^
/datasets/git/builtin/cat-file.c:811:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (1) {
        ^
/datasets/git/builtin/cat-file.c:813:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opt->nul_terminated)
                ^
/datasets/git/builtin/cat-file.c:815:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/cat-file.c:818:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ret == EOF)
                ^
/datasets/git/builtin/cat-file.c:821:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (data.split_on_whitespace) {
                ^
/datasets/git/builtin/cat-file.c:828:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (p) {
                        ^
/datasets/git/builtin/cat-file.c:829:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                while (*p && strchr(" \t", *p))
                                ^
/datasets/git/builtin/cat-file.c:829:15: note: +1
                                while (*p && strchr(" \t", *p))
                                          ^
/datasets/git/builtin/cat-file.c:727:6: warning: variable 'save_warning' is not initialized [cppcoreguidelines-init-variables]
        int save_warning;
            ^
                         = 0
/datasets/git/builtin/cat-file.c:735:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&data, 0, sizeof(data));
        ^~~~~~
/datasets/git/builtin/cat-file.c:735:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&data, 0, sizeof(data));
        ^~~~~~
/datasets/git/builtin/cat-file.c:743:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->transform_mode)
                                ^
                                 {
/datasets/git/builtin/cat-file.c:746:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->format && !strcmp(opt->format, DEFAULT_FORMAT))
                                                                ^
                                                                 {
/datasets/git/builtin/cat-file.c:752:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->batch_mode == BATCH_MODE_CONTENTS)
                                                   ^
                                                    {
/datasets/git/builtin/cat-file.c:756:25: warning: variable name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
                struct object_cb_data cb;
                                      ^
/datasets/git/builtin/cat-file.c:759:8: warning: comparing object representation of type 'struct object_info' which does not have a unique object representation; consider comparing the members of the object manually [bugprone-suspicious-memory-comparison,cert-exp42-c,cert-flp37-c]
                if (!memcmp(&data.info, &empty, sizeof(empty)))
                     ^
/datasets/git/builtin/cat-file.c:759:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!memcmp(&data.info, &empty, sizeof(empty)))
                                                               ^
                                                                {
/datasets/git/builtin/cat-file.c:762:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (has_promisor_remote())
                                          ^
                                           {
/datasets/git/builtin/cat-file.c:782:21: warning: variable name 'sa' is too short, expected at least 3 characters [readability-identifier-length]
                        struct oid_array sa = OID_ARRAY_INIT;
                                         ^
/datasets/git/builtin/cat-file.c:812:7: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
                int ret;
                    ^
                        = 0
/datasets/git/builtin/cat-file.c:813:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opt->nul_terminated)
                                        ^
                                         {
/datasets/git/builtin/cat-file.c:815:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/cat-file.c:818:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret == EOF)
                               ^
                                {
/datasets/git/builtin/cat-file.c:827:10: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                        char *p = strpbrk(input.buf, " \t");
                              ^
/datasets/git/builtin/cat-file.c:829:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                while (*p && strchr(" \t", *p))
                                ^
/datasets/git/builtin/cat-file.c:829:12: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                                while (*p && strchr(" \t", *p))
                                       ^
/datasets/git/builtin/cat-file.c:829:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                while (*p && strchr(" \t", *p))
                                                               ^
                                                                {
/datasets/git/builtin/cat-file.c:845:74: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int git_cat_file_config(const char *var, const char *value, void *cb)
                                                                         ^
/datasets/git/builtin/cat-file.c:847:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (userdiff_config(var, value) < 0)
                                            ^
                                             {
/datasets/git/builtin/cat-file.c:857:24: warning: variable name 'bo' is too short, expected at least 3 characters [readability-identifier-length]
        struct batch_options *bo = opt->value;
                              ^
/datasets/git/builtin/cat-file.c:859:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/cat-file.c:867:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(opt->long_name, "batch"))
                                             ^
                                              {
/datasets/git/builtin/cat-file.c:869:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(opt->long_name, "batch-check"))
                                                        ^
                                                         {
/datasets/git/builtin/cat-file.c:871:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(opt->long_name, "batch-command"))
                                                          ^
                                                           {
/datasets/git/builtin/cat-file.c:873:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/cat-file.c:881:5: warning: function 'cmd_cat_file' has cognitive complexity of 33 (threshold 25) [readability-function-cognitive-complexity]
int cmd_cat_file(int argc, const char **argv, const char *prefix)
    ^
/datasets/git/builtin/cat-file.c:955:23: note: +1
        opt_cw = (opt == 'c' || opt == 'w');
                             ^
/datasets/git/builtin/cat-file.c:956:53: note: +1
        opt_epts = (opt == 'e' || opt == 'p' || opt == 't' || opt == 's');
                                                           ^
/datasets/git/builtin/cat-file.c:958:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (use_mailmap)
        ^
/datasets/git/builtin/cat-file.c:962:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt == 'b')
        ^
/datasets/git/builtin/cat-file.c:966:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (force_path && !opt_cw)
        ^
/datasets/git/builtin/cat-file.c:966:17: note: +1
        if (force_path && !opt_cw)
                       ^
/datasets/git/builtin/cat-file.c:973:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (batch.enabled)
        ^
/datasets/git/builtin/cat-file.c:975:7: note: +1, nesting level increased to 1
        else if (batch.follow_symlinks)
             ^
/datasets/git/builtin/cat-file.c:978:7: note: +1, nesting level increased to 1
        else if (batch.buffer_output >= 0)
             ^
/datasets/git/builtin/cat-file.c:981:7: note: +1, nesting level increased to 1
        else if (batch.all_objects)
             ^
/datasets/git/builtin/cat-file.c:984:7: note: +1, nesting level increased to 1
        else if (batch.nul_terminated)
             ^
/datasets/git/builtin/cat-file.c:989:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (batch.buffer_output < 0)
        ^
/datasets/git/builtin/cat-file.c:993:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (batch.enabled) {
        ^
/datasets/git/builtin/cat-file.c:994:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opt_cw)
                ^
/datasets/git/builtin/cat-file.c:996:8: note: +1, nesting level increased to 2
                else if (opt && opt != 'b')
                     ^
/datasets/git/builtin/cat-file.c:996:16: note: +1
                else if (opt && opt != 'b')
                             ^
/datasets/git/builtin/cat-file.c:999:8: note: +1, nesting level increased to 2
                else if (argc)
                     ^
/datasets/git/builtin/cat-file.c:1006:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt) {
        ^
/datasets/git/builtin/cat-file.c:1007:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!argc && opt == 'c')
                ^
/datasets/git/builtin/cat-file.c:1007:13: note: +1
                if (!argc && opt == 'c')
                          ^
/datasets/git/builtin/cat-file.c:1010:8: note: +1, nesting level increased to 2
                else if (!argc && opt == 'w')
                     ^
/datasets/git/builtin/cat-file.c:1010:18: note: +1
                else if (!argc && opt == 'w')
                               ^
/datasets/git/builtin/cat-file.c:1013:8: note: +1, nesting level increased to 2
                else if (!argc && opt_epts)
                     ^
/datasets/git/builtin/cat-file.c:1013:18: note: +1
                else if (!argc && opt_epts)
                               ^
/datasets/git/builtin/cat-file.c:1016:8: note: +1, nesting level increased to 2
                else if (argc == 1)
                     ^
/datasets/git/builtin/cat-file.c:1018:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/cat-file.c:1020:9: note: +1, nesting level increased to 1
        } else if (!argc) {
               ^
/datasets/git/builtin/cat-file.c:1022:9: note: +1, nesting level increased to 1
        } else if (argc != 2) {
               ^
/datasets/git/builtin/cat-file.c:1025:9: note: +1, nesting level increased to 1
        } else if (argc) {
               ^
/datasets/git/builtin/cat-file.c:1030:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (unknown_type && opt != 't' && opt != 's')
        ^
/datasets/git/builtin/cat-file.c:1030:33: note: +1
        if (unknown_type && opt != 't' && opt != 's')
                                       ^
/datasets/git/builtin/cat-file.c:886:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *exp_type = NULL, *obj_name = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/cat-file.c:904:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_CMDMODE('e', NULL, &opt,
                ^
/datasets/git/./parse-options.h:188:37: note: expanded from macro 'OPT_CMDMODE'
#define OPT_CMDMODE(s, l, v, h, i)  OPT_CMDMODE_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:187:16: note: expanded from macro 'OPT_CMDMODE_F'
                                      (h), PARSE_OPT_CMDMODE|PARSE_OPT_NOARG|PARSE_OPT_NONEG | (f), NULL, (i) }
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/cat-file.c:906:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_CMDMODE('p', NULL, &opt, N_("pretty-print <object> content"), 'p'),
                ^
/datasets/git/./parse-options.h:188:37: note: expanded from macro 'OPT_CMDMODE'
#define OPT_CMDMODE(s, l, v, h, i)  OPT_CMDMODE_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:187:16: note: expanded from macro 'OPT_CMDMODE_F'
                                      (h), PARSE_OPT_CMDMODE|PARSE_OPT_NOARG|PARSE_OPT_NONEG | (f), NULL, (i) }
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/cat-file.c:909:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_CMDMODE('t', NULL, &opt, N_("show object type (one of 'blob', 'tree', 'commit', 'tag', ...)"), 't'),
                ^
/datasets/git/./parse-options.h:188:37: note: expanded from macro 'OPT_CMDMODE'
#define OPT_CMDMODE(s, l, v, h, i)  OPT_CMDMODE_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:187:16: note: expanded from macro 'OPT_CMDMODE_F'
                                      (h), PARSE_OPT_CMDMODE|PARSE_OPT_NOARG|PARSE_OPT_NONEG | (f), NULL, (i) }
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/cat-file.c:910:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_CMDMODE('s', NULL, &opt, N_("show object size"), 's'),
                ^
/datasets/git/./parse-options.h:188:37: note: expanded from macro 'OPT_CMDMODE'
#define OPT_CMDMODE(s, l, v, h, i)  OPT_CMDMODE_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:187:16: note: expanded from macro 'OPT_CMDMODE_F'
                                      (h), PARSE_OPT_CMDMODE|PARSE_OPT_NOARG|PARSE_OPT_NONEG | (f), NULL, (i) }
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/cat-file.c:911:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "allow-unknown-type", &unknown_type,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/cat-file.c:913:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "use-mailmap", &use_mailmap, N_("use mail map file")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/cat-file.c:919:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        PARSE_OPT_OPTARG | PARSE_OPT_NONEG,
                        ^
/datasets/git/./parse-options.h:169:47: note: expanded from macro 'OPT_CALLBACK_F'
        { OPTION_CALLBACK, (s), (l), (v), (a), (h), (f), (cb) }
                                                     ^
/datasets/git/builtin/cat-file.c:923:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        PARSE_OPT_OPTARG | PARSE_OPT_NONEG,
                        ^
/datasets/git/./parse-options.h:169:47: note: expanded from macro 'OPT_CALLBACK_F'
        { OPTION_CALLBACK, (s), (l), (v), (a), (h), (f), (cb) }
                                                     ^
/datasets/git/builtin/cat-file.c:925:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('z', NULL, &batch.nul_terminated, N_("stdin is NUL-terminated")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/cat-file.c:928:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        PARSE_OPT_OPTARG | PARSE_OPT_NONEG,
                        ^
/datasets/git/./parse-options.h:169:47: note: expanded from macro 'OPT_CALLBACK_F'
        { OPTION_CALLBACK, (s), (l), (v), (a), (h), (f), (cb) }
                                                     ^
/datasets/git/builtin/cat-file.c:930:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_CMDMODE(0, "batch-all-objects", &opt,
                ^
/datasets/git/./parse-options.h:188:37: note: expanded from macro 'OPT_CMDMODE'
#define OPT_CMDMODE(s, l, v, h, i)  OPT_CMDMODE_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:187:16: note: expanded from macro 'OPT_CMDMODE_F'
                                      (h), PARSE_OPT_CMDMODE|PARSE_OPT_NOARG|PARSE_OPT_NONEG | (f), NULL, (i) }
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/cat-file.c:934:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "buffer", &batch.buffer_output, N_("buffer --batch output")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/cat-file.c:935:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "follow-symlinks", &batch.follow_symlinks,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/cat-file.c:937:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "unordered", &batch.unordered,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/cat-file.c:941:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_CMDMODE(0, "textconv", &opt,
                ^
/datasets/git/./parse-options.h:188:37: note: expanded from macro 'OPT_CMDMODE'
#define OPT_CMDMODE(s, l, v, h, i)  OPT_CMDMODE_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:187:16: note: expanded from macro 'OPT_CMDMODE_F'
                                      (h), PARSE_OPT_CMDMODE|PARSE_OPT_NOARG|PARSE_OPT_NONEG | (f), NULL, (i) }
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/cat-file.c:943:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_CMDMODE(0, "filters", &opt,
                ^
/datasets/git/./parse-options.h:188:37: note: expanded from macro 'OPT_CMDMODE'
#define OPT_CMDMODE(s, l, v, h, i)  OPT_CMDMODE_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:187:16: note: expanded from macro 'OPT_CMDMODE_F'
                                      (h), PARSE_OPT_CMDMODE|PARSE_OPT_NOARG|PARSE_OPT_NONEG | (f), NULL, (i) }
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/cat-file.c:958:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (use_mailmap)
                        ^
                         {
/datasets/git/builtin/cat-file.c:962:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt == 'b')
                       ^
                        {
/datasets/git/builtin/cat-file.c:966:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (force_path && !opt_cw)
                                  ^
                                   {
/datasets/git/builtin/cat-file.c:973:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (batch.enabled)
                          ^
                           {
/datasets/git/builtin/cat-file.c:975:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (batch.follow_symlinks)
                                       ^
                                        {
/datasets/git/builtin/cat-file.c:978:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (batch.buffer_output >= 0)
                                          ^
                                           {
/datasets/git/builtin/cat-file.c:981:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (batch.all_objects)
                                   ^
                                    {
/datasets/git/builtin/cat-file.c:984:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (batch.nul_terminated)
                                      ^
                                       {
/datasets/git/builtin/cat-file.c:989:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (batch.buffer_output < 0)
                                    ^
                                     {
/datasets/git/builtin/cat-file.c:994:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opt_cw)
                           ^
                            {
/datasets/git/builtin/cat-file.c:996:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (opt && opt != 'b')
                                           ^
                                            {
/datasets/git/builtin/cat-file.c:999:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (argc)
                              ^
                               {
/datasets/git/builtin/cat-file.c:1007:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!argc && opt == 'c')
                                        ^
                                         {
/datasets/git/builtin/cat-file.c:1010:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!argc && opt == 'w')
                                             ^
                                              {
/datasets/git/builtin/cat-file.c:1013:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!argc && opt_epts)
                                           ^
                                            {
/datasets/git/builtin/cat-file.c:1016:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (argc == 1)
                                   ^
                                    {
/datasets/git/builtin/cat-file.c:1018:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/cat-file.c:1030:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unknown_type && opt != 't' && opt != 's')
                                                     ^
                                                      {
/datasets/git/builtin/check-attr.c:3:1: warning: #includes are not sorted properly [llvm-include-order]
#include "cache.h"
^        ~~~~~~~~~
         "attr.h"
/datasets/git/builtin/check-attr.c:9:12: warning: variable 'all_attrs' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int all_attrs;
           ^
/datasets/git/builtin/check-attr.c:10:12: warning: variable 'cached_attrs' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int cached_attrs;
           ^
/datasets/git/builtin/check-attr.c:11:12: warning: variable 'stdin_paths' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int stdin_paths;
           ^
/datasets/git/builtin/check-attr.c:18:12: warning: variable 'nul_term_line' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int nul_term_line;
           ^
/datasets/git/builtin/check-attr.c:21:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL('a', "all", &all_attrs, N_("report all attributes set on file")),
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/check-attr.c:22:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0,  "cached", &cached_attrs, N_("use .gitattributes only from the index")),
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/check-attr.c:23:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0 , "stdin", &stdin_paths, N_("read file names from stdin")),
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/check-attr.c:24:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL('z', NULL, &nul_term_line,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/check-attr.c:31:6: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int j;
            ^
              = 0
/datasets/git/builtin/check-attr.c:31:6: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/check-attr.c:34:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (j = 0; j < cnt; j++) {
        ^
/datasets/git/builtin/check-attr.c:34:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cnt' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (j = 0; j < cnt; j++) {
                    ^
/datasets/git/builtin/check-attr.c:37:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ATTR_TRUE(value))
                                     ^
                                      {
/datasets/git/builtin/check-attr.c:39:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (ATTR_FALSE(value))
                                           ^
                                            {
/datasets/git/builtin/check-attr.c:41:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (ATTR_UNSET(value))
                                           ^
                                            {
/datasets/git/builtin/check-attr.c:64:32: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                prefix_path(prefix, prefix ? strlen(prefix) : 0, file);
                                             ^
/datasets/git/builtin/check-attr.c:82:20: warning: variable 'getline_fn' is not initialized [cppcoreguidelines-init-variables]
        strbuf_getline_fn getline_fn;
                          ^
                                     = NULL
/datasets/git/builtin/check-attr.c:85:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (getline_fn(&buf, stdin) != EOF) {
        ^
/datasets/git/builtin/check-attr.c:85:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'getline_fn' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (getline_fn(&buf, stdin) != EOF) {
               ^
/datasets/git/builtin/check-attr.c:88:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (unquote_c_style(&unquoted, buf.buf, NULL))
                                                                      ^
                                                                       {
/datasets/git/builtin/check-attr.c:105:5: warning: function 'cmd_check_attr' has cognitive complexity of 34 (threshold 25) [readability-function-cognitive-complexity]
int cmd_check_attr(int argc, const char **argv, const char *prefix)
    ^
/datasets/git/builtin/check-attr.c:110:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!is_bare_repository())
        ^
/datasets/git/builtin/check-attr.c:118:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (repo_read_index(the_repository) < 0) {
        ^
/datasets/git/builtin/check-attr.c:122:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (cached_attrs)
        ^
/datasets/git/builtin/check-attr.c:126:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; doubledash < 0 && i < argc; i++) {
        ^
/datasets/git/builtin/check-attr.c:126:29: note: +1
        for (i = 0; doubledash < 0 && i < argc; i++) {
                                   ^
/datasets/git/builtin/check-attr.c:127:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(argv[i], "--"))
                ^
/datasets/git/builtin/check-attr.c:132:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (all_attrs) {
        ^
/datasets/git/builtin/check-attr.c:133:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (doubledash >= 1)
                ^
/datasets/git/builtin/check-attr.c:138:9: note: +1, nesting level increased to 1
        } else if (doubledash == 0) {
               ^
/datasets/git/builtin/check-attr.c:140:9: note: +1, nesting level increased to 1
        } else if (doubledash < 0) {
               ^
/datasets/git/builtin/check-attr.c:141:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!argc)
                ^
/datasets/git/builtin/check-attr.c:144:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (stdin_paths) {
                ^
/datasets/git/builtin/check-attr.c:148:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/check-attr.c:153:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/check-attr.c:159:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (stdin_paths) {
        ^
/datasets/git/builtin/check-attr.c:160:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (filei < argc)
                ^
/datasets/git/builtin/check-attr.c:162:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/check-attr.c:163:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (filei >= argc)
                ^
/datasets/git/builtin/check-attr.c:168:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!all_attrs) {
        ^
/datasets/git/builtin/check-attr.c:169:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < cnt; i++) {
                ^
/datasets/git/builtin/check-attr.c:172:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!a)
                        ^
/datasets/git/builtin/check-attr.c:179:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (stdin_paths)
        ^
/datasets/git/builtin/check-attr.c:181:2: note: +1, nesting level increased to 1
        else {
        ^
/datasets/git/builtin/check-attr.c:182:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = filei; i < argc; i++)
                ^
/datasets/git/builtin/check-attr.c:107:21: warning: variable 'check' is not initialized [cppcoreguidelines-init-variables]
        struct attr_check *check;
                           ^
                                 = NULL
/datasets/git/builtin/check-attr.c:108:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int cnt, i, doubledash, filei;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/check-attr.c:108:6: warning: variable 'cnt' is not initialized [cppcoreguidelines-init-variables]
        int cnt, i, doubledash, filei;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/check-attr.c:108:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int cnt, i, doubledash, filei;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/check-attr.c:108:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/check-attr.c:108:14: warning: variable 'doubledash' is not initialized [cppcoreguidelines-init-variables]
        int cnt, i, doubledash, filei;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/check-attr.c:108:26: warning: variable 'filei' is not initialized [cppcoreguidelines-init-variables]
        int cnt, i, doubledash, filei;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/check-attr.c:110:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_bare_repository())
                                  ^
                                   {
/datasets/git/builtin/check-attr.c:122:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cached_attrs)
                         ^
                          {
/datasets/git/builtin/check-attr.c:126:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; doubledash < 0 && i < argc; i++) {
        ^
/datasets/git/builtin/check-attr.c:126:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'doubledash' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; doubledash < 0 && i < argc; i++) {
                    ^
/datasets/git/builtin/check-attr.c:127:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(argv[i], "--"))
                                           ^
                                            {
/datasets/git/builtin/check-attr.c:133:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (doubledash >= 1)
                                    ^
                                     {
/datasets/git/builtin/check-attr.c:141:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!argc)
                          ^
                           {
/datasets/git/builtin/check-attr.c:160:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (filei < argc)
                                 ^
                                  {
/datasets/git/builtin/check-attr.c:163:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (filei >= argc)
                                  ^
                                   {
/datasets/git/builtin/check-attr.c:169:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < cnt; i++) {
                ^
/datasets/git/builtin/check-attr.c:169:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < cnt; i++) {
                            ^
/datasets/git/builtin/check-attr.c:170:27: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
                        const struct git_attr *a = git_attr(argv[i]);
                                               ^
/datasets/git/builtin/check-attr.c:172:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!a)
                               ^
                                {
/datasets/git/builtin/check-attr.c:179:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (stdin_paths)
                        ^
                         {
/datasets/git/builtin/check-attr.c:182:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = filei; i < argc; i++)
                ^
/datasets/git/builtin/check-attr.c:182:19: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = filei; i < argc; i++)
                                ^
/datasets/git/builtin/check-attr.c:182:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = filei; i < argc; i++)
                                              ^
                                               {
/datasets/git/builtin/check-ignore.c:6:1: warning: #includes are not sorted properly [llvm-include-order]
#include "quote.h"
^        ~~~~~~~~~
         "parse-options.h"
/datasets/git/builtin/check-ignore.c:11:12: warning: variable 'quiet' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int quiet, verbose, stdin_paths, show_non_matching, no_index;
           ^
/datasets/git/builtin/check-ignore.c:11:19: warning: variable 'verbose' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int quiet, verbose, stdin_paths, show_non_matching, no_index;
                  ^
/datasets/git/builtin/check-ignore.c:11:28: warning: variable 'stdin_paths' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int quiet, verbose, stdin_paths, show_non_matching, no_index;
                           ^
/datasets/git/builtin/check-ignore.c:11:41: warning: variable 'show_non_matching' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int quiet, verbose, stdin_paths, show_non_matching, no_index;
                                        ^
/datasets/git/builtin/check-ignore.c:11:60: warning: variable 'no_index' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int quiet, verbose, stdin_paths, show_non_matching, no_index;
                                                           ^
/datasets/git/builtin/check-ignore.c:18:12: warning: variable 'nul_term_line' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int nul_term_line;
           ^
/datasets/git/builtin/check-ignore.c:21:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT__QUIET(&quiet, N_("suppress progress reporting")),
        ^
/datasets/git/./parse-options.h:360:31: note: expanded from macro 'OPT__QUIET'
#define OPT__QUIET(var, h)    OPT_COUNTUP('q', "quiet",   (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/check-ignore.c:22:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT__VERBOSE(&verbose, N_("be verbose")),
        ^
/datasets/git/./parse-options.h:359:31: note: expanded from macro 'OPT__VERBOSE'
#define OPT__VERBOSE(var, h)  OPT_COUNTUP('v', "verbose", (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/check-ignore.c:24:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "stdin", &stdin_paths,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/check-ignore.c:26:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL('z', NULL, &nul_term_line,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/check-ignore.c:28:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL('n', "non-matching", &show_non_matching,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/check-ignore.c:30:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "no-index", &no_index,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/check-ignore.c:37:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        char *bang  = (pattern && pattern->flags & PATTERN_FLAG_NEGATIVE)  ? "!" : "";
                                  ^
/datasets/git/builtin/check-ignore.c:38:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        char *slash = (pattern && pattern->flags & PATTERN_FLAG_MUSTBEDIR) ? "/" : "";
                                  ^
/datasets/git/builtin/check-ignore.c:53:4: warning: the value returned by this function should be used [cert-err33-c]
                        fputc('\n', stdout);
                        ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/check-ignore.c:53:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/check-ignore.c:59:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (pattern)
                                    ^
                                     {
/datasets/git/builtin/check-ignore.c:65:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/builtin/check-ignore.c:74:14: warning: variable 'full_path' is not initialized [cppcoreguidelines-init-variables]
        const char *full_path;
                    ^
                              = NULL
/datasets/git/builtin/check-ignore.c:75:8: warning: variable 'seen' is not initialized [cppcoreguidelines-init-variables]
        char *seen;
              ^
                   = NULL
/datasets/git/builtin/check-ignore.c:76:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int num_ignored = 0, i;
        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/check-ignore.c:76:23: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int num_ignored = 0, i;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/check-ignore.c:76:23: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/check-ignore.c:77:23: warning: variable 'pattern' is not initialized [cppcoreguidelines-init-variables]
        struct path_pattern *pattern;
                             ^
                                     = NULL
/datasets/git/builtin/check-ignore.c:81:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!quiet)
                           ^
                            {
/datasets/git/builtin/check-ignore.c:82:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, "no pathspec given.\n");
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/check-ignore.c:82:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/check-ignore.c:91:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_ALL_MAGIC & ~PATHSPEC_FROMTOP,
                       ^
/datasets/git/./pathspec.h:15:2: note: expanded from macro 'PATHSPEC_ALL_MAGIC'
        (PATHSPEC_FROMTOP       | \
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/check-ignore.c:91:31: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_ALL_MAGIC & ~PATHSPEC_FROMTOP,
                                            ^
/datasets/git/builtin/check-ignore.c:91:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_ALL_MAGIC & ~PATHSPEC_FROMTOP,
                                             ^
/datasets/git/./pathspec.h:7:27: note: expanded from macro 'PATHSPEC_FROMTOP'
#define PATHSPEC_FROMTOP        (1<<0)
                                 ^
/datasets/git/builtin/check-ignore.c:92:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_SYMLINK_LEADING_PATH |
                       ^
/datasets/git/./pathspec.h:69:39: note: expanded from macro 'PATHSPEC_SYMLINK_LEADING_PATH'
#define PATHSPEC_SYMLINK_LEADING_PATH (1<<3)
                                      ^~~~~~
/datasets/git/builtin/check-ignore.c:93:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_KEEP_ORDER,
                       ^
/datasets/git/./pathspec.h:71:30: note: expanded from macro 'PATHSPEC_KEEP_ORDER'
#define PATHSPEC_KEEP_ORDER (1<<5)
                             ^
/datasets/git/builtin/check-ignore.c:105:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < pathspec.nr; i++) {
        ^
/datasets/git/builtin/check-ignore.c:113:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            pattern->flags & PATTERN_FLAG_NEGATIVE)
                            ^
/datasets/git/builtin/check-ignore.c:132:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        strbuf_getline_fn getline_fn;
        ^
/datasets/git/builtin/check-ignore.c:113:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            pattern->flags & PATTERN_FLAG_NEGATIVE)
                                                                   ^
                                                                    {
/datasets/git/builtin/check-ignore.c:116:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!quiet && (pattern || show_non_matching))
                                                             ^
                                                              {
/datasets/git/builtin/check-ignore.c:118:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pattern)
                            ^
                             {
/datasets/git/builtin/check-ignore.c:132:20: warning: variable 'getline_fn' is not initialized [cppcoreguidelines-init-variables]
        strbuf_getline_fn getline_fn;
                          ^
                                     = NULL
/datasets/git/builtin/check-ignore.c:136:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (getline_fn(&buf, stdin) != EOF) {
        ^
/datasets/git/builtin/check-ignore.c:136:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'getline_fn' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (getline_fn(&buf, stdin) != EOF) {
               ^
/datasets/git/builtin/check-ignore.c:139:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (unquote_c_style(&unquoted, buf.buf, NULL))
                                                                      ^
                                                                       {
/datasets/git/builtin/check-ignore.c:155:6: warning: variable 'num_ignored' is not initialized [cppcoreguidelines-init-variables]
        int num_ignored;
            ^
                        = 0
/datasets/git/builtin/check-ignore.c:164:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (argc > 0)
                             ^
                              {
/datasets/git/builtin/check-ignore.c:167:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (nul_term_line)
                                  ^
                                   {
/datasets/git/builtin/check-ignore.c:169:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (argc == 0)
                              ^
                               {
/datasets/git/builtin/check-ignore.c:173:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (argc > 1)
                             ^
                              {
/datasets/git/builtin/check-ignore.c:175:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (verbose)
                            ^
                             {
/datasets/git/builtin/check-ignore.c:178:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (show_non_matching && !verbose)
                                          ^
                                           {
/datasets/git/builtin/check-ignore.c:182:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!no_index && repo_read_index(the_repository) < 0)
                                                             ^
                                                              {
builtin/check-mailmap.c:7:12: warning: variable 'use_stdin' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int use_stdin;
           ^
builtin/check-mailmap.c:14:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "stdin", &use_stdin, N_("also read contacts from stdin")),
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/check-mailmap.c:20:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *name, *mail;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/check-mailmap.c:20:14: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
        const char *name, *mail;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/check-mailmap.c:20:21: warning: variable 'mail' is not initialized [cppcoreguidelines-init-variables]
        const char *name, *mail;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/check-mailmap.c:21:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t namelen, maillen;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/check-mailmap.c:21:9: warning: variable 'namelen' is not initialized [cppcoreguidelines-init-variables]
        size_t namelen, maillen;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/check-mailmap.c:21:18: warning: variable 'maillen' is not initialized [cppcoreguidelines-init-variables]
        size_t namelen, maillen;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/check-mailmap.c:24:40: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        if (split_ident_line(&ident, contact, strlen(contact)))
                                              ^
/datasets/git/builtin/check-mailmap.c:24:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (split_ident_line(&ident, contact, strlen(contact)))
                                                               ^
                                                                {
/datasets/git/builtin/check-mailmap.c:34:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (namelen)
                    ^
                     {
/datasets/git/builtin/check-mailmap.c:41:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/check-mailmap.c:41:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/check-mailmap.c:57:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                struct strbuf buf = STRBUF_INIT;
                ^
/datasets/git/builtin/check-mailmap.c:47:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc == 0 && !use_stdin)
                                    ^
                                     {
/datasets/git/builtin/check-mailmap.c:52:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < argc; ++i)
        ^
/datasets/git/builtin/check-mailmap.c:52:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'argc' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < argc; ++i)
                    ^
/datasets/git/builtin/check-mailmap.c:52:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < argc; ++i)
                                  ^
                                   {
/datasets/git/builtin/check-mailmap.c:58:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (strbuf_getline_lf(&buf, stdin) != EOF) {
                ^
/datasets/git/builtin/check-mailmap.c:58:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'buf' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (strbuf_getline_lf(&buf, stdin) != EOF) {
                       ^
/datasets/git/builtin/check-ref-format.c:6:1: warning: #includes are not sorted properly [llvm-include-order]
#include "refs.h"
^        ~~~~~~~~
         "builtin.h"
/datasets/git/builtin/check-ref-format.c:24:7: warning: variable 'ch' is not initialized [cppcoreguidelines-init-variables]
        char ch;
             ^
                = 0
/datasets/git/builtin/check-ref-format.c:24:7: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/check-ref-format.c:26:8: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
        char *cp = ret;
              ^
/datasets/git/builtin/check-ref-format.c:28:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((ch = *refname++) != '\0') {
        ^
/datasets/git/builtin/check-ref-format.c:28:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'ch' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((ch = *refname++) != '\0') {
               ^
/datasets/git/builtin/check-ref-format.c:29:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (prev == '/' && ch == prev)
                                              ^
                                               {
/datasets/git/builtin/check-ref-format.c:41:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/check-ref-format.c:42:14: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
        const char *name;
                    ^
                         = NULL
/datasets/git/builtin/check-ref-format.c:43:6: warning: variable 'nongit' is not initialized [cppcoreguidelines-init-variables]
        int nongit;
            ^
                   = 0
/datasets/git/builtin/check-ref-format.c:47:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !skip_prefix(sb.buf, "refs/heads/", &name))
                                                       ^
                                                        {
/datasets/git/builtin/check-ref-format.c:54:67: warning: parameter 'prefix' is unused [misc-unused-parameters]
int cmd_check_ref_format(int argc, const char **argv, const char *prefix)
                                                                  ^
/datasets/git/builtin/check-ref-format.c:56:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/check-ref-format.c:56:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/check-ref-format.c:59:14: warning: variable 'refname' is not initialized [cppcoreguidelines-init-variables]
        const char *refname;
                    ^
                            = NULL
/datasets/git/builtin/check-ref-format.c:63:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc == 2 && !strcmp(argv[1], "-h"))
                                                ^
                                                 {
/datasets/git/builtin/check-ref-format.c:66:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc == 3 && !strcmp(argv[1], "--branch"))
                                                      ^
                                                       {
/datasets/git/builtin/check-ref-format.c:69:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 1; i < argc && argv[i][0] == '-'; i++) {
        ^
/datasets/git/builtin/check-ref-format.c:70:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(argv[i], "--normalize") || !strcmp(argv[i], "--print"))
                                                                                   ^
                                                                                    {
/datasets/git/builtin/check-ref-format.c:72:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(argv[i], "--allow-onelevel"))
                                                              ^
                                                               {
/datasets/git/builtin/check-ref-format.c:73:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        flags |= REFNAME_ALLOW_ONELEVEL;
                        ^~~~~
/datasets/git/builtin/check-ref-format.c:74:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(argv[i], "--no-allow-onelevel"))
                                                                 ^
                                                                  {
/datasets/git/builtin/check-ref-format.c:75:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        flags &= ~REFNAME_ALLOW_ONELEVEL;
                        ^~~~~
/datasets/git/builtin/check-ref-format.c:75:13: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                        flags &= ~REFNAME_ALLOW_ONELEVEL;
                                 ^
/datasets/git/builtin/check-ref-format.c:76:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(argv[i], "--refspec-pattern"))
                                                               ^
                                                                {
/datasets/git/builtin/check-ref-format.c:77:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        flags |= REFNAME_REFSPEC_PATTERN;
                        ^~~~~
/datasets/git/builtin/check-ref-format.c:78:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/check-ref-format.c:81:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (! (i == argc - 1))
                              ^
                               {
/datasets/git/builtin/check-ref-format.c:85:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (normalize)
                      ^
                       {
/datasets/git/builtin/check-ref-format.c:87:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (check_refname_format(refname, flags))
                                                 ^
                                                  {
/datasets/git/builtin/check-ref-format.c:89:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (normalize)
                      ^
                       {
/datasets/git/builtin/checkout--worker.c:11:38: warning: variable 'fixed_portion' is not initialized [cppcoreguidelines-init-variables]
        const struct pc_item_fixed_portion *fixed_portion;
                                            ^
                                                          = NULL
/datasets/git/builtin/checkout--worker.c:12:14: warning: variable 'variant' is not initialized [cppcoreguidelines-init-variables]
        const char *variant;
                    ^
                            = NULL
/datasets/git/builtin/checkout--worker.c:13:8: warning: variable 'encoding' is not initialized [cppcoreguidelines-init-variables]
        char *encoding;
              ^
                       = NULL
/datasets/git/builtin/checkout--worker.c:15:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len < sizeof(struct pc_item_fixed_portion))
                                                       ^
                                                        {
/datasets/git/builtin/checkout--worker.c:22:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                fixed_portion->name_len + fixed_portion->working_tree_encoding_len)
                                                                                   ^
                                                                                    {
/datasets/git/builtin/checkout--worker.c:41:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(pc_item, 0, sizeof(*pc_item));
        ^~~~~~
/datasets/git/builtin/checkout--worker.c:41:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(pc_item, 0, sizeof(*pc_item));
        ^~~~~~
/datasets/git/builtin/checkout--worker.c:45:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(pc_item->ce->name, variant, pc_item->ce->ce_namelen);
        ^~~~~~
/datasets/git/builtin/checkout--worker.c:45:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(pc_item->ce->name, variant, pc_item->ce->ce_namelen);
        ^~~~~~
/datasets/git/builtin/checkout--worker.c:57:9: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        size_t size;
               ^
                    = 0
/datasets/git/builtin/checkout--worker.c:82:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t i, nr = 0, alloc = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/checkout--worker.c:82:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i, nr = 0, alloc = 0;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/checkout--worker.c:82:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/checkout--worker.c:82:12: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
        size_t i, nr = 0, alloc = 0;
                  ^
/datasets/git/builtin/checkout--worker.c:88:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (len < 0)
                            ^
                             {
/datasets/git/builtin/checkout--worker.c:90:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!len)
                              ^
                               {
/datasets/git/builtin/checkout--worker.c:93:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                ALLOC_GROW(items, nr + 1, alloc);
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/builtin/checkout--worker.c:97:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr; i++) {
        ^
/datasets/git/builtin/checkout--worker.c:123:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc == 2 && !strcmp(argv[1], "-h"))
                                                ^
                                                 {
/datasets/git/builtin/checkout--worker.c:130:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc > 0)
                     ^
                      {
/datasets/git/builtin/checkout--worker.c:133:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (state.base_dir)
                           ^
                            {
/datasets/git/builtin/checkout--worker.c:134:24: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                state.base_dir_len = strlen(state.base_dir);
                                     ^
/datasets/git/builtin/checkout-index.c:9:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "cache-tree.h"
/datasets/git/builtin/checkout-index.c:18:1: warning: replace macro with enum [modernize-macro-to-enum]
#define CHECKOUT_ALL 4
^~~~~~~~
                     =
/datasets/git/builtin/checkout-index.c:18:9: warning: macro 'CHECKOUT_ALL' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define CHECKOUT_ALL 4
        ^
/datasets/git/builtin/checkout-index.c:19:12: warning: variable 'nul_term_line' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int nul_term_line;
           ^
/datasets/git/builtin/checkout-index.c:20:12: warning: variable 'checkout_stage' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int checkout_stage; /* default to checkout stage0 */
           ^
/datasets/git/builtin/checkout-index.c:21:12: warning: variable 'ignore_skip_worktree' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int ignore_skip_worktree; /* default to 0 */
           ^
/datasets/git/builtin/checkout-index.c:22:12: warning: variable 'to_tempfile' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int to_tempfile;
           ^
/datasets/git/builtin/checkout-index.c:23:13: warning: variable 'topath' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char topath[4][TEMPORARY_FILENAME_LENGTH + 1];
            ^
/datasets/git/builtin/checkout-index.c:25:24: warning: variable 'state' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct checkout state = CHECKOUT_INIT;
                       ^
/datasets/git/builtin/checkout-index.c:29:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/checkout-index.c:29:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/checkout-index.c:33:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 1; i < 4; i++)
                ^
/datasets/git/builtin/checkout-index.c:33:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 1; i < 4; i++)
                                       ^
                                        {
/datasets/git/builtin/checkout-index.c:40:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = 1; i < 4; i++) {
                        ^
/datasets/git/builtin/checkout-index.c:41:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (i > 1)
                                          ^
                                           {
/datasets/git/builtin/checkout-index.c:43:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (topath[i][0])
                                                 ^
                                                  {
/datasets/git/builtin/checkout-index.c:44:6: warning: the value returned by this function should be used [cert-err33-c]
                                        fputs(topath[i], stdout);
                                        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/checkout-index.c:44:6: note: cast the expression to void to silence this warning
/datasets/git/builtin/checkout-index.c:45:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                else
                                    ^
                                     {
/datasets/git/builtin/checkout-index.c:51:3: warning: the value returned by this function should be used [cert-err33-c]
                fputs(topath[checkout_stage], stdout);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/checkout-index.c:51:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/checkout-index.c:60:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < 4; i++) {
        ^
/datasets/git/builtin/checkout-index.c:65:12: warning: function 'checkout_file' has cognitive complexity of 32 (threshold 25) [readability-function-cognitive-complexity]
static int checkout_file(const char *name, const char *prefix)
           ^
/datasets/git/builtin/checkout-index.c:75:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (pos < 0)
        ^
/datasets/git/builtin/checkout-index.c:78:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (pos < the_index.cache_nr) {
        ^
/datasets/git/builtin/checkout-index.c:80:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ce_namelen(ce) != namelen ||
                ^
/datasets/git/builtin/checkout-index.c:80:33: note: +1
                if (ce_namelen(ce) != namelen ||
                                              ^
/datasets/git/builtin/checkout-index.c:85:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (S_ISSPARSEDIR(ce->ce_mode))
                ^
/datasets/git/builtin/checkout-index.c:88:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!ignore_skip_worktree && ce_skip_worktree(ce))
                ^
/datasets/git/builtin/checkout-index.c:88:29: note: +1
                if (!ignore_skip_worktree && ce_skip_worktree(ce))
                                          ^
/datasets/git/builtin/checkout-index.c:91:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ce_stage(ce) != checkout_stage
                ^
/datasets/git/builtin/checkout-index.c:92:7: note: +1
                    && (CHECKOUT_ALL != checkout_stage || !ce_stage(ce)))
                    ^
/datasets/git/builtin/checkout-index.c:92:42: note: +1
                    && (CHECKOUT_ALL != checkout_stage || !ce_stage(ce)))
                                                       ^
/datasets/git/builtin/checkout-index.c:95:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (checkout_entry(ce, &state,
                ^
/datasets/git/builtin/checkout-index.c:96:20: note: +2, including nesting penalty of 1, nesting level increased to 2
                                   to_tempfile ? topath[ce_stage(ce)] : NULL,
                                               ^
/datasets/git/builtin/checkout-index.c:101:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (did_checkout) {
        ^
/datasets/git/builtin/checkout-index.c:102:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (to_tempfile)
                ^
/datasets/git/builtin/checkout-index.c:104:19: note: +2, including nesting penalty of 1, nesting level increased to 2
                return errs > 0 ? -1 : 0;
                                ^
/datasets/git/builtin/checkout-index.c:112:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (has_same_name && checkout_stage == CHECKOUT_ALL)
        ^
/datasets/git/builtin/checkout-index.c:112:20: note: +1
        if (has_same_name && checkout_stage == CHECKOUT_ALL)
                          ^
/datasets/git/builtin/checkout-index.c:115:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!state.quiet) {
        ^
/datasets/git/builtin/checkout-index.c:117:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!has_same_name)
                ^
/datasets/git/builtin/checkout-index.c:119:8: note: +1, nesting level increased to 2
                else if (!is_file)
                     ^
/datasets/git/builtin/checkout-index.c:121:8: note: +1, nesting level increased to 2
                else if (is_skipped)
                     ^
/datasets/git/builtin/checkout-index.c:124:8: note: +1, nesting level increased to 2
                else if (checkout_stage)
                     ^
/datasets/git/builtin/checkout-index.c:127:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/checkout-index.c:67:16: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int namelen = strlen(name);
                      ^
/datasets/git/builtin/checkout-index.c:75:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pos < 0)
                    ^
                     {
/datasets/git/builtin/checkout-index.c:78:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (pos < the_index.cache_nr) {
        ^
/datasets/git/builtin/checkout-index.c:78:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'pos' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (pos < the_index.cache_nr) {
               ^
/datasets/git/builtin/checkout-index.c:79:23: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                struct cache_entry *ce = the_index.cache[pos];
                                    ^
/datasets/git/builtin/checkout-index.c:81:7: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                    memcmp(ce->name, name, namelen))
                    ^
                                                    != 0
/datasets/git/builtin/checkout-index.c:81:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    memcmp(ce->name, name, namelen))
                                                    ^
                                                     {
/datasets/git/builtin/checkout-index.c:85:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (S_ISSPARSEDIR(ce->ce_mode))
                                               ^
                                                {
/datasets/git/builtin/checkout-index.c:88:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!ignore_skip_worktree && ce_skip_worktree(ce))
                                             ^
/datasets/git/./refs/../cache.h:244:31: note: expanded from macro 'ce_skip_worktree'
#define ce_skip_worktree(ce) ((ce)->ce_flags & CE_SKIP_WORKTREE)
                              ^                ~~~~~~~~~~~~~~~~
/datasets/git/builtin/checkout-index.c:88:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ignore_skip_worktree && ce_skip_worktree(ce))
                                                                  ^
                                                                   {
/datasets/git/builtin/checkout-index.c:91:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce_stage(ce) != checkout_stage
                    ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/builtin/checkout-index.c:92:46: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    && (CHECKOUT_ALL != checkout_stage || !ce_stage(ce)))
                                                           ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/builtin/checkout-index.c:92:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    && (CHECKOUT_ALL != checkout_stage || !ce_stage(ce)))
                                                                         ^
                                                                          {
/datasets/git/builtin/checkout-index.c:96:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                   to_tempfile ? topath[ce_stage(ce)] : NULL,
                                                        ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/builtin/checkout-index.c:97:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                   NULL) < 0)
                                             ^
                                              {
/datasets/git/builtin/checkout-index.c:102:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (to_tempfile)
                                ^
                                 {
/datasets/git/builtin/checkout-index.c:112:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (has_same_name && checkout_stage == CHECKOUT_ALL)
                                                            ^
                                                             {
/datasets/git/builtin/checkout-index.c:116:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "git checkout-index: %s ", name);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/checkout-index.c:116:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/checkout-index.c:117:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!has_same_name)
                                   ^
                                    {
/datasets/git/builtin/checkout-index.c:118:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, "is not in the cache");
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/checkout-index.c:118:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/checkout-index.c:119:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!is_file)
                                  ^
                                   {
/datasets/git/builtin/checkout-index.c:120:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, "is a sparse directory");
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/checkout-index.c:120:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/checkout-index.c:121:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (is_skipped)
                                    ^
                                     {
/datasets/git/builtin/checkout-index.c:122:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, "has skip-worktree enabled; "
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/checkout-index.c:122:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/checkout-index.c:124:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (checkout_stage)
                                        ^
                                         {
/datasets/git/builtin/checkout-index.c:125:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, "does not exist at stage %d",
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/checkout-index.c:125:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/checkout-index.c:127:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/checkout-index.c:128:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, "is unmerged");
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/checkout-index.c:128:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/checkout-index.c:129:3: warning: the value returned by this function should be used [cert-err33-c]
                fputc('\n', stderr);
                ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/checkout-index.c:129:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/checkout-index.c:134:12: warning: function 'checkout_all' has cognitive complexity of 33 (threshold 25) [readability-function-cognitive-complexity]
static int checkout_all(const char *prefix, int prefix_length)
           ^
/datasets/git/builtin/checkout-index.c:139:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < the_index.cache_nr ; i++) {
        ^
/datasets/git/builtin/checkout-index.c:142:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (S_ISSPARSEDIR(ce->ce_mode)) {
                ^
/datasets/git/builtin/checkout-index.c:143:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!ce_skip_worktree(ce))
                        ^
/datasets/git/builtin/checkout-index.c:152:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ignore_skip_worktree) {
                        ^
/datasets/git/builtin/checkout-index.c:158:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!ignore_skip_worktree && ce_skip_worktree(ce))
                ^
/datasets/git/builtin/checkout-index.c:158:29: note: +1
                if (!ignore_skip_worktree && ce_skip_worktree(ce))
                                          ^
/datasets/git/builtin/checkout-index.c:160:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ce_stage(ce) != checkout_stage
                ^
/datasets/git/builtin/checkout-index.c:161:7: note: +1
                    && (CHECKOUT_ALL != checkout_stage || !ce_stage(ce)))
                    ^
/datasets/git/builtin/checkout-index.c:161:42: note: +1
                    && (CHECKOUT_ALL != checkout_stage || !ce_stage(ce)))
                                                       ^
/datasets/git/builtin/checkout-index.c:163:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (prefix && *prefix &&
                ^
/datasets/git/builtin/checkout-index.c:163:25: note: +1
                if (prefix && *prefix &&
                                      ^
/datasets/git/builtin/checkout-index.c:164:40: note: +1
                    (ce_namelen(ce) <= prefix_length ||
                                                     ^
/datasets/git/builtin/checkout-index.c:167:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (last_ce && to_tempfile) {
                ^
/datasets/git/builtin/checkout-index.c:167:15: note: +1
                if (last_ce && to_tempfile) {
                            ^
/datasets/git/builtin/checkout-index.c:168:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ce_namelen(last_ce) != ce_namelen(ce)
                        ^
/datasets/git/builtin/checkout-index.c:169:8: note: +1
                            || memcmp(last_ce->name, ce->name, ce_namelen(ce)))
                            ^
/datasets/git/builtin/checkout-index.c:172:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (checkout_entry(ce, &state,
                ^
/datasets/git/builtin/checkout-index.c:173:20: note: +2, including nesting penalty of 1, nesting level increased to 2
                                   to_tempfile ? topath[ce_stage(ce)] : NULL,
                                               ^
/datasets/git/builtin/checkout-index.c:178:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (last_ce && to_tempfile)
        ^
/datasets/git/builtin/checkout-index.c:178:14: note: +1
        if (last_ce && to_tempfile)
                    ^
/datasets/git/builtin/checkout-index.c:136:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, errs = 0;
        ^~~~~~~~~~~~~~~~
/datasets/git/builtin/checkout-index.c:136:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, errs = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/checkout-index.c:136:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/checkout-index.c:139:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < the_index.cache_nr ; i++) {
        ^
/datasets/git/builtin/checkout-index.c:140:23: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                struct cache_entry *ce = the_index.cache[i];
                                    ^
/datasets/git/builtin/checkout-index.c:143:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!ce_skip_worktree(ce))
                             ^
/datasets/git/./refs/../cache.h:244:31: note: expanded from macro 'ce_skip_worktree'
#define ce_skip_worktree(ce) ((ce)->ce_flags & CE_SKIP_WORKTREE)
                              ^                ~~~~~~~~~~~~~~~~
/datasets/git/builtin/checkout-index.c:143:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!ce_skip_worktree(ce))
                                                  ^
                                                   {
/datasets/git/builtin/checkout-index.c:158:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!ignore_skip_worktree && ce_skip_worktree(ce))
                                             ^
/datasets/git/./refs/../cache.h:244:31: note: expanded from macro 'ce_skip_worktree'
#define ce_skip_worktree(ce) ((ce)->ce_flags & CE_SKIP_WORKTREE)
                              ^                ~~~~~~~~~~~~~~~~
/datasets/git/builtin/checkout-index.c:158:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ignore_skip_worktree && ce_skip_worktree(ce))
                                                                  ^
                                                                   {
/datasets/git/builtin/checkout-index.c:160:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce_stage(ce) != checkout_stage
                    ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/builtin/checkout-index.c:161:46: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    && (CHECKOUT_ALL != checkout_stage || !ce_stage(ce)))
                                                           ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/builtin/checkout-index.c:161:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    && (CHECKOUT_ALL != checkout_stage || !ce_stage(ce)))
                                                                         ^
                                                                          {
/datasets/git/builtin/checkout-index.c:165:8: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                     memcmp(prefix, ce->name, prefix_length)))
                     ^
                                                             != 0
/datasets/git/builtin/checkout-index.c:165:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                     memcmp(prefix, ce->name, prefix_length)))
                                                              ^
                                                               {
/datasets/git/builtin/checkout-index.c:169:11: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                            || memcmp(last_ce->name, ce->name, ce_namelen(ce)))
                               ^
                                                                               != 0
/datasets/git/builtin/checkout-index.c:169:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            || memcmp(last_ce->name, ce->name, ce_namelen(ce)))
                                                                               ^
                                                                                {
/datasets/git/builtin/checkout-index.c:173:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                   to_tempfile ? topath[ce_stage(ce)] : NULL,
                                                        ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/builtin/checkout-index.c:174:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                   NULL) < 0)
                                             ^
                                              {
/datasets/git/builtin/checkout-index.c:178:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (last_ce && to_tempfile)
                                   ^
                                    {
/datasets/git/builtin/checkout-index.c:188:52: warning: parameter 'opt' is unused [misc-unused-parameters]
static int option_parse_stage(const struct option *opt,
                                                   ^
/datasets/git/builtin/checkout-index.c:191:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/checkout-index.c:197:7: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
                int ch = arg[0];
                    ^
/datasets/git/builtin/checkout-index.c:197:12: warning: 'signed char' to 'int' conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse,cert-str34-c]
                int ch = arg[0];
                         ^
/datasets/git/builtin/checkout-index.c:198:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ('1' <= ch && ch <= '3')
                                           ^
                                            {
/datasets/git/builtin/checkout-index.c:200:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/checkout-index.c:206:5: warning: function 'cmd_checkout_index' has cognitive complexity of 33 (threshold 25) [readability-function-cognitive-complexity]
int cmd_checkout_index(int argc, const char **argv, const char *prefix)
    ^
/datasets/git/builtin/checkout-index.c:243:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (argc == 2 && !strcmp(argv[1], "-h"))
        ^
/datasets/git/builtin/checkout-index.c:243:16: note: +1
        if (argc == 2 && !strcmp(argv[1], "-h"))
                      ^
/datasets/git/builtin/checkout-index.c:247:25: note: +1, including nesting penalty of 0, nesting level increased to 1
        prefix_length = prefix ? strlen(prefix) : 0;
                               ^
/datasets/git/builtin/checkout-index.c:252:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (repo_read_index(the_repository) < 0) {
        ^
/datasets/git/builtin/checkout-index.c:263:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!state.base_dir)
        ^
/datasets/git/builtin/checkout-index.c:270:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (index_opt && !state.base_dir_len && !to_tempfile) {
        ^
/datasets/git/builtin/checkout-index.c:270:39: note: +1
        if (index_opt && !state.base_dir_len && !to_tempfile) {
                                             ^
/datasets/git/builtin/checkout-index.c:278:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (pc_workers > 1)
        ^
/datasets/git/builtin/checkout-index.c:282:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < argc; i++) {
        ^
/datasets/git/builtin/checkout-index.c:286:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (all)
                ^
/datasets/git/builtin/checkout-index.c:288:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (read_from_stdin)
                ^
/datasets/git/builtin/checkout-index.c:295:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (read_from_stdin) {
        ^
/datasets/git/builtin/checkout-index.c:300:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (all)
                ^
/datasets/git/builtin/checkout-index.c:303:30: note: +2, including nesting penalty of 1, nesting level increased to 2
                getline_fn = nul_term_line ? strbuf_getline_nul : strbuf_getline_lf;
                                           ^
/datasets/git/builtin/checkout-index.c:304:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (getline_fn(&buf, stdin) != EOF) {
                ^
/datasets/git/builtin/checkout-index.c:306:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!nul_term_line && buf.buf[0] == '"') {
                        ^
/datasets/git/builtin/checkout-index.c:306:23: note: +1
                        if (!nul_term_line && buf.buf[0] == '"') {
                                           ^
/datasets/git/builtin/checkout-index.c:308:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (unquote_c_style(&unquoted, buf.buf, NULL))
                                ^
/datasets/git/builtin/checkout-index.c:320:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (all)
        ^
/datasets/git/builtin/checkout-index.c:323:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (pc_workers > 1)
        ^
/datasets/git/builtin/checkout-index.c:327:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (err)
        ^
/datasets/git/builtin/checkout-index.c:330:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (is_lock_file_locked(&lock_file) &&
        ^
/datasets/git/builtin/checkout-index.c:330:38: note: +1
        if (is_lock_file_locked(&lock_file) &&
                                            ^
/datasets/git/builtin/checkout-index.c:208:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/checkout-index.c:208:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/checkout-index.c:212:6: warning: variable 'prefix_length' is not initialized [cppcoreguidelines-init-variables]
        int prefix_length;
            ^
                          = 0
/datasets/git/builtin/checkout-index.c:213:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int force = 0, quiet = 0, not_new = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/checkout-index.c:216:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int pc_workers, pc_threshold;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/checkout-index.c:216:6: warning: variable 'pc_workers' is not initialized [cppcoreguidelines-init-variables]
        int pc_workers, pc_threshold;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/checkout-index.c:216:18: warning: variable 'pc_threshold' is not initialized [cppcoreguidelines-init-variables]
        int pc_workers, pc_threshold;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/checkout-index.c:218:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('a', "all", &all,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/checkout-index.c:220:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "ignore-skip-worktree-bits", &ignore_skip_worktree,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/checkout-index.c:222:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__FORCE(&force, N_("force overwrite of existing files"), 0),
                ^
/datasets/git/./parse-options.h:367:31: note: expanded from macro 'OPT__FORCE'
#define OPT__FORCE(var, h, f) OPT_COUNTUP_F('f', "force",   (var), (h), (f))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/checkout-index.c:223:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__QUIET(&quiet,
                ^
/datasets/git/./parse-options.h:360:31: note: expanded from macro 'OPT__QUIET'
#define OPT__QUIET(var, h)    OPT_COUNTUP('q', "quiet",   (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/checkout-index.c:225:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('n', "no-create", &not_new,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/checkout-index.c:227:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('u', "index", &index_opt,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/checkout-index.c:229:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('z', NULL, &nul_term_line,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/checkout-index.c:231:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "stdin", &read_from_stdin,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/checkout-index.c:233:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "temp", &to_tempfile,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/checkout-index.c:243:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc == 2 && !strcmp(argv[1], "-h"))
                                                ^
                                                 {
/datasets/git/builtin/checkout-index.c:247:27: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        prefix_length = prefix ? strlen(prefix) : 0;
                                 ^
/datasets/git/builtin/checkout-index.c:263:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!state.base_dir)
                            ^
                             {
/datasets/git/builtin/checkout-index.c:265:23: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        state.base_dir_len = strlen(state.base_dir);
                             ^
/datasets/git/builtin/checkout-index.c:278:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pc_workers > 1)
                           ^
                            {
/datasets/git/builtin/checkout-index.c:282:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < argc; i++) {
        ^
/datasets/git/builtin/checkout-index.c:282:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'argc' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < argc; i++) {
                    ^
/datasets/git/builtin/checkout-index.c:284:9: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                char *p;
                      ^
                        = NULL
/datasets/git/builtin/checkout-index.c:284:9: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/checkout-index.c:286:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (all)
                        ^
                         {
/datasets/git/builtin/checkout-index.c:288:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (read_from_stdin)
                                    ^
                                     {
/datasets/git/builtin/checkout-index.c:291:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                err |= checkout_file(p, prefix);
                ^~~
/datasets/git/builtin/checkout-index.c:298:21: warning: variable 'getline_fn' is not initialized [cppcoreguidelines-init-variables]
                strbuf_getline_fn getline_fn;
                                  ^
                                             = NULL
/datasets/git/builtin/checkout-index.c:300:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (all)
                        ^
                         {
/datasets/git/builtin/checkout-index.c:304:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (getline_fn(&buf, stdin) != EOF) {
                ^
/datasets/git/builtin/checkout-index.c:304:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'getline_fn' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (getline_fn(&buf, stdin) != EOF) {
                       ^
/datasets/git/builtin/checkout-index.c:305:10: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                        char *p;
                              ^
                                = NULL
/datasets/git/builtin/checkout-index.c:305:10: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/checkout-index.c:308:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (unquote_c_style(&unquoted, buf.buf, NULL))
                                                                              ^
                                                                               {
/datasets/git/builtin/checkout-index.c:313:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        err |= checkout_file(p, prefix);
                        ^~~
/datasets/git/builtin/checkout-index.c:320:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (all)
                ^
                 {
/datasets/git/builtin/checkout-index.c:321:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                err |= checkout_all(prefix, prefix_length);
                ^~~
/datasets/git/builtin/checkout-index.c:323:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pc_workers > 1)
                           ^
                            {
/datasets/git/builtin/checkout-index.c:324:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                err |= run_parallel_checkout(&state, pc_workers, pc_threshold,
                ^~~
/datasets/git/builtin/checkout-index.c:327:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err)
                ^
                 {
/datasets/git/builtin/checkout-index.c:331:49: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            write_locked_index(&the_index, &lock_file, COMMIT_LOCK))
                                                       ^
/datasets/git/./refs/../cache.h:744:23: note: expanded from macro 'COMMIT_LOCK'
#define COMMIT_LOCK             (1 << 0)
                                 ^
/datasets/git/builtin/checkout-index.c:331:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            write_locked_index(&the_index, &lock_file, COMMIT_LOCK))
                                                                    ^
                                                                     {
/datasets/git/builtin/checkout.c:12:1: warning: #includes are not sorted properly [llvm-include-order]
#include "hook.h"
^        ~~~~~~~~
         "entry.h"
/datasets/git/builtin/checkout.c:49:8: warning: accessing fields in struct 'checkout_opts' is inefficient due to padding; only needs 820 bytes but is using 824 bytes [altera-struct-pack-align]
struct checkout_opts {
       ^
/datasets/git/builtin/checkout.c:49:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'checkout_opts'
/datasets/git/builtin/checkout.c:49:8: warning: accessing fields in struct 'checkout_opts' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct checkout_opts {
       ^
/datasets/git/builtin/checkout.c:49:8: note: use "__attribute__((aligned(128)))" to align struct 'checkout_opts' to 128 bytes
/datasets/git/builtin/checkout.c:94:8: warning: accessing fields in struct 'branch_info' is inefficient due to padding; only needs 76 bytes but is using 80 bytes [altera-struct-pack-align]
struct branch_info {
       ^
/datasets/git/builtin/checkout.c:94:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'branch_info'
/datasets/git/builtin/checkout.c:94:8: warning: accessing fields in struct 'branch_info' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct branch_info {
       ^
/datasets/git/builtin/checkout.c:94:8: note: use "__attribute__((aligned(128)))" to align struct 'branch_info' to 128 bytes
/datasets/git/builtin/checkout.c:130:6: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int len;
            ^
                = 0
/datasets/git/builtin/checkout.c:131:22: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
        struct cache_entry *ce;
                            ^
                               = NULL
/datasets/git/builtin/checkout.c:131:22: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/checkout.c:132:6: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        int pos;
            ^
                = 0
/datasets/git/builtin/checkout.c:134:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (S_ISDIR(mode))
                          ^
                           {
/datasets/git/builtin/checkout.c:137:8: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        len = base->len + strlen(pathname);
              ^
/datasets/git/builtin/checkout.c:140:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(ce->name, base->buf, base->len);
        ^~~~~~
/datasets/git/builtin/checkout.c:140:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(ce->name, base->buf, base->len);
        ^~~~~~
/datasets/git/builtin/checkout.c:141:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(ce->name + base->len, pathname, len - base->len);
        ^~~~~~
/datasets/git/builtin/checkout.c:141:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(ce->name + base->len, pathname, len - base->len);
        ^~~~~~
/datasets/git/builtin/checkout.c:142:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ce->ce_flags = create_ce_flags(0) | CE_UPDATE;
                       ^
/datasets/git/builtin/checkout.c:142:38: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ce->ce_flags = create_ce_flags(0) | CE_UPDATE;
                                            ^
/datasets/git/./refs/../cache.h:167:31: note: expanded from macro 'CE_UPDATE'
#define CE_UPDATE            (1 << 16)
                              ^
/datasets/git/builtin/checkout.c:151:45: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        pos = index_name_pos(&the_index, ce->name, ce->ce_namelen);
                                                   ^
/datasets/git/builtin/checkout.c:155:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    !ce_intent_to_add(old) &&
                     ^
/datasets/git/./refs/../cache.h:246:31: note: expanded from macro 'ce_intent_to_add'
#define ce_intent_to_add(ce) ((ce)->ce_flags & CE_INTENT_TO_ADD)
                              ^                ~~~~~~~~~~~~~~~~
/datasets/git/builtin/checkout.c:157:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        old->ce_flags |= CE_UPDATE;
                        ^
/datasets/git/builtin/checkout.c:157:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        old->ce_flags |= CE_UPDATE;
                                         ^
/datasets/git/./refs/../cache.h:167:31: note: expanded from macro 'CE_UPDATE'
#define CE_UPDATE            (1 << 16)
                              ^
/datasets/git/builtin/checkout.c:164:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ADD_CACHE_OK_TO_ADD | ADD_CACHE_OK_TO_REPLACE);
                        ^
/datasets/git/./refs/../cache.h:840:29: note: expanded from macro 'ADD_CACHE_OK_TO_ADD'
#define ADD_CACHE_OK_TO_ADD 1           /* Ok to add */
                            ^
/datasets/git/builtin/checkout.c:180:53: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static int skip_same_name(const struct cache_entry *ce, int pos)
                                                    ^
/datasets/git/builtin/checkout.c:182:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (++pos < the_index.cache_nr &&
        ^
/datasets/git/builtin/checkout.c:183:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
               !strcmp(the_index.cache[pos]->name, ce->name))
                                                             ^
                                                              {
/datasets/git/builtin/checkout.c:188:61: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static int check_stage(int stage, const struct cache_entry *ce, int pos,
                                                            ^
/datasets/git/builtin/checkout.c:188:65: warning: 2 adjacent parameters of 'check_stage' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int check_stage(int stage, const struct cache_entry *ce, int pos,
                                                                ^~~~~~~~
/datasets/git/builtin/checkout.c:188:69: note: the first parameter in the range is 'pos'
static int check_stage(int stage, const struct cache_entry *ce, int pos,
                                                                    ^~~
/datasets/git/builtin/checkout.c:189:14: note: the last parameter in the range is 'overlay_mode'
                       int overlay_mode)
                           ^~~~~~~~~~~~
/datasets/git/builtin/checkout.c:191:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (pos < the_index.cache_nr &&
        ^
/datasets/git/builtin/checkout.c:193:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce_stage(the_index.cache[pos]) == stage)
                    ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/builtin/checkout.c:193:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ce_stage(the_index.cache[pos]) == stage)
                                                            ^
                                                             {
/datasets/git/builtin/checkout.c:197:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!overlay_mode)
                          ^
                           {
/datasets/git/builtin/checkout.c:199:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (stage == 2)
                       ^
                        {
/datasets/git/builtin/checkout.c:201:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else
        ^~~~
                        return error
/datasets/git/builtin/checkout.c:201:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/checkout.c:205:68: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static int check_stages(unsigned stages, const struct cache_entry *ce, int pos)
                                                                   ^
/datasets/git/builtin/checkout.c:210:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (pos < the_index.cache_nr) {
        ^
/datasets/git/builtin/checkout.c:212:7: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (strcmp(name, ce->name))
                    ^
                                           != 0
/datasets/git/builtin/checkout.c:212:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strcmp(name, ce->name))
                                           ^
                                            {
/datasets/git/builtin/checkout.c:214:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                seen |= (1 << ce_stage(ce));
                ^       ~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/checkout.c:214:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                seen |= (1 << ce_stage(ce));
                         ^
/datasets/git/builtin/checkout.c:214:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                seen |= (1 << ce_stage(ce));
                              ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/builtin/checkout.c:217:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((stages & seen) != stages)
                                      ^
                                       {
/datasets/git/builtin/checkout.c:223:64: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static int checkout_stage(int stage, const struct cache_entry *ce, int pos,
                                                               ^
/datasets/git/builtin/checkout.c:227:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (pos < the_index.cache_nr &&
        ^
/datasets/git/builtin/checkout.c:229:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce_stage(the_index.cache[pos]) == stage)
                    ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/builtin/checkout.c:229:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ce_stage(the_index.cache[pos]) == stage)
                                                            ^
                                                             {
/datasets/git/builtin/checkout.c:238:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (stage == 2)
                       ^
                        {
/datasets/git/builtin/checkout.c:240:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else
        ^~~~
                        return error
/datasets/git/builtin/checkout.c:240:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/checkout.c:247:22: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
        struct cache_entry *ce = the_index.cache[pos];
                            ^
/datasets/git/builtin/checkout.c:249:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        mmfile_t ancestor, ours, theirs;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/checkout.c:250:23: warning: variable 'merge_status' is not initialized [cppcoreguidelines-init-variables]
        enum ll_merge_result merge_status;
                             ^
/datasets/git/builtin/checkout.c:251:6: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int status;
            ^
                   = 0
/datasets/git/builtin/checkout.c:259:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(threeway, 0, sizeof(threeway));
        ^~~~~~
/datasets/git/builtin/checkout.c:259:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(threeway, 0, sizeof(threeway));
        ^~~~~~
/datasets/git/builtin/checkout.c:260:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (pos < the_index.cache_nr) {
        ^
/datasets/git/builtin/checkout.c:261:7: warning: variable 'stage' is not initialized [cppcoreguidelines-init-variables]
                int stage;
                    ^
                          = 0
/datasets/git/builtin/checkout.c:262:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                stage = ce_stage(ce);
                        ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/builtin/checkout.c:263:17: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (!stage || strcmp(path, ce->name))
                              ^
                                                     != 0
/datasets/git/builtin/checkout.c:263:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!stage || strcmp(path, ce->name))
                                                     ^
                                                      {
/datasets/git/builtin/checkout.c:266:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (stage == 2)
                               ^
                                {
/datasets/git/builtin/checkout.c:271:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_null_oid(&threeway[1]) || is_null_oid(&threeway[2]))
                                                                   ^
                                                                    {
/datasets/git/builtin/checkout.c:278:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&ll_opts, 0, sizeof(ll_opts));
        ^~~~~~
/datasets/git/builtin/checkout.c:278:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&ll_opts, 0, sizeof(ll_opts));
        ^~~~~~
/datasets/git/builtin/checkout.c:287:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (merge_status == LL_MERGE_BINARY_CONFLICT)
                                                     ^
                                                      {
/datasets/git/builtin/checkout.c:307:73: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_object_file(result_buf.ptr, result_buf.size, OBJ_BLOB, &oid))
                                                                               ^
                                                                                {
/datasets/git/builtin/checkout.c:311:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ce)
                ^
                 {
/datasets/git/builtin/checkout.c:317:62: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static void mark_ce_for_checkout_overlay(struct cache_entry *ce,
                                                             ^
/datasets/git/builtin/checkout.c:321:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ce->ce_flags &= ~CE_MATCHED;
        ^               ~~~~~~~~~~~
/datasets/git/builtin/checkout.c:321:18: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
        ce->ce_flags &= ~CE_MATCHED;
                        ^
/datasets/git/builtin/checkout.c:321:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ce->ce_flags &= ~CE_MATCHED;
                         ^
/datasets/git/./refs/../cache.h:181:31: note: expanded from macro 'CE_MATCHED'
#define CE_MATCHED           (1 << 26)
                              ^
/datasets/git/builtin/checkout.c:322:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!opts->ignore_skipworktree && ce_skip_worktree(ce))
                                          ^
/datasets/git/./refs/../cache.h:244:31: note: expanded from macro 'ce_skip_worktree'
#define ce_skip_worktree(ce) ((ce)->ce_flags & CE_SKIP_WORKTREE)
                              ^                ~~~~~~~~~~~~~~~~
/datasets/git/builtin/checkout.c:322:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opts->ignore_skipworktree && ce_skip_worktree(ce))
                                                               ^
                                                                {
/datasets/git/builtin/checkout.c:324:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (opts->source_tree && !(ce->ce_flags & CE_UPDATE))
                                   ^
/datasets/git/builtin/checkout.c:324:44: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (opts->source_tree && !(ce->ce_flags & CE_UPDATE))
                                                  ^
/datasets/git/./refs/../cache.h:167:31: note: expanded from macro 'CE_UPDATE'
#define CE_UPDATE            (1 << 16)
                              ^
/datasets/git/builtin/checkout.c:324:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->source_tree && !(ce->ce_flags & CE_UPDATE))
                                                             ^
                                                              {
/datasets/git/builtin/checkout.c:347:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ce_path_match(&the_index, ce, &opts->pathspec, ps_matched))
                                                                       ^
                                                                        {
/datasets/git/builtin/checkout.c:348:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ce->ce_flags |= CE_MATCHED;
                ^
/datasets/git/builtin/checkout.c:348:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ce->ce_flags |= CE_MATCHED;
                                ^
/datasets/git/./refs/../cache.h:181:31: note: expanded from macro 'CE_MATCHED'
#define CE_MATCHED           (1 << 26)
                              ^
/datasets/git/builtin/checkout.c:351:65: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static void mark_ce_for_checkout_no_overlay(struct cache_entry *ce,
                                                                ^
/datasets/git/builtin/checkout.c:355:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ce->ce_flags &= ~CE_MATCHED;
        ^               ~~~~~~~~~~~
/datasets/git/builtin/checkout.c:355:18: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
        ce->ce_flags &= ~CE_MATCHED;
                        ^
/datasets/git/builtin/checkout.c:355:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ce->ce_flags &= ~CE_MATCHED;
                         ^
/datasets/git/./refs/../cache.h:181:31: note: expanded from macro 'CE_MATCHED'
#define CE_MATCHED           (1 << 26)
                              ^
/datasets/git/builtin/checkout.c:356:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!opts->ignore_skipworktree && ce_skip_worktree(ce))
                                          ^
/datasets/git/./refs/../cache.h:244:31: note: expanded from macro 'ce_skip_worktree'
#define ce_skip_worktree(ce) ((ce)->ce_flags & CE_SKIP_WORKTREE)
                              ^                ~~~~~~~~~~~~~~~~
/datasets/git/builtin/checkout.c:356:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opts->ignore_skipworktree && ce_skip_worktree(ce))
                                                               ^
                                                                {
/datasets/git/builtin/checkout.c:359:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ce->ce_flags |= CE_MATCHED;
                ^
/datasets/git/builtin/checkout.c:359:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ce->ce_flags |= CE_MATCHED;
                                ^
/datasets/git/./refs/../cache.h:181:31: note: expanded from macro 'CE_MATCHED'
#define CE_MATCHED           (1 << 26)
                              ^
/datasets/git/builtin/checkout.c:360:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (opts->source_tree && !(ce->ce_flags & CE_UPDATE))
                                           ^
/datasets/git/builtin/checkout.c:360:45: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (opts->source_tree && !(ce->ce_flags & CE_UPDATE))
                                                          ^
/datasets/git/./refs/../cache.h:167:31: note: expanded from macro 'CE_UPDATE'
#define CE_UPDATE            (1 << 16)
                              ^
/datasets/git/builtin/checkout.c:360:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opts->source_tree && !(ce->ce_flags & CE_UPDATE))
                                                                     ^
                                                                      {
/datasets/git/builtin/checkout.c:366:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ce->ce_flags |= CE_REMOVE | CE_WT_REMOVE;
                        ^
/datasets/git/builtin/checkout.c:366:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ce->ce_flags |= CE_REMOVE | CE_WT_REMOVE;
                                        ^
/datasets/git/./refs/../cache.h:168:30: note: expanded from macro 'CE_REMOVE'
#define CE_REMOVE            (1 << 17)
                             ^~~~~~~~~
/datasets/git/builtin/checkout.c:366:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ce->ce_flags |= CE_REMOVE | CE_WT_REMOVE;
                                                    ^
/datasets/git/./refs/../cache.h:174:31: note: expanded from macro 'CE_WT_REMOVE'
#define CE_WT_REMOVE         (1 << 22) /* remove in work directory */
                              ^
/datasets/git/builtin/checkout.c:374:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int nr_checkouts = 0, nr_unmerged = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/checkout.c:376:6: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        int pos;
            ^
                = 0
/datasets/git/builtin/checkout.c:377:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int pc_workers, pc_threshold;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/checkout.c:377:6: warning: variable 'pc_workers' is not initialized [cppcoreguidelines-init-variables]
        int pc_workers, pc_threshold;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/checkout.c:377:18: warning: variable 'pc_threshold' is not initialized [cppcoreguidelines-init-variables]
        int pc_workers, pc_threshold;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/checkout.c:392:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pc_workers > 1)
                           ^
                            {
/datasets/git/builtin/checkout.c:395:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (pos = 0; pos < the_index.cache_nr; pos++) {
        ^
/datasets/git/builtin/checkout.c:395:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'pos' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (pos = 0; pos < the_index.cache_nr; pos++) {
                      ^
/datasets/git/builtin/checkout.c:396:23: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                struct cache_entry *ce = the_index.cache[pos];
                                    ^
/datasets/git/builtin/checkout.c:397:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce->ce_flags & CE_MATCHED) {
                    ^
/datasets/git/builtin/checkout.c:397:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce->ce_flags & CE_MATCHED) {
                                   ^
/datasets/git/./refs/../cache.h:181:31: note: expanded from macro 'CE_MATCHED'
#define CE_MATCHED           (1 << 26)
                              ^
/datasets/git/builtin/checkout.c:398:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!ce_stage(ce)) {
                             ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/builtin/checkout.c:399:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                errs |= checkout_entry(ce, &state,
                                ^~~~
/datasets/git/builtin/checkout.c:403:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (opts->writeout_stage)
                                                 ^
                                                  {
/datasets/git/builtin/checkout.c:404:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                errs |= checkout_stage(opts->writeout_stage,
                                ^~~~
/datasets/git/builtin/checkout.c:408:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (opts->merge)
                                             ^
                                              {
/datasets/git/builtin/checkout.c:409:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                errs |= checkout_merged(pos, &state,
                                ^~~~
/datasets/git/builtin/checkout.c:415:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pc_workers > 1)
                           ^
                            {
/datasets/git/builtin/checkout.c:416:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                errs |= run_parallel_checkout(&state, pc_workers, pc_threshold,
                ^~~~
/datasets/git/builtin/checkout.c:421:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        errs |= finish_delayed_checkout(&state, opts->show_progress);
        ^~~~
/datasets/git/builtin/checkout.c:424:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (nr_unmerged)
                                ^
                                 {
/datasets/git/builtin/checkout.c:429:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opts->source_tree)
                                      ^
                                       {
/datasets/git/builtin/checkout.c:436:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!nr_unmerged || nr_checkouts)
                                                      ^
                                                       {
/datasets/git/builtin/checkout.c:446:12: warning: function 'checkout_paths' has cognitive complexity of 65 (threshold 25) [readability-function-cognitive-complexity]
static int checkout_paths(const struct checkout_opts *opts,
           ^
/datasets/git/builtin/checkout.c:457:35: note: +1, including nesting penalty of 0, nesting level increased to 1
        trace2_cmd_mode(opts->patch_mode ? "patch" : "path");
                                         ^
/datasets/git/builtin/checkout.c:459:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->track != BRANCH_TRACK_UNSPECIFIED)
        ^
/datasets/git/builtin/checkout.c:462:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->new_branch_log)
        ^
/datasets/git/builtin/checkout.c:465:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->ignore_unmerged && opts->patch_mode)
        ^
/datasets/git/builtin/checkout.c:465:28: note: +1
        if (opts->ignore_unmerged && opts->patch_mode)
                                  ^
/datasets/git/builtin/checkout.c:469:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->force_detach)
        ^
/datasets/git/builtin/checkout.c:472:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->merge && opts->patch_mode)
        ^
/datasets/git/builtin/checkout.c:472:18: note: +1
        if (opts->merge && opts->patch_mode)
                        ^
/datasets/git/builtin/checkout.c:475:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->ignore_unmerged && opts->merge)
        ^
/datasets/git/builtin/checkout.c:475:28: note: +1
        if (opts->ignore_unmerged && opts->merge)
                                  ^
/datasets/git/builtin/checkout.c:479:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->new_branch)
        ^
/datasets/git/builtin/checkout.c:483:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!opts->checkout_worktree && !opts->checkout_index)
        ^
/datasets/git/builtin/checkout.c:483:31: note: +1
        if (!opts->checkout_worktree && !opts->checkout_index)
                                     ^
/datasets/git/builtin/checkout.c:487:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!opts->checkout_worktree && !opts->from_treeish)
        ^
/datasets/git/builtin/checkout.c:487:31: note: +1
        if (!opts->checkout_worktree && !opts->from_treeish)
                                     ^
/datasets/git/builtin/checkout.c:491:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->checkout_index && !opts->checkout_worktree &&
        ^
/datasets/git/builtin/checkout.c:491:55: note: +1
        if (opts->checkout_index && !opts->checkout_worktree &&
                                                             ^
/datasets/git/builtin/checkout.c:496:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->checkout_index && !opts->checkout_worktree &&
        ^
/datasets/git/builtin/checkout.c:496:55: note: +1
        if (opts->checkout_index && !opts->checkout_worktree &&
                                                             ^
/datasets/git/builtin/checkout.c:501:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->patch_mode) {
        ^
/datasets/git/builtin/checkout.c:516:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (rev && new_branch_info->commit && strcmp(rev, "HEAD"))
                ^
/datasets/git/builtin/checkout.c:516:38: note: +1
                if (rev && new_branch_info->commit && strcmp(rev, "HEAD"))
                                                   ^
/datasets/git/builtin/checkout.c:519:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opts->checkout_index && opts->checkout_worktree)
                ^
/datasets/git/builtin/checkout.c:519:28: note: +1
                if (opts->checkout_index && opts->checkout_worktree)
                                         ^
/datasets/git/builtin/checkout.c:521:8: note: +1, nesting level increased to 2
                else if (opts->checkout_index && !opts->checkout_worktree)
                     ^
/datasets/git/builtin/checkout.c:521:33: note: +1
                else if (opts->checkout_index && !opts->checkout_worktree)
                                              ^
/datasets/git/builtin/checkout.c:523:8: note: +1, nesting level increased to 2
                else if (!opts->checkout_index && opts->checkout_worktree)
                     ^
/datasets/git/builtin/checkout.c:523:34: note: +1
                else if (!opts->checkout_index && opts->checkout_worktree)
                                               ^
/datasets/git/builtin/checkout.c:525:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/checkout.c:532:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (repo_read_index_preload(the_repository, &opts->pathspec, 0) < 0)
        ^
/datasets/git/builtin/checkout.c:535:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->source_tree)
        ^
/datasets/git/builtin/checkout.c:544:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (pos = 0; pos < the_index.cache_nr; pos++)
        ^
/datasets/git/builtin/checkout.c:545:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opts->overlay_mode)
                ^
/datasets/git/builtin/checkout.c:549:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/checkout.c:554:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (report_path_error(ps_matched, &opts->pathspec)) {
        ^
/datasets/git/builtin/checkout.c:561:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->merge)
        ^
/datasets/git/builtin/checkout.c:565:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (pos = 0; pos < the_index.cache_nr; pos++) {
        ^
/datasets/git/builtin/checkout.c:567:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ce->ce_flags & CE_MATCHED) {
                ^
/datasets/git/builtin/checkout.c:568:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!ce_stage(ce))
                        ^
/datasets/git/builtin/checkout.c:570:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (opts->ignore_unmerged) {
                        ^
/datasets/git/builtin/checkout.c:571:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!opts->quiet)
                                ^
/datasets/git/builtin/checkout.c:573:11: note: +1, nesting level increased to 3
                        } else if (opts->writeout_stage) {
                               ^
/datasets/git/builtin/checkout.c:575:11: note: +1, nesting level increased to 3
                        } else if (opts->merge) {
                               ^
/datasets/git/builtin/checkout.c:577:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/builtin/checkout.c:584:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (errs)
        ^
/datasets/git/builtin/checkout.c:588:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->checkout_worktree)
        ^
/datasets/git/builtin/checkout.c:590:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/builtin/checkout.c:597:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->checkout_worktree && !opts->checkout_index && !opts->source_tree)
        ^
/datasets/git/builtin/checkout.c:597:55: note: +1
        if (opts->checkout_worktree && !opts->checkout_index && !opts->source_tree)
                                                             ^
/datasets/git/builtin/checkout.c:599:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/builtin/checkout.c:602:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (checkout_index) {
        ^
/datasets/git/builtin/checkout.c:603:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (write_locked_index(&the_index, &lock_file, COMMIT_LOCK))
                ^
/datasets/git/builtin/checkout.c:605:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/checkout.c:449:6: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        int pos;
            ^
                = 0
/datasets/git/builtin/checkout.c:450:15: warning: variable 'ps_matched' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
        static char *ps_matched;
                     ^
/datasets/git/builtin/checkout.c:452:17: warning: variable 'head' is not initialized [cppcoreguidelines-init-variables]
        struct commit *head;
                       ^
                            = NULL
/datasets/git/builtin/checkout.c:455:6: warning: variable 'checkout_index' is not initialized [cppcoreguidelines-init-variables]
        int checkout_index;
            ^
                           = 0
/datasets/git/builtin/checkout.c:459:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->track != BRANCH_TRACK_UNSPECIFIED)
                                                    ^
                                                     {
/datasets/git/builtin/checkout.c:462:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->new_branch_log)
                                 ^
                                  {
/datasets/git/builtin/checkout.c:465:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->ignore_unmerged && opts->patch_mode)
                                                      ^
                                                       {
/datasets/git/builtin/checkout.c:469:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->force_detach)
                               ^
                                {
/datasets/git/builtin/checkout.c:472:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->merge && opts->patch_mode)
                                            ^
                                             {
/datasets/git/builtin/checkout.c:475:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->ignore_unmerged && opts->merge)
                                                 ^
                                                  {
/datasets/git/builtin/checkout.c:479:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->new_branch)
                             ^
                              {
/datasets/git/builtin/checkout.c:483:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opts->checkout_worktree && !opts->checkout_index)
                                                              ^
                                                               {
/datasets/git/builtin/checkout.c:487:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opts->checkout_worktree && !opts->from_treeish)
                                                            ^
                                                             {
/datasets/git/builtin/checkout.c:492:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            opts->writeout_stage)
                                 ^
                                  {
/datasets/git/builtin/checkout.c:497:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            opts->merge)
                        ^
                         {
/datasets/git/builtin/checkout.c:502:15: warning: variable 'patch_mode' is not initialized [cppcoreguidelines-init-variables]
                const char *patch_mode;
                            ^
                                       = NULL
/datasets/git/builtin/checkout.c:516:41: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (rev && new_branch_info->commit && strcmp(rev, "HEAD"))
                                                      ^
                                                                          != 0
/datasets/git/builtin/checkout.c:516:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (rev && new_branch_info->commit && strcmp(rev, "HEAD"))
                                                                          ^
                                                                           {
/datasets/git/builtin/checkout.c:519:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opts->checkout_index && opts->checkout_worktree)
                                                                    ^
                                                                     {
/datasets/git/builtin/checkout.c:521:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (opts->checkout_index && !opts->checkout_worktree)
                                                                          ^
                                                                           {
/datasets/git/builtin/checkout.c:523:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!opts->checkout_index && opts->checkout_worktree)
                                                                          ^
                                                                           {
/datasets/git/builtin/checkout.c:525:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/checkout.c:532:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_read_index_preload(the_repository, &opts->pathspec, 0) < 0)
                                                                            ^
                                                                             {
/datasets/git/builtin/checkout.c:535:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->source_tree)
                              ^
                               {
/datasets/git/builtin/checkout.c:544:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (pos = 0; pos < the_index.cache_nr; pos++)
        ^
/datasets/git/builtin/checkout.c:544:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'pos' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (pos = 0; pos < the_index.cache_nr; pos++)
                      ^
/datasets/git/builtin/checkout.c:544:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (pos = 0; pos < the_index.cache_nr; pos++)
                                                      ^
                                                       {
/datasets/git/builtin/checkout.c:545:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opts->overlay_mode)
                                       ^
                                        {
/datasets/git/builtin/checkout.c:549:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/checkout.c:561:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->merge)
                        ^
                         {
/datasets/git/builtin/checkout.c:565:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (pos = 0; pos < the_index.cache_nr; pos++) {
        ^
/datasets/git/builtin/checkout.c:565:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'pos' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (pos = 0; pos < the_index.cache_nr; pos++) {
                      ^
/datasets/git/builtin/checkout.c:566:29: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                const struct cache_entry *ce = the_index.cache[pos];
                                          ^
/datasets/git/builtin/checkout.c:567:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce->ce_flags & CE_MATCHED) {
                    ^
/datasets/git/builtin/checkout.c:567:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce->ce_flags & CE_MATCHED) {
                                   ^
/datasets/git/./refs/../cache.h:181:31: note: expanded from macro 'CE_MATCHED'
#define CE_MATCHED           (1 << 26)
                              ^
/datasets/git/builtin/checkout.c:568:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!ce_stage(ce))
                             ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/builtin/checkout.c:568:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!ce_stage(ce))
                                          ^
                                           {
/datasets/git/builtin/checkout.c:571:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!opts->quiet)
                                                 ^
                                                  {
/datasets/git/builtin/checkout.c:574:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                errs |= check_stage(opts->writeout_stage, ce, pos, opts->overlay_mode);
                                ^~~~
/datasets/git/builtin/checkout.c:576:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                errs |= check_stages((1<<2) | (1<<3), ce, pos);
                                ^~~~
/datasets/git/builtin/checkout.c:576:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                errs |= check_stages((1<<2) | (1<<3), ce, pos);
                                                     ^~~~~~
/datasets/git/builtin/checkout.c:576:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                errs |= check_stages((1<<2) | (1<<3), ce, pos);
                                                      ^
/datasets/git/builtin/checkout.c:576:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                errs |= check_stages((1<<2) | (1<<3), ce, pos);
                                                               ^
/datasets/git/builtin/checkout.c:584:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (errs)
                 ^
                  {
/datasets/git/builtin/checkout.c:588:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->checkout_worktree)
                                    ^
                                     {
/datasets/git/builtin/checkout.c:589:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                errs |= checkout_worktree(opts, new_branch_info);
                ^~~~
/datasets/git/builtin/checkout.c:590:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/checkout.c:597:77: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->checkout_worktree && !opts->checkout_index && !opts->source_tree)
                                                                                   ^
                                                                                    {
/datasets/git/builtin/checkout.c:599:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/checkout.c:603:50: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (write_locked_index(&the_index, &lock_file, COMMIT_LOCK))
                                                               ^
/datasets/git/./refs/../cache.h:744:23: note: expanded from macro 'COMMIT_LOCK'
#define COMMIT_LOCK             (1 << 0)
                                 ^
/datasets/git/builtin/checkout.c:603:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (write_locked_index(&the_index, &lock_file, COMMIT_LOCK))
                                                                            ^
                                                                             {
/datasets/git/builtin/checkout.c:618:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        errs |= post_checkout_hook(head, head, 0);
        ^~~~
/datasets/git/builtin/checkout.c:629:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        rev.diffopt.output_format |= DIFF_FORMAT_NAME_STATUS;
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/checkout.c:639:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/checkout.c:641:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!parse_commit(commit))
                                  ^
                                   {
/datasets/git/builtin/checkout.c:644:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "%s %s... %s\n", msg,
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/checkout.c:644:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/checkout.c:647:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "%s %s %s\n", msg,
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/checkout.c:647:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/checkout.c:653:70: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static int reset_tree(struct tree *tree, const struct checkout_opts *o,
                                                                     ^
/datasets/git/builtin/checkout.c:660:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&opts, 0, sizeof(opts));
        ^~~~~~
/datasets/git/builtin/checkout.c:660:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&opts, 0, sizeof(opts));
        ^~~~~~
/datasets/git/builtin/checkout.c:690:10: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                return 128;
                       ^
/datasets/git/builtin/checkout.c:702:30: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        if (!dwim_ref(branch->name, strlen(branch->name), &branch->oid, &branch->refname, 0))
                                    ^
/datasets/git/builtin/checkout.c:702:87: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!dwim_ref(branch->name, strlen(branch->name), &branch->oid, &branch->refname, 0))
                                                                                             ^
                                                                                              {
/datasets/git/builtin/checkout.c:705:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        strbuf_branchname(&buf, branch->name, INTERPRET_BRANCH_LOCAL);
                                              ^
/datasets/git/./refs/../cache.h:1584:33: note: expanded from macro 'INTERPRET_BRANCH_LOCAL'
#define INTERPRET_BRANCH_LOCAL (1<<0)
                                ^
/datasets/git/builtin/checkout.c:706:6: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (strcmp(buf.buf, branch->name)) {
            ^
                                          != 0
/datasets/git/builtin/checkout.c:710:43: warning: 11 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        strbuf_splice(&buf, 0, 0, "refs/heads/", 11);
                                                 ^
/datasets/git/builtin/checkout.c:715:60: warning: 3 adjacent parameters of 'init_topts' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void init_topts(struct unpack_trees_options *topts, int merge,
                                                           ^~~~~~~~~~
/datasets/git/builtin/checkout.c:715:64: note: the first parameter in the range is 'merge'
static void init_topts(struct unpack_trees_options *topts, int merge,
                                                               ^~~~~
/datasets/git/builtin/checkout.c:716:33: note: the last parameter in the range is 'overwrite_ignore'
                       int show_progress, int overwrite_ignore,
                                              ^~~~~~~~~~~~~~~~
/datasets/git/builtin/checkout.c:719:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(topts, 0, sizeof(*topts));
        ^~~~~~
/datasets/git/builtin/checkout.c:719:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(topts, 0, sizeof(*topts));
        ^~~~~~
/datasets/git/builtin/checkout.c:735:12: warning: function 'merge_working_tree' has cognitive complexity of 45 (threshold 25) [readability-function-cognitive-complexity]
static int merge_working_tree(const struct checkout_opts *opts,
           ^
/datasets/git/builtin/checkout.c:745:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (repo_read_index_preload(the_repository, NULL, 0) < 0)
        ^
/datasets/git/builtin/checkout.c:749:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->new_orphan_branch && opts->orphan_from_empty_tree) {
        ^
/datasets/git/builtin/checkout.c:749:30: note: +1
        if (opts->new_orphan_branch && opts->orphan_from_empty_tree) {
                                    ^
/datasets/git/builtin/checkout.c:750:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (new_branch_info->commit)
                ^
/datasets/git/builtin/checkout.c:753:4: note: +1, nesting level increased to 1
        } else
          ^
/datasets/git/builtin/checkout.c:755:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->discard_changes) {
        ^
/datasets/git/builtin/checkout.c:757:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ret)
                ^
/datasets/git/builtin/checkout.c:759:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/checkout.c:767:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (unmerged_index(&the_index)) {
                ^
/datasets/git/builtin/checkout.c:776:36: note: +2, including nesting penalty of 1, nesting level increased to 2
                                       new_branch_info->commit ?
                                                               ^
/datasets/git/builtin/checkout.c:780:44: note: +2, including nesting penalty of 1, nesting level increased to 2
                old_commit_oid = old_branch_info->commit ?
                                                         ^
/datasets/git/builtin/checkout.c:784:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!tree)
                ^
/datasets/git/builtin/checkout.c:795:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ret == -1) {
                ^
/datasets/git/builtin/checkout.c:807:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!opts->merge)
                        ^
/datasets/git/builtin/checkout.c:814:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!old_branch_info->commit)
                        ^
/datasets/git/builtin/checkout.c:818:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (repo_index_has_changes(the_repository, old_tree, &sb))
                        ^
/datasets/git/builtin/checkout.c:844:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ret)
                        ^
/datasets/git/builtin/checkout.c:847:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!old_branch_info->name) {
                        ^
/datasets/git/builtin/checkout.c:859:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ret < 0)
                        ^
/datasets/git/builtin/checkout.c:866:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ret)
                        ^
/datasets/git/builtin/checkout.c:871:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!cache_tree_fully_valid(the_index.cache_tree))
        ^
/datasets/git/builtin/checkout.c:874:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (write_locked_index(&the_index, &lock_file, COMMIT_LOCK))
        ^
/datasets/git/builtin/checkout.c:877:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!opts->discard_changes && !opts->quiet && new_branch_info->commit)
        ^
/datasets/git/builtin/checkout.c:877:45: note: +1
        if (!opts->discard_changes && !opts->quiet && new_branch_info->commit)
                                                   ^
/datasets/git/builtin/checkout.c:740:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/builtin/checkout.c:742:15: warning: variable 'new_tree' is not initialized [cppcoreguidelines-init-variables]
        struct tree *new_tree;
                     ^
                              = NULL
/datasets/git/builtin/checkout.c:745:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_read_index_preload(the_repository, NULL, 0) < 0)
                                                                 ^
                                                                  {
/datasets/git/builtin/checkout.c:750:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (new_branch_info->commit)
                                            ^
                                             {
/datasets/git/builtin/checkout.c:753:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/builtin/checkout.c:757:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret)
                        ^
                         {
/datasets/git/builtin/checkout.c:761:16: warning: variable 'tree' is not initialized [cppcoreguidelines-init-variables]
                struct tree *tree;
                             ^
                                  = NULL
/datasets/git/builtin/checkout.c:763:27: warning: variable 'old_commit_oid' is not initialized [cppcoreguidelines-init-variables]
                const struct object_id *old_commit_oid;
                                        ^
                                                       = NULL
/datasets/git/builtin/checkout.c:765:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                refresh_index(&the_index, REFRESH_QUIET, NULL, NULL, NULL);
                                          ^
/datasets/git/./refs/../cache.h:923:43: note: expanded from macro 'REFRESH_QUIET'
#define REFRESH_QUIET                    (1 << 2) /* be quiet about it */
                                          ^
/datasets/git/builtin/checkout.c:784:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!tree)
                          ^
                           {
/datasets/git/builtin/checkout.c:801:17: warning: variable 'work' is not initialized [cppcoreguidelines-init-variables]
                        struct tree *work;
                                     ^
                                          = NULL
/datasets/git/builtin/checkout.c:802:17: warning: variable 'old_tree' is not initialized [cppcoreguidelines-init-variables]
                        struct tree *old_tree;
                                     ^
                                              = NULL
/datasets/git/builtin/checkout.c:803:25: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                        struct merge_options o;
                                             ^
/datasets/git/builtin/checkout.c:804:18: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                        struct strbuf sb = STRBUF_INIT;
                                      ^
/datasets/git/builtin/checkout.c:807:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!opts->merge)
                                         ^
                                          {
/datasets/git/builtin/checkout.c:814:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!old_branch_info->commit)
                                                     ^
                                                      {
/datasets/git/builtin/checkout.c:818:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (repo_index_has_changes(the_repository, old_tree, &sb))
                                                                                  ^
                                                                                   {
/datasets/git/builtin/checkout.c:844:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ret)
                                ^
                                 {
/datasets/git/builtin/checkout.c:859:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ret < 0)
                                    ^
                                     {
/datasets/git/builtin/checkout.c:860:5: warning: function is not thread safe [concurrency-mt-unsafe]
                                exit(128);
                                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/checkout.c:866:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ret)
                                ^
                                 {
/datasets/git/builtin/checkout.c:871:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!cache_tree_fully_valid(the_index.cache_tree))
                                                          ^
                                                           {
/datasets/git/builtin/checkout.c:872:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                cache_tree_update(&the_index, WRITE_TREE_SILENT | WRITE_TREE_REPAIR);
                                              ^
/datasets/git/./cache-tree.h:43:27: note: expanded from macro 'WRITE_TREE_SILENT'
#define WRITE_TREE_SILENT 8
                          ^
/datasets/git/builtin/checkout.c:874:49: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (write_locked_index(&the_index, &lock_file, COMMIT_LOCK))
                                                       ^
/datasets/git/./refs/../cache.h:744:23: note: expanded from macro 'COMMIT_LOCK'
#define COMMIT_LOCK             (1 << 0)
                                 ^
/datasets/git/builtin/checkout.c:874:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_locked_index(&the_index, &lock_file, COMMIT_LOCK))
                                                                    ^
                                                                     {
/datasets/git/builtin/checkout.c:877:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opts->discard_changes && !opts->quiet && new_branch_info->commit)
                                                                              ^
                                                                               {
/datasets/git/builtin/checkout.c:885:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/checkout.c:888:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!format_tracking_info(branch, &sb, AHEAD_BEHIND_FULL))
                                                                  ^
                                                                   {
/datasets/git/builtin/checkout.c:890:2: warning: the value returned by this function should be used [cert-err33-c]
        fputs(sb.buf, stdout);
        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/checkout.c:890:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/checkout.c:894:13: warning: function 'update_refs_for_switch' has cognitive complexity of 66 (threshold 25) [readability-function-cognitive-complexity]
static void update_refs_for_switch(const struct checkout_opts *opts,
            ^
/datasets/git/builtin/checkout.c:900:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->new_branch) {
        ^
/datasets/git/builtin/checkout.c:901:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opts->new_orphan_branch) {
                ^
/datasets/git/builtin/checkout.c:905:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (opts->new_branch_log &&
                        ^
/datasets/git/builtin/checkout.c:905:29: note: +1
                        if (opts->new_branch_log &&
                                                 ^
/datasets/git/builtin/checkout.c:911:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (ret) {
                                ^
/datasets/git/builtin/checkout.c:922:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/checkout.c:925:34: note: +3, including nesting penalty of 2, nesting level increased to 3
                                      opts->new_branch_force ? 1 : 0,
                                                             ^
/datasets/git/builtin/checkout.c:926:34: note: +3, including nesting penalty of 2, nesting level increased to 3
                                      opts->new_branch_force ? 1 : 0,
                                                             ^
/datasets/git/builtin/checkout.c:938:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!old_desc && old_branch_info->commit)
        ^
/datasets/git/builtin/checkout.c:938:16: note: +1
        if (!old_desc && old_branch_info->commit)
                      ^
/datasets/git/builtin/checkout.c:942:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!reflog_msg)
        ^
/datasets/git/builtin/checkout.c:944:13: note: +2, including nesting penalty of 1, nesting level increased to 2
                        old_desc ? old_desc : "(invalid)", new_branch_info->name);
                                 ^
/datasets/git/builtin/checkout.c:945:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/builtin/checkout.c:948:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(new_branch_info->name, "HEAD") && !new_branch_info->path && !opts->force_detach) {
        ^
/datasets/git/builtin/checkout.c:948:71: note: +1
        if (!strcmp(new_branch_info->name, "HEAD") && !new_branch_info->path && !opts->force_detach) {
                                                                             ^
/datasets/git/builtin/checkout.c:950:9: note: +1, nesting level increased to 1
        } else if (opts->force_detach || !new_branch_info->path) {      /* No longer on any branch. */
               ^
/datasets/git/builtin/checkout.c:950:32: note: +1
        } else if (opts->force_detach || !new_branch_info->path) {      /* No longer on any branch. */
                                      ^
/datasets/git/builtin/checkout.c:953:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!opts->quiet) {
                ^
/datasets/git/builtin/checkout.c:954:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (old_branch_info->path &&
                        ^
/datasets/git/builtin/checkout.c:955:45: note: +1
                            advice_enabled(ADVICE_DETACHED_HEAD) && !opts->force_detach)
                                                                 ^
/datasets/git/builtin/checkout.c:959:9: note: +1, nesting level increased to 1
        } else if (new_branch_info->path) {     /* Switch branches. */
               ^
/datasets/git/builtin/checkout.c:960:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (create_symref("HEAD", new_branch_info->path, msg.buf) < 0)
                ^
/datasets/git/builtin/checkout.c:962:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!opts->quiet) {
                ^
/datasets/git/builtin/checkout.c:963:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (old_branch_info->path && !strcmp(new_branch_info->path, old_branch_info->path)) {
                        ^
/datasets/git/builtin/checkout.c:963:30: note: +1
                        if (old_branch_info->path && !strcmp(new_branch_info->path, old_branch_info->path)) {
                                                  ^
/datasets/git/builtin/checkout.c:964:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (opts->new_branch_force)
                                ^
/datasets/git/builtin/checkout.c:967:5: note: +1, nesting level increased to 4
                                else
                                ^
/datasets/git/builtin/checkout.c:970:11: note: +1, nesting level increased to 3
                        } else if (opts->new_branch) {
                               ^
/datasets/git/builtin/checkout.c:971:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (opts->branch_exists)
                                ^
/datasets/git/builtin/checkout.c:973:5: note: +1, nesting level increased to 4
                                else
                                ^
/datasets/git/builtin/checkout.c:975:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/builtin/checkout.c:980:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (old_branch_info->path && old_branch_info->name) {
                ^
/datasets/git/builtin/checkout.c:980:29: note: +1
                if (old_branch_info->path && old_branch_info->name) {
                                          ^
/datasets/git/builtin/checkout.c:981:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!ref_exists(old_branch_info->path) && reflog_exists(old_branch_info->path))
                        ^
/datasets/git/builtin/checkout.c:981:43: note: +1
                        if (!ref_exists(old_branch_info->path) && reflog_exists(old_branch_info->path))
                                                               ^
/datasets/git/builtin/checkout.c:987:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!opts->quiet &&
        ^
/datasets/git/builtin/checkout.c:987:19: note: +1
        if (!opts->quiet &&
                         ^
/datasets/git/builtin/checkout.c:988:29: note: +1
            (new_branch_info->path || (!opts->force_detach && !strcmp(new_branch_info->name, "HEAD"))))
                                   ^
/datasets/git/builtin/checkout.c:988:53: note: +1
            (new_branch_info->path || (!opts->force_detach && !strcmp(new_branch_info->name, "HEAD"))))
                                                           ^
/datasets/git/builtin/checkout.c:899:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *old_desc, *reflog_msg;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/checkout.c:899:14: warning: variable 'old_desc' is not initialized [cppcoreguidelines-init-variables]
        const char *old_desc, *reflog_msg;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/checkout.c:899:25: warning: variable 'reflog_msg' is not initialized [cppcoreguidelines-init-variables]
        const char *old_desc, *reflog_msg;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/checkout.c:902:10: warning: variable 'refname' is not initialized [cppcoreguidelines-init-variables]
                        char *refname;
                              ^
                                      = NULL
/datasets/git/builtin/checkout.c:907:9: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
                                int ret;
                                    ^
                                        = 0
/datasets/git/builtin/checkout.c:912:6: warning: the value returned by this function should be used [cert-err33-c]
                                        fprintf(stderr, _("Can not do reflog for '%s': %s\n"),
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/checkout.c:912:6: note: cast the expression to void to silence this warning
/datasets/git/builtin/checkout.c:922:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/checkout.c:938:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!old_desc && old_branch_info->commit)
                                                 ^
                                                  {
/datasets/git/builtin/checkout.c:941:15: warning: function is not thread safe [concurrency-mt-unsafe]
        reflog_msg = getenv("GIT_REFLOG_ACTION");
                     ^
/datasets/git/builtin/checkout.c:942:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!reflog_msg)
                        ^
                         {
/datasets/git/builtin/checkout.c:945:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/checkout.c:952:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                           REF_NO_DEREF, UPDATE_REFS_DIE_ON_ERR);
                           ^
/datasets/git/./refs.h:631:23: note: expanded from macro 'REF_NO_DEREF'
#define REF_NO_DEREF (1 << 0)
                      ^
/datasets/git/builtin/checkout.c:955:68: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            advice_enabled(ADVICE_DETACHED_HEAD) && !opts->force_detach)
                                                                                        ^
                                                                                         {
/datasets/git/builtin/checkout.c:960:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (create_symref("HEAD", new_branch_info->path, msg.buf) < 0)
                                                                              ^
                                                                               {
/datasets/git/builtin/checkout.c:964:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (opts->new_branch_force)
                                                           ^
                                                            {
/datasets/git/builtin/checkout.c:965:6: warning: the value returned by this function should be used [cert-err33-c]
                                        fprintf(stderr, _("Reset branch '%s'\n"),
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/checkout.c:965:6: note: cast the expression to void to silence this warning
/datasets/git/builtin/checkout.c:967:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                else
                                    ^
                                     {
/datasets/git/builtin/checkout.c:968:6: warning: the value returned by this function should be used [cert-err33-c]
                                        fprintf(stderr, _("Already on '%s'\n"),
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/checkout.c:968:6: note: cast the expression to void to silence this warning
/datasets/git/builtin/checkout.c:971:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (opts->branch_exists)
                                                        ^
                                                         {
/datasets/git/builtin/checkout.c:972:6: warning: the value returned by this function should be used [cert-err33-c]
                                        fprintf(stderr, _("Switched to and reset branch '%s'\n"), new_branch_info->name);
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/checkout.c:972:6: note: cast the expression to void to silence this warning
/datasets/git/builtin/checkout.c:973:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                else
                                    ^
                                     {
/datasets/git/builtin/checkout.c:974:6: warning: the value returned by this function should be used [cert-err33-c]
                                        fprintf(stderr, _("Switched to a new branch '%s'\n"), new_branch_info->name);
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/checkout.c:974:6: note: cast the expression to void to silence this warning
/datasets/git/builtin/checkout.c:976:5: warning: the value returned by this function should be used [cert-err33-c]
                                fprintf(stderr, _("Switched to branch '%s'\n"),
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/checkout.c:976:5: note: cast the expression to void to silence this warning
/datasets/git/builtin/checkout.c:981:83: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!ref_exists(old_branch_info->path) && reflog_exists(old_branch_info->path))
                                                                                                       ^
                                                                                                        {
/datasets/git/builtin/checkout.c:988:97: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            (new_branch_info->path || (!opts->force_detach && !strcmp(new_branch_info->name, "HEAD"))))
                                                                                                       ^
                                                                                                        {
/datasets/git/builtin/checkout.c:996:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        add_pending_oid(cb_data, refname, oid, UNINTERESTING);
                                               ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/builtin/checkout.c:1000:48: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static void describe_one_orphan(struct strbuf *sb, struct commit *commit)
                                               ^
/datasets/git/builtin/checkout.c:1005:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!parse_commit(commit))
                                  ^
                                   {
/datasets/git/builtin/checkout.c:1010:1: warning: replace macro with enum [modernize-macro-to-enum]
#define ORPHAN_CUTOFF 4
^~~~~~~~
                      =
/datasets/git/builtin/checkout.c:1010:9: warning: macro 'ORPHAN_CUTOFF' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define ORPHAN_CUTOFF 4
        ^
/datasets/git/builtin/checkout.c:1013:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit *c, *last = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/checkout.c:1013:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/builtin/checkout.c:1013:17: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        struct commit *c, *last = NULL;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/checkout.c:1013:17: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/checkout.c:1014:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/checkout.c:1016:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((c = get_revision(revs)) != NULL) {
        ^
/datasets/git/builtin/checkout.c:1016:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'c' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((c = get_revision(revs)) != NULL) {
               ^
/datasets/git/builtin/checkout.c:1017:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (lost < ORPHAN_CUTOFF)
                                         ^
                                          {
/datasets/git/builtin/checkout.c:1024:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (more == 1)
                              ^
                               {
/datasets/git/builtin/checkout.c:1026:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/checkout.c:1030:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(stderr,
        ^~~~~~~~~~~~~~~
/datasets/git/builtin/checkout.c:1030:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/checkout.c:1048:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (advice_enabled(ADVICE_DETACHED_HEAD))
                                                 ^
                                                  {
/datasets/git/builtin/checkout.c:1049:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr,
                ^~~~~~~~~~~~~~~
/datasets/git/builtin/checkout.c:1049:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/checkout.c:1077:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        object->flags &= ~UNINTERESTING;
                          ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/builtin/checkout.c:1081:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (new_commit)
                       ^
                        {
/datasets/git/builtin/checkout.c:1084:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                UNINTERESTING);
                                ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/builtin/checkout.c:1086:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prepare_revision_walk(&revs))
                                         ^
                                          {
/datasets/git/builtin/checkout.c:1088:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(old_commit->object.flags & UNINTERESTING))
                                         ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/builtin/checkout.c:1088:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(old_commit->object.flags & UNINTERESTING))
                                                        ^
                                                         {
/datasets/git/builtin/checkout.c:1090:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/checkout.c:1094:42: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        repo_clear_commit_marks(the_repository, ALL_REV_FLAGS);
                                                ^
/datasets/git/./revision.h:52:26: note: expanded from macro 'ALL_REV_FLAGS'
#define ALL_REV_FLAGS   (((1u<<11)-1) | NOT_USER_GIVEN | TRACK_LINEAR | PULL_MERGE)
                           ^   ~~
/datasets/git/builtin/checkout.c:1104:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int flag, writeout_error = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/checkout.c:1104:6: warning: variable 'flag' is not initialized [cppcoreguidelines-init-variables]
        int flag, writeout_error = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/checkout.c:1109:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&old_branch_info, 0, sizeof(old_branch_info));
        ^~~~~~
/datasets/git/builtin/checkout.c:1109:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&old_branch_info, 0, sizeof(old_branch_info));
        ^~~~~~
/datasets/git/builtin/checkout.c:1111:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (old_branch_info.path)
                                 ^
                                  {
/datasets/git/builtin/checkout.c:1113:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flag & REF_ISSYMREF))
              ^~~~
/datasets/git/builtin/checkout.c:1113:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(flag & REF_ISSYMREF))
                                   ^
                                    {
/datasets/git/builtin/checkout.c:1114:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FREE_AND_NULL(old_branch_info.path);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/checkout.c:1118:15: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                const char *p;
                            ^
                              = NULL
/datasets/git/builtin/checkout.c:1118:15: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/checkout.c:1119:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (skip_prefix(old_branch_info.path, prefix, &p))
                                                                  ^
                                                                   {
/datasets/git/builtin/checkout.c:1124:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (new_branch_info->name)
                                          ^
                                           {
/datasets/git/builtin/checkout.c:1134:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!new_branch_info->commit)
                                             ^
                                              {
/datasets/git/builtin/checkout.c:1138:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opts->only_merge_on_switching_branches)
                                                           ^
                                                            {
/datasets/git/builtin/checkout.c:1150:123: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opts->quiet && !old_branch_info.path && old_branch_info.commit && new_branch_info->commit != old_branch_info.commit)
                                                                                                                                 ^
                                                                                                                                  {
/datasets/git/builtin/checkout.c:1161:74: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int git_checkout_config(const char *var, const char *value, void *cb)
                                                                         ^
/datasets/git/builtin/checkout.c:1174:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (starts_with(var, "submodule."))
                                           ^
                                            {
/datasets/git/builtin/checkout.c:1193:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !read_ref(new_branch_info->path, &branch_rev))
                                                          ^
                                                           {
/datasets/git/builtin/checkout.c:1195:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/checkout.c:1197:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FREE_AND_NULL(new_branch_info->path);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/checkout.c:1241:12: warning: function 'parse_branchname_arg' has cognitive complexity of 37 (threshold 25) [readability-function-cognitive-complexity]
static int parse_branchname_arg(int argc, const char **argv,
           ^
/datasets/git/builtin/checkout.c:1295:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!argc)
        ^
/datasets/git/builtin/checkout.c:1298:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!opts->accept_pathspec) {
        ^
/datasets/git/builtin/checkout.c:1299:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (argc > 1)
                ^
/datasets/git/builtin/checkout.c:1306:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < argc; i++) {
        ^
/datasets/git/builtin/checkout.c:1307:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opts->accept_pathspec && !strcmp(argv[i], "--")) {
                ^
/datasets/git/builtin/checkout.c:1307:29: note: +1
                if (opts->accept_pathspec && !strcmp(argv[i], "--")) {
                                          ^
/datasets/git/builtin/checkout.c:1312:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (dash_dash_pos == 0)
        ^
/datasets/git/builtin/checkout.c:1314:7: note: +1, nesting level increased to 1
        else if (dash_dash_pos == 1)
             ^
/datasets/git/builtin/checkout.c:1316:7: note: +1, nesting level increased to 1
        else if (dash_dash_pos >= 2)
             ^
/datasets/git/builtin/checkout.c:1318:44: note: +1
        opts->count_checkout_paths = !opts->quiet && !has_dash_dash;
                                                  ^
/datasets/git/builtin/checkout.c:1320:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(arg, "-"))
        ^
/datasets/git/builtin/checkout.c:1323:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (get_oid_mb(arg, rev)) {
        ^
/datasets/git/builtin/checkout.c:1334:48: note: +1
                int could_be_checkout_paths = !has_dash_dash &&
                                                             ^
/datasets/git/builtin/checkout.c:1337:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!has_dash_dash && !no_wildcard(arg))
                ^
/datasets/git/builtin/checkout.c:1337:22: note: +1
                if (!has_dash_dash && !no_wildcard(arg))
                                   ^
/datasets/git/builtin/checkout.c:1344:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!(argc == 1 && !has_dash_dash) &&
                ^
/datasets/git/builtin/checkout.c:1345:37: note: +1
                    !(argc == 2 && has_dash_dash) &&
                                                  ^
/datasets/git/builtin/checkout.c:1349:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (recover_with_dwim) {
                ^
/datasets/git/builtin/checkout.c:1352:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (remote) {
                        ^
/datasets/git/builtin/checkout.c:1356:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/builtin/checkout.c:1361:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!recover_with_dwim) {
                ^
/datasets/git/builtin/checkout.c:1362:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (has_dash_dash)
                        ^
/datasets/git/builtin/checkout.c:1375:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!opts->source_tree)                   /* case (1): want a tree */
        ^
/datasets/git/builtin/checkout.c:1378:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!has_dash_dash) {   /* case (3).(d) -> (1) */
        ^
/datasets/git/builtin/checkout.c:1385:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (argc)
                ^
/datasets/git/builtin/checkout.c:1387:9: note: +1, nesting level increased to 1
        } else if (opts->accept_pathspec) {
               ^
/datasets/git/builtin/checkout.c:1249:14: warning: variable 'arg' is not initialized [cppcoreguidelines-init-variables]
        const char *arg;
                    ^
                        = NULL
/datasets/git/builtin/checkout.c:1250:6: warning: variable 'dash_dash_pos' is not initialized [cppcoreguidelines-init-variables]
        int dash_dash_pos;
            ^
                          = 0
/datasets/git/builtin/checkout.c:1252:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/checkout.c:1252:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/checkout.c:1295:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!argc)
                  ^
                   {
/datasets/git/builtin/checkout.c:1299:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (argc > 1)
                             ^
                              {
/datasets/git/builtin/checkout.c:1306:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < argc; i++) {
        ^
/datasets/git/builtin/checkout.c:1312:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (dash_dash_pos == 0)
                               ^
                                {
/datasets/git/builtin/checkout.c:1314:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (dash_dash_pos == 1)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/checkout.c:1314:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (dash_dash_pos == 1)
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/checkout.c:1316:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (dash_dash_pos >= 2)
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/checkout.c:1320:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(arg, "-"))
                              ^
                               {
/datasets/git/builtin/checkout.c:1337:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!has_dash_dash && !no_wildcard(arg))
                                                        ^
                                                         {
/datasets/git/builtin/checkout.c:1346:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    opts->accept_pathspec)
                                          ^
                                           {
/datasets/git/builtin/checkout.c:1362:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (has_dash_dash)
                                          ^
                                           {
/datasets/git/builtin/checkout.c:1375:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opts->source_tree)                   /* case (1): want a tree */
                               ^
                                {
/datasets/git/builtin/checkout.c:1385:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (argc)
                         ^
                          {
/datasets/git/builtin/checkout.c:1398:6: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int status;
            ^
                   = 0
/datasets/git/builtin/checkout.c:1403:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opts->new_branch)
                              ^
                               {
/datasets/git/builtin/checkout.c:1408:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opts->quiet)
                         ^
                          {
/datasets/git/builtin/checkout.c:1409:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, _("Switched to a new branch '%s'\n"),
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/checkout.c:1409:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/checkout.c:1417:8: warning: variable 'to_free' is not initialized [cppcoreguidelines-init-variables]
        char *to_free;
              ^
                      = NULL
/datasets/git/builtin/checkout.c:1418:6: warning: variable 'code' is not initialized [cppcoreguidelines-init-variables]
        int code;
            ^
                 = 0
/datasets/git/builtin/checkout.c:1420:34: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        if (dwim_ref(branch_info->name, strlen(branch_info->name), &oid, &to_free, 0) == 1) {
                                        ^
/datasets/git/builtin/checkout.c:1423:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (skip_prefix(ref, "refs/tags/", &ref))
                                                         ^
                                                          {
/datasets/git/builtin/checkout.c:1425:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (skip_prefix(ref, "refs/remotes/", &ref))
                                                                 ^
                                                                  {
/datasets/git/builtin/checkout.c:1427:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/checkout.c:1430:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (branch_info->commit)
                                     ^
                                      {
/datasets/git/builtin/checkout.c:1432:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/checkout.c:1439:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (advice_enabled(ADVICE_SUGGEST_DETACHING_HEAD))
                                                          ^
                                                           {
/datasets/git/builtin/checkout.c:1442:2: warning: function is not thread safe [concurrency-mt-unsafe]
        exit(code);
        ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/checkout.c:1449:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&state, 0, sizeof(state));
        ^~~~~~
/datasets/git/builtin/checkout.c:1449:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&state, 0, sizeof(state));
        ^~~~~~
/datasets/git/builtin/checkout.c:1452:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (state.merge_in_progress)
                                    ^
                                     {
/datasets/git/builtin/checkout.c:1456:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (state.am_in_progress)
                                 ^
                                  {
/datasets/git/builtin/checkout.c:1460:71: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (state.rebase_interactive_in_progress || state.rebase_in_progress)
                                                                             ^
                                                                              {
/datasets/git/builtin/checkout.c:1464:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (state.cherry_pick_in_progress)
                                          ^
                                           {
/datasets/git/builtin/checkout.c:1468:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (state.revert_in_progress)
                                     ^
                                      {
/datasets/git/builtin/checkout.c:1472:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (state.bisect_in_progress)
                                     ^
                                      {
/datasets/git/builtin/checkout.c:1476:12: warning: function 'checkout_branch' has cognitive complexity of 38 (threshold 25) [readability-function-cognitive-complexity]
static int checkout_branch(struct checkout_opts *opts,
           ^
/datasets/git/builtin/checkout.c:1479:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->pathspec.nr)
        ^
/datasets/git/builtin/checkout.c:1482:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->patch_mode)
        ^
/datasets/git/builtin/checkout.c:1486:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->overlay_mode != -1)
        ^
/datasets/git/builtin/checkout.c:1490:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->writeout_stage)
        ^
/datasets/git/builtin/checkout.c:1494:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->force && opts->merge)
        ^
/datasets/git/builtin/checkout.c:1494:18: note: +1
        if (opts->force && opts->merge)
                        ^
/datasets/git/builtin/checkout.c:1497:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->discard_changes && opts->merge)
        ^
/datasets/git/builtin/checkout.c:1497:28: note: +1
        if (opts->discard_changes && opts->merge)
                                  ^
/datasets/git/builtin/checkout.c:1500:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->force_detach && opts->new_branch)
        ^
/datasets/git/builtin/checkout.c:1500:25: note: +1
        if (opts->force_detach && opts->new_branch)
                               ^
/datasets/git/builtin/checkout.c:1504:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->new_orphan_branch) {
        ^
/datasets/git/builtin/checkout.c:1505:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opts->track != BRANCH_TRACK_UNSPECIFIED)
                ^
/datasets/git/builtin/checkout.c:1507:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opts->orphan_from_empty_tree && new_branch_info->name)
                ^
/datasets/git/builtin/checkout.c:1507:36: note: +1
                if (opts->orphan_from_empty_tree && new_branch_info->name)
                                                 ^
/datasets/git/builtin/checkout.c:1509:9: note: +1, nesting level increased to 1
        } else if (opts->force_detach) {
               ^
/datasets/git/builtin/checkout.c:1510:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opts->track != BRANCH_TRACK_UNSPECIFIED)
                ^
/datasets/git/builtin/checkout.c:1512:9: note: +1, nesting level increased to 1
        } else if (opts->track == BRANCH_TRACK_UNSPECIFIED)
               ^
/datasets/git/builtin/checkout.c:1515:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (new_branch_info->name && !new_branch_info->commit)
        ^
/datasets/git/builtin/checkout.c:1515:28: note: +1
        if (new_branch_info->name && !new_branch_info->commit)
                                  ^
/datasets/git/builtin/checkout.c:1519:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!opts->switch_branch_doing_nothing_is_ok &&
        ^
/datasets/git/builtin/checkout.c:1521:24: note: +1
            !opts->new_branch &&
                              ^
/datasets/git/builtin/checkout.c:1525:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!opts->implicit_detach &&
        ^
/datasets/git/builtin/checkout.c:1529:28: note: +1
            new_branch_info->name &&
                                  ^
/datasets/git/builtin/checkout.c:1533:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!opts->can_switch_when_in_progress)
        ^
/datasets/git/builtin/checkout.c:1536:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (new_branch_info->path && !opts->force_detach && !opts->new_branch &&
        ^
/datasets/git/builtin/checkout.c:1536:72: note: +1
        if (new_branch_info->path && !opts->force_detach && !opts->new_branch &&
                                                                              ^
/datasets/git/builtin/checkout.c:1540:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (head_ref &&
                ^
/datasets/git/builtin/checkout.c:1540:16: note: +1
                if (head_ref &&
                             ^
/datasets/git/builtin/checkout.c:1541:31: note: +1
                    (!(flag & REF_ISSYMREF) || strcmp(head_ref, new_branch_info->path)))
                                            ^
/datasets/git/builtin/checkout.c:1546:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!new_branch_info->commit && opts->new_branch) {
        ^
/datasets/git/builtin/checkout.c:1546:31: note: +1
        if (!new_branch_info->commit && opts->new_branch) {
                                     ^
/datasets/git/builtin/checkout.c:1550:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!read_ref_full("HEAD", 0, &rev, &flag) &&
                ^
/datasets/git/builtin/checkout.c:1551:29: note: +1
                    (flag & REF_ISSYMREF) && is_null_oid(&rev))
                                          ^
/datasets/git/builtin/checkout.c:1479:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->pathspec.nr)
                              ^
                               {
/datasets/git/builtin/checkout.c:1482:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->patch_mode)
                             ^
                              {
/datasets/git/builtin/checkout.c:1486:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->overlay_mode != -1)
                                     ^
                                      {
/datasets/git/builtin/checkout.c:1490:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->writeout_stage)
                                 ^
                                  {
/datasets/git/builtin/checkout.c:1494:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->force && opts->merge)
                                       ^
                                        {
/datasets/git/builtin/checkout.c:1497:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->discard_changes && opts->merge)
                                                 ^
                                                  {
/datasets/git/builtin/checkout.c:1500:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->force_detach && opts->new_branch)
                                                   ^
                                                    {
/datasets/git/builtin/checkout.c:1505:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opts->track != BRANCH_TRACK_UNSPECIFIED)
                                                            ^
                                                             {
/datasets/git/builtin/checkout.c:1507:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opts->orphan_from_empty_tree && new_branch_info->name)
                                                                          ^
                                                                           {
/datasets/git/builtin/checkout.c:1510:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opts->track != BRANCH_TRACK_UNSPECIFIED)
                                                            ^
                                                             {
/datasets/git/builtin/checkout.c:1512:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else if (opts->track == BRANCH_TRACK_UNSPECIFIED)
                                                           ^
                                                            {
/datasets/git/builtin/checkout.c:1515:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (new_branch_info->name && !new_branch_info->commit)
                                                              ^
                                                               {
/datasets/git/builtin/checkout.c:1522:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !opts->force_detach)
                                ^
                                 {
/datasets/git/builtin/checkout.c:1530:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !new_branch_info->path)
                                   ^
                                    {
/datasets/git/builtin/checkout.c:1533:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opts->can_switch_when_in_progress)
                                               ^
                                                {
/datasets/git/builtin/checkout.c:1538:7: warning: variable 'flag' is not initialized [cppcoreguidelines-init-variables]
                int flag;
                    ^
                         = 0
/datasets/git/builtin/checkout.c:1541:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (!(flag & REF_ISSYMREF) || strcmp(head_ref, new_branch_info->path)))
                       ^~~~
/datasets/git/builtin/checkout.c:1541:34: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                    (!(flag & REF_ISSYMREF) || strcmp(head_ref, new_branch_info->path)))
                                               ^
                                                                                       != 0
/datasets/git/builtin/checkout.c:1541:75: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    (!(flag & REF_ISSYMREF) || strcmp(head_ref, new_branch_info->path)))
                                                                                        ^
                                                                                         {
/datasets/git/builtin/checkout.c:1548:7: warning: variable 'flag' is not initialized [cppcoreguidelines-init-variables]
                int flag;
                    ^
                         = 0
/datasets/git/builtin/checkout.c:1551:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (flag & REF_ISSYMREF) && is_null_oid(&rev))
                     ^~~~
/datasets/git/builtin/checkout.c:1551:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    (flag & REF_ISSYMREF) && is_null_oid(&rev))
                                                               ^
                                                                {
/datasets/git/builtin/checkout.c:1561:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__QUIET(&opts->quiet, N_("suppress progress reporting")),
                ^
/datasets/git/./parse-options.h:360:31: note: expanded from macro 'OPT__QUIET'
#define OPT__QUIET(var, h)    OPT_COUNTUP('q', "quiet",   (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/checkout.c:1565:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "progress", &opts->show_progress, N_("force progress reporting")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/checkout.c:1566:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('m', "merge", &opts->merge, N_("perform a 3-way merge with the new branch")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/checkout.c:1580:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('d', "detach", &opts->force_detach, N_("detach HEAD at named commit")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/checkout.c:1585:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__FORCE(&opts->force, N_("force checkout (throw away local modifications)"),
                ^
/datasets/git/./parse-options.h:367:31: note: expanded from macro 'OPT__FORCE'
#define OPT__FORCE(var, h, f) OPT_COUNTUP_F('f', "force",   (var), (h), (f))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/checkout.c:1588:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL_F(0, "overwrite-ignore", &opts->overwrite_ignore,
                ^
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/checkout.c:1591:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "ignore-other-worktrees", &opts->ignore_other_worktrees,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/checkout.c:1604:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT_F('2', "ours", &opts->writeout_stage,
                ^
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/checkout.c:1607:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT_F('3', "theirs", &opts->writeout_stage,
                ^
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/checkout.c:1610:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('p', "patch", &opts->patch_mode, N_("select hunks interactively")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/checkout.c:1611:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "ignore-skip-worktree-bits", &opts->ignore_skipworktree,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/checkout.c:1614:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_PATHSPEC_FILE_NUL(&opts->pathspec_file_nul),
                ^
/datasets/git/./parse-options.h:391:35: note: expanded from macro 'OPT_PATHSPEC_FILE_NUL'
#define OPT_PATHSPEC_FILE_NUL(v)  OPT_BOOL(0, "pathspec-file-nul", v, N_("with --pathspec-from-file, pathspec elements are separated with NUL character"))
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/checkout.c:1623:13: warning: variable 'cb_option' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char cb_option = 'b';
            ^
/datasets/git/builtin/checkout.c:1625:12: warning: function 'checkout_main' has cognitive complexity of 80 (threshold 25) [readability-function-cognitive-complexity]
static int checkout_main(int argc, const char **argv, const char *prefix,
           ^
/datasets/git/builtin/checkout.c:1637:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (the_repository->gitdir) {
        ^
/datasets/git/builtin/checkout.c:1644:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!opts->accept_pathspec && !opts->accept_ref)
        ^
/datasets/git/builtin/checkout.c:1644:29: note: +1
        if (!opts->accept_pathspec && !opts->accept_ref)
                                   ^
/datasets/git/builtin/checkout.c:1646:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->accept_pathspec && opts->accept_ref)
        ^
/datasets/git/builtin/checkout.c:1646:28: note: +1
        if (opts->accept_pathspec && opts->accept_ref)
                                  ^
/datasets/git/builtin/checkout.c:1652:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->show_progress < 0) {
        ^
/datasets/git/builtin/checkout.c:1653:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opts->quiet)
                ^
/datasets/git/builtin/checkout.c:1655:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/checkout.c:1659:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->conflict_style) {
        ^
/datasets/git/builtin/checkout.c:1663:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->force) {
        ^
/datasets/git/builtin/checkout.c:1669:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((!!opts->new_branch + !!opts->new_branch_force + !!opts->new_orphan_branch) > 1)
        ^
/datasets/git/builtin/checkout.c:1673:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->overlay_mode == 1 && opts->patch_mode)
        ^
/datasets/git/builtin/checkout.c:1673:30: note: +1
        if (opts->overlay_mode == 1 && opts->patch_mode)
                                    ^
/datasets/git/builtin/checkout.c:1676:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->checkout_index >= 0 || opts->checkout_worktree >= 0) {
        ^
/datasets/git/builtin/checkout.c:1676:32: note: +1
        if (opts->checkout_index >= 0 || opts->checkout_worktree >= 0) {
                                      ^
/datasets/git/builtin/checkout.c:1677:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opts->checkout_index < 0)
                ^
/datasets/git/builtin/checkout.c:1679:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opts->checkout_worktree < 0)
                ^
/datasets/git/builtin/checkout.c:1681:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/checkout.c:1682:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opts->checkout_index < 0)
                ^
/datasets/git/builtin/checkout.c:1684:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opts->checkout_worktree < 0)
                ^
/datasets/git/builtin/checkout.c:1687:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->checkout_index < 0 || opts->checkout_worktree < 0)
        ^
/datasets/git/builtin/checkout.c:1687:31: note: +1
        if (opts->checkout_index < 0 || opts->checkout_worktree < 0)
                                     ^
/datasets/git/builtin/checkout.c:1693:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!opts->from_treeish && opts->checkout_index)
        ^
/datasets/git/builtin/checkout.c:1693:26: note: +1
        if (!opts->from_treeish && opts->checkout_index)
                                ^
/datasets/git/builtin/checkout.c:1701:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->new_branch_force)
        ^
/datasets/git/builtin/checkout.c:1704:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->new_orphan_branch)
        ^
/datasets/git/builtin/checkout.c:1708:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->track != BRANCH_TRACK_UNSPECIFIED && !opts->new_branch) {
        ^
/datasets/git/builtin/checkout.c:1708:46: note: +1
        if (opts->track != BRANCH_TRACK_UNSPECIFIED && !opts->new_branch) {
                                                    ^
/datasets/git/builtin/checkout.c:1710:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!argc || !strcmp(argv0, "--"))
                ^
/datasets/git/builtin/checkout.c:1710:13: note: +1
                if (!argc || !strcmp(argv0, "--"))
                          ^
/datasets/git/builtin/checkout.c:1715:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!argv0 || !argv0[1])
                ^
/datasets/git/builtin/checkout.c:1715:14: note: +1
                if (!argv0 || !argv0[1])
                           ^
/datasets/git/builtin/checkout.c:1733:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (argc && opts->accept_ref) {
        ^
/datasets/git/builtin/checkout.c:1733:11: note: +1
        if (argc && opts->accept_ref) {
                 ^
/datasets/git/builtin/checkout.c:1738:44: note: +1
                        opts->track == BRANCH_TRACK_UNSPECIFIED &&
                                                                ^
/datasets/git/builtin/checkout.c:1744:9: note: +1, nesting level increased to 1
        } else if (!opts->accept_ref && opts->from_treeish) {
               ^
/datasets/git/builtin/checkout.c:1744:31: note: +1
        } else if (!opts->accept_ref && opts->from_treeish) {
                                     ^
/datasets/git/builtin/checkout.c:1747:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (get_oid_mb(opts->from_treeish, &rev))
                ^
/datasets/git/builtin/checkout.c:1754:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!opts->source_tree)
                ^
/datasets/git/builtin/checkout.c:1758:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (argc) {
        ^
/datasets/git/builtin/checkout.c:1760:28: note: +2, including nesting penalty of 1, nesting level increased to 2
                               opts->patch_mode ? PATHSPEC_PREFIX_ORIGIN : 0,
                                                ^
/datasets/git/builtin/checkout.c:1763:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!opts->pathspec.nr)
                ^
/datasets/git/builtin/checkout.c:1770:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opts->new_branch && argc == 1 && !new_branch_info->commit)
                ^
/datasets/git/builtin/checkout.c:1770:37: note: +1
                if (opts->new_branch && argc == 1 && !new_branch_info->commit)
                                                  ^
/datasets/git/builtin/checkout.c:1774:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opts->force_detach)
                ^
/datasets/git/builtin/checkout.c:1779:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->pathspec_from_file) {
        ^
/datasets/git/builtin/checkout.c:1780:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opts->pathspec.nr)
                ^
/datasets/git/builtin/checkout.c:1783:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opts->force_detach)
                ^
/datasets/git/builtin/checkout.c:1786:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opts->patch_mode)
                ^
/datasets/git/builtin/checkout.c:1792:9: note: +1, nesting level increased to 1
        } else if (opts->pathspec_file_nul) {
               ^
/datasets/git/builtin/checkout.c:1798:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->pathspec.nr) {
        ^
/datasets/git/builtin/checkout.c:1799:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (1 < !!opts->writeout_stage + !!opts->force + !!opts->merge)
                ^
/datasets/git/builtin/checkout.c:1802:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/checkout.c:1803:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opts->accept_pathspec && !opts->empty_pathspec_ok &&
                ^
/datasets/git/builtin/checkout.c:1803:57: note: +1
                if (opts->accept_pathspec && !opts->empty_pathspec_ok &&
                                                                      ^
/datasets/git/builtin/checkout.c:1808:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->new_branch) {
        ^
/datasets/git/builtin/checkout.c:1811:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opts->new_branch_force)
                ^
/datasets/git/builtin/checkout.c:1813:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/checkout.c:1819:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->patch_mode || opts->pathspec.nr)
        ^
/datasets/git/builtin/checkout.c:1819:23: note: +1
        if (opts->patch_mode || opts->pathspec.nr)
                             ^
/datasets/git/builtin/checkout.c:1821:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/builtin/checkout.c:1644:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opts->accept_pathspec && !opts->accept_ref)
                                                        ^
                                                         {
/datasets/git/builtin/checkout.c:1646:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->accept_pathspec && opts->accept_ref)
                                                      ^
                                                       {
/datasets/git/builtin/checkout.c:1653:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opts->quiet)
                                ^
                                 {
/datasets/git/builtin/checkout.c:1655:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/checkout.c:1669:86: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((!!opts->new_branch + !!opts->new_branch_force + !!opts->new_orphan_branch) > 1)
                                                                                            ^
                                                                                             {
/datasets/git/builtin/checkout.c:1673:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->overlay_mode == 1 && opts->patch_mode)
                                                        ^
                                                         {
/datasets/git/builtin/checkout.c:1677:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opts->checkout_index < 0)
                                             ^
                                              {
/datasets/git/builtin/checkout.c:1679:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opts->checkout_worktree < 0)
                                                ^
                                                 {
/datasets/git/builtin/checkout.c:1682:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opts->checkout_index < 0)
                                             ^
                                              {
/datasets/git/builtin/checkout.c:1684:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opts->checkout_worktree < 0)
                                                ^
                                                 {
/datasets/git/builtin/checkout.c:1687:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->checkout_index < 0 || opts->checkout_worktree < 0)
                                                                    ^
                                                                     {
/datasets/git/builtin/checkout.c:1693:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opts->from_treeish && opts->checkout_index)
                                                        ^
                                                         {
/datasets/git/builtin/checkout.c:1701:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->new_branch_force)
                                   ^
                                    {
/datasets/git/builtin/checkout.c:1704:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->new_orphan_branch)
                                    ^
                                     {
/datasets/git/builtin/checkout.c:1710:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!argc || !strcmp(argv0, "--"))
                                                  ^
                                                   {
/datasets/git/builtin/checkout.c:1715:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!argv0 || !argv0[1])
                                        ^
                                         {
/datasets/git/builtin/checkout.c:1740:7: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
                int n = parse_branchname_arg(argc, argv, dwim_ok,
                    ^
/datasets/git/builtin/checkout.c:1747:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (get_oid_mb(opts->from_treeish, &rev))
                                                         ^
                                                          {
/datasets/git/builtin/checkout.c:1754:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!opts->source_tree)
                                       ^
                                        {
/datasets/git/builtin/checkout.c:1760:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                               opts->patch_mode ? PATHSPEC_PREFIX_ORIGIN : 0,
                                                  ^
/datasets/git/./pathspec.h:70:33: note: expanded from macro 'PATHSPEC_PREFIX_ORIGIN'
#define PATHSPEC_PREFIX_ORIGIN (1<<4)
                                ^
/datasets/git/builtin/checkout.c:1763:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!opts->pathspec.nr)
                                       ^
                                        {
/datasets/git/builtin/checkout.c:1770:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opts->new_branch && argc == 1 && !new_branch_info->commit)
                                                                              ^
                                                                               {
/datasets/git/builtin/checkout.c:1774:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opts->force_detach)
                                       ^
                                        {
/datasets/git/builtin/checkout.c:1780:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opts->pathspec.nr)
                                      ^
                                       {
/datasets/git/builtin/checkout.c:1783:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opts->force_detach)
                                       ^
                                        {
/datasets/git/builtin/checkout.c:1786:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opts->patch_mode)
                                     ^
                                      {
/datasets/git/builtin/checkout.c:1799:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (1 < !!opts->writeout_stage + !!opts->force + !!opts->merge)
                                                                               ^
                                                                                {
/datasets/git/builtin/checkout.c:1804:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !opts->patch_mode)  /* patch mode is special */
                                      ^
                                       {
/datasets/git/builtin/checkout.c:1811:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opts->new_branch_force)
                                           ^
                                            {
/datasets/git/builtin/checkout.c:1813:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/checkout.c:1819:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->patch_mode || opts->pathspec.nr)
                                                  ^
                                                   {
/datasets/git/builtin/checkout.c:1821:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else
        ^~~~
                        return checkout_branch(opts, new_branch_info)
/datasets/git/builtin/checkout.c:1821:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/checkout.c:1828:17: warning: variable 'options' is not initialized [cppcoreguidelines-init-variables]
        struct option *options;
                       ^
                               = NULL
/datasets/git/builtin/checkout.c:1834:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('l', NULL, &opts.new_branch_log, N_("create reflog for new branch")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/checkout.c:1835:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "guess", &opts.dwim_new_local_branch,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/checkout.c:1837:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "overlay", &opts.overlay_mode, N_("use overlay mode (default)")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/checkout.c:1840:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/builtin/checkout.c:1843:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&opts, 0, sizeof(opts));
        ^~~~~~
/datasets/git/builtin/checkout.c:1843:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&opts, 0, sizeof(opts));
        ^~~~~~
/datasets/git/builtin/checkout.c:1875:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(options);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/checkout.c:1888:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "guess", &opts.dwim_new_local_branch,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/checkout.c:1890:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "discard-changes", &opts.discard_changes,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/checkout.c:1894:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/builtin/checkout.c:1897:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&opts, 0, sizeof(opts));
        ^~~~~~
/datasets/git/builtin/checkout.c:1897:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&opts, 0, sizeof(opts));
        ^~~~~~
/datasets/git/builtin/checkout.c:1917:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(options);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/checkout.c:1924:17: warning: variable 'options' is not initialized [cppcoreguidelines-init-variables]
        struct option *options;
                       ^
                               = NULL
/datasets/git/builtin/checkout.c:1928:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('S', "staged", &opts.checkout_index,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/checkout.c:1930:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('W', "worktree", &opts.checkout_worktree,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/checkout.c:1932:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "ignore-unmerged", &opts.ignore_unmerged,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/checkout.c:1934:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "overlay", &opts.overlay_mode, N_("use overlay mode")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/checkout.c:1937:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/builtin/checkout.c:1940:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&opts, 0, sizeof(opts));
        ^~~~~~
/datasets/git/builtin/checkout.c:1940:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&opts, 0, sizeof(opts));
        ^~~~~~
/datasets/git/builtin/checkout.c:1956:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(options);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/clean.c:12:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "color.h"
/datasets/git/builtin/clean.c:23:12: warning: variable 'force' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int force = -1; /* unset */
           ^
/datasets/git/builtin/clean.c:24:12: warning: variable 'interactive' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int interactive;
           ^
/datasets/git/builtin/clean.c:25:27: warning: variable 'del_list' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct string_list del_list = STRING_LIST_INIT_DUP;
                          ^
/datasets/git/builtin/clean.c:26:21: warning: variable 'colopts' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned int colopts;
                    ^
/datasets/git/builtin/clean.c:33:20: warning: variable 'msg_remove' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *msg_remove = N_("Removing %s\n");
                   ^
/datasets/git/builtin/clean.c:34:20: warning: variable 'msg_would_remove' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *msg_would_remove = N_("Would remove %s\n");
                   ^
/datasets/git/builtin/clean.c:35:20: warning: variable 'msg_skip_git_dir' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *msg_skip_git_dir = N_("Skipping repository %s\n");
                   ^
/datasets/git/builtin/clean.c:36:20: warning: variable 'msg_would_skip_git_dir' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *msg_would_skip_git_dir = N_("Would skip repository %s\n");
                   ^
/datasets/git/builtin/clean.c:37:20: warning: variable 'msg_warn_remove_failed' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *msg_warn_remove_failed = N_("failed to remove %s");
                   ^
/datasets/git/builtin/clean.c:38:20: warning: variable 'msg_warn_lstat_failed' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *msg_warn_lstat_failed = N_("could not lstat %s\n");
                   ^
/datasets/git/builtin/clean.c:39:20: warning: variable 'msg_skip_cwd' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *msg_skip_cwd = N_("Refusing to remove current working directory\n");
                   ^
/datasets/git/builtin/clean.c:40:20: warning: variable 'msg_would_skip_cwd' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *msg_would_skip_cwd = N_("Would refuse to remove current working directory\n");
                   ^
/datasets/git/builtin/clean.c:51:20: warning: variable 'color_interactive_slots' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *color_interactive_slots[] = {
                   ^
/datasets/git/builtin/clean.c:60:12: warning: variable 'clean_use_color' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int clean_use_color = -1;
           ^
/datasets/git/builtin/clean.c:61:13: warning: variable 'clean_colors' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char clean_colors[][COLOR_MAXLEN] = {
            ^
/datasets/git/builtin/clean.c:74:8: warning: accessing fields in struct 'menu_opts' is inefficient due to padding; only needs 20 bytes but is using 24 bytes [altera-struct-pack-align]
struct menu_opts {
       ^
/datasets/git/builtin/clean.c:74:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'menu_opts'
/datasets/git/builtin/clean.c:74:8: warning: accessing fields in struct 'menu_opts' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct menu_opts {
       ^
/datasets/git/builtin/clean.c:74:8: note: use "__attribute__((aligned(32)))" to align struct 'menu_opts' to 32 bytes
/datasets/git/builtin/clean.c:82:8: warning: accessing fields in struct 'menu_item' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct menu_item {
       ^
/datasets/git/builtin/clean.c:82:8: note: use "__attribute__((aligned(32)))" to align struct 'menu_item' to 32 bytes
/datasets/git/builtin/clean.c:82:8: warning: Excessive padding in 'struct menu_item' (11 padding bytes, where 3 is optimal). Optimal fields order: title, fn, selected, hotkey, consider reordering the fields or adding explicit padding members [clang-analyzer-optin.performance.Padding]
struct menu_item {
~~~~~~~^~~~~~~~~~~
/datasets/git/builtin/clean.c:82:8: note: Excessive padding in 'struct menu_item' (11 padding bytes, where 3 is optimal). Optimal fields order: title, fn, selected, hotkey, consider reordering the fields or adding explicit padding members
struct menu_item {
~~~~~~~^~~~~~~~~~~
/datasets/git/builtin/clean.c:94:8: warning: accessing fields in struct 'menu_stuff' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct menu_stuff {
       ^
/datasets/git/builtin/clean.c:94:8: note: use "__attribute__((aligned(16)))" to align struct 'menu_stuff' to 16 bytes
/datasets/git/builtin/clean.c:100:1: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
define_list_config_array(color_interactive_slots);
^
/datasets/git/./help.h:62:2: note: expanded from macro 'define_list_config_array'
        for (i = 0; i < ARRAY_SIZE(array); i++)                         \
        ^
/datasets/git/builtin/clean.c:100:1: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
define_list_config_array(color_interactive_slots);
^
/datasets/git/./help.h:61:6: note: expanded from macro 'define_list_config_array'
        int i;                                                          \
            ^
/datasets/git/builtin/clean.c:102:71: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int git_clean_config(const char *var, const char *value, void *cb)
                                                                      ^
/datasets/git/builtin/clean.c:104:14: warning: variable 'slot_name' is not initialized [cppcoreguidelines-init-variables]
        const char *slot_name;
                    ^
                              = NULL
/datasets/git/builtin/clean.c:106:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (starts_with(var, "column."))
                                        ^
                                         {
/datasets/git/builtin/clean.c:117:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (slot < 0)
                             ^
                              {
/datasets/git/builtin/clean.c:119:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
                            {
/datasets/git/builtin/clean.c:133:53: warning: parameter name 'ix' is too short, expected at least 3 characters [readability-identifier-length]
static const char *clean_get_color(enum color_clean ix)
                                                    ^
/datasets/git/builtin/clean.c:135:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (want_color(clean_use_color))
                                        ^
                                         {
/datasets/git/builtin/clean.c:140:48: warning: parameter name 'ix' is too short, expected at least 3 characters [readability-identifier-length]
static void clean_print_color(enum color_clean ix)
                                               ^
/datasets/git/builtin/clean.c:148:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/clean.c:153:12: warning: function 'remove_dirs' is within a recursive call chain [misc-no-recursion]
static int remove_dirs(struct strbuf *path, const char *prefix, int force_flag,
           ^
/datasets/git/builtin/clean.c:153:12: note: example recursive call chain, starting from function 'remove_dirs'
/datasets/git/builtin/clean.c:204:8: note: Frame #1: function 'remove_dirs' calls function 'remove_dirs' here:
                        if (remove_dirs(path, prefix, force_flag, dry_run, quiet, &gone))
                            ^
/datasets/git/builtin/clean.c:204:8: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/builtin/clean.c:153:12: warning: function 'remove_dirs' has cognitive complexity of 56 (threshold 25) [readability-function-cognitive-complexity]
static int remove_dirs(struct strbuf *path, const char *prefix, int force_flag,
           ^
/datasets/git/builtin/clean.c:166:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((force_flag & REMOVE_DIR_KEEP_NESTED_GIT) &&
        ^
/datasets/git/builtin/clean.c:166:48: note: +1
        if ((force_flag & REMOVE_DIR_KEEP_NESTED_GIT) &&
                                                      ^
/datasets/git/builtin/clean.c:168:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!quiet) {
                ^
/datasets/git/builtin/clean.c:170:19: note: +3, including nesting penalty of 2, nesting level increased to 3
                        printf(dry_run ?  _(msg_would_skip_git_dir) : _(msg_skip_git_dir),
                                       ^
/datasets/git/builtin/clean.c:175:3: note: +1
                goto out;
                ^
/datasets/git/builtin/clean.c:179:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!dir) {
        ^
/datasets/git/builtin/clean.c:181:17: note: +2, including nesting penalty of 1, nesting level increased to 2
                res = dry_run ? 0 : rmdir(path->buf);
                              ^
/datasets/git/builtin/clean.c:182:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (res) {
                ^
/datasets/git/builtin/clean.c:190:3: note: +1
                goto out;
                ^
/datasets/git/builtin/clean.c:196:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while ((e = readdir_skip_dot_and_dotdot(dir)) != NULL) {
        ^
/datasets/git/builtin/clean.c:201:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (lstat(path->buf, &st))
                ^
/datasets/git/builtin/clean.c:203:8: note: +1, nesting level increased to 2
                else if (S_ISDIR(st.st_mode)) {
                     ^
/datasets/git/builtin/clean.c:204:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (remove_dirs(path, prefix, force_flag, dry_run, quiet, &gone))
                        ^
/datasets/git/builtin/clean.c:206:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (gone) {
                        ^
/datasets/git/builtin/clean.c:209:6: note: +1, nesting level increased to 3
                        } else
                          ^
/datasets/git/builtin/clean.c:212:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/clean.c:213:18: note: +3, including nesting penalty of 2, nesting level increased to 3
                        res = dry_run ? 0 : unlink(path->buf);
                                      ^
/datasets/git/builtin/clean.c:214:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!res) {
                        ^
/datasets/git/builtin/clean.c:217:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/builtin/clean.c:237:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (*dir_gone) {
        ^
/datasets/git/builtin/clean.c:249:4: note: +2, including nesting penalty of 1, nesting level increased to 2
                 if (startup_info->original_cwd)
                 ^
/datasets/git/builtin/clean.c:253:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strbuf_cmp(&realpath, &real_ocwd)) {
                ^
/datasets/git/builtin/clean.c:254:25: note: +3, including nesting penalty of 2, nesting level increased to 3
                        printf("%s", dry_run ? _(msg_would_skip_cwd) : _(msg_skip_cwd));
                                             ^
/datasets/git/builtin/clean.c:256:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/clean.c:257:18: note: +3, including nesting penalty of 2, nesting level increased to 3
                        res = dry_run ? 0 : rmdir(path->buf);
                                      ^
/datasets/git/builtin/clean.c:258:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!res)
                        ^
/datasets/git/builtin/clean.c:260:4: note: +1, nesting level increased to 3
                        else {
                        ^
/datasets/git/builtin/clean.c:271:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!*dir_gone && !quiet) {
        ^
/datasets/git/builtin/clean.c:271:17: note: +1
        if (!*dir_gone && !quiet) {
                       ^
/datasets/git/builtin/clean.c:273:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < dels.nr; i++)
                ^
/datasets/git/builtin/clean.c:274:19: note: +3, including nesting penalty of 2, nesting level increased to 3
                        printf(dry_run ?  _(msg_would_remove) : _(msg_remove), dels.items[i].string);
                                       ^
/datasets/git/builtin/clean.c:156:7: warning: variable 'dir' is not initialized [cppcoreguidelines-init-variables]
        DIR *dir;
             ^
                 = NULL
/datasets/git/builtin/clean.c:160:17: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct dirent *e;
                       ^
                         = NULL
/datasets/git/builtin/clean.c:160:17: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/clean.c:161:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int res = 0, ret = 0, gone = 1, original_len = path->len, len;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/clean.c:160:2: note: inferred assignment of ID-dependent value from ID-dependent variable dir [altera-id-dependent-backward-branch]
        struct dirent *e;
        ^
/datasets/git/builtin/clean.c:161:49: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int res = 0, ret = 0, gone = 1, original_len = path->len, len;
                                                       ^
/datasets/git/builtin/clean.c:161:60: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int res = 0, ret = 0, gone = 1, original_len = path->len, len;
                                                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/clean.c:166:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((force_flag & REMOVE_DIR_KEEP_NESTED_GIT) &&
             ^~~~~~~~~~
/datasets/git/builtin/clean.c:195:8: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        len = path->len;
              ^
/datasets/git/builtin/clean.c:196:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((e = readdir_skip_dot_and_dotdot(dir)) != NULL) {
        ^
/datasets/git/builtin/clean.c:196:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'e' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((e = readdir_skip_dot_and_dotdot(dir)) != NULL) {
               ^
/datasets/git/builtin/clean.c:197:15: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                struct stat st;
                            ^
/datasets/git/builtin/clean.c:201:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (lstat(path->buf, &st))
                                          ^
                                           {
/datasets/git/builtin/clean.c:204:69: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (remove_dirs(path, prefix, force_flag, dry_run, quiet, &gone))
                                                                                         ^
                                                                                          {
/datasets/git/builtin/clean.c:209:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        } else
                              ^
                               {
/datasets/git/builtin/clean.c:249:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                 if (startup_info->original_cwd)
                                                ^
                                                 {
/datasets/git/builtin/clean.c:258:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!res)
                                 ^
                                  {
/datasets/git/builtin/clean.c:272:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/builtin/clean.c:272:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/clean.c:287:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct string_list_item *item;
        ^
/datasets/git/builtin/clean.c:273:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < dels.nr; i++)
                ^
/datasets/git/builtin/clean.c:273:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < dels.nr; i++)
                                             ^
                                              {
/datasets/git/builtin/clean.c:287:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/builtin/clean.c:289:14: warning: variable 'qname' is not initialized [cppcoreguidelines-init-variables]
        const char *qname;
                    ^
                          = NULL
/datasets/git/builtin/clean.c:292:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(item, &del_list) {
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/clean.c:292:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(item, &del_list) {
                                  ^
/datasets/git/builtin/clean.c:301:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        colopts = (colopts & ~COL_ENABLE_MASK) | COL_ENABLED;
                  ^
/datasets/git/builtin/clean.c:301:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        colopts = (colopts & ~COL_ENABLE_MASK) | COL_ENABLED;
                   ^         ~~~~~~~~~~~~~~~~
/datasets/git/builtin/clean.c:301:23: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
        colopts = (colopts & ~COL_ENABLE_MASK) | COL_ENABLED;
                             ^
/datasets/git/builtin/clean.c:302:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&copts, 0, sizeof(copts));
        ^~~~~~
/datasets/git/builtin/clean.c:302:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&copts, 0, sizeof(copts));
        ^~~~~~
/datasets/git/builtin/clean.c:315:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        local_colopts = COL_ENABLED | COL_ROW;
                        ^
/datasets/git/./column.h:11:27: note: expanded from macro 'COL_ENABLED'
#define COL_ENABLED       0x0010
                          ^~~~~~
/datasets/git/builtin/clean.c:316:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&copts, 0, sizeof(copts));
        ^~~~~~
/datasets/git/builtin/clean.c:316:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&copts, 0, sizeof(copts));
        ^~~~~~
/datasets/git/builtin/clean.c:344:13: warning: function 'print_highlight_menu_stuff' has cognitive complexity of 31 (threshold 25) [readability-function-cognitive-complexity]
static void print_highlight_menu_stuff(struct menu_stuff *stuff, int **chosen)
            ^
/datasets/git/builtin/clean.c:352:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        switch (stuff->type) {
        ^
/datasets/git/builtin/clean.c:357:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < stuff->nr; i++, menu_item++) {
                ^
/datasets/git/builtin/clean.c:362:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if ((*chosen)[i] < 0)
                        ^
/datasets/git/builtin/clean.c:363:40: note: +4, including nesting penalty of 3, nesting level increased to 4
                                (*chosen)[i] = menu_item->selected ? 1 : 0;
                                                                   ^
/datasets/git/builtin/clean.c:364:47: note: +3, including nesting penalty of 2, nesting level increased to 3
                        strbuf_addf(&menu, "%s%2d: ", (*chosen)[i] ? "*" : " ", i+1);
                                                                   ^
/datasets/git/builtin/clean.c:365:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (; *p; p++) {
                        ^
/datasets/git/builtin/clean.c:366:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!highlighted && *p == menu_item->hotkey) {
                                ^
/datasets/git/builtin/clean.c:366:22: note: +1
                                if (!highlighted && *p == menu_item->hotkey) {
                                                 ^
/datasets/git/builtin/clean.c:371:7: note: +1, nesting level increased to 4
                                } else {
                                  ^
/datasets/git/builtin/clean.c:381:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for_each_string_list_item(string_list_item, (struct string_list *)stuff->stuff) {
                ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/clean.c:381:3: note: +1
                for_each_string_list_item(string_list_item, (struct string_list *)stuff->stuff) {
                ^
/datasets/git/./string-list.h:152:12: note: expanded from macro 'for_each_string_list_item'
             item && item < (list)->items + (list)->nr; \
                  ^
/datasets/git/builtin/clean.c:382:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if ((*chosen)[i] < 0)
                        ^
/datasets/git/builtin/clean.c:385:22: note: +3, including nesting penalty of 2, nesting level increased to 3
                                    (*chosen)[i] ? "*" : " ", i+1, string_list_item->string);
                                                 ^
/datasets/git/builtin/clean.c:348:20: warning: variable 'menu_item' is not initialized [cppcoreguidelines-init-variables]
        struct menu_item *menu_item;
                          ^
                                    = NULL
/datasets/git/builtin/clean.c:349:27: warning: variable 'string_list_item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *string_list_item;
                                 ^
                                                  = NULL
/datasets/git/builtin/clean.c:350:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/clean.c:350:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/clean.c:349:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct string_list_item *string_list_item;
        ^
/datasets/git/builtin/clean.c:358:16: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                        const char *p;
                                    ^
                                      = NULL
/datasets/git/builtin/clean.c:358:16: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/clean.c:362:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if ((*chosen)[i] < 0)
                                             ^
                                              {
/datasets/git/builtin/clean.c:365:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (; *p; p++) {
                        ^
/datasets/git/builtin/clean.c:365:11: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (; *p; p++) {
                               ^
/datasets/git/builtin/clean.c:381:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for_each_string_list_item(string_list_item, (struct string_list *)stuff->stuff) {
                ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/clean.c:381:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'string_list_item' and may cause performance degradation [altera-id-dependent-backward-branch]
                for_each_string_list_item(string_list_item, (struct string_list *)stuff->stuff) {
                                          ^
/datasets/git/builtin/clean.c:382:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if ((*chosen)[i] < 0)
                                             ^
                                              {
/datasets/git/builtin/clean.c:399:12: warning: function 'find_unique' has cognitive complexity of 30 (threshold 25) [readability-function-cognitive-complexity]
static int find_unique(const char *choice, struct menu_stuff *menu_stuff)
           ^
/datasets/git/builtin/clean.c:406:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        switch (menu_stuff->type) {
        ^
/datasets/git/builtin/clean.c:412:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < menu_stuff->nr; i++, menu_item++) {
                ^
/datasets/git/builtin/clean.c:413:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (len == 1 && *choice == menu_item->hotkey) {
                        ^
/datasets/git/builtin/clean.c:413:17: note: +1
                        if (len == 1 && *choice == menu_item->hotkey) {
                                     ^
/datasets/git/builtin/clean.c:417:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!strncasecmp(choice, menu_item->title, len)) {
                        ^
/datasets/git/builtin/clean.c:418:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (found) {
                                ^
/datasets/git/builtin/clean.c:419:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (len == 1) {
                                        ^
/datasets/git/builtin/clean.c:422:8: note: +1, nesting level increased to 5
                                        } else {
                                          ^
/datasets/git/builtin/clean.c:426:7: note: +1, nesting level increased to 4
                                } else {
                                  ^
/datasets/git/builtin/clean.c:434:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < menu_stuff->nr; i++, string_list_item++) {
                ^
/datasets/git/builtin/clean.c:435:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!strncasecmp(choice, string_list_item->string, len)) {
                        ^
/datasets/git/builtin/clean.c:436:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (found) {
                                ^
/datasets/git/builtin/clean.c:401:20: warning: variable 'menu_item' is not initialized [cppcoreguidelines-init-variables]
        struct menu_item *menu_item;
                          ^
                                    = NULL
/datasets/git/builtin/clean.c:402:27: warning: variable 'string_list_item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *string_list_item;
                                 ^
                                                  = NULL
/datasets/git/builtin/clean.c:403:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, len, found = 0;
        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/clean.c:403:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, len, found = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/clean.c:403:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/clean.c:403:9: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int i, len, found = 0;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/clean.c:405:8: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        len = strlen(choice);
              ^
/datasets/git/builtin/clean.c:412:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < menu_stuff->nr; i++, menu_item++) {
                ^
/datasets/git/builtin/clean.c:434:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < menu_stuff->nr; i++, string_list_item++) {
                ^
/datasets/git/builtin/clean.c:469:12: warning: function 'parse_choice' has cognitive complexity of 39 (threshold 25) [readability-function-cognitive-complexity]
static int parse_choice(struct menu_stuff *menu_stuff,
           ^
/datasets/git/builtin/clean.c:478:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (is_single) {
        ^
/datasets/git/builtin/clean.c:480:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/clean.c:482:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                do {
                ^
/datasets/git/builtin/clean.c:483:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (*p == ',')
                        ^
/datasets/git/builtin/clean.c:489:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (ptr = choice_list; *ptr; ptr++) {
        ^
/datasets/git/builtin/clean.c:496:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!(*ptr)->len)
                ^
/datasets/git/builtin/clean.c:500:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*(*ptr)->buf == '-') {
                ^
/datasets/git/builtin/clean.c:507:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (p = (*ptr)->buf; *p; p++) {
                ^
/datasets/git/builtin/clean.c:508:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if ('-' == *p) {
                        ^
/datasets/git/builtin/clean.c:509:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!is_range) {
                                ^
/datasets/git/builtin/clean.c:512:7: note: +1, nesting level increased to 4
                                } else {
                                  ^
/datasets/git/builtin/clean.c:517:11: note: +1, nesting level increased to 3
                        } else if (!isdigit(*p)) {
                               ^
/datasets/git/builtin/clean.c:524:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (is_number) {
                ^
/datasets/git/builtin/clean.c:527:10: note: +1, nesting level increased to 2
                } else if (is_range) {
                       ^
/datasets/git/builtin/clean.c:530:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!*(strchr((*ptr)->buf, '-') + 1))
                        ^
/datasets/git/builtin/clean.c:532:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/builtin/clean.c:534:10: note: +1, nesting level increased to 2
                } else if (!strcmp((*ptr)->buf, "*")) {
                       ^
/datasets/git/builtin/clean.c:537:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/clean.c:542:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (top <= 0 || bottom <= 0 || top > menu_stuff->nr || bottom > top ||
                ^
/datasets/git/builtin/clean.c:542:71: note: +1
                if (top <= 0 || bottom <= 0 || top > menu_stuff->nr || bottom > top ||
                                                                                    ^
/datasets/git/builtin/clean.c:543:18: note: +1
                    (is_single && bottom != top)) {
                               ^
/datasets/git/builtin/clean.c:550:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = bottom; i <= top; i++)
                ^
/datasets/git/builtin/clean.c:556:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < menu_stuff->nr; i++)
        ^
/datasets/git/builtin/clean.c:474:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct strbuf **choice_list, **ptr;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/clean.c:474:2: note: inferred assignment of ID-dependent value from ID-dependent variable choice_list [altera-id-dependent-backward-branch]
/datasets/git/builtin/clean.c:474:18: warning: variable 'choice_list' is not initialized [cppcoreguidelines-init-variables]
        struct strbuf **choice_list, **ptr;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/clean.c:474:33: warning: variable 'ptr' is not initialized [cppcoreguidelines-init-variables]
        struct strbuf **choice_list, **ptr;
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/clean.c:475:6: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
        int nr = 0;
            ^
/datasets/git/builtin/clean.c:476:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/clean.c:476:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/clean.c:481:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                char *p = input.buf;
                ^
/datasets/git/builtin/clean.c:481:9: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                char *p = input.buf;
                      ^
/datasets/git/builtin/clean.c:482:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                do {
                ^
/datasets/git/builtin/clean.c:483:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (*p == ',')
                                      ^
                                       {
/datasets/git/builtin/clean.c:485:12: warning: backward branch (do loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                } while (*p++);
                         ^
/datasets/git/builtin/clean.c:489:26: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ptr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (ptr = choice_list; *ptr; ptr++) {
                                ^
/datasets/git/builtin/clean.c:490:9: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                char *p;
                      ^
                        = NULL
/datasets/git/builtin/clean.c:490:9: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/clean.c:492:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int bottom = 0, top = 0;
                ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/clean.c:493:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int is_range, is_number;
                ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/clean.c:493:7: warning: variable 'is_range' is not initialized [cppcoreguidelines-init-variables]
                int is_range, is_number;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/clean.c:493:17: warning: variable 'is_number' is not initialized [cppcoreguidelines-init-variables]
                int is_range, is_number;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/clean.c:496:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(*ptr)->len)
                                 ^
                                  {
/datasets/git/builtin/clean.c:507:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (p = (*ptr)->buf; *p; p++) {
                ^
/datasets/git/builtin/clean.c:507:25: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (p = (*ptr)->buf; *p; p++) {
                                      ^
/datasets/git/builtin/clean.c:517:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        } else if (!isdigit(*p)) {
                                    ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/builtin/clean.c:525:13: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c]
                        bottom = atoi((*ptr)->buf);
                                 ^
/datasets/git/builtin/clean.c:528:13: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c]
                        bottom = atoi((*ptr)->buf);
                                 ^
/datasets/git/builtin/clean.c:530:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!*(strchr((*ptr)->buf, '-') + 1))
                                                             ^
                                                              {
/datasets/git/builtin/clean.c:532:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/builtin/clean.c:533:11: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c]
                                top = atoi(strchr((*ptr)->buf, '-') + 1);
                                      ^
/datasets/git/builtin/clean.c:550:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = bottom; i <= top; i++)
                ^
/datasets/git/builtin/clean.c:550:20: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = bottom; i <= top; i++)
                                 ^
/datasets/git/builtin/clean.c:550:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = bottom; i <= top; i++)
                                               ^
                                                {
/datasets/git/builtin/clean.c:556:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < menu_stuff->nr; i++)
        ^
/datasets/git/builtin/clean.c:556:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < menu_stuff->nr; i++)
                    ^
/datasets/git/builtin/clean.c:556:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < menu_stuff->nr; i++)
                                            ^
                                             {
/datasets/git/builtin/clean.c:572:13: warning: function 'list_and_choose' has cognitive complexity of 37 (threshold 25) [readability-function-cognitive-complexity]
static int *list_and_choose(struct menu_opts *opts, struct menu_stuff *stuff)
            ^
/datasets/git/builtin/clean.c:582:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < stuff->nr; i++)
        ^
/datasets/git/builtin/clean.c:585:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (;;) {
        ^
/datasets/git/builtin/clean.c:586:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opts->header) {
                ^
/datasets/git/builtin/clean.c:596:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opts->flags & MENU_OPTS_LIST_ONLY)
                ^
/datasets/git/builtin/clean.c:599:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opts->prompt) {
                ^
/datasets/git/builtin/clean.c:603:45: note: +3, including nesting penalty of 2, nesting level increased to 3
                               opts->flags & MENU_OPTS_SINGLETON ? "> " : ">> ",
                                                                 ^
/datasets/git/builtin/clean.c:607:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (git_read_line_interactively(&choice) == EOF) {
                ^
/datasets/git/builtin/clean.c:613:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(choice.buf, "?")) {
                ^
/datasets/git/builtin/clean.c:619:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!(opts->flags & MENU_OPTS_SINGLETON) && !choice.len)
                ^
/datasets/git/builtin/clean.c:619:44: note: +1
                if (!(opts->flags & MENU_OPTS_SINGLETON) && !choice.len)
                                                         ^
/datasets/git/builtin/clean.c:627:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opts->flags & MENU_OPTS_SINGLETON) {
                ^
/datasets/git/builtin/clean.c:628:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (nr)
                        ^
/datasets/git/builtin/clean.c:630:10: note: +1, nesting level increased to 2
                } else if (opts->flags & MENU_OPTS_IMMEDIATE) {
                       ^
/datasets/git/builtin/clean.c:635:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (eof) {
        ^
/datasets/git/builtin/clean.c:638:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/clean.c:645:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!nr) {
                ^
/datasets/git/builtin/clean.c:646:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (i = 0; i < stuff->nr; i++)
                        ^
/datasets/git/builtin/clean.c:651:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < stuff->nr && j < nr; i++) {
                ^
/datasets/git/builtin/clean.c:651:29: note: +1
                for (i = 0; i < stuff->nr && j < nr; i++) {
                                          ^
/datasets/git/builtin/clean.c:652:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (chosen[i])
                        ^
/datasets/git/builtin/clean.c:575:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int *chosen, *result;
        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/clean.c:575:7: warning: variable 'chosen' is not initialized [cppcoreguidelines-init-variables]
        int *chosen, *result;
             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/clean.c:575:16: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        int *chosen, *result;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/clean.c:576:6: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
        int nr = 0;
            ^
/datasets/git/builtin/clean.c:578:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/clean.c:578:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/clean.c:582:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < stuff->nr; i++)
        ^
/datasets/git/builtin/clean.c:582:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < stuff->nr; i++)
                                       ^
                                        {
/datasets/git/builtin/clean.c:585:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/builtin/clean.c:596:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (opts->flags & MENU_OPTS_LIST_ONLY)
                    ^~~~~~~~~~~
/datasets/git/builtin/clean.c:596:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opts->flags & MENU_OPTS_LIST_ONLY)
                                                      ^
                                                       {
/datasets/git/builtin/clean.c:603:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                               opts->flags & MENU_OPTS_SINGLETON ? "> " : ">> ",
                               ^~~~~~~~~~~
/datasets/git/builtin/clean.c:614:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        prompt_help_cmd(opts->flags & MENU_OPTS_SINGLETON);
                                        ^~~~~~~~~~~
/datasets/git/builtin/clean.c:619:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(opts->flags & MENU_OPTS_SINGLETON) && !choice.len)
                      ^~~~~~~~~~~
/datasets/git/builtin/clean.c:619:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(opts->flags & MENU_OPTS_SINGLETON) && !choice.len)
                                                                        ^
                                                                         {
/datasets/git/builtin/clean.c:623:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                  opts->flags & MENU_OPTS_SINGLETON,
                                  ^~~~~~~~~~~
/datasets/git/builtin/clean.c:627:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (opts->flags & MENU_OPTS_SINGLETON) {
                    ^~~~~~~~~~~
/datasets/git/builtin/clean.c:628:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (nr)
                               ^
                                {
/datasets/git/builtin/clean.c:630:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                } else if (opts->flags & MENU_OPTS_IMMEDIATE) {
                           ^~~~~~~~~~~
/datasets/git/builtin/clean.c:576:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int nr = 0;
        ^
/datasets/git/builtin/clean.c:639:7: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
                int j = 0;
                    ^
/datasets/git/builtin/clean.c:646:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = 0; i < stuff->nr; i++)
                        ^
/datasets/git/builtin/clean.c:646:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (i = 0; i < stuff->nr; i++)
                                                       ^
                                                        {
/datasets/git/builtin/clean.c:651:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < stuff->nr && j < nr; i++) {
                ^
/datasets/git/builtin/clean.c:651:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < stuff->nr && j < nr; i++) {
                            ^
/datasets/git/builtin/clean.c:652:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (chosen[i])
                                      ^
                                       {
/datasets/git/builtin/clean.c:672:18: warning: variable 'ignore_list' is not initialized [cppcoreguidelines-init-variables]
        struct strbuf **ignore_list;
                        ^
                                    = NULL
/datasets/git/builtin/clean.c:673:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/builtin/clean.c:674:23: warning: variable 'pl' is not initialized [cppcoreguidelines-init-variables]
        struct pattern_list *pl;
                             ^
                                = NULL
/datasets/git/builtin/clean.c:674:23: warning: variable name 'pl' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/clean.c:675:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int changed = -1, i;
        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/clean.c:675:20: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int changed = -1, i;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/clean.c:675:20: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/clean.c:678:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!del_list.nr)
                                 ^
                                  {
/datasets/git/builtin/clean.c:681:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (changed)
                            ^
                             {
/datasets/git/builtin/clean.c:687:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (git_read_line_interactively(&confirm) == EOF)
                                                                 ^
                                                                  {
/datasets/git/builtin/clean.c:691:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!confirm.len)
                                 ^
                                  {
/datasets/git/builtin/clean.c:697:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; ignore_list[i]; i++) {
                ^
/datasets/git/builtin/clean.c:673:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct string_list_item *item;
        ^
/datasets/git/builtin/clean.c:697:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ignore_list' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; ignore_list[i]; i++) {
                            ^
/datasets/git/builtin/clean.c:699:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!ignore_list[i]->len)
                                                 ^
                                                  {
/datasets/git/builtin/clean.c:706:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for_each_string_list_item(item, &del_list) {
                ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/clean.c:706:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
                for_each_string_list_item(item, &del_list) {
                                          ^
/datasets/git/builtin/clean.c:735:27: warning: variable 'items' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *items;
                                 ^
                                       = NULL
/datasets/git/builtin/clean.c:736:7: warning: variable 'chosen' is not initialized [cppcoreguidelines-init-variables]
        int *chosen;
             ^
                    = NULL
/datasets/git/builtin/clean.c:737:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, j;
        ^~~~~~~~~
/datasets/git/builtin/clean.c:737:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, j;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/clean.c:737:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/clean.c:737:9: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int i, j;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/clean.c:737:9: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/clean.c:745:18: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        menu_stuff.nr = del_list.nr;
                        ^
/datasets/git/builtin/clean.c:749:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0, j = 0; i < del_list.nr; i++) {
        ^
/datasets/git/builtin/clean.c:750:22: warning: repeated branch in conditional chain [bugprone-branch-clone]
                if (i < chosen[j]) {
                                   ^
/datasets/git/builtin/clean.c:752:4: note: end of the original
                } else if (i == chosen[j]) {
                 ^
/datasets/git/builtin/clean.c:756:10: note: clone 1 starts here
                } else {
                       ^
/datasets/git/builtin/clean.c:772:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/builtin/clean.c:773:14: warning: variable 'qname' is not initialized [cppcoreguidelines-init-variables]
        const char *qname;
                    ^
                          = NULL
/datasets/git/builtin/clean.c:774:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int changed = 0, eof = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/clean.c:772:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct string_list_item *item;
        ^
/datasets/git/builtin/clean.c:776:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(item, &del_list) {
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/clean.c:776:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(item, &del_list) {
                                  ^
/datasets/git/builtin/clean.c:787:23: warning: function 'strncasecmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (!confirm.len || strncasecmp(confirm.buf, "yes", confirm.len)) {
                                    ^
                                                                                 != 0
/datasets/git/builtin/clean.c:793:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (changed)
                    ^
                     {
/datasets/git/builtin/clean.c:837:8: warning: variable 'chosen' is not initialized [cppcoreguidelines-init-variables]
                int *chosen;
                     ^
                            = NULL
/datasets/git/builtin/clean.c:858:8: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
                        int ret;
                            ^
                                = 0
/datasets/git/builtin/clean.c:861:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                FREE_AND_NULL(chosen);
                                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/clean.c:874:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FREE_AND_NULL(chosen);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/clean.c:881:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int src, dst, ign;
        ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/clean.c:881:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/builtin/clean.c:881:6: warning: variable 'src' is not initialized [cppcoreguidelines-init-variables]
        int src, dst, ign;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/clean.c:881:11: warning: variable 'dst' is not initialized [cppcoreguidelines-init-variables]
        int src, dst, ign;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/clean.c:881:16: warning: variable 'ign' is not initialized [cppcoreguidelines-init-variables]
        int src, dst, ign;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/clean.c:883:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'src' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (src = dst = ign = 0; src < dir->nr; src++) {
                                  ^
/datasets/git/builtin/clean.c:885:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (ign < dir->ignored_nr &&
                ^
/datasets/git/builtin/clean.c:885:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'src' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (ign < dir->ignored_nr &&
                       ^
/datasets/git/builtin/clean.c:886:69: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                       0 <= cmp_dir_entry(&dir->entries[src], &dir->ignored[ign]))
                                                                                  ^
                                                                                   {
/datasets/git/builtin/clean.c:900:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (src < dir->nr &&
                        ^
/datasets/git/builtin/clean.c:900:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'src' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (src < dir->nr &&
                               ^
/datasets/git/builtin/clean.c:901:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                               check_dir_entry_contains(ent, dir->entries[src]))
                                                                                ^
                                                                                 {
/datasets/git/builtin/clean.c:911:5: warning: function 'cmd_clean' has cognitive complexity of 61 (threshold 25) [readability-function-cognitive-complexity]
int cmd_clean(int argc, const char **argv, const char *prefix)
    ^
/datasets/git/builtin/clean.c:941:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (force < 0)
        ^
/datasets/git/builtin/clean.c:943:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/builtin/clean.c:949:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!interactive && !dry_run && !force) {
        ^
/datasets/git/builtin/clean.c:949:31: note: +1
        if (!interactive && !dry_run && !force) {
                                     ^
/datasets/git/builtin/clean.c:950:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (config_set)
                ^
/datasets/git/builtin/clean.c:953:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/clean.c:958:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (force > 1)
        ^
/datasets/git/builtin/clean.c:960:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/builtin/clean.c:965:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ignored && ignored_only)
        ^
/datasets/git/builtin/clean.c:965:14: note: +1
        if (ignored && ignored_only)
                    ^
/datasets/git/builtin/clean.c:967:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!ignored)
        ^
/datasets/git/builtin/clean.c:969:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ignored_only)
        ^
/datasets/git/builtin/clean.c:972:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (argc) {
        ^
/datasets/git/builtin/clean.c:980:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (remove_directories && !ignored_only) {
        ^
/datasets/git/builtin/clean.c:980:25: note: +1
        if (remove_directories && !ignored_only) {
                               ^
/datasets/git/builtin/clean.c:997:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!ignored)
                ^
/datasets/git/builtin/clean.c:1015:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (repo_read_index(the_repository) < 0)
        ^
/datasets/git/builtin/clean.c:1019:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < exclude_list.nr; i++)
        ^
/datasets/git/builtin/clean.c:1029:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < dir.nr; i++) {
        ^
/datasets/git/builtin/clean.c:1034:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!index_name_is_other(&the_index, ent->name, ent->len))
                ^
/datasets/git/builtin/clean.c:1037:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (lstat(ent->name, &st))
                ^
/datasets/git/builtin/clean.c:1040:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (S_ISDIR(st.st_mode) && !remove_directories)
                ^
/datasets/git/builtin/clean.c:1040:27: note: +1
                if (S_ISDIR(st.st_mode) && !remove_directories)
                                        ^
/datasets/git/builtin/clean.c:1049:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (interactive && del_list.nr > 0)
        ^
/datasets/git/builtin/clean.c:1049:18: note: +1
        if (interactive && del_list.nr > 0)
                        ^
/datasets/git/builtin/clean.c:1052:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for_each_string_list_item(item, &del_list) {
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/clean.c:1052:2: note: +1
        for_each_string_list_item(item, &del_list) {
        ^
/datasets/git/./string-list.h:152:12: note: expanded from macro 'for_each_string_list_item'
             item && item < (list)->items + (list)->nr; \
                  ^
/datasets/git/builtin/clean.c:1056:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (prefix)
                ^
/datasets/git/builtin/clean.c:1066:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (lstat(abs_path.buf, &st))
                ^
/datasets/git/builtin/clean.c:1069:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (S_ISDIR(st.st_mode)) {
                ^
/datasets/git/builtin/clean.c:1070:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (remove_dirs(&abs_path, prefix, rm_flags, dry_run, quiet, &gone))
                        ^
/datasets/git/builtin/clean.c:1072:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (gone && !quiet) {
                        ^
/datasets/git/builtin/clean.c:1072:13: note: +1
                        if (gone && !quiet) {
                                 ^
/datasets/git/builtin/clean.c:1074:20: note: +4, including nesting penalty of 3, nesting level increased to 4
                                printf(dry_run ? _(msg_would_remove) : _(msg_remove), qname);
                                               ^
/datasets/git/builtin/clean.c:1076:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/clean.c:1077:18: note: +3, including nesting penalty of 2, nesting level increased to 3
                        res = dry_run ? 0 : unlink(abs_path.buf);
                                      ^
/datasets/git/builtin/clean.c:1078:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (res) {
                        ^
/datasets/git/builtin/clean.c:1084:11: note: +1, nesting level increased to 3
                        } else if (!quiet) {
                               ^
/datasets/git/builtin/clean.c:1086:20: note: +4, including nesting penalty of 3, nesting level increased to 4
                                printf(dry_run ? _(msg_would_remove) : _(msg_remove), qname);
                                               ^
/datasets/git/builtin/clean.c:913:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, res;
        ^~~~~~~~~~~
/datasets/git/builtin/clean.c:913:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, res;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/clean.c:913:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/clean.c:913:9: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        int i, res;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/clean.c:914:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int dry_run = 0, remove_directories = 0, quiet = 0, ignored = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/clean.c:915:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int ignored_only = 0, config_set = 0, errors = 0, gone = 1;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/clean.c:922:23: warning: variable 'pl' is not initialized [cppcoreguidelines-init-variables]
        struct pattern_list *pl;
                             ^
                                = NULL
/datasets/git/builtin/clean.c:922:23: warning: variable name 'pl' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/clean.c:923:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/builtin/clean.c:924:14: warning: variable 'qname' is not initialized [cppcoreguidelines-init-variables]
        const char *qname;
                    ^
                          = NULL
/datasets/git/builtin/clean.c:926:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__QUIET(&quiet, N_("do not print names of files removed")),
                ^
/datasets/git/./parse-options.h:360:31: note: expanded from macro 'OPT__QUIET'
#define OPT__QUIET(var, h)    OPT_COUNTUP('q', "quiet",   (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/clean.c:927:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__DRY_RUN(&dry_run, N_("dry run")),
                ^
/datasets/git/./parse-options.h:366:31: note: expanded from macro 'OPT__DRY_RUN'
#define OPT__DRY_RUN(var, h)  OPT_BOOL('n', "dry-run", (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/clean.c:928:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__FORCE(&force, N_("force"), PARSE_OPT_NOCOMPLETE),
                ^
/datasets/git/./parse-options.h:367:31: note: expanded from macro 'OPT__FORCE'
#define OPT__FORCE(var, h, f) OPT_COUNTUP_F('f', "force",   (var), (h), (f))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/clean.c:929:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('i', "interactive", &interactive, N_("interactive cleaning")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/clean.c:930:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('d', NULL, &remove_directories,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/clean.c:934:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('x', NULL, &ignored, N_("remove ignored files, too")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/clean.c:935:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('X', NULL, &ignored_only,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/clean.c:941:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (force < 0)
                      ^
                       {
/datasets/git/builtin/clean.c:943:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/clean.c:950:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (config_set)
                               ^
                                {
/datasets/git/builtin/clean.c:953:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/clean.c:958:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (force > 1)
                      ^
                       {
/datasets/git/builtin/clean.c:960:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/clean.c:961:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                dir.flags |= DIR_SKIP_NESTED_GIT;
                ^            ~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/clean.c:963:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        dir.flags |= DIR_SHOW_OTHER_DIRECTORIES;
        ^            ~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/clean.c:965:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ignored && ignored_only)
                                    ^
                                     {
/datasets/git/builtin/clean.c:967:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ignored)
                     ^
                      {
/datasets/git/builtin/clean.c:969:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ignored_only)
                         ^
                          {
/datasets/git/builtin/clean.c:970:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                dir.flags |= DIR_SHOW_IGNORED;
                ^            ~~~~~~~~~~~~~~~~
/datasets/git/builtin/clean.c:996:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                dir.flags |= DIR_SHOW_IGNORED_TOO;
                ^            ~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/clean.c:997:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ignored)
                             ^
                              {
/datasets/git/builtin/clean.c:998:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        dir.flags |= DIR_SHOW_IGNORED_TOO_MODE_MATCHING;
                        ^            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/clean.c:1009:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                dir.flags |= DIR_KEEP_UNTRACKED_CONTENTS;
                ^            ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/clean.c:1015:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_read_index(the_repository) < 0)
                                                ^
                                                 {
/datasets/git/builtin/clean.c:1019:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < exclude_list.nr; i++)
        ^
/datasets/git/./dir.h:215:2: note: inferred assignment of ID-dependent member from ID-dependent variable dst [altera-id-dependent-backward-branch]
        int nr;
        ^
/datasets/git/builtin/clean.c:1019:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < exclude_list.nr; i++)
                                             ^
                                              {
/datasets/git/builtin/clean.c:1023:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_PREFER_CWD,
                       ^
/datasets/git/./pathspec.h:65:30: note: expanded from macro 'PATHSPEC_PREFER_CWD'
#define PATHSPEC_PREFER_CWD (1<<0) /* No args means match cwd */
                             ^
/datasets/git/builtin/clean.c:1029:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < dir.nr; i++) {
        ^
/datasets/git/builtin/clean.c:1029:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < dir.nr; i++) {
                    ^
/datasets/git/builtin/clean.c:1031:15: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                struct stat st;
                            ^
/datasets/git/builtin/clean.c:1032:15: warning: variable 'rel' is not initialized [cppcoreguidelines-init-variables]
                const char *rel;
                            ^
                                = NULL
/datasets/git/builtin/clean.c:1034:51: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                if (!index_name_is_other(&the_index, ent->name, ent->len))
                                                                ^
/datasets/git/builtin/clean.c:1034:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!index_name_is_other(&the_index, ent->name, ent->len))
                                                                          ^
                                                                           {
/datasets/git/builtin/clean.c:1037:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (lstat(ent->name, &st))
                                          ^
                                           {
/datasets/git/builtin/clean.c:1040:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (S_ISDIR(st.st_mode) && !remove_directories)
                                                               ^
                                                                {
/datasets/git/builtin/clean.c:1049:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (interactive && del_list.nr > 0)
                                           ^
                                            {
/datasets/git/builtin/clean.c:1052:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(item, &del_list) {
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/clean.c:1052:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(item, &del_list) {
                                  ^
/datasets/git/builtin/clean.c:1053:15: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                struct stat st;
                            ^
/datasets/git/builtin/clean.c:1056:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (prefix)
                           ^
                            {
/datasets/git/builtin/clean.c:1066:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (lstat(abs_path.buf, &st))
                                             ^
                                              {
/datasets/git/builtin/clean.c:1070:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (remove_dirs(&abs_path, prefix, rm_flags, dry_run, quiet, &gone))
                                                                                            ^
                                                                                             {
/datasets/git/builtin/clone.c:13:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "branch.h"
/datasets/git/builtin/clone.c:52:12: warning: variable 'option_no_checkout' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int option_no_checkout, option_bare, option_mirror, option_single_branch = -1;
           ^
/datasets/git/builtin/clone.c:52:32: warning: variable 'option_bare' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int option_no_checkout, option_bare, option_mirror, option_single_branch = -1;
                               ^
/datasets/git/builtin/clone.c:52:45: warning: variable 'option_mirror' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int option_no_checkout, option_bare, option_mirror, option_single_branch = -1;
                                            ^
/datasets/git/builtin/clone.c:52:60: warning: variable 'option_single_branch' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int option_no_checkout, option_bare, option_mirror, option_single_branch = -1;
                                                           ^
/datasets/git/builtin/clone.c:53:12: warning: variable 'option_local' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int option_local = -1, option_no_hardlinks, option_shared;
           ^
/datasets/git/builtin/clone.c:53:31: warning: variable 'option_no_hardlinks' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int option_local = -1, option_no_hardlinks, option_shared;
                              ^
/datasets/git/builtin/clone.c:53:52: warning: variable 'option_shared' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int option_local = -1, option_no_hardlinks, option_shared;
                                                   ^
/datasets/git/builtin/clone.c:54:12: warning: variable 'option_no_tags' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int option_no_tags;
           ^
/datasets/git/builtin/clone.c:55:12: warning: variable 'option_shallow_submodules' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int option_shallow_submodules;
           ^
/datasets/git/builtin/clone.c:56:12: warning: variable 'option_reject_shallow' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int option_reject_shallow = -1;    /* unspecified */
           ^
/datasets/git/builtin/clone.c:57:12: warning: variable 'config_reject_shallow' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int config_reject_shallow = -1;    /* unspecified */
           ^
/datasets/git/builtin/clone.c:58:12: warning: variable 'deepen' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int deepen;
           ^
/datasets/git/builtin/clone.c:59:14: warning: variable 'option_template' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *option_template, *option_depth, *option_since;
             ^
/datasets/git/builtin/clone.c:59:14: warning: variable 'option_template' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/clone.c:59:32: warning: variable 'option_depth' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *option_template, *option_depth, *option_since;
                               ^
/datasets/git/builtin/clone.c:59:32: warning: variable 'option_depth' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/clone.c:59:47: warning: variable 'option_since' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *option_template, *option_depth, *option_since;
                                              ^
/datasets/git/builtin/clone.c:59:47: warning: variable 'option_since' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/clone.c:60:14: warning: variable 'option_origin' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *option_origin = NULL;
             ^
/datasets/git/builtin/clone.c:60:14: warning: variable 'option_origin' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/clone.c:61:14: warning: variable 'remote_name' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *remote_name = NULL;
             ^
/datasets/git/builtin/clone.c:61:14: warning: variable 'remote_name' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/clone.c:62:14: warning: variable 'option_branch' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *option_branch = NULL;
             ^
/datasets/git/builtin/clone.c:62:14: warning: variable 'option_branch' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/clone.c:63:27: warning: variable 'option_not' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct string_list option_not = STRING_LIST_INIT_NODUP;
                          ^
/datasets/git/builtin/clone.c:64:20: warning: variable 'real_git_dir' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *real_git_dir;
                   ^
/datasets/git/builtin/clone.c:65:14: warning: variable 'option_upload_pack' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *option_upload_pack = "git-upload-pack";
             ^
/datasets/git/builtin/clone.c:65:14: warning: variable 'option_upload_pack' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/clone.c:66:12: warning: variable 'option_verbosity' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int option_verbosity;
           ^
/datasets/git/builtin/clone.c:67:12: warning: variable 'option_progress' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int option_progress = -1;
           ^
/datasets/git/builtin/clone.c:68:12: warning: variable 'option_sparse_checkout' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int option_sparse_checkout;
           ^
/datasets/git/builtin/clone.c:69:30: warning: variable 'family' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static enum transport_family family;
                             ^
/datasets/git/builtin/clone.c:70:27: warning: variable 'option_config' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct string_list option_config = STRING_LIST_INIT_NODUP;
                          ^
/datasets/git/builtin/clone.c:71:27: warning: variable 'option_required_reference' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct string_list option_required_reference = STRING_LIST_INIT_NODUP;
                          ^
/datasets/git/builtin/clone.c:72:27: warning: variable 'option_optional_reference' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct string_list option_optional_reference = STRING_LIST_INIT_NODUP;
                          ^
/datasets/git/builtin/clone.c:73:12: warning: variable 'option_dissociate' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int option_dissociate;
           ^
/datasets/git/builtin/clone.c:74:12: warning: variable 'max_jobs' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int max_jobs = -1;
           ^
/datasets/git/builtin/clone.c:75:27: warning: variable 'option_recurse_submodules' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct string_list option_recurse_submodules = STRING_LIST_INIT_NODUP;
                          ^
/datasets/git/builtin/clone.c:76:43: warning: variable 'filter_options' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct list_objects_filter_options filter_options = LIST_OBJECTS_FILTER_INIT;
                                          ^
/datasets/git/builtin/clone.c:76:43: warning: initializing non-local variable with non-const expression depending on uninitialized non-local variable 'strbuf_slopbuf' [cppcoreguidelines-interfaces-global-init]
/datasets/git/builtin/clone.c:77:12: warning: variable 'option_filter_submodules' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int option_filter_submodules = -1;    /* unspecified */
           ^
/datasets/git/builtin/clone.c:78:12: warning: variable 'config_filter_submodules' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int config_filter_submodules = -1;    /* unspecified */
           ^
/datasets/git/builtin/clone.c:79:27: warning: variable 'server_options' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct string_list server_options = STRING_LIST_INIT_NODUP;
                          ^
/datasets/git/builtin/clone.c:80:12: warning: variable 'option_remote_submodules' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int option_remote_submodules;
           ^
/datasets/git/builtin/clone.c:81:20: warning: variable 'bundle_uri' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *bundle_uri;
                   ^
/datasets/git/builtin/clone.c:86:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unset)
                  ^
                   {
/datasets/git/builtin/clone.c:88:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (arg)
                     ^
                      {
/datasets/git/builtin/clone.c:90:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/clone.c:92:8: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
                                   (const char *)opt->defval);
                                   ^
/datasets/git/builtin/clone.c:97:22: warning: variable 'builtin_clone_options' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct option builtin_clone_options[] = {
                     ^
/datasets/git/builtin/clone.c:99:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "progress", &option_progress,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/clone.c:101:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "reject-shallow", &option_reject_shallow,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/clone.c:103:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL('n', "no-checkout", &option_no_checkout,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/clone.c:105:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "bare", &option_bare, N_("create a bare repository")),
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/clone.c:106:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_HIDDEN_BOOL(0, "naked", &option_bare,
        ^
/datasets/git/./parse-options.h:185:16: note: expanded from macro 'OPT_HIDDEN_BOOL'
                                      (h), PARSE_OPT_NOARG | PARSE_OPT_HIDDEN, NULL, 1}
                                           ^~~~~~~~~~~~~~~
/datasets/git/builtin/clone.c:108:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "mirror", &option_mirror,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/clone.c:110:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL('l', "local", &option_local,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/clone.c:112:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "no-hardlinks", &option_no_hardlinks,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/clone.c:114:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL('s', "shared", &option_shared,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/clone.c:128:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "dissociate", &option_dissociate,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/clone.c:142:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "single-branch", &option_single_branch,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/clone.c:144:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "no-tags", &option_no_tags,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/clone.c:146:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "shallow-submodules", &option_shallow_submodules,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/clone.c:154:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_SET_INT('4', "ipv4", &family, N_("use IPv4 addresses only"),
        ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/clone.c:156:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_SET_INT('6', "ipv6", &family, N_("use IPv6 addresses only"),
        ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/clone.c:159:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "also-filter-submodules", &option_filter_submodules,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/clone.c:161:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "remote-submodules", &option_remote_submodules,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/clone.c:163:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "sparse", &option_sparse_checkout,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/clone.c:175:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/builtin/clone.c:176:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/clone.c:176:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/clone.c:178:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ARRAY_SIZE(suffix); i++) {
        ^
/datasets/git/builtin/clone.c:181:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (stat(path->buf, &st))
                                         ^
                                          {
/datasets/git/builtin/clone.c:186:5: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                } else if (S_ISREG(st.st_mode) && st.st_size > 8) {
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/clone.c:186:50: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                } else if (S_ISREG(st.st_mode) && st.st_size > 8) {
                                                               ^
/datasets/git/builtin/clone.c:188:19: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        char signature[8];
                                       ^
/datasets/git/builtin/clone.c:189:16: warning: variable 'dst' is not initialized [cppcoreguidelines-init-variables]
                        const char *dst;
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/clone.c:190:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        int len, fd = open(path->buf, O_RDONLY);
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/clone.c:190:8: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
                        int len, fd = open(path->buf, O_RDONLY);
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/clone.c:190:13: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
                        int len, fd = open(path->buf, O_RDONLY);
                                 ^
/datasets/git/builtin/clone.c:190:42: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
                        int len, fd = open(path->buf, O_RDONLY);
                                                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/clone.c:191:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (fd < 0)
                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/clone.c:193:10: warning: narrowing conversion from 'ssize_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        len = read_in_full(fd, signature, 8);
                              ^
/datasets/git/builtin/clone.c:193:38: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        len = read_in_full(fd, signature, 8);
                                                          ^
/datasets/git/builtin/clone.c:195:15: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        if (len != 8 || strncmp(signature, "gitdir: ", 8))
                                   ^
/datasets/git/builtin/clone.c:195:20: warning: function 'strncmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                        if (len != 8 || strncmp(signature, "gitdir: ", 8))
                                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/clone.c:195:51: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        if (len != 8 || strncmp(signature, "gitdir: ", 8))
                                                                       ^
/datasets/git/builtin/clone.c:195:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (len != 8 || strncmp(signature, "gitdir: ", 8))
                                                                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/clone.c:205:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ARRAY_SIZE(bundle_suffix); i++) {
        ^
/datasets/git/builtin/clone.c:220:14: warning: variable 'raw' is not initialized [cppcoreguidelines-init-variables]
        const char *raw;
                    ^
                        = NULL
/datasets/git/builtin/clone.c:221:8: warning: variable 'canon' is not initialized [cppcoreguidelines-init-variables]
        char *canon;
              ^
                    = NULL
/datasets/git/builtin/clone.c:237:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*required)
                              ^
                               {
/datasets/git/builtin/clone.c:239:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/clone.c:240:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr,
                        ^~~~~~~~~~~~~~~
/datasets/git/builtin/clone.c:240:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/clone.c:244:17: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                struct strbuf sb = STRBUF_INIT;
                              ^
/datasets/git/builtin/clone.c:279:8: warning: variable name 'in' is too short, expected at least 3 characters [readability-identifier-length]
        FILE *in = xfopen(src->buf, "r");
              ^
/datasets/git/builtin/clone.c:282:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (strbuf_getline(&line, in) != EOF) {
        ^
/datasets/git/builtin/clone.c:282:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'line' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (strbuf_getline(&line, in) != EOF) {
               ^
/datasets/git/builtin/clone.c:283:9: warning: variable 'abs_path' is not initialized [cppcoreguidelines-init-variables]
                char *abs_path;
                      ^
                               = NULL
/datasets/git/builtin/clone.c:284:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!line.len || line.buf[0] == '#')
                                                    ^
                                                     {
/datasets/git/builtin/clone.c:291:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!normalize_path_copy(abs_path, abs_path))
                                                             ^
                                                              {
/datasets/git/builtin/clone.c:293:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/clone.c:299:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(in);
        ^~~~~~~~~~
/datasets/git/builtin/clone.c:299:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/clone.c:280:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct strbuf line = STRBUF_INIT;
        ^
/datasets/git/builtin/clone.c:304:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/builtin/clone.c:306:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!mkdir(pathname, mode))
                                   ^
                                    {
/datasets/git/builtin/clone.c:309:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (errno != EEXIST)
                            ^
                             {
/datasets/git/builtin/clone.c:311:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (stat(pathname, &st))
                                     ^
                                      {
/datasets/git/builtin/clone.c:313:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!S_ISDIR(st.st_mode))
                                      ^
                                       {
/datasets/git/builtin/clone.c:320:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int src_len, dest_len;
        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/clone.c:320:6: warning: variable 'src_len' is not initialized [cppcoreguidelines-init-variables]
        int src_len, dest_len;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/clone.c:320:15: warning: variable 'dest_len' is not initialized [cppcoreguidelines-init-variables]
        int src_len, dest_len;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/clone.c:321:23: warning: variable 'iter' is not initialized [cppcoreguidelines-init-variables]
        struct dir_iterator *iter;
                             ^
                                  = NULL
/datasets/git/builtin/clone.c:322:6: warning: variable 'iter_status' is not initialized [cppcoreguidelines-init-variables]
        int iter_status;
            ^
                        = 0
/datasets/git/builtin/clone.c:325:30: warning: 0777 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mkdir_if_missing(dest->buf, 0777);
                                    ^
/datasets/git/builtin/clone.c:327:38: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        iter = dir_iterator_begin(src->buf, DIR_ITERATOR_PEDANTIC);
                                            ^
/datasets/git/./dir-iterator.h:68:32: note: expanded from macro 'DIR_ITERATOR_PEDANTIC'
#define DIR_ITERATOR_PEDANTIC (1 << 0)
                               ^
/datasets/git/builtin/clone.c:329:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!iter)
                  ^
                   {
/datasets/git/builtin/clone.c:333:12: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        src_len = src->len;
                  ^
/datasets/git/builtin/clone.c:335:13: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        dest_len = dest->len;
                   ^
/datasets/git/builtin/clone.c:337:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((iter_status = dir_iterator_advance(iter)) == ITER_OK) {
        ^
/datasets/git/builtin/clone.c:337:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'iter_status' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((iter_status = dir_iterator_advance(iter)) == ITER_OK) {
               ^
/datasets/git/builtin/clone.c:343:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (S_ISLNK(iter->st.st_mode))
                                              ^
                                               {
/datasets/git/builtin/clone.c:348:32: warning: 0777 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        mkdir_if_missing(dest->buf, 0777);
                                                    ^
/datasets/git/builtin/clone.c:358:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (unlink(dest->buf) && errno != ENOENT)
                                                         ^
                                                          {
/datasets/git/builtin/clone.c:362:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!link(realpath.buf, dest->buf))
                                                           ^
                                                            {
/datasets/git/builtin/clone.c:364:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (option_local > 0)
                                             ^
                                              {
/datasets/git/builtin/clone.c:368:48: warning: 0666 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (copy_file_with_time(dest->buf, src->buf, 0666))
                                                             ^
/datasets/git/builtin/clone.c:368:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (copy_file_with_time(dest->buf, src->buf, 0666))
                                                                   ^
                                                                    {
/datasets/git/builtin/clone.c:400:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (0 <= option_verbosity)
                                  ^
                                   {
/datasets/git/builtin/clone.c:401:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, _("done.\n"));
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/clone.c:401:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/clone.c:404:20: warning: variable 'junk_work_tree' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *junk_work_tree;
                   ^
/datasets/git/builtin/clone.c:405:12: warning: variable 'junk_work_tree_flags' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int junk_work_tree_flags;
           ^
/datasets/git/builtin/clone.c:406:20: warning: variable 'junk_git_dir' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *junk_git_dir;
                   ^
/datasets/git/builtin/clone.c:407:12: warning: variable 'junk_git_dir_flags' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int junk_git_dir_flags;
           ^
/datasets/git/builtin/clone.c:412:3: warning: variable 'junk_mode' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} junk_mode = JUNK_LEAVE_NONE;
  ^
/datasets/git/builtin/clone.c:421:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/clone.c:450:2: warning: the value returned by this function should be used [cert-err33-c]
        raise(signo);
        ^~~~~~~~~~~~
/datasets/git/builtin/clone.c:450:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/clone.c:455:14: warning: variable 'ref' is not initialized [cppcoreguidelines-init-variables]
        struct ref *ref;
                    ^
                        = NULL
/datasets/git/builtin/clone.c:462:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ref)
                ^
                 {
/datasets/git/builtin/clone.c:483:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!option_branch)
                                   ^
                                    {
/datasets/git/builtin/clone.c:491:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!remote_head && option_branch)
                                                  ^
                                                   {
/datasets/git/builtin/clone.c:495:8: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                        int i;
                            ^
                              = 0
/datasets/git/builtin/clone.c:495:8: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/clone.c:496:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = 0; i < refspec->nr; i++)
                        ^
/datasets/git/builtin/clone.c:496:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (i = 0; i < refspec->nr; i++)
                                                         ^
                                                          {
/datasets/git/builtin/clone.c:505:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/builtin/clone.c:505:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/clone.c:506:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < refspec->nr; i++)
                ^
/datasets/git/builtin/clone.c:506:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < refspec->nr; i++)
                                                 ^
                                                  {
/datasets/git/builtin/clone.c:510:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!option_mirror && !option_single_branch && !option_no_tags)
                                                                       ^
                                                                        {
/datasets/git/builtin/clone.c:518:20: warning: variable 'r' is not initialized [cppcoreguidelines-init-variables]
        const struct ref *r;
                          ^
                            = NULL
/datasets/git/builtin/clone.c:518:20: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/clone.c:520:26: warning: variable 't' is not initialized [cppcoreguidelines-init-variables]
        struct ref_transaction *t;
                                ^
                                  = NULL
/datasets/git/builtin/clone.c:520:26: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/clone.c:524:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!t)
               ^
                {
/datasets/git/builtin/clone.c:527:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (r = local_refs; r; r = r->next) {
        ^
/datasets/git/builtin/clone.c:527:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 'r' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (r = local_refs; r; r = r->next) {
                             ^
/datasets/git/builtin/clone.c:528:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!r->peer_ref)
                                 ^
                                  {
/datasets/git/builtin/clone.c:531:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                           0, NULL, &err))
                                                          ^
                                                           {
/datasets/git/builtin/clone.c:535:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (initial_ref_transaction_commit(t, &err))
                                                    ^
                                                     {
/datasets/git/builtin/clone.c:544:20: warning: variable 'ref' is not initialized [cppcoreguidelines-init-variables]
        const struct ref *ref;
                          ^
                              = NULL
/datasets/git/builtin/clone.c:545:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (ref = refs; ref; ref = ref->next) {
        ^
/datasets/git/builtin/clone.c:545:19: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (ref = refs; ref; ref = ref->next) {
                         ^
/datasets/git/builtin/clone.c:546:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!starts_with(ref->name, "refs/tags/"))
                                                          ^
                                                           {
/datasets/git/builtin/clone.c:548:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ends_with(ref->name, "^{}"))
                                                ^
                                                 {
/datasets/git/builtin/clone.c:551:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                                OBJECT_INFO_QUICK |
                                                ^
/datasets/git/./object-store.h:436:27: note: expanded from macro 'OBJECT_INFO_QUICK'
#define OBJECT_INFO_QUICK 8
                          ^
/datasets/git/./object-store.h:336:101: note: expanded from macro 'has_object_file_with_flags'
#define has_object_file_with_flags(oid, flags) repo_has_object_file_with_flags(the_repository, oid, flags)
                                                                                                    ^~~~~
/datasets/git/builtin/clone.c:552:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                OBJECT_INFO_SKIP_FETCH_OBJECT))
                                                                               ^
                                                                                {
/datasets/git/builtin/clone.c:561:15: warning: variable name 'rm' is too short, expected at least 3 characters [readability-identifier-length]
        struct ref **rm = cb_data;
                     ^
/datasets/git/builtin/clone.c:568:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (ref && !ref->peer_ref)
        ^
/datasets/git/builtin/clone.c:568:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (ref && !ref->peer_ref)
               ^
/datasets/git/builtin/clone.c:568:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (ref && !ref->peer_ref)
                                     ^
                                      {
/datasets/git/builtin/clone.c:570:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ref)
                 ^
                  {
/datasets/git/builtin/clone.c:577:32: warning: 3 adjacent parameters of 'update_remote_refs' of similar type ('const struct ref *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void update_remote_refs(const struct ref *refs,
                               ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/clone.c:577:50: note: the first parameter in the range is 'refs'
static void update_remote_refs(const struct ref *refs,
                                                 ^~~~
/datasets/git/builtin/clone.c:579:29: note: the last parameter in the range is 'remote_head_points_at'
                               const struct ref *remote_head_points_at,
                                                 ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/clone.c:580:11: warning: 2 adjacent parameters of 'update_remote_refs' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                               const char *branch_top,
                               ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/clone.c:580:23: note: the first parameter in the range is 'branch_top'
                               const char *branch_top,
                                           ^~~~~~~~~~
/datasets/git/builtin/clone.c:581:23: note: the last parameter in the range is 'msg'
                               const char *msg,
                                           ^~~
/datasets/git/builtin/clone.c:585:20: warning: variable name 'rm' is too short, expected at least 3 characters [readability-identifier-length]
        const struct ref *rm = mapped_refs;
                          ^
/datasets/git/builtin/clone.c:593:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (check_connected(iterate_ref_map, &rm, &opt))
                                                                ^
                                                                 {
/datasets/git/builtin/clone.c:599:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (option_single_branch && !option_no_tags)
                                                            ^
                                                             {
/datasets/git/builtin/clone.c:609:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                  msg) < 0)
                                           ^
                                            {
/datasets/git/builtin/clone.c:616:4: warning: 2 adjacent parameters of 'update_head' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                        const char *unborn, const char *msg)
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/clone.c:616:16: note: the first parameter in the range is 'unborn'
                        const char *unborn, const char *msg)
                                    ^~~~~~
/datasets/git/builtin/clone.c:616:36: note: the last parameter in the range is 'msg'
                        const char *unborn, const char *msg)
                                                        ^~~
/datasets/git/builtin/clone.c:618:14: warning: variable 'head' is not initialized [cppcoreguidelines-init-variables]
        const char *head;
                    ^
                         = NULL
/datasets/git/builtin/clone.c:621:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (create_symref("HEAD", our->name, NULL) < 0)
                                                               ^
                                                                {
/datasets/git/builtin/clone.c:629:18: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                struct commit *c = lookup_commit_reference(the_repository,
                               ^
/datasets/git/builtin/clone.c:632:49: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                update_ref(msg, "HEAD", &c->object.oid, NULL, REF_NO_DEREF,
                                                              ^
/datasets/git/./refs.h:631:23: note: expanded from macro 'REF_NO_DEREF'
#define REF_NO_DEREF (1 << 0)
                      ^
/datasets/git/builtin/clone.c:640:51: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                update_ref(msg, "HEAD", &remote->old_oid, NULL, REF_NO_DEREF,
                                                                ^
/datasets/git/./refs.h:631:23: note: expanded from macro 'REF_NO_DEREF'
#define REF_NO_DEREF (1 << 0)
                      ^
/datasets/git/builtin/clone.c:647:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (create_symref("HEAD", unborn, NULL) < 0)
                                                            ^
                                                             {
/datasets/git/builtin/clone.c:649:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!option_bare)
                                 ^
                                  {
/datasets/git/builtin/clone.c:650:4: warning: 3rd argument 'remote_name' (passed to 'origin') looks like it might be swapped with the 4th, 'unborn' (passed to 'remote') [readability-suspicious-call-argument]
                        install_branch_config(0, head, remote_name, unborn);
                        ^                              ~~~~~~~~~~~  ~~~~~~
/datasets/git/./branch.h:144:5: note: in the call to 'install_branch_config', declared here
int install_branch_config(int flag, const char *local, const char *origin, const char *remote);
    ^                                                              ~~~~~~              ~~~~~~
/datasets/git/builtin/clone.c:675:12: warning: function 'checkout' has cognitive complexity of 33 (threshold 25) [readability-function-cognitive-complexity]
static int checkout(int submodule_progress, int filter_submodules)
           ^
/datasets/git/builtin/clone.c:685:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (option_no_checkout)
        ^
/datasets/git/builtin/clone.c:689:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!head) {
        ^
/datasets/git/builtin/clone.c:694:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(head, "HEAD")) {
        ^
/datasets/git/builtin/clone.c:695:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (advice_enabled(ADVICE_DETACHED_HEAD))
                ^
/datasets/git/builtin/clone.c:697:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                FREE_AND_NULL(head);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/clone.c:698:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/clone.c:699:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!starts_with(head, "refs/heads/"))
                ^
/datasets/git/builtin/clone.c:720:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!tree)
        ^
/datasets/git/builtin/clone.c:724:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (unpack_trees(1, &t, &opts) < 0)
        ^
/datasets/git/builtin/clone.c:729:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (write_locked_index(&the_index, &lock_file, COMMIT_LOCK))
        ^
/datasets/git/builtin/clone.c:735:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!err && (option_recurse_submodules.nr > 0)) {
        ^
/datasets/git/builtin/clone.c:735:11: note: +1
        if (!err && (option_recurse_submodules.nr > 0)) {
                 ^
/datasets/git/builtin/clone.c:740:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (option_shallow_submodules == 1)
                ^
/datasets/git/builtin/clone.c:743:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (max_jobs != -1)
                ^
/datasets/git/builtin/clone.c:746:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (submodule_progress)
                ^
/datasets/git/builtin/clone.c:749:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (option_verbosity < 0)
                ^
/datasets/git/builtin/clone.c:752:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (option_remote_submodules) {
                ^
/datasets/git/builtin/clone.c:757:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (filter_submodules && filter_options.choice)
                ^
/datasets/git/builtin/clone.c:757:25: note: +1
                if (filter_submodules && filter_options.choice)
                                      ^
/datasets/git/builtin/clone.c:761:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (option_single_branch >= 0)
                ^
/datasets/git/builtin/clone.c:762:48: note: +3, including nesting penalty of 2, nesting level increased to 3
                        strvec_push(&cmd.args, option_single_branch ?
                                                                    ^
/datasets/git/builtin/clone.c:675:21: warning: 2 adjacent parameters of 'checkout' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int checkout(int submodule_progress, int filter_submodules)
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/clone.c:675:25: note: the first parameter in the range is 'submodule_progress'
static int checkout(int submodule_progress, int filter_submodules)
                        ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/clone.c:675:49: note: the last parameter in the range is 'filter_submodules'
static int checkout(int submodule_progress, int filter_submodules)
                                                ^~~~~~~~~~~~~~~~~
/datasets/git/builtin/clone.c:678:8: warning: variable 'head' is not initialized [cppcoreguidelines-init-variables]
        char *head;
              ^
                   = NULL
/datasets/git/builtin/clone.c:681:15: warning: variable 'tree' is not initialized [cppcoreguidelines-init-variables]
        struct tree *tree;
                     ^
                          = NULL
/datasets/git/builtin/clone.c:682:19: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
        struct tree_desc t;
                         ^
/datasets/git/builtin/clone.c:685:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (option_no_checkout)
                               ^
                                {
/datasets/git/builtin/clone.c:695:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (advice_enabled(ADVICE_DETACHED_HEAD))
                                                         ^
                                                          {
/datasets/git/builtin/clone.c:697:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FREE_AND_NULL(head);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/clone.c:699:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!starts_with(head, "refs/heads/"))
                                                      ^
                                                       {
/datasets/git/builtin/clone.c:708:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&opts, 0, sizeof opts);
        ^~~~~~
/datasets/git/builtin/clone.c:708:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&opts, 0, sizeof opts);
        ^~~~~~
/datasets/git/builtin/clone.c:720:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!tree)
                  ^
                   {
/datasets/git/builtin/clone.c:724:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unpack_trees(1, &t, &opts) < 0)
                                           ^
                                            {
/datasets/git/builtin/clone.c:729:49: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (write_locked_index(&the_index, &lock_file, COMMIT_LOCK))
                                                       ^
/datasets/git/./refs/../cache.h:744:23: note: expanded from macro 'COMMIT_LOCK'
#define COMMIT_LOCK             (1 << 0)
                                 ^
/datasets/git/builtin/clone.c:729:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_locked_index(&the_index, &lock_file, COMMIT_LOCK))
                                                                    ^
                                                                     {
/datasets/git/builtin/clone.c:732:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        err |= run_hooks_l("post-checkout", oid_to_hex(null_oid()),
        ^~~
/datasets/git/builtin/clone.c:740:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (option_shallow_submodules == 1)
                                                   ^
                                                    {
/datasets/git/builtin/clone.c:743:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (max_jobs != -1)
                                   ^
                                    {
/datasets/git/builtin/clone.c:746:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (submodule_progress)
                                       ^
                                        {
/datasets/git/builtin/clone.c:749:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (option_verbosity < 0)
                                         ^
                                          {
/datasets/git/builtin/clone.c:757:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (filter_submodules && filter_options.choice)
                                                               ^
                                                                {
/datasets/git/builtin/clone.c:761:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (option_single_branch >= 0)
                                              ^
                                               {
/datasets/git/builtin/clone.c:773:41: warning: parameter name 'k' is too short, expected at least 3 characters [readability-identifier-length]
static int git_clone_config(const char *k, const char *v, void *cb)
                                        ^
/datasets/git/builtin/clone.c:773:56: warning: parameter name 'v' is too short, expected at least 3 characters [readability-identifier-length]
static int git_clone_config(const char *k, const char *v, void *cb)
                                                       ^
/datasets/git/builtin/clone.c:773:65: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int git_clone_config(const char *k, const char *v, void *cb)
                                                                ^
/datasets/git/builtin/clone.c:779:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(k, "clone.rejectshallow"))
                                              ^
                                               {
/datasets/git/builtin/clone.c:781:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(k, "clone.filtersubmodules"))
                                                 ^
                                                  {
/datasets/git/builtin/clone.c:795:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (apply_failed)
                         ^
                          {
/datasets/git/builtin/clone.c:805:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/clone.c:805:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/clone.c:807:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < config->nr; i++) {
        ^
/datasets/git/builtin/clone.c:809:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                               write_one_config, NULL) < 0)
                                                                           ^
                                                                            {
/datasets/git/builtin/clone.c:825:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (starts_with(our_head_points_at->name, "refs/tags/"))
                                                                                        ^
                                                                                         {
/datasets/git/builtin/clone.c:828:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                else
                                    ^
                                     {
/datasets/git/builtin/clone.c:833:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!skip_prefix(head, "refs/heads/", &head))
                                                                             ^
                                                                              {
/datasets/git/builtin/clone.c:876:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (run_command(&cmd))
                                      ^
                                       {
/datasets/git/builtin/clone.c:878:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (unlink(alternates) && errno != ENOENT)
                                                          ^
                                                           {
/datasets/git/builtin/clone.c:886:14: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat sb;
                    ^
/datasets/git/builtin/clone.c:890:5: warning: function 'cmd_clone' has cognitive complexity of 161 (threshold 25) [readability-function-cognitive-complexity]
int cmd_clone(int argc, const char **argv, const char *prefix)
    ^
/datasets/git/builtin/clone.c:922:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (argc > 2)
        ^
/datasets/git/builtin/clone.c:926:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (argc == 0)
        ^
/datasets/git/builtin/clone.c:930:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (option_depth || option_since || option_not.nr)
        ^
/datasets/git/builtin/clone.c:930:35: note: +1
        if (option_depth || option_since || option_not.nr)
                                         ^
/datasets/git/builtin/clone.c:932:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (option_single_branch == -1)
        ^
/datasets/git/builtin/clone.c:933:33: note: +2, including nesting penalty of 1, nesting level increased to 2
                option_single_branch = deepen ? 1 : 0;
                                              ^
/datasets/git/builtin/clone.c:935:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (option_mirror)
        ^
/datasets/git/builtin/clone.c:938:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (option_bare) {
        ^
/datasets/git/builtin/clone.c:939:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (real_git_dir)
                ^
/datasets/git/builtin/clone.c:944:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (bundle_uri && deepen)
        ^
/datasets/git/builtin/clone.c:944:17: note: +1
        if (bundle_uri && deepen)
                       ^
/datasets/git/builtin/clone.c:950:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (path) {
        ^
/datasets/git/builtin/clone.c:951:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                FREE_AND_NULL(path);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/clone.c:953:9: note: +1, nesting level increased to 1
        } else if (strchr(repo_name, ':')) {
               ^
/datasets/git/builtin/clone.c:956:4: note: +1, nesting level increased to 1
        } else
          ^
/datasets/git/builtin/clone.c:960:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (option_depth && atoi(option_depth) < 1)
        ^
/datasets/git/builtin/clone.c:960:19: note: +1
        if (option_depth && atoi(option_depth) < 1)
                         ^
/datasets/git/builtin/clone.c:963:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (argc == 2)
        ^
/datasets/git/builtin/clone.c:965:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/builtin/clone.c:970:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (dest_exists && !is_empty_dir(dir))
        ^
/datasets/git/builtin/clone.c:970:18: note: +1
        if (dest_exists && !is_empty_dir(dir))
                        ^
/datasets/git/builtin/clone.c:974:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (real_git_dir) {
        ^
/datasets/git/builtin/clone.c:976:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (real_dest_exists && !is_empty_dir(real_git_dir))
                ^
/datasets/git/builtin/clone.c:976:24: note: +1
                if (real_dest_exists && !is_empty_dir(real_git_dir))
                                     ^
/datasets/git/builtin/clone.c:983:20: note: +1, including nesting penalty of 0, nesting level increased to 1
                    display_repo ? display_repo : repo);
                                 ^
/datasets/git/builtin/clone.c:986:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (option_bare)
        ^
/datasets/git/builtin/clone.c:988:2: note: +1, nesting level increased to 1
        else {
        ^
/datasets/git/builtin/clone.c:990:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (work_tree && path_exists(work_tree))
                ^
/datasets/git/builtin/clone.c:990:17: note: +1
                if (work_tree && path_exists(work_tree))
                              ^
/datasets/git/builtin/clone.c:994:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (option_bare || work_tree)
        ^
/datasets/git/builtin/clone.c:994:18: note: +1
        if (option_bare || work_tree)
                        ^
/datasets/git/builtin/clone.c:996:2: note: +1, nesting level increased to 1
        else {
        ^
/datasets/git/builtin/clone.c:1004:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!option_bare) {
        ^
/datasets/git/builtin/clone.c:1005:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (safe_create_leading_directories_const(work_tree) < 0)
                ^
/datasets/git/builtin/clone.c:1008:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (dest_exists)
                ^
/datasets/git/builtin/clone.c:1010:8: note: +1, nesting level increased to 2
                else if (mkdir(work_tree, 0777))
                     ^
/datasets/git/builtin/clone.c:1017:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (real_git_dir) {
        ^
/datasets/git/builtin/clone.c:1018:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (real_dest_exists)
                ^
/datasets/git/builtin/clone.c:1021:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/clone.c:1022:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (dest_exists)
                ^
/datasets/git/builtin/clone.c:1026:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (safe_create_leading_directories_const(git_dir) < 0)
        ^
/datasets/git/builtin/clone.c:1029:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (0 <= option_verbosity) {
        ^
/datasets/git/builtin/clone.c:1030:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (option_bare)
                ^
/datasets/git/builtin/clone.c:1032:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/clone.c:1036:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (option_recurse_submodules.nr > 0) {
        ^
/datasets/git/builtin/clone.c:1049:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for_each_string_list_item(item, &option_recurse_submodules) {
                ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/clone.c:1049:3: note: +1
                for_each_string_list_item(item, &option_recurse_submodules) {
                ^
/datasets/git/./string-list.h:152:12: note: expanded from macro 'for_each_string_list_item'
             item && item < (list)->items + (list)->nr; \
                  ^
/datasets/git/builtin/clone.c:1056:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!git_config_get_bool("submodule.stickyRecursiveClone", &val) &&
                ^
/datasets/git/builtin/clone.c:1056:68: note: +1
                if (!git_config_get_bool("submodule.stickyRecursiveClone", &val) &&
                                                                                 ^
/datasets/git/builtin/clone.c:1060:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (option_required_reference.nr &&
                ^
/datasets/git/builtin/clone.c:1060:36: note: +1
                if (option_required_reference.nr &&
                                                 ^
/datasets/git/builtin/clone.c:1064:8: note: +1, nesting level increased to 2
                else if (option_required_reference.nr) {
                     ^
/datasets/git/builtin/clone.c:1069:10: note: +1, nesting level increased to 2
                } else if (option_optional_reference.nr) {
                       ^
/datasets/git/builtin/clone.c:1080:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (real_git_dir) {
        ^
/datasets/git/builtin/clone.c:1101:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (config_reject_shallow != -1)
        ^
/datasets/git/builtin/clone.c:1103:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (option_reject_shallow != -1)
        ^
/datasets/git/builtin/clone.c:1110:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (config_filter_submodules != -1)
        ^
/datasets/git/builtin/clone.c:1112:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (option_filter_submodules != -1)
        ^
/datasets/git/builtin/clone.c:1120:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (option_filter_submodules > 0 && !filter_options.choice)
        ^
/datasets/git/builtin/clone.c:1120:35: note: +1
        if (option_filter_submodules > 0 && !filter_options.choice)
                                         ^
/datasets/git/builtin/clone.c:1123:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (option_filter_submodules > 0 && !option_recurse_submodules.nr)
        ^
/datasets/git/builtin/clone.c:1123:35: note: +1
        if (option_filter_submodules > 0 && !option_recurse_submodules.nr)
                                         ^
/datasets/git/builtin/clone.c:1131:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (option_origin) {
        ^
/datasets/git/builtin/clone.c:1136:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!remote_name)
        ^
/datasets/git/builtin/clone.c:1139:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!valid_remote_name(remote_name))
        ^
/datasets/git/builtin/clone.c:1142:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (option_bare) {
        ^
/datasets/git/builtin/clone.c:1143:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (option_mirror)
                ^
/datasets/git/builtin/clone.c:1148:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/clone.c:1156:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (option_no_tags) {
        ^
/datasets/git/builtin/clone.c:1162:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (option_required_reference.nr || option_optional_reference.nr)
        ^
/datasets/git/builtin/clone.c:1162:35: note: +1
        if (option_required_reference.nr || option_optional_reference.nr)
                                         ^
/datasets/git/builtin/clone.c:1165:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (option_sparse_checkout && git_sparse_checkout_init(dir))
        ^
/datasets/git/builtin/clone.c:1165:29: note: +1
        if (option_sparse_checkout && git_sparse_checkout_init(dir))
                                   ^
/datasets/git/builtin/clone.c:1178:39: note: +1
        is_local = option_local != 0 && path && !is_bundle;
                                             ^
/datasets/git/builtin/clone.c:1179:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (is_local) {
        ^
/datasets/git/builtin/clone.c:1180:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (option_depth)
                ^
/datasets/git/builtin/clone.c:1182:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (option_since)
                ^
/datasets/git/builtin/clone.c:1184:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (option_not.nr)
                ^
/datasets/git/builtin/clone.c:1186:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (filter_options.choice)
                ^
/datasets/git/builtin/clone.c:1188:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!access(mkpath("%s/shallow", path), F_OK)) {
                ^
/datasets/git/builtin/clone.c:1189:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (reject_shallow)
                        ^
/datasets/git/builtin/clone.c:1191:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (option_local > 0)
                        ^
/datasets/git/builtin/clone.c:1196:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (option_local > 0 && !is_local)
        ^
/datasets/git/builtin/clone.c:1196:23: note: +1
        if (option_local > 0 && !is_local)
                             ^
/datasets/git/builtin/clone.c:1200:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (is_bundle) {
        ^
/datasets/git/builtin/clone.c:1205:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (fd > 0)
                ^
/datasets/git/builtin/clone.c:1208:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (has_filter)
                ^
/datasets/git/builtin/clone.c:1214:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (reject_shallow)
        ^
/datasets/git/builtin/clone.c:1216:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (option_depth)
        ^
/datasets/git/builtin/clone.c:1219:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (option_since)
        ^
/datasets/git/builtin/clone.c:1222:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (option_not.nr)
        ^
/datasets/git/builtin/clone.c:1225:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (option_single_branch)
        ^
/datasets/git/builtin/clone.c:1228:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (option_upload_pack)
        ^
/datasets/git/builtin/clone.c:1232:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (server_options.nr)
        ^
/datasets/git/builtin/clone.c:1235:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (filter_options.choice) {
        ^
/datasets/git/builtin/clone.c:1243:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (transport->smart_options && !deepen && !filter_options.choice)
        ^
/datasets/git/builtin/clone.c:1243:42: note: +1
        if (transport->smart_options && !deepen && !filter_options.choice)
                                                ^
/datasets/git/builtin/clone.c:1250:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (bundle_uri) {
        ^
/datasets/git/builtin/clone.c:1252:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (repo_init(the_repository, git_dir, work_tree))
                ^
/datasets/git/builtin/clone.c:1254:8: note: +1, nesting level increased to 2
                else if (fetch_bundle_uri(the_repository, bundle_uri))
                     ^
/datasets/git/builtin/clone.c:1262:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (option_branch)
        ^
/datasets/git/builtin/clone.c:1265:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!option_no_tags)
        ^
/datasets/git/builtin/clone.c:1271:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (refs)
        ^
/datasets/git/builtin/clone.c:1274:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mapped_refs) {
        ^
/datasets/git/builtin/clone.c:1293:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (ref = refs; ref; ref = ref->next)
                ^
/datasets/git/builtin/clone.c:1294:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (is_null_oid(&ref->old_oid)) {
                        ^
/datasets/git/builtin/clone.c:1299:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!is_local && !complete_refs_before_fetch) {
                ^
/datasets/git/builtin/clone.c:1299:17: note: +1
                if (!is_local && !complete_refs_before_fetch) {
                              ^
/datasets/git/builtin/clone.c:1300:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (transport_fetch_refs(transport, mapped_refs))
                        ^
/datasets/git/builtin/clone.c:1308:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (option_branch) {
        ^
/datasets/git/builtin/clone.c:1310:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!our_head_points_at)
                ^
/datasets/git/builtin/clone.c:1313:9: note: +1, nesting level increased to 1
        } else if (remote_head_points_at) {
               ^
/datasets/git/builtin/clone.c:1315:9: note: +1, nesting level increased to 1
        } else if (remote_head) {
               ^
/datasets/git/builtin/clone.c:1317:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/clone.c:1320:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!mapped_refs) {
                ^
/datasets/git/builtin/clone.c:1325:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (transport_ls_refs_options.unborn_head_target &&
                ^
/datasets/git/builtin/clone.c:1325:52: note: +1
                if (transport_ls_refs_options.unborn_head_target &&
                                                                 ^
/datasets/git/builtin/clone.c:1329:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/clone.c:1351:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (filter_options.choice)
        ^
/datasets/git/builtin/clone.c:1354:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (is_local)
        ^
/datasets/git/builtin/clone.c:1356:7: note: +1, nesting level increased to 1
        else if (mapped_refs && complete_refs_before_fetch) {
             ^
/datasets/git/builtin/clone.c:1356:23: note: +1
        else if (mapped_refs && complete_refs_before_fetch) {
                             ^
/datasets/git/builtin/clone.c:1357:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (transport_fetch_refs(transport, mapped_refs))
                ^
/datasets/git/builtin/clone.c:1378:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (option_dissociate) {
        ^
/datasets/git/builtin/clone.c:1395:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        UNLEAK(repo);
        ^
/datasets/git/./git-compat-util.h:1544:21: note: expanded from macro 'UNLEAK'
#define UNLEAK(var) do {} while (0)
                    ^
/datasets/git/builtin/clone.c:892:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int is_bundle = 0, is_local;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/clone.c:892:21: warning: variable 'is_local' is not initialized [cppcoreguidelines-init-variables]
        int is_bundle = 0, is_local;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/clone.c:894:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *repo_name, *repo, *work_tree, *git_dir;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/clone.c:894:14: warning: variable 'repo_name' is not initialized [cppcoreguidelines-init-variables]
        const char *repo_name, *repo, *work_tree, *git_dir;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/clone.c:894:26: warning: variable 'repo' is not initialized [cppcoreguidelines-init-variables]
        const char *repo_name, *repo, *work_tree, *git_dir;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/clone.c:894:33: warning: variable 'work_tree' is not initialized [cppcoreguidelines-init-variables]
        const char *repo_name, *repo, *work_tree, *git_dir;
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/clone.c:894:45: warning: variable 'git_dir' is not initialized [cppcoreguidelines-init-variables]
        const char *repo_name, *repo, *work_tree, *git_dir;
                                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/clone.c:895:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *path = NULL, *dir, *display_repo = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/clone.c:895:22: warning: variable 'dir' is not initialized [cppcoreguidelines-init-variables]
        char *path = NULL, *dir, *display_repo = NULL;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/clone.c:896:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int dest_exists, real_dest_exists = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/clone.c:896:6: warning: variable 'dest_exists' is not initialized [cppcoreguidelines-init-variables]
        int dest_exists, real_dest_exists = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/clone.c:897:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const struct ref *refs, *remote_head;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/clone.c:897:20: warning: variable 'refs' is not initialized [cppcoreguidelines-init-variables]
        const struct ref *refs, *remote_head;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/clone.c:897:27: warning: variable 'remote_head' is not initialized [cppcoreguidelines-init-variables]
        const struct ref *refs, *remote_head;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/clone.c:899:20: warning: variable 'our_head_points_at' is not initialized [cppcoreguidelines-init-variables]
        const struct ref *our_head_points_at;
                          ^
                                             = NULL
/datasets/git/builtin/clone.c:902:20: warning: variable 'ref' is not initialized [cppcoreguidelines-init-variables]
        const struct ref *ref;
                          ^
                              = NULL
/datasets/git/builtin/clone.c:904:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct strbuf branch_top = STRBUF_INIT, reflog_msg = STRBUF_INIT;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/clone.c:907:17: warning: variable 'remote' is not initialized [cppcoreguidelines-init-variables]
        struct remote *remote;
                       ^
                              = NULL
/datasets/git/builtin/clone.c:908:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int err = 0, complete_refs_before_fetch = 1;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/clone.c:909:6: warning: variable 'submodule_progress' is not initialized [cppcoreguidelines-init-variables]
        int submodule_progress;
            ^
                               = 0
/datasets/git/builtin/clone.c:922:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc > 2)
                     ^
                      {
/datasets/git/builtin/clone.c:926:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc == 0)
                      ^
                       {
/datasets/git/builtin/clone.c:930:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (option_depth || option_since || option_not.nr)
                                                          ^
                                                           {
/datasets/git/builtin/clone.c:932:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (option_single_branch == -1)
                                       ^
                                        {
/datasets/git/builtin/clone.c:935:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (option_mirror)
                          ^
                           {
/datasets/git/builtin/clone.c:939:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (real_git_dir)
                                 ^
                                  {
/datasets/git/builtin/clone.c:944:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (bundle_uri && deepen)
                                 ^
                                  {
/datasets/git/builtin/clone.c:951:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FREE_AND_NULL(path);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/clone.c:956:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/builtin/clone.c:960:22: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c]
        if (option_depth && atoi(option_depth) < 1)
                            ^
/datasets/git/builtin/clone.c:960:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (option_depth && atoi(option_depth) < 1)
                                                   ^
                                                    {
/datasets/git/builtin/clone.c:963:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc == 2)
                      ^
                       {
/datasets/git/builtin/clone.c:965:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/clone.c:970:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (dest_exists && !is_empty_dir(dir))
                                              ^
                                               {
/datasets/git/builtin/clone.c:976:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (real_dest_exists && !is_empty_dir(real_git_dir))
                                                                    ^
                                                                     {
/datasets/git/builtin/clone.c:986:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (option_bare)
                        ^
                         {
/datasets/git/builtin/clone.c:989:15: warning: function is not thread safe [concurrency-mt-unsafe]
                work_tree = getenv("GIT_WORK_TREE");
                            ^
/datasets/git/builtin/clone.c:990:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (work_tree && path_exists(work_tree))
                                                        ^
                                                         {
/datasets/git/builtin/clone.c:994:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (option_bare || work_tree)
                                     ^
                                      {
/datasets/git/builtin/clone.c:1001:2: warning: the value returned by this function should be used [cert-err33-c]
        atexit(remove_junk);
        ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/clone.c:1001:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/clone.c:1005:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (safe_create_leading_directories_const(work_tree) < 0)
                                                                         ^
                                                                          {
/datasets/git/builtin/clone.c:1008:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (dest_exists)
                                ^
                                 {
/datasets/git/builtin/clone.c:1009:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        junk_work_tree_flags |= REMOVE_DIR_KEEP_TOPLEVEL;
                        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/clone.c:1010:12: warning: Null pointer passed to 1st parameter expecting 'nonnull' [clang-analyzer-core.NonNullParamChecker]
                else if (mkdir(work_tree, 0777))
                         ^     ~~~~~~~~~
/datasets/git/builtin/clone.c:922:6: note: Assuming 'argc' is <= 2
        if (argc > 2)
            ^~~~~~~~
/datasets/git/builtin/clone.c:922:2: note: Taking false branch
        if (argc > 2)
        ^
/datasets/git/builtin/clone.c:926:6: note: Assuming 'argc' is not equal to 0
        if (argc == 0)
            ^~~~~~~~~
/datasets/git/builtin/clone.c:926:2: note: Taking false branch
        if (argc == 0)
        ^
/datasets/git/builtin/clone.c:930:6: note: Assuming 'option_depth' is non-null
        if (option_depth || option_since || option_not.nr)
            ^~~~~~~~~~~~
/datasets/git/builtin/clone.c:930:19: note: Left side of '||' is true
        if (option_depth || option_since || option_not.nr)
                         ^
/datasets/git/builtin/clone.c:932:6: note: Assuming the condition is false
        if (option_single_branch == -1)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/clone.c:932:2: note: Taking false branch
        if (option_single_branch == -1)
        ^
/datasets/git/builtin/clone.c:935:6: note: Assuming 'option_mirror' is 0
        if (option_mirror)
            ^~~~~~~~~~~~~
/datasets/git/builtin/clone.c:935:2: note: Taking false branch
        if (option_mirror)
        ^
/datasets/git/builtin/clone.c:938:6: note: Assuming 'option_bare' is 0
        if (option_bare) {
            ^~~~~~~~~~~
/datasets/git/builtin/clone.c:938:2: note: Taking false branch
        if (option_bare) {
        ^
/datasets/git/builtin/clone.c:944:6: note: Assuming 'bundle_uri' is null
        if (bundle_uri && deepen)
            ^~~~~~~~~~
/datasets/git/builtin/clone.c:944:17: note: Left side of '&&' is false
        if (bundle_uri && deepen)
                       ^
/datasets/git/builtin/clone.c:949:9: note: Calling 'get_repo_path'
        path = get_repo_path(repo_name, &is_bundle);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/clone.c:225:10: note: 'raw' is non-null
        canon = raw ? absolute_pathdup(raw) : NULL;
                ^~~
/datasets/git/builtin/clone.c:225:10: note: '?' condition is true
/datasets/git/builtin/clone.c:227:2: note: Returning pointer (loaded from 'canon'), which participates in a condition later
        return canon;
        ^~~~~~~~~~~~
/datasets/git/builtin/clone.c:949:9: note: Returning from 'get_repo_path'
        path = get_repo_path(repo_name, &is_bundle);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/clone.c:950:6: note: Assuming 'path' is null
        if (path) {
            ^~~~
/datasets/git/builtin/clone.c:950:2: note: Taking false branch
        if (path) {
        ^
/datasets/git/builtin/clone.c:953:13: note: Assuming the condition is true
        } else if (strchr(repo_name, ':')) {
                   ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/clone.c:953:9: note: Taking true branch
        } else if (strchr(repo_name, ':')) {
               ^
/datasets/git/builtin/clone.c:960:6: note: Assuming 'option_depth' is null
        if (option_depth && atoi(option_depth) < 1)
            ^~~~~~~~~~~~
/datasets/git/builtin/clone.c:960:19: note: Left side of '&&' is false
        if (option_depth && atoi(option_depth) < 1)
                         ^
/datasets/git/builtin/clone.c:963:6: note: Assuming 'argc' is equal to 2
        if (argc == 2)
            ^~~~~~~~~
/datasets/git/builtin/clone.c:963:2: note: Taking true branch
        if (argc == 2)
        ^
/datasets/git/builtin/clone.c:969:16: note: Calling 'path_exists'
        dest_exists = path_exists(dir);
                      ^~~~~~~~~~~~~~~~
/datasets/git/builtin/clone.c:887:9: note: Assuming the condition is false
        return !stat(path, &sb);
               ^~~~~~~~~~~~~~~~
/datasets/git/builtin/clone.c:887:2: note: Returning zero, which participates in a condition later
        return !stat(path, &sb);
        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/clone.c:969:16: note: Returning from 'path_exists'
        dest_exists = path_exists(dir);
                      ^~~~~~~~~~~~~~~~
/datasets/git/builtin/clone.c:970:6: note: 'dest_exists' is 0
        if (dest_exists && !is_empty_dir(dir))
            ^~~~~~~~~~~
/datasets/git/builtin/clone.c:970:18: note: Left side of '&&' is false
        if (dest_exists && !is_empty_dir(dir))
                        ^
/datasets/git/builtin/clone.c:974:6: note: Assuming 'real_git_dir' is null
        if (real_git_dir) {
            ^~~~~~~~~~~~
/datasets/git/builtin/clone.c:974:2: note: Taking false branch
        if (real_git_dir) {
        ^
/datasets/git/builtin/clone.c:983:7: note: Assuming 'display_repo' is null
                    display_repo ? display_repo : repo);
                    ^~~~~~~~~~~~
/datasets/git/builtin/clone.c:983:7: note: '?' condition is false
/datasets/git/builtin/clone.c:986:6: note: Assuming 'option_bare' is not equal to 0
        if (option_bare)
            ^~~~~~~~~~~
/datasets/git/builtin/clone.c:986:2: note: Taking true branch
        if (option_bare)
        ^
/datasets/git/builtin/clone.c:987:3: note: Null pointer value stored to 'work_tree'
                work_tree = NULL;
                ^~~~~~~~~~~~~~~~
/datasets/git/builtin/clone.c:994:6: note: 'option_bare' is not equal to 0
        if (option_bare || work_tree)
            ^~~~~~~~~~~
/datasets/git/builtin/clone.c:994:18: note: Left side of '||' is true
        if (option_bare || work_tree)
                        ^
/datasets/git/builtin/clone.c:1004:6: note: Assuming 'option_bare' is 0
        if (!option_bare) {
            ^~~~~~~~~~~~
/datasets/git/builtin/clone.c:1004:2: note: Taking true branch
        if (!option_bare) {
        ^
/datasets/git/builtin/clone.c:1005:7: note: Assuming the condition is false
                if (safe_create_leading_directories_const(work_tree) < 0)
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/clone.c:1005:3: note: Taking false branch
                if (safe_create_leading_directories_const(work_tree) < 0)
                ^
/datasets/git/builtin/clone.c:1008:7: note: 'dest_exists' is 0
                if (dest_exists)
                    ^~~~~~~~~~~
/datasets/git/builtin/clone.c:1008:3: note: Taking false branch
                if (dest_exists)
                ^
/datasets/git/builtin/clone.c:1010:12: note: Null pointer passed to 1st parameter expecting 'nonnull'
                else if (mkdir(work_tree, 0777))
                         ^     ~~~~~~~~~
/datasets/git/builtin/clone.c:1010:29: warning: 0777 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                else if (mkdir(work_tree, 0777))
                                          ^
/datasets/git/builtin/clone.c:1010:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (mkdir(work_tree, 0777))
                                                ^
                                                 {
/datasets/git/builtin/clone.c:1018:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (real_dest_exists)
                                     ^
                                      {
/datasets/git/builtin/clone.c:1019:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        junk_git_dir_flags |= REMOVE_DIR_KEEP_TOPLEVEL;
                        ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/clone.c:1022:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (dest_exists)
                                ^
                                 {
/datasets/git/builtin/clone.c:1023:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        junk_git_dir_flags |= REMOVE_DIR_KEEP_TOPLEVEL;
                        ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/clone.c:1026:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (safe_create_leading_directories_const(git_dir) < 0)
                                                               ^
                                                                {
/datasets/git/builtin/clone.c:1030:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (option_bare)
                                ^
                                 {
/datasets/git/builtin/clone.c:1031:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, _("Cloning into bare repository '%s'...\n"), dir);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/clone.c:1031:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/clone.c:1032:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/clone.c:1033:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, _("Cloning into '%s'...\n"), dir);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/clone.c:1033:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/clone.c:1037:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                struct string_list_item *item;
                ^
/datasets/git/builtin/clone.c:1037:28: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
                struct string_list_item *item;
                                         ^
                                              = NULL
/datasets/git/builtin/clone.c:1038:17: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                struct strbuf sb = STRBUF_INIT;
                              ^
/datasets/git/builtin/clone.c:1039:7: warning: variable 'val' is not initialized [cppcoreguidelines-init-variables]
                int val;
                    ^
                        = 0
/datasets/git/builtin/clone.c:1049:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for_each_string_list_item(item, &option_recurse_submodules) {
                ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/clone.c:1049:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
                for_each_string_list_item(item, &option_recurse_submodules) {
                                          ^
/datasets/git/builtin/clone.c:1057:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    val)
                        ^
                         {
/datasets/git/builtin/clone.c:1061:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    option_optional_reference.nr)
                                                 ^
                                                  {
/datasets/git/builtin/clone.c:1101:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (config_reject_shallow != -1)
                                        ^
                                         {
/datasets/git/builtin/clone.c:1103:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (option_reject_shallow != -1)
                                        ^
                                         {
/datasets/git/builtin/clone.c:1110:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (config_filter_submodules != -1)
                                           ^
                                            {
/datasets/git/builtin/clone.c:1112:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (option_filter_submodules != -1)
                                           ^
                                            {
/datasets/git/builtin/clone.c:1120:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (option_filter_submodules > 0 && !filter_options.choice)
                                                                   ^
                                                                    {
/datasets/git/builtin/clone.c:1123:68: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (option_filter_submodules > 0 && !option_recurse_submodules.nr)
                                                                          ^
                                                                           {
/datasets/git/builtin/clone.c:1136:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!remote_name)
                         ^
                          {
/datasets/git/builtin/clone.c:1139:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!valid_remote_name(remote_name))
                                            ^
                                             {
/datasets/git/builtin/clone.c:1143:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (option_mirror)
                                  ^
                                   {
/datasets/git/builtin/clone.c:1162:67: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (option_required_reference.nr || option_optional_reference.nr)
                                                                         ^
                                                                          {
/datasets/git/builtin/clone.c:1165:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (option_sparse_checkout && git_sparse_checkout_init(dir))
                                                                    ^
                                                                     {
/datasets/git/builtin/clone.c:1180:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (option_depth)
                                 ^
                                  {
/datasets/git/builtin/clone.c:1182:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (option_since)
                                 ^
                                  {
/datasets/git/builtin/clone.c:1184:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (option_not.nr)
                                  ^
                                   {
/datasets/git/builtin/clone.c:1186:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (filter_options.choice)
                                          ^
                                           {
/datasets/git/builtin/clone.c:1189:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (reject_shallow)
                                           ^
                                            {
/datasets/git/builtin/clone.c:1191:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (option_local > 0)
                                             ^
                                              {
/datasets/git/builtin/clone.c:1196:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (option_local > 0 && !is_local)
                                          ^
                                           {
/datasets/git/builtin/clone.c:1202:7: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
                int fd = read_bundle_header(path, &header);
                    ^
/datasets/git/builtin/clone.c:1205:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fd > 0)
                           ^
                            {
/datasets/git/builtin/clone.c:1208:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (has_filter)
                               ^
                                {
/datasets/git/builtin/clone.c:1214:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (reject_shallow)
                           ^
                            {
/datasets/git/builtin/clone.c:1216:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (option_depth)
                         ^
                          {
/datasets/git/builtin/clone.c:1219:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (option_since)
                         ^
                          {
/datasets/git/builtin/clone.c:1222:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (option_not.nr)
                          ^
                           {
/datasets/git/builtin/clone.c:1225:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (option_single_branch)
                                 ^
                                  {
/datasets/git/builtin/clone.c:1228:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (option_upload_pack)
                               ^
                                {
/datasets/git/builtin/clone.c:1232:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (server_options.nr)
                              ^
                               {
/datasets/git/builtin/clone.c:1243:68: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (transport->smart_options && !deepen && !filter_options.choice)
                                                                          ^
                                                                           {
/datasets/git/builtin/clone.c:1252:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (repo_init(the_repository, git_dir, work_tree))
                                                                  ^
                                                                   {
/datasets/git/builtin/clone.c:1254:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (fetch_bundle_uri(the_repository, bundle_uri))
                                                                      ^
                                                                       {
/datasets/git/builtin/clone.c:1262:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (option_branch)
                          ^
                           {
/datasets/git/builtin/clone.c:1265:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!option_no_tags)
                            ^
                             {
/datasets/git/builtin/clone.c:1271:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (refs)
                 ^
                  {
/datasets/git/builtin/clone.c:1293:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (ref = refs; ref; ref = ref->next)
                ^
/datasets/git/builtin/clone.c:1293:20: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (ref = refs; ref; ref = ref->next)
                                 ^
/datasets/git/builtin/clone.c:1293:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (ref = refs; ref; ref = ref->next)
                                                      ^
                                                       {
/datasets/git/builtin/clone.c:1300:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (transport_fetch_refs(transport, mapped_refs))
                                                                         ^
                                                                          {
/datasets/git/builtin/clone.c:1310:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!our_head_points_at)
                                        ^
                                         {
/datasets/git/builtin/clone.c:1318:15: warning: variable 'branch' is not initialized [cppcoreguidelines-init-variables]
                const char *branch;
                            ^
                                   = NULL
/datasets/git/builtin/clone.c:1351:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (filter_options.choice)
                                  ^
                                   {
/datasets/git/builtin/clone.c:1354:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_local)
                     ^
                      {
/datasets/git/builtin/clone.c:1357:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (transport_fetch_refs(transport, mapped_refs))
                                                                 ^
                                                                  {
/datasets/git/builtin/clone.c:1395:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        UNLEAK(repo);
        ^
/datasets/git/./git-compat-util.h:1544:21: note: expanded from macro 'UNLEAK'
#define UNLEAK(var) do {} while (0)
                    ^
/datasets/git/builtin/column.c:3:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "column.h"
/datasets/git/builtin/column.c:13:21: warning: variable 'colopts' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned int colopts;
                    ^
/datasets/git/builtin/column.c:15:68: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int column_config(const char *var, const char *value, void *cb)
                                                                   ^
/datasets/git/builtin/column.c:23:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/column.c:25:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *command = NULL, *real_command = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/column.c:39:23: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                command = argv[1] + 10;
                                    ^
/datasets/git/builtin/column.c:41:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/builtin/column.c:44:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&copts, 0, sizeof(copts));
        ^~~~~~
/datasets/git/builtin/column.c:44:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&copts, 0, sizeof(copts));
        ^~~~~~
/datasets/git/builtin/column.c:47:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc)
                 ^
                  {
/datasets/git/builtin/column.c:50:36: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (!real_command || !command || strcmp(real_command, command))
                                                 ^
                                                                               != 0
/datasets/git/builtin/column.c:50:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!real_command || !command || strcmp(real_command, command))
                                                                               ^
                                                                                {
/datasets/git/builtin/column.c:54:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (!strbuf_getline(&sb, stdin))
        ^
/datasets/git/builtin/column.c:54:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'sb' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (!strbuf_getline(&sb, stdin))
               ^
/datasets/git/builtin/column.c:54:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (!strbuf_getline(&sb, stdin))
                                           ^
                                            {
/datasets/git/builtin/commit-graph.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "commit-graph.h"
/datasets/git/builtin/commit-graph.c:21:21: warning: variable 'builtin_commit_graph_verify_usage' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char * builtin_commit_graph_verify_usage[] = {
                    ^
/datasets/git/builtin/commit-graph.c:26:21: warning: variable 'builtin_commit_graph_write_usage' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char * builtin_commit_graph_write_usage[] = {
                    ^
/datasets/git/builtin/commit-graph.c:37:15: warning: accessing fields in struct 'opts_commit_graph' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
static struct opts_commit_graph {
              ^
/datasets/git/builtin/commit-graph.c:37:15: note: use "__attribute__((aligned(64)))" to align struct 'opts_commit_graph' to 64 bytes
/datasets/git/builtin/commit-graph.c:47:3: warning: variable 'opts' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} opts;
  ^
/datasets/git/builtin/commit-graph.c:49:22: warning: variable 'common_opts' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct option common_opts[] = {
                     ^
/datasets/git/builtin/commit-graph.c:56:57: warning: parameter name 'to' is too short, expected at least 3 characters [readability-identifier-length]
static struct option *add_common_options(struct option *to)
                                                        ^
/datasets/git/builtin/commit-graph.c:65:8: warning: variable 'graph_name' is not initialized [cppcoreguidelines-init-variables]
        char *graph_name;
              ^
                         = NULL
/datasets/git/builtin/commit-graph.c:66:6: warning: variable 'open_ok' is not initialized [cppcoreguidelines-init-variables]
        int open_ok;
            ^
                    = 0
/datasets/git/builtin/commit-graph.c:67:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/builtin/commit-graph.c:67:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/commit-graph.c:68:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/builtin/commit-graph.c:72:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "shallow", &opts.shallow,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/commit-graph.c:74:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "progress", &opts.progress,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/commit-graph.c:86:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc)
                 ^
                  {
/datasets/git/builtin/commit-graph.c:89:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opts.obj_dir)
                          ^
                           {
/datasets/git/builtin/commit-graph.c:91:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts.shallow)
                         ^
                          {
/datasets/git/builtin/commit-graph.c:92:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags |= COMMIT_GRAPH_VERIFY_SHALLOW;
                ^~~~~
/datasets/git/builtin/commit-graph.c:92:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags |= COMMIT_GRAPH_VERIFY_SHALLOW;
                         ^
/datasets/git/./commit-graph.h:170:38: note: expanded from macro 'COMMIT_GRAPH_VERIFY_SHALLOW'
#define COMMIT_GRAPH_VERIFY_SHALLOW     (1 << 0)
                                         ^
/datasets/git/builtin/commit-graph.c:93:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts.progress)
                          ^
                           {
/datasets/git/builtin/commit-graph.c:94:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags |= COMMIT_GRAPH_WRITE_PROGRESS;
                ^~~~~
/datasets/git/builtin/commit-graph.c:99:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!open_ok && errno != ENOENT)
                                        ^
                                         {
/datasets/git/builtin/commit-graph.c:102:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(graph_name);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/commit-graph.c:103:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(options);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/commit-graph.c:105:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (open_ok)
                    ^
                     {
/datasets/git/builtin/commit-graph.c:107:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/commit-graph.c:111:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!graph)
                   ^
                    {
/datasets/git/builtin/commit-graph.c:114:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        UNLEAK(graph);
        ^
/datasets/git/./git-compat-util.h:1544:21: note: expanded from macro 'UNLEAK'
#define UNLEAK(var) do {} while (0)
                    ^
/datasets/git/builtin/commit-graph.c:118:12: warning: variable 'read_replace_refs' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
extern int read_replace_refs;
           ^
/datasets/git/builtin/commit-graph.c:118:12: warning: redundant 'read_replace_refs' declaration [readability-redundant-declaration]
extern int read_replace_refs;
~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/datasets/git/./refs/../cache.h:994:12: note: previously declared here
extern int read_replace_refs;
           ^
/datasets/git/builtin/commit-graph.c:119:33: warning: variable 'write_opts' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct commit_graph_opts write_opts;
                                ^
/datasets/git/builtin/commit-graph.c:126:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/commit-graph.c:129:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!arg)
                 ^
                  {
/datasets/git/builtin/commit-graph.c:132:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(arg, "no-merge"))
                                     ^
                                      {
/datasets/git/builtin/commit-graph.c:134:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(arg, "replace"))
                                         ^
                                          {
/datasets/git/builtin/commit-graph.c:136:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/commit-graph.c:145:17: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        struct object *result;
                       ^
                              = NULL
/datasets/git/builtin/commit-graph.c:147:14: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
        const char *end;
                    ^
                        = NULL
/datasets/git/builtin/commit-graph.c:149:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_oid_hex(hash, &oid, &end))
                                            ^
                                             {
/datasets/git/builtin/commit-graph.c:154:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!result)
                    ^
                     {
/datasets/git/builtin/commit-graph.c:156:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (object_as_type(result, OBJ_COMMIT, 1))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/commit-graph.c:156:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (object_as_type(result, OBJ_COMMIT, 1))
                                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/commit-graph.c:168:7: warning: variable name 'to' is too short, expected at least 3 characters [readability-identifier-length]
        int *to = opt->value;
             ^
/datasets/git/builtin/commit-graph.c:169:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unset)
                  ^
                   {
/datasets/git/builtin/commit-graph.c:172:15: warning: variable 's' is not initialized [cppcoreguidelines-init-variables]
                const char *s;
                            ^
                              = NULL
/datasets/git/builtin/commit-graph.c:172:15: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/commit-graph.c:173:9: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                *to = strtol(arg, (char **)&s, 10);
                      ^
/datasets/git/builtin/commit-graph.c:173:34: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                *to = strtol(arg, (char **)&s, 10);
                                               ^
/datasets/git/builtin/commit-graph.c:174:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*s)
                       ^
                        {
/datasets/git/builtin/commit-graph.c:182:13: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
                                         void *cb UNUSED)
                                               ^
/datasets/git/builtin/commit-graph.c:184:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(var, "commitgraph.maxnewfilters"))
                                                      ^
                                                       {
/datasets/git/builtin/commit-graph.c:193:12: warning: function 'graph_write' has cognitive complexity of 28 (threshold 25) [readability-function-cognitive-complexity]
static int graph_write(int argc, const char **argv, const char *prefix)
           ^
/datasets/git/builtin/commit-graph.c:247:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (argc)
        ^
/datasets/git/builtin/commit-graph.c:250:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts.reachable + opts.stdin_packs + opts.stdin_commits > 1)
        ^
/datasets/git/builtin/commit-graph.c:252:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!opts.obj_dir)
        ^
/datasets/git/builtin/commit-graph.c:254:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts.append)
        ^
/datasets/git/builtin/commit-graph.c:256:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts.split)
        ^
/datasets/git/builtin/commit-graph.c:258:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts.progress)
        ^
/datasets/git/builtin/commit-graph.c:260:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!opts.enable_changed_paths)
        ^
/datasets/git/builtin/commit-graph.c:262:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts.enable_changed_paths == 1 ||
        ^
/datasets/git/builtin/commit-graph.c:262:37: note: +1
        if (opts.enable_changed_paths == 1 ||
                                           ^
/datasets/git/builtin/commit-graph.c:268:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts.reachable) {
        ^
/datasets/git/builtin/commit-graph.c:269:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (write_commit_graph_reachable(odb, flags, &write_opts))
                ^
/datasets/git/builtin/commit-graph.c:274:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts.stdin_packs) {
        ^
/datasets/git/builtin/commit-graph.c:275:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (strbuf_getline(&buf, stdin) != EOF)
                ^
/datasets/git/builtin/commit-graph.c:278:9: note: +1, nesting level increased to 1
        } else if (opts.stdin_commits) {
               ^
/datasets/git/builtin/commit-graph.c:280:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opts.progress)
                ^
/datasets/git/builtin/commit-graph.c:284:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (strbuf_getline(&buf, stdin) != EOF) {
                ^
/datasets/git/builtin/commit-graph.c:285:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (read_one_commit(&commits, progress, buf.buf)) {
                        ^
/datasets/git/builtin/commit-graph.c:287:5: note: +1
                                goto cleanup;
                                ^
/datasets/git/builtin/commit-graph.c:294:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (write_commit_graph(odb,
        ^
/datasets/git/builtin/commit-graph.c:295:28: note: +1, including nesting penalty of 0, nesting level increased to 1
                               opts.stdin_packs ? &pack_indexes : NULL,
                                                ^
/datasets/git/builtin/commit-graph.c:296:30: note: +1, including nesting penalty of 0, nesting level increased to 1
                               opts.stdin_commits ? &commits : NULL,
                                                  ^
/datasets/git/builtin/commit-graph.c:302:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        FREE_AND_NULL(options);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/commit-graph.c:204:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "reachable", &opts.reachable,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/commit-graph.c:206:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "stdin-packs", &opts.stdin_packs,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/commit-graph.c:208:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "stdin-commits", &opts.stdin_commits,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/commit-graph.c:210:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "append", &opts.append,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/commit-graph.c:212:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "changed-paths", &opts.enable_changed_paths,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/commit-graph.c:216:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        PARSE_OPT_OPTARG | PARSE_OPT_NONEG,
                        ^
/datasets/git/./parse-options.h:169:47: note: expanded from macro 'OPT_CALLBACK_F'
        { OPTION_CALLBACK, (s), (l), (v), (a), (h), (f), (cb) }
                                                     ^
/datasets/git/builtin/commit-graph.c:227:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "progress", &opts.progress,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/commit-graph.c:247:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc)
                 ^
                  {
/datasets/git/builtin/commit-graph.c:250:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts.reachable + opts.stdin_packs + opts.stdin_commits > 1)
                                                                       ^
                                                                        {
/datasets/git/builtin/commit-graph.c:252:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opts.obj_dir)
                          ^
                           {
/datasets/git/builtin/commit-graph.c:254:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts.append)
                        ^
                         {
/datasets/git/builtin/commit-graph.c:255:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags |= COMMIT_GRAPH_WRITE_APPEND;
                ^        ~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/commit-graph.c:256:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts.split)
                       ^
                        {
/datasets/git/builtin/commit-graph.c:257:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags |= COMMIT_GRAPH_WRITE_SPLIT;
                ^        ~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/commit-graph.c:258:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts.progress)
                          ^
                           {
/datasets/git/builtin/commit-graph.c:259:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags |= COMMIT_GRAPH_WRITE_PROGRESS;
                ^        ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/commit-graph.c:260:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opts.enable_changed_paths)
                                       ^
                                        {
/datasets/git/builtin/commit-graph.c:261:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags |= COMMIT_GRAPH_NO_WRITE_BLOOM_FILTERS;
                ^        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/commit-graph.c:263:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            git_env_bool(GIT_TEST_COMMIT_GRAPH_CHANGED_PATHS, 0))
                                                                 ^
                                                                  {
/datasets/git/builtin/commit-graph.c:264:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags |= COMMIT_GRAPH_WRITE_BLOOM_FILTERS;
                ^        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/commit-graph.c:269:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (write_commit_graph_reachable(odb, flags, &write_opts))
                                                                          ^
                                                                           {
/datasets/git/builtin/commit-graph.c:275:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (strbuf_getline(&buf, stdin) != EOF)
                ^
/datasets/git/builtin/commit-graph.c:275:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'buf' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (strbuf_getline(&buf, stdin) != EOF)
                       ^
/datasets/git/builtin/commit-graph.c:275:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (strbuf_getline(&buf, stdin) != EOF)
                                                          ^
                                                           {
/datasets/git/builtin/commit-graph.c:280:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opts.progress)
                                  ^
                                   {
/datasets/git/builtin/commit-graph.c:284:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (strbuf_getline(&buf, stdin) != EOF) {
                ^
/datasets/git/builtin/commit-graph.c:284:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'buf' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (strbuf_getline(&buf, stdin) != EOF) {
                       ^
/datasets/git/builtin/commit-graph.c:298:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                               &write_opts))
                                            ^
                                             {
/datasets/git/builtin/commit-graph.c:302:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(options);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/commit-graph.c:310:27: warning: variable name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
        parse_opt_subcommand_fn *fn = NULL;
                                 ^
/datasets/git/builtin/commit-graph.c:325:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(options);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/commit-tree.c:7:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "builtin.h"
/datasets/git/builtin/commit-tree.c:24:20: warning: variable 'sign_commit' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *sign_commit;
                   ^
/datasets/git/builtin/commit-tree.c:29:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct commit_list *parents;
        ^
/datasets/git/builtin/commit-tree.c:29:22: warning: variable 'parents' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *parents;
                            ^
                                    = NULL
/datasets/git/builtin/commit-tree.c:30:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (parents = *parents_p; parents; parents = parents->next) {
        ^
/datasets/git/builtin/commit-tree.c:30:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'parents' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (parents = *parents_p; parents; parents = parents->next) {
                                   ^
/datasets/git/builtin/commit-tree.c:40:73: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int commit_tree_config(const char *var, const char *value, void *cb)
                                                                        ^
/datasets/git/builtin/commit-tree.c:43:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (status)
                   ^
                    {
/datasets/git/builtin/commit-tree.c:54:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG_NOARG(unset, arg);
        ^
/datasets/git/./parse-options.h:299:2: note: expanded from macro 'BUG_ON_OPT_NEG_NOARG'
        BUG_ON_OPT_NEG(unset); \
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/commit-tree.c:56:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid_commit(arg, &oid))
                                      ^
                                       {
/datasets/git/builtin/commit-tree.c:69:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG_NOARG(unset, arg);
        ^
/datasets/git/./parse-options.h:299:2: note: expanded from macro 'BUG_ON_OPT_NEG_NOARG'
        BUG_ON_OPT_NEG(unset); \
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/commit-tree.c:71:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (buf->len)
                     ^
                      {
/datasets/git/builtin/commit-tree.c:82:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/builtin/commit-tree.c:82:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/commit-tree.c:85:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG_NOARG(unset, arg);
        ^
/datasets/git/./parse-options.h:299:2: note: expanded from macro 'BUG_ON_OPT_NEG_NOARG'
        BUG_ON_OPT_NEG(unset); \
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/commit-tree.c:87:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (buf->len)
                     ^
                      {
/datasets/git/builtin/commit-tree.c:89:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(arg, "-"))
                              ^
                               {
/datasets/git/builtin/commit-tree.c:94:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strbuf_read(buf, fd, 0) < 0)
                                        ^
                                         {
/datasets/git/builtin/commit-tree.c:96:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fd && close(fd))
                            ^
                             {
/datasets/git/builtin/commit-tree.c:126:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc < 2 || !strcmp(argv[1], "-h"))
                                               ^
                                                {
/datasets/git/builtin/commit-tree.c:131:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc != 1)
                      ^
                       {
/datasets/git/builtin/commit-tree.c:134:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid_tree(argv[0], &tree_oid))
                                             ^
                                              {
/datasets/git/builtin/commit-tree.c:138:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strbuf_read(&buffer, 0, 0) < 0)
                                                   ^
                                                    {
/datasets/git/builtin/commit.c:10:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "builtin.h"
/datasets/git/builtin/commit.c:88:20: warning: variable 'color_status_slots' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *color_status_slots[] = {
                   ^
/datasets/git/builtin/commit.c:100:20: warning: variable 'use_message_buffer' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *use_message_buffer;
                   ^
/datasets/git/builtin/commit.c:101:25: warning: variable 'index_lock' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct lock_file index_lock; /* real index */
                        ^
/datasets/git/builtin/commit.c:102:25: warning: variable 'false_lock' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct lock_file false_lock; /* used only for partial commits */
                        ^
/datasets/git/builtin/commit.c:107:3: warning: variable 'commit_style' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} commit_style;
  ^
/datasets/git/builtin/commit.c:109:20: warning: variable 'logfile' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *logfile, *force_author;
                   ^
/datasets/git/builtin/commit.c:109:30: warning: variable 'force_author' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *logfile, *force_author;
                             ^
/datasets/git/builtin/commit.c:110:20: warning: variable 'template_file' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *template_file;
                   ^
/datasets/git/builtin/commit.c:115:20: warning: variable 'author_message' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *author_message, *author_message_buffer;
                   ^
/datasets/git/builtin/commit.c:115:37: warning: variable 'author_message_buffer' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *author_message, *author_message_buffer;
                                    ^
/datasets/git/builtin/commit.c:116:14: warning: variable 'edit_message' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *edit_message, *use_message;
             ^
/datasets/git/builtin/commit.c:116:14: warning: variable 'edit_message' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/commit.c:116:29: warning: variable 'use_message' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *edit_message, *use_message;
                            ^
/datasets/git/builtin/commit.c:116:29: warning: variable 'use_message' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/commit.c:117:14: warning: variable 'fixup_message' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *fixup_message, *fixup_commit, *squash_message;
             ^
/datasets/git/builtin/commit.c:117:14: warning: variable 'fixup_message' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/commit.c:117:30: warning: variable 'fixup_commit' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *fixup_message, *fixup_commit, *squash_message;
                             ^
/datasets/git/builtin/commit.c:117:30: warning: variable 'fixup_commit' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/commit.c:117:45: warning: variable 'squash_message' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *fixup_message, *fixup_commit, *squash_message;
                                            ^
/datasets/git/builtin/commit.c:117:45: warning: variable 'squash_message' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/commit.c:118:20: warning: variable 'fixup_prefix' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *fixup_prefix;
                   ^
/datasets/git/builtin/commit.c:119:12: warning: variable 'all' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int all, also, interactive, patch_interactive, only, amend, signoff;
           ^
/datasets/git/builtin/commit.c:119:17: warning: variable 'also' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int all, also, interactive, patch_interactive, only, amend, signoff;
                ^
/datasets/git/builtin/commit.c:119:23: warning: variable 'interactive' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int all, also, interactive, patch_interactive, only, amend, signoff;
                      ^
/datasets/git/builtin/commit.c:119:36: warning: variable 'patch_interactive' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int all, also, interactive, patch_interactive, only, amend, signoff;
                                   ^
/datasets/git/builtin/commit.c:119:55: warning: variable 'only' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int all, also, interactive, patch_interactive, only, amend, signoff;
                                                      ^
/datasets/git/builtin/commit.c:119:61: warning: variable 'amend' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int all, also, interactive, patch_interactive, only, amend, signoff;
                                                            ^
/datasets/git/builtin/commit.c:119:68: warning: variable 'signoff' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int all, also, interactive, patch_interactive, only, amend, signoff;
                                                                   ^
/datasets/git/builtin/commit.c:120:12: warning: variable 'edit_flag' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int edit_flag = -1; /* unspecified */
           ^
/datasets/git/builtin/commit.c:121:12: warning: variable 'quiet' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int quiet, verbose, no_verify, allow_empty, dry_run, renew_authorship;
           ^
/datasets/git/builtin/commit.c:121:19: warning: variable 'verbose' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int quiet, verbose, no_verify, allow_empty, dry_run, renew_authorship;
                  ^
/datasets/git/builtin/commit.c:121:28: warning: variable 'no_verify' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int quiet, verbose, no_verify, allow_empty, dry_run, renew_authorship;
                           ^
/datasets/git/builtin/commit.c:121:39: warning: variable 'allow_empty' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int quiet, verbose, no_verify, allow_empty, dry_run, renew_authorship;
                                      ^
/datasets/git/builtin/commit.c:121:52: warning: variable 'dry_run' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int quiet, verbose, no_verify, allow_empty, dry_run, renew_authorship;
                                                   ^
/datasets/git/builtin/commit.c:121:61: warning: variable 'renew_authorship' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int quiet, verbose, no_verify, allow_empty, dry_run, renew_authorship;
                                                            ^
/datasets/git/builtin/commit.c:122:12: warning: variable 'config_commit_verbose' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int config_commit_verbose = -1; /* unspecified */
           ^
/datasets/git/builtin/commit.c:123:12: warning: variable 'no_post_rewrite' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int no_post_rewrite, allow_empty_message, pathspec_file_nul;
           ^
/datasets/git/builtin/commit.c:123:29: warning: variable 'allow_empty_message' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int no_post_rewrite, allow_empty_message, pathspec_file_nul;
                            ^
/datasets/git/builtin/commit.c:123:50: warning: variable 'pathspec_file_nul' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int no_post_rewrite, allow_empty_message, pathspec_file_nul;
                                                 ^
/datasets/git/builtin/commit.c:124:14: warning: variable 'untracked_files_arg' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *untracked_files_arg, *force_date, *ignore_submodule_arg, *ignored_arg;
             ^
/datasets/git/builtin/commit.c:124:14: warning: variable 'untracked_files_arg' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/commit.c:124:36: warning: variable 'force_date' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *untracked_files_arg, *force_date, *ignore_submodule_arg, *ignored_arg;
                                   ^
/datasets/git/builtin/commit.c:124:36: warning: variable 'force_date' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/commit.c:124:49: warning: variable 'ignore_submodule_arg' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *untracked_files_arg, *force_date, *ignore_submodule_arg, *ignored_arg;
                                                ^
/datasets/git/builtin/commit.c:124:49: warning: variable 'ignore_submodule_arg' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/commit.c:124:72: warning: variable 'ignored_arg' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *untracked_files_arg, *force_date, *ignore_submodule_arg, *ignored_arg;
                                                                       ^
/datasets/git/builtin/commit.c:124:72: warning: variable 'ignored_arg' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/commit.c:125:14: warning: variable 'sign_commit' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *sign_commit, *pathspec_from_file;
             ^
/datasets/git/builtin/commit.c:125:14: warning: variable 'sign_commit' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/commit.c:125:28: warning: variable 'pathspec_from_file' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *sign_commit, *pathspec_from_file;
                           ^
/datasets/git/builtin/commit.c:125:28: warning: variable 'pathspec_from_file' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/commit.c:126:22: warning: variable 'trailer_args' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct strvec trailer_args = STRVEC_INIT;
                     ^
/datasets/git/builtin/commit.c:126:22: warning: initializing non-local variable with non-const expression depending on uninitialized non-local variable 'empty_strvec' [cppcoreguidelines-interfaces-global-init]
/datasets/git/builtin/commit.c:135:37: warning: variable 'cleanup_mode' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static enum commit_msg_cleanup_mode cleanup_mode;
                                    ^
/datasets/git/builtin/commit.c:136:20: warning: variable 'cleanup_arg' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *cleanup_arg;
                   ^
/datasets/git/builtin/commit.c:138:27: warning: variable 'whence' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static enum commit_whence whence;
                          ^
/datasets/git/builtin/commit.c:139:12: warning: variable 'use_editor' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int use_editor = 1, include_status = 1;
           ^
/datasets/git/builtin/commit.c:139:28: warning: variable 'include_status' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int use_editor = 1, include_status = 1;
                           ^
/datasets/git/builtin/commit.c:140:12: warning: variable 'have_option_m' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int have_option_m;
           ^
/datasets/git/builtin/commit.c:141:22: warning: variable 'message' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct strbuf message = STRBUF_INIT;
                     ^
/datasets/git/builtin/commit.c:141:22: warning: initializing non-local variable with non-const expression depending on uninitialized non-local variable 'strbuf_slopbuf' [cppcoreguidelines-interfaces-global-init]
/datasets/git/builtin/commit.c:143:30: warning: variable 'status_format' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static enum wt_status_format status_format = STATUS_FORMAT_UNSPECIFIED;
                             ^
/datasets/git/builtin/commit.c:147:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/commit.c:156:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unset)
                  ^
                   {
/datasets/git/builtin/commit.c:158:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!arg)
                      ^
                       {
/datasets/git/builtin/commit.c:159:3: warning: repeated branch in conditional chain [bugprone-branch-clone]
                *value = STATUS_FORMAT_PORCELAIN;
                ^
/datasets/git/builtin/commit.c:159:35: note: end of the original
                *value = STATUS_FORMAT_PORCELAIN;
                                                ^
/datasets/git/builtin/commit.c:161:3: note: clone 1 starts here
                *value = STATUS_FORMAT_PORCELAIN;
                ^
/datasets/git/builtin/commit.c:160:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(arg, "v1") || !strcmp(arg, "1"))
                                                         ^
                                                          {
/datasets/git/builtin/commit.c:162:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(arg, "v2") || !strcmp(arg, "2"))
                                                         ^
                                                          {
/datasets/git/builtin/commit.c:164:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/commit.c:178:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (buf->len)
                             ^
                              {
/datasets/git/builtin/commit.c:190:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/commit.c:192:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (arg != NULL && *arg == '=')
                                       ^
                                        {
/datasets/git/builtin/commit.c:199:48: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void determine_whence(struct wt_status *s)
                                               ^
/datasets/git/builtin/commit.c:201:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (file_exists(git_path_merge_head(the_repository)))
                                                             ^
                                                              {
/datasets/git/builtin/commit.c:203:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!sequencer_determine_whence(the_repository, &whence))
                                                                      ^
                                                                       {
/datasets/git/builtin/commit.c:205:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (s)
              ^
               {
/datasets/git/builtin/commit.c:209:50: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void status_init_config(struct wt_status *s, config_fn_t fn)
                                                 ^
/datasets/git/builtin/commit.c:209:65: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
static void status_init_config(struct wt_status *s, config_fn_t fn)
                                                                ^
/datasets/git/builtin/commit.c:220:2: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
        switch (commit_style) {
        ^
/datasets/git/builtin/commit.c:237:2: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
        switch (commit_style) {
        ^
/datasets/git/builtin/commit.c:259:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, ret;
        ^~~~~~~~~~~
/datasets/git/builtin/commit.c:259:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, ret;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/commit.c:259:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/commit.c:259:9: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int i, ret;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/commit.c:260:8: warning: variable 'm' is not initialized [cppcoreguidelines-init-variables]
        char *m;
              ^
                = NULL
/datasets/git/builtin/commit.c:260:8: warning: variable name 'm' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/commit.c:262:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!pattern->nr)
                         ^
                          {
/datasets/git/builtin/commit.c:275:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < the_index.cache_nr; i++) {
        ^
/datasets/git/builtin/commit.c:276:29: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                const struct cache_entry *ce = the_index.cache[i];
                                          ^
/datasets/git/builtin/commit.c:277:28: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
                struct string_list_item *item;
                                         ^
                                              = NULL
/datasets/git/builtin/commit.c:279:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce->ce_flags & CE_UPDATE)
                    ^
/datasets/git/builtin/commit.c:279:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce->ce_flags & CE_UPDATE)
                                   ^
/datasets/git/./refs/../cache.h:167:31: note: expanded from macro 'CE_UPDATE'
#define CE_UPDATE            (1 << 16)
                              ^
/datasets/git/builtin/commit.c:279:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ce->ce_flags & CE_UPDATE)
                                             ^
                                              {
/datasets/git/builtin/commit.c:281:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ce_path_match(&the_index, ce, pattern, m))
                                                               ^
                                                                {
/datasets/git/builtin/commit.c:284:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce_skip_worktree(ce))
                    ^
/datasets/git/./refs/../cache.h:244:31: note: expanded from macro 'ce_skip_worktree'
#define ce_skip_worktree(ce) ((ce)->ce_flags & CE_SKIP_WORKTREE)
                              ^                ~~~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:284:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ce_skip_worktree(ce))
                                         ^
                                          {
/datasets/git/builtin/commit.c:295:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/commit.c:295:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/commit.c:296:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < list->nr; i++) {
        ^
/datasets/git/builtin/commit.c:297:15: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                struct stat st;
                            ^
/datasets/git/builtin/commit.c:298:28: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct string_list_item *p = &(list->items[i]);
                                         ^
/datasets/git/builtin/commit.c:301:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (p->util)
                            ^
                             {
/datasets/git/builtin/commit.c:305:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (add_to_index(&the_index, p->string, &st, 0))
                                                                        ^
                                                                         {
/datasets/git/builtin/commit.c:307:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/builtin/commit.c:314:15: warning: variable 'tree' is not initialized [cppcoreguidelines-init-variables]
        struct tree *tree;
                     ^
                          = NULL
/datasets/git/builtin/commit.c:316:19: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
        struct tree_desc t;
                         ^
/datasets/git/builtin/commit.c:323:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&opts, 0, sizeof(opts));
        ^~~~~~
/datasets/git/builtin/commit.c:323:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&opts, 0, sizeof(opts));
        ^~~~~~
/datasets/git/builtin/commit.c:332:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!tree)
                  ^
                   {
/datasets/git/builtin/commit.c:336:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unpack_trees(1, &t, &opts))
                                       ^
                                        {
/datasets/git/builtin/commit.c:337:3: warning: function is not thread safe [concurrency-mt-unsafe]
                exit(128); /* We've already reported the error, finish dying */
                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/commit.c:346:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (refresh_index(&the_index, refresh_flags | REFRESH_IN_PORCELAIN, NULL, NULL, NULL))
                                      ^~~~~~~~~~~~~
/datasets/git/builtin/commit.c:346:48: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (refresh_index(&the_index, refresh_flags | REFRESH_IN_PORCELAIN, NULL, NULL, NULL))
                                                      ^
/datasets/git/./refs/../cache.h:926:43: note: expanded from macro 'REFRESH_IN_PORCELAIN'
#define REFRESH_IN_PORCELAIN             (1 << 5) /* user friendly output, not "needs update" */
                                          ^
/datasets/git/builtin/commit.c:346:88: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (refresh_index(&the_index, refresh_flags | REFRESH_IN_PORCELAIN, NULL, NULL, NULL))
                                                                                              ^
                                                                                               {
/datasets/git/builtin/commit.c:350:20: warning: function 'prepare_index' has cognitive complexity of 63 (threshold 25) [readability-function-cognitive-complexity]
static const char *prepare_index(const char **argv, const char *prefix,
                   ^
/datasets/git/builtin/commit.c:358:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (is_status)
        ^
/datasets/git/builtin/commit.c:364:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (pathspec_from_file) {
        ^
/datasets/git/builtin/commit.c:365:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (interactive)
                ^
/datasets/git/builtin/commit.c:368:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (all)
                ^
/datasets/git/builtin/commit.c:371:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (pathspec.nr)
                ^
/datasets/git/builtin/commit.c:377:9: note: +1, nesting level increased to 1
        } else if (pathspec_file_nul) {
               ^
/datasets/git/builtin/commit.c:381:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!pathspec.nr && (also || (only && !allow_empty &&
        ^
/datasets/git/builtin/commit.c:381:19: note: +1
        if (!pathspec.nr && (also || (only && !allow_empty &&
                         ^
/datasets/git/builtin/commit.c:381:28: note: +1
        if (!pathspec.nr && (also || (only && !allow_empty &&
                                  ^
/datasets/git/builtin/commit.c:381:53: note: +1
        if (!pathspec.nr && (also || (only && !allow_empty &&
                                                           ^
/datasets/git/builtin/commit.c:382:14: note: +1
            (!amend || (fixup_message && strcmp(fixup_prefix, "amend"))))))
                    ^
/datasets/git/builtin/commit.c:382:32: note: +1
            (!amend || (fixup_message && strcmp(fixup_prefix, "amend"))))))
                                      ^
/datasets/git/builtin/commit.c:385:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (repo_read_index_preload(the_repository, &pathspec, 0) < 0)
        ^
/datasets/git/builtin/commit.c:388:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (interactive) {
        ^
/datasets/git/builtin/commit.c:395:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (write_locked_index(&the_index, &index_lock, 0))
                ^
/datasets/git/builtin/commit.c:404:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (interactive_add(argv, prefix, patch_interactive) != 0)
                ^
/datasets/git/builtin/commit.c:408:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (old_index_env && *old_index_env)
                ^
/datasets/git/builtin/commit.c:408:21: note: +1
                if (old_index_env && *old_index_env)
                                  ^
/datasets/git/builtin/commit.c:410:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/commit.c:412:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                FREE_AND_NULL(old_index_env);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/commit.c:417:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (update_main_cache_tree(WRITE_TREE_SILENT) == 0) {
                ^
/datasets/git/builtin/commit.c:418:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (reopen_lock_file(&index_lock) < 0)
                        ^
/datasets/git/builtin/commit.c:420:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (write_locked_index(&the_index, &index_lock, 0))
                        ^
/datasets/git/builtin/commit.c:422:5: note: +1, nesting level increased to 2
                } else
                  ^
/datasets/git/builtin/commit.c:427:3: note: +1
                goto out;
                ^
/datasets/git/builtin/commit.c:442:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (all || (also && pathspec.nr)) {
        ^
/datasets/git/builtin/commit.c:442:10: note: +1
        if (all || (also && pathspec.nr)) {
                ^
/datasets/git/builtin/commit.c:442:19: note: +1
        if (all || (also && pathspec.nr)) {
                         ^
/datasets/git/builtin/commit.c:445:27: note: +2, including nesting penalty of 1, nesting level increased to 2
                add_files_to_cache(also ? prefix : NULL, &pathspec, 0);
                                        ^
/datasets/git/builtin/commit.c:448:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (write_locked_index(&the_index, &index_lock, 0))
                ^
/datasets/git/builtin/commit.c:452:3: note: +1
                goto out;
                ^
/datasets/git/builtin/commit.c:464:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!only && !pathspec.nr) {
        ^
/datasets/git/builtin/commit.c:464:12: note: +1
        if (!only && !pathspec.nr) {
                  ^
/datasets/git/builtin/commit.c:468:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (the_index.cache_changed
                ^
/datasets/git/builtin/commit.c:469:7: note: +1
                    || !cache_tree_fully_valid(the_index.cache_tree))
                    ^
/datasets/git/builtin/commit.c:471:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (write_locked_index(&the_index, &index_lock,
                ^
/datasets/git/builtin/commit.c:476:3: note: +1
                goto out;
                ^
/datasets/git/builtin/commit.c:500:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (whence != FROM_COMMIT) {
        ^
/datasets/git/builtin/commit.c:501:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (whence == FROM_MERGE)
                ^
/datasets/git/builtin/commit.c:503:8: note: +1, nesting level increased to 2
                else if (is_from_cherry_pick(whence))
                     ^
/datasets/git/builtin/commit.c:505:8: note: +1, nesting level increased to 2
                else if (is_from_rebase(whence))
                     ^
/datasets/git/builtin/commit.c:509:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (list_paths(&partial, !current_head ? NULL : "HEAD", &pathspec))
        ^
/datasets/git/builtin/commit.c:509:41: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (list_paths(&partial, !current_head ? NULL : "HEAD", &pathspec))
                                               ^
/datasets/git/builtin/commit.c:513:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (repo_read_index(the_repository) < 0)
        ^
/datasets/git/builtin/commit.c:520:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (write_locked_index(&the_index, &index_lock, 0))
        ^
/datasets/git/builtin/commit.c:532:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (write_locked_index(&the_index, &false_lock, 0))
        ^
/datasets/git/builtin/commit.c:355:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int refresh_flags = REFRESH_QUIET;
                            ^
/datasets/git/./refs/../cache.h:923:43: note: expanded from macro 'REFRESH_QUIET'
#define REFRESH_QUIET                    (1 << 2) /* be quiet about it */
                                          ^
/datasets/git/builtin/commit.c:356:14: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        const char *ret;
                    ^
                        = NULL
/datasets/git/builtin/commit.c:358:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_status)
                      ^
                       {
/datasets/git/builtin/commit.c:359:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                refresh_flags |= REFRESH_UNMERGED;
                ^~~~~~~~~~~~~
/datasets/git/builtin/commit.c:359:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                refresh_flags |= REFRESH_UNMERGED;
                                 ^
/datasets/git/./refs/../cache.h:922:43: note: expanded from macro 'REFRESH_UNMERGED'
#define REFRESH_UNMERGED                 (1 << 1) /* allow unmerged */
                                          ^
/datasets/git/builtin/commit.c:361:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_PREFER_FULL,
                       ^
/datasets/git/./pathspec.h:66:31: note: expanded from macro 'PATHSPEC_PREFER_FULL'
#define PATHSPEC_PREFER_FULL (1<<1) /* No args means match everything */
                              ^
/datasets/git/builtin/commit.c:365:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (interactive)
                                ^
                                 {
/datasets/git/builtin/commit.c:368:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (all)
                        ^
                         {
/datasets/git/builtin/commit.c:371:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pathspec.nr)
                                ^
                                 {
/datasets/git/builtin/commit.c:375:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                    PATHSPEC_PREFER_FULL,
                                    ^
/datasets/git/./pathspec.h:66:31: note: expanded from macro 'PATHSPEC_PREFER_FULL'
#define PATHSPEC_PREFER_FULL (1<<1) /* No args means match everything */
                              ^
/datasets/git/builtin/commit.c:382:35: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
            (!amend || (fixup_message && strcmp(fixup_prefix, "amend"))))))
                                         ^
                                                                       != 0
/datasets/git/builtin/commit.c:382:69: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            (!amend || (fixup_message && strcmp(fixup_prefix, "amend"))))))
                                                                           ^
                                                                            {
/datasets/git/builtin/commit.c:385:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_read_index_preload(the_repository, &pathspec, 0) < 0)
                                                                      ^
                                                                       {
/datasets/git/builtin/commit.c:389:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                char *old_index_env = NULL, *old_repo_index_file;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:389:32: warning: variable 'old_repo_index_file' is not initialized [cppcoreguidelines-init-variables]
                char *old_index_env = NULL, *old_repo_index_file;
                                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/commit.c:395:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (write_locked_index(&the_index, &index_lock, 0))
                                                                   ^
                                                                    {
/datasets/git/builtin/commit.c:401:35: warning: function is not thread safe [concurrency-mt-unsafe]
                old_index_env = xstrdup_or_null(getenv(INDEX_ENVIRONMENT));
                                                ^
/datasets/git/builtin/commit.c:402:3: warning: function is not thread safe [concurrency-mt-unsafe]
                setenv(INDEX_ENVIRONMENT, the_repository->index_file, 1);
                ^
/datasets/git/builtin/commit.c:404:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (interactive_add(argv, prefix, patch_interactive) != 0)
                                                                          ^
                                                                           {
/datasets/git/builtin/commit.c:408:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (old_index_env && *old_index_env)
                                                    ^
                                                     {
/datasets/git/builtin/commit.c:409:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        setenv(INDEX_ENVIRONMENT, old_index_env, 1);
                        ^
/datasets/git/builtin/commit.c:410:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/commit.c:411:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        unsetenv(INDEX_ENVIRONMENT);
                        ^
/datasets/git/builtin/commit.c:412:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FREE_AND_NULL(old_index_env);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/commit.c:418:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (reopen_lock_file(&index_lock) < 0)
                                                              ^
                                                               {
/datasets/git/builtin/commit.c:420:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (write_locked_index(&the_index, &index_lock, 0))
                                                                           ^
                                                                            {
/datasets/git/builtin/commit.c:422:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/builtin/commit.c:448:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (write_locked_index(&the_index, &index_lock, 0))
                                                                   ^
                                                                    {
/datasets/git/builtin/commit.c:469:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    || !cache_tree_fully_valid(the_index.cache_tree))
                                                                     ^
                                                                      {
/datasets/git/builtin/commit.c:472:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                       COMMIT_LOCK | SKIP_IF_UNCHANGED))
                                       ^
/datasets/git/./refs/../cache.h:744:22: note: expanded from macro 'COMMIT_LOCK'
#define COMMIT_LOCK             (1 << 0)
                                ^~~~~~~~
/datasets/git/builtin/commit.c:472:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                       COMMIT_LOCK | SKIP_IF_UNCHANGED))
                                                     ^
/datasets/git/./refs/../cache.h:745:28: note: expanded from macro 'SKIP_IF_UNCHANGED'
#define SKIP_IF_UNCHANGED       (1 << 1)
                                 ^
/datasets/git/builtin/commit.c:472:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                       COMMIT_LOCK | SKIP_IF_UNCHANGED))
                                                                        ^
                                                                         {
/datasets/git/builtin/commit.c:501:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (whence == FROM_MERGE)
                                         ^
                                          {
/datasets/git/builtin/commit.c:503:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (is_from_cherry_pick(whence))
                                                     ^
                                                      {
/datasets/git/builtin/commit.c:505:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (is_from_rebase(whence))
                                                ^
                                                 {
/datasets/git/builtin/commit.c:509:69: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (list_paths(&partial, !current_head ? NULL : "HEAD", &pathspec))
                                                                           ^
                                                                            {
/datasets/git/builtin/commit.c:510:3: warning: function is not thread safe [concurrency-mt-unsafe]
                exit(1);
                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/commit.c:513:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_read_index(the_repository) < 0)
                                                ^
                                                 {
/datasets/git/builtin/commit.c:518:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        refresh_index(&the_index, REFRESH_QUIET, NULL, NULL, NULL);
                                  ^
/datasets/git/./refs/../cache.h:923:43: note: expanded from macro 'REFRESH_QUIET'
#define REFRESH_QUIET                    (1 << 2) /* be quiet about it */
                                          ^
/datasets/git/builtin/commit.c:520:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_locked_index(&the_index, &index_lock, 0))
                                                           ^
                                                            {
/datasets/git/builtin/commit.c:530:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        refresh_index(&the_index, REFRESH_QUIET, NULL, NULL, NULL);
                                  ^
/datasets/git/./refs/../cache.h:923:43: note: expanded from macro 'REFRESH_QUIET'
#define REFRESH_QUIET                    (1 << 2) /* be quiet about it */
                                          ^
/datasets/git/builtin/commit.c:532:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_locked_index(&the_index, &false_lock, 0))
                                                           ^
                                                            {
/datasets/git/builtin/commit.c:544:29: warning: parameter name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
static int run_status(FILE *fp, const char *index_file, const char *prefix, int nowarn,
                            ^
/datasets/git/builtin/commit.c:544:33: warning: 2 adjacent parameters of 'run_status' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int run_status(FILE *fp, const char *index_file, const char *prefix, int nowarn,
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:544:45: note: the first parameter in the range is 'index_file'
static int run_status(FILE *fp, const char *index_file, const char *prefix, int nowarn,
                                            ^~~~~~~~~~
/datasets/git/builtin/commit.c:544:69: note: the last parameter in the range is 'prefix'
static int run_status(FILE *fp, const char *index_file, const char *prefix, int nowarn,
                                                                    ^~~~~~
/datasets/git/builtin/commit.c:545:27: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
                      struct wt_status *s)
                                        ^
/datasets/git/builtin/commit.c:549:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (s->relative_paths)
                              ^
                               {
/datasets/git/builtin/commit.c:561:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!s->is_initial)
                           ^
                            {
/datasets/git/builtin/commit.c:578:52: warning: parameter name 'id' is too short, expected at least 3 characters [readability-identifier-length]
static void assert_split_ident(struct ident_split *id, const struct strbuf *buf)
                                                   ^
/datasets/git/builtin/commit.c:580:37: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        if (split_ident_line(id, buf->buf, buf->len) || !id->date_begin)
                                           ^
/datasets/git/builtin/commit.c:580:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (split_ident_line(id, buf->buf, buf->len) || !id->date_begin)
                                                                        ^
                                                                         {
/datasets/git/builtin/commit.c:584:24: warning: 2 adjacent parameters of 'export_one' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void export_one(const char *var, const char *s, const char *e, int hack)
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:584:36: note: the first parameter in the range is 'var'
static void export_one(const char *var, const char *s, const char *e, int hack)
                                   ^~~
/datasets/git/builtin/commit.c:584:53: note: the last parameter in the range is 's'
static void export_one(const char *var, const char *s, const char *e, int hack)
                                                    ^
/datasets/git/builtin/commit.c:584:53: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void export_one(const char *var, const char *s, const char *e, int hack)
                                                    ^
/datasets/git/builtin/commit.c:584:68: warning: parameter name 'e' is too short, expected at least 3 characters [readability-identifier-length]
static void export_one(const char *var, const char *s, const char *e, int hack)
                                                                   ^
/datasets/git/builtin/commit.c:587:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (hack)
                 ^
                  {
/datasets/git/builtin/commit.c:590:2: warning: function is not thread safe [concurrency-mt-unsafe]
        setenv(var, buf.buf, 1);
        ^
/datasets/git/builtin/commit.c:594:41: warning: parameter name 'in' is too short, expected at least 3 characters [readability-identifier-length]
static int parse_force_date(const char *in, struct strbuf *out)
                                        ^
/datasets/git/builtin/commit.c:600:17: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
                unsigned long t = approxidate_careful(in, &errors);
                              ^
/datasets/git/builtin/commit.c:601:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (errors)
                           ^
                            {
/datasets/git/builtin/commit.c:617:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *name, *email, *date;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:617:8: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
        char *name, *email, *date;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/commit.c:617:15: warning: variable 'email' is not initialized [cppcoreguidelines-init-variables]
        char *name, *email, *date;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/commit.c:617:23: warning: variable 'date' is not initialized [cppcoreguidelines-init-variables]
        char *name, *email, *date;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/commit.c:620:25: warning: function is not thread safe [concurrency-mt-unsafe]
        name = xstrdup_or_null(getenv("GIT_AUTHOR_NAME"));
                               ^
/datasets/git/builtin/commit.c:621:26: warning: function is not thread safe [concurrency-mt-unsafe]
        email = xstrdup_or_null(getenv("GIT_AUTHOR_EMAIL"));
                                ^
/datasets/git/builtin/commit.c:622:25: warning: function is not thread safe [concurrency-mt-unsafe]
        date = xstrdup_or_null(getenv("GIT_AUTHOR_DATE"));
                               ^
/datasets/git/builtin/commit.c:626:10: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
                size_t len;
                       ^
                           = 0
/datasets/git/builtin/commit.c:627:15: warning: variable 'a' is not initialized [cppcoreguidelines-init-variables]
                const char *a;
                            ^
                              = NULL
/datasets/git/builtin/commit.c:627:15: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/commit.c:630:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!a)
                       ^
                        {
/datasets/git/builtin/commit.c:632:35: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                if (split_ident_line(&ident, a, len) < 0)
                                                ^
/datasets/git/builtin/commit.c:632:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (split_ident_line(&ident, a, len) < 0)
                                                         ^
                                                          {
/datasets/git/builtin/commit.c:651:46: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                if (split_ident_line(&ident, force_author, strlen(force_author)) < 0)
                                                           ^
/datasets/git/builtin/commit.c:651:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (split_ident_line(&ident, force_author, strlen(force_author)) < 0)
                                                                                     ^
                                                                                      {
/datasets/git/builtin/commit.c:659:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (parse_force_date(force_date, &date_buf))
                                                            ^
                                                             {
/datasets/git/builtin/commit.c:680:59: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static void adjust_comment_line_char(const struct strbuf *sb)
                                                          ^
/datasets/git/builtin/commit.c:683:8: warning: variable 'candidate' is not initialized [cppcoreguidelines-init-variables]
        char *candidate;
              ^
                        = NULL
/datasets/git/builtin/commit.c:684:14: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        const char *p;
                    ^
                      = NULL
/datasets/git/builtin/commit.c:684:14: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/commit.c:687:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!memchr(sb->buf, comment_line_char, sb->len))
                                                         ^
                                                          {
/datasets/git/builtin/commit.c:692:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (candidate)
                      ^
                       {
/datasets/git/builtin/commit.c:694:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = sb->buf; *p; p++) {
        ^
/datasets/git/builtin/commit.c:694:20: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = sb->buf; *p; p++) {
                          ^
/datasets/git/builtin/commit.c:697:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (candidate)
                                      ^
                                       {
/datasets/git/builtin/commit.c:702:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = candidates; *p == ' '; p++)
        ^
/datasets/git/builtin/commit.c:702:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = candidates; *p == ' '; p++)
                             ^
/datasets/git/builtin/commit.c:702:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (p = candidates; *p == ' '; p++)
                                            ^
                                             {
/datasets/git/builtin/commit.c:704:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!*p)
                ^
                 {
/datasets/git/builtin/commit.c:710:72: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static void prepare_amend_commit(struct commit *commit, struct strbuf *sb,
                                                                       ^
/datasets/git/builtin/commit.c:713:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *buffer, *subject, *fmt;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:713:14: warning: variable 'buffer' is not initialized [cppcoreguidelines-init-variables]
        const char *buffer, *subject, *fmt;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/commit.c:713:23: warning: variable 'subject' is not initialized [cppcoreguidelines-init-variables]
        const char *buffer, *subject, *fmt;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/commit.c:713:33: warning: variable 'fmt' is not initialized [cppcoreguidelines-init-variables]
        const char *buffer, *subject, *fmt;
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/commit.c:726:12: warning: function 'prepare_to_commit' has cognitive complexity of 143 (threshold 25) [readability-function-cognitive-complexity]
static int prepare_to_commit(const char *index_file, const char *prefix,
           ^
/datasets/git/builtin/commit.c:745:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!no_verify && run_commit_hook(use_editor, index_file, &invoked_hook,
        ^
/datasets/git/builtin/commit.c:745:17: note: +1
        if (!no_verify && run_commit_hook(use_editor, index_file, &invoked_hook,
                       ^
/datasets/git/builtin/commit.c:749:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (squash_message) {
        ^
/datasets/git/builtin/commit.c:754:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (use_message && !strcmp(use_message, squash_message))
                ^
/datasets/git/builtin/commit.c:754:19: note: +1
                if (use_message && !strcmp(use_message, squash_message))
                                ^
/datasets/git/builtin/commit.c:756:3: note: +1, nesting level increased to 2
                else {
                ^
/datasets/git/builtin/commit.c:760:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!c)
                        ^
/datasets/git/builtin/commit.c:768:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (have_option_m && !fixup_message) {
        ^
/datasets/git/builtin/commit.c:768:20: note: +1
        if (have_option_m && !fixup_message) {
                          ^
/datasets/git/builtin/commit.c:771:9: note: +1, nesting level increased to 1
        } else if (logfile && !strcmp(logfile, "-")) {
               ^
/datasets/git/builtin/commit.c:771:21: note: +1
        } else if (logfile && !strcmp(logfile, "-")) {
                           ^
/datasets/git/builtin/commit.c:772:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (isatty(0))
                ^
/datasets/git/builtin/commit.c:774:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (strbuf_read(&sb, 0, 0) < 0)
                ^
/datasets/git/builtin/commit.c:777:9: note: +1, nesting level increased to 1
        } else if (logfile) {
               ^
/datasets/git/builtin/commit.c:778:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (strbuf_read_file(&sb, logfile, 0) < 0)
                ^
/datasets/git/builtin/commit.c:782:9: note: +1, nesting level increased to 1
        } else if (use_message) {
               ^
/datasets/git/builtin/commit.c:785:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (buffer)
                ^
/datasets/git/builtin/commit.c:789:9: note: +1, nesting level increased to 1
        } else if (fixup_message) {
               ^
/datasets/git/builtin/commit.c:794:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!commit)
                ^
/datasets/git/builtin/commit.c:811:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (have_option_m && !strcmp(fixup_prefix, "fixup"))
                ^
/datasets/git/builtin/commit.c:811:21: note: +1
                if (have_option_m && !strcmp(fixup_prefix, "fixup"))
                                  ^
/datasets/git/builtin/commit.c:814:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(fixup_prefix, "amend")) {
                ^
/datasets/git/builtin/commit.c:815:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (have_option_m)
                        ^
/datasets/git/builtin/commit.c:819:9: note: +1, nesting level increased to 1
        } else if (!stat(git_path_merge_msg(the_repository), &statbuf)) {
               ^
/datasets/git/builtin/commit.c:826:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!stat(git_path_squash_msg(the_repository), &statbuf)) {
                ^
/datasets/git/builtin/commit.c:827:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (strbuf_read_file(&sb, git_path_squash_msg(the_repository), 0) < 0)
                        ^
/datasets/git/builtin/commit.c:830:5: note: +1, nesting level increased to 2
                } else
                  ^
/datasets/git/builtin/commit.c:834:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (strbuf_read_file(&sb, git_path_merge_msg(the_repository), 0) < 0)
                ^
/datasets/git/builtin/commit.c:837:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (cleanup_mode == COMMIT_MSG_CLEANUP_SCISSORS &&
                ^
/datasets/git/builtin/commit.c:837:51: note: +1
                if (cleanup_mode == COMMIT_MSG_CLEANUP_SCISSORS &&
                                                                ^
/datasets/git/builtin/commit.c:842:9: note: +1, nesting level increased to 1
        } else if (!stat(git_path_squash_msg(the_repository), &statbuf)) {
               ^
/datasets/git/builtin/commit.c:843:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (strbuf_read_file(&sb, git_path_squash_msg(the_repository), 0) < 0)
                ^
/datasets/git/builtin/commit.c:846:9: note: +1, nesting level increased to 1
        } else if (template_file) {
               ^
/datasets/git/builtin/commit.c:847:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (strbuf_read_file(&sb, template_file, 0) < 0)
                ^
/datasets/git/builtin/commit.c:857:7: note: +1, nesting level increased to 1
        else if (whence == FROM_MERGE)
             ^
/datasets/git/builtin/commit.c:859:7: note: +1, nesting level increased to 1
        else if (is_from_cherry_pick(whence) || whence == FROM_REBASE_PICK) {
             ^
/datasets/git/builtin/commit.c:859:39: note: +1
        else if (is_from_cherry_pick(whence) || whence == FROM_REBASE_PICK) {
                                             ^
/datasets/git/builtin/commit.c:864:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (squash_message) {
        ^
/datasets/git/builtin/commit.c:875:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!s->fp)
        ^
/datasets/git/builtin/commit.c:888:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (clean_message_contents)
        ^
/datasets/git/builtin/commit.c:891:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (signoff)
        ^
/datasets/git/builtin/commit.c:894:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (fwrite(sb.buf, 1, sb.len, s->fp) < sb.len)
        ^
/datasets/git/builtin/commit.c:897:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (auto_comment_line_char)
        ^
/datasets/git/builtin/commit.c:903:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (use_editor && include_status) {
        ^
/datasets/git/builtin/commit.c:903:17: note: +1
        if (use_editor && include_status) {
                       ^
/datasets/git/builtin/commit.c:907:54: note: +2, including nesting penalty of 1, nesting level increased to 2
                const char *hint_cleanup_all = allow_empty_message ?
                                                                   ^
/datasets/git/builtin/commit.c:913:56: note: +2, including nesting penalty of 1, nesting level increased to 2
                const char *hint_cleanup_space = allow_empty_message ?
                                                                     ^
/datasets/git/builtin/commit.c:923:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (whence != FROM_COMMIT) {
                ^
/datasets/git/builtin/commit.c:924:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (cleanup_mode == COMMIT_MSG_CLEANUP_SCISSORS &&
                        ^
/datasets/git/builtin/commit.c:924:52: note: +1
                        if (cleanup_mode == COMMIT_MSG_CLEANUP_SCISSORS &&
                                                                        ^
/datasets/git/builtin/commit.c:929:26: note: +3, including nesting penalty of 2, nesting level increased to 3
                                whence == FROM_MERGE ?
                                                     ^
/datasets/git/builtin/commit.c:943:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (cleanup_mode == COMMIT_MSG_CLEANUP_ALL)
                ^
/datasets/git/builtin/commit.c:945:8: note: +1, nesting level increased to 2
                else if (cleanup_mode == COMMIT_MSG_CLEANUP_SCISSORS) {
                     ^
/datasets/git/builtin/commit.c:946:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (whence == FROM_COMMIT && !merge_contains_scissors)
                        ^
/datasets/git/builtin/commit.c:946:30: note: +1
                        if (whence == FROM_COMMIT && !merge_contains_scissors)
                                                  ^
/datasets/git/builtin/commit.c:948:5: note: +1, nesting level increased to 2
                } else /* COMMIT_MSG_CLEANUP_SPACE, that is. */
                  ^
/datasets/git/builtin/commit.c:960:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ident_cmp(&ai, &ci))
                ^
/datasets/git/builtin/commit.c:964:19: note: +3, including nesting penalty of 2, nesting level increased to 3
                                ident_shown++ ? "" : "\n",
                                              ^
/datasets/git/builtin/commit.c:968:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (author_date_is_interesting())
                ^
/datasets/git/builtin/commit.c:972:19: note: +3, including nesting penalty of 2, nesting level increased to 3
                                ident_shown++ ? "" : "\n",
                                              ^
/datasets/git/builtin/commit.c:975:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!committer_ident_sufficiently_given())
                ^
/datasets/git/builtin/commit.c:979:19: note: +3, including nesting penalty of 2, nesting level increased to 3
                                ident_shown++ ? "" : "\n",
                                              ^
/datasets/git/builtin/commit.c:990:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/commit.c:994:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!active_nr && read_cache() < 0)
                ^
/datasets/git/builtin/commit.c:994:18: note: +1
                if (!active_nr && read_cache() < 0)
                               ^
/datasets/git/builtin/commit.c:997:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (amend)
                ^
/datasets/git/builtin/commit.c:1000:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (get_oid(parent, &oid)) {
                ^
/datasets/git/builtin/commit.c:1005:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (i = 0; i < the_index.cache_nr; i++)
                        ^
/datasets/git/builtin/commit.c:1006:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (ce_intent_to_add(the_index.cache[i]))
                                ^
/datasets/git/builtin/commit.c:1009:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/commit.c:1021:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ignore_submodule_arg &&
                        ^
/datasets/git/builtin/commit.c:1021:29: note: +1
                        if (ignore_submodule_arg &&
                                                 ^
/datasets/git/builtin/commit.c:1032:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (trailer_args.nr) {
        ^
/datasets/git/builtin/commit.c:1039:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (run_command(&run_trailer))
                ^
/datasets/git/builtin/commit.c:1049:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!committable && whence != FROM_MERGE && !allow_empty &&
        ^
/datasets/git/builtin/commit.c:1049:59: note: +1
        if (!committable && whence != FROM_MERGE && !allow_empty &&
                                                                 ^
/datasets/git/builtin/commit.c:1054:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (amend)
                ^
/datasets/git/builtin/commit.c:1056:8: note: +1, nesting level increased to 2
                else if (is_from_cherry_pick(whence) ||
                     ^
/datasets/git/builtin/commit.c:1056:40: note: +1
                else if (is_from_cherry_pick(whence) ||
                                                     ^
/datasets/git/builtin/commit.c:1059:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (whence == FROM_CHERRY_PICK_SINGLE)
                        ^
/datasets/git/builtin/commit.c:1061:9: note: +1, nesting level increased to 3
                        else if (whence == FROM_CHERRY_PICK_MULTI)
                             ^
/datasets/git/builtin/commit.c:1063:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/builtin/commit.c:1069:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!no_verify && invoked_hook) {
        ^
/datasets/git/builtin/commit.c:1069:17: note: +1
        if (!no_verify && invoked_hook) {
                       ^
/datasets/git/builtin/commit.c:1079:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (update_main_cache_tree(0)) {
        ^
/datasets/git/builtin/commit.c:1084:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (run_commit_hook(use_editor, index_file, NULL, "prepare-commit-msg",
        ^
/datasets/git/builtin/commit.c:1088:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (use_editor) {
        ^
/datasets/git/builtin/commit.c:1092:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (launch_editor(git_path_commit_editmsg(), NULL, env.v)) {
                ^
/datasets/git/builtin/commit.c:1100:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!no_verify &&
        ^
/datasets/git/builtin/commit.c:1100:17: note: +1
        if (!no_verify &&
                       ^
/datasets/git/builtin/commit.c:728:27: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
                             struct wt_status *s,
                                               ^
/datasets/git/builtin/commit.c:733:6: warning: variable 'committable' is not initialized [cppcoreguidelines-init-variables]
        int committable;
            ^
                        = 0
/datasets/git/builtin/commit.c:734:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/commit.c:738:6: warning: variable 'old_display_comment_prefix' is not initialized [cppcoreguidelines-init-variables]
        int old_display_comment_prefix;
            ^
                                       = 0
/datasets/git/builtin/commit.c:740:6: warning: variable 'invoked_hook' is not initialized [cppcoreguidelines-init-variables]
        int invoked_hook;
            ^
                         = 0
/datasets/git/builtin/commit.c:746:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                          "pre-commit", NULL))
                                                              ^
                                                               {
/datasets/git/builtin/commit.c:754:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (use_message && !strcmp(use_message, squash_message))
                                                                        ^
                                                                         {
/datasets/git/builtin/commit.c:758:19: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
                        struct commit *c;
                                       ^
                                         = NULL
/datasets/git/builtin/commit.c:758:19: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/commit.c:760:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!c)
                               ^
                                {
/datasets/git/builtin/commit.c:772:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (isatty(0))
                              ^
                               {
/datasets/git/builtin/commit.c:773:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, _("(reading log message from standard input)\n"));
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:773:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/commit.c:774:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strbuf_read(&sb, 0, 0) < 0)
                                               ^
                                                {
/datasets/git/builtin/commit.c:778:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strbuf_read_file(&sb, logfile, 0) < 0)
                                                          ^
                                                           {
/datasets/git/builtin/commit.c:783:9: warning: variable 'buffer' is not initialized [cppcoreguidelines-init-variables]
                char *buffer;
                      ^
                             = NULL
/datasets/git/builtin/commit.c:785:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (buffer)
                           ^
                            {
/datasets/git/builtin/commit.c:791:18: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
                struct commit *commit;
                               ^
                                      = NULL
/datasets/git/builtin/commit.c:792:9: warning: variable 'fmt' is not initialized [cppcoreguidelines-init-variables]
                char *fmt;
                      ^
                          = NULL
/datasets/git/builtin/commit.c:794:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!commit)
                            ^
                             {
/datasets/git/builtin/commit.c:811:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (have_option_m && !strcmp(fixup_prefix, "fixup"))
                                                                    ^
                                                                     {
/datasets/git/builtin/commit.c:815:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (have_option_m)
                                          ^
                                           {
/datasets/git/builtin/commit.c:820:10: warning: variable 'merge_msg_start' is not initialized [cppcoreguidelines-init-variables]
                size_t merge_msg_start;
                       ^
                                       = 0
/datasets/git/builtin/commit.c:827:74: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (strbuf_read_file(&sb, git_path_squash_msg(the_repository), 0) < 0)
                                                                                              ^
                                                                                               {
/datasets/git/builtin/commit.c:830:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/builtin/commit.c:834:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strbuf_read_file(&sb, git_path_merge_msg(the_repository), 0) < 0)
                                                                                     ^
                                                                                      {
/datasets/git/builtin/commit.c:840:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                sb.len - merge_msg_start)
                                                         ^
                                                          {
/datasets/git/builtin/commit.c:843:73: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strbuf_read_file(&sb, git_path_squash_msg(the_repository), 0) < 0)
                                                                                      ^
                                                                                       {
/datasets/git/builtin/commit.c:847:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strbuf_read_file(&sb, template_file, 0) < 0)
                                                                ^
                                                                 {
/datasets/git/builtin/commit.c:857:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (whence == FROM_MERGE)
                                      ^
                                       {
/datasets/git/builtin/commit.c:875:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!s->fp)
                   ^
                    {
/datasets/git/builtin/commit.c:888:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (clean_message_contents)
                                   ^
                                    {
/datasets/git/builtin/commit.c:891:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (signoff)
                    ^
                     {
/datasets/git/builtin/commit.c:894:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fwrite(sb.buf, 1, sb.len, s->fp) < sb.len)
                                                      ^
                                                       {
/datasets/git/builtin/commit.c:897:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (auto_comment_line_char)
                                   ^
                                    {
/datasets/git/builtin/commit.c:905:7: warning: variable 'saved_color_setting' is not initialized [cppcoreguidelines-init-variables]
                int saved_color_setting;
                    ^
                                        = 0
/datasets/git/builtin/commit.c:906:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                struct ident_split ci, ai;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:906:22: warning: variable name 'ci' is too short, expected at least 3 characters [readability-identifier-length]
                struct ident_split ci, ai;
                                   ^
/datasets/git/builtin/commit.c:906:26: warning: variable name 'ai' is too short, expected at least 3 characters [readability-identifier-length]
                struct ident_split ci, ai;
                                       ^
/datasets/git/builtin/commit.c:925:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                !merge_contains_scissors)
                                                         ^
                                                          {
/datasets/git/builtin/commit.c:942:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(s->fp, "\n");
                ^~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:942:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/commit.c:943:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cleanup_mode == COMMIT_MSG_CLEANUP_ALL)
                                                           ^
                                                            {
/datasets/git/builtin/commit.c:946:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (whence == FROM_COMMIT && !merge_contains_scissors)
                                                                              ^
                                                                               {
/datasets/git/builtin/commit.c:948:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else /* COMMIT_MSG_CLEANUP_SPACE, that is. */
                      ^
                       {
/datasets/git/builtin/commit.c:960:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ident_cmp(&ai, &ci))
                                        ^
                                         {
/datasets/git/builtin/commit.c:968:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (author_date_is_interesting())
                                                 ^
                                                  {
/datasets/git/builtin/commit.c:975:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!committer_ident_sufficiently_given())
                                                          ^
                                                           {
/datasets/git/builtin/commit.c:994:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!active_nr && read_cache() < 0)
                                                   ^
                                                    {
/datasets/git/builtin/commit.c:997:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (amend)
                          ^
                           {
/datasets/git/builtin/commit.c:1001:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        int i, ita_nr = 0;
                        ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:1001:8: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                        int i, ita_nr = 0;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/commit.c:1001:8: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/commit.c:1005:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = 0; i < the_index.cache_nr; i++)
                        ^
/datasets/git/builtin/commit.c:1005:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (i = 0; i < the_index.cache_nr; i++)
                                                                ^
                                                                 {
/datasets/git/builtin/commit.c:1006:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (ce_intent_to_add(the_index.cache[i]))
                                    ^
/datasets/git/./refs/../cache.h:246:31: note: expanded from macro 'ce_intent_to_add'
#define ce_intent_to_add(ce) ((ce)->ce_flags & CE_INTENT_TO_ADD)
                              ^                ~~~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:1006:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (ce_intent_to_add(the_index.cache[i]))
                                                                         ^
                                                                          {
/datasets/git/builtin/commit.c:1022:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            !strcmp(ignore_submodule_arg, "all"))
                                                                 ^
                                                                  {
/datasets/git/builtin/commit.c:1030:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(s->fp);
        ^~~~~~~~~~~~~
/datasets/git/builtin/commit.c:1030:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/commit.c:1039:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (run_command(&run_trailer))
                                              ^
                                               {
/datasets/git/builtin/commit.c:1054:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (amend)
                          ^
                           {
/datasets/git/builtin/commit.c:1055:4: warning: the value returned by this function should be used [cert-err33-c]
                        fputs(_(empty_amend_advice), stderr);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:1055:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/commit.c:1058:4: warning: the value returned by this function should be used [cert-err33-c]
                        fputs(_(empty_cherry_pick_advice), stderr);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:1058:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/commit.c:1059:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (whence == FROM_CHERRY_PICK_SINGLE)
                                                              ^
                                                               {
/datasets/git/builtin/commit.c:1060:5: warning: the value returned by this function should be used [cert-err33-c]
                                fputs(_(empty_cherry_pick_advice_single), stderr);
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:1060:5: note: cast the expression to void to silence this warning
/datasets/git/builtin/commit.c:1061:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (whence == FROM_CHERRY_PICK_MULTI)
                                                                  ^
                                                                   {
/datasets/git/builtin/commit.c:1062:5: warning: the value returned by this function should be used [cert-err33-c]
                                fputs(_(empty_cherry_pick_advice_multi), stderr);
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:1062:5: note: cast the expression to void to silence this warning
/datasets/git/builtin/commit.c:1063:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/builtin/commit.c:1064:5: warning: the value returned by this function should be used [cert-err33-c]
                                fputs(_(empty_rebase_pick_advice), stderr);
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:1064:5: note: cast the expression to void to silence this warning
/datasets/git/builtin/commit.c:1069:20: warning: Branch condition evaluates to a garbage value [clang-analyzer-core.uninitialized.Branch]
        if (!no_verify && invoked_hook) {
                          ^~~~~~~~~~~~
/datasets/git/builtin/commit.c:737:32: note: Assuming 'cleanup_mode' is equal to COMMIT_MSG_CLEANUP_NONE
        int clean_message_contents = (cleanup_mode != COMMIT_MSG_CLEANUP_NONE);
                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:740:2: note: 'invoked_hook' declared without an initial value
        int invoked_hook;
        ^~~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:743:2: note: Calling 'determine_author_info'
        determine_author_info(author_ident);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:620:25: note: Assuming the environment variable does not exist
        name = xstrdup_or_null(getenv("GIT_AUTHOR_NAME"));
                               ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:621:26: note: Assuming the environment variable does not exist
        email = xstrdup_or_null(getenv("GIT_AUTHOR_EMAIL"));
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:622:25: note: Assuming the environment variable does not exist
        date = xstrdup_or_null(getenv("GIT_AUTHOR_DATE"));
                               ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:624:6: note: Assuming 'author_message' is null
        if (author_message) {
            ^~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:624:2: note: Taking false branch
        if (author_message) {
        ^
/datasets/git/builtin/commit.c:648:6: note: Assuming 'force_author' is null
        if (force_author) {
            ^~~~~~~~~~~~
/datasets/git/builtin/commit.c:648:2: note: Taking false branch
        if (force_author) {
        ^
/datasets/git/builtin/commit.c:657:6: note: Assuming 'force_date' is null
        if (force_date) {
            ^~~~~~~~~~
/datasets/git/builtin/commit.c:657:2: note: Taking false branch
        if (force_date) {
        ^
/datasets/git/builtin/commit.c:669:2: note: Calling 'export_one'
        export_one("GIT_AUTHOR_DATE", author.date_begin, author.tz_end, '@');
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:587:6: note: 'hack' is 64
        if (hack)
            ^~~~
/datasets/git/builtin/commit.c:587:2: note: Taking true branch
        if (hack)
        ^
/datasets/git/builtin/commit.c:591:2: note: Value assigned to 'no_verify', which participates in a condition later
        strbuf_release(&buf);
        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:591:2: note: Value assigned to 'squash_message', which participates in a condition later
        strbuf_release(&buf);
        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:591:2: note: Value assigned to 'have_option_m', which participates in a condition later
        strbuf_release(&buf);
        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:591:2: note: Value assigned to 'fixup_message', which participates in a condition later
        strbuf_release(&buf);
        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:669:2: note: Returning from 'export_one'
        export_one("GIT_AUTHOR_DATE", author.date_begin, author.tz_end, '@');
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:743:2: note: Returning from 'determine_author_info'
        determine_author_info(author_ident);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:745:6: note: Assuming 'no_verify' is not equal to 0
        if (!no_verify && run_commit_hook(use_editor, index_file, &invoked_hook,
            ^~~~~~~~~~
/datasets/git/builtin/commit.c:745:17: note: Left side of '&&' is false
        if (!no_verify && run_commit_hook(use_editor, index_file, &invoked_hook,
                       ^
/datasets/git/builtin/commit.c:749:6: note: Assuming 'squash_message' is null
        if (squash_message) {
            ^~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:749:2: note: Taking false branch
        if (squash_message) {
        ^
/datasets/git/builtin/commit.c:768:6: note: Assuming 'have_option_m' is not equal to 0
        if (have_option_m && !fixup_message) {
            ^~~~~~~~~~~~~
/datasets/git/builtin/commit.c:768:6: note: Left side of '&&' is true
/datasets/git/builtin/commit.c:768:23: note: Assuming 'fixup_message' is null
        if (have_option_m && !fixup_message) {
                             ^~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:768:2: note: Taking true branch
        if (have_option_m && !fixup_message) {
        ^
/datasets/git/builtin/commit.c:864:6: note: Assuming 'squash_message' is non-null
        if (squash_message) {
            ^~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:864:2: note: Taking true branch
        if (squash_message) {
        ^
/datasets/git/builtin/commit.c:875:6: note: Assuming field 'fp' is non-null
        if (!s->fp)
            ^~~~~~
/datasets/git/builtin/commit.c:875:2: note: Taking false branch
        if (!s->fp)
        ^
/datasets/git/builtin/commit.c:888:6: note: 'clean_message_contents' is 0
        if (clean_message_contents)
            ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:888:2: note: Taking false branch
        if (clean_message_contents)
        ^
/datasets/git/builtin/commit.c:891:6: note: Assuming 'signoff' is 0
        if (signoff)
            ^~~~~~~
/datasets/git/builtin/commit.c:891:2: note: Taking false branch
        if (signoff)
        ^
/datasets/git/builtin/commit.c:894:6: note: Assuming the condition is false
        if (fwrite(sb.buf, 1, sb.len, s->fp) < sb.len)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:894:2: note: Taking false branch
        if (fwrite(sb.buf, 1, sb.len, s->fp) < sb.len)
        ^
/datasets/git/builtin/commit.c:897:6: note: Assuming 'auto_comment_line_char' is 0
        if (auto_comment_line_char)
            ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:897:2: note: Taking false branch
        if (auto_comment_line_char)
        ^
/datasets/git/builtin/commit.c:902:2: note: Calling 'strbuf_addstr'
        strbuf_addstr(&committer_ident, git_committer_info(IDENT_STRICT));
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./strbuf.h:305:2: note: Value assigned to 'use_editor', which participates in a condition later
        strbuf_add(sb, s, strlen(s));
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./strbuf.h:305:2: note: Value assigned to 'the_index.cache_nr', which participates in a condition later
        strbuf_add(sb, s, strlen(s));
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:902:2: note: Returning from 'strbuf_addstr'
        strbuf_addstr(&committer_ident, git_committer_info(IDENT_STRICT));
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:903:6: note: Assuming 'use_editor' is 0
        if (use_editor && include_status) {
            ^~~~~~~~~~
/datasets/git/builtin/commit.c:903:17: note: Left side of '&&' is false
        if (use_editor && include_status) {
                       ^
/datasets/git/builtin/commit.c:994:7: note: Assuming field 'cache_nr' is not equal to 0
                if (!active_nr && read_cache() < 0)
                    ^~~~~~~~~~
/datasets/git/builtin/commit.c:994:18: note: Left side of '&&' is false
                if (!active_nr && read_cache() < 0)
                               ^
/datasets/git/builtin/commit.c:997:7: note: Assuming 'amend' is 0
                if (amend)
                    ^~~~~
/datasets/git/builtin/commit.c:997:3: note: Taking false branch
                if (amend)
                ^
/datasets/git/builtin/commit.c:1000:7: note: Assuming the condition is false
                if (get_oid(parent, &oid)) {
                    ^
/datasets/git/./refs/../cache.h:1487:28: note: expanded from macro 'get_oid'
#define get_oid(str, oid)               repo_get_oid(the_repository, str, oid)
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:1000:3: note: Taking false branch
                if (get_oid(parent, &oid)) {
                ^
/datasets/git/builtin/commit.c:1021:8: note: Assuming 'ignore_submodule_arg' is null
                        if (ignore_submodule_arg &&
                            ^~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:1021:29: note: Left side of '&&' is false
                        if (ignore_submodule_arg &&
                                                 ^
/datasets/git/builtin/commit.c:1032:6: note: Assuming field 'nr' is 0
        if (trailer_args.nr) {
            ^~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:1032:2: note: Taking false branch
        if (trailer_args.nr) {
        ^
/datasets/git/builtin/commit.c:1049:6: note: Assuming 'committable' is not equal to 0
        if (!committable && whence != FROM_MERGE && !allow_empty &&
            ^~~~~~~~~~~~
/datasets/git/builtin/commit.c:1049:19: note: Left side of '&&' is false
        if (!committable && whence != FROM_MERGE && !allow_empty &&
                         ^
/datasets/git/builtin/commit.c:1069:6: note: Assuming 'no_verify' is 0
        if (!no_verify && invoked_hook) {
            ^~~~~~~~~~
/datasets/git/builtin/commit.c:1069:6: note: Left side of '&&' is true
/datasets/git/builtin/commit.c:1069:20: note: Branch condition evaluates to a garbage value
        if (!no_verify && invoked_hook) {
                          ^~~~~~~~~~~~
/datasets/git/builtin/commit.c:1085:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            git_path_commit_editmsg(), hook_arg1, hook_arg2, NULL))
                                                                                   ^
                                                                                    {
/datasets/git/builtin/commit.c:1093:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr,
                        ^~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:1093:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/commit.c:1095:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        exit(1);
                        ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/commit.c:1112:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/builtin/commit.c:1114:14: warning: variable name 'av' is too short, expected at least 3 characters [readability-identifier-length]
        const char *av[20];
                    ^
/datasets/git/builtin/commit.c:1114:17: warning: 20 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        const char *av[20];
                       ^
/datasets/git/builtin/commit.c:1115:6: warning: variable name 'ac' is too short, expected at least 3 characters [readability-identifier-length]
        int ac = 0;
            ^
/datasets/git/builtin/commit.c:1128:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prepare_revision_walk(&revs))
                                         ^
                                          {
/datasets/git/builtin/commit.c:1142:50: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void handle_ignored_arg(struct wt_status *s)
                                                 ^
/datasets/git/builtin/commit.c:1144:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ignored_arg)
                         ^
                          {
/datasets/git/builtin/commit.c:1146:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(ignored_arg, "traditional"))
                                                     ^
                                                      {
/datasets/git/builtin/commit.c:1148:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(ignored_arg, "no"))
                                            ^
                                             {
/datasets/git/builtin/commit.c:1150:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(ignored_arg, "matching"))
                                                  ^
                                                   {
/datasets/git/builtin/commit.c:1152:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/commit.c:1156:58: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void handle_untracked_files_arg(struct wt_status *s)
                                                         ^
/datasets/git/builtin/commit.c:1158:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!untracked_files_arg)
                                 ^
                                  {
/datasets/git/builtin/commit.c:1160:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(untracked_files_arg, "no"))
                                                    ^
                                                     {
/datasets/git/builtin/commit.c:1162:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(untracked_files_arg, "normal"))
                                                        ^
                                                         {
/datasets/git/builtin/commit.c:1164:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(untracked_files_arg, "all"))
                                                     ^
                                                      {
/datasets/git/builtin/commit.c:1170:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/commit.c:1176:14: warning: variable 'out_enc' is not initialized [cppcoreguidelines-init-variables]
        const char *out_enc;
                    ^
                            = NULL
/datasets/git/builtin/commit.c:1177:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/builtin/commit.c:1180:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!commit)
                    ^
                     {
/datasets/git/builtin/commit.c:1190:15: warning: accessing fields in struct 'status_deferred_config' is inefficient due to poor alignment; currently aligned to 4 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
static struct status_deferred_config {
              ^
/datasets/git/builtin/commit.c:1190:15: note: use "__attribute__((aligned(16)))" to align struct 'status_deferred_config' to 16 bytes
/datasets/git/builtin/commit.c:1194:3: warning: variable 'status_deferred_config' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} status_deferred_config = {
  ^
/datasets/git/builtin/commit.c:1200:56: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void finalize_deferred_config(struct wt_status *s)
                                                       ^
/datasets/git/builtin/commit.c:1208:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    status_format == STATUS_FORMAT_UNSPECIFIED)
                                                               ^
                                                                {
/datasets/git/builtin/commit.c:1210:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (status_format == STATUS_FORMAT_LONG)
                                                             ^
                                                              {
/datasets/git/builtin/commit.c:1214:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (use_deferred_config && status_format == STATUS_FORMAT_UNSPECIFIED)
                                                                              ^
                                                                               {
/datasets/git/builtin/commit.c:1216:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (status_format == STATUS_FORMAT_UNSPECIFIED)
                                                       ^
                                                        {
/datasets/git/builtin/commit.c:1219:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (use_deferred_config && s->show_branch < 0)
                                                      ^
                                                       {
/datasets/git/builtin/commit.c:1221:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (s->show_branch < 0)
                               ^
                                {
/datasets/git/builtin/commit.c:1232:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            s->ahead_behind_flags == AHEAD_BEHIND_UNSPECIFIED)
                                                              ^
                                                               {
/datasets/git/builtin/commit.c:1235:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (s->ahead_behind_flags == AHEAD_BEHIND_UNSPECIFIED)
                                                              ^
                                                               {
/datasets/git/builtin/commit.c:1241:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (whence == FROM_MERGE)
                                         ^
                                          {
/datasets/git/builtin/commit.c:1243:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (is_from_cherry_pick(whence))
                                                     ^
                                                      {
/datasets/git/builtin/commit.c:1246:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc)
                 ^
                  {
/datasets/git/builtin/commit.c:1248:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (patch_interactive || interactive || all || also || only)
                                                                    ^
                                                                     {
/datasets/git/builtin/commit.c:1253:12: warning: function 'parse_and_validate_options' has cognitive complexity of 50 (threshold 25) [readability-function-cognitive-complexity]
static int parse_and_validate_options(int argc, const char *argv[],
           ^
/datasets/git/builtin/commit.c:1263:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (force_author && !strchr(force_author, '>'))
        ^
/datasets/git/builtin/commit.c:1263:19: note: +1
        if (force_author && !strchr(force_author, '>'))
                         ^
/datasets/git/builtin/commit.c:1266:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (force_author && renew_authorship)
        ^
/datasets/git/builtin/commit.c:1266:19: note: +1
        if (force_author && renew_authorship)
                         ^
/datasets/git/builtin/commit.c:1269:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (logfile || have_option_m || use_message)
        ^
/datasets/git/builtin/commit.c:1269:31: note: +1
        if (logfile || have_option_m || use_message)
                                     ^
/datasets/git/builtin/commit.c:1273:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (amend && !current_head)
        ^
/datasets/git/builtin/commit.c:1273:12: note: +1
        if (amend && !current_head)
                  ^
/datasets/git/builtin/commit.c:1275:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (amend && whence != FROM_COMMIT) {
        ^
/datasets/git/builtin/commit.c:1275:12: note: +1
        if (amend && whence != FROM_COMMIT) {
                  ^
/datasets/git/builtin/commit.c:1276:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (whence == FROM_MERGE)
                ^
/datasets/git/builtin/commit.c:1278:8: note: +1, nesting level increased to 2
                else if (is_from_cherry_pick(whence))
                     ^
/datasets/git/builtin/commit.c:1280:8: note: +1, nesting level increased to 2
                else if (whence == FROM_REBASE_PICK)
                     ^
/datasets/git/builtin/commit.c:1283:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (fixup_message && squash_message)
        ^
/datasets/git/builtin/commit.c:1283:20: note: +1
        if (fixup_message && squash_message)
                          ^
/datasets/git/builtin/commit.c:1293:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (use_message || edit_message || logfile ||fixup_message || have_option_m)
        ^
/datasets/git/builtin/commit.c:1293:61: note: +1
        if (use_message || edit_message || logfile ||fixup_message || have_option_m)
                                                                   ^
/datasets/git/builtin/commit.c:1295:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (edit_message)
        ^
/datasets/git/builtin/commit.c:1297:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (amend && !use_message && !fixup_message)
        ^
/datasets/git/builtin/commit.c:1297:28: note: +1
        if (amend && !use_message && !fixup_message)
                                  ^
/datasets/git/builtin/commit.c:1299:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!use_message && !is_from_cherry_pick(whence) &&
        ^
/datasets/git/builtin/commit.c:1300:30: note: +1
            !is_from_rebase(whence) && renew_authorship)
                                    ^
/datasets/git/builtin/commit.c:1302:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (use_message) {
        ^
/datasets/git/builtin/commit.c:1304:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!renew_authorship) {
                ^
/datasets/git/builtin/commit.c:1309:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((is_from_cherry_pick(whence) || whence == FROM_REBASE_PICK) &&
        ^
/datasets/git/builtin/commit.c:1309:66: note: +1
        if ((is_from_cherry_pick(whence) || whence == FROM_REBASE_PICK) &&
                                                                        ^
/datasets/git/builtin/commit.c:1309:35: note: +1
        if ((is_from_cherry_pick(whence) || whence == FROM_REBASE_PICK) &&
                                         ^
/datasets/git/builtin/commit.c:1315:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (patch_interactive)
        ^
/datasets/git/builtin/commit.c:1322:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (fixup_message) {
        ^
/datasets/git/builtin/commit.c:1334:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (isalpha(*p))
                ^
/datasets/git/builtin/commit.c:1336:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (p > fixup_message && *p == ':') {
                ^
/datasets/git/builtin/commit.c:1336:25: note: +1
                if (p > fixup_message && *p == ':') {
                                      ^
/datasets/git/builtin/commit.c:1339:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!strcmp("amend", fixup_message) ||
                        ^
/datasets/git/builtin/commit.c:1339:40: note: +1
                        if (!strcmp("amend", fixup_message) ||
                                                            ^
/datasets/git/builtin/commit.c:1343:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (*fixup_message == 'r') {
                                ^
/datasets/git/builtin/commit.c:1347:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/builtin/commit.c:1350:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/commit.c:1357:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (0 <= edit_flag)
        ^
/datasets/git/builtin/commit.c:1364:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (all && argc > 0)
        ^
/datasets/git/builtin/commit.c:1364:10: note: +1
        if (all && argc > 0)
                ^
/datasets/git/builtin/commit.c:1368:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (status_format != STATUS_FORMAT_NONE)
        ^
/datasets/git/builtin/commit.c:1258:29: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
                                      struct wt_status *s)
                                                        ^
/datasets/git/builtin/commit.c:1263:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (force_author && !strchr(force_author, '>'))
                                                       ^
                                                        {
/datasets/git/builtin/commit.c:1266:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (force_author && renew_authorship)
                                             ^
                                              {
/datasets/git/builtin/commit.c:1269:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (logfile || have_option_m || use_message)
                                                    ^
                                                     {
/datasets/git/builtin/commit.c:1273:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (amend && !current_head)
                                   ^
                                    {
/datasets/git/builtin/commit.c:1276:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (whence == FROM_MERGE)
                                         ^
                                          {
/datasets/git/builtin/commit.c:1278:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (is_from_cherry_pick(whence))
                                                     ^
                                                      {
/datasets/git/builtin/commit.c:1280:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (whence == FROM_REBASE_PICK)
                                                    ^
                                                     {
/datasets/git/builtin/commit.c:1283:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fixup_message && squash_message)
                                            ^
                                             {
/datasets/git/builtin/commit.c:1293:78: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (use_message || edit_message || logfile ||fixup_message || have_option_m)
                                                                                    ^
                                                                                     {
/datasets/git/builtin/commit.c:1295:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (edit_message)
                         ^
                          {
/datasets/git/builtin/commit.c:1297:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (amend && !use_message && !fixup_message)
                                                    ^
                                                     {
/datasets/git/builtin/commit.c:1300:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !is_from_rebase(whence) && renew_authorship)
                                                        ^
                                                         {
/datasets/git/builtin/commit.c:1315:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (patch_interactive)
                              ^
                               {
/datasets/git/builtin/commit.c:1333:9: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                char *p = fixup_message;
                      ^
/datasets/git/builtin/commit.c:1334:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (isalpha(*p))
                ^
/datasets/git/builtin/commit.c:1334:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (isalpha(*p))
                       ^
/datasets/git/./git-compat-util.h:1219:20: note: expanded from macro 'isalpha'
#define isalpha(x) sane_istest(x,GIT_ALPHA)
                   ^
/datasets/git/./git-compat-util.h:1215:29: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                            ^
/datasets/git/builtin/commit.c:1334:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                while (isalpha(*p))
                       ^
/datasets/git/./git-compat-util.h:1219:20: note: expanded from macro 'isalpha'
#define isalpha(x) sane_istest(x,GIT_ALPHA)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/builtin/commit.c:1334:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (isalpha(*p))
                                   ^
                                    {
/datasets/git/builtin/commit.c:1357:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (0 <= edit_flag)
                           ^
                            {
/datasets/git/builtin/commit.c:1364:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (all && argc > 0)
                            ^
                             {
/datasets/git/builtin/commit.c:1368:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (status_format != STATUS_FORMAT_NONE)
                                                ^
                                                 {
/datasets/git/builtin/commit.c:1375:59: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
                          const struct commit *current_head, struct wt_status *s)
                                                                               ^
/datasets/git/builtin/commit.c:1377:6: warning: variable 'committable' is not initialized [cppcoreguidelines-init-variables]
        int committable;
            ^
                        = 0
/datasets/git/builtin/commit.c:1378:14: warning: variable 'index_file' is not initialized [cppcoreguidelines-init-variables]
        const char *index_file;
                    ^
                               = NULL
/datasets/git/builtin/commit.c:1387:1: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
define_list_config_array_extra(color_status_slots, {"added"});
^
/datasets/git/./help.h:73:2: note: expanded from macro 'define_list_config_array_extra'
        for (i = 0; i < ARRAY_SIZE(extra); i++)                         \
        ^
/datasets/git/builtin/commit.c:1387:1: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
define_list_config_array_extra(color_status_slots, {"added"});
^
/datasets/git/./help.h:71:6: note: expanded from macro 'define_list_config_array_extra'
        int i;                                                          \
            ^
/datasets/git/builtin/commit.c:1391:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcasecmp(slot, "added"))
                                       ^
                                        {
/datasets/git/builtin/commit.c:1397:12: warning: function 'git_status_config' has cognitive complexity of 37 (threshold 25) [readability-function-cognitive-complexity]
static int git_status_config(const char *k, const char *v, void *cb)
           ^
/datasets/git/builtin/commit.c:1402:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (starts_with(k, "column."))
        ^
/datasets/git/builtin/commit.c:1404:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(k, "status.submodulesummary")) {
        ^
/datasets/git/builtin/commit.c:1407:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (is_bool && s->submodule_summary)
                ^
/datasets/git/builtin/commit.c:1407:15: note: +1
                if (is_bool && s->submodule_summary)
                            ^
/datasets/git/builtin/commit.c:1411:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(k, "status.short")) {
        ^
/datasets/git/builtin/commit.c:1412:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (git_config_bool(k, v))
                ^
/datasets/git/builtin/commit.c:1414:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/commit.c:1418:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(k, "status.branch")) {
        ^
/datasets/git/builtin/commit.c:1422:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(k, "status.aheadbehind")) {
        ^
/datasets/git/builtin/commit.c:1426:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(k, "status.showstash")) {
        ^
/datasets/git/builtin/commit.c:1430:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(k, "status.color") || !strcmp(k, "color.status")) {
        ^
/datasets/git/builtin/commit.c:1430:33: note: +1
        if (!strcmp(k, "status.color") || !strcmp(k, "color.status")) {
                                       ^
/datasets/git/builtin/commit.c:1434:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(k, "status.displaycommentprefix")) {
        ^
/datasets/git/builtin/commit.c:1438:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (skip_prefix(k, "status.color.", &slot_name) ||
        ^
/datasets/git/builtin/commit.c:1438:50: note: +1
        if (skip_prefix(k, "status.color.", &slot_name) ||
                                                        ^
/datasets/git/builtin/commit.c:1441:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (slot < 0)
                ^
/datasets/git/builtin/commit.c:1443:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!v)
                ^
/datasets/git/builtin/commit.c:1447:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(k, "status.relativepaths")) {
        ^
/datasets/git/builtin/commit.c:1451:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(k, "status.showuntrackedfiles")) {
        ^
/datasets/git/builtin/commit.c:1452:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!v)
                ^
/datasets/git/builtin/commit.c:1454:8: note: +1, nesting level increased to 2
                else if (!strcmp(v, "no"))
                     ^
/datasets/git/builtin/commit.c:1456:8: note: +1, nesting level increased to 2
                else if (!strcmp(v, "normal"))
                     ^
/datasets/git/builtin/commit.c:1458:8: note: +1, nesting level increased to 2
                else if (!strcmp(v, "all"))
                     ^
/datasets/git/builtin/commit.c:1460:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/commit.c:1464:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(k, "diff.renamelimit")) {
        ^
/datasets/git/builtin/commit.c:1465:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (s->rename_limit == -1)
                ^
/datasets/git/builtin/commit.c:1469:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(k, "status.renamelimit")) {
        ^
/datasets/git/builtin/commit.c:1473:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(k, "diff.renames")) {
        ^
/datasets/git/builtin/commit.c:1474:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (s->detect_rename == -1)
                ^
/datasets/git/builtin/commit.c:1478:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(k, "status.renames")) {
        ^
/datasets/git/builtin/commit.c:1397:42: warning: parameter name 'k' is too short, expected at least 3 characters [readability-identifier-length]
static int git_status_config(const char *k, const char *v, void *cb)
                                         ^
/datasets/git/builtin/commit.c:1397:57: warning: parameter name 'v' is too short, expected at least 3 characters [readability-identifier-length]
static int git_status_config(const char *k, const char *v, void *cb)
                                                        ^
/datasets/git/builtin/commit.c:1397:66: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int git_status_config(const char *k, const char *v, void *cb)
                                                                 ^
/datasets/git/builtin/commit.c:1399:20: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
        struct wt_status *s = cb;
                          ^
/datasets/git/builtin/commit.c:1400:14: warning: variable 'slot_name' is not initialized [cppcoreguidelines-init-variables]
        const char *slot_name;
                    ^
                              = NULL
/datasets/git/builtin/commit.c:1402:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (starts_with(k, "column."))
                                      ^
                                       {
/datasets/git/builtin/commit.c:1405:7: warning: variable 'is_bool' is not initialized [cppcoreguidelines-init-variables]
                int is_bool;
                    ^
                            = 0
/datasets/git/builtin/commit.c:1407:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_bool && s->submodule_summary)
                                                    ^
                                                     {
/datasets/git/builtin/commit.c:1412:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (git_config_bool(k, v))
                                          ^
                                           {
/datasets/git/builtin/commit.c:1414:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/commit.c:1441:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (slot < 0)
                             ^
                              {
/datasets/git/builtin/commit.c:1443:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!v)
                       ^
                        {
/datasets/git/builtin/commit.c:1452:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!v)
                       ^
                        {
/datasets/git/builtin/commit.c:1454:3: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                else if (!strcmp(v, "no"))
                ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:1454:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(v, "no"))
                                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/commit.c:1456:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(v, "normal"))
                                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/commit.c:1458:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(v, "all"))
                                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/commit.c:1460:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/commit.c:1465:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (s->rename_limit == -1)
                                          ^
                                           {
/datasets/git/builtin/commit.c:1474:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (s->detect_rename == -1)
                                           ^
                                            {
/datasets/git/builtin/commit.c:1488:40: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
        static const char *rename_score_arg = (const char *)-1;
                                              ^
/datasets/git/builtin/commit.c:1489:26: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
        static struct wt_status s;
                                ^
/datasets/git/builtin/commit.c:1491:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/builtin/commit.c:1491:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/commit.c:1494:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__VERBOSE(&verbose, N_("be verbose")),
                ^
/datasets/git/./parse-options.h:359:31: note: expanded from macro 'OPT__VERBOSE'
#define OPT__VERBOSE(var, h)  OPT_COUNTUP('v', "verbose", (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:1495:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT('s', "short", &status_format,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:1497:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('b', "branch", &s.show_branch,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:1499:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "show-stash", &s.show_stash,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:1501:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "ahead-behind", &s.ahead_behind_flags,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:1506:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT(0, "long", &status_format,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:1509:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('z', "null", &s.null_termination,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:1523:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "no-renames", &no_renames, N_("do not detect renames")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:1526:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                  PARSE_OPT_OPTARG | PARSE_OPT_NONEG, opt_parse_rename_score),
                  ^
/datasets/git/./parse-options.h:169:47: note: expanded from macro 'OPT_CALLBACK_F'
        { OPTION_CALLBACK, (s), (l), (v), (a), (h), (f), (cb) }
                                                     ^
/datasets/git/builtin/commit.c:1530:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc == 2 && !strcmp(argv[1], "-h"))
                                                ^
                                                 {
/datasets/git/builtin/commit.c:1537:2: warning: Value stored to 'argc' is never read [clang-analyzer-deadcode.DeadStores]
        argc = parse_options(argc, argv, prefix,
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:1537:2: note: Value stored to 'argc' is never read
        argc = parse_options(argc, argv, prefix,
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:1547:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            s.show_untracked_files == SHOW_NO_UNTRACKED_FILES)
                                                              ^
                                                               {
/datasets/git/builtin/commit.c:1551:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_PREFER_FULL,
                       ^
/datasets/git/./pathspec.h:66:31: note: expanded from macro 'PATHSPEC_PREFER_FULL'
#define PATHSPEC_PREFER_FULL (1<<1) /* No args means match everything */
                              ^
/datasets/git/builtin/commit.c:1555:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            status_format != STATUS_FORMAT_PORCELAIN_V2)
                                                        ^
                                                         {
/datasets/git/builtin/commit.c:1556:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                progress_flag = REFRESH_PROGRESS;
                                ^
/datasets/git/./refs/../cache.h:927:43: note: expanded from macro 'REFRESH_PROGRESS'
#define REFRESH_PROGRESS                 (1 << 6) /* show progress bar if stderr is tty */
                                          ^
/datasets/git/builtin/commit.c:1559:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                      REFRESH_QUIET|REFRESH_UNMERGED|progress_flag,
                      ^
/datasets/git/./refs/../cache.h:923:42: note: expanded from macro 'REFRESH_QUIET'
#define REFRESH_QUIET                    (1 << 2) /* be quiet about it */
                                         ^
/datasets/git/builtin/commit.c:1559:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                      REFRESH_QUIET|REFRESH_UNMERGED|progress_flag,
                                    ^
/datasets/git/./refs/../cache.h:922:43: note: expanded from macro 'REFRESH_UNMERGED'
#define REFRESH_UNMERGED                 (1 << 1) /* allow unmerged */
                                          ^
/datasets/git/builtin/commit.c:1562:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (use_optional_locks())
                                 ^
                                  {
/datasets/git/builtin/commit.c:1564:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/commit.c:1568:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!s.is_initial)
                          ^
                           {
/datasets/git/builtin/commit.c:1574:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (no_renames != -1)
                             ^
                              {
/datasets/git/builtin/commit.c:1577:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (s.detect_rename < DIFF_DETECT_RENAME)
                                                         ^
                                                          {
/datasets/git/builtin/commit.c:1579:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (rename_score_arg)
                                     ^
                                      {
/datasets/git/builtin/commit.c:1585:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (0 <= fd)
                    ^
                     {
/datasets/git/builtin/commit.c:1588:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (s.relative_paths)
                             ^
                              {
/datasets/git/builtin/commit.c:1597:42: warning: parameter name 'k' is too short, expected at least 3 characters [readability-identifier-length]
static int git_commit_config(const char *k, const char *v, void *cb)
                                         ^
/datasets/git/builtin/commit.c:1597:57: warning: parameter name 'v' is too short, expected at least 3 characters [readability-identifier-length]
static int git_commit_config(const char *k, const char *v, void *cb)
                                                        ^
/datasets/git/builtin/commit.c:1597:66: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int git_commit_config(const char *k, const char *v, void *cb)
                                                                 ^
/datasets/git/builtin/commit.c:1599:20: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
        struct wt_status *s = cb;
                          ^
/datasets/git/builtin/commit.c:1600:6: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int status;
            ^
                   = 0
/datasets/git/builtin/commit.c:1602:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(k, "commit.template"))
                                          ^
                                           {
/datasets/git/builtin/commit.c:1608:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(k, "commit.cleanup"))
                                         ^
                                          {
/datasets/git/builtin/commit.c:1615:7: warning: variable 'is_bool' is not initialized [cppcoreguidelines-init-variables]
                int is_bool;
                    ^
                            = 0
/datasets/git/builtin/commit.c:1621:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (status)
                   ^
                    {
/datasets/git/builtin/commit.c:1626:5: warning: function 'cmd_commit' has cognitive complexity of 70 (threshold 25) [readability-function-cognitive-complexity]
int cmd_commit(int argc, const char **argv, const char *prefix)
    ^
/datasets/git/builtin/commit.c:1703:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (argc == 2 && !strcmp(argv[1], "-h"))
        ^
/datasets/git/builtin/commit.c:1703:16: note: +1
        if (argc == 2 && !strcmp(argv[1], "-h"))
                      ^
/datasets/git/builtin/commit.c:1714:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (get_oid("HEAD", &oid))
        ^
/datasets/git/builtin/commit.c:1716:2: note: +1, nesting level increased to 1
        else {
        ^
/datasets/git/builtin/commit.c:1718:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (parse_commit(current_head))
                ^
/datasets/git/builtin/commit.c:1725:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (verbose == -1)
        ^
/datasets/git/builtin/commit.c:1726:41: note: +2, including nesting penalty of 1, nesting level increased to 2
                verbose = (config_commit_verbose < 0) ? 0 : config_commit_verbose;
                                                      ^
/datasets/git/builtin/commit.c:1728:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (dry_run)
        ^
/datasets/git/builtin/commit.c:1734:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!prepare_to_commit(index_file, prefix,
        ^
/datasets/git/builtin/commit.c:1738:3: note: +1
                goto cleanup;
                ^
/datasets/git/builtin/commit.c:1743:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!current_head) {
        ^
/datasets/git/builtin/commit.c:1744:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!reflog_msg)
                ^
/datasets/git/builtin/commit.c:1746:9: note: +1, nesting level increased to 1
        } else if (amend) {
               ^
/datasets/git/builtin/commit.c:1747:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!reflog_msg)
                ^
/datasets/git/builtin/commit.c:1750:9: note: +1, nesting level increased to 1
        } else if (whence == FROM_MERGE) {
               ^
/datasets/git/builtin/commit.c:1756:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!reflog_msg)
                ^
/datasets/git/builtin/commit.c:1760:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (strbuf_getline_lf(&m, fp) != EOF) {
                ^
/datasets/git/builtin/commit.c:1764:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!parent)
                        ^
/datasets/git/builtin/commit.c:1770:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!stat(git_path_merge_mode(the_repository), &statbuf)) {
                ^
/datasets/git/builtin/commit.c:1771:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (strbuf_read_file(&sb, git_path_merge_mode(the_repository), 0) < 0)
                        ^
/datasets/git/builtin/commit.c:1773:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!strcmp(sb.buf, "no-ff"))
                        ^
/datasets/git/builtin/commit.c:1776:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (allow_fast_forward)
                ^
/datasets/git/builtin/commit.c:1778:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/commit.c:1779:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!reflog_msg)
                ^
/datasets/git/builtin/commit.c:1781:6: note: +3, including nesting penalty of 2, nesting level increased to 3
                                        ? "commit (cherry-pick)"
                                        ^
/datasets/git/builtin/commit.c:1783:6: note: +4, including nesting penalty of 3, nesting level increased to 4
                                        ? "commit (rebase)"
                                        ^
/datasets/git/builtin/commit.c:1790:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (strbuf_read_file(&sb, git_path_commit_editmsg(), 0) < 0) {
        ^
/datasets/git/builtin/commit.c:1798:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (message_is_empty(&sb, cleanup_mode) && !allow_empty_message) {
        ^
/datasets/git/builtin/commit.c:1798:42: note: +1
        if (message_is_empty(&sb, cleanup_mode) && !allow_empty_message) {
                                                ^
/datasets/git/builtin/commit.c:1803:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (template_untouched(&sb, template_file, cleanup_mode) && !allow_empty_message) {
        ^
/datasets/git/builtin/commit.c:1803:59: note: +1
        if (template_untouched(&sb, template_file, cleanup_mode) && !allow_empty_message) {
                                                                 ^
/datasets/git/builtin/commit.c:1809:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (fixup_message && starts_with(sb.buf, "amend! ") &&
        ^
/datasets/git/builtin/commit.c:1809:54: note: +1
        if (fixup_message && starts_with(sb.buf, "amend! ") &&
                                                            ^
/datasets/git/builtin/commit.c:1814:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (message_is_empty(&body, cleanup_mode)) {
                ^
/datasets/git/builtin/commit.c:1822:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (amend) {
        ^
/datasets/git/builtin/commit.c:1825:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/commit.c:1830:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (commit_tree_extended(sb.buf, sb.len, &the_index.cache_tree->oid,
        ^
/datasets/git/builtin/commit.c:1838:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (update_head_with_reflog(current_head, &oid, reflog_msg, &sb,
        ^
/datasets/git/builtin/commit.c:1850:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (commit_index_files())
        ^
/datasets/git/builtin/commit.c:1861:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (amend && !no_post_rewrite) {
        ^
/datasets/git/builtin/commit.c:1861:12: note: +1
        if (amend && !no_post_rewrite) {
                  ^
/datasets/git/builtin/commit.c:1864:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!quiet) {
        ^
/datasets/git/builtin/commit.c:1867:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!current_head)
                ^
/datasets/git/builtin/commit.c:1869:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (author_date_is_interesting())
                ^
/datasets/git/builtin/commit.c:1878:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        UNLEAK(author_ident);
        ^
/datasets/git/./git-compat-util.h:1544:21: note: expanded from macro 'UNLEAK'
#define UNLEAK(var) do {} while (0)
                    ^
/datasets/git/builtin/commit.c:1879:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        UNLEAK(err);
        ^
/datasets/git/./git-compat-util.h:1544:21: note: expanded from macro 'UNLEAK'
#define UNLEAK(var) do {} while (0)
                    ^
/datasets/git/builtin/commit.c:1880:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        UNLEAK(sb);
        ^
/datasets/git/./git-compat-util.h:1544:21: note: expanded from macro 'UNLEAK'
#define UNLEAK(var) do {} while (0)
                    ^
/datasets/git/builtin/commit.c:1628:26: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
        static struct wt_status s;
                                ^
/datasets/git/builtin/commit.c:1630:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__QUIET(&quiet, N_("suppress summary after successful commit")),
                ^
/datasets/git/./parse-options.h:360:31: note: expanded from macro 'OPT__QUIET'
#define OPT__QUIET(var, h)    OPT_COUNTUP('q', "quiet",   (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:1631:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__VERBOSE(&verbose, N_("show diff in commit message template")),
                ^
/datasets/git/./parse-options.h:359:31: note: expanded from macro 'OPT__VERBOSE'
#define OPT__VERBOSE(var, h)  OPT_COUNTUP('v', "verbose", (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:1646:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "reset-author", &renew_authorship, N_("the commit is authored by me now (used with -C/-c/--amend)")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:1648:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('s', "signoff", &signoff, N_("add a Signed-off-by trailer")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:1650:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('e', "edit", &edit_flag, N_("force edit of commit")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:1652:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "status", &include_status, N_("include status in commit message template")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:1658:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('a', "all", &all, N_("commit all changed files")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:1659:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('i', "include", &also, N_("add specified files to index for commit")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:1660:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "interactive", &interactive, N_("interactively add files")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:1661:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('p', "patch", &patch_interactive, N_("interactively add changes")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:1662:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('o', "only", &only, N_("commit only specified files")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:1663:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('n', "no-verify", &no_verify, N_("bypass pre-commit and commit-msg hooks")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:1664:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "dry-run", &dry_run, N_("show what would be committed")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:1665:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT(0, "short", &status_format, N_("show status concisely"),
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:1667:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "branch", &s.show_branch, N_("show branch information")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:1668:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "ahead-behind", &s.ahead_behind_flags,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:1670:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT(0, "porcelain", &status_format,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:1672:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT(0, "long", &status_format,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:1675:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('z', "null", &s.null_termination,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:1677:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "amend", &amend, N_("amend previous commit")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:1678:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "no-post-rewrite", &no_post_rewrite, N_("bypass post-rewrite hook")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:1681:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_PATHSPEC_FILE_NUL(&pathspec_file_nul),
                ^
/datasets/git/./parse-options.h:391:35: note: expanded from macro 'OPT_PATHSPEC_FILE_NUL'
#define OPT_PATHSPEC_FILE_NUL(v)  OPT_BOOL(0, "pathspec-file-nul", v, N_("with --pathspec-from-file, pathspec elements are separated with NUL character"))
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:1684:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_HIDDEN_BOOL(0, "allow-empty", &allow_empty,
                ^
/datasets/git/./parse-options.h:185:16: note: expanded from macro 'OPT_HIDDEN_BOOL'
                                      (h), PARSE_OPT_NOARG | PARSE_OPT_HIDDEN, NULL, 1}
                                           ^~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:1686:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_HIDDEN_BOOL(0, "allow-empty-message", &allow_empty_message,
                ^
/datasets/git/./parse-options.h:185:16: note: expanded from macro 'OPT_HIDDEN_BOOL'
                                      (h), PARSE_OPT_NOARG | PARSE_OPT_HIDDEN, NULL, 1}
                                           ^~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:1692:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/commit.c:1694:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *index_file, *reflog_msg;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:1694:14: warning: variable 'index_file' is not initialized [cppcoreguidelines-init-variables]
        const char *index_file, *reflog_msg;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/commit.c:1694:27: warning: variable 'reflog_msg' is not initialized [cppcoreguidelines-init-variables]
        const char *index_file, *reflog_msg;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/commit.c:1703:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc == 2 && !strcmp(argv[1], "-h"))
                                                ^
                                                 {
/datasets/git/builtin/commit.c:1714:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid("HEAD", &oid))
                                  ^
                                   {
/datasets/git/builtin/commit.c:1718:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (parse_commit(current_head))
                                               ^
                                                {
/datasets/git/builtin/commit.c:1722:2: warning: Value stored to 'argc' is never read [clang-analyzer-deadcode.DeadStores]
        argc = parse_and_validate_options(argc, argv, builtin_commit_options,
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:1722:2: note: Value stored to 'argc' is never read
        argc = parse_and_validate_options(argc, argv, builtin_commit_options,
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:1725:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (verbose == -1)
                          ^
                           {
/datasets/git/builtin/commit.c:1728:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (dry_run)
                    ^
                     {
/datasets/git/builtin/commit.c:1742:15: warning: function is not thread safe [concurrency-mt-unsafe]
        reflog_msg = getenv("GIT_REFLOG_ACTION");
                     ^
/datasets/git/builtin/commit.c:1744:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!reflog_msg)
                                ^
                                 {
/datasets/git/builtin/commit.c:1747:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!reflog_msg)
                                ^
                                 {
/datasets/git/builtin/commit.c:1751:17: warning: variable name 'm' is too short, expected at least 3 characters [readability-identifier-length]
                struct strbuf m = STRBUF_INIT;
                              ^
/datasets/git/builtin/commit.c:1752:9: warning: variable 'fp' is not initialized [cppcoreguidelines-init-variables]
                FILE *fp;
                      ^
                         = NULL
/datasets/git/builtin/commit.c:1752:9: warning: variable name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/commit.c:1756:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!reflog_msg)
                                ^
                                 {
/datasets/git/builtin/commit.c:1760:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (strbuf_getline_lf(&m, fp) != EOF) {
                ^
/datasets/git/builtin/commit.c:1760:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'm' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (strbuf_getline_lf(&m, fp) != EOF) {
                       ^
/datasets/git/builtin/commit.c:1761:19: warning: variable 'parent' is not initialized [cppcoreguidelines-init-variables]
                        struct commit *parent;
                                       ^
                                              = NULL
/datasets/git/builtin/commit.c:1764:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!parent)
                                    ^
                                     {
/datasets/git/builtin/commit.c:1768:3: warning: the value returned by this function should be used [cert-err33-c]
                fclose(fp);
                ^~~~~~~~~~
/datasets/git/builtin/commit.c:1768:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/commit.c:1771:74: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (strbuf_read_file(&sb, git_path_merge_mode(the_repository), 0) < 0)
                                                                                              ^
                                                                                               {
/datasets/git/builtin/commit.c:1773:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!strcmp(sb.buf, "no-ff"))
                                                     ^
                                                      {
/datasets/git/builtin/commit.c:1776:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (allow_fast_forward)
                                       ^
                                        {
/datasets/git/builtin/commit.c:1779:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!reflog_msg)
                                ^
                                 {
/datasets/git/builtin/commit.c:1793:47: warning: function is not thread safe [concurrency-mt-unsafe]
                die(_("could not read commit message: %s"), strerror(saved_errno));
                                                            ^
/datasets/git/builtin/commit.c:1800:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, _("Aborting commit due to empty commit message.\n"));
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:1800:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/commit.c:1801:3: warning: function is not thread safe [concurrency-mt-unsafe]
                exit(1);
                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/commit.c:1805:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, _("Aborting commit; you did not edit the message.\n"));
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:1805:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/commit.c:1806:3: warning: function is not thread safe [concurrency-mt-unsafe]
                exit(1);
                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/commit.c:1816:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, _("Aborting commit due to empty commit message body.\n"));
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/commit.c:1816:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/commit.c:1817:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        exit(1);
                        ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/commit.c:1850:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (commit_index_files())
                                 ^
                                  {
/datasets/git/builtin/commit.c:1867:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!current_head)
                                  ^
                                   {
/datasets/git/builtin/commit.c:1868:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        flags |= SUMMARY_INITIAL_COMMIT;
                        ^
/datasets/git/builtin/commit.c:1868:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        flags |= SUMMARY_INITIAL_COMMIT;
                                 ^
/datasets/git/./sequencer.h:226:35: note: expanded from macro 'SUMMARY_INITIAL_COMMIT'
#define SUMMARY_INITIAL_COMMIT   (1 << 0)
                                  ^
/datasets/git/builtin/commit.c:1869:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (author_date_is_interesting())
                                                 ^
                                                  {
/datasets/git/builtin/commit.c:1870:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        flags |= SUMMARY_SHOW_AUTHOR_DATE;
                        ^
/datasets/git/builtin/commit.c:1870:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        flags |= SUMMARY_SHOW_AUTHOR_DATE;
                                 ^
/datasets/git/./sequencer.h:227:35: note: expanded from macro 'SUMMARY_SHOW_AUTHOR_DATE'
#define SUMMARY_SHOW_AUTHOR_DATE (1 << 1)
                                  ^
/datasets/git/builtin/commit.c:1878:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        UNLEAK(author_ident);
        ^
/datasets/git/./git-compat-util.h:1544:21: note: expanded from macro 'UNLEAK'
#define UNLEAK(var) do {} while (0)
                    ^
/datasets/git/builtin/commit.c:1879:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        UNLEAK(err);
        ^
/datasets/git/./git-compat-util.h:1544:21: note: expanded from macro 'UNLEAK'
#define UNLEAK(var) do {} while (0)
                    ^
/datasets/git/builtin/commit.c:1880:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        UNLEAK(sb);
        ^
/datasets/git/./git-compat-util.h:1544:21: note: expanded from macro 'UNLEAK'
#define UNLEAK(var) do {} while (0)
                    ^
/datasets/git/builtin/config.c:3:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "color.h"
/datasets/git/builtin/config.c:15:14: warning: variable 'key' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *key;
             ^
/datasets/git/builtin/config.c:15:14: warning: variable 'key' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/config.c:16:17: warning: variable 'key_regexp' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static regex_t *key_regexp;
                ^
/datasets/git/builtin/config.c:16:17: warning: variable 'key_regexp' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/config.c:17:20: warning: variable 'value_pattern' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *value_pattern;
                   ^
/datasets/git/builtin/config.c:18:17: warning: variable 'regexp' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static regex_t *regexp;
                ^
/datasets/git/builtin/config.c:18:17: warning: variable 'regexp' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/config.c:19:12: warning: variable 'show_keys' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int show_keys;
           ^
/datasets/git/builtin/config.c:20:12: warning: variable 'omit_values' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int omit_values;
           ^
/datasets/git/builtin/config.c:21:12: warning: variable 'use_key_regexp' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int use_key_regexp;
           ^
/datasets/git/builtin/config.c:22:12: warning: variable 'do_all' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int do_all;
           ^
/datasets/git/builtin/config.c:23:12: warning: variable 'do_not_match' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int do_not_match;
           ^
/datasets/git/builtin/config.c:24:13: warning: variable 'delim' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char delim = '=';
            ^
/datasets/git/builtin/config.c:25:13: warning: variable 'key_delim' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char key_delim = ' ';
            ^
/datasets/git/builtin/config.c:26:13: warning: variable 'term' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char term = '\n';
            ^
/datasets/git/builtin/config.c:28:12: warning: variable 'use_global_config' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int use_global_config, use_system_config, use_local_config;
           ^
/datasets/git/builtin/config.c:28:31: warning: variable 'use_system_config' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int use_global_config, use_system_config, use_local_config;
                              ^
/datasets/git/builtin/config.c:28:50: warning: variable 'use_local_config' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int use_global_config, use_system_config, use_local_config;
                                                 ^
/datasets/git/builtin/config.c:29:12: warning: variable 'use_worktree_config' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int use_worktree_config;
           ^
/datasets/git/builtin/config.c:30:33: warning: variable 'given_config_source' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct git_config_source given_config_source;
                                ^
/datasets/git/builtin/config.c:31:12: warning: variable 'actions' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int actions, type;
           ^
/datasets/git/builtin/config.c:31:21: warning: variable 'type' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int actions, type;
                    ^
/datasets/git/builtin/config.c:32:14: warning: variable 'default_value' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *default_value;
             ^
/datasets/git/builtin/config.c:32:14: warning: variable 'default_value' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/config.c:33:12: warning: variable 'end_nul' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int end_nul;
           ^
/datasets/git/builtin/config.c:34:12: warning: variable 'respect_includes_opt' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int respect_includes_opt = -1;
           ^
/datasets/git/builtin/config.c:35:30: warning: variable 'config_options' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct config_options config_options;
                             ^
/datasets/git/builtin/config.c:36:12: warning: variable 'show_origin' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int show_origin;
           ^
/datasets/git/builtin/config.c:37:12: warning: variable 'show_scope' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int show_scope;
           ^
/datasets/git/builtin/config.c:38:12: warning: variable 'fixed_value' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int fixed_value;
           ^
/datasets/git/builtin/config.c:40:1: warning: replace macro with enum [modernize-macro-to-enum]
#define ACTION_GET (1<<0)
^~~~~~~~
                   =     ,
/datasets/git/builtin/config.c:40:9: warning: macro 'ACTION_GET' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define ACTION_GET (1<<0)
        ^
/datasets/git/builtin/config.c:41:9: warning: macro 'ACTION_GET_ALL' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define ACTION_GET_ALL (1<<1)
        ^
/datasets/git/builtin/config.c:42:9: warning: macro 'ACTION_GET_REGEXP' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define ACTION_GET_REGEXP (1<<2)
        ^
/datasets/git/builtin/config.c:43:9: warning: macro 'ACTION_REPLACE_ALL' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define ACTION_REPLACE_ALL (1<<3)
        ^
/datasets/git/builtin/config.c:44:9: warning: macro 'ACTION_ADD' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define ACTION_ADD (1<<4)
        ^
/datasets/git/builtin/config.c:45:9: warning: macro 'ACTION_UNSET' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define ACTION_UNSET (1<<5)
        ^
/datasets/git/builtin/config.c:46:9: warning: macro 'ACTION_UNSET_ALL' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define ACTION_UNSET_ALL (1<<6)
        ^
/datasets/git/builtin/config.c:47:9: warning: macro 'ACTION_RENAME_SECTION' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define ACTION_RENAME_SECTION (1<<7)
        ^
/datasets/git/builtin/config.c:48:9: warning: macro 'ACTION_REMOVE_SECTION' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define ACTION_REMOVE_SECTION (1<<8)
        ^
/datasets/git/builtin/config.c:49:9: warning: macro 'ACTION_LIST' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define ACTION_LIST (1<<9)
        ^
/datasets/git/builtin/config.c:50:9: warning: macro 'ACTION_EDIT' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define ACTION_EDIT (1<<10)
        ^
/datasets/git/builtin/config.c:51:9: warning: macro 'ACTION_SET' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define ACTION_SET (1<<11)
        ^
/datasets/git/builtin/config.c:52:9: warning: macro 'ACTION_SET_ALL' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define ACTION_SET_ALL (1<<12)
        ^
/datasets/git/builtin/config.c:53:9: warning: macro 'ACTION_GET_COLOR' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define ACTION_GET_COLOR (1<<13)
        ^
/datasets/git/builtin/config.c:54:9: warning: macro 'ACTION_GET_COLORBOOL' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define ACTION_GET_COLORBOOL (1<<14)
        ^
/datasets/git/builtin/config.c:55:9: warning: macro 'ACTION_GET_URLMATCH' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define ACTION_GET_URLMATCH (1<<15)
        ^
/datasets/git/builtin/config.c:64:1: warning: replace macro with enum [modernize-macro-to-enum]
#define TYPE_BOOL               1
^~~~~~~~
                  =              ,
/datasets/git/builtin/config.c:64:9: warning: macro 'TYPE_BOOL' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define TYPE_BOOL               1
        ^
/datasets/git/builtin/config.c:65:9: warning: macro 'TYPE_INT' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define TYPE_INT                2
        ^
/datasets/git/builtin/config.c:66:9: warning: macro 'TYPE_BOOL_OR_INT' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define TYPE_BOOL_OR_INT        3
        ^
/datasets/git/builtin/config.c:67:9: warning: macro 'TYPE_PATH' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define TYPE_PATH               4
        ^
/datasets/git/builtin/config.c:68:9: warning: macro 'TYPE_EXPIRY_DATE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define TYPE_EXPIRY_DATE        5
        ^
/datasets/git/builtin/config.c:69:9: warning: macro 'TYPE_COLOR' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define TYPE_COLOR              6
        ^
/datasets/git/builtin/config.c:70:9: warning: macro 'TYPE_BOOL_OR_STR' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define TYPE_BOOL_OR_STR        7
        ^
/datasets/git/builtin/config.c:81:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int new_type, *to_type;
        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:81:6: warning: variable 'new_type' is not initialized [cppcoreguidelines-init-variables]
        int new_type, *to_type;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/config.c:81:17: warning: variable 'to_type' is not initialized [cppcoreguidelines-init-variables]
        int new_type, *to_type;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/config.c:92:13: warning: narrowing conversion from 'intptr_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        new_type = opt->defval;
                   ^
/datasets/git/builtin/config.c:94:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(arg, "bool"))
                                         ^
                                          {
/datasets/git/builtin/config.c:96:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(arg, "int"))
                                             ^
                                              {
/datasets/git/builtin/config.c:98:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(arg, "bool-or-int"))
                                                     ^
                                                      {
/datasets/git/builtin/config.c:100:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(arg, "bool-or-str"))
                                                     ^
                                                      {
/datasets/git/builtin/config.c:102:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(arg, "path"))
                                              ^
                                               {
/datasets/git/builtin/config.c:104:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(arg, "expiry-date"))
                                                     ^
                                                      {
/datasets/git/builtin/config.c:106:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(arg, "color"))
                                               ^
                                                {
/datasets/git/builtin/config.c:108:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/config.c:129:22: warning: variable 'builtin_config_options' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct option builtin_config_options[] = {
                     ^
/datasets/git/builtin/config.c:131:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "global", &use_global_config, N_("use global config file")),
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:132:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "system", &use_system_config, N_("use system config file")),
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:133:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "local", &use_local_config, N_("use repository config file")),
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:134:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "worktree", &use_worktree_config, N_("use per-worktree config file")),
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:138:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BIT(0, "get", &actions, N_("get value: name [value-pattern]"), ACTION_GET),
        ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:138:69: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BIT(0, "get", &actions, N_("get value: name [value-pattern]"), ACTION_GET),
                                                                           ^
/datasets/git/builtin/config.c:40:21: note: expanded from macro 'ACTION_GET'
#define ACTION_GET (1<<0)
                    ^
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/config.c:139:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BIT(0, "get-all", &actions, N_("get all values: key [value-pattern]"), ACTION_GET_ALL),
        ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:139:77: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BIT(0, "get-all", &actions, N_("get all values: key [value-pattern]"), ACTION_GET_ALL),
                                                                                   ^
/datasets/git/builtin/config.c:41:25: note: expanded from macro 'ACTION_GET_ALL'
#define ACTION_GET_ALL (1<<1)
                        ^
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/config.c:140:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BIT(0, "get-regexp", &actions, N_("get values for regexp: name-regex [value-pattern]"), ACTION_GET_REGEXP),
        ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:140:94: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BIT(0, "get-regexp", &actions, N_("get values for regexp: name-regex [value-pattern]"), ACTION_GET_REGEXP),
                                                                                                    ^
/datasets/git/builtin/config.c:42:28: note: expanded from macro 'ACTION_GET_REGEXP'
#define ACTION_GET_REGEXP (1<<2)
                           ^
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/config.c:141:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BIT(0, "get-urlmatch", &actions, N_("get value specific for the URL: section[.var] URL"), ACTION_GET_URLMATCH),
        ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:141:96: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BIT(0, "get-urlmatch", &actions, N_("get value specific for the URL: section[.var] URL"), ACTION_GET_URLMATCH),
                                                                                                      ^
/datasets/git/builtin/config.c:55:30: note: expanded from macro 'ACTION_GET_URLMATCH'
#define ACTION_GET_URLMATCH (1<<15)
                             ^
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/config.c:142:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BIT(0, "replace-all", &actions, N_("replace all matching variables: name value [value-pattern]"), ACTION_REPLACE_ALL),
        ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:142:104: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BIT(0, "replace-all", &actions, N_("replace all matching variables: name value [value-pattern]"), ACTION_REPLACE_ALL),
                                                                                                              ^
/datasets/git/builtin/config.c:43:29: note: expanded from macro 'ACTION_REPLACE_ALL'
#define ACTION_REPLACE_ALL (1<<3)
                            ^
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/config.c:143:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BIT(0, "add", &actions, N_("add a new variable: name value"), ACTION_ADD),
        ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:143:68: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BIT(0, "add", &actions, N_("add a new variable: name value"), ACTION_ADD),
                                                                          ^
/datasets/git/builtin/config.c:44:21: note: expanded from macro 'ACTION_ADD'
#define ACTION_ADD (1<<4)
                    ^
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/config.c:144:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BIT(0, "unset", &actions, N_("remove a variable: name [value-pattern]"), ACTION_UNSET),
        ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:144:79: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BIT(0, "unset", &actions, N_("remove a variable: name [value-pattern]"), ACTION_UNSET),
                                                                                     ^
/datasets/git/builtin/config.c:45:23: note: expanded from macro 'ACTION_UNSET'
#define ACTION_UNSET (1<<5)
                      ^
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/config.c:145:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BIT(0, "unset-all", &actions, N_("remove all matches: name [value-pattern]"), ACTION_UNSET_ALL),
        ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:145:84: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BIT(0, "unset-all", &actions, N_("remove all matches: name [value-pattern]"), ACTION_UNSET_ALL),
                                                                                          ^
/datasets/git/builtin/config.c:46:27: note: expanded from macro 'ACTION_UNSET_ALL'
#define ACTION_UNSET_ALL (1<<6)
                          ^
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/config.c:146:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BIT(0, "rename-section", &actions, N_("rename section: old-name new-name"), ACTION_RENAME_SECTION),
        ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:146:82: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BIT(0, "rename-section", &actions, N_("rename section: old-name new-name"), ACTION_RENAME_SECTION),
                                                                                        ^
/datasets/git/builtin/config.c:47:32: note: expanded from macro 'ACTION_RENAME_SECTION'
#define ACTION_RENAME_SECTION (1<<7)
                               ^
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/config.c:147:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BIT(0, "remove-section", &actions, N_("remove a section: name"), ACTION_REMOVE_SECTION),
        ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:147:71: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BIT(0, "remove-section", &actions, N_("remove a section: name"), ACTION_REMOVE_SECTION),
                                                                             ^
/datasets/git/builtin/config.c:48:32: note: expanded from macro 'ACTION_REMOVE_SECTION'
#define ACTION_REMOVE_SECTION (1<<8)
                               ^
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/config.c:148:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BIT('l', "list", &actions, N_("list all"), ACTION_LIST),
        ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:148:49: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BIT('l', "list", &actions, N_("list all"), ACTION_LIST),
                                                       ^
/datasets/git/builtin/config.c:49:22: note: expanded from macro 'ACTION_LIST'
#define ACTION_LIST (1<<9)
                     ^
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/config.c:149:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "fixed-value", &fixed_value, N_("use string equality when comparing values to 'value-pattern'")),
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:150:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BIT('e', "edit", &actions, N_("open an editor"), ACTION_EDIT),
        ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:150:55: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BIT('e', "edit", &actions, N_("open an editor"), ACTION_EDIT),
                                                             ^
/datasets/git/builtin/config.c:50:22: note: expanded from macro 'ACTION_EDIT'
#define ACTION_EDIT (1<<10)
                     ^
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/config.c:151:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BIT(0, "get-color", &actions, N_("find the color configured: slot [default]"), ACTION_GET_COLOR),
        ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:151:85: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BIT(0, "get-color", &actions, N_("find the color configured: slot [default]"), ACTION_GET_COLOR),
                                                                                           ^
/datasets/git/builtin/config.c:53:27: note: expanded from macro 'ACTION_GET_COLOR'
#define ACTION_GET_COLOR (1<<13)
                          ^
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/config.c:152:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BIT(0, "get-colorbool", &actions, N_("find the color setting: slot [stdout-is-tty]"), ACTION_GET_COLORBOOL),
        ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:152:92: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BIT(0, "get-colorbool", &actions, N_("find the color setting: slot [stdout-is-tty]"), ACTION_GET_COLORBOOL),
                                                                                                  ^
/datasets/git/builtin/config.c:54:31: note: expanded from macro 'ACTION_GET_COLORBOOL'
#define ACTION_GET_COLORBOOL (1<<14)
                              ^
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/config.c:155:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_CALLBACK_VALUE(0, "bool", &type, N_("value is \"true\" or \"false\""), TYPE_BOOL),
        ^
/datasets/git/builtin/config.c:73:47: note: expanded from macro 'OPT_CALLBACK_VALUE'
        { OPTION_CALLBACK, (s), (l), (v), NULL, (h), PARSE_OPT_NOARG | \
                                                     ^~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:156:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_CALLBACK_VALUE(0, "int", &type, N_("value is decimal number"), TYPE_INT),
        ^
/datasets/git/builtin/config.c:73:47: note: expanded from macro 'OPT_CALLBACK_VALUE'
        { OPTION_CALLBACK, (s), (l), (v), NULL, (h), PARSE_OPT_NOARG | \
                                                     ^~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:157:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_CALLBACK_VALUE(0, "bool-or-int", &type, N_("value is --bool or --int"), TYPE_BOOL_OR_INT),
        ^
/datasets/git/builtin/config.c:73:47: note: expanded from macro 'OPT_CALLBACK_VALUE'
        { OPTION_CALLBACK, (s), (l), (v), NULL, (h), PARSE_OPT_NOARG | \
                                                     ^~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:158:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_CALLBACK_VALUE(0, "bool-or-str", &type, N_("value is --bool or string"), TYPE_BOOL_OR_STR),
        ^
/datasets/git/builtin/config.c:73:47: note: expanded from macro 'OPT_CALLBACK_VALUE'
        { OPTION_CALLBACK, (s), (l), (v), NULL, (h), PARSE_OPT_NOARG | \
                                                     ^~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:159:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_CALLBACK_VALUE(0, "path", &type, N_("value is a path (file or directory name)"), TYPE_PATH),
        ^
/datasets/git/builtin/config.c:73:47: note: expanded from macro 'OPT_CALLBACK_VALUE'
        { OPTION_CALLBACK, (s), (l), (v), NULL, (h), PARSE_OPT_NOARG | \
                                                     ^~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:160:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_CALLBACK_VALUE(0, "expiry-date", &type, N_("value is an expiry date"), TYPE_EXPIRY_DATE),
        ^
/datasets/git/builtin/config.c:73:47: note: expanded from macro 'OPT_CALLBACK_VALUE'
        { OPTION_CALLBACK, (s), (l), (v), NULL, (h), PARSE_OPT_NOARG | \
                                                     ^~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:162:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL('z', "null", &end_nul, N_("terminate values with NUL byte")),
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:163:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "name-only", &omit_values, N_("show variable names only")),
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:164:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "includes", &respect_includes_opt, N_("respect include directives on lookup")),
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:165:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "show-origin", &show_origin, N_("show origin of config (file, standard input, blob, command line)")),
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:166:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "show-scope", &show_scope, N_("show scope of config (worktree, local, global, system, command)")),
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:178:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc >= min && argc <= max)
                                       ^
                                        {
/datasets/git/builtin/config.c:180:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (min == max)
                       ^
                        {
/datasets/git/builtin/config.c:182:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/config.c:194:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (end_nul)
                    ^
                     {
/datasets/git/builtin/config.c:196:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/config.c:211:13: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
                           void *cb UNUSED)
                                 ^
/datasets/git/builtin/config.c:215:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (show_scope)
                               ^
                                {
/datasets/git/builtin/config.c:217:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (show_origin)
                                ^
                                 {
/datasets/git/builtin/config.c:220:3: warning: the value returned by this function should be used [cert-err33-c]
                fwrite(buf.buf, 1, buf.len, stdout);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:220:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/config.c:223:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!omit_values && value_)
                                   ^
                                    {
/datasets/git/builtin/config.c:225:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/config.c:230:8: warning: accessing fields in struct 'strbuf_list' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct strbuf_list {
       ^
/datasets/git/builtin/config.c:230:8: note: use "__attribute__((aligned(16)))" to align struct 'strbuf_list' to 16 bytes
/datasets/git/builtin/config.c:236:12: warning: function 'format_config' has cognitive complexity of 50 (threshold 25) [readability-function-cognitive-complexity]
static int format_config(struct strbuf *buf, const char *key_, const char *value_)
           ^
/datasets/git/builtin/config.c:238:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (show_scope)
        ^
/datasets/git/builtin/config.c:240:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (show_origin)
        ^
/datasets/git/builtin/config.c:242:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (show_keys)
        ^
/datasets/git/builtin/config.c:244:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!omit_values) {
        ^
/datasets/git/builtin/config.c:245:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (show_keys)
                ^
/datasets/git/builtin/config.c:248:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (type == TYPE_INT)
                ^
/datasets/git/builtin/config.c:250:39: note: +3, including nesting penalty of 2, nesting level increased to 3
                                    git_config_int64(key_, value_ ? value_ : ""));
                                                                  ^
/datasets/git/builtin/config.c:251:8: note: +1, nesting level increased to 2
                else if (type == TYPE_BOOL)
                     ^
/datasets/git/builtin/config.c:252:53: note: +3, including nesting penalty of 2, nesting level increased to 3
                        strbuf_addstr(buf, git_config_bool(key_, value_) ?
                                                                         ^
/datasets/git/builtin/config.c:254:8: note: +1, nesting level increased to 2
                else if (type == TYPE_BOOL_OR_INT) {
                     ^
/datasets/git/builtin/config.c:257:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (is_bool)
                        ^
/datasets/git/builtin/config.c:258:26: note: +4, including nesting penalty of 3, nesting level increased to 4
                                strbuf_addstr(buf, v ? "true" : "false");
                                                     ^
/datasets/git/builtin/config.c:259:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/builtin/config.c:261:10: note: +1, nesting level increased to 2
                } else if (type == TYPE_BOOL_OR_STR) {
                       ^
/datasets/git/builtin/config.c:263:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (v < 0)
                        ^
/datasets/git/builtin/config.c:265:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/builtin/config.c:266:26: note: +4, including nesting penalty of 3, nesting level increased to 4
                                strbuf_addstr(buf, v ? "true" : "false");
                                                     ^
/datasets/git/builtin/config.c:267:10: note: +1, nesting level increased to 2
                } else if (type == TYPE_PATH) {
                       ^
/datasets/git/builtin/config.c:269:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (git_config_pathname(&v, key_, value_) < 0)
                        ^
/datasets/git/builtin/config.c:273:10: note: +1, nesting level increased to 2
                } else if (type == TYPE_EXPIRY_DATE) {
                       ^
/datasets/git/builtin/config.c:275:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (git_config_expiry_date(&t, key_, value_) < 0)
                        ^
/datasets/git/builtin/config.c:278:10: note: +1, nesting level increased to 2
                } else if (type == TYPE_COLOR) {
                       ^
/datasets/git/builtin/config.c:280:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (git_config_color(v, key_, value_) < 0)
                        ^
/datasets/git/builtin/config.c:283:10: note: +1, nesting level increased to 2
                } else if (value_) {
                       ^
/datasets/git/builtin/config.c:285:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/config.c:287:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (show_keys)
                        ^
/datasets/git/builtin/config.c:238:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (show_scope)
                       ^
                        {
/datasets/git/builtin/config.c:240:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (show_origin)
                        ^
                         {
/datasets/git/builtin/config.c:242:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (show_keys)
                      ^
                       {
/datasets/git/builtin/config.c:245:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (show_keys)
                              ^
                               {
/datasets/git/builtin/config.c:248:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (type == TYPE_INT)
                                     ^
                                      {
/datasets/git/builtin/config.c:251:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (type == TYPE_BOOL)
                                           ^
                                            {
/datasets/git/builtin/config.c:255:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        int is_bool, v;
                        ^~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:255:8: warning: variable 'is_bool' is not initialized [cppcoreguidelines-init-variables]
                        int is_bool, v;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/config.c:255:17: warning: variable 'v' is not initialized [cppcoreguidelines-init-variables]
                        int is_bool, v;
                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/config.c:255:17: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/config.c:257:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (is_bool)
                                    ^
                                     {
/datasets/git/builtin/config.c:259:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/builtin/config.c:262:8: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
                        int v = git_parse_maybe_bool(value_);
                            ^
/datasets/git/builtin/config.c:263:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (v < 0)
                                  ^
                                   {
/datasets/git/builtin/config.c:265:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/builtin/config.c:268:16: warning: variable 'v' is not initialized [cppcoreguidelines-init-variables]
                        const char *v;
                                    ^
                                      = NULL
/datasets/git/builtin/config.c:268:16: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/config.c:269:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (git_config_pathname(&v, key_, value_) < 0)
                                                                      ^
                                                                       {
/datasets/git/builtin/config.c:274:16: warning: variable 't' is not initialized [cppcoreguidelines-init-variables]
                        timestamp_t t;
                                    ^
                                      = 0
/datasets/git/builtin/config.c:274:16: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/config.c:275:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (git_config_expiry_date(&t, key_, value_) < 0)
                                                                         ^
                                                                          {
/datasets/git/builtin/config.c:279:9: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
                        char v[COLOR_MAXLEN];
                             ^
/datasets/git/builtin/config.c:280:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (git_config_color(v, key_, value_) < 0)
                                                                  ^
                                                                   {
/datasets/git/builtin/config.c:287:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (show_keys)
                                      ^
                                       {
/datasets/git/builtin/config.c:295:71: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int collect_config(const char *key_, const char *value_, void *cb)
                                                                      ^
/datasets/git/builtin/config.c:299:25: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (!use_key_regexp && strcmp(key_, key))
                               ^
                                                 != 0
/datasets/git/builtin/config.c:299:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!use_key_regexp && strcmp(key_, key))
                                                 ^
                                                  {
/datasets/git/builtin/config.c:301:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (use_key_regexp && regexec(key_regexp, key_, 0, NULL, 0))
                                                                    ^
                                                                     {
/datasets/git/builtin/config.c:303:21: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (fixed_value && strcmp(value_pattern, (value_?value_:"")))
                           ^
                                                                     != 0
/datasets/git/builtin/config.c:303:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fixed_value && strcmp(value_pattern, (value_?value_:"")))
                                                                     ^
                                                                      {
/datasets/git/builtin/config.c:306:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            (do_not_match ^ !!regexec(regexp, (value_?value_:""), 0, NULL, 0)))
             ^~~~~~~~~~~~
/datasets/git/builtin/config.c:306:73: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            (do_not_match ^ !!regexec(regexp, (value_?value_:""), 0, NULL, 0)))
                                                                               ^
                                                                                {
/datasets/git/builtin/config.c:309:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(values->items, values->nr + 1, values->alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/builtin/config.c:315:12: warning: function 'get_value' has cognitive complexity of 48 (threshold 25) [readability-function-cognitive-complexity]
static int get_value(const char *key_, const char *regex_, unsigned flags)
           ^
/datasets/git/builtin/config.c:321:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (use_key_regexp) {
        ^
/datasets/git/builtin/config.c:331:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (tl = key + strlen(key) - 1;
                ^
/datasets/git/builtin/config.c:332:18: note: +1
                     tl >= key && *tl != '.';
                               ^
/datasets/git/builtin/config.c:335:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (tl = key; *tl && *tl != '.'; tl++)
                ^
/datasets/git/builtin/config.c:335:22: note: +1
                for (tl = key; *tl && *tl != '.'; tl++)
                                   ^
/datasets/git/builtin/config.c:339:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (regcomp(key_regexp, key, REG_EXTENDED)) {
                ^
/datasets/git/builtin/config.c:341:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        FREE_AND_NULL(key_regexp);
                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/config.c:343:4: note: +1
                        goto free_strings;
                        ^
/datasets/git/builtin/config.c:345:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/config.c:346:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (git_config_parse_key(key_, &key, NULL)) {
                ^
/datasets/git/builtin/config.c:348:4: note: +1
                        goto free_strings;
                        ^
/datasets/git/builtin/config.c:352:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (regex_ && (flags & CONFIG_FLAGS_FIXED_VALUE))
        ^
/datasets/git/builtin/config.c:352:13: note: +1
        if (regex_ && (flags & CONFIG_FLAGS_FIXED_VALUE))
                   ^
/datasets/git/builtin/config.c:354:7: note: +1, nesting level increased to 1
        else if (regex_) {
             ^
/datasets/git/builtin/config.c:355:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (regex_[0] == '!') {
                ^
/datasets/git/builtin/config.c:361:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (regcomp(regexp, regex_, REG_EXTENDED)) {
                ^
/datasets/git/builtin/config.c:363:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        FREE_AND_NULL(regexp);
                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/config.c:365:4: note: +1
                        goto free_strings;
                        ^
/datasets/git/builtin/config.c:372:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!values.nr && default_value) {
        ^
/datasets/git/builtin/config.c:372:17: note: +1
        if (!values.nr && default_value) {
                       ^
/datasets/git/builtin/config.c:374:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                ALLOC_GROW(values.items, values.nr + 1, values.alloc);
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/builtin/config.c:374:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                ALLOC_GROW(values.items, values.nr + 1, values.alloc);
                ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/builtin/config.c:374:3: note: +4, including nesting penalty of 3, nesting level increased to 4
                ALLOC_GROW(values.items, values.nr + 1, values.alloc);
                ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/builtin/config.c:374:3: note: +1, nesting level increased to 4
                ALLOC_GROW(values.items, values.nr + 1, values.alloc);
                ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/builtin/config.c:377:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (format_config(item, key_, default_value) < 0)
                ^
/datasets/git/builtin/config.c:384:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < values.nr; i++) {
        ^
/datasets/git/builtin/config.c:386:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (do_all || i == values.nr - 1)
                ^
/datasets/git/builtin/config.c:386:14: note: +1
                if (do_all || i == values.nr - 1)
                           ^
/datasets/git/builtin/config.c:394:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (key_regexp) {
        ^
/datasets/git/builtin/config.c:398:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (regexp) {
        ^
/datasets/git/builtin/config.c:315:22: warning: 2 adjacent parameters of 'get_value' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int get_value(const char *key_, const char *regex_, unsigned flags)
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:315:34: note: the first parameter in the range is 'key_'
static int get_value(const char *key_, const char *regex_, unsigned flags)
                                 ^~~~
/datasets/git/builtin/config.c:315:52: note: the last parameter in the range is 'regex_'
static int get_value(const char *key_, const char *regex_, unsigned flags)
                                                   ^~~~~~
/datasets/git/builtin/config.c:319:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/config.c:319:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/config.c:322:9: warning: variable 'tl' is not initialized [cppcoreguidelines-init-variables]
                char *tl;
                      ^
                         = NULL
/datasets/git/builtin/config.c:322:9: warning: variable name 'tl' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/config.c:331:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (tl = key + strlen(key) - 1;
                ^
/datasets/git/builtin/config.c:332:8: warning: backward branch (for loop) is ID-dependent due to variable reference to 'tl' and may cause performance degradation [altera-id-dependent-backward-branch]
                     tl >= key && *tl != '.';
                     ^
/datasets/git/builtin/config.c:333:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                     tl--)
                          ^
                           {
/datasets/git/builtin/config.c:335:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (tl = key; *tl && *tl != '.'; tl++)
                ^
/datasets/git/builtin/config.c:335:18: warning: backward branch (for loop) is ID-dependent due to variable reference to 'tl' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (tl = key; *tl && *tl != '.'; tl++)
                               ^
/datasets/git/builtin/config.c:335:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (tl = key; *tl && *tl != '.'; tl++)
                                                       ^
                                                        {
/datasets/git/builtin/config.c:341:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        FREE_AND_NULL(key_regexp);
                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/config.c:352:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (regex_ && (flags & CONFIG_FLAGS_FIXED_VALUE))
                       ^
/datasets/git/builtin/config.c:352:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (regex_ && (flags & CONFIG_FLAGS_FIXED_VALUE))
                               ^
/datasets/git/./config.h:301:35: note: expanded from macro 'CONFIG_FLAGS_FIXED_VALUE'
#define CONFIG_FLAGS_FIXED_VALUE (1 << 1)
                                  ^
/datasets/git/builtin/config.c:352:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (regex_ && (flags & CONFIG_FLAGS_FIXED_VALUE))
                                                         ^
                                                          {
/datasets/git/builtin/config.c:363:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        FREE_AND_NULL(regexp);
                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/config.c:373:18: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
                struct strbuf *item;
                               ^
                                    = NULL
/datasets/git/builtin/config.c:374:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                ALLOC_GROW(values.items, values.nr + 1, values.alloc);
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/builtin/config.c:377:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (format_config(item, key_, default_value) < 0)
                                                                 ^
                                                                  {
/datasets/git/builtin/config.c:384:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < values.nr; i++) {
        ^
/datasets/git/builtin/config.c:386:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (do_all || i == values.nr - 1)
                                                 ^
                                                  {
/datasets/git/builtin/config.c:387:4: warning: the value returned by this function should be used [cert-err33-c]
                        fwrite(buf->buf, 1, buf->len, stdout);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:387:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/config.c:408:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!value)
                   ^
                    {
/datasets/git/builtin/config.c:411:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (type == 0 || type == TYPE_PATH || type == TYPE_EXPIRY_DATE)
                                                                       ^
                                                                        {
/datasets/git/builtin/config.c:420:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (type == TYPE_INT)
                             ^
                              {
/datasets/git/builtin/config.c:422:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (type == TYPE_BOOL)
                              ^
                               {
/datasets/git/builtin/config.c:425:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int is_bool, v;
                ^~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:425:7: warning: variable 'is_bool' is not initialized [cppcoreguidelines-init-variables]
                int is_bool, v;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/config.c:425:16: warning: variable 'v' is not initialized [cppcoreguidelines-init-variables]
                int is_bool, v;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/config.c:425:16: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/config.c:427:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!is_bool)
                             ^
                              {
/datasets/git/builtin/config.c:429:3: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                else
                ^~~~
                                        return xstrdup(v ? "true" : "false")
/datasets/git/builtin/config.c:429:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/config.c:433:7: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
                int v = git_parse_maybe_bool(value);
                    ^
/datasets/git/builtin/config.c:434:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (v < 0)
                          ^
                           {
/datasets/git/builtin/config.c:436:3: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                else
                ^~~~
                                        return xstrdup(v ? "true" : "false")
/datasets/git/builtin/config.c:436:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/config.c:440:8: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
                char v[COLOR_MAXLEN];
                     ^
/datasets/git/builtin/config.c:441:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (git_config_color(v, key, value))
                                                    ^
                                                     {
/datasets/git/builtin/config.c:457:12: warning: variable 'get_color_found' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int get_color_found;
           ^
/datasets/git/builtin/config.c:458:20: warning: variable 'get_color_slot' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *get_color_slot;
                   ^
/datasets/git/builtin/config.c:459:20: warning: variable 'get_colorbool_slot' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *get_colorbool_slot;
                   ^
/datasets/git/builtin/config.c:460:13: warning: variable 'parsed_color' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char parsed_color[COLOR_MAXLEN];
            ^
/datasets/git/builtin/config.c:462:33: warning: 2 adjacent parameters of 'git_get_color_config' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int git_get_color_config(const char *var, const char *value,
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:462:45: note: the first parameter in the range is 'var'
static int git_get_color_config(const char *var, const char *value,
                                            ^~~
/datasets/git/builtin/config.c:462:62: note: the last parameter in the range is 'value'
static int git_get_color_config(const char *var, const char *value,
                                                             ^~~~~
/datasets/git/builtin/config.c:463:11: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
                                void *cb UNUSED)
                                      ^
/datasets/git/builtin/config.c:466:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
                            {
/datasets/git/builtin/config.c:468:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (color_parse(value, parsed_color) < 0)
                                                         ^
                                                          {
/datasets/git/builtin/config.c:475:23: warning: 2 adjacent parameters of 'get_color' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void get_color(const char *var, const char *def_color)
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:475:35: note: the first parameter in the range is 'var'
static void get_color(const char *var, const char *def_color)
                                  ^~~
/datasets/git/builtin/config.c:475:52: note: the last parameter in the range is 'def_color'
static void get_color(const char *var, const char *def_color)
                                                   ^~~~~~~~~
/datasets/git/builtin/config.c:484:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (color_parse(def_color, parsed_color) < 0)
                                                             ^
                                                              {
/datasets/git/builtin/config.c:488:2: warning: the value returned by this function should be used [cert-err33-c]
        fputs(parsed_color, stdout);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:488:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/config.c:491:12: warning: variable 'get_colorbool_found' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int get_colorbool_found;
           ^
/datasets/git/builtin/config.c:492:12: warning: variable 'get_diff_color_found' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int get_diff_color_found;
           ^
/datasets/git/builtin/config.c:493:12: warning: variable 'get_color_ui_found' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int get_color_ui_found;
           ^
/datasets/git/builtin/config.c:497:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(var, get_colorbool_slot))
                                             ^
                                              {
/datasets/git/builtin/config.c:499:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(var, "diff.color"))
                                            ^
                                             {
/datasets/git/builtin/config.c:501:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(var, "color.ui"))
                                          ^
                                           {
/datasets/git/builtin/config.c:516:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(get_colorbool_slot, "color.diff"))
                                                              ^
                                                               {
/datasets/git/builtin/config.c:518:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (get_colorbool_found < 0)
                                            ^
                                             {
/datasets/git/builtin/config.c:522:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_colorbool_found < 0)
                                    ^
                                     {
/datasets/git/builtin/config.c:531:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else
          ^~~~
                        return get_colorbool_found ? 0 : 1
/datasets/git/builtin/config.c:531:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/config.c:537:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!given_config_source.file && !startup_info->have_repository)
                                                                        ^
                                                                         {
/datasets/git/builtin/config.c:540:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (given_config_source.use_stdin)
                                          ^
                                           {
/datasets/git/builtin/config.c:543:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (given_config_source.blob)
                                     ^
                                      {
/datasets/git/builtin/config.c:547:8: warning: accessing fields in struct 'urlmatch_current_candidate_value' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct urlmatch_current_candidate_value {
       ^
/datasets/git/builtin/config.c:547:8: note: use "__attribute__((aligned(32)))" to align struct 'urlmatch_current_candidate_value' to 32 bytes
/datasets/git/builtin/config.c:552:32: warning: 2 adjacent parameters of 'urlmatch_collect_fn' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int urlmatch_collect_fn(const char *var, const char *value, void *cb)
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:552:44: note: the first parameter in the range is 'var'
static int urlmatch_collect_fn(const char *var, const char *value, void *cb)
                                           ^~~
/datasets/git/builtin/config.c:552:61: note: the last parameter in the range is 'value'
static int urlmatch_collect_fn(const char *var, const char *value, void *cb)
                                                            ^~~~~
/datasets/git/builtin/config.c:552:74: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int urlmatch_collect_fn(const char *var, const char *value, void *cb)
                                                                         ^
/datasets/git/builtin/config.c:575:25: warning: 2 adjacent parameters of 'get_urlmatch' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int get_urlmatch(const char *var, const char *url)
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:575:37: note: the first parameter in the range is 'var'
static int get_urlmatch(const char *var, const char *url)
                                    ^~~
/datasets/git/builtin/config.c:575:54: note: the last parameter in the range is 'url'
static int get_urlmatch(const char *var, const char *url)
                                                     ^~~
/datasets/git/builtin/config.c:577:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/builtin/config.c:578:8: warning: variable 'section_tail' is not initialized [cppcoreguidelines-init-variables]
        char *section_tail;
              ^
                           = NULL
/datasets/git/builtin/config.c:579:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/builtin/config.c:587:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!url_normalize(url, &config.url))
                                             ^
                                              {
/datasets/git/builtin/config.c:606:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(item, &values) {
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/config.c:606:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(item, &values) {
                                  ^
/datasets/git/builtin/config.c:612:3: warning: the value returned by this function should be used [cert-err33-c]
                fwrite(buf.buf, 1, buf.len, stdout);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:612:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/config.c:639:5: warning: function 'cmd_config' has cognitive complexity of 113 (threshold 25) [readability-function-cognitive-complexity]
int cmd_config(int argc, const char **argv, const char *prefix)
    ^
/datasets/git/builtin/config.c:651:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (use_global_config + use_system_config + use_local_config +
        ^
/datasets/git/builtin/config.c:658:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (nongit) {
        ^
/datasets/git/builtin/config.c:659:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (use_local_config)
                ^
/datasets/git/builtin/config.c:661:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (given_config_source.blob)
                ^
/datasets/git/builtin/config.c:663:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (use_worktree_config)
                ^
/datasets/git/builtin/config.c:668:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (given_config_source.file &&
        ^
/datasets/git/builtin/config.c:668:31: note: +1
        if (given_config_source.file &&
                                     ^
/datasets/git/builtin/config.c:675:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (use_global_config) {
        ^
/datasets/git/builtin/config.c:679:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!user_config)
                ^
/datasets/git/builtin/config.c:690:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (access_or_warn(user_config, R_OK, 0) &&
                ^
/datasets/git/builtin/config.c:691:18: note: +1
                    xdg_config && !access_or_warn(xdg_config, R_OK, 0)) {
                               ^
/datasets/git/builtin/config.c:694:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/config.c:699:7: note: +1, nesting level increased to 1
        else if (use_system_config) {
             ^
/datasets/git/builtin/config.c:702:9: note: +1, nesting level increased to 1
        } else if (use_local_config) {
               ^
/datasets/git/builtin/config.c:705:9: note: +1, nesting level increased to 1
        } else if (use_worktree_config) {
               ^
/datasets/git/builtin/config.c:707:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (repository_format_worktree_config)
                ^
/datasets/git/builtin/config.c:709:8: note: +1, nesting level increased to 2
                else if (worktrees[0] && worktrees[1])
                     ^
/datasets/git/builtin/config.c:709:25: note: +1
                else if (worktrees[0] && worktrees[1])
                                      ^
/datasets/git/builtin/config.c:715:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/config.c:719:9: note: +1, nesting level increased to 1
        } else if (given_config_source.file) {
               ^
/datasets/git/builtin/config.c:720:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!is_absolute_path(given_config_source.file) && prefix)
                ^
/datasets/git/builtin/config.c:720:51: note: +1
                if (!is_absolute_path(given_config_source.file) && prefix)
                                                                ^
/datasets/git/builtin/config.c:724:9: note: +1, nesting level increased to 1
        } else if (given_config_source.blob) {
               ^
/datasets/git/builtin/config.c:729:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (respect_includes_opt == -1)
        ^
/datasets/git/builtin/config.c:731:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/builtin/config.c:733:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!nongit) {
        ^
/datasets/git/builtin/config.c:738:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (end_nul) {
        ^
/datasets/git/builtin/config.c:744:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((actions & (ACTION_GET_COLOR|ACTION_GET_COLORBOOL)) && type) {
        ^
/datasets/git/builtin/config.c:744:58: note: +1
        if ((actions & (ACTION_GET_COLOR|ACTION_GET_COLORBOOL)) && type) {
                                                                ^
/datasets/git/builtin/config.c:749:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (HAS_MULTI_BITS(actions)) {
        ^
/datasets/git/builtin/config.c:753:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (actions == 0)
        ^
/datasets/git/builtin/config.c:761:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (omit_values &&
        ^
/datasets/git/builtin/config.c:761:18: note: +1
        if (omit_values &&
                        ^
/datasets/git/builtin/config.c:762:31: note: +1
            !(actions == ACTION_LIST || actions == ACTION_GET_REGEXP)) {
                                     ^
/datasets/git/builtin/config.c:767:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (show_origin && !(actions &
        ^
/datasets/git/builtin/config.c:767:18: note: +1
        if (show_origin && !(actions &
                        ^
/datasets/git/builtin/config.c:774:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (default_value && !(actions & ACTION_GET)) {
        ^
/datasets/git/builtin/config.c:774:20: note: +1
        if (default_value && !(actions & ACTION_GET)) {
                          ^
/datasets/git/builtin/config.c:780:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (fixed_value) {
        ^
/datasets/git/builtin/config.c:783:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                switch (actions) {
                ^
/datasets/git/builtin/config.c:794:29: note: +1
                        allowed_usage = argc > 1 && !!argv[1];
                                                 ^
/datasets/git/builtin/config.c:801:29: note: +1
                        allowed_usage = argc > 2 && !!argv[2];
                                                 ^
/datasets/git/builtin/config.c:807:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!allowed_usage) {
                ^
/datasets/git/builtin/config.c:815:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (actions & PAGING_ACTIONS)
        ^
/datasets/git/builtin/config.c:818:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (actions == ACTION_LIST) {
        ^
/datasets/git/builtin/config.c:820:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (config_with_options(show_all_config, NULL,
                ^
/datasets/git/builtin/config.c:823:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (given_config_source.file)
                        ^
/datasets/git/builtin/config.c:826:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/builtin/config.c:830:7: note: +1, nesting level increased to 1
        else if (actions == ACTION_EDIT) {
             ^
/datasets/git/builtin/config.c:834:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!given_config_source.file && nongit)
                ^
/datasets/git/builtin/config.c:834:33: note: +1
                if (!given_config_source.file && nongit)
                                              ^
/datasets/git/builtin/config.c:836:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (given_config_source.use_stdin)
                ^
/datasets/git/builtin/config.c:838:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (given_config_source.blob)
                ^
/datasets/git/builtin/config.c:841:42: note: +2, including nesting penalty of 1, nesting level increased to 2
                config_file = given_config_source.file ?
                                                       ^
/datasets/git/builtin/config.c:844:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (use_global_config) {
                ^
/datasets/git/builtin/config.c:846:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (fd >= 0) {
                        ^
/datasets/git/builtin/config.c:852:9: note: +1, nesting level increased to 3
                        else if (errno != EEXIST)
                             ^
/datasets/git/builtin/config.c:858:7: note: +1, nesting level increased to 1
        else if (actions == ACTION_SET) {
             ^
/datasets/git/builtin/config.c:863:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                UNLEAK(value);
                ^
/datasets/git/./git-compat-util.h:1544:21: note: expanded from macro 'UNLEAK'
#define UNLEAK(var) do {} while (0)
                    ^
/datasets/git/builtin/config.c:865:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ret == CONFIG_NOTHING_SET)
                ^
/datasets/git/builtin/config.c:870:7: note: +1, nesting level increased to 1
        else if (actions == ACTION_SET_ALL) {
             ^
/datasets/git/builtin/config.c:874:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                UNLEAK(value);
                ^
/datasets/git/./git-compat-util.h:1544:21: note: expanded from macro 'UNLEAK'
#define UNLEAK(var) do {} while (0)
                    ^
/datasets/git/builtin/config.c:879:7: note: +1, nesting level increased to 1
        else if (actions == ACTION_ADD) {
             ^
/datasets/git/builtin/config.c:883:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                UNLEAK(value);
                ^
/datasets/git/./git-compat-util.h:1544:21: note: expanded from macro 'UNLEAK'
#define UNLEAK(var) do {} while (0)
                    ^
/datasets/git/builtin/config.c:889:7: note: +1, nesting level increased to 1
        else if (actions == ACTION_REPLACE_ALL) {
             ^
/datasets/git/builtin/config.c:893:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                UNLEAK(value);
                ^
/datasets/git/./git-compat-util.h:1544:21: note: expanded from macro 'UNLEAK'
#define UNLEAK(var) do {} while (0)
                    ^
/datasets/git/builtin/config.c:898:7: note: +1, nesting level increased to 1
        else if (actions == ACTION_GET) {
             ^
/datasets/git/builtin/config.c:902:7: note: +1, nesting level increased to 1
        else if (actions == ACTION_GET_ALL) {
             ^
/datasets/git/builtin/config.c:907:7: note: +1, nesting level increased to 1
        else if (actions == ACTION_GET_REGEXP) {
             ^
/datasets/git/builtin/config.c:914:7: note: +1, nesting level increased to 1
        else if (actions == ACTION_GET_URLMATCH) {
             ^
/datasets/git/builtin/config.c:918:7: note: +1, nesting level increased to 1
        else if (actions == ACTION_UNSET) {
             ^
/datasets/git/builtin/config.c:921:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (argc == 2)
                ^
/datasets/git/builtin/config.c:925:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/config.c:929:7: note: +1, nesting level increased to 1
        else if (actions == ACTION_UNSET_ALL) {
             ^
/datasets/git/builtin/config.c:936:7: note: +1, nesting level increased to 1
        else if (actions == ACTION_RENAME_SECTION) {
             ^
/datasets/git/builtin/config.c:942:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ret < 0)
                ^
/datasets/git/builtin/config.c:944:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ret == 0)
                ^
/datasets/git/builtin/config.c:947:7: note: +1, nesting level increased to 1
        else if (actions == ACTION_REMOVE_SECTION) {
             ^
/datasets/git/builtin/config.c:953:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ret < 0)
                ^
/datasets/git/builtin/config.c:955:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ret == 0)
                ^
/datasets/git/builtin/config.c:958:7: note: +1, nesting level increased to 1
        else if (actions == ACTION_GET_COLOR) {
             ^
/datasets/git/builtin/config.c:962:7: note: +1, nesting level increased to 1
        else if (actions == ACTION_GET_COLORBOOL) {
             ^
/datasets/git/builtin/config.c:964:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (argc == 2)
                ^
/datasets/git/builtin/config.c:642:8: warning: variable 'value' is not initialized [cppcoreguidelines-init-variables]
        char *value;
              ^
                    = NULL
/datasets/git/builtin/config.c:645:45: warning: function is not thread safe [concurrency-mt-unsafe]
        given_config_source.file = xstrdup_or_null(getenv(CONFIG_ENVIRONMENT));
                                                   ^
/datasets/git/builtin/config.c:659:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (use_local_config)
                                     ^
                                      {
/datasets/git/builtin/config.c:661:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (given_config_source.blob)
                                             ^
                                              {
/datasets/git/builtin/config.c:663:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (use_worktree_config)
                                        ^
                                         {
/datasets/git/builtin/config.c:676:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                char *user_config, *xdg_config;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:676:9: warning: variable 'user_config' is not initialized [cppcoreguidelines-init-variables]
                char *user_config, *xdg_config;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/config.c:676:23: warning: variable 'xdg_config' is not initialized [cppcoreguidelines-init-variables]
                char *user_config, *xdg_config;
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/config.c:679:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!user_config)
                                 ^
                                  {
/datasets/git/builtin/config.c:707:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (repository_format_worktree_config)
                                                      ^
                                                       {
/datasets/git/builtin/config.c:709:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (worktrees[0] && worktrees[1])
                                                      ^
                                                       {
/datasets/git/builtin/config.c:715:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/config.c:720:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!is_absolute_path(given_config_source.file) && prefix)
                                                                          ^
                                                                           {
/datasets/git/builtin/config.c:729:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (respect_includes_opt == -1)
                                       ^
                                        {
/datasets/git/builtin/config.c:731:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/config.c:744:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((actions & (ACTION_GET_COLOR|ACTION_GET_COLORBOOL)) && type) {
             ^~~~~~~
/datasets/git/builtin/config.c:744:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((actions & (ACTION_GET_COLOR|ACTION_GET_COLORBOOL)) && type) {
                        ^
/datasets/git/builtin/config.c:53:26: note: expanded from macro 'ACTION_GET_COLOR'
#define ACTION_GET_COLOR (1<<13)
                         ^~~~~~~
/datasets/git/builtin/config.c:744:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((actions & (ACTION_GET_COLOR|ACTION_GET_COLORBOOL)) && type) {
                                         ^
/datasets/git/builtin/config.c:54:31: note: expanded from macro 'ACTION_GET_COLORBOOL'
#define ACTION_GET_COLORBOOL (1<<14)
                              ^
/datasets/git/builtin/config.c:749:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (HAS_MULTI_BITS(actions)) {
            ^
/datasets/git/./git-compat-util.h:156:29: note: expanded from macro 'HAS_MULTI_BITS'
#define HAS_MULTI_BITS(i)  ((i) & ((i) - 1))  /* checks if an integer has more than 1 bit set */
                            ^~~
/datasets/git/builtin/config.c:753:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (actions == 0)
                         ^
                          {
/datasets/git/builtin/config.c:755:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                case 1: actions = ACTION_GET; break;
                                  ^
/datasets/git/builtin/config.c:40:21: note: expanded from macro 'ACTION_GET'
#define ACTION_GET (1<<0)
                    ^
/datasets/git/builtin/config.c:756:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                case 2: actions = ACTION_SET; break;
                                  ^
/datasets/git/builtin/config.c:51:21: note: expanded from macro 'ACTION_SET'
#define ACTION_SET (1<<11)
                    ^
/datasets/git/builtin/config.c:757:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                case 3: actions = ACTION_SET_ALL; break;
                                  ^
/datasets/git/builtin/config.c:52:25: note: expanded from macro 'ACTION_SET_ALL'
#define ACTION_SET_ALL (1<<12)
                        ^
/datasets/git/builtin/config.c:762:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            !(actions == ACTION_LIST || actions == ACTION_GET_REGEXP)) {
                         ^
/datasets/git/builtin/config.c:49:22: note: expanded from macro 'ACTION_LIST'
#define ACTION_LIST (1<<9)
                     ^
/datasets/git/builtin/config.c:762:45: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            !(actions == ACTION_LIST || actions == ACTION_GET_REGEXP)) {
                                                   ^
/datasets/git/builtin/config.c:42:28: note: expanded from macro 'ACTION_GET_REGEXP'
#define ACTION_GET_REGEXP (1<<2)
                           ^
/datasets/git/builtin/config.c:767:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (show_origin && !(actions &
                             ^~~~~~~
/datasets/git/builtin/config.c:768:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                (ACTION_GET|ACTION_GET_ALL|ACTION_GET_REGEXP|ACTION_LIST))) {
                 ^
/datasets/git/builtin/config.c:40:20: note: expanded from macro 'ACTION_GET'
#define ACTION_GET (1<<0)
                   ^
/datasets/git/builtin/config.c:768:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                (ACTION_GET|ACTION_GET_ALL|ACTION_GET_REGEXP|ACTION_LIST))) {
                            ^
/datasets/git/builtin/config.c:41:25: note: expanded from macro 'ACTION_GET_ALL'
#define ACTION_GET_ALL (1<<1)
                        ^
/datasets/git/builtin/config.c:768:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                (ACTION_GET|ACTION_GET_ALL|ACTION_GET_REGEXP|ACTION_LIST))) {
                                           ^
/datasets/git/builtin/config.c:42:28: note: expanded from macro 'ACTION_GET_REGEXP'
#define ACTION_GET_REGEXP (1<<2)
                           ^
/datasets/git/builtin/config.c:768:48: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                (ACTION_GET|ACTION_GET_ALL|ACTION_GET_REGEXP|ACTION_LIST))) {
                                                             ^
/datasets/git/builtin/config.c:49:22: note: expanded from macro 'ACTION_LIST'
#define ACTION_LIST (1<<9)
                     ^
/datasets/git/builtin/config.c:774:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (default_value && !(actions & ACTION_GET)) {
                               ^~~~~~~
/datasets/git/builtin/config.c:774:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (default_value && !(actions & ACTION_GET)) {
                                         ^
/datasets/git/builtin/config.c:40:21: note: expanded from macro 'ACTION_GET'
#define ACTION_GET (1<<0)
                    ^
/datasets/git/builtin/config.c:783:3: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
                switch (actions) {
                ^
/datasets/git/builtin/config.c:785:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                case ACTION_GET:
                     ^
/datasets/git/builtin/config.c:40:21: note: expanded from macro 'ACTION_GET'
#define ACTION_GET (1<<0)
                    ^
/datasets/git/builtin/config.c:787:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                case ACTION_GET_ALL:
                     ^
/datasets/git/builtin/config.c:41:25: note: expanded from macro 'ACTION_GET_ALL'
#define ACTION_GET_ALL (1<<1)
                        ^
/datasets/git/builtin/config.c:789:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                case ACTION_GET_REGEXP:
                     ^
/datasets/git/builtin/config.c:42:28: note: expanded from macro 'ACTION_GET_REGEXP'
#define ACTION_GET_REGEXP (1<<2)
                           ^
/datasets/git/builtin/config.c:791:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                case ACTION_UNSET:
                     ^
/datasets/git/builtin/config.c:45:23: note: expanded from macro 'ACTION_UNSET'
#define ACTION_UNSET (1<<5)
                      ^
/datasets/git/builtin/config.c:793:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                case ACTION_UNSET_ALL:
                     ^
/datasets/git/builtin/config.c:46:27: note: expanded from macro 'ACTION_UNSET_ALL'
#define ACTION_UNSET_ALL (1<<6)
                          ^
/datasets/git/builtin/config.c:798:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                case ACTION_SET_ALL:
                     ^
/datasets/git/builtin/config.c:52:25: note: expanded from macro 'ACTION_SET_ALL'
#define ACTION_SET_ALL (1<<12)
                        ^
/datasets/git/builtin/config.c:800:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                case ACTION_REPLACE_ALL:
                     ^
/datasets/git/builtin/config.c:43:29: note: expanded from macro 'ACTION_REPLACE_ALL'
#define ACTION_REPLACE_ALL (1<<3)
                            ^
/datasets/git/builtin/config.c:812:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags |= CONFIG_FLAGS_FIXED_VALUE;
                ^~~~~
/datasets/git/builtin/config.c:812:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags |= CONFIG_FLAGS_FIXED_VALUE;
                         ^
/datasets/git/./config.h:301:35: note: expanded from macro 'CONFIG_FLAGS_FIXED_VALUE'
#define CONFIG_FLAGS_FIXED_VALUE (1 << 1)
                                  ^
/datasets/git/builtin/config.c:815:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (actions & PAGING_ACTIONS)
            ^~~~~~~
/datasets/git/builtin/config.c:815:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (actions & PAGING_ACTIONS)
                      ^
/datasets/git/builtin/config.c:61:25: note: expanded from macro 'PAGING_ACTIONS'
#define PAGING_ACTIONS (ACTION_LIST | ACTION_GET_ALL | \
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/config.c:49:21: note: expanded from macro 'ACTION_LIST'
#define ACTION_LIST (1<<9)
                    ^
/datasets/git/builtin/config.c:815:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (actions & PAGING_ACTIONS)
                                     ^
                                      {
/datasets/git/builtin/config.c:818:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (actions == ACTION_LIST) {
                       ^
/datasets/git/builtin/config.c:49:22: note: expanded from macro 'ACTION_LIST'
#define ACTION_LIST (1<<9)
                     ^
/datasets/git/builtin/config.c:823:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (given_config_source.file)
                                                     ^
                                                      {
/datasets/git/builtin/config.c:826:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/builtin/config.c:830:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        else if (actions == ACTION_EDIT) {
                            ^
/datasets/git/builtin/config.c:50:22: note: expanded from macro 'ACTION_EDIT'
#define ACTION_EDIT (1<<10)
                     ^
/datasets/git/builtin/config.c:831:9: warning: variable 'config_file' is not initialized [cppcoreguidelines-init-variables]
                char *config_file;
                      ^
                                  = NULL
/datasets/git/builtin/config.c:834:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!given_config_source.file && nongit)
                                                        ^
                                                         {
/datasets/git/builtin/config.c:836:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (given_config_source.use_stdin)
                                                  ^
                                                   {
/datasets/git/builtin/config.c:838:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (given_config_source.blob)
                                             ^
                                              {
/datasets/git/builtin/config.c:845:8: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
                        int fd = open(config_file, O_CREAT | O_EXCL | O_WRONLY, 0666);
                            ^
/datasets/git/builtin/config.c:845:58: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
                        int fd = open(config_file, O_CREAT | O_EXCL | O_WRONLY, 0666);
                                                                              ^
                                                                               | O_CLOEXEC
/datasets/git/builtin/config.c:845:60: warning: 0666 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        int fd = open(config_file, O_CREAT | O_EXCL | O_WRONLY, 0666);
                                                                                ^
/datasets/git/builtin/config.c:852:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (errno != EEXIST)
                                                 ^
                                                  {
/datasets/git/builtin/config.c:858:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        else if (actions == ACTION_SET) {
                            ^
/datasets/git/builtin/config.c:51:21: note: expanded from macro 'ACTION_SET'
#define ACTION_SET (1<<11)
                    ^
/datasets/git/builtin/config.c:859:7: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
                int ret;
                    ^
                        = 0
/datasets/git/builtin/config.c:863:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                UNLEAK(value);
                ^
/datasets/git/./git-compat-util.h:1544:21: note: expanded from macro 'UNLEAK'
#define UNLEAK(var) do {} while (0)
                    ^
/datasets/git/builtin/config.c:865:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret == CONFIG_NOTHING_SET)
                                              ^
                                               {
/datasets/git/builtin/config.c:870:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        else if (actions == ACTION_SET_ALL) {
                            ^
/datasets/git/builtin/config.c:52:25: note: expanded from macro 'ACTION_SET_ALL'
#define ACTION_SET_ALL (1<<12)
                        ^
/datasets/git/builtin/config.c:874:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                UNLEAK(value);
                ^
/datasets/git/./git-compat-util.h:1544:21: note: expanded from macro 'UNLEAK'
#define UNLEAK(var) do {} while (0)
                    ^
/datasets/git/builtin/config.c:879:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        else if (actions == ACTION_ADD) {
                            ^
/datasets/git/builtin/config.c:44:21: note: expanded from macro 'ACTION_ADD'
#define ACTION_ADD (1<<4)
                    ^
/datasets/git/builtin/config.c:883:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                UNLEAK(value);
                ^
/datasets/git/./git-compat-util.h:1544:21: note: expanded from macro 'UNLEAK'
#define UNLEAK(var) do {} while (0)
                    ^
/datasets/git/builtin/config.c:889:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        else if (actions == ACTION_REPLACE_ALL) {
                            ^
/datasets/git/builtin/config.c:43:29: note: expanded from macro 'ACTION_REPLACE_ALL'
#define ACTION_REPLACE_ALL (1<<3)
                            ^
/datasets/git/builtin/config.c:893:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                UNLEAK(value);
                ^
/datasets/git/./git-compat-util.h:1544:21: note: expanded from macro 'UNLEAK'
#define UNLEAK(var) do {} while (0)
                    ^
/datasets/git/builtin/config.c:896:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                                              flags | CONFIG_FLAGS_MULTI_REPLACE);
                                                              ^~~~~
/datasets/git/builtin/config.c:896:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                                              flags | CONFIG_FLAGS_MULTI_REPLACE);
                                                                      ^
/datasets/git/./config.h:294:37: note: expanded from macro 'CONFIG_FLAGS_MULTI_REPLACE'
#define CONFIG_FLAGS_MULTI_REPLACE (1 << 0)
                                    ^
/datasets/git/builtin/config.c:898:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        else if (actions == ACTION_GET) {
                            ^
/datasets/git/builtin/config.c:40:21: note: expanded from macro 'ACTION_GET'
#define ACTION_GET (1<<0)
                    ^
/datasets/git/builtin/config.c:902:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        else if (actions == ACTION_GET_ALL) {
                            ^
/datasets/git/builtin/config.c:41:25: note: expanded from macro 'ACTION_GET_ALL'
#define ACTION_GET_ALL (1<<1)
                        ^
/datasets/git/builtin/config.c:907:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        else if (actions == ACTION_GET_REGEXP) {
                            ^
/datasets/git/builtin/config.c:42:28: note: expanded from macro 'ACTION_GET_REGEXP'
#define ACTION_GET_REGEXP (1<<2)
                           ^
/datasets/git/builtin/config.c:914:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        else if (actions == ACTION_GET_URLMATCH) {
                            ^
/datasets/git/builtin/config.c:55:30: note: expanded from macro 'ACTION_GET_URLMATCH'
#define ACTION_GET_URLMATCH (1<<15)
                             ^
/datasets/git/builtin/config.c:918:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        else if (actions == ACTION_UNSET) {
                            ^
/datasets/git/builtin/config.c:45:23: note: expanded from macro 'ACTION_UNSET'
#define ACTION_UNSET (1<<5)
                      ^
/datasets/git/builtin/config.c:921:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (argc == 2)
                              ^
                               {
/datasets/git/builtin/config.c:925:3: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                else
                ^~~~
/datasets/git/builtin/config.c:925:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/config.c:929:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        else if (actions == ACTION_UNSET_ALL) {
                            ^
/datasets/git/builtin/config.c:46:27: note: expanded from macro 'ACTION_UNSET_ALL'
#define ACTION_UNSET_ALL (1<<6)
                          ^
/datasets/git/builtin/config.c:934:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                                              flags | CONFIG_FLAGS_MULTI_REPLACE);
                                                              ^~~~~
/datasets/git/builtin/config.c:934:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                                              flags | CONFIG_FLAGS_MULTI_REPLACE);
                                                                      ^
/datasets/git/./config.h:294:37: note: expanded from macro 'CONFIG_FLAGS_MULTI_REPLACE'
#define CONFIG_FLAGS_MULTI_REPLACE (1 << 0)
                                    ^
/datasets/git/builtin/config.c:936:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        else if (actions == ACTION_RENAME_SECTION) {
                            ^
/datasets/git/builtin/config.c:47:32: note: expanded from macro 'ACTION_RENAME_SECTION'
#define ACTION_RENAME_SECTION (1<<7)
                               ^
/datasets/git/builtin/config.c:937:7: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
                int ret;
                    ^
                        = 0
/datasets/git/builtin/config.c:942:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret < 0)
                            ^
                             {
/datasets/git/builtin/config.c:944:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret == 0)
                             ^
                              {
/datasets/git/builtin/config.c:947:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        else if (actions == ACTION_REMOVE_SECTION) {
                            ^
/datasets/git/builtin/config.c:48:32: note: expanded from macro 'ACTION_REMOVE_SECTION'
#define ACTION_REMOVE_SECTION (1<<8)
                               ^
/datasets/git/builtin/config.c:948:7: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
                int ret;
                    ^
                        = 0
/datasets/git/builtin/config.c:953:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret < 0)
                            ^
                             {
/datasets/git/builtin/config.c:955:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret == 0)
                             ^
                              {
/datasets/git/builtin/config.c:958:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        else if (actions == ACTION_GET_COLOR) {
                            ^
/datasets/git/builtin/config.c:53:27: note: expanded from macro 'ACTION_GET_COLOR'
#define ACTION_GET_COLOR (1<<13)
                          ^
/datasets/git/builtin/config.c:962:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        else if (actions == ACTION_GET_COLORBOOL) {
                            ^
/datasets/git/builtin/config.c:54:31: note: expanded from macro 'ACTION_GET_COLORBOOL'
#define ACTION_GET_COLORBOOL (1<<14)
                              ^
/datasets/git/builtin/config.c:964:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (argc == 2)
                              ^
                               {
/datasets/git/builtin/count-objects.c:8:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "builtin.h"
/datasets/git/builtin/count-objects.c:17:22: warning: variable 'garbage' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned long garbage;
                     ^
/datasets/git/builtin/count-objects.c:18:14: warning: variable 'size_garbage' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static off_t size_garbage;
             ^
/datasets/git/builtin/count-objects.c:19:12: warning: variable 'verbose' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int verbose;
           ^
/datasets/git/builtin/count-objects.c:20:22: warning: variable 'loose' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned long loose, packed, packed_loose;
                     ^
/datasets/git/builtin/count-objects.c:20:29: warning: variable 'packed' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned long loose, packed, packed_loose;
                            ^
/datasets/git/builtin/count-objects.c:20:37: warning: variable 'packed_loose' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned long loose, packed, packed_loose;
                                    ^
/datasets/git/builtin/count-objects.c:21:14: warning: variable 'loose_size' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static off_t loose_size;
             ^
/datasets/git/builtin/count-objects.c:34:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        case PACKDIR_FILE_PACK|PACKDIR_FILE_IDX:
             ^
/datasets/git/./packfile.h:49:27: note: expanded from macro 'PACKDIR_FILE_PACK'
#define PACKDIR_FILE_PACK 1
                          ^
/datasets/git/builtin/count-objects.c:42:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/builtin/count-objects.c:45:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!desc)
                  ^
                   {
/datasets/git/builtin/count-objects.c:48:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!stat(path, &st))
                             ^
                              {
/datasets/git/builtin/count-objects.c:56:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (verbose)
                    ^
                     {
/datasets/git/builtin/count-objects.c:60:77: warning: parameter 'data' is unused [misc-unused-parameters]
static int count_loose(const struct object_id *oid, const char *path, void *data)
                                                                            ^
/datasets/git/builtin/count-objects.c:62:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/builtin/count-objects.c:64:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (lstat(path, &st) || !S_ISREG(st.st_mode))
                                                     ^
                                                      {
/datasets/git/builtin/count-objects.c:69:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (verbose && has_object_pack(oid))
                                                    ^
                                                     {
/datasets/git/builtin/count-objects.c:75:24: warning: 2 adjacent parameters of 'count_cruft' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int count_cruft(const char *basename, const char *path, void *data)
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/count-objects.c:75:36: note: the first parameter in the range is '__xpg_basename'
static int count_cruft(const char *basename, const char *path, void *data)
                                   ^
/usr/include/libgen.h:35:18: note: expanded from macro 'basename'
#define basename        __xpg_basename
                        ^~~~~~~~~~~~~~
/datasets/git/builtin/count-objects.c:75:58: note: the last parameter in the range is 'path'
static int count_cruft(const char *basename, const char *path, void *data)
                                                         ^~~~
/datasets/git/builtin/count-objects.c:75:70: warning: parameter 'data' is unused [misc-unused-parameters]
static int count_cruft(const char *basename, const char *path, void *data)
                                                                     ^
/datasets/git/builtin/count-objects.c:81:64: warning: parameter 'data' is unused [misc-unused-parameters]
static int print_alternate(struct object_directory *odb, void *data)
                                                               ^
/datasets/git/builtin/count-objects.c:98:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__VERBOSE(&verbose, N_("be verbose")),
                ^
/datasets/git/./parse-options.h:359:31: note: expanded from macro 'OPT__VERBOSE'
#define OPT__VERBOSE(var, h)  OPT_COUNTUP('v', "verbose", (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/count-objects.c:99:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('H', "human-readable", &human_readable,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/count-objects.c:108:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc)
                 ^
                  {
/datasets/git/builtin/count-objects.c:119:22: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                struct packed_git *p;
                                   ^
                                     = NULL
/datasets/git/builtin/count-objects.c:119:22: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/count-objects.c:126:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (p = get_all_packs(the_repository); p; p = p->next) {
                ^
/datasets/git/builtin/count-objects.c:126:43: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (p = get_all_packs(the_repository); p; p = p->next) {
                                                        ^
/datasets/git/builtin/count-objects.c:127:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!p->pack_local)
                                           ^
                                            {
/datasets/git/builtin/count-objects.c:129:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (open_pack_index(p))
                                               ^
                                                {
/datasets/git/builtin/count-objects.c:132:17: warning: narrowing conversion from 'unsigned long' to signed type 'off_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        size_pack += p->pack_size + p->index_size;
                                     ^
/datasets/git/builtin/count-objects.c:142:38: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                    (unsigned long)(loose_size / 1024));
                                                                 ^
/datasets/git/builtin/count-objects.c:144:37: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                    (unsigned long)(size_pack / 1024));
                                                                ^
/datasets/git/builtin/count-objects.c:146:40: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                    (unsigned long)(size_garbage / 1024));
                                                                   ^
/datasets/git/builtin/count-objects.c:163:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (human_readable)
                                   ^
                                    {
/datasets/git/builtin/count-objects.c:165:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/count-objects.c:167:38: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                    (unsigned long)(loose_size / 1024));
                                                                 ^
/datasets/git/builtin/credential-cache--daemon.c:7:1: warning: #includes are not sorted properly [llvm-include-order]
#include "tempfile.h"
^        ~~~~~~~~~~~~
         "credential.h"
/datasets/git/builtin/credential-cache--daemon.c:11:8: warning: accessing fields in struct 'credential_cache_entry' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct credential_cache_entry {
       ^
/datasets/git/builtin/credential-cache--daemon.c:11:8: note: use "__attribute__((aligned(128)))" to align struct 'credential_cache_entry' to 128 bytes
/datasets/git/builtin/credential-cache--daemon.c:15:39: warning: variable 'entries' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct credential_cache_entry *entries;
                                      ^
/datasets/git/builtin/credential-cache--daemon.c:15:39: warning: variable 'entries' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/credential-cache--daemon.c:16:12: warning: variable 'entries_nr' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int entries_nr;
           ^
/datasets/git/builtin/credential-cache--daemon.c:17:12: warning: variable 'entries_alloc' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int entries_alloc;
           ^
/datasets/git/builtin/credential-cache--daemon.c:19:49: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static void cache_credential(struct credential *c, int timeout)
                                                ^
/datasets/git/builtin/credential-cache--daemon.c:21:33: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct credential_cache_entry *e;
                                       ^
                                         = NULL
/datasets/git/builtin/credential-cache--daemon.c:21:33: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/credential-cache--daemon.c:23:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(entries, entries_nr + 1, entries_alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/builtin/credential-cache--daemon.c:27:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(&e->item, c, sizeof(*c));
        ^~~~~~
/datasets/git/builtin/credential-cache--daemon.c:27:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(&e->item, c, sizeof(*c));
        ^~~~~~
/datasets/git/builtin/credential-cache--daemon.c:28:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(c, 0, sizeof(*c));
        ^~~~~~
/datasets/git/builtin/credential-cache--daemon.c:28:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(c, 0, sizeof(*c));
        ^~~~~~
/datasets/git/builtin/credential-cache--daemon.c:32:82: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static struct credential_cache_entry *lookup_credential(const struct credential *c)
                                                                                 ^
/datasets/git/builtin/credential-cache--daemon.c:34:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/credential-cache--daemon.c:34:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/credential-cache--daemon.c:35:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < entries_nr; i++) {
        ^
/datasets/git/builtin/credential-cache--daemon.c:36:22: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                struct credential *e = &entries[i].item;
                                   ^
/datasets/git/builtin/credential-cache--daemon.c:37:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (credential_match(c, e))
                                           ^
                                            {
/datasets/git/builtin/credential-cache--daemon.c:43:56: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static void remove_credential(const struct credential *c)
                                                       ^
/datasets/git/builtin/credential-cache--daemon.c:45:33: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct credential_cache_entry *e;
                                       ^
                                         = NULL
/datasets/git/builtin/credential-cache--daemon.c:45:33: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/credential-cache--daemon.c:48:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (e)
              ^
               {
/datasets/git/builtin/credential-cache--daemon.c:55:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0;
            ^
/datasets/git/builtin/credential-cache--daemon.c:64:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!wait_for_entry_until)
                                  ^
                                   {
/datasets/git/builtin/credential-cache--daemon.c:65:32: warning: 30 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                wait_for_entry_until = now + 30;
                                             ^
/datasets/git/builtin/credential-cache--daemon.c:67:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (i < entries_nr) {
        ^
/datasets/git/builtin/credential-cache--daemon.c:71:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (i != entries_nr)
                                            ^
                                             {
/datasets/git/builtin/credential-cache--daemon.c:72:5: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                                memcpy(&entries[i], &entries[entries_nr], sizeof(*entries));
                                ^~~~~~
/datasets/git/builtin/credential-cache--daemon.c:72:5: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                                memcpy(&entries[i], &entries[entries_nr], sizeof(*entries));
                                ^~~~~~
/datasets/git/builtin/credential-cache--daemon.c:78:33: warning: 30 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        wait_for_entry_until = now + 30;
                                                     ^
/datasets/git/builtin/credential-cache--daemon.c:81:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (entries[i].expiration < next)
                                                         ^
                                                          {
/datasets/git/builtin/credential-cache--daemon.c:88:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (wait_for_entry_until <= now)
                                                ^
                                                 {
/datasets/git/builtin/credential-cache--daemon.c:96:31: warning: parameter name 'fh' is too short, expected at least 3 characters [readability-identifier-length]
static int read_request(FILE *fh, struct credential *c,
                              ^
/datasets/git/builtin/credential-cache--daemon.c:96:54: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static int read_request(FILE *fh, struct credential *c,
                                                     ^
/datasets/git/builtin/credential-cache--daemon.c:100:14: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        const char *p;
                    ^
                      = NULL
/datasets/git/builtin/credential-cache--daemon.c:100:14: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/credential-cache--daemon.c:103:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!skip_prefix(item.buf, "action=", &p))
                                                  ^
                                                   {
/datasets/git/builtin/credential-cache--daemon.c:108:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!skip_prefix(item.buf, "timeout=", &p))
                                                   ^
                                                    {
/datasets/git/builtin/credential-cache--daemon.c:110:13: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c]
        *timeout = atoi(p);
                   ^
/datasets/git/builtin/credential-cache--daemon.c:112:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (credential_read(c, fh) < 0)
                                       ^
                                        {
/datasets/git/builtin/credential-cache--daemon.c:117:30: warning: 2 adjacent parameters of 'serve_one_client' of similar type ('FILE *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void serve_one_client(FILE *in, FILE *out)
                             ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/credential-cache--daemon.c:117:36: note: the first parameter in the range is 'in'
static void serve_one_client(FILE *in, FILE *out)
                                   ^~
/datasets/git/builtin/credential-cache--daemon.c:117:46: note: the last parameter in the range is 'out'
static void serve_one_client(FILE *in, FILE *out)
                                             ^~~
/datasets/git/builtin/credential-cache--daemon.c:117:36: warning: parameter name 'in' is too short, expected at least 3 characters [readability-identifier-length]
static void serve_one_client(FILE *in, FILE *out)
                                   ^
/datasets/git/builtin/credential-cache--daemon.c:119:20: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        struct credential c = CREDENTIAL_INIT;
                          ^
/datasets/git/builtin/credential-cache--daemon.c:123:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (read_request(in, &c, &action, &timeout) < 0)
                                                        ^
                                                         {
/datasets/git/builtin/credential-cache--daemon.c:126:34: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                struct credential_cache_entry *e = lookup_credential(&c);
                                               ^
/datasets/git/builtin/credential-cache--daemon.c:128:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(out, "username=%s\n", e->item.username);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/credential-cache--daemon.c:128:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/credential-cache--daemon.c:129:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(out, "password=%s\n", e->item.password);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/credential-cache--daemon.c:129:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/credential-cache--daemon.c:141:3: warning: function is not thread safe [concurrency-mt-unsafe]
                exit(0);
                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/credential-cache--daemon.c:143:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(action.buf, "erase"))
                                              ^
                                               {
/datasets/git/builtin/credential-cache--daemon.c:146:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (timeout < 0)
                                ^
                                 {
/datasets/git/builtin/credential-cache--daemon.c:148:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!c.username || !c.password)
                                                    ^
                                                     {
/datasets/git/builtin/credential-cache--daemon.c:155:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/credential-cache--daemon.c:162:33: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
static int serve_cache_loop(int fd)
                                ^
/datasets/git/builtin/credential-cache--daemon.c:165:14: warning: variable 'wakeup' is not initialized [cppcoreguidelines-init-variables]
        timestamp_t wakeup;
                    ^
                           = 0
/datasets/git/builtin/credential-cache--daemon.c:168:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!wakeup)
                    ^
                     {
/datasets/git/builtin/credential-cache--daemon.c:173:20: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        if (poll(&pfd, 1, 1000 * wakeup) < 0) {
                          ^
/datasets/git/builtin/credential-cache--daemon.c:173:20: warning: 1000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
/datasets/git/builtin/credential-cache--daemon.c:174:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (errno != EINTR)
                                   ^
                                    {
/datasets/git/builtin/credential-cache--daemon.c:179:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (pfd.revents & POLLIN) {
            ^~~~~~~~~~~
/datasets/git/builtin/credential-cache--daemon.c:180:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int client, client2;
                ^~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/credential-cache--daemon.c:180:7: warning: variable 'client' is not initialized [cppcoreguidelines-init-variables]
                int client, client2;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/credential-cache--daemon.c:180:15: warning: variable 'client2' is not initialized [cppcoreguidelines-init-variables]
                int client, client2;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/credential-cache--daemon.c:181:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                FILE *in, *out;
                ^~~~~~~~~~~~~~~
/datasets/git/builtin/credential-cache--daemon.c:181:9: warning: variable 'in' is not initialized [cppcoreguidelines-init-variables]
                FILE *in, *out;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/credential-cache--daemon.c:181:9: warning: variable name 'in' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/credential-cache--daemon.c:181:14: warning: variable 'out' is not initialized [cppcoreguidelines-init-variables]
                FILE *in, *out;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/credential-cache--daemon.c:188:13: warning: prefer fcntl() to dup() because fcntl() allows F_DUPFD_CLOEXEC [android-cloexec-dup]
                client2 = dup(client);
                          ^~~~~~~~~~~
                          fcntl(client, F_DUPFD_CLOEXEC)
/datasets/git/builtin/credential-cache--daemon.c:198:3: warning: the value returned by this function should be used [cert-err33-c]
                fclose(in);
                ^~~~~~~~~~
/datasets/git/builtin/credential-cache--daemon.c:198:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/credential-cache--daemon.c:199:3: warning: the value returned by this function should be used [cert-err33-c]
                fclose(out);
                ^~~~~~~~~~~
/datasets/git/builtin/credential-cache--daemon.c:199:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/credential-cache--daemon.c:207:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/builtin/credential-cache--daemon.c:207:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/credential-cache--daemon.c:210:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fd < 0)
                   ^
                    {
/datasets/git/builtin/credential-cache--daemon.c:214:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(stdout);
        ^~~~~~~~~~~~~~
/datasets/git/builtin/credential-cache--daemon.c:214:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/credential-cache--daemon.c:216:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!freopen("/dev/null", "w", stderr))
                                                       ^
                                                        {
/datasets/git/builtin/credential-cache--daemon.c:220:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (serve_cache_loop(fd))
        ^
/datasets/git/builtin/credential-cache--daemon.c:220:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'fd' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (serve_cache_loop(fd))
               ^
/datasets/git/builtin/credential-cache--daemon.c:220:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (serve_cache_loop(fd))
                                    ^
                                     {
/datasets/git/builtin/credential-cache--daemon.c:233:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/builtin/credential-cache--daemon.c:235:14: warning: function is not thread safe [concurrency-mt-unsafe]
        char *dir = dirname(path_copy);
                    ^
/datasets/git/builtin/credential-cache--daemon.c:238:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (st.st_mode & 077)
                    ^            ~~~
/datasets/git/builtin/credential-cache--daemon.c:238:20: warning: 077 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (st.st_mode & 077)
                                 ^
/datasets/git/builtin/credential-cache--daemon.c:238:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (st.st_mode & 077)
                                     ^
                                      {
/datasets/git/builtin/credential-cache--daemon.c:247:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (safe_create_leading_directories_const(dir) < 0)
                                                                   ^
                                                                    {
/datasets/git/builtin/credential-cache--daemon.c:249:18: warning: 0700 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (mkdir(dir, 0700) < 0)
                               ^
/datasets/git/builtin/credential-cache--daemon.c:249:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (mkdir(dir, 0700) < 0)
                                         ^
                                          {
/datasets/git/builtin/credential-cache--daemon.c:253:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (chdir(dir))
                       ^
                        {
/datasets/git/builtin/credential-cache--daemon.c:259:3: warning: potentially unintended semicolon [bugprone-suspicious-semicolon]
                ;
                ^
/datasets/git/builtin/credential-cache--daemon.c:266:19: warning: variable 'socket_file' is not initialized [cppcoreguidelines-init-variables]
        struct tempfile *socket_file;
                         ^
                                     = NULL
/datasets/git/builtin/credential-cache--daemon.c:267:14: warning: variable 'socket_path' is not initialized [cppcoreguidelines-init-variables]
        const char *socket_path;
                    ^
                                = NULL
/datasets/git/builtin/credential-cache--daemon.c:275:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "debug", &debug,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/credential-cache--daemon.c:282:2: warning: Value stored to 'argc' is never read [clang-analyzer-deadcode.DeadStores]
        argc = parse_options(argc, argv, prefix, options, usage, 0);
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/credential-cache--daemon.c:282:2: note: Value stored to 'argc' is never read
        argc = parse_options(argc, argv, prefix, options, usage, 0);
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/credential-cache--daemon.c:285:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!socket_path)
                         ^
                          {
/datasets/git/builtin/credential-cache--daemon.c:288:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_absolute_path(socket_path))
                                           ^
                                            {
/datasets/git/builtin/credential-cache--daemon.c:294:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ignore_sighup)
                          ^
                           {
/datasets/git/builtin/credential-cache--daemon.c:295:3: warning: the value returned by this function should be used [cert-err33-c]
                signal(SIGHUP, SIG_IGN);
                ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/credential-cache--daemon.c:295:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/credential-cache.c:7:1: warning: #includes are not sorted properly [llvm-include-order]
#include "string-list.h"
^        ~~~~~~~~~~~~~~~
         "run-command.h"
/datasets/git/builtin/credential-cache.c:43:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
        int fd = unix_stream_connect(socket, 0);
            ^
/datasets/git/builtin/credential-cache.c:45:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fd < 0)
                   ^
                    {
/datasets/git/builtin/credential-cache.c:48:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_in_full(fd, out->buf, out->len) < 0)
                                                      ^
                                                       {
/datasets/git/builtin/credential-cache.c:52:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/builtin/credential-cache.c:53:8: warning: variable name 'in' is too short, expected at least 3 characters [readability-identifier-length]
                char in[1024];
                     ^
/datasets/git/builtin/credential-cache.c:53:11: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                char in[1024];
                        ^
/datasets/git/builtin/credential-cache.c:54:7: warning: variable 'r' is not initialized [cppcoreguidelines-init-variables]
                int r;
                    ^
                      = 0
/datasets/git/builtin/credential-cache.c:54:7: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/credential-cache.c:56:7: warning: narrowing conversion from 'ssize_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                r = read_in_full(fd, in, sizeof(in));
                    ^
/datasets/git/builtin/credential-cache.c:57:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (r == 0 || (r < 0 && connection_closed(errno)))
                                                                  ^
                                                                   {
/datasets/git/builtin/credential-cache.c:59:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (r < 0)
                          ^
                           {
/datasets/git/builtin/credential-cache.c:71:11: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        char buf[128];
                 ^
/datasets/git/builtin/credential-cache.c:72:6: warning: variable 'r' is not initialized [cppcoreguidelines-init-variables]
        int r;
            ^
              = 0
/datasets/git/builtin/credential-cache.c:72:6: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/credential-cache.c:81:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (start_command(&daemon))
                                   ^
                                    {
/datasets/git/builtin/credential-cache.c:83:6: warning: narrowing conversion from 'ssize_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        r = read_in_full(daemon.out, buf, sizeof(buf));
            ^
/datasets/git/builtin/credential-cache.c:84:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (r < 0)
                  ^
                   {
/datasets/git/builtin/credential-cache.c:86:16: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (r != 3 || memcmp(buf, "ok\n", 3))
                      ^
                                             != 0
/datasets/git/builtin/credential-cache.c:86:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (r != 3 || memcmp(buf, "ok\n", 3))
                                             ^
                                              {
/datasets/git/builtin/credential-cache.c:91:22: warning: 2 adjacent parameters of 'do_cache' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void do_cache(const char *socket, const char *action, int timeout,
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/credential-cache.c:91:34: note: the first parameter in the range is 'socket'
static void do_cache(const char *socket, const char *action, int timeout,
                                 ^~~~~~
/datasets/git/builtin/credential-cache.c:91:54: note: the last parameter in the range is 'action'
static void do_cache(const char *socket, const char *action, int timeout,
                                                     ^~~~~~
/datasets/git/builtin/credential-cache.c:91:62: warning: 2 adjacent parameters of 'do_cache' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void do_cache(const char *socket, const char *action, int timeout,
                                                             ^~~~~~~~~~~~
/datasets/git/builtin/credential-cache.c:91:66: note: the first parameter in the range is 'timeout'
static void do_cache(const char *socket, const char *action, int timeout,
                                                                 ^~~~~~~
/datasets/git/builtin/credential-cache.c:92:12: note: the last parameter in the range is 'flags'
                     int flags)
                         ^~~~~
/datasets/git/builtin/credential-cache.c:98:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & FLAG_RELAY) {
            ^~~~~
/datasets/git/builtin/credential-cache.c:99:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strbuf_read(&buf, 0, 0) < 0)
                                                ^
                                                 {
/datasets/git/builtin/credential-cache.c:104:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (connection_fatally_broken(errno))
                                                     ^
                                                      {
/datasets/git/builtin/credential-cache.c:106:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flags & FLAG_SPAWN) {
                    ^~~~~
/datasets/git/builtin/credential-cache.c:108:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (send_request(socket, &buf) < 0)
                                                           ^
                                                            {
/datasets/git/builtin/credential-cache.c:117:14: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat sb;
                    ^
/datasets/git/builtin/credential-cache.c:118:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *old_dir, *socket;
        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/credential-cache.c:118:8: warning: variable 'old_dir' is not initialized [cppcoreguidelines-init-variables]
        char *old_dir, *socket;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/credential-cache.c:118:18: warning: variable 'socket' is not initialized [cppcoreguidelines-init-variables]
        char *old_dir, *socket;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/credential-cache.c:120:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (old_dir && !stat(old_dir, &sb) && S_ISDIR(sb.st_mode))
                                                                  ^
                                                                   {
/datasets/git/builtin/credential-cache.c:122:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/credential-cache.c:131:16: warning: 900 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        int timeout = 900;
                      ^
/datasets/git/builtin/credential-cache.c:132:14: warning: variable 'op' is not initialized [cppcoreguidelines-init-variables]
        const char *op;
                    ^
                       = NULL
/datasets/git/builtin/credential-cache.c:132:14: warning: variable name 'op' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/credential-cache.c:146:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!argc)
                  ^
                   {
/datasets/git/builtin/credential-cache.c:150:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!socket_path)
                         ^
                          {
/datasets/git/builtin/credential-cache.c:152:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!socket_path)
                         ^
                          {
/datasets/git/builtin/credential-cache.c:155:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(op, "exit"))
                                ^
                                 {
/datasets/git/builtin/credential-cache.c:157:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(op, "get") || !strcmp(op, "erase"))
                                                            ^
                                                             {
/datasets/git/builtin/credential-cache.c:159:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(op, "store"))
                                      ^
                                       {
/datasets/git/builtin/credential-cache.c:160:38: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                do_cache(socket_path, op, timeout, FLAG_RELAY|FLAG_SPAWN);
                                                   ^
/datasets/git/builtin/credential-cache.c:12:20: note: expanded from macro 'FLAG_RELAY'
#define FLAG_RELAY 0x2
                   ^~~
/datasets/git/builtin/credential-cache.c:161:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/credential-store.c:3:1: warning: #includes are not sorted properly [llvm-include-order]
#include "lockfile.h"
^        ~~~~~~~~~~~~
         "credential.h"
/datasets/git/builtin/credential-store.c:8:25: warning: variable 'credential_lock' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct lock_file credential_lock;
                        ^
/datasets/git/builtin/credential-store.c:10:46: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
static int parse_credential_file(const char *fn,
                                             ^
/datasets/git/builtin/credential-store.c:11:26: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                                  struct credential *c,
                                                     ^
/datasets/git/builtin/credential-store.c:15:8: warning: variable 'fh' is not initialized [cppcoreguidelines-init-variables]
        FILE *fh;
              ^
                 = NULL
/datasets/git/builtin/credential-store.c:15:8: warning: variable name 'fh' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/credential-store.c:22:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (errno != ENOENT && errno != EACCES)
                                                       ^
                                                        {
/datasets/git/builtin/credential-store.c:27:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (strbuf_getline_lf(&line, fh) != EOF) {
        ^
/datasets/git/builtin/credential-store.c:27:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'line' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (strbuf_getline_lf(&line, fh) != EOF) {
               ^
/datasets/git/builtin/credential-store.c:37:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (other_cb)
                                  ^
                                   {
/datasets/git/builtin/credential-store.c:43:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(fh);
        ^~~~~~~~~~
/datasets/git/builtin/credential-store.c:43:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/credential-store.c:16:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct strbuf line = STRBUF_INIT;
        ^
/datasets/git/builtin/credential-store.c:47:44: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static void print_entry(struct credential *c)
                                           ^
/datasets/git/builtin/credential-store.c:59:49: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
static void rewrite_credential_file(const char *fn, struct credential *c,
                                                ^
/datasets/git/builtin/credential-store.c:59:72: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static void rewrite_credential_file(const char *fn, struct credential *c,
                                                                       ^
/datasets/git/builtin/credential-store.c:62:19: warning: 1000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        int timeout_ms = 1000;
                         ^
/datasets/git/builtin/credential-store.c:65:81: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (hold_lock_file_for_update_timeout(&credential_lock, fn, 0, timeout_ms) < 0)
                                                                                       ^
                                                                                        {
/datasets/git/builtin/credential-store.c:67:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (extra)
                  ^
                   {
/datasets/git/builtin/credential-store.c:70:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (commit_lock_file(&credential_lock) < 0)
                                                   ^
                                                    {
/datasets/git/builtin/credential-store.c:74:47: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
static void store_credential_file(const char *fn, struct credential *c)
                                              ^
/datasets/git/builtin/credential-store.c:74:70: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static void store_credential_file(const char *fn, struct credential *c)
                                                                     ^
/datasets/git/builtin/credential-store.c:83:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (c->host)
                    ^
                     {
/datasets/git/builtin/credential-store.c:95:80: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static void store_credential(const struct string_list *fns, struct credential *c)
                                                                               ^
/datasets/git/builtin/credential-store.c:97:27: warning: variable 'fn' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *fn;
                                 ^
                                    = NULL
/datasets/git/builtin/credential-store.c:97:27: warning: variable name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/credential-store.c:106:76: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!c->protocol || !(c->host || c->path) || !c->username || !c->password)
                                                                                  ^
                                                                                   {
/datasets/git/builtin/credential-store.c:109:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(fn, fns)
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/credential-store.c:109:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'fn' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(fn, fns)
                                  ^
/datasets/git/builtin/credential-store.c:118:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fns->nr)
                    ^
                     {
/datasets/git/builtin/credential-store.c:122:81: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static void remove_credential(const struct string_list *fns, struct credential *c)
                                                                                ^
/datasets/git/builtin/credential-store.c:124:27: warning: variable 'fn' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *fn;
                                 ^
                                    = NULL
/datasets/git/builtin/credential-store.c:124:27: warning: variable name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/credential-store.c:134:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!c->protocol && !c->host && !c->path && !c->username)
                                                                 ^
                                                                  {
/datasets/git/builtin/credential-store.c:136:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(fn, fns)
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/credential-store.c:136:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'fn' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(fn, fns)
                                  ^
/datasets/git/builtin/credential-store.c:137:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!access(fn->string, F_OK))
                                              ^
                                               {
/datasets/git/builtin/credential-store.c:141:81: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static void lookup_credential(const struct string_list *fns, struct credential *c)
                                                                                ^
/datasets/git/builtin/credential-store.c:143:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct string_list_item *fn;
        ^
/datasets/git/builtin/credential-store.c:143:27: warning: variable 'fn' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *fn;
                                 ^
                                    = NULL
/datasets/git/builtin/credential-store.c:143:27: warning: variable name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/credential-store.c:145:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(fn, fns)
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/credential-store.c:145:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'fn' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(fn, fns)
                                  ^
/datasets/git/builtin/credential-store.c:146:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (parse_credential_file(fn->string, c, print_entry, NULL))
                                                                            ^
                                                                             {
/datasets/git/builtin/credential-store.c:156:14: warning: variable 'op' is not initialized [cppcoreguidelines-init-variables]
        const char *op;
                    ^
                       = NULL
/datasets/git/builtin/credential-store.c:156:14: warning: variable name 'op' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/credential-store.c:157:20: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        struct credential c = CREDENTIAL_INIT;
                          ^
/datasets/git/builtin/credential-store.c:166:8: warning: 077 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        umask(077);
              ^
/datasets/git/builtin/credential-store.c:168:29: warning: redundant cast to the same type [google-readability-casting]
        argc = parse_options(argc, (const char **)argv, prefix, options, usage, 0);
                                   ^~~~~~~~~~~~~~~
/datasets/git/builtin/credential-store.c:169:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc != 1)
                      ^
                       {
/datasets/git/builtin/credential-store.c:176:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                if ((file = interpolate_path("~/.git-credentials", 0)))
                     ^
/datasets/git/builtin/credential-store.c:176:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/builtin/credential-store.c:176:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/builtin/credential-store.c:176:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((file = interpolate_path("~/.git-credentials", 0)))
                                                                       ^
                                                                        {
/datasets/git/builtin/credential-store.c:179:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (file)
                         ^
                          {
/datasets/git/builtin/credential-store.c:182:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!fns.nr)
                    ^
                     {
/datasets/git/builtin/credential-store.c:185:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (credential_read(&c, stdin) < 0)
                                           ^
                                            {
/datasets/git/builtin/credential-store.c:188:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(op, "get"))
                               ^
                                {
/datasets/git/builtin/credential-store.c:190:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(op, "erase"))
                                      ^
                                       {
/datasets/git/builtin/credential-store.c:192:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(op, "store"))
                                      ^
                                       {
/datasets/git/builtin/credential-store.c:194:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/credential.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "credential.h"
^        ~~~~~~~~~~~~~~
         "builtin.h"
/datasets/git/builtin/credential.c:9:61: warning: parameter 'prefix' is unused [misc-unused-parameters]
int cmd_credential(int argc, const char **argv, const char *prefix)
                                                            ^
/datasets/git/builtin/credential.c:11:14: warning: variable 'op' is not initialized [cppcoreguidelines-init-variables]
        const char *op;
                    ^
                       = NULL
/datasets/git/builtin/credential.c:11:14: warning: variable name 'op' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/credential.c:12:20: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        struct credential c = CREDENTIAL_INIT;
                          ^
/datasets/git/builtin/credential.c:16:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc != 2 || !strcmp(argv[1], "-h"))
                                                ^
                                                 {
/datasets/git/builtin/credential.c:20:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (credential_read(&c, stdin) < 0)
                                           ^
                                            {
/datasets/git/builtin/describe.c:3:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "blob.h"
/datasets/git/builtin/describe.c:23:1: warning: backward branch (for loop) is ID-dependent due to member reference to 'slab_size' and may cause performance degradation [altera-id-dependent-backward-branch]
define_commit_slab(commit_names, struct commit_name *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:48:15: note: expanded from macro 'implement_commit_slab'
                for (j = 0; j < s->slab_size; j++)                      \
                            ^
/datasets/git/builtin/describe.c:23:1: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
define_commit_slab(commit_names, struct commit_name *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:68:27: note: expanded from macro 'implement_commit_slab'
                for (i = s->slab_count; i <= nth_slab; i++)             \
                                        ^
/datasets/git/builtin/describe.c:23:1: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
define_commit_slab(commit_names, struct commit_name *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:35:2: note: expanded from macro 'implement_commit_slab'
        for (i = 0; i < s->slab_count; i++)                             \
        ^
/datasets/git/builtin/describe.c:23:1: warning: result of multiplication in type 'unsigned int' is used as a pointer offset after an implicit widening conversion to type 'size_t' [bugprone-implicit-widening-of-multiplication-result]
define_commit_slab(commit_names, struct commit_name *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:49:13: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                 ^
/datasets/git/builtin/describe.c:23:1: note: make conversion explicit to silence this warning
define_commit_slab(commit_names, struct commit_name *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:49:24: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                            ^~~~~~~~~~~~~
/datasets/git/builtin/describe.c:23:1: note: perform multiplication in a wider type
define_commit_slab(commit_names, struct commit_name *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:49:24: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                            ^
/datasets/git/builtin/describe.c:23:1: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
define_commit_slab(commit_names, struct commit_name *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:76:10: note: expanded from macro 'implement_commit_slab'
                                            sizeof(**s->slab) * s->stride);             \
                                            ^
/datasets/git/builtin/describe.c:23:1: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(commit_names, struct commit_name *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:55:30: note: expanded from macro 'implement_commit_slab'
                                                  const struct commit *c, \
                                                                       ^
/datasets/git/builtin/describe.c:23:1: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(commit_names, struct commit_name *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:14:61: note: expanded from macro 'implement_commit_slab'
scope void init_ ##slabname## _with_stride(struct slabname *s,          \
                                                            ^
/datasets/git/builtin/describe.c:23:1: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(commit_names, struct commit_name *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:34:15: note: expanded from macro 'implement_commit_slab'
        unsigned int i;                                                 \
                     ^
/datasets/git/builtin/describe.c:23:1: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(commit_names, struct commit_name *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:45:16: note: expanded from macro 'implement_commit_slab'
                unsigned int j;                                         \
                             ^
/datasets/git/builtin/describe.c:23:1: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
define_commit_slab(commit_names, struct commit_name *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:58:2: note: expanded from macro 'implement_commit_slab'
        unsigned int nth_slab, nth_slot;                                \
        ^
/datasets/git/builtin/describe.c:23:1: note: inferred assignment of ID-dependent value from ID-dependent member slab_count [altera-id-dependent-backward-branch]
define_commit_slab(commit_names, struct commit_name *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:64:3: note: expanded from macro 'implement_commit_slab'
                unsigned int i;                                         \
                ^
/datasets/git/builtin/describe.c:23:20: warning: accessing fields in struct 'commit_names' is inefficient due to padding; only needs 20 bytes but is using 24 bytes [altera-struct-pack-align]
define_commit_slab(commit_names, struct commit_name *);
                   ^
/datasets/git/builtin/describe.c:23:20: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'commit_names'
/datasets/git/builtin/describe.c:23:20: warning: accessing fields in struct 'commit_names' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
define_commit_slab(commit_names, struct commit_name *);
                   ^
/datasets/git/builtin/describe.c:23:20: note: use "__attribute__((aligned(32)))" to align struct 'commit_names' to 32 bytes
/datasets/git/builtin/describe.c:32:12: warning: variable 'debug' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int debug;       /* Display lots of verbose info */
           ^
/datasets/git/builtin/describe.c:33:12: warning: variable 'all' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int all; /* Any valid ref can be used */
           ^
/datasets/git/builtin/describe.c:34:12: warning: variable 'tags' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int tags;        /* Allow lightweight tags */
           ^
/datasets/git/builtin/describe.c:35:12: warning: variable 'longformat' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int longformat;
           ^
/datasets/git/builtin/describe.c:36:12: warning: variable 'first_parent' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int first_parent;
           ^
/datasets/git/builtin/describe.c:37:12: warning: variable 'abbrev' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int abbrev = -1; /* unspecified */
           ^
/datasets/git/builtin/describe.c:38:12: warning: variable 'max_candidates' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int max_candidates = 10;
           ^
/datasets/git/builtin/describe.c:38:29: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
static int max_candidates = 10;
                            ^
/datasets/git/builtin/describe.c:39:23: warning: variable 'names' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct hashmap names;
                      ^
/datasets/git/builtin/describe.c:40:12: warning: variable 'have_util' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int have_util;
           ^
/datasets/git/builtin/describe.c:41:27: warning: variable 'patterns' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct string_list patterns = STRING_LIST_INIT_NODUP;
                          ^
/datasets/git/builtin/describe.c:42:27: warning: variable 'exclude_patterns' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct string_list exclude_patterns = STRING_LIST_INIT_NODUP;
                          ^
/datasets/git/builtin/describe.c:43:12: warning: variable 'always' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int always;
           ^
/datasets/git/builtin/describe.c:44:20: warning: variable 'suffix' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *suffix, *dirty, *broken;
                   ^
/datasets/git/builtin/describe.c:44:29: warning: variable 'dirty' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *suffix, *dirty, *broken;
                            ^
/datasets/git/builtin/describe.c:44:37: warning: variable 'broken' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *suffix, *dirty, *broken;
                                    ^
/datasets/git/builtin/describe.c:45:28: warning: variable 'commit_names' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct commit_names commit_names;
                           ^
/datasets/git/builtin/describe.c:48:20: warning: variable 'diff_index_args' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *diff_index_args[] = {
                   ^
/datasets/git/builtin/describe.c:52:8: warning: accessing fields in struct 'commit_name' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct commit_name {
       ^
/datasets/git/builtin/describe.c:52:8: note: use "__attribute__((aligned(128)))" to align struct 'commit_name' to 128 bytes
/datasets/git/builtin/describe.c:63:20: warning: variable 'prio_names' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *prio_names[] = {
                   ^
/datasets/git/builtin/describe.c:68:7: warning: 2 adjacent parameters of 'commit_name_neq' of similar type ('const struct hashmap_entry *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                           const struct hashmap_entry *eptr,
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/describe.c:68:35: note: the first parameter in the range is 'eptr'
                           const struct hashmap_entry *eptr,
                                                       ^~~~
/datasets/git/builtin/describe.c:69:35: note: the last parameter in the range is 'entry_or_key'
                           const struct hashmap_entry *entry_or_key,
                                                       ^~~~~~~~~~~~
/datasets/git/builtin/describe.c:72:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const struct commit_name *cn1, *cn2;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/describe.c:72:28: warning: variable 'cn1' is not initialized [cppcoreguidelines-init-variables]
        const struct commit_name *cn1, *cn2;
                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/describe.c:72:34: warning: variable 'cn2' is not initialized [cppcoreguidelines-init-variables]
        const struct commit_name *cn1, *cn2;
                                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/describe.c:86:45: warning: parameter name 'e' is too short, expected at least 3 characters [readability-identifier-length]
static int replace_name(struct commit_name *e,
                                            ^
/datasets/git/builtin/describe.c:91:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!e || e->prio < prio)
                                 ^
                                  {
/datasets/git/builtin/describe.c:98:15: warning: variable 't' is not initialized [cppcoreguidelines-init-variables]
                struct tag *t;
                            ^
                              = NULL
/datasets/git/builtin/describe.c:98:15: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/describe.c:102:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!t || parse_tag(t))
                                               ^
                                                {
/datasets/git/builtin/describe.c:108:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!t || parse_tag(t))
                                       ^
                                        {
/datasets/git/builtin/describe.c:112:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (e->tag->date < t->date)
                                           ^
                                            {
/datasets/git/builtin/describe.c:124:22: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
        struct commit_name *e = find_commit_name(peeled);
                            ^
/datasets/git/builtin/describe.c:144:12: warning: function 'get_name' has cognitive complexity of 29 (threshold 25) [readability-function-cognitive-complexity]
static int get_name(const char *path, const struct object_id *oid,
           ^
/datasets/git/builtin/describe.c:152:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (skip_prefix(path, "refs/tags/", &path_to_match)) {
        ^
/datasets/git/builtin/describe.c:154:9: note: +1, nesting level increased to 1
        } else if (all) {
               ^
/datasets/git/builtin/describe.c:155:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((exclude_patterns.nr || patterns.nr) &&
                ^
/datasets/git/builtin/describe.c:156:57: note: +1
                    !skip_prefix(path, "refs/heads/", &path_to_match) &&
                                                                      ^
/datasets/git/builtin/describe.c:155:28: note: +1
                if ((exclude_patterns.nr || patterns.nr) &&
                                         ^
/datasets/git/builtin/describe.c:161:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/describe.c:170:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (exclude_patterns.nr) {
        ^
/datasets/git/builtin/describe.c:173:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for_each_string_list_item(item, &exclude_patterns) {
                ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/describe.c:173:3: note: +1
                for_each_string_list_item(item, &exclude_patterns) {
                ^
/datasets/git/./string-list.h:152:12: note: expanded from macro 'for_each_string_list_item'
             item && item < (list)->items + (list)->nr; \
                  ^
/datasets/git/builtin/describe.c:174:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!wildmatch(item->string, path_to_match, 0))
                        ^
/datasets/git/builtin/describe.c:183:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (patterns.nr) {
        ^
/datasets/git/builtin/describe.c:187:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for_each_string_list_item(item, &patterns) {
                ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/describe.c:187:3: note: +1
                for_each_string_list_item(item, &patterns) {
                ^
/datasets/git/./string-list.h:152:12: note: expanded from macro 'for_each_string_list_item'
             item && item < (list)->items + (list)->nr; \
                  ^
/datasets/git/builtin/describe.c:188:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!wildmatch(item->string, path_to_match, 0)) {
                        ^
/datasets/git/builtin/describe.c:194:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!found)
                ^
/datasets/git/builtin/describe.c:199:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!peel_iterated_oid(oid, &peeled)) {
        ^
/datasets/git/builtin/describe.c:201:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/describe.c:212:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (is_annotated)
        ^
/datasets/git/builtin/describe.c:214:7: note: +1, nesting level increased to 1
        else if (is_tag)
             ^
/datasets/git/builtin/describe.c:216:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/builtin/describe.c:219:25: note: +1, including nesting penalty of 0, nesting level increased to 1
        add_to_known_names(all ? path + 5 : path + 10, &peeled, prio, oid);
                               ^
/datasets/git/builtin/describe.c:149:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int is_annotated, prio;
        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/describe.c:149:6: warning: variable 'is_annotated' is not initialized [cppcoreguidelines-init-variables]
        int is_annotated, prio;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/describe.c:149:20: warning: variable 'prio' is not initialized [cppcoreguidelines-init-variables]
        int is_annotated, prio;
                          ^
/datasets/git/builtin/describe.c:171:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                struct string_list_item *item;
                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/describe.c:171:28: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
                struct string_list_item *item;
                                         ^
                                              = NULL
/datasets/git/builtin/describe.c:173:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for_each_string_list_item(item, &exclude_patterns) {
                ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/describe.c:173:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
                for_each_string_list_item(item, &exclude_patterns) {
                                          ^
/datasets/git/builtin/describe.c:174:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!wildmatch(item->string, path_to_match, 0))
                                                                       ^
                                                                        {
/datasets/git/builtin/describe.c:185:28: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
                struct string_list_item *item;
                                         ^
                                              = NULL
/datasets/git/builtin/describe.c:187:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for_each_string_list_item(item, &patterns) {
                ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/describe.c:187:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
                for_each_string_list_item(item, &patterns) {
                                          ^
/datasets/git/builtin/describe.c:194:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!found)
                           ^
                            {
/datasets/git/builtin/describe.c:212:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_annotated)
                         ^
                          {
/datasets/git/builtin/describe.c:214:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (is_tag)
                        ^
                         {
/datasets/git/builtin/describe.c:216:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/describe.c:219:34: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        add_to_known_names(all ? path + 5 : path + 10, &peeled, prio, oid);
                                        ^
/datasets/git/builtin/describe.c:219:45: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        add_to_known_names(all ? path + 5 : path + 10, &peeled, prio, oid);
                                                   ^
/datasets/git/builtin/describe.c:223:8: warning: accessing fields in struct 'possible_tag' is inefficient due to padding; only needs 20 bytes but is using 24 bytes [altera-struct-pack-align]
struct possible_tag {
       ^
/datasets/git/builtin/describe.c:223:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'possible_tag'
/datasets/git/builtin/describe.c:223:8: warning: accessing fields in struct 'possible_tag' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct possible_tag {
       ^
/datasets/git/builtin/describe.c:223:8: note: use "__attribute__((aligned(32)))" to align struct 'possible_tag' to 32 bytes
/datasets/git/builtin/describe.c:230:35: warning: parameter name 'a_' is too short, expected at least 3 characters [readability-identifier-length]
static int compare_pt(const void *a_, const void *b_)
                                  ^
/datasets/git/builtin/describe.c:230:51: warning: parameter name 'b_' is too short, expected at least 3 characters [readability-identifier-length]
static int compare_pt(const void *a_, const void *b_)
                                                  ^
/datasets/git/builtin/describe.c:232:23: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        struct possible_tag *a = (struct possible_tag *)a_;
                             ^
/datasets/git/builtin/describe.c:233:23: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        struct possible_tag *b = (struct possible_tag *)b_;
                             ^
/datasets/git/builtin/describe.c:234:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (a->depth != b->depth)
                                 ^
                                  {
/datasets/git/builtin/describe.c:236:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (a->found_order != b->found_order)
                                             ^
                                              {
/datasets/git/builtin/describe.c:247:18: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                struct commit *c = pop_commit(list);
                               ^
/datasets/git/builtin/describe.c:251:4: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                        struct commit_list *a = *list;
                        ^
/datasets/git/builtin/describe.c:251:24: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
                        struct commit_list *a = *list;
                                            ^
/datasets/git/builtin/describe.c:252:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (a) {
                        ^
/datasets/git/builtin/describe.c:252:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'a' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (a) {
                               ^
/datasets/git/builtin/describe.c:253:20: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
                                struct commit *i = a->item;
                                               ^
/datasets/git/builtin/describe.c:254:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!(i->object.flags & best->flag_within))
                                                                           ^
                                                                            {
/datasets/git/builtin/describe.c:258:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!a)
                               ^
                                {
/datasets/git/builtin/describe.c:260:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/builtin/describe.c:262:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (parents) {
                ^
/datasets/git/builtin/describe.c:262:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'parents' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (parents) {
                       ^
/datasets/git/builtin/describe.c:263:19: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                        struct commit *p = parents->item;
                                       ^
/datasets/git/builtin/describe.c:265:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!(p->object.flags & SEEN))
                                                ^
/datasets/git/./revision.h:27:16: note: expanded from macro 'SEEN'
#define SEEN            (1u<<0)
                         ^   ~
/datasets/git/builtin/describe.c:265:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!(p->object.flags & SEEN))
                                                      ^
                                                       {
/datasets/git/builtin/describe.c:278:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!n->tag || parse_tag(n->tag))
                                                 ^
                                                  {
/datasets/git/builtin/describe.c:282:7: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (strcmp(n->tag->tag, all ? n->path + 5 : n->path)) {
                    ^
                                                                     != 0
/datasets/git/builtin/describe.c:282:43: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (strcmp(n->tag->tag, all ? n->path + 5 : n->path)) {
                                                        ^
/datasets/git/builtin/describe.c:291:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (all)
                        ^
                         {
/datasets/git/builtin/describe.c:304:13: warning: function 'describe_commit' has cognitive complexity of 92 (threshold 25) [readability-function-cognitive-complexity]
static void describe_commit(struct object_id *oid, struct strbuf *dst)
            ^
/datasets/git/builtin/describe.c:317:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (n && (tags || all || n->prio == 2)) {
        ^
/datasets/git/builtin/describe.c:317:8: note: +1
        if (n && (tags || all || n->prio == 2)) {
              ^
/datasets/git/builtin/describe.c:317:24: note: +1
        if (n && (tags || all || n->prio == 2)) {
                              ^
/datasets/git/builtin/describe.c:322:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (n->misnamed || longformat)
                ^
/datasets/git/builtin/describe.c:322:19: note: +1
                if (n->misnamed || longformat)
                                ^
/datasets/git/builtin/describe.c:323:28: note: +3, including nesting penalty of 2, nesting level increased to 3
                        append_suffix(0, n->tag ? get_tagged_oid(n->tag) : oid, dst);
                                                ^
/datasets/git/builtin/describe.c:324:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (suffix)
                ^
/datasets/git/builtin/describe.c:329:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!max_candidates)
        ^
/datasets/git/builtin/describe.c:331:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (debug)
        ^
/datasets/git/builtin/describe.c:334:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!have_util) {
        ^
/datasets/git/builtin/describe.c:340:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                hashmap_for_each_entry(&names, &iter, n,
                ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/builtin/describe.c:344:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (c)
                        ^
/datasets/git/builtin/describe.c:353:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (list) {
        ^
/datasets/git/builtin/describe.c:360:12: note: +2, including nesting penalty of 1, nesting level increased to 2
                n = slot ? *slot : NULL;
                         ^
/datasets/git/builtin/describe.c:361:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (n) {
                ^
/datasets/git/builtin/describe.c:362:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!tags && !all && n->prio < 2) {
                        ^
/datasets/git/builtin/describe.c:362:22: note: +1
                        if (!tags && !all && n->prio < 2) {
                                          ^
/datasets/git/builtin/describe.c:364:11: note: +1, nesting level increased to 3
                        } else if (match_cnt < max_candidates) {
                               ^
/datasets/git/builtin/describe.c:371:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (n->prio == 2)
                                ^
/datasets/git/builtin/describe.c:374:4: note: +1, nesting level increased to 3
                        else {
                        ^
/datasets/git/builtin/describe.c:379:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (cur_match = 0; cur_match < match_cnt; cur_match++) {
                ^
/datasets/git/builtin/describe.c:381:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!(c->object.flags & t->flag_within))
                        ^
/datasets/git/builtin/describe.c:385:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (annotated_cnt && !list) {
                ^
/datasets/git/builtin/describe.c:385:21: note: +1
                if (annotated_cnt && !list) {
                                  ^
/datasets/git/builtin/describe.c:388:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (cur_match = 0; cur_match < match_cnt; cur_match++) {
                        ^
/datasets/git/builtin/describe.c:390:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (t->depth < best_depth) {
                                ^
/datasets/git/builtin/describe.c:393:12: note: +1, nesting level increased to 4
                                } else if (t->depth == best_depth) {
                                       ^
/datasets/git/builtin/describe.c:397:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if ((c->object.flags & best_within) == best_within) {
                        ^
/datasets/git/builtin/describe.c:398:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (debug)
                                ^
/datasets/git/builtin/describe.c:404:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (parents) {
                ^
/datasets/git/builtin/describe.c:407:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!(p->object.flags & SEEN))
                        ^
/datasets/git/builtin/describe.c:412:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (first_parent)
                        ^
/datasets/git/builtin/describe.c:417:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!match_cnt) {
        ^
/datasets/git/builtin/describe.c:419:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (always) {
                ^
/datasets/git/builtin/describe.c:421:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (suffix)
                        ^
/datasets/git/builtin/describe.c:425:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (unannotated_cnt)
                ^
/datasets/git/builtin/describe.c:429:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/describe.c:437:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (gave_up_on) {
        ^
/datasets/git/builtin/describe.c:444:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (debug) {
        ^
/datasets/git/builtin/describe.c:446:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (label_width < 0) {
                ^
/datasets/git/builtin/describe.c:448:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (i = 0; i < ARRAY_SIZE(prio_names); i++) {
                        ^
/datasets/git/builtin/describe.c:450:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (label_width < w)
                                ^
/datasets/git/builtin/describe.c:454:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (cur_match = 0; cur_match < match_cnt; cur_match++) {
                ^
/datasets/git/builtin/describe.c:461:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (gave_up_on) {
                ^
/datasets/git/builtin/describe.c:471:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (all_matches[0].name->misnamed || abbrev)
        ^
/datasets/git/builtin/describe.c:471:36: note: +1
        if (all_matches[0].name->misnamed || abbrev)
                                          ^
/datasets/git/builtin/describe.c:473:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (suffix)
        ^
/datasets/git/builtin/describe.c:306:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit *cmit, *gave_up_on = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/describe.c:306:17: warning: variable 'cmit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *cmit, *gave_up_on = NULL;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/describe.c:307:22: warning: variable 'list' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *list;
                            ^
                                 = NULL
/datasets/git/builtin/describe.c:308:22: warning: variable 'n' is not initialized [cppcoreguidelines-init-variables]
        struct commit_name *n;
                            ^
                              = NULL
/datasets/git/builtin/describe.c:308:22: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/describe.c:310:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned int match_cnt = 0, annotated_cnt = 0, cur_match;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/describe.c:310:49: warning: variable 'cur_match' is not initialized [cppcoreguidelines-init-variables]
        unsigned int match_cnt = 0, annotated_cnt = 0, cur_match;
                                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/describe.c:322:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (n->misnamed || longformat)
                                              ^
                                               {
/datasets/git/builtin/describe.c:324:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (suffix)
                           ^
                            {
/datasets/git/builtin/describe.c:329:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!max_candidates)
                            ^
                             {
/datasets/git/builtin/describe.c:331:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (debug)
                  ^
                   {
/datasets/git/builtin/describe.c:332:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, _("No exact match on refs or tags, searching to describe\n"));
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/describe.c:332:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/describe.c:336:18: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
                struct commit *c;
                               ^
                                 = NULL
/datasets/git/builtin/describe.c:336:18: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/describe.c:337:23: warning: variable 'n' is not initialized [cppcoreguidelines-init-variables]
                struct commit_name *n;
                                    ^
                                      = NULL
/datasets/git/builtin/describe.c:337:23: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/describe.c:340:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                hashmap_for_each_entry(&names, &iter, n,
                ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/builtin/describe.c:340:41: warning: backward branch (for loop) is ID-dependent due to variable reference to 'n' and may cause performance degradation [altera-id-dependent-backward-branch]
                hashmap_for_each_entry(&names, &iter, n,
                                                      ^
/datasets/git/builtin/describe.c:344:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (c)
                              ^
                               {
/datasets/git/builtin/describe.c:351:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        cmit->object.flags = SEEN;
                             ^
/datasets/git/./revision.h:27:16: note: expanded from macro 'SEEN'
#define SEEN            (1u<<0)
                         ^   ~
/datasets/git/builtin/describe.c:354:18: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                struct commit *c = pop_commit(&list);
                               ^
/datasets/git/builtin/describe.c:356:24: warning: variable 'slot' is not initialized [cppcoreguidelines-init-variables]
                struct commit_name **slot;
                                     ^
                                          = NULL
/datasets/git/builtin/describe.c:365:26: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
                                struct possible_tag *t = &all_matches[match_cnt++];
                                                     ^
/datasets/git/builtin/describe.c:367:16: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                t->depth = seen_commits - 1;
                                           ^
/datasets/git/builtin/describe.c:368:22: warning: integer literal has suffix 'u', which is not uppercase [hicpp-uppercase-literal-suffix,readability-uppercase-literal-suffix]
                                t->flag_within = 1u << match_cnt;
                                                 ^~
                                                  U
/datasets/git/builtin/describe.c:369:22: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                t->found_order = match_cnt;
                                                 ^
/datasets/git/builtin/describe.c:371:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (n->prio == 2)
                                                 ^
                                                  {
/datasets/git/builtin/describe.c:379:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (cur_match = 0; cur_match < match_cnt; cur_match++) {
                ^
/datasets/git/builtin/describe.c:355:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                struct commit_list *parents = c->parents;
                ^
/datasets/git/builtin/describe.c:380:25: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
                        struct possible_tag *t = &all_matches[cur_match];
                                             ^
/datasets/git/builtin/describe.c:381:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!(c->object.flags & t->flag_within))
                                                                ^
                                                                 {
/datasets/git/builtin/describe.c:388:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (cur_match = 0; cur_match < match_cnt; cur_match++) {
                        ^
/datasets/git/builtin/describe.c:389:26: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
                                struct possible_tag *t = &all_matches[cur_match];
                                                     ^
/datasets/git/builtin/describe.c:398:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (debug)
                                          ^
                                           {
/datasets/git/builtin/describe.c:399:6: warning: the value returned by this function should be used [cert-err33-c]
                                        fprintf(stderr, _("finished search at %s\n"),
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/describe.c:399:6: note: cast the expression to void to silence this warning
/datasets/git/builtin/describe.c:404:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (parents) {
                ^
/datasets/git/builtin/describe.c:404:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'parents' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (parents) {
                       ^
/datasets/git/builtin/describe.c:405:19: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                        struct commit *p = parents->item;
                                       ^
/datasets/git/builtin/describe.c:407:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!(p->object.flags & SEEN))
                                                ^
/datasets/git/./revision.h:27:16: note: expanded from macro 'SEEN'
#define SEEN            (1u<<0)
                         ^   ~
/datasets/git/builtin/describe.c:407:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!(p->object.flags & SEEN))
                                                      ^
                                                       {
/datasets/git/builtin/describe.c:412:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (first_parent)
                                         ^
                                          {
/datasets/git/builtin/describe.c:421:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (suffix)
                                   ^
                                    {
/datasets/git/builtin/describe.c:425:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (unannotated_cnt)
                                    ^
                                     {
/datasets/git/builtin/describe.c:429:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/describe.c:447:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        int i, w;
                        ^~~~~~~~~
/datasets/git/builtin/describe.c:447:8: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                        int i, w;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/describe.c:447:8: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/describe.c:447:11: warning: variable 'w' is not initialized [cppcoreguidelines-init-variables]
                        int i, w;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/describe.c:447:11: warning: variable name 'w' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/describe.c:448:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = 0; i < ARRAY_SIZE(prio_names); i++) {
                        ^
/datasets/git/builtin/describe.c:449:9: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                w = strlen(_(prio_names[i]));
                                    ^
/datasets/git/builtin/describe.c:450:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (label_width < w)
                                                    ^
                                                     {
/datasets/git/builtin/describe.c:454:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (cur_match = 0; cur_match < match_cnt; cur_match++) {
                ^
/datasets/git/builtin/describe.c:455:25: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
                        struct possible_tag *t = &all_matches[cur_match];
                                             ^
/datasets/git/builtin/describe.c:456:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, " %-*s %8d %s\n",
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/describe.c:456:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/describe.c:460:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, _("traversed %lu commits\n"), seen_commits);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/describe.c:460:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/describe.c:462:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr,
                        ^~~~~~~~~~~~~~~
/datasets/git/builtin/describe.c:462:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/describe.c:471:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (all_matches[0].name->misnamed || abbrev)
                                                    ^
                                                     {
/datasets/git/builtin/describe.c:473:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (suffix)
                   ^
                    {
/datasets/git/builtin/describe.c:477:8: warning: accessing fields in struct 'process_commit_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct process_commit_data {
       ^
/datasets/git/builtin/describe.c:477:8: note: use "__attribute__((aligned(128)))" to align struct 'process_commit_data' to 128 bytes
/datasets/git/builtin/describe.c:514:22: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        if (setup_revisions(args.nr, args.v, &revs, NULL) > 1)
                            ^
/datasets/git/builtin/describe.c:514:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (setup_revisions(args.nr, args.v, &revs, NULL) > 1)
                                                              ^
                                                               {
/datasets/git/builtin/describe.c:517:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prepare_revision_walk(&revs))
                                         ^
                                          {
/datasets/git/builtin/describe.c:528:17: warning: variable 'cmit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *cmit;
                       ^
                            = NULL
/datasets/git/builtin/describe.c:529:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/describe.c:531:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (debug)
                  ^
                   {
/datasets/git/builtin/describe.c:532:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, _("describe %s\n"), arg);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/describe.c:532:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/describe.c:534:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid(arg, &oid))
                               ^
                                {
/datasets/git/builtin/describe.c:538:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cmit)
                 ^
                  {
/datasets/git/builtin/describe.c:540:67: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (oid_object_info(the_repository, &oid, NULL) == OBJ_BLOB)
                                                                         ^
                                                                          {
/datasets/git/builtin/describe.c:542:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/describe.c:547:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!last_one)
                      ^
                       {
/datasets/git/builtin/describe.c:553:5: warning: function 'cmd_describe' has cognitive complexity of 48 (threshold 25) [readability-function-cognitive-complexity]
int cmd_describe(int argc, const char **argv, const char *prefix)
    ^
/datasets/git/builtin/describe.c:585:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (abbrev < 0)
        ^
/datasets/git/builtin/describe.c:588:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (max_candidates < 0)
        ^
/datasets/git/builtin/describe.c:590:7: note: +1, nesting level increased to 1
        else if (max_candidates > MAX_TAGS)
             ^
/datasets/git/builtin/describe.c:595:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (longformat && abbrev == 0)
        ^
/datasets/git/builtin/describe.c:595:17: note: +1
        if (longformat && abbrev == 0)
                       ^
/datasets/git/builtin/describe.c:598:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (contains) {
        ^
/datasets/git/builtin/describe.c:606:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (always)
                ^
/datasets/git/builtin/describe.c:608:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!all) {
                ^
/datasets/git/builtin/describe.c:610:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for_each_string_list_item(item, &patterns)
                        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/describe.c:610:4: note: +1
                        for_each_string_list_item(item, &patterns)
                        ^
/datasets/git/./string-list.h:152:12: note: expanded from macro 'for_each_string_list_item'
             item && item < (list)->items + (list)->nr; \
                  ^
/datasets/git/builtin/describe.c:612:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for_each_string_list_item(item, &exclude_patterns)
                        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/describe.c:612:4: note: +1
                        for_each_string_list_item(item, &exclude_patterns)
                        ^
/datasets/git/./string-list.h:152:12: note: expanded from macro 'for_each_string_list_item'
             item && item < (list)->items + (list)->nr; \
                  ^
/datasets/git/builtin/describe.c:615:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (argc)
                ^
/datasets/git/builtin/describe.c:617:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/describe.c:624:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!hashmap_get_size(&names) && !always)
        ^
/datasets/git/builtin/describe.c:624:32: note: +1
        if (!hashmap_get_size(&names) && !always)
                                      ^
/datasets/git/builtin/describe.c:627:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (argc == 0) {
        ^
/datasets/git/builtin/describe.c:628:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (broken) {
                ^
/datasets/git/builtin/describe.c:635:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!dirty)
                        ^
/datasets/git/builtin/describe.c:638:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        switch (run_command(&cp)) {
                        ^
/datasets/git/builtin/describe.c:649:10: note: +1, nesting level increased to 2
                } else if (dirty) {
                       ^
/datasets/git/builtin/describe.c:661:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (0 <= fd)
                        ^
/datasets/git/builtin/describe.c:666:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (setup_revisions(args.nr, args.v, &revs, NULL) != 1)
                        ^
/datasets/git/builtin/describe.c:670:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!diff_result_code(&revs.diffopt, result))
                        ^
/datasets/git/builtin/describe.c:672:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/builtin/describe.c:677:9: note: +1, nesting level increased to 1
        } else if (dirty) {
               ^
/datasets/git/builtin/describe.c:679:9: note: +1, nesting level increased to 1
        } else if (broken) {
               ^
/datasets/git/builtin/describe.c:681:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/describe.c:682:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (argc-- > 0)
                ^
/datasets/git/builtin/describe.c:557:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "contains",   &contains, N_("find the tag that comes after the commit")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/describe.c:558:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "debug",      &debug, N_("debug search strategy on stderr")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/describe.c:559:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "all",        &all, N_("use any ref")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/describe.c:560:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "tags",       &tags, N_("use any tag, even unannotated")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/describe.c:561:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "long",       &longformat, N_("always use long format")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/describe.c:562:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "first-parent", &first_parent, N_("only follow first parent")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/describe.c:564:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT(0, "exact-match", &max_candidates,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/describe.c:572:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "always",        &always,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/describe.c:585:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (abbrev < 0)
                       ^
                        {
/datasets/git/builtin/describe.c:588:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (max_candidates < 0)
                               ^
                                {
/datasets/git/builtin/describe.c:590:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (max_candidates > MAX_TAGS)
                                           ^
                                            {
/datasets/git/builtin/describe.c:595:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (longformat && abbrev == 0)
                                      ^
                                       {
/datasets/git/builtin/describe.c:599:28: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
                struct string_list_item *item;
                                         ^
                                              = NULL
/datasets/git/builtin/describe.c:599:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                struct string_list_item *item;
                ^
/datasets/git/builtin/describe.c:606:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (always)
                           ^
                            {
/datasets/git/builtin/describe.c:610:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for_each_string_list_item(item, &patterns)
                        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/describe.c:599:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                struct string_list_item *item;
                ^
/datasets/git/builtin/describe.c:610:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for_each_string_list_item(item, &patterns)
                                                  ^
/datasets/git/builtin/describe.c:612:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for_each_string_list_item(item, &exclude_patterns)
                        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/describe.c:612:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for_each_string_list_item(item, &exclude_patterns)
                                                  ^
/datasets/git/builtin/describe.c:615:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (argc)
                         ^
                          {
/datasets/git/builtin/describe.c:617:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/describe.c:619:23: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                return cmd_name_rev(args.nr, args.v, prefix);
                                    ^
/datasets/git/builtin/describe.c:624:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!hashmap_get_size(&names) && !always)
                                                 ^
                                                  {
/datasets/git/builtin/describe.c:629:25: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
                        struct child_process cp = CHILD_PROCESS_INIT;
                                             ^
/datasets/git/builtin/describe.c:635:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!dirty)
                                   ^
                                    {
/datasets/git/builtin/describe.c:653:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        int fd, result;
                        ^~~~~~~~~~~~~~~
/datasets/git/builtin/describe.c:653:8: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
                        int fd, result;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/describe.c:653:8: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/describe.c:653:12: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
                        int fd, result;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/describe.c:657:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        refresh_index(&the_index, REFRESH_QUIET|REFRESH_UNMERGED,
                                                  ^
/datasets/git/./refs/../cache.h:923:42: note: expanded from macro 'REFRESH_QUIET'
#define REFRESH_QUIET                    (1 << 2) /* be quiet about it */
                                         ^~~~~~~~
/datasets/git/builtin/describe.c:657:44: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        refresh_index(&the_index, REFRESH_QUIET|REFRESH_UNMERGED,
                                                                ^
/datasets/git/./refs/../cache.h:922:43: note: expanded from macro 'REFRESH_UNMERGED'
#define REFRESH_UNMERGED                 (1 << 1) /* allow unmerged */
                                          ^
/datasets/git/builtin/describe.c:661:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (0 <= fd)
                                    ^
                                     {
/datasets/git/builtin/describe.c:666:24: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        if (setup_revisions(args.nr, args.v, &revs, NULL) != 1)
                                            ^
/datasets/git/builtin/describe.c:666:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (setup_revisions(args.nr, args.v, &revs, NULL) != 1)
                                                                               ^
                                                                                {
/datasets/git/builtin/describe.c:670:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!diff_result_code(&revs.diffopt, result))
                                                                     ^
                                                                      {
/datasets/git/builtin/describe.c:672:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/builtin/describe.c:682:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (argc-- > 0)
                ^
/datasets/git/builtin/describe.c:682:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'argc' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (argc-- > 0)
                       ^
/datasets/git/builtin/describe.c:682:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (argc-- > 0)
                                  ^
                                   {
/datasets/git/builtin/diagnose.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "parse-options.h"
^        ~~~~~~~~~~~~~~~~~
         "diagnose.h"
/datasets/git/builtin/diagnose.c:15:12: warning: variable name 'tm' is too short, expected at least 3 characters [readability-identifier-length]
        struct tm tm;
                  ^
/datasets/git/builtin/diagnose.c:19:8: warning: variable 'prefixed_filename' is not initialized [cppcoreguidelines-init-variables]
        char *prefixed_filename;
              ^
                                = NULL
/datasets/git/builtin/diagnose.c:32:2: warning: Value stored to 'argc' is never read [clang-analyzer-deadcode.DeadStores]
        argc = parse_options(argc, argv, prefix, diagnose_options,
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/diagnose.c:32:2: note: Value stored to 'argc' is never read
        argc = parse_options(argc, argv, prefix, diagnose_options,
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/diagnose.c:55:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (create_diagnostics_archive(&zip_path, mode))
                                                        ^
                                                         {
/datasets/git/builtin/diff-files.c:7:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "builtin.h"
/datasets/git/builtin/diff-files.c:23:6: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        int result;
            ^
                   = 0
/datasets/git/builtin/diff-files.c:26:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc == 2 && !strcmp(argv[1], "-h"))
                                                ^
                                                 {
/datasets/git/builtin/diff-files.c:39:2: warning: Value stored to 'prefix' is never read [clang-analyzer-deadcode.DeadStores]
        prefix = precompose_argv_prefix(argc, argv, prefix);
        ^        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/diff-files.c:39:2: note: Value stored to 'prefix' is never read
        prefix = precompose_argv_prefix(argc, argv, prefix);
        ^        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/diff-files.c:42:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1 < argc && argv[1][0] == '-') {
        ^
/datasets/git/builtin/diff-files.c:42:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'argc' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (1 < argc && argv[1][0] == '-') {
               ^
/datasets/git/builtin/diff-files.c:43:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(argv[1], "--base"))
                                               ^
                                                {
/datasets/git/builtin/diff-files.c:45:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(argv[1], "--ours"))
                                                    ^
                                                     {
/datasets/git/builtin/diff-files.c:47:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(argv[1], "--theirs"))
                                                      ^
                                                       {
/datasets/git/builtin/diff-files.c:49:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(argv[1], "-q"))
                                                ^
                                                 {
/datasets/git/builtin/diff-files.c:50:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        options |= DIFF_SILENT_ON_REMOVED;
                        ^
/datasets/git/builtin/diff-files.c:51:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/diff-files.c:55:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!rev.diffopt.output_format)
                                       ^
                                        {
/datasets/git/builtin/diff-files.c:66:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            3 < rev.max_count)
                              ^
                               {
/datasets/git/builtin/diff-files.c:75:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            (rev.diffopt.output_format & DIFF_FORMAT_PATCH))
             ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/diff-files.c:75:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            (rev.diffopt.output_format & DIFF_FORMAT_PATCH))
                                                            ^
                                                             {
/datasets/git/builtin/diff-index.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "builtin.h"
/datasets/git/builtin/diff-index.c:20:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/diff-index.c:20:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/diff-index.c:21:6: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        int result;
            ^
                   = 0
/datasets/git/builtin/diff-index.c:23:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc == 2 && !strcmp(argv[1], "-h"))
                                                ^
                                                 {
/datasets/git/builtin/diff-index.c:29:2: warning: Value stored to 'prefix' is never read [clang-analyzer-deadcode.DeadStores]
        prefix = precompose_argv_prefix(argc, argv, prefix);
        ^        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/diff-index.c:29:2: note: Value stored to 'prefix' is never read
        prefix = precompose_argv_prefix(argc, argv, prefix);
        ^        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/diff-index.c:38:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 1; i < argc; i++) {
        ^
/datasets/git/builtin/diff-index.c:38:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'argc' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 1; i < argc; i++) {
                    ^
/datasets/git/builtin/diff-index.c:41:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(arg, "--cached"))
                                             ^
                                              {
/datasets/git/builtin/diff-index.c:42:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        option |= DIFF_INDEX_CACHED;
                        ^
/datasets/git/builtin/diff-index.c:43:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(arg, "--merge-base"))
                                                      ^
                                                       {
/datasets/git/builtin/diff-index.c:44:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        option |= DIFF_INDEX_MERGE_BASE;
                        ^
/datasets/git/builtin/diff-index.c:45:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(arg, "-m"))
                                            ^
                                             {
/datasets/git/builtin/diff-index.c:47:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/diff-index.c:50:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!rev.diffopt.output_format)
                                       ^
                                        {
/datasets/git/builtin/diff-index.c:60:68: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            rev.max_count != -1 || rev.min_age != -1 || rev.max_age != -1)
                                                                          ^
                                                                           {
/datasets/git/builtin/diff-index.c:62:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(option & DIFF_INDEX_CACHED)) {
              ^
/datasets/git/builtin/diff-tree.c:3:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "builtin.h"
/datasets/git/builtin/diff-tree.c:11:24: warning: variable 'log_tree_opt' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct rev_info log_tree_opt;
                       ^
/datasets/git/builtin/diff-tree.c:16:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!commit)
                    ^
                     {
/datasets/git/builtin/diff-tree.c:22:65: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static int stdin_diff_commit(struct commit *commit, const char *p)
                                                                ^
/datasets/git/builtin/diff-tree.c:28:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (isspace(*p++) && !parse_oid_hex(p, &oid, &p)) {
        ^
/datasets/git/builtin/diff-tree.c:28:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        while (isspace(*p++) && !parse_oid_hex(p, &oid, &p)) {
               ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/builtin/diff-tree.c:44:61: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static int stdin_diff_trees(struct tree *tree1, const char *p)
                                                            ^
/datasets/git/builtin/diff-tree.c:47:15: warning: variable 'tree2' is not initialized [cppcoreguidelines-init-variables]
        struct tree *tree2;
                     ^
                           = NULL
/datasets/git/builtin/diff-tree.c:48:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!isspace(*p++) || parse_oid_hex(p, &oid, &p) || *p)
             ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/builtin/diff-tree.c:48:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!isspace(*p++) || parse_oid_hex(p, &oid, &p) || *p)
                                                               ^
                                                                {
/datasets/git/builtin/diff-tree.c:51:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!tree2 || parse_tree(tree2))
                                        ^
                                         {
/datasets/git/builtin/diff-tree.c:63:12: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int len = strlen(line);
                  ^
/datasets/git/builtin/diff-tree.c:65:17: warning: variable 'obj' is not initialized [cppcoreguidelines-init-variables]
        struct object *obj;
                       ^
                           = NULL
/datasets/git/builtin/diff-tree.c:66:14: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        const char *p;
                    ^
                      = NULL
/datasets/git/builtin/diff-tree.c:66:14: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/diff-tree.c:68:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!len || line[len-1] != '\n')
                                        ^
                                         {
/datasets/git/builtin/diff-tree.c:71:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_oid_hex(line, &oid, &p))
                                          ^
                                           {
/datasets/git/builtin/diff-tree.c:74:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!obj)
                 ^
                  {
/datasets/git/builtin/diff-tree.c:76:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (obj->type == OBJ_COMMIT)
                                    ^
                                     {
/datasets/git/builtin/diff-tree.c:78:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (obj->type == OBJ_TREE)
                                  ^
                                   {
/datasets/git/builtin/diff-tree.c:98:82: warning: parameter 'opt' is unused [misc-unused-parameters]
static void diff_tree_tweak_rev(struct rev_info *rev, struct setup_revision_opt *opt)
                                                                                 ^
/datasets/git/builtin/diff-tree.c:101:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (rev->dense_combined_merges)
                                               ^
                                                {
/datasets/git/builtin/diff-tree.c:103:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/diff-tree.c:108:5: warning: function 'cmd_diff_tree' has cognitive complexity of 44 (threshold 25) [readability-function-cognitive-complexity]
int cmd_diff_tree(int argc, const char **argv, const char *prefix)
    ^
/datasets/git/builtin/diff-tree.c:118:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (argc == 2 && !strcmp(argv[1], "-h"))
        ^
/datasets/git/builtin/diff-tree.c:118:16: note: +1
        if (argc == 2 && !strcmp(argv[1], "-h"))
                      ^
/datasets/git/builtin/diff-tree.c:123:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (repo_read_index(the_repository) < 0)
        ^
/datasets/git/builtin/diff-tree.c:137:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!opt->show_notes_given && w.notes)
        ^
/datasets/git/builtin/diff-tree.c:137:29: note: +1
        if (!opt->show_notes_given && w.notes)
                                   ^
/datasets/git/builtin/diff-tree.c:139:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt->show_notes)
        ^
/datasets/git/builtin/diff-tree.c:142:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (--argc > 0) {
        ^
/datasets/git/builtin/diff-tree.c:145:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(arg, "--stdin")) {
                ^
/datasets/git/builtin/diff-tree.c:149:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(arg, "--merge-base")) {
                ^
/datasets/git/builtin/diff-tree.c:156:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (read_stdin && merge_base)
        ^
/datasets/git/builtin/diff-tree.c:156:17: note: +1
        if (read_stdin && merge_base)
                       ^
/datasets/git/builtin/diff-tree.c:158:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (merge_base && opt->pending.nr != 2)
        ^
/datasets/git/builtin/diff-tree.c:158:17: note: +1
        if (merge_base && opt->pending.nr != 2)
                       ^
/datasets/git/builtin/diff-tree.c:170:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        switch (opt->pending.nr) {
        ^
/datasets/git/builtin/diff-tree.c:172:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!read_stdin)
                ^
/datasets/git/builtin/diff-tree.c:182:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (merge_base) {
                ^
/datasets/git/builtin/diff-tree.c:187:10: note: +1, nesting level increased to 2
                } else if (tree2->flags & UNINTERESTING) {
                       ^
/datasets/git/builtin/diff-tree.c:188:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        SWAP(tree2, tree1);
                        ^
/datasets/git/./git-compat-util.h:759:20: note: expanded from macro 'SWAP'
#define SWAP(a, b) do {                                         \
                   ^
/datasets/git/builtin/diff-tree.c:195:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (read_stdin) {
        ^
/datasets/git/builtin/diff-tree.c:201:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opt->diffopt.detect_rename) {
                ^
/datasets/git/builtin/diff-tree.c:202:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!the_index.cache)
                        ^
/datasets/git/builtin/diff-tree.c:206:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (fgets(line, sizeof(line), stdin)) {
                ^
/datasets/git/builtin/diff-tree.c:209:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (get_oid_hex(line, &oid)) {
                        ^
/datasets/git/builtin/diff-tree.c:213:4: note: +1, nesting level increased to 3
                        else {
                        ^
/datasets/git/builtin/diff-tree.c:215:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (saved_nrl < opt->diffopt.needed_rename_limit)
                                ^
/datasets/git/builtin/diff-tree.c:217:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (opt->diffopt.degraded_cc_to_c)
                                ^
/datasets/git/builtin/diff-tree.c:110:12: warning: 1000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        char line[1000];
                  ^
/datasets/git/builtin/diff-tree.c:111:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct object *tree1, *tree2;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/diff-tree.c:111:17: warning: variable 'tree1' is not initialized [cppcoreguidelines-init-variables]
        struct object *tree1, *tree2;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/diff-tree.c:111:25: warning: variable 'tree2' is not initialized [cppcoreguidelines-init-variables]
        struct object *tree1, *tree2;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/diff-tree.c:112:26: warning: variable 'opt' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
        static struct rev_info *opt = &log_tree_opt;
                                ^
/datasets/git/builtin/diff-tree.c:114:25: warning: variable name 'w' is too short, expected at least 3 characters [readability-identifier-length]
        struct userformat_want w;
                               ^
/datasets/git/builtin/diff-tree.c:118:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc == 2 && !strcmp(argv[1], "-h"))
                                                ^
                                                 {
/datasets/git/builtin/diff-tree.c:123:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_read_index(the_repository) < 0)
                                                ^
                                                 {
/datasets/git/builtin/diff-tree.c:128:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&s_r_opt, 0, sizeof(s_r_opt));
        ^~~~~~
/datasets/git/builtin/diff-tree.c:128:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&s_r_opt, 0, sizeof(s_r_opt));
        ^~~~~~
/datasets/git/builtin/diff-tree.c:131:2: warning: Value stored to 'prefix' is never read [clang-analyzer-deadcode.DeadStores]
        prefix = precompose_argv_prefix(argc, argv, prefix);
        ^        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/diff-tree.c:131:2: note: Value stored to 'prefix' is never read
        prefix = precompose_argv_prefix(argc, argv, prefix);
        ^        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/diff-tree.c:134:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&w, 0, sizeof(w));
        ^~~~~~
/datasets/git/builtin/diff-tree.c:134:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&w, 0, sizeof(w));
        ^~~~~~
/datasets/git/builtin/diff-tree.c:137:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opt->show_notes_given && w.notes)
                                              ^
                                               {
/datasets/git/builtin/diff-tree.c:139:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->show_notes)
                            ^
                             {
/datasets/git/builtin/diff-tree.c:142:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (--argc > 0) {
        ^
/datasets/git/builtin/diff-tree.c:142:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'argc' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (--argc > 0) {
               ^
/datasets/git/builtin/diff-tree.c:156:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (read_stdin && merge_base)
                                     ^
                                      {
/datasets/git/builtin/diff-tree.c:158:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (merge_base && opt->pending.nr != 2)
                                               ^
                                                {
/datasets/git/builtin/diff-tree.c:172:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!read_stdin)
                                ^
                                 {
/datasets/git/builtin/diff-tree.c:187:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                } else if (tree2->flags & UNINTERESTING) {
                                          ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/builtin/diff-tree.c:188:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        SWAP(tree2, tree1);
                        ^
/datasets/git/./git-compat-util.h:759:20: note: expanded from macro 'SWAP'
#define SWAP(a, b) do {                                         \
                   ^
/datasets/git/builtin/diff-tree.c:188:4: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                        SWAP(tree2, tree1);
                        ^
/datasets/git/./git-compat-util.h:762:29: note: expanded from macro 'SWAP'
        unsigned char _swap_buffer[sizeof(a)];                  \
                                   ^
/datasets/git/builtin/diff-tree.c:188:4: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        SWAP(tree2, tree1);
                        ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/builtin/diff-tree.c:188:4: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                        SWAP(tree2, tree1);
                        ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/builtin/diff-tree.c:202:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!the_index.cache)
                                             ^
                                              {
/datasets/git/builtin/diff-tree.c:204:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        opt->diffopt.setup |= DIFF_SETUP_USE_SIZE_CACHE;
                        ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/diff-tree.c:206:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (fgets(line, sizeof(line), stdin)) {
                ^
/datasets/git/builtin/diff-tree.c:210:5: warning: the value returned by this function should be used [cert-err33-c]
                                fputs(line, stdout);
                                ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/diff-tree.c:210:5: note: cast the expression to void to silence this warning
/datasets/git/builtin/diff-tree.c:211:5: warning: the value returned by this function should be used [cert-err33-c]
                                fflush(stdout);
                                ^~~~~~~~~~~~~~
/datasets/git/builtin/diff-tree.c:211:5: note: cast the expression to void to silence this warning
/datasets/git/builtin/diff-tree.c:215:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (saved_nrl < opt->diffopt.needed_rename_limit)
                                                                                 ^
                                                                                  {
/datasets/git/builtin/diff-tree.c:217:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (opt->diffopt.degraded_cc_to_c)
                                                                  ^
                                                                   {
/datasets/git/builtin/diff.c:8:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "blob.h"
/datasets/git/builtin/diff.c:24:1: warning: replace macro with enum [modernize-macro-to-enum]
#define DIFF_NO_INDEX_EXPLICIT 1
^~~~~~~~
                               =,
/datasets/git/builtin/diff.c:24:9: warning: macro 'DIFF_NO_INDEX_EXPLICIT' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define DIFF_NO_INDEX_EXPLICIT 1
        ^
/datasets/git/builtin/diff.c:25:9: warning: macro 'DIFF_NO_INDEX_IMPLICIT' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define DIFF_NO_INDEX_IMPLICIT 2
        ^
/datasets/git/builtin/diff.c:51:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct diff_filespec *one, *two;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/diff.c:51:24: warning: variable 'one' is not initialized [cppcoreguidelines-init-variables]
        struct diff_filespec *one, *two;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/diff.c:51:30: warning: variable 'two' is not initialized [cppcoreguidelines-init-variables]
        struct diff_filespec *one, *two;
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/diff.c:54:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            oideq(old_oid, new_oid) && (old_mode == new_mode))
                                                              ^
                                                               {
/datasets/git/builtin/diff.c:58:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                SWAP(old_mode, new_mode);
                ^
/datasets/git/./git-compat-util.h:759:20: note: expanded from macro 'SWAP'
#define SWAP(a, b) do {                                         \
                   ^
/datasets/git/builtin/diff.c:58:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                SWAP(old_mode, new_mode);
                ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/builtin/diff.c:58:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                SWAP(old_mode, new_mode);
                ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/builtin/diff.c:59:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                SWAP(old_oid, new_oid);
                ^
/datasets/git/./git-compat-util.h:759:20: note: expanded from macro 'SWAP'
#define SWAP(a, b) do {                                         \
                   ^
/datasets/git/builtin/diff.c:59:3: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                SWAP(old_oid, new_oid);
                ^
/datasets/git/./git-compat-util.h:762:29: note: expanded from macro 'SWAP'
        unsigned char _swap_buffer[sizeof(a)];                  \
                                   ^
/datasets/git/builtin/diff.c:59:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                SWAP(old_oid, new_oid);
                ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/builtin/diff.c:59:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                SWAP(old_oid, new_oid);
                ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/builtin/diff.c:60:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                SWAP(old_path, new_path);
                ^
/datasets/git/./git-compat-util.h:759:20: note: expanded from macro 'SWAP'
#define SWAP(a, b) do {                                         \
                   ^
/datasets/git/builtin/diff.c:60:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                SWAP(old_path, new_path);
                ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/builtin/diff.c:60:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                SWAP(old_path, new_path);
                ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/builtin/diff.c:64:7: warning: function 'strncmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
            (strncmp(old_path, opt->prefix, opt->prefix_length) ||
             ^
                                                                != 0
/datasets/git/builtin/diff.c:65:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
             strncmp(new_path, opt->prefix, opt->prefix_length)))
                                                                 ^
                                                                  {
/datasets/git/builtin/diff.c:77:31: warning: parameter 'argv' is unused [misc-unused-parameters]
                            int argc, const char **argv,
                                      ~~~~~~~~~~~~~^~~~~
/datasets/git/builtin/diff.c:81:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/builtin/diff.c:82:14: warning: variable 'path' is not initialized [cppcoreguidelines-init-variables]
        const char *path;
                    ^
                         = NULL
/datasets/git/builtin/diff.c:84:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc > 1)
                     ^
                      {
/datasets/git/builtin/diff.c:87:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        GUARD_PATHSPEC(&revs->prune_data, PATHSPEC_FROMTOP | PATHSPEC_LITERAL);
        ^
/datasets/git/./pathspec.h:59:2: note: expanded from macro 'GUARD_PATHSPEC'
        do { \
        ^
/datasets/git/builtin/diff.c:87:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        GUARD_PATHSPEC(&revs->prune_data, PATHSPEC_FROMTOP | PATHSPEC_LITERAL);
        ^
/datasets/git/./pathspec.h:60:7: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                    ^             ~~~~~~~
/datasets/git/builtin/diff.c:87:2: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
        GUARD_PATHSPEC(&revs->prune_data, PATHSPEC_FROMTOP | PATHSPEC_LITERAL);
        ^
/datasets/git/./pathspec.h:60:21: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                                  ^~~~~~~
/datasets/git/builtin/diff.c:87:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        GUARD_PATHSPEC(&revs->prune_data, PATHSPEC_FROMTOP | PATHSPEC_LITERAL);
                                          ^
/datasets/git/./pathspec.h:7:26: note: expanded from macro 'PATHSPEC_FROMTOP'
#define PATHSPEC_FROMTOP        (1<<0)
                                ^~~~~~
/datasets/git/./pathspec.h:60:23: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                                    ^~~~
/datasets/git/builtin/diff.c:87:55: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        GUARD_PATHSPEC(&revs->prune_data, PATHSPEC_FROMTOP | PATHSPEC_LITERAL);
                                                             ^
/datasets/git/./pathspec.h:9:27: note: expanded from macro 'PATHSPEC_LITERAL'
#define PATHSPEC_LITERAL        (1<<2)
                                 ^
/datasets/git/./pathspec.h:60:23: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                                    ^~~~
/datasets/git/builtin/diff.c:90:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (lstat(path, &st))
                             ^
                              {
/datasets/git/builtin/diff.c:92:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(S_ISREG(st.st_mode) || S_ISLNK(st.st_mode)))
                                                          ^
                                                           {
/datasets/git/builtin/diff.c:97:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (blob[0]->mode == S_IFINVALID)
                                         ^
                                          {
/datasets/git/builtin/diff.c:112:33: warning: parameter 'argv' is unused [misc-unused-parameters]
                              int argc, const char **argv,
                                        ~~~~~~~~~~~~~^~~~~
/datasets/git/builtin/diff.c:117:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc > 1)
                     ^
                      {
/datasets/git/builtin/diff.c:120:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (blob[0]->mode == S_IFINVALID)
                                         ^
                                          {
/datasets/git/builtin/diff.c:123:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (blob[1]->mode == S_IFINVALID)
                                         ^
                                          {
/datasets/git/builtin/diff.c:140:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1 < argc) {
        ^
/datasets/git/builtin/diff.c:142:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(arg, "--cached") || !strcmp(arg, "--staged"))
                                                                         ^
                                                                          {
/datasets/git/builtin/diff.c:143:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        option |= DIFF_INDEX_CACHED;
                        ^
/datasets/git/builtin/diff.c:144:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(arg, "--merge-base"))
                                                      ^
                                                       {
/datasets/git/builtin/diff.c:145:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        option |= DIFF_INDEX_MERGE_BASE;
                        ^
/datasets/git/builtin/diff.c:146:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/diff.c:156:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            revs->max_age != -1)
                                ^
                                 {
/datasets/git/builtin/diff.c:158:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(option & DIFF_INDEX_CACHED)) {
              ^
/datasets/git/builtin/diff.c:181:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1 < argc) {
        ^
/datasets/git/builtin/diff.c:183:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(arg, "--merge-base"))
                                                 ^
                                                  {
/datasets/git/builtin/diff.c:185:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/diff.c:201:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ent1->item->flags & UNINTERESTING)
                                        ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/builtin/diff.c:201:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ent1->item->flags & UNINTERESTING)
                                                      ^
                                                       {
/datasets/git/builtin/diff.c:212:29: warning: parameter 'argv' is unused [misc-unused-parameters]
                                 int argc, const char **argv,
                                           ~~~~~~~~~~~~~^~~~~
/datasets/git/builtin/diff.c:217:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/diff.c:217:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/diff.c:219:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc > 1)
                     ^
                      {
/datasets/git/builtin/diff.c:222:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (first_non_parent < 0)
                                 ^
                                  {
/datasets/git/builtin/diff.c:224:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (first_non_parent >= ents)
                                     ^
                                      {
/datasets/git/builtin/diff.c:229:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ents; i++) {
        ^
/datasets/git/builtin/diff.c:230:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (i != first_non_parent)
                                          ^
                                           {
/datasets/git/builtin/diff.c:241:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/builtin/diff.c:241:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/diff.c:244:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fd < 0)
                   ^
                    {
/datasets/git/builtin/diff.c:248:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        refresh_index(&the_index, REFRESH_QUIET|REFRESH_UNMERGED, NULL, NULL,
                                  ^
/datasets/git/./refs/../cache.h:923:42: note: expanded from macro 'REFRESH_QUIET'
#define REFRESH_QUIET                    (1 << 2) /* be quiet about it */
                                         ^~~~~~~~
/datasets/git/builtin/diff.c:248:42: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        refresh_index(&the_index, REFRESH_QUIET|REFRESH_UNMERGED, NULL, NULL,
                                                ^
/datasets/git/./refs/../cache.h:922:43: note: expanded from macro 'REFRESH_UNMERGED'
#define REFRESH_UNMERGED                 (1 << 1) /* allow unmerged */
                                          ^
/datasets/git/builtin/diff.c:257:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1 < argc && argv[1][0] == '-') {
        ^
/datasets/git/builtin/diff.c:258:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(argv[1], "--base"))
                                               ^
                                                {
/datasets/git/builtin/diff.c:260:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(argv[1], "--ours"))
                                                    ^
                                                     {
/datasets/git/builtin/diff.c:262:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(argv[1], "--theirs"))
                                                      ^
                                                       {
/datasets/git/builtin/diff.c:264:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(argv[1], "-q"))
                                                ^
                                                 {
/datasets/git/builtin/diff.c:265:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        options |= DIFF_SILENT_ON_REMOVED;
                        ^
/datasets/git/builtin/diff.c:266:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(argv[1], "-h"))
                                                ^
                                                 {
/datasets/git/builtin/diff.c:268:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/diff.c:280:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            (revs->diffopt.output_format & DIFF_FORMAT_PATCH))
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/diff.c:280:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            (revs->diffopt.output_format & DIFF_FORMAT_PATCH))
                                                              ^
                                                               {
/datasets/git/builtin/diff.c:292:8: warning: accessing fields in struct 'symdiff' is inefficient due to padding; only needs 36 bytes but is using 40 bytes [altera-struct-pack-align]
struct symdiff {
       ^
/datasets/git/builtin/diff.c:292:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'symdiff'
/datasets/git/builtin/diff.c:292:8: warning: accessing fields in struct 'symdiff' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct symdiff {
       ^
/datasets/git/builtin/diff.c:292:8: note: use "__attribute__((aligned(64)))" to align struct 'symdiff' to 64 bytes
/datasets/git/builtin/diff.c:319:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, is_symdiff = 0, basecount = 0, othercount = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/diff.c:319:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, is_symdiff = 0, basecount = 0, othercount = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/diff.c:319:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/diff.c:320:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int lpos = -1, rpos = -1, basepos = -1;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/diff.c:338:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < rev->cmdline.nr; i++) {
        ^
/datasets/git/builtin/diff.c:342:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (basepos < 0)
                                        ^
                                         {
/datasets/git/builtin/diff.c:347:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (lpos >= 0)
                                      ^
                                       {
/datasets/git/builtin/diff.c:350:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (obj->flags & SYMMETRIC_LEFT) {
                                         ^
/datasets/git/./revision.h:35:25: note: expanded from macro 'SYMMETRIC_LEFT'
#define SYMMETRIC_LEFT  (1u<<8)
                         ^   ~
/datasets/git/builtin/diff.c:356:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (rpos >= 0)
                                      ^
                                       {
/datasets/git/builtin/diff.c:366:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!map)
                         ^
                          {
/datasets/git/builtin/diff.c:374:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (lpos >= 0 && othercount > 0)
                                        ^
                                         {
/datasets/git/builtin/diff.c:386:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (basecount == 0)
                           ^
                            {
/datasets/git/builtin/diff.c:394:5: warning: function 'cmd_diff' has cognitive complexity of 71 (threshold 25) [readability-function-cognitive-complexity]
int cmd_diff(int argc, const char **argv, const char *prefix)
    ^
/datasets/git/builtin/diff.c:439:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 1; i < argc; i++) {
        ^
/datasets/git/builtin/diff.c:440:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(argv[i], "--")) {
                ^
/datasets/git/builtin/diff.c:444:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(argv[i], "--no-index"))
                ^
/datasets/git/builtin/diff.c:446:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (argv[i][0] != '-')
                ^
/datasets/git/builtin/diff.c:452:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!nongit) {
        ^
/datasets/git/builtin/diff.c:457:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!no_index) {
        ^
/datasets/git/builtin/diff.c:465:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (nongit || ((argc == i + 2) &&
                ^
/datasets/git/builtin/diff.c:465:14: note: +1
                if (nongit || ((argc == i + 2) &&
                           ^
/datasets/git/builtin/diff.c:465:34: note: +1
                if (nongit || ((argc == i + 2) &&
                                               ^
/datasets/git/builtin/diff.c:466:47: note: +1
                               (!path_inside_repo(prefix, argv[i]) ||
                                                                   ^
/datasets/git/builtin/diff.c:484:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (no_index)
        ^
/datasets/git/builtin/diff.c:502:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (nongit)
        ^
/datasets/git/builtin/diff.c:505:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!rev.diffopt.output_format) {
        ^
/datasets/git/builtin/diff.c:519:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!rev.pending.nr) {
        ^
/datasets/git/builtin/diff.c:521:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 1; i < argc; i++) {
                ^
/datasets/git/builtin/diff.c:523:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!strcmp(arg, "--"))
                        ^
/datasets/git/builtin/diff.c:525:9: note: +1, nesting level increased to 3
                        else if (!strcmp(arg, "--cached") ||
                             ^
/datasets/git/builtin/diff.c:525:38: note: +1
                        else if (!strcmp(arg, "--cached") ||
                                                          ^
/datasets/git/builtin/diff.c:528:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!rev.pending.nr) {
                                ^
/datasets/git/builtin/diff.c:540:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < rev.pending.nr; i++) {
        ^
/datasets/git/builtin/diff.c:545:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!obj->parsed)
                ^
/datasets/git/builtin/diff.c:548:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!obj)
                ^
/datasets/git/builtin/diff.c:550:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (obj->type == OBJ_COMMIT)
                ^
/datasets/git/builtin/diff.c:553:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (obj->type == OBJ_TREE) {
                ^
/datasets/git/builtin/diff.c:554:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (sdiff.skip && bitmap_get(sdiff.skip, i))
                        ^
/datasets/git/builtin/diff.c:554:19: note: +1
                        if (sdiff.skip && bitmap_get(sdiff.skip, i))
                                       ^
/datasets/git/builtin/diff.c:558:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (first_non_parent < 0 &&
                        ^
/datasets/git/builtin/diff.c:558:29: note: +1
                        if (first_non_parent < 0 &&
                                                 ^
/datasets/git/builtin/diff.c:559:29: note: +1
                            (i >= rev.cmdline.nr || /* HEAD by hand. */
                                                 ^
/datasets/git/builtin/diff.c:562:10: note: +1, nesting level increased to 2
                } else if (obj->type == OBJ_BLOB) {
                       ^
/datasets/git/builtin/diff.c:563:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (2 <= blobs)
                        ^
/datasets/git/builtin/diff.c:568:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/diff.c:572:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (rev.prune_data.nr)
        ^
/datasets/git/builtin/diff.c:578:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!ent.nr) {
        ^
/datasets/git/builtin/diff.c:579:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                switch (blobs) {
                ^
/datasets/git/builtin/diff.c:584:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (paths != 1)
                        ^
/datasets/git/builtin/diff.c:589:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (paths)
                        ^
/datasets/git/builtin/diff.c:597:7: note: +1, nesting level increased to 1
        else if (blobs)
             ^
/datasets/git/builtin/diff.c:599:7: note: +1, nesting level increased to 1
        else if (ent.nr == 1)
             ^
/datasets/git/builtin/diff.c:601:7: note: +1, nesting level increased to 1
        else if (ent.nr == 2) {
             ^
/datasets/git/builtin/diff.c:602:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (sdiff.warn)
                ^
/datasets/git/builtin/diff.c:607:4: note: +1, nesting level increased to 1
        } else
          ^
/datasets/git/builtin/diff.c:612:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (1 < rev.diffopt.skip_stat_unmatch)
        ^
/datasets/git/builtin/diff.c:615:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        UNLEAK(ent);
        ^
/datasets/git/./git-compat-util.h:1544:21: note: expanded from macro 'UNLEAK'
#define UNLEAK(var) do {} while (0)
                    ^
/datasets/git/builtin/diff.c:616:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        UNLEAK(blob);
        ^
/datasets/git/./git-compat-util.h:1544:21: note: expanded from macro 'UNLEAK'
#define UNLEAK(var) do {} while (0)
                    ^
/datasets/git/builtin/diff.c:396:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/diff.c:396:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/diff.c:400:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int blobs = 0, paths = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/diff.c:402:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int nongit = 0, no_index = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/diff.c:394:14: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
int cmd_diff(int argc, const char **argv, const char *prefix)
             ^
/datasets/git/builtin/diff.c:439:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 1; i < argc; i++) {
        ^
/datasets/git/builtin/diff.c:439:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'argc' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 1; i < argc; i++) {
                    ^
/datasets/git/builtin/diff.c:444:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(argv[i], "--no-index"))
                                                   ^
                                                    {
/datasets/git/builtin/diff.c:446:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (argv[i][0] != '-')
                                      ^
                                       {
/datasets/git/builtin/diff.c:467:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                !path_inside_repo(prefix, argv[i + 1]))))
                                                                         ^
                                                                          {
/datasets/git/builtin/diff.c:484:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (no_index)
                     ^
                      {
/datasets/git/builtin/diff.c:485:3: warning: function is not thread safe [concurrency-mt-unsafe]
                exit(diff_no_index(&rev, no_index == DIFF_NO_INDEX_IMPLICIT,
                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/diff.c:394:14: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
int cmd_diff(int argc, const char **argv, const char *prefix)
             ^
/datasets/git/builtin/diff.c:502:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (nongit)
                   ^
                    {
/datasets/git/builtin/diff.c:520:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/builtin/diff.c:520:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/diff.c:521:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 1; i < argc; i++) {
                ^
/datasets/git/builtin/diff.c:521:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'argc' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 1; i < argc; i++) {
                            ^
/datasets/git/builtin/diff.c:523:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!strcmp(arg, "--"))
                                               ^
                                                {
/datasets/git/builtin/diff.c:525:4: warning: do not use 'else' after 'break' [llvm-else-after-return,readability-else-after-return]
                        else if (!strcmp(arg, "--cached") ||
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/diff.c:529:19: warning: variable 'tree' is not initialized [cppcoreguidelines-init-variables]
                                        struct tree *tree;
                                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/diff.c:540:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < rev.pending.nr; i++) {
        ^
/datasets/git/builtin/diff.c:544:15: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int flags = (obj->flags & UNINTERESTING);
                            ^
/datasets/git/builtin/diff.c:544:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                int flags = (obj->flags & UNINTERESTING);
                                          ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/builtin/diff.c:545:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!obj->parsed)
                                 ^
                                  {
/datasets/git/builtin/diff.c:548:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!obj)
                         ^
                          {
/datasets/git/builtin/diff.c:550:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (obj->type == OBJ_COMMIT)
                                            ^
                                             {
/datasets/git/builtin/diff.c:554:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (sdiff.skip && bitmap_get(sdiff.skip, i))
                                                                    ^
                                                                     {
/datasets/git/builtin/diff.c:556:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        obj->flags |= flags;
                        ^             ~~~~~
/datasets/git/builtin/diff.c:560:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                             rev.cmdline.rev[i].whence != REV_CMD_PARENTS_ONLY))
                                                                                ^
                                                                                 {
/datasets/git/builtin/diff.c:561:24: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                first_non_parent = ent.nr - 1;
                                                   ^
/datasets/git/builtin/diff.c:563:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (2 <= blobs)
                                       ^
                                        {
/datasets/git/builtin/diff.c:572:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (rev.prune_data.nr)
                              ^
                               {
/datasets/git/builtin/diff.c:584:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (paths != 1)
                                       ^
                                        {
/datasets/git/builtin/diff.c:589:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (paths)
                                  ^
                                   {
/datasets/git/builtin/diff.c:597:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (blobs)
                       ^
                        {
/datasets/git/builtin/diff.c:599:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (ent.nr == 1)
                             ^
                              {
/datasets/git/builtin/diff.c:602:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (sdiff.warn)
                               ^
                                {
/datasets/git/builtin/diff.c:607:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/builtin/diff.c:609:26: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                               ent.objects, ent.nr,
                                                            ^
/datasets/git/builtin/diff.c:612:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (1 < rev.diffopt.skip_stat_unmatch)
                                              ^
                                               {
/datasets/git/builtin/diff.c:615:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        UNLEAK(ent);
        ^
/datasets/git/./git-compat-util.h:1544:21: note: expanded from macro 'UNLEAK'
#define UNLEAK(var) do {} while (0)
                    ^
/datasets/git/builtin/diff.c:616:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        UNLEAK(blob);
        ^
/datasets/git/./git-compat-util.h:1544:21: note: expanded from macro 'UNLEAK'
#define UNLEAK(var) do {} while (0)
                    ^
/datasets/git/builtin/difftool.c:16:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "builtin.h"
/datasets/git/builtin/difftool.c:28:12: warning: variable 'trust_exit_code' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int trust_exit_code;
           ^
/datasets/git/builtin/difftool.c:35:70: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int difftool_config(const char *var, const char *value, void *cb)
                                                                     ^
/datasets/git/builtin/difftool.c:54:35: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static int parse_index_info(char *p, int *mode1, int *mode2,
                                  ^
/datasets/git/builtin/difftool.c:58:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*p != ':')
                      ^
                       {
/datasets/git/builtin/difftool.c:60:34: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        *mode1 = (int)strtol(p + 1, &p, 8);
                                        ^
/datasets/git/builtin/difftool.c:61:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*p != ' ')
                      ^
                       {
/datasets/git/builtin/difftool.c:63:34: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        *mode2 = (int)strtol(p + 1, &p, 8);
                                        ^
/datasets/git/builtin/difftool.c:64:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*p != ' ')
                      ^
                       {
/datasets/git/builtin/difftool.c:66:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_oid_hex(++p, oid1, (const char **)&p))
                                                        ^
                                                         {
/datasets/git/builtin/difftool.c:68:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*p != ' ')
                      ^
                       {
/datasets/git/builtin/difftool.c:70:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_oid_hex(++p, oid2, (const char **)&p))
                                                        ^
                                                         {
/datasets/git/builtin/difftool.c:72:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*p != ' ')
                      ^
                       {
/datasets/git/builtin/difftool.c:75:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!*status)
                     ^
                      {
/datasets/git/builtin/difftool.c:77:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (p[1] && !isdigit(p[1]))
                     ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/builtin/difftool.c:77:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (p[1] && !isdigit(p[1]))
                                   ^
                                    {
/datasets/git/builtin/difftool.c:89:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (buf->len && buf->buf[buf->len - 1] != '/')
                                                      ^
                                                       {
/datasets/git/builtin/difftool.c:97:24: warning: 2 adjacent parameters of 'use_wt_file' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int use_wt_file(const char *workdir, const char *name,
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/difftool.c:97:36: note: the first parameter in the range is 'workdir'
static int use_wt_file(const char *workdir, const char *name,
                                   ^~~~~~~
/datasets/git/builtin/difftool.c:97:57: note: the last parameter in the range is 'name'
static int use_wt_file(const char *workdir, const char *name,
                                                        ^~~~
/datasets/git/builtin/difftool.c:101:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/builtin/difftool.c:109:7: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
                int fd = open(buf.buf, O_RDONLY);
                    ^
/datasets/git/builtin/difftool.c:109:34: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
                int fd = open(buf.buf, O_RDONLY);
                                               ^
                                                | O_CLOEXEC
/datasets/git/builtin/difftool.c:116:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        } else if (oideq(oid, &wt_oid))
                                                       ^
                                                        {
/datasets/git/builtin/difftool.c:132:7: warning: 2 adjacent parameters of 'working_tree_entry_cmp' of similar type ('const struct hashmap_entry *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                  const struct hashmap_entry *eptr,
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/difftool.c:132:35: note: the first parameter in the range is 'eptr'
                                  const struct hashmap_entry *eptr,
                                                              ^~~~
/datasets/git/builtin/difftool.c:133:35: note: the last parameter in the range is 'entry_or_key'
                                  const struct hashmap_entry *entry_or_key,
                                                              ^~~~~~~~~~~~
/datasets/git/builtin/difftool.c:136:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const struct working_tree_entry *a, *b;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/difftool.c:136:35: warning: variable 'a' is not initialized [cppcoreguidelines-init-variables]
        const struct working_tree_entry *a, *b;
                                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/difftool.c:136:35: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/difftool.c:136:39: warning: variable 'b' is not initialized [cppcoreguidelines-init-variables]
        const struct working_tree_entry *a, *b;
                                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/difftool.c:136:39: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/difftool.c:155:7: warning: 2 adjacent parameters of 'pair_cmp' of similar type ('const struct hashmap_entry *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                    const struct hashmap_entry *eptr,
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/difftool.c:155:35: note: the first parameter in the range is 'eptr'
                    const struct hashmap_entry *eptr,
                                                ^~~~
/datasets/git/builtin/difftool.c:156:35: note: the last parameter in the range is 'entry_or_key'
                    const struct hashmap_entry *entry_or_key,
                                                ^~~~~~~~~~~~
/datasets/git/builtin/difftool.c:159:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const struct pair_entry *a, *b;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/difftool.c:159:27: warning: variable 'a' is not initialized [cppcoreguidelines-init-variables]
        const struct pair_entry *a, *b;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/difftool.c:159:27: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/difftool.c:159:31: warning: variable 'b' is not initialized [cppcoreguidelines-init-variables]
        const struct pair_entry *a, *b;
                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/difftool.c:159:31: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/difftool.c:167:52: warning: 2 adjacent parameters of 'add_left_or_right' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void add_left_or_right(struct hashmap *map, const char *path,
                                                   ^~~~~~~~~~~~~~~~~
/datasets/git/builtin/difftool.c:167:64: note: the first parameter in the range is 'path'
static void add_left_or_right(struct hashmap *map, const char *path,
                                                               ^~~~
/datasets/git/builtin/difftool.c:168:22: note: the last parameter in the range is 'content'
                              const char *content, int is_right)
                                          ^~~~~~~
/datasets/git/builtin/difftool.c:170:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct pair_entry *e, *existing;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/difftool.c:170:21: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct pair_entry *e, *existing;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/difftool.c:170:21: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/difftool.c:170:25: warning: variable 'existing' is not initialized [cppcoreguidelines-init-variables]
        struct pair_entry *e, *existing;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/difftool.c:172:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FLEX_ALLOC_STR(e, path, path);
        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^
/datasets/git/./git-compat-util.h:1151:47: note: expanded from macro 'FLEX_ALLOC_MEM'
#define FLEX_ALLOC_MEM(x, flexname, buf, len) do { \
                                              ^
/datasets/git/builtin/difftool.c:172:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        FLEX_ALLOC_STR(e, path, path);
        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/builtin/difftool.c:172:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        FLEX_ALLOC_STR(e, path, path);
        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/builtin/difftool.c:191:6: warning: 2 adjacent parameters of 'path_entry_cmp' of similar type ('const struct hashmap_entry *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                          const struct hashmap_entry *eptr,
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/difftool.c:191:34: note: the first parameter in the range is 'eptr'
                          const struct hashmap_entry *eptr,
                                                      ^~~~
/datasets/git/builtin/difftool.c:192:34: note: the last parameter in the range is 'entry_or_key'
                          const struct hashmap_entry *entry_or_key,
                                                      ^~~~~~~~~~~~
/datasets/git/builtin/difftool.c:195:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const struct path_entry *a, *b;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/difftool.c:195:27: warning: variable 'a' is not initialized [cppcoreguidelines-init-variables]
        const struct path_entry *a, *b;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/difftool.c:195:27: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/difftool.c:195:31: warning: variable 'b' is not initialized [cppcoreguidelines-init-variables]
        const struct path_entry *a, *b;
                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/difftool.c:195:31: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/difftool.c:203:51: warning: 2 adjacent parameters of 'changed_files' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void changed_files(struct hashmap *result, const char *index_path,
                                                  ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/difftool.c:203:63: note: the first parameter in the range is 'index_path'
static void changed_files(struct hashmap *result, const char *index_path,
                                                              ^~~~~~~~~~
/datasets/git/builtin/difftool.c:204:18: note: the last parameter in the range is 'workdir'
                          const char *workdir)
                                      ^~~~~~~
/datasets/git/builtin/difftool.c:210:8: warning: variable 'fp' is not initialized [cppcoreguidelines-init-variables]
        FILE *fp;
              ^
                 = NULL
/datasets/git/builtin/difftool.c:210:8: warning: variable name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/difftool.c:237:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (start_command(&diff_files))
                                       ^
                                        {
/datasets/git/builtin/difftool.c:240:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'buf' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (!strbuf_getline_nul(&buf, fp)) {
               ^
/datasets/git/builtin/difftool.c:241:22: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
                struct path_entry *entry;
                                   ^
                                         = NULL
/datasets/git/builtin/difftool.c:242:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FLEX_ALLOC_STR(entry, path, buf.buf);
                ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^
/datasets/git/./git-compat-util.h:1151:47: note: expanded from macro 'FLEX_ALLOC_MEM'
#define FLEX_ALLOC_MEM(x, flexname, buf, len) do { \
                                              ^
/datasets/git/builtin/difftool.c:242:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                FLEX_ALLOC_STR(entry, path, buf.buf);
                ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/builtin/difftool.c:242:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                FLEX_ALLOC_STR(entry, path, buf.buf);
                ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/builtin/difftool.c:246:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(fp);
        ^~~~~~~~~~
/datasets/git/builtin/difftool.c:246:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/difftool.c:247:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (finish_command(&diff_files))
                                        ^
                                         {
/datasets/git/builtin/difftool.c:284:8: warning: variable 'data' is not initialized [cppcoreguidelines-init-variables]
        char *data;
              ^
                   = NULL
/datasets/git/builtin/difftool.c:289:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (strbuf_readlink(&link, path, strlen(path)))
                                                                       ^
                                                                        {
/datasets/git/builtin/difftool.c:291:44: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                } else if (strbuf_read_file(&link, path, 128))
                                                         ^
/datasets/git/builtin/difftool.c:291:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else if (strbuf_read_file(&link, path, 128))
                                                              ^
                                                               {
/datasets/git/builtin/difftool.c:296:20: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
                enum object_type type;
                                 ^
/datasets/git/builtin/difftool.c:297:17: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
                unsigned long size;
                              ^
                                   = 0
/datasets/git/builtin/difftool.c:299:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!data)
                          ^
                           {
/datasets/git/builtin/difftool.c:310:22: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
        struct cache_entry *ce;
                            ^
                               = NULL
/datasets/git/builtin/difftool.c:310:22: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/difftool.c:311:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/builtin/difftool.c:321:4: warning: 2 adjacent parameters of 'write_file_in_directory' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                        const char *path, const char *content)
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/difftool.c:321:16: note: the first parameter in the range is 'path'
                        const char *path, const char *content)
                                    ^~~~
/datasets/git/builtin/difftool.c:321:34: note: the last parameter in the range is 'content'
                        const char *path, const char *content)
                                                      ^~~~~~~
/datasets/git/builtin/difftool.c:339:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*entry->left)
                         ^
                          {
/datasets/git/builtin/difftool.c:341:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*entry->right)
                          ^
                           {
/datasets/git/builtin/difftool.c:345:12: warning: function 'run_dir_diff' has cognitive complexity of 116 (threshold 25) [readability-function-cognitive-complexity]
static int run_dir_diff(const char *extcmd, int symlinks, const char *prefix,
           ^
/datasets/git/builtin/difftool.c:375:40: note: +1, including nesting penalty of 0, nesting level increased to 1
        strbuf_add_absolute_path(&tmpdir, tmp ? tmp : "/tmp");
                                              ^
/datasets/git/builtin/difftool.c:378:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!mkdtemp(tmpdir.buf)) {
        ^
/datasets/git/builtin/difftool.c:380:3: note: +1
                goto finish;
                ^
/datasets/git/builtin/difftool.c:385:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!wtdir.len || !is_dir_sep(wtdir.buf[wtdir.len - 1]))
        ^
/datasets/git/builtin/difftool.c:385:17: note: +1
        if (!wtdir.len || !is_dir_sep(wtdir.buf[wtdir.len - 1]))
                       ^
/datasets/git/builtin/difftool.c:411:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (start_command(child))
        ^
/datasets/git/builtin/difftool.c:417:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (!strbuf_getline_nul(&info, fp)) {
        ^
/datasets/git/builtin/difftool.c:423:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (starts_with(info.buf, "::"))
                ^
/datasets/git/builtin/difftool.c:428:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (parse_index_info(info.buf, &lmode, &rmode, &loid, &roid,
                ^
/datasets/git/builtin/difftool.c:431:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (strbuf_getline_nul(&lpath, fp))
                ^
/datasets/git/builtin/difftool.c:436:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (status != 'C' && status != 'R') {
                ^
/datasets/git/builtin/difftool.c:436:21: note: +1
                if (status != 'C' && status != 'R') {
                                  ^
/datasets/git/builtin/difftool.c:438:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/difftool.c:439:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (strbuf_getline_nul(&rpath, fp))
                        ^
/datasets/git/builtin/difftool.c:444:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (S_ISGITLINK(lmode) || S_ISGITLINK(rmode)) {
                ^
/datasets/git/builtin/difftool.c:444:26: note: +1
                if (S_ISGITLINK(lmode) || S_ISGITLINK(rmode)) {
                                       ^
/datasets/git/builtin/difftool.c:452:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (oideq(&loid, &roid))
                        ^
/datasets/git/builtin/difftool.c:458:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (S_ISLNK(lmode)) {
                ^
/datasets/git/builtin/difftool.c:464:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (S_ISLNK(rmode)) {
                ^
/datasets/git/builtin/difftool.c:470:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (lmode && status != 'C') {
                ^
/datasets/git/builtin/difftool.c:470:13: note: +1
                if (lmode && status != 'C') {
                          ^
/datasets/git/builtin/difftool.c:471:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (checkout_path(lmode, &loid, src_path, &lstate)) {
                        ^
/datasets/git/builtin/difftool.c:473:5: note: +1
                                goto finish;
                                ^
/datasets/git/builtin/difftool.c:477:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (rmode && !S_ISLNK(rmode)) {
                ^
/datasets/git/builtin/difftool.c:477:13: note: +1
                if (rmode && !S_ISLNK(rmode)) {
                          ^
/datasets/git/builtin/difftool.c:481:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        FLEX_ALLOC_STR(entry, path, dst_path);
                        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^
/datasets/git/./git-compat-util.h:1151:47: note: expanded from macro 'FLEX_ALLOC_MEM'
#define FLEX_ALLOC_MEM(x, flexname, buf, len) do { \
                                              ^
/datasets/git/builtin/difftool.c:483:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (hashmap_get(&working_tree_dups, &entry->entry,
                        ^
/datasets/git/builtin/difftool.c:490:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!use_wt_file(workdir, dst_path, &roid)) {
                        ^
/datasets/git/builtin/difftool.c:491:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (checkout_path(rmode, &roid, dst_path,
                                ^
/datasets/git/builtin/difftool.c:495:6: note: +1
                                        goto finish;
                                        ^
/datasets/git/builtin/difftool.c:497:11: note: +1, nesting level increased to 3
                        } else if (!is_null_oid(&roid)) {
                               ^
/datasets/git/builtin/difftool.c:511:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (ensure_leading_directories(rdir.buf)) {
                                ^
/datasets/git/builtin/difftool.c:515:6: note: +1
                                        goto finish;
                                        ^
/datasets/git/builtin/difftool.c:518:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (symlinks) {
                                ^
/datasets/git/builtin/difftool.c:519:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (symlink(wtdir.buf, rdir.buf)) {
                                        ^
/datasets/git/builtin/difftool.c:521:7: note: +1
                                                goto finish;
                                                ^
/datasets/git/builtin/difftool.c:523:7: note: +1, nesting level increased to 4
                                } else {
                                  ^
/datasets/git/builtin/difftool.c:525:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (stat(wtdir.buf, &st))
                                        ^
/datasets/git/builtin/difftool.c:527:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (copy_file(rdir.buf, wtdir.buf,
                                        ^
/datasets/git/builtin/difftool.c:530:7: note: +1
                                                goto finish;
                                                ^
/datasets/git/builtin/difftool.c:539:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (finish_command(child)) {
        ^
/datasets/git/builtin/difftool.c:541:3: note: +1
                goto finish;
                ^
/datasets/git/builtin/difftool.c:544:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!i)
        ^
/datasets/git/builtin/difftool.c:552:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        hashmap_for_each_entry(&submodules, &iter, entry,
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/builtin/difftool.c:562:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        hashmap_for_each_entry(&symlinks2, &iter, entry,
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/builtin/difftool.c:571:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (extcmd) {
        ^
/datasets/git/builtin/difftool.c:573:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/difftool.c:598:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < wtindex.cache_nr; i++) {
        ^
/datasets/git/builtin/difftool.c:604:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (lstat(rdir.buf, &st))
                ^
/datasets/git/builtin/difftool.c:607:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((symlinks && S_ISLNK(st.st_mode)) || !S_ISREG(st.st_mode))
                ^
/datasets/git/builtin/difftool.c:607:41: note: +1
                if ((symlinks && S_ISLNK(st.st_mode)) || !S_ISREG(st.st_mode))
                                                      ^
/datasets/git/builtin/difftool.c:607:17: note: +1
                if ((symlinks && S_ISLNK(st.st_mode)) || !S_ISREG(st.st_mode))
                              ^
/datasets/git/builtin/difftool.c:610:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!indices_loaded) {
                ^
/datasets/git/builtin/difftool.c:614:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (hold_lock_file_for_update(&lock, buf.buf, 0) < 0 ||
                        ^
/datasets/git/builtin/difftool.c:614:57: note: +1
                        if (hold_lock_file_for_update(&lock, buf.buf, 0) < 0 ||
                                                                             ^
/datasets/git/builtin/difftool.c:617:5: note: +1
                                goto finish;
                                ^
/datasets/git/builtin/difftool.c:627:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (hashmap_get(&tmp_modified, &dummy, name)) {
                ^
/datasets/git/builtin/difftool.c:629:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (hashmap_get(&wt_modified, &dummy, name)) {
                        ^
/datasets/git/builtin/difftool.c:635:11: note: +1, nesting level increased to 3
                        } else if (unlink(wtdir.buf) ||
                               ^
/datasets/git/builtin/difftool.c:635:33: note: +1
                        } else if (unlink(wtdir.buf) ||
                                                     ^
/datasets/git/builtin/difftool.c:642:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (err) {
        ^
/datasets/git/builtin/difftool.c:646:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/difftool.c:648:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ret)
                ^
/datasets/git/builtin/difftool.c:653:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (fp)
        ^
/datasets/git/builtin/difftool.c:664:19: note: +1, including nesting penalty of 0, nesting level increased to 1
        return (ret < 0) ? 1 : ret;
                         ^
/datasets/git/builtin/difftool.c:348:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct strbuf info = STRBUF_INIT, lpath = STRBUF_INIT;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/difftool.c:349:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct strbuf rpath = STRBUF_INIT, buf = STRBUF_INIT;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/difftool.c:350:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct strbuf ldir = STRBUF_INIT, rdir = STRBUF_INIT;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/difftool.c:353:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *lbase_dir = NULL, *rbase_dir = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/difftool.c:354:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t ldir_len, rdir_len, wtdir_len;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/difftool.c:354:9: warning: variable 'ldir_len' is not initialized [cppcoreguidelines-init-variables]
        size_t ldir_len, rdir_len, wtdir_len;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/difftool.c:354:19: warning: variable 'rdir_len' is not initialized [cppcoreguidelines-init-variables]
        size_t ldir_len, rdir_len, wtdir_len;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/difftool.c:354:29: warning: variable 'wtdir_len' is not initialized [cppcoreguidelines-init-variables]
        size_t ldir_len, rdir_len, wtdir_len;
                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/difftool.c:355:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *workdir, *tmp;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/difftool.c:355:14: warning: variable 'workdir' is not initialized [cppcoreguidelines-init-variables]
        const char *workdir, *tmp;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/difftool.c:355:24: warning: variable 'tmp' is not initialized [cppcoreguidelines-init-variables]
        const char *workdir, *tmp;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/difftool.c:356:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int ret = 0, i;
        ^~~~~~~~~~~~~~~
/datasets/git/builtin/difftool.c:356:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int ret = 0, i;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/difftool.c:356:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/difftool.c:357:8: warning: variable name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
        FILE *fp = NULL;
              ^
/datasets/git/builtin/difftool.c:363:21: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
        struct pair_entry *entry;
                           ^
                                 = NULL
/datasets/git/builtin/difftool.c:365:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct checkout lstate, rstate;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/difftool.c:368:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct hashmap wt_modified, tmp_modified;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/difftool.c:374:8: warning: function is not thread safe [concurrency-mt-unsafe]
        tmp = getenv("TMPDIR");
              ^
/datasets/git/builtin/difftool.c:385:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!wtdir.len || !is_dir_sep(wtdir.buf[wtdir.len - 1]))
                                                                ^
                                                                 {
/datasets/git/builtin/difftool.c:387:18: warning: 0700 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mkdir(ldir.buf, 0700);
                        ^
/datasets/git/builtin/difftool.c:388:18: warning: 0700 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mkdir(rdir.buf, 0700);
                        ^
/datasets/git/builtin/difftool.c:390:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&wtindex, 0, sizeof(wtindex));
        ^~~~~~
/datasets/git/builtin/difftool.c:390:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&wtindex, 0, sizeof(wtindex));
        ^~~~~~
/datasets/git/builtin/difftool.c:392:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&lstate, 0, sizeof(lstate));
        ^~~~~~
/datasets/git/builtin/difftool.c:392:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&lstate, 0, sizeof(lstate));
        ^~~~~~
/datasets/git/builtin/difftool.c:394:24: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        lstate.base_dir_len = ldir.len;
                              ^
/datasets/git/builtin/difftool.c:396:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&rstate, 0, sizeof(rstate));
        ^~~~~~
/datasets/git/builtin/difftool.c:396:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&rstate, 0, sizeof(rstate));
        ^~~~~~
/datasets/git/builtin/difftool.c:398:24: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        rstate.base_dir_len = rdir.len;
                              ^
/datasets/git/builtin/difftool.c:411:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (start_command(child))
                                 ^
                                  {
/datasets/git/builtin/difftool.c:417:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'info' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (!strbuf_getline_nul(&info, fp)) {
               ^
/datasets/git/builtin/difftool.c:418:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int lmode, rmode;
                ^~~~~~~~~~~~~~~~~
/datasets/git/builtin/difftool.c:418:7: warning: variable 'lmode' is not initialized [cppcoreguidelines-init-variables]
                int lmode, rmode;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/difftool.c:418:14: warning: variable 'rmode' is not initialized [cppcoreguidelines-init-variables]
                int lmode, rmode;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/difftool.c:419:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                struct object_id loid, roid;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/difftool.c:420:8: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
                char status;
                     ^
                            = 0
/datasets/git/builtin/difftool.c:421:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                const char *src_path, *dst_path;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/difftool.c:421:15: warning: variable 'src_path' is not initialized [cppcoreguidelines-init-variables]
                const char *src_path, *dst_path;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/difftool.c:421:26: warning: variable 'dst_path' is not initialized [cppcoreguidelines-init-variables]
                const char *src_path, *dst_path;
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/difftool.c:423:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (starts_with(info.buf, "::"))
                                                ^
                                                 {
/datasets/git/builtin/difftool.c:429:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                     &status))
                                              ^
                                               {
/datasets/git/builtin/difftool.c:431:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strbuf_getline_nul(&lpath, fp))
                                                   ^
                                                    {
/datasets/git/builtin/difftool.c:439:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (strbuf_getline_nul(&rpath, fp))
                                                           ^
                                                            {
/datasets/git/builtin/difftool.c:444:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (S_ISGITLINK(lmode) || S_ISGITLINK(rmode)) {
                    ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^~~
/datasets/git/builtin/difftool.c:444:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (S_ISGITLINK(lmode) || S_ISGITLINK(rmode)) {
                                          ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^~~
/datasets/git/builtin/difftool.c:452:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (oideq(&loid, &roid))
                                                ^
                                                 {
/datasets/git/builtin/difftool.c:478:31: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
                        struct working_tree_entry *entry;
                                                   ^
                                                         = NULL
/datasets/git/builtin/difftool.c:481:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        FLEX_ALLOC_STR(entry, path, dst_path);
                        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^
/datasets/git/./git-compat-util.h:1151:47: note: expanded from macro 'FLEX_ALLOC_MEM'
#define FLEX_ALLOC_MEM(x, flexname, buf, len) do { \
                                              ^
/datasets/git/builtin/difftool.c:481:4: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        FLEX_ALLOC_STR(entry, path, dst_path);
                        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/builtin/difftool.c:481:4: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                        FLEX_ALLOC_STR(entry, path, dst_path);
                        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/builtin/difftool.c:524:18: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                                        struct stat st;
                                                    ^
/datasets/git/builtin/difftool.c:525:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        if (stat(wtdir.buf, &st))
                                                                 ^
                                                                  {
/datasets/git/builtin/difftool.c:526:20: warning: 0644 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                                st.st_mode = 0644;
                                                             ^
/datasets/git/builtin/difftool.c:528:13: warning: narrowing conversion from '__mode_t' (aka 'unsigned int') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                                      st.st_mode)) {
                                                      ^
/datasets/git/builtin/difftool.c:537:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(fp);
        ^~~~~~~~~~
/datasets/git/builtin/difftool.c:537:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/difftool.c:544:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!i)
               ^
                {
/datasets/git/builtin/difftool.c:552:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        hashmap_for_each_entry(&submodules, &iter, entry,
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/builtin/difftool.c:363:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct pair_entry *entry;
        ^
/datasets/git/builtin/difftool.c:552:45: warning: backward branch (for loop) is ID-dependent due to variable reference to 'entry' and may cause performance degradation [altera-id-dependent-backward-branch]
        hashmap_for_each_entry(&submodules, &iter, entry,
                                                   ^
/datasets/git/builtin/difftool.c:562:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        hashmap_for_each_entry(&symlinks2, &iter, entry,
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/builtin/difftool.c:562:44: warning: backward branch (for loop) is ID-dependent due to variable reference to 'entry' and may cause performance degradation [altera-id-dependent-backward-branch]
        hashmap_for_each_entry(&symlinks2, &iter, entry,
                                                  ^
/datasets/git/builtin/difftool.c:576:3: warning: function is not thread safe [concurrency-mt-unsafe]
                setenv("GIT_DIFFTOOL_DIRDIFF", "true", 1);
                ^
/datasets/git/builtin/difftool.c:598:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < wtindex.cache_nr; i++) {
        ^
/datasets/git/builtin/difftool.c:601:15: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                struct stat st;
                            ^
/datasets/git/builtin/difftool.c:604:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (lstat(rdir.buf, &st))
                                         ^
                                          {
/datasets/git/builtin/difftool.c:607:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((symlinks && S_ISLNK(st.st_mode)) || !S_ISREG(st.st_mode))
                                                                              ^
                                                                               {
/datasets/git/builtin/difftool.c:615:44: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            write_locked_index(&wtindex, &lock, COMMIT_LOCK)) {
                                                                ^
/datasets/git/./refs/../cache.h:744:23: note: expanded from macro 'COMMIT_LOCK'
#define COMMIT_LOCK             (1 << 0)
                                 ^
/datasets/git/builtin/difftool.c:636:39: warning: narrowing conversion from '__mode_t' (aka 'unsigned int') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                   copy_file(wtdir.buf, rdir.buf, st.st_mode))
                                                                  ^
/datasets/git/builtin/difftool.c:636:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                   copy_file(wtdir.buf, rdir.buf, st.st_mode))
                                                                              ^
                                                                               {
/datasets/git/builtin/difftool.c:648:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret)
                        ^
                         {
/datasets/git/builtin/difftool.c:653:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fp)
               ^
                {
/datasets/git/builtin/difftool.c:654:3: warning: the value returned by this function should be used [cert-err33-c]
                fclose(fp);
                ^~~~~~~~~~
/datasets/git/builtin/difftool.c:654:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/difftool.c:675:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prompt > 0)
                       ^
                        {
/datasets/git/builtin/difftool.c:677:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!prompt)
                         ^
                          {
/datasets/git/builtin/difftool.c:689:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int use_gui_tool = 0, dir_diff = 0, prompt = -1, symlinks = 0,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/difftool.c:691:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        static char *difftool_cmd = NULL, *extcmd = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/difftool.c:691:15: warning: variable 'difftool_cmd' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
        static char *difftool_cmd = NULL, *extcmd = NULL;
                     ^
/datasets/git/builtin/difftool.c:691:37: warning: variable 'extcmd' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
        static char *difftool_cmd = NULL, *extcmd = NULL;
                                           ^
/datasets/git/builtin/difftool.c:693:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('g', "gui", &use_gui_tool,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/difftool.c:695:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('d', "dir-diff", &dir_diff,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/difftool.c:697:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT_F('y', "no-prompt", &prompt,
                ^
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/difftool.c:700:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT_F(0, "prompt", &prompt, NULL,
                ^
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/difftool.c:701:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        1, PARSE_OPT_NONEG | PARSE_OPT_HIDDEN),
                           ^
/datasets/git/./parse-options.h:166:32: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                                                  ^
/datasets/git/builtin/difftool.c:702:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "symlinks", &symlinks,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/difftool.c:706:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "tool-help", &tool_help,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/difftool.c:709:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "trust-exit-code", &trust_exit_code,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/difftool.c:714:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "no-index", &no_index, N_("passed to `diff`")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/difftool.c:722:2: warning: Value stored to 'argc' is never read [clang-analyzer-deadcode.DeadStores]
        argc = parse_options(argc, argv, prefix, builtin_difftool_options,
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/difftool.c:722:2: note: Value stored to 'argc' is never read
        argc = parse_options(argc, argv, prefix, builtin_difftool_options,
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/difftool.c:723:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                             builtin_difftool_usage, PARSE_OPT_KEEP_UNKNOWN_OPT |
                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/difftool.c:726:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (tool_help)
                      ^
                       {
/datasets/git/builtin/difftool.c:729:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!no_index && !startup_info->have_repository)
                                                        ^
                                                         {
/datasets/git/builtin/difftool.c:734:3: warning: function is not thread safe [concurrency-mt-unsafe]
                setenv(GIT_DIR_ENVIRONMENT, absolute_path(get_git_dir()), 1);
                ^
/datasets/git/builtin/difftool.c:735:3: warning: function is not thread safe [concurrency-mt-unsafe]
                setenv(GIT_WORK_TREE_ENVIRONMENT, absolute_path(get_git_work_tree()), 1);
                ^
/datasets/git/builtin/difftool.c:736:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else if (dir_diff)
                            ^
                             {
/datasets/git/builtin/difftool.c:743:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (use_gui_tool)
                         ^
                          {
/datasets/git/builtin/difftool.c:744:3: warning: function is not thread safe [concurrency-mt-unsafe]
                setenv("GIT_MERGETOOL_GUI", "true", 1);
                ^
/datasets/git/builtin/difftool.c:746:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*difftool_cmd)
                                  ^
                                   {
/datasets/git/builtin/difftool.c:747:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        setenv("GIT_DIFF_TOOL", difftool_cmd, 1);
                        ^
/datasets/git/builtin/difftool.c:748:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/difftool.c:753:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*extcmd)
                            ^
                             {
/datasets/git/builtin/difftool.c:754:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        setenv("GIT_DIFFTOOL_EXTCMD", extcmd, 1);
                        ^
/datasets/git/builtin/difftool.c:755:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/difftool.c:759:2: warning: function is not thread safe [concurrency-mt-unsafe]
        setenv("GIT_DIFFTOOL_TRUST_EXIT_CODE",
        ^
/datasets/git/builtin/difftool.c:769:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (no_index)
                     ^
                      {
/datasets/git/builtin/difftool.c:771:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (dir_diff)
                     ^
                      {
/datasets/git/builtin/difftool.c:775:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (dir_diff)
                     ^
                      {
builtin/env--helper.c:20:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/env--helper.c:22:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(arg, "bool"))
                                 ^
                                  {
/datasets/git/builtin/env--helper.c:24:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(arg, "ulong"))
                                       ^
                                        {
/datasets/git/builtin/env--helper.c:26:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/env--helper.c:37:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/builtin/env--helper.c:38:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int ret_int, default_int;
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/env--helper.c:38:6: warning: variable 'ret_int' is not initialized [cppcoreguidelines-init-variables]
        int ret_int, default_int;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/env--helper.c:38:15: warning: variable 'default_int' is not initialized [cppcoreguidelines-init-variables]
        int ret_int, default_int;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/env--helper.c:39:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned long ret_ulong, default_ulong;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/env--helper.c:39:16: warning: variable 'ret_ulong' is not initialized [cppcoreguidelines-init-variables]
        unsigned long ret_ulong, default_ulong;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/env--helper.c:39:27: warning: variable 'default_ulong' is not initialized [cppcoreguidelines-init-variables]
        unsigned long ret_ulong, default_ulong;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/env--helper.c:47:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "exit-code", &exit_code,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/env--helper.c:54:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (env_default && !*env_default)
                                         ^
                                          {
/datasets/git/builtin/env--helper.c:56:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!cmdmode)
                     ^
                      {
/datasets/git/builtin/env--helper.c:58:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc != 1)
                      ^
                       {
/datasets/git/builtin/env--helper.c:75:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!exit_code)
                               ^
                                {
/datasets/git/builtin/env--helper.c:90:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!exit_code)
                               ^
                                {
/datasets/git/builtin/env--helper.c:92:9: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                ret = ret_ulong;
                      ^
/datasets/git/builtin/fast-export.c:7:1: warning: #includes are not sorted properly [llvm-include-order]
#include "cache.h"
^        ~~~~~~~~~
         "blob.h"
/datasets/git/builtin/fast-export.c:28:20: warning: variable 'fast_export_usage' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *fast_export_usage[] = {
                   ^
/datasets/git/builtin/fast-export.c:33:12: warning: variable 'progress' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int progress;
           ^
/datasets/git/builtin/fast-export.c:34:69: warning: variable 'signed_tag_mode' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static enum { SIGNED_TAG_ABORT, VERBATIM, WARN, WARN_STRIP, STRIP } signed_tag_mode = SIGNED_TAG_ABORT;
                                                                    ^
/datasets/git/builtin/fast-export.c:35:52: warning: variable 'tag_of_filtered_mode' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static enum { TAG_FILTERING_ABORT, DROP, REWRITE } tag_of_filtered_mode = TAG_FILTERING_ABORT;
                                                   ^
/datasets/git/builtin/fast-export.c:36:59: warning: variable 'reencode_mode' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static enum { REENCODE_ABORT, REENCODE_YES, REENCODE_NO } reencode_mode = REENCODE_ABORT;
                                                          ^
/datasets/git/builtin/fast-export.c:37:12: warning: variable 'fake_missing_tagger' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int fake_missing_tagger;
           ^
/datasets/git/builtin/fast-export.c:38:12: warning: variable 'use_done_feature' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int use_done_feature;
           ^
/datasets/git/builtin/fast-export.c:39:12: warning: variable 'no_data' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int no_data;
           ^
/datasets/git/builtin/fast-export.c:40:12: warning: variable 'full_tree' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int full_tree;
           ^
/datasets/git/builtin/fast-export.c:41:12: warning: variable 'reference_excluded_commits' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int reference_excluded_commits;
           ^
/datasets/git/builtin/fast-export.c:42:12: warning: variable 'show_original_ids' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int show_original_ids;
           ^
/datasets/git/builtin/fast-export.c:43:12: warning: variable 'mark_tags' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int mark_tags;
           ^
/datasets/git/builtin/fast-export.c:44:27: warning: variable 'extra_refs' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct string_list extra_refs = STRING_LIST_INIT_NODUP;
                          ^
/datasets/git/builtin/fast-export.c:45:27: warning: variable 'tag_refs' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct string_list tag_refs = STRING_LIST_INIT_NODUP;
                          ^
/datasets/git/builtin/fast-export.c:46:23: warning: variable 'refspecs' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct refspec refspecs = REFSPEC_INIT_FETCH;
                      ^
/datasets/git/builtin/fast-export.c:47:12: warning: variable 'anonymize' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int anonymize;
           ^
/datasets/git/builtin/fast-export.c:48:23: warning: variable 'anonymized_seeds' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct hashmap anonymized_seeds;
                      ^
/datasets/git/builtin/fast-export.c:49:32: warning: variable 'revision_sources' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct revision_sources revision_sources;
                               ^
/datasets/git/builtin/fast-export.c:51:59: warning: parameter 'opt' is unused [misc-unused-parameters]
static int parse_opt_signed_tag_mode(const struct option *opt,
                                                          ^
/datasets/git/builtin/fast-export.c:54:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unset || !strcmp(arg, "abort"))
                                           ^
                                            {
/datasets/git/builtin/fast-export.c:56:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(arg, "verbatim") || !strcmp(arg, "ignore"))
                                                                    ^
                                                                     {
/datasets/git/builtin/fast-export.c:58:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(arg, "warn"))
                                      ^
                                       {
/datasets/git/builtin/fast-export.c:60:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(arg, "warn-strip"))
                                            ^
                                             {
/datasets/git/builtin/fast-export.c:62:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(arg, "strip"))
                                       ^
                                        {
/datasets/git/builtin/fast-export.c:64:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/fast-export.c:69:64: warning: parameter 'opt' is unused [misc-unused-parameters]
static int parse_opt_tag_of_filtered_mode(const struct option *opt,
                                                               ^
/datasets/git/builtin/fast-export.c:72:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unset || !strcmp(arg, "abort"))
                                           ^
                                            {
/datasets/git/builtin/fast-export.c:74:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(arg, "drop"))
                                      ^
                                       {
/datasets/git/builtin/fast-export.c:76:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(arg, "rewrite"))
                                         ^
                                          {
/datasets/git/builtin/fast-export.c:78:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/fast-export.c:83:57: warning: parameter 'opt' is unused [misc-unused-parameters]
static int parse_opt_reencode_mode(const struct option *opt,
                                                        ^
/datasets/git/builtin/fast-export.c:99:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcasecmp(arg, "abort"))
                                              ^
                                               {
/datasets/git/builtin/fast-export.c:101:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/fast-export.c:108:26: warning: variable 'idnums' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct decoration idnums;
                         ^
/datasets/git/builtin/fast-export.c:109:17: warning: variable 'last_idnum' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static uint32_t last_idnum;
                ^
/datasets/git/builtin/fast-export.c:116:8: warning: accessing fields in struct 'anonymized_entry_key' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct anonymized_entry_key {
       ^
/datasets/git/builtin/fast-export.c:116:8: note: use "__attribute__((aligned(32)))" to align struct 'anonymized_entry_key' to 32 bytes
/datasets/git/builtin/fast-export.c:123:5: warning: 2 adjacent parameters of 'anonymized_entry_cmp' of similar type ('const struct hashmap_entry *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                const struct hashmap_entry *eptr,
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-export.c:123:33: note: the first parameter in the range is 'eptr'
                                const struct hashmap_entry *eptr,
                                                            ^~~~
/datasets/git/builtin/fast-export.c:124:33: note: the last parameter in the range is 'entry_or_key'
                                const struct hashmap_entry *entry_or_key,
                                                            ^~~~~~~~~~~~
/datasets/git/builtin/fast-export.c:127:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const struct anonymized_entry *a, *b;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-export.c:127:33: warning: variable 'a' is not initialized [cppcoreguidelines-init-variables]
        const struct anonymized_entry *a, *b;
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-export.c:127:33: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-export.c:127:37: warning: variable 'b' is not initialized [cppcoreguidelines-init-variables]
        const struct anonymized_entry *a, *b;
                                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-export.c:127:37: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-export.c:152:27: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        struct anonymized_entry *ret;
                                 ^
                                     = NULL
/datasets/git/builtin/fast-export.c:154:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!map->cmpfn)
                        ^
                         {
/datasets/git/builtin/fast-export.c:162:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (anonymized_seeds.cmpfn)
                                   ^
                                    {
/datasets/git/builtin/fast-export.c:164:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/fast-export.c:168:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ret)
                 ^
                  {
/datasets/git/builtin/fast-export.c:173:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FLEX_ALLOC_MEM(ret, orig, orig, len);
                ^
/datasets/git/./git-compat-util.h:1151:47: note: expanded from macro 'FLEX_ALLOC_MEM'
#define FLEX_ALLOC_MEM(x, flexname, buf, len) do { \
                                              ^
/datasets/git/builtin/fast-export.c:188:48: note: inferred assignment of ID-dependent value from ID-dependent variable end_of_component [altera-id-dependent-backward-branch]
static void anonymize_path(struct strbuf *out, const char *path,
                                               ^
/datasets/git/builtin/fast-export.c:173:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                FLEX_ALLOC_MEM(ret, orig, orig, len);
                ^
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/builtin/fast-export.c:173:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                FLEX_ALLOC_MEM(ret, orig, orig, len);
                ^
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/builtin/fast-export.c:192:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*path) {
        ^
/datasets/git/builtin/fast-export.c:192:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'path' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (*path) {
               ^
/datasets/git/builtin/fast-export.c:195:15: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                const char *c = anonymize_str(map, generate, path, len, NULL);
                            ^
/datasets/git/builtin/fast-export.c:198:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*path)
                          ^
                           {
/datasets/git/builtin/fast-export.c:205:9: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
        return (void *)(uintptr_t)mark;
               ^
/datasets/git/builtin/fast-export.c:226:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!decoration)
                        ^
                         {
/datasets/git/builtin/fast-export.c:228:9: warning: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return ptr_to_mark(decoration);
               ^
/datasets/git/builtin/fast-export.c:231:53: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static struct commit *rewrite_commit(struct commit *p)
                                                    ^
/datasets/git/builtin/fast-export.c:233:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/builtin/fast-export.c:234:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (p->parents && p->parents->next)
                                                   ^
                                                    {
/datasets/git/builtin/fast-export.c:236:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (p->object.flags & UNINTERESTING)
                                      ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/builtin/fast-export.c:236:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (p->object.flags & UNINTERESTING)
                                                    ^
                                                     {
/datasets/git/builtin/fast-export.c:238:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(p->object.flags & TREESAME))
                                        ^
/datasets/git/./revision.h:29:19: note: expanded from macro 'TREESAME'
#define TREESAME        (1u<<2)
                         ^   ~
/datasets/git/builtin/fast-export.c:238:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(p->object.flags & TREESAME))
                                                  ^
                                                   {
/datasets/git/builtin/fast-export.c:240:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!p->parents)
                                ^
                                 {
/datasets/git/builtin/fast-export.c:250:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!progress)
                      ^
                       {
/datasets/git/builtin/fast-export.c:252:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((++counter % progress) == 0)
                                        ^
                                         {
/datasets/git/builtin/fast-export.c:278:16: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size;
                      ^
                           = 0
/datasets/git/builtin/fast-export.c:279:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/builtin/fast-export.c:280:8: warning: variable 'buf' is not initialized [cppcoreguidelines-init-variables]
        char *buf;
              ^
                  = NULL
/datasets/git/builtin/fast-export.c:281:17: warning: variable 'object' is not initialized [cppcoreguidelines-init-variables]
        struct object *object;
                       ^
                              = NULL
/datasets/git/builtin/fast-export.c:282:6: warning: variable 'eaten' is not initialized [cppcoreguidelines-init-variables]
        int eaten;
            ^
                  = 0
/datasets/git/builtin/fast-export.c:284:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (no_data)
                    ^
                     {
/datasets/git/builtin/fast-export.c:287:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_null_oid(oid))
                             ^
                              {
/datasets/git/builtin/fast-export.c:291:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (object && object->flags & SHOWN)
                                      ^
/datasets/git/./revision.h:30:17: note: expanded from macro 'SHOWN'
#define SHOWN           (1u<<3)
                         ^   ~
/datasets/git/builtin/fast-export.c:291:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (object && object->flags & SHOWN)
                                            ^
                                             {
/datasets/git/builtin/fast-export.c:300:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!buf)
                         ^
                          {
/datasets/git/builtin/fast-export.c:303:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                           type) < 0)
                                                     ^
                                                      {
/datasets/git/builtin/fast-export.c:309:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!object)
                    ^
                     {
/datasets/git/builtin/fast-export.c:315:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (show_original_ids)
                              ^
                               {
/datasets/git/builtin/fast-export.c:318:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (size && fwrite(buf, size, 1, stdout) != 1)
                                                      ^
                                                       {
/datasets/git/builtin/fast-export.c:324:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        object->flags |= SHOWN;
                         ^
/datasets/git/./revision.h:30:17: note: expanded from macro 'SHOWN'
#define SHOWN           (1u<<3)
                         ^   ~
/datasets/git/builtin/fast-export.c:325:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!eaten)
                   ^
                    {
/datasets/git/builtin/fast-export.c:329:36: warning: parameter name 'a_' is too short, expected at least 3 characters [readability-identifier-length]
static int depth_first(const void *a_, const void *b_)
                                   ^
/datasets/git/builtin/fast-export.c:329:52: warning: parameter name 'b_' is too short, expected at least 3 characters [readability-identifier-length]
static int depth_first(const void *a_, const void *b_)
                                                   ^
/datasets/git/builtin/fast-export.c:331:30: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        const struct diff_filepair *a = *((const struct diff_filepair **)a_);
                                    ^
/datasets/git/builtin/fast-export.c:332:30: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        const struct diff_filepair *b = *((const struct diff_filepair **)b_);
                                    ^
/datasets/git/builtin/fast-export.c:333:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *name_a, *name_b;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-export.c:333:14: warning: variable 'name_a' is not initialized [cppcoreguidelines-init-variables]
        const char *name_a, *name_b;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-export.c:333:23: warning: variable 'name_b' is not initialized [cppcoreguidelines-init-variables]
        const char *name_a, *name_b;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-export.c:334:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int len_a, len_b, len;
        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-export.c:334:6: warning: variable 'len_a' is not initialized [cppcoreguidelines-init-variables]
        int len_a, len_b, len;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-export.c:334:13: warning: variable 'len_b' is not initialized [cppcoreguidelines-init-variables]
        int len_a, len_b, len;
                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-export.c:334:20: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int len_a, len_b, len;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-export.c:335:6: warning: variable 'cmp' is not initialized [cppcoreguidelines-init-variables]
        int cmp;
            ^
                = 0
/datasets/git/builtin/fast-export.c:340:10: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        len_a = strlen(name_a);
                ^
/datasets/git/builtin/fast-export.c:341:10: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        len_b = strlen(name_b);
                ^
/datasets/git/builtin/fast-export.c:346:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cmp)
                ^
                 {
/datasets/git/builtin/fast-export.c:349:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cmp)
                ^
                 {
/datasets/git/builtin/fast-export.c:361:19: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int need_quote = quote_c_style(path, NULL, NULL, 0);
                         ^
/datasets/git/builtin/fast-export.c:362:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (need_quote)
                       ^
                        {
/datasets/git/builtin/fast-export.c:364:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (strchr(path, ' '))
                                   ^
                                    {
/datasets/git/builtin/fast-export.c:366:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/fast-export.c:370:45: warning: parameter 'data' is unused [misc-unused-parameters]
static char *anonymize_path_component(void *data)
                                            ^
/datasets/git/builtin/fast-export.c:380:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!anonymize)
                       ^
                        {
/datasets/git/builtin/fast-export.c:392:38: warning: parameter 'data' is unused [misc-unused-parameters]
static char *generate_fake_oid(void *data)
                                     ^
/datasets/git/builtin/fast-export.c:397:23: warning: performing an implicit widening conversion to type 'size_t' (aka 'unsigned long') of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        char *hex = xmallocz(GIT_MAX_HEXSZ);
                             ^
/datasets/git/./hash.h:118:23: note: expanded from macro 'GIT_MAX_HEXSZ'
#define GIT_MAX_HEXSZ GIT_SHA256_HEXSZ
                      ^
/datasets/git/./hash.h:112:27: note: expanded from macro 'GIT_SHA256_HEXSZ'
#define GIT_SHA256_HEXSZ (2 * GIT_SHA256_RAWSZ)
                          ^
/datasets/git/builtin/fast-export.c:397:23: note: make conversion explicit to silence this warning
        char *hex = xmallocz(GIT_MAX_HEXSZ);
                             ^
/datasets/git/./hash.h:118:23: note: expanded from macro 'GIT_MAX_HEXSZ'
#define GIT_MAX_HEXSZ GIT_SHA256_HEXSZ
                      ^~~~~~~~~~~~~~~~
/datasets/git/./hash.h:112:27: note: expanded from macro 'GIT_SHA256_HEXSZ'
#define GIT_SHA256_HEXSZ (2 * GIT_SHA256_RAWSZ)
                          ^~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-export.c:397:23: note: perform multiplication in a wider type
        char *hex = xmallocz(GIT_MAX_HEXSZ);
                             ^
/datasets/git/./hash.h:118:23: note: expanded from macro 'GIT_MAX_HEXSZ'
#define GIT_MAX_HEXSZ GIT_SHA256_HEXSZ
                      ^~~~~~~~~~~~~~~~
/datasets/git/./hash.h:112:27: note: expanded from macro 'GIT_SHA256_HEXSZ'
#define GIT_SHA256_HEXSZ (2 * GIT_SHA256_RAWSZ)
                          ^
/datasets/git/builtin/fast-export.c:411:13: warning: function 'show_filemodify' has cognitive complexity of 26 (threshold 25) [readability-function-cognitive-complexity]
static void show_filemodify(struct diff_queue_struct *q,
            ^
/datasets/git/builtin/fast-export.c:423:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < q->nr; i++) {
        ^
/datasets/git/builtin/fast-export.c:427:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                switch (q->queue[i]->status) {
                ^
/datasets/git/builtin/fast-export.c:444:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!string_list_has_string(changed, ospec->path)) {
                        ^
/datasets/git/builtin/fast-export.c:452:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (oideq(&ospec->oid, &spec->oid) &&
                                ^
/datasets/git/builtin/fast-export.c:452:40: note: +1
                                if (oideq(&ospec->oid, &spec->oid) &&
                                                                   ^
/datasets/git/builtin/fast-export.c:465:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (no_data || S_ISGITLINK(spec->mode))
                        ^
/datasets/git/builtin/fast-export.c:465:16: note: +1
                        if (no_data || S_ISGITLINK(spec->mode))
                                    ^
/datasets/git/builtin/fast-export.c:467:22: note: +4, including nesting penalty of 3, nesting level increased to 4
                                       anonymize ?
                                                 ^
/datasets/git/builtin/fast-export.c:470:4: note: +1, nesting level increased to 3
                        else {
                        ^
/datasets/git/builtin/fast-export.c:484:17: note: +3, including nesting penalty of 2, nesting level increased to 3
                                ospec->path ? ospec->path : "none",
                                            ^
/datasets/git/builtin/fast-export.c:485:16: note: +3, including nesting penalty of 2, nesting level increased to 3
                                spec->path ? spec->path : "none");
                                           ^
/datasets/git/builtin/fast-export.c:411:55: warning: parameter name 'q' is too short, expected at least 3 characters [readability-identifier-length]
static void show_filemodify(struct diff_queue_struct *q,
                                                      ^
/datasets/git/builtin/fast-export.c:412:29: warning: parameter 'options' is unused [misc-unused-parameters]
                            struct diff_options *options, void *data)
                                                 ^
/datasets/git/builtin/fast-export.c:414:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/fast-export.c:414:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-export.c:421:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        QSORT(q->queue, q->nr, depth_first);
        ^
/datasets/git/./git-compat-util.h:1304:56: note: expanded from macro 'QSORT'
#define QSORT(base, n, compar) sane_qsort((base), (n), sizeof(*(base)), compar)
                                                       ^
/datasets/git/builtin/fast-export.c:423:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < q->nr; i++) {
        ^
/datasets/git/builtin/fast-export.c:453:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                    ospec->mode == spec->mode)
                                                              ^
                                                               {
/datasets/git/builtin/fast-export.c:465:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (no_data || S_ISGITLINK(spec->mode))
                                       ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/builtin/fast-export.c:465:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (no_data || S_ISGITLINK(spec->mode))
                                                               ^
                                                                {
/datasets/git/builtin/fast-export.c:493:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *bol, *eol;
        ^~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-export.c:493:8: warning: variable 'bol' is not initialized [cppcoreguidelines-init-variables]
        char *bol, *eol;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-export.c:493:14: warning: variable 'eol' is not initialized [cppcoreguidelines-init-variables]
        char *bol, *eol;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-export.c:497:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!bol)
                 ^
                  {
/datasets/git/builtin/fast-export.c:505:44: warning: parameter 'data' is unused [misc-unused-parameters]
static char *anonymize_ref_component(void *data)
                                           ^
/datasets/git/builtin/fast-export.c:527:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/fast-export.c:527:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-export.c:530:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ARRAY_SIZE(prefixes); i++) {
        ^
/datasets/git/builtin/fast-export.c:545:51: warning: parameter 'old' is unused [misc-unused-parameters]
static char *anonymize_commit_message(const char *old)
                                      ~~~~~~~~~~~~^~~
/datasets/git/builtin/fast-export.c:551:36: warning: parameter 'data' is unused [misc-unused-parameters]
static char *anonymize_ident(void *data)
                                   ^
/datasets/git/builtin/fast-export.c:571:17: warning: variable 'out' is not initialized [cppcoreguidelines-init-variables]
        struct strbuf *out;
                       ^
                           = NULL
/datasets/git/builtin/fast-export.c:573:14: warning: variable 'end_of_header' is not initialized [cppcoreguidelines-init-variables]
        const char *end_of_header;
                    ^
                                  = NULL
/datasets/git/builtin/fast-export.c:581:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!end_of_header)
                           ^
                            {
/datasets/git/builtin/fast-export.c:587:47: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        if (!split_ident_line(&split, end_of_header, *end - end_of_header) &&
                                                     ^
/datasets/git/builtin/fast-export.c:589:15: warning: variable 'ident' is not initialized [cppcoreguidelines-init-variables]
                const char *ident;
                            ^
                                  = NULL
/datasets/git/builtin/fast-export.c:590:10: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
                size_t len;
                       ^
                           = 0
/datasets/git/builtin/fast-export.c:606:13: warning: function 'handle_commit' has cognitive complexity of 39 (threshold 25) [readability-function-cognitive-complexity]
static void handle_commit(struct commit *commit, struct rev_info *rev,
            ^
/datasets/git/builtin/fast-export.c:623:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!author)
        ^
/datasets/git/builtin/fast-export.c:629:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!committer)
        ^
/datasets/git/builtin/fast-export.c:636:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (message)
        ^
/datasets/git/builtin/fast-export.c:639:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (commit->parents &&
        ^
/datasets/git/builtin/fast-export.c:641:35: note: +1
             reference_excluded_commits) &&
                                         ^
/datasets/git/builtin/fast-export.c:640:60: note: +1
            (get_object_mark(&commit->parents->item->object) != 0 ||
                                                                  ^
/datasets/git/builtin/fast-export.c:647:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/builtin/fast-export.c:652:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < diff_queued_diff.nr; i++)
        ^
/datasets/git/builtin/fast-export.c:653:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!S_ISGITLINK(diff_queued_diff.queue[i]->two->mode))
                ^
/datasets/git/builtin/fast-export.c:664:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (anonymize) {
        ^
/datasets/git/builtin/fast-export.c:671:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (anonymize) {
        ^
/datasets/git/builtin/fast-export.c:673:9: note: +1, nesting level increased to 1
        } else if (encoding) {
               ^
/datasets/git/builtin/fast-export.c:674:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                switch(reencode_mode) {
                ^
/datasets/git/builtin/fast-export.c:686:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!commit->parents)
        ^
/datasets/git/builtin/fast-export.c:689:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (show_original_ids)
        ^
/datasets/git/builtin/fast-export.c:694:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!reencoded && encoding)
        ^
/datasets/git/builtin/fast-export.c:694:17: note: +1
        if (!reencoded && encoding)
                       ^
/datasets/git/builtin/fast-export.c:698:6: note: +1, including nesting penalty of 0, nesting level increased to 1
                          ? strlen(reencoded) : message
                          ^
/datasets/git/builtin/fast-export.c:699:6: note: +2, including nesting penalty of 1, nesting level increased to 2
                          ? strlen(message) : 0),
                          ^
/datasets/git/builtin/fast-export.c:700:19: note: +1, including nesting penalty of 0, nesting level increased to 1
               reencoded ? reencoded : message ? message : "");
                         ^
/datasets/git/builtin/fast-export.c:700:41: note: +2, including nesting penalty of 1, nesting level increased to 2
               reencoded ? reencoded : message ? message : "");
                                               ^
/datasets/git/builtin/fast-export.c:704:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0, p = commit->parents; p; p = p->next) {
        ^
/datasets/git/builtin/fast-export.c:708:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!mark && !reference_excluded_commits)
                ^
/datasets/git/builtin/fast-export.c:708:13: note: +1
                if (!mark && !reference_excluded_commits)
                          ^
/datasets/git/builtin/fast-export.c:710:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (i == 0)
                ^
/datasets/git/builtin/fast-export.c:712:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/fast-export.c:714:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (mark)
                ^
/datasets/git/builtin/fast-export.c:716:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/fast-export.c:718:21: note: +3, including nesting penalty of 2, nesting level increased to 3
                               anonymize ?
                                         ^
/datasets/git/builtin/fast-export.c:724:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (full_tree)
        ^
/datasets/git/builtin/fast-export.c:610:14: warning: variable 'commit_buffer' is not initialized [cppcoreguidelines-init-variables]
        const char *commit_buffer;
                    ^
                                  = NULL
/datasets/git/builtin/fast-export.c:611:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *author, *author_end, *committer, *committer_end;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-export.c:611:14: warning: variable 'author' is not initialized [cppcoreguidelines-init-variables]
        const char *author, *author_end, *committer, *committer_end;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-export.c:611:23: warning: variable 'author_end' is not initialized [cppcoreguidelines-init-variables]
        const char *author, *author_end, *committer, *committer_end;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-export.c:611:36: warning: variable 'committer' is not initialized [cppcoreguidelines-init-variables]
        const char *author, *author_end, *committer, *committer_end;
                                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-export.c:611:48: warning: variable 'committer_end' is not initialized [cppcoreguidelines-init-variables]
        const char *author, *author_end, *committer, *committer_end;
                                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-export.c:612:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *encoding, *message;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-export.c:612:14: warning: variable 'encoding' is not initialized [cppcoreguidelines-init-variables]
        const char *encoding, *message;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-export.c:612:25: warning: variable 'message' is not initialized [cppcoreguidelines-init-variables]
        const char *encoding, *message;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-export.c:614:22: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *p;
                            ^
                              = NULL
/datasets/git/builtin/fast-export.c:614:22: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-export.c:615:14: warning: variable 'refname' is not initialized [cppcoreguidelines-init-variables]
        const char *refname;
                    ^
                            = NULL
/datasets/git/builtin/fast-export.c:616:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/fast-export.c:616:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-export.c:623:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!author)
                    ^
                     {
/datasets/git/builtin/fast-export.c:629:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!committer)
                       ^
                        {
/datasets/git/builtin/fast-export.c:636:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (message)
                    ^
                     {
/datasets/git/builtin/fast-export.c:647:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/fast-export.c:652:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < diff_queued_diff.nr; i++)
        ^
/datasets/git/builtin/fast-export.c:652:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < diff_queued_diff.nr; i++)
                                                 ^
                                                  {
/datasets/git/builtin/fast-export.c:653:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!S_ISGITLINK(diff_queued_diff.queue[i]->two->mode))
                     ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/builtin/fast-export.c:653:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!S_ISGITLINK(diff_queued_diff.queue[i]->two->mode))
                                                                       ^
                                                                        {
/datasets/git/builtin/fast-export.c:674:3: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
                switch(reencode_mode) {
                ^
/datasets/git/builtin/fast-export.c:686:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!commit->parents)
                             ^
                              {
/datasets/git/builtin/fast-export.c:689:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (show_original_ids)
                              ^
                               {
/datasets/git/builtin/fast-export.c:694:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!reencoded && encoding)
                                   ^
                                    {
/datasets/git/builtin/fast-export.c:704:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0, p = commit->parents; p; p = p->next) {
        ^
/datasets/git/builtin/fast-export.c:704:35: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0, p = commit->parents; p; p = p->next) {
                                         ^
/datasets/git/builtin/fast-export.c:708:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!mark && !reference_excluded_commits)
                                                         ^
                                                          {
/datasets/git/builtin/fast-export.c:710:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (i == 0)
                           ^
                            {
/datasets/git/builtin/fast-export.c:712:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/fast-export.c:714:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (mark)
                         ^
                          {
/datasets/git/builtin/fast-export.c:716:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/fast-export.c:724:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (full_tree)
                      ^
                       {
/datasets/git/builtin/fast-export.c:735:34: warning: parameter 'data' is unused [misc-unused-parameters]
static char *anonymize_tag(void *data)
                                 ^
/datasets/git/builtin/fast-export.c:744:13: warning: function 'handle_tag' has cognitive complexity of 38 (threshold 25) [readability-function-cognitive-complexity]
static void handle_tag(const char *name, struct tag *tag)
            ^
/datasets/git/builtin/fast-export.c:760:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (tagged->type == OBJ_TAG) {
        ^
/datasets/git/builtin/fast-export.c:763:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (tagged->type == OBJ_TREE) {
        ^
/datasets/git/builtin/fast-export.c:770:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!buf)
        ^
/datasets/git/builtin/fast-export.c:773:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (message) {
        ^
/datasets/git/builtin/fast-export.c:777:31: note: +1, including nesting penalty of 0, nesting level increased to 1
        tagger = memmem(buf, message ? message - buf : size, "\ntagger ", 8);
                                     ^
/datasets/git/builtin/fast-export.c:778:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!tagger) {
        ^
/datasets/git/builtin/fast-export.c:779:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (fake_missing_tagger)
                ^
/datasets/git/builtin/fast-export.c:782:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/fast-export.c:785:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/fast-export.c:788:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (anonymize)
                ^
/datasets/git/builtin/fast-export.c:792:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (anonymize) {
        ^
/datasets/git/builtin/fast-export.c:794:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (message) {
                ^
/datasets/git/builtin/fast-export.c:803:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (message) {
        ^
/datasets/git/builtin/fast-export.c:806:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (signature)
                ^
/datasets/git/builtin/fast-export.c:831:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!tagged_mark) {
        ^
/datasets/git/builtin/fast-export.c:832:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                switch(tag_of_filtered_mode) {
                ^
/datasets/git/builtin/fast-export.c:842:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (tagged->type == OBJ_TAG && !mark_tags) {
                        ^
/datasets/git/builtin/fast-export.c:842:32: note: +1
                        if (tagged->type == OBJ_TAG && !mark_tags) {
                                                    ^
/datasets/git/builtin/fast-export.c:844:11: note: +1, nesting level increased to 3
                        } else if (tagged->type == OBJ_COMMIT) {
                               ^
/datasets/git/builtin/fast-export.c:846:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!p) {
                                ^
/datasets/git/builtin/fast-export.c:853:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/builtin/fast-export.c:860:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (tagged->type == OBJ_TAG) {
        ^
/datasets/git/builtin/fast-export.c:866:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mark_tags) {
        ^
/datasets/git/builtin/fast-export.c:870:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (tagged_mark)
        ^
/datasets/git/builtin/fast-export.c:872:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/builtin/fast-export.c:875:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (show_original_ids)
        ^
/datasets/git/builtin/fast-export.c:879:30: note: +1, including nesting penalty of 0, nesting level increased to 1
               tagger == tagger_end ? "" : "\n",
                                    ^
/datasets/git/builtin/fast-export.c:880:55: note: +1, including nesting penalty of 0, nesting level increased to 1
               (int)message_size, (int)message_size, message ? message : "");
                                                             ^
/datasets/git/builtin/fast-export.c:746:16: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size;
                      ^
                           = 0
/datasets/git/builtin/fast-export.c:747:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/builtin/fast-export.c:748:8: warning: variable 'buf' is not initialized [cppcoreguidelines-init-variables]
        char *buf;
              ^
                  = NULL
/datasets/git/builtin/fast-export.c:749:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *tagger, *tagger_end, *message;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-export.c:751:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct object *tagged;
        ^
/datasets/git/builtin/fast-export.c:749:14: warning: variable 'tagger' is not initialized [cppcoreguidelines-init-variables]
        const char *tagger, *tagger_end, *message;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-export.c:749:23: warning: variable 'tagger_end' is not initialized [cppcoreguidelines-init-variables]
        const char *tagger, *tagger_end, *message;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-export.c:749:36: warning: variable 'message' is not initialized [cppcoreguidelines-init-variables]
        const char *tagger, *tagger_end, *message;
                                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-export.c:751:17: warning: variable 'tagged' is not initialized [cppcoreguidelines-init-variables]
        struct object *tagged;
                       ^
                              = NULL
/datasets/git/builtin/fast-export.c:752:6: warning: variable 'tagged_mark' is not initialized [cppcoreguidelines-init-variables]
        int tagged_mark;
            ^
                        = 0
/datasets/git/builtin/fast-export.c:753:17: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct commit *p;
                       ^
                         = NULL
/datasets/git/builtin/fast-export.c:753:17: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-export.c:760:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (tagged->type == OBJ_TAG) {
        ^
/datasets/git/builtin/fast-export.c:760:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'tagged' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (tagged->type == OBJ_TAG) {
               ^
/datasets/git/builtin/fast-export.c:770:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!buf)
                 ^
                  {
/datasets/git/builtin/fast-export.c:777:68: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        tagger = memmem(buf, message ? message - buf : size, "\ntagger ", 8);
                                                                          ^
/datasets/git/builtin/fast-export.c:779:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fake_missing_tagger)
                                        ^
                                         {
/datasets/git/builtin/fast-export.c:782:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/fast-export.c:788:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (anonymize)
                              ^
                               {
/datasets/git/builtin/fast-export.c:806:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (signature)
                              ^
                               {
/datasets/git/builtin/fast-export.c:807:4: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
                        switch(signed_tag_mode) {
                        ^
/datasets/git/builtin/fast-export.c:832:3: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
                switch(tag_of_filtered_mode) {
                ^
/datasets/git/builtin/fast-export.c:870:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (tagged_mark)
                        ^
                         {
/datasets/git/builtin/fast-export.c:872:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/fast-export.c:875:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (show_original_ids)
                              ^
                               {
/datasets/git/builtin/fast-export.c:884:60: warning: parameter name 'e' is too short, expected at least 3 characters [readability-identifier-length]
static struct commit *get_commit(struct rev_cmdline_entry *e, char *full_name)
                                                           ^
/datasets/git/builtin/fast-export.c:890:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                struct tag *tag = (struct tag *)e->item;
                ^
/datasets/git/builtin/fast-export.c:893:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (tag && tag->object.type == OBJ_TAG) {
                ^
/datasets/git/builtin/fast-export.c:893:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'tag' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (tag && tag->object.type == OBJ_TAG) {
                       ^
/datasets/git/builtin/fast-export.c:898:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!tag)
                         ^
                          {
/datasets/git/builtin/fast-export.c:909:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/fast-export.c:909:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-export.c:911:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < info->nr; i++) {
        ^
/datasets/git/builtin/fast-export.c:912:29: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                struct rev_cmdline_entry *e = info->rev + i;
                                          ^
/datasets/git/builtin/fast-export.c:914:18: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
                struct commit *commit;
                               ^
                                      = NULL
/datasets/git/builtin/fast-export.c:915:9: warning: variable 'full_name' is not initialized [cppcoreguidelines-init-variables]
                char *full_name;
                      ^
                                = NULL
/datasets/git/builtin/fast-export.c:917:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (e->flags & UNINTERESTING)
                               ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/builtin/fast-export.c:917:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (e->flags & UNINTERESTING)
                                             ^
                                              {
/datasets/git/builtin/fast-export.c:920:25: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                if (dwim_ref(e->name, strlen(e->name), &oid, &full_name, 0) != 1)
                                      ^
/datasets/git/builtin/fast-export.c:920:68: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (dwim_ref(e->name, strlen(e->name), &oid, &full_name, 0) != 1)
                                                                                 ^
                                                                                  {
/datasets/git/builtin/fast-export.c:924:10: warning: variable 'private' is not initialized [cppcoreguidelines-init-variables]
                        char *private;
                              ^
                                      = NULL
/datasets/git/builtin/fast-export.c:970:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int i;
        ^
/datasets/git/builtin/fast-export.c:956:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (e->item->type != OBJ_TAG)
                                             ^
                                              {
/datasets/git/builtin/fast-export.c:959:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!*revision_sources_at(&revision_sources, commit))
                                                                     ^
                                                                      {
/datasets/git/builtin/fast-export.c:969:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/builtin/fast-export.c:970:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/fast-export.c:970:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-export.c:972:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = extras->nr - 1; i >= 0; i--) {
        ^
/datasets/git/builtin/fast-export.c:972:11: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        for (i = extras->nr - 1; i >= 0; i--) {
                 ^
/datasets/git/builtin/fast-export.c:972:27: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = extras->nr - 1; i >= 0; i--) {
                                 ^
/datasets/git/builtin/fast-export.c:975:7: warning: variable 'mark' is not initialized [cppcoreguidelines-init-variables]
                int mark;
                    ^
                         = 0
/datasets/git/builtin/fast-export.c:977:3: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
                switch (object->type) {
                ^
/datasets/git/builtin/fast-export.c:982:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (anonymize)
                                      ^
                                       {
/datasets/git/builtin/fast-export.c:1032:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i;
                     ^
                       = 0
/datasets/git/builtin/fast-export.c:1032:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-export.c:1033:11: warning: variable 'mark' is not initialized [cppcoreguidelines-init-variables]
        uint32_t mark;
                 ^
                      = 0
/datasets/git/builtin/fast-export.c:1035:8: warning: variable 'f' is not initialized [cppcoreguidelines-init-variables]
        FILE *f;
              ^
                = NULL
/datasets/git/builtin/fast-export.c:1035:8: warning: variable name 'f' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-export.c:1036:6: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
        int e = 0;
            ^
/datasets/git/builtin/fast-export.c:1039:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!f)
               ^
                {
/datasets/git/builtin/fast-export.c:1042:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < idnums.size; i++) {
        ^
/datasets/git/builtin/fast-export.c:1054:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        e |= ferror(f);
        ^
/datasets/git/builtin/fast-export.c:1055:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        e |= fclose(f);
        ^
/datasets/git/builtin/fast-export.c:1056:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (e)
              ^
               {
/datasets/git/builtin/fast-export.c:1062:12: warning: 512 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        char line[512];
                  ^
/datasets/git/builtin/fast-export.c:1063:8: warning: variable 'f' is not initialized [cppcoreguidelines-init-variables]
        FILE *f;
              ^
                = NULL
/datasets/git/builtin/fast-export.c:1063:8: warning: variable name 'f' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-export.c:1064:14: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat sb;
                    ^
/datasets/git/builtin/fast-export.c:1066:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (check_exists && stat(input_file, &sb))
                                                  ^
                                                   {
/datasets/git/builtin/fast-export.c:1070:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (fgets(line, sizeof(line), f)) {
        ^
/datasets/git/builtin/fast-export.c:1070:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'f' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (fgets(line, sizeof(line), f)) {
               ^
/datasets/git/builtin/fast-export.c:1071:12: warning: variable 'mark' is not initialized [cppcoreguidelines-init-variables]
                uint32_t mark;
                         ^
                              = 0
/datasets/git/builtin/fast-export.c:1072:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                char *line_end, *mark_end;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-export.c:1072:9: warning: variable 'line_end' is not initialized [cppcoreguidelines-init-variables]
                char *line_end, *mark_end;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-export.c:1072:20: warning: variable 'mark_end' is not initialized [cppcoreguidelines-init-variables]
                char *line_end, *mark_end;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-export.c:1074:18: warning: variable 'object' is not initialized [cppcoreguidelines-init-variables]
                struct object *object;
                               ^
                                      = NULL
/datasets/git/builtin/fast-export.c:1075:18: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
                struct commit *commit;
                               ^
                                      = NULL
/datasets/git/builtin/fast-export.c:1076:20: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
                enum object_type type;
                                 ^
/datasets/git/builtin/fast-export.c:1079:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (line[0] != ':' || !line_end)
                                                ^
                                                 {
/datasets/git/builtin/fast-export.c:1083:41: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mark = strtoumax(line + 1, &mark_end, 10);
                                                      ^
/datasets/git/builtin/fast-export.c:1085:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        || *mark_end != ' ' || get_oid_hex(mark_end + 1, &oid))
                                                                               ^
                                                                                {
/datasets/git/builtin/fast-export.c:1088:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (last_idnum < mark)
                                      ^
                                       {
/datasets/git/builtin/fast-export.c:1092:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (type < 0)
                             ^
                              {
/datasets/git/builtin/fast-export.c:1095:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (type != OBJ_COMMIT)
                                       ^
                                        {
/datasets/git/builtin/fast-export.c:1100:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!commit)
                            ^
                             {
/datasets/git/builtin/fast-export.c:1105:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (object->flags & SHOWN)
                                    ^
/datasets/git/./revision.h:30:17: note: expanded from macro 'SHOWN'
#define SHOWN           (1u<<3)
                         ^   ~
/datasets/git/builtin/fast-export.c:1105:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (object->flags & SHOWN)
                                          ^
                                           {
/datasets/git/builtin/fast-export.c:1110:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                object->flags |= SHOWN;
                                 ^
/datasets/git/./revision.h:30:17: note: expanded from macro 'SHOWN'
#define SHOWN           (1u<<3)
                         ^   ~
/datasets/git/builtin/fast-export.c:1112:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(f);
        ^~~~~~~~~
/datasets/git/builtin/fast-export.c:1112:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-export.c:1117:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/fast-export.c:1117:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-export.c:1118:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < refspecs.nr; i++) {
        ^
/datasets/git/builtin/fast-export.c:1120:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*refspec->src)
                                  ^
                                   {
/datasets/git/builtin/fast-export.c:1137:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *delim, *value;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-export.c:1137:14: warning: variable 'delim' is not initialized [cppcoreguidelines-init-variables]
        const char *delim, *value;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-export.c:1137:22: warning: variable 'value' is not initialized [cppcoreguidelines-init-variables]
        const char *delim, *value;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-export.c:1138:9: warning: variable 'keylen' is not initialized [cppcoreguidelines-init-variables]
        size_t keylen;
               ^
                      = 0
/datasets/git/builtin/fast-export.c:1140:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/fast-export.c:1151:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!keylen || !*value)
                               ^
                                {
/datasets/git/builtin/fast-export.c:1162:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/builtin/fast-export.c:1163:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *export_filename = NULL,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-export.c:1166:11: warning: variable 'lastimportid' is not initialized [cppcoreguidelines-init-variables]
        uint32_t lastimportid;
                 ^
                              = 0
/datasets/git/builtin/fast-export.c:1189:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "fake-missing-tagger", &fake_missing_tagger,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/fast-export.c:1191:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "full-tree", &full_tree,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/fast-export.c:1193:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "use-done-feature", &use_done_feature,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/fast-export.c:1195:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "no-data", &no_data, N_("skip output of blob data")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/fast-export.c:1198:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "anonymize", &anonymize, N_("anonymize output")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/fast-export.c:1202:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "reference-excluded-parents",
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/fast-export.c:1204:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "show-original-ids", &show_original_ids,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/fast-export.c:1206:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "mark-tags", &mark_tags,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/fast-export.c:1212:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc == 1)
                      ^
                       {
/datasets/git/builtin/fast-export.c:1224:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        PARSE_OPT_KEEP_ARGV0 | PARSE_OPT_KEEP_UNKNOWN_OPT);
                        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-export.c:1226:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc > 1)
                     ^
                      {
/datasets/git/builtin/fast-export.c:1229:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (anonymized_seeds.cmpfn && !anonymize)
                                                 ^
                                                  {
/datasets/git/builtin/fast-export.c:1233:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/builtin/fast-export.c:1233:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-export.c:1235:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < refspecs_list.nr; i++)
                ^
/datasets/git/builtin/fast-export.c:1235:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < refspecs_list.nr; i++)
                                                      ^
                                                       {
/datasets/git/builtin/fast-export.c:1241:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (use_done_feature)
                             ^
                              {
/datasets/git/builtin/fast-export.c:1244:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (import_filename && import_filename_if_exists)
                                                         ^
                                                          {
/datasets/git/builtin/fast-export.c:1246:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (import_filename)
                            ^
                             {
/datasets/git/builtin/fast-export.c:1248:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (import_filename_if_exists)
                                           ^
                                            {
/datasets/git/builtin/fast-export.c:1252:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (import_filename && revs.prune_data.nr)
                                                  ^
                                                   {
/datasets/git/builtin/fast-export.c:1257:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prepare_revision_walk(&revs))
                                         ^
                                          {
/datasets/git/builtin/fast-export.c:1265:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((commit = get_revision(&revs)))
        ^
/datasets/git/builtin/fast-export.c:1265:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'commit' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((commit = get_revision(&revs)))
               ^
/datasets/git/builtin/fast-export.c:1265:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while ((commit = get_revision(&revs)))
                                              ^
                                               {
/datasets/git/builtin/fast-export.c:1272:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (export_filename && lastimportid != last_idnum)
                                                          ^
                                                           {
/datasets/git/builtin/fast-export.c:1275:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (use_done_feature)
                             ^
                              {
/datasets/git/builtin/fast-import.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "cache.h"
^        ~~~~~~~~~
         "blob.h"
/datasets/git/builtin/fast-import.c:24:1: warning: replace macro with enum [modernize-macro-to-enum]
#define PACK_ID_BITS 16
^~~~~~~~
                     =
/datasets/git/builtin/fast-import.c:24:9: warning: macro 'PACK_ID_BITS' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define PACK_ID_BITS 16
        ^
/datasets/git/builtin/fast-import.c:26:1: warning: replace macro with enum [modernize-macro-to-enum]
#define DEPTH_BITS 13
^~~~~~~~
                   =
/datasets/git/builtin/fast-import.c:26:9: warning: macro 'DEPTH_BITS' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define DEPTH_BITS 13
        ^
/datasets/git/builtin/fast-import.c:41:8: warning: accessing fields in struct 'object_entry' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct object_entry {
       ^
/datasets/git/builtin/fast-import.c:41:8: note: use "__attribute__((aligned(128)))" to align struct 'object_entry' to 128 bytes
/datasets/git/builtin/fast-import.c:50:5: warning: 2 adjacent parameters of 'object_entry_hashcmp' of similar type ('const struct hashmap_entry *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                const struct hashmap_entry *eptr,
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:50:33: note: the first parameter in the range is 'eptr'
                                const struct hashmap_entry *eptr,
                                                            ^~~~
/datasets/git/builtin/fast-import.c:51:33: note: the last parameter in the range is 'entry_or_key'
                                const struct hashmap_entry *entry_or_key,
                                                            ^~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:55:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const struct object_entry *e1, *e2;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:55:29: warning: variable 'e1' is not initialized [cppcoreguidelines-init-variables]
        const struct object_entry *e1, *e2;
                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-import.c:55:29: warning: variable name 'e1' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:55:34: warning: variable 'e2' is not initialized [cppcoreguidelines-init-variables]
        const struct object_entry *e1, *e2;
                                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-import.c:55:34: warning: variable name 'e2' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:58:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oid)
                ^
                 {
/datasets/git/builtin/fast-import.c:72:8: warning: accessing fields in struct 'mark_set' is inefficient due to padding; only needs 8196 bytes but is using 8200 bytes [altera-struct-pack-align]
struct mark_set {
       ^
/datasets/git/builtin/fast-import.c:72:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'mark_set'
/datasets/git/builtin/fast-import.c:72:8: warning: accessing fields in struct 'mark_set' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct mark_set {
       ^
/datasets/git/builtin/fast-import.c:72:8: note: use "__attribute__((aligned(128)))" to align struct 'mark_set' to 128 bytes
/datasets/git/builtin/fast-import.c:74:26: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                struct object_id *oids[1024];
                                       ^
/datasets/git/builtin/fast-import.c:75:31: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                struct object_entry *marked[1024];
                                            ^
/datasets/git/builtin/fast-import.c:76:25: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                struct mark_set *sets[1024];
                                      ^
/datasets/git/builtin/fast-import.c:81:8: warning: accessing fields in struct 'last_object' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct last_object {
       ^
/datasets/git/builtin/fast-import.c:81:8: note: use "__attribute__((aligned(64)))" to align struct 'last_object' to 64 bytes
/datasets/git/builtin/fast-import.c:95:8: warning: accessing fields in struct 'tree_entry' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct tree_entry {
       ^
/datasets/git/builtin/fast-import.c:95:8: note: use "__attribute__((aligned(128)))" to align struct 'tree_entry' to 128 bytes
/datasets/git/builtin/fast-import.c:98:9: warning: accessing fields in struct 'tree_entry_ms' is inefficient due to padding; only needs 38 bytes but is using 40 bytes [altera-struct-pack-align]
        struct tree_entry_ms {
               ^
/datasets/git/builtin/fast-import.c:98:9: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'tree_entry_ms'
/datasets/git/builtin/fast-import.c:98:9: warning: accessing fields in struct 'tree_entry_ms' is inefficient due to poor alignment; currently aligned to 4 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
        struct tree_entry_ms {
               ^
/datasets/git/builtin/fast-import.c:98:9: note: use "__attribute__((aligned(64)))" to align struct 'tree_entry_ms' to 64 bytes
/datasets/git/builtin/fast-import.c:111:8: warning: accessing fields in struct 'avail_tree_content' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct avail_tree_content {
       ^
/datasets/git/builtin/fast-import.c:111:8: note: use "__attribute__((aligned(16)))" to align struct 'avail_tree_content' to 16 bytes
/datasets/git/builtin/fast-import.c:116:8: warning: accessing fields in struct 'branch' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct branch {
       ^
/datasets/git/builtin/fast-import.c:116:8: note: use "__attribute__((aligned(128)))" to align struct 'branch' to 128 bytes
/datasets/git/builtin/fast-import.c:129:8: warning: accessing fields in struct 'tag' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct tag {
       ^
/datasets/git/builtin/fast-import.c:129:8: note: use "__attribute__((aligned(64)))" to align struct 'tag' to 64 bytes
/datasets/git/builtin/fast-import.c:136:8: warning: accessing fields in struct 'hash_list' is inefficient due to padding; only needs 44 bytes but is using 48 bytes [altera-struct-pack-align]
struct hash_list {
       ^
/datasets/git/builtin/fast-import.c:136:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'hash_list'
/datasets/git/builtin/fast-import.c:136:8: warning: accessing fields in struct 'hash_list' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct hash_list {
       ^
/datasets/git/builtin/fast-import.c:136:8: note: use "__attribute__((aligned(64)))" to align struct 'hash_list' to 64 bytes
/datasets/git/builtin/fast-import.c:148:8: warning: accessing fields in struct 'recent_command' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct recent_command {
       ^
/datasets/git/builtin/fast-import.c:148:8: note: use "__attribute__((aligned(32)))" to align struct 'recent_command' to 32 bytes
/datasets/git/builtin/fast-import.c:154:55: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
typedef void (*mark_set_inserter_t)(struct mark_set **s, struct object_id *oid, uintmax_t mark);
                                                      ^
/datasets/git/builtin/fast-import.c:158:22: warning: variable 'max_depth' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned long max_depth = 50;
                     ^
/datasets/git/builtin/fast-import.c:158:34: warning: 50 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
static unsigned long max_depth = 50;
                                 ^
/datasets/git/builtin/fast-import.c:159:14: warning: variable 'max_packsize' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static off_t max_packsize;
             ^
/datasets/git/builtin/fast-import.c:160:12: warning: variable 'unpack_limit' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int unpack_limit = 100;
           ^
/datasets/git/builtin/fast-import.c:160:27: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
static int unpack_limit = 100;
                          ^
/datasets/git/builtin/fast-import.c:161:12: warning: variable 'force_update' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int force_update;
           ^
/datasets/git/builtin/fast-import.c:164:18: warning: variable 'alloc_count' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static uintmax_t alloc_count;
                 ^
/datasets/git/builtin/fast-import.c:165:18: warning: variable 'marks_set_count' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static uintmax_t marks_set_count;
                 ^
/datasets/git/builtin/fast-import.c:166:18: warning: variable 'object_count_by_type' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static uintmax_t object_count_by_type[1 << TYPE_BITS];
                 ^
/datasets/git/builtin/fast-import.c:166:39: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
static uintmax_t object_count_by_type[1 << TYPE_BITS];
                                      ^
/datasets/git/builtin/fast-import.c:167:18: warning: variable 'duplicate_count_by_type' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static uintmax_t duplicate_count_by_type[1 << TYPE_BITS];
                 ^
/datasets/git/builtin/fast-import.c:167:42: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
static uintmax_t duplicate_count_by_type[1 << TYPE_BITS];
                                         ^
/datasets/git/builtin/fast-import.c:168:18: warning: variable 'delta_count_by_type' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static uintmax_t delta_count_by_type[1 << TYPE_BITS];
                 ^
/datasets/git/builtin/fast-import.c:168:38: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
static uintmax_t delta_count_by_type[1 << TYPE_BITS];
                                     ^
/datasets/git/builtin/fast-import.c:169:18: warning: variable 'delta_count_attempts_by_type' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static uintmax_t delta_count_attempts_by_type[1 << TYPE_BITS];
                 ^
/datasets/git/builtin/fast-import.c:169:47: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
static uintmax_t delta_count_attempts_by_type[1 << TYPE_BITS];
                                              ^
/datasets/git/builtin/fast-import.c:170:22: warning: variable 'object_count' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned long object_count;
                     ^
/datasets/git/builtin/fast-import.c:171:22: warning: variable 'branch_count' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned long branch_count;
                     ^
/datasets/git/builtin/fast-import.c:172:22: warning: variable 'branch_load_count' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned long branch_load_count;
                     ^
/datasets/git/builtin/fast-import.c:173:12: warning: variable 'failure' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int failure;
           ^
/datasets/git/builtin/fast-import.c:174:14: warning: variable 'pack_edges' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static FILE *pack_edges;
             ^
/datasets/git/builtin/fast-import.c:174:14: warning: variable 'pack_edges' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/fast-import.c:175:21: warning: variable 'show_stats' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned int show_stats = 1;
                    ^
/datasets/git/builtin/fast-import.c:176:12: warning: variable 'global_argc' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int global_argc;
           ^
/datasets/git/builtin/fast-import.c:177:21: warning: variable 'global_argv' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char **global_argv;
                    ^
/datasets/git/builtin/fast-import.c:177:21: warning: variable 'global_argv' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/fast-import.c:180:24: warning: variable 'fi_mem_pool' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct mem_pool fi_mem_pool = {
                       ^
/datasets/git/builtin/fast-import.c:181:17: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        .block_alloc = 2*1024*1024 - sizeof(struct mp_block),
                       ^
/datasets/git/builtin/fast-import.c:181:17: note: make conversion explicit to silence this warning
        .block_alloc = 2*1024*1024 - sizeof(struct mp_block),
                       ^~~~~~~~~~~
                       (unsigned long)( )
/datasets/git/builtin/fast-import.c:181:17: note: perform multiplication in a wider type
        .block_alloc = 2*1024*1024 - sizeof(struct mp_block),
                       ^~~~~~
                       (long)
/datasets/git/builtin/fast-import.c:181:19: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        .block_alloc = 2*1024*1024 - sizeof(struct mp_block),
                         ^
/datasets/git/builtin/fast-import.c:181:24: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        .block_alloc = 2*1024*1024 - sizeof(struct mp_block),
                              ^
/datasets/git/builtin/fast-import.c:185:21: warning: variable 'atom_table_sz' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned int atom_table_sz = 4451;
                    ^
/datasets/git/builtin/fast-import.c:185:37: warning: 4451 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
static unsigned int atom_table_sz = 4451;
                                    ^
/datasets/git/builtin/fast-import.c:186:21: warning: variable 'atom_cnt' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned int atom_cnt;
                    ^
/datasets/git/builtin/fast-import.c:187:26: warning: variable 'atom_table' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct atom_str **atom_table;
                         ^
/datasets/git/builtin/fast-import.c:187:26: warning: variable 'atom_table' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/fast-import.c:190:31: warning: variable 'pack_idx_opts' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct pack_idx_option pack_idx_opts;
                              ^
/datasets/git/builtin/fast-import.c:191:21: warning: variable 'pack_id' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned int pack_id;
                    ^
/datasets/git/builtin/fast-import.c:192:25: warning: variable 'pack_file' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct hashfile *pack_file;
                        ^
/datasets/git/builtin/fast-import.c:192:25: warning: variable 'pack_file' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/fast-import.c:193:27: warning: variable 'pack_data' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct packed_git *pack_data;
                          ^
/datasets/git/builtin/fast-import.c:193:27: warning: variable 'pack_data' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/fast-import.c:194:28: warning: variable 'all_packs' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct packed_git **all_packs;
                           ^
/datasets/git/builtin/fast-import.c:194:28: warning: variable 'all_packs' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/fast-import.c:195:14: warning: variable 'pack_size' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static off_t pack_size;
             ^
/datasets/git/builtin/fast-import.c:198:21: warning: variable 'object_entry_alloc' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned int object_entry_alloc = 5000;
                    ^
/datasets/git/builtin/fast-import.c:198:42: warning: 5000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
static unsigned int object_entry_alloc = 5000;
                                         ^
/datasets/git/builtin/fast-import.c:199:34: warning: variable 'blocks' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct object_entry_pool *blocks;
                                 ^
/datasets/git/builtin/fast-import.c:199:34: warning: variable 'blocks' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/fast-import.c:200:23: warning: variable 'object_table' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct hashmap object_table;
                      ^
/datasets/git/builtin/fast-import.c:201:25: warning: variable 'marks' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct mark_set *marks;
                        ^
/datasets/git/builtin/fast-import.c:201:25: warning: variable 'marks' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/fast-import.c:202:20: warning: variable 'export_marks_file' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *export_marks_file;
                   ^
/datasets/git/builtin/fast-import.c:203:20: warning: variable 'import_marks_file' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *import_marks_file;
                   ^
/datasets/git/builtin/fast-import.c:204:12: warning: variable 'import_marks_file_from_stream' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int import_marks_file_from_stream;
           ^
/datasets/git/builtin/fast-import.c:205:12: warning: variable 'import_marks_file_ignore_missing' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int import_marks_file_ignore_missing;
           ^
/datasets/git/builtin/fast-import.c:206:12: warning: variable 'import_marks_file_done' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int import_marks_file_done;
           ^
/datasets/git/builtin/fast-import.c:207:12: warning: variable 'relative_marks_paths' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int relative_marks_paths;
           ^
/datasets/git/builtin/fast-import.c:210:27: warning: variable 'last_blob' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct last_object last_blob = {
                          ^
/datasets/git/builtin/fast-import.c:210:27: warning: initializing non-local variable with non-const expression depending on uninitialized non-local variable 'strbuf_slopbuf' [cppcoreguidelines-interfaces-global-init]
/datasets/git/builtin/fast-import.c:215:21: warning: variable 'tree_entry_alloc' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned int tree_entry_alloc = 1000;
                    ^
/datasets/git/builtin/fast-import.c:215:40: warning: 1000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
static unsigned int tree_entry_alloc = 1000;
                                       ^
/datasets/git/builtin/fast-import.c:216:14: warning: variable 'avail_tree_entry' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static void *avail_tree_entry;
             ^
/datasets/git/builtin/fast-import.c:216:14: warning: variable 'avail_tree_entry' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/fast-import.c:217:21: warning: variable 'avail_tree_table_sz' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned int avail_tree_table_sz = 100;
                    ^
/datasets/git/builtin/fast-import.c:217:43: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
static unsigned int avail_tree_table_sz = 100;
                                          ^
/datasets/git/builtin/fast-import.c:218:36: warning: variable 'avail_tree_table' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct avail_tree_content **avail_tree_table;
                                   ^
/datasets/git/builtin/fast-import.c:218:36: warning: variable 'avail_tree_table' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/fast-import.c:219:15: warning: variable 'tree_entry_allocd' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static size_t tree_entry_allocd;
              ^
/datasets/git/builtin/fast-import.c:220:22: warning: variable 'old_tree' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct strbuf old_tree = STRBUF_INIT;
                     ^
/datasets/git/builtin/fast-import.c:220:22: warning: initializing non-local variable with non-const expression depending on uninitialized non-local variable 'strbuf_slopbuf' [cppcoreguidelines-interfaces-global-init]
/datasets/git/builtin/fast-import.c:221:22: warning: variable 'new_tree' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct strbuf new_tree = STRBUF_INIT;
                     ^
/datasets/git/builtin/fast-import.c:221:22: warning: initializing non-local variable with non-const expression depending on uninitialized non-local variable 'strbuf_slopbuf' [cppcoreguidelines-interfaces-global-init]
/datasets/git/builtin/fast-import.c:224:22: warning: variable 'max_active_branches' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned long max_active_branches = 5;
                     ^
/datasets/git/builtin/fast-import.c:224:44: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
static unsigned long max_active_branches = 5;
                                           ^
/datasets/git/builtin/fast-import.c:225:22: warning: variable 'cur_active_branches' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned long cur_active_branches;
                     ^
/datasets/git/builtin/fast-import.c:226:22: warning: variable 'branch_table_sz' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned long branch_table_sz = 1039;
                     ^
/datasets/git/builtin/fast-import.c:226:40: warning: 1039 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
static unsigned long branch_table_sz = 1039;
                                       ^
/datasets/git/builtin/fast-import.c:227:24: warning: variable 'branch_table' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct branch **branch_table;
                       ^
/datasets/git/builtin/fast-import.c:227:24: warning: variable 'branch_table' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/fast-import.c:228:23: warning: variable 'active_branches' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct branch *active_branches;
                      ^
/datasets/git/builtin/fast-import.c:228:23: warning: variable 'active_branches' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/fast-import.c:231:20: warning: variable 'first_tag' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct tag *first_tag;
                   ^
/datasets/git/builtin/fast-import.c:231:20: warning: variable 'first_tag' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/fast-import.c:232:20: warning: variable 'last_tag' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct tag *last_tag;
                   ^
/datasets/git/builtin/fast-import.c:232:20: warning: variable 'last_tag' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/fast-import.c:235:22: warning: variable 'whenspec' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static whenspec_type whenspec = WHENSPEC_RAW;
                     ^
/datasets/git/builtin/fast-import.c:236:22: warning: variable 'command_buf' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct strbuf command_buf = STRBUF_INIT;
                     ^
/datasets/git/builtin/fast-import.c:236:22: warning: initializing non-local variable with non-const expression depending on uninitialized non-local variable 'strbuf_slopbuf' [cppcoreguidelines-interfaces-global-init]
/datasets/git/builtin/fast-import.c:237:12: warning: variable 'unread_command_buf' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int unread_command_buf;
           ^
/datasets/git/builtin/fast-import.c:238:30: warning: variable 'cmd_hist' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct recent_command cmd_hist = {
                             ^
/datasets/git/builtin/fast-import.c:242:31: warning: variable 'cmd_tail' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct recent_command *cmd_tail = &cmd_hist;
                              ^
/datasets/git/builtin/fast-import.c:242:31: warning: variable 'cmd_tail' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/fast-import.c:243:31: warning: variable 'rc_free' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct recent_command *rc_free;
                              ^
/datasets/git/builtin/fast-import.c:243:31: warning: variable 'rc_free' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/fast-import.c:244:21: warning: variable 'cmd_save' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned int cmd_save = 100;
                    ^
/datasets/git/builtin/fast-import.c:244:32: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
static unsigned int cmd_save = 100;
                               ^
/datasets/git/builtin/fast-import.c:245:18: warning: variable 'next_mark' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static uintmax_t next_mark;
                 ^
/datasets/git/builtin/fast-import.c:246:22: warning: variable 'new_data' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct strbuf new_data = STRBUF_INIT;
                     ^
/datasets/git/builtin/fast-import.c:246:22: warning: initializing non-local variable with non-const expression depending on uninitialized non-local variable 'strbuf_slopbuf' [cppcoreguidelines-interfaces-global-init]
/datasets/git/builtin/fast-import.c:247:12: warning: variable 'seen_data_command' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int seen_data_command;
           ^
/datasets/git/builtin/fast-import.c:248:12: warning: variable 'require_explicit_termination' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int require_explicit_termination;
           ^
/datasets/git/builtin/fast-import.c:249:12: warning: variable 'allow_unsafe_features' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int allow_unsafe_features;
           ^
/datasets/git/builtin/fast-import.c:252:30: warning: variable 'checkpoint_requested' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static volatile sig_atomic_t checkpoint_requested;
                             ^
/datasets/git/builtin/fast-import.c:255:27: warning: variable 'sub_marks_from' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct string_list sub_marks_from = STRING_LIST_INIT_DUP;
                          ^
/datasets/git/builtin/fast-import.c:256:27: warning: variable 'sub_marks_to' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct string_list sub_marks_to = STRING_LIST_INIT_DUP;
                          ^
/datasets/git/builtin/fast-import.c:257:22: warning: variable 'sub_oid_map' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static kh_oid_map_t *sub_oid_map;
                     ^
/datasets/git/builtin/fast-import.c:257:22: warning: variable 'sub_oid_map' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/fast-import.c:260:12: warning: variable 'cat_blob_fd' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int cat_blob_fd = STDOUT_FILENO;
           ^
/datasets/git/builtin/fast-import.c:263:40: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static void parse_get_mark(const char *p);
                                       ^
/datasets/git/builtin/fast-import.c:264:40: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static void parse_cat_blob(const char *p);
                                       ^
/datasets/git/builtin/fast-import.c:265:34: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static void parse_ls(const char *p, struct branch *b);
                                 ^
/datasets/git/builtin/fast-import.c:265:52: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static void parse_ls(const char *p, struct branch *b);
                                                   ^
/datasets/git/builtin/fast-import.c:267:13: warning: function 'for_each_mark' is within a recursive call chain [misc-no-recursion]
static void for_each_mark(struct mark_set *m, uintmax_t base, each_mark_fn_t callback, void *p)
            ^
/datasets/git/builtin/fast-import.c:267:13: note: example recursive call chain, starting from function 'for_each_mark'
/datasets/git/builtin/fast-import.c:273:5: note: Frame #1: function 'for_each_mark' calls function 'for_each_mark' here:
                                for_each_mark(m->data.sets[k], base + (k << m->shift), callback, p);
                                ^
/datasets/git/builtin/fast-import.c:273:5: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/builtin/fast-import.c:267:44: warning: parameter name 'm' is too short, expected at least 3 characters [readability-identifier-length]
static void for_each_mark(struct mark_set *m, uintmax_t base, each_mark_fn_t callback, void *p)
                                           ^
/datasets/git/builtin/fast-import.c:267:94: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static void for_each_mark(struct mark_set *m, uintmax_t base, each_mark_fn_t callback, void *p)
                                                                                             ^
/datasets/git/builtin/fast-import.c:269:12: warning: variable 'k' is not initialized [cppcoreguidelines-init-variables]
        uintmax_t k;
                  ^
                    = 0
/datasets/git/builtin/fast-import.c:269:12: warning: variable name 'k' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:271:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (k = 0; k < 1024; k++) {
                ^
/datasets/git/builtin/fast-import.c:271:19: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                for (k = 0; k < 1024; k++) {
                                ^
/datasets/git/builtin/fast-import.c:272:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (m->data.sets[k])
                                            ^
                                             {
/datasets/git/builtin/fast-import.c:276:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (k = 0; k < 1024; k++) {
                ^
/datasets/git/builtin/fast-import.c:276:19: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                for (k = 0; k < 1024; k++) {
                                ^
/datasets/git/builtin/fast-import.c:277:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (m->data.marked[k])
                                              ^
                                               {
/datasets/git/builtin/fast-import.c:283:43: warning: 2 adjacent parameters of 'dump_marks_fn' of similar type ('void *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void dump_marks_fn(uintmax_t mark, void *object, void *cbp) {
                                          ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:283:49: note: the first parameter in the range is 'object'
static void dump_marks_fn(uintmax_t mark, void *object, void *cbp) {
                                                ^~~~~~
/datasets/git/builtin/fast-import.c:283:63: note: the last parameter in the range is 'cbp'
static void dump_marks_fn(uintmax_t mark, void *object, void *cbp) {
                                                              ^~~
/datasets/git/builtin/fast-import.c:284:23: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
        struct object_entry *e = object;
                             ^
/datasets/git/builtin/fast-import.c:285:8: warning: variable name 'f' is too short, expected at least 3 characters [readability-identifier-length]
        FILE *f = cbp;
              ^
/datasets/git/builtin/fast-import.c:287:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(f, ":%" PRIuMAX " %s\n", mark, oid_to_hex(&e->idx.oid));
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:287:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:290:59: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static void write_branch_report(FILE *rpt, struct branch *b)
                                                          ^
/datasets/git/builtin/fast-import.c:292:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(rpt, "%s:\n", b->name);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:292:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:294:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(rpt, "  status      :");
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:294:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:295:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (b->active)
                      ^
                       {
/datasets/git/builtin/fast-import.c:296:3: warning: the value returned by this function should be used [cert-err33-c]
                fputs(" active", rpt);
                ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:296:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:297:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (b->branch_tree.tree)
                                ^
                                 {
/datasets/git/builtin/fast-import.c:298:3: warning: the value returned by this function should be used [cert-err33-c]
                fputs(" loaded", rpt);
                ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:298:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:299:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_null_oid(&b->branch_tree.versions[1].oid))
                                                         ^
                                                          {
/datasets/git/builtin/fast-import.c:300:3: warning: the value returned by this function should be used [cert-err33-c]
                fputs(" dirty", rpt);
                ^~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:300:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:301:2: warning: the value returned by this function should be used [cert-err33-c]
        fputc('\n', rpt);
        ^~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:301:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:303:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(rpt, "  tip commit  : %s\n", oid_to_hex(&b->oid));
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:303:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:304:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(rpt, "  old tree    : %s\n",
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:304:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:306:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(rpt, "  cur tree    : %s\n",
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:306:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:308:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(rpt, "  commit clock: %" PRIuMAX "\n", b->last_commit);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:308:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:310:2: warning: the value returned by this function should be used [cert-err33-c]
        fputs("  last pack   : ", rpt);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:310:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:311:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (b->pack_id < MAX_PACK_ID)
                         ^
/datasets/git/builtin/fast-import.c:25:23: note: expanded from macro 'MAX_PACK_ID'
#define MAX_PACK_ID ((1<<PACK_ID_BITS)-1)
                      ^
/datasets/git/builtin/fast-import.c:311:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (b->pack_id < MAX_PACK_ID)
                                     ^
                                      {
/datasets/git/builtin/fast-import.c:312:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(rpt, "%u", b->pack_id);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:312:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:313:2: warning: the value returned by this function should be used [cert-err33-c]
        fputc('\n', rpt);
        ^~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:313:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:315:2: warning: the value returned by this function should be used [cert-err33-c]
        fputc('\n', rpt);
        ^~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:315:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:322:17: warning: variable 'b' is not initialized [cppcoreguidelines-init-variables]
        struct branch *b;
                       ^
                         = NULL
/datasets/git/builtin/fast-import.c:322:17: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:323:16: warning: variable 'lu' is not initialized [cppcoreguidelines-init-variables]
        unsigned long lu;
                      ^
                         = 0
/datasets/git/builtin/fast-import.c:323:16: warning: variable name 'lu' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:324:25: warning: variable 'rc' is not initialized [cppcoreguidelines-init-variables]
        struct recent_command *rc;
                               ^
                                  = NULL
/datasets/git/builtin/fast-import.c:324:25: warning: variable name 'rc' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:332:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(stderr, "fast-import: dumping crash report to %s\n", loc);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:332:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:334:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(rpt, "fast-import crash report:\n");
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:334:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:335:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(rpt, "    fast-import process: %"PRIuMAX"\n", (uintmax_t) getpid());
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:335:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:336:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(rpt, "    parent process     : %"PRIuMAX"\n", (uintmax_t) getppid());
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:336:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:337:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(rpt, "    at %s\n", show_date(time(NULL), 0, DATE_MODE(ISO8601)));
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:337:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:338:2: warning: the value returned by this function should be used [cert-err33-c]
        fputc('\n', rpt);
        ^~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:338:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:340:2: warning: the value returned by this function should be used [cert-err33-c]
        fputs("fatal: ", rpt);
        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:340:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:341:2: warning: the value returned by this function should be used [cert-err33-c]
        fputs(err, rpt);
        ^~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:341:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:342:2: warning: the value returned by this function should be used [cert-err33-c]
        fputc('\n', rpt);
        ^~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:342:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:344:2: warning: the value returned by this function should be used [cert-err33-c]
        fputc('\n', rpt);
        ^~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:344:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:345:2: warning: the value returned by this function should be used [cert-err33-c]
        fputs("Most Recent Commands Before Crash\n", rpt);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:345:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:346:2: warning: the value returned by this function should be used [cert-err33-c]
        fputs("---------------------------------\n", rpt);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:346:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:347:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (rc = cmd_hist.next; rc != &cmd_hist; rc = rc->next) {
        ^
/datasets/git/builtin/fast-import.c:347:27: warning: backward branch (for loop) is ID-dependent due to variable reference to 'rc' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (rc = cmd_hist.next; rc != &cmd_hist; rc = rc->next) {
                                 ^
/datasets/git/builtin/fast-import.c:348:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (rc->next == &cmd_hist)
                                          ^
                                           {
/datasets/git/builtin/fast-import.c:349:4: warning: the value returned by this function should be used [cert-err33-c]
                        fputs("* ", rpt);
                        ^~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:349:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:350:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/fast-import.c:351:4: warning: the value returned by this function should be used [cert-err33-c]
                        fputs("  ", rpt);
                        ^~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:351:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:352:3: warning: the value returned by this function should be used [cert-err33-c]
                fputs(rc->buf, rpt);
                ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:352:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:353:3: warning: the value returned by this function should be used [cert-err33-c]
                fputc('\n', rpt);
                ^~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:353:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:356:2: warning: the value returned by this function should be used [cert-err33-c]
        fputc('\n', rpt);
        ^~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:356:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:357:2: warning: the value returned by this function should be used [cert-err33-c]
        fputs("Active Branch LRU\n", rpt);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:357:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:358:2: warning: the value returned by this function should be used [cert-err33-c]
        fputs("-----------------\n", rpt);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:358:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:359:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(rpt, "    active_branches = %lu cur, %lu max\n",
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:359:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:362:2: warning: the value returned by this function should be used [cert-err33-c]
        fputc('\n', rpt);
        ^~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:362:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:363:2: warning: the value returned by this function should be used [cert-err33-c]
        fputs("  pos  clock name\n", rpt);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:363:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:364:2: warning: the value returned by this function should be used [cert-err33-c]
        fputs("  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n", rpt);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:364:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:365:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (b = active_branches, lu = 0; b; b = b->active_next_branch)
        ^
/datasets/git/builtin/fast-import.c:365:36: warning: backward branch (for loop) is ID-dependent due to variable reference to 'b' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (b = active_branches, lu = 0; b; b = b->active_next_branch)
                                          ^
/datasets/git/builtin/fast-import.c:365:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (b = active_branches, lu = 0; b; b = b->active_next_branch)
                                                                       ^
                                                                        {
/datasets/git/builtin/fast-import.c:366:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(rpt, "  %2lu) %6" PRIuMAX" %s\n",
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:366:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:369:2: warning: the value returned by this function should be used [cert-err33-c]
        fputc('\n', rpt);
        ^~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:369:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:370:2: warning: the value returned by this function should be used [cert-err33-c]
        fputs("Inactive Branches\n", rpt);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:370:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:371:2: warning: the value returned by this function should be used [cert-err33-c]
        fputs("-----------------\n", rpt);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:371:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:373:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (b = branch_table[lu]; b; b = b->table_next_branch)
                ^
/datasets/git/builtin/fast-import.c:373:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'b' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (b = branch_table[lu]; b; b = b->table_next_branch)
                                           ^
/datasets/git/builtin/fast-import.c:373:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (b = branch_table[lu]; b; b = b->table_next_branch)
                                                                       ^
                                                                        {
/datasets/git/builtin/fast-import.c:378:15: warning: variable 'tg' is not initialized [cppcoreguidelines-init-variables]
                struct tag *tg;
                            ^
                               = NULL
/datasets/git/builtin/fast-import.c:378:15: warning: variable name 'tg' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:379:3: warning: the value returned by this function should be used [cert-err33-c]
                fputc('\n', rpt);
                ^~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:379:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:380:3: warning: the value returned by this function should be used [cert-err33-c]
                fputs("Annotated Tags\n", rpt);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:380:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:381:3: warning: the value returned by this function should be used [cert-err33-c]
                fputs("--------------\n", rpt);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:381:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:378:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                struct tag *tg;
                ^
/datasets/git/builtin/fast-import.c:382:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (tg = first_tag; tg; tg = tg->next_tag) {
                ^
/datasets/git/builtin/fast-import.c:382:24: warning: backward branch (for loop) is ID-dependent due to variable reference to 'tg' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (tg = first_tag; tg; tg = tg->next_tag) {
                                     ^
/datasets/git/builtin/fast-import.c:383:4: warning: the value returned by this function should be used [cert-err33-c]
                        fputs(oid_to_hex(&tg->oid), rpt);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:383:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:384:4: warning: the value returned by this function should be used [cert-err33-c]
                        fputc(' ', rpt);
                        ^~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:384:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:385:4: warning: the value returned by this function should be used [cert-err33-c]
                        fputs(tg->name, rpt);
                        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:385:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:386:4: warning: the value returned by this function should be used [cert-err33-c]
                        fputc('\n', rpt);
                        ^~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:386:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:390:2: warning: the value returned by this function should be used [cert-err33-c]
        fputc('\n', rpt);
        ^~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:390:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:391:2: warning: the value returned by this function should be used [cert-err33-c]
        fputs("Marks\n", rpt);
        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:391:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:392:2: warning: the value returned by this function should be used [cert-err33-c]
        fputs("-----\n", rpt);
        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:392:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:393:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (export_marks_file)
                              ^
                               {
/datasets/git/builtin/fast-import.c:394:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(rpt, "  exported to %s\n", export_marks_file);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:394:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:395:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/fast-import.c:398:2: warning: the value returned by this function should be used [cert-err33-c]
        fputc('\n', rpt);
        ^~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:398:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:399:2: warning: the value returned by this function should be used [cert-err33-c]
        fputs("-------------------\n", rpt);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:399:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:400:2: warning: the value returned by this function should be used [cert-err33-c]
        fputs("END OF CRASH REPORT\n", rpt);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:400:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:401:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(rpt);
        ^~~~~~~~~~~
/datasets/git/builtin/fast-import.c:401:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:324:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct recent_command *rc;
        ^
/datasets/git/builtin/fast-import.c:411:10: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
        va_list cp;
                ^
/datasets/git/builtin/fast-import.c:422:3: warning: the value returned by this function should be used [cert-err33-c]
                vsnprintf(message, sizeof(message), err, cp);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:422:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:422:3: warning: Call to function 'vsnprintf' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'vsnprintf_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                vsnprintf(message, sizeof(message), err, cp);
                ^~~~~~~~~
/datasets/git/builtin/fast-import.c:422:3: note: Call to function 'vsnprintf' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'vsnprintf_s' in case of C11
                vsnprintf(message, sizeof(message), err, cp);
                ^~~~~~~~~
/datasets/git/builtin/fast-import.c:422:3: warning: Function 'vsnprintf' is called with an uninitialized va_list argument [clang-analyzer-valist.Uninitialized]
                vsnprintf(message, sizeof(message), err, cp);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:418:7: note: 'zombie' is 0
        if (!zombie) {
             ^~~~~~
/datasets/git/builtin/fast-import.c:418:2: note: Taking true branch
        if (!zombie) {
        ^
/datasets/git/builtin/fast-import.c:422:3: note: Function 'vsnprintf' is called with an uninitialized va_list argument
                vsnprintf(message, sizeof(message), err, cp);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:428:2: warning: function is not thread safe [concurrency-mt-unsafe]
        exit(128);
        ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/fast-import.c:439:35: warning: parameter 'signo' is unused [misc-unused-parameters]
static void checkpoint_signal(int signo)
                                  ^
/datasets/git/builtin/fast-import.c:446:19: warning: variable name 'sa' is too short, expected at least 3 characters [readability-identifier-length]
        struct sigaction sa;
                         ^
/datasets/git/builtin/fast-import.c:448:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&sa, 0, sizeof(sa));
        ^~~~~~
/datasets/git/builtin/fast-import.c:448:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&sa, 0, sizeof(sa));
        ^~~~~~
/datasets/git/builtin/fast-import.c:459:28: warning: variable 'b' is not initialized [cppcoreguidelines-init-variables]
        struct object_entry_pool *b;
                                  ^
                                    = NULL
/datasets/git/builtin/fast-import.c:459:28: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:472:23: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct object_entry *e;
                             ^
                               = NULL
/datasets/git/builtin/fast-import.c:472:23: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:474:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (blocks->next_free == blocks->end)
                                             ^
                                              {
/datasets/git/builtin/fast-import.c:490:23: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct object_entry *e;
                             ^
                               = NULL
/datasets/git/builtin/fast-import.c:490:23: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:505:45: warning: parameter name 'id' is too short, expected at least 3 characters [readability-identifier-length]
static void invalidate_pack_id(unsigned int id)
                                            ^
/datasets/git/builtin/fast-import.c:510:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct object_entry *e;
        ^
/datasets/git/builtin/fast-import.c:507:16: warning: variable 'lu' is not initialized [cppcoreguidelines-init-variables]
        unsigned long lu;
                      ^
                         = 0
/datasets/git/builtin/fast-import.c:507:16: warning: variable name 'lu' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:508:14: warning: variable 't' is not initialized [cppcoreguidelines-init-variables]
        struct tag *t;
                    ^
                      = NULL
/datasets/git/builtin/fast-import.c:508:14: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:510:23: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct object_entry *e;
                             ^
                               = NULL
/datasets/git/builtin/fast-import.c:510:23: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:512:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        hashmap_for_each_entry(&object_table, &iter, e, ent) {
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/builtin/fast-import.c:512:47: warning: backward branch (for loop) is ID-dependent due to variable reference to 'e' and may cause performance degradation [altera-id-dependent-backward-branch]
        hashmap_for_each_entry(&object_table, &iter, e, ent) {
                                                     ^
/datasets/git/builtin/fast-import.c:513:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (e->pack_id == id)
                                     ^
                                      {
/datasets/git/builtin/fast-import.c:514:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        e->pack_id = MAX_PACK_ID;
                                     ^
/datasets/git/builtin/fast-import.c:25:23: note: expanded from macro 'MAX_PACK_ID'
#define MAX_PACK_ID ((1<<PACK_ID_BITS)-1)
                      ^
/datasets/git/builtin/fast-import.c:518:18: warning: variable 'b' is not initialized [cppcoreguidelines-init-variables]
                struct branch *b;
                               ^
                                 = NULL
/datasets/git/builtin/fast-import.c:518:18: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:520:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (b = branch_table[lu]; b; b = b->table_next_branch)
                ^
/datasets/git/builtin/fast-import.c:520:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'b' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (b = branch_table[lu]; b; b = b->table_next_branch)
                                           ^
/datasets/git/builtin/fast-import.c:520:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (b = branch_table[lu]; b; b = b->table_next_branch)
                                                                       ^
                                                                        {
/datasets/git/builtin/fast-import.c:521:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (b->pack_id == id)
                                             ^
                                              {
/datasets/git/builtin/fast-import.c:522:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                b->pack_id = MAX_PACK_ID;
                                             ^
/datasets/git/builtin/fast-import.c:25:23: note: expanded from macro 'MAX_PACK_ID'
#define MAX_PACK_ID ((1<<PACK_ID_BITS)-1)
                      ^
/datasets/git/builtin/fast-import.c:525:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (t = first_tag; t; t = t->next_tag)
        ^
/datasets/git/builtin/fast-import.c:525:22: warning: backward branch (for loop) is ID-dependent due to variable reference to 't' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (t = first_tag; t; t = t->next_tag)
                            ^
/datasets/git/builtin/fast-import.c:525:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (t = first_tag; t; t = t->next_tag)
                                               ^
                                                {
/datasets/git/builtin/fast-import.c:526:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (t->pack_id == id)
                                     ^
                                      {
/datasets/git/builtin/fast-import.c:527:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        t->pack_id = MAX_PACK_ID;
                                     ^
/datasets/git/builtin/fast-import.c:25:23: note: expanded from macro 'MAX_PACK_ID'
#define MAX_PACK_ID ((1<<PACK_ID_BITS)-1)
                      ^
/datasets/git/builtin/fast-import.c:530:40: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static unsigned int hc_str(const char *s, size_t len)
                                       ^
/datasets/git/builtin/fast-import.c:532:15: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned int r = 0;
                     ^
/datasets/git/builtin/fast-import.c:533:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (len-- > 0)
        ^
/datasets/git/builtin/fast-import.c:533:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (len-- > 0)
                         ^
                          {
/datasets/git/builtin/fast-import.c:534:11: warning: 31 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                r = r * 31 + *s++;
                        ^
/datasets/git/builtin/fast-import.c:538:86: warning: parameter name 'oe' is too short, expected at least 3 characters [readability-identifier-length]
static void insert_mark(struct mark_set **top, uintmax_t idnum, struct object_entry *oe)
                                                                                     ^
/datasets/git/builtin/fast-import.c:538:48: note: inferred assignment of ID-dependent value from ID-dependent variable i [altera-id-dependent-backward-branch]
static void insert_mark(struct mark_set **top, uintmax_t idnum, struct object_entry *oe)
                                               ^
/datasets/git/builtin/fast-import.c:540:19: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
        struct mark_set *s = *top;
                         ^
/datasets/git/builtin/fast-import.c:542:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((idnum >> s->shift) >= 1024) {
        ^
/datasets/git/builtin/fast-import.c:540:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct mark_set *s = *top;
        ^
/datasets/git/builtin/fast-import.c:542:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'idnum' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((idnum >> s->shift) >= 1024) {
               ^
/datasets/git/builtin/fast-import.c:542:32: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        while ((idnum >> s->shift) >= 1024) {
                                      ^
/datasets/git/builtin/fast-import.c:544:30: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                s->shift = (*top)->shift + 10;
                                           ^
/datasets/git/builtin/fast-import.c:548:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (s->shift) {
        ^
/datasets/git/builtin/fast-import.c:548:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 's' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (s->shift) {
               ^
/datasets/git/builtin/fast-import.c:549:13: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
                uintmax_t i = idnum >> s->shift;
                          ^
/datasets/git/builtin/fast-import.c:553:40: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        s->data.sets[i]->shift = s->shift - 10;
                                                            ^
/datasets/git/builtin/fast-import.c:557:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!s->data.marked[idnum])
                                   ^
                                    {
/datasets/git/builtin/fast-import.c:562:41: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void *find_mark(struct mark_set *s, uintmax_t idnum)
                                        ^
/datasets/git/builtin/fast-import.c:565:23: warning: variable name 'oe' is too short, expected at least 3 characters [readability-identifier-length]
        struct object_entry *oe = NULL;
                             ^
/datasets/git/builtin/fast-import.c:566:28: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if ((idnum >> s->shift) < 1024) {
                                  ^
/datasets/git/builtin/fast-import.c:567:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (s && s->shift) {
                ^
/datasets/git/builtin/fast-import.c:567:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 's' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (s && s->shift) {
                       ^
/datasets/git/builtin/fast-import.c:568:14: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
                        uintmax_t i = idnum >> s->shift;
                                  ^
/datasets/git/builtin/fast-import.c:572:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (s)
                      ^
                       {
/datasets/git/builtin/fast-import.c:575:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!oe)
                ^
                 {
/datasets/git/builtin/fast-import.c:580:45: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static struct atom_str *to_atom(const char *s, unsigned short len)
                                            ^
/datasets/git/builtin/fast-import.c:582:15: warning: variable name 'hc' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned int hc = hc_str(s, len) % atom_table_sz;
                     ^
/datasets/git/builtin/fast-import.c:583:19: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        struct atom_str *c;
                         ^
                           = NULL
/datasets/git/builtin/fast-import.c:583:19: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:585:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (c = atom_table[hc]; c; c = c->next_atom)
        ^
/datasets/git/builtin/fast-import.c:585:27: warning: backward branch (for loop) is ID-dependent due to variable reference to 'c' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (c = atom_table[hc]; c; c = c->next_atom)
                                 ^
/datasets/git/builtin/fast-import.c:585:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (c = atom_table[hc]; c; c = c->next_atom)
                                                     ^
                                                      {
/datasets/git/builtin/fast-import.c:586:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (c->str_len == len && !strncmp(s, c->str_dat, len))
                                                                      ^
                                                                       {
/datasets/git/builtin/fast-import.c:591:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(c->str_dat, s, len);
        ^~~~~~
/datasets/git/builtin/fast-import.c:591:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(c->str_dat, s, len);
        ^~~~~~
/datasets/git/builtin/fast-import.c:601:15: warning: variable name 'hc' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned int hc = hc_str(name, strlen(name)) % branch_table_sz;
                     ^
/datasets/git/builtin/fast-import.c:602:17: warning: variable 'b' is not initialized [cppcoreguidelines-init-variables]
        struct branch *b;
                       ^
                         = NULL
/datasets/git/builtin/fast-import.c:602:17: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:604:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (b = branch_table[hc]; b; b = b->table_next_branch)
        ^
/datasets/git/builtin/fast-import.c:604:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'b' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (b = branch_table[hc]; b; b = b->table_next_branch)
                                   ^
/datasets/git/builtin/fast-import.c:604:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (b = branch_table[hc]; b; b = b->table_next_branch)
                                                               ^
                                                                {
/datasets/git/builtin/fast-import.c:605:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(name, b->name))
                                           ^
                                            {
/datasets/git/builtin/fast-import.c:612:15: warning: variable name 'hc' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned int hc = hc_str(name, strlen(name)) % branch_table_sz;
                     ^
/datasets/git/builtin/fast-import.c:613:17: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        struct branch *b = lookup_branch(name);
                       ^
/datasets/git/builtin/fast-import.c:615:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (b)
              ^
               {
/datasets/git/builtin/fast-import.c:617:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (check_refname_format(name, REFNAME_ALLOW_ONELEVEL))
                                                               ^
                                                                {
/datasets/git/builtin/fast-import.c:627:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        b->pack_id = MAX_PACK_ID;
                     ^
/datasets/git/builtin/fast-import.c:25:23: note: expanded from macro 'MAX_PACK_ID'
#define MAX_PACK_ID ((1<<PACK_ID_BITS)-1)
                      ^
/datasets/git/builtin/fast-import.c:635:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        cnt = cnt & 7 ? (cnt / 8) + 1 : cnt / 8;
              ^     ~
/datasets/git/builtin/fast-import.c:635:14: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        cnt = cnt & 7 ? (cnt / 8) + 1 : cnt / 8;
                    ^
/datasets/git/builtin/fast-import.c:635:25: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        cnt = cnt & 7 ? (cnt / 8) + 1 : cnt / 8;
                               ^
/datasets/git/builtin/fast-import.c:635:40: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        cnt = cnt & 7 ? (cnt / 8) + 1 : cnt / 8;
                                              ^
/datasets/git/builtin/fast-import.c:641:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct avail_tree_content *f, *l = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:641:29: warning: variable 'f' is not initialized [cppcoreguidelines-init-variables]
        struct avail_tree_content *f, *l = NULL;
                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-import.c:641:29: warning: variable name 'f' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:641:33: warning: variable name 'l' is too short, expected at least 3 characters [readability-identifier-length]
        struct avail_tree_content *f, *l = NULL;
                                       ^
/datasets/git/builtin/fast-import.c:642:23: warning: variable 't' is not initialized [cppcoreguidelines-init-variables]
        struct tree_content *t;
                             ^
                               = NULL
/datasets/git/builtin/fast-import.c:642:23: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:643:15: warning: variable name 'hc' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned int hc = hc_entries(cnt);
                     ^
/datasets/git/builtin/fast-import.c:645:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (f = avail_tree_table[hc]; f; l = f, f = f->next_avail)
        ^
/datasets/git/builtin/fast-import.c:645:33: warning: backward branch (for loop) is ID-dependent due to variable reference to 'f' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (f = avail_tree_table[hc]; f; l = f, f = f->next_avail)
                                       ^
/datasets/git/builtin/fast-import.c:645:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (f = avail_tree_table[hc]; f; l = f, f = f->next_avail)
                                                                   ^
                                                                    {
/datasets/git/builtin/fast-import.c:646:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (f->entry_capacity >= cnt)
                                             ^
                                              {
/datasets/git/builtin/fast-import.c:650:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (l)
                      ^
                       {
/datasets/git/builtin/fast-import.c:652:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/fast-import.c:655:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                cnt = cnt & 7 ? ((cnt / 8) + 1) * 8 : cnt;
                      ^     ~
/datasets/git/builtin/fast-import.c:655:15: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                cnt = cnt & 7 ? ((cnt / 8) + 1) * 8 : cnt;
                            ^
/datasets/git/builtin/fast-import.c:655:27: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                cnt = cnt & 7 ? ((cnt / 8) + 1) * 8 : cnt;
                                        ^
/datasets/git/builtin/fast-import.c:655:37: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                cnt = cnt & 7 ? ((cnt / 8) + 1) * 8 : cnt;
                                                  ^
/datasets/git/builtin/fast-import.c:656:49: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                f = mem_pool_alloc(&fi_mem_pool, sizeof(*t) + sizeof(t->entries[0]) * cnt);
                                                              ^
/datasets/git/builtin/fast-import.c:666:51: warning: parameter name 'e' is too short, expected at least 3 characters [readability-identifier-length]
static void release_tree_entry(struct tree_entry *e);
                                                  ^
/datasets/git/builtin/fast-import.c:667:55: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
static void release_tree_content(struct tree_content *t)
                                                      ^
/datasets/git/builtin/fast-import.c:669:29: warning: variable name 'f' is too short, expected at least 3 characters [readability-identifier-length]
        struct avail_tree_content *f = (struct avail_tree_content*)t;
                                   ^
/datasets/git/builtin/fast-import.c:670:15: warning: variable name 'hc' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned int hc = hc_entries(f->entry_capacity);
                     ^
/datasets/git/builtin/fast-import.c:675:13: warning: function 'release_tree_content_recursive' is within a recursive call chain [misc-no-recursion]
static void release_tree_content_recursive(struct tree_content *t)
            ^
/datasets/git/builtin/fast-import.c:716:13: note: example recursive call chain, starting from function 'release_tree_entry'
static void release_tree_entry(struct tree_entry *e)
            ^
/datasets/git/builtin/fast-import.c:719:3: note: Frame #1: function 'release_tree_entry' calls function 'release_tree_content_recursive' here:
                release_tree_content_recursive(e->tree);
                ^
/datasets/git/builtin/fast-import.c:679:3: note: Frame #2: function 'release_tree_content_recursive' calls function 'release_tree_entry' here:
                release_tree_entry(t->entries[i]);
                ^
/datasets/git/builtin/fast-import.c:679:3: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/builtin/fast-import.c:675:65: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
static void release_tree_content_recursive(struct tree_content *t)
                                                                ^
/datasets/git/builtin/fast-import.c:677:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i;
                     ^
                       = 0
/datasets/git/builtin/fast-import.c:677:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:678:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < t->entry_count; i++)
        ^
/datasets/git/builtin/fast-import.c:678:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < t->entry_count; i++)
                                            ^
                                             {
/datasets/git/builtin/fast-import.c:684:23: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
        struct tree_content *t,
                             ^
/datasets/git/builtin/fast-import.c:687:23: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        struct tree_content *r = new_tree_content(t->entry_count + amt);
                             ^
/datasets/git/builtin/fast-import.c:690:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        COPY_ARRAY(r->entries, t->entries, t->entry_count);
        ^
/datasets/git/./git-compat-util.h:1094:63: note: expanded from macro 'COPY_ARRAY'
#define COPY_ARRAY(dst, src, n) copy_array((dst), (src), (n), sizeof(*(dst)) + \
                                                              ^
/datasets/git/builtin/fast-import.c:697:21: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct tree_entry *e;
                           ^
                             = NULL
/datasets/git/builtin/fast-import.c:697:21: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:700:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                unsigned int n = tree_entry_alloc;
                ^
/datasets/git/builtin/fast-import.c:700:16: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
                unsigned int n = tree_entry_alloc;
                             ^
/datasets/git/builtin/fast-import.c:704:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (n-- > 1) {
                ^
/datasets/git/builtin/fast-import.c:704:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'n' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (n-- > 1) {
                       ^
/datasets/git/builtin/fast-import.c:716:13: warning: function 'release_tree_entry' is within a recursive call chain [misc-no-recursion]
static void release_tree_entry(struct tree_entry *e)
            ^
/datasets/git/builtin/fast-import.c:716:51: warning: parameter name 'e' is too short, expected at least 3 characters [readability-identifier-length]
static void release_tree_entry(struct tree_entry *e)
                                                  ^
/datasets/git/builtin/fast-import.c:718:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (e->tree)
                    ^
                     {
/datasets/git/builtin/fast-import.c:724:29: warning: function 'dup_tree_content' is within a recursive call chain [misc-no-recursion]
static struct tree_content *dup_tree_content(struct tree_content *s)
                            ^
/datasets/git/builtin/fast-import.c:724:29: note: example recursive call chain, starting from function 'dup_tree_content'
/datasets/git/builtin/fast-import.c:738:14: note: Frame #1: function 'dup_tree_content' calls function 'dup_tree_content' here:
                        b->tree = dup_tree_content(a->tree);
                                  ^
/datasets/git/builtin/fast-import.c:738:14: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/builtin/fast-import.c:724:67: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static struct tree_content *dup_tree_content(struct tree_content *s)
                                                                  ^
/datasets/git/builtin/fast-import.c:726:23: warning: variable 'd' is not initialized [cppcoreguidelines-init-variables]
        struct tree_content *d;
                             ^
                               = NULL
/datasets/git/builtin/fast-import.c:726:23: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:727:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct tree_entry *a, *b;
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:727:21: warning: variable 'a' is not initialized [cppcoreguidelines-init-variables]
        struct tree_entry *a, *b;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-import.c:727:21: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:727:25: warning: variable 'b' is not initialized [cppcoreguidelines-init-variables]
        struct tree_entry *a, *b;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-import.c:727:25: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:728:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i;
                     ^
                       = 0
/datasets/git/builtin/fast-import.c:728:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:730:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!s)
               ^
                {
/datasets/git/builtin/fast-import.c:733:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < s->entry_count; i++) {
        ^
/datasets/git/builtin/fast-import.c:733:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'entry_count' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < s->entry_count; i++) {
                    ^
/datasets/git/builtin/fast-import.c:736:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(b, a, sizeof(*a));
                ^~~~~~
/datasets/git/builtin/fast-import.c:736:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(b, a, sizeof(*a));
                ^~~~~~
/datasets/git/builtin/fast-import.c:737:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (a->tree && is_null_oid(&b->versions[1].oid))
                                                                ^
                                                                 {
/datasets/git/builtin/fast-import.c:739:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/fast-import.c:752:21: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct packed_git *p;
                           ^
                             = NULL
/datasets/git/builtin/fast-import.c:752:21: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:753:6: warning: variable 'pack_fd' is not initialized [cppcoreguidelines-init-variables]
        int pack_fd;
            ^
                    = 0
/datasets/git/builtin/fast-import.c:756:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FLEX_ALLOC_STR(p, pack_name, tmp_file.buf);
        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^
/datasets/git/./git-compat-util.h:1151:47: note: expanded from macro 'FLEX_ALLOC_MEM'
#define FLEX_ALLOC_MEM(x, flexname, buf, len) do { \
                                              ^
/datasets/git/builtin/fast-import.c:756:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        FLEX_ALLOC_STR(p, pack_name, tmp_file.buf);
        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/builtin/fast-import.c:756:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        FLEX_ALLOC_STR(p, pack_name, tmp_file.buf);
        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/builtin/fast-import.c:767:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        REALLOC_ARRAY(all_packs, pack_id + 1);
        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/builtin/fast-import.c:773:14: warning: variable 'tmpfile' is not initialized [cppcoreguidelines-init-variables]
        const char *tmpfile;
                    ^
                            = NULL
/datasets/git/builtin/fast-import.c:774:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct pack_idx_entry **idx, **c, **last;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:774:26: warning: variable 'idx' is not initialized [cppcoreguidelines-init-variables]
        struct pack_idx_entry **idx, **c, **last;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-import.c:774:33: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        struct pack_idx_entry **idx, **c, **last;
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-import.c:774:33: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:774:38: warning: variable 'last' is not initialized [cppcoreguidelines-init-variables]
        struct pack_idx_entry **idx, **c, **last;
                                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-import.c:775:23: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct object_entry *e;
                             ^
                               = NULL
/datasets/git/builtin/fast-import.c:775:23: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:776:28: warning: variable 'o' is not initialized [cppcoreguidelines-init-variables]
        struct object_entry_pool *o;
                                  ^
                                    = NULL
/datasets/git/builtin/fast-import.c:776:28: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:779:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_ARRAY(idx, object_count);
        ^
/datasets/git/./git-compat-util.h:1090:53: note: expanded from macro 'ALLOC_ARRAY'
#define ALLOC_ARRAY(x, alloc) (x) = xmalloc(st_mult(sizeof(*(x)), (alloc)))
                                                    ^
/datasets/git/builtin/fast-import.c:781:19: warning: backward branch (for loop) is ID-dependent due to variable reference to 'o' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (o = blocks; o; o = o->next_pool)
                         ^
/datasets/git/builtin/fast-import.c:781:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (o = blocks; o; o = o->next_pool)
                                             ^
                                              {
/datasets/git/builtin/fast-import.c:782:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (e = o->next_free; e-- != o->entries;)
                ^
/datasets/git/builtin/fast-import.c:782:26: warning: backward branch (for loop) is ID-dependent due to variable reference to 'e' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (e = o->next_free; e-- != o->entries;)
                                       ^
/datasets/git/builtin/fast-import.c:782:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (e = o->next_free; e-- != o->entries;)
                                                          ^
                                                           {
/datasets/git/builtin/fast-import.c:783:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (pack_id == e->pack_id)
                                                  ^
                                                   {
/datasets/git/builtin/fast-import.c:786:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (c != last)
                      ^
                       {
/datasets/git/builtin/fast-import.c:789:38: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        tmpfile = write_idx_file(NULL, idx, object_count, &pack_idx_opts,
                                            ^
/datasets/git/builtin/fast-import.c:799:6: warning: variable 'keep_fd' is not initialized [cppcoreguidelines-init-variables]
        int keep_fd;
            ^
                    = 0
/datasets/git/builtin/fast-import.c:803:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (keep_fd < 0)
                        ^
                         {
/datasets/git/builtin/fast-import.c:806:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (close(keep_fd))
                           ^
                            {
/datasets/git/builtin/fast-import.c:810:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (finalize_object_file(pack_data->pack_name, name.buf))
                                                                 ^
                                                                  {
/datasets/git/builtin/fast-import.c:814:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (finalize_object_file(curr_index_name, name.buf))
                                                            ^
                                                             {
/datasets/git/builtin/fast-import.c:823:6: warning: variable 'k' is not initialized [cppcoreguidelines-init-variables]
        int k;
            ^
              = 0
/datasets/git/builtin/fast-import.c:823:6: warning: variable name 'k' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:825:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (k = 0; k < pack_id; k++) {
        ^
/datasets/git/builtin/fast-import.c:826:22: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct packed_git *p = all_packs[k];
                                   ^
/datasets/git/builtin/fast-import.c:833:55: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static int loosen_small_pack(const struct packed_git *p)
                                                      ^
/datasets/git/builtin/fast-import.c:837:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (lseek(p->pack_fd, 0, SEEK_SET) < 0)
                                               ^
                                                {
/datasets/git/builtin/fast-import.c:844:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!show_stats)
                        ^
                         {
/datasets/git/builtin/fast-import.c:850:13: warning: function 'end_packfile' has cognitive complexity of 34 (threshold 25) [readability-function-cognitive-complexity]
static void end_packfile(void)
            ^
/datasets/git/builtin/fast-import.c:854:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (running || !pack_data)
        ^
/datasets/git/builtin/fast-import.c:854:14: note: +1
        if (running || !pack_data)
                    ^
/datasets/git/builtin/fast-import.c:859:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (object_count) {
        ^
/datasets/git/builtin/fast-import.c:873:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (object_count <= unpack_limit) {
                ^
/datasets/git/builtin/fast-import.c:874:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!loosen_small_pack(pack_data)) {
                        ^
/datasets/git/builtin/fast-import.c:876:5: note: +1
                                goto discard_pack;
                                ^
/datasets/git/builtin/fast-import.c:885:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!new_p)
                ^
/datasets/git/builtin/fast-import.c:892:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (pack_edges) {
                ^
/datasets/git/builtin/fast-import.c:894:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (i = 0; i < branch_table_sz; i++) {
                        ^
/datasets/git/builtin/fast-import.c:895:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                for (b = branch_table[i]; b; b = b->table_next_branch) {
                                ^
/datasets/git/builtin/fast-import.c:896:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (b->pack_id == pack_id)
                                        ^
/datasets/git/builtin/fast-import.c:901:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (t = first_tag; t; t = t->next_tag) {
                        ^
/datasets/git/builtin/fast-import.c:902:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (t->pack_id == pack_id)
                                ^
/datasets/git/builtin/fast-import.c:912:2: note: +1, nesting level increased to 1
        else {
        ^
/datasets/git/builtin/fast-import.c:917:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        FREE_AND_NULL(pack_data);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/fast-import.c:854:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (running || !pack_data)
                                  ^
                                   {
/datasets/git/builtin/fast-import.c:860:22: warning: variable 'new_p' is not initialized [cppcoreguidelines-init-variables]
                struct packed_git *new_p;
                                   ^
                                         = NULL
/datasets/git/builtin/fast-import.c:862:9: warning: variable 'idx_name' is not initialized [cppcoreguidelines-init-variables]
                char *idx_name;
                      ^
                               = NULL
/datasets/git/builtin/fast-import.c:863:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/builtin/fast-import.c:863:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:864:18: warning: variable 'b' is not initialized [cppcoreguidelines-init-variables]
                struct branch *b;
                               ^
                                 = NULL
/datasets/git/builtin/fast-import.c:864:18: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:865:15: warning: variable 't' is not initialized [cppcoreguidelines-init-variables]
                struct tag *t;
                            ^
                              = NULL
/datasets/git/builtin/fast-import.c:865:15: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:885:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!new_p)
                           ^
                            {
/datasets/git/builtin/fast-import.c:893:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(pack_edges, "%s:", new_p->pack_name);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:893:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:895:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                for (b = branch_table[i]; b; b = b->table_next_branch) {
                                ^
/datasets/git/builtin/fast-import.c:895:31: warning: backward branch (for loop) is ID-dependent due to variable reference to 'b' and may cause performance degradation [altera-id-dependent-backward-branch]
                                for (b = branch_table[i]; b; b = b->table_next_branch) {
                                                          ^
/datasets/git/builtin/fast-import.c:896:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        if (b->pack_id == pack_id)
                                                                  ^
                                                                   {
/datasets/git/builtin/fast-import.c:897:7: warning: the value returned by this function should be used [cert-err33-c]
                                                fprintf(pack_edges, " %s",
                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:897:7: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:901:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (t = first_tag; t; t = t->next_tag) {
                        ^
/datasets/git/builtin/fast-import.c:864:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                struct branch *b;
                ^
/datasets/git/builtin/fast-import.c:901:24: warning: backward branch (for loop) is ID-dependent due to variable reference to 't' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (t = first_tag; t; t = t->next_tag) {
                                            ^
/datasets/git/builtin/fast-import.c:902:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (t->pack_id == pack_id)
                                                          ^
                                                           {
/datasets/git/builtin/fast-import.c:903:6: warning: the value returned by this function should be used [cert-err33-c]
                                        fprintf(pack_edges, " %s",
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:903:6: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:906:4: warning: the value returned by this function should be used [cert-err33-c]
                        fputc('\n', pack_edges);
                        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:906:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:907:4: warning: the value returned by this function should be used [cert-err33-c]
                        fflush(pack_edges);
                        ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:907:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:865:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                struct tag *t;
                ^
/datasets/git/builtin/fast-import.c:917:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(pack_data);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/fast-import.c:932:12: warning: function 'store_object' has cognitive complexity of 29 (threshold 25) [readability-function-cognitive-complexity]
static int store_object(
           ^
/datasets/git/builtin/fast-import.c:953:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (oidout)
        ^
/datasets/git/builtin/fast-import.c:957:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mark)
        ^
/datasets/git/builtin/fast-import.c:959:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (e->idx.offset) {
        ^
/datasets/git/builtin/fast-import.c:962:9: note: +1, nesting level increased to 1
        } else if (find_sha1_pack(oid.hash,
               ^
/datasets/git/builtin/fast-import.c:971:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (last && last->data.len && last->data.buf && last->depth < max_depth
        ^
/datasets/git/builtin/fast-import.c:972:3: note: +1
                && dat->len > the_hash_algo->rawsz) {
                ^
/datasets/git/builtin/fast-import.c:978:4: note: +1, nesting level increased to 1
        } else
          ^
/datasets/git/builtin/fast-import.c:982:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (delta) {
        ^
/datasets/git/builtin/fast-import.c:985:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/fast-import.c:991:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (git_deflate(&s, Z_FINISH) == Z_OK)
        ^
/datasets/git/builtin/fast-import.c:996:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((max_packsize
        ^
/datasets/git/builtin/fast-import.c:998:3: note: +1
                || (pack_size + PACK_SIZE_THRESHOLD + s.total_out) < pack_size) {
                ^
/datasets/git/builtin/fast-import.c:997:3: note: +1
                && (pack_size + PACK_SIZE_THRESHOLD + s.total_out) > max_packsize)
                ^
/datasets/git/builtin/fast-import.c:1005:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (delta) {
                ^
/datasets/git/builtin/fast-import.c:1006:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        FREE_AND_NULL(delta);
                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/fast-import.c:1013:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (git_deflate(&s, Z_FINISH) == Z_OK)
                        ^
/datasets/git/builtin/fast-import.c:1027:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (delta) {
        ^
/datasets/git/builtin/fast-import.c:1040:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (ofs >>= 7)
                ^
/datasets/git/builtin/fast-import.c:1044:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/fast-import.c:1059:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (last) {
        ^
/datasets/git/builtin/fast-import.c:1060:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (last->no_swap) {
                ^
/datasets/git/builtin/fast-import.c:1062:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/fast-import.c:939:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        void *out, *delta;
        ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:939:8: warning: variable 'out' is not initialized [cppcoreguidelines-init-variables]
        void *out, *delta;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-import.c:939:14: warning: variable 'delta' is not initialized [cppcoreguidelines-init-variables]
        void *out, *delta;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-import.c:940:23: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct object_entry *e;
                             ^
                               = NULL
/datasets/git/builtin/fast-import.c:940:23: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:941:20: warning: 96 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        unsigned char hdr[96];
                          ^
/datasets/git/builtin/fast-import.c:943:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned long hdrlen, deltalen;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:943:16: warning: variable 'hdrlen' is not initialized [cppcoreguidelines-init-variables]
        unsigned long hdrlen, deltalen;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-import.c:943:24: warning: variable 'deltalen' is not initialized [cppcoreguidelines-init-variables]
        unsigned long hdrlen, deltalen;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-import.c:944:15: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        git_hash_ctx c;
                     ^
/datasets/git/builtin/fast-import.c:945:14: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
        git_zstream s;
                    ^
/datasets/git/builtin/fast-import.c:953:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oidout)
                   ^
                    {
/datasets/git/builtin/fast-import.c:957:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mark)
                 ^
                  {
/datasets/git/builtin/fast-import.c:962:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else if (find_sha1_pack(oid.hash,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:965:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                e->pack_id = MAX_PACK_ID;
                             ^
/datasets/git/builtin/fast-import.c:25:23: note: expanded from macro 'MAX_PACK_ID'
#define MAX_PACK_ID ((1<<PACK_ID_BITS)-1)
                      ^
/datasets/git/builtin/fast-import.c:978:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/builtin/fast-import.c:991:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (git_deflate(&s, Z_FINISH) == Z_OK)
        ^
/datasets/git/builtin/fast-import.c:991:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (git_deflate(&s, Z_FINISH) == Z_OK)
                                                 ^
                                                  {
/datasets/git/builtin/fast-import.c:1006:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        FREE_AND_NULL(delta);
                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/fast-import.c:1013:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (git_deflate(&s, Z_FINISH) == Z_OK)
                        ^
/datasets/git/builtin/fast-import.c:1013:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        while (git_deflate(&s, Z_FINISH) == Z_OK)
                                                                 ^
                                                                  {
/datasets/git/builtin/fast-import.c:1037:16: warning: narrowing conversion from 'unsigned long' to signed type 'off_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                pack_size += hdrlen;
                             ^
/datasets/git/builtin/fast-import.c:1039:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                hdr[pos] = ofs & 127;
                           ^~~
/datasets/git/builtin/fast-import.c:1039:20: warning: 127 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                hdr[pos] = ofs & 127;
                                 ^
/datasets/git/builtin/fast-import.c:1040:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (ofs >>= 7)
                ^
/datasets/git/builtin/fast-import.c:1040:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'ofs' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (ofs >>= 7)
                       ^
/datasets/git/builtin/fast-import.c:1040:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                while (ofs >>= 7)
                       ^~~
/datasets/git/builtin/fast-import.c:1040:18: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                while (ofs >>= 7)
                               ^
/datasets/git/builtin/fast-import.c:1040:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (ofs >>= 7)
                                 ^
                                  {
/datasets/git/builtin/fast-import.c:1041:17: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        hdr[--pos] = 128 | (--ofs & 127);
                                     ^
/datasets/git/builtin/fast-import.c:1041:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        hdr[--pos] = 128 | (--ofs & 127);
                                     ^~~
/datasets/git/builtin/fast-import.c:1041:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        hdr[--pos] = 128 | (--ofs & 127);
                                            ^~~~~
/datasets/git/builtin/fast-import.c:1041:32: warning: 127 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        hdr[--pos] = 128 | (--ofs & 127);
                                                    ^
/datasets/git/builtin/fast-import.c:1043:16: warning: narrowing conversion from 'unsigned long' to signed type 'off_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                pack_size += sizeof(hdr) - pos;
                             ^
/datasets/git/builtin/fast-import.c:1049:16: warning: narrowing conversion from 'unsigned long' to signed type 'off_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                pack_size += hdrlen;
                             ^
/datasets/git/builtin/fast-import.c:1053:15: warning: narrowing conversion from 'unsigned long' to signed type 'off_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        pack_size += s.total_out;
                     ^
/datasets/git/builtin/fast-import.c:1073:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (hashfile_truncate(pack_file, checkpoint))
                                                     ^
                                                      {
/datasets/git/builtin/fast-import.c:1078:13: warning: function 'stream_blob' has cognitive complexity of 26 (threshold 25) [readability-function-cognitive-complexity]
static void stream_blob(uintmax_t len, struct object_id *oidout, uintmax_t mark)
            ^
/datasets/git/builtin/fast-import.c:1093:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((max_packsize
        ^
/datasets/git/builtin/fast-import.c:1095:3: note: +1
                || (pack_size + PACK_SIZE_THRESHOLD + len) < pack_size)
                ^
/datasets/git/builtin/fast-import.c:1094:3: note: +1
                && (pack_size + PACK_SIZE_THRESHOLD + len) > max_packsize)
                ^
/datasets/git/builtin/fast-import.c:1115:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (status != Z_STREAM_END) {
        ^
/datasets/git/builtin/fast-import.c:1116:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (0 < len && !s.avail_in) {
                ^
/datasets/git/builtin/fast-import.c:1116:15: note: +1
                if (0 < len && !s.avail_in) {
                            ^
/datasets/git/builtin/fast-import.c:1117:29: note: +3, including nesting penalty of 2, nesting level increased to 3
                        size_t cnt = in_sz < len ? in_sz : (size_t)len;
                                                 ^
/datasets/git/builtin/fast-import.c:1119:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!n && feof(stdin))
                        ^
/datasets/git/builtin/fast-import.c:1119:11: note: +1
                        if (!n && feof(stdin))
                               ^
/datasets/git/builtin/fast-import.c:1128:32: note: +2, including nesting penalty of 1, nesting level increased to 2
                status = git_deflate(&s, len ? 0 : Z_FINISH);
                                             ^
/datasets/git/builtin/fast-import.c:1130:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!s.avail_out || status == Z_STREAM_END) {
                ^
/datasets/git/builtin/fast-import.c:1130:20: note: +1
                if (!s.avail_out || status == Z_STREAM_END) {
                                 ^
/datasets/git/builtin/fast-import.c:1138:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                switch (status) {
                ^
/datasets/git/builtin/fast-import.c:1150:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (oidout)
        ^
/datasets/git/builtin/fast-import.c:1155:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mark)
        ^
/datasets/git/builtin/fast-import.c:1158:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (e->idx.offset) {
        ^
/datasets/git/builtin/fast-import.c:1162:9: note: +1, nesting level increased to 1
        } else if (find_sha1_pack(oid.hash,
               ^
/datasets/git/builtin/fast-import.c:1170:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/fast-import.c:1080:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t in_sz = 64 * 1024, out_sz = 64 * 1024;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:1080:17: warning: performing an implicit widening conversion to type 'size_t' (aka 'unsigned long') of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        size_t in_sz = 64 * 1024, out_sz = 64 * 1024;
                       ^
/datasets/git/builtin/fast-import.c:1080:17: note: make conversion explicit to silence this warning
        size_t in_sz = 64 * 1024, out_sz = 64 * 1024;
                       ^~~~~~~~~
                       (size_t)( )
/datasets/git/builtin/fast-import.c:1080:17: note: perform multiplication in a wider type
        size_t in_sz = 64 * 1024, out_sz = 64 * 1024;
                       ^~
                       (long)
/datasets/git/builtin/fast-import.c:1080:17: warning: 64 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        size_t in_sz = 64 * 1024, out_sz = 64 * 1024;
                       ^
/datasets/git/builtin/fast-import.c:1080:22: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        size_t in_sz = 64 * 1024, out_sz = 64 * 1024;
                            ^
/datasets/git/builtin/fast-import.c:1080:37: warning: performing an implicit widening conversion to type 'size_t' (aka 'unsigned long') of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        size_t in_sz = 64 * 1024, out_sz = 64 * 1024;
                                           ^
/datasets/git/builtin/fast-import.c:1080:37: note: make conversion explicit to silence this warning
        size_t in_sz = 64 * 1024, out_sz = 64 * 1024;
                                           ^~~~~~~~~
                                           (size_t)( )
/datasets/git/builtin/fast-import.c:1080:37: note: perform multiplication in a wider type
        size_t in_sz = 64 * 1024, out_sz = 64 * 1024;
                                           ^~
                                           (long)
/datasets/git/builtin/fast-import.c:1080:37: warning: 64 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        size_t in_sz = 64 * 1024, out_sz = 64 * 1024;
                                           ^
/datasets/git/builtin/fast-import.c:1080:42: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        size_t in_sz = 64 * 1024, out_sz = 64 * 1024;
                                                ^
/datasets/git/builtin/fast-import.c:1083:23: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct object_entry *e;
                             ^
                               = NULL
/datasets/git/builtin/fast-import.c:1083:23: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:1085:16: warning: variable 'hdrlen' is not initialized [cppcoreguidelines-init-variables]
        unsigned long hdrlen;
                      ^
                             = 0
/datasets/git/builtin/fast-import.c:1086:8: warning: variable 'offset' is not initialized [cppcoreguidelines-init-variables]
        off_t offset;
              ^
                     = 0
/datasets/git/builtin/fast-import.c:1087:15: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        git_hash_ctx c;
                     ^
/datasets/git/builtin/fast-import.c:1088:14: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
        git_zstream s;
                    ^
/datasets/git/builtin/fast-import.c:1095:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                || (pack_size + PACK_SIZE_THRESHOLD + len) < pack_size)
                                                                       ^
                                                                        {
/datasets/git/builtin/fast-import.c:1110:49: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        hdrlen = encode_in_pack_object_header(out_buf, out_sz, OBJ_BLOB, len);
                                                       ^
/datasets/git/builtin/fast-import.c:1115:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (status != Z_STREAM_END) {
        ^
/datasets/git/builtin/fast-import.c:1115:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'status' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (status != Z_STREAM_END) {
               ^
/datasets/git/builtin/fast-import.c:1118:11: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
                        size_t n = fread(in_buf, 1, cnt, stdin);
                               ^
/datasets/git/builtin/fast-import.c:1119:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!n && feof(stdin))
                                              ^
                                               {
/datasets/git/builtin/fast-import.c:1131:11: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
                        size_t n = s.next_out - out_buf;
                               ^
/datasets/git/builtin/fast-import.c:1133:17: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'off_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        pack_size += n;
                                     ^
/datasets/git/builtin/fast-import.c:1150:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oidout)
                   ^
                    {
/datasets/git/builtin/fast-import.c:1155:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mark)
                 ^
                  {
/datasets/git/builtin/fast-import.c:1165:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                e->pack_id = MAX_PACK_ID;
                             ^
/datasets/git/builtin/fast-import.c:25:23: note: expanded from macro 'MAX_PACK_ID'
#define MAX_PACK_ID ((1<<PACK_ID_BITS)-1)
                      ^
/datasets/git/builtin/fast-import.c:1203:23: warning: parameter name 'oe' is too short, expected at least 3 characters [readability-identifier-length]
        struct object_entry *oe,
                             ^
/datasets/git/builtin/fast-import.c:1206:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/builtin/fast-import.c:1207:21: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        struct packed_git *p = all_packs[oe->pack_id];
                           ^
/datasets/git/builtin/fast-import.c:1226:18: warning: narrowing conversion from 'unsigned long' to signed type 'off_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                p->pack_size = pack_size + the_hash_algo->rawsz;
                               ^
/datasets/git/builtin/fast-import.c:1233:16: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        unsigned char c;
                      ^
                        = 0
/datasets/git/builtin/fast-import.c:1233:16: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:1236:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((c = *str++) != ' ') {
        ^
/datasets/git/builtin/fast-import.c:1236:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'c' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((c = *str++) != ' ') {
               ^
/datasets/git/builtin/fast-import.c:1237:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (c < '0' || c > '7')
                                       ^
                                        {
/datasets/git/builtin/fast-import.c:1239:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mode = (mode << 3) + (c - '0');
                        ^       ~
/datasets/git/builtin/fast-import.c:1248:23: warning: variable 'myoe' is not initialized [cppcoreguidelines-init-variables]
        struct object_entry *myoe;
                             ^
                                  = NULL
/datasets/git/builtin/fast-import.c:1249:23: warning: variable 't' is not initialized [cppcoreguidelines-init-variables]
        struct tree_content *t;
                             ^
                               = NULL
/datasets/git/builtin/fast-import.c:1249:23: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:1250:16: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size;
                      ^
                           = 0
/datasets/git/builtin/fast-import.c:1251:8: warning: variable 'buf' is not initialized [cppcoreguidelines-init-variables]
        char *buf;
              ^
                  = NULL
/datasets/git/builtin/fast-import.c:1252:14: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        const char *c;
                    ^
                      = NULL
/datasets/git/builtin/fast-import.c:1252:14: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:1254:36: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        root->tree = t = new_tree_content(8);
                                          ^
/datasets/git/builtin/fast-import.c:1255:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_null_oid(oid))
                             ^
                              {
/datasets/git/builtin/fast-import.c:1259:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (myoe && myoe->pack_id != MAX_PACK_ID) {
                                     ^
/datasets/git/builtin/fast-import.c:25:23: note: expanded from macro 'MAX_PACK_ID'
#define MAX_PACK_ID ((1<<PACK_ID_BITS)-1)
                      ^
/datasets/git/builtin/fast-import.c:1260:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (myoe->type != OBJ_TREE)
                                           ^
                                            {
/datasets/git/builtin/fast-import.c:1264:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!buf)
                         ^
                          {
/datasets/git/builtin/fast-import.c:1267:20: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
                enum object_type type;
                                 ^
/datasets/git/builtin/fast-import.c:1269:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!buf || type != OBJ_TREE)
                                             ^
                                              {
/datasets/git/builtin/fast-import.c:1274:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (c != (buf + size)) {
        ^
/datasets/git/builtin/fast-import.c:1274:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'c' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (c != (buf + size)) {
               ^
/datasets/git/builtin/fast-import.c:1275:22: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                struct tree_entry *e = new_tree_entry();
                                   ^
/datasets/git/builtin/fast-import.c:1277:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (t->entry_count == t->entry_capacity)
                                                        ^
                                                         {
/datasets/git/builtin/fast-import.c:1278:42: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        root->tree = t = grow_tree_content(t, t->entry_count);
                                                              ^
/datasets/git/builtin/fast-import.c:1283:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!c)
                       ^
                        {
/datasets/git/builtin/fast-import.c:1295:32: warning: parameter name '_a' is too short, expected at least 3 characters [readability-identifier-length]
static int tecmp0 (const void *_a, const void *_b)
                               ^
/datasets/git/builtin/fast-import.c:1295:48: warning: parameter name '_b' is too short, expected at least 3 characters [readability-identifier-length]
static int tecmp0 (const void *_a, const void *_b)
                                               ^
/datasets/git/builtin/fast-import.c:1297:21: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        struct tree_entry *a = *((struct tree_entry**)_a);
                           ^
/datasets/git/builtin/fast-import.c:1298:21: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        struct tree_entry *b = *((struct tree_entry**)_b);
                           ^
/datasets/git/builtin/fast-import.c:1304:32: warning: parameter name '_a' is too short, expected at least 3 characters [readability-identifier-length]
static int tecmp1 (const void *_a, const void *_b)
                               ^
/datasets/git/builtin/fast-import.c:1304:48: warning: parameter name '_b' is too short, expected at least 3 characters [readability-identifier-length]
static int tecmp1 (const void *_a, const void *_b)
                                               ^
/datasets/git/builtin/fast-import.c:1306:21: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        struct tree_entry *a = *((struct tree_entry**)_a);
                           ^
/datasets/git/builtin/fast-import.c:1307:21: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        struct tree_entry *b = *((struct tree_entry**)_b);
                           ^
/datasets/git/builtin/fast-import.c:1313:41: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
static void mktree(struct tree_content *t, int v, struct strbuf *b)
                                        ^
/datasets/git/builtin/fast-import.c:1313:48: warning: parameter name 'v' is too short, expected at least 3 characters [readability-identifier-length]
static void mktree(struct tree_content *t, int v, struct strbuf *b)
                                               ^
/datasets/git/builtin/fast-import.c:1313:66: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static void mktree(struct tree_content *t, int v, struct strbuf *b)
                                                                 ^
/datasets/git/builtin/fast-import.c:1316:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i;
                     ^
                       = 0
/datasets/git/builtin/fast-import.c:1316:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:1318:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!v)
               ^
                {
/datasets/git/builtin/fast-import.c:1319:3: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                QSORT(t->entries, t->entry_count, tecmp0);
                ^
/datasets/git/./git-compat-util.h:1304:56: note: expanded from macro 'QSORT'
#define QSORT(base, n, compar) sane_qsort((base), (n), sizeof(*(base)), compar)
                                                       ^
/datasets/git/builtin/fast-import.c:1320:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/fast-import.c:1321:3: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                QSORT(t->entries, t->entry_count, tecmp1);
                ^
/datasets/git/./git-compat-util.h:1304:56: note: expanded from macro 'QSORT'
#define QSORT(base, n, compar) sane_qsort((base), (n), sizeof(*(base)), compar)
                                                       ^
/datasets/git/builtin/fast-import.c:1323:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < t->entry_count; i++) {
        ^
/datasets/git/builtin/fast-import.c:106:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        unsigned int entry_count;
        ^
/datasets/git/builtin/fast-import.c:1323:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'entry_count' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < t->entry_count; i++) {
                    ^
/datasets/git/builtin/fast-import.c:1324:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (t->entries[i]->versions[v].mode)
                                                    ^
                                                     {
/datasets/git/builtin/fast-import.c:1325:45: warning: 34 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        maxlen += t->entries[i]->name->str_len + 34;
                                                                 ^
/datasets/git/builtin/fast-import.c:1330:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < t->entry_count; i++) {
        ^
/datasets/git/builtin/fast-import.c:1330:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'entry_count' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < t->entry_count; i++) {
                    ^
/datasets/git/builtin/fast-import.c:1331:22: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                struct tree_entry *e = t->entries[i];
                                   ^
/datasets/git/builtin/fast-import.c:1332:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!e->versions[v].mode)
                                         ^
                                          {
/datasets/git/builtin/fast-import.c:1335:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        (unsigned int)(e->versions[v].mode & ~NO_DELTA),
                                       ^                     ~~~~~~~~~
/datasets/git/builtin/fast-import.c:1335:41: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                        (unsigned int)(e->versions[v].mode & ~NO_DELTA),
                                                             ^
/datasets/git/builtin/fast-import.c:1341:13: warning: function 'store_tree' is within a recursive call chain [misc-no-recursion]
static void store_tree(struct tree_entry *root)
            ^
/datasets/git/builtin/fast-import.c:1341:13: note: example recursive call chain, starting from function 'store_tree'
/datasets/git/builtin/fast-import.c:1357:4: note: Frame #1: function 'store_tree' calls function 'store_tree' here:
                        store_tree(t->entries[i]);
                        ^
/datasets/git/builtin/fast-import.c:1357:4: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/builtin/fast-import.c:1343:23: warning: variable 't' is not initialized [cppcoreguidelines-init-variables]
        struct tree_content *t;
                             ^
                               = NULL
/datasets/git/builtin/fast-import.c:1343:23: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:1344:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned int i, j, del;
        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:1344:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i, j, del;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-import.c:1344:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:1344:18: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i, j, del;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-import.c:1344:18: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:1344:21: warning: variable 'del' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i, j, del;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-import.c:1345:21: warning: variable name 'lo' is too short, expected at least 3 characters [readability-identifier-length]
        struct last_object lo = { STRBUF_INIT, 0, 0, /* no_swap */ 1 };
                           ^
/datasets/git/builtin/fast-import.c:1346:23: warning: variable name 'le' is too short, expected at least 3 characters [readability-identifier-length]
        struct object_entry *le = NULL;
                             ^
/datasets/git/builtin/fast-import.c:1348:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_null_oid(&root->versions[1].oid))
                                                 ^
                                                  {
/datasets/git/builtin/fast-import.c:1351:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!root->tree)
                        ^
                         {
/datasets/git/builtin/fast-import.c:1355:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < t->entry_count; i++) {
        ^
/datasets/git/builtin/fast-import.c:1355:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 't' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < t->entry_count; i++) {
                    ^
/datasets/git/builtin/fast-import.c:1356:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (t->entries[i]->tree)
                                        ^
                                         {
/datasets/git/builtin/fast-import.c:1360:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(root->versions[0].mode & NO_DELTA))
              ^
/datasets/git/builtin/fast-import.c:1360:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(root->versions[0].mode & NO_DELTA))
                                                 ^
                                                  {
/datasets/git/builtin/fast-import.c:1373:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0, j = 0, del = 0; i < t->entry_count; i++) {
        ^
/datasets/git/builtin/fast-import.c:1373:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 't' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0, j = 0, del = 0; i < t->entry_count; i++) {
                                    ^
/datasets/git/builtin/fast-import.c:1374:22: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                struct tree_entry *e = t->entries[i];
                                   ^
/datasets/git/builtin/fast-import.c:1393:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!S_ISDIR(mode))
                           ^
                            {
/datasets/git/builtin/fast-import.c:1397:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (root->tree)
                       ^
                        {
/datasets/git/builtin/fast-import.c:1402:12: warning: function 'tree_content_set' is within a recursive call chain [misc-no-recursion]
static int tree_content_set(
           ^
/datasets/git/builtin/fast-import.c:1402:12: note: example recursive call chain, starting from function 'tree_content_set'
/datasets/git/builtin/fast-import.c:1463:8: note: Frame #1: function 'tree_content_set' calls function 'tree_content_set' here:
                        if (tree_content_set(e, slash1 + 1, oid, mode, subtree)) {
                            ^
/datasets/git/builtin/fast-import.c:1463:8: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/builtin/fast-import.c:1402:12: warning: function 'tree_content_set' has cognitive complexity of 36 (threshold 25) [readability-function-cognitive-complexity]
static int tree_content_set(
           ^
/datasets/git/builtin/fast-import.c:1416:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!n)
        ^
/datasets/git/builtin/fast-import.c:1418:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!*slash1 && !S_ISDIR(mode) && subtree)
        ^
/datasets/git/builtin/fast-import.c:1418:33: note: +1
        if (!*slash1 && !S_ISDIR(mode) && subtree)
                                       ^
/datasets/git/builtin/fast-import.c:1421:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!root->tree)
        ^
/datasets/git/builtin/fast-import.c:1424:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < t->entry_count; i++) {
        ^
/datasets/git/builtin/fast-import.c:1426:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (e->name->str_len == n && !fspathncmp(p, e->name->str_dat, n)) {
                ^
/datasets/git/builtin/fast-import.c:1426:29: note: +1
                if (e->name->str_len == n && !fspathncmp(p, e->name->str_dat, n)) {
                                          ^
/datasets/git/builtin/fast-import.c:1427:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!*slash1) {
                        ^
/datasets/git/builtin/fast-import.c:1428:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!S_ISDIR(mode)
                                ^
/datasets/git/builtin/fast-import.c:1430:7: note: +1
                                                && oideq(&e->versions[1].oid, oid))
                                                ^
/datasets/git/builtin/fast-import.c:1434:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (e->tree)
                                ^
/datasets/git/builtin/fast-import.c:1451:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (S_ISDIR(e->versions[0].mode))
                                ^
/datasets/git/builtin/fast-import.c:1457:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!S_ISDIR(e->versions[1].mode)) {
                        ^
/datasets/git/builtin/fast-import.c:1461:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!e->tree)
                        ^
/datasets/git/builtin/fast-import.c:1463:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (tree_content_set(e, slash1 + 1, oid, mode, subtree)) {
                        ^
/datasets/git/builtin/fast-import.c:1471:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (t->entry_count == t->entry_capacity)
        ^
/datasets/git/builtin/fast-import.c:1478:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (*slash1) {
        ^
/datasets/git/builtin/fast-import.c:1482:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/fast-import.c:1404:14: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        const char *p,
                    ^
/datasets/git/builtin/fast-import.c:1409:23: warning: variable 't' is not initialized [cppcoreguidelines-init-variables]
        struct tree_content *t;
                             ^
                               = NULL
/datasets/git/builtin/fast-import.c:1409:23: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:1410:14: warning: variable 'slash1' is not initialized [cppcoreguidelines-init-variables]
        const char *slash1;
                    ^
                           = NULL
/datasets/git/builtin/fast-import.c:1411:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned int i, n;
        ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:1411:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i, n;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-import.c:1411:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:1411:18: warning: variable 'n' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i, n;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-import.c:1411:18: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:1412:21: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct tree_entry *e;
                           ^
                             = NULL
/datasets/git/builtin/fast-import.c:1412:21: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:1416:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!n)
               ^
                {
/datasets/git/builtin/fast-import.c:1418:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!*slash1 && !S_ISDIR(mode) && subtree)
                                                  ^
                                                   {
/datasets/git/builtin/fast-import.c:1421:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!root->tree)
                        ^
                         {
/datasets/git/builtin/fast-import.c:1424:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < t->entry_count; i++) {
        ^
/datasets/git/builtin/fast-import.c:1424:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 't' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < t->entry_count; i++) {
                    ^
/datasets/git/builtin/fast-import.c:1430:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                && oideq(&e->versions[1].oid, oid))
                                                                                   ^
                                                                                    {
/datasets/git/builtin/fast-import.c:1434:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (e->tree)
                                            ^
                                             {
/datasets/git/builtin/fast-import.c:1451:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (S_ISDIR(e->versions[0].mode))
                                                                 ^
                                                                  {
/datasets/git/builtin/fast-import.c:1452:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        e->versions[0].mode |= NO_DELTA;
                                        ^
/datasets/git/builtin/fast-import.c:1458:32: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                e->tree = new_tree_content(8);
                                                           ^
/datasets/git/builtin/fast-import.c:1461:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!e->tree)
                                     ^
                                      {
/datasets/git/builtin/fast-import.c:1471:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (t->entry_count == t->entry_capacity)
                                                ^
                                                 {
/datasets/git/builtin/fast-import.c:1472:41: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                root->tree = t = grow_tree_content(t, t->entry_count);
                                                      ^
/datasets/git/builtin/fast-import.c:1479:30: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                e->tree = new_tree_content(8);
                                           ^
/datasets/git/builtin/fast-import.c:1491:12: warning: function 'tree_content_remove' is within a recursive call chain [misc-no-recursion]
static int tree_content_remove(
           ^
/datasets/git/builtin/fast-import.c:1491:12: note: example recursive call chain, starting from function 'tree_content_remove'
/datasets/git/builtin/fast-import.c:1529:8: note: Frame #1: function 'tree_content_remove' calls function 'tree_content_remove' here:
                        if (tree_content_remove(e, slash1 + 1, backup_leaf, 0)) {
                            ^
/datasets/git/builtin/fast-import.c:1529:8: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/builtin/fast-import.c:1491:12: warning: function 'tree_content_remove' has cognitive complexity of 34 (threshold 25) [readability-function-cognitive-complexity]
static int tree_content_remove(
           ^
/datasets/git/builtin/fast-import.c:1505:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!root->tree)
        ^
/datasets/git/builtin/fast-import.c:1508:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!*p && allow_root) {
        ^
/datasets/git/builtin/fast-import.c:1508:10: note: +1
        if (!*p && allow_root) {
                ^
/datasets/git/builtin/fast-import.c:1510:3: note: +1
                goto del_entry;
                ^
/datasets/git/builtin/fast-import.c:1514:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < t->entry_count; i++) {
        ^
/datasets/git/builtin/fast-import.c:1516:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (e->name->str_len == n && !fspathncmp(p, e->name->str_dat, n)) {
                ^
/datasets/git/builtin/fast-import.c:1516:29: note: +1
                if (e->name->str_len == n && !fspathncmp(p, e->name->str_dat, n)) {
                                          ^
/datasets/git/builtin/fast-import.c:1517:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (*slash1 && !S_ISDIR(e->versions[1].mode))
                        ^
/datasets/git/builtin/fast-import.c:1517:16: note: +1
                        if (*slash1 && !S_ISDIR(e->versions[1].mode))
                                    ^
/datasets/git/builtin/fast-import.c:1525:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!*slash1 || !S_ISDIR(e->versions[1].mode))
                        ^
/datasets/git/builtin/fast-import.c:1525:17: note: +1
                        if (!*slash1 || !S_ISDIR(e->versions[1].mode))
                                     ^
/datasets/git/builtin/fast-import.c:1527:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!e->tree)
                        ^
/datasets/git/builtin/fast-import.c:1529:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (tree_content_remove(e, slash1 + 1, backup_leaf, 0)) {
                        ^
/datasets/git/builtin/fast-import.c:1530:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                for (n = 0; n < e->tree->entry_count; n++) {
                                ^
/datasets/git/builtin/fast-import.c:1531:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (e->tree->entries[n]->versions[1].mode) {
                                        ^
/datasets/git/builtin/fast-import.c:1537:5: note: +1
                                goto del_entry;
                                ^
/datasets/git/builtin/fast-import.c:1545:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (backup_leaf)
        ^
/datasets/git/builtin/fast-import.c:1547:7: note: +1, nesting level increased to 1
        else if (e->tree)
             ^
/datasets/git/builtin/fast-import.c:1493:14: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        const char *p,
                    ^
/datasets/git/builtin/fast-import.c:1497:23: warning: variable 't' is not initialized [cppcoreguidelines-init-variables]
        struct tree_content *t;
                             ^
                               = NULL
/datasets/git/builtin/fast-import.c:1497:23: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:1498:14: warning: variable 'slash1' is not initialized [cppcoreguidelines-init-variables]
        const char *slash1;
                    ^
                           = NULL
/datasets/git/builtin/fast-import.c:1499:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned int i, n;
        ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:1499:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i, n;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-import.c:1499:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:1499:18: warning: variable 'n' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i, n;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-import.c:1499:18: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:1500:21: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct tree_entry *e;
                           ^
                             = NULL
/datasets/git/builtin/fast-import.c:1500:21: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:1505:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!root->tree)
                        ^
                         {
/datasets/git/builtin/fast-import.c:1514:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 't' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < t->entry_count; i++) {
                    ^
/datasets/git/builtin/fast-import.c:1517:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (*slash1 && !S_ISDIR(e->versions[1].mode))
                                                                     ^
                                                                      {
/datasets/git/builtin/fast-import.c:1525:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!*slash1 || !S_ISDIR(e->versions[1].mode))
                                         ^
/usr/include/x86_64-linux-gnu/sys/stat.h:125:24: note: expanded from macro 'S_ISDIR'
#define S_ISDIR(mode)    __S_ISTYPE((mode), __S_IFDIR)
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/sys/stat.h:123:34: note: expanded from macro '__S_ISTYPE'
#define __S_ISTYPE(mode, mask)  (((mode) & __S_IFMT) == (mask))
                                  ^        ~~~~~~~~
/datasets/git/builtin/fast-import.c:1499:2: note: inferred assignment of ID-dependent value from ID-dependent variable slash1 [altera-id-dependent-backward-branch]
        unsigned int i, n;
        ^
/datasets/git/builtin/fast-import.c:1525:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!*slash1 || !S_ISDIR(e->versions[1].mode))
                                                                      ^
                                                                       {
/datasets/git/builtin/fast-import.c:1527:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!e->tree)
                                     ^
                                      {
/datasets/git/builtin/fast-import.c:1530:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                for (n = 0; n < e->tree->entry_count; n++) {
                                ^
/datasets/git/builtin/fast-import.c:1530:17: warning: backward branch (for loop) is ID-dependent due to variable reference to 'n' and may cause performance degradation [altera-id-dependent-backward-branch]
                                for (n = 0; n < e->tree->entry_count; n++) {
                                            ^
/datasets/git/builtin/fast-import.c:1545:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (backup_leaf)
                        ^
                         {
/datasets/git/builtin/fast-import.c:1546:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(backup_leaf, e, sizeof(*backup_leaf));
                ^~~~~~
/datasets/git/builtin/fast-import.c:1546:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(backup_leaf, e, sizeof(*backup_leaf));
                ^~~~~~
/datasets/git/builtin/fast-import.c:1547:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (e->tree)
                         ^
                          {
/datasets/git/builtin/fast-import.c:1556:12: warning: function 'tree_content_get' is within a recursive call chain [misc-no-recursion]
static int tree_content_get(
           ^
/datasets/git/builtin/fast-import.c:1556:12: note: example recursive call chain, starting from function 'tree_content_get'
/datasets/git/builtin/fast-import.c:1590:11: note: Frame #1: function 'tree_content_get' calls function 'tree_content_get' here:
                        return tree_content_get(e, slash1 + 1, leaf, 0);
                               ^
/datasets/git/builtin/fast-import.c:1590:11: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/builtin/fast-import.c:1558:14: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        const char *p,
                    ^
/datasets/git/builtin/fast-import.c:1562:23: warning: variable 't' is not initialized [cppcoreguidelines-init-variables]
        struct tree_content *t;
                             ^
                               = NULL
/datasets/git/builtin/fast-import.c:1562:23: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:1563:14: warning: variable 'slash1' is not initialized [cppcoreguidelines-init-variables]
        const char *slash1;
                    ^
                           = NULL
/datasets/git/builtin/fast-import.c:1564:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned int i, n;
        ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:1564:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i, n;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-import.c:1564:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:1564:18: warning: variable 'n' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i, n;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-import.c:1564:18: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:1565:21: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct tree_entry *e;
                           ^
                             = NULL
/datasets/git/builtin/fast-import.c:1565:21: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:1569:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!n && !allow_root)
                              ^
                               {
/datasets/git/builtin/fast-import.c:1572:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!root->tree)
                        ^
                         {
/datasets/git/builtin/fast-import.c:1581:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < t->entry_count; i++) {
        ^
/datasets/git/builtin/fast-import.c:1581:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 't' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < t->entry_count; i++) {
                    ^
/datasets/git/builtin/fast-import.c:1584:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!*slash1)
                                     ^
                                      {
/datasets/git/builtin/fast-import.c:1586:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!S_ISDIR(e->versions[1].mode))
                                                          ^
                                                           {
/datasets/git/builtin/fast-import.c:1588:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!e->tree)
                                     ^
                                      {
/datasets/git/builtin/fast-import.c:1596:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(leaf, e, sizeof(*leaf));
        ^~~~~~
/datasets/git/builtin/fast-import.c:1596:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(leaf, e, sizeof(*leaf));
        ^~~~~~
/datasets/git/builtin/fast-import.c:1597:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (e->tree && is_null_oid(&e->versions[1].oid))
                                                        ^
                                                         {
/datasets/git/builtin/fast-import.c:1599:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/fast-import.c:1604:41: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static int update_branch(struct branch *b)
                                        ^
/datasets/git/builtin/fast-import.c:1607:26: warning: variable 'transaction' is not initialized [cppcoreguidelines-init-variables]
        struct ref_transaction *transaction;
                                ^
                                            = NULL
/datasets/git/builtin/fast-import.c:1612:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (b->delete)
                              ^
                               {
/datasets/git/builtin/fast-import.c:1616:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (read_ref(b->name, &old_oid))
                                        ^
                                         {
/datasets/git/builtin/fast-import.c:1619:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                struct commit *old_cmit, *new_cmit;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:1619:18: warning: variable 'old_cmit' is not initialized [cppcoreguidelines-init-variables]
                struct commit *old_cmit, *new_cmit;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-import.c:1619:29: warning: variable 'new_cmit' is not initialized [cppcoreguidelines-init-variables]
                struct commit *old_cmit, *new_cmit;
                                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-import.c:1625:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!old_cmit || !new_cmit)
                                           ^
                                            {
/datasets/git/builtin/fast-import.c:1653:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i;
                     ^
                       = 0
/datasets/git/builtin/fast-import.c:1653:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:1654:17: warning: variable 'b' is not initialized [cppcoreguidelines-init-variables]
        struct branch *b;
                       ^
                         = NULL
/datasets/git/builtin/fast-import.c:1654:17: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:1657:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (b = branch_table[i]; b; b = b->table_next_branch)
                ^
/datasets/git/builtin/fast-import.c:1657:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'b' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (b = branch_table[i]; b; b = b->table_next_branch)
                                          ^
/datasets/git/builtin/fast-import.c:1657:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (b = branch_table[i]; b; b = b->table_next_branch)
                                                                      ^
                                                                       {
/datasets/git/builtin/fast-import.c:1658:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        failure |= update_branch(b);
                        ^~~~~~~
/datasets/git/builtin/fast-import.c:1665:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct tag *t;
        ^
/datasets/git/builtin/fast-import.c:1665:14: warning: variable 't' is not initialized [cppcoreguidelines-init-variables]
        struct tag *t;
                    ^
                      = NULL
/datasets/git/builtin/fast-import.c:1665:14: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:1668:26: warning: variable 'transaction' is not initialized [cppcoreguidelines-init-variables]
        struct ref_transaction *transaction;
                                ^
                                            = NULL
/datasets/git/builtin/fast-import.c:1672:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                failure |= error("%s", err.buf);
                ^~~~~~~
/datasets/git/builtin/fast-import.c:1675:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (t = first_tag; t; t = t->next_tag) {
        ^
/datasets/git/builtin/fast-import.c:1675:22: warning: backward branch (for loop) is ID-dependent due to variable reference to 't' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (t = first_tag; t; t = t->next_tag) {
                            ^
/datasets/git/builtin/fast-import.c:1681:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        failure |= error("%s", err.buf);
                        ^~~~~~~
/datasets/git/builtin/fast-import.c:1685:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ref_transaction_commit(transaction, &err))
                                                      ^
                                                       {
/datasets/git/builtin/fast-import.c:1686:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                failure |= error("%s", err.buf);
                ^~~~~~~
/datasets/git/builtin/fast-import.c:1697:8: warning: variable 'f' is not initialized [cppcoreguidelines-init-variables]
        FILE *f;
              ^
                = NULL
/datasets/git/builtin/fast-import.c:1697:8: warning: variable name 'f' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:1699:75: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!export_marks_file || (import_marks_file && !import_marks_file_done))
                                                                                 ^
                                                                                  {
/datasets/git/builtin/fast-import.c:1703:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                failure |= error_errno("unable to create leading directories of %s",
                ^~~~~~~
/datasets/git/builtin/fast-import.c:1709:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                failure |= error_errno("Unable to write marks file %s",
                ^~~~~~~
/datasets/git/builtin/fast-import.c:1718:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                failure |= error("Unable to write marks file %s: %s",
                ^~~~~~~
/datasets/git/builtin/fast-import.c:1719:23: warning: function is not thread safe [concurrency-mt-unsafe]
                        export_marks_file, strerror(saved_errno));
                                           ^
/datasets/git/builtin/fast-import.c:1725:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                failure |= error_errno("Unable to write file %s",
                ^~~~~~~
/datasets/git/builtin/fast-import.c:1731:51: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void insert_object_entry(struct mark_set **s, struct object_id *oid, uintmax_t mark)
                                                  ^
/datasets/git/builtin/fast-import.c:1733:23: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct object_entry *e;
                             ^
                               = NULL
/datasets/git/builtin/fast-import.c:1733:23: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:1738:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (type < 0)
                             ^
                              {
/datasets/git/builtin/fast-import.c:1742:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                e->pack_id = MAX_PACK_ID;
                             ^
/datasets/git/builtin/fast-import.c:25:23: note: expanded from macro 'MAX_PACK_ID'
#define MAX_PACK_ID ((1<<PACK_ID_BITS)-1)
                      ^
/datasets/git/builtin/fast-import.c:1748:48: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void insert_oid_entry(struct mark_set **s, struct object_id *oid, uintmax_t mark)
                                               ^
/datasets/git/builtin/fast-import.c:1753:46: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void read_mark_file(struct mark_set **s, FILE *f, mark_set_inserter_t inserter)
                                             ^
/datasets/git/builtin/fast-import.c:1753:55: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
static void read_mark_file(struct mark_set **s, FILE *f, mark_set_inserter_t inserter)
                                                      ^
/datasets/git/builtin/fast-import.c:1755:12: warning: 512 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        char line[512];
                  ^
/datasets/git/builtin/fast-import.c:1756:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (fgets(line, sizeof(line), f)) {
        ^
/datasets/git/builtin/fast-import.c:1757:13: warning: variable 'mark' is not initialized [cppcoreguidelines-init-variables]
                uintmax_t mark;
                          ^
                               = 0
/datasets/git/builtin/fast-import.c:1758:9: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
                char *end;
                      ^
                          = NULL
/datasets/git/builtin/fast-import.c:1762:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(oid.hash, 0, sizeof(oid.hash));
                ^~~~~~
/datasets/git/builtin/fast-import.c:1762:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(oid.hash, 0, sizeof(oid.hash));
                ^~~~~~
/datasets/git/builtin/fast-import.c:1765:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (line[0] != ':' || !end)
                                           ^
                                            {
/datasets/git/builtin/fast-import.c:1768:36: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mark = strtoumax(line + 1, &end, 10);
                                                 ^
/datasets/git/builtin/fast-import.c:1771:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        || get_oid_hex_any(end + 1, &oid) == GIT_HASH_UNKNOWN)
                                                                              ^
                                                                               {
/datasets/git/builtin/fast-import.c:1779:8: warning: variable name 'f' is too short, expected at least 3 characters [readability-identifier-length]
        FILE *f = fopen(import_marks_file, "r");
              ^
/datasets/git/builtin/fast-import.c:1780:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (f)
              ^
               {
/datasets/git/builtin/fast-import.c:1782:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (import_marks_file_ignore_missing && errno == ENOENT)
                                                                     ^
                                                                      {
/datasets/git/builtin/fast-import.c:1784:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/fast-import.c:1787:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(f);
        ^~~~~~~~~
/datasets/git/builtin/fast-import.c:1787:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:1802:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/builtin/fast-import.c:1806:27: warning: variable 'rc' is not initialized [cppcoreguidelines-init-variables]
                        struct recent_command *rc;
                                               ^
                                                  = NULL
/datasets/git/builtin/fast-import.c:1806:27: warning: variable name 'rc' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:1809:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (stdin_eof)
                                      ^
                                       {
/datasets/git/builtin/fast-import.c:1819:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (rc)
                               ^
                                {
/datasets/git/builtin/fast-import.c:1834:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (command_buf.buf[0] == '#')
                                              ^
                                               {
/datasets/git/builtin/fast-import.c:1843:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (term_char != '\n' && term_char != EOF)
                                                  ^
                                                   {
/datasets/git/builtin/fast-import.c:1844:3: warning: the value returned by this function should be used [cert-err33-c]
                ungetc(term_char, stdin);
                ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:1844:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:1849:14: warning: variable 'v' is not initialized [cppcoreguidelines-init-variables]
        const char *v;
                    ^
                      = NULL
/datasets/git/builtin/fast-import.c:1849:14: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:1851:34: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                next_mark = strtoumax(v, NULL, 10);
                                               ^
/datasets/git/builtin/fast-import.c:1854:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/fast-import.c:1860:14: warning: variable 'v' is not initialized [cppcoreguidelines-init-variables]
        const char *v;
                    ^
                      = NULL
/datasets/git/builtin/fast-import.c:1860:14: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:1861:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (skip_prefix(command_buf.buf, "original-oid ", &v))
                                                              ^
                                                               {
/datasets/git/builtin/fast-import.c:1865:38: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static int parse_data(struct strbuf *sb, uintmax_t limit, uintmax_t *len_res)
                                     ^
/datasets/git/builtin/fast-import.c:1867:14: warning: variable 'data' is not initialized [cppcoreguidelines-init-variables]
        const char *data;
                    ^
                         = NULL
/datasets/git/builtin/fast-import.c:1870:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!skip_prefix(command_buf.buf, "data ", &data))
                                                          ^
                                                           {
/datasets/git/builtin/fast-import.c:1877:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (;;) {
                ^
/datasets/git/builtin/fast-import.c:1878:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (strbuf_getline_lf(&command_buf, stdin) == EOF)
                                                                          ^
                                                                           {
/datasets/git/builtin/fast-import.c:1881:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                && !strcmp(term, command_buf.buf))
                                                                  ^
                                                                   {
/datasets/git/builtin/fast-import.c:1889:41: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                uintmax_t len = strtoumax(data, NULL, 10);
                                                      ^
/datasets/git/builtin/fast-import.c:1890:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                size_t n = 0, length = (size_t)len;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:1890:10: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
                size_t n = 0, length = (size_t)len;
                       ^
/datasets/git/builtin/fast-import.c:1896:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (length < len)
                                 ^
                                  {
/datasets/git/builtin/fast-import.c:1899:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (n < length) {
                ^
/datasets/git/builtin/fast-import.c:1899:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'n' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (n < length) {
                       ^
/datasets/git/builtin/fast-import.c:1900:11: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
                        size_t s = strbuf_fread(sb, length - n, stdin);
                               ^
/datasets/git/builtin/fast-import.c:1901:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!s && feof(stdin))
                                              ^
                                               {
/datasets/git/builtin/fast-import.c:1903:6: warning: redundant cast to the same type [google-readability-casting]
                                        (unsigned long)(length - n));
                                        ^~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:1915:8: warning: variable 'endp' is not initialized [cppcoreguidelines-init-variables]
        char *endp;
              ^
                   = NULL
/datasets/git/builtin/fast-import.c:1916:16: warning: variable 'num' is not initialized [cppcoreguidelines-init-variables]
        unsigned long num;
                      ^
                          = 0
/datasets/git/builtin/fast-import.c:1920:2: warning: Value stored to 'num' is never read [clang-analyzer-deadcode.DeadStores]
        num = strtoul(src, &endp, 10);
        ^     ~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:1920:2: note: Value stored to 'num' is never read
        num = strtoul(src, &endp, 10);
        ^     ~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:1920:28: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        num = strtoul(src, &endp, 10);
                                  ^
/datasets/git/builtin/fast-import.c:1926:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (errno || endp == src || *endp != ' ')
                                                 ^
                                                  {
/datasets/git/builtin/fast-import.c:1930:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*src != '-' && *src != '+')
                                       ^
                                        {
/datasets/git/builtin/fast-import.c:1933:32: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        num = strtoul(src + 1, &endp, 10);
                                      ^
/datasets/git/builtin/fast-import.c:1939:18: warning: 1400 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
            (strict && (1400 < num))             /* parsed a broken timezone */
                        ^
/datasets/git/builtin/fast-import.c:1940:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
           )
            ^
             {
/datasets/git/builtin/fast-import.c:1949:14: warning: variable 'ltgt' is not initialized [cppcoreguidelines-init-variables]
        const char *ltgt;
                    ^
                         = NULL
/datasets/git/builtin/fast-import.c:1950:9: warning: variable 'name_len' is not initialized [cppcoreguidelines-init-variables]
        size_t name_len;
               ^
                        = 0
/datasets/git/builtin/fast-import.c:1954:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*buf == '<')
                        ^
                         {
/datasets/git/builtin/fast-import.c:1958:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*ltgt != '<')
                         ^
                          {
/datasets/git/builtin/fast-import.c:1960:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ltgt != buf && ltgt[-1] != ' ')
                                           ^
                                            {
/datasets/git/builtin/fast-import.c:1963:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*ltgt != '>')
                         ^
                          {
/datasets/git/builtin/fast-import.c:1966:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*ltgt != ' ')
                         ^
                          {
/datasets/git/builtin/fast-import.c:1972:2: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
        switch (whenspec) {
        ^
/datasets/git/builtin/fast-import.c:1974:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (validate_raw_date(ltgt, &ident, 1) < 0)
                                                           ^
                                                            {
/datasets/git/builtin/fast-import.c:1978:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (validate_raw_date(ltgt, &ident, 0) < 0)
                                                           ^
                                                            {
/datasets/git/builtin/fast-import.c:1982:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (parse_date(ltgt, &ident) < 0)
                                                 ^
                                                  {
/datasets/git/builtin/fast-import.c:1986:7: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (strcmp("now", ltgt))
                    ^
                                        != 0
/datasets/git/builtin/fast-import.c:1986:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strcmp("now", ltgt))
                                        ^
                                         {
/datasets/git/builtin/fast-import.c:2001:12: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        uintmax_t len;
                  ^
                      = 0
/datasets/git/builtin/fast-import.c:2003:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_data(&buf, big_file_threshold, &len))
                                                       ^
                                                        {
/datasets/git/builtin/fast-import.c:2029:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                struct branch *e, *l = NULL, *p = NULL;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:2029:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/builtin/fast-import.c:2029:18: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
                struct branch *e, *l = NULL, *p = NULL;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-import.c:2029:18: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:2029:22: warning: variable name 'l' is too short, expected at least 3 characters [readability-identifier-length]
                struct branch *e, *l = NULL, *p = NULL;
                                   ^
/datasets/git/builtin/fast-import.c:2029:33: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct branch *e, *l = NULL, *p = NULL;
                                              ^
/datasets/git/builtin/fast-import.c:2031:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (e = active_branches; e; e = e->active_next_branch) {
                ^
/datasets/git/builtin/fast-import.c:2031:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'e' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (e = active_branches; e; e = e->active_next_branch) {
                                          ^
/datasets/git/builtin/fast-import.c:2044:22: warning: Access to field 'active_next_branch' results in a dereference of a null pointer (loaded from variable 'e') [clang-analyzer-core.NullDereference]
                        active_branches = e->active_next_branch;
                                          ^
/datasets/git/builtin/fast-import.c:3523:6: note: Assuming 'argc' is not equal to 2
        if (argc == 2 && !strcmp(argv[1], "-h"))
            ^~~~~~~~~
/datasets/git/builtin/fast-import.c:3523:16: note: Left side of '&&' is false
        if (argc == 2 && !strcmp(argv[1], "-h"))
                      ^
/datasets/git/builtin/fast-import.c:3544:14: note: Assuming 'i' is >= 'argc'
        for (i = 1; i < argc; i++) {
                    ^~~~~~~~
/datasets/git/builtin/fast-import.c:3544:2: note: Loop condition is false. Execution continues on line 3552
        for (i = 1; i < argc; i++) {
        ^
/datasets/git/builtin/fast-import.c:3556:14: note: Assuming the condition is false
        for (i = 0; i < (cmd_save - 1); i++)
                    ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:3556:2: note: Loop condition is false. Execution continues on line 3558
        for (i = 0; i < (cmd_save - 1); i++)
        ^
/datasets/git/builtin/fast-import.c:3563:2: note: Loop condition is true.  Entering loop body
        while (read_next_command() != EOF) {
        ^
/datasets/git/builtin/fast-import.c:3565:7: note: Assuming the condition is false
                if (!strcmp("blob", command_buf.buf))
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:3565:3: note: Taking false branch
                if (!strcmp("blob", command_buf.buf))
                ^
/datasets/git/builtin/fast-import.c:3567:8: note: Taking false branch
                else if (skip_prefix(command_buf.buf, "commit ", &v))
                     ^
/datasets/git/builtin/fast-import.c:3569:8: note: Taking false branch
                else if (skip_prefix(command_buf.buf, "tag ", &v))
                     ^
/datasets/git/builtin/fast-import.c:3571:8: note: Taking false branch
                else if (skip_prefix(command_buf.buf, "reset ", &v))
                     ^
/datasets/git/builtin/fast-import.c:3573:8: note: Taking false branch
                else if (skip_prefix(command_buf.buf, "ls ", &v))
                     ^
/datasets/git/builtin/fast-import.c:3575:8: note: Taking false branch
                else if (skip_prefix(command_buf.buf, "cat-blob ", &v))
                     ^
/datasets/git/builtin/fast-import.c:3577:8: note: Taking false branch
                else if (skip_prefix(command_buf.buf, "get-mark ", &v))
                     ^
/datasets/git/builtin/fast-import.c:3579:12: note: Assuming the condition is false
                else if (!strcmp("checkpoint", command_buf.buf))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:3579:8: note: Taking false branch
                else if (!strcmp("checkpoint", command_buf.buf))
                     ^
/datasets/git/builtin/fast-import.c:3581:12: note: Assuming the condition is false
                else if (!strcmp("done", command_buf.buf))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:3581:8: note: Taking false branch
                else if (!strcmp("done", command_buf.buf))
                     ^
/datasets/git/builtin/fast-import.c:3583:12: note: Assuming the condition is false
                else if (!strcmp("alias", command_buf.buf))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:3583:8: note: Taking false branch
                else if (!strcmp("alias", command_buf.buf))
                     ^
/datasets/git/builtin/fast-import.c:3585:12: note: Assuming the condition is false
                else if (starts_with(command_buf.buf, "progress "))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:3585:8: note: Taking false branch
                else if (starts_with(command_buf.buf, "progress "))
                     ^
/datasets/git/builtin/fast-import.c:3587:8: note: Taking false branch
                else if (skip_prefix(command_buf.buf, "feature ", &v))
                     ^
/datasets/git/builtin/fast-import.c:3589:8: note: Taking false branch
                else if (skip_prefix(command_buf.buf, "option git ", &v))
                     ^
/datasets/git/builtin/fast-import.c:3591:12: note: Assuming the condition is true
                else if (starts_with(command_buf.buf, "option "))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:3591:8: note: Taking true branch
                else if (starts_with(command_buf.buf, "option "))
                     ^
/datasets/git/builtin/fast-import.c:3596:7: note: Assuming 'checkpoint_requested' is 0
                if (checkpoint_requested)
                    ^~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:3596:3: note: Taking false branch
                if (checkpoint_requested)
                ^
/datasets/git/builtin/fast-import.c:3563:2: note: Loop condition is true.  Entering loop body
        while (read_next_command() != EOF) {
        ^
/datasets/git/builtin/fast-import.c:3565:7: note: Assuming the condition is false
                if (!strcmp("blob", command_buf.buf))
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:3565:3: note: Taking false branch
                if (!strcmp("blob", command_buf.buf))
                ^
/datasets/git/builtin/fast-import.c:3567:12: note: Assuming the condition is true
                else if (skip_prefix(command_buf.buf, "commit ", &v))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:3567:8: note: Taking true branch
                else if (skip_prefix(command_buf.buf, "commit ", &v))
                     ^
/datasets/git/builtin/fast-import.c:3568:4: note: Calling 'parse_new_commit'
                        parse_new_commit(v);
                        ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:2692:7: note: 'b' is null
        if (!b)
             ^
/datasets/git/builtin/fast-import.c:2692:2: note: Taking true branch
        if (!b)
        ^
/datasets/git/builtin/fast-import.c:2698:6: note: Assuming the condition is false
        if (skip_prefix(command_buf.buf, "author ", &v)) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:2698:2: note: Taking false branch
        if (skip_prefix(command_buf.buf, "author ", &v)) {
        ^
/datasets/git/builtin/fast-import.c:2702:6: note: Assuming the condition is true
        if (skip_prefix(command_buf.buf, "committer ", &v)) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:2702:2: note: Taking true branch
        if (skip_prefix(command_buf.buf, "committer ", &v)) {
        ^
/datasets/git/builtin/fast-import.c:2706:6: note: Assuming 'committer' is non-null
        if (!committer)
            ^~~~~~~~~~
/datasets/git/builtin/fast-import.c:2706:2: note: Taking false branch
        if (!committer)
        ^
/datasets/git/builtin/fast-import.c:2708:6: note: Assuming the condition is false
        if (skip_prefix(command_buf.buf, "encoding ", &v)) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:2708:2: note: Taking false branch
        if (skip_prefix(command_buf.buf, "encoding ", &v)) {
        ^
/datasets/git/builtin/fast-import.c:2715:15: note: Calling 'parse_merge'
        merge_list = parse_merge(&merge_count);
                     ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:2646:9: note: Value assigned to 'active_branches'
        while (skip_prefix(command_buf.buf, "merge ", &from)) {
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:2646:2: note: Loop condition is false. Execution continues on line 2676
        while (skip_prefix(command_buf.buf, "merge ", &from)) {
        ^
/datasets/git/builtin/fast-import.c:2715:15: note: Returning from 'parse_merge'
        merge_list = parse_merge(&merge_count);
                     ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:2718:22: note: Field 'tree' is null
        if (!b->branch_tree.tree || !max_active_branches) {
                            ^
/datasets/git/builtin/fast-import.c:2718:27: note: Left side of '||' is true
        if (!b->branch_tree.tree || !max_active_branches) {
                                 ^
/datasets/git/builtin/fast-import.c:2719:3: note: Calling 'unload_one_branch'
                unload_one_branch();
                ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:2026:9: note: Assuming 'cur_active_branches' is not equal to 0
        while (cur_active_branches
               ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:2026:9: note: Left side of '&&' is true
/datasets/git/builtin/fast-import.c:2027:6: note: Assuming 'cur_active_branches' is >= 'max_active_branches'
                && cur_active_branches >= max_active_branches) {
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:2026:2: note: Loop condition is true.  Entering loop body
        while (cur_active_branches
        ^
/datasets/git/builtin/fast-import.c:2031:29: note: Assuming pointer value is null
                for (e = active_branches; e; e = e->active_next_branch) {
                                          ^
/datasets/git/builtin/fast-import.c:2031:3: note: Loop condition is false. Execution continues on line 2039
                for (e = active_branches; e; e = e->active_next_branch) {
                ^
/datasets/git/builtin/fast-import.c:2039:7: note: 'p' is null
                if (p) {
                    ^
/datasets/git/builtin/fast-import.c:2039:3: note: Taking false branch
                if (p) {
                ^
/datasets/git/builtin/fast-import.c:2043:4: note: Null pointer value stored to 'e'
                        e = active_branches;
                        ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:2044:22: note: Access to field 'active_next_branch' results in a dereference of a null pointer (loaded from variable 'e')
                        active_branches = e->active_next_branch;
                                          ^
/datasets/git/builtin/fast-import.c:2056:40: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static void load_branch(struct branch *b)
                                       ^
/datasets/git/builtin/fast-import.c:2071:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((num_notes >>= 8))
        ^
/datasets/git/builtin/fast-import.c:2071:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        while ((num_notes >>= 8))
                ^             ~
/datasets/git/builtin/fast-import.c:2071:24: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        while ((num_notes >>= 8))
                              ^
/datasets/git/builtin/fast-import.c:2071:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while ((num_notes >>= 8))
                                 ^
                                  {
/datasets/git/builtin/fast-import.c:2079:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned int i = 0, j = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:2079:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned int i = 0, j = 0;
                     ^
/datasets/git/builtin/fast-import.c:2079:22: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned int i = 0, j = 0;
                            ^
/datasets/git/builtin/fast-import.c:2080:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fanout >= the_hash_algo->rawsz)
                                           ^
                                            {
/datasets/git/builtin/fast-import.c:2082:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (fanout) {
        ^
/datasets/git/builtin/fast-import.c:2088:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(path + i, hex_sha1 + j, the_hash_algo->hexsz - j);
        ^~~~~~
/datasets/git/builtin/fast-import.c:2088:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(path + i, hex_sha1 + j, the_hash_algo->hexsz - j);
        ^~~~~~
/datasets/git/builtin/fast-import.c:2092:18: warning: function 'do_change_note_fanout' is within a recursive call chain [misc-no-recursion]
static uintmax_t do_change_note_fanout(
                 ^
/datasets/git/builtin/fast-import.c:2092:18: note: example recursive call chain, starting from function 'do_change_note_fanout'
/datasets/git/builtin/fast-import.c:2162:17: note: Frame #1: function 'do_change_note_fanout' calls function 'do_change_note_fanout' here:
                        num_notes += do_change_note_fanout(orig_root, e,
                                     ^
/datasets/git/builtin/fast-import.c:2162:17: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/builtin/fast-import.c:2093:3: warning: 2 adjacent parameters of 'do_change_note_fanout' of similar type ('struct tree_entry *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                struct tree_entry *orig_root, struct tree_entry *root,
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:2093:22: note: the first parameter in the range is 'orig_root'
                struct tree_entry *orig_root, struct tree_entry *root,
                                   ^~~~~~~~~
/datasets/git/builtin/fast-import.c:2093:52: note: the last parameter in the range is 'root'
                struct tree_entry *orig_root, struct tree_entry *root,
                                                                 ^~~~
/datasets/git/builtin/fast-import.c:2095:19: warning: 2 adjacent parameters of 'do_change_note_fanout' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                char *fullpath, unsigned int fullpath_len,
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:2095:32: note: the first parameter in the range is 'fullpath_len'
                char *fullpath, unsigned int fullpath_len,
                                             ^~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:2096:17: note: the last parameter in the range is 'fanout'
                unsigned char fanout)
                              ^~~~~~
/datasets/git/builtin/fast-import.c:2096:3: note: 'unsigned int' and 'unsigned char' may be implicitly converted
                unsigned char fanout)
                ^
/datasets/git/builtin/fast-import.c:2098:23: warning: variable 't' is not initialized [cppcoreguidelines-init-variables]
        struct tree_content *t;
                             ^
                               = NULL
/datasets/git/builtin/fast-import.c:2098:23: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:2099:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct tree_entry *e, leaf;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:2099:21: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct tree_entry *e, leaf;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-import.c:2099:21: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:2100:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned int i, tmp_hex_oid_len, tmp_fullpath_len;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:2100:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i, tmp_hex_oid_len, tmp_fullpath_len;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-import.c:2100:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:2100:18: warning: variable 'tmp_hex_oid_len' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i, tmp_hex_oid_len, tmp_fullpath_len;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-import.c:2100:35: warning: variable 'tmp_fullpath_len' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i, tmp_hex_oid_len, tmp_fullpath_len;
                                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-import.c:2107:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!root->tree)
                        ^
                         {
/datasets/git/builtin/fast-import.c:2111:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; t && i < t->entry_count; i++) {
        ^
/datasets/git/builtin/fast-import.c:2111:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 't' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; t && i < t->entry_count; i++) {
                    ^
/datasets/git/builtin/fast-import.c:2126:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    e->name->str_len % 2)
                                         ^
                                          {
/datasets/git/builtin/fast-import.c:2130:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(hex_oid + hex_oid_len, e->name->str_dat,
                ^~~~~~
/datasets/git/builtin/fast-import.c:2130:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(hex_oid + hex_oid_len, e->name->str_dat,
                ^~~~~~
/datasets/git/builtin/fast-import.c:2132:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (tmp_fullpath_len)
                                     ^
                                      {
/datasets/git/builtin/fast-import.c:2134:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(fullpath + tmp_fullpath_len, e->name->str_dat,
                ^~~~~~
/datasets/git/builtin/fast-import.c:2134:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(fullpath + tmp_fullpath_len, e->name->str_dat,
                ^~~~~~
/datasets/git/builtin/fast-import.c:2141:18: warning: 0xff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        if (fanout == 0xff) {
                                      ^
/datasets/git/builtin/fast-import.c:2154:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!tree_content_remove(orig_root, fullpath, &leaf, 0))
                                                                                ^
                                                                                 {
/datasets/git/builtin/fast-import.c:2182:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char hex_oid[GIT_MAX_HEXSZ], path[GIT_MAX_HEXSZ + (GIT_MAX_HEXSZ / 2) - 1 + 1];
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:2188:6: warning: variable 'algo' is not initialized [cppcoreguidelines-init-variables]
        int algo;
            ^
                 = 0
/datasets/git/builtin/fast-import.c:2189:11: warning: variable 'it' is not initialized [cppcoreguidelines-init-variables]
        khiter_t it;
                 ^
                    = 0
/datasets/git/builtin/fast-import.c:2189:11: warning: variable name 'it' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:2192:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(oid->hash, 0, sizeof(oid->hash));
        ^~~~~~
/datasets/git/builtin/fast-import.c:2192:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(oid->hash, 0, sizeof(oid->hash));
        ^~~~~~
/datasets/git/builtin/fast-import.c:2195:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (algo == GIT_HASH_UNKNOWN)
                                     ^
                                      {
/datasets/git/builtin/fast-import.c:2202:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (hash_algos[algo].format_id == the_hash_algo->format_id)
                                                                           ^
                                                                            {
/datasets/git/builtin/fast-import.c:2220:45: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static uintmax_t parse_mark_ref(const char *p, char **endptr)
                                            ^
/datasets/git/builtin/fast-import.c:2222:12: warning: variable 'mark' is not initialized [cppcoreguidelines-init-variables]
        uintmax_t mark;
                  ^
                       = 0
/datasets/git/builtin/fast-import.c:2226:30: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mark = strtoumax(p, endptr, 10);
                                    ^
/datasets/git/builtin/fast-import.c:2227:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*endptr == p)
                         ^
                          {
/datasets/git/builtin/fast-import.c:2236:49: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static uintmax_t parse_mark_ref_eol(const char *p)
                                                ^
/datasets/git/builtin/fast-import.c:2238:8: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
        char *end;
              ^
                  = NULL
/datasets/git/builtin/fast-import.c:2239:12: warning: variable 'mark' is not initialized [cppcoreguidelines-init-variables]
        uintmax_t mark;
                  ^
                       = 0
/datasets/git/builtin/fast-import.c:2242:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*end != '\0')
                         ^
                          {
/datasets/git/builtin/fast-import.c:2251:52: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static uintmax_t parse_mark_ref_space(const char **p)
                                                   ^
/datasets/git/builtin/fast-import.c:2253:12: warning: variable 'mark' is not initialized [cppcoreguidelines-init-variables]
        uintmax_t mark;
                  ^
                       = 0
/datasets/git/builtin/fast-import.c:2254:8: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
        char *end;
              ^
                  = NULL
/datasets/git/builtin/fast-import.c:2257:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*end++ != ' ')
                          ^
                           {
/datasets/git/builtin/fast-import.c:2263:13: warning: function 'file_change_m' has cognitive complexity of 45 (threshold 25) [readability-function-cognitive-complexity]
static void file_change_m(const char *p, struct branch *b)
            ^
/datasets/git/builtin/fast-import.c:2272:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!p)
        ^
/datasets/git/builtin/fast-import.c:2274:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        switch (mode) {
        ^
/datasets/git/builtin/fast-import.c:2289:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (*p == ':') {
        ^
/datasets/git/builtin/fast-import.c:2292:9: note: +1, nesting level increased to 1
        } else if (skip_prefix(p, "inline ", &p)) {
               ^
/datasets/git/builtin/fast-import.c:2295:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/fast-import.c:2296:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (parse_mapped_oid_hex(p, &oid, &p))
                ^
/datasets/git/builtin/fast-import.c:2299:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*p++ != ' ')
                ^
/datasets/git/builtin/fast-import.c:2304:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!unquote_c_style(&uq, p, &endp)) {
        ^
/datasets/git/builtin/fast-import.c:2305:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*endp)
                ^
/datasets/git/builtin/fast-import.c:2311:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (S_ISDIR(mode) && is_empty_tree_oid(&oid) && *p) {
        ^
/datasets/git/builtin/fast-import.c:2311:47: note: +1
        if (S_ISDIR(mode) && is_empty_tree_oid(&oid) && *p) {
                                                     ^
/datasets/git/builtin/fast-import.c:2316:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (S_ISGITLINK(mode)) {
        ^
/datasets/git/builtin/fast-import.c:2317:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (inline_data)
                ^
/datasets/git/builtin/fast-import.c:2320:8: note: +1, nesting level increased to 2
                else if (oe) {
                     ^
/datasets/git/builtin/fast-import.c:2321:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (oe->type != OBJ_COMMIT)
                        ^
/datasets/git/builtin/fast-import.c:2329:9: note: +1, nesting level increased to 1
        } else if (inline_data) {
               ^
/datasets/git/builtin/fast-import.c:2330:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (S_ISDIR(mode))
                ^
/datasets/git/builtin/fast-import.c:2333:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (p != uq.buf) {
                ^
/datasets/git/builtin/fast-import.c:2337:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (read_next_command() != EOF) {
                ^
/datasets/git/builtin/fast-import.c:2339:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (skip_prefix(command_buf.buf, "cat-blob ", &v))
                        ^
/datasets/git/builtin/fast-import.c:2341:4: note: +1, nesting level increased to 3
                        else {
                        ^
/datasets/git/builtin/fast-import.c:2346:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/fast-import.c:2347:45: note: +2, including nesting penalty of 1, nesting level increased to 2
                enum object_type expected = S_ISDIR(mode) ?
                                                          ^
/datasets/git/builtin/fast-import.c:2349:30: note: +2, including nesting penalty of 1, nesting level increased to 2
                enum object_type type = oe ? oe->type :
                                           ^
/datasets/git/builtin/fast-import.c:2352:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (type < 0)
                ^
/datasets/git/builtin/fast-import.c:2354:20: note: +3, including nesting penalty of 2, nesting level increased to 3
                                        S_ISDIR(mode) ?  "Tree" : "Blob",
                                                      ^
/datasets/git/builtin/fast-import.c:2356:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (type != expected)
                ^
/datasets/git/builtin/fast-import.c:2362:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!*p) {
        ^
/datasets/git/builtin/fast-import.c:2263:39: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static void file_change_m(const char *p, struct branch *b)
                                      ^
/datasets/git/builtin/fast-import.c:2263:57: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static void file_change_m(const char *p, struct branch *b)
                                                        ^
/datasets/git/builtin/fast-import.c:2265:23: warning: variable name 'uq' is too short, expected at least 3 characters [readability-identifier-length]
        static struct strbuf uq = STRBUF_INIT;
                             ^
/datasets/git/builtin/fast-import.c:2266:14: warning: variable 'endp' is not initialized [cppcoreguidelines-init-variables]
        const char *endp;
                    ^
                         = NULL
/datasets/git/builtin/fast-import.c:2267:23: warning: variable 'oe' is not initialized [cppcoreguidelines-init-variables]
        struct object_entry *oe;
                             ^
                                = NULL
/datasets/git/builtin/fast-import.c:2267:23: warning: variable name 'oe' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:2269:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        uint16_t mode, inline_data = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:2269:11: warning: variable 'mode' is not initialized [cppcoreguidelines-init-variables]
        uint16_t mode, inline_data = 0;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-import.c:2272:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!p)
               ^
                {
/datasets/git/builtin/fast-import.c:2275:7: warning: 0644 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        case 0644:
             ^
/datasets/git/builtin/fast-import.c:2276:7: warning: 0755 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        case 0755:
             ^
/datasets/git/builtin/fast-import.c:2277:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mode |= S_IFREG;
                ^
/datasets/git/builtin/fast-import.c:2278:17: warning: 0644 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        case S_IFREG | 0644:
                       ^
/datasets/git/builtin/fast-import.c:2279:17: warning: 0755 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        case S_IFREG | 0755:
                       ^
/datasets/git/builtin/fast-import.c:2296:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (parse_mapped_oid_hex(p, &oid, &p))
                                                      ^
                                                       {
/datasets/git/builtin/fast-import.c:2299:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*p++ != ' ')
                                ^
                                 {
/datasets/git/builtin/fast-import.c:2305:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*endp)
                          ^
                           {
/datasets/git/builtin/fast-import.c:2316:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (S_ISGITLINK(mode)) {
            ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/builtin/fast-import.c:2317:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (inline_data)
                                ^
                                 {
/datasets/git/builtin/fast-import.c:2321:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (oe->type != OBJ_COMMIT)
                                                   ^
                                                    {
/datasets/git/builtin/fast-import.c:2330:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (S_ISDIR(mode))
                                  ^
                                   {
/datasets/git/builtin/fast-import.c:2337:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (read_next_command() != EOF) {
                ^
/datasets/git/builtin/fast-import.c:2338:16: warning: variable 'v' is not initialized [cppcoreguidelines-init-variables]
                        const char *v;
                                    ^
                                      = NULL
/datasets/git/builtin/fast-import.c:2338:16: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:2339:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (skip_prefix(command_buf.buf, "cat-blob ", &v))
                                                                          ^
                                                                           {
/datasets/git/builtin/fast-import.c:2352:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (type < 0)
                             ^
                              {
/datasets/git/builtin/fast-import.c:2356:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (type != expected)
                                     ^
                                      {
/datasets/git/builtin/fast-import.c:2369:39: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static void file_change_d(const char *p, struct branch *b)
                                      ^
/datasets/git/builtin/fast-import.c:2369:57: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static void file_change_d(const char *p, struct branch *b)
                                                        ^
/datasets/git/builtin/fast-import.c:2371:23: warning: variable name 'uq' is too short, expected at least 3 characters [readability-identifier-length]
        static struct strbuf uq = STRBUF_INIT;
                             ^
/datasets/git/builtin/fast-import.c:2372:14: warning: variable 'endp' is not initialized [cppcoreguidelines-init-variables]
        const char *endp;
                    ^
                         = NULL
/datasets/git/builtin/fast-import.c:2376:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*endp)
                          ^
                           {
/datasets/git/builtin/fast-import.c:2383:40: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void file_change_cr(const char *s, struct branch *b, int rename)
                                       ^
/datasets/git/builtin/fast-import.c:2383:58: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static void file_change_cr(const char *s, struct branch *b, int rename)
                                                         ^
/datasets/git/builtin/fast-import.c:2385:14: warning: variable 'd' is not initialized [cppcoreguidelines-init-variables]
        const char *d;
                    ^
                      = NULL
/datasets/git/builtin/fast-import.c:2385:14: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:2388:14: warning: variable 'endp' is not initialized [cppcoreguidelines-init-variables]
        const char *endp;
                    ^
                         = NULL
/datasets/git/builtin/fast-import.c:2393:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*endp != ' ')
                                 ^
                                  {
/datasets/git/builtin/fast-import.c:2397:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!endp)
                          ^
                           {
/datasets/git/builtin/fast-import.c:2404:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!*endp)
                   ^
                    {
/datasets/git/builtin/fast-import.c:2410:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*endp)
                          ^
                           {
/datasets/git/builtin/fast-import.c:2415:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&leaf, 0, sizeof(leaf));
        ^~~~~~
/datasets/git/builtin/fast-import.c:2415:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&leaf, 0, sizeof(leaf));
        ^~~~~~
/datasets/git/builtin/fast-import.c:2416:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (rename)
                   ^
                    {
/datasets/git/builtin/fast-import.c:2418:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/fast-import.c:2420:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!leaf.versions[1].mode)
                                   ^
                                    {
/datasets/git/builtin/fast-import.c:2435:13: warning: function 'note_change_n' has cognitive complexity of 33 (threshold 25) [readability-function-cognitive-complexity]
static void note_change_n(const char *p, struct branch *b, unsigned char *old_fanout)
            ^
/datasets/git/builtin/fast-import.c:2455:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (b->num_notes == 0 && *old_fanout == 0) {
        ^
/datasets/git/builtin/fast-import.c:2455:24: note: +1
        if (b->num_notes == 0 && *old_fanout == 0) {
                              ^
/datasets/git/builtin/fast-import.c:2463:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (*p == ':') {
        ^
/datasets/git/builtin/fast-import.c:2466:9: note: +1, nesting level increased to 1
        } else if (skip_prefix(p, "inline ", &p)) {
               ^
/datasets/git/builtin/fast-import.c:2469:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/fast-import.c:2470:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (parse_mapped_oid_hex(p, &oid, &p))
                ^
/datasets/git/builtin/fast-import.c:2473:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*p++ != ' ')
                ^
/datasets/git/builtin/fast-import.c:2479:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (s) {
        ^
/datasets/git/builtin/fast-import.c:2480:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (is_null_oid(&s->oid))
                ^
/datasets/git/builtin/fast-import.c:2483:9: note: +1, nesting level increased to 1
        } else if (*p == ':') {
               ^
/datasets/git/builtin/fast-import.c:2486:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (commit_oe->type != OBJ_COMMIT)
                ^
/datasets/git/builtin/fast-import.c:2489:9: note: +1, nesting level increased to 1
        } else if (!get_oid(p, &commit_oid)) {
               ^
/datasets/git/builtin/fast-import.c:2495:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!buf || size < the_hash_algo->hexsz + 6)
                ^
/datasets/git/builtin/fast-import.c:2495:12: note: +1
                if (!buf || size < the_hash_algo->hexsz + 6)
                         ^
/datasets/git/builtin/fast-import.c:2498:4: note: +1, nesting level increased to 1
        } else
          ^
/datasets/git/builtin/fast-import.c:2501:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (inline_data) {
        ^
/datasets/git/builtin/fast-import.c:2502:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (p != uq.buf) {
                ^
/datasets/git/builtin/fast-import.c:2508:9: note: +1, nesting level increased to 1
        } else if (oe) {
               ^
/datasets/git/builtin/fast-import.c:2509:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (oe->type != OBJ_BLOB)
                ^
/datasets/git/builtin/fast-import.c:2512:9: note: +1, nesting level increased to 1
        } else if (!is_null_oid(&oid)) {
               ^
/datasets/git/builtin/fast-import.c:2515:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (type < 0)
                ^
/datasets/git/builtin/fast-import.c:2517:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (type != OBJ_BLOB)
                ^
/datasets/git/builtin/fast-import.c:2523:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (tree_content_remove(&b->branch_tree, path, NULL, 0))
        ^
/datasets/git/builtin/fast-import.c:2526:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (is_null_oid(&oid))
        ^
/datasets/git/builtin/fast-import.c:2435:39: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static void note_change_n(const char *p, struct branch *b, unsigned char *old_fanout)
                                      ^
/datasets/git/builtin/fast-import.c:2435:57: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static void note_change_n(const char *p, struct branch *b, unsigned char *old_fanout)
                                                        ^
/datasets/git/builtin/fast-import.c:2437:23: warning: variable name 'uq' is too short, expected at least 3 characters [readability-identifier-length]
        static struct strbuf uq = STRBUF_INIT;
                             ^
/datasets/git/builtin/fast-import.c:2438:23: warning: variable 'oe' is not initialized [cppcoreguidelines-init-variables]
        struct object_entry *oe;
                             ^
                                = NULL
/datasets/git/builtin/fast-import.c:2438:23: warning: variable name 'oe' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:2439:17: warning: variable 's' is not initialized [cppcoreguidelines-init-variables]
        struct branch *s;
                       ^
                         = NULL
/datasets/git/builtin/fast-import.c:2439:17: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:2440:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct object_id oid, commit_oid;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:2443:16: warning: variable 'new_fanout' is not initialized [cppcoreguidelines-init-variables]
        unsigned char new_fanout;
                      ^
                                 = 0
/datasets/git/builtin/fast-import.c:2457:54: warning: 0xff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                b->num_notes = change_note_fanout(&b->branch_tree, 0xff);
                                                                   ^
/datasets/git/builtin/fast-import.c:2470:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (parse_mapped_oid_hex(p, &oid, &p))
                                                      ^
                                                       {
/datasets/git/builtin/fast-import.c:2473:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*p++ != ' ')
                                ^
                                 {
/datasets/git/builtin/fast-import.c:2480:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_null_oid(&s->oid))
                                         ^
                                          {
/datasets/git/builtin/fast-import.c:2486:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (commit_oe->type != OBJ_COMMIT)
                                                  ^
                                                   {
/datasets/git/builtin/fast-import.c:2490:17: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
                unsigned long size;
                              ^
                                   = 0
/datasets/git/builtin/fast-import.c:2495:45: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (!buf || size < the_hash_algo->hexsz + 6)
                                                          ^
/datasets/git/builtin/fast-import.c:2495:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!buf || size < the_hash_algo->hexsz + 6)
                                                            ^
                                                             {
/datasets/git/builtin/fast-import.c:2498:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/builtin/fast-import.c:2509:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (oe->type != OBJ_BLOB)
                                         ^
                                          {
/datasets/git/builtin/fast-import.c:2515:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (type < 0)
                             ^
                              {
/datasets/git/builtin/fast-import.c:2517:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (type != OBJ_BLOB)
                                     ^
                                      {
/datasets/git/builtin/fast-import.c:2523:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (tree_content_remove(&b->branch_tree, path, NULL, 0))
                                                                ^
                                                                 {
/datasets/git/builtin/fast-import.c:2526:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_null_oid(&oid))
                              ^
                               {
/datasets/git/builtin/fast-import.c:2532:58: warning: 0644 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        tree_content_set(&b->branch_tree, path, &oid, S_IFREG | 0644, NULL);
                                                                ^
/datasets/git/builtin/fast-import.c:2535:50: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static void file_change_deleteall(struct branch *b)
                                                 ^
/datasets/git/builtin/fast-import.c:2544:46: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static void parse_from_commit(struct branch *b, char *buf, unsigned long size)
                                             ^
/datasets/git/builtin/fast-import.c:2546:44: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (!buf || size < the_hash_algo->hexsz + 6)
                                                  ^
/datasets/git/builtin/fast-import.c:2546:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!buf || size < the_hash_algo->hexsz + 6)
                                                    ^
                                                     {
/datasets/git/builtin/fast-import.c:2548:6: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (memcmp("tree ", buf, 5)
            ^
                                    != 0
/datasets/git/builtin/fast-import.c:2548:27: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (memcmp("tree ", buf, 5)
                                 ^
/datasets/git/builtin/fast-import.c:2549:24: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                || get_oid_hex(buf + 5, &b->branch_tree.versions[1].oid))
                                     ^
/datasets/git/builtin/fast-import.c:2549:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                || get_oid_hex(buf + 5, &b->branch_tree.versions[1].oid))
                                                                         ^
                                                                          {
/datasets/git/builtin/fast-import.c:2555:48: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static void parse_from_existing(struct branch *b)
                                               ^
/datasets/git/builtin/fast-import.c:2561:17: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
                unsigned long size;
                              ^
                                   = 0
/datasets/git/builtin/fast-import.c:2562:9: warning: variable 'buf' is not initialized [cppcoreguidelines-init-variables]
                char *buf;
                      ^
                          = NULL
/datasets/git/builtin/fast-import.c:2572:43: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static int parse_objectish(struct branch *b, const char *objectish)
                                          ^
/datasets/git/builtin/fast-import.c:2574:17: warning: variable 's' is not initialized [cppcoreguidelines-init-variables]
        struct branch *s;
                       ^
                         = NULL
/datasets/git/builtin/fast-import.c:2574:17: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:2580:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (b == s)
                   ^
                    {
/datasets/git/builtin/fast-import.c:2583:21: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
                struct object_id *t = &s->branch_tree.versions[1].oid;
                                  ^
/datasets/git/builtin/fast-import.c:2589:24: warning: variable name 'oe' is too short, expected at least 3 characters [readability-identifier-length]
                struct object_entry *oe = find_mark(marks, idnum);
                                     ^
/datasets/git/builtin/fast-import.c:2590:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (oe->type != OBJ_COMMIT)
                                           ^
                                            {
/datasets/git/builtin/fast-import.c:2594:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (oe->pack_id != MAX_PACK_ID) {
                                           ^
/datasets/git/builtin/fast-import.c:25:23: note: expanded from macro 'MAX_PACK_ID'
#define MAX_PACK_ID ((1<<PACK_ID_BITS)-1)
                      ^
/datasets/git/builtin/fast-import.c:2595:19: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
                                unsigned long size;
                                              ^
                                                   = 0
/datasets/git/builtin/fast-import.c:2599:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        } else
                              ^
                               {
/datasets/git/builtin/fast-import.c:2604:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_null_oid(&b->oid))
                                         ^
                                          {
/datasets/git/builtin/fast-import.c:2607:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/fast-import.c:2619:38: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static int parse_from(struct branch *b)
                                     ^
/datasets/git/builtin/fast-import.c:2621:14: warning: variable 'from' is not initialized [cppcoreguidelines-init-variables]
        const char *from;
                    ^
                         = NULL
/datasets/git/builtin/fast-import.c:2623:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!skip_prefix(command_buf.buf, "from ", &from))
                                                          ^
                                                           {
/datasets/git/builtin/fast-import.c:2629:55: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static int parse_objectish_with_prefix(struct branch *b, const char *prefix)
                                                      ^
/datasets/git/builtin/fast-import.c:2631:14: warning: variable 'base' is not initialized [cppcoreguidelines-init-variables]
        const char *base;
                    ^
                         = NULL
/datasets/git/builtin/fast-import.c:2633:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!skip_prefix(command_buf.buf, prefix, &base))
                                                         ^
                                                          {
/datasets/git/builtin/fast-import.c:2641:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct hash_list *list = NULL, **tail = &list, *n;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:2641:50: warning: variable 'n' is not initialized [cppcoreguidelines-init-variables]
        struct hash_list *list = NULL, **tail = &list, *n;
                                                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-import.c:2641:50: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:2642:14: warning: variable 'from' is not initialized [cppcoreguidelines-init-variables]
        const char *from;
                    ^
                         = NULL
/datasets/git/builtin/fast-import.c:2643:17: warning: variable 's' is not initialized [cppcoreguidelines-init-variables]
        struct branch *s;
                       ^
                         = NULL
/datasets/git/builtin/fast-import.c:2643:17: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:2646:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (skip_prefix(command_buf.buf, "merge ", &from)) {
        ^
/datasets/git/builtin/fast-import.c:2649:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (s)
                      ^
                       {
/datasets/git/builtin/fast-import.c:2653:25: warning: variable name 'oe' is too short, expected at least 3 characters [readability-identifier-length]
                        struct object_entry *oe = find_mark(marks, idnum);
                                             ^
/datasets/git/builtin/fast-import.c:2654:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (oe->type != OBJ_COMMIT)
                                                   ^
                                                    {
/datasets/git/builtin/fast-import.c:2658:18: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
                        unsigned long size;
                                      ^
                                           = 0
/datasets/git/builtin/fast-import.c:2663:46: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        if (!buf || size < the_hash_algo->hexsz + 6)
                                                                  ^
/datasets/git/builtin/fast-import.c:2663:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!buf || size < the_hash_algo->hexsz + 6)
                                                                    ^
                                                                     {
/datasets/git/builtin/fast-import.c:2666:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/builtin/fast-import.c:2679:13: warning: function 'parse_new_commit' has cognitive complexity of 26 (threshold 25) [readability-function-cognitive-complexity]
static void parse_new_commit(const char *arg)
            ^
/datasets/git/builtin/fast-import.c:2692:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!b)
        ^
/datasets/git/builtin/fast-import.c:2698:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (skip_prefix(command_buf.buf, "author ", &v)) {
        ^
/datasets/git/builtin/fast-import.c:2702:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (skip_prefix(command_buf.buf, "committer ", &v)) {
        ^
/datasets/git/builtin/fast-import.c:2706:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!committer)
        ^
/datasets/git/builtin/fast-import.c:2708:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (skip_prefix(command_buf.buf, "encoding ", &v)) {
        ^
/datasets/git/builtin/fast-import.c:2718:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!b->branch_tree.tree || !max_active_branches) {
        ^
/datasets/git/builtin/fast-import.c:2718:27: note: +1
        if (!b->branch_tree.tree || !max_active_branches) {
                                 ^
/datasets/git/builtin/fast-import.c:2726:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (command_buf.len > 0) {
        ^
/datasets/git/builtin/fast-import.c:2727:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (skip_prefix(command_buf.buf, "M ", &v))
                ^
/datasets/git/builtin/fast-import.c:2729:8: note: +1, nesting level increased to 2
                else if (skip_prefix(command_buf.buf, "D ", &v))
                     ^
/datasets/git/builtin/fast-import.c:2731:8: note: +1, nesting level increased to 2
                else if (skip_prefix(command_buf.buf, "R ", &v))
                     ^
/datasets/git/builtin/fast-import.c:2733:8: note: +1, nesting level increased to 2
                else if (skip_prefix(command_buf.buf, "C ", &v))
                     ^
/datasets/git/builtin/fast-import.c:2735:8: note: +1, nesting level increased to 2
                else if (skip_prefix(command_buf.buf, "N ", &v))
                     ^
/datasets/git/builtin/fast-import.c:2737:8: note: +1, nesting level increased to 2
                else if (!strcmp("deleteall", command_buf.buf))
                     ^
/datasets/git/builtin/fast-import.c:2739:8: note: +1, nesting level increased to 2
                else if (skip_prefix(command_buf.buf, "ls ", &v))
                     ^
/datasets/git/builtin/fast-import.c:2741:8: note: +1, nesting level increased to 2
                else if (skip_prefix(command_buf.buf, "cat-blob ", &v))
                     ^
/datasets/git/builtin/fast-import.c:2743:3: note: +1, nesting level increased to 2
                else {
                ^
/datasets/git/builtin/fast-import.c:2747:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (read_next_command() == EOF)
                ^
/datasets/git/builtin/fast-import.c:2752:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (new_fanout != prev_fanout)
        ^
/datasets/git/builtin/fast-import.c:2763:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!is_null_oid(&b->oid))
        ^
/datasets/git/builtin/fast-import.c:2766:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (merge_list) {
        ^
/datasets/git/builtin/fast-import.c:2776:10: note: +1, including nesting penalty of 0, nesting level increased to 1
                author ? author : committer, committer);
                       ^
/datasets/git/builtin/fast-import.c:2777:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (encoding)
        ^
/datasets/git/builtin/fast-import.c:2787:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!store_object(OBJ_COMMIT, &new_data, NULL, &b->oid, next_mark))
        ^
/datasets/git/builtin/fast-import.c:2682:17: warning: variable 'b' is not initialized [cppcoreguidelines-init-variables]
        struct branch *b;
                       ^
                         = NULL
/datasets/git/builtin/fast-import.c:2682:17: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:2687:15: warning: variable 'merge_count' is not initialized [cppcoreguidelines-init-variables]
        unsigned int merge_count;
                     ^
                                 = 0
/datasets/git/builtin/fast-import.c:2688:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned char prev_fanout, new_fanout;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:2688:16: warning: variable 'prev_fanout' is not initialized [cppcoreguidelines-init-variables]
        unsigned char prev_fanout, new_fanout;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-import.c:2688:29: warning: variable 'new_fanout' is not initialized [cppcoreguidelines-init-variables]
        unsigned char prev_fanout, new_fanout;
                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-import.c:2689:14: warning: variable 'v' is not initialized [cppcoreguidelines-init-variables]
        const char *v;
                    ^
                      = NULL
/datasets/git/builtin/fast-import.c:2689:14: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:2692:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!b)
               ^
                {
/datasets/git/builtin/fast-import.c:2706:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!committer)
                       ^
                        {
/datasets/git/builtin/fast-import.c:2726:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (command_buf.len > 0) {
        ^
/datasets/git/builtin/fast-import.c:2726:9: warning: backward branch (while loop) is ID-dependent due to member reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (command_buf.len > 0) {
               ^
/datasets/git/builtin/fast-import.c:2727:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (skip_prefix(command_buf.buf, "M ", &v))
                                                           ^
                                                            {
/datasets/git/builtin/fast-import.c:2729:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (skip_prefix(command_buf.buf, "D ", &v))
                                                                ^
                                                                 {
/datasets/git/builtin/fast-import.c:2731:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (skip_prefix(command_buf.buf, "R ", &v))
                                                                ^
                                                                 {
/datasets/git/builtin/fast-import.c:2733:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (skip_prefix(command_buf.buf, "C ", &v))
                                                                ^
                                                                 {
/datasets/git/builtin/fast-import.c:2735:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (skip_prefix(command_buf.buf, "N ", &v))
                                                                ^
                                                                 {
/datasets/git/builtin/fast-import.c:2737:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp("deleteall", command_buf.buf))
                                                               ^
                                                                {
/datasets/git/builtin/fast-import.c:2739:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (skip_prefix(command_buf.buf, "ls ", &v))
                                                                 ^
                                                                  {
/datasets/git/builtin/fast-import.c:2741:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (skip_prefix(command_buf.buf, "cat-blob ", &v))
                                                                       ^
                                                                        {
/datasets/git/builtin/fast-import.c:2747:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (read_next_command() == EOF)
                                               ^
                                                {
/datasets/git/builtin/fast-import.c:2752:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (new_fanout != prev_fanout)
                                      ^
                                       {
/datasets/git/builtin/fast-import.c:2763:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_null_oid(&b->oid))
                                  ^
                                   {
/datasets/git/builtin/fast-import.c:2766:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (merge_list) {
        ^
/datasets/git/builtin/fast-import.c:2766:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'merge_list' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (merge_list) {
               ^
/datasets/git/builtin/fast-import.c:2777:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (encoding)
                     ^
                      {
/datasets/git/builtin/fast-import.c:2787:69: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!store_object(OBJ_COMMIT, &new_data, NULL, &b->oid, next_mark))
                                                                           ^
                                                                            {
/datasets/git/builtin/fast-import.c:2795:14: warning: variable 'from' is not initialized [cppcoreguidelines-init-variables]
        const char *from;
                    ^
                         = NULL
/datasets/git/builtin/fast-import.c:2796:8: warning: variable 'tagger' is not initialized [cppcoreguidelines-init-variables]
        char *tagger;
              ^
                     = NULL
/datasets/git/builtin/fast-import.c:2797:17: warning: variable 's' is not initialized [cppcoreguidelines-init-variables]
        struct branch *s;
                       ^
                         = NULL
/datasets/git/builtin/fast-import.c:2797:17: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:2798:14: warning: variable 't' is not initialized [cppcoreguidelines-init-variables]
        struct tag *t;
                    ^
                      = NULL
/datasets/git/builtin/fast-import.c:2798:14: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:2801:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/builtin/fast-import.c:2802:14: warning: variable 'v' is not initialized [cppcoreguidelines-init-variables]
        const char *v;
                    ^
                      = NULL
/datasets/git/builtin/fast-import.c:2802:14: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:2805:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(t, 0, sizeof(struct tag));
        ^~~~~~
/datasets/git/builtin/fast-import.c:2805:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(t, 0, sizeof(struct tag));
        ^~~~~~
/datasets/git/builtin/fast-import.c:2807:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (last_tag)
                     ^
                      {
/datasets/git/builtin/fast-import.c:2809:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/fast-import.c:2816:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!skip_prefix(command_buf.buf, "from ", &from))
                                                          ^
                                                           {
/datasets/git/builtin/fast-import.c:2820:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_null_oid(&s->oid))
                                         ^
                                          {
/datasets/git/builtin/fast-import.c:2825:24: warning: variable 'oe' is not initialized [cppcoreguidelines-init-variables]
                struct object_entry *oe;
                                     ^
                                        = NULL
/datasets/git/builtin/fast-import.c:2825:24: warning: variable name 'oe' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:2831:24: warning: variable name 'oe' is too short, expected at least 3 characters [readability-identifier-length]
                struct object_entry *oe = find_object(&oid);
                                     ^
/datasets/git/builtin/fast-import.c:2834:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (type < 0)
                                     ^
                                      {
/datasets/git/builtin/fast-import.c:2836:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/builtin/fast-import.c:2838:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/builtin/fast-import.c:2849:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/builtin/fast-import.c:2863:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (tagger)
                   ^
                    {
/datasets/git/builtin/fast-import.c:2870:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (store_object(OBJ_TAG, &new_data, NULL, &t->oid, next_mark))
                                                                       ^
                                                                        {
/datasets/git/builtin/fast-import.c:2871:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                t->pack_id = MAX_PACK_ID;
                             ^
/datasets/git/builtin/fast-import.c:25:23: note: expanded from macro 'MAX_PACK_ID'
#define MAX_PACK_ID ((1<<PACK_ID_BITS)-1)
                      ^
/datasets/git/builtin/fast-import.c:2872:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/fast-import.c:2878:17: warning: variable 'b' is not initialized [cppcoreguidelines-init-variables]
        struct branch *b;
                       ^
                         = NULL
/datasets/git/builtin/fast-import.c:2878:17: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:2879:14: warning: variable 'tag_name' is not initialized [cppcoreguidelines-init-variables]
        const char *tag_name;
                    ^
                             = NULL
/datasets/git/builtin/fast-import.c:2891:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/fast-import.c:2905:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                struct tag *t, *prev = NULL;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:2905:3: note: inferred assignment of ID-dependent value from ID-dependent variable first_tag [altera-id-dependent-backward-branch]
/datasets/git/builtin/fast-import.c:2905:15: warning: variable 't' is not initialized [cppcoreguidelines-init-variables]
                struct tag *t, *prev = NULL;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-import.c:2905:15: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:2906:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (t = first_tag; t; t = t->next_tag) {
                ^
/datasets/git/builtin/fast-import.c:2906:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 't' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (t = first_tag; t; t = t->next_tag) {
                                    ^
/datasets/git/builtin/fast-import.c:2907:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!strcmp(t->name, tag_name))
                                                       ^
                                                        {
/datasets/git/builtin/fast-import.c:2912:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (prev)
                                 ^
                                  {
/datasets/git/builtin/fast-import.c:2914:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/builtin/fast-import.c:2916:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!t->next_tag)
                                         ^
                                          {
/datasets/git/builtin/fast-import.c:2921:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (command_buf.len > 0)
                                ^
                                 {
/datasets/git/builtin/fast-import.c:2927:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_in_full(cat_blob_fd, buf, size) < 0)
                                                      ^
                                                       {
/datasets/git/builtin/fast-import.c:2931:43: warning: parameter name 'oe' is too short, expected at least 3 characters [readability-identifier-length]
static void cat_blob(struct object_entry *oe, struct object_id *oid)
                                          ^
/datasets/git/builtin/fast-import.c:2934:16: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size;
                      ^
                           = 0
/datasets/git/builtin/fast-import.c:2936:8: warning: variable 'buf' is not initialized [cppcoreguidelines-init-variables]
        char *buf;
              ^
                  = NULL
/datasets/git/builtin/fast-import.c:2938:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!oe || oe->pack_id == MAX_PACK_ID) {
                                  ^
/datasets/git/builtin/fast-import.c:25:23: note: expanded from macro 'MAX_PACK_ID'
#define MAX_PACK_ID ((1<<PACK_ID_BITS)-1)
                      ^
/datasets/git/builtin/fast-import.c:2956:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!buf)
                 ^
                  {
/datasets/git/builtin/fast-import.c:2958:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (type != OBJ_BLOB)
                             ^
                              {
/datasets/git/builtin/fast-import.c:2972:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/builtin/fast-import.c:2976:40: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static void parse_get_mark(const char *p)
                                       ^
/datasets/git/builtin/fast-import.c:2978:23: warning: variable 'oe' is not initialized [cppcoreguidelines-init-variables]
        struct object_entry *oe;
                             ^
                                = NULL
/datasets/git/builtin/fast-import.c:2978:23: warning: variable name 'oe' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:2982:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*p != ':')
                      ^
                       {
/datasets/git/builtin/fast-import.c:2986:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!oe)
                ^
                 {
/datasets/git/builtin/fast-import.c:2993:40: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static void parse_cat_blob(const char *p)
                                       ^
/datasets/git/builtin/fast-import.c:2995:23: warning: variable 'oe' is not initialized [cppcoreguidelines-init-variables]
        struct object_entry *oe;
                             ^
                                = NULL
/datasets/git/builtin/fast-import.c:2995:23: warning: variable name 'oe' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:3001:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!oe)
                        ^
                         {
/datasets/git/builtin/fast-import.c:3005:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (parse_mapped_oid_hex(p, &oid, &p))
                                                      ^
                                                       {
/datasets/git/builtin/fast-import.c:3007:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*p)
                       ^
                        {
/datasets/git/builtin/fast-import.c:3015:62: warning: parameter name 'oe' is too short, expected at least 3 characters [readability-identifier-length]
static struct object_entry *dereference(struct object_entry *oe,
                                                             ^
/datasets/git/builtin/fast-import.c:3018:16: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size;
                      ^
                           = 0
/datasets/git/builtin/fast-import.c:3025:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (type < 0)
                             ^
                              {
/datasets/git/builtin/fast-import.c:3030:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                oe->pack_id = MAX_PACK_ID;
                              ^
/datasets/git/builtin/fast-import.c:25:23: note: expanded from macro 'MAX_PACK_ID'
#define MAX_PACK_ID ((1<<PACK_ID_BITS)-1)
                      ^
/datasets/git/builtin/fast-import.c:3043:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (oe->pack_id != MAX_PACK_ID) {       /* in a pack being written */
                           ^
/datasets/git/builtin/fast-import.c:25:23: note: expanded from macro 'MAX_PACK_ID'
#define MAX_PACK_ID ((1<<PACK_ID_BITS)-1)
                      ^
/datasets/git/builtin/fast-import.c:3046:20: warning: variable 'unused' is not initialized [cppcoreguidelines-init-variables]
                enum object_type unused;
                                 ^
/datasets/git/builtin/fast-import.c:3049:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!buf)
                 ^
                  {
/datasets/git/builtin/fast-import.c:3053:2: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
        switch (oe->type) {
        ^
/datasets/git/builtin/fast-import.c:3056:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    get_oid_hex(buf + strlen("object "), oid))
                                                              ^
                                                               {
/datasets/git/builtin/fast-import.c:3061:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    get_oid_hex(buf + strlen("tree "), oid))
                                                            ^
                                                             {
/datasets/git/builtin/fast-import.c:3069:48: warning: 2 adjacent parameters of 'insert_mapped_mark' of similar type ('void *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void insert_mapped_mark(uintmax_t mark, void *object, void *cbp)
                                               ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:3069:54: note: the first parameter in the range is 'object'
static void insert_mapped_mark(uintmax_t mark, void *object, void *cbp)
                                                     ^~~~~~
/datasets/git/builtin/fast-import.c:3069:68: note: the last parameter in the range is 'cbp'
static void insert_mapped_mark(uintmax_t mark, void *object, void *cbp)
                                                                   ^~~
/datasets/git/builtin/fast-import.c:3073:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/builtin/fast-import.c:3074:11: warning: variable 'it' is not initialized [cppcoreguidelines-init-variables]
        khiter_t it;
                 ^
                    = 0
/datasets/git/builtin/fast-import.c:3074:11: warning: variable name 'it' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:3078:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret == 0)
                     ^
                      {
/datasets/git/builtin/fast-import.c:3083:72: warning: parameter name 'to' is too short, expected at least 3 characters [readability-identifier-length]
static void build_mark_map_one(struct mark_set *from, struct mark_set *to)
                                                                       ^
/datasets/git/builtin/fast-import.c:3088:28: warning: 2 adjacent parameters of 'build_mark_map' of similar type ('struct string_list *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void build_mark_map(struct string_list *from, struct string_list *to)
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:3088:48: note: the first parameter in the range is 'from'
static void build_mark_map(struct string_list *from, struct string_list *to)
                                               ^~~~
/datasets/git/builtin/fast-import.c:3088:74: note: the last parameter in the range is 'to'
static void build_mark_map(struct string_list *from, struct string_list *to)
                                                                         ^~
/datasets/git/builtin/fast-import.c:3088:74: warning: parameter name 'to' is too short, expected at least 3 characters [readability-identifier-length]
static void build_mark_map(struct string_list *from, struct string_list *to)
                                                                         ^
/datasets/git/builtin/fast-import.c:3090:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct string_list_item *fromp, *top;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:3090:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/builtin/fast-import.c:3090:27: warning: variable 'fromp' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *fromp, *top;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-import.c:3090:35: warning: variable 'top' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *fromp, *top;
                                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fast-import.c:3094:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(fromp, from) {
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/fast-import.c:3094:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'fromp' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(fromp, from) {
                                  ^
/datasets/git/builtin/fast-import.c:3105:64: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static struct object_entry *parse_treeish_dataref(const char **p)
                                                               ^
/datasets/git/builtin/fast-import.c:3108:23: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct object_entry *e;
                             ^
                               = NULL
/datasets/git/builtin/fast-import.c:3108:23: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:3112:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!e)
                       ^
                        {
/datasets/git/builtin/fast-import.c:3116:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (parse_mapped_oid_hex(*p, &oid, p))
                                                      ^
                                                       {
/datasets/git/builtin/fast-import.c:3119:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*(*p)++ != ' ')
                                   ^
                                    {
/datasets/git/builtin/fast-import.c:3123:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (!e || e->type != OBJ_TREE)
        ^
/datasets/git/builtin/fast-import.c:3123:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'e' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (!e || e->type != OBJ_TREE)
               ^
/datasets/git/builtin/fast-import.c:3123:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (!e || e->type != OBJ_TREE)
                                         ^
                                          {
/datasets/git/builtin/fast-import.c:3134:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                S_ISGITLINK(mode) ? commit_type :
                ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^~~
/datasets/git/builtin/fast-import.c:3148:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                mode & ~NO_DELTA, type, hash_to_hex(hash));
                                ^~~~
/datasets/git/builtin/fast-import.c:3148:12: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                                mode & ~NO_DELTA, type, hash_to_hex(hash));
                                       ^
/datasets/git/builtin/fast-import.c:3155:34: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static void parse_ls(const char *p, struct branch *b)
                                 ^
/datasets/git/builtin/fast-import.c:3155:52: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static void parse_ls(const char *p, struct branch *b)
                                                   ^
/datasets/git/builtin/fast-import.c:3162:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!b)
                       ^
                        {
/datasets/git/builtin/fast-import.c:3166:24: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                struct object_entry *e = parse_treeish_dataref(&p);
                                     ^
/datasets/git/builtin/fast-import.c:3169:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!is_null_oid(&root->versions[1].oid))
                                                         ^
                                                          {
/datasets/git/builtin/fast-import.c:3174:24: warning: variable name 'uq' is too short, expected at least 3 characters [readability-identifier-length]
                static struct strbuf uq = STRBUF_INIT;
                                     ^
/datasets/git/builtin/fast-import.c:3175:15: warning: variable 'endp' is not initialized [cppcoreguidelines-init-variables]
                const char *endp;
                            ^
                                 = NULL
/datasets/git/builtin/fast-import.c:3177:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (unquote_c_style(&uq, p, &endp))
                                                   ^
                                                    {
/datasets/git/builtin/fast-import.c:3179:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*endp)
                          ^
                           {
/datasets/git/builtin/fast-import.c:3188:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (S_ISDIR(leaf.versions[1].mode))
                                           ^
                                            {
/datasets/git/builtin/fast-import.c:3192:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (leaf.tree)
                      ^
                       {
/datasets/git/builtin/fast-import.c:3194:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!b || root != &b->branch_tree)
                                          ^
                                           {
/datasets/git/builtin/fast-import.c:3217:2: warning: the value returned by this function should be used [cert-err33-c]
        fwrite(command_buf.buf, 1, command_buf.len, stdout);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:3217:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:3218:2: warning: the value returned by this function should be used [cert-err33-c]
        fputc('\n', stdout);
        ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:3218:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:3219:2: warning: the value returned by this function should be used [cert-err33-c]
        fflush(stdout);
        ^~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:3219:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:3225:23: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct object_entry *e;
                             ^
                               = NULL
/datasets/git/builtin/fast-import.c:3225:23: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:3226:16: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        struct branch b;
                      ^
/datasets/git/builtin/fast-import.c:3233:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!next_mark)
                       ^
                        {
/datasets/git/builtin/fast-import.c:3237:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&b, 0, sizeof(b));
        ^~~~~~
/datasets/git/builtin/fast-import.c:3237:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&b, 0, sizeof(b));
        ^~~~~~
/datasets/git/builtin/fast-import.c:3238:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!parse_objectish_with_prefix(&b, "to "))
                                                    ^
                                                     {
/datasets/git/builtin/fast-import.c:3247:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!relative_marks_paths || is_absolute_path(path))
                                                            ^
                                                             {
/datasets/git/builtin/fast-import.c:3253:6: warning: 2 adjacent parameters of 'option_import_marks' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                        int from_stream, int ignore_missing)
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:3253:10: note: the first parameter in the range is 'from_stream'
                                        int from_stream, int ignore_missing)
                                            ^~~~~~~~~~~
/datasets/git/builtin/fast-import.c:3253:27: note: the last parameter in the range is 'ignore_missing'
                                        int from_stream, int ignore_missing)
                                                             ^~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:3256:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (from_stream)
                                ^
                                 {
/datasets/git/builtin/fast-import.c:3260:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if(!import_marks_file_from_stream)
                                                  ^
                                                   {
/datasets/git/builtin/fast-import.c:3271:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(fmt, "raw"))
                                ^
                                 {
/datasets/git/builtin/fast-import.c:3273:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(fmt, "raw-permissive"))
                                                ^
                                                 {
/datasets/git/builtin/fast-import.c:3275:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(fmt, "rfc2822"))
                                         ^
                                          {
/datasets/git/builtin/fast-import.c:3277:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(fmt, "now"))
                                     ^
                                      {
/datasets/git/builtin/fast-import.c:3279:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/fast-import.c:3283:32: warning: 2 adjacent parameters of 'ulong_arg' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static unsigned long ulong_arg(const char *option, const char *arg)
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:3283:44: note: the first parameter in the range is 'option'
static unsigned long ulong_arg(const char *option, const char *arg)
                                           ^~~~~~
/datasets/git/builtin/fast-import.c:3283:64: note: the last parameter in the range is 'arg'
static unsigned long ulong_arg(const char *option, const char *arg)
                                                               ^~~
/datasets/git/builtin/fast-import.c:3285:8: warning: variable 'endptr' is not initialized [cppcoreguidelines-init-variables]
        char *endptr;
              ^
                     = NULL
/datasets/git/builtin/fast-import.c:3286:16: warning: variable name 'rv' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned long rv = strtoul(arg, &endptr, 0);
                      ^
/datasets/git/builtin/fast-import.c:3287:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strchr(arg, '-') || endptr == arg || *endptr)
                                                         ^
                                                          {
/datasets/git/builtin/fast-import.c:3295:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (max_depth > MAX_DEPTH)
                        ^
/datasets/git/builtin/fast-import.c:27:21: note: expanded from macro 'MAX_DEPTH'
#define MAX_DEPTH ((1<<DEPTH_BITS)-1)
                    ^
/datasets/git/builtin/fast-import.c:3295:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (max_depth > MAX_DEPTH)
                                  ^
                                   {
/datasets/git/builtin/fast-import.c:3296:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                die("--depth cannot exceed %u", MAX_DEPTH);
                                                ^
/datasets/git/builtin/fast-import.c:27:21: note: expanded from macro 'MAX_DEPTH'
#define MAX_DEPTH ((1<<DEPTH_BITS)-1)
                    ^
/datasets/git/builtin/fast-import.c:3309:44: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
static void option_cat_blob_fd(const char *fd)
                                           ^
/datasets/git/builtin/fast-import.c:3311:16: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned long n = ulong_arg("--cat-blob-fd", fd);
                      ^
/datasets/git/builtin/fast-import.c:3312:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (n > (unsigned long) INT_MAX)
                                        ^
                                         {
/datasets/git/builtin/fast-import.c:3319:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pack_edges)
                       ^
                        {
/datasets/git/builtin/fast-import.c:3320:3: warning: the value returned by this function should be used [cert-err33-c]
                fclose(pack_edges);
                ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:3320:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:3326:19: warning: variable 'ms' is not initialized [cppcoreguidelines-init-variables]
        struct mark_set *ms;
                         ^
                            = NULL
/datasets/git/builtin/fast-import.c:3326:19: warning: variable name 'ms' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:3327:8: warning: variable 'fp' is not initialized [cppcoreguidelines-init-variables]
        FILE *fp;
              ^
                 = NULL
/datasets/git/builtin/fast-import.c:3327:8: warning: variable name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:3328:8: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
        char *s = xstrdup(arg);
              ^
/datasets/git/builtin/fast-import.c:3329:8: warning: variable name 'f' is too short, expected at least 3 characters [readability-identifier-length]
        char *f = strchr(s, ':');
              ^
/datasets/git/builtin/fast-import.c:3330:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!f)
               ^
                {
/datasets/git/builtin/fast-import.c:3337:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!fp)
                ^
                 {
/datasets/git/builtin/fast-import.c:3340:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(fp);
        ^~~~~~~~~~
/datasets/git/builtin/fast-import.c:3340:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:3348:17: warning: variable 'v' is not initialized [cppcoreguidelines-init-variables]
                unsigned long v;
                              ^
                                = 0
/datasets/git/builtin/fast-import.c:3348:17: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:3349:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!git_parse_ulong(option, &v))
                                                 ^
                                                  {
/datasets/git/builtin/fast-import.c:3351:11: warning: 8192 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (v < 8192) {
                        ^
/datasets/git/builtin/fast-import.c:3353:9: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                        v *= 1024 * 1024;
                             ^
/datasets/git/builtin/fast-import.c:3353:9: note: make conversion explicit to silence this warning
                        v *= 1024 * 1024;
                             ^~~~~~~~~~~
                             (unsigned long)( )
/datasets/git/builtin/fast-import.c:3353:9: note: perform multiplication in a wider type
                        v *= 1024 * 1024;
                             ^~~~
                             (long)
/datasets/git/builtin/fast-import.c:3353:9: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        v *= 1024 * 1024;
                             ^
/datasets/git/builtin/fast-import.c:3353:16: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        v *= 1024 * 1024;
                                    ^
/datasets/git/builtin/fast-import.c:3354:18: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                } else if (v < 1024 * 1024) {
                               ^
/datasets/git/builtin/fast-import.c:3354:18: note: make conversion explicit to silence this warning
                } else if (v < 1024 * 1024) {
                               ^~~~~~~~~~~
                               (unsigned long)( )
/datasets/git/builtin/fast-import.c:3354:18: note: perform multiplication in a wider type
                } else if (v < 1024 * 1024) {
                               ^~~~
                               (long)
/datasets/git/builtin/fast-import.c:3354:18: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                } else if (v < 1024 * 1024) {
                               ^
/datasets/git/builtin/fast-import.c:3354:25: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                } else if (v < 1024 * 1024) {
                                      ^
/datasets/git/builtin/fast-import.c:3356:8: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                        v = 1024 * 1024;
                            ^
/datasets/git/builtin/fast-import.c:3356:8: note: make conversion explicit to silence this warning
                        v = 1024 * 1024;
                            ^~~~~~~~~~~
                            (unsigned long)( )
/datasets/git/builtin/fast-import.c:3356:8: note: perform multiplication in a wider type
                        v = 1024 * 1024;
                            ^~~~
                            (long)
/datasets/git/builtin/fast-import.c:3356:8: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        v = 1024 * 1024;
                            ^
/datasets/git/builtin/fast-import.c:3356:15: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        v = 1024 * 1024;
                                   ^
/datasets/git/builtin/fast-import.c:3358:18: warning: narrowing conversion from 'unsigned long' to signed type 'off_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                max_packsize = v;
                               ^
/datasets/git/builtin/fast-import.c:3360:17: warning: variable 'v' is not initialized [cppcoreguidelines-init-variables]
                unsigned long v;
                              ^
                                = 0
/datasets/git/builtin/fast-import.c:3360:17: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:3361:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!git_parse_ulong(option, &v))
                                                 ^
                                                  {
/datasets/git/builtin/fast-import.c:3385:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (from_stream && !allow_unsafe_features)
                                                  ^
                                                   {
/datasets/git/builtin/fast-import.c:3392:14: warning: variable 'arg' is not initialized [cppcoreguidelines-init-variables]
        const char *arg;
                    ^
                        = NULL
/datasets/git/builtin/fast-import.c:3405:40: warning: repeated branch in conditional chain [bugprone-branch-clone]
        } else if (!strcmp(feature, "alias")) {
                                              ^
/datasets/git/builtin/fast-import.c:3407:3: note: end of the original
        } else if (skip_prefix(feature, "rewrite-submodules-to=", &arg)) {
         ^
/datasets/git/builtin/fast-import.c:3411:43: note: clone 1 starts here
        } else if (!strcmp(feature, "get-mark")) {
                                                 ^
/datasets/git/builtin/fast-import.c:3413:43: note: clone 2 starts here
        } else if (!strcmp(feature, "cat-blob")) {
                                                 ^
/datasets/git/builtin/fast-import.c:3423:66: note: clone 3 starts here
        } else if (!strcmp(feature, "notes") || !strcmp(feature, "ls")) {
                                                                        ^
/datasets/git/builtin/fast-import.c:3434:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (seen_data_command)
                              ^
                               {
/datasets/git/builtin/fast-import.c:3437:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_one_feature(feature, 1))
                                          ^
                                           {
/datasets/git/builtin/fast-import.c:3445:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (seen_data_command)
                              ^
                               {
/datasets/git/builtin/fast-import.c:3448:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_one_option(option))
                                     ^
                                      {
/datasets/git/builtin/fast-import.c:3456:6: warning: variable 'indexversion_value' is not initialized [cppcoreguidelines-init-variables]
        int indexversion_value;
            ^
                               = 0
/datasets/git/builtin/fast-import.c:3457:6: warning: variable 'limit' is not initialized [cppcoreguidelines-init-variables]
        int limit;
            ^
                  = 0
/datasets/git/builtin/fast-import.c:3458:16: warning: variable 'packsizelimit_value' is not initialized [cppcoreguidelines-init-variables]
        unsigned long packsizelimit_value;
                      ^
                                          = 0
/datasets/git/builtin/fast-import.c:3461:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (max_depth > MAX_DEPTH)
                                ^
/datasets/git/builtin/fast-import.c:27:21: note: expanded from macro 'MAX_DEPTH'
#define MAX_DEPTH ((1<<DEPTH_BITS)-1)
                    ^
/datasets/git/builtin/fast-import.c:3461:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (max_depth > MAX_DEPTH)
                                          ^
                                           {
/datasets/git/builtin/fast-import.c:3462:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        max_depth = MAX_DEPTH;
                                    ^
/datasets/git/builtin/fast-import.c:27:21: note: expanded from macro 'MAX_DEPTH'
#define MAX_DEPTH ((1<<DEPTH_BITS)-1)
                    ^
/datasets/git/builtin/fast-import.c:3466:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pack_idx_opts.version > 2)
                                              ^
                                               {
/datasets/git/builtin/fast-import.c:3470:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!git_config_get_ulong("pack.packsizelimit", &packsizelimit_value))
                                                                              ^
                                                                               {
/datasets/git/builtin/fast-import.c:3471:18: warning: narrowing conversion from 'unsigned long' to signed type 'off_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                max_packsize = packsizelimit_value;
                               ^
/datasets/git/builtin/fast-import.c:3473:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!git_config_get_int("fastimport.unpacklimit", &limit))
                                                                  ^
                                                                   {
/datasets/git/builtin/fast-import.c:3474:3: warning: repeated branch in conditional chain [bugprone-branch-clone]
                unpack_limit = limit;
                ^
/datasets/git/builtin/fast-import.c:3474:23: note: end of the original
                unpack_limit = limit;
                                    ^
/datasets/git/builtin/fast-import.c:3476:3: note: clone 1 starts here
                unpack_limit = limit;
                ^
/datasets/git/builtin/fast-import.c:3475:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!git_config_get_int("transfer.unpacklimit", &limit))
                                                                     ^
                                                                      {
/datasets/git/builtin/fast-import.c:3486:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i;
                     ^
                       = 0
/datasets/git/builtin/fast-import.c:3486:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:3488:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 1; i < global_argc; i++) {
        ^
/datasets/git/builtin/fast-import.c:3489:15: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
                const char *a = global_argv[i];
                            ^
/datasets/git/builtin/fast-import.c:3491:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*a != '-' || !strcmp(a, "--"))
                                                  ^
                                                   {
/datasets/git/builtin/fast-import.c:3494:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!skip_prefix(a, "--", &a))
                                              ^
                                               {
/datasets/git/builtin/fast-import.c:3497:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (parse_one_option(a))
                                        ^
                                         {
/datasets/git/builtin/fast-import.c:3500:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (parse_one_feature(a, 0))
                                            ^
                                             {
/datasets/git/builtin/fast-import.c:3510:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (i != global_argc)
                             ^
                              {
/datasets/git/builtin/fast-import.c:3514:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (import_marks_file)
                              ^
                               {
/datasets/git/builtin/fast-import.c:3519:5: warning: function 'cmd_fast_import' has cognitive complexity of 38 (threshold 25) [readability-function-cognitive-complexity]
int cmd_fast_import(int argc, const char **argv, const char *prefix)
    ^
/datasets/git/builtin/fast-import.c:3523:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (argc == 2 && !strcmp(argv[1], "-h"))
        ^
/datasets/git/builtin/fast-import.c:3523:16: note: +1
        if (argc == 2 && !strcmp(argv[1], "-h"))
                      ^
/datasets/git/builtin/fast-import.c:3544:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 1; i < argc; i++) {
        ^
/datasets/git/builtin/fast-import.c:3546:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*arg != '-' || !strcmp(arg, "--"))
                ^
/datasets/git/builtin/fast-import.c:3546:19: note: +1
                if (*arg != '-' || !strcmp(arg, "--"))
                                ^
/datasets/git/builtin/fast-import.c:3548:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(arg, "--allow-unsafe-features"))
                ^
/datasets/git/builtin/fast-import.c:3556:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < (cmd_save - 1); i++)
        ^
/datasets/git/builtin/fast-import.c:3563:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (read_next_command() != EOF) {
        ^
/datasets/git/builtin/fast-import.c:3565:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp("blob", command_buf.buf))
                ^
/datasets/git/builtin/fast-import.c:3567:8: note: +1, nesting level increased to 2
                else if (skip_prefix(command_buf.buf, "commit ", &v))
                     ^
/datasets/git/builtin/fast-import.c:3569:8: note: +1, nesting level increased to 2
                else if (skip_prefix(command_buf.buf, "tag ", &v))
                     ^
/datasets/git/builtin/fast-import.c:3571:8: note: +1, nesting level increased to 2
                else if (skip_prefix(command_buf.buf, "reset ", &v))
                     ^
/datasets/git/builtin/fast-import.c:3573:8: note: +1, nesting level increased to 2
                else if (skip_prefix(command_buf.buf, "ls ", &v))
                     ^
/datasets/git/builtin/fast-import.c:3575:8: note: +1, nesting level increased to 2
                else if (skip_prefix(command_buf.buf, "cat-blob ", &v))
                     ^
/datasets/git/builtin/fast-import.c:3577:8: note: +1, nesting level increased to 2
                else if (skip_prefix(command_buf.buf, "get-mark ", &v))
                     ^
/datasets/git/builtin/fast-import.c:3579:8: note: +1, nesting level increased to 2
                else if (!strcmp("checkpoint", command_buf.buf))
                     ^
/datasets/git/builtin/fast-import.c:3581:8: note: +1, nesting level increased to 2
                else if (!strcmp("done", command_buf.buf))
                     ^
/datasets/git/builtin/fast-import.c:3583:8: note: +1, nesting level increased to 2
                else if (!strcmp("alias", command_buf.buf))
                     ^
/datasets/git/builtin/fast-import.c:3585:8: note: +1, nesting level increased to 2
                else if (starts_with(command_buf.buf, "progress "))
                     ^
/datasets/git/builtin/fast-import.c:3587:8: note: +1, nesting level increased to 2
                else if (skip_prefix(command_buf.buf, "feature ", &v))
                     ^
/datasets/git/builtin/fast-import.c:3589:8: note: +1, nesting level increased to 2
                else if (skip_prefix(command_buf.buf, "option git ", &v))
                     ^
/datasets/git/builtin/fast-import.c:3591:8: note: +1, nesting level increased to 2
                else if (starts_with(command_buf.buf, "option "))
                     ^
/datasets/git/builtin/fast-import.c:3593:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/fast-import.c:3596:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (checkpoint_requested)
                ^
/datasets/git/builtin/fast-import.c:3601:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!seen_data_command)
        ^
/datasets/git/builtin/fast-import.c:3604:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (require_explicit_termination && feof(stdin))
        ^
/datasets/git/builtin/fast-import.c:3604:35: note: +1
        if (require_explicit_termination && feof(stdin))
                                         ^
/datasets/git/builtin/fast-import.c:3614:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (pack_edges)
        ^
/datasets/git/builtin/fast-import.c:3617:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (show_stats) {
        ^
/datasets/git/builtin/fast-import.c:3619:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < ARRAY_SIZE(object_count_by_type); i++)
                ^
/datasets/git/builtin/fast-import.c:3621:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < ARRAY_SIZE(duplicate_count_by_type); i++)
                ^
/datasets/git/builtin/fast-import.c:3644:17: note: +1, including nesting penalty of 0, nesting level increased to 1
        return failure ? 1 : 0;
                       ^
/datasets/git/builtin/fast-import.c:3519:62: warning: parameter 'prefix' is unused [misc-unused-parameters]
int cmd_fast_import(int argc, const char **argv, const char *prefix)
                                                             ^
/datasets/git/builtin/fast-import.c:3521:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i;
                     ^
                       = 0
/datasets/git/builtin/fast-import.c:3521:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:3523:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc == 2 && !strcmp(argv[1], "-h"))
                                                ^
                                                 {
/datasets/git/builtin/fast-import.c:3531:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        CALLOC_ARRAY(atom_table, atom_table_sz);
        ^
/datasets/git/./git-compat-util.h:1091:55: note: expanded from macro 'CALLOC_ARRAY'
#define CALLOC_ARRAY(x, alloc) (x) = xcalloc((alloc), sizeof(*(x)))
                                                      ^
/datasets/git/builtin/fast-import.c:3532:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        CALLOC_ARRAY(branch_table, branch_table_sz);
        ^
/datasets/git/./git-compat-util.h:1091:55: note: expanded from macro 'CALLOC_ARRAY'
#define CALLOC_ARRAY(x, alloc) (x) = xcalloc((alloc), sizeof(*(x)))
                                                      ^
/datasets/git/builtin/fast-import.c:3533:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        CALLOC_ARRAY(avail_tree_table, avail_tree_table_sz);
        ^
/datasets/git/./git-compat-util.h:1091:55: note: expanded from macro 'CALLOC_ARRAY'
#define CALLOC_ARRAY(x, alloc) (x) = xcalloc((alloc), sizeof(*(x)))
                                                      ^
/datasets/git/builtin/fast-import.c:3544:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 1; i < argc; i++) {
        ^
/datasets/git/builtin/fast-import.c:3546:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*arg != '-' || !strcmp(arg, "--"))
                                                      ^
                                                       {
/datasets/git/builtin/fast-import.c:3548:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(arg, "--allow-unsafe-features"))
                                                            ^
                                                             {
/datasets/git/builtin/fast-import.c:3556:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < (cmd_save - 1); i++)
        ^
/datasets/git/builtin/fast-import.c:3556:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < (cmd_save - 1); i++)
                                            ^
                                             {
/datasets/git/builtin/fast-import.c:3563:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (read_next_command() != EOF) {
        ^
/datasets/git/builtin/fast-import.c:3564:15: warning: variable 'v' is not initialized [cppcoreguidelines-init-variables]
                const char *v;
                            ^
                              = NULL
/datasets/git/builtin/fast-import.c:3564:15: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fast-import.c:3565:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp("blob", command_buf.buf))
                                                     ^
                                                      {
/datasets/git/builtin/fast-import.c:3567:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (skip_prefix(command_buf.buf, "commit ", &v))
                                                                     ^
                                                                      {
/datasets/git/builtin/fast-import.c:3569:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (skip_prefix(command_buf.buf, "tag ", &v))
                                                                  ^
                                                                   {
/datasets/git/builtin/fast-import.c:3571:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (skip_prefix(command_buf.buf, "reset ", &v))
                                                                    ^
                                                                     {
/datasets/git/builtin/fast-import.c:3573:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (skip_prefix(command_buf.buf, "ls ", &v))
                                                                 ^
                                                                  {
/datasets/git/builtin/fast-import.c:3575:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (skip_prefix(command_buf.buf, "cat-blob ", &v))
                                                                       ^
                                                                        {
/datasets/git/builtin/fast-import.c:3577:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (skip_prefix(command_buf.buf, "get-mark ", &v))
                                                                       ^
                                                                        {
/datasets/git/builtin/fast-import.c:3579:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp("checkpoint", command_buf.buf))
                                                                ^
                                                                 {
/datasets/git/builtin/fast-import.c:3581:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp("done", command_buf.buf))
                                                          ^
                                                           {
/datasets/git/builtin/fast-import.c:3583:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp("alias", command_buf.buf))
                                                           ^
                                                            {
/datasets/git/builtin/fast-import.c:3585:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (starts_with(command_buf.buf, "progress "))
                                                                   ^
                                                                    {
/datasets/git/builtin/fast-import.c:3587:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (skip_prefix(command_buf.buf, "feature ", &v))
                                                                      ^
                                                                       {
/datasets/git/builtin/fast-import.c:3589:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (skip_prefix(command_buf.buf, "option git ", &v))
                                                                         ^
                                                                          {
/datasets/git/builtin/fast-import.c:3591:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (starts_with(command_buf.buf, "option "))
                                                                 ^
                                                                  {
/datasets/git/builtin/fast-import.c:3593:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/fast-import.c:3596:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (checkpoint_requested)
                                         ^
                                          {
/datasets/git/builtin/fast-import.c:3601:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!seen_data_command)
                               ^
                                {
/datasets/git/builtin/fast-import.c:3604:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (require_explicit_termination && feof(stdin))
                                                        ^
                                                         {
/datasets/git/builtin/fast-import.c:3614:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pack_edges)
                       ^
                        {
/datasets/git/builtin/fast-import.c:3615:3: warning: the value returned by this function should be used [cert-err33-c]
                fclose(pack_edges);
                ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:3615:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:3618:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                uintmax_t total_count = 0, duplicate_count = 0;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:3619:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < ARRAY_SIZE(object_count_by_type); i++)
                ^
/datasets/git/builtin/fast-import.c:3619:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < ARRAY_SIZE(object_count_by_type); i++)
                                                                      ^
                                                                       {
/datasets/git/builtin/fast-import.c:3621:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < ARRAY_SIZE(duplicate_count_by_type); i++)
                ^
/datasets/git/builtin/fast-import.c:3621:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < ARRAY_SIZE(duplicate_count_by_type); i++)
                                                                         ^
                                                                          {
/datasets/git/builtin/fast-import.c:3624:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "%s statistics:\n", argv[0]);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:3624:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:3625:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "---------------------------------------------------------------------\n");
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:3625:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:3626:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "Alloc'd objects: %10" PRIuMAX "\n", alloc_count);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:3626:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:3627:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "Total objects:   %10" PRIuMAX " (%10" PRIuMAX " duplicates                  )\n", total_count, duplicate_count);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:3627:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:3628:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "      blobs  :   %10" PRIuMAX " (%10" PRIuMAX " duplicates %10" PRIuMAX " deltas of %10" PRIuMAX" attempts)\n", object_count_by_type[OBJ_BLOB], duplicate_count_by_type[OBJ_BLOB], delta_count_by_type[OBJ_BLOB], delta_count_attempts_by_type[OBJ_BLOB]);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:3628:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:3629:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "      trees  :   %10" PRIuMAX " (%10" PRIuMAX " duplicates %10" PRIuMAX " deltas of %10" PRIuMAX" attempts)\n", object_count_by_type[OBJ_TREE], duplicate_count_by_type[OBJ_TREE], delta_count_by_type[OBJ_TREE], delta_count_attempts_by_type[OBJ_TREE]);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:3629:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:3630:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "      commits:   %10" PRIuMAX " (%10" PRIuMAX " duplicates %10" PRIuMAX " deltas of %10" PRIuMAX" attempts)\n", object_count_by_type[OBJ_COMMIT], duplicate_count_by_type[OBJ_COMMIT], delta_count_by_type[OBJ_COMMIT], delta_count_attempts_by_type[OBJ_COMMIT]);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:3630:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:3631:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "      tags   :   %10" PRIuMAX " (%10" PRIuMAX " duplicates %10" PRIuMAX " deltas of %10" PRIuMAX" attempts)\n", object_count_by_type[OBJ_TAG], duplicate_count_by_type[OBJ_TAG], delta_count_by_type[OBJ_TAG], delta_count_attempts_by_type[OBJ_TAG]);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:3631:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:3632:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "Total branches:  %10lu (%10lu loads     )\n", branch_count, branch_load_count);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:3632:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:3633:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "      marks:     %10" PRIuMAX " (%10" PRIuMAX " unique    )\n", (((uintmax_t)1) << marks->shift) * 1024, marks_set_count);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:3633:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:3633:119: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                fprintf(stderr, "      marks:     %10" PRIuMAX " (%10" PRIuMAX " unique    )\n", (((uintmax_t)1) << marks->shift) * 1024, marks_set_count);
                                                                                                                                    ^
/datasets/git/builtin/fast-import.c:3634:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "      atoms:     %10u\n", atom_cnt);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:3634:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:3635:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "Memory total:    %10" PRIuMAX " KiB\n", (tree_entry_allocd + fi_mem_pool.pool_alloc + alloc_count*sizeof(struct object_entry))/1024);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:3635:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:3635:147: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                fprintf(stderr, "Memory total:    %10" PRIuMAX " KiB\n", (tree_entry_allocd + fi_mem_pool.pool_alloc + alloc_count*sizeof(struct object_entry))/1024);
                                                                                                                                                                ^
/datasets/git/builtin/fast-import.c:3636:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "       pools:    %10lu KiB\n", (unsigned long)((tree_entry_allocd + fi_mem_pool.pool_alloc) /1024));
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:3636:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:3636:51: warning: redundant cast to the same type [google-readability-casting]
                fprintf(stderr, "       pools:    %10lu KiB\n", (unsigned long)((tree_entry_allocd + fi_mem_pool.pool_alloc) /1024));
                                                                ^~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:3636:113: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                fprintf(stderr, "       pools:    %10lu KiB\n", (unsigned long)((tree_entry_allocd + fi_mem_pool.pool_alloc) /1024));
                                                                                                                              ^
/datasets/git/builtin/fast-import.c:3637:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "     objects:    %10" PRIuMAX " KiB\n", (alloc_count*sizeof(struct object_entry))/1024);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:3637:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:3637:102: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                fprintf(stderr, "     objects:    %10" PRIuMAX " KiB\n", (alloc_count*sizeof(struct object_entry))/1024);
                                                                                                                   ^
/datasets/git/builtin/fast-import.c:3638:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "---------------------------------------------------------------------\n");
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:3638:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:3640:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "---------------------------------------------------------------------\n");
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:3640:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/fast-import.c:3641:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "\n");
                ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fast-import.c:3641:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/fetch-pack.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "pkt-line.h"
^        ~~~~~~~~~~~~
         "connect.h"
/datasets/git/builtin/fetch-pack.c:14:57: warning: parameter name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
static void add_sought_entry(struct ref ***sought, int *nr, int *alloc,
                                                        ^
/datasets/git/builtin/fetch-pack.c:17:14: warning: variable 'ref' is not initialized [cppcoreguidelines-init-variables]
        struct ref *ref;
                    ^
                        = NULL
/datasets/git/builtin/fetch-pack.c:19:14: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        const char *p;
                    ^
                      = NULL
/datasets/git/builtin/fetch-pack.c:19:14: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fetch-pack.c:39:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(*sought, *nr, *alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/builtin/fetch-pack.c:39:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_GROW(*sought, *nr, *alloc);
        ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/builtin/fetch-pack.c:43:5: warning: function 'cmd_fetch_pack' has cognitive complexity of 89 (threshold 25) [readability-function-cognitive-complexity]
int cmd_fetch_pack(int argc, const char **argv, const char *prefix)
    ^
/datasets/git/builtin/fetch-pack.c:68:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 1; i < argc && *argv[i] == '-'; i++) {
        ^
/datasets/git/builtin/fetch-pack.c:68:23: note: +1
        for (i = 1; i < argc && *argv[i] == '-'; i++) {
                             ^
/datasets/git/builtin/fetch-pack.c:71:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (skip_prefix(arg, "--upload-pack=", &arg)) {
                ^
/datasets/git/builtin/fetch-pack.c:75:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (skip_prefix(arg, "--exec=", &arg)) {
                ^
/datasets/git/builtin/fetch-pack.c:79:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp("--quiet", arg) || !strcmp("-q", arg)) {
                ^
/datasets/git/builtin/fetch-pack.c:79:31: note: +1
                if (!strcmp("--quiet", arg) || !strcmp("-q", arg)) {
                                            ^
/datasets/git/builtin/fetch-pack.c:83:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp("--keep", arg) || !strcmp("-k", arg)) {
                ^
/datasets/git/builtin/fetch-pack.c:83:30: note: +1
                if (!strcmp("--keep", arg) || !strcmp("-k", arg)) {
                                           ^
/datasets/git/builtin/fetch-pack.c:88:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp("--thin", arg)) {
                ^
/datasets/git/builtin/fetch-pack.c:92:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp("--include-tag", arg)) {
                ^
/datasets/git/builtin/fetch-pack.c:96:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp("--all", arg)) {
                ^
/datasets/git/builtin/fetch-pack.c:100:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp("--stdin", arg)) {
                ^
/datasets/git/builtin/fetch-pack.c:104:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp("--diag-url", arg)) {
                ^
/datasets/git/builtin/fetch-pack.c:108:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp("-v", arg)) {
                ^
/datasets/git/builtin/fetch-pack.c:112:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (skip_prefix(arg, "--depth=", &arg)) {
                ^
/datasets/git/builtin/fetch-pack.c:116:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (skip_prefix(arg, "--shallow-since=", &arg)) {
                ^
/datasets/git/builtin/fetch-pack.c:120:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (skip_prefix(arg, "--shallow-exclude=", &arg)) {
                ^
/datasets/git/builtin/fetch-pack.c:124:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(arg, "--deepen-relative")) {
                ^
/datasets/git/builtin/fetch-pack.c:128:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp("--no-progress", arg)) {
                ^
/datasets/git/builtin/fetch-pack.c:132:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp("--stateless-rpc", arg)) {
                ^
/datasets/git/builtin/fetch-pack.c:136:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp("--lock-pack", arg)) {
                ^
/datasets/git/builtin/fetch-pack.c:141:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp("--check-self-contained-and-connected", arg)) {
                ^
/datasets/git/builtin/fetch-pack.c:145:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp("--cloning", arg)) {
                ^
/datasets/git/builtin/fetch-pack.c:149:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp("--update-shallow", arg)) {
                ^
/datasets/git/builtin/fetch-pack.c:153:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp("--from-promisor", arg)) {
                ^
/datasets/git/builtin/fetch-pack.c:157:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp("--refetch", arg)) {
                ^
/datasets/git/builtin/fetch-pack.c:161:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (skip_prefix(arg, ("--filter="), &arg)) {
                ^
/datasets/git/builtin/fetch-pack.c:165:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(arg, ("--no-filter"))) {
                ^
/datasets/git/builtin/fetch-pack.c:171:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (deepen_not.nr)
        ^
/datasets/git/builtin/fetch-pack.c:174:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (i < argc)
        ^
/datasets/git/builtin/fetch-pack.c:176:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/builtin/fetch-pack.c:183:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (; i < argc; i++)
        ^
/datasets/git/builtin/fetch-pack.c:185:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (args.stdin_refs) {
        ^
/datasets/git/builtin/fetch-pack.c:186:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (args.stateless_rpc) {
                ^
/datasets/git/builtin/fetch-pack.c:190:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (;;) {
                        ^
/datasets/git/builtin/fetch-pack.c:192:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!line)
                                ^
/datasets/git/builtin/fetch-pack.c:197:3: note: +1, nesting level increased to 2
                else {
                ^
/datasets/git/builtin/fetch-pack.c:200:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (strbuf_getline_lf(&line, stdin) != EOF)
                        ^
/datasets/git/builtin/fetch-pack.c:206:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (args.stateless_rpc) {
        ^
/datasets/git/builtin/fetch-pack.c:210:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/fetch-pack.c:211:28: note: +2, including nesting penalty of 1, nesting level increased to 2
                int flags = args.verbose ? CONNECT_VERBOSE : 0;
                                         ^
/datasets/git/builtin/fetch-pack.c:212:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (args.diag_url)
                ^
/datasets/git/builtin/fetch-pack.c:216:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!conn)
                ^
/datasets/git/builtin/fetch-pack.c:217:25: note: +3, including nesting penalty of 2, nesting level increased to 3
                        return args.diag_url ? 0 : 1;
                                             ^
/datasets/git/builtin/fetch-pack.c:226:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        switch (version) {
        ^
/datasets/git/builtin/fetch-pack.c:241:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (pack_lockfiles.nr) {
        ^
/datasets/git/builtin/fetch-pack.c:246:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 1; i < pack_lockfiles.nr; i++)
                ^
/datasets/git/builtin/fetch-pack.c:250:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (args.check_self_contained_and_connected &&
        ^
/datasets/git/builtin/fetch-pack.c:250:46: note: +1
        if (args.check_self_contained_and_connected &&
                                                    ^
/datasets/git/builtin/fetch-pack.c:257:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (finish_connect(conn))
        ^
/datasets/git/builtin/fetch-pack.c:270:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (ref) {
        ^
/datasets/git/builtin/fetch-pack.c:43:61: warning: parameter 'prefix' is unused [misc-unused-parameters]
int cmd_fetch_pack(int argc, const char **argv, const char *prefix)
                                                            ^
/datasets/git/builtin/fetch-pack.c:45:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, ret;
        ^~~~~~~~~~~
/datasets/git/builtin/fetch-pack.c:45:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, ret;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fetch-pack.c:45:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fetch-pack.c:45:9: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int i, ret;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fetch-pack.c:49:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int nr_sought = 0, alloc_sought = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch-pack.c:50:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
        int fd[2];
            ^
/datasets/git/builtin/fetch-pack.c:53:24: warning: variable 'conn' is not initialized [cppcoreguidelines-init-variables]
        struct child_process *conn;
                              ^
                                   = NULL
/datasets/git/builtin/fetch-pack.c:58:24: warning: variable 'version' is not initialized [cppcoreguidelines-init-variables]
        enum protocol_version version;
                              ^
/datasets/git/builtin/fetch-pack.c:64:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&args, 0, sizeof(args));
        ^~~~~~
/datasets/git/builtin/fetch-pack.c:64:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&args, 0, sizeof(args));
        ^~~~~~
/datasets/git/builtin/fetch-pack.c:68:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 1; i < argc && *argv[i] == '-'; i++) {
        ^
/datasets/git/builtin/fetch-pack.c:113:17: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        args.depth = strtol(arg, NULL, 0);
                                     ^
/datasets/git/builtin/fetch-pack.c:171:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (deepen_not.nr)
                          ^
                           {
/datasets/git/builtin/fetch-pack.c:174:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (i < argc)
                     ^
                      {
/datasets/git/builtin/fetch-pack.c:176:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/fetch-pack.c:183:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; i < argc; i++)
        ^
/datasets/git/builtin/fetch-pack.c:183:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (; i < argc; i++)
                             ^
                              {
/datasets/git/builtin/fetch-pack.c:190:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (;;) {
                        ^
/datasets/git/builtin/fetch-pack.c:192:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!line)
                                          ^
                                           {
/datasets/git/builtin/fetch-pack.c:200:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (strbuf_getline_lf(&line, stdin) != EOF)
                        ^
/datasets/git/builtin/fetch-pack.c:200:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'line' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (strbuf_getline_lf(&line, stdin) != EOF)
                               ^
/datasets/git/builtin/fetch-pack.c:200:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        while (strbuf_getline_lf(&line, stdin) != EOF)
                                                                      ^
                                                                       {
/datasets/git/builtin/fetch-pack.c:211:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                int flags = args.verbose ? CONNECT_VERBOSE : 0;
                                           ^
/datasets/git/./connect.h:6:32: note: expanded from macro 'CONNECT_VERBOSE'
#define CONNECT_VERBOSE       (1u << 0)
                               ^     ~
/datasets/git/builtin/fetch-pack.c:212:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (args.diag_url)
                                  ^
                                   {
/datasets/git/builtin/fetch-pack.c:213:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        flags |= CONNECT_DIAG_URL;
                        ^~~~~
/datasets/git/builtin/fetch-pack.c:213:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        flags |= CONNECT_DIAG_URL;
                                 ^
/datasets/git/./connect.h:7:32: note: expanded from macro 'CONNECT_DIAG_URL'
#define CONNECT_DIAG_URL      (1u << 1)
                               ^     ~
/datasets/git/builtin/fetch-pack.c:216:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!conn)
                          ^
                           {
/datasets/git/builtin/fetch-pack.c:221:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                           PACKET_READ_CHOMP_NEWLINE |
                           ^
/datasets/git/./pkt-line.h:85:43: note: expanded from macro 'PACKET_READ_CHOMP_NEWLINE'
#define PACKET_READ_CHOMP_NEWLINE        (1u<<1)
                                          ^   ~
/datasets/git/builtin/fetch-pack.c:222:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                           PACKET_READ_GENTLE_ON_EOF |
                           ^
/datasets/git/./pkt-line.h:84:43: note: expanded from macro 'PACKET_READ_GENTLE_ON_EOF'
#define PACKET_READ_GENTLE_ON_EOF        (1u<<0)
                                          ^   ~
/datasets/git/builtin/fetch-pack.c:223:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                           PACKET_READ_DIE_ON_ERR_PACKET);
                           ^
/datasets/git/./pkt-line.h:86:43: note: expanded from macro 'PACKET_READ_DIE_ON_ERR_PACKET'
#define PACKET_READ_DIE_ON_ERR_PACKET    (1u<<2)
                                          ^   ~
/datasets/git/builtin/fetch-pack.c:226:2: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
        switch (version) {
        ^
/datasets/git/builtin/fetch-pack.c:242:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/builtin/fetch-pack.c:242:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fetch-pack.c:245:3: warning: the value returned by this function should be used [cert-err33-c]
                fflush(stdout);
                ^~~~~~~~~~~~~~
/datasets/git/builtin/fetch-pack.c:245:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/fetch-pack.c:246:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 1; i < pack_lockfiles.nr; i++)
                ^
/datasets/git/builtin/fetch-pack.c:246:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 1; i < pack_lockfiles.nr; i++)
                                                       ^
                                                        {
/datasets/git/builtin/fetch-pack.c:253:3: warning: the value returned by this function should be used [cert-err33-c]
                fflush(stdout);
                ^~~~~~~~~~~~~~
/datasets/git/builtin/fetch-pack.c:253:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/fetch-pack.c:257:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (finish_connect(conn))
                                 ^
                                  {
/datasets/git/builtin/fetch-pack.c:268:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ret |= report_unmatched_refs(sought, nr_sought);
        ^~~
/datasets/git/builtin/fetch-pack.c:46:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct ref *ref = NULL;
        ^
/datasets/git/builtin/fetch-pack.c:270:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (ref) {
        ^
/datasets/git/builtin/fetch-pack.c:270:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (ref) {
               ^
/datasets/git/builtin/fetch.c:5:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "branch.h"
/datasets/git/builtin/fetch.c:33:1: warning: replace macro with enum [modernize-macro-to-enum]
#define FORCED_UPDATES_DELAY_WARNING_IN_MS (10 * 1000)
^~~~~~~~
                                           =
/datasets/git/builtin/fetch.c:33:9: warning: macro 'FORCED_UPDATES_DELAY_WARNING_IN_MS' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define FORCED_UPDATES_DELAY_WARNING_IN_MS (10 * 1000)
        ^
/datasets/git/builtin/fetch.c:49:12: warning: variable 'fetch_prune_config' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int fetch_prune_config = -1; /* unspecified */
           ^
/datasets/git/builtin/fetch.c:50:12: warning: variable 'fetch_show_forced_updates' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int fetch_show_forced_updates = 1;
           ^
/datasets/git/builtin/fetch.c:51:17: warning: variable 'forced_updates_ms' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static uint64_t forced_updates_ms = 0;
                ^
/datasets/git/builtin/fetch.c:52:12: warning: variable 'prefetch' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int prefetch = 0;
           ^
/datasets/git/builtin/fetch.c:53:12: warning: variable 'prune' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int prune = -1; /* unspecified */
           ^
/datasets/git/builtin/fetch.c:54:1: warning: replace macro with enum [modernize-macro-to-enum]
#define PRUNE_BY_DEFAULT 0 /* do we prune by default? */
^~~~~~~~
                         =
/datasets/git/builtin/fetch.c:54:9: warning: macro 'PRUNE_BY_DEFAULT' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define PRUNE_BY_DEFAULT 0 /* do we prune by default? */
        ^
/datasets/git/builtin/fetch.c:56:12: warning: variable 'fetch_prune_tags_config' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int fetch_prune_tags_config = -1; /* unspecified */
           ^
/datasets/git/builtin/fetch.c:57:12: warning: variable 'prune_tags' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int prune_tags = -1; /* unspecified */
           ^
/datasets/git/builtin/fetch.c:58:1: warning: replace macro with enum [modernize-macro-to-enum]
#define PRUNE_TAGS_BY_DEFAULT 0 /* do we prune tags by default? */
^~~~~~~~
                              =
/datasets/git/builtin/fetch.c:58:9: warning: macro 'PRUNE_TAGS_BY_DEFAULT' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define PRUNE_TAGS_BY_DEFAULT 0 /* do we prune tags by default? */
        ^
/datasets/git/builtin/fetch.c:60:12: warning: variable 'all' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int all, append, dry_run, force, keep, multiple, update_head_ok;
           ^
/datasets/git/builtin/fetch.c:60:17: warning: variable 'append' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int all, append, dry_run, force, keep, multiple, update_head_ok;
                ^
/datasets/git/builtin/fetch.c:60:25: warning: variable 'dry_run' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int all, append, dry_run, force, keep, multiple, update_head_ok;
                        ^
/datasets/git/builtin/fetch.c:60:34: warning: variable 'force' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int all, append, dry_run, force, keep, multiple, update_head_ok;
                                 ^
/datasets/git/builtin/fetch.c:60:41: warning: variable 'keep' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int all, append, dry_run, force, keep, multiple, update_head_ok;
                                        ^
/datasets/git/builtin/fetch.c:60:47: warning: variable 'multiple' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int all, append, dry_run, force, keep, multiple, update_head_ok;
                                              ^
/datasets/git/builtin/fetch.c:60:57: warning: variable 'update_head_ok' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int all, append, dry_run, force, keep, multiple, update_head_ok;
                                                        ^
/datasets/git/builtin/fetch.c:61:12: warning: variable 'write_fetch_head' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int write_fetch_head = 1;
           ^
/datasets/git/builtin/fetch.c:62:12: warning: variable 'verbosity' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int verbosity, deepen_relative, set_upstream, refetch;
           ^
/datasets/git/builtin/fetch.c:62:23: warning: variable 'deepen_relative' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int verbosity, deepen_relative, set_upstream, refetch;
                      ^
/datasets/git/builtin/fetch.c:62:40: warning: variable 'set_upstream' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int verbosity, deepen_relative, set_upstream, refetch;
                                       ^
/datasets/git/builtin/fetch.c:62:54: warning: variable 'refetch' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int verbosity, deepen_relative, set_upstream, refetch;
                                                     ^
/datasets/git/builtin/fetch.c:63:12: warning: variable 'progress' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int progress = -1;
           ^
/datasets/git/builtin/fetch.c:64:12: warning: variable 'enable_auto_gc' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int enable_auto_gc = 1;
           ^
/datasets/git/builtin/fetch.c:65:12: warning: variable 'tags' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int tags = TAGS_DEFAULT, unshallow, update_shallow, deepen;
           ^
/datasets/git/builtin/fetch.c:65:33: warning: variable 'unshallow' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int tags = TAGS_DEFAULT, unshallow, update_shallow, deepen;
                                ^
/datasets/git/builtin/fetch.c:65:44: warning: variable 'update_shallow' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int tags = TAGS_DEFAULT, unshallow, update_shallow, deepen;
                                           ^
/datasets/git/builtin/fetch.c:65:60: warning: variable 'deepen' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int tags = TAGS_DEFAULT, unshallow, update_shallow, deepen;
                                                           ^
/datasets/git/builtin/fetch.c:66:12: warning: variable 'max_jobs' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int max_jobs = -1, submodule_fetch_jobs_config = -1;
           ^
/datasets/git/builtin/fetch.c:66:27: warning: variable 'submodule_fetch_jobs_config' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int max_jobs = -1, submodule_fetch_jobs_config = -1;
                          ^
/datasets/git/builtin/fetch.c:67:12: warning: variable 'fetch_parallel_config' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int fetch_parallel_config = 1;
           ^
/datasets/git/builtin/fetch.c:68:12: warning: variable 'atomic_fetch' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int atomic_fetch;
           ^
/datasets/git/builtin/fetch.c:69:30: warning: variable 'family' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static enum transport_family family;
                             ^
/datasets/git/builtin/fetch.c:70:20: warning: variable 'depth' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *depth;
                   ^
/datasets/git/builtin/fetch.c:71:20: warning: variable 'deepen_since' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *deepen_since;
                   ^
/datasets/git/builtin/fetch.c:72:20: warning: variable 'upload_pack' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *upload_pack;
                   ^
/datasets/git/builtin/fetch.c:73:27: warning: variable 'deepen_not' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct string_list deepen_not = STRING_LIST_INIT_NODUP;
                          ^
/datasets/git/builtin/fetch.c:74:22: warning: variable 'default_rla' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct strbuf default_rla = STRBUF_INIT;
                     ^
/datasets/git/builtin/fetch.c:74:22: warning: initializing non-local variable with non-const expression depending on uninitialized non-local variable 'strbuf_slopbuf' [cppcoreguidelines-interfaces-global-init]
/datasets/git/builtin/fetch.c:75:26: warning: variable 'gtransport' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct transport *gtransport;
                         ^
/datasets/git/builtin/fetch.c:75:26: warning: variable 'gtransport' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/fetch.c:76:26: warning: variable 'gsecondary' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct transport *gsecondary;
                         ^
/datasets/git/builtin/fetch.c:76:26: warning: variable 'gsecondary' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/fetch.c:77:20: warning: variable 'submodule_prefix' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *submodule_prefix = "";
                   ^
/datasets/git/builtin/fetch.c:78:12: warning: variable 'recurse_submodules' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int recurse_submodules = RECURSE_SUBMODULES_DEFAULT;
           ^
/datasets/git/builtin/fetch.c:79:12: warning: variable 'recurse_submodules_cli' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int recurse_submodules_cli = RECURSE_SUBMODULES_DEFAULT;
           ^
/datasets/git/builtin/fetch.c:80:12: warning: variable 'recurse_submodules_default' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int recurse_submodules_default = RECURSE_SUBMODULES_ON_DEMAND;
           ^
/datasets/git/builtin/fetch.c:81:12: warning: variable 'shown_url' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int shown_url = 0;
           ^
/datasets/git/builtin/fetch.c:82:23: warning: variable 'refmap' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct refspec refmap = REFSPEC_INIT_FETCH;
                      ^
/datasets/git/builtin/fetch.c:83:43: warning: variable 'filter_options' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct list_objects_filter_options filter_options = LIST_OBJECTS_FILTER_INIT;
                                          ^
/datasets/git/builtin/fetch.c:83:43: warning: initializing non-local variable with non-const expression depending on uninitialized non-local variable 'strbuf_slopbuf' [cppcoreguidelines-interfaces-global-init]
/datasets/git/builtin/fetch.c:84:27: warning: variable 'server_options' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct string_list server_options = STRING_LIST_INIT_DUP;
                          ^
/datasets/git/builtin/fetch.c:85:27: warning: variable 'negotiation_tip' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct string_list negotiation_tip = STRING_LIST_INIT_NODUP;
                          ^
/datasets/git/builtin/fetch.c:86:12: warning: variable 'fetch_write_commit_graph' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int fetch_write_commit_graph = -1;
           ^
/datasets/git/builtin/fetch.c:87:12: warning: variable 'stdin_refspecs' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int stdin_refspecs = 0;
           ^
/datasets/git/builtin/fetch.c:88:12: warning: variable 'negotiate_only' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int negotiate_only;
           ^
/datasets/git/builtin/fetch.c:90:41: warning: parameter name 'k' is too short, expected at least 3 characters [readability-identifier-length]
static int git_fetch_config(const char *k, const char *v, void *cb)
                                        ^
/datasets/git/builtin/fetch.c:90:56: warning: parameter name 'v' is too short, expected at least 3 characters [readability-identifier-length]
static int git_fetch_config(const char *k, const char *v, void *cb)
                                                       ^
/datasets/git/builtin/fetch.c:90:65: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int git_fetch_config(const char *k, const char *v, void *cb)
                                                                ^
/datasets/git/builtin/fetch.c:108:7: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
                int r = git_config_bool(k, v) ?
                    ^
/datasets/git/builtin/fetch.c:116:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else if (!strcmp(k, "fetch.recursesubmodules")) {
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:123:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fetch_parallel_config < 0)
                                              ^
                                               {
/datasets/git/builtin/fetch.c:125:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!fetch_parallel_config)
                                           ^
                                            {
/datasets/git/builtin/fetch.c:133:50: warning: parameter 'opt' is unused [misc-unused-parameters]
static int parse_refmap_arg(const struct option *opt, const char *arg, int unset)
                                                 ^
/datasets/git/builtin/fetch.c:135:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/fetch.c:146:22: warning: variable 'builtin_fetch_options' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct option builtin_fetch_options[] = {
                     ^
/datasets/git/builtin/fetch.c:148:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "all", &all,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:150:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "set-upstream", &set_upstream,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:152:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL('a', "append", &append,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:154:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "atomic", &atomic_fetch,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:158:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT__FORCE(&force, N_("force overwrite of local reference"), 0),
        ^
/datasets/git/./parse-options.h:367:31: note: expanded from macro 'OPT__FORCE'
#define OPT__FORCE(var, h, f) OPT_COUNTUP_F('f', "force",   (var), (h), (f))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:159:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL('m', "multiple", &multiple,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:161:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_SET_INT('t', "tags", &tags,
        ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:163:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_SET_INT('n', NULL, &tags,
        ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:167:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "prefetch", &prefetch,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:169:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL('p', "prune", &prune,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:171:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL('P', "prune-tags", &prune_tags,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:176:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "dry-run", &dry_run,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:178:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "write-fetch-head", &write_fetch_head,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:180:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL('k', "keep", &keep, N_("keep downloaded pack")),
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:181:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL('u', "update-head-ok", &update_head_ok,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:183:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "progress", &progress, N_("force progress reporting")),
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:192:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_SET_INT_F(0, "unshallow", &unshallow,
        ^
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:195:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_SET_INT_F(0, "refetch", &refetch,
        ^
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:205:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "update-shallow", &update_shallow,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:210:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_SET_INT('4', "ipv4", &family, N_("use IPv4 addresses only"),
        ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:212:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_SET_INT('6', "ipv6", &family, N_("use IPv6 addresses only"),
        ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:216:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "negotiate-only", &negotiate_only,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:219:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "auto-maintenance", &enable_auto_gc,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:221:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "auto-gc", &enable_auto_gc,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:223:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "show-forced-updates", &fetch_show_forced_updates,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:225:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "write-commit-graph", &fetch_write_commit_graph,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:227:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "stdin", &stdin_refspecs,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:234:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (gtransport)
                       ^
                        {
/datasets/git/builtin/fetch.c:236:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (gsecondary)
                       ^
                        {
/datasets/git/builtin/fetch.c:247:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unlock_pack(TRANSPORT_UNLOCK_PACK_IN_SIGNAL_HANDLER);
                    ^
/datasets/git/./transport.h:297:50: note: expanded from macro 'TRANSPORT_UNLOCK_PACK_IN_SIGNAL_HANDLER'
#define TRANSPORT_UNLOCK_PACK_IN_SIGNAL_HANDLER (1 << 0)
                                                 ^
/datasets/git/builtin/fetch.c:249:2: warning: the value returned by this function should be used [cert-err33-c]
        raise(signo);
        ^~~~~~~~~~~~
/datasets/git/builtin/fetch.c:249:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/fetch.c:257:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/fetch.c:257:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fetch.c:260:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                struct ref *rm, **old_tail = *tail;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:260:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/builtin/fetch.c:260:15: warning: variable 'rm' is not initialized [cppcoreguidelines-init-variables]
                struct ref *rm, **old_tail = *tail;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fetch.c:260:15: warning: variable name 'rm' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fetch.c:292:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct ref *rm = *head;
        ^
/datasets/git/builtin/fetch.c:263:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (rm = *head; rm; rm = rm->next) {
                ^
/datasets/git/builtin/fetch.c:263:20: warning: backward branch (for loop) is ID-dependent due to variable reference to 'rm' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (rm = *head; rm; rm = rm->next) {
                                 ^
/datasets/git/builtin/fetch.c:269:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (rm)
                       ^
                        {
/datasets/git/builtin/fetch.c:282:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(&refspec, 0, sizeof(refspec));
                ^~~~~~
/datasets/git/builtin/fetch.c:282:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(&refspec, 0, sizeof(refspec));
                ^~~~~~
/datasets/git/builtin/fetch.c:285:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (rm = *old_tail; rm; rm = rm->next)
                ^
/datasets/git/builtin/fetch.c:285:24: warning: backward branch (for loop) is ID-dependent due to variable reference to 'rm' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (rm = *old_tail; rm; rm = rm->next)
                                     ^
/datasets/git/builtin/fetch.c:285:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (rm = *old_tail; rm; rm = rm->next)
                                                       ^
                                                        {
/datasets/git/builtin/fetch.c:292:14: warning: variable name 'rm' is too short, expected at least 3 characters [readability-identifier-length]
        struct ref *rm = *head;
                    ^
/datasets/git/builtin/fetch.c:293:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (rm) {
        ^
/datasets/git/builtin/fetch.c:293:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'rm' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (rm) {
               ^
/datasets/git/builtin/fetch.c:307:7: warning: 2 adjacent parameters of 'refname_hash_entry_cmp' of similar type ('const struct hashmap_entry *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                  const struct hashmap_entry *eptr,
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:307:35: note: the first parameter in the range is 'eptr'
                                  const struct hashmap_entry *eptr,
                                                              ^~~~
/datasets/git/builtin/fetch.c:308:35: note: the last parameter in the range is 'entry_or_key'
                                  const struct hashmap_entry *entry_or_key,
                                                              ^~~~~~~~~~~~
/datasets/git/builtin/fetch.c:311:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const struct refname_hash_entry *e1, *e2;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:311:35: warning: variable 'e1' is not initialized [cppcoreguidelines-init-variables]
        const struct refname_hash_entry *e1, *e2;
                                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fetch.c:311:35: warning: variable name 'e1' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fetch.c:311:40: warning: variable 'e2' is not initialized [cppcoreguidelines-init-variables]
        const struct refname_hash_entry *e1, *e2;
                                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fetch.c:311:40: warning: variable name 'e2' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fetch.c:322:29: warning: variable 'ent' is not initialized [cppcoreguidelines-init-variables]
        struct refname_hash_entry *ent;
                                   ^
                                       = NULL
/datasets/git/builtin/fetch.c:325:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FLEX_ALLOC_MEM(ent, refname, refname, len);
        ^
/datasets/git/./git-compat-util.h:1151:47: note: expanded from macro 'FLEX_ALLOC_MEM'
#define FLEX_ALLOC_MEM(x, flexname, buf, len) do { \
                                              ^
/datasets/git/builtin/fetch.c:325:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        FLEX_ALLOC_MEM(ent, refname, refname, len);
        ^
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/builtin/fetch.c:325:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        FLEX_ALLOC_MEM(ent, refname, refname, len);
        ^
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/builtin/fetch.c:359:9: warning: 2 adjacent parameters of 'add_already_queued_tags' of similar type ('const struct object_id *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                    const struct object_id *old_oid,
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:359:33: note: the first parameter in the range is 'old_oid'
                                    const struct object_id *old_oid,
                                                            ^~~~~~~
/datasets/git/builtin/fetch.c:360:33: note: the last parameter in the range is 'new_oid'
                                    const struct object_id *new_oid,
                                                            ^~~~~~~
/datasets/git/builtin/fetch.c:359:33: warning: parameter 'old_oid' is unused [misc-unused-parameters]
                                    const struct object_id *old_oid,
                                                            ^
/datasets/git/builtin/fetch.c:364:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (starts_with(refname, "refs/tags/") && new_oid)
                                                          ^
                                                           {
/datasets/git/builtin/fetch.c:377:27: warning: variable 'remote_ref_item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *remote_ref_item;
                                 ^
                                                 = NULL
/datasets/git/builtin/fetch.c:378:20: warning: variable 'ref' is not initialized [cppcoreguidelines-init-variables]
        const struct ref *ref;
                          ^
                              = NULL
/datasets/git/builtin/fetch.c:380:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        const int quick_flags = OBJECT_INFO_QUICK | OBJECT_INFO_SKIP_FETCH_OBJECT;
                                ^
/datasets/git/./object-store.h:436:27: note: expanded from macro 'OBJECT_INFO_QUICK'
#define OBJECT_INFO_QUICK 8
                          ^
/datasets/git/builtin/fetch.c:392:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (transaction)
                        ^
                         {
/datasets/git/builtin/fetch.c:397:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (ref = refs; ref; ref = ref->next) {
        ^
/datasets/git/builtin/fetch.c:397:19: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (ref = refs; ref; ref = ref->next) {
                         ^
/datasets/git/builtin/fetch.c:398:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!starts_with(ref->name, "refs/tags/"))
                                                          ^
                                                           {
/datasets/git/builtin/fetch.c:412:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            !oidset_contains(&fetch_oids, &item->oid))
                                                                      ^
                                                                       {
/datasets/git/builtin/fetch.c:426:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !oidset_contains(&fetch_oids, &item->oid))
                                                              ^
                                                               {
/datasets/git/builtin/fetch.c:433:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    refname_hash_exists(&existing_refs, ref->name))
                                                                   ^
                                                                    {
/datasets/git/builtin/fetch.c:447:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !oidset_contains(&fetch_oids, &item->oid))
                                                      ^
                                                       {
/datasets/git/builtin/fetch.c:454:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(remote_ref_item, &remote_refs_list) {
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/fetch.c:454:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'remote_ref_item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(remote_ref_item, &remote_refs_list) {
                                  ^
/datasets/git/builtin/fetch.c:456:15: warning: variable 'rm' is not initialized [cppcoreguidelines-init-variables]
                struct ref *rm;
                            ^
                               = NULL
/datasets/git/builtin/fetch.c:456:15: warning: variable name 'rm' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fetch.c:461:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!item)
                          ^
                           {
/datasets/git/builtin/fetch.c:465:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (item->ignore)
                                 ^
                                  {
/datasets/git/builtin/fetch.c:479:53: warning: parameter name 'rs' is too short, expected at least 3 characters [readability-identifier-length]
static void filter_prefetch_refspec(struct refspec *rs)
                                                    ^
/datasets/git/builtin/fetch.c:481:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/fetch.c:481:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fetch.c:483:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!prefetch)
                      ^
                       {
/datasets/git/builtin/fetch.c:488:9: warning: variable 'old_dst' is not initialized [cppcoreguidelines-init-variables]
                char *old_dst;
                      ^
                              = NULL
/datasets/git/builtin/fetch.c:498:4: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                        int j;
                        ^
/datasets/git/builtin/fetch.c:491:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (rs->items[i].negative)
                                          ^
                                           {
/datasets/git/builtin/fetch.c:495:9: warning: Use of memory after it is freed [clang-analyzer-unix.Malloc]
                     !strncmp(rs->items[i].src,
                      ^
/datasets/git/builtin/fetch.c:2121:14: note: Assuming 'i' is >= 'argc'
        for (i = 1; i < argc; i++) {
                    ^~~~~~~~
/datasets/git/builtin/fetch.c:2121:2: note: Loop condition is false. Execution continues on line 2129
        for (i = 1; i < argc; i++) {
        ^
/datasets/git/builtin/fetch.c:2130:6: note: Assuming field 'gitdir' is null
        if (the_repository->gitdir) {
            ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:2130:2: note: Taking false branch
        if (the_repository->gitdir) {
        ^
/datasets/git/builtin/fetch.c:2138:6: note: Assuming 'recurse_submodules_cli' is equal to RECURSE_SUBMODULES_DEFAULT
        if (recurse_submodules_cli != RECURSE_SUBMODULES_DEFAULT)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:2138:2: note: Taking false branch
        if (recurse_submodules_cli != RECURSE_SUBMODULES_DEFAULT)
        ^
/datasets/git/builtin/fetch.c:2141:6: note: Assuming 'negotiate_only' is 0
        if (negotiate_only) {
            ^~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:2141:2: note: Taking false branch
        if (negotiate_only) {
        ^
/datasets/git/builtin/fetch.c:2159:6: note: Assuming 'recurse_submodules' is equal to RECURSE_SUBMODULES_OFF
        if (recurse_submodules != RECURSE_SUBMODULES_OFF) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:2159:2: note: Taking false branch
        if (recurse_submodules != RECURSE_SUBMODULES_OFF) {
        ^
/datasets/git/builtin/fetch.c:2168:6: note: 'negotiate_only' is 0
        if (negotiate_only && !negotiation_tip.nr)
            ^~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:2168:21: note: Left side of '&&' is false
        if (negotiate_only && !negotiation_tip.nr)
                           ^
/datasets/git/builtin/fetch.c:2171:6: note: Assuming 'deepen_relative' is 0
        if (deepen_relative) {
            ^~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:2171:2: note: Taking false branch
        if (deepen_relative) {
        ^
/datasets/git/builtin/fetch.c:2178:6: note: Assuming 'unshallow' is 0
        if (unshallow) {
            ^~~~~~~~~
/datasets/git/builtin/fetch.c:2178:2: note: Taking false branch
        if (unshallow) {
        ^
/datasets/git/builtin/fetch.c:2188:6: note: Assuming 'depth' is null
        if (depth && atoi(depth) < 1)
            ^~~~~
/datasets/git/builtin/fetch.c:2188:12: note: Left side of '&&' is false
        if (depth && atoi(depth) < 1)
                  ^
/datasets/git/builtin/fetch.c:2190:6: note: 'depth' is null
        if (depth || deepen_since || deepen_not.nr)
            ^~~~~
/datasets/git/builtin/fetch.c:2190:6: note: Left side of '||' is false
/datasets/git/builtin/fetch.c:2190:15: note: Assuming 'deepen_since' is null
        if (depth || deepen_since || deepen_not.nr)
                     ^~~~~~~~~~~~
/datasets/git/builtin/fetch.c:2190:6: note: Left side of '||' is false
        if (depth || deepen_since || deepen_not.nr)
            ^
/datasets/git/builtin/fetch.c:2190:31: note: Assuming field 'nr' is 0
        if (depth || deepen_since || deepen_not.nr)
                                     ^~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:2190:2: note: Taking false branch
        if (depth || deepen_since || deepen_not.nr)
        ^
/datasets/git/builtin/fetch.c:2194:6: note: Assuming 'dry_run' is 0
        if (dry_run)
            ^~~~~~~
/datasets/git/builtin/fetch.c:2194:2: note: Taking false branch
        if (dry_run)
        ^
/datasets/git/builtin/fetch.c:2197:6: note: Assuming 'all' is 0
        if (all) {
            ^~~
/datasets/git/builtin/fetch.c:2197:2: note: Taking false branch
        if (all) {
        ^
/datasets/git/builtin/fetch.c:2207:13: note: Assuming 'argc' is not equal to 0
        } else if (argc == 0) {
                   ^~~~~~~~~
/datasets/git/builtin/fetch.c:2207:9: note: Taking false branch
        } else if (argc == 0) {
               ^
/datasets/git/builtin/fetch.c:2210:13: note: Assuming 'multiple' is 0
        } else if (multiple) {
                   ^~~~~~~~
/datasets/git/builtin/fetch.c:2210:9: note: Taking false branch
        } else if (multiple) {
               ^
/datasets/git/builtin/fetch.c:2219:7: note: Assuming field 'nr' is <= 1
                if (list.nr > 1) {
                    ^~~~~~~~~~~
/datasets/git/builtin/fetch.c:2219:3: note: Taking false branch
                if (list.nr > 1) {
                ^
/datasets/git/builtin/fetch.c:2226:21: note: Assuming 'argc' is not equal to 1
                        prune_tags_ok = (argc == 1);
                                         ^~~~~~~~~
/datasets/git/builtin/fetch.c:2232:6: note: Assuming 'negotiate_only' is 0
        if (negotiate_only) {
            ^~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:2232:2: note: Taking false branch
        if (negotiate_only) {
        ^
/datasets/git/builtin/fetch.c:2255:13: note: Assuming 'remote' is non-null
        } else if (remote) {
                   ^~~~~~
/datasets/git/builtin/fetch.c:2255:9: note: Taking true branch
        } else if (remote) {
               ^
/datasets/git/builtin/fetch.c:2256:7: note: Assuming field 'choice' is 0
                if (filter_options.choice || has_promisor_remote())
                    ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:2256:7: note: Left side of '||' is false
/datasets/git/builtin/fetch.c:2256:32: note: Assuming the condition is false
                if (filter_options.choice || has_promisor_remote())
                                             ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:2256:3: note: Taking false branch
                if (filter_options.choice || has_promisor_remote())
                ^
/datasets/git/builtin/fetch.c:2258:12: note: Calling 'fetch_one'
                result = fetch_one(remote, argc, argv, prune_tags_ok, stdin_refspecs);
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:2042:7: note: 'remote' is non-null
        if (!remote)
             ^~~~~~
/datasets/git/builtin/fetch.c:2042:2: note: Taking false branch
        if (!remote)
        ^
/datasets/git/builtin/fetch.c:2048:6: note: Assuming 'prune' is >= 0
        if (prune < 0) {
            ^~~~~~~~~
/datasets/git/builtin/fetch.c:2048:2: note: Taking false branch
        if (prune < 0) {
        ^
/datasets/git/builtin/fetch.c:2058:6: note: Assuming 'prune_tags' is >= 0
        if (prune_tags < 0) {
            ^~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:2058:2: note: Taking false branch
        if (prune_tags < 0) {
        ^
/datasets/git/builtin/fetch.c:2068:21: note: 'prune_tags_ok' is 0
        maybe_prune_tags = prune_tags_ok && prune_tags;
                           ^~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:2068:35: note: Left side of '&&' is false
        maybe_prune_tags = prune_tags_ok && prune_tags;
                                         ^
/datasets/git/builtin/fetch.c:2069:6: note: 'maybe_prune_tags' is 0
        if (maybe_prune_tags && remote_via_config)
            ^~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:2069:23: note: Left side of '&&' is false
        if (maybe_prune_tags && remote_via_config)
                             ^
/datasets/git/builtin/fetch.c:2072:6: note: 'maybe_prune_tags' is 0
        if (maybe_prune_tags && (argc || !remote_via_config))
            ^~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:2072:23: note: Left side of '&&' is false
        if (maybe_prune_tags && (argc || !remote_via_config))
                             ^
/datasets/git/builtin/fetch.c:2075:14: note: Assuming 'i' is >= 'argc'
        for (i = 0; i < argc; i++) {
                    ^~~~~~~~
/datasets/git/builtin/fetch.c:2075:2: note: Loop condition is false. Execution continues on line 2088
        for (i = 0; i < argc; i++) {
        ^
/datasets/git/builtin/fetch.c:2088:6: note: Assuming 'use_stdin_refspecs' is 0
        if (use_stdin_refspecs) {
            ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:2088:2: note: Taking false branch
        if (use_stdin_refspecs) {
        ^
/datasets/git/builtin/fetch.c:2095:6: note: Assuming field 'nr' is 0
        if (server_options.nr)
            ^~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:2095:2: note: Taking false branch
        if (server_options.nr)
        ^
/datasets/git/builtin/fetch.c:2101:14: note: Calling 'do_fetch'
        exit_code = do_fetch(gtransport, &rs);
                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:1583:18: note: Assuming field 'fetch_tags' is not equal to 1
        int autotags = (transport->remote->fetch_tags == 1);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:1592:6: note: Assuming 'tags' is not equal to TAGS_DEFAULT
        if (tags == TAGS_DEFAULT) {
            ^~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:1592:2: note: Taking false branch
        if (tags == TAGS_DEFAULT) {
        ^
/datasets/git/builtin/fetch.c:1600:6: note: Assuming 'append' is not equal to 0
        if (!append && write_fetch_head) {
            ^~~~~~~
/datasets/git/builtin/fetch.c:1600:14: note: Left side of '&&' is false
        if (!append && write_fetch_head) {
                    ^
/datasets/git/builtin/fetch.c:1606:10: note: Field 'nr' is 0
        if (rs->nr) {
                ^
/datasets/git/builtin/fetch.c:1606:2: note: Taking false branch
        if (rs->nr) {
        ^
/datasets/git/builtin/fetch.c:1625:7: note: Assuming field 'nr' is 0
                if (transport->remote->fetch.nr)
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:1625:3: note: Taking false branch
                if (transport->remote->fetch.nr)
                ^
/datasets/git/builtin/fetch.c:1628:7: note: Assuming the condition is false
                if (branch_has_merge_config(branch) &&
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:1628:39: note: Left side of '&&' is false
                if (branch_has_merge_config(branch) &&
                                                    ^
/datasets/git/builtin/fetch.c:1638:6: note: Assuming 'tags' is not equal to TAGS_SET
        if (tags == TAGS_SET || tags == TAGS_DEFAULT) {
            ^~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:1638:6: note: Left side of '||' is false
/datasets/git/builtin/fetch.c:1638:26: note: Assuming 'tags' is not equal to TAGS_DEFAULT
        if (tags == TAGS_SET || tags == TAGS_DEFAULT) {
                                ^~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:1638:2: note: Taking false branch
        if (tags == TAGS_SET || tags == TAGS_DEFAULT) {
        ^
/datasets/git/builtin/fetch.c:1645:6: note: 'must_list_refs' is 1
        if (must_list_refs) {
            ^~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:1645:2: note: Taking true branch
        if (must_list_refs) {
        ^
/datasets/git/builtin/fetch.c:1655:12: note: Calling 'get_ref_map'
        ref_map = get_ref_map(transport->remote, remote_refs, rs,
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:548:6: note: Assuming 'remote' is non-null
        if (remote)
            ^~~~~~
/datasets/git/builtin/fetch.c:548:2: note: Taking true branch
        if (remote)
        ^
/datasets/git/builtin/fetch.c:549:3: note: Calling 'filter_prefetch_refspec'
                filter_prefetch_refspec(&remote->fetch);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:483:7: note: 'prefetch' is not equal to 0
        if (!prefetch)
             ^~~~~~~~
/datasets/git/builtin/fetch.c:483:2: note: Taking false branch
        if (!prefetch)
        ^
/datasets/git/builtin/fetch.c:486:14: note: Assuming 'i' is < field 'nr'
        for (i = 0; i < rs->nr; i++) {
                    ^~~~~~~~~~
/datasets/git/builtin/fetch.c:486:2: note: Loop condition is true.  Entering loop body
        for (i = 0; i < rs->nr; i++) {
        ^
/datasets/git/builtin/fetch.c:491:7: note: Assuming field 'negative' is 0
                if (rs->items[i].negative)
                    ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:491:3: note: Taking false branch
                if (rs->items[i].negative)
                ^
/datasets/git/builtin/fetch.c:493:7: note: Assuming field 'dst' is non-null
                if (!rs->items[i].dst ||
                    ^~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:493:7: note: Left side of '||' is false
/datasets/git/builtin/fetch.c:494:8: note: Assuming field 'src' is non-null
                    (rs->items[i].src &&
                     ^~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:494:8: note: Left side of '&&' is true
/datasets/git/builtin/fetch.c:493:3: note: Taking true branch
                if (!rs->items[i].dst ||
                ^
/datasets/git/builtin/fetch.c:500:4: note: Memory is released
                        free(rs->items[i].src);
                        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:503:20: note: Assuming 'j' is < field 'nr'
                        for (j = i + 1; j < rs->nr; j++) {
                                        ^~~~~~~~~~
/datasets/git/builtin/fetch.c:503:4: note: Loop condition is true.  Entering loop body
                        for (j = i + 1; j < rs->nr; j++) {
                        ^
/datasets/git/builtin/fetch.c:503:20: note: Assuming 'j' is >= field 'nr'
                        for (j = i + 1; j < rs->nr; j++) {
                                        ^~~~~~~~~~
/datasets/git/builtin/fetch.c:503:4: note: Loop condition is false. Execution continues on line 507
                        for (j = i + 1; j < rs->nr; j++) {
                        ^
/datasets/git/builtin/fetch.c:509:4: note:  Execution continues on line 486
                        continue;
                        ^
/datasets/git/builtin/fetch.c:486:2: note: Loop condition is true.  Entering loop body
        for (i = 0; i < rs->nr; i++) {
        ^
/datasets/git/builtin/fetch.c:491:20: note: Field 'negative' is 0
                if (rs->items[i].negative)
                                 ^
/datasets/git/builtin/fetch.c:491:3: note: Taking false branch
                if (rs->items[i].negative)
                ^
/datasets/git/builtin/fetch.c:493:21: note: Field 'dst' is non-null
                if (!rs->items[i].dst ||
                                  ^
/datasets/git/builtin/fetch.c:493:7: note: Left side of '||' is false
                if (!rs->items[i].dst ||
                    ^
/datasets/git/builtin/fetch.c:494:21: note: Field 'src' is non-null
                    (rs->items[i].src &&
                                  ^
/datasets/git/builtin/fetch.c:494:8: note: Left side of '&&' is true
                    (rs->items[i].src &&
                     ^
/datasets/git/builtin/fetch.c:495:9: note: Use of memory after it is freed
                     !strncmp(rs->items[i].src,
                      ^       ~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:498:8: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
                        int j;
                            ^
                              = 0
/datasets/git/builtin/fetch.c:498:8: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fetch.c:503:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (j = i + 1; j < rs->nr; j++) {
                        ^
/datasets/git/builtin/fetch.c:503:20: warning: backward branch (for loop) is ID-dependent due to variable reference to 'j' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (j = i + 1; j < rs->nr; j++) {
                                        ^
/datasets/git/builtin/fetch.c:520:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!skip_prefix(old_dst, "refs/", &sub))
                                                         ^
                                                          {
/datasets/git/builtin/fetch.c:531:20: warning: function 'get_ref_map' has cognitive complexity of 59 (threshold 25) [readability-function-cognitive-complexity]
static struct ref *get_ref_map(struct remote *remote,
                   ^
/datasets/git/builtin/fetch.c:548:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (remote)
        ^
/datasets/git/builtin/fetch.c:551:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (rs->nr) {
        ^
/datasets/git/builtin/fetch.c:554:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < rs->nr; i++) {
                ^
/datasets/git/builtin/fetch.c:556:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (rs->items[i].dst && rs->items[i].dst[0])
                        ^
/datasets/git/builtin/fetch.c:556:25: note: +1
                        if (rs->items[i].dst && rs->items[i].dst[0])
                                             ^
/datasets/git/builtin/fetch.c:560:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (rm = ref_map; rm; rm = rm->next)
                ^
/datasets/git/builtin/fetch.c:583:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (refmap.nr)
                ^
/datasets/git/builtin/fetch.c:585:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/fetch.c:588:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < fetch_refspec->nr; i++)
                ^
/datasets/git/builtin/fetch.c:590:9: note: +1, nesting level increased to 1
        } else if (refmap.nr) {
               ^
/datasets/git/builtin/fetch.c:592:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/fetch.c:596:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (remote &&
                ^
/datasets/git/builtin/fetch.c:596:14: note: +1
                if (remote &&
                           ^
/datasets/git/builtin/fetch.c:597:25: note: +1
                    (remote->fetch.nr ||
                                      ^
/datasets/git/builtin/fetch.c:599:19: note: +1
                     (has_merge && !strcmp(branch->remote_name, remote->name)))) {
                                ^
/datasets/git/builtin/fetch.c:600:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (i = 0; i < remote->fetch.nr; i++) {
                        ^
/datasets/git/builtin/fetch.c:602:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (remote->fetch.items[i].dst &&
                                ^
/datasets/git/builtin/fetch.c:602:36: note: +1
                                if (remote->fetch.items[i].dst &&
                                                               ^
/datasets/git/builtin/fetch.c:605:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!i && !has_merge && ref_map &&
                                ^
/datasets/git/builtin/fetch.c:605:37: note: +1
                                if (!i && !has_merge && ref_map &&
                                                                ^
/datasets/git/builtin/fetch.c:616:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (has_merge &&
                        ^
/datasets/git/builtin/fetch.c:616:18: note: +1
                        if (has_merge &&
                                      ^
/datasets/git/builtin/fetch.c:619:10: note: +1, nesting level increased to 2
                } else if (!prefetch) {
                       ^
/datasets/git/builtin/fetch.c:621:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!ref_map)
                        ^
/datasets/git/builtin/fetch.c:628:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (tags == TAGS_SET)
        ^
/datasets/git/builtin/fetch.c:631:7: note: +1, nesting level increased to 1
        else if (tags == TAGS_DEFAULT && *autotags)
             ^
/datasets/git/builtin/fetch.c:631:32: note: +1
        else if (tags == TAGS_DEFAULT && *autotags)
                                      ^
/datasets/git/builtin/fetch.c:636:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (rm = orefs; rm; rm = rm->next) {
        ^
/datasets/git/builtin/fetch.c:646:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (rs->nr)
        ^
/datasets/git/builtin/fetch.c:648:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/builtin/fetch.c:653:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (rm = ref_map; rm; rm = rm->next) {
        ^
/datasets/git/builtin/fetch.c:654:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (rm->peer_ref) {
                ^
/datasets/git/builtin/fetch.c:659:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!existing_refs_populated) {
                        ^
/datasets/git/builtin/fetch.c:668:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (peer_item) {
                        ^
/datasets/git/builtin/fetch.c:674:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (existing_refs_populated)
        ^
/datasets/git/builtin/fetch.c:533:27: warning: parameter name 'rs' is too short, expected at least 3 characters [readability-identifier-length]
                               struct refspec *rs,
                                               ^
/datasets/git/builtin/fetch.c:536:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/fetch.c:536:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fetch.c:537:14: warning: variable 'rm' is not initialized [cppcoreguidelines-init-variables]
        struct ref *rm;
                    ^
                       = NULL
/datasets/git/builtin/fetch.c:537:14: warning: variable name 'rm' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fetch.c:542:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct ref *orefs = NULL, **oref_tail = &orefs;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:548:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (remote)
                   ^
                    {
/datasets/git/builtin/fetch.c:552:19: warning: variable 'fetch_refspec' is not initialized [cppcoreguidelines-init-variables]
                struct refspec *fetch_refspec;
                                ^
                                              = NULL
/datasets/git/builtin/fetch.c:554:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < rs->nr; i++) {
                ^
/datasets/git/builtin/fetch.c:556:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (rs->items[i].dst && rs->items[i].dst[0])
                                                                    ^
                                                                     {
/datasets/git/builtin/fetch.c:560:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (rm = ref_map; rm; rm = rm->next)
                ^
/datasets/git/builtin/fetch.c:560:22: warning: backward branch (for loop) is ID-dependent due to variable reference to 'rm' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (rm = ref_map; rm; rm = rm->next)
                                   ^
/datasets/git/builtin/fetch.c:560:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (rm = ref_map; rm; rm = rm->next)
                                                     ^
                                                      {
/datasets/git/builtin/fetch.c:583:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (refmap.nr)
                              ^
                               {
/datasets/git/builtin/fetch.c:585:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/fetch.c:588:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < fetch_refspec->nr; i++)
                ^
/datasets/git/builtin/fetch.c:588:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'fetch_refspec' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < fetch_refspec->nr; i++)
                            ^
/datasets/git/builtin/fetch.c:588:19: warning: Access to field 'nr' results in a dereference of a null pointer (loaded from variable 'fetch_refspec') [clang-analyzer-core.NullDereference]
                for (i = 0; i < fetch_refspec->nr; i++)
                                ^
/datasets/git/builtin/fetch.c:2121:14: note: Assuming 'i' is >= 'argc'
        for (i = 1; i < argc; i++) {
                    ^~~~~~~~
/datasets/git/builtin/fetch.c:2121:2: note: Loop condition is false. Execution continues on line 2129
        for (i = 1; i < argc; i++) {
        ^
/datasets/git/builtin/fetch.c:2130:6: note: Assuming field 'gitdir' is null
        if (the_repository->gitdir) {
            ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:2130:2: note: Taking false branch
        if (the_repository->gitdir) {
        ^
/datasets/git/builtin/fetch.c:2138:6: note: Assuming 'recurse_submodules_cli' is equal to RECURSE_SUBMODULES_DEFAULT
        if (recurse_submodules_cli != RECURSE_SUBMODULES_DEFAULT)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:2138:2: note: Taking false branch
        if (recurse_submodules_cli != RECURSE_SUBMODULES_DEFAULT)
        ^
/datasets/git/builtin/fetch.c:2141:6: note: Assuming 'negotiate_only' is 0
        if (negotiate_only) {
            ^~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:2141:2: note: Taking false branch
        if (negotiate_only) {
        ^
/datasets/git/builtin/fetch.c:2159:6: note: Assuming 'recurse_submodules' is equal to RECURSE_SUBMODULES_OFF
        if (recurse_submodules != RECURSE_SUBMODULES_OFF) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:2159:2: note: Taking false branch
        if (recurse_submodules != RECURSE_SUBMODULES_OFF) {
        ^
/datasets/git/builtin/fetch.c:2168:6: note: 'negotiate_only' is 0
        if (negotiate_only && !negotiation_tip.nr)
            ^~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:2168:21: note: Left side of '&&' is false
        if (negotiate_only && !negotiation_tip.nr)
                           ^
/datasets/git/builtin/fetch.c:2171:6: note: Assuming 'deepen_relative' is 0
        if (deepen_relative) {
            ^~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:2171:2: note: Taking false branch
        if (deepen_relative) {
        ^
/datasets/git/builtin/fetch.c:2178:6: note: Assuming 'unshallow' is 0
        if (unshallow) {
            ^~~~~~~~~
/datasets/git/builtin/fetch.c:2178:2: note: Taking false branch
        if (unshallow) {
        ^
/datasets/git/builtin/fetch.c:2188:6: note: Assuming 'depth' is null
        if (depth && atoi(depth) < 1)
            ^~~~~
/datasets/git/builtin/fetch.c:2188:12: note: Left side of '&&' is false
        if (depth && atoi(depth) < 1)
                  ^
/datasets/git/builtin/fetch.c:2190:6: note: 'depth' is null
        if (depth || deepen_since || deepen_not.nr)
            ^~~~~
/datasets/git/builtin/fetch.c:2190:6: note: Left side of '||' is false
/datasets/git/builtin/fetch.c:2190:15: note: Assuming 'deepen_since' is null
        if (depth || deepen_since || deepen_not.nr)
                     ^~~~~~~~~~~~
/datasets/git/builtin/fetch.c:2190:6: note: Left side of '||' is false
        if (depth || deepen_since || deepen_not.nr)
            ^
/datasets/git/builtin/fetch.c:2190:31: note: Assuming field 'nr' is 0
        if (depth || deepen_since || deepen_not.nr)
                                     ^~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:2190:2: note: Taking false branch
        if (depth || deepen_since || deepen_not.nr)
        ^
/datasets/git/builtin/fetch.c:2194:6: note: Assuming 'dry_run' is 0
        if (dry_run)
            ^~~~~~~
/datasets/git/builtin/fetch.c:2194:2: note: Taking false branch
        if (dry_run)
        ^
/datasets/git/builtin/fetch.c:2197:6: note: Assuming 'all' is 0
        if (all) {
            ^~~
/datasets/git/builtin/fetch.c:2197:2: note: Taking false branch
        if (all) {
        ^
/datasets/git/builtin/fetch.c:2207:13: note: Assuming 'argc' is not equal to 0
        } else if (argc == 0) {
                   ^~~~~~~~~
/datasets/git/builtin/fetch.c:2207:9: note: Taking false branch
        } else if (argc == 0) {
               ^
/datasets/git/builtin/fetch.c:2210:13: note: Assuming 'multiple' is 0
        } else if (multiple) {
                   ^~~~~~~~
/datasets/git/builtin/fetch.c:2210:9: note: Taking false branch
        } else if (multiple) {
               ^
/datasets/git/builtin/fetch.c:2219:7: note: Assuming field 'nr' is <= 1
                if (list.nr > 1) {
                    ^~~~~~~~~~~
/datasets/git/builtin/fetch.c:2219:3: note: Taking false branch
                if (list.nr > 1) {
                ^
/datasets/git/builtin/fetch.c:2226:21: note: Assuming 'argc' is not equal to 1
                        prune_tags_ok = (argc == 1);
                                         ^~~~~~~~~
/datasets/git/builtin/fetch.c:2232:6: note: Assuming 'negotiate_only' is 0
        if (negotiate_only) {
            ^~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:2232:2: note: Taking false branch
        if (negotiate_only) {
        ^
/datasets/git/builtin/fetch.c:2255:13: note: Assuming 'remote' is non-null
        } else if (remote) {
                   ^~~~~~
/datasets/git/builtin/fetch.c:2255:9: note: Taking true branch
        } else if (remote) {
               ^
/datasets/git/builtin/fetch.c:2256:7: note: Assuming field 'choice' is 0
                if (filter_options.choice || has_promisor_remote())
                    ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:2256:7: note: Left side of '||' is false
/datasets/git/builtin/fetch.c:2256:32: note: Assuming the condition is false
                if (filter_options.choice || has_promisor_remote())
                                             ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:2256:3: note: Taking false branch
                if (filter_options.choice || has_promisor_remote())
                ^
/datasets/git/builtin/fetch.c:2258:12: note: Calling 'fetch_one'
                result = fetch_one(remote, argc, argv, prune_tags_ok, stdin_refspecs);
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:2042:7: note: 'remote' is non-null
        if (!remote)
             ^~~~~~
/datasets/git/builtin/fetch.c:2042:2: note: Taking false branch
        if (!remote)
        ^
/datasets/git/builtin/fetch.c:2048:6: note: Assuming 'prune' is >= 0
        if (prune < 0) {
            ^~~~~~~~~
/datasets/git/builtin/fetch.c:2048:2: note: Taking false branch
        if (prune < 0) {
        ^
/datasets/git/builtin/fetch.c:2058:6: note: Assuming 'prune_tags' is >= 0
        if (prune_tags < 0) {
            ^~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:2058:2: note: Taking false branch
        if (prune_tags < 0) {
        ^
/datasets/git/builtin/fetch.c:2068:21: note: 'prune_tags_ok' is 0
        maybe_prune_tags = prune_tags_ok && prune_tags;
                           ^~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:2068:35: note: Left side of '&&' is false
        maybe_prune_tags = prune_tags_ok && prune_tags;
                                         ^
/datasets/git/builtin/fetch.c:2069:6: note: 'maybe_prune_tags' is 0
        if (maybe_prune_tags && remote_via_config)
            ^~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:2069:23: note: Left side of '&&' is false
        if (maybe_prune_tags && remote_via_config)
                             ^
/datasets/git/builtin/fetch.c:2072:6: note: 'maybe_prune_tags' is 0
        if (maybe_prune_tags && (argc || !remote_via_config))
            ^~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:2072:23: note: Left side of '&&' is false
        if (maybe_prune_tags && (argc || !remote_via_config))
                             ^
/datasets/git/builtin/fetch.c:2075:14: note: Assuming 'i' is >= 'argc'
        for (i = 0; i < argc; i++) {
                    ^~~~~~~~
/datasets/git/builtin/fetch.c:2075:2: note: Loop condition is false. Execution continues on line 2088
        for (i = 0; i < argc; i++) {
        ^
/datasets/git/builtin/fetch.c:2088:6: note: Assuming 'use_stdin_refspecs' is 0
        if (use_stdin_refspecs) {
            ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:2088:2: note: Taking false branch
        if (use_stdin_refspecs) {
        ^
/datasets/git/builtin/fetch.c:2095:6: note: Assuming field 'nr' is 0
        if (server_options.nr)
            ^~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:2095:2: note: Taking false branch
        if (server_options.nr)
        ^
/datasets/git/builtin/fetch.c:2101:14: note: Calling 'do_fetch'
        exit_code = do_fetch(gtransport, &rs);
                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:1583:18: note: Assuming field 'fetch_tags' is not equal to 1
        int autotags = (transport->remote->fetch_tags == 1);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:1592:6: note: Assuming 'tags' is not equal to TAGS_DEFAULT
        if (tags == TAGS_DEFAULT) {
            ^~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:1592:2: note: Taking false branch
        if (tags == TAGS_DEFAULT) {
        ^
/datasets/git/builtin/fetch.c:1600:6: note: Assuming 'append' is not equal to 0
        if (!append && write_fetch_head) {
            ^~~~~~~
/datasets/git/builtin/fetch.c:1600:14: note: Left side of '&&' is false
        if (!append && write_fetch_head) {
                    ^
/datasets/git/builtin/fetch.c:1606:10: note: Field 'nr' is 0
        if (rs->nr) {
                ^
/datasets/git/builtin/fetch.c:1606:2: note: Taking false branch
        if (rs->nr) {
        ^
/datasets/git/builtin/fetch.c:1625:7: note: Assuming field 'nr' is not equal to 0
                if (transport->remote->fetch.nr)
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:1625:3: note: Taking true branch
                if (transport->remote->fetch.nr)
                ^
/datasets/git/builtin/fetch.c:1628:7: note: Assuming the condition is true
                if (branch_has_merge_config(branch) &&
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:1628:7: note: Left side of '&&' is true
/datasets/git/builtin/fetch.c:1629:7: note: Assuming the condition is false
                    !strcmp(branch->remote_name, transport->remote->name)) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:1628:3: note: Taking false branch
                if (branch_has_merge_config(branch) &&
                ^
/datasets/git/builtin/fetch.c:1638:6: note: Assuming 'tags' is not equal to TAGS_SET
        if (tags == TAGS_SET || tags == TAGS_DEFAULT) {
            ^~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:1638:6: note: Left side of '||' is false
/datasets/git/builtin/fetch.c:1638:26: note: Assuming 'tags' is not equal to TAGS_DEFAULT
        if (tags == TAGS_SET || tags == TAGS_DEFAULT) {
                                ^~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:1638:2: note: Taking false branch
        if (tags == TAGS_SET || tags == TAGS_DEFAULT) {
        ^
/datasets/git/builtin/fetch.c:1645:6: note: 'must_list_refs' is 1
        if (must_list_refs) {
            ^~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:1645:2: note: Taking true branch
        if (must_list_refs) {
        ^
/datasets/git/builtin/fetch.c:1647:17: note: Value assigned to field 'remote'
                remote_refs = transport_get_remote_refs(transport,
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:1655:24: note: Passing value via 1st parameter 'remote'
        ref_map = get_ref_map(transport->remote, remote_refs, rs,
                              ^~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:1655:12: note: Calling 'get_ref_map'
        ref_map = get_ref_map(transport->remote, remote_refs, rs,
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:548:6: note: Assuming 'remote' is null
        if (remote)
            ^~~~~~
/datasets/git/builtin/fetch.c:548:2: note: Taking false branch
        if (remote)
        ^
/datasets/git/builtin/fetch.c:551:6: note: Assuming field 'nr' is not equal to 0
        if (rs->nr) {
            ^~~~~~
/datasets/git/builtin/fetch.c:551:2: note: Taking true branch
        if (rs->nr) {
        ^
/datasets/git/builtin/fetch.c:554:15: note: Assuming 'i' is >= field 'nr'
                for (i = 0; i < rs->nr; i++) {
                            ^~~~~~~~~~
/datasets/git/builtin/fetch.c:554:3: note: Loop condition is false. Execution continues on line 560
                for (i = 0; i < rs->nr; i++) {
                ^
/datasets/git/builtin/fetch.c:560:3: note: Loop condition is false. Execution continues on line 583
                for (rm = ref_map; rm; rm = rm->next)
                ^
/datasets/git/builtin/fetch.c:583:7: note: Assuming field 'nr' is 0
                if (refmap.nr)
                    ^~~~~~~~~
/datasets/git/builtin/fetch.c:583:3: note: Taking false branch
                if (refmap.nr)
                ^
/datasets/git/builtin/fetch.c:586:4: note: Null pointer value stored to 'fetch_refspec'
                        fetch_refspec = &remote->fetch;
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:588:19: note: Access to field 'nr' results in a dereference of a null pointer (loaded from variable 'fetch_refspec')
                for (i = 0; i < fetch_refspec->nr; i++)
                                ^~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:588:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < fetch_refspec->nr; i++)
                                                       ^
                                                        {
/datasets/git/builtin/fetch.c:600:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = 0; i < remote->fetch.nr; i++) {
                        ^
/datasets/git/builtin/fetch.c:603:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                    remote->fetch.items[i].dst[0])
                                                                  ^
                                                                   {
/datasets/git/builtin/fetch.c:606:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                    !remote->fetch.items[0].pattern)
                                                                    ^
                                                                     {
/datasets/git/builtin/fetch.c:617:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            !strcmp(branch->remote_name, remote->name))
                                                                       ^
                                                                        {
/datasets/git/builtin/fetch.c:621:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!ref_map)
                                     ^
                                      {
/datasets/git/builtin/fetch.c:628:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (tags == TAGS_SET)
                             ^
                              {
/datasets/git/builtin/fetch.c:631:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (tags == TAGS_DEFAULT && *autotags)
                                                   ^
                                                    {
/datasets/git/builtin/fetch.c:636:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (rm = orefs; rm; rm = rm->next) {
        ^
/datasets/git/builtin/fetch.c:636:19: warning: backward branch (for loop) is ID-dependent due to variable reference to 'rm' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (rm = orefs; rm; rm = rm->next) {
                         ^
/datasets/git/builtin/fetch.c:646:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (rs->nr)
                   ^
                    {
/datasets/git/builtin/fetch.c:648:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/fetch.c:653:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (rm = ref_map; rm; rm = rm->next) {
        ^
/datasets/git/builtin/fetch.c:653:21: warning: backward branch (for loop) is ID-dependent due to variable reference to 'rm' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (rm = ref_map; rm; rm = rm->next) {
                           ^
/datasets/git/builtin/fetch.c:656:31: warning: variable 'peer_item' is not initialized [cppcoreguidelines-init-variables]
                        struct refname_hash_entry *peer_item;
                                                   ^
                                                             = NULL
/datasets/git/builtin/fetch.c:674:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (existing_refs_populated)
                                    ^
                                     {
/datasets/git/builtin/fetch.c:688:8: warning: variable 'msg' is not initialized [cppcoreguidelines-init-variables]
        char *msg;
              ^
                  = NULL
/datasets/git/builtin/fetch.c:689:14: warning: function is not thread safe [concurrency-mt-unsafe]
        char *rla = getenv("GIT_REFLOG_ACTION");
                    ^
/datasets/git/builtin/fetch.c:692:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/builtin/fetch.c:694:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (dry_run)
                    ^
                     {
/datasets/git/builtin/fetch.c:696:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!rla)
                 ^
                  {
/datasets/git/builtin/fetch.c:736:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/builtin/fetch.c:743:12: warning: variable 'refcol_width' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int refcol_width = 10;
           ^
/datasets/git/builtin/fetch.c:743:27: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
static int refcol_width = 10;
                          ^
/datasets/git/builtin/fetch.c:744:12: warning: variable 'compact_format' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int compact_format;
           ^
/datasets/git/builtin/fetch.c:748:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int max, rlen, llen, len;
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:748:6: warning: variable 'max' is not initialized [cppcoreguidelines-init-variables]
        int max, rlen, llen, len;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fetch.c:748:11: warning: variable 'rlen' is not initialized [cppcoreguidelines-init-variables]
        int max, rlen, llen, len;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fetch.c:748:17: warning: variable 'llen' is not initialized [cppcoreguidelines-init-variables]
        int max, rlen, llen, len;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fetch.c:748:23: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int max, rlen, llen, len;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fetch.c:751:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (verbosity <= 0 && oideq(&ref->peer_ref->old_oid, &ref->old_oid))
                                                                            ^
                                                                             {
/datasets/git/builtin/fetch.c:769:8: warning: 21 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        len = 21 /* flag and summary */ + rlen + 4 /* -> */ + llen;
              ^
/datasets/git/builtin/fetch.c:770:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len >= max)
                       ^
                        {
/datasets/git/builtin/fetch.c:778:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (refcol_width < rlen)
                                ^
                                 {
/datasets/git/builtin/fetch.c:784:14: warning: variable 'rm' is not initialized [cppcoreguidelines-init-variables]
        struct ref *rm;
                    ^
                       = NULL
/datasets/git/builtin/fetch.c:784:14: warning: variable name 'rm' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fetch.c:787:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (verbosity < 0)
                          ^
                           {
/datasets/git/builtin/fetch.c:791:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcasecmp(format, "full"))
                                        ^
                                         {
/datasets/git/builtin/fetch.c:793:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcasecmp(format, "compact"))
                                                ^
                                                 {
/datasets/git/builtin/fetch.c:795:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/fetch.c:799:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (rm = ref_map; rm; rm = rm->next) {
        ^
/datasets/git/builtin/fetch.c:799:21: warning: backward branch (for loop) is ID-dependent due to variable reference to 'rm' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (rm = ref_map; rm; rm = rm->next) {
                           ^
/datasets/git/builtin/fetch.c:802:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !strcmp(rm->name, "HEAD"))
                                              ^
                                               {
/datasets/git/builtin/fetch.c:819:14: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        const char *p = NULL;
                    ^
/datasets/git/builtin/fetch.c:820:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int plen, nlen;
        ^~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:820:6: warning: variable 'plen' is not initialized [cppcoreguidelines-init-variables]
        int plen, nlen;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fetch.c:820:12: warning: variable 'nlen' is not initialized [cppcoreguidelines-init-variables]
        int plen, nlen;
                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fetch.c:822:9: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        nlen = strlen(needle);
               ^
/datasets/git/builtin/fetch.c:823:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ends_with(haystack->buf, needle))
                                             ^
                                              {
/datasets/git/builtin/fetch.c:825:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/fetch.c:827:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!p)
               ^
                {
/datasets/git/builtin/fetch.c:830:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (p > haystack->buf && p[-1] != '/')
                                              ^
                                               {
/datasets/git/builtin/fetch.c:833:9: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        plen = strlen(p);
               ^
/datasets/git/builtin/fetch.c:834:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (plen > nlen && p[nlen] != '/')
                                          ^
                                           {
/datasets/git/builtin/fetch.c:845:16: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf r = STRBUF_INIT;
                      ^
/datasets/git/builtin/fetch.c:846:16: warning: variable name 'l' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf l = STRBUF_INIT;
                      ^
/datasets/git/builtin/fetch.c:856:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!find_and_replace(&r, local, "*"))
                                              ^
                                               {
/datasets/git/builtin/fetch.c:865:7: warning: 3 adjacent parameters of 'format_display' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                           const char *summary, const char *error,
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:865:19: note: the first parameter in the range is 'summary'
                           const char *summary, const char *error,
                                       ^~~~~~~
/datasets/git/builtin/fetch.c:866:19: note: the last parameter in the range is 'remote'
                           const char *remote, const char *local,
                                       ^~~~~~
/datasets/git/builtin/fetch.c:869:6: warning: variable 'width' is not initialized [cppcoreguidelines-init-variables]
        int width;
            ^
                  = 0
/datasets/git/builtin/fetch.c:871:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (verbosity < 0)
                          ^
                           {
/datasets/git/builtin/fetch.c:874:10: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        width = (summary_width + strlen(summary) - gettext_width(summary));
                ^
/datasets/git/builtin/fetch.c:877:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!compact_format)
                            ^
                             {
/datasets/git/builtin/fetch.c:879:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/fetch.c:881:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (error)
                  ^
                   {
/datasets/git/builtin/fetch.c:885:12: warning: function 'update_local_ref' has cognitive complexity of 44 (threshold 25) [readability-function-cognitive-complexity]
static int update_local_ref(struct ref *ref,
           ^
/datasets/git/builtin/fetch.c:894:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!repo_has_object_file(the_repository, &ref->new_oid))
        ^
/datasets/git/builtin/fetch.c:897:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (oideq(&ref->old_oid, &ref->new_oid)) {
        ^
/datasets/git/builtin/fetch.c:898:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (verbosity > 0)
                ^
/datasets/git/builtin/fetch.c:904:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!update_head_ok &&
        ^
/datasets/git/builtin/fetch.c:905:34: note: +1
            !is_null_oid(&ref->old_oid) &&
                                        ^
/datasets/git/builtin/fetch.c:917:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!is_null_oid(&ref->old_oid) &&
        ^
/datasets/git/builtin/fetch.c:917:34: note: +1
        if (!is_null_oid(&ref->old_oid) &&
                                        ^
/datasets/git/builtin/fetch.c:919:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (force || ref->force) {
                ^
/datasets/git/builtin/fetch.c:919:13: note: +1
                if (force || ref->force) {
                          ^
/datasets/git/builtin/fetch.c:922:30: note: +3, including nesting penalty of 2, nesting level increased to 3
                        format_display(display, r ? '!' : 't', _("[tag update]"),
                                                  ^
/datasets/git/builtin/fetch.c:923:14: note: +3, including nesting penalty of 2, nesting level increased to 3
                                       r ? _("unable to update local ref") : NULL,
                                         ^
/datasets/git/builtin/fetch.c:926:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/fetch.c:937:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!current || !updated) {
        ^
/datasets/git/builtin/fetch.c:937:15: note: +1
        if (!current || !updated) {
                     ^
/datasets/git/builtin/fetch.c:946:33: note: +2, including nesting penalty of 1, nesting level increased to 2
                const char *name = remote_ref ? remote_ref->name : "";
                                              ^
/datasets/git/builtin/fetch.c:947:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (starts_with(name, "refs/tags/")) {
                ^
/datasets/git/builtin/fetch.c:950:10: note: +1, nesting level increased to 2
                } else if (starts_with(name, "refs/heads/")) {
                       ^
/datasets/git/builtin/fetch.c:953:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/fetch.c:959:29: note: +2, including nesting penalty of 1, nesting level increased to 2
                format_display(display, r ? '!' : '*', what,
                                          ^
/datasets/git/builtin/fetch.c:960:13: note: +2, including nesting penalty of 1, nesting level increased to 2
                               r ? _("unable to update local ref") : NULL,
                                 ^
/datasets/git/builtin/fetch.c:965:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (fetch_show_forced_updates) {
        ^
/datasets/git/builtin/fetch.c:969:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/fetch.c:973:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (fast_forward) {
        ^
/datasets/git/builtin/fetch.c:981:29: note: +2, including nesting penalty of 1, nesting level increased to 2
                format_display(display, r ? '!' : ' ', quickref.buf,
                                          ^
/datasets/git/builtin/fetch.c:982:13: note: +2, including nesting penalty of 1, nesting level increased to 2
                               r ? _("unable to update local ref") : NULL,
                                 ^
/datasets/git/builtin/fetch.c:986:9: note: +1, nesting level increased to 1
        } else if (force || ref->force) {
               ^
/datasets/git/builtin/fetch.c:986:19: note: +1
        } else if (force || ref->force) {
                         ^
/datasets/git/builtin/fetch.c:993:29: note: +2, including nesting penalty of 1, nesting level increased to 2
                format_display(display, r ? '!' : '+', quickref.buf,
                                          ^
/datasets/git/builtin/fetch.c:994:13: note: +2, including nesting penalty of 1, nesting level increased to 2
                               r ? _("unable to update local ref") : _("forced update"),
                                 ^
/datasets/git/builtin/fetch.c:998:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/fetch.c:890:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit *current = NULL, *updated;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:890:34: warning: variable 'updated' is not initialized [cppcoreguidelines-init-variables]
        struct commit *current = NULL, *updated;
                                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fetch.c:894:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!repo_has_object_file(the_repository, &ref->new_oid))
                                                                 ^
                                                                  {
/datasets/git/builtin/fetch.c:898:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (verbosity > 0)
                                  ^
                                   {
/datasets/git/builtin/fetch.c:920:8: warning: variable 'r' is not initialized [cppcoreguidelines-init-variables]
                        int r;
                            ^
                              = 0
/datasets/git/builtin/fetch.c:920:8: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fetch.c:926:5: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                } else {
                  ^~~~~~
/datasets/git/builtin/fetch.c:938:15: warning: variable 'msg' is not initialized [cppcoreguidelines-init-variables]
                const char *msg;
                            ^
                                = NULL
/datasets/git/builtin/fetch.c:939:15: warning: variable 'what' is not initialized [cppcoreguidelines-init-variables]
                const char *what;
                            ^
                                 = NULL
/datasets/git/builtin/fetch.c:940:7: warning: variable 'r' is not initialized [cppcoreguidelines-init-variables]
                int r;
                    ^
                      = 0
/datasets/git/builtin/fetch.c:940:7: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fetch.c:968:53: warning: 1000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                forced_updates_ms += (getnanotime() - t_before) / 1000000;
                                                                  ^
/datasets/git/builtin/fetch.c:975:7: warning: variable 'r' is not initialized [cppcoreguidelines-init-variables]
                int r;
                    ^
                      = 0
/datasets/git/builtin/fetch.c:975:7: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fetch.c:986:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else if (force || ref->force) {
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:988:7: warning: variable 'r' is not initialized [cppcoreguidelines-init-variables]
                int r;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fetch.c:988:7: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fetch.c:1007:15: warning: variable name 'rm' is too short, expected at least 3 characters [readability-identifier-length]
        struct ref **rm = cb_data;
                     ^
/datasets/git/builtin/fetch.c:1010:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (ref && ref->status == REF_STATUS_REJECT_SHALLOW)
        ^
/datasets/git/builtin/fetch.c:1010:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (ref && ref->status == REF_STATUS_REJECT_SHALLOW)
               ^
/datasets/git/builtin/fetch.c:1010:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (ref && ref->status == REF_STATUS_REJECT_SHALLOW)
                                                               ^
                                                                {
/datasets/git/builtin/fetch.c:1012:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ref)
                 ^
                  {
/datasets/git/builtin/fetch.c:1018:8: warning: accessing fields in struct 'fetch_head' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct fetch_head {
       ^
/datasets/git/builtin/fetch.c:1018:8: note: use "__attribute__((aligned(32)))" to align struct 'fetch_head' to 32 bytes
/datasets/git/builtin/fetch.c:1029:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!fetch_head->fp)
                                    ^
                                     {
/datasets/git/builtin/fetch.c:1042:10: warning: 2 adjacent parameters of 'append_fetch_head' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                              const char *note,
                              ^~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:1042:22: note: the first parameter in the range is 'note'
                              const char *note,
                                          ^~~~
/datasets/git/builtin/fetch.c:1043:22: note: the last parameter in the range is 'url'
                              const char *url, size_t url_len)
                                          ^~~
/datasets/git/builtin/fetch.c:1046:14: warning: variable 'merge_status_marker' is not initialized [cppcoreguidelines-init-variables]
        const char *merge_status_marker;
                    ^
                                        = NULL
/datasets/git/builtin/fetch.c:1047:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i;
               ^
                 = 0
/datasets/git/builtin/fetch.c:1047:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fetch.c:1049:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!fetch_head->fp)
                            ^
                             {
/datasets/git/builtin/fetch.c:1066:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < url_len; ++i)
        ^
/datasets/git/builtin/fetch.c:1066:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < url_len; ++i)
                                     ^
                                      {
/datasets/git/builtin/fetch.c:1067:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ('\n' == url[i])
                                   ^
                                    {
/datasets/git/builtin/fetch.c:1069:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/fetch.c:1087:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!fetch_head->fp || !atomic_fetch)
                                             ^
                                              {
/datasets/git/builtin/fetch.c:1094:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!fetch_head->fp)
                            ^
                             {
/datasets/git/builtin/fetch.c:1097:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(fetch_head->fp);
        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:1097:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/fetch.c:1110:12: warning: function 'store_updated_refs' has cognitive complexity of 96 (threshold 25) [readability-function-cognitive-complexity]
static int store_updated_refs(const char *raw_url, const char *remote_name,
           ^
/datasets/git/builtin/fetch.c:1123:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (verbosity >= 0)
        ^
/datasets/git/builtin/fetch.c:1126:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (raw_url)
        ^
/datasets/git/builtin/fetch.c:1128:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/builtin/fetch.c:1131:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!connectivity_checked) {
        ^
/datasets/git/builtin/fetch.c:1135:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (check_connected(iterate_ref_map, &rm, &opt)) {
                ^
/datasets/git/builtin/fetch.c:1137:4: note: +1
                        goto abort;
                        ^
/datasets/git/builtin/fetch.c:1148:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (want_status = FETCH_HEAD_MERGE;
        ^
/datasets/git/builtin/fetch.c:1151:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (rm = ref_map; rm; rm = rm->next) {
                ^
/datasets/git/builtin/fetch.c:1154:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (rm->status == REF_STATUS_REJECT_SHALLOW) {
                        ^
/datasets/git/builtin/fetch.c:1155:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (want_status == FETCH_HEAD_MERGE)
                                ^
/datasets/git/builtin/fetch.c:1157:20: note: +5, including nesting penalty of 4, nesting level increased to 5
                                                rm->peer_ref ? rm->peer_ref->name : rm->name);
                                                             ^
/datasets/git/builtin/fetch.c:1170:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (fetch_head->fp) {
                        ^
/datasets/git/builtin/fetch.c:1181:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!starts_with(rm->name, "refs/tags/"))
                                ^
/datasets/git/builtin/fetch.c:1183:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!commit) {
                                ^
/datasets/git/builtin/fetch.c:1187:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (!commit)
                                        ^
/datasets/git/builtin/fetch.c:1192:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (rm->fetch_head_status != want_status)
                        ^
/datasets/git/builtin/fetch.c:1195:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (rm->peer_ref) {
                        ^
/datasets/git/builtin/fetch.c:1202:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (recurse_submodules != RECURSE_SUBMODULES_OFF &&
                        ^
/datasets/git/builtin/fetch.c:1202:53: note: +1
                        if (recurse_submodules != RECURSE_SUBMODULES_OFF &&
                                                                         ^
/datasets/git/builtin/fetch.c:1203:23: note: +1
                            (!rm->peer_ref || !oideq(&ref->old_oid, &ref->new_oid))) {
                                           ^
/datasets/git/builtin/fetch.c:1207:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!strcmp(rm->name, "HEAD")) {
                        ^
/datasets/git/builtin/fetch.c:1211:9: note: +1, nesting level increased to 3
                        else if (skip_prefix(rm->name, "refs/heads/", &what))
                             ^
/datasets/git/builtin/fetch.c:1213:9: note: +1, nesting level increased to 3
                        else if (skip_prefix(rm->name, "refs/tags/", &what))
                             ^
/datasets/git/builtin/fetch.c:1215:9: note: +1, nesting level increased to 3
                        else if (skip_prefix(rm->name, "refs/remotes/", &what))
                             ^
/datasets/git/builtin/fetch.c:1217:4: note: +1, nesting level increased to 3
                        else {
                        ^
/datasets/git/builtin/fetch.c:1223:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (i = url_len - 1; url[i] == '/' && 0 <= i; i--)
                        ^
/datasets/git/builtin/fetch.c:1223:40: note: +1
                        for (i = url_len - 1; url[i] == '/' && 0 <= i; i--)
                                                            ^
/datasets/git/builtin/fetch.c:1226:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (4 < i && !strncmp(".git", url + i - 3, 4))
                        ^
/datasets/git/builtin/fetch.c:1226:14: note: +1
                        if (4 < i && !strncmp(".git", url + i - 3, 4))
                                  ^
/datasets/git/builtin/fetch.c:1230:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (*what) {
                        ^
/datasets/git/builtin/fetch.c:1231:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (*kind)
                                ^
/datasets/git/builtin/fetch.c:1241:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ref) {
                        ^
/datasets/git/builtin/fetch.c:1245:11: note: +1, nesting level increased to 3
                        } else if (write_fetch_head || dry_run) {
                               ^
/datasets/git/builtin/fetch.c:1245:32: note: +1
                        } else if (write_fetch_head || dry_run) {
                                                    ^
/datasets/git/builtin/fetch.c:1252:19: note: +4, including nesting penalty of 3, nesting level increased to 4
                                               *kind ? kind : "branch", NULL,
                                                     ^
/datasets/git/builtin/fetch.c:1253:19: note: +4, including nesting penalty of 3, nesting level increased to 4
                                               *what ? what : "HEAD",
                                                     ^
/datasets/git/builtin/fetch.c:1256:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (note.len) {
                        ^
/datasets/git/builtin/fetch.c:1257:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!shown_url) {
                                ^
/datasets/git/builtin/fetch.c:1267:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (rc & STORE_REF_ERROR_DF_CONFLICT)
        ^
/datasets/git/builtin/fetch.c:1272:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (advice_enabled(ADVICE_FETCH_SHOW_FORCED_UPDATES)) {
        ^
/datasets/git/builtin/fetch.c:1273:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!fetch_show_forced_updates) {
                ^
/datasets/git/builtin/fetch.c:1275:10: note: +1, nesting level increased to 2
                } else if (forced_updates_ms > FORCED_UPDATES_DELAY_WARNING_IN_MS) {
                       ^
/datasets/git/builtin/fetch.c:1110:31: warning: 2 adjacent parameters of 'store_updated_refs' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int store_updated_refs(const char *raw_url, const char *remote_name,
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:1110:43: note: the first parameter in the range is 'raw_url'
static int store_updated_refs(const char *raw_url, const char *remote_name,
                                          ^~~~~~~
/datasets/git/builtin/fetch.c:1110:64: note: the last parameter in the range is 'remote_name'
static int store_updated_refs(const char *raw_url, const char *remote_name,
                                                               ^~~~~~~~~~~
/datasets/git/builtin/fetch.c:1115:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int url_len, i, rc = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:1115:6: warning: variable 'url_len' is not initialized [cppcoreguidelines-init-variables]
        int url_len, i, rc = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fetch.c:1115:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int url_len, i, rc = 0;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fetch.c:1115:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fetch.c:1115:18: warning: variable name 'rc' is too short, expected at least 3 characters [readability-identifier-length]
        int url_len, i, rc = 0;
                        ^
/datasets/git/builtin/fetch.c:1117:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *what, *kind;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:1117:14: warning: variable 'what' is not initialized [cppcoreguidelines-init-variables]
        const char *what, *kind;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fetch.c:1117:21: warning: variable 'kind' is not initialized [cppcoreguidelines-init-variables]
        const char *what, *kind;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fetch.c:1118:14: warning: variable 'rm' is not initialized [cppcoreguidelines-init-variables]
        struct ref *rm;
                    ^
                       = NULL
/datasets/git/builtin/fetch.c:1118:14: warning: variable name 'rm' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fetch.c:1119:8: warning: variable 'url' is not initialized [cppcoreguidelines-init-variables]
        char *url;
              ^
                  = NULL
/datasets/git/builtin/fetch.c:1120:6: warning: variable 'want_status' is not initialized [cppcoreguidelines-init-variables]
        int want_status;
            ^
                        = 0
/datasets/git/builtin/fetch.c:1118:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct ref *rm;
        ^
/datasets/git/builtin/fetch.c:1123:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (verbosity >= 0)
                           ^
                            {
/datasets/git/builtin/fetch.c:1126:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (raw_url)
                    ^
                     {
/datasets/git/builtin/fetch.c:1128:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/fetch.c:1151:22: warning: backward branch (for loop) is ID-dependent due to variable reference to 'rm' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (rm = ref_map; rm; rm = rm->next) {
                                   ^
/datasets/git/builtin/fetch.c:1155:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (want_status == FETCH_HEAD_MERGE)
                                                                    ^
                                                                     {
/datasets/git/builtin/fetch.c:1181:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!starts_with(rm->name, "refs/tags/"))
                                                                         ^
                                                                          {
/datasets/git/builtin/fetch.c:1187:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        if (!commit)
                                                    ^
                                                     {
/datasets/git/builtin/fetch.c:1192:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (rm->fetch_head_status != want_status)
                                                                 ^
                                                                  {
/datasets/git/builtin/fetch.c:1211:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (skip_prefix(rm->name, "refs/heads/", &what))
                                                                             ^
                                                                              {
/datasets/git/builtin/fetch.c:1213:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (skip_prefix(rm->name, "refs/tags/", &what))
                                                                            ^
                                                                             {
/datasets/git/builtin/fetch.c:1215:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (skip_prefix(rm->name, "refs/remotes/", &what))
                                                                               ^
                                                                                {
/datasets/git/builtin/fetch.c:1222:14: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        url_len = strlen(url);
                                  ^
/datasets/git/builtin/fetch.c:1223:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = url_len - 1; url[i] == '/' && 0 <= i; i--)
                        ^
/datasets/git/builtin/fetch.c:1223:26: warning: backward branch (for loop) is ID-dependent due to variable reference to 'url' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (i = url_len - 1; url[i] == '/' && 0 <= i; i--)
                                              ^
/datasets/git/builtin/fetch.c:1223:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (i = url_len - 1; url[i] == '/' && 0 <= i; i--)
                                                                           ^
                                                                            {
/datasets/git/builtin/fetch.c:1226:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (4 < i && !strncmp(".git", url + i - 3, 4))
                                                                      ^
                                                                       {
/datasets/git/builtin/fetch.c:1231:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (*kind)
                                          ^
                                           {
/datasets/git/builtin/fetch.c:1242:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                rc |= update_local_ref(ref, transaction, what,
                                ^~
/datasets/git/builtin/fetch.c:1258:6: warning: the value returned by this function should be used [cert-err33-c]
                                        fprintf(stderr, _("From %.*s\n"),
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:1258:6: note: cast the expression to void to silence this warning
/datasets/git/builtin/fetch.c:1262:5: warning: the value returned by this function should be used [cert-err33-c]
                                fprintf(stderr, " %s\n", note.buf);
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:1262:5: note: cast the expression to void to silence this warning
/datasets/git/builtin/fetch.c:1267:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (rc & STORE_REF_ERROR_DF_CONFLICT)
            ^~
/datasets/git/builtin/fetch.c:1267:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (rc & STORE_REF_ERROR_DF_CONFLICT)
                                             ^
                                              {
/datasets/git/builtin/fetch.c:1275:34: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                } else if (forced_updates_ms > FORCED_UPDATES_DELAY_WARNING_IN_MS) {
                                               ^
/datasets/git/builtin/fetch.c:33:45: note: expanded from macro 'FORCED_UPDATES_DELAY_WARNING_IN_MS'
#define FORCED_UPDATES_DELAY_WARNING_IN_MS (10 * 1000)
                                            ^
/datasets/git/builtin/fetch.c:1275:34: note: make conversion explicit to silence this warning
                } else if (forced_updates_ms > FORCED_UPDATES_DELAY_WARNING_IN_MS) {
                                               ^
/datasets/git/builtin/fetch.c:33:45: note: expanded from macro 'FORCED_UPDATES_DELAY_WARNING_IN_MS'
#define FORCED_UPDATES_DELAY_WARNING_IN_MS (10 * 1000)
                                            ^~~~~~~~~
/datasets/git/builtin/fetch.c:1275:34: note: perform multiplication in a wider type
                } else if (forced_updates_ms > FORCED_UPDATES_DELAY_WARNING_IN_MS) {
                                               ^
/datasets/git/builtin/fetch.c:33:45: note: expanded from macro 'FORCED_UPDATES_DELAY_WARNING_IN_MS'
#define FORCED_UPDATES_DELAY_WARNING_IN_MS (10 * 1000)
                                            ^~
/datasets/git/builtin/fetch.c:1277:5: warning: narrowing conversion from 'uint64_t' (aka 'unsigned long') to 'double' [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                forced_updates_ms / 1000.0);
                                ^
/datasets/git/builtin/fetch.c:1277:25: warning: 1000.0 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                forced_updates_ms / 1000.0);
                                                    ^
/datasets/git/builtin/fetch.c:1294:14: warning: variable name 'rm' is too short, expected at least 3 characters [readability-identifier-length]
        struct ref *rm = ref_map;
                    ^
/datasets/git/builtin/fetch.c:1296:14: warning: variable 'r' is not initialized [cppcoreguidelines-init-variables]
        struct ref *r;
                    ^
                      = NULL
/datasets/git/builtin/fetch.c:1296:14: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fetch.c:1305:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (deepen)
                   ^
                    {
/datasets/git/builtin/fetch.c:1312:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (refetch)
                    ^
                     {
/datasets/git/builtin/fetch.c:1320:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (r = rm; r; r = r->next) {
        ^
/datasets/git/builtin/fetch.c:1320:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'r' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (r = rm; r; r = r->next) {
                     ^
/datasets/git/builtin/fetch.c:1322:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                OBJECT_INFO_SKIP_FETCH_OBJECT))
                                                                               ^
                                                                                {
/datasets/git/builtin/fetch.c:1336:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/builtin/fetch.c:1347:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret)
                        ^
                         {
/datasets/git/builtin/fetch.c:1364:12: warning: function 'prune_refs' has cognitive complexity of 27 (threshold 25) [readability-function-cognitive-complexity]
static int prune_refs(struct refspec *rs,
           ^
/datasets/git/builtin/fetch.c:1374:3: note: +1, including nesting penalty of 0, nesting level increased to 1
                ? _("   (%s will become dangling)")
                ^
/datasets/git/builtin/fetch.c:1377:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (raw_url)
        ^
/datasets/git/builtin/fetch.c:1379:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/builtin/fetch.c:1383:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = url_len - 1; url[i] == '/' && 0 <= i; i--)
        ^
/datasets/git/builtin/fetch.c:1383:38: note: +1
        for (i = url_len - 1; url[i] == '/' && 0 <= i; i--)
                                            ^
/datasets/git/builtin/fetch.c:1387:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (4 < i && !strncmp(".git", url + i - 3, 4))
        ^
/datasets/git/builtin/fetch.c:1387:12: note: +1
        if (4 < i && !strncmp(".git", url + i - 3, 4))
                  ^
/datasets/git/builtin/fetch.c:1390:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!dry_run) {
        ^
/datasets/git/builtin/fetch.c:1391:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (transaction) {
                ^
/datasets/git/builtin/fetch.c:1392:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (ref = stale_refs; ref; ref = ref->next) {
                        ^
/datasets/git/builtin/fetch.c:1395:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (result)
                                ^
/datasets/git/builtin/fetch.c:1398:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/fetch.c:1401:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (ref = stale_refs; ref; ref = ref->next)
                        ^
/datasets/git/builtin/fetch.c:1409:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (verbosity >= 0) {
        ^
/datasets/git/builtin/fetch.c:1412:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (ref = stale_refs; ref; ref = ref->next) {
                ^
/datasets/git/builtin/fetch.c:1414:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!shown_url) {
                        ^
/datasets/git/builtin/fetch.c:1364:39: warning: parameter name 'rs' is too short, expected at least 3 characters [readability-identifier-length]
static int prune_refs(struct refspec *rs,
                                      ^
/datasets/git/builtin/fetch.c:1369:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int url_len, i, result = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:1369:6: warning: variable 'url_len' is not initialized [cppcoreguidelines-init-variables]
        int url_len, i, result = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fetch.c:1369:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int url_len, i, result = 0;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fetch.c:1369:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fetch.c:1370:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct ref *ref, *stale_refs = get_stale_heads(rs, ref_map);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:1370:14: warning: variable 'ref' is not initialized [cppcoreguidelines-init-variables]
        struct ref *ref, *stale_refs = get_stale_heads(rs, ref_map);
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fetch.c:1372:8: warning: variable 'url' is not initialized [cppcoreguidelines-init-variables]
        char *url;
              ^
                  = NULL
/datasets/git/builtin/fetch.c:1377:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (raw_url)
                    ^
                     {
/datasets/git/builtin/fetch.c:1379:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/fetch.c:1382:12: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        url_len = strlen(url);
                  ^
/datasets/git/builtin/fetch.c:1383:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = url_len - 1; url[i] == '/' && 0 <= i; i--)
        ^
/datasets/git/builtin/fetch.c:1383:24: warning: backward branch (for loop) is ID-dependent due to variable reference to 'url' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = url_len - 1; url[i] == '/' && 0 <= i; i--)
                              ^
/datasets/git/builtin/fetch.c:1383:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = url_len - 1; url[i] == '/' && 0 <= i; i--)
                                                           ^
                                                            {
/datasets/git/builtin/fetch.c:1387:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (4 < i && !strncmp(".git", url + i - 3, 4))
                                                      ^
                                                       {
/datasets/git/builtin/fetch.c:1392:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (ref = stale_refs; ref; ref = ref->next) {
                        ^
/datasets/git/builtin/fetch.c:1392:27: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (ref = stale_refs; ref; ref = ref->next) {
                                               ^
/datasets/git/builtin/fetch.c:1395:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (result)
                                           ^
                                            {
/datasets/git/builtin/fetch.c:1401:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (ref = stale_refs; ref; ref = ref->next)
                        ^
/datasets/git/builtin/fetch.c:1370:2: note: inferred assignment of ID-dependent value from ID-dependent variable stale_refs [altera-id-dependent-backward-branch]
        struct ref *ref, *stale_refs = get_stale_heads(rs, ref_map);
        ^
/datasets/git/builtin/fetch.c:1401:27: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (ref = stale_refs; ref; ref = ref->next)
                                               ^
/datasets/git/builtin/fetch.c:1401:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (ref = stale_refs; ref; ref = ref->next)
                                                                    ^
                                                                     {
/datasets/git/builtin/fetch.c:1412:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (ref = stale_refs; ref; ref = ref->next) {
                ^
/datasets/git/builtin/fetch.c:1412:26: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (ref = stale_refs; ref; ref = ref->next) {
                                       ^
/datasets/git/builtin/fetch.c:1413:18: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                        struct strbuf sb = STRBUF_INIT;
                                      ^
/datasets/git/builtin/fetch.c:1415:5: warning: the value returned by this function should be used [cert-err33-c]
                                fprintf(stderr, _("From %.*s\n"), url_len, url);
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:1415:5: note: cast the expression to void to silence this warning
/datasets/git/builtin/fetch.c:1421:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, " %s\n",sb.buf);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:1421:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/fetch.c:1436:14: warning: variable 'path' is not initialized [cppcoreguidelines-init-variables]
        const char *path;
                    ^
                         = NULL
/datasets/git/builtin/fetch.c:1437:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; ref_map; ref_map = ref_map->next)
        ^
/datasets/git/builtin/fetch.c:1437:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ref_map' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; ref_map; ref_map = ref_map->next)
               ^
/datasets/git/builtin/fetch.c:1437:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (; ref_map; ref_map = ref_map->next)
                                                ^
                                                 {
/datasets/git/builtin/fetch.c:1440:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                    (path = branch_checked_out(ref_map->peer_ref->name)))
                     ^
/datasets/git/builtin/fetch.c:1440:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/builtin/fetch.c:1440:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/builtin/fetch.c:1440:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    (path = branch_checked_out(ref_map->peer_ref->name)))
                                                                         ^
                                                                          {
/datasets/git/builtin/fetch.c:1449:8: warning: variable name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
        FILE *fp = fopen_for_writing(filename);
              ^
/datasets/git/builtin/fetch.c:1451:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!fp)
                ^
                 {
/datasets/git/builtin/fetch.c:1453:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(fp);
        ^~~~~~~~~~
/datasets/git/builtin/fetch.c:1453:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/fetch.c:1459:6: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        int r = transport_set_option(transport, name, value);
            ^
/datasets/git/builtin/fetch.c:1460:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (r < 0)
                  ^
                   {
/datasets/git/builtin/fetch.c:1463:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (r > 0)
                  ^
                   {
/datasets/git/builtin/fetch.c:1482:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/fetch.c:1482:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fetch.c:1484:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < negotiation_tip.nr; i++) {
        ^
/datasets/git/builtin/fetch.c:1485:15: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
                const char *s = negotiation_tip.items[i].string;
                            ^
/datasets/git/builtin/fetch.c:1486:7: warning: variable 'old_nr' is not initialized [cppcoreguidelines-init-variables]
                int old_nr;
                    ^
                           = 0
/datasets/git/builtin/fetch.c:1489:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (get_oid(s, &oid))
                                             ^
                                              {
/datasets/git/builtin/fetch.c:1491:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!has_object(the_repository, &oid, 0))
                                                                 ^
                                                                  {
/datasets/git/builtin/fetch.c:1496:12: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                old_nr = oids->nr;
                         ^
/datasets/git/builtin/fetch.c:1498:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (old_nr == oids->nr)
                                       ^
                                        {
/datasets/git/builtin/fetch.c:1507:20: warning: variable 'transport' is not initialized [cppcoreguidelines-init-variables]
        struct transport *transport;
                          ^
                                    = NULL
/datasets/git/builtin/fetch.c:1512:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (upload_pack)
                        ^
                         {
/datasets/git/builtin/fetch.c:1514:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (keep)
                 ^
                  {
/datasets/git/builtin/fetch.c:1516:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (depth)
                  ^
                   {
/datasets/git/builtin/fetch.c:1518:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (deepen && deepen_since)
                                   ^
                                    {
/datasets/git/builtin/fetch.c:1520:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (deepen && deepen_not.nr)
                                    ^
                                     {
/datasets/git/builtin/fetch.c:1523:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (deepen_relative)
                            ^
                             {
/datasets/git/builtin/fetch.c:1525:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (update_shallow)
                           ^
                            {
/datasets/git/builtin/fetch.c:1527:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (refetch)
                    ^
                     {
/datasets/git/builtin/fetch.c:1536:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (transport->smart_options)
                                             ^
                                              {
/datasets/git/builtin/fetch.c:1538:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/fetch.c:1549:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int retcode, cannot_reuse;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:1549:6: warning: variable 'retcode' is not initialized [cppcoreguidelines-init-variables]
        int retcode, cannot_reuse;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fetch.c:1549:15: warning: variable 'cannot_reuse' is not initialized [cppcoreguidelines-init-variables]
        int retcode, cannot_reuse;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fetch.c:1578:12: warning: function 'do_fetch' has cognitive complexity of 87 (threshold 25) [readability-function-cognitive-complexity]
static int do_fetch(struct transport *transport,
           ^
/datasets/git/builtin/fetch.c:1592:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (tags == TAGS_DEFAULT) {
        ^
/datasets/git/builtin/fetch.c:1593:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (transport->remote->fetch_tags == 2)
                ^
/datasets/git/builtin/fetch.c:1595:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (transport->remote->fetch_tags == -1)
                ^
/datasets/git/builtin/fetch.c:1600:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!append && write_fetch_head) {
        ^
/datasets/git/builtin/fetch.c:1600:14: note: +1
        if (!append && write_fetch_head) {
                    ^
/datasets/git/builtin/fetch.c:1602:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (retcode)
                ^
/datasets/git/builtin/fetch.c:1606:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (rs->nr) {
        ^
/datasets/git/builtin/fetch.c:1616:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < rs->nr; i++) {
                ^
/datasets/git/builtin/fetch.c:1617:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!rs->items[i].exact_sha1) {
                        ^
/datasets/git/builtin/fetch.c:1622:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/fetch.c:1625:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (transport->remote->fetch.nr)
                ^
/datasets/git/builtin/fetch.c:1628:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (branch_has_merge_config(branch) &&
                ^
/datasets/git/builtin/fetch.c:1628:39: note: +1
                if (branch_has_merge_config(branch) &&
                                                    ^
/datasets/git/builtin/fetch.c:1631:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (i = 0; i < branch->merge_nr; i++) {
                        ^
/datasets/git/builtin/fetch.c:1638:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (tags == TAGS_SET || tags == TAGS_DEFAULT) {
        ^
/datasets/git/builtin/fetch.c:1638:23: note: +1
        if (tags == TAGS_SET || tags == TAGS_DEFAULT) {
                             ^
/datasets/git/builtin/fetch.c:1640:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (transport_ls_refs_options.ref_prefixes.nr)
                ^
/datasets/git/builtin/fetch.c:1645:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (must_list_refs) {
        ^
/datasets/git/builtin/fetch.c:1650:4: note: +1, nesting level increased to 1
        } else
          ^
/datasets/git/builtin/fetch.c:1657:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!update_head_ok)
        ^
/datasets/git/builtin/fetch.c:1661:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (retcode)
        ^
/datasets/git/builtin/fetch.c:1664:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (atomic_fetch) {
        ^
/datasets/git/builtin/fetch.c:1666:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!transaction) {
                ^
/datasets/git/builtin/fetch.c:1668:4: note: +1
                        goto cleanup;
                        ^
/datasets/git/builtin/fetch.c:1672:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (tags == TAGS_DEFAULT && autotags)
        ^
/datasets/git/builtin/fetch.c:1672:27: note: +1
        if (tags == TAGS_DEFAULT && autotags)
                                 ^
/datasets/git/builtin/fetch.c:1674:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (prune) {
        ^
/datasets/git/builtin/fetch.c:1680:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (rs->nr) {
                ^
/datasets/git/builtin/fetch.c:1682:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/fetch.c:1687:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (retcode != 0)
                ^
/datasets/git/builtin/fetch.c:1691:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (fetch_and_consume_refs(transport, transaction, ref_map, &fetch_head)) {
        ^
/datasets/git/builtin/fetch.c:1693:3: note: +1
                goto cleanup;
                ^
/datasets/git/builtin/fetch.c:1700:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (tags == TAGS_DEFAULT && autotags) {
        ^
/datasets/git/builtin/fetch.c:1700:27: note: +1
        if (tags == TAGS_DEFAULT && autotags) {
                                 ^
/datasets/git/builtin/fetch.c:1704:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (tags_ref_map) {
                ^
/datasets/git/builtin/fetch.c:1713:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (backfill_tags(transport, transaction, tags_ref_map,
                        ^
/datasets/git/builtin/fetch.c:1721:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (transaction) {
        ^
/datasets/git/builtin/fetch.c:1722:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (retcode)
                ^
/datasets/git/builtin/fetch.c:1726:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (retcode) {
                ^
/datasets/git/builtin/fetch.c:1730:4: note: +1
                        goto cleanup;
                        ^
/datasets/git/builtin/fetch.c:1736:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (set_upstream) {
        ^
/datasets/git/builtin/fetch.c:1751:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (rm = ref_map; rm; rm = rm->next) {
                ^
/datasets/git/builtin/fetch.c:1752:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!rm->peer_ref) {
                        ^
/datasets/git/builtin/fetch.c:1753:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (source_ref) {
                                ^
/datasets/git/builtin/fetch.c:1755:6: note: +1
                                        goto cleanup;
                                        ^
/datasets/git/builtin/fetch.c:1756:7: note: +1, nesting level increased to 4
                                } else {
                                  ^
/datasets/git/builtin/fetch.c:1761:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (source_ref) {
                ^
/datasets/git/builtin/fetch.c:1762:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!branch) {
                        ^
/datasets/git/builtin/fetch.c:1769:5: note: +1
                                goto cleanup;
                                ^
/datasets/git/builtin/fetch.c:1772:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!strcmp(source_ref->name, "HEAD") ||
                        ^
/datasets/git/builtin/fetch.c:1772:42: note: +1
                        if (!strcmp(source_ref->name, "HEAD") ||
                                                              ^
/datasets/git/builtin/fetch.c:1778:9: note: +1, nesting level increased to 3
                        else if (starts_with(source_ref->name, "refs/remotes/"))
                             ^
/datasets/git/builtin/fetch.c:1780:9: note: +1, nesting level increased to 3
                        else if (starts_with(source_ref->name, "refs/tags/"))
                             ^
/datasets/git/builtin/fetch.c:1782:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/builtin/fetch.c:1784:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/fetch.c:1791:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (retcode && transaction) {
        ^
/datasets/git/builtin/fetch.c:1791:14: note: +1
        if (retcode && transaction) {
                    ^
/datasets/git/builtin/fetch.c:1579:23: warning: parameter name 'rs' is too short, expected at least 3 characters [readability-identifier-length]
                    struct refspec *rs)
                                    ^
/datasets/git/builtin/fetch.c:1585:20: warning: variable 'remote_refs' is not initialized [cppcoreguidelines-init-variables]
        const struct ref *remote_refs;
                          ^
                                      = NULL
/datasets/git/builtin/fetch.c:1593:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (transport->remote->fetch_tags == 2)
                                                       ^
                                                        {
/datasets/git/builtin/fetch.c:1595:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (transport->remote->fetch_tags == -1)
                                                        ^
                                                         {
/datasets/git/builtin/fetch.c:1602:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (retcode)
                            ^
                             {
/datasets/git/builtin/fetch.c:1607:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/builtin/fetch.c:1607:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fetch.c:1616:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < rs->nr; i++) {
                ^
/datasets/git/builtin/fetch.c:1625:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (transport->remote->fetch.nr)
                                                ^
                                                 {
/datasets/git/builtin/fetch.c:1630:8: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                        int i;
                            ^
                              = 0
/datasets/git/builtin/fetch.c:1630:8: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fetch.c:1631:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = 0; i < branch->merge_nr; i++) {
                        ^
/datasets/git/builtin/fetch.c:1640:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (transport_ls_refs_options.ref_prefixes.nr)
                                                              ^
                                                               {
/datasets/git/builtin/fetch.c:1650:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/builtin/fetch.c:1657:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!update_head_ok)
                            ^
                             {
/datasets/git/builtin/fetch.c:1661:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (retcode)
                    ^
                     {
/datasets/git/builtin/fetch.c:1672:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (tags == TAGS_DEFAULT && autotags)
                                             ^
                                              {
/datasets/git/builtin/fetch.c:1687:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (retcode != 0)
                                 ^
                                  {
/datasets/git/builtin/fetch.c:1701:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                struct ref *tags_ref_map = NULL, **tail = &tags_ref_map;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:1714:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                          &fetch_head))
                                                       ^
                                                        {
/datasets/git/builtin/fetch.c:1722:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (retcode)
                            ^
                             {
/datasets/git/builtin/fetch.c:1738:15: warning: variable 'rm' is not initialized [cppcoreguidelines-init-variables]
                struct ref *rm;
                            ^
                               = NULL
/datasets/git/builtin/fetch.c:1738:15: warning: variable name 'rm' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fetch.c:1751:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (rm = ref_map; rm; rm = rm->next) {
                ^
/datasets/git/builtin/fetch.c:1751:22: warning: backward branch (for loop) is ID-dependent due to variable reference to 'rm' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (rm = ref_map; rm; rm = rm->next) {
                                   ^
/datasets/git/builtin/fetch.c:1773:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            starts_with(source_ref->name, "refs/heads/"))
                                                                         ^
                                                                          {
/datasets/git/builtin/fetch.c:1778:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (starts_with(source_ref->name, "refs/remotes/"))
                                                                                ^
                                                                                 {
/datasets/git/builtin/fetch.c:1780:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (starts_with(source_ref->name, "refs/tags/"))
                                                                             ^
                                                                              {
/datasets/git/builtin/fetch.c:1782:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/builtin/fetch.c:1805:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!remote->skip_default_update)
                                         ^
                                          {
/datasets/git/builtin/fetch.c:1810:8: warning: accessing fields in struct 'remote_group_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct remote_group_data {
       ^
/datasets/git/builtin/fetch.c:1810:8: note: use "__attribute__((aligned(16)))" to align struct 'remote_group_data' to 16 bytes
/datasets/git/builtin/fetch.c:1815:29: warning: 2 adjacent parameters of 'get_remote_group' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int get_remote_group(const char *key, const char *value, void *priv)
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:1815:41: note: the first parameter in the range is 'key'
static int get_remote_group(const char *key, const char *value, void *priv)
                                        ^~~
/datasets/git/builtin/fetch.c:1815:58: note: the last parameter in the range is 'value'
static int get_remote_group(const char *key, const char *value, void *priv)
                                                         ^~~~~
/datasets/git/builtin/fetch.c:1817:28: warning: variable name 'g' is too short, expected at least 3 characters [readability-identifier-length]
        struct remote_group_data *g = priv;
                                  ^
/datasets/git/builtin/fetch.c:1815:46: note: inferred assignment of ID-dependent value from ID-dependent variable wordlen [altera-id-dependent-backward-branch]
static int get_remote_group(const char *key, const char *value, void *priv)
                                             ^
/datasets/git/builtin/fetch.c:1821:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (*value) {
                ^
/datasets/git/builtin/fetch.c:1821:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'value' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (*value) {
                       ^
/datasets/git/builtin/fetch.c:1824:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (wordlen >= 1)
                                         ^
                                          {
/datasets/git/builtin/fetch.c:1836:16: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int prev_nr = list->nr;
                      ^
/datasets/git/builtin/fetch.c:1837:27: warning: variable name 'g' is too short, expected at least 3 characters [readability-identifier-length]
        struct remote_group_data g;
                                 ^
/datasets/git/builtin/fetch.c:1843:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!remote_is_configured(remote, 0))
                                                     ^
                                                      {
/datasets/git/builtin/fetch.c:1852:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (dry_run)
                    ^
                     {
/datasets/git/builtin/fetch.c:1854:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prune != -1)
                        ^
                         {
/datasets/git/builtin/fetch.c:1856:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prune_tags != -1)
                             ^
                              {
/datasets/git/builtin/fetch.c:1858:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (update_head_ok)
                           ^
                            {
/datasets/git/builtin/fetch.c:1860:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (force)
                  ^
                   {
/datasets/git/builtin/fetch.c:1862:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (keep)
                 ^
                  {
/datasets/git/builtin/fetch.c:1864:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (recurse_submodules == RECURSE_SUBMODULES_ON)
                                                        ^
                                                         {
/datasets/git/builtin/fetch.c:1866:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (recurse_submodules == RECURSE_SUBMODULES_ON_DEMAND)
                                                                    ^
                                                                     {
/datasets/git/builtin/fetch.c:1868:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (tags == TAGS_SET)
                             ^
                              {
/datasets/git/builtin/fetch.c:1870:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (tags == TAGS_UNSET)
                                    ^
                                     {
/datasets/git/builtin/fetch.c:1872:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (verbosity >= 2)
                           ^
                            {
/datasets/git/builtin/fetch.c:1874:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (verbosity >= 1)
                           ^
                            {
/datasets/git/builtin/fetch.c:1876:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (verbosity < 0)
                               ^
                                {
/datasets/git/builtin/fetch.c:1878:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (family == TRANSPORT_FAMILY_IPV4)
                                            ^
                                             {
/datasets/git/builtin/fetch.c:1880:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (family == TRANSPORT_FAMILY_IPV6)
                                                 ^
                                                  {
/datasets/git/builtin/fetch.c:1886:8: warning: accessing fields in struct 'parallel_fetch_state' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct parallel_fetch_state {
       ^
/datasets/git/builtin/fetch.c:1886:8: note: use "__attribute__((aligned(32)))" to align struct 'parallel_fetch_state' to 32 bytes
/datasets/git/builtin/fetch.c:1892:52: warning: parameter name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
static int fetch_next_remote(struct child_process *cp, struct strbuf *out,
                                                   ^
/datasets/git/builtin/fetch.c:1892:71: warning: parameter 'out' is unused [misc-unused-parameters]
static int fetch_next_remote(struct child_process *cp, struct strbuf *out,
                                                                      ^
/datasets/git/builtin/fetch.c:1893:15: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
                             void *cb, void **task_cb)
                                   ^
/datasets/git/builtin/fetch.c:1896:8: warning: variable 'remote' is not initialized [cppcoreguidelines-init-variables]
        char *remote;
              ^
                     = NULL
/datasets/git/builtin/fetch.c:1898:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (state->next < 0 || state->next >= state->remotes->nr)
                                                                 ^
                                                                  {
/datasets/git/builtin/fetch.c:1908:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (verbosity >= 0)
                           ^
                            {
/datasets/git/builtin/fetch.c:1914:49: warning: parameter 'out' is unused [misc-unused-parameters]
static int fetch_failed_to_start(struct strbuf *out, void *cb, void *task_cb)
                                                ^
/datasets/git/builtin/fetch.c:1914:54: warning: 2 adjacent parameters of 'fetch_failed_to_start' of similar type ('void *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int fetch_failed_to_start(struct strbuf *out, void *cb, void *task_cb)
                                                     ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:1914:60: note: the first parameter in the range is 'cb'
static int fetch_failed_to_start(struct strbuf *out, void *cb, void *task_cb)
                                                           ^~
/datasets/git/builtin/fetch.c:1914:70: note: the last parameter in the range is 'task_cb'
static int fetch_failed_to_start(struct strbuf *out, void *cb, void *task_cb)
                                                                     ^~~~~~~
/datasets/git/builtin/fetch.c:1914:60: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int fetch_failed_to_start(struct strbuf *out, void *cb, void *task_cb)
                                                           ^
/datasets/git/builtin/fetch.c:1925:6: warning: 2 adjacent parameters of 'fetch_finished' of similar type ('void *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                          void *cb, void *task_cb)
                          ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:1925:12: note: the first parameter in the range is 'cb'
                          void *cb, void *task_cb)
                                ^~
/datasets/git/builtin/fetch.c:1925:22: note: the last parameter in the range is 'task_cb'
                          void *cb, void *task_cb)
                                          ^~~~~~~
/datasets/git/builtin/fetch.c:1925:12: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
                          void *cb, void *task_cb)
                                ^
/datasets/git/builtin/fetch.c:1941:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, result = 0;
        ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:1941:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, result = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fetch.c:1941:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fetch.c:1946:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (errcode)
                            ^
                             {
/datasets/git/builtin/fetch.c:1972:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/builtin/fetch.c:1973:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < list->nr; i++) {
                ^
/datasets/git/builtin/fetch.c:1979:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (verbosity >= 0)
                                           ^
                                            {
/datasets/git/builtin/fetch.c:2002:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (filter_options.no_filter)
                                     ^
                                      {
/datasets/git/builtin/fetch.c:2009:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!has_promisor_remote() && !filter_options.choice)
                                                             ^
                                                              {
/datasets/git/builtin/fetch.c:2028:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!filter_options.choice)
                                   ^
                                    {
/datasets/git/builtin/fetch.c:2030:2: warning: redundant return statement at the end of a function with a void return type [readability-redundant-control-flow]
        return;
~~~~~~~~^~~~~~~
/datasets/git/builtin/fetch.c:2033:12: warning: function 'fetch_one' has cognitive complexity of 28 (threshold 25) [readability-function-cognitive-complexity]
static int fetch_one(struct remote *remote, int argc, const char **argv,
           ^
/datasets/git/builtin/fetch.c:2042:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!remote)
        ^
/datasets/git/builtin/fetch.c:2048:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (prune < 0) {
        ^
/datasets/git/builtin/fetch.c:2050:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (0 <= remote->prune)
                ^
/datasets/git/builtin/fetch.c:2052:8: note: +1, nesting level increased to 2
                else if (0 <= fetch_prune_config)
                     ^
/datasets/git/builtin/fetch.c:2054:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/fetch.c:2058:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (prune_tags < 0) {
        ^
/datasets/git/builtin/fetch.c:2060:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (0 <= remote->prune_tags)
                ^
/datasets/git/builtin/fetch.c:2062:8: note: +1, nesting level increased to 2
                else if (0 <= fetch_prune_tags_config)
                     ^
/datasets/git/builtin/fetch.c:2064:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/fetch.c:2068:35: note: +1
        maybe_prune_tags = prune_tags_ok && prune_tags;
                                         ^
/datasets/git/builtin/fetch.c:2069:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (maybe_prune_tags && remote_via_config)
        ^
/datasets/git/builtin/fetch.c:2069:23: note: +1
        if (maybe_prune_tags && remote_via_config)
                             ^
/datasets/git/builtin/fetch.c:2072:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (maybe_prune_tags && (argc || !remote_via_config))
        ^
/datasets/git/builtin/fetch.c:2072:23: note: +1
        if (maybe_prune_tags && (argc || !remote_via_config))
                             ^
/datasets/git/builtin/fetch.c:2072:32: note: +1
        if (maybe_prune_tags && (argc || !remote_via_config))
                                      ^
/datasets/git/builtin/fetch.c:2075:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < argc; i++) {
        ^
/datasets/git/builtin/fetch.c:2076:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(argv[i], "tag")) {
                ^
/datasets/git/builtin/fetch.c:2078:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (i >= argc)
                        ^
/datasets/git/builtin/fetch.c:2083:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/fetch.c:2088:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (use_stdin_refspecs) {
        ^
/datasets/git/builtin/fetch.c:2090:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (strbuf_getline_lf(&line, stdin) != EOF)
                ^
/datasets/git/builtin/fetch.c:2095:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (server_options.nr)
        ^
/datasets/git/builtin/fetch.c:2034:8: warning: 2 adjacent parameters of 'fetch_one' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                     int prune_tags_ok, int use_stdin_refspecs)
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:2034:12: note: the first parameter in the range is 'prune_tags_ok'
                     int prune_tags_ok, int use_stdin_refspecs)
                         ^~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:2034:31: note: the last parameter in the range is 'use_stdin_refspecs'
                     int prune_tags_ok, int use_stdin_refspecs)
                                            ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:2036:17: warning: variable name 'rs' is too short, expected at least 3 characters [readability-identifier-length]
        struct refspec rs = REFSPEC_INIT_FETCH;
                       ^
/datasets/git/builtin/fetch.c:2037:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/fetch.c:2037:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fetch.c:2038:6: warning: variable 'exit_code' is not initialized [cppcoreguidelines-init-variables]
        int exit_code;
            ^
                      = 0
/datasets/git/builtin/fetch.c:2039:6: warning: variable 'maybe_prune_tags' is not initialized [cppcoreguidelines-init-variables]
        int maybe_prune_tags;
            ^
                             = 0
/datasets/git/builtin/fetch.c:2042:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!remote)
                    ^
                     {
/datasets/git/builtin/fetch.c:2050:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (0 <= remote->prune)
                                       ^
                                        {
/datasets/git/builtin/fetch.c:2052:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (0 <= fetch_prune_config)
                                                 ^
                                                  {
/datasets/git/builtin/fetch.c:2054:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/fetch.c:2060:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (0 <= remote->prune_tags)
                                            ^
                                             {
/datasets/git/builtin/fetch.c:2062:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (0 <= fetch_prune_tags_config)
                                                      ^
                                                       {
/datasets/git/builtin/fetch.c:2064:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/fetch.c:2069:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (maybe_prune_tags && remote_via_config)
                                                  ^
                                                   {
/datasets/git/builtin/fetch.c:2072:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (maybe_prune_tags && (argc || !remote_via_config))
                                                             ^
                                                              {
/datasets/git/builtin/fetch.c:2075:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < argc; i++) {
        ^
/datasets/git/builtin/fetch.c:2078:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (i >= argc)
                                      ^
                                       {
/datasets/git/builtin/fetch.c:2090:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (strbuf_getline_lf(&line, stdin) != EOF)
                ^
/datasets/git/builtin/fetch.c:2090:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'line' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (strbuf_getline_lf(&line, stdin) != EOF)
                       ^
/datasets/git/builtin/fetch.c:2090:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (strbuf_getline_lf(&line, stdin) != EOF)
                                                              ^
                                                               {
/datasets/git/builtin/fetch.c:2095:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (server_options.nr)
                              ^
                               {
/datasets/git/builtin/fetch.c:2099:2: warning: the value returned by this function should be used [cert-err33-c]
        atexit(unlock_pack_atexit);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:2099:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/fetch.c:2109:5: warning: function 'cmd_fetch' has cognitive complexity of 99 (threshold 25) [readability-function-cognitive-complexity]
int cmd_fetch(int argc, const char **argv, const char *prefix)
    ^
/datasets/git/builtin/fetch.c:2121:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 1; i < argc; i++) {
        ^
/datasets/git/builtin/fetch.c:2130:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (the_repository->gitdir) {
        ^
/datasets/git/builtin/fetch.c:2138:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (recurse_submodules_cli != RECURSE_SUBMODULES_DEFAULT)
        ^
/datasets/git/builtin/fetch.c:2141:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (negotiate_only) {
        ^
/datasets/git/builtin/fetch.c:2142:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                switch (recurse_submodules_cli) {
                ^
/datasets/git/builtin/fetch.c:2159:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (recurse_submodules != RECURSE_SUBMODULES_OFF) {
        ^
/datasets/git/builtin/fetch.c:2161:8: note: +2, including nesting penalty of 1, nesting level increased to 2
                            ? &submodule_fetch_jobs_config : NULL;
                            ^
/datasets/git/builtin/fetch.c:2163:6: note: +2, including nesting penalty of 1, nesting level increased to 2
                          ? &recurse_submodules : NULL;
                          ^
/datasets/git/builtin/fetch.c:2168:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (negotiate_only && !negotiation_tip.nr)
        ^
/datasets/git/builtin/fetch.c:2168:21: note: +1
        if (negotiate_only && !negotiation_tip.nr)
                           ^
/datasets/git/builtin/fetch.c:2171:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (deepen_relative) {
        ^
/datasets/git/builtin/fetch.c:2172:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (deepen_relative < 0)
                ^
/datasets/git/builtin/fetch.c:2174:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (depth)
                ^
/datasets/git/builtin/fetch.c:2178:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (unshallow) {
        ^
/datasets/git/builtin/fetch.c:2179:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (depth)
                ^
/datasets/git/builtin/fetch.c:2181:8: note: +1, nesting level increased to 2
                else if (!is_repository_shallow(the_repository))
                     ^
/datasets/git/builtin/fetch.c:2183:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/fetch.c:2188:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (depth && atoi(depth) < 1)
        ^
/datasets/git/builtin/fetch.c:2188:12: note: +1
        if (depth && atoi(depth) < 1)
                  ^
/datasets/git/builtin/fetch.c:2190:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (depth || deepen_since || deepen_not.nr)
        ^
/datasets/git/builtin/fetch.c:2190:28: note: +1
        if (depth || deepen_since || deepen_not.nr)
                                  ^
/datasets/git/builtin/fetch.c:2194:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (dry_run)
        ^
/datasets/git/builtin/fetch.c:2197:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (all) {
        ^
/datasets/git/builtin/fetch.c:2198:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (argc == 1)
                ^
/datasets/git/builtin/fetch.c:2200:8: note: +1, nesting level increased to 2
                else if (argc > 1)
                     ^
/datasets/git/builtin/fetch.c:2205:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (list.nr == 1)
                ^
/datasets/git/builtin/fetch.c:2207:9: note: +1, nesting level increased to 1
        } else if (argc == 0) {
               ^
/datasets/git/builtin/fetch.c:2210:9: note: +1, nesting level increased to 1
        } else if (multiple) {
               ^
/datasets/git/builtin/fetch.c:2212:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < argc; i++)
                ^
/datasets/git/builtin/fetch.c:2213:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!add_remote_or_group(argv[i], &list))
                        ^
/datasets/git/builtin/fetch.c:2216:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/fetch.c:2219:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (list.nr > 1) {
                ^
/datasets/git/builtin/fetch.c:2221:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (argc > 1)
                        ^
/datasets/git/builtin/fetch.c:2223:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/fetch.c:2232:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (negotiate_only) {
        ^
/datasets/git/builtin/fetch.c:2237:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!remote)
                ^
/datasets/git/builtin/fetch.c:2240:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (gtransport->smart_options) {
                ^
/datasets/git/builtin/fetch.c:2242:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/fetch.c:2245:4: note: +1
                        goto cleanup;
                        ^
/datasets/git/builtin/fetch.c:2247:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (server_options.nr)
                ^
/datasets/git/builtin/fetch.c:2252:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while ((oid = oidset_iter_next(&iter)))
                ^
/datasets/git/builtin/fetch.c:2255:9: note: +1, nesting level increased to 1
        } else if (remote) {
               ^
/datasets/git/builtin/fetch.c:2256:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (filter_options.choice || has_promisor_remote())
                ^
/datasets/git/builtin/fetch.c:2256:29: note: +1
                if (filter_options.choice || has_promisor_remote())
                                          ^
/datasets/git/builtin/fetch.c:2259:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/fetch.c:2262:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (filter_options.choice)
                ^
/datasets/git/builtin/fetch.c:2266:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (atomic_fetch)
                ^
/datasets/git/builtin/fetch.c:2270:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (stdin_refspecs)
                ^
/datasets/git/builtin/fetch.c:2274:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (max_children < 0)
                ^
/datasets/git/builtin/fetch.c:2291:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!result && remote && (recurse_submodules != RECURSE_SUBMODULES_OFF)) {
        ^
/datasets/git/builtin/fetch.c:2291:24: note: +1
        if (!result && remote && (recurse_submodules != RECURSE_SUBMODULES_OFF)) {
                              ^
/datasets/git/builtin/fetch.c:2295:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (max_children < 0)
                ^
/datasets/git/builtin/fetch.c:2297:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (max_children < 0)
                ^
/datasets/git/builtin/fetch.c:2319:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (negotiate_only)
        ^
/datasets/git/builtin/fetch.c:2323:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (fetch_write_commit_graph > 0 ||
        ^
/datasets/git/builtin/fetch.c:2323:35: note: +1
        if (fetch_write_commit_graph > 0 ||
                                         ^
/datasets/git/builtin/fetch.c:2324:36: note: +1
            (fetch_write_commit_graph < 0 &&
                                          ^
/datasets/git/builtin/fetch.c:2328:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (progress)
                ^
/datasets/git/builtin/fetch.c:2336:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (enable_auto_gc) {
        ^
/datasets/git/builtin/fetch.c:2337:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (refetch) {
                ^
/datasets/git/builtin/fetch.c:2343:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (git_config_get_int("gc.autopacklimit", &opt_val))
                        ^
/datasets/git/builtin/fetch.c:2345:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (opt_val != 0)
                        ^
/datasets/git/builtin/fetch.c:2348:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (git_config_get_int("maintenance.incremental-repack.auto", &opt_val))
                        ^
/datasets/git/builtin/fetch.c:2350:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (opt_val != 0)
                        ^
/datasets/git/builtin/fetch.c:2109:15: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
int cmd_fetch(int argc, const char **argv, const char *prefix)
              ^
/datasets/git/builtin/fetch.c:2111:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/fetch.c:2111:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fetch.c:2121:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 1; i < argc; i++) {
        ^
/datasets/git/builtin/fetch.c:2121:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'argc' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 1; i < argc; i++) {
                    ^
/datasets/git/builtin/fetch.c:2138:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (recurse_submodules_cli != RECURSE_SUBMODULES_DEFAULT)
                                                                 ^
                                                                  {
/datasets/git/builtin/fetch.c:2162:8: warning: variable name 'rs' is too short, expected at least 3 characters [readability-identifier-length]
                int *rs = recurse_submodules == RECURSE_SUBMODULES_DEFAULT
                     ^
/datasets/git/builtin/fetch.c:2168:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (negotiate_only && !negotiation_tip.nr)
                                                  ^
                                                   {
/datasets/git/builtin/fetch.c:2172:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (deepen_relative < 0)
                                        ^
                                         {
/datasets/git/builtin/fetch.c:2174:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (depth)
                          ^
                           {
/datasets/git/builtin/fetch.c:2179:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (depth)
                          ^
                           {
/datasets/git/builtin/fetch.c:2181:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!is_repository_shallow(the_repository))
                                                                ^
                                                                 {
/datasets/git/builtin/fetch.c:2183:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/fetch.c:2188:15: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c]
        if (depth && atoi(depth) < 1)
                     ^
/datasets/git/builtin/fetch.c:2188:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (depth && atoi(depth) < 1)
                                     ^
                                      {
/datasets/git/builtin/fetch.c:2190:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (depth || deepen_since || deepen_not.nr)
                                                   ^
                                                    {
/datasets/git/builtin/fetch.c:2194:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (dry_run)
                    ^
                     {
/datasets/git/builtin/fetch.c:2198:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (argc == 1)
                              ^
                               {
/datasets/git/builtin/fetch.c:2200:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (argc > 1)
                                  ^
                                   {
/datasets/git/builtin/fetch.c:2205:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (list.nr == 1)
                                 ^
                                  {
/datasets/git/builtin/fetch.c:2212:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < argc; i++)
                ^
/datasets/git/builtin/fetch.c:2212:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'argc' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < argc; i++)
                            ^
/datasets/git/builtin/fetch.c:2212:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < argc; i++)
                                          ^
                                           {
/datasets/git/builtin/fetch.c:2213:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!add_remote_or_group(argv[i], &list))
                                                                 ^
                                                                  {
/datasets/git/builtin/fetch.c:2221:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (argc > 1)
                                     ^
                                      {
/datasets/git/builtin/fetch.c:2235:27: warning: variable 'oid' is not initialized [cppcoreguidelines-init-variables]
                const struct object_id *oid;
                                        ^
                                            = NULL
/datasets/git/builtin/fetch.c:2237:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!remote)
                            ^
                             {
/datasets/git/builtin/fetch.c:2247:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (server_options.nr)
                                      ^
                                       {
/datasets/git/builtin/fetch.c:2252:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while ((oid = oidset_iter_next(&iter)))
                ^
/datasets/git/builtin/fetch.c:2252:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'oid' and may cause performance degradation [altera-id-dependent-backward-branch]
                while ((oid = oidset_iter_next(&iter)))
                       ^
/datasets/git/builtin/fetch.c:2252:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while ((oid = oidset_iter_next(&iter)))
                                                       ^
                                                        {
/datasets/git/builtin/fetch.c:2256:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (filter_options.choice || has_promisor_remote())
                                                                   ^
                                                                    {
/datasets/git/builtin/fetch.c:2262:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (filter_options.choice)
                                          ^
                                           {
/datasets/git/builtin/fetch.c:2266:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (atomic_fetch)
                                 ^
                                  {
/datasets/git/builtin/fetch.c:2270:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (stdin_refspecs)
                                   ^
                                    {
/datasets/git/builtin/fetch.c:2274:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (max_children < 0)
                                     ^
                                      {
/datasets/git/builtin/fetch.c:2295:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (max_children < 0)
                                     ^
                                      {
/datasets/git/builtin/fetch.c:2297:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (max_children < 0)
                                     ^
                                      {
/datasets/git/builtin/fetch.c:2319:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (negotiate_only)
                           ^
                            {
/datasets/git/builtin/fetch.c:2328:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (progress)
                             ^
                              {
/datasets/git/builtin/fetch.c:2329:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        commit_graph_flags |= COMMIT_GRAPH_WRITE_PROGRESS;
                        ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fetch.c:2342:8: warning: variable 'opt_val' is not initialized [cppcoreguidelines-init-variables]
                        int opt_val;
                            ^
                                    = 0
/datasets/git/builtin/fetch.c:2343:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (git_config_get_int("gc.autopacklimit", &opt_val))
                                                                             ^
                                                                              {
/datasets/git/builtin/fetch.c:2345:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (opt_val != 0)
                                         ^
                                          {
/datasets/git/builtin/fetch.c:2348:76: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (git_config_get_int("maintenance.incremental-repack.auto", &opt_val))
                                                                                                ^
                                                                                                 {
/datasets/git/builtin/fetch.c:2350:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (opt_val != 0)
                                         ^
                                          {
/datasets/git/builtin/fmt-merge-msg.c:23:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                  PARSE_OPT_OPTARG | PARSE_OPT_HIDDEN, NULL,
                  ^~~~~~~~~~~~~~~~
/datasets/git/builtin/fmt-merge-msg.c:33:8: warning: variable name 'in' is too short, expected at least 3 characters [readability-identifier-length]
        FILE *in = stdin;
              ^
/datasets/git/builtin/fmt-merge-msg.c:34:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct strbuf input = STRBUF_INIT, output = STRBUF_INIT;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fmt-merge-msg.c:35:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/builtin/fmt-merge-msg.c:41:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc > 0)
                     ^
                      {
/datasets/git/builtin/fmt-merge-msg.c:43:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (shortlog_len < 0)
                             ^
                              {
/datasets/git/builtin/fmt-merge-msg.c:46:16: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (inpath && strcmp(inpath, "-")) {
                      ^
                                          != 0
/datasets/git/builtin/fmt-merge-msg.c:48:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!in)
                        ^
                         {
/datasets/git/builtin/fmt-merge-msg.c:52:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strbuf_read(&input, fileno(in), 0) < 0)
                                                   ^
                                                    {
/datasets/git/builtin/fmt-merge-msg.c:55:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (message)
                    ^
                     {
/datasets/git/builtin/fmt-merge-msg.c:58:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&opts, 0, sizeof(opts));
        ^~~~~~
/datasets/git/builtin/fmt-merge-msg.c:58:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&opts, 0, sizeof(opts));
        ^~~~~~
/datasets/git/builtin/fmt-merge-msg.c:65:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/builtin/for-each-ref.c:4:1: warning: #includes are not sorted properly [llvm-include-order]
#include "refs.h"
^        ~~~~~~~~
         "object.h"
/datasets/git/builtin/for-each-ref.c:19:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/for-each-ref.c:19:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/for-each-ref.c:20:22: warning: variable 'sorting' is not initialized [cppcoreguidelines-init-variables]
        struct ref_sorting *sorting;
                            ^
                                    = NULL
/datasets/git/builtin/for-each-ref.c:22:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int maxcount = 0, icase = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/for-each-ref.c:30:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT('s', "shell", &format.quote_style,
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/for-each-ref.c:32:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT('p', "perl",  &format.quote_style,
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/for-each-ref.c:34:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT(0 , "python", &format.quote_style,
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/for-each-ref.c:36:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT(0 , "tcl",  &format.quote_style,
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/for-each-ref.c:47:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_MERGED(&filter, N_("print only refs that are merged")),
                ^
/datasets/git/./ref-filter.h:93:26: note: expanded from macro 'OPT_MERGED'
#define OPT_MERGED(f, h) _OPT_MERGED_NO_MERGED("merged", f, h)
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./ref-filter.h:90:4: note: expanded from macro '_OPT_MERGED_NO_MERGED'
          PARSE_OPT_LASTARG_DEFAULT | PARSE_OPT_NONEG, \
          ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/for-each-ref.c:48:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_NO_MERGED(&filter, N_("print only refs that are not merged")),
                ^
/datasets/git/./ref-filter.h:94:29: note: expanded from macro 'OPT_NO_MERGED'
#define OPT_NO_MERGED(f, h) _OPT_MERGED_NO_MERGED("no-merged", f, h)
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./ref-filter.h:90:4: note: expanded from macro '_OPT_MERGED_NO_MERGED'
          PARSE_OPT_LASTARG_DEFAULT | PARSE_OPT_NONEG, \
          ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/for-each-ref.c:49:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_CONTAINS(&filter.with_commit, N_("print only refs which contain the commit")),
                ^
/datasets/git/./parse-options.h:385:28: note: expanded from macro 'OPT_CONTAINS'
#define OPT_CONTAINS(v, h) _OPT_CONTAINS_OR_WITH("contains", v, h, PARSE_OPT_NONEG)
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:382:4: note: expanded from macro '_OPT_CONTAINS_OR_WITH'
          PARSE_OPT_LASTARG_DEFAULT | flag, \
          ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/for-each-ref.c:50:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_NO_CONTAINS(&filter.no_commit, N_("print only refs which don't contain the commit")),
                ^
/datasets/git/./parse-options.h:386:31: note: expanded from macro 'OPT_NO_CONTAINS'
#define OPT_NO_CONTAINS(v, h) _OPT_CONTAINS_OR_WITH("no-contains", v, h, PARSE_OPT_NONEG)
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:382:4: note: expanded from macro '_OPT_CONTAINS_OR_WITH'
          PARSE_OPT_LASTARG_DEFAULT | flag, \
          ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/for-each-ref.c:51:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "ignore-case", &icase, N_("sorting and filtering are case insensitive")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/for-each-ref.c:55:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&array, 0, sizeof(array));
        ^~~~~~
/datasets/git/builtin/for-each-ref.c:55:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&array, 0, sizeof(array));
        ^~~~~~
/datasets/git/builtin/for-each-ref.c:56:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&filter, 0, sizeof(filter));
        ^~~~~~
/datasets/git/builtin/for-each-ref.c:56:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&filter, 0, sizeof(filter));
        ^~~~~~
/datasets/git/builtin/for-each-ref.c:67:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (HAS_MULTI_BITS(format.quote_style)) {
            ^
/datasets/git/./git-compat-util.h:156:29: note: expanded from macro 'HAS_MULTI_BITS'
#define HAS_MULTI_BITS(i)  ((i) & ((i) - 1))  /* checks if an integer has more than 1 bit set */
                            ^~~
/datasets/git/builtin/for-each-ref.c:71:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (verify_ref_format(&format))
                                       ^
                                        {
/datasets/git/builtin/for-each-ref.c:80:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        filter_refs(&array, &filter, FILTER_REFS_ALL);
                                     ^
/datasets/git/./ref-filter.h:20:37: note: expanded from macro 'FILTER_REFS_ALL'
#define FILTER_REFS_ALL            (FILTER_REFS_TAGS | FILTER_REFS_BRANCHES | \
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./ref-filter.h:16:36: note: expanded from macro 'FILTER_REFS_TAGS'
#define FILTER_REFS_TAGS           0x0002
                                   ^
/datasets/git/builtin/for-each-ref.c:83:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!maxcount || array.nr < maxcount)
                                             ^
                                              {
/datasets/git/builtin/for-each-ref.c:85:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < maxcount; i++) {
        ^
/datasets/git/builtin/for-each-ref.c:85:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'maxcount' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < maxcount; i++) {
                    ^
/datasets/git/builtin/for-each-ref.c:88:69: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (format_ref_array_item(array.items[i], &format, &output, &err))
                                                                                  ^
                                                                                   {
/datasets/git/builtin/for-each-ref.c:90:3: warning: the value returned by this function should be used [cert-err33-c]
                fwrite(output.buf, 1, output.len, stdout);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/for-each-ref.c:90:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/for-each-repo.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "builtin.h"
/datasets/git/builtin/for-each-repo.c:15:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/for-each-repo.c:15:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/for-each-repo.c:22:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < argc; i++)
        ^
/datasets/git/builtin/for-each-repo.c:22:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < argc; i++)
                                  ^
                                   {
/datasets/git/builtin/for-each-repo.c:33:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, result = 0;
        ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/for-each-repo.c:33:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, result = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/for-each-repo.c:33:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/for-each-repo.c:34:28: warning: variable 'values' is not initialized [cppcoreguidelines-init-variables]
        const struct string_list *values;
                                  ^
                                         = NULL
/datasets/git/builtin/for-each-repo.c:45:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!config_key)
                        ^
                         {
/datasets/git/builtin/for-each-repo.c:55:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!values)
                    ^
                     {
/datasets/git/builtin/for-each-repo.c:58:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; !result && i < values->nr; i++)
        ^
/datasets/git/builtin/for-each-repo.c:58:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'result' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; !result && i < values->nr; i++)
                    ^
/datasets/git/builtin/for-each-repo.c:58:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; !result && i < values->nr; i++)
                                                   ^
                                                    {
/datasets/git/builtin/fsck.c:3:1: warning: #includes are not sorted properly [llvm-include-order]
#include "cache.h"
^        ~~~~~~~~~
         "blob.h"
/datasets/git/builtin/fsck.c:26:1: warning: replace macro with enum [modernize-macro-to-enum]
#define REACHABLE 0x0001
^~~~~~~~
                  =     ,
/datasets/git/builtin/fsck.c:26:9: warning: macro 'REACHABLE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define REACHABLE 0x0001
        ^
/datasets/git/builtin/fsck.c:27:9: warning: macro 'SEEN' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define SEEN      0x0002
        ^
/datasets/git/builtin/fsck.c:28:9: warning: macro 'HAS_OBJ' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define HAS_OBJ   0x0004
        ^
/datasets/git/builtin/fsck.c:30:9: warning: macro 'USED' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define USED      0x0008
        ^
/datasets/git/builtin/fsck.c:32:12: warning: variable 'show_root' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int show_root;
           ^
/datasets/git/builtin/fsck.c:33:12: warning: variable 'show_tags' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int show_tags;
           ^
/datasets/git/builtin/fsck.c:34:12: warning: variable 'show_unreachable' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int show_unreachable;
           ^
/datasets/git/builtin/fsck.c:35:12: warning: variable 'include_reflogs' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int include_reflogs = 1;
           ^
/datasets/git/builtin/fsck.c:36:12: warning: variable 'check_full' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int check_full = 1;
           ^
/datasets/git/builtin/fsck.c:37:12: warning: variable 'connectivity_only' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int connectivity_only;
           ^
/datasets/git/builtin/fsck.c:38:12: warning: variable 'check_strict' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int check_strict;
           ^
/datasets/git/builtin/fsck.c:39:12: warning: variable 'keep_cache_objects' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int keep_cache_objects;
           ^
/datasets/git/builtin/fsck.c:40:28: warning: variable 'fsck_walk_options' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct fsck_options fsck_walk_options = FSCK_OPTIONS_DEFAULT;
                           ^
/datasets/git/builtin/fsck.c:41:28: warning: variable 'fsck_obj_options' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct fsck_options fsck_obj_options = FSCK_OPTIONS_DEFAULT;
                           ^
/datasets/git/builtin/fsck.c:42:12: warning: variable 'errors_found' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int errors_found;
           ^
/datasets/git/builtin/fsck.c:43:12: warning: variable 'write_lost_and_found' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int write_lost_and_found;
           ^
/datasets/git/builtin/fsck.c:44:12: warning: variable 'verbose' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int verbose;
           ^
/datasets/git/builtin/fsck.c:45:12: warning: variable 'show_progress' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int show_progress = -1;
           ^
/datasets/git/builtin/fsck.c:46:12: warning: variable 'show_dangling' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int show_dangling = 1;
           ^
/datasets/git/builtin/fsck.c:47:12: warning: variable 'name_objects' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int name_objects;
           ^
/datasets/git/builtin/fsck.c:63:14: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        const char *ret;
                    ^
                        = NULL
/datasets/git/builtin/fsck.c:65:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (type == OBJ_NONE)
                             ^
                              {
/datasets/git/builtin/fsck.c:69:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ret)
                 ^
                  {
/datasets/git/builtin/fsck.c:77:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        errors_found |= ERROR_OBJECT;
        ^~~~~~~~~~~~
/datasets/git/builtin/fsck.c:85:49: warning: parameter 'o' is unused [misc-unused-parameters]
static int fsck_error_func(struct fsck_options *o,
                                                ^
/datasets/git/builtin/fsck.c:85:49: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fsck.c:89:24: warning: parameter 'msg_id' is unused [misc-unused-parameters]
                           enum fsck_msg_id msg_id,
                                            ^
/datasets/git/builtin/fsck.c:111:28: warning: variable 'pending' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct object_array pending;
                           ^
/datasets/git/builtin/fsck.c:114:43: warning: parameter 'options' is unused [misc-unused-parameters]
                       void *data, struct fsck_options *options)
                                                        ^
/datasets/git/builtin/fsck.c:131:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                errors_found |= ERROR_REACHABLE;
                ^~~~~~~~~~~~
/datasets/git/builtin/fsck.c:135:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (type != OBJ_ANY && obj->type != type)
                                                 ^
                                                  {
/datasets/git/builtin/fsck.c:139:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (obj->flags & REACHABLE)
            ^
/datasets/git/builtin/fsck.c:139:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (obj->flags & REACHABLE)
                                   ^
                                    {
/datasets/git/builtin/fsck.c:141:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        obj->flags |= REACHABLE;
        ^
/datasets/git/builtin/fsck.c:143:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_promisor_object(&obj->oid))
                                          ^
                                           {
/datasets/git/builtin/fsck.c:151:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(obj->flags & HAS_OBJ)) {
              ^
/datasets/git/builtin/fsck.c:159:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        errors_found |= ERROR_REACHABLE;
                        ^~~~~~~~~~~~
/datasets/git/builtin/fsck.c:187:15: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned int nr = 0;
                     ^
/datasets/git/builtin/fsck.c:189:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (show_progress)
                          ^
                           {
/datasets/git/builtin/fsck.c:191:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (pending.nr) {
        ^
/datasets/git/builtin/fsck.c:192:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                result |= traverse_one_object(object_array_pop(&pending));
                ^~~~~~
/datasets/git/builtin/fsck.c:199:59: warning: parameter 'object_type' is unused [misc-unused-parameters]
static int mark_used(struct object *obj, enum object_type object_type,
                                                          ^
/datasets/git/builtin/fsck.c:200:14: warning: parameter 'data' is unused [misc-unused-parameters]
                     void *data, struct fsck_options *options)
                           ^
/datasets/git/builtin/fsck.c:200:41: warning: parameter 'options' is unused [misc-unused-parameters]
                     void *data, struct fsck_options *options)
                                                      ^
/datasets/git/builtin/fsck.c:202:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!obj)
                 ^
                  {
/datasets/git/builtin/fsck.c:204:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        obj->flags |= USED;
        ^
/datasets/git/builtin/fsck.c:213:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!obj || !(obj->flags & HAS_OBJ))
                      ^
/datasets/git/builtin/fsck.c:213:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!obj || !(obj->flags & HAS_OBJ))
                                            ^
                                             {
/datasets/git/builtin/fsck.c:215:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (obj->flags & REACHABLE)
            ^
/datasets/git/builtin/fsck.c:215:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (obj->flags & REACHABLE)
                                   ^
                                    {
/datasets/git/builtin/fsck.c:225:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (type > 0)
                             ^
                              {
/datasets/git/builtin/fsck.c:231:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (obj->type == OBJ_TREE)
                                  ^
                                   {
/datasets/git/builtin/fsck.c:236:22: warning: parameter 'path' is unused [misc-unused-parameters]
                                            const char *path,
                                                        ^
/datasets/git/builtin/fsck.c:237:16: warning: parameter 'data' is unused [misc-unused-parameters]
                                            void *data)
                                                  ^
/datasets/git/builtin/fsck.c:244:30: warning: parameter 'pack' is unused [misc-unused-parameters]
                                             struct packed_git *pack,
                                                                ^
/datasets/git/builtin/fsck.c:245:20: warning: parameter 'pos' is unused [misc-unused-parameters]
                                             uint32_t pos,
                                                      ^
/datasets/git/builtin/fsck.c:246:17: warning: parameter 'data' is unused [misc-unused-parameters]
                                             void *data)
                                                   ^
/datasets/git/builtin/fsck.c:262:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(obj->flags & HAS_OBJ)) {
              ^
/datasets/git/builtin/fsck.c:263:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_promisor_object(&obj->oid))
                                                  ^
                                                   {
/datasets/git/builtin/fsck.c:265:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (has_object_pack(&obj->oid))
                                               ^
                                                {
/datasets/git/builtin/fsck.c:270:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                errors_found |= ERROR_REACHABLE;
                ^~~~~~~~~~~~
/datasets/git/builtin/fsck.c:286:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(obj->flags & HAS_OBJ))
              ^
/datasets/git/builtin/fsck.c:286:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(obj->flags & HAS_OBJ))
                                    ^
                                     {
/datasets/git/builtin/fsck.c:312:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(obj->flags & USED)) {
              ^
/datasets/git/builtin/fsck.c:313:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (show_dangling)
                                  ^
                                   {
/datasets/git/builtin/fsck.c:321:10: warning: variable 'f' is not initialized [cppcoreguidelines-init-variables]
                        FILE *f;
                              ^
                                = NULL
/datasets/git/builtin/fsck.c:321:10: warning: variable name 'f' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fsck.c:330:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (stream_blob_to_fd(fileno(f), &obj->oid, NULL, 1))
                                                                                     ^
                                                                                      {
/datasets/git/builtin/fsck.c:332:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        } else
                              ^
                               {
/datasets/git/builtin/fsck.c:333:5: warning: the value returned by this function should be used [cert-err33-c]
                                fprintf(f, "%s\n", describe_object(&obj->oid));
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fsck.c:333:5: note: cast the expression to void to silence this warning
/datasets/git/builtin/fsck.c:334:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (fclose(f))
                                      ^
                                       {
/datasets/git/builtin/fsck.c:351:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (verbose)
                    ^
                     {
/datasets/git/builtin/fsck.c:354:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (obj->flags & REACHABLE)
            ^
/datasets/git/builtin/fsck.c:354:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (obj->flags & REACHABLE)
                                   ^
                                    {
/datasets/git/builtin/fsck.c:356:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/fsck.c:362:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, max;
        ^~~~~~~~~~~
/datasets/git/builtin/fsck.c:362:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, max;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fsck.c:362:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fsck.c:362:9: warning: variable 'max' is not initialized [cppcoreguidelines-init-variables]
        int i, max;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fsck.c:388:8: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        max = get_max_object_index();
              ^
/datasets/git/builtin/fsck.c:389:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (verbose)
                    ^
                     {
/datasets/git/builtin/fsck.c:392:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < max; i++) {
        ^
/datasets/git/builtin/fsck.c:395:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (obj)
                        ^
                         {
/datasets/git/builtin/fsck.c:402:6: warning: variable 'err' is not initialized [cppcoreguidelines-init-variables]
        int err;
            ^
                = 0
/datasets/git/builtin/fsck.c:404:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (obj->flags & SEEN)
            ^
/datasets/git/builtin/fsck.c:404:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (obj->flags & SEEN)
                              ^
                               {
/datasets/git/builtin/fsck.c:406:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        obj->flags |= SEEN;
        ^
/datasets/git/builtin/fsck.c:408:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (verbose)
                    ^
                     {
/datasets/git/builtin/fsck.c:413:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fsck_walk(obj, NULL, &fsck_obj_options))
                                                    ^
                                                     {
/datasets/git/builtin/fsck.c:416:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err)
                ^
                 {
/datasets/git/builtin/fsck.c:422:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!commit->parents && show_root)
                                                  ^
                                                   {
/datasets/git/builtin/fsck.c:440:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (obj->type == OBJ_TREE)
                                  ^
                                   {
/datasets/git/builtin/fsck.c:452:17: warning: variable 'obj' is not initialized [cppcoreguidelines-init-variables]
        struct object *obj;
                       ^
                           = NULL
/datasets/git/builtin/fsck.c:456:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                errors_found |= ERROR_OBJECT;
                ^~~~~~~~~~~~
/datasets/git/builtin/fsck.c:460:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        obj->flags &= ~(REACHABLE | SEEN);
        ^             ~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fsck.c:460:16: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
        obj->flags &= ~(REACHABLE | SEEN);
                      ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fsck.c:460:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        obj->flags &= ~(REACHABLE | SEEN);
                        ^
/datasets/git/builtin/fsck.c:26:19: note: expanded from macro 'REACHABLE'
#define REACHABLE 0x0001
                  ^~~~~~
/datasets/git/builtin/fsck.c:461:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        obj->flags |= HAS_OBJ;
        ^
/datasets/git/builtin/fsck.c:465:12: warning: variable 'default_refs' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int default_refs;
           ^
/datasets/git/builtin/fsck.c:470:17: warning: variable 'obj' is not initialized [cppcoreguidelines-init-variables]
        struct object *obj;
                       ^
                           = NULL
/datasets/git/builtin/fsck.c:474:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (obj && (obj->flags & HAS_OBJ)) {
                            ^
/datasets/git/builtin/fsck.c:475:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (timestamp)
                                      ^
                                       {
/datasets/git/builtin/fsck.c:479:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        obj->flags |= USED;
                        ^
/datasets/git/builtin/fsck.c:484:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        errors_found |= ERROR_REACHABLE;
                        ^~~~~~~~~~~~
/datasets/git/builtin/fsck.c:491:7: warning: 2 adjacent parameters of 'fsck_handle_reflog_ent' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                  timestamp_t timestamp, int tz UNUSED,
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fsck.c:491:19: note: the first parameter in the range is 'timestamp'
                                  timestamp_t timestamp, int tz UNUSED,
                                              ^~~~~~~~~
/datasets/git/builtin/fsck.c:491:34: note: the last parameter in the range is 'tz'
                                  timestamp_t timestamp, int tz UNUSED,
                                                             ^~
/datasets/git/builtin/fsck.c:491:7: note: 
                                  timestamp_t timestamp, int tz UNUSED,
                                  ^
/datasets/git/builtin/fsck.c:491:30: note: 'timestamp_t' and 'int' may be implicitly converted: 'timestamp_t' (as 'unsigned long') -> 'int', 'int' -> 'timestamp_t' (as 'unsigned long')
                                  timestamp_t timestamp, int tz UNUSED,
                                                         ^
/datasets/git/builtin/fsck.c:491:34: warning: parameter name 'tz' is too short, expected at least 3 characters [readability-identifier-length]
                                  timestamp_t timestamp, int tz UNUSED,
                                                             ^
/datasets/git/builtin/fsck.c:496:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (verbose)
                    ^
                     {
/datasets/git/builtin/fsck.c:520:17: warning: variable 'obj' is not initialized [cppcoreguidelines-init-variables]
        struct object *obj;
                       ^
                           = NULL
/datasets/git/builtin/fsck.c:534:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                errors_found |= ERROR_REACHABLE;
                ^~~~~~~~~~~~
/datasets/git/builtin/fsck.c:540:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                errors_found |= ERROR_REFS;
                ^~~~~~~~~~~~
/datasets/git/builtin/fsck.c:543:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        obj->flags |= USED;
        ^
/datasets/git/builtin/fsck.c:557:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct worktree **worktrees, **p;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fsck.c:557:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/builtin/fsck.c:557:20: warning: variable 'worktrees' is not initialized [cppcoreguidelines-init-variables]
        struct worktree **worktrees, **p;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fsck.c:557:33: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct worktree **worktrees, **p;
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/fsck.c:557:33: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fsck.c:558:14: warning: variable 'head_points_at' is not initialized [cppcoreguidelines-init-variables]
        const char *head_points_at;
                    ^
                                   = NULL
/datasets/git/builtin/fsck.c:564:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = worktrees; *p; p++) {
        ^
/datasets/git/builtin/fsck.c:564:22: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = worktrees; *p; p++) {
                            ^
/datasets/git/builtin/fsck.c:565:20: warning: variable name 'wt' is too short, expected at least 3 characters [readability-identifier-length]
                struct worktree *wt = *p;
                                 ^
/datasets/git/builtin/fsck.c:570:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (head_points_at && !is_null_oid(&head_oid))
                                                              ^
                                                               {
/datasets/git/builtin/fsck.c:574:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (include_reflogs)
                                    ^
                                     {
/datasets/git/builtin/fsck.c:598:8: warning: accessing fields in struct 'for_each_loose_cb' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct for_each_loose_cb
       ^
/datasets/git/builtin/fsck.c:598:8: note: use "__attribute__((aligned(32)))" to align struct 'for_each_loose_cb' to 32 bytes
/datasets/git/builtin/fsck.c:607:17: warning: variable 'obj' is not initialized [cppcoreguidelines-init-variables]
        struct object *obj;
                       ^
                           = NULL
/datasets/git/builtin/fsck.c:609:16: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size;
                      ^
                           = 0
/datasets/git/builtin/fsck.c:611:6: warning: variable 'eaten' is not initialized [cppcoreguidelines-init-variables]
        int eaten;
            ^
                  = 0
/datasets/git/builtin/fsck.c:612:21: warning: variable name 'oi' is too short, expected at least 3 characters [readability-identifier-length]
        struct object_info oi = OBJECT_INFO_INIT;
                           ^
/datasets/git/builtin/fsck.c:622:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (contents && !oideq(&real_oid, oid))
                                                       ^
                                                        {
/datasets/git/builtin/fsck.c:625:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/fsck.c:629:11: warning: expression is redundant [misc-redundant-expression]
        if (type != OBJ_NONE && type < 0)
                 ^
/datasets/git/builtin/fsck.c:629:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (type != OBJ_NONE && type < 0)
                                         ^
                                          {
/datasets/git/builtin/fsck.c:634:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                errors_found |= ERROR_OBJECT;
                ^~~~~~~~~~~~
/datasets/git/builtin/fsck.c:639:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!contents && type != OBJ_BLOB)
                                          ^
                                           {
/datasets/git/builtin/fsck.c:646:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                errors_found |= ERROR_OBJECT;
                ^~~~~~~~~~~~
/datasets/git/builtin/fsck.c:649:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!eaten)
                           ^
                            {
/datasets/git/builtin/fsck.c:654:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        obj->flags &= ~(REACHABLE | SEEN);
        ^             ~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fsck.c:654:16: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
        obj->flags &= ~(REACHABLE | SEEN);
                      ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fsck.c:654:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        obj->flags &= ~(REACHABLE | SEEN);
                        ^
/datasets/git/builtin/fsck.c:26:19: note: expanded from macro 'REACHABLE'
#define REACHABLE 0x0001
                  ^~~~~~
/datasets/git/builtin/fsck.c:655:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        obj->flags |= HAS_OBJ;
        ^
/datasets/git/builtin/fsck.c:656:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fsck_obj(obj, contents, size))
                                          ^
                                           {
/datasets/git/builtin/fsck.c:657:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                errors_found |= ERROR_OBJECT;
                ^~~~~~~~~~~~
/datasets/git/builtin/fsck.c:659:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!eaten)
                   ^
                    {
/datasets/git/builtin/fsck.c:664:23: warning: 2 adjacent parameters of 'fsck_cruft' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int fsck_cruft(const char *basename, const char *path, void *data)
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fsck.c:664:35: note: the first parameter in the range is '__xpg_basename'
static int fsck_cruft(const char *basename, const char *path, void *data)
                                  ^
/usr/include/libgen.h:35:18: note: expanded from macro 'basename'
#define basename        __xpg_basename
                        ^~~~~~~~~~~~~~
/datasets/git/builtin/fsck.c:664:57: note: the last parameter in the range is 'path'
static int fsck_cruft(const char *basename, const char *path, void *data)
                                                        ^~~~
/datasets/git/builtin/fsck.c:664:69: warning: parameter 'data' is unused [misc-unused-parameters]
static int fsck_cruft(const char *basename, const char *path, void *data)
                                                                    ^
/datasets/git/builtin/fsck.c:666:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!starts_with(basename, "tmp_obj_"))
                                               ^
                                                {
/datasets/git/builtin/fsck.c:671:37: warning: parameter name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
static int fsck_subdir(unsigned int nr, const char *path, void *data)
                                    ^
/datasets/git/builtin/fsck.c:671:53: warning: parameter 'path' is unused [misc-unused-parameters]
static int fsck_subdir(unsigned int nr, const char *path, void *data)
                                                    ^
/datasets/git/builtin/fsck.c:687:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (verbose)
                    ^
                     {
/datasets/git/builtin/fsck.c:690:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (show_progress)
                          ^
                           {
/datasets/git/builtin/fsck.c:691:63: warning: 256 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                progress = start_progress(_("Checking object directories"), 256);
                                                                            ^
/datasets/git/builtin/fsck.c:695:29: warning: 256 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        display_progress(progress, 256);
                                   ^
/datasets/git/builtin/fsck.c:706:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (verbose)
                    ^
                     {
/datasets/git/builtin/fsck.c:711:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                errors_found |= ERROR_REFS;
                ^~~~~~~~~~~~
/datasets/git/builtin/fsck.c:714:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(*head_points_at, head_ref_name))
                                                    ^
                                                     {
/datasets/git/builtin/fsck.c:718:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                errors_found |= ERROR_REFS;
                ^~~~~~~~~~~~
/datasets/git/builtin/fsck.c:724:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        errors_found |= ERROR_REFS;
                        ^~~~~~~~~~~~
/datasets/git/builtin/fsck.c:730:40: warning: 11 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                           head_ref_name, *head_points_at + 11);
                                                            ^
/datasets/git/builtin/fsck.c:735:12: warning: function 'fsck_cache_tree' is within a recursive call chain [misc-no-recursion]
static int fsck_cache_tree(struct cache_tree *it)
           ^
/datasets/git/builtin/fsck.c:735:12: note: example recursive call chain, starting from function 'fsck_cache_tree'
/datasets/git/builtin/fsck.c:758:10: note: Frame #1: function 'fsck_cache_tree' calls function 'fsck_cache_tree' here:
                err |= fsck_cache_tree(it->down[i]->cache_tree);
                       ^
/datasets/git/builtin/fsck.c:758:10: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/builtin/fsck.c:735:47: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
static int fsck_cache_tree(struct cache_tree *it)
                                              ^
/datasets/git/builtin/fsck.c:737:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/fsck.c:737:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fsck.c:740:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (verbose)
                    ^
                     {
/datasets/git/builtin/fsck.c:748:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        errors_found |= ERROR_REFS;
                        ^~~~~~~~~~~~
/datasets/git/builtin/fsck.c:751:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                obj->flags |= USED;
                ^
/datasets/git/builtin/fsck.c:754:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (obj->type != OBJ_TREE)
                                          ^
                                           {
/datasets/git/builtin/fsck.c:755:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        err |= objerror(obj, _("non-tree in cache-tree"));
                        ^~~
/datasets/git/builtin/fsck.c:757:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < it->subtree_nr; i++)
        ^
/datasets/git/builtin/fsck.c:757:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < it->subtree_nr; i++)
                                            ^
                                             {
/datasets/git/builtin/fsck.c:758:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                err |= fsck_cache_tree(it->down[i]->cache_tree);
                ^~~
/datasets/git/builtin/fsck.c:764:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/builtin/fsck.c:767:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!resolve_undo)
                          ^
                           {
/datasets/git/builtin/fsck.c:770:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(item, resolve_undo) {
                                  ^
/datasets/git/builtin/fsck.c:772:29: warning: variable name 'ru' is too short, expected at least 3 characters [readability-identifier-length]
                struct resolve_undo_info *ru = item->util;
                                          ^
/datasets/git/builtin/fsck.c:773:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/builtin/fsck.c:773:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fsck.c:775:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ru)
                        ^
                         {
/datasets/git/builtin/fsck.c:777:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < 3; i++) {
                ^
/datasets/git/builtin/fsck.c:778:19: warning: variable 'obj' is not initialized [cppcoreguidelines-init-variables]
                        struct object *obj;
                                       ^
                                           = NULL
/datasets/git/builtin/fsck.c:780:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!ru->mode[i] || !S_ISREG(ru->mode[i]))
                                                                  ^
                                                                   {
/datasets/git/builtin/fsck.c:787:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                errors_found |= ERROR_REFS;
                                ^~~~~~~~~~~~
/datasets/git/builtin/fsck.c:790:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        obj->flags |= USED;
                        ^
/datasets/git/builtin/fsck.c:802:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        obj->flags |= HAS_OBJ;
        ^
/datasets/git/builtin/fsck.c:806:24: warning: parameter 'path' is unused [misc-unused-parameters]
                                       const char *path,
                                                   ^
/datasets/git/builtin/fsck.c:807:18: warning: parameter 'data' is unused [misc-unused-parameters]
                                       void *data)
                                             ^
/datasets/git/builtin/fsck.c:814:25: warning: parameter 'pack' is unused [misc-unused-parameters]
                                        struct packed_git *pack,
                                                           ^
/datasets/git/builtin/fsck.c:815:15: warning: parameter 'pos' is unused [misc-unused-parameters]
                                        uint32_t pos,
                                                 ^
/datasets/git/builtin/fsck.c:816:12: warning: parameter 'data' is unused [misc-unused-parameters]
                                        void *data)
                                              ^
/datasets/git/builtin/fsck.c:830:22: warning: variable 'fsck_opts' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct option fsck_opts[] = {
                     ^
/datasets/git/builtin/fsck.c:831:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT__VERBOSE(&verbose, N_("be verbose")),
        ^
/datasets/git/./parse-options.h:359:31: note: expanded from macro 'OPT__VERBOSE'
#define OPT__VERBOSE(var, h)  OPT_COUNTUP('v', "verbose", (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/fsck.c:832:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "unreachable", &show_unreachable, N_("show unreachable objects")),
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/fsck.c:833:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "dangling", &show_dangling, N_("show dangling objects")),
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/fsck.c:834:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "tags", &show_tags, N_("report tags")),
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/fsck.c:835:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "root", &show_root, N_("report root nodes")),
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/fsck.c:836:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "cache", &keep_cache_objects, N_("make index objects head nodes")),
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/fsck.c:837:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "reflogs", &include_reflogs, N_("make reflogs head nodes (default)")),
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/fsck.c:838:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "full", &check_full, N_("also consider packs and alternate objects")),
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/fsck.c:839:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "connectivity-only", &connectivity_only, N_("check only connectivity")),
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/fsck.c:840:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "strict", &check_strict, N_("enable more strict checking")),
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/fsck.c:841:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "lost-found", &write_lost_and_found,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/fsck.c:843:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "progress", &show_progress, N_("show progress")),
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/fsck.c:844:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "name-objects", &name_objects, N_("show verbose names for reachable objects")),
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/fsck.c:848:5: warning: function 'cmd_fsck' has cognitive complexity of 67 (threshold 25) [readability-function-cognitive-complexity]
int cmd_fsck(int argc, const char **argv, const char *prefix)
    ^
/datasets/git/builtin/fsck.c:865:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (check_strict)
        ^
/datasets/git/builtin/fsck.c:868:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (show_progress == -1)
        ^
/datasets/git/builtin/fsck.c:870:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (verbose)
        ^
/datasets/git/builtin/fsck.c:873:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (write_lost_and_found) {
        ^
/datasets/git/builtin/fsck.c:878:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (name_objects)
        ^
/datasets/git/builtin/fsck.c:884:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (connectivity_only) {
        ^
/datasets/git/builtin/fsck.c:887:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/fsck.c:889:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (odb = the_repository->objects->odb; odb; odb = odb->next)
                ^
/datasets/git/builtin/fsck.c:892:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (check_full) {
                ^
/datasets/git/builtin/fsck.c:897:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (show_progress) {
                        ^
/datasets/git/builtin/fsck.c:898:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                for (p = get_all_packs(the_repository); p;
                                ^
/datasets/git/builtin/fsck.c:900:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (open_pack_index(p))
                                        ^
/datasets/git/builtin/fsck.c:907:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (p = get_all_packs(the_repository); p;
                        ^
/datasets/git/builtin/fsck.c:910:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (verify_pack(the_repository,
                                ^
/datasets/git/builtin/fsck.c:919:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (fsck_finish(&fsck_obj_options))
                ^
/datasets/git/builtin/fsck.c:923:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < argc; i++) {
        ^
/datasets/git/builtin/fsck.c:926:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!get_oid(arg, &oid)) {
                ^
/datasets/git/builtin/fsck.c:930:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!obj || !(obj->flags & HAS_OBJ)) {
                        ^
/datasets/git/builtin/fsck.c:930:13: note: +1
                        if (!obj || !(obj->flags & HAS_OBJ)) {
                                 ^
/datasets/git/builtin/fsck.c:931:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (is_promisor_object(&oid))
                                ^
/datasets/git/builtin/fsck.c:953:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!argc) {
        ^
/datasets/git/builtin/fsck.c:958:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (keep_cache_objects) {
        ^
/datasets/git/builtin/fsck.c:964:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < the_index.cache_nr; i++) {
                ^
/datasets/git/builtin/fsck.c:970:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (S_ISGITLINK(mode))
                        ^
/datasets/git/builtin/fsck.c:974:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!blob)
                        ^
/datasets/git/builtin/fsck.c:982:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (the_index.cache_tree)
                ^
/datasets/git/builtin/fsck.c:989:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (the_repository->settings.core_commit_graph) {
        ^
/datasets/git/builtin/fsck.c:993:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (odb = the_repository->objects->odb; odb; odb = odb->next) {
                ^
/datasets/git/builtin/fsck.c:998:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (run_command(&commit_graph_verify))
                        ^
/datasets/git/builtin/fsck.c:1003:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (the_repository->settings.core_multi_pack_index) {
        ^
/datasets/git/builtin/fsck.c:1007:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (odb = the_repository->objects->odb; odb; odb = odb->next) {
                ^
/datasets/git/builtin/fsck.c:1012:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (run_command(&midx_verify))
                        ^
/datasets/git/builtin/fsck.c:850:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/fsck.c:850:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fsck.c:851:27: warning: variable 'odb' is not initialized [cppcoreguidelines-init-variables]
        struct object_directory *odb;
                                 ^
                                     = NULL
/datasets/git/builtin/fsck.c:865:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (check_strict)
                         ^
                          {
/datasets/git/builtin/fsck.c:868:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (show_progress == -1)
                                ^
                                 {
/datasets/git/builtin/fsck.c:870:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (verbose)
                    ^
                     {
/datasets/git/builtin/fsck.c:878:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (name_objects)
                         ^
                          {
/datasets/git/builtin/fsck.c:889:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (odb = the_repository->objects->odb; odb; odb = odb->next)
                ^
/datasets/git/builtin/fsck.c:889:44: warning: backward branch (for loop) is ID-dependent due to variable reference to 'odb' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (odb = the_repository->objects->odb; odb; odb = odb->next)
                                                         ^
/datasets/git/builtin/fsck.c:889:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (odb = the_repository->objects->odb; odb; odb = odb->next)
                                                                              ^
                                                                               {
/datasets/git/builtin/fsck.c:893:23: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                        struct packed_git *p;
                                           ^
                                             = NULL
/datasets/git/builtin/fsck.c:893:23: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/fsck.c:893:4: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                        struct packed_git *p;
                        ^
/datasets/git/builtin/fsck.c:894:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        uint32_t total = 0, count = 0;
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/fsck.c:893:4: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                        struct packed_git *p;
                        ^
/datasets/git/builtin/fsck.c:898:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                for (p = get_all_packs(the_repository); p;
                                ^
/datasets/git/builtin/fsck.c:898:45: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                                for (p = get_all_packs(the_repository); p;
                                                                        ^
/datasets/git/builtin/fsck.c:900:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        if (open_pack_index(p))
                                                               ^
                                                                {
/datasets/git/builtin/fsck.c:907:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (p = get_all_packs(the_repository); p;
                        ^
/datasets/git/builtin/fsck.c:907:44: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (p = get_all_packs(the_repository); p;
                                                                ^
/datasets/git/builtin/fsck.c:912:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                progress, count))
                                                                 ^
                                                                  {
/datasets/git/builtin/fsck.c:913:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        errors_found |= ERROR_PACK;
                                        ^~~~~~~~~~~~
/datasets/git/builtin/fsck.c:919:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fsck_finish(&fsck_obj_options))
                                                   ^
                                                    {
/datasets/git/builtin/fsck.c:920:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        errors_found |= ERROR_OBJECT;
                        ^~~~~~~~~~~~
/datasets/git/builtin/fsck.c:923:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < argc; i++) {
        ^
/datasets/git/builtin/fsck.c:923:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'argc' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < argc; i++) {
                    ^
/datasets/git/builtin/fsck.c:930:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!obj || !(obj->flags & HAS_OBJ)) {
                                      ^
/datasets/git/builtin/fsck.c:931:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (is_promisor_object(&oid))
                                                             ^
                                                              {
/datasets/git/builtin/fsck.c:934:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                errors_found |= ERROR_OBJECT;
                                ^~~~~~~~~~~~
/datasets/git/builtin/fsck.c:938:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        obj->flags |= USED;
                        ^
/datasets/git/builtin/fsck.c:945:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                errors_found |= ERROR_OBJECT;
                ^~~~~~~~~~~~
/datasets/git/builtin/fsck.c:964:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < the_index.cache_nr; i++) {
                ^
/datasets/git/builtin/fsck.c:965:17: warning: variable 'mode' is not initialized [cppcoreguidelines-init-variables]
                        unsigned int mode;
                                     ^
                                          = 0
/datasets/git/builtin/fsck.c:966:17: warning: variable 'blob' is not initialized [cppcoreguidelines-init-variables]
                        struct blob *blob;
                                     ^
                                          = NULL
/datasets/git/builtin/fsck.c:967:19: warning: variable 'obj' is not initialized [cppcoreguidelines-init-variables]
                        struct object *obj;
                                       ^
                                           = NULL
/datasets/git/builtin/fsck.c:970:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (S_ISGITLINK(mode))
                            ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/builtin/fsck.c:851:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct object_directory *odb;
        ^
/datasets/git/builtin/fsck.c:970:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (S_ISGITLINK(mode))
                                              ^
                                               {
/datasets/git/builtin/fsck.c:974:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!blob)
                                  ^
                                   {
/datasets/git/builtin/fsck.c:977:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        obj->flags |= USED;
                        ^
/datasets/git/builtin/fsck.c:982:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (the_index.cache_tree)
                                         ^
                                          {
/datasets/git/builtin/fsck.c:993:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (odb = the_repository->objects->odb; odb; odb = odb->next) {
                ^
/datasets/git/builtin/fsck.c:993:44: warning: backward branch (for loop) is ID-dependent due to variable reference to 'odb' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (odb = the_repository->objects->odb; odb; odb = odb->next) {
                                                         ^
/datasets/git/builtin/fsck.c:998:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (run_command(&commit_graph_verify))
                                                              ^
                                                               {
/datasets/git/builtin/fsck.c:999:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                errors_found |= ERROR_COMMIT_GRAPH;
                                ^~~~~~~~~~~~
/datasets/git/builtin/fsck.c:851:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct object_directory *odb;
        ^
/datasets/git/builtin/fsck.c:1007:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (odb = the_repository->objects->odb; odb; odb = odb->next) {
                ^
/datasets/git/builtin/fsck.c:1007:44: warning: backward branch (for loop) is ID-dependent due to variable reference to 'odb' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (odb = the_repository->objects->odb; odb; odb = odb->next) {
                                                         ^
/datasets/git/builtin/fsck.c:1012:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (run_command(&midx_verify))
                                                      ^
                                                       {
/datasets/git/builtin/fsck.c:1013:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                errors_found |= ERROR_MULTI_PACK_INDEX;
                                ^~~~~~~~~~~~
/datasets/git/builtin/fsmonitor--daemon.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "compat/fsmonitor/fsm-health.h"
/datasets/git/builtin/fsmonitor--daemon.c:1575:68: warning: parameter 'prefix' is unused [misc-unused-parameters]
int cmd_fsmonitor__daemon(int argc, const char **argv, const char *prefix)
                                                                   ^
/datasets/git/builtin/fsmonitor--daemon.c:1581:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc == 2 && !strcmp(argv[1], "-h"))
                                                ^
                                                 {
/datasets/git/builtin/gc.c:14:1: warning: #includes are not sorted properly [llvm-include-order]
#include "repository.h"
^        ~~~~~~~~~~~~~~
         "blob.h"
/datasets/git/builtin/gc.c:43:12: warning: variable 'pack_refs' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int pack_refs = 1;
           ^
/datasets/git/builtin/gc.c:44:12: warning: variable 'prune_reflogs' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int prune_reflogs = 1;
           ^
/datasets/git/builtin/gc.c:45:12: warning: variable 'cruft_packs' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int cruft_packs = -1;
           ^
/datasets/git/builtin/gc.c:46:12: warning: variable 'aggressive_depth' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int aggressive_depth = 50;
           ^
/datasets/git/builtin/gc.c:46:31: warning: 50 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
static int aggressive_depth = 50;
                              ^
/datasets/git/builtin/gc.c:47:12: warning: variable 'aggressive_window' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int aggressive_window = 250;
           ^
/datasets/git/builtin/gc.c:47:32: warning: 250 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
static int aggressive_window = 250;
                               ^
/datasets/git/builtin/gc.c:48:12: warning: variable 'gc_auto_threshold' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int gc_auto_threshold = 6700;
           ^
/datasets/git/builtin/gc.c:48:32: warning: 6700 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
static int gc_auto_threshold = 6700;
                               ^
/datasets/git/builtin/gc.c:49:12: warning: variable 'gc_auto_pack_limit' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int gc_auto_pack_limit = 50;
           ^
/datasets/git/builtin/gc.c:49:33: warning: 50 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
static int gc_auto_pack_limit = 50;
                                ^
/datasets/git/builtin/gc.c:50:12: warning: variable 'detach_auto' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int detach_auto = 1;
           ^
/datasets/git/builtin/gc.c:51:20: warning: variable 'gc_log_expire_time' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static timestamp_t gc_log_expire_time;
                   ^
/datasets/git/builtin/gc.c:52:20: warning: variable 'gc_log_expire' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *gc_log_expire = "1.day.ago";
                   ^
/datasets/git/builtin/gc.c:53:20: warning: variable 'prune_expire' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *prune_expire = "2.weeks.ago";
                   ^
/datasets/git/builtin/gc.c:54:20: warning: variable 'prune_worktrees_expire' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *prune_worktrees_expire = "3.months.ago";
                   ^
/datasets/git/builtin/gc.c:55:22: warning: variable 'big_pack_threshold' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned long big_pack_threshold;
                     ^
/datasets/git/builtin/gc.c:56:22: warning: variable 'max_delta_cache_size' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned long max_delta_cache_size = DEFAULT_DELTA_CACHE_SIZE;
                     ^
/datasets/git/builtin/gc.c:56:45: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
static unsigned long max_delta_cache_size = DEFAULT_DELTA_CACHE_SIZE;
                                            ^
/datasets/git/./pack-objects.h:10:35: note: expanded from macro 'DEFAULT_DELTA_CACHE_SIZE'
#define DEFAULT_DELTA_CACHE_SIZE (256 * 1024 * 1024)
                                  ^
/datasets/git/builtin/gc.c:56:45: note: make conversion explicit to silence this warning
static unsigned long max_delta_cache_size = DEFAULT_DELTA_CACHE_SIZE;
                                            ^
/datasets/git/./pack-objects.h:10:35: note: expanded from macro 'DEFAULT_DELTA_CACHE_SIZE'
#define DEFAULT_DELTA_CACHE_SIZE (256 * 1024 * 1024)
                                  ^~~~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:56:45: note: perform multiplication in a wider type
static unsigned long max_delta_cache_size = DEFAULT_DELTA_CACHE_SIZE;
                                            ^
/datasets/git/./pack-objects.h:10:35: note: expanded from macro 'DEFAULT_DELTA_CACHE_SIZE'
#define DEFAULT_DELTA_CACHE_SIZE (256 * 1024 * 1024)
                                  ^~~~~~~~~~
/datasets/git/builtin/gc.c:58:22: warning: variable 'reflog' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct strvec reflog = STRVEC_INIT;
                     ^
/datasets/git/builtin/gc.c:58:22: warning: initializing non-local variable with non-const expression depending on uninitialized non-local variable 'empty_strvec' [cppcoreguidelines-interfaces-global-init]
/datasets/git/builtin/gc.c:59:22: warning: variable 'repack' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct strvec repack = STRVEC_INIT;
                     ^
/datasets/git/builtin/gc.c:59:22: warning: initializing non-local variable with non-const expression depending on uninitialized non-local variable 'empty_strvec' [cppcoreguidelines-interfaces-global-init]
/datasets/git/builtin/gc.c:60:22: warning: variable 'prune' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct strvec prune = STRVEC_INIT;
                     ^
/datasets/git/builtin/gc.c:60:22: warning: initializing non-local variable with non-const expression depending on uninitialized non-local variable 'empty_strvec' [cppcoreguidelines-interfaces-global-init]
/datasets/git/builtin/gc.c:61:22: warning: variable 'prune_worktrees' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct strvec prune_worktrees = STRVEC_INIT;
                     ^
/datasets/git/builtin/gc.c:61:22: warning: initializing non-local variable with non-const expression depending on uninitialized non-local variable 'empty_strvec' [cppcoreguidelines-interfaces-global-init]
/datasets/git/builtin/gc.c:62:22: warning: variable 'rerere' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct strvec rerere = STRVEC_INIT;
                     ^
/datasets/git/builtin/gc.c:62:22: warning: initializing non-local variable with non-const expression depending on uninitialized non-local variable 'empty_strvec' [cppcoreguidelines-interfaces-global-init]
/datasets/git/builtin/gc.c:64:25: warning: variable 'pidfile' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct tempfile *pidfile;
                        ^
/datasets/git/builtin/gc.c:64:25: warning: variable 'pidfile' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/gc.c:65:25: warning: variable 'log_lock' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct lock_file log_lock;
                        ^
/datasets/git/builtin/gc.c:67:27: warning: variable 'pack_garbage' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct string_list pack_garbage = STRING_LIST_INIT_DUP;
                          ^
/datasets/git/builtin/gc.c:71:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/gc.c:71:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/gc.c:72:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < pack_garbage.nr; i++)
        ^
/datasets/git/builtin/gc.c:72:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < pack_garbage.nr; i++)
                                             ^
                                              {
/datasets/git/builtin/gc.c:79:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (seen_bits == PACKDIR_FILE_IDX)
                                          ^
                                           {
/datasets/git/builtin/gc.c:85:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/builtin/gc.c:94:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, _("Failed to fstat %s: %s"),
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:94:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/gc.c:96:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        strerror(saved_errno));
                        ^
/datasets/git/builtin/gc.c:97:3: warning: the value returned by this function should be used [cert-err33-c]
                fflush(stderr);
                ^~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:97:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/gc.c:112:2: warning: the value returned by this function should be used [cert-err33-c]
        fflush(stderr);
        ^~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:112:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/gc.c:120:2: warning: the value returned by this function should be used [cert-err33-c]
        raise(signo);
        ^~~~~~~~~~~~
/datasets/git/builtin/gc.c:120:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/gc.c:125:14: warning: variable 'value' is not initialized [cppcoreguidelines-init-variables]
        const char *value;
                    ^
                          = NULL
/datasets/git/builtin/gc.c:126:14: warning: variable 'expire' is not initialized [cppcoreguidelines-init-variables]
        timestamp_t expire;
                    ^
                           = 0
/datasets/git/builtin/gc.c:129:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (parse_expiry_date(value, &expire))
                                                      ^
                                                       {
/datasets/git/builtin/gc.c:138:14: warning: variable 'value' is not initialized [cppcoreguidelines-init-variables]
        const char *value;
                    ^
                          = NULL
/datasets/git/builtin/gc.c:141:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (value && !strcmp(value, "notbare"))
                                                       ^
                                                        {
/datasets/git/builtin/gc.c:143:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/gc.c:148:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            gc_config_is_timestamp_never("gc.reflogexpireunreachable"))
                                                                       ^
                                                                        {
/datasets/git/builtin/gc.c:185:7: warning: variable 'dir' is not initialized [cppcoreguidelines-init-variables]
        DIR *dir;
             ^
                 = NULL
/datasets/git/builtin/gc.c:186:17: warning: variable 'ent' is not initialized [cppcoreguidelines-init-variables]
        struct dirent *ent;
                       ^
                           = NULL
/datasets/git/builtin/gc.c:187:6: warning: variable 'auto_threshold' is not initialized [cppcoreguidelines-init-variables]
        int auto_threshold;
            ^
                           = 0
/datasets/git/builtin/gc.c:193:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!dir)
                 ^
                  {
/datasets/git/builtin/gc.c:197:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((ent = readdir(dir)) != NULL) {
        ^
/datasets/git/builtin/gc.c:197:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'ent' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((ent = readdir(dir)) != NULL) {
               ^
/datasets/git/builtin/gc.c:197:16: warning: function is not thread safe [concurrency-mt-unsafe]
        while ((ent = readdir(dir)) != NULL) {
                      ^
/datasets/git/builtin/gc.c:199:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    ent->d_name[hexsz_loose] != '\0')
                                                     ^
                                                      {
/datasets/git/builtin/gc.c:213:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct packed_git *p, *base = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:213:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/builtin/gc.c:213:21: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct packed_git *p, *base = NULL;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/gc.c:213:21: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/gc.c:215:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = get_all_packs(the_repository); p; p = p->next) {
        ^
/datasets/git/builtin/gc.c:215:42: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = get_all_packs(the_repository); p; p = p->next) {
                                                ^
/datasets/git/builtin/gc.c:216:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!p->pack_local)
                                   ^
                                    {
/datasets/git/builtin/gc.c:219:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (p->pack_size >= limit)
                                                  ^
                                                   {
/datasets/git/builtin/gc.c:226:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (base)
                 ^
                  {
/datasets/git/builtin/gc.c:234:21: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct packed_git *p;
                           ^
                             = NULL
/datasets/git/builtin/gc.c:234:21: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/gc.c:235:6: warning: variable 'cnt' is not initialized [cppcoreguidelines-init-variables]
        int cnt;
            ^
                = 0
/datasets/git/builtin/gc.c:237:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (gc_auto_pack_limit <= 0)
                                    ^
                                     {
/datasets/git/builtin/gc.c:240:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cnt = 0, p = get_all_packs(the_repository); p; p = p->next) {
        ^
/datasets/git/builtin/gc.c:240:51: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (cnt = 0, p = get_all_packs(the_repository); p; p = p->next) {
                                                         ^
/datasets/git/builtin/gc.c:241:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!p->pack_local)
                                   ^
                                    {
/datasets/git/builtin/gc.c:243:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (p->pack_keep)
                                 ^
                                  {
/datasets/git/builtin/gc.c:257:17: warning: variable name 'si' is too short, expected at least 3 characters [readability-identifier-length]
        struct sysinfo si;
                       ^
/datasets/git/builtin/gc.c:259:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!sysinfo(&si))
                          ^
                           {
/datasets/git/builtin/gc.c:288:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t os_cache, heap;
        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:288:9: warning: variable 'os_cache' is not initialized [cppcoreguidelines-init-variables]
        size_t os_cache, heap;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/gc.c:288:19: warning: variable 'heap' is not initialized [cppcoreguidelines-init-variables]
        size_t os_cache, heap;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/gc.c:290:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!pack || !nr_objects)
                                 ^
                                  {
/datasets/git/builtin/gc.c:335:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prune_expire && !strcmp(prune_expire, "now"))
                                                         ^
                                                          {
/datasets/git/builtin/gc.c:339:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (prune_expire)
                                 ^
                                  {
/datasets/git/builtin/gc.c:343:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (prune_expire)
                                 ^
                                  {
/datasets/git/builtin/gc.c:347:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (keep_pack)
                      ^
                       {
/datasets/git/builtin/gc.c:362:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (gc_auto_threshold <= 0)
                                   ^
                                    {
/datasets/git/builtin/gc.c:382:23: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                        struct packed_git *p = find_base_packs(&keep_pack, 0);
                                           ^
/datasets/git/builtin/gc.c:383:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        uint64_t mem_have, mem_want;
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:383:13: warning: variable 'mem_have' is not initialized [cppcoreguidelines-init-variables]
                        uint64_t mem_have, mem_want;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/gc.c:383:23: warning: variable 'mem_want' is not initialized [cppcoreguidelines-init-variables]
                        uint64_t mem_have, mem_want;
                                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/gc.c:393:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!mem_have || mem_want < mem_have / 2)
                                                                 ^
                                                                  {
/datasets/git/builtin/gc.c:399:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else if (too_many_loose_objects())
                                            ^
                                             {
/datasets/git/builtin/gc.c:401:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/gc.c:404:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (run_hooks("pre-auto-gc"))
                                     ^
                                      {
/datasets/git/builtin/gc.c:414:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/gc.c:415:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/builtin/gc.c:416:12: warning: variable 'pid' is not initialized [cppcoreguidelines-init-variables]
        uintmax_t pid;
                  ^
                      = 0
/datasets/git/builtin/gc.c:417:8: warning: variable 'fp' is not initialized [cppcoreguidelines-init-variables]
        FILE *fp;
              ^
                 = NULL
/datasets/git/builtin/gc.c:417:8: warning: variable name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/gc.c:418:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/builtin/gc.c:418:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/gc.c:419:8: warning: variable 'pidfile_path' is not initialized [cppcoreguidelines-init-variables]
        char *pidfile_path;
              ^
                           = NULL
/datasets/git/builtin/gc.c:421:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_tempfile_active(pidfile))
                                        ^
                                         {
/datasets/git/builtin/gc.c:425:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (xgethostname(my_host, sizeof(my_host)))
                                                   ^
                                                    {
/datasets/git/builtin/gc.c:433:16: warning: variable 'scan_fmt' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
                static char *scan_fmt;
                             ^
/datasets/git/builtin/gc.c:434:7: warning: variable 'should_exit' is not initialized [cppcoreguidelines-init-variables]
                int should_exit;
                    ^
                                = 0
/datasets/git/builtin/gc.c:436:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!scan_fmt)
                              ^
                               {
/datasets/git/builtin/gc.c:439:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(locking_host, 0, sizeof(locking_host));
                ^~~~~~
/datasets/git/builtin/gc.c:439:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(locking_host, 0, sizeof(locking_host));
                ^~~~~~
/datasets/git/builtin/gc.c:452:32: warning: performing an implicit widening conversion to type 'long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                        time(NULL) - st.st_mtime <= 12 * 3600 &&
                                                    ^
/datasets/git/builtin/gc.c:452:32: note: make conversion explicit to silence this warning
                        time(NULL) - st.st_mtime <= 12 * 3600 &&
                                                    ^~~~~~~~~
                                                    (long)( )
/datasets/git/builtin/gc.c:452:32: note: perform multiplication in a wider type
                        time(NULL) - st.st_mtime <= 12 * 3600 &&
                                                    ^~
                                                    (long)
/datasets/git/builtin/gc.c:452:32: warning: 12 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        time(NULL) - st.st_mtime <= 12 * 3600 &&
                                                    ^
/datasets/git/builtin/gc.c:452:37: warning: 3600 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        time(NULL) - st.st_mtime <= 12 * 3600 &&
                                                         ^
/datasets/git/builtin/gc.c:453:4: warning: Call to function 'fscanf' is insecure as it does not provide bounding of the memory buffer or security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'fscanf_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        fscanf(fp, scan_fmt, &pid, locking_host) == 2 &&
                        ^~~~~~
/datasets/git/builtin/gc.c:453:4: note: Call to function 'fscanf' is insecure as it does not provide bounding of the memory buffer or security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'fscanf_s' in case of C11
                        fscanf(fp, scan_fmt, &pid, locking_host) == 2 &&
                        ^~~~~~
/datasets/git/builtin/gc.c:455:5: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                        (strcmp(locking_host, my_host) || !kill(pid, 0) || errno == EPERM);
                         ^
                                                       != 0
/datasets/git/builtin/gc.c:455:44: warning: narrowing conversion from 'uintmax_t' (aka 'unsigned long') to signed type '__pid_t' (aka 'int') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        (strcmp(locking_host, my_host) || !kill(pid, 0) || errno == EPERM);
                                                                ^
/datasets/git/builtin/gc.c:456:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fp)
                       ^
                        {
/datasets/git/builtin/gc.c:457:4: warning: the value returned by this function should be used [cert-err33-c]
                        fclose(fp);
                        ^~~~~~~~~~
/datasets/git/builtin/gc.c:457:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/gc.c:459:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (fd >= 0)
                                    ^
                                     {
/datasets/git/builtin/gc.c:461:15: warning: narrowing conversion from 'uintmax_t' (aka 'unsigned long') to signed type 'pid_t' (aka 'int') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        *ret_pid = pid;
                                   ^
/datasets/git/builtin/gc.c:485:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/gc.c:487:10: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        ssize_t len;
                ^
                    = 0
/datasets/git/builtin/gc.c:488:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/builtin/gc.c:492:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (errno == ENOENT)
                                    ^
                                     {
/datasets/git/builtin/gc.c:499:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (st.st_mtime < gc_log_expire_time)
                                             ^
                                              {
/datasets/git/builtin/gc.c:503:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len < 0)
                    ^
                     {
/datasets/git/builtin/gc.c:534:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (done++)
                   ^
                    {
/datasets/git/builtin/gc.c:537:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pack_refs && maintenance_task_pack_refs(NULL))
                                                          ^
                                                           {
/datasets/git/builtin/gc.c:545:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (run_command(&cmd))
                                      ^
                                       {
/datasets/git/builtin/gc.c:550:5: warning: function 'cmd_gc' has cognitive complexity of 69 (threshold 25) [readability-function-cognitive-complexity]
int cmd_gc(int argc, const char **argv, const char *prefix)
    ^
/datasets/git/builtin/gc.c:580:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (argc == 2 && !strcmp(argv[1], "-h"))
        ^
/datasets/git/builtin/gc.c:580:16: note: +1
        if (argc == 2 && !strcmp(argv[1], "-h"))
                      ^
/datasets/git/builtin/gc.c:591:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (parse_expiry_date(gc_log_expire, &gc_log_expire_time))
        ^
/datasets/git/builtin/gc.c:594:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (pack_refs < 0)
        ^
/datasets/git/builtin/gc.c:599:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (argc > 0)
        ^
/datasets/git/builtin/gc.c:602:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (prune_expire && parse_expiry_date(prune_expire, &dummy))
        ^
/datasets/git/builtin/gc.c:602:19: note: +1
        if (prune_expire && parse_expiry_date(prune_expire, &dummy))
                         ^
/datasets/git/builtin/gc.c:606:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (cruft_packs < 0)
        ^
/datasets/git/builtin/gc.c:609:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (aggressive) {
        ^
/datasets/git/builtin/gc.c:611:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (aggressive_depth > 0)
                ^
/datasets/git/builtin/gc.c:613:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (aggressive_window > 0)
                ^
/datasets/git/builtin/gc.c:616:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (quiet)
        ^
/datasets/git/builtin/gc.c:619:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (auto_gc) {
        ^
/datasets/git/builtin/gc.c:623:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!need_to_gc())
                ^
/datasets/git/builtin/gc.c:625:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!quiet) {
                ^
/datasets/git/builtin/gc.c:626:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (detach_auto)
                        ^
/datasets/git/builtin/gc.c:628:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/builtin/gc.c:632:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (detach_auto) {
                ^
/datasets/git/builtin/gc.c:635:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ret == 1)
                        ^
/datasets/git/builtin/gc.c:638:9: note: +1, nesting level increased to 3
                        else if (ret)
                             ^
/datasets/git/builtin/gc.c:642:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (lock_repo_for_gc(force, &pid))
                        ^
/datasets/git/builtin/gc.c:653:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/gc.c:656:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (keep_largest_pack != -1) {
                ^
/datasets/git/builtin/gc.c:657:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (keep_largest_pack)
                        ^
/datasets/git/builtin/gc.c:659:10: note: +1, nesting level increased to 2
                } else if (big_pack_threshold) {
                       ^
/datasets/git/builtin/gc.c:668:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (name) {
        ^
/datasets/git/builtin/gc.c:669:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (auto_gc)
                ^
/datasets/git/builtin/gc.c:675:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (daemonized) {
        ^
/datasets/git/builtin/gc.c:686:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!repository_format_precious_objects) {
        ^
/datasets/git/builtin/gc.c:692:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (run_command(&repack_cmd))
                ^
/datasets/git/builtin/gc.c:695:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (prune_expire) {
                ^
/datasets/git/builtin/gc.c:700:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (quiet)
                        ^
/datasets/git/builtin/gc.c:702:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (has_promisor_remote())
                        ^
/datasets/git/builtin/gc.c:707:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (run_command(&prune_cmd))
                        ^
/datasets/git/builtin/gc.c:712:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (prune_worktrees_expire) {
        ^
/datasets/git/builtin/gc.c:718:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (run_command(&prune_worktrees_cmd))
                ^
/datasets/git/builtin/gc.c:724:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (run_command(&rerere_cmd))
        ^
/datasets/git/builtin/gc.c:729:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (pack_garbage.nr > 0) {
        ^
/datasets/git/builtin/gc.c:734:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (the_repository->settings.gc_write_commit_graph == 1)
        ^
/datasets/git/builtin/gc.c:736:33: note: +2, including nesting penalty of 1, nesting level increased to 2
                                             !quiet && !daemonized ? COMMIT_GRAPH_WRITE_PROGRESS : 0,
                                                                   ^
/datasets/git/builtin/gc.c:736:18: note: +1
                                             !quiet && !daemonized ? COMMIT_GRAPH_WRITE_PROGRESS : 0,
                                                    ^
/datasets/git/builtin/gc.c:739:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (auto_gc && too_many_loose_objects())
        ^
/datasets/git/builtin/gc.c:739:14: note: +1
        if (auto_gc && too_many_loose_objects())
                    ^
/datasets/git/builtin/gc.c:743:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!daemonized)
        ^
/datasets/git/builtin/gc.c:556:14: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
        const char *name;
                    ^
                         = NULL
/datasets/git/builtin/gc.c:557:8: warning: variable 'pid' is not initialized [cppcoreguidelines-init-variables]
        pid_t pid;
              ^
                  = 0
/datasets/git/builtin/gc.c:560:14: warning: variable 'dummy' is not initialized [cppcoreguidelines-init-variables]
        timestamp_t dummy;
                    ^
                          = 0
/datasets/git/builtin/gc.c:564:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__QUIET(&quiet, N_("suppress progress reporting")),
                ^
/datasets/git/./parse-options.h:360:31: note: expanded from macro 'OPT__QUIET'
#define OPT__QUIET(var, h)    OPT_COUNTUP('q', "quiet",   (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:568:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "cruft", &cruft_packs, N_("pack unreferenced objects separately")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:569:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "aggressive", &aggressive, N_("be more thorough (increased runtime)")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:570:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL_F(0, "auto", &auto_gc, N_("enable auto-gc mode"),
                ^
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:572:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL_F(0, "force", &force,
                ^
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:575:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "keep-largest-pack", &keep_largest_pack,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:580:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc == 2 && !strcmp(argv[1], "-h"))
                                                ^
                                                 {
/datasets/git/builtin/gc.c:591:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_expiry_date(gc_log_expire, &gc_log_expire_time))
                                                                  ^
                                                                   {
/datasets/git/builtin/gc.c:594:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pack_refs < 0)
                          ^
                           {
/datasets/git/builtin/gc.c:599:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc > 0)
                     ^
                      {
/datasets/git/builtin/gc.c:602:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prune_expire && parse_expiry_date(prune_expire, &dummy))
                                                                    ^
                                                                     {
/datasets/git/builtin/gc.c:606:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cruft_packs < 0)
                            ^
                             {
/datasets/git/builtin/gc.c:611:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (aggressive_depth > 0)
                                         ^
                                          {
/datasets/git/builtin/gc.c:613:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (aggressive_window > 0)
                                          ^
                                           {
/datasets/git/builtin/gc.c:616:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (quiet)
                  ^
                   {
/datasets/git/builtin/gc.c:623:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!need_to_gc())
                                  ^
                                   {
/datasets/git/builtin/gc.c:626:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (detach_auto)
                                        ^
                                         {
/datasets/git/builtin/gc.c:627:5: warning: the value returned by this function should be used [cert-err33-c]
                                fprintf(stderr, _("Auto packing the repository in background for optimum performance.\n"));
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:627:5: note: cast the expression to void to silence this warning
/datasets/git/builtin/gc.c:628:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/builtin/gc.c:629:5: warning: the value returned by this function should be used [cert-err33-c]
                                fprintf(stderr, _("Auto packing the repository for optimum performance.\n"));
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:629:5: note: cast the expression to void to silence this warning
/datasets/git/builtin/gc.c:630:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, _("See \"git help gc\" for manual housekeeping.\n"));
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:630:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/gc.c:635:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ret == 1)
                                     ^
                                      {
/datasets/git/builtin/gc.c:638:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                        else if (ret)
                        ^~~~~~~~~~~~~
/datasets/git/builtin/gc.c:638:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (ret)
                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/gc.c:642:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (lock_repo_for_gc(force, &pid))
                                                          ^
                                                           {
/datasets/git/builtin/gc.c:657:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (keep_largest_pack)
                                              ^
                                               {
/datasets/git/builtin/gc.c:669:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (auto_gc)
                            ^
                             {
/datasets/git/builtin/gc.c:681:3: warning: the value returned by this function should be used [cert-err33-c]
                atexit(process_log_file_at_exit);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:681:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/gc.c:692:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (run_command(&repack_cmd))
                                             ^
                                              {
/datasets/git/builtin/gc.c:700:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (quiet)
                                  ^
                                   {
/datasets/git/builtin/gc.c:702:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (has_promisor_remote())
                                                  ^
                                                   {
/datasets/git/builtin/gc.c:707:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (run_command(&prune_cmd))
                                                    ^
                                                     {
/datasets/git/builtin/gc.c:718:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (run_command(&prune_worktrees_cmd))
                                                      ^
                                                       {
/datasets/git/builtin/gc.c:724:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (run_command(&rerere_cmd))
                                     ^
                                      {
/datasets/git/builtin/gc.c:734:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (the_repository->settings.gc_write_commit_graph == 1)
                                                                ^
                                                                 {
/datasets/git/builtin/gc.c:739:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (auto_gc && too_many_loose_objects())
                                                ^
                                                 {
/datasets/git/builtin/gc.c:743:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!daemonized)
                        ^
                         {
/datasets/git/builtin/gc.c:763:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!value)
                   ^
                    {
/datasets/git/builtin/gc.c:765:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcasecmp(value, "hourly"))
                                         ^
                                          {
/datasets/git/builtin/gc.c:767:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcasecmp(value, "daily"))
                                        ^
                                         {
/datasets/git/builtin/gc.c:769:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcasecmp(value, "weekly"))
                                         ^
                                          {
/datasets/git/builtin/gc.c:779:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unset)
                  ^
                   {
/datasets/git/builtin/gc.c:784:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!*priority)
                       ^
                        {
/datasets/git/builtin/gc.c:790:8: warning: accessing fields in struct 'maintenance_run_opts' is inefficient due to poor alignment; currently aligned to 4 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct maintenance_run_opts {
       ^
/datasets/git/builtin/gc.c:790:8: note: use "__attribute__((aligned(16)))" to align struct 'maintenance_run_opts' to 16 bytes
/datasets/git/builtin/gc.c:799:8: warning: accessing fields in struct 'cg_auto_data' is inefficient due to poor alignment; currently aligned to 4 bytes, but recommended alignment is 8 bytes [altera-struct-pack-align]
struct cg_auto_data {
       ^
/datasets/git/builtin/gc.c:799:8: note: use "__attribute__((aligned(8)))" to align struct 'cg_auto_data' to 8 bytes
/datasets/git/builtin/gc.c:813:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/builtin/gc.c:835:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                struct commit_list *parent;
                ^
/datasets/git/builtin/gc.c:815:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!peel_iterated_oid(oid, &peeled))
                                             ^
                                              {
/datasets/git/builtin/gc.c:817:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oid_object_info(the_repository, oid, NULL) != OBJ_COMMIT)
                                                                     ^
                                                                      {
/datasets/git/builtin/gc.c:821:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!commit)
                    ^
                     {
/datasets/git/builtin/gc.c:824:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            commit_graph_position(commit) != COMMIT_NOT_FROM_GRAPH)
                                                                   ^
                                                                    {
/datasets/git/builtin/gc.c:829:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (data->num_not_in_graph >= data->limit)
                                                  ^
                                                   {
/datasets/git/builtin/gc.c:835:23: warning: variable 'parent' is not initialized [cppcoreguidelines-init-variables]
                struct commit_list *parent;
                                    ^
                                           = NULL
/datasets/git/builtin/gc.c:839:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (parent = commit->parents; parent; parent = parent->next) {
                ^
/datasets/git/builtin/gc.c:839:34: warning: backward branch (for loop) is ID-dependent due to variable reference to 'parent' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (parent = commit->parents; parent; parent = parent->next) {
                                               ^
/datasets/git/builtin/gc.c:842:37: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            parent->item->object.flags & SEEN)
                                                         ^
/datasets/git/builtin/gc.c:797:16: note: expanded from macro 'SEEN'
#define SEEN            (1u<<0)
                         ^   ~
/datasets/git/builtin/gc.c:842:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            parent->item->object.flags & SEEN)
                                                              ^
                                                               {
/datasets/git/builtin/gc.c:845:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        parent->item->object.flags |= SEEN;
                                                      ^
/datasets/git/builtin/gc.c:797:16: note: expanded from macro 'SEEN'
#define SEEN            (1u<<0)
                         ^   ~
/datasets/git/builtin/gc.c:863:6: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        int result;
            ^
                   = 0
/datasets/git/builtin/gc.c:867:15: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        data.limit = 100;
                     ^
/datasets/git/builtin/gc.c:871:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!data.limit)
                        ^
                         {
/datasets/git/builtin/gc.c:873:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (data.limit < 0)
                           ^
                            {
/datasets/git/builtin/gc.c:878:42: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        repo_clear_commit_marks(the_repository, SEEN);
                                                ^
/datasets/git/builtin/gc.c:797:16: note: expanded from macro 'SEEN'
#define SEEN            (1u<<0)
                         ^   ~
/datasets/git/builtin/gc.c:891:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->quiet)
                        ^
                         {
/datasets/git/builtin/gc.c:900:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!the_repository->settings.core_commit_graph)
                                                        ^
                                                         {
/datasets/git/builtin/gc.c:916:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (remote->skip_default_update)
                                        ^
                                         {
/datasets/git/builtin/gc.c:925:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->quiet)
                        ^
                         {
/datasets/git/builtin/gc.c:948:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->auto_flag)
                            ^
                             {
/datasets/git/builtin/gc.c:950:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->quiet)
                        ^
                         {
/datasets/git/builtin/gc.c:952:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/gc.c:965:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->quiet)
                        ^
                         {
/datasets/git/builtin/gc.c:971:8: warning: accessing fields in struct 'write_loose_object_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct write_loose_object_data {
       ^
/datasets/git/builtin/gc.c:971:8: note: use "__attribute__((aligned(16)))" to align struct 'write_loose_object_data' to 16 bytes
/datasets/git/builtin/gc.c:977:12: warning: variable 'loose_object_auto_limit' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int loose_object_auto_limit = 100;
           ^
/datasets/git/builtin/gc.c:977:38: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
static int loose_object_auto_limit = 100;
                                     ^
/datasets/git/builtin/gc.c:979:55: warning: parameter 'oid' is unused [misc-unused-parameters]
static int loose_object_count(const struct object_id *oid,
                                                      ^
/datasets/git/builtin/gc.c:980:23: warning: parameter 'path' is unused [misc-unused-parameters]
                               const char *path,
                                           ^
/datasets/git/builtin/gc.c:984:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (++(*count) >= loose_object_auto_limit)
                                                  ^
                                                   {
/datasets/git/builtin/gc.c:996:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!loose_object_auto_limit)
                                     ^
                                      {
/datasets/git/builtin/gc.c:998:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (loose_object_auto_limit < 0)
                                        ^
                                         {
/datasets/git/builtin/gc.c:1006:50: warning: parameter 'oid' is unused [misc-unused-parameters]
static int bail_on_loose(const struct object_id *oid,
                                                 ^
/datasets/git/builtin/gc.c:1007:17: warning: parameter 'path' is unused [misc-unused-parameters]
                         const char *path,
                                     ^
/datasets/git/builtin/gc.c:1008:11: warning: parameter 'data' is unused [misc-unused-parameters]
                         void *data)
                               ^
/datasets/git/builtin/gc.c:1014:24: warning: parameter 'path' is unused [misc-unused-parameters]
                                       const char *path,
                                                   ^
/datasets/git/builtin/gc.c:1017:34: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
        struct write_loose_object_data *d = (struct write_loose_object_data *)data;
                                        ^
/datasets/git/builtin/gc.c:1019:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(d->in, "%s\n", oid_to_hex(oid));
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:1019:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/gc.c:1026:21: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        struct repository *r = the_repository;
                           ^
/datasets/git/builtin/gc.c:1037:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                           NULL, NULL, NULL))
                                                             ^
                                                              {
/datasets/git/builtin/gc.c:1043:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->quiet)
                        ^
                         {
/datasets/git/builtin/gc.c:1056:20: warning: 50000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        data.batch_size = 50000;
                          ^
/datasets/git/builtin/gc.c:1064:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(data.in);
        ^~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:1064:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/gc.c:1081:21: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct packed_git *p;
                           ^
                             = NULL
/datasets/git/builtin/gc.c:1081:21: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/gc.c:1082:38: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        int incremental_repack_auto_limit = 10;
                                            ^
/datasets/git/builtin/gc.c:1086:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!the_repository->settings.core_multi_pack_index)
                                                            ^
                                                             {
/datasets/git/builtin/gc.c:1092:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!incremental_repack_auto_limit)
                                           ^
                                            {
/datasets/git/builtin/gc.c:1094:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (incremental_repack_auto_limit < 0)
                                              ^
                                               {
/datasets/git/builtin/gc.c:1097:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = get_packed_git(the_repository);
        ^
/datasets/git/builtin/gc.c:1098:7: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
             count < incremental_repack_auto_limit && p;
             ^
/datasets/git/builtin/gc.c:1100:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!p->multi_pack_index)
                                         ^
                                          {
/datasets/git/builtin/gc.c:1114:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->quiet)
                        ^
                         {
/datasets/git/builtin/gc.c:1117:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (run_command(&child))
                                ^
                                 {
/datasets/git/builtin/gc.c:1130:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->quiet)
                        ^
                         {
/datasets/git/builtin/gc.c:1133:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (run_command(&child))
                                ^
                                 {
/datasets/git/builtin/gc.c:1157:8: warning: variable 'result_size' is not initialized [cppcoreguidelines-init-variables]
        off_t result_size;
              ^
                          = 0
/datasets/git/builtin/gc.c:1158:21: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct packed_git *p;
                           ^
                             = NULL
/datasets/git/builtin/gc.c:1158:21: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/gc.c:1159:21: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        struct repository *r = the_repository;
                           ^
/datasets/git/builtin/gc.c:1162:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = get_all_packs(r); p; p = p->next) {
        ^
/datasets/git/builtin/gc.c:1162:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = get_all_packs(r); p; p = p->next) {
                                   ^
/datasets/git/builtin/gc.c:1166:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else if (p->pack_size > second_largest_size)
                                                              ^
                                                               {
/datasets/git/builtin/gc.c:1173:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (result_size > TWO_GIGABYTES)
                                        ^
                                         {
/datasets/git/builtin/gc.c:1186:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->quiet)
                        ^
                         {
/datasets/git/builtin/gc.c:1192:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (run_command(&child))
                                ^
                                 {
/datasets/git/builtin/gc.c:1206:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (multi_pack_index_write(opts))
                                         ^
                                          {
/datasets/git/builtin/gc.c:1208:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (multi_pack_index_expire(opts))
                                          ^
                                           {
/datasets/git/builtin/gc.c:1210:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (multi_pack_index_repack(opts))
                                          ^
                                           {
/datasets/git/builtin/gc.c:1224:8: warning: accessing fields in struct 'maintenance_task' is inefficient due to padding; only needs 36 bytes but is using 40 bytes [altera-struct-pack-align]
struct maintenance_task {
       ^
/datasets/git/builtin/gc.c:1224:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'maintenance_task'
/datasets/git/builtin/gc.c:1224:8: warning: accessing fields in struct 'maintenance_task' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct maintenance_task {
       ^
/datasets/git/builtin/gc.c:1224:8: note: use "__attribute__((aligned(64)))" to align struct 'maintenance_task' to 64 bytes
/datasets/git/builtin/gc.c:1248:32: warning: variable 'tasks' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct maintenance_task tasks[] = {
                               ^
/datasets/git/builtin/gc.c:1281:51: warning: parameter name 'a_' is too short, expected at least 3 characters [readability-identifier-length]
static int compare_tasks_by_selection(const void *a_, const void *b_)
                                                  ^
/datasets/git/builtin/gc.c:1281:67: warning: parameter name 'b_' is too short, expected at least 3 characters [readability-identifier-length]
static int compare_tasks_by_selection(const void *a_, const void *b_)
                                                                  ^
/datasets/git/builtin/gc.c:1283:33: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        const struct maintenance_task *a = a_;
                                       ^
/datasets/git/builtin/gc.c:1284:33: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        const struct maintenance_task *b = b_;
                                       ^
/datasets/git/builtin/gc.c:1291:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, found_selected = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:1291:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, found_selected = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/gc.c:1291:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/gc.c:1293:19: warning: variable name 'lk' is too short, expected at least 3 characters [readability-identifier-length]
        struct lock_file lk;
                         ^
/datasets/git/builtin/gc.c:1294:21: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        struct repository *r = the_repository;
                           ^
/datasets/git/builtin/gc.c:1305:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!opts->auto_flag && !opts->quiet)
                                                     ^
                                                      {
/datasets/git/builtin/gc.c:1313:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; !found_selected && i < TASK__COUNT; i++)
        ^
/datasets/git/builtin/gc.c:1313:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'found_selected' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; !found_selected && i < TASK__COUNT; i++)
                    ^
/datasets/git/builtin/gc.c:1313:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; !found_selected && i < TASK__COUNT; i++)
                                                            ^
                                                             {
/datasets/git/builtin/gc.c:1316:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (found_selected)
                           ^
                            {
/datasets/git/builtin/gc.c:1319:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < TASK__COUNT; i++) {
        ^
/datasets/git/builtin/gc.c:1320:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (found_selected && tasks[i].selected_order < 0)
                                                                  ^
                                                                   {
/datasets/git/builtin/gc.c:1323:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!found_selected && !tasks[i].enabled)
                                                         ^
                                                          {
/datasets/git/builtin/gc.c:1328:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                     !tasks[i].auto_condition()))
                                                 ^
                                                  {
/datasets/git/builtin/gc.c:1331:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opts->schedule && tasks[i].schedule < opts->schedule)
                                                                         ^
                                                                          {
/datasets/git/builtin/gc.c:1348:8: warning: variable 'config_str' is not initialized [cppcoreguidelines-init-variables]
        char *config_str;
              ^
                         = NULL
/datasets/git/builtin/gc.c:1350:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (git_config_get_string("maintenance.strategy", &config_str))
                                                                       ^
                                                                        {
/datasets/git/builtin/gc.c:1370:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/gc.c:1370:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/gc.c:1374:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (schedule)
                     ^
                      {
/datasets/git/builtin/gc.c:1377:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < TASK__COUNT; i++) {
        ^
/datasets/git/builtin/gc.c:1378:7: warning: variable 'config_value' is not initialized [cppcoreguidelines-init-variables]
                int config_value;
                    ^
                                 = 0
/datasets/git/builtin/gc.c:1379:9: warning: variable 'config_str' is not initialized [cppcoreguidelines-init-variables]
                char *config_str;
                      ^
                                 = NULL
/datasets/git/builtin/gc.c:1385:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!git_config_get_bool(config_name.buf, &config_value))
                                                                         ^
                                                                          {
/datasets/git/builtin/gc.c:1401:51: warning: parameter 'opt' is unused [misc-unused-parameters]
static int task_option_parse(const struct option *opt,
                                                  ^
/datasets/git/builtin/gc.c:1404:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, num_selected = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:1404:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, num_selected = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/gc.c:1404:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/gc.c:1407:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/gc.c:1409:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < TASK__COUNT; i++) {
        ^
/datasets/git/builtin/gc.c:1410:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (tasks[i].selected_order >= 0)
                                                 ^
                                                  {
/datasets/git/builtin/gc.c:1434:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/gc.c:1434:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/gc.c:1437:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "auto", &opts.auto_flag,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:1442:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "quiet", &opts.quiet,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:1449:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&opts, 0, sizeof(opts));
        ^~~~~~
/datasets/git/builtin/gc.c:1449:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&opts, 0, sizeof(opts));
        ^~~~~~
/datasets/git/builtin/gc.c:1453:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < TASK__COUNT; i++)
        ^
/datasets/git/builtin/gc.c:1453:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < TASK__COUNT; i++)
                                         ^
                                          {
/datasets/git/builtin/gc.c:1461:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts.auto_flag && opts.schedule)
                                            ^
                                             {
/datasets/git/builtin/gc.c:1466:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc != 0)
                      ^
                       {
/datasets/git/builtin/gc.c:1474:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/gc.c:1475:14: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        const char *p = the_repository->worktree ?
                    ^
/datasets/git/builtin/gc.c:1496:8: warning: variable 'config_value' is not initialized [cppcoreguidelines-init-variables]
        char *config_value;
              ^
                           = NULL
/datasets/git/builtin/gc.c:1498:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/builtin/gc.c:1499:28: warning: variable 'list' is not initialized [cppcoreguidelines-init-variables]
        const struct string_list *list;
                                  ^
                                       = NULL
/datasets/git/builtin/gc.c:1498:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct string_list_item *item;
        ^
/datasets/git/builtin/gc.c:1503:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc)
                 ^
                  {
/datasets/git/builtin/gc.c:1511:68: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!git_config_get_string("maintenance.strategy", &config_value))
                                                                          ^
                                                                           {
/datasets/git/builtin/gc.c:1513:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/gc.c:1518:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for_each_string_list_item(item, list) {
                ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/gc.c:1518:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
                for_each_string_list_item(item, list) {
                                          ^
/datasets/git/builtin/gc.c:1527:7: warning: variable 'rc' is not initialized [cppcoreguidelines-init-variables]
                int rc;
                    ^
                       = 0
/datasets/git/builtin/gc.c:1527:7: warning: variable name 'rc' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/gc.c:1528:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                char *user_config = NULL, *xdg_config = NULL;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:1533:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!user_config)
                                         ^
                                          {
/datasets/git/builtin/gc.c:1542:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (rc)
                       ^
                        {
/datasets/git/builtin/gc.c:1562:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__FORCE(&force,
                ^
/datasets/git/./parse-options.h:367:31: note: expanded from macro 'OPT__FORCE'
#define OPT__FORCE(var, h, f) OPT_COUNTUP_F('f', "force",   (var), (h), (f))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:1570:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/builtin/gc.c:1571:28: warning: variable 'list' is not initialized [cppcoreguidelines-init-variables]
        const struct string_list *list;
                                  ^
                                       = NULL
/datasets/git/builtin/gc.c:1572:20: warning: variable name 'cs' is too short, expected at least 3 characters [readability-identifier-length]
        struct config_set cs = { { 0 } };
                          ^
/datasets/git/builtin/gc.c:1570:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct string_list_item *item;
        ^
/datasets/git/builtin/gc.c:1576:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc)
                 ^
                  {
/datasets/git/builtin/gc.c:1588:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for_each_string_list_item(item, list) {
                ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/gc.c:1588:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
                for_each_string_list_item(item, list) {
                                          ^
/datasets/git/builtin/gc.c:1597:7: warning: variable 'rc' is not initialized [cppcoreguidelines-init-variables]
                int rc;
                    ^
                       = 0
/datasets/git/builtin/gc.c:1597:7: warning: variable name 'rc' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/gc.c:1598:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                char *user_config = NULL, *xdg_config = NULL;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:1602:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!user_config)
                                         ^
                                          {
/datasets/git/builtin/gc.c:1607:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        CONFIG_FLAGS_MULTI_REPLACE | CONFIG_FLAGS_FIXED_VALUE);
                        ^
/datasets/git/./config.h:294:36: note: expanded from macro 'CONFIG_FLAGS_MULTI_REPLACE'
#define CONFIG_FLAGS_MULTI_REPLACE (1 << 0)
                                   ^~~~~~~~
/datasets/git/builtin/gc.c:1607:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        CONFIG_FLAGS_MULTI_REPLACE | CONFIG_FLAGS_FIXED_VALUE);
                                                     ^
/datasets/git/./config.h:301:35: note: expanded from macro 'CONFIG_FLAGS_FIXED_VALUE'
#define CONFIG_FLAGS_FIXED_VALUE (1 << 1)
                                  ^
/datasets/git/builtin/gc.c:1612:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    (!force || rc == CONFIG_NOTHING_SET))
                                                         ^
                                                          {
/datasets/git/builtin/gc.c:1679:34: warning: function is not thread safe [concurrency-mt-unsafe]
        char *testing = xstrdup_or_null(getenv("GIT_TEST_MAINT_SCHEDULER"));
                                        ^
/datasets/git/builtin/gc.c:1680:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/builtin/gc.c:1683:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!testing)
                     ^
                      {
/datasets/git/builtin/gc.c:1686:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_available)
                         ^
                          {
/datasets/git/builtin/gc.c:1690:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(item, &list) {
                                  ^
/datasets/git/builtin/gc.c:1693:68: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (string_list_split_in_place(&pair, item->string, ':', 2) != 2)
                                                                                 ^
                                                                                  {
/datasets/git/builtin/gc.c:1698:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (is_available)
                                         ^
                                          {
/datasets/git/builtin/gc.c:1701:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        UNLEAK(testing);
                        ^
/datasets/git/./git-compat-util.h:1544:21: note: expanded from macro 'UNLEAK'
#define UNLEAK(var) do {} while (0)
                    ^
/datasets/git/builtin/gc.c:1714:6: warning: variable 'is_available' is not initialized [cppcoreguidelines-init-variables]
        int is_available;
            ^
                         = 0
/datasets/git/builtin/gc.c:1715:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_schedule_cmd(&cmd, &is_available))
                                                  ^
                                                   {
/datasets/git/builtin/gc.c:1734:8: warning: variable 'expanded' is not initialized [cppcoreguidelines-init-variables]
        char *expanded;
              ^
                       = NULL
/datasets/git/builtin/gc.c:1739:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!expanded)
                      ^
                       {
/datasets/git/builtin/gc.c:1754:6: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        int result;
            ^
                   = 0
/datasets/git/builtin/gc.c:1766:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (start_command(&child))
                                  ^
                                   {
/datasets/git/builtin/gc.c:1794:42: warning: 2 adjacent parameters of 'launchctl_list_contains_plist' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int launchctl_list_contains_plist(const char *name, const char *cmd)
                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:1794:54: note: the first parameter in the range is 'name'
static int launchctl_list_contains_plist(const char *name, const char *cmd)
                                                     ^~~~
/datasets/git/builtin/gc.c:1794:72: note: the last parameter in the range is 'cmd'
static int launchctl_list_contains_plist(const char *name, const char *cmd)
                                                                       ^~~
/datasets/git/builtin/gc.c:1804:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (start_command(&child))
                                  ^
                                   {
/datasets/git/builtin/gc.c:1813:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, fd;
        ^~~~~~~~~~
/datasets/git/builtin/gc.c:1813:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, fd;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/gc.c:1813:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/gc.c:1813:9: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int i, fd;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/gc.c:1813:9: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/gc.c:1814:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *preamble, *repeat;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:1814:14: warning: variable 'preamble' is not initialized [cppcoreguidelines-init-variables]
        const char *preamble, *repeat;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/gc.c:1814:25: warning: variable 'repeat' is not initialized [cppcoreguidelines-init-variables]
        const char *preamble, *repeat;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/gc.c:1818:19: warning: variable name 'lk' is too short, expected at least 3 characters [readability-identifier-length]
        struct lock_file lk = LOCK_INIT;
                         ^
/datasets/git/builtin/gc.c:1820:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct strbuf plist = STRBUF_INIT, plist2 = STRBUF_INIT;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:1821:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/builtin/gc.c:1850:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 1; i <= 23; i++)
                ^
/datasets/git/builtin/gc.c:1850:20: warning: 23 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                for (i = 1; i <= 23; i++)
                                 ^
/datasets/git/builtin/gc.c:1850:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 1; i <= 23; i++)
                                         ^
                                          {
/datasets/git/builtin/gc.c:1860:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 1; i <= 6; i++)
                ^
/datasets/git/builtin/gc.c:1860:20: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                for (i = 1; i <= 6; i++)
                                 ^
/datasets/git/builtin/gc.c:1860:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 1; i <= 6; i++)
                                        ^
                                         {
/datasets/git/builtin/gc.c:1879:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (safe_create_leading_directories(filename))
                                                      ^
                                                       {
/datasets/git/builtin/gc.c:1884:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                 &lock_file_timeout_ms))
                                                        ^
                                                         {
/datasets/git/builtin/gc.c:1885:26: warning: 150 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                lock_file_timeout_ms = 150;
                                       ^
/datasets/git/builtin/gc.c:1888:13: warning: narrowing conversion from 'unsigned long' to signed type 'long' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                               lock_file_timeout_ms);
                                               ^
/datasets/git/builtin/gc.c:1897:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            launchctl_list_contains_plist(name, cmd))
                                                     ^
                                                      {
/datasets/git/builtin/gc.c:1901:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    commit_lock_file(&lk))
                                          ^
                                           {
/datasets/git/builtin/gc.c:1906:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (launchctl_boot_plist(1, filename))
                                                      ^
                                                       {
/datasets/git/builtin/gc.c:1926:38: warning: 2 adjacent parameters of 'launchctl_update_schedule' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int launchctl_update_schedule(int run_maintenance, int fd)
                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:1926:42: note: the first parameter in the range is 'run_maintenance'
static int launchctl_update_schedule(int run_maintenance, int fd)
                                         ^~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:1926:63: note: the last parameter in the range is 'fd'
static int launchctl_update_schedule(int run_maintenance, int fd)
                                                              ^~
/datasets/git/builtin/gc.c:1926:63: warning: parameter 'fd' is unused [misc-unused-parameters]
static int launchctl_update_schedule(int run_maintenance, int fd)
                                                              ^
/datasets/git/builtin/gc.c:1926:63: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/gc.c:1928:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (run_maintenance)
                            ^
                             {
/datasets/git/builtin/gc.c:1930:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else
        ^~~~
                        return launchctl_remove_plists()
/datasets/git/builtin/gc.c:1930:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/gc.c:1937:6: warning: variable 'is_available' is not initialized [cppcoreguidelines-init-variables]
        int is_available;
            ^
                         = 0
/datasets/git/builtin/gc.c:1938:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_schedule_cmd(&cmd, &is_available))
                                                  ^
                                                   {
/datasets/git/builtin/gc.c:1980:6: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        int result;
            ^
                   = 0
/datasets/git/builtin/gc.c:1982:14: warning: variable 'xml' is not initialized [cppcoreguidelines-init-variables]
        const char *xml;
                    ^
                        = NULL
/datasets/git/builtin/gc.c:1983:19: warning: variable 'tfile' is not initialized [cppcoreguidelines-init-variables]
        struct tempfile *tfile;
                         ^
                               = NULL
/datasets/git/builtin/gc.c:1995:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!fdopen_tempfile(tfile, "w"))
                                         ^
                                          {
/datasets/git/builtin/gc.c:2002:2: warning: the value returned by this function should be used [cert-err33-c]
        fputs(xml, tfile->fp);
        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:2002:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/gc.c:2006:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(tfile->fp,
                ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:2006:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/gc.c:2020:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(tfile->fp,
                ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:2020:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/gc.c:2037:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(tfile->fp,
                ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:2037:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/gc.c:2076:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(tfile->fp, xml, exec_path, exec_path, frequency);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:2076:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/gc.c:2085:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (start_command(&child))
                                  ^
                                   {
/datasets/git/builtin/gc.c:2103:37: warning: 2 adjacent parameters of 'schtasks_update_schedule' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int schtasks_update_schedule(int run_maintenance, int fd)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:2103:41: note: the first parameter in the range is 'run_maintenance'
static int schtasks_update_schedule(int run_maintenance, int fd)
                                        ^~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:2103:62: note: the last parameter in the range is 'fd'
static int schtasks_update_schedule(int run_maintenance, int fd)
                                                             ^~
/datasets/git/builtin/gc.c:2103:62: warning: parameter 'fd' is unused [misc-unused-parameters]
static int schtasks_update_schedule(int run_maintenance, int fd)
                                                             ^
/datasets/git/builtin/gc.c:2103:62: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/gc.c:2105:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (run_maintenance)
                            ^
                             {
/datasets/git/builtin/gc.c:2107:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else
        ^~~~
                        return schtasks_remove_tasks()
/datasets/git/builtin/gc.c:2107:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/gc.c:2123:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (start_command(&child))
                                  ^
                                   {
/datasets/git/builtin/gc.c:2133:6: warning: variable 'is_available' is not initialized [cppcoreguidelines-init-variables]
        int is_available;
            ^
                         = 0
/datasets/git/builtin/gc.c:2135:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_schedule_cmd(&cmd, &is_available))
                                                  ^
                                                   {
/datasets/git/builtin/gc.c:2152:36: warning: 2 adjacent parameters of 'crontab_update_schedule' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int crontab_update_schedule(int run_maintenance, int fd)
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:2152:40: note: the first parameter in the range is 'run_maintenance'
static int crontab_update_schedule(int run_maintenance, int fd)
                                       ^~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:2152:61: note: the last parameter in the range is 'fd'
static int crontab_update_schedule(int run_maintenance, int fd)
                                                            ^~
/datasets/git/builtin/gc.c:2152:61: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
static int crontab_update_schedule(int run_maintenance, int fd)
                                                            ^
/datasets/git/builtin/gc.c:2159:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        FILE *cron_list, *cron_in;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:2159:8: warning: variable 'cron_list' is not initialized [cppcoreguidelines-init-variables]
        FILE *cron_list, *cron_in;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/gc.c:2159:20: warning: variable 'cron_in' is not initialized [cppcoreguidelines-init-variables]
        FILE *cron_list, *cron_in;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/gc.c:2167:21: warning: prefer fcntl() to dup() because fcntl() allows F_DUPFD_CLOEXEC [android-cloexec-dup]
        crontab_list.out = dup(fd);
                           ^~~~~~~
                           fcntl(fd, F_DUPFD_CLOEXEC)
/datasets/git/builtin/gc.c:2170:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (start_command(&crontab_list))
                                         ^
                                          {
/datasets/git/builtin/gc.c:2194:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (!strbuf_getline_lf(&line, cron_list)) {
        ^
/datasets/git/builtin/gc.c:2194:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'line' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (!strbuf_getline_lf(&line, cron_list)) {
               ^
/datasets/git/builtin/gc.c:2195:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!in_old_region && !strcmp(line.buf, BEGIN_LINE))
                                                                    ^
                                                                     {
/datasets/git/builtin/gc.c:2197:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (in_old_region && !strcmp(line.buf, END_LINE))
                                                                      ^
                                                                       {
/datasets/git/builtin/gc.c:2199:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!in_old_region)
                                        ^
                                         {
/datasets/git/builtin/gc.c:2200:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(cron_in, "%s\n", line.buf);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:2200:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/gc.c:2208:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(cron_in, "%s\n", BEGIN_LINE);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:2208:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/gc.c:2209:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(cron_in,
                ^~~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:2209:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/gc.c:2211:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(cron_in, "# Any edits made in this region might be\n");
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:2211:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/gc.c:2212:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(cron_in,
                ^~~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:2212:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/gc.c:2218:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(cron_in, line_format.buf, "0", "1-23", "*", "hourly");
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:2218:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/gc.c:2219:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(cron_in, line_format.buf, "0", "0", "1-6", "daily");
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:2219:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/gc.c:2220:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(cron_in, line_format.buf, "0", "0", "0", "weekly");
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:2220:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/gc.c:2223:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(cron_in, "\n%s\n", END_LINE);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:2223:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/gc.c:2226:2: warning: the value returned by this function should be used [cert-err33-c]
        fflush(cron_in);
        ^~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:2226:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/gc.c:2237:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (finish_command(&crontab_edit))
                                          ^
                                           {
/datasets/git/builtin/gc.c:2239:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/gc.c:2240:3: warning: the value returned by this function should be used [cert-err33-c]
                fclose(cron_list);
                ^~~~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:2240:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/gc.c:2256:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (start_command(&child))
                                  ^
                                   {
/datasets/git/builtin/gc.c:2258:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (finish_command(&child))
                                   ^
                                    {
/datasets/git/builtin/gc.c:2266:6: warning: variable 'is_available' is not initialized [cppcoreguidelines-init-variables]
        int is_available;
            ^
                         = 0
/datasets/git/builtin/gc.c:2268:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_schedule_cmd(&cmd, &is_available))
                                                  ^
                                                   {
/datasets/git/builtin/gc.c:2279:38: warning: 2 adjacent parameters of 'systemd_timer_enable_unit' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int systemd_timer_enable_unit(int enable,
                                     ^~~~~~~~~~~
/datasets/git/builtin/gc.c:2279:42: note: the first parameter in the range is 'enable'
static int systemd_timer_enable_unit(int enable,
                                         ^~~~~~
/datasets/git/builtin/gc.c:2280:33: note: the last parameter in the range is 'schedule'
                                     enum schedule_priority schedule)
                                                            ^~~~~~~~
/datasets/git/builtin/gc.c:2280:10: note: 'int' and 'enum schedule_priority' may be implicitly converted
                                     enum schedule_priority schedule)
                                     ^
/datasets/git/builtin/gc.c:2295:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!enable)
                    ^
                     {
/datasets/git/builtin/gc.c:2304:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (start_command(&child))
                                  ^
                                   {
/datasets/git/builtin/gc.c:2306:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (finish_command(&child))
                                   ^
                                    {
/datasets/git/builtin/gc.c:2314:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (enable)
                           ^
                            {
/datasets/git/builtin/gc.c:2323:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unlink(filename) && !is_missing_file_error(errno))
                                                              ^
                                                               {
/datasets/git/builtin/gc.c:2325:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(filename);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/gc.c:2328:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unlink(filename) && !is_missing_file_error(errno))
                                                              ^
                                                               {
/datasets/git/builtin/gc.c:2345:8: warning: variable 'filename' is not initialized [cppcoreguidelines-init-variables]
        char *filename;
              ^
                       = NULL
/datasets/git/builtin/gc.c:2346:8: warning: variable 'file' is not initialized [cppcoreguidelines-init-variables]
        FILE *file;
              ^
                   = NULL
/datasets/git/builtin/gc.c:2347:14: warning: variable 'unit' is not initialized [cppcoreguidelines-init-variables]
        const char *unit;
                    ^
                         = NULL
/datasets/git/builtin/gc.c:2355:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!file)
                  ^
                   {
/datasets/git/builtin/gc.c:2373:3: warning: the value returned by this function should be used [cert-err33-c]
                fclose(file);
                ^~~~~~~~~~~~
/datasets/git/builtin/gc.c:2373:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/gc.c:2384:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!file)
                  ^
                   {
/datasets/git/builtin/gc.c:2408:3: warning: the value returned by this function should be used [cert-err33-c]
                fclose(file);
                ^~~~~~~~~~~~
/datasets/git/builtin/gc.c:2408:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/gc.c:2432:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/builtin/gc.c:2437:42: warning: 2 adjacent parameters of 'systemd_timer_update_schedule' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int systemd_timer_update_schedule(int run_maintenance, int fd)
                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:2437:46: note: the first parameter in the range is 'run_maintenance'
static int systemd_timer_update_schedule(int run_maintenance, int fd)
                                             ^~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:2437:67: note: the last parameter in the range is 'fd'
static int systemd_timer_update_schedule(int run_maintenance, int fd)
                                                                  ^~
/datasets/git/builtin/gc.c:2437:67: warning: parameter 'fd' is unused [misc-unused-parameters]
static int systemd_timer_update_schedule(int run_maintenance, int fd)
                                                                  ^
/datasets/git/builtin/gc.c:2437:67: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/gc.c:2439:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (run_maintenance)
                            ^
                             {
/datasets/git/builtin/gc.c:2441:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else
        ^~~~
                        return systemd_timer_delete_units()
/datasets/git/builtin/gc.c:2441:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/gc.c:2454:14: warning: accessing fields in struct '' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
static const struct {
             ^
/datasets/git/builtin/gc.c:2454:14: note: use "__attribute__((aligned(32)))" to align struct '' to 32 bytes
/datasets/git/builtin/gc.c:2457:50: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
        int (*update_schedule)(int run_maintenance, int fd);
                                                        ^
/datasets/git/builtin/gc.c:2483:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!value)
                   ^
                    {
/datasets/git/builtin/gc.c:2484:3: warning: repeated branch in conditional chain [bugprone-branch-clone]
                return SCHEDULER_INVALID;
                ^
/datasets/git/builtin/gc.c:2484:27: note: end of the original
                return SCHEDULER_INVALID;
                                        ^
/datasets/git/builtin/gc.c:2497:3: note: clone 1 starts here
                return SCHEDULER_INVALID;
                ^
/datasets/git/builtin/gc.c:2485:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (!strcasecmp(value, "auto"))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:2485:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcasecmp(value, "auto"))
                                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/gc.c:2487:71: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcasecmp(value, "cron") || !strcasecmp(value, "crontab"))
                                                                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/gc.c:2490:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                 !strcasecmp(value, "systemd-timer"))
                                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/gc.c:2492:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcasecmp(value, "launchctl"))
                                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/gc.c:2494:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcasecmp(value, "schtasks"))
                                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/gc.c:2496:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/gc.c:2505:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/gc.c:2508:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*scheduler == SCHEDULER_INVALID)
                                            ^
                                             {
/datasets/git/builtin/gc.c:2519:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (scheduler != SCHEDULER_AUTO)
                                        ^
                                         {
/datasets/git/builtin/gc.c:2529:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_systemd_timer_available())
                                         ^
                                          {
/datasets/git/builtin/gc.c:2531:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (is_crontab_available())
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/gc.c:2531:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (is_crontab_available())
                                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/gc.c:2533:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/gc.c:2543:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (scheduler == SCHEDULER_INVALID)
                                           ^
                                            {
/datasets/git/builtin/gc.c:2545:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (scheduler == SCHEDULER_AUTO)
                                        ^
                                         {
/datasets/git/builtin/gc.c:2548:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!scheduler_fn[scheduler].is_available())
                                                    ^
                                                     {
/datasets/git/builtin/gc.c:2556:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i;
                     ^
                       = 0
/datasets/git/builtin/gc.c:2556:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/gc.c:2558:19: warning: variable name 'lk' is too short, expected at least 3 characters [readability-identifier-length]
        struct lock_file lk;
                         ^
/datasets/git/builtin/gc.c:2566:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 1; i < ARRAY_SIZE(scheduler_fn); i++) {
        ^
/datasets/git/builtin/gc.c:2567:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (enable && opts->scheduler == i)
                                                   ^
                                                    {
/datasets/git/builtin/gc.c:2569:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!scheduler_fn[i].is_available())
                                                    ^
                                                     {
/datasets/git/builtin/gc.c:2574:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (enable)
                   ^
                    {
/datasets/git/builtin/gc.c:2603:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc)
                 ^
                  {
/datasets/git/builtin/gc.c:2609:77: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (maintenance_register(ARRAY_SIZE(register_args)-1, register_args, NULL))
                                                                                   ^
                                                                                    {
/datasets/git/builtin/gc.c:2626:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc)
                 ^
                  {
/datasets/git/builtin/gc.c:2638:27: warning: variable name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
        parse_opt_subcommand_fn *fn = NULL;
                                 ^
/datasets/git/builtin/get-tar-commit-id.c:5:1: warning: #includes are not sorted properly [llvm-include-order]
#include "commit.h"
^        ~~~~~~~~~~
         "builtin.h"
/datasets/git/builtin/get-tar-commit-id.c:14:1: warning: replace macro with enum [modernize-macro-to-enum]
#define RECORDSIZE      (512)
^~~~~~~~
                   =
/datasets/git/builtin/get-tar-commit-id.c:14:9: warning: macro 'RECORDSIZE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define RECORDSIZE      (512)
        ^
/datasets/git/builtin/get-tar-commit-id.c:17:50: warning: parameter 'argv' is unused [misc-unused-parameters]
int cmd_get_tar_commit_id(int argc, const char **argv, const char *prefix)
                                                 ^
/datasets/git/builtin/get-tar-commit-id.c:17:68: warning: parameter 'prefix' is unused [misc-unused-parameters]
int cmd_get_tar_commit_id(int argc, const char **argv, const char *prefix)
                                                                   ^
/datasets/git/builtin/get-tar-commit-id.c:22:14: warning: variable 'comment' is not initialized [cppcoreguidelines-init-variables]
        const char *comment;
                    ^
                            = NULL
/datasets/git/builtin/get-tar-commit-id.c:23:10: warning: variable 'n' is not initialized [cppcoreguidelines-init-variables]
        ssize_t n;
                ^
                  = 0
/datasets/git/builtin/get-tar-commit-id.c:23:10: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/get-tar-commit-id.c:24:7: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        long len;
             ^
                 = 0
/datasets/git/builtin/get-tar-commit-id.c:25:8: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
        char *end;
              ^
                  = NULL
/datasets/git/builtin/get-tar-commit-id.c:27:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc != 1)
                      ^
                       {
/datasets/git/builtin/get-tar-commit-id.c:30:30: warning: performing an implicit widening conversion to type 'size_t' (aka 'unsigned long') of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        n = read_in_full(0, buffer, HEADERSIZE);
                                    ^
/datasets/git/builtin/get-tar-commit-id.c:15:21: note: expanded from macro 'HEADERSIZE'
#define HEADERSIZE (2 * RECORDSIZE)
                    ^
/datasets/git/builtin/get-tar-commit-id.c:30:30: note: make conversion explicit to silence this warning
        n = read_in_full(0, buffer, HEADERSIZE);
                                    ^
/datasets/git/builtin/get-tar-commit-id.c:15:21: note: expanded from macro 'HEADERSIZE'
#define HEADERSIZE (2 * RECORDSIZE)
                    ^~~~~~~~~~~~~~
/datasets/git/builtin/get-tar-commit-id.c:30:30: note: perform multiplication in a wider type
        n = read_in_full(0, buffer, HEADERSIZE);
                                    ^
/datasets/git/builtin/get-tar-commit-id.c:15:21: note: expanded from macro 'HEADERSIZE'
#define HEADERSIZE (2 * RECORDSIZE)
                    ^
/datasets/git/builtin/get-tar-commit-id.c:31:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (n < 0)
                  ^
                   {
/datasets/git/builtin/get-tar-commit-id.c:33:11: warning: performing an implicit widening conversion to type 'long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        if (n != HEADERSIZE)
                 ^
/datasets/git/builtin/get-tar-commit-id.c:15:21: note: expanded from macro 'HEADERSIZE'
#define HEADERSIZE (2 * RECORDSIZE)
                    ^
/datasets/git/builtin/get-tar-commit-id.c:33:11: note: make conversion explicit to silence this warning
        if (n != HEADERSIZE)
                 ^
/datasets/git/builtin/get-tar-commit-id.c:15:21: note: expanded from macro 'HEADERSIZE'
#define HEADERSIZE (2 * RECORDSIZE)
                    ^~~~~~~~~~~~~~
/datasets/git/builtin/get-tar-commit-id.c:33:11: note: perform multiplication in a wider type
        if (n != HEADERSIZE)
                 ^
/datasets/git/builtin/get-tar-commit-id.c:15:21: note: expanded from macro 'HEADERSIZE'
#define HEADERSIZE (2 * RECORDSIZE)
                    ^
/datasets/git/builtin/get-tar-commit-id.c:33:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (n != HEADERSIZE)
                            ^
                             {
/datasets/git/builtin/get-tar-commit-id.c:35:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (header->typeflag[0] != 'g')
                                       ^
                                        {
/datasets/git/builtin/get-tar-commit-id.c:38:30: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        len = strtol(content, &end, 10);
                                    ^
/datasets/git/builtin/get-tar-commit-id.c:39:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (errno == ERANGE || end == content || len < 0)
                                                         ^
                                                          {
/datasets/git/builtin/get-tar-commit-id.c:41:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!skip_prefix(end, " comment=", &comment))
                                                     ^
                                                      {
/datasets/git/builtin/get-tar-commit-id.c:45:26: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
            hash_algo_by_length((len - 1) / 2) == GIT_HASH_UNKNOWN)
                                ^
/datasets/git/builtin/get-tar-commit-id.c:45:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            hash_algo_by_length((len - 1) / 2) == GIT_HASH_UNKNOWN)
                                                                   ^
                                                                    {
/datasets/git/builtin/get-tar-commit-id.c:48:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_in_full(1, comment, len) < 0)
                                               ^
                                                {
/datasets/git/builtin/grep.c:7:1: warning: #includes are not sorted properly [llvm-include-order]
#include "repository.h"
^        ~~~~~~~~~~~~~~
         "blob.h"
/datasets/git/builtin/grep.c:28:20: warning: variable 'grep_prefix' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *grep_prefix;
                   ^
/datasets/git/builtin/grep.c:35:12: warning: variable 'recurse_submodules' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int recurse_submodules;
           ^
/datasets/git/builtin/grep.c:37:12: warning: variable 'num_threads' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int num_threads;
           ^
/datasets/git/builtin/grep.c:39:19: warning: variable 'threads' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static pthread_t *threads;
                  ^
/datasets/git/builtin/grep.c:39:19: warning: variable 'threads' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/grep.c:45:8: warning: accessing fields in struct 'work_item' is inefficient due to padding; only needs 89 bytes but is using 96 bytes [altera-struct-pack-align]
struct work_item {
       ^
/datasets/git/builtin/grep.c:45:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'work_item'
/datasets/git/builtin/grep.c:45:8: warning: accessing fields in struct 'work_item' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct work_item {
       ^
/datasets/git/builtin/grep.c:45:8: note: use "__attribute__((aligned(128)))" to align struct 'work_item' to 128 bytes
/datasets/git/builtin/grep.c:60:1: warning: replace macro with enum [modernize-macro-to-enum]
#define TODO_SIZE 128
^~~~~~~~
                  =
/datasets/git/builtin/grep.c:60:9: warning: macro 'TODO_SIZE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define TODO_SIZE 128
        ^
/datasets/git/builtin/grep.c:61:25: warning: variable 'todo' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct work_item todo[TODO_SIZE];
                        ^
/datasets/git/builtin/grep.c:62:12: warning: variable 'todo_start' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int todo_start;
           ^
/datasets/git/builtin/grep.c:63:12: warning: variable 'todo_end' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int todo_end;
           ^
/datasets/git/builtin/grep.c:64:12: warning: variable 'todo_done' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int todo_done;
           ^
/datasets/git/builtin/grep.c:67:12: warning: variable 'all_work_added' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int all_work_added;
           ^
/datasets/git/builtin/grep.c:69:28: warning: variable 'repos_to_free' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct repository **repos_to_free;
                           ^
/datasets/git/builtin/grep.c:69:28: warning: variable 'repos_to_free' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/grep.c:70:15: warning: variable 'repos_to_free_nr' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static size_t repos_to_free_nr, repos_to_free_alloc;
              ^
/datasets/git/builtin/grep.c:70:33: warning: variable 'repos_to_free_alloc' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static size_t repos_to_free_nr, repos_to_free_alloc;
                                ^
/datasets/git/builtin/grep.c:73:24: warning: variable 'grep_mutex' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static pthread_mutex_t grep_mutex;
                       ^
/datasets/git/builtin/grep.c:86:23: warning: variable 'cond_add' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static pthread_cond_t cond_add;
                      ^
/datasets/git/builtin/grep.c:91:23: warning: variable 'cond_write' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static pthread_cond_t cond_write;
                      ^
/datasets/git/builtin/grep.c:94:23: warning: variable 'cond_result' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static pthread_cond_t cond_result;
                      ^
/datasets/git/builtin/grep.c:96:12: warning: variable 'skip_first_line' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int skip_first_line;
           ^
/datasets/git/builtin/grep.c:98:64: warning: parameter name 'gs' is too short, expected at least 3 characters [readability-identifier-length]
static void add_work(struct grep_opt *opt, struct grep_source *gs)
                                                               ^
/datasets/git/builtin/grep.c:100:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->binary != GREP_BINARY_TEXT)
                                            ^
                                             {
/datasets/git/builtin/grep.c:105:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((todo_end+1) % ARRAY_SIZE(todo) == todo_done) {
        ^
/datasets/git/builtin/grep.c:105:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'todo_end' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((todo_end+1) % ARRAY_SIZE(todo) == todo_done) {
               ^
/datasets/git/builtin/grep.c:112:13: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        todo_end = (todo_end + 1) % ARRAY_SIZE(todo);
                   ^
/datasets/git/builtin/grep.c:120:20: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        struct work_item *ret;
                          ^
                              = NULL
/datasets/git/builtin/grep.c:123:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (todo_start == todo_end && !all_work_added) {
        ^
/datasets/git/builtin/grep.c:123:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'todo_start' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (todo_start == todo_end && !all_work_added) {
               ^
/datasets/git/builtin/grep.c:131:16: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                todo_start = (todo_start + 1) % ARRAY_SIZE(todo);
                             ^
/datasets/git/builtin/grep.c:137:41: warning: parameter name 'w' is too short, expected at least 3 characters [readability-identifier-length]
static void work_done(struct work_item *w)
                                        ^
/datasets/git/builtin/grep.c:64:1: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
static int todo_done;
^
/datasets/git/builtin/grep.c:139:6: warning: variable 'old_done' is not initialized [cppcoreguidelines-init-variables]
        int old_done;
            ^
                     = 0
/datasets/git/builtin/grep.c:144:8: warning: backward branch (for loop) is ID-dependent due to variable reference to 'todo_done' and may cause performance degradation [altera-id-dependent-backward-branch]
        for(; todo[todo_done].done && todo_done != todo_start;
              ^
/datasets/git/builtin/grep.c:145:18: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
            todo_done = (todo_done+1) % ARRAY_SIZE(todo)) {
                        ^
/datasets/git/builtin/grep.c:148:16: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                        const char *p = w->out.buf;
                                    ^
/datasets/git/builtin/grep.c:149:4: note: inferred assignment of ID-dependent value from ID-dependent member len [altera-id-dependent-backward-branch]
                        size_t len = w->out.len;
                        ^
/datasets/git/builtin/grep.c:153:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                while (len) {
                                ^
/datasets/git/builtin/grep.c:153:12: warning: backward branch (while loop) is ID-dependent due to variable reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
                                while (len) {
                                       ^
/datasets/git/builtin/grep.c:155:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        if (*p++ == '\n')
                                                         ^
                                                          {
/datasets/git/builtin/grep.c:166:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (old_done != todo_done)
                                  ^
                                   {
/datasets/git/builtin/grep.c:169:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (all_work_added && todo_done == todo_end)
                                                    ^
                                                     {
/datasets/git/builtin/grep.c:177:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/grep.c:177:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/grep.c:179:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < repos_to_free_nr; i++) {
        ^
/datasets/git/builtin/grep.c:183:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(repos_to_free);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/grep.c:193:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/builtin/grep.c:194:21: warning: variable name 'w' is too short, expected at least 3 characters [readability-identifier-length]
                struct work_item *w = get_work();
                                  ^
/datasets/git/builtin/grep.c:195:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!w)
                       ^
                        {
/datasets/git/builtin/grep.c:199:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                hit |= grep_source(opt, &w->source);
                ^~~
/datasets/git/builtin/grep.c:206:9: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
        return (void*) (intptr_t) hit;
               ^
/datasets/git/builtin/grep.c:211:20: warning: variable name 'w' is too short, expected at least 3 characters [readability-identifier-length]
        struct work_item *w = opt->output_priv;
                          ^
/datasets/git/builtin/grep.c:217:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/grep.c:217:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/grep.c:227:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ARRAY_SIZE(todo); i++) {
        ^
/datasets/git/builtin/grep.c:232:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < num_threads; i++) {
        ^
/datasets/git/builtin/grep.c:233:7: warning: variable 'err' is not initialized [cppcoreguidelines-init-variables]
                int err;
                    ^
                        = 0
/datasets/git/builtin/grep.c:234:20: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                struct grep_opt *o = grep_opt_dup(opt);
                                 ^
/datasets/git/builtin/grep.c:239:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err)
                        ^
                         {
/datasets/git/builtin/grep.c:241:8: warning: function is not thread safe [concurrency-mt-unsafe]
                            strerror(err));
                            ^
/datasets/git/builtin/grep.c:248:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/grep.c:248:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/grep.c:250:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!HAVE_THREADS)
                          ^
                           {
/datasets/git/builtin/grep.c:257:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (todo_done != todo_end)
        ^
/datasets/git/builtin/grep.c:257:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'todo_done' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (todo_done != todo_end)
               ^
/datasets/git/builtin/grep.c:257:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (todo_done != todo_end)
                                     ^
                                      {
/datasets/git/builtin/grep.c:266:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < num_threads; i++) {
        ^
/datasets/git/builtin/grep.c:267:9: warning: variable 'h' is not initialized [cppcoreguidelines-init-variables]
                void *h;
                      ^
                        = NULL
/datasets/git/builtin/grep.c:267:9: warning: variable name 'h' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/grep.c:269:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                hit |= (int) (intptr_t) h;
                ^~~
/datasets/git/builtin/grep.c:285:70: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int grep_cmd_config(const char *var, const char *value, void *cb)
                                                                     ^
/datasets/git/builtin/grep.c:287:6: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        int st = grep_config(var, value, cb);
            ^
/datasets/git/builtin/grep.c:288:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (git_color_default_config(var, value, NULL) < 0)
                                                           ^
                                                            {
/datasets/git/builtin/grep.c:293:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (num_threads < 0)
                                    ^
                                     {
/datasets/git/builtin/grep.c:307:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(var, "submodule.recurse"))
                                              ^
                                               {
/datasets/git/builtin/grep.c:325:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (tree_name_len)
                                          ^
                                           {
/datasets/git/builtin/grep.c:336:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->relative && grep_prefix)
                                         ^
                                          {
/datasets/git/builtin/grep.c:338:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/grep.c:341:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (tree_name_len)
                          ^
                           {
/datasets/git/builtin/grep.c:350:21: warning: variable name 'gs' is too short, expected at least 3 characters [readability-identifier-length]
        struct grep_source gs;
                           ^
/datasets/git/builtin/grep.c:363:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else {
          ^~~~~~
/datasets/git/builtin/grep.c:364:7: warning: variable 'hit' is not initialized [cppcoreguidelines-init-variables]
                int hit;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/grep.c:376:21: warning: variable name 'gs' is too short, expected at least 3 characters [readability-identifier-length]
        struct grep_source gs;
                           ^
/datasets/git/builtin/grep.c:389:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else {
          ^~~~~~
/datasets/git/builtin/grep.c:390:7: warning: variable 'hit' is not initialized [cppcoreguidelines-init-variables]
                int hit;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/grep.c:403:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len == 1 && *(const char *)data == '\0')
                                                    ^
                                                     {
/datasets/git/builtin/grep.c:412:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, status;
        ^~~~~~~~~~~~~~
/datasets/git/builtin/grep.c:412:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, status;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/grep.c:412:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/grep.c:412:9: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int i, status;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/grep.c:414:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < path_list->nr; i++)
        ^
/datasets/git/builtin/grep.c:414:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'path_list' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < path_list->nr; i++)
                    ^
/datasets/git/builtin/grep.c:414:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < path_list->nr; i++)
                                           ^
                                            {
/datasets/git/builtin/grep.c:420:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (status)
                   ^
                    {
/datasets/git/builtin/grep.c:421:3: warning: function is not thread safe [concurrency-mt-unsafe]
                exit(status);
                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/grep.c:430:12: warning: function 'grep_submodule' is within a recursive call chain [misc-no-recursion]
static int grep_submodule(struct grep_opt *opt,
           ^
/datasets/git/builtin/grep.c:610:12: note: example recursive call chain, starting from function 'grep_tree'
static int grep_tree(struct grep_opt *opt, const struct pathspec *pathspec,
           ^
/datasets/git/builtin/grep.c:660:11: note: Frame #1: function 'grep_tree' calls function 'grep_tree' here:
                        hit |= grep_tree(opt, pathspec, &sub, base, tn_len,
                               ^
/datasets/git/builtin/grep.c:660:11: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/builtin/grep.c:433:6: warning: 2 adjacent parameters of 'grep_submodule' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                          const char *filename, const char *path, int cached)
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/grep.c:433:18: note: the first parameter in the range is 'filename'
                          const char *filename, const char *path, int cached)
                                      ^~~~~~~~
/datasets/git/builtin/grep.c:433:40: note: the last parameter in the range is 'path'
                          const char *filename, const char *path, int cached)
                                                            ^~~~
/datasets/git/builtin/grep.c:435:21: warning: variable 'subrepo' is not initialized [cppcoreguidelines-init-variables]
        struct repository *subrepo;
                           ^
                                   = NULL
/datasets/git/builtin/grep.c:440:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_submodule_active(superproject, path))
                                                     ^
                                                      {
/datasets/git/builtin/grep.c:448:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(repos_to_free, repos_to_free_nr + 1, repos_to_free_alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/builtin/grep.c:448:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_GROW(repos_to_free, repos_to_free_nr + 1, repos_to_free_alloc);
        ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/builtin/grep.c:499:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(&subopt, opt, sizeof(subopt));
        ^~~~~~
/datasets/git/builtin/grep.c:499:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(&subopt, opt, sizeof(subopt));
        ^~~~~~
/datasets/git/builtin/grep.c:503:20: warning: variable 'object_type' is not initialized [cppcoreguidelines-init-variables]
                enum object_type object_type;
                                 ^
/datasets/git/builtin/grep.c:505:9: warning: variable 'data' is not initialized [cppcoreguidelines-init-variables]
                void *data;
                      ^
                           = NULL
/datasets/git/builtin/grep.c:506:17: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
                unsigned long size;
                              ^
                                   = 0
/datasets/git/builtin/grep.c:515:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!data)
                          ^
                           {
/datasets/git/builtin/grep.c:522:52: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                hit = grep_tree(&subopt, pathspec, &tree, &base, base.len,
                                                                 ^
/datasets/git/builtin/grep.c:533:12: warning: function 'grep_cache' is within a recursive call chain [misc-no-recursion]
static int grep_cache(struct grep_opt *opt,
           ^
/datasets/git/builtin/grep.c:533:12: warning: function 'grep_cache' has cognitive complexity of 33 (threshold 25) [readability-function-cognitive-complexity]
/datasets/git/builtin/grep.c:541:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (repo->submodule_prefix) {
        ^
/datasets/git/builtin/grep.c:546:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (repo_read_index(repo) < 0)
        ^
/datasets/git/builtin/grep.c:549:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (nr = 0; nr < repo->index->cache_nr; nr++) {
        ^
/datasets/git/builtin/grep.c:552:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!cached && ce_skip_worktree(ce))
                ^
/datasets/git/builtin/grep.c:552:15: note: +1
                if (!cached && ce_skip_worktree(ce))
                            ^
/datasets/git/builtin/grep.c:557:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (S_ISSPARSEDIR(ce->ce_mode)) {
                ^
/datasets/git/builtin/grep.c:570:10: note: +1, nesting level increased to 2
                } else if (S_ISREG(ce->ce_mode) &&
                       ^
/datasets/git/builtin/grep.c:570:35: note: +1
                } else if (S_ISREG(ce->ce_mode) &&
                                                ^
/datasets/git/builtin/grep.c:572:29: note: +1
                                   S_ISDIR(ce->ce_mode) ||
                                                        ^
/datasets/git/builtin/grep.c:579:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (cached || (ce->ce_flags & CE_VALID)) {
                        ^
/datasets/git/builtin/grep.c:579:15: note: +1
                        if (cached || (ce->ce_flags & CE_VALID)) {
                                   ^
/datasets/git/builtin/grep.c:580:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (ce_stage(ce) || ce_intent_to_add(ce))
                                ^
/datasets/git/builtin/grep.c:580:22: note: +1
                                if (ce_stage(ce) || ce_intent_to_add(ce))
                                                 ^
/datasets/git/builtin/grep.c:584:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/builtin/grep.c:587:10: note: +1, nesting level increased to 2
                } else if (recurse_submodules && S_ISGITLINK(ce->ce_mode) &&
                       ^
/datasets/git/builtin/grep.c:587:61: note: +1
                } else if (recurse_submodules && S_ISGITLINK(ce->ce_mode) &&
                                                                          ^
/datasets/git/builtin/grep.c:591:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/grep.c:595:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ce_stage(ce)) {
                ^
/datasets/git/builtin/grep.c:596:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        do {
                        ^
/datasets/git/builtin/grep.c:598:40: note: +1
                        } while (nr < repo->index->cache_nr &&
                                                            ^
/datasets/git/builtin/grep.c:602:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (hit && opt->status_only)
                ^
/datasets/git/builtin/grep.c:602:11: note: +1
                if (hit && opt->status_only)
                        ^
/datasets/git/builtin/grep.c:538:6: warning: variable 'nr' is not initialized [cppcoreguidelines-init-variables]
        int nr;
            ^
               = 0
/datasets/git/builtin/grep.c:538:6: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/grep.c:542:19: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                name_base_len = strlen(repo->submodule_prefix);
                                ^
/datasets/git/builtin/grep.c:546:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_read_index(repo) < 0)
                                      ^
                                       {
/datasets/git/builtin/grep.c:549:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'repo' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (nr = 0; nr < repo->index->cache_nr; nr++) {
                     ^
/datasets/git/builtin/grep.c:550:29: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                const struct cache_entry *ce = repo->index->cache[nr];
                                          ^
/datasets/git/builtin/grep.c:552:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!cached && ce_skip_worktree(ce))
                               ^
/datasets/git/./refs/../cache.h:244:31: note: expanded from macro 'ce_skip_worktree'
#define ce_skip_worktree(ce) ((ce)->ce_flags & CE_SKIP_WORKTREE)
                              ^                ~~~~~~~~~~~~~~~~
/datasets/git/builtin/grep.c:552:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!cached && ce_skip_worktree(ce))
                                                    ^
                                                     {
/datasets/git/builtin/grep.c:558:21: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
                        enum object_type type;
                                         ^
/datasets/git/builtin/grep.c:560:10: warning: variable 'data' is not initialized [cppcoreguidelines-init-variables]
                        void *data;
                              ^
                                   = NULL
/datasets/git/builtin/grep.c:561:18: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
                        unsigned long size;
                                      ^
                                           = 0
/datasets/git/builtin/grep.c:566:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        hit |= grep_tree(opt, pathspec, &tree, &name, 0, 0);
                        ^~~
/datasets/git/builtin/grep.c:571:55: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                    match_pathspec(repo->index, pathspec, name.buf, name.len, 0, NULL,
                                                                    ^
/datasets/git/builtin/grep.c:573:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                   S_ISGITLINK(ce->ce_mode))) {
                                   ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/builtin/grep.c:579:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (cached || (ce->ce_flags & CE_VALID)) {
                                       ^
/datasets/git/builtin/grep.c:580:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (ce_stage(ce) || ce_intent_to_add(ce))
                                    ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/builtin/grep.c:580:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (ce_stage(ce) || ce_intent_to_add(ce))
                                                    ^
/datasets/git/./refs/../cache.h:246:31: note: expanded from macro 'ce_intent_to_add'
#define ce_intent_to_add(ce) ((ce)->ce_flags & CE_INTENT_TO_ADD)
                              ^                ~~~~~~~~~~~~~~~~
/datasets/git/builtin/grep.c:580:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (ce_stage(ce) || ce_intent_to_add(ce))
                                                                         ^
                                                                          {
/datasets/git/builtin/grep.c:582:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                hit |= grep_oid(opt, &ce->oid, name.buf,
                                ^~~
/datasets/git/builtin/grep.c:585:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                hit |= grep_file(opt, name.buf);
                                ^~~
/datasets/git/builtin/grep.c:587:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                } else if (recurse_submodules && S_ISGITLINK(ce->ce_mode) &&
                                                 ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/builtin/grep.c:589:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        hit |= grep_submodule(opt, pathspec, NULL, ce->name,
                        ^~~
/datasets/git/builtin/grep.c:595:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce_stage(ce)) {
                    ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/builtin/grep.c:596:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        do {
                        ^
/datasets/git/builtin/grep.c:598:13: warning: backward branch (do loop) is ID-dependent due to variable reference to 'repo' and may cause performance degradation [altera-id-dependent-backward-branch]
                        } while (nr < repo->index->cache_nr &&
                                 ^
/datasets/git/builtin/grep.c:602:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (hit && opt->status_only)
                                            ^
                                             {
/datasets/git/builtin/grep.c:610:12: warning: function 'grep_tree' is within a recursive call chain [misc-no-recursion]
static int grep_tree(struct grep_opt *opt, const struct pathspec *pathspec,
           ^
/datasets/git/builtin/grep.c:618:20: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int old_baselen = base->len;
                          ^
/datasets/git/builtin/grep.c:623:19: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                name_base_len = name.len;
                                ^
/datasets/git/builtin/grep.c:626:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (tree_entry(tree, &entry)) {
        ^
/datasets/git/builtin/grep.c:636:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (match == all_entries_not_interesting)
                                                                 ^
                                                                  {
/datasets/git/builtin/grep.c:638:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (match == entry_not_interesting)
                                                           ^
                                                            {
/datasets/git/builtin/grep.c:645:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        hit |= grep_oid(opt, &entry.oid, base->buf, tn_len,
                        ^~~
/datasets/git/builtin/grep.c:648:21: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
                        enum object_type type;
                                         ^
/datasets/git/builtin/grep.c:650:10: warning: variable 'data' is not initialized [cppcoreguidelines-init-variables]
                        void *data;
                              ^
                                   = NULL
/datasets/git/builtin/grep.c:651:18: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
                        unsigned long size;
                                      ^
                                           = 0
/datasets/git/builtin/grep.c:654:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!data)
                                  ^
                                   {
/datasets/git/builtin/grep.c:660:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        hit |= grep_tree(opt, pathspec, &sub, base, tn_len,
                        ^~~
/datasets/git/builtin/grep.c:663:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                } else if (recurse_submodules && S_ISGITLINK(entry.mode)) {
                                                 ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/builtin/grep.c:664:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        hit |= grep_submodule(opt, pathspec, &entry.oid,
                        ^~~
/datasets/git/builtin/grep.c:671:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (hit && opt->status_only)
                                            ^
                                             {
/datasets/git/builtin/grep.c:682:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (obj->type == OBJ_BLOB)
                                  ^
                                   {
/datasets/git/builtin/grep.c:686:9: warning: variable 'data' is not initialized [cppcoreguidelines-init-variables]
                void *data;
                      ^
                           = NULL
/datasets/git/builtin/grep.c:687:17: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
                unsigned long size;
                              ^
                                   = 0
/datasets/git/builtin/grep.c:689:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int hit, len;
                ^~~~~~~~~~~~~
/datasets/git/builtin/grep.c:689:7: warning: variable 'hit' is not initialized [cppcoreguidelines-init-variables]
                int hit, len;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/grep.c:689:12: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
                int hit, len;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/grep.c:694:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!data)
                          ^
                           {
/datasets/git/builtin/grep.c:697:16: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                len = name ? strlen(name) : 0;
                             ^
/datasets/git/builtin/grep.c:704:48: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                hit = grep_tree(opt, pathspec, &tree, &base, base.len,
                                                             ^
/datasets/git/builtin/grep.c:716:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i;
                     ^
                       = 0
/datasets/git/builtin/grep.c:716:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/grep.c:718:21: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
        const unsigned int nr = list->nr;
                           ^
/datasets/git/builtin/grep.c:720:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr; i++) {
        ^
/datasets/git/builtin/grep.c:720:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < nr; i++) {
                    ^
/datasets/git/builtin/grep.c:721:18: warning: variable 'real_obj' is not initialized [cppcoreguidelines-init-variables]
                struct object *real_obj;
                               ^
                                        = NULL
/datasets/git/builtin/grep.c:749:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (opt->status_only)
                                             ^
                                              {
/datasets/git/builtin/grep.c:757:6: warning: 2 adjacent parameters of 'grep_directory' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                          int exc_std, int use_index)
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/grep.c:757:10: note: the first parameter in the range is 'exc_std'
                          int exc_std, int use_index)
                              ^~~~~~~
/datasets/git/builtin/grep.c:757:23: note: the last parameter in the range is 'use_index'
                          int exc_std, int use_index)
                                           ^~~~~~~~~
/datasets/git/builtin/grep.c:760:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, hit = 0;
        ^~~~~~~~~~~~~~~
/datasets/git/builtin/grep.c:760:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, hit = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/grep.c:760:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/grep.c:762:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!use_index)
                       ^
                        {
/datasets/git/builtin/grep.c:763:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                dir.flags |= DIR_NO_GITLINKS;
                ^            ~~~~~~~~~~~~~~~
/datasets/git/builtin/grep.c:764:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (exc_std)
                    ^
                     {
/datasets/git/builtin/grep.c:768:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < dir.nr; i++) {
        ^
/datasets/git/builtin/grep.c:769:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                hit |= grep_file(opt, dir.entries[i]->name);
                ^~~
/datasets/git/builtin/grep.c:770:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (hit && opt->status_only)
                                            ^
                                             {
/datasets/git/builtin/grep.c:781:6: warning: variable 'value' is not initialized [cppcoreguidelines-init-variables]
        int value;
            ^
                  = 0
/datasets/git/builtin/grep.c:782:14: warning: variable 'endp' is not initialized [cppcoreguidelines-init-variables]
        const char *endp;
                    ^
                         = NULL
/datasets/git/builtin/grep.c:788:10: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        value = strtol(arg, (char **)&endp, 10);
                ^
/datasets/git/builtin/grep.c:788:38: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        value = strtol(arg, (char **)&endp, 10);
                                            ^
/datasets/git/builtin/grep.c:800:6: warning: variable 'from_stdin' is not initialized [cppcoreguidelines-init-variables]
        int from_stdin;
            ^
                       = 0
/datasets/git/builtin/grep.c:801:8: warning: variable 'patterns' is not initialized [cppcoreguidelines-init-variables]
        FILE *patterns;
              ^
                       = NULL
/datasets/git/builtin/grep.c:803:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/grep.c:805:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/grep.c:809:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!patterns)
                      ^
                       {
/datasets/git/builtin/grep.c:811:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (strbuf_getline(&sb, patterns) == 0) {
        ^
/datasets/git/builtin/grep.c:811:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'sb' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (strbuf_getline(&sb, patterns) == 0) {
               ^
/datasets/git/builtin/grep.c:813:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (sb.len == 0)
                                ^
                                 {
/datasets/git/builtin/grep.c:819:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!from_stdin)
                        ^
                         {
/datasets/git/builtin/grep.c:820:3: warning: the value returned by this function should be used [cert-err33-c]
                fclose(patterns);
                ^~~~~~~~~~~~~~~~
/datasets/git/builtin/grep.c:820:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/grep.c:828:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/grep.c:829:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_ARG(arg);
        ^
/datasets/git/./parse-options.h:288:29: note: expanded from macro 'BUG_ON_OPT_ARG'
#define BUG_ON_OPT_ARG(arg) do { \
                            ^
/datasets/git/builtin/grep.c:837:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/grep.c:838:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_ARG(arg);
        ^
/datasets/git/./parse-options.h:288:29: note: expanded from macro 'BUG_ON_OPT_ARG'
#define BUG_ON_OPT_ARG(arg) do { \
                            ^
/datasets/git/builtin/grep.c:846:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/grep.c:847:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_ARG(arg);
        ^
/datasets/git/./parse-options.h:288:29: note: expanded from macro 'BUG_ON_OPT_ARG'
#define BUG_ON_OPT_ARG(arg) do { \
                            ^
/datasets/git/builtin/grep.c:855:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/grep.c:856:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_ARG(arg);
        ^
/datasets/git/./parse-options.h:288:29: note: expanded from macro 'BUG_ON_OPT_ARG'
#define BUG_ON_OPT_ARG(arg) do { \
                            ^
/datasets/git/builtin/grep.c:865:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/grep.c:870:5: warning: function 'cmd_grep' has cognitive complexity of 97 (threshold 25) [readability-function-cognitive-complexity]
int cmd_grep(int argc, const char **argv, const char *prefix)
    ^
/datasets/git/builtin/grep.c:1023:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (the_repository->gitdir) {
        ^
/datasets/git/builtin/grep.c:1028:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (use_index && !startup_info->have_repository) {
        ^
/datasets/git/builtin/grep.c:1028:16: note: +1
        if (use_index && !startup_info->have_repository) {
                      ^
/datasets/git/builtin/grep.c:1031:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (fallback)
                ^
/datasets/git/builtin/grep.c:1033:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/grep.c:1038:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!use_index)
        ^
/datasets/git/builtin/grep.c:1046:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (argc > 0 && !opt.pattern_list && !strcmp(argv[0], "--")) {
        ^
/datasets/git/builtin/grep.c:1046:36: note: +1
        if (argc > 0 && !opt.pattern_list && !strcmp(argv[0], "--")) {
                                          ^
/datasets/git/builtin/grep.c:1052:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (argc > 0 && !opt.pattern_list) {
        ^
/datasets/git/builtin/grep.c:1052:15: note: +1
        if (argc > 0 && !opt.pattern_list) {
                     ^
/datasets/git/builtin/grep.c:1059:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (show_in_pager == default_pager)
        ^
/datasets/git/builtin/grep.c:1061:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (show_in_pager) {
        ^
/datasets/git/builtin/grep.c:1070:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!opt.pattern_list)
        ^
/datasets/git/builtin/grep.c:1074:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt.invert)
        ^
/datasets/git/builtin/grep.c:1081:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < argc; i++) {
        ^
/datasets/git/builtin/grep.c:1082:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(argv[i], "--")) {
                ^
/datasets/git/builtin/grep.c:1093:25: note: +1
        allow_revs = use_index && !untracked;
                               ^
/datasets/git/builtin/grep.c:1094:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < argc; i++) {
        ^
/datasets/git/builtin/grep.c:1100:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(arg, "--")) {
                ^
/datasets/git/builtin/grep.c:1105:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!allow_revs) {
                ^
/datasets/git/builtin/grep.c:1106:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (seen_dashdash)
                        ^
/datasets/git/builtin/grep.c:1111:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (get_oid_with_context(the_repository, arg,
                ^
/datasets/git/builtin/grep.c:1114:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (seen_dashdash)
                        ^
/datasets/git/builtin/grep.c:1120:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!seen_dashdash)
                ^
/datasets/git/builtin/grep.c:1130:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!seen_dashdash) {
        ^
/datasets/git/builtin/grep.c:1132:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (j = i; j < argc; j++)
                ^
/datasets/git/builtin/grep.c:1133:44: note: +1
                        verify_filename(prefix, argv[j], j == i && allow_revs);
                                                                ^
/datasets/git/builtin/grep.c:1138:31: note: +1, including nesting penalty of 0, nesting level increased to 1
                       (opt.max_depth != -1 ? PATHSPEC_MAXDEPTH_VALID : 0),
                                            ^
/datasets/git/builtin/grep.c:1144:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (recurse_submodules && untracked)
        ^
/datasets/git/builtin/grep.c:1144:25: note: +1
        if (recurse_submodules && untracked)
                               ^
/datasets/git/builtin/grep.c:1151:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt.max_count == 0)
        ^
/datasets/git/builtin/grep.c:1154:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (show_in_pager) {
        ^
/datasets/git/builtin/grep.c:1155:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (num_threads > 1)
                ^
/datasets/git/builtin/grep.c:1158:9: note: +1, nesting level increased to 1
        } else if (!HAVE_THREADS && num_threads > 1) {
               ^
/datasets/git/builtin/grep.c:1158:27: note: +1
        } else if (!HAVE_THREADS && num_threads > 1) {
                                 ^
/datasets/git/builtin/grep.c:1161:9: note: +1, nesting level increased to 1
        } else if (num_threads < 0)
               ^
/datasets/git/builtin/grep.c:1163:7: note: +1, nesting level increased to 1
        else if (num_threads == 0)
             ^
/datasets/git/builtin/grep.c:1164:30: note: +2, including nesting penalty of 1, nesting level increased to 2
                num_threads = HAVE_THREADS ? online_cpus() : 1;
                                           ^
/datasets/git/builtin/grep.c:1166:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (num_threads > 1) {
        ^
/datasets/git/builtin/grep.c:1167:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!HAVE_THREADS)
                ^
/datasets/git/builtin/grep.c:1169:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!(opt.name_only || opt.unmatch_name_only || opt.count)
                ^
/datasets/git/builtin/grep.c:1170:7: note: +1
                    && (opt.pre_context || opt.post_context ||
                    ^
/datasets/git/builtin/grep.c:1169:48: note: +1
                if (!(opt.name_only || opt.unmatch_name_only || opt.count)
                                                             ^
/datasets/git/builtin/grep.c:1171:19: note: +1
                        opt.file_break || opt.funcbody))
                                       ^
/datasets/git/builtin/grep.c:1179:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (recurse_submodules)
                ^
/datasets/git/builtin/grep.c:1181:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (startup_info->have_repository)
                ^
/datasets/git/builtin/grep.c:1185:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/grep.c:1195:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (show_in_pager && (cached || list.nr))
        ^
/datasets/git/builtin/grep.c:1195:20: note: +1
        if (show_in_pager && (cached || list.nr))
                          ^
/datasets/git/builtin/grep.c:1195:31: note: +1
        if (show_in_pager && (cached || list.nr))
                                     ^
/datasets/git/builtin/grep.c:1198:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (show_in_pager && opt.pattern_list && !opt.pattern_list->next) {
        ^
/datasets/git/builtin/grep.c:1198:40: note: +1
        if (show_in_pager && opt.pattern_list && !opt.pattern_list->next) {
                                              ^
/datasets/git/builtin/grep.c:1202:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (len > 4 && is_dir_sep(pager[len - 5]))
                ^
/datasets/git/builtin/grep.c:1202:15: note: +1
                if (len > 4 && is_dir_sep(pager[len - 5]))
                            ^
/datasets/git/builtin/grep.c:1205:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opt.ignore_case && !strcmp("less", pager))
                ^
/datasets/git/builtin/grep.c:1205:23: note: +1
                if (opt.ignore_case && !strcmp("less", pager))
                                    ^
/datasets/git/builtin/grep.c:1208:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp("less", pager) || !strcmp("vi", pager)) {
                ^
/datasets/git/builtin/grep.c:1208:30: note: +1
                if (!strcmp("less", pager) || !strcmp("vi", pager)) {
                                           ^
/datasets/git/builtin/grep.c:1211:28: note: +3, including nesting penalty of 2, nesting level increased to 3
                                        strcmp("less", pager) ? "" : "*",
                                                              ^
/datasets/git/builtin/grep.c:1218:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!show_in_pager && !opt.status_only)
        ^
/datasets/git/builtin/grep.c:1218:21: note: +1
        if (!show_in_pager && !opt.status_only)
                           ^
/datasets/git/builtin/grep.c:1225:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!use_index || untracked) {
        ^
/datasets/git/builtin/grep.c:1225:17: note: +1
        if (!use_index || untracked) {
                       ^
/datasets/git/builtin/grep.c:1226:39: note: +2, including nesting penalty of 1, nesting level increased to 2
                int use_exclude = (opt_exclude < 0) ? use_index : !!opt_exclude;
                                                    ^
/datasets/git/builtin/grep.c:1228:9: note: +1, nesting level increased to 1
        } else if (0 <= opt_exclude) {
               ^
/datasets/git/builtin/grep.c:1230:9: note: +1, nesting level increased to 1
        } else if (!list.nr) {
               ^
/datasets/git/builtin/grep.c:1231:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!cached)
                ^
/datasets/git/builtin/grep.c:1235:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/grep.c:1236:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (cached)
                ^
/datasets/git/builtin/grep.c:1242:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (num_threads > 1)
        ^
/datasets/git/builtin/grep.c:1244:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (hit && show_in_pager)
        ^
/datasets/git/builtin/grep.c:1244:10: note: +1
        if (hit && show_in_pager)
                ^
/datasets/git/builtin/grep.c:873:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int cached = 0, untracked = 0, opt_exclude = -1;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/grep.c:875:6: warning: variable 'external_grep_allowed__ignored' is not initialized [cppcoreguidelines-init-variables]
        int external_grep_allowed__ignored;
            ^
                                           = 0
/datasets/git/builtin/grep.c:876:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *show_in_pager = NULL, *default_pager = "dummy";
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/grep.c:881:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/grep.c:881:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/grep.c:882:6: warning: variable 'dummy' is not initialized [cppcoreguidelines-init-variables]
        int dummy;
            ^
                  = 0
/datasets/git/builtin/grep.c:884:6: warning: variable 'allow_revs' is not initialized [cppcoreguidelines-init-variables]
        int allow_revs;
            ^
                       = 0
/datasets/git/builtin/grep.c:887:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "cached", &cached,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/grep.c:891:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "untracked", &untracked,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/grep.c:893:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT(0, "exclude-standard", &opt_exclude,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/grep.c:895:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "recurse-submodules", &recurse_submodules,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/grep.c:898:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('v', "invert-match", &opt.invert,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/grep.c:900:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('i', "ignore-case", &opt.ignore_case,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/grep.c:902:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('w', "word-regexp", &opt.word_regexp,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/grep.c:904:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT('a', "text", &opt.binary,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/grep.c:906:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT('I', NULL, &opt.binary,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/grep.c:909:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "textconv", &opt.allow_textconv,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/grep.c:911:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT('r', "recursive", &opt.max_depth,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/grep.c:917:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT('E', "extended-regexp", &opt.pattern_type_option,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/grep.c:920:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT('G', "basic-regexp", &opt.pattern_type_option,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/grep.c:923:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT('F', "fixed-strings", &opt.pattern_type_option,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/grep.c:926:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT('P', "perl-regexp", &opt.pattern_type_option,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/grep.c:930:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('n', "line-number", &opt.linenum, N_("show line numbers")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/grep.c:931:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "column", &opt.columnnum, N_("show column number of first match")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/grep.c:933:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT('H', NULL, &opt.pathname, N_("show filenames"), 1),
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/grep.c:936:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('l', "files-with-matches", &opt.name_only,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/grep.c:938:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "name-only", &opt.name_only,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/grep.c:940:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('L', "files-without-match",
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/grep.c:943:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL_F('z', "null", &opt.null_following_name,
                ^
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/grep.c:946:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('o', "only-matching", &opt.only_matching,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/grep.c:948:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('c', "count", &opt.count,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/grep.c:951:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "break", &opt.file_break,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/grep.c:953:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "heading", &opt.heading,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/grep.c:965:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_NUMBER_CALLBACK(&opt, N_("shortcut for -C NUM"),
                ^
/datasets/git/./parse-options.h:205:4: note: expanded from macro 'OPT_NUMBER_CALLBACK'
          PARSE_OPT_NOARG | PARSE_OPT_NONEG, (f) }
          ^~~~~~~~~~~~~~~
/datasets/git/builtin/grep.c:967:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('p', "show-function", &opt.funcname,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/grep.c:969:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('W', "function-context", &opt.funcbody,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/grep.c:978:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        PARSE_OPT_NOARG | PARSE_OPT_NONEG, and_callback),
                        ^
/datasets/git/./parse-options.h:169:47: note: expanded from macro 'OPT_CALLBACK_F'
        { OPTION_CALLBACK, (s), (l), (v), (a), (h), (f), (cb) }
                                                     ^
/datasets/git/builtin/grep.c:979:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "or", &dummy, ""),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/grep.c:981:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        PARSE_OPT_NOARG | PARSE_OPT_NONEG, not_callback),
                        ^
/datasets/git/./parse-options.h:169:47: note: expanded from macro 'OPT_CALLBACK_F'
        { OPTION_CALLBACK, (s), (l), (v), (a), (h), (f), (cb) }
                                                     ^
/datasets/git/builtin/grep.c:983:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        PARSE_OPT_NOARG | PARSE_OPT_NONEG | PARSE_OPT_NODASH,
                        ^
/datasets/git/./parse-options.h:169:47: note: expanded from macro 'OPT_CALLBACK_F'
        { OPTION_CALLBACK, (s), (l), (v), (a), (h), (f), (cb) }
                                                     ^
/datasets/git/builtin/grep.c:986:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        PARSE_OPT_NOARG | PARSE_OPT_NONEG | PARSE_OPT_NODASH,
                        ^
/datasets/git/./parse-options.h:169:47: note: expanded from macro 'OPT_CALLBACK_F'
        { OPTION_CALLBACK, (s), (l), (v), (a), (h), (f), (cb) }
                                                     ^
/datasets/git/builtin/grep.c:988:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__QUIET(&opt.status_only,
                ^
/datasets/git/./parse-options.h:360:31: note: expanded from macro 'OPT__QUIET'
#define OPT__QUIET(var, h)    OPT_COUNTUP('q', "quiet",   (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/grep.c:990:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "all-match", &opt.all_match,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/grep.c:995:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        PARSE_OPT_OPTARG | PARSE_OPT_NOCOMPLETE,
                        ^~~~~~~~~~~~~~~~
/datasets/git/builtin/grep.c:997:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL_F(0, "ext-grep", &external_grep_allowed__ignored,
                ^
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/grep.c:1020:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                             PARSE_OPT_KEEP_DASHDASH |
                             ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/grep.c:1031:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fallback)
                             ^
                              {
/datasets/git/builtin/grep.c:1033:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/grep.c:1038:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!use_index)
                       ^
                        {
/datasets/git/builtin/grep.c:1059:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (show_in_pager == default_pager)
                                           ^
                                            {
/datasets/git/builtin/grep.c:1070:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opt.pattern_list)
                              ^
                               {
/datasets/git/builtin/grep.c:1074:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt.invert)
                       ^
                        {
/datasets/git/builtin/grep.c:1081:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < argc; i++) {
        ^
/datasets/git/builtin/grep.c:870:14: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
int cmd_grep(int argc, const char **argv, const char *prefix)
             ^
/datasets/git/builtin/grep.c:1081:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'argc' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < argc; i++) {
                    ^
/datasets/git/builtin/grep.c:1094:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < argc; i++) {
        ^
/datasets/git/builtin/grep.c:1094:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'argc' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < argc; i++) {
                    ^
/datasets/git/builtin/grep.c:1097:25: warning: variable name 'oc' is too short, expected at least 3 characters [readability-identifier-length]
                struct object_context oc;
                                      ^
/datasets/git/builtin/grep.c:1098:18: warning: variable 'object' is not initialized [cppcoreguidelines-init-variables]
                struct object *object;
                               ^
                                      = NULL
/datasets/git/builtin/grep.c:1106:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (seen_dashdash)
                                          ^
                                           {
/datasets/git/builtin/grep.c:1114:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (seen_dashdash)
                                          ^
                                           {
/datasets/git/builtin/grep.c:1120:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!seen_dashdash)
                                   ^
                                    {
/datasets/git/builtin/grep.c:1131:7: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
                int j;
                    ^
                      = 0
/datasets/git/builtin/grep.c:1131:7: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/grep.c:1132:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (j = i; j < argc; j++)
                ^
/datasets/git/builtin/grep.c:1132:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'j' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (j = i; j < argc; j++)
                            ^
/datasets/git/builtin/grep.c:1132:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (j = i; j < argc; j++)
                                          ^
                                           {
/datasets/git/builtin/grep.c:1137:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_PREFER_CWD |
                       ^
/datasets/git/./pathspec.h:65:29: note: expanded from macro 'PATHSPEC_PREFER_CWD'
#define PATHSPEC_PREFER_CWD (1<<0) /* No args means match cwd */
                            ^~~~~~
/datasets/git/builtin/grep.c:1138:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       (opt.max_depth != -1 ? PATHSPEC_MAXDEPTH_VALID : 0),
                                              ^
/datasets/git/./pathspec.h:67:34: note: expanded from macro 'PATHSPEC_MAXDEPTH_VALID'
#define PATHSPEC_MAXDEPTH_VALID (1<<2) /* max_depth field is valid */
                                 ^
/datasets/git/builtin/grep.c:1144:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (recurse_submodules && untracked)
                                            ^
                                             {
/datasets/git/builtin/grep.c:1151:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt.max_count == 0)
                               ^
                                {
/datasets/git/builtin/grep.c:1155:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (num_threads > 1)
                                    ^
                                     {
/datasets/git/builtin/grep.c:1161:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else if (num_threads < 0)
                                   ^
                                    {
/datasets/git/builtin/grep.c:1163:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (num_threads == 0)
                                  ^
                                   {
/datasets/git/builtin/grep.c:1167:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!HAVE_THREADS)
                                  ^
                                   {
/datasets/git/builtin/grep.c:1171:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        opt.file_break || opt.funcbody))
                                                        ^
                                                         {
/datasets/git/builtin/grep.c:1179:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (recurse_submodules)
                                       ^
                                        {
/datasets/git/builtin/grep.c:1181:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (startup_info->have_repository)
                                                  ^
                                                   {
/datasets/git/builtin/grep.c:1195:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (show_in_pager && (cached || list.nr))
                                                 ^
                                                  {
/datasets/git/builtin/grep.c:1200:13: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int len = strlen(pager);
                          ^
/datasets/git/builtin/grep.c:1202:41: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (len > 4 && is_dir_sep(pager[len - 5]))
                                                      ^
/datasets/git/builtin/grep.c:1202:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (len > 4 && is_dir_sep(pager[len - 5]))
                                                          ^
                                                           {
/datasets/git/builtin/grep.c:1205:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opt.ignore_case && !strcmp("less", pager))
                                                              ^
                                                               {
/datasets/git/builtin/grep.c:1218:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!show_in_pager && !opt.status_only)
                                               ^
                                                {
/datasets/git/builtin/grep.c:1231:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!cached)
                            ^
                             {
/datasets/git/builtin/grep.c:1236:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cached)
                           ^
                            {
/datasets/git/builtin/grep.c:1242:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (num_threads > 1)
                            ^
                             {
/datasets/git/builtin/grep.c:1243:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                hit |= wait_all();
                ^~~
/datasets/git/builtin/grep.c:1244:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (hit && show_in_pager)
                                 ^
                                  {
/datasets/git/builtin/hash-object.c:8:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "blob.h"
/datasets/git/builtin/hash-object.c:20:54: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
static int hash_literally(struct object_id *oid, int fd, const char *type, unsigned flags)
                                                     ^
/datasets/git/builtin/hash-object.c:23:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/builtin/hash-object.c:25:28: warning: 4096 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (strbuf_read(&buf, fd, 4096) < 0)
                                  ^
/datasets/git/builtin/hash-object.c:25:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strbuf_read(&buf, fd, 4096) < 0)
                                            ^
                                             {
/datasets/git/builtin/hash-object.c:27:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/hash-object.c:34:25: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
static void hash_fd(int fd, const char *type, const char *path, unsigned flags,
                        ^
/datasets/git/builtin/hash-object.c:37:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/builtin/hash-object.c:44:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        type_from_string(type), path, flags)))
                                                              ^
                                                               {
/datasets/git/builtin/hash-object.c:45:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                die((flags & HASH_WRITE_OBJECT)
                     ^
/datasets/git/builtin/hash-object.c:52:25: warning: 2 adjacent parameters of 'hash_object' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void hash_object(const char *path, const char *type, const char *vpath,
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/hash-object.c:52:37: note: the first parameter in the range is 'path'
static void hash_object(const char *path, const char *type, const char *vpath,
                                    ^~~~
/datasets/git/builtin/hash-object.c:52:55: note: the last parameter in the range is 'type'
static void hash_object(const char *path, const char *type, const char *vpath,
                                                      ^~~~
/datasets/git/builtin/hash-object.c:55:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/builtin/hash-object.c:55:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/hash-object.c:63:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct strbuf buf = STRBUF_INIT;
        ^
/datasets/git/builtin/hash-object.c:66:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (strbuf_getline(&buf, stdin) != EOF) {
        ^
/datasets/git/builtin/hash-object.c:66:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'buf' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (strbuf_getline(&buf, stdin) != EOF) {
               ^
/datasets/git/builtin/hash-object.c:69:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (unquote_c_style(&unquoted, buf.buf, NULL))
                                                                      ^
                                                                       {
/datasets/git/builtin/hash-object.c:80:5: warning: function 'cmd_hash_object' has cognitive complexity of 26 (threshold 25) [readability-function-cognitive-complexity]
int cmd_hash_object(int argc, const char **argv, const char *prefix)
    ^
/datasets/git/builtin/hash-object.c:114:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (flags & HASH_WRITE_OBJECT)
        ^
/datasets/git/builtin/hash-object.c:116:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/builtin/hash-object.c:119:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (vpath && prefix) {
        ^
/datasets/git/builtin/hash-object.c:119:12: note: +1
        if (vpath && prefix) {
                  ^
/datasets/git/builtin/hash-object.c:126:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (stdin_paths) {
        ^
/datasets/git/builtin/hash-object.c:127:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (hashstdin)
                ^
/datasets/git/builtin/hash-object.c:129:8: note: +1, nesting level increased to 2
                else if (argc)
                     ^
/datasets/git/builtin/hash-object.c:131:8: note: +1, nesting level increased to 2
                else if (vpath)
                     ^
/datasets/git/builtin/hash-object.c:134:2: note: +1, nesting level increased to 1
        else {
        ^
/datasets/git/builtin/hash-object.c:135:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (hashstdin > 1)
                ^
/datasets/git/builtin/hash-object.c:137:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (vpath && no_filters)
                ^
/datasets/git/builtin/hash-object.c:137:13: note: +1
                if (vpath && no_filters)
                          ^
/datasets/git/builtin/hash-object.c:141:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (errstr) {
        ^
/datasets/git/builtin/hash-object.c:146:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (hashstdin)
        ^
/datasets/git/builtin/hash-object.c:149:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0 ; i < argc; i++) {
        ^
/datasets/git/builtin/hash-object.c:153:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (prefix)
                ^
/datasets/git/builtin/hash-object.c:155:37: note: +2, including nesting penalty of 1, nesting level increased to 2
                hash_object(arg, type, no_filters ? NULL : vpath ? vpath : arg,
                                                  ^
/datasets/git/builtin/hash-object.c:155:52: note: +3, including nesting penalty of 2, nesting level increased to 3
                hash_object(arg, type, no_filters ? NULL : vpath ? vpath : arg,
                                                                 ^
/datasets/git/builtin/hash-object.c:160:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (stdin_paths)
        ^
/datasets/git/builtin/hash-object.c:99:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT('w', NULL, &flags, N_("write the object into the object database"),
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/hash-object.c:101:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_COUNTUP( 0 , "stdin", &hashstdin, N_("read the object from stdin")),
                ^
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/hash-object.c:102:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL( 0 , "stdin-paths", &stdin_paths, N_("read file names from stdin")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/hash-object.c:103:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL( 0 , "no-filters", &no_filters, N_("store file as is without filters")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/hash-object.c:104:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL( 0, "literally", &literally, N_("just hash any random garbage to create corrupt objects for debugging Git")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/hash-object.c:108:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/hash-object.c:108:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/hash-object.c:114:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & HASH_WRITE_OBJECT)
            ^
/datasets/git/builtin/hash-object.c:114:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & HASH_WRITE_OBJECT)
                                      ^
                                       {
/datasets/git/builtin/hash-object.c:116:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/hash-object.c:127:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (hashstdin)
                              ^
                               {
/datasets/git/builtin/hash-object.c:129:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (argc)
                              ^
                               {
/datasets/git/builtin/hash-object.c:131:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (vpath)
                               ^
                                {
/datasets/git/builtin/hash-object.c:135:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (hashstdin > 1)
                                  ^
                                   {
/datasets/git/builtin/hash-object.c:137:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (vpath && no_filters)
                                        ^
                                         {
/datasets/git/builtin/hash-object.c:146:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (hashstdin)
                      ^
                       {
/datasets/git/builtin/hash-object.c:149:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0 ; i < argc; i++) {
        ^
/datasets/git/builtin/hash-object.c:149:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'argc' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0 ; i < argc; i++) {
                     ^
/datasets/git/builtin/hash-object.c:153:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (prefix)
                           ^
                            {
/datasets/git/builtin/hash-object.c:160:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (stdin_paths)
                        ^
                         {
/datasets/git/builtin/help.c:5:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "alias.h"
/datasets/git/builtin/help.c:21:4: warning: variable 'man_viewer_list' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} *man_viewer_list;
   ^
/datasets/git/builtin/help.c:21:4: warning: variable 'man_viewer_list' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/help.c:27:4: warning: variable 'man_viewer_info_list' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} *man_viewer_info_list;
   ^
/datasets/git/builtin/help.c:27:4: warning: variable 'man_viewer_info_list' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/help.c:50:3: warning: variable 'cmd_mode' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} cmd_mode;
  ^
/datasets/git/builtin/help.c:52:20: warning: variable 'html_path' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *html_path;
                   ^
/datasets/git/builtin/help.c:53:12: warning: variable 'verbose' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int verbose = 1;
           ^
/datasets/git/builtin/help.c:54:25: warning: variable 'help_format' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static enum help_format help_format = HELP_FORMAT_NONE;
                        ^
/datasets/git/builtin/help.c:55:12: warning: variable 'exclude_guides' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int exclude_guides;
           ^
/datasets/git/builtin/help.c:56:12: warning: variable 'show_external_commands' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int show_external_commands = -1;
           ^
/datasets/git/builtin/help.c:57:12: warning: variable 'show_aliases' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int show_aliases = -1;
           ^
/datasets/git/builtin/help.c:58:22: warning: variable 'builtin_help_options' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct option builtin_help_options[] = {
                     ^
/datasets/git/builtin/help.c:59:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_CMDMODE('a', "all", &cmd_mode, N_("print all available commands"),
        ^
/datasets/git/./parse-options.h:188:37: note: expanded from macro 'OPT_CMDMODE'
#define OPT_CMDMODE(s, l, v, h, i)  OPT_CMDMODE_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:187:16: note: expanded from macro 'OPT_CMDMODE_F'
                                      (h), PARSE_OPT_CMDMODE|PARSE_OPT_NOARG|PARSE_OPT_NONEG | (f), NULL, (i) }
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/help.c:61:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "external-commands", &show_external_commands,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/help.c:63:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "aliases", &show_aliases, N_("show aliases in --all")),
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/help.c:64:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_HIDDEN_BOOL(0, "exclude-guides", &exclude_guides, N_("exclude guides")),
        ^
/datasets/git/./parse-options.h:185:16: note: expanded from macro 'OPT_HIDDEN_BOOL'
                                      (h), PARSE_OPT_NOARG | PARSE_OPT_HIDDEN, NULL, 1}
                                           ^~~~~~~~~~~~~~~
/datasets/git/builtin/help.c:65:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_SET_INT('m', "man", &help_format, N_("show man page"), HELP_FORMAT_MAN),
        ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/help.c:66:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_SET_INT('w', "web", &help_format, N_("show manual in web browser"),
        ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/help.c:68:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_SET_INT('i', "info", &help_format, N_("show info page"),
        ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/help.c:70:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT__VERBOSE(&verbose, N_("print command description")),
        ^
/datasets/git/./parse-options.h:359:31: note: expanded from macro 'OPT__VERBOSE'
#define OPT__VERBOSE(var, h)  OPT_COUNTUP('v', "verbose", (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/help.c:72:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_CMDMODE('g', "guides", &cmd_mode, N_("print list of useful guides"),
        ^
/datasets/git/./parse-options.h:188:37: note: expanded from macro 'OPT_CMDMODE'
#define OPT_CMDMODE(s, l, v, h, i)  OPT_CMDMODE_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:187:16: note: expanded from macro 'OPT_CMDMODE_F'
                                      (h), PARSE_OPT_CMDMODE|PARSE_OPT_NOARG|PARSE_OPT_NONEG | (f), NULL, (i) }
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/help.c:74:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_CMDMODE(0, "user-interfaces", &cmd_mode,
        ^
/datasets/git/./parse-options.h:188:37: note: expanded from macro 'OPT_CMDMODE'
#define OPT_CMDMODE(s, l, v, h, i)  OPT_CMDMODE_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:187:16: note: expanded from macro 'OPT_CMDMODE_F'
                                      (h), PARSE_OPT_CMDMODE|PARSE_OPT_NOARG|PARSE_OPT_NONEG | (f), NULL, (i) }
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/help.c:77:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_CMDMODE(0, "developer-interfaces", &cmd_mode,
        ^
/datasets/git/./parse-options.h:188:37: note: expanded from macro 'OPT_CMDMODE'
#define OPT_CMDMODE(s, l, v, h, i)  OPT_CMDMODE_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:187:16: note: expanded from macro 'OPT_CMDMODE_F'
                                      (h), PARSE_OPT_CMDMODE|PARSE_OPT_NOARG|PARSE_OPT_NONEG | (f), NULL, (i) }
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/help.c:80:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_CMDMODE('c', "config", &cmd_mode, N_("print all configuration variable names"),
        ^
/datasets/git/./parse-options.h:188:37: note: expanded from macro 'OPT_CMDMODE'
#define OPT_CMDMODE(s, l, v, h, i)  OPT_CMDMODE_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:187:16: note: expanded from macro 'OPT_CMDMODE_F'
                                      (h), PARSE_OPT_CMDMODE|PARSE_OPT_NOARG|PARSE_OPT_NONEG | (f), NULL, (i) }
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/help.c:82:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_CMDMODE_F(0, "config-for-completion", &cmd_mode, "",
        ^
/datasets/git/./parse-options.h:187:16: note: expanded from macro 'OPT_CMDMODE_F'
                                      (h), PARSE_OPT_CMDMODE|PARSE_OPT_NOARG|PARSE_OPT_NONEG | (f), NULL, (i) }
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/help.c:84:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_CMDMODE_F(0, "config-sections-for-completion", &cmd_mode, "",
        ^
/datasets/git/./parse-options.h:187:16: note: expanded from macro 'OPT_CMDMODE_F'
                                      (h), PARSE_OPT_CMDMODE|PARSE_OPT_NOARG|PARSE_OPT_NONEG | (f), NULL, (i) }
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/help.c:100:8: warning: accessing fields in struct 'slot_expansion' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct slot_expansion {
       ^
/datasets/git/builtin/help.c:100:8: note: use "__attribute__((aligned(32)))" to align struct 'slot_expansion' to 32 bytes
/datasets/git/builtin/help.c:107:13: warning: function 'list_config_help' has cognitive complexity of 29 (threshold 25) [readability-function-cognitive-complexity]
static void list_config_help(enum show_config_type type)
            ^
/datasets/git/builtin/help.c:129:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (p = config_name_list; *p; p++) {
        ^
/datasets/git/builtin/help.c:133:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (e = slot_expansions; e->prefix; e++) {
                ^
/datasets/git/builtin/help.c:137:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!strcasecmp(var, sb.buf)) {
                        ^
/datasets/git/builtin/help.c:144:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!e->prefix)
                ^
/datasets/git/builtin/help.c:148:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (e = slot_expansions; e->prefix; e++)
        ^
/datasets/git/builtin/help.c:149:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!e->found)
                ^
/datasets/git/builtin/help.c:154:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < keys.nr; i++) {
        ^
/datasets/git/builtin/help.c:160:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                switch (type) {
                ^
/datasets/git/builtin/help.c:173:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!dot && !wildcard && !tag) {
                ^
/datasets/git/builtin/help.c:173:25: note: +1
                if (!dot && !wildcard && !tag) {
                                      ^
/datasets/git/builtin/help.c:178:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (dot)
                ^
/datasets/git/builtin/help.c:180:8: note: +1, nesting level increased to 2
                else if (wildcard && !tag)
                     ^
/datasets/git/builtin/help.c:180:21: note: +1
                else if (wildcard && !tag)
                                  ^
/datasets/git/builtin/help.c:182:8: note: +1, nesting level increased to 2
                else if (!wildcard && tag)
                     ^
/datasets/git/builtin/help.c:182:22: note: +1
                else if (!wildcard && tag)
                                   ^
/datasets/git/builtin/help.c:184:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/help.c:185:25: note: +3, including nesting penalty of 2, nesting level increased to 3
                        cut = wildcard < tag ? wildcard : tag;
                                             ^
/datasets/git/builtin/help.c:194:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for_each_string_list_item(item, &keys_uniq)
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/help.c:194:2: note: +1
        for_each_string_list_item(item, &keys_uniq)
        ^
/datasets/git/./string-list.h:152:12: note: expanded from macro 'for_each_string_list_item'
             item && item < (list)->items + (list)->nr; \
                  ^
/datasets/git/builtin/help.c:122:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        const char **p;
        ^
/datasets/git/builtin/help.c:122:15: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        const char **p;
                     ^
                       = NULL
/datasets/git/builtin/help.c:122:15: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/help.c:123:25: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct slot_expansion *e;
                               ^
                                 = NULL
/datasets/git/builtin/help.c:123:25: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/help.c:126:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/builtin/help.c:127:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/help.c:127:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/help.c:123:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct slot_expansion *e;
        ^
/datasets/git/builtin/help.c:129:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = config_name_list; *p; p++) {
                                   ^
/datasets/git/builtin/help.c:131:17: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                struct strbuf sb = STRBUF_INIT;
                              ^
/datasets/git/builtin/help.c:133:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (e = slot_expansions; e->prefix; e++) {
                ^
/datasets/git/builtin/help.c:133:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'e' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (e = slot_expansions; e->prefix; e++) {
                                          ^
/datasets/git/builtin/help.c:144:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!e->prefix)
                               ^
                                {
/datasets/git/builtin/help.c:148:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (e = slot_expansions; e->prefix; e++)
        ^
/datasets/git/builtin/help.c:148:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'e' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (e = slot_expansions; e->prefix; e++)
                                  ^
/datasets/git/builtin/help.c:148:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (e = slot_expansions; e->prefix; e++)
                                                 ^
                                                  {
/datasets/git/builtin/help.c:149:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!e->found)
                              ^
                               {
/datasets/git/builtin/help.c:154:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < keys.nr; i++) {
        ^
/datasets/git/builtin/help.c:126:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct string_list_item *item;
        ^
/datasets/git/builtin/help.c:156:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                const char *wildcard, *tag, *cut;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/help.c:156:15: warning: variable 'wildcard' is not initialized [cppcoreguidelines-init-variables]
                const char *wildcard, *tag, *cut;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/help.c:156:26: warning: variable 'tag' is not initialized [cppcoreguidelines-init-variables]
                const char *wildcard, *tag, *cut;
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/help.c:156:32: warning: variable 'cut' is not initialized [cppcoreguidelines-init-variables]
                const char *wildcard, *tag, *cut;
                                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/help.c:158:17: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                struct strbuf sb = STRBUF_INIT;
                              ^
/datasets/git/builtin/help.c:160:3: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
                switch (type) {
                ^
/datasets/git/builtin/help.c:178:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (dot)
                        ^
                         {
/datasets/git/builtin/help.c:180:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (wildcard && !tag)
                                          ^
                                           {
/datasets/git/builtin/help.c:182:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!wildcard && tag)
                                          ^
                                           {
/datasets/git/builtin/help.c:184:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/help.c:194:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(item, &keys_uniq)
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/help.c:194:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(item, &keys_uniq)
                                  ^
/datasets/git/builtin/help.c:201:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(format, "man"))
                                   ^
                                    {
/datasets/git/builtin/help.c:203:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(format, "info"))
                                    ^
                                     {
/datasets/git/builtin/help.c:205:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(format, "web") || !strcmp(format, "html"))
                                                              ^
                                                               {
/datasets/git/builtin/help.c:216:31: warning: variable 'viewer' is not initialized [cppcoreguidelines-init-variables]
        struct man_viewer_info_list *viewer;
                                     ^
                                            = NULL
/datasets/git/builtin/help.c:218:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (viewer = man_viewer_info_list; viewer; viewer = viewer->next)
        ^
/datasets/git/builtin/help.c:218:38: warning: backward branch (for loop) is ID-dependent due to variable reference to 'viewer' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (viewer = man_viewer_info_list; viewer; viewer = viewer->next)
                                            ^
/datasets/git/builtin/help.c:220:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcasecmp(name, viewer->name))
                                                    ^
                                                     {
/datasets/git/builtin/help.c:230:6: warning: variable 'version' is not initialized [cppcoreguidelines-init-variables]
        int version;
            ^
                    = 0
/datasets/git/builtin/help.c:236:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (start_command(&ec_process))
                                       ^
                                        {
/datasets/git/builtin/help.c:239:39: warning: 20 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        strbuf_read(&buffer, ec_process.err, 20);
                                             ^
/datasets/git/builtin/help.c:254:12: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c]
        version = atoi(buffer.buf);
                  ^
/datasets/git/builtin/help.c:256:16: warning: 22 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (version < 22) {
                      ^
/datasets/git/builtin/help.c:266:30: warning: 2 adjacent parameters of 'exec_woman_emacs' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void exec_woman_emacs(const char *path, const char *page)
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/help.c:266:42: note: the first parameter in the range is 'path'
static void exec_woman_emacs(const char *path, const char *page)
                                         ^~~~
/datasets/git/builtin/help.c:266:60: note: the last parameter in the range is 'page'
static void exec_woman_emacs(const char *path, const char *page)
                                                           ^~~~
/datasets/git/builtin/help.c:272:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!path)
                          ^
                           {
/datasets/git/builtin/help.c:281:32: warning: 2 adjacent parameters of 'exec_man_konqueror' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void exec_man_konqueror(const char *path, const char *page)
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/help.c:281:44: note: the first parameter in the range is 'path'
static void exec_man_konqueror(const char *path, const char *page)
                                           ^~~~
/datasets/git/builtin/help.c:281:62: note: the last parameter in the range is 'page'
static void exec_man_konqueror(const char *path, const char *page)
                                                             ^~~~
/datasets/git/builtin/help.c:283:24: warning: function is not thread safe [concurrency-mt-unsafe]
        const char *display = getenv("DISPLAY");
                              ^
/datasets/git/builtin/help.c:290:11: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
                        size_t len;
                               ^
                                   = 0
/datasets/git/builtin/help.c:291:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (strip_suffix(path, "/konqueror", &len))
                                                                   ^
                                                                    {
/datasets/git/builtin/help.c:294:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/builtin/help.c:305:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!path)
                  ^
                   {
/datasets/git/builtin/help.c:322:27: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        struct man_viewer_list **p = &man_viewer_list;
                                 ^
/datasets/git/builtin/help.c:324:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*p)
        ^
/datasets/git/builtin/help.c:324:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (*p)
               ^
/datasets/git/builtin/help.c:324:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (*p)
                  ^
                   {
/datasets/git/builtin/help.c:326:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FLEX_ALLOC_STR(*p, name, name);
        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^
/datasets/git/./git-compat-util.h:1151:47: note: expanded from macro 'FLEX_ALLOC_MEM'
#define FLEX_ALLOC_MEM(x, flexname, buf, len) do { \
                                              ^
/datasets/git/builtin/help.c:326:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        FLEX_ALLOC_STR(*p, name, name);
        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/builtin/help.c:326:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        FLEX_ALLOC_STR(*p, name, name);
        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/builtin/help.c:340:31: warning: variable 'new_man_viewer' is not initialized [cppcoreguidelines-init-variables]
        struct man_viewer_info_list *new_man_viewer;
                                     ^
                                                    = NULL
/datasets/git/builtin/help.c:341:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FLEX_ALLOC_MEM(new_man_viewer, name, name, len);
        ^
/datasets/git/./git-compat-util.h:1151:47: note: expanded from macro 'FLEX_ALLOC_MEM'
#define FLEX_ALLOC_MEM(x, flexname, buf, len) do { \
                                              ^
/datasets/git/builtin/help.c:341:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        FLEX_ALLOC_MEM(new_man_viewer, name, name, len);
        ^
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/builtin/help.c:341:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        FLEX_ALLOC_MEM(new_man_viewer, name, name, len);
        ^
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/builtin/help.c:351:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (supported_man_viewer(name, len))
                                            ^
                                             {
/datasets/git/builtin/help.c:353:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/help.c:365:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (supported_man_viewer(name, len))
                                            ^
                                             {
/datasets/git/builtin/help.c:369:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/help.c:375:32: warning: 2 adjacent parameters of 'add_man_viewer_info' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int add_man_viewer_info(const char *var, const char *value)
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/help.c:375:44: note: the first parameter in the range is 'var'
static int add_man_viewer_info(const char *var, const char *value)
                                           ^~~
/datasets/git/builtin/help.c:375:61: note: the last parameter in the range is 'value'
static int add_man_viewer_info(const char *var, const char *value)
                                                            ^~~~~
/datasets/git/builtin/help.c:377:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *name, *subkey;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/help.c:377:14: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
        const char *name, *subkey;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/help.c:377:21: warning: variable 'subkey' is not initialized [cppcoreguidelines-init-variables]
        const char *name, *subkey;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/help.c:378:9: warning: variable 'namelen' is not initialized [cppcoreguidelines-init-variables]
        size_t namelen;
               ^
                       = 0
/datasets/git/builtin/help.c:380:74: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_config_key(var, "man", &name, &namelen, &subkey) < 0 || !name)
                                                                                ^
                                                                                 {
/datasets/git/builtin/help.c:384:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
                            {
/datasets/git/builtin/help.c:389:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
                            {
/datasets/git/builtin/help.c:397:70: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int git_help_config(const char *var, const char *value, void *cb)
                                                                     ^
/datasets/git/builtin/help.c:400:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
                            {
/datasets/git/builtin/help.c:406:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
                            {
/datasets/git/builtin/help.c:412:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
                            {
/datasets/git/builtin/help.c:417:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (starts_with(var, "man."))
                                     ^
                                      {
/datasets/git/builtin/help.c:423:24: warning: variable 'main_cmds' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct cmdnames main_cmds, other_cmds;
                       ^
/datasets/git/builtin/help.c:423:35: warning: variable 'other_cmds' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct cmdnames main_cmds, other_cmds;
                                  ^
/datasets/git/builtin/help.c:425:39: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static int is_git_command(const char *s)
                                      ^
/datasets/git/builtin/help.c:427:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_builtin(s))
                          ^
                           {
/datasets/git/builtin/help.c:437:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!git_cmd)
                     ^
                      {
/datasets/git/builtin/help.c:439:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (starts_with(git_cmd, "git"))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/help.c:439:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (starts_with(git_cmd, "git"))
                                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/help.c:441:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (is_git_command(git_cmd))
                                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/help.c:443:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp("scalar", git_cmd))
                                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/help.c:445:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/help.c:452:25: warning: function is not thread safe [concurrency-mt-unsafe]
        const char *old_path = getenv("MANPATH");
                               ^
/datasets/git/builtin/help.c:461:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (old_path)
                     ^
                      {
/datasets/git/builtin/help.c:465:2: warning: function is not thread safe [concurrency-mt-unsafe]
        setenv("MANPATH", new_path.buf, 1);
        ^
/datasets/git/builtin/help.c:470:25: warning: 2 adjacent parameters of 'exec_viewer' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void exec_viewer(const char *name, const char *page)
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/help.c:470:37: note: the first parameter in the range is 'name'
static void exec_viewer(const char *name, const char *page)
                                    ^~~~
/datasets/git/builtin/help.c:470:55: note: the last parameter in the range is 'page'
static void exec_viewer(const char *name, const char *page)
                                                      ^~~~
/datasets/git/builtin/help.c:474:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcasecmp(name, "man"))
                                     ^
                                      {
/datasets/git/builtin/help.c:476:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcasecmp(name, "woman"))
                                            ^
                                             {
/datasets/git/builtin/help.c:478:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcasecmp(name, "konqueror"))
                                                ^
                                                 {
/datasets/git/builtin/help.c:480:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (info)
                      ^
                       {
/datasets/git/builtin/help.c:482:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/help.c:488:26: warning: variable 'viewer' is not initialized [cppcoreguidelines-init-variables]
        struct man_viewer_list *viewer;
                                ^
                                       = NULL
/datasets/git/builtin/help.c:489:25: warning: function is not thread safe [concurrency-mt-unsafe]
        const char *fallback = getenv("GIT_MAN_VIEWER");
                               ^
/datasets/git/builtin/help.c:492:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (viewer = man_viewer_list; viewer; viewer = viewer->next)
        ^
/datasets/git/builtin/help.c:492:33: warning: backward branch (for loop) is ID-dependent due to variable reference to 'viewer' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (viewer = man_viewer_list; viewer; viewer = viewer->next)
                                       ^
/datasets/git/builtin/help.c:496:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fallback)
                     ^
                      {
/datasets/git/builtin/help.c:504:2: warning: function is not thread safe [concurrency-mt-unsafe]
        setenv("INFOPATH", system_path(GIT_INFO_PATH), 1);
        ^
/datasets/git/builtin/help.c:511:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/builtin/help.c:514:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!html_path)
                       ^
                        {
/datasets/git/builtin/help.c:522:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    || !S_ISREG(st.st_mode))
                                            ^
                                             {
/datasets/git/builtin/help.c:548:8: warning: variable 'alias' is not initialized [cppcoreguidelines-init-variables]
        char *alias;
              ^
                    = NULL
/datasets/git/builtin/help.c:550:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_git_command(cmd))
                                ^
                                 {
/datasets/git/builtin/help.c:555:16: warning: variable 'argv' is not initialized [cppcoreguidelines-init-variables]
                const char **argv;
                             ^
                                  = NULL
/datasets/git/builtin/help.c:556:7: warning: variable 'count' is not initialized [cppcoreguidelines-init-variables]
                int count;
                    ^
                          = 0
/datasets/git/builtin/help.c:569:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        exit(0);
                        ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/help.c:580:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (count < 0)
                              ^
                               {
/datasets/git/builtin/help.c:584:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                UNLEAK(alias);
                ^
/datasets/git/./git-compat-util.h:1544:21: note: expanded from macro 'UNLEAK'
#define UNLEAK(var) do {} while (0)
                    ^
/datasets/git/builtin/help.c:588:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (exclude_guides)
                           ^
                            {
/datasets/git/builtin/help.c:596:14: warning: variable 'opt_fmt' is not initialized [cppcoreguidelines-init-variables]
        const char *opt_fmt;
                    ^
                            = NULL
/datasets/git/builtin/help.c:622:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc)
                 ^
                  {
/datasets/git/builtin/help.c:632:6: warning: variable 'nongit' is not initialized [cppcoreguidelines-init-variables]
        int nongit;
            ^
                   = 0
/datasets/git/builtin/help.c:633:19: warning: variable 'parsed_help_format' is not initialized [cppcoreguidelines-init-variables]
        enum help_format parsed_help_format;
                         ^
/datasets/git/builtin/help.c:634:14: warning: variable 'page' is not initialized [cppcoreguidelines-init-variables]
        const char *page;
                    ^
                         = NULL
/datasets/git/builtin/help.c:642:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
             show_aliases >= 0))
                                ^
                                 {
/datasets/git/builtin/help.c:646:2: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
        switch (cmd_mode) {
        ^
/datasets/git/builtin/help.c:700:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parsed_help_format != HELP_FORMAT_NONE)
                                                   ^
                                                    {
/datasets/git/builtin/help.c:702:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (help_format == HELP_FORMAT_NONE)
                                            ^
                                             {
/datasets/git/builtin/help.c:708:2: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
        switch (help_format) {
        ^
/datasets/git/builtin/hook.c:24:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/hook.c:24:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/hook.c:27:14: warning: variable 'hook_name' is not initialized [cppcoreguidelines-init-variables]
        const char *hook_name;
                    ^
                              = NULL
/datasets/git/builtin/hook.c:29:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "ignore-missing", &ignore_missing,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/hook.c:33:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/builtin/hook.c:39:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!argc)
                  ^
                   {
/datasets/git/builtin/hook.c:46:18: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (argc > 1 && strcmp(argv[1], "--") &&
                        ^
                                              != 0
/datasets/git/builtin/hook.c:47:6: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
            strcmp(argv[1], "--end-of-options"))
            ^
                                                != 0
/datasets/git/builtin/hook.c:47:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            strcmp(argv[1], "--end-of-options"))
                                                ^
                                                 {
/datasets/git/builtin/hook.c:51:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 2 ; i < argc; i++)
        ^
/datasets/git/builtin/hook.c:51:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'argc' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 2 ; i < argc; i++)
                     ^
/datasets/git/builtin/hook.c:51:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 2 ; i < argc; i++)
                                   ^
                                    {
/datasets/git/builtin/hook.c:58:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ignore_missing)
                            ^
                             {
/datasets/git/builtin/hook.c:61:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret < 0) /* error() return */
                    ^
                     {
/datasets/git/builtin/hook.c:70:27: warning: variable name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
        parse_opt_subcommand_fn *fn = NULL;
                                 ^
/datasets/git/builtin/index-pack.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "blob.h"
/datasets/git/builtin/index-pack.c:22:8: warning: accessing fields in struct 'object_entry' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct object_entry {
       ^
/datasets/git/builtin/index-pack.c:22:8: note: use "__attribute__((aligned(64)))" to align struct 'object_entry' to 64 bytes
/datasets/git/builtin/index-pack.c:30:8: warning: accessing fields in struct 'object_stat' is inefficient due to poor alignment; currently aligned to 4 bytes, but recommended alignment is 8 bytes [altera-struct-pack-align]
struct object_stat {
       ^
/datasets/git/builtin/index-pack.c:30:8: note: use "__attribute__((aligned(8)))" to align struct 'object_stat' to 8 bytes
/datasets/git/builtin/index-pack.c:35:8: warning: accessing fields in struct 'base_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct base_data {
       ^
/datasets/git/builtin/index-pack.c:35:8: note: use "__attribute__((aligned(128)))" to align struct 'base_data' to 128 bytes
/datasets/git/builtin/index-pack.c:68:18: warning: variable 'work_head' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static LIST_HEAD(work_head);
                 ^
/datasets/git/builtin/index-pack.c:78:18: warning: variable 'done_head' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static LIST_HEAD(done_head);
                 ^
/datasets/git/builtin/index-pack.c:86:15: warning: variable 'base_cache_used' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static size_t base_cache_used;
              ^
/datasets/git/builtin/index-pack.c:87:15: warning: variable 'base_cache_limit' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static size_t base_cache_limit;
              ^
/datasets/git/builtin/index-pack.c:89:8: warning: accessing fields in struct 'thread_local' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct thread_local {
       ^
/datasets/git/builtin/index-pack.c:89:8: note: use "__attribute__((aligned(16)))" to align struct 'thread_local' to 16 bytes
/datasets/git/builtin/index-pack.c:98:8: warning: accessing fields in struct 'ofs_delta_entry' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct ofs_delta_entry {
       ^
/datasets/git/builtin/index-pack.c:98:8: note: use "__attribute__((aligned(16)))" to align struct 'ofs_delta_entry' to 16 bytes
/datasets/git/builtin/index-pack.c:103:8: warning: accessing fields in struct 'ref_delta_entry' is inefficient due to poor alignment; currently aligned to 4 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct ref_delta_entry {
       ^
/datasets/git/builtin/index-pack.c:103:8: note: use "__attribute__((aligned(64)))" to align struct 'ref_delta_entry' to 64 bytes
/datasets/git/builtin/index-pack.c:108:29: warning: variable 'objects' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct object_entry *objects;
                            ^
/datasets/git/builtin/index-pack.c:108:29: warning: variable 'objects' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/index-pack.c:109:28: warning: variable 'obj_stat' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct object_stat *obj_stat;
                           ^
/datasets/git/builtin/index-pack.c:109:28: warning: variable 'obj_stat' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/index-pack.c:110:32: warning: variable 'ofs_deltas' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct ofs_delta_entry *ofs_deltas;
                               ^
/datasets/git/builtin/index-pack.c:110:32: warning: variable 'ofs_deltas' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/index-pack.c:111:32: warning: variable 'ref_deltas' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct ref_delta_entry *ref_deltas;
                               ^
/datasets/git/builtin/index-pack.c:111:32: warning: variable 'ref_deltas' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/index-pack.c:112:28: warning: variable 'nothread_data' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct thread_local nothread_data;
                           ^
/datasets/git/builtin/index-pack.c:113:12: warning: variable 'nr_objects' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int nr_objects;
           ^
/datasets/git/builtin/index-pack.c:114:12: warning: variable 'nr_ofs_deltas' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int nr_ofs_deltas;
           ^
/datasets/git/builtin/index-pack.c:115:12: warning: variable 'nr_ref_deltas' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int nr_ref_deltas;
           ^
/datasets/git/builtin/index-pack.c:116:12: warning: variable 'ref_deltas_alloc' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int ref_deltas_alloc;
           ^
/datasets/git/builtin/index-pack.c:117:12: warning: variable 'nr_resolved_deltas' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int nr_resolved_deltas;
           ^
/datasets/git/builtin/index-pack.c:118:12: warning: variable 'nr_threads' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int nr_threads;
           ^
/datasets/git/builtin/index-pack.c:120:12: warning: variable 'from_stdin' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int from_stdin;
           ^
/datasets/git/builtin/index-pack.c:121:12: warning: variable 'strict' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int strict;
           ^
/datasets/git/builtin/index-pack.c:122:12: warning: variable 'do_fsck_object' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int do_fsck_object;
           ^
/datasets/git/builtin/index-pack.c:123:28: warning: variable 'fsck_options' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct fsck_options fsck_options = FSCK_OPTIONS_MISSING_GITMODULES;
                           ^
/datasets/git/builtin/index-pack.c:124:12: warning: variable 'verbose' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int verbose;
           ^
/datasets/git/builtin/index-pack.c:125:20: warning: variable 'progress_title' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *progress_title;
                   ^
/datasets/git/builtin/index-pack.c:126:12: warning: variable 'show_resolving_progress' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int show_resolving_progress;
           ^
/datasets/git/builtin/index-pack.c:127:12: warning: variable 'show_stat' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int show_stat;
           ^
/datasets/git/builtin/index-pack.c:128:12: warning: variable 'check_self_contained_and_connected' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int check_self_contained_and_connected;
           ^
/datasets/git/builtin/index-pack.c:130:25: warning: variable 'progress' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct progress *progress;
                        ^
/datasets/git/builtin/index-pack.c:130:25: warning: variable 'progress' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/index-pack.c:133:22: warning: variable 'input_buffer' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned char input_buffer[4096];
                     ^
/datasets/git/builtin/index-pack.c:133:35: warning: 4096 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
static unsigned char input_buffer[4096];
                                  ^
/datasets/git/builtin/index-pack.c:134:21: warning: variable 'input_offset' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned int input_offset, input_len;
                    ^
/datasets/git/builtin/index-pack.c:134:35: warning: variable 'input_len' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned int input_offset, input_len;
                                  ^
/datasets/git/builtin/index-pack.c:135:14: warning: variable 'consumed_bytes' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static off_t consumed_bytes;
             ^
/datasets/git/builtin/index-pack.c:136:14: warning: variable 'max_input_size' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static off_t max_input_size;
             ^
/datasets/git/builtin/index-pack.c:137:17: warning: variable 'deepest_delta' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned deepest_delta;
                ^
/datasets/git/builtin/index-pack.c:138:21: warning: variable 'input_ctx' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static git_hash_ctx input_ctx;
                    ^
/datasets/git/builtin/index-pack.c:139:17: warning: variable 'input_crc32' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static uint32_t input_crc32;
                ^
/datasets/git/builtin/index-pack.c:140:12: warning: variable 'input_fd' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int input_fd, output_fd;
           ^
/datasets/git/builtin/index-pack.c:140:22: warning: variable 'output_fd' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int input_fd, output_fd;
                     ^
/datasets/git/builtin/index-pack.c:141:20: warning: variable 'curr_pack' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *curr_pack;
                   ^
/datasets/git/builtin/index-pack.c:143:29: warning: variable 'thread_data' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct thread_local *thread_data;
                            ^
/datasets/git/builtin/index-pack.c:143:29: warning: variable 'thread_data' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/index-pack.c:144:12: warning: variable 'nr_dispatched' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int nr_dispatched;
           ^
/datasets/git/builtin/index-pack.c:145:12: warning: variable 'threads_active' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int threads_active;
           ^
/datasets/git/builtin/index-pack.c:147:24: warning: variable 'read_mutex' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static pthread_mutex_t read_mutex;
                       ^
/datasets/git/builtin/index-pack.c:151:24: warning: variable 'counter_mutex' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static pthread_mutex_t counter_mutex;
                       ^
/datasets/git/builtin/index-pack.c:155:24: warning: variable 'work_mutex' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static pthread_mutex_t work_mutex;
                       ^
/datasets/git/builtin/index-pack.c:159:24: warning: variable 'deepest_delta_mutex' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static pthread_mutex_t deepest_delta_mutex;
                       ^
/datasets/git/builtin/index-pack.c:163:22: warning: variable 'key' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static pthread_key_t key;
                     ^
/datasets/git/builtin/index-pack.c:167:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (threads_active)
                           ^
                            {
/datasets/git/builtin/index-pack.c:173:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (threads_active)
                           ^
                            {
/datasets/git/builtin/index-pack.c:182:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/index-pack.c:182:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/index-pack.c:186:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (show_stat)
                      ^
                       {
/datasets/git/builtin/index-pack.c:190:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr_threads; i++) {
        ^
/datasets/git/builtin/index-pack.c:199:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/index-pack.c:199:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/index-pack.c:200:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!threads_active)
                            ^
                             {
/datasets/git/builtin/index-pack.c:206:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (show_stat)
                      ^
                       {
/datasets/git/builtin/index-pack.c:208:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr_threads; i++)
        ^
/datasets/git/builtin/index-pack.c:208:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < nr_threads; i++)
                                        ^
                                         {
/datasets/git/builtin/index-pack.c:215:14: warning: parameter 'data' is unused [misc-unused-parameters]
                     void *data, struct fsck_options *options)
                           ^
/datasets/git/builtin/index-pack.c:215:41: warning: parameter 'options' is unused [misc-unused-parameters]
                     void *data, struct fsck_options *options)
                                                      ^
/datasets/git/builtin/index-pack.c:217:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!obj)
                 ^
                  {
/datasets/git/builtin/index-pack.c:220:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (type != OBJ_ANY && obj->type != type)
                                                 ^
                                                  {
/datasets/git/builtin/index-pack.c:223:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        obj->flags |= FLAG_LINK;
                      ^
/datasets/git/builtin/index-pack.c:95:20: note: expanded from macro 'FLAG_LINK'
#define FLAG_LINK (1u<<20)
                   ^   ~~
/datasets/git/builtin/index-pack.c:231:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!obj)
                 ^
                  {
/datasets/git/builtin/index-pack.c:234:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(obj->flags & FLAG_LINK))
                           ^
/datasets/git/builtin/index-pack.c:95:20: note: expanded from macro 'FLAG_LINK'
#define FLAG_LINK (1u<<20)
                   ^   ~~
/datasets/git/builtin/index-pack.c:234:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(obj->flags & FLAG_LINK))
                                      ^
                                       {
/datasets/git/builtin/index-pack.c:237:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(obj->flags & FLAG_CHECKED)) {
                           ^
/datasets/git/builtin/index-pack.c:96:23: note: expanded from macro 'FLAG_CHECKED'
#define FLAG_CHECKED (1u<<21)
                      ^   ~~
/datasets/git/builtin/index-pack.c:238:17: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
                unsigned long size;
                              ^
                                   = 0
/datasets/git/builtin/index-pack.c:240:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (type <= 0)
                              ^
                               {
/datasets/git/builtin/index-pack.c:243:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (type != obj->type)
                                      ^
                                       {
/datasets/git/builtin/index-pack.c:247:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                obj->flags |= FLAG_CHECKED;
                              ^
/datasets/git/builtin/index-pack.c:96:23: note: expanded from macro 'FLAG_CHECKED'
#define FLAG_CHECKED (1u<<21)
                      ^   ~~
/datasets/git/builtin/index-pack.c:256:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned i, max, foreign_nr = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:256:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned i, max, foreign_nr = 0;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/index-pack.c:256:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/index-pack.c:256:14: warning: variable 'max' is not initialized [cppcoreguidelines-init-variables]
        unsigned i, max, foreign_nr = 0;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/index-pack.c:260:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (verbose)
                    ^
                     {
/datasets/git/builtin/index-pack.c:263:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < max; i++) {
        ^
/datasets/git/builtin/index-pack.c:277:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (output_fd >= 0)
                                   ^
                                    {
/datasets/git/builtin/index-pack.c:280:3: warning: Call to function 'memmove' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memmove_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memmove(input_buffer, input_buffer + input_offset, input_len);
                ^~~~~~~
/datasets/git/builtin/index-pack.c:280:3: note: Call to function 'memmove' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memmove_s' in case of C11
                memmove(input_buffer, input_buffer + input_offset, input_len);
                ^~~~~~~
/datasets/git/builtin/index-pack.c:291:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (min <= input_len)
                             ^
                              {
/datasets/git/builtin/index-pack.c:293:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (min > sizeof(input_buffer))
                                       ^
                                        {
/datasets/git/builtin/index-pack.c:299:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        do {
        ^
/datasets/git/builtin/index-pack.c:303:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!ret)
                                 ^
                                  {
/datasets/git/builtin/index-pack.c:308:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (from_stdin)
                               ^
                                {
/datasets/git/builtin/index-pack.c:310:11: warning: backward branch (do loop) is ID-dependent due to variable reference to 'input_len' and may cause performance degradation [altera-id-dependent-backward-branch]
        } while (input_len < min);
                 ^
/datasets/git/builtin/index-pack.c:316:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (bytes > input_len)
                              ^
                               {
/datasets/git/builtin/index-pack.c:323:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (signed_add_overflows(consumed_bytes, bytes))
                                                        ^
                                                         {
/datasets/git/builtin/index-pack.c:344:56: warning: 0600 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        output_fd = xopen(pack_name, O_CREAT|O_EXCL|O_RDWR, 0600);
                                                                            ^
/datasets/git/builtin/index-pack.c:361:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (hdr->hdr_signature != htonl(PACK_SIGNATURE))
                                                        ^
                                                         {
/datasets/git/builtin/index-pack.c:363:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!pack_version_ok(hdr->hdr_version))
                                               ^
                                                {
/datasets/git/builtin/index-pack.c:375:11: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        char buf[1024];
                 ^
/datasets/git/builtin/index-pack.c:378:2: warning: the value returned by this function should be used [cert-err33-c]
        vsnprintf(buf, sizeof(buf), format, params);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:378:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/index-pack.c:378:2: warning: Call to function 'vsnprintf' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'vsnprintf_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        vsnprintf(buf, sizeof(buf), format, params);
        ^~~~~~~~~
/datasets/git/builtin/index-pack.c:378:2: note: Call to function 'vsnprintf' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'vsnprintf_s' in case of C11
        vsnprintf(buf, sizeof(buf), format, params);
        ^~~~~~~~~
/datasets/git/builtin/index-pack.c:378:2: warning: Function 'vsnprintf' is called with an uninitialized va_list argument [clang-analyzer-valist.Uninitialized]
        vsnprintf(buf, sizeof(buf), format, params);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:378:2: note: Function 'vsnprintf' is called with an uninitialized va_list argument
        vsnprintf(buf, sizeof(buf), format, params);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:387:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (threads_active)
                                   ^
                                    {
/datasets/git/builtin/index-pack.c:397:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (threads_active)
                           ^
                            {
/datasets/git/builtin/index-pack.c:401:46: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static void free_base_data(struct base_data *c)
                                             ^
/datasets/git/builtin/index-pack.c:404:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FREE_AND_NULL(c->data);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/index-pack.c:411:20: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        struct list_head *pos;
                          ^
                              = NULL
/datasets/git/builtin/index-pack.c:413:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (base_cache_used <= base_cache_limit)
                                                ^
                                                 {
/datasets/git/builtin/index-pack.c:416:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        list_for_each_prev(pos, &done_head) {
        ^
./list.h:143:2: note: expanded from macro 'list_for_each_prev'
        for (pos = (head)->prev; pos != (head); pos = pos->prev)
        ^
/datasets/git/builtin/index-pack.c:411:2: note: inferred assignment of ID-dependent value from ID-dependent member prev [altera-id-dependent-backward-branch]
        struct list_head *pos;
        ^
/datasets/git/builtin/index-pack.c:416:21: warning: backward branch (for loop) is ID-dependent due to variable reference to 'pos' and may cause performance degradation [altera-id-dependent-backward-branch]
        list_for_each_prev(pos, &done_head) {
                           ^
/datasets/git/builtin/index-pack.c:417:21: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
                struct base_data *b = list_entry(pos, struct base_data, list);
                                  ^
/datasets/git/builtin/index-pack.c:418:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (b->retain_data || b == retain)
                                                  ^
                                                   {
/datasets/git/builtin/index-pack.c:422:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (base_cache_used <= base_cache_limit)
                                                                ^
                                                                 {
/datasets/git/builtin/index-pack.c:427:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        list_for_each_prev(pos, &work_head) {
        ^
./list.h:143:2: note: expanded from macro 'list_for_each_prev'
        for (pos = (head)->prev; pos != (head); pos = pos->prev)
        ^
/datasets/git/builtin/index-pack.c:427:21: warning: backward branch (for loop) is ID-dependent due to variable reference to 'pos' and may cause performance degradation [altera-id-dependent-backward-branch]
        list_for_each_prev(pos, &work_head) {
                           ^
/datasets/git/builtin/index-pack.c:428:21: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
                struct base_data *b = list_entry(pos, struct base_data, list);
                                  ^
/datasets/git/builtin/index-pack.c:429:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (b->retain_data || b == retain)
                                                  ^
                                                   {
/datasets/git/builtin/index-pack.c:433:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (base_cache_used <= base_cache_limit)
                                                                ^
                                                                 {
/datasets/git/builtin/index-pack.c:444:32: warning: 2 adjacent parameters of 'unpack_entry_data' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void *unpack_entry_data(off_t offset, unsigned long size,
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:444:38: note: the first parameter in the range is 'offset'
static void *unpack_entry_data(off_t offset, unsigned long size,
                                     ^~~~~~
/datasets/git/builtin/index-pack.c:444:60: note: the last parameter in the range is 'size'
static void *unpack_entry_data(off_t offset, unsigned long size,
                                                           ^~~~
/datasets/git/builtin/index-pack.c:444:32: note: 
static void *unpack_entry_data(off_t offset, unsigned long size,
                               ^
/datasets/git/builtin/index-pack.c:444:46: note: 'off_t' and 'unsigned long' may be implicitly converted: 'off_t' (as 'long') -> 'unsigned long', 'unsigned long' -> 'off_t' (as 'long')
static void *unpack_entry_data(off_t offset, unsigned long size,
                                             ^
/datasets/git/builtin/index-pack.c:447:24: warning: 8192 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        static char fixed_buf[8192];
                              ^
/datasets/git/builtin/index-pack.c:448:6: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int status;
            ^
                   = 0
/datasets/git/builtin/index-pack.c:450:8: warning: variable 'buf' is not initialized [cppcoreguidelines-init-variables]
        void *buf;
              ^
                  = NULL
/datasets/git/builtin/index-pack.c:451:15: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        git_hash_ctx c;
                     ^
/datasets/git/builtin/index-pack.c:452:11: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        char hdr[32];
                 ^
/datasets/git/builtin/index-pack.c:453:6: warning: variable 'hdrlen' is not initialized [cppcoreguidelines-init-variables]
        int hdrlen;
            ^
                   = 0
/datasets/git/builtin/index-pack.c:459:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/builtin/index-pack.c:461:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (type == OBJ_BLOB && size > big_file_threshold)
                                                          ^
                                                           {
/datasets/git/builtin/index-pack.c:463:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/index-pack.c:466:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&stream, 0, sizeof(stream));
        ^~~~~~
/datasets/git/builtin/index-pack.c:466:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&stream, 0, sizeof(stream));
        ^~~~~~
/datasets/git/builtin/index-pack.c:471:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        do {
        ^
/datasets/git/builtin/index-pack.c:476:7: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                use(input_len - stream.avail_in);
                    ^
/datasets/git/builtin/index-pack.c:477:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (oid)
                        ^
                         {
/datasets/git/builtin/index-pack.c:483:11: warning: backward branch (do loop) is ID-dependent due to variable reference to 'status' and may cause performance degradation [altera-id-dependent-backward-branch]
        } while (status == Z_OK);
                 ^
/datasets/git/builtin/index-pack.c:484:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (stream.total_out != size || status != Z_STREAM_END)
                                                               ^
                                                                {
/datasets/git/builtin/index-pack.c:487:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oid)
                ^
                 {
/datasets/git/builtin/index-pack.c:494:10: warning: 2 adjacent parameters of 'unpack_raw_entry' of similar type ('struct object_id *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                              struct object_id *ref_oid,
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:494:28: note: the first parameter in the range is 'ref_oid'
                              struct object_id *ref_oid,
                                                ^~~~~~~
/datasets/git/builtin/index-pack.c:495:28: note: the last parameter in the range is 'oid'
                              struct object_id *oid)
                                                ^~~
/datasets/git/builtin/index-pack.c:497:17: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        unsigned char *p;
                       ^
                         = NULL
/datasets/git/builtin/index-pack.c:497:17: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/index-pack.c:498:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned long size, c;
        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:498:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/builtin/index-pack.c:498:16: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size, c;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/index-pack.c:498:22: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size, c;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/index-pack.c:498:22: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/index-pack.c:499:8: warning: variable 'base_offset' is not initialized [cppcoreguidelines-init-variables]
        off_t base_offset;
              ^
                          = 0
/datasets/git/builtin/index-pack.c:500:11: warning: variable 'shift' is not initialized [cppcoreguidelines-init-variables]
        unsigned shift;
                 ^
                       = 0
/datasets/git/builtin/index-pack.c:501:8: warning: variable 'data' is not initialized [cppcoreguidelines-init-variables]
        void *data;
              ^
                   = NULL
/datasets/git/builtin/index-pack.c:509:14: warning: narrowing conversion from 'unsigned long' to signed type 'signed char' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        obj->type = (c >> 4) & 7;
                    ^
/datasets/git/builtin/index-pack.c:509:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        obj->type = (c >> 4) & 7;
                    ^          ~
/datasets/git/builtin/index-pack.c:509:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        obj->type = (c >> 4) & 7;
                     ^    ~
/datasets/git/builtin/index-pack.c:509:25: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        obj->type = (c >> 4) & 7;
                               ^
/datasets/git/builtin/index-pack.c:510:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        size = (c & 15);
                ^   ~~
/datasets/git/builtin/index-pack.c:510:14: warning: 15 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        size = (c & 15);
                    ^
/datasets/git/builtin/index-pack.c:512:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (c & 0x80) {
        ^
/datasets/git/builtin/index-pack.c:512:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'c' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (c & 0x80) {
               ^
/datasets/git/builtin/index-pack.c:512:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        while (c & 0x80) {
               ^   ~~~~
/datasets/git/builtin/index-pack.c:512:13: warning: 0x80 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        while (c & 0x80) {
                   ^
/datasets/git/builtin/index-pack.c:516:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                size += (c & 0x7f) << shift;
                         ^   ~~~~
/datasets/git/builtin/index-pack.c:516:16: warning: 0x7f is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                size += (c & 0x7f) << shift;
                             ^
/datasets/git/builtin/index-pack.c:517:12: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                shift += 7;
                         ^
/datasets/git/builtin/index-pack.c:530:17: warning: narrowing conversion from 'unsigned long' to signed type 'off_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                base_offset = c & 127;
                              ^
/datasets/git/builtin/index-pack.c:530:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                base_offset = c & 127;
                              ^   ~~~
/datasets/git/builtin/index-pack.c:530:21: warning: 127 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                base_offset = c & 127;
                                  ^
/datasets/git/builtin/index-pack.c:531:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (c & 128) {
                ^
/datasets/git/builtin/index-pack.c:531:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'c' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (c & 128) {
                       ^
/datasets/git/builtin/index-pack.c:531:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                while (c & 128) {
                       ^   ~~~
/datasets/git/builtin/index-pack.c:531:14: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                while (c & 128) {
                           ^
/datasets/git/builtin/index-pack.c:533:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!base_offset || MSB(base_offset, 7))
                                            ^
/datasets/git/./git-compat-util.h:155:23: note: expanded from macro 'MSB'
#define MSB(x, bits) ((x) & TYPEOF(x)(~0ULL << (bitsizeof(x) - (bits))))
                      ^~~
/datasets/git/builtin/index-pack.c:533:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!base_offset || MSB(base_offset, 7))
                                                                ^
                                                                 {
/datasets/git/builtin/index-pack.c:538:18: warning: narrowing conversion from 'unsigned long' to signed type 'off_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        base_offset = (base_offset << 7) + (c & 127);
                                      ^
/datasets/git/builtin/index-pack.c:538:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        base_offset = (base_offset << 7) + (c & 127);
                                       ^~~~~~~~~~~
/datasets/git/builtin/index-pack.c:538:34: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        base_offset = (base_offset << 7) + (c & 127);
                                                      ^
/datasets/git/builtin/index-pack.c:538:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        base_offset = (base_offset << 7) + (c & 127);
                                                            ^   ~~~
/datasets/git/builtin/index-pack.c:538:44: warning: 127 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        base_offset = (base_offset << 7) + (c & 127);
                                                                ^
/datasets/git/builtin/index-pack.c:541:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*ofs_offset <= 0 || *ofs_offset >= obj->idx.offset)
                                                                       ^
                                                                        {
/datasets/git/builtin/index-pack.c:559:14: warning: function 'unpack_data' has cognitive complexity of 27 (threshold 25) [readability-function-cognitive-complexity]
static void *unpack_data(struct object_entry *obj,
             ^
/datasets/git/builtin/index-pack.c:569:26: note: +1, including nesting penalty of 0, nesting level increased to 1
        data = xmallocz(consume ? 64*1024 : obj->size);
                                ^
/datasets/git/builtin/index-pack.c:570:34: note: +1, including nesting penalty of 0, nesting level increased to 1
        inbuf = xmalloc((len < 64*1024) ? (int)len : 64*1024);
                                        ^
/datasets/git/builtin/index-pack.c:575:29: note: +1, including nesting penalty of 0, nesting level increased to 1
        stream.avail_out = consume ? 64*1024 : obj->size;
                                   ^
/datasets/git/builtin/index-pack.c:577:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        do {
        ^
/datasets/git/builtin/index-pack.c:578:31: note: +2, including nesting penalty of 1, nesting level increased to 2
                ssize_t n = (len < 64*1024) ? (ssize_t)len : 64*1024;
                                            ^
/datasets/git/builtin/index-pack.c:580:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (n < 0)
                ^
/datasets/git/builtin/index-pack.c:582:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!n)
                ^
/datasets/git/builtin/index-pack.c:591:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!consume)
                ^
/datasets/git/builtin/index-pack.c:593:3: note: +1, nesting level increased to 2
                else {
                ^
/datasets/git/builtin/index-pack.c:594:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        do {
                        ^
/datasets/git/builtin/index-pack.c:596:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (consume(data, stream.next_out - data, cb_data)) {
                                ^
/datasets/git/builtin/index-pack.c:603:28: note: +1
                        } while (status == Z_OK && stream.avail_in);
                                                ^
/datasets/git/builtin/index-pack.c:605:33: note: +1
        } while (len && status == Z_OK && !stream.avail_in);
                                       ^
/datasets/git/builtin/index-pack.c:608:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (status != Z_STREAM_END || stream.total_out != obj->size)
        ^
/datasets/git/builtin/index-pack.c:608:29: note: +1
        if (status != Z_STREAM_END || stream.total_out != obj->size)
                                   ^
/datasets/git/builtin/index-pack.c:613:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (consume) {
        ^
/datasets/git/builtin/index-pack.c:614:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                FREE_AND_NULL(data);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/index-pack.c:565:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned char *data, *inbuf;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:564:2: note: inferred assignment of ID-dependent value from ID-dependent member offset [altera-id-dependent-backward-branch]
        off_t len = obj[1].idx.offset - from;
        ^
/datasets/git/builtin/index-pack.c:565:17: warning: variable 'data' is not initialized [cppcoreguidelines-init-variables]
        unsigned char *data, *inbuf;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/index-pack.c:565:24: warning: variable 'inbuf' is not initialized [cppcoreguidelines-init-variables]
        unsigned char *data, *inbuf;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/index-pack.c:567:6: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int status;
            ^
                   = 0
/datasets/git/builtin/index-pack.c:569:28: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        data = xmallocz(consume ? 64*1024 : obj->size);
                                  ^
/datasets/git/builtin/index-pack.c:569:28: note: make conversion explicit to silence this warning
        data = xmallocz(consume ? 64*1024 : obj->size);
                                  ^~~~~~~
                                  (unsigned long)( )
/datasets/git/builtin/index-pack.c:569:28: note: perform multiplication in a wider type
        data = xmallocz(consume ? 64*1024 : obj->size);
                                  ^~
                                  (long)
/datasets/git/builtin/index-pack.c:569:28: warning: 64 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        data = xmallocz(consume ? 64*1024 : obj->size);
                                  ^
/datasets/git/builtin/index-pack.c:569:31: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        data = xmallocz(consume ? 64*1024 : obj->size);
                                     ^
/datasets/git/builtin/index-pack.c:570:25: warning: performing an implicit widening conversion to type 'long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        inbuf = xmalloc((len < 64*1024) ? (int)len : 64*1024);
                               ^
/datasets/git/builtin/index-pack.c:570:25: note: make conversion explicit to silence this warning
        inbuf = xmalloc((len < 64*1024) ? (int)len : 64*1024);
                               ^~~~~~~
                               (long)( )
/datasets/git/builtin/index-pack.c:570:25: note: perform multiplication in a wider type
        inbuf = xmalloc((len < 64*1024) ? (int)len : 64*1024);
                               ^~
                               (long)
/datasets/git/builtin/index-pack.c:570:25: warning: 64 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        inbuf = xmalloc((len < 64*1024) ? (int)len : 64*1024);
                               ^
/datasets/git/builtin/index-pack.c:570:28: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        inbuf = xmalloc((len < 64*1024) ? (int)len : 64*1024);
                                  ^
/datasets/git/builtin/index-pack.c:570:47: warning: 64 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        inbuf = xmalloc((len < 64*1024) ? (int)len : 64*1024);
                                                     ^
/datasets/git/builtin/index-pack.c:570:50: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        inbuf = xmalloc((len < 64*1024) ? (int)len : 64*1024);
                                                        ^
/datasets/git/builtin/index-pack.c:572:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&stream, 0, sizeof(stream));
        ^~~~~~
/datasets/git/builtin/index-pack.c:572:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&stream, 0, sizeof(stream));
        ^~~~~~
/datasets/git/builtin/index-pack.c:575:31: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        stream.avail_out = consume ? 64*1024 : obj->size;
                                     ^
/datasets/git/builtin/index-pack.c:575:31: note: make conversion explicit to silence this warning
        stream.avail_out = consume ? 64*1024 : obj->size;
                                     ^~~~~~~
                                     (unsigned long)( )
/datasets/git/builtin/index-pack.c:575:31: note: perform multiplication in a wider type
        stream.avail_out = consume ? 64*1024 : obj->size;
                                     ^~
                                     (long)
/datasets/git/builtin/index-pack.c:575:31: warning: 64 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        stream.avail_out = consume ? 64*1024 : obj->size;
                                     ^
/datasets/git/builtin/index-pack.c:575:34: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        stream.avail_out = consume ? 64*1024 : obj->size;
                                        ^
/datasets/git/builtin/index-pack.c:578:11: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
                ssize_t n = (len < 64*1024) ? (ssize_t)len : 64*1024;
                        ^
/datasets/git/builtin/index-pack.c:578:22: warning: performing an implicit widening conversion to type 'long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                ssize_t n = (len < 64*1024) ? (ssize_t)len : 64*1024;
                                   ^
/datasets/git/builtin/index-pack.c:578:22: note: make conversion explicit to silence this warning
                ssize_t n = (len < 64*1024) ? (ssize_t)len : 64*1024;
                                   ^~~~~~~
                                   (long)( )
/datasets/git/builtin/index-pack.c:578:22: note: perform multiplication in a wider type
                ssize_t n = (len < 64*1024) ? (ssize_t)len : 64*1024;
                                   ^~
                                   (long)
/datasets/git/builtin/index-pack.c:578:22: warning: 64 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                ssize_t n = (len < 64*1024) ? (ssize_t)len : 64*1024;
                                   ^
/datasets/git/builtin/index-pack.c:578:25: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                ssize_t n = (len < 64*1024) ? (ssize_t)len : 64*1024;
                                      ^
/datasets/git/builtin/index-pack.c:578:48: warning: performing an implicit widening conversion to type 'long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                ssize_t n = (len < 64*1024) ? (ssize_t)len : 64*1024;
                                                             ^
/datasets/git/builtin/index-pack.c:578:48: note: make conversion explicit to silence this warning
                ssize_t n = (len < 64*1024) ? (ssize_t)len : 64*1024;
                                                             ^~~~~~~
                                                             (long)( )
/datasets/git/builtin/index-pack.c:578:48: note: perform multiplication in a wider type
                ssize_t n = (len < 64*1024) ? (ssize_t)len : 64*1024;
                                                             ^~
                                                             (long)
/datasets/git/builtin/index-pack.c:578:48: warning: 64 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                ssize_t n = (len < 64*1024) ? (ssize_t)len : 64*1024;
                                                             ^
/datasets/git/builtin/index-pack.c:578:51: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                ssize_t n = (len < 64*1024) ? (ssize_t)len : 64*1024;
                                                                ^
/datasets/git/builtin/index-pack.c:580:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (n < 0)
                          ^
                           {
/datasets/git/builtin/index-pack.c:582:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!n)
                       ^
                        {
/datasets/git/builtin/index-pack.c:591:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!consume)
                             ^
                              {
/datasets/git/builtin/index-pack.c:594:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        do {
                        ^
/datasets/git/builtin/index-pack.c:602:24: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                                stream.avail_out = 64*1024;
                                                   ^
/datasets/git/builtin/index-pack.c:602:24: note: make conversion explicit to silence this warning
                                stream.avail_out = 64*1024;
                                                   ^~~~~~~
                                                   (unsigned long)( )
/datasets/git/builtin/index-pack.c:602:24: note: perform multiplication in a wider type
                                stream.avail_out = 64*1024;
                                                   ^~
                                                   (long)
/datasets/git/builtin/index-pack.c:602:24: warning: 64 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                stream.avail_out = 64*1024;
                                                   ^
/datasets/git/builtin/index-pack.c:602:27: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                stream.avail_out = 64*1024;
                                                      ^
/datasets/git/builtin/index-pack.c:603:13: warning: backward branch (do loop) is ID-dependent due to variable reference to 'status' and may cause performance degradation [altera-id-dependent-backward-branch]
                        } while (status == Z_OK && stream.avail_in);
                                 ^
/datasets/git/builtin/index-pack.c:605:11: warning: backward branch (do loop) is ID-dependent due to variable reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
        } while (len && status == Z_OK && !stream.avail_in);
                 ^
/datasets/git/builtin/index-pack.c:608:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (status != Z_STREAM_END || stream.total_out != obj->size)
                                                                    ^
                                                                     {
/datasets/git/builtin/index-pack.c:614:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FREE_AND_NULL(data);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/index-pack.c:624:51: warning: 2 adjacent parameters of 'compare_ofs_delta_bases' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int compare_ofs_delta_bases(off_t offset1, off_t offset2,
                                                  ^~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:624:57: note: the first parameter in the range is 'offset2'
static int compare_ofs_delta_bases(off_t offset1, off_t offset2,
                                                        ^~~~~~~
/datasets/git/builtin/index-pack.c:625:25: note: the last parameter in the range is 'type1'
                                   enum object_type type1,
                                                    ^~~~~
/datasets/git/builtin/index-pack.c:624:51: note: 
static int compare_ofs_delta_bases(off_t offset1, off_t offset2,
                                                  ^
/datasets/git/builtin/index-pack.c:625:8: note: 'off_t' and 'enum object_type' may be implicitly converted: 'off_t' (as 'long') -> 'enum object_type', 'enum object_type' -> 'off_t' (as 'long')
                                   enum object_type type1,
                                   ^
/datasets/git/builtin/index-pack.c:629:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cmp)
                ^
                 {
/datasets/git/builtin/index-pack.c:638:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int first = 0, last = nr_ofs_deltas;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:638:2: note: inferred assignment of ID-dependent value from ID-dependent variable next [altera-id-dependent-backward-branch]
/datasets/git/builtin/index-pack.c:640:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (first < last) {
        ^
/datasets/git/builtin/index-pack.c:640:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'first' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (first < last) {
               ^
/datasets/git/builtin/index-pack.c:643:7: warning: variable 'cmp' is not initialized [cppcoreguidelines-init-variables]
                int cmp;
                    ^
                        = 0
/datasets/git/builtin/index-pack.c:648:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!cmp)
                         ^
                          {
/datasets/git/builtin/index-pack.c:660:9: warning: 2 adjacent parameters of 'find_ofs_delta_children' of similar type ('int *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                    int *first_index, int *last_index)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:660:14: note: the first parameter in the range is 'first_index'
                                    int *first_index, int *last_index)
                                         ^~~~~~~~~~~
/datasets/git/builtin/index-pack.c:660:32: note: the last parameter in the range is 'last_index'
                                    int *first_index, int *last_index)
                                                           ^~~~~~~~~~
/datasets/git/builtin/index-pack.c:671:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (first > 0 && ofs_deltas[first - 1].offset == offset)
        ^
/datasets/git/builtin/index-pack.c:671:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'first' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (first > 0 && ofs_deltas[first - 1].offset == offset)
               ^
/datasets/git/builtin/index-pack.c:671:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (first > 0 && ofs_deltas[first - 1].offset == offset)
                                                                   ^
                                                                    {
/datasets/git/builtin/index-pack.c:673:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (last < end && ofs_deltas[last + 1].offset == offset)
        ^
/datasets/git/builtin/index-pack.c:673:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'last' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (last < end && ofs_deltas[last + 1].offset == offset)
               ^
/datasets/git/builtin/index-pack.c:673:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (last < end && ofs_deltas[last + 1].offset == offset)
                                                                   ^
                                                                    {
/datasets/git/builtin/index-pack.c:685:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cmp)
                ^
                 {
/datasets/git/builtin/index-pack.c:692:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int first = 0, last = nr_ref_deltas;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:692:2: note: inferred assignment of ID-dependent value from ID-dependent variable next [altera-id-dependent-backward-branch]
/datasets/git/builtin/index-pack.c:694:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (first < last) {
        ^
/datasets/git/builtin/index-pack.c:694:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'first' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (first < last) {
               ^
/datasets/git/builtin/index-pack.c:697:7: warning: variable 'cmp' is not initialized [cppcoreguidelines-init-variables]
                int cmp;
                    ^
                        = 0
/datasets/git/builtin/index-pack.c:702:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!cmp)
                         ^
                          {
/datasets/git/builtin/index-pack.c:714:9: warning: 2 adjacent parameters of 'find_ref_delta_children' of similar type ('int *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                    int *first_index, int *last_index)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:714:14: note: the first parameter in the range is 'first_index'
                                    int *first_index, int *last_index)
                                         ^~~~~~~~~~~
/datasets/git/builtin/index-pack.c:714:32: note: the last parameter in the range is 'last_index'
                                    int *first_index, int *last_index)
                                                           ^~~~~~~~~~
/datasets/git/builtin/index-pack.c:725:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (first > 0 && oideq(&ref_deltas[first - 1].oid, oid))
        ^
/datasets/git/builtin/index-pack.c:725:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'first' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (first > 0 && oideq(&ref_deltas[first - 1].oid, oid))
               ^
/datasets/git/builtin/index-pack.c:725:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (first > 0 && oideq(&ref_deltas[first - 1].oid, oid))
                                                                   ^
                                                                    {
/datasets/git/builtin/index-pack.c:727:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (last < end && oideq(&ref_deltas[last + 1].oid, oid))
        ^
/datasets/git/builtin/index-pack.c:727:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'last' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (last < end && oideq(&ref_deltas[last + 1].oid, oid))
               ^
/datasets/git/builtin/index-pack.c:727:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (last < end && oideq(&ref_deltas[last + 1].oid, oid))
                                                                   ^
                                                                    {
/datasets/git/builtin/index-pack.c:733:8: warning: accessing fields in struct 'compare_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct compare_data {
       ^
/datasets/git/builtin/index-pack.c:733:8: note: use "__attribute__((aligned(32)))" to align struct 'compare_data' to 32 bytes
/datasets/git/builtin/index-pack.c:740:54: note: inferred assignment of ID-dependent value from ID-dependent variable len [altera-id-dependent-backward-branch]
static int compare_objects(const unsigned char *buf, unsigned long size,
                                                     ^
/datasets/git/builtin/index-pack.c:751:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (size) {
        ^
/datasets/git/builtin/index-pack.c:751:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'size' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (size) {
               ^
/datasets/git/builtin/index-pack.c:753:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (len == 0)
                             ^
                              {
/datasets/git/builtin/index-pack.c:756:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (len < 0)
                            ^
                             {
/datasets/git/builtin/index-pack.c:759:7: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (memcmp(buf, data->buf, len))
                    ^
                                                != 0
/datasets/git/builtin/index-pack.c:759:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (memcmp(buf, data->buf, len))
                                                ^
                                                 {
/datasets/git/builtin/index-pack.c:771:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/builtin/index-pack.c:772:16: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size;
                      ^
                           = 0
/datasets/git/builtin/index-pack.c:774:67: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (entry->size <= big_file_threshold || entry->type != OBJ_BLOB)
                                                                         ^
                                                                          {
/datasets/git/builtin/index-pack.c:777:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&data, 0, sizeof(data));
        ^~~~~~
/datasets/git/builtin/index-pack.c:777:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&data, 0, sizeof(data));
        ^~~~~~
/datasets/git/builtin/index-pack.c:781:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!data.st)
                     ^
                      {
/datasets/git/builtin/index-pack.c:783:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (size != entry->size || type != entry->type)
                                                       ^
                                                        {
/datasets/git/builtin/index-pack.c:792:13: warning: function 'sha1_object' has cognitive complexity of 68 (threshold 25) [readability-function-cognitive-complexity]
static void sha1_object(const void *data, struct object_entry *obj_entry,
            ^
/datasets/git/builtin/index-pack.c:799:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(data || obj_entry);
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/builtin/index-pack.c:799:14: note: +1
        assert(data || obj_entry);
                    ^
/datasets/git/builtin/index-pack.c:799:2: note: nesting level increased to 1
        assert(data || obj_entry);
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/builtin/index-pack.c:799:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(data || obj_entry);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/builtin/index-pack.c:799:14: note: +1
        assert(data || obj_entry);
                    ^
/datasets/git/builtin/index-pack.c:799:2: note: +1, nesting level increased to 2
        assert(data || obj_entry);
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/builtin/index-pack.c:801:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (startup_info->have_repository) {
        ^
/datasets/git/builtin/index-pack.c:808:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (collision_test_needed && !data) {
        ^
/datasets/git/builtin/index-pack.c:808:28: note: +1
        if (collision_test_needed && !data) {
                                  ^
/datasets/git/builtin/index-pack.c:810:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!check_collison(obj_entry))
                ^
/datasets/git/builtin/index-pack.c:814:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (collision_test_needed) {
        ^
/datasets/git/builtin/index-pack.c:820:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (has_type < 0)
                ^
/datasets/git/builtin/index-pack.c:822:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (has_type != type || has_size != size)
                ^
/datasets/git/builtin/index-pack.c:822:24: note: +1
                if (has_type != type || has_size != size)
                                     ^
/datasets/git/builtin/index-pack.c:826:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!data)
                ^
/datasets/git/builtin/index-pack.c:828:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!has_data)
                ^
/datasets/git/builtin/index-pack.c:830:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (size != has_size || type != has_type ||
                ^
/datasets/git/builtin/index-pack.c:830:44: note: +1
                if (size != has_size || type != has_type ||
                                                         ^
/datasets/git/builtin/index-pack.c:836:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (strict || do_fsck_object) {
        ^
/datasets/git/builtin/index-pack.c:836:13: note: +1
        if (strict || do_fsck_object) {
                   ^
/datasets/git/builtin/index-pack.c:838:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (type == OBJ_BLOB) {
                ^
/datasets/git/builtin/index-pack.c:840:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (blob)
                        ^
/datasets/git/builtin/index-pack.c:842:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/builtin/index-pack.c:844:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (do_fsck_object &&
                        ^
/datasets/git/builtin/index-pack.c:844:23: note: +1
                        if (do_fsck_object &&
                                           ^
/datasets/git/builtin/index-pack.c:847:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/index-pack.c:852:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        assert(data && "data can only be NULL for large _blobs_");
                        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/builtin/index-pack.c:852:16: note: +1
                        assert(data && "data can only be NULL for large _blobs_");
                                    ^
/datasets/git/builtin/index-pack.c:852:4: note: nesting level increased to 3
                        assert(data && "data can only be NULL for large _blobs_");
                        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/builtin/index-pack.c:852:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        assert(data && "data can only be NULL for large _blobs_");
                        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/builtin/index-pack.c:852:16: note: +1
                        assert(data && "data can only be NULL for large _blobs_");
                                    ^
/datasets/git/builtin/index-pack.c:852:4: note: +1, nesting level increased to 4
                        assert(data && "data can only be NULL for large _blobs_");
                        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/builtin/index-pack.c:861:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!obj)
                        ^
/datasets/git/builtin/index-pack.c:863:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (do_fsck_object &&
                        ^
/datasets/git/builtin/index-pack.c:863:23: note: +1
                        if (do_fsck_object &&
                                           ^
/datasets/git/builtin/index-pack.c:866:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (strict && fsck_walk(obj, NULL, &fsck_options))
                        ^
/datasets/git/builtin/index-pack.c:866:15: note: +1
                        if (strict && fsck_walk(obj, NULL, &fsck_options))
                                   ^
/datasets/git/builtin/index-pack.c:869:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (obj->type == OBJ_TREE) {
                        ^
/datasets/git/builtin/index-pack.c:874:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (obj->type == OBJ_COMMIT) {
                        ^
/datasets/git/builtin/index-pack.c:876:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (detach_commit_buffer(commit, NULL) != data)
                                ^
/datasets/git/builtin/index-pack.c:810:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!check_collison(obj_entry))
                                               ^
                                                {
/datasets/git/builtin/index-pack.c:815:9: warning: variable 'has_data' is not initialized [cppcoreguidelines-init-variables]
                void *has_data;
                      ^
                               = NULL
/datasets/git/builtin/index-pack.c:816:20: warning: variable 'has_type' is not initialized [cppcoreguidelines-init-variables]
                enum object_type has_type;
                                 ^
/datasets/git/builtin/index-pack.c:817:17: warning: variable 'has_size' is not initialized [cppcoreguidelines-init-variables]
                unsigned long has_size;
                              ^
                                       = 0
/datasets/git/builtin/index-pack.c:820:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (has_type < 0)
                                 ^
                                  {
/datasets/git/builtin/index-pack.c:822:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (has_type != type || has_size != size)
                                                         ^
                                                          {
/datasets/git/builtin/index-pack.c:826:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!data)
                          ^
                           {
/datasets/git/builtin/index-pack.c:828:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!has_data)
                              ^
                               {
/datasets/git/builtin/index-pack.c:831:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    memcmp(data, has_data, size) != 0)
                                                      ^
                                                       {
/datasets/git/builtin/index-pack.c:840:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (blob)
                                 ^
                                  {
/datasets/git/builtin/index-pack.c:841:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                blob->object.flags |= FLAG_CHECKED;
                                                      ^
/datasets/git/builtin/index-pack.c:96:23: note: expanded from macro 'FLAG_CHECKED'
#define FLAG_CHECKED (1u<<21)
                      ^   ~~
/datasets/git/builtin/index-pack.c:842:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/builtin/index-pack.c:845:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            fsck_object(&blob->object, (void *)data, size, &fsck_options))
                                                                                          ^
                                                                                           {
/datasets/git/builtin/index-pack.c:848:19: warning: variable 'obj' is not initialized [cppcoreguidelines-init-variables]
                        struct object *obj;
                                       ^
                                           = NULL
/datasets/git/builtin/index-pack.c:849:8: warning: variable 'eaten' is not initialized [cppcoreguidelines-init-variables]
                        int eaten;
                            ^
                                  = 0
/datasets/git/builtin/index-pack.c:861:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!obj)
                                 ^
                                  {
/datasets/git/builtin/index-pack.c:864:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            fsck_object(obj, buf, size, &fsck_options))
                                                                       ^
                                                                        {
/datasets/git/builtin/index-pack.c:866:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (strict && fsck_walk(obj, NULL, &fsck_options))
                                                                          ^
                                                                           {
/datasets/git/builtin/index-pack.c:876:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (detach_commit_buffer(commit, NULL) != data)
                                                                               ^
                                                                                {
/datasets/git/builtin/index-pack.c:879:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        obj->flags |= FLAG_CHECKED;
                                      ^
/datasets/git/builtin/index-pack.c:96:23: note: expanded from macro 'FLAG_CHECKED'
#define FLAG_CHECKED (1u<<21)
                      ^   ~~
/datasets/git/builtin/index-pack.c:898:14: warning: function 'get_base_data' is within a recursive call chain [misc-no-recursion]
static void *get_base_data(struct base_data *c)
             ^
/datasets/git/builtin/index-pack.c:898:14: note: example recursive call chain, starting from function 'get_base_data'
/datasets/git/builtin/index-pack.c:920:11: note: Frame #1: function 'get_base_data' calls function 'get_base_data' here:
                        base = get_base_data(c->base);
                               ^
/datasets/git/builtin/index-pack.c:920:11: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/builtin/index-pack.c:898:46: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static void *get_base_data(struct base_data *c)
                                             ^
/datasets/git/builtin/index-pack.c:903:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int delta_nr = 0, delta_alloc = 0;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:898:28: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
static void *get_base_data(struct base_data *c)
                           ^
/datasets/git/builtin/index-pack.c:905:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'c' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (is_delta_type(c->obj->type) && !c->data) {
                       ^
/datasets/git/builtin/index-pack.c:906:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        ALLOC_GROW(delta, delta_nr + 1, delta_alloc);
                        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/builtin/index-pack.c:906:4: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                        ALLOC_GROW(delta, delta_nr + 1, delta_alloc);
                        ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/builtin/index-pack.c:916:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (; delta_nr > 0; delta_nr--) {
                ^
/datasets/git/builtin/index-pack.c:917:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        void *base, *raw;
                        ^~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:917:10: warning: variable 'base' is not initialized [cppcoreguidelines-init-variables]
                        void *base, *raw;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/index-pack.c:917:17: warning: variable 'raw' is not initialized [cppcoreguidelines-init-variables]
                        void *base, *raw;
                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/index-pack.c:927:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!c->data)
                                     ^
                                      {
/datasets/git/builtin/index-pack.c:955:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        void *delta_data, *result_data;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:955:8: warning: variable 'delta_data' is not initialized [cppcoreguidelines-init-variables]
        void *delta_data, *result_data;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/index-pack.c:955:21: warning: variable 'result_data' is not initialized [cppcoreguidelines-init-variables]
        void *delta_data, *result_data;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/index-pack.c:956:20: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        struct base_data *result;
                          ^
                                 = NULL
/datasets/git/builtin/index-pack.c:957:16: warning: variable 'result_size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long result_size;
                      ^
                                  = 0
/datasets/git/builtin/index-pack.c:960:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
                int i = delta_obj - objects;
                    ^
/datasets/git/builtin/index-pack.c:960:11: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int i = delta_obj - objects;
                        ^
/datasets/git/builtin/index-pack.c:961:7: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
                int j = base->obj - objects;
                    ^
/datasets/git/builtin/index-pack.c:961:11: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int j = base->obj - objects;
                        ^
/datasets/git/builtin/index-pack.c:964:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (deepest_delta < obj_stat[i].delta_depth)
                                                            ^
                                                             {
/datasets/git/builtin/index-pack.c:974:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!result_data)
                         ^
                          {
/datasets/git/builtin/index-pack.c:992:36: warning: 2 adjacent parameters of 'compare_ofs_delta_entry' of similar type ('const void *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int compare_ofs_delta_entry(const void *a, const void *b)
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:992:48: note: the first parameter in the range is 'a'
static int compare_ofs_delta_entry(const void *a, const void *b)
                                               ^
/datasets/git/builtin/index-pack.c:992:63: note: the last parameter in the range is 'b'
static int compare_ofs_delta_entry(const void *a, const void *b)
                                                              ^
/datasets/git/builtin/index-pack.c:992:48: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static int compare_ofs_delta_entry(const void *a, const void *b)
                                               ^
/datasets/git/builtin/index-pack.c:992:63: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static int compare_ofs_delta_entry(const void *a, const void *b)
                                                              ^
/datasets/git/builtin/index-pack.c:1002:36: warning: 2 adjacent parameters of 'compare_ref_delta_entry' of similar type ('const void *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int compare_ref_delta_entry(const void *a, const void *b)
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1002:48: note: the first parameter in the range is 'a'
static int compare_ref_delta_entry(const void *a, const void *b)
                                               ^
/datasets/git/builtin/index-pack.c:1002:63: note: the last parameter in the range is 'b'
static int compare_ref_delta_entry(const void *a, const void *b)
                                                              ^
/datasets/git/builtin/index-pack.c:1002:48: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static int compare_ref_delta_entry(const void *a, const void *b)
                                               ^
/datasets/git/builtin/index-pack.c:1002:63: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static int compare_ref_delta_entry(const void *a, const void *b)
                                                              ^
/datasets/git/builtin/index-pack.c:1010:14: warning: function 'threaded_second_pass' has cognitive complexity of 58 (threshold 25) [readability-function-cognitive-complexity]
static void *threaded_second_pass(void *data)
             ^
/datasets/git/builtin/index-pack.c:1012:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (data)
        ^
/datasets/git/builtin/index-pack.c:1014:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (;;) {
        ^
/datasets/git/builtin/index-pack.c:1024:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (list_empty(&work_head)) {
                ^
/datasets/git/builtin/index-pack.c:1028:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (nr_dispatched < nr_objects &&
                        ^
/datasets/git/builtin/index-pack.c:1028:38: note: +1
                        while (nr_dispatched < nr_objects &&
                                                          ^
/datasets/git/builtin/index-pack.c:1031:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (nr_dispatched >= nr_objects) {
                        ^
/datasets/git/builtin/index-pack.c:1036:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/index-pack.c:1044:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (parent->ref_first <= parent->ref_last) {
                        ^
/datasets/git/builtin/index-pack.c:1047:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (child_obj->real_type != OBJ_REF_DELTA)
                                ^
/datasets/git/builtin/index-pack.c:1052:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/builtin/index-pack.c:1055:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                assert(child_obj->real_type == OBJ_OFS_DELTA);
                                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/builtin/index-pack.c:1055:5: note: nesting level increased to 4
                                assert(child_obj->real_type == OBJ_OFS_DELTA);
                                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/builtin/index-pack.c:1055:5: note: +5, including nesting penalty of 4, nesting level increased to 5
                                assert(child_obj->real_type == OBJ_OFS_DELTA);
                                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/builtin/index-pack.c:1055:5: note: +1, nesting level increased to 5
                                assert(child_obj->real_type == OBJ_OFS_DELTA);
                                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/builtin/index-pack.c:1059:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (parent->ref_first > parent->ref_last &&
                        ^
/datasets/git/builtin/index-pack.c:1059:45: note: +1
                        if (parent->ref_first > parent->ref_last &&
                                                                 ^
/datasets/git/builtin/index-pack.c:1085:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (parent) {
                ^
/datasets/git/builtin/index-pack.c:1087:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!child->children_remaining)
                        ^
/datasets/git/builtin/index-pack.c:1089:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/index-pack.c:1091:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (child->children_remaining) {
                        ^
/datasets/git/builtin/index-pack.c:1105:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (parent)
                ^
/datasets/git/builtin/index-pack.c:1107:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (child->data) {
                ^
/datasets/git/builtin/index-pack.c:1116:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/index-pack.c:1124:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (p) {
                        ^
/datasets/git/builtin/index-pack.c:1128:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (p->children_remaining)
                                ^
/datasets/git/builtin/index-pack.c:1138:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        FREE_AND_NULL(child);
                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/index-pack.c:1012:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (data)
                 ^
                  {
/datasets/git/builtin/index-pack.c:1016:24: warning: variable 'child_obj' is not initialized [cppcoreguidelines-init-variables]
                struct object_entry *child_obj;
                                     ^
                                               = NULL
/datasets/git/builtin/index-pack.c:1017:21: warning: variable 'child' is not initialized [cppcoreguidelines-init-variables]
                struct base_data *child;
                                  ^
                                        = NULL
/datasets/git/builtin/index-pack.c:1028:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (nr_dispatched < nr_objects &&
                        ^
/datasets/git/builtin/index-pack.c:1028:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'nr_objects' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (nr_dispatched < nr_objects &&
                               ^
/datasets/git/builtin/index-pack.c:1029:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                               is_delta_type(objects[nr_dispatched].type))
                                                                          ^
                                                                           {
/datasets/git/builtin/index-pack.c:1047:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (child_obj->real_type != OBJ_REF_DELTA)
                                                                          ^
                                                                           {
/datasets/git/builtin/index-pack.c:1087:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!child->children_remaining)
                                                       ^
                                                        {
/datasets/git/builtin/index-pack.c:1088:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                FREE_AND_NULL(child->data);
                                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/index-pack.c:1122:4: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                        struct base_data *p = parent;
                        ^
/datasets/git/builtin/index-pack.c:1105:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (parent)
                           ^
                            {
/datasets/git/builtin/index-pack.c:1122:22: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                        struct base_data *p = parent;
                                          ^
/datasets/git/builtin/index-pack.c:1124:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (p) {
                        ^
/datasets/git/builtin/index-pack.c:1124:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (p) {
                               ^
/datasets/git/builtin/index-pack.c:1125:23: warning: variable 'next_p' is not initialized [cppcoreguidelines-init-variables]
                                struct base_data *next_p;
                                                  ^
                                                         = NULL
/datasets/git/builtin/index-pack.c:1128:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (p->children_remaining)
                                                          ^
                                                           {
/datasets/git/builtin/index-pack.c:1138:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        FREE_AND_NULL(child);
                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/index-pack.c:1151:13: warning: function 'parse_pack_objects' has cognitive complexity of 33 (threshold 25) [readability-function-cognitive-complexity]
static void parse_pack_objects(unsigned char *hash)
            ^
/datasets/git/builtin/index-pack.c:1158:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (verbose)
        ^
/datasets/git/builtin/index-pack.c:1160:20: note: +2, including nesting penalty of 1, nesting level increased to 2
                                progress_title ? progress_title :
                                               ^
/datasets/git/builtin/index-pack.c:1161:16: note: +3, including nesting penalty of 2, nesting level increased to 3
                                from_stdin ? _("Receiving objects") : _("Indexing objects"),
                                           ^
/datasets/git/builtin/index-pack.c:1163:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < nr_objects; i++) {
        ^
/datasets/git/builtin/index-pack.c:1169:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (obj->type == OBJ_OFS_DELTA) {
                ^
/datasets/git/builtin/index-pack.c:1173:10: note: +1, nesting level increased to 2
                } else if (obj->type == OBJ_REF_DELTA) {
                       ^
/datasets/git/builtin/index-pack.c:1174:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        ALLOC_GROW(ref_deltas, nr_ref_deltas + 1, ref_deltas_alloc);
                        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/builtin/index-pack.c:1174:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        ALLOC_GROW(ref_deltas, nr_ref_deltas + 1, ref_deltas_alloc);
                        ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/builtin/index-pack.c:1174:4: note: +5, including nesting penalty of 4, nesting level increased to 5
                        ALLOC_GROW(ref_deltas, nr_ref_deltas + 1, ref_deltas_alloc);
                        ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/builtin/index-pack.c:1174:4: note: +1, nesting level increased to 5
                        ALLOC_GROW(ref_deltas, nr_ref_deltas + 1, ref_deltas_alloc);
                        ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/builtin/index-pack.c:1178:10: note: +1, nesting level increased to 2
                } else if (!data) {
                       ^
/datasets/git/builtin/index-pack.c:1182:5: note: +1, nesting level increased to 2
                } else
                  ^
/datasets/git/builtin/index-pack.c:1194:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!hasheq(fill(the_hash_algo->rawsz), hash))
        ^
/datasets/git/builtin/index-pack.c:1199:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (fstat(input_fd, &st))
        ^
/datasets/git/builtin/index-pack.c:1201:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (S_ISREG(st.st_mode) &&
        ^
/datasets/git/builtin/index-pack.c:1201:26: note: +1
        if (S_ISREG(st.st_mode) &&
                                ^
/datasets/git/builtin/index-pack.c:1205:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < nr_objects; i++) {
        ^
/datasets/git/builtin/index-pack.c:1207:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (obj->real_type != OBJ_BAD)
                ^
/datasets/git/builtin/index-pack.c:1214:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (nr_delays)
        ^
/datasets/git/builtin/index-pack.c:1153:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, nr_delays = 0;
        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1153:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, nr_delays = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/index-pack.c:1153:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/index-pack.c:1156:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/builtin/index-pack.c:1158:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (verbose)
                    ^
                     {
/datasets/git/builtin/index-pack.c:1163:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'nr_objects' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < nr_objects; i++) {
                    ^
/datasets/git/builtin/index-pack.c:1174:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        ALLOC_GROW(ref_deltas, nr_ref_deltas + 1, ref_deltas_alloc);
                        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/builtin/index-pack.c:1182:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/builtin/index-pack.c:1194:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!hasheq(fill(the_hash_algo->rawsz), hash))
                                                      ^
                                                       {
/datasets/git/builtin/index-pack.c:1199:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fstat(input_fd, &st))
                                 ^
                                  {
/datasets/git/builtin/index-pack.c:1202:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        lseek(input_fd, 0, SEEK_CUR) - input_len != st.st_size)
                                                                               ^
                                                                                {
/datasets/git/builtin/index-pack.c:1205:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr_objects; i++) {
        ^
/datasets/git/builtin/index-pack.c:1205:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'nr_objects' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < nr_objects; i++) {
                    ^
/datasets/git/builtin/index-pack.c:1207:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (obj->real_type != OBJ_BAD)
                                              ^
                                               {
/datasets/git/builtin/index-pack.c:1214:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (nr_delays)
                      ^
                       {
/datasets/git/builtin/index-pack.c:1228:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/index-pack.c:1228:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/index-pack.c:1230:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!nr_ofs_deltas && !nr_ref_deltas)
                                             ^
                                              {
/datasets/git/builtin/index-pack.c:1237:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (verbose || show_resolving_progress)
                                               ^
                                                {
/datasets/git/builtin/index-pack.c:1243:24: warning: function is not thread safe [concurrency-mt-unsafe]
        if (nr_threads > 1 || getenv("GIT_FORCE_THREADS")) {
                              ^
/datasets/git/builtin/index-pack.c:1245:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < nr_threads; i++) {
                ^
/datasets/git/builtin/index-pack.c:1248:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ret)
                                ^
                                 {
/datasets/git/builtin/index-pack.c:1250:9: warning: function is not thread safe [concurrency-mt-unsafe]
                                    strerror(ret));
                                    ^
/datasets/git/builtin/index-pack.c:1252:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < nr_threads; i++)
                ^
/datasets/git/builtin/index-pack.c:1252:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < nr_threads; i++)
                                                ^
                                                 {
/datasets/git/builtin/index-pack.c:1265:52: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
static void fix_unresolved_deltas(struct hashfile *f);
                                                   ^
/datasets/git/builtin/index-pack.c:1276:20: warning: variable 'f' is not initialized [cppcoreguidelines-init-variables]
                struct hashfile *f;
                                 ^
                                   = NULL
/datasets/git/builtin/index-pack.c:1276:20: warning: variable name 'f' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/index-pack.c:1277:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                unsigned char read_hash[GIT_MAX_RAWSZ], tail_hash[GIT_MAX_RAWSZ];
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1281:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (nr_unresolved <= 0)
                                       ^
                                        {
/datasets/git/builtin/index-pack.c:1284:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(objects + nr_objects + 1, 0,
                ^~~~~~
/datasets/git/builtin/index-pack.c:1284:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(objects + nr_objects + 1, 0,
                ^~~~~~
/datasets/git/builtin/index-pack.c:1298:18: warning: narrowing conversion from 'unsigned long' to signed type 'off_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                         read_hash, consumed_bytes-the_hash_algo->rawsz);
                                                    ^
/datasets/git/builtin/index-pack.c:1299:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!hasheq(read_hash, tail_hash))
                                                  ^
                                                   {
/datasets/git/builtin/index-pack.c:1303:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (nr_ofs_deltas + nr_ref_deltas != nr_resolved_deltas)
                                                                ^
                                                                 {
/datasets/git/builtin/index-pack.c:1310:46: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
static int write_compressed(struct hashfile *f, void *in, unsigned int size)
                                             ^
/datasets/git/builtin/index-pack.c:1310:55: warning: parameter name 'in' is too short, expected at least 3 characters [readability-identifier-length]
static int write_compressed(struct hashfile *f, void *in, unsigned int size)
                                                      ^
/datasets/git/builtin/index-pack.c:1313:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int status;
        ^
/datasets/git/builtin/index-pack.c:1313:6: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int status;
            ^
                   = 0
/datasets/git/builtin/index-pack.c:1314:23: warning: 4096 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        unsigned char outbuf[4096];
                             ^
/datasets/git/builtin/index-pack.c:1320:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        do {
        ^
/datasets/git/builtin/index-pack.c:1325:11: warning: backward branch (do loop) is ID-dependent due to variable reference to 'status' and may cause performance degradation [altera-id-dependent-backward-branch]
        } while (status == Z_OK);
                 ^
/datasets/git/builtin/index-pack.c:1327:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (status != Z_STREAM_END)
                                   ^
                                    {
/datasets/git/builtin/index-pack.c:1331:9: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return size;
               ^
/datasets/git/builtin/index-pack.c:1334:65: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
static struct object_entry *append_obj_to_pack(struct hashfile *f,
                                                                ^
/datasets/git/builtin/index-pack.c:1336:11: warning: 2 adjacent parameters of 'append_obj_to_pack' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                               unsigned long size, enum object_type type)
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1336:25: note: the first parameter in the range is 'size'
                               unsigned long size, enum object_type type)
                                             ^~~~
/datasets/git/builtin/index-pack.c:1336:48: note: the last parameter in the range is 'type'
                               unsigned long size, enum object_type type)
                                                                    ^~~~
/datasets/git/builtin/index-pack.c:1336:31: note: 'unsigned long' and 'enum object_type' may be implicitly converted
                               unsigned long size, enum object_type type)
                                                   ^
/datasets/git/builtin/index-pack.c:1339:23: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        unsigned char header[10];
                             ^
/datasets/git/builtin/index-pack.c:1340:16: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned long s = size;
                      ^
/datasets/git/builtin/index-pack.c:1341:6: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
        int n = 0;
            ^
/datasets/git/builtin/index-pack.c:1342:16: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned char c = (type << 4) | (s & 15);
                      ^
/datasets/git/builtin/index-pack.c:1342:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned char c = (type << 4) | (s & 15);
                          ^~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1342:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned char c = (type << 4) | (s & 15);
                           ^~~~
/datasets/git/builtin/index-pack.c:1342:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned char c = (type << 4) | (s & 15);
                                         ^   ~~
/datasets/git/builtin/index-pack.c:1342:39: warning: 15 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        unsigned char c = (type << 4) | (s & 15);
                                             ^
/datasets/git/builtin/index-pack.c:1343:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        s >>= 4;
        ^     ~
/datasets/git/builtin/index-pack.c:1340:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        unsigned long s = size;
        ^
/datasets/git/builtin/index-pack.c:1344:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (s) {
        ^
/datasets/git/builtin/index-pack.c:1344:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 's' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (s) {
               ^
/datasets/git/builtin/index-pack.c:1345:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                header[n++] = c | 0x80;
                              ^   ~~~~
/datasets/git/builtin/index-pack.c:1345:21: warning: 0x80 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                header[n++] = c | 0x80;
                                  ^
/datasets/git/builtin/index-pack.c:1346:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                c = s & 0x7f;
                    ^   ~~~~
/datasets/git/builtin/index-pack.c:1346:11: warning: 0x7f is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                c = s & 0x7f;
                        ^
/datasets/git/builtin/index-pack.c:1347:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                s >>= 7;
                ^     ~
/datasets/git/builtin/index-pack.c:1347:9: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                s >>= 7;
                      ^
/datasets/git/builtin/index-pack.c:1364:42: warning: parameter name '_a' is too short, expected at least 3 characters [readability-identifier-length]
static int delta_pos_compare(const void *_a, const void *_b)
                                         ^
/datasets/git/builtin/index-pack.c:1364:58: warning: parameter name '_b' is too short, expected at least 3 characters [readability-identifier-length]
static int delta_pos_compare(const void *_a, const void *_b)
                                                         ^
/datasets/git/builtin/index-pack.c:1366:26: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        struct ref_delta_entry *a = *(struct ref_delta_entry **)_a;
                                ^
/datasets/git/builtin/index-pack.c:1367:26: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        struct ref_delta_entry *b = *(struct ref_delta_entry **)_b;
                                ^
/datasets/git/builtin/index-pack.c:1371:52: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
static void fix_unresolved_deltas(struct hashfile *f)
                                                   ^
/datasets/git/builtin/index-pack.c:1373:27: warning: variable 'sorted_by_pos' is not initialized [cppcoreguidelines-init-variables]
        struct ref_delta_entry **sorted_by_pos;
                                 ^
                                               = NULL
/datasets/git/builtin/index-pack.c:1374:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/index-pack.c:1374:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/index-pack.c:1386:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_ARRAY(sorted_by_pos, nr_ref_deltas);
        ^
/datasets/git/./git-compat-util.h:1090:53: note: expanded from macro 'ALLOC_ARRAY'
#define ALLOC_ARRAY(x, alloc) (x) = xmalloc(st_mult(sizeof(*(x)), (alloc)))
                                                    ^
/datasets/git/builtin/index-pack.c:1387:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr_ref_deltas; i++)
        ^
/datasets/git/builtin/index-pack.c:1387:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < nr_ref_deltas; i++)
                                           ^
                                            {
/datasets/git/builtin/index-pack.c:1389:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        QSORT(sorted_by_pos, nr_ref_deltas, delta_pos_compare);
        ^
/datasets/git/./git-compat-util.h:1304:56: note: expanded from macro 'QSORT'
#define QSORT(base, n, compar) sane_qsort((base), (n), sizeof(*(base)), compar)
                                                       ^
/datasets/git/builtin/index-pack.c:1396:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < nr_ref_deltas; i++) {
                ^
/datasets/git/builtin/index-pack.c:1397:28: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
                        struct ref_delta_entry *d = sorted_by_pos[i];
                                                ^
/datasets/git/builtin/index-pack.c:1400:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                                      OBJECT_INFO_FOR_PREFETCH))
                                                      ^
/datasets/git/./object-store.h:448:35: note: expanded from macro 'OBJECT_INFO_FOR_PREFETCH'
#define OBJECT_INFO_FOR_PREFETCH (OBJECT_INFO_SKIP_FETCH_OBJECT | OBJECT_INFO_QUICK)
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./object-store.h:443:39: note: expanded from macro 'OBJECT_INFO_SKIP_FETCH_OBJECT'
#define OBJECT_INFO_SKIP_FETCH_OBJECT 32
                                      ^~
/datasets/git/builtin/index-pack.c:1400:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                      OBJECT_INFO_FOR_PREFETCH))
                                                                                ^
                                                                                 {
/datasets/git/builtin/index-pack.c:1405:23: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                           to_fetch.oid, to_fetch.nr);
                                                         ^
/datasets/git/builtin/index-pack.c:1409:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr_ref_deltas; i++) {
        ^
/datasets/git/builtin/index-pack.c:1410:27: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
                struct ref_delta_entry *d = sorted_by_pos[i];
                                        ^
/datasets/git/builtin/index-pack.c:1411:20: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
                enum object_type type;
                                 ^
/datasets/git/builtin/index-pack.c:1412:9: warning: variable 'data' is not initialized [cppcoreguidelines-init-variables]
                void *data;
                      ^
                           = NULL
/datasets/git/builtin/index-pack.c:1413:17: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
                unsigned long size;
                              ^
                                   = 0
/datasets/git/builtin/index-pack.c:1415:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (objects[d->obj_no].real_type != OBJ_REF_DELTA)
                                                                  ^
                                                                   {
/datasets/git/builtin/index-pack.c:1418:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!data)
                          ^
                           {
/datasets/git/builtin/index-pack.c:1422:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                           type) < 0)
                                                     ^
                                                      {
/datasets/git/builtin/index-pack.c:1439:59: warning: 2 adjacent parameters of 'derive_filename' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static const char *derive_filename(const char *pack_name, const char *strip,
                                                          ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1439:71: note: the first parameter in the range is 'strip'
static const char *derive_filename(const char *pack_name, const char *strip,
                                                                      ^~~~~
/datasets/git/builtin/index-pack.c:1440:20: note: the last parameter in the range is 'suffix'
                                   const char *suffix, struct strbuf *buf)
                                               ^~~~~~
/datasets/git/builtin/index-pack.c:1442:9: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        size_t len;
               ^
                   = 0
/datasets/git/builtin/index-pack.c:1443:7: warning: 1st argument 'pack_name' (passed to 'str') looks like it might be swapped with the 2nd, 'strip' (passed to 'suffix') [readability-suspicious-call-argument]
        if (!strip_suffix(pack_name, strip, &len) || !len ||
             ^            ~~~~~~~~~  ~~~~~
/datasets/git/./git-compat-util.h:747:19: note: in the call to 'strip_suffix', declared here
static inline int strip_suffix(const char *str, const char *suffix, size_t *len)
                  ^                        ~~~              ~~~~~~
/datasets/git/builtin/index-pack.c:1444:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            pack_name[len - 1] != '.')
                                      ^
                                       {
/datasets/git/builtin/index-pack.c:1452:32: warning: 2 adjacent parameters of 'write_special_file' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void write_special_file(const char *suffix, const char *msg,
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1452:44: note: the first parameter in the range is 'suffix'
static void write_special_file(const char *suffix, const char *msg,
                                           ^~~~~~
/datasets/git/builtin/index-pack.c:1452:64: note: the last parameter in the range is 'msg'
static void write_special_file(const char *suffix, const char *msg,
                                                               ^~~
/datasets/git/builtin/index-pack.c:1457:14: warning: variable 'filename' is not initialized [cppcoreguidelines-init-variables]
        const char *filename;
                    ^
                             = NULL
/datasets/git/builtin/index-pack.c:1458:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/builtin/index-pack.c:1458:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/index-pack.c:1459:16: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int msg_len = strlen(msg);
                      ^
/datasets/git/builtin/index-pack.c:1461:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pack_name)
                      ^
                       {
/datasets/git/builtin/index-pack.c:1463:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/index-pack.c:1468:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (errno != EEXIST)
                                    ^
                                     {
/datasets/git/builtin/index-pack.c:1476:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (close(fd) != 0)
                                   ^
                                    {
/datasets/git/builtin/index-pack.c:1479:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (report)
                           ^
                            {
/datasets/git/builtin/index-pack.c:1491:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!*final_name)
                                 ^
                                  {
/datasets/git/builtin/index-pack.c:1493:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (finalize_object_file(curr_name, *final_name))
                                                                 ^
                                                                  {
/datasets/git/builtin/index-pack.c:1497:3: warning: Null pointer passed to 1st parameter expecting 'nonnull' [clang-analyzer-core.NonNullParamChecker]
                chmod(*final_name, 0444);
                ^
/datasets/git/builtin/index-pack.c:1719:34: note: 'pack_name' initialized to a null pointer value
        const char *index_name = NULL, *pack_name = NULL, *rev_index_name = NULL;
                                        ^~~~~~~~~
/datasets/git/builtin/index-pack.c:1739:6: note: Assuming 'argc' is not equal to 2
        if (argc == 2 && !strcmp(argv[1], "-h"))
            ^~~~~~~~~
/datasets/git/builtin/index-pack.c:1739:16: note: Left side of '&&' is false
        if (argc == 2 && !strcmp(argv[1], "-h"))
                      ^
/datasets/git/builtin/index-pack.c:1747:6: note: Assuming 'prefix' is null
        if (prefix && chdir(prefix))
            ^~~~~~
/datasets/git/builtin/index-pack.c:1747:13: note: Left side of '&&' is false
        if (prefix && chdir(prefix))
                   ^
/datasets/git/builtin/index-pack.c:1750:6: note: Assuming the condition is false
        if (git_env_bool(GIT_TEST_WRITE_REV_INDEX, 0))
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1750:2: note: Taking false branch
        if (git_env_bool(GIT_TEST_WRITE_REV_INDEX, 0))
        ^
/datasets/git/builtin/index-pack.c:1753:16: note: Assuming the condition is false
                rev_index = !!(opts.flags & (WRITE_REV_VERIFY | WRITE_REV));
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1755:14: note: Assuming 'i' is >= 'argc'
        for (i = 1; i < argc; i++) {
                    ^~~~~~~~
/datasets/git/builtin/index-pack.c:1755:2: note: Loop condition is false. Execution continues on line 1851
        for (i = 1; i < argc; i++) {
        ^
/datasets/git/builtin/index-pack.c:1851:7: note: 'pack_name' is null
        if (!pack_name && !from_stdin)
             ^~~~~~~~~
/datasets/git/builtin/index-pack.c:1851:6: note: Left side of '&&' is true
        if (!pack_name && !from_stdin)
            ^
/datasets/git/builtin/index-pack.c:1851:20: note: Assuming 'from_stdin' is not equal to 0
        if (!pack_name && !from_stdin)
                          ^~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1851:2: note: Taking false branch
        if (!pack_name && !from_stdin)
        ^
/datasets/git/builtin/index-pack.c:1853:6: note: 'fix_thin_pack' is 0
        if (fix_thin_pack && !from_stdin)
            ^~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1853:20: note: Left side of '&&' is false
        if (fix_thin_pack && !from_stdin)
                          ^
/datasets/git/builtin/index-pack.c:1855:6: note: 'from_stdin' is not equal to 0
        if (from_stdin && !startup_info->have_repository)
            ^~~~~~~~~~
/datasets/git/builtin/index-pack.c:1855:6: note: Left side of '&&' is true
/datasets/git/builtin/index-pack.c:1855:20: note: Assuming field 'have_repository' is not equal to 0
        if (from_stdin && !startup_info->have_repository)
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1855:2: note: Taking false branch
        if (from_stdin && !startup_info->have_repository)
        ^
/datasets/git/builtin/index-pack.c:1857:6: note: 'from_stdin' is not equal to 0
        if (from_stdin && hash_algo)
            ^~~~~~~~~~
/datasets/git/builtin/index-pack.c:1857:6: note: Left side of '&&' is true
/datasets/git/builtin/index-pack.c:1857:20: note: 'hash_algo' is 0
        if (from_stdin && hash_algo)
                          ^~~~~~~~~
/datasets/git/builtin/index-pack.c:1857:2: note: Taking false branch
        if (from_stdin && hash_algo)
        ^
/datasets/git/builtin/index-pack.c:1859:7: note: 'index_name' is null
        if (!index_name && pack_name)
             ^~~~~~~~~~
/datasets/git/builtin/index-pack.c:1859:6: note: Left side of '&&' is true
        if (!index_name && pack_name)
            ^
/datasets/git/builtin/index-pack.c:1859:21: note: 'pack_name' is null
        if (!index_name && pack_name)
                           ^~~~~~~~~
/datasets/git/builtin/index-pack.c:1859:2: note: Taking false branch
        if (!index_name && pack_name)
        ^
/datasets/git/builtin/index-pack.c:1863:6: note: 'rev_index' is 1
        if (rev_index) {
            ^~~~~~~~~
/datasets/git/builtin/index-pack.c:1863:2: note: Taking true branch
        if (rev_index) {
        ^
/datasets/git/builtin/index-pack.c:1864:17: note: 'verify' is 0
                opts.flags |= verify ? WRITE_REV_VERIFY : WRITE_REV;
                              ^~~~~~
/datasets/git/builtin/index-pack.c:1864:17: note: '?' condition is false
/datasets/git/builtin/index-pack.c:1865:7: note: 'index_name' is null
                if (index_name)
                    ^~~~~~~~~~
/datasets/git/builtin/index-pack.c:1865:3: note: Taking false branch
                if (index_name)
                ^
/datasets/git/builtin/index-pack.c:1871:6: note: 'verify' is 0
        if (verify) {
            ^~~~~~
/datasets/git/builtin/index-pack.c:1871:2: note: Taking false branch
        if (verify) {
        ^
/datasets/git/builtin/index-pack.c:1877:6: note: Assuming 'strict' is 0
        if (strict)
            ^~~~~~
/datasets/git/builtin/index-pack.c:1877:2: note: Taking false branch
        if (strict)
        ^
/datasets/git/builtin/index-pack.c:1880:6: note: Left side of '&&' is true
        if (HAVE_THREADS && !nr_threads) {
            ^
./thread-utils.h:7:22: note: expanded from macro 'HAVE_THREADS'
#define HAVE_THREADS 1
                     ^
/datasets/git/builtin/index-pack.c:1880:22: note: Assuming 'nr_threads' is 0
        if (HAVE_THREADS && !nr_threads) {
                            ^~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1880:2: note: Taking true branch
        if (HAVE_THREADS && !nr_threads) {
        ^
/datasets/git/builtin/index-pack.c:1890:7: note: Assuming 'nr_threads' is < 4
                if (nr_threads < 4)
                    ^~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1890:3: note: Taking true branch
                if (nr_threads < 4)
                ^
/datasets/git/builtin/index-pack.c:1903:6: note: Assuming 'show_stat' is 0
        if (show_stat)
            ^~~~~~~~~
/datasets/git/builtin/index-pack.c:1903:2: note: Taking false branch
        if (show_stat)
        ^
/datasets/git/builtin/index-pack.c:1907:6: note: 'report_end_of_input' is 0
        if (report_end_of_input)
            ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1907:2: note: Taking false branch
        if (report_end_of_input)
        ^
/datasets/git/builtin/index-pack.c:1913:6: note: Assuming 'strict' is 0
        if (strict)
            ^~~~~~
/datasets/git/builtin/index-pack.c:1913:2: note: Taking false branch
        if (strict)
        ^
/datasets/git/builtin/index-pack.c:1916:6: note: Assuming 'show_stat' is 0
        if (show_stat)
            ^~~~~~~~~
/datasets/git/builtin/index-pack.c:1916:2: note: Taking false branch
        if (show_stat)
        ^
/datasets/git/builtin/index-pack.c:1920:14: note: Assuming 'i' is >= 'nr_objects'
        for (i = 0; i < nr_objects; i++)
                    ^~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1920:2: note: Loop condition is false. Execution continues on line 1922
        for (i = 0; i < nr_objects; i++)
        ^
/datasets/git/builtin/index-pack.c:1923:6: note: 'rev_index' is 1
        if (rev_index)
            ^~~~~~~~~
/datasets/git/builtin/index-pack.c:1923:2: note: Taking true branch
        if (rev_index)
        ^
/datasets/git/builtin/index-pack.c:1929:7: note: 'verify' is 0
        if (!verify)
             ^~~~~~
/datasets/git/builtin/index-pack.c:1929:2: note: Taking true branch
        if (!verify)
        ^
/datasets/git/builtin/index-pack.c:1930:9: note: Passing null pointer value via 1st parameter 'final_pack_name'
                final(pack_name, curr_pack,
                      ^~~~~~~~~
/datasets/git/builtin/index-pack.c:1930:3: note: Calling 'final'
                final(pack_name, curr_pack,
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1513:6: note: Assuming 'from_stdin' is not equal to 0
        if (!from_stdin) {
            ^~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1513:2: note: Taking false branch
        if (!from_stdin) {
        ^
/datasets/git/builtin/index-pack.c:1518:7: note: Assuming 'err' is 0
                if (err)
                    ^~~
/datasets/git/builtin/index-pack.c:1518:3: note: Taking false branch
                if (err)
                ^
/datasets/git/builtin/index-pack.c:1522:6: note: 'keep_msg' is null
        if (keep_msg)
            ^~~~~~~~
/datasets/git/builtin/index-pack.c:1522:2: note: Taking false branch
        if (keep_msg)
        ^
/datasets/git/builtin/index-pack.c:1525:6: note: 'promisor_msg' is null
        if (promisor_msg)
            ^~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1525:2: note: Taking false branch
        if (promisor_msg)
        ^
/datasets/git/builtin/index-pack.c:1529:2: note: Calling 'rename_tmp_packfile'
        rename_tmp_packfile(&final_pack_name, curr_pack_name, &pack_name,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1490:6: note: Assuming the condition is false
        if (*final_name != curr_name) {
            ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1490:2: note: Taking false branch
        if (*final_name != curr_name) {
        ^
/datasets/git/builtin/index-pack.c:1496:13: note: Assuming 'make_read_only_if_same' is not equal to 0
        } else if (make_read_only_if_same) {
                   ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1496:9: note: Taking true branch
        } else if (make_read_only_if_same) {
               ^
/datasets/git/builtin/index-pack.c:1497:3: note: Null pointer passed to 1st parameter expecting 'nonnull'
                chmod(*final_name, 0444);
                ^     ~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1497:22: warning: 0444 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                chmod(*final_name, 0444);
                                   ^
/datasets/git/builtin/index-pack.c:1501:48: warning: 2 adjacent parameters of 'final' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void final(const char *final_pack_name, const char *curr_pack_name,
                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1501:60: note: the first parameter in the range is 'curr_pack_name'
static void final(const char *final_pack_name, const char *curr_pack_name,
                                                           ^~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1502:17: note: the last parameter in the range is 'final_index_name'
                  const char *final_index_name, const char *curr_index_name,
                              ^~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1502:35: warning: 2 adjacent parameters of 'final' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                  const char *final_index_name, const char *curr_index_name,
                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1502:47: note: the first parameter in the range is 'curr_index_name'
                  const char *final_index_name, const char *curr_index_name,
                                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1503:17: note: the last parameter in the range is 'final_rev_index_name'
                  const char *final_rev_index_name, const char *curr_rev_index_name,
                              ^~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1503:39: warning: 2 adjacent parameters of 'final' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                  const char *final_rev_index_name, const char *curr_rev_index_name,
                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1503:51: note: the first parameter in the range is 'curr_rev_index_name'
                  const char *final_rev_index_name, const char *curr_rev_index_name,
                                                                ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1504:17: note: the last parameter in the range is 'keep_msg'
                  const char *keep_msg, const char *promisor_msg,
                              ^~~~~~~~
/datasets/git/builtin/index-pack.c:1511:6: warning: variable 'err' is not initialized [cppcoreguidelines-init-variables]
        int err;
            ^
                = 0
/datasets/git/builtin/index-pack.c:1518:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err)
                        ^
                         {
/datasets/git/builtin/index-pack.c:1522:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (keep_msg)
                     ^
                      {
/datasets/git/builtin/index-pack.c:1525:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (promisor_msg)
                         ^
                          {
/datasets/git/builtin/index-pack.c:1531:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (curr_rev_index_name)
                                ^
                                 {
/datasets/git/builtin/index-pack.c:1538:22: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                struct packed_git *p;
                                   ^
                                     = NULL
/datasets/git/builtin/index-pack.c:1538:22: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/index-pack.c:134:1: note: inferred assignment of ID-dependent value from ID-dependent variable ret [altera-id-dependent-backward-branch]
static unsigned int input_offset, input_len;
^
/datasets/git/builtin/index-pack.c:1540:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (p)
                      ^
                       {
/datasets/git/builtin/index-pack.c:1557:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (input_len) {
                ^
/datasets/git/builtin/index-pack.c:1557:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'input_len' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (input_len) {
                       ^
/datasets/git/builtin/index-pack.c:1558:10: warning: narrowing conversion from 'ssize_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        err = xwrite(1, input_buffer + input_offset, input_len);
                              ^
/datasets/git/builtin/index-pack.c:1559:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (err <= 0)
                                     ^
                                      {
/datasets/git/builtin/index-pack.c:1571:46: warning: parameter name 'k' is too short, expected at least 3 characters [readability-identifier-length]
static int git_index_pack_config(const char *k, const char *v, void *cb)
                                             ^
/datasets/git/builtin/index-pack.c:1571:61: warning: parameter name 'v' is too short, expected at least 3 characters [readability-identifier-length]
static int git_index_pack_config(const char *k, const char *v, void *cb)
                                                            ^
/datasets/git/builtin/index-pack.c:1571:70: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int git_index_pack_config(const char *k, const char *v, void *cb)
                                                                     ^
/datasets/git/builtin/index-pack.c:1577:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opts->version > 2)
                                      ^
                                       {
/datasets/git/builtin/index-pack.c:1583:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (nr_threads < 0)
                                   ^
                                    {
/datasets/git/builtin/index-pack.c:1593:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (git_config_bool(k, v))
                                          ^
                                           {
/datasets/git/builtin/index-pack.c:1594:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        opts->flags |= WRITE_REV;
                        ^
/datasets/git/builtin/index-pack.c:1595:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/index-pack.c:1596:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        opts->flags &= ~WRITE_REV;
                        ^              ~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1596:19: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                        opts->flags &= ~WRITE_REV;
                                       ^
/datasets/git/builtin/index-pack.c:1601:35: warning: parameter name 'a_' is too short, expected at least 3 characters [readability-identifier-length]
static int cmp_uint32(const void *a_, const void *b_)
                                  ^
/datasets/git/builtin/index-pack.c:1601:51: warning: parameter name 'b_' is too short, expected at least 3 characters [readability-identifier-length]
static int cmp_uint32(const void *a_, const void *b_)
                                                  ^
/datasets/git/builtin/index-pack.c:1603:11: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        uint32_t a = *((uint32_t *)a_);
                 ^
/datasets/git/builtin/index-pack.c:1604:11: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        uint32_t b = *((uint32_t *)b_);
                 ^
/datasets/git/builtin/index-pack.c:1609:58: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static void read_v2_anomalous_offsets(struct packed_git *p,
                                                         ^
/datasets/git/builtin/index-pack.c:1612:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const uint32_t *idx1, *idx2;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1612:18: warning: variable 'idx1' is not initialized [cppcoreguidelines-init-variables]
        const uint32_t *idx1, *idx2;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/index-pack.c:1612:25: warning: variable 'idx2' is not initialized [cppcoreguidelines-init-variables]
        const uint32_t *idx1, *idx2;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/index-pack.c:1613:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i;
                 ^
                   = 0
/datasets/git/builtin/index-pack.c:1613:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/index-pack.c:1625:15: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (!(off & 0x80000000))
                            ^
/datasets/git/builtin/index-pack.c:1625:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(off & 0x80000000))
                                        ^
                                         {
/datasets/git/builtin/index-pack.c:1627:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                off = off & 0x7fffffff;
                      ^     ~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1627:15: warning: 0x7fffffff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                off = off & 0x7fffffff;
                            ^
/datasets/git/builtin/index-pack.c:1628:28: warning: result of multiplication in type 'unsigned int' is used as a pointer offset after an implicit widening conversion to type 'size_t' [bugprone-implicit-widening-of-multiplication-result]
                check_pack_index_ptr(p, &idx2[off * 2]);
                                         ^
/datasets/git/builtin/index-pack.c:1628:33: note: make conversion explicit to silence this warning
                check_pack_index_ptr(p, &idx2[off * 2]);
                                              ^~~~~~~
                                              (size_t)( )
/datasets/git/builtin/index-pack.c:1628:33: note: perform multiplication in a wider type
                check_pack_index_ptr(p, &idx2[off * 2]);
                                              ^~~
                                              (size_t)
/datasets/git/builtin/index-pack.c:1629:7: warning: result of multiplication in type 'unsigned int' is used as a pointer offset after an implicit widening conversion to type 'size_t' [bugprone-implicit-widening-of-multiplication-result]
                if (idx2[off * 2])
                    ^
/datasets/git/builtin/index-pack.c:1629:12: note: make conversion explicit to silence this warning
                if (idx2[off * 2])
                         ^~~~~~~
                         (size_t)( )
/datasets/git/builtin/index-pack.c:1629:12: note: perform multiplication in a wider type
                if (idx2[off * 2])
                         ^~~
                         (size_t)
/datasets/git/builtin/index-pack.c:1629:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (idx2[off * 2])
                                  ^
                                   {
/datasets/git/builtin/index-pack.c:1636:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                ALLOC_GROW(opts->anomaly, opts->anomaly_nr + 1, opts->anomaly_alloc);
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/builtin/index-pack.c:1645:21: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        struct packed_git *p = add_packed_git(pack_name, strlen(pack_name), 1);
                           ^
/datasets/git/builtin/index-pack.c:1647:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!p)
               ^
                {
/datasets/git/builtin/index-pack.c:1649:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (open_pack_index(p))
                               ^
                                {
/datasets/git/builtin/index-pack.c:1655:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->version == 2)
                               ^
                                {
/datasets/git/builtin/index-pack.c:1671:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, baseobjects = nr_objects - nr_ref_deltas - nr_ofs_deltas;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1671:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, baseobjects = nr_objects - nr_ref_deltas - nr_ofs_deltas;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/index-pack.c:1671:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/index-pack.c:1674:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (deepest_delta)
                          ^
                           {
/datasets/git/builtin/index-pack.c:1677:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr_objects; i++) {
        ^
/datasets/git/builtin/index-pack.c:1677:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'nr_objects' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < nr_objects; i++) {
                    ^
/datasets/git/builtin/index-pack.c:1680:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_delta_type(obj->type))
                                             ^
                                              {
/datasets/git/builtin/index-pack.c:1681:4: warning: Array access (from variable 'chain_histogram') results in a null pointer dereference [clang-analyzer-core.NullDereference]
                        chain_histogram[obj_stat[i].delta_depth - 1]++;
                        ^
/datasets/git/builtin/index-pack.c:1739:6: note: Assuming 'argc' is not equal to 2
        if (argc == 2 && !strcmp(argv[1], "-h"))
            ^~~~~~~~~
/datasets/git/builtin/index-pack.c:1739:16: note: Left side of '&&' is false
        if (argc == 2 && !strcmp(argv[1], "-h"))
                      ^
/datasets/git/builtin/index-pack.c:1747:6: note: Assuming 'prefix' is null
        if (prefix && chdir(prefix))
            ^~~~~~
/datasets/git/builtin/index-pack.c:1747:13: note: Left side of '&&' is false
        if (prefix && chdir(prefix))
                   ^
/datasets/git/builtin/index-pack.c:1750:6: note: Assuming the condition is false
        if (git_env_bool(GIT_TEST_WRITE_REV_INDEX, 0))
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1750:2: note: Taking false branch
        if (git_env_bool(GIT_TEST_WRITE_REV_INDEX, 0))
        ^
/datasets/git/builtin/index-pack.c:1753:16: note: Assuming the condition is false
                rev_index = !!(opts.flags & (WRITE_REV_VERIFY | WRITE_REV));
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1755:14: note: Assuming 'i' is >= 'argc'
        for (i = 1; i < argc; i++) {
                    ^~~~~~~~
/datasets/git/builtin/index-pack.c:1755:2: note: Loop condition is false. Execution continues on line 1851
        for (i = 1; i < argc; i++) {
        ^
/datasets/git/builtin/index-pack.c:1851:7: note: 'pack_name' is null
        if (!pack_name && !from_stdin)
             ^~~~~~~~~
/datasets/git/builtin/index-pack.c:1851:6: note: Left side of '&&' is true
        if (!pack_name && !from_stdin)
            ^
/datasets/git/builtin/index-pack.c:1851:20: note: Assuming 'from_stdin' is not equal to 0
        if (!pack_name && !from_stdin)
                          ^~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1851:2: note: Taking false branch
        if (!pack_name && !from_stdin)
        ^
/datasets/git/builtin/index-pack.c:1853:6: note: 'fix_thin_pack' is 0
        if (fix_thin_pack && !from_stdin)
            ^~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1853:20: note: Left side of '&&' is false
        if (fix_thin_pack && !from_stdin)
                          ^
/datasets/git/builtin/index-pack.c:1855:6: note: 'from_stdin' is not equal to 0
        if (from_stdin && !startup_info->have_repository)
            ^~~~~~~~~~
/datasets/git/builtin/index-pack.c:1855:6: note: Left side of '&&' is true
/datasets/git/builtin/index-pack.c:1855:20: note: Assuming field 'have_repository' is not equal to 0
        if (from_stdin && !startup_info->have_repository)
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1855:2: note: Taking false branch
        if (from_stdin && !startup_info->have_repository)
        ^
/datasets/git/builtin/index-pack.c:1857:6: note: 'from_stdin' is not equal to 0
        if (from_stdin && hash_algo)
            ^~~~~~~~~~
/datasets/git/builtin/index-pack.c:1857:6: note: Left side of '&&' is true
/datasets/git/builtin/index-pack.c:1857:20: note: 'hash_algo' is 0
        if (from_stdin && hash_algo)
                          ^~~~~~~~~
/datasets/git/builtin/index-pack.c:1857:2: note: Taking false branch
        if (from_stdin && hash_algo)
        ^
/datasets/git/builtin/index-pack.c:1859:7: note: 'index_name' is null
        if (!index_name && pack_name)
             ^~~~~~~~~~
/datasets/git/builtin/index-pack.c:1859:6: note: Left side of '&&' is true
        if (!index_name && pack_name)
            ^
/datasets/git/builtin/index-pack.c:1859:21: note: 'pack_name' is null
        if (!index_name && pack_name)
                           ^~~~~~~~~
/datasets/git/builtin/index-pack.c:1859:2: note: Taking false branch
        if (!index_name && pack_name)
        ^
/datasets/git/builtin/index-pack.c:1863:6: note: 'rev_index' is 1
        if (rev_index) {
            ^~~~~~~~~
/datasets/git/builtin/index-pack.c:1863:2: note: Taking true branch
        if (rev_index) {
        ^
/datasets/git/builtin/index-pack.c:1864:17: note: 'verify' is 0
                opts.flags |= verify ? WRITE_REV_VERIFY : WRITE_REV;
                              ^~~~~~
/datasets/git/builtin/index-pack.c:1864:17: note: '?' condition is false
/datasets/git/builtin/index-pack.c:1865:7: note: 'index_name' is null
                if (index_name)
                    ^~~~~~~~~~
/datasets/git/builtin/index-pack.c:1865:3: note: Taking false branch
                if (index_name)
                ^
/datasets/git/builtin/index-pack.c:1871:6: note: 'verify' is 0
        if (verify) {
            ^~~~~~
/datasets/git/builtin/index-pack.c:1871:2: note: Taking false branch
        if (verify) {
        ^
/datasets/git/builtin/index-pack.c:1877:6: note: Assuming 'strict' is 0
        if (strict)
            ^~~~~~
/datasets/git/builtin/index-pack.c:1877:2: note: Taking false branch
        if (strict)
        ^
/datasets/git/builtin/index-pack.c:1880:6: note: Left side of '&&' is true
        if (HAVE_THREADS && !nr_threads) {
            ^
./thread-utils.h:7:22: note: expanded from macro 'HAVE_THREADS'
#define HAVE_THREADS 1
                     ^
/datasets/git/builtin/index-pack.c:1880:22: note: Assuming 'nr_threads' is 0
        if (HAVE_THREADS && !nr_threads) {
                            ^~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1880:2: note: Taking true branch
        if (HAVE_THREADS && !nr_threads) {
        ^
/datasets/git/builtin/index-pack.c:1890:7: note: Assuming 'nr_threads' is < 4
                if (nr_threads < 4)
                    ^~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1890:3: note: Taking true branch
                if (nr_threads < 4)
                ^
/datasets/git/builtin/index-pack.c:1903:6: note: Assuming 'show_stat' is 0
        if (show_stat)
            ^~~~~~~~~
/datasets/git/builtin/index-pack.c:1903:2: note: Taking false branch
        if (show_stat)
        ^
/datasets/git/builtin/index-pack.c:1907:6: note: 'report_end_of_input' is 0
        if (report_end_of_input)
            ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1907:2: note: Taking false branch
        if (report_end_of_input)
        ^
/datasets/git/builtin/index-pack.c:1913:6: note: Assuming 'strict' is 0
        if (strict)
            ^~~~~~
/datasets/git/builtin/index-pack.c:1913:2: note: Taking false branch
        if (strict)
        ^
/datasets/git/builtin/index-pack.c:1916:6: note: Assuming 'show_stat' is not equal to 0
        if (show_stat)
            ^~~~~~~~~
/datasets/git/builtin/index-pack.c:1916:2: note: Taking true branch
        if (show_stat)
        ^
/datasets/git/builtin/index-pack.c:1917:3: note: Calling 'show_pack_info'
                show_pack_info(stat_only);
                ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1672:2: note: 'chain_histogram' initialized to a null pointer value
        unsigned long *chain_histogram = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1674:6: note: Assuming 'deepest_delta' is 0
        if (deepest_delta)
            ^~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1674:2: note: Taking false branch
        if (deepest_delta)
        ^
/datasets/git/builtin/index-pack.c:1677:14: note: Assuming 'i' is < 'nr_objects'
        for (i = 0; i < nr_objects; i++) {
                    ^~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1677:2: note: Loop condition is true.  Entering loop body
        for (i = 0; i < nr_objects; i++) {
        ^
/datasets/git/builtin/index-pack.c:1680:3: note: Taking true branch
                if (is_delta_type(obj->type))
                ^
/datasets/git/builtin/index-pack.c:1681:4: note: Array access (from variable 'chain_histogram') results in a null pointer dereference
                        chain_histogram[obj_stat[i].delta_depth - 1]++;
                        ^~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1682:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (stat_only)
                              ^
                               {
/datasets/git/builtin/index-pack.c:1697:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (baseobjects)
                        ^
                         {
/datasets/git/builtin/index-pack.c:1702:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < deepest_delta; i++) {
        ^
/datasets/git/builtin/index-pack.c:1702:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'deepest_delta' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < deepest_delta; i++) {
                    ^
/datasets/git/builtin/index-pack.c:1703:8: warning: Array access (from variable 'chain_histogram') results in a null pointer dereference [clang-analyzer-core.NullDereference]
                if (!chain_histogram[i])
                     ^
/datasets/git/builtin/index-pack.c:1739:6: note: Assuming 'argc' is not equal to 2
        if (argc == 2 && !strcmp(argv[1], "-h"))
            ^~~~~~~~~
/datasets/git/builtin/index-pack.c:1739:16: note: Left side of '&&' is false
        if (argc == 2 && !strcmp(argv[1], "-h"))
                      ^
/datasets/git/builtin/index-pack.c:1747:6: note: Assuming 'prefix' is null
        if (prefix && chdir(prefix))
            ^~~~~~
/datasets/git/builtin/index-pack.c:1747:13: note: Left side of '&&' is false
        if (prefix && chdir(prefix))
                   ^
/datasets/git/builtin/index-pack.c:1750:6: note: Assuming the condition is false
        if (git_env_bool(GIT_TEST_WRITE_REV_INDEX, 0))
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1750:2: note: Taking false branch
        if (git_env_bool(GIT_TEST_WRITE_REV_INDEX, 0))
        ^
/datasets/git/builtin/index-pack.c:1753:16: note: Assuming the condition is false
                rev_index = !!(opts.flags & (WRITE_REV_VERIFY | WRITE_REV));
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1755:14: note: Assuming 'i' is >= 'argc'
        for (i = 1; i < argc; i++) {
                    ^~~~~~~~
/datasets/git/builtin/index-pack.c:1755:2: note: Loop condition is false. Execution continues on line 1851
        for (i = 1; i < argc; i++) {
        ^
/datasets/git/builtin/index-pack.c:1851:7: note: 'pack_name' is null
        if (!pack_name && !from_stdin)
             ^~~~~~~~~
/datasets/git/builtin/index-pack.c:1851:6: note: Left side of '&&' is true
        if (!pack_name && !from_stdin)
            ^
/datasets/git/builtin/index-pack.c:1851:20: note: Assuming 'from_stdin' is not equal to 0
        if (!pack_name && !from_stdin)
                          ^~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1851:2: note: Taking false branch
        if (!pack_name && !from_stdin)
        ^
/datasets/git/builtin/index-pack.c:1853:6: note: 'fix_thin_pack' is 0
        if (fix_thin_pack && !from_stdin)
            ^~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1853:20: note: Left side of '&&' is false
        if (fix_thin_pack && !from_stdin)
                          ^
/datasets/git/builtin/index-pack.c:1855:6: note: 'from_stdin' is not equal to 0
        if (from_stdin && !startup_info->have_repository)
            ^~~~~~~~~~
/datasets/git/builtin/index-pack.c:1855:6: note: Left side of '&&' is true
/datasets/git/builtin/index-pack.c:1855:20: note: Assuming field 'have_repository' is not equal to 0
        if (from_stdin && !startup_info->have_repository)
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1855:2: note: Taking false branch
        if (from_stdin && !startup_info->have_repository)
        ^
/datasets/git/builtin/index-pack.c:1857:6: note: 'from_stdin' is not equal to 0
        if (from_stdin && hash_algo)
            ^~~~~~~~~~
/datasets/git/builtin/index-pack.c:1857:6: note: Left side of '&&' is true
/datasets/git/builtin/index-pack.c:1857:20: note: 'hash_algo' is 0
        if (from_stdin && hash_algo)
                          ^~~~~~~~~
/datasets/git/builtin/index-pack.c:1857:2: note: Taking false branch
        if (from_stdin && hash_algo)
        ^
/datasets/git/builtin/index-pack.c:1859:7: note: 'index_name' is null
        if (!index_name && pack_name)
             ^~~~~~~~~~
/datasets/git/builtin/index-pack.c:1859:6: note: Left side of '&&' is true
        if (!index_name && pack_name)
            ^
/datasets/git/builtin/index-pack.c:1859:21: note: 'pack_name' is null
        if (!index_name && pack_name)
                           ^~~~~~~~~
/datasets/git/builtin/index-pack.c:1859:2: note: Taking false branch
        if (!index_name && pack_name)
        ^
/datasets/git/builtin/index-pack.c:1863:6: note: 'rev_index' is 1
        if (rev_index) {
            ^~~~~~~~~
/datasets/git/builtin/index-pack.c:1863:2: note: Taking true branch
        if (rev_index) {
        ^
/datasets/git/builtin/index-pack.c:1864:17: note: 'verify' is 0
                opts.flags |= verify ? WRITE_REV_VERIFY : WRITE_REV;
                              ^~~~~~
/datasets/git/builtin/index-pack.c:1864:17: note: '?' condition is false
/datasets/git/builtin/index-pack.c:1865:7: note: 'index_name' is null
                if (index_name)
                    ^~~~~~~~~~
/datasets/git/builtin/index-pack.c:1865:3: note: Taking false branch
                if (index_name)
                ^
/datasets/git/builtin/index-pack.c:1871:6: note: 'verify' is 0
        if (verify) {
            ^~~~~~
/datasets/git/builtin/index-pack.c:1871:2: note: Taking false branch
        if (verify) {
        ^
/datasets/git/builtin/index-pack.c:1877:6: note: Assuming 'strict' is 0
        if (strict)
            ^~~~~~
/datasets/git/builtin/index-pack.c:1877:2: note: Taking false branch
        if (strict)
        ^
/datasets/git/builtin/index-pack.c:1880:6: note: Left side of '&&' is true
        if (HAVE_THREADS && !nr_threads) {
            ^
./thread-utils.h:7:22: note: expanded from macro 'HAVE_THREADS'
#define HAVE_THREADS 1
                     ^
/datasets/git/builtin/index-pack.c:1880:22: note: Assuming 'nr_threads' is 0
        if (HAVE_THREADS && !nr_threads) {
                            ^~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1880:2: note: Taking true branch
        if (HAVE_THREADS && !nr_threads) {
        ^
/datasets/git/builtin/index-pack.c:1890:7: note: Assuming 'nr_threads' is < 4
                if (nr_threads < 4)
                    ^~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1890:3: note: Taking true branch
                if (nr_threads < 4)
                ^
/datasets/git/builtin/index-pack.c:1903:6: note: Assuming 'show_stat' is 0
        if (show_stat)
            ^~~~~~~~~
/datasets/git/builtin/index-pack.c:1903:2: note: Taking false branch
        if (show_stat)
        ^
/datasets/git/builtin/index-pack.c:1907:6: note: 'report_end_of_input' is 0
        if (report_end_of_input)
            ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1907:2: note: Taking false branch
        if (report_end_of_input)
        ^
/datasets/git/builtin/index-pack.c:1913:6: note: Assuming 'strict' is 0
        if (strict)
            ^~~~~~
/datasets/git/builtin/index-pack.c:1913:2: note: Taking false branch
        if (strict)
        ^
/datasets/git/builtin/index-pack.c:1916:6: note: Assuming 'show_stat' is not equal to 0
        if (show_stat)
            ^~~~~~~~~
/datasets/git/builtin/index-pack.c:1916:2: note: Taking true branch
        if (show_stat)
        ^
/datasets/git/builtin/index-pack.c:1917:3: note: Calling 'show_pack_info'
                show_pack_info(stat_only);
                ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1672:2: note: 'chain_histogram' initialized to a null pointer value
        unsigned long *chain_histogram = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1674:6: note: Assuming 'deepest_delta' is 0
        if (deepest_delta)
            ^~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1674:2: note: Taking false branch
        if (deepest_delta)
        ^
/datasets/git/builtin/index-pack.c:1677:14: note: Assuming 'i' is >= 'nr_objects'
        for (i = 0; i < nr_objects; i++) {
                    ^~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1677:2: note: Loop condition is false. Execution continues on line 1697
        for (i = 0; i < nr_objects; i++) {
        ^
/datasets/git/builtin/index-pack.c:1697:6: note: Assuming 'baseobjects' is not equal to 0
        if (baseobjects)
            ^~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1697:2: note: Taking true branch
        if (baseobjects)
        ^
/datasets/git/builtin/index-pack.c:1702:14: note: Assuming 'i' is < 'deepest_delta'
        for (i = 0; i < deepest_delta; i++) {
                    ^~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1702:2: note: Loop condition is true.  Entering loop body
        for (i = 0; i < deepest_delta; i++) {
        ^
/datasets/git/builtin/index-pack.c:1703:8: note: Array access (from variable 'chain_histogram') results in a null pointer dereference
                if (!chain_histogram[i])
                     ^~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1703:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!chain_histogram[i])
                                        ^
                                         {
/datasets/git/builtin/index-pack.c:1714:5: warning: function 'cmd_index_pack' has cognitive complexity of 122 (threshold 25) [readability-function-cognitive-complexity]
int cmd_index_pack(int argc, const char **argv, const char *prefix)
    ^
/datasets/git/builtin/index-pack.c:1739:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (argc == 2 && !strcmp(argv[1], "-h"))
        ^
/datasets/git/builtin/index-pack.c:1739:16: note: +1
        if (argc == 2 && !strcmp(argv[1], "-h"))
                      ^
/datasets/git/builtin/index-pack.c:1747:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (prefix && chdir(prefix))
        ^
/datasets/git/builtin/index-pack.c:1747:13: note: +1
        if (prefix && chdir(prefix))
                   ^
/datasets/git/builtin/index-pack.c:1750:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (git_env_bool(GIT_TEST_WRITE_REV_INDEX, 0))
        ^
/datasets/git/builtin/index-pack.c:1752:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/builtin/index-pack.c:1755:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 1; i < argc; i++) {
        ^
/datasets/git/builtin/index-pack.c:1758:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*arg == '-') {
                ^
/datasets/git/builtin/index-pack.c:1759:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!strcmp(arg, "--stdin")) {
                        ^
/datasets/git/builtin/index-pack.c:1761:11: note: +1, nesting level increased to 3
                        } else if (!strcmp(arg, "--fix-thin")) {
                               ^
/datasets/git/builtin/index-pack.c:1763:11: note: +1, nesting level increased to 3
                        } else if (skip_to_optional_arg(arg, "--strict", &arg)) {
                               ^
/datasets/git/builtin/index-pack.c:1767:11: note: +1, nesting level increased to 3
                        } else if (!strcmp(arg, "--check-self-contained-and-connected")) {
                               ^
/datasets/git/builtin/index-pack.c:1770:11: note: +1, nesting level increased to 3
                        } else if (!strcmp(arg, "--fsck-objects")) {
                               ^
/datasets/git/builtin/index-pack.c:1772:11: note: +1, nesting level increased to 3
                        } else if (!strcmp(arg, "--verify")) {
                               ^
/datasets/git/builtin/index-pack.c:1774:11: note: +1, nesting level increased to 3
                        } else if (!strcmp(arg, "--verify-stat")) {
                               ^
/datasets/git/builtin/index-pack.c:1777:11: note: +1, nesting level increased to 3
                        } else if (!strcmp(arg, "--verify-stat-only")) {
                               ^
/datasets/git/builtin/index-pack.c:1781:11: note: +1, nesting level increased to 3
                        } else if (skip_to_optional_arg(arg, "--keep", &keep_msg)) {
                               ^
/datasets/git/builtin/index-pack.c:1783:11: note: +1, nesting level increased to 3
                        } else if (skip_to_optional_arg(arg, "--promisor", &promisor_msg)) {
                               ^
/datasets/git/builtin/index-pack.c:1785:11: note: +1, nesting level increased to 3
                        } else if (starts_with(arg, "--threads=")) {
                               ^
/datasets/git/builtin/index-pack.c:1788:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!arg[10] || *end || nr_threads < 0)
                                ^
/datasets/git/builtin/index-pack.c:1788:26: note: +1
                                if (!arg[10] || *end || nr_threads < 0)
                                                     ^
/datasets/git/builtin/index-pack.c:1790:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!HAVE_THREADS && nr_threads != 1) {
                                ^
/datasets/git/builtin/index-pack.c:1790:23: note: +1
                                if (!HAVE_THREADS && nr_threads != 1) {
                                                  ^
/datasets/git/builtin/index-pack.c:1794:11: note: +1, nesting level increased to 3
                        } else if (starts_with(arg, "--pack_header=")) {
                               ^
/datasets/git/builtin/index-pack.c:1801:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (*c != ',')
                                ^
/datasets/git/builtin/index-pack.c:1804:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (*c)
                                ^
/datasets/git/builtin/index-pack.c:1807:11: note: +1, nesting level increased to 3
                        } else if (!strcmp(arg, "-v")) {
                               ^
/datasets/git/builtin/index-pack.c:1809:11: note: +1, nesting level increased to 3
                        } else if (!strcmp(arg, "--progress-title")) {
                               ^
/datasets/git/builtin/index-pack.c:1810:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (progress_title || (i+1) >= argc)
                                ^
/datasets/git/builtin/index-pack.c:1810:24: note: +1
                                if (progress_title || (i+1) >= argc)
                                                   ^
/datasets/git/builtin/index-pack.c:1813:11: note: +1, nesting level increased to 3
                        } else if (!strcmp(arg, "--show-resolving-progress")) {
                               ^
/datasets/git/builtin/index-pack.c:1815:11: note: +1, nesting level increased to 3
                        } else if (!strcmp(arg, "--report-end-of-input")) {
                               ^
/datasets/git/builtin/index-pack.c:1817:11: note: +1, nesting level increased to 3
                        } else if (!strcmp(arg, "-o")) {
                               ^
/datasets/git/builtin/index-pack.c:1818:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (index_name || (i+1) >= argc)
                                ^
/datasets/git/builtin/index-pack.c:1818:20: note: +1
                                if (index_name || (i+1) >= argc)
                                               ^
/datasets/git/builtin/index-pack.c:1821:11: note: +1, nesting level increased to 3
                        } else if (starts_with(arg, "--index-version=")) {
                               ^
/datasets/git/builtin/index-pack.c:1824:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (opts.version > 2)
                                ^
/datasets/git/builtin/index-pack.c:1826:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (*c == ',')
                                ^
/datasets/git/builtin/index-pack.c:1828:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (*c || opts.off32_limit & 0x80000000)
                                ^
/datasets/git/builtin/index-pack.c:1828:12: note: +1
                                if (*c || opts.off32_limit & 0x80000000)
                                       ^
/datasets/git/builtin/index-pack.c:1830:11: note: +1, nesting level increased to 3
                        } else if (skip_prefix(arg, "--max-input-size=", &arg)) {
                               ^
/datasets/git/builtin/index-pack.c:1832:11: note: +1, nesting level increased to 3
                        } else if (skip_prefix(arg, "--object-format=", &arg)) {
                               ^
/datasets/git/builtin/index-pack.c:1834:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (hash_algo == GIT_HASH_UNKNOWN)
                                ^
/datasets/git/builtin/index-pack.c:1837:11: note: +1, nesting level increased to 3
                        } else if (!strcmp(arg, "--rev-index")) {
                               ^
/datasets/git/builtin/index-pack.c:1839:11: note: +1, nesting level increased to 3
                        } else if (!strcmp(arg, "--no-rev-index")) {
                               ^
/datasets/git/builtin/index-pack.c:1841:6: note: +1, nesting level increased to 3
                        } else
                          ^
/datasets/git/builtin/index-pack.c:1846:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (pack_name)
                ^
/datasets/git/builtin/index-pack.c:1851:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!pack_name && !from_stdin)
        ^
/datasets/git/builtin/index-pack.c:1851:17: note: +1
        if (!pack_name && !from_stdin)
                       ^
/datasets/git/builtin/index-pack.c:1853:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (fix_thin_pack && !from_stdin)
        ^
/datasets/git/builtin/index-pack.c:1853:20: note: +1
        if (fix_thin_pack && !from_stdin)
                          ^
/datasets/git/builtin/index-pack.c:1855:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (from_stdin && !startup_info->have_repository)
        ^
/datasets/git/builtin/index-pack.c:1855:17: note: +1
        if (from_stdin && !startup_info->have_repository)
                       ^
/datasets/git/builtin/index-pack.c:1857:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (from_stdin && hash_algo)
        ^
/datasets/git/builtin/index-pack.c:1857:17: note: +1
        if (from_stdin && hash_algo)
                       ^
/datasets/git/builtin/index-pack.c:1859:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!index_name && pack_name)
        ^
/datasets/git/builtin/index-pack.c:1859:18: note: +1
        if (!index_name && pack_name)
                        ^
/datasets/git/builtin/index-pack.c:1863:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (rev_index) {
        ^
/datasets/git/builtin/index-pack.c:1864:24: note: +2, including nesting penalty of 1, nesting level increased to 2
                opts.flags |= verify ? WRITE_REV_VERIFY : WRITE_REV;
                                     ^
/datasets/git/builtin/index-pack.c:1865:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (index_name)
                ^
/datasets/git/builtin/index-pack.c:1871:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (verify) {
        ^
/datasets/git/builtin/index-pack.c:1872:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!index_name)
                ^
/datasets/git/builtin/index-pack.c:1877:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (strict)
        ^
/datasets/git/builtin/index-pack.c:1880:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (HAVE_THREADS && !nr_threads) {
        ^
/datasets/git/builtin/index-pack.c:1880:19: note: +1
        if (HAVE_THREADS && !nr_threads) {
                         ^
/datasets/git/builtin/index-pack.c:1890:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (nr_threads < 4)
                ^
/datasets/git/builtin/index-pack.c:1892:8: note: +1, nesting level increased to 2
                else if (nr_threads < 6)
                     ^
/datasets/git/builtin/index-pack.c:1894:8: note: +1, nesting level increased to 2
                else if (nr_threads < 40)
                     ^
/datasets/git/builtin/index-pack.c:1896:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/index-pack.c:1903:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (show_stat)
        ^
/datasets/git/builtin/index-pack.c:1907:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (report_end_of_input)
        ^
/datasets/git/builtin/index-pack.c:1913:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (strict)
        ^
/datasets/git/builtin/index-pack.c:1916:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (show_stat)
        ^
/datasets/git/builtin/index-pack.c:1920:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < nr_objects; i++)
        ^
/datasets/git/builtin/index-pack.c:1923:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (rev_index)
        ^
/datasets/git/builtin/index-pack.c:1929:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!verify)
        ^
/datasets/git/builtin/index-pack.c:1935:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/builtin/index-pack.c:1938:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (do_fsck_object && fsck_finish(&fsck_options))
        ^
/datasets/git/builtin/index-pack.c:1938:21: note: +1
        if (do_fsck_object && fsck_finish(&fsck_options))
                           ^
/datasets/git/builtin/index-pack.c:1945:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!pack_name)
        ^
/datasets/git/builtin/index-pack.c:1947:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!index_name)
        ^
/datasets/git/builtin/index-pack.c:1949:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!rev_index_name)
        ^
/datasets/git/builtin/index-pack.c:1955:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (check_self_contained_and_connected && foreign_nr)
        ^
/datasets/git/builtin/index-pack.c:1955:41: note: +1
        if (check_self_contained_and_connected && foreign_nr)
                                               ^
/datasets/git/builtin/index-pack.c:1716:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, fix_thin_pack = 0, verify = 0, stat_only = 0, rev_index;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1716:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, fix_thin_pack = 0, verify = 0, stat_only = 0, rev_index;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/index-pack.c:1716:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/index-pack.c:1716:55: warning: variable 'rev_index' is not initialized [cppcoreguidelines-init-variables]
        int i, fix_thin_pack = 0, verify = 0, stat_only = 0, rev_index;
                                                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/index-pack.c:1717:14: warning: variable 'curr_index' is not initialized [cppcoreguidelines-init-variables]
        const char *curr_index;
                    ^
                               = NULL
/datasets/git/builtin/index-pack.c:1719:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *index_name = NULL, *pack_name = NULL, *rev_index_name = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1724:26: warning: variable 'idx_objects' is not initialized [cppcoreguidelines-init-variables]
        struct pack_idx_entry **idx_objects;
                                ^
                                            = NULL
/datasets/git/builtin/index-pack.c:1739:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc == 2 && !strcmp(argv[1], "-h"))
                                                ^
                                                 {
/datasets/git/builtin/index-pack.c:1747:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prefix && chdir(prefix))
                                    ^
                                     {
/datasets/git/builtin/index-pack.c:1750:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (git_env_bool(GIT_TEST_WRITE_REV_INDEX, 0))
                                                      ^
                                                       {
/datasets/git/builtin/index-pack.c:1752:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/index-pack.c:1753:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                rev_index = !!(opts.flags & (WRITE_REV_VERIFY | WRITE_REV));
                               ^            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1753:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                rev_index = !!(opts.flags & (WRITE_REV_VERIFY | WRITE_REV));
                                             ^
/datasets/git/./pack.h:46:26: note: expanded from macro 'WRITE_REV_VERIFY'
#define WRITE_REV_VERIFY 010
                         ^~~
/datasets/git/builtin/index-pack.c:1755:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 1; i < argc; i++) {
        ^
/datasets/git/builtin/index-pack.c:1781:63: warning: repeated branch in conditional chain [bugprone-branch-clone]
                        } else if (skip_to_optional_arg(arg, "--keep", &keep_msg)) {
                                                                                   ^
/datasets/git/builtin/index-pack.c:1783:5: note: end of the original
                        } else if (skip_to_optional_arg(arg, "--promisor", &promisor_msg)) {
                         ^
/datasets/git/builtin/index-pack.c:1783:71: note: clone 1 starts here
                        } else if (skip_to_optional_arg(arg, "--promisor", &promisor_msg)) {
                                                                                           ^
/datasets/git/builtin/index-pack.c:1786:11: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
                                char *end;
                                      ^
                                          = NULL
/datasets/git/builtin/index-pack.c:1787:18: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                nr_threads = strtoul(arg+10, &end, 0);
                                             ^
/datasets/git/builtin/index-pack.c:1787:30: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                nr_threads = strtoul(arg+10, &end, 0);
                                                         ^
/datasets/git/builtin/index-pack.c:1788:14: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                if (!arg[10] || *end || nr_threads < 0)
                                         ^
/datasets/git/builtin/index-pack.c:1788:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!arg[10] || *end || nr_threads < 0)
                                                                       ^
                                                                        {
/datasets/git/builtin/index-pack.c:1795:25: warning: variable 'hdr' is not initialized [cppcoreguidelines-init-variables]
                                struct pack_header *hdr;
                                                    ^
                                                        = NULL
/datasets/git/builtin/index-pack.c:1796:11: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
                                char *c;
                                      ^
                                        = NULL
/datasets/git/builtin/index-pack.c:1796:11: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/index-pack.c:1801:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (*c != ',')
                                              ^
                                               {
/datasets/git/builtin/index-pack.c:1804:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (*c)
                                       ^
                                        {
/datasets/git/builtin/index-pack.c:1810:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (progress_title || (i+1) >= argc)
                                                                    ^
                                                                     {
/datasets/git/builtin/index-pack.c:1818:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (index_name || (i+1) >= argc)
                                                                ^
                                                                 {
/datasets/git/builtin/index-pack.c:1822:11: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
                                char *c;
                                      ^
                                        = NULL
/datasets/git/builtin/index-pack.c:1822:11: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/index-pack.c:1823:34: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                opts.version = strtoul(arg + 16, &c, 10);
                                                             ^
/datasets/git/builtin/index-pack.c:1823:42: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                opts.version = strtoul(arg + 16, &c, 10);
                                                                     ^
/datasets/git/builtin/index-pack.c:1824:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (opts.version > 2)
                                                     ^
                                                      {
/datasets/git/builtin/index-pack.c:1826:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (*c == ',')
                                              ^
                                               {
/datasets/git/builtin/index-pack.c:1828:34: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                if (*c || opts.off32_limit & 0x80000000)
                                                             ^
/datasets/git/builtin/index-pack.c:1828:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (*c || opts.off32_limit & 0x80000000)
                                                                        ^
                                                                         {
/datasets/git/builtin/index-pack.c:1831:22: warning: narrowing conversion from 'uintmax_t' (aka 'unsigned long') to signed type 'off_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                max_input_size = strtoumax(arg, NULL, 10);
                                                 ^
/datasets/git/builtin/index-pack.c:1831:43: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                max_input_size = strtoumax(arg, NULL, 10);
                                                                      ^
/datasets/git/builtin/index-pack.c:1834:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (hash_algo == GIT_HASH_UNKNOWN)
                                                                  ^
                                                                   {
/datasets/git/builtin/index-pack.c:1841:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        } else
                              ^
                               {
/datasets/git/builtin/index-pack.c:1846:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pack_name)
                              ^
                               {
/datasets/git/builtin/index-pack.c:1851:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!pack_name && !from_stdin)
                                      ^
                                       {
/datasets/git/builtin/index-pack.c:1853:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fix_thin_pack && !from_stdin)
                                         ^
                                          {
/datasets/git/builtin/index-pack.c:1855:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (from_stdin && !startup_info->have_repository)
                                                         ^
                                                          {
/datasets/git/builtin/index-pack.c:1857:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (from_stdin && hash_algo)
                                    ^
                                     {
/datasets/git/builtin/index-pack.c:1859:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!index_name && pack_name)
                                     ^
                                      {
/datasets/git/builtin/index-pack.c:1862:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        opts.flags &= ~(WRITE_REV | WRITE_REV_VERIFY);
        ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1862:16: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
        opts.flags &= ~(WRITE_REV | WRITE_REV_VERIFY);
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1862:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        opts.flags &= ~(WRITE_REV | WRITE_REV_VERIFY);
                        ^
/datasets/git/./pack.h:45:19: note: expanded from macro 'WRITE_REV'
#define WRITE_REV 04
                  ^~
/datasets/git/builtin/index-pack.c:1864:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                opts.flags |= verify ? WRITE_REV_VERIFY : WRITE_REV;
                ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/index-pack.c:1865:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (index_name)
                               ^
                                {
/datasets/git/builtin/index-pack.c:1872:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!index_name)
                                ^
                                 {
/datasets/git/builtin/index-pack.c:1875:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                opts.flags |= WRITE_IDX_VERIFY | WRITE_IDX_STRICT;
                ^
/datasets/git/builtin/index-pack.c:1875:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                opts.flags |= WRITE_IDX_VERIFY | WRITE_IDX_STRICT;
                              ^
/datasets/git/./pack.h:43:26: note: expanded from macro 'WRITE_IDX_VERIFY'
#define WRITE_IDX_VERIFY 01 /* verify only, do not write the idx file */
                         ^~
/datasets/git/builtin/index-pack.c:1877:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strict)
                   ^
                    {
/datasets/git/builtin/index-pack.c:1878:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                opts.flags |= WRITE_IDX_STRICT;
                ^
/datasets/git/builtin/index-pack.c:1890:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (nr_threads < 4)
                                   ^
                                    {
/datasets/git/builtin/index-pack.c:1892:25: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                else if (nr_threads < 6)
                                      ^
/datasets/git/builtin/index-pack.c:1892:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (nr_threads < 6)
                                        ^
                                         {
/datasets/git/builtin/index-pack.c:1894:25: warning: 40 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                else if (nr_threads < 40)
                                      ^
/datasets/git/builtin/index-pack.c:1894:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (nr_threads < 40)
                                         ^
                                          {
/datasets/git/builtin/index-pack.c:1896:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/index-pack.c:1897:17: warning: 20 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        nr_threads = 20; /* hard cap */
                                     ^
/datasets/git/builtin/index-pack.c:1903:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (show_stat)
                      ^
                       {
/datasets/git/builtin/index-pack.c:1907:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (report_end_of_input)
                                ^
                                 {
/datasets/git/builtin/index-pack.c:1913:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strict)
                   ^
                    {
/datasets/git/builtin/index-pack.c:1916:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (show_stat)
                      ^
                       {
/datasets/git/builtin/index-pack.c:1919:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_ARRAY(idx_objects, nr_objects);
        ^
/datasets/git/./git-compat-util.h:1090:53: note: expanded from macro 'ALLOC_ARRAY'
#define ALLOC_ARRAY(x, alloc) (x) = xmalloc(st_mult(sizeof(*(x)), (alloc)))
                                                    ^
/datasets/git/builtin/index-pack.c:1920:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr_objects; i++)
        ^
/datasets/git/builtin/index-pack.c:1920:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'nr_objects' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < nr_objects; i++)
                    ^
/datasets/git/builtin/index-pack.c:1920:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < nr_objects; i++)
                                        ^
                                         {
/datasets/git/builtin/index-pack.c:1923:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (rev_index)
                      ^
                       {
/datasets/git/builtin/index-pack.c:1929:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!verify)
                    ^
                     {
/datasets/git/builtin/index-pack.c:1935:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/index-pack.c:1938:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (do_fsck_object && fsck_finish(&fsck_options))
                                                         ^
                                                          {
/datasets/git/builtin/index-pack.c:1945:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!pack_name)
                       ^
                        {
/datasets/git/builtin/index-pack.c:1947:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!index_name)
                        ^
                         {
/datasets/git/builtin/index-pack.c:1949:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!rev_index_name)
                            ^
                             {
/datasets/git/builtin/index-pack.c:1955:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (check_self_contained_and_connected && foreign_nr)
                                                             ^
                                                              {
/datasets/git/builtin/init-db.c:7:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "builtin.h"
/datasets/git/builtin/init-db.c:26:12: warning: variable 'init_is_bare_repository' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int init_is_bare_repository = 0;
           ^
/datasets/git/builtin/init-db.c:27:12: warning: variable 'init_shared_repository' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int init_shared_repository = -1;
           ^
/datasets/git/builtin/init-db.c:29:13: warning: function 'copy_templates_1' is within a recursive call chain [misc-no-recursion]
static void copy_templates_1(struct strbuf *path, struct strbuf *template_path,
            ^
/datasets/git/builtin/init-db.c:29:13: note: example recursive call chain, starting from function 'copy_templates_1'
/datasets/git/builtin/init-db.c:71:4: note: Frame #1: function 'copy_templates_1' calls function 'copy_templates_1' here:
                        copy_templates_1(path, template_path, subdir);
                        ^
/datasets/git/builtin/init-db.c:71:4: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/builtin/init-db.c:29:13: warning: function 'copy_templates_1' has cognitive complexity of 29 (threshold 25) [readability-function-cognitive-complexity]
static void copy_templates_1(struct strbuf *path, struct strbuf *template_path,
            ^
/datasets/git/builtin/init-db.c:44:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while ((de = readdir(dir)) != NULL) {
        ^
/datasets/git/builtin/init-db.c:51:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (de->d_name[0] == '.')
                ^
/datasets/git/builtin/init-db.c:55:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (lstat(path->buf, &st_git)) {
                ^
/datasets/git/builtin/init-db.c:56:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (errno != ENOENT)
                        ^
/datasets/git/builtin/init-db.c:59:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/init-db.c:62:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (lstat(template_path->buf, &st_template))
                ^
/datasets/git/builtin/init-db.c:65:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (S_ISDIR(st_template.st_mode)) {
                ^
/datasets/git/builtin/init-db.c:67:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!subdir)
                        ^
/datasets/git/builtin/init-db.c:74:8: note: +1, nesting level increased to 2
                else if (exists)
                     ^
/datasets/git/builtin/init-db.c:76:8: note: +1, nesting level increased to 2
                else if (S_ISLNK(st_template.st_mode)) {
                     ^
/datasets/git/builtin/init-db.c:78:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (strbuf_readlink(&lnk, template_path->buf,
                        ^
/datasets/git/builtin/init-db.c:81:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (symlink(lnk.buf, path->buf))
                        ^
/datasets/git/builtin/init-db.c:86:8: note: +1, nesting level increased to 2
                else if (S_ISREG(st_template.st_mode)) {
                     ^
/datasets/git/builtin/init-db.c:87:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (copy_file(path->buf, template_path->buf, st_template.st_mode))
                        ^
/datasets/git/builtin/init-db.c:91:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/init-db.c:34:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct dirent *de;
        ^
/datasets/git/builtin/init-db.c:34:17: warning: variable 'de' is not initialized [cppcoreguidelines-init-variables]
        struct dirent *de;
                       ^
                          = NULL
/datasets/git/builtin/init-db.c:34:17: warning: variable name 'de' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/init-db.c:44:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((de = readdir(dir)) != NULL) {
        ^
/datasets/git/builtin/init-db.c:44:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'de' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((de = readdir(dir)) != NULL) {
               ^
/datasets/git/builtin/init-db.c:44:15: warning: function is not thread safe [concurrency-mt-unsafe]
        while ((de = readdir(dir)) != NULL) {
                     ^
/datasets/git/builtin/init-db.c:45:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                struct stat st_git, st_template;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/init-db.c:51:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (de->d_name[0] == '.')
                                         ^
                                          {
/datasets/git/builtin/init-db.c:56:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (errno != ENOENT)
                                            ^
                                             {
/datasets/git/builtin/init-db.c:59:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/init-db.c:62:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (lstat(template_path->buf, &st_template))
                                                            ^
                                                             {
/datasets/git/builtin/init-db.c:67:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!subdir)
                                    ^
                                     {
/datasets/git/builtin/init-db.c:74:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (exists)
                                ^
                                 {
/datasets/git/builtin/init-db.c:79:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                            st_template.st_size) < 0)
                                                                     ^
                                                                      {
/datasets/git/builtin/init-db.c:81:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (symlink(lnk.buf, path->buf))
                                                        ^
                                                         {
/datasets/git/builtin/init-db.c:87:49: warning: narrowing conversion from '__mode_t' (aka 'unsigned int') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        if (copy_file(path->buf, template_path->buf, st_template.st_mode))
                                                                     ^
/datasets/git/builtin/init-db.c:87:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (copy_file(path->buf, template_path->buf, st_template.st_mode))
                                                                                          ^
                                                                                           {
/datasets/git/builtin/init-db.c:91:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/init-db.c:100:9: warning: variable 'template_len' is not initialized [cppcoreguidelines-init-variables]
        size_t template_len;
               ^
                            = 0
/datasets/git/builtin/init-db.c:103:7: warning: variable 'dir' is not initialized [cppcoreguidelines-init-variables]
        DIR *dir;
             ^
                 = NULL
/datasets/git/builtin/init-db.c:106:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!template_dir)
                          ^
                           {
/datasets/git/builtin/init-db.c:107:18: warning: function is not thread safe [concurrency-mt-unsafe]
                template_dir = getenv(TEMPLATE_DIR_ENVIRONMENT);
                               ^
/datasets/git/builtin/init-db.c:108:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!template_dir)
                          ^
                           {
/datasets/git/builtin/init-db.c:110:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!template_dir)
                          ^
                           {
/datasets/git/builtin/init-db.c:162:7: warning: Null pointer passed to 1st parameter expecting 'nonnull' [clang-analyzer-core.NonNullParamChecker]
        if (!strcmp(work_tree, "/") && !strcmp(git_dir, "/.git"))
             ^
/datasets/git/builtin/init-db.c:562:6: note: Assuming 'real_git_dir' is null
        if (real_git_dir && is_bare_repository_cfg == 1)
            ^~~~~~~~~~~~
/datasets/git/builtin/init-db.c:562:19: note: Left side of '&&' is false
        if (real_git_dir && is_bare_repository_cfg == 1)
                         ^
/datasets/git/builtin/init-db.c:565:6: note: 'real_git_dir' is null
        if (real_git_dir && !is_absolute_path(real_git_dir))
            ^~~~~~~~~~~~
/datasets/git/builtin/init-db.c:565:19: note: Left side of '&&' is false
        if (real_git_dir && !is_absolute_path(real_git_dir))
                         ^
/datasets/git/builtin/init-db.c:568:6: note: Assuming 'template_dir' is null
        if (template_dir && *template_dir && !is_absolute_path(template_dir)) {
            ^~~~~~~~~~~~
/datasets/git/builtin/init-db.c:568:19: note: Left side of '&&' is false
        if (template_dir && *template_dir && !is_absolute_path(template_dir)) {
                         ^
/datasets/git/builtin/init-db.c:573:6: note: Assuming 'argc' is not equal to 1
        if (argc == 1) {
            ^~~~~~~~~
/datasets/git/builtin/init-db.c:573:2: note: Taking false branch
        if (argc == 1) {
        ^
/datasets/git/builtin/init-db.c:605:13: note: Assuming 'argc' is <= 0
        } else if (0 < argc) {
                   ^~~~~~~~
/datasets/git/builtin/init-db.c:605:9: note: Taking false branch
        } else if (0 < argc) {
               ^
/datasets/git/builtin/init-db.c:608:6: note: Assuming 'is_bare_repository_cfg' is not equal to 1
        if (is_bare_repository_cfg == 1) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/init-db.c:608:2: note: Taking false branch
        if (is_bare_repository_cfg == 1) {
        ^
/datasets/git/builtin/init-db.c:614:6: note: Assuming 'object_format' is null
        if (object_format) {
            ^~~~~~~~~~~~~
/datasets/git/builtin/init-db.c:614:2: note: Taking false branch
        if (object_format) {
        ^
/datasets/git/builtin/init-db.c:620:6: note: Assuming the condition is false
        if (init_shared_repository != -1)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/init-db.c:620:2: note: Taking false branch
        if (init_shared_repository != -1)
        ^
/datasets/git/builtin/init-db.c:627:28: note: Assuming the environment variable does not exist
        git_dir = xstrdup_or_null(getenv(GIT_DIR_ENVIRONMENT));
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/init-db.c:628:30: note: Assuming the environment variable does not exist
        work_tree = xstrdup_or_null(getenv(GIT_WORK_TREE_ENVIRONMENT));
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/init-db.c:629:8: note: 'git_dir' is null
        if ((!git_dir || is_bare_repository_cfg == 1) && work_tree)
              ^~~~~~~
/datasets/git/builtin/init-db.c:629:16: note: Left side of '||' is true
        if ((!git_dir || is_bare_repository_cfg == 1) && work_tree)
                      ^
/datasets/git/builtin/init-db.c:629:51: note: 'work_tree' is null
        if ((!git_dir || is_bare_repository_cfg == 1) && work_tree)
                                                         ^~~~~~~~~
/datasets/git/builtin/init-db.c:629:2: note: Taking false branch
        if ((!git_dir || is_bare_repository_cfg == 1) && work_tree)
        ^
/datasets/git/builtin/init-db.c:638:7: note: 'git_dir' is null
        if (!git_dir)
             ^~~~~~~
/datasets/git/builtin/init-db.c:638:2: note: Taking true branch
        if (!git_dir)
        ^
/datasets/git/builtin/init-db.c:646:6: note: 'real_git_dir' is null
        if (real_git_dir) {
            ^~~~~~~~~~~~
/datasets/git/builtin/init-db.c:646:2: note: Taking false branch
        if (real_git_dir) {
        ^
/datasets/git/builtin/init-db.c:665:6: note: Assuming 'is_bare_repository_cfg' is >= 0
        if (is_bare_repository_cfg < 0)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/init-db.c:665:2: note: Taking false branch
        if (is_bare_repository_cfg < 0)
        ^
/datasets/git/builtin/init-db.c:668:6: note: Assuming 'is_bare_repository_cfg' is not equal to 0
        if (!is_bare_repository_cfg) {
            ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/init-db.c:668:2: note: Taking false branch
        if (!is_bare_repository_cfg) {
        ^
/datasets/git/builtin/init-db.c:686:7: note: 'real_git_dir' is null
                if (real_git_dir)
                    ^~~~~~~~~~~~
/datasets/git/builtin/init-db.c:686:3: note: Taking false branch
                if (real_git_dir)
                ^
/datasets/git/builtin/init-db.c:688:7: note: 'work_tree' is null
                if (work_tree)
                    ^~~~~~~~~
/datasets/git/builtin/init-db.c:688:3: note: Taking false branch
                if (work_tree)
                ^
/datasets/git/builtin/init-db.c:692:2: note: Loop condition is false.  Exiting loop
        UNLEAK(real_git_dir);
        ^
/datasets/git/./git-compat-util.h:1544:21: note: expanded from macro 'UNLEAK'
#define UNLEAK(var) do {} while (0)
                    ^
/datasets/git/builtin/init-db.c:693:2: note: Loop condition is false.  Exiting loop
        UNLEAK(git_dir);
        ^
/datasets/git/./git-compat-util.h:1544:21: note: expanded from macro 'UNLEAK'
#define UNLEAK(var) do {} while (0)
                    ^
/datasets/git/builtin/init-db.c:694:2: note: Loop condition is false.  Exiting loop
        UNLEAK(work_tree);
        ^
/datasets/git/./git-compat-util.h:1544:21: note: expanded from macro 'UNLEAK'
#define UNLEAK(var) do {} while (0)
                    ^
/datasets/git/builtin/init-db.c:697:9: note: Calling 'init_db'
        return init_db(git_dir, real_git_dir, template_dir, hash_algo,
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/init-db.c:393:6: note: 'real_git_dir' is null
        if (real_git_dir) {
            ^~~~~~~~~~~~
/datasets/git/builtin/init-db.c:393:2: note: Taking false branch
        if (real_git_dir) {
        ^
/datasets/git/builtin/init-db.c:428:11: note: Calling 'create_default_files'
        reinit = create_default_files(template_dir, original_git_dir,
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/init-db.c:204:2: note: 'work_tree' initialized here
        const char *work_tree = get_git_work_tree();
        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/init-db.c:226:27: note: Assuming 'init_is_bare_repository' is 0
        is_bare_repository_cfg = init_is_bare_repository || !work_tree;
                                 ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/init-db.c:226:27: note: Left side of '||' is false
/datasets/git/builtin/init-db.c:226:54: note: Assuming 'work_tree' is null
        is_bare_repository_cfg = init_is_bare_repository || !work_tree;
                                                            ^~~~~~~~~~
/datasets/git/builtin/init-db.c:227:6: note: Assuming the condition is false
        if (init_shared_repository != -1)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/init-db.c:227:2: note: Taking false branch
        if (init_shared_repository != -1)
        ^
/datasets/git/builtin/init-db.c:234:6: note: Assuming the condition is false
        if (get_shared_repository()) {
            ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/init-db.c:234:2: note: Taking false branch
        if (get_shared_repository()) {
        ^
/datasets/git/builtin/init-db.c:245:6: note: Assuming the condition is false
        if (refs_init_db(&err))
            ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/init-db.c:245:2: note: Taking false branch
        if (refs_init_db(&err))
        ^
/datasets/git/builtin/init-db.c:253:12: note: Assuming the condition is true
        reinit = (!access(path, R_OK)
                  ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/init-db.c:254:5: note: Left side of '||' is true
                  || readlink(path, junk, sizeof(junk)-1) != -1);
                  ^
/datasets/git/builtin/init-db.c:255:7: note: 'reinit' is 1
        if (!reinit) {
             ^~~~~~
/datasets/git/builtin/init-db.c:255:2: note: Taking false branch
        if (!reinit) {
        ^
/datasets/git/builtin/init-db.c:276:6: note: Left side of '&&' is true
        if (TEST_FILEMODE && !lstat(path, &st1)) {
            ^
/datasets/git/builtin/init-db.c:21:23: note: expanded from macro 'TEST_FILEMODE'
#define TEST_FILEMODE 1
                      ^
/datasets/git/builtin/init-db.c:276:23: note: Assuming the condition is false
        if (TEST_FILEMODE && !lstat(path, &st1)) {
                             ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/init-db.c:276:2: note: Taking false branch
        if (TEST_FILEMODE && !lstat(path, &st1)) {
        ^
/datasets/git/builtin/init-db.c:285:34: note: 'filemode' is 1
        git_config_set("core.filemode", filemode ? "true" : "false");
                                        ^~~~~~~~
/datasets/git/builtin/init-db.c:285:34: note: '?' condition is true
/datasets/git/builtin/init-db.c:287:6: note: Assuming the condition is false
        if (is_bare_repository())
            ^~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/init-db.c:287:2: note: Taking false branch
        if (is_bare_repository())
        ^
/datasets/git/builtin/init-db.c:292:7: note: Assuming 'log_all_ref_updates' is not equal to LOG_REFS_UNSET
                if (log_all_ref_updates == LOG_REFS_UNSET)
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/init-db.c:292:3: note: Taking false branch
                if (log_all_ref_updates == LOG_REFS_UNSET)
                ^
/datasets/git/builtin/init-db.c:294:48: note: Passing null pointer value via 2nd parameter 'work_tree'
                if (needs_work_tree_config(original_git_dir, work_tree))
                                                             ^~~~~~~~~
/datasets/git/builtin/init-db.c:294:7: note: Calling 'needs_work_tree_config'
                if (needs_work_tree_config(original_git_dir, work_tree))
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/init-db.c:162:7: note: Null pointer passed to 1st parameter expecting 'nonnull'
        if (!strcmp(work_tree, "/") && !strcmp(git_dir, "/.git"))
             ^      ~~~~~~~~~
/datasets/git/builtin/init-db.c:162:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(work_tree, "/") && !strcmp(git_dir, "/.git"))
                                                                 ^
                                                                  {
/datasets/git/builtin/init-db.c:165:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !strcmp(git_dir, "/.git"))
                                      ^
                                       {
/datasets/git/builtin/init-db.c:170:36: warning: 2 adjacent parameters of 'initialize_repository_version' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
void initialize_repository_version(int hash_algo, int reinit)
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/init-db.c:170:40: note: the first parameter in the range is 'hash_algo'
void initialize_repository_version(int hash_algo, int reinit)
                                       ^~~~~~~~~
/datasets/git/builtin/init-db.c:170:55: note: the last parameter in the range is 'reinit'
void initialize_repository_version(int hash_algo, int reinit)
                                                      ^~~~~~
/datasets/git/builtin/init-db.c:172:27: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        char repo_version_string[10];
                                 ^
/datasets/git/builtin/init-db.c:175:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (hash_algo != GIT_HASH_SHA1)
                                       ^
                                        {
/datasets/git/builtin/init-db.c:183:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (hash_algo != GIT_HASH_SHA1)
                                       ^
                                        {
/datasets/git/builtin/init-db.c:186:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (reinit)
                        ^
                         {
/datasets/git/builtin/init-db.c:190:12: warning: function 'create_default_files' has cognitive complexity of 32 (threshold 25) [readability-function-cognitive-complexity]
static int create_default_files(const char *template_path,
           ^
/datasets/git/builtin/init-db.c:226:51: note: +1
        is_bare_repository_cfg = init_is_bare_repository || !work_tree;
                                                         ^
/datasets/git/builtin/init-db.c:227:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (init_shared_repository != -1)
        ^
/datasets/git/builtin/init-db.c:234:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (get_shared_repository()) {
        ^
/datasets/git/builtin/init-db.c:245:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (refs_init_db(&err))
        ^
/datasets/git/builtin/init-db.c:254:5: note: +1
                  || readlink(path, junk, sizeof(junk)-1) != -1);
                  ^
/datasets/git/builtin/init-db.c:255:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!reinit) {
        ^
/datasets/git/builtin/init-db.c:258:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!initial_branch)
                ^
/datasets/git/builtin/init-db.c:262:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (check_refname_format(ref, 0) < 0)
                ^
/datasets/git/builtin/init-db.c:266:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (create_symref("HEAD", ref, NULL) < 0)
                ^
/datasets/git/builtin/init-db.c:276:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (TEST_FILEMODE && !lstat(path, &st1)) {
        ^
/datasets/git/builtin/init-db.c:276:20: note: +1
        if (TEST_FILEMODE && !lstat(path, &st1)) {
                          ^
/datasets/git/builtin/init-db.c:280:32: note: +1
                                st1.st_mode != st2.st_mode &&
                                                           ^
/datasets/git/builtin/init-db.c:282:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (filemode && !reinit && (st1.st_mode & S_IXUSR))
                ^
/datasets/git/builtin/init-db.c:282:27: note: +1
                if (filemode && !reinit && (st1.st_mode & S_IXUSR))
                                        ^
/datasets/git/builtin/init-db.c:285:43: note: +1, including nesting penalty of 0, nesting level increased to 1
        git_config_set("core.filemode", filemode ? "true" : "false");
                                                 ^
/datasets/git/builtin/init-db.c:287:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (is_bare_repository())
        ^
/datasets/git/builtin/init-db.c:289:2: note: +1, nesting level increased to 1
        else {
        ^
/datasets/git/builtin/init-db.c:292:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (log_all_ref_updates == LOG_REFS_UNSET)
                ^
/datasets/git/builtin/init-db.c:294:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (needs_work_tree_config(original_git_dir, work_tree))
                ^
/datasets/git/builtin/init-db.c:298:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!reinit) {
        ^
/datasets/git/builtin/init-db.c:301:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!close(xmkstemp(path)) &&
                ^
/datasets/git/builtin/init-db.c:304:26: note: +1
                    !lstat(path, &st1) &&
                                       ^
/datasets/git/builtin/init-db.c:307:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/init-db.c:312:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!access(path, F_OK))
                ^
/datasets/git/builtin/init-db.c:190:33: warning: 3 adjacent parameters of 'create_default_files' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int create_default_files(const char *template_path,
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/init-db.c:190:45: note: the first parameter in the range is 'template_path'
static int create_default_files(const char *template_path,
                                            ^~~~~~~~~~~~~
/datasets/git/builtin/init-db.c:192:17: note: the last parameter in the range is 'initial_branch'
                                const char *initial_branch,
                                            ^~~~~~~~~~~~~~
/datasets/git/builtin/init-db.c:198:8: warning: variable 'path' is not initialized [cppcoreguidelines-init-variables]
        char *path;
              ^
                   = NULL
/datasets/git/builtin/init-db.c:200:6: warning: variable 'reinit' is not initialized [cppcoreguidelines-init-variables]
        int reinit;
            ^
                   = 0
/datasets/git/builtin/init-db.c:201:6: warning: variable 'filemode' is not initialized [cppcoreguidelines-init-variables]
        int filemode;
            ^
                     = 0
/datasets/git/builtin/init-db.c:227:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (init_shared_repository != -1)
                                         ^
                                          {
/datasets/git/builtin/init-db.c:245:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (refs_init_db(&err))
                               ^
                                {
/datasets/git/builtin/init-db.c:256:9: warning: variable 'ref' is not initialized [cppcoreguidelines-init-variables]
                char *ref;
                      ^
                          = NULL
/datasets/git/builtin/init-db.c:258:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!initial_branch)
                                    ^
                                     {
/datasets/git/builtin/init-db.c:262:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (check_refname_format(ref, 0) < 0)
                                                     ^
                                                      {
/datasets/git/builtin/init-db.c:266:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (create_symref("HEAD", ref, NULL) < 0)
                                                         ^
                                                          {
/datasets/git/builtin/init-db.c:267:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        exit(1);
                        ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/init-db.c:278:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                filemode = (!chmod(path, st1.st_mode ^ S_IXUSR) &&
                                         ^
/datasets/git/builtin/init-db.c:282:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (filemode && !reinit && (st1.st_mode & S_IXUSR))
                                            ^
/datasets/git/builtin/init-db.c:282:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (filemode && !reinit && (st1.st_mode & S_IXUSR))
                                                                   ^
                                                                    {
/datasets/git/builtin/init-db.c:287:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_bare_repository())
                                 ^
                                  {
/datasets/git/builtin/init-db.c:292:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (log_all_ref_updates == LOG_REFS_UNSET)
                                                          ^
                                                           {
/datasets/git/builtin/init-db.c:294:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (needs_work_tree_config(original_git_dir, work_tree))
                                                                        ^
                                                                         {
/datasets/git/builtin/init-db.c:305:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    S_ISLNK(st1.st_mode))
                                         ^
                                          {
/datasets/git/builtin/init-db.c:307:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/init-db.c:312:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!access(path, F_OK))
                                        ^
                                         {
/datasets/git/builtin/init-db.c:324:9: warning: variable 'baselen' is not initialized [cppcoreguidelines-init-variables]
        size_t baselen;
               ^
                       = 0
/datasets/git/builtin/init-db.c:344:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/builtin/init-db.c:347:15: warning: variable 'src' is not initialized [cppcoreguidelines-init-variables]
                const char *src;
                            ^
                                = NULL
/datasets/git/builtin/init-db.c:349:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (S_ISREG(st.st_mode))
                                        ^
                                         {
/datasets/git/builtin/init-db.c:351:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (S_ISDIR(st.st_mode))
                                             ^
                                              {
/datasets/git/builtin/init-db.c:353:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/init-db.c:356:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (rename(src, git_dir))
                                         ^
                                          {
/datasets/git/builtin/init-db.c:366:20: warning: function is not thread safe [concurrency-mt-unsafe]
        const char *env = getenv(GIT_DEFAULT_HASH_ENVIRONMENT);
                          ^
/datasets/git/builtin/init-db.c:372:88: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_fmt->version >= 0 && hash != GIT_HASH_UNKNOWN && hash != repo_fmt->hash_algo)
                                                                                              ^
                                                                                               {
/datasets/git/builtin/init-db.c:374:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (hash != GIT_HASH_UNKNOWN)
                                          ^
                                           {
/datasets/git/builtin/init-db.c:378:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (env_algo == GIT_HASH_UNKNOWN)
                                                 ^
                                                  {
/datasets/git/builtin/init-db.c:384:5: warning: function 'init_db' has cognitive complexity of 34 (threshold 25) [readability-function-cognitive-complexity]
int init_db(const char *git_dir, const char *real_git_dir,
    ^
/datasets/git/builtin/init-db.c:393:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (real_git_dir) {
        ^
/datasets/git/builtin/init-db.c:396:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!exist_ok && !stat(git_dir, &st))
                ^
/datasets/git/builtin/init-db.c:396:17: note: +1
                if (!exist_ok && !stat(git_dir, &st))
                              ^
/datasets/git/builtin/init-db.c:399:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!exist_ok && !stat(real_git_dir, &st))
                ^
/datasets/git/builtin/init-db.c:399:17: note: +1
                if (!exist_ok && !stat(real_git_dir, &st))
                              ^
/datasets/git/builtin/init-db.c:406:2: note: +1, nesting level increased to 1
        else {
        ^
/datasets/git/builtin/init-db.c:431:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (reinit && initial_branch)
        ^
/datasets/git/builtin/init-db.c:431:13: note: +1
        if (reinit && initial_branch)
                   ^
/datasets/git/builtin/init-db.c:437:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (get_shared_repository()) {
        ^
/datasets/git/builtin/init-db.c:445:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (get_shared_repository() < 0)
                ^
/datasets/git/builtin/init-db.c:448:8: note: +1, nesting level increased to 2
                else if (get_shared_repository() == PERM_GROUP)
                     ^
/datasets/git/builtin/init-db.c:450:8: note: +1, nesting level increased to 2
                else if (get_shared_repository() == PERM_EVERYBODY)
                     ^
/datasets/git/builtin/init-db.c:452:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/init-db.c:458:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!(flags & INIT_DB_QUIET)) {
        ^
/datasets/git/builtin/init-db.c:461:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (reinit)
                ^
/datasets/git/builtin/init-db.c:463:11: note: +3, including nesting penalty of 2, nesting level increased to 3
                               ? _("Reinitialized existing shared Git repository in %s%s\n")
                               ^
/datasets/git/builtin/init-db.c:465:49: note: +3, including nesting penalty of 2, nesting level increased to 3
                               git_dir, len && git_dir[len-1] != '/' ? "/" : "");
                                                                     ^
/datasets/git/builtin/init-db.c:465:24: note: +1
                               git_dir, len && git_dir[len-1] != '/' ? "/" : "");
                                            ^
/datasets/git/builtin/init-db.c:466:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/init-db.c:468:11: note: +3, including nesting penalty of 2, nesting level increased to 3
                               ? _("Initialized empty shared Git repository in %s%s\n")
                               ^
/datasets/git/builtin/init-db.c:470:49: note: +3, including nesting penalty of 2, nesting level increased to 3
                               git_dir, len && git_dir[len-1] != '/' ? "/" : "");
                                                                     ^
/datasets/git/builtin/init-db.c:470:24: note: +1
                               git_dir, len && git_dir[len-1] != '/' ? "/" : "");
                                            ^
/datasets/git/builtin/init-db.c:384:34: warning: 2 adjacent parameters of 'init_db' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
int init_db(const char *git_dir, const char *real_git_dir,
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/init-db.c:384:46: note: the first parameter in the range is 'real_git_dir'
int init_db(const char *git_dir, const char *real_git_dir,
                                             ^~~~~~~~~~~~
/datasets/git/builtin/init-db.c:385:18: note: the last parameter in the range is 'template_dir'
            const char *template_dir, int hash, const char *initial_branch,
                        ^~~~~~~~~~~~
/datasets/git/builtin/init-db.c:388:6: warning: variable 'reinit' is not initialized [cppcoreguidelines-init-variables]
        int reinit;
            ^
                   = 0
/datasets/git/builtin/init-db.c:389:17: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int exist_ok = flags & INIT_DB_EXIST_OK;
                       ^
/datasets/git/builtin/init-db.c:389:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
/datasets/git/builtin/init-db.c:394:15: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                struct stat st;
                            ^
/datasets/git/builtin/init-db.c:396:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!exist_ok && !stat(git_dir, &st))
                                                     ^
                                                      {
/datasets/git/builtin/init-db.c:399:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!exist_ok && !stat(real_git_dir, &st))
                                                          ^
                                                           {
/datasets/git/builtin/init-db.c:430:11: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                      flags & INIT_DB_QUIET);
                                      ^
/datasets/git/builtin/init-db.c:430:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
/datasets/git/builtin/init-db.c:431:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (reinit && initial_branch)
                                     ^
                                      {
/datasets/git/builtin/init-db.c:438:12: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                char buf[10];
                         ^
/datasets/git/builtin/init-db.c:445:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (get_shared_repository() < 0)
                                                ^
                                                 {
/datasets/git/builtin/init-db.c:448:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (get_shared_repository() == PERM_GROUP)
                                                               ^
                                                                {
/datasets/git/builtin/init-db.c:450:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (get_shared_repository() == PERM_EVERYBODY)
                                                                   ^
                                                                    {
/datasets/git/builtin/init-db.c:452:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/init-db.c:458:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & INIT_DB_QUIET)) {
              ^
/datasets/git/builtin/init-db.c:459:13: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int len = strlen(git_dir);
                          ^
/datasets/git/builtin/init-db.c:461:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (reinit)
                           ^
                            {
/datasets/git/builtin/init-db.c:466:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/init-db.c:479:14: warning: variable 'slash' is not initialized [cppcoreguidelines-init-variables]
        const char *slash;
                    ^
                          = NULL
/datasets/git/builtin/init-db.c:480:8: warning: variable 'cwd' is not initialized [cppcoreguidelines-init-variables]
        char *cwd;
              ^
                  = NULL
/datasets/git/builtin/init-db.c:481:6: warning: variable 'cwd_is_git_dir' is not initialized [cppcoreguidelines-init-variables]
        int cwd_is_git_dir;
            ^
                           = 0
/datasets/git/builtin/init-db.c:487:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(".", git_dir))
                                  ^
                                   {
/datasets/git/builtin/init-db.c:492:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cwd_is_git_dir)
                           ^
                            {
/datasets/git/builtin/init-db.c:497:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(git_dir, ".git"))
                                     ^
                                      {
/datasets/git/builtin/init-db.c:500:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (slash && !strcmp(slash, "/.git"))
                                             ^
                                              {
/datasets/git/builtin/init-db.c:512:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/init-db.c:531:5: warning: function 'cmd_init_db' has cognitive complexity of 59 (threshold 25) [readability-function-cognitive-complexity]
int cmd_init_db(int argc, const char **argv, const char *prefix)
    ^
/datasets/git/builtin/init-db.c:562:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (real_git_dir && is_bare_repository_cfg == 1)
        ^
/datasets/git/builtin/init-db.c:562:19: note: +1
        if (real_git_dir && is_bare_repository_cfg == 1)
                         ^
/datasets/git/builtin/init-db.c:565:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (real_git_dir && !is_absolute_path(real_git_dir))
        ^
/datasets/git/builtin/init-db.c:565:19: note: +1
        if (real_git_dir && !is_absolute_path(real_git_dir))
                         ^
/datasets/git/builtin/init-db.c:568:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (template_dir && *template_dir && !is_absolute_path(template_dir)) {
        ^
/datasets/git/builtin/init-db.c:568:36: note: +1
        if (template_dir && *template_dir && !is_absolute_path(template_dir)) {
                                          ^
/datasets/git/builtin/init-db.c:570:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                UNLEAK(template_dir);
                ^
/datasets/git/./git-compat-util.h:1544:21: note: expanded from macro 'UNLEAK'
#define UNLEAK(var) do {} while (0)
                    ^
/datasets/git/builtin/init-db.c:573:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (argc == 1) {
        ^
/datasets/git/builtin/init-db.c:576:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (chdir(argv[0]) < 0) {
                ^
/datasets/git/builtin/init-db.c:577:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!mkdir_tried) {
                        ^
/datasets/git/builtin/init-db.c:586:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                switch (safe_create_leading_directories_const(argv[0])) {
                                ^
/datasets/git/builtin/init-db.c:598:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (mkdir(argv[0], 0777) < 0)
                                ^
/datasets/git/builtin/init-db.c:601:5: note: +1
                                goto retry;
                                ^
/datasets/git/builtin/init-db.c:605:9: note: +1, nesting level increased to 1
        } else if (0 < argc) {
               ^
/datasets/git/builtin/init-db.c:608:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (is_bare_repository_cfg == 1) {
        ^
/datasets/git/builtin/init-db.c:614:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (object_format) {
        ^
/datasets/git/builtin/init-db.c:616:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (hash_algo == GIT_HASH_UNKNOWN)
                ^
/datasets/git/builtin/init-db.c:620:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (init_shared_repository != -1)
        ^
/datasets/git/builtin/init-db.c:629:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((!git_dir || is_bare_repository_cfg == 1) && work_tree)
        ^
/datasets/git/builtin/init-db.c:629:48: note: +1
        if ((!git_dir || is_bare_repository_cfg == 1) && work_tree)
                                                      ^
/datasets/git/builtin/init-db.c:629:16: note: +1
        if ((!git_dir || is_bare_repository_cfg == 1) && work_tree)
                      ^
/datasets/git/builtin/init-db.c:638:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!git_dir)
        ^
/datasets/git/builtin/init-db.c:646:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (real_git_dir) {
        ^
/datasets/git/builtin/init-db.c:652:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (p && get_common_dir(&sb, p)) {
                ^
/datasets/git/builtin/init-db.c:652:9: note: +1
                if (p && get_common_dir(&sb, p)) {
                      ^
/datasets/git/builtin/init-db.c:657:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (chdir(mainwt.buf) < 0)
                        ^
/datasets/git/builtin/init-db.c:665:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (is_bare_repository_cfg < 0)
        ^
/datasets/git/builtin/init-db.c:668:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!is_bare_repository_cfg) {
        ^
/datasets/git/builtin/init-db.c:670:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (git_dir_parent) {
                ^
/datasets/git/builtin/init-db.c:675:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!git_work_tree_cfg)
                ^
/datasets/git/builtin/init-db.c:677:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (work_tree)
                ^
/datasets/git/builtin/init-db.c:679:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/init-db.c:681:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (access(get_git_work_tree(), X_OK))
                ^
/datasets/git/builtin/init-db.c:685:2: note: +1, nesting level increased to 1
        else {
        ^
/datasets/git/builtin/init-db.c:686:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (real_git_dir)
                ^
/datasets/git/builtin/init-db.c:688:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (work_tree)
                ^
/datasets/git/builtin/init-db.c:692:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        UNLEAK(real_git_dir);
        ^
/datasets/git/./git-compat-util.h:1544:21: note: expanded from macro 'UNLEAK'
#define UNLEAK(var) do {} while (0)
                    ^
/datasets/git/builtin/init-db.c:693:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        UNLEAK(git_dir);
        ^
/datasets/git/./git-compat-util.h:1544:21: note: expanded from macro 'UNLEAK'
#define UNLEAK(var) do {} while (0)
                    ^
/datasets/git/builtin/init-db.c:694:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        UNLEAK(work_tree);
        ^
/datasets/git/./git-compat-util.h:1544:21: note: expanded from macro 'UNLEAK'
#define UNLEAK(var) do {} while (0)
                    ^
/datasets/git/builtin/init-db.c:533:14: warning: variable 'git_dir' is not initialized [cppcoreguidelines-init-variables]
        const char *git_dir;
                    ^
                            = NULL
/datasets/git/builtin/init-db.c:535:14: warning: variable 'work_tree' is not initialized [cppcoreguidelines-init-variables]
        const char *work_tree;
                    ^
                              = NULL
/datasets/git/builtin/init-db.c:544:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT(0, "bare", &is_bare_repository_cfg,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/init-db.c:549:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        PARSE_OPT_OPTARG | PARSE_OPT_NONEG, shared_callback, 0},
                        ^~~~~~~~~~~~~~~~
/datasets/git/builtin/init-db.c:550:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT('q', "quiet", &flags, N_("be quiet"), INIT_DB_QUIET),
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/init-db.c:562:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (real_git_dir && is_bare_repository_cfg == 1)
                                                        ^
                                                         {
/datasets/git/builtin/init-db.c:565:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (real_git_dir && !is_absolute_path(real_git_dir))
                                                            ^
                                                             {
/datasets/git/builtin/init-db.c:570:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                UNLEAK(template_dir);
                ^
/datasets/git/./git-compat-util.h:1544:21: note: expanded from macro 'UNLEAK'
#define UNLEAK(var) do {} while (0)
                    ^
/datasets/git/builtin/init-db.c:578:9: warning: variable 'saved' is not initialized [cppcoreguidelines-init-variables]
                                int saved;
                                    ^
                                          = 0
/datasets/git/builtin/init-db.c:598:24: warning: 0777 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                if (mkdir(argv[0], 0777) < 0)
                                                   ^
/datasets/git/builtin/init-db.c:598:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (mkdir(argv[0], 0777) < 0)
                                                             ^
                                                              {
/datasets/git/builtin/init-db.c:610:3: warning: function is not thread safe [concurrency-mt-unsafe]
                setenv(GIT_DIR_ENVIRONMENT, cwd, argc > 0);
                ^
/datasets/git/builtin/init-db.c:616:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (hash_algo == GIT_HASH_UNKNOWN)
                                                  ^
                                                   {
/datasets/git/builtin/init-db.c:620:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (init_shared_repository != -1)
                                         ^
                                          {
/datasets/git/builtin/init-db.c:627:28: warning: function is not thread safe [concurrency-mt-unsafe]
        git_dir = xstrdup_or_null(getenv(GIT_DIR_ENVIRONMENT));
                                  ^
/datasets/git/builtin/init-db.c:628:30: warning: function is not thread safe [concurrency-mt-unsafe]
        work_tree = xstrdup_or_null(getenv(GIT_WORK_TREE_ENVIRONMENT));
                                    ^
/datasets/git/builtin/init-db.c:629:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((!git_dir || is_bare_repository_cfg == 1) && work_tree)
                                                                   ^
                                                                    {
/datasets/git/builtin/init-db.c:638:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!git_dir)
                     ^
                      {
/datasets/git/builtin/init-db.c:647:7: warning: variable 'err' is not initialized [cppcoreguidelines-init-variables]
                int err;
                    ^
                        = 0
/datasets/git/builtin/init-db.c:648:15: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                const char *p;
                            ^
                              = NULL
/datasets/git/builtin/init-db.c:648:15: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/init-db.c:649:17: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                struct strbuf sb = STRBUF_INIT;
                              ^
/datasets/git/builtin/init-db.c:657:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (chdir(mainwt.buf) < 0)
                                                  ^
                                                   {
/datasets/git/builtin/init-db.c:665:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_bare_repository_cfg < 0)
                                       ^
                                        {
/datasets/git/builtin/init-db.c:675:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!git_work_tree_cfg)
                                       ^
                                        {
/datasets/git/builtin/init-db.c:677:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (work_tree)
                              ^
                               {
/datasets/git/builtin/init-db.c:679:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/init-db.c:681:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (access(get_git_work_tree(), X_OK))
                                                      ^
                                                       {
/datasets/git/builtin/init-db.c:686:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (real_git_dir)
                                 ^
                                  {
/datasets/git/builtin/init-db.c:688:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (work_tree)
                              ^
                               {
/datasets/git/builtin/init-db.c:692:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        UNLEAK(real_git_dir);
        ^
/datasets/git/./git-compat-util.h:1544:21: note: expanded from macro 'UNLEAK'
#define UNLEAK(var) do {} while (0)
                    ^
/datasets/git/builtin/init-db.c:693:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        UNLEAK(git_dir);
        ^
/datasets/git/./git-compat-util.h:1544:21: note: expanded from macro 'UNLEAK'
#define UNLEAK(var) do {} while (0)
                    ^
/datasets/git/builtin/init-db.c:694:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        UNLEAK(work_tree);
        ^
/datasets/git/./git-compat-util.h:1544:21: note: expanded from macro 'UNLEAK'
#define UNLEAK(var) do {} while (0)
                    ^
/datasets/git/builtin/init-db.c:696:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        flags |= INIT_DB_EXIST_OK;
        ^
/datasets/git/builtin/interpret-trailers.c:10:1: warning: #includes are not sorted properly [llvm-include-order]
#include "parse-options.h"
^        ~~~~~~~~~~~~~~~~~
         "config.h"
/datasets/git/builtin/interpret-trailers.c:22:27: warning: variable 'where' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static enum trailer_where where;
                          ^
/datasets/git/builtin/interpret-trailers.c:23:31: warning: variable 'if_exists' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static enum trailer_if_exists if_exists;
                              ^
/datasets/git/builtin/interpret-trailers.c:24:32: warning: variable 'if_missing' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static enum trailer_if_missing if_missing;
                               ^
/datasets/git/builtin/interpret-trailers.c:26:52: warning: parameter 'opt' is unused [misc-unused-parameters]
static int option_parse_where(const struct option *opt,
                                                   ^
/datasets/git/builtin/interpret-trailers.c:27:31: warning: parameter 'unset' is unused [misc-unused-parameters]
                              const char *arg, int unset)
                                                   ^
/datasets/git/builtin/interpret-trailers.c:32:56: warning: parameter 'opt' is unused [misc-unused-parameters]
static int option_parse_if_exists(const struct option *opt,
                                                       ^
/datasets/git/builtin/interpret-trailers.c:33:28: warning: parameter 'unset' is unused [misc-unused-parameters]
                                  const char *arg, int unset)
                                                       ^
/datasets/git/builtin/interpret-trailers.c:38:57: warning: parameter 'opt' is unused [misc-unused-parameters]
static int option_parse_if_missing(const struct option *opt,
                                                        ^
/datasets/git/builtin/interpret-trailers.c:39:29: warning: parameter 'unset' is unused [misc-unused-parameters]
                                   const char *arg, int unset)
                                                        ^
/datasets/git/builtin/interpret-trailers.c:46:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct list_head *pos, *tmp;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/interpret-trailers.c:46:2: note: inferred assignment of ID-dependent value from ID-dependent member next [altera-id-dependent-backward-branch]
/datasets/git/builtin/interpret-trailers.c:46:20: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        struct list_head *pos, *tmp;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/interpret-trailers.c:46:26: warning: variable 'tmp' is not initialized [cppcoreguidelines-init-variables]
        struct list_head *pos, *tmp;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/interpret-trailers.c:47:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct new_trailer_item *item;
                                 ^
                                      = NULL
/datasets/git/builtin/interpret-trailers.c:49:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        list_for_each_safe(pos, tmp, trailers) {
        ^
./list.h:137:2: note: expanded from macro 'list_for_each_safe'
        for (pos = (head)->next, p = pos->next; \
        ^
/datasets/git/builtin/interpret-trailers.c:49:21: warning: backward branch (for loop) is ID-dependent due to variable reference to 'pos' and may cause performance degradation [altera-id-dependent-backward-branch]
        list_for_each_safe(pos, tmp, trailers) {
                           ^
/datasets/git/builtin/interpret-trailers.c:60:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct new_trailer_item *item;
                                 ^
                                      = NULL
/datasets/git/builtin/interpret-trailers.c:67:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!arg)
                 ^
                  {
/datasets/git/builtin/interpret-trailers.c:82:34: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
        struct process_trailer_options *v = opt->value;
                                        ^
/datasets/git/builtin/interpret-trailers.c:86:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/interpret-trailers.c:87:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_ARG(arg);
        ^
/datasets/git/./parse-options.h:288:29: note: expanded from macro 'BUG_ON_OPT_ARG'
#define BUG_ON_OPT_ARG(arg) do { \
                            ^
/datasets/git/builtin/interpret-trailers.c:97:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "in-place", &opts.in_place, N_("edit files in place")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/interpret-trailers.c:98:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "trim-empty", &opts.trim_empty, N_("trim empty trailers")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/interpret-trailers.c:107:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "only-trailers", &opts.only_trailers, N_("output only the trailers")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/interpret-trailers.c:108:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "only-input", &opts.only_input, N_("do not apply config rules")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/interpret-trailers.c:109:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "unfold", &opts.unfold, N_("join whitespace-continued values")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/interpret-trailers.c:111:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        PARSE_OPT_NOARG | PARSE_OPT_NONEG, parse_opt_parse),
                        ^
/datasets/git/./parse-options.h:169:47: note: expanded from macro 'OPT_CALLBACK_F'
        { OPTION_CALLBACK, (s), (l), (v), (a), (h), (f), (cb) }
                                                     ^
/datasets/git/builtin/interpret-trailers.c:112:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "no-divider", &opts.no_divider, N_("do not treat --- specially")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/interpret-trailers.c:123:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts.only_input && !list_empty(&trailers))
                                                      ^
                                                       {
/datasets/git/builtin/interpret-trailers.c:130:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/builtin/interpret-trailers.c:130:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/interpret-trailers.c:131:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < argc; i++)
                ^
/datasets/git/builtin/interpret-trailers.c:131:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'argc' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < argc; i++)
                            ^
/datasets/git/builtin/interpret-trailers.c:131:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < argc; i++)
                                          ^
                                           {
/datasets/git/builtin/interpret-trailers.c:134:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opts.in_place)
                                  ^
                                   {
/datasets/git/builtin/log.c:8:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "branch.h"
/datasets/git/builtin/log.c:39:1: warning: replace macro with enum [modernize-macro-to-enum]
#define MAIL_DEFAULT_WRAP 72
^~~~~~~~
                          = ,
/datasets/git/builtin/log.c:39:9: warning: macro 'MAIL_DEFAULT_WRAP' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define MAIL_DEFAULT_WRAP 72
        ^
/datasets/git/builtin/log.c:40:9: warning: macro 'COVER_FROM_AUTO_MAX_SUBJECT_LEN' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define COVER_FROM_AUTO_MAX_SUBJECT_LEN 100
        ^
/datasets/git/builtin/log.c:41:9: warning: macro 'FORMAT_PATCH_NAME_MAX_DEFAULT' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define FORMAT_PATCH_NAME_MAX_DEFAULT 64
        ^
/datasets/git/builtin/log.c:44:20: warning: variable 'default_date_mode' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *default_date_mode = NULL;
                   ^
/datasets/git/builtin/log.c:46:12: warning: variable 'default_abbrev_commit' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int default_abbrev_commit;
           ^
/datasets/git/builtin/log.c:47:12: warning: variable 'default_show_root' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int default_show_root = 1;
           ^
/datasets/git/builtin/log.c:48:12: warning: variable 'default_follow' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int default_follow;
           ^
/datasets/git/builtin/log.c:49:12: warning: variable 'default_show_signature' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int default_show_signature;
           ^
/datasets/git/builtin/log.c:50:12: warning: variable 'default_encode_email_headers' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int default_encode_email_headers = 1;
           ^
/datasets/git/builtin/log.c:51:12: warning: variable 'decoration_style' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int decoration_style;
           ^
/datasets/git/builtin/log.c:52:12: warning: variable 'decoration_given' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int decoration_given;
           ^
/datasets/git/builtin/log.c:53:12: warning: variable 'use_mailmap_config' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int use_mailmap_config = 1;
           ^
/datasets/git/builtin/log.c:54:21: warning: variable 'force_in_body_from' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned int force_in_body_from;
                    ^
/datasets/git/builtin/log.c:55:20: warning: variable 'fmt_patch_subject_prefix' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *fmt_patch_subject_prefix = "PATCH";
                   ^
/datasets/git/builtin/log.c:56:12: warning: variable 'fmt_patch_name_max' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int fmt_patch_name_max = FORMAT_PATCH_NAME_MAX_DEFAULT;
           ^
/datasets/git/builtin/log.c:57:20: warning: variable 'fmt_pretty' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *fmt_pretty;
                   ^
/datasets/git/builtin/log.c:65:8: warning: accessing fields in struct 'line_opt_callback_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct line_opt_callback_data {
       ^
/datasets/git/builtin/log.c:65:8: note: use "__attribute__((aligned(64)))" to align struct 'line_opt_callback_data' to 64 bytes
/datasets/git/builtin/log.c:91:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(value, "full"))
                                   ^
                                    {
/datasets/git/builtin/log.c:93:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (!strcmp(value, "short"))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:93:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(value, "short"))
                                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/log.c:95:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(value, "auto"))
                                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/log.c:104:12: warning: variable 'use_default_decoration_filter' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int use_default_decoration_filter = 1;
           ^
/datasets/git/builtin/log.c:105:27: warning: variable 'decorate_refs_exclude' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct string_list decorate_refs_exclude = STRING_LIST_INIT_NODUP;
                          ^
/datasets/git/builtin/log.c:106:27: warning: variable 'decorate_refs_exclude_config' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct string_list decorate_refs_exclude_config = STRING_LIST_INIT_NODUP;
                          ^
/datasets/git/builtin/log.c:107:27: warning: variable 'decorate_refs_include' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct string_list decorate_refs_include = STRING_LIST_INIT_NODUP;
                          ^
/datasets/git/builtin/log.c:109:60: warning: parameter 'opt' is unused [misc-unused-parameters]
static int clear_decorations_callback(const struct option *opt,
                                                           ^
/datasets/git/builtin/log.c:110:22: warning: parameter 'arg' is unused [misc-unused-parameters]
                                            const char *arg, int unset)
                                                        ^
/datasets/git/builtin/log.c:110:31: warning: parameter 'unset' is unused [misc-unused-parameters]
                                            const char *arg, int unset)
                                                                 ^
/datasets/git/builtin/log.c:118:51: warning: parameter 'opt' is unused [misc-unused-parameters]
static int decorate_callback(const struct option *opt, const char *arg, int unset)
                                                  ^
/datasets/git/builtin/log.c:120:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unset)
                  ^
                   {
/datasets/git/builtin/log.c:122:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (arg)
                     ^
                      {
/datasets/git/builtin/log.c:124:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/log.c:127:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (decoration_style < 0)
                                 ^
                                  {
/datasets/git/builtin/log.c:139:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/log.c:141:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!arg)
                 ^
                  {
/datasets/git/builtin/log.c:159:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fmt_pretty)
                       ^
                        {
/datasets/git/builtin/log.c:161:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (default_follow)
                           ^
                            {
/datasets/git/builtin/log.c:175:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (default_date_mode)
                              ^
                               {
/datasets/git/builtin/log.c:181:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/log.c:181:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/log.c:188:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                struct string_list_item *item;
                ^
/datasets/git/builtin/log.c:188:28: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
                struct string_list_item *item;
                                         ^
                                              = NULL
/datasets/git/builtin/log.c:189:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for_each_string_list_item(item, config_exclude)
                ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/log.c:189:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
                for_each_string_list_item(item, config_exclude)
                                          ^
/datasets/git/builtin/log.c:201:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !strcmp("all", value))
                                  ^
                                   {
/datasets/git/builtin/log.c:208:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            decoration_filter->exclude_ref_config_pattern->nr)
                                                              ^
                                                               {
/datasets/git/builtin/log.c:215:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ARRAY_SIZE(ref_namespace); i++) {
        ^
/datasets/git/builtin/log.c:216:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ref_namespace[i].decoration)
                                                 ^
                                                  {
/datasets/git/builtin/log.c:223:13: warning: function 'cmd_log_init_finish' has cognitive complexity of 28 (threshold 25) [readability-function-cognitive-complexity]
static void cmd_log_init_finish(int argc, const char **argv, const char *prefix,
            ^
/datasets/git/builtin/log.c:266:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (quiet)
        ^
/datasets/git/builtin/log.c:271:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (argc > 1)
        ^
/datasets/git/builtin/log.c:274:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (rev->line_level_traverse && rev->prune_data.nr)
        ^
/datasets/git/builtin/log.c:274:31: note: +1
        if (rev->line_level_traverse && rev->prune_data.nr)
                                     ^
/datasets/git/builtin/log.c:280:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!rev->show_notes_given && (!rev->pretty_given || w.notes))
        ^
/datasets/git/builtin/log.c:280:29: note: +1
        if (!rev->show_notes_given && (!rev->pretty_given || w.notes))
                                   ^
/datasets/git/builtin/log.c:280:52: note: +1
        if (!rev->show_notes_given && (!rev->pretty_given || w.notes))
                                                          ^
/datasets/git/builtin/log.c:282:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (rev->show_notes)
        ^
/datasets/git/builtin/log.c:285:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((rev->diffopt.pickaxe_opts & DIFF_PICKAXE_KINDS_MASK) ||
        ^
/datasets/git/builtin/log.c:286:26: note: +1
            rev->diffopt.filter || rev->diffopt.flags.follow_renames)
                                ^
/datasets/git/builtin/log.c:289:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (source || w.source) {
        ^
/datasets/git/builtin/log.c:289:13: note: +1
        if (source || w.source) {
                   ^
/datasets/git/builtin/log.c:294:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mailmap) {
        ^
/datasets/git/builtin/log.c:300:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (rev->pretty_given && rev->commit_format == CMIT_FMT_RAW) {
        ^
/datasets/git/builtin/log.c:300:24: note: +1
        if (rev->pretty_given && rev->commit_format == CMIT_FMT_RAW) {
                              ^
/datasets/git/builtin/log.c:305:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!decoration_given)
                ^
/datasets/git/builtin/log.c:307:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!rev->abbrev_commit_given)
                ^
/datasets/git/builtin/log.c:311:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (rev->commit_format == CMIT_FMT_USERFORMAT) {
        ^
/datasets/git/builtin/log.c:312:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!w.decorate) {
                ^
/datasets/git/builtin/log.c:318:10: note: +1, nesting level increased to 2
                } else if (!decoration_style) {
                       ^
/datasets/git/builtin/log.c:328:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (decoration_style || rev->simplify_by_decoration) {
        ^
/datasets/git/builtin/log.c:328:23: note: +1
        if (decoration_style || rev->simplify_by_decoration) {
                             ^
/datasets/git/builtin/log.c:331:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (decoration_style)
                ^
/datasets/git/builtin/log.c:337:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (rev->line_level_traverse)
        ^
/datasets/git/builtin/log.c:226:25: warning: variable name 'w' is too short, expected at least 3 characters [readability-identifier-length]
        struct userformat_want w;
                               ^
/datasets/git/builtin/log.c:227:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int quiet = 0, source = 0, mailmap;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:227:29: warning: variable 'mailmap' is not initialized [cppcoreguidelines-init-variables]
        int quiet = 0, source = 0, mailmap;
                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/log.c:237:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__QUIET(&quiet, N_("suppress diff output")),
                ^
/datasets/git/./parse-options.h:360:31: note: expanded from macro 'OPT__QUIET'
#define OPT__QUIET(var, h)    OPT_COUNTUP('q', "quiet",   (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:238:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "source", &source, N_("show source")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:239:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "use-mailmap", &mailmap, N_("use mail map file")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:243:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                               PARSE_OPT_NOARG | PARSE_OPT_NONEG,
                               ^
/datasets/git/./parse-options.h:169:47: note: expanded from macro 'OPT_CALLBACK_F'
        { OPTION_CALLBACK, (s), (l), (v), (a), (h), (f), (cb) }
                                                     ^
/datasets/git/builtin/log.c:263:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                             PARSE_OPT_KEEP_ARGV0 | PARSE_OPT_KEEP_UNKNOWN_OPT |
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:266:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (quiet)
                  ^
                   {
/datasets/git/builtin/log.c:267:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                rev->diffopt.output_format |= DIFF_FORMAT_NO_OUTPUT;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:271:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc > 1)
                     ^
                      {
/datasets/git/builtin/log.c:274:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (rev->line_level_traverse && rev->prune_data.nr)
                                                           ^
                                                            {
/datasets/git/builtin/log.c:277:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&w, 0, sizeof(w));
        ^~~~~~
/datasets/git/builtin/log.c:277:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&w, 0, sizeof(w));
        ^~~~~~
/datasets/git/builtin/log.c:280:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!rev->show_notes_given && (!rev->pretty_given || w.notes))
                                                                      ^
                                                                       {
/datasets/git/builtin/log.c:282:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (rev->show_notes)
                            ^
                             {
/datasets/git/builtin/log.c:285:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((rev->diffopt.pickaxe_opts & DIFF_PICKAXE_KINDS_MASK) ||
             ^
/datasets/git/builtin/log.c:285:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((rev->diffopt.pickaxe_opts & DIFF_PICKAXE_KINDS_MASK) ||
                                         ^
/datasets/git/./diff.h:556:34: note: expanded from macro 'DIFF_PICKAXE_KINDS_MASK'
#define DIFF_PICKAXE_KINDS_MASK (DIFF_PICKAXE_KIND_S | \
                                 ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./diff.h:552:29: note: expanded from macro 'DIFF_PICKAXE_KIND_S'
#define DIFF_PICKAXE_KIND_S     4 /* traditional plumbing counter */
                                ^
/datasets/git/builtin/log.c:286:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            rev->diffopt.filter || rev->diffopt.flags.follow_renames)
                                                                     ^
                                                                      {
/datasets/git/builtin/log.c:305:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!decoration_given)
                                      ^
                                       {
/datasets/git/builtin/log.c:307:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!rev->abbrev_commit_given)
                                              ^
                                               {
/datasets/git/builtin/log.c:331:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (decoration_style)
                                     ^
                                      {
/datasets/git/builtin/log.c:337:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (rev->line_level_traverse)
                                     ^
                                      {
/datasets/git/builtin/log.c:362:6: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
        int n = 0;
            ^
/datasets/git/builtin/log.c:364:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (list) {
        ^
/datasets/git/builtin/log.c:364:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'list' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (list) {
               ^
/datasets/git/builtin/log.c:368:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(flags & (TREESAME | UNINTERESTING)))
                               ^
/datasets/git/./revision.h:29:19: note: expanded from macro 'TREESAME'
#define TREESAME        (1u<<2)
                         ^   ~
/datasets/git/builtin/log.c:368:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(flags & (TREESAME | UNINTERESTING)))
                                          ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/builtin/log.c:368:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(flags & (TREESAME | UNINTERESTING)))
                                                          ^
                                                           {
/datasets/git/builtin/log.c:374:76: warning: parameter name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
static void show_early_header(struct rev_info *rev, const char *stage, int nr)
                                                                           ^
/datasets/git/builtin/log.c:378:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (rev->commit_format != CMIT_FMT_ONELINE)
                                                           ^
                                                            {
/datasets/git/builtin/log.c:381:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(rev->diffopt.file, _("Final output: %d %s\n"), nr, stage);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:381:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/log.c:384:25: warning: variable 'early_output_timer' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct itimerval early_output_timer;
                        ^
/datasets/git/builtin/log.c:386:51: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
static void log_show_early(struct rev_info *revs, struct commit_list *list)
                                                  ^
/datasets/git/builtin/log.c:388:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = revs->early_output;
            ^
/datasets/git/builtin/log.c:388:10: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int i = revs->early_output;
                ^
/datasets/git/builtin/log.c:394:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (list && i) {
        ^
/datasets/git/builtin/log.c:394:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'list' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (list && i) {
               ^
/datasets/git/builtin/log.c:399:9: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
                                int n = estimate_commit_count(list);
                                    ^
/datasets/git/builtin/log.c:434:40: warning: 500000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        early_output_timer.it_value.tv_usec = 500000;
                                              ^
/datasets/git/builtin/log.c:438:30: warning: parameter 'signal' is unused [misc-unused-parameters]
static void early_output(int signal)
                             ^
/datasets/git/builtin/log.c:445:19: warning: variable name 'sa' is too short, expected at least 3 characters [readability-identifier-length]
        struct sigaction sa;
                         ^
/datasets/git/builtin/log.c:454:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&sa, 0, sizeof(sa));
        ^~~~~~
/datasets/git/builtin/log.c:454:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&sa, 0, sizeof(sa));
        ^~~~~~
/datasets/git/builtin/log.c:468:40: warning: 100000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        early_output_timer.it_value.tv_usec = 100000;
                                              ^
/datasets/git/builtin/log.c:474:6: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
        int n = estimate_commit_count(rev->commits);
            ^
/datasets/git/builtin/log.c:475:2: warning: the value returned by this function should be used [cert-err33-c]
        signal(SIGALRM, SIG_IGN);
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:475:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/log.c:481:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/builtin/log.c:487:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!rev->remerge_objdir)
                                         ^
                                          {
/datasets/git/builtin/log.c:492:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (rev->early_output)
                              ^
                               {
/datasets/git/builtin/log.c:495:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prepare_revision_walk(rev))
                                       ^
                                        {
/datasets/git/builtin/log.c:498:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (rev->early_output)
                              ^
                               {
/datasets/git/builtin/log.c:506:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((commit = get_revision(rev)) != NULL) {
        ^
/datasets/git/builtin/log.c:506:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'commit' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((commit = get_revision(rev)) != NULL) {
               ^
/datasets/git/builtin/log.c:507:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!log_tree_commit(rev, commit) && rev->max_count >= 0)
                                                                         ^
                                                                          {
/datasets/git/builtin/log.c:523:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (saved_nrl < rev->diffopt.needed_rename_limit)
                                                                 ^
                                                                  {
/datasets/git/builtin/log.c:525:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (rev->diffopt.degraded_cc_to_c)
                                                  ^
                                                   {
/datasets/git/builtin/log.c:536:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (rev->diffopt.output_format & DIFF_FORMAT_CHECKDIFF &&
            ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:545:6: warning: variable 'retval' is not initialized [cppcoreguidelines-init-variables]
        int retval;
            ^
                   = 0
/datasets/git/builtin/log.c:554:69: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int git_log_config(const char *var, const char *value, void *cb)
                                                                    ^
/datasets/git/builtin/log.c:556:14: warning: variable 'slot_name' is not initialized [cppcoreguidelines-init-variables]
        const char *slot_name;
                    ^
                              = NULL
/datasets/git/builtin/log.c:558:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(var, "format.pretty"))
                                          ^
                                           {
/datasets/git/builtin/log.c:560:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(var, "format.subjectprefix"))
                                                 ^
                                                  {
/datasets/git/builtin/log.c:574:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(var, "log.date"))
                                     ^
                                      {
/datasets/git/builtin/log.c:578:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (decoration_style < 0)
                                         ^
                                          {
/datasets/git/builtin/log.c:582:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(var, "log.diffmerges"))
                                           ^
                                            {
/datasets/git/builtin/log.c:592:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (skip_prefix(var, "color.decorate.", &slot_name))
                                                            ^
                                                             {
/datasets/git/builtin/log.c:603:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (git_gpg_config(var, value, cb) < 0)
                                               ^
                                                {
/datasets/git/builtin/log.c:621:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&opt, 0, sizeof(opt));
        ^~~~~~
/datasets/git/builtin/log.c:621:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&opt, 0, sizeof(opt));
        ^~~~~~
/datasets/git/builtin/log.c:625:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!rev.diffopt.output_format)
                                       ^
                                        {
/datasets/git/builtin/log.c:633:30: warning: variable name 'pp' is too short, expected at least 3 characters [readability-identifier-length]
        struct pretty_print_context pp = {0};
                                    ^
/datasets/git/builtin/log.c:638:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(rev->diffopt.file, "%s", out.buf);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:638:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/log.c:646:8: warning: variable 'buf' is not initialized [cppcoreguidelines-init-variables]
        char *buf;
              ^
                  = NULL
/datasets/git/builtin/log.c:647:16: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size;
                      ^
                           = 0
/datasets/git/builtin/log.c:649:2: warning: the value returned by this function should be used [cert-err33-c]
        fflush(rev->diffopt.file);
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:649:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/log.c:651:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !rev->diffopt.flags.allow_textconv)
                                               ^
                                                {
/datasets/git/builtin/log.c:656:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                 &oidc, &obj_context))
                                                      ^
                                                       {
/datasets/git/builtin/log.c:665:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!buf)
                 ^
                  {
/datasets/git/builtin/log.c:675:16: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size;
                      ^
                           = 0
/datasets/git/builtin/log.c:676:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/builtin/log.c:680:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!buf)
                 ^
                  {
/datasets/git/builtin/log.c:684:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'offset' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (offset < size && buf[offset] != '\n') {
               ^
/datasets/git/builtin/log.c:686:15: warning: variable 'ident' is not initialized [cppcoreguidelines-init-variables]
                const char *ident;
                            ^
                                  = NULL
/datasets/git/builtin/log.c:687:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (new_offset < size && buf[new_offset++] != '\n')
                ^
/datasets/git/builtin/log.c:687:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'new_offset' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (new_offset < size && buf[new_offset++] != '\n')
                       ^
/datasets/git/builtin/log.c:687:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (new_offset < size && buf[new_offset++] != '\n')
                                                                      ^
                                                                       {
/datasets/git/builtin/log.c:689:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (skip_prefix(buf + offset, "tagger ", &ident))
                                                                 ^
                                                                  {
/datasets/git/builtin/log.c:694:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (offset < size)
                          ^
                           {
/datasets/git/builtin/log.c:695:3: warning: the value returned by this function should be used [cert-err33-c]
                fwrite(buf + offset, size - offset, 1, rev->diffopt.file);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:695:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/log.c:706:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(file, "%s%s\n", pathname, S_ISDIR(mode) ? "/" : "");
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:706:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/log.c:711:39: warning: parameter 'opt' is unused [misc-unused-parameters]
                                       struct setup_revision_opt *opt)
                                                                  ^
/datasets/git/builtin/log.c:713:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (rev->first_parent_only)
                                   ^
                                    {
/datasets/git/builtin/log.c:715:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/log.c:717:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!rev->diffopt.output_format)
                                        ^
                                         {
/datasets/git/builtin/log.c:724:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i;
                     ^
                       = 0
/datasets/git/builtin/log.c:724:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/log.c:737:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&match_all, 0, sizeof(match_all));
        ^~~~~~
/datasets/git/builtin/log.c:737:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&match_all, 0, sizeof(match_all));
        ^~~~~~
/datasets/git/builtin/log.c:746:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&opt, 0, sizeof(opt));
        ^~~~~~
/datasets/git/builtin/log.c:746:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&opt, 0, sizeof(opt));
        ^~~~~~
/datasets/git/builtin/log.c:751:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!rev.no_walk)
                         ^
                          {
/datasets/git/builtin/log.c:755:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < rev.pending.nr && !ret; i++) {
        ^
/datasets/git/builtin/log.c:755:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ret' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < rev.pending.nr && !ret; i++) {
                    ^
/datasets/git/builtin/log.c:756:18: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                struct object *o = rev.pending.objects[i].item;
                               ^
/datasets/git/builtin/log.c:763:16: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
                        struct tag *t = (struct tag *)o;
                                    ^
/datasets/git/builtin/log.c:766:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (rev.shown_one)
                                          ^
                                           {
/datasets/git/builtin/log.c:768:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(rev.diffopt.file, "%stag %s%s\n",
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:768:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/log.c:774:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ret)
                                ^
                                 {
/datasets/git/builtin/log.c:777:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!o)
                               ^
                                {
/datasets/git/builtin/log.c:785:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (rev.shown_one)
                                          ^
                                           {
/datasets/git/builtin/log.c:787:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(rev.diffopt.file, "%stree %s%s\n\n",
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:787:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/log.c:801:4: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memcpy(&old, &rev.pending, sizeof(old));
                        ^~~~~~
/datasets/git/builtin/log.c:801:4: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                        memcpy(&old, &rev.pending, sizeof(old));
                        ^~~~~~
/datasets/git/builtin/log.c:802:4: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memcpy(&rev.pending, &blank, sizeof(rev.pending));
                        ^~~~~~
/datasets/git/builtin/log.c:802:4: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                        memcpy(&rev.pending, &blank, sizeof(rev.pending));
                        ^~~~~~
/datasets/git/builtin/log.c:812:4: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memcpy(&rev.pending, &old, sizeof(rev.pending));
                        ^~~~~~
/datasets/git/builtin/log.c:812:4: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                        memcpy(&rev.pending, &old, sizeof(rev.pending));
                        ^~~~~~
/datasets/git/builtin/log.c:842:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&opt, 0, sizeof(opt));
        ^~~~~~
/datasets/git/builtin/log.c:842:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&opt, 0, sizeof(opt));
        ^~~~~~
/datasets/git/builtin/log.c:855:38: warning: parameter 'opt' is unused [misc-unused-parameters]
                                      struct setup_revision_opt *opt)
                                                                 ^
/datasets/git/builtin/log.c:858:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            rev->prune_data.nr == 1)
                                    ^
                                     {
/datasets/git/builtin/log.c:861:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (rev->first_parent_only)
                                   ^
                                    {
/datasets/git/builtin/log.c:877:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&opt, 0, sizeof(opt));
        ^~~~~~
/datasets/git/builtin/log.c:877:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&opt, 0, sizeof(opt));
        ^~~~~~
/datasets/git/builtin/log.c:887:20: warning: variable 'fmt_patch_suffix' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *fmt_patch_suffix = ".patch";
                   ^
/datasets/git/builtin/log.c:888:12: warning: variable 'numbered' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int numbered = 0;
           ^
/datasets/git/builtin/log.c:889:12: warning: variable 'auto_number' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int auto_number = 1;
           ^
/datasets/git/builtin/log.c:891:14: warning: variable 'default_attach' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *default_attach = NULL;
             ^
/datasets/git/builtin/log.c:891:14: warning: variable 'default_attach' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/log.c:893:27: warning: variable 'extra_hdr' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct string_list extra_hdr = STRING_LIST_INIT_NODUP;
                          ^
/datasets/git/builtin/log.c:894:27: warning: variable 'extra_to' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct string_list extra_to = STRING_LIST_INIT_NODUP;
                          ^
/datasets/git/builtin/log.c:895:27: warning: variable 'extra_cc' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct string_list extra_cc = STRING_LIST_INIT_NODUP;
                          ^
/datasets/git/builtin/log.c:899:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/builtin/log.c:900:12: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int len = strlen(value);
                  ^
/datasets/git/builtin/log.c:901:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (len && value[len - 1] == '\n')
        ^
/datasets/git/builtin/log.c:901:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (len && value[len - 1] == '\n')
               ^
/datasets/git/builtin/log.c:901:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (len && value[len - 1] == '\n')
                                             ^
                                              {
/datasets/git/builtin/log.c:943:26: warning: variable 'thread' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static enum thread_level thread;
                         ^
/datasets/git/builtin/log.c:944:12: warning: variable 'do_signoff' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int do_signoff;
           ^
/datasets/git/builtin/log.c:945:31: warning: variable 'auto_base' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static enum auto_base_setting auto_base;
                              ^
/datasets/git/builtin/log.c:946:14: warning: variable 'from' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *from;
             ^
/datasets/git/builtin/log.c:946:14: warning: variable 'from' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/log.c:947:20: warning: variable 'signature' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *signature = git_version_string;
                   ^
/datasets/git/builtin/log.c:947:20: warning: initializing non-local variable with non-const expression depending on uninitialized non-local variable 'git_version_string' [cppcoreguidelines-interfaces-global-init]
/datasets/git/builtin/log.c:948:20: warning: variable 'signature_file' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *signature_file;
                   ^
/datasets/git/builtin/log.c:949:27: warning: variable 'config_cover_letter' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static enum cover_setting config_cover_letter;
                          ^
/datasets/git/builtin/log.c:950:20: warning: variable 'config_output_directory' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *config_output_directory;
                   ^
/datasets/git/builtin/log.c:951:36: warning: variable 'cover_from_description_mode' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static enum cover_from_description cover_from_description_mode = COVER_FROM_MESSAGE;
                                   ^
/datasets/git/builtin/log.c:952:12: warning: variable 'show_notes' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int show_notes;
           ^
/datasets/git/builtin/log.c:953:33: warning: variable 'notes_opt' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct display_notes_opt notes_opt;
                                ^
/datasets/git/builtin/log.c:957:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!arg || !strcmp(arg, "default"))
                                            ^
                                             {
/datasets/git/builtin/log.c:958:3: warning: repeated branch in conditional chain [bugprone-branch-clone]
                return COVER_FROM_MESSAGE;
                ^
/datasets/git/builtin/log.c:958:28: note: end of the original
                return COVER_FROM_MESSAGE;
                                         ^
/datasets/git/builtin/log.c:962:3: note: clone 1 starts here
                return COVER_FROM_MESSAGE;
                ^
/datasets/git/builtin/log.c:959:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (!strcmp(arg, "none"))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:959:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(arg, "none"))
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/log.c:961:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(arg, "message"))
                                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/log.c:963:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(arg, "subject"))
                                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/log.c:965:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(arg, "auto"))
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/log.c:967:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/log.c:971:12: warning: function 'git_format_config' has cognitive complexity of 59 (threshold 25) [readability-function-cognitive-complexity]
static int git_format_config(const char *var, const char *value, void *cb)
           ^
/datasets/git/builtin/log.c:973:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "format.headers")) {
        ^
/datasets/git/builtin/log.c:974:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!value)
                ^
/datasets/git/builtin/log.c:979:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "format.suffix"))
        ^
/datasets/git/builtin/log.c:981:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "format.to")) {
        ^
/datasets/git/builtin/log.c:982:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!value)
                ^
/datasets/git/builtin/log.c:987:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "format.cc")) {
        ^
/datasets/git/builtin/log.c:988:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!value)
                ^
/datasets/git/builtin/log.c:993:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "diff.color") || !strcmp(var, "color.diff") ||
        ^
/datasets/git/builtin/log.c:994:31: note: +1
            !strcmp(var, "color.ui") || !strcmp(var, "diff.submodule")) {
                                     ^
/datasets/git/builtin/log.c:997:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "format.numbered")) {
        ^
/datasets/git/builtin/log.c:998:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (value && !strcasecmp(value, "auto")) {
                ^
/datasets/git/builtin/log.c:998:13: note: +1
                if (value && !strcasecmp(value, "auto")) {
                          ^
/datasets/git/builtin/log.c:1003:29: note: +1
                auto_number = auto_number && numbered;
                                          ^
/datasets/git/builtin/log.c:1006:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "format.attach")) {
        ^
/datasets/git/builtin/log.c:1007:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (value && *value)
                ^
/datasets/git/builtin/log.c:1007:13: note: +1
                if (value && *value)
                          ^
/datasets/git/builtin/log.c:1009:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/log.c:1013:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "format.thread")) {
        ^
/datasets/git/builtin/log.c:1014:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (value && !strcasecmp(value, "deep")) {
                ^
/datasets/git/builtin/log.c:1014:13: note: +1
                if (value && !strcasecmp(value, "deep")) {
                          ^
/datasets/git/builtin/log.c:1018:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (value && !strcasecmp(value, "shallow")) {
                ^
/datasets/git/builtin/log.c:1018:13: note: +1
                if (value && !strcasecmp(value, "shallow")) {
                          ^
/datasets/git/builtin/log.c:1022:40: note: +2, including nesting penalty of 1, nesting level increased to 2
                thread = git_config_bool(var, value) ? THREAD_SHALLOW : THREAD_UNSET;
                                                     ^
/datasets/git/builtin/log.c:1025:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "format.signoff")) {
        ^
/datasets/git/builtin/log.c:1029:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "format.signature"))
        ^
/datasets/git/builtin/log.c:1031:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "format.signaturefile"))
        ^
/datasets/git/builtin/log.c:1033:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "format.coverletter")) {
        ^
/datasets/git/builtin/log.c:1034:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (value && !strcasecmp(value, "auto")) {
                ^
/datasets/git/builtin/log.c:1034:13: note: +1
                if (value && !strcasecmp(value, "auto")) {
                          ^
/datasets/git/builtin/log.c:1038:53: note: +2, including nesting penalty of 1, nesting level increased to 2
                config_cover_letter = git_config_bool(var, value) ? COVER_ON : COVER_OFF;
                                                                  ^
/datasets/git/builtin/log.c:1041:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "format.outputdirectory"))
        ^
/datasets/git/builtin/log.c:1043:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "format.useautobase")) {
        ^
/datasets/git/builtin/log.c:1044:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (value && !strcasecmp(value, "whenAble")) {
                ^
/datasets/git/builtin/log.c:1044:13: note: +1
                if (value && !strcasecmp(value, "whenAble")) {
                          ^
/datasets/git/builtin/log.c:1048:43: note: +2, including nesting penalty of 1, nesting level increased to 2
                auto_base = git_config_bool(var, value) ? AUTO_BASE_ALWAYS : AUTO_BASE_NEVER;
                                                        ^
/datasets/git/builtin/log.c:1051:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "format.from")) {
        ^
/datasets/git/builtin/log.c:1054:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (b < 0)
                ^
/datasets/git/builtin/log.c:1056:8: note: +1, nesting level increased to 2
                else if (b)
                     ^
/datasets/git/builtin/log.c:1058:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/log.c:1062:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "format.forceinbodyfrom")) {
        ^
/datasets/git/builtin/log.c:1066:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "format.notes")) {
        ^
/datasets/git/builtin/log.c:1068:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (b < 0)
                ^
/datasets/git/builtin/log.c:1070:8: note: +1, nesting level increased to 2
                else if (b)
                     ^
/datasets/git/builtin/log.c:1072:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/log.c:1076:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "format.coverfromdescription")) {
        ^
/datasets/git/builtin/log.c:971:72: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int git_format_config(const char *var, const char *value, void *cb)
                                                                       ^
/datasets/git/builtin/log.c:974:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
                            {
/datasets/git/builtin/log.c:979:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(var, "format.suffix"))
                                          ^
                                           {
/datasets/git/builtin/log.c:982:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
                            {
/datasets/git/builtin/log.c:988:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
                            {
/datasets/git/builtin/log.c:1007:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (value && *value)
                                    ^
                                     {
/datasets/git/builtin/log.c:1009:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/log.c:1029:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(var, "format.signature"))
                                             ^
                                              {
/datasets/git/builtin/log.c:1031:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(var, "format.signaturefile"))
                                                 ^
                                                  {
/datasets/git/builtin/log.c:1041:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(var, "format.outputdirectory"))
                                                   ^
                                                    {
/datasets/git/builtin/log.c:1052:7: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
                int b = git_parse_maybe_bool(value);
                    ^
/datasets/git/builtin/log.c:1054:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (b < 0)
                          ^
                           {
/datasets/git/builtin/log.c:1056:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (b)
                           ^
                            {
/datasets/git/builtin/log.c:1058:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/log.c:1067:7: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
                int b = git_parse_maybe_bool(value);
                    ^
/datasets/git/builtin/log.c:1068:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (b < 0)
                          ^
                           {
/datasets/git/builtin/log.c:1070:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (b)
                           ^
                            {
/datasets/git/builtin/log.c:1072:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/log.c:1084:20: warning: variable 'output_directory' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *output_directory = NULL;
                   ^
/datasets/git/builtin/log.c:1085:12: warning: variable 'outdir_offset' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int outdir_offset;
           ^
/datasets/git/builtin/log.c:1097:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (rev->numbered_files)
                                ^
                                 {
/datasets/git/builtin/log.c:1099:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (commit)
                        ^
                         {
/datasets/git/builtin/log.c:1101:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/log.c:1104:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!quiet)
                   ^
                    {
/datasets/git/builtin/log.c:1107:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if (!(rev->diffopt.file = fopen(filename.buf, "w"))) {
              ^
/datasets/git/builtin/log.c:1107:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/builtin/log.c:1107:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/builtin/log.c:1120:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit *commit, *c1, *c2;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:1120:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit, *c1, *c2;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/log.c:1120:26: warning: variable 'c1' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit, *c1, *c2;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/log.c:1120:26: warning: variable name 'c1' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/log.c:1120:31: warning: variable 'c2' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit, *c1, *c2;
                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/log.c:1120:31: warning: variable name 'c2' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/log.c:1121:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct object *o1, *o2;
        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:1121:17: warning: variable 'o1' is not initialized [cppcoreguidelines-init-variables]
        struct object *o1, *o2;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/log.c:1121:17: warning: variable name 'o1' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/log.c:1121:22: warning: variable 'o2' is not initialized [cppcoreguidelines-init-variables]
        struct object *o1, *o2;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/log.c:1121:22: warning: variable name 'o2' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/log.c:1122:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned flags1, flags2;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:1122:11: warning: variable 'flags1' is not initialized [cppcoreguidelines-init-variables]
        unsigned flags1, flags2;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/log.c:1122:19: warning: variable 'flags2' is not initialized [cppcoreguidelines-init-variables]
        unsigned flags1, flags2;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/log.c:1124:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (rev->pending.nr != 2)
                                 ^
                                  {
/datasets/git/builtin/log.c:1134:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((flags1 & UNINTERESTING) == (flags2 & UNINTERESTING))
                      ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/builtin/log.c:1134:44: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((flags1 & UNINTERESTING) == (flags2 & UNINTERESTING))
                                                  ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/builtin/log.c:1134:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((flags1 & UNINTERESTING) == (flags2 & UNINTERESTING))
                                                                 ^
                                                                  {
/datasets/git/builtin/log.c:1142:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        o1->flags ^= UNINTERESTING;
                     ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/builtin/log.c:1143:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        o2->flags ^= UNINTERESTING;
                     ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/builtin/log.c:1146:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prepare_revision_walk(&check_rev))
                                              ^
                                               {
/datasets/git/builtin/log.c:1149:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((commit = get_revision(&check_rev)) != NULL) {
        ^
/datasets/git/builtin/log.c:1149:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'commit' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((commit = get_revision(&check_rev)) != NULL) {
               ^
/datasets/git/builtin/log.c:1154:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        clear_commit_marks(c1, SEEN | UNINTERESTING | SHOWN | ADDED);
                               ^
/datasets/git/./revision.h:27:16: note: expanded from macro 'SEEN'
#define SEEN            (1u<<0)
                         ^   ~
/datasets/git/builtin/log.c:1154:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        clear_commit_marks(c1, SEEN | UNINTERESTING | SHOWN | ADDED);
                                      ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/builtin/log.c:1154:48: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        clear_commit_marks(c1, SEEN | UNINTERESTING | SHOWN | ADDED);
                                                      ^
/datasets/git/./revision.h:30:17: note: expanded from macro 'SHOWN'
#define SHOWN           (1u<<3)
                         ^   ~
/datasets/git/builtin/log.c:1154:56: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        clear_commit_marks(c1, SEEN | UNINTERESTING | SHOWN | ADDED);
                                                              ^
/datasets/git/./revision.h:34:17: note: expanded from macro 'ADDED'
#define ADDED           (1u<<7) /* Parents already parsed and added? */
                         ^   ~
/datasets/git/builtin/log.c:1155:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        clear_commit_marks(c2, SEEN | UNINTERESTING | SHOWN | ADDED);
                               ^
/datasets/git/./revision.h:27:16: note: expanded from macro 'SEEN'
#define SEEN            (1u<<0)
                         ^   ~
/datasets/git/builtin/log.c:1155:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        clear_commit_marks(c2, SEEN | UNINTERESTING | SHOWN | ADDED);
                                      ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/builtin/log.c:1155:48: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        clear_commit_marks(c2, SEEN | UNINTERESTING | SHOWN | ADDED);
                                                      ^
/datasets/git/./revision.h:30:17: note: expanded from macro 'SHOWN'
#define SHOWN           (1u<<3)
                         ^   ~
/datasets/git/builtin/log.c:1155:56: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        clear_commit_marks(c2, SEEN | UNINTERESTING | SHOWN | ADDED);
                                                              ^
/datasets/git/./revision.h:34:17: note: expanded from macro 'ADDED'
#define ADDED           (1u<<7) /* Parents already parsed and added? */
                         ^   ~
/datasets/git/builtin/log.c:1165:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    git_committer_info(IDENT_NO_NAME|IDENT_NO_DATE|IDENT_STRICT));
                                       ^
/datasets/git/./refs/../cache.h:1631:30: note: expanded from macro 'IDENT_NO_NAME'
#define IDENT_NO_NAME          4
                               ^
/datasets/git/builtin/log.c:1171:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!signature || !*signature)
                                      ^
                                       {
/datasets/git/builtin/log.c:1174:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(file, "-- \n%s", signature);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:1174:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/log.c:1175:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (signature[strlen(signature)-1] != '\n')
                                                   ^
                                                    {
/datasets/git/builtin/log.c:1176:3: warning: the value returned by this function should be used [cert-err33-c]
                putc('\n', file);
                ^~~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:1176:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/log.c:1177:2: warning: the value returned by this function should be used [cert-err33-c]
        putc('\n', file);
        ^~~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:1177:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/log.c:1182:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, positive = -1;
        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:1182:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, positive = -1;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/log.c:1182:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/log.c:1184:26: warning: variable 'tip_oid' is not initialized [cppcoreguidelines-init-variables]
        const struct object_id *tip_oid;
                                ^
                                        = NULL
/datasets/git/builtin/log.c:1185:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *ref, *v;
        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:1185:14: warning: variable 'ref' is not initialized [cppcoreguidelines-init-variables]
        const char *ref, *v;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/log.c:1185:20: warning: variable 'v' is not initialized [cppcoreguidelines-init-variables]
        const char *ref, *v;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/log.c:1185:20: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/log.c:1186:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *full_ref, *branch = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:1186:8: warning: variable 'full_ref' is not initialized [cppcoreguidelines-init-variables]
        char *full_ref, *branch = NULL;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/log.c:1188:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < rev->cmdline.nr; i++) {
        ^
/datasets/git/builtin/log.c:1189:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (rev->cmdline.rev[i].flags & UNINTERESTING)
                                                ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/builtin/log.c:1189:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (rev->cmdline.rev[i].flags & UNINTERESTING)
                                                              ^
                                                               {
/datasets/git/builtin/log.c:1191:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (positive < 0)
                                 ^
                                  {
/datasets/git/builtin/log.c:1193:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/log.c:1196:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (positive < 0)
                         ^
                          {
/datasets/git/builtin/log.c:1200:20: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        if (dwim_ref(ref, strlen(ref), &branch_oid, &full_ref, 0) &&
                          ^
/datasets/git/builtin/log.c:1202:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            oideq(tip_oid, &branch_oid))
                                        ^
                                         {
/datasets/git/builtin/log.c:1213:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(&opts, &rev->diffopt, sizeof(opts));
        ^~~~~~
/datasets/git/builtin/log.c:1213:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(&opts, &rev->diffopt, sizeof(opts));
        ^~~~~~
/datasets/git/builtin/log.c:1214:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        opts.output_format = DIFF_FORMAT_SUMMARY | DIFF_FORMAT_DIFFSTAT;
                             ^
/datasets/git/./diff.h:102:29: note: expanded from macro 'DIFF_FORMAT_SUMMARY'
#define DIFF_FORMAT_SUMMARY     0x0008
                                ^~~~~~
/datasets/git/builtin/log.c:1223:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(rev->diffopt.file, "\n");
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:1223:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/log.c:1226:61: warning: parameter name 'pp' is too short, expected at least 3 characters [readability-identifier-length]
static void prepare_cover_text(struct pretty_print_context *pp,
                                                            ^
/datasets/git/builtin/log.c:1228:26: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                               struct strbuf *sb,
                                              ^
/datasets/git/builtin/log.c:1237:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cover_from_description_mode == COVER_FROM_NONE)
                                                           ^
                                                            {
/datasets/git/builtin/log.c:1240:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (branch_name && *branch_name)
                                        ^
                                         {
/datasets/git/builtin/log.c:1242:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!description_sb.len)
                                ^
                                 {
/datasets/git/builtin/log.c:1246:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        cover_from_description_mode == COVER_FROM_AUTO)
                                                                       ^
                                                                        {
/datasets/git/builtin/log.c:1251:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                         subject_sb.len > COVER_FROM_AUTO_MAX_SUBJECT_LEN))
                                                                           ^
                                                                            {
/datasets/git/builtin/log.c:1253:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/log.c:1285:14: warning: parameter name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
                              int nr, struct commit **list,
                                  ^
/datasets/git/builtin/log.c:1289:14: warning: variable 'committer' is not initialized [cppcoreguidelines-init-variables]
        const char *committer;
                    ^
                              = NULL
/datasets/git/builtin/log.c:1291:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/log.c:1292:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/log.c:1292:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/log.c:1295:30: warning: variable name 'pp' is too short, expected at least 3 characters [readability-identifier-length]
        struct pretty_print_context pp = {0};
                                    ^
/datasets/git/builtin/log.c:1298:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!cmit_fmt_is_mail(rev->commit_format))
                                                  ^
                                                   {
/datasets/git/builtin/log.c:1304:84: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            open_next_file(NULL, rev->numbered_files ? NULL : "cover-letter", rev, quiet))
                                                                                          ^
                                                                                           {
/datasets/git/builtin/log.c:1309:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; !need_8bit_cte && i < nr; i++) {
        ^
/datasets/git/builtin/log.c:1311:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (has_non_ascii(buf))
                                       ^
                                        {
/datasets/git/builtin/log.c:1316:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!branch_name)
                         ^
                          {
/datasets/git/builtin/log.c:1325:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(rev->diffopt.file, "%s\n", sb.buf);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:1325:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/log.c:1337:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr; i++)
        ^
/datasets/git/builtin/log.c:1337:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < nr; i++)
                                ^
                                 {
/datasets/git/builtin/log.c:1343:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (origin)
                   ^
                    {
/datasets/git/builtin/log.c:1379:7: warning: variable 'ch' is not initialized [cppcoreguidelines-init-variables]
        char ch;
             ^
                = 0
/datasets/git/builtin/log.c:1379:7: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/log.c:1380:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *a, *z, *m;
        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:1380:14: warning: variable 'a' is not initialized [cppcoreguidelines-init-variables]
        const char *a, *z, *m;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/log.c:1380:14: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/log.c:1380:18: warning: variable 'z' is not initialized [cppcoreguidelines-init-variables]
        const char *a, *z, *m;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/log.c:1380:18: warning: variable name 'z' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/log.c:1380:22: warning: variable 'm' is not initialized [cppcoreguidelines-init-variables]
        const char *a, *z, *m;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/log.c:1380:22: warning: variable name 'm' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/log.c:1383:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((ch = *m) && (isspace(ch) || (ch == '<')))
        ^
/datasets/git/builtin/log.c:1379:2: note: inferred assignment of ID-dependent value from ID-dependent variable m [altera-id-dependent-backward-branch]
        char ch;
        ^
/datasets/git/builtin/log.c:1383:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'ch' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((ch = *m) && (isspace(ch) || (ch == '<')))
               ^
/datasets/git/builtin/log.c:1383:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        while ((ch = *m) && (isspace(ch) || (ch == '<')))
                             ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/builtin/log.c:1383:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while ((ch = *m) && (isspace(ch) || (ch == '<')))
                                                         ^
                                                          {
/datasets/git/builtin/log.c:1387:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((ch = *m)) {
        ^
/datasets/git/builtin/log.c:1387:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'ch' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((ch = *m)) {
               ^
/datasets/git/builtin/log.c:1388:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!isspace(ch) && (ch != '>'))
                     ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/builtin/log.c:1388:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!isspace(ch) && (ch != '>'))
                                                ^
                                                 {
/datasets/git/builtin/log.c:1392:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!z)
               ^
                {
/datasets/git/builtin/log.c:1394:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (++z == m)
                     ^
                      {
/datasets/git/builtin/log.c:1401:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (output_directory && is_absolute_path(output_directory))
                                                                   ^
                                                                    {
/datasets/git/builtin/log.c:1405:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (output_directory)
                                     ^
                                      {
/datasets/git/builtin/log.c:1412:18: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        outdir_offset = strlen(prefix);
                        ^
/datasets/git/builtin/log.c:1413:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!output_directory)
                              ^
                               {
/datasets/git/builtin/log.c:1424:12: warning: variable 'keep_subject' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int keep_subject = 0;
           ^
/datasets/git/builtin/log.c:1428:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/log.c:1429:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_ARG(arg);
        ^
/datasets/git/./parse-options.h:288:29: note: expanded from macro 'BUG_ON_OPT_ARG'
#define BUG_ON_OPT_ARG(arg) do { \
                            ^
/datasets/git/builtin/log.c:1435:12: warning: variable 'subject_prefix' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int subject_prefix = 0;
           ^
/datasets/git/builtin/log.c:1440:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/log.c:1448:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/log.c:1449:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_ARG(arg);
        ^
/datasets/git/./parse-options.h:288:29: note: expanded from macro 'BUG_ON_OPT_ARG'
#define BUG_ON_OPT_ARG(arg) do { \
                            ^
/datasets/git/builtin/log.c:1453:12: warning: variable 'numbered_cmdline_opt' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int numbered_cmdline_opt = 0;
           ^
/datasets/git/builtin/log.c:1458:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_ARG(arg);
        ^
/datasets/git/./parse-options.h:288:29: note: expanded from macro 'BUG_ON_OPT_ARG'
#define BUG_ON_OPT_ARG(arg) do { \
                            ^
/datasets/git/builtin/log.c:1460:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unset)
                  ^
                   {
/datasets/git/builtin/log.c:1468:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/log.c:1476:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/log.c:1477:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*dir)
                 ^
                  {
/datasets/git/builtin/log.c:1486:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unset)
                  ^
                   {
/datasets/git/builtin/log.c:1488:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!arg || !strcmp(arg, "shallow"))
                                                 ^
                                                  {
/datasets/git/builtin/log.c:1490:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(arg, "deep"))
                                      ^
                                       {
/datasets/git/builtin/log.c:1496:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/log.c:1504:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unset)
                  ^
                   {
/datasets/git/builtin/log.c:1506:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (arg)
                     ^
                      {
/datasets/git/builtin/log.c:1508:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/log.c:1517:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unset)
                  ^
                   {
/datasets/git/builtin/log.c:1519:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (arg)
                     ^
                      {
/datasets/git/builtin/log.c:1521:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/log.c:1527:49: warning: parameter 'opt' is unused [misc-unused-parameters]
static int header_callback(const struct option *opt, const char *arg, int unset)
                                                ^
/datasets/git/builtin/log.c:1539:45: warning: parameter 'opt' is unused [misc-unused-parameters]
static int to_callback(const struct option *opt, const char *arg, int unset)
                                            ^
/datasets/git/builtin/log.c:1541:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unset)
                  ^
                   {
/datasets/git/builtin/log.c:1543:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/log.c:1548:45: warning: parameter 'opt' is unused [misc-unused-parameters]
static int cc_callback(const struct option *opt, const char *arg, int unset)
                                            ^
/datasets/git/builtin/log.c:1550:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unset)
                  ^
                   {
/datasets/git/builtin/log.c:1552:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/log.c:1563:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unset)
                  ^
                   {
/datasets/git/builtin/log.c:1565:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (arg)
                     ^
                      {
/datasets/git/builtin/log.c:1567:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/log.c:1589:8: warning: accessing fields in struct 'base_tree_info' is inefficient due to padding; only needs 52 bytes but is using 56 bytes [altera-struct-pack-align]
struct base_tree_info {
       ^
/datasets/git/builtin/log.c:1589:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'base_tree_info'
/datasets/git/builtin/log.c:1589:8: warning: accessing fields in struct 'base_tree_info' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct base_tree_info {
       ^
/datasets/git/builtin/log.c:1589:8: note: use "__attribute__((aligned(64)))" to align struct 'base_tree_info' to 64 bytes
/datasets/git/builtin/log.c:1595:23: warning: function 'get_base_commit' has cognitive complexity of 61 (threshold 25) [readability-function-cognitive-complexity]
static struct commit *get_base_commit(const char *base_commit,
                      ^
/datasets/git/builtin/log.c:1603:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        switch (auto_base) {
        ^
/datasets/git/builtin/log.c:1605:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (base_commit) {
                ^
/datasets/git/builtin/log.c:1608:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/log.c:1615:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (base_commit) {
                ^
/datasets/git/builtin/log.c:1617:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/log.c:1626:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!auto_select) {
        ^
/datasets/git/builtin/log.c:1628:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!base)
                ^
/datasets/git/builtin/log.c:1630:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/log.c:1633:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (upstream) {
                ^
/datasets/git/builtin/log.c:1638:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (get_oid(upstream, &oid)) {
                        ^
/datasets/git/builtin/log.c:1639:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (die_on_failure)
                                ^
/datasets/git/builtin/log.c:1641:5: note: +1, nesting level increased to 4
                                else
                                ^
/datasets/git/builtin/log.c:1647:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!base_list || base_list->next) {
                        ^
/datasets/git/builtin/log.c:1647:19: note: +1
                        if (!base_list || base_list->next) {
                                       ^
/datasets/git/builtin/log.c:1648:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (die_on_failure) {
                                ^
/datasets/git/builtin/log.c:1650:7: note: +1, nesting level increased to 4
                                } else {
                                  ^
/datasets/git/builtin/log.c:1657:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/log.c:1658:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (die_on_failure)
                        ^
/datasets/git/builtin/log.c:1662:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/builtin/log.c:1668:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < total; i++)
        ^
/datasets/git/builtin/log.c:1676:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (rev_nr > 1) {
        ^
/datasets/git/builtin/log.c:1677:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < rev_nr / 2; i++) {
                ^
/datasets/git/builtin/log.c:1680:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!merge_base || merge_base->next) {
                        ^
/datasets/git/builtin/log.c:1680:20: note: +1
                        if (!merge_base || merge_base->next) {
                                        ^
/datasets/git/builtin/log.c:1681:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (die_on_failure) {
                                ^
/datasets/git/builtin/log.c:1683:7: note: +1, nesting level increased to 4
                                } else {
                                  ^
/datasets/git/builtin/log.c:1692:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (rev_nr % 2)
                ^
/datasets/git/builtin/log.c:1697:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!in_merge_bases(base, rev[0])) {
        ^
/datasets/git/builtin/log.c:1698:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (die_on_failure) {
                ^
/datasets/git/builtin/log.c:1700:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/log.c:1706:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < total; i++) {
        ^
/datasets/git/builtin/log.c:1707:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (base == list[i]) {
                ^
/datasets/git/builtin/log.c:1708:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (die_on_failure) {
                        ^
/datasets/git/builtin/log.c:1710:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/builtin/log.c:1600:18: warning: variable 'rev' is not initialized [cppcoreguidelines-init-variables]
        struct commit **rev;
                        ^
                            = NULL
/datasets/git/builtin/log.c:1601:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i = 0, rev_nr = 0, auto_select, die_on_failure;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:1601:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0, rev_nr = 0, auto_select, die_on_failure;
            ^
/datasets/git/builtin/log.c:1601:25: warning: variable 'auto_select' is not initialized [cppcoreguidelines-init-variables]
        int i = 0, rev_nr = 0, auto_select, die_on_failure;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/log.c:1601:38: warning: variable 'die_on_failure' is not initialized [cppcoreguidelines-init-variables]
        int i = 0, rev_nr = 0, auto_select, die_on_failure;
                                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/log.c:1628:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!base)
                          ^
                           {
/datasets/git/builtin/log.c:1634:24: warning: variable 'base_list' is not initialized [cppcoreguidelines-init-variables]
                        struct commit_list *base_list;
                                            ^
                                                      = NULL
/datasets/git/builtin/log.c:1635:19: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
                        struct commit *commit;
                                       ^
                                              = NULL
/datasets/git/builtin/log.c:1639:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (die_on_failure)
                                                   ^
                                                    {
/datasets/git/builtin/log.c:1641:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                else
                                    ^
                                     {
/datasets/git/builtin/log.c:1658:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (die_on_failure)
                                           ^
                                            {
/datasets/git/builtin/log.c:1662:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/builtin/log.c:1667:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_ARRAY(rev, total);
        ^
/datasets/git/./git-compat-util.h:1090:53: note: expanded from macro 'ALLOC_ARRAY'
#define ALLOC_ARRAY(x, alloc) (x) = xmalloc(st_mult(sizeof(*(x)), (alloc)))
                                                    ^
/datasets/git/builtin/log.c:1601:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int i = 0, rev_nr = 0, auto_select, die_on_failure;
        ^
/datasets/git/builtin/log.c:1668:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < total; i++)
        ^
/datasets/git/builtin/log.c:1601:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int i = 0, rev_nr = 0, auto_select, die_on_failure;
        ^
/datasets/git/builtin/log.c:1668:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < total; i++)
                                   ^
                                    {
/datasets/git/builtin/log.c:1676:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'rev_nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (rev_nr > 1) {
               ^
/datasets/git/builtin/log.c:1677:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < rev_nr / 2; i++) {
                ^
/datasets/git/builtin/log.c:1677:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'rev_nr' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < rev_nr / 2; i++) {
                            ^
/datasets/git/builtin/log.c:1678:24: warning: variable 'merge_base' is not initialized [cppcoreguidelines-init-variables]
                        struct commit_list *merge_base;
                                            ^
                                                       = NULL
/datasets/git/builtin/log.c:1679:33: warning: result of multiplication in type 'int' is used as a pointer offset after an implicit widening conversion to type 'ptrdiff_t' [bugprone-implicit-widening-of-multiplication-result]
                        merge_base = get_merge_bases(rev[2 * i], rev[2 * i + 1]);
                                                     ^
/datasets/git/builtin/log.c:1679:37: note: make conversion explicit to silence this warning
                        merge_base = get_merge_bases(rev[2 * i], rev[2 * i + 1]);
                                                         ^
                                                         (ptrdiff_t)( )
/datasets/git/./commit-reach.h:23:80: note: expanded from macro 'get_merge_bases'
#define get_merge_bases(r1, r2)           repo_get_merge_bases(the_repository, r1, r2)
                                                                               ^~
/datasets/git/builtin/log.c:1679:37: note: perform multiplication in a wider type
                        merge_base = get_merge_bases(rev[2 * i], rev[2 * i + 1]);
                                                         ^
                                                         (ptrdiff_t)
/datasets/git/./commit-reach.h:23:80: note: expanded from macro 'get_merge_bases'
#define get_merge_bases(r1, r2)           repo_get_merge_bases(the_repository, r1, r2)
                                                                               ^~
/datasets/git/builtin/log.c:1692:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (rev_nr % 2)
                               ^
                                {
/datasets/git/builtin/log.c:1693:13: warning: result of multiplication in type 'int' is used as a pointer offset after an implicit widening conversion to type 'ptrdiff_t' [bugprone-implicit-widening-of-multiplication-result]
                        rev[i] = rev[2 * i];
                                 ^
/datasets/git/builtin/log.c:1693:17: note: make conversion explicit to silence this warning
                        rev[i] = rev[2 * i];
                                     ^~~~~
                                     (ptrdiff_t)( )
/datasets/git/builtin/log.c:1693:17: note: perform multiplication in a wider type
                        rev[i] = rev[2 * i];
                                     ^
                                     (ptrdiff_t)
/datasets/git/builtin/log.c:1706:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < total; i++) {
        ^
/datasets/git/builtin/log.c:1721:1: warning: backward branch (for loop) is ID-dependent due to member reference to 'slab_size' and may cause performance degradation [altera-id-dependent-backward-branch]
define_commit_slab(commit_base, int);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:48:15: note: expanded from macro 'implement_commit_slab'
                for (j = 0; j < s->slab_size; j++)                      \
                            ^
/datasets/git/builtin/log.c:1721:1: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
define_commit_slab(commit_base, int);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:68:27: note: expanded from macro 'implement_commit_slab'
                for (i = s->slab_count; i <= nth_slab; i++)             \
                                        ^
/datasets/git/builtin/log.c:1721:1: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
define_commit_slab(commit_base, int);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:35:2: note: expanded from macro 'implement_commit_slab'
        for (i = 0; i < s->slab_count; i++)                             \
        ^
/datasets/git/builtin/log.c:1721:1: warning: result of multiplication in type 'unsigned int' is used as a pointer offset after an implicit widening conversion to type 'size_t' [bugprone-implicit-widening-of-multiplication-result]
define_commit_slab(commit_base, int);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:49:13: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                 ^
/datasets/git/builtin/log.c:1721:1: note: make conversion explicit to silence this warning
define_commit_slab(commit_base, int);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:49:24: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                            ^~~~~~~~~~~~~
/datasets/git/builtin/log.c:1721:1: note: perform multiplication in a wider type
define_commit_slab(commit_base, int);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:49:24: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                            ^
/datasets/git/builtin/log.c:1721:1: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(commit_base, int);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:55:30: note: expanded from macro 'implement_commit_slab'
                                                  const struct commit *c, \
                                                                       ^
/datasets/git/builtin/log.c:1721:1: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(commit_base, int);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:14:61: note: expanded from macro 'implement_commit_slab'
scope void init_ ##slabname## _with_stride(struct slabname *s,          \
                                                            ^
/datasets/git/builtin/log.c:1721:1: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(commit_base, int);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:34:15: note: expanded from macro 'implement_commit_slab'
        unsigned int i;                                                 \
                     ^
/datasets/git/builtin/log.c:1721:1: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(commit_base, int);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:45:16: note: expanded from macro 'implement_commit_slab'
                unsigned int j;                                         \
                             ^
/datasets/git/builtin/log.c:1721:1: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
define_commit_slab(commit_base, int);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:58:2: note: expanded from macro 'implement_commit_slab'
        unsigned int nth_slab, nth_slot;                                \
        ^
/datasets/git/builtin/log.c:1721:1: note: inferred assignment of ID-dependent value from ID-dependent member slab_count [altera-id-dependent-backward-branch]
define_commit_slab(commit_base, int);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:64:3: note: expanded from macro 'implement_commit_slab'
                unsigned int i;                                         \
                ^
/datasets/git/builtin/log.c:1721:20: warning: accessing fields in struct 'commit_base' is inefficient due to padding; only needs 20 bytes but is using 24 bytes [altera-struct-pack-align]
define_commit_slab(commit_base, int);
                   ^
/datasets/git/builtin/log.c:1721:20: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'commit_base'
/datasets/git/builtin/log.c:1721:20: warning: accessing fields in struct 'commit_base' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
define_commit_slab(commit_base, int);
                   ^
/datasets/git/builtin/log.c:1721:20: note: use "__attribute__((aligned(32)))" to align struct 'commit_base' to 32 bytes
/datasets/git/builtin/log.c:1728:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/builtin/log.c:1732:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/log.c:1732:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/log.c:1734:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!base)
                  ^
                   {
/datasets/git/builtin/log.c:1747:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < total; i++) {
        ^
/datasets/git/builtin/log.c:1748:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                list[i]->object.flags &= ~UNINTERESTING;
                                          ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/builtin/log.c:1752:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        base->object.flags |= UNINTERESTING;
                              ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/builtin/log.c:1755:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prepare_revision_walk(&revs))
                                         ^
                                          {
/datasets/git/builtin/log.c:1761:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'commit' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((commit = get_revision(&revs)) != NULL) {
               ^
/datasets/git/builtin/log.c:1763:21: warning: variable 'patch_id' is not initialized [cppcoreguidelines-init-variables]
                struct object_id *patch_id;
                                  ^
                                           = NULL
/datasets/git/builtin/log.c:1764:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*commit_base_at(&commit_base, commit))
                                                          ^
                                                           {
/datasets/git/builtin/log.c:1766:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (commit_patch_id(commit, &diffopt, &oid, 0))
                                                               ^
                                                                {
/datasets/git/builtin/log.c:1768:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                ALLOC_GROW(bases->patch_id, bases->nr_patch_id + 1, bases->alloc_patch_id);
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/builtin/log.c:1778:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/log.c:1778:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/log.c:1781:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_null_oid(&bases->base_commit))
                                             ^
                                              {
/datasets/git/builtin/log.c:1785:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(file, "\nbase-commit: %s\n", oid_to_hex(&bases->base_commit));
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:1785:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/log.c:1788:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = bases->nr_patch_id - 1; i >= 0; i--)
        ^
/datasets/git/builtin/log.c:1788:35: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = bases->nr_patch_id - 1; i >= 0; i--)
                                         ^
/datasets/git/builtin/log.c:1788:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = bases->nr_patch_id - 1; i >= 0; i--)
                                                     ^
                                                      {
/datasets/git/builtin/log.c:1789:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(file, "prerequisite-patch-id: %s\n", oid_to_hex(&bases->patch_id[i]));
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:1789:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/log.c:1797:46: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static const char *diff_title(struct strbuf *sb,
                                             ^
/datasets/git/builtin/log.c:1798:10: warning: 3 adjacent parameters of 'diff_title' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                              const char *reroll_count,
                              ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:1798:22: note: the first parameter in the range is 'reroll_count'
                              const char *reroll_count,
                                          ^~~~~~~~~~~~
/datasets/git/builtin/log.c:1800:22: note: the last parameter in the range is 'rerolled'
                              const char *rerolled)
                                          ^~~~~~~~
/datasets/git/builtin/log.c:1802:6: warning: variable 'v' is not initialized [cppcoreguidelines-init-variables]
        int v;
            ^
              = 0
/datasets/git/builtin/log.c:1802:6: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/log.c:1805:46: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (reroll_count && !strtol_i(reroll_count, 10, &v) &&
                                                    ^
/datasets/git/builtin/log.c:1806:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            v >= 1)
                   ^
                    {
/datasets/git/builtin/log.c:1808:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/log.c:1813:52: warning: parameter name 'r1' is too short, expected at least 3 characters [readability-identifier-length]
static void infer_range_diff_ranges(struct strbuf *r1,
                                                   ^
/datasets/git/builtin/log.c:1814:24: warning: parameter name 'r2' is too short, expected at least 3 characters [readability-identifier-length]
                                    struct strbuf *r2,
                                                   ^
/datasets/git/builtin/log.c:1822:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prev_is_range)
                          ^
                           {
/datasets/git/builtin/log.c:1824:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/log.c:1827:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (origin)
                   ^
                    {
/datasets/git/builtin/log.c:1829:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (prev_is_range)
                               ^
                                {
/datasets/git/builtin/log.c:1837:5: warning: function 'cmd_format_patch' has cognitive complexity of 142 (threshold 25) [readability-function-cognitive-complexity]
int cmd_format_patch(int argc, const char **argv, const char *prefix)
    ^
/datasets/git/builtin/log.c:1988:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (default_attach) {
        ^
/datasets/git/builtin/log.c:2006:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (fmt_patch_name_max <= strlen("0000-") + strlen(fmt_patch_suffix))
        ^
/datasets/git/builtin/log.c:2009:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (cover_from_description_arg)
        ^
/datasets/git/builtin/log.c:2012:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (reroll_count) {
        ^
/datasets/git/builtin/log.c:2021:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < extra_hdr.nr; i++) {
        ^
/datasets/git/builtin/log.c:2026:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (extra_to.nr)
        ^
/datasets/git/builtin/log.c:2028:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < extra_to.nr; i++) {
        ^
/datasets/git/builtin/log.c:2029:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (i)
                ^
/datasets/git/builtin/log.c:2032:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (i + 1 < extra_to.nr)
                ^
/datasets/git/builtin/log.c:2037:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (extra_cc.nr)
        ^
/datasets/git/builtin/log.c:2039:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < extra_cc.nr; i++) {
        ^
/datasets/git/builtin/log.c:2040:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (i)
                ^
/datasets/git/builtin/log.c:2043:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (i + 1 < extra_cc.nr)
                ^
/datasets/git/builtin/log.c:2050:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (from) {
        ^
/datasets/git/builtin/log.c:2051:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (split_ident_line(&rev.from_ident, from, strlen(from)))
                ^
/datasets/git/builtin/log.c:2055:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (start_number < 0)
        ^
/datasets/git/builtin/log.c:2063:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (numbered && keep_subject && !numbered_cmdline_opt)
        ^
/datasets/git/builtin/log.c:2063:31: note: +1
        if (numbered && keep_subject && !numbered_cmdline_opt)
                                     ^
/datasets/git/builtin/log.c:2066:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (numbered && keep_subject)
        ^
/datasets/git/builtin/log.c:2066:15: note: +1
        if (numbered && keep_subject)
                     ^
/datasets/git/builtin/log.c:2068:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (keep_subject && subject_prefix)
        ^
/datasets/git/builtin/log.c:2068:19: note: +1
        if (keep_subject && subject_prefix)
                         ^
/datasets/git/builtin/log.c:2073:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (argc > 1)
        ^
/datasets/git/builtin/log.c:2076:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (rev.diffopt.output_format & DIFF_FORMAT_NAME)
        ^
/datasets/git/builtin/log.c:2078:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (rev.diffopt.output_format & DIFF_FORMAT_NAME_STATUS)
        ^
/datasets/git/builtin/log.c:2080:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (rev.diffopt.output_format & DIFF_FORMAT_CHECKDIFF)
        ^
/datasets/git/builtin/log.c:2082:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (rev.remerge_diff)
        ^
/datasets/git/builtin/log.c:2085:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!use_patch_format &&
        ^
/datasets/git/builtin/log.c:2085:24: note: +1
        if (!use_patch_format &&
                              ^
/datasets/git/builtin/log.c:2086:31: note: +1
                (!rev.diffopt.output_format ||
                                            ^
/datasets/git/builtin/log.c:2089:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!rev.diffopt.stat_width)
        ^
/datasets/git/builtin/log.c:2098:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!rev.diffopt.flags.text && !no_binary_diff)
        ^
/datasets/git/builtin/log.c:2098:30: note: +1
        if (!rev.diffopt.flags.text && !no_binary_diff)
                                    ^
/datasets/git/builtin/log.c:2101:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (rev.show_notes)
        ^
/datasets/git/builtin/log.c:2108:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (use_stdout) {
        ^
/datasets/git/builtin/log.c:2110:9: note: +1, nesting level increased to 1
        } else if (!rev.diffopt.close_file) {
               ^
/datasets/git/builtin/log.c:2113:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!output_directory)
                ^
/datasets/git/builtin/log.c:2117:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (rev.diffopt.use_color != GIT_COLOR_ALWAYS)
                ^
/datasets/git/builtin/log.c:2125:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                switch (safe_create_leading_directories_const(output_directory)) {
                ^
/datasets/git/builtin/log.c:2134:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (mkdir(output_directory, 0777) < 0 && errno != EEXIST)
                ^
/datasets/git/builtin/log.c:2134:41: note: +1
                if (mkdir(output_directory, 0777) < 0 && errno != EEXIST)
                                                      ^
/datasets/git/builtin/log.c:2139:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (rev.pending.nr == 1) {
        ^
/datasets/git/builtin/log.c:2142:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (rev.max_count < 0 && !rev.show_root_diff) {
                ^
/datasets/git/builtin/log.c:2142:25: note: +1
                if (rev.max_count < 0 && !rev.show_root_diff) {
                                      ^
/datasets/git/builtin/log.c:2158:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(rev.pending.objects[0].name, "HEAD"))
                ^
/datasets/git/builtin/log.c:2161:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (check_head) {
                ^
/datasets/git/builtin/log.c:2165:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ref && skip_prefix(ref, "refs/heads/", &v))
                        ^
/datasets/git/builtin/log.c:2165:12: note: +1
                        if (ref && skip_prefix(ref, "refs/heads/", &v))
                                ^
/datasets/git/builtin/log.c:2167:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/builtin/log.c:2178:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ignore_if_in_upstream) {
        ^
/datasets/git/builtin/log.c:2180:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (rev.pending.nr == 2) {
                ^
/datasets/git/builtin/log.c:2182:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (oideq(&o[0].item->oid, &o[1].item->oid))
                        ^
/datasets/git/builtin/log.c:2188:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (prepare_revision_walk(&rev))
        ^
/datasets/git/builtin/log.c:2191:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while ((commit = get_revision(&rev)) != NULL) {
        ^
/datasets/git/builtin/log.c:2192:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (commit->object.flags & BOUNDARY) {
                ^
/datasets/git/builtin/log.c:2194:35: note: +3, including nesting penalty of 2, nesting level increased to 3
                        origin = (boundary_count == 1) ? commit : NULL;
                                                       ^
/datasets/git/builtin/log.c:2198:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ignore_if_in_upstream && has_commit_patch_id(commit, &ids))
                ^
/datasets/git/builtin/log.c:2198:29: note: +1
                if (ignore_if_in_upstream && has_commit_patch_id(commit, &ids))
                                          ^
/datasets/git/builtin/log.c:2205:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (nr == 0)
        ^
/datasets/git/builtin/log.c:2209:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (cover_letter == -1) {
        ^
/datasets/git/builtin/log.c:2210:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (config_cover_letter == COVER_AUTO)
                ^
/datasets/git/builtin/log.c:2212:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/log.c:2215:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!keep_subject && auto_number && (total > 1 || cover_letter))
        ^
/datasets/git/builtin/log.c:2215:35: note: +1
        if (!keep_subject && auto_number && (total > 1 || cover_letter))
                                         ^
/datasets/git/builtin/log.c:2215:49: note: +1
        if (!keep_subject && auto_number && (total > 1 || cover_letter))
                                                       ^
/datasets/git/builtin/log.c:2217:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (numbered)
        ^
/datasets/git/builtin/log.c:2220:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (idiff_prev.nr) {
        ^
/datasets/git/builtin/log.c:2221:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!cover_letter && total != 1)
                ^
/datasets/git/builtin/log.c:2221:21: note: +1
                if (!cover_letter && total != 1)
                                  ^
/datasets/git/builtin/log.c:2230:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (creation_factor < 0)
        ^
/datasets/git/builtin/log.c:2232:7: note: +1, nesting level increased to 1
        else if (!rdiff_prev)
             ^
/datasets/git/builtin/log.c:2235:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (rdiff_prev) {
        ^
/datasets/git/builtin/log.c:2236:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!cover_letter && total != 1)
                ^
/datasets/git/builtin/log.c:2236:21: note: +1
                if (!cover_letter && total != 1)
                                  ^
/datasets/git/builtin/log.c:2249:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!signature) {
        ^
/datasets/git/builtin/log.c:2251:9: note: +1, nesting level increased to 1
        } else if (signature && signature != git_version_string) {
               ^
/datasets/git/builtin/log.c:2251:23: note: +1
        } else if (signature && signature != git_version_string) {
                             ^
/datasets/git/builtin/log.c:2253:9: note: +1, nesting level increased to 1
        } else if (signature_file) {
               ^
/datasets/git/builtin/log.c:2256:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (strbuf_read_file(&buf, signature_file, 128) < 0)
                ^
/datasets/git/builtin/log.c:2263:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (base) {
        ^
/datasets/git/builtin/log.c:2269:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (in_reply_to || thread || cover_letter) {
        ^
/datasets/git/builtin/log.c:2269:28: note: +1
        if (in_reply_to || thread || cover_letter) {
                                  ^
/datasets/git/builtin/log.c:2273:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (in_reply_to) {
        ^
/datasets/git/builtin/log.c:2279:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (cover_letter) {
        ^
/datasets/git/builtin/log.c:2280:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (thread)
                ^
/datasets/git/builtin/log.c:2294:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (show_progress)
        ^
/datasets/git/builtin/log.c:2296:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (0 <= --nr) {
        ^
/datasets/git/builtin/log.c:2302:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (thread) {
                ^
/datasets/git/builtin/log.c:2304:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (rev.message_id) {
                        ^
/datasets/git/builtin/log.c:2326:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (thread == THREAD_SHALLOW
                                ^
/datasets/git/builtin/log.c:2328:9: note: +1
                                    && (!cover_letter || rev.nr > 1))
                                    ^
/datasets/git/builtin/log.c:2328:27: note: +1
                                    && (!cover_letter || rev.nr > 1))
                                                      ^
/datasets/git/builtin/log.c:2330:5: note: +1, nesting level increased to 4
                                else
                                ^
/datasets/git/builtin/log.c:2337:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (output_directory &&
                ^
/datasets/git/builtin/log.c:2337:24: note: +1
                if (output_directory &&
                                     ^
/datasets/git/builtin/log.c:2338:41: note: +2, including nesting penalty of 1, nesting level increased to 2
                    open_next_file(rev.numbered_files ? NULL : commit, NULL, &rev, quiet))
                                                      ^
/datasets/git/builtin/log.c:2350:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (output_directory)
                ^
/datasets/git/builtin/log.c:2352:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (shown) {
                ^
/datasets/git/builtin/log.c:2354:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (rev.mime_boundary)
                        ^
/datasets/git/builtin/log.c:2358:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/builtin/log.c:2361:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (output_directory)
                ^
/datasets/git/builtin/log.c:2370:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ignore_if_in_upstream)
        ^
/datasets/git/builtin/log.c:2380:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (rev.ref_message_ids)
        ^
/datasets/git/builtin/log.c:1839:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/builtin/log.c:1844:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int nr = 0, total, i;
        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:1844:6: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
        int nr = 0, total, i;
            ^
/datasets/git/builtin/log.c:1844:14: warning: variable 'total' is not initialized [cppcoreguidelines-init-variables]
        int nr = 0, total, i;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/log.c:1844:21: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int nr = 0, total, i;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/log.c:1844:21: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/log.c:1864:17: warning: variable 'base' is not initialized [cppcoreguidelines-init-variables]
        struct commit *base;
                       ^
                            = NULL
/datasets/git/builtin/log.c:1881:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            PARSE_OPT_NOARG | PARSE_OPT_NONEG, no_numbered_callback),
                            ^
/datasets/git/./parse-options.h:169:47: note: expanded from macro 'OPT_CALLBACK_F'
        { OPTION_CALLBACK, (s), (l), (v), (a), (h), (f), (cb) }
                                                     ^
/datasets/git/builtin/log.c:1882:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('s', "signoff", &do_signoff, N_("add a Signed-off-by trailer")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:1883:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "stdout", &use_stdout,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:1885:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "cover-letter", &cover_letter,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:1887:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "numbered-files", &just_numbers,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:1899:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            PARSE_OPT_NOARG | PARSE_OPT_NONEG, rfc_callback),
                            ^
/datasets/git/./parse-options.h:169:47: note: expanded from macro 'OPT_CALLBACK_F'
        { OPTION_CALLBACK, (s), (l), (v), (a), (h), (f), (cb) }
                                                     ^
/datasets/git/builtin/log.c:1911:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            PARSE_OPT_NOARG | PARSE_OPT_NONEG, keep_callback),
                            ^
/datasets/git/./parse-options.h:169:47: note: expanded from macro 'OPT_CALLBACK_F'
        { OPTION_CALLBACK, (s), (l), (v), (a), (h), (f), (cb) }
                                                     ^
/datasets/git/builtin/log.c:1912:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "no-binary", &no_binary_diff,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:1914:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "zero-commit", &zero_commit,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:1916:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "ignore-if-in-upstream", &ignore_if_in_upstream,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:1918:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT_F('p', "no-stat", &use_patch_format,
                ^
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:1936:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            PARSE_OPT_OPTARG | PARSE_OPT_NONEG,
                            ^
/datasets/git/./parse-options.h:169:47: note: expanded from macro 'OPT_CALLBACK_F'
        { OPTION_CALLBACK, (s), (l), (v), (a), (h), (f), (cb) }
                                                     ^
/datasets/git/builtin/log.c:1948:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__QUIET(&quiet, N_("don't print the patch filenames")),
                ^
/datasets/git/./parse-options.h:360:31: note: expanded from macro 'OPT__QUIET'
#define OPT__QUIET(var, h)    OPT_COUNTUP('q', "quiet",   (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:1949:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "progress", &show_progress,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:1958:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "force-in-body-from", &force_in_body_from,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:1974:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(&rev.notes_opt, &notes_opt, sizeof(notes_opt));
        ^~~~~~
/datasets/git/builtin/log.c:1974:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(&rev.notes_opt, &notes_opt, sizeof(notes_opt));
        ^~~~~~
/datasets/git/builtin/log.c:1984:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&s_r_opt, 0, sizeof(s_r_opt));
        ^~~~~~
/datasets/git/builtin/log.c:1984:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&s_r_opt, 0, sizeof(s_r_opt));
        ^~~~~~
/datasets/git/builtin/log.c:2000:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                             PARSE_OPT_KEEP_ARGV0 | PARSE_OPT_KEEP_UNKNOWN_OPT |
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:2006:71: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fmt_patch_name_max <= strlen("0000-") + strlen(fmt_patch_suffix))
                                                                             ^
                                                                              {
/datasets/git/builtin/log.c:2007:24: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                fmt_patch_name_max = strlen("0000-") + strlen(fmt_patch_suffix);
                                     ^
/datasets/git/builtin/log.c:2009:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cover_from_description_arg)
                                       ^
                                        {
/datasets/git/builtin/log.c:2021:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < extra_hdr.nr; i++) {
        ^
/datasets/git/builtin/log.c:2026:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (extra_to.nr)
                        ^
                         {
/datasets/git/builtin/log.c:2028:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < extra_to.nr; i++) {
        ^
/datasets/git/builtin/log.c:2029:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (i)
                      ^
                       {
/datasets/git/builtin/log.c:2032:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (i + 1 < extra_to.nr)
                                        ^
                                         {
/datasets/git/builtin/log.c:2037:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (extra_cc.nr)
                        ^
                         {
/datasets/git/builtin/log.c:2039:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < extra_cc.nr; i++) {
        ^
/datasets/git/builtin/log.c:2040:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (i)
                      ^
                       {
/datasets/git/builtin/log.c:2043:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (i + 1 < extra_cc.nr)
                                        ^
                                         {
/datasets/git/builtin/log.c:2051:47: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                if (split_ident_line(&rev.from_ident, from, strlen(from)))
                                                            ^
/datasets/git/builtin/log.c:2051:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (split_ident_line(&rev.from_ident, from, strlen(from)))
                                                                          ^
                                                                           {
/datasets/git/builtin/log.c:2055:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (start_number < 0)
                             ^
                              {
/datasets/git/builtin/log.c:2063:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (numbered && keep_subject && !numbered_cmdline_opt)
                                                              ^
                                                               {
/datasets/git/builtin/log.c:2066:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (numbered && keep_subject)
                                     ^
                                      {
/datasets/git/builtin/log.c:2068:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (keep_subject && subject_prefix)
                                           ^
                                            {
/datasets/git/builtin/log.c:2073:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc > 1)
                     ^
                      {
/datasets/git/builtin/log.c:2076:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (rev.diffopt.output_format & DIFF_FORMAT_NAME)
            ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:2076:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (rev.diffopt.output_format & DIFF_FORMAT_NAME)
                                                         ^
                                                          {
/datasets/git/builtin/log.c:2078:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (rev.diffopt.output_format & DIFF_FORMAT_NAME_STATUS)
            ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:2078:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (rev.diffopt.output_format & DIFF_FORMAT_NAME_STATUS)
                                                                ^
                                                                 {
/datasets/git/builtin/log.c:2080:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (rev.diffopt.output_format & DIFF_FORMAT_CHECKDIFF)
            ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:2080:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (rev.diffopt.output_format & DIFF_FORMAT_CHECKDIFF)
                                                              ^
                                                               {
/datasets/git/builtin/log.c:2082:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (rev.remerge_diff)
                             ^
                              {
/datasets/git/builtin/log.c:2087:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                 rev.diffopt.output_format == DIFF_FORMAT_PATCH))
                                                                 ^
                                                                  {
/datasets/git/builtin/log.c:2088:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                rev.diffopt.output_format = DIFF_FORMAT_DIFFSTAT | DIFF_FORMAT_SUMMARY;
                                            ^
/datasets/git/./diff.h:100:30: note: expanded from macro 'DIFF_FORMAT_DIFFSTAT'
#define DIFF_FORMAT_DIFFSTAT    0x0002
                                ^~~~~~
/datasets/git/builtin/log.c:2089:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!rev.diffopt.stat_width)
                                    ^
                                     {
/datasets/git/builtin/log.c:2093:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        rev.diffopt.output_format |= DIFF_FORMAT_PATCH;
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:2098:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!rev.diffopt.flags.text && !no_binary_diff)
                                                       ^
                                                        {
/datasets/git/builtin/log.c:2101:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (rev.show_notes)
                           ^
                            {
/datasets/git/builtin/log.c:2111:7: warning: variable 'saved' is not initialized [cppcoreguidelines-init-variables]
                int saved;
                    ^
                          = 0
/datasets/git/builtin/log.c:2113:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!output_directory)
                                      ^
                                       {
/datasets/git/builtin/log.c:2117:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (rev.diffopt.use_color != GIT_COLOR_ALWAYS)
                                                              ^
                                                               {
/datasets/git/builtin/log.c:2134:31: warning: 0777 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (mkdir(output_directory, 0777) < 0 && errno != EEXIST)
                                            ^
/datasets/git/builtin/log.c:2134:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (mkdir(output_directory, 0777) < 0 && errno != EEXIST)
                                                                         ^
                                                                          {
/datasets/git/builtin/log.c:2148:42: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        rev.pending.objects[0].item->flags |= UNINTERESTING;
                                                              ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/builtin/log.c:2158:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(rev.pending.objects[0].name, "HEAD"))
                                                                 ^
                                                                  {
/datasets/git/builtin/log.c:2162:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        const char *ref, *v;
                        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:2162:16: warning: variable 'ref' is not initialized [cppcoreguidelines-init-variables]
                        const char *ref, *v;
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/log.c:2162:22: warning: variable 'v' is not initialized [cppcoreguidelines-init-variables]
                        const char *ref, *v;
                                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/log.c:2162:22: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/log.c:2165:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ref && skip_prefix(ref, "refs/heads/", &v))
                                                                       ^
                                                                        {
/datasets/git/builtin/log.c:2167:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/builtin/log.c:2181:31: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                        struct object_array_entry *o = rev.pending.objects;
                                                   ^
/datasets/git/builtin/log.c:2182:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (oideq(&o[0].item->oid, &o[1].item->oid))
                                                                    ^
                                                                     {
/datasets/git/builtin/log.c:2188:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prepare_revision_walk(&rev))
                                        ^
                                         {
/datasets/git/builtin/log.c:2191:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((commit = get_revision(&rev)) != NULL) {
        ^
/datasets/git/builtin/log.c:2191:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'commit' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((commit = get_revision(&rev)) != NULL) {
               ^
/datasets/git/builtin/log.c:2192:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (commit->object.flags & BOUNDARY) {
                                           ^
/datasets/git/./revision.h:32:19: note: expanded from macro 'BOUNDARY'
#define BOUNDARY        (1u<<5)
                         ^   ~
/datasets/git/builtin/log.c:2198:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ignore_if_in_upstream && has_commit_patch_id(commit, &ids))
                                                                               ^
                                                                                {
/datasets/git/builtin/log.c:2202:3: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                REALLOC_ARRAY(list, nr);
                ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/builtin/log.c:2205:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (nr == 0)
                    ^
                     {
/datasets/git/builtin/log.c:2210:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (config_cover_letter == COVER_AUTO)
                                                      ^
                                                       {
/datasets/git/builtin/log.c:2212:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/log.c:2215:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!keep_subject && auto_number && (total > 1 || cover_letter))
                                                                        ^
                                                                         {
/datasets/git/builtin/log.c:2217:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (numbered)
                     ^
                      {
/datasets/git/builtin/log.c:2221:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!cover_letter && total != 1)
                                                ^
                                                 {
/datasets/git/builtin/log.c:2230:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (creation_factor < 0)
                                ^
                                 {
/datasets/git/builtin/log.c:2232:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!rdiff_prev)
                             ^
                              {
/datasets/git/builtin/log.c:2236:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!cover_letter && total != 1)
                                                ^
                                                 {
/datasets/git/builtin/log.c:2249:18: warning: repeated branch in conditional chain [bugprone-branch-clone]
        if (!signature) {
                        ^
/datasets/git/builtin/log.c:2251:3: note: end of the original
        } else if (signature && signature != git_version_string) {
         ^
/datasets/git/builtin/log.c:2251:59: note: clone 1 starts here
        } else if (signature && signature != git_version_string) {
                                                                 ^
/datasets/git/builtin/log.c:2256:46: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (strbuf_read_file(&buf, signature_file, 128) < 0)
                                                           ^
/datasets/git/builtin/log.c:2256:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strbuf_read_file(&buf, signature_file, 128) < 0)
                                                                    ^
                                                                     {
/datasets/git/builtin/log.c:2261:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&bases, 0, sizeof(bases));
        ^~~~~~
/datasets/git/builtin/log.c:2261:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&bases, 0, sizeof(bases));
        ^~~~~~
/datasets/git/builtin/log.c:2265:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                clear_object_flags(UNINTERESTING);
                                   ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/builtin/log.c:2280:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (thread)
                           ^
                            {
/datasets/git/builtin/log.c:2294:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (show_progress)
                          ^
                           {
/datasets/git/builtin/log.c:2296:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (0 <= --nr) {
        ^
/datasets/git/builtin/log.c:2297:7: warning: variable 'shown' is not initialized [cppcoreguidelines-init-variables]
                int shown;
                    ^
                          = 0
/datasets/git/builtin/log.c:2328:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                    && (!cover_letter || rev.nr > 1))
                                                                     ^
                                                                      {
/datasets/git/builtin/log.c:2330:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                else
                                    ^
                                     {
/datasets/git/builtin/log.c:2338:77: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    open_next_file(rev.numbered_files ? NULL : commit, NULL, &rev, quiet))
                                                                                          ^
                                                                                           {
/datasets/git/builtin/log.c:2350:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (output_directory)
                                     ^
                                      {
/datasets/git/builtin/log.c:2354:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (rev.mime_boundary)
                                              ^
                                               {
/datasets/git/builtin/log.c:2355:5: warning: the value returned by this function should be used [cert-err33-c]
                                fprintf(rev.diffopt.file, "\n--%s%s--\n\n\n",
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:2355:5: note: cast the expression to void to silence this warning
/datasets/git/builtin/log.c:2358:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/builtin/log.c:2361:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (output_directory)
                                     ^
                                      {
/datasets/git/builtin/log.c:2362:4: warning: the value returned by this function should be used [cert-err33-c]
                        fclose(rev.diffopt.file);
                        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:2362:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/log.c:2370:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ignore_if_in_upstream)
                                  ^
                                   {
/datasets/git/builtin/log.c:2380:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (rev.ref_message_ids)
                                ^
                                 {
/datasets/git/builtin/log.c:2393:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        commit->object.flags |= flags;
                        ^                       ~~~~~
/datasets/git/builtin/log.c:2406:60: warning: 2 adjacent parameters of 'print_commit' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void print_commit(char sign, struct commit *commit, int verbose,
                                                           ^~~~~~~~~~~~
/datasets/git/builtin/log.c:2406:64: note: the first parameter in the range is 'verbose'
static void print_commit(char sign, struct commit *commit, int verbose,
                                                               ^~~~~~~
/datasets/git/builtin/log.c:2407:9: note: the last parameter in the range is 'abbrev'
                         int abbrev, FILE *file)
                             ^~~~~~
/datasets/git/builtin/log.c:2410:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(file, "%c %s\n", sign,
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:2410:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/log.c:2415:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(file, "%c %s %s\n", sign,
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:2415:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/log.c:2426:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/builtin/log.c:2428:17: warning: variable 'current_branch' is not initialized [cppcoreguidelines-init-variables]
        struct branch *current_branch;
                       ^
                                      = NULL
/datasets/git/builtin/log.c:2429:14: warning: variable 'upstream' is not initialized [cppcoreguidelines-init-variables]
        const char *upstream;
                    ^
                             = NULL
/datasets/git/builtin/log.c:2432:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int verbose = 0, abbrev = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:2436:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__VERBOSE(&verbose, N_("be verbose")),
                ^
/datasets/git/./parse-options.h:359:31: note: expanded from macro 'OPT__VERBOSE'
#define OPT__VERBOSE(var, h)  OPT_COUNTUP('v', "verbose", (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:2456:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, _("Could not find a tracked"
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/log.c:2456:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/log.c:2466:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (add_pending_commit(head, &revs, 0))
                                               ^
                                                {
/datasets/git/builtin/log.c:2468:42: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (add_pending_commit(upstream, &revs, UNINTERESTING))
                                                ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/builtin/log.c:2468:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (add_pending_commit(upstream, &revs, UNINTERESTING))
                                                               ^
                                                                {
/datasets/git/builtin/log.c:2473:30: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                struct object_array_entry *o = revs.pending.objects;
                                           ^
/datasets/git/builtin/log.c:2474:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (oideq(&o[0].item->oid, &o[1].item->oid))
                                                            ^
                                                             {
/datasets/git/builtin/log.c:2480:48: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (limit && add_pending_commit(limit, &revs, UNINTERESTING))
                                                      ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/builtin/log.c:2480:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (limit && add_pending_commit(limit, &revs, UNINTERESTING))
                                                                     ^
                                                                      {
/datasets/git/builtin/log.c:2484:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prepare_revision_walk(&revs))
                                         ^
                                          {
/datasets/git/builtin/log.c:2486:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((commit = get_revision(&revs)) != NULL) {
        ^
/datasets/git/builtin/log.c:2427:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct commit_list *list = NULL;
        ^
/datasets/git/builtin/log.c:2486:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'commit' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((commit = get_revision(&revs)) != NULL) {
               ^
/datasets/git/builtin/log.c:2490:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (list) {
        ^
/datasets/git/builtin/log.c:2490:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'list' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (list) {
               ^
/datasets/git/builtin/log.c:2494:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (has_commit_patch_id(commit, &ids))
                                                      ^
                                                       {
/datasets/git/builtin/ls-files.c:9:1: warning: #includes are not sorted properly [llvm-include-order]
#include "repository.h"
^        ~~~~~~~~~~~~~~
         "builtin.h"
/datasets/git/builtin/ls-files.c:25:12: warning: variable 'abbrev' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int abbrev;
           ^
/datasets/git/builtin/ls-files.c:26:12: warning: variable 'show_deleted' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int show_deleted;
           ^
/datasets/git/builtin/ls-files.c:27:12: warning: variable 'show_cached' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int show_cached;
           ^
/datasets/git/builtin/ls-files.c:28:12: warning: variable 'show_others' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int show_others;
           ^
/datasets/git/builtin/ls-files.c:29:12: warning: variable 'show_stage' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int show_stage;
           ^
/datasets/git/builtin/ls-files.c:30:12: warning: variable 'show_unmerged' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int show_unmerged;
           ^
/datasets/git/builtin/ls-files.c:31:12: warning: variable 'show_resolve_undo' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int show_resolve_undo;
           ^
/datasets/git/builtin/ls-files.c:32:12: warning: variable 'show_modified' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int show_modified;
           ^
/datasets/git/builtin/ls-files.c:33:12: warning: variable 'show_killed' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int show_killed;
           ^
/datasets/git/builtin/ls-files.c:34:12: warning: variable 'show_valid_bit' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int show_valid_bit;
           ^
/datasets/git/builtin/ls-files.c:35:12: warning: variable 'show_fsmonitor_bit' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int show_fsmonitor_bit;
           ^
/datasets/git/builtin/ls-files.c:36:12: warning: variable 'line_terminator' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int line_terminator = '\n';
           ^
/datasets/git/builtin/ls-files.c:37:12: warning: variable 'debug_mode' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int debug_mode;
           ^
/datasets/git/builtin/ls-files.c:38:12: warning: variable 'show_eol' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int show_eol;
           ^
/datasets/git/builtin/ls-files.c:39:12: warning: variable 'recurse_submodules' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int recurse_submodules;
           ^
/datasets/git/builtin/ls-files.c:40:12: warning: variable 'skipping_duplicates' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int skipping_duplicates;
           ^
/datasets/git/builtin/ls-files.c:41:12: warning: variable 'show_sparse_dirs' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int show_sparse_dirs;
           ^
/datasets/git/builtin/ls-files.c:43:20: warning: variable 'prefix' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *prefix;
                   ^
/datasets/git/builtin/ls-files.c:44:12: warning: variable 'max_prefix_len' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int max_prefix_len;
           ^
/datasets/git/builtin/ls-files.c:45:12: warning: variable 'prefix_len' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int prefix_len;
           ^
/datasets/git/builtin/ls-files.c:46:24: warning: variable 'pathspec' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct pathspec pathspec;
                       ^
/datasets/git/builtin/ls-files.c:47:12: warning: variable 'error_unmatch' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int error_unmatch;
           ^
/datasets/git/builtin/ls-files.c:48:14: warning: variable 'ps_matched' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *ps_matched;
             ^
/datasets/git/builtin/ls-files.c:48:14: warning: variable 'ps_matched' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/ls-files.c:49:20: warning: variable 'with_tree' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *with_tree;
                   ^
/datasets/git/builtin/ls-files.c:50:12: warning: variable 'exc_given' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int exc_given;
           ^
/datasets/git/builtin/ls-files.c:51:12: warning: variable 'exclude_args' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int exclude_args;
           ^
/datasets/git/builtin/ls-files.c:52:20: warning: variable 'format' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *format;
                   ^
/datasets/git/builtin/ls-files.c:54:20: warning: variable 'tag_cached' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *tag_cached = "";
                   ^
/datasets/git/builtin/ls-files.c:55:20: warning: variable 'tag_unmerged' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *tag_unmerged = "";
                   ^
/datasets/git/builtin/ls-files.c:56:20: warning: variable 'tag_removed' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *tag_removed = "";
                   ^
/datasets/git/builtin/ls-files.c:57:20: warning: variable 'tag_other' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *tag_other = "";
                   ^
/datasets/git/builtin/ls-files.c:58:20: warning: variable 'tag_killed' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *tag_killed = "";
                   ^
/datasets/git/builtin/ls-files.c:59:20: warning: variable 'tag_modified' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *tag_modified = "";
                   ^
/datasets/git/builtin/ls-files.c:60:20: warning: variable 'tag_skip_worktree' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *tag_skip_worktree = "";
                   ^
/datasets/git/builtin/ls-files.c:61:20: warning: variable 'tag_resolve_undo' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *tag_resolve_undo = "";
                   ^
/datasets/git/builtin/ls-files.c:64:32: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                          const struct cache_entry *ce, const char *path)
                                                    ^
/datasets/git/builtin/ls-files.c:67:15: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                struct stat st;
                            ^
/datasets/git/builtin/ls-files.c:71:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ce && S_ISREG(ce->ce_mode))
                                               ^
                                                {
/datasets/git/builtin/ls-files.c:74:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!lstat(path, &st) && S_ISREG(st.st_mode))
                                                             ^
                                                              {
/datasets/git/builtin/ls-files.c:90:46: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static void write_name_to_buf(struct strbuf *sb, const char *name)
                                             ^
/datasets/git/builtin/ls-files.c:94:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (line_terminator)
                            ^
                             {
/datasets/git/builtin/ls-files.c:96:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/ls-files.c:100:54: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static const char *get_tag(const struct cache_entry *ce, const char *tag)
                                                     ^
/datasets/git/builtin/ls-files.c:104:42: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (tag && *tag && ((show_valid_bit && (ce->ce_flags & CE_VALID)) ||
                                                ^
/datasets/git/builtin/ls-files.c:105:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                (show_fsmonitor_bit && (ce->ce_flags & CE_FSMONITOR_VALID)))) {
                                        ^
/datasets/git/builtin/ls-files.c:105:42: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                (show_fsmonitor_bit && (ce->ce_flags & CE_FSMONITOR_VALID)))) {
                                                       ^
/datasets/git/./refs/../cache.h:173:31: note: expanded from macro 'CE_FSMONITOR_VALID'
#define CE_FSMONITOR_VALID   (1 << 21)
                              ^
/datasets/git/builtin/ls-files.c:106:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(alttag, tag, 3);
                ^~~~~~
/datasets/git/builtin/ls-files.c:106:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(alttag, tag, 3);
                ^~~~~~
/datasets/git/builtin/ls-files.c:108:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (isalpha(tag[0])) {
                    ^
/datasets/git/./git-compat-util.h:1219:20: note: expanded from macro 'isalpha'
#define isalpha(x) sane_istest(x,GIT_ALPHA)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/builtin/ls-files.c:125:51: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static void print_debug(const struct cache_entry *ce)
                                                  ^
/datasets/git/builtin/ls-files.c:128:27: warning: variable name 'sd' is too short, expected at least 3 characters [readability-identifier-length]
                const struct stat_data *sd = &ce->ce_stat_data;
                                        ^
/datasets/git/builtin/ls-files.c:143:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len > ent->len)
                           ^
                            {
/datasets/git/builtin/ls-files.c:147:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ps_matched)
                       ^
                        {
/datasets/git/builtin/ls-files.c:150:2: warning: the value returned by this function should be used [cert-err33-c]
        fputs(tag, stdout);
        ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/ls-files.c:150:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/ls-files.c:158:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/ls-files.c:158:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/ls-files.c:160:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < dir->nr; i++) {
        ^
/datasets/git/builtin/ls-files.c:162:47: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                if (!index_name_is_other(istate, ent->name, ent->len))
                                                            ^
/datasets/git/builtin/ls-files.c:162:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!index_name_is_other(istate, ent->name, ent->len))
                                                                      ^
                                                                       {
/datasets/git/builtin/ls-files.c:168:13: warning: function 'show_killed_files' has cognitive complexity of 29 (threshold 25) [readability-function-cognitive-complexity]
static void show_killed_files(struct index_state *istate,
            ^
/datasets/git/builtin/ls-files.c:172:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < dir->nr; i++) {
        ^
/datasets/git/builtin/ls-files.c:177:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (cp = ent->name; cp - ent->name < ent->len; cp = sp + 1) {
                ^
/datasets/git/builtin/ls-files.c:179:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!sp) {
                        ^
/datasets/git/builtin/ls-files.c:184:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (0 <= pos)
                                ^
/datasets/git/builtin/ls-files.c:188:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                while (pos < istate->cache_nr &&
                                ^
/datasets/git/builtin/ls-files.c:188:35: note: +1
                                while (pos < istate->cache_nr &&
                                                              ^
/datasets/git/builtin/ls-files.c:191:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (istate->cache_nr <= pos)
                                ^
/datasets/git/builtin/ls-files.c:198:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if ((ent->len < len) &&
                                ^
/datasets/git/builtin/ls-files.c:200:32: note: +1
                                             ent->name, ent->len) &&
                                                                  ^
/datasets/git/builtin/ls-files.c:205:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (0 <= index_name_pos(istate, ent->name, sp - ent->name)) {
                        ^
/datasets/git/builtin/ls-files.c:214:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (killed)
                ^
/datasets/git/builtin/ls-files.c:171:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/ls-files.c:171:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/ls-files.c:174:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                char *cp, *sp;
                ^~~~~~~~~~~~~~
/datasets/git/builtin/ls-files.c:174:9: warning: variable 'cp' is not initialized [cppcoreguidelines-init-variables]
                char *cp, *sp;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/ls-files.c:174:9: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/ls-files.c:174:14: warning: variable 'sp' is not initialized [cppcoreguidelines-init-variables]
                char *cp, *sp;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/ls-files.c:174:14: warning: variable name 'sp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/ls-files.c:175:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int pos, len, killed = 0;
                ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/ls-files.c:174:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                char *cp, *sp;
                ^
/datasets/git/builtin/ls-files.c:175:7: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
                int pos, len, killed = 0;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/ls-files.c:175:12: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
                int pos, len, killed = 0;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/ls-files.c:177:24: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cp' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (cp = ent->name; cp - ent->name < ent->len; cp = sp + 1) {
                                     ^
/datasets/git/builtin/ls-files.c:183:45: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                pos = index_name_pos(istate, ent->name, ent->len);
                                                                        ^
/datasets/git/builtin/ls-files.c:184:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (0 <= pos)
                                             ^
                                              {
/datasets/git/builtin/ls-files.c:188:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                while (pos < istate->cache_nr &&
                                ^
/datasets/git/builtin/ls-files.c:188:12: warning: backward branch (while loop) is ID-dependent due to variable reference to 'pos' and may cause performance degradation [altera-id-dependent-backward-branch]
                                while (pos < istate->cache_nr &&
                                       ^
/datasets/git/builtin/ls-files.c:189:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                       ce_stage(istate->cache[pos]))
                                       ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/builtin/ls-files.c:189:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                       ce_stage(istate->cache[pos]))
                                                                    ^
                                                                     {
/datasets/git/builtin/ls-files.c:191:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (istate->cache_nr <= pos)
                                                            ^
                                                             {
/datasets/git/builtin/ls-files.c:201:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                    istate->cache[pos]->name[ent->len] == '/')
                                                                              ^
                                                                               {
/datasets/git/builtin/ls-files.c:205:47: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        if (0 <= index_name_pos(istate, ent->name, sp - ent->name)) {
                                                                   ^
/datasets/git/builtin/ls-files.c:214:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (killed)
                           ^
                            {
/datasets/git/builtin/ls-files.c:221:13: warning: function 'show_submodule' is within a recursive call chain [misc-no-recursion]
static void show_submodule(struct repository *superproject,
            ^
/datasets/git/builtin/ls-files.c:304:13: note: example recursive call chain, starting from function 'show_ce'
static void show_ce(struct repository *repo, struct dir_struct *dir,
            ^
/datasets/git/builtin/ls-files.c:313:3: note: Frame #1: function 'show_ce' calls function 'show_submodule' here:
                show_submodule(repo, dir, ce->name);
                ^
/datasets/git/builtin/ls-files.c:232:2: note: Frame #2: function 'show_submodule' calls function 'show_files' here:
        show_files(&subrepo, dir);
        ^
/datasets/git/builtin/ls-files.c:422:4: note: Frame #3: function 'show_files' calls function 'show_ce' here:
                        show_ce(repo, dir, ce, fullname.buf,
                        ^
/datasets/git/builtin/ls-files.c:422:4: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/builtin/ls-files.c:226:68: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_submodule_init(&subrepo, superproject, path, null_oid()))
                                                                          ^
                                                                           {
/datasets/git/builtin/ls-files.c:229:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_read_index(&subrepo) < 0)
                                          ^
                                           {
/datasets/git/builtin/ls-files.c:237:8: warning: accessing fields in struct 'show_index_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct show_index_data {
       ^
/datasets/git/builtin/ls-files.c:237:8: note: use "__attribute__((aligned(32)))" to align struct 'show_index_data' to 32 bytes
/datasets/git/builtin/ls-files.c:243:48: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static size_t expand_show_index(struct strbuf *sb, const char *start,
                                               ^
/datasets/git/builtin/ls-files.c:247:14: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
        const char *end;
                    ^
                        = NULL
/datasets/git/builtin/ls-files.c:248:14: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        const char *p;
                    ^
                      = NULL
/datasets/git/builtin/ls-files.c:248:14: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/ls-files.c:250:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/builtin/ls-files.c:252:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len)
                ^
                 {
/datasets/git/builtin/ls-files.c:254:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*start != '(')
                          ^
                           {
/datasets/git/builtin/ls-files.c:259:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!end)
                 ^
                  {
/datasets/git/builtin/ls-files.c:264:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (skip_prefix(start, "(objectmode)", &p))
                                                   ^
                                                    {
/datasets/git/builtin/ls-files.c:266:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (skip_prefix(start, "(objectname)", &p))
                                                        ^
                                                         {
/datasets/git/builtin/ls-files.c:268:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (skip_prefix(start, "(stage)", &p))
                                                   ^
                                                    {
/datasets/git/builtin/ls-files.c:269:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                strbuf_addf(sb, "%d", ce_stage(data->ce));
                                      ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/builtin/ls-files.c:270:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (skip_prefix(start, "(eolinfo:index)", &p))
                                                           ^
                                                            {
/datasets/git/builtin/ls-files.c:274:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (skip_prefix(start, "(eolinfo:worktree)", &p))
                                                              ^
                                                               {
/datasets/git/builtin/ls-files.c:278:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (skip_prefix(start, "(eolattr)", &p))
                                                     ^
                                                      {
/datasets/git/builtin/ls-files.c:281:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (skip_prefix(start, "(path)", &p))
                                                  ^
                                                   {
/datasets/git/builtin/ls-files.c:283:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/ls-files.c:289:76: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static void show_ce_fmt(struct repository *repo, const struct cache_entry *ce,
                                                                           ^
/datasets/git/builtin/ls-files.c:290:4: warning: 2 adjacent parameters of 'show_ce_fmt' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                        const char *format, const char *fullname) {
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/ls-files.c:290:16: note: the first parameter in the range is 'format'
                        const char *format, const char *fullname) {
                                    ^~~~~~
/datasets/git/builtin/ls-files.c:290:36: note: the last parameter in the range is 'fullname'
                        const char *format, const char *fullname) {
                                                        ^~~~~~~~
/datasets/git/builtin/ls-files.c:296:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/ls-files.c:300:2: warning: the value returned by this function should be used [cert-err33-c]
        fwrite(sb.buf, sb.len, 1, stdout);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/ls-files.c:300:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/ls-files.c:304:13: warning: function 'show_ce' is within a recursive call chain [misc-no-recursion]
static void show_ce(struct repository *repo, struct dir_struct *dir,
            ^
/datasets/git/builtin/ls-files.c:305:33: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                    const struct cache_entry *ce, const char *fullname,
                                              ^
/datasets/git/builtin/ls-files.c:305:37: warning: 2 adjacent parameters of 'show_ce' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                    const struct cache_entry *ce, const char *fullname,
                                                  ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/ls-files.c:305:49: note: the first parameter in the range is 'fullname'
                    const struct cache_entry *ce, const char *fullname,
                                                              ^~~~~~~~
/datasets/git/builtin/ls-files.c:306:19: note: the last parameter in the range is 'tag'
                    const char *tag)
                                ^~~
/datasets/git/builtin/ls-files.c:308:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (max_prefix_len > strlen(fullname))
                                              ^
                                               {
/datasets/git/builtin/ls-files.c:311:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (recurse_submodules && S_ISGITLINK(ce->ce_mode) &&
                                  ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/builtin/ls-files.c:314:62: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        } else if (match_pathspec(repo->index, &pathspec, fullname, strlen(fullname),
                                                                    ^
/datasets/git/builtin/ls-files.c:317:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                  S_ISGITLINK(ce->ce_mode))) {
                                  ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/builtin/ls-files.c:327:4: warning: the value returned by this function should be used [cert-err33-c]
                        fputs(tag, stdout);
                        ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/ls-files.c:327:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/ls-files.c:333:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                               ce_stage(ce));
                               ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/builtin/ls-files.c:343:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/builtin/ls-files.c:345:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!istate->resolve_undo)
                                  ^
                                   {
/datasets/git/builtin/ls-files.c:348:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(item, istate->resolve_undo) {
                                  ^
/datasets/git/builtin/ls-files.c:350:29: warning: variable name 'ui' is too short, expected at least 3 characters [readability-identifier-length]
                struct resolve_undo_info *ui = item->util;
                                          ^
/datasets/git/builtin/ls-files.c:351:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int i, len;
                ^~~~~~~~~~~
/datasets/git/builtin/ls-files.c:351:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i, len;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/ls-files.c:351:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/ls-files.c:351:10: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
                int i, len;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/ls-files.c:353:9: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                len = strlen(path);
                      ^
/datasets/git/builtin/ls-files.c:354:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (len < max_prefix_len)
                                         ^
                                          {
/datasets/git/builtin/ls-files.c:357:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                    max_prefix_len, ps_matched, 0))
                                                                   ^
                                                                    {
/datasets/git/builtin/ls-files.c:359:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < 3; i++) {
                ^
/datasets/git/builtin/ls-files.c:360:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!ui->mode[i])
                                         ^
                                          {
/datasets/git/builtin/ls-files.c:371:58: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                       const char *fullname, const struct cache_entry *ce)
                                                                       ^
/datasets/git/builtin/ls-files.c:378:37: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                               const struct cache_entry *ce)
                                                         ^
/datasets/git/builtin/ls-files.c:381:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo->submodule_prefix)
                                   ^
                                    {
/datasets/git/builtin/ls-files.c:386:13: warning: function 'show_files' is within a recursive call chain [misc-no-recursion]
static void show_files(struct repository *repo, struct dir_struct *dir)
            ^
/datasets/git/builtin/ls-files.c:386:13: warning: function 'show_files' has cognitive complexity of 58 (threshold 25) [readability-function-cognitive-complexity]
/datasets/git/builtin/ls-files.c:392:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (show_others || show_killed) {
        ^
/datasets/git/builtin/ls-files.c:392:18: note: +1
        if (show_others || show_killed) {
                        ^
/datasets/git/builtin/ls-files.c:393:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!show_others)
                ^
/datasets/git/builtin/ls-files.c:396:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (show_others)
                ^
/datasets/git/builtin/ls-files.c:398:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (show_killed)
                ^
/datasets/git/builtin/ls-files.c:402:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!(show_cached || show_stage || show_deleted || show_modified))
        ^
/datasets/git/builtin/ls-files.c:402:50: note: +1
        if (!(show_cached || show_stage || show_deleted || show_modified))
                                                        ^
/datasets/git/builtin/ls-files.c:405:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!show_sparse_dirs)
        ^
/datasets/git/builtin/ls-files.c:408:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < repo->index->cache_nr; i++) {
        ^
/datasets/git/builtin/ls-files.c:415:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((dir->flags & DIR_SHOW_IGNORED) &&
                ^
/datasets/git/builtin/ls-files.c:415:39: note: +1
                if ((dir->flags & DIR_SHOW_IGNORED) &&
                                                    ^
/datasets/git/builtin/ls-files.c:418:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ce->ce_flags & CE_UPDATE)
                ^
/datasets/git/builtin/ls-files.c:420:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((show_cached || show_stage) &&
                ^
/datasets/git/builtin/ls-files.c:420:35: note: +1
                if ((show_cached || show_stage) &&
                                                ^
/datasets/git/builtin/ls-files.c:420:20: note: +1
                if ((show_cached || show_stage) &&
                                 ^
/datasets/git/builtin/ls-files.c:421:23: note: +1
                    (!show_unmerged || ce_stage(ce))) {
                                    ^
/datasets/git/builtin/ls-files.c:423:18: note: +3, including nesting penalty of 2, nesting level increased to 3
                                ce_stage(ce) ? tag_unmerged :
                                             ^
/datasets/git/builtin/ls-files.c:424:27: note: +4, including nesting penalty of 3, nesting level increased to 4
                                (ce_skip_worktree(ce) ? tag_skip_worktree :
                                                      ^
/datasets/git/builtin/ls-files.c:426:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (skipping_duplicates)
                        ^
/datasets/git/builtin/ls-files.c:430:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!(show_deleted || show_modified))
                ^
/datasets/git/builtin/ls-files.c:430:22: note: +1
                if (!(show_deleted || show_modified))
                                   ^
/datasets/git/builtin/ls-files.c:432:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ce_skip_worktree(ce))
                ^
/datasets/git/builtin/ls-files.c:435:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (stat_err && (errno != ENOENT && errno != ENOTDIR))
                ^
/datasets/git/builtin/ls-files.c:435:16: note: +1
                if (stat_err && (errno != ENOENT && errno != ENOTDIR))
                             ^
/datasets/git/builtin/ls-files.c:437:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (stat_err && show_deleted) {
                ^
/datasets/git/builtin/ls-files.c:437:16: note: +1
                if (stat_err && show_deleted) {
                             ^
/datasets/git/builtin/ls-files.c:439:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (skipping_duplicates)
                        ^
/datasets/git/builtin/ls-files.c:442:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (show_modified &&
                ^
/datasets/git/builtin/ls-files.c:442:21: note: +1
                if (show_modified &&
                                  ^
/datasets/git/builtin/ls-files.c:443:17: note: +1
                    (stat_err || ie_modified(repo->index, ce, &st, 0))) {
                              ^
/datasets/git/builtin/ls-files.c:445:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (skipping_duplicates)
                        ^
/datasets/git/builtin/ls-files.c:454:4: note: +2, including nesting penalty of 1, nesting level increased to 2
                        for (j = i + 1; j < repo->index->cache_nr; j++)
                        ^
/datasets/git/builtin/ls-files.c:455:5: note: +3, including nesting penalty of 2, nesting level increased to 3
                                if (strcmp(ce->name, cache[j]->name))
                                ^
/datasets/git/builtin/ls-files.c:388:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/ls-files.c:388:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/ls-files.c:393:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!show_others)
                                 ^
                                  {
/datasets/git/builtin/ls-files.c:394:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        dir->flags |= DIR_COLLECT_KILLED_ONLY;
                        ^             ~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/ls-files.c:396:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (show_others)
                                ^
                                 {
/datasets/git/builtin/ls-files.c:398:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (show_killed)
                                ^
                                 {
/datasets/git/builtin/ls-files.c:402:68: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(show_cached || show_stage || show_deleted || show_modified))
                                                                          ^
                                                                           {
/datasets/git/builtin/ls-files.c:405:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!show_sparse_dirs)
                              ^
                               {
/datasets/git/builtin/ls-files.c:408:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < repo->index->cache_nr; i++) {
                    ^
/datasets/git/builtin/ls-files.c:409:29: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                const struct cache_entry *ce = repo->index->cache[i];
                                          ^
/datasets/git/builtin/ls-files.c:410:15: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                struct stat st;
                            ^
/datasets/git/builtin/ls-files.c:411:7: warning: variable 'stat_err' is not initialized [cppcoreguidelines-init-variables]
                int stat_err;
                    ^
                             = 0
/datasets/git/builtin/ls-files.c:415:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((dir->flags & DIR_SHOW_IGNORED) &&
                     ^            ~~~~~~~~~~~~~~~~
/datasets/git/builtin/ls-files.c:416:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        !ce_excluded(dir, repo->index, fullname.buf, ce))
                                                                         ^
                                                                          {
/datasets/git/builtin/ls-files.c:418:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce->ce_flags & CE_UPDATE)
                    ^
/datasets/git/builtin/ls-files.c:418:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce->ce_flags & CE_UPDATE)
                                   ^
/datasets/git/./refs/../cache.h:167:31: note: expanded from macro 'CE_UPDATE'
#define CE_UPDATE            (1 << 16)
                              ^
/datasets/git/builtin/ls-files.c:418:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ce->ce_flags & CE_UPDATE)
                                             ^
                                              {
/datasets/git/builtin/ls-files.c:421:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (!show_unmerged || ce_stage(ce))) {
                                       ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/builtin/ls-files.c:423:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                ce_stage(ce) ? tag_unmerged :
                                ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/builtin/ls-files.c:424:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                (ce_skip_worktree(ce) ? tag_skip_worktree :
                                 ^
/datasets/git/./refs/../cache.h:244:31: note: expanded from macro 'ce_skip_worktree'
#define ce_skip_worktree(ce) ((ce)->ce_flags & CE_SKIP_WORKTREE)
                              ^                ~~~~~~~~~~~~~~~~
/datasets/git/builtin/ls-files.c:426:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (skipping_duplicates)
                                                ^
                                                 {
/datasets/git/builtin/ls-files.c:430:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(show_deleted || show_modified))
                                                     ^
                                                      {
/datasets/git/builtin/ls-files.c:432:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce_skip_worktree(ce))
                    ^
/datasets/git/./refs/../cache.h:244:31: note: expanded from macro 'ce_skip_worktree'
#define ce_skip_worktree(ce) ((ce)->ce_flags & CE_SKIP_WORKTREE)
                              ^                ~~~~~~~~~~~~~~~~
/datasets/git/builtin/ls-files.c:432:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ce_skip_worktree(ce))
                                         ^
                                          {
/datasets/git/builtin/ls-files.c:435:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (stat_err && (errno != ENOENT && errno != ENOTDIR))
                                                                      ^
                                                                       {
/datasets/git/builtin/ls-files.c:439:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (skipping_duplicates)
                                                ^
                                                 {
/datasets/git/builtin/ls-files.c:445:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (skipping_duplicates)
                                                ^
                                                 {
/datasets/git/builtin/ls-files.c:452:8: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
                        int j;
                            ^
                              = 0
/datasets/git/builtin/ls-files.c:452:8: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/ls-files.c:454:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (j = i + 1; j < repo->index->cache_nr; j++)
                        ^
/datasets/git/builtin/ls-files.c:454:20: warning: backward branch (for loop) is ID-dependent due to variable reference to 'j' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (j = i + 1; j < repo->index->cache_nr; j++)
                                        ^
/datasets/git/builtin/ls-files.c:454:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (j = i + 1; j < repo->index->cache_nr; j++)
                                                                       ^
                                                                        {
/datasets/git/builtin/ls-files.c:455:9: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                                if (strcmp(ce->name, cache[j]->name))
                                    ^
                                                                     != 0
/datasets/git/builtin/ls-files.c:455:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (strcmp(ce->name, cache[j]->name))
                                                                     ^
                                                                      {
/datasets/git/builtin/ls-files.c:470:6: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        int pos;
            ^
                = 0
/datasets/git/builtin/ls-files.c:471:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned int first, last;
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/ls-files.c:471:15: warning: variable 'first' is not initialized [cppcoreguidelines-init-variables]
        unsigned int first, last;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/ls-files.c:471:22: warning: variable 'last' is not initialized [cppcoreguidelines-init-variables]
        unsigned int first, last;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/ls-files.c:473:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!prefix || !istate->cache_nr)
                                         ^
                                          {
/datasets/git/builtin/ls-files.c:475:39: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        pos = index_name_pos(istate, prefix, prefixlen);
                                             ^
/datasets/git/builtin/ls-files.c:476:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pos < 0)
                    ^
                     {
/datasets/git/builtin/ls-files.c:480:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (last > first) {
        ^
/datasets/git/builtin/ls-files.c:480:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'last' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (last > first) {
               ^
/datasets/git/builtin/ls-files.c:481:14: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int next = first + ((last - first) >> 1);
                           ^
/datasets/git/builtin/ls-files.c:481:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                int next = first + ((last - first) >> 1);
                                    ^                 ~
/datasets/git/builtin/ls-files.c:482:29: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                const struct cache_entry *ce = istate->cache[next];
                                          ^
/datasets/git/builtin/ls-files.c:489:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        MOVE_ARRAY(istate->cache, istate->cache + pos, last - pos);
        ^
/datasets/git/./git-compat-util.h:1102:63: note: expanded from macro 'MOVE_ARRAY'
#define MOVE_ARRAY(dst, src, n) move_array((dst), (src), (n), sizeof(*(dst)) + \
                                                              ^
/datasets/git/builtin/ls-files.c:495:6: warning: variable 'common_prefix_len' is not initialized [cppcoreguidelines-init-variables]
        int common_prefix_len;
            ^
                              = 0
/datasets/git/builtin/ls-files.c:497:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!common_prefix)
                           ^
                            {
/datasets/git/builtin/ls-files.c:500:22: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        common_prefix_len = strlen(common_prefix);
                            ^
/datasets/git/builtin/ls-files.c:506:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (common_prefix[common_prefix_len - 1] == '/')
                                                        ^
                                                         {
/datasets/git/builtin/ls-files.c:516:10: warning: 2 adjacent parameters of 'read_one_entry_opt' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                              unsigned mode, int opt)
                              ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/ls-files.c:516:19: note: the first parameter in the range is 'mode'
                              unsigned mode, int opt)
                                       ^~~~
/datasets/git/builtin/ls-files.c:516:29: note: the last parameter in the range is 'opt'
                              unsigned mode, int opt)
                                                 ^~~
/datasets/git/builtin/ls-files.c:516:25: note: 'unsigned int' and 'int' may be implicitly converted
                              unsigned mode, int opt)
                                             ^
/datasets/git/builtin/ls-files.c:518:6: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int len;
            ^
                = 0
/datasets/git/builtin/ls-files.c:519:22: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
        struct cache_entry *ce;
                            ^
                               = NULL
/datasets/git/builtin/ls-files.c:519:22: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/ls-files.c:521:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (S_ISDIR(mode))
                          ^
                           {
/datasets/git/builtin/ls-files.c:524:8: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        len = strlen(pathname);
              ^
/datasets/git/builtin/ls-files.c:530:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(ce->name, base->buf, base->len);
        ^~~~~~
/datasets/git/builtin/ls-files.c:530:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(ce->name, base->buf, base->len);
        ^~~~~~
/datasets/git/builtin/ls-files.c:531:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(ce->name + base->len, pathname, len+1);
        ^~~~~~
/datasets/git/builtin/ls-files.c:531:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(ce->name + base->len, pathname, len+1);
        ^~~~~~
/datasets/git/builtin/ls-files.c:543:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                  ADD_CACHE_OK_TO_ADD|ADD_CACHE_SKIP_DFCHECK);
                                  ^
/datasets/git/./refs/../cache.h:840:29: note: expanded from macro 'ADD_CACHE_OK_TO_ADD'
#define ADD_CACHE_OK_TO_ADD 1           /* Ok to add */
                            ^
/datasets/git/builtin/ls-files.c:568:7: warning: 2 adjacent parameters of 'overlay_tree_on_index' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                           const char *tree_name, const char *prefix)
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/ls-files.c:568:19: note: the first parameter in the range is 'tree_name'
                           const char *tree_name, const char *prefix)
                                       ^~~~~~~~~
/datasets/git/builtin/ls-files.c:568:42: note: the last parameter in the range is 'prefix'
                           const char *tree_name, const char *prefix)
                                                              ^~~~~~
/datasets/git/builtin/ls-files.c:570:15: warning: variable 'tree' is not initialized [cppcoreguidelines-init-variables]
        struct tree *tree;
                     ^
                          = NULL
/datasets/git/builtin/ls-files.c:574:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/ls-files.c:574:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/ls-files.c:575:17: warning: variable name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
        read_tree_fn_t fn = NULL;
                       ^
/datasets/git/builtin/ls-files.c:576:6: warning: variable 'err' is not initialized [cppcoreguidelines-init-variables]
        int err;
            ^
                = 0
/datasets/git/builtin/ls-files.c:578:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid(tree_name, &oid))
                                     ^
                                      {
/datasets/git/builtin/ls-files.c:581:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!tree)
                  ^
                   {
/datasets/git/builtin/ls-files.c:587:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < istate->cache_nr; i++) {
        ^
/datasets/git/builtin/ls-files.c:587:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'cache_nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < istate->cache_nr; i++) {
                    ^
/datasets/git/builtin/ls-files.c:588:23: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                struct cache_entry *ce = istate->cache[i];
                                    ^
/datasets/git/builtin/ls-files.c:589:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!ce_stage(ce))
                     ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/builtin/ls-files.c:589:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ce_stage(ce))
                                  ^
                                   {
/datasets/git/builtin/ls-files.c:591:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ce->ce_flags |= CE_STAGEMASK;
                ^
/datasets/git/builtin/ls-files.c:597:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                parse_pathspec(&pathspec, PATHSPEC_ALL_MAGIC,
                                          ^
/datasets/git/./pathspec.h:15:3: note: expanded from macro 'PATHSPEC_ALL_MAGIC'
        (PATHSPEC_FROMTOP       | \
         ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./pathspec.h:7:26: note: expanded from macro 'PATHSPEC_FROMTOP'
#define PATHSPEC_FROMTOP        (1<<0)
                                ^
/datasets/git/builtin/ls-files.c:598:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                               PATHSPEC_PREFER_CWD, prefix, matchbuf);
                               ^
/datasets/git/./pathspec.h:65:30: note: expanded from macro 'PATHSPEC_PREFER_CWD'
#define PATHSPEC_PREFER_CWD (1<<0) /* No args means match cwd */
                             ^
/datasets/git/builtin/ls-files.c:599:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/builtin/ls-files.c:600:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(&pathspec, 0, sizeof(pathspec));
                ^~~~~~
/datasets/git/builtin/ls-files.c:600:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(&pathspec, 0, sizeof(pathspec));
                ^~~~~~
/datasets/git/builtin/ls-files.c:607:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; !fn && i < istate->cache_nr; i++) {
        ^
/datasets/git/builtin/ls-files.c:607:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'cache_nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; !fn && i < istate->cache_nr; i++) {
                    ^
/datasets/git/builtin/ls-files.c:608:29: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                const struct cache_entry *ce = istate->cache[i];
                                          ^
/datasets/git/builtin/ls-files.c:609:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce_stage(ce) == 1)
                    ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/builtin/ls-files.c:609:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ce_stage(ce) == 1)
                                      ^
                                       {
/datasets/git/builtin/ls-files.c:613:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!fn)
                ^
                 {
/datasets/git/builtin/ls-files.c:616:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err)
                ^
                 {
/datasets/git/builtin/ls-files.c:624:3: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                QSORT(istate->cache, istate->cache_nr, cmp_cache_name_compare);
                ^
/datasets/git/./git-compat-util.h:1304:56: note: expanded from macro 'QSORT'
#define QSORT(base, n, compar) sane_qsort((base), (n), sizeof(*(base)), compar)
                                                       ^
/datasets/git/builtin/ls-files.c:627:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < istate->cache_nr; i++) {
        ^
/datasets/git/builtin/ls-files.c:627:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'cache_nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < istate->cache_nr; i++) {
                    ^
/datasets/git/builtin/ls-files.c:628:23: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                struct cache_entry *ce = istate->cache[i];
                                    ^
/datasets/git/builtin/ls-files.c:629:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                switch (ce_stage(ce)) {
                        ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/builtin/ls-files.c:642:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            !strcmp(last_stage0->name, ce->name))
                                                                 ^
                                                                  {
/datasets/git/builtin/ls-files.c:643:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                ce->ce_flags |= CE_UPDATE;
                                ^
/datasets/git/builtin/ls-files.c:643:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                ce->ce_flags |= CE_UPDATE;
                                                ^
/datasets/git/./refs/../cache.h:167:31: note: expanded from macro 'CE_UPDATE'
#define CE_UPDATE            (1 << 16)
                              ^
/datasets/git/builtin/ls-files.c:658:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/ls-files.c:671:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/ls-files.c:684:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/ls-files.c:685:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_ARG(arg);
        ^
/datasets/git/./parse-options.h:288:29: note: expanded from macro 'BUG_ON_OPT_ARG'
#define BUG_ON_OPT_ARG(arg) do { \
                            ^
/datasets/git/builtin/ls-files.c:693:5: warning: function 'cmd_ls_files' has cognitive complexity of 40 (threshold 25) [readability-function-cognitive-complexity]
int cmd_ls_files(int argc, const char **argv, const char *cmd_prefix)
    ^
/datasets/git/builtin/ls-files.c:770:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (argc == 2 && !strcmp(argv[1], "-h"))
        ^
/datasets/git/builtin/ls-files.c:770:16: note: +1
        if (argc == 2 && !strcmp(argv[1], "-h"))
                      ^
/datasets/git/builtin/ls-files.c:777:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (prefix)
        ^
/datasets/git/builtin/ls-files.c:781:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (repo_read_index(the_repository) < 0)
        ^
/datasets/git/builtin/ls-files.c:787:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < exclude_list.nr; i++) {
        ^
/datasets/git/builtin/ls-files.c:791:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (format && (show_stage || show_others || show_killed ||
        ^
/datasets/git/builtin/ls-files.c:791:13: note: +1
        if (format && (show_stage || show_others || show_killed ||
                   ^
/datasets/git/builtin/ls-files.c:792:56: note: +1
                show_resolve_undo || skipping_duplicates || show_eol || show_tag))
                                                                     ^
/datasets/git/builtin/ls-files.c:797:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (show_tag || show_valid_bit || show_fsmonitor_bit) {
        ^
/datasets/git/builtin/ls-files.c:797:33: note: +1
        if (show_tag || show_valid_bit || show_fsmonitor_bit) {
                                       ^
/datasets/git/builtin/ls-files.c:807:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (show_modified || show_others || show_deleted || (dir.flags & DIR_SHOW_IGNORED) || show_killed)
        ^
/datasets/git/builtin/ls-files.c:807:85: note: +1
        if (show_modified || show_others || show_deleted || (dir.flags & DIR_SHOW_IGNORED) || show_killed)
                                                                                           ^
/datasets/git/builtin/ls-files.c:809:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (show_unmerged)
        ^
/datasets/git/builtin/ls-files.c:815:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (show_tag || show_stage)
        ^
/datasets/git/builtin/ls-files.c:815:15: note: +1
        if (show_tag || show_stage)
                     ^
/datasets/git/builtin/ls-files.c:817:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (dir.exclude_per_dir)
        ^
/datasets/git/builtin/ls-files.c:820:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (require_work_tree && !is_inside_work_tree())
        ^
/datasets/git/builtin/ls-files.c:820:24: note: +1
        if (require_work_tree && !is_inside_work_tree())
                              ^
/datasets/git/builtin/ls-files.c:823:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (recurse_submodules &&
        ^
/datasets/git/builtin/ls-files.c:823:25: note: +1
        if (recurse_submodules &&
                               ^
/datasets/git/builtin/ls-files.c:825:57: note: +1
             show_killed || show_modified || show_resolve_undo || with_tree))
                                                               ^
/datasets/git/builtin/ls-files.c:828:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (recurse_submodules && error_unmatch)
        ^
/datasets/git/builtin/ls-files.c:828:25: note: +1
        if (recurse_submodules && error_unmatch)
                               ^
/datasets/git/builtin/ls-files.c:844:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (recurse_submodules)
        ^
/datasets/git/builtin/ls-files.c:846:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/builtin/ls-files.c:853:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (pathspec.nr && error_unmatch)
        ^
/datasets/git/builtin/ls-files.c:853:18: note: +1
        if (pathspec.nr && error_unmatch)
                        ^
/datasets/git/builtin/ls-files.c:856:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((dir.flags & DIR_SHOW_IGNORED) && !show_others && !show_cached)
        ^
/datasets/git/builtin/ls-files.c:856:53: note: +1
        if ((dir.flags & DIR_SHOW_IGNORED) && !show_others && !show_cached)
                                                           ^
/datasets/git/builtin/ls-files.c:859:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((dir.flags & DIR_SHOW_IGNORED) && !exc_given)
        ^
/datasets/git/builtin/ls-files.c:859:37: note: +1
        if ((dir.flags & DIR_SHOW_IGNORED) && !exc_given)
                                           ^
/datasets/git/builtin/ls-files.c:863:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!(show_stage || show_deleted || show_others || show_unmerged ||
        ^
/datasets/git/builtin/ls-files.c:864:37: note: +1
              show_killed || show_modified || show_resolve_undo))
                                           ^
/datasets/git/builtin/ls-files.c:867:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (with_tree) {
        ^
/datasets/git/builtin/ls-files.c:872:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (show_stage || show_unmerged)
                ^
/datasets/git/builtin/ls-files.c:872:18: note: +1
                if (show_stage || show_unmerged)
                               ^
/datasets/git/builtin/ls-files.c:879:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (show_resolve_undo)
        ^
/datasets/git/builtin/ls-files.c:882:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ps_matched && report_path_error(ps_matched, &pathspec)) {
        ^
/datasets/git/builtin/ls-files.c:882:17: note: +1
        if (ps_matched && report_path_error(ps_matched, &pathspec)) {
                       ^
/datasets/git/builtin/ls-files.c:695:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int require_work_tree = 0, show_tag = 0, i;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/ls-files.c:695:43: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int require_work_tree = 0, show_tag = 0, i;
                                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/ls-files.c:695:43: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/ls-files.c:696:8: warning: variable 'max_prefix' is not initialized [cppcoreguidelines-init-variables]
        char *max_prefix;
              ^
                         = NULL
/datasets/git/builtin/ls-files.c:698:23: warning: variable 'pl' is not initialized [cppcoreguidelines-init-variables]
        struct pattern_list *pl;
                             ^
                                = NULL
/datasets/git/builtin/ls-files.c:698:23: warning: variable name 'pl' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/ls-files.c:702:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT('z', NULL, &line_terminator,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/ls-files.c:704:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('t', NULL, &show_tag,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/ls-files.c:706:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('v', NULL, &show_valid_bit,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/ls-files.c:708:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('f', NULL, &show_fsmonitor_bit,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/ls-files.c:710:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('c', "cached", &show_cached,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/ls-files.c:712:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('d', "deleted", &show_deleted,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/ls-files.c:714:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('m', "modified", &show_modified,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/ls-files.c:716:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('o', "others", &show_others,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/ls-files.c:718:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT('i', "ignored", &dir.flags,
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/ls-files.c:721:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('s', "stage", &show_stage,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/ls-files.c:723:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('k', "killed", &show_killed,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/ls-files.c:725:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT(0, "directory", &dir.flags,
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/ls-files.c:728:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "eol", &show_eol, N_("show line endings of files")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/ls-files.c:732:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('u', "unmerged", &show_unmerged,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/ls-files.c:734:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "resolve-undo", &show_resolve_undo,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/ls-files.c:746:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        PARSE_OPT_NOARG | PARSE_OPT_NONEG,
                        ^
/datasets/git/./parse-options.h:169:47: note: expanded from macro 'OPT_CALLBACK_F'
        { OPTION_CALLBACK, (s), (l), (v), (a), (h), (f), (cb) }
                                                     ^
/datasets/git/builtin/ls-files.c:748:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT_F(0, "full-name", &prefix_len,
                ^
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/ls-files.c:751:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "recurse-submodules", &recurse_submodules,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/ls-files.c:753:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "error-unmatch", &error_unmatch,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/ls-files.c:758:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "debug", &debug_mode, N_("show debugging data")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/ls-files.c:759:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "deduplicate", &skipping_duplicates,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/ls-files.c:761:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "sparse", &show_sparse_dirs,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/ls-files.c:770:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc == 2 && !strcmp(argv[1], "-h"))
                                                ^
                                                 {
/datasets/git/builtin/ls-files.c:777:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prefix)
                   ^
                    {
/datasets/git/builtin/ls-files.c:778:16: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                prefix_len = strlen(prefix);
                             ^
/datasets/git/builtin/ls-files.c:781:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_read_index(the_repository) < 0)
                                                ^
                                                 {
/datasets/git/builtin/ls-files.c:784:2: warning: Value stored to 'argc' is never read [clang-analyzer-deadcode.DeadStores]
        argc = parse_options(argc, argv, prefix, builtin_ls_files_options,
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/ls-files.c:784:2: note: Value stored to 'argc' is never read
        argc = parse_options(argc, argv, prefix, builtin_ls_files_options,
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/ls-files.c:787:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < exclude_list.nr; i++) {
        ^
/datasets/git/builtin/ls-files.c:792:69: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                show_resolve_undo || skipping_duplicates || show_eol || show_tag))
                                                                                  ^
                                                                                   {
/datasets/git/builtin/ls-files.c:807:55: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (show_modified || show_others || show_deleted || (dir.flags & DIR_SHOW_IGNORED) || show_killed)
                                                             ^           ~~~~~~~~~~~~~~~~
/datasets/git/builtin/ls-files.c:807:100: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (show_modified || show_others || show_deleted || (dir.flags & DIR_SHOW_IGNORED) || show_killed)
                                                                                                          ^
                                                                                                           {
/datasets/git/builtin/ls-files.c:809:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (show_unmerged)
                          ^
                           {
/datasets/git/builtin/ls-files.c:815:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (show_tag || show_stage)
                                   ^
                                    {
/datasets/git/builtin/ls-files.c:817:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (dir.exclude_per_dir)
                                ^
                                 {
/datasets/git/builtin/ls-files.c:820:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (require_work_tree && !is_inside_work_tree())
                                                        ^
                                                         {
/datasets/git/builtin/ls-files.c:825:71: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
             show_killed || show_modified || show_resolve_undo || with_tree))
                                                                             ^
                                                                              {
/datasets/git/builtin/ls-files.c:828:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (recurse_submodules && error_unmatch)
                                                ^
                                                 {
/datasets/git/builtin/ls-files.c:833:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_PREFER_CWD,
                       ^
/datasets/git/./pathspec.h:65:30: note: expanded from macro 'PATHSPEC_PREFER_CWD'
#define PATHSPEC_PREFER_CWD (1<<0) /* No args means match cwd */
                             ^
/datasets/git/builtin/ls-files.c:844:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (recurse_submodules)
                               ^
                                {
/datasets/git/builtin/ls-files.c:846:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/ls-files.c:853:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pathspec.nr && error_unmatch)
                                         ^
                                          {
/datasets/git/builtin/ls-files.c:856:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((dir.flags & DIR_SHOW_IGNORED) && !show_others && !show_cached)
             ^           ~~~~~~~~~~~~~~~~
/datasets/git/builtin/ls-files.c:856:69: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((dir.flags & DIR_SHOW_IGNORED) && !show_others && !show_cached)
                                                                           ^
                                                                            {
/datasets/git/builtin/ls-files.c:859:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((dir.flags & DIR_SHOW_IGNORED) && !exc_given)
             ^           ~~~~~~~~~~~~~~~~
/datasets/git/builtin/ls-files.c:859:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((dir.flags & DIR_SHOW_IGNORED) && !exc_given)
                                                         ^
                                                          {
/datasets/git/builtin/ls-files.c:864:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
              show_killed || show_modified || show_resolve_undo))
                                                                 ^
                                                                  {
/datasets/git/builtin/ls-files.c:872:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (show_stage || show_unmerged)
                                                ^
                                                 {
/datasets/git/builtin/ls-files.c:879:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (show_resolve_undo)
                              ^
                               {
/datasets/git/builtin/ls-files.c:883:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "Did you forget to 'git add'?\n");
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/ls-files.c:883:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/ls-remote.c:3:1: warning: #includes are not sorted properly [llvm-include-order]
#include "transport.h"
^        ~~~~~~~~~~~~~
         "ref-filter.h"
/datasets/git/builtin/ls-remote.c:21:14: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        const char *p;
                    ^
                      = NULL
/datasets/git/builtin/ls-remote.c:21:14: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/ls-remote.c:22:8: warning: variable 'pathbuf' is not initialized [cppcoreguidelines-init-variables]
        char *pathbuf;
              ^
                      = NULL
/datasets/git/builtin/ls-remote.c:24:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!pattern)
                     ^
                      {
/datasets/git/builtin/ls-remote.c:28:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((p = *(pattern++)) != NULL) {
        ^
/datasets/git/builtin/ls-remote.c:28:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((p = *(pattern++)) != NULL) {
               ^
/datasets/git/builtin/ls-remote.c:38:5: warning: function 'cmd_ls_remote' has cognitive complexity of 26 (threshold 25) [readability-function-cognitive-complexity]
int cmd_ls_remote(int argc, const char **argv, const char *prefix)
    ^
/datasets/git/builtin/ls-remote.c:89:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (argc > 1) {
        ^
/datasets/git/builtin/ls-remote.c:92:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 1; i < argc; i++) {
                ^
/datasets/git/builtin/ls-remote.c:97:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (flags & REF_TAGS)
        ^
/datasets/git/builtin/ls-remote.c:99:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (flags & REF_HEADS)
        ^
/datasets/git/builtin/ls-remote.c:103:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!remote) {
        ^
/datasets/git/builtin/ls-remote.c:104:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (dest)
                ^
/datasets/git/builtin/ls-remote.c:108:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!remote->url_nr)
        ^
/datasets/git/builtin/ls-remote.c:111:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (get_url) {
        ^
/datasets/git/builtin/ls-remote.c:117:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (uploadpack)
        ^
/datasets/git/builtin/ls-remote.c:119:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (server_options.nr)
        ^
/datasets/git/builtin/ls-remote.c:123:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ref) {
        ^
/datasets/git/builtin/ls-remote.c:128:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!dest && !quiet)
        ^
/datasets/git/builtin/ls-remote.c:128:12: note: +1
        if (!dest && !quiet)
                  ^
/datasets/git/builtin/ls-remote.c:130:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for ( ; ref; ref = ref->next) {
        ^
/datasets/git/builtin/ls-remote.c:132:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!check_ref_type(ref, flags))
                ^
/datasets/git/builtin/ls-remote.c:134:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!tail_match(pattern, ref->name))
                ^
/datasets/git/builtin/ls-remote.c:140:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (sorting_options.nr) {
        ^
/datasets/git/builtin/ls-remote.c:148:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < ref_array.nr; i++) {
        ^
/datasets/git/builtin/ls-remote.c:150:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (show_symref_target && ref->symref)
                ^
/datasets/git/builtin/ls-remote.c:150:26: note: +1
                if (show_symref_target && ref->symref)
                                       ^
/datasets/git/builtin/ls-remote.c:157:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (transport_disconnect(transport))
        ^
/datasets/git/builtin/ls-remote.c:50:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/ls-remote.c:50:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/ls-remote.c:53:17: warning: variable 'remote' is not initialized [cppcoreguidelines-init-variables]
        struct remote *remote;
                       ^
                              = NULL
/datasets/git/builtin/ls-remote.c:54:20: warning: variable 'transport' is not initialized [cppcoreguidelines-init-variables]
        struct transport *transport;
                          ^
                                    = NULL
/datasets/git/builtin/ls-remote.c:55:20: warning: variable 'ref' is not initialized [cppcoreguidelines-init-variables]
        const struct ref *ref;
                          ^
                              = NULL
/datasets/git/builtin/ls-remote.c:60:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__QUIET(&quiet, N_("do not print remote URL")),
                ^
/datasets/git/./parse-options.h:360:31: note: expanded from macro 'OPT__QUIET'
#define OPT__QUIET(var, h)    OPT_COUNTUP('q', "quiet",   (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/ls-remote.c:66:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT('t', "tags", &flags, N_("limit to tags"), REF_TAGS),
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/ls-remote.c:66:53: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT('t', "tags", &flags, N_("limit to tags"), REF_TAGS),
                                                                  ^
/datasets/git/./remote.h:203:19: note: expanded from macro 'REF_TAGS'
#define REF_TAGS        (1u << 2)
                         ^     ~
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/ls-remote.c:67:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT('h', "heads", &flags, N_("limit to heads"), REF_HEADS),
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/ls-remote.c:67:55: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT('h', "heads", &flags, N_("limit to heads"), REF_HEADS),
                                                                    ^
/datasets/git/./remote.h:202:20: note: expanded from macro 'REF_HEADS'
#define REF_HEADS       (1u << 1)
                         ^     ~
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/ls-remote.c:68:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT(0, "refs", &flags, N_("do not show peeled tags"), REF_NORMAL),
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/ls-remote.c:68:61: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT(0, "refs", &flags, N_("do not show peeled tags"), REF_NORMAL),
                                                                          ^
/datasets/git/./remote.h:201:21: note: expanded from macro 'REF_NORMAL'
#define REF_NORMAL      (1u << 0)
                         ^     ~
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/ls-remote.c:69:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "get-url", &get_url,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/ls-remote.c:72:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT_F(0, "exit-code", &status,
                ^
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/ls-remote.c:75:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "symref", &show_symref_target,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/ls-remote.c:81:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&ref_array, 0, sizeof(ref_array));
        ^~~~~~
/datasets/git/builtin/ls-remote.c:81:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&ref_array, 0, sizeof(ref_array));
        ^~~~~~
/datasets/git/builtin/ls-remote.c:90:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/builtin/ls-remote.c:90:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/ls-remote.c:92:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 1; i < argc; i++) {
                ^
/datasets/git/builtin/ls-remote.c:92:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'argc' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 1; i < argc; i++) {
                            ^
/datasets/git/builtin/ls-remote.c:97:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & REF_TAGS)
                    ^
/datasets/git/./remote.h:203:19: note: expanded from macro 'REF_TAGS'
#define REF_TAGS        (1u << 2)
                         ^     ~
/datasets/git/builtin/ls-remote.c:97:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & REF_TAGS)
                             ^
                              {
/datasets/git/builtin/ls-remote.c:99:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & REF_HEADS)
                    ^
/datasets/git/./remote.h:202:20: note: expanded from macro 'REF_HEADS'
#define REF_HEADS       (1u << 1)
                         ^     ~
/datasets/git/builtin/ls-remote.c:99:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & REF_HEADS)
                              ^
                               {
/datasets/git/builtin/ls-remote.c:104:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (dest)
                         ^
                          {
/datasets/git/builtin/ls-remote.c:108:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!remote->url_nr)
                            ^
                             {
/datasets/git/builtin/ls-remote.c:117:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (uploadpack)
                       ^
                        {
/datasets/git/builtin/ls-remote.c:119:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (server_options.nr)
                              ^
                               {
/datasets/git/builtin/ls-remote.c:128:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!dest && !quiet)
                            ^
                             {
/datasets/git/builtin/ls-remote.c:129:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "From %s\n", *remote->url);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/ls-remote.c:129:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/ls-remote.c:55:2: note: inferred assignment of ID-dependent value from ID-dependent variable transport [altera-id-dependent-backward-branch]
        const struct ref *ref;
        ^
/datasets/git/builtin/ls-remote.c:130:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for ( ; ref; ref = ref->next) {
        ^
/datasets/git/builtin/ls-remote.c:130:10: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
        for ( ; ref; ref = ref->next) {
                ^
/datasets/git/builtin/ls-remote.c:131:26: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
                struct ref_array_item *item;
                                       ^
                                            = NULL
/datasets/git/builtin/ls-remote.c:132:28: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                if (!check_ref_type(ref, flags))
                                         ^
/datasets/git/builtin/ls-remote.c:132:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!check_ref_type(ref, flags))
                                                ^
                                                 {
/datasets/git/builtin/ls-remote.c:134:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!tail_match(pattern, ref->name))
                                                    ^
                                                     {
/datasets/git/builtin/ls-remote.c:141:23: warning: variable 'sorting' is not initialized [cppcoreguidelines-init-variables]
                struct ref_sorting *sorting;
                                    ^
                                            = NULL
/datasets/git/builtin/ls-remote.c:148:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ref_array.nr; i++) {
        ^
/datasets/git/builtin/ls-remote.c:150:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (show_symref_target && ref->symref)
                                                      ^
                                                       {
/datasets/git/builtin/ls-remote.c:157:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (transport_disconnect(transport))
                                            ^
                                             {
/datasets/git/builtin/ls-tree.c:7:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "blob.h"
/datasets/git/builtin/ls-tree.c:17:12: warning: variable 'line_termination' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int line_termination = '\n';
           ^
/datasets/git/builtin/ls-tree.c:18:1: warning: replace macro with enum [modernize-macro-to-enum]
#define LS_RECURSIVE 1
^~~~~~~~
                     =,
/datasets/git/builtin/ls-tree.c:18:9: warning: macro 'LS_RECURSIVE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define LS_RECURSIVE 1
        ^
/datasets/git/builtin/ls-tree.c:19:9: warning: macro 'LS_TREE_ONLY' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define LS_TREE_ONLY (1 << 1)
        ^
/datasets/git/builtin/ls-tree.c:20:9: warning: macro 'LS_SHOW_TREES' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define LS_SHOW_TREES (1 << 2)
        ^
/datasets/git/builtin/ls-tree.c:21:12: warning: variable 'abbrev' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int abbrev;
           ^
/datasets/git/builtin/ls-tree.c:22:12: warning: variable 'ls_options' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int ls_options;
           ^
/datasets/git/builtin/ls-tree.c:23:24: warning: variable 'pathspec' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct pathspec pathspec;
                       ^
/datasets/git/builtin/ls-tree.c:24:12: warning: variable 'chomp_prefix' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int chomp_prefix;
           ^
/datasets/git/builtin/ls-tree.c:25:20: warning: variable 'ls_tree_prefix' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *ls_tree_prefix;
                   ^
/datasets/git/builtin/ls-tree.c:26:20: warning: variable 'format' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *format;
                   ^
/datasets/git/builtin/ls-tree.c:27:8: warning: accessing fields in struct 'show_tree_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct show_tree_data {
       ^
/datasets/git/builtin/ls-tree.c:27:8: note: use "__attribute__((aligned(32)))" to align struct 'show_tree_data' to 32 bytes
/datasets/git/builtin/ls-tree.c:46:3: warning: variable 'cmdmode' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} cmdmode;
  ^
/datasets/git/builtin/ls-tree.c:52:17: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
                unsigned long size;
                              ^
                                   = 0
/datasets/git/builtin/ls-tree.c:53:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (oid_object_info(the_repository, oid, &size) < 0)
                                                                    ^
                                                                     {
/datasets/git/builtin/ls-tree.c:56:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (padded)
                           ^
                            {
/datasets/git/builtin/ls-tree.c:58:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/ls-tree.c:67:47: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static size_t expand_show_tree(struct strbuf *sb, const char *start,
                                              ^
/datasets/git/builtin/ls-tree.c:71:14: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
        const char *end;
                    ^
                        = NULL
/datasets/git/builtin/ls-tree.c:72:14: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        const char *p;
                    ^
                      = NULL
/datasets/git/builtin/ls-tree.c:72:14: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/ls-tree.c:73:15: warning: variable 'errlen' is not initialized [cppcoreguidelines-init-variables]
        unsigned int errlen;
                     ^
                            = 0
/datasets/git/builtin/ls-tree.c:76:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len)
                ^
                 {
/datasets/git/builtin/ls-tree.c:78:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*start != '(')
                          ^
                           {
/datasets/git/builtin/ls-tree.c:82:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!end)
                 ^
                  {
/datasets/git/builtin/ls-tree.c:97:15: warning: Value stored to 'name' during its initialization is never read [clang-analyzer-deadcode.DeadStores]
                const char *name = data->base->buf;
                            ^~~~   ~~~~~~~~~~~~~~~
/datasets/git/builtin/ls-tree.c:97:15: note: Value stored to 'name' during its initialization is never read
                const char *name = data->base->buf;
                            ^~~~   ~~~~~~~~~~~~~~~
/datasets/git/builtin/ls-tree.c:116:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/ls-tree.c:116:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/ls-tree.c:118:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (ls_options & LS_RECURSIVE)
            ^~~~~~~~~~
/datasets/git/builtin/ls-tree.c:118:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ls_options & LS_RECURSIVE)
                                      ^
                                       {
/datasets/git/builtin/ls-tree.c:121:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!pathspec.nr)
                         ^
                          {
/datasets/git/builtin/ls-tree.c:124:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < pathspec.nr; i++) {
        ^
/datasets/git/builtin/ls-tree.c:126:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                size_t len, speclen;
                ^~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/ls-tree.c:126:10: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
                size_t len, speclen;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/ls-tree.c:126:15: warning: variable 'speclen' is not initialized [cppcoreguidelines-init-variables]
                size_t len, speclen;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/ls-tree.c:128:7: warning: function 'strncmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (strncmp(base, spec, baselen))
                    ^
                                                 != 0
/datasets/git/builtin/ls-tree.c:128:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strncmp(base, spec, baselen))
                                                 ^
                                                  {
/datasets/git/builtin/ls-tree.c:133:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (speclen <= len)
                                   ^
                                    {
/datasets/git/builtin/ls-tree.c:135:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (spec[len] && spec[len] != '/')
                                                  ^
                                                   {
/datasets/git/builtin/ls-tree.c:137:7: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (memcmp(pathname, spec, len))
                    ^
                                                != 0
/datasets/git/builtin/ls-tree.c:137:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (memcmp(pathname, spec, len))
                                                ^
                                                 {
/datasets/git/builtin/ls-tree.c:147:9: warning: variable 'baselen' is not initialized [cppcoreguidelines-init-variables]
        size_t baselen;
               ^
                       = 0
/datasets/git/builtin/ls-tree.c:149:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/ls-tree.c:160:73: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (type == OBJ_TREE && show_recursive(base->buf, base->len, pathname))
                                                                               ^
                                                                                {
/datasets/git/builtin/ls-tree.c:162:39: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (type == OBJ_TREE && recurse && !(ls_options & LS_SHOW_TREES))
                                             ^~~~~~~~~~
/datasets/git/builtin/ls-tree.c:162:52: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (type == OBJ_TREE && recurse && !(ls_options & LS_SHOW_TREES))
                                                          ^
/datasets/git/builtin/ls-tree.c:20:24: note: expanded from macro 'LS_SHOW_TREES'
#define LS_SHOW_TREES (1 << 2)
                       ^
/datasets/git/builtin/ls-tree.c:162:67: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (type == OBJ_TREE && recurse && !(ls_options & LS_SHOW_TREES))
                                                                         ^
                                                                          {
/datasets/git/builtin/ls-tree.c:164:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (type == OBJ_BLOB && (ls_options & LS_TREE_ONLY))
                                 ^~~~~~~~~~
/datasets/git/builtin/ls-tree.c:164:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (type == OBJ_BLOB && (ls_options & LS_TREE_ONLY))
                                              ^
/datasets/git/builtin/ls-tree.c:19:23: note: expanded from macro 'LS_TREE_ONLY'
#define LS_TREE_ONLY (1 << 1)
                      ^
/datasets/git/builtin/ls-tree.c:164:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (type == OBJ_BLOB && (ls_options & LS_TREE_ONLY))
                                                            ^
                                                             {
/datasets/git/builtin/ls-tree.c:170:2: warning: the value returned by this function should be used [cert-err33-c]
        fwrite(sb.buf, sb.len, 1, stdout);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/ls-tree.c:170:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/ls-tree.c:191:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ls_options & LS_TREE_ONLY)
                    ^~~~~~~~~~
/datasets/git/builtin/ls-tree.c:191:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ls_options & LS_TREE_ONLY)
                                 ^
/datasets/git/builtin/ls-tree.c:19:23: note: expanded from macro 'LS_TREE_ONLY'
#define LS_TREE_ONLY (1 << 1)
                      ^
/datasets/git/builtin/ls-tree.c:191:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ls_options & LS_TREE_ONLY)
                                              ^
                                               {
/datasets/git/builtin/ls-tree.c:196:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(ls_options & LS_SHOW_TREES))
                      ^~~~~~~~~~
/datasets/git/builtin/ls-tree.c:196:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(ls_options & LS_SHOW_TREES))
                                   ^
/datasets/git/builtin/ls-tree.c:20:24: note: expanded from macro 'LS_SHOW_TREES'
#define LS_SHOW_TREES (1 << 2)
                       ^
/datasets/git/builtin/ls-tree.c:196:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(ls_options & LS_SHOW_TREES))
                                                  ^
                                                   {
/datasets/git/builtin/ls-tree.c:218:6: warning: variable 'early' is not initialized [cppcoreguidelines-init-variables]
        int early;
            ^
                  = 0
/datasets/git/builtin/ls-tree.c:219:6: warning: variable 'recurse' is not initialized [cppcoreguidelines-init-variables]
        int recurse;
            ^
                    = 0
/datasets/git/builtin/ls-tree.c:223:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (early >= 0)
                       ^
                        {
/datasets/git/builtin/ls-tree.c:236:6: warning: variable 'early' is not initialized [cppcoreguidelines-init-variables]
        int early;
            ^
                  = 0
/datasets/git/builtin/ls-tree.c:237:6: warning: variable 'recurse' is not initialized [cppcoreguidelines-init-variables]
        int recurse;
            ^
                    = 0
/datasets/git/builtin/ls-tree.c:239:17: warning: 24 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        char size_text[24];
                       ^
/datasets/git/builtin/ls-tree.c:242:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (early >= 0)
                       ^
                        {
/datasets/git/builtin/ls-tree.c:246:17: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
                unsigned long size;
                              ^
                                   = 0
/datasets/git/builtin/ls-tree.c:247:67: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (oid_object_info(the_repository, data.oid, &size) == OBJ_BAD)
                                                                                ^
                                                                                 {
/datasets/git/builtin/ls-tree.c:249:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/ls-tree.c:266:6: warning: variable 'early' is not initialized [cppcoreguidelines-init-variables]
        int early;
            ^
                  = 0
/datasets/git/builtin/ls-tree.c:267:6: warning: variable 'recurse' is not initialized [cppcoreguidelines-init-variables]
        int recurse;
            ^
                    = 0
/datasets/git/builtin/ls-tree.c:272:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (early >= 0)
                       ^
                        {
/datasets/git/builtin/ls-tree.c:287:6: warning: variable 'early' is not initialized [cppcoreguidelines-init-variables]
        int early;
            ^
                  = 0
/datasets/git/builtin/ls-tree.c:288:6: warning: variable 'recurse' is not initialized [cppcoreguidelines-init-variables]
        int recurse;
            ^
                    = 0
/datasets/git/builtin/ls-tree.c:292:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (early >= 0)
                       ^
                        {
/datasets/git/builtin/ls-tree.c:299:8: warning: accessing fields in struct 'ls_tree_cmdmode_to_fmt' is inefficient due to padding; only needs 20 bytes but is using 24 bytes [altera-struct-pack-align]
struct ls_tree_cmdmode_to_fmt {
       ^
/datasets/git/builtin/ls-tree.c:299:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'ls_tree_cmdmode_to_fmt'
/datasets/git/builtin/ls-tree.c:299:8: warning: accessing fields in struct 'ls_tree_cmdmode_to_fmt' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct ls_tree_cmdmode_to_fmt {
       ^
/datasets/git/builtin/ls-tree.c:299:8: note: use "__attribute__((aligned(32)))" to align struct 'ls_tree_cmdmode_to_fmt' to 32 bytes
/datasets/git/builtin/ls-tree.c:305:38: warning: variable 'ls_tree_cmdmode_format' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct ls_tree_cmdmode_to_fmt ls_tree_cmdmode_format[] = {
                                     ^
/datasets/git/builtin/ls-tree.c:335:15: warning: variable 'tree' is not initialized [cppcoreguidelines-init-variables]
        struct tree *tree;
                     ^
                          = NULL
/datasets/git/builtin/ls-tree.c:336:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, full_tree = 0;
        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/ls-tree.c:336:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, full_tree = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/ls-tree.c:336:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/ls-tree.c:337:17: warning: variable name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
        read_tree_fn_t fn = NULL;
                       ^
/datasets/git/builtin/ls-tree.c:339:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT('d', NULL, &ls_options, N_("only show trees"),
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/ls-tree.c:340:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        LS_TREE_ONLY),
                        ^
/datasets/git/builtin/ls-tree.c:19:23: note: expanded from macro 'LS_TREE_ONLY'
#define LS_TREE_ONLY (1 << 1)
                      ^
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/ls-tree.c:341:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT('r', NULL, &ls_options, N_("recurse into subtrees"),
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/ls-tree.c:343:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT('t', NULL, &ls_options, N_("show trees when recursing"),
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/ls-tree.c:344:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        LS_SHOW_TREES),
                        ^
/datasets/git/builtin/ls-tree.c:20:24: note: expanded from macro 'LS_SHOW_TREES'
#define LS_SHOW_TREES (1 << 2)
                       ^
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/ls-tree.c:345:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT('z', NULL, &line_termination,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/ls-tree.c:347:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_CMDMODE('l', "long", &cmdmode, N_("include object size"),
                ^
/datasets/git/./parse-options.h:188:37: note: expanded from macro 'OPT_CMDMODE'
#define OPT_CMDMODE(s, l, v, h, i)  OPT_CMDMODE_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:187:16: note: expanded from macro 'OPT_CMDMODE_F'
                                      (h), PARSE_OPT_CMDMODE|PARSE_OPT_NOARG|PARSE_OPT_NONEG | (f), NULL, (i) }
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/ls-tree.c:349:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_CMDMODE(0, "name-only", &cmdmode, N_("list only filenames"),
                ^
/datasets/git/./parse-options.h:188:37: note: expanded from macro 'OPT_CMDMODE'
#define OPT_CMDMODE(s, l, v, h, i)  OPT_CMDMODE_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:187:16: note: expanded from macro 'OPT_CMDMODE_F'
                                      (h), PARSE_OPT_CMDMODE|PARSE_OPT_NOARG|PARSE_OPT_NONEG | (f), NULL, (i) }
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/ls-tree.c:351:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_CMDMODE(0, "name-status", &cmdmode, N_("list only filenames"),
                ^
/datasets/git/./parse-options.h:188:37: note: expanded from macro 'OPT_CMDMODE'
#define OPT_CMDMODE(s, l, v, h, i)  OPT_CMDMODE_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:187:16: note: expanded from macro 'OPT_CMDMODE_F'
                                      (h), PARSE_OPT_CMDMODE|PARSE_OPT_NOARG|PARSE_OPT_NONEG | (f), NULL, (i) }
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/ls-tree.c:353:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_CMDMODE(0, "object-only", &cmdmode, N_("list only objects"),
                ^
/datasets/git/./parse-options.h:188:37: note: expanded from macro 'OPT_CMDMODE'
#define OPT_CMDMODE(s, l, v, h, i)  OPT_CMDMODE_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:187:16: note: expanded from macro 'OPT_CMDMODE_F'
                                      (h), PARSE_OPT_CMDMODE|PARSE_OPT_NOARG|PARSE_OPT_NONEG | (f), NULL, (i) }
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/ls-tree.c:355:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT(0, "full-name", &chomp_prefix,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/ls-tree.c:357:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "full-tree", &full_tree,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/ls-tree.c:370:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prefix)
                   ^
                    {
/datasets/git/builtin/ls-tree.c:371:18: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                chomp_prefix = strlen(prefix);
                               ^
/datasets/git/builtin/ls-tree.c:384:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cmdmode == MODE_NAME_STATUS)
                                        ^
                                         {
/datasets/git/builtin/ls-tree.c:388:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ( (LS_TREE_ONLY|LS_RECURSIVE) ==
              ^
/datasets/git/builtin/ls-tree.c:19:22: note: expanded from macro 'LS_TREE_ONLY'
#define LS_TREE_ONLY (1 << 1)
                     ^~~~~~~~
/datasets/git/builtin/ls-tree.c:389:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            ((LS_TREE_ONLY|LS_RECURSIVE) & ls_options))
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/ls-tree.c:389:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            ((LS_TREE_ONLY|LS_RECURSIVE) & ls_options))
              ^
/datasets/git/builtin/ls-tree.c:19:22: note: expanded from macro 'LS_TREE_ONLY'
#define LS_TREE_ONLY (1 << 1)
                     ^~~~~~~~
/datasets/git/builtin/ls-tree.c:389:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            ((LS_TREE_ONLY|LS_RECURSIVE) & ls_options))
                                                       ^
                                                        {
/datasets/git/builtin/ls-tree.c:390:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ls_options |= LS_SHOW_TREES;
                ^~~~~~~~~~
/datasets/git/builtin/ls-tree.c:390:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ls_options |= LS_SHOW_TREES;
                              ^
/datasets/git/builtin/ls-tree.c:20:24: note: expanded from macro 'LS_SHOW_TREES'
#define LS_SHOW_TREES (1 << 2)
                       ^
/datasets/git/builtin/ls-tree.c:392:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (format && cmdmode)
                              ^
                               {
/datasets/git/builtin/ls-tree.c:396:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc < 1)
                     ^
                      {
/datasets/git/builtin/ls-tree.c:398:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid(argv[0], &oid))
                                   ^
                                    {
/datasets/git/builtin/ls-tree.c:407:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        parse_pathspec(&pathspec, PATHSPEC_ALL_MAGIC &
                                  ^
/datasets/git/./pathspec.h:15:2: note: expanded from macro 'PATHSPEC_ALL_MAGIC'
        (PATHSPEC_FROMTOP       | \
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/ls-tree.c:408:7: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                                  ~(PATHSPEC_FROMTOP | PATHSPEC_LITERAL),
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/ls-tree.c:408:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                  ~(PATHSPEC_FROMTOP | PATHSPEC_LITERAL),
                                    ^
/datasets/git/./pathspec.h:7:26: note: expanded from macro 'PATHSPEC_FROMTOP'
#define PATHSPEC_FROMTOP        (1<<0)
                                ^~~~~~
/datasets/git/builtin/ls-tree.c:408:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                  ~(PATHSPEC_FROMTOP | PATHSPEC_LITERAL),
                                                       ^
/datasets/git/./pathspec.h:9:27: note: expanded from macro 'PATHSPEC_LITERAL'
#define PATHSPEC_LITERAL        (1<<2)
                                 ^
/datasets/git/builtin/ls-tree.c:409:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_PREFER_CWD,
                       ^
/datasets/git/./pathspec.h:65:30: note: expanded from macro 'PATHSPEC_PREFER_CWD'
#define PATHSPEC_PREFER_CWD (1<<0) /* No args means match cwd */
                             ^
/datasets/git/builtin/ls-tree.c:411:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < pathspec.nr; i++)
        ^
/datasets/git/builtin/ls-tree.c:411:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < pathspec.nr; i++)
                                         ^
                                          {
/datasets/git/builtin/ls-tree.c:415:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!tree)
                  ^
                   {
/datasets/git/builtin/ls-tree.c:421:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (m2f) {
        ^
/datasets/git/builtin/ls-tree.c:421:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'm2f' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (m2f) {
               ^
/datasets/git/builtin/mailinfo.c:7:1: warning: #includes are not sorted properly [llvm-include-order]
#include "utf8.h"
^        ~~~~~~~~
         "mailinfo.h"
/datasets/git/builtin/mailinfo.c:18:8: warning: accessing fields in struct 'metainfo_charset' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct metainfo_charset
       ^
/datasets/git/builtin/mailinfo.c:18:8: note: use "__attribute__((aligned(16)))" to align struct 'metainfo_charset' to 16 bytes
/datasets/git/builtin/mailinfo.c:33:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/mailinfo.c:43:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/mailinfo.c:45:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mailinfo_parse_quoted_cr_action(arg, opt->value) != 0)
                                                                  ^
                                                                   {
/datasets/git/builtin/mailinfo.c:53:18: warning: variable name 'mi' is too short, expected at least 3 characters [readability-identifier-length]
        struct mailinfo mi;
                        ^
/datasets/git/builtin/mailinfo.c:54:6: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int status;
            ^
                   = 0
/datasets/git/builtin/mailinfo.c:55:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *msgfile, *patchfile;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/mailinfo.c:55:8: warning: variable 'msgfile' is not initialized [cppcoreguidelines-init-variables]
        char *msgfile, *patchfile;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/mailinfo.c:55:18: warning: variable 'patchfile' is not initialized [cppcoreguidelines-init-variables]
        char *msgfile, *patchfile;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/mailinfo.c:58:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('k', NULL, &mi.keep_subject, N_("keep subject")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/mailinfo.c:59:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('b', NULL, &mi.keep_non_patch_brackets_in_subject,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/mailinfo.c:61:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('m', "message-id", &mi.add_message_id,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/mailinfo.c:63:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT_F('u', NULL, &meta_charset.policy,
                ^
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/mailinfo.c:66:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT_F('n', NULL, &meta_charset.policy,
                ^
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/mailinfo.c:72:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "scissors", &mi.use_scissors, N_("use scissors")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/mailinfo.c:76:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_HIDDEN_BOOL(0, "inbody-headers", &mi.use_inbody_headers,
                ^
/datasets/git/./parse-options.h:185:16: note: expanded from macro 'OPT_HIDDEN_BOOL'
                                      (h), PARSE_OPT_NOARG | PARSE_OPT_HIDDEN, NULL, 1}
                                           ^~~~~~~~~~~~~~~
/datasets/git/builtin/mailinfo.c:86:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc != 2)
                      ^
                       {
/datasets/git/builtin/mailsplit.c:9:1: warning: #includes are not sorted properly [llvm-include-order]
#include "string-list.h"
^        ~~~~~~~~~~~~~~~
         "strbuf.h"
/datasets/git/builtin/mailsplit.c:17:14: warning: variable 'colon' is not initialized [cppcoreguidelines-init-variables]
        const char *colon;
                    ^
                          = NULL
/datasets/git/builtin/mailsplit.c:19:12: warning: 20 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (len < 20 || memcmp("From ", line, 5))
                  ^
/datasets/git/builtin/mailsplit.c:19:18: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (len < 20 || memcmp("From ", line, 5))
                        ^
                                                 != 0
/datasets/git/builtin/mailsplit.c:19:40: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (len < 20 || memcmp("From ", line, 5))
                                              ^
/datasets/git/builtin/mailsplit.c:19:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len < 20 || memcmp("From ", line, 5))
                                                 ^
                                                  {
/datasets/git/builtin/mailsplit.c:23:10: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        line += 5;
                ^
/datasets/git/builtin/mailsplit.c:24:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/builtin/mailsplit.c:25:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (colon < line)
                                 ^
                                  {
/datasets/git/builtin/mailsplit.c:27:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*--colon == ':')
                                    ^
                                     {
/datasets/git/builtin/mailsplit.c:31:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!isdigit(colon[-4]) ||
             ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/builtin/mailsplit.c:32:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            !isdigit(colon[-2]) ||
             ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/builtin/mailsplit.c:33:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            !isdigit(colon[-1]) ||
             ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/builtin/mailsplit.c:34:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            !isdigit(colon[ 1]) ||
             ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/builtin/mailsplit.c:35:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            !isdigit(colon[ 2]))
             ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/builtin/mailsplit.c:35:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !isdigit(colon[ 2]))
                                ^
                                 {
/datasets/git/builtin/mailsplit.c:39:28: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (strtol(colon+3, NULL, 10) <= 90)
                                  ^
/datasets/git/builtin/mailsplit.c:39:35: warning: 90 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (strtol(colon+3, NULL, 10) <= 90)
                                         ^
/datasets/git/builtin/mailsplit.c:39:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strtol(colon+3, NULL, 10) <= 90)
                                            ^
                                             {
/datasets/git/builtin/mailsplit.c:46:22: warning: variable 'buf' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct strbuf buf = STRBUF_INIT;
                     ^
/datasets/git/builtin/mailsplit.c:46:22: warning: initializing non-local variable with non-const expression depending on uninitialized non-local variable 'strbuf_slopbuf' [cppcoreguidelines-interfaces-global-init]
/datasets/git/builtin/mailsplit.c:47:12: warning: variable 'keep_cr' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int keep_cr;
           ^
/datasets/git/builtin/mailsplit.c:48:12: warning: variable 'mboxrd' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int mboxrd;
           ^
/datasets/git/builtin/mailsplit.c:53:9: warning: variable 'ngt' is not initialized [cppcoreguidelines-init-variables]
        size_t ngt;
               ^
                   = 0
/datasets/git/builtin/mailsplit.c:55:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (buf->len < min)
                           ^
                            {
/datasets/git/builtin/mailsplit.c:69:8: warning: variable 'output' is not initialized [cppcoreguidelines-init-variables]
        FILE *output;
              ^
                     = NULL
/datasets/git/builtin/mailsplit.c:70:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/builtin/mailsplit.c:70:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/mailsplit.c:72:39: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int is_bare = !is_from_line(buf.buf, buf.len);
                                             ^
/datasets/git/builtin/mailsplit.c:75:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "corrupt mailbox\n");
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/mailsplit.c:75:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/mailsplit.c:76:3: warning: function is not thread safe [concurrency-mt-unsafe]
                exit(1);
                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/mailsplit.c:78:48: warning: 0666 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        fd = xopen(name, O_WRONLY | O_CREAT | O_EXCL, 0666);
                                                      ^
/datasets/git/builtin/mailsplit.c:84:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/builtin/mailsplit.c:91:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (mboxrd && is_gtfrom(&buf))
                                              ^
                                               {
/datasets/git/builtin/mailsplit.c:94:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fwrite(buf.buf, 1, buf.len, output) != buf.len)
                                                                   ^
                                                                    {
/datasets/git/builtin/mailsplit.c:104:41: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                if (!is_bare && is_from_line(buf.buf, buf.len))
                                                      ^
/datasets/git/builtin/mailsplit.c:104:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!is_bare && is_from_line(buf.buf, buf.len))
                                                               ^
                                                                {
/datasets/git/builtin/mailsplit.c:107:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(output);
        ^~~~~~~~~~~~~~
/datasets/git/builtin/mailsplit.c:107:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/mailsplit.c:113:7: warning: variable 'dir' is not initialized [cppcoreguidelines-init-variables]
        DIR *dir;
             ^
                 = NULL
/datasets/git/builtin/mailsplit.c:114:17: warning: variable 'dent' is not initialized [cppcoreguidelines-init-variables]
        struct dirent *dent;
                       ^
                            = NULL
/datasets/git/builtin/mailsplit.c:117:9: warning: variable 'sub' is not initialized [cppcoreguidelines-init-variables]
        char **sub;
               ^
                   = NULL
/datasets/git/builtin/mailsplit.c:120:19: warning: backward branch (for loop) is ID-dependent due to variable reference to 'sub' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (sub = subs; *sub; ++sub) {
                         ^
/datasets/git/builtin/mailsplit.c:123:9: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                if (!(dir = opendir(name))) {
                      ^
/datasets/git/builtin/mailsplit.c:123:9: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/builtin/mailsplit.c:123:9: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/builtin/mailsplit.c:114:2: note: inferred assignment of ID-dependent value from ID-dependent variable dir [altera-id-dependent-backward-branch]
        struct dirent *dent;
        ^
/datasets/git/builtin/mailsplit.c:124:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (errno == ENOENT)
                                            ^
                                             {
/datasets/git/builtin/mailsplit.c:130:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while ((dent = readdir(dir)) != NULL) {
                ^
/datasets/git/builtin/mailsplit.c:130:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'dent' and may cause performance degradation [altera-id-dependent-backward-branch]
                while ((dent = readdir(dir)) != NULL) {
                       ^
/datasets/git/builtin/mailsplit.c:130:18: warning: function is not thread safe [concurrency-mt-unsafe]
                while ((dent = readdir(dir)) != NULL) {
                               ^
/datasets/git/builtin/mailsplit.c:131:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (dent->d_name[0] == '.')
                                                   ^
                                                    {
/datasets/git/builtin/mailsplit.c:148:45: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static int maildir_filename_cmp(const char *a, const char *b)
                                            ^
/datasets/git/builtin/mailsplit.c:148:60: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static int maildir_filename_cmp(const char *a, const char *b)
                                                           ^
/datasets/git/builtin/mailsplit.c:150:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*a && *b) {
        ^
/datasets/git/builtin/mailsplit.c:151:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (isdigit(*a) && isdigit(*b)) {
                    ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/builtin/mailsplit.c:151:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (isdigit(*a) && isdigit(*b)) {
                                   ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/builtin/mailsplit.c:152:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        long int na, nb;
                        ^~~~~~~~~~~~~~~~
/datasets/git/builtin/mailsplit.c:152:13: warning: variable 'na' is not initialized [cppcoreguidelines-init-variables]
                        long int na, nb;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/mailsplit.c:152:13: warning: variable name 'na' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/mailsplit.c:152:17: warning: variable 'nb' is not initialized [cppcoreguidelines-init-variables]
                        long int na, nb;
                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/mailsplit.c:152:17: warning: variable name 'nb' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/mailsplit.c:153:32: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        na = strtol(a, (char **)&a, 10);
                                                    ^
/datasets/git/builtin/mailsplit.c:154:32: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        nb = strtol(b, (char **)&b, 10);
                                                    ^
/datasets/git/builtin/mailsplit.c:155:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (na != nb)
                                     ^
                                      {
/datasets/git/builtin/mailsplit.c:156:12: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                return na - nb;
                                       ^
/datasets/git/builtin/mailsplit.c:160:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (*a != *b)
                                     ^
                                      {
/datasets/git/builtin/mailsplit.c:169:26: warning: 2 adjacent parameters of 'split_maildir' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int split_maildir(const char *maildir, const char *dir,
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/mailsplit.c:169:38: note: the first parameter in the range is 'maildir'
static int split_maildir(const char *maildir, const char *dir,
                                     ^~~~~~~
/datasets/git/builtin/mailsplit.c:169:59: note: the last parameter in the range is 'dir'
static int split_maildir(const char *maildir, const char *dir,
                                                          ^~~
/datasets/git/builtin/mailsplit.c:173:8: warning: variable name 'f' is too short, expected at least 3 characters [readability-identifier-length]
        FILE *f = NULL;
              ^
/datasets/git/builtin/mailsplit.c:175:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/mailsplit.c:175:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/mailsplit.c:180:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (populate_maildir_list(&list, maildir) < 0)
                                                      ^
                                                       {
/datasets/git/builtin/mailsplit.c:183:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < list.nr; i++) {
        ^
/datasets/git/builtin/mailsplit.c:184:9: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
                char *name;
                      ^
                           = NULL
/datasets/git/builtin/mailsplit.c:204:3: warning: the value returned by this function should be used [cert-err33-c]
                fclose(f);
                ^~~~~~~~~
/datasets/git/builtin/mailsplit.c:204:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/mailsplit.c:210:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (f)
              ^
               {
/datasets/git/builtin/mailsplit.c:211:3: warning: the value returned by this function should be used [cert-err33-c]
                fclose(f);
                ^~~~~~~~~
/datasets/git/builtin/mailsplit.c:211:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/mailsplit.c:217:23: warning: 2 adjacent parameters of 'split_mbox' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int split_mbox(const char *file, const char *dir, int allow_bare,
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/mailsplit.c:217:35: note: the first parameter in the range is 'file'
static int split_mbox(const char *file, const char *dir, int allow_bare,
                                  ^~~~
/datasets/git/builtin/mailsplit.c:217:53: note: the last parameter in the range is 'dir'
static int split_mbox(const char *file, const char *dir, int allow_bare,
                                                    ^~~
/datasets/git/builtin/mailsplit.c:217:58: warning: 2 adjacent parameters of 'split_mbox' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int split_mbox(const char *file, const char *dir, int allow_bare,
                                                         ^~~~~~~~~~~~~~~
/datasets/git/builtin/mailsplit.c:217:62: note: the first parameter in the range is 'allow_bare'
static int split_mbox(const char *file, const char *dir, int allow_bare,
                                                             ^~~~~~~~~~
/datasets/git/builtin/mailsplit.c:218:13: note: the last parameter in the range is 'nr_prec'
                      int nr_prec, int skip)
                          ^~~~~~~
/datasets/git/builtin/mailsplit.c:221:6: warning: variable 'peek' is not initialized [cppcoreguidelines-init-variables]
        int peek;
            ^
                 = 0
/datasets/git/builtin/mailsplit.c:223:8: warning: variable name 'f' is too short, expected at least 3 characters [readability-identifier-length]
        FILE *f = !strcmp(file, "-") ? stdin : fopen(file, "r");
              ^
/datasets/git/builtin/mailsplit.c:226:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (isatty(fileno(f)))
                              ^
                               {
/datasets/git/builtin/mailsplit.c:234:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        do {
        ^
/datasets/git/builtin/mailsplit.c:224:2: note: inferred assignment of ID-dependent value from ID-dependent variable f [altera-id-dependent-backward-branch]
        int file_done = 0;
        ^
/datasets/git/builtin/mailsplit.c:237:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (f == stdin)
                                       ^
                                        {
/datasets/git/builtin/mailsplit.c:241:5: warning: the value returned by this function should be used [cert-err33-c]
                                fclose(f);
                                ^~~~~~~~~
/datasets/git/builtin/mailsplit.c:241:5: note: cast the expression to void to silence this warning
/datasets/git/builtin/mailsplit.c:246:11: warning: backward branch (do loop) is ID-dependent due to variable reference to 'peek' and may cause performance degradation [altera-id-dependent-backward-branch]
        } while (isspace(peek));
                 ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^
/datasets/git/./git-compat-util.h:1215:29: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                            ^
/datasets/git/builtin/mailsplit.c:246:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        } while (isspace(peek));
                 ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/builtin/mailsplit.c:247:2: warning: the value returned by this function should be used [cert-err33-c]
        ungetc(peek, f);
        ^~~~~~~~~~~~~~~
/datasets/git/builtin/mailsplit.c:247:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/mailsplit.c:258:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (!file_done) {
        ^
/datasets/git/builtin/mailsplit.c:258:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'file_done' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (!file_done) {
               ^
/datasets/git/builtin/mailsplit.c:264:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (f != stdin)
                       ^
                        {
/datasets/git/builtin/mailsplit.c:265:3: warning: the value returned by this function should be used [cert-err33-c]
                fclose(f);
                ^~~~~~~~~
/datasets/git/builtin/mailsplit.c:265:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/mailsplit.c:272:5: warning: function 'cmd_mailsplit' has cognitive complexity of 40 (threshold 25) [readability-function-cognitive-complexity]
int cmd_mailsplit(int argc, const char **argv, const char *prefix)
    ^
/datasets/git/builtin/mailsplit.c:280:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (argp = argv+1; *argp; argp++) {
        ^
/datasets/git/builtin/mailsplit.c:283:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (arg[0] != '-')
                ^
/datasets/git/builtin/mailsplit.c:286:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ( arg[1] == 'd' ) {
                ^
/datasets/git/builtin/mailsplit.c:288:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (nr_prec < 3 || 10 <= nr_prec)
                        ^
/datasets/git/builtin/mailsplit.c:288:20: note: +1
                        if (nr_prec < 3 || 10 <= nr_prec)
                                        ^
/datasets/git/builtin/mailsplit.c:291:10: note: +1, nesting level increased to 2
                } else if ( arg[1] == 'f' ) {
                       ^
/datasets/git/builtin/mailsplit.c:293:10: note: +1, nesting level increased to 2
                } else if ( arg[1] == 'h' ) {
                       ^
/datasets/git/builtin/mailsplit.c:295:10: note: +1, nesting level increased to 2
                } else if ( arg[1] == 'b' && !arg[2] ) {
                       ^
/datasets/git/builtin/mailsplit.c:295:29: note: +1
                } else if ( arg[1] == 'b' && !arg[2] ) {
                                          ^
/datasets/git/builtin/mailsplit.c:297:10: note: +1, nesting level increased to 2
                } else if (!strcmp(arg, "--keep-cr")) {
                       ^
/datasets/git/builtin/mailsplit.c:299:10: note: +1, nesting level increased to 2
                } else if ( arg[1] == 'o' && arg[2] ) {
                       ^
/datasets/git/builtin/mailsplit.c:299:29: note: +1
                } else if ( arg[1] == 'o' && arg[2] ) {
                                          ^
/datasets/git/builtin/mailsplit.c:301:10: note: +1, nesting level increased to 2
                } else if (!strcmp(arg, "--mboxrd")) {
                       ^
/datasets/git/builtin/mailsplit.c:303:10: note: +1, nesting level increased to 2
                } else if ( arg[1] == '-' && !arg[2] ) {
                       ^
/datasets/git/builtin/mailsplit.c:303:29: note: +1
                } else if ( arg[1] == '-' && !arg[2] ) {
                                          ^
/datasets/git/builtin/mailsplit.c:306:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/mailsplit.c:311:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ( !dir ) {
        ^
/datasets/git/builtin/mailsplit.c:314:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                switch (argc - (argp-argv)) {
                ^
/datasets/git/builtin/mailsplit.c:327:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/mailsplit.c:329:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ( !*argp )
                ^
/datasets/git/builtin/mailsplit.c:333:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (*argp) {
        ^
/datasets/git/builtin/mailsplit.c:338:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (arg[0] == '-' && arg[1] == 0) {
                ^
/datasets/git/builtin/mailsplit.c:338:21: note: +1
                if (arg[0] == '-' && arg[1] == 0) {
                                  ^
/datasets/git/builtin/mailsplit.c:340:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ret < 0) {
                        ^
/datasets/git/builtin/mailsplit.c:349:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (stat(arg, &argstat) == -1) {
                ^
/datasets/git/builtin/mailsplit.c:354:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (S_ISDIR(argstat.st_mode))
                ^
/datasets/git/builtin/mailsplit.c:356:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/mailsplit.c:359:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ret < 0) {
                ^
/datasets/git/builtin/mailsplit.c:272:60: warning: parameter 'prefix' is unused [misc-unused-parameters]
int cmd_mailsplit(int argc, const char **argv, const char *prefix)
                                                           ^
/datasets/git/builtin/mailsplit.c:274:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int nr = 0, nr_prec = 4, num = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/mailsplit.c:277:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        const char **argp;
        ^
/datasets/git/builtin/mailsplit.c:274:6: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
        int nr = 0, nr_prec = 4, num = 0;
            ^
/datasets/git/builtin/mailsplit.c:277:15: warning: variable 'argp' is not initialized [cppcoreguidelines-init-variables]
        const char **argp;
                     ^
                          = NULL
/datasets/git/builtin/mailsplit.c:280:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (argp = argv+1; *argp; argp++) {
        ^
/datasets/git/builtin/mailsplit.c:277:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        const char **argp;
        ^
/datasets/git/builtin/mailsplit.c:280:22: warning: backward branch (for loop) is ID-dependent due to variable reference to 'argp' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (argp = argv+1; *argp; argp++) {
                            ^
/datasets/git/builtin/mailsplit.c:283:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (arg[0] != '-')
                                  ^
                                   {
/datasets/git/builtin/mailsplit.c:287:14: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        nr_prec = strtol(arg+2, NULL, 10);
                                  ^
/datasets/git/builtin/mailsplit.c:287:34: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        nr_prec = strtol(arg+2, NULL, 10);
                                                      ^
/datasets/git/builtin/mailsplit.c:288:23: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        if (nr_prec < 3 || 10 <= nr_prec)
                                           ^
/datasets/git/builtin/mailsplit.c:288:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (nr_prec < 3 || 10 <= nr_prec)
                                                         ^
                                                          {
/datasets/git/builtin/mailsplit.c:291:5: warning: do not use 'else' after 'continue' [llvm-else-after-return,readability-else-after-return]
                } else if ( arg[1] == 'f' ) {
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/mailsplit.c:292:9: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        nr = strtol(arg+2, NULL, 10);
                             ^
/datasets/git/builtin/mailsplit.c:292:29: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        nr = strtol(arg+2, NULL, 10);
                                                 ^
/datasets/git/builtin/mailsplit.c:329:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ( !*argp )
                             ^
                              {
/datasets/git/builtin/mailsplit.c:333:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*argp) {
        ^
/datasets/git/builtin/mailsplit.c:333:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'argp' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (*argp) {
               ^
/datasets/git/builtin/mailsplit.c:354:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (S_ISDIR(argstat.st_mode))
                                             ^
                                              {
/datasets/git/builtin/mailsplit.c:356:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/merge-base.c:3:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "commit-reach.h"
/datasets/git/builtin/merge-base.c:12:49: warning: 2 adjacent parameters of 'show_merge_base' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int show_merge_base(struct commit **rev, int rev_nr, int show_all)
                                                ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge-base.c:12:53: note: the first parameter in the range is 'rev_nr'
static int show_merge_base(struct commit **rev, int rev_nr, int show_all)
                                                    ^~~~~~
/datasets/git/builtin/merge-base.c:12:65: note: the last parameter in the range is 'show_all'
static int show_merge_base(struct commit **rev, int rev_nr, int show_all)
                                                                ^~~~~~~~
/datasets/git/builtin/merge-base.c:14:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit_list *result, *r;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge-base.c:14:22: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *result, *r;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/merge-base.c:14:31: warning: variable 'r' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *result, *r;
                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/merge-base.c:14:31: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/merge-base.c:18:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!result)
                    ^
                     {
/datasets/git/builtin/merge-base.c:21:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (r = result; r; r = r->next) {
        ^
/datasets/git/builtin/merge-base.c:21:19: warning: backward branch (for loop) is ID-dependent due to variable reference to 'r' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (r = result; r; r = r->next) {
                         ^
/datasets/git/builtin/merge-base.c:23:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!show_all)
                              ^
                               {
/datasets/git/builtin/merge-base.c:43:17: warning: variable 'r' is not initialized [cppcoreguidelines-init-variables]
        struct commit *r;
                       ^
                         = NULL
/datasets/git/builtin/merge-base.c:43:17: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/merge-base.c:45:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid(arg, &revkey))
                                  ^
                                   {
/datasets/git/builtin/merge-base.c:48:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!r)
               ^
                {
/datasets/git/builtin/merge-base.c:56:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit_list *revs = NULL, *rev;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge-base.c:56:36: warning: variable 'rev' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *revs = NULL, *rev;
                                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/merge-base.c:57:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/merge-base.c:57:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/merge-base.c:59:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = count - 1; i >= 0; i--)
        ^
/datasets/git/builtin/merge-base.c:59:22: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = count - 1; i >= 0; i--)
                            ^
/datasets/git/builtin/merge-base.c:59:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = count - 1; i >= 0; i--)
                                        ^
                                         {
/datasets/git/builtin/merge-base.c:64:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!revs)
                  ^
                   {
/datasets/git/builtin/merge-base.c:67:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (rev = revs; rev; rev = rev->next)
        ^
/datasets/git/builtin/merge-base.c:67:19: warning: backward branch (for loop) is ID-dependent due to variable reference to 'rev' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (rev = revs; rev; rev = rev->next)
                         ^
/datasets/git/builtin/merge-base.c:67:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (rev = revs; rev; rev = rev->next)
                                              ^
                                               {
/datasets/git/builtin/merge-base.c:77:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit_list *result, *rev;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge-base.c:77:22: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *result, *rev;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/merge-base.c:77:31: warning: variable 'rev' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *result, *rev;
                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/merge-base.c:78:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/merge-base.c:78:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/merge-base.c:80:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = count - 1; i >= 0; i--)
        ^
/datasets/git/builtin/merge-base.c:80:22: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = count - 1; i >= 0; i--)
                            ^
/datasets/git/builtin/merge-base.c:80:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = count - 1; i >= 0; i--)
                                        ^
                                         {
/datasets/git/builtin/merge-base.c:87:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!result)
                    ^
                     {
/datasets/git/builtin/merge-base.c:90:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (rev = result; rev; rev = rev->next) {
        ^
/datasets/git/builtin/merge-base.c:90:21: warning: backward branch (for loop) is ID-dependent due to variable reference to 'rev' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (rev = result; rev; rev = rev->next) {
                           ^
/datasets/git/builtin/merge-base.c:92:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!show_all)
                              ^
                               {
/datasets/git/builtin/merge-base.c:102:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit *one, *two;
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge-base.c:102:17: warning: variable 'one' is not initialized [cppcoreguidelines-init-variables]
        struct commit *one, *two;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/merge-base.c:102:23: warning: variable 'two' is not initialized [cppcoreguidelines-init-variables]
        struct commit *one, *two;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/merge-base.c:104:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc != 2)
                      ^
                       {
/datasets/git/builtin/merge-base.c:108:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (in_merge_bases(one, two))
                                     ^
                                      {
/datasets/git/builtin/merge-base.c:110:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else
        ^~~~
                        return 1
/datasets/git/builtin/merge-base.c:110:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/merge-base.c:117:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit *derived, *fork_point;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge-base.c:117:17: warning: variable 'derived' is not initialized [cppcoreguidelines-init-variables]
        struct commit *derived, *fork_point;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/merge-base.c:117:27: warning: variable 'fork_point' is not initialized [cppcoreguidelines-init-variables]
        struct commit *derived, *fork_point;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/merge-base.c:118:14: warning: variable 'commitname' is not initialized [cppcoreguidelines-init-variables]
        const char *commitname;
                    ^
                               = NULL
/datasets/git/builtin/merge-base.c:121:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid(commitname, &oid))
                                      ^
                                       {
/datasets/git/builtin/merge-base.c:128:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!fork_point)
                        ^
                         {
/datasets/git/builtin/merge-base.c:137:18: warning: variable 'rev' is not initialized [cppcoreguidelines-init-variables]
        struct commit **rev;
                        ^
                            = NULL
/datasets/git/builtin/merge-base.c:141:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/builtin/merge-base.c:144:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('a', "all", &show_all, N_("output all common ancestors")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/merge-base.c:145:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_CMDMODE(0, "octopus", &cmdmode,
                ^
/datasets/git/./parse-options.h:188:37: note: expanded from macro 'OPT_CMDMODE'
#define OPT_CMDMODE(s, l, v, h, i)  OPT_CMDMODE_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:187:16: note: expanded from macro 'OPT_CMDMODE_F'
                                      (h), PARSE_OPT_CMDMODE|PARSE_OPT_NOARG|PARSE_OPT_NONEG | (f), NULL, (i) }
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge-base.c:147:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_CMDMODE(0, "independent", &cmdmode,
                ^
/datasets/git/./parse-options.h:188:37: note: expanded from macro 'OPT_CMDMODE'
#define OPT_CMDMODE(s, l, v, h, i)  OPT_CMDMODE_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:187:16: note: expanded from macro 'OPT_CMDMODE_F'
                                      (h), PARSE_OPT_CMDMODE|PARSE_OPT_NOARG|PARSE_OPT_NONEG | (f), NULL, (i) }
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge-base.c:149:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_CMDMODE(0, "is-ancestor", &cmdmode,
                ^
/datasets/git/./parse-options.h:188:37: note: expanded from macro 'OPT_CMDMODE'
#define OPT_CMDMODE(s, l, v, h, i)  OPT_CMDMODE_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:187:16: note: expanded from macro 'OPT_CMDMODE_F'
                                      (h), PARSE_OPT_CMDMODE|PARSE_OPT_NOARG|PARSE_OPT_NONEG | (f), NULL, (i) }
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge-base.c:151:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_CMDMODE(0, "fork-point", &cmdmode,
                ^
/datasets/git/./parse-options.h:188:37: note: expanded from macro 'OPT_CMDMODE'
#define OPT_CMDMODE(s, l, v, h, i)  OPT_CMDMODE_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:187:16: note: expanded from macro 'OPT_CMDMODE_F'
                                      (h), PARSE_OPT_CMDMODE|PARSE_OPT_NOARG|PARSE_OPT_NONEG | (f), NULL, (i) }
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge-base.c:160:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (argc < 2)
                             ^
                              {
/datasets/git/builtin/merge-base.c:162:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (show_all)
                             ^
                              {
/datasets/git/builtin/merge-base.c:168:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cmdmode == 'r' && show_all)
                                       ^
                                        {
/datasets/git/builtin/merge-base.c:172:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cmdmode == 'o')
                           ^
                            {
/datasets/git/builtin/merge-base.c:175:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cmdmode == 'r')
                           ^
                            {
/datasets/git/builtin/merge-base.c:179:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (argc < 1 || 2 < argc)
                                         ^
                                          {
/datasets/git/builtin/merge-base.c:184:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc < 2)
                     ^
                      {
/datasets/git/builtin/merge-base.c:187:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_ARRAY(rev, argc);
        ^
/datasets/git/./git-compat-util.h:1090:53: note: expanded from macro 'ALLOC_ARRAY'
#define ALLOC_ARRAY(x, alloc) (x) = xmalloc(st_mult(sizeof(*(x)), (alloc)))
                                                    ^
/datasets/git/builtin/merge-base.c:188:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (argc-- > 0)
        ^
/datasets/git/builtin/merge-base.c:188:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'argc' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (argc-- > 0)
               ^
/datasets/git/builtin/merge-base.c:188:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (argc-- > 0)
                          ^
                           {
/datasets/git/builtin/merge-file.c:4:1: warning: #includes are not sorted properly [llvm-include-order]
#include "xdiff/xdiff.h"
^        ~~~~~~~~~~~~~~~
         "parse-options.h"
/datasets/git/builtin/merge-file.c:18:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/merge-file.c:20:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (label_count >= 3)
                             ^
                              {
/datasets/git/builtin/merge-file.c:26:5: warning: function 'cmd_merge_file' has cognitive complexity of 26 (threshold 25) [readability-function-cognitive-complexity]
int cmd_merge_file(int argc, const char **argv, const char *prefix)
    ^
/datasets/git/builtin/merge-file.c:57:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (startup_info->have_repository) {
        ^
/datasets/git/builtin/merge-file.c:60:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (0 <= git_xmerge_style)
                ^
/datasets/git/builtin/merge-file.c:65:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (argc != 3)
        ^
/datasets/git/builtin/merge-file.c:67:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (quiet) {
        ^
/datasets/git/builtin/merge-file.c:68:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!freopen("/dev/null", "w", stderr))
                ^
/datasets/git/builtin/merge-file.c:72:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < 3; i++) {
        ^
/datasets/git/builtin/merge-file.c:76:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!names[i])
                ^
/datasets/git/builtin/merge-file.c:81:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (read_mmfile(mmf, fname))
                ^
/datasets/git/builtin/merge-file.c:83:8: note: +1, nesting level increased to 2
                else if (mmf->size > MAX_XDIFF_SIZE ||
                     ^
/datasets/git/builtin/merge-file.c:83:39: note: +1
                else if (mmf->size > MAX_XDIFF_SIZE ||
                                                    ^
/datasets/git/builtin/merge-file.c:89:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ret)
                ^
/datasets/git/builtin/merge-file.c:99:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ret >= 0) {
        ^
/datasets/git/builtin/merge-file.c:102:23: note: +2, including nesting penalty of 1, nesting level increased to 2
                FILE *f = to_stdout ? stdout : fopen(fpath, "wb");
                                    ^
/datasets/git/builtin/merge-file.c:104:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!f)
                ^
/datasets/git/builtin/merge-file.c:107:8: note: +1, nesting level increased to 2
                else if (result.size &&
                     ^
/datasets/git/builtin/merge-file.c:107:24: note: +1
                else if (result.size &&
                                     ^
/datasets/git/builtin/merge-file.c:110:8: note: +1, nesting level increased to 2
                else if (fclose(f))
                     ^
/datasets/git/builtin/merge-file.c:116:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ret > 127)
        ^
/datasets/git/builtin/merge-file.c:120:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < 3; i++)
        ^
/datasets/git/builtin/merge-file.c:32:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int ret = 0, i = 0, to_stdout = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge-file.c:32:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int ret = 0, i = 0, to_stdout = 0;
                     ^
/datasets/git/builtin/merge-file.c:35:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('p', "stdout", &to_stdout, N_("send results to standard output")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/merge-file.c:36:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT(0, "diff3", &xmp.style, N_("use a diff3 based merge"), XDL_MERGE_DIFF3),
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/merge-file.c:37:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT(0, "zdiff3", &xmp.style, N_("use a zealous diff3 based merge"),
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/merge-file.c:39:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT(0, "ours", &xmp.favor, N_("for conflicts, use our version"),
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/merge-file.c:41:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT(0, "theirs", &xmp.favor, N_("for conflicts, use their version"),
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/merge-file.c:43:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT(0, "union", &xmp.favor, N_("for conflicts, use a union version"),
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/merge-file.c:47:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__QUIET(&quiet, N_("do not warn about conflicts")),
                ^
/datasets/git/./parse-options.h:360:31: note: expanded from macro 'OPT__QUIET'
#define OPT__QUIET(var, h)    OPT_COUNTUP('q', "quiet",   (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/merge-file.c:60:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (0 <= git_xmerge_style)
                                          ^
                                           {
/datasets/git/builtin/merge-file.c:65:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc != 3)
                      ^
                       {
/datasets/git/builtin/merge-file.c:68:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!freopen("/dev/null", "w", stderr))
                                                       ^
                                                        {
/datasets/git/builtin/merge-file.c:72:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < 3; i++) {
        ^
/datasets/git/builtin/merge-file.c:73:9: warning: variable 'fname' is not initialized [cppcoreguidelines-init-variables]
                char *fname;
                      ^
                            = NULL
/datasets/git/builtin/merge-file.c:76:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!names[i])
                              ^
                               {
/datasets/git/builtin/merge-file.c:81:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (read_mmfile(mmf, fname))
                                            ^
                                             {
/datasets/git/builtin/merge-file.c:84:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                         buffer_is_binary(mmf->ptr, mmf->size))
                                                               ^
                                                                {
/datasets/git/builtin/merge-file.c:89:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret)
                        ^
                         {
/datasets/git/builtin/merge-file.c:102:9: warning: variable name 'f' is too short, expected at least 3 characters [readability-identifier-length]
                FILE *f = to_stdout ? stdout : fopen(fpath, "wb");
                      ^
/datasets/git/builtin/merge-file.c:104:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!f)
                       ^
                        {
/datasets/git/builtin/merge-file.c:108:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                         fwrite(result.ptr, result.size, 1, f) != 1)
                                                                    ^
                                                                     {
/datasets/git/builtin/merge-file.c:110:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (fclose(f))
                                   ^
                                    {
/datasets/git/builtin/merge-file.c:116:12: warning: 127 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (ret > 127)
                  ^
/datasets/git/builtin/merge-file.c:116:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret > 127)
                      ^
                       {
/datasets/git/builtin/merge-file.c:117:9: warning: 127 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                ret = 127;
                      ^
/datasets/git/builtin/merge-file.c:120:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < 3; i++)
        ^
/datasets/git/builtin/merge-file.c:120:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < 3; i++)
                               ^
                                {
builtin/merge-index.c:5:20: warning: variable 'pgm' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *pgm;
                   ^
builtin/merge-index.c:6:12: warning: variable 'one_shot' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int one_shot, quiet;
           ^
builtin/merge-index.c:6:22: warning: variable 'quiet' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int one_shot, quiet;
                     ^
builtin/merge-index.c:7:12: warning: variable 'err' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int err;
           ^
/datasets/git/builtin/merge-index.c:11:6: warning: variable 'found' is not initialized [cppcoreguidelines-init-variables]
        int found;
            ^
                  = 0
/datasets/git/builtin/merge-index.c:14:17: warning: 60 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        char ownbuf[4][60];
                       ^
/datasets/git/builtin/merge-index.c:17:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pos >= the_index.cache_nr)
                                      ^
                                       {
/datasets/git/builtin/merge-index.c:20:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        do {
        ^
/datasets/git/builtin/merge-index.c:21:29: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                const struct cache_entry *ce = the_index.cache[pos];
                                          ^
/datasets/git/builtin/merge-index.c:22:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                int stage = ce_stage(ce);
                            ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/builtin/merge-index.c:24:7: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (strcmp(ce->name, path))
                    ^
                                           != 0
/datasets/git/builtin/merge-index.c:24:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strcmp(ce->name, path))
                                           ^
                                            {
/datasets/git/builtin/merge-index.c:32:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!found)
                   ^
                    {
/datasets/git/builtin/merge-index.c:37:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (one_shot)
                             ^
                              {
/datasets/git/builtin/merge-index.c:40:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!quiet)
                                   ^
                                    {
/datasets/git/builtin/merge-index.c:42:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        exit(1);
                        ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/merge-index.c:50:45: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int pos = index_name_pos(&the_index, path, strlen(path));
                                                   ^
/datasets/git/builtin/merge-index.c:56:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pos < 0)
                    ^
                     {
/datasets/git/builtin/merge-index.c:62:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/merge-index.c:62:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/merge-index.c:65:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < the_index.cache_nr; i++) {
        ^
/datasets/git/builtin/merge-index.c:65:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < the_index.cache_nr; i++) {
                    ^
/datasets/git/builtin/merge-index.c:66:29: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                const struct cache_entry *ce = the_index.cache[i];
                                          ^
/datasets/git/builtin/merge-index.c:67:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!ce_stage(ce))
                     ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/builtin/merge-index.c:67:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ce_stage(ce))
                                  ^
                                   {
/datasets/git/builtin/merge-index.c:73:62: warning: parameter 'prefix' is unused [misc-unused-parameters]
int cmd_merge_index(int argc, const char **argv, const char *prefix)
                                                             ^
/datasets/git/builtin/merge-index.c:75:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, force_file = 0;
        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge-index.c:75:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, force_file = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/merge-index.c:75:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/merge-index.c:80:2: warning: the value returned by this function should be used [cert-err33-c]
        signal(SIGCHLD, SIG_DFL);
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge-index.c:80:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/merge-index.c:82:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc < 3)
                     ^
                      {
/datasets/git/builtin/merge-index.c:100:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; i < argc; i++) {
        ^
/datasets/git/builtin/merge-index.c:115:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err && !quiet)
                          ^
                           {
builtin/merge-ours.c:17:61: warning: parameter 'prefix' is unused [misc-unused-parameters]
int cmd_merge_ours(int argc, const char **argv, const char *prefix)
                                                            ^
/datasets/git/builtin/merge-ours.c:19:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc == 2 && !strcmp(argv[1], "-h"))
                                                ^
                                                 {
/datasets/git/builtin/merge-ours.c:27:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_read_index(the_repository) < 0)
                                                ^
                                                 {
/datasets/git/builtin/merge-ours.c:29:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (index_differs_from(the_repository, "HEAD", NULL, 0))
                                                                ^
                                                                 {
/datasets/git/builtin/merge-recursive.c:4:1: warning: #includes are not sorted properly [llvm-include-order]
#include "tag.h"
^        ~~~~~~~
         "merge-recursive.h"
/datasets/git/builtin/merge-recursive.c:13:26: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        static char githead_env[8 + GIT_MAX_HEXSZ + 1];
                                ^
/datasets/git/builtin/merge-recursive.c:14:8: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
        char *name;
              ^
                   = NULL
/datasets/git/builtin/merge-recursive.c:16:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strlen(branch) != the_hash_algo->hexsz)
                                                   ^
                                                    {
/datasets/git/builtin/merge-recursive.c:19:9: warning: function is not thread safe [concurrency-mt-unsafe]
        name = getenv(githead_env);
               ^
/datasets/git/builtin/merge-recursive.c:23:66: warning: parameter 'prefix' is unused [misc-unused-parameters]
int cmd_merge_recursive(int argc, const char **argv, const char *prefix)
                                                                 ^
/datasets/git/builtin/merge-recursive.c:25:32: warning: 21 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        const struct object_id *bases[21];
                                      ^
/datasets/git/builtin/merge-recursive.c:27:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, failed;
        ^~~~~~~~~~~~~~
/datasets/git/builtin/merge-recursive.c:27:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, failed;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/merge-recursive.c:27:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/merge-recursive.c:27:9: warning: variable 'failed' is not initialized [cppcoreguidelines-init-variables]
        int i, failed;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/merge-recursive.c:28:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct object_id h1, h2;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge-recursive.c:28:19: warning: variable name 'h1' is too short, expected at least 3 characters [readability-identifier-length]
        struct object_id h1, h2;
                         ^
/datasets/git/builtin/merge-recursive.c:28:23: warning: variable name 'h2' is too short, expected at least 3 characters [readability-identifier-length]
        struct object_id h1, h2;
                             ^
/datasets/git/builtin/merge-recursive.c:29:23: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
        struct merge_options o;
                             ^
/datasets/git/builtin/merge-recursive.c:30:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *better1, *better2;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge-recursive.c:30:8: warning: variable 'better1' is not initialized [cppcoreguidelines-init-variables]
        char *better1, *better2;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/merge-recursive.c:30:18: warning: variable 'better2' is not initialized [cppcoreguidelines-init-variables]
        char *better1, *better2;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/merge-recursive.c:31:17: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        struct commit *result;
                       ^
                              = NULL
/datasets/git/builtin/merge-recursive.c:34:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argv[0] && ends_with(argv[0], "-subtree"))
                                                      ^
                                                       {
/datasets/git/builtin/merge-recursive.c:37:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc < 4)
                     ^
                      {
/datasets/git/builtin/merge-recursive.c:40:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 1; i < argc; ++i) {
        ^
/datasets/git/builtin/merge-recursive.c:44:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!arg[2])
                                    ^
                                     {
/datasets/git/builtin/merge-recursive.c:46:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (parse_merge_opt(&o, arg + 2))
                                                         ^
                                                          {
/datasets/git/builtin/merge-recursive.c:52:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (get_oid(argv[i], oid))
                                                  ^
                                                   {
/datasets/git/builtin/merge-recursive.c:56:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/merge-recursive.c:64:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc - i != 3) /* "--" "<head>" "<remote>" */
                          ^
                           {
/datasets/git/builtin/merge-recursive.c:67:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_read_index_unmerged(the_repository))
                                                     ^
                                                      {
/datasets/git/builtin/merge-recursive.c:73:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid(o.branch1, &h1))
                                    ^
                                     {
/datasets/git/builtin/merge-recursive.c:75:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid(o.branch2, &h2))
                                    ^
                                     {
/datasets/git/builtin/merge-recursive.c:81:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (o.verbosity >= 3)
                             ^
                              {
/datasets/git/builtin/merge-recursive.c:84:49: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        failed = merge_recursive_generic(&o, &h1, &h2, bases_count, bases, &result);
                                                       ^
/datasets/git/builtin/merge-recursive.c:89:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (failed < 0)
                       ^
                        {
/datasets/git/builtin/merge-recursive.c:90:10: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                return 128; /* die() error code */
                       ^
/datasets/git/builtin/merge-tree.c:3:1: warning: #includes are not sorted properly [llvm-include-order]
#include "tree-walk.h"
^        ~~~~~~~~~~~~~
         "blob.h"
/datasets/git/builtin/merge-tree.c:16:12: warning: variable 'line_termination' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int line_termination = '\n';
           ^
/datasets/git/builtin/merge-tree.c:18:8: warning: accessing fields in struct 'merge_list' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct merge_list {
       ^
/datasets/git/builtin/merge-tree.c:18:8: note: use "__attribute__((aligned(64)))" to align struct 'merge_list' to 64 bytes
/datasets/git/builtin/merge-tree.c:28:27: warning: variable 'merge_result' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct merge_list *merge_result, **merge_result_end = &merge_result;
                          ^
/datasets/git/builtin/merge-tree.c:28:27: warning: variable 'merge_result' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/merge-tree.c:28:43: warning: variable 'merge_result_end' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct merge_list *merge_result, **merge_result_end = &merge_result;
                                          ^
/datasets/git/builtin/merge-tree.c:28:43: warning: variable 'merge_result_end' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/merge-tree.c:36:50: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
static void trivial_merge_trees(struct tree_desc t[3], const char *base);
                                                 ^
/datasets/git/builtin/merge-tree.c:40:2: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
        switch (entry->stage) {
        ^
/datasets/git/builtin/merge-tree.c:46:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (entry->link)
                                ^
                                 {
/datasets/git/builtin/merge-tree.c:53:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!entry)
                   ^
                    {
/datasets/git/builtin/merge-tree.c:56:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (entry->link)
                        ^
                         {
/datasets/git/builtin/merge-tree.c:59:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (entry->stage == 3)
                              ^
                               {
/datasets/git/builtin/merge-tree.c:66:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/builtin/merge-tree.c:67:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct blob *base, *our, *their;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge-tree.c:67:15: warning: variable 'base' is not initialized [cppcoreguidelines-init-variables]
        struct blob *base, *our, *their;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/merge-tree.c:67:22: warning: variable 'our' is not initialized [cppcoreguidelines-init-variables]
        struct blob *base, *our, *their;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/merge-tree.c:67:28: warning: variable 'their' is not initialized [cppcoreguidelines-init-variables]
        struct blob *base, *our, *their;
                                  ^
/datasets/git/builtin/merge-tree.c:89:21: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
static void *origin(struct merge_list *entry, unsigned long *size)
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/merge-tree.c:70:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!entry->stage)
                          ^
                           {
/datasets/git/builtin/merge-tree.c:83:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (entry)
                  ^
                   {
/datasets/git/builtin/merge-tree.c:91:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/builtin/merge-tree.c:92:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (entry) {
        ^
/datasets/git/builtin/merge-tree.c:92:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'entry' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (entry) {
               ^
/datasets/git/builtin/merge-tree.c:93:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (entry->stage == 2)
                                      ^
                                       {
/datasets/git/builtin/merge-tree.c:101:28: warning: parameter 'priv_' is unused [misc-unused-parameters]
static int show_outf(void *priv_, mmbuffer_t *mb, int nbuf)
                           ^
/datasets/git/builtin/merge-tree.c:101:47: warning: parameter name 'mb' is too short, expected at least 3 characters [readability-identifier-length]
static int show_outf(void *priv_, mmbuffer_t *mb, int nbuf)
                                              ^
/datasets/git/builtin/merge-tree.c:103:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/merge-tree.c:103:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/merge-tree.c:104:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nbuf; i++)
        ^
/datasets/git/builtin/merge-tree.c:104:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < nbuf; i++)
                                  ^
                                   {
/datasets/git/builtin/merge-tree.c:111:16: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size;
                      ^
                           = 0
/datasets/git/builtin/merge-tree.c:112:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        mmfile_t src, dst;
        ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge-tree.c:117:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&xpp, 0, sizeof(xpp));
        ^~~~~~
/datasets/git/builtin/merge-tree.c:117:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&xpp, 0, sizeof(xpp));
        ^~~~~~
/datasets/git/builtin/merge-tree.c:119:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&xecfg, 0, sizeof(xecfg));
        ^~~~~~
/datasets/git/builtin/merge-tree.c:119:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&xecfg, 0, sizeof(xecfg));
        ^~~~~~
/datasets/git/builtin/merge-tree.c:123:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!src.ptr)
                     ^
                      {
/datasets/git/builtin/merge-tree.c:125:13: warning: narrowing conversion from 'unsigned long' to signed type 'long' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        src.size = size;
                   ^
/datasets/git/builtin/merge-tree.c:127:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!dst.ptr)
                     ^
                      {
/datasets/git/builtin/merge-tree.c:129:13: warning: narrowing conversion from 'unsigned long' to signed type 'long' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        dst.size = size;
                   ^
/datasets/git/builtin/merge-tree.c:130:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (xdi_diff(&src, &dst, &xpp, &xecfg, &ecb))
                                                     ^
                                                      {
/datasets/git/builtin/merge-tree.c:139:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        do {
        ^
/datasets/git/builtin/merge-tree.c:149:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct merge_list *walk;
        ^
/datasets/git/builtin/merge-tree.c:144:11: warning: backward branch (do loop) is ID-dependent due to variable reference to 'entry' and may cause performance degradation [altera-id-dependent-backward-branch]
        } while (entry);
                 ^
/datasets/git/builtin/merge-tree.c:149:21: warning: variable 'walk' is not initialized [cppcoreguidelines-init-variables]
        struct merge_list *walk;
                           ^
                                = NULL
/datasets/git/builtin/merge-tree.c:152:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (walk) {
        ^
/datasets/git/builtin/merge-tree.c:152:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'walk' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (walk) {
               ^
/datasets/git/builtin/merge-tree.c:160:42: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static int same_entry(struct name_entry *a, struct name_entry *b)
                                         ^
/datasets/git/builtin/merge-tree.c:160:64: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static int same_entry(struct name_entry *a, struct name_entry *b)
                                                               ^
/datasets/git/builtin/merge-tree.c:168:42: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static int both_empty(struct name_entry *a, struct name_entry *b)
                                         ^
/datasets/git/builtin/merge-tree.c:168:64: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static int both_empty(struct name_entry *a, struct name_entry *b)
                                                               ^
/datasets/git/builtin/merge-tree.c:173:40: warning: 2 adjacent parameters of 'create_entry' of similar type ('unsigned int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static struct merge_list *create_entry(unsigned stage, unsigned mode, const struct object_id *oid, const char *path)
                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge-tree.c:173:49: note: the first parameter in the range is 'stage'
static struct merge_list *create_entry(unsigned stage, unsigned mode, const struct object_id *oid, const char *path)
                                                ^~~~~
/datasets/git/builtin/merge-tree.c:173:65: note: the last parameter in the range is 'mode'
static struct merge_list *create_entry(unsigned stage, unsigned mode, const struct object_id *oid, const char *path)
                                                                ^~~~
/datasets/git/builtin/merge-tree.c:193:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct merge_list *orig, *final;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge-tree.c:193:21: warning: variable 'orig' is not initialized [cppcoreguidelines-init-variables]
        struct merge_list *orig, *final;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/merge-tree.c:193:28: warning: variable 'final' is not initialized [cppcoreguidelines-init-variables]
        struct merge_list *orig, *final;
                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/merge-tree.c:194:14: warning: variable 'path' is not initialized [cppcoreguidelines-init-variables]
        const char *path;
                    ^
                         = NULL
/datasets/git/builtin/merge-tree.c:197:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ours)
                  ^
                   {
/datasets/git/builtin/merge-tree.c:212:21: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        struct repository *r = the_repository;
                           ^
/datasets/git/builtin/merge-tree.c:213:8: warning: variable 'newbase' is not initialized [cppcoreguidelines-init-variables]
        char *newbase;
              ^
                      = NULL
/datasets/git/builtin/merge-tree.c:214:21: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct name_entry *p;
                           ^
                             = NULL
/datasets/git/builtin/merge-tree.c:214:21: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/merge-tree.c:215:19: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
        struct tree_desc t[3];
                         ^
/datasets/git/builtin/merge-tree.c:216:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        void *buf0, *buf1, *buf2;
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge-tree.c:214:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct name_entry *p;
        ^
/datasets/git/builtin/merge-tree.c:216:8: warning: variable 'buf0' is not initialized [cppcoreguidelines-init-variables]
        void *buf0, *buf1, *buf2;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/merge-tree.c:216:15: warning: variable 'buf1' is not initialized [cppcoreguidelines-init-variables]
        void *buf0, *buf1, *buf2;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/merge-tree.c:216:22: warning: variable 'buf2' is not initialized [cppcoreguidelines-init-variables]
        void *buf0, *buf1, *buf2;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/merge-tree.c:218:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = n; p < n + 3; p++) {
        ^
/datasets/git/builtin/merge-tree.c:218:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = n; p < n + 3; p++) {
                    ^
/datasets/git/builtin/merge-tree.c:219:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (p->mode && S_ISDIR(p->mode))
                                                ^
                                                 {
/datasets/git/builtin/merge-tree.c:222:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (n + 3 <= p)
                       ^
                        {
/datasets/git/builtin/merge-tree.c:244:14: warning: variable 'path' is not initialized [cppcoreguidelines-init-variables]
        const char *path;
                    ^
                         = NULL
/datasets/git/builtin/merge-tree.c:245:21: warning: variable 'link' is not initialized [cppcoreguidelines-init-variables]
        struct merge_list *link;
                           ^
                                = NULL
/datasets/git/builtin/merge-tree.c:247:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!n->mode)
                     ^
                      {
/datasets/git/builtin/merge-tree.c:249:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (entry)
                  ^
                   {
/datasets/git/builtin/merge-tree.c:251:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/merge-tree.c:261:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/merge-tree.c:261:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/merge-tree.c:262:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned dirmask = 0, mask = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge-tree.c:264:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < 3; i++) {
        ^
/datasets/git/builtin/merge-tree.c:265:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask |= (1 << i);
                ^       ~~~~~~~~
/datasets/git/builtin/merge-tree.c:265:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask |= (1 << i);
                         ^
/datasets/git/builtin/merge-tree.c:270:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!n[i].mode || S_ISDIR(n[i].mode))
                                                     ^
                                                      {
/datasets/git/builtin/merge-tree.c:271:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        dirmask |= (1 << i);
                        ^          ~~~~~~~~
/datasets/git/builtin/merge-tree.c:271:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        dirmask |= (1 << i);
                                    ^
/datasets/git/builtin/merge-tree.c:276:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (dirmask == mask)
                            ^
                             {
/datasets/git/builtin/merge-tree.c:279:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (n[2].mode && !S_ISDIR(n[2].mode))
                                             ^
                                              {
/datasets/git/builtin/merge-tree.c:281:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (n[1].mode && !S_ISDIR(n[1].mode))
                                             ^
                                              {
/datasets/git/builtin/merge-tree.c:283:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (n[0].mode && !S_ISDIR(n[0].mode))
                                             ^
                                              {
/datasets/git/builtin/merge-tree.c:318:30: warning: 3 adjacent parameters of 'threeway_callback' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int threeway_callback(int n, unsigned long mask, unsigned long dirmask, struct name_entry *entry, struct traverse_info *info)
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge-tree.c:318:34: note: the first parameter in the range is 'n'
static int threeway_callback(int n, unsigned long mask, unsigned long dirmask, struct name_entry *entry, struct traverse_info *info)
                                 ^
/datasets/git/builtin/merge-tree.c:318:71: note: the last parameter in the range is 'dirmask'
static int threeway_callback(int n, unsigned long mask, unsigned long dirmask, struct name_entry *entry, struct traverse_info *info)
                                                                      ^~~~~~~
/datasets/git/builtin/merge-tree.c:318:37: note: 'int' and 'unsigned long' may be implicitly converted
static int threeway_callback(int n, unsigned long mask, unsigned long dirmask, struct name_entry *entry, struct traverse_info *info)
                                    ^
/datasets/git/builtin/merge-tree.c:318:34: warning: parameter 'n' is unused [misc-unused-parameters]
static int threeway_callback(int n, unsigned long mask, unsigned long dirmask, struct name_entry *entry, struct traverse_info *info)
                                 ^
/datasets/git/builtin/merge-tree.c:318:71: warning: parameter 'dirmask' is unused [misc-unused-parameters]
static int threeway_callback(int n, unsigned long mask, unsigned long dirmask, struct name_entry *entry, struct traverse_info *info)
                                                                      ^
/datasets/git/builtin/merge-tree.c:324:10: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                return mask;
                       ^
/datasets/git/builtin/merge-tree.c:331:11: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        return mask;
                               ^
/datasets/git/builtin/merge-tree.c:343:10: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                return mask;
                       ^
/datasets/git/builtin/merge-tree.c:347:9: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return mask;
               ^
/datasets/git/builtin/merge-tree.c:350:50: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
static void trivial_merge_trees(struct tree_desc t[3], const char *base)
                                                 ^
/datasets/git/builtin/merge-tree.c:359:53: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void *get_tree_descriptor(struct repository *r,
                                                    ^
/datasets/git/builtin/merge-tree.c:364:8: warning: variable 'buf' is not initialized [cppcoreguidelines-init-variables]
        void *buf;
              ^
                  = NULL
/datasets/git/builtin/merge-tree.c:366:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_get_oid(r, rev, &oid))
                                       ^
                                        {
/datasets/git/builtin/merge-tree.c:369:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!buf)
                 ^
                  {
/datasets/git/builtin/merge-tree.c:378:21: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        struct repository *r = the_repository;
                           ^
/datasets/git/builtin/merge-tree.c:379:19: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
        struct tree_desc t[3];
                         ^
/datasets/git/builtin/merge-tree.c:380:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        void *buf1, *buf2, *buf3;
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge-tree.c:380:8: warning: variable 'buf1' is not initialized [cppcoreguidelines-init-variables]
        void *buf1, *buf2, *buf3;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/merge-tree.c:380:15: warning: variable 'buf2' is not initialized [cppcoreguidelines-init-variables]
        void *buf1, *buf2, *buf3;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/merge-tree.c:380:22: warning: variable 'buf3' is not initialized [cppcoreguidelines-init-variables]
        void *buf1, *buf2, *buf3;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/merge-tree.c:400:8: warning: accessing fields in struct 'merge_tree_options' is inefficient due to poor alignment; currently aligned to 4 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct merge_tree_options {
       ^
/datasets/git/builtin/merge-tree.c:400:8: note: use "__attribute__((aligned(32)))" to align struct 'merge_tree_options' to 32 bytes
/datasets/git/builtin/merge-tree.c:408:50: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static int real_merge(struct merge_tree_options *o,
                                                 ^
/datasets/git/builtin/merge-tree.c:409:30: warning: 2 adjacent parameters of 'real_merge' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                      const char *branch1, const char *branch2,
                                           ^~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge-tree.c:409:42: note: the first parameter in the range is 'branch2'
                      const char *branch1, const char *branch2,
                                                       ^~~~~~~
/datasets/git/builtin/merge-tree.c:410:21: note: the last parameter in the range is 'prefix'
                      const char *prefix)
                                  ^~~~~~
/datasets/git/builtin/merge-tree.c:412:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit *parent1, *parent2;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge-tree.c:412:17: warning: variable 'parent1' is not initialized [cppcoreguidelines-init-variables]
        struct commit *parent1, *parent2;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/merge-tree.c:412:27: warning: variable 'parent2' is not initialized [cppcoreguidelines-init-variables]
        struct commit *parent1, *parent2;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/merge-tree.c:419:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!parent1)
                     ^
                      {
/datasets/git/builtin/merge-tree.c:424:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!parent2)
                     ^
                      {
/datasets/git/builtin/merge-tree.c:440:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!merge_bases && !o->allow_unrelated_histories)
                                                          ^
                                                           {
/datasets/git/builtin/merge-tree.c:445:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (result.clean < 0)
                             ^
                              {
/datasets/git/builtin/merge-tree.c:448:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (show_messages == -1)
                                ^
                                 {
/datasets/git/builtin/merge-tree.c:451:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (o->use_stdin)
                         ^
                          {
/datasets/git/builtin/merge-tree.c:457:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/builtin/merge-tree.c:457:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/merge-tree.c:460:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < conflicted_files.nr; i++) {
                ^
/datasets/git/builtin/merge-tree.c:462:23: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                        struct stage_info *c = conflicted_files.items[i].util;
                                           ^
/datasets/git/builtin/merge-tree.c:463:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!o->name_only)
                                          ^
                                           {
/datasets/git/builtin/merge-tree.c:466:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (last && !strcmp(last, name))
                                                             ^
                                                              {
/datasets/git/builtin/merge-tree.c:479:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (o->use_stdin)
                         ^
                          {
/datasets/git/builtin/merge-tree.c:487:28: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
        struct merge_tree_options o = { .show_messages = -1 };
                                  ^
/datasets/git/builtin/merge-tree.c:488:6: warning: variable 'expected_remaining_argc' is not initialized [cppcoreguidelines-init-variables]
        int expected_remaining_argc;
            ^
                                    = 0
/datasets/git/builtin/merge-tree.c:489:6: warning: variable 'original_argc' is not initialized [cppcoreguidelines-init-variables]
        int original_argc;
            ^
                          = 0
/datasets/git/builtin/merge-tree.c:497:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_CMDMODE(0, "write-tree", &o.mode,
                ^
/datasets/git/./parse-options.h:188:37: note: expanded from macro 'OPT_CMDMODE'
#define OPT_CMDMODE(s, l, v, h, i)  OPT_CMDMODE_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:187:16: note: expanded from macro 'OPT_CMDMODE_F'
                                      (h), PARSE_OPT_CMDMODE|PARSE_OPT_NOARG|PARSE_OPT_NONEG | (f), NULL, (i) }
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge-tree.c:500:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_CMDMODE(0, "trivial-merge", &o.mode,
                ^
/datasets/git/./parse-options.h:188:37: note: expanded from macro 'OPT_CMDMODE'
#define OPT_CMDMODE(s, l, v, h, i)  OPT_CMDMODE_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:187:16: note: expanded from macro 'OPT_CMDMODE_F'
                                      (h), PARSE_OPT_CMDMODE|PARSE_OPT_NOARG|PARSE_OPT_NONEG | (f), NULL, (i) }
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge-tree.c:502:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "messages", &o.show_messages,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/merge-tree.c:504:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT('z', NULL, &line_termination,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/merge-tree.c:506:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL_F(0, "name-only",
                ^
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/merge-tree.c:510:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL_F(0, "allow-unrelated-histories",
                ^
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/merge-tree.c:514:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL_F(0, "stdin",
                ^
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/merge-tree.c:530:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (o.mode == MODE_TRIVIAL)
                                           ^
                                            {
/datasets/git/builtin/merge-tree.c:533:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (strbuf_getline_lf(&buf, stdin) != EOF) {
                ^
/datasets/git/builtin/merge-tree.c:533:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'buf' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (strbuf_getline_lf(&buf, stdin) != EOF) {
                       ^
/datasets/git/builtin/merge-tree.c:534:20: warning: variable 'split' is not initialized [cppcoreguidelines-init-variables]
                        struct strbuf **split;
                                        ^
                                              = NULL
/datasets/git/builtin/merge-tree.c:535:8: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
                        int result;
                            ^
                                   = 0
/datasets/git/builtin/merge-tree.c:538:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!split[0] || !split[1] || split[2])
                                                               ^
                                                                {
/datasets/git/builtin/merge-tree.c:542:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (result < 0)
                                       ^
                                        {
/datasets/git/builtin/merge-tree.c:576:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (o.mode == MODE_TRIVIAL && argc < original_argc)
                                                           ^
                                                            {
/datasets/git/builtin/merge-tree.c:579:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc != expected_remaining_argc)
                                            ^
                                             {
/datasets/git/builtin/merge-tree.c:583:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (o.mode == MODE_REAL)
                                ^
                                 {
/datasets/git/builtin/merge-tree.c:585:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else
        ^~~~
                        return trivial_merge(argv[0], argv[1], argv[2])
/datasets/git/builtin/merge-tree.c:585:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/merge.c:11:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "alias.h"
/datasets/git/builtin/merge.c:48:1: warning: replace macro with enum [modernize-macro-to-enum]
#define DEFAULT_TWOHEAD (1<<0)
^~~~~~~~
                        =     ,
/datasets/git/builtin/merge.c:48:9: warning: macro 'DEFAULT_TWOHEAD' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define DEFAULT_TWOHEAD (1<<0)
        ^
/datasets/git/builtin/merge.c:49:9: warning: macro 'DEFAULT_OCTOPUS' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define DEFAULT_OCTOPUS (1<<1)
        ^
/datasets/git/builtin/merge.c:50:9: warning: macro 'NO_FAST_FORWARD' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define NO_FAST_FORWARD (1<<2)
        ^
/datasets/git/builtin/merge.c:51:9: warning: macro 'NO_TRIVIAL' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define NO_TRIVIAL      (1<<3)
        ^
/datasets/git/builtin/merge.c:53:8: warning: accessing fields in struct 'strategy' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct strategy {
       ^
/datasets/git/builtin/merge.c:53:8: note: use "__attribute__((aligned(16)))" to align struct 'strategy' to 16 bytes
/datasets/git/builtin/merge.c:65:12: warning: variable 'show_diffstat' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int show_diffstat = 1, shortlog_len = -1, squash;
           ^
/datasets/git/builtin/merge.c:65:31: warning: variable 'shortlog_len' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int show_diffstat = 1, shortlog_len = -1, squash;
                              ^
/datasets/git/builtin/merge.c:65:50: warning: variable 'squash' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int show_diffstat = 1, shortlog_len = -1, squash;
                                                 ^
/datasets/git/builtin/merge.c:66:12: warning: variable 'option_commit' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int option_commit = -1;
           ^
/datasets/git/builtin/merge.c:67:12: warning: variable 'option_edit' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int option_edit = -1;
           ^
/datasets/git/builtin/merge.c:68:12: warning: variable 'allow_trivial' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int allow_trivial = 1, have_message, verify_signatures;
           ^
/datasets/git/builtin/merge.c:68:31: warning: variable 'have_message' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int allow_trivial = 1, have_message, verify_signatures;
                              ^
/datasets/git/builtin/merge.c:68:45: warning: variable 'verify_signatures' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int allow_trivial = 1, have_message, verify_signatures;
                                            ^
/datasets/git/builtin/merge.c:69:12: warning: variable 'check_trust_level' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int check_trust_level = 1;
           ^
/datasets/git/builtin/merge.c:70:12: warning: variable 'overwrite_ignore' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int overwrite_ignore = 1;
           ^
/datasets/git/builtin/merge.c:71:22: warning: variable 'merge_msg' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct strbuf merge_msg = STRBUF_INIT;
                     ^
/datasets/git/builtin/merge.c:71:22: warning: initializing non-local variable with non-const expression depending on uninitialized non-local variable 'strbuf_slopbuf' [cppcoreguidelines-interfaces-global-init]
/datasets/git/builtin/merge.c:72:26: warning: variable 'use_strategies' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct strategy **use_strategies;
                         ^
/datasets/git/builtin/merge.c:72:26: warning: variable 'use_strategies' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/merge.c:73:15: warning: variable 'use_strategies_nr' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static size_t use_strategies_nr, use_strategies_alloc;
              ^
/datasets/git/builtin/merge.c:73:34: warning: variable 'use_strategies_alloc' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static size_t use_strategies_nr, use_strategies_alloc;
                                 ^
/datasets/git/builtin/merge.c:74:21: warning: variable 'xopts' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char **xopts;
                    ^
/datasets/git/builtin/merge.c:74:21: warning: variable 'xopts' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/merge.c:75:15: warning: variable 'xopts_nr' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static size_t xopts_nr, xopts_alloc;
              ^
/datasets/git/builtin/merge.c:75:25: warning: variable 'xopts_alloc' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static size_t xopts_nr, xopts_alloc;
                        ^
/datasets/git/builtin/merge.c:76:20: warning: variable 'branch' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *branch;
                   ^
/datasets/git/builtin/merge.c:77:14: warning: variable 'branch_mergeoptions' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *branch_mergeoptions;
             ^
/datasets/git/builtin/merge.c:77:14: warning: variable 'branch_mergeoptions' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/merge.c:78:12: warning: variable 'verbosity' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int verbosity;
           ^
/datasets/git/builtin/merge.c:79:12: warning: variable 'allow_rerere_auto' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int allow_rerere_auto;
           ^
/datasets/git/builtin/merge.c:80:12: warning: variable 'abort_current_merge' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int abort_current_merge;
           ^
/datasets/git/builtin/merge.c:81:12: warning: variable 'quit_current_merge' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int quit_current_merge;
           ^
/datasets/git/builtin/merge.c:82:12: warning: variable 'continue_current_merge' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int continue_current_merge;
           ^
/datasets/git/builtin/merge.c:83:12: warning: variable 'allow_unrelated_histories' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int allow_unrelated_histories;
           ^
/datasets/git/builtin/merge.c:84:12: warning: variable 'show_progress' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int show_progress = -1;
           ^
/datasets/git/builtin/merge.c:85:12: warning: variable 'default_to_upstream' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int default_to_upstream = 1;
           ^
/datasets/git/builtin/merge.c:86:12: warning: variable 'signoff' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int signoff;
           ^
/datasets/git/builtin/merge.c:87:20: warning: variable 'sign_commit' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *sign_commit;
                   ^
/datasets/git/builtin/merge.c:88:12: warning: variable 'autostash' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int autostash;
           ^
/datasets/git/builtin/merge.c:89:12: warning: variable 'no_verify' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int no_verify;
           ^
/datasets/git/builtin/merge.c:90:14: warning: variable 'into_name' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *into_name;
             ^
/datasets/git/builtin/merge.c:90:14: warning: variable 'into_name' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/merge.c:92:24: warning: variable 'all_strategy' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct strategy all_strategy[] = {
                       ^
/datasets/git/builtin/merge.c:93:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "recursive",  NO_TRIVIAL },
                        ^
/datasets/git/builtin/merge.c:51:26: note: expanded from macro 'NO_TRIVIAL'
#define NO_TRIVIAL      (1<<3)
                         ^
/datasets/git/builtin/merge.c:94:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "octopus",    DEFAULT_OCTOPUS },
                        ^
/datasets/git/builtin/merge.c:49:26: note: expanded from macro 'DEFAULT_OCTOPUS'
#define DEFAULT_OCTOPUS (1<<1)
                         ^
/datasets/git/builtin/merge.c:95:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "ort",        DEFAULT_TWOHEAD | NO_TRIVIAL },
                        ^
/datasets/git/builtin/merge.c:48:25: note: expanded from macro 'DEFAULT_TWOHEAD'
#define DEFAULT_TWOHEAD (1<<0)
                        ^~~~~~
/datasets/git/builtin/merge.c:95:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "ort",        DEFAULT_TWOHEAD | NO_TRIVIAL },
                                          ^
/datasets/git/builtin/merge.c:51:26: note: expanded from macro 'NO_TRIVIAL'
#define NO_TRIVIAL      (1<<3)
                         ^
/datasets/git/builtin/merge.c:97:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "ours",       NO_FAST_FORWARD | NO_TRIVIAL },
                        ^
/datasets/git/builtin/merge.c:50:25: note: expanded from macro 'NO_FAST_FORWARD'
#define NO_FAST_FORWARD (1<<2)
                        ^~~~~~
/datasets/git/builtin/merge.c:97:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "ours",       NO_FAST_FORWARD | NO_TRIVIAL },
                                          ^
/datasets/git/builtin/merge.c:51:26: note: expanded from macro 'NO_TRIVIAL'
#define NO_TRIVIAL      (1<<3)
                         ^
/datasets/git/builtin/merge.c:98:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "subtree",    NO_FAST_FORWARD | NO_TRIVIAL },
                        ^
/datasets/git/builtin/merge.c:50:25: note: expanded from macro 'NO_FAST_FORWARD'
#define NO_FAST_FORWARD (1<<2)
                        ^~~~~~
/datasets/git/builtin/merge.c:98:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "subtree",    NO_FAST_FORWARD | NO_TRIVIAL },
                                          ^
/datasets/git/builtin/merge.c:51:26: note: expanded from macro 'NO_TRIVIAL'
#define NO_TRIVIAL      (1<<3)
                         ^
/datasets/git/builtin/merge.c:101:20: warning: variable 'pull_twohead' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *pull_twohead, *pull_octopus;
                   ^
/datasets/git/builtin/merge.c:101:35: warning: variable 'pull_octopus' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *pull_twohead, *pull_octopus;
                                  ^
/datasets/git/builtin/merge.c:109:21: warning: variable 'fast_forward' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static enum ff_type fast_forward = FF_ALLOW;
                    ^
/datasets/git/builtin/merge.c:111:20: warning: variable 'cleanup_arg' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *cleanup_arg;
                   ^
/datasets/git/builtin/merge.c:112:37: warning: variable 'cleanup_mode' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static enum commit_msg_cleanup_mode cleanup_mode;
                                    ^
/datasets/git/builtin/merge.c:119:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unset)
                  ^
                   {
/datasets/git/builtin/merge.c:124:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/builtin/merge.c:135:14: warning: variable 'arg' is not initialized [cppcoreguidelines-init-variables]
        const char *arg;
                    ^
                        = NULL
/datasets/git/builtin/merge.c:137:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_ARG(arg_not_used);
        ^
/datasets/git/./parse-options.h:288:29: note: expanded from macro 'BUG_ON_OPT_ARG'
#define BUG_ON_OPT_ARG(arg) do { \
                            ^
/datasets/git/builtin/merge.c:138:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unset)
                  ^
                   {
/datasets/git/builtin/merge.c:147:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/builtin/merge.c:150:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (buf->len)
                     ^
                      {
/datasets/git/builtin/merge.c:152:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ctx->prefix && !is_absolute_path(arg))
                                                  ^
                                                   {
/datasets/git/builtin/merge.c:154:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strbuf_read_file(buf, arg, 0) < 0)
                                              ^
                                               {
/datasets/git/builtin/merge.c:161:25: warning: function 'get_strategy' has cognitive complexity of 29 (threshold 25) [readability-function-cognitive-complexity]
static struct strategy *get_strategy(const char *name)
                        ^
/datasets/git/builtin/merge.c:169:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!name)
        ^
/datasets/git/builtin/merge.c:172:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (default_strategy &&
        ^
/datasets/git/builtin/merge.c:173:39: note: +1
            !strcmp(default_strategy, "ort") &&
                                             ^
/datasets/git/builtin/merge.c:178:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < ARRAY_SIZE(all_strategy); i++)
        ^
/datasets/git/builtin/merge.c:179:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(name, all_strategy[i].name))
                ^
/datasets/git/builtin/merge.c:182:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!loaded) {
        ^
/datasets/git/builtin/merge.c:188:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < main_cmds.cnt; i++) {
                ^
/datasets/git/builtin/merge.c:191:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (j = 0; j < ARRAY_SIZE(all_strategy); j++)
                        ^
/datasets/git/builtin/merge.c:192:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!strncmp(ent->name, all_strategy[j].name, ent->len)
                                ^
/datasets/git/builtin/merge.c:193:7: note: +1
                                                && !all_strategy[j].name[ent->len])
                                                ^
/datasets/git/builtin/merge.c:195:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!found)
                        ^
/datasets/git/builtin/merge.c:200:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!is_in_cmdlist(&main_cmds, name) && !is_in_cmdlist(&other_cmds, name)) {
        ^
/datasets/git/builtin/merge.c:200:39: note: +1
        if (!is_in_cmdlist(&main_cmds, name) && !is_in_cmdlist(&other_cmds, name)) {
                                             ^
/datasets/git/builtin/merge.c:203:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < main_cmds.cnt; i++)
                ^
/datasets/git/builtin/merge.c:206:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (other_cmds.cnt) {
                ^
/datasets/git/builtin/merge.c:208:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (i = 0; i < other_cmds.cnt; i++)
                        ^
/datasets/git/builtin/merge.c:163:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/merge.c:163:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/merge.c:164:19: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        struct strategy *ret;
                         ^
                             = NULL
/datasets/git/builtin/merge.c:165:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        static struct cmdnames main_cmds, other_cmds;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:167:27: warning: function is not thread safe [concurrency-mt-unsafe]
        char *default_strategy = getenv("GIT_TEST_MERGE_ALGORITHM");
                                 ^
/datasets/git/builtin/merge.c:169:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!name)
                  ^
                   {
/datasets/git/builtin/merge.c:178:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ARRAY_SIZE(all_strategy); i++)
        ^
/datasets/git/builtin/merge.c:178:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < ARRAY_SIZE(all_strategy); i++)
                                                      ^
                                                       {
/datasets/git/builtin/merge.c:179:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(name, all_strategy[i].name))
                                                        ^
                                                         {
/datasets/git/builtin/merge.c:186:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(&not_strategies, 0, sizeof(struct cmdnames));
                ^~~~~~
/datasets/git/builtin/merge.c:186:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(&not_strategies, 0, sizeof(struct cmdnames));
                ^~~~~~
/datasets/git/builtin/merge.c:189:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        int j, found = 0;
                        ^~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:189:8: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
                        int j, found = 0;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/merge.c:189:8: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/merge.c:191:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (j = 0; j < ARRAY_SIZE(all_strategy); j++)
                        ^
/datasets/git/builtin/merge.c:191:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (j = 0; j < ARRAY_SIZE(all_strategy); j++)
                                                                      ^
                                                                       {
/datasets/git/builtin/merge.c:193:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                && !all_strategy[j].name[ent->len])
                                                                                   ^
                                                                                    {
/datasets/git/builtin/merge.c:195:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!found)
                                   ^
                                    {
/datasets/git/builtin/merge.c:196:45: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                add_cmdname(&not_strategies, ent->name, ent->len);
                                                                        ^
/datasets/git/builtin/merge.c:201:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, _("Could not find merge strategy '%s'.\n"), name);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:201:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/merge.c:202:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, _("Available strategies are:"));
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:202:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/merge.c:203:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < main_cmds.cnt; i++)
                ^
/datasets/git/builtin/merge.c:203:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < main_cmds.cnt; i++)
                                                   ^
                                                    {
/datasets/git/builtin/merge.c:204:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, " %s", main_cmds.names[i]->name);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:204:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/merge.c:205:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, ".\n");
                ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:205:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/merge.c:207:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, _("Available custom strategies are:"));
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:207:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/merge.c:208:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = 0; i < other_cmds.cnt; i++)
                        ^
/datasets/git/builtin/merge.c:208:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (i = 0; i < other_cmds.cnt; i++)
                                                            ^
                                                             {
/datasets/git/builtin/merge.c:209:5: warning: the value returned by this function should be used [cert-err33-c]
                                fprintf(stderr, " %s", other_cmds.names[i]->name);
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:209:5: note: cast the expression to void to silence this warning
/datasets/git/builtin/merge.c:210:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, ".\n");
                        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:210:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/merge.c:212:3: warning: function is not thread safe [concurrency-mt-unsafe]
                exit(1);
                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/merge.c:217:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ret->attr = NO_TRIVIAL;
                    ^
/datasets/git/builtin/merge.c:51:26: note: expanded from macro 'NO_TRIVIAL'
#define NO_TRIVIAL      (1<<3)
                         ^
/datasets/git/builtin/merge.c:221:46: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void append_strategy(struct strategy *s)
                                             ^
/datasets/git/builtin/merge.c:223:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(use_strategies, use_strategies_nr + 1, use_strategies_alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/builtin/merge.c:223:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_GROW(use_strategies, use_strategies_nr + 1, use_strategies_alloc);
        ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/builtin/merge.c:224:38: warning: Array access (from variable 'use_strategies') results in a null pointer dereference [clang-analyzer-core.NullDereference]
        use_strategies[use_strategies_nr++] = s;
                                            ^
/datasets/git/builtin/merge.c:1294:6: note: Assuming 'argc' is not equal to 2
        if (argc == 2 && !strcmp(argv[1], "-h"))
            ^~~~~~~~~
/datasets/git/builtin/merge.c:1294:16: note: Left side of '&&' is false
        if (argc == 2 && !strcmp(argv[1], "-h"))
                      ^
/datasets/git/builtin/merge.c:1305:6: note: Assuming 'branch' is null
        if (branch)
            ^~~~~~
/datasets/git/builtin/merge.c:1305:2: note: Taking false branch
        if (branch)
        ^
/datasets/git/builtin/merge.c:1308:6: note: Assuming 'pull_twohead' is non-null
        if (!pull_twohead) {
            ^~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1308:2: note: Taking false branch
        if (!pull_twohead) {
        ^
/datasets/git/builtin/merge.c:1317:6: note: Assuming 'branch' is non-null
        if (!branch || is_null_oid(&head_oid))
            ^~~~~~~
/datasets/git/builtin/merge.c:1317:6: note: Left side of '||' is false
/datasets/git/builtin/merge.c:1317:2: note: Taking false branch
        if (!branch || is_null_oid(&head_oid))
        ^
/datasets/git/builtin/merge.c:1322:6: note: Assuming 'branch_mergeoptions' is null
        if (branch_mergeoptions)
            ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1322:2: note: Taking false branch
        if (branch_mergeoptions)
        ^
/datasets/git/builtin/merge.c:1326:6: note: Assuming 'shortlog_len' is >= 0
        if (shortlog_len < 0)
            ^~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1326:2: note: Taking false branch
        if (shortlog_len < 0)
        ^
/datasets/git/builtin/merge.c:1329:6: note: Assuming 'verbosity' is >= 0
        if (verbosity < 0 && show_progress == -1)
            ^~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1329:20: note: Left side of '&&' is false
        if (verbosity < 0 && show_progress == -1)
                          ^
/datasets/git/builtin/merge.c:1332:6: note: Assuming 'abort_current_merge' is 0
        if (abort_current_merge) {
            ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1332:2: note: Taking false branch
        if (abort_current_merge) {
        ^
/datasets/git/builtin/merge.c:1358:6: note: Assuming 'quit_current_merge' is 0
        if (quit_current_merge) {
            ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1358:2: note: Taking false branch
        if (quit_current_merge) {
        ^
/datasets/git/builtin/merge.c:1368:6: note: Assuming 'continue_current_merge' is 0
        if (continue_current_merge) {
            ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1368:2: note: Taking false branch
        if (continue_current_merge) {
        ^
/datasets/git/builtin/merge.c:1384:6: note: Assuming the condition is false
        if (repo_read_index_unmerged(the_repository))
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1384:2: note: Taking false branch
        if (repo_read_index_unmerged(the_repository))
        ^
/datasets/git/builtin/merge.c:1387:6: note: Assuming the condition is false
        if (file_exists(git_path_merge_head(the_repository))) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1387:2: note: Taking false branch
        if (file_exists(git_path_merge_head(the_repository))) {
        ^
/datasets/git/builtin/merge.c:1398:6: note: Assuming the condition is false
        if (ref_exists("CHERRY_PICK_HEAD")) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1398:2: note: Taking false branch
        if (ref_exists("CHERRY_PICK_HEAD")) {
        ^
/datasets/git/builtin/merge.c:1407:6: note: Assuming 'option_edit' is >= 0
        if (option_edit < 0)
            ^~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1407:2: note: Taking false branch
        if (option_edit < 0)
        ^
/datasets/git/builtin/merge.c:1410:47: note: Assuming 'option_edit' is <= 0
        cleanup_mode = get_cleanup_mode(cleanup_arg, 0 < option_edit);
                                                     ^~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1412:6: note: Assuming 'verbosity' is >= 0
        if (verbosity < 0)
            ^~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1412:2: note: Taking false branch
        if (verbosity < 0)
        ^
/datasets/git/builtin/merge.c:1415:6: note: Assuming 'squash' is 0
        if (squash) {
            ^~~~~~
/datasets/git/builtin/merge.c:1415:2: note: Taking false branch
        if (squash) {
        ^
/datasets/git/builtin/merge.c:1428:6: note: Assuming 'option_commit' is >= 0
        if (option_commit < 0)
            ^~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1428:2: note: Taking false branch
        if (option_commit < 0)
        ^
/datasets/git/builtin/merge.c:1431:6: note: Assuming 'argc' is not equal to 0
        if (!argc) {
            ^~~~~
/datasets/git/builtin/merge.c:1431:2: note: Taking false branch
        if (!argc) {
        ^
/datasets/git/builtin/merge.c:1436:13: note: Assuming 'argc' is not equal to 1
        } else if (argc == 1 && !strcmp(argv[0], "-")) {
                   ^~~~~~~~~
/datasets/git/builtin/merge.c:1436:23: note: Left side of '&&' is false
        } else if (argc == 1 && !strcmp(argv[0], "-")) {
                             ^
/datasets/git/builtin/merge.c:1440:7: note: 'argc' is not equal to 0
        if (!argc)
             ^~~~
/datasets/git/builtin/merge.c:1440:2: note: Taking false branch
        if (!argc)
        ^
/datasets/git/builtin/merge.c:1444:6: note: Assuming 'head_commit' is non-null
        if (!head_commit) {
            ^~~~~~~~~~~~
/datasets/git/builtin/merge.c:1444:2: note: Taking false branch
        if (!head_commit) {
        ^
/datasets/git/builtin/merge.c:1482:7: note: 'head_commit' is non-null
        if (!head_commit || !argc)
             ^~~~~~~~~~~
/datasets/git/builtin/merge.c:1482:6: note: Left side of '||' is false
        if (!head_commit || !argc)
            ^
/datasets/git/builtin/merge.c:1482:23: note: 'argc' is not equal to 0
        if (!head_commit || !argc)
                             ^~~~
/datasets/git/builtin/merge.c:1482:2: note: Taking false branch
        if (!head_commit || !argc)
        ^
/datasets/git/builtin/merge.c:1486:6: note: Assuming 'verify_signatures' is 0
        if (verify_signatures) {
            ^~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1486:2: note: Taking false branch
        if (verify_signatures) {
        ^
/datasets/git/builtin/merge.c:1494:2: note: Loop condition is true.  Entering loop body
        for (p = remoteheads; p; p = p->next)
        ^
/datasets/git/builtin/merge.c:1494:2: note: Loop condition is false. Execution continues on line 1496
/datasets/git/builtin/merge.c:1499:2: note: Loop condition is true.  Entering loop body
        for (p = remoteheads; p; p = p->next) {
        ^
/datasets/git/builtin/merge.c:1503:19: note: Value assigned to 'use_strategies'
                setenv(buf.buf, merge_remote_util(commit)->name, 1);
                                ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1505:7: note: Assuming 'fast_forward' is equal to FF_ONLY
                if (fast_forward != FF_ONLY && merging_a_throwaway_tag(commit))
                    ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1505:31: note: Left side of '&&' is false
                if (fast_forward != FF_ONLY && merging_a_throwaway_tag(commit))
                                            ^
/datasets/git/builtin/merge.c:1499:2: note: Loop condition is false. Execution continues on line 1509
        for (p = remoteheads; p; p = p->next) {
        ^
/datasets/git/builtin/merge.c:1509:6: note: Assuming 'use_strategies' is null
        if (!use_strategies && !pull_twohead &&
            ^~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1509:6: note: Left side of '&&' is true
/datasets/git/builtin/merge.c:1509:25: note: Assuming 'pull_twohead' is null
        if (!use_strategies && !pull_twohead &&
                               ^~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1509:6: note: Left side of '&&' is true
        if (!use_strategies && !pull_twohead &&
            ^
/datasets/git/builtin/merge.c:1510:6: note: 'remoteheads' is non-null
            remoteheads && !remoteheads->next) {
            ^~~~~~~~~~~
/datasets/git/builtin/merge.c:1509:6: note: Left side of '&&' is true
        if (!use_strategies && !pull_twohead &&
            ^
/datasets/git/builtin/merge.c:1510:35: note: Field 'next' is null
            remoteheads && !remoteheads->next) {
                                         ^
/datasets/git/builtin/merge.c:1509:2: note: Taking true branch
        if (!use_strategies && !pull_twohead &&
        ^
/datasets/git/builtin/merge.c:1511:28: note: Assuming the environment variable exists
                char *default_strategy = getenv("GIT_TEST_MERGE_ALGORITHM");
                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1512:7: note: 'default_strategy' is non-null
                if (default_strategy)
                    ^~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1512:3: note: Taking true branch
                if (default_strategy)
                ^
/datasets/git/builtin/merge.c:1513:4: note: Calling 'append_strategy'
                        append_strategy(get_strategy(default_strategy));
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:223:2: note: Assuming the condition is false
        ALLOC_GROW(use_strategies, use_strategies_nr + 1, use_strategies_alloc);
        ^
/datasets/git/./refs/../cache.h:702:7: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                    ^~~~~~~~~~~~
/datasets/git/builtin/merge.c:223:2: note: Taking false branch
        ALLOC_GROW(use_strategies, use_strategies_nr + 1, use_strategies_alloc);
        ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/builtin/merge.c:223:2: note: Loop condition is false.  Exiting loop
        ALLOC_GROW(use_strategies, use_strategies_nr + 1, use_strategies_alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/builtin/merge.c:224:38: note: Array access (from variable 'use_strategies') results in a null pointer dereference
        use_strategies[use_strategies_nr++] = s;
        ~~~~~~~~~~~~~~                      ^
/datasets/git/builtin/merge.c:227:55: warning: parameter 'opt' is unused [misc-unused-parameters]
static int option_parse_strategy(const struct option *opt,
                                                      ^
/datasets/git/builtin/merge.c:230:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unset)
                  ^
                   {
/datasets/git/builtin/merge.c:237:48: warning: parameter 'opt' is unused [misc-unused-parameters]
static int option_parse_x(const struct option *opt,
                                               ^
/datasets/git/builtin/merge.c:240:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unset)
                  ^
                   {
/datasets/git/builtin/merge.c:243:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(xopts, xopts_nr + 1, xopts_alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/builtin/merge.c:248:48: warning: parameter 'opt' is unused [misc-unused-parameters]
static int option_parse_n(const struct option *opt,
                                               ^
/datasets/git/builtin/merge.c:251:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_ARG(arg);
        ^
/datasets/git/./parse-options.h:288:29: note: expanded from macro 'BUG_ON_OPT_ARG'
#define BUG_ON_OPT_ARG(arg) do { \
                            ^
/datasets/git/builtin/merge.c:256:22: warning: variable 'builtin_merge_options' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct option builtin_merge_options[] = {
                     ^
/datasets/git/builtin/merge.c:260:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "stat", &show_diffstat,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:262:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "summary", &show_diffstat, N_("(synonym to --stat)")),
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:266:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "squash", &squash,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:268:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "commit", &option_commit,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:270:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL('e', "edit", &option_edit,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:273:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_SET_INT(0, "ff", &fast_forward, N_("allow fast-forward (default)"), FF_ALLOW),
        ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:274:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_SET_INT_F(0, "ff-only", &fast_forward,
        ^
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:278:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "verify-signatures", &verify_signatures,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:293:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "abort", &abort_current_merge,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:295:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "quit", &quit_current_merge,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:297:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "continue", &continue_current_merge,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:299:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "allow-unrelated-histories", &allow_unrelated_histories,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:301:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_SET_INT(0, "progress", &show_progress, N_("force progress reporting"), 1),
        ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:304:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_AUTOSTASH(&autostash),
        ^
/datasets/git/./parse-options.h:392:26: note: expanded from macro 'OPT_AUTOSTASH'
#define OPT_AUTOSTASH(v) OPT_BOOL(0, "autostash", v, N_("automatically stash/stash pop before and after"))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:305:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "overwrite-ignore", &overwrite_ignore, N_("update ignored files (default)")),
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:306:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "signoff", &signoff, N_("add a Signed-off-by trailer")),
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:307:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "no-verify", &no_verify, N_("bypass pre-merge-commit and commit-msg hooks")),
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:313:6: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int len;
            ^
                = 0
/datasets/git/builtin/merge.c:314:23: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
        struct child_process cp = CHILD_PROCESS_INIT;
                             ^
/datasets/git/builtin/merge.c:317:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/builtin/merge.c:317:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/merge.c:318:6: warning: variable name 'rc' is too short, expected at least 3 characters [readability-identifier-length]
        int rc = -1;
            ^
/datasets/git/builtin/merge.c:321:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        refresh_index(&the_index, REFRESH_QUIET, NULL, NULL, NULL);
                                  ^
/datasets/git/./refs/../cache.h:923:43: note: expanded from macro 'REFRESH_QUIET'
#define REFRESH_QUIET                    (1 << 2) /* be quiet about it */
                                          ^
/datasets/git/builtin/merge.c:322:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (0 <= fd)
                    ^
                     {
/datasets/git/builtin/merge.c:330:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (start_command(&cp))
                               ^
                                {
/datasets/git/builtin/merge.c:332:8: warning: narrowing conversion from 'ssize_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        len = strbuf_read(&buffer, cp.out, 1024);
              ^
/datasets/git/builtin/merge.c:332:37: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        len = strbuf_read(&buffer, cp.out, 1024);
                                           ^
/datasets/git/builtin/merge.c:335:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (finish_command(&cp) || len < 0)
                                           ^
                                            {
/datasets/git/builtin/merge.c:337:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!len)          /* no changes */
                      ^
                       {
/datasets/git/builtin/merge.c:340:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid(buffer.buf, stash))
                                       ^
                                        {
/datasets/git/builtin/merge.c:356:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (run_command(&cmd))
                              ^
                               {
/datasets/git/builtin/merge.c:368:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (run_command(&cmd))
                              ^
                               {
/datasets/git/builtin/merge.c:372:27: warning: 2 adjacent parameters of 'restore_state' of similar type ('const struct object_id *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void restore_state(const struct object_id *head,
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:372:51: note: the first parameter in the range is 'head'
static void restore_state(const struct object_id *head,
                                                  ^~~~
/datasets/git/builtin/merge.c:373:30: note: the last parameter in the range is 'stash'
                          const struct object_id *stash)
                                                  ^~~~~
/datasets/git/builtin/merge.c:379:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_null_oid(stash))
                               ^
                                {
/datasets/git/builtin/merge.c:394:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (read_cache() < 0)
                             ^
                              {
/datasets/git/builtin/merge.c:402:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (squash)
                           ^
                            {
/datasets/git/builtin/merge.c:404:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/merge.c:414:22: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *j;
                            ^
                              = NULL
/datasets/git/builtin/merge.c:414:22: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/merge.c:423:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        commit->object.flags |= UNINTERESTING;
                                ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/builtin/merge.c:426:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (j = remoteheads; j; j = j->next)
        ^
/datasets/git/builtin/merge.c:426:24: warning: backward branch (for loop) is ID-dependent due to variable reference to 'j' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (j = remoteheads; j; j = j->next)
                              ^
/datasets/git/builtin/merge.c:426:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (j = remoteheads; j; j = j->next)
                                             ^
                                              {
/datasets/git/builtin/merge.c:430:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prepare_revision_walk(&rev))
                                        ^
                                         {
/datasets/git/builtin/merge.c:433:15: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        ctx.abbrev = rev.abbrev;
                     ^
/datasets/git/builtin/merge.c:438:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((commit = get_revision(&rev)) != NULL) {
        ^
/datasets/git/builtin/merge.c:438:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'commit' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((commit = get_revision(&rev)) != NULL) {
               ^
/datasets/git/builtin/merge.c:456:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!msg)
                 ^
                  {
/datasets/git/builtin/merge.c:457:34: warning: function is not thread safe [concurrency-mt-unsafe]
                strbuf_addstr(&reflog_message, getenv("GIT_REFLOG_ACTION"));
                                               ^
/datasets/git/builtin/merge.c:459:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (verbosity >= 0)
                                   ^
                                    {
/datasets/git/builtin/merge.c:462:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        getenv("GIT_REFLOG_ACTION"), msg);
                        ^
/datasets/git/builtin/merge.c:467:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (verbosity >= 0 && !merge_msg.len)
                                                     ^
                                                      {
/datasets/git/builtin/merge.c:484:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                opts.output_format |=
                ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:485:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        DIFF_FORMAT_SUMMARY | DIFF_FORMAT_DIFFSTAT;
                        ^
/datasets/git/./diff.h:102:29: note: expanded from macro 'DIFF_FORMAT_SUMMARY'
#define DIFF_FORMAT_SUMMARY     0x0008
                                ^~~~~~
/datasets/git/builtin/merge.c:496:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (new_head)
                     ^
                      {
/datasets/git/builtin/merge.c:502:13: warning: function 'merge_name' has cognitive complexity of 36 (threshold 25) [readability-function-cognitive-complexity]
static void merge_name(const char *remote, struct strbuf *msg)
            ^
/datasets/git/builtin/merge.c:517:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!remote_head)
        ^
/datasets/git/builtin/merge.c:520:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (dwim_ref(remote, strlen(remote), &branch_head, &found_ref, 0) > 0) {
        ^
/datasets/git/builtin/merge.c:521:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (starts_with(found_ref, "refs/heads/")) {
                ^
/datasets/git/builtin/merge.c:524:4: note: +1
                        goto cleanup;
                        ^
/datasets/git/builtin/merge.c:526:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (starts_with(found_ref, "refs/tags/")) {
                ^
/datasets/git/builtin/merge.c:529:4: note: +1
                        goto cleanup;
                        ^
/datasets/git/builtin/merge.c:531:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (starts_with(found_ref, "refs/remotes/")) {
                ^
/datasets/git/builtin/merge.c:534:4: note: +1
                        goto cleanup;
                        ^
/datasets/git/builtin/merge.c:539:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (len = 0, ptr = remote + strlen(remote);
        ^
/datasets/git/builtin/merge.c:540:20: note: +1
             remote < ptr && ptr[-1] == '^';
                          ^
/datasets/git/builtin/merge.c:543:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (len)
        ^
/datasets/git/builtin/merge.c:545:2: note: +1, nesting level increased to 1
        else {
        ^
/datasets/git/builtin/merge.c:548:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ptr) {
                ^
/datasets/git/builtin/merge.c:552:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (*++ptr && isdigit(*ptr)) {
                        ^
/datasets/git/builtin/merge.c:552:18: note: +1
                        while (*++ptr && isdigit(*ptr)) {
                                      ^
/datasets/git/builtin/merge.c:556:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (*ptr)
                        ^
/datasets/git/builtin/merge.c:558:9: note: +1, nesting level increased to 3
                        else if (seen_nonzero)
                             ^
/datasets/git/builtin/merge.c:560:9: note: +1, nesting level increased to 3
                        else if (len == 1)
                             ^
/datasets/git/builtin/merge.c:564:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (len) {
        ^
/datasets/git/builtin/merge.c:568:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ref_exists(truname.buf)) {
                ^
/datasets/git/builtin/merge.c:573:16: note: +3, including nesting penalty of 2, nesting level increased to 3
                                    (early ? " (early part)" : ""));
                                           ^
/datasets/git/builtin/merge.c:575:4: note: +1
                        goto cleanup;
                        ^
/datasets/git/builtin/merge.c:581:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (desc && desc->obj && desc->obj->type == OBJ_TAG) {
        ^
/datasets/git/builtin/merge.c:581:24: note: +1
        if (desc && desc->obj && desc->obj->type == OBJ_TAG) {
                              ^
/datasets/git/builtin/merge.c:586:3: note: +1
                goto cleanup;
                ^
/datasets/git/builtin/merge.c:504:17: warning: variable 'remote_head' is not initialized [cppcoreguidelines-init-variables]
        struct commit *remote_head;
                       ^
                                   = NULL
/datasets/git/builtin/merge.c:507:28: warning: variable 'desc' is not initialized [cppcoreguidelines-init-variables]
        struct merge_remote_desc *desc;
                                  ^
                                       = NULL
/datasets/git/builtin/merge.c:508:14: warning: variable 'ptr' is not initialized [cppcoreguidelines-init-variables]
        const char *ptr;
                    ^
                        = NULL
/datasets/git/builtin/merge.c:510:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int len, early;
        ^~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:510:6: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int len, early;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/merge.c:510:11: warning: variable 'early' is not initialized [cppcoreguidelines-init-variables]
        int len, early;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/merge.c:517:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!remote_head)
                         ^
                          {
/datasets/git/builtin/merge.c:520:23: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        if (dwim_ref(remote, strlen(remote), &branch_head, &found_ref, 0) > 0) {
                             ^
/datasets/git/builtin/merge.c:539:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (len = 0, ptr = remote + strlen(remote);
        ^
/datasets/git/builtin/merge.c:540:7: warning: backward branch (for loop) is ID-dependent due to variable reference to 'remote' and may cause performance degradation [altera-id-dependent-backward-branch]
             remote < ptr && ptr[-1] == '^';
             ^
/datasets/git/builtin/merge.c:541:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
             ptr--)
                   ^
                    {
/datasets/git/builtin/merge.c:543:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len)
                ^
                 {
/datasets/git/builtin/merge.c:552:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (*++ptr && isdigit(*ptr)) {
                        ^
/datasets/git/builtin/merge.c:552:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'ptr' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (*++ptr && isdigit(*ptr)) {
                               ^
/datasets/git/builtin/merge.c:552:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        while (*++ptr && isdigit(*ptr)) {
                                         ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/builtin/merge.c:553:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                seen_nonzero |= (*ptr != '0');
                                ^~~~~~~~~~~~
/datasets/git/builtin/merge.c:556:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (*ptr)
                                 ^
                                  {
/datasets/git/builtin/merge.c:558:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (seen_nonzero)
                                              ^
                                               {
/datasets/git/builtin/merge.c:559:5: warning: repeated branch in conditional chain [bugprone-branch-clone]
                                early = 1;
                                ^
/datasets/git/builtin/merge.c:559:14: note: end of the original
                                early = 1;
                                         ^
/datasets/git/builtin/merge.c:561:5: note: clone 1 starts here
                                early = 1; /* "name~" is "name~1"! */
                                ^
/datasets/git/builtin/merge.c:560:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (len == 1)
                                          ^
                                           {
/datasets/git/builtin/merge.c:572:23: warning: 11 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                    truname.buf + 11,
                                                  ^
/datasets/git/builtin/merge.c:598:15: warning: variable 'argv' is not initialized [cppcoreguidelines-init-variables]
        const char **argv;
                     ^
                          = NULL
/datasets/git/builtin/merge.c:599:6: warning: variable 'argc' is not initialized [cppcoreguidelines-init-variables]
        int argc;
            ^
                 = 0
/datasets/git/builtin/merge.c:601:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!bmo)
                 ^
                  {
/datasets/git/builtin/merge.c:604:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc < 0)
                     ^
                      {
/datasets/git/builtin/merge.c:616:41: warning: parameter name 'k' is too short, expected at least 3 characters [readability-identifier-length]
static int git_merge_config(const char *k, const char *v, void *cb)
                                        ^
/datasets/git/builtin/merge.c:616:56: warning: parameter name 'v' is too short, expected at least 3 characters [readability-identifier-length]
static int git_merge_config(const char *k, const char *v, void *cb)
                                                       ^
/datasets/git/builtin/merge.c:616:65: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int git_merge_config(const char *k, const char *v, void *cb)
                                                                ^
/datasets/git/builtin/merge.c:618:6: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int status;
            ^
                   = 0
/datasets/git/builtin/merge.c:619:14: warning: variable 'str' is not initialized [cppcoreguidelines-init-variables]
        const char *str;
                    ^
                        = NULL
/datasets/git/builtin/merge.c:630:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(k, "merge.diffstat") || !strcmp(k, "merge.stat"))
                                                                     ^
                                                                      {
/datasets/git/builtin/merge.c:632:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(k, "merge.verifysignatures"))
                                                      ^
                                                       {
/datasets/git/builtin/merge.c:634:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(k, "pull.twohead"))
                                            ^
                                             {
/datasets/git/builtin/merge.c:636:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(k, "pull.octopus"))
                                            ^
                                             {
/datasets/git/builtin/merge.c:638:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(k, "commit.cleanup"))
                                              ^
                                               {
/datasets/git/builtin/merge.c:662:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (status)
                   ^
                    {
/datasets/git/builtin/merge.c:665:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (status)
                   ^
                    {
/datasets/git/builtin/merge.c:673:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, nr_trees = 0;
        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:673:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, nr_trees = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/merge.c:673:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/merge.c:675:19: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
        struct tree_desc t[MAX_UNPACK_TREES];
                         ^
/datasets/git/builtin/merge.c:678:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&opts, 0, sizeof(opts));
        ^~~~~~
/datasets/git/builtin/merge.c:678:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&opts, 0, sizeof(opts));
        ^~~~~~
/datasets/git/builtin/merge.c:688:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!trees[nr_trees++])
                               ^
                                {
/datasets/git/builtin/merge.c:691:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!trees[nr_trees++])
                               ^
                                {
/datasets/git/builtin/merge.c:694:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!trees[nr_trees++])
                               ^
                                {
/datasets/git/builtin/merge.c:698:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr_trees; i++) {
        ^
/datasets/git/builtin/merge.c:702:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unpack_trees(nr_trees, t, &opts))
                                             ^
                                              {
/datasets/git/builtin/merge.c:709:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_cache_as_tree(oid, 0, NULL))
                                              ^
                                               {
/datasets/git/builtin/merge.c:713:12: warning: function 'try_merge_strategy' has cognitive complexity of 26 (threshold 25) [readability-function-cognitive-complexity]
static int try_merge_strategy(const char *strategy, struct commit_list *common,
           ^
/datasets/git/builtin/merge.c:719:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (repo_refresh_and_write_index(the_repository, REFRESH_QUIET,
        ^
/datasets/git/builtin/merge.c:724:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(strategy, "recursive") || !strcmp(strategy, "subtree") ||
        ^
/datasets/git/builtin/merge.c:724:69: note: +1
        if (!strcmp(strategy, "recursive") || !strcmp(strategy, "subtree") ||
                                                                           ^
/datasets/git/builtin/merge.c:733:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (remoteheads->next) {
                ^
/datasets/git/builtin/merge.c:739:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(strategy, "subtree"))
                ^
/datasets/git/builtin/merge.c:743:24: note: +2, including nesting penalty of 1, nesting level increased to 2
                        show_progress == -1 ? isatty(2) : show_progress;
                                            ^
/datasets/git/builtin/merge.c:745:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (x = 0; x < xopts_nr; x++)
                ^
/datasets/git/builtin/merge.c:746:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (parse_merge_opt(&o, xopts[x]))
                        ^
/datasets/git/builtin/merge.c:752:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (j = common; j; j = j->next)
                ^
/datasets/git/builtin/merge.c:757:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(strategy, "ort"))
                ^
/datasets/git/builtin/merge.c:760:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/merge.c:763:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (clean < 0) {
                ^
/datasets/git/builtin/merge.c:767:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (write_locked_index(&the_index, &lock,
                ^
/datasets/git/builtin/merge.c:770:16: note: +2, including nesting penalty of 1, nesting level increased to 2
                return clean ? 0 : 1;
                             ^
/datasets/git/builtin/merge.c:771:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/merge.c:719:51: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (repo_refresh_and_write_index(the_repository, REFRESH_QUIET,
                                                         ^
/datasets/git/./refs/../cache.h:923:43: note: expanded from macro 'REFRESH_QUIET'
#define REFRESH_QUIET                    (1 << 2) /* be quiet about it */
                                          ^
/datasets/git/builtin/merge.c:720:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                         SKIP_IF_UNCHANGED, 0, NULL, NULL,
                                         ^
/datasets/git/./refs/../cache.h:745:28: note: expanded from macro 'SKIP_IF_UNCHANGED'
#define SKIP_IF_UNCHANGED       (1 << 1)
                                 ^
/datasets/git/builtin/merge.c:721:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                         NULL) < 0)
                                                   ^
                                                    {
/datasets/git/builtin/merge.c:727:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int clean, x;
                ^~~~~~~~~~~~~
/datasets/git/builtin/merge.c:727:7: warning: variable 'clean' is not initialized [cppcoreguidelines-init-variables]
                int clean, x;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/merge.c:727:14: warning: variable 'x' is not initialized [cppcoreguidelines-init-variables]
                int clean, x;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/merge.c:727:14: warning: variable name 'x' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/merge.c:728:18: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
                struct commit *result;
                               ^
                                      = NULL
/datasets/git/builtin/merge.c:730:24: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                struct merge_options o;
                                     ^
/datasets/git/builtin/merge.c:731:23: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
                struct commit_list *j;
                                    ^
                                      = NULL
/datasets/git/builtin/merge.c:731:23: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/merge.c:739:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(strategy, "subtree"))
                                                 ^
                                                  {
/datasets/git/builtin/merge.c:745:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (x = 0; x < xopts_nr; x++)
                ^
/datasets/git/builtin/merge.c:745:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (x = 0; x < xopts_nr; x++)
                                              ^
                                               {
/datasets/git/builtin/merge.c:746:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (parse_merge_opt(&o, xopts[x]))
                                                          ^
                                                           {
/datasets/git/builtin/merge.c:752:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (j = common; j; j = j->next)
                ^
/datasets/git/builtin/merge.c:752:20: warning: backward branch (for loop) is ID-dependent due to variable reference to 'j' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (j = common; j; j = j->next)
                                 ^
/datasets/git/builtin/merge.c:752:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (j = common; j; j = j->next)
                                                ^
                                                 {
/datasets/git/builtin/merge.c:757:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(strategy, "ort"))
                                             ^
                                              {
/datasets/git/builtin/merge.c:760:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/merge.c:768:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                       COMMIT_LOCK | SKIP_IF_UNCHANGED))
                                       ^
/datasets/git/./refs/../cache.h:744:22: note: expanded from macro 'COMMIT_LOCK'
#define COMMIT_LOCK             (1 << 0)
                                ^~~~~~~~
/datasets/git/builtin/merge.c:768:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                       COMMIT_LOCK | SKIP_IF_UNCHANGED))
                                                     ^
/datasets/git/./refs/../cache.h:745:28: note: expanded from macro 'SKIP_IF_UNCHANGED'
#define SKIP_IF_UNCHANGED       (1 << 1)
                                 ^
/datasets/git/builtin/merge.c:768:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                       COMMIT_LOCK | SKIP_IF_UNCHANGED))
                                                                        ^
                                                                         {
/datasets/git/builtin/merge.c:771:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else {
          ^~~~~~
/datasets/git/builtin/merge.c:778:56: warning: parameter name 'q' is too short, expected at least 3 characters [readability-identifier-length]
static void count_diff_files(struct diff_queue_struct *q,
                                                       ^
/datasets/git/builtin/merge.c:779:30: warning: parameter 'opt' is unused [misc-unused-parameters]
                             struct diff_options *opt, void *data)
                                                  ^
/datasets/git/builtin/merge.c:788:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, ret = 0;
        ^~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:788:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, ret = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/merge.c:788:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/merge.c:790:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < the_index.cache_nr; i++)
        ^
/datasets/git/builtin/merge.c:790:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < the_index.cache_nr; i++)
                                                ^
                                                 {
/datasets/git/builtin/merge.c:791:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce_stage(the_index.cache[i]))
                    ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:791:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ce_stage(the_index.cache[i]))
                                                 ^
                                                  {
/datasets/git/builtin/merge.c:799:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/merge.c:799:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/merge.c:803:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                struct string_list_item *item;
                ^
/datasets/git/builtin/merge.c:803:28: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
                struct string_list_item *item;
                                         ^
                                              = NULL
/datasets/git/builtin/merge.c:805:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for_each_string_list_item(item, &list)
                ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/merge.c:805:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
                for_each_string_list_item(item, &list)
                                          ^
/datasets/git/builtin/merge.c:810:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ARRAY_SIZE(all_strategy); i++)
        ^
/datasets/git/builtin/merge.c:810:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < ARRAY_SIZE(all_strategy); i++)
                                                      ^
                                                       {
/datasets/git/builtin/merge.c:811:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (all_strategy[i].attr & attr)
                                                ^
                                                 {
/datasets/git/builtin/merge.c:820:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strbuf_read_file(msg, filename, 0) < 0)
                                                   ^
                                                    {
/datasets/git/builtin/merge.c:824:51: warning: all parameters should be named in a function [hicpp-named-parameter,readability-named-parameter]
static void write_merge_state(struct commit_list *);
                                                  ^
                                                   /*remoteheads*/
/datasets/git/builtin/merge.c:827:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err_msg)
                    ^
                     {
/datasets/git/builtin/merge.c:829:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(stderr,
        ^~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:829:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/merge.c:832:2: warning: function is not thread safe [concurrency-mt-unsafe]
        exit(1);
        ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/merge.c:847:51: warning: all parameters should be named in a function [hicpp-named-parameter,readability-named-parameter]
static void write_merge_heads(struct commit_list *);
                                                  ^
                                                   /*remoteheads*/
/datasets/git/builtin/merge.c:854:7: warning: variable 'invoked_hook' is not initialized [cppcoreguidelines-init-variables]
                int invoked_hook;
                    ^
                                 = 0
/datasets/git/builtin/merge.c:857:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                    "pre-merge-commit", NULL))
                                                              ^
                                                               {
/datasets/git/builtin/merge.c:864:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (invoked_hook)
                                 ^
                                  {
/datasets/git/builtin/merge.c:869:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (squash)
                   ^
                    {
/datasets/git/builtin/merge.c:878:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cleanup_mode == COMMIT_MSG_CLEANUP_SCISSORS)
                                                                ^
                                                                 {
/datasets/git/builtin/merge.c:880:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/merge.c:884:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (signoff)
                    ^
                     {
/datasets/git/builtin/merge.c:890:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            git_path_merge_msg(the_repository), "merge", NULL))
                                                                               ^
                                                                                {
/datasets/git/builtin/merge.c:893:69: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (launch_editor(git_path_merge_msg(the_repository), NULL, NULL))
                                                                                  ^
                                                                                   {
/datasets/git/builtin/merge.c:899:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                          git_path_merge_msg(the_repository), NULL))
                                                                                    ^
                                                                                     {
/datasets/git/builtin/merge.c:904:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!msg.len)
                     ^
                      {
/datasets/git/builtin/merge.c:913:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct object_id result_tree, result_commit;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:914:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit_list *parents, **pptr = &parents;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:914:22: warning: variable 'parents' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *parents, **pptr = &parents;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/merge.c:916:51: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (repo_refresh_and_write_index(the_repository, REFRESH_QUIET,
                                                         ^
/datasets/git/./refs/../cache.h:923:43: note: expanded from macro 'REFRESH_QUIET'
#define REFRESH_QUIET                    (1 << 2) /* be quiet about it */
                                          ^
/datasets/git/builtin/merge.c:917:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                         SKIP_IF_UNCHANGED, 0, NULL, NULL,
                                         ^
/datasets/git/./refs/../cache.h:745:28: note: expanded from macro 'SKIP_IF_UNCHANGED'
#define SKIP_IF_UNCHANGED       (1 << 1)
                                 ^
/datasets/git/builtin/merge.c:918:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                         NULL) < 0)
                                                   ^
                                                    {
/datasets/git/builtin/merge.c:924:2: warning: Value stored to 'pptr' is never read [clang-analyzer-deadcode.DeadStores]
        pptr = commit_list_append(remoteheads->item, pptr);
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:924:2: note: Value stored to 'pptr' is never read
        pptr = commit_list_append(remoteheads->item, pptr);
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:927:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        &result_commit, NULL, sign_commit))
                                                           ^
                                                            {
/datasets/git/builtin/merge.c:936:8: warning: 2 adjacent parameters of 'finish_automerge' of similar type ('struct commit_list *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                            struct commit_list *common,
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:936:28: note: the first parameter in the range is 'common'
                            struct commit_list *common,
                                                ^~~~~~
/datasets/git/builtin/merge.c:937:28: note: the last parameter in the range is 'remoteheads'
                            struct commit_list *remoteheads,
                                                ^~~~~~~~~~~
/datasets/git/builtin/merge.c:948:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!head_subsumed || fast_forward == FF_NO)
                                                    ^
                                                     {
/datasets/git/builtin/merge.c:952:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        &result_commit, NULL, sign_commit))
                                                           ^
                                                            {
/datasets/git/builtin/merge.c:963:14: warning: variable 'filename' is not initialized [cppcoreguidelines-init-variables]
        const char *filename;
                    ^
                             = NULL
/datasets/git/builtin/merge.c:964:8: warning: variable 'fp' is not initialized [cppcoreguidelines-init-variables]
        FILE *fp;
              ^
                 = NULL
/datasets/git/builtin/merge.c:964:8: warning: variable name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/merge.c:979:2: warning: the value returned by this function should be used [cert-err33-c]
        fputs(msgbuf.buf, fp);
        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:979:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/merge.c:981:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(fp);
        ^~~~~~~~~~
/datasets/git/builtin/merge.c:981:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/merge.c:996:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        rev.diffopt.output_format |=
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1019:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/merge.c:1019:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/merge.c:1020:15: warning: variable 'args' is not initialized [cppcoreguidelines-init-variables]
        const char **args;
                     ^
                          = NULL
/datasets/git/builtin/merge.c:1022:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!branch)
                    ^
                     {
/datasets/git/builtin/merge.c:1024:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!branch->remote_name)
                                 ^
                                  {
/datasets/git/builtin/merge.c:1026:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!branch->merge_nr)
                              ^
                               {
/datasets/git/builtin/merge.c:1030:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < branch->merge_nr; i++) {
        ^
/datasets/git/builtin/merge.c:1031:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!branch->merge[i]->dst)
                                           ^
                                            {
/datasets/git/builtin/merge.c:1043:22: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *j;
                            ^
                              = NULL
/datasets/git/builtin/merge.c:1043:22: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/merge.c:1046:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (j = remoteheads; j; j = j->next) {
        ^
/datasets/git/builtin/merge.c:1046:24: warning: backward branch (for loop) is ID-dependent due to variable reference to 'j' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (j = remoteheads; j; j = j->next) {
                              ^
/datasets/git/builtin/merge.c:1047:21: warning: variable 'oid' is not initialized [cppcoreguidelines-init-variables]
                struct object_id *oid;
                                  ^
                                      = NULL
/datasets/git/builtin/merge.c:1048:18: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                struct commit *c = j->item;
                               ^
/datasets/git/builtin/merge.c:1049:29: warning: variable 'desc' is not initialized [cppcoreguidelines-init-variables]
                struct merge_remote_desc *desc;
                                          ^
                                               = NULL
/datasets/git/builtin/merge.c:1062:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fast_forward == FF_NO)
                                  ^
                                   {
/datasets/git/builtin/merge.c:1079:14: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
        const char *e = getenv(name);
                    ^
/datasets/git/builtin/merge.c:1079:18: warning: function is not thread safe [concurrency-mt-unsafe]
        const char *e = getenv(name);
                        ^
/datasets/git/builtin/merge.c:1080:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct stat st_stdin, st_stdout;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1082:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (have_message)
                         ^
                          {
/datasets/git/builtin/merge.c:1087:7: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
                int v = git_parse_maybe_bool(e);
                    ^
/datasets/git/builtin/merge.c:1088:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (v < 0)
                          ^
                           {
/datasets/git/builtin/merge.c:1106:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit_list *parents, **remotes;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1106:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/builtin/merge.c:1106:22: warning: variable 'parents' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *parents, **remotes;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/merge.c:1106:33: warning: variable 'remotes' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *parents, **remotes;
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/merge.c:1123:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (parents) {
        ^
/datasets/git/builtin/merge.c:1123:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'parents' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (parents) {
               ^
/datasets/git/builtin/merge.c:1125:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (commit == head_commit)
                                          ^
                                           {
/datasets/git/builtin/merge.c:1127:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/merge.c:1137:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&opts, 0, sizeof(opts));
        ^~~~~~
/datasets/git/builtin/merge.c:1137:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&opts, 0, sizeof(opts));
        ^~~~~~
/datasets/git/builtin/merge.c:1144:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (merge_msg->len)
                           ^
                            {
/datasets/git/builtin/merge.c:1150:14: warning: variable 'filename' is not initialized [cppcoreguidelines-init-variables]
        const char *filename;
                    ^
                             = NULL
/datasets/git/builtin/merge.c:1151:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int fd, pos, npos;
        ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1151:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd, pos, npos;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/merge.c:1151:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/merge.c:1151:10: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        int fd, pos, npos;
                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/merge.c:1151:15: warning: variable 'npos' is not initialized [cppcoreguidelines-init-variables]
        int fd, pos, npos;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/merge.c:1155:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!merge_names)
                         ^
                          {
/datasets/git/builtin/merge.c:1161:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strbuf_read(merge_names, fd, 0) < 0)
                                                ^
                                                 {
/datasets/git/builtin/merge.c:1163:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (close(fd) < 0)
                          ^
                           {
/datasets/git/builtin/merge.c:1166:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (pos = 0; pos < merge_names->len; pos = npos) {
        ^
/datasets/git/builtin/merge.c:1166:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'pos' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (pos = 0; pos < merge_names->len; pos = npos) {
                      ^
/datasets/git/builtin/merge.c:1168:9: warning: variable 'ptr' is not initialized [cppcoreguidelines-init-variables]
                char *ptr;
                      ^
                          = NULL
/datasets/git/builtin/merge.c:1169:18: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
                struct commit *commit;
                               ^
                                      = NULL
/datasets/git/builtin/merge.c:1172:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ptr)
                        ^
                         {
/datasets/git/builtin/merge.c:1173:11: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        npos = ptr - merge_names->buf + 1;
                               ^
/datasets/git/builtin/merge.c:1174:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/merge.c:1175:11: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        npos = merge_names->len;
                               ^
/datasets/git/builtin/merge.c:1178:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    get_oid_hex(merge_names->buf + pos, &oid))
                                                              ^
                                                               {
/datasets/git/builtin/merge.c:1180:12: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                else if (memcmp(merge_names->buf + pos + hexsz, "\t\t", 2))
                         ^
                                                                           != 0
/datasets/git/builtin/merge.c:1180:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (memcmp(merge_names->buf + pos + hexsz, "\t\t", 2))
                                                                           ^
                                                                            {
/datasets/git/builtin/merge.c:1189:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ptr)
                                ^
                                 {
/datasets/git/builtin/merge.c:1197:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (merge_names == &fetch_head_file)
                                            ^
                                             {
/datasets/git/builtin/merge.c:1206:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/merge.c:1206:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/merge.c:1209:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct strbuf merge_names = STRBUF_INIT, *autogen = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1211:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (merge_msg && (!have_message || shortlog_len))
                                                         ^
                                                          {
/datasets/git/builtin/merge.c:1214:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (head_commit)
                        ^
                         {
/datasets/git/builtin/merge.c:1221:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < argc; i++) {
                ^
/datasets/git/builtin/merge.c:1223:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!commit)
                                    ^
                                     {
/datasets/git/builtin/merge.c:1230:24: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                        struct commit_list *p;
                                            ^
                                              = NULL
/datasets/git/builtin/merge.c:1230:24: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/merge.c:1231:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (p = remoteheads; p; p = p->next)
                        ^
/datasets/git/builtin/merge.c:1231:26: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (p = remoteheads; p; p = p->next)
                                              ^
/datasets/git/builtin/merge.c:1231:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (p = remoteheads; p; p = p->next)
                                                             ^
                                                              {
/datasets/git/builtin/merge.c:1246:8: warning: variable 'tag_ref' is not initialized [cppcoreguidelines-init-variables]
        char *tag_ref;
              ^
                      = NULL
/datasets/git/builtin/merge.c:1253:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            merge_remote_util(commit)->obj->type != OBJ_TAG)
                                                            ^
                                                             {
/datasets/git/builtin/merge.c:1273:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            oideq(&oid, &merge_remote_util(commit)->obj->oid))
                                                              ^
                                                               {
/datasets/git/builtin/merge.c:1275:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/merge.c:1281:5: warning: function 'cmd_merge' has cognitive complexity of 181 (threshold 25) [readability-function-cognitive-complexity]
int cmd_merge(int argc, const char **argv, const char *prefix)
    ^
/datasets/git/builtin/merge.c:1294:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (argc == 2 && !strcmp(argv[1], "-h"))
        ^
/datasets/git/builtin/merge.c:1294:16: note: +1
        if (argc == 2 && !strcmp(argv[1], "-h"))
                      ^
/datasets/git/builtin/merge.c:1305:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (branch)
        ^
/datasets/git/builtin/merge.c:1308:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!pull_twohead) {
        ^
/datasets/git/builtin/merge.c:1310:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (default_strategy && !strcmp(default_strategy, "ort"))
                ^
/datasets/git/builtin/merge.c:1310:24: note: +1
                if (default_strategy && !strcmp(default_strategy, "ort"))
                                     ^
/datasets/git/builtin/merge.c:1317:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!branch || is_null_oid(&head_oid))
        ^
/datasets/git/builtin/merge.c:1317:14: note: +1
        if (!branch || is_null_oid(&head_oid))
                    ^
/datasets/git/builtin/merge.c:1319:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/builtin/merge.c:1322:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (branch_mergeoptions)
        ^
/datasets/git/builtin/merge.c:1326:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (shortlog_len < 0)
        ^
/datasets/git/builtin/merge.c:1327:41: note: +2, including nesting penalty of 1, nesting level increased to 2
                shortlog_len = (merge_log_config > 0) ? merge_log_config : 0;
                                                      ^
/datasets/git/builtin/merge.c:1329:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (verbosity < 0 && show_progress == -1)
        ^
/datasets/git/builtin/merge.c:1329:20: note: +1
        if (verbosity < 0 && show_progress == -1)
                          ^
/datasets/git/builtin/merge.c:1332:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (abort_current_merge) {
        ^
/datasets/git/builtin/merge.c:1337:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (orig_argc != 2)
                ^
/datasets/git/builtin/merge.c:1341:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!file_exists(git_path_merge_head(the_repository)))
                ^
/datasets/git/builtin/merge.c:1344:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (read_oneliner(&stash_oid, git_path_merge_autostash(the_repository),
                ^
/datasets/git/builtin/merge.c:1351:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (stash_oid.len)
                ^
/datasets/git/builtin/merge.c:1355:3: note: +1
                goto done;
                ^
/datasets/git/builtin/merge.c:1358:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (quit_current_merge) {
        ^
/datasets/git/builtin/merge.c:1359:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (orig_argc != 2)
                ^
/datasets/git/builtin/merge.c:1365:3: note: +1
                goto done;
                ^
/datasets/git/builtin/merge.c:1368:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (continue_current_merge) {
        ^
/datasets/git/builtin/merge.c:1372:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (orig_argc != 2)
                ^
/datasets/git/builtin/merge.c:1376:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!file_exists(git_path_merge_head(the_repository)))
                ^
/datasets/git/builtin/merge.c:1381:3: note: +1
                goto done;
                ^
/datasets/git/builtin/merge.c:1384:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (repo_read_index_unmerged(the_repository))
        ^
/datasets/git/builtin/merge.c:1387:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (file_exists(git_path_merge_head(the_repository))) {
        ^
/datasets/git/builtin/merge.c:1392:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (advice_enabled(ADVICE_RESOLVE_CONFLICT))
                ^
/datasets/git/builtin/merge.c:1395:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/merge.c:1398:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ref_exists("CHERRY_PICK_HEAD")) {
        ^
/datasets/git/builtin/merge.c:1399:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (advice_enabled(ADVICE_RESOLVE_CONFLICT))
                ^
/datasets/git/builtin/merge.c:1402:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/merge.c:1407:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (option_edit < 0)
        ^
/datasets/git/builtin/merge.c:1412:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (verbosity < 0)
        ^
/datasets/git/builtin/merge.c:1415:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (squash) {
        ^
/datasets/git/builtin/merge.c:1416:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (fast_forward == FF_NO)
                ^
/datasets/git/builtin/merge.c:1418:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (option_commit > 0)
                ^
/datasets/git/builtin/merge.c:1428:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (option_commit < 0)
        ^
/datasets/git/builtin/merge.c:1431:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!argc) {
        ^
/datasets/git/builtin/merge.c:1432:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (default_to_upstream)
                ^
/datasets/git/builtin/merge.c:1434:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/merge.c:1436:9: note: +1, nesting level increased to 1
        } else if (argc == 1 && !strcmp(argv[0], "-")) {
               ^
/datasets/git/builtin/merge.c:1436:23: note: +1
        } else if (argc == 1 && !strcmp(argv[0], "-")) {
                             ^
/datasets/git/builtin/merge.c:1440:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!argc)
        ^
/datasets/git/builtin/merge.c:1444:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!head_commit) {
        ^
/datasets/git/builtin/merge.c:1451:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (squash)
                ^
/datasets/git/builtin/merge.c:1453:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (fast_forward == FF_NO)
                ^
/datasets/git/builtin/merge.c:1458:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!remoteheads)
                ^
/datasets/git/builtin/merge.c:1460:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (remoteheads->next)
                ^
/datasets/git/builtin/merge.c:1463:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (verify_signatures)
                ^
/datasets/git/builtin/merge.c:1471:3: note: +1
                goto done;
                ^
/datasets/git/builtin/merge.c:1482:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!head_commit || !argc)
        ^
/datasets/git/builtin/merge.c:1482:19: note: +1
        if (!head_commit || !argc)
                         ^
/datasets/git/builtin/merge.c:1486:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (verify_signatures) {
        ^
/datasets/git/builtin/merge.c:1487:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (p = remoteheads; p; p = p->next) {
                ^
/datasets/git/builtin/merge.c:1494:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (p = remoteheads; p; p = p->next)
        ^
/datasets/git/builtin/merge.c:1499:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (p = remoteheads; p; p = p->next) {
        ^
/datasets/git/builtin/merge.c:1505:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (fast_forward != FF_ONLY && merging_a_throwaway_tag(commit))
                ^
/datasets/git/builtin/merge.c:1505:31: note: +1
                if (fast_forward != FF_ONLY && merging_a_throwaway_tag(commit))
                                            ^
/datasets/git/builtin/merge.c:1509:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!use_strategies && !pull_twohead &&
        ^
/datasets/git/builtin/merge.c:1510:18: note: +1
            remoteheads && !remoteheads->next) {
                        ^
/datasets/git/builtin/merge.c:1512:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (default_strategy)
                ^
/datasets/git/builtin/merge.c:1515:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!use_strategies) {
        ^
/datasets/git/builtin/merge.c:1516:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!remoteheads)
                ^
/datasets/git/builtin/merge.c:1518:8: note: +1, nesting level increased to 2
                else if (!remoteheads->next)
                     ^
/datasets/git/builtin/merge.c:1520:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/merge.c:1524:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < use_strategies_nr; i++) {
        ^
/datasets/git/builtin/merge.c:1525:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (use_strategies[i]->attr & NO_FAST_FORWARD)
                ^
/datasets/git/builtin/merge.c:1527:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (use_strategies[i]->attr & NO_TRIVIAL)
                ^
/datasets/git/builtin/merge.c:1531:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!remoteheads)
        ^
/datasets/git/builtin/merge.c:1533:7: note: +1, nesting level increased to 1
        else if (!remoteheads->next)
             ^
/datasets/git/builtin/merge.c:1535:2: note: +1, nesting level increased to 1
        else {
        ^
/datasets/git/builtin/merge.c:1545:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (remoteheads && !common) {
        ^
/datasets/git/builtin/merge.c:1545:18: note: +1
        if (remoteheads && !common) {
                        ^
/datasets/git/builtin/merge.c:1547:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!allow_unrelated_histories)
                ^
/datasets/git/builtin/merge.c:1550:9: note: +1, nesting level increased to 1
        } else if (!remoteheads ||
               ^
/datasets/git/builtin/merge.c:1550:26: note: +1
        } else if (!remoteheads ||
                                ^
/datasets/git/builtin/merge.c:1551:41: note: +1
                 (!remoteheads->next && !common->next &&
                                                      ^
/datasets/git/builtin/merge.c:1558:3: note: +1
                goto done;
                ^
/datasets/git/builtin/merge.c:1559:9: note: +1, nesting level increased to 1
        } else if (fast_forward != FF_NO && !remoteheads->next &&
               ^
/datasets/git/builtin/merge.c:1560:18: note: +1
                        !common->next &&
                                      ^
/datasets/git/builtin/merge.c:1566:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (verbosity >= 0) {
                ^
/datasets/git/builtin/merge.c:1574:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (have_message)
                ^
/datasets/git/builtin/merge.c:1578:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!commit) {
                ^
/datasets/git/builtin/merge.c:1580:4: note: +1
                        goto done;
                        ^
/datasets/git/builtin/merge.c:1583:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (autostash)
                ^
/datasets/git/builtin/merge.c:1586:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (checkout_fast_forward(the_repository,
                ^
/datasets/git/builtin/merge.c:1592:4: note: +1
                        goto done;
                        ^
/datasets/git/builtin/merge.c:1598:3: note: +1
                goto done;
                ^
/datasets/git/builtin/merge.c:1599:9: note: +1, nesting level increased to 1
        } else if (!remoteheads->next && common->next)
               ^
/datasets/git/builtin/merge.c:1599:32: note: +1
        } else if (!remoteheads->next && common->next)
                                      ^
/datasets/git/builtin/merge.c:1605:7: note: +1, nesting level increased to 1
        else if (!remoteheads->next && !common->next && option_commit) {
             ^
/datasets/git/builtin/merge.c:1605:47: note: +1
        else if (!remoteheads->next && !common->next && option_commit) {
                                                     ^
/datasets/git/builtin/merge.c:1611:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (allow_trivial && fast_forward != FF_ONLY) {
                ^
/datasets/git/builtin/merge.c:1611:21: note: +1
                if (allow_trivial && fast_forward != FF_ONLY) {
                                  ^
/datasets/git/builtin/merge.c:1619:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (repo_index_has_changes(the_repository, head_tree,
                        ^
/datasets/git/builtin/merge.c:1630:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!read_tree_trivial(&common->item->object.oid,
                        ^
/datasets/git/builtin/merge.c:1634:5: note: +1
                                goto done;
                                ^
/datasets/git/builtin/merge.c:1638:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/merge.c:1646:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (j = remoteheads; j; j = j->next) {
                ^
/datasets/git/builtin/merge.c:1655:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!oideq(&common_one->item->object.oid, &j->item->object.oid)) {
                        ^
/datasets/git/builtin/merge.c:1660:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (up_to_date) {
                ^
/datasets/git/builtin/merge.c:1662:4: note: +1
                        goto done;
                        ^
/datasets/git/builtin/merge.c:1666:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (fast_forward == FF_ONLY)
        ^
/datasets/git/builtin/merge.c:1669:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (autostash)
        ^
/datasets/git/builtin/merge.c:1688:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (save_state(&stash))
        ^
/datasets/git/builtin/merge.c:1691:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < use_strategies_nr; i++) {
        ^
/datasets/git/builtin/merge.c:1693:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (i) {
                ^
/datasets/git/builtin/merge.c:1697:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (use_strategies_nr != 1)
                ^
/datasets/git/builtin/merge.c:1714:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ret < 2) {
                ^
/datasets/git/builtin/merge.c:1715:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!ret) {
                        ^
/datasets/git/builtin/merge.c:1724:34: note: +3, including nesting penalty of 2, nesting level increased to 3
                        cnt = (use_strategies_nr > 1) ? evaluate_result() : 0;
                                                      ^
/datasets/git/builtin/merge.c:1725:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (best_cnt <= 0 || cnt <= best_cnt) {
                        ^
/datasets/git/builtin/merge.c:1725:22: note: +1
                        if (best_cnt <= 0 || cnt <= best_cnt) {
                                          ^
/datasets/git/builtin/merge.c:1736:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (merge_was_ok && option_commit) {
        ^
/datasets/git/builtin/merge.c:1736:19: note: +1
        if (merge_was_ok && option_commit) {
                         ^
/datasets/git/builtin/merge.c:1741:3: note: +1
                goto done;
                ^
/datasets/git/builtin/merge.c:1748:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!best_strategy) {
        ^
/datasets/git/builtin/merge.c:1750:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (use_strategies_nr > 1)
                ^
/datasets/git/builtin/merge.c:1753:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/merge.c:1758:3: note: +1
                goto done;
                ^
/datasets/git/builtin/merge.c:1759:9: note: +1, nesting level increased to 1
        } else if (best_strategy == wt_strategy)
               ^
/datasets/git/builtin/merge.c:1761:2: note: +1, nesting level increased to 1
        else {
        ^
/datasets/git/builtin/merge.c:1770:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (squash) {
        ^
/datasets/git/builtin/merge.c:1774:4: note: +1, nesting level increased to 1
        } else
          ^
/datasets/git/builtin/merge.c:1777:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (merge_was_ok)
        ^
/datasets/git/builtin/merge.c:1780:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/builtin/merge.c:1782:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (autostash)
        ^
/datasets/git/builtin/merge.c:1786:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!automerge_was_ok) {
        ^
/datasets/git/builtin/merge.c:1283:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct object_id result_tree, stash, head_oid;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1284:17: warning: variable 'head_commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *head_commit;
                       ^
                                   = NULL
/datasets/git/builtin/merge.c:1286:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, ret = 0, head_subsumed;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1286:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, ret = 0, head_subsumed;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/merge.c:1286:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/merge.c:1286:18: warning: variable 'head_subsumed' is not initialized [cppcoreguidelines-init-variables]
        int i, ret = 0, head_subsumed;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/merge.c:1287:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int best_cnt = -1, merge_was_ok = 0, automerge_was_ok = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1289:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *best_strategy = NULL, *wt_strategy = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1290:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit_list *remoteheads = NULL, *p;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1290:43: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *remoteheads = NULL, *p;
                                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/merge.c:1290:43: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/merge.c:1291:8: warning: variable 'branch_to_free' is not initialized [cppcoreguidelines-init-variables]
        void *branch_to_free;
              ^
                             = NULL
/datasets/git/builtin/merge.c:1294:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc == 2 && !strcmp(argv[1], "-h"))
                                                ^
                                                 {
/datasets/git/builtin/merge.c:1305:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (branch)
                   ^
                    {
/datasets/git/builtin/merge.c:1309:28: warning: function is not thread safe [concurrency-mt-unsafe]
                char *default_strategy = getenv("GIT_TEST_MERGE_ALGORITHM");
                                         ^
/datasets/git/builtin/merge.c:1310:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (default_strategy && !strcmp(default_strategy, "ort"))
                                                                         ^
                                                                          {
/datasets/git/builtin/merge.c:1317:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!branch || is_null_oid(&head_oid))
                                              ^
                                               {
/datasets/git/builtin/merge.c:1319:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/merge.c:1322:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (branch_mergeoptions)
                                ^
                                 {
/datasets/git/builtin/merge.c:1326:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (shortlog_len < 0)
                             ^
                              {
/datasets/git/builtin/merge.c:1329:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (verbosity < 0 && show_progress == -1)
                                                 ^
                                                  {
/datasets/git/builtin/merge.c:1337:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (orig_argc != 2)
                                   ^
                                    {
/datasets/git/builtin/merge.c:1341:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!file_exists(git_path_merge_head(the_repository)))
                                                                      ^
                                                                       {
/datasets/git/builtin/merge.c:1345:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    READ_ONELINER_SKIP_IF_EMPTY))
                    ^
/datasets/git/./sequencer.h:233:38: note: expanded from macro 'READ_ONELINER_SKIP_IF_EMPTY'
#define READ_ONELINER_SKIP_IF_EMPTY (1 << 0)
                                     ^
/datasets/git/builtin/merge.c:1345:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    READ_ONELINER_SKIP_IF_EMPTY))
                                                 ^
                                                  {
/datasets/git/builtin/merge.c:1351:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (stash_oid.len)
                                  ^
                                   {
/datasets/git/builtin/merge.c:1359:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (orig_argc != 2)
                                   ^
                                    {
/datasets/git/builtin/merge.c:1372:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (orig_argc != 2)
                                   ^
                                    {
/datasets/git/builtin/merge.c:1376:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!file_exists(git_path_merge_head(the_repository)))
                                                                      ^
                                                                       {
/datasets/git/builtin/merge.c:1384:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_read_index_unmerged(the_repository))
                                                     ^
                                                      {
/datasets/git/builtin/merge.c:1392:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (advice_enabled(ADVICE_RESOLVE_CONFLICT))
                                                            ^
                                                             {
/datasets/git/builtin/merge.c:1395:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/merge.c:1399:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (advice_enabled(ADVICE_RESOLVE_CONFLICT))
                                                            ^
                                                             {
/datasets/git/builtin/merge.c:1402:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/merge.c:1407:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (option_edit < 0)
                            ^
                             {
/datasets/git/builtin/merge.c:1412:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (verbosity < 0)
                          ^
                           {
/datasets/git/builtin/merge.c:1416:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fast_forward == FF_NO)
                                          ^
                                           {
/datasets/git/builtin/merge.c:1418:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (option_commit > 0)
                                      ^
                                       {
/datasets/git/builtin/merge.c:1428:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (option_commit < 0)
                              ^
                               {
/datasets/git/builtin/merge.c:1432:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (default_to_upstream)
                                        ^
                                         {
/datasets/git/builtin/merge.c:1434:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/merge.c:1440:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!argc)
                  ^
                   {
/datasets/git/builtin/merge.c:1450:21: warning: variable 'remote_head_oid' is not initialized [cppcoreguidelines-init-variables]
                struct object_id *remote_head_oid;
                                  ^
                                                  = NULL
/datasets/git/builtin/merge.c:1290:2: note: inferred assignment of ID-dependent value from ID-dependent variable remoteheads [altera-id-dependent-backward-branch]
        struct commit_list *remoteheads = NULL, *p;
        ^
/datasets/git/builtin/merge.c:1451:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (squash)
                           ^
                            {
/datasets/git/builtin/merge.c:1453:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fast_forward == FF_NO)
                                          ^
                                           {
/datasets/git/builtin/merge.c:1458:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!remoteheads)
                                 ^
                                  {
/datasets/git/builtin/merge.c:1460:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (remoteheads->next)
                                      ^
                                       {
/datasets/git/builtin/merge.c:1463:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (verify_signatures)
                                      ^
                                       {
/datasets/git/builtin/merge.c:1482:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!head_commit || !argc)
                                  ^
                                   {
/datasets/git/builtin/merge.c:1487:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (p = remoteheads; p; p = p->next) {
                ^
/datasets/git/builtin/merge.c:1487:25: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (p = remoteheads; p; p = p->next) {
                                      ^
/datasets/git/builtin/merge.c:1494:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = remoteheads; p; p = p->next)
        ^
/datasets/git/builtin/merge.c:1494:24: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = remoteheads; p; p = p->next)
                              ^
/datasets/git/builtin/merge.c:1494:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (p = remoteheads; p; p = p->next)
                                             ^
                                              {
/datasets/git/builtin/merge.c:1496:2: warning: function is not thread safe [concurrency-mt-unsafe]
        setenv("GIT_REFLOG_ACTION", buf.buf, 0);
        ^
/datasets/git/builtin/merge.c:1290:2: note: inferred assignment of ID-dependent value from ID-dependent variable remoteheads [altera-id-dependent-backward-branch]
        struct commit_list *remoteheads = NULL, *p;
        ^
/datasets/git/builtin/merge.c:1499:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = remoteheads; p; p = p->next) {
        ^
/datasets/git/builtin/merge.c:1499:24: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = remoteheads; p; p = p->next) {
                              ^
/datasets/git/builtin/merge.c:1503:3: warning: function is not thread safe [concurrency-mt-unsafe]
                setenv(buf.buf, merge_remote_util(commit)->name, 1);
                ^
/datasets/git/builtin/merge.c:1505:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fast_forward != FF_ONLY && merging_a_throwaway_tag(commit))
                                                                               ^
                                                                                {
/datasets/git/builtin/merge.c:1511:28: warning: function is not thread safe [concurrency-mt-unsafe]
                char *default_strategy = getenv("GIT_TEST_MERGE_ALGORITHM");
                                         ^
/datasets/git/builtin/merge.c:1512:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (default_strategy)
                                     ^
                                      {
/datasets/git/builtin/merge.c:1516:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!remoteheads)
                                 ^
                                  {
/datasets/git/builtin/merge.c:1518:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!remoteheads->next)
                                            ^
                                             {
/datasets/git/builtin/merge.c:1519:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        add_strategies(pull_twohead, DEFAULT_TWOHEAD);
                                                     ^
/datasets/git/builtin/merge.c:48:26: note: expanded from macro 'DEFAULT_TWOHEAD'
#define DEFAULT_TWOHEAD (1<<0)
                         ^
/datasets/git/builtin/merge.c:1520:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/merge.c:1521:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        add_strategies(pull_octopus, DEFAULT_OCTOPUS);
                                                     ^
/datasets/git/builtin/merge.c:49:26: note: expanded from macro 'DEFAULT_OCTOPUS'
#define DEFAULT_OCTOPUS (1<<1)
                         ^
/datasets/git/builtin/merge.c:1524:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < use_strategies_nr; i++) {
        ^
/datasets/git/builtin/merge.c:1525:7: warning: Array access (from variable 'use_strategies') results in a null pointer dereference [clang-analyzer-core.NullDereference]
                if (use_strategies[i]->attr & NO_FAST_FORWARD)
                    ^~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1294:6: note: Assuming 'argc' is not equal to 2
        if (argc == 2 && !strcmp(argv[1], "-h"))
            ^~~~~~~~~
/datasets/git/builtin/merge.c:1294:16: note: Left side of '&&' is false
        if (argc == 2 && !strcmp(argv[1], "-h"))
                      ^
/datasets/git/builtin/merge.c:1305:6: note: Assuming 'branch' is null
        if (branch)
            ^~~~~~
/datasets/git/builtin/merge.c:1305:2: note: Taking false branch
        if (branch)
        ^
/datasets/git/builtin/merge.c:1308:6: note: Assuming 'pull_twohead' is non-null
        if (!pull_twohead) {
            ^~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1308:2: note: Taking false branch
        if (!pull_twohead) {
        ^
/datasets/git/builtin/merge.c:1317:6: note: Assuming 'branch' is non-null
        if (!branch || is_null_oid(&head_oid))
            ^~~~~~~
/datasets/git/builtin/merge.c:1317:6: note: Left side of '||' is false
/datasets/git/builtin/merge.c:1317:2: note: Taking false branch
        if (!branch || is_null_oid(&head_oid))
        ^
/datasets/git/builtin/merge.c:1322:6: note: Assuming 'branch_mergeoptions' is null
        if (branch_mergeoptions)
            ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1322:2: note: Taking false branch
        if (branch_mergeoptions)
        ^
/datasets/git/builtin/merge.c:1326:6: note: Assuming 'shortlog_len' is >= 0
        if (shortlog_len < 0)
            ^~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1326:2: note: Taking false branch
        if (shortlog_len < 0)
        ^
/datasets/git/builtin/merge.c:1329:6: note: Assuming 'verbosity' is >= 0
        if (verbosity < 0 && show_progress == -1)
            ^~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1329:20: note: Left side of '&&' is false
        if (verbosity < 0 && show_progress == -1)
                          ^
/datasets/git/builtin/merge.c:1332:6: note: Assuming 'abort_current_merge' is 0
        if (abort_current_merge) {
            ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1332:2: note: Taking false branch
        if (abort_current_merge) {
        ^
/datasets/git/builtin/merge.c:1358:6: note: Assuming 'quit_current_merge' is 0
        if (quit_current_merge) {
            ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1358:2: note: Taking false branch
        if (quit_current_merge) {
        ^
/datasets/git/builtin/merge.c:1368:6: note: Assuming 'continue_current_merge' is 0
        if (continue_current_merge) {
            ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1368:2: note: Taking false branch
        if (continue_current_merge) {
        ^
/datasets/git/builtin/merge.c:1384:6: note: Assuming the condition is false
        if (repo_read_index_unmerged(the_repository))
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1384:2: note: Taking false branch
        if (repo_read_index_unmerged(the_repository))
        ^
/datasets/git/builtin/merge.c:1387:6: note: Assuming the condition is false
        if (file_exists(git_path_merge_head(the_repository))) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1387:2: note: Taking false branch
        if (file_exists(git_path_merge_head(the_repository))) {
        ^
/datasets/git/builtin/merge.c:1398:6: note: Assuming the condition is false
        if (ref_exists("CHERRY_PICK_HEAD")) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1398:2: note: Taking false branch
        if (ref_exists("CHERRY_PICK_HEAD")) {
        ^
/datasets/git/builtin/merge.c:1407:6: note: Assuming 'option_edit' is >= 0
        if (option_edit < 0)
            ^~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1407:2: note: Taking false branch
        if (option_edit < 0)
        ^
/datasets/git/builtin/merge.c:1410:47: note: Assuming 'option_edit' is <= 0
        cleanup_mode = get_cleanup_mode(cleanup_arg, 0 < option_edit);
                                                     ^~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1412:6: note: Assuming 'verbosity' is >= 0
        if (verbosity < 0)
            ^~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1412:2: note: Taking false branch
        if (verbosity < 0)
        ^
/datasets/git/builtin/merge.c:1415:6: note: Assuming 'squash' is 0
        if (squash) {
            ^~~~~~
/datasets/git/builtin/merge.c:1415:2: note: Taking false branch
        if (squash) {
        ^
/datasets/git/builtin/merge.c:1428:6: note: Assuming 'option_commit' is >= 0
        if (option_commit < 0)
            ^~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1428:2: note: Taking false branch
        if (option_commit < 0)
        ^
/datasets/git/builtin/merge.c:1431:6: note: Assuming 'argc' is not equal to 0
        if (!argc) {
            ^~~~~
/datasets/git/builtin/merge.c:1431:2: note: Taking false branch
        if (!argc) {
        ^
/datasets/git/builtin/merge.c:1436:13: note: Assuming 'argc' is not equal to 1
        } else if (argc == 1 && !strcmp(argv[0], "-")) {
                   ^~~~~~~~~
/datasets/git/builtin/merge.c:1436:23: note: Left side of '&&' is false
        } else if (argc == 1 && !strcmp(argv[0], "-")) {
                             ^
/datasets/git/builtin/merge.c:1440:7: note: 'argc' is not equal to 0
        if (!argc)
             ^~~~
/datasets/git/builtin/merge.c:1440:2: note: Taking false branch
        if (!argc)
        ^
/datasets/git/builtin/merge.c:1444:6: note: Assuming 'head_commit' is non-null
        if (!head_commit) {
            ^~~~~~~~~~~~
/datasets/git/builtin/merge.c:1444:2: note: Taking false branch
        if (!head_commit) {
        ^
/datasets/git/builtin/merge.c:1482:7: note: 'head_commit' is non-null
        if (!head_commit || !argc)
             ^~~~~~~~~~~
/datasets/git/builtin/merge.c:1482:6: note: Left side of '||' is false
        if (!head_commit || !argc)
            ^
/datasets/git/builtin/merge.c:1482:23: note: 'argc' is not equal to 0
        if (!head_commit || !argc)
                             ^~~~
/datasets/git/builtin/merge.c:1482:2: note: Taking false branch
        if (!head_commit || !argc)
        ^
/datasets/git/builtin/merge.c:1486:6: note: Assuming 'verify_signatures' is 0
        if (verify_signatures) {
            ^~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1486:2: note: Taking false branch
        if (verify_signatures) {
        ^
/datasets/git/builtin/merge.c:1493:2: note: Calling 'strbuf_addstr'
        strbuf_addstr(&buf, "merge");
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./strbuf.h:305:2: note: Value assigned to 'use_strategies'
        strbuf_add(sb, s, strlen(s));
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1493:2: note: Returning from 'strbuf_addstr'
        strbuf_addstr(&buf, "merge");
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1494:2: note: Loop condition is false. Execution continues on line 1496
        for (p = remoteheads; p; p = p->next)
        ^
/datasets/git/builtin/merge.c:1499:2: note: Loop condition is false. Execution continues on line 1509
        for (p = remoteheads; p; p = p->next) {
        ^
/datasets/git/builtin/merge.c:1509:6: note: Assuming 'use_strategies' is null
        if (!use_strategies && !pull_twohead &&
            ^~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1509:6: note: Left side of '&&' is true
/datasets/git/builtin/merge.c:1509:25: note: Assuming 'pull_twohead' is non-null
        if (!use_strategies && !pull_twohead &&
                               ^~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1509:39: note: Left side of '&&' is false
        if (!use_strategies && !pull_twohead &&
                                             ^
/datasets/git/builtin/merge.c:1515:7: note: 'use_strategies' is null
        if (!use_strategies) {
             ^~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1515:2: note: Taking true branch
        if (!use_strategies) {
        ^
/datasets/git/builtin/merge.c:1516:8: note: 'remoteheads' is null
                if (!remoteheads)
                     ^~~~~~~~~~~
/datasets/git/builtin/merge.c:1516:3: note: Taking true branch
                if (!remoteheads)
                ^
/datasets/git/builtin/merge.c:1524:14: note: Assuming 'i' is < 'use_strategies_nr'
        for (i = 0; i < use_strategies_nr; i++) {
                    ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1524:2: note: Loop condition is true.  Entering loop body
        for (i = 0; i < use_strategies_nr; i++) {
        ^
/datasets/git/builtin/merge.c:1525:7: note: Array access (from variable 'use_strategies') results in a null pointer dereference
                if (use_strategies[i]->attr & NO_FAST_FORWARD)
                    ^~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1525:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (use_strategies[i]->attr & NO_FAST_FORWARD)
                    ^
/datasets/git/builtin/merge.c:1525:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (use_strategies[i]->attr & NO_FAST_FORWARD)
                                              ^
/datasets/git/builtin/merge.c:50:26: note: expanded from macro 'NO_FAST_FORWARD'
#define NO_FAST_FORWARD (1<<2)
                         ^
/datasets/git/builtin/merge.c:1525:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (use_strategies[i]->attr & NO_FAST_FORWARD)
                                                              ^
                                                               {
/datasets/git/builtin/merge.c:1527:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (use_strategies[i]->attr & NO_TRIVIAL)
                    ^
/datasets/git/builtin/merge.c:1527:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (use_strategies[i]->attr & NO_TRIVIAL)
                                              ^
/datasets/git/builtin/merge.c:51:26: note: expanded from macro 'NO_TRIVIAL'
#define NO_TRIVIAL      (1<<3)
                         ^
/datasets/git/builtin/merge.c:1527:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (use_strategies[i]->attr & NO_TRIVIAL)
                                                         ^
                                                          {
/datasets/git/builtin/merge.c:1531:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!remoteheads)
                         ^
                          {
/datasets/git/builtin/merge.c:1533:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!remoteheads->next)
                                    ^
                                     {
/datasets/git/builtin/merge.c:1547:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!allow_unrelated_histories)
                                               ^
                                                {
/datasets/git/builtin/merge.c:1564:18: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
                struct commit *commit;
                               ^
                                      = NULL
/datasets/git/builtin/merge.c:1574:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (have_message)
                                 ^
                                  {
/datasets/git/builtin/merge.c:1583:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (autostash)
                              ^
                               {
/datasets/git/builtin/merge.c:1599:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else if (!remoteheads->next && common->next)
                                                      ^
                                                       {
/datasets/git/builtin/merge.c:1610:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                refresh_index(&the_index, REFRESH_QUIET, NULL, NULL, NULL);
                                          ^
/datasets/git/./refs/../cache.h:923:43: note: expanded from macro 'REFRESH_QUIET'
#define REFRESH_QUIET                    (1 << 2) /* be quiet about it */
                                          ^
/datasets/git/builtin/merge.c:1617:18: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                        struct strbuf sb = STRBUF_INIT;
                                      ^
/datasets/git/builtin/merge.c:1644:3: note: inferred assignment of ID-dependent value from ID-dependent variable remoteheads [altera-id-dependent-backward-branch]
                struct commit_list *j;
                ^
/datasets/git/builtin/merge.c:1644:23: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
                struct commit_list *j;
                                    ^
                                      = NULL
/datasets/git/builtin/merge.c:1644:23: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/merge.c:1646:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (j = remoteheads; j; j = j->next) {
                ^
/datasets/git/builtin/merge.c:1646:25: warning: backward branch (for loop) is ID-dependent due to variable reference to 'j' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (j = remoteheads; j; j = j->next) {
                                      ^
/datasets/git/builtin/merge.c:1647:24: warning: variable 'common_one' is not initialized [cppcoreguidelines-init-variables]
                        struct commit_list *common_one;
                                            ^
                                                       = NULL
/datasets/git/builtin/merge.c:1666:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fast_forward == FF_ONLY)
                                    ^
                                     {
/datasets/git/builtin/merge.c:1669:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (autostash)
                      ^
                       {
/datasets/git/builtin/merge.c:1688:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (save_state(&stash))
                               ^
                                {
/datasets/git/builtin/merge.c:1691:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < use_strategies_nr; i++) {
        ^
/datasets/git/builtin/merge.c:1692:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int ret, cnt;
                ^~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1692:7: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
                int ret, cnt;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/merge.c:1692:12: warning: variable 'cnt' is not initialized [cppcoreguidelines-init-variables]
                int ret, cnt;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/merge.c:1697:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (use_strategies_nr != 1)
                                           ^
                                            {
/datasets/git/builtin/merge.c:1750:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (use_strategies_nr > 1)
                                          ^
                                           {
/datasets/git/builtin/merge.c:1751:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr,
                        ^~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1751:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/merge.c:1753:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/merge.c:1754:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, _("Merge with strategy %s failed.\n"),
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1754:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/merge.c:1759:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else if (best_strategy == wt_strategy)
                                                ^
                                                 {
/datasets/git/builtin/merge.c:1774:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/builtin/merge.c:1777:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (merge_was_ok)
                         ^
                          {
/datasets/git/builtin/merge.c:1778:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, _("Automatic merge went well; "
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/merge.c:1778:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/merge.c:1780:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/merge.c:1782:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (autostash)
                      ^
                       {
/datasets/git/builtin/mktag.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "parse-options.h"
^        ~~~~~~~~~~~~~~~~~
         "config.h"
/datasets/git/builtin/mktag.c:13:12: warning: variable 'option_strict' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int option_strict = 1;
           ^
/datasets/git/builtin/mktag.c:15:28: warning: variable 'fsck_options' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct fsck_options fsck_options = FSCK_OPTIONS_STRICT;
                           ^
/datasets/git/builtin/mktag.c:17:55: warning: parameter 'o' is unused [misc-unused-parameters]
static int mktag_fsck_error_func(struct fsck_options *o,
                                                      ^
/datasets/git/builtin/mktag.c:17:55: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/mktag.c:18:30: warning: parameter 'oid' is unused [misc-unused-parameters]
                                 const struct object_id *oid,
                                                         ^
/datasets/git/builtin/mktag.c:19:23: warning: parameter 'object_type' is unused [misc-unused-parameters]
                                 enum object_type object_type,
                                                  ^
/datasets/git/builtin/mktag.c:21:23: warning: parameter 'msg_id' is unused [misc-unused-parameters]
                                 enum fsck_msg_id msg_id,
                                                  ^
/datasets/git/builtin/mktag.c:46:68: warning: pointer parameter 'tagged_type' can be pointer to const [readability-non-const-parameter]
static int verify_object_in_tag(struct object_id *tagged_oid, int *tagged_type)
                                                                   ^
                                                              const 
/datasets/git/builtin/mktag.c:48:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/builtin/mktag.c:49:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/builtin/mktag.c:50:16: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size;
                      ^
                           = 0
/datasets/git/builtin/mktag.c:51:8: warning: variable 'buffer' is not initialized [cppcoreguidelines-init-variables]
        void *buffer;
              ^
                     = NULL
/datasets/git/builtin/mktag.c:52:26: warning: variable 'repl' is not initialized [cppcoreguidelines-init-variables]
        const struct object_id *repl;
                                ^
                                     = NULL
/datasets/git/builtin/mktag.c:55:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!buffer)
                    ^
                     {
/datasets/git/builtin/mktag.c:58:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (type != *tagged_type)
                                 ^
                                  {
/datasets/git/builtin/mktag.c:71:56: warning: parameter 'prefix' is unused [misc-unused-parameters]
int cmd_mktag(int argc, const char **argv, const char *prefix)
                                                       ^
/datasets/git/builtin/mktag.c:74:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "strict", &option_strict,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/mktag.c:80:6: warning: variable 'tagged_type' is not initialized [cppcoreguidelines-init-variables]
        int tagged_type;
            ^
                        = 0
/datasets/git/builtin/mktag.c:83:2: warning: Value stored to 'argc' is never read [clang-analyzer-deadcode.DeadStores]
        argc = parse_options(argc, argv, NULL,
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/mktag.c:83:2: note: Value stored to 'argc' is never read
        argc = parse_options(argc, argv, NULL,
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/mktag.c:87:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strbuf_read(&buf, 0, 0) < 0)
                                        ^
                                         {
/datasets/git/builtin/mktag.c:96:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                &tagged_oid, &tagged_type))
                                                           ^
                                                            {
/datasets/git/builtin/mktag.c:99:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (verify_object_in_tag(&tagged_oid, &tagged_type) < 0)
                                                                ^
                                                                 {
/datasets/git/builtin/mktag.c:102:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_object_file(buf.buf, buf.len, OBJ_TAG, &result) < 0)
                                                                      ^
                                                                       {
/datasets/git/builtin/mktree.c:7:1: warning: #includes are not sorted properly [llvm-include-order]
#include "quote.h"
^        ~~~~~~~~~
         "object-store.h"
/datasets/git/builtin/mktree.c:17:5: warning: variable 'entries' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} **entries;
    ^
/datasets/git/builtin/mktree.c:17:5: warning: variable 'entries' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/mktree.c:18:12: warning: variable 'alloc' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int alloc, used;
           ^
/datasets/git/builtin/mktree.c:18:19: warning: variable 'used' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int alloc, used;
                  ^
/datasets/git/builtin/mktree.c:22:18: warning: variable 'ent' is not initialized [cppcoreguidelines-init-variables]
        struct treeent *ent;
                        ^
                            = NULL
/datasets/git/builtin/mktree.c:24:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strchr(path, '/'))
                              ^
                               {
/datasets/git/builtin/mktree.c:27:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FLEX_ALLOC_MEM(ent, name, path, len);
        ^
/datasets/git/./git-compat-util.h:1151:47: note: expanded from macro 'FLEX_ALLOC_MEM'
#define FLEX_ALLOC_MEM(x, flexname, buf, len) do { \
                                              ^
/datasets/git/builtin/mktree.c:27:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        FLEX_ALLOC_MEM(ent, name, path, len);
        ^
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/builtin/mktree.c:27:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        FLEX_ALLOC_MEM(ent, name, path, len);
        ^
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/builtin/mktree.c:29:13: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        ent->len = len;
                   ^
/datasets/git/builtin/mktree.c:32:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(entries, used + 1, alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/builtin/mktree.c:32:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_GROW(entries, used + 1, alloc);
        ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/builtin/mktree.c:36:36: warning: parameter name 'a_' is too short, expected at least 3 characters [readability-identifier-length]
static int ent_compare(const void *a_, const void *b_)
                                   ^
/datasets/git/builtin/mktree.c:36:52: warning: parameter name 'b_' is too short, expected at least 3 characters [readability-identifier-length]
static int ent_compare(const void *a_, const void *b_)
                                                   ^
/datasets/git/builtin/mktree.c:38:18: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        struct treeent *a = *(struct treeent **)a_;
                        ^
/datasets/git/builtin/mktree.c:39:18: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        struct treeent *b = *(struct treeent **)b_;
                        ^
/datasets/git/builtin/mktree.c:40:44: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return base_name_compare(a->name, a->len, a->mode,
                                                  ^
/datasets/git/builtin/mktree.c:41:23: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                 b->name, b->len, b->mode);
                                                  ^
/datasets/git/builtin/mktree.c:47:9: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        size_t size;
               ^
                    = 0
/datasets/git/builtin/mktree.c:48:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/mktree.c:48:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/mktree.c:50:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        QSORT(entries, used, ent_compare);
        ^
/datasets/git/./git-compat-util.h:1304:56: note: expanded from macro 'QSORT'
#define QSORT(base, n, compar) sane_qsort((base), (n), sizeof(*(base)), compar)
                                                       ^
/datasets/git/builtin/mktree.c:51:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (size = i = 0; i < used; i++)
        ^
/datasets/git/builtin/mktree.c:51:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (size = i = 0; i < used; i++)
                                         ^
                                          {
/datasets/git/builtin/mktree.c:52:11: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                size += 32 + entries[i]->len;
                        ^
/datasets/git/builtin/mktree.c:55:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < used; i++) {
        ^
/datasets/git/builtin/mktree.c:65:20: warning: variable 'mktree_usage' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *mktree_usage[] = {
                   ^
/datasets/git/builtin/mktree.c:70:36: warning: 2 adjacent parameters of 'mktree_line' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void mktree_line(char *buf, int nul_term_line, int allow_missing)
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/mktree.c:70:40: note: the first parameter in the range is 'nul_term_line'
static void mktree_line(char *buf, int nul_term_line, int allow_missing)
                                       ^~~~~~~~~~~~~
/datasets/git/builtin/mktree.c:70:59: note: the last parameter in the range is 'allow_missing'
static void mktree_line(char *buf, int nul_term_line, int allow_missing)
                                                          ^~~~~~~~~~~~~
/datasets/git/builtin/mktree.c:72:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *ptr, *ntr;
        ^~~~~~~~~~~~~~~~
/datasets/git/builtin/mktree.c:72:8: warning: variable 'ptr' is not initialized [cppcoreguidelines-init-variables]
        char *ptr, *ntr;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/mktree.c:72:14: warning: variable 'ntr' is not initialized [cppcoreguidelines-init-variables]
        char *ptr, *ntr;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/mktree.c:73:14: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        const char *p;
                    ^
                      = NULL
/datasets/git/builtin/mktree.c:73:14: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/mktree.c:74:11: warning: variable 'mode' is not initialized [cppcoreguidelines-init-variables]
        unsigned mode;
                 ^
                      = 0
/datasets/git/builtin/mktree.c:75:19: warning: variable 'mode_type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type mode_type; /* object type derived from mode */
                         ^
/datasets/git/builtin/mktree.c:76:19: warning: variable 'obj_type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type obj_type; /* object type derived from sha */
                         ^
/datasets/git/builtin/mktree.c:77:21: warning: variable name 'oi' is too short, expected at least 3 characters [readability-identifier-length]
        struct object_info oi = OBJECT_INFO_INIT;
                           ^
/datasets/git/builtin/mktree.c:78:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *path, *to_free = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/mktree.c:78:8: warning: variable 'path' is not initialized [cppcoreguidelines-init-variables]
        char *path, *to_free = NULL;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/mktree.c:86:28: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mode = strtoul(ptr, &ntr, 8);
                                  ^
/datasets/git/builtin/mktree.c:87:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ptr == ntr || !ntr || *ntr != ' ')
                                              ^
                                               {
/datasets/git/builtin/mktree.c:92:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            *p != '\t')
                       ^
                        {
/datasets/git/builtin/mktree.c:96:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (S_ISGITLINK(mode))
            ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/builtin/mktree.c:96:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (S_ISGITLINK(mode))
                              ^
                               {
/datasets/git/builtin/mktree.c:105:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (unquote_c_style(&p_uq, path, NULL))
                                                       ^
                                                        {
/datasets/git/builtin/mktree.c:123:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                     OBJECT_INFO_LOOKUP_REPLACE |
                                     ^
/datasets/git/./object-store.h:432:36: note: expanded from macro 'OBJECT_INFO_LOOKUP_REPLACE'
#define OBJECT_INFO_LOOKUP_REPLACE 1
                                   ^
/datasets/git/builtin/mktree.c:125:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                     OBJECT_INFO_SKIP_FETCH_OBJECT) < 0)
                                                                        ^
                                                                         {
/datasets/git/builtin/mktree.c:150:20: warning: parameter name 'ac' is too short, expected at least 3 characters [readability-identifier-length]
int cmd_mktree(int ac, const char **av, const char *prefix)
                   ^
/datasets/git/builtin/mktree.c:150:37: warning: parameter name 'av' is too short, expected at least 3 characters [readability-identifier-length]
int cmd_mktree(int ac, const char **av, const char *prefix)
                                    ^
/datasets/git/builtin/mktree.c:152:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/mktree.c:158:20: warning: variable 'getline_fn' is not initialized [cppcoreguidelines-init-variables]
        strbuf_getline_fn getline_fn;
                          ^
                                     = NULL
/datasets/git/builtin/mktree.c:161:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('z', NULL, &nul_term_line, N_("input is NUL terminated")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/mktree.c:162:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT( 0 , "missing", &allow_missing, N_("allow missing objects"), 1),
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/mktree.c:163:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT( 0 , "batch", &is_batch_mode, N_("allow creation of more than one tree"), 1),
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/mktree.c:167:2: warning: Value stored to 'ac' is never read [clang-analyzer-deadcode.DeadStores]
        ac = parse_options(ac, av, prefix, option, mktree_usage, 0);
        ^    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/mktree.c:167:2: note: Value stored to 'ac' is never read
        ac = parse_options(ac, av, prefix, option, mktree_usage, 0);
        ^    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/mktree.c:171:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (1) {
                ^
/datasets/git/builtin/mktree.c:178:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (is_batch_mode)
                                                  ^
                                                   {
/datasets/git/builtin/mktree.c:194:4: warning: the value returned by this function should be used [cert-err33-c]
                        fflush(stdout);
                        ^~~~~~~~~~~~~~
/datasets/git/builtin/mktree.c:194:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/multi-pack-index.c:4:1: warning: #includes are not sorted properly [llvm-include-order]
#include "parse-options.h"
^        ~~~~~~~~~~~~~~~~~
         "midx.h"
/datasets/git/builtin/multi-pack-index.c:39:2: warning: suspicious string literal, probably missing a comma [bugprone-suspicious-missing-comma]
        BUILTIN_MIDX_WRITE_USAGE,
        ^
/datasets/git/builtin/multi-pack-index.c:10:5: note: expanded from macro 'BUILTIN_MIDX_WRITE_USAGE'
        N_("git multi-pack-index [<options>] write [--preferred-pack=<pack>]" \
           ^
/datasets/git/builtin/multi-pack-index.c:46:15: warning: accessing fields in struct 'opts_multi_pack_index' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
static struct opts_multi_pack_index {
              ^
/datasets/git/builtin/multi-pack-index.c:46:15: note: use "__attribute__((aligned(64)))" to align struct 'opts_multi_pack_index' to 64 bytes
/datasets/git/builtin/multi-pack-index.c:53:3: warning: variable 'opts' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} opts;
  ^
/datasets/git/builtin/multi-pack-index.c:61:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unset)
                  ^
                   {
/datasets/git/builtin/multi-pack-index.c:63:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/multi-pack-index.c:68:22: warning: variable 'common_opts' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct option common_opts[] = {
                     ^
/datasets/git/builtin/multi-pack-index.c:82:17: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
                                             void *cb UNUSED)
                                                   ^
/datasets/git/builtin/multi-pack-index.c:85:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (git_config_bool(var, value))
                                                ^
                                                 {
/datasets/git/builtin/multi-pack-index.c:86:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        opts.flags |= MIDX_WRITE_BITMAP_HASH_CACHE;
                        ^
/datasets/git/builtin/multi-pack-index.c:86:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        opts.flags |= MIDX_WRITE_BITMAP_HASH_CACHE;
                                      ^
/datasets/git/./midx.h:49:39: note: expanded from macro 'MIDX_WRITE_BITMAP_HASH_CACHE'
#define MIDX_WRITE_BITMAP_HASH_CACHE (1 << 3)
                                      ^
/datasets/git/builtin/multi-pack-index.c:87:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/multi-pack-index.c:88:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        opts.flags &= ~MIDX_WRITE_BITMAP_HASH_CACHE;
                        ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/multi-pack-index.c:88:18: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                        opts.flags &= ~MIDX_WRITE_BITMAP_HASH_CACHE;
                                      ^
/datasets/git/builtin/multi-pack-index.c:88:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        opts.flags &= ~MIDX_WRITE_BITMAP_HASH_CACHE;
                                       ^
/datasets/git/./midx.h:49:39: note: expanded from macro 'MIDX_WRITE_BITMAP_HASH_CACHE'
#define MIDX_WRITE_BITMAP_HASH_CACHE (1 << 3)
                                      ^
/datasets/git/builtin/multi-pack-index.c:92:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (git_config_bool(var, value))
                                                ^
                                                 {
/datasets/git/builtin/multi-pack-index.c:93:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        opts.flags |= MIDX_WRITE_BITMAP_LOOKUP_TABLE;
                        ^
/datasets/git/builtin/multi-pack-index.c:93:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        opts.flags |= MIDX_WRITE_BITMAP_LOOKUP_TABLE;
                                      ^
/datasets/git/./midx.h:50:41: note: expanded from macro 'MIDX_WRITE_BITMAP_LOOKUP_TABLE'
#define MIDX_WRITE_BITMAP_LOOKUP_TABLE (1 << 4)
                                        ^
/datasets/git/builtin/multi-pack-index.c:94:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/multi-pack-index.c:95:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        opts.flags &= ~MIDX_WRITE_BITMAP_LOOKUP_TABLE;
                        ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/multi-pack-index.c:95:18: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                        opts.flags &= ~MIDX_WRITE_BITMAP_LOOKUP_TABLE;
                                      ^
/datasets/git/builtin/multi-pack-index.c:95:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        opts.flags &= ~MIDX_WRITE_BITMAP_LOOKUP_TABLE;
                                       ^
/datasets/git/./midx.h:50:41: note: expanded from macro 'MIDX_WRITE_BITMAP_LOOKUP_TABLE'
#define MIDX_WRITE_BITMAP_LOOKUP_TABLE (1 << 4)
                                        ^
/datasets/git/builtin/multi-pack-index.c:105:55: warning: parameter name 'to' is too short, expected at least 3 characters [readability-identifier-length]
static void read_packs_from_stdin(struct string_list *to)
                                                      ^
/datasets/git/builtin/multi-pack-index.c:108:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (strbuf_getline(&buf, stdin) != EOF)
        ^
/datasets/git/builtin/multi-pack-index.c:108:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'buf' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (strbuf_getline(&buf, stdin) != EOF)
               ^
/datasets/git/builtin/multi-pack-index.c:108:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (strbuf_getline(&buf, stdin) != EOF)
                                                  ^
                                                   {
/datasets/git/builtin/multi-pack-index.c:118:17: warning: variable 'options' is not initialized [cppcoreguidelines-init-variables]
        struct option *options;
                       ^
                               = NULL
/datasets/git/builtin/multi-pack-index.c:123:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT(0, "bitmap", &opts.flags, N_("write multi-pack bitmap"),
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/multi-pack-index.c:124:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        MIDX_WRITE_BITMAP | MIDX_WRITE_REV_INDEX),
                        ^
/datasets/git/./midx.h:48:27: note: expanded from macro 'MIDX_WRITE_BITMAP'
#define MIDX_WRITE_BITMAP (1 << 2)
                          ^~~~~~~~
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/multi-pack-index.c:124:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        MIDX_WRITE_BITMAP | MIDX_WRITE_REV_INDEX),
                                            ^
/datasets/git/./midx.h:47:31: note: expanded from macro 'MIDX_WRITE_REV_INDEX'
#define MIDX_WRITE_REV_INDEX (1 << 1)
                              ^
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/multi-pack-index.c:125:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT(0, "progress", &opts.flags,
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/multi-pack-index.c:126:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        N_("force progress reporting"), MIDX_PROGRESS),
                                                        ^
/datasets/git/./midx.h:46:28: note: expanded from macro 'MIDX_PROGRESS'
#define MIDX_PROGRESS     (1 << 0)
                           ^
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/multi-pack-index.c:127:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "stdin-packs", &opts.stdin_packs,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/multi-pack-index.c:134:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        opts.flags |= MIDX_WRITE_BITMAP_HASH_CACHE;
        ^
/datasets/git/builtin/multi-pack-index.c:134:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        opts.flags |= MIDX_WRITE_BITMAP_HASH_CACHE;
                      ^
/datasets/git/./midx.h:49:39: note: expanded from macro 'MIDX_WRITE_BITMAP_HASH_CACHE'
#define MIDX_WRITE_BITMAP_HASH_CACHE (1 << 3)
                                      ^
/datasets/git/builtin/multi-pack-index.c:142:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (isatty(2))
                      ^
                       {
/datasets/git/builtin/multi-pack-index.c:143:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                opts.flags |= MIDX_PROGRESS;
                ^
/datasets/git/builtin/multi-pack-index.c:143:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                opts.flags |= MIDX_PROGRESS;
                              ^
/datasets/git/./midx.h:46:28: note: expanded from macro 'MIDX_PROGRESS'
#define MIDX_PROGRESS     (1 << 0)
                           ^
/datasets/git/builtin/multi-pack-index.c:147:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc)
                 ^
                  {
/datasets/git/builtin/multi-pack-index.c:151:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(options);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/multi-pack-index.c:155:7: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
                int ret;
                    ^
                        = 0
/datasets/git/builtin/multi-pack-index.c:175:17: warning: variable 'options' is not initialized [cppcoreguidelines-init-variables]
        struct option *options;
                       ^
                               = NULL
/datasets/git/builtin/multi-pack-index.c:177:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT(0, "progress", &opts.flags,
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/multi-pack-index.c:178:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        N_("force progress reporting"), MIDX_PROGRESS),
                                                        ^
/datasets/git/./midx.h:46:28: note: expanded from macro 'MIDX_PROGRESS'
#define MIDX_PROGRESS     (1 << 0)
                           ^
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/multi-pack-index.c:185:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (isatty(2))
                      ^
                       {
/datasets/git/builtin/multi-pack-index.c:186:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                opts.flags |= MIDX_PROGRESS;
                ^
/datasets/git/builtin/multi-pack-index.c:186:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                opts.flags |= MIDX_PROGRESS;
                              ^
/datasets/git/./midx.h:46:28: note: expanded from macro 'MIDX_PROGRESS'
#define MIDX_PROGRESS     (1 << 0)
                           ^
/datasets/git/builtin/multi-pack-index.c:190:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc)
                 ^
                  {
/datasets/git/builtin/multi-pack-index.c:194:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(options);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/multi-pack-index.c:202:17: warning: variable 'options' is not initialized [cppcoreguidelines-init-variables]
        struct option *options;
                       ^
                               = NULL
/datasets/git/builtin/multi-pack-index.c:204:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT(0, "progress", &opts.flags,
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/multi-pack-index.c:205:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        N_("force progress reporting"), MIDX_PROGRESS),
                                                        ^
/datasets/git/./midx.h:46:28: note: expanded from macro 'MIDX_PROGRESS'
#define MIDX_PROGRESS     (1 << 0)
                           ^
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/multi-pack-index.c:212:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (isatty(2))
                      ^
                       {
/datasets/git/builtin/multi-pack-index.c:213:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                opts.flags |= MIDX_PROGRESS;
                ^
/datasets/git/builtin/multi-pack-index.c:213:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                opts.flags |= MIDX_PROGRESS;
                              ^
/datasets/git/./midx.h:46:28: note: expanded from macro 'MIDX_PROGRESS'
#define MIDX_PROGRESS     (1 << 0)
                           ^
/datasets/git/builtin/multi-pack-index.c:217:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc)
                 ^
                  {
/datasets/git/builtin/multi-pack-index.c:221:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(options);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/multi-pack-index.c:229:17: warning: variable 'options' is not initialized [cppcoreguidelines-init-variables]
        struct option *options;
                       ^
                               = NULL
/datasets/git/builtin/multi-pack-index.c:233:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT(0, "progress", &opts.flags,
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/multi-pack-index.c:234:37: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                  N_("force progress reporting"), MIDX_PROGRESS),
                                                  ^
/datasets/git/./midx.h:46:28: note: expanded from macro 'MIDX_PROGRESS'
#define MIDX_PROGRESS     (1 << 0)
                           ^
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/multi-pack-index.c:242:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (isatty(2))
                      ^
                       {
/datasets/git/builtin/multi-pack-index.c:243:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                opts.flags |= MIDX_PROGRESS;
                ^
/datasets/git/builtin/multi-pack-index.c:243:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                opts.flags |= MIDX_PROGRESS;
                              ^
/datasets/git/./midx.h:46:28: note: expanded from macro 'MIDX_PROGRESS'
#define MIDX_PROGRESS     (1 << 0)
                           ^
/datasets/git/builtin/multi-pack-index.c:248:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc)
                 ^
                  {
/datasets/git/builtin/multi-pack-index.c:252:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(options);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/multi-pack-index.c:261:6: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        int res;
            ^
                = 0
/datasets/git/builtin/multi-pack-index.c:262:27: warning: variable name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
        parse_opt_subcommand_fn *fn = NULL;
                                 ^
/datasets/git/builtin/multi-pack-index.c:276:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            the_repository->objects->odb)
                                         ^
                                          {
/datasets/git/builtin/multi-pack-index.c:281:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(options);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/mv.c:8:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "cache-tree.h"
/datasets/git/builtin/mv.c:24:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        WORKING_DIRECTORY = (1 << 1),
                             ^
/datasets/git/builtin/mv.c:25:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        INDEX = (1 << 2),
                 ^
/datasets/git/builtin/mv.c:26:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SPARSE = (1 << 3),
                  ^
/datasets/git/builtin/mv.c:27:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SKIP_WORKTREE_DIR = (1 << 4),
                             ^
/datasets/git/builtin/mv.c:30:1: warning: replace macro with enum [modernize-macro-to-enum]
#define DUP_BASENAME 1
^~~~~~~~
                     =,
/datasets/git/builtin/mv.c:30:9: warning: macro 'DUP_BASENAME' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define DUP_BASENAME 1
        ^
/datasets/git/builtin/mv.c:31:9: warning: macro 'KEEP_TRAILING_SLASH' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define KEEP_TRAILING_SLASH 2
        ^
/datasets/git/builtin/mv.c:35:11: warning: 2 adjacent parameters of 'internal_prefix_pathspec' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                             int count, unsigned flags)
                                             ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/mv.c:35:15: note: the first parameter in the range is 'count'
                                             int count, unsigned flags)
                                                 ^~~~~
/datasets/git/builtin/mv.c:35:31: note: the last parameter in the range is 'flags'
                                             int count, unsigned flags)
                                                                 ^~~~~
/datasets/git/builtin/mv.c:35:22: note: 'int' and 'unsigned int' may be implicitly converted
                                             int count, unsigned flags)
                                                        ^
/datasets/git/builtin/mv.c:37:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/mv.c:37:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/mv.c:38:15: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        const char **result;
                     ^
                            = NULL
/datasets/git/builtin/mv.c:39:27: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int prefixlen = prefix ? strlen(prefix) : 0;
                                 ^
/datasets/git/builtin/mv.c:44:16: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int length = strlen(pathspec[i]);
                             ^
/datasets/git/builtin/mv.c:46:9: warning: variable 'it' is not initialized [cppcoreguidelines-init-variables]
                char *it;
                      ^
                         = NULL
/datasets/git/builtin/mv.c:46:9: warning: variable name 'it' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/mv.c:47:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (!(flags & KEEP_TRAILING_SLASH) &&
                ^
/datasets/git/builtin/mv.c:47:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'to_copy' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (!(flags & KEEP_TRAILING_SLASH) &&
                       ^
/datasets/git/builtin/mv.c:47:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                while (!(flags & KEEP_TRAILING_SLASH) &&
                         ^
/datasets/git/builtin/mv.c:48:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                       to_copy > 0 && is_dir_sep(pathspec[i][to_copy - 1]))
                                                                           ^
                                                                            {
/datasets/git/builtin/mv.c:52:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flags & DUP_BASENAME) {
                    ^
/datasets/git/builtin/mv.c:62:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < count; i++) {
        ^
/datasets/git/builtin/mv.c:76:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(with_slash, path, len);
                ^~~~~~
/datasets/git/builtin/mv.c:76:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(with_slash, path, len);
                ^~~~~~
/datasets/git/builtin/mv.c:90:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!S_ISGITLINK(the_index.cache[first]->ce_mode))
             ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/builtin/mv.c:90:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!S_ISGITLINK(the_index.cache[first]->ce_mode))
                                                          ^
                                                           {
/datasets/git/builtin/mv.c:92:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_staging_gitmodules_ok(&the_index))
                                                  ^
                                                   {
/datasets/git/builtin/mv.c:96:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*submodule_gitfile)
                               ^
                                {
/datasets/git/builtin/mv.c:98:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/mv.c:104:8: warning: 2 adjacent parameters of 'index_range_of_same_dir' of similar type ('int *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                   int *first_p, int *last_p)
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/mv.c:104:13: note: the first parameter in the range is 'first_p'
                                   int *first_p, int *last_p)
                                        ^~~~~~~
/datasets/git/builtin/mv.c:104:27: note: the last parameter in the range is 'last_p'
                                   int *first_p, int *last_p)
                                                      ^~~~~~
/datasets/git/builtin/mv.c:107:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int first, last, len_w_slash = length + 1;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/mv.c:107:6: warning: variable 'first' is not initialized [cppcoreguidelines-init-variables]
        int first, last, len_w_slash = length + 1;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/mv.c:107:13: warning: variable 'last' is not initialized [cppcoreguidelines-init-variables]
        int first, last, len_w_slash = length + 1;
                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/mv.c:110:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (first >= 0)
                       ^
                        {
/datasets/git/builtin/mv.c:114:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (last = first; last < the_index.cache_nr; last++) {
        ^
/datasets/git/builtin/mv.c:114:21: warning: backward branch (for loop) is ID-dependent due to variable reference to 'last' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (last = first; last < the_index.cache_nr; last++) {
                           ^
/datasets/git/builtin/mv.c:116:7: warning: function 'strncmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (strncmp(path, src_w_slash, len_w_slash))
                    ^
                                                            != 0
/datasets/git/builtin/mv.c:116:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strncmp(path, src_w_slash, len_w_slash))
                                                            ^
                                                             {
/datasets/git/builtin/mv.c:119:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (src_w_slash != src)
                               ^
                                {
/datasets/git/builtin/mv.c:137:15: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int length = strlen(with_slash);
                     ^
/datasets/git/builtin/mv.c:140:28: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
        const struct cache_entry *ce;
                                  ^
                                     = NULL
/datasets/git/builtin/mv.c:140:28: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/mv.c:144:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pos >= the_index.cache_nr)
                                              ^
                                               {
/datasets/git/builtin/mv.c:147:7: warning: function 'strncmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (strncmp(with_slash, ce->name, length))
                    ^
                                                          != 0
/datasets/git/builtin/mv.c:147:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strncmp(with_slash, ce->name, length))
                                                          ^
                                                           {
/datasets/git/builtin/mv.c:149:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce_skip_worktree(ce))
                    ^
/datasets/git/./refs/../cache.h:244:31: note: expanded from macro 'ce_skip_worktree'
#define ce_skip_worktree(ce) ((ce)->ce_flags & CE_SKIP_WORKTREE)
                              ^                ~~~~~~~~~~~~~~~~
/datasets/git/builtin/mv.c:149:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ce_skip_worktree(ce))
                                         ^
                                          {
/datasets/git/builtin/mv.c:154:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (with_slash != name)
                               ^
                                {
/datasets/git/builtin/mv.c:159:5: warning: function 'cmd_mv' has cognitive complexity of 215 (threshold 25) [readability-function-cognitive-complexity]
int cmd_mv(int argc, const char **argv, const char *prefix)
    ^
/datasets/git/builtin/mv.c:189:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (--argc < 1)
        ^
/datasets/git/builtin/mv.c:193:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (repo_read_index(the_repository) < 0)
        ^
/datasets/git/builtin/mv.c:205:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (argc == 1 && is_directory(argv[0]) && !is_directory(argv[1]))
        ^
/datasets/git/builtin/mv.c:205:41: note: +1
        if (argc == 1 && is_directory(argv[0]) && !is_directory(argv[1]))
                                               ^
/datasets/git/builtin/mv.c:211:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (dest_path[0][0] == '\0')
        ^
/datasets/git/builtin/mv.c:214:7: note: +1, nesting level increased to 1
        else if (!lstat(dest_path[0], &st) &&
             ^
/datasets/git/builtin/mv.c:214:37: note: +1
        else if (!lstat(dest_path[0], &st) &&
                                           ^
/datasets/git/builtin/mv.c:217:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/mv.c:218:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!path_in_sparse_checkout(dst_w_slash, &the_index) &&
                ^
/datasets/git/builtin/mv.c:218:57: note: +1
                if (!path_in_sparse_checkout(dst_w_slash, &the_index) &&
                                                                      ^
/datasets/git/builtin/mv.c:222:10: note: +1, nesting level increased to 2
                } else if (argc != 1) {
                       ^
/datasets/git/builtin/mv.c:224:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/mv.c:234:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!path_in_cone_mode_sparse_checkout(destination[0], &the_index))
                        ^
/datasets/git/builtin/mv.c:238:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (dst_w_slash != dest_path[0]) {
        ^
/datasets/git/builtin/mv.c:244:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < argc; i++) {
        ^
/datasets/git/builtin/mv.c:250:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (show_only)
                ^
/datasets/git/builtin/mv.c:254:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (lstat(src, &st) < 0) {
                ^
/datasets/git/builtin/mv.c:259:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (pos < 0) {
                        ^
/datasets/git/builtin/mv.c:261:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!path_in_sparse_checkout(src_w_slash, &the_index) &&
                                ^
/datasets/git/builtin/mv.c:261:59: note: +1
                                if (!path_in_sparse_checkout(src_w_slash, &the_index) &&
                                                                                      ^
/datasets/git/builtin/mv.c:264:6: note: +1
                                        goto dir_check;
                                        ^
/datasets/git/builtin/mv.c:267:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!(modes[i] & SPARSE))
                                ^
/datasets/git/builtin/mv.c:269:5: note: +1
                                goto act_on_entry;
                                ^
/datasets/git/builtin/mv.c:272:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!ce_skip_worktree(ce)) {
                        ^
/datasets/git/builtin/mv.c:274:5: note: +1
                                goto act_on_entry;
                                ^
/datasets/git/builtin/mv.c:276:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!ignore_sparse) {
                        ^
/datasets/git/builtin/mv.c:278:5: note: +1
                                goto act_on_entry;
                                ^
/datasets/git/builtin/mv.c:281:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (index_name_pos(&the_index, dst, strlen(dst)) < 0) {
                        ^
/datasets/git/builtin/mv.c:283:5: note: +1
                                goto act_on_entry;
                                ^
/datasets/git/builtin/mv.c:285:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!force) {
                        ^
/datasets/git/builtin/mv.c:287:5: note: +1
                                goto act_on_entry;
                                ^
/datasets/git/builtin/mv.c:290:4: note: +1
                        goto act_on_entry;
                        ^
/datasets/git/builtin/mv.c:292:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strncmp(src, dst, length) &&
                ^
/datasets/git/builtin/mv.c:292:34: note: +1
                if (!strncmp(src, dst, length) &&
                                               ^
/datasets/git/builtin/mv.c:293:25: note: +1
                    (dst[length] == 0 || dst[length] == '/')) {
                                      ^
/datasets/git/builtin/mv.c:295:4: note: +1
                        goto act_on_entry;
                        ^
/datasets/git/builtin/mv.c:297:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (S_ISDIR(st.st_mode)
                ^
/datasets/git/builtin/mv.c:298:7: note: +1
                    && lstat(dst, &st) == 0) {
                    ^
/datasets/git/builtin/mv.c:300:4: note: +1
                        goto act_on_entry;
                        ^
/datasets/git/builtin/mv.c:304:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (S_ISDIR(st.st_mode)) {
                ^
/datasets/git/builtin/mv.c:308:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (first >= 0) {
                        ^
/datasets/git/builtin/mv.c:311:5: note: +1
                                goto act_on_entry;
                                ^
/datasets/git/builtin/mv.c:312:11: note: +1, nesting level increased to 3
                        } else if (index_range_of_same_dir(src, length,
                               ^
/datasets/git/builtin/mv.c:315:5: note: +1
                                goto act_on_entry;
                                ^
/datasets/git/builtin/mv.c:321:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        ALLOC_GROW(src_dir, src_dir_nr + 1, src_dir_alloc);
                        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/builtin/mv.c:321:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        ALLOC_GROW(src_dir, src_dir_nr + 1, src_dir_alloc);
                        ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/builtin/mv.c:321:4: note: +5, including nesting penalty of 4, nesting level increased to 5
                        ALLOC_GROW(src_dir, src_dir_nr + 1, src_dir_alloc);
                        ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/builtin/mv.c:321:4: note: +1, nesting level increased to 5
                        ALLOC_GROW(src_dir, src_dir_nr + 1, src_dir_alloc);
                        ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/builtin/mv.c:333:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (j = 0; j < last - first; j++) {
                        ^
/datasets/git/builtin/mv.c:340:45: note: +4, including nesting penalty of 3, nesting level increased to 4
                                modes[argc + j] |= ce_skip_worktree(ce) ? SPARSE : INDEX;
                                                                        ^
/datasets/git/builtin/mv.c:344:4: note: +1
                        goto act_on_entry;
                        ^
/datasets/git/builtin/mv.c:346:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!(ce = index_file_exists(&the_index, src, length, 0))) {
                ^
/datasets/git/builtin/mv.c:348:4: note: +1
                        goto act_on_entry;
                        ^
/datasets/git/builtin/mv.c:350:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ce_stage(ce)) {
                ^
/datasets/git/builtin/mv.c:352:4: note: +1
                        goto act_on_entry;
                        ^
/datasets/git/builtin/mv.c:354:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (lstat(dst, &st) == 0 &&
                ^
/datasets/git/builtin/mv.c:354:28: note: +1
                if (lstat(dst, &st) == 0 &&
                                         ^
/datasets/git/builtin/mv.c:355:21: note: +1
                    (!ignore_case || strcasecmp(src, dst))) {
                                  ^
/datasets/git/builtin/mv.c:357:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (force) {
                        ^
/datasets/git/builtin/mv.c:362:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (S_ISREG(st.st_mode) || S_ISLNK(st.st_mode)) {
                                ^
/datasets/git/builtin/mv.c:362:29: note: +1
                                if (S_ISREG(st.st_mode) || S_ISLNK(st.st_mode)) {
                                                        ^
/datasets/git/builtin/mv.c:363:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (verbose)
                                        ^
/datasets/git/builtin/mv.c:366:7: note: +1, nesting level increased to 4
                                } else
                                  ^
/datasets/git/builtin/mv.c:369:4: note: +1
                        goto act_on_entry;
                        ^
/datasets/git/builtin/mv.c:371:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (string_list_has_string(&src_for_dst, dst)) {
                ^
/datasets/git/builtin/mv.c:373:4: note: +1
                        goto act_on_entry;
                        ^
/datasets/git/builtin/mv.c:375:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (is_dir_sep(dst[strlen(dst) - 1])) {
                ^
/datasets/git/builtin/mv.c:377:4: note: +1
                        goto act_on_entry;
                        ^
/datasets/git/builtin/mv.c:380:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ignore_sparse &&
                ^
/datasets/git/builtin/mv.c:381:49: note: +1
                    (dst_mode & (SKIP_WORKTREE_DIR | SPARSE)) &&
                                                              ^
/datasets/git/builtin/mv.c:384:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (force) {
                        ^
/datasets/git/builtin/mv.c:385:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (verbose)
                                ^
/datasets/git/builtin/mv.c:388:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/builtin/mv.c:389:5: note: +1
                                goto act_on_entry;
                                ^
/datasets/git/builtin/mv.c:398:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!ignore_sparse &&
                ^
/datasets/git/builtin/mv.c:398:22: note: +1
                if (!ignore_sparse &&
                                   ^
/datasets/git/builtin/mv.c:403:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!ignore_sparse &&
                ^
/datasets/git/builtin/mv.c:403:22: note: +1
                if (!ignore_sparse &&
                                   ^
/datasets/git/builtin/mv.c:409:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (skip_sparse)
                ^
/datasets/git/builtin/mv.c:415:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!bad)
                ^
/datasets/git/builtin/mv.c:417:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!ignore_errors)
                ^
/datasets/git/builtin/mv.c:421:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (--argc > 0) {
                ^
/datasets/git/builtin/mv.c:432:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (only_match_skip_worktree.nr) {
        ^
/datasets/git/builtin/mv.c:434:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!ignore_errors)
                ^
/datasets/git/builtin/mv.c:438:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < argc; i++) {
        ^
/datasets/git/builtin/mv.c:446:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (force)
                ^
/datasets/git/builtin/mv.c:448:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (show_only || verbose)
                ^
/datasets/git/builtin/mv.c:448:17: note: +1
                if (show_only || verbose)
                              ^
/datasets/git/builtin/mv.c:450:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (show_only)
                ^
/datasets/git/builtin/mv.c:452:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!(mode & (INDEX | SPARSE | SKIP_WORKTREE_DIR)) &&
                ^
/datasets/git/builtin/mv.c:453:50: note: +1
                    !(dst_mode & (SKIP_WORKTREE_DIR | SPARSE)) &&
                                                               ^
/datasets/git/builtin/mv.c:455:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ignore_errors)
                        ^
/datasets/git/builtin/mv.c:459:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (submodule_gitfile[i]) {
                ^
/datasets/git/builtin/mv.c:460:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!update_path_in_gitmodules(src, dst))
                        ^
/datasets/git/builtin/mv.c:462:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (submodule_gitfile[i] != SUBMODULE_WITH_GITDIR)
                        ^
/datasets/git/builtin/mv.c:468:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (mode & (WORKING_DIRECTORY | SKIP_WORKTREE_DIR))
                ^
/datasets/git/builtin/mv.c:472:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(pos >= 0);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/builtin/mv.c:472:3: note: nesting level increased to 2
                assert(pos >= 0);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/builtin/mv.c:472:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(pos >= 0);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/builtin/mv.c:472:3: note: +1, nesting level increased to 3
                assert(pos >= 0);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/builtin/mv.c:473:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!(mode & SPARSE) && !lstat(src, &st))
                ^
/datasets/git/builtin/mv.c:473:24: note: +1
                if (!(mode & SPARSE) && !lstat(src, &st))
                                     ^
/datasets/git/builtin/mv.c:480:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ignore_sparse &&
                ^
/datasets/git/builtin/mv.c:481:34: note: +1
                    core_apply_sparse_checkout &&
                                               ^
/datasets/git/builtin/mv.c:489:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if ((mode & SPARSE) &&
                        ^
/datasets/git/builtin/mv.c:489:24: note: +1
                        if ((mode & SPARSE) &&
                                            ^
/datasets/git/builtin/mv.c:497:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (checkout_entry(dst_ce, &state, NULL, NULL))
                                ^
/datasets/git/builtin/mv.c:499:11: note: +1, nesting level increased to 3
                        } else if ((dst_mode & (SKIP_WORKTREE_DIR | SPARSE)) &&
                               ^
/datasets/git/builtin/mv.c:500:25: note: +1
                                   !(mode & SPARSE) &&
                                                    ^
/datasets/git/builtin/mv.c:509:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!sparse_and_dirty) {
                                ^
/datasets/git/builtin/mv.c:512:7: note: +1, nesting level increased to 4
                                } else {
                                  ^
/datasets/git/builtin/mv.c:521:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        FREE_AND_NULL(dst_dup);
                                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/mv.c:531:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < src_dir_nr; i++) {
        ^
/datasets/git/builtin/mv.c:538:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (index_range_of_same_dir(a_src_dir.buf, a_src_dir.len,
                ^
/datasets/git/builtin/mv.c:548:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (dirty_paths.nr)
        ^
/datasets/git/builtin/mv.c:551:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (gitmodules_modified)
        ^
/datasets/git/builtin/mv.c:554:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (write_locked_index(&the_index, &lock_file,
        ^
/datasets/git/builtin/mv.c:560:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        UNLEAK(source);
        ^
/datasets/git/./git-compat-util.h:1544:21: note: expanded from macro 'UNLEAK'
#define UNLEAK(var) do {} while (0)
                    ^
/datasets/git/builtin/mv.c:561:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        UNLEAK(dest_path);
        ^
/datasets/git/./git-compat-util.h:1544:21: note: expanded from macro 'UNLEAK'
#define UNLEAK(var) do {} while (0)
                    ^
/datasets/git/builtin/mv.c:161:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, flags, gitmodules_modified = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/mv.c:161:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, flags, gitmodules_modified = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/mv.c:161:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/mv.c:161:9: warning: variable 'flags' is not initialized [cppcoreguidelines-init-variables]
        int i, flags, gitmodules_modified = 0;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/mv.c:162:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int verbose = 0, show_only = 0, force = 0, ignore_errors = 0, ignore_sparse = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/mv.c:164:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__VERBOSE(&verbose, N_("be verbose")),
                ^
/datasets/git/./parse-options.h:359:31: note: expanded from macro 'OPT__VERBOSE'
#define OPT__VERBOSE(var, h)  OPT_COUNTUP('v', "verbose", (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/mv.c:165:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__DRY_RUN(&show_only, N_("dry run")),
                ^
/datasets/git/./parse-options.h:366:31: note: expanded from macro 'OPT__DRY_RUN'
#define OPT__DRY_RUN(var, h)  OPT_BOOL('n', "dry-run", (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/mv.c:166:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__FORCE(&force, N_("force move/rename even if target exists"),
                ^
/datasets/git/./parse-options.h:367:31: note: expanded from macro 'OPT__FORCE'
#define OPT__FORCE(var, h, f) OPT_COUNTUP_F('f', "force",   (var), (h), (f))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/mv.c:168:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('k', NULL, &ignore_errors, N_("skip move/rename errors")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/mv.c:169:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "sparse", &ignore_sparse, N_("allow updating entries outside of the sparse-checkout cone")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/mv.c:172:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char **source, **destination, **dest_path, **submodule_gitfile;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/mv.c:172:15: warning: variable 'source' is not initialized [cppcoreguidelines-init-variables]
        const char **source, **destination, **dest_path, **submodule_gitfile;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/mv.c:172:25: warning: variable 'destination' is not initialized [cppcoreguidelines-init-variables]
        const char **source, **destination, **dest_path, **submodule_gitfile;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/mv.c:172:40: warning: variable 'dest_path' is not initialized [cppcoreguidelines-init-variables]
        const char **source, **destination, **dest_path, **submodule_gitfile;
                                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/mv.c:172:53: warning: variable 'submodule_gitfile' is not initialized [cppcoreguidelines-init-variables]
        const char **source, **destination, **dest_path, **submodule_gitfile;
                                                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/mv.c:173:14: warning: variable 'dst_w_slash' is not initialized [cppcoreguidelines-init-variables]
        const char *dst_w_slash;
                    ^
                                = NULL
/datasets/git/builtin/mv.c:175:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int src_dir_nr = 0, src_dir_alloc = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/mv.c:177:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        enum update_mode *modes, dst_mode = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/mv.c:177:20: warning: variable 'modes' is not initialized [cppcoreguidelines-init-variables]
        enum update_mode *modes, dst_mode = 0;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/mv.c:178:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/builtin/mv.c:181:22: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
        struct cache_entry *ce;
                            ^
                               = NULL
/datasets/git/builtin/mv.c:181:22: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/mv.c:189:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (--argc < 1)
                       ^
                        {
/datasets/git/builtin/mv.c:193:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_read_index(the_repository) < 0)
                                                ^
                                                 {
/datasets/git/builtin/mv.c:205:67: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc == 1 && is_directory(argv[0]) && !is_directory(argv[1]))
                                                                         ^
                                                                          {
/datasets/git/builtin/mv.c:211:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (dest_path[0][0] == '\0')
                                    ^
                                     {
/datasets/git/builtin/mv.c:234:71: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!path_in_cone_mode_sparse_checkout(destination[0], &the_index))
                                                                                           ^
                                                                                            {
/datasets/git/builtin/mv.c:244:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'argc' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < argc; i++) {
                    ^
/datasets/git/builtin/mv.c:159:12: note: inferred assignment of ID-dependent value from ID-dependent 
int cmd_mv(int argc, const char **argv, const char *prefix)
           ^
/datasets/git/builtin/mv.c:245:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                const char *src = source[i], *dst = destination[i];
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/mv.c:246:7: warning: variable 'length' is not initialized [cppcoreguidelines-init-variables]
                int length;
                    ^
                           = 0
/datasets/git/builtin/mv.c:250:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (show_only)
                              ^
                               {
/datasets/git/builtin/mv.c:253:12: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                length = strlen(src);
                         ^
/datasets/git/builtin/mv.c:255:8: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
                        int pos;
                            ^
                                = 0
/datasets/git/builtin/mv.c:256:30: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
                        const struct cache_entry *ce;
                                                  ^
                                                     = NULL
/datasets/git/builtin/mv.c:256:30: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/mv.c:263:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        modes[i] |= SKIP_WORKTREE_DIR;
                                        ^           ~~~~~~~~~~~~~~~~~
/datasets/git/builtin/mv.c:267:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (!(modes[i] & SPARSE))
                                      ^          ~~~~~~
/datasets/git/builtin/mv.c:267:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!(modes[i] & SPARSE))
                                                         ^
                                                          {
/datasets/git/builtin/mv.c:272:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!ce_skip_worktree(ce)) {
                             ^
/datasets/git/./refs/../cache.h:244:31: note: expanded from macro 'ce_skip_worktree'
#define ce_skip_worktree(ce) ((ce)->ce_flags & CE_SKIP_WORKTREE)
                              ^                ~~~~~~~~~~~~~~~~
/datasets/git/builtin/mv.c:281:40: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        if (index_name_pos(&the_index, dst, strlen(dst)) < 0) {
                                                            ^
/datasets/git/builtin/mv.c:282:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                modes[i] |= SPARSE;
                                ^           ~~~~~~
/datasets/git/builtin/mv.c:289:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        modes[i] |= SPARSE;
                        ^           ~~~~~~
/datasets/git/builtin/mv.c:305:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        int j, dst_len, n;
                        ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/mv.c:305:8: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
                        int j, dst_len, n;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/mv.c:305:8: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/mv.c:305:11: warning: variable 'dst_len' is not initialized [cppcoreguidelines-init-variables]
                        int j, dst_len, n;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/mv.c:305:20: warning: variable 'n' is not initialized [cppcoreguidelines-init-variables]
                        int j, dst_len, n;
                                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/mv.c:305:20: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/mv.c:306:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        int first = index_name_pos(&the_index, src, length), last;
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/mv.c:306:57: warning: variable 'last' is not initialized [cppcoreguidelines-init-variables]
                        int first = index_name_pos(&the_index, src, length), last;
                                                                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/mv.c:319:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        modes[i] |= WORKING_DIRECTORY;
                        ^           ~~~~~~~~~~~~~~~~~
/datasets/git/builtin/mv.c:321:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        ALLOC_GROW(src_dir, src_dir_nr + 1, src_dir_alloc);
                        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/builtin/mv.c:306:4: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                        int first = index_name_pos(&the_index, src, length), last;
                        ^
/datasets/git/builtin/mv.c:331:14: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        dst_len = strlen(dst);
                                  ^
/datasets/git/builtin/mv.c:333:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (j = 0; j < last - first; j++) {
                        ^
/datasets/git/builtin/mv.c:333:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'first' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (j = 0; j < last - first; j++) {
                                    ^
/datasets/git/builtin/mv.c:334:31: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                                const struct cache_entry *ce = the_index.cache[first + j];
                                                          ^
/datasets/git/builtin/mv.c:339:5: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                                memset(modes + argc + j, 0, sizeof(enum update_mode));
                                ^~~~~~
/datasets/git/builtin/mv.c:339:5: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                                memset(modes + argc + j, 0, sizeof(enum update_mode));
                                ^~~~~~
/datasets/git/builtin/mv.c:340:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                modes[argc + j] |= ce_skip_worktree(ce) ? SPARSE : INDEX;
                                ^
/datasets/git/builtin/mv.c:340:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                modes[argc + j] |= ce_skip_worktree(ce) ? SPARSE : INDEX;
                                                   ^
/datasets/git/./refs/../cache.h:244:31: note: expanded from macro 'ce_skip_worktree'
#define ce_skip_worktree(ce) ((ce)->ce_flags & CE_SKIP_WORKTREE)
                              ^                ~~~~~~~~~~~~~~~~
/datasets/git/builtin/mv.c:346:9: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                if (!(ce = index_file_exists(&the_index, src, length, 0))) {
                      ^
/datasets/git/builtin/mv.c:346:9: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/builtin/mv.c:346:9: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/builtin/mv.c:350:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce_stage(ce)) {
                    ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/builtin/mv.c:355:24: warning: function 'strcasecmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                    (!ignore_case || strcasecmp(src, dst))) {
                                     ^
                                                          != 0
/datasets/git/builtin/mv.c:363:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        if (verbose)
                                                    ^
                                                     {
/datasets/git/builtin/mv.c:366:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                } else
                                      ^
                                       {
/datasets/git/builtin/mv.c:381:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (dst_mode & (SKIP_WORKTREE_DIR | SPARSE)) &&
                     ^          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/mv.c:381:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (dst_mode & (SKIP_WORKTREE_DIR | SPARSE)) &&
                                 ^~~~~~~~~~~~~~~~~
/datasets/git/builtin/mv.c:382:43: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                    index_entry_exists(&the_index, dst, strlen(dst))) {
                                                        ^
/datasets/git/builtin/mv.c:385:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (verbose)
                                            ^
                                             {
/datasets/git/builtin/mv.c:409:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (skip_sparse)
                                ^
                                 {
/datasets/git/builtin/mv.c:415:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!bad)
                         ^
                          {
/datasets/git/builtin/mv.c:417:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ignore_errors)
                                   ^
                                    {
/datasets/git/builtin/mv.c:422:8: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
                        int n = argc - i;
                            ^
/datasets/git/builtin/mv.c:434:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ignore_errors)
                                   ^
                                    {
/datasets/git/builtin/mv.c:438:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'argc' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < argc; i++) {
                    ^
/datasets/git/builtin/mv.c:439:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                const char *src = source[i], *dst = destination[i];
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/mv.c:441:7: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
                int pos;
                    ^
                        = 0
/datasets/git/builtin/mv.c:446:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (force)
                          ^
                           {
/datasets/git/builtin/mv.c:448:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (show_only || verbose)
                                         ^
                                          {
/datasets/git/builtin/mv.c:450:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (show_only)
                              ^
                               {
/datasets/git/builtin/mv.c:452:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(mode & (INDEX | SPARSE | SKIP_WORKTREE_DIR)) &&
                      ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/mv.c:452:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(mode & (INDEX | SPARSE | SKIP_WORKTREE_DIR)) &&
                              ^~~~~~~~~~~~~~
/datasets/git/builtin/mv.c:453:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    !(dst_mode & (SKIP_WORKTREE_DIR | SPARSE)) &&
                      ^          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/mv.c:453:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    !(dst_mode & (SKIP_WORKTREE_DIR | SPARSE)) &&
                                  ^~~~~~~~~~~~~~~~~
/datasets/git/builtin/mv.c:455:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ignore_errors)
                                          ^
                                           {
/datasets/git/builtin/mv.c:460:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!update_path_in_gitmodules(src, dst))
                                                                 ^
                                                                  {
/datasets/git/builtin/mv.c:462:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (submodule_gitfile[i] != SUBMODULE_WITH_GITDIR)
                                                                          ^
                                                                           {
/datasets/git/builtin/mv.c:468:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (mode & (WORKING_DIRECTORY | SKIP_WORKTREE_DIR))
                    ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/mv.c:468:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (mode & (WORKING_DIRECTORY | SKIP_WORKTREE_DIR))
                            ^~~~~~~~~~~~~~~~~
/datasets/git/builtin/mv.c:468:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (mode & (WORKING_DIRECTORY | SKIP_WORKTREE_DIR))
                                                                   ^
                                                                    {
/datasets/git/builtin/mv.c:471:41: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                pos = index_name_pos(&the_index, src, strlen(src));
                                                      ^
/datasets/git/builtin/mv.c:473:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(mode & SPARSE) && !lstat(src, &st))
                      ^      ~~~~~~
/datasets/git/builtin/mv.c:473:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(mode & SPARSE) && !lstat(src, &st))
                                                         ^
                                                          {
/datasets/git/builtin/mv.c:489:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if ((mode & SPARSE) &&
                             ^      ~~~~~~
/datasets/git/builtin/mv.c:495:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                dst_ce->ce_flags &= ~CE_SKIP_WORKTREE;
                                ^                   ~~~~~~~~~~~~~~~~~
/datasets/git/builtin/mv.c:495:25: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                                dst_ce->ce_flags &= ~CE_SKIP_WORKTREE;
                                                    ^
/datasets/git/builtin/mv.c:495:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                dst_ce->ce_flags &= ~CE_SKIP_WORKTREE;
                                                     ^
/datasets/git/./refs/../cache.h:190:31: note: expanded from macro 'CE_SKIP_WORKTREE'
#define CE_SKIP_WORKTREE     (1 << 30)
                              ^
/datasets/git/builtin/mv.c:497:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (checkout_entry(dst_ce, &state, NULL, NULL))
                                                                               ^
                                                                                {
/datasets/git/builtin/mv.c:499:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        } else if ((dst_mode & (SKIP_WORKTREE_DIR | SPARSE)) &&
                                    ^          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/mv.c:499:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        } else if ((dst_mode & (SKIP_WORKTREE_DIR | SPARSE)) &&
                                                ^~~~~~~~~~~~~~~~~
/datasets/git/builtin/mv.c:500:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                   !(mode & SPARSE) &&
                                     ^      ~~~~~~
/datasets/git/builtin/mv.c:510:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        dst_ce->ce_flags |= CE_SKIP_WORKTREE;
                                        ^
/datasets/git/builtin/mv.c:510:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        dst_ce->ce_flags |= CE_SKIP_WORKTREE;
                                                            ^
/datasets/git/./refs/../cache.h:190:31: note: expanded from macro 'CE_SKIP_WORKTREE'
#define CE_SKIP_WORKTREE     (1 << 30)
                              ^
/datasets/git/builtin/mv.c:521:6: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                        FREE_AND_NULL(dst_dup);
                                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/mv.c:522:6: warning: the value returned by this function should be used [cert-err33-c]
                                        rename(src, dst);
                                        ^~~~~~~~~~~~~~~~
/datasets/git/builtin/mv.c:522:6: note: cast the expression to void to silence this warning
/datasets/git/builtin/mv.c:531:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < src_dir_nr; i++) {
        ^
/datasets/git/builtin/mv.c:532:7: warning: variable 'dummy' is not initialized [cppcoreguidelines-init-variables]
                int dummy;
                    ^
                          = 0
/datasets/git/builtin/mv.c:538:46: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                if (index_range_of_same_dir(a_src_dir.buf, a_src_dir.len,
                                                           ^
/datasets/git/builtin/mv.c:548:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (dirty_paths.nr)
                           ^
                            {
/datasets/git/builtin/mv.c:551:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (gitmodules_modified)
                                ^
                                 {
/datasets/git/builtin/mv.c:555:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                               COMMIT_LOCK | SKIP_IF_UNCHANGED))
                               ^
/datasets/git/./refs/../cache.h:744:22: note: expanded from macro 'COMMIT_LOCK'
#define COMMIT_LOCK             (1 << 0)
                                ^~~~~~~~
/datasets/git/builtin/mv.c:555:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                               COMMIT_LOCK | SKIP_IF_UNCHANGED))
                                             ^
/datasets/git/./refs/../cache.h:745:28: note: expanded from macro 'SKIP_IF_UNCHANGED'
#define SKIP_IF_UNCHANGED       (1 << 1)
                                 ^
/datasets/git/builtin/mv.c:555:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                               COMMIT_LOCK | SKIP_IF_UNCHANGED))
                                                                ^
                                                                 {
/datasets/git/builtin/mv.c:560:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        UNLEAK(source);
        ^
/datasets/git/./git-compat-util.h:1544:21: note: expanded from macro 'UNLEAK'
#define UNLEAK(var) do {} while (0)
                    ^
/datasets/git/builtin/mv.c:561:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        UNLEAK(dest_path);
        ^
/datasets/git/./git-compat-util.h:1544:21: note: expanded from macro 'UNLEAK'
#define UNLEAK(var) do {} while (0)
                    ^
/datasets/git/builtin/name-rev.c:3:1: warning: #includes are not sorted properly [llvm-include-order]
#include "repository.h"
^        ~~~~~~~~~~~~~~
         "commit-graph.h"
/datasets/git/builtin/name-rev.c:18:1: warning: replace macro with enum [modernize-macro-to-enum]
#define CUTOFF_DATE_SLOP 86400
^~~~~~~~
                         =
/datasets/git/builtin/name-rev.c:18:9: warning: macro 'CUTOFF_DATE_SLOP' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define CUTOFF_DATE_SLOP 86400
        ^
/datasets/git/builtin/name-rev.c:20:8: warning: accessing fields in struct 'rev_name' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct rev_name {
       ^
/datasets/git/builtin/name-rev.c:20:8: note: use "__attribute__((aligned(32)))" to align struct 'rev_name' to 32 bytes
/datasets/git/builtin/name-rev.c:28:1: warning: backward branch (for loop) is ID-dependent due to member reference to 'slab_size' and may cause performance degradation [altera-id-dependent-backward-branch]
define_commit_slab(commit_rev_name, struct rev_name);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:48:15: note: expanded from macro 'implement_commit_slab'
                for (j = 0; j < s->slab_size; j++)                      \
                            ^
/datasets/git/builtin/name-rev.c:28:1: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
define_commit_slab(commit_rev_name, struct rev_name);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:68:27: note: expanded from macro 'implement_commit_slab'
                for (i = s->slab_count; i <= nth_slab; i++)             \
                                        ^
/datasets/git/builtin/name-rev.c:28:1: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
define_commit_slab(commit_rev_name, struct rev_name);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:35:2: note: expanded from macro 'implement_commit_slab'
        for (i = 0; i < s->slab_count; i++)                             \
        ^
/datasets/git/builtin/name-rev.c:28:1: warning: result of multiplication in type 'unsigned int' is used as a pointer offset after an implicit widening conversion to type 'size_t' [bugprone-implicit-widening-of-multiplication-result]
define_commit_slab(commit_rev_name, struct rev_name);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:49:13: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                 ^
/datasets/git/builtin/name-rev.c:28:1: note: make conversion explicit to silence this warning
define_commit_slab(commit_rev_name, struct rev_name);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:49:24: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                            ^~~~~~~~~~~~~
/datasets/git/builtin/name-rev.c:28:1: note: perform multiplication in a wider type
define_commit_slab(commit_rev_name, struct rev_name);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:49:24: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                            ^
/datasets/git/builtin/name-rev.c:28:1: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
define_commit_slab(commit_rev_name, struct rev_name);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:67:3: note: expanded from macro 'implement_commit_slab'
                REALLOC_ARRAY(s->slab, nth_slab + 1);                   \
                ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/builtin/name-rev.c:28:1: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(commit_rev_name, struct rev_name);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:55:30: note: expanded from macro 'implement_commit_slab'
                                                  const struct commit *c, \
                                                                       ^
/datasets/git/builtin/name-rev.c:28:1: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(commit_rev_name, struct rev_name);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:14:61: note: expanded from macro 'implement_commit_slab'
scope void init_ ##slabname## _with_stride(struct slabname *s,          \
                                                            ^
/datasets/git/builtin/name-rev.c:28:1: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(commit_rev_name, struct rev_name);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:34:15: note: expanded from macro 'implement_commit_slab'
        unsigned int i;                                                 \
                     ^
/datasets/git/builtin/name-rev.c:28:1: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(commit_rev_name, struct rev_name);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:45:16: note: expanded from macro 'implement_commit_slab'
                unsigned int j;                                         \
                             ^
/datasets/git/builtin/name-rev.c:28:1: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
define_commit_slab(commit_rev_name, struct rev_name);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:58:2: note: expanded from macro 'implement_commit_slab'
        unsigned int nth_slab, nth_slot;                                \
        ^
/datasets/git/builtin/name-rev.c:28:1: note: inferred assignment of ID-dependent value from ID-dependent member slab_count [altera-id-dependent-backward-branch]
define_commit_slab(commit_rev_name, struct rev_name);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:64:3: note: expanded from macro 'implement_commit_slab'
                unsigned int i;                                         \
                ^
/datasets/git/builtin/name-rev.c:28:20: warning: accessing fields in struct 'commit_rev_name' is inefficient due to padding; only needs 20 bytes but is using 24 bytes [altera-struct-pack-align]
define_commit_slab(commit_rev_name, struct rev_name);
                   ^
/datasets/git/builtin/name-rev.c:28:20: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'commit_rev_name'
/datasets/git/builtin/name-rev.c:28:20: warning: accessing fields in struct 'commit_rev_name' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
define_commit_slab(commit_rev_name, struct rev_name);
                   ^
/datasets/git/builtin/name-rev.c:28:20: note: use "__attribute__((aligned(32)))" to align struct 'commit_rev_name' to 32 bytes
/datasets/git/builtin/name-rev.c:30:20: warning: variable 'generation_cutoff' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static timestamp_t generation_cutoff = GENERATION_NUMBER_INFINITY;
                   ^
/datasets/git/builtin/name-rev.c:30:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
static timestamp_t generation_cutoff = GENERATION_NUMBER_INFINITY;
                                       ^
/datasets/git/./negotiator/../commit.h:14:38: note: expanded from macro 'GENERATION_NUMBER_INFINITY'
#define GENERATION_NUMBER_INFINITY ((1ULL << 63) - 1)
                                     ^       ~~
/datasets/git/builtin/name-rev.c:31:20: warning: variable 'cutoff' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static timestamp_t cutoff = TIME_MAX;
                   ^
/datasets/git/builtin/name-rev.c:32:31: warning: variable 'rev_names' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct commit_rev_name rev_names;
                              ^
/datasets/git/builtin/name-rev.c:45:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cutoff > commit->date)
                                  ^
                                   {
/datasets/git/builtin/name-rev.c:51:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (generation_cutoff > generation)
                                                   ^
                                                    {
/datasets/git/builtin/name-rev.c:63:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cutoff > TIME_MIN + CUTOFF_DATE_SLOP)
                                                         ^
                                                          {
/datasets/git/builtin/name-rev.c:65:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/name-rev.c:75:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (generation_cutoff < GENERATION_NUMBER_INFINITY)
                                ^
/datasets/git/./negotiator/../commit.h:14:38: note: expanded from macro 'GENERATION_NUMBER_INFINITY'
#define GENERATION_NUMBER_INFINITY ((1ULL << 63) - 1)
                                     ^       ~~
/datasets/git/builtin/name-rev.c:75:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (generation_cutoff < GENERATION_NUMBER_INFINITY)
                                                           ^
                                                            {
/datasets/git/builtin/name-rev.c:103:6: warning: 2 adjacent parameters of 'is_better_name' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                          timestamp_t taggerdate,
                          ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/name-rev.c:103:18: note: the first parameter in the range is 'taggerdate'
                          timestamp_t taggerdate,
                                      ^~~~~~~~~~
/datasets/git/builtin/name-rev.c:104:10: note: the last parameter in the range is 'generation'
                          int generation,
                              ^~~~~~~~~~
/datasets/git/builtin/name-rev.c:103:6: note: 
                          timestamp_t taggerdate,
                          ^
/datasets/git/builtin/name-rev.c:104:6: note: 'timestamp_t' and 'int' may be implicitly converted: 'timestamp_t' (as 'unsigned long') -> 'int', 'int' -> 'timestamp_t' (as 'unsigned long')
                          int generation,
                          ^
/datasets/git/builtin/name-rev.c:105:6: warning: 2 adjacent parameters of 'is_better_name' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                          int distance,
                          ^~~~~~~~~~~~~
/datasets/git/builtin/name-rev.c:105:10: note: the first parameter in the range is 'distance'
                          int distance,
                              ^~~~~~~~
/datasets/git/builtin/name-rev.c:106:10: note: the last parameter in the range is 'from_tag'
                          int from_tag)
                              ^~~~~~~~
/datasets/git/builtin/name-rev.c:115:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (from_tag && name->from_tag)
                                       ^
                                        {
/datasets/git/builtin/name-rev.c:124:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (name->from_tag != from_tag)
                                       ^
                                        {
/datasets/git/builtin/name-rev.c:131:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (name_distance != new_distance)
                                          ^
                                           {
/datasets/git/builtin/name-rev.c:135:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (name->taggerdate != taggerdate)
                                           ^
                                            {
/datasets/git/builtin/name-rev.c:150:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !is_better_name(name, taggerdate, generation, distance, from_tag))
                                                                              ^
                                                                               {
/datasets/git/builtin/name-rev.c:163:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/name-rev.c:164:9: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        size_t len;
               ^
                   = 0
/datasets/git/builtin/name-rev.c:182:13: warning: function 'name_rev' has cognitive complexity of 40 (threshold 25) [readability-function-cognitive-complexity]
static void name_rev(struct commit *start_commit,
            ^
/datasets/git/builtin/name-rev.c:193:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (commit_is_before_cutoff(start_commit))
        ^
/datasets/git/builtin/name-rev.c:198:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!start_name)
        ^
/datasets/git/builtin/name-rev.c:200:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (deref)
        ^
/datasets/git/builtin/name-rev.c:202:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/builtin/name-rev.c:208:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while ((commit = prio_queue_get(&queue))) {
        ^
/datasets/git/builtin/name-rev.c:215:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (parents = commit->parents;
                ^
/datasets/git/builtin/name-rev.c:223:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (commit_is_before_cutoff(parent))
                        ^
/datasets/git/builtin/name-rev.c:226:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (parent_number > 1) {
                        ^
/datasets/git/builtin/name-rev.c:229:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/builtin/name-rev.c:237:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (parent_name) {
                        ^
/datasets/git/builtin/name-rev.c:238:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (parent_number > 1)
                                ^
/datasets/git/builtin/name-rev.c:242:5: note: +1, nesting level increased to 4
                                else
                                ^
/datasets/git/builtin/name-rev.c:244:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                ALLOC_GROW(parents_to_queue,
                                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/builtin/name-rev.c:244:5: note: +5, including nesting penalty of 4, nesting level increased to 5
                                ALLOC_GROW(parents_to_queue,
                                ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/builtin/name-rev.c:244:5: note: +6, including nesting penalty of 5, nesting level increased to 6
                                ALLOC_GROW(parents_to_queue,
                                ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/builtin/name-rev.c:244:5: note: +1, nesting level increased to 6
                                ALLOC_GROW(parents_to_queue,
                                ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/builtin/name-rev.c:253:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (parents_to_queue_nr)
                ^
/datasets/git/builtin/name-rev.c:184:3: warning: 2 adjacent parameters of 'name_rev' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                int from_tag, int deref)
                ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/name-rev.c:184:7: note: the first parameter in the range is 'from_tag'
                int from_tag, int deref)
                    ^~~~~~~~
/datasets/git/builtin/name-rev.c:184:21: note: the last parameter in the range is 'deref'
                int from_tag, int deref)
                                  ^~~~~
/datasets/git/builtin/name-rev.c:187:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/builtin/name-rev.c:189:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t parents_to_queue_nr, parents_to_queue_alloc = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/name-rev.c:189:9: warning: variable 'parents_to_queue_nr' is not initialized [cppcoreguidelines-init-variables]
        size_t parents_to_queue_nr, parents_to_queue_alloc = 0;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/name-rev.c:190:19: warning: variable 'start_name' is not initialized [cppcoreguidelines-init-variables]
        struct rev_name *start_name;
                         ^
                                    = NULL
/datasets/git/builtin/name-rev.c:210:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                struct commit_list *parents;
                ^
/datasets/git/builtin/name-rev.c:193:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (commit_is_before_cutoff(start_commit))
                                                  ^
                                                   {
/datasets/git/builtin/name-rev.c:198:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!start_name)
                        ^
                         {
/datasets/git/builtin/name-rev.c:200:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (deref)
                  ^
                   {
/datasets/git/builtin/name-rev.c:202:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/name-rev.c:205:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&queue, 0, sizeof(queue)); /* Use the prio_queue as LIFO */
        ^~~~~~
/datasets/git/builtin/name-rev.c:205:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&queue, 0, sizeof(queue)); /* Use the prio_queue as LIFO */
        ^~~~~~
/datasets/git/builtin/name-rev.c:208:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'commit' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((commit = prio_queue_get(&queue))) {
               ^
/datasets/git/builtin/name-rev.c:210:23: warning: variable 'parents' is not initialized [cppcoreguidelines-init-variables]
                struct commit_list *parents;
                                    ^
                                            = NULL
/datasets/git/builtin/name-rev.c:216:5: warning: backward branch (for loop) is ID-dependent due to variable reference to 'parents' and may cause performance degradation [altera-id-dependent-backward-branch]
                                parents;
                                ^
/datasets/git/builtin/name-rev.c:219:21: warning: variable 'parent_name' is not initialized [cppcoreguidelines-init-variables]
                        struct rev_name *parent_name;
                                         ^
                                                     = NULL
/datasets/git/builtin/name-rev.c:220:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        int generation, distance;
                        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/name-rev.c:220:8: warning: variable 'generation' is not initialized [cppcoreguidelines-init-variables]
                        int generation, distance;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/name-rev.c:220:20: warning: variable 'distance' is not initialized [cppcoreguidelines-init-variables]
                        int generation, distance;
                                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/name-rev.c:223:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (commit_is_before_cutoff(parent))
                                                            ^
                                                             {
/datasets/git/builtin/name-rev.c:238:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (parent_number > 1)
                                                      ^
                                                       {
/datasets/git/builtin/name-rev.c:242:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                else
                                    ^
                                     {
/datasets/git/builtin/name-rev.c:244:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                ALLOC_GROW(parents_to_queue,
                                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/builtin/name-rev.c:244:5: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                                ALLOC_GROW(parents_to_queue,
                                ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/builtin/name-rev.c:253:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (parents_to_queue_nr)
                ^
/datasets/git/builtin/name-rev.c:253:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (parents_to_queue_nr)
                                           ^
                                            {
/datasets/git/builtin/name-rev.c:262:28: warning: 2 adjacent parameters of 'subpath_matches' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int subpath_matches(const char *path, const char *filter)
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/name-rev.c:262:40: note: the first parameter in the range is 'path'
static int subpath_matches(const char *path, const char *filter)
                                       ^~~~
/datasets/git/builtin/name-rev.c:262:58: note: the last parameter in the range is 'filter'
static int subpath_matches(const char *path, const char *filter)
                                                         ^~~~~~
/datasets/git/builtin/name-rev.c:264:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        const char *subpath = path;
        ^
/datasets/git/builtin/name-rev.c:266:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (subpath) {
        ^
/datasets/git/builtin/name-rev.c:266:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'subpath' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (subpath) {
               ^
/datasets/git/builtin/name-rev.c:267:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!wildmatch(filter, subpath, 0))
                                                   ^
                                                    {
/datasets/git/builtin/name-rev.c:268:11: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        return subpath - path;
                               ^
/datasets/git/builtin/name-rev.c:270:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (subpath)
                            ^
                             {
/datasets/git/builtin/name-rev.c:278:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (shorten_unambiguous)
                                ^
                                 {
/datasets/git/builtin/name-rev.c:280:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (skip_prefix(refname, "refs/heads/", &refname))
                                                               ^
                                                                {
/datasets/git/builtin/name-rev.c:282:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/name-rev.c:287:8: warning: accessing fields in struct 'name_ref_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct name_ref_data {
       ^
/datasets/git/builtin/name-rev.c:287:8: note: use "__attribute__((aligned(128)))" to align struct 'name_ref_data' to 128 bytes
/datasets/git/builtin/name-rev.c:294:15: warning: accessing fields in struct 'tip_table' is inefficient due to padding; only needs 20 bytes but is using 24 bytes [altera-struct-pack-align]
static struct tip_table {
              ^
/datasets/git/builtin/name-rev.c:294:15: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'tip_table'
/datasets/git/builtin/name-rev.c:294:15: warning: accessing fields in struct 'tip_table' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
static struct tip_table {
              ^
/datasets/git/builtin/name-rev.c:294:15: note: use "__attribute__((aligned(32)))" to align struct 'tip_table' to 32 bytes
/datasets/git/builtin/name-rev.c:295:9: warning: accessing fields in struct 'tip_table_entry' is inefficient due to padding; only needs 68 bytes but is using 72 bytes [altera-struct-pack-align]
        struct tip_table_entry {
               ^
/datasets/git/builtin/name-rev.c:295:9: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'tip_table_entry'
/datasets/git/builtin/name-rev.c:295:9: warning: accessing fields in struct 'tip_table_entry' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
        struct tip_table_entry {
               ^
/datasets/git/builtin/name-rev.c:295:9: note: use "__attribute__((aligned(128)))" to align struct 'tip_table_entry' to 128 bytes
/datasets/git/builtin/name-rev.c:306:3: warning: variable 'tip_table' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} tip_table;
  ^
/datasets/git/builtin/name-rev.c:310:9: warning: 3 adjacent parameters of 'add_to_tip_table' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                             timestamp_t taggerdate, int from_tag, int deref)
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/name-rev.c:310:21: note: the first parameter in the range is 'taggerdate'
                             timestamp_t taggerdate, int from_tag, int deref)
                                         ^~~~~~~~~~
/datasets/git/builtin/name-rev.c:310:51: note: the last parameter in the range is 'deref'
                             timestamp_t taggerdate, int from_tag, int deref)
                                                                       ^~~~~
/datasets/git/builtin/name-rev.c:310:9: note: 
                             timestamp_t taggerdate, int from_tag, int deref)
                             ^
/datasets/git/builtin/name-rev.c:310:33: note: 'timestamp_t' and 'int' may be implicitly converted: 'timestamp_t' (as 'unsigned long') -> 'int', 'int' -> 'timestamp_t' (as 'unsigned long')
                             timestamp_t taggerdate, int from_tag, int deref)
                                                     ^
/datasets/git/builtin/name-rev.c:314:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(tip_table.table, tip_table.nr + 1, tip_table.alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/builtin/name-rev.c:325:31: warning: parameter name 'a_' is too short, expected at least 3 characters [readability-identifier-length]
static int tipcmp(const void *a_, const void *b_)
                              ^
/datasets/git/builtin/name-rev.c:325:47: warning: parameter name 'b_' is too short, expected at least 3 characters [readability-identifier-length]
static int tipcmp(const void *a_, const void *b_)
                                              ^
/datasets/git/builtin/name-rev.c:327:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const struct tip_table_entry *a = a_, *b = b_;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/name-rev.c:327:32: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        const struct tip_table_entry *a = a_, *b = b_;
                                      ^
/datasets/git/builtin/name-rev.c:327:41: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        const struct tip_table_entry *a = a_, *b = b_;
                                               ^
/datasets/git/builtin/name-rev.c:331:43: warning: parameter name 'a_' is too short, expected at least 3 characters [readability-identifier-length]
static int cmp_by_tag_and_age(const void *a_, const void *b_)
                                          ^
/datasets/git/builtin/name-rev.c:331:59: warning: parameter name 'b_' is too short, expected at least 3 characters [readability-identifier-length]
static int cmp_by_tag_and_age(const void *a_, const void *b_)
                                                          ^
/datasets/git/builtin/name-rev.c:333:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const struct tip_table_entry *a = a_, *b = b_;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/name-rev.c:333:32: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        const struct tip_table_entry *a = a_, *b = b_;
                                      ^
/datasets/git/builtin/name-rev.c:333:41: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        const struct tip_table_entry *a = a_, *b = b_;
                                               ^
/datasets/git/builtin/name-rev.c:334:6: warning: variable 'cmp' is not initialized [cppcoreguidelines-init-variables]
        int cmp;
            ^
                = 0
/datasets/git/builtin/name-rev.c:338:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cmp)
                ^
                 {
/datasets/git/builtin/name-rev.c:342:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (a->taggerdate < b->taggerdate)
                                          ^
                                           {
/datasets/git/builtin/name-rev.c:347:12: warning: function 'name_ref' has cognitive complexity of 27 (threshold 25) [readability-function-cognitive-complexity]
static int name_ref(const char *path, const struct object_id *oid,
           ^
/datasets/git/builtin/name-rev.c:352:46: note: +1
        int can_abbreviate_output = data->tags_only && data->name_only;
                                                    ^
/datasets/git/builtin/name-rev.c:358:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (data->tags_only && !starts_with(path, "refs/tags/"))
        ^
/datasets/git/builtin/name-rev.c:358:22: note: +1
        if (data->tags_only && !starts_with(path, "refs/tags/"))
                            ^
/datasets/git/builtin/name-rev.c:361:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (data->exclude_filters.nr) {
        ^
/datasets/git/builtin/name-rev.c:364:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for_each_string_list_item(item, &data->exclude_filters) {
                ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/name-rev.c:364:3: note: +1
                for_each_string_list_item(item, &data->exclude_filters) {
                ^
/datasets/git/./string-list.h:152:12: note: expanded from macro 'for_each_string_list_item'
             item && item < (list)->items + (list)->nr; \
                  ^
/datasets/git/builtin/name-rev.c:365:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (subpath_matches(path, item->string) >= 0)
                        ^
/datasets/git/builtin/name-rev.c:370:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (data->ref_filters.nr) {
        ^
/datasets/git/builtin/name-rev.c:375:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for_each_string_list_item(item, &data->ref_filters) {
                ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/name-rev.c:375:3: note: +1
                for_each_string_list_item(item, &data->ref_filters) {
                ^
/datasets/git/./string-list.h:152:12: note: expanded from macro 'for_each_string_list_item'
             item && item < (list)->items + (list)->nr; \
                  ^
/datasets/git/builtin/name-rev.c:386:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        switch (subpath_matches(path, item->string)) {
                        ^
/datasets/git/builtin/name-rev.c:400:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!matched)
                ^
/datasets/git/builtin/name-rev.c:404:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (o && o->type == OBJ_TAG) {
        ^
/datasets/git/builtin/name-rev.c:404:11: note: +1
        while (o && o->type == OBJ_TAG) {
                 ^
/datasets/git/builtin/name-rev.c:406:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!t->tagged)
                ^
/datasets/git/builtin/name-rev.c:412:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (o && o->type == OBJ_COMMIT) {
        ^
/datasets/git/builtin/name-rev.c:412:8: note: +1
        if (o && o->type == OBJ_COMMIT) {
              ^
/datasets/git/builtin/name-rev.c:415:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (taggerdate == TIME_MAX)
                ^
/datasets/git/builtin/name-rev.c:350:17: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
        struct object *o = parse_object(the_repository, oid);
                       ^
/datasets/git/builtin/name-rev.c:362:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                struct string_list_item *item;
                ^
/datasets/git/builtin/name-rev.c:358:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (data->tags_only && !starts_with(path, "refs/tags/"))
                                                                ^
                                                                 {
/datasets/git/builtin/name-rev.c:362:28: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
                struct string_list_item *item;
                                         ^
                                              = NULL
/datasets/git/builtin/name-rev.c:364:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for_each_string_list_item(item, &data->exclude_filters) {
                ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/name-rev.c:364:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
                for_each_string_list_item(item, &data->exclude_filters) {
                                          ^
/datasets/git/builtin/name-rev.c:365:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (subpath_matches(path, item->string) >= 0)
                                                                     ^
                                                                      {
/datasets/git/builtin/name-rev.c:371:28: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
                struct string_list_item *item;
                                         ^
                                              = NULL
/datasets/git/builtin/name-rev.c:375:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for_each_string_list_item(item, &data->ref_filters) {
                ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/name-rev.c:375:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
                for_each_string_list_item(item, &data->ref_filters) {
                                          ^
/datasets/git/builtin/name-rev.c:400:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!matched)
                             ^
                              {
/datasets/git/builtin/name-rev.c:404:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (o && o->type == OBJ_TAG) {
        ^
/datasets/git/builtin/name-rev.c:404:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'o' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (o && o->type == OBJ_TAG) {
               ^
/datasets/git/builtin/name-rev.c:405:15: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
                struct tag *t = (struct tag *) o;
                            ^
/datasets/git/builtin/name-rev.c:406:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!t->tagged)
                               ^
                                {
/datasets/git/builtin/name-rev.c:415:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (taggerdate == TIME_MAX)
                                           ^
                                            {
/datasets/git/builtin/name-rev.c:426:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/name-rev.c:426:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/name-rev.c:433:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < tip_table.nr; i++) {
        ^
/datasets/git/builtin/name-rev.c:434:27: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                struct tip_table_entry *e = &tip_table.table[i];
                                        ^
/datasets/git/builtin/name-rev.c:442:57: warning: parameter name 'ix' is too short, expected at least 3 characters [readability-identifier-length]
static const struct object_id *nth_tip_table_ent(size_t ix, const void *table_)
                                                        ^
/datasets/git/builtin/name-rev.c:448:61: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static const char *get_exact_ref_match(const struct object *o)
                                                            ^
/datasets/git/builtin/name-rev.c:450:6: warning: variable 'found' is not initialized [cppcoreguidelines-init-variables]
        int found;
            ^
                  = 0
/datasets/git/builtin/name-rev.c:452:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!tip_table.table || !tip_table.nr)
                                              ^
                                               {
/datasets/git/builtin/name-rev.c:462:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (0 <= found)
                       ^
                        {
/datasets/git/builtin/name-rev.c:468:54: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static const char *get_rev_name(const struct object *o, struct strbuf *buf)
                                                     ^
/datasets/git/builtin/name-rev.c:470:19: warning: variable 'n' is not initialized [cppcoreguidelines-init-variables]
        struct rev_name *n;
                         ^
                           = NULL
/datasets/git/builtin/name-rev.c:470:19: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/name-rev.c:471:23: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        const struct commit *c;
                             ^
                               = NULL
/datasets/git/builtin/name-rev.c:471:23: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/name-rev.c:473:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (o->type != OBJ_COMMIT)
                                  ^
                                   {
/datasets/git/builtin/name-rev.c:477:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!n)
               ^
                {
/datasets/git/builtin/name-rev.c:480:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!n->generation)
                           ^
                            {
/datasets/git/builtin/name-rev.c:482:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else {
        ^~~~~~
/datasets/git/builtin/name-rev.c:493:9: warning: 3 adjacent parameters of 'show_name' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                      int always, int allow_undefined, int name_only)
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/name-rev.c:493:13: note: the first parameter in the range is 'always'
                      int always, int allow_undefined, int name_only)
                          ^~~~~~
/datasets/git/builtin/name-rev.c:493:46: note: the last parameter in the range is 'name_only'
                      int always, int allow_undefined, int name_only)
                                                           ^~~~~~~~~
/datasets/git/builtin/name-rev.c:495:14: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
        const char *name;
                    ^
                         = NULL
/datasets/git/builtin/name-rev.c:499:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!name_only)
                       ^
                        {
/datasets/git/builtin/name-rev.c:502:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (name)
                 ^
                  {
/datasets/git/builtin/name-rev.c:504:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (allow_undefined)
                                 ^
                                  {
/datasets/git/builtin/name-rev.c:506:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (always)
                        ^
                         {
/datasets/git/builtin/name-rev.c:508:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/name-rev.c:520:33: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static void name_rev_line(char *p, struct name_ref_data *data)
                                ^
/datasets/git/builtin/name-rev.c:524:8: warning: variable 'p_start' is not initialized [cppcoreguidelines-init-variables]
        char *p_start;
              ^
                      = NULL
/datasets/git/builtin/name-rev.c:527:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p_start = p; *p; p++) {
        ^
/datasets/git/builtin/name-rev.c:529:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!ishex(*p))
                     ^
/datasets/git/builtin/name-rev.c:528:19: note: expanded from macro 'ishex'
#define ishex(x) (isdigit((x)) || ((x) >= 'a' && (x) <= 'f'))
                  ^~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/builtin/name-rev.c:529:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ishex(*p))
                               ^
                                {
/datasets/git/builtin/name-rev.c:532:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         !ishex(*(p+1))) {
                          ^
/datasets/git/builtin/name-rev.c:528:19: note: expanded from macro 'ishex'
#define ishex(x) (isdigit((x)) || ((x) >= 'a' && (x) <= 'f'))
                  ^~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/builtin/name-rev.c:535:9: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                        char c = *(p+1);
                             ^
/datasets/git/builtin/name-rev.c:536:16: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        int p_len = p - p_start + 1;
                                    ^
/datasets/git/builtin/name-rev.c:542:20: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                                struct object *o =
                                               ^
/datasets/git/builtin/name-rev.c:544:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (o)
                                      ^
                                       {
/datasets/git/builtin/name-rev.c:549:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!name)
                                  ^
                                   {
/datasets/git/builtin/name-rev.c:552:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (data->name_only)
                                            ^
                                             {
/datasets/git/builtin/name-rev.c:554:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/builtin/name-rev.c:561:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (p_start != p)
                         ^
                          {
/datasets/git/builtin/name-rev.c:562:3: warning: the value returned by this function should be used [cert-err33-c]
                fwrite(p_start, p - p_start, 1, stdout);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/name-rev.c:562:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/name-rev.c:567:5: warning: function 'cmd_name_rev' has cognitive complexity of 36 (threshold 25) [readability-function-cognitive-complexity]
int cmd_name_rev(int argc, const char **argv, const char *prefix)
    ^
/datasets/git/builtin/name-rev.c:599:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (transform_stdin) {
        ^
/datasets/git/builtin/name-rev.c:606:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (all + annotate_stdin + !!argc > 1) {
        ^
/datasets/git/builtin/name-rev.c:610:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (all || annotate_stdin)
        ^
/datasets/git/builtin/name-rev.c:610:10: note: +1
        if (all || annotate_stdin)
                ^
/datasets/git/builtin/name-rev.c:613:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (; argc; argc--, argv++) {
        ^
/datasets/git/builtin/name-rev.c:618:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (get_oid(*argv, &oid)) {
                ^
/datasets/git/builtin/name-rev.c:626:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (object) {
                ^
/datasets/git/builtin/name-rev.c:629:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (peeled && peeled->type == OBJ_COMMIT)
                        ^
/datasets/git/builtin/name-rev.c:629:15: note: +1
                        if (peeled && peeled->type == OBJ_COMMIT)
                                   ^
/datasets/git/builtin/name-rev.c:633:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!object) {
                ^
/datasets/git/builtin/name-rev.c:639:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (commit)
                ^
/datasets/git/builtin/name-rev.c:642:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (peel_tag) {
                ^
/datasets/git/builtin/name-rev.c:643:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!commit) {
                        ^
/datasets/git/builtin/name-rev.c:658:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (annotate_stdin) {
        ^
/datasets/git/builtin/name-rev.c:661:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (strbuf_getline(&sb, stdin) != EOF) {
                ^
/datasets/git/builtin/name-rev.c:666:9: note: +1, nesting level increased to 1
        } else if (all) {
               ^
/datasets/git/builtin/name-rev.c:670:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < max; i++) {
                ^
/datasets/git/builtin/name-rev.c:672:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!obj || obj->type != OBJ_COMMIT)
                        ^
/datasets/git/builtin/name-rev.c:672:13: note: +1
                        if (!obj || obj->type != OBJ_COMMIT)
                                 ^
/datasets/git/builtin/name-rev.c:677:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/name-rev.c:679:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < revs.nr; i++)
                ^
/datasets/git/builtin/name-rev.c:684:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        UNLEAK(revs);
        ^
/datasets/git/./git-compat-util.h:1544:21: note: expanded from macro 'UNLEAK'
#define UNLEAK(var) do {} while (0)
                    ^
/datasets/git/builtin/name-rev.c:570:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int all = 0, annotate_stdin = 0, transform_stdin = 0, allow_undefined = 1, always = 0, peel_tag = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/name-rev.c:573:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "name-only", &data.name_only, N_("print only ref-based names (no object names)")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/name-rev.c:574:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "tags", &data.tags_only, N_("only use tags to name the commits")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/name-rev.c:580:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "all", &all, N_("list all commits reachable from all refs")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/name-rev.c:581:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "stdin", &transform_stdin, N_("deprecated: use --annotate-stdin instead")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/name-rev.c:582:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "annotate-stdin", &annotate_stdin, N_("annotate text from stdin")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/name-rev.c:583:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "undefined", &allow_undefined, N_("allow to print `undefined` names (default)")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/name-rev.c:584:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "always",     &always,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/name-rev.c:590:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        PARSE_OPT_NOARG | PARSE_OPT_HIDDEN, NULL, 1,
                        ^~~~~~~~~~~~~~~
/datasets/git/builtin/name-rev.c:610:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (all || annotate_stdin)
                                  ^
                                   {
/datasets/git/builtin/name-rev.c:613:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; argc; argc--, argv++) {
        ^
/datasets/git/builtin/name-rev.c:613:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'argc' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; argc; argc--, argv++) {
               ^
/datasets/git/builtin/name-rev.c:615:18: warning: variable 'object' is not initialized [cppcoreguidelines-init-variables]
                struct object *object;
                               ^
                                      = NULL
/datasets/git/builtin/name-rev.c:616:18: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
                struct commit *commit;
                               ^
                                      = NULL
/datasets/git/builtin/name-rev.c:619:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, "Could not get sha1 for %s. Skipping.\n",
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/name-rev.c:619:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/name-rev.c:629:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (peeled && peeled->type == OBJ_COMMIT)
                                                                 ^
                                                                  {
/datasets/git/builtin/name-rev.c:634:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, "Could not get object for %s. Skipping.\n",
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/name-rev.c:634:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/name-rev.c:639:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (commit)
                           ^
                            {
/datasets/git/builtin/name-rev.c:644:5: warning: the value returned by this function should be used [cert-err33-c]
                                fprintf(stderr, "Could not get commit for %s. Skipping.\n",
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/name-rev.c:644:5: note: cast the expression to void to silence this warning
/datasets/git/builtin/name-rev.c:659:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                struct strbuf sb = STRBUF_INIT;
                ^
/datasets/git/builtin/name-rev.c:659:17: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                struct strbuf sb = STRBUF_INIT;
                              ^
/datasets/git/builtin/name-rev.c:661:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (strbuf_getline(&sb, stdin) != EOF) {
                ^
/datasets/git/builtin/name-rev.c:661:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'sb' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (strbuf_getline(&sb, stdin) != EOF) {
                       ^
/datasets/git/builtin/name-rev.c:667:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int i, max;
                ^~~~~~~~~~~
/datasets/git/builtin/name-rev.c:667:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i, max;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/name-rev.c:667:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/name-rev.c:667:10: warning: variable 'max' is not initialized [cppcoreguidelines-init-variables]
                int i, max;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/name-rev.c:669:9: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                max = get_max_object_index();
                      ^
/datasets/git/builtin/name-rev.c:670:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < max; i++) {
                ^
/datasets/git/builtin/name-rev.c:672:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!obj || obj->type != OBJ_COMMIT)
                                                            ^
                                                             {
/datasets/git/builtin/name-rev.c:678:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/builtin/name-rev.c:678:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/name-rev.c:679:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < revs.nr; i++)
                ^
/datasets/git/builtin/name-rev.c:679:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < revs.nr; i++)
                                             ^
                                              {
/datasets/git/builtin/name-rev.c:684:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        UNLEAK(revs);
        ^
/datasets/git/./git-compat-util.h:1544:21: note: expanded from macro 'UNLEAK'
#define UNLEAK(var) do {} while (0)
                    ^
/datasets/git/builtin/notes.c:11:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "blob.h"
/datasets/git/builtin/notes.c:99:8: warning: accessing fields in struct 'note_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct note_data {
       ^
/datasets/git/builtin/notes.c:99:8: note: use "__attribute__((aligned(64)))" to align struct 'note_data' to 64 bytes
/datasets/git/builtin/notes.c:106:46: warning: parameter name 'd' is too short, expected at least 3 characters [readability-identifier-length]
static void free_note_data(struct note_data *d)
                                             ^
/datasets/git/builtin/notes.c:116:43: warning: parameter 'note_path' is unused [misc-unused-parameters]
                const struct object_id *note_oid, char *note_path,
                                                        ^
/datasets/git/builtin/notes.c:117:9: warning: parameter 'cb_data' is unused [misc-unused-parameters]
                void *cb_data)
                      ^
/datasets/git/builtin/notes.c:123:32: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
static void copy_obj_to_fd(int fd, const struct object_id *oid)
                               ^
/datasets/git/builtin/notes.c:125:16: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size;
                      ^
                           = 0
/datasets/git/builtin/notes.c:126:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/builtin/notes.c:129:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (size)
                         ^
                          {
/datasets/git/builtin/notes.c:135:40: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
static void write_commented_object(int fd, const struct object_id *object)
                                       ^
/datasets/git/builtin/notes.c:148:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (start_command(&show))
                                 ^
                                  {
/datasets/git/builtin/notes.c:152:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strbuf_read(&buf, show.out, 0) < 0)
                                               ^
                                                {
/datasets/git/builtin/notes.c:160:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (finish_command(&show))
                                  ^
                                   {
/datasets/git/builtin/notes.c:165:81: warning: parameter name 'd' is too short, expected at least 3 characters [readability-identifier-length]
static void prepare_note_data(const struct object_id *object, struct note_data *d,
                                                                                ^
/datasets/git/builtin/notes.c:169:7: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
                int fd;
                    ^
                       = 0
/datasets/git/builtin/notes.c:169:7: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/notes.c:174:58: warning: 0600 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                fd = xopen(d->edit_path, O_CREAT | O_TRUNC | O_WRONLY, 0600);
                                                                       ^
/datasets/git/builtin/notes.c:176:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (d->given)
                             ^
                              {
/datasets/git/builtin/notes.c:178:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (old_note)
                                  ^
                                   {
/datasets/git/builtin/notes.c:200:47: warning: parameter name 'd' is too short, expected at least 3 characters [readability-identifier-length]
static void write_note_data(struct note_data *d, struct object_id *oid)
                                              ^
/datasets/git/builtin/notes.c:205:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (d->edit_path)
                                 ^
                                  {
/datasets/git/builtin/notes.c:208:3: warning: function is not thread safe [concurrency-mt-unsafe]
                exit(status);
                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/notes.c:214:20: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
        struct note_data *d = opt->value;
                          ^
/datasets/git/builtin/notes.c:216:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/notes.c:219:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (d->buf.len)
                       ^
                        {
/datasets/git/builtin/notes.c:230:20: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
        struct note_data *d = opt->value;
                          ^
/datasets/git/builtin/notes.c:232:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/notes.c:234:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (d->buf.len)
                       ^
                        {
/datasets/git/builtin/notes.c:237:31: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (strbuf_read(&d->buf, 0, 1024) < 0)
                                            ^
/datasets/git/builtin/notes.c:237:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strbuf_read(&d->buf, 0, 1024) < 0)
                                                      ^
                                                       {
/datasets/git/builtin/notes.c:239:44: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        } else if (strbuf_read_file(&d->buf, arg, 1024) < 0)
                                                  ^
/datasets/git/builtin/notes.c:239:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else if (strbuf_read_file(&d->buf, arg, 1024) < 0)
                                                            ^
                                                             {
/datasets/git/builtin/notes.c:249:20: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
        struct note_data *d = opt->value;
                          ^
/datasets/git/builtin/notes.c:250:8: warning: variable 'buf' is not initialized [cppcoreguidelines-init-variables]
        char *buf;
              ^
                  = NULL
/datasets/git/builtin/notes.c:252:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/builtin/notes.c:253:16: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        unsigned long len;
                      ^
                          = 0
/datasets/git/builtin/notes.c:255:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/notes.c:257:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (d->buf.len)
                       ^
                        {
/datasets/git/builtin/notes.c:260:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid(arg, &object))
                                  ^
                                   {
/datasets/git/builtin/notes.c:262:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if (!(buf = read_object_file(&object, &type, &len)))
              ^
/datasets/git/builtin/notes.c:262:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/builtin/notes.c:262:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/builtin/notes.c:262:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(buf = read_object_file(&object, &type, &len)))
                                                            ^
                                                             {
/datasets/git/builtin/notes.c:277:20: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
        struct note_data *d = opt->value;
                          ^
/datasets/git/builtin/notes.c:285:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct strbuf buf = STRBUF_INIT;
        ^
/datasets/git/builtin/notes.c:278:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/notes.c:286:28: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        struct notes_rewrite_cfg *c = NULL;
                                  ^
/datasets/git/builtin/notes.c:287:21: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
        struct notes_tree *t = NULL;
                           ^
/datasets/git/builtin/notes.c:293:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!c)
                       ^
                        {
/datasets/git/builtin/notes.c:300:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (strbuf_getline_lf(&buf, stdin) != EOF) {
        ^
/datasets/git/builtin/notes.c:300:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'buf' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (strbuf_getline_lf(&buf, stdin) != EOF) {
               ^
/datasets/git/builtin/notes.c:301:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                struct object_id from_obj, to_obj;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/notes.c:302:19: warning: variable 'split' is not initialized [cppcoreguidelines-init-variables]
                struct strbuf **split;
                                ^
                                      = NULL
/datasets/git/builtin/notes.c:303:7: warning: variable 'err' is not initialized [cppcoreguidelines-init-variables]
                int err;
                    ^
                        = 0
/datasets/git/builtin/notes.c:306:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!split[0] || !split[1])
                                           ^
                                            {
/datasets/git/builtin/notes.c:310:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (get_oid(split[0]->buf, &from_obj))
                                                      ^
                                                       {
/datasets/git/builtin/notes.c:312:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (get_oid(split[1]->buf, &to_obj))
                                                    ^
                                                     {
/datasets/git/builtin/notes.c:315:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (rewrite_cmd)
                                ^
                                 {
/datasets/git/builtin/notes.c:317:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/notes.c:343:21: warning: variable 't' is not initialized [cppcoreguidelines-init-variables]
        struct notes_tree *t;
                           ^
                             = NULL
/datasets/git/builtin/notes.c:343:21: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/notes.c:344:14: warning: variable 'ref' is not initialized [cppcoreguidelines-init-variables]
        const char *ref;
                    ^
                        = NULL
/datasets/git/builtin/notes.c:348:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ref = (flags & NOTES_INIT_WRITABLE) ? t->update_ref : t->ref;
               ^~~~~
/datasets/git/builtin/notes.c:349:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!starts_with(ref, "refs/notes/"))
                                             ^
                                              {
/datasets/git/builtin/notes.c:361:21: warning: variable 't' is not initialized [cppcoreguidelines-init-variables]
        struct notes_tree *t;
                           ^
                             = NULL
/datasets/git/builtin/notes.c:361:21: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/notes.c:363:26: warning: variable 'note' is not initialized [cppcoreguidelines-init-variables]
        const struct object_id *note;
                                ^
                                     = NULL
/datasets/git/builtin/notes.c:369:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc)
                 ^
                  {
/datasets/git/builtin/notes.c:380:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (get_oid(argv[0], &object))
                                              ^
                                               {
/datasets/git/builtin/notes.c:386:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/builtin/notes.c:389:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/builtin/notes.c:400:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int force = 0, allow_empty = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/notes.c:401:14: warning: variable 'object_ref' is not initialized [cppcoreguidelines-init-variables]
        const char *object_ref;
                    ^
                               = NULL
/datasets/git/builtin/notes.c:402:21: warning: variable 't' is not initialized [cppcoreguidelines-init-variables]
        struct notes_tree *t;
                           ^
                             = NULL
/datasets/git/builtin/notes.c:402:21: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/notes.c:403:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct object_id object, new_note;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/notes.c:404:26: warning: variable 'note' is not initialized [cppcoreguidelines-init-variables]
        const struct object_id *note;
                                ^
                                     = NULL
/datasets/git/builtin/notes.c:405:19: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
        struct note_data d = { 0, 0, NULL, STRBUF_INIT };
                         ^
/datasets/git/builtin/notes.c:419:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "allow-empty", &allow_empty,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/notes.c:421:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__FORCE(&force, N_("replace existing notes"), PARSE_OPT_NOCOMPLETE),
                ^
/datasets/git/./parse-options.h:367:31: note: expanded from macro 'OPT__FORCE'
#define OPT__FORCE(var, h, f) OPT_COUNTUP_F('f', "force",   (var), (h), (f))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/notes.c:435:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid(object_ref, &object))
                                         ^
                                          {
/datasets/git/builtin/notes.c:461:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, _("Overwriting existing notes for object %s\n"),
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/notes.c:461:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/notes.c:468:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (add_note(t, &object, &new_note, combine_notes_overwrite))
                                                                             ^
                                                                              {
/datasets/git/builtin/notes.c:473:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, _("Removing note for object %s\n"),
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/notes.c:473:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/notes.c:487:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int retval = 0, force = 0, from_stdin = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/notes.c:488:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const struct object_id *from_note, *note;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/notes.c:488:26: warning: variable 'from_note' is not initialized [cppcoreguidelines-init-variables]
        const struct object_id *from_note, *note;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/notes.c:488:38: warning: variable 'note' is not initialized [cppcoreguidelines-init-variables]
        const struct object_id *from_note, *note;
                                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/notes.c:489:14: warning: variable 'object_ref' is not initialized [cppcoreguidelines-init-variables]
        const char *object_ref;
                    ^
                               = NULL
/datasets/git/builtin/notes.c:490:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct object_id object, from_obj;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/notes.c:491:21: warning: variable 't' is not initialized [cppcoreguidelines-init-variables]
        struct notes_tree *t;
                           ^
                             = NULL
/datasets/git/builtin/notes.c:491:21: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/notes.c:494:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__FORCE(&force, N_("replace existing notes"), PARSE_OPT_NOCOMPLETE),
                ^
/datasets/git/./parse-options.h:367:31: note: expanded from macro 'OPT__FORCE'
#define OPT__FORCE(var, h, f) OPT_COUNTUP_F('f', "force",   (var), (h), (f))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/notes.c:495:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "stdin", &from_stdin, N_("read objects from stdin")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/notes.c:523:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid(argv[0], &from_obj))
                                        ^
                                         {
/datasets/git/builtin/notes.c:528:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid(object_ref, &object))
                                         ^
                                          {
/datasets/git/builtin/notes.c:542:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, _("Overwriting existing notes for object %s\n"),
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/notes.c:542:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/notes.c:553:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (add_note(t, &object, from_note, combine_notes_overwrite))
                                                                     ^
                                                                      {
/datasets/git/builtin/notes.c:565:14: warning: variable 'object_ref' is not initialized [cppcoreguidelines-init-variables]
        const char *object_ref;
                    ^
                               = NULL
/datasets/git/builtin/notes.c:566:21: warning: variable 't' is not initialized [cppcoreguidelines-init-variables]
        struct notes_tree *t;
                           ^
                             = NULL
/datasets/git/builtin/notes.c:566:21: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/notes.c:567:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct object_id object, new_note;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/notes.c:568:26: warning: variable 'note' is not initialized [cppcoreguidelines-init-variables]
        const struct object_id *note;
                                ^
                                     = NULL
/datasets/git/builtin/notes.c:569:8: warning: variable 'logmsg' is not initialized [cppcoreguidelines-init-variables]
        char *logmsg;
              ^
                     = NULL
/datasets/git/builtin/notes.c:570:22: warning: variable 'usage' is not initialized [cppcoreguidelines-init-variables]
        const char * const *usage;
                            ^
                                  = NULL
/datasets/git/builtin/notes.c:571:19: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
        struct note_data d = { 0, 0, NULL, STRBUF_INIT };
                         ^
/datasets/git/builtin/notes.c:585:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "allow-empty", &allow_empty,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/notes.c:600:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (d.given && edit)
                            ^
                             {
/datasets/git/builtin/notes.c:601:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, _("The -m/-F/-c/-C options have been deprecated "
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/notes.c:601:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/notes.c:607:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid(object_ref, &object))
                                         ^
                                          {
/datasets/git/builtin/notes.c:617:17: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
                unsigned long size;
                              ^
                                   = 0
/datasets/git/builtin/notes.c:618:20: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
                enum object_type type;
                                 ^
/datasets/git/builtin/notes.c:622:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (d.buf.len && prev_buf && size)
                                                  ^
                                                   {
/datasets/git/builtin/notes.c:624:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (prev_buf && size)
                                     ^
                                      {
/datasets/git/builtin/notes.c:631:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (add_note(t, &object, &new_note, combine_notes_overwrite))
                                                                             ^
                                                                              {
/datasets/git/builtin/notes.c:635:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, _("Removing note for object %s\n"),
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/notes.c:635:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/notes.c:650:14: warning: variable 'object_ref' is not initialized [cppcoreguidelines-init-variables]
        const char *object_ref;
                    ^
                               = NULL
/datasets/git/builtin/notes.c:651:21: warning: variable 't' is not initialized [cppcoreguidelines-init-variables]
        struct notes_tree *t;
                           ^
                             = NULL
/datasets/git/builtin/notes.c:651:21: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/notes.c:653:26: warning: variable 'note' is not initialized [cppcoreguidelines-init-variables]
        const struct object_id *note;
                                ^
                                     = NULL
/datasets/git/builtin/notes.c:654:6: warning: variable 'retval' is not initialized [cppcoreguidelines-init-variables]
        int retval;
            ^
                   = 0
/datasets/git/builtin/notes.c:669:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid(object_ref, &object))
                                         ^
                                          {
/datasets/git/builtin/notes.c:675:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!note)
                  ^
                   {
/datasets/git/builtin/notes.c:686:52: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static int merge_abort(struct notes_merge_options *o)
                                                   ^
/datasets/git/builtin/notes.c:695:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (delete_ref(NULL, "NOTES_MERGE_PARTIAL", NULL, 0))
                                                             ^
                                                              {
/datasets/git/builtin/notes.c:697:48: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (delete_ref(NULL, "NOTES_MERGE_REF", NULL, REF_NO_DEREF))
                                                      ^
/datasets/git/./refs.h:631:23: note: expanded from macro 'REF_NO_DEREF'
#define REF_NO_DEREF (1 << 0)
                      ^
/datasets/git/builtin/notes.c:697:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (delete_ref(NULL, "NOTES_MERGE_REF", NULL, REF_NO_DEREF))
                                                                    ^
                                                                     {
/datasets/git/builtin/notes.c:699:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (notes_merge_abort(o))
                                 ^
                                  {
/datasets/git/builtin/notes.c:704:53: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static int merge_commit(struct notes_merge_options *o)
                                                    ^
/datasets/git/builtin/notes.c:707:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct object_id oid, parent_oid;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/notes.c:708:21: warning: variable 't' is not initialized [cppcoreguidelines-init-variables]
        struct notes_tree *t;
                           ^
                             = NULL
/datasets/git/builtin/notes.c:708:21: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/notes.c:709:17: warning: variable 'partial' is not initialized [cppcoreguidelines-init-variables]
        struct commit *partial;
                       ^
                               = NULL
/datasets/git/builtin/notes.c:711:8: warning: variable 'local_ref_to_free' is not initialized [cppcoreguidelines-init-variables]
        void *local_ref_to_free;
              ^
                                = NULL
/datasets/git/builtin/notes.c:712:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/builtin/notes.c:719:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid("NOTES_MERGE_PARTIAL", &oid))
                                                 ^
                                                  {
/datasets/git/builtin/notes.c:721:13: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        else if (!(partial = lookup_commit_reference(the_repository, &oid)))
                   ^
/datasets/git/builtin/notes.c:721:13: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/builtin/notes.c:721:13: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/builtin/notes.c:721:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!(partial = lookup_commit_reference(the_repository, &oid)))
                                                                            ^
                                                                             {
/datasets/git/builtin/notes.c:723:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (parse_commit(partial))
                                       ^
                                        {
/datasets/git/builtin/notes.c:726:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (partial->parents)
                             ^
                              {
/datasets/git/builtin/notes.c:728:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/notes.c:736:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!o->local_ref)
                          ^
                           {
/datasets/git/builtin/notes.c:739:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (notes_merge_commit(o, t, partial, &oid))
                                                    ^
                                                     {
/datasets/git/builtin/notes.c:743:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&pretty_ctx, 0, sizeof(pretty_ctx));
        ^~~~~~
/datasets/git/builtin/notes.c:743:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&pretty_ctx, 0, sizeof(pretty_ctx));
        ^~~~~~
/datasets/git/builtin/notes.c:761:8: warning: variable 'value' is not initialized [cppcoreguidelines-init-variables]
        char *value;
              ^
                    = NULL
/datasets/git/builtin/notes.c:763:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (git_config_get_string(key, &value))
                                               ^
                                                {
/datasets/git/builtin/notes.c:765:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_notes_merge_strategy(value, strategy))
                                                        ^
                                                         {
/datasets/git/builtin/notes.c:774:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct strbuf remote_ref = STRBUF_INIT, msg = STRBUF_INIT;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/notes.c:776:21: warning: variable 't' is not initialized [cppcoreguidelines-init-variables]
        struct notes_tree *t;
                           ^
                             = NULL
/datasets/git/builtin/notes.c:776:21: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/notes.c:777:29: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
        struct notes_merge_options o;
                                   ^
/datasets/git/builtin/notes.c:778:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int do_merge = 0, do_commit = 0, do_abort = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/notes.c:779:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int verbosity = 0, result;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/notes.c:779:21: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        int verbosity = 0, result;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/notes.c:789:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT_F(0, "commit", &do_commit,
                ^
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/notes.c:793:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT_F(0, "abort", &do_abort,
                ^
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/notes.c:802:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strategy || do_commit + do_abort == 0)
                                                  ^
                                                   {
/datasets/git/builtin/notes.c:820:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (do_abort)
                     ^
                      {
/datasets/git/builtin/notes.c:822:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (do_commit)
                      ^
                       {
/datasets/git/builtin/notes.c:841:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!skip_prefix(o.local_ref, "refs/notes/", &short_ref))
                                                                         ^
                                                                          {
/datasets/git/builtin/notes.c:847:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (git_config_get_notes_strategy(merge_key.buf, &o.strategy))
                                                                              ^
                                                                               {
/datasets/git/builtin/notes.c:855:40: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        strbuf_add(&(o.commit_msg), msg.buf + 7, msg.len - 7); /* skip "notes: " */
                                              ^
/datasets/git/builtin/notes.c:855:53: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        strbuf_add(&(o.commit_msg), msg.buf + 7, msg.len - 7); /* skip "notes: " */
                                                           ^
/datasets/git/builtin/notes.c:859:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (result >= 0) /* Merge resulted (trivially) in result_oid */
                        ^
                         {
/datasets/git/builtin/notes.c:864:21: warning: variable 'worktrees' is not initialized [cppcoreguidelines-init-variables]
                struct worktree **worktrees;
                                  ^
                                            = NULL
/datasets/git/builtin/notes.c:865:26: warning: variable 'wt' is not initialized [cppcoreguidelines-init-variables]
                const struct worktree *wt;
                                       ^
                                          = NULL
/datasets/git/builtin/notes.c:865:26: warning: variable name 'wt' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/notes.c:873:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (wt)
                       ^
                        {
/datasets/git/builtin/notes.c:877:67: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (create_symref("NOTES_MERGE_REF", default_notes_ref(), NULL))
                                                                                ^
                                                                                 {
/datasets/git/builtin/notes.c:880:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, _("Automatic notes merge failed. Fix conflicts in %s "
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/notes.c:880:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/notes.c:894:47: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
static int remove_one_note(struct notes_tree *t, const char *name, unsigned flag)
                                              ^
/datasets/git/builtin/notes.c:896:6: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int status;
            ^
                   = 0
/datasets/git/builtin/notes.c:898:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid(name, &oid))
                                ^
                                 {
/datasets/git/builtin/notes.c:901:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (status)
                   ^
                    {
/datasets/git/builtin/notes.c:902:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, _("Object %s has no note\n"), name);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/notes.c:902:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/notes.c:903:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/notes.c:904:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, _("Removing note for object %s\n"), name);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/notes.c:904:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/notes.c:905:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return (flag & IGNORE_MISSING) ? 0 : status;
                ^
/datasets/git/builtin/notes.c:913:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT(0, "ignore-missing", &flag,
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/notes.c:916:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "stdin", &from_stdin,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/notes.c:920:21: warning: variable 't' is not initialized [cppcoreguidelines-init-variables]
        struct notes_tree *t;
                           ^
                             = NULL
/datasets/git/builtin/notes.c:920:21: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/notes.c:931:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (*argv) {
                ^
/datasets/git/builtin/notes.c:932:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        retval |= remove_one_note(t, *argv, flag);
                        ^~~~~~
/datasets/git/builtin/notes.c:937:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                struct strbuf sb = STRBUF_INIT;
                ^
/datasets/git/builtin/notes.c:937:17: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                struct strbuf sb = STRBUF_INIT;
                              ^
/datasets/git/builtin/notes.c:938:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (strbuf_getwholeline(&sb, stdin, '\n') != EOF) {
                ^
/datasets/git/builtin/notes.c:938:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'sb' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (strbuf_getwholeline(&sb, stdin, '\n') != EOF) {
                       ^
/datasets/git/builtin/notes.c:940:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        retval |= remove_one_note(t, sb.buf, flag);
                        ^~~~~~
/datasets/git/builtin/notes.c:944:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!retval)
                    ^
                     {
/datasets/git/builtin/notes.c:953:21: warning: variable 't' is not initialized [cppcoreguidelines-init-variables]
        struct notes_tree *t;
                           ^
                             = NULL
/datasets/git/builtin/notes.c:953:21: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/notes.c:954:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int show_only = 0, verbose = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/notes.c:956:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__DRY_RUN(&show_only, N_("do not remove, show only")),
                ^
/datasets/git/./parse-options.h:366:31: note: expanded from macro 'OPT__DRY_RUN'
#define OPT__DRY_RUN(var, h)  OPT_BOOL('n', "dry-run", (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/notes.c:957:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__VERBOSE(&verbose, N_("report pruned notes")),
                ^
/datasets/git/./parse-options.h:359:31: note: expanded from macro 'OPT__VERBOSE'
#define OPT__VERBOSE(var, h)  OPT_COUNTUP('v', "verbose", (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/notes.c:971:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        prune_notes(t, (verbose ? NOTES_PRUNE_VERBOSE : 0) |
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/notes.c:972:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                (show_only ? NOTES_PRUNE_VERBOSE|NOTES_PRUNE_DRYRUN : 0) );
                             ^
/datasets/git/./notes.h:234:29: note: expanded from macro 'NOTES_PRUNE_VERBOSE'
#define NOTES_PRUNE_VERBOSE 1
                            ^
/datasets/git/builtin/notes.c:973:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!show_only)
                       ^
                        {
/datasets/git/builtin/notes.c:998:27: warning: variable name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
        parse_opt_subcommand_fn *fn = NULL;
                                 ^
/datasets/git/builtin/notes.c:1027:17: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                struct strbuf sb = STRBUF_INIT;
                              ^
/datasets/git/builtin/notes.c:1030:3: warning: function is not thread safe [concurrency-mt-unsafe]
                setenv("GIT_NOTES_REF", sb.buf, 1);
                ^
/datasets/git/builtin/pack-objects.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "cache.h"
^        ~~~~~~~~~
         "attr.h"
/datasets/git/builtin/pack-objects.c:46:28: warning: variable 'to_pack' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct packing_data to_pack;
                           ^
/datasets/git/builtin/pack-objects.c:50:30: warning: parameter name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                const struct object_entry *e)
                                           ^
/datasets/git/builtin/pack-objects.c:52:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!e->delta_idx)
                          ^
                           {
/datasets/git/builtin/pack-objects.c:54:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (e->ext_base)
                        ^
                         {
/datasets/git/builtin/pack-objects.c:56:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else
        ^~~~
                        return &pack->objects[e->delta_idx - 1]
/datasets/git/builtin/pack-objects.c:56:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:61:35: warning: parameter name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                                          const struct object_entry *e)
                                                                     ^
/datasets/git/builtin/pack-objects.c:63:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (e->delta_size_valid)
                                ^
                                 {
/datasets/git/builtin/pack-objects.c:78:38: warning: parameter name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                               const struct object_entry *e);
                                                          ^
/datasets/git/builtin/pack-objects.c:81:36: warning: parameter name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                                    const struct object_entry *e)
                                                               ^
/datasets/git/builtin/pack-objects.c:83:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (e->size_valid)
                          ^
                           {
/datasets/git/builtin/pack-objects.c:90:26: warning: parameter name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                                struct object_entry *e,
                                                     ^
/datasets/git/builtin/pack-objects.c:93:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (delta)
                  ^
                   {
/datasets/git/builtin/pack-objects.c:95:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/pack-objects.c:101:30: warning: parameter name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                const struct object_entry *e)
                                           ^
/datasets/git/builtin/pack-objects.c:103:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (e->delta_sibling_idx)
                                 ^
                                  {
/datasets/git/builtin/pack-objects.c:110:30: warning: parameter name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                const struct object_entry *e)
                                           ^
/datasets/git/builtin/pack-objects.c:112:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (e->delta_child_idx)
                               ^
                                {
/datasets/git/builtin/pack-objects.c:118:32: warning: parameter name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                                      struct object_entry *e,
                                                           ^
/datasets/git/builtin/pack-objects.c:121:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (delta)
                  ^
                   {
/datasets/git/builtin/pack-objects.c:123:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/pack-objects.c:128:27: warning: parameter name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                                        struct object_entry *e,
                                                             ^
/datasets/git/builtin/pack-objects.c:131:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (delta)
                  ^
                   {
/datasets/git/builtin/pack-objects.c:133:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/pack-objects.c:138:32: warning: parameter name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                               struct object_entry *e,
                                                    ^
/datasets/git/builtin/pack-objects.c:146:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (oe_get_size_slow(pack, e) != size)
                                                      ^
                                                       {
/datasets/git/builtin/pack-objects.c:152:31: warning: parameter name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                                     struct object_entry *e,
                                                          ^
/datasets/git/builtin/pack-objects.c:160:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!pack->delta_size)
                                      ^
                                       {
/datasets/git/builtin/pack-objects.c:182:20: warning: variable 'pack_usage' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *pack_usage[] = {
                   ^
/datasets/git/builtin/pack-objects.c:188:32: warning: variable 'written_list' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct pack_idx_entry **written_list;
                               ^
/datasets/git/builtin/pack-objects.c:188:32: warning: variable 'written_list' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/pack-objects.c:189:17: warning: variable 'nr_result' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static uint32_t nr_result, nr_written, nr_seen;
                ^
/datasets/git/builtin/pack-objects.c:189:28: warning: variable 'nr_written' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static uint32_t nr_result, nr_written, nr_seen;
                           ^
/datasets/git/builtin/pack-objects.c:189:40: warning: variable 'nr_seen' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static uint32_t nr_result, nr_written, nr_seen;
                                       ^
/datasets/git/builtin/pack-objects.c:190:29: warning: variable 'bitmap_git' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct bitmap_index *bitmap_git;
                            ^
/datasets/git/builtin/pack-objects.c:190:29: warning: variable 'bitmap_git' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/pack-objects.c:191:17: warning: variable 'write_layer' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static uint32_t write_layer;
                ^
/datasets/git/builtin/pack-objects.c:193:12: warning: variable 'non_empty' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int non_empty;
           ^
/datasets/git/builtin/pack-objects.c:194:12: warning: variable 'reuse_delta' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int reuse_delta = 1, reuse_object = 1;
           ^
/datasets/git/builtin/pack-objects.c:194:29: warning: variable 'reuse_object' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int reuse_delta = 1, reuse_object = 1;
                            ^
/datasets/git/builtin/pack-objects.c:195:12: warning: variable 'keep_unreachable' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int keep_unreachable, unpack_unreachable, include_tag;
           ^
/datasets/git/builtin/pack-objects.c:195:30: warning: variable 'unpack_unreachable' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int keep_unreachable, unpack_unreachable, include_tag;
                             ^
/datasets/git/builtin/pack-objects.c:195:50: warning: variable 'include_tag' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int keep_unreachable, unpack_unreachable, include_tag;
                                                 ^
/datasets/git/builtin/pack-objects.c:196:20: warning: variable 'unpack_unreachable_expiration' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static timestamp_t unpack_unreachable_expiration;
                   ^
/datasets/git/builtin/pack-objects.c:197:12: warning: variable 'pack_loose_unreachable' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int pack_loose_unreachable;
           ^
/datasets/git/builtin/pack-objects.c:198:12: warning: variable 'cruft' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int cruft;
           ^
/datasets/git/builtin/pack-objects.c:199:20: warning: variable 'cruft_expiration' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static timestamp_t cruft_expiration;
                   ^
/datasets/git/builtin/pack-objects.c:200:12: warning: variable 'local' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int local;
           ^
/datasets/git/builtin/pack-objects.c:201:12: warning: variable 'have_non_local_packs' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int have_non_local_packs;
           ^
/datasets/git/builtin/pack-objects.c:202:12: warning: variable 'incremental' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int incremental;
           ^
/datasets/git/builtin/pack-objects.c:203:12: warning: variable 'ignore_packed_keep_on_disk' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int ignore_packed_keep_on_disk;
           ^
/datasets/git/builtin/pack-objects.c:204:12: warning: variable 'ignore_packed_keep_in_core' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int ignore_packed_keep_in_core;
           ^
/datasets/git/builtin/pack-objects.c:205:12: warning: variable 'allow_ofs_delta' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int allow_ofs_delta;
           ^
/datasets/git/builtin/pack-objects.c:206:31: warning: variable 'pack_idx_opts' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct pack_idx_option pack_idx_opts;
                              ^
/datasets/git/builtin/pack-objects.c:207:20: warning: variable 'base_name' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *base_name;
                   ^
/datasets/git/builtin/pack-objects.c:208:12: warning: variable 'progress' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int progress = 1;
           ^
/datasets/git/builtin/pack-objects.c:209:12: warning: variable 'window' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int window = 10;
           ^
/datasets/git/builtin/pack-objects.c:209:21: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
static int window = 10;
                    ^
/datasets/git/builtin/pack-objects.c:210:22: warning: variable 'pack_size_limit' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned long pack_size_limit;
                     ^
/datasets/git/builtin/pack-objects.c:211:12: warning: variable 'depth' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int depth = 50;
           ^
/datasets/git/builtin/pack-objects.c:211:20: warning: 50 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
static int depth = 50;
                   ^
/datasets/git/builtin/pack-objects.c:212:12: warning: variable 'delta_search_threads' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int delta_search_threads;
           ^
/datasets/git/builtin/pack-objects.c:213:12: warning: variable 'pack_to_stdout' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int pack_to_stdout;
           ^
/datasets/git/builtin/pack-objects.c:214:12: warning: variable 'sparse' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int sparse;
           ^
/datasets/git/builtin/pack-objects.c:215:12: warning: variable 'thin' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int thin;
           ^
/datasets/git/builtin/pack-objects.c:216:12: warning: variable 'num_preferred_base' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int num_preferred_base;
           ^
/datasets/git/builtin/pack-objects.c:217:25: warning: variable 'progress_state' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct progress *progress_state;
                        ^
/datasets/git/builtin/pack-objects.c:217:25: warning: variable 'progress_state' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/pack-objects.c:219:27: warning: variable 'reuse_packfile' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct packed_git *reuse_packfile;
                          ^
/datasets/git/builtin/pack-objects.c:219:27: warning: variable 'reuse_packfile' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/pack-objects.c:220:17: warning: variable 'reuse_packfile_objects' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static uint32_t reuse_packfile_objects;
                ^
/datasets/git/builtin/pack-objects.c:221:23: warning: variable 'reuse_packfile_bitmap' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct bitmap *reuse_packfile_bitmap;
                      ^
/datasets/git/builtin/pack-objects.c:221:23: warning: variable 'reuse_packfile_bitmap' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/pack-objects.c:223:12: warning: variable 'use_bitmap_index_default' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int use_bitmap_index_default = 1;
           ^
/datasets/git/builtin/pack-objects.c:224:12: warning: variable 'use_bitmap_index' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int use_bitmap_index = -1;
           ^
/datasets/git/builtin/pack-objects.c:225:12: warning: variable 'allow_pack_reuse' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int allow_pack_reuse = 1;
           ^
/datasets/git/builtin/pack-objects.c:230:3: warning: variable 'write_bitmap_index' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} write_bitmap_index;
  ^
/datasets/git/builtin/pack-objects.c:231:17: warning: variable 'write_bitmap_options' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static uint16_t write_bitmap_options = BITMAP_OPT_HASH_CACHE;
                ^
/datasets/git/builtin/pack-objects.c:233:12: warning: variable 'exclude_promisor_objects' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int exclude_promisor_objects;
           ^
/datasets/git/builtin/pack-objects.c:235:12: warning: variable 'use_delta_islands' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int use_delta_islands;
           ^
/datasets/git/builtin/pack-objects.c:237:22: warning: variable 'delta_cache_size' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned long delta_cache_size = 0;
                     ^
/datasets/git/builtin/pack-objects.c:238:22: warning: variable 'max_delta_cache_size' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned long max_delta_cache_size = DEFAULT_DELTA_CACHE_SIZE;
                     ^
/datasets/git/builtin/pack-objects.c:238:45: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
static unsigned long max_delta_cache_size = DEFAULT_DELTA_CACHE_SIZE;
                                            ^
/datasets/git/./pack-objects.h:10:35: note: expanded from macro 'DEFAULT_DELTA_CACHE_SIZE'
#define DEFAULT_DELTA_CACHE_SIZE (256 * 1024 * 1024)
                                  ^
/datasets/git/builtin/pack-objects.c:238:45: note: make conversion explicit to silence this warning
static unsigned long max_delta_cache_size = DEFAULT_DELTA_CACHE_SIZE;
                                            ^
/datasets/git/./pack-objects.h:10:35: note: expanded from macro 'DEFAULT_DELTA_CACHE_SIZE'
#define DEFAULT_DELTA_CACHE_SIZE (256 * 1024 * 1024)
                                  ^~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:238:45: note: perform multiplication in a wider type
static unsigned long max_delta_cache_size = DEFAULT_DELTA_CACHE_SIZE;
                                            ^
/datasets/git/./pack-objects.h:10:35: note: expanded from macro 'DEFAULT_DELTA_CACHE_SIZE'
#define DEFAULT_DELTA_CACHE_SIZE (256 * 1024 * 1024)
                                  ^~~~~~~~~~
/datasets/git/builtin/pack-objects.c:239:22: warning: variable 'cache_max_small_delta_size' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned long cache_max_small_delta_size = 1000;
                     ^
/datasets/git/builtin/pack-objects.c:239:51: warning: 1000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
static unsigned long cache_max_small_delta_size = 1000;
                                                  ^
/datasets/git/builtin/pack-objects.c:241:22: warning: variable 'window_memory_limit' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned long window_memory_limit = 0;
                     ^
/datasets/git/builtin/pack-objects.c:243:27: warning: variable 'uri_protocols' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct string_list uri_protocols = STRING_LIST_INIT_NODUP;
                          ^
/datasets/git/builtin/pack-objects.c:250:28: warning: variable 'arg_missing_action' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static enum missing_action arg_missing_action;
                           ^
/datasets/git/builtin/pack-objects.c:251:23: warning: variable 'fn_show_object' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static show_object_fn fn_show_object;
                      ^
/datasets/git/builtin/pack-objects.c:253:8: warning: accessing fields in struct 'configured_exclusion' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct configured_exclusion {
       ^
/datasets/git/builtin/pack-objects.c:253:8: note: use "__attribute__((aligned(128)))" to align struct 'configured_exclusion' to 128 bytes
/datasets/git/builtin/pack-objects.c:258:22: warning: variable 'configured_exclusions' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct oidmap configured_exclusions;
                     ^
/datasets/git/builtin/pack-objects.c:260:22: warning: variable 'excluded_by_config' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct oidset excluded_by_config;
                     ^
/datasets/git/builtin/pack-objects.c:265:17: warning: variable 'written' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static uint32_t written, written_delta;
                ^
/datasets/git/builtin/pack-objects.c:265:26: warning: variable 'written_delta' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static uint32_t written, written_delta;
                         ^
/datasets/git/builtin/pack-objects.c:266:17: warning: variable 'reused' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static uint32_t reused, reused_delta;
                ^
/datasets/git/builtin/pack-objects.c:266:25: warning: variable 'reused_delta' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static uint32_t reused, reused_delta;
                        ^
/datasets/git/builtin/pack-objects.c:271:24: warning: variable 'indexed_commits' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct commit **indexed_commits;
                       ^
/datasets/git/builtin/pack-objects.c:271:24: warning: variable 'indexed_commits' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/pack-objects.c:272:21: warning: variable 'indexed_commits_nr' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned int indexed_commits_nr;
                    ^
/datasets/git/builtin/pack-objects.c:273:21: warning: variable 'indexed_commits_alloc' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned int indexed_commits_alloc;
                    ^
/datasets/git/builtin/pack-objects.c:278:52: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                indexed_commits_alloc = (indexed_commits_alloc + 32) * 2;
                                                                 ^
/datasets/git/builtin/pack-objects.c:279:3: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                REALLOC_ARRAY(indexed_commits, indexed_commits_alloc);
                ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/builtin/pack-objects.c:287:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned long size, base_size, delta_size;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:287:16: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size, base_size, delta_size;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:287:22: warning: variable 'base_size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size, base_size, delta_size;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:287:33: warning: variable 'delta_size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size, base_size, delta_size;
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:288:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        void *buf, *base_buf, *delta_buf;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:288:8: warning: variable 'buf' is not initialized [cppcoreguidelines-init-variables]
        void *buf, *base_buf, *delta_buf;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:288:14: warning: variable 'base_buf' is not initialized [cppcoreguidelines-init-variables]
        void *buf, *base_buf, *delta_buf;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:288:25: warning: variable 'delta_buf' is not initialized [cppcoreguidelines-init-variables]
        void *buf, *base_buf, *delta_buf;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:289:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/builtin/pack-objects.c:292:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!buf)
                 ^
                  {
/datasets/git/builtin/pack-objects.c:296:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!base_buf)
                      ^
                       {
/datasets/git/builtin/pack-objects.c:306:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!delta_buf || delta_size != DELTA_SIZE(entry))
                                                          ^
                                                           {
/datasets/git/builtin/pack-objects.c:316:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        void *in, *out;
        ^~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:316:8: warning: variable 'in' is not initialized [cppcoreguidelines-init-variables]
        void *in, *out;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:316:8: warning: variable name 'in' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-objects.c:316:13: warning: variable 'out' is not initialized [cppcoreguidelines-init-variables]
        void *in, *out;
                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:317:16: warning: variable 'maxsize' is not initialized [cppcoreguidelines-init-variables]
        unsigned long maxsize;
                      ^
                              = 0
/datasets/git/builtin/pack-objects.c:330:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (git_deflate(&stream, Z_FINISH) == Z_OK)
        ^
/datasets/git/builtin/pack-objects.c:330:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (git_deflate(&stream, Z_FINISH) == Z_OK)
                                                      ^
                                                       {
/datasets/git/builtin/pack-objects.c:338:64: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
static unsigned long write_large_blob_data(struct git_istream *st, struct hashfile *f,
                                                               ^
/datasets/git/builtin/pack-objects.c:338:85: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
static unsigned long write_large_blob_data(struct git_istream *st, struct hashfile *f,
                                                                                    ^
/datasets/git/builtin/pack-objects.c:342:21: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        unsigned char ibuf[1024 * 16];
                           ^
/datasets/git/builtin/pack-objects.c:342:28: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        unsigned char ibuf[1024 * 16];
                                  ^
/datasets/git/builtin/pack-objects.c:343:21: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        unsigned char obuf[1024 * 16];
                           ^
/datasets/git/builtin/pack-objects.c:343:28: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        unsigned char obuf[1024 * 16];
                                  ^
/datasets/git/builtin/pack-objects.c:349:11: warning: variable 'readlen' is not initialized [cppcoreguidelines-init-variables]
                ssize_t readlen;
                        ^
                                = 0
/datasets/git/builtin/pack-objects.c:352:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (readlen == -1)
                                  ^
                                   {
/datasets/git/builtin/pack-objects.c:357:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while ((stream.avail_in || readlen == 0) &&
                ^
/datasets/git/builtin/pack-objects.c:357:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'readlen' and may cause performance degradation [altera-id-dependent-backward-branch]
                while ((stream.avail_in || readlen == 0) &&
                       ^
/datasets/git/builtin/pack-objects.c:365:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (stream.avail_in)
                                    ^
                                     {
/datasets/git/builtin/pack-objects.c:368:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (zret != Z_STREAM_END)
                                                 ^
                                                  {
/datasets/git/builtin/pack-objects.c:381:50: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static int check_pack_inflate(struct packed_git *p,
                                                 ^
/datasets/git/builtin/pack-objects.c:383:3: warning: 2 adjacent parameters of 'check_pack_inflate' of similar type ('off_t') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                off_t offset,
                ^~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:383:9: note: the first parameter in the range is 'offset'
                off_t offset,
                      ^~~~~~
/datasets/git/builtin/pack-objects.c:384:9: note: the last parameter in the range is 'len'
                off_t len,
                      ^~~
/datasets/git/builtin/pack-objects.c:388:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned char fakebuf[4096], *in;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:389:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int st;
        ^
/datasets/git/builtin/pack-objects.c:388:24: warning: 4096 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        unsigned char fakebuf[4096], *in;
                              ^
/datasets/git/builtin/pack-objects.c:388:32: warning: variable 'in' is not initialized [cppcoreguidelines-init-variables]
        unsigned char fakebuf[4096], *in;
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:388:32: warning: variable name 'in' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-objects.c:389:6: warning: variable 'st' is not initialized [cppcoreguidelines-init-variables]
        int st;
            ^
               = 0
/datasets/git/builtin/pack-objects.c:389:6: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-objects.c:391:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&stream, 0, sizeof(stream));
        ^~~~~~
/datasets/git/builtin/pack-objects.c:391:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&stream, 0, sizeof(stream));
        ^~~~~~
/datasets/git/builtin/pack-objects.c:393:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        do {
        ^
/datasets/git/builtin/pack-objects.c:400:11: warning: backward branch (do loop) is ID-dependent due to variable reference to 'st' and may cause performance degradation [altera-id-dependent-backward-branch]
        } while (st == Z_OK || st == Z_BUF_ERROR);
                 ^
/datasets/git/builtin/pack-objects.c:407:45: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
static void copy_pack_data(struct hashfile *f,
                                            ^
/datasets/git/builtin/pack-objects.c:408:22: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct packed_git *p,
                                   ^
/datasets/git/builtin/pack-objects.c:411:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                off_t len)
                ^
/datasets/git/builtin/pack-objects.c:410:3: warning: 2 adjacent parameters of 'copy_pack_data' of similar type ('off_t') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                off_t offset,
                ^~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:410:9: note: the first parameter in the range is 'offset'
                off_t offset,
                      ^~~~~~
/datasets/git/builtin/pack-objects.c:411:9: note: the last parameter in the range is 'len'
                off_t len)
                      ^~~
/datasets/git/builtin/pack-objects.c:413:17: warning: variable 'in' is not initialized [cppcoreguidelines-init-variables]
        unsigned char *in;
                       ^
                          = NULL
/datasets/git/builtin/pack-objects.c:413:17: warning: variable name 'in' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-objects.c:414:16: warning: variable 'avail' is not initialized [cppcoreguidelines-init-variables]
        unsigned long avail;
                      ^
                            = 0
/datasets/git/builtin/pack-objects.c:416:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (len) {
        ^
/datasets/git/builtin/pack-objects.c:416:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (len) {
               ^
/datasets/git/builtin/pack-objects.c:418:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (avail > len)
                                ^
                                 {
/datasets/git/builtin/pack-objects.c:421:13: warning: narrowing conversion from 'unsigned long' to signed type 'off_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                offset += avail;
                          ^
/datasets/git/builtin/pack-objects.c:422:10: warning: narrowing conversion from 'unsigned long' to signed type 'off_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                len -= avail;
                       ^
/datasets/git/builtin/pack-objects.c:430:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (lhs->size_valid)
                            ^
                             {
/datasets/git/builtin/pack-objects.c:432:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (rhs < pack->oe_size_limit) /* rhs < 2^x <= lhs ? */
                                      ^
                                       {
/datasets/git/builtin/pack-objects.c:438:22: warning: function 'write_no_reuse_object' has cognitive complexity of 46 (threshold 25) [readability-function-cognitive-complexity]
static unsigned long write_no_reuse_object(struct hashfile *f, struct object_entry *entry,
                     ^
/datasets/git/builtin/pack-objects.c:450:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!usable_delta) {
        ^
/datasets/git/builtin/pack-objects.c:451:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (oe_type(entry) == OBJ_BLOB &&
                ^
/datasets/git/builtin/pack-objects.c:452:65: note: +1
                    oe_size_greater_than(&to_pack, entry, big_file_threshold) &&
                                                                              ^
/datasets/git/builtin/pack-objects.c:456:3: note: +1, nesting level increased to 2
                else {
                ^
/datasets/git/builtin/pack-objects.c:458:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!buf)
                        ^
/datasets/git/builtin/pack-objects.c:466:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                FREE_AND_NULL(entry->delta_data);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/pack-objects.c:468:9: note: +1, nesting level increased to 1
        } else if (entry->delta_data) {
               ^
/datasets/git/builtin/pack-objects.c:472:56: note: +2, including nesting penalty of 1, nesting level increased to 2
                type = (allow_ofs_delta && DELTA(entry)->idx.offset) ?
                                                                     ^
/datasets/git/builtin/pack-objects.c:472:27: note: +1
                type = (allow_ofs_delta && DELTA(entry)->idx.offset) ?
                                        ^
/datasets/git/builtin/pack-objects.c:474:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/pack-objects.c:477:56: note: +2, including nesting penalty of 1, nesting level increased to 2
                type = (allow_ofs_delta && DELTA(entry)->idx.offset) ?
                                                                     ^
/datasets/git/builtin/pack-objects.c:477:27: note: +1
                type = (allow_ofs_delta && DELTA(entry)->idx.offset) ?
                                        ^
/datasets/git/builtin/pack-objects.c:481:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (st) /* large blob case, just assume we don't compress well */
        ^
/datasets/git/builtin/pack-objects.c:483:7: note: +1, nesting level increased to 1
        else if (entry->z_delta_size)
             ^
/datasets/git/builtin/pack-objects.c:485:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/builtin/pack-objects.c:495:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (type == OBJ_OFS_DELTA) {
        ^
/datasets/git/builtin/pack-objects.c:504:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (ofs >>= 7)
                ^
/datasets/git/builtin/pack-objects.c:506:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (limit && hdrlen + sizeof(dheader) - pos + datalen + hashsz >= limit) {
                ^
/datasets/git/builtin/pack-objects.c:506:13: note: +1
                if (limit && hdrlen + sizeof(dheader) - pos + datalen + hashsz >= limit) {
                          ^
/datasets/git/builtin/pack-objects.c:507:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (st)
                        ^
/datasets/git/builtin/pack-objects.c:515:9: note: +1, nesting level increased to 1
        } else if (type == OBJ_REF_DELTA) {
               ^
/datasets/git/builtin/pack-objects.c:520:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (limit && hdrlen + hashsz + datalen + hashsz >= limit) {
                ^
/datasets/git/builtin/pack-objects.c:520:13: note: +1
                if (limit && hdrlen + hashsz + datalen + hashsz >= limit) {
                          ^
/datasets/git/builtin/pack-objects.c:521:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (st)
                        ^
/datasets/git/builtin/pack-objects.c:529:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/pack-objects.c:530:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (limit && hdrlen + datalen + hashsz >= limit) {
                ^
/datasets/git/builtin/pack-objects.c:530:13: note: +1
                if (limit && hdrlen + datalen + hashsz >= limit) {
                          ^
/datasets/git/builtin/pack-objects.c:531:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (st)
                        ^
/datasets/git/builtin/pack-objects.c:538:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (st) {
        ^
/datasets/git/builtin/pack-objects.c:541:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/pack-objects.c:438:61: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
static unsigned long write_no_reuse_object(struct hashfile *f, struct object_entry *entry,
                                                            ^
/datasets/git/builtin/pack-objects.c:439:9: warning: 2 adjacent parameters of 'write_no_reuse_object' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                           unsigned long limit, int usable_delta)
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:439:23: note: the first parameter in the range is 'limit'
                                           unsigned long limit, int usable_delta)
                                                         ^~~~~
/datasets/git/builtin/pack-objects.c:439:34: note: the last parameter in the range is 'usable_delta'
                                           unsigned long limit, int usable_delta)
                                                                    ^~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:439:30: note: 'unsigned long' and 'int' may be implicitly converted
                                           unsigned long limit, int usable_delta)
                                                                ^
/datasets/git/builtin/pack-objects.c:441:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned long size, datalen;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:441:16: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size, datalen;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:441:22: warning: variable 'datalen' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size, datalen;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:442:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned char header[MAX_PACK_OBJECT_HEADER],
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:444:11: warning: variable 'hdrlen' is not initialized [cppcoreguidelines-init-variables]
        unsigned hdrlen;
                 ^
                        = 0
/datasets/git/builtin/pack-objects.c:445:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/builtin/pack-objects.c:446:8: warning: variable 'buf' is not initialized [cppcoreguidelines-init-variables]
        void *buf;
              ^
                  = NULL
/datasets/git/builtin/pack-objects.c:447:22: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct git_istream *st = NULL;
                            ^
/datasets/git/builtin/pack-objects.c:453:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                    (st = open_istream(the_repository, &entry->idx.oid, &type,
                     ^
/datasets/git/builtin/pack-objects.c:453:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/builtin/pack-objects.c:453:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/builtin/pack-objects.c:454:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                       &size, NULL)) != NULL)
                                                             ^
                                                              {
/datasets/git/builtin/pack-objects.c:458:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!buf)
                                 ^
                                  {
/datasets/git/builtin/pack-objects.c:466:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FREE_AND_NULL(entry->delta_data);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/pack-objects.c:481:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (st) /* large blob case, just assume we don't compress well */
               ^
                {
/datasets/git/builtin/pack-objects.c:483:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (entry->z_delta_size)
                                     ^
                                      {
/datasets/git/builtin/pack-objects.c:485:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/pack-objects.c:503:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                dheader[pos] = ofs & 127;
                               ^~~
/datasets/git/builtin/pack-objects.c:503:24: warning: 127 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                dheader[pos] = ofs & 127;
                                     ^
/datasets/git/builtin/pack-objects.c:504:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (ofs >>= 7)
                ^
/datasets/git/builtin/pack-objects.c:504:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'ofs' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (ofs >>= 7)
                       ^
/datasets/git/builtin/pack-objects.c:504:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                while (ofs >>= 7)
                       ^~~
/datasets/git/builtin/pack-objects.c:504:18: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                while (ofs >>= 7)
                               ^
/datasets/git/builtin/pack-objects.c:504:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (ofs >>= 7)
                                 ^
                                  {
/datasets/git/builtin/pack-objects.c:505:21: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        dheader[--pos] = 128 | (--ofs & 127);
                                         ^
/datasets/git/builtin/pack-objects.c:505:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        dheader[--pos] = 128 | (--ofs & 127);
                                         ^~~
/datasets/git/builtin/pack-objects.c:505:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        dheader[--pos] = 128 | (--ofs & 127);
                                                ^~~~~
/datasets/git/builtin/pack-objects.c:505:36: warning: 127 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        dheader[--pos] = 128 | (--ofs & 127);
                                                        ^
/datasets/git/builtin/pack-objects.c:507:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (st)
                               ^
                                {
/datasets/git/builtin/pack-objects.c:521:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (st)
                               ^
                                {
/datasets/git/builtin/pack-objects.c:531:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (st)
                               ^
                                {
/datasets/git/builtin/pack-objects.c:550:50: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
static off_t write_reuse_object(struct hashfile *f, struct object_entry *entry,
                                                 ^
/datasets/git/builtin/pack-objects.c:553:21: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        struct packed_git *p = IN_PACK(entry);
                           ^
/datasets/git/builtin/pack-objects.c:555:11: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        uint32_t pos;
                 ^
                     = 0
/datasets/git/builtin/pack-objects.c:556:8: warning: variable 'offset' is not initialized [cppcoreguidelines-init-variables]
        off_t offset;
              ^
                     = 0
/datasets/git/builtin/pack-objects.c:558:8: warning: variable 'datalen' is not initialized [cppcoreguidelines-init-variables]
        off_t datalen;
              ^
                      = 0
/datasets/git/builtin/pack-objects.c:559:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned char header[MAX_PACK_OBJECT_HEADER],
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:561:11: warning: variable 'hdrlen' is not initialized [cppcoreguidelines-init-variables]
        unsigned hdrlen;
                 ^
                        = 0
/datasets/git/builtin/pack-objects.c:565:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (DELTA(entry))
                         ^
                          {
/datasets/git/builtin/pack-objects.c:572:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (offset_to_pack_pos(p, offset, &pos) < 0)
                                                    ^
                                                     {
/datasets/git/builtin/pack-objects.c:584:10: warning: narrowing conversion from 'unsigned long' to signed type 'off_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                return write_no_reuse_object(f, entry, limit, usable_delta);
                       ^
/datasets/git/builtin/pack-objects.c:595:10: warning: narrowing conversion from 'unsigned long' to signed type 'off_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                return write_no_reuse_object(f, entry, limit, usable_delta);
                       ^
/datasets/git/builtin/pack-objects.c:601:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                dheader[pos] = ofs & 127;
                               ^~~
/datasets/git/builtin/pack-objects.c:601:24: warning: 127 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                dheader[pos] = ofs & 127;
                                     ^
/datasets/git/builtin/pack-objects.c:602:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (ofs >>= 7)
                ^
/datasets/git/builtin/pack-objects.c:602:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'ofs' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (ofs >>= 7)
                       ^
/datasets/git/builtin/pack-objects.c:602:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                while (ofs >>= 7)
                       ^~~
/datasets/git/builtin/pack-objects.c:602:18: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                while (ofs >>= 7)
                               ^
/datasets/git/builtin/pack-objects.c:602:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (ofs >>= 7)
                                 ^
                                  {
/datasets/git/builtin/pack-objects.c:603:21: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        dheader[--pos] = 128 | (--ofs & 127);
                                         ^
/datasets/git/builtin/pack-objects.c:603:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        dheader[--pos] = 128 | (--ofs & 127);
                                         ^~~
/datasets/git/builtin/pack-objects.c:603:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        dheader[--pos] = 128 | (--ofs & 127);
                                                ^~~~~
/datasets/git/builtin/pack-objects.c:603:36: warning: 127 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        dheader[--pos] = 128 | (--ofs & 127);
                                                        ^
/datasets/git/builtin/pack-objects.c:635:44: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
static off_t write_object(struct hashfile *f,
                                           ^
/datasets/git/builtin/pack-objects.c:639:16: warning: variable 'limit' is not initialized [cppcoreguidelines-init-variables]
        unsigned long limit;
                      ^
                            = 0
/datasets/git/builtin/pack-objects.c:640:8: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        off_t len;
              ^
                  = 0
/datasets/git/builtin/pack-objects.c:641:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int usable_delta, to_reuse;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:641:6: warning: variable 'usable_delta' is not initialized [cppcoreguidelines-init-variables]
        int usable_delta, to_reuse;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:641:20: warning: variable 'to_reuse' is not initialized [cppcoreguidelines-init-variables]
        int usable_delta, to_reuse;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:643:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!pack_to_stdout)
                            ^
                             {
/datasets/git/builtin/pack-objects.c:647:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!pack_size_limit || !nr_written)
                                            ^
                                             {
/datasets/git/builtin/pack-objects.c:649:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (pack_size_limit <= write_offset)
                                                 ^
                                                  {
/datasets/git/builtin/pack-objects.c:655:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/pack-objects.c:658:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!DELTA(entry))
                          ^
                           {
/datasets/git/builtin/pack-objects.c:659:3: warning: repeated branch in conditional chain [bugprone-branch-clone]
                usable_delta = 0;       /* no delta */
                ^
/datasets/git/builtin/pack-objects.c:659:19: note: end of the original
                usable_delta = 0;       /* no delta */
                                ^
/datasets/git/builtin/pack-objects.c:663:3: note: clone 1 starts here
                usable_delta = 0;       /* base was written to another pack */
                ^
/datasets/git/builtin/pack-objects.c:667:3: note: clone 2 starts here
                usable_delta = 0;       /* base could end up in another pack */
                ^
/datasets/git/builtin/pack-objects.c:660:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!pack_size_limit)
                                  ^
                                   {
/datasets/git/builtin/pack-objects.c:661:9: warning: repeated branch in conditional chain [bugprone-branch-clone]
               usable_delta = 1;        /* unlimited packfile */
               ^
/datasets/git/builtin/pack-objects.c:661:25: note: end of the original
               usable_delta = 1;        /* unlimited packfile */
                               ^
/datasets/git/builtin/pack-objects.c:665:3: note: clone 1 starts here
                usable_delta = 1;       /* base already exists in this pack */
                ^
/datasets/git/builtin/pack-objects.c:662:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (DELTA(entry)->idx.offset == (off_t)-1)
                                                       ^
                                                        {
/datasets/git/builtin/pack-objects.c:664:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (DELTA(entry)->idx.offset)
                                          ^
                                           {
/datasets/git/builtin/pack-objects.c:666:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/pack-objects.c:669:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!reuse_object)
                          ^
                           {
/datasets/git/builtin/pack-objects.c:670:3: warning: repeated branch in conditional chain [bugprone-branch-clone]
                to_reuse = 0;   /* explicit */
                ^
/datasets/git/builtin/pack-objects.c:670:15: note: end of the original
                to_reuse = 0;   /* explicit */
                            ^
/datasets/git/builtin/pack-objects.c:672:3: note: clone 1 starts here
                to_reuse = 0;   /* can't reuse what we don't have */
                ^
/datasets/git/builtin/pack-objects.c:679:3: note: clone 2 starts here
                to_reuse = 0;   /* pack has delta which is unusable */
                ^
/datasets/git/builtin/pack-objects.c:681:3: note: clone 3 starts here
                to_reuse = 0;   /* we want to pack afresh */
                ^
/datasets/git/builtin/pack-objects.c:671:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!IN_PACK(entry))
                                 ^
                                  {
/datasets/git/builtin/pack-objects.c:674:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                 oe_type(entry) == OBJ_OFS_DELTA)
                                                 ^
                                                  {
/datasets/git/builtin/pack-objects.c:678:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (oe_type(entry) != entry->in_pack_type)
                                                       ^
                                                        {
/datasets/git/builtin/pack-objects.c:680:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (DELTA(entry))
                              ^
                               {
/datasets/git/builtin/pack-objects.c:682:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/pack-objects.c:687:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!to_reuse)
                      ^
                       {
/datasets/git/builtin/pack-objects.c:688:9: warning: narrowing conversion from 'unsigned long' to signed type 'off_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                len = write_no_reuse_object(f, entry, limit, usable_delta);
                      ^
/datasets/git/builtin/pack-objects.c:689:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/pack-objects.c:691:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!len)
                 ^
                  {
/datasets/git/builtin/pack-objects.c:694:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (usable_delta)
                         ^
                          {
/datasets/git/builtin/pack-objects.c:697:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!pack_to_stdout)
                            ^
                             {
/datasets/git/builtin/pack-objects.c:709:30: warning: function 'write_one' is within a recursive call chain [misc-no-recursion]
static enum write_one_status write_one(struct hashfile *f,
                             ^
/datasets/git/builtin/pack-objects.c:709:30: note: example recursive call chain, starting from function 'write_one'
/datasets/git/builtin/pack-objects.c:734:11: note: Frame #1: function 'write_one' calls function 'write_one' here:
                switch (write_one(f, DELTA(e), offset)) {
                        ^
/datasets/git/builtin/pack-objects.c:734:11: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/builtin/pack-objects.c:709:57: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
static enum write_one_status write_one(struct hashfile *f,
                                                        ^
/datasets/git/builtin/pack-objects.c:710:33: warning: parameter name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                                       struct object_entry *e,
                                                            ^
/datasets/git/builtin/pack-objects.c:713:8: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        off_t size;
              ^
                   = 0
/datasets/git/builtin/pack-objects.c:714:6: warning: variable 'recursing' is not initialized [cppcoreguidelines-init-variables]
        int recursing;
            ^
                      = 0
/datasets/git/builtin/pack-objects.c:726:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else if (e->idx.offset || e->preferred_base) {
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:756:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (signed_add_overflows(*offset, size))
                                                ^
                                                 {
/datasets/git/builtin/pack-objects.c:768:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (entry)
                  ^
                   {
/datasets/git/builtin/pack-objects.c:772:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (entry)
                          ^
                           {
/datasets/git/builtin/pack-objects.c:779:31: warning: parameter name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                                     struct object_entry *e)
                                                          ^
/datasets/git/builtin/pack-objects.c:781:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!pack->layer)
                         ^
                          {
/datasets/git/builtin/pack-objects.c:786:61: warning: parameter name 'wo' is too short, expected at least 3 characters [readability-identifier-length]
static inline void add_to_write_order(struct object_entry **wo,
                                                            ^
/datasets/git/builtin/pack-objects.c:788:32: warning: parameter name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                               struct object_entry *e)
                                                    ^
/datasets/git/builtin/pack-objects.c:790:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (e->filled || oe_layer(&to_pack, e) != write_layer)
                                                              ^
                                                               {
/datasets/git/builtin/pack-objects.c:796:66: warning: parameter name 'wo' is too short, expected at least 3 characters [readability-identifier-length]
static void add_descendants_to_write_order(struct object_entry **wo,
                                                                 ^
/datasets/git/builtin/pack-objects.c:798:30: warning: parameter name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                                           struct object_entry *e)
                                                                ^
/datasets/git/builtin/pack-objects.c:798:9: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                                           struct object_entry *e)
                                           ^
/datasets/git/builtin/pack-objects.c:801:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'e' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (e) {
               ^
/datasets/git/builtin/pack-objects.c:803:4: note: inferred assignment of ID-dependent value from ID-dependent 
                        struct object_entry *s;
                        ^
/datasets/git/builtin/pack-objects.c:803:25: warning: variable 's' is not initialized [cppcoreguidelines-init-variables]
                        struct object_entry *s;
                                             ^
                                               = NULL
/datasets/git/builtin/pack-objects.c:803:25: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-objects.c:798:9: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                                           struct object_entry *e)
                                           ^
/datasets/git/builtin/pack-objects.c:807:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (s = DELTA_SIBLING(e); s; s = DELTA_SIBLING(s)) {
                        ^
/datasets/git/builtin/pack-objects.c:807:31: warning: backward branch (for loop) is ID-dependent due to variable reference to 's' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (s = DELTA_SIBLING(e); s; s = DELTA_SIBLING(s)) {
                                                   ^
/datasets/git/builtin/pack-objects.c:824:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (e && !DELTA_SIBLING(e)) {
                        ^
/datasets/git/builtin/pack-objects.c:824:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'e' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (e && !DELTA_SIBLING(e)) {
                               ^
/datasets/git/builtin/pack-objects.c:839:61: warning: parameter name 'wo' is too short, expected at least 3 characters [readability-identifier-length]
static void add_family_to_write_order(struct object_entry **wo,
                                                            ^
/datasets/git/builtin/pack-objects.c:841:32: warning: parameter name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                                      struct object_entry *e)
                                                           ^
/datasets/git/builtin/pack-objects.c:843:23: warning: variable 'root' is not initialized [cppcoreguidelines-init-variables]
        struct object_entry *root;
                             ^
                                  = NULL
/datasets/git/builtin/pack-objects.c:845:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (root = e; DELTA(root); root = DELTA(root))
        ^
/datasets/git/builtin/pack-objects.c:845:17: warning: backward branch (for loop) is ID-dependent due to variable reference to 'root' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (root = e; DELTA(root); root = DELTA(root))
                       ^
/datasets/git/builtin/pack-objects.c:173:20: note: expanded from macro 'DELTA'
#define DELTA(obj) oe_delta(&to_pack, obj)
                   ^
/datasets/git/builtin/pack-objects.c:845:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (root = e; DELTA(root); root = DELTA(root))
                                                       ^
                                                        {
/datasets/git/builtin/pack-objects.c:850:55: warning: parameter name 'wo' is too short, expected at least 3 characters [readability-identifier-length]
static void compute_layer_order(struct object_entry **wo, unsigned int *wo_end)
                                                      ^
/datasets/git/builtin/pack-objects.c:852:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned int i, last_untagged;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:852:2: note: inferred assignment of ID-dependent value from ID-dependent variable last_untagged [altera-id-dependent-backward-branch]
/datasets/git/builtin/pack-objects.c:852:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i, last_untagged;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:852:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-objects.c:852:18: warning: variable 'last_untagged' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i, last_untagged;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:855:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < to_pack.nr_objects; i++) {
        ^
/datasets/git/builtin/pack-objects.c:852:2: note: inferred assignment of ID-dependent value from ID-dependent variable last_untagged [altera-id-dependent-backward-branch]
        unsigned int i, last_untagged;
        ^
/datasets/git/builtin/pack-objects.c:855:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < to_pack.nr_objects; i++) {
                    ^
/datasets/git/builtin/pack-objects.c:856:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (objects[i].tagged)
                                      ^
                                       {
/datasets/git/builtin/pack-objects.c:865:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; i < to_pack.nr_objects; i++) {
        ^
/datasets/git/builtin/pack-objects.c:852:2: note: inferred assignment of ID-dependent value from ID-dependent variable last_untagged [altera-id-dependent-backward-branch]
        unsigned int i, last_untagged;
        ^
/datasets/git/builtin/pack-objects.c:865:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; i < to_pack.nr_objects; i++) {
               ^
/datasets/git/builtin/pack-objects.c:866:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (objects[i].tagged)
                                      ^
                                       {
/datasets/git/builtin/pack-objects.c:873:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = last_untagged; i < to_pack.nr_objects; i++) {
        ^
/datasets/git/builtin/pack-objects.c:852:2: note: inferred assignment of ID-dependent value from ID-dependent variable last_untagged [altera-id-dependent-backward-branch]
        unsigned int i, last_untagged;
        ^
/datasets/git/builtin/pack-objects.c:873:26: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = last_untagged; i < to_pack.nr_objects; i++) {
                                ^
/datasets/git/builtin/pack-objects.c:875:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    oe_type(&objects[i]) != OBJ_TAG)
                                                    ^
                                                     {
/datasets/git/builtin/pack-objects.c:883:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = last_untagged; i < to_pack.nr_objects; i++) {
        ^
/datasets/git/builtin/pack-objects.c:852:2: note: inferred assignment of ID-dependent value from ID-dependent variable last_untagged [altera-id-dependent-backward-branch]
        unsigned int i, last_untagged;
        ^
/datasets/git/builtin/pack-objects.c:883:26: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = last_untagged; i < to_pack.nr_objects; i++) {
                                ^
/datasets/git/builtin/pack-objects.c:884:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (oe_type(&objects[i]) != OBJ_TREE)
                                                     ^
                                                      {
/datasets/git/builtin/pack-objects.c:892:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = last_untagged; i < to_pack.nr_objects; i++) {
        ^
/datasets/git/builtin/pack-objects.c:892:26: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = last_untagged; i < to_pack.nr_objects; i++) {
                                ^
/datasets/git/builtin/pack-objects.c:893:76: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!objects[i].filled && oe_layer(&to_pack, &objects[i]) == write_layer)
                                                                                         ^
                                                                                          {
/datasets/git/builtin/pack-objects.c:901:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned int i, wo_end;
        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:901:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/builtin/pack-objects.c:901:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i, wo_end;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:901:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-objects.c:901:18: warning: variable 'wo_end' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i, wo_end;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:903:24: warning: variable 'wo' is not initialized [cppcoreguidelines-init-variables]
        struct object_entry **wo;
                              ^
                                 = NULL
/datasets/git/builtin/pack-objects.c:903:24: warning: variable name 'wo' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-objects.c:906:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < to_pack.nr_objects; i++) {
        ^
/datasets/git/builtin/pack-objects.c:901:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        unsigned int i, wo_end;
        ^
/datasets/git/builtin/pack-objects.c:906:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < to_pack.nr_objects; i++) {
                    ^
/datasets/git/builtin/pack-objects.c:918:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = to_pack.nr_objects; i > 0;) {
        ^
/datasets/git/builtin/pack-objects.c:918:31: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = to_pack.nr_objects; i > 0;) {
                                     ^
/datasets/git/builtin/pack-objects.c:919:24: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                struct object_entry *e = &objects[--i];
                                     ^
/datasets/git/builtin/pack-objects.c:920:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!DELTA(e))
                              ^
                               {
/datasets/git/builtin/pack-objects.c:932:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (use_delta_islands)
                              ^
                               {
/datasets/git/builtin/pack-objects.c:935:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_ARRAY(wo, to_pack.nr_objects);
        ^
/datasets/git/./git-compat-util.h:1090:53: note: expanded from macro 'ALLOC_ARRAY'
#define ALLOC_ARRAY(x, alloc) (x) = xmalloc(st_mult(sizeof(*(x)), (alloc)))
                                                    ^
/datasets/git/builtin/pack-objects.c:938:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; write_layer < max_layers; ++write_layer)
        ^
/datasets/git/builtin/pack-objects.c:938:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'max_layers' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; write_layer < max_layers; ++write_layer)
               ^
/datasets/git/builtin/pack-objects.c:938:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (; write_layer < max_layers; ++write_layer)
                                                       ^
                                                        {
/datasets/git/builtin/pack-objects.c:941:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (wo_end != to_pack.nr_objects)
                                         ^
                                          {
/datasets/git/builtin/pack-objects.c:955:15: warning: accessing fields in struct 'reused_chunk' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
static struct reused_chunk {
              ^
/datasets/git/builtin/pack-objects.c:955:15: note: use "__attribute__((aligned(16)))" to align struct 'reused_chunk' to 16 bytes
/datasets/git/builtin/pack-objects.c:962:4: warning: variable 'reused_chunks' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} *reused_chunks;
   ^
/datasets/git/builtin/pack-objects.c:962:4: warning: variable 'reused_chunks' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/pack-objects.c:963:12: warning: variable 'reused_chunks_nr' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int reused_chunks_nr;
           ^
/datasets/git/builtin/pack-objects.c:964:12: warning: variable 'reused_chunks_alloc' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int reused_chunks_alloc;
           ^
/datasets/git/builtin/pack-objects.c:966:34: warning: 2 adjacent parameters of 'record_reused_object' of similar type ('off_t') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void record_reused_object(off_t where, off_t offset)
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:966:40: note: the first parameter in the range is 'where'
static void record_reused_object(off_t where, off_t offset)
                                       ^~~~~
/datasets/git/builtin/pack-objects.c:966:53: note: the last parameter in the range is 'offset'
static void record_reused_object(off_t where, off_t offset)
                                                    ^~~~~~
/datasets/git/builtin/pack-objects.c:968:81: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (reused_chunks_nr && reused_chunks[reused_chunks_nr-1].difference == offset)
                                                                                       ^
                                                                                        {
/datasets/git/builtin/pack-objects.c:971:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(reused_chunks, reused_chunks_nr + 1,
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/builtin/pack-objects.c:986:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int lo = 0, hi = reused_chunks_nr;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:986:2: note: inferred assignment of ID-dependent value from ID-dependent variable mi [altera-id-dependent-backward-branch]
/datasets/git/builtin/pack-objects.c:986:6: warning: variable name 'lo' is too short, expected at least 3 characters [readability-identifier-length]
        int lo = 0, hi = reused_chunks_nr;
            ^
/datasets/git/builtin/pack-objects.c:986:14: warning: variable name 'hi' is too short, expected at least 3 characters [readability-identifier-length]
        int lo = 0, hi = reused_chunks_nr;
                    ^
/datasets/git/builtin/pack-objects.c:987:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (lo < hi) {
        ^
/datasets/git/builtin/pack-objects.c:987:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'lo' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (lo < hi) {
               ^
/datasets/git/builtin/pack-objects.c:988:7: warning: variable name 'mi' is too short, expected at least 3 characters [readability-identifier-length]
                int mi = lo + ((hi - lo) / 2);
                    ^
/datasets/git/builtin/pack-objects.c:989:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (where == reused_chunks[mi].original)
                                                        ^
                                                         {
/datasets/git/builtin/pack-objects.c:991:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (where < reused_chunks[mi].original)
                                                       ^
                                                        {
/datasets/git/builtin/pack-objects.c:993:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/pack-objects.c:1008:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        off_t offset, next, cur;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:1008:8: warning: variable 'offset' is not initialized [cppcoreguidelines-init-variables]
        off_t offset, next, cur;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:1008:16: warning: variable 'next' is not initialized [cppcoreguidelines-init-variables]
        off_t offset, next, cur;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:1008:22: warning: variable 'cur' is not initialized [cppcoreguidelines-init-variables]
        off_t offset, next, cur;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:1009:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/builtin/pack-objects.c:1010:16: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size;
                      ^
                           = 0
/datasets/git/builtin/pack-objects.c:1022:9: warning: variable 'base_offset' is not initialized [cppcoreguidelines-init-variables]
                off_t base_offset;
                      ^
                                  = 0
/datasets/git/builtin/pack-objects.c:1023:9: warning: variable 'fixup' is not initialized [cppcoreguidelines-init-variables]
                off_t fixup;
                      ^
                            = 0
/datasets/git/builtin/pack-objects.c:1026:12: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
                unsigned len;
                         ^
                             = 0
/datasets/git/builtin/pack-objects.c:1033:13: warning: variable 'base_pos' is not initialized [cppcoreguidelines-init-variables]
                        uint32_t base_pos;
                                 ^
                                          = 0
/datasets/git/builtin/pack-objects.c:1036:71: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (offset_to_pack_pos(reuse_packfile, base_offset, &base_pos) < 0)
                                                                                           ^
                                                                                            {
/datasets/git/builtin/pack-objects.c:1057:29: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        unsigned char ofs_header[10];
                                                 ^
/datasets/git/builtin/pack-objects.c:1058:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        unsigned i, ofs_len;
                        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:1058:13: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                        unsigned i, ofs_len;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:1058:13: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-objects.c:1058:16: warning: variable 'ofs_len' is not initialized [cppcoreguidelines-init-variables]
                        unsigned i, ofs_len;
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:1065:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ofs_header[i] = ofs & 127;
                                        ^~~
/datasets/git/builtin/pack-objects.c:1065:26: warning: 127 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        ofs_header[i] = ofs & 127;
                                              ^
/datasets/git/builtin/pack-objects.c:1066:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (ofs >>= 7)
                        ^
/datasets/git/builtin/pack-objects.c:1066:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'ofs' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (ofs >>= 7)
                               ^
/datasets/git/builtin/pack-objects.c:1066:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        while (ofs >>= 7)
                               ^~~
/datasets/git/builtin/pack-objects.c:1066:19: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        while (ofs >>= 7)
                                       ^
/datasets/git/builtin/pack-objects.c:1066:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        while (ofs >>= 7)
                                         ^
                                          {
/datasets/git/builtin/pack-objects.c:1067:23: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                ofs_header[--i] = 128 | (--ofs & 127);
                                                  ^
/datasets/git/builtin/pack-objects.c:1067:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                ofs_header[--i] = 128 | (--ofs & 127);
                                                  ^~~
/datasets/git/builtin/pack-objects.c:1067:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                ofs_header[--i] = 128 | (--ofs & 127);
                                                         ^~~~~
/datasets/git/builtin/pack-objects.c:1067:38: warning: 127 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                ofs_header[--i] = 128 | (--ofs & 127);
                                                                 ^
/datasets/git/builtin/pack-objects.c:1088:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (pos < reuse_packfile_bitmap->word_alloc &&
        ^
/datasets/git/builtin/pack-objects.c:1089:41: warning: either cast from 'int' to 'eword_t' (aka 'unsigned long') is ineffective, or there is loss of precision before the conversion [bugprone-misplaced-widening-cast]
                        reuse_packfile_bitmap->words[pos] == (eword_t)~0)
                                                             ^
/datasets/git/builtin/pack-objects.c:1089:50: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                        reuse_packfile_bitmap->words[pos] == (eword_t)~0)
                                                                      ^~
/datasets/git/builtin/pack-objects.c:1089:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        reuse_packfile_bitmap->words[pos] == (eword_t)~0)
                                                                         ^
                                                                          {
/datasets/git/builtin/pack-objects.c:1093:9: warning: variable 'to_write' is not initialized [cppcoreguidelines-init-variables]
                off_t to_write;
                      ^
                               = 0
/datasets/git/builtin/pack-objects.c:1096:14: warning: narrowing conversion from 'unsigned long' to signed type 'off_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                to_write = pack_pos_to_offset(reuse_packfile, written)
                           ^
/datasets/git/builtin/pack-objects.c:1110:48: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
static void write_reused_pack(struct hashfile *f)
                                               ^
/datasets/git/builtin/pack-objects.c:1112:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        size_t i = 0;
               ^
/datasets/git/builtin/pack-objects.c:1113:11: warning: variable 'offset' is not initialized [cppcoreguidelines-init-variables]
        uint32_t offset;
                 ^
                        = 0
/datasets/git/builtin/pack-objects.c:1113:2: note: inferred assignment of ID-dependent value from ID-dependent variable word [altera-id-dependent-backward-branch]
        uint32_t offset;
        ^
/datasets/git/builtin/pack-objects.c:1116:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (allow_ofs_delta)
                            ^
                             {
/datasets/git/builtin/pack-objects.c:1119:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; i < reuse_packfile_bitmap->word_alloc; ++i) {
               ^
/datasets/git/builtin/pack-objects.c:1123:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (offset = 0; offset < BITS_IN_EWORD; ++offset) {
                ^
/datasets/git/builtin/pack-objects.c:1123:20: warning: backward branch (for loop) is ID-dependent due to variable reference to 'offset' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (offset = 0; offset < BITS_IN_EWORD; ++offset) {
                                 ^
/datasets/git/builtin/pack-objects.c:1124:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if ((word >> offset) == 0)
                                                  ^
                                                   {
/datasets/git/builtin/pack-objects.c:1144:26: warning: variable 'oid' is not initialized [cppcoreguidelines-init-variables]
        const struct object_id *oid;
                                ^
                                    = NULL
/datasets/git/builtin/pack-objects.c:1147:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((oid = oidset_iter_next(&iter))) {
        ^
/datasets/git/builtin/pack-objects.c:1147:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'oid' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((oid = oidset_iter_next(&iter))) {
               ^
/datasets/git/builtin/pack-objects.c:1148:32: warning: variable name 'ex' is too short, expected at least 3 characters [readability-identifier-length]
                struct configured_exclusion *ex =
                                             ^
/datasets/git/builtin/pack-objects.c:1151:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ex)
                        ^
                         {
/datasets/git/builtin/pack-objects.c:1164:13: warning: function 'write_pack_file' has cognitive complexity of 59 (threshold 25) [readability-function-cognitive-complexity]
static void write_pack_file(void)
            ^
/datasets/git/builtin/pack-objects.c:1173:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (progress > pack_to_stdout)
        ^
/datasets/git/builtin/pack-objects.c:1178:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        do {
        ^
/datasets/git/builtin/pack-objects.c:1182:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (pack_to_stdout)
                ^
/datasets/git/builtin/pack-objects.c:1184:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/pack-objects.c:1189:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (reuse_packfile) {
                ^
/datasets/git/builtin/pack-objects.c:1190:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        assert(pack_to_stdout);
                        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/builtin/pack-objects.c:1190:4: note: nesting level increased to 3
                        assert(pack_to_stdout);
                        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/builtin/pack-objects.c:1190:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        assert(pack_to_stdout);
                        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/builtin/pack-objects.c:1190:4: note: +1, nesting level increased to 4
                        assert(pack_to_stdout);
                        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/builtin/pack-objects.c:1196:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (; i < to_pack.nr_objects; i++) {
                ^
/datasets/git/builtin/pack-objects.c:1198:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (write_one(f, e, &offset) == WRITE_ONE_BREAK)
                        ^
/datasets/git/builtin/pack-objects.c:1203:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (pack_to_stdout) {
                ^
/datasets/git/builtin/pack-objects.c:1213:10: note: +1, nesting level increased to 2
                } else if (nr_written == nr_remaining) {
                       ^
/datasets/git/builtin/pack-objects.c:1216:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/pack-objects.c:1226:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (write_bitmap_index) {
                        ^
/datasets/git/builtin/pack-objects.c:1227:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (write_bitmap_index != WRITE_BITMAP_QUIET)
                                ^
/datasets/git/builtin/pack-objects.c:1233:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!pack_to_stdout) {
                ^
/datasets/git/builtin/pack-objects.c:1245:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (stat(pack_tmp_name, &st) < 0) {
                        ^
/datasets/git/builtin/pack-objects.c:1247:11: note: +1, nesting level increased to 3
                        } else if (!last_mtime) {
                               ^
/datasets/git/builtin/pack-objects.c:1249:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/builtin/pack-objects.c:1253:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (utime(pack_tmp_name, &utb) < 0)
                                ^
/datasets/git/builtin/pack-objects.c:1260:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (write_bitmap_index) {
                        ^
/datasets/git/builtin/pack-objects.c:1266:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (cruft)
                        ^
/datasets/git/builtin/pack-objects.c:1274:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (write_bitmap_index) {
                        ^
/datasets/git/builtin/pack-objects.c:1282:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (bitmap_writer_build(&to_pack) < 0)
                                ^
/datasets/git/builtin/pack-objects.c:1299:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (j = 0; j < nr_written; j++) {
                ^
/datasets/git/builtin/pack-objects.c:1303:24: note: +1
        } while (nr_remaining && i < to_pack.nr_objects);
                              ^
/datasets/git/builtin/pack-objects.c:1308:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (written != nr_result)
        ^
/datasets/git/builtin/pack-objects.c:1166:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        uint32_t i = 0, j;
        ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:1166:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        uint32_t i = 0, j;
                 ^
/datasets/git/builtin/pack-objects.c:1166:18: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i = 0, j;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:1166:18: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-objects.c:1167:19: warning: variable 'f' is not initialized [cppcoreguidelines-init-variables]
        struct hashfile *f;
                         ^
                           = NULL
/datasets/git/builtin/pack-objects.c:1167:19: warning: variable name 'f' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-objects.c:1168:8: warning: variable 'offset' is not initialized [cppcoreguidelines-init-variables]
        off_t offset;
              ^
                     = 0
/datasets/git/builtin/pack-objects.c:1171:24: warning: variable 'write_order' is not initialized [cppcoreguidelines-init-variables]
        struct object_entry **write_order;
                              ^
                                          = NULL
/datasets/git/builtin/pack-objects.c:1173:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (progress > pack_to_stdout)
                                      ^
                                       {
/datasets/git/builtin/pack-objects.c:1175:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_ARRAY(written_list, to_pack.nr_objects);
        ^
/datasets/git/./git-compat-util.h:1090:53: note: expanded from macro 'ALLOC_ARRAY'
#define ALLOC_ARRAY(x, alloc) (x) = xmalloc(st_mult(sizeof(*(x)), (alloc)))
                                                    ^
/datasets/git/builtin/pack-objects.c:1182:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pack_to_stdout)
                                   ^
                                    {
/datasets/git/builtin/pack-objects.c:1184:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/pack-objects.c:1196:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (; i < to_pack.nr_objects; i++) {
                ^
/datasets/git/builtin/pack-objects.c:1197:25: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                        struct object_entry *e = write_order[i];
                                             ^
/datasets/git/builtin/pack-objects.c:1198:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (write_one(f, e, &offset) == WRITE_ONE_BREAK)
                                                                        ^
                                                                         {
/datasets/git/builtin/pack-objects.c:1212:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                          CSUM_HASH_IN_STREAM | CSUM_CLOSE);
                                          ^
/datasets/git/./csum-file.h:37:29: note: expanded from macro 'CSUM_HASH_IN_STREAM'
#define CSUM_HASH_IN_STREAM     4
                                ^
/datasets/git/builtin/pack-objects.c:1215:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                          CSUM_HASH_IN_STREAM | CSUM_FSYNC | CSUM_CLOSE);
                                          ^
/datasets/git/./csum-file.h:37:29: note: expanded from macro 'CSUM_HASH_IN_STREAM'
#define CSUM_HASH_IN_STREAM     4
                                ^
/datasets/git/builtin/pack-objects.c:1222:8: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
                        int fd = finalize_hashfile(f, hash, FSYNC_COMPONENT_PACK, 0);
                            ^
/datasets/git/builtin/pack-objects.c:1227:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (write_bitmap_index != WRITE_BITMAP_QUIET)
                                                                             ^
                                                                              {
/datasets/git/builtin/pack-objects.c:1234:16: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                        struct stat st;
                                    ^
/datasets/git/builtin/pack-objects.c:1253:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (utime(pack_tmp_name, &utb) < 0)
                                                                   ^
                                                                    {
/datasets/git/builtin/pack-objects.c:1266:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (cruft)
                                  ^
                                   {
/datasets/git/builtin/pack-objects.c:1267:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                pack_idx_opts.flags |= WRITE_MTIMES;
                                ^
/datasets/git/builtin/pack-objects.c:1282:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (bitmap_writer_build(&to_pack) < 0)
                                                                      ^
                                                                       {
/datasets/git/builtin/pack-objects.c:1299:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (j = 0; j < nr_written; j++) {
                ^
/datasets/git/builtin/pack-objects.c:1303:11: warning: backward branch (do loop) is ID-dependent due to variable reference to 'nr_remaining' and may cause performance degradation [altera-id-dependent-backward-branch]
        } while (nr_remaining && i < to_pack.nr_objects);
                 ^
/datasets/git/builtin/pack-objects.c:1308:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (written != nr_result)
                                 ^
                                  {
/datasets/git/builtin/pack-objects.c:1317:28: warning: variable 'check' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
        static struct attr_check *check;
                                  ^
/datasets/git/builtin/pack-objects.c:1319:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!check)
                   ^
                    {
/datasets/git/builtin/pack-objects.c:1322:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ATTR_FALSE(check->items[0].value))
                                              ^
                                               {
/datasets/git/builtin/pack-objects.c:1340:23: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
        struct object_entry *entry;
                             ^
                                   = NULL
/datasets/git/builtin/pack-objects.c:1343:67: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            bitmap_walk_contains(bitmap_git, reuse_packfile_bitmap, oid))
                                                                         ^
                                                                          {
/datasets/git/builtin/pack-objects.c:1347:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!entry)
                   ^
                    {
/datasets/git/builtin/pack-objects.c:1351:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!entry->preferred_base)
                                           ^
                                            {
/datasets/git/builtin/pack-objects.c:1360:28: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                             struct packed_git *p)
                                                ^
/datasets/git/builtin/pack-objects.c:1362:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (exclude)
                    ^
                     {
/datasets/git/builtin/pack-objects.c:1364:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (incremental)
                        ^
                         {
/datasets/git/builtin/pack-objects.c:1367:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_pack_valid(p))
                              ^
                               {
/datasets/git/builtin/pack-objects.c:1389:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (local && !p->pack_local)
                                    ^
                                     {
/datasets/git/builtin/pack-objects.c:1405:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ignore_packed_keep_on_disk)
                                               ^
                                                {
/datasets/git/builtin/pack-objects.c:1406:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        flags |= ON_DISK_KEEP_PACKS;
                        ^
/datasets/git/builtin/pack-objects.c:1407:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ignore_packed_keep_in_core)
                                               ^
                                                {
/datasets/git/builtin/pack-objects.c:1408:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        flags |= IN_CORE_KEEP_PACKS;
                        ^
/datasets/git/builtin/pack-objects.c:1410:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ignore_packed_keep_on_disk && p->pack_keep)
                                                               ^
                                                                {
/datasets/git/builtin/pack-objects.c:1412:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ignore_packed_keep_in_core && p->pack_keep_in_core)
                                                                       ^
                                                                        {
/datasets/git/builtin/pack-objects.c:1414:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (has_object_kept_pack(oid, flags))
                                                     ^
                                                      {
/datasets/git/builtin/pack-objects.c:1423:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!local || !have_non_local_packs)
                                            ^
                                             {
/datasets/git/builtin/pack-objects.c:1430:55: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static int want_object_in_pack_one(struct packed_git *p,
                                                      ^
/datasets/git/builtin/pack-objects.c:1436:8: warning: variable 'offset' is not initialized [cppcoreguidelines-init-variables]
        off_t offset;
              ^
                     = 0
/datasets/git/builtin/pack-objects.c:1438:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (p == *found_pack)
                             ^
                              {
/datasets/git/builtin/pack-objects.c:1440:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/pack-objects.c:1445:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!is_pack_valid(p))
                                              ^
                                               {
/datasets/git/builtin/pack-objects.c:1464:12: warning: function 'want_object_in_pack' has cognitive complexity of 28 (threshold 25) [readability-function-cognitive-complexity]
static int want_object_in_pack(const struct object_id *oid,
           ^
/datasets/git/builtin/pack-objects.c:1473:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!exclude && local && has_loose_object_nonlocal(oid))
        ^
/datasets/git/builtin/pack-objects.c:1473:24: note: +1
        if (!exclude && local && has_loose_object_nonlocal(oid))
                              ^
/datasets/git/builtin/pack-objects.c:1481:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (*found_pack) {
        ^
/datasets/git/builtin/pack-objects.c:1483:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (want != -1)
                ^
/datasets/git/builtin/pack-objects.c:1490:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (m = get_multi_pack_index(the_repository); m; m = m->next) {
        ^
/datasets/git/builtin/pack-objects.c:1492:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (fill_midx_entry(the_repository, oid, &e, m)) {
                ^
/datasets/git/builtin/pack-objects.c:1494:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (want != -1)
                        ^
/datasets/git/builtin/pack-objects.c:1499:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        list_for_each(pos, get_packed_git_mru(the_repository)) {
        ^
./list.h:130:2: note: expanded from macro 'list_for_each'
        for (pos = (head)->next; pos != (head); pos = pos->next)
        ^
/datasets/git/builtin/pack-objects.c:1502:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!exclude && want > 0)
                ^
/datasets/git/builtin/pack-objects.c:1502:16: note: +1
                if (!exclude && want > 0)
                             ^
/datasets/git/builtin/pack-objects.c:1505:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (want != -1)
                ^
/datasets/git/builtin/pack-objects.c:1509:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (uri_protocols.nr) {
        ^
/datasets/git/builtin/pack-objects.c:1515:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ex) {
                ^
/datasets/git/builtin/pack-objects.c:1516:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (i = 0; i < uri_protocols.nr; i++) {
                        ^
/datasets/git/builtin/pack-objects.c:1517:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (skip_prefix(ex->uri,
                                ^
/datasets/git/builtin/pack-objects.c:1519:11: note: +1
                                                &p) &&
                                                    ^
/datasets/git/builtin/pack-objects.c:1469:6: warning: variable 'want' is not initialized [cppcoreguidelines-init-variables]
        int want;
            ^
                 = 0
/datasets/git/builtin/pack-objects.c:1470:20: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        struct list_head *pos;
                          ^
                              = NULL
/datasets/git/builtin/pack-objects.c:1471:27: warning: variable 'm' is not initialized [cppcoreguidelines-init-variables]
        struct multi_pack_index *m;
                                 ^
                                   = NULL
/datasets/git/builtin/pack-objects.c:1471:27: warning: variable name 'm' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-objects.c:1473:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!exclude && local && has_loose_object_nonlocal(oid))
                                                                ^
                                                                 {
/datasets/git/builtin/pack-objects.c:1483:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (want != -1)
                               ^
                                {
/datasets/git/builtin/pack-objects.c:1490:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (m = get_multi_pack_index(the_repository); m; m = m->next) {
        ^
/datasets/git/builtin/pack-objects.c:1470:2: note: inferred assignment of ID-dependent value from ID-dependent member next [altera-id-dependent-backward-branch]
        struct list_head *pos;
        ^
/datasets/git/builtin/pack-objects.c:1490:49: warning: backward branch (for loop) is ID-dependent due to variable reference to 'm' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (m = get_multi_pack_index(the_repository); m; m = m->next) {
                                                       ^
/datasets/git/builtin/pack-objects.c:1491:21: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                struct pack_entry e;
                                  ^
/datasets/git/builtin/pack-objects.c:1494:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (want != -1)
                                       ^
                                        {
/datasets/git/builtin/pack-objects.c:1499:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        list_for_each(pos, get_packed_git_mru(the_repository)) {
        ^
./list.h:130:2: note: expanded from macro 'list_for_each'
        for (pos = (head)->next; pos != (head); pos = pos->next)
        ^
/datasets/git/builtin/pack-objects.c:1499:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'pos' and may cause performance degradation [altera-id-dependent-backward-branch]
        list_for_each(pos, get_packed_git_mru(the_repository)) {
                      ^
/datasets/git/builtin/pack-objects.c:1500:22: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct packed_git *p = list_entry(pos, struct packed_git, mru);
                                   ^
/datasets/git/builtin/pack-objects.c:1502:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!exclude && want > 0)
                                         ^
                                          {
/datasets/git/builtin/pack-objects.c:1505:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (want != -1)
                               ^
                                {
/datasets/git/builtin/pack-objects.c:1510:32: warning: variable name 'ex' is too short, expected at least 3 characters [readability-identifier-length]
                struct configured_exclusion *ex =
                                             ^
/datasets/git/builtin/pack-objects.c:1512:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/builtin/pack-objects.c:1512:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-objects.c:1513:15: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                const char *p;
                            ^
                              = NULL
/datasets/git/builtin/pack-objects.c:1513:15: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-objects.c:1516:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = 0; i < uri_protocols.nr; i++) {
                        ^
/datasets/git/builtin/pack-objects.c:1532:7: warning: 4 adjacent parameters of 'create_object_entry' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                                enum object_type type,
                                                ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:1532:24: note: the first parameter in the range is 'type'
                                                enum object_type type,
                                                                 ^~~~
/datasets/git/builtin/pack-objects.c:1535:11: note: the last parameter in the range is 'no_try_delta'
                                                int no_try_delta,
                                                    ^~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:1532:7: note: 
                                                enum object_type type,
                                                ^
/datasets/git/builtin/pack-objects.c:1533:7: note: 'enum object_type' and 'uint32_t' may be implicitly converted: 'enum object_type' -> 'uint32_t' (as 'unsigned int'), 'uint32_t' (as 'unsigned int') -> 'enum object_type'
                                                uint32_t hash,
                                                ^
/datasets/git/builtin/pack-objects.c:1534:7: note: 'enum object_type' and 'int' may be implicitly converted
                                                int exclude,
                                                ^
/datasets/git/builtin/pack-objects.c:1533:7: note: 
                                                uint32_t hash,
                                                ^
/datasets/git/builtin/pack-objects.c:1534:7: note: 'uint32_t' and 'int' may be implicitly converted: 'uint32_t' (as 'unsigned int') -> 'int', 'int' -> 'uint32_t' (as 'unsigned int')
                                                int exclude,
                                                ^
/datasets/git/builtin/pack-objects.c:1539:23: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
        struct object_entry *entry;
                             ^
                                   = NULL
/datasets/git/builtin/pack-objects.c:1544:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (exclude)
                    ^
                     {
/datasets/git/builtin/pack-objects.c:1546:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/pack-objects.c:1570:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (have_duplicate_entry(oid, exclude))
                                               ^
                                                {
/datasets/git/builtin/pack-objects.c:1576:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (write_bitmap_index != WRITE_BITMAP_QUIET)
                                                                     ^
                                                                      {
/datasets/git/builtin/pack-objects.c:1590:6: warning: 2 adjacent parameters of 'add_object_entry_from_bitmap' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                        enum object_type type,
                                        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:1590:23: note: the first parameter in the range is 'type'
                                        enum object_type type,
                                                         ^~~~
/datasets/git/builtin/pack-objects.c:1591:10: note: the last parameter in the range is 'flags'
                                        int flags, uint32_t name_hash,
                                            ^~~~~
/datasets/git/builtin/pack-objects.c:1591:6: note: 'enum object_type' and 'int' may be implicitly converted
                                        int flags, uint32_t name_hash,
                                        ^
/datasets/git/builtin/pack-objects.c:1591:10: warning: parameter 'flags' is unused [misc-unused-parameters]
                                        int flags, uint32_t name_hash,
                                            ^
/datasets/git/builtin/pack-objects.c:1596:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (have_duplicate_entry(oid, 0))
                                         ^
                                          {
/datasets/git/builtin/pack-objects.c:1599:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!want_object_in_pack(oid, 0, &pack, &offset))
                                                         ^
                                                          {
/datasets/git/builtin/pack-objects.c:1606:8: warning: accessing fields in struct 'pbase_tree_cache' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct pbase_tree_cache {
       ^
/datasets/git/builtin/pack-objects.c:1606:8: note: use "__attribute__((aligned(64)))" to align struct 'pbase_tree_cache' to 64 bytes
/datasets/git/builtin/pack-objects.c:1614:34: warning: variable 'pbase_tree_cache' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct pbase_tree_cache *(pbase_tree_cache[256]);
                                 ^
/datasets/git/builtin/pack-objects.c:1614:51: warning: 256 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
static struct pbase_tree_cache *(pbase_tree_cache[256]);
                                                  ^
/datasets/git/builtin/pack-objects.c:1617:9: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return oid->hash[0] % ARRAY_SIZE(pbase_tree_cache);
               ^
/datasets/git/builtin/pack-objects.c:1619:41: warning: parameter name 'ix' is too short, expected at least 3 characters [readability-identifier-length]
static int pbase_tree_cache_ix_incr(int ix)
                                        ^
/datasets/git/builtin/pack-objects.c:1621:9: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return (ix+1) % ARRAY_SIZE(pbase_tree_cache);
               ^
/datasets/git/builtin/pack-objects.c:1624:15: warning: accessing fields in struct 'pbase_tree' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
static struct pbase_tree {
              ^
/datasets/git/builtin/pack-objects.c:1624:15: note: use "__attribute__((aligned(128)))" to align struct 'pbase_tree' to 128 bytes
/datasets/git/builtin/pack-objects.c:1632:4: warning: variable 'pbase_tree' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} *pbase_tree;
   ^
/datasets/git/builtin/pack-objects.c:1632:4: warning: variable 'pbase_tree' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/pack-objects.c:1636:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct pbase_tree_cache *ent, *nent;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:1636:27: warning: variable 'ent' is not initialized [cppcoreguidelines-init-variables]
        struct pbase_tree_cache *ent, *nent;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:1636:33: warning: variable 'nent' is not initialized [cppcoreguidelines-init-variables]
        struct pbase_tree_cache *ent, *nent;
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:1637:8: warning: variable 'data' is not initialized [cppcoreguidelines-init-variables]
        void *data;
              ^
                   = NULL
/datasets/git/builtin/pack-objects.c:1638:16: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size;
                      ^
                           = 0
/datasets/git/builtin/pack-objects.c:1639:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/builtin/pack-objects.c:1640:6: warning: variable 'neigh' is not initialized [cppcoreguidelines-init-variables]
        int neigh;
            ^
                  = 0
/datasets/git/builtin/pack-objects.c:1648:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (neigh = 0; neigh < 8; neigh++) {
        ^
/datasets/git/builtin/pack-objects.c:1648:26: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        for (neigh = 0; neigh < 8; neigh++) {
                                ^
/datasets/git/builtin/pack-objects.c:1654:3: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                else if (((available_ix < 0) && (!ent || !ent->ref)) ||
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:1656:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                          (!ent && pbase_tree_cache[available_ix])))
                                                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:1658:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ent)
                         ^
                          {
/datasets/git/builtin/pack-objects.c:1667:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!data)
                  ^
                   {
/datasets/git/builtin/pack-objects.c:1676:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (available_ix < 0)
                             ^
                              {
/datasets/git/builtin/pack-objects.c:1696:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!nent->temporary)
                             ^
                              {
/datasets/git/builtin/pack-objects.c:1713:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/pack-objects.c:1713:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-objects.c:1714:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; name[i] && name[i] != '\n' && name[i] != '/'; i++)
        ^
/datasets/git/builtin/pack-objects.c:1714:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; name[i] && name[i] != '\n' && name[i] != '/'; i++)
                                                                      ^
                                                                       {
/datasets/git/builtin/pack-objects.c:1719:13: warning: function 'add_pbase_object' is within a recursive call chain [misc-no-recursion]
static void add_pbase_object(struct tree_desc *tree,
            ^
/datasets/git/builtin/pack-objects.c:1719:13: note: example recursive call chain, starting from function 'add_pbase_object'
/datasets/git/builtin/pack-objects.c:1753:4: note: Frame #1: function 'add_pbase_object' calls function 'add_pbase_object' here:
                        add_pbase_object(&sub, down, downlen, fullname);
                        ^
/datasets/git/builtin/pack-objects.c:1753:4: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/builtin/pack-objects.c:1725:6: warning: variable 'cmp' is not initialized [cppcoreguidelines-init-variables]
        int cmp;
            ^
                = 0
/datasets/git/builtin/pack-objects.c:1727:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (tree_entry(tree,&entry)) {
        ^
/datasets/git/builtin/pack-objects.c:1728:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (S_ISGITLINK(entry.mode))
                    ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/builtin/pack-objects.c:1728:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (S_ISGITLINK(entry.mode))
                                            ^
                                             {
/datasets/git/builtin/pack-objects.c:1732:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cmp > 0)
                            ^
                             {
/datasets/git/builtin/pack-objects.c:1734:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cmp < 0)
                            ^
                             {
/datasets/git/builtin/pack-objects.c:1744:29: warning: variable 'tree' is not initialized [cppcoreguidelines-init-variables]
                        struct pbase_tree_cache *tree;
                                                 ^
                                                      = NULL
/datasets/git/builtin/pack-objects.c:1749:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!tree)
                                  ^
                                   {
/datasets/git/builtin/pack-objects.c:1759:18: warning: variable 'done_pbase_paths' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned *done_pbase_paths;
                 ^
/datasets/git/builtin/pack-objects.c:1759:18: warning: variable 'done_pbase_paths' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/pack-objects.c:1760:12: warning: variable 'done_pbase_paths_num' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int done_pbase_paths_num;
           ^
/datasets/git/builtin/pack-objects.c:1761:12: warning: variable 'done_pbase_paths_alloc' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int done_pbase_paths_alloc;
           ^
/datasets/git/builtin/pack-objects.c:1764:2: note: inferred assignment of ID-dependent value from ID-dependent variable mi [altera-id-dependent-backward-branch]
        int lo = 0;
        ^
/datasets/git/builtin/pack-objects.c:1764:6: warning: variable name 'lo' is too short, expected at least 3 characters [readability-identifier-length]
        int lo = 0;
            ^
/datasets/git/builtin/pack-objects.c:1765:6: warning: variable name 'hi' is too short, expected at least 3 characters [readability-identifier-length]
        int hi = done_pbase_paths_num;
            ^
/datasets/git/builtin/pack-objects.c:1766:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (lo < hi) {
        ^
/datasets/git/builtin/pack-objects.c:1766:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'lo' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (lo < hi) {
               ^
/datasets/git/builtin/pack-objects.c:1767:7: warning: variable name 'mi' is too short, expected at least 3 characters [readability-identifier-length]
                int mi = lo + (hi - lo) / 2;
                    ^
/datasets/git/builtin/pack-objects.c:1768:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (done_pbase_paths[mi] == hash)
                                                 ^
                                                  {
/datasets/git/builtin/pack-objects.c:1770:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (done_pbase_paths[mi] < hash)
                                                ^
                                                 {
/datasets/git/builtin/pack-objects.c:1772:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/pack-objects.c:1781:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (0 <= pos)
                     ^
                      {
/datasets/git/builtin/pack-objects.c:1784:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(done_pbase_paths,
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/builtin/pack-objects.c:1788:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pos < done_pbase_paths_num)
                                       ^
                                        {
/datasets/git/builtin/pack-objects.c:1797:21: warning: variable 'it' is not initialized [cppcoreguidelines-init-variables]
        struct pbase_tree *it;
                           ^
                              = NULL
/datasets/git/builtin/pack-objects.c:1797:21: warning: variable name 'it' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-objects.c:1798:6: warning: variable 'cmplen' is not initialized [cppcoreguidelines-init-variables]
        int cmplen;
            ^
                   = 0
/datasets/git/builtin/pack-objects.c:1801:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!num_preferred_base || check_pbase_path(hash))
                                                          ^
                                                           {
/datasets/git/builtin/pack-objects.c:1805:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (it = pbase_tree; it; it = it->next) {
        ^
/datasets/git/builtin/pack-objects.c:1805:24: warning: backward branch (for loop) is ID-dependent due to variable reference to 'it' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (it = pbase_tree; it; it = it->next) {
                              ^
/datasets/git/builtin/pack-objects.c:1819:21: warning: variable 'it' is not initialized [cppcoreguidelines-init-variables]
        struct pbase_tree *it;
                           ^
                              = NULL
/datasets/git/builtin/pack-objects.c:1819:21: warning: variable name 'it' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-objects.c:1820:8: warning: variable 'data' is not initialized [cppcoreguidelines-init-variables]
        void *data;
              ^
                   = NULL
/datasets/git/builtin/pack-objects.c:1821:16: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size;
                      ^
                           = 0
/datasets/git/builtin/pack-objects.c:1850:2: note: inferred assignment of ID-dependent value from ID-dependent variable pbase_tree [altera-id-dependent-backward-branch]
        struct pbase_tree *it;
        ^
/datasets/git/builtin/pack-objects.c:1824:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (window <= num_preferred_base++)
                                           ^
                                            {
/datasets/git/builtin/pack-objects.c:1829:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!data)
                  ^
                   {
/datasets/git/builtin/pack-objects.c:1832:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (it = pbase_tree; it; it = it->next) {
        ^
/datasets/git/builtin/pack-objects.c:1832:24: warning: backward branch (for loop) is ID-dependent due to variable reference to 'it' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (it = pbase_tree; it; it = it->next) {
                              ^
/datasets/git/builtin/pack-objects.c:1850:21: warning: variable 'it' is not initialized [cppcoreguidelines-init-variables]
        struct pbase_tree *it;
                           ^
                              = NULL
/datasets/git/builtin/pack-objects.c:1850:21: warning: variable name 'it' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-objects.c:1851:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned i;
                 ^
                   = 0
/datasets/git/builtin/pack-objects.c:1851:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-objects.c:1855:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (it) {
        ^
/datasets/git/builtin/pack-objects.c:1855:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'it' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (it) {
               ^
/datasets/git/builtin/pack-objects.c:1863:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!pbase_tree_cache[i])
                                         ^
                                          {
/datasets/git/builtin/pack-objects.c:1866:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FREE_AND_NULL(pbase_tree_cache[i]);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/pack-objects.c:1869:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(done_pbase_paths);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/pack-objects.c:1888:23: warning: variable 'base' is not initialized [cppcoreguidelines-init-variables]
        struct object_entry *base;
                             ^
                                  = NULL
/datasets/git/builtin/pack-objects.c:1896:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!in_same_island(&delta->idx.oid, &base->idx.oid))
                                                                     ^
                                                                      {
/datasets/git/builtin/pack-objects.c:1909:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!in_same_island(&delta->idx.oid, base_oid))
                                                                       ^
                                                                        {
/datasets/git/builtin/pack-objects.c:1921:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i;
                 ^
                   = 0
/datasets/git/builtin/pack-objects.c:1921:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-objects.c:1923:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = object_index_start; i < to_pack.nr_objects; i++) {
        ^
/datasets/git/builtin/pack-objects.c:1923:31: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = object_index_start; i < to_pack.nr_objects; i++) {
                                     ^
/datasets/git/builtin/pack-objects.c:1929:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                              OBJECT_INFO_FOR_PREFETCH))
                                              ^
/datasets/git/./object-store.h:448:35: note: expanded from macro 'OBJECT_INFO_FOR_PREFETCH'
#define OBJECT_INFO_FOR_PREFETCH (OBJECT_INFO_SKIP_FETCH_OBJECT | OBJECT_INFO_QUICK)
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./object-store.h:443:39: note: expanded from macro 'OBJECT_INFO_SKIP_FETCH_OBJECT'
#define OBJECT_INFO_SKIP_FETCH_OBJECT 32
                                      ^~
/datasets/git/builtin/pack-objects.c:1929:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                              OBJECT_INFO_FOR_PREFETCH))
                                                                        ^
                                                                         {
/datasets/git/builtin/pack-objects.c:1934:22: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                   to_fetch.oid, to_fetch.nr);
                                                 ^
/datasets/git/builtin/pack-objects.c:1938:13: warning: function 'check_object' has cognitive complexity of 62 (threshold 25) [readability-function-cognitive-complexity]
static void check_object(struct object_entry *entry, uint32_t object_index)
            ^
/datasets/git/builtin/pack-objects.c:1944:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (IN_PACK(entry)) {
        ^
/datasets/git/builtin/pack-objects.c:1966:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (used == 0)
                ^
/datasets/git/builtin/pack-objects.c:1969:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (type < 0)
                ^
/datasets/git/builtin/pack-objects.c:1978:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                switch (entry->in_pack_type) {
                ^
/datasets/git/builtin/pack-objects.c:1984:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (oe_type(entry) < OBJ_COMMIT || oe_type(entry) > OBJ_BLOB)
                        ^
/datasets/git/builtin/pack-objects.c:1984:36: note: +1
                        if (oe_type(entry) < OBJ_COMMIT || oe_type(entry) > OBJ_BLOB)
                                                        ^
/datasets/git/builtin/pack-objects.c:1989:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (reuse_delta && !entry->preferred_base) {
                        ^
/datasets/git/builtin/pack-objects.c:1989:20: note: +1
                        if (reuse_delta && !entry->preferred_base) {
                                        ^
/datasets/git/builtin/pack-objects.c:2004:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (c & 128) {
                        ^
/datasets/git/builtin/pack-objects.c:2006:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!ofs || MSB(ofs, 7)) {
                                ^
/datasets/git/builtin/pack-objects.c:2006:14: note: +1
                                if (!ofs || MSB(ofs, 7)) {
                                         ^
/datasets/git/builtin/pack-objects.c:2009:6: note: +1
                                        goto give_up;
                                        ^
/datasets/git/builtin/pack-objects.c:2015:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ofs <= 0 || ofs >= entry->in_pack_offset) {
                        ^
/datasets/git/builtin/pack-objects.c:2015:17: note: +1
                        if (ofs <= 0 || ofs >= entry->in_pack_offset) {
                                     ^
/datasets/git/builtin/pack-objects.c:2018:5: note: +1
                                goto give_up;
                                ^
/datasets/git/builtin/pack-objects.c:2020:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (reuse_delta && !entry->preferred_base) {
                        ^
/datasets/git/builtin/pack-objects.c:2020:20: note: +1
                        if (reuse_delta && !entry->preferred_base) {
                                        ^
/datasets/git/builtin/pack-objects.c:2022:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (offset_to_pack_pos(p, ofs, &pos) < 0)
                                ^
/datasets/git/builtin/pack-objects.c:2024:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!nth_packed_object_id(&base_ref, p,
                                ^
/datasets/git/builtin/pack-objects.c:2032:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (have_base &&
                ^
/datasets/git/builtin/pack-objects.c:2032:17: note: +1
                if (have_base &&
                              ^
/datasets/git/builtin/pack-objects.c:2038:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (base_entry) {
                        ^
/datasets/git/builtin/pack-objects.c:2042:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/builtin/pack-objects.c:2050:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (oe_type(entry)) {
                ^
/datasets/git/builtin/pack-objects.c:2060:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (canonical_size == 0)
                        ^
/datasets/git/builtin/pack-objects.c:2076:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (oid_object_info_extended(the_repository, &entry->idx.oid, &oi,
        ^
/datasets/git/builtin/pack-objects.c:2078:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (has_promisor_remote()) {
                ^
/datasets/git/builtin/pack-objects.c:2080:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (oid_object_info_extended(the_repository, &entry->idx.oid, &oi,
                        ^
/datasets/git/builtin/pack-objects.c:2083:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/pack-objects.c:2088:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (entry->type_valid) {
        ^
/datasets/git/builtin/pack-objects.c:2090:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/pack-objects.c:1940:16: warning: variable 'canonical_size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long canonical_size;
                      ^
                                     = 0
/datasets/git/builtin/pack-objects.c:1941:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/builtin/pack-objects.c:1942:21: warning: variable name 'oi' is too short, expected at least 3 characters [readability-identifier-length]
        struct object_info oi = {.typep = &type, .sizep = &canonical_size};
                           ^
/datasets/git/builtin/pack-objects.c:1945:22: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct packed_git *p = IN_PACK(entry);
                                   ^
/datasets/git/builtin/pack-objects.c:1949:24: warning: variable 'base_entry' is not initialized [cppcoreguidelines-init-variables]
                struct object_entry *base_entry;
                                     ^
                                                = NULL
/datasets/git/builtin/pack-objects.c:1950:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                unsigned long used, used_0;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:1950:17: warning: variable 'used' is not initialized [cppcoreguidelines-init-variables]
                unsigned long used, used_0;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:1950:23: warning: variable 'used_0' is not initialized [cppcoreguidelines-init-variables]
                unsigned long used, used_0;
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:1951:17: warning: variable 'avail' is not initialized [cppcoreguidelines-init-variables]
                unsigned long avail;
                              ^
                                    = 0
/datasets/git/builtin/pack-objects.c:1952:9: warning: variable 'ofs' is not initialized [cppcoreguidelines-init-variables]
                off_t ofs;
                      ^
                          = 0
/datasets/git/builtin/pack-objects.c:1953:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                unsigned char *buf, c;
                ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:1953:18: warning: variable 'buf' is not initialized [cppcoreguidelines-init-variables]
                unsigned char *buf, c;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:1953:23: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
                unsigned char *buf, c;
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:1953:23: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-objects.c:1954:20: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
                enum object_type type;
                                 ^
/datasets/git/builtin/pack-objects.c:1955:17: warning: variable 'in_pack_size' is not initialized [cppcoreguidelines-init-variables]
                unsigned long in_pack_size;
                              ^
                                           = 0
/datasets/git/builtin/pack-objects.c:1966:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (used == 0)
                              ^
                               {
/datasets/git/builtin/pack-objects.c:1969:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (type < 0)
                             ^
                              {
/datasets/git/builtin/pack-objects.c:1984:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (oe_type(entry) < OBJ_COMMIT || oe_type(entry) > OBJ_BLOB)
                                                                                     ^
                                                                                      {
/datasets/git/builtin/pack-objects.c:1992:8: warning: narrowing conversion from 'unsigned long' to signed type 'off_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                                 entry->in_pack_offset + used,
                                                 ^
/datasets/git/builtin/pack-objects.c:2000:12: warning: narrowing conversion from 'unsigned long' to signed type 'off_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                       entry->in_pack_offset + used, NULL);
                                       ^
/datasets/git/builtin/pack-objects.c:2003:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ofs = c & 127;
                              ^   ~~~
/datasets/git/builtin/pack-objects.c:2003:14: warning: 127 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        ofs = c & 127;
                                  ^
/datasets/git/builtin/pack-objects.c:2004:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (c & 128) {
                        ^
/datasets/git/builtin/pack-objects.c:2004:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'c' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (c & 128) {
                               ^
/datasets/git/builtin/pack-objects.c:2004:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        while (c & 128) {
                               ^   ~~~
/datasets/git/builtin/pack-objects.c:2004:15: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        while (c & 128) {
                                   ^
/datasets/git/builtin/pack-objects.c:2006:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (!ofs || MSB(ofs, 7)) {
                                            ^
/datasets/git/./git-compat-util.h:155:23: note: expanded from macro 'MSB'
#define MSB(x, bits) ((x) & TYPEOF(x)(~0ULL << (bitsizeof(x) - (bits))))
                      ^~~
/datasets/git/builtin/pack-objects.c:2012:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                ofs = (ofs << 7) + (c & 127);
                                       ^~~
/datasets/git/builtin/pack-objects.c:2012:19: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                ofs = (ofs << 7) + (c & 127);
                                              ^
/datasets/git/builtin/pack-objects.c:2012:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                ofs = (ofs << 7) + (c & 127);
                                                    ^   ~~~
/datasets/git/builtin/pack-objects.c:2012:29: warning: 127 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                ofs = (ofs << 7) + (c & 127);
                                                        ^
/datasets/git/builtin/pack-objects.c:2021:14: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
                                uint32_t pos;
                                         ^
                                             = 0
/datasets/git/builtin/pack-objects.c:2022:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (offset_to_pack_pos(p, ofs, &pos) < 0)
                                                                         ^
                                                                          {
/datasets/git/builtin/pack-objects.c:2025:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                          pack_pos_to_index(p, pos)))
                                                                                     ^
                                                                                      {
/datasets/git/builtin/pack-objects.c:2051:10: warning: variable 'delta_pos' is not initialized [cppcoreguidelines-init-variables]
                        off_t delta_pos;
                              ^
                                        = 0
/datasets/git/builtin/pack-objects.c:2060:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (canonical_size == 0)
                                                ^
                                                 {
/datasets/git/builtin/pack-objects.c:2077:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                     OBJECT_INFO_SKIP_FETCH_OBJECT | OBJECT_INFO_LOOKUP_REPLACE) < 0) {
                                     ^
/datasets/git/./object-store.h:443:39: note: expanded from macro 'OBJECT_INFO_SKIP_FETCH_OBJECT'
#define OBJECT_INFO_SKIP_FETCH_OBJECT 32
                                      ^~
/datasets/git/builtin/pack-objects.c:2081:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                                     OBJECT_INFO_SKIP_FETCH_OBJECT | OBJECT_INFO_LOOKUP_REPLACE) < 0)
                                                     ^
/datasets/git/./object-store.h:443:39: note: expanded from macro 'OBJECT_INFO_SKIP_FETCH_OBJECT'
#define OBJECT_INFO_SKIP_FETCH_OBJECT 32
                                      ^~
/datasets/git/builtin/pack-objects.c:2081:76: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                     OBJECT_INFO_SKIP_FETCH_OBJECT | OBJECT_INFO_LOOKUP_REPLACE) < 0)
                                                                                                                     ^
                                                                                                                      {
/datasets/git/builtin/pack-objects.c:2100:41: warning: parameter name '_a' is too short, expected at least 3 characters [readability-identifier-length]
static int pack_offset_sort(const void *_a, const void *_b)
                                        ^
/datasets/git/builtin/pack-objects.c:2100:57: warning: parameter name '_b' is too short, expected at least 3 characters [readability-identifier-length]
static int pack_offset_sort(const void *_a, const void *_b)
                                                        ^
/datasets/git/builtin/pack-objects.c:2102:29: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        const struct object_entry *a = *(struct object_entry **)_a;
                                   ^
/datasets/git/builtin/pack-objects.c:2103:29: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        const struct object_entry *b = *(struct object_entry **)_b;
                                   ^
/datasets/git/builtin/pack-objects.c:2134:2: note: inferred assignment of ID-dependent value from ID-dependent member delta_child_idx [altera-id-dependent-backward-branch]
        unsigned *idx = &to_pack.objects[entry->delta_idx - 1].delta_child_idx;
        ^
/datasets/git/builtin/pack-objects.c:2108:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!a_in_pack && !b_in_pack)
                                     ^
                                      {
/datasets/git/builtin/pack-objects.c:2111:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (a_in_pack < b_in_pack)
                                  ^
                                   {
/datasets/git/builtin/pack-objects.c:2113:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (a_in_pack > b_in_pack)
                                  ^
                                   {
/datasets/git/builtin/pack-objects.c:2135:21: warning: variable name 'oi' is too short, expected at least 3 characters [readability-identifier-length]
        struct object_info oi = OBJECT_INFO_INIT;
                           ^
/datasets/git/builtin/pack-objects.c:2136:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/builtin/pack-objects.c:2137:16: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size;
                      ^
                           = 0
/datasets/git/builtin/pack-objects.c:2139:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*idx) {
        ^
/datasets/git/builtin/pack-objects.c:2139:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'idx' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (*idx) {
               ^
/datasets/git/builtin/pack-objects.c:2140:24: warning: variable name 'oe' is too short, expected at least 3 characters [readability-identifier-length]
                struct object_entry *oe = &to_pack.objects[*idx - 1];
                                     ^
/datasets/git/builtin/pack-objects.c:2142:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (oe == entry)
                                ^
                                 {
/datasets/git/builtin/pack-objects.c:2144:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/pack-objects.c:2183:11: warning: variable 'total_depth' is not initialized [cppcoreguidelines-init-variables]
        uint32_t total_depth;
                 ^
                             = 0
/datasets/git/builtin/pack-objects.c:2184:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct object_entry *cur, *next;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:2184:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/builtin/pack-objects.c:2184:23: warning: variable 'cur' is not initialized [cppcoreguidelines-init-variables]
        struct object_entry *cur, *next;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:2184:29: warning: variable 'next' is not initialized [cppcoreguidelines-init-variables]
        struct object_entry *cur, *next;
                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:2186:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cur = entry, total_depth = 0;
        ^
/datasets/git/builtin/pack-objects.c:2184:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct object_entry *cur, *next;
        ^
/datasets/git/builtin/pack-objects.c:2187:7: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cur' and may cause performance degradation [altera-id-dependent-backward-branch]
             cur;
             ^
/datasets/git/builtin/pack-objects.c:2204:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cur->dfs_state != DFS_NONE)
                                               ^
                                                {
/datasets/git/builtin/pack-objects.c:2250:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cur = entry; cur; cur = next) {
        ^
/datasets/git/builtin/pack-objects.c:2250:20: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cur' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (cur = entry; cur; cur = next) {
                          ^
/datasets/git/builtin/pack-objects.c:2259:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cur->dfs_state == DFS_DONE)
                                               ^
                                                {
/datasets/git/builtin/pack-objects.c:2261:3: warning: do not use 'else' after 'break' [llvm-else-after-return,readability-else-after-return]
                else if (cur->dfs_state != DFS_ACTIVE)
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:2261:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (cur->dfs_state != DFS_ACTIVE)
                                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:2284:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!cur->depth)
                                ^
                                 {
/datasets/git/builtin/pack-objects.c:2293:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i;
                 ^
                   = 0
/datasets/git/builtin/pack-objects.c:2293:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-objects.c:2294:24: warning: variable 'sorted_by_offset' is not initialized [cppcoreguidelines-init-variables]
        struct object_entry **sorted_by_offset;
                              ^
                                               = NULL
/datasets/git/builtin/pack-objects.c:2296:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (progress)
                     ^
                      {
/datasets/git/builtin/pack-objects.c:2300:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        CALLOC_ARRAY(sorted_by_offset, to_pack.nr_objects);
        ^
/datasets/git/./git-compat-util.h:1091:55: note: expanded from macro 'CALLOC_ARRAY'
#define CALLOC_ARRAY(x, alloc) (x) = xcalloc((alloc), sizeof(*(x)))
                                                      ^
/datasets/git/builtin/pack-objects.c:2301:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < to_pack.nr_objects; i++)
        ^
/datasets/git/builtin/pack-objects.c:2301:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < to_pack.nr_objects; i++)
                                                ^
                                                 {
/datasets/git/builtin/pack-objects.c:2303:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        QSORT(sorted_by_offset, to_pack.nr_objects, pack_offset_sort);
        ^
/datasets/git/./git-compat-util.h:1304:56: note: expanded from macro 'QSORT'
#define QSORT(base, n, compar) sane_qsort((base), (n), sizeof(*(base)), compar)
                                                       ^
/datasets/git/builtin/pack-objects.c:2305:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < to_pack.nr_objects; i++) {
        ^
/datasets/git/builtin/pack-objects.c:2309:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    oe_size_greater_than(&to_pack, entry, big_file_threshold))
                                                                              ^
                                                                               {
/datasets/git/builtin/pack-objects.c:2319:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < to_pack.nr_objects; i++)
        ^
/datasets/git/builtin/pack-objects.c:2319:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < to_pack.nr_objects; i++)
                                                ^
                                                 {
/datasets/git/builtin/pack-objects.c:2334:39: warning: parameter name '_a' is too short, expected at least 3 characters [readability-identifier-length]
static int type_size_sort(const void *_a, const void *_b)
                                      ^
/datasets/git/builtin/pack-objects.c:2334:55: warning: parameter name '_b' is too short, expected at least 3 characters [readability-identifier-length]
static int type_size_sort(const void *_a, const void *_b)
                                                      ^
/datasets/git/builtin/pack-objects.c:2336:29: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        const struct object_entry *a = *(struct object_entry **)_a;
                                   ^
/datasets/git/builtin/pack-objects.c:2337:29: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        const struct object_entry *b = *(struct object_entry **)_b;
                                   ^
/datasets/git/builtin/pack-objects.c:2343:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (a_type > b_type)
                            ^
                             {
/datasets/git/builtin/pack-objects.c:2345:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (a_type < b_type)
                            ^
                             {
/datasets/git/builtin/pack-objects.c:2347:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (a->hash > b->hash)
                              ^
                               {
/datasets/git/builtin/pack-objects.c:2349:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (a->hash < b->hash)
                              ^
                               {
/datasets/git/builtin/pack-objects.c:2351:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (a->preferred_base > b->preferred_base)
                                                  ^
                                                   {
/datasets/git/builtin/pack-objects.c:2353:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (a->preferred_base < b->preferred_base)
                                                  ^
                                                   {
/datasets/git/builtin/pack-objects.c:2357:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (island_cmp)
                               ^
                                {
/datasets/git/builtin/pack-objects.c:2360:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (a_size > b_size)
                            ^
                             {
/datasets/git/builtin/pack-objects.c:2362:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (a_size < b_size)
                            ^
                             {
/datasets/git/builtin/pack-objects.c:2367:8: warning: accessing fields in struct 'unpacked' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct unpacked {
       ^
/datasets/git/builtin/pack-objects.c:2367:8: note: use "__attribute__((aligned(32)))" to align struct 'unpacked' to 32 bytes
/datasets/git/builtin/pack-objects.c:2377:83: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (max_delta_cache_size && delta_cache_size + delta_size > max_delta_cache_size)
                                                                                         ^
                                                                                          {
/datasets/git/builtin/pack-objects.c:2380:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (delta_size < cache_max_small_delta_size)
                                                    ^
                                                     {
/datasets/git/builtin/pack-objects.c:2384:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((src_size >> 20) + (trg_size >> 21) > (delta_size >> 10))
             ^           ~~
/datasets/git/builtin/pack-objects.c:2384:19: warning: 20 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if ((src_size >> 20) + (trg_size >> 21) > (delta_size >> 10))
                         ^
/datasets/git/builtin/pack-objects.c:2384:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((src_size >> 20) + (trg_size >> 21) > (delta_size >> 10))
                                ^           ~~
/datasets/git/builtin/pack-objects.c:2384:38: warning: 21 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if ((src_size >> 20) + (trg_size >> 21) > (delta_size >> 10))
                                            ^
/datasets/git/builtin/pack-objects.c:2384:45: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((src_size >> 20) + (trg_size >> 21) > (delta_size >> 10))
                                                   ^             ~~
/datasets/git/builtin/pack-objects.c:2384:59: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if ((src_size >> 20) + (trg_size >> 21) > (delta_size >> 10))
                                                                 ^
/datasets/git/builtin/pack-objects.c:2384:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((src_size >> 20) + (trg_size >> 21) > (delta_size >> 10))
                                                                     ^
                                                                      {
/datasets/git/builtin/pack-objects.c:2391:24: warning: variable 'cache_mutex' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static pthread_mutex_t cache_mutex;
                       ^
/datasets/git/builtin/pack-objects.c:2399:24: warning: variable 'progress_mutex' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static pthread_mutex_t progress_mutex;
                       ^
/datasets/git/builtin/pack-objects.c:2414:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (lhs->size_valid)
                            ^
                             {
/datasets/git/builtin/pack-objects.c:2416:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (rhs < pack->oe_size_limit) /* rhs < 2^x <= lhs ? */
                                      ^
                                       {
/datasets/git/builtin/pack-objects.c:2422:31: warning: parameter name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                                     struct object_entry *e,
                                                          ^
/datasets/git/builtin/pack-objects.c:2425:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!pack->tree_depth)
                              ^
                               {
/datasets/git/builtin/pack-objects.c:2436:38: warning: parameter name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                               const struct object_entry *e)
                                                          ^
/datasets/git/builtin/pack-objects.c:2438:21: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct packed_git *p;
                           ^
                             = NULL
/datasets/git/builtin/pack-objects.c:2438:21: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-objects.c:2439:22: warning: variable 'w_curs' is not initialized [cppcoreguidelines-init-variables]
        struct pack_window *w_curs;
                            ^
                                   = NULL
/datasets/git/builtin/pack-objects.c:2440:17: warning: variable 'buf' is not initialized [cppcoreguidelines-init-variables]
        unsigned char *buf;
                       ^
                           = NULL
/datasets/git/builtin/pack-objects.c:2441:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/builtin/pack-objects.c:2442:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned long used, avail, size;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:2442:16: warning: variable 'used' is not initialized [cppcoreguidelines-init-variables]
        unsigned long used, avail, size;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:2442:22: warning: variable 'avail' is not initialized [cppcoreguidelines-init-variables]
        unsigned long used, avail, size;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:2442:29: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long used, avail, size;
                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:2446:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (oid_object_info(the_repository, &e->idx.oid, &size) < 0)
                                                                            ^
                                                                             {
/datasets/git/builtin/pack-objects.c:2454:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!p)
               ^
                {
/datasets/git/builtin/pack-objects.c:2461:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (used == 0)
                      ^
                       {
/datasets/git/builtin/pack-objects.c:2470:12: warning: function 'try_delta' has cognitive complexity of 42 (threshold 25) [readability-function-cognitive-complexity]
static int try_delta(struct unpacked *trg, struct unpacked *src,
           ^
/datasets/git/builtin/pack-objects.c:2481:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (oe_type(trg_entry) != oe_type(src_entry))
        ^
/datasets/git/builtin/pack-objects.c:2492:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (reuse_delta && IN_PACK(trg_entry) &&
        ^
/datasets/git/builtin/pack-objects.c:2495:47: note: +1
            trg_entry->in_pack_type != OBJ_REF_DELTA &&
                                                     ^
/datasets/git/builtin/pack-objects.c:2500:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (src->depth >= max_depth)
        ^
/datasets/git/builtin/pack-objects.c:2505:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!DELTA(trg_entry)) {
        ^
/datasets/git/builtin/pack-objects.c:2508:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/pack-objects.c:2514:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (max_size == 0)
        ^
/datasets/git/builtin/pack-objects.c:2517:33: note: +1, including nesting penalty of 0, nesting level increased to 1
        sizediff = src_size < trg_size ? trg_size - src_size : 0;
                                       ^
/datasets/git/builtin/pack-objects.c:2518:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (sizediff >= max_size)
        ^
/datasets/git/builtin/pack-objects.c:2520:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (trg_size < src_size / 32)
        ^
/datasets/git/builtin/pack-objects.c:2523:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!in_same_island(&trg->entry->idx.oid, &src->entry->idx.oid))
        ^
/datasets/git/builtin/pack-objects.c:2527:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!trg->data) {
        ^
/datasets/git/builtin/pack-objects.c:2531:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!trg->data)
                ^
/datasets/git/builtin/pack-objects.c:2534:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (sz != trg_size)
                ^
/datasets/git/builtin/pack-objects.c:2540:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!src->data) {
        ^
/datasets/git/builtin/pack-objects.c:2544:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!src->data) {
                ^
/datasets/git/builtin/pack-objects.c:2545:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (src_entry->preferred_base) {
                        ^
/datasets/git/builtin/pack-objects.c:2547:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!warned++)
                                ^
/datasets/git/builtin/pack-objects.c:2561:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (sz != src_size)
                ^
/datasets/git/builtin/pack-objects.c:2567:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!src->index) {
        ^
/datasets/git/builtin/pack-objects.c:2569:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!src->index) {
                ^
/datasets/git/builtin/pack-objects.c:2571:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!warned++)
                        ^
/datasets/git/builtin/pack-objects.c:2579:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!delta_buf)
        ^
/datasets/git/builtin/pack-objects.c:2582:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (DELTA(trg_entry)) {
        ^
/datasets/git/builtin/pack-objects.c:2584:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (delta_size == DELTA_SIZE(trg_entry) &&
                ^
/datasets/git/builtin/pack-objects.c:2584:43: note: +1
                if (delta_size == DELTA_SIZE(trg_entry) &&
                                                        ^
/datasets/git/builtin/pack-objects.c:2598:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (trg_entry->delta_data) {
        ^
/datasets/git/builtin/pack-objects.c:2602:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (delta_cacheable(src_size, trg_size, delta_size)) {
        ^
/datasets/git/builtin/pack-objects.c:2606:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/pack-objects.c:2475:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned long trg_size, src_size, delta_size, sizediff, max_size, sz;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:2475:16: warning: variable 'trg_size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long trg_size, src_size, delta_size, sizediff, max_size, sz;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:2475:26: warning: variable 'src_size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long trg_size, src_size, delta_size, sizediff, max_size, sz;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:2475:36: warning: variable 'delta_size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long trg_size, src_size, delta_size, sizediff, max_size, sz;
                                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:2475:48: warning: variable 'sizediff' is not initialized [cppcoreguidelines-init-variables]
        unsigned long trg_size, src_size, delta_size, sizediff, max_size, sz;
                                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:2475:58: warning: variable 'max_size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long trg_size, src_size, delta_size, sizediff, max_size, sz;
                                                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:2475:68: warning: variable 'sz' is not initialized [cppcoreguidelines-init-variables]
        unsigned long trg_size, src_size, delta_size, sizediff, max_size, sz;
                                                                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:2475:68: warning: variable name 'sz' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-objects.c:2476:11: warning: variable 'ref_depth' is not initialized [cppcoreguidelines-init-variables]
        unsigned ref_depth;
                 ^
                           = 0
/datasets/git/builtin/pack-objects.c:2477:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/builtin/pack-objects.c:2478:8: warning: variable 'delta_buf' is not initialized [cppcoreguidelines-init-variables]
        void *delta_buf;
              ^
                        = NULL
/datasets/git/builtin/pack-objects.c:2481:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oe_type(trg_entry) != oe_type(src_entry))
                                                     ^
                                                      {
/datasets/git/builtin/pack-objects.c:2496:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            trg_entry->in_pack_type != OBJ_OFS_DELTA)
                                                     ^
                                                      {
/datasets/git/builtin/pack-objects.c:2500:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (src->depth >= max_depth)
                                    ^
                                     {
/datasets/git/builtin/pack-objects.c:2514:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (max_size == 0)
                          ^
                           {
/datasets/git/builtin/pack-objects.c:2518:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (sizediff >= max_size)
                                 ^
                                  {
/datasets/git/builtin/pack-objects.c:2520:28: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (trg_size < src_size / 32)
                                  ^
/datasets/git/builtin/pack-objects.c:2520:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (trg_size < src_size / 32)
                                     ^
                                      {
/datasets/git/builtin/pack-objects.c:2523:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!in_same_island(&trg->entry->idx.oid, &src->entry->idx.oid))
                                                                        ^
                                                                         {
/datasets/git/builtin/pack-objects.c:2531:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!trg->data)
                               ^
                                {
/datasets/git/builtin/pack-objects.c:2534:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (sz != trg_size)
                                   ^
                                    {
/datasets/git/builtin/pack-objects.c:2547:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!warned++)
                                              ^
                                               {
/datasets/git/builtin/pack-objects.c:2561:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (sz != src_size)
                                   ^
                                    {
/datasets/git/builtin/pack-objects.c:2571:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!warned++)
                                      ^
                                       {
/datasets/git/builtin/pack-objects.c:2579:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!delta_buf)
                       ^
                        {
/datasets/git/builtin/pack-objects.c:2618:21: warning: function 'check_delta_limit' is within a recursive call chain [misc-no-recursion]
static unsigned int check_delta_limit(struct object_entry *me, unsigned int n)
                    ^
/datasets/git/builtin/pack-objects.c:2618:21: note: example recursive call chain, starting from function 'check_delta_limit'
/datasets/git/builtin/pack-objects.c:2623:26: note: Frame #1: function 'check_delta_limit' calls function 'check_delta_limit' here:
                const unsigned int c = check_delta_limit(child, n + 1);
                                       ^
/datasets/git/builtin/pack-objects.c:2623:26: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/builtin/pack-objects.c:2618:60: warning: parameter name 'me' is too short, expected at least 3 characters [readability-identifier-length]
static unsigned int check_delta_limit(struct object_entry *me, unsigned int n)
                                                           ^
/datasets/git/builtin/pack-objects.c:2620:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct object_entry *child = DELTA_CHILD(me);
        ^
/datasets/git/builtin/pack-objects.c:2621:15: warning: variable name 'm' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned int m = n;
                     ^
/datasets/git/builtin/pack-objects.c:2622:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (child) {
        ^
/datasets/git/builtin/pack-objects.c:2622:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'child' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (child) {
               ^
/datasets/git/builtin/pack-objects.c:2623:22: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                const unsigned int c = check_delta_limit(child, n + 1);
                                   ^
/datasets/git/builtin/pack-objects.c:2624:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (m < c)
                          ^
                           {
/datasets/git/builtin/pack-objects.c:2638:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FREE_AND_NULL(n->data);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/pack-objects.c:2645:13: warning: function 'find_deltas' has cognitive complexity of 51 (threshold 25) [readability-function-cognitive-complexity]
static void find_deltas(struct object_entry **list, unsigned *list_size,
            ^
/datasets/git/builtin/pack-objects.c:2654:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (;;) {
        ^
/datasets/git/builtin/pack-objects.c:2660:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!*list_size) {
                ^
/datasets/git/builtin/pack-objects.c:2666:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!entry->preferred_base) {
                ^
/datasets/git/builtin/pack-objects.c:2675:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (window_memory_limit &&
                ^
/datasets/git/builtin/pack-objects.c:2676:42: note: +1
                       mem_usage > window_memory_limit &&
                                                       ^
/datasets/git/builtin/pack-objects.c:2686:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (entry->preferred_base)
                ^
/datasets/git/builtin/pack-objects.c:2695:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (DELTA_CHILD(entry)) {
                ^
/datasets/git/builtin/pack-objects.c:2697:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (max_depth <= 0)
                        ^
/datasets/git/builtin/pack-objects.c:2702:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (--j > 0) {
                ^
/datasets/git/builtin/pack-objects.c:2706:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (other_idx >= window)
                        ^
/datasets/git/builtin/pack-objects.c:2709:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!m->entry)
                        ^
/datasets/git/builtin/pack-objects.c:2712:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ret < 0)
                        ^
/datasets/git/builtin/pack-objects.c:2714:9: note: +1, nesting level increased to 3
                        else if (ret > 0)
                             ^
/datasets/git/builtin/pack-objects.c:2732:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (entry->delta_data && !pack_to_stdout) {
                ^
/datasets/git/builtin/pack-objects.c:2732:25: note: +1
                if (entry->delta_data && !pack_to_stdout) {
                                      ^
/datasets/git/builtin/pack-objects.c:2736:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (size < (1U << OE_Z_DELTA_BITS)) {
                        ^
/datasets/git/builtin/pack-objects.c:2742:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/builtin/pack-objects.c:2743:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                FREE_AND_NULL(entry->delta_data);
                                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/pack-objects.c:2752:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (DELTA(entry) && max_depth <= n->depth)
                ^
/datasets/git/builtin/pack-objects.c:2752:20: note: +1
                if (DELTA(entry) && max_depth <= n->depth)
                                 ^
/datasets/git/builtin/pack-objects.c:2760:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (DELTA(entry)) {
                ^
/datasets/git/builtin/pack-objects.c:2764:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (dist--) {
                        ^
/datasets/git/builtin/pack-objects.c:2774:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (count + 1 < window)
                ^
/datasets/git/builtin/pack-objects.c:2776:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (idx >= window)
                ^
/datasets/git/builtin/pack-objects.c:2780:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < window; ++i) {
        ^
/datasets/git/builtin/pack-objects.c:2646:4: warning: 2 adjacent parameters of 'find_deltas' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                        int window, int depth, unsigned *processed)
                        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:2646:8: note: the first parameter in the range is 'window'
                        int window, int depth, unsigned *processed)
                            ^~~~~~
/datasets/git/builtin/pack-objects.c:2646:20: note: the last parameter in the range is 'depth'
                        int window, int depth, unsigned *processed)
                                        ^~~~~
/datasets/git/builtin/pack-objects.c:2648:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        uint32_t i, idx = 0, count = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:2648:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i, idx = 0, count = 0;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:2648:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-objects.c:2649:19: warning: variable 'array' is not initialized [cppcoreguidelines-init-variables]
        struct unpacked *array;
                         ^
                               = NULL
/datasets/git/builtin/pack-objects.c:2655:24: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
                struct object_entry *entry;
                                     ^
                                           = NULL
/datasets/git/builtin/pack-objects.c:2656:20: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
                struct unpacked *n = array + idx;
                                 ^
/datasets/git/builtin/pack-objects.c:2657:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int j, max_depth, best_base = -1;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:2650:2: note: inferred assignment of ID-dependent value from ID-dependent variable n [altera-id-dependent-backward-branch]
        unsigned long mem_usage = 0;
        ^
/datasets/git/builtin/pack-objects.c:2657:7: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
                int j, max_depth, best_base = -1;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:2657:7: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-objects.c:2657:10: warning: variable 'max_depth' is not initialized [cppcoreguidelines-init-variables]
                int j, max_depth, best_base = -1;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:2675:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (window_memory_limit &&
                ^
/datasets/git/builtin/pack-objects.c:2675:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'mem_usage' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (window_memory_limit &&
                       ^
/datasets/git/builtin/pack-objects.c:2686:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (entry->preferred_base)
                                          ^
                                           {
/datasets/git/builtin/pack-objects.c:2696:17: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        max_depth -= check_delta_limit(entry, 0);
                                     ^
/datasets/git/builtin/pack-objects.c:2697:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (max_depth <= 0)
                                           ^
                                            {
/datasets/git/builtin/pack-objects.c:2702:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (--j > 0) {
                ^
/datasets/git/builtin/pack-objects.c:2702:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'j' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (--j > 0) {
                       ^
/datasets/git/builtin/pack-objects.c:2703:8: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
                        int ret;
                            ^
                                = 0
/datasets/git/builtin/pack-objects.c:2705:21: warning: variable 'm' is not initialized [cppcoreguidelines-init-variables]
                        struct unpacked *m;
                                         ^
                                           = NULL
/datasets/git/builtin/pack-objects.c:2705:21: warning: variable name 'm' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-objects.c:2706:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (other_idx >= window)
                                                ^
                                                 {
/datasets/git/builtin/pack-objects.c:2709:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!m->entry)
                                      ^
                                       {
/datasets/git/builtin/pack-objects.c:2712:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ret < 0)
                                    ^
                                     {
/datasets/git/builtin/pack-objects.c:2714:4: warning: do not use 'else' after 'break' [llvm-else-after-return,readability-else-after-return]
                        else if (ret > 0)
                        ^~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:2714:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (ret > 0)
                                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:2715:17: warning: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                best_base = other_idx;
                                            ^
/datasets/git/builtin/pack-objects.c:2733:18: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
                        unsigned long size;
                                      ^
                                           = 0
/datasets/git/builtin/pack-objects.c:2736:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (size < (1U << OE_Z_DELTA_BITS)) {
                                    ^
/datasets/git/builtin/pack-objects.c:2743:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                FREE_AND_NULL(entry->delta_data);
                                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/pack-objects.c:2762:4: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                        int dist = (window + idx - best_base) % window;
                        ^
/datasets/git/builtin/pack-objects.c:2752:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (DELTA(entry) && max_depth <= n->depth)
                                                          ^
                                                           {
/datasets/git/builtin/pack-objects.c:2762:15: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        int dist = (window + idx - best_base) % window;
                                   ^
/datasets/git/builtin/pack-objects.c:2764:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (dist--) {
                        ^
/datasets/git/builtin/pack-objects.c:2764:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'dist' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (dist--) {
                               ^
/datasets/git/builtin/pack-objects.c:2774:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (count + 1 < window)
                                       ^
                                        {
/datasets/git/builtin/pack-objects.c:2776:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (idx >= window)
                                  ^
                                   {
/datasets/git/builtin/pack-objects.c:2780:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < window; ++i) {
        ^
/datasets/git/builtin/pack-objects.c:2803:8: warning: accessing fields in struct 'thread_params' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct thread_params {
       ^
/datasets/git/builtin/pack-objects.c:2803:8: note: use "__attribute__((aligned(128)))" to align struct 'thread_params' to 128 bytes
/datasets/git/builtin/pack-objects.c:2817:23: warning: variable 'progress_cond' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static pthread_cond_t progress_cond;
                      ^
/datasets/git/builtin/pack-objects.c:2838:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct thread_params *me = arg;
        ^
/datasets/git/builtin/pack-objects.c:2838:24: warning: variable name 'me' is too short, expected at least 3 characters [readability-identifier-length]
        struct thread_params *me = arg;
                              ^
/datasets/git/builtin/pack-objects.c:2841:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'me' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (me->remaining) {
               ^
/datasets/git/builtin/pack-objects.c:2861:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (!me->data_ready)
                ^
/datasets/git/builtin/pack-objects.c:2861:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'me' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (!me->data_ready)
                       ^
/datasets/git/builtin/pack-objects.c:2861:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (!me->data_ready)
                                       ^
                                        {
/datasets/git/builtin/pack-objects.c:2873:13: warning: function 'll_find_deltas' has cognitive complexity of 46 (threshold 25) [readability-function-cognitive-complexity]
static void ll_find_deltas(struct object_entry **list, unsigned list_size,
            ^
/datasets/git/builtin/pack-objects.c:2881:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (delta_search_threads <= 1) {
        ^
/datasets/git/builtin/pack-objects.c:2886:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (progress > pack_to_stdout)
        ^
/datasets/git/builtin/pack-objects.c:2892:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < delta_search_threads; i++) {
        ^
/datasets/git/builtin/pack-objects.c:2896:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (sub_size < 2*window && i+1 < delta_search_threads)
                ^
/datasets/git/builtin/pack-objects.c:2896:27: note: +1
                if (sub_size < 2*window && i+1 < delta_search_threads)
                                        ^
/datasets/git/builtin/pack-objects.c:2906:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (sub_size && sub_size < list_size &&
                ^
/datasets/git/builtin/pack-objects.c:2907:31: note: +1
                       list[sub_size]->hash &&
                                            ^
/datasets/git/builtin/pack-objects.c:2920:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < delta_search_threads; i++) {
        ^
/datasets/git/builtin/pack-objects.c:2921:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!p[i].list_size)
                ^
/datasets/git/builtin/pack-objects.c:2927:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ret)
                ^
/datasets/git/builtin/pack-objects.c:2940:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (active_threads) {
        ^
/datasets/git/builtin/pack-objects.c:2946:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (;;) {
                ^
/datasets/git/builtin/pack-objects.c:2947:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (i = 0; !target && i < delta_search_threads; i++)
                        ^
/datasets/git/builtin/pack-objects.c:2947:24: note: +1
                        for (i = 0; !target && i < delta_search_threads; i++)
                                            ^
/datasets/git/builtin/pack-objects.c:2948:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!p[i].working)
                                ^
/datasets/git/builtin/pack-objects.c:2950:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (target)
                        ^
/datasets/git/builtin/pack-objects.c:2955:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < delta_search_threads; i++)
                ^
/datasets/git/builtin/pack-objects.c:2956:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (p[i].remaining > 2*window &&
                        ^
/datasets/git/builtin/pack-objects.c:2956:34: note: +1
                        if (p[i].remaining > 2*window &&
                                                      ^
/datasets/git/builtin/pack-objects.c:2957:17: note: +1
                            (!victim || victim->remaining < p[i].remaining))
                                     ^
/datasets/git/builtin/pack-objects.c:2959:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (victim) {
                ^
/datasets/git/builtin/pack-objects.c:2962:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (sub_size && list[0]->hash &&
                        ^
/datasets/git/builtin/pack-objects.c:2962:37: note: +1
                        while (sub_size && list[0]->hash &&
                                                         ^
/datasets/git/builtin/pack-objects.c:2967:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!sub_size) {
                        ^
/datasets/git/builtin/pack-objects.c:2991:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!sub_size) {
                ^
/datasets/git/builtin/pack-objects.c:2876:24: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct thread_params *p;
                              ^
                                = NULL
/datasets/git/builtin/pack-objects.c:2876:24: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-objects.c:2877:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, ret, active_threads = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:2877:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, ret, active_threads = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:2877:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-objects.c:2877:9: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int i, ret, active_threads = 0;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:2886:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (progress > pack_to_stdout)
                                      ^
                                       {
/datasets/git/builtin/pack-objects.c:2896:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (sub_size < 2*window && i+1 < delta_search_threads)
                                                                      ^
                                                                       {
/datasets/git/builtin/pack-objects.c:2906:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (sub_size && sub_size < list_size &&
                ^
/datasets/git/builtin/pack-objects.c:2906:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'sub_size' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (sub_size && sub_size < list_size &&
                       ^
/datasets/git/builtin/pack-objects.c:2908:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                       list[sub_size]->hash == list[sub_size-1]->hash)
                                                                      ^
                                                                       {
/datasets/git/builtin/pack-objects.c:2920:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < delta_search_threads; i++) {
        ^
/datasets/git/builtin/pack-objects.c:2921:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!p[i].list_size)
                                    ^
                                     {
/datasets/git/builtin/pack-objects.c:2927:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret)
                        ^
                         {
/datasets/git/builtin/pack-objects.c:2928:42: warning: function is not thread safe [concurrency-mt-unsafe]
                        die(_("unable to create thread: %s"), strerror(ret));
                                                              ^
/datasets/git/builtin/pack-objects.c:2947:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = 0; !target && i < delta_search_threads; i++)
                        ^
/datasets/git/builtin/pack-objects.c:2947:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'target' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (i = 0; !target && i < delta_search_threads; i++)
                                    ^
/datasets/git/builtin/pack-objects.c:2947:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (i = 0; !target && i < delta_search_threads; i++)
                                                                             ^
                                                                              {
/datasets/git/builtin/pack-objects.c:2948:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!p[i].working)
                                                  ^
                                                   {
/datasets/git/builtin/pack-objects.c:2950:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (target)
                                   ^
                                    {
/datasets/git/builtin/pack-objects.c:2955:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < delta_search_threads; i++)
                ^
/datasets/git/builtin/pack-objects.c:2955:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < delta_search_threads; i++)
                                                          ^
                                                           {
/datasets/git/builtin/pack-objects.c:2957:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            (!victim || victim->remaining < p[i].remaining))
                                                                            ^
                                                                             {
/datasets/git/builtin/pack-objects.c:2962:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (sub_size && list[0]->hash &&
                        ^
/datasets/git/builtin/pack-objects.c:2962:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'sub_size' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (sub_size && list[0]->hash &&
                               ^
/datasets/git/builtin/pack-objects.c:3011:14: warning: variable 'tag' is not initialized [cppcoreguidelines-init-variables]
        struct tag *tag;
                    ^
                        = NULL
/datasets/git/builtin/pack-objects.c:3020:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (obj_is_packed(oid))
                               ^
                                {
/datasets/git/builtin/pack-objects.c:3024:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/builtin/pack-objects.c:3025:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!tag || parse_tag(tag) || !tag->tagged)
                                                           ^
                                                            {
/datasets/git/builtin/pack-objects.c:3031:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (tag->tagged->type != OBJ_TAG)
                                                 ^
                                                  {
/datasets/git/builtin/pack-objects.c:3043:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!peel_iterated_oid(oid, &peeled) && obj_is_packed(&peeled))
                                                                       ^
                                                                        {
/datasets/git/builtin/pack-objects.c:3048:13: warning: function 'prepare_pack' has cognitive complexity of 27 (threshold 25) [readability-function-cognitive-complexity]
static void prepare_pack(int window, int depth)
            ^
/datasets/git/builtin/pack-objects.c:3054:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (use_delta_islands)
        ^
/datasets/git/builtin/pack-objects.c:3066:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!pack_to_stdout)
        ^
/datasets/git/builtin/pack-objects.c:3069:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!to_pack.nr_objects || !window || !depth)
        ^
/datasets/git/builtin/pack-objects.c:3069:37: note: +1
        if (!to_pack.nr_objects || !window || !depth)
                                           ^
/datasets/git/builtin/pack-objects.c:3075:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < to_pack.nr_objects; i++) {
        ^
/datasets/git/builtin/pack-objects.c:3078:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (DELTA(entry))
                ^
/datasets/git/builtin/pack-objects.c:3084:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!entry->type_valid ||
                ^
/datasets/git/builtin/pack-objects.c:3084:26: note: +1
                if (!entry->type_valid ||
                                       ^
/datasets/git/builtin/pack-objects.c:3088:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (entry->no_try_delta)
                ^
/datasets/git/builtin/pack-objects.c:3091:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!entry->preferred_base) {
                ^
/datasets/git/builtin/pack-objects.c:3093:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (oe_type(entry) < 0)
                        ^
/datasets/git/builtin/pack-objects.c:3096:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/pack-objects.c:3097:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (oe_type(entry) < 0) {
                        ^
/datasets/git/builtin/pack-objects.c:3109:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (nr_deltas && n > 1) {
        ^
/datasets/git/builtin/pack-objects.c:3109:16: note: +1
        if (nr_deltas && n > 1) {
                      ^
/datasets/git/builtin/pack-objects.c:3112:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (progress)
                ^
/datasets/git/builtin/pack-objects.c:3118:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (nr_done != nr_deltas)
                ^
/datasets/git/builtin/pack-objects.c:3050:24: warning: variable 'delta_list' is not initialized [cppcoreguidelines-init-variables]
        struct object_entry **delta_list;
                              ^
                                         = NULL
/datasets/git/builtin/pack-objects.c:3051:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        uint32_t i, nr_deltas;
        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:3051:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i, nr_deltas;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:3051:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-objects.c:3051:14: warning: variable 'nr_deltas' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i, nr_deltas;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:3052:11: warning: variable 'n' is not initialized [cppcoreguidelines-init-variables]
        unsigned n;
                 ^
                   = 0
/datasets/git/builtin/pack-objects.c:3052:11: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-objects.c:3054:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (use_delta_islands)
                              ^
                               {
/datasets/git/builtin/pack-objects.c:3066:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!pack_to_stdout)
                            ^
                             {
/datasets/git/builtin/pack-objects.c:3069:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!to_pack.nr_objects || !window || !depth)
                                                     ^
                                                      {
/datasets/git/builtin/pack-objects.c:3072:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_ARRAY(delta_list, to_pack.nr_objects);
        ^
/datasets/git/./git-compat-util.h:1090:53: note: expanded from macro 'ALLOC_ARRAY'
#define ALLOC_ARRAY(x, alloc) (x) = xmalloc(st_mult(sizeof(*(x)), (alloc)))
                                                    ^
/datasets/git/builtin/pack-objects.c:3075:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < to_pack.nr_objects; i++) {
        ^
/datasets/git/builtin/pack-objects.c:3078:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (DELTA(entry))
                                 ^
                                  {
/datasets/git/builtin/pack-objects.c:3085:42: warning: 50 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                    oe_size_less_than(&to_pack, entry, 50))
                                                       ^
/datasets/git/builtin/pack-objects.c:3085:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    oe_size_less_than(&to_pack, entry, 50))
                                                           ^
                                                            {
/datasets/git/builtin/pack-objects.c:3088:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (entry->no_try_delta)
                                        ^
                                         {
/datasets/git/builtin/pack-objects.c:3093:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (oe_type(entry) < 0)
                                               ^
                                                {
/datasets/git/builtin/pack-objects.c:3112:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (progress)
                             ^
                              {
/datasets/git/builtin/pack-objects.c:3115:3: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                QSORT(delta_list, n, type_size_sort);
                ^
/datasets/git/./git-compat-util.h:1304:56: note: expanded from macro 'QSORT'
#define QSORT(base, n, compar) sane_qsort((base), (n), sizeof(*(base)), compar)
                                                       ^
/datasets/git/builtin/pack-objects.c:3118:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (nr_done != nr_deltas)
                                         ^
                                          {
/datasets/git/builtin/pack-objects.c:3124:12: warning: function 'git_pack_config' has cognitive complexity of 34 (threshold 25) [readability-function-cognitive-complexity]
static int git_pack_config(const char *k, const char *v, void *cb)
           ^
/datasets/git/builtin/pack-objects.c:3126:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(k, "pack.window")) {
        ^
/datasets/git/builtin/pack-objects.c:3130:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(k, "pack.windowmemory")) {
        ^
/datasets/git/builtin/pack-objects.c:3134:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(k, "pack.depth")) {
        ^
/datasets/git/builtin/pack-objects.c:3138:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(k, "pack.deltacachesize")) {
        ^
/datasets/git/builtin/pack-objects.c:3142:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(k, "pack.deltacachelimit")) {
        ^
/datasets/git/builtin/pack-objects.c:3146:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(k, "pack.writebitmaphashcache")) {
        ^
/datasets/git/builtin/pack-objects.c:3147:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (git_config_bool(k, v))
                ^
/datasets/git/builtin/pack-objects.c:3149:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/pack-objects.c:3153:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(k, "pack.writebitmaplookuptable")) {
        ^
/datasets/git/builtin/pack-objects.c:3154:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (git_config_bool(k, v))
                ^
/datasets/git/builtin/pack-objects.c:3156:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/pack-objects.c:3160:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(k, "pack.usebitmaps")) {
        ^
/datasets/git/builtin/pack-objects.c:3164:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(k, "pack.allowpackreuse")) {
        ^
/datasets/git/builtin/pack-objects.c:3168:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(k, "pack.threads")) {
        ^
/datasets/git/builtin/pack-objects.c:3170:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (delta_search_threads < 0)
                ^
/datasets/git/builtin/pack-objects.c:3173:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!HAVE_THREADS && delta_search_threads != 1) {
                ^
/datasets/git/builtin/pack-objects.c:3173:21: note: +1
                if (!HAVE_THREADS && delta_search_threads != 1) {
                                  ^
/datasets/git/builtin/pack-objects.c:3179:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(k, "pack.indexversion")) {
        ^
/datasets/git/builtin/pack-objects.c:3181:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (pack_idx_opts.version > 2)
                ^
/datasets/git/builtin/pack-objects.c:3186:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(k, "pack.writereverseindex")) {
        ^
/datasets/git/builtin/pack-objects.c:3187:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (git_config_bool(k, v))
                ^
/datasets/git/builtin/pack-objects.c:3189:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/pack-objects.c:3193:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(k, "uploadpack.blobpackfileuri")) {
        ^
/datasets/git/builtin/pack-objects.c:3202:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (parse_oid_hex(v, &ex->e.oid, &oid_end) ||
                ^
/datasets/git/builtin/pack-objects.c:3204:57: note: +1
                    parse_oid_hex(oid_end + 1, &pack_hash, &pack_end) ||
                                                                      ^
/datasets/git/builtin/pack-objects.c:3208:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (oidmap_get(&configured_exclusions, &ex->e.oid))
                ^
/datasets/git/builtin/pack-objects.c:3124:40: warning: parameter name 'k' is too short, expected at least 3 characters [readability-identifier-length]
static int git_pack_config(const char *k, const char *v, void *cb)
                                       ^
/datasets/git/builtin/pack-objects.c:3124:55: warning: parameter name 'v' is too short, expected at least 3 characters [readability-identifier-length]
static int git_pack_config(const char *k, const char *v, void *cb)
                                                      ^
/datasets/git/builtin/pack-objects.c:3124:64: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int git_pack_config(const char *k, const char *v, void *cb)
                                                               ^
/datasets/git/builtin/pack-objects.c:3147:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (git_config_bool(k, v))
                                          ^
                                           {
/datasets/git/builtin/pack-objects.c:3148:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        write_bitmap_options |= BITMAP_OPT_HASH_CACHE;
                        ^                       ~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:3149:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/pack-objects.c:3150:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        write_bitmap_options &= ~BITMAP_OPT_HASH_CACHE;
                        ^                       ~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:3150:28: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                        write_bitmap_options &= ~BITMAP_OPT_HASH_CACHE;
                                                ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:3154:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (git_config_bool(k, v))
                                          ^
                                           {
/datasets/git/builtin/pack-objects.c:3155:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        write_bitmap_options |= BITMAP_OPT_LOOKUP_TABLE;
                        ^                       ~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:3156:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/pack-objects.c:3157:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        write_bitmap_options &= ~BITMAP_OPT_LOOKUP_TABLE;
                        ^                       ~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:3157:28: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                        write_bitmap_options &= ~BITMAP_OPT_LOOKUP_TABLE;
                                                ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:3170:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (delta_search_threads < 0)
                                             ^
                                              {
/datasets/git/builtin/pack-objects.c:3181:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pack_idx_opts.version > 2)
                                              ^
                                               {
/datasets/git/builtin/pack-objects.c:3187:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (git_config_bool(k, v))
                                          ^
                                           {
/datasets/git/builtin/pack-objects.c:3188:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        pack_idx_opts.flags |= WRITE_REV;
                        ^
/datasets/git/builtin/pack-objects.c:3189:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/pack-objects.c:3190:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        pack_idx_opts.flags &= ~WRITE_REV;
                        ^                      ~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:3190:27: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                        pack_idx_opts.flags &= ~WRITE_REV;
                                               ^
/datasets/git/builtin/pack-objects.c:3194:32: warning: variable name 'ex' is too short, expected at least 3 characters [readability-identifier-length]
                struct configured_exclusion *ex = xmalloc(sizeof(*ex));
                                             ^
/datasets/git/builtin/pack-objects.c:3195:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                const char *oid_end, *pack_end;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:3195:15: warning: variable 'oid_end' is not initialized [cppcoreguidelines-init-variables]
                const char *oid_end, *pack_end;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:3195:25: warning: variable 'pack_end' is not initialized [cppcoreguidelines-init-variables]
                const char *oid_end, *pack_end;
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:3205:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    *pack_end != ' ')
                                     ^
                                      {
/datasets/git/builtin/pack-objects.c:3208:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (oidmap_get(&configured_exclusions, &ex->e.oid))
                                                                   ^
                                                                    {
/datasets/git/builtin/pack-objects.c:3212:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(ex->pack_hash_hex, oid_end + 1, pack_end - oid_end - 1);
                ^~~~~~
/datasets/git/builtin/pack-objects.c:3212:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(ex->pack_hash_hex, oid_end + 1, pack_end - oid_end - 1);
                ^~~~~~
/datasets/git/builtin/pack-objects.c:3220:12: warning: variable 'stdin_packs_found_nr' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int stdin_packs_found_nr;
           ^
/datasets/git/builtin/pack-objects.c:3221:12: warning: variable 'stdin_packs_hints_nr' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int stdin_packs_hints_nr;
           ^
/datasets/git/builtin/pack-objects.c:3224:30: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                                      struct packed_git *p,
                                                         ^
/datasets/git/builtin/pack-objects.c:3228:8: warning: variable 'ofs' is not initialized [cppcoreguidelines-init-variables]
        off_t ofs;
              ^
                  = 0
/datasets/git/builtin/pack-objects.c:3233:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (have_duplicate_entry(oid, 0))
                                         ^
                                          {
/datasets/git/builtin/pack-objects.c:3237:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!want_object_in_pack(oid, 0, &p, &ofs))
                                                   ^
                                                    {
/datasets/git/builtin/pack-objects.c:3242:22: warning: variable name 'oi' is too short, expected at least 3 characters [readability-identifier-length]
                struct object_info oi = OBJECT_INFO_INIT;
                                   ^
/datasets/git/builtin/pack-objects.c:3270:13: warning: parameter '_data' is unused [misc-unused-parameters]
                                  void *_data)
                                        ^
/datasets/git/builtin/pack-objects.c:3272:23: warning: variable name 'oe' is too short, expected at least 3 characters [readability-identifier-length]
        struct object_entry *oe = packlist_find(&to_pack, &object->oid);
                             ^
/datasets/git/builtin/pack-objects.c:3273:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!oe)
                ^
                 {
/datasets/git/builtin/pack-objects.c:3291:39: warning: parameter name '_a' is too short, expected at least 3 characters [readability-identifier-length]
static int pack_mtime_cmp(const void *_a, const void *_b)
                                      ^
/datasets/git/builtin/pack-objects.c:3291:55: warning: parameter name '_b' is too short, expected at least 3 characters [readability-identifier-length]
static int pack_mtime_cmp(const void *_a, const void *_b)
                                                      ^
/datasets/git/builtin/pack-objects.c:3293:21: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        struct packed_git *a = ((const struct string_list_item*)_a)->util;
                           ^
/datasets/git/builtin/pack-objects.c:3294:21: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        struct packed_git *b = ((const struct string_list_item*)_b)->util;
                           ^
/datasets/git/builtin/pack-objects.c:3300:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (a->mtime < b->mtime)
                                ^
                                 {
/datasets/git/builtin/pack-objects.c:3302:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (b->mtime < a->mtime)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:3302:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (b->mtime < a->mtime)
                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:3304:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-objects.c:3315:21: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct packed_git *p;
                           ^
                             = NULL
/datasets/git/builtin/pack-objects.c:3315:21: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-objects.c:3329:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        revs.keep_pack_cache_flags |= IN_CORE_KEEP_PACKS;
        ^
/datasets/git/builtin/pack-objects.c:3310:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct strbuf buf = STRBUF_INIT;
        ^
/datasets/git/builtin/pack-objects.c:3335:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (strbuf_getline(&buf, stdin) != EOF) {
        ^
/datasets/git/builtin/pack-objects.c:3315:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct packed_git *p;
        ^
/datasets/git/builtin/pack-objects.c:3335:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'buf' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (strbuf_getline(&buf, stdin) != EOF) {
               ^
/datasets/git/builtin/pack-objects.c:3336:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!buf.len)
                             ^
                              {
/datasets/git/builtin/pack-objects.c:3339:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*buf.buf == '^')
                                    ^
                                     {
/datasets/git/builtin/pack-objects.c:3341:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/pack-objects.c:3350:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = get_all_packs(the_repository); p; p = p->next) {
        ^
/datasets/git/builtin/pack-objects.c:3313:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct string_list_item *item = NULL;
        ^
/datasets/git/builtin/pack-objects.c:3350:42: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = get_all_packs(the_repository); p; p = p->next) {
                                                ^
/datasets/git/builtin/pack-objects.c:3354:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!item)
                          ^
                           {
/datasets/git/builtin/pack-objects.c:3357:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (item)
                         ^
                          {
/datasets/git/builtin/pack-objects.c:3372:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(item, &include_packs) {
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/pack-objects.c:3313:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct string_list_item *item = NULL;
        ^
/datasets/git/builtin/pack-objects.c:3372:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(item, &include_packs) {
                                  ^
/datasets/git/builtin/pack-objects.c:3373:22: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct packed_git *p = item->util;
                                   ^
/datasets/git/builtin/pack-objects.c:3374:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!p)
                       ^
                        {
/datasets/git/builtin/pack-objects.c:3376:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!is_pack_valid(p))
                                      ^
                                       {
/datasets/git/builtin/pack-objects.c:3385:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(item, &exclude_packs) {
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/pack-objects.c:3313:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct string_list_item *item = NULL;
        ^
/datasets/git/builtin/pack-objects.c:3385:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(item, &exclude_packs) {
                                  ^
/datasets/git/builtin/pack-objects.c:3386:22: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct packed_git *p = item->util;
                                   ^
/datasets/git/builtin/pack-objects.c:3387:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!p)
                       ^
                        {
/datasets/git/builtin/pack-objects.c:3399:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(item, &include_packs) {
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/pack-objects.c:3399:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(item, &include_packs) {
                                  ^
/datasets/git/builtin/pack-objects.c:3400:22: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct packed_git *p = item->util;
                                   ^
/datasets/git/builtin/pack-objects.c:3407:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prepare_revision_walk(&revs))
                                         ^
                                          {
/datasets/git/builtin/pack-objects.c:3428:23: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
        struct object_entry *entry;
                             ^
                                   = NULL
/datasets/git/builtin/pack-objects.c:3439:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!want_object_in_pack(oid, 0, &pack, &offset))
                                                                 ^
                                                                  {
/datasets/git/builtin/pack-objects.c:3463:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mtime > oe_cruft_mtime(&to_pack, entry))
                                                    ^
                                                     {
/datasets/git/builtin/pack-objects.c:3465:2: warning: redundant return statement at the end of a function with a void return type [readability-redundant-control-flow]
        return;
~~~~~~~~^~~~~~~
/datasets/git/builtin/pack-objects.c:3468:75: warning: parameter 'data' is unused [misc-unused-parameters]
static void show_cruft_object(struct object *obj, const char *name, void *data)
                                                                          ^
/datasets/git/builtin/pack-objects.c:3488:62: warning: parameter 'data' is unused [misc-unused-parameters]
static int cruft_include_check_obj(struct object *obj, void *data)
                                                             ^
/datasets/git/builtin/pack-objects.c:3508:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct string_list_item *item = NULL;
        ^
/datasets/git/builtin/pack-objects.c:3509:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(item, packs) {
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/pack-objects.c:3509:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(item, packs) {
                                  ^
/datasets/git/builtin/pack-objects.c:3510:22: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct packed_git *p = item->util;
                                   ^
/datasets/git/builtin/pack-objects.c:3511:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!p)
                       ^
                        {
/datasets/git/builtin/pack-objects.c:3522:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (progress)
                     ^
                      {
/datasets/git/builtin/pack-objects.c:3533:21: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct packed_git *p;
                           ^
                             = NULL
/datasets/git/builtin/pack-objects.c:3533:21: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-objects.c:3535:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/builtin/pack-objects.c:3577:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct strbuf buf = STRBUF_INIT;
        ^
/datasets/git/builtin/pack-objects.c:3548:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (progress)
                     ^
                      {
/datasets/git/builtin/pack-objects.c:3554:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/builtin/pack-objects.c:3561:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = get_all_packs(the_repository); p; p = p->next)
        ^
/datasets/git/builtin/pack-objects.c:3561:42: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = get_all_packs(the_repository); p; p = p->next)
                                                ^
/datasets/git/builtin/pack-objects.c:3561:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (p = get_all_packs(the_repository); p; p = p->next)
                                                               ^
                                                                {
/datasets/git/builtin/pack-objects.c:3565:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prepare_revision_walk(&revs))
                                         ^
                                          {
/datasets/git/builtin/pack-objects.c:3567:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (progress)
                     ^
                      {
/datasets/git/builtin/pack-objects.c:3580:21: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct packed_git *p;
                           ^
                             = NULL
/datasets/git/builtin/pack-objects.c:3580:21: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-objects.c:3584:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (strbuf_getline(&buf, stdin) != EOF) {
        ^
/datasets/git/builtin/pack-objects.c:3580:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct packed_git *p;
        ^
/datasets/git/builtin/pack-objects.c:3584:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'buf' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (strbuf_getline(&buf, stdin) != EOF) {
               ^
/datasets/git/builtin/pack-objects.c:3585:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!buf.len)
                             ^
                              {
/datasets/git/builtin/pack-objects.c:3588:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*buf.buf == '-')
                                    ^
                                     {
/datasets/git/builtin/pack-objects.c:3590:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/pack-objects.c:3598:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = get_all_packs(the_repository); p; p = p->next) {
        ^
/datasets/git/builtin/pack-objects.c:3598:42: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = get_all_packs(the_repository); p; p = p->next) {
                                                ^
/datasets/git/builtin/pack-objects.c:3600:28: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
                struct string_list_item *item;
                                         ^
                                              = NULL
/datasets/git/builtin/pack-objects.c:3603:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!item)
                          ^
                           {
/datasets/git/builtin/pack-objects.c:3625:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cruft_expiration)
                             ^
                              {
/datasets/git/builtin/pack-objects.c:3627:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/pack-objects.c:3639:14: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        const char *p;
                    ^
                      = NULL
/datasets/git/builtin/pack-objects.c:3639:14: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-objects.c:3641:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/builtin/pack-objects.c:3643:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (feof(stdin))
                                        ^
                                         {
/datasets/git/builtin/pack-objects.c:3645:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!ferror(stdin))
                                           ^
                                            {
/datasets/git/builtin/pack-objects.c:3647:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (errno != EINTR)
                                           ^
                                            {
/datasets/git/builtin/pack-objects.c:3653:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (get_oid_hex(line+1, &oid))
                                                      ^
                                                       {
/datasets/git/builtin/pack-objects.c:3659:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (parse_oid_hex(line, &oid, &p))
                                                  ^
                                                   {
/datasets/git/builtin/pack-objects.c:3667:54: warning: parameter 'data' is unused [misc-unused-parameters]
static void show_commit(struct commit *commit, void *data)
                                                     ^
/datasets/git/builtin/pack-objects.c:3671:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_bitmap_index)
                               ^
                                {
/datasets/git/builtin/pack-objects.c:3674:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (use_delta_islands)
                              ^
                               {
/datasets/git/builtin/pack-objects.c:3678:69: warning: parameter 'data' is unused [misc-unused-parameters]
static void show_object(struct object *obj, const char *name, void *data)
                                                                    ^
/datasets/git/builtin/pack-objects.c:3684:15: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                const char *p;
                            ^
                              = NULL
/datasets/git/builtin/pack-objects.c:3684:15: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-objects.c:3685:12: warning: variable 'depth' is not initialized [cppcoreguidelines-init-variables]
                unsigned depth;
                         ^
                               = 0
/datasets/git/builtin/pack-objects.c:3686:24: warning: variable 'ent' is not initialized [cppcoreguidelines-init-variables]
                struct object_entry *ent;
                                     ^
                                         = NULL
/datasets/git/builtin/pack-objects.c:3690:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (p = strchr(name, '/'); p; p = strchr(p + 1, '/'))
                ^
/datasets/git/builtin/pack-objects.c:3690:31: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (p = strchr(name, '/'); p; p = strchr(p + 1, '/'))
                                            ^
/datasets/git/builtin/pack-objects.c:3690:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (p = strchr(name, '/'); p; p = strchr(p + 1, '/'))
                                                                      ^
                                                                       {
/datasets/git/builtin/pack-objects.c:3694:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ent && depth > oe_tree_depth(&to_pack, ent))
                                                                ^
                                                                 {
/datasets/git/builtin/pack-objects.c:3707:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!has_object(the_repository, &obj->oid, 0))
                                                      ^
                                                       {
/datasets/git/builtin/pack-objects.c:3721:81: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!has_object(the_repository, &obj->oid, 0) && is_promisor_object(&obj->oid))
                                                                                       ^
                                                                                        {
/datasets/git/builtin/pack-objects.c:3727:61: warning: parameter 'opt' is unused [misc-unused-parameters]
static int option_parse_missing_action(const struct option *opt,
                                                            ^
/datasets/git/builtin/pack-objects.c:3765:18: warning: parameter '_data' is unused [misc-unused-parameters]
                                       void *_data)
                                             ^
/datasets/git/builtin/pack-objects.c:3768:9: warning: variable 'offset' is not initialized [cppcoreguidelines-init-variables]
                off_t offset;
                      ^
                             = 0
/datasets/git/builtin/pack-objects.c:3769:10: warning: variable 'mtime' is not initialized [cppcoreguidelines-init-variables]
                time_t mtime;
                       ^
                             = 0
/datasets/git/builtin/pack-objects.c:3772:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (load_pack_mtimes(pack) < 0)
                                                       ^
                                                        {
/datasets/git/builtin/pack-objects.c:3791:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                   FOR_EACH_OBJECT_PACK_ORDER |
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:3794:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                   FOR_EACH_OBJECT_SKIP_ON_DISK_KEPT_PACKS))
                                                                            ^
                                                                             {
/datasets/git/builtin/pack-objects.c:3799:14: warning: parameter 'data' is unused [misc-unused-parameters]
                            void *data)
                                  ^
/datasets/git/builtin/pack-objects.c:3809:15: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                struct stat st;
                            ^
/datasets/git/builtin/pack-objects.c:3811:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (errno == ENOENT)
                                            ^
                                             {
/datasets/git/builtin/pack-objects.c:3838:28: warning: variable 'last_found' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
        static struct packed_git *last_found = (void *)1;
                                  ^
/datasets/git/builtin/pack-objects.c:3839:21: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct packed_git *p;
                           ^
                             = NULL
/datasets/git/builtin/pack-objects.c:3839:21: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-objects.c:3844:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (p) {
        ^
/datasets/git/builtin/pack-objects.c:3844:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (p) {
               ^
/datasets/git/builtin/pack-objects.c:3851:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (p == last_found)
                                    ^
                                     {
/datasets/git/builtin/pack-objects.c:3853:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/pack-objects.c:3855:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (p == last_found)
                                    ^
                                     {
/datasets/git/builtin/pack-objects.c:3868:25: warning: variable 'recent_objects' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct oid_array recent_objects;
                        ^
/datasets/git/builtin/pack-objects.c:3873:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!unpack_unreachable_expiration)
                                           ^
                                            {
/datasets/git/builtin/pack-objects.c:3875:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mtime > unpack_unreachable_expiration)
                                                  ^
                                                   {
/datasets/git/builtin/pack-objects.c:3877:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oid_array_lookup(&recent_objects, oid) >= 0)
                                                        ^
                                                         {
/datasets/git/builtin/pack-objects.c:3884:21: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct packed_git *p;
                           ^
                             = NULL
/datasets/git/builtin/pack-objects.c:3884:21: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-objects.c:3885:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i;
                 ^
                   = 0
/datasets/git/builtin/pack-objects.c:3885:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-objects.c:3889:42: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = get_all_packs(the_repository); p; p = p->next) {
                                                ^
/datasets/git/builtin/pack-objects.c:3890:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!p->pack_local || p->pack_keep || p->pack_keep_in_core)
                                                                           ^
                                                                            {
/datasets/git/builtin/pack-objects.c:3893:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (open_pack_index(p))
                                       ^
                                        {
/datasets/git/builtin/pack-objects.c:3896:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < p->num_objects; i++) {
                ^
/datasets/git/builtin/pack-objects.c:3896:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < p->num_objects; i++) {
                            ^
/datasets/git/builtin/pack-objects.c:3901:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (force_object_loose(&oid, p->mtime))
                                                                       ^
                                                                        {
/datasets/git/builtin/pack-objects.c:3929:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if (!(bitmap_git = prepare_bitmap_walk(revs, 0)))
              ^
/datasets/git/builtin/pack-objects.c:3929:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/builtin/pack-objects.c:3929:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/builtin/pack-objects.c:3929:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(bitmap_git = prepare_bitmap_walk(revs, 0)))
                                                         ^
                                                          {
/datasets/git/builtin/pack-objects.c:3950:18: warning: parameter 'name' is unused [misc-unused-parameters]
                                 const char *name,
                                             ^
/datasets/git/builtin/pack-objects.c:3951:12: warning: parameter 'data' is unused [misc-unused-parameters]
                                 void *data)
                                       ^
/datasets/git/builtin/pack-objects.c:3956:63: warning: parameter 'data' is unused [misc-unused-parameters]
static void record_recent_commit(struct commit *commit, void *data)
                                                              ^
/datasets/git/builtin/pack-objects.c:3967:17: warning: variable 'object' is not initialized [cppcoreguidelines-init-variables]
        struct object *object;
                       ^
                              = NULL
/datasets/git/builtin/pack-objects.c:3969:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!peel_iterated_oid(oid, &peeled))
                                             ^
                                              {
/datasets/git/builtin/pack-objects.c:3973:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (object->type == OBJ_COMMIT)
                                       ^
                                        {
/datasets/git/builtin/pack-objects.c:3974:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                object->flags |= NEEDS_BITMAP;
                                 ^
/datasets/git/./pack-bitmap.h:24:23: note: expanded from macro 'NEEDS_BITMAP'
#define NEEDS_BITMAP (1u<<22)
                      ^   ~~
/datasets/git/builtin/pack-objects.c:3981:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/builtin/pack-objects.c:3982:28: warning: variable 'preferred_tips' is not initialized [cppcoreguidelines-init-variables]
        const struct string_list *preferred_tips;
                                  ^
                                                 = NULL
/datasets/git/builtin/pack-objects.c:3985:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!preferred_tips)
                            ^
                             {
/datasets/git/builtin/pack-objects.c:3988:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(item, preferred_tips) {
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/pack-objects.c:3988:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(item, preferred_tips) {
                                  ^
/datasets/git/builtin/pack-objects.c:3993:13: warning: function 'get_object_list' has cognitive complexity of 34 (threshold 25) [readability-function-cognitive-complexity]
static void get_object_list(struct rev_info *revs, int ac, const char **av)
            ^
/datasets/git/builtin/pack-objects.c:4011:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (fgets(line, sizeof(line), stdin) != NULL) {
        ^
/datasets/git/builtin/pack-objects.c:4013:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (len && line[len - 1] == '\n')
                ^
/datasets/git/builtin/pack-objects.c:4013:11: note: +1
                if (len && line[len - 1] == '\n')
                        ^
/datasets/git/builtin/pack-objects.c:4015:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!len)
                ^
/datasets/git/builtin/pack-objects.c:4017:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*line == '-') {
                ^
/datasets/git/builtin/pack-objects.c:4018:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!strcmp(line, "--not")) {
                        ^
/datasets/git/builtin/pack-objects.c:4023:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (starts_with(line, "--shallow ")) {
                        ^
/datasets/git/builtin/pack-objects.c:4025:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (get_oid_hex(line + 10, &oid))
                                ^
/datasets/git/builtin/pack-objects.c:4033:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (handle_revision_arg(line, revs, flags, REVARG_CANNOT_BE_FILENAME))
                ^
/datasets/git/builtin/pack-objects.c:4039:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (use_bitmap_index && !get_object_list_from_bitmap(revs))
        ^
/datasets/git/builtin/pack-objects.c:4039:23: note: +1
        if (use_bitmap_index && !get_object_list_from_bitmap(revs))
                             ^
/datasets/git/builtin/pack-objects.c:4042:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (use_delta_islands)
        ^
/datasets/git/builtin/pack-objects.c:4045:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (write_bitmap_index)
        ^
/datasets/git/builtin/pack-objects.c:4048:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (prepare_revision_walk(revs))
        ^
/datasets/git/builtin/pack-objects.c:4052:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!fn_show_object)
        ^
/datasets/git/builtin/pack-objects.c:4058:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (unpack_unreachable_expiration) {
        ^
/datasets/git/builtin/pack-objects.c:4060:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (add_unseen_recent_objects_to_traversal(revs,
                ^
/datasets/git/builtin/pack-objects.c:4063:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (prepare_revision_walk(revs))
                ^
/datasets/git/builtin/pack-objects.c:4069:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (keep_unreachable)
        ^
/datasets/git/builtin/pack-objects.c:4071:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (pack_loose_unreachable)
        ^
/datasets/git/builtin/pack-objects.c:4073:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (unpack_unreachable)
        ^
/datasets/git/builtin/pack-objects.c:3993:56: warning: parameter name 'ac' is too short, expected at least 3 characters [readability-identifier-length]
static void get_object_list(struct rev_info *revs, int ac, const char **av)
                                                       ^
/datasets/git/builtin/pack-objects.c:3993:73: warning: parameter name 'av' is too short, expected at least 3 characters [readability-identifier-length]
static void get_object_list(struct rev_info *revs, int ac, const char **av)
                                                                        ^
/datasets/git/builtin/pack-objects.c:3998:12: warning: 1000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        char line[1000];
                  ^
/datasets/git/builtin/pack-objects.c:4000:6: warning: variable 'save_warning' is not initialized [cppcoreguidelines-init-variables]
        int save_warning;
            ^
                         = 0
/datasets/git/builtin/pack-objects.c:4011:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (fgets(line, sizeof(line), stdin) != NULL) {
        ^
/datasets/git/builtin/pack-objects.c:4012:13: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int len = strlen(line);
                          ^
/datasets/git/builtin/pack-objects.c:4013:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (len && line[len - 1] == '\n')
                                                 ^
                                                  {
/datasets/git/builtin/pack-objects.c:4015:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!len)
                         ^
                          {
/datasets/git/builtin/pack-objects.c:4019:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                flags ^= UNINTERESTING;
                                ^~~~~
/datasets/git/builtin/pack-objects.c:4019:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                flags ^= UNINTERESTING;
                                         ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/builtin/pack-objects.c:4025:28: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                if (get_oid_hex(line + 10, &oid))
                                                       ^
/datasets/git/builtin/pack-objects.c:4025:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (get_oid_hex(line + 10, &oid))
                                                                 ^
                                                                  {
/datasets/git/builtin/pack-objects.c:4026:44: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                        die("not an object name '%s'", line + 10);
                                                                              ^
/datasets/git/builtin/pack-objects.c:4033:73: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (handle_revision_arg(line, revs, flags, REVARG_CANNOT_BE_FILENAME))
                                                                                      ^
                                                                                       {
/datasets/git/builtin/pack-objects.c:4039:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (use_bitmap_index && !get_object_list_from_bitmap(revs))
                                                                   ^
                                                                    {
/datasets/git/builtin/pack-objects.c:4042:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (use_delta_islands)
                              ^
                               {
/datasets/git/builtin/pack-objects.c:4045:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_bitmap_index)
                               ^
                                {
/datasets/git/builtin/pack-objects.c:4048:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prepare_revision_walk(revs))
                                        ^
                                         {
/datasets/git/builtin/pack-objects.c:4052:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!fn_show_object)
                            ^
                             {
/datasets/git/builtin/pack-objects.c:4061:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                unpack_unreachable_expiration, NULL, 0))
                                                                        ^
                                                                         {
/datasets/git/builtin/pack-objects.c:4063:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (prepare_revision_walk(revs))
                                                ^
                                                 {
/datasets/git/builtin/pack-objects.c:4069:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (keep_unreachable)
                             ^
                              {
/datasets/git/builtin/pack-objects.c:4071:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pack_loose_unreachable)
                                   ^
                                    {
/datasets/git/builtin/pack-objects.c:4073:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unpack_unreachable)
                               ^
                                {
/datasets/git/builtin/pack-objects.c:4081:21: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct packed_git *p;
                           ^
                             = NULL
/datasets/git/builtin/pack-objects.c:4081:21: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-objects.c:4083:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!names->nr)
                       ^
                        {
/datasets/git/builtin/pack-objects.c:4086:42: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = get_all_packs(the_repository); p; p = p->next) {
                                                ^
/datasets/git/builtin/pack-objects.c:4088:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/builtin/pack-objects.c:4088:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-objects.c:4090:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!p->pack_local)
                                   ^
                                    {
/datasets/git/builtin/pack-objects.c:4093:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < names->nr; i++)
                ^
/datasets/git/builtin/pack-objects.c:4093:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < names->nr; i++)
                                               ^
                                                {
/datasets/git/builtin/pack-objects.c:4094:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!fspathcmp(name, names->items[i].string))
                                                                     ^
                                                                      {
/datasets/git/builtin/pack-objects.c:4105:60: warning: parameter 'opt' is unused [misc-unused-parameters]
static int option_parse_index_version(const struct option *opt,
                                                           ^
/datasets/git/builtin/pack-objects.c:4108:8: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        char *c;
              ^
                = NULL
/datasets/git/builtin/pack-objects.c:4108:8: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-objects.c:4111:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/pack-objects.c:4113:43: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        pack_idx_opts.version = strtoul(val, &c, 10);
                                                 ^
/datasets/git/builtin/pack-objects.c:4114:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pack_idx_opts.version > 2)
                                      ^
                                       {
/datasets/git/builtin/pack-objects.c:4116:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*c == ',' && c[1])
                              ^
                               {
/datasets/git/builtin/pack-objects.c:4118:40: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (*c || pack_idx_opts.off32_limit & 0x80000000)
                                              ^
/datasets/git/builtin/pack-objects.c:4118:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*c || pack_idx_opts.off32_limit & 0x80000000)
                                                         ^
                                                          {
/datasets/git/builtin/pack-objects.c:4123:65: warning: parameter 'opt' is unused [misc-unused-parameters]
static int option_parse_unpack_unreachable(const struct option *opt,
                                                                ^
/datasets/git/builtin/pack-objects.c:4132:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (arg)
                        ^
                         {
/datasets/git/builtin/pack-objects.c:4138:63: warning: parameter 'opt' is unused [misc-unused-parameters]
static int option_parse_cruft_expiration(const struct option *opt,
                                                              ^
/datasets/git/builtin/pack-objects.c:4146:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (arg)
                        ^
                         {
/datasets/git/builtin/pack-objects.c:4152:8: warning: accessing fields in struct 'po_filter_data' is inefficient due to padding; only needs 3020 bytes but is using 3024 bytes [altera-struct-pack-align]
struct po_filter_data {
       ^
/datasets/git/builtin/pack-objects.c:4152:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'po_filter_data'
/datasets/git/builtin/pack-objects.c:4152:8: warning: accessing fields in struct 'po_filter_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct po_filter_data {
       ^
/datasets/git/builtin/pack-objects.c:4152:8: note: use "__attribute__((aligned(128)))" to align struct 'po_filter_data' to 128 bytes
/datasets/git/builtin/pack-objects.c:4167:5: warning: function 'cmd_pack_objects' has cognitive complexity of 98 (threshold 25) [readability-function-cognitive-complexity]
int cmd_pack_objects(int argc, const char **argv, const char *prefix)
    ^
/datasets/git/builtin/pack-objects.c:4282:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (DFS_NUM_STATES > (1 << OE_DFS_STATE_BITS))
        ^
/datasets/git/builtin/pack-objects.c:4288:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (the_repository->gitdir) {
        ^
/datasets/git/builtin/pack-objects.c:4290:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (sparse < 0)
                ^
/datasets/git/builtin/pack-objects.c:4296:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (git_env_bool(GIT_TEST_WRITE_REV_INDEX, 0))
        ^
/datasets/git/builtin/pack-objects.c:4303:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (argc) {
        ^
/datasets/git/builtin/pack-objects.c:4307:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (pack_to_stdout != !base_name || argc)
        ^
/datasets/git/builtin/pack-objects.c:4307:35: note: +1
        if (pack_to_stdout != !base_name || argc)
                                         ^
/datasets/git/builtin/pack-objects.c:4310:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (depth < 0)
        ^
/datasets/git/builtin/pack-objects.c:4312:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (depth >= (1 << OE_DEPTH_BITS)) {
        ^
/datasets/git/builtin/pack-objects.c:4317:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (cache_max_small_delta_size >= (1U << OE_Z_DELTA_BITS)) {
        ^
/datasets/git/builtin/pack-objects.c:4322:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (window < 0)
        ^
/datasets/git/builtin/pack-objects.c:4326:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (thin) {
        ^
/datasets/git/builtin/pack-objects.c:4329:5: note: +2, including nesting penalty of 1, nesting level increased to 2
                                ? "--objects-edge-aggressive"
                                ^
/datasets/git/builtin/pack-objects.c:4331:4: note: +1, nesting level increased to 1
        } else
          ^
/datasets/git/builtin/pack-objects.c:4334:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (rev_list_all) {
        ^
/datasets/git/builtin/pack-objects.c:4338:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (rev_list_reflog) {
        ^
/datasets/git/builtin/pack-objects.c:4342:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (rev_list_index) {
        ^
/datasets/git/builtin/pack-objects.c:4346:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (rev_list_unpacked && !stdin_packs) {
        ^
/datasets/git/builtin/pack-objects.c:4346:24: note: +1
        if (rev_list_unpacked && !stdin_packs) {
                              ^
/datasets/git/builtin/pack-objects.c:4351:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (exclude_promisor_objects) {
        ^
/datasets/git/builtin/pack-objects.c:4356:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (unpack_unreachable || keep_unreachable || pack_loose_unreachable)
        ^
/datasets/git/builtin/pack-objects.c:4356:45: note: +1
        if (unpack_unreachable || keep_unreachable || pack_loose_unreachable)
                                                   ^
/datasets/git/builtin/pack-objects.c:4359:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!reuse_object)
        ^
/datasets/git/builtin/pack-objects.c:4361:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (pack_compression_level == -1)
        ^
/datasets/git/builtin/pack-objects.c:4363:7: note: +1, nesting level increased to 1
        else if (pack_compression_level < 0 || pack_compression_level > Z_BEST_COMPRESSION)
             ^
/datasets/git/builtin/pack-objects.c:4363:38: note: +1
        else if (pack_compression_level < 0 || pack_compression_level > Z_BEST_COMPRESSION)
                                            ^
/datasets/git/builtin/pack-objects.c:4366:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!delta_search_threads)      /* --threads=0 means autodetect */
        ^
/datasets/git/builtin/pack-objects.c:4369:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!HAVE_THREADS && delta_search_threads != 1)
        ^
/datasets/git/builtin/pack-objects.c:4369:20: note: +1
        if (!HAVE_THREADS && delta_search_threads != 1)
                          ^
/datasets/git/builtin/pack-objects.c:4371:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!pack_to_stdout && !pack_size_limit && !cruft)
        ^
/datasets/git/builtin/pack-objects.c:4371:42: note: +1
        if (!pack_to_stdout && !pack_size_limit && !cruft)
                                                ^
/datasets/git/builtin/pack-objects.c:4373:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (pack_to_stdout && pack_size_limit)
        ^
/datasets/git/builtin/pack-objects.c:4373:21: note: +1
        if (pack_to_stdout && pack_size_limit)
                           ^
/datasets/git/builtin/pack-objects.c:4375:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (pack_size_limit && pack_size_limit < 1024*1024) {
        ^
/datasets/git/builtin/pack-objects.c:4375:22: note: +1
        if (pack_size_limit && pack_size_limit < 1024*1024) {
                            ^
/datasets/git/builtin/pack-objects.c:4380:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!pack_to_stdout && thin)
        ^
/datasets/git/builtin/pack-objects.c:4380:22: note: +1
        if (!pack_to_stdout && thin)
                            ^
/datasets/git/builtin/pack-objects.c:4383:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (keep_unreachable && unpack_unreachable)
        ^
/datasets/git/builtin/pack-objects.c:4383:23: note: +1
        if (keep_unreachable && unpack_unreachable)
                             ^
/datasets/git/builtin/pack-objects.c:4385:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!rev_list_all || !rev_list_reflog || !rev_list_index)
        ^
/datasets/git/builtin/pack-objects.c:4385:40: note: +1
        if (!rev_list_all || !rev_list_reflog || !rev_list_index)
                                              ^
/datasets/git/builtin/pack-objects.c:4388:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (pfd.have_revs && pfd.revs.filter.choice) {
        ^
/datasets/git/builtin/pack-objects.c:4388:20: note: +1
        if (pfd.have_revs && pfd.revs.filter.choice) {
                          ^
/datasets/git/builtin/pack-objects.c:4389:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!pack_to_stdout)
                ^
/datasets/git/builtin/pack-objects.c:4391:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (stdin_packs)
                ^
/datasets/git/builtin/pack-objects.c:4395:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (stdin_packs && use_internal_rev_list)
        ^
/datasets/git/builtin/pack-objects.c:4395:18: note: +1
        if (stdin_packs && use_internal_rev_list)
                        ^
/datasets/git/builtin/pack-objects.c:4398:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (cruft) {
        ^
/datasets/git/builtin/pack-objects.c:4399:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (use_internal_rev_list)
                ^
/datasets/git/builtin/pack-objects.c:4401:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (stdin_packs)
                ^
/datasets/git/builtin/pack-objects.c:4403:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (pack_size_limit)
                ^
/datasets/git/builtin/pack-objects.c:4416:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!pack_to_stdout)
        ^
/datasets/git/builtin/pack-objects.c:4419:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (use_bitmap_index < 0)
        ^
/datasets/git/builtin/pack-objects.c:4423:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!use_internal_rev_list || (!pack_to_stdout && write_bitmap_index) || is_repository_shallow(the_repository))
        ^
/datasets/git/builtin/pack-objects.c:4423:72: note: +1
        if (!use_internal_rev_list || (!pack_to_stdout && write_bitmap_index) || is_repository_shallow(the_repository))
                                                                              ^
/datasets/git/builtin/pack-objects.c:4423:49: note: +1
        if (!use_internal_rev_list || (!pack_to_stdout && write_bitmap_index) || is_repository_shallow(the_repository))
                                                       ^
/datasets/git/builtin/pack-objects.c:4426:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (pack_to_stdout || !rev_list_all)
        ^
/datasets/git/builtin/pack-objects.c:4426:21: note: +1
        if (pack_to_stdout || !rev_list_all)
                           ^
/datasets/git/builtin/pack-objects.c:4429:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (use_delta_islands)
        ^
/datasets/git/builtin/pack-objects.c:4432:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (progress && all_progress_implied)
        ^
/datasets/git/builtin/pack-objects.c:4432:15: note: +1
        if (progress && all_progress_implied)
                     ^
/datasets/git/builtin/pack-objects.c:4436:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ignore_packed_keep_on_disk) {
        ^
/datasets/git/builtin/pack-objects.c:4438:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (p = get_all_packs(the_repository); p; p = p->next)
                ^
/datasets/git/builtin/pack-objects.c:4439:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (p->pack_local && p->pack_keep)
                        ^
/datasets/git/builtin/pack-objects.c:4439:22: note: +1
                        if (p->pack_local && p->pack_keep)
                                          ^
/datasets/git/builtin/pack-objects.c:4441:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!p) /* no keep-able packs found */
                ^
/datasets/git/builtin/pack-objects.c:4444:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (local) {
        ^
/datasets/git/builtin/pack-objects.c:4451:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (p = get_all_packs(the_repository); p; p = p->next) {
                ^
/datasets/git/builtin/pack-objects.c:4452:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!p->pack_local) {
                        ^
/datasets/git/builtin/pack-objects.c:4463:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (progress && !cruft)
        ^
/datasets/git/builtin/pack-objects.c:4463:15: note: +1
        if (progress && !cruft)
                     ^
/datasets/git/builtin/pack-objects.c:4465:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (stdin_packs) {
        ^
/datasets/git/builtin/pack-objects.c:4469:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (rev_list_unpacked)
                ^
/datasets/git/builtin/pack-objects.c:4471:9: note: +1, nesting level increased to 1
        } else if (cruft) {
               ^
/datasets/git/builtin/pack-objects.c:4473:9: note: +1, nesting level increased to 1
        } else if (!use_internal_rev_list) {
               ^
/datasets/git/builtin/pack-objects.c:4475:9: note: +1, nesting level increased to 1
        } else if (pfd.have_revs) {
               ^
/datasets/git/builtin/pack-objects.c:4478:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/pack-objects.c:4486:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (include_tag && nr_result)
        ^
/datasets/git/builtin/pack-objects.c:4486:18: note: +1
        if (include_tag && nr_result)
                        ^
/datasets/git/builtin/pack-objects.c:4492:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (non_empty && !nr_result)
        ^
/datasets/git/builtin/pack-objects.c:4492:16: note: +1
        if (non_empty && !nr_result)
                      ^
/datasets/git/builtin/pack-objects.c:4494:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (nr_result) {
        ^
/datasets/git/builtin/pack-objects.c:4507:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (progress)
        ^
/datasets/git/builtin/pack-objects.c:4172:16: warning: variable name 'rp' is too short, expected at least 3 characters [readability-identifier-length]
        struct strvec rp = STRVEC_INIT;
                      ^
/datasets/git/builtin/pack-objects.c:4173:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int rev_list_unpacked = 0, rev_list_all = 0, rev_list_reflog = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:4180:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT('q', "quiet", &progress,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:4182:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT(0, "progress", &progress,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:4184:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT(0, "all-progress", &progress,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:4186:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "all-progress-implied",
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:4194:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "local", &local,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:4196:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "incremental", &incremental,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:4204:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "reuse-delta", &reuse_delta,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:4206:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "reuse-object", &reuse_object,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:4208:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "delta-base-offset", &allow_ofs_delta,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:4212:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "non-empty", &non_empty,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:4214:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "revs", &use_internal_rev_list,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:4216:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT_F(0, "unpacked", &rev_list_unpacked,
                ^
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:4219:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT_F(0, "all", &rev_list_all,
                ^
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:4222:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT_F(0, "reflog", &rev_list_reflog,
                ^
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:4225:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT_F(0, "indexed-objects", &rev_list_index,
                ^
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:4228:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "stdin-packs", &stdin_packs,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:4230:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "stdout", &pack_to_stdout,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:4232:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "include-tag", &include_tag,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:4234:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "keep-unreachable", &keep_unreachable,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:4236:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "pack-loose-unreachable", &pack_loose_unreachable,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:4241:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "cruft", &cruft, N_("create a cruft pack")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:4245:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "sparse", &sparse,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:4247:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "thin", &thin,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:4249:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "shallow", &shallow,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:4251:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "honor-pack-keep", &ignore_packed_keep_on_disk,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:4257:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT(0, "keep-true-parents", &grafts_replace_parents,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:4259:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "use-bitmap-index", &use_bitmap_index,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:4261:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT(0, "write-bitmap-index", &write_bitmap_index,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:4264:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT_F(0, "write-bitmap-index-quiet",
                ^
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:4272:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "exclude-promisor-objects", &exclude_promisor_objects,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:4274:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "delta-islands", &use_delta_islands,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/pack-objects.c:4282:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (DFS_NUM_STATES > (1 << OE_DFS_STATE_BITS))
                              ^
/datasets/git/builtin/pack-objects.c:4282:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (DFS_NUM_STATES > (1 << OE_DFS_STATE_BITS))
                                                      ^
                                                       {
/datasets/git/builtin/pack-objects.c:4290:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (sparse < 0)
                               ^
                                {
/datasets/git/builtin/pack-objects.c:4296:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (git_env_bool(GIT_TEST_WRITE_REV_INDEX, 0))
                                                      ^
                                                       {
/datasets/git/builtin/pack-objects.c:4297:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                pack_idx_opts.flags |= WRITE_REV;
                ^
/datasets/git/builtin/pack-objects.c:4307:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pack_to_stdout != !base_name || argc)
                                                 ^
                                                  {
/datasets/git/builtin/pack-objects.c:4310:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (depth < 0)
                      ^
                       {
/datasets/git/builtin/pack-objects.c:4312:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (depth >= (1 << OE_DEPTH_BITS)) {
                      ^
/datasets/git/builtin/pack-objects.c:4314:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        depth, (1 << OE_DEPTH_BITS) - 1);
                                ^
/datasets/git/builtin/pack-objects.c:4315:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                depth = (1 << OE_DEPTH_BITS) - 1;
                         ^
/datasets/git/builtin/pack-objects.c:4317:37: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (cache_max_small_delta_size >= (1U << OE_Z_DELTA_BITS)) {
                                           ^
/datasets/git/builtin/pack-objects.c:4319:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        (1U << OE_Z_DELTA_BITS) - 1);
                         ^
/datasets/git/builtin/pack-objects.c:4320:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                cache_max_small_delta_size = (1U << OE_Z_DELTA_BITS) - 1;
                                              ^
/datasets/git/builtin/pack-objects.c:4322:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (window < 0)
                       ^
                        {
/datasets/git/builtin/pack-objects.c:4331:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/builtin/pack-objects.c:4356:71: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unpack_unreachable || keep_unreachable || pack_loose_unreachable)
                                                                             ^
                                                                              {
/datasets/git/builtin/pack-objects.c:4359:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!reuse_object)
                          ^
                           {
/datasets/git/builtin/pack-objects.c:4361:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pack_compression_level == -1)
                                         ^
                                          {
/datasets/git/builtin/pack-objects.c:4363:85: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (pack_compression_level < 0 || pack_compression_level > Z_BEST_COMPRESSION)
                                                                                           ^
                                                                                            {
/datasets/git/builtin/pack-objects.c:4366:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!delta_search_threads)      /* --threads=0 means autodetect */
                                  ^
                                   {
/datasets/git/builtin/pack-objects.c:4369:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!HAVE_THREADS && delta_search_threads != 1)
                                                       ^
                                                        {
/datasets/git/builtin/pack-objects.c:4371:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!pack_to_stdout && !pack_size_limit && !cruft)
                                                          ^
                                                           {
/datasets/git/builtin/pack-objects.c:4373:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pack_to_stdout && pack_size_limit)
                                              ^
                                               {
/datasets/git/builtin/pack-objects.c:4375:43: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        if (pack_size_limit && pack_size_limit < 1024*1024) {
                                                 ^
/datasets/git/builtin/pack-objects.c:4375:43: note: make conversion explicit to silence this warning
        if (pack_size_limit && pack_size_limit < 1024*1024) {
                                                 ^~~~~~~~~
                                                 (unsigned long)( )
/datasets/git/builtin/pack-objects.c:4375:43: note: perform multiplication in a wider type
        if (pack_size_limit && pack_size_limit < 1024*1024) {
                                                 ^~~~
                                                 (long)
/datasets/git/builtin/pack-objects.c:4375:43: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (pack_size_limit && pack_size_limit < 1024*1024) {
                                                 ^
/datasets/git/builtin/pack-objects.c:4375:48: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (pack_size_limit && pack_size_limit < 1024*1024) {
                                                      ^
/datasets/git/builtin/pack-objects.c:4377:21: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                pack_size_limit = 1024*1024;
                                  ^
/datasets/git/builtin/pack-objects.c:4377:21: note: make conversion explicit to silence this warning
                pack_size_limit = 1024*1024;
                                  ^~~~~~~~~
                                  (unsigned long)( )
/datasets/git/builtin/pack-objects.c:4377:21: note: perform multiplication in a wider type
                pack_size_limit = 1024*1024;
                                  ^~~~
                                  (long)
/datasets/git/builtin/pack-objects.c:4377:21: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                pack_size_limit = 1024*1024;
                                  ^
/datasets/git/builtin/pack-objects.c:4377:26: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                pack_size_limit = 1024*1024;
                                       ^
/datasets/git/builtin/pack-objects.c:4380:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!pack_to_stdout && thin)
                                    ^
                                     {
/datasets/git/builtin/pack-objects.c:4383:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (keep_unreachable && unpack_unreachable)
                                                   ^
                                                    {
/datasets/git/builtin/pack-objects.c:4385:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!rev_list_all || !rev_list_reflog || !rev_list_index)
                                                                 ^
                                                                  {
/datasets/git/builtin/pack-objects.c:4389:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!pack_to_stdout)
                                    ^
                                     {
/datasets/git/builtin/pack-objects.c:4391:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (stdin_packs)
                                ^
                                 {
/datasets/git/builtin/pack-objects.c:4395:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (stdin_packs && use_internal_rev_list)
                                                 ^
                                                  {
/datasets/git/builtin/pack-objects.c:4399:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (use_internal_rev_list)
                                          ^
                                           {
/datasets/git/builtin/pack-objects.c:4401:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (stdin_packs)
                                ^
                                 {
/datasets/git/builtin/pack-objects.c:4403:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pack_size_limit)
                                    ^
                                     {
/datasets/git/builtin/pack-objects.c:4416:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!pack_to_stdout)
                            ^
                             {
/datasets/git/builtin/pack-objects.c:4419:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (use_bitmap_index < 0)
                                 ^
                                  {
/datasets/git/builtin/pack-objects.c:4423:113: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!use_internal_rev_list || (!pack_to_stdout && write_bitmap_index) || is_repository_shallow(the_repository))
                                                                                                                       ^
                                                                                                                        {
/datasets/git/builtin/pack-objects.c:4426:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pack_to_stdout || !rev_list_all)
                                            ^
                                             {
/datasets/git/builtin/pack-objects.c:4429:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (use_delta_islands)
                              ^
                               {
/datasets/git/builtin/pack-objects.c:4432:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (progress && all_progress_implied)
                                             ^
                                              {
/datasets/git/builtin/pack-objects.c:4437:22: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                struct packed_git *p;
                                   ^
                                     = NULL
/datasets/git/builtin/pack-objects.c:4437:22: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-objects.c:4438:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (p = get_all_packs(the_repository); p; p = p->next)
                ^
/datasets/git/builtin/pack-objects.c:4438:43: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (p = get_all_packs(the_repository); p; p = p->next)
                                                        ^
/datasets/git/builtin/pack-objects.c:4438:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (p = get_all_packs(the_repository); p; p = p->next)
                                                                       ^
                                                                        {
/datasets/git/builtin/pack-objects.c:4439:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (p->pack_local && p->pack_keep)
                                                          ^
                                                           {
/datasets/git/builtin/pack-objects.c:4441:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!p) /* no keep-able packs found */
                       ^
                        {
/datasets/git/builtin/pack-objects.c:4450:22: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                struct packed_git *p;
                                   ^
                                     = NULL
/datasets/git/builtin/pack-objects.c:4450:22: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-objects.c:4451:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (p = get_all_packs(the_repository); p; p = p->next) {
                ^
/datasets/git/builtin/pack-objects.c:4451:43: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (p = get_all_packs(the_repository); p; p = p->next) {
                                                        ^
/datasets/git/builtin/pack-objects.c:4463:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (progress && !cruft)
                               ^
                                {
/datasets/git/builtin/pack-objects.c:4469:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (rev_list_unpacked)
                                      ^
                                       {
/datasets/git/builtin/pack-objects.c:4476:30: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                get_object_list(&pfd.revs, rp.nr, rp.v);
                                           ^
/datasets/git/builtin/pack-objects.c:4482:26: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                get_object_list(&revs, rp.nr, rp.v);
                                       ^
/datasets/git/builtin/pack-objects.c:4486:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (include_tag && nr_result)
                                     ^
                                      {
/datasets/git/builtin/pack-objects.c:4492:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (non_empty && !nr_result)
                                    ^
                                     {
/datasets/git/builtin/pack-objects.c:4507:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (progress)
                     ^
                      {
/datasets/git/builtin/pack-redundant.c:10:1: warning: #includes are not sorted properly [llvm-include-order]
#include "repository.h"
^        ~~~~~~~~~~~~~~
         "object-store.h"
/datasets/git/builtin/pack-redundant.c:14:1: warning: replace macro with enum [modernize-macro-to-enum]
#define BLKSIZE 512
^~~~~~~~
                =
/datasets/git/builtin/pack-redundant.c:14:9: warning: macro 'BLKSIZE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define BLKSIZE 512
        ^
/datasets/git/builtin/pack-redundant.c:19:12: warning: variable 'load_all_packs' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int load_all_packs, verbose, alt_odb;
           ^
/datasets/git/builtin/pack-redundant.c:19:28: warning: variable 'verbose' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int load_all_packs, verbose, alt_odb;
                           ^
/datasets/git/builtin/pack-redundant.c:19:37: warning: variable 'alt_odb' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int load_all_packs, verbose, alt_odb;
                                    ^
/datasets/git/builtin/pack-redundant.c:21:8: warning: accessing fields in struct 'llist_item' is inefficient due to padding; only needs 44 bytes but is using 48 bytes [altera-struct-pack-align]
struct llist_item {
       ^
/datasets/git/builtin/pack-redundant.c:21:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'llist_item'
/datasets/git/builtin/pack-redundant.c:21:8: warning: accessing fields in struct 'llist_item' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct llist_item {
       ^
/datasets/git/builtin/pack-redundant.c:21:8: note: use "__attribute__((aligned(64)))" to align struct 'llist_item' to 64 bytes
/datasets/git/builtin/pack-redundant.c:25:15: warning: accessing fields in struct 'llist' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
static struct llist {
              ^
/datasets/git/builtin/pack-redundant.c:25:15: note: use "__attribute__((aligned(32)))" to align struct 'llist' to 32 bytes
/datasets/git/builtin/pack-redundant.c:29:4: warning: variable 'all_objects' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} *all_objects; /* all objects which must be present in local packfiles */
   ^
/datasets/git/builtin/pack-redundant.c:29:4: warning: variable 'all_objects' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/pack-redundant.c:31:15: warning: accessing fields in struct 'pack_list' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
static struct pack_list {
              ^
/datasets/git/builtin/pack-redundant.c:31:15: note: use "__attribute__((aligned(64)))" to align struct 'pack_list' to 64 bytes
/datasets/git/builtin/pack-redundant.c:37:4: warning: variable 'local_packs' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} *local_packs = NULL, *altodb_packs = NULL;
   ^
/datasets/git/builtin/pack-redundant.c:37:4: warning: variable 'local_packs' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/pack-redundant.c:37:25: warning: variable 'altodb_packs' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} *local_packs = NULL, *altodb_packs = NULL;
                        ^
/datasets/git/builtin/pack-redundant.c:37:25: warning: variable 'altodb_packs' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/pack-redundant.c:39:27: warning: variable 'free_nodes' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct llist_item *free_nodes;
                          ^
/datasets/git/builtin/pack-redundant.c:39:27: warning: variable 'free_nodes' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/pack-redundant.c:49:21: warning: variable 'new_item' is not initialized [cppcoreguidelines-init-variables]
        struct llist_item *new_item;
                           ^
                                    = NULL
/datasets/git/builtin/pack-redundant.c:54:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
                int i = 1;
                    ^
/datasets/git/builtin/pack-redundant.c:56:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (; i < BLKSIZE; i++)
                ^
/datasets/git/builtin/pack-redundant.c:56:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (; i < BLKSIZE; i++)
                                        ^
                                         {
/datasets/git/builtin/pack-redundant.c:71:16: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        struct llist *ret;
                      ^
                          = NULL
/datasets/git/builtin/pack-redundant.c:72:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct llist_item *new_item, *old_item, *prev;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-redundant.c:72:21: warning: variable 'new_item' is not initialized [cppcoreguidelines-init-variables]
        struct llist_item *new_item, *old_item, *prev;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-redundant.c:72:32: warning: variable 'old_item' is not initialized [cppcoreguidelines-init-variables]
        struct llist_item *new_item, *old_item, *prev;
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-redundant.c:72:43: warning: variable 'prev' is not initialized [cppcoreguidelines-init-variables]
        struct llist_item *new_item, *old_item, *prev;
                                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-redundant.c:76:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if ((ret->size = list->size) == 0)
             ^
/datasets/git/builtin/pack-redundant.c:76:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/builtin/pack-redundant.c:76:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/builtin/pack-redundant.c:72:2: note: inferred assignment of ID-dependent value from ID-dependent member next [altera-id-dependent-backward-branch]
        struct llist_item *new_item, *old_item, *prev;
        ^
/datasets/git/builtin/pack-redundant.c:76:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((ret->size = list->size) == 0)
                                          ^
                                           {
/datasets/git/builtin/pack-redundant.c:83:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (old_item) {
        ^
/datasets/git/builtin/pack-redundant.c:83:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'old_item' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (old_item) {
               ^
/datasets/git/builtin/pack-redundant.c:107:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (after == list->back)
                                        ^
                                         {
/datasets/git/builtin/pack-redundant.c:110:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (list->size == 0)
                                    ^
                                     {
/datasets/git/builtin/pack-redundant.c:112:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/pack-redundant.c:129:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct llist_item *prev = NULL, *l;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-redundant.c:129:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/builtin/pack-redundant.c:129:35: warning: variable 'l' is not initialized [cppcoreguidelines-init-variables]
        struct llist_item *prev = NULL, *l;
                                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-redundant.c:129:35: warning: variable name 'l' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-redundant.c:132:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (l) {
        ^
/datasets/git/builtin/pack-redundant.c:132:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'l' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (l) {
               ^
/datasets/git/builtin/pack-redundant.c:150:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct llist_item *prev, *l;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-redundant.c:150:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/builtin/pack-redundant.c:150:21: warning: variable 'prev' is not initialized [cppcoreguidelines-init-variables]
        struct llist_item *prev, *l;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-redundant.c:150:28: warning: variable 'l' is not initialized [cppcoreguidelines-init-variables]
        struct llist_item *prev, *l;
                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-redundant.c:150:28: warning: variable name 'l' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-redundant.c:155:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (l) {
        ^
/datasets/git/builtin/pack-redundant.c:155:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'l' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (l) {
               ^
/datasets/git/builtin/pack-redundant.c:157:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cmp > 0) /* not in list, since sorted */
                            ^
                             {
/datasets/git/builtin/pack-redundant.c:167:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        } else
                              ^
                               {
/datasets/git/builtin/pack-redundant.c:169:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (l == list->back)
                                            ^
                                             {
/datasets/git/builtin/pack-redundant.c:182:45: warning: 2 adjacent parameters of 'llist_sorted_difference_inplace' of similar type ('struct llist *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void llist_sorted_difference_inplace(struct llist *A,
                                            ^~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-redundant.c:182:59: note: the first parameter in the range is 'A'
static void llist_sorted_difference_inplace(struct llist *A,
                                                          ^
/datasets/git/builtin/pack-redundant.c:183:24: note: the last parameter in the range is 'B'
                                     struct llist *B)
                                                   ^
/datasets/git/builtin/pack-redundant.c:182:59: warning: parameter name 'A' is too short, expected at least 3 characters [readability-identifier-length]
static void llist_sorted_difference_inplace(struct llist *A,
                                                          ^
/datasets/git/builtin/pack-redundant.c:183:24: warning: parameter name 'B' is too short, expected at least 3 characters [readability-identifier-length]
                                     struct llist *B)
                                                   ^
/datasets/git/builtin/pack-redundant.c:185:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct llist_item *hint, *b;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-redundant.c:185:2: note: inferred assignment of ID-dependent value from ID-dependent member front [altera-id-dependent-backward-branch]
/datasets/git/builtin/pack-redundant.c:185:21: warning: variable 'hint' is not initialized [cppcoreguidelines-init-variables]
        struct llist_item *hint, *b;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-redundant.c:185:28: warning: variable 'b' is not initialized [cppcoreguidelines-init-variables]
        struct llist_item *hint, *b;
                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-redundant.c:185:28: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-redundant.c:190:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (b) {
        ^
/datasets/git/builtin/pack-redundant.c:190:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'b' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (b) {
               ^
/datasets/git/builtin/pack-redundant.c:196:70: warning: parameter name 'pl' is too short, expected at least 3 characters [readability-identifier-length]
static inline struct pack_list * pack_list_insert(struct pack_list **pl,
                                                                     ^
/datasets/git/builtin/pack-redundant.c:199:20: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        struct pack_list *p = xmalloc(sizeof(struct pack_list));
                          ^
/datasets/git/builtin/pack-redundant.c:200:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(p, entry, sizeof(struct pack_list));
        ^~~~~~
/datasets/git/builtin/pack-redundant.c:200:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(p, entry, sizeof(struct pack_list));
        ^~~~~~
/datasets/git/builtin/pack-redundant.c:206:55: warning: parameter name 'pl' is too short, expected at least 3 characters [readability-identifier-length]
static inline size_t pack_list_size(struct pack_list *pl)
                                                      ^
/datasets/git/builtin/pack-redundant.c:206:37: note: inferred assignment of ID-dependent value from ID-dependent member next [altera-id-dependent-backward-branch]
static inline size_t pack_list_size(struct pack_list *pl)
                                    ^
/datasets/git/builtin/pack-redundant.c:209:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (pl) {
        ^
/datasets/git/builtin/pack-redundant.c:209:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'pl' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (pl) {
               ^
/datasets/git/builtin/pack-redundant.c:216:27: warning: function 'pack_list_difference' is within a recursive call chain [misc-no-recursion]
static struct pack_list * pack_list_difference(const struct pack_list *A,
                          ^
/datasets/git/builtin/pack-redundant.c:216:27: note: example recursive call chain, starting from function 'pack_list_difference'
/datasets/git/builtin/pack-redundant.c:228:11: note: Frame #1: function 'pack_list_difference' calls function 'pack_list_difference' here:
                        return pack_list_difference(A->next, B);
                               ^
/datasets/git/builtin/pack-redundant.c:228:11: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/builtin/pack-redundant.c:216:72: warning: parameter name 'A' is too short, expected at least 3 characters [readability-identifier-length]
static struct pack_list * pack_list_difference(const struct pack_list *A,
                                                                       ^
/datasets/git/builtin/pack-redundant.c:217:37: warning: parameter name 'B' is too short, expected at least 3 characters [readability-identifier-length]
                                               const struct pack_list *B)
                                                                       ^
/datasets/git/builtin/pack-redundant.c:219:20: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        struct pack_list *ret;
                          ^
                              = NULL
/datasets/git/builtin/pack-redundant.c:220:26: warning: variable 'pl' is not initialized [cppcoreguidelines-init-variables]
        const struct pack_list *pl;
                                ^
                                   = NULL
/datasets/git/builtin/pack-redundant.c:220:26: warning: variable name 'pl' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-redundant.c:222:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!A)
               ^
                {
/datasets/git/builtin/pack-redundant.c:226:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (pl != NULL) {
        ^
/datasets/git/builtin/pack-redundant.c:226:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'pl' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (pl != NULL) {
               ^
/datasets/git/builtin/pack-redundant.c:227:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (A->pack == pl->pack)
                                        ^
                                         {
/datasets/git/builtin/pack-redundant.c:232:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(ret, A, sizeof(struct pack_list));
        ^~~~~~
/datasets/git/builtin/pack-redundant.c:232:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(ret, A, sizeof(struct pack_list));
        ^~~~~~
/datasets/git/builtin/pack-redundant.c:237:45: warning: parameter name 'p1' is too short, expected at least 3 characters [readability-identifier-length]
static void cmp_two_packs(struct pack_list *p1, struct pack_list *p2)
                                            ^
/datasets/git/builtin/pack-redundant.c:237:67: warning: parameter name 'p2' is too short, expected at least 3 characters [readability-identifier-length]
static void cmp_two_packs(struct pack_list *p1, struct pack_list *p2)
                                                                  ^
/datasets/git/builtin/pack-redundant.c:239:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t p1_off = 0, p2_off = 0, p1_step, p2_step;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-redundant.c:239:33: warning: variable 'p1_step' is not initialized [cppcoreguidelines-init-variables]
        size_t p1_off = 0, p2_off = 0, p1_step, p2_step;
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-redundant.c:239:42: warning: variable 'p2_step' is not initialized [cppcoreguidelines-init-variables]
        size_t p1_off = 0, p2_off = 0, p1_step, p2_step;
                                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-redundant.c:240:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const unsigned char *p1_base, *p2_base;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-redundant.c:240:23: warning: variable 'p1_base' is not initialized [cppcoreguidelines-init-variables]
        const unsigned char *p1_base, *p2_base;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-redundant.c:240:33: warning: variable 'p2_base' is not initialized [cppcoreguidelines-init-variables]
        const unsigned char *p1_base, *p2_base;
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-redundant.c:241:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct llist_item *p1_hint = NULL, *p2_hint = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-redundant.c:244:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!p1->unique_objects)
                                ^
                                 {
/datasets/git/builtin/pack-redundant.c:246:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!p2->unique_objects)
                                ^
                                 {
/datasets/git/builtin/pack-redundant.c:251:13: warning: 256 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        p1_base += 256 * 4 + ((p1->pack->index_version < 2) ? 4 : 8);
                   ^
/datasets/git/builtin/pack-redundant.c:251:60: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        p1_base += 256 * 4 + ((p1->pack->index_version < 2) ? 4 : 8);
                                                                  ^
/datasets/git/builtin/pack-redundant.c:252:13: warning: 256 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        p2_base += 256 * 4 + ((p2->pack->index_version < 2) ? 4 : 8);
                   ^
/datasets/git/builtin/pack-redundant.c:252:60: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        p2_base += 256 * 4 + ((p2->pack->index_version < 2) ? 4 : 8);
                                                                  ^
/datasets/git/builtin/pack-redundant.c:256:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (p1_off < p1->pack->num_objects * p1_step &&
        ^
/datasets/git/builtin/pack-redundant.c:256:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p1_off' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (p1_off < p1->pack->num_objects * p1_step &&
               ^
/datasets/git/builtin/pack-redundant.c:280:47: warning: parameter name 'p1' is too short, expected at least 3 characters [readability-identifier-length]
static size_t sizeof_union(struct packed_git *p1, struct packed_git *p2)
                                              ^
/datasets/git/builtin/pack-redundant.c:280:70: warning: parameter name 'p2' is too short, expected at least 3 characters [readability-identifier-length]
static size_t sizeof_union(struct packed_git *p1, struct packed_git *p2)
                                                                     ^
/datasets/git/builtin/pack-redundant.c:283:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t p1_off = 0, p2_off = 0, p1_step, p2_step;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-redundant.c:283:33: warning: variable 'p1_step' is not initialized [cppcoreguidelines-init-variables]
        size_t p1_off = 0, p2_off = 0, p1_step, p2_step;
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-redundant.c:283:42: warning: variable 'p2_step' is not initialized [cppcoreguidelines-init-variables]
        size_t p1_off = 0, p2_off = 0, p1_step, p2_step;
                                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-redundant.c:284:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const unsigned char *p1_base, *p2_base;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-redundant.c:283:2: note: inferred assignment of ID-dependent value from ID-dependent variable p1_step [altera-id-dependent-backward-branch]
        size_t p1_off = 0, p2_off = 0, p1_step, p2_step;
        ^
/datasets/git/builtin/pack-redundant.c:284:23: warning: variable 'p1_base' is not initialized [cppcoreguidelines-init-variables]
        const unsigned char *p1_base, *p2_base;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-redundant.c:284:33: warning: variable 'p2_base' is not initialized [cppcoreguidelines-init-variables]
        const unsigned char *p1_base, *p2_base;
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-redundant.c:289:13: warning: 256 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        p1_base += 256 * 4 + ((p1->index_version < 2) ? 4 : 8);
                   ^
/datasets/git/builtin/pack-redundant.c:289:54: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        p1_base += 256 * 4 + ((p1->index_version < 2) ? 4 : 8);
                                                            ^
/datasets/git/builtin/pack-redundant.c:290:13: warning: 256 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        p2_base += 256 * 4 + ((p2->index_version < 2) ? 4 : 8);
                   ^
/datasets/git/builtin/pack-redundant.c:290:54: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        p2_base += 256 * 4 + ((p2->index_version < 2) ? 4 : 8);
                                                            ^
/datasets/git/builtin/pack-redundant.c:294:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (p1_off < p1->num_objects * p1_step &&
        ^
/datasets/git/builtin/pack-redundant.c:294:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p1_off' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (p1_off < p1->num_objects * p1_step &&
               ^
/datasets/git/builtin/pack-redundant.c:315:53: warning: parameter name 'pl' is too short, expected at least 3 characters [readability-identifier-length]
static size_t get_pack_redundancy(struct pack_list *pl)
                                                    ^
/datasets/git/builtin/pack-redundant.c:317:20: warning: variable 'subset' is not initialized [cppcoreguidelines-init-variables]
        struct pack_list *subset;
                          ^
                                 = NULL
/datasets/git/builtin/pack-redundant.c:317:2: note: inferred assignment of ID-dependent value from ID-dependent member next [altera-id-dependent-backward-branch]
        struct pack_list *subset;
        ^
/datasets/git/builtin/pack-redundant.c:320:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!pl)
                ^
                 {
/datasets/git/builtin/pack-redundant.c:323:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'subset' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((subset = pl->next)) {
               ^
/datasets/git/builtin/pack-redundant.c:324:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (subset) {
                ^
/datasets/git/builtin/pack-redundant.c:324:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'subset' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (subset) {
                       ^
/datasets/git/builtin/pack-redundant.c:333:58: warning: parameter name 'pl' is too short, expected at least 3 characters [readability-identifier-length]
static inline off_t pack_set_bytecount(struct pack_list *pl)
                                                         ^
/datasets/git/builtin/pack-redundant.c:333:40: note: inferred assignment of ID-dependent value from ID-dependent member next [altera-id-dependent-backward-branch]
static inline off_t pack_set_bytecount(struct pack_list *pl)
                                       ^
/datasets/git/builtin/pack-redundant.c:336:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (pl) {
        ^
/datasets/git/builtin/pack-redundant.c:336:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'pl' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (pl) {
               ^
/datasets/git/builtin/pack-redundant.c:338:10: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'off_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                ret += pl->pack->index_size;
                       ^
/datasets/git/builtin/pack-redundant.c:344:34: warning: 2 adjacent parameters of 'cmp_remaining_objects' of similar type ('const void *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int cmp_remaining_objects(const void *a, const void *b)
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-redundant.c:344:46: note: the first parameter in the range is 'a'
static int cmp_remaining_objects(const void *a, const void *b)
                                             ^
/datasets/git/builtin/pack-redundant.c:344:61: note: the last parameter in the range is 'b'
static int cmp_remaining_objects(const void *a, const void *b)
                                                            ^
/datasets/git/builtin/pack-redundant.c:344:46: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static int cmp_remaining_objects(const void *a, const void *b)
                                             ^
/datasets/git/builtin/pack-redundant.c:344:61: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static int cmp_remaining_objects(const void *a, const void *b)
                                                            ^
/datasets/git/builtin/pack-redundant.c:351:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pl_a->all_objects_size == pl_b->all_objects_size)
                                                                     ^
                                                                      {
/datasets/git/builtin/pack-redundant.c:353:3: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                else if (pl_a->all_objects_size < pl_b->all_objects_size)
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-redundant.c:353:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (pl_a->all_objects_size < pl_b->all_objects_size)
                                                                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-redundant.c:355:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-redundant.c:366:47: warning: parameter name 'pl' is too short, expected at least 3 characters [readability-identifier-length]
static void sort_pack_list(struct pack_list **pl)
                                              ^
/datasets/git/builtin/pack-redundant.c:368:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct pack_list **ary, *p;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-redundant.c:368:21: warning: variable 'ary' is not initialized [cppcoreguidelines-init-variables]
        struct pack_list **ary, *p;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-redundant.c:368:27: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct pack_list **ary, *p;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-redundant.c:368:27: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-redundant.c:369:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/pack-redundant.c:369:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-redundant.c:370:9: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
        size_t n = pack_list_size(*pl);
               ^
/datasets/git/builtin/pack-redundant.c:372:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (n < 2)
                  ^
                   {
/datasets/git/builtin/pack-redundant.c:376:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        CALLOC_ARRAY(ary, n);
        ^
/datasets/git/./git-compat-util.h:1091:55: note: expanded from macro 'CALLOC_ARRAY'
#define CALLOC_ARRAY(x, alloc) (x) = xcalloc((alloc), sizeof(*(x)))
                                                      ^
/datasets/git/builtin/pack-redundant.c:377:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (n = 0, p = *pl; p; p = p->next)
        ^
/datasets/git/builtin/pack-redundant.c:377:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (n = 0, p = *pl; p; p = p->next)
                             ^
/datasets/git/builtin/pack-redundant.c:377:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (n = 0, p = *pl; p; p = p->next)
                                            ^
                                             {
/datasets/git/builtin/pack-redundant.c:380:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        QSORT(ary, n, cmp_remaining_objects);
        ^
/datasets/git/./git-compat-util.h:1304:56: note: expanded from macro 'QSORT'
#define QSORT(base, n, compar) sane_qsort((base), (n), sizeof(*(base)), compar)
                                                       ^
/datasets/git/builtin/pack-redundant.c:383:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < n - 1; i++)
        ^
/datasets/git/builtin/pack-redundant.c:383:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'n' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < n - 1; i++)
                    ^
/datasets/git/builtin/pack-redundant.c:383:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < n - 1; i++)
                                   ^
                                    {
/datasets/git/builtin/pack-redundant.c:394:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct pack_list *pl, *unique = NULL, *non_unique = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-redundant.c:394:20: warning: variable 'pl' is not initialized [cppcoreguidelines-init-variables]
        struct pack_list *pl, *unique = NULL, *non_unique = NULL;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-redundant.c:394:20: warning: variable name 'pl' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-redundant.c:395:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct llist *missing, *unique_pack_objects;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-redundant.c:394:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct pack_list *pl, *unique = NULL, *non_unique = NULL;
        ^
/datasets/git/builtin/pack-redundant.c:395:16: warning: variable 'missing' is not initialized [cppcoreguidelines-init-variables]
        struct llist *missing, *unique_pack_objects;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-redundant.c:395:26: warning: variable 'unique_pack_objects' is not initialized [cppcoreguidelines-init-variables]
        struct llist *missing, *unique_pack_objects;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-redundant.c:398:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (pl) {
        ^
/datasets/git/builtin/pack-redundant.c:394:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct pack_list *pl, *unique = NULL, *non_unique = NULL;
        ^
/datasets/git/builtin/pack-redundant.c:398:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'pl' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (pl) {
               ^
/datasets/git/builtin/pack-redundant.c:399:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pl->unique_objects->size)
                                             ^
                                              {
/datasets/git/builtin/pack-redundant.c:401:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/pack-redundant.c:408:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (pl) {
        ^
/datasets/git/builtin/pack-redundant.c:394:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct pack_list *pl, *unique = NULL, *non_unique = NULL;
        ^
/datasets/git/builtin/pack-redundant.c:408:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'pl' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (pl) {
               ^
/datasets/git/builtin/pack-redundant.c:426:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (pl) {
        ^
/datasets/git/builtin/pack-redundant.c:394:2: note: inferred assignment of ID-dependent value from ID-dependent member next [altera-id-dependent-backward-branch]
        struct pack_list *pl, *unique = NULL, *non_unique = NULL;
        ^
/datasets/git/builtin/pack-redundant.c:426:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'pl' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (pl) {
               ^
/datasets/git/builtin/pack-redundant.c:431:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'non_unique' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (non_unique) {
               ^
/datasets/git/builtin/pack-redundant.c:434:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (non_unique->remaining_objects->size == 0)
                                                             ^
                                                              {
/datasets/git/builtin/pack-redundant.c:439:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (pl = non_unique->next; pl && pl->remaining_objects->size > 0;  pl = pl->next)
                ^
/datasets/git/builtin/pack-redundant.c:439:31: warning: backward branch (for loop) is ID-dependent due to variable reference to 'pl' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (pl = non_unique->next; pl && pl->remaining_objects->size > 0;  pl = pl->next)
                                            ^
/datasets/git/builtin/pack-redundant.c:439:85: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (pl = non_unique->next; pl && pl->remaining_objects->size > 0;  pl = pl->next)
                                                                                                  ^
                                                                                                   {
/datasets/git/builtin/pack-redundant.c:448:20: warning: variable name 'pl' is too short, expected at least 3 characters [readability-identifier-length]
        struct pack_list *pl = local_packs;
                          ^
/datasets/git/builtin/pack-redundant.c:449:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct llist_item *hint, *l;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-redundant.c:448:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct pack_list *pl = local_packs;
        ^
/datasets/git/builtin/pack-redundant.c:449:21: warning: variable 'hint' is not initialized [cppcoreguidelines-init-variables]
        struct llist_item *hint, *l;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-redundant.c:449:28: warning: variable 'l' is not initialized [cppcoreguidelines-init-variables]
        struct llist_item *hint, *l;
                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-redundant.c:449:28: warning: variable name 'l' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-redundant.c:449:2: note: inferred assignment of ID-dependent value from ID-dependent member front [altera-id-dependent-backward-branch]
        struct llist_item *hint, *l;
        ^
/datasets/git/builtin/pack-redundant.c:453:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'pl' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (pl) {
               ^
/datasets/git/builtin/pack-redundant.c:448:2: note: inferred assignment of ID-dependent value from ID-dependent 
        struct pack_list *pl = local_packs;
        ^
/datasets/git/builtin/pack-redundant.c:456:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (l) {
                ^
/datasets/git/builtin/pack-redundant.c:456:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'l' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (l) {
                       ^
/datasets/git/builtin/pack-redundant.c:465:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (pl) {
        ^
/datasets/git/builtin/pack-redundant.c:465:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'pl' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (pl) {
               ^
/datasets/git/builtin/pack-redundant.c:474:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct pack_list *subset, *pl = local_packs;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-redundant.c:474:2: note: inferred assignment of ID-dependent value from ID-dependent variable pl [altera-id-dependent-backward-branch]
/datasets/git/builtin/pack-redundant.c:474:20: warning: variable 'subset' is not initialized [cppcoreguidelines-init-variables]
        struct pack_list *subset, *pl = local_packs;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-redundant.c:474:29: warning: variable name 'pl' is too short, expected at least 3 characters [readability-identifier-length]
        struct pack_list *subset, *pl = local_packs;
                                   ^
/datasets/git/builtin/pack-redundant.c:477:7: warning: Access to field 'next' results in a dereference of a null pointer (loaded from variable 'pl') [clang-analyzer-core.NullDereference]
        if (!pl->next) {
             ^
/datasets/git/builtin/pack-redundant.c:569:6: note: Assuming 'argc' is not equal to 2
        if (argc == 2 && !strcmp(argv[1], "-h"))
            ^~~~~~~~~
/datasets/git/builtin/pack-redundant.c:569:16: note: Left side of '&&' is false
        if (argc == 2 && !strcmp(argv[1], "-h"))
                      ^
/datasets/git/builtin/pack-redundant.c:572:14: note: Assuming 'i' is >= 'argc'
        for (i = 1; i < argc; i++) {
                    ^~~~~~~~
/datasets/git/builtin/pack-redundant.c:572:2: note: Loop condition is false. Execution continues on line 600
        for (i = 1; i < argc; i++) {
        ^
/datasets/git/builtin/pack-redundant.c:600:7: note: 'i_still_use_this' is 0
        if (!i_still_use_this) {
             ^~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-redundant.c:600:2: note: Taking true branch
        if (!i_still_use_this) {
        ^
/datasets/git/builtin/pack-redundant.c:608:6: note: Assuming 'load_all_packs' is 0
        if (load_all_packs)
            ^~~~~~~~~~~~~~
/datasets/git/builtin/pack-redundant.c:608:2: note: Taking false branch
        if (load_all_packs)
        ^
/datasets/git/builtin/pack-redundant.c:611:10: note: Assuming the condition is false
                while (*(argv + i) != NULL)
                       ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-redundant.c:611:3: note: Loop condition is false. Execution continues on line 614
                while (*(argv + i) != NULL)
                ^
/datasets/git/builtin/pack-redundant.c:614:6: note: Assuming 'local_packs' is non-null
        if (!local_packs)
            ^~~~~~~~~~~~
/datasets/git/builtin/pack-redundant.c:614:2: note: Taking false branch
        if (!local_packs)
        ^
/datasets/git/builtin/pack-redundant.c:619:6: note: Assuming 'alt_odb' is 0
        if (alt_odb)
            ^~~~~~~
/datasets/git/builtin/pack-redundant.c:619:2: note: Taking false branch
        if (alt_odb)
        ^
/datasets/git/builtin/pack-redundant.c:623:2: note: Calling 'llist_init'
        llist_init(&ignore);
        ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-redundant.c:64:10: note: Value assigned to 'local_packs'
        *list = xmalloc(sizeof(struct llist));
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-redundant.c:623:2: note: Returning from 'llist_init'
        llist_init(&ignore);
        ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-redundant.c:624:6: note: Assuming the condition is false
        if (!isatty(0)) {
            ^~~~~~~~~~
/datasets/git/builtin/pack-redundant.c:624:2: note: Taking false branch
        if (!isatty(0)) {
        ^
/datasets/git/builtin/pack-redundant.c:634:9: note: Assuming pointer value is null
        while (pl) {
               ^~
/datasets/git/builtin/pack-redundant.c:634:2: note: Loop condition is false. Execution continues on line 639
        while (pl) {
        ^
/datasets/git/builtin/pack-redundant.c:639:2: note: Calling 'cmp_local_packs'
        cmp_local_packs();
        ^~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-redundant.c:474:29: note: 'pl' initialized to a null pointer value
        struct pack_list *subset, *pl = local_packs;
                                   ^~
/datasets/git/builtin/pack-redundant.c:477:7: note: Access to field 'next' results in a dereference of a null pointer (loaded from variable 'pl')
        if (!pl->next) {
             ^~
/datasets/git/builtin/pack-redundant.c:482:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'subset' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((subset = pl)) {
               ^
/datasets/git/builtin/pack-redundant.c:483:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while ((subset = subset->next))
                ^
/datasets/git/builtin/pack-redundant.c:483:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'subset' and may cause performance degradation [altera-id-dependent-backward-branch]
                while ((subset = subset->next))
                       ^
/datasets/git/builtin/pack-redundant.c:483:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while ((subset = subset->next))
                                               ^
                                                {
/datasets/git/builtin/pack-redundant.c:491:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct pack_list *local, *alt;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-redundant.c:491:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/builtin/pack-redundant.c:491:20: warning: variable 'local' is not initialized [cppcoreguidelines-init-variables]
        struct pack_list *local, *alt;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-redundant.c:491:28: warning: variable 'alt' is not initialized [cppcoreguidelines-init-variables]
        struct pack_list *local, *alt;
                                  ^
/datasets/git/builtin/pack-redundant.c:491:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct pack_list *local, *alt;
        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-redundant.c:494:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'alt' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (alt) {
               ^
/datasets/git/builtin/pack-redundant.c:496:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (local) {
                ^
/datasets/git/builtin/pack-redundant.c:496:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'local' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (local) {
                       ^
/datasets/git/builtin/pack-redundant.c:505:55: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static struct pack_list * add_pack(struct packed_git *p)
                                                      ^
/datasets/git/builtin/pack-redundant.c:507:19: warning: variable name 'l' is too short, expected at least 3 characters [readability-identifier-length]
        struct pack_list l;
                         ^
/datasets/git/builtin/pack-redundant.c:508:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t off = 0, step;
        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-redundant.c:508:18: warning: variable 'step' is not initialized [cppcoreguidelines-init-variables]
        size_t off = 0, step;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-redundant.c:509:23: warning: variable 'base' is not initialized [cppcoreguidelines-init-variables]
        const unsigned char *base;
                             ^
                                  = NULL
/datasets/git/builtin/pack-redundant.c:511:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!p->pack_local && !(alt_odb || verbose))
                                                    ^
                                                     {
/datasets/git/builtin/pack-redundant.c:517:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (open_pack_index(p))
                               ^
                                {
/datasets/git/builtin/pack-redundant.c:521:10: warning: 256 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        base += 256 * 4 + ((p->index_version < 2) ? 4 : 8);
                ^
/datasets/git/builtin/pack-redundant.c:521:50: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        base += 256 * 4 + ((p->index_version < 2) ? 4 : 8);
                                                        ^
/datasets/git/builtin/pack-redundant.c:523:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (off < p->num_objects * step) {
        ^
/datasets/git/builtin/pack-redundant.c:523:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'off' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (off < p->num_objects * step) {
               ^
/datasets/git/builtin/pack-redundant.c:529:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (p->pack_local)
                          ^
                           {
/datasets/git/builtin/pack-redundant.c:531:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else
        ^~~~
                        return pack_list_insert(&altodb_packs, &l)
/datasets/git/builtin/pack-redundant.c:531:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-redundant.c:537:21: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        struct packed_git *p = get_all_packs(the_repository);
                           ^
/datasets/git/builtin/pack-redundant.c:539:25: warning: 40 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (strlen(filename) < 40)
                               ^
/datasets/git/builtin/pack-redundant.c:539:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strlen(filename) < 40)
                                  ^
                                   {
/datasets/git/builtin/pack-redundant.c:542:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (p) {
        ^
/datasets/git/builtin/pack-redundant.c:542:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (p) {
               ^
/datasets/git/builtin/pack-redundant.c:543:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strstr(p->pack_name, filename))
                                                   ^
                                                    {
/datasets/git/builtin/pack-redundant.c:552:21: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        struct packed_git *p = get_all_packs(the_repository);
                           ^
/datasets/git/builtin/pack-redundant.c:554:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (p) {
        ^
/datasets/git/builtin/pack-redundant.c:554:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (p) {
               ^
/datasets/git/builtin/pack-redundant.c:560:5: warning: function 'cmd_pack_redundant' has cognitive complexity of 33 (threshold 25) [readability-function-cognitive-complexity]
int cmd_pack_redundant(int argc, const char **argv, const char *prefix)
    ^
/datasets/git/builtin/pack-redundant.c:569:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (argc == 2 && !strcmp(argv[1], "-h"))
        ^
/datasets/git/builtin/pack-redundant.c:569:16: note: +1
        if (argc == 2 && !strcmp(argv[1], "-h"))
                      ^
/datasets/git/builtin/pack-redundant.c:572:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 1; i < argc; i++) {
        ^
/datasets/git/builtin/pack-redundant.c:574:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(arg, "--")) {
                ^
/datasets/git/builtin/pack-redundant.c:578:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(arg, "--all")) {
                ^
/datasets/git/builtin/pack-redundant.c:582:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(arg, "--verbose")) {
                ^
/datasets/git/builtin/pack-redundant.c:586:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(arg, "--alt-odb")) {
                ^
/datasets/git/builtin/pack-redundant.c:590:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(arg, "--i-still-use-this")) {
                ^
/datasets/git/builtin/pack-redundant.c:594:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*arg == '-')
                ^
/datasets/git/builtin/pack-redundant.c:596:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/pack-redundant.c:600:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!i_still_use_this) {
        ^
/datasets/git/builtin/pack-redundant.c:608:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (load_all_packs)
        ^
/datasets/git/builtin/pack-redundant.c:610:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/builtin/pack-redundant.c:614:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!local_packs)
        ^
/datasets/git/builtin/pack-redundant.c:619:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (alt_odb)
        ^
/datasets/git/builtin/pack-redundant.c:624:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!isatty(0)) {
        ^
/datasets/git/builtin/pack-redundant.c:625:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (fgets(buf, sizeof(buf), stdin)) {
                ^
/datasets/git/builtin/pack-redundant.c:627:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (get_oid_hex(buf, oid))
                        ^
/datasets/git/builtin/pack-redundant.c:634:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (pl) {
        ^
/datasets/git/builtin/pack-redundant.c:643:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (verbose) {
        ^
/datasets/git/builtin/pack-redundant.c:648:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (pl) {
                ^
/datasets/git/builtin/pack-redundant.c:661:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (pl) {
        ^
/datasets/git/builtin/pack-redundant.c:667:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (verbose)
        ^
/datasets/git/builtin/pack-redundant.c:560:65: warning: parameter 'prefix' is unused [misc-unused-parameters]
int cmd_pack_redundant(int argc, const char **argv, const char *prefix)
                                                                ^
/datasets/git/builtin/pack-redundant.c:562:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/pack-redundant.c:562:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-redundant.c:564:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct pack_list *min = NULL, *red, *pl;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-redundant.c:564:33: warning: variable 'red' is not initialized [cppcoreguidelines-init-variables]
        struct pack_list *min = NULL, *red, *pl;
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-redundant.c:564:39: warning: variable 'pl' is not initialized [cppcoreguidelines-init-variables]
        struct pack_list *min = NULL, *red, *pl;
                                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pack-redundant.c:564:39: warning: variable name 'pl' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pack-redundant.c:565:16: warning: variable 'ignore' is not initialized [cppcoreguidelines-init-variables]
        struct llist *ignore;
                      ^
                             = NULL
/datasets/git/builtin/pack-redundant.c:566:20: warning: variable 'oid' is not initialized [cppcoreguidelines-init-variables]
        struct object_id *oid;
                          ^
                              = NULL
/datasets/git/builtin/pack-redundant.c:569:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc == 2 && !strcmp(argv[1], "-h"))
                                                ^
                                                 {
/datasets/git/builtin/pack-redundant.c:572:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 1; i < argc; i++) {
        ^
/datasets/git/builtin/pack-redundant.c:594:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*arg == '-')
                                ^
                                 {
/datasets/git/builtin/pack-redundant.c:596:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/pack-redundant.c:601:3: warning: the value returned by this function should be used [cert-err33-c]
                fputs(_("'git pack-redundant' is nominated for removal.\n"
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-redundant.c:601:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/pack-redundant.c:608:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (load_all_packs)
                           ^
                            {
/datasets/git/builtin/pack-redundant.c:610:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/pack-redundant.c:611:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (*(argv + i) != NULL)
                ^
/datasets/git/builtin/pack-redundant.c:611:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (*(argv + i) != NULL)
                                           ^
                                            {
/datasets/git/builtin/pack-redundant.c:614:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!local_packs)
                         ^
                          {
/datasets/git/builtin/pack-redundant.c:619:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (alt_odb)
                    ^
                     {
/datasets/git/builtin/pack-redundant.c:625:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (fgets(buf, sizeof(buf), stdin)) {
                ^
/datasets/git/builtin/pack-redundant.c:627:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (get_oid_hex(buf, oid))
                                                  ^
                                                   {
/datasets/git/builtin/pack-redundant.c:634:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (pl) {
        ^
/datasets/git/builtin/pack-redundant.c:564:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct pack_list *min = NULL, *red, *pl;
        ^
/datasets/git/builtin/pack-redundant.c:634:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'pl' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (pl) {
               ^
/datasets/git/builtin/pack-redundant.c:644:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "There are %lu packs available in alt-odbs.\n",
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-redundant.c:644:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/pack-redundant.c:646:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "The smallest (bytewise) set of packs is:\n");
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-redundant.c:646:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/pack-redundant.c:648:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (pl) {
                ^
/datasets/git/builtin/pack-redundant.c:648:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'pl' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (pl) {
                       ^
/datasets/git/builtin/pack-redundant.c:649:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, "\t%s\n", pl->pack->pack_name);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-redundant.c:649:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/pack-redundant.c:652:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "containing %lu duplicate objects "
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-redundant.c:652:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/pack-redundant.c:655:43: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        (unsigned long)pack_set_bytecount(min)/1024);
                                                               ^
/datasets/git/builtin/pack-redundant.c:656:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "A total of %lu unique objects were considered.\n",
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-redundant.c:656:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/pack-redundant.c:658:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "Redundant packs (with indexes):\n");
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-redundant.c:658:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/pack-redundant.c:564:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct pack_list *min = NULL, *red, *pl;
        ^
/datasets/git/builtin/pack-redundant.c:661:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (pl) {
        ^
/datasets/git/builtin/pack-redundant.c:661:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'pl' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (pl) {
               ^
/datasets/git/builtin/pack-redundant.c:667:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (verbose)
                    ^
                     {
/datasets/git/builtin/pack-redundant.c:668:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "%luMB of redundant packs in total.\n",
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pack-redundant.c:668:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/pack-redundant.c:669:44: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                        (unsigned long)pack_set_bytecount(red)/(1024*1024));
                                                                ^
/datasets/git/builtin/pack-redundant.c:669:44: note: make conversion explicit to silence this warning
                        (unsigned long)pack_set_bytecount(red)/(1024*1024));
                                                                ^~~~~~~~~
                                                                (unsigned long)( )
/datasets/git/builtin/pack-redundant.c:669:44: note: perform multiplication in a wider type
                        (unsigned long)pack_set_bytecount(red)/(1024*1024));
                                                                ^~~~
                                                                (long)
/datasets/git/builtin/pack-redundant.c:669:44: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        (unsigned long)pack_set_bytecount(red)/(1024*1024));
                                                                ^
/datasets/git/builtin/pack-redundant.c:669:49: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        (unsigned long)pack_set_bytecount(red)/(1024*1024));
                                                                     ^
builtin/pack-refs.c:16:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT(0, "all",   &flags, N_("pack everything"), PACK_REFS_ALL),
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
builtin/pack-refs.c:17:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT(0, "prune", &flags, N_("prune loose refs (default)"), PACK_REFS_PRUNE),
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/pack-refs.c:21:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_options(argc, argv, prefix, opts, pack_refs_usage, 0))
                                                                        ^
                                                                         {
builtin/patch-id.c:7:62: warning: parameter name 'id' is too short, expected at least 3 characters [readability-identifier-length]
static void flush_current_id(int patchlen, struct object_id *id, struct object_id *result)
                                                             ^
/datasets/git/builtin/patch-id.c:9:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (patchlen)
                     ^
                      {
/datasets/git/builtin/patch-id.c:17:16: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        unsigned char c;
                      ^
                        = 0
/datasets/git/builtin/patch-id.c:17:16: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/patch-id.c:19:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((c = *src++) != '\0') {
        ^
/datasets/git/builtin/patch-id.c:19:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'c' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((c = *src++) != '\0') {
               ^
/datasets/git/builtin/patch-id.c:20:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!isspace(c))
                     ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/builtin/patch-id.c:20:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!isspace(c))
                                ^
                                 {
/datasets/git/builtin/patch-id.c:21:13: warning: narrowing conversion from 'unsigned char' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        *dst++ = c;
                                 ^
/datasets/git/builtin/patch-id.c:23:9: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return dst - line;
               ^
/datasets/git/builtin/patch-id.c:26:41: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static int scan_hunk_header(const char *p, int *p_before, int *p_after)
                                        ^
/datasets/git/builtin/patch-id.c:26:44: warning: 2 adjacent parameters of 'scan_hunk_header' of similar type ('int *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int scan_hunk_header(const char *p, int *p_before, int *p_after)
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/patch-id.c:26:49: note: the first parameter in the range is 'p_before'
static int scan_hunk_header(const char *p, int *p_before, int *p_after)
                                                ^~~~~~~~
/datasets/git/builtin/patch-id.c:26:64: note: the last parameter in the range is 'p_after'
static int scan_hunk_header(const char *p, int *p_before, int *p_after)
                                                               ^~~~~~~
/datasets/git/builtin/patch-id.c:29:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *q, *r;
        ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/patch-id.c:29:14: warning: variable 'q' is not initialized [cppcoreguidelines-init-variables]
        const char *q, *r;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/patch-id.c:29:14: warning: variable name 'q' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/patch-id.c:29:18: warning: variable 'r' is not initialized [cppcoreguidelines-init-variables]
        const char *q, *r;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/patch-id.c:29:18: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/patch-id.c:30:6: warning: variable 'n' is not initialized [cppcoreguidelines-init-variables]
        int n;
            ^
              = 0
/datasets/git/builtin/patch-id.c:30:6: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/patch-id.c:33:6: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        n = strspn(q, digits);
            ^
/datasets/git/builtin/patch-id.c:36:15: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c]
                *p_before = atoi(q);
                            ^
/datasets/git/builtin/patch-id.c:37:7: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                n = strspn(q, digits);
                    ^
/datasets/git/builtin/patch-id.c:42:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (n == 0 || q[n] != ' ' || q[n+1] != '+')
                                                   ^
                                                    {
/datasets/git/builtin/patch-id.c:46:6: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        n = strspn(r, digits);
            ^
/datasets/git/builtin/patch-id.c:49:14: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c]
                *p_after = atoi(r);
                           ^
/datasets/git/builtin/patch-id.c:50:7: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                n = strspn(r, digits);
                    ^
/datasets/git/builtin/patch-id.c:54:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (n == 0)
                   ^
                    {
/datasets/git/builtin/patch-id.c:60:12: warning: function 'get_one_patchid' has cognitive complexity of 64 (threshold 25) [readability-function-cognitive-complexity]
static int get_one_patchid(struct object_id *next_oid, struct object_id *result,
           ^
/datasets/git/builtin/patch-id.c:72:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (strbuf_getwholeline(line_buf, stdin, '\n') != EOF) {
        ^
/datasets/git/builtin/patch-id.c:78:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!skip_prefix(line, "commit ", &p) &&
                ^
/datasets/git/builtin/patch-id.c:80:32: note: +1
                    starts_with(line, "\\ ") && 12 < strlen(line)) {
                                             ^
/datasets/git/builtin/patch-id.c:81:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (verbatim)
                        ^
/datasets/git/builtin/patch-id.c:86:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!get_oid_hex(p, next_oid)) {
                ^
/datasets/git/builtin/patch-id.c:92:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!patchlen && !starts_with(line, "diff "))
                ^
/datasets/git/builtin/patch-id.c:92:17: note: +1
                if (!patchlen && !starts_with(line, "diff "))
                              ^
/datasets/git/builtin/patch-id.c:96:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (before == -1) {
                ^
/datasets/git/builtin/patch-id.c:97:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (starts_with(line, "GIT binary patch") ||
                        ^
/datasets/git/builtin/patch-id.c:97:46: note: +1
                        if (starts_with(line, "GIT binary patch") ||
                                                                  ^
/datasets/git/builtin/patch-id.c:105:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (stable)
                                ^
/datasets/git/builtin/patch-id.c:108:11: note: +1, nesting level increased to 3
                        } else if (skip_prefix(line, "index ", &p)) {
                               ^
/datasets/git/builtin/patch-id.c:111:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (oid1_end)
                                ^
/datasets/git/builtin/patch-id.c:113:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!oid2_end)
                                ^
/datasets/git/builtin/patch-id.c:115:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (oid1_end != NULL && oid2_end != NULL) {
                                ^
/datasets/git/builtin/patch-id.c:115:26: note: +1
                                if (oid1_end != NULL && oid2_end != NULL) {
                                                     ^
/datasets/git/builtin/patch-id.c:121:11: note: +1, nesting level increased to 3
                        } else if (starts_with(line, "--- "))
                               ^
/datasets/git/builtin/patch-id.c:123:9: note: +1, nesting level increased to 3
                        else if (!isalpha(line[0]))
                             ^
/datasets/git/builtin/patch-id.c:127:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (diff_is_binary) {
                ^
/datasets/git/builtin/patch-id.c:128:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (starts_with(line, "diff ")) {
                        ^
/datasets/git/builtin/patch-id.c:136:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (before == 0 && after == 0) {
                ^
/datasets/git/builtin/patch-id.c:136:19: note: +1
                if (before == 0 && after == 0) {
                                ^
/datasets/git/builtin/patch-id.c:137:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (starts_with(line, "@@ -")) {
                        ^
/datasets/git/builtin/patch-id.c:144:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!starts_with(line, "diff "))
                        ^
/datasets/git/builtin/patch-id.c:148:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (stable)
                        ^
/datasets/git/builtin/patch-id.c:154:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (line[0] == '-' || line[0] == ' ')
                ^
/datasets/git/builtin/patch-id.c:154:22: note: +1
                if (line[0] == '-' || line[0] == ' ')
                                   ^
/datasets/git/builtin/patch-id.c:156:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (line[0] == '+' || line[0] == ' ')
                ^
/datasets/git/builtin/patch-id.c:156:22: note: +1
                if (line[0] == '+' || line[0] == ' ')
                                   ^
/datasets/git/builtin/patch-id.c:160:18: note: +2, including nesting penalty of 1, nesting level increased to 2
                len = verbatim ? strlen(line) : remove_space(line);
                               ^
/datasets/git/builtin/patch-id.c:165:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!found_next)
        ^
/datasets/git/builtin/patch-id.c:61:32: warning: 2 adjacent parameters of 'get_one_patchid' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                           struct strbuf *line_buf, int stable, int verbatim)
                                                    ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/patch-id.c:61:36: note: the first parameter in the range is 'stable'
                           struct strbuf *line_buf, int stable, int verbatim)
                                                        ^~~~~~
/datasets/git/builtin/patch-id.c:61:48: note: the last parameter in the range is 'verbatim'
                           struct strbuf *line_buf, int stable, int verbatim)
                                                                    ^~~~~~~~
/datasets/git/builtin/patch-id.c:63:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int patchlen = 0, found_next = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/patch-id.c:64:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int before = -1, after = -1;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/patch-id.c:66:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char pre_oid_str[GIT_MAX_HEXSZ + 1], post_oid_str[GIT_MAX_HEXSZ + 1];
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/patch-id.c:72:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (strbuf_getwholeline(line_buf, stdin, '\n') != EOF) {
        ^
/datasets/git/builtin/patch-id.c:74:15: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                const char *p = line;
                            ^
/datasets/git/builtin/patch-id.c:75:7: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
                int len;
                    ^
                        = 0
/datasets/git/builtin/patch-id.c:80:35: warning: 12 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                    starts_with(line, "\\ ") && 12 < strlen(line)) {
                                                ^
/datasets/git/builtin/patch-id.c:81:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (verbatim)
                                     ^
                                      {
/datasets/git/builtin/patch-id.c:92:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!patchlen && !starts_with(line, "diff "))
                                                             ^
                                                              {
/datasets/git/builtin/patch-id.c:105:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (stable)
                                           ^
                                            {
/datasets/git/builtin/patch-id.c:108:6: warning: do not use 'else' after 'continue' [llvm-else-after-return,readability-else-after-return]
                        } else if (skip_prefix(line, "index ", &p)) {
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/patch-id.c:111:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (oid1_end)
                                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/patch-id.c:113:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!oid2_end)
                                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/patch-id.c:121:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        } else if (starts_with(line, "--- "))
                                                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/patch-id.c:123:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        else if (!isalpha(line[0]))
                                  ^
/datasets/git/./git-compat-util.h:1219:20: note: expanded from macro 'isalpha'
#define isalpha(x) sane_istest(x,GIT_ALPHA)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/builtin/patch-id.c:123:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (!isalpha(line[0]))
                                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/patch-id.c:144:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!starts_with(line, "diff "))
                                                        ^
                                                         {
/datasets/git/builtin/patch-id.c:148:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (stable)
                                   ^
                                    {
/datasets/git/builtin/patch-id.c:154:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (line[0] == '-' || line[0] == ' ')
                                                     ^
                                                      {
/datasets/git/builtin/patch-id.c:156:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (line[0] == '+' || line[0] == ' ')
                                                     ^
                                                      {
/datasets/git/builtin/patch-id.c:160:20: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                len = verbatim ? strlen(line) : remove_space(line);
                                 ^
/datasets/git/builtin/patch-id.c:160:35: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                len = verbatim ? strlen(line) : remove_space(line);
                                                ^
/datasets/git/builtin/patch-id.c:165:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!found_next)
                        ^
                         {
/datasets/git/builtin/patch-id.c:175:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct object_id oid, n, result;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/patch-id.c:175:24: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
        struct object_id oid, n, result;
                              ^
/datasets/git/builtin/patch-id.c:176:6: warning: variable 'patchlen' is not initialized [cppcoreguidelines-init-variables]
        int patchlen;
            ^
                     = 0
/datasets/git/builtin/patch-id.c:180:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (!feof(stdin)) {
        ^
/datasets/git/builtin/patch-id.c:192:8: warning: accessing fields in struct 'patch_id_opts' is inefficient due to poor alignment; currently aligned to 4 bytes, but recommended alignment is 8 bytes [altera-struct-pack-align]
struct patch_id_opts {
       ^
/datasets/git/builtin/patch-id.c:192:8: note: use "__attribute__((aligned(8)))" to align struct 'patch_id_opts' to 8 bytes
/datasets/git/builtin/patch-id.c:197:74: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int git_patch_id_config(const char *var, const char *value, void *cb)
                                                                         ^
/datasets/git/builtin/patch-id.c:219:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_CMDMODE(0, "unstable", &opts,
                ^
/datasets/git/./parse-options.h:188:37: note: expanded from macro 'OPT_CMDMODE'
#define OPT_CMDMODE(s, l, v, h, i)  OPT_CMDMODE_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:187:16: note: expanded from macro 'OPT_CMDMODE_F'
                                      (h), PARSE_OPT_CMDMODE|PARSE_OPT_NOARG|PARSE_OPT_NONEG | (f), NULL, (i) }
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/patch-id.c:221:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_CMDMODE(0, "stable", &opts,
                ^
/datasets/git/./parse-options.h:188:37: note: expanded from macro 'OPT_CMDMODE'
#define OPT_CMDMODE(s, l, v, h, i)  OPT_CMDMODE_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:187:16: note: expanded from macro 'OPT_CMDMODE_F'
                                      (h), PARSE_OPT_CMDMODE|PARSE_OPT_NOARG|PARSE_OPT_NONEG | (f), NULL, (i) }
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/patch-id.c:223:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_CMDMODE(0, "verbatim", &opts,
                ^
/datasets/git/./parse-options.h:188:37: note: expanded from macro 'OPT_CMDMODE'
#define OPT_CMDMODE(s, l, v, h, i)  OPT_CMDMODE_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:187:16: note: expanded from macro 'OPT_CMDMODE_F'
                                      (h), PARSE_OPT_CMDMODE|PARSE_OPT_NOARG|PARSE_OPT_NONEG | (f), NULL, (i) }
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/patch-id.c:231:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (config.verbatim)
                            ^
                             {
/datasets/git/builtin/patch-id.c:234:2: warning: Value stored to 'argc' is never read [clang-analyzer-deadcode.DeadStores]
        argc = parse_options(argc, argv, prefix, builtin_patch_id_options,
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/patch-id.c:234:2: note: Value stored to 'argc' is never read
        argc = parse_options(argc, argv, prefix, builtin_patch_id_options,
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
builtin/prune-packed.c:14:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT('n', "dry-run", &opts, N_("dry run"),
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/prune-packed.c:24:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc > 0)
                     ^
                      {
/datasets/git/builtin/prune.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "commit.h"
^        ~~~~~~~~~~
         "builtin.h"
/datasets/git/builtin/prune.c:17:12: warning: variable 'show_only' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int show_only;
           ^
/datasets/git/builtin/prune.c:18:12: warning: variable 'verbose' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int verbose;
           ^
/datasets/git/builtin/prune.c:19:20: warning: variable 'expire' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static timestamp_t expire;
                   ^
/datasets/git/builtin/prune.c:20:12: warning: variable 'show_progress' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int show_progress = -1;
           ^
/datasets/git/builtin/prune.c:24:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/builtin/prune.c:25:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (lstat(fullpath, &st))
                                 ^
                                  {
/datasets/git/builtin/prune.c:27:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (st.st_mtime > expire)
                                 ^
                                  {
/datasets/git/builtin/prune.c:30:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (show_only || verbose)
                                         ^
                                          {
/datasets/git/builtin/prune.c:40:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (show_only || verbose)
                                         ^
                                          {
/datasets/git/builtin/prune.c:42:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!show_only)
                               ^
                                {
/datasets/git/builtin/prune.c:53:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (initialized)
                        ^
                         {
/datasets/git/builtin/prune.c:56:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (show_progress)
                          ^
                           {
/datasets/git/builtin/prune.c:66:17: warning: variable 'obj' is not initialized [cppcoreguidelines-init-variables]
        struct object *obj;
                       ^
                           = NULL
/datasets/git/builtin/prune.c:71:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return obj && (obj->flags & SEEN);
                                    ^
/datasets/git/./revision.h:27:16: note: expanded from macro 'SEEN'
#define SEEN            (1u<<0)
                         ^   ~
/datasets/git/builtin/prune.c:78:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/builtin/prune.c:80:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_object_reachable(oid, revs))
                                           ^
                                            {
/datasets/git/builtin/prune.c:88:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (st.st_mtime > expire)
                                 ^
                                  {
/datasets/git/builtin/prune.c:96:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!show_only)
                       ^
                        {
/datasets/git/builtin/prune.c:101:24: warning: 2 adjacent parameters of 'prune_cruft' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int prune_cruft(const char *basename, const char *path, void *data)
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/prune.c:101:36: note: the first parameter in the range is '__xpg_basename'
static int prune_cruft(const char *basename, const char *path, void *data)
                                   ^
/usr/include/libgen.h:35:18: note: expanded from macro 'basename'
#define basename        __xpg_basename
                        ^~~~~~~~~~~~~~
/datasets/git/builtin/prune.c:101:58: note: the last parameter in the range is 'path'
static int prune_cruft(const char *basename, const char *path, void *data)
                                                         ^~~~
/datasets/git/builtin/prune.c:101:70: warning: parameter 'data' is unused [misc-unused-parameters]
static int prune_cruft(const char *basename, const char *path, void *data)
                                                                     ^
/datasets/git/builtin/prune.c:103:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (starts_with(basename, "tmp_obj_"))
                                              ^
                                               {
/datasets/git/builtin/prune.c:105:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/prune.c:106:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "bad sha1 file: %s\n", path);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/prune.c:106:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/prune.c:110:38: warning: parameter 'nr' is unused [misc-unused-parameters]
static int prune_subdir(unsigned int nr, const char *path, void *data)
                                     ^
/datasets/git/builtin/prune.c:110:38: warning: parameter name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/prune.c:110:66: warning: parameter 'data' is unused [misc-unused-parameters]
static int prune_subdir(unsigned int nr, const char *path, void *data)
                                                                 ^
/datasets/git/builtin/prune.c:112:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!show_only)
                       ^
                        {
/datasets/git/builtin/prune.c:125:7: warning: variable 'dir' is not initialized [cppcoreguidelines-init-variables]
        DIR *dir;
             ^
                 = NULL
/datasets/git/builtin/prune.c:126:17: warning: variable 'de' is not initialized [cppcoreguidelines-init-variables]
        struct dirent *de;
                       ^
                          = NULL
/datasets/git/builtin/prune.c:126:17: warning: variable name 'de' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/prune.c:130:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (errno != ENOENT)
                                    ^
                                     {
/datasets/git/builtin/prune.c:131:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, "Unable to open directory %s: %s\n",
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/prune.c:131:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/prune.c:132:11: warning: function is not thread safe [concurrency-mt-unsafe]
                                path, strerror(errno));
                                      ^
/datasets/git/builtin/prune.c:135:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((de = readdir(dir)) != NULL)
        ^
/datasets/git/builtin/prune.c:135:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'de' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((de = readdir(dir)) != NULL)
               ^
/datasets/git/builtin/prune.c:135:15: warning: function is not thread safe [concurrency-mt-unsafe]
        while ((de = readdir(dir)) != NULL)
                     ^
/datasets/git/builtin/prune.c:135:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while ((de = readdir(dir)) != NULL)
                                           ^
                                            {
/datasets/git/builtin/prune.c:136:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (starts_with(de->d_name, "tmp_"))
                                                    ^
                                                     {
/datasets/git/builtin/prune.c:146:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__DRY_RUN(&show_only, N_("do not remove, show only")),
                ^
/datasets/git/./parse-options.h:366:31: note: expanded from macro 'OPT__DRY_RUN'
#define OPT__DRY_RUN(var, h)  OPT_BOOL('n', "dry-run", (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/prune.c:147:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__VERBOSE(&verbose, N_("report pruned objects")),
                ^
/datasets/git/./parse-options.h:359:31: note: expanded from macro 'OPT__VERBOSE'
#define OPT__VERBOSE(var, h)  OPT_COUNTUP('v', "verbose", (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/prune.c:148:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "progress", &show_progress, N_("show progress")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/prune.c:151:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "exclude-promisor-objects", &exclude_promisor_objects,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/prune.c:155:8: warning: variable 's' is not initialized [cppcoreguidelines-init-variables]
        char *s;
              ^
                = NULL
/datasets/git/builtin/prune.c:155:8: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/prune.c:164:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repository_format_precious_objects)
                                               ^
                                                {
/datasets/git/builtin/prune.c:167:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (argc--) {
        ^
/datasets/git/builtin/prune.c:167:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'argc' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (argc--) {
               ^
/datasets/git/builtin/prune.c:176:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/prune.c:180:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (show_progress == -1)
                                ^
                                 {
/datasets/git/builtin/pull.c:10:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "builtin.h"
/datasets/git/builtin/pull.c:40:19: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
        enum rebase_type v = rebase_parse_value(value);
                         ^
/datasets/git/builtin/pull.c:41:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (v != REBASE_INVALID)
                                ^
                                 {
/datasets/git/builtin/pull.c:44:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fatal)
                  ^
                   {
/datasets/git/builtin/pull.c:46:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/pull.c:59:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (arg)
                ^
                 {
/datasets/git/builtin/pull.c:61:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/pull.c:72:12: warning: variable 'opt_verbosity' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int opt_verbosity;
           ^
/datasets/git/builtin/pull.c:73:14: warning: variable 'opt_progress' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *opt_progress;
             ^
/datasets/git/builtin/pull.c:73:14: warning: variable 'opt_progress' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/pull.c:74:12: warning: variable 'recurse_submodules' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int recurse_submodules = RECURSE_SUBMODULES_DEFAULT;
           ^
/datasets/git/builtin/pull.c:75:12: warning: variable 'recurse_submodules_cli' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int recurse_submodules_cli = RECURSE_SUBMODULES_DEFAULT;
           ^
/datasets/git/builtin/pull.c:78:25: warning: variable 'opt_rebase' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static enum rebase_type opt_rebase = -1;
                        ^
/datasets/git/builtin/pull.c:79:14: warning: variable 'opt_diffstat' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *opt_diffstat;
             ^
/datasets/git/builtin/pull.c:79:14: warning: variable 'opt_diffstat' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/pull.c:80:14: warning: variable 'opt_log' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *opt_log;
             ^
/datasets/git/builtin/pull.c:80:14: warning: variable 'opt_log' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/pull.c:81:14: warning: variable 'opt_signoff' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *opt_signoff;
             ^
/datasets/git/builtin/pull.c:81:14: warning: variable 'opt_signoff' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/pull.c:82:14: warning: variable 'opt_squash' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *opt_squash;
             ^
/datasets/git/builtin/pull.c:82:14: warning: variable 'opt_squash' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/pull.c:83:14: warning: variable 'opt_commit' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *opt_commit;
             ^
/datasets/git/builtin/pull.c:83:14: warning: variable 'opt_commit' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/pull.c:84:14: warning: variable 'opt_edit' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *opt_edit;
             ^
/datasets/git/builtin/pull.c:84:14: warning: variable 'opt_edit' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/pull.c:85:14: warning: variable 'cleanup_arg' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *cleanup_arg;
             ^
/datasets/git/builtin/pull.c:85:14: warning: variable 'cleanup_arg' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/pull.c:86:14: warning: variable 'opt_ff' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *opt_ff;
             ^
/datasets/git/builtin/pull.c:86:14: warning: variable 'opt_ff' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/pull.c:87:14: warning: variable 'opt_verify_signatures' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *opt_verify_signatures;
             ^
/datasets/git/builtin/pull.c:87:14: warning: variable 'opt_verify_signatures' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/pull.c:88:14: warning: variable 'opt_verify' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *opt_verify;
             ^
/datasets/git/builtin/pull.c:88:14: warning: variable 'opt_verify' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/pull.c:89:12: warning: variable 'opt_autostash' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int opt_autostash = -1;
           ^
/datasets/git/builtin/pull.c:90:12: warning: variable 'config_autostash' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int config_autostash;
           ^
/datasets/git/builtin/pull.c:91:12: warning: variable 'check_trust_level' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int check_trust_level = 1;
           ^
/datasets/git/builtin/pull.c:92:22: warning: variable 'opt_strategies' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct strvec opt_strategies = STRVEC_INIT;
                     ^
/datasets/git/builtin/pull.c:92:22: warning: initializing non-local variable with non-const expression depending on uninitialized non-local variable 'empty_strvec' [cppcoreguidelines-interfaces-global-init]
/datasets/git/builtin/pull.c:93:22: warning: variable 'opt_strategy_opts' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct strvec opt_strategy_opts = STRVEC_INIT;
                     ^
/datasets/git/builtin/pull.c:93:22: warning: initializing non-local variable with non-const expression depending on uninitialized non-local variable 'empty_strvec' [cppcoreguidelines-interfaces-global-init]
/datasets/git/builtin/pull.c:94:14: warning: variable 'opt_gpg_sign' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *opt_gpg_sign;
             ^
/datasets/git/builtin/pull.c:94:14: warning: variable 'opt_gpg_sign' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/pull.c:95:12: warning: variable 'opt_allow_unrelated_histories' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int opt_allow_unrelated_histories;
           ^
/datasets/git/builtin/pull.c:98:14: warning: variable 'opt_all' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *opt_all;
             ^
/datasets/git/builtin/pull.c:98:14: warning: variable 'opt_all' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/pull.c:99:14: warning: variable 'opt_append' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *opt_append;
             ^
/datasets/git/builtin/pull.c:99:14: warning: variable 'opt_append' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/pull.c:100:14: warning: variable 'opt_upload_pack' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *opt_upload_pack;
             ^
/datasets/git/builtin/pull.c:100:14: warning: variable 'opt_upload_pack' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/pull.c:101:12: warning: variable 'opt_force' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int opt_force;
           ^
/datasets/git/builtin/pull.c:102:14: warning: variable 'opt_tags' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *opt_tags;
             ^
/datasets/git/builtin/pull.c:102:14: warning: variable 'opt_tags' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/pull.c:103:14: warning: variable 'opt_prune' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *opt_prune;
             ^
/datasets/git/builtin/pull.c:103:14: warning: variable 'opt_prune' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/pull.c:104:14: warning: variable 'max_children' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *max_children;
             ^
/datasets/git/builtin/pull.c:104:14: warning: variable 'max_children' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/pull.c:105:12: warning: variable 'opt_dry_run' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int opt_dry_run;
           ^
/datasets/git/builtin/pull.c:106:14: warning: variable 'opt_keep' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *opt_keep;
             ^
/datasets/git/builtin/pull.c:106:14: warning: variable 'opt_keep' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/pull.c:107:14: warning: variable 'opt_depth' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *opt_depth;
             ^
/datasets/git/builtin/pull.c:107:14: warning: variable 'opt_depth' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/pull.c:108:14: warning: variable 'opt_unshallow' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *opt_unshallow;
             ^
/datasets/git/builtin/pull.c:108:14: warning: variable 'opt_unshallow' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/pull.c:109:14: warning: variable 'opt_update_shallow' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *opt_update_shallow;
             ^
/datasets/git/builtin/pull.c:109:14: warning: variable 'opt_update_shallow' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/pull.c:110:14: warning: variable 'opt_refmap' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *opt_refmap;
             ^
/datasets/git/builtin/pull.c:110:14: warning: variable 'opt_refmap' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/pull.c:111:14: warning: variable 'opt_ipv4' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *opt_ipv4;
             ^
/datasets/git/builtin/pull.c:111:14: warning: variable 'opt_ipv4' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/pull.c:112:14: warning: variable 'opt_ipv6' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *opt_ipv6;
             ^
/datasets/git/builtin/pull.c:112:14: warning: variable 'opt_ipv6' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/pull.c:113:12: warning: variable 'opt_show_forced_updates' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int opt_show_forced_updates = -1;
           ^
/datasets/git/builtin/pull.c:114:14: warning: variable 'set_upstream' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *set_upstream;
             ^
/datasets/git/builtin/pull.c:114:14: warning: variable 'set_upstream' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/pull.c:115:22: warning: variable 'opt_fetch' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct strvec opt_fetch = STRVEC_INIT;
                     ^
/datasets/git/builtin/pull.c:115:22: warning: initializing non-local variable with non-const expression depending on uninitialized non-local variable 'empty_strvec' [cppcoreguidelines-interfaces-global-init]
/datasets/git/builtin/pull.c:117:22: warning: variable 'pull_options' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct option pull_options[] = {
                     ^
/datasets/git/builtin/pull.c:136:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                PARSE_OPT_NOARG | PARSE_OPT_NONEG),
                ^
/datasets/git/./parse-options.h:377:47: note: expanded from macro 'OPT_PASSTHRU'
        { OPTION_CALLBACK, (s), (l), (v), (a), (h), (f), parse_opt_passthru }
                                                     ^
/datasets/git/builtin/pull.c:142:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                PARSE_OPT_NOARG | PARSE_OPT_HIDDEN),
                ^
/datasets/git/./parse-options.h:377:47: note: expanded from macro 'OPT_PASSTHRU'
        { OPTION_CALLBACK, (s), (l), (v), (a), (h), (f), parse_opt_passthru }
                                                     ^
/datasets/git/builtin/pull.c:164:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                PARSE_OPT_NOARG | PARSE_OPT_NONEG),
                ^
/datasets/git/./parse-options.h:377:47: note: expanded from macro 'OPT_PASSTHRU'
        { OPTION_CALLBACK, (s), (l), (v), (a), (h), (f), parse_opt_passthru }
                                                     ^
/datasets/git/builtin/pull.c:171:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "autostash", &opt_autostash,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/pull.c:183:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_SET_INT(0, "allow-unrelated-histories",
        ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/pull.c:198:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT__FORCE(&opt_force, N_("force overwrite of local branch"), 0),
        ^
/datasets/git/./parse-options.h:367:31: note: expanded from macro 'OPT__FORCE'
#define OPT__FORCE(var, h, f) OPT_COUNTUP_F('f', "force",   (var), (h), (f))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/pull.c:208:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "dry-run", &opt_dry_run,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/pull.c:227:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                PARSE_OPT_NONEG | PARSE_OPT_NOARG),
                ^
/datasets/git/./parse-options.h:377:47: note: expanded from macro 'OPT_PASSTHRU'
        { OPTION_CALLBACK, (s), (l), (v), (a), (h), (f), parse_opt_passthru }
                                                     ^
/datasets/git/builtin/pull.c:247:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "show-forced-updates", &opt_show_forced_updates,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/pull.c:261:6: warning: variable 'verbosity' is not initialized [cppcoreguidelines-init-variables]
        int verbosity;
            ^
                      = 0
/datasets/git/builtin/pull.c:263:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (verbosity = opt_verbosity; verbosity > 0; verbosity--)
        ^
/datasets/git/builtin/pull.c:263:34: warning: backward branch (for loop) is ID-dependent due to variable reference to 'verbosity' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (verbosity = opt_verbosity; verbosity > 0; verbosity--)
                                        ^
/datasets/git/builtin/pull.c:263:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (verbosity = opt_verbosity; verbosity > 0; verbosity--)
                                                                   ^
                                                                    {
/datasets/git/builtin/pull.c:266:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (verbosity = opt_verbosity; verbosity < 0; verbosity++)
        ^
/datasets/git/builtin/pull.c:266:34: warning: backward branch (for loop) is ID-dependent due to variable reference to 'verbosity' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (verbosity = opt_verbosity; verbosity < 0; verbosity++)
                                        ^
/datasets/git/builtin/pull.c:266:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (verbosity = opt_verbosity; verbosity < 0; verbosity++)
                                                                   ^
                                                                    {
/datasets/git/builtin/pull.c:276:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (force-- > 0)
        ^
/datasets/git/builtin/pull.c:276:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'force' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (force-- > 0)
               ^
/datasets/git/builtin/pull.c:276:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (force-- > 0)
                           ^
                            {
/datasets/git/builtin/pull.c:285:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/pull.c:285:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pull.c:288:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < argc; i++) {
        ^
/datasets/git/builtin/pull.c:289:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (i)
                      ^
                       {
/datasets/git/builtin/pull.c:294:2: warning: function is not thread safe [concurrency-mt-unsafe]
        setenv("GIT_REFLOG_ACTION", msg.buf, 0);
        ^
/datasets/git/builtin/pull.c:307:14: warning: variable 'value' is not initialized [cppcoreguidelines-init-variables]
        const char *value;
                    ^
                          = NULL
/datasets/git/builtin/pull.c:309:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (git_config_get_value("pull.ff", &value))
                                                    ^
                                                     {
/datasets/git/builtin/pull.c:319:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(value, "only"))
                                   ^
                                    {
/datasets/git/builtin/pull.c:335:14: warning: variable 'value' is not initialized [cppcoreguidelines-init-variables]
        const char *value;
                    ^
                          = NULL
/datasets/git/builtin/pull.c:349:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!git_config_get_value("pull.rebase", &value))
                                                         ^
                                                          {
/datasets/git/builtin/pull.c:360:70: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int git_pull_config(const char *var, const char *value, void *cb)
                                                                     ^
/datasets/git/builtin/pull.c:362:6: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int status;
            ^
                   = 0
/datasets/git/builtin/pull.c:367:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else if (!strcmp(var, "submodule.recurse")) {
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pull.c:376:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (status)
                   ^
                    {
/datasets/git/builtin/pull.c:389:8: warning: variable 'fp' is not initialized [cppcoreguidelines-init-variables]
        FILE *fp;
              ^
                 = NULL
/datasets/git/builtin/pull.c:389:8: warning: variable name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pull.c:390:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/pull.c:394:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (strbuf_getline_lf(&sb, fp) != EOF) {
        ^
/datasets/git/builtin/pull.c:394:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'sb' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (strbuf_getline_lf(&sb, fp) != EOF) {
               ^
/datasets/git/builtin/pull.c:395:15: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                const char *p;
                            ^
                              = NULL
/datasets/git/builtin/pull.c:395:15: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pull.c:396:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (parse_oid_hex(sb.buf, &oid, &p))
                                                    ^
                                                     {
/datasets/git/builtin/pull.c:398:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (starts_with(p, "\tnot-for-merge\t"))
                                                        ^
                                                         {
/datasets/git/builtin/pull.c:402:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(fp);
        ^~~~~~~~~~
/datasets/git/builtin/pull.c:402:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/pull.c:390:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct strbuf sb = STRBUF_INIT;
        ^
/datasets/git/builtin/pull.c:414:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*remote_name)
                         ^
                          {
/datasets/git/builtin/pull.c:449:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opt_rebase)
                               ^
                                {
/datasets/git/builtin/pull.c:451:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/pull.c:455:48: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        } else if (repo && curr_branch && (!remote || strcmp(repo, remote))) {
                                                      ^
                                                                           != 0
/datasets/git/builtin/pull.c:462:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opt_rebase)
                               ^
                                {
/datasets/git/builtin/pull.c:464:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/pull.c:467:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "\n");
                ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pull.c:467:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/pull.c:469:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "\n");
                ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pull.c:469:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/pull.c:473:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (for_each_remote(get_only_remote, &remote_name) || !remote_name)
                                                                                   ^
                                                                                    {
/datasets/git/builtin/pull.c:477:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opt_rebase)
                               ^
                                {
/datasets/git/builtin/pull.c:479:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/pull.c:482:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "\n");
                ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pull.c:482:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/pull.c:484:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "\n");
                ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pull.c:484:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/pull.c:486:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "\n");
                ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pull.c:486:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/pull.c:489:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/builtin/pull.c:493:2: warning: function is not thread safe [concurrency-mt-unsafe]
        exit(1);
        ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/pull.c:507:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/builtin/pull.c:524:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt_progress)
                         ^
                          {
/datasets/git/builtin/pull.c:528:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt_all)
                    ^
                     {
/datasets/git/builtin/pull.c:530:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt_append)
                       ^
                        {
/datasets/git/builtin/pull.c:532:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt_upload_pack)
                            ^
                             {
/datasets/git/builtin/pull.c:535:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt_tags)
                     ^
                      {
/datasets/git/builtin/pull.c:537:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt_prune)
                      ^
                       {
/datasets/git/builtin/pull.c:539:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (recurse_submodules_cli != RECURSE_SUBMODULES_DEFAULT)
                                                                 ^
                                                                  {
/datasets/git/builtin/pull.c:553:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (max_children)
                         ^
                          {
/datasets/git/builtin/pull.c:555:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt_dry_run)
                        ^
                         {
/datasets/git/builtin/pull.c:557:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt_keep)
                     ^
                      {
/datasets/git/builtin/pull.c:559:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt_depth)
                      ^
                       {
/datasets/git/builtin/pull.c:561:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt_unshallow)
                          ^
                           {
/datasets/git/builtin/pull.c:563:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt_update_shallow)
                               ^
                                {
/datasets/git/builtin/pull.c:565:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt_refmap)
                       ^
                        {
/datasets/git/builtin/pull.c:567:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt_ipv4)
                     ^
                      {
/datasets/git/builtin/pull.c:569:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt_ipv6)
                     ^
                      {
/datasets/git/builtin/pull.c:571:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt_show_forced_updates > 0)
                                        ^
                                         {
/datasets/git/builtin/pull.c:573:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (opt_show_forced_updates == 0)
                                              ^
                                               {
/datasets/git/builtin/pull.c:575:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (set_upstream)
                         ^
                          {
/datasets/git/builtin/pull.c:582:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else if (*refspecs)
                             ^
                              {
/datasets/git/builtin/pull.c:596:18: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
                struct commit *commit;
                               ^
                                      = NULL
/datasets/git/builtin/pull.c:599:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!commit)
                            ^
                             {
/datasets/git/builtin/pull.c:615:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                  merge_head, 0))
                                                 ^
                                                  {
/datasets/git/builtin/pull.c:618:91: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (update_ref("initial pull", "HEAD", merge_head, curr_head, 0, UPDATE_REFS_DIE_ON_ERR))
                                                                                                 ^
                                                                                                  {
/datasets/git/builtin/pull.c:626:23: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
        struct child_process cp = CHILD_PROCESS_INIT;
                             ^
/datasets/git/builtin/pull.c:639:23: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
        struct child_process cp = CHILD_PROCESS_INIT;
                             ^
/datasets/git/builtin/pull.c:661:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt_progress)
                         ^
                          {
/datasets/git/builtin/pull.c:665:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt_diffstat)
                         ^
                          {
/datasets/git/builtin/pull.c:667:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt_log)
                    ^
                     {
/datasets/git/builtin/pull.c:669:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt_signoff)
                        ^
                         {
/datasets/git/builtin/pull.c:671:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt_squash)
                       ^
                        {
/datasets/git/builtin/pull.c:673:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt_commit)
                       ^
                        {
/datasets/git/builtin/pull.c:675:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt_edit)
                     ^
                      {
/datasets/git/builtin/pull.c:677:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cleanup_arg)
                        ^
                         {
/datasets/git/builtin/pull.c:679:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt_ff)
                   ^
                    {
/datasets/git/builtin/pull.c:681:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt_verify)
                       ^
                        {
/datasets/git/builtin/pull.c:683:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt_verify_signatures)
                                  ^
                                   {
/datasets/git/builtin/pull.c:687:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt_gpg_sign)
                         ^
                          {
/datasets/git/builtin/pull.c:689:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt_autostash == 0)
                               ^
                                {
/datasets/git/builtin/pull.c:691:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (opt_autostash == 1)
                                    ^
                                     {
/datasets/git/builtin/pull.c:693:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt_allow_unrelated_histories > 0)
                                              ^
                                               {
/datasets/git/builtin/pull.c:710:17: warning: variable 'rm' is not initialized [cppcoreguidelines-init-variables]
        struct remote *rm;
                       ^
                          = NULL
/datasets/git/builtin/pull.c:710:17: warning: variable name 'rm' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pull.c:711:17: warning: variable 'curr_branch' is not initialized [cppcoreguidelines-init-variables]
        struct branch *curr_branch;
                       ^
                                   = NULL
/datasets/git/builtin/pull.c:712:14: warning: variable 'curr_branch_remote' is not initialized [cppcoreguidelines-init-variables]
        const char *curr_branch_remote;
                    ^
                                       = NULL
/datasets/git/builtin/pull.c:715:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!rm)
                ^
                 {
/datasets/git/builtin/pull.c:719:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!curr_branch)
                         ^
                          {
/datasets/git/builtin/pull.c:725:6: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (strcmp(curr_branch_remote, rm->name))
            ^
                                                 != 0
/datasets/git/builtin/pull.c:725:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strcmp(curr_branch_remote, rm->name))
                                                 ^
                                                  {
/datasets/git/builtin/pull.c:737:40: warning: 2 adjacent parameters of 'get_tracking_branch' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static const char *get_tracking_branch(const char *remote, const char *refspec)
                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pull.c:737:52: note: the first parameter in the range is 'remote'
static const char *get_tracking_branch(const char *remote, const char *refspec)
                                                   ^~~~~~
/datasets/git/builtin/pull.c:737:72: note: the last parameter in the range is 'refspec'
static const char *get_tracking_branch(const char *remote, const char *refspec)
                                                                       ^~~~~~~
/datasets/git/builtin/pull.c:740:14: warning: variable 'spec_src' is not initialized [cppcoreguidelines-init-variables]
        const char *spec_src;
                    ^
                             = NULL
/datasets/git/builtin/pull.c:741:14: warning: variable 'merge_branch' is not initialized [cppcoreguidelines-init-variables]
        const char *merge_branch;
                    ^
                                 = NULL
/datasets/git/builtin/pull.c:745:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!*spec_src || !strcmp(spec_src, "HEAD"))
                                                    ^
                                                     {
/datasets/git/builtin/pull.c:747:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (skip_prefix(spec_src, "heads/", &spec_src))
                                                            ^
                                                             {
/datasets/git/builtin/pull.c:748:3: warning: repeated branch in conditional chain [bugprone-branch-clone]
                ;
                ^
/datasets/git/builtin/pull.c:748:4: note: end of the original
                ;
                 ^
/datasets/git/builtin/pull.c:750:3: note: clone 1 starts here
                ;
                ^
/datasets/git/builtin/pull.c:749:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (skip_prefix(spec_src, "refs/heads/", &spec_src))
                                                                 ^
                                                                  {
/datasets/git/builtin/pull.c:753:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                starts_with(spec_src, "remotes/"))
                                                  ^
                                                   {
/datasets/git/builtin/pull.c:757:8: warning: Null pointer passed to 1st parameter expecting 'nonnull' [clang-analyzer-core.NonNullParamChecker]
                if (!strcmp(remote, "."))
                     ^
/datasets/git/builtin/pull.c:990:7: note: Assuming the environment variable exists
        if (!getenv("GIT_REFLOG_ACTION"))
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pull.c:990:2: note: Taking false branch
        if (!getenv("GIT_REFLOG_ACTION"))
        ^
/datasets/git/builtin/pull.c:994:6: note: Assuming field 'gitdir' is null
        if (the_repository->gitdir) {
            ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pull.c:994:2: note: Taking false branch
        if (the_repository->gitdir) {
        ^
/datasets/git/builtin/pull.c:1001:6: note: Assuming 'recurse_submodules_cli' is equal to RECURSE_SUBMODULES_DEFAULT
        if (recurse_submodules_cli != RECURSE_SUBMODULES_DEFAULT)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pull.c:1001:2: note: Taking false branch
        if (recurse_submodules_cli != RECURSE_SUBMODULES_DEFAULT)
        ^
/datasets/git/builtin/pull.c:1004:6: note: Assuming 'cleanup_arg' is null
        if (cleanup_arg)
            ^~~~~~~~~~~
/datasets/git/builtin/pull.c:1004:2: note: Taking false branch
        if (cleanup_arg)
        ^
/datasets/git/builtin/pull.c:1011:2: note: Calling 'parse_repo_refspecs'
        parse_repo_refspecs(argc, argv, &repo, &refspecs);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pull.c:504:6: note: Assuming 'argc' is <= 0
        if (argc > 0) {
            ^~~~~~~~
/datasets/git/builtin/pull.c:504:2: note: Taking false branch
        if (argc > 0) {
        ^
/datasets/git/builtin/pull.c:508:3: note: Null pointer value stored to 'repo'
                *repo = NULL;
                ^~~~~~~~~~~~
/datasets/git/builtin/pull.c:1011:2: note: Returning from 'parse_repo_refspecs'
        parse_repo_refspecs(argc, argv, &repo, &refspecs);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pull.c:1013:6: note: Assuming 'opt_ff' is non-null
        if (!opt_ff) {
            ^~~~~~~
/datasets/git/builtin/pull.c:1013:2: note: Taking false branch
        if (!opt_ff) {
        ^
/datasets/git/builtin/pull.c:1030:6: note: Assuming 'opt_rebase' is >= 0
        if (opt_rebase < 0)
            ^~~~~~~~~~~~~~
/datasets/git/builtin/pull.c:1030:2: note: Taking false branch
        if (opt_rebase < 0)
        ^
/datasets/git/builtin/pull.c:1033:6: note: Assuming the condition is false
        if (repo_read_index_unmerged(the_repository))
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pull.c:1033:2: note: Taking false branch
        if (repo_read_index_unmerged(the_repository))
        ^
/datasets/git/builtin/pull.c:1036:6: note: Assuming the condition is false
        if (file_exists(git_path_merge_head(the_repository)))
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pull.c:1036:2: note: Taking false branch
        if (file_exists(git_path_merge_head(the_repository)))
        ^
/datasets/git/builtin/pull.c:1039:6: note: Assuming the condition is false
        if (get_oid("HEAD", &orig_head))
            ^
/datasets/git/./refs/../cache.h:1487:28: note: expanded from macro 'get_oid'
#define get_oid(str, oid)               repo_get_oid(the_repository, str, oid)
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pull.c:1039:2: note: Taking false branch
        if (get_oid("HEAD", &orig_head))
        ^
/datasets/git/builtin/pull.c:1042:6: note: Assuming 'opt_rebase' is not equal to 0
        if (opt_rebase) {
            ^~~~~~~~~~
/datasets/git/builtin/pull.c:1042:2: note: Taking true branch
        if (opt_rebase) {
        ^
/datasets/git/builtin/pull.c:1043:7: note: Assuming the condition is false
                if (opt_autostash == -1)
                    ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pull.c:1043:3: note: Taking false branch
                if (opt_autostash == -1)
                ^
/datasets/git/builtin/pull.c:1046:31: note: Left side of '&&' is false
                if (is_null_oid(&orig_head) && !is_index_unborn(&the_index))
                                            ^
/datasets/git/builtin/pull.c:1049:7: note: Assuming 'opt_autostash' is not equal to 0
                if (!opt_autostash)
                    ^~~~~~~~~~~~~~
/datasets/git/builtin/pull.c:1049:3: note: Taking false branch
                if (!opt_autostash)
                ^
/datasets/git/builtin/pull.c:1054:49: note: Passing null pointer value via 2nd parameter 'repo'
                if (get_rebase_fork_point(&rebase_fork_point, repo, *refspecs))
                                                              ^~~~
/datasets/git/builtin/pull.c:1054:7: note: Calling 'get_rebase_fork_point'
                if (get_rebase_fork_point(&rebase_fork_point, repo, *refspecs))
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pull.c:783:6: note: Assuming 'curr_branch' is non-null
        if (!curr_branch)
            ^~~~~~~~~~~~
/datasets/git/builtin/pull.c:783:2: note: Taking false branch
        if (!curr_branch)
        ^
/datasets/git/builtin/pull.c:786:6: note: Assuming 'refspec' is non-null
        if (refspec)
            ^~~~~~~
/datasets/git/builtin/pull.c:786:2: note: Taking true branch
        if (refspec)
        ^
/datasets/git/builtin/pull.c:787:39: note: Passing null pointer value via 1st parameter 'remote'
                remote_branch = get_tracking_branch(repo, refspec);
                                                    ^~~~
/datasets/git/builtin/pull.c:787:19: note: Calling 'get_tracking_branch'
                remote_branch = get_tracking_branch(repo, refspec);
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pull.c:745:6: note: Assuming the condition is true
        if (!*spec_src || !strcmp(spec_src, "HEAD"))
            ^~~~~~~~~~
/datasets/git/builtin/pull.c:745:17: note: Left side of '||' is true
        if (!*spec_src || !strcmp(spec_src, "HEAD"))
                       ^
/datasets/git/builtin/pull.c:756:2: note: Taking true branch
        if (*spec_src) {
        ^
/datasets/git/builtin/pull.c:757:8: note: Null pointer passed to 1st parameter expecting 'nonnull'
                if (!strcmp(remote, "."))
                     ^      ~~~~~~
/datasets/git/builtin/pull.c:757:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(remote, "."))
                                         ^
                                          {
/datasets/git/builtin/pull.c:759:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/pull.c:761:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/builtin/pull.c:776:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/builtin/pull.c:777:17: warning: variable 'curr_branch' is not initialized [cppcoreguidelines-init-variables]
        struct branch *curr_branch;
                       ^
                                   = NULL
/datasets/git/builtin/pull.c:778:14: warning: variable 'remote_branch' is not initialized [cppcoreguidelines-init-variables]
        const char *remote_branch;
                    ^
                                  = NULL
/datasets/git/builtin/pull.c:779:23: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
        struct child_process cp = CHILD_PROCESS_INIT;
                             ^
/datasets/git/builtin/pull.c:780:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/pull.c:783:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!curr_branch)
                         ^
                          {
/datasets/git/builtin/pull.c:786:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (refspec)
                    ^
                     {
/datasets/git/builtin/pull.c:788:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/pull.c:791:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!remote_branch)
                           ^
                            {
/datasets/git/builtin/pull.c:800:34: warning: performing an implicit widening conversion to type 'size_t' (aka 'unsigned long') of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        ret = capture_command(&cp, &sb, GIT_MAX_HEXSZ);
                                        ^
/datasets/git/./hash.h:118:23: note: expanded from macro 'GIT_MAX_HEXSZ'
#define GIT_MAX_HEXSZ GIT_SHA256_HEXSZ
                      ^
/datasets/git/./hash.h:112:27: note: expanded from macro 'GIT_SHA256_HEXSZ'
#define GIT_SHA256_HEXSZ (2 * GIT_SHA256_RAWSZ)
                          ^
/datasets/git/builtin/pull.c:800:34: note: make conversion explicit to silence this warning
        ret = capture_command(&cp, &sb, GIT_MAX_HEXSZ);
                                        ^
/datasets/git/./hash.h:118:23: note: expanded from macro 'GIT_MAX_HEXSZ'
#define GIT_MAX_HEXSZ GIT_SHA256_HEXSZ
                      ^~~~~~~~~~~~~~~~
/datasets/git/./hash.h:112:27: note: expanded from macro 'GIT_SHA256_HEXSZ'
#define GIT_SHA256_HEXSZ (2 * GIT_SHA256_RAWSZ)
                          ^~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pull.c:800:34: note: perform multiplication in a wider type
        ret = capture_command(&cp, &sb, GIT_MAX_HEXSZ);
                                        ^
/datasets/git/./hash.h:118:23: note: expanded from macro 'GIT_MAX_HEXSZ'
#define GIT_MAX_HEXSZ GIT_SHA256_HEXSZ
                      ^~~~~~~~~~~~~~~~
/datasets/git/./hash.h:112:27: note: expanded from macro 'GIT_SHA256_HEXSZ'
#define GIT_SHA256_HEXSZ (2 * GIT_SHA256_RAWSZ)
                          ^
/datasets/git/builtin/pull.c:801:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/builtin/pull.c:805:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/builtin/pull.c:822:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit_list *revs = NULL, *result;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pull.c:822:36: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *revs = NULL, *result;
                                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pull.c:828:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_null_oid(fork_point))
                                     ^
                                      {
/datasets/git/builtin/pull.c:836:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!result)
                    ^
                     {
/datasets/git/builtin/pull.c:857:82: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!get_octopus_merge_base(&oct_merge_base, curr_head, merge_head, fork_point))
                                                                                        ^
                                                                                         {
/datasets/git/builtin/pull.c:858:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!is_null_oid(fork_point) && oideq(&oct_merge_base, fork_point))
                                                                                   ^
                                                                                    {
/datasets/git/builtin/pull.c:861:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fork_point && !is_null_oid(fork_point))
                                                   ^
                                                    {
/datasets/git/builtin/pull.c:863:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/pull.c:887:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt_rebase == REBASE_MERGES)
                                        ^
                                         {
/datasets/git/builtin/pull.c:889:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (opt_rebase == REBASE_INTERACTIVE)
                                                  ^
                                                   {
/datasets/git/builtin/pull.c:891:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt_diffstat)
                         ^
                          {
/datasets/git/builtin/pull.c:895:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt_gpg_sign)
                         ^
                          {
/datasets/git/builtin/pull.c:897:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt_signoff)
                        ^
                         {
/datasets/git/builtin/pull.c:899:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt_autostash == 0)
                               ^
                                {
/datasets/git/builtin/pull.c:901:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (opt_autostash == 1)
                                    ^
                                     {
/datasets/git/builtin/pull.c:904:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !strcmp(opt_verify_signatures, "--verify-signatures"))
                                                                  ^
                                                                   {
/datasets/git/builtin/pull.c:919:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/builtin/pull.c:921:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit *merge_head, *head;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pull.c:921:17: warning: variable 'merge_head' is not initialized [cppcoreguidelines-init-variables]
        struct commit *merge_head, *head;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pull.c:921:30: warning: variable 'head' is not initialized [cppcoreguidelines-init-variables]
        struct commit *merge_head, *head;
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pull.c:922:20: warning: variable 'orig_merge_head' is not initialized [cppcoreguidelines-init-variables]
        struct object_id *orig_merge_head;
                          ^
                                          = NULL
/datasets/git/builtin/pull.c:924:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (merge_heads->nr > 1)
                                ^
                                 {
/datasets/git/builtin/pull.c:944:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/pull.c:944:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pull.c:945:17: warning: variable 'ours' is not initialized [cppcoreguidelines-init-variables]
        struct commit *ours;
                       ^
                            = NULL
/datasets/git/builtin/pull.c:948:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < merge_heads->nr; i++) {
        ^
/datasets/git/builtin/pull.c:950:18: warning: variable 'theirs' is not initialized [cppcoreguidelines-init-variables]
                struct commit *theirs;
                               ^
                                      = NULL
/datasets/git/builtin/pull.c:951:7: warning: variable 'ok' is not initialized [cppcoreguidelines-init-variables]
                int ok;
                    ^
                       = 0
/datasets/git/builtin/pull.c:951:7: warning: variable name 'ok' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/pull.c:957:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ok)
                        ^
                         {
/datasets/git/builtin/pull.c:979:5: warning: function 'cmd_pull' has cognitive complexity of 66 (threshold 25) [readability-function-cognitive-complexity]
int cmd_pull(int argc, const char **argv, const char *prefix)
    ^
/datasets/git/builtin/pull.c:990:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!getenv("GIT_REFLOG_ACTION"))
        ^
/datasets/git/builtin/pull.c:994:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (the_repository->gitdir) {
        ^
/datasets/git/builtin/pull.c:1001:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (recurse_submodules_cli != RECURSE_SUBMODULES_DEFAULT)
        ^
/datasets/git/builtin/pull.c:1004:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (cleanup_arg)
        ^
/datasets/git/builtin/pull.c:1013:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!opt_ff) {
        ^
/datasets/git/builtin/pull.c:1026:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opt_rebase >= 0 && opt_ff && !strcmp(opt_ff, "--ff-only"))
                ^
/datasets/git/builtin/pull.c:1026:33: note: +1
                if (opt_rebase >= 0 && opt_ff && !strcmp(opt_ff, "--ff-only"))
                                              ^
/datasets/git/builtin/pull.c:1030:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt_rebase < 0)
        ^
/datasets/git/builtin/pull.c:1033:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (repo_read_index_unmerged(the_repository))
        ^
/datasets/git/builtin/pull.c:1036:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (file_exists(git_path_merge_head(the_repository)))
        ^
/datasets/git/builtin/pull.c:1039:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (get_oid("HEAD", &orig_head))
        ^
/datasets/git/builtin/pull.c:1042:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt_rebase) {
        ^
/datasets/git/builtin/pull.c:1043:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opt_autostash == -1)
                ^
/datasets/git/builtin/pull.c:1046:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (is_null_oid(&orig_head) && !is_index_unborn(&the_index))
                ^
/datasets/git/builtin/pull.c:1046:31: note: +1
                if (is_null_oid(&orig_head) && !is_index_unborn(&the_index))
                                            ^
/datasets/git/builtin/pull.c:1049:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!opt_autostash)
                ^
/datasets/git/builtin/pull.c:1054:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (get_rebase_fork_point(&rebase_fork_point, repo, *refspecs))
                ^
/datasets/git/builtin/pull.c:1058:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (run_fetch(repo, refspecs))
        ^
/datasets/git/builtin/pull.c:1061:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt_dry_run)
        ^
/datasets/git/builtin/pull.c:1064:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (get_oid("HEAD", &curr_head))
        ^
/datasets/git/builtin/pull.c:1067:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!is_null_oid(&orig_head) && !is_null_oid(&curr_head) &&
        ^
/datasets/git/builtin/pull.c:1067:59: note: +1
        if (!is_null_oid(&orig_head) && !is_null_oid(&curr_head) &&
                                                                 ^
/datasets/git/builtin/pull.c:1081:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (checkout_fast_forward(the_repository, &orig_head,
                ^
/datasets/git/builtin/pull.c:1093:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!merge_heads.nr)
        ^
/datasets/git/builtin/pull.c:1096:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (is_null_oid(&orig_head)) {
        ^
/datasets/git/builtin/pull.c:1097:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (merge_heads.nr > 1)
                ^
/datasets/git/builtin/pull.c:1100:3: note: +1
                goto cleanup;
                ^
/datasets/git/builtin/pull.c:1102:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (merge_heads.nr > 1) {
        ^
/datasets/git/builtin/pull.c:1103:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opt_rebase)
                ^
/datasets/git/builtin/pull.c:1105:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opt_ff && !strcmp(opt_ff, "--ff-only"))
                ^
/datasets/git/builtin/pull.c:1105:14: note: +1
                if (opt_ff && !strcmp(opt_ff, "--ff-only"))
                           ^
/datasets/git/builtin/pull.c:1110:22: note: +1
        divergent = !can_ff && !already_up_to_date(&orig_head, &merge_heads);
                            ^
/datasets/git/builtin/pull.c:1113:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt_ff && !strcmp(opt_ff, "--ff-only")) {
        ^
/datasets/git/builtin/pull.c:1113:13: note: +1
        if (opt_ff && !strcmp(opt_ff, "--ff-only")) {
                   ^
/datasets/git/builtin/pull.c:1114:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (divergent)
                ^
/datasets/git/builtin/pull.c:1119:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!opt_ff && rebase_unspecified && divergent) {
        ^
/datasets/git/builtin/pull.c:1119:36: note: +1
        if (!opt_ff && rebase_unspecified && divergent) {
                                          ^
/datasets/git/builtin/pull.c:1124:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt_rebase) {
        ^
/datasets/git/builtin/pull.c:1130:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((recurse_submodules == RECURSE_SUBMODULES_ON ||
                ^
/datasets/git/builtin/pull.c:1131:60: note: +1
                     recurse_submodules == RECURSE_SUBMODULES_ON_DEMAND) &&
                                                                         ^
/datasets/git/builtin/pull.c:1130:52: note: +1
                if ((recurse_submodules == RECURSE_SUBMODULES_ON ||
                                                                 ^
/datasets/git/builtin/pull.c:1135:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (can_ff) {
                ^
/datasets/git/builtin/pull.c:1139:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/pull.c:1143:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!ret && (recurse_submodules == RECURSE_SUBMODULES_ON ||
                ^
/datasets/git/builtin/pull.c:1143:12: note: +1
                if (!ret && (recurse_submodules == RECURSE_SUBMODULES_ON ||
                         ^
/datasets/git/builtin/pull.c:1143:60: note: +1
                if (!ret && (recurse_submodules == RECURSE_SUBMODULES_ON ||
                                                                         ^
/datasets/git/builtin/pull.c:1147:3: note: +1
                goto cleanup;
                ^
/datasets/git/builtin/pull.c:1148:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/pull.c:1150:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!ret && (recurse_submodules == RECURSE_SUBMODULES_ON ||
                ^
/datasets/git/builtin/pull.c:1150:12: note: +1
                if (!ret && (recurse_submodules == RECURSE_SUBMODULES_ON ||
                         ^
/datasets/git/builtin/pull.c:1150:60: note: +1
                if (!ret && (recurse_submodules == RECURSE_SUBMODULES_ON ||
                                                                         ^
/datasets/git/builtin/pull.c:1153:3: note: +1
                goto cleanup;
                ^
/datasets/git/builtin/pull.c:981:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *repo, **refspecs;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pull.c:981:14: warning: variable 'repo' is not initialized [cppcoreguidelines-init-variables]
        const char *repo, **refspecs;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pull.c:981:22: warning: variable 'refspecs' is not initialized [cppcoreguidelines-init-variables]
        const char *repo, **refspecs;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/pull.c:983:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct object_id orig_head, curr_head;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/pull.c:986:6: warning: variable 'can_ff' is not initialized [cppcoreguidelines-init-variables]
        int can_ff;
            ^
                   = 0
/datasets/git/builtin/pull.c:987:6: warning: variable 'divergent' is not initialized [cppcoreguidelines-init-variables]
        int divergent;
            ^
                      = 0
/datasets/git/builtin/pull.c:988:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/builtin/pull.c:990:7: warning: function is not thread safe [concurrency-mt-unsafe]
        if (!getenv("GIT_REFLOG_ACTION"))
             ^
/datasets/git/builtin/pull.c:990:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!getenv("GIT_REFLOG_ACTION"))
                                         ^
                                          {
/datasets/git/builtin/pull.c:1001:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (recurse_submodules_cli != RECURSE_SUBMODULES_DEFAULT)
                                                                 ^
                                                                  {
/datasets/git/builtin/pull.c:1004:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cleanup_arg)
                        ^
                         {
/datasets/git/builtin/pull.c:1026:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opt_rebase >= 0 && opt_ff && !strcmp(opt_ff, "--ff-only"))
                                                                              ^
                                                                               {
/datasets/git/builtin/pull.c:1030:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt_rebase < 0)
                           ^
                            {
/datasets/git/builtin/pull.c:1033:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_read_index_unmerged(the_repository))
                                                     ^
                                                      {
/datasets/git/builtin/pull.c:1036:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (file_exists(git_path_merge_head(the_repository)))
                                                             ^
                                                              {
/datasets/git/builtin/pull.c:1039:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid("HEAD", &orig_head))
                                        ^
                                         {
/datasets/git/builtin/pull.c:1043:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opt_autostash == -1)
                                        ^
                                         {
/datasets/git/builtin/pull.c:1046:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_null_oid(&orig_head) && !is_index_unborn(&the_index))
                                                                            ^
                                                                             {
/datasets/git/builtin/pull.c:1049:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!opt_autostash)
                                   ^
                                    {
/datasets/git/builtin/pull.c:1054:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (get_rebase_fork_point(&rebase_fork_point, repo, *refspecs))
                                                                               ^
                                                                                {
/datasets/git/builtin/pull.c:1058:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (run_fetch(repo, refspecs))
                                      ^
                                       {
/datasets/git/builtin/pull.c:1061:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt_dry_run)
                        ^
                         {
/datasets/git/builtin/pull.c:1064:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid("HEAD", &curr_head))
                                        ^
                                         {
/datasets/git/builtin/pull.c:1082:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                          &curr_head, 0))
                                                         ^
                                                          {
/datasets/git/builtin/pull.c:1093:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!merge_heads.nr)
                            ^
                             {
/datasets/git/builtin/pull.c:1097:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (merge_heads.nr > 1)
                                       ^
                                        {
/datasets/git/builtin/pull.c:1103:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opt_rebase)
                               ^
                                {
/datasets/git/builtin/pull.c:1105:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opt_ff && !strcmp(opt_ff, "--ff-only"))
                                                           ^
                                                            {
/datasets/git/builtin/pull.c:1114:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (divergent)
                              ^
                               {
/datasets/git/builtin/pull.c:1132:73: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    submodule_touches_in_range(the_repository, &upstream, &curr_head))
                                                                                      ^
                                                                                       {
/datasets/git/builtin/pull.c:1144:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                             recurse_submodules == RECURSE_SUBMODULES_ON_DEMAND))
                                                                                 ^
                                                                                  {
/datasets/git/builtin/pull.c:1151:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                             recurse_submodules == RECURSE_SUBMODULES_ON_DEMAND))
                                                                                 ^
                                                                                  {
/datasets/git/builtin/push.c:6:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "builtin.h"
/datasets/git/builtin/push.c:24:12: warning: variable 'push_use_color' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int push_use_color = -1;
           ^
/datasets/git/builtin/push.c:25:13: warning: variable 'push_colors' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char push_colors[][COLOR_MAXLEN] = {
            ^
/datasets/git/builtin/push.c:37:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcasecmp(slot, "reset"))
                                       ^
                                        {
/datasets/git/builtin/push.c:39:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcasecmp(slot, "error"))
                                       ^
                                        {
/datasets/git/builtin/push.c:44:51: warning: parameter name 'ix' is too short, expected at least 3 characters [readability-identifier-length]
static const char *push_get_color(enum color_push ix)
                                                  ^
/datasets/git/builtin/push.c:46:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (want_color_stderr(push_use_color))
                                              ^
                                               {
/datasets/git/builtin/push.c:51:12: warning: variable 'thin' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int thin = 1;
           ^
/datasets/git/builtin/push.c:52:12: warning: variable 'deleterefs' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int deleterefs;
           ^
/datasets/git/builtin/push.c:53:20: warning: variable 'receivepack' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *receivepack;
                   ^
/datasets/git/builtin/push.c:54:12: warning: variable 'verbosity' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int verbosity;
           ^
/datasets/git/builtin/push.c:55:12: warning: variable 'progress' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int progress = -1;
           ^
/datasets/git/builtin/push.c:56:12: warning: variable 'recurse_submodules' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int recurse_submodules = RECURSE_SUBMODULES_DEFAULT;
           ^
/datasets/git/builtin/push.c:57:30: warning: variable 'family' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static enum transport_family family;
                             ^
/datasets/git/builtin/push.c:59:31: warning: variable 'cas' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct push_cas_option cas;
                              ^
/datasets/git/builtin/push.c:61:23: warning: variable 'rs' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct refspec rs = REFSPEC_INIT_PUSH;
                      ^
/datasets/git/builtin/push.c:61:23: warning: variable name 'rs' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/push.c:63:27: warning: variable 'push_options_config' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct string_list push_options_config = STRING_LIST_INIT_DUP;
                          ^
/datasets/git/builtin/push.c:68:14: warning: variable 'branch_name' is not initialized [cppcoreguidelines-init-variables]
        const char *branch_name;
                    ^
                                = NULL
/datasets/git/builtin/push.c:79:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(&query, 0, sizeof(struct refspec_item));
                ^~~~~~
/datasets/git/builtin/push.c:79:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(&query, 0, sizeof(struct refspec_item));
                ^~~~~~
/datasets/git/builtin/push.c:102:49: warning: parameter name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
static void set_refspecs(const char **refs, int nr, const char *repo)
                                                ^
/datasets/git/builtin/push.c:106:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/push.c:106:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/push.c:108:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr; i++) {
        ^
/datasets/git/builtin/push.c:111:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (nr <= ++i)
                                      ^
                                       {
/datasets/git/builtin/push.c:114:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (deleterefs)
                                       ^
                                        {
/datasets/git/builtin/push.c:116:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/builtin/push.c:119:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (strchr(ref, ':') || !*ref)
                                                      ^
                                                       {
/datasets/git/builtin/push.c:129:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/builtin/push.c:165:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (push_default == PUSH_DEFAULT_UNSPECIFIED)
                                                     ^
                                                      {
/datasets/git/builtin/push.c:169:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (git_branch_track != BRANCH_TRACK_SIMPLE)
                                                    ^
                                                     {
/datasets/git/builtin/push.c:200:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (branch->merge_nr == 0 && (flags & TRANSPORT_PUSH_AUTO_UPSTREAM)) {
                                      ^~~~~
/datasets/git/builtin/push.c:200:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (branch->merge_nr == 0 && (flags & TRANSPORT_PUSH_AUTO_UPSTREAM)) {
                                              ^
/datasets/git/./transport.h:148:40: note: expanded from macro 'TRANSPORT_PUSH_AUTO_UPSTREAM'
#define TRANSPORT_PUSH_AUTO_UPSTREAM            (1<<17)
                                                 ^
/datasets/git/builtin/push.c:207:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(flags & TRANSPORT_PUSH_AUTO_UPSTREAM)) {
                      ^~~~~
/datasets/git/builtin/push.c:207:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(flags & TRANSPORT_PUSH_AUTO_UPSTREAM)) {
                              ^
/datasets/git/./transport.h:148:40: note: expanded from macro 'TRANSPORT_PUSH_AUTO_UPSTREAM'
#define TRANSPORT_PUSH_AUTO_UPSTREAM            (1<<17)
                                                 ^
/datasets/git/builtin/push.c:224:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (branch->merge_nr != 1)
                                  ^
                                   {
/datasets/git/builtin/push.c:233:17: warning: variable 'branch' is not initialized [cppcoreguidelines-init-variables]
        struct branch *branch;
                       ^
                              = NULL
/datasets/git/builtin/push.c:234:14: warning: variable 'dst' is not initialized [cppcoreguidelines-init-variables]
        const char *dst;
                    ^
                        = NULL
/datasets/git/builtin/push.c:235:6: warning: variable 'same_remote' is not initialized [cppcoreguidelines-init-variables]
        int same_remote;
            ^
                        = 0
/datasets/git/builtin/push.c:251:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!branch)
                    ^
                     {
/datasets/git/builtin/push.c:261:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!same_remote)
                                 ^
                                  {
/datasets/git/builtin/push.c:263:7: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (strcmp(branch->refname, get_upstream_ref(*flags, branch, remote->name)))
                    ^
                                                                                            != 0
/datasets/git/builtin/push.c:263:79: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strcmp(branch->refname, get_upstream_ref(*flags, branch, remote->name)))
                                                                                            ^
                                                                                             {
/datasets/git/builtin/push.c:268:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!same_remote)
                                 ^
                                  {
/datasets/git/builtin/push.c:285:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((*flags & TRANSPORT_PUSH_AUTO_UPSTREAM) && branch->merge_nr == 0)
             ^~~~~~
/datasets/git/builtin/push.c:285:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((*flags & TRANSPORT_PUSH_AUTO_UPSTREAM) && branch->merge_nr == 0)
                      ^
/datasets/git/./transport.h:148:40: note: expanded from macro 'TRANSPORT_PUSH_AUTO_UPSTREAM'
#define TRANSPORT_PUSH_AUTO_UPSTREAM            (1<<17)
                                                 ^
/datasets/git/builtin/push.c:285:71: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((*flags & TRANSPORT_PUSH_AUTO_UPSTREAM) && branch->merge_nr == 0)
                                                                             ^
                                                                              {
/datasets/git/builtin/push.c:286:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                *flags |= TRANSPORT_PUSH_SET_UPSTREAM;
                ^~~~~~
/datasets/git/builtin/push.c:286:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                *flags |= TRANSPORT_PUSH_SET_UPSTREAM;
                          ^
/datasets/git/./transport.h:136:39: note: expanded from macro 'TRANSPORT_PUSH_SET_UPSTREAM'
#define TRANSPORT_PUSH_SET_UPSTREAM             (1<<5)
                                                 ^
/datasets/git/builtin/push.c:326:98: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!advice_enabled(ADVICE_PUSH_NON_FF_CURRENT) || !advice_enabled(ADVICE_PUSH_UPDATE_REJECTED))
                                                                                                        ^
                                                                                                         {
/datasets/git/builtin/push.c:333:99: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!advice_enabled(ADVICE_PUSH_NON_FF_MATCHING) || !advice_enabled(ADVICE_PUSH_UPDATE_REJECTED))
                                                                                                         ^
                                                                                                          {
/datasets/git/builtin/push.c:340:98: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!advice_enabled(ADVICE_PUSH_ALREADY_EXISTS) || !advice_enabled(ADVICE_PUSH_UPDATE_REJECTED))
                                                                                                        ^
                                                                                                         {
/datasets/git/builtin/push.c:347:95: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!advice_enabled(ADVICE_PUSH_FETCH_FIRST) || !advice_enabled(ADVICE_PUSH_UPDATE_REJECTED))
                                                                                                     ^
                                                                                                      {
/datasets/git/builtin/push.c:354:95: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!advice_enabled(ADVICE_PUSH_NEEDS_FORCE) || !advice_enabled(ADVICE_PUSH_UPDATE_REJECTED))
                                                                                                     ^
                                                                                                      {
/datasets/git/builtin/push.c:361:100: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!advice_enabled(ADVICE_PUSH_REF_NEEDS_UPDATE) || !advice_enabled(ADVICE_PUSH_UPDATE_REJECTED))
                                                                                                          ^
                                                                                                           {
/datasets/git/builtin/push.c:366:75: warning: parameter name 'rs' is too short, expected at least 3 characters [readability-identifier-length]
static int push_with_options(struct transport *transport, struct refspec *rs,
                                                                          ^
/datasets/git/builtin/push.c:369:6: warning: variable 'err' is not initialized [cppcoreguidelines-init-variables]
        int err;
            ^
                = 0
/datasets/git/builtin/push.c:370:15: warning: variable 'reject_reasons' is not initialized [cppcoreguidelines-init-variables]
        unsigned int reject_reasons;
                     ^
                                    = 0
/datasets/git/builtin/push.c:376:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (receivepack)
                        ^
                         {
/datasets/git/builtin/push.c:382:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!transport->smart_options)
                                              ^
                                               {
/datasets/git/builtin/push.c:388:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (verbosity > 0)
                          ^
                           {
/datasets/git/builtin/push.c:389:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, _("Pushing to %s\n"), anon_url);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/push.c:389:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/push.c:395:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "%s", push_get_color(PUSH_COLOR_ERROR));
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/push.c:395:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/push.c:397:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "%s", push_get_color(PUSH_COLOR_RESET));
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/push.c:397:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/push.c:400:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        err |= transport_disconnect(transport);
        ^~~
/datasets/git/builtin/push.c:402:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!err)
                 ^
                  {
/datasets/git/builtin/push.c:405:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (reject_reasons & REJECT_NON_FF_HEAD) {
            ^
/datasets/git/builtin/push.c:407:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        } else if (reject_reasons & REJECT_NON_FF_OTHER) {
                   ^
/datasets/git/builtin/push.c:409:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        } else if (reject_reasons & REJECT_ALREADY_EXISTS) {
                   ^
/datasets/git/builtin/push.c:411:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        } else if (reject_reasons & REJECT_FETCH_FIRST) {
                   ^
/datasets/git/builtin/push.c:413:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        } else if (reject_reasons & REJECT_NEEDS_FORCE) {
                   ^
/datasets/git/builtin/push.c:415:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        } else if (reject_reasons & REJECT_REF_NEEDS_UPDATE) {
                   ^
/datasets/git/builtin/push.c:426:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, errs;
        ^~~~~~~~~~~~
/datasets/git/builtin/push.c:426:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, errs;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/push.c:426:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/push.c:426:9: warning: variable 'errs' is not initialized [cppcoreguidelines-init-variables]
        int i, errs;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/push.c:427:15: warning: variable 'url' is not initialized [cppcoreguidelines-init-variables]
        const char **url;
                     ^
                         = NULL
/datasets/git/builtin/push.c:428:6: warning: variable 'url_nr' is not initialized [cppcoreguidelines-init-variables]
        int url_nr;
            ^
                   = 0
/datasets/git/builtin/push.c:431:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (push_options->nr)
                             ^
                              {
/datasets/git/builtin/push.c:432:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags |= TRANSPORT_PUSH_OPTIONS;
                ^~~~~
/datasets/git/builtin/push.c:432:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags |= TRANSPORT_PUSH_OPTIONS;
                         ^
/datasets/git/./transport.h:145:35: note: expanded from macro 'TRANSPORT_PUSH_OPTIONS'
#define TRANSPORT_PUSH_OPTIONS                  (1<<14)
                                                 ^
/datasets/git/builtin/push.c:434:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!push_refspec->nr && !(flags & TRANSPORT_PUSH_ALL)) {
                                   ^~~~~
/datasets/git/builtin/push.c:434:37: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!push_refspec->nr && !(flags & TRANSPORT_PUSH_ALL)) {
                                           ^
/datasets/git/./transport.h:131:31: note: expanded from macro 'TRANSPORT_PUSH_ALL'
#define TRANSPORT_PUSH_ALL                      (1<<0)
                                                 ^
/datasets/git/builtin/push.c:437:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                } else if (!(flags & TRANSPORT_PUSH_MIRROR))
                             ^~~~~
/datasets/git/builtin/push.c:437:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                } else if (!(flags & TRANSPORT_PUSH_MIRROR))
                                     ^
/datasets/git/./transport.h:134:34: note: expanded from macro 'TRANSPORT_PUSH_MIRROR'
#define TRANSPORT_PUSH_MIRROR                   (1<<3)
                                                 ^
/datasets/git/builtin/push.c:428:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int url_nr;
        ^
/datasets/git/builtin/push.c:437:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else if (!(flags & TRANSPORT_PUSH_MIRROR))
                                                            ^
                                                             {
/datasets/git/builtin/push.c:443:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < url_nr; i++) {
                ^
/datasets/git/builtin/push.c:443:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'url_nr' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < url_nr; i++) {
                            ^
/datasets/git/builtin/push.c:446:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (flags & TRANSPORT_PUSH_OPTIONS)
                            ^~~~~
/datasets/git/builtin/push.c:446:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (flags & TRANSPORT_PUSH_OPTIONS)
                                    ^
/datasets/git/./transport.h:145:35: note: expanded from macro 'TRANSPORT_PUSH_OPTIONS'
#define TRANSPORT_PUSH_OPTIONS                  (1<<14)
                                                 ^
/datasets/git/builtin/push.c:446:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (flags & TRANSPORT_PUSH_OPTIONS)
                                                           ^
                                                            {
/datasets/git/builtin/push.c:448:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (push_with_options(transport, push_refspec, flags))
                                                                              ^
                                                                               {
/datasets/git/builtin/push.c:454:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flags & TRANSPORT_PUSH_OPTIONS)
                    ^~~~~
/datasets/git/builtin/push.c:454:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flags & TRANSPORT_PUSH_OPTIONS)
                            ^
/datasets/git/./transport.h:145:35: note: expanded from macro 'TRANSPORT_PUSH_OPTIONS'
#define TRANSPORT_PUSH_OPTIONS                  (1<<14)
                                                 ^
/datasets/git/builtin/push.c:454:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (flags & TRANSPORT_PUSH_OPTIONS)
                                                   ^
                                                    {
/datasets/git/builtin/push.c:456:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (push_with_options(transport, push_refspec, flags))
                                                                      ^
                                                                       {
/datasets/git/builtin/push.c:467:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unset)
                  ^
                   {
/datasets/git/builtin/push.c:483:49: warning: parameter name 'v' is too short, expected at least 3 characters [readability-identifier-length]
static void set_push_cert_flags(int *flags, int v)
                                                ^
/datasets/git/builtin/push.c:485:2: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
        switch (v) {
        ^
/datasets/git/builtin/push.c:487:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                *flags &= ~(TRANSPORT_PUSH_CERT_ALWAYS | TRANSPORT_PUSH_CERT_IF_ASKED);
                ^~~~~~
/datasets/git/builtin/push.c:487:13: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                *flags &= ~(TRANSPORT_PUSH_CERT_ALWAYS | TRANSPORT_PUSH_CERT_IF_ASKED);
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/push.c:487:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                *flags &= ~(TRANSPORT_PUSH_CERT_ALWAYS | TRANSPORT_PUSH_CERT_IF_ASKED);
                            ^
/datasets/git/./transport.h:142:37: note: expanded from macro 'TRANSPORT_PUSH_CERT_ALWAYS'
#define TRANSPORT_PUSH_CERT_ALWAYS              (1<<11)
                                                ^~~~~~~
/datasets/git/builtin/push.c:487:44: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                *flags &= ~(TRANSPORT_PUSH_CERT_ALWAYS | TRANSPORT_PUSH_CERT_IF_ASKED);
                                                         ^
/datasets/git/./transport.h:143:40: note: expanded from macro 'TRANSPORT_PUSH_CERT_IF_ASKED'
#define TRANSPORT_PUSH_CERT_IF_ASKED            (1<<12)
                                                 ^
/datasets/git/builtin/push.c:490:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                *flags |= TRANSPORT_PUSH_CERT_ALWAYS;
                ^~~~~~
/datasets/git/builtin/push.c:490:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                *flags |= TRANSPORT_PUSH_CERT_ALWAYS;
                          ^
/datasets/git/./transport.h:142:38: note: expanded from macro 'TRANSPORT_PUSH_CERT_ALWAYS'
#define TRANSPORT_PUSH_CERT_ALWAYS              (1<<11)
                                                 ^
/datasets/git/builtin/push.c:491:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                *flags &= ~TRANSPORT_PUSH_CERT_IF_ASKED;
                ^~~~~~
/datasets/git/builtin/push.c:491:13: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                *flags &= ~TRANSPORT_PUSH_CERT_IF_ASKED;
                          ^
/datasets/git/builtin/push.c:491:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                *flags &= ~TRANSPORT_PUSH_CERT_IF_ASKED;
                           ^
/datasets/git/./transport.h:143:40: note: expanded from macro 'TRANSPORT_PUSH_CERT_IF_ASKED'
#define TRANSPORT_PUSH_CERT_IF_ASKED            (1<<12)
                                                 ^
/datasets/git/builtin/push.c:494:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                *flags |= TRANSPORT_PUSH_CERT_IF_ASKED;
                ^~~~~~
/datasets/git/builtin/push.c:494:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                *flags |= TRANSPORT_PUSH_CERT_IF_ASKED;
                          ^
/datasets/git/./transport.h:143:40: note: expanded from macro 'TRANSPORT_PUSH_CERT_IF_ASKED'
#define TRANSPORT_PUSH_CERT_IF_ASKED            (1<<12)
                                                 ^
/datasets/git/builtin/push.c:495:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                *flags &= ~TRANSPORT_PUSH_CERT_ALWAYS;
                ^~~~~~
/datasets/git/builtin/push.c:495:13: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                *flags &= ~TRANSPORT_PUSH_CERT_ALWAYS;
                          ^
/datasets/git/builtin/push.c:495:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                *flags &= ~TRANSPORT_PUSH_CERT_ALWAYS;
                           ^
/datasets/git/./transport.h:142:38: note: expanded from macro 'TRANSPORT_PUSH_CERT_ALWAYS'
#define TRANSPORT_PUSH_CERT_ALWAYS              (1<<11)
                                                 ^
/datasets/git/builtin/push.c:501:12: warning: function 'git_push_config' has cognitive complexity of 41 (threshold 25) [readability-function-cognitive-complexity]
static int git_push_config(const char *k, const char *v, void *cb)
           ^
/datasets/git/builtin/push.c:508:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (status)
        ^
/datasets/git/builtin/push.c:511:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(k, "push.followtags")) {
        ^
/datasets/git/builtin/push.c:512:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (git_config_bool(k, v))
                ^
/datasets/git/builtin/push.c:514:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/push.c:517:9: note: +1, nesting level increased to 1
        } else if (!strcmp(k, "push.autosetupremote")) {
               ^
/datasets/git/builtin/push.c:518:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (git_config_bool(k, v))
                ^
/datasets/git/builtin/push.c:521:9: note: +1, nesting level increased to 1
        } else if (!strcmp(k, "push.gpgsign")) {
               ^
/datasets/git/builtin/push.c:523:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!git_config_get_value("push.gpgsign", &value)) {
                ^
/datasets/git/builtin/push.c:524:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        switch (git_parse_maybe_bool(value)) {
                        ^
/datasets/git/builtin/push.c:532:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (value && !strcasecmp(value, "if-asked"))
                                ^
/datasets/git/builtin/push.c:532:15: note: +1
                                if (value && !strcasecmp(value, "if-asked"))
                                          ^
/datasets/git/builtin/push.c:534:5: note: +1, nesting level increased to 4
                                else
                                ^
/datasets/git/builtin/push.c:538:9: note: +1, nesting level increased to 1
        } else if (!strcmp(k, "push.recursesubmodules")) {
               ^
/datasets/git/builtin/push.c:540:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!git_config_get_value("push.recursesubmodules", &value))
                ^
/datasets/git/builtin/push.c:542:9: note: +1, nesting level increased to 1
        } else if (!strcmp(k, "submodule.recurse")) {
               ^
/datasets/git/builtin/push.c:543:35: note: +2, including nesting penalty of 1, nesting level increased to 2
                int val = git_config_bool(k, v) ?
                                                ^
/datasets/git/builtin/push.c:546:9: note: +1, nesting level increased to 1
        } else if (!strcmp(k, "push.pushoption")) {
               ^
/datasets/git/builtin/push.c:547:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!v)
                ^
/datasets/git/builtin/push.c:550:4: note: +1, nesting level increased to 2
                        if (!*v)
                        ^
/datasets/git/builtin/push.c:552:4: note: +1, nesting level increased to 2
                        else
                        ^
/datasets/git/builtin/push.c:555:9: note: +1, nesting level increased to 1
        } else if (!strcmp(k, "color.push")) {
               ^
/datasets/git/builtin/push.c:558:9: note: +1, nesting level increased to 1
        } else if (skip_prefix(k, "color.push.", &slot_name)) {
               ^
/datasets/git/builtin/push.c:560:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (slot < 0)
                ^
/datasets/git/builtin/push.c:562:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!v)
                ^
/datasets/git/builtin/push.c:565:9: note: +1, nesting level increased to 1
        } else if (!strcmp(k, "push.useforceifincludes")) {
               ^
/datasets/git/builtin/push.c:566:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (git_config_bool(k, v))
                ^
/datasets/git/builtin/push.c:568:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/push.c:501:40: warning: parameter name 'k' is too short, expected at least 3 characters [readability-identifier-length]
static int git_push_config(const char *k, const char *v, void *cb)
                                       ^
/datasets/git/builtin/push.c:501:55: warning: parameter name 'v' is too short, expected at least 3 characters [readability-identifier-length]
static int git_push_config(const char *k, const char *v, void *cb)
                                                      ^
/datasets/git/builtin/push.c:501:64: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int git_push_config(const char *k, const char *v, void *cb)
                                                               ^
/datasets/git/builtin/push.c:503:14: warning: variable 'slot_name' is not initialized [cppcoreguidelines-init-variables]
        const char *slot_name;
                    ^
                              = NULL
/datasets/git/builtin/push.c:505:6: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int status;
            ^
                   = 0
/datasets/git/builtin/push.c:508:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (status)
                   ^
                    {
/datasets/git/builtin/push.c:512:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (git_config_bool(k, v))
                                          ^
                                           {
/datasets/git/builtin/push.c:513:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        *flags |= TRANSPORT_PUSH_FOLLOW_TAGS;
                        ^~~~~~
/datasets/git/builtin/push.c:513:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        *flags |= TRANSPORT_PUSH_FOLLOW_TAGS;
                                  ^
/datasets/git/./transport.h:141:38: note: expanded from macro 'TRANSPORT_PUSH_FOLLOW_TAGS'
#define TRANSPORT_PUSH_FOLLOW_TAGS              (1<<10)
                                                 ^
/datasets/git/builtin/push.c:514:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/push.c:515:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        *flags &= ~TRANSPORT_PUSH_FOLLOW_TAGS;
                        ^~~~~~
/datasets/git/builtin/push.c:515:14: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                        *flags &= ~TRANSPORT_PUSH_FOLLOW_TAGS;
                                  ^
/datasets/git/builtin/push.c:515:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        *flags &= ~TRANSPORT_PUSH_FOLLOW_TAGS;
                                   ^
/datasets/git/./transport.h:141:38: note: expanded from macro 'TRANSPORT_PUSH_FOLLOW_TAGS'
#define TRANSPORT_PUSH_FOLLOW_TAGS              (1<<10)
                                                 ^
/datasets/git/builtin/push.c:517:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else if (!strcmp(k, "push.autosetupremote")) {
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/push.c:518:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (git_config_bool(k, v))
                                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/push.c:519:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        *flags |= TRANSPORT_PUSH_AUTO_UPSTREAM;
                        ^~~~~~
/datasets/git/builtin/push.c:519:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        *flags |= TRANSPORT_PUSH_AUTO_UPSTREAM;
                                  ^
/datasets/git/./transport.h:148:40: note: expanded from macro 'TRANSPORT_PUSH_AUTO_UPSTREAM'
#define TRANSPORT_PUSH_AUTO_UPSTREAM            (1<<17)
                                                 ^
/datasets/git/builtin/push.c:522:15: warning: variable 'value' is not initialized [cppcoreguidelines-init-variables]
                const char *value;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/push.c:532:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (value && !strcasecmp(value, "if-asked"))
                                                                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/push.c:534:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                else
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/push.c:539:15: warning: variable 'value' is not initialized [cppcoreguidelines-init-variables]
                const char *value;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/push.c:540:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!git_config_get_value("push.recursesubmodules", &value))
                                                                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/push.c:547:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!v)
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/push.c:549:3: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                else
                ^~~~
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/push.c:550:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!*v)
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/push.c:552:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/push.c:560:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (slot < 0)
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/push.c:562:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!v)
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/push.c:566:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (git_config_bool(k, v))
                                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/push.c:567:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        *flags |= TRANSPORT_PUSH_FORCE_IF_INCLUDES;
                        ^~~~~~
/datasets/git/builtin/push.c:567:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        *flags |= TRANSPORT_PUSH_FORCE_IF_INCLUDES;
                                  ^
/datasets/git/./transport.h:147:43: note: expanded from macro 'TRANSPORT_PUSH_FORCE_IF_INCLUDES'
#define TRANSPORT_PUSH_FORCE_IF_INCLUDES        (1<<16)
                                                 ^
/datasets/git/builtin/push.c:568:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/push.c:569:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        *flags &= ~TRANSPORT_PUSH_FORCE_IF_INCLUDES;
                        ^~~~~~
/datasets/git/builtin/push.c:569:14: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                        *flags &= ~TRANSPORT_PUSH_FORCE_IF_INCLUDES;
                                  ^
/datasets/git/builtin/push.c:569:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        *flags &= ~TRANSPORT_PUSH_FORCE_IF_INCLUDES;
                                   ^
/datasets/git/./transport.h:147:43: note: expanded from macro 'TRANSPORT_PUSH_FORCE_IF_INCLUDES'
#define TRANSPORT_PUSH_FORCE_IF_INCLUDES        (1<<16)
                                                 ^
/datasets/git/builtin/push.c:576:5: warning: function 'cmd_push' has cognitive complexity of 35 (threshold 25) [readability-function-cognitive-complexity]
int cmd_push(int argc, const char **argv, const char *prefix)
    ^
/datasets/git/builtin/push.c:633:3: note: +1, including nesting penalty of 0, nesting level increased to 1
                ? &push_options_cmdline
                ^
/datasets/git/builtin/push.c:637:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (deleterefs && (tags || (flags & (TRANSPORT_PUSH_ALL | TRANSPORT_PUSH_MIRROR))))
        ^
/datasets/git/builtin/push.c:637:17: note: +1
        if (deleterefs && (tags || (flags & (TRANSPORT_PUSH_ALL | TRANSPORT_PUSH_MIRROR))))
                       ^
/datasets/git/builtin/push.c:637:26: note: +1
        if (deleterefs && (tags || (flags & (TRANSPORT_PUSH_ALL | TRANSPORT_PUSH_MIRROR))))
                                ^
/datasets/git/builtin/push.c:639:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (deleterefs && argc < 2)
        ^
/datasets/git/builtin/push.c:639:17: note: +1
        if (deleterefs && argc < 2)
                       ^
/datasets/git/builtin/push.c:642:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (recurse_submodules == RECURSE_SUBMODULES_CHECK)
        ^
/datasets/git/builtin/push.c:644:7: note: +1, nesting level increased to 1
        else if (recurse_submodules == RECURSE_SUBMODULES_ON_DEMAND)
             ^
/datasets/git/builtin/push.c:646:7: note: +1, nesting level increased to 1
        else if (recurse_submodules == RECURSE_SUBMODULES_ONLY)
             ^
/datasets/git/builtin/push.c:649:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (tags)
        ^
/datasets/git/builtin/push.c:652:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (argc > 0) {
        ^
/datasets/git/builtin/push.c:658:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!remote) {
        ^
/datasets/git/builtin/push.c:659:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (repo)
                ^
/datasets/git/builtin/push.c:671:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (remote->mirror)
        ^
/datasets/git/builtin/push.c:674:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (flags & TRANSPORT_PUSH_ALL) {
        ^
/datasets/git/builtin/push.c:675:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (tags)
                ^
/datasets/git/builtin/push.c:677:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (argc >= 2)
                ^
/datasets/git/builtin/push.c:680:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (flags & TRANSPORT_PUSH_MIRROR) {
        ^
/datasets/git/builtin/push.c:681:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (tags)
                ^
/datasets/git/builtin/push.c:683:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (argc >= 2)
                ^
/datasets/git/builtin/push.c:686:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((flags & TRANSPORT_PUSH_ALL) && (flags & TRANSPORT_PUSH_MIRROR))
        ^
/datasets/git/builtin/push.c:686:35: note: +1
        if ((flags & TRANSPORT_PUSH_ALL) && (flags & TRANSPORT_PUSH_MIRROR))
                                         ^
/datasets/git/builtin/push.c:689:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!is_empty_cas(&cas) && (flags & TRANSPORT_PUSH_FORCE_IF_INCLUDES))
        ^
/datasets/git/builtin/push.c:689:26: note: +1
        if (!is_empty_cas(&cas) && (flags & TRANSPORT_PUSH_FORCE_IF_INCLUDES))
                                ^
/datasets/git/builtin/push.c:692:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for_each_string_list_item(item, push_options)
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/push.c:692:2: note: +1
        for_each_string_list_item(item, push_options)
        ^
/datasets/git/./string-list.h:152:12: note: expanded from macro 'for_each_string_list_item'
             item && item < (list)->items + (list)->nr; \
                  ^
/datasets/git/builtin/push.c:693:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (strchr(item->string, '\n'))
                ^
/datasets/git/builtin/push.c:699:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (rc == -1)
        ^
/datasets/git/builtin/push.c:701:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/builtin/push.c:581:6: warning: variable 'rc' is not initialized [cppcoreguidelines-init-variables]
        int rc;
            ^
               = 0
/datasets/git/builtin/push.c:581:6: warning: variable name 'rc' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/push.c:584:22: warning: variable 'push_options' is not initialized [cppcoreguidelines-init-variables]
        struct string_list *push_options;
                            ^
                                         = NULL
/datasets/git/builtin/push.c:585:33: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        const struct string_list_item *item;
                                       ^
                                            = NULL
/datasets/git/builtin/push.c:586:17: warning: variable 'remote' is not initialized [cppcoreguidelines-init-variables]
        struct remote *remote;
                       ^
                              = NULL
/datasets/git/builtin/push.c:591:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT( 0 , "all", &flags, N_("push all refs"), TRANSPORT_PUSH_ALL),
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/push.c:591:52: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT( 0 , "all", &flags, N_("push all refs"), TRANSPORT_PUSH_ALL),
                                                                 ^
/datasets/git/./transport.h:131:31: note: expanded from macro 'TRANSPORT_PUSH_ALL'
#define TRANSPORT_PUSH_ALL                      (1<<0)
                                                 ^
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/push.c:592:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT( 0 , "mirror", &flags, N_("mirror all refs"),
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/push.c:593:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            (TRANSPORT_PUSH_MIRROR|TRANSPORT_PUSH_FORCE)),
                             ^
/datasets/git/./transport.h:134:33: note: expanded from macro 'TRANSPORT_PUSH_MIRROR'
#define TRANSPORT_PUSH_MIRROR                   (1<<3)
                                                ^~~~~~
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/push.c:593:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            (TRANSPORT_PUSH_MIRROR|TRANSPORT_PUSH_FORCE)),
                                                   ^
/datasets/git/./transport.h:132:33: note: expanded from macro 'TRANSPORT_PUSH_FORCE'
#define TRANSPORT_PUSH_FORCE                    (1<<1)
                                                 ^
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/push.c:594:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('d', "delete", &deleterefs, N_("delete refs")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/push.c:595:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL( 0 , "tags", &tags, N_("push tags (can't be used with --all or --mirror)")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/push.c:596:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT('n' , "dry-run", &flags, N_("dry run"), TRANSPORT_PUSH_DRY_RUN),
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/push.c:596:51: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT('n' , "dry-run", &flags, N_("dry run"), TRANSPORT_PUSH_DRY_RUN),
                                                                ^
/datasets/git/./transport.h:133:35: note: expanded from macro 'TRANSPORT_PUSH_DRY_RUN'
#define TRANSPORT_PUSH_DRY_RUN                  (1<<2)
                                                 ^
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/push.c:597:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT( 0,  "porcelain", &flags, N_("machine-readable output"), TRANSPORT_PUSH_PORCELAIN),
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/push.c:597:68: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT( 0,  "porcelain", &flags, N_("machine-readable output"), TRANSPORT_PUSH_PORCELAIN),
                                                                                 ^
/datasets/git/./transport.h:135:36: note: expanded from macro 'TRANSPORT_PUSH_PORCELAIN'
#define TRANSPORT_PUSH_PORCELAIN                (1<<4)
                                                 ^
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/push.c:598:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT('f', "force", &flags, N_("force updates"), TRANSPORT_PUSH_FORCE),
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/push.c:598:54: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT('f', "force", &flags, N_("force updates"), TRANSPORT_PUSH_FORCE),
                                                                   ^
/datasets/git/./transport.h:132:33: note: expanded from macro 'TRANSPORT_PUSH_FORCE'
#define TRANSPORT_PUSH_FORCE                    (1<<1)
                                                 ^
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/push.c:601:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                               PARSE_OPT_OPTARG | PARSE_OPT_LITERAL_ARGHELP, parseopt_push_cas_option),
                               ^
/datasets/git/./parse-options.h:169:47: note: expanded from macro 'OPT_CALLBACK_F'
        { OPTION_CALLBACK, (s), (l), (v), (a), (h), (f), (cb) }
                                                     ^
/datasets/git/builtin/push.c:602:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT(0, TRANS_OPT_FORCE_IF_INCLUDES, &flags,
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/push.c:604:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        TRANSPORT_PUSH_FORCE_IF_INCLUDES),
                        ^
/datasets/git/./transport.h:147:43: note: expanded from macro 'TRANSPORT_PUSH_FORCE_IF_INCLUDES'
#define TRANSPORT_PUSH_FORCE_IF_INCLUDES        (1<<16)
                                                 ^
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/push.c:607:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL_F( 0 , "thin", &thin, N_("use thin pack"), PARSE_OPT_NOCOMPLETE),
                ^
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/push.c:610:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT('u', "set-upstream", &flags, N_("set upstream for git pull/status"),
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/push.c:611:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        TRANSPORT_PUSH_SET_UPSTREAM),
                        ^
/datasets/git/./transport.h:136:39: note: expanded from macro 'TRANSPORT_PUSH_SET_UPSTREAM'
#define TRANSPORT_PUSH_SET_UPSTREAM             (1<<5)
                                                 ^
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/push.c:612:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "progress", &progress, N_("force progress reporting")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/push.c:613:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT(0, "prune", &flags, N_("prune locally removed refs"),
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/push.c:614:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        TRANSPORT_PUSH_PRUNE),
                        ^
/datasets/git/./transport.h:138:33: note: expanded from macro 'TRANSPORT_PUSH_PRUNE'
#define TRANSPORT_PUSH_PRUNE                    (1<<7)
                                                 ^
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/push.c:615:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT(0, "no-verify", &flags, N_("bypass pre-push hook"), TRANSPORT_PUSH_NO_HOOK),
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/push.c:615:63: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT(0, "no-verify", &flags, N_("bypass pre-push hook"), TRANSPORT_PUSH_NO_HOOK),
                                                                            ^
/datasets/git/./transport.h:140:35: note: expanded from macro 'TRANSPORT_PUSH_NO_HOOK'
#define TRANSPORT_PUSH_NO_HOOK                  (1<<9)
                                                 ^
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/push.c:616:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT(0, "follow-tags", &flags, N_("push missing but relevant tags"),
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/push.c:617:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        TRANSPORT_PUSH_FOLLOW_TAGS),
                        ^
/datasets/git/./transport.h:141:38: note: expanded from macro 'TRANSPORT_PUSH_FOLLOW_TAGS'
#define TRANSPORT_PUSH_FOLLOW_TAGS              (1<<10)
                                                 ^
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/push.c:620:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT(0, "atomic", &flags, N_("request atomic transaction on remote side"), TRANSPORT_PUSH_ATOMIC),
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/push.c:620:81: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT(0, "atomic", &flags, N_("request atomic transaction on remote side"), TRANSPORT_PUSH_ATOMIC),
                                                                                              ^
/datasets/git/./transport.h:144:34: note: expanded from macro 'TRANSPORT_PUSH_ATOMIC'
#define TRANSPORT_PUSH_ATOMIC                   (1<<13)
                                                 ^
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/push.c:622:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT('4', "ipv4", &family, N_("use IPv4 addresses only"),
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/push.c:624:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT('6', "ipv6", &family, N_("use IPv6 addresses only"),
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/push.c:637:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (deleterefs && (tags || (flags & (TRANSPORT_PUSH_ALL | TRANSPORT_PUSH_MIRROR))))
                                    ^~~~~
/datasets/git/builtin/push.c:637:39: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (deleterefs && (tags || (flags & (TRANSPORT_PUSH_ALL | TRANSPORT_PUSH_MIRROR))))
                                             ^
/datasets/git/./transport.h:131:30: note: expanded from macro 'TRANSPORT_PUSH_ALL'
#define TRANSPORT_PUSH_ALL                      (1<<0)
                                                ^~~~~~
/datasets/git/builtin/push.c:637:60: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (deleterefs && (tags || (flags & (TRANSPORT_PUSH_ALL | TRANSPORT_PUSH_MIRROR))))
                                                                  ^
/datasets/git/./transport.h:134:34: note: expanded from macro 'TRANSPORT_PUSH_MIRROR'
#define TRANSPORT_PUSH_MIRROR                   (1<<3)
                                                 ^
/datasets/git/builtin/push.c:637:85: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (deleterefs && (tags || (flags & (TRANSPORT_PUSH_ALL | TRANSPORT_PUSH_MIRROR))))
                                                                                           ^
                                                                                            {
/datasets/git/builtin/push.c:639:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (deleterefs && argc < 2)
                                   ^
                                    {
/datasets/git/builtin/push.c:642:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (recurse_submodules == RECURSE_SUBMODULES_CHECK)
                                                           ^
                                                            {
/datasets/git/builtin/push.c:643:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags |= TRANSPORT_RECURSE_SUBMODULES_CHECK;
                ^~~~~
/datasets/git/builtin/push.c:643:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags |= TRANSPORT_RECURSE_SUBMODULES_CHECK;
                         ^
/datasets/git/./transport.h:137:45: note: expanded from macro 'TRANSPORT_RECURSE_SUBMODULES_CHECK'
#define TRANSPORT_RECURSE_SUBMODULES_CHECK      (1<<6)
                                                 ^
/datasets/git/builtin/push.c:644:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (recurse_submodules == RECURSE_SUBMODULES_ON_DEMAND)
                                                                    ^
                                                                     {
/datasets/git/builtin/push.c:645:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags |= TRANSPORT_RECURSE_SUBMODULES_ON_DEMAND;
                ^~~~~
/datasets/git/builtin/push.c:645:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags |= TRANSPORT_RECURSE_SUBMODULES_ON_DEMAND;
                         ^
/datasets/git/./transport.h:139:49: note: expanded from macro 'TRANSPORT_RECURSE_SUBMODULES_ON_DEMAND'
#define TRANSPORT_RECURSE_SUBMODULES_ON_DEMAND  (1<<8)
                                                 ^
/datasets/git/builtin/push.c:646:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (recurse_submodules == RECURSE_SUBMODULES_ONLY)
                                                               ^
                                                                {
/datasets/git/builtin/push.c:647:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags |= TRANSPORT_RECURSE_SUBMODULES_ONLY;
                ^~~~~
/datasets/git/builtin/push.c:647:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags |= TRANSPORT_RECURSE_SUBMODULES_ONLY;
                         ^
/datasets/git/./transport.h:146:44: note: expanded from macro 'TRANSPORT_RECURSE_SUBMODULES_ONLY'
#define TRANSPORT_RECURSE_SUBMODULES_ONLY       (1<<15)
                                                 ^
/datasets/git/builtin/push.c:649:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (tags)
                 ^
                  {
/datasets/git/builtin/push.c:659:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (repo)
                         ^
                          {
/datasets/git/builtin/push.c:671:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (remote->mirror)
                           ^
                            {
/datasets/git/builtin/push.c:672:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags |= (TRANSPORT_PUSH_MIRROR|TRANSPORT_PUSH_FORCE);
                ^~~~~
/datasets/git/builtin/push.c:672:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags |= (TRANSPORT_PUSH_MIRROR|TRANSPORT_PUSH_FORCE);
                          ^
/datasets/git/./transport.h:134:33: note: expanded from macro 'TRANSPORT_PUSH_MIRROR'
#define TRANSPORT_PUSH_MIRROR                   (1<<3)
                                                ^~~~~~
/datasets/git/builtin/push.c:672:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags |= (TRANSPORT_PUSH_MIRROR|TRANSPORT_PUSH_FORCE);
                                                ^
/datasets/git/./transport.h:132:33: note: expanded from macro 'TRANSPORT_PUSH_FORCE'
#define TRANSPORT_PUSH_FORCE                    (1<<1)
                                                 ^
/datasets/git/builtin/push.c:674:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & TRANSPORT_PUSH_ALL) {
            ^~~~~
/datasets/git/builtin/push.c:674:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & TRANSPORT_PUSH_ALL) {
                    ^
/datasets/git/./transport.h:131:31: note: expanded from macro 'TRANSPORT_PUSH_ALL'
#define TRANSPORT_PUSH_ALL                      (1<<0)
                                                 ^
/datasets/git/builtin/push.c:675:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (tags)
                         ^
                          {
/datasets/git/builtin/push.c:677:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (argc >= 2)
                              ^
                               {
/datasets/git/builtin/push.c:680:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & TRANSPORT_PUSH_MIRROR) {
            ^~~~~
/datasets/git/builtin/push.c:680:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & TRANSPORT_PUSH_MIRROR) {
                    ^
/datasets/git/./transport.h:134:34: note: expanded from macro 'TRANSPORT_PUSH_MIRROR'
#define TRANSPORT_PUSH_MIRROR                   (1<<3)
                                                 ^
/datasets/git/builtin/push.c:681:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (tags)
                         ^
                          {
/datasets/git/builtin/push.c:683:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (argc >= 2)
                              ^
                               {
/datasets/git/builtin/push.c:686:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((flags & TRANSPORT_PUSH_ALL) && (flags & TRANSPORT_PUSH_MIRROR))
             ^~~~~
/datasets/git/builtin/push.c:686:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((flags & TRANSPORT_PUSH_ALL) && (flags & TRANSPORT_PUSH_MIRROR))
                     ^
/datasets/git/./transport.h:131:31: note: expanded from macro 'TRANSPORT_PUSH_ALL'
#define TRANSPORT_PUSH_ALL                      (1<<0)
                                                 ^
/datasets/git/builtin/push.c:686:39: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((flags & TRANSPORT_PUSH_ALL) && (flags & TRANSPORT_PUSH_MIRROR))
                                             ^~~~~
/datasets/git/builtin/push.c:686:47: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((flags & TRANSPORT_PUSH_ALL) && (flags & TRANSPORT_PUSH_MIRROR))
                                                     ^
/datasets/git/./transport.h:134:34: note: expanded from macro 'TRANSPORT_PUSH_MIRROR'
#define TRANSPORT_PUSH_MIRROR                   (1<<3)
                                                 ^
/datasets/git/builtin/push.c:686:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((flags & TRANSPORT_PUSH_ALL) && (flags & TRANSPORT_PUSH_MIRROR))
                                                                            ^
                                                                             {
/datasets/git/builtin/push.c:689:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!is_empty_cas(&cas) && (flags & TRANSPORT_PUSH_FORCE_IF_INCLUDES))
                                    ^~~~~
/datasets/git/builtin/push.c:689:38: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!is_empty_cas(&cas) && (flags & TRANSPORT_PUSH_FORCE_IF_INCLUDES))
                                            ^
/datasets/git/./transport.h:147:43: note: expanded from macro 'TRANSPORT_PUSH_FORCE_IF_INCLUDES'
#define TRANSPORT_PUSH_FORCE_IF_INCLUDES        (1<<16)
                                                 ^
/datasets/git/builtin/push.c:689:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_empty_cas(&cas) && (flags & TRANSPORT_PUSH_FORCE_IF_INCLUDES))
                                                                              ^
                                                                               {
/datasets/git/builtin/push.c:692:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(item, push_options)
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/push.c:692:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(item, push_options)
                                  ^
/datasets/git/builtin/push.c:693:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strchr(item->string, '\n'))
                                               ^
                                                {
/datasets/git/builtin/push.c:699:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (rc == -1)
                     ^
                      {
/datasets/git/builtin/push.c:701:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/range-diff.c:3:1: warning: #includes are not sorted properly [llvm-include-order]
#include "parse-options.h"
^        ~~~~~~~~~~~~~~~~~
         "config.h"
/datasets/git/builtin/range-diff.c:15:5: warning: function 'cmd_range_diff' has cognitive complexity of 39 (threshold 25) [readability-function-cognitive-complexity]
int cmd_range_diff(int argc, const char **argv, const char *prefix)
    ^
/datasets/git/builtin/range-diff.c:57:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!simple_color)
        ^
/datasets/git/builtin/range-diff.c:60:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < argc; i++)
        ^
/datasets/git/builtin/range-diff.c:61:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(argv[i], "--")) {
                ^
/datasets/git/builtin/range-diff.c:66:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (dash_dash == 3 ||
        ^
/datasets/git/builtin/range-diff.c:66:21: note: +1
        if (dash_dash == 3 ||
                           ^
/datasets/git/builtin/range-diff.c:69:42: note: +1
             !get_oid_committish(argv[1], &oid) &&
                                                ^
/datasets/git/builtin/range-diff.c:71:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (dash_dash < 0)
                ^
/datasets/git/builtin/range-diff.c:73:8: note: +1, nesting level increased to 2
                else if (get_oid_committish(argv[0], &oid))
                     ^
/datasets/git/builtin/range-diff.c:77:8: note: +1, nesting level increased to 2
                else if (get_oid_committish(argv[1], &oid))
                     ^
/datasets/git/builtin/range-diff.c:81:8: note: +1, nesting level increased to 2
                else if (get_oid_committish(argv[2], &oid))
                     ^
/datasets/git/builtin/range-diff.c:90:24: note: +2, including nesting penalty of 1, nesting level increased to 2
                             (dash_dash < 0 ? 3 : dash_dash));
                                            ^
/datasets/git/builtin/range-diff.c:91:9: note: +1, nesting level increased to 1
        } else if (dash_dash == 2 ||
               ^
/datasets/git/builtin/range-diff.c:91:28: note: +1
        } else if (dash_dash == 2 ||
                                  ^
/datasets/git/builtin/range-diff.c:93:36: note: +1
                    is_range_diff_range(argv[0]) &&
                                                 ^
/datasets/git/builtin/range-diff.c:95:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (dash_dash < 0)
                ^
/datasets/git/builtin/range-diff.c:97:8: note: +1, nesting level increased to 2
                else if (!is_range_diff_range(argv[0]))
                     ^
/datasets/git/builtin/range-diff.c:101:8: note: +1, nesting level increased to 2
                else if (!is_range_diff_range(argv[1]))
                     ^
/datasets/git/builtin/range-diff.c:110:24: note: +2, including nesting penalty of 1, nesting level increased to 2
                             (dash_dash < 0 ? 2 : dash_dash));
                                            ^
/datasets/git/builtin/range-diff.c:111:9: note: +1, nesting level increased to 1
        } else if (dash_dash == 1 ||
               ^
/datasets/git/builtin/range-diff.c:111:28: note: +1
        } else if (dash_dash == 1 ||
                                  ^
/datasets/git/builtin/range-diff.c:112:33: note: +1
                   (dash_dash < 0 && argc > 0 &&
                                              ^
/datasets/git/builtin/range-diff.c:117:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (dash_dash < 0)
                ^
/datasets/git/builtin/range-diff.c:119:8: note: +1, nesting level increased to 2
                else if (!(three_dots = strstr(argv[0], "...")))
                     ^
/datasets/git/builtin/range-diff.c:124:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (three_dots == argv[0]) {
                ^
/datasets/git/builtin/range-diff.c:127:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/range-diff.c:132:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (three_dots[3])
                ^
/datasets/git/builtin/range-diff.c:134:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/range-diff.c:141:24: note: +2, including nesting penalty of 1, nesting level increased to 2
                             (dash_dash < 0 ? 1 : dash_dash));
                                            ^
/datasets/git/builtin/range-diff.c:142:4: note: +1, nesting level increased to 1
        } else
          ^
/datasets/git/builtin/range-diff.c:145:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        FREE_AND_NULL(options);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/range-diff.c:24:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int simple_color = -1, left_only = 0, right_only = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/range-diff.c:29:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "no-dual-color", &simple_color,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/range-diff.c:34:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "left-only", &left_only,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/range-diff.c:36:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "right-only", &right_only,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/range-diff.c:40:17: warning: variable 'options' is not initialized [cppcoreguidelines-init-variables]
        struct option *options;
                       ^
                               = NULL
/datasets/git/builtin/range-diff.c:41:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, dash_dash = -1, res = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/range-diff.c:41:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, dash_dash = -1, res = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/range-diff.c:41:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/range-diff.c:42:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct strbuf range1 = STRBUF_INIT, range2 = STRBUF_INIT;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/range-diff.c:57:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!simple_color)
                          ^
                           {
/datasets/git/builtin/range-diff.c:60:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < argc; i++)
        ^
/datasets/git/builtin/range-diff.c:60:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'argc' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < argc; i++)
                    ^
/datasets/git/builtin/range-diff.c:60:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < argc; i++)
                                  ^
                                   {
/datasets/git/builtin/range-diff.c:71:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (dash_dash < 0)
                                  ^
                                   {
/datasets/git/builtin/range-diff.c:73:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (get_oid_committish(argv[0], &oid))
                                                           ^
                                                            {
/datasets/git/builtin/range-diff.c:77:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (get_oid_committish(argv[1], &oid))
                                                           ^
                                                            {
/datasets/git/builtin/range-diff.c:81:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (get_oid_committish(argv[2], &oid))
                                                           ^
                                                            {
/datasets/git/builtin/range-diff.c:95:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (dash_dash < 0)
                                  ^
                                   {
/datasets/git/builtin/range-diff.c:97:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!is_range_diff_range(argv[0]))
                                                       ^
                                                        {
/datasets/git/builtin/range-diff.c:101:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!is_range_diff_range(argv[1]))
                                                       ^
                                                        {
/datasets/git/builtin/range-diff.c:113:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                    (three_dots = strstr(argv[0], "...")))) {
                     ^
/datasets/git/builtin/range-diff.c:113:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/builtin/range-diff.c:113:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/builtin/range-diff.c:114:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                const char *a, *b;
                ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/range-diff.c:114:15: warning: variable 'a' is not initialized [cppcoreguidelines-init-variables]
                const char *a, *b;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/range-diff.c:114:15: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/range-diff.c:114:19: warning: variable 'b' is not initialized [cppcoreguidelines-init-variables]
                const char *a, *b;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/range-diff.c:114:19: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/range-diff.c:115:7: warning: variable 'a_len' is not initialized [cppcoreguidelines-init-variables]
                int a_len;
                    ^
                          = 0
/datasets/git/builtin/range-diff.c:117:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (dash_dash < 0)
                                  ^
                                   {
/datasets/git/builtin/range-diff.c:119:14: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                else if (!(three_dots = strstr(argv[0], "...")))
                           ^
/datasets/git/builtin/range-diff.c:119:14: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/builtin/range-diff.c:119:14: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/builtin/range-diff.c:119:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!(three_dots = strstr(argv[0], "...")))
                                                                ^
                                                                 {
/datasets/git/builtin/range-diff.c:126:12: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        a_len = strlen(a);
                                ^
/datasets/git/builtin/range-diff.c:132:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (three_dots[3])
                                  ^
                                   {
/datasets/git/builtin/range-diff.c:134:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/range-diff.c:142:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/builtin/range-diff.c:145:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(options);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/read-tree.c:9:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "builtin.h"
/datasets/git/builtin/read-tree.c:23:12: warning: variable 'nr_trees' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int nr_trees;
           ^
/datasets/git/builtin/read-tree.c:24:12: warning: variable 'read_empty' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int read_empty;
           ^
/datasets/git/builtin/read-tree.c:25:21: warning: variable 'trees' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct tree *trees[MAX_UNPACK_TREES];
                    ^
/datasets/git/builtin/read-tree.c:29:15: warning: variable 'tree' is not initialized [cppcoreguidelines-init-variables]
        struct tree *tree;
                     ^
                          = NULL
/datasets/git/builtin/read-tree.c:31:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (nr_trees >= MAX_UNPACK_TREES)
                                         ^
                                          {
/datasets/git/builtin/read-tree.c:34:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!tree)
                  ^
                   {
/datasets/git/builtin/read-tree.c:47:49: warning: parameter 'opt' is unused [misc-unused-parameters]
static int index_output_cb(const struct option *opt, const char *arg,
                                                ^
/datasets/git/builtin/read-tree.c:50:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/read-tree.c:58:31: warning: variable 'opts' is not initialized [cppcoreguidelines-init-variables]
        struct unpack_trees_options *opts;
                                     ^
                                          = NULL
/datasets/git/builtin/read-tree.c:60:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/read-tree.c:64:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opts->update)
                          ^
                           {
/datasets/git/builtin/read-tree.c:66:6: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (strcmp(arg, ".gitignore"))
            ^
                                      != 0
/datasets/git/builtin/read-tree.c:66:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strcmp(arg, ".gitignore"))
                                      ^
                                       {
/datasets/git/builtin/read-tree.c:71:70: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static void debug_stage(const char *label, const struct cache_entry *ce,
                                                                     ^
/datasets/git/builtin/read-tree.c:72:33: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                        struct unpack_trees_options *o)
                                                     ^
/datasets/git/builtin/read-tree.c:75:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ce)
                ^
                 {
/datasets/git/builtin/read-tree.c:77:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (ce == o->df_conflict_entry)
                                            ^
                                             {
/datasets/git/builtin/read-tree.c:79:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/read-tree.c:81:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       ce->ce_mode, ce_stage(ce), ce->name,
                                    ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/builtin/read-tree.c:86:39: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                       struct unpack_trees_options *o)
                                                    ^
/datasets/git/builtin/read-tree.c:88:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/read-tree.c:88:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/read-tree.c:92:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 1; i <= o->merge_size; i++) {
        ^
/datasets/git/builtin/read-tree.c:93:12: warning: 24 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                char buf[24];
                         ^
/datasets/git/builtin/read-tree.c:100:75: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int git_read_tree_config(const char *var, const char *value, void *cb)
                                                                          ^
/datasets/git/builtin/read-tree.c:102:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(var, "submodule.recurse"))
                                              ^
                                               {
/datasets/git/builtin/read-tree.c:108:5: warning: function 'cmd_read_tree' has cognitive complexity of 50 (threshold 25) [readability-function-cognitive-complexity]
int cmd_read_tree(int argc, const char **argv, const char *cmd_prefix)
    ^
/datasets/git/builtin/read-tree.c:165:27: note: +1, including nesting penalty of 0, nesting level increased to 1
        prefix_set = opts.prefix ? 1 : 0;
                                 ^
/datasets/git/builtin/read-tree.c:166:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (1 < opts.merge + opts.reset + prefix_set)
        ^
/datasets/git/builtin/read-tree.c:170:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts.prefix && opts.prefix[0] == '/')
        ^
/datasets/git/builtin/read-tree.c:170:18: note: +1
        if (opts.prefix && opts.prefix[0] == '/')
                        ^
/datasets/git/builtin/read-tree.c:173:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts.reset)
        ^
/datasets/git/builtin/read-tree.c:190:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts.reset || opts.merge || opts.prefix) {
        ^
/datasets/git/builtin/read-tree.c:190:31: note: +1
        if (opts.reset || opts.merge || opts.prefix) {
                                     ^
/datasets/git/builtin/read-tree.c:191:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (repo_read_index_unmerged(the_repository) && (opts.prefix || opts.merge))
                ^
/datasets/git/builtin/read-tree.c:191:48: note: +1
                if (repo_read_index_unmerged(the_repository) && (opts.prefix || opts.merge))
                                                             ^
/datasets/git/builtin/read-tree.c:191:64: note: +1
                if (repo_read_index_unmerged(the_repository) && (opts.prefix || opts.merge))
                                                                             ^
/datasets/git/builtin/read-tree.c:197:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < argc; i++) {
        ^
/datasets/git/builtin/read-tree.c:200:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (get_oid(arg, &oid))
                ^
/datasets/git/builtin/read-tree.c:202:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (list_tree(&oid) < 0)
                ^
/datasets/git/builtin/read-tree.c:206:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!nr_trees && !read_empty && !opts.merge)
        ^
/datasets/git/builtin/read-tree.c:206:31: note: +1
        if (!nr_trees && !read_empty && !opts.merge)
                                     ^
/datasets/git/builtin/read-tree.c:208:7: note: +1, nesting level increased to 1
        else if (nr_trees > 0 && read_empty)
             ^
/datasets/git/builtin/read-tree.c:208:24: note: +1
        else if (nr_trees > 0 && read_empty)
                              ^
/datasets/git/builtin/read-tree.c:211:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (1 < opts.index_only + opts.update)
        ^
/datasets/git/builtin/read-tree.c:213:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((opts.update || opts.index_only) && !opts.merge)
        ^
/datasets/git/builtin/read-tree.c:213:39: note: +1
        if ((opts.update || opts.index_only) && !opts.merge)
                                             ^
/datasets/git/builtin/read-tree.c:213:19: note: +1
        if ((opts.update || opts.index_only) && !opts.merge)
                         ^
/datasets/git/builtin/read-tree.c:215:19: note: +2, including nesting penalty of 1, nesting level increased to 2
                    opts.update ? "-u" : "-i");
                                ^
/datasets/git/builtin/read-tree.c:216:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts.update && !opts.reset)
        ^
/datasets/git/builtin/read-tree.c:216:18: note: +1
        if (opts.update && !opts.reset)
                        ^
/datasets/git/builtin/read-tree.c:219:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts.merge && !opts.index_only)
        ^
/datasets/git/builtin/read-tree.c:219:17: note: +1
        if (opts.merge && !opts.index_only)
                       ^
/datasets/git/builtin/read-tree.c:222:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts.skip_sparse_checkout)
        ^
/datasets/git/builtin/read-tree.c:225:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts.merge) {
        ^
/datasets/git/builtin/read-tree.c:226:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                switch (stage - 1) {
                ^
/datasets/git/builtin/read-tree.c:231:26: note: +3, including nesting penalty of 2, nesting level increased to 3
                        opts.fn = opts.prefix ? bind_merge : oneway_merge;
                                              ^
/datasets/git/builtin/read-tree.c:243:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (stage - 1 >= 3)
                ^
/datasets/git/builtin/read-tree.c:245:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/read-tree.c:249:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts.debug_unpack)
        ^
/datasets/git/builtin/read-tree.c:253:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (nr_trees == 1 && !opts.prefix)
        ^
/datasets/git/builtin/read-tree.c:253:20: note: +1
        if (nr_trees == 1 && !opts.prefix)
                          ^
/datasets/git/builtin/read-tree.c:257:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < nr_trees; i++) {
        ^
/datasets/git/builtin/read-tree.c:262:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (unpack_trees(nr_trees, t, &opts))
        ^
/datasets/git/builtin/read-tree.c:265:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts.debug_unpack || opts.dry_run)
        ^
/datasets/git/builtin/read-tree.c:265:24: note: +1
        if (opts.debug_unpack || opts.dry_run)
                              ^
/datasets/git/builtin/read-tree.c:274:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (nr_trees == 1 && !opts.prefix)
        ^
/datasets/git/builtin/read-tree.c:274:20: note: +1
        if (nr_trees == 1 && !opts.prefix)
                          ^
/datasets/git/builtin/read-tree.c:279:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (write_locked_index(&the_index, &lock_file, COMMIT_LOCK))
        ^
/datasets/git/builtin/read-tree.c:110:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, stage = 0;
        ^~~~~~~~~~~~~~~~~
/datasets/git/builtin/read-tree.c:110:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, stage = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/read-tree.c:110:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/read-tree.c:112:19: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
        struct tree_desc t[MAX_UNPACK_TREES];
                         ^
/datasets/git/builtin/read-tree.c:120:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "empty", &read_empty,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/read-tree.c:122:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__VERBOSE(&opts.verbose_update, N_("be verbose")),
                ^
/datasets/git/./parse-options.h:359:31: note: expanded from macro 'OPT__VERBOSE'
#define OPT__VERBOSE(var, h)  OPT_COUNTUP('v', "verbose", (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/read-tree.c:124:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('m', NULL, &opts.merge,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/read-tree.c:126:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "trivial", &opts.trivial_merges_only,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/read-tree.c:128:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "aggressive", &opts.aggressive,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/read-tree.c:130:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "reset", &opts.reset,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/read-tree.c:135:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('u', NULL, &opts.update,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/read-tree.c:141:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('i', NULL, &opts.index_only,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/read-tree.c:143:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__DRY_RUN(&opts.dry_run, N_("don't update the index or the work tree")),
                ^
/datasets/git/./parse-options.h:366:31: note: expanded from macro 'OPT__DRY_RUN'
#define OPT__DRY_RUN(var, h)  OPT_BOOL('n', "dry-run", (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/read-tree.c:144:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "no-sparse-checkout", &opts.skip_sparse_checkout,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/read-tree.c:146:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "debug-unpack", &opts.debug_unpack,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/read-tree.c:151:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__QUIET(&opts.quiet, N_("suppress feedback messages")),
                ^
/datasets/git/./parse-options.h:360:31: note: expanded from macro 'OPT__QUIET'
#define OPT__QUIET(var, h)    OPT_COUNTUP('q', "quiet",   (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/read-tree.c:155:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&opts, 0, sizeof(opts));
        ^~~~~~
/datasets/git/builtin/read-tree.c:155:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&opts, 0, sizeof(opts));
        ^~~~~~
/datasets/git/builtin/read-tree.c:166:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (1 < opts.merge + opts.reset + prefix_set)
                                                     ^
                                                      {
/datasets/git/builtin/read-tree.c:170:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts.prefix && opts.prefix[0] == '/')
                                                 ^
                                                  {
/datasets/git/builtin/read-tree.c:173:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts.reset)
                       ^
                        {
/datasets/git/builtin/read-tree.c:191:79: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (repo_read_index_unmerged(the_repository) && (opts.prefix || opts.merge))
                                                                                            ^
                                                                                             {
/datasets/git/builtin/read-tree.c:193:11: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                stage = opts.merge = 1;
                        ^
/datasets/git/builtin/read-tree.c:197:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < argc; i++) {
        ^
/datasets/git/builtin/read-tree.c:197:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'argc' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < argc; i++) {
                    ^
/datasets/git/builtin/read-tree.c:200:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (get_oid(arg, &oid))
                                       ^
                                        {
/datasets/git/builtin/read-tree.c:202:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (list_tree(&oid) < 0)
                                        ^
                                         {
/datasets/git/builtin/read-tree.c:206:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!nr_trees && !read_empty && !opts.merge)
                                                    ^
                                                     {
/datasets/git/builtin/read-tree.c:208:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (nr_trees > 0 && read_empty)
                                            ^
                                             {
/datasets/git/builtin/read-tree.c:211:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (1 < opts.index_only + opts.update)
                                              ^
                                               {
/datasets/git/builtin/read-tree.c:213:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((opts.update || opts.index_only) && !opts.merge)
                                                            ^
                                                             {
/datasets/git/builtin/read-tree.c:216:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts.update && !opts.reset)
                                       ^
                                        {
/datasets/git/builtin/read-tree.c:219:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts.merge && !opts.index_only)
                                           ^
                                            {
/datasets/git/builtin/read-tree.c:222:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts.skip_sparse_checkout)
                                      ^
                                       {
/datasets/git/builtin/read-tree.c:243:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (stage - 1 >= 3)
                                   ^
                                    {
/datasets/git/builtin/read-tree.c:245:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/read-tree.c:249:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts.debug_unpack)
                              ^
                               {
/datasets/git/builtin/read-tree.c:253:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (nr_trees == 1 && !opts.prefix)
                                          ^
                                           {
/datasets/git/builtin/read-tree.c:257:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr_trees; i++) {
        ^
/datasets/git/builtin/read-tree.c:262:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unpack_trees(nr_trees, t, &opts))
                                             ^
                                              {
/datasets/git/builtin/read-tree.c:263:10: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                return 128;
                       ^
/datasets/git/builtin/read-tree.c:265:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts.debug_unpack || opts.dry_run)
                                              ^
                                               {
/datasets/git/builtin/read-tree.c:274:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (nr_trees == 1 && !opts.prefix)
                                          ^
                                           {
/datasets/git/builtin/read-tree.c:279:49: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (write_locked_index(&the_index, &lock_file, COMMIT_LOCK))
                                                       ^
/datasets/git/./refs/../cache.h:744:23: note: expanded from macro 'COMMIT_LOCK'
#define COMMIT_LOCK             (1 << 0)
                                 ^
/datasets/git/builtin/read-tree.c:279:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_locked_index(&the_index, &lock_file, COMMIT_LOCK))
                                                                    ^
                                                                     {
/datasets/git/builtin/rebase.c:9:1: warning: #includes are not sorted properly [llvm-include-order]
#include "run-command.h"
^        ~~~~~~~~~~~~~~~
         "branch.h"
/datasets/git/builtin/rebase.c:42:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(path_squash_onto, "rebase-merge/squash-onto")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/builtin/rebase.c:43:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(path_interactive, "rebase-merge/interactive")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/builtin/rebase.c:44:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(apply_dir, "rebase-apply")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/builtin/rebase.c:45:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(merge_dir, "rebase-merge")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/builtin/rebase.c:70:20: warning: variable 'action_names' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *action_names[] = {
                   ^
/datasets/git/builtin/rebase.c:80:8: warning: accessing fields in struct 'rebase_options' is inefficient due to padding; only needs 276 bytes but is using 288 bytes [altera-struct-pack-align]
struct rebase_options {
       ^
/datasets/git/builtin/rebase.c:80:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'rebase_options'
/datasets/git/builtin/rebase.c:80:8: warning: accessing fields in struct 'rebase_options' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct rebase_options {
       ^
/datasets/git/builtin/rebase.c:80:8: note: use "__attribute__((aligned(128)))" to align struct 'rebase_options' to 128 bytes
/datasets/git/builtin/rebase.c:99:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                REBASE_NO_QUIET = 1<<0,
                                  ^
/datasets/git/builtin/rebase.c:100:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                REBASE_VERBOSE = 1<<1,
                                 ^
/datasets/git/builtin/rebase.c:101:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                REBASE_DIFFSTAT = 1<<2,
                                  ^
/datasets/git/builtin/rebase.c:102:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                REBASE_FORCE = 1<<3,
                               ^
/datasets/git/builtin/rebase.c:103:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                REBASE_INTERACTIVE_EXPLICIT = 1<<4,
                                              ^
/datasets/git/builtin/rebase.c:147:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        replay.allow_ff = !(opts->flags & REBASE_FORCE);
                            ^             ~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:148:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->allow_rerere_autoupdate)
                                          ^
                                           {
/datasets/git/builtin/rebase.c:154:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        replay.quiet = !(opts->flags & REBASE_NO_QUIET);
                         ^             ~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:155:19: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        replay.verbose = opts->flags & REBASE_VERBOSE;
                         ^
/datasets/git/builtin/rebase.c:155:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        replay.verbose = opts->flags & REBASE_VERBOSE;
                         ^             ~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:162:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->strategy)
                           ^
                            {
/datasets/git/builtin/rebase.c:169:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->strategy_opts)
                                ^
                                 {
/datasets/git/builtin/rebase.c:183:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct todo_list todo_list = TODO_LIST_INIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:187:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strbuf_read_file(&todo_list.buf, todo_file, 0) < 0)
                                                               ^
                                                                {
/datasets/git/builtin/rebase.c:193:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                            NULL, NULL, -1, flags & ~(TODO_LIST_SHORTEN_IDS)))
                                                                      ^
/datasets/git/./sequencer.h:164:32: note: expanded from macro 'TODO_LIST_SHORTEN_IDS'
#define TODO_LIST_SHORTEN_IDS (1U << 1)
                               ^     ~
/datasets/git/builtin/rebase.c:193:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                            NULL, NULL, -1, flags & ~(TODO_LIST_SHORTEN_IDS)))
                                                                                              ^
                                                                                               {
/datasets/git/builtin/rebase.c:203:40: warning: 2 adjacent parameters of 'get_revision_ranges' of similar type ('char **') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                               struct object_id *orig_head, char **revisions,
                                                            ^~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:203:47: note: the first parameter in the range is 'revisions'
                               struct object_id *orig_head, char **revisions,
                                                                   ^~~~~~~~~
/datasets/git/builtin/rebase.c:204:18: note: the last parameter in the range is 'shortrevisions'
                               char **shortrevisions)
                                      ^~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:207:14: warning: variable 'shorthead' is not initialized [cppcoreguidelines-init-variables]
        const char *shorthead;
                    ^
                              = NULL
/datasets/git/builtin/rebase.c:215:15: warning: variable 'shortrev' is not initialized [cppcoreguidelines-init-variables]
                const char *shortrev;
                            ^
                                     = NULL
/datasets/git/builtin/rebase.c:221:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/builtin/rebase.c:231:8: warning: variable 'interactive' is not initialized [cppcoreguidelines-init-variables]
        FILE *interactive;
              ^
                          = NULL
/datasets/git/builtin/rebase.c:233:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_directory(merge_dir()) && mkdir_in_gitdir(merge_dir()))
                                                                       ^
                                                                        {
/datasets/git/builtin/rebase.c:239:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!interactive)
                         ^
                          {
/datasets/git/builtin/rebase.c:241:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(interactive);
        ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:241:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/rebase.c:259:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/builtin/rebase.c:260:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *revisions = NULL, *shortrevisions = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:267:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                &revisions, &shortrevisions))
                                                             ^
                                                              {
/datasets/git/builtin/rebase.c:279:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opts->upstream && opts->squash_onto)
                                                 ^
                                                  {
/datasets/git/builtin/rebase.c:284:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->restrict_revision)
                                    ^
                                     {
/datasets/git/builtin/rebase.c:289:9: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                    make_script_args.nr, make_script_args.v,
                                    ^
/datasets/git/builtin/rebase.c:292:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/builtin/rebase.c:297:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                &todo_list))
                                                            ^
                                                             {
/datasets/git/builtin/rebase.c:319:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int abbreviate_commands = 0, ret = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:323:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        flags |= opts->keep_empty ? TODO_LIST_KEEP_EMPTY : 0;
                                    ^
/datasets/git/./sequencer.h:163:31: note: expanded from macro 'TODO_LIST_KEEP_EMPTY'
#define TODO_LIST_KEEP_EMPTY (1U << 0)
                              ^     ~
/datasets/git/builtin/rebase.c:324:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        flags |= abbreviate_commands ? TODO_LIST_ABBREVIATE_CMDS : 0;
                                       ^
/datasets/git/./sequencer.h:165:36: note: expanded from macro 'TODO_LIST_ABBREVIATE_CMDS'
#define TODO_LIST_ABBREVIATE_CMDS (1U << 2)
                                   ^     ~
/datasets/git/builtin/rebase.c:325:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        flags |= opts->rebase_merges ? TODO_LIST_REBASE_MERGES : 0;
                                       ^
/datasets/git/./sequencer.h:166:34: note: expanded from macro 'TODO_LIST_REBASE_MERGES'
#define TODO_LIST_REBASE_MERGES (1U << 3)
                                 ^     ~
/datasets/git/builtin/rebase.c:326:38: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        flags |= opts->rebase_cousins > 0 ? TODO_LIST_REBASE_COUSINS : 0;
                                            ^
/datasets/git/./sequencer.h:172:35: note: expanded from macro 'TODO_LIST_REBASE_COUSINS'
#define TODO_LIST_REBASE_COUSINS (1U << 4)
                                  ^     ~
/datasets/git/builtin/rebase.c:327:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        flags |= opts->root_with_onto ? TODO_LIST_ROOT_WITH_ONTO : 0;
                                        ^
/datasets/git/./sequencer.h:178:35: note: expanded from macro 'TODO_LIST_ROOT_WITH_ONTO'
#define TODO_LIST_ROOT_WITH_ONTO (1U << 6)
                                  ^     ~
/datasets/git/builtin/rebase.c:328:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        flags |= opts->reapply_cherry_picks ? TODO_LIST_REAPPLY_CHERRY_PICKS : 0;
                                              ^
/datasets/git/./sequencer.h:179:41: note: expanded from macro 'TODO_LIST_REAPPLY_CHERRY_PICKS'
#define TODO_LIST_REAPPLY_CHERRY_PICKS (1U << 7)
                                        ^     ~
/datasets/git/builtin/rebase.c:329:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        flags |= opts->flags & REBASE_NO_QUIET ? TODO_LIST_WARN_SKIPPED_CHERRY_PICKS : 0;
                 ^             ~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:329:43: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        flags |= opts->flags & REBASE_NO_QUIET ? TODO_LIST_WARN_SKIPPED_CHERRY_PICKS : 0;
                                                 ^
/datasets/git/./sequencer.h:180:46: note: expanded from macro 'TODO_LIST_WARN_SKIPPED_CHERRY_PICKS'
#define TODO_LIST_WARN_SKIPPED_CHERRY_PICKS (1U << 8)
                                             ^     ~
/datasets/git/builtin/rebase.c:333:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!opts->onto && !opts->upstream)
                                                   ^
                                                    {
/datasets/git/builtin/rebase.c:376:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_ARG(arg);
        ^
/datasets/git/./parse-options.h:288:29: note: expanded from macro 'BUG_ON_OPT_ARG'
#define BUG_ON_OPT_ARG(arg) do { \
                            ^
/datasets/git/builtin/rebase.c:420:12: warning: function 'read_basic_state' has cognitive complexity of 31 (threshold 25) [readability-function-cognitive-complexity]
static int read_basic_state(struct rebase_options *opts)
           ^
/datasets/git/builtin/rebase.c:426:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!read_oneliner(&head_name, state_dir_path("head-name", opts),
        ^
/datasets/git/builtin/rebase.c:427:35: note: +1
                           READ_ONELINER_WARN_MISSING) ||
                                                       ^
/datasets/git/builtin/rebase.c:431:56: note: +1, including nesting penalty of 0, nesting level increased to 1
        opts->head_name = starts_with(head_name.buf, "refs/") ?
                                                              ^
/datasets/git/builtin/rebase.c:434:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (get_oid_hex(buf.buf, &oid) ||
        ^
/datasets/git/builtin/rebase.c:434:33: note: +1
        if (get_oid_hex(buf.buf, &oid) ||
                                       ^
/datasets/git/builtin/rebase.c:444:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (file_exists(state_dir_path("orig-head", opts))) {
        ^
/datasets/git/builtin/rebase.c:445:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!read_oneliner(&buf, state_dir_path("orig-head", opts),
                ^
/datasets/git/builtin/rebase.c:448:9: note: +1, nesting level increased to 1
        } else if (!read_oneliner(&buf, state_dir_path("head", opts),
               ^
/datasets/git/builtin/rebase.c:451:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (get_oid_hex(buf.buf, &oid) ||
        ^
/datasets/git/builtin/rebase.c:451:33: note: +1
        if (get_oid_hex(buf.buf, &oid) ||
                                       ^
/datasets/git/builtin/rebase.c:455:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (file_exists(state_dir_path("quiet", opts)))
        ^
/datasets/git/builtin/rebase.c:457:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/builtin/rebase.c:460:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (file_exists(state_dir_path("verbose", opts)))
        ^
/datasets/git/builtin/rebase.c:463:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (file_exists(state_dir_path("signoff", opts))) {
        ^
/datasets/git/builtin/rebase.c:468:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (file_exists(state_dir_path("allow_rerere_autoupdate", opts))) {
        ^
/datasets/git/builtin/rebase.c:470:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!read_oneliner(&buf, state_dir_path("allow_rerere_autoupdate", opts),
                ^
/datasets/git/builtin/rebase.c:473:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(buf.buf, "--rerere-autoupdate"))
                ^
/datasets/git/builtin/rebase.c:475:8: note: +1, nesting level increased to 2
                else if (!strcmp(buf.buf, "--no-rerere-autoupdate"))
                     ^
/datasets/git/builtin/rebase.c:477:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/rebase.c:482:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (file_exists(state_dir_path("gpg_sign_opt", opts))) {
        ^
/datasets/git/builtin/rebase.c:484:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!read_oneliner(&buf, state_dir_path("gpg_sign_opt", opts),
                ^
/datasets/git/builtin/rebase.c:491:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (file_exists(state_dir_path("strategy", opts))) {
        ^
/datasets/git/builtin/rebase.c:493:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!read_oneliner(&buf, state_dir_path("strategy", opts),
                ^
/datasets/git/builtin/rebase.c:500:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (file_exists(state_dir_path("strategy_opts", opts))) {
        ^
/datasets/git/builtin/rebase.c:502:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!read_oneliner(&buf, state_dir_path("strategy_opts", opts),
                ^
/datasets/git/builtin/rebase.c:427:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                           READ_ONELINER_WARN_MISSING) ||
                           ^
/datasets/git/./sequencer.h:234:37: note: expanded from macro 'READ_ONELINER_WARN_MISSING'
#define READ_ONELINER_WARN_MISSING (1 << 1)
                                    ^
/datasets/git/builtin/rebase.c:429:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                           READ_ONELINER_WARN_MISSING))
                           ^
/datasets/git/./sequencer.h:234:37: note: expanded from macro 'READ_ONELINER_WARN_MISSING'
#define READ_ONELINER_WARN_MISSING (1 << 1)
                                    ^
/datasets/git/builtin/rebase.c:429:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                           READ_ONELINER_WARN_MISSING))
                                                       ^
                                                        {
/datasets/git/builtin/rebase.c:435:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
            !(opts->onto = lookup_commit_object(the_repository, &oid)))
              ^
/datasets/git/builtin/rebase.c:435:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/builtin/rebase.c:435:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/builtin/rebase.c:435:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !(opts->onto = lookup_commit_object(the_repository, &oid)))
                                                                       ^
                                                                        {
/datasets/git/builtin/rebase.c:446:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                   READ_ONELINER_WARN_MISSING))
                                   ^
/datasets/git/./sequencer.h:234:37: note: expanded from macro 'READ_ONELINER_WARN_MISSING'
#define READ_ONELINER_WARN_MISSING (1 << 1)
                                    ^
/datasets/git/builtin/rebase.c:446:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                   READ_ONELINER_WARN_MISSING))
                                                               ^
                                                                {
/datasets/git/builtin/rebase.c:449:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                  READ_ONELINER_WARN_MISSING))
                                  ^
/datasets/git/./sequencer.h:234:37: note: expanded from macro 'READ_ONELINER_WARN_MISSING'
#define READ_ONELINER_WARN_MISSING (1 << 1)
                                    ^
/datasets/git/builtin/rebase.c:449:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                  READ_ONELINER_WARN_MISSING))
                                                              ^
                                                               {
/datasets/git/builtin/rebase.c:452:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
            !(opts->orig_head = lookup_commit_object(the_repository, &oid)))
              ^
/datasets/git/builtin/rebase.c:452:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/builtin/rebase.c:452:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/builtin/rebase.c:452:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !(opts->orig_head = lookup_commit_object(the_repository, &oid)))
                                                                            ^
                                                                             {
/datasets/git/builtin/rebase.c:455:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (file_exists(state_dir_path("quiet", opts)))
                                                       ^
                                                        {
/datasets/git/builtin/rebase.c:456:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                opts->flags &= ~REBASE_NO_QUIET;
                ^              ~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:456:18: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                opts->flags &= ~REBASE_NO_QUIET;
                               ^~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:457:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/rebase.c:458:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                opts->flags |= REBASE_NO_QUIET;
                ^              ~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:460:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (file_exists(state_dir_path("verbose", opts)))
                                                         ^
                                                          {
/datasets/git/builtin/rebase.c:461:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                opts->flags |= REBASE_VERBOSE;
                ^              ~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:465:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                opts->flags |= REBASE_FORCE;
                ^              ~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:471:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                   READ_ONELINER_WARN_MISSING))
                                   ^
/datasets/git/./sequencer.h:234:37: note: expanded from macro 'READ_ONELINER_WARN_MISSING'
#define READ_ONELINER_WARN_MISSING (1 << 1)
                                    ^
/datasets/git/builtin/rebase.c:471:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                   READ_ONELINER_WARN_MISSING))
                                                               ^
                                                                {
/datasets/git/builtin/rebase.c:473:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(buf.buf, "--rerere-autoupdate"))
                                                            ^
                                                             {
/datasets/git/builtin/rebase.c:475:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(buf.buf, "--no-rerere-autoupdate"))
                                                                    ^
                                                                     {
/datasets/git/builtin/rebase.c:477:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/rebase.c:485:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                   READ_ONELINER_WARN_MISSING))
                                   ^
/datasets/git/./sequencer.h:234:37: note: expanded from macro 'READ_ONELINER_WARN_MISSING'
#define READ_ONELINER_WARN_MISSING (1 << 1)
                                    ^
/datasets/git/builtin/rebase.c:485:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                   READ_ONELINER_WARN_MISSING))
                                                               ^
                                                                {
/datasets/git/builtin/rebase.c:494:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                   READ_ONELINER_WARN_MISSING))
                                   ^
/datasets/git/./sequencer.h:234:37: note: expanded from macro 'READ_ONELINER_WARN_MISSING'
#define READ_ONELINER_WARN_MISSING (1 << 1)
                                    ^
/datasets/git/builtin/rebase.c:494:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                   READ_ONELINER_WARN_MISSING))
                                                               ^
                                                                {
/datasets/git/builtin/rebase.c:503:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                   READ_ONELINER_WARN_MISSING))
                                   ^
/datasets/git/./sequencer.h:234:37: note: expanded from macro 'READ_ONELINER_WARN_MISSING'
#define READ_ONELINER_WARN_MISSING (1 << 1)
                                    ^
/datasets/git/builtin/rebase.c:503:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                   READ_ONELINER_WARN_MISSING))
                                                               ^
                                                                {
/datasets/git/builtin/rebase.c:522:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(opts->flags & REBASE_NO_QUIET))
              ^             ~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:522:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(opts->flags & REBASE_NO_QUIET))
                                             ^
                                              {
/datasets/git/builtin/rebase.c:524:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (opts->flags & REBASE_VERBOSE)
            ^             ~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:524:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->flags & REBASE_VERBOSE)
                                         ^
                                          {
/datasets/git/builtin/rebase.c:526:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->strategy)
                           ^
                            {
/datasets/git/builtin/rebase.c:529:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->strategy_opts)
                                ^
                                 {
/datasets/git/builtin/rebase.c:532:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->allow_rerere_autoupdate > 0)
                                              ^
                                               {
/datasets/git/builtin/rebase.c:537:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->gpg_sign_opt)
                               ^
                                {
/datasets/git/builtin/rebase.c:540:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->signoff)
                          ^
                           {
/datasets/git/builtin/rebase.c:551:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        delete_ref(NULL, "REBASE_HEAD", NULL, REF_NO_DEREF);
                                              ^
/datasets/git/./refs.h:631:23: note: expanded from macro 'REF_NO_DEREF'
#define REF_NO_DEREF (1 << 0)
                      ^
/datasets/git/builtin/rebase.c:558:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        run_auto_maintenance(!(opts->flags & (REBASE_NO_QUIET|REBASE_VERBOSE)));
                               ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:558:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        run_auto_maintenance(!(opts->flags & (REBASE_NO_QUIET|REBASE_VERBOSE)));
                                              ^~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:566:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (remove_dir_recursively(&dir, 0))
                                                    ^
                                                     {
/datasets/git/builtin/rebase.c:577:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct strbuf branch_reflog = STRBUF_INIT, head_reflog = STRBUF_INIT;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:579:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/builtin/rebase.c:581:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opts->head_name)
                             ^
                              {
/datasets/git/builtin/rebase.c:584:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opts->onto)
                        ^
                         {
/datasets/git/builtin/rebase.c:593:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ropts.flags = RESET_HEAD_REFS_ONLY;
                      ^
/datasets/git/./reset.h:16:31: note: expanded from macro 'RESET_HEAD_REFS_ONLY'
#define RESET_HEAD_REFS_ONLY (1<<3)
                              ^
/datasets/git/builtin/rebase.c:603:20: warning: variable 'resolvemsg' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *resolvemsg =
                   ^
/datasets/git/builtin/rebase.c:612:23: warning: variable name 'am' is too short, expected at least 3 characters [readability-identifier-length]
        struct child_process am = CHILD_PROCESS_INIT;
                             ^
/datasets/git/builtin/rebase.c:615:6: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int status;
            ^
                   = 0
/datasets/git/builtin/rebase.c:616:8: warning: variable 'rebased_patches' is not initialized [cppcoreguidelines-init-variables]
        char *rebased_patches;
              ^
                              = NULL
/datasets/git/builtin/rebase.c:625:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opts->gpg_sign_opt)
                                       ^
                                        {
/datasets/git/builtin/rebase.c:628:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (status)
                           ^
                            {
/datasets/git/builtin/rebase.c:637:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (status)
                           ^
                            {
/datasets/git/builtin/rebase.c:656:33: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
                                O_WRONLY | O_CREAT | O_TRUNC, 0666);
                                                            ^
                                                             | O_CLOEXEC
/datasets/git/builtin/rebase.c:656:35: warning: 0666 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                O_WRONLY | O_CREAT | O_TRUNC, 0666);
                                                              ^
/datasets/git/builtin/rebase.c:671:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->git_format_patch_opt.len)
                                           ^
                                            {
/datasets/git/builtin/rebase.c:675:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->restrict_revision)
                                    ^
                                     {
/datasets/git/builtin/rebase.c:702:40: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
        am.in = open(rebased_patches, O_RDONLY);
                                              ^
                                               | O_CLOEXEC
/datasets/git/builtin/rebase.c:715:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->allow_rerere_autoupdate == RERERE_AUTOUPDATE)
                                                               ^
                                                                {
/datasets/git/builtin/rebase.c:717:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (opts->allow_rerere_autoupdate == RERERE_NOAUTOUPDATE)
                                                                      ^
                                                                       {
/datasets/git/builtin/rebase.c:719:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->gpg_sign_opt)
                               ^
                                {
/datasets/git/builtin/rebase.c:729:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_directory(opts->state_dir))
                                          ^
                                           {
/datasets/git/builtin/rebase.c:737:6: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int status;
            ^
                   = 0
/datasets/git/builtin/rebase.c:741:3: warning: function is not thread safe [concurrency-mt-unsafe]
                setenv("GIT_CHERRY_PICK_HELP", resolvemsg, 1);
                ^
/datasets/git/builtin/rebase.c:742:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(opts->flags & REBASE_INTERACTIVE_EXPLICIT)) {
                      ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:743:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        setenv("GIT_SEQUENCE_EDITOR", ":", 1);
                        ^
/datasets/git/builtin/rebase.c:754:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else if (opts->type == REBASE_APPLY)
                                              ^
                                               {
/datasets/git/builtin/rebase.c:756:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/rebase.c:759:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->dont_finish_rebase)
                                     ^
                                      {
/datasets/git/builtin/rebase.c:760:3: warning: repeated branch in conditional chain [bugprone-branch-clone]
                ; /* do nothing */
                ^
/datasets/git/builtin/rebase.c:760:4: note: end of the original
                ; /* do nothing */
                 ^
/datasets/git/builtin/rebase.c:762:3: note: clone 1 starts here
                ; /* merge backend cleans up after itself */
                ^
/datasets/git/builtin/rebase.c:761:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (opts->type == REBASE_MERGE)
                                            ^
                                             {
/datasets/git/builtin/rebase.c:764:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!file_exists(state_dir_path("stopped-sha", opts)))
                                                                      ^
                                                                       {
/datasets/git/builtin/rebase.c:784:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (git_config_bool(var, value))
                                                ^
                                                 {
/datasets/git/builtin/rebase.c:785:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        opts->flags |= REBASE_DIFFSTAT;
                        ^              ~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:786:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/rebase.c:787:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        opts->flags &= ~REBASE_DIFFSTAT;
                        ^              ~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:787:19: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                        opts->flags &= ~REBASE_DIFFSTAT;
                                       ^~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:840:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ropts.flags = RESET_HEAD_RUN_POST_CHECKOUT_HOOK;
                      ^
/datasets/git/./reset.h:14:44: note: expanded from macro 'RESET_HEAD_RUN_POST_CHECKOUT_HOOK'
#define RESET_HEAD_RUN_POST_CHECKOUT_HOOK (1<<2)
                                           ^
/datasets/git/builtin/rebase.c:841:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ropts.branch)
                          ^
                           {
/datasets/git/builtin/rebase.c:842:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ropts.flags |=  RESET_HEAD_DETACH;
                ^
/datasets/git/builtin/rebase.c:842:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ropts.flags |=  RESET_HEAD_DETACH;
                                ^
/datasets/git/./reset.h:10:28: note: expanded from macro 'RESET_HEAD_DETACH'
#define RESET_HEAD_DETACH (1<<0)
                           ^
/datasets/git/builtin/rebase.c:844:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (reset_head(the_repository, &ropts) < 0)
                                                   ^
                                                    {
/datasets/git/builtin/rebase.c:856:66: warning: parameter name 'to' is too short, expected at least 3 characters [readability-identifier-length]
static int is_linear_history(struct commit *from, struct commit *to)
                                                                 ^
/datasets/git/builtin/rebase.c:856:51: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
static int is_linear_history(struct commit *from, struct commit *to)
                                                  ^
/datasets/git/builtin/rebase.c:858:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (to && to != from) {
        ^
/datasets/git/builtin/rebase.c:858:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'to' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (to && to != from) {
               ^
/datasets/git/builtin/rebase.c:860:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!to->parents)
                                 ^
                                  {
/datasets/git/builtin/rebase.c:862:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (to->parents->next)
                                      ^
                                       {
/datasets/git/builtin/rebase.c:869:29: warning: 2 adjacent parameters of 'can_fast_forward' of similar type ('struct commit *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int can_fast_forward(struct commit *onto, struct commit *upstream,
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:869:44: note: the first parameter in the range is 'onto'
static int can_fast_forward(struct commit *onto, struct commit *upstream,
                                           ^~~~
/datasets/git/builtin/rebase.c:869:65: note: the last parameter in the range is 'upstream'
static int can_fast_forward(struct commit *onto, struct commit *upstream,
                                                                ^~~~~~~~
/datasets/git/builtin/rebase.c:870:8: warning: 2 adjacent parameters of 'can_fast_forward' of similar type ('struct commit *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                            struct commit *restrict_revision,
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:870:23: note: the first parameter in the range is 'restrict_revision'
                            struct commit *restrict_revision,
                                           ^~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:871:23: note: the last parameter in the range is 'head'
                            struct commit *head, struct object_id *branch_base)
                                           ^~~~
/datasets/git/builtin/rebase.c:876:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_null_oid(branch_base))
                                     ^
                                      {
/datasets/git/builtin/rebase.c:879:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!oideq(branch_base, &onto->object.oid))
                                                   ^
                                                    {
/datasets/git/builtin/rebase.c:882:79: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (restrict_revision && !oideq(&restrict_revision->object.oid, branch_base))
                                                                                     ^
                                                                                      {
/datasets/git/builtin/rebase.c:885:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!upstream)
                      ^
                       {
/datasets/git/builtin/rebase.c:889:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!merge_bases || merge_bases->next)
                                              ^
                                               {
/datasets/git/builtin/rebase.c:892:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!oideq(&onto->object.oid, &merge_bases->item->object.oid))
                                                                      ^
                                                                       {
/datasets/git/builtin/rebase.c:908:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!merge_bases || merge_bases->next)
                                              ^
                                               {
/datasets/git/builtin/rebase.c:910:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/rebase.c:920:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/rebase.c:921:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_ARG(arg);
        ^
/datasets/git/./parse-options.h:288:29: note: expanded from macro 'BUG_ON_OPT_ARG'
#define BUG_ON_OPT_ARG(arg) do { \
                            ^
/datasets/git/builtin/rebase.c:933:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/rebase.c:934:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_ARG(arg);
        ^
/datasets/git/./parse-options.h:288:29: note: expanded from macro 'BUG_ON_OPT_ARG'
#define BUG_ON_OPT_ARG(arg) do { \
                            ^
/datasets/git/builtin/rebase.c:936:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_merge(opts))
                            ^
                             {
/datasets/git/builtin/rebase.c:948:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/rebase.c:949:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_ARG(arg);
        ^
/datasets/git/./parse-options.h:288:29: note: expanded from macro 'BUG_ON_OPT_ARG'
#define BUG_ON_OPT_ARG(arg) do { \
                            ^
/datasets/git/builtin/rebase.c:952:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        opts->flags |= REBASE_INTERACTIVE_EXPLICIT;
        ^              ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:959:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcasecmp(value, "drop"))
                                       ^
                                        {
/datasets/git/builtin/rebase.c:961:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (!strcasecmp(value, "keep"))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:961:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcasecmp(value, "keep"))
                                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/rebase.c:963:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcasecmp(value, "ask"))
                                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/rebase.c:974:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/rebase.c:997:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!remote)
                            ^
                             {
/datasets/git/builtin/rebase.c:1007:2: warning: function is not thread safe [concurrency-mt-unsafe]
        exit(1);
        ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/rebase.c:1012:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strchr(cmd, '\n'))
                              ^
                               {
/datasets/git/builtin/rebase.c:1016:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!cmd[strspn(cmd, " \t\r\f\v")])
                                           ^
                                            {
/datasets/git/builtin/rebase.c:1022:5: warning: function 'cmd_rebase' has cognitive complexity of 271 (threshold 25) [readability-function-cognitive-complexity]
int cmd_rebase(int argc, const char **argv, const char *prefix)
    ^
/datasets/git/builtin/rebase.c:1160:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (argc == 2 && !strcmp(argv[1], "-h"))
        ^
/datasets/git/builtin/rebase.c:1160:16: note: +1
        if (argc == 2 && !strcmp(argv[1], "-h"))
                      ^
/datasets/git/builtin/rebase.c:1171:34: note: +1, including nesting penalty of 0, nesting level increased to 1
        gpg_sign = options.gpg_sign_opt ? "" : NULL;
                                        ^
/datasets/git/builtin/rebase.c:1172:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        FREE_AND_NULL(options.gpg_sign_opt);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/rebase.c:1176:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if(file_exists(buf.buf))
        ^
/datasets/git/builtin/rebase.c:1179:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (is_directory(apply_dir())) {
        ^
/datasets/git/builtin/rebase.c:1182:9: note: +1, nesting level increased to 1
        } else if (is_directory(merge_dir())) {
               ^
/datasets/git/builtin/rebase.c:1185:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!(options.action == ACTION_ABORT) && is_directory(buf.buf)) {
                ^
/datasets/git/builtin/rebase.c:1185:41: note: +1
                if (!(options.action == ACTION_ABORT) && is_directory(buf.buf)) {
                                                      ^
/datasets/git/builtin/rebase.c:1189:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/rebase.c:1193:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (file_exists(buf.buf))
                        ^
/datasets/git/builtin/rebase.c:1199:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (options.type != REBASE_UNSPECIFIED)
        ^
/datasets/git/builtin/rebase.c:1207:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (preserve_merges_selected)
        ^
/datasets/git/builtin/rebase.c:1212:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (options.action != ACTION_NONE && total_argc != 2) {
        ^
/datasets/git/builtin/rebase.c:1212:36: note: +1
        if (options.action != ACTION_NONE && total_argc != 2) {
                                          ^
/datasets/git/builtin/rebase.c:1217:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (argc > 2)
        ^
/datasets/git/builtin/rebase.c:1221:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (keep_base) {
        ^
/datasets/git/builtin/rebase.c:1222:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (options.onto_name)
                ^
/datasets/git/builtin/rebase.c:1224:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (options.root)
                ^
/datasets/git/builtin/rebase.c:1230:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (options.fork_point < 0)
                ^
/datasets/git/builtin/rebase.c:1237:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (options.reapply_cherry_picks < 0)
        ^
/datasets/git/builtin/rebase.c:1240:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (options.root && options.fork_point > 0)
        ^
/datasets/git/builtin/rebase.c:1240:19: note: +1
        if (options.root && options.fork_point > 0)
                         ^
/datasets/git/builtin/rebase.c:1243:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (options.action != ACTION_NONE && !in_progress)
        ^
/datasets/git/builtin/rebase.c:1243:36: note: +1
        if (options.action != ACTION_NONE && !in_progress)
                                          ^
/datasets/git/builtin/rebase.c:1246:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (options.action == ACTION_EDIT_TODO && !is_merge(&options))
        ^
/datasets/git/builtin/rebase.c:1246:41: note: +1
        if (options.action == ACTION_EDIT_TODO && !is_merge(&options))
                                               ^
/datasets/git/builtin/rebase.c:1250:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (trace2_is_enabled()) {
        ^
/datasets/git/builtin/rebase.c:1251:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (is_merge(&options))
                ^
/datasets/git/builtin/rebase.c:1253:8: note: +1, nesting level increased to 2
                else if (exec.nr)
                     ^
/datasets/git/builtin/rebase.c:1255:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/rebase.c:1261:33: note: +1, including nesting penalty of 0, nesting level increased to 1
                xstrdup(options.reflog_action ? options.reflog_action : "rebase");
                                              ^
/datasets/git/builtin/rebase.c:1263:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        switch (options.action) {
        ^
/datasets/git/builtin/rebase.c:1270:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (get_oid("HEAD", &head))
                ^
/datasets/git/builtin/rebase.c:1274:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (repo_read_index(the_repository) < 0)
                ^
/datasets/git/builtin/rebase.c:1278:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (0 <= fd)
                ^
/datasets/git/builtin/rebase.c:1282:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (has_unstaged_changes(the_repository, 1)) {
                ^
/datasets/git/builtin/rebase.c:1287:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (read_basic_state(&options))
                ^
/datasets/git/builtin/rebase.c:1289:3: note: +1
                goto run_rebase;
                ^
/datasets/git/builtin/rebase.c:1297:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (reset_head(the_repository, &ropts) < 0)
                ^
/datasets/git/builtin/rebase.c:1300:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (read_basic_state(&options))
                ^
/datasets/git/builtin/rebase.c:1302:3: note: +1
                goto run_rebase;
                ^
/datasets/git/builtin/rebase.c:1311:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (read_basic_state(&options))
                ^
/datasets/git/builtin/rebase.c:1316:26: note: +2, including nesting penalty of 1, nesting level increased to 2
                            options.head_name ? options.head_name
                                              ^
/datasets/git/builtin/rebase.c:1322:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (reset_head(the_repository, &ropts) < 0)
                ^
/datasets/git/builtin/rebase.c:1327:3: note: +1
                goto cleanup;
                ^
/datasets/git/builtin/rebase.c:1331:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (options.type == REBASE_MERGE) {
                ^
/datasets/git/builtin/rebase.c:1336:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/rebase.c:1340:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ret)
                        ^
/datasets/git/builtin/rebase.c:1344:3: note: +1
                goto cleanup;
                ^
/datasets/git/builtin/rebase.c:1348:3: note: +1
                goto run_rebase;
                ^
/datasets/git/builtin/rebase.c:1351:3: note: +1
                goto run_rebase;
                ^
/datasets/git/builtin/rebase.c:1359:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (in_progress) {
        ^
/datasets/git/builtin/rebase.c:1362:15: note: +2, including nesting penalty of 1, nesting level increased to 2
                        last_slash ? last_slash + 1 : options.state_dir;
                                   ^
/datasets/git/builtin/rebase.c:1378:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((options.flags & REBASE_INTERACTIVE_EXPLICIT) ||
        ^
/datasets/git/builtin/rebase.c:1380:20: note: +1
            (exec.nr > 0) ||
                          ^
/datasets/git/builtin/rebase.c:1384:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (options.committer_date_is_author_date || options.ignore_date)
        ^
/datasets/git/builtin/rebase.c:1384:44: note: +1
        if (options.committer_date_is_author_date || options.ignore_date)
                                                  ^
/datasets/git/builtin/rebase.c:1387:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < options.git_am_opts.nr; i++) {
        ^
/datasets/git/builtin/rebase.c:1389:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(option, "--whitespace=fix") ||
                ^
/datasets/git/builtin/rebase.c:1389:43: note: +1
                if (!strcmp(option, "--whitespace=fix") ||
                                                        ^
/datasets/git/builtin/rebase.c:1392:8: note: +1, nesting level increased to 2
                else if (skip_prefix(option, "-C", &p)) {
                     ^
/datasets/git/builtin/rebase.c:1393:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (*p)
                        ^
/datasets/git/builtin/rebase.c:1394:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!isdigit(*(p++)))
                                ^
/datasets/git/builtin/rebase.c:1397:10: note: +1, nesting level increased to 2
                } else if (skip_prefix(option, "--whitespace=", &p)) {
                       ^
/datasets/git/builtin/rebase.c:1398:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (*p && strcmp(p, "warn") && strcmp(p, "nowarn") &&
                        ^
/datasets/git/builtin/rebase.c:1399:27: note: +1
                            strcmp(p, "error") && strcmp(p, "error-all"))
                                               ^
/datasets/git/builtin/rebase.c:1404:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < exec.nr; i++)
        ^
/datasets/git/builtin/rebase.c:1405:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (check_exec_cmd(exec.items[i].string))
                ^
/datasets/git/builtin/rebase.c:1408:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!(options.flags & REBASE_NO_QUIET))
        ^
/datasets/git/builtin/rebase.c:1411:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (options.empty != EMPTY_UNSPECIFIED)
        ^
/datasets/git/builtin/rebase.c:1418:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (options.reapply_cherry_picks && !keep_base)
        ^
/datasets/git/builtin/rebase.c:1418:35: note: +1
        if (options.reapply_cherry_picks && !keep_base)
                                         ^
/datasets/git/builtin/rebase.c:1421:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (gpg_sign)
        ^
/datasets/git/builtin/rebase.c:1424:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (exec.nr) {
        ^
/datasets/git/builtin/rebase.c:1430:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < exec.nr; i++)
                ^
/datasets/git/builtin/rebase.c:1435:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (rebase_merges) {
        ^
/datasets/git/builtin/rebase.c:1436:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!*rebase_merges)
                ^
/datasets/git/builtin/rebase.c:1438:8: note: +1, nesting level increased to 2
                else if (!strcmp("rebase-cousins", rebase_merges))
                     ^
/datasets/git/builtin/rebase.c:1440:8: note: +1, nesting level increased to 2
                else if (strcmp("no-rebase-cousins", rebase_merges))
                     ^
/datasets/git/builtin/rebase.c:1446:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (options.type == REBASE_APPLY) {
        ^
/datasets/git/builtin/rebase.c:1447:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ignore_whitespace)
                ^
/datasets/git/builtin/rebase.c:1450:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (options.committer_date_is_author_date)
                ^
/datasets/git/builtin/rebase.c:1453:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (options.ignore_date)
                ^
/datasets/git/builtin/rebase.c:1455:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/rebase.c:1457:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ignore_whitespace) {
                ^
/datasets/git/builtin/rebase.c:1463:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (strategy_options.nr) {
        ^
/datasets/git/builtin/rebase.c:1466:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!options.strategy)
                ^
/datasets/git/builtin/rebase.c:1470:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < strategy_options.nr; i++)
                ^
/datasets/git/builtin/rebase.c:1476:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (options.strategy) {
        ^
/datasets/git/builtin/rebase.c:1478:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                switch (options.type) {
                ^
/datasets/git/builtin/rebase.c:1492:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (options.type == REBASE_MERGE)
        ^
/datasets/git/builtin/rebase.c:1495:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (options.root && !options.onto_name)
        ^
/datasets/git/builtin/rebase.c:1495:19: note: +1
        if (options.root && !options.onto_name)
                         ^
/datasets/git/builtin/rebase.c:1498:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (isatty(2) && options.flags & REBASE_NO_QUIET)
        ^
/datasets/git/builtin/rebase.c:1498:16: note: +1
        if (isatty(2) && options.flags & REBASE_NO_QUIET)
                      ^
/datasets/git/builtin/rebase.c:1501:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (options.git_am_opts.nr || options.type == REBASE_APPLY) {
        ^
/datasets/git/builtin/rebase.c:1501:29: note: +1
        if (options.git_am_opts.nr || options.type == REBASE_APPLY) {
                                   ^
/datasets/git/builtin/rebase.c:1503:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = options.git_am_opts.nr - 1; i >= 0; i--)
                ^
/datasets/git/builtin/rebase.c:1504:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (strcmp(options.git_am_opts.v[i], "-q"))
                        ^
/datasets/git/builtin/rebase.c:1507:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (i >= 0) {
                ^
/datasets/git/builtin/rebase.c:1508:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (is_merge(&options))
                        ^
/datasets/git/builtin/rebase.c:1511:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/builtin/rebase.c:1516:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (options.type == REBASE_UNSPECIFIED) {
        ^
/datasets/git/builtin/rebase.c:1517:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(options.default_backend, "merge"))
                ^
/datasets/git/builtin/rebase.c:1519:8: note: +1, nesting level increased to 2
                else if (!strcmp(options.default_backend, "apply"))
                     ^
/datasets/git/builtin/rebase.c:1521:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/rebase.c:1526:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (options.type == REBASE_MERGE &&
        ^
/datasets/git/builtin/rebase.c:1527:24: note: +1
            !options.strategy &&
                              ^
/datasets/git/builtin/rebase.c:1531:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        switch (options.type) {
        ^
/datasets/git/builtin/rebase.c:1542:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (options.empty == EMPTY_UNSPECIFIED) {
        ^
/datasets/git/builtin/rebase.c:1543:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (options.flags & REBASE_INTERACTIVE_EXPLICIT)
                ^
/datasets/git/builtin/rebase.c:1545:8: note: +1, nesting level increased to 2
                else if (exec.nr > 0)
                     ^
/datasets/git/builtin/rebase.c:1547:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/rebase.c:1550:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (reschedule_failed_exec > 0 && !is_merge(&options))
        ^
/datasets/git/builtin/rebase.c:1550:33: note: +1
        if (reschedule_failed_exec > 0 && !is_merge(&options))
                                       ^
/datasets/git/builtin/rebase.c:1553:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (reschedule_failed_exec >= 0)
        ^
/datasets/git/builtin/rebase.c:1556:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (options.signoff) {
        ^
/datasets/git/builtin/rebase.c:1561:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!options.root) {
        ^
/datasets/git/builtin/rebase.c:1562:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (argc < 1) {
                ^
/datasets/git/builtin/rebase.c:1568:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!options.upstream_name)
                        ^
/datasets/git/builtin/rebase.c:1570:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (options.fork_point < 0)
                        ^
/datasets/git/builtin/rebase.c:1572:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/rebase.c:1576:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!strcmp(options.upstream_name, "-"))
                        ^
/datasets/git/builtin/rebase.c:1581:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!options.upstream)
                ^
/datasets/git/builtin/rebase.c:1584:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/rebase.c:1585:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!options.onto_name) {
                ^
/datasets/git/builtin/rebase.c:1586:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (commit_tree("", 0, the_hash_algo->empty_tree, NULL,
                        ^
/datasets/git/builtin/rebase.c:1592:5: note: +1, nesting level increased to 2
                } else
                  ^
/datasets/git/builtin/rebase.c:1597:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (argc > 1)
                ^
/datasets/git/builtin/rebase.c:1610:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (argc == 1) {
        ^
/datasets/git/builtin/rebase.c:1619:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!read_ref(buf.buf, &branch_oid)) {
                ^
/datasets/git/builtin/rebase.c:1626:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/rebase.c:1631:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!options.orig_head)
                ^
/datasets/git/builtin/rebase.c:1633:9: note: +1, nesting level increased to 1
        } else if (argc == 0) {
               ^
/datasets/git/builtin/rebase.c:1638:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!options.head_name)
                ^
/datasets/git/builtin/rebase.c:1640:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (flags & REF_ISSYMREF) {
                ^
/datasets/git/builtin/rebase.c:1641:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!skip_prefix(options.head_name,
                        ^
/datasets/git/builtin/rebase.c:1645:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/rebase.c:1646:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        FREE_AND_NULL(options.head_name);
                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/rebase.c:1650:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!options.orig_head)
                ^
/datasets/git/builtin/rebase.c:1652:4: note: +1, nesting level increased to 1
        } else
          ^
/datasets/git/builtin/rebase.c:1656:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (keep_base) {
        ^
/datasets/git/builtin/rebase.c:1662:9: note: +1, nesting level increased to 1
        } else if (!options.onto_name)
               ^
/datasets/git/builtin/rebase.c:1664:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (strstr(options.onto_name, "...")) {
        ^
/datasets/git/builtin/rebase.c:1665:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (get_oid_mb(options.onto_name, &branch_base) < 0) {
                ^
/datasets/git/builtin/rebase.c:1666:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (keep_base)
                        ^
/datasets/git/builtin/rebase.c:1669:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/builtin/rebase.c:1675:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/rebase.c:1678:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!options.onto)
                ^
/datasets/git/builtin/rebase.c:1684:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (keep_base && options.reapply_cherry_picks)
        ^
/datasets/git/builtin/rebase.c:1684:16: note: +1
        if (keep_base && options.reapply_cherry_picks)
                      ^
/datasets/git/builtin/rebase.c:1687:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (options.fork_point > 0)
        ^
/datasets/git/builtin/rebase.c:1691:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (repo_read_index(the_repository) < 0)
        ^
/datasets/git/builtin/rebase.c:1694:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (options.autostash)
        ^
/datasets/git/builtin/rebase.c:1699:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (require_clean_work_tree(the_repository, "rebase",
        ^
/datasets/git/builtin/rebase.c:1702:3: note: +1
                goto cleanup;
                ^
/datasets/git/builtin/rebase.c:1715:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (allow_preemptive_ff &&
        ^
/datasets/git/builtin/rebase.c:1715:26: note: +1
        if (allow_preemptive_ff &&
                                ^
/datasets/git/builtin/rebase.c:1720:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!(options.flags & REBASE_FORCE)) {
                ^
/datasets/git/builtin/rebase.c:1722:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (options.switch_to) {
                        ^
/datasets/git/builtin/rebase.c:1724:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (ret)
                                ^
/datasets/git/builtin/rebase.c:1728:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!(options.flags & REBASE_NO_QUIET))
                        ^
/datasets/git/builtin/rebase.c:1730:9: note: +1, nesting level increased to 3
                        else if (!strcmp(branch_name, "HEAD") &&
                             ^
/datasets/git/builtin/rebase.c:1730:42: note: +1
                        else if (!strcmp(branch_name, "HEAD") &&
                                                              ^
/datasets/git/builtin/rebase.c:1733:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/builtin/rebase.c:1737:4: note: +1
                        goto cleanup;
                        ^
/datasets/git/builtin/rebase.c:1738:10: note: +1, nesting level increased to 2
                } else if (!(options.flags & REBASE_NO_QUIET))
                       ^
/datasets/git/builtin/rebase.c:1740:8: note: +1, nesting level increased to 2
                else if (!strcmp(branch_name, "HEAD") &&
                     ^
/datasets/git/builtin/rebase.c:1740:41: note: +1
                else if (!strcmp(branch_name, "HEAD") &&
                                                      ^
/datasets/git/builtin/rebase.c:1743:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/rebase.c:1749:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!ok_to_skip_pre_rebase &&
        ^
/datasets/git/builtin/rebase.c:1749:29: note: +1
        if (!ok_to_skip_pre_rebase &&
                                   ^
/datasets/git/builtin/rebase.c:1751:9: note: +1, including nesting penalty of 0, nesting level increased to 1
                        argc ? argv[0] : NULL, NULL))
                             ^
/datasets/git/builtin/rebase.c:1754:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (options.flags & REBASE_DIFFSTAT) {
        ^
/datasets/git/builtin/rebase.c:1757:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (options.flags & REBASE_VERBOSE) {
                ^
/datasets/git/builtin/rebase.c:1758:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (is_null_oid(&branch_base))
                        ^
/datasets/git/builtin/rebase.c:1761:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/builtin/rebase.c:1775:43: note: +2, including nesting penalty of 1, nesting level increased to 2
                diff_tree_oid(is_null_oid(&branch_base) ?
                                                        ^
/datasets/git/builtin/rebase.c:1782:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (is_merge(&options))
        ^
/datasets/git/builtin/rebase.c:1786:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (options.flags & REBASE_NO_QUIET)
        ^
/datasets/git/builtin/rebase.c:1798:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (reset_head(the_repository, &ropts))
        ^
/datasets/git/builtin/rebase.c:1806:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (oideq(&branch_base, &options.orig_head->object.oid)) {
        ^
/datasets/git/builtin/rebase.c:1811:3: note: +1
                goto cleanup;
                ^
/datasets/git/builtin/rebase.c:1815:20: note: +1, including nesting penalty of 0, nesting level increased to 1
                    options.root ? oid_to_hex(&options.onto->object.oid) :
                                 ^
/datasets/git/builtin/rebase.c:1816:34: note: +2, including nesting penalty of 1, nesting level increased to 2
                    (options.restrict_revision ?
                                               ^
/datasets/git/builtin/rebase.c:1025:14: warning: variable 'branch_name' is not initialized [cppcoreguidelines-init-variables]
        const char *branch_name;
                    ^
                                = NULL
/datasets/git/builtin/rebase.c:1026:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int ret, flags, total_argc, in_progress = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1026:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret, flags, total_argc, in_progress = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/rebase.c:1026:11: warning: variable 'flags' is not initialized [cppcoreguidelines-init-variables]
        int ret, flags, total_argc, in_progress = 0;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/rebase.c:1026:18: warning: variable 'total_argc' is not initialized [cppcoreguidelines-init-variables]
        int ret, flags, total_argc, in_progress = 0;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/rebase.c:1048:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "keep-base", &keep_base,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1050:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "no-verify", &ok_to_skip_pre_rebase,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1054:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                           REBASE_NO_QUIET | REBASE_VERBOSE | REBASE_DIFFSTAT),
                           ^
/datasets/git/./parse-options.h:180:40: note: expanded from macro 'OPT_NEGBIT'
                                      (h), PARSE_OPT_NOARG, NULL, (b) }
                                                                   ^
/datasets/git/builtin/rebase.c:1055:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT('v', "verbose", &options.flags,
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1057:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        REBASE_NO_QUIET | REBASE_VERBOSE | REBASE_DIFFSTAT),
                        ^
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/rebase.c:1061:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "signoff", &options.signoff,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1063:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "committer-date-is-author-date",
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1066:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "reset-author-date", &options.ignore_date,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1068:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_HIDDEN_BOOL(0, "ignore-date", &options.ignore_date,
                ^
/datasets/git/./parse-options.h:185:16: note: expanded from macro 'OPT_HIDDEN_BOOL'
                                      (h), PARSE_OPT_NOARG | PARSE_OPT_HIDDEN, NULL, 1}
                                           ^~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1072:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "ignore-whitespace", &ignore_whitespace,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1076:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT('f', "force-rebase", &options.flags,
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1079:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT(0, "no-ff", &options.flags,
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1082:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_CMDMODE(0, "continue", &options.action, N_("continue"),
                ^
/datasets/git/./parse-options.h:188:37: note: expanded from macro 'OPT_CMDMODE'
#define OPT_CMDMODE(s, l, v, h, i)  OPT_CMDMODE_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:187:16: note: expanded from macro 'OPT_CMDMODE_F'
                                      (h), PARSE_OPT_CMDMODE|PARSE_OPT_NOARG|PARSE_OPT_NONEG | (f), NULL, (i) }
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1084:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_CMDMODE(0, "skip", &options.action,
                ^
/datasets/git/./parse-options.h:188:37: note: expanded from macro 'OPT_CMDMODE'
#define OPT_CMDMODE(s, l, v, h, i)  OPT_CMDMODE_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:187:16: note: expanded from macro 'OPT_CMDMODE_F'
                                      (h), PARSE_OPT_CMDMODE|PARSE_OPT_NOARG|PARSE_OPT_NONEG | (f), NULL, (i) }
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1086:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_CMDMODE(0, "abort", &options.action,
                ^
/datasets/git/./parse-options.h:188:37: note: expanded from macro 'OPT_CMDMODE'
#define OPT_CMDMODE(s, l, v, h, i)  OPT_CMDMODE_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:187:16: note: expanded from macro 'OPT_CMDMODE_F'
                                      (h), PARSE_OPT_CMDMODE|PARSE_OPT_NOARG|PARSE_OPT_NONEG | (f), NULL, (i) }
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1089:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_CMDMODE(0, "quit", &options.action,
                ^
/datasets/git/./parse-options.h:188:37: note: expanded from macro 'OPT_CMDMODE'
#define OPT_CMDMODE(s, l, v, h, i)  OPT_CMDMODE_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:187:16: note: expanded from macro 'OPT_CMDMODE_F'
                                      (h), PARSE_OPT_CMDMODE|PARSE_OPT_NOARG|PARSE_OPT_NONEG | (f), NULL, (i) }
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1091:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_CMDMODE(0, "edit-todo", &options.action, N_("edit the todo list "
                ^
/datasets/git/./parse-options.h:188:37: note: expanded from macro 'OPT_CMDMODE'
#define OPT_CMDMODE(s, l, v, h, i)  OPT_CMDMODE_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:187:16: note: expanded from macro 'OPT_CMDMODE_F'
                                      (h), PARSE_OPT_CMDMODE|PARSE_OPT_NOARG|PARSE_OPT_NONEG | (f), NULL, (i) }
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1093:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_CMDMODE(0, "show-current-patch", &options.action,
                ^
/datasets/git/./parse-options.h:188:37: note: expanded from macro 'OPT_CMDMODE'
#define OPT_CMDMODE(s, l, v, h, i)  OPT_CMDMODE_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:187:16: note: expanded from macro 'OPT_CMDMODE_F'
                                      (h), PARSE_OPT_CMDMODE|PARSE_OPT_NOARG|PARSE_OPT_NONEG | (f), NULL, (i) }
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1098:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        PARSE_OPT_NOARG | PARSE_OPT_NONEG,
                        ^
/datasets/git/./parse-options.h:169:47: note: expanded from macro 'OPT_CALLBACK_F'
        { OPTION_CALLBACK, (s), (l), (v), (a), (h), (f), (cb) }
                                                     ^
/datasets/git/builtin/rebase.c:1102:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        PARSE_OPT_NOARG | PARSE_OPT_NONEG,
                        ^
/datasets/git/./parse-options.h:169:47: note: expanded from macro 'OPT_CALLBACK_F'
        { OPTION_CALLBACK, (s), (l), (v), (a), (h), (f), (cb) }
                                                     ^
/datasets/git/builtin/rebase.c:1106:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        PARSE_OPT_NOARG | PARSE_OPT_NONEG,
                        ^
/datasets/git/./parse-options.h:169:47: note: expanded from macro 'OPT_CALLBACK_F'
        { OPTION_CALLBACK, (s), (l), (v), (a), (h), (f), (cb) }
                                                     ^
/datasets/git/builtin/rebase.c:1108:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT_F('p', "preserve-merges", &preserve_merges_selected,
                ^
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1118:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        PARSE_OPT_NOARG | PARSE_OPT_HIDDEN,
                        ^
/datasets/git/./parse-options.h:169:47: note: expanded from macro 'OPT_CALLBACK_F'
        { OPTION_CALLBACK, (s), (l), (v), (a), (h), (f), (cb) }
                                                     ^
/datasets/git/builtin/rebase.c:1120:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "autosquash", &options.autosquash,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1123:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "update-refs", &options.update_refs,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1129:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_AUTOSTASH(&options.autostash),
                ^
/datasets/git/./parse-options.h:392:26: note: expanded from macro 'OPT_AUTOSTASH'
#define OPT_AUTOSTASH(v) OPT_BOOL(0, "autostash", v, N_("automatically stash/stash pop before and after"))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1133:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL_F(0, "allow-empty-message",
                ^
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1141:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "fork-point", &options.fork_point,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1149:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "root", &options.root,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1151:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "reschedule-failed-exec",
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1154:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "reapply-cherry-picks", &options.reapply_cherry_picks,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1158:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/rebase.c:1158:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/rebase.c:1160:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc == 2 && !strcmp(argv[1], "-h"))
                                                ^
                                                 {
/datasets/git/builtin/rebase.c:1172:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(options.gpg_sign_opt);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/rebase.c:1176:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if(file_exists(buf.buf))
                                ^
                                 {
/datasets/git/builtin/rebase.c:1193:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (file_exists(buf.buf))
                                                 ^
                                                  {
/datasets/git/builtin/rebase.c:1194:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                options.flags |= REBASE_INTERACTIVE_EXPLICIT;
                                ^                ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1199:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (options.type != REBASE_UNSPECIFIED)
                                               ^
                                                {
/datasets/git/builtin/rebase.c:1207:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (preserve_merges_selected)
                                     ^
                                      {
/datasets/git/builtin/rebase.c:1217:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc > 2)
                     ^
                      {
/datasets/git/builtin/rebase.c:1222:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (options.onto_name)
                                      ^
                                       {
/datasets/git/builtin/rebase.c:1224:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (options.root)
                                 ^
                                  {
/datasets/git/builtin/rebase.c:1230:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (options.fork_point < 0)
                                           ^
                                            {
/datasets/git/builtin/rebase.c:1237:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (options.reapply_cherry_picks < 0)
                                             ^
                                              {
/datasets/git/builtin/rebase.c:1240:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (options.root && options.fork_point > 0)
                                                   ^
                                                    {
/datasets/git/builtin/rebase.c:1243:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (options.action != ACTION_NONE && !in_progress)
                                                          ^
                                                           {
/datasets/git/builtin/rebase.c:1246:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (options.action == ACTION_EDIT_TODO && !is_merge(&options))
                                                                      ^
                                                                       {
/datasets/git/builtin/rebase.c:1251:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_merge(&options))
                                       ^
                                        {
/datasets/git/builtin/rebase.c:1253:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (exec.nr)
                                 ^
                                  {
/datasets/git/builtin/rebase.c:1255:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/rebase.c:1259:26: warning: function is not thread safe [concurrency-mt-unsafe]
        options.reflog_action = getenv(GIT_REFLOG_ACTION_ENVIRONMENT);
                                ^
/datasets/git/builtin/rebase.c:1267:7: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
                int fd;
                    ^
                       = 0
/datasets/git/builtin/rebase.c:1267:7: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/rebase.c:1270:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (get_oid("HEAD", &head))
                                           ^
                                            {
/datasets/git/builtin/rebase.c:1274:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (repo_read_index(the_repository) < 0)
                                                        ^
                                                         {
/datasets/git/builtin/rebase.c:1276:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                refresh_index(the_repository->index, REFRESH_QUIET, NULL, NULL,
                                                     ^
/datasets/git/./refs/../cache.h:923:43: note: expanded from macro 'REFRESH_QUIET'
#define REFRESH_QUIET                    (1 << 2) /* be quiet about it */
                                          ^
/datasets/git/builtin/rebase.c:1278:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (0 <= fd)
                            ^
                             {
/datasets/git/builtin/rebase.c:1285:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        exit(1);
                        ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/rebase.c:1287:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (read_basic_state(&options))
                                               ^
                                                {
/datasets/git/builtin/rebase.c:1288:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        exit(1);
                        ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/rebase.c:1296:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ropts.flags = RESET_HEAD_HARD;
                              ^
/datasets/git/./reset.h:12:26: note: expanded from macro 'RESET_HEAD_HARD'
#define RESET_HEAD_HARD (1<<1)
                         ^
/datasets/git/builtin/rebase.c:1297:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (reset_head(the_repository, &ropts) < 0)
                                                           ^
                                                            {
/datasets/git/builtin/rebase.c:1300:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (read_basic_state(&options))
                                               ^
                                                {
/datasets/git/builtin/rebase.c:1301:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        exit(1);
                        ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/rebase.c:1311:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (read_basic_state(&options))
                                               ^
                                                {
/datasets/git/builtin/rebase.c:1312:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        exit(1);
                        ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/rebase.c:1321:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ropts.flags = RESET_HEAD_HARD;
                              ^
/datasets/git/./reset.h:12:26: note: expanded from macro 'RESET_HEAD_HARD'
#define RESET_HEAD_HARD (1<<1)
                         ^
/datasets/git/builtin/rebase.c:1322:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (reset_head(the_repository, &ropts) < 0)
                                                           ^
                                                            {
/datasets/git/builtin/rebase.c:1340:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ret)
                                ^
                                 {
/datasets/git/builtin/rebase.c:1346:2: warning: switch has 2 consecutive identical branches [bugprone-branch-clone]
        case ACTION_EDIT_TODO:
        ^
/datasets/git/builtin/rebase.c:1351:18: note: last of these clones ends here
                goto run_rebase;
                               ^
/datasets/git/builtin/rebase.c:1378:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((options.flags & REBASE_INTERACTIVE_EXPLICIT) ||
             ^               ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1384:67: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (options.committer_date_is_author_date || options.ignore_date)
                                                                         ^
                                                                          {
/datasets/git/builtin/rebase.c:1385:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                options.flags |= REBASE_FORCE;
                ^                ~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1387:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < options.git_am_opts.nr; i++) {
                    ^
/datasets/git/builtin/rebase.c:1388:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                const char *option = options.git_am_opts.v[i], *p;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1388:51: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                const char *option = options.git_am_opts.v[i], *p;
                                                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/rebase.c:1388:51: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/rebase.c:1390:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !strcmp(option, "--whitespace=strip"))
                                                          ^
                                                           {
/datasets/git/builtin/rebase.c:1393:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (*p)
                        ^
/datasets/git/builtin/rebase.c:1393:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        while (*p)
                                  ^
                                   {
/datasets/git/builtin/rebase.c:1394:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (!isdigit(*(p++)))
                                     ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/builtin/rebase.c:1394:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!isdigit(*(p++)))
                                                     ^
                                                      {
/datasets/git/builtin/rebase.c:1398:14: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                        if (*p && strcmp(p, "warn") && strcmp(p, "nowarn") &&
                                  ^
                                                    != 0
/datasets/git/builtin/rebase.c:1398:35: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                        if (*p && strcmp(p, "warn") && strcmp(p, "nowarn") &&
                                                       ^
                                                                           != 0
/datasets/git/builtin/rebase.c:1399:8: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                            strcmp(p, "error") && strcmp(p, "error-all"))
                            ^
                                               != 0
/datasets/git/builtin/rebase.c:1399:30: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                            strcmp(p, "error") && strcmp(p, "error-all"))
                                                  ^
                                                                         != 0
/datasets/git/builtin/rebase.c:1399:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            strcmp(p, "error") && strcmp(p, "error-all"))
                                                                         ^
                                                                          {
/datasets/git/builtin/rebase.c:1404:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < exec.nr; i++)
        ^
/datasets/git/builtin/rebase.c:1404:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < exec.nr; i++)
                    ^
/datasets/git/builtin/rebase.c:1404:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < exec.nr; i++)
                                     ^
                                      {
/datasets/git/builtin/rebase.c:1405:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (check_exec_cmd(exec.items[i].string))
                                                         ^
                                                          {
/datasets/git/builtin/rebase.c:1406:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        exit(1);
                        ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/rebase.c:1408:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(options.flags & REBASE_NO_QUIET))
              ^               ~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1408:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(options.flags & REBASE_NO_QUIET))
                                               ^
                                                {
/datasets/git/builtin/rebase.c:1411:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (options.empty != EMPTY_UNSPECIFIED)
                                               ^
                                                {
/datasets/git/builtin/rebase.c:1418:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (options.reapply_cherry_picks && !keep_base)
                                                       ^
                                                        {
/datasets/git/builtin/rebase.c:1421:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (gpg_sign)
                     ^
                      {
/datasets/git/builtin/rebase.c:1425:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/builtin/rebase.c:1425:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/rebase.c:1430:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < exec.nr; i++)
                ^
/datasets/git/builtin/rebase.c:1430:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < exec.nr; i++)
                                             ^
                                              {
/datasets/git/builtin/rebase.c:1436:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!*rebase_merges)
                                    ^
                                     {
/datasets/git/builtin/rebase.c:1438:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp("rebase-cousins", rebase_merges))
                                                                  ^
                                                                   {
/datasets/git/builtin/rebase.c:1440:12: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                else if (strcmp("no-rebase-cousins", rebase_merges))
                         ^
                                                                    != 0
/datasets/git/builtin/rebase.c:1440:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (strcmp("no-rebase-cousins", rebase_merges))
                                                                    ^
                                                                     {
/datasets/git/builtin/rebase.c:1447:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ignore_whitespace)
                                      ^
                                       {
/datasets/git/builtin/rebase.c:1450:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (options.committer_date_is_author_date)
                                                          ^
                                                           {
/datasets/git/builtin/rebase.c:1453:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (options.ignore_date)
                                        ^
                                         {
/datasets/git/builtin/rebase.c:1464:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/builtin/rebase.c:1464:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/rebase.c:1466:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!options.strategy)
                                      ^
                                       {
/datasets/git/builtin/rebase.c:1470:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < strategy_options.nr; i++)
                ^
/datasets/git/builtin/rebase.c:1470:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < strategy_options.nr; i++)
                                                         ^
                                                          {
/datasets/git/builtin/rebase.c:1492:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (options.type == REBASE_MERGE)
                                         ^
                                          {
/datasets/git/builtin/rebase.c:1495:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (options.root && !options.onto_name)
                                               ^
                                                {
/datasets/git/builtin/rebase.c:1498:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (isatty(2) && options.flags & REBASE_NO_QUIET)
                         ^               ~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1498:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (isatty(2) && options.flags & REBASE_NO_QUIET)
                                                         ^
                                                          {
/datasets/git/builtin/rebase.c:1503:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = options.git_am_opts.nr - 1; i >= 0; i--)
                ^
/datasets/git/builtin/rebase.c:1503:12: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                for (i = options.git_am_opts.nr - 1; i >= 0; i--)
                         ^
/datasets/git/builtin/rebase.c:1503:40: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = options.git_am_opts.nr - 1; i >= 0; i--)
                                                     ^
/datasets/git/builtin/rebase.c:1503:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = options.git_am_opts.nr - 1; i >= 0; i--)
                                                                 ^
                                                                  {
/datasets/git/builtin/rebase.c:1504:8: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                        if (strcmp(options.git_am_opts.v[i], "-q"))
                            ^
                                                                   != 0
/datasets/git/builtin/rebase.c:1504:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (strcmp(options.git_am_opts.v[i], "-q"))
                                                                   ^
                                                                    {
/datasets/git/builtin/rebase.c:1508:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (is_merge(&options))
                                               ^
                                                {
/datasets/git/builtin/rebase.c:1511:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/builtin/rebase.c:1517:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(options.default_backend, "merge"))
                                                              ^
                                                               {
/datasets/git/builtin/rebase.c:1519:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(options.default_backend, "apply"))
                                                                   ^
                                                                    {
/datasets/git/builtin/rebase.c:1521:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/rebase.c:1528:6: warning: function is not thread safe [concurrency-mt-unsafe]
            getenv("GIT_TEST_MERGE_ALGORITHM"))
            ^
/datasets/git/builtin/rebase.c:1528:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            getenv("GIT_TEST_MERGE_ALGORITHM"))
                                               ^
                                                {
/datasets/git/builtin/rebase.c:1529:30: warning: function is not thread safe [concurrency-mt-unsafe]
                options.strategy = xstrdup(getenv("GIT_TEST_MERGE_ALGORITHM"));
                                           ^
/datasets/git/builtin/rebase.c:1543:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (options.flags & REBASE_INTERACTIVE_EXPLICIT)
                    ^               ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1543:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (options.flags & REBASE_INTERACTIVE_EXPLICIT)
                                                                ^
                                                                 {
/datasets/git/builtin/rebase.c:1545:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (exec.nr > 0)
                                     ^
                                      {
/datasets/git/builtin/rebase.c:1547:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/rebase.c:1550:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (reschedule_failed_exec > 0 && !is_merge(&options))
                                                              ^
                                                               {
/datasets/git/builtin/rebase.c:1553:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (reschedule_failed_exec >= 0)
                                        ^
                                         {
/datasets/git/builtin/rebase.c:1558:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                options.flags |= REBASE_FORCE;
                ^                ~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1563:19: warning: variable 'branch' is not initialized [cppcoreguidelines-init-variables]
                        struct branch *branch;
                                       ^
                                              = NULL
/datasets/git/builtin/rebase.c:1568:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!options.upstream_name)
                                                   ^
                                                    {
/datasets/git/builtin/rebase.c:1570:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (options.fork_point < 0)
                                                   ^
                                                    {
/datasets/git/builtin/rebase.c:1576:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!strcmp(options.upstream_name, "-"))
                                                                ^
                                                                 {
/datasets/git/builtin/rebase.c:1581:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!options.upstream)
                                      ^
                                       {
/datasets/git/builtin/rebase.c:1587:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        &squash_onto, NULL, NULL) < 0)
                                                                      ^
                                                                       {
/datasets/git/builtin/rebase.c:1592:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/builtin/rebase.c:1597:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (argc > 1)
                             ^
                              {
/datasets/git/builtin/rebase.c:1631:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!options.orig_head)
                                       ^
                                        {
/datasets/git/builtin/rebase.c:1638:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!options.head_name)
                                       ^
                                        {
/datasets/git/builtin/rebase.c:1640:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flags & REF_ISSYMREF) {
                    ^~~~~
/datasets/git/builtin/rebase.c:1642:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                         "refs/heads/", &branch_name))
                                                                      ^
                                                                       {
/datasets/git/builtin/rebase.c:1646:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        FREE_AND_NULL(options.head_name);
                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/rebase.c:1650:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!options.orig_head)
                                       ^
                                        {
/datasets/git/builtin/rebase.c:1652:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/builtin/rebase.c:1662:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else if (!options.onto_name)
                                      ^
                                       {
/datasets/git/builtin/rebase.c:1664:6: warning: Null pointer passed to 1st parameter expecting 'nonnull' [clang-analyzer-core.NonNullParamChecker]
        if (strstr(options.onto_name, "...")) {
            ^      ~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1160:6: note: Assuming 'argc' is not equal to 2
        if (argc == 2 && !strcmp(argv[1], "-h"))
            ^~~~~~~~~
/datasets/git/builtin/rebase.c:1160:16: note: Left side of '&&' is false
        if (argc == 2 && !strcmp(argv[1], "-h"))
                      ^
/datasets/git/builtin/rebase.c:1171:13: note: Assuming field 'gpg_sign_opt' is null
        gpg_sign = options.gpg_sign_opt ? "" : NULL;
                   ^~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1171:13: note: '?' condition is false
/datasets/git/builtin/rebase.c:1172:2: note: Loop condition is false.  Exiting loop
        FREE_AND_NULL(options.gpg_sign_opt);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/rebase.c:1176:5: note: Assuming the condition is false
        if(file_exists(buf.buf))
           ^~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1176:2: note: Taking false branch
        if(file_exists(buf.buf))
        ^
/datasets/git/builtin/rebase.c:1179:6: note: Assuming the condition is false
        if (is_directory(apply_dir())) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1179:2: note: Taking false branch
        if (is_directory(apply_dir())) {
        ^
/datasets/git/builtin/rebase.c:1182:13: note: Assuming the condition is false
        } else if (is_directory(merge_dir())) {
                   ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1182:9: note: Taking false branch
        } else if (is_directory(merge_dir())) {
               ^
/datasets/git/builtin/rebase.c:1199:6: note: Assuming field 'type' is equal to REBASE_UNSPECIFIED
        if (options.type != REBASE_UNSPECIFIED)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1199:2: note: Taking false branch
        if (options.type != REBASE_UNSPECIFIED)
        ^
/datasets/git/builtin/rebase.c:1207:6: note: Assuming 'preserve_merges_selected' is 0
        if (preserve_merges_selected)
            ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1207:2: note: Taking false branch
        if (preserve_merges_selected)
        ^
/datasets/git/builtin/rebase.c:1212:6: note: Assuming field 'action' is equal to ACTION_NONE
        if (options.action != ACTION_NONE && total_argc != 2) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1212:36: note: Left side of '&&' is false
        if (options.action != ACTION_NONE && total_argc != 2) {
                                          ^
/datasets/git/builtin/rebase.c:1217:6: note: Assuming 'argc' is <= 2
        if (argc > 2)
            ^~~~~~~~
/datasets/git/builtin/rebase.c:1217:2: note: Taking false branch
        if (argc > 2)
        ^
/datasets/git/builtin/rebase.c:1221:6: note: Assuming 'keep_base' is 0
        if (keep_base) {
            ^~~~~~~~~
/datasets/git/builtin/rebase.c:1221:2: note: Taking false branch
        if (keep_base) {
        ^
/datasets/git/builtin/rebase.c:1237:6: note: Assuming field 'reapply_cherry_picks' is >= 0
        if (options.reapply_cherry_picks < 0)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1237:2: note: Taking false branch
        if (options.reapply_cherry_picks < 0)
        ^
/datasets/git/builtin/rebase.c:1240:6: note: Assuming field 'root' is 0
        if (options.root && options.fork_point > 0)
            ^~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1240:19: note: Left side of '&&' is false
        if (options.root && options.fork_point > 0)
                         ^
/datasets/git/builtin/rebase.c:1243:14: note: Field 'action' is equal to ACTION_NONE
        if (options.action != ACTION_NONE && !in_progress)
                    ^
/datasets/git/builtin/rebase.c:1243:36: note: Left side of '&&' is false
        if (options.action != ACTION_NONE && !in_progress)
                                          ^
/datasets/git/builtin/rebase.c:1246:14: note: Field 'action' is not equal to ACTION_EDIT_TODO
        if (options.action == ACTION_EDIT_TODO && !is_merge(&options))
                    ^
/datasets/git/builtin/rebase.c:1246:41: note: Left side of '&&' is false
        if (options.action == ACTION_EDIT_TODO && !is_merge(&options))
                                               ^
/datasets/git/builtin/rebase.c:1250:6: note: Assuming the condition is false
        if (trace2_is_enabled()) {
            ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1250:2: note: Taking false branch
        if (trace2_is_enabled()) {
        ^
/datasets/git/builtin/rebase.c:1259:26: note: Assuming the environment variable does not exist
        options.reflog_action = getenv(GIT_REFLOG_ACTION_ENVIRONMENT);
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1261:19: note: Field 'reflog_action' is null
                xstrdup(options.reflog_action ? options.reflog_action : "rebase");
                                ^
/datasets/git/builtin/rebase.c:1261:11: note: '?' condition is false
                xstrdup(options.reflog_action ? options.reflog_action : "rebase");
                        ^
/datasets/git/builtin/rebase.c:1263:2: note: Control jumps to 'case ACTION_NONE:'  at line 1352
        switch (options.action) {
        ^
/datasets/git/builtin/rebase.c:1353:3: note:  Execution continues on line 1359
                break;
                ^
/datasets/git/builtin/rebase.c:1359:6: note: 'in_progress' is 0
        if (in_progress) {
            ^~~~~~~~~~~
/datasets/git/builtin/rebase.c:1359:2: note: Taking false branch
        if (in_progress) {
        ^
/datasets/git/builtin/rebase.c:1378:7: note: Assuming the condition is false
        if ((options.flags & REBASE_INTERACTIVE_EXPLICIT) ||
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1378:6: note: Left side of '||' is false
        if ((options.flags & REBASE_INTERACTIVE_EXPLICIT) ||
            ^
/datasets/git/builtin/rebase.c:1379:15: note: Field 'action' is equal to ACTION_NONE
            (options.action != ACTION_NONE) ||
                     ^
/datasets/git/builtin/rebase.c:1378:6: note: Left side of '||' is false
        if ((options.flags & REBASE_INTERACTIVE_EXPLICIT) ||
            ^
/datasets/git/builtin/rebase.c:1380:7: note: Assuming field 'nr' is <= 0
            (exec.nr > 0) ||
             ^~~~~~~~~~~
/datasets/git/builtin/rebase.c:1378:6: note: Left side of '||' is false
        if ((options.flags & REBASE_INTERACTIVE_EXPLICIT) ||
            ^
/datasets/git/builtin/rebase.c:1381:6: note: Assuming field 'autosquash' is 0
            options.autosquash) {
            ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1378:2: note: Taking false branch
        if ((options.flags & REBASE_INTERACTIVE_EXPLICIT) ||
        ^
/datasets/git/builtin/rebase.c:1384:6: note: Assuming field 'committer_date_is_author_date' is 0
        if (options.committer_date_is_author_date || options.ignore_date)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1384:6: note: Left side of '||' is false
/datasets/git/builtin/rebase.c:1384:47: note: Assuming field 'ignore_date' is 0
        if (options.committer_date_is_author_date || options.ignore_date)
                                                     ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1384:2: note: Taking false branch
        if (options.committer_date_is_author_date || options.ignore_date)
        ^
/datasets/git/builtin/rebase.c:1387:14: note: Assuming 'i' is >= field 'nr'
        for (i = 0; i < options.git_am_opts.nr; i++) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1387:2: note: Loop condition is false. Execution continues on line 1404
        for (i = 0; i < options.git_am_opts.nr; i++) {
        ^
/datasets/git/builtin/rebase.c:1404:2: note: Loop condition is false. Execution continues on line 1408
        for (i = 0; i < exec.nr; i++)
        ^
/datasets/git/builtin/rebase.c:1408:6: note: Assuming the condition is false
        if (!(options.flags & REBASE_NO_QUIET))
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1408:2: note: Taking false branch
        if (!(options.flags & REBASE_NO_QUIET))
        ^
/datasets/git/builtin/rebase.c:1411:6: note: Assuming field 'empty' is equal to EMPTY_UNSPECIFIED
        if (options.empty != EMPTY_UNSPECIFIED)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1411:2: note: Taking false branch
        if (options.empty != EMPTY_UNSPECIFIED)
        ^
/datasets/git/builtin/rebase.c:1418:6: note: Assuming field 'reapply_cherry_picks' is 0
        if (options.reapply_cherry_picks && !keep_base)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1418:35: note: Left side of '&&' is false
        if (options.reapply_cherry_picks && !keep_base)
                                         ^
/datasets/git/builtin/rebase.c:1421:6: note: Assuming 'gpg_sign' is null
        if (gpg_sign)
            ^~~~~~~~
/datasets/git/builtin/rebase.c:1421:2: note: Taking false branch
        if (gpg_sign)
        ^
/datasets/git/builtin/rebase.c:1424:11: note: Field 'nr' is 0
        if (exec.nr) {
                 ^
/datasets/git/builtin/rebase.c:1424:2: note: Taking false branch
        if (exec.nr) {
        ^
/datasets/git/builtin/rebase.c:1435:6: note: Assuming 'rebase_merges' is null
        if (rebase_merges) {
            ^~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1435:2: note: Taking false branch
        if (rebase_merges) {
        ^
/datasets/git/builtin/rebase.c:1446:6: note: Assuming field 'type' is not equal to REBASE_APPLY
        if (options.type == REBASE_APPLY) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1446:2: note: Taking false branch
        if (options.type == REBASE_APPLY) {
        ^
/datasets/git/builtin/rebase.c:1457:7: note: Assuming 'ignore_whitespace' is 0
                if (ignore_whitespace) {
                    ^~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1457:3: note: Taking false branch
                if (ignore_whitespace) {
                ^
/datasets/git/builtin/rebase.c:1463:6: note: Assuming field 'nr' is 0
        if (strategy_options.nr) {
            ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1463:2: note: Taking false branch
        if (strategy_options.nr) {
        ^
/datasets/git/builtin/rebase.c:1476:6: note: Assuming field 'strategy' is null
        if (options.strategy) {
            ^~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1476:2: note: Taking false branch
        if (options.strategy) {
        ^
/datasets/git/builtin/rebase.c:1492:6: note: Assuming field 'type' is not equal to REBASE_MERGE
        if (options.type == REBASE_MERGE)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1492:2: note: Taking false branch
        if (options.type == REBASE_MERGE)
        ^
/datasets/git/builtin/rebase.c:1495:14: note: Field 'root' is 0
        if (options.root && !options.onto_name)
                    ^
/datasets/git/builtin/rebase.c:1495:19: note: Left side of '&&' is false
        if (options.root && !options.onto_name)
                         ^
/datasets/git/builtin/rebase.c:1498:6: note: Assuming the condition is false
        if (isatty(2) && options.flags & REBASE_NO_QUIET)
            ^~~~~~~~~
/datasets/git/builtin/rebase.c:1498:16: note: Left side of '&&' is false
        if (isatty(2) && options.flags & REBASE_NO_QUIET)
                      ^
/datasets/git/builtin/rebase.c:1501:26: note: Field 'nr' is 0
        if (options.git_am_opts.nr || options.type == REBASE_APPLY) {
                                ^
/datasets/git/builtin/rebase.c:1501:6: note: Left side of '||' is false
        if (options.git_am_opts.nr || options.type == REBASE_APPLY) {
            ^
/datasets/git/builtin/rebase.c:1501:40: note: Field 'type' is not equal to REBASE_APPLY
        if (options.git_am_opts.nr || options.type == REBASE_APPLY) {
                                              ^
/datasets/git/builtin/rebase.c:1501:2: note: Taking false branch
        if (options.git_am_opts.nr || options.type == REBASE_APPLY) {
        ^
/datasets/git/builtin/rebase.c:1516:6: note: Assuming field 'type' is equal to REBASE_UNSPECIFIED
        if (options.type == REBASE_UNSPECIFIED) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1516:2: note: Taking true branch
        if (options.type == REBASE_UNSPECIFIED) {
        ^
/datasets/git/builtin/rebase.c:1517:7: note: Assuming the condition is false
                if (!strcmp(options.default_backend, "merge"))
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1517:3: note: Taking false branch
                if (!strcmp(options.default_backend, "merge"))
                ^
/datasets/git/builtin/rebase.c:1519:8: note: Taking true branch
                else if (!strcmp(options.default_backend, "apply"))
                     ^
/datasets/git/builtin/rebase.c:1526:14: note: Field 'type' is not equal to REBASE_MERGE
        if (options.type == REBASE_MERGE &&
                    ^
/datasets/git/builtin/rebase.c:1526:35: note: Left side of '&&' is false
        if (options.type == REBASE_MERGE &&
                                         ^
/datasets/git/builtin/rebase.c:1531:2: note: Control jumps to 'case REBASE_APPLY:'  at line 1535
        switch (options.type) {
        ^
/datasets/git/builtin/rebase.c:1537:3: note:  Execution continues on line 1542
                break;
                ^
/datasets/git/builtin/rebase.c:1542:14: note: Field 'empty' is equal to EMPTY_UNSPECIFIED
        if (options.empty == EMPTY_UNSPECIFIED) {
                    ^
/datasets/git/builtin/rebase.c:1542:2: note: Taking true branch
        if (options.empty == EMPTY_UNSPECIFIED) {
        ^
/datasets/git/builtin/rebase.c:1543:3: note: Taking false branch
                if (options.flags & REBASE_INTERACTIVE_EXPLICIT)
                ^
/datasets/git/builtin/rebase.c:1545:17: note: Field 'nr' is <= 0
                else if (exec.nr > 0)
                              ^
/datasets/git/builtin/rebase.c:1545:8: note: Taking false branch
                else if (exec.nr > 0)
                     ^
/datasets/git/builtin/rebase.c:1550:6: note: Assuming 'reschedule_failed_exec' is <= 0
        if (reschedule_failed_exec > 0 && !is_merge(&options))
            ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1550:33: note: Left side of '&&' is false
        if (reschedule_failed_exec > 0 && !is_merge(&options))
                                       ^
/datasets/git/builtin/rebase.c:1553:6: note: Assuming 'reschedule_failed_exec' is < 0
        if (reschedule_failed_exec >= 0)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1553:2: note: Taking false branch
        if (reschedule_failed_exec >= 0)
        ^
/datasets/git/builtin/rebase.c:1556:6: note: Assuming field 'signoff' is not equal to 0
        if (options.signoff) {
            ^~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1556:2: note: Taking true branch
        if (options.signoff) {
        ^
/datasets/git/builtin/rebase.c:1561:6: note: Assuming field 'root' is not equal to 0
        if (!options.root) {
            ^~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1561:2: note: Taking false branch
        if (!options.root) {
        ^
/datasets/git/builtin/rebase.c:1585:7: note: Assuming field 'onto_name' is null
                if (!options.onto_name) {
                    ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1585:3: note: Taking true branch
                if (!options.onto_name) {
                ^
/datasets/git/builtin/rebase.c:1586:8: note: Assuming the condition is false
                        if (commit_tree("", 0, the_hash_algo->empty_tree, NULL,
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1586:4: note: Taking false branch
                        if (commit_tree("", 0, the_hash_algo->empty_tree, NULL,
                        ^
/datasets/git/builtin/rebase.c:1595:3: note: Null pointer value stored to 'options.upstream_name'
                options.upstream_name = NULL;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1597:7: note: Assuming 'argc' is <= 1
                if (argc > 1)
                    ^~~~~~~~
/datasets/git/builtin/rebase.c:1597:3: note: Taking false branch
                if (argc > 1)
                ^
/datasets/git/builtin/rebase.c:1610:6: note: Assuming 'argc' is not equal to 1
        if (argc == 1) {
            ^~~~~~~~~
/datasets/git/builtin/rebase.c:1610:2: note: Taking false branch
        if (argc == 1) {
        ^
/datasets/git/builtin/rebase.c:1633:13: note: Assuming 'argc' is equal to 0
        } else if (argc == 0) {
                   ^~~~~~~~~
/datasets/git/builtin/rebase.c:1633:9: note: Taking true branch
        } else if (argc == 0) {
               ^
/datasets/git/builtin/rebase.c:1638:7: note: Assuming field 'head_name' is non-null
                if (!options.head_name)
                    ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1638:3: note: Taking false branch
                if (!options.head_name)
                ^
/datasets/git/builtin/rebase.c:1640:7: note: Assuming the condition is true
                if (flags & REF_ISSYMREF) {
                    ^~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1640:3: note: Taking true branch
                if (flags & REF_ISSYMREF) {
                ^
/datasets/git/builtin/rebase.c:1641:8: note: Assuming the condition is false
                        if (!skip_prefix(options.head_name,
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1641:4: note: Taking false branch
                        if (!skip_prefix(options.head_name,
                        ^
/datasets/git/builtin/rebase.c:1650:7: note: Assuming field 'orig_head' is non-null
                if (!options.orig_head)
                    ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1650:3: note: Taking false branch
                if (!options.orig_head)
                ^
/datasets/git/builtin/rebase.c:1656:6: note: 'keep_base' is 0
        if (keep_base) {
            ^~~~~~~~~
/datasets/git/builtin/rebase.c:1656:2: note: Taking false branch
        if (keep_base) {
        ^
/datasets/git/builtin/rebase.c:1662:13: note: Assuming field 'onto_name' is null
        } else if (!options.onto_name)
                   ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1662:9: note: Taking true branch
        } else if (!options.onto_name)
               ^
/datasets/git/builtin/rebase.c:1663:3: note: Null pointer value stored to 'options.onto_name'
                options.onto_name = options.upstream_name;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1664:6: note: Null pointer passed to 1st parameter expecting 'nonnull'
        if (strstr(options.onto_name, "...")) {
            ^      ~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1666:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (keep_base)
                                      ^
                                       {
/datasets/git/builtin/rebase.c:1669:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/builtin/rebase.c:1678:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!options.onto)
                                  ^
                                   {
/datasets/git/builtin/rebase.c:1684:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (keep_base && options.reapply_cherry_picks)
                                                      ^
                                                       {
/datasets/git/builtin/rebase.c:1687:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (options.fork_point > 0)
                                   ^
                                    {
/datasets/git/builtin/rebase.c:1691:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_read_index(the_repository) < 0)
                                                ^
                                                 {
/datasets/git/builtin/rebase.c:1694:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (options.autostash)
                              ^
                               {
/datasets/git/builtin/rebase.c:1718:7: warning: variable 'flag' is not initialized [cppcoreguidelines-init-variables]
                int flag;
                    ^
                         = 0
/datasets/git/builtin/rebase.c:1720:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(options.flags & REBASE_FORCE)) {
                      ^               ~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1724:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (ret)
                                        ^
                                         {
/datasets/git/builtin/rebase.c:1728:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!(options.flags & REBASE_NO_QUIET))
                              ^               ~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1728:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!(options.flags & REBASE_NO_QUIET))
                                                               ^
                                                                {
/datasets/git/builtin/rebase.c:1730:14: warning: Null pointer passed to 1st parameter expecting 'nonnull' [clang-analyzer-core.NonNullParamChecker]
                        else if (!strcmp(branch_name, "HEAD") &&
                                  ^      ~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1160:6: note: Assuming 'argc' is not equal to 2
        if (argc == 2 && !strcmp(argv[1], "-h"))
            ^~~~~~~~~
/datasets/git/builtin/rebase.c:1160:16: note: Left side of '&&' is false
        if (argc == 2 && !strcmp(argv[1], "-h"))
                      ^
/datasets/git/builtin/rebase.c:1171:13: note: Assuming field 'gpg_sign_opt' is null
        gpg_sign = options.gpg_sign_opt ? "" : NULL;
                   ^~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1171:13: note: '?' condition is false
/datasets/git/builtin/rebase.c:1172:2: note: Loop condition is false.  Exiting loop
        FREE_AND_NULL(options.gpg_sign_opt);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/rebase.c:1176:5: note: Assuming the condition is false
        if(file_exists(buf.buf))
           ^~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1176:2: note: Taking false branch
        if(file_exists(buf.buf))
        ^
/datasets/git/builtin/rebase.c:1179:6: note: Assuming the condition is false
        if (is_directory(apply_dir())) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1179:2: note: Taking false branch
        if (is_directory(apply_dir())) {
        ^
/datasets/git/builtin/rebase.c:1182:13: note: Assuming the condition is false
        } else if (is_directory(merge_dir())) {
                   ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1182:9: note: Taking false branch
        } else if (is_directory(merge_dir())) {
               ^
/datasets/git/builtin/rebase.c:1199:6: note: Assuming field 'type' is equal to REBASE_UNSPECIFIED
        if (options.type != REBASE_UNSPECIFIED)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1199:2: note: Taking false branch
        if (options.type != REBASE_UNSPECIFIED)
        ^
/datasets/git/builtin/rebase.c:1203:9: note: Assigning value
        argc = parse_options(argc, argv, prefix,
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1207:6: note: Assuming 'preserve_merges_selected' is 0
        if (preserve_merges_selected)
            ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1207:2: note: Taking false branch
        if (preserve_merges_selected)
        ^
/datasets/git/builtin/rebase.c:1212:6: note: Assuming field 'action' is equal to ACTION_NONE
        if (options.action != ACTION_NONE && total_argc != 2) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1212:36: note: Left side of '&&' is false
        if (options.action != ACTION_NONE && total_argc != 2) {
                                          ^
/datasets/git/builtin/rebase.c:1217:6: note: Assuming 'argc' is <= 2
        if (argc > 2)
            ^~~~~~~~
/datasets/git/builtin/rebase.c:1217:2: note: Taking false branch
        if (argc > 2)
        ^
/datasets/git/builtin/rebase.c:1221:6: note: Assuming 'keep_base' is 0
        if (keep_base) {
            ^~~~~~~~~
/datasets/git/builtin/rebase.c:1221:2: note: Taking false branch
        if (keep_base) {
        ^
/datasets/git/builtin/rebase.c:1237:6: note: Assuming field 'reapply_cherry_picks' is >= 0
        if (options.reapply_cherry_picks < 0)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1237:2: note: Taking false branch
        if (options.reapply_cherry_picks < 0)
        ^
/datasets/git/builtin/rebase.c:1240:6: note: Assuming field 'root' is 0
        if (options.root && options.fork_point > 0)
            ^~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1240:19: note: Left side of '&&' is false
        if (options.root && options.fork_point > 0)
                         ^
/datasets/git/builtin/rebase.c:1243:14: note: Field 'action' is equal to ACTION_NONE
        if (options.action != ACTION_NONE && !in_progress)
                    ^
/datasets/git/builtin/rebase.c:1243:36: note: Left side of '&&' is false
        if (options.action != ACTION_NONE && !in_progress)
                                          ^
/datasets/git/builtin/rebase.c:1246:14: note: Field 'action' is not equal to ACTION_EDIT_TODO
        if (options.action == ACTION_EDIT_TODO && !is_merge(&options))
                    ^
/datasets/git/builtin/rebase.c:1246:41: note: Left side of '&&' is false
        if (options.action == ACTION_EDIT_TODO && !is_merge(&options))
                                               ^
/datasets/git/builtin/rebase.c:1250:6: note: Assuming the condition is false
        if (trace2_is_enabled()) {
            ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1250:2: note: Taking false branch
        if (trace2_is_enabled()) {
        ^
/datasets/git/builtin/rebase.c:1259:26: note: Assuming the environment variable does not exist
        options.reflog_action = getenv(GIT_REFLOG_ACTION_ENVIRONMENT);
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1261:19: note: Field 'reflog_action' is null
                xstrdup(options.reflog_action ? options.reflog_action : "rebase");
                                ^
/datasets/git/builtin/rebase.c:1261:11: note: '?' condition is false
                xstrdup(options.reflog_action ? options.reflog_action : "rebase");
                        ^
/datasets/git/builtin/rebase.c:1263:2: note: Control jumps to 'case ACTION_NONE:'  at line 1352
        switch (options.action) {
        ^
/datasets/git/builtin/rebase.c:1353:3: note:  Execution continues on line 1359
                break;
                ^
/datasets/git/builtin/rebase.c:1359:6: note: 'in_progress' is 0
        if (in_progress) {
            ^~~~~~~~~~~
/datasets/git/builtin/rebase.c:1359:2: note: Taking false branch
        if (in_progress) {
        ^
/datasets/git/builtin/rebase.c:1378:7: note: Assuming the condition is false
        if ((options.flags & REBASE_INTERACTIVE_EXPLICIT) ||
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1378:6: note: Left side of '||' is false
        if ((options.flags & REBASE_INTERACTIVE_EXPLICIT) ||
            ^
/datasets/git/builtin/rebase.c:1379:15: note: Field 'action' is equal to ACTION_NONE
            (options.action != ACTION_NONE) ||
                     ^
/datasets/git/builtin/rebase.c:1378:6: note: Left side of '||' is false
        if ((options.flags & REBASE_INTERACTIVE_EXPLICIT) ||
            ^
/datasets/git/builtin/rebase.c:1380:7: note: Assuming field 'nr' is <= 0
            (exec.nr > 0) ||
             ^~~~~~~~~~~
/datasets/git/builtin/rebase.c:1378:6: note: Left side of '||' is false
        if ((options.flags & REBASE_INTERACTIVE_EXPLICIT) ||
            ^
/datasets/git/builtin/rebase.c:1381:6: note: Assuming field 'autosquash' is 0
            options.autosquash) {
            ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1378:2: note: Taking false branch
        if ((options.flags & REBASE_INTERACTIVE_EXPLICIT) ||
        ^
/datasets/git/builtin/rebase.c:1384:6: note: Assuming field 'committer_date_is_author_date' is 0
        if (options.committer_date_is_author_date || options.ignore_date)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1384:6: note: Left side of '||' is false
/datasets/git/builtin/rebase.c:1384:47: note: Assuming field 'ignore_date' is 0
        if (options.committer_date_is_author_date || options.ignore_date)
                                                     ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1384:2: note: Taking false branch
        if (options.committer_date_is_author_date || options.ignore_date)
        ^
/datasets/git/builtin/rebase.c:1387:14: note: Assuming 'i' is >= field 'nr'
        for (i = 0; i < options.git_am_opts.nr; i++) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1387:2: note: Loop condition is false. Execution continues on line 1404
        for (i = 0; i < options.git_am_opts.nr; i++) {
        ^
/datasets/git/builtin/rebase.c:1404:2: note: Loop condition is false. Execution continues on line 1408
        for (i = 0; i < exec.nr; i++)
        ^
/datasets/git/builtin/rebase.c:1408:6: note: Assuming the condition is false
        if (!(options.flags & REBASE_NO_QUIET))
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1408:2: note: Taking false branch
        if (!(options.flags & REBASE_NO_QUIET))
        ^
/datasets/git/builtin/rebase.c:1411:6: note: Assuming field 'empty' is equal to EMPTY_UNSPECIFIED
        if (options.empty != EMPTY_UNSPECIFIED)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1411:2: note: Taking false branch
        if (options.empty != EMPTY_UNSPECIFIED)
        ^
/datasets/git/builtin/rebase.c:1418:6: note: Assuming field 'reapply_cherry_picks' is 0
        if (options.reapply_cherry_picks && !keep_base)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1418:35: note: Left side of '&&' is false
        if (options.reapply_cherry_picks && !keep_base)
                                         ^
/datasets/git/builtin/rebase.c:1421:6: note: Assuming 'gpg_sign' is null
        if (gpg_sign)
            ^~~~~~~~
/datasets/git/builtin/rebase.c:1421:2: note: Taking false branch
        if (gpg_sign)
        ^
/datasets/git/builtin/rebase.c:1424:11: note: Field 'nr' is 0
        if (exec.nr) {
                 ^
/datasets/git/builtin/rebase.c:1424:2: note: Taking false branch
        if (exec.nr) {
        ^
/datasets/git/builtin/rebase.c:1435:6: note: Assuming 'rebase_merges' is null
        if (rebase_merges) {
            ^~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1435:2: note: Taking false branch
        if (rebase_merges) {
        ^
/datasets/git/builtin/rebase.c:1446:6: note: Assuming field 'type' is not equal to REBASE_APPLY
        if (options.type == REBASE_APPLY) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1446:2: note: Taking false branch
        if (options.type == REBASE_APPLY) {
        ^
/datasets/git/builtin/rebase.c:1457:7: note: Assuming 'ignore_whitespace' is 0
                if (ignore_whitespace) {
                    ^~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1457:3: note: Taking false branch
                if (ignore_whitespace) {
                ^
/datasets/git/builtin/rebase.c:1463:6: note: Assuming field 'nr' is 0
        if (strategy_options.nr) {
            ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1463:2: note: Taking false branch
        if (strategy_options.nr) {
        ^
/datasets/git/builtin/rebase.c:1476:6: note: Assuming field 'strategy' is null
        if (options.strategy) {
            ^~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1476:2: note: Taking false branch
        if (options.strategy) {
        ^
/datasets/git/builtin/rebase.c:1492:6: note: Assuming field 'type' is not equal to REBASE_MERGE
        if (options.type == REBASE_MERGE)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1492:2: note: Taking false branch
        if (options.type == REBASE_MERGE)
        ^
/datasets/git/builtin/rebase.c:1495:14: note: Field 'root' is 0
        if (options.root && !options.onto_name)
                    ^
/datasets/git/builtin/rebase.c:1495:19: note: Left side of '&&' is false
        if (options.root && !options.onto_name)
                         ^
/datasets/git/builtin/rebase.c:1498:6: note: Assuming the condition is false
        if (isatty(2) && options.flags & REBASE_NO_QUIET)
            ^~~~~~~~~
/datasets/git/builtin/rebase.c:1498:16: note: Left side of '&&' is false
        if (isatty(2) && options.flags & REBASE_NO_QUIET)
                      ^
/datasets/git/builtin/rebase.c:1501:26: note: Field 'nr' is 0
        if (options.git_am_opts.nr || options.type == REBASE_APPLY) {
                                ^
/datasets/git/builtin/rebase.c:1501:6: note: Left side of '||' is false
        if (options.git_am_opts.nr || options.type == REBASE_APPLY) {
            ^
/datasets/git/builtin/rebase.c:1501:40: note: Field 'type' is not equal to REBASE_APPLY
        if (options.git_am_opts.nr || options.type == REBASE_APPLY) {
                                              ^
/datasets/git/builtin/rebase.c:1501:2: note: Taking false branch
        if (options.git_am_opts.nr || options.type == REBASE_APPLY) {
        ^
/datasets/git/builtin/rebase.c:1516:6: note: Assuming field 'type' is equal to REBASE_UNSPECIFIED
        if (options.type == REBASE_UNSPECIFIED) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1516:2: note: Taking true branch
        if (options.type == REBASE_UNSPECIFIED) {
        ^
/datasets/git/builtin/rebase.c:1517:7: note: Assuming the condition is false
                if (!strcmp(options.default_backend, "merge"))
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1517:3: note: Taking false branch
                if (!strcmp(options.default_backend, "merge"))
                ^
/datasets/git/builtin/rebase.c:1519:8: note: Taking true branch
                else if (!strcmp(options.default_backend, "apply"))
                     ^
/datasets/git/builtin/rebase.c:1526:14: note: Field 'type' is not equal to REBASE_MERGE
        if (options.type == REBASE_MERGE &&
                    ^
/datasets/git/builtin/rebase.c:1526:35: note: Left side of '&&' is false
        if (options.type == REBASE_MERGE &&
                                         ^
/datasets/git/builtin/rebase.c:1531:2: note: Control jumps to 'case REBASE_APPLY:'  at line 1535
        switch (options.type) {
        ^
/datasets/git/builtin/rebase.c:1537:3: note:  Execution continues on line 1542
                break;
                ^
/datasets/git/builtin/rebase.c:1542:14: note: Field 'empty' is equal to EMPTY_UNSPECIFIED
        if (options.empty == EMPTY_UNSPECIFIED) {
                    ^
/datasets/git/builtin/rebase.c:1542:2: note: Taking true branch
        if (options.empty == EMPTY_UNSPECIFIED) {
        ^
/datasets/git/builtin/rebase.c:1543:3: note: Taking false branch
                if (options.flags & REBASE_INTERACTIVE_EXPLICIT)
                ^
/datasets/git/builtin/rebase.c:1545:17: note: Field 'nr' is <= 0
                else if (exec.nr > 0)
                              ^
/datasets/git/builtin/rebase.c:1545:8: note: Taking false branch
                else if (exec.nr > 0)
                     ^
/datasets/git/builtin/rebase.c:1550:6: note: Assuming 'reschedule_failed_exec' is <= 0
        if (reschedule_failed_exec > 0 && !is_merge(&options))
            ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1550:33: note: Left side of '&&' is false
        if (reschedule_failed_exec > 0 && !is_merge(&options))
                                       ^
/datasets/git/builtin/rebase.c:1553:6: note: Assuming 'reschedule_failed_exec' is < 0
        if (reschedule_failed_exec >= 0)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1553:2: note: Taking false branch
        if (reschedule_failed_exec >= 0)
        ^
/datasets/git/builtin/rebase.c:1556:6: note: Assuming field 'signoff' is 0
        if (options.signoff) {
            ^~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1556:2: note: Taking false branch
        if (options.signoff) {
        ^
/datasets/git/builtin/rebase.c:1561:15: note: Field 'root' is 0
        if (!options.root) {
                     ^
/datasets/git/builtin/rebase.c:1561:2: note: Taking true branch
        if (!options.root) {
        ^
/datasets/git/builtin/rebase.c:1562:7: note: Assuming 'argc' is >= 1
                if (argc < 1) {
                    ^~~~~~~~
/datasets/git/builtin/rebase.c:1562:3: note: Taking false branch
                if (argc < 1) {
                ^
/datasets/git/builtin/rebase.c:1576:8: note: Assuming the condition is false
                        if (!strcmp(options.upstream_name, "-"))
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1576:4: note: Taking false branch
                        if (!strcmp(options.upstream_name, "-"))
                        ^
/datasets/git/builtin/rebase.c:1581:7: note: Assuming field 'upstream' is non-null
                if (!options.upstream)
                    ^~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1581:3: note: Taking false branch
                if (!options.upstream)
                ^
/datasets/git/builtin/rebase.c:1610:6: note: Assuming 'argc' is equal to 1
        if (argc == 1) {
            ^~~~~~~~~
/datasets/git/builtin/rebase.c:1610:2: note: Taking true branch
        if (argc == 1) {
        ^
/datasets/git/builtin/rebase.c:1613:3: note: Value assigned to 'branch_name'
                branch_name = argv[0];
                ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1619:7: note: Assuming the condition is false
                if (!read_ref(buf.buf, &branch_oid)) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1619:3: note: Taking false branch
                if (!read_ref(buf.buf, &branch_oid)) {
                ^
/datasets/git/builtin/rebase.c:1631:7: note: Assuming field 'orig_head' is non-null
                if (!options.orig_head)
                    ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1631:3: note: Taking false branch
                if (!options.orig_head)
                ^
/datasets/git/builtin/rebase.c:1656:6: note: 'keep_base' is 0
        if (keep_base) {
            ^~~~~~~~~
/datasets/git/builtin/rebase.c:1656:2: note: Taking false branch
        if (keep_base) {
        ^
/datasets/git/builtin/rebase.c:1662:13: note: Assuming field 'onto_name' is non-null
        } else if (!options.onto_name)
                   ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1662:9: note: Taking false branch
        } else if (!options.onto_name)
               ^
/datasets/git/builtin/rebase.c:1664:6: note: Assuming the condition is false
        if (strstr(options.onto_name, "...")) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1664:2: note: Taking false branch
        if (strstr(options.onto_name, "...")) {
        ^
/datasets/git/builtin/rebase.c:1678:7: note: Assuming field 'onto' is non-null
                if (!options.onto)
                    ^~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1678:3: note: Taking false branch
                if (!options.onto)
                ^
/datasets/git/builtin/rebase.c:1681:3: note: Calling 'fill_branch_base'
                fill_branch_base(&options, &branch_base);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:908:6: note: Assuming 'merge_bases' is non-null
        if (!merge_bases || merge_bases->next)
            ^~~~~~~~~~~~
/datasets/git/builtin/rebase.c:908:6: note: Left side of '||' is false
/datasets/git/builtin/rebase.c:908:22: note: Assuming field 'next' is null
        if (!merge_bases || merge_bases->next)
                            ^~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:908:2: note: Taking false branch
        if (!merge_bases || merge_bases->next)
        ^
/datasets/git/builtin/rebase.c:914:1: note: Returning without writing to 'options->switch_to', which participates in a condition later
}
^
/datasets/git/builtin/rebase.c:1681:3: note: Returning from 'fill_branch_base'
                fill_branch_base(&options, &branch_base);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1684:6: note: 'keep_base' is 0
        if (keep_base && options.reapply_cherry_picks)
            ^~~~~~~~~
/datasets/git/builtin/rebase.c:1684:16: note: Left side of '&&' is false
        if (keep_base && options.reapply_cherry_picks)
                      ^
/datasets/git/builtin/rebase.c:1687:6: note: Assuming field 'fork_point' is <= 0
        if (options.fork_point > 0)
            ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1687:2: note: Taking false branch
        if (options.fork_point > 0)
        ^
/datasets/git/builtin/rebase.c:1691:6: note: Assuming the condition is false
        if (repo_read_index(the_repository) < 0)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1691:2: note: Taking false branch
        if (repo_read_index(the_repository) < 0)
        ^
/datasets/git/builtin/rebase.c:1694:6: note: Assuming field 'autostash' is 0
        if (options.autostash)
            ^~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1694:2: note: Taking false branch
        if (options.autostash)
        ^
/datasets/git/builtin/rebase.c:1699:6: note: Assuming the condition is false
        if (require_clean_work_tree(the_repository, "rebase",
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1699:2: note: Taking false branch
        if (require_clean_work_tree(the_repository, "rebase",
        ^
/datasets/git/builtin/rebase.c:1715:6: note: 'allow_preemptive_ff' is 1
        if (allow_preemptive_ff &&
            ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1715:6: note: Left side of '&&' is true
/datasets/git/builtin/rebase.c:1716:6: note: Assuming the condition is true
            can_fast_forward(options.onto, options.upstream, options.restrict_revision,
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1715:2: note: Taking true branch
        if (allow_preemptive_ff &&
        ^
/datasets/git/builtin/rebase.c:1720:7: note: Assuming the condition is true
                if (!(options.flags & REBASE_FORCE)) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1720:3: note: Taking true branch
                if (!(options.flags & REBASE_FORCE)) {
                ^
/datasets/git/builtin/rebase.c:1722:8: note: Assuming field 'switch_to' is null
                        if (options.switch_to) {
                            ^~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1722:4: note: Taking false branch
                        if (options.switch_to) {
                        ^
/datasets/git/builtin/rebase.c:1728:4: note: Taking false branch
                        if (!(options.flags & REBASE_NO_QUIET))
                        ^
/datasets/git/builtin/rebase.c:1730:14: note: Null pointer passed to 1st parameter expecting 'nonnull'
                        else if (!strcmp(branch_name, "HEAD") &&
                                  ^      ~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1731:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                 resolve_ref_unsafe("HEAD", 0, NULL, &flag))
                                                                            ^
                                                                             {
/datasets/git/builtin/rebase.c:1733:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/builtin/rebase.c:1738:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                } else if (!(options.flags & REBASE_NO_QUIET))
                             ^               ~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1738:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else if (!(options.flags & REBASE_NO_QUIET))
                                                              ^
                                                               {
/datasets/git/builtin/rebase.c:1741:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                         resolve_ref_unsafe("HEAD", 0, NULL, &flag))
                                                                    ^
                                                                     {
/datasets/git/builtin/rebase.c:1743:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/rebase.c:1751:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        argc ? argv[0] : NULL, NULL))
                                                     ^
                                                      {
/datasets/git/builtin/rebase.c:1754:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (options.flags & REBASE_DIFFSTAT) {
            ^               ~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1757:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (options.flags & REBASE_VERBOSE) {
                    ^               ~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1758:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (is_null_oid(&branch_base))
                                                      ^
                                                       {
/datasets/git/builtin/rebase.c:1761:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/builtin/rebase.c:1771:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                opts.output_format |=
                ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1772:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        DIFF_FORMAT_SUMMARY | DIFF_FORMAT_DIFFSTAT;
                        ^
/datasets/git/./diff.h:102:29: note: expanded from macro 'DIFF_FORMAT_SUMMARY'
#define DIFF_FORMAT_SUMMARY     0x0008
                                ^~~~~~
/datasets/git/builtin/rebase.c:1782:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_merge(&options))
                               ^
                                {
/datasets/git/builtin/rebase.c:1786:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (options.flags & REBASE_NO_QUIET)
            ^               ~~~~~~~~~~~~~~~
/datasets/git/builtin/rebase.c:1786:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (options.flags & REBASE_NO_QUIET)
                                            ^
                                             {
/datasets/git/builtin/rebase.c:1794:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ropts.flags = RESET_HEAD_DETACH | RESET_ORIG_HEAD |
                      ^
/datasets/git/./reset.h:10:27: note: expanded from macro 'RESET_HEAD_DETACH'
#define RESET_HEAD_DETACH (1<<0)
                          ^
/datasets/git/builtin/rebase.c:1794:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ropts.flags = RESET_HEAD_DETACH | RESET_ORIG_HEAD |
                                          ^
/datasets/git/./reset.h:18:26: note: expanded from macro 'RESET_ORIG_HEAD'
#define RESET_ORIG_HEAD (1<<4)
                         ^
/datasets/git/builtin/rebase.c:1795:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        RESET_HEAD_RUN_POST_CHECKOUT_HOOK;
                        ^
/datasets/git/./reset.h:14:44: note: expanded from macro 'RESET_HEAD_RUN_POST_CHECKOUT_HOOK'
#define RESET_HEAD_RUN_POST_CHECKOUT_HOOK (1<<2)
                                           ^
/datasets/git/builtin/rebase.c:1798:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (reset_head(the_repository, &ropts))
                                               ^
                                                {
/datasets/git/builtin/receive-pack.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "repository.h"
^        ~~~~~~~~~~~~~~
         "commit-reach.h"
/datasets/git/builtin/receive-pack.c:47:12: warning: variable 'deny_deletes' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int deny_deletes;
           ^
/datasets/git/builtin/receive-pack.c:48:12: warning: variable 'deny_non_fast_forwards' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int deny_non_fast_forwards;
           ^
/datasets/git/builtin/receive-pack.c:49:25: warning: variable 'deny_current_branch' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static enum deny_action deny_current_branch = DENY_UNCONFIGURED;
                        ^
/datasets/git/builtin/receive-pack.c:50:25: warning: variable 'deny_delete_current' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static enum deny_action deny_delete_current = DENY_UNCONFIGURED;
                        ^
/datasets/git/builtin/receive-pack.c:51:12: warning: variable 'receive_fsck_objects' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int receive_fsck_objects = -1;
           ^
/datasets/git/builtin/receive-pack.c:52:12: warning: variable 'transfer_fsck_objects' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int transfer_fsck_objects = -1;
           ^
/datasets/git/builtin/receive-pack.c:53:22: warning: variable 'fsck_msg_types' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct strbuf fsck_msg_types = STRBUF_INIT;
                     ^
/datasets/git/builtin/receive-pack.c:53:22: warning: initializing non-local variable with non-const expression depending on uninitialized non-local variable 'strbuf_slopbuf' [cppcoreguidelines-interfaces-global-init]
/datasets/git/builtin/receive-pack.c:54:12: warning: variable 'receive_unpack_limit' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int receive_unpack_limit = -1;
           ^
/datasets/git/builtin/receive-pack.c:55:12: warning: variable 'transfer_unpack_limit' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int transfer_unpack_limit = -1;
           ^
/datasets/git/builtin/receive-pack.c:56:12: warning: variable 'advertise_atomic_push' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int advertise_atomic_push = 1;
           ^
/datasets/git/builtin/receive-pack.c:57:12: warning: variable 'advertise_push_options' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int advertise_push_options;
           ^
/datasets/git/builtin/receive-pack.c:58:12: warning: variable 'advertise_sid' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int advertise_sid;
           ^
/datasets/git/builtin/receive-pack.c:59:12: warning: variable 'unpack_limit' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int unpack_limit = 100;
           ^
/datasets/git/builtin/receive-pack.c:59:27: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
static int unpack_limit = 100;
                          ^
/datasets/git/builtin/receive-pack.c:60:14: warning: variable 'max_input_size' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static off_t max_input_size;
             ^
/datasets/git/builtin/receive-pack.c:61:12: warning: variable 'report_status' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int report_status;
           ^
/datasets/git/builtin/receive-pack.c:62:12: warning: variable 'report_status_v2' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int report_status_v2;
           ^
/datasets/git/builtin/receive-pack.c:63:12: warning: variable 'use_sideband' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int use_sideband;
           ^
/datasets/git/builtin/receive-pack.c:64:12: warning: variable 'use_atomic' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int use_atomic;
           ^
/datasets/git/builtin/receive-pack.c:65:12: warning: variable 'use_push_options' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int use_push_options;
           ^
/datasets/git/builtin/receive-pack.c:66:12: warning: variable 'quiet' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int quiet;
           ^
/datasets/git/builtin/receive-pack.c:67:12: warning: variable 'prefer_ofs_delta' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int prefer_ofs_delta = 1;
           ^
/datasets/git/builtin/receive-pack.c:68:12: warning: variable 'auto_update_server_info' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int auto_update_server_info;
           ^
/datasets/git/builtin/receive-pack.c:69:12: warning: variable 'auto_gc' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int auto_gc = 1;
           ^
/datasets/git/builtin/receive-pack.c:70:12: warning: variable 'reject_thin' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int reject_thin;
           ^
/datasets/git/builtin/receive-pack.c:71:12: warning: variable 'stateless_rpc' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int stateless_rpc;
           ^
/datasets/git/builtin/receive-pack.c:72:20: warning: variable 'service_dir' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *service_dir;
                   ^
/datasets/git/builtin/receive-pack.c:73:20: warning: variable 'head_name' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *head_name;
                   ^
/datasets/git/builtin/receive-pack.c:74:14: warning: variable 'head_name_to_free' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static void *head_name_to_free;
             ^
/datasets/git/builtin/receive-pack.c:74:14: warning: variable 'head_name_to_free' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/receive-pack.c:75:12: warning: variable 'sent_capabilities' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int sent_capabilities;
           ^
/datasets/git/builtin/receive-pack.c:76:12: warning: variable 'shallow_update' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int shallow_update;
           ^
/datasets/git/builtin/receive-pack.c:77:20: warning: variable 'alt_shallow_file' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *alt_shallow_file;
                   ^
/datasets/git/builtin/receive-pack.c:78:22: warning: variable 'push_cert' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct strbuf push_cert = STRBUF_INIT;
                     ^
/datasets/git/builtin/receive-pack.c:78:22: warning: initializing non-local variable with non-const expression depending on uninitialized non-local variable 'strbuf_slopbuf' [cppcoreguidelines-interfaces-global-init]
/datasets/git/builtin/receive-pack.c:79:25: warning: variable 'push_cert_oid' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct object_id push_cert_oid;
                        ^
/datasets/git/builtin/receive-pack.c:80:31: warning: variable 'sigcheck' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct signature_check sigcheck;
                              ^
/datasets/git/builtin/receive-pack.c:81:20: warning: variable 'push_cert_nonce' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *push_cert_nonce;
                   ^
/datasets/git/builtin/receive-pack.c:82:20: warning: variable 'cert_nonce_seed' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *cert_nonce_seed;
                   ^
/datasets/git/builtin/receive-pack.c:83:27: warning: variable 'hidden_refs' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct string_list hidden_refs = STRING_LIST_INIT_DUP;
                          ^
/datasets/git/builtin/receive-pack.c:85:20: warning: variable 'NONCE_UNSOLICITED' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *NONCE_UNSOLICITED = "UNSOLICITED";
                   ^
/datasets/git/builtin/receive-pack.c:86:20: warning: variable 'NONCE_BAD' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *NONCE_BAD = "BAD";
                   ^
/datasets/git/builtin/receive-pack.c:87:20: warning: variable 'NONCE_MISSING' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *NONCE_MISSING = "MISSING";
                   ^
/datasets/git/builtin/receive-pack.c:88:20: warning: variable 'NONCE_OK' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *NONCE_OK = "OK";
                   ^
/datasets/git/builtin/receive-pack.c:89:20: warning: variable 'NONCE_SLOP' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *NONCE_SLOP = "SLOP";
                   ^
/datasets/git/builtin/receive-pack.c:90:20: warning: variable 'nonce_status' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *nonce_status;
                   ^
/datasets/git/builtin/receive-pack.c:91:13: warning: variable 'nonce_stamp_slop' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static long nonce_stamp_slop;
            ^
/datasets/git/builtin/receive-pack.c:92:20: warning: variable 'nonce_stamp_slop_limit' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static timestamp_t nonce_stamp_slop_limit;
                   ^
/datasets/git/builtin/receive-pack.c:93:32: warning: variable 'transaction' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct ref_transaction *transaction;
                               ^
/datasets/git/builtin/receive-pack.c:93:32: warning: variable 'transaction' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/receive-pack.c:99:3: warning: variable 'use_keepalive' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} use_keepalive;
  ^
/datasets/git/builtin/receive-pack.c:100:12: warning: variable 'keepalive_in_sec' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int keepalive_in_sec = 5;
           ^
/datasets/git/builtin/receive-pack.c:100:31: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
static int keepalive_in_sec = 5;
                              ^
/datasets/git/builtin/receive-pack.c:102:27: warning: variable 'tmp_objdir' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct tmp_objdir *tmp_objdir;
                          ^
/datasets/git/builtin/receive-pack.c:102:27: warning: variable 'tmp_objdir' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/receive-pack.c:104:15: warning: accessing fields in struct 'proc_receive_ref' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
static struct proc_receive_ref {
              ^
/datasets/git/builtin/receive-pack.c:104:15: note: use "__attribute__((aligned(32)))" to align struct 'proc_receive_ref' to 32 bytes
/datasets/git/builtin/receive-pack.c:111:4: warning: variable 'proc_receive_ref' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} *proc_receive_ref;
   ^
/datasets/git/builtin/receive-pack.c:111:4: warning: variable 'proc_receive_ref' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/receive-pack.c:118:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcasecmp(value, "ignore"))
                                                 ^
                                                  {
/datasets/git/builtin/receive-pack.c:120:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcasecmp(value, "warn"))
                                               ^
                                                {
/datasets/git/builtin/receive-pack.c:122:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcasecmp(value, "refuse"))
                                                 ^
                                                  {
/datasets/git/builtin/receive-pack.c:124:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcasecmp(value, "updateinstead"))
                                                        ^
                                                         {
/datasets/git/builtin/receive-pack.c:127:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (git_config_bool(var, value))
                                        ^
                                         {
/datasets/git/builtin/receive-pack.c:132:12: warning: function 'receive_pack_config' has cognitive complexity of 36 (threshold 25) [readability-function-cognitive-complexity]
static int receive_pack_config(const char *var, const char *value, void *cb)
           ^
/datasets/git/builtin/receive-pack.c:136:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (status)
        ^
/datasets/git/builtin/receive-pack.c:140:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (status)
        ^
/datasets/git/builtin/receive-pack.c:143:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (strcmp(var, "receive.denydeletes") == 0) {
        ^
/datasets/git/builtin/receive-pack.c:148:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (strcmp(var, "receive.denynonfastforwards") == 0) {
        ^
/datasets/git/builtin/receive-pack.c:153:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (strcmp(var, "receive.unpacklimit") == 0) {
        ^
/datasets/git/builtin/receive-pack.c:158:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (strcmp(var, "transfer.unpacklimit") == 0) {
        ^
/datasets/git/builtin/receive-pack.c:163:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (strcmp(var, "receive.fsck.skiplist") == 0) {
        ^
/datasets/git/builtin/receive-pack.c:166:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (git_config_pathname(&path, var, value))
                ^
/datasets/git/builtin/receive-pack.c:169:23: note: +2, including nesting penalty of 1, nesting level increased to 2
                        fsck_msg_types.len ? ',' : '=', path);
                                           ^
/datasets/git/builtin/receive-pack.c:174:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (skip_prefix(var, "receive.fsck.", &var)) {
        ^
/datasets/git/builtin/receive-pack.c:175:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (is_valid_msg_type(var, value))
                ^
/datasets/git/builtin/receive-pack.c:177:24: note: +3, including nesting penalty of 2, nesting level increased to 3
                                fsck_msg_types.len ? ',' : '=', var, value);
                                                   ^
/datasets/git/builtin/receive-pack.c:178:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/receive-pack.c:183:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (strcmp(var, "receive.fsckobjects") == 0) {
        ^
/datasets/git/builtin/receive-pack.c:188:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (strcmp(var, "transfer.fsckobjects") == 0) {
        ^
/datasets/git/builtin/receive-pack.c:193:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "receive.denycurrentbranch")) {
        ^
/datasets/git/builtin/receive-pack.c:198:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (strcmp(var, "receive.denydeletecurrent") == 0) {
        ^
/datasets/git/builtin/receive-pack.c:203:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (strcmp(var, "repack.usedeltabaseoffset") == 0) {
        ^
/datasets/git/builtin/receive-pack.c:208:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (strcmp(var, "receive.updateserverinfo") == 0) {
        ^
/datasets/git/builtin/receive-pack.c:213:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (strcmp(var, "receive.autogc") == 0) {
        ^
/datasets/git/builtin/receive-pack.c:218:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (strcmp(var, "receive.shallowupdate") == 0) {
        ^
/datasets/git/builtin/receive-pack.c:223:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (strcmp(var, "receive.certnonceseed") == 0)
        ^
/datasets/git/builtin/receive-pack.c:226:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (strcmp(var, "receive.certnonceslop") == 0) {
        ^
/datasets/git/builtin/receive-pack.c:231:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (strcmp(var, "receive.advertiseatomic") == 0) {
        ^
/datasets/git/builtin/receive-pack.c:236:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (strcmp(var, "receive.advertisepushoptions") == 0) {
        ^
/datasets/git/builtin/receive-pack.c:241:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (strcmp(var, "receive.keepalive") == 0) {
        ^
/datasets/git/builtin/receive-pack.c:246:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (strcmp(var, "receive.maxinputsize") == 0) {
        ^
/datasets/git/builtin/receive-pack.c:251:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (strcmp(var, "receive.procreceiverefs") == 0) {
        ^
/datasets/git/builtin/receive-pack.c:252:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!value)
                ^
/datasets/git/builtin/receive-pack.c:258:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (strcmp(var, "transfer.advertisesid") == 0) {
        ^
/datasets/git/builtin/receive-pack.c:132:74: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int receive_pack_config(const char *var, const char *value, void *cb)
                                                                         ^
/datasets/git/builtin/receive-pack.c:136:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (status)
                   ^
                    {
/datasets/git/builtin/receive-pack.c:140:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (status)
                   ^
                    {
/datasets/git/builtin/receive-pack.c:164:15: warning: variable 'path' is not initialized [cppcoreguidelines-init-variables]
                const char *path;
                            ^
                                 = NULL
/datasets/git/builtin/receive-pack.c:166:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (git_config_pathname(&path, var, value))
                                                           ^
                                                            {
/datasets/git/builtin/receive-pack.c:175:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_valid_msg_type(var, value))
                                                  ^
                                                   {
/datasets/git/builtin/receive-pack.c:178:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/receive-pack.c:223:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strcmp(var, "receive.certnonceseed") == 0)
                                                      ^
                                                       {
/datasets/git/builtin/receive-pack.c:252:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
                            {
/datasets/git/builtin/receive-pack.c:275:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (advertise_atomic_push)
                                          ^
                                           {
/datasets/git/builtin/receive-pack.c:277:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (prefer_ofs_delta)
                                     ^
                                      {
/datasets/git/builtin/receive-pack.c:279:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (push_cert_nonce)
                                    ^
                                     {
/datasets/git/builtin/receive-pack.c:281:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (advertise_push_options)
                                           ^
                                            {
/datasets/git/builtin/receive-pack.c:283:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (advertise_sid)
                                  ^
                                   {
/datasets/git/builtin/receive-pack.c:300:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ref_is_hidden(path, path_full, &hidden_refs))
                                                         ^
                                                          {
/datasets/git/builtin/receive-pack.c:309:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (oidset_insert(seen, oid))
                                             ^
                                              {
/datasets/git/builtin/receive-pack.c:324:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oidset_insert(seen, oid))
                                     ^
                                      {
/datasets/git/builtin/receive-pack.c:337:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!sent_capabilities)
                               ^
                                {
/datasets/git/builtin/receive-pack.c:363:27: warning: variable 'ref_pattern' is not initialized [cppcoreguidelines-init-variables]
        struct proc_receive_ref *ref_pattern;
                                 ^
                                             = NULL
/datasets/git/builtin/receive-pack.c:364:8: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        char *p;
              ^
                = NULL
/datasets/git/builtin/receive-pack.c:364:8: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/receive-pack.c:365:6: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int len;
            ^
                = 0
/datasets/git/builtin/receive-pack.c:364:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        char *p;
        ^
/datasets/git/builtin/receive-pack.c:370:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (prefix < p) {
                ^
/datasets/git/builtin/receive-pack.c:370:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (prefix < p) {
                       ^
/datasets/git/builtin/receive-pack.c:371:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (*prefix == 'a')
                                           ^
                                            {
/datasets/git/builtin/receive-pack.c:373:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (*prefix == 'd')
                                                ^
                                                 {
/datasets/git/builtin/receive-pack.c:375:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (*prefix == 'm')
                                                ^
                                                 {
/datasets/git/builtin/receive-pack.c:377:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (*prefix == '!')
                                                ^
                                                 {
/datasets/git/builtin/receive-pack.c:387:8: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        len = strlen(prefix);
              ^
/datasets/git/builtin/receive-pack.c:388:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (len && prefix[len - 1] == '/')
        ^
/datasets/git/builtin/receive-pack.c:388:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (len && prefix[len - 1] == '/')
               ^
/datasets/git/builtin/receive-pack.c:388:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (len && prefix[len - 1] == '/')
                                             ^
                                              {
/datasets/git/builtin/receive-pack.c:394:28: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
                struct proc_receive_ref *end;
                                         ^
                                             = NULL
/datasets/git/builtin/receive-pack.c:397:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (end->next)
                ^
/datasets/git/builtin/receive-pack.c:397:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'end' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (end->next)
                       ^
/datasets/git/builtin/receive-pack.c:397:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (end->next)
                                 ^
                                  {
/datasets/git/builtin/receive-pack.c:405:27: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct proc_receive_ref *p;
                                 ^
                                   = NULL
/datasets/git/builtin/receive-pack.c:405:27: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/receive-pack.c:407:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!proc_receive_ref)
                              ^
                               {
/datasets/git/builtin/receive-pack.c:410:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = proc_receive_ref; p; p = p->next) {
        ^
/datasets/git/builtin/receive-pack.c:410:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = proc_receive_ref; p; p = p->next) {
                                   ^
/datasets/git/builtin/receive-pack.c:412:15: warning: variable 'remains' is not initialized [cppcoreguidelines-init-variables]
                const char *remains;
                            ^
                                    = NULL
/datasets/git/builtin/receive-pack.c:414:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!p->want_add && is_null_oid(&cmd->old_oid))
                                                               ^
                                                                {
/datasets/git/builtin/receive-pack.c:415:4: warning: repeated branch in conditional chain [bugprone-branch-clone]
                        continue;
                        ^
/datasets/git/builtin/receive-pack.c:415:12: note: end of the original
                        continue;
                                ^
/datasets/git/builtin/receive-pack.c:417:4: note: clone 1 starts here
                        continue;
                        ^
/datasets/git/builtin/receive-pack.c:421:4: note: clone 2 starts here
                        continue;
                        ^
/datasets/git/builtin/receive-pack.c:416:3: warning: do not use 'else' after 'continue' [llvm-else-after-return,readability-else-after-return]
                else if (!p->want_delete && is_null_oid(&cmd->new_oid))
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/receive-pack.c:416:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!p->want_delete && is_null_oid(&cmd->new_oid))
                                                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/receive-pack.c:420:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                         !is_null_oid(&cmd->new_oid))
                                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/receive-pack.c:425:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!p->negative_ref)
                                             ^
                                              {
/datasets/git/builtin/receive-pack.c:434:28: warning: 2 adjacent parameters of 'report_message' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void report_message(const char *prefix, const char *err, va_list params)
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/receive-pack.c:434:40: note: the first parameter in the range is 'prefix'
static void report_message(const char *prefix, const char *err, va_list params)
                                       ^~~~~~
/datasets/git/builtin/receive-pack.c:434:60: note: the last parameter in the range is 'err'
static void report_message(const char *prefix, const char *err, va_list params)
                                                           ^~~
/datasets/git/builtin/receive-pack.c:436:6: warning: variable 'sz' is not initialized [cppcoreguidelines-init-variables]
        int sz;
            ^
               = 0
/datasets/git/builtin/receive-pack.c:436:6: warning: variable name 'sz' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/receive-pack.c:437:11: warning: 4096 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        char msg[4096];
                 ^
/datasets/git/builtin/receive-pack.c:440:8: warning: Call to function 'vsnprintf' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'vsnprintf_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        sz += vsnprintf(msg + sz, sizeof(msg) - sz, err, params);
              ^~~~~~~~~
/datasets/git/builtin/receive-pack.c:440:8: note: Call to function 'vsnprintf' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'vsnprintf_s' in case of C11
        sz += vsnprintf(msg + sz, sizeof(msg) - sz, err, params);
              ^~~~~~~~~
/datasets/git/builtin/receive-pack.c:440:8: warning: Function 'vsnprintf' is called with an uninitialized va_list argument [clang-analyzer-valist.Uninitialized]
        sz += vsnprintf(msg + sz, sizeof(msg) - sz, err, params);
              ^
/datasets/git/builtin/receive-pack.c:465:2: note: Calling 'report_message'
        report_message("error: ", err, params);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/receive-pack.c:440:8: note: Function 'vsnprintf' is called with an uninitialized va_list argument
        sz += vsnprintf(msg + sz, sizeof(msg) - sz, err, params);
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/receive-pack.c:441:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (sz > (sizeof(msg) - 1))
                                   ^
                                    {
/datasets/git/builtin/receive-pack.c:445:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (use_sideband)
                         ^
                          {
/datasets/git/builtin/receive-pack.c:447:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/receive-pack.c:469:29: warning: 2 adjacent parameters of 'copy_to_sideband' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int copy_to_sideband(int in, int out UNUSED, void *arg UNUSED)
                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/receive-pack.c:469:33: note: the first parameter in the range is 'in'
static int copy_to_sideband(int in, int out UNUSED, void *arg UNUSED)
                                ^~
/datasets/git/builtin/receive-pack.c:469:41: note: the last parameter in the range is 'out'
static int copy_to_sideband(int in, int out UNUSED, void *arg UNUSED)
                                        ^~~
/datasets/git/builtin/receive-pack.c:469:33: warning: parameter name 'in' is too short, expected at least 3 characters [readability-identifier-length]
static int copy_to_sideband(int in, int out UNUSED, void *arg UNUSED)
                                ^
/datasets/git/builtin/receive-pack.c:471:12: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        char data[128];
                  ^
/datasets/git/builtin/receive-pack.c:474:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (keepalive_in_sec <= 0)
                                  ^
                                   {
/datasets/git/builtin/receive-pack.c:476:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (use_keepalive == KEEPALIVE_ALWAYS)
                                              ^
                                               {
/datasets/git/builtin/receive-pack.c:479:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/builtin/receive-pack.c:480:11: warning: variable 'sz' is not initialized [cppcoreguidelines-init-variables]
                ssize_t sz;
                        ^
                           = 0
/datasets/git/builtin/receive-pack.c:480:11: warning: variable name 'sz' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/receive-pack.c:484:8: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
                        int ret;
                            ^
                                = 0
/datasets/git/builtin/receive-pack.c:488:24: warning: 1000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        ret = poll(&pfd, 1, 1000 * keepalive_in_sec);
                                            ^
/datasets/git/builtin/receive-pack.c:491:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (errno == EINTR)
                                                   ^
                                                    {
/datasets/git/builtin/receive-pack.c:493:5: warning: do not use 'else' after 'continue' [llvm-else-after-return,readability-else-after-return]
                                else
                                ^~~~
                                                                        break
/datasets/git/builtin/receive-pack.c:493:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                else
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/receive-pack.c:504:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (sz <= 0)
                            ^
                             {
/datasets/git/builtin/receive-pack.c:508:16: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                        const char *p = memchr(data, '\0', sz);
                                    ^
/datasets/git/builtin/receive-pack.c:539:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/receive-pack.c:539:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/receive-pack.c:543:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(key, '\0', GIT_MAX_BLKSZ);
        ^~~~~~
/datasets/git/builtin/receive-pack.c:543:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(key, '\0', GIT_MAX_BLKSZ);
        ^~~~~~
/datasets/git/builtin/receive-pack.c:549:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(key, key_in, key_len);
                ^~~~~~
/datasets/git/builtin/receive-pack.c:549:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(key, key_in, key_len);
                ^~~~~~
/datasets/git/builtin/receive-pack.c:553:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < sizeof(key); i++) {
        ^
/datasets/git/builtin/receive-pack.c:554:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                k_ipad[i] = key[i] ^ 0x36;
                            ^        ~~~~
/datasets/git/builtin/receive-pack.c:554:24: warning: 0x36 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                k_ipad[i] = key[i] ^ 0x36;
                                     ^
/datasets/git/builtin/receive-pack.c:555:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                k_opad[i] = key[i] ^ 0x5c;
                            ^        ~~~~
/datasets/git/builtin/receive-pack.c:555:24: warning: 0x5c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                k_opad[i] = key[i] ^ 0x5c;
                                     ^
/datasets/git/builtin/receive-pack.c:588:9: warning: variable 'out_len' is not initialized [cppcoreguidelines-init-variables]
        size_t out_len;
               ^
                       = 0
/datasets/git/builtin/receive-pack.c:591:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!val)
                 ^
                  {
/datasets/git/builtin/receive-pack.c:594:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (next_line)
                      ^
                       {
/datasets/git/builtin/receive-pack.c:604:42: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static int constant_memequal(const char *a, const char *b, size_t n)
                                         ^
/datasets/git/builtin/receive-pack.c:604:57: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static int constant_memequal(const char *a, const char *b, size_t n)
                                                        ^
/datasets/git/builtin/receive-pack.c:607:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i;
               ^
                 = 0
/datasets/git/builtin/receive-pack.c:607:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/receive-pack.c:609:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < n; i++)
        ^
/datasets/git/builtin/receive-pack.c:609:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < n; i++)
                               ^
                                {
/datasets/git/builtin/receive-pack.c:610:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                res |= a[i] ^ b[i];
                ^~~
/datasets/git/builtin/receive-pack.c:610:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                res |= a[i] ^ b[i];
                       ^~~~
/datasets/git/builtin/receive-pack.c:617:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        timestamp_t stamp, ostamp;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/receive-pack.c:617:14: warning: variable 'stamp' is not initialized [cppcoreguidelines-init-variables]
        timestamp_t stamp, ostamp;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/receive-pack.c:617:21: warning: variable 'ostamp' is not initialized [cppcoreguidelines-init-variables]
        timestamp_t stamp, ostamp;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/receive-pack.c:618:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *bohmac, *expect = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/receive-pack.c:618:8: warning: variable 'bohmac' is not initialized [cppcoreguidelines-init-variables]
        char *bohmac, *expect = NULL;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/receive-pack.c:619:14: warning: Value stored to 'retval' during its initialization is never read [clang-analyzer-deadcode.DeadStores]
        const char *retval = NONCE_BAD;
                    ^~~~~~   ~~~~~~~~~
/datasets/git/builtin/receive-pack.c:619:14: note: Value stored to 'retval' during its initialization is never read
        const char *retval = NONCE_BAD;
                    ^~~~~~   ~~~~~~~~~
/datasets/git/builtin/receive-pack.c:620:9: warning: variable 'noncelen' is not initialized [cppcoreguidelines-init-variables]
        size_t noncelen;
               ^
                        = 0
/datasets/git/builtin/receive-pack.c:656:42: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        stamp = parse_timestamp(nonce, &bohmac, 10);
                                                ^
/datasets/git/builtin/receive-pack.c:680:50: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        ostamp = parse_timestamp(push_cert_nonce, NULL, 10);
                                                        ^
/datasets/git/builtin/receive-pack.c:710:12: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int len = push_cert.len;
                  ^
/datasets/git/builtin/receive-pack.c:712:8: warning: variable 'option' is not initialized [cppcoreguidelines-init-variables]
        char *option;
              ^
                     = NULL
/datasets/git/builtin/receive-pack.c:713:14: warning: variable 'next_line' is not initialized [cppcoreguidelines-init-variables]
        const char *next_line;
                    ^
                              = NULL
/datasets/git/builtin/receive-pack.c:718:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!len)
                 ^
                  {
/datasets/git/builtin/receive-pack.c:721:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((option = find_header(buf, len, "push-option", &next_line))) {
        ^
/datasets/git/builtin/receive-pack.c:721:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'option' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((option = find_header(buf, len, "push-option", &next_line))) {
               ^
/datasets/git/builtin/receive-pack.c:722:10: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                len -= (next_line - buf);
                       ^
/datasets/git/builtin/receive-pack.c:726:10: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                    || strcmp(option,
                       ^
/datasets/git/builtin/receive-pack.c:734:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (options_seen != push_options->nr)
                                             ^
                                              {
/datasets/git/builtin/receive-pack.c:746:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!push_cert.len)
                           ^
                            {
/datasets/git/builtin/receive-pack.c:750:7: warning: variable 'bogs' is not initialized [cppcoreguidelines-init-variables]
                int bogs /* beginning_of_gpg_sig */;
                    ^
                         = 0
/datasets/git/builtin/receive-pack.c:754:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                      &push_cert_oid))
                                                      ^
                                                       {
/datasets/git/builtin/receive-pack.c:757:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(&sigcheck, '\0', sizeof(sigcheck));
                ^~~~~~
/datasets/git/builtin/receive-pack.c:757:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(&sigcheck, '\0', sizeof(sigcheck));
                ^~~~~~
/datasets/git/builtin/receive-pack.c:759:10: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                bogs = parse_signed_buffer(push_cert.buf, push_cert.len);
                       ^
/datasets/git/builtin/receive-pack.c:783:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (nonce_status == NONCE_SLOP)
                                                       ^
                                                        {
/datasets/git/builtin/receive-pack.c:791:8: warning: accessing fields in struct 'receive_hook_feed_state' is inefficient due to padding; only needs 52 bytes but is using 56 bytes [altera-struct-pack-align]
struct receive_hook_feed_state {
       ^
/datasets/git/builtin/receive-pack.c:791:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'receive_hook_feed_state'
/datasets/git/builtin/receive-pack.c:791:8: warning: accessing fields in struct 'receive_hook_feed_state' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct receive_hook_feed_state {
       ^
/datasets/git/builtin/receive-pack.c:791:8: note: use "__attribute__((aligned(64)))" to align struct 'receive_hook_feed_state' to 64 bytes
/datasets/git/builtin/receive-pack.c:805:6: warning: variable 'code' is not initialized [cppcoreguidelines-init-variables]
        int code;
            ^
                 = 0
/datasets/git/builtin/receive-pack.c:808:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!hook_path)
                       ^
                        {
/datasets/git/builtin/receive-pack.c:817:10: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                size_t i;
                       ^
                         = 0
/datasets/git/builtin/receive-pack.c:817:10: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/receive-pack.c:818:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < feed_state->push_options->nr; i++)
                ^
/datasets/git/builtin/receive-pack.c:818:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < feed_state->push_options->nr; i++)
                                                                  ^
                                                                   {
/datasets/git/builtin/receive-pack.c:825:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/builtin/receive-pack.c:828:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (tmp_objdir)
                       ^
                        {
/datasets/git/builtin/receive-pack.c:832:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(&muxer, 0, sizeof(muxer));
                ^~~~~~
/datasets/git/builtin/receive-pack.c:832:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(&muxer, 0, sizeof(muxer));
                ^~~~~~
/datasets/git/builtin/receive-pack.c:836:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (code)
                         ^
                          {
/datasets/git/builtin/receive-pack.c:845:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (use_sideband)
                                 ^
                                  {
/datasets/git/builtin/receive-pack.c:852:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/builtin/receive-pack.c:853:15: warning: variable 'buf' is not initialized [cppcoreguidelines-init-variables]
                const char *buf;
                            ^
                                = NULL
/datasets/git/builtin/receive-pack.c:854:10: warning: variable 'n' is not initialized [cppcoreguidelines-init-variables]
                size_t n;
                       ^
                         = 0
/datasets/git/builtin/receive-pack.c:854:10: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/receive-pack.c:855:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (feed(feed_state, &buf, &n))
                                               ^
                                                {
/datasets/git/builtin/receive-pack.c:857:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (write_in_full(proc.in, buf, n) < 0)
                                                       ^
                                                        {
/datasets/git/builtin/receive-pack.c:861:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (use_sideband)
                         ^
                          {
/datasets/git/builtin/receive-pack.c:874:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (cmd &&
        ^
/datasets/git/builtin/receive-pack.c:874:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'cmd' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (cmd &&
               ^
/datasets/git/builtin/receive-pack.c:875:73: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
               state->skip_broken && (cmd->error_string || cmd->did_not_exist))
                                                                               ^
                                                                                {
/datasets/git/builtin/receive-pack.c:877:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!cmd)
                 ^
                  {
/datasets/git/builtin/receive-pack.c:879:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!bufp)
                  ^
                   {
/datasets/git/builtin/receive-pack.c:882:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!state->report)
                           ^
                            {
/datasets/git/builtin/receive-pack.c:885:21: warning: variable 'old_oid' is not initialized [cppcoreguidelines-init-variables]
                struct object_id *old_oid;
                                  ^
                                          = NULL
/datasets/git/builtin/receive-pack.c:886:21: warning: variable 'new_oid' is not initialized [cppcoreguidelines-init-variables]
                struct object_id *new_oid;
                                  ^
                                          = NULL
/datasets/git/builtin/receive-pack.c:887:15: warning: variable 'ref_name' is not initialized [cppcoreguidelines-init-variables]
                const char *ref_name;
                            ^
                                     = NULL
/datasets/git/builtin/receive-pack.c:896:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!state->report)
                                   ^
                                    {
/datasets/git/builtin/receive-pack.c:917:6: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int status;
            ^
                   = 0
/datasets/git/builtin/receive-pack.c:923:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (feed_receive_hook(&state, NULL, NULL))
                                                  ^
                                                   {
/datasets/git/builtin/receive-pack.c:935:6: warning: variable 'code' is not initialized [cppcoreguidelines-init-variables]
        int code;
            ^
                 = 0
/datasets/git/builtin/receive-pack.c:938:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!hook_path)
                       ^
                        {
/datasets/git/builtin/receive-pack.c:952:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (code)
                 ^
                  {
/datasets/git/builtin/receive-pack.c:954:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (use_sideband)
                         ^
                          {
/datasets/git/builtin/receive-pack.c:962:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; list; list = list->next)
        ^
/datasets/git/builtin/receive-pack.c:962:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'list' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; list; list = list->next)
               ^
/datasets/git/builtin/receive-pack.c:962:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (; list; list = list->next)
                                       ^
                                        {
/datasets/git/builtin/receive-pack.c:963:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(list->ref_name, refname))
                                                     ^
                                                      {
/datasets/git/builtin/receive-pack.c:968:12: warning: function 'read_proc_receive_report' has cognitive complexity of 67 (threshold 25) [readability-function-cognitive-complexity]
static int read_proc_receive_report(struct packet_reader *reader,
           ^
/datasets/git/builtin/receive-pack.c:980:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (;;) {
        ^
/datasets/git/builtin/receive-pack.c:988:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (status != PACKET_READ_NORMAL) {
                ^
/datasets/git/builtin/receive-pack.c:990:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (status == PACKET_READ_EOF && !response) {
                        ^
/datasets/git/builtin/receive-pack.c:990:34: note: +1
                        if (status == PACKET_READ_EOF && !response) {
                                                      ^
/datasets/git/builtin/receive-pack.c:1000:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!p) {
                ^
/datasets/git/builtin/receive-pack.c:1006:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(head, "option")) {
                ^
/datasets/git/builtin/receive-pack.c:1009:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!hint || !(report || new_report)) {
                        ^
/datasets/git/builtin/receive-pack.c:1009:14: note: +1
                        if (!hint || !(report || new_report)) {
                                  ^
/datasets/git/builtin/receive-pack.c:1010:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!once++)
                                ^
/datasets/git/builtin/receive-pack.c:1015:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (new_report) {
                        ^
/datasets/git/builtin/receive-pack.c:1016:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!hint->report) {
                                ^
/datasets/git/builtin/receive-pack.c:1019:7: note: +1, nesting level increased to 4
                                } else {
                                  ^
/datasets/git/builtin/receive-pack.c:1021:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        while (report->next)
                                        ^
/datasets/git/builtin/receive-pack.c:1030:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (p)
                        ^
/datasets/git/builtin/receive-pack.c:1033:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!strcmp(key, "refname"))
                        ^
/datasets/git/builtin/receive-pack.c:1035:9: note: +1, nesting level increased to 3
                        else if (!strcmp(key, "old-oid") && val &&
                             ^
/datasets/git/builtin/receive-pack.c:1035:44: note: +1
                        else if (!strcmp(key, "old-oid") && val &&
                                                                ^
/datasets/git/builtin/receive-pack.c:1038:9: note: +1, nesting level increased to 3
                        else if (!strcmp(key, "new-oid") && val &&
                             ^
/datasets/git/builtin/receive-pack.c:1038:44: note: +1
                        else if (!strcmp(key, "new-oid") && val &&
                                                                ^
/datasets/git/builtin/receive-pack.c:1041:9: note: +1, nesting level increased to 3
                        else if (!strcmp(key, "forced-update"))
                             ^
/datasets/git/builtin/receive-pack.c:1043:9: note: +1, nesting level increased to 3
                        else if (!strcmp(key, "fall-through"))
                             ^
/datasets/git/builtin/receive-pack.c:1053:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (p)
                ^
/datasets/git/builtin/receive-pack.c:1055:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (strcmp(head, "ok") && strcmp(head, "ng")) {
                ^
/datasets/git/builtin/receive-pack.c:1055:26: note: +1
                if (strcmp(head, "ok") && strcmp(head, "ng")) {
                                       ^
/datasets/git/builtin/receive-pack.c:1063:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (hint)
                ^
/datasets/git/builtin/receive-pack.c:1065:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!hint)
                ^
/datasets/git/builtin/receive-pack.c:1067:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!hint) {
                ^
/datasets/git/builtin/receive-pack.c:1073:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!hint->run_proc_receive) {
                ^
/datasets/git/builtin/receive-pack.c:1080:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(head, "ng")) {
                ^
/datasets/git/builtin/receive-pack.c:1081:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (p)
                        ^
/datasets/git/builtin/receive-pack.c:1083:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/builtin/receive-pack.c:1091:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (cmd = commands; cmd; cmd = cmd->next)
        ^
/datasets/git/builtin/receive-pack.c:1092:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (cmd->run_proc_receive && !cmd->error_string &&
                ^
/datasets/git/builtin/receive-pack.c:1092:51: note: +1
                if (cmd->run_proc_receive && !cmd->error_string &&
                                                                ^
/datasets/git/builtin/receive-pack.c:972:18: warning: variable 'cmd' is not initialized [cppcoreguidelines-init-variables]
        struct command *cmd;
                        ^
                            = NULL
/datasets/git/builtin/receive-pack.c:981:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                struct object_id old_oid, new_oid;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/receive-pack.c:982:15: warning: variable 'head' is not initialized [cppcoreguidelines-init-variables]
                const char *head;
                            ^
                                 = NULL
/datasets/git/builtin/receive-pack.c:983:15: warning: variable 'refname' is not initialized [cppcoreguidelines-init-variables]
                const char *refname;
                            ^
                                    = NULL
/datasets/git/builtin/receive-pack.c:984:9: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                char *p;
                      ^
                        = NULL
/datasets/git/builtin/receive-pack.c:984:9: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/receive-pack.c:985:27: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
                enum packet_read_status status;
                                        ^
/datasets/git/builtin/receive-pack.c:1007:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        const char *key, *val;
                        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/receive-pack.c:1007:16: warning: variable 'key' is not initialized [cppcoreguidelines-init-variables]
                        const char *key, *val;
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/receive-pack.c:1007:22: warning: variable 'val' is not initialized [cppcoreguidelines-init-variables]
                        const char *key, *val;
                                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/receive-pack.c:1010:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!once++)
                                            ^
                                             {
/datasets/git/builtin/receive-pack.c:1021:6: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                        while (report->next)
                                        ^
/datasets/git/builtin/receive-pack.c:1021:13: warning: backward branch (while loop) is ID-dependent due to variable reference to 'report' and may cause performance degradation [altera-id-dependent-backward-branch]
                                        while (report->next)
                                               ^
/datasets/git/builtin/receive-pack.c:1021:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        while (report->next)
                                                            ^
                                                             {
/datasets/git/builtin/receive-pack.c:1030:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (p)
                              ^
                               {
/datasets/git/builtin/receive-pack.c:1033:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!strcmp(key, "refname"))
                                                    ^
                                                     {
/datasets/git/builtin/receive-pack.c:1036:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                 !parse_oid_hex(val, &old_oid, &val))
                                                                     ^
                                                                      {
/datasets/git/builtin/receive-pack.c:1039:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                 !parse_oid_hex(val, &new_oid, &val))
                                                                     ^
                                                                      {
/datasets/git/builtin/receive-pack.c:1041:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (!strcmp(key, "forced-update"))
                                                               ^
                                                                {
/datasets/git/builtin/receive-pack.c:1043:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (!strcmp(key, "fall-through"))
                                                              ^
                                                               {
/datasets/git/builtin/receive-pack.c:1053:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (p)
                      ^
                       {
/datasets/git/builtin/receive-pack.c:1055:7: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (strcmp(head, "ok") && strcmp(head, "ng")) {
                    ^
                                       != 0
/datasets/git/builtin/receive-pack.c:1063:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (hint)
                         ^
                          {
/datasets/git/builtin/receive-pack.c:1065:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!hint)
                          ^
                           {
/datasets/git/builtin/receive-pack.c:1079:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                hint->run_proc_receive |= RUN_PROC_RECEIVE_RETURNED;
                ^
/datasets/git/builtin/receive-pack.c:1081:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (p)
                              ^
                               {
/datasets/git/builtin/receive-pack.c:1083:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/builtin/receive-pack.c:1091:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cmd = commands; cmd; cmd = cmd->next)
        ^
/datasets/git/builtin/receive-pack.c:1091:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cmd' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (cmd = commands; cmd; cmd = cmd->next)
                             ^
/datasets/git/builtin/receive-pack.c:1091:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (cmd = commands; cmd; cmd = cmd->next)
                                                  ^
                                                   {
/datasets/git/builtin/receive-pack.c:1093:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    !(cmd->run_proc_receive & RUN_PROC_RECEIVE_RETURNED)) {
                      ^
/datasets/git/builtin/receive-pack.c:1100:12: warning: function 'run_proc_receive_hook' has cognitive complexity of 59 (threshold 25) [readability-function-cognitive-complexity]
static int run_proc_receive_hook(struct command *commands,
           ^
/datasets/git/builtin/receive-pack.c:1114:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!hook_path) {
        ^
/datasets/git/builtin/receive-pack.c:1124:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (use_sideband) {
        ^
/datasets/git/builtin/receive-pack.c:1129:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (code)
                ^
/datasets/git/builtin/receive-pack.c:1132:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/receive-pack.c:1137:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (code) {
        ^
/datasets/git/builtin/receive-pack.c:1138:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (use_sideband)
                ^
/datasets/git/builtin/receive-pack.c:1149:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (use_atomic)
        ^
/datasets/git/builtin/receive-pack.c:1151:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (use_push_options)
        ^
/datasets/git/builtin/receive-pack.c:1153:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (cap.len) {
        ^
/datasets/git/builtin/receive-pack.c:1156:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/receive-pack.c:1159:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!code)
        ^
/datasets/git/builtin/receive-pack.c:1162:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!code)
        ^
/datasets/git/builtin/receive-pack.c:1168:4: note: +2, including nesting penalty of 1, nesting level increased to 2
                        if (status != PACKET_READ_NORMAL) {
                        ^
/datasets/git/builtin/receive-pack.c:1170:5: note: +3, including nesting penalty of 2, nesting level increased to 3
                                if (status == PACKET_READ_EOF)
                                ^
/datasets/git/builtin/receive-pack.c:1175:4: note: +2, including nesting penalty of 1, nesting level increased to 2
                        if (reader.pktlen > 8 && starts_with(reader.line, "version=")) {
                        ^
/datasets/git/builtin/receive-pack.c:1175:26: note: +1
                        if (reader.pktlen > 8 && starts_with(reader.line, "version=")) {
                                              ^
/datasets/git/builtin/receive-pack.c:1178:5: note: +3, including nesting penalty of 2, nesting level increased to 3
                                if (linelen < reader.pktlen) {
                                ^
/datasets/git/builtin/receive-pack.c:1180:6: note: +4, including nesting penalty of 3, nesting level increased to 4
                                        if (parse_feature_request(feature_list, "push-options"))
                                        ^
/datasets/git/builtin/receive-pack.c:1186:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (code) {
        ^
/datasets/git/builtin/receive-pack.c:1188:3: note: +1
                goto cleanup;
                ^
/datasets/git/builtin/receive-pack.c:1191:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        switch (version) {
        ^
/datasets/git/builtin/receive-pack.c:1200:3: note: +1
                goto cleanup;
                ^
/datasets/git/builtin/receive-pack.c:1204:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (cmd = commands; cmd; cmd = cmd->next) {
        ^
/datasets/git/builtin/receive-pack.c:1205:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!cmd->run_proc_receive || cmd->skip_update || cmd->error_string)
                ^
/datasets/git/builtin/receive-pack.c:1205:50: note: +1
                if (!cmd->run_proc_receive || cmd->skip_update || cmd->error_string)
                                                               ^
/datasets/git/builtin/receive-pack.c:1211:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (code)
                ^
/datasets/git/builtin/receive-pack.c:1214:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!code)
        ^
/datasets/git/builtin/receive-pack.c:1216:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (code) {
        ^
/datasets/git/builtin/receive-pack.c:1218:3: note: +1
                goto cleanup;
                ^
/datasets/git/builtin/receive-pack.c:1222:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (hook_use_push_options) {
        ^
/datasets/git/builtin/receive-pack.c:1225:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for_each_string_list_item(item, push_options) {
                ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/receive-pack.c:1225:3: note: +1
                for_each_string_list_item(item, push_options) {
                ^
/datasets/git/./string-list.h:152:12: note: expanded from macro 'for_each_string_list_item'
             item && item < (list)->items + (list)->nr; \
                  ^
/datasets/git/builtin/receive-pack.c:1227:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (code)
                        ^
/datasets/git/builtin/receive-pack.c:1230:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!code)
                ^
/datasets/git/builtin/receive-pack.c:1232:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (code) {
                ^
/datasets/git/builtin/receive-pack.c:1235:4: note: +1
                        goto cleanup;
                        ^
/datasets/git/builtin/receive-pack.c:1245:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (use_sideband)
        ^
/datasets/git/builtin/receive-pack.c:1247:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (finish_command(&proc))
        ^
/datasets/git/builtin/receive-pack.c:1249:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (errmsg.len >0) {
        ^
/datasets/git/builtin/receive-pack.c:1253:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*p == '\n')
                ^
/datasets/git/builtin/receive-pack.c:1105:18: warning: variable 'cmd' is not initialized [cppcoreguidelines-init-variables]
        struct command *cmd;
                        ^
                            = NULL
/datasets/git/builtin/receive-pack.c:1111:6: warning: variable 'code' is not initialized [cppcoreguidelines-init-variables]
        int code;
            ^
                 = 0
/datasets/git/builtin/receive-pack.c:1125:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(&muxer, 0, sizeof(muxer));
                ^~~~~~
/datasets/git/builtin/receive-pack.c:1125:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(&muxer, 0, sizeof(muxer));
                ^~~~~~
/datasets/git/builtin/receive-pack.c:1129:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (code)
                         ^
                          {
/datasets/git/builtin/receive-pack.c:1138:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (use_sideband)
                                 ^
                                  {
/datasets/git/builtin/receive-pack.c:1147:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                           PACKET_READ_CHOMP_NEWLINE |
                           ^
/datasets/git/./pkt-line.h:85:43: note: expanded from macro 'PACKET_READ_CHOMP_NEWLINE'
#define PACKET_READ_CHOMP_NEWLINE        (1u<<1)
                                          ^   ~
/datasets/git/builtin/receive-pack.c:1148:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                           PACKET_READ_GENTLE_ON_EOF);
                           ^
/datasets/git/./pkt-line.h:84:43: note: expanded from macro 'PACKET_READ_GENTLE_ON_EOF'
#define PACKET_READ_GENTLE_ON_EOF        (1u<<0)
                                          ^   ~
/datasets/git/builtin/receive-pack.c:1149:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (use_atomic)
                       ^
                        {
/datasets/git/builtin/receive-pack.c:1151:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (use_push_options)
                             ^
                              {
/datasets/git/builtin/receive-pack.c:1159:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!code)
                  ^
                   {
/datasets/git/builtin/receive-pack.c:1162:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!code)
                  ^
                   {
/datasets/git/builtin/receive-pack.c:1163:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (;;) {
                ^
/datasets/git/builtin/receive-pack.c:1164:8: warning: variable 'linelen' is not initialized [cppcoreguidelines-init-variables]
                        int linelen;
                            ^
                                    = 0
/datasets/git/builtin/receive-pack.c:1165:28: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
                        enum packet_read_status status;
                                                ^
/datasets/git/builtin/receive-pack.c:1170:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (status == PACKET_READ_EOF)
                                                              ^
                                                               {
/datasets/git/builtin/receive-pack.c:1175:24: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        if (reader.pktlen > 8 && starts_with(reader.line, "version=")) {
                                            ^
/datasets/git/builtin/receive-pack.c:1176:15: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c]
                                version = atoi(reader.line + 8);
                                          ^
/datasets/git/builtin/receive-pack.c:1176:34: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                version = atoi(reader.line + 8);
                                                             ^
/datasets/git/builtin/receive-pack.c:1177:15: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                linelen = strlen(reader.line);
                                          ^
/datasets/git/builtin/receive-pack.c:1180:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        if (parse_feature_request(feature_list, "push-options"))
                                                                                                ^
                                                                                                 {
/datasets/git/builtin/receive-pack.c:1204:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cmd = commands; cmd; cmd = cmd->next) {
        ^
/datasets/git/builtin/receive-pack.c:1204:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cmd' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (cmd = commands; cmd; cmd = cmd->next) {
                             ^
/datasets/git/builtin/receive-pack.c:1205:71: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!cmd->run_proc_receive || cmd->skip_update || cmd->error_string)
                                                                                    ^
                                                                                     {
/datasets/git/builtin/receive-pack.c:1211:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (code)
                         ^
                          {
/datasets/git/builtin/receive-pack.c:1214:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!code)
                  ^
                   {
/datasets/git/builtin/receive-pack.c:1223:28: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
                struct string_list_item *item;
                                         ^
                                              = NULL
/datasets/git/builtin/receive-pack.c:1225:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for_each_string_list_item(item, push_options) {
                ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/receive-pack.c:1225:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
                for_each_string_list_item(item, push_options) {
                                          ^
/datasets/git/builtin/receive-pack.c:1227:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (code)
                                 ^
                                  {
/datasets/git/builtin/receive-pack.c:1230:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!code)
                          ^
                           {
/datasets/git/builtin/receive-pack.c:1245:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (use_sideband)
                         ^
                          {
/datasets/git/builtin/receive-pack.c:1247:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (finish_command(&proc))
                                  ^
                                   {
/datasets/git/builtin/receive-pack.c:1250:9: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                char *p = errmsg.buf;
                      ^
/datasets/git/builtin/receive-pack.c:1253:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*p == '\n')
                               ^
                                {
/datasets/git/builtin/receive-pack.c:1263:14: warning: variable 'refuse_unconfigured_deny_msg' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *refuse_unconfigured_deny_msg =
             ^
/datasets/git/builtin/receive-pack.c:1263:14: warning: variable 'refuse_unconfigured_deny_msg' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/receive-pack.c:1283:14: warning: variable 'refuse_unconfigured_deny_delete_current_msg' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *refuse_unconfigured_deny_delete_current_msg =
             ^
/datasets/git/builtin/receive-pack.c:1283:14: warning: variable 'refuse_unconfigured_deny_delete_current_msg' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/receive-pack.c:1299:73: warning: parameter name 'si' is too short, expected at least 3 characters [readability-identifier-length]
static int update_shallow_ref(struct command *cmd, struct shallow_info *si)
                                                                        ^
/datasets/git/builtin/receive-pack.c:1304:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        uint32_t mask = 1 << (cmd->index % 32);
                        ^
/datasets/git/builtin/receive-pack.c:1304:37: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        uint32_t mask = 1 << (cmd->index % 32);
                                           ^
/datasets/git/builtin/receive-pack.c:1305:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/receive-pack.c:1305:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/receive-pack.c:1307:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf_key(&trace_shallow,
        ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/builtin/receive-pack.c:1309:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < si->shallow->nr; i++)
        ^
/datasets/git/builtin/receive-pack.c:1309:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < si->shallow->nr; i++)
                                             ^
                                              {
/datasets/git/builtin/receive-pack.c:1311:41: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                    (si->used_shallow[i][cmd->index / 32] & mask) &&
                                                      ^
/datasets/git/builtin/receive-pack.c:1312:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !delayed_reachability_test(si, i))
                                                      ^
                                                       {
/datasets/git/builtin/receive-pack.c:1329:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < extra.nr; i++)
        ^
/datasets/git/builtin/receive-pack.c:1329:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < extra.nr; i++)
                                      ^
                                       {
/datasets/git/builtin/receive-pack.c:1366:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (run_command(&child))
                                ^
                                 {
/datasets/git/builtin/receive-pack.c:1378:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (run_command(&child))
                                ^
                                 {
/datasets/git/builtin/receive-pack.c:1392:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (run_command(&child))
                                ^
                                 {
/datasets/git/builtin/receive-pack.c:1404:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (run_command(&child))
                                ^
                                 {
/datasets/git/builtin/receive-pack.c:1410:20: warning: variable 'push_to_checkout_hook' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *push_to_checkout_hook = "push-to-checkout";
                   ^
/datasets/git/builtin/receive-pack.c:1423:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (run_hooks_opt(push_to_checkout_hook, &opt))
                                                       ^
                                                        {
/datasets/git/builtin/receive-pack.c:1425:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else
        ^~~~
                        return NULL
/datasets/git/builtin/receive-pack.c:1425:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/receive-pack.c:1431:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *retval, *git_dir;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/receive-pack.c:1431:14: warning: variable 'retval' is not initialized [cppcoreguidelines-init-variables]
        const char *retval, *git_dir;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/receive-pack.c:1431:23: warning: variable 'git_dir' is not initialized [cppcoreguidelines-init-variables]
        const char *retval, *git_dir;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/receive-pack.c:1433:6: warning: variable 'invoked_hook' is not initialized [cppcoreguidelines-init-variables]
        int invoked_hook;
            ^
                         = 0
/datasets/git/builtin/receive-pack.c:1435:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!worktree || !worktree->path)
                                         ^
                                          {
/datasets/git/builtin/receive-pack.c:1438:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (worktree->is_bare)
                              ^
                               {
/datasets/git/builtin/receive-pack.c:1445:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!invoked_hook)
                          ^
                           {
/datasets/git/builtin/receive-pack.c:1452:20: warning: function 'update' has cognitive complexity of 65 (threshold 25) [readability-function-cognitive-complexity]
static const char *update(struct command *cmd, struct shallow_info *si)
                   ^
/datasets/git/builtin/receive-pack.c:1466:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!starts_with(name, "refs/") || check_refname_format(name + 5, 0)) {
        ^
/datasets/git/builtin/receive-pack.c:1466:34: note: +1
        if (!starts_with(name, "refs/") || check_refname_format(name + 5, 0)) {
                                        ^
/datasets/git/builtin/receive-pack.c:1469:3: note: +1
                goto out;
                ^
/datasets/git/builtin/receive-pack.c:1476:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (worktree && !worktree->is_bare) {
        ^
/datasets/git/builtin/receive-pack.c:1476:15: note: +1
        if (worktree && !worktree->is_bare) {
                     ^
/datasets/git/builtin/receive-pack.c:1477:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                switch (deny_current_branch) {
                ^
/datasets/git/builtin/receive-pack.c:1486:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (deny_current_branch == DENY_UNCONFIGURED)
                        ^
/datasets/git/builtin/receive-pack.c:1489:4: note: +1
                        goto out;
                        ^
/datasets/git/builtin/receive-pack.c:1497:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!is_null_oid(new_oid) && !has_object_file(new_oid)) {
        ^
/datasets/git/builtin/receive-pack.c:1497:28: note: +1
        if (!is_null_oid(new_oid) && !has_object_file(new_oid)) {
                                  ^
/datasets/git/builtin/receive-pack.c:1501:3: note: +1
                goto out;
                ^
/datasets/git/builtin/receive-pack.c:1504:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!is_null_oid(old_oid) && is_null_oid(new_oid)) {
        ^
/datasets/git/builtin/receive-pack.c:1504:28: note: +1
        if (!is_null_oid(old_oid) && is_null_oid(new_oid)) {
                                  ^
/datasets/git/builtin/receive-pack.c:1505:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (deny_deletes && starts_with(name, "refs/heads/")) {
                ^
/datasets/git/builtin/receive-pack.c:1505:20: note: +1
                if (deny_deletes && starts_with(name, "refs/heads/")) {
                                 ^
/datasets/git/builtin/receive-pack.c:1508:4: note: +1
                        goto out;
                        ^
/datasets/git/builtin/receive-pack.c:1511:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (worktree || (head_name && !strcmp(namespaced_name, head_name))) {
                ^
/datasets/git/builtin/receive-pack.c:1511:16: note: +1
                if (worktree || (head_name && !strcmp(namespaced_name, head_name))) {
                             ^
/datasets/git/builtin/receive-pack.c:1511:30: note: +1
                if (worktree || (head_name && !strcmp(namespaced_name, head_name))) {
                                           ^
/datasets/git/builtin/receive-pack.c:1512:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        switch (deny_delete_current) {
                        ^
/datasets/git/builtin/receive-pack.c:1521:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (deny_delete_current == DENY_UNCONFIGURED)
                                ^
/datasets/git/builtin/receive-pack.c:1525:5: note: +1
                                goto out;
                                ^
/datasets/git/builtin/receive-pack.c:1528:5: note: +1
                                goto out;
                                ^
/datasets/git/builtin/receive-pack.c:1533:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (deny_non_fast_forwards && !is_null_oid(new_oid) &&
        ^
/datasets/git/builtin/receive-pack.c:1534:28: note: +1
            !is_null_oid(old_oid) &&
                                  ^
/datasets/git/builtin/receive-pack.c:1542:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!old_object || !new_object ||
                ^
/datasets/git/builtin/receive-pack.c:1543:38: note: +1
                    old_object->type != OBJ_COMMIT ||
                                                   ^
/datasets/git/builtin/receive-pack.c:1547:4: note: +1
                        goto out;
                        ^
/datasets/git/builtin/receive-pack.c:1551:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!in_merge_bases(old_commit, new_commit)) {
                ^
/datasets/git/builtin/receive-pack.c:1555:4: note: +1
                        goto out;
                        ^
/datasets/git/builtin/receive-pack.c:1558:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (run_update_hook(cmd)) {
        ^
/datasets/git/builtin/receive-pack.c:1561:3: note: +1
                goto out;
                ^
/datasets/git/builtin/receive-pack.c:1564:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (do_update_worktree) {
        ^
/datasets/git/builtin/receive-pack.c:1566:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ret)
                ^
/datasets/git/builtin/receive-pack.c:1570:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (is_null_oid(new_oid)) {
        ^
/datasets/git/builtin/receive-pack.c:1572:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!parse_object(the_repository, old_oid)) {
                ^
/datasets/git/builtin/receive-pack.c:1574:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ref_exists(name)) {
                        ^
/datasets/git/builtin/receive-pack.c:1576:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/builtin/receive-pack.c:1581:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ref_transaction_delete(transaction,
                ^
/datasets/git/builtin/receive-pack.c:1587:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/receive-pack.c:1592:2: note: +1, nesting level increased to 1
        else {
        ^
/datasets/git/builtin/receive-pack.c:1594:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (shallow_update && si->shallow_ref[cmd->index] &&
                ^
/datasets/git/builtin/receive-pack.c:1594:53: note: +1
                if (shallow_update && si->shallow_ref[cmd->index] &&
                                                                  ^
/datasets/git/builtin/receive-pack.c:1597:4: note: +1
                        goto out;
                        ^
/datasets/git/builtin/receive-pack.c:1600:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ref_transaction_update(transaction,
                ^
/datasets/git/builtin/receive-pack.c:1607:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/receive-pack.c:1452:69: warning: parameter name 'si' is too short, expected at least 3 characters [readability-identifier-length]
static const char *update(struct command *cmd, struct shallow_info *si)
                                                                    ^
/datasets/git/builtin/receive-pack.c:1456:15: warning: variable 'namespaced_name' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
        static char *namespaced_name;
                     ^
/datasets/git/builtin/receive-pack.c:1457:14: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        const char *ret;
                    ^
                        = NULL
/datasets/git/builtin/receive-pack.c:1466:65: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (!starts_with(name, "refs/") || check_refname_format(name + 5, 0)) {
                                                                       ^
/datasets/git/builtin/receive-pack.c:1477:3: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
                switch (deny_current_branch) {
                ^
/datasets/git/builtin/receive-pack.c:1486:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (deny_current_branch == DENY_UNCONFIGURED)
                                                                     ^
                                                                      {
/datasets/git/builtin/receive-pack.c:1521:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (deny_delete_current == DENY_UNCONFIGURED)
                                                                             ^
                                                                              {
/datasets/git/builtin/receive-pack.c:1536:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                struct object *old_object, *new_object;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/receive-pack.c:1536:18: warning: variable 'old_object' is not initialized [cppcoreguidelines-init-variables]
                struct object *old_object, *new_object;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/receive-pack.c:1536:31: warning: variable 'new_object' is not initialized [cppcoreguidelines-init-variables]
                struct object *old_object, *new_object;
                                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/receive-pack.c:1537:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                struct commit *old_commit, *new_commit;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/receive-pack.c:1537:18: warning: variable 'old_commit' is not initialized [cppcoreguidelines-init-variables]
                struct commit *old_commit, *new_commit;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/receive-pack.c:1537:31: warning: variable 'new_commit' is not initialized [cppcoreguidelines-init-variables]
                struct commit *old_commit, *new_commit;
                                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/receive-pack.c:1566:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret)
                        ^
                         {
/datasets/git/builtin/receive-pack.c:1620:18: warning: variable 'cmd' is not initialized [cppcoreguidelines-init-variables]
        struct command *cmd;
                        ^
                            = NULL
/datasets/git/builtin/receive-pack.c:1622:14: warning: variable 'hook' is not initialized [cppcoreguidelines-init-variables]
        const char *hook;
                    ^
                         = NULL
/datasets/git/builtin/receive-pack.c:1625:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!hook)
                  ^
                   {
/datasets/git/builtin/receive-pack.c:1628:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cmd = commands; cmd; cmd = cmd->next) {
        ^
/datasets/git/builtin/receive-pack.c:1628:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cmd' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (cmd = commands; cmd; cmd = cmd->next) {
                             ^
/datasets/git/builtin/receive-pack.c:1629:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cmd->error_string || cmd->did_not_exist)
                                                            ^
                                                             {
/datasets/git/builtin/receive-pack.c:1631:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!proc.args.nr)
                                  ^
                                   {
/datasets/git/builtin/receive-pack.c:1635:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!proc.args.nr)
                          ^
                           {
/datasets/git/builtin/receive-pack.c:1644:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (use_sideband)
                                 ^
                                  {
/datasets/git/builtin/receive-pack.c:1654:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/builtin/receive-pack.c:1655:18: warning: variable 'dst_cmd' is not initialized [cppcoreguidelines-init-variables]
        struct command *dst_cmd;
                        ^
                                = NULL
/datasets/git/builtin/receive-pack.c:1657:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flag & REF_ISSYMREF))
              ^~~~
/datasets/git/builtin/receive-pack.c:1657:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(flag & REF_ISSYMREF))
                                   ^
                                    {
/datasets/git/builtin/receive-pack.c:1668:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if (!(item = string_list_lookup(list, dst_name)))
              ^
/datasets/git/builtin/receive-pack.c:1668:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/builtin/receive-pack.c:1668:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/builtin/receive-pack.c:1668:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(item = string_list_lookup(list, dst_name)))
                                                         ^
                                                          {
/datasets/git/builtin/receive-pack.c:1676:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            oideq(&cmd->new_oid, &dst_cmd->new_oid))
                                                    ^
                                                     {
/datasets/git/builtin/receive-pack.c:1697:14: warning: variable 'dst_name' is not initialized [cppcoreguidelines-init-variables]
        const char *dst_name;
                    ^
                             = NULL
/datasets/git/builtin/receive-pack.c:1698:6: warning: variable 'flag' is not initialized [cppcoreguidelines-init-variables]
        int flag;
            ^
                 = 0
/datasets/git/builtin/receive-pack.c:1708:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct command *cmd;
        ^
/datasets/git/builtin/receive-pack.c:1708:18: warning: variable 'cmd' is not initialized [cppcoreguidelines-init-variables]
        struct command *cmd;
                        ^
                            = NULL
/datasets/git/builtin/receive-pack.c:1711:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cmd = commands; cmd; cmd = cmd->next) {
        ^
/datasets/git/builtin/receive-pack.c:1708:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct command *cmd;
        ^
/datasets/git/builtin/receive-pack.c:1711:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cmd' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (cmd = commands; cmd; cmd = cmd->next) {
                             ^
/datasets/git/builtin/receive-pack.c:1718:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cmd = commands; cmd; cmd = cmd->next) {
        ^
/datasets/git/builtin/receive-pack.c:1718:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cmd' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (cmd = commands; cmd; cmd = cmd->next) {
                             ^
/datasets/git/builtin/receive-pack.c:1719:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!cmd->error_string)
                                       ^
                                        {
/datasets/git/builtin/receive-pack.c:1731:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!cmd || is_null_oid(&cmd->new_oid))
                                               ^
                                                {
/datasets/git/builtin/receive-pack.c:1738:30: warning: parameter name 'si' is too short, expected at least 3 characters [readability-identifier-length]
                                    struct shallow_info *si)
                                                         ^
/datasets/git/builtin/receive-pack.c:1740:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct command *cmd;
        ^
/datasets/git/builtin/receive-pack.c:1740:18: warning: variable 'cmd' is not initialized [cppcoreguidelines-init-variables]
        struct command *cmd;
                        ^
                            = NULL
/datasets/git/builtin/receive-pack.c:1742:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cmd = commands; cmd; cmd = cmd->next) {
        ^
/datasets/git/builtin/receive-pack.c:1742:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cmd' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (cmd = commands; cmd; cmd = cmd->next) {
                             ^
/datasets/git/builtin/receive-pack.c:1746:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (shallow_update && si->shallow_ref[cmd->index])
                                                                  ^
                                                                   {
/datasets/git/builtin/receive-pack.c:1752:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                     &opt))
                                           ^
                                            {
/datasets/git/builtin/receive-pack.c:1759:8: warning: accessing fields in struct 'iterate_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct iterate_data {
       ^
/datasets/git/builtin/receive-pack.c:1759:8: note: use "__attribute__((aligned(16)))" to align struct 'iterate_data' to 16 bytes
/datasets/git/builtin/receive-pack.c:1768:2: note: inferred assignment of ID-dependent value from ID-dependent variable cmd_list [altera-id-dependent-backward-branch]
        struct command *cmd = *cmd_list;
        ^
/datasets/git/builtin/receive-pack.c:1770:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; cmd; cmd = cmd->next) {
        ^
/datasets/git/builtin/receive-pack.c:1770:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cmd' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; cmd; cmd = cmd->next) {
               ^
/datasets/git/builtin/receive-pack.c:1771:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (shallow_update && data->si->shallow_ref[cmd->index])
                                                                        ^
                                                                         {
/datasets/git/builtin/receive-pack.c:1785:9: warning: variable 'prefix_len' is not initialized [cppcoreguidelines-init-variables]
        size_t prefix_len;
               ^
                          = 0
/datasets/git/builtin/receive-pack.c:1786:18: warning: variable 'cmd' is not initialized [cppcoreguidelines-init-variables]
        struct command *cmd;
                        ^
                            = NULL
/datasets/git/builtin/receive-pack.c:1791:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cmd = commands; cmd; cmd = cmd->next) {
        ^
/datasets/git/builtin/receive-pack.c:1791:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cmd' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (cmd = commands; cmd; cmd = cmd->next) {
                             ^
/datasets/git/builtin/receive-pack.c:1792:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cmd->error_string)
                                      ^
                                       {
/datasets/git/builtin/receive-pack.c:1798:69: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ref_is_hidden(cmd->ref_name, refname_full.buf, &hidden_refs))
                                                                                  ^
                                                                                   {
/datasets/git/builtin/receive-pack.c:1800:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_null_oid(&cmd->new_oid))
                                               ^
                                                {
/datasets/git/builtin/receive-pack.c:1802:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/receive-pack.c:1815:34: warning: parameter name 'si' is too short, expected at least 3 characters [readability-identifier-length]
                                               struct shallow_info *si)
                                                                    ^
/datasets/git/builtin/receive-pack.c:1817:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct command *cmd;
        ^
/datasets/git/builtin/receive-pack.c:1817:18: warning: variable 'cmd' is not initialized [cppcoreguidelines-init-variables]
        struct command *cmd;
                        ^
                            = NULL
/datasets/git/builtin/receive-pack.c:1819:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cmd = commands; cmd; cmd = cmd->next) {
        ^
/datasets/git/builtin/receive-pack.c:1819:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cmd' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (cmd = commands; cmd; cmd = cmd->next) {
                             ^
/datasets/git/builtin/receive-pack.c:1820:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (should_process_cmd(cmd) && si->shallow_ref[cmd->index])
                                                                           ^
                                                                            {
/datasets/git/builtin/receive-pack.c:1824:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_if_bug("connectivity check skipped???");
        ^
/datasets/git/./git-compat-util.h:1390:25: note: expanded from macro 'BUG_if_bug'
#define BUG_if_bug(...) do { \
                        ^
/datasets/git/builtin/receive-pack.c:1828:27: warning: parameter name 'si' is too short, expected at least 3 characters [readability-identifier-length]
                                        struct shallow_info *si)
                                                             ^
/datasets/git/builtin/receive-pack.c:1830:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct command *cmd;
        ^
/datasets/git/builtin/receive-pack.c:1830:18: warning: variable 'cmd' is not initialized [cppcoreguidelines-init-variables]
        struct command *cmd;
                        ^
                            = NULL
/datasets/git/builtin/receive-pack.c:1833:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cmd = commands; cmd; cmd = cmd->next) {
        ^
/datasets/git/builtin/receive-pack.c:1833:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cmd' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (cmd = commands; cmd; cmd = cmd->next) {
                             ^
/datasets/git/builtin/receive-pack.c:1834:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!should_process_cmd(cmd) || cmd->run_proc_receive)
                                                                      ^
                                                                       {
/datasets/git/builtin/receive-pack.c:1859:27: warning: parameter name 'si' is too short, expected at least 3 characters [readability-identifier-length]
                                        struct shallow_info *si)
                                                             ^
/datasets/git/builtin/receive-pack.c:1861:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct command *cmd;
        ^
/datasets/git/builtin/receive-pack.c:1861:18: warning: variable 'cmd' is not initialized [cppcoreguidelines-init-variables]
        struct command *cmd;
                        ^
                            = NULL
/datasets/git/builtin/receive-pack.c:1873:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cmd = commands; cmd; cmd = cmd->next) {
        ^
/datasets/git/builtin/receive-pack.c:1873:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cmd' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (cmd = commands; cmd; cmd = cmd->next) {
                             ^
/datasets/git/builtin/receive-pack.c:1874:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!should_process_cmd(cmd) || cmd->run_proc_receive)
                                                                      ^
                                                                       {
/datasets/git/builtin/receive-pack.c:1879:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cmd->error_string)
                                      ^
                                       {
/datasets/git/builtin/receive-pack.c:1891:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cmd = commands; cmd; cmd = cmd->next)
        ^
/datasets/git/builtin/receive-pack.c:1891:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cmd' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (cmd = commands; cmd; cmd = cmd->next)
                             ^
/datasets/git/builtin/receive-pack.c:1891:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (cmd = commands; cmd; cmd = cmd->next)
                                                  ^
                                                   {
/datasets/git/builtin/receive-pack.c:1892:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!cmd->error_string)
                                       ^
                                        {
/datasets/git/builtin/receive-pack.c:1900:13: warning: function 'execute_commands' has cognitive complexity of 42 (threshold 25) [readability-function-cognitive-complexity]
static void execute_commands(struct command *commands,
            ^
/datasets/git/builtin/receive-pack.c:1912:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (unpacker_error) {
        ^
/datasets/git/builtin/receive-pack.c:1913:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (cmd = commands; cmd; cmd = cmd->next)
                ^
/datasets/git/builtin/receive-pack.c:1918:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (use_sideband) {
        ^
/datasets/git/builtin/receive-pack.c:1922:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!start_async(&muxer))
                ^
/datasets/git/builtin/receive-pack.c:1930:24: note: +1
        opt.progress = err_fd && !quiet;
                              ^
/datasets/git/builtin/receive-pack.c:1934:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (check_connected(iterate_receive_command_list, &data, &opt))
        ^
/datasets/git/builtin/receive-pack.c:1937:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (use_sideband)
        ^
/datasets/git/builtin/receive-pack.c:1946:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (proc_receive_ref) {
        ^
/datasets/git/builtin/receive-pack.c:1947:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (cmd = commands; cmd; cmd = cmd->next) {
                ^
/datasets/git/builtin/receive-pack.c:1948:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!should_process_cmd(cmd))
                        ^
/datasets/git/builtin/receive-pack.c:1951:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (proc_receive_ref_matches(cmd)) {
                        ^
/datasets/git/builtin/receive-pack.c:1958:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (run_receive_hook(commands, "pre-receive", 0, push_options)) {
        ^
/datasets/git/builtin/receive-pack.c:1959:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (cmd = commands; cmd; cmd = cmd->next) {
                ^
/datasets/git/builtin/receive-pack.c:1960:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!cmd->error_string)
                        ^
/datasets/git/builtin/receive-pack.c:1970:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (cmd = commands; cmd && cmd->error_string; cmd = cmd->next)
        ^
/datasets/git/builtin/receive-pack.c:1970:27: note: +1
        for (cmd = commands; cmd && cmd->error_string; cmd = cmd->next)
                                 ^
/datasets/git/builtin/receive-pack.c:1972:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!cmd)
        ^
/datasets/git/builtin/receive-pack.c:1979:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (tmp_objdir_migrate(tmp_objdir) < 0) {
        ^
/datasets/git/builtin/receive-pack.c:1980:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (cmd = commands; cmd; cmd = cmd->next) {
                ^
/datasets/git/builtin/receive-pack.c:1981:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!cmd->error_string)
                        ^
/datasets/git/builtin/receive-pack.c:1993:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (run_proc_receive &&
        ^
/datasets/git/builtin/receive-pack.c:1993:23: note: +1
        if (run_proc_receive &&
                             ^
/datasets/git/builtin/receive-pack.c:1996:4: note: +2, including nesting penalty of 1, nesting level increased to 2
                        if (!cmd->error_string &&
                        ^
/datasets/git/builtin/receive-pack.c:1997:61: note: +1
                            !(cmd->run_proc_receive & RUN_PROC_RECEIVE_RETURNED) &&
                                                                                 ^
/datasets/git/builtin/receive-pack.c:1998:31: note: +1
                            (cmd->run_proc_receive || use_atomic))
                                                   ^
/datasets/git/builtin/receive-pack.c:2001:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (use_atomic)
        ^
/datasets/git/builtin/receive-pack.c:2003:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/builtin/receive-pack.c:2006:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (shallow_update)
        ^
/datasets/git/builtin/receive-pack.c:1902:30: warning: parameter name 'si' is too short, expected at least 3 characters [readability-identifier-length]
                             struct shallow_info *si,
                                                  ^
/datasets/git/builtin/receive-pack.c:1906:18: warning: variable 'cmd' is not initialized [cppcoreguidelines-init-variables]
        struct command *cmd;
                        ^
                            = NULL
/datasets/git/builtin/receive-pack.c:1913:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (cmd = commands; cmd; cmd = cmd->next)
                ^
/datasets/git/builtin/receive-pack.c:1913:24: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cmd' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (cmd = commands; cmd; cmd = cmd->next)
                                     ^
/datasets/git/builtin/receive-pack.c:1913:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (cmd = commands; cmd; cmd = cmd->next)
                                                          ^
                                                           {
/datasets/git/builtin/receive-pack.c:1919:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(&muxer, 0, sizeof(muxer));
                ^~~~~~
/datasets/git/builtin/receive-pack.c:1919:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(&muxer, 0, sizeof(muxer));
                ^~~~~~
/datasets/git/builtin/receive-pack.c:1922:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!start_async(&muxer))
                                         ^
                                          {
/datasets/git/builtin/receive-pack.c:1934:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (check_connected(iterate_receive_command_list, &data, &opt))
                                                                       ^
                                                                        {
/datasets/git/builtin/receive-pack.c:1937:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (use_sideband)
                         ^
                          {
/datasets/git/builtin/receive-pack.c:1947:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (cmd = commands; cmd; cmd = cmd->next) {
                ^
/datasets/git/builtin/receive-pack.c:1947:24: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cmd' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (cmd = commands; cmd; cmd = cmd->next) {
                                     ^
/datasets/git/builtin/receive-pack.c:1948:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!should_process_cmd(cmd))
                                                     ^
                                                      {
/datasets/git/builtin/receive-pack.c:1959:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (cmd = commands; cmd; cmd = cmd->next) {
                ^
/datasets/git/builtin/receive-pack.c:1959:24: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cmd' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (cmd = commands; cmd; cmd = cmd->next) {
                                     ^
/datasets/git/builtin/receive-pack.c:1960:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!cmd->error_string)
                                               ^
                                                {
/datasets/git/builtin/receive-pack.c:1970:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cmd = commands; cmd && cmd->error_string; cmd = cmd->next)
        ^
/datasets/git/builtin/receive-pack.c:1970:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cmd' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (cmd = commands; cmd && cmd->error_string; cmd = cmd->next)
                             ^
/datasets/git/builtin/receive-pack.c:1970:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (cmd = commands; cmd && cmd->error_string; cmd = cmd->next)
                                                                       ^
                                                                        {
/datasets/git/builtin/receive-pack.c:1972:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!cmd)
                 ^
                  {
/datasets/git/builtin/receive-pack.c:1980:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (cmd = commands; cmd; cmd = cmd->next) {
                ^
/datasets/git/builtin/receive-pack.c:1980:24: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cmd' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (cmd = commands; cmd; cmd = cmd->next) {
                                     ^
/datasets/git/builtin/receive-pack.c:1981:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!cmd->error_string)
                                               ^
                                                {
/datasets/git/builtin/receive-pack.c:1994:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            run_proc_receive_hook(commands, push_options))
                                                          ^
                                                           {
/datasets/git/builtin/receive-pack.c:1995:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (cmd = commands; cmd; cmd = cmd->next)
                ^
/datasets/git/builtin/receive-pack.c:1995:24: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cmd' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (cmd = commands; cmd; cmd = cmd->next)
                                     ^
/datasets/git/builtin/receive-pack.c:1995:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (cmd = commands; cmd; cmd = cmd->next)
                                                          ^
                                                           {
/datasets/git/builtin/receive-pack.c:1997:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !(cmd->run_proc_receive & RUN_PROC_RECEIVE_RETURNED) &&
                              ^
/datasets/git/builtin/receive-pack.c:1998:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            (cmd->run_proc_receive || use_atomic))
                                                                  ^
                                                                   {
/datasets/git/builtin/receive-pack.c:2001:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (use_atomic)
                       ^
                        {
/datasets/git/builtin/receive-pack.c:2003:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/receive-pack.c:2006:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (shallow_update)
                           ^
                            {
/datasets/git/builtin/receive-pack.c:2014:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct object_id old_oid, new_oid;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/receive-pack.c:2015:18: warning: variable 'cmd' is not initialized [cppcoreguidelines-init-variables]
        struct command *cmd;
                        ^
                            = NULL
/datasets/git/builtin/receive-pack.c:2016:14: warning: variable 'refname' is not initialized [cppcoreguidelines-init-variables]
        const char *refname;
                    ^
                            = NULL
/datasets/git/builtin/receive-pack.c:2017:6: warning: variable 'reflen' is not initialized [cppcoreguidelines-init-variables]
        int reflen;
            ^
                   = 0
/datasets/git/builtin/receive-pack.c:2018:14: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        const char *p;
                    ^
                      = NULL
/datasets/git/builtin/receive-pack.c:2018:14: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/receive-pack.c:2023:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            *p++ != ' ')
                        ^
                         {
/datasets/git/builtin/receive-pack.c:2027:11: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        reflen = linelen - (p - line);
                 ^
/datasets/git/builtin/receive-pack.c:2028:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FLEX_ALLOC_MEM(cmd, ref_name, refname, reflen);
        ^
/datasets/git/./git-compat-util.h:1151:47: note: expanded from macro 'FLEX_ALLOC_MEM'
#define FLEX_ALLOC_MEM(x, flexname, buf, len) do { \
                                              ^
/datasets/git/builtin/receive-pack.c:2028:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        FLEX_ALLOC_MEM(cmd, ref_name, refname, reflen);
        ^
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/builtin/receive-pack.c:2028:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        FLEX_ALLOC_MEM(cmd, ref_name, refname, reflen);
        ^
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/builtin/receive-pack.c:2038:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *boc, *eoc;
        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/receive-pack.c:2038:14: warning: variable 'boc' is not initialized [cppcoreguidelines-init-variables]
        const char *boc, *eoc;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/receive-pack.c:2038:20: warning: variable 'eoc' is not initialized [cppcoreguidelines-init-variables]
        const char *boc, *eoc;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/receive-pack.c:2040:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*tail)
                  ^
                   {
/datasets/git/builtin/receive-pack.c:2044:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!boc)
                 ^
                  {
/datasets/git/builtin/receive-pack.c:2045:42: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                die("malformed push certificate %.*s", 100, push_cert->buf);
                                                       ^
/datasets/git/builtin/receive-pack.c:2046:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/receive-pack.c:2050:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (boc < eoc) {
        ^
/datasets/git/builtin/receive-pack.c:2050:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'boc' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (boc < eoc) {
               ^
/datasets/git/builtin/receive-pack.c:2052:45: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                tail = queue_command(tail, boc, eol ? eol - boc : eoc - boc);
                                                          ^
/datasets/git/builtin/receive-pack.c:2052:57: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                tail = queue_command(tail, boc, eol ? eol - boc : eoc - boc);
                                                                      ^
/datasets/git/builtin/receive-pack.c:2057:24: warning: function 'read_head_info' has cognitive complexity of 61 (threshold 25) [readability-function-cognitive-complexity]
static struct command *read_head_info(struct packet_reader *reader,
                       ^
/datasets/git/builtin/receive-pack.c:2062:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (;;) {
        ^
/datasets/git/builtin/receive-pack.c:2065:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (packet_reader_read(reader) != PACKET_READ_NORMAL)
                ^
/datasets/git/builtin/receive-pack.c:2068:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (reader->pktlen > 8 && starts_with(reader->line, "shallow ")) {
                ^
/datasets/git/builtin/receive-pack.c:2068:26: note: +1
                if (reader->pktlen > 8 && starts_with(reader->line, "shallow ")) {
                                       ^
/datasets/git/builtin/receive-pack.c:2070:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (get_oid_hex(reader->line + 8, &oid))
                        ^
/datasets/git/builtin/receive-pack.c:2078:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (linelen < reader->pktlen) {
                ^
/datasets/git/builtin/receive-pack.c:2083:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (parse_feature_request(feature_list, "report-status"))
                        ^
/datasets/git/builtin/receive-pack.c:2085:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (parse_feature_request(feature_list, "report-status-v2"))
                        ^
/datasets/git/builtin/receive-pack.c:2087:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (parse_feature_request(feature_list, "side-band-64k"))
                        ^
/datasets/git/builtin/receive-pack.c:2089:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (parse_feature_request(feature_list, "quiet"))
                        ^
/datasets/git/builtin/receive-pack.c:2091:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (advertise_atomic_push
                        ^
/datasets/git/builtin/receive-pack.c:2092:8: note: +1
                            && parse_feature_request(feature_list, "atomic"))
                            ^
/datasets/git/builtin/receive-pack.c:2094:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (advertise_push_options
                        ^
/datasets/git/builtin/receive-pack.c:2095:8: note: +1
                            && parse_feature_request(feature_list, "push-options"))
                            ^
/datasets/git/builtin/receive-pack.c:2098:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!hash) {
                        ^
/datasets/git/builtin/receive-pack.c:2102:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (xstrncmpz(the_hash_algo->name, hash, len))
                        ^
/datasets/git/builtin/receive-pack.c:2105:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (client_sid) {
                        ^
/datasets/git/builtin/receive-pack.c:2112:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(reader->line, "push-cert")) {
                ^
/datasets/git/builtin/receive-pack.c:2117:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (;;) {
                        ^
/datasets/git/builtin/receive-pack.c:2119:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (reader->status == PACKET_READ_FLUSH) {
                                ^
/datasets/git/builtin/receive-pack.c:2123:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (reader->status != PACKET_READ_NORMAL) {
                                ^
/datasets/git/builtin/receive-pack.c:2126:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!strcmp(reader->line, "push-cert-end\n"))
                                ^
/datasets/git/builtin/receive-pack.c:2132:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (true_flush)
                        ^
/datasets/git/builtin/receive-pack.c:2140:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (push_cert.len)
        ^
/datasets/git/builtin/receive-pack.c:2061:19: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        struct command **p = &commands;
                         ^
/datasets/git/builtin/receive-pack.c:2063:7: warning: variable 'linelen' is not initialized [cppcoreguidelines-init-variables]
                int linelen;
                    ^
                            = 0
/datasets/git/builtin/receive-pack.c:2065:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (packet_reader_read(reader) != PACKET_READ_NORMAL)
                                                                     ^
                                                                      {
/datasets/git/builtin/receive-pack.c:2068:24: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (reader->pktlen > 8 && starts_with(reader->line, "shallow ")) {
                                     ^
/datasets/git/builtin/receive-pack.c:2070:35: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        if (get_oid_hex(reader->line + 8, &oid))
                                                       ^
/datasets/git/builtin/receive-pack.c:2070:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (get_oid_hex(reader->line + 8, &oid))
                                                                ^
                                                                 {
/datasets/git/builtin/receive-pack.c:2072:24: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                    reader->line + 8);
                                                   ^
/datasets/git/builtin/receive-pack.c:2077:13: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                linelen = strlen(reader->line);
                          ^
/datasets/git/builtin/receive-pack.c:2081:16: warning: variable 'client_sid' is not initialized [cppcoreguidelines-init-variables]
                        const char *client_sid;
                                    ^
                                               = NULL
/datasets/git/builtin/receive-pack.c:2083:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (parse_feature_request(feature_list, "report-status"))
                                                                                 ^
                                                                                  {
/datasets/git/builtin/receive-pack.c:2085:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (parse_feature_request(feature_list, "report-status-v2"))
                                                                                    ^
                                                                                     {
/datasets/git/builtin/receive-pack.c:2087:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (parse_feature_request(feature_list, "side-band-64k"))
                                                                                 ^
                                                                                  {
/datasets/git/builtin/receive-pack.c:2089:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (parse_feature_request(feature_list, "quiet"))
                                                                         ^
                                                                          {
/datasets/git/builtin/receive-pack.c:2092:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            && parse_feature_request(feature_list, "atomic"))
                                                                             ^
                                                                              {
/datasets/git/builtin/receive-pack.c:2095:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            && parse_feature_request(feature_list, "push-options"))
                                                                                   ^
                                                                                    {
/datasets/git/builtin/receive-pack.c:2100:11: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                len = strlen(hash);
                                      ^
/datasets/git/builtin/receive-pack.c:2102:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (xstrncmpz(the_hash_algo->name, hash, len))
                                                                      ^
                                                                       {
/datasets/git/builtin/receive-pack.c:2115:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        reader->options &= ~PACKET_READ_CHOMP_NEWLINE;
                        ^~~~~~~~~~~~~~~
/datasets/git/builtin/receive-pack.c:2115:23: warning: narrowing conversion from constant value 4294967293 (0xFFFFFFFD) of type 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        reader->options &= ~PACKET_READ_CHOMP_NEWLINE;
                                           ^
/datasets/git/builtin/receive-pack.c:2115:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        reader->options &= ~PACKET_READ_CHOMP_NEWLINE;
                                            ^
/datasets/git/./pkt-line.h:85:43: note: expanded from macro 'PACKET_READ_CHOMP_NEWLINE'
#define PACKET_READ_CHOMP_NEWLINE        (1u<<1)
                                          ^   ~
/datasets/git/builtin/receive-pack.c:2117:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (;;) {
                        ^
/datasets/git/builtin/receive-pack.c:2126:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!strcmp(reader->line, "push-cert-end\n"))
                                                                             ^
                                                                              {
/datasets/git/builtin/receive-pack.c:2132:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (true_flush)
                                       ^
                                        {
/datasets/git/builtin/receive-pack.c:2140:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (push_cert.len)
                          ^
                           {
/datasets/git/builtin/receive-pack.c:2149:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/builtin/receive-pack.c:2150:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (packet_reader_read(reader) != PACKET_READ_NORMAL)
                                                                     ^
                                                                      {
/datasets/git/builtin/receive-pack.c:2177:20: warning: variable 'pack_lockfile' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *pack_lockfile;
                   ^
/datasets/git/builtin/receive-pack.c:2185:20: warning: function 'unpack' has cognitive complexity of 38 (threshold 25) [readability-function-cognitive-complexity]
static const char *unpack(int err_fd, struct shallow_info *si)
                   ^
/datasets/git/builtin/receive-pack.c:2192:8: note: +1, including nesting penalty of 0, nesting level increased to 1
                            ? receive_fsck_objects
                            ^
/datasets/git/builtin/receive-pack.c:2194:8: note: +2, including nesting penalty of 1, nesting level increased to 2
                            ? transfer_fsck_objects
                            ^
/datasets/git/builtin/receive-pack.c:2198:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (hdr_err) {
        ^
/datasets/git/builtin/receive-pack.c:2199:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (err_fd > 0)
                ^
/datasets/git/builtin/receive-pack.c:2204:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (si->nr_ours || si->nr_theirs) {
        ^
/datasets/git/builtin/receive-pack.c:2204:18: note: +1
        if (si->nr_ours || si->nr_theirs) {
                        ^
/datasets/git/builtin/receive-pack.c:2211:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!tmp_objdir) {
        ^
/datasets/git/builtin/receive-pack.c:2212:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (err_fd > 0)
                ^
/datasets/git/builtin/receive-pack.c:2225:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ntohl(hdr.hdr_entries) < unpack_limit) {
        ^
/datasets/git/builtin/receive-pack.c:2228:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (quiet)
                ^
/datasets/git/builtin/receive-pack.c:2230:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (fsck_objects)
                ^
/datasets/git/builtin/receive-pack.c:2233:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (max_input_size)
                ^
/datasets/git/builtin/receive-pack.c:2240:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (status)
                ^
/datasets/git/builtin/receive-pack.c:2242:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/receive-pack.c:2248:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (xgethostname(hostname, sizeof(hostname)))
                ^
/datasets/git/builtin/receive-pack.c:2255:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!quiet && err_fd)
                ^
/datasets/git/builtin/receive-pack.c:2255:14: note: +1
                if (!quiet && err_fd)
                           ^
/datasets/git/builtin/receive-pack.c:2257:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (use_sideband)
                ^
/datasets/git/builtin/receive-pack.c:2259:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (fsck_objects)
                ^
/datasets/git/builtin/receive-pack.c:2262:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!reject_thin)
                ^
/datasets/git/builtin/receive-pack.c:2264:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (max_input_size)
                ^
/datasets/git/builtin/receive-pack.c:2271:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (status)
                ^
/datasets/git/builtin/receive-pack.c:2276:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (status)
                ^
/datasets/git/builtin/receive-pack.c:2185:60: warning: parameter name 'si' is too short, expected at least 3 characters [readability-identifier-length]
static const char *unpack(int err_fd, struct shallow_info *si)
                                                           ^
/datasets/git/builtin/receive-pack.c:2188:14: warning: variable 'hdr_err' is not initialized [cppcoreguidelines-init-variables]
        const char *hdr_err;
                    ^
                            = NULL
/datasets/git/builtin/receive-pack.c:2189:6: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int status;
            ^
                   = 0
/datasets/git/builtin/receive-pack.c:2199:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err_fd > 0)
                               ^
                                {
/datasets/git/builtin/receive-pack.c:2212:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err_fd > 0)
                               ^
                                {
/datasets/git/builtin/receive-pack.c:2228:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (quiet)
                          ^
                           {
/datasets/git/builtin/receive-pack.c:2230:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fsck_objects)
                                 ^
                                  {
/datasets/git/builtin/receive-pack.c:2233:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (max_input_size)
                                   ^
                                    {
/datasets/git/builtin/receive-pack.c:2240:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (status)
                           ^
                            {
/datasets/git/builtin/receive-pack.c:2248:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (xgethostname(hostname, sizeof(hostname)))
                                                             ^
                                                              {
/datasets/git/builtin/receive-pack.c:2255:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!quiet && err_fd)
                                     ^
                                      {
/datasets/git/builtin/receive-pack.c:2257:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (use_sideband)
                                 ^
                                  {
/datasets/git/builtin/receive-pack.c:2259:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fsck_objects)
                                 ^
                                  {
/datasets/git/builtin/receive-pack.c:2262:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!reject_thin)
                                 ^
                                  {
/datasets/git/builtin/receive-pack.c:2264:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (max_input_size)
                                   ^
                                    {
/datasets/git/builtin/receive-pack.c:2271:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (status)
                           ^
                            {
/datasets/git/builtin/receive-pack.c:2276:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (status)
                           ^
                            {
/datasets/git/builtin/receive-pack.c:2283:62: warning: parameter name 'si' is too short, expected at least 3 characters [readability-identifier-length]
static const char *unpack_with_sideband(struct shallow_info *si)
                                                             ^
/datasets/git/builtin/receive-pack.c:2286:14: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        const char *ret;
                    ^
                        = NULL
/datasets/git/builtin/receive-pack.c:2288:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!use_sideband)
                          ^
                           {
/datasets/git/builtin/receive-pack.c:2292:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&muxer, 0, sizeof(muxer));
        ^~~~~~
/datasets/git/builtin/receive-pack.c:2292:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&muxer, 0, sizeof(muxer));
        ^~~~~~
/datasets/git/builtin/receive-pack.c:2295:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (start_async(&muxer))
                                ^
                                 {
/datasets/git/builtin/receive-pack.c:2304:57: warning: parameter name 'si' is too short, expected at least 3 characters [readability-identifier-length]
static void prepare_shallow_update(struct shallow_info *si)
                                                        ^
/datasets/git/builtin/receive-pack.c:2306:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, j, k, bitmap_size = DIV_ROUND_UP(si->ref->nr, 32);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/receive-pack.c:2306:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, j, k, bitmap_size = DIV_ROUND_UP(si->ref->nr, 32);
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/receive-pack.c:2306:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/receive-pack.c:2306:9: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int i, j, k, bitmap_size = DIV_ROUND_UP(si->ref->nr, 32);
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/receive-pack.c:2306:9: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/receive-pack.c:2306:12: warning: variable 'k' is not initialized [cppcoreguidelines-init-variables]
        int i, j, k, bitmap_size = DIV_ROUND_UP(si->ref->nr, 32);
                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/receive-pack.c:2306:12: warning: variable name 'k' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/receive-pack.c:2315:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < si->nr_ours; i++)
        ^
/datasets/git/builtin/receive-pack.c:2315:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < si->nr_ours; i++)
                                         ^
                                          {
/datasets/git/builtin/receive-pack.c:2319:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!si->used_shallow[i])
                                         ^
                                          {
/datasets/git/builtin/receive-pack.c:2321:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'bitmap_size' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (j = 0; j < bitmap_size; j++) {
                            ^
/datasets/git/builtin/receive-pack.c:2322:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!si->used_shallow[i][j])
                                                    ^
                                                     {
/datasets/git/builtin/receive-pack.c:2325:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (k = 0; k < 32; k++)
                        ^
/datasets/git/builtin/receive-pack.c:2325:20: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        for (k = 0; k < 32; k++)
                                        ^
/datasets/git/builtin/receive-pack.c:2325:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (k = 0; k < 32; k++)
                                                ^
                                                 {
/datasets/git/builtin/receive-pack.c:2326:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (si->used_shallow[i][j] & (1U << k))
                                                              ^     ~
/datasets/git/builtin/receive-pack.c:2326:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (si->used_shallow[i][j] & (1U << k))
                                                                       ^
                                                                        {
/datasets/git/builtin/receive-pack.c:2327:26: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                        si->shallow_ref[j * 32 + k]++;
                                                            ^
/datasets/git/builtin/receive-pack.c:2344:2: warning: function is not thread safe [concurrency-mt-unsafe]
        setenv(GIT_SHALLOW_FILE_ENVIRONMENT, alt_shallow_file, 1);
        ^
/datasets/git/builtin/receive-pack.c:2348:26: warning: parameter name 'si' is too short, expected at least 3 characters [readability-identifier-length]
                                struct shallow_info *si,
                                                     ^
/datasets/git/builtin/receive-pack.c:2351:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct command *cmd;
        ^
/datasets/git/builtin/receive-pack.c:2351:18: warning: variable 'cmd' is not initialized [cppcoreguidelines-init-variables]
        struct command *cmd;
                        ^
                            = NULL
/datasets/git/builtin/receive-pack.c:2352:7: warning: variable 'ref_status' is not initialized [cppcoreguidelines-init-variables]
        int *ref_status;
             ^
                        = NULL
/datasets/git/builtin/receive-pack.c:2359:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cmd = commands; cmd; cmd = cmd->next) {
        ^
/datasets/git/builtin/receive-pack.c:2351:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct command *cmd;
        ^
/datasets/git/builtin/receive-pack.c:2359:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cmd' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (cmd = commands; cmd; cmd = cmd->next) {
                             ^
/datasets/git/builtin/receive-pack.c:2360:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_null_oid(&cmd->new_oid))
                                               ^
                                                {
/datasets/git/builtin/receive-pack.c:2363:16: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                cmd->index = ref->nr - 1;
                             ^
/datasets/git/builtin/receive-pack.c:2374:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cmd = commands; cmd; cmd = cmd->next) {
        ^
/datasets/git/builtin/receive-pack.c:2374:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cmd' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (cmd = commands; cmd; cmd = cmd->next) {
                             ^
/datasets/git/builtin/receive-pack.c:2375:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_null_oid(&cmd->new_oid))
                                               ^
                                                {
/datasets/git/builtin/receive-pack.c:2387:18: warning: variable 'cmd' is not initialized [cppcoreguidelines-init-variables]
        struct command *cmd;
                        ^
                            = NULL
/datasets/git/builtin/receive-pack.c:2392:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cmd = commands; cmd; cmd = cmd->next) {
        ^
/datasets/git/builtin/receive-pack.c:2392:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cmd' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (cmd = commands; cmd; cmd = cmd->next) {
                             ^
/datasets/git/builtin/receive-pack.c:2393:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!cmd->error_string)
                                       ^
                                        {
/datasets/git/builtin/receive-pack.c:2396:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/receive-pack.c:2402:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (use_sideband)
                         ^
                          {
/datasets/git/builtin/receive-pack.c:2403:32: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'ssize_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                send_sideband(1, 1, buf.buf, buf.len, use_sideband);
                                             ^
/datasets/git/builtin/receive-pack.c:2404:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/receive-pack.c:2411:18: warning: variable 'cmd' is not initialized [cppcoreguidelines-init-variables]
        struct command *cmd;
                        ^
                            = NULL
/datasets/git/builtin/receive-pack.c:2413:26: warning: variable 'report' is not initialized [cppcoreguidelines-init-variables]
        struct ref_push_report *report;
                                ^
                                       = NULL
/datasets/git/builtin/receive-pack.c:2413:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct ref_push_report *report;
        ^
/datasets/git/builtin/receive-pack.c:2417:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cmd' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (cmd = commands; cmd; cmd = cmd->next) {
                             ^
/datasets/git/builtin/receive-pack.c:2428:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (report = cmd->report; report; report = report->next) {
                ^
/datasets/git/builtin/receive-pack.c:2428:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'report' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (report = cmd->report; report; report = report->next) {
                                           ^
/datasets/git/builtin/receive-pack.c:2429:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (count++ > 0)
                                        ^
                                         {
/datasets/git/builtin/receive-pack.c:2432:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (report->ref_name)
                                             ^
                                              {
/datasets/git/builtin/receive-pack.c:2435:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (report->old_oid)
                                            ^
                                             {
/datasets/git/builtin/receive-pack.c:2438:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (report->new_oid)
                                            ^
                                             {
/datasets/git/builtin/receive-pack.c:2441:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (report->forced_update)
                                                  ^
                                                   {
/datasets/git/builtin/receive-pack.c:2447:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (use_sideband)
                         ^
                          {
/datasets/git/builtin/receive-pack.c:2448:32: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'ssize_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                send_sideband(1, 1, buf.buf, buf.len, use_sideband);
                                             ^
/datasets/git/builtin/receive-pack.c:2449:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/receive-pack.c:2456:18: warning: variable 'cmd' is not initialized [cppcoreguidelines-init-variables]
        struct command *cmd;
                        ^
                            = NULL
/datasets/git/builtin/receive-pack.c:2457:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cmd = commands; cmd; cmd = cmd->next) {
        ^
/datasets/git/builtin/receive-pack.c:2457:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cmd' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (cmd = commands; cmd; cmd = cmd->next) {
                             ^
/datasets/git/builtin/receive-pack.c:2458:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!is_null_oid(&cmd->new_oid))
                                                ^
                                                 {
/datasets/git/builtin/receive-pack.c:2464:5: warning: function 'cmd_receive_pack' has cognitive complexity of 46 (threshold 25) [readability-function-cognitive-complexity]
int cmd_receive_pack(int argc, const char **argv, const char *prefix)
    ^
/datasets/git/builtin/receive-pack.c:2486:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (argc > 1)
        ^
/datasets/git/builtin/receive-pack.c:2488:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (argc == 0)
        ^
/datasets/git/builtin/receive-pack.c:2495:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!enter_repo(service_dir, 0))
        ^
/datasets/git/builtin/receive-pack.c:2499:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (cert_nonce_seed)
        ^
/datasets/git/builtin/receive-pack.c:2502:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (0 <= transfer_unpack_limit)
        ^
/datasets/git/builtin/receive-pack.c:2504:7: note: +1, nesting level increased to 1
        else if (0 <= receive_unpack_limit)
             ^
/datasets/git/builtin/receive-pack.c:2507:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        switch (determine_protocol_version_server()) {
        ^
/datasets/git/builtin/receive-pack.c:2519:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (advertise_refs || !stateless_rpc)
                ^
/datasets/git/builtin/receive-pack.c:2519:22: note: +1
                if (advertise_refs || !stateless_rpc)
                                   ^
/datasets/git/builtin/receive-pack.c:2529:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (advertise_refs || !stateless_rpc) {
        ^
/datasets/git/builtin/receive-pack.c:2529:21: note: +1
        if (advertise_refs || !stateless_rpc) {
                           ^
/datasets/git/builtin/receive-pack.c:2532:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (advertise_refs)
        ^
/datasets/git/builtin/receive-pack.c:2539:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((commands = read_head_info(&reader, &shallow))) {
        ^
/datasets/git/builtin/receive-pack.c:2543:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (use_push_options)
                ^
/datasets/git/builtin/receive-pack.c:2545:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!check_cert_push_options(&push_options)) {
                ^
/datasets/git/builtin/receive-pack.c:2547:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (cmd = commands; cmd; cmd = cmd->next)
                        ^
/datasets/git/builtin/receive-pack.c:2552:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!si.nr_ours && !si.nr_theirs)
                ^
/datasets/git/builtin/receive-pack.c:2552:19: note: +1
                if (!si.nr_ours && !si.nr_theirs)
                                ^
/datasets/git/builtin/receive-pack.c:2554:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!delete_only(commands)) {
                ^
/datasets/git/builtin/receive-pack.c:2561:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (pack_lockfile)
                ^
/datasets/git/builtin/receive-pack.c:2564:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (report_status_v2)
                ^
/datasets/git/builtin/receive-pack.c:2566:8: note: +1, nesting level increased to 2
                else if (report_status)
                     ^
/datasets/git/builtin/receive-pack.c:2573:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (auto_gc) {
                ^
/datasets/git/builtin/receive-pack.c:2578:28: note: +3, including nesting penalty of 2, nesting level increased to 3
                        proc.err = use_sideband ? -1 : 0;
                                                ^
/datasets/git/builtin/receive-pack.c:2583:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!start_command(&proc)) {
                        ^
/datasets/git/builtin/receive-pack.c:2584:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (use_sideband)
                                ^
/datasets/git/builtin/receive-pack.c:2589:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (auto_update_server_info)
                ^
/datasets/git/builtin/receive-pack.c:2593:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (use_sideband)
        ^
/datasets/git/builtin/receive-pack.c:2467:18: warning: variable 'commands' is not initialized [cppcoreguidelines-init-variables]
        struct command *commands;
                        ^
                                 = NULL
/datasets/git/builtin/receive-pack.c:2470:22: warning: variable name 'si' is too short, expected at least 3 characters [readability-identifier-length]
        struct shallow_info si;
                            ^
/datasets/git/builtin/receive-pack.c:2474:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__QUIET(&quiet, N_("quiet")),
                ^
/datasets/git/./parse-options.h:360:31: note: expanded from macro 'OPT__QUIET'
#define OPT__QUIET(var, h)    OPT_COUNTUP('q', "quiet",   (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/receive-pack.c:2475:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_HIDDEN_BOOL(0, "stateless-rpc", &stateless_rpc, NULL),
                ^
/datasets/git/./parse-options.h:185:16: note: expanded from macro 'OPT_HIDDEN_BOOL'
                                      (h), PARSE_OPT_NOARG | PARSE_OPT_HIDDEN, NULL, 1}
                                           ^~~~~~~~~~~~~~~
/datasets/git/builtin/receive-pack.c:2476:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_HIDDEN_BOOL(0, "http-backend-info-refs", &advertise_refs, NULL),
                ^
/datasets/git/./parse-options.h:185:16: note: expanded from macro 'OPT_HIDDEN_BOOL'
                                      (h), PARSE_OPT_NOARG | PARSE_OPT_HIDDEN, NULL, 1}
                                           ^~~~~~~~~~~~~~~
/datasets/git/builtin/receive-pack.c:2478:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_HIDDEN_BOOL(0, "reject-thin-pack-for-testing", &reject_thin, NULL),
                ^
/datasets/git/./parse-options.h:185:16: note: expanded from macro 'OPT_HIDDEN_BOOL'
                                      (h), PARSE_OPT_NOARG | PARSE_OPT_HIDDEN, NULL, 1}
                                           ^~~~~~~~~~~~~~~
/datasets/git/builtin/receive-pack.c:2486:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc > 1)
                     ^
                      {
/datasets/git/builtin/receive-pack.c:2488:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc == 0)
                      ^
                       {
/datasets/git/builtin/receive-pack.c:2495:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!enter_repo(service_dir, 0))
                                        ^
                                         {
/datasets/git/builtin/receive-pack.c:2499:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cert_nonce_seed)
                            ^
                             {
/datasets/git/builtin/receive-pack.c:2502:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (0 <= transfer_unpack_limit)
                                       ^
                                        {
/datasets/git/builtin/receive-pack.c:2504:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (0 <= receive_unpack_limit)
                                           ^
                                            {
/datasets/git/builtin/receive-pack.c:2519:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (advertise_refs || !stateless_rpc)
                                                     ^
                                                      {
/datasets/git/builtin/receive-pack.c:2532:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (advertise_refs)
                           ^
                            {
/datasets/git/builtin/receive-pack.c:2536:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                           PACKET_READ_CHOMP_NEWLINE |
                           ^
/datasets/git/./pkt-line.h:85:43: note: expanded from macro 'PACKET_READ_CHOMP_NEWLINE'
#define PACKET_READ_CHOMP_NEWLINE        (1u<<1)
                                          ^   ~
/datasets/git/builtin/receive-pack.c:2537:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                           PACKET_READ_DIE_ON_ERR_PACKET);
                           ^
/datasets/git/./pkt-line.h:86:43: note: expanded from macro 'PACKET_READ_DIE_ON_ERR_PACKET'
#define PACKET_READ_DIE_ON_ERR_PACKET    (1u<<2)
                                          ^   ~
/datasets/git/builtin/receive-pack.c:2539:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if ((commands = read_head_info(&reader, &shallow))) {
             ^
/datasets/git/builtin/receive-pack.c:2539:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/builtin/receive-pack.c:2539:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/builtin/receive-pack.c:2543:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (use_push_options)
                                     ^
                                      {
/datasets/git/builtin/receive-pack.c:2546:20: warning: variable 'cmd' is not initialized [cppcoreguidelines-init-variables]
                        struct command *cmd;
                                        ^
                                            = NULL
/datasets/git/builtin/receive-pack.c:2547:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (cmd = commands; cmd; cmd = cmd->next)
                        ^
/datasets/git/builtin/receive-pack.c:2547:25: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cmd' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (cmd = commands; cmd; cmd = cmd->next)
                                             ^
/datasets/git/builtin/receive-pack.c:2547:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (cmd = commands; cmd; cmd = cmd->next)
                                                                  ^
                                                                   {
/datasets/git/builtin/receive-pack.c:2552:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!si.nr_ours && !si.nr_theirs)
                                                 ^
                                                  {
/datasets/git/builtin/receive-pack.c:2561:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pack_lockfile)
                                  ^
                                   {
/datasets/git/builtin/receive-pack.c:2564:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (report_status_v2)
                                     ^
                                      {
/datasets/git/builtin/receive-pack.c:2566:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (report_status)
                                       ^
                                        {
/datasets/git/builtin/receive-pack.c:2584:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (use_sideband)
                                                 ^
                                                  {
/datasets/git/builtin/receive-pack.c:2589:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (auto_update_server_info)
                                            ^
                                             {
/datasets/git/builtin/receive-pack.c:2593:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (use_sideband)
                         ^
                          {
/datasets/git/builtin/reflog.c:3:1: warning: #includes are not sorted properly [llvm-include-order]
#include "revision.h"
^        ~~~~~~~~~~~~
         "reachable.h"
/datasets/git/builtin/reflog.c:51:20: warning: variable 'default_reflog_expire' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static timestamp_t default_reflog_expire;
                   ^
/datasets/git/builtin/reflog.c:52:20: warning: variable 'default_reflog_expire_unreachable' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static timestamp_t default_reflog_expire_unreachable;
                   ^
/datasets/git/builtin/reflog.c:54:8: warning: accessing fields in struct 'worktree_reflogs' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct worktree_reflogs {
       ^
/datasets/git/builtin/reflog.c:54:8: note: use "__attribute__((aligned(64)))" to align struct 'worktree_reflogs' to 64 bytes
/datasets/git/builtin/reflog.c:62:27: warning: variable name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
        struct worktree_reflogs *cb = cb_data;
                                 ^
/datasets/git/builtin/reflog.c:71:71: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            parse_worktree_ref(ref, NULL, NULL, NULL) == REF_WORKTREE_SHARED)
                                                                             ^
                                                                              {
/datasets/git/builtin/reflog.c:85:4: warning: variable 'reflog_expire_cfg' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} *reflog_expire_cfg, **reflog_expire_cfg_tail;
   ^
/datasets/git/builtin/reflog.c:85:4: warning: variable 'reflog_expire_cfg' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/reflog.c:85:25: warning: variable 'reflog_expire_cfg_tail' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} *reflog_expire_cfg, **reflog_expire_cfg_tail;
                        ^
/datasets/git/builtin/reflog.c:85:25: warning: variable 'reflog_expire_cfg_tail' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/reflog.c:89:28: warning: variable 'ent' is not initialized [cppcoreguidelines-init-variables]
        struct reflog_expire_cfg *ent;
                                  ^
                                      = NULL
/datasets/git/builtin/reflog.c:91:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!reflog_expire_cfg_tail)
                                    ^
                                     {
/datasets/git/builtin/reflog.c:94:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (ent = reflog_expire_cfg; ent; ent = ent->next)
        ^
/datasets/git/builtin/reflog.c:94:32: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ent' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (ent = reflog_expire_cfg; ent; ent = ent->next)
                                      ^
/datasets/git/builtin/reflog.c:94:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (ent = reflog_expire_cfg; ent; ent = ent->next)
                                                           ^
                                                            {
/datasets/git/builtin/reflog.c:96:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    ent->pattern[len] == '\0')
                                              ^
                                               {
/datasets/git/builtin/reflog.c:99:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FLEX_ALLOC_MEM(ent, pattern, pattern, len);
        ^
/datasets/git/./git-compat-util.h:1151:47: note: expanded from macro 'FLEX_ALLOC_MEM'
#define FLEX_ALLOC_MEM(x, flexname, buf, len) do { \
                                              ^
/datasets/git/builtin/reflog.c:99:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        FLEX_ALLOC_MEM(ent, pattern, pattern, len);
        ^
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/builtin/reflog.c:99:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        FLEX_ALLOC_MEM(ent, pattern, pattern, len);
        ^
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/builtin/reflog.c:106:1: warning: replace macro with enum [modernize-macro-to-enum]
#define EXPIRE_TOTAL   01
^~~~~~~~
                     =   ,
/datasets/git/builtin/reflog.c:106:9: warning: macro 'EXPIRE_TOTAL' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define EXPIRE_TOTAL   01
        ^
/datasets/git/builtin/reflog.c:107:9: warning: macro 'EXPIRE_UNREACH' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define EXPIRE_UNREACH 02
        ^
/datasets/git/builtin/reflog.c:109:75: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int reflog_expire_config(const char *var, const char *value, void *cb)
                                                                          ^
/datasets/git/builtin/reflog.c:111:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *pattern, *key;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/reflog.c:111:14: warning: variable 'pattern' is not initialized [cppcoreguidelines-init-variables]
        const char *pattern, *key;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/reflog.c:111:24: warning: variable 'key' is not initialized [cppcoreguidelines-init-variables]
        const char *pattern, *key;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/reflog.c:112:9: warning: variable 'pattern_len' is not initialized [cppcoreguidelines-init-variables]
        size_t pattern_len;
               ^
                           = 0
/datasets/git/builtin/reflog.c:113:14: warning: variable 'expire' is not initialized [cppcoreguidelines-init-variables]
        timestamp_t expire;
                    ^
                           = 0
/datasets/git/builtin/reflog.c:114:6: warning: variable 'slot' is not initialized [cppcoreguidelines-init-variables]
        int slot;
            ^
                 = 0
/datasets/git/builtin/reflog.c:115:28: warning: variable 'ent' is not initialized [cppcoreguidelines-init-variables]
        struct reflog_expire_cfg *ent;
                                  ^
                                      = NULL
/datasets/git/builtin/reflog.c:117:68: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_config_key(var, "gc", &pattern, &pattern_len, &key) < 0)
                                                                          ^
                                                                           {
/datasets/git/builtin/reflog.c:122:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (git_config_expiry_date(&expire, var, value))
                                                                ^
                                                                 {
/datasets/git/builtin/reflog.c:126:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (git_config_expiry_date(&expire, var, value))
                                                                ^
                                                                 {
/datasets/git/builtin/reflog.c:128:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/builtin/reflog.c:132:3: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
                switch (slot) {
                ^
/datasets/git/builtin/reflog.c:144:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ent)
                 ^
                  {
/datasets/git/builtin/reflog.c:146:2: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
        switch (slot) {
        ^
/datasets/git/builtin/reflog.c:157:66: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static void set_reflog_expiry_param(struct cmd_reflog_expire_cb *cb, const char *ref)
                                                                 ^
/datasets/git/builtin/reflog.c:159:28: warning: variable 'ent' is not initialized [cppcoreguidelines-init-variables]
        struct reflog_expire_cfg *ent;
                                  ^
                                      = NULL
/datasets/git/builtin/reflog.c:161:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (cb->explicit_expiry == (EXPIRE_TOTAL|EXPIRE_UNREACH))
                                    ^
/datasets/git/builtin/reflog.c:106:24: note: expanded from macro 'EXPIRE_TOTAL'
#define EXPIRE_TOTAL   01
                       ^~
/datasets/git/builtin/reflog.c:161:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cb->explicit_expiry == (EXPIRE_TOTAL|EXPIRE_UNREACH))
                                                                 ^
                                                                  {
/datasets/git/builtin/reflog.c:164:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (ent = reflog_expire_cfg; ent; ent = ent->next) {
        ^
/datasets/git/builtin/reflog.c:164:32: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ent' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (ent = reflog_expire_cfg; ent; ent = ent->next) {
                                      ^
/datasets/git/builtin/reflog.c:166:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!(cb->explicit_expiry & EXPIRE_TOTAL))
                              ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/reflog.c:166:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!(cb->explicit_expiry & EXPIRE_TOTAL))
                                                                  ^
                                                                   {
/datasets/git/builtin/reflog.c:168:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!(cb->explicit_expiry & EXPIRE_UNREACH))
                              ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/reflog.c:168:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!(cb->explicit_expiry & EXPIRE_UNREACH))
                                                                    ^
                                                                     {
/datasets/git/builtin/reflog.c:178:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(cb->explicit_expiry & EXPIRE_TOTAL))
                      ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/reflog.c:178:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(cb->explicit_expiry & EXPIRE_TOTAL))
                                                          ^
                                                           {
/datasets/git/builtin/reflog.c:180:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(cb->explicit_expiry & EXPIRE_UNREACH))
                      ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/reflog.c:180:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(cb->explicit_expiry & EXPIRE_UNREACH))
                                                            ^
                                                             {
/datasets/git/builtin/reflog.c:186:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(cb->explicit_expiry & EXPIRE_TOTAL))
              ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/reflog.c:186:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(cb->explicit_expiry & EXPIRE_TOTAL))
                                                  ^
                                                   {
/datasets/git/builtin/reflog.c:188:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(cb->explicit_expiry & EXPIRE_UNREACH))
              ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/reflog.c:188:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(cb->explicit_expiry & EXPIRE_UNREACH))
                                                    ^
                                                     {
/datasets/git/builtin/reflog.c:198:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/reflog.c:200:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_expiry_date(arg, &cmd->expire_unreachable))
                                                             ^
                                                              {
/datasets/git/builtin/reflog.c:204:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        cmd->explicit_expiry |= EXPIRE_UNREACH;
        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/reflog.c:214:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/reflog.c:216:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_expiry_date(arg, &cmd->expire_total))
                                                       ^
                                                        {
/datasets/git/builtin/reflog.c:220:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        cmd->explicit_expiry |= EXPIRE_TOTAL;
        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/reflog.c:231:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                      PARSE_OPT_KEEP_DASHDASH | PARSE_OPT_KEEP_ARGV0 |
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/reflog.c:241:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, status, do_all, all_worktrees = 1;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/reflog.c:241:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, status, do_all, all_worktrees = 1;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/reflog.c:241:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/reflog.c:241:9: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int i, status, do_all, all_worktrees = 1;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/reflog.c:241:17: warning: variable 'do_all' is not initialized [cppcoreguidelines-init-variables]
        int i, status, do_all, all_worktrees = 1;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/reflog.c:246:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT(0, "dry-run", &flags, N_("do not actually prune any entries"),
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/reflog.c:248:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT(0, "rewrite", &flags,
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/reflog.c:251:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT(0, "updateref", &flags,
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/reflog.c:254:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "verbose", &verbose, N_("print extra information on screen")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/reflog.c:263:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "stale-fix", &cmd.stalefix,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/reflog.c:265:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "all", &do_all, N_("process the reflogs of all references")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/reflog.c:266:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(1, "single-worktree", &all_worktrees,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/reflog.c:271:44: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        default_reflog_expire_unreachable = now - 30 * 24 * 3600;
                                                  ^
/datasets/git/builtin/reflog.c:271:44: note: make conversion explicit to silence this warning
        default_reflog_expire_unreachable = now - 30 * 24 * 3600;
                                                  ^~~~~~~~~~~~~~
                                                  (unsigned long)( )
/datasets/git/builtin/reflog.c:271:44: note: perform multiplication in a wider type
        default_reflog_expire_unreachable = now - 30 * 24 * 3600;
                                                  ^~~~~~~
                                                  (long)
/datasets/git/builtin/reflog.c:271:44: warning: 30 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        default_reflog_expire_unreachable = now - 30 * 24 * 3600;
                                                  ^
/datasets/git/builtin/reflog.c:271:49: warning: 24 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        default_reflog_expire_unreachable = now - 30 * 24 * 3600;
                                                       ^
/datasets/git/builtin/reflog.c:271:54: warning: 3600 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        default_reflog_expire_unreachable = now - 30 * 24 * 3600;
                                                            ^
/datasets/git/builtin/reflog.c:272:32: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        default_reflog_expire = now - 90 * 24 * 3600;
                                      ^
/datasets/git/builtin/reflog.c:272:32: note: make conversion explicit to silence this warning
        default_reflog_expire = now - 90 * 24 * 3600;
                                      ^~~~~~~~~~~~~~
                                      (unsigned long)( )
/datasets/git/builtin/reflog.c:272:32: note: perform multiplication in a wider type
        default_reflog_expire = now - 90 * 24 * 3600;
                                      ^~~~~~~
                                      (long)
/datasets/git/builtin/reflog.c:272:32: warning: 90 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        default_reflog_expire = now - 90 * 24 * 3600;
                                      ^
/datasets/git/builtin/reflog.c:272:37: warning: 24 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        default_reflog_expire = now - 90 * 24 * 3600;
                                           ^
/datasets/git/builtin/reflog.c:272:42: warning: 3600 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        default_reflog_expire = now - 90 * 24 * 3600;
                                                ^
/datasets/git/builtin/reflog.c:284:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (verbose)
                    ^
                     {
/datasets/git/builtin/reflog.c:299:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (verbose)
                            ^
                             {
/datasets/git/builtin/reflog.c:303:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (verbose)
                            ^
                             {
/datasets/git/builtin/reflog.c:311:28: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
                struct string_list_item *item;
                                         ^
                                              = NULL
/datasets/git/builtin/reflog.c:312:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                struct worktree **worktrees, **p;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/reflog.c:312:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/builtin/reflog.c:312:21: warning: variable 'worktrees' is not initialized [cppcoreguidelines-init-variables]
                struct worktree **worktrees, **p;
                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/reflog.c:312:34: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                struct worktree **worktrees, **p;
                                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/reflog.c:312:34: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/reflog.c:315:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (p = worktrees; *p; p++) {
                ^
/datasets/git/builtin/reflog.c:311:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                struct string_list_item *item;
                ^
/datasets/git/builtin/reflog.c:315:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (p = worktrees; *p; p++) {
                                    ^
/datasets/git/builtin/reflog.c:316:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!all_worktrees && !(*p)->is_current)
                                                                ^
                                                                 {
/datasets/git/builtin/reflog.c:324:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for_each_string_list_item(item, &collected.reflogs) {
                ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/reflog.c:324:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
                for_each_string_list_item(item, &collected.reflogs) {
                                          ^
/datasets/git/builtin/reflog.c:325:35: warning: variable name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
                        struct expire_reflog_policy_cb cb = {
                                                       ^
/datasets/git/builtin/reflog.c:327:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                .dry_run = !!(flags & EXPIRE_REFLOGS_DRY_RUN),
                                              ^       ~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/reflog.c:331:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        status |= reflog_expire(item->string, flags,
                        ^~~~~~
/datasets/git/builtin/reflog.c:340:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < argc; i++) {
        ^
/datasets/git/builtin/reflog.c:340:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'argc' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < argc; i++) {
                    ^
/datasets/git/builtin/reflog.c:341:9: warning: variable 'ref' is not initialized [cppcoreguidelines-init-variables]
                char *ref;
                      ^
                          = NULL
/datasets/git/builtin/reflog.c:342:34: warning: variable name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
                struct expire_reflog_policy_cb cb = { .cmd = cmd };
                                               ^
/datasets/git/builtin/reflog.c:344:26: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                if (!dwim_log(argv[i], strlen(argv[i]), NULL, &ref)) {
                                       ^
/datasets/git/builtin/reflog.c:345:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        status |= error(_("%s points nowhere!"), argv[i]);
                        ^~~~~~
/datasets/git/builtin/reflog.c:349:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                status |= reflog_expire(ref, flags,
                ^~~~~~
/datasets/git/builtin/reflog.c:361:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, status = 0;
        ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/reflog.c:361:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, status = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/reflog.c:361:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/reflog.c:366:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT(0, "dry-run", &flags, N_("do not actually prune any entries"),
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/reflog.c:368:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT(0, "rewrite", &flags,
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/reflog.c:371:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT(0, "updateref", &flags,
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/reflog.c:374:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "verbose", &verbose, N_("print extra information on screen")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/reflog.c:380:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc < 1)
                     ^
                      {
/datasets/git/builtin/reflog.c:383:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < argc; i++)
        ^
/datasets/git/builtin/reflog.c:383:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'argc' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < argc; i++)
                    ^
/datasets/git/builtin/reflog.c:383:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < argc; i++)
                                  ^
                                   {
/datasets/git/builtin/reflog.c:384:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                status |= reflog_delete(argv[i], flags, verbose);
                ^~~~~~
/datasets/git/builtin/reflog.c:394:14: warning: variable 'refname' is not initialized [cppcoreguidelines-init-variables]
        const char *refname;
                    ^
                            = NULL
/datasets/git/builtin/reflog.c:398:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!argc)
                  ^
                   {
/datasets/git/builtin/reflog.c:402:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (check_refname_format(refname, REFNAME_ALLOW_ONELEVEL))
                                                                  ^
                                                                   {
/datasets/git/builtin/reflog.c:413:27: warning: variable name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
        parse_opt_subcommand_fn *fn = NULL;
                                 ^
/datasets/git/builtin/reflog.c:423:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                             PARSE_OPT_SUBCOMMAND_OPTIONAL |
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/reflog.c:426:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fn)
               ^
                {
/datasets/git/builtin/reflog.c:428:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else
        ^~~~
                        return cmd_log_reflog(argc, argv, prefix)
/datasets/git/builtin/reflog.c:428:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/remote-ext.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "transport.h"
^        ~~~~~~~~~~~~~
         "pkt-line.h"
/datasets/git/builtin/remote-ext.c:28:14: warning: variable 'git_req' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *git_req;
             ^
/datasets/git/builtin/remote-ext.c:28:14: warning: variable 'git_req' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/remote-ext.c:29:14: warning: variable 'git_req_vhost' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *git_req_vhost;
             ^
/datasets/git/builtin/remote-ext.c:29:14: warning: variable 'git_req_vhost' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/remote-ext.c:31:14: warning: function 'strip_escapes' has cognitive complexity of 27 (threshold 25) [readability-function-cognitive-complexity]
static char *strip_escapes(const char *str, const char *service,
             ^
/datasets/git/builtin/remote-ext.c:47:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (str[rpos] && (escape || str[rpos] != ' ')) {
        ^
/datasets/git/builtin/remote-ext.c:47:19: note: +1
        while (str[rpos] && (escape || str[rpos] != ' ')) {
                         ^
/datasets/git/builtin/remote-ext.c:47:30: note: +1
        while (str[rpos] && (escape || str[rpos] != ' ')) {
                                    ^
/datasets/git/builtin/remote-ext.c:48:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (escape) {
                ^
/datasets/git/builtin/remote-ext.c:49:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        switch (str[rpos]) {
                        ^
/datasets/git/builtin/remote-ext.c:58:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (rpos == 1)
                                ^
/datasets/git/builtin/remote-ext.c:66:5: note: +1, nesting level increased to 2
                } else
                  ^
/datasets/git/builtin/remote-ext.c:70:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (escape && !str[rpos])
        ^
/datasets/git/builtin/remote-ext.c:70:13: note: +1
        if (escape && !str[rpos])
                   ^
/datasets/git/builtin/remote-ext.c:73:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (**next == ' ')
        ^
/datasets/git/builtin/remote-ext.c:80:17: note: +1, including nesting penalty of 0, nesting level increased to 1
        rpos = special ? 2 : 0;         /* Skip first 2 bytes in specials. */
                       ^
/datasets/git/builtin/remote-ext.c:82:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (str[rpos] && (escape || str[rpos] != ' ')) {
        ^
/datasets/git/builtin/remote-ext.c:82:19: note: +1
        while (str[rpos] && (escape || str[rpos] != ' ')) {
                         ^
/datasets/git/builtin/remote-ext.c:82:30: note: +1
        while (str[rpos] && (escape || str[rpos] != ' ')) {
                                    ^
/datasets/git/builtin/remote-ext.c:83:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (escape) {
                ^
/datasets/git/builtin/remote-ext.c:84:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        switch (str[rpos]) {
                        ^
/datasets/git/builtin/remote-ext.c:97:5: note: +1, nesting level increased to 2
                } else
                  ^
/datasets/git/builtin/remote-ext.c:108:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        switch (special) {
        ^
/datasets/git/builtin/remote-ext.c:31:28: warning: 2 adjacent parameters of 'strip_escapes' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static char *strip_escapes(const char *str, const char *service,
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/remote-ext.c:31:40: note: the first parameter in the range is 'str'
static char *strip_escapes(const char *str, const char *service,
                                       ^~~
/datasets/git/builtin/remote-ext.c:31:57: note: the last parameter in the range is 'service'
static char *strip_escapes(const char *str, const char *service,
                                                        ^~~~~~~
/datasets/git/builtin/remote-ext.c:43:2: warning: function is not thread safe [concurrency-mt-unsafe]
        setenv("GIT_EXT_SERVICE", service, 1);
        ^
/datasets/git/builtin/remote-ext.c:44:2: warning: function is not thread safe [concurrency-mt-unsafe]
        setenv("GIT_EXT_SERVICE_NOPREFIX", service_noprefix, 1);
        ^
/datasets/git/builtin/remote-ext.c:34:2: note: inferred assignment of ID-dependent value from ID-dependent variable special [altera-id-dependent-backward-branch]
        size_t rpos = 0;
        ^
/datasets/git/builtin/remote-ext.c:47:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (str[rpos] && (escape || str[rpos] != ' ')) {
        ^
/datasets/git/builtin/remote-ext.c:47:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'rpos' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (str[rpos] && (escape || str[rpos] != ' ')) {
               ^
/datasets/git/builtin/remote-ext.c:58:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (rpos == 1)
                                              ^
                                               {
/datasets/git/builtin/remote-ext.c:66:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/builtin/remote-ext.c:70:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (escape && !str[rpos])
                                 ^
                                  {
/datasets/git/builtin/remote-ext.c:73:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (**next == ' ')
                          ^
                           {
/datasets/git/builtin/remote-ext.c:82:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (str[rpos] && (escape || str[rpos] != ' ')) {
        ^
/datasets/git/builtin/remote-ext.c:82:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'rpos' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (str[rpos] && (escape || str[rpos] != ' ')) {
               ^
/datasets/git/builtin/remote-ext.c:97:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/builtin/remote-ext.c:122:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*arg) {
        ^
/datasets/git/builtin/remote-ext.c:124:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (expanded)
                             ^
                              {
/datasets/git/builtin/remote-ext.c:133:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!vhost)
                   ^
                    {
/datasets/git/builtin/remote-ext.c:135:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/remote-ext.c:142:6: warning: variable 'r' is not initialized [cppcoreguidelines-init-variables]
        int r;
            ^
              = 0
/datasets/git/builtin/remote-ext.c:142:6: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/remote-ext.c:150:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (start_command(&child) < 0)
                                      ^
                                       {
/datasets/git/builtin/remote-ext.c:153:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (git_req)
                    ^
                     {
/datasets/git/builtin/remote-ext.c:157:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!r)
               ^
                {
/datasets/git/builtin/remote-ext.c:159:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/remote-ext.c:164:1: warning: replace macro with enum [modernize-macro-to-enum]
#define MAXCOMMAND 4096
^~~~~~~~
                   =
/datasets/git/builtin/remote-ext.c:164:9: warning: macro 'MAXCOMMAND' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define MAXCOMMAND 4096
        ^
/datasets/git/builtin/remote-ext.c:171:10: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                size_t i;
                       ^
                         = 0
/datasets/git/builtin/remote-ext.c:171:10: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/remote-ext.c:173:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ferror(stdin))
                                          ^
                                           {
/datasets/git/builtin/remote-ext.c:175:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        exit(0);
                        ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/remote-ext.c:179:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (i > 0 && isspace(buffer[i - 1]))
                ^
/datasets/git/builtin/remote-ext.c:179:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (i > 0 && isspace(buffer[i - 1]))
                       ^
/datasets/git/builtin/remote-ext.c:179:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                while (i > 0 && isspace(buffer[i - 1]))
                                ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/builtin/remote-ext.c:179:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (i > 0 && isspace(buffer[i - 1]))
                                                       ^
                                                        {
/datasets/git/builtin/remote-ext.c:184:4: warning: the value returned by this function should be used [cert-err33-c]
                        fflush(stdout);
                        ^~~~~~~~~~~~~~
/datasets/git/builtin/remote-ext.c:184:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/remote-ext.c:185:43: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                } else if (!strncmp(buffer, "connect ", 8)) {
                                                        ^
/datasets/git/builtin/remote-ext.c:187:4: warning: the value returned by this function should be used [cert-err33-c]
                        fflush(stdout);
                        ^~~~~~~~~~~~~~
/datasets/git/builtin/remote-ext.c:187:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/remote-ext.c:188:37: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        return run_child(child, buffer + 8);
                                                         ^
/datasets/git/builtin/remote-ext.c:190:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, "Bad command");
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/remote-ext.c:190:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/remote-ext.c:196:61: warning: parameter 'prefix' is unused [misc-unused-parameters]
int cmd_remote_ext(int argc, const char **argv, const char *prefix)
                                                            ^
/datasets/git/builtin/remote-ext.c:198:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc != 3)
                      ^
                       {
/datasets/git/builtin/remote-fd.c:22:1: warning: replace macro with enum [modernize-macro-to-enum]
#define MAXCOMMAND 4096
^~~~~~~~
                   =
/datasets/git/builtin/remote-fd.c:22:9: warning: macro 'MAXCOMMAND' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define MAXCOMMAND 4096
        ^
/datasets/git/builtin/remote-fd.c:29:10: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                size_t i;
                       ^
                         = 0
/datasets/git/builtin/remote-fd.c:29:10: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/remote-fd.c:31:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ferror(stdin))
                                          ^
                                           {
/datasets/git/builtin/remote-fd.c:37:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (i > 0 && isspace(buffer[i - 1]))
                ^
/datasets/git/builtin/remote-fd.c:37:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (i > 0 && isspace(buffer[i - 1]))
                       ^
/datasets/git/builtin/remote-fd.c:37:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                while (i > 0 && isspace(buffer[i - 1]))
                                ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/builtin/remote-fd.c:37:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (i > 0 && isspace(buffer[i - 1]))
                                                       ^
                                                        {
/datasets/git/builtin/remote-fd.c:42:4: warning: the value returned by this function should be used [cert-err33-c]
                        fflush(stdout);
                        ^~~~~~~~~~~~~~
/datasets/git/builtin/remote-fd.c:42:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/remote-fd.c:43:43: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                } else if (!strncmp(buffer, "connect ", 8)) {
                                                        ^
/datasets/git/builtin/remote-fd.c:45:4: warning: the value returned by this function should be used [cert-err33-c]
                        fflush(stdout);
                        ^~~~~~~~~~~~~~
/datasets/git/builtin/remote-fd.c:45:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/remote-fd.c:47:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                output_fd))
                                           ^
                                            {
/datasets/git/builtin/remote-fd.c:56:60: warning: parameter 'prefix' is unused [misc-unused-parameters]
int cmd_remote_fd(int argc, const char **argv, const char *prefix)
                                                           ^
/datasets/git/builtin/remote-fd.c:60:8: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
        char *end;
              ^
                  = NULL
/datasets/git/builtin/remote-fd.c:62:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc != 3)
                      ^
                       {
/datasets/git/builtin/remote-fd.c:65:41: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        input_fd = (int)strtoul(argv[2], &end, 10);
                                               ^
/datasets/git/builtin/remote-fd.c:67:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((end == argv[2]) || (*end != ',' && *end != '/' && *end))
                                                                     ^
                                                                      {
/datasets/git/builtin/remote-fd.c:73:9: warning: variable 'end2' is not initialized [cppcoreguidelines-init-variables]
                char *end2;
                      ^
                           = NULL
/datasets/git/builtin/remote-fd.c:74:44: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                output_fd = (int)strtoul(end + 1, &end2, 10);
                                                         ^
/datasets/git/builtin/remote-fd.c:76:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((end2 == end + 1) || (*end2 != '/' && *end2))
                                                                 ^
                                                                  {
/datasets/git/builtin/remote.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "commit-reach.h"
/datasets/git/builtin/remote.c:87:1: warning: replace macro with enum [modernize-macro-to-enum]
#define GET_REF_STATES (1<<0)
^~~~~~~~
                       =     ,
/datasets/git/builtin/remote.c:87:9: warning: macro 'GET_REF_STATES' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define GET_REF_STATES (1<<0)
        ^
/datasets/git/builtin/remote.c:88:9: warning: macro 'GET_HEAD_NAMES' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define GET_HEAD_NAMES (1<<1)
        ^
/datasets/git/builtin/remote.c:89:9: warning: macro 'GET_PUSH_REF_STATES' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define GET_PUSH_REF_STATES (1<<2)
        ^
/datasets/git/builtin/remote.c:91:12: warning: variable 'verbose' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int verbose;
           ^
/datasets/git/builtin/remote.c:98:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (verbose)
                    ^
                     {
/datasets/git/builtin/remote.c:103:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (run_command(&cmd))
                              ^
                               {
/datasets/git/builtin/remote.c:114:1: warning: replace macro with enum [modernize-macro-to-enum]
#define MIRROR_NONE 0
^~~~~~~~
                    =,
/datasets/git/builtin/remote.c:114:9: warning: macro 'MIRROR_NONE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define MIRROR_NONE 0
        ^
/datasets/git/builtin/remote.c:115:9: warning: macro 'MIRROR_FETCH' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define MIRROR_FETCH 1
        ^
/datasets/git/builtin/remote.c:116:9: warning: macro 'MIRROR_PUSH' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define MIRROR_PUSH 2
        ^
/datasets/git/builtin/remote.c:119:24: warning: 2 adjacent parameters of 'add_branch' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void add_branch(const char *key, const char *branchname,
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/remote.c:119:36: note: the first parameter in the range is 'key'
static void add_branch(const char *key, const char *branchname,
                                   ^~~
/datasets/git/builtin/remote.c:119:53: note: the last parameter in the range is 'branchname'
static void add_branch(const char *key, const char *branchname,
                                                    ^~~~~~~~~~
/datasets/git/builtin/remote.c:124:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mirror)
                   ^
                    {
/datasets/git/builtin/remote.c:127:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/remote.c:140:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (not)
                ^
                 {
/datasets/git/builtin/remote.c:144:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                *mirror = MIRROR_BOTH;
                          ^
/datasets/git/builtin/remote.c:117:22: note: expanded from macro 'MIRROR_BOTH'
#define MIRROR_BOTH (MIRROR_FETCH|MIRROR_PUSH)
                     ^~~~~~~~~~~~
/datasets/git/builtin/remote.c:115:22: note: expanded from macro 'MIRROR_FETCH'
#define MIRROR_FETCH 1
                     ^
/datasets/git/builtin/remote.c:146:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(arg, "fetch"))
                                       ^
                                        {
/datasets/git/builtin/remote.c:148:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(arg, "push"))
                                      ^
                                       {
/datasets/git/builtin/remote.c:150:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/remote.c:157:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int fetch = 0, fetch_tags = TAGS_DEFAULT;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/remote.c:161:17: warning: variable 'remote' is not initialized [cppcoreguidelines-init-variables]
        struct remote *remote;
                       ^
                              = NULL
/datasets/git/builtin/remote.c:162:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct strbuf buf = STRBUF_INIT, buf2 = STRBUF_INIT;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/remote.c:163:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *name, *url;
        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/remote.c:163:14: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
        const char *name, *url;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/remote.c:163:21: warning: variable 'url' is not initialized [cppcoreguidelines-init-variables]
        const char *name, *url;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/remote.c:164:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/remote.c:164:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/remote.c:167:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('f', "fetch", &fetch, N_("fetch the remote branches")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/remote.c:168:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT(0, "tags", &fetch_tags,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/remote.c:171:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT(0, NULL, &fetch_tags,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/remote.c:178:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        PARSE_OPT_OPTARG | PARSE_OPT_COMP_ARG, parse_mirror_opt),
                        ^
/datasets/git/./parse-options.h:169:47: note: expanded from macro 'OPT_CALLBACK_F'
        { OPTION_CALLBACK, (s), (l), (v), (a), (h), (f), (cb) }
                                                     ^
/datasets/git/builtin/remote.c:185:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc != 2)
                      ^
                       {
/datasets/git/builtin/remote.c:188:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mirror && master)
                             ^
                              {
/datasets/git/builtin/remote.c:190:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (mirror && !(mirror & MIRROR_FETCH) && track.nr)
                        ^
/datasets/git/builtin/remote.c:190:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mirror && !(mirror & MIRROR_FETCH) && track.nr)
                                                           ^
                                                            {
/datasets/git/builtin/remote.c:199:3: warning: function is not thread safe [concurrency-mt-unsafe]
                exit(3);
                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/remote.c:202:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!valid_remote_name(name))
                                     ^
                                      {
/datasets/git/builtin/remote.c:208:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!mirror || mirror & MIRROR_FETCH) {
                       ^
/datasets/git/builtin/remote.c:211:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (track.nr == 0)
                                  ^
                                   {
/datasets/git/builtin/remote.c:213:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < track.nr; i++) {
                ^
/datasets/git/builtin/remote.c:215:14: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                   name, mirror, &buf2);
                                         ^
/datasets/git/builtin/remote.c:219:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (mirror & MIRROR_PUSH) {
            ^
/datasets/git/builtin/remote.c:232:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fetch && fetch_remote(name))
                                        ^
                                         {
/datasets/git/builtin/remote.c:242:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (create_symref(buf.buf, buf2.buf, "remote add"))
                                                                   ^
                                                                    {
/datasets/git/builtin/remote.c:253:8: warning: accessing fields in struct 'branch_info' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct branch_info {
       ^
/datasets/git/builtin/remote.c:253:8: note: use "__attribute__((aligned(64)))" to align struct 'branch_info' to 64 bytes
/datasets/git/builtin/remote.c:260:27: warning: variable 'branch_list' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct string_list branch_list = STRING_LIST_INIT_NODUP;
                          ^
/datasets/git/builtin/remote.c:269:33: warning: 2 adjacent parameters of 'config_read_branches' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int config_read_branches(const char *key, const char *value,
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/remote.c:269:45: note: the first parameter in the range is 'key'
static int config_read_branches(const char *key, const char *value,
                                            ^~~
/datasets/git/builtin/remote.c:269:62: note: the last parameter in the range is 'value'
static int config_read_branches(const char *key, const char *value,
                                                             ^~~~~
/datasets/git/builtin/remote.c:273:8: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
        char *name;
              ^
                   = NULL
/datasets/git/builtin/remote.c:274:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/builtin/remote.c:275:22: warning: variable 'info' is not initialized [cppcoreguidelines-init-variables]
        struct branch_info *info;
                            ^
                                 = NULL
/datasets/git/builtin/remote.c:276:46: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum { REMOTE, MERGE, REBASE, PUSH_REMOTE } type;
                                                    ^
/datasets/git/builtin/remote.c:277:9: warning: variable 'key_len' is not initialized [cppcoreguidelines-init-variables]
        size_t key_len;
               ^
                       = 0
/datasets/git/builtin/remote.c:279:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!starts_with(key, "branch."))
                                         ^
                                          {
/datasets/git/builtin/remote.c:283:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strip_suffix(key, ".remote", &key_len))
                                                   ^
                                                    {
/datasets/git/builtin/remote.c:285:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (strip_suffix(key, ".merge", &key_len))
                                                       ^
                                                        {
/datasets/git/builtin/remote.c:287:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (strip_suffix(key, ".rebase", &key_len))
                                                        ^
                                                         {
/datasets/git/builtin/remote.c:289:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (strip_suffix(key, ".pushremote", &key_len))
                                                            ^
                                                             {
/datasets/git/builtin/remote.c:291:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/remote.c:297:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!item->util)
                        ^
                         {
/datasets/git/builtin/remote.c:302:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (info->remote_name)
                                      ^
                                       {
/datasets/git/builtin/remote.c:309:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (space) {
                ^
/datasets/git/builtin/remote.c:309:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'space' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (space) {
                       ^
/datasets/git/builtin/remote.c:310:10: warning: variable 'merge' is not initialized [cppcoreguidelines-init-variables]
                        char *merge;
                              ^
                                    = NULL
/datasets/git/builtin/remote.c:325:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (info->rebase == REBASE_INVALID)
                                                   ^
                                                    {
/datasets/git/builtin/remote.c:330:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (info->push_remote_name)
                                           ^
                                            {
/datasets/git/builtin/remote.c:343:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (branch_list.nr)
                           ^
                            {
/datasets/git/builtin/remote.c:348:8: warning: accessing fields in struct 'ref_states' is inefficient due to padding; only needs 252 bytes but is using 256 bytes [altera-struct-pack-align]
struct ref_states {
       ^
/datasets/git/builtin/remote.c:348:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'ref_states'
/datasets/git/builtin/remote.c:348:8: warning: accessing fields in struct 'ref_states' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct ref_states {
       ^
/datasets/git/builtin/remote.c:348:8: note: use "__attribute__((aligned(128)))" to align struct 'ref_states' to 128 bytes
/datasets/git/builtin/remote.c:365:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct ref *fetch_map = NULL, **tail = &fetch_map;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/remote.c:366:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct ref *ref, *stale_refs;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/remote.c:366:14: warning: variable 'ref' is not initialized [cppcoreguidelines-init-variables]
        struct ref *ref, *stale_refs;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/remote.c:366:20: warning: variable 'stale_refs' is not initialized [cppcoreguidelines-init-variables]
        struct ref *ref, *stale_refs;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/remote.c:367:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/remote.c:367:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/remote.c:369:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < states->remote->fetch.nr; i++)
        ^
/datasets/git/builtin/remote.c:366:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct ref *ref, *stale_refs;
        ^
/datasets/git/builtin/remote.c:369:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < states->remote->fetch.nr; i++)
                                                      ^
                                                       {
/datasets/git/builtin/remote.c:370:77: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (get_fetch_map(remote_refs, &states->remote->fetch.items[i], &tail, 1))
                                                                                          ^
                                                                                           {
/datasets/git/builtin/remote.c:374:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (ref = fetch_map; ref; ref = ref->next) {
        ^
/datasets/git/builtin/remote.c:366:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct ref *ref, *stale_refs;
        ^
/datasets/git/builtin/remote.c:374:24: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (ref = fetch_map; ref; ref = ref->next) {
                              ^
/datasets/git/builtin/remote.c:375:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (omit_name_by_refspec(ref->name, &states->remote->fetch))
                                                                            ^
                                                                             {
/datasets/git/builtin/remote.c:377:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!ref->peer_ref || !ref_exists(ref->peer_ref->name))
                                                                            ^
                                                                             {
/datasets/git/builtin/remote.c:379:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/remote.c:383:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (ref = stale_refs; ref; ref = ref->next) {
        ^
/datasets/git/builtin/remote.c:383:25: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (ref = stale_refs; ref; ref = ref->next) {
                               ^
/datasets/git/builtin/remote.c:399:8: warning: accessing fields in struct 'push_info' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct push_info {
       ^
/datasets/git/builtin/remote.c:399:8: note: use "__attribute__((aligned(16)))" to align struct 'push_info' to 16 bytes
/datasets/git/builtin/remote.c:416:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct ref *ref, *local_refs, *push_map;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/remote.c:416:14: warning: variable 'ref' is not initialized [cppcoreguidelines-init-variables]
        struct ref *ref, *local_refs, *push_map;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/remote.c:416:20: warning: variable 'local_refs' is not initialized [cppcoreguidelines-init-variables]
        struct ref *ref, *local_refs, *push_map;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/remote.c:416:33: warning: variable 'push_map' is not initialized [cppcoreguidelines-init-variables]
        struct ref *ref, *local_refs, *push_map;
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/remote.c:417:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (remote->mirror)
                           ^
                            {
/datasets/git/builtin/remote.c:425:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (ref = push_map; ref; ref = ref->next) {
        ^
/datasets/git/builtin/remote.c:425:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (ref = push_map; ref; ref = ref->next) {
                             ^
/datasets/git/builtin/remote.c:426:28: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
                struct string_list_item *item;
                                         ^
                                              = NULL
/datasets/git/builtin/remote.c:427:21: warning: variable 'info' is not initialized [cppcoreguidelines-init-variables]
                struct push_info *info;
                                  ^
                                       = NULL
/datasets/git/builtin/remote.c:429:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ref->peer_ref)
                                   ^
                                    {
/datasets/git/builtin/remote.c:442:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else if (oideq(&ref->old_oid, &ref->new_oid))
                                                               ^
                                                                {
/datasets/git/builtin/remote.c:444:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (is_null_oid(&ref->old_oid))
                                                    ^
                                                     {
/datasets/git/builtin/remote.c:447:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                         ref_newer(&ref->new_oid, &ref->old_oid))
                                                                 ^
                                                                  {
/datasets/git/builtin/remote.c:449:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/remote.c:459:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/remote.c:459:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/remote.c:461:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/builtin/remote.c:462:20: warning: variable 'info' is not initialized [cppcoreguidelines-init-variables]
        struct push_info *info;
                          ^
                               = NULL
/datasets/git/builtin/remote.c:464:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (remote->mirror)
                           ^
                            {
/datasets/git/builtin/remote.c:473:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < remote->push.nr; i++) {
        ^
/datasets/git/builtin/remote.c:473:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'remote' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < remote->push.nr; i++) {
                    ^
/datasets/git/builtin/remote.c:475:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (spec->matching)
                                   ^
                                    {
/datasets/git/builtin/remote.c:477:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (strlen(spec->src))
                                           ^
                                            {
/datasets/git/builtin/remote.c:479:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/remote.c:492:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct ref *ref, *matches;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/remote.c:492:14: warning: variable 'ref' is not initialized [cppcoreguidelines-init-variables]
        struct ref *ref, *matches;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/remote.c:492:20: warning: variable 'matches' is not initialized [cppcoreguidelines-init-variables]
        struct ref *ref, *matches;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/remote.c:493:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct ref *fetch_map = NULL, **fetch_map_tail = &fetch_map;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/remote.c:496:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&refspec, 0, sizeof(refspec));
        ^~~~~~
/datasets/git/builtin/remote.c:496:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&refspec, 0, sizeof(refspec));
        ^~~~~~
/datasets/git/builtin/remote.c:503:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (ref = matches; ref; ref = ref->next)
        ^
/datasets/git/builtin/remote.c:503:22: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (ref = matches; ref; ref = ref->next)
                            ^
/datasets/git/builtin/remote.c:503:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (ref = matches; ref; ref = ref->next)
                                                 ^
                                                  {
/datasets/git/builtin/remote.c:512:8: warning: accessing fields in struct 'known_remote' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct known_remote {
       ^
/datasets/git/builtin/remote.c:512:8: note: use "__attribute__((aligned(16)))" to align struct 'known_remote' to 16 bytes
/datasets/git/builtin/remote.c:517:8: warning: accessing fields in struct 'known_remotes' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct known_remotes {
       ^
/datasets/git/builtin/remote.c:517:8: note: use "__attribute__((aligned(16)))" to align struct 'known_remotes' to 16 bytes
/datasets/git/builtin/remote.c:525:23: warning: variable 'r' is not initialized [cppcoreguidelines-init-variables]
        struct known_remote *r;
                             ^
                               = NULL
/datasets/git/builtin/remote.c:525:23: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/remote.c:527:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(all->to_delete->name, remote->name))
                                                        ^
                                                         {
/datasets/git/builtin/remote.c:537:8: warning: accessing fields in struct 'branches_for_remote' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct branches_for_remote {
       ^
/datasets/git/builtin/remote.c:537:8: note: use "__attribute__((aligned(32)))" to align struct 'branches_for_remote' to 32 bytes
/datasets/git/builtin/remote.c:549:23: warning: variable 'kr' is not initialized [cppcoreguidelines-init-variables]
        struct known_remote *kr;
                             ^
                                = NULL
/datasets/git/builtin/remote.c:549:23: warning: variable name 'kr' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/remote.c:551:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&refspec, 0, sizeof(refspec));
        ^~~~~~
/datasets/git/builtin/remote.c:551:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&refspec, 0, sizeof(refspec));
        ^~~~~~
/datasets/git/builtin/remote.c:553:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (remote_find_tracking(branches->remote, &refspec))
                                                             ^
                                                              {
/datasets/git/builtin/remote.c:557:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (kr = branches->keep->list; kr; kr = kr->next) {
        ^
/datasets/git/builtin/remote.c:557:34: warning: backward branch (for loop) is ID-dependent due to variable reference to 'kr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (kr = branches->keep->list; kr; kr = kr->next) {
                                        ^
/datasets/git/builtin/remote.c:558:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(&refspec, 0, sizeof(refspec));
                ^~~~~~
/datasets/git/builtin/remote.c:558:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(&refspec, 0, sizeof(refspec));
                ^~~~~~
/datasets/git/builtin/remote.c:560:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!remote_find_tracking(kr->remote, &refspec))
                                                                ^
                                                                 {
/datasets/git/builtin/remote.c:567:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (starts_with(refname, "refs/heads/"))
                                                        ^
                                                         {
/datasets/git/builtin/remote.c:579:8: warning: accessing fields in struct 'rename_info' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct rename_info {
       ^
/datasets/git/builtin/remote.c:579:8: note: use "__attribute__((aligned(32)))" to align struct 'rename_info' to 32 bytes
/datasets/git/builtin/remote.c:592:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/builtin/remote.c:593:6: warning: variable 'flag' is not initialized [cppcoreguidelines-init-variables]
        int flag;
            ^
                 = 0
/datasets/git/builtin/remote.c:594:14: warning: variable 'symref' is not initialized [cppcoreguidelines-init-variables]
        const char *symref;
                    ^
                           = NULL
/datasets/git/builtin/remote.c:601:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (symref && (flag & REF_ISSYMREF)) {
                               ^~~~
/datasets/git/builtin/remote.c:616:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/remote.c:616:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/remote.c:619:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < remote->url_nr; i++)
        ^
/datasets/git/builtin/remote.c:619:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < remote->url_nr; i++)
                                            ^
                                             {
/datasets/git/builtin/remote.c:623:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < remote->push.raw_nr; i++)
        ^
/datasets/git/builtin/remote.c:623:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < remote->push.raw_nr; i++)
                                                 ^
                                                  {
/datasets/git/builtin/remote.c:627:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < remote->fetch.raw_nr; i++)
        ^
/datasets/git/builtin/remote.c:627:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < remote->fetch.raw_nr; i++)
                                                  ^
                                                   {
/datasets/git/builtin/remote.c:629:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (remote->origin == REMOTE_REMOTES)
                                             ^
                                              {
/datasets/git/builtin/remote.c:631:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (remote->origin == REMOTE_BRANCHES)
                                                   ^
                                                    {
/datasets/git/builtin/remote.c:638:8: warning: accessing fields in struct 'push_default_info' is inefficient due to padding; only needs 40 bytes but is using 48 bytes [altera-struct-pack-align]
struct push_default_info
       ^
/datasets/git/builtin/remote.c:638:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'push_default_info'
/datasets/git/builtin/remote.c:638:8: warning: accessing fields in struct 'push_default_info' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct push_default_info
       ^
/datasets/git/builtin/remote.c:638:8: note: use "__attribute__((aligned(64)))" to align struct 'push_default_info' to 64 bytes
/datasets/git/builtin/remote.c:647:8: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
        void *cb)
              ^
/datasets/git/builtin/remote.c:650:6: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (strcmp(key, "remote.pushdefault") ||
            ^
                                              != 0
/datasets/git/builtin/remote.c:651:16: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
            !value || strcmp(value, info->old_name))
                      ^
                                                    != 0
/datasets/git/builtin/remote.c:651:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !value || strcmp(value, info->old_name))
                                                    ^
                                                     {
/datasets/git/builtin/remote.c:662:33: warning: 2 adjacent parameters of 'handle_push_default' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void handle_push_default(const char* old_name, const char* new_name)
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/remote.c:662:45: note: the first parameter in the range is 'old_name'
static void handle_push_default(const char* old_name, const char* new_name)
                                            ^~~~~~~~
/datasets/git/builtin/remote.c:662:67: note: the last parameter in the range is 'new_name'
static void handle_push_default(const char* old_name, const char* new_name)
                                                                  ^~~~~~~~
/datasets/git/builtin/remote.c:667:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (push_default.scope >= CONFIG_SCOPE_COMMAND)
                                                       ^
                                                        {
/datasets/git/builtin/remote.c:672:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (new_name && result && result != CONFIG_NOTHING_SET)
                                                                       ^
                                                                        {
/datasets/git/builtin/remote.c:674:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!new_name && result && result != CONFIG_NOTHING_SET)
                                                                             ^
                                                                              {
/datasets/git/builtin/remote.c:688:12: warning: function 'mv' has cognitive complexity of 38 (threshold 25) [readability-function-cognitive-complexity]
static int mv(int argc, const char **argv, const char *prefix)
           ^
/datasets/git/builtin/remote.c:706:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (argc != 2)
        ^
/datasets/git/builtin/remote.c:715:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!remote_is_configured(oldremote, 1)) {
        ^
/datasets/git/builtin/remote.c:720:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(rename.old_name, rename.new_name) && oldremote->origin != REMOTE_CONFIG)
        ^
/datasets/git/builtin/remote.c:720:48: note: +1
        if (!strcmp(rename.old_name, rename.new_name) && oldremote->origin != REMOTE_CONFIG)
                                                      ^
/datasets/git/builtin/remote.c:724:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (remote_is_configured(newremote, 1)) {
        ^
/datasets/git/builtin/remote.c:729:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!valid_remote_name(rename.new_name))
        ^
/datasets/git/builtin/remote.c:734:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (git_config_rename_section(buf.buf, buf2.buf) < 1)
        ^
/datasets/git/builtin/remote.c:738:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (oldremote->fetch.raw_nr) {
        ^
/datasets/git/builtin/remote.c:743:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < oldremote->fetch.raw_nr; i++) {
                ^
/datasets/git/builtin/remote.c:749:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ptr) {
                        ^
/datasets/git/builtin/remote.c:755:6: note: +1, nesting level increased to 3
                        } else
                          ^
/datasets/git/builtin/remote.c:766:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < branch_list.nr; i++) {
        ^
/datasets/git/builtin/remote.c:769:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (info->remote_name && !strcmp(info->remote_name, rename.old_name)) {
                ^
/datasets/git/builtin/remote.c:769:25: note: +1
                if (info->remote_name && !strcmp(info->remote_name, rename.old_name)) {
                                      ^
/datasets/git/builtin/remote.c:774:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (info->push_remote_name && !strcmp(info->push_remote_name, rename.old_name)) {
                ^
/datasets/git/builtin/remote.c:774:30: note: +1
                if (info->push_remote_name && !strcmp(info->push_remote_name, rename.old_name)) {
                                           ^
/datasets/git/builtin/remote.c:781:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!refspec_updated)
        ^
/datasets/git/builtin/remote.c:789:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (show_progress) {
        ^
/datasets/git/builtin/remote.c:797:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < remote_branches.nr; i++) {
        ^
/datasets/git/builtin/remote.c:801:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (refs_read_symbolic_ref(get_main_ref_store(the_repository), item->string,
                ^
/datasets/git/builtin/remote.c:804:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (delete_ref(NULL, item->string, NULL, REF_NO_DEREF))
                ^
/datasets/git/builtin/remote.c:810:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < remote_branches.nr; i++) {
        ^
/datasets/git/builtin/remote.c:813:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (item->util)
                ^
/datasets/git/builtin/remote.c:822:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (rename_ref(item->string, buf.buf, buf2.buf))
                ^
/datasets/git/builtin/remote.c:826:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < remote_branches.nr; i++) {
        ^
/datasets/git/builtin/remote.c:829:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!item->util)
                ^
/datasets/git/builtin/remote.c:842:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (create_symref(buf.buf, buf2.buf, buf3.buf))
                ^
/datasets/git/builtin/remote.c:692:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "progress", &show_progress, N_("force progress reporting")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/remote.c:695:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct remote *oldremote, *newremote;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/remote.c:695:17: warning: variable 'oldremote' is not initialized [cppcoreguidelines-init-variables]
        struct remote *oldremote, *newremote;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/remote.c:695:29: warning: variable 'newremote' is not initialized [cppcoreguidelines-init-variables]
        struct remote *oldremote, *newremote;
                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/remote.c:696:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct strbuf buf = STRBUF_INIT, buf2 = STRBUF_INIT, buf3 = STRBUF_INIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/remote.c:700:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, refs_renamed_nr = 0, refspec_updated = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/remote.c:700:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, refs_renamed_nr = 0, refspec_updated = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/remote.c:700:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/remote.c:706:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc != 2)
                      ^
                       {
/datasets/git/builtin/remote.c:717:3: warning: function is not thread safe [concurrency-mt-unsafe]
                exit(2);
                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/remote.c:720:86: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(rename.old_name, rename.new_name) && oldremote->origin != REMOTE_CONFIG)
                                                                                            ^
                                                                                             {
/datasets/git/builtin/remote.c:726:3: warning: function is not thread safe [concurrency-mt-unsafe]
                exit(3);
                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/remote.c:695:2: note: inferred assignment of ID-dependent value from ID-dependent member old_name [altera-id-dependent-backward-branch]
        struct remote *oldremote, *newremote;
        ^
/datasets/git/builtin/remote.c:729:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!valid_remote_name(rename.new_name))
                                                ^
                                                 {
/datasets/git/builtin/remote.c:734:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (git_config_rename_section(buf.buf, buf2.buf) < 1)
                                                             ^
                                                              {
/datasets/git/builtin/remote.c:741:48: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                git_config_set_multivar(buf.buf, NULL, NULL, CONFIG_FLAGS_MULTI_REPLACE);
                                                             ^
/datasets/git/./config.h:294:37: note: expanded from macro 'CONFIG_FLAGS_MULTI_REPLACE'
#define CONFIG_FLAGS_MULTI_REPLACE (1 << 0)
                                    ^
/datasets/git/builtin/remote.c:743:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < oldremote->fetch.raw_nr; i++) {
                ^
/datasets/git/builtin/remote.c:743:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'oldremote' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < oldremote->fetch.raw_nr; i++) {
                            ^
/datasets/git/builtin/remote.c:744:10: warning: variable 'ptr' is not initialized [cppcoreguidelines-init-variables]
                        char *ptr;
                              ^
                                  = NULL
/datasets/git/builtin/remote.c:755:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        } else
                              ^
                               {
/datasets/git/builtin/remote.c:766:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < branch_list.nr; i++) {
        ^
/datasets/git/builtin/remote.c:781:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!refspec_updated)
                             ^
                              {
/datasets/git/builtin/remote.c:797:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < remote_branches.nr; i++) {
        ^
/datasets/git/builtin/remote.c:802:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                           &referent))
                                                      ^
                                                       {
/datasets/git/builtin/remote.c:804:44: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (delete_ref(NULL, item->string, NULL, REF_NO_DEREF))
                                                         ^
/datasets/git/./refs.h:631:23: note: expanded from macro 'REF_NO_DEREF'
#define REF_NO_DEREF (1 << 0)
                      ^
/datasets/git/builtin/remote.c:804:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (delete_ref(NULL, item->string, NULL, REF_NO_DEREF))
                                                                       ^
                                                                        {
/datasets/git/builtin/remote.c:810:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < remote_branches.nr; i++) {
        ^
/datasets/git/builtin/remote.c:813:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (item->util)
                               ^
                                {
/datasets/git/builtin/remote.c:822:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (rename_ref(item->string, buf.buf, buf2.buf))
                                                                ^
                                                                 {
/datasets/git/builtin/remote.c:826:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < remote_branches.nr; i++) {
        ^
/datasets/git/builtin/remote.c:829:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!item->util)
                                ^
                                 {
/datasets/git/builtin/remote.c:842:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (create_symref(buf.buf, buf2.buf, buf3.buf))
                                                               ^
                                                                {
/datasets/git/builtin/remote.c:854:12: warning: function 'rm' has cognitive complexity of 28 (threshold 25) [readability-function-cognitive-complexity]
static int rm(int argc, const char **argv, const char *prefix)
           ^
/datasets/git/builtin/remote.c:874:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (argc != 1)
        ^
/datasets/git/builtin/remote.c:878:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!remote_is_configured(remote, 1)) {
        ^
/datasets/git/builtin/remote.c:887:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < branch_list.nr; i++) {
        ^
/datasets/git/builtin/remote.c:890:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (info->remote_name && !strcmp(info->remote_name, remote->name)) {
                ^
/datasets/git/builtin/remote.c:890:25: note: +1
                if (info->remote_name && !strcmp(info->remote_name, remote->name)) {
                                      ^
/datasets/git/builtin/remote.c:892:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (k = keys; *k; k++) {
                        ^
/datasets/git/builtin/remote.c:897:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (result && result != CONFIG_NOTHING_SET)
                                ^
/datasets/git/builtin/remote.c:897:16: note: +1
                                if (result && result != CONFIG_NOTHING_SET)
                                           ^
/datasets/git/builtin/remote.c:901:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (info->push_remote_name && !strcmp(info->push_remote_name, remote->name)) {
                ^
/datasets/git/builtin/remote.c:901:30: note: +1
                if (info->push_remote_name && !strcmp(info->push_remote_name, remote->name)) {
                                           ^
/datasets/git/builtin/remote.c:905:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (result && result != CONFIG_NOTHING_SET)
                        ^
/datasets/git/builtin/remote.c:905:15: note: +1
                        if (result && result != CONFIG_NOTHING_SET)
                                   ^
/datasets/git/builtin/remote.c:919:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!result)
        ^
/datasets/git/builtin/remote.c:923:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (skipped.nr) {
        ^
/datasets/git/builtin/remote.c:930:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < skipped.nr; i++)
                ^
/datasets/git/builtin/remote.c:936:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!result) {
        ^
/datasets/git/builtin/remote.c:938:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (git_config_rename_section(buf.buf, NULL) < 1)
                ^
/datasets/git/builtin/remote.c:859:17: warning: variable 'remote' is not initialized [cppcoreguidelines-init-variables]
        struct remote *remote;
                       ^
                              = NULL
/datasets/git/builtin/remote.c:865:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, result;
        ^~~~~~~~~~~~~~
/datasets/git/builtin/remote.c:865:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, result;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/remote.c:865:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/remote.c:865:9: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        int i, result;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/remote.c:867:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&cb_data, 0, sizeof(cb_data));
        ^~~~~~
/datasets/git/builtin/remote.c:867:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&cb_data, 0, sizeof(cb_data));
        ^~~~~~
/datasets/git/builtin/remote.c:874:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc != 1)
                      ^
                       {
/datasets/git/builtin/remote.c:880:3: warning: function is not thread safe [concurrency-mt-unsafe]
                exit(2);
                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/remote.c:891:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        const char *keys[] = { "remote", "merge", NULL }, **k;
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/remote.c:891:4: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/builtin/remote.c:891:56: warning: variable 'k' is not initialized [cppcoreguidelines-init-variables]
                        const char *keys[] = { "remote", "merge", NULL }, **k;
                                                                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/remote.c:891:56: warning: variable name 'k' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/remote.c:892:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (k = keys; *k; k++) {
                        ^
/datasets/git/builtin/remote.c:892:19: warning: backward branch (for loop) is ID-dependent due to variable reference to 'k' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (k = keys; *k; k++) {
                                       ^
/datasets/git/builtin/remote.c:897:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (result && result != CONFIG_NOTHING_SET)
                                                                           ^
                                                                            {
/datasets/git/builtin/remote.c:905:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (result && result != CONFIG_NOTHING_SET)
                                                                   ^
                                                                    {
/datasets/git/builtin/remote.c:919:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!result)
                    ^
                     {
/datasets/git/builtin/remote.c:920:53: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                result = delete_refs("remote: remove", &branches, REF_NO_DEREF);
                                                                  ^
/datasets/git/./refs.h:631:23: note: expanded from macro 'REF_NO_DEREF'
#define REF_NO_DEREF (1 << 0)
                      ^
/datasets/git/builtin/remote.c:930:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < skipped.nr; i++)
                ^
/datasets/git/builtin/remote.c:930:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < skipped.nr; i++)
                                                ^
                                                 {
/datasets/git/builtin/remote.c:931:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, "  git branch -d %s\n",
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/remote.c:931:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/remote.c:938:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (git_config_rename_section(buf.buf, NULL) < 1)
                                                                 ^
                                                                  {
/datasets/git/builtin/remote.c:971:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & REF_ISSYMREF)
            ^~~~~
/datasets/git/builtin/remote.c:971:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & REF_ISSYMREF)
                                 ^
                                  {
/datasets/git/builtin/remote.c:974:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&refspec, 0, sizeof(refspec));
        ^~~~~~
/datasets/git/builtin/remote.c:974:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&refspec, 0, sizeof(refspec));
        ^~~~~~
/datasets/git/builtin/remote.c:976:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!remote_find_tracking(states->remote, &refspec))
                                                            ^
                                                             {
/datasets/git/builtin/remote.c:987:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!states->remote)
                            ^
                             {
/datasets/git/builtin/remote.c:993:21: warning: variable 'transport' is not initialized [cppcoreguidelines-init-variables]
                struct transport *transport;
                                  ^
                                            = NULL
/datasets/git/builtin/remote.c:994:21: warning: variable 'remote_refs' is not initialized [cppcoreguidelines-init-variables]
                const struct ref *remote_refs;
                                  ^
                                              = NULL
/datasets/git/builtin/remote.c:1001:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (query & GET_REF_STATES)
                    ^~~~~
/datasets/git/builtin/remote.c:1001:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (query & GET_REF_STATES)
                            ^
/datasets/git/builtin/remote.c:87:25: note: expanded from macro 'GET_REF_STATES'
#define GET_REF_STATES (1<<0)
                        ^
/datasets/git/builtin/remote.c:1001:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (query & GET_REF_STATES)
                                           ^
                                            {
/datasets/git/builtin/remote.c:1003:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (query & GET_HEAD_NAMES)
                    ^~~~~
/datasets/git/builtin/remote.c:1003:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (query & GET_HEAD_NAMES)
                            ^
/datasets/git/builtin/remote.c:88:25: note: expanded from macro 'GET_HEAD_NAMES'
#define GET_HEAD_NAMES (1<<1)
                        ^
/datasets/git/builtin/remote.c:1003:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (query & GET_HEAD_NAMES)
                                           ^
                                            {
/datasets/git/builtin/remote.c:1005:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (query & GET_PUSH_REF_STATES)
                    ^~~~~
/datasets/git/builtin/remote.c:1005:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (query & GET_PUSH_REF_STATES)
                            ^
/datasets/git/builtin/remote.c:89:30: note: expanded from macro 'GET_PUSH_REF_STATES'
#define GET_PUSH_REF_STATES (1<<2)
                             ^
/datasets/git/builtin/remote.c:1005:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (query & GET_PUSH_REF_STATES)
                                                ^
                                                 {
/datasets/git/builtin/remote.c:1017:8: warning: accessing fields in struct 'show_info' is inefficient due to padding; only needs 308 bytes but is using 312 bytes [altera-struct-pack-align]
struct show_info {
       ^
/datasets/git/builtin/remote.c:1017:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'show_info'
/datasets/git/builtin/remote.c:1017:8: warning: accessing fields in struct 'show_info' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct show_info {
       ^
/datasets/git/builtin/remote.c:1017:8: note: use "__attribute__((aligned(128)))" to align struct 'show_info' to 128 bytes
/datasets/git/builtin/remote.c:1032:6: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
        int n = strlen(item->string);
            ^
/datasets/git/builtin/remote.c:1032:10: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int n = strlen(item->string);
                ^
/datasets/git/builtin/remote.c:1033:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (n > info->width)
                            ^
                             {
/datasets/git/builtin/remote.c:1051:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else if (string_list_has_string(&states->tracked, name))
                                                                          ^
                                                                           {
/datasets/git/builtin/remote.c:1053:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (string_list_has_string(&states->skipped, name))
                                                                        ^
                                                                         {
/datasets/git/builtin/remote.c:1055:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (string_list_has_string(&states->stale, name))
                                                                      ^
                                                                       {
/datasets/git/builtin/remote.c:1057:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/remote.c:1062:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/builtin/remote.c:1073:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/builtin/remote.c:1074:6: warning: variable 'n' is not initialized [cppcoreguidelines-init-variables]
        int n;
            ^
              = 0
/datasets/git/builtin/remote.c:1074:6: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/remote.c:1077:6: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
            strcmp(states->remote->name, branch_info->remote_name))
            ^
                                                                   != 0
/datasets/git/builtin/remote.c:1077:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            strcmp(states->remote->name, branch_info->remote_name))
                                                                   ^
                                                                    {
/datasets/git/builtin/remote.c:1079:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if ((n = strlen(branch_item->string)) > show_info->width)
             ^
/datasets/git/builtin/remote.c:1079:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/builtin/remote.c:1079:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/builtin/remote.c:1079:11: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        if ((n = strlen(branch_item->string)) > show_info->width)
                 ^
/datasets/git/builtin/remote.c:1079:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((n = strlen(branch_item->string)) > show_info->width)
                                                                 ^
                                                                  {
/datasets/git/builtin/remote.c:1081:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (branch_info->rebase >= REBASE_TRUE)
                                               ^
                                                {
/datasets/git/builtin/remote.c:1096:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/remote.c:1096:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/remote.c:1106:15: warning: variable 'msg' is not initialized [cppcoreguidelines-init-variables]
                const char *msg;
                            ^
                                = NULL
/datasets/git/builtin/remote.c:1107:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (branch_info->rebase == REBASE_INTERACTIVE)
                                                              ^
                                                               {
/datasets/git/builtin/remote.c:1109:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (branch_info->rebase == REBASE_MERGES)
                                                              ^
                                                               {
/datasets/git/builtin/remote.c:1112:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/remote.c:1116:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else if (show_info->any_rebase) {
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/remote.c:1122:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 1; i < merge->nr; i++)
        ^
/datasets/git/builtin/remote.c:1122:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'merge' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 1; i < merge->nr; i++)
                    ^
/datasets/git/builtin/remote.c:1122:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 1; i < merge->nr; i++)
                                       ^
                                        {
/datasets/git/builtin/remote.c:1133:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/builtin/remote.c:1134:6: warning: variable 'n' is not initialized [cppcoreguidelines-init-variables]
        int n;
            ^
              = 0
/datasets/git/builtin/remote.c:1134:6: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/remote.c:1135:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if ((n = strlen(push_item->string)) > show_info->width)
             ^
/datasets/git/builtin/remote.c:1135:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/builtin/remote.c:1135:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/builtin/remote.c:1135:11: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        if ((n = strlen(push_item->string)) > show_info->width)
                 ^
/datasets/git/builtin/remote.c:1135:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((n = strlen(push_item->string)) > show_info->width)
                                                               ^
                                                                {
/datasets/git/builtin/remote.c:1137:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if ((n = strlen(push_info->dest)) > show_info->width2)
             ^
/datasets/git/builtin/remote.c:1137:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/builtin/remote.c:1137:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/builtin/remote.c:1137:11: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        if ((n = strlen(push_info->dest)) > show_info->width2)
                 ^
/datasets/git/builtin/remote.c:1137:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((n = strlen(push_info->dest)) > show_info->width2)
                                                              ^
                                                               {
/datasets/git/builtin/remote.c:1148:45: warning: parameter name 'va' is too short, expected at least 3 characters [readability-identifier-length]
static int cmp_string_with_push(const void *va, const void *vb)
                                            ^
/datasets/git/builtin/remote.c:1148:61: warning: parameter name 'vb' is too short, expected at least 3 characters [readability-identifier-length]
static int cmp_string_with_push(const void *va, const void *vb)
                                                            ^
/datasets/git/builtin/remote.c:1150:33: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        const struct string_list_item *a = va;
                                       ^
/datasets/git/builtin/remote.c:1151:33: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        const struct string_list_item *b = vb;
                                       ^
/datasets/git/builtin/remote.c:1162:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *src = item->string, *status = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/remote.c:1185:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (push_info->forced)
                                      ^
                                       {
/datasets/git/builtin/remote.c:1188:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/remote.c:1192:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (push_info->forced)
                                      ^
                                       {
/datasets/git/builtin/remote.c:1195:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/remote.c:1206:15: warning: variable 'url' is not initialized [cppcoreguidelines-init-variables]
        const char **url;
                     ^
                         = NULL
/datasets/git/builtin/remote.c:1207:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, url_nr;
        ^~~~~~~~~~~~~~
/datasets/git/builtin/remote.c:1207:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, url_nr;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/remote.c:1207:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/remote.c:1207:9: warning: variable 'url_nr' is not initialized [cppcoreguidelines-init-variables]
        int i, url_nr;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/remote.c:1215:78: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!git_config_get_string_tmp(promisor_config.buf, &partial_clone_filter))
                                                                                           ^
                                                                                            {
/datasets/git/builtin/remote.c:1221:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/builtin/remote.c:1230:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < url_nr; i++)
        ^
/datasets/git/builtin/remote.c:1230:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'url_nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < url_nr; i++)
                    ^
/datasets/git/builtin/remote.c:1243:6: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        int result;
            ^
                   = 0
/datasets/git/builtin/remote.c:1248:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/builtin/remote.c:1248:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/remote.c:1251:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < list.nr; i++) {
                ^
/datasets/git/builtin/remote.c:1253:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (verbose)
                                    ^
                                     {
/datasets/git/builtin/remote.c:1257:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (i && !strcmp((item - 1)->string, item->string))
                                                                                   ^
                                                                                    {
/datasets/git/builtin/remote.c:1267:12: warning: function 'show' has cognitive complexity of 34 (threshold 25) [readability-function-cognitive-complexity]
static int show(int argc, const char **argv, const char *prefix)
           ^
/datasets/git/builtin/remote.c:1280:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (argc < 1)
        ^
/datasets/git/builtin/remote.c:1283:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!no_query)
        ^
/datasets/git/builtin/remote.c:1286:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (; argc; argc--, argv++) {
        ^
/datasets/git/builtin/remote.c:1294:66: note: +2, including nesting penalty of 1, nesting level increased to 2
                printf_ln(_("  Fetch URL: %s"), info.states.remote->url_nr > 0 ?
                                                                               ^
/datasets/git/builtin/remote.c:1296:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (info.states.remote->pushurl_nr) {
                ^
/datasets/git/builtin/remote.c:1299:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/remote.c:1303:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < url_nr; i++)
                ^
/datasets/git/builtin/remote.c:1310:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!i)
                ^
/datasets/git/builtin/remote.c:1312:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (no_query)
                ^
/datasets/git/builtin/remote.c:1314:8: note: +1, nesting level increased to 2
                else if (!info.states.heads.nr)
                     ^
/datasets/git/builtin/remote.c:1316:8: note: +1, nesting level increased to 2
                else if (info.states.heads.nr == 1)
                     ^
/datasets/git/builtin/remote.c:1318:3: note: +1, nesting level increased to 2
                else {
                ^
/datasets/git/builtin/remote.c:1321:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (i = 0; i < info.states.heads.nr; i++)
                        ^
/datasets/git/builtin/remote.c:1331:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (info.list.nr)
                ^
/datasets/git/builtin/remote.c:1335:16: note: +3, including nesting penalty of 2, nesting level increased to 3
                                  no_query ? _(" (status not queried)") : "");
                                           ^
/datasets/git/builtin/remote.c:1343:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (info.list.nr)
                ^
/datasets/git/builtin/remote.c:1351:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (info.states.remote->mirror)
                ^
/datasets/git/builtin/remote.c:1357:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (info.list.nr)
                ^
/datasets/git/builtin/remote.c:1361:16: note: +3, including nesting penalty of 2, nesting level increased to 3
                                  no_query ? _(" (status not queried)") : "");
                                           ^
/datasets/git/builtin/remote.c:1269:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int no_query = 0, result = 0, query_flag = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/remote.c:1271:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('n', NULL, &no_query, N_("do not query remotes")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/remote.c:1280:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc < 1)
                     ^
                      {
/datasets/git/builtin/remote.c:1283:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!no_query)
                      ^
                       {
/datasets/git/builtin/remote.c:1284:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                query_flag = (GET_REF_STATES | GET_HEAD_NAMES | GET_PUSH_REF_STATES);
                              ^
/datasets/git/builtin/remote.c:87:24: note: expanded from macro 'GET_REF_STATES'
#define GET_REF_STATES (1<<0)
                       ^
/datasets/git/builtin/remote.c:1284:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                query_flag = (GET_REF_STATES | GET_HEAD_NAMES | GET_PUSH_REF_STATES);
                                               ^
/datasets/git/builtin/remote.c:88:25: note: expanded from macro 'GET_HEAD_NAMES'
#define GET_HEAD_NAMES (1<<1)
                        ^
/datasets/git/builtin/remote.c:1284:51: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                query_flag = (GET_REF_STATES | GET_HEAD_NAMES | GET_PUSH_REF_STATES);
                                                                ^
/datasets/git/builtin/remote.c:89:30: note: expanded from macro 'GET_PUSH_REF_STATES'
#define GET_PUSH_REF_STATES (1<<2)
                             ^
/datasets/git/builtin/remote.c:1286:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'argc' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; argc; argc--, argv++) {
               ^
/datasets/git/builtin/remote.c:1287:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/builtin/remote.c:1287:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/remote.c:1288:16: warning: variable 'url' is not initialized [cppcoreguidelines-init-variables]
                const char **url;
                             ^
                                 = NULL
/datasets/git/builtin/remote.c:1289:7: warning: variable 'url_nr' is not initialized [cppcoreguidelines-init-variables]
                int url_nr;
                    ^
                           = 0
/datasets/git/builtin/remote.c:1303:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < url_nr; i++)
                ^
/datasets/git/builtin/remote.c:1303:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'url_nr' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < url_nr; i++)
                            ^
/datasets/git/builtin/remote.c:1303:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < url_nr; i++)
                                            ^
                                             {
/datasets/git/builtin/remote.c:1310:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!i)
                       ^
                        {
/datasets/git/builtin/remote.c:1312:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (no_query)
                             ^
                              {
/datasets/git/builtin/remote.c:1314:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!info.states.heads.nr)
                                               ^
                                                {
/datasets/git/builtin/remote.c:1316:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (info.states.heads.nr == 1)
                                                   ^
                                                    {
/datasets/git/builtin/remote.c:1321:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = 0; i < info.states.heads.nr; i++)
                        ^
/datasets/git/builtin/remote.c:1321:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (i = 0; i < info.states.heads.nr; i++)
                                                                  ^
                                                                   {
/datasets/git/builtin/remote.c:1331:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (info.list.nr)
                                 ^
                                  {
/datasets/git/builtin/remote.c:1343:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (info.list.nr)
                                 ^
                                  {
/datasets/git/builtin/remote.c:1351:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (info.states.remote->mirror)
                                               ^
                                                {
/datasets/git/builtin/remote.c:1357:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (info.list.nr)
                                 ^
                                  {
/datasets/git/builtin/remote.c:1373:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, opt_a = 0, opt_d = 0, result = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/remote.c:1373:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, opt_a = 0, opt_d = 0, result = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/remote.c:1373:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/remote.c:1374:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct strbuf buf = STRBUF_INIT, buf2 = STRBUF_INIT;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/remote.c:1378:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('a', "auto", &opt_a,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/remote.c:1380:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('d', "delete", &opt_d,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/remote.c:1386:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc)
                 ^
                  {
/datasets/git/builtin/remote.c:1393:43: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                get_remote_ref_states(argv[0], &states, GET_HEAD_NAMES);
                                                        ^
/datasets/git/builtin/remote.c:88:25: note: expanded from macro 'GET_HEAD_NAMES'
#define GET_HEAD_NAMES (1<<1)
                        ^
/datasets/git/builtin/remote.c:1394:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!states.heads.nr)
                                     ^
                                      {
/datasets/git/builtin/remote.c:1395:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        result |= error(_("Cannot determine remote HEAD"));
                        ^~~~~~
/datasets/git/builtin/remote.c:1397:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        result |= error(_("Multiple remote HEAD branches. "
                        ^~~~~~
/datasets/git/builtin/remote.c:1399:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = 0; i < states.heads.nr; i++)
                        ^
/datasets/git/builtin/remote.c:1399:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (i = 0; i < states.heads.nr; i++)
                                                             ^
                                                              {
/datasets/git/builtin/remote.c:1400:5: warning: the value returned by this function should be used [cert-err33-c]
                                fprintf(stderr, "  git remote set-head %s %s\n",
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/remote.c:1400:5: note: cast the expression to void to silence this warning
/datasets/git/builtin/remote.c:1402:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/builtin/remote.c:1406:39: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (delete_ref(NULL, buf.buf, NULL, REF_NO_DEREF))
                                                    ^
/datasets/git/./refs.h:631:23: note: expanded from macro 'REF_NO_DEREF'
#define REF_NO_DEREF (1 << 0)
                      ^
/datasets/git/builtin/remote.c:1406:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (delete_ref(NULL, buf.buf, NULL, REF_NO_DEREF))
                                                                  ^
                                                                   {
/datasets/git/builtin/remote.c:1407:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        result |= error(_("Could not delete %s"), buf.buf);
                        ^~~~~~
/datasets/git/builtin/remote.c:1408:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/builtin/remote.c:1414:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ref_exists(buf2.buf))
                                          ^
                                           {
/datasets/git/builtin/remote.c:1415:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        result |= error(_("Not a valid ref: %s"), buf2.buf);
                        ^~~~~~
/datasets/git/builtin/remote.c:1416:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (create_symref(buf.buf, buf2.buf, "remote set-head"))
                                                                             ^
                                                                              {
/datasets/git/builtin/remote.c:1417:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        result |= error(_("Could not setup %s"), buf.buf);
                        ^~~~~~
/datasets/git/builtin/remote.c:1418:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (opt_a)
                               ^
                                {
/datasets/git/builtin/remote.c:1433:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/builtin/remote.c:1438:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        get_remote_ref_states(remote, &states, GET_REF_STATES);
                                               ^
/datasets/git/builtin/remote.c:87:25: note: expanded from macro 'GET_REF_STATES'
#define GET_REF_STATES (1<<0)
                        ^
/datasets/git/builtin/remote.c:1451:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(item, &states.stale)
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/remote.c:1451:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(item, &states.stale)
                                  ^
/datasets/git/builtin/remote.c:1455:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!dry_run)
                     ^
                      {
/datasets/git/builtin/remote.c:1456:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                result |= delete_refs("remote: prune", &refs_to_prune, 0);
                ^~~~~~
/datasets/git/builtin/remote.c:1458:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(item, &states.stale) {
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/remote.c:1458:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(item, &states.stale) {
                                  ^
/datasets/git/builtin/remote.c:1461:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (dry_run)
                            ^
                             {
/datasets/git/builtin/remote.c:1464:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/remote.c:1478:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int dry_run = 0, result = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/remote.c:1480:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__DRY_RUN(&dry_run, N_("dry run")),
                ^
/datasets/git/./parse-options.h:366:31: note: expanded from macro 'OPT__DRY_RUN'
#define OPT__DRY_RUN(var, h)  OPT_BOOL('n', "dry-run", (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/remote.c:1487:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc < 1)
                     ^
                      {
/datasets/git/builtin/remote.c:1490:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; argc; argc--, argv++)
        ^
/datasets/git/builtin/remote.c:1490:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'argc' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; argc; argc--, argv++)
               ^
/datasets/git/builtin/remote.c:1490:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (; argc; argc--, argv++)
                                    ^
                                     {
/datasets/git/builtin/remote.c:1491:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                result |= prune_remote(*argv, dry_run);
                ^~~~~~
/datasets/git/builtin/remote.c:1496:31: warning: 2 adjacent parameters of 'get_remote_default' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int get_remote_default(const char *key, const char *value UNUSED, void *priv)
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/remote.c:1496:43: note: the first parameter in the range is 'key'
static int get_remote_default(const char *key, const char *value UNUSED, void *priv)
                                          ^~~
/datasets/git/builtin/remote.c:1496:60: note: the last parameter in the range is 'value'
static int get_remote_default(const char *key, const char *value UNUSED, void *priv)
                                                           ^~~~~
/datasets/git/builtin/remote.c:1507:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, prune = -1;
        ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/remote.c:1507:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, prune = -1;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/remote.c:1507:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/remote.c:1509:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('p', "prune", &prune,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/remote.c:1522:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prune != -1)
                        ^
                         {
/datasets/git/builtin/remote.c:1524:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (verbose)
                    ^
                     {
/datasets/git/builtin/remote.c:1527:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc < 2)
                     ^
                      {
/datasets/git/builtin/remote.c:1529:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 1; i < argc; i++)
        ^
/datasets/git/builtin/remote.c:1529:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'argc' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 1; i < argc; i++)
                    ^
/datasets/git/builtin/remote.c:1529:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 1; i < argc; i++)
                                  ^
                                   {
/datasets/git/builtin/remote.c:1547:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                              CONFIG_FLAGS_MULTI_REPLACE);
                                              ^
/datasets/git/./config.h:294:37: note: expanded from macro 'CONFIG_FLAGS_MULTI_REPLACE'
#define CONFIG_FLAGS_MULTI_REPLACE (1 << 0)
                                    ^
/datasets/git/builtin/remote.c:1557:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; *branches; branches++)
        ^
/datasets/git/builtin/remote.c:1557:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (; *branches; branches++)
                                     ^
                                      {
/datasets/git/builtin/remote.c:1567:17: warning: variable 'remote' is not initialized [cppcoreguidelines-init-variables]
        struct remote *remote;
                       ^
                              = NULL
/datasets/git/builtin/remote.c:1574:3: warning: function is not thread safe [concurrency-mt-unsafe]
                exit(2);
                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/remote.c:1591:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('\0', "add", &add_mode, N_("add branch")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/remote.c:1608:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, push_mode = 0, all_mode = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/remote.c:1608:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, push_mode = 0, all_mode = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/remote.c:1608:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/remote.c:1610:17: warning: variable 'remote' is not initialized [cppcoreguidelines-init-variables]
        struct remote *remote;
                       ^
                              = NULL
/datasets/git/builtin/remote.c:1611:15: warning: variable 'url' is not initialized [cppcoreguidelines-init-variables]
        const char **url;
                     ^
                         = NULL
/datasets/git/builtin/remote.c:1612:6: warning: variable 'url_nr' is not initialized [cppcoreguidelines-init-variables]
        int url_nr;
            ^
                   = 0
/datasets/git/builtin/remote.c:1614:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('\0', "push", &push_mode,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/remote.c:1616:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('\0', "all", &all_mode,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/remote.c:1623:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc != 1)
                      ^
                       {
/datasets/git/builtin/remote.c:1631:3: warning: function is not thread safe [concurrency-mt-unsafe]
                exit(2);
                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/remote.c:1647:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!url_nr)
                    ^
                     {
/datasets/git/builtin/remote.c:1651:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < url_nr; i++)
                ^
/datasets/git/builtin/remote.c:1651:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'url_nr' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < url_nr; i++)
                            ^
/datasets/git/builtin/remote.c:1651:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < url_nr; i++)
                                            ^
                                             {
/datasets/git/builtin/remote.c:1660:12: warning: function 'set_url' has cognitive complexity of 29 (threshold 25) [readability-function-cognitive-complexity]
static int set_url(int argc, const char **argv, const char *prefix)
           ^
/datasets/git/builtin/remote.c:1685:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (add_mode && delete_mode)
        ^
/datasets/git/builtin/remote.c:1685:15: note: +1
        if (add_mode && delete_mode)
                     ^
/datasets/git/builtin/remote.c:1688:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (argc < 3 || argc > 4 || ((add_mode || delete_mode) && argc != 3))
        ^
/datasets/git/builtin/remote.c:1688:27: note: +1
        if (argc < 3 || argc > 4 || ((add_mode || delete_mode) && argc != 3))
                                 ^
/datasets/git/builtin/remote.c:1688:57: note: +1
        if (argc < 3 || argc > 4 || ((add_mode || delete_mode) && argc != 3))
                                                               ^
/datasets/git/builtin/remote.c:1688:41: note: +1
        if (argc < 3 || argc > 4 || ((add_mode || delete_mode) && argc != 3))
                                               ^
/datasets/git/builtin/remote.c:1693:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (argc > 3)
        ^
/datasets/git/builtin/remote.c:1696:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (delete_mode)
        ^
/datasets/git/builtin/remote.c:1700:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!remote_is_configured(remote, 1)) {
        ^
/datasets/git/builtin/remote.c:1705:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (push_mode) {
        ^
/datasets/git/builtin/remote.c:1709:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/remote.c:1716:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((!oldurl && !delete_mode) || add_mode) {
        ^
/datasets/git/builtin/remote.c:1716:32: note: +1
        if ((!oldurl && !delete_mode) || add_mode) {
                                      ^
/datasets/git/builtin/remote.c:1716:15: note: +1
        if ((!oldurl && !delete_mode) || add_mode) {
                     ^
/datasets/git/builtin/remote.c:1717:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (add_mode)
                ^
/datasets/git/builtin/remote.c:1720:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/remote.c:1722:3: note: +1
                goto out;
                ^
/datasets/git/builtin/remote.c:1726:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (regcomp(&old_regex, oldurl, REG_EXTENDED))
        ^
/datasets/git/builtin/remote.c:1729:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < urlset_nr; i++)
        ^
/datasets/git/builtin/remote.c:1730:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!regexec(&old_regex, urlset[i], 0, NULL, 0))
                ^
/datasets/git/builtin/remote.c:1732:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/remote.c:1734:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!delete_mode && !matches)
        ^
/datasets/git/builtin/remote.c:1734:19: note: +1
        if (!delete_mode && !matches)
                         ^
/datasets/git/builtin/remote.c:1736:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (delete_mode && !negative_matches && !push_mode)
        ^
/datasets/git/builtin/remote.c:1736:39: note: +1
        if (delete_mode && !negative_matches && !push_mode)
                                             ^
/datasets/git/builtin/remote.c:1741:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!delete_mode)
        ^
/datasets/git/builtin/remote.c:1743:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/builtin/remote.c:1662:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, push_mode = 0, add_mode = 0, delete_mode = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/remote.c:1662:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, push_mode = 0, add_mode = 0, delete_mode = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/remote.c:1662:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/remote.c:1663:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int matches = 0, negative_matches = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/remote.c:1667:17: warning: variable 'remote' is not initialized [cppcoreguidelines-init-variables]
        struct remote *remote;
                       ^
                              = NULL
/datasets/git/builtin/remote.c:1669:15: warning: variable 'urlset' is not initialized [cppcoreguidelines-init-variables]
        const char **urlset;
                     ^
                            = NULL
/datasets/git/builtin/remote.c:1670:6: warning: variable 'urlset_nr' is not initialized [cppcoreguidelines-init-variables]
        int urlset_nr;
            ^
                      = 0
/datasets/git/builtin/remote.c:1673:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('\0', "push", &push_mode,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/remote.c:1675:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('\0', "add", &add_mode,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/remote.c:1677:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('\0', "delete", &delete_mode,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/remote.c:1685:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (add_mode && delete_mode)
                                    ^
                                     {
/datasets/git/builtin/remote.c:1688:71: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc < 3 || argc > 4 || ((add_mode || delete_mode) && argc != 3))
                                                                             ^
                                                                              {
/datasets/git/builtin/remote.c:1693:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc > 3)
                     ^
                      {
/datasets/git/builtin/remote.c:1696:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (delete_mode)
                        ^
                         {
/datasets/git/builtin/remote.c:1702:3: warning: function is not thread safe [concurrency-mt-unsafe]
                exit(2);
                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/remote.c:1717:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (add_mode)
                             ^
                              {
/datasets/git/builtin/remote.c:1720:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/remote.c:1726:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (regcomp(&old_regex, oldurl, REG_EXTENDED))
                                                      ^
                                                       {
/datasets/git/builtin/remote.c:1729:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < urlset_nr; i++)
        ^
/datasets/git/builtin/remote.c:1729:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'urlset_nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < urlset_nr; i++)
                    ^
/datasets/git/builtin/remote.c:1729:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < urlset_nr; i++)
                                       ^
                                        {
/datasets/git/builtin/remote.c:1730:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!regexec(&old_regex, urlset[i], 0, NULL, 0))
                                                                ^
                                                                 {
/datasets/git/builtin/remote.c:1732:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/remote.c:1734:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!delete_mode && !matches)
                                     ^
                                      {
/datasets/git/builtin/remote.c:1736:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (delete_mode && !negative_matches && !push_mode)
                                                           ^
                                                            {
/datasets/git/builtin/remote.c:1741:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!delete_mode)
                         ^
                          {
/datasets/git/builtin/remote.c:1743:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/remote.c:1745:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        CONFIG_FLAGS_MULTI_REPLACE);
                                        ^
/datasets/git/./config.h:294:37: note: expanded from macro 'CONFIG_FLAGS_MULTI_REPLACE'
#define CONFIG_FLAGS_MULTI_REPLACE (1 << 0)
                                    ^
/datasets/git/builtin/remote.c:1753:27: warning: variable name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
        parse_opt_subcommand_fn *fn = NULL;
                                 ^
/datasets/git/builtin/remote.c:1755:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__VERBOSE(&verbose, N_("be verbose; must be placed before a subcommand")),
                ^
/datasets/git/./parse-options.h:359:31: note: expanded from macro 'OPT__VERBOSE'
#define OPT__VERBOSE(var, h)  OPT_COUNTUP('v', "verbose", (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/remote.c:1775:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else {
          ^~~~~~
/datasets/git/builtin/repack.c:5:1: warning: #includes are not sorted properly [llvm-include-order]
#include "parse-options.h"
^        ~~~~~~~~~~~~~~~~~
         "midx.h"
/datasets/git/builtin/repack.c:21:1: warning: replace macro with enum [modernize-macro-to-enum]
#define ALL_INTO_ONE 1
^~~~~~~~
                     =,
/datasets/git/builtin/repack.c:21:9: warning: macro 'ALL_INTO_ONE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define ALL_INTO_ONE 1
        ^
/datasets/git/builtin/repack.c:22:9: warning: macro 'LOOSEN_UNREACHABLE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define LOOSEN_UNREACHABLE 2
        ^
/datasets/git/builtin/repack.c:23:9: warning: macro 'PACK_CRUFT' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define PACK_CRUFT 4
        ^
/datasets/git/builtin/repack.c:25:1: warning: replace macro with enum [modernize-macro-to-enum]
#define DELETE_PACK 1
^~~~~~~~
                    =,
/datasets/git/builtin/repack.c:25:9: warning: macro 'DELETE_PACK' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define DELETE_PACK 1
        ^
/datasets/git/builtin/repack.c:26:9: warning: macro 'CRUFT_PACK' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define CRUFT_PACK 2
        ^
/datasets/git/builtin/repack.c:28:12: warning: variable 'pack_everything' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int pack_everything;
           ^
/datasets/git/builtin/repack.c:29:12: warning: variable 'delta_base_offset' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int delta_base_offset = 1;
           ^
/datasets/git/builtin/repack.c:30:12: warning: variable 'pack_kept_objects' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int pack_kept_objects = -1;
           ^
/datasets/git/builtin/repack.c:31:12: warning: variable 'write_bitmaps' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int write_bitmaps = -1;
           ^
/datasets/git/builtin/repack.c:32:12: warning: variable 'use_delta_islands' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int use_delta_islands;
           ^
/datasets/git/builtin/repack.c:33:12: warning: variable 'run_update_server_info' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int run_update_server_info = 1;
           ^
/datasets/git/builtin/repack.c:34:14: warning: variable 'packdir' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *packdir, *packtmp_name, *packtmp;
             ^
/datasets/git/builtin/repack.c:34:14: warning: variable 'packdir' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/repack.c:34:24: warning: variable 'packtmp_name' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *packdir, *packtmp_name, *packtmp;
                       ^
/datasets/git/builtin/repack.c:34:24: warning: variable 'packtmp_name' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/repack.c:34:39: warning: variable 'packtmp' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *packdir, *packtmp_name, *packtmp;
                                      ^
/datasets/git/builtin/repack.c:34:39: warning: variable 'packtmp' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/repack.c:46:8: warning: accessing fields in struct 'pack_objects_args' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct pack_objects_args {
       ^
/datasets/git/builtin/repack.c:46:8: note: use "__attribute__((aligned(64)))" to align struct 'pack_objects_args' to 64 bytes
/datasets/git/builtin/repack.c:58:68: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int repack_config(const char *var, const char *value, void *cb)
                                                                   ^
/datasets/git/builtin/repack.c:82:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(var, "repack.cruftwindow"))
                                               ^
                                                {
/datasets/git/builtin/repack.c:84:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(var, "repack.cruftwindowmemory"))
                                                     ^
                                                      {
/datasets/git/builtin/repack.c:86:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(var, "repack.cruftdepth"))
                                              ^
                                               {
/datasets/git/builtin/repack.c:88:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(var, "repack.cruftthreads"))
                                                ^
                                                 {
/datasets/git/builtin/repack.c:103:7: warning: variable 'dir' is not initialized [cppcoreguidelines-init-variables]
        DIR *dir;
             ^
                 = NULL
/datasets/git/builtin/repack.c:104:17: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct dirent *e;
                       ^
                         = NULL
/datasets/git/builtin/repack.c:104:17: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/repack.c:105:8: warning: variable 'fname' is not initialized [cppcoreguidelines-init-variables]
        char *fname;
              ^
                    = NULL
/datasets/git/builtin/repack.c:107:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if (!(dir = opendir(packdir)))
              ^
/datasets/git/builtin/repack.c:107:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/builtin/repack.c:107:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/builtin/repack.c:104:2: note: inferred assignment of ID-dependent value from ID-dependent variable dir [altera-id-dependent-backward-branch]
        struct dirent *e;
        ^
/datasets/git/builtin/repack.c:107:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(dir = opendir(packdir)))
                                      ^
                                       {
/datasets/git/builtin/repack.c:110:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'e' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((e = readdir(dir)) != NULL) {
               ^
/datasets/git/builtin/repack.c:110:14: warning: function is not thread safe [concurrency-mt-unsafe]
        while ((e = readdir(dir)) != NULL) {
                    ^
/datasets/git/builtin/repack.c:111:10: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
                size_t len;
                       ^
                           = 0
/datasets/git/builtin/repack.c:112:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/builtin/repack.c:112:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/repack.c:114:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strip_suffix(e->d_name, ".pack", &len))
                                                            ^
                                                             {
/datasets/git/builtin/repack.c:117:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < extra_keep->nr; i++)
                ^
/datasets/git/builtin/repack.c:117:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < extra_keep->nr; i++)
                                                    ^
                                                     {
/datasets/git/builtin/repack.c:118:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!fspathcmp(e->d_name, extra_keep->items[i].string))
                                                                               ^
                                                                                {
/datasets/git/builtin/repack.c:127:29: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
                        struct string_list_item *item;
                                                 ^
                                                      = NULL
/datasets/git/builtin/repack.c:130:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (file_exists(mkpath("%s/%s.mtimes", packdir, fname)))
                                                                                ^
                                                                                 {
/datasets/git/builtin/repack.c:131:18: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
                                item->util = (void*)(uintptr_t)CRUFT_PACK;
                                             ^
/datasets/git/builtin/repack.c:139:35: warning: 2 adjacent parameters of 'remove_redundant_pack' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void remove_redundant_pack(const char *dir_name, const char *base_name)
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/repack.c:139:47: note: the first parameter in the range is 'dir_name'
static void remove_redundant_pack(const char *dir_name, const char *base_name)
                                              ^~~~~~~~
/datasets/git/builtin/repack.c:139:69: note: the last parameter in the range is 'base_name'
static void remove_redundant_pack(const char *dir_name, const char *base_name)
                                                                    ^~~~~~~~~
/datasets/git/builtin/repack.c:142:27: warning: variable name 'm' is too short, expected at least 3 characters [readability-identifier-length]
        struct multi_pack_index *m = get_local_multi_pack_index(the_repository);
                                 ^
/datasets/git/builtin/repack.c:144:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (m && midx_contains_pack(m, buf.buf))
                                                ^
                                                 {
/datasets/git/builtin/repack.c:156:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (args->window)
                         ^
                          {
/datasets/git/builtin/repack.c:158:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (args->window_memory)
                                ^
                                 {
/datasets/git/builtin/repack.c:160:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (args->depth)
                        ^
                         {
/datasets/git/builtin/repack.c:162:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (args->threads)
                          ^
                           {
/datasets/git/builtin/repack.c:164:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (args->max_pack_size)
                                ^
                                 {
/datasets/git/builtin/repack.c:166:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (args->no_reuse_delta)
                                 ^
                                  {
/datasets/git/builtin/repack.c:168:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (args->no_reuse_object)
                                  ^
                                   {
/datasets/git/builtin/repack.c:170:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (args->local)
                        ^
                         {
/datasets/git/builtin/repack.c:172:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (args->quiet)
                        ^
                         {
/datasets/git/builtin/repack.c:174:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (delta_base_offset)
                              ^
                               {
/datasets/git/builtin/repack.c:185:70: warning: parameter 'pack' is unused [misc-unused-parameters]
static int write_oid(const struct object_id *oid, struct packed_git *pack,
                                                                     ^
/datasets/git/builtin/repack.c:186:17: warning: parameter 'pos' is unused [misc-unused-parameters]
                     uint32_t pos, void *data)
                              ^
/datasets/git/builtin/repack.c:191:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (start_command(cmd))
                                       ^
                                        {
/datasets/git/builtin/repack.c:200:8: warning: accessing fields in struct '' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
static struct {
       ^
/datasets/git/builtin/repack.c:200:8: note: use "__attribute__((aligned(16)))" to align struct '' to 16 bytes
/datasets/git/builtin/repack.c:203:3: warning: variable 'exts' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} exts[] = {
  ^
/datasets/git/builtin/repack.c:212:8: warning: accessing fields in struct 'generated_pack_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct generated_pack_data {
       ^
/datasets/git/builtin/repack.c:212:8: note: use "__attribute__((aligned(64)))" to align struct 'generated_pack_data' to 64 bytes
/datasets/git/builtin/repack.c:221:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/repack.c:221:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/repack.c:223:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ARRAY_SIZE(exts); i++) {
        ^
/datasets/git/builtin/repack.c:227:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (stat(path.buf, &statbuf))
                                             ^
                                              {
/datasets/git/builtin/repack.c:241:8: warning: variable 'out' is not initialized [cppcoreguidelines-init-variables]
        FILE *out;
              ^
                  = NULL
/datasets/git/builtin/repack.c:266:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (strbuf_getline_lf(&line, out) != EOF) {
        ^
/datasets/git/builtin/repack.c:266:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'line' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (strbuf_getline_lf(&line, out) != EOF) {
               ^
/datasets/git/builtin/repack.c:267:28: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
                struct string_list_item *item;
                                         ^
                                              = NULL
/datasets/git/builtin/repack.c:268:9: warning: variable 'promisor_name' is not initialized [cppcoreguidelines-init-variables]
                char *promisor_name;
                      ^
                                    = NULL
/datasets/git/builtin/repack.c:270:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (line.len != the_hash_algo->hexsz)
                                                     ^
                                                      {
/datasets/git/builtin/repack.c:293:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(out);
        ^~~~~~~~~~~
/datasets/git/builtin/repack.c:293:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/repack.c:242:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct strbuf line = STRBUF_INIT;
        ^
/datasets/git/builtin/repack.c:294:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (finish_command(&cmd))
                                 ^
                                  {
/datasets/git/builtin/repack.c:298:8: warning: accessing fields in struct 'pack_geometry' is inefficient due to padding; only needs 20 bytes but is using 24 bytes [altera-struct-pack-align]
struct pack_geometry {
       ^
/datasets/git/builtin/repack.c:298:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'pack_geometry'
/datasets/git/builtin/repack.c:298:8: warning: accessing fields in struct 'pack_geometry' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct pack_geometry {
       ^
/datasets/git/builtin/repack.c:298:8: note: use "__attribute__((aligned(32)))" to align struct 'pack_geometry' to 32 bytes
/datasets/git/builtin/repack.c:304:57: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static uint32_t geometry_pack_weight(struct packed_git *p)
                                                        ^
/datasets/git/builtin/repack.c:306:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (open_pack_index(p))
                               ^
                                {
/datasets/git/builtin/repack.c:311:37: warning: parameter name 'va' is too short, expected at least 3 characters [readability-identifier-length]
static int geometry_cmp(const void *va, const void *vb)
                                    ^
/datasets/git/builtin/repack.c:311:53: warning: parameter name 'vb' is too short, expected at least 3 characters [readability-identifier-length]
static int geometry_cmp(const void *va, const void *vb)
                                                    ^
/datasets/git/builtin/repack.c:313:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        uint32_t aw = geometry_pack_weight(*(struct packed_git **)va),
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/repack.c:313:11: warning: variable name 'aw' is too short, expected at least 3 characters [readability-identifier-length]
        uint32_t aw = geometry_pack_weight(*(struct packed_git **)va),
                 ^
/datasets/git/builtin/repack.c:314:4: warning: variable name 'bw' is too short, expected at least 3 characters [readability-identifier-length]
                 bw = geometry_pack_weight(*(struct packed_git **)vb);
                 ^
/datasets/git/builtin/repack.c:326:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct packed_git *p;
        ^
/datasets/git/builtin/repack.c:316:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (aw < bw)
                    ^
                     {
/datasets/git/builtin/repack.c:318:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (aw > bw)
                    ^
                     {
/datasets/git/builtin/repack.c:326:21: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct packed_git *p;
                           ^
                             = NULL
/datasets/git/builtin/repack.c:326:21: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/repack.c:327:24: warning: variable 'geometry' is not initialized [cppcoreguidelines-init-variables]
        struct pack_geometry *geometry;
                              ^
                                       = NULL
/datasets/git/builtin/repack.c:333:42: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = get_all_packs(the_repository); p; p = p->next) {
                                                ^
/datasets/git/builtin/repack.c:340:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (p->pack_keep)
                                         ^
                                          {
/datasets/git/builtin/repack.c:352:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (string_list_has_string(existing_kept_packs, buf.buf))
                                                                                 ^
                                                                                  {
/datasets/git/builtin/repack.c:355:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (p->is_cruft)
                                ^
                                 {
/datasets/git/builtin/repack.c:358:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                ALLOC_GROW(geometry->pack,
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/builtin/repack.c:358:3: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                ALLOC_GROW(geometry->pack,
                ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/builtin/repack.c:366:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        QSORT(geometry->pack, geometry->pack_nr, geometry_cmp);
        ^
/datasets/git/./git-compat-util.h:1304:56: note: expanded from macro 'QSORT'
#define QSORT(base, n, compar) sane_qsort((base), (n), sizeof(*(base)), compar)
                                                       ^
/datasets/git/builtin/repack.c:372:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        uint32_t i;
        ^
/datasets/git/builtin/repack.c:372:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i;
                 ^
                   = 0
/datasets/git/builtin/repack.c:372:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/repack.c:373:11: warning: variable 'split' is not initialized [cppcoreguidelines-init-variables]
        uint32_t split;
                 ^
                       = 0
/datasets/git/builtin/repack.c:385:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = geometry->pack_nr - 1; i > 0; i--) {
        ^
/datasets/git/builtin/repack.c:372:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        uint32_t i;
        ^
/datasets/git/builtin/repack.c:385:34: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = geometry->pack_nr - 1; i > 0; i--) {
                                        ^
/datasets/git/builtin/repack.c:389:67: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (unsigned_mult_overflows(factor, geometry_pack_weight(prev)))
                                                                                ^
                                                                                 {
/datasets/git/builtin/repack.c:394:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (geometry_pack_weight(ours) < factor * geometry_pack_weight(prev))
                                                                                     ^
                                                                                      {
/datasets/git/builtin/repack.c:419:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < split; i++) {
        ^
/datasets/git/builtin/repack.c:372:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        uint32_t i;
        ^
/datasets/git/builtin/repack.c:419:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < split; i++) {
                    ^
/datasets/git/builtin/repack.c:420:22: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct packed_git *p = geometry->pack[i];
                                   ^
/datasets/git/builtin/repack.c:422:67: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (unsigned_add_overflows(total_size, geometry_pack_weight(p)))
                                                                                ^
                                                                                 {
/datasets/git/builtin/repack.c:426:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = split; i < geometry->pack_nr; i++) {
        ^
/datasets/git/builtin/repack.c:426:18: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = split; i < geometry->pack_nr; i++) {
                        ^
/datasets/git/builtin/repack.c:429:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (unsigned_mult_overflows(factor, total_size))
                                                                ^
                                                                 {
/datasets/git/builtin/repack.c:434:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                   geometry_pack_weight(ours)))
                                                                               ^
                                                                                {
/datasets/git/builtin/repack.c:440:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/builtin/repack.c:461:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (geometry->split == geometry->pack_nr)
                                                 ^
                                                  {
/datasets/git/builtin/repack.c:468:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!geometry)
                      ^
                       {
/datasets/git/builtin/repack.c:477:8: warning: accessing fields in struct 'midx_snapshot_ref_data' is inefficient due to padding; only needs 52 bytes but is using 56 bytes [altera-struct-pack-align]
struct midx_snapshot_ref_data {
       ^
/datasets/git/builtin/repack.c:477:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'midx_snapshot_ref_data'
/datasets/git/builtin/repack.c:477:8: warning: accessing fields in struct 'midx_snapshot_ref_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct midx_snapshot_ref_data {
       ^
/datasets/git/builtin/repack.c:477:8: note: use "__attribute__((aligned(64)))" to align struct 'midx_snapshot_ref_data' to 64 bytes
/datasets/git/builtin/repack.c:490:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!peel_iterated_oid(oid, &peeled))
                                             ^
                                              {
/datasets/git/builtin/repack.c:493:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oidset_insert(&data->seen, oid))
                                            ^
                                             {
/datasets/git/builtin/repack.c:496:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oid_object_info(the_repository, oid, NULL) != OBJ_COMMIT)
                                                                     ^
                                                                      {
/datasets/git/builtin/repack.c:499:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(data->f->fp, "%s%s\n", data->preferred ? "+" : "",
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/repack.c:499:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/repack.c:505:49: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
static void midx_snapshot_refs(struct tempfile *f)
                                                ^
/datasets/git/builtin/repack.c:514:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!fdopen_tempfile(f, "w"))
                                     ^
                                      {
/datasets/git/builtin/repack.c:519:28: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
                struct string_list_item *item;
                                         ^
                                              = NULL
/datasets/git/builtin/repack.c:522:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for_each_string_list_item(item, preferred)
                ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/repack.c:522:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
                for_each_string_list_item(item, preferred)
                                          ^
/datasets/git/builtin/repack.c:539:33: warning: 2 adjacent parameters of 'midx_included_packs' of similar type ('struct string_list *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void midx_included_packs(struct string_list *include,
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/repack.c:539:53: note: the first parameter in the range is 'include'
static void midx_included_packs(struct string_list *include,
                                                    ^~~~~~~
/datasets/git/builtin/repack.c:540:25: note: the last parameter in the range is 'existing_nonkept_packs'
                                struct string_list *existing_nonkept_packs,
                                                    ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/repack.c:545:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct string_list_item *item;
        ^
/datasets/git/builtin/repack.c:545:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/builtin/repack.c:553:3: note: inferred assignment of ID-dependent value from ID-dependent member split [altera-id-dependent-backward-branch]
                uint32_t i;
                ^
/datasets/git/builtin/repack.c:547:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(item, existing_kept_packs)
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/repack.c:545:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct string_list_item *item;
        ^
/datasets/git/builtin/repack.c:547:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(item, existing_kept_packs)
                                  ^
/datasets/git/builtin/repack.c:549:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(item, names)
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/repack.c:549:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(item, names)
                                  ^
/datasets/git/builtin/repack.c:553:12: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                uint32_t i;
                         ^
                           = 0
/datasets/git/builtin/repack.c:553:12: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/repack.c:554:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = geometry->split; i < geometry->pack_nr; i++) {
                ^
/datasets/git/builtin/repack.c:545:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct string_list_item *item;
        ^
/datasets/git/builtin/repack.c:554:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = geometry->split; i < geometry->pack_nr; i++) {
                                          ^
/datasets/git/builtin/repack.c:555:23: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                        struct packed_git *p = geometry->pack[i];
                                           ^
/datasets/git/builtin/repack.c:564:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for_each_string_list_item(item, existing_nonkept_packs) {
                ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/repack.c:564:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
                for_each_string_list_item(item, existing_nonkept_packs) {
                                          ^
/datasets/git/builtin/repack.c:565:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!((uintptr_t)item->util & CRUFT_PACK)) {
                              ^
/datasets/git/builtin/repack.c:545:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct string_list_item *item;
        ^
/datasets/git/builtin/repack.c:575:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for_each_string_list_item(item, existing_nonkept_packs) {
                ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/repack.c:575:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
                for_each_string_list_item(item, existing_nonkept_packs) {
                                          ^
/datasets/git/builtin/repack.c:576:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if ((uintptr_t)item->util & DELETE_PACK)
                            ^
/datasets/git/builtin/repack.c:576:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if ((uintptr_t)item->util & DELETE_PACK)
                                                                ^
                                                                 {
/datasets/git/builtin/repack.c:586:10: warning: 2 adjacent parameters of 'write_midx_included_packs' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                     int show_progress, int write_bitmaps)
                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/repack.c:586:14: note: the first parameter in the range is 'show_progress'
                                     int show_progress, int write_bitmaps)
                                         ^~~~~~~~~~~~~
/datasets/git/builtin/repack.c:586:33: note: the last parameter in the range is 'write_bitmaps'
                                     int show_progress, int write_bitmaps)
                                                            ^~~~~~~~~~~~~
/datasets/git/builtin/repack.c:589:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/builtin/repack.c:591:8: warning: variable 'in' is not initialized [cppcoreguidelines-init-variables]
        FILE *in;
              ^
                 = NULL
/datasets/git/builtin/repack.c:591:8: warning: variable name 'in' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/repack.c:592:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/builtin/repack.c:634:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct string_list_item *item;
        ^
/datasets/git/builtin/repack.c:594:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!include->nr)
                         ^
                          {
/datasets/git/builtin/repack.c:603:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (show_progress)
                          ^
                           {
/datasets/git/builtin/repack.c:605:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/repack.c:608:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_bitmaps)
                          ^
                           {
/datasets/git/builtin/repack.c:611:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (largest)
                    ^
                     {
/datasets/git/builtin/repack.c:615:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (refs_snapshot)
                          ^
                           {
/datasets/git/builtin/repack.c:619:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/builtin/repack.c:623:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(item, include)
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/repack.c:623:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(item, include)
                                  ^
/datasets/git/builtin/repack.c:624:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(in, "%s\n", item->string);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/repack.c:624:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/repack.c:625:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(in);
        ^~~~~~~~~~
/datasets/git/builtin/repack.c:625:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/repack.c:634:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/builtin/repack.c:635:9: warning: variable 'packdir_len' is not initialized [cppcoreguidelines-init-variables]
        size_t packdir_len;
               ^
                           = 0
/datasets/git/builtin/repack.c:645:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(item, include) {
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/repack.c:645:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(item, include) {
                                  ^
/datasets/git/builtin/repack.c:650:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (unlink(path.buf) && errno != ENOENT)
                                                        ^
                                                         {
/datasets/git/builtin/repack.c:660:8: warning: 3 adjacent parameters of 'write_cruft_pack' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                            const char *destination,
                            ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/repack.c:660:20: note: the first parameter in the range is 'destination'
                            const char *destination,
                                        ^~~~~~~~~~~
/datasets/git/builtin/repack.c:662:20: note: the last parameter in the range is 'cruft_expiration'
                            const char *cruft_expiration,
                                        ^~~~~~~~~~~~~~~~
/datasets/git/builtin/repack.c:669:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/builtin/repack.c:670:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        FILE *in, *out;
        ^~~~~~~~~~~~~~~
/datasets/git/builtin/repack.c:670:8: warning: variable 'in' is not initialized [cppcoreguidelines-init-variables]
        FILE *in, *out;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/repack.c:670:8: warning: variable name 'in' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/repack.c:670:13: warning: variable 'out' is not initialized [cppcoreguidelines-init-variables]
        FILE *in, *out;
                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/repack.c:671:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/builtin/repack.c:672:14: warning: variable 'scratch' is not initialized [cppcoreguidelines-init-variables]
        const char *scratch;
                    ^
                            = NULL
/datasets/git/builtin/repack.c:678:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cruft_expiration)
                             ^
                              {
/datasets/git/builtin/repack.c:689:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/builtin/repack.c:706:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(item, names)
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/repack.c:669:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct string_list_item *item;
        ^
/datasets/git/builtin/repack.c:706:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(item, names)
                                  ^
/datasets/git/builtin/repack.c:707:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(in, "%s-%s.pack\n", pack_prefix, item->string);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/repack.c:707:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/repack.c:708:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(item, existing_packs)
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/repack.c:669:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct string_list_item *item;
        ^
/datasets/git/builtin/repack.c:708:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(item, existing_packs)
                                  ^
/datasets/git/builtin/repack.c:709:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(in, "-%s.pack\n", item->string);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/repack.c:709:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/repack.c:710:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(item, existing_kept_packs)
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/repack.c:668:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct strbuf line = STRBUF_INIT;
        ^
/datasets/git/builtin/repack.c:710:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(item, existing_kept_packs)
                                  ^
/datasets/git/builtin/repack.c:711:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(in, "%s.pack\n", item->string);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/repack.c:711:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/repack.c:712:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(in);
        ^~~~~~~~~~
/datasets/git/builtin/repack.c:712:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/repack.c:715:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (strbuf_getline_lf(&line, out) != EOF) {
        ^
/datasets/git/builtin/repack.c:715:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'line' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (strbuf_getline_lf(&line, out) != EOF) {
               ^
/datasets/git/builtin/repack.c:716:28: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
                struct string_list_item *item;
                                         ^
                                              = NULL
/datasets/git/builtin/repack.c:718:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (line.len != the_hash_algo->hexsz)
                                                     ^
                                                      {
/datasets/git/builtin/repack.c:730:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(out);
        ^~~~~~~~~~~
/datasets/git/builtin/repack.c:730:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/repack.c:737:5: warning: function 'cmd_repack' has cognitive complexity of 155 (threshold 25) [readability-function-cognitive-complexity]
int cmd_repack(int argc, const char **argv, const char *prefix)
    ^
/datasets/git/builtin/repack.c:821:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (delete_redundant && repository_format_precious_objects)
        ^
/datasets/git/builtin/repack.c:821:23: note: +1
        if (delete_redundant && repository_format_precious_objects)
                             ^
/datasets/git/builtin/repack.c:824:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (keep_unreachable &&
        ^
/datasets/git/builtin/repack.c:824:23: note: +1
        if (keep_unreachable &&
                             ^
/datasets/git/builtin/repack.c:825:26: note: +1
            (unpack_unreachable || (pack_everything & LOOSEN_UNREACHABLE)))
                                ^
/datasets/git/builtin/repack.c:828:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (pack_everything & PACK_CRUFT) {
        ^
/datasets/git/builtin/repack.c:831:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (unpack_unreachable || (pack_everything & LOOSEN_UNREACHABLE))
                ^
/datasets/git/builtin/repack.c:831:26: note: +1
                if (unpack_unreachable || (pack_everything & LOOSEN_UNREACHABLE))
                                       ^
/datasets/git/builtin/repack.c:833:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (keep_unreachable)
                ^
/datasets/git/builtin/repack.c:837:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (write_bitmaps < 0) {
        ^
/datasets/git/builtin/repack.c:838:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!write_midx &&
                ^
/datasets/git/builtin/repack.c:838:19: note: +1
                if (!write_midx &&
                                ^
/datasets/git/builtin/repack.c:839:42: note: +1
                    (!(pack_everything & ALL_INTO_ONE) || !is_bare_repository()))
                                                       ^
/datasets/git/builtin/repack.c:841:9: note: +1, nesting level increased to 1
        } else if (write_bitmaps &&
               ^
/datasets/git/builtin/repack.c:842:49: note: +1
                   git_env_bool(GIT_TEST_MULTI_PACK_INDEX, 0) &&
                                                              ^
/datasets/git/builtin/repack.c:846:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (pack_kept_objects < 0)
        ^
/datasets/git/builtin/repack.c:847:41: note: +1
                pack_kept_objects = write_bitmaps > 0 && !write_midx;
                                                      ^
/datasets/git/builtin/repack.c:849:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (write_bitmaps && !(pack_everything & ALL_INTO_ONE) && !write_midx)
        ^
/datasets/git/builtin/repack.c:849:57: note: +1
        if (write_bitmaps && !(pack_everything & ALL_INTO_ONE) && !write_midx)
                                                               ^
/datasets/git/builtin/repack.c:852:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (write_midx && write_bitmaps) {
        ^
/datasets/git/builtin/repack.c:852:17: note: +1
        if (write_midx && write_bitmaps) {
                       ^
/datasets/git/builtin/repack.c:871:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (geometric_factor) {
        ^
/datasets/git/builtin/repack.c:872:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (pack_everything)
                ^
/datasets/git/builtin/repack.c:880:33: note: +1
        show_progress = !po_args.quiet && isatty(2);
                                       ^
/datasets/git/builtin/repack.c:883:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!pack_kept_objects)
        ^
/datasets/git/builtin/repack.c:885:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < keep_pack_list.nr; i++)
        ^
/datasets/git/builtin/repack.c:889:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!geometry) {
        ^
/datasets/git/builtin/repack.c:904:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (has_promisor_remote())
        ^
/datasets/git/builtin/repack.c:906:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!write_midx) {
        ^
/datasets/git/builtin/repack.c:907:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (write_bitmaps > 0)
                ^
/datasets/git/builtin/repack.c:909:8: note: +1, nesting level increased to 2
                else if (write_bitmaps < 0)
                     ^
/datasets/git/builtin/repack.c:912:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (use_delta_islands)
        ^
/datasets/git/builtin/repack.c:915:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (pack_everything & ALL_INTO_ONE) {
        ^
/datasets/git/builtin/repack.c:918:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (existing_nonkept_packs.nr && delete_redundant &&
                ^
/datasets/git/builtin/repack.c:918:53: note: +1
                if (existing_nonkept_packs.nr && delete_redundant &&
                                                                  ^
/datasets/git/builtin/repack.c:920:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for_each_string_list_item(item, &names) {
                        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/repack.c:920:4: note: +1
                        for_each_string_list_item(item, &names) {
                        ^
/datasets/git/./string-list.h:152:12: note: expanded from macro 'for_each_string_list_item'
             item && item < (list)->items + (list)->nr; \
                  ^
/datasets/git/builtin/repack.c:924:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (unpack_unreachable) {
                        ^
/datasets/git/builtin/repack.c:928:11: note: +1, nesting level increased to 3
                        } else if (pack_everything & LOOSEN_UNREACHABLE) {
                               ^
/datasets/git/builtin/repack.c:931:11: note: +1, nesting level increased to 3
                        } else if (keep_unreachable) {
                               ^
/datasets/git/builtin/repack.c:936:9: note: +1, nesting level increased to 1
        } else if (geometry) {
               ^
/datasets/git/builtin/repack.c:939:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/repack.c:944:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (geometry)
        ^
/datasets/git/builtin/repack.c:946:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/builtin/repack.c:950:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ret)
        ^
/datasets/git/builtin/repack.c:953:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (geometry) {
        ^
/datasets/git/builtin/repack.c:960:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < geometry->split; i++)
                ^
/datasets/git/builtin/repack.c:962:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = geometry->split; i < geometry->pack_nr; i++)
                ^
/datasets/git/builtin/repack.c:968:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (strbuf_getline_lf(&line, out) != EOF) {
        ^
/datasets/git/builtin/repack.c:971:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (line.len != the_hash_algo->hexsz)
                ^
/datasets/git/builtin/repack.c:978:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ret)
        ^
/datasets/git/builtin/repack.c:981:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!names.nr && !po_args.quiet)
        ^
/datasets/git/builtin/repack.c:981:16: note: +1
        if (!names.nr && !po_args.quiet)
                      ^
/datasets/git/builtin/repack.c:984:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (pack_everything & PACK_CRUFT) {
        ^
/datasets/git/builtin/repack.c:986:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!skip_prefix(packtmp, packdir, &pack_prefix))
                ^
/datasets/git/builtin/repack.c:989:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*pack_prefix == '/')
                ^
/datasets/git/builtin/repack.c:992:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!cruft_po_args.window)
                ^
/datasets/git/builtin/repack.c:994:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!cruft_po_args.window_memory)
                ^
/datasets/git/builtin/repack.c:996:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!cruft_po_args.depth)
                ^
/datasets/git/builtin/repack.c:998:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!cruft_po_args.threads)
                ^
/datasets/git/builtin/repack.c:1008:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ret)
                ^
/datasets/git/builtin/repack.c:1011:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (delete_redundant && expire_to) {
                ^
/datasets/git/builtin/repack.c:1011:24: note: +1
                if (delete_redundant && expire_to) {
                                     ^
/datasets/git/builtin/repack.c:1040:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ret)
                        ^
/datasets/git/builtin/repack.c:1052:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for_each_string_list_item(item, &names) {
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/repack.c:1052:2: note: +1
        for_each_string_list_item(item, &names) {
        ^
/datasets/git/./string-list.h:152:12: note: expanded from macro 'for_each_string_list_item'
             item && item < (list)->items + (list)->nr; \
                  ^
/datasets/git/builtin/repack.c:1055:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (ext = 0; ext < ARRAY_SIZE(exts); ext++) {
                ^
/datasets/git/builtin/repack.c:1061:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (data->tempfiles[ext]) {
                        ^
/datasets/git/builtin/repack.c:1065:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!stat(fname_old, &statbuffer)) {
                                ^
/datasets/git/builtin/repack.c:1070:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (rename_tempfile(&data->tempfiles[ext], fname))
                                ^
/datasets/git/builtin/repack.c:1072:11: note: +1, nesting level increased to 3
                        } else if (!exts[ext].optional)
                               ^
/datasets/git/builtin/repack.c:1075:9: note: +1, nesting level increased to 3
                        else if (unlink(fname) < 0 && errno != ENOENT)
                             ^
/datasets/git/builtin/repack.c:1075:31: note: +1
                        else if (unlink(fname) < 0 && errno != ENOENT)
                                                   ^
/datasets/git/builtin/repack.c:1083:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (delete_redundant && pack_everything & ALL_INTO_ONE) {
        ^
/datasets/git/builtin/repack.c:1083:23: note: +1
        if (delete_redundant && pack_everything & ALL_INTO_ONE) {
                             ^
/datasets/git/builtin/repack.c:1085:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for_each_string_list_item(item, &existing_nonkept_packs) {
                ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/repack.c:1085:3: note: +1
                for_each_string_list_item(item, &existing_nonkept_packs) {
                ^
/datasets/git/./string-list.h:152:12: note: expanded from macro 'for_each_string_list_item'
             item && item < (list)->items + (list)->nr; \
                  ^
/datasets/git/builtin/repack.c:1088:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (len < hexsz)
                        ^
/datasets/git/builtin/repack.c:1097:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!string_list_has_string(&names, sha1))
                        ^
/datasets/git/builtin/repack.c:1102:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (write_midx) {
        ^
/datasets/git/builtin/repack.c:1108:21: note: +2, including nesting penalty of 1, nesting level increased to 2
                                                refs_snapshot ? get_tempfile_path(refs_snapshot) : NULL,
                                                              ^
/datasets/git/builtin/repack.c:1111:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!ret && write_bitmaps)
                ^
/datasets/git/builtin/repack.c:1111:12: note: +1
                if (!ret && write_bitmaps)
                         ^
/datasets/git/builtin/repack.c:1116:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ret)
                ^
/datasets/git/builtin/repack.c:1122:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (delete_redundant) {
        ^
/datasets/git/builtin/repack.c:1124:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for_each_string_list_item(item, &existing_nonkept_packs) {
                ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/repack.c:1124:3: note: +1
                for_each_string_list_item(item, &existing_nonkept_packs) {
                ^
/datasets/git/./string-list.h:152:12: note: expanded from macro 'for_each_string_list_item'
             item && item < (list)->items + (list)->nr; \
                  ^
/datasets/git/builtin/repack.c:1125:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!((uintptr_t)item->util & DELETE_PACK))
                        ^
/datasets/git/builtin/repack.c:1130:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (geometry) {
                ^
/datasets/git/builtin/repack.c:1134:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (i = 0; i < geometry->split; i++) {
                        ^
/datasets/git/builtin/repack.c:1136:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (string_list_has_string(&names,
                                ^
/datasets/git/builtin/repack.c:1144:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if ((p->pack_keep) ||
                                ^
/datasets/git/builtin/repack.c:1144:24: note: +1
                                if ((p->pack_keep) ||
                                                   ^
/datasets/git/builtin/repack.c:1153:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (show_progress)
                ^
/datasets/git/builtin/repack.c:1157:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!keep_unreachable &&
                ^
/datasets/git/builtin/repack.c:1159:28: note: +1
                     unpack_unreachable) &&
                                         ^
/datasets/git/builtin/repack.c:1158:48: note: +1
                    (!(pack_everything & LOOSEN_UNREACHABLE) ||
                                                             ^
/datasets/git/builtin/repack.c:1164:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (run_update_server_info)
        ^
/datasets/git/builtin/repack.c:1167:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (git_env_bool(GIT_TEST_MULTI_PACK_INDEX, 0)) {
        ^
/datasets/git/builtin/repack.c:1169:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (git_env_bool(GIT_TEST_MULTI_PACK_INDEX_WRITE_BITMAP, 0))
                ^
/datasets/git/builtin/repack.c:740:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/builtin/repack.c:747:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, ext, ret;
        ^~~~~~~~~~~~~~~~
/datasets/git/builtin/repack.c:747:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, ext, ret;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/repack.c:747:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/repack.c:747:9: warning: variable 'ext' is not initialized [cppcoreguidelines-init-variables]
        int i, ext, ret;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/repack.c:747:14: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int i, ext, ret;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/repack.c:748:8: warning: variable 'out' is not initialized [cppcoreguidelines-init-variables]
        FILE *out;
              ^
                  = NULL
/datasets/git/builtin/repack.c:749:6: warning: variable 'show_progress' is not initialized [cppcoreguidelines-init-variables]
        int show_progress;
            ^
                          = 0
/datasets/git/builtin/repack.c:764:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT('a', NULL, &pack_everything,
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/repack.c:766:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT('A', NULL, &pack_everything,
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/repack.c:768:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                   LOOSEN_UNREACHABLE | ALL_INTO_ONE),
                                   ^
/datasets/git/builtin/repack.c:22:28: note: expanded from macro 'LOOSEN_UNREACHABLE'
#define LOOSEN_UNREACHABLE 2
                           ^
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/repack.c:769:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT(0, "cruft", &pack_everything,
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/repack.c:774:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('d', NULL, &delete_redundant,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/repack.c:776:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('f', NULL, &po_args.no_reuse_delta,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/repack.c:778:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('F', NULL, &po_args.no_reuse_object,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/repack.c:782:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__QUIET(&po_args.quiet, N_("be quiet")),
                ^
/datasets/git/./parse-options.h:360:31: note: expanded from macro 'OPT__QUIET'
#define OPT__QUIET(var, h)    OPT_COUNTUP('q', "quiet",   (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/repack.c:783:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('l', "local", &po_args.local,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/repack.c:785:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('b', "write-bitmap-index", &write_bitmaps,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/repack.c:787:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('i', "delta-islands", &use_delta_islands,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/repack.c:791:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('k', "keep-unreachable", &keep_unreachable,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/repack.c:803:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "pack-kept-objects", &pack_kept_objects,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/repack.c:809:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('m', "write-midx", &write_midx,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/repack.c:818:2: warning: Value stored to 'argc' is never read [clang-analyzer-deadcode.DeadStores]
        argc = parse_options(argc, argv, prefix, builtin_repack_options,
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/repack.c:818:2: note: Value stored to 'argc' is never read
        argc = parse_options(argc, argv, prefix, builtin_repack_options,
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/repack.c:821:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (delete_redundant && repository_format_precious_objects)
                                                                   ^
                                                                    {
/datasets/git/builtin/repack.c:825:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            (unpack_unreachable || (pack_everything & LOOSEN_UNREACHABLE)))
                                    ^~~~~~~~~~~~~~~
/datasets/git/builtin/repack.c:825:69: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            (unpack_unreachable || (pack_everything & LOOSEN_UNREACHABLE)))
                                                                           ^
                                                                            {
/datasets/git/builtin/repack.c:828:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (pack_everything & PACK_CRUFT) {
            ^~~~~~~~~~~~~~~
/datasets/git/builtin/repack.c:829:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                pack_everything |= ALL_INTO_ONE;
                ^~~~~~~~~~~~~~~
/datasets/git/builtin/repack.c:831:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (unpack_unreachable || (pack_everything & LOOSEN_UNREACHABLE))
                                           ^~~~~~~~~~~~~~~
/datasets/git/builtin/repack.c:831:68: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (unpack_unreachable || (pack_everything & LOOSEN_UNREACHABLE))
                                                                                 ^
                                                                                  {
/datasets/git/builtin/repack.c:833:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (keep_unreachable)
                                     ^
                                      {
/datasets/git/builtin/repack.c:839:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (!(pack_everything & ALL_INTO_ONE) || !is_bare_repository()))
                       ^~~~~~~~~~~~~~~
/datasets/git/builtin/repack.c:839:68: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    (!(pack_everything & ALL_INTO_ONE) || !is_bare_repository()))
                                                                                 ^
                                                                                  {
/datasets/git/builtin/repack.c:846:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pack_kept_objects < 0)
                                  ^
                                   {
/datasets/git/builtin/repack.c:849:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (write_bitmaps && !(pack_everything & ALL_INTO_ONE) && !write_midx)
                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/repack.c:849:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_bitmaps && !(pack_everything & ALL_INTO_ONE) && !write_midx)
                                                                              ^
                                                                               {
/datasets/git/builtin/repack.c:872:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pack_everything)
                                    ^
                                     {
/datasets/git/builtin/repack.c:883:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!pack_kept_objects)
                               ^
                                {
/datasets/git/builtin/repack.c:885:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < keep_pack_list.nr; i++)
        ^
/datasets/git/builtin/repack.c:885:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < keep_pack_list.nr; i++)
                    ^
/datasets/git/builtin/repack.c:885:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < keep_pack_list.nr; i++)
                                               ^
                                                {
/datasets/git/builtin/repack.c:904:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (has_promisor_remote())
                                  ^
                                   {
/datasets/git/builtin/repack.c:907:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (write_bitmaps > 0)
                                      ^
                                       {
/datasets/git/builtin/repack.c:909:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (write_bitmaps < 0)
                                           ^
                                            {
/datasets/git/builtin/repack.c:912:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (use_delta_islands)
                              ^
                               {
/datasets/git/builtin/repack.c:915:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (pack_everything & ALL_INTO_ONE) {
            ^~~~~~~~~~~~~~~
/datasets/git/builtin/repack.c:919:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    !(pack_everything & PACK_CRUFT)) {
                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/repack.c:740:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct string_list_item *item;
        ^
/datasets/git/builtin/repack.c:920:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for_each_string_list_item(item, &names) {
                        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/repack.c:920:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for_each_string_list_item(item, &names) {
                                                  ^
/datasets/git/builtin/repack.c:928:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        } else if (pack_everything & LOOSEN_UNREACHABLE) {
                                   ^~~~~~~~~~~~~~~
/datasets/git/builtin/repack.c:944:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (geometry)
                     ^
                      {
/datasets/git/builtin/repack.c:946:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/repack.c:950:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/builtin/repack.c:954:9: warning: variable name 'in' is too short, expected at least 3 characters [readability-identifier-length]
                FILE *in = xfdopen(cmd.in, "w");
                      ^
/datasets/git/builtin/repack.c:960:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < geometry->split; i++)
                ^
/datasets/git/builtin/repack.c:960:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < geometry->split; i++)
                            ^
/datasets/git/builtin/repack.c:960:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < geometry->split; i++)
                                                     ^
                                                      {
/datasets/git/builtin/repack.c:961:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(in, "%s\n", pack_basename(geometry->pack[i]));
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/repack.c:961:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/repack.c:962:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = geometry->split; i < geometry->pack_nr; i++)
                ^
/datasets/git/builtin/repack.c:962:12: warning: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                for (i = geometry->split; i < geometry->pack_nr; i++)
                         ^
/datasets/git/builtin/repack.c:962:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = geometry->split; i < geometry->pack_nr; i++)
                                          ^
/datasets/git/builtin/repack.c:962:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = geometry->split; i < geometry->pack_nr; i++)
                                                                     ^
                                                                      {
/datasets/git/builtin/repack.c:963:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(in, "^%s\n", pack_basename(geometry->pack[i]));
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/repack.c:963:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/repack.c:964:3: warning: the value returned by this function should be used [cert-err33-c]
                fclose(in);
                ^~~~~~~~~~
/datasets/git/builtin/repack.c:964:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/repack.c:968:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (strbuf_getline_lf(&line, out) != EOF) {
        ^
/datasets/git/builtin/repack.c:968:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'line' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (strbuf_getline_lf(&line, out) != EOF) {
               ^
/datasets/git/builtin/repack.c:969:28: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
                struct string_list_item *item;
                                         ^
                                              = NULL
/datasets/git/builtin/repack.c:971:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (line.len != the_hash_algo->hexsz)
                                                     ^
                                                      {
/datasets/git/builtin/repack.c:976:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(out);
        ^~~~~~~~~~~
/datasets/git/builtin/repack.c:976:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/repack.c:978:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/builtin/repack.c:981:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!names.nr && !po_args.quiet)
                                        ^
                                         {
/datasets/git/builtin/repack.c:984:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (pack_everything & PACK_CRUFT) {
            ^~~~~~~~~~~~~~~
/datasets/git/builtin/repack.c:985:15: warning: variable 'pack_prefix' is not initialized [cppcoreguidelines-init-variables]
                const char *pack_prefix;
                            ^
                                        = NULL
/datasets/git/builtin/repack.c:986:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!skip_prefix(packtmp, packdir, &pack_prefix))
                                                                 ^
                                                                  {
/datasets/git/builtin/repack.c:989:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*pack_prefix == '/')
                                        ^
                                         {
/datasets/git/builtin/repack.c:992:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!cruft_po_args.window)
                                          ^
                                           {
/datasets/git/builtin/repack.c:994:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!cruft_po_args.window_memory)
                                                 ^
                                                  {
/datasets/git/builtin/repack.c:996:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!cruft_po_args.depth)
                                         ^
                                          {
/datasets/git/builtin/repack.c:998:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!cruft_po_args.threads)
                                           ^
                                            {
/datasets/git/builtin/repack.c:1008:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret)
                        ^
                         {
/datasets/git/builtin/repack.c:1040:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ret)
                                ^
                                 {
/datasets/git/builtin/repack.c:1052:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(item, &names) {
                                  ^
/datasets/git/builtin/repack.c:1055:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (ext = 0; ext < ARRAY_SIZE(exts); ext++) {
                ^
/datasets/git/builtin/repack.c:1056:10: warning: variable 'fname' is not initialized [cppcoreguidelines-init-variables]
                        char *fname;
                              ^
                                    = NULL
/datasets/git/builtin/repack.c:1066:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        statbuffer.st_mode &= ~(S_IWUSR | S_IWGRP | S_IWOTH);
                                        ^                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/repack.c:1066:28: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                                        statbuffer.st_mode &= ~(S_IWUSR | S_IWGRP | S_IWOTH);
                                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/repack.c:1070:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (rename_tempfile(&data->tempfiles[ext], fname))
                                                                                  ^
                                                                                   {
/datasets/git/builtin/repack.c:1072:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        } else if (!exts[ext].optional)
                                                       ^
                                                        {
/datasets/git/builtin/repack.c:1075:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (unlink(fname) < 0 && errno != ENOENT)
                                                                      ^
                                                                       {
/datasets/git/builtin/repack.c:1083:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (delete_redundant && pack_everything & ALL_INTO_ONE) {
                                ^~~~~~~~~~~~~~~
/datasets/git/builtin/repack.c:740:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct string_list_item *item;
        ^
/datasets/git/builtin/repack.c:1085:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for_each_string_list_item(item, &existing_nonkept_packs) {
                ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/repack.c:1085:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
                for_each_string_list_item(item, &existing_nonkept_packs) {
                                          ^
/datasets/git/builtin/repack.c:1086:10: warning: variable 'sha1' is not initialized [cppcoreguidelines-init-variables]
                        char *sha1;
                              ^
                                   = NULL
/datasets/git/builtin/repack.c:1088:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (len < hexsz)
                                        ^
                                         {
/datasets/git/builtin/repack.c:1097:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!string_list_has_string(&names, sha1))
                                                                  ^
                                                                   {
/datasets/git/builtin/repack.c:1098:18: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
                                item->util = (void*)(uintptr_t)((size_t)item->util | DELETE_PACK);
                                             ^
/datasets/git/builtin/repack.c:1098:37: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                item->util = (void*)(uintptr_t)((size_t)item->util | DELETE_PACK);
                                                                ^
/datasets/git/builtin/repack.c:1111:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ret && write_bitmaps)
                                          ^
                                           {
/datasets/git/builtin/repack.c:1116:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret)
                        ^
                         {
/datasets/git/builtin/repack.c:1124:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for_each_string_list_item(item, &existing_nonkept_packs) {
                ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/repack.c:1124:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
                for_each_string_list_item(item, &existing_nonkept_packs) {
                                          ^
/datasets/git/builtin/repack.c:1125:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!((uintptr_t)item->util & DELETE_PACK))
                              ^
/datasets/git/builtin/repack.c:301:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        uint32_t split;
        ^
/datasets/git/builtin/repack.c:1125:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!((uintptr_t)item->util & DELETE_PACK))
                                                                   ^
                                                                    {
/datasets/git/builtin/repack.c:1133:13: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                        uint32_t i;
                                 ^
                                   = 0
/datasets/git/builtin/repack.c:1133:13: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/repack.c:1134:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = 0; i < geometry->split; i++) {
                        ^
/datasets/git/builtin/repack.c:1134:16: warning: backward branch (for loop) is ID-dependent due to member reference to 'split' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (i = 0; i < geometry->split; i++) {
                                    ^
/datasets/git/builtin/repack.c:1135:24: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                                struct packed_git *p = geometry->pack[i];
                                                   ^
/datasets/git/builtin/repack.c:1137:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                           hash_to_hex(p->hash)))
                                                                                 ^
                                                                                  {
/datasets/git/builtin/repack.c:1146:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                            buf.buf)))
                                                                      ^
                                                                       {
/datasets/git/builtin/repack.c:1153:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (show_progress)
                                  ^
                                   {
/datasets/git/builtin/repack.c:1154:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        opts |= PRUNE_PACKED_VERBOSE;
                        ^~~~
/datasets/git/builtin/repack.c:1158:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (!(pack_everything & LOOSEN_UNREACHABLE) ||
                       ^~~~~~~~~~~~~~~
/datasets/git/builtin/repack.c:1160:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    is_repository_shallow(the_repository))
                                                          ^
                                                           {
/datasets/git/builtin/repack.c:1164:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (run_update_server_info)
                                   ^
                                    {
/datasets/git/builtin/repack.c:1169:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (git_env_bool(GIT_TEST_MULTI_PACK_INDEX_WRITE_BITMAP, 0))
                                                                            ^
                                                                             {
/datasets/git/builtin/repack.c:1170:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        flags |= MIDX_WRITE_BITMAP | MIDX_WRITE_REV_INDEX;
                        ^
/datasets/git/builtin/repack.c:1170:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        flags |= MIDX_WRITE_BITMAP | MIDX_WRITE_REV_INDEX;
                                 ^
/datasets/git/./midx.h:48:27: note: expanded from macro 'MIDX_WRITE_BITMAP'
#define MIDX_WRITE_BITMAP (1 << 2)
                          ^~~~~~~~
/datasets/git/builtin/repack.c:1170:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        flags |= MIDX_WRITE_BITMAP | MIDX_WRITE_REV_INDEX;
                                                     ^
/datasets/git/./midx.h:47:31: note: expanded from macro 'MIDX_WRITE_REV_INDEX'
#define MIDX_WRITE_REV_INDEX (1 << 1)
                              ^
/datasets/git/builtin/replace.c:12:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "builtin.h"
/datasets/git/builtin/replace.c:37:8: warning: accessing fields in struct 'show_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct show_data {
       ^
/datasets/git/builtin/replace.c:37:8: note: use "__attribute__((aligned(16)))" to align struct 'show_data' to 16 bytes
/datasets/git/builtin/replace.c:42:46: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int show_reference(struct repository *r, const char *refname,
                                             ^
/datasets/git/builtin/replace.c:44:10: warning: parameter 'flag' is unused [misc-unused-parameters]
                          int flag, void *cb_data)
                              ^
/datasets/git/builtin/replace.c:49:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (data->format == REPLACE_FORMAT_SHORT)
                                                         ^
                                                          {
/datasets/git/builtin/replace.c:51:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (data->format == REPLACE_FORMAT_MEDIUM)
                                                               ^
                                                                {
/datasets/git/builtin/replace.c:55:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        enum object_type obj_type, repl_type;
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/replace.c:55:21: warning: variable 'obj_type' is not initialized [cppcoreguidelines-init-variables]
                        enum object_type obj_type, repl_type;
                                         ^
/datasets/git/builtin/replace.c:55:31: warning: variable 'repl_type' is not initialized [cppcoreguidelines-init-variables]
                        enum object_type obj_type, repl_type;
                                                   ^
/datasets/git/builtin/replace.c:57:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (get_oid(refname, &object))
                                                      ^
                                                       {
/datasets/git/builtin/replace.c:71:30: warning: 2 adjacent parameters of 'list_replace_refs' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int list_replace_refs(const char *pattern, const char *format)
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/replace.c:71:42: note: the first parameter in the range is 'pattern'
static int list_replace_refs(const char *pattern, const char *format)
                                         ^~~~~~~
/datasets/git/builtin/replace.c:71:63: note: the last parameter in the range is 'format'
static int list_replace_refs(const char *pattern, const char *format)
                                                              ^~~~~~
/datasets/git/builtin/replace.c:75:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!pattern)
                     ^
                      {
/datasets/git/builtin/replace.c:79:68: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (format == NULL || *format == '\0' || !strcmp(format, "short"))
                                                                          ^
                                                                           {
/datasets/git/builtin/replace.c:81:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(format, "medium"))
                                           ^
                                            {
/datasets/git/builtin/replace.c:83:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(format, "long"))
                                         ^
                                          {
/datasets/git/builtin/replace.c:89:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/replace.c:102:74: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
static int for_each_replace_name(const char **argv, each_replace_name_fn fn)
                                                                         ^
/datasets/git/builtin/replace.c:104:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char **p, *full_hex;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/replace.c:104:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/builtin/replace.c:104:15: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        const char **p, *full_hex;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/replace.c:104:15: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/replace.c:104:19: warning: variable 'full_hex' is not initialized [cppcoreguidelines-init-variables]
        const char **p, *full_hex;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/replace.c:106:9: warning: variable 'base_len' is not initialized [cppcoreguidelines-init-variables]
        size_t base_len;
               ^
                        = 0
/datasets/git/builtin/replace.c:114:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = argv; *p; p++) {
        ^
/datasets/git/builtin/replace.c:114:17: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = argv; *p; p++) {
                       ^
/datasets/git/builtin/replace.c:130:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fn(full_hex, ref.buf, &oid))
                                                ^
                                                 {
/datasets/git/builtin/replace.c:137:31: warning: 2 adjacent parameters of 'delete_replace_ref' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int delete_replace_ref(const char *name, const char *ref,
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/replace.c:137:43: note: the first parameter in the range is 'name'
static int delete_replace_ref(const char *name, const char *ref,
                                          ^~~~
/datasets/git/builtin/replace.c:137:61: note: the last parameter in the range is 'ref'
static int delete_replace_ref(const char *name, const char *ref,
                                                            ^~~
/datasets/git/builtin/replace.c:140:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (delete_ref(NULL, ref, oid, 0))
                                          ^
                                           {
/datasets/git/builtin/replace.c:146:28: warning: 2 adjacent parameters of 'check_ref_valid' of similar type ('struct object_id *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int check_ref_valid(struct object_id *object,
                           ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/replace.c:146:46: note: the first parameter in the range is 'object'
static int check_ref_valid(struct object_id *object,
                                             ^~~~~~
/datasets/git/builtin/replace.c:147:26: note: the last parameter in the range is 'prev'
                            struct object_id *prev,
                                              ^~~~
/datasets/git/builtin/replace.c:155:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (check_refname_format(ref->buf, 0))
                                              ^
                                               {
/datasets/git/builtin/replace.c:158:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (read_ref(ref->buf, prev))
                                     ^
                                      {
/datasets/git/builtin/replace.c:160:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!force)
                        ^
                         {
/datasets/git/builtin/replace.c:172:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        enum object_type obj_type, repl_type;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/replace.c:172:19: warning: variable 'obj_type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type obj_type, repl_type;
                         ^
/datasets/git/builtin/replace.c:172:29: warning: variable 'repl_type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type obj_type, repl_type;
                                   ^
/datasets/git/builtin/replace.c:174:26: warning: variable 'transaction' is not initialized [cppcoreguidelines-init-variables]
        struct ref_transaction *transaction;
                                ^
                                            = NULL
/datasets/git/builtin/replace.c:180:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!force && obj_type != repl_type)
                                            ^
                                             {
/datasets/git/builtin/replace.c:197:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            ref_transaction_commit(transaction, &err))
                                                      ^
                                                       {
/datasets/git/builtin/replace.c:207:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct object_id object, repl;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/replace.c:209:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid(object_ref, &object))
                                         ^
                                          {
/datasets/git/builtin/replace.c:212:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid(replace_ref, &repl))
                                        ^
                                         {
/datasets/git/builtin/replace.c:224:55: warning: 2 adjacent parameters of 'export_object' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int export_object(const struct object_id *oid, enum object_type type,
                                                      ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/replace.c:224:72: note: the first parameter in the range is 'type'
static int export_object(const struct object_id *oid, enum object_type type,
                                                                       ^~~~
/datasets/git/builtin/replace.c:225:10: note: the last parameter in the range is 'raw'
                          int raw, const char *filename)
                              ^~~
/datasets/git/builtin/replace.c:225:6: note: 'enum object_type' and 'int' may be implicitly converted
                          int raw, const char *filename)
                          ^
/datasets/git/builtin/replace.c:228:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/builtin/replace.c:228:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/replace.c:230:50: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
        fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0666);
                                                        ^
                                                         | O_CLOEXEC
/datasets/git/builtin/replace.c:230:52: warning: 0666 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0666);
                                                          ^
/datasets/git/builtin/replace.c:231:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fd < 0)
                   ^
                    {
/datasets/git/builtin/replace.c:236:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (raw)
                ^
                 {
/datasets/git/builtin/replace.c:238:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/replace.c:244:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (run_command(&cmd))
                              ^
                               {
/datasets/git/builtin/replace.c:257:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/builtin/replace.c:257:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/replace.c:259:30: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
        fd = open(filename, O_RDONLY);
                                    ^
                                     | O_CLOEXEC
/datasets/git/builtin/replace.c:260:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fd < 0)
                   ^
                    {
/datasets/git/builtin/replace.c:296:15: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                struct stat st;
                            ^
/datasets/git/builtin/replace.c:297:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                int flags = HASH_FORMAT_CHECK | HASH_WRITE_OBJECT;
                            ^
/datasets/git/./refs/../cache.h:897:27: note: expanded from macro 'HASH_FORMAT_CHECK'
#define HASH_FORMAT_CHECK 2
                          ^
/datasets/git/builtin/replace.c:304:76: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (index_fd(the_repository->index, oid, fd, &st, type, NULL, flags) < 0)
                                                                                         ^
                                                                                          {
/datasets/git/builtin/replace.c:316:53: warning: 2 adjacent parameters of 'edit_and_replace' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int edit_and_replace(const char *object_ref, int force, int raw)
                                                    ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/replace.c:316:57: note: the first parameter in the range is 'force'
static int edit_and_replace(const char *object_ref, int force, int raw)
                                                        ^~~~~
/datasets/git/builtin/replace.c:316:68: note: the last parameter in the range is 'raw'
static int edit_and_replace(const char *object_ref, int force, int raw)
                                                                   ^~~
/datasets/git/builtin/replace.c:318:8: warning: variable 'tmpfile' is not initialized [cppcoreguidelines-init-variables]
        char *tmpfile;
              ^
                      = NULL
/datasets/git/builtin/replace.c:319:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/builtin/replace.c:320:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct object_id old_oid, new_oid, prev;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/replace.c:323:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid(object_ref, &old_oid) < 0)
                                              ^
                                               {
/datasets/git/builtin/replace.c:327:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (type < 0)
                     ^
                      {
/datasets/git/builtin/replace.c:352:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oideq(&old_oid, &new_oid))
                                      ^
                                       {
/datasets/git/builtin/replace.c:361:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *parent_start, *parent_end;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/replace.c:361:14: warning: variable 'parent_start' is not initialized [cppcoreguidelines-init-variables]
        const char *parent_start, *parent_end;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/replace.c:361:29: warning: variable 'parent_end' is not initialized [cppcoreguidelines-init-variables]
        const char *parent_start, *parent_end;
                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/replace.c:362:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/replace.c:362:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/replace.c:367:26: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        parent_start += hexsz + 6; /* "tree " + "hex sha1" + "\n" */
                                ^
/datasets/git/builtin/replace.c:370:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (starts_with(parent_end, "parent "))
        ^
/datasets/git/builtin/replace.c:370:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'parent_end' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (starts_with(parent_end, "parent "))
               ^
/datasets/git/builtin/replace.c:370:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (starts_with(parent_end, "parent "))
                                                  ^
                                                   {
/datasets/git/builtin/replace.c:371:25: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                parent_end += hexsz + 8; /* "parent " + "hex sha1" + "\n" */
                                      ^
/datasets/git/builtin/replace.c:374:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < argc; i++) {
        ^
/datasets/git/builtin/replace.c:376:18: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
                struct commit *commit;
                               ^
                                      = NULL
/datasets/git/builtin/replace.c:399:8: warning: accessing fields in struct 'check_mergetag_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct check_mergetag_data {
       ^
/datasets/git/builtin/replace.c:399:8: note: use "__attribute__((aligned(16)))" to align struct 'check_mergetag_data' to 16 bytes
/datasets/git/builtin/replace.c:404:46: warning: parameter 'commit' is unused [misc-unused-parameters]
static int check_one_mergetag(struct commit *commit,
                                             ^
/datasets/git/builtin/replace.c:411:14: warning: variable 'tag' is not initialized [cppcoreguidelines-init-variables]
        struct tag *tag;
                    ^
                        = NULL
/datasets/git/builtin/replace.c:412:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/replace.c:412:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/replace.c:417:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!tag)
                 ^
                  {
/datasets/git/builtin/replace.c:419:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_tag_buffer(the_repository, tag, extra->value, extra->len))
                                                                            ^
                                                                             {
/datasets/git/builtin/replace.c:423:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 1; i < mergetag_data->argc; i++) {
        ^
/datasets/git/builtin/replace.c:423:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'mergetag_data' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 1; i < mergetag_data->argc; i++) {
                    ^
/datasets/git/builtin/replace.c:425:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (get_oid(mergetag_data->argv[i], &oid) < 0)
                                                              ^
                                                               {
/datasets/git/builtin/replace.c:428:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (oideq(get_tagged_oid(tag), &oid))
                                                     ^
                                                      {
/datasets/git/builtin/replace.c:446:54: warning: 2 adjacent parameters of 'create_graft' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int create_graft(int argc, const char **argv, int force, int gentle)
                                                     ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/replace.c:446:58: note: the first parameter in the range is 'force'
static int create_graft(int argc, const char **argv, int force, int gentle)
                                                         ^~~~~
/datasets/git/builtin/replace.c:446:69: note: the last parameter in the range is 'gentle'
static int create_graft(int argc, const char **argv, int force, int gentle)
                                                                    ^~~~~~
/datasets/git/builtin/replace.c:448:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct object_id old_oid, new_oid;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/replace.c:450:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/builtin/replace.c:452:14: warning: variable 'buffer' is not initialized [cppcoreguidelines-init-variables]
        const char *buffer;
                    ^
                           = NULL
/datasets/git/builtin/replace.c:453:16: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size;
                      ^
                           = 0
/datasets/git/builtin/replace.c:455:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid(old_ref, &old_oid) < 0)
                                           ^
                                            {
/datasets/git/builtin/replace.c:458:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!commit)
                    ^
                     {
/datasets/git/builtin/replace.c:505:8: warning: variable name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
        FILE *fp = fopen_or_warn(graft_file, "r");
              ^
/datasets/git/builtin/replace.c:506:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct strbuf buf = STRBUF_INIT, err = STRBUF_INIT;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/replace.c:509:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!fp)
                ^
                 {
/datasets/git/builtin/replace.c:513:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (strbuf_getline(&buf, fp) != EOF) {
        ^
/datasets/git/builtin/replace.c:513:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'buf' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (strbuf_getline(&buf, fp) != EOF) {
               ^
/datasets/git/builtin/replace.c:514:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*buf.buf == '#')
                                    ^
                                     {
/datasets/git/builtin/replace.c:518:31: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                if (args.nr && create_graft(args.nr, args.v, force, 1))
                                            ^
/datasets/git/builtin/replace.c:518:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (args.nr && create_graft(args.nr, args.v, force, 1))
                                                                       ^
                                                                        {
/datasets/git/builtin/replace.c:522:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(fp);
        ^~~~~~~~~~
/datasets/git/builtin/replace.c:522:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/replace.c:526:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!err.len)
                     ^
                      {
/datasets/git/builtin/replace.c:550:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_CMDMODE('l', "list", &cmdmode, N_("list replace refs"), MODE_LIST),
                ^
/datasets/git/./parse-options.h:188:37: note: expanded from macro 'OPT_CMDMODE'
#define OPT_CMDMODE(s, l, v, h, i)  OPT_CMDMODE_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:187:16: note: expanded from macro 'OPT_CMDMODE_F'
                                      (h), PARSE_OPT_CMDMODE|PARSE_OPT_NOARG|PARSE_OPT_NONEG | (f), NULL, (i) }
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/replace.c:551:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_CMDMODE('d', "delete", &cmdmode, N_("delete replace refs"), MODE_DELETE),
                ^
/datasets/git/./parse-options.h:188:37: note: expanded from macro 'OPT_CMDMODE'
#define OPT_CMDMODE(s, l, v, h, i)  OPT_CMDMODE_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:187:16: note: expanded from macro 'OPT_CMDMODE_F'
                                      (h), PARSE_OPT_CMDMODE|PARSE_OPT_NOARG|PARSE_OPT_NONEG | (f), NULL, (i) }
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/replace.c:552:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_CMDMODE('e', "edit", &cmdmode, N_("edit existing object"), MODE_EDIT),
                ^
/datasets/git/./parse-options.h:188:37: note: expanded from macro 'OPT_CMDMODE'
#define OPT_CMDMODE(s, l, v, h, i)  OPT_CMDMODE_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:187:16: note: expanded from macro 'OPT_CMDMODE_F'
                                      (h), PARSE_OPT_CMDMODE|PARSE_OPT_NOARG|PARSE_OPT_NONEG | (f), NULL, (i) }
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/replace.c:553:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_CMDMODE('g', "graft", &cmdmode, N_("change a commit's parents"), MODE_GRAFT),
                ^
/datasets/git/./parse-options.h:188:37: note: expanded from macro 'OPT_CMDMODE'
#define OPT_CMDMODE(s, l, v, h, i)  OPT_CMDMODE_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:187:16: note: expanded from macro 'OPT_CMDMODE_F'
                                      (h), PARSE_OPT_CMDMODE|PARSE_OPT_NOARG|PARSE_OPT_NONEG | (f), NULL, (i) }
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/replace.c:554:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_CMDMODE(0, "convert-graft-file", &cmdmode, N_("convert existing graft file"), MODE_CONVERT_GRAFT_FILE),
                ^
/datasets/git/./parse-options.h:188:37: note: expanded from macro 'OPT_CMDMODE'
#define OPT_CMDMODE(s, l, v, h, i)  OPT_CMDMODE_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:187:16: note: expanded from macro 'OPT_CMDMODE_F'
                                      (h), PARSE_OPT_CMDMODE|PARSE_OPT_NOARG|PARSE_OPT_NONEG | (f), NULL, (i) }
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/replace.c:555:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL_F('f', "force", &force, N_("replace the ref if it exists"),
                ^
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/replace.c:557:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "raw", &raw, N_("do not pretty-print contents for --edit")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/replace.c:567:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!cmdmode)
                     ^
                      {
/datasets/git/builtin/replace.c:570:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (format && cmdmode != MODE_LIST)
                                           ^
                                            {
/datasets/git/builtin/replace.c:578:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            cmdmode != MODE_CONVERT_GRAFT_FILE)
                                               ^
                                                {
/datasets/git/builtin/replace.c:582:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (raw && cmdmode != MODE_EDIT)
                                        ^
                                         {
/datasets/git/builtin/replace.c:588:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (argc < 1)
                             ^
                              {
/datasets/git/builtin/replace.c:594:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (argc != 2)
                              ^
                               {
/datasets/git/builtin/replace.c:600:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (argc != 1)
                              ^
                               {
/datasets/git/builtin/replace.c:606:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (argc < 1)
                             ^
                              {
/datasets/git/builtin/replace.c:612:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (argc != 0)
                              ^
                               {
/datasets/git/builtin/replace.c:618:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (argc > 1)
                             ^
                              {
/datasets/git/builtin/rerere.c:6:1: warning: #includes are not sorted properly [llvm-include-order]
#include "string-list.h"
^        ~~~~~~~~~~~~~~~
         "pathspec.h"
/datasets/git/builtin/rerere.c:17:23: warning: parameter 'dummy' is unused [misc-unused-parameters]
static int outf(void *dummy, mmbuffer_t *ptr, int nbuf)
                      ^
/datasets/git/builtin/rerere.c:19:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/rerere.c:19:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/rerere.c:20:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nbuf; i++)
        ^
/datasets/git/builtin/rerere.c:20:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < nbuf; i++)
                                  ^
                                   {
/datasets/git/builtin/rerere.c:21:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (write_in_full(1, ptr[i].ptr, ptr[i].size) < 0)
                                                                  ^
                                                                   {
/datasets/git/builtin/rerere.c:26:21: warning: 2 adjacent parameters of 'diff_two' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int diff_two(const char *file1, const char *label1,
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rerere.c:26:33: note: the first parameter in the range is 'file1'
static int diff_two(const char *file1, const char *label1,
                                ^~~~~
/datasets/git/builtin/rerere.c:26:52: note: the last parameter in the range is 'label1'
static int diff_two(const char *file1, const char *label1,
                                                   ^~~~~~
/datasets/git/builtin/rerere.c:27:3: warning: 2 adjacent parameters of 'diff_two' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                const char *file2, const char *label2)
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rerere.c:27:15: note: the first parameter in the range is 'file2'
                const char *file2, const char *label2)
                            ^~~~~
/datasets/git/builtin/rerere.c:27:34: note: the last parameter in the range is 'label2'
                const char *file2, const char *label2)
                                               ^~~~~~
/datasets/git/builtin/rerere.c:32:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        mmfile_t minus, plus;
        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rerere.c:33:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/builtin/rerere.c:35:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (read_mmfile(&minus, file1) || read_mmfile(&plus, file2))
                                                                    ^
                                                                     {
/datasets/git/builtin/rerere.c:39:2: warning: the value returned by this function should be used [cert-err33-c]
        fflush(stdout);
        ^~~~~~~~~~~~~~
/datasets/git/builtin/rerere.c:39:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/rerere.c:40:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&xpp, 0, sizeof(xpp));
        ^~~~~~
/datasets/git/builtin/rerere.c:40:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&xpp, 0, sizeof(xpp));
        ^~~~~~
/datasets/git/builtin/rerere.c:42:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&xecfg, 0, sizeof(xecfg));
        ^~~~~~
/datasets/git/builtin/rerere.c:42:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&xecfg, 0, sizeof(xecfg));
        ^~~~~~
/datasets/git/builtin/rerere.c:51:5: warning: function 'cmd_rerere' has cognitive complexity of 29 (threshold 25) [readability-function-cognitive-complexity]
int cmd_rerere(int argc, const char **argv, const char *prefix)
    ^
/datasets/git/builtin/rerere.c:66:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (autoupdate == 1)
        ^
/datasets/git/builtin/rerere.c:68:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (autoupdate == 0)
        ^
/datasets/git/builtin/rerere.c:71:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (argc < 1)
        ^
/datasets/git/builtin/rerere.c:74:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(argv[0], "forget")) {
        ^
/datasets/git/builtin/rerere.c:76:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (argc < 2)
                ^
/datasets/git/builtin/rerere.c:83:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(argv[0], "clear")) {
        ^
/datasets/git/builtin/rerere.c:85:9: note: +1, nesting level increased to 1
        } else if (!strcmp(argv[0], "gc"))
               ^
/datasets/git/builtin/rerere.c:87:7: note: +1, nesting level increased to 1
        else if (!strcmp(argv[0], "status")) {
             ^
/datasets/git/builtin/rerere.c:88:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (setup_rerere(the_repository, &merge_rr,
                ^
/datasets/git/builtin/rerere.c:91:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < merge_rr.nr; i++)
                ^
/datasets/git/builtin/rerere.c:93:9: note: +1, nesting level increased to 1
        } else if (!strcmp(argv[0], "remaining")) {
               ^
/datasets/git/builtin/rerere.c:95:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < merge_rr.nr; i++) {
                ^
/datasets/git/builtin/rerere.c:96:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (merge_rr.items[i].util != RERERE_RESOLVED)
                        ^
/datasets/git/builtin/rerere.c:98:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/builtin/rerere.c:103:9: note: +1, nesting level increased to 1
        } else if (!strcmp(argv[0], "diff")) {
               ^
/datasets/git/builtin/rerere.c:104:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (setup_rerere(the_repository, &merge_rr,
                ^
/datasets/git/builtin/rerere.c:107:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < merge_rr.nr; i++) {
                ^
/datasets/git/builtin/rerere.c:110:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (diff_two(rerere_path(id, "preimage"), path, path, path))
                        ^
/datasets/git/builtin/rerere.c:113:4: note: +1, nesting level increased to 1
        } else
          ^
/datasets/git/builtin/rerere.c:54:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, autoupdate = -1, flags = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rerere.c:54:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, autoupdate = -1, flags = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/rerere.c:54:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/rerere.c:57:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT(0, "rerere-autoupdate", &autoupdate,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/rerere.c:66:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (autoupdate == 1)
                            ^
                             {
/datasets/git/builtin/rerere.c:68:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (autoupdate == 0)
                            ^
                             {
/datasets/git/builtin/rerere.c:71:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc < 1)
                     ^
                      {
/datasets/git/builtin/rerere.c:76:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (argc < 2)
                             ^
                              {
/datasets/git/builtin/rerere.c:78:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                parse_pathspec(&pathspec, 0, PATHSPEC_PREFER_CWD,
                                             ^
/datasets/git/./pathspec.h:65:30: note: expanded from macro 'PATHSPEC_PREFER_CWD'
#define PATHSPEC_PREFER_CWD (1<<0) /* No args means match cwd */
                             ^
/datasets/git/builtin/rerere.c:85:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else if (!strcmp(argv[0], "gc"))
                                          ^
                                           {
/datasets/git/builtin/rerere.c:89:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                 flags | RERERE_READONLY) < 0)
                                 ^~~~~
/datasets/git/builtin/rerere.c:89:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                 flags | RERERE_READONLY) < 0)
                                                              ^
                                                               {
/datasets/git/builtin/rerere.c:91:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < merge_rr.nr; i++)
                ^
/datasets/git/builtin/rerere.c:91:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < merge_rr.nr; i++)
                                                 ^
                                                  {
/datasets/git/builtin/rerere.c:95:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < merge_rr.nr; i++) {
                ^
/datasets/git/builtin/rerere.c:96:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (merge_rr.items[i].util != RERERE_RESOLVED)
                                                                      ^
                                                                       {
/datasets/git/builtin/rerere.c:98:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/builtin/rerere.c:105:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                 flags | RERERE_READONLY) < 0)
                                 ^~~~~
/datasets/git/builtin/rerere.c:105:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                 flags | RERERE_READONLY) < 0)
                                                              ^
                                                               {
/datasets/git/builtin/rerere.c:107:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < merge_rr.nr; i++) {
                ^
/datasets/git/builtin/rerere.c:109:28: warning: variable name 'id' is too short, expected at least 3 characters [readability-identifier-length]
                        const struct rerere_id *id = merge_rr.items[i].util;
                                                ^
/datasets/git/builtin/rerere.c:110:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (diff_two(rerere_path(id, "preimage"), path, path, path))
                                                                                    ^
                                                                                     {
/datasets/git/builtin/rerere.c:113:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/builtin/reset.c:12:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "branch.h"
/datasets/git/builtin/reset.c:30:1: warning: replace macro with enum [modernize-macro-to-enum]
#define REFRESH_INDEX_DELAY_WARNING_IN_MS (2 * 1000)
^~~~~~~~
                                          =
/datasets/git/builtin/reset.c:30:9: warning: macro 'REFRESH_INDEX_DELAY_WARNING_IN_MS' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define REFRESH_INDEX_DELAY_WARNING_IN_MS (2 * 1000)
        ^
/datasets/git/builtin/reset.c:41:20: warning: variable 'reset_type_names' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *reset_type_names[] = {
                   ^
/datasets/git/builtin/reset.c:50:70: warning: 2 adjacent parameters of 'reset_index' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int reset_index(const char *ref, const struct object_id *oid, int reset_type, int quiet)
                                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/reset.c:50:74: note: the first parameter in the range is 'reset_type'
static int reset_index(const char *ref, const struct object_id *oid, int reset_type, int quiet)
                                                                         ^~~~~~~~~~
/datasets/git/builtin/reset.c:50:90: note: the last parameter in the range is 'quiet'
static int reset_index(const char *ref, const struct object_id *oid, int reset_type, int quiet)
                                                                                         ^~~~~
/datasets/git/builtin/reset.c:52:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, nr = 0;
        ^~~~~~~~~~~~~~
/datasets/git/builtin/reset.c:52:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, nr = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/reset.c:52:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/reset.c:52:9: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
        int i, nr = 0;
               ^
/datasets/git/builtin/reset.c:54:15: warning: variable 'tree' is not initialized [cppcoreguidelines-init-variables]
        struct tree *tree;
                     ^
                          = NULL
/datasets/git/builtin/reset.c:58:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&opts, 0, sizeof(opts));
        ^~~~~~
/datasets/git/builtin/reset.c:58:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&opts, 0, sizeof(opts));
        ^~~~~~
/datasets/git/builtin/reset.c:65:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!quiet)
                   ^
                    {
/datasets/git/builtin/reset.c:91:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (get_oid("HEAD", &head_oid))
                                               ^
                                                {
/datasets/git/builtin/reset.c:93:67: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!fill_tree_descriptor(the_repository, desc + nr, &head_oid))
                                                                                ^
                                                                                 {
/datasets/git/builtin/reset.c:105:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unpack_trees(nr, desc, &opts))
                                          ^
                                           {
/datasets/git/builtin/reset.c:116:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr; i++)
        ^
/datasets/git/builtin/reset.c:116:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < nr; i++)
                                ^
                                 {
/datasets/git/builtin/reset.c:129:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (buf.len > 0)
                        ^
                         {
/datasets/git/builtin/reset.c:135:62: warning: parameter name 'q' is too short, expected at least 3 characters [readability-identifier-length]
static void update_index_from_diff(struct diff_queue_struct *q,
                                                             ^
/datasets/git/builtin/reset.c:136:24: warning: parameter 'opt' is unused [misc-unused-parameters]
                struct diff_options *opt, void *data)
                                     ^
/datasets/git/builtin/reset.c:138:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/reset.c:138:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/reset.c:141:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < q->nr; i++) {
        ^
/datasets/git/builtin/reset.c:142:7: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
                int pos;
                    ^
                        = 0
/datasets/git/builtin/reset.c:145:23: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
                struct cache_entry *ce;
                                    ^
                                       = NULL
/datasets/git/builtin/reset.c:145:23: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/reset.c:163:47: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                pos = index_name_pos(&the_index, one->path, strlen(one->path));
                                                            ^
/datasets/git/builtin/reset.c:164:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((pos >= 0 && ce_skip_worktree(the_index.cache[pos])) ||
                                 ^
/datasets/git/./refs/../cache.h:244:31: note: expanded from macro 'ce_skip_worktree'
#define ce_skip_worktree(ce) ((ce)->ce_flags & CE_SKIP_WORKTREE)
                              ^                ~~~~~~~~~~~~~~~~
/datasets/git/builtin/reset.c:165:68: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    (pos < 0 && !path_in_sparse_checkout(one->path, &the_index)))
                                                                                 ^
                                                                                  {
/datasets/git/builtin/reset.c:166:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ce->ce_flags |= CE_SKIP_WORKTREE;
                        ^
/datasets/git/builtin/reset.c:166:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ce->ce_flags |= CE_SKIP_WORKTREE;
                                        ^
/datasets/git/./refs/../cache.h:190:31: note: expanded from macro 'CE_SKIP_WORKTREE'
#define CE_SKIP_WORKTREE     (1 << 30)
                              ^
/datasets/git/builtin/reset.c:168:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ce)
                        ^
                         {
/datasets/git/builtin/reset.c:172:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ce->ce_flags |= CE_INTENT_TO_ADD;
                        ^
/datasets/git/builtin/reset.c:172:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ce->ce_flags |= CE_INTENT_TO_ADD;
                                        ^
/datasets/git/./refs/../cache.h:189:31: note: expanded from macro 'CE_INTENT_TO_ADD'
#define CE_INTENT_TO_ADD     (1 << 29)
                              ^
/datasets/git/builtin/reset.c:176:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                ADD_CACHE_OK_TO_ADD | ADD_CACHE_OK_TO_REPLACE);
                                ^
/datasets/git/./refs/../cache.h:840:29: note: expanded from macro 'ADD_CACHE_OK_TO_ADD'
#define ADD_CACHE_OK_TO_ADD 1           /* Ok to add */
                            ^
/datasets/git/builtin/reset.c:186:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&opt, 0, sizeof(opt));
        ^~~~~~
/datasets/git/builtin/reset.c:186:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&opt, 0, sizeof(opt));
        ^~~~~~
/datasets/git/builtin/reset.c:197:74: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pathspec->nr && pathspec_needs_expanded_index(&the_index, pathspec))
                                                                                ^
                                                                                 {
/datasets/git/builtin/reset.c:200:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (do_diff_cache(tree_oid, &opt))
                                          ^
                                           {
/datasets/git/builtin/reset.c:208:47: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static void set_reflog_message(struct strbuf *sb, const char *action,
                                              ^
/datasets/git/builtin/reset.c:208:51: warning: 2 adjacent parameters of 'set_reflog_message' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void set_reflog_message(struct strbuf *sb, const char *action,
                                                  ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/reset.c:208:63: note: the first parameter in the range is 'action'
static void set_reflog_message(struct strbuf *sb, const char *action,
                                                              ^~~~~~
/datasets/git/builtin/reset.c:209:23: note: the last parameter in the range is 'rev'
                               const char *rev)
                                           ^~~
/datasets/git/builtin/reset.c:211:20: warning: function is not thread safe [concurrency-mt-unsafe]
        const char *rla = getenv("GIT_REFLOG_ACTION");
                          ^
/datasets/git/builtin/reset.c:214:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (rla)
                ^
                 {
/datasets/git/builtin/reset.c:216:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (rev)
                     ^
                      {
/datasets/git/builtin/reset.c:218:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/reset.c:224:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_merge() || unmerged_index(&the_index))
                                                     ^
                                                      {
/datasets/git/builtin/reset.c:277:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_PREFER_FULL |
                       ^
/datasets/git/./pathspec.h:66:30: note: expanded from macro 'PATHSPEC_PREFER_FULL'
#define PATHSPEC_PREFER_FULL (1<<1) /* No args means match everything */
                             ^~~~~~
/datasets/git/builtin/reset.c:278:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       (patch_mode ? PATHSPEC_PREFIX_ORIGIN : 0),
                                     ^
/datasets/git/./pathspec.h:70:33: note: expanded from macro 'PATHSPEC_PREFIX_ORIGIN'
#define PATHSPEC_PREFIX_ORIGIN (1<<4)
                                ^
/datasets/git/builtin/reset.c:284:6: warning: variable 'update_ref_status' is not initialized [cppcoreguidelines-init-variables]
        int update_ref_status;
            ^
                              = 0
/datasets/git/builtin/reset.c:286:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct object_id *orig = NULL, oid_orig,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/reset.c:289:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!get_oid("ORIG_HEAD", &oid_old_orig))
                                                 ^
                                                  {
/datasets/git/builtin/reset.c:296:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else if (old_orig)
                            ^
                             {
/datasets/git/builtin/reset.c:305:71: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int git_reset_config(const char *var, const char *value, void *cb)
                                                                      ^
/datasets/git/builtin/reset.c:307:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(var, "submodule.recurse"))
                                              ^
                                               {
/datasets/git/builtin/reset.c:313:5: warning: function 'cmd_reset' has cognitive complexity of 77 (threshold 25) [readability-function-cognitive-complexity]
int cmd_reset(int argc, const char **argv, const char *prefix)
    ^
/datasets/git/builtin/reset.c:352:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (pathspec_from_file) {
        ^
/datasets/git/builtin/reset.c:353:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (patch_mode)
                ^
/datasets/git/builtin/reset.c:356:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (pathspec.nr)
                ^
/datasets/git/builtin/reset.c:362:9: note: +1, nesting level increased to 1
        } else if (pathspec_file_nul) {
               ^
/datasets/git/builtin/reset.c:366:32: note: +1
        unborn = !strcmp(rev, "HEAD") && get_oid("HEAD", &oid);
                                      ^
/datasets/git/builtin/reset.c:367:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (unborn) {
        ^
/datasets/git/builtin/reset.c:370:9: note: +1, nesting level increased to 1
        } else if (!pathspec.nr && !patch_mode) {
               ^
/datasets/git/builtin/reset.c:370:26: note: +1
        } else if (!pathspec.nr && !patch_mode) {
                                ^
/datasets/git/builtin/reset.c:372:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (get_oid_committish(rev, &oid))
                ^
/datasets/git/builtin/reset.c:375:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!commit)
                ^
/datasets/git/builtin/reset.c:378:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/reset.c:380:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (get_oid_treeish(rev, &oid))
                ^
/datasets/git/builtin/reset.c:383:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!tree)
                ^
/datasets/git/builtin/reset.c:388:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (patch_mode) {
        ^
/datasets/git/builtin/reset.c:389:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (reset_type != NONE)
                ^
/datasets/git/builtin/reset.c:398:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (pathspec.nr) {
        ^
/datasets/git/builtin/reset.c:399:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (reset_type == MIXED)
                ^
/datasets/git/builtin/reset.c:401:8: note: +1, nesting level increased to 2
                else if (reset_type != NONE)
                     ^
/datasets/git/builtin/reset.c:405:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (reset_type == NONE)
        ^
/datasets/git/builtin/reset.c:408:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (pathspec.nr)
        ^
/datasets/git/builtin/reset.c:410:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/builtin/reset.c:413:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (reset_type != SOFT && (reset_type != MIXED || get_git_work_tree()))
        ^
/datasets/git/builtin/reset.c:413:25: note: +1
        if (reset_type != SOFT && (reset_type != MIXED || get_git_work_tree()))
                               ^
/datasets/git/builtin/reset.c:413:49: note: +1
        if (reset_type != SOFT && (reset_type != MIXED || get_git_work_tree()))
                                                       ^
/datasets/git/builtin/reset.c:416:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (reset_type == MIXED && is_bare_repository())
        ^
/datasets/git/builtin/reset.c:416:26: note: +1
        if (reset_type == MIXED && is_bare_repository())
                                ^
/datasets/git/builtin/reset.c:420:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (intent_to_add && reset_type != MIXED)
        ^
/datasets/git/builtin/reset.c:420:20: note: +1
        if (intent_to_add && reset_type != MIXED)
                          ^
/datasets/git/builtin/reset.c:426:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (repo_read_index(the_repository) < 0)
        ^
/datasets/git/builtin/reset.c:432:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (reset_type == SOFT || reset_type == KEEP)
        ^
/datasets/git/builtin/reset.c:432:25: note: +1
        if (reset_type == SOFT || reset_type == KEEP)
                               ^
/datasets/git/builtin/reset.c:435:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (reset_type != SOFT) {
        ^
/datasets/git/builtin/reset.c:439:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (reset_type == MIXED) {
                ^
/datasets/git/builtin/reset.c:440:22: note: +3, including nesting penalty of 2, nesting level increased to 3
                        int flags = quiet ? REFRESH_QUIET : REFRESH_IN_PORCELAIN;
                                          ^
/datasets/git/builtin/reset.c:441:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (read_from_tree(&pathspec, &oid, intent_to_add))
                        ^
/datasets/git/builtin/reset.c:444:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!no_refresh && get_git_work_tree()) {
                        ^
/datasets/git/builtin/reset.c:444:20: note: +1
                        if (!no_refresh && get_git_work_tree()) {
                                        ^
/datasets/git/builtin/reset.c:451:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!quiet && advice_enabled(ADVICE_RESET_NO_REFRESH_WARNING) && t_delta_in_ms > REFRESH_INDEX_DELAY_WARNING_IN_MS) {
                                ^
/datasets/git/builtin/reset.c:451:67: note: +1
                                if (!quiet && advice_enabled(ADVICE_RESET_NO_REFRESH_WARNING) && t_delta_in_ms > REFRESH_INDEX_DELAY_WARNING_IN_MS) {
                                                                                              ^
/datasets/git/builtin/reset.c:456:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/reset.c:462:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ref && !starts_with(ref, "refs/"))
                        ^
/datasets/git/builtin/reset.c:462:12: note: +1
                        if (ref && !starts_with(ref, "refs/"))
                                ^
/datasets/git/builtin/reset.c:466:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (reset_type == KEEP && !err)
                        ^
/datasets/git/builtin/reset.c:466:27: note: +1
                        if (reset_type == KEEP && !err)
                                               ^
/datasets/git/builtin/reset.c:468:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (err)
                        ^
/datasets/git/builtin/reset.c:473:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (write_locked_index(&the_index, &lock, COMMIT_LOCK))
                ^
/datasets/git/builtin/reset.c:477:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!pathspec.nr && !unborn) {
        ^
/datasets/git/builtin/reset.c:477:19: note: +1
        if (!pathspec.nr && !unborn) {
                         ^
/datasets/git/builtin/reset.c:482:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (reset_type == HARD && !update_ref_status && !quiet)
                ^
/datasets/git/builtin/reset.c:482:48: note: +1
                if (reset_type == HARD && !update_ref_status && !quiet)
                                                             ^
/datasets/git/builtin/reset.c:485:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!pathspec.nr)
        ^
/datasets/git/builtin/reset.c:315:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int reset_type = NONE, update_ref_status = 0, quiet = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/reset.c:317:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int patch_mode = 0, pathspec_file_nul = 0, unborn;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/reset.c:317:45: warning: variable 'unborn' is not initialized [cppcoreguidelines-init-variables]
        int patch_mode = 0, pathspec_file_nul = 0, unborn;
                                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/reset.c:318:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *rev, *pathspec_from_file = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/reset.c:318:14: warning: variable 'rev' is not initialized [cppcoreguidelines-init-variables]
        const char *rev, *pathspec_from_file = NULL;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/reset.c:323:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__QUIET(&quiet, N_("be quiet, only report errors")),
                ^
/datasets/git/./parse-options.h:360:31: note: expanded from macro 'OPT__QUIET'
#define OPT__QUIET(var, h)    OPT_COUNTUP('q', "quiet",   (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/reset.c:324:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "no-refresh", &no_refresh,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/reset.c:326:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT(0, "mixed", &reset_type,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/reset.c:328:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT(0, "soft", &reset_type, N_("reset only HEAD"), SOFT),
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/reset.c:329:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT(0, "hard", &reset_type,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/reset.c:331:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT(0, "merge", &reset_type,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/reset.c:333:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT(0, "keep", &reset_type,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/reset.c:338:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('p', "patch", &patch_mode, N_("select hunks interactively")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/reset.c:339:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('N', "intent-to-add", &intent_to_add,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/reset.c:342:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_PATHSPEC_FILE_NUL(&pathspec_file_nul),
                ^
/datasets/git/./parse-options.h:391:35: note: expanded from macro 'OPT_PATHSPEC_FILE_NUL'
#define OPT_PATHSPEC_FILE_NUL(v)  OPT_BOOL(0, "pathspec-file-nul", v, N_("with --pathspec-from-file, pathspec elements are separated with NUL character"))
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/reset.c:348:2: warning: Value stored to 'argc' is never read [clang-analyzer-deadcode.DeadStores]
        argc = parse_options(argc, argv, prefix, options, git_reset_usage,
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/reset.c:348:2: note: Value stored to 'argc' is never read
        argc = parse_options(argc, argv, prefix, options, git_reset_usage,
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/reset.c:353:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (patch_mode)
                               ^
                                {
/datasets/git/builtin/reset.c:356:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pathspec.nr)
                                ^
                                 {
/datasets/git/builtin/reset.c:360:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                    PATHSPEC_PREFER_FULL,
                                    ^
/datasets/git/./pathspec.h:66:31: note: expanded from macro 'PATHSPEC_PREFER_FULL'
#define PATHSPEC_PREFER_FULL (1<<1) /* No args means match everything */
                              ^
/datasets/git/builtin/reset.c:371:18: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
                struct commit *commit;
                               ^
                                      = NULL
/datasets/git/builtin/reset.c:372:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (get_oid_committish(rev, &oid))
                                                  ^
                                                   {
/datasets/git/builtin/reset.c:375:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!commit)
                            ^
                             {
/datasets/git/builtin/reset.c:379:16: warning: variable 'tree' is not initialized [cppcoreguidelines-init-variables]
                struct tree *tree;
                             ^
                                  = NULL
/datasets/git/builtin/reset.c:380:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (get_oid_treeish(rev, &oid))
                                               ^
                                                {
/datasets/git/builtin/reset.c:383:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!tree)
                          ^
                           {
/datasets/git/builtin/reset.c:389:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (reset_type != NONE)
                                       ^
                                        {
/datasets/git/builtin/reset.c:399:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (reset_type == MIXED)
                                        ^
                                         {
/datasets/git/builtin/reset.c:401:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (reset_type != NONE)
                                            ^
                                             {
/datasets/git/builtin/reset.c:405:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (reset_type == NONE)
                               ^
                                {
/datasets/git/builtin/reset.c:408:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pathspec.nr)
                        ^
                         {
/datasets/git/builtin/reset.c:410:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/reset.c:413:73: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (reset_type != SOFT && (reset_type != MIXED || get_git_work_tree()))
                                                                               ^
                                                                                {
/datasets/git/builtin/reset.c:416:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (reset_type == MIXED && is_bare_repository())
                                                        ^
                                                         {
/datasets/git/builtin/reset.c:420:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (intent_to_add && reset_type != MIXED)
                                                 ^
                                                  {
/datasets/git/builtin/reset.c:426:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_read_index(the_repository) < 0)
                                                ^
                                                 {
/datasets/git/builtin/reset.c:432:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (reset_type == SOFT || reset_type == KEEP)
                                                     ^
                                                      {
/datasets/git/builtin/reset.c:440:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        int flags = quiet ? REFRESH_QUIET : REFRESH_IN_PORCELAIN;
                                            ^
/datasets/git/./refs/../cache.h:923:43: note: expanded from macro 'REFRESH_QUIET'
#define REFRESH_QUIET                    (1 << 2) /* be quiet about it */
                                          ^
/datasets/git/builtin/reset.c:440:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        int flags = quiet ? REFRESH_QUIET : REFRESH_IN_PORCELAIN;
                                                            ^
/datasets/git/./refs/../cache.h:926:43: note: expanded from macro 'REFRESH_IN_PORCELAIN'
#define REFRESH_IN_PORCELAIN             (1 << 5) /* user friendly output, not "needs update" */
                                          ^
/datasets/git/builtin/reset.c:441:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (read_from_tree(&pathspec, &oid, intent_to_add))
                                                                           ^
                                                                            {
/datasets/git/builtin/reset.c:445:5: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                                uint64_t t_begin, t_delta_in_ms;
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/reset.c:445:14: warning: variable 't_begin' is not initialized [cppcoreguidelines-init-variables]
                                uint64_t t_begin, t_delta_in_ms;
                                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/reset.c:445:23: warning: variable 't_delta_in_ms' is not initialized [cppcoreguidelines-init-variables]
                                uint64_t t_begin, t_delta_in_ms;
                                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/reset.c:450:49: warning: 1000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                t_delta_in_ms = (getnanotime() - t_begin) / 1000000;
                                                                            ^
/datasets/git/builtin/reset.c:451:86: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                                if (!quiet && advice_enabled(ADVICE_RESET_NO_REFRESH_WARNING) && t_delta_in_ms > REFRESH_INDEX_DELAY_WARNING_IN_MS) {
                                                                                                                 ^
/datasets/git/builtin/reset.c:30:44: note: expanded from macro 'REFRESH_INDEX_DELAY_WARNING_IN_MS'
#define REFRESH_INDEX_DELAY_WARNING_IN_MS (2 * 1000)
                                           ^
/datasets/git/builtin/reset.c:451:86: note: make conversion explicit to silence this warning
                                if (!quiet && advice_enabled(ADVICE_RESET_NO_REFRESH_WARNING) && t_delta_in_ms > REFRESH_INDEX_DELAY_WARNING_IN_MS) {
                                                                                                                 ^
/datasets/git/builtin/reset.c:30:44: note: expanded from macro 'REFRESH_INDEX_DELAY_WARNING_IN_MS'
#define REFRESH_INDEX_DELAY_WARNING_IN_MS (2 * 1000)
                                           ^~~~~~~~
/datasets/git/builtin/reset.c:451:86: note: perform multiplication in a wider type
                                if (!quiet && advice_enabled(ADVICE_RESET_NO_REFRESH_WARNING) && t_delta_in_ms > REFRESH_INDEX_DELAY_WARNING_IN_MS) {
                                                                                                                 ^
/datasets/git/builtin/reset.c:30:44: note: expanded from macro 'REFRESH_INDEX_DELAY_WARNING_IN_MS'
#define REFRESH_INDEX_DELAY_WARNING_IN_MS (2 * 1000)
                                           ^
/datasets/git/builtin/reset.c:453:42: warning: narrowing conversion from 'uint64_t' (aka 'unsigned long') to 'double' [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                                 "'--no-refresh' to avoid this."), t_delta_in_ms / 1000.0);
                                                                                   ^
/datasets/git/builtin/reset.c:453:58: warning: 1000.0 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                                 "'--no-refresh' to avoid this."), t_delta_in_ms / 1000.0);
                                                                                                   ^
/datasets/git/builtin/reset.c:459:8: warning: variable 'err' is not initialized [cppcoreguidelines-init-variables]
                        int err;
                            ^
                                = 0
/datasets/git/builtin/reset.c:461:18: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        dwim_ref(rev, strlen(rev), &dummy, &ref, 0);
                                      ^
/datasets/git/builtin/reset.c:462:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ref && !starts_with(ref, "refs/"))
                                                              ^
                                                               {
/datasets/git/builtin/reset.c:463:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                FREE_AND_NULL(ref);
                                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/reset.c:466:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (reset_type == KEEP && !err)
                                                       ^
                                                        {
/datasets/git/builtin/reset.c:468:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (err)
                                ^
                                 {
/datasets/git/builtin/reset.c:473:45: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (write_locked_index(&the_index, &lock, COMMIT_LOCK))
                                                          ^
/datasets/git/./refs/../cache.h:744:23: note: expanded from macro 'COMMIT_LOCK'
#define COMMIT_LOCK             (1 << 0)
                                 ^
/datasets/git/builtin/reset.c:473:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (write_locked_index(&the_index, &lock, COMMIT_LOCK))
                                                                       ^
                                                                        {
/datasets/git/builtin/reset.c:482:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (reset_type == HARD && !update_ref_status && !quiet)
                                                                       ^
                                                                        {
/datasets/git/builtin/reset.c:485:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!pathspec.nr)
                         ^
                          {
/datasets/git/builtin/rev-list.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "bisect.h"
/datasets/git/builtin/rev-list.c:65:25: warning: variable 'progress' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct progress *progress;
                        ^
/datasets/git/builtin/rev-list.c:65:25: warning: variable 'progress' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/rev-list.c:66:17: warning: variable 'progress_counter' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned progress_counter;
                ^
/datasets/git/builtin/rev-list.c:68:22: warning: variable 'omitted_objects' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct oidset omitted_objects;
                     ^
/datasets/git/builtin/rev-list.c:69:12: warning: variable 'arg_print_omitted' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int arg_print_omitted; /* print objects omitted by filter */
           ^
/datasets/git/builtin/rev-list.c:71:22: warning: variable 'missing_objects' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct oidset missing_objects;
                     ^
/datasets/git/builtin/rev-list.c:78:28: warning: variable 'arg_missing_action' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static enum missing_action arg_missing_action;
                           ^
/datasets/git/builtin/rev-list.c:81:12: warning: variable 'arg_show_object_names' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int arg_show_object_names = 1;
           ^
/datasets/git/builtin/rev-list.c:83:1: warning: replace macro with enum [modernize-macro-to-enum]
#define DEFAULT_OIDSET_SIZE     (16*1024)
^~~~~~~~
                            =
/datasets/git/builtin/rev-list.c:83:9: warning: macro 'DEFAULT_OIDSET_SIZE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define DEFAULT_OIDSET_SIZE     (16*1024)
        ^
/datasets/git/builtin/rev-list.c:85:12: warning: variable 'show_disk_usage' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int show_disk_usage;
           ^
/datasets/git/builtin/rev-list.c:86:14: warning: variable 'total_disk_usage' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static off_t total_disk_usage;
             ^
/datasets/git/builtin/rev-list.c:87:12: warning: variable 'human_readable' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int human_readable;
           ^
/datasets/git/builtin/rev-list.c:91:8: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        off_t size;
              ^
                   = 0
/datasets/git/builtin/rev-list.c:92:21: warning: variable name 'oi' is too short, expected at least 3 characters [readability-identifier-length]
        struct object_info oi = OBJECT_INFO_INIT;
                           ^
/datasets/git/builtin/rev-list.c:94:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oid_object_info_extended(the_repository, &obj->oid, &oi, 0) < 0)
                                                                            ^
                                                                             {
/datasets/git/builtin/rev-list.c:100:13: warning: function 'show_commit' has cognitive complexity of 44 (threshold 25) [readability-function-cognitive-complexity]
static void show_commit(struct commit *commit, void *data)
            ^
/datasets/git/builtin/rev-list.c:107:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (show_disk_usage)
        ^
/datasets/git/builtin/rev-list.c:110:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (info->flags & REV_LIST_QUIET) {
        ^
/datasets/git/builtin/rev-list.c:117:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (revs->count) {
        ^
/datasets/git/builtin/rev-list.c:118:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (commit->object.flags & PATCHSAME)
                ^
/datasets/git/builtin/rev-list.c:120:8: note: +1, nesting level increased to 2
                else if (commit->object.flags & SYMMETRIC_LEFT)
                     ^
/datasets/git/builtin/rev-list.c:122:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/rev-list.c:128:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (info->show_timestamp)
        ^
/datasets/git/builtin/rev-list.c:130:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (info->header_prefix)
        ^
/datasets/git/builtin/rev-list.c:133:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (revs->include_header) {
        ^
/datasets/git/builtin/rev-list.c:134:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!revs->graph)
                ^
/datasets/git/builtin/rev-list.c:136:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (revs->abbrev_commit && revs->abbrev)
                ^
/datasets/git/builtin/rev-list.c:136:27: note: +1
                if (revs->abbrev_commit && revs->abbrev)
                                        ^
/datasets/git/builtin/rev-list.c:139:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/rev-list.c:142:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (revs->print_parents) {
        ^
/datasets/git/builtin/rev-list.c:144:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (parents) {
                ^
/datasets/git/builtin/rev-list.c:149:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (revs->children.name) {
        ^
/datasets/git/builtin/rev-list.c:153:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (children) {
                ^
/datasets/git/builtin/rev-list.c:159:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (revs->commit_format == CMIT_FMT_ONELINE)
        ^
/datasets/git/builtin/rev-list.c:161:7: note: +1, nesting level increased to 1
        else if (revs->include_header)
             ^
/datasets/git/builtin/rev-list.c:164:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (revs->verbose_header) {
        ^
/datasets/git/builtin/rev-list.c:174:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (buf.len) {
                ^
/datasets/git/builtin/rev-list.c:175:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (revs->commit_format != CMIT_FMT_ONELINE)
                        ^
/datasets/git/builtin/rev-list.c:195:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (buf.len && buf.buf[buf.len - 1] == '\n')
                        ^
/datasets/git/builtin/rev-list.c:195:16: note: +1
                        if (buf.len && buf.buf[buf.len - 1] == '\n')
                                    ^
/datasets/git/builtin/rev-list.c:198:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/rev-list.c:204:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (graph_show_remainder(revs->graph))
                        ^
/datasets/git/builtin/rev-list.c:206:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (revs->commit_format == CMIT_FMT_ONELINE)
                        ^
/datasets/git/builtin/rev-list.c:210:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/rev-list.c:211:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (graph_show_remainder(revs->graph))
                ^
/datasets/git/builtin/rev-list.c:107:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (show_disk_usage)
                            ^
                             {
/datasets/git/builtin/rev-list.c:110:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (info->flags & REV_LIST_QUIET) {
            ^~~~~~~~~~~
/datasets/git/builtin/rev-list.c:110:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (info->flags & REV_LIST_QUIET) {
                          ^
/datasets/git/./bisect.h:25:26: note: expanded from macro 'REV_LIST_QUIET'
#define REV_LIST_QUIET          (1<<1)
                                 ^
/datasets/git/builtin/rev-list.c:118:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (commit->object.flags & PATCHSAME)
                                           ^
/datasets/git/./revision.h:36:20: note: expanded from macro 'PATCHSAME'
#define PATCHSAME       (1u<<9)
                         ^   ~
/datasets/git/builtin/rev-list.c:118:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (commit->object.flags & PATCHSAME)
                                                     ^
                                                      {
/datasets/git/builtin/rev-list.c:120:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                else if (commit->object.flags & SYMMETRIC_LEFT)
                                                ^
/datasets/git/./revision.h:35:25: note: expanded from macro 'SYMMETRIC_LEFT'
#define SYMMETRIC_LEFT  (1u<<8)
                         ^   ~
/datasets/git/builtin/rev-list.c:120:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (commit->object.flags & SYMMETRIC_LEFT)
                                                               ^
                                                                {
/datasets/git/builtin/rev-list.c:122:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/rev-list.c:128:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (info->show_timestamp)
                                 ^
                                  {
/datasets/git/builtin/rev-list.c:130:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (info->header_prefix)
                                ^
                                 {
/datasets/git/builtin/rev-list.c:131:3: warning: the value returned by this function should be used [cert-err33-c]
                fputs(info->header_prefix, stdout);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rev-list.c:131:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/rev-list.c:134:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!revs->graph)
                                 ^
                                  {
/datasets/git/builtin/rev-list.c:135:4: warning: the value returned by this function should be used [cert-err33-c]
                        fputs(get_revision_mark(revs, commit), stdout);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rev-list.c:135:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/rev-list.c:136:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (revs->abbrev_commit && revs->abbrev)
                                                        ^
                                                         {
/datasets/git/builtin/rev-list.c:137:4: warning: the value returned by this function should be used [cert-err33-c]
                        fputs(find_unique_abbrev(&commit->object.oid, revs->abbrev),
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rev-list.c:137:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/rev-list.c:139:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/rev-list.c:140:4: warning: the value returned by this function should be used [cert-err33-c]
                        fputs(oid_to_hex(&commit->object.oid), stdout);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rev-list.c:140:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/rev-list.c:143:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                struct commit_list *parents = commit->parents;
                ^
/datasets/git/builtin/rev-list.c:144:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (parents) {
                ^
/datasets/git/builtin/rev-list.c:150:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                struct commit_list *children;
                ^
/datasets/git/builtin/rev-list.c:144:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'parents' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (parents) {
                       ^
/datasets/git/builtin/rev-list.c:150:23: warning: variable 'children' is not initialized [cppcoreguidelines-init-variables]
                struct commit_list *children;
                                    ^
                                             = NULL
/datasets/git/builtin/rev-list.c:153:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (children) {
                ^
/datasets/git/builtin/rev-list.c:153:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'children' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (children) {
                       ^
/datasets/git/builtin/rev-list.c:159:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->commit_format == CMIT_FMT_ONELINE)
                                                    ^
                                                     {
/datasets/git/builtin/rev-list.c:161:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (revs->include_header)
                                      ^
                                       {
/datasets/git/builtin/rev-list.c:167:16: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                ctx.abbrev = revs->abbrev;
                             ^
/datasets/git/builtin/rev-list.c:175:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (revs->commit_format != CMIT_FMT_ONELINE)
                                                                    ^
                                                                     {
/datasets/git/builtin/rev-list.c:195:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (buf.len && buf.buf[buf.len - 1] == '\n')
                                                                    ^
                                                                     {
/datasets/git/builtin/rev-list.c:204:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (graph_show_remainder(revs->graph))
                                                              ^
                                                               {
/datasets/git/builtin/rev-list.c:206:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (revs->commit_format == CMIT_FMT_ONELINE)
                                                                    ^
                                                                     {
/datasets/git/builtin/rev-list.c:211:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (graph_show_remainder(revs->graph))
                                                      ^
                                                       {
/datasets/git/builtin/rev-list.c:248:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_promisor_object(&obj->oid))
                                                  ^
                                                   {
/datasets/git/builtin/rev-list.c:260:58: warning: parameter 'name' is unused [misc-unused-parameters]
static int finish_object(struct object *obj, const char *name, void *cb_data)
                                             ~~~~~~~~~~~~^~~~~~
/datasets/git/builtin/rev-list.c:267:76: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (info->revs->verify_objects && !obj->parsed && obj->type != OBJ_COMMIT)
                                                                                  ^
                                                                                   {
/datasets/git/builtin/rev-list.c:277:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (finish_object(obj, name, cb_data))
                                              ^
                                               {
/datasets/git/builtin/rev-list.c:280:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (show_disk_usage)
                            ^
                             {
/datasets/git/builtin/rev-list.c:282:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (info->flags & REV_LIST_QUIET)
            ^~~~~~~~~~~
/datasets/git/builtin/rev-list.c:282:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (info->flags & REV_LIST_QUIET)
                          ^
/datasets/git/./bisect.h:25:26: note: expanded from macro 'REV_LIST_QUIET'
#define REV_LIST_QUIET          (1<<1)
                                 ^
/datasets/git/builtin/rev-list.c:282:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (info->flags & REV_LIST_QUIET)
                                         ^
                                          {
/datasets/git/builtin/rev-list.c:297:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (arg_show_object_names)
                                  ^
                                   {
/datasets/git/builtin/rev-list.c:299:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/rev-list.c:320:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int cnt, flags = info->flags;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rev-list.c:320:6: warning: variable 'cnt' is not initialized [cppcoreguidelines-init-variables]
        int cnt, flags = info->flags;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/rev-list.c:322:22: warning: variable 'tried' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *tried;
                            ^
                                  = NULL
/datasets/git/builtin/rev-list.c:325:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!revs->commits)
                           ^
                            {
/datasets/git/builtin/rev-list.c:329:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                       flags & BISECT_SHOW_ALL,
                                       ^~~~~
/datasets/git/builtin/rev-list.c:329:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                       flags & BISECT_SHOW_ALL,
                                               ^
/datasets/git/./bisect.h:24:27: note: expanded from macro 'BISECT_SHOW_ALL'
#define BISECT_SHOW_ALL         (1<<0)
                                 ^
/datasets/git/builtin/rev-list.c:342:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cnt < reaches)
                          ^
                           {
/datasets/git/builtin/rev-list.c:345:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->commits)
                          ^
                           {
/datasets/git/builtin/rev-list.c:348:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & BISECT_SHOW_ALL) {
            ^~~~~
/datasets/git/builtin/rev-list.c:348:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & BISECT_SHOW_ALL) {
                    ^
/datasets/git/./bisect.h:24:27: note: expanded from macro 'BISECT_SHOW_ALL'
#define BISECT_SHOW_ALL         (1<<0)
                                 ^
/datasets/git/builtin/rev-list.c:365:2: warning: 3 adjacent parameters of 'show_object_fast' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
        enum object_type type,
        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rev-list.c:365:19: note: the first parameter in the range is 'type'
        enum object_type type,
                         ^~~~
/datasets/git/builtin/rev-list.c:367:11: note: the last parameter in the range is 'name_hash'
        uint32_t name_hash,
                 ^~~~~~~~~
/datasets/git/builtin/rev-list.c:366:2: note: 'enum object_type' and 'int' may be implicitly converted
        int exclude,
        ^
/datasets/git/builtin/rev-list.c:365:2: note: 
        enum object_type type,
        ^
/datasets/git/builtin/rev-list.c:367:2: note: 'enum object_type' and 'uint32_t' may be implicitly converted: 'enum object_type' -> 'uint32_t' (as 'unsigned int'), 'uint32_t' (as 'unsigned int') -> 'enum object_type'
        uint32_t name_hash,
        ^
/datasets/git/builtin/rev-list.c:366:2: note: 
        int exclude,
        ^
/datasets/git/builtin/rev-list.c:367:2: note: 'int' and 'uint32_t' may be implicitly converted: 'int' -> 'uint32_t' (as 'unsigned int'), 'uint32_t' (as 'unsigned int') -> 'int'
        uint32_t name_hash,
        ^
/datasets/git/builtin/rev-list.c:365:19: warning: parameter 'type' is unused [misc-unused-parameters]
        enum object_type type,
                         ^
/datasets/git/builtin/rev-list.c:366:6: warning: parameter 'exclude' is unused [misc-unused-parameters]
        int exclude,
            ^
/datasets/git/builtin/rev-list.c:367:11: warning: parameter 'name_hash' is unused [misc-unused-parameters]
        uint32_t name_hash,
                 ^
/datasets/git/builtin/rev-list.c:368:21: warning: parameter 'found_pack' is unused [misc-unused-parameters]
        struct packed_git *found_pack,
                           ^
/datasets/git/builtin/rev-list.c:369:8: warning: parameter 'found_offset' is unused [misc-unused-parameters]
        off_t found_offset)
              ^
/datasets/git/builtin/rev-list.c:371:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(stdout, "%s\n", oid_to_hex(oid));
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rev-list.c:371:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/rev-list.c:377:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/rev-list.c:378:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (human_readable)
                           ^
                            {
/datasets/git/builtin/rev-list.c:380:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/rev-list.c:417:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        uint32_t commit_count = 0,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rev-list.c:421:6: warning: variable 'max_count' is not initialized [cppcoreguidelines-init-variables]
        int max_count;
            ^
                      = 0
/datasets/git/builtin/rev-list.c:422:23: warning: variable 'bitmap_git' is not initialized [cppcoreguidelines-init-variables]
        struct bitmap_index *bitmap_git;
                             ^
                                        = NULL
/datasets/git/builtin/rev-list.c:425:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!revs->count)
                         ^
                          {
/datasets/git/builtin/rev-list.c:432:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->left_right || revs->cherry_mark)
                                                  ^
                                                   {
/datasets/git/builtin/rev-list.c:441:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            (revs->tag_objects || revs->tree_objects || revs->blob_objects))
                                                                            ^
                                                                             {
/datasets/git/builtin/rev-list.c:451:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!bitmap_git)
                        ^
                         {
/datasets/git/builtin/rev-list.c:458:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (max_count >= 0 && max_count < commit_count)
                                                       ^
                                                        {
/datasets/git/builtin/rev-list.c:469:23: warning: variable 'bitmap_git' is not initialized [cppcoreguidelines-init-variables]
        struct bitmap_index *bitmap_git;
                             ^
                                        = NULL
/datasets/git/builtin/rev-list.c:475:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->max_count >= 0)
                                 ^
                                  {
/datasets/git/builtin/rev-list.c:479:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!bitmap_git)
                        ^
                         {
/datasets/git/builtin/rev-list.c:490:23: warning: variable 'bitmap_git' is not initialized [cppcoreguidelines-init-variables]
        struct bitmap_index *bitmap_git;
                             ^
                                        = NULL
/datasets/git/builtin/rev-list.c:491:8: warning: variable 'size_from_bitmap' is not initialized [cppcoreguidelines-init-variables]
        off_t size_from_bitmap;
              ^
                               = 0
/datasets/git/builtin/rev-list.c:493:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!show_disk_usage)
                             ^
                              {
/datasets/git/builtin/rev-list.c:497:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!bitmap_git)
                        ^
                         {
/datasets/git/builtin/rev-list.c:505:5: warning: function 'cmd_rev_list' has cognitive complexity of 120 (threshold 25) [readability-function-cognitive-complexity]
int cmd_rev_list(int argc, const char **argv, const char *prefix)
    ^
/datasets/git/builtin/rev-list.c:521:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (argc == 2 && !strcmp(argv[1], "-h"))
        ^
/datasets/git/builtin/rev-list.c:521:16: note: +1
        if (argc == 2 && !strcmp(argv[1], "-h"))
                      ^
/datasets/git/builtin/rev-list.c:540:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 1; i < argc; i++) {
        ^
/datasets/git/builtin/rev-list.c:542:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(arg, "--exclude-promisor-objects")) {
                ^
/datasets/git/builtin/rev-list.c:548:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 1; i < argc; i++) {
        ^
/datasets/git/builtin/rev-list.c:550:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (skip_prefix(arg, "--missing=", &arg)) {
                ^
/datasets/git/builtin/rev-list.c:551:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (revs.exclude_promisor_objects)
                        ^
/datasets/git/builtin/rev-list.c:553:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (parse_missing_action_value(arg))
                        ^
/datasets/git/builtin/rev-list.c:558:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (arg_missing_action)
        ^
/datasets/git/builtin/rev-list.c:565:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (revs.bisect)
        ^
/datasets/git/builtin/rev-list.c:568:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (revs.diffopt.flags.quick)
        ^
/datasets/git/builtin/rev-list.c:570:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 1 ; i < argc; i++) {
        ^
/datasets/git/builtin/rev-list.c:573:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(arg, "--header")) {
                ^
/datasets/git/builtin/rev-list.c:577:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(arg, "--timestamp")) {
                ^
/datasets/git/builtin/rev-list.c:581:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(arg, "--bisect")) {
                ^
/datasets/git/builtin/rev-list.c:585:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(arg, "--bisect-all")) {
                ^
/datasets/git/builtin/rev-list.c:592:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(arg, "--bisect-vars")) {
                ^
/datasets/git/builtin/rev-list.c:597:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(arg, "--use-bitmap-index")) {
                ^
/datasets/git/builtin/rev-list.c:601:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(arg, "--test-bitmap")) {
                ^
/datasets/git/builtin/rev-list.c:603:4: note: +1
                        goto cleanup;
                        ^
/datasets/git/builtin/rev-list.c:605:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (skip_prefix(arg, "--progress=", &arg)) {
                ^
/datasets/git/builtin/rev-list.c:609:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(arg, "--filter-provided-objects")) {
                ^
/datasets/git/builtin/rev-list.c:613:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(arg, "--filter-print-omitted")) {
                ^
/datasets/git/builtin/rev-list.c:618:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(arg, "--exclude-promisor-objects"))
                ^
/datasets/git/builtin/rev-list.c:620:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (skip_prefix(arg, "--missing=", &arg))
                ^
/datasets/git/builtin/rev-list.c:623:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(arg, ("--no-object-names"))) {
                ^
/datasets/git/builtin/rev-list.c:628:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(arg, ("--object-names"))) {
                ^
/datasets/git/builtin/rev-list.c:633:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(arg, ("--commit-header"))) {
                ^
/datasets/git/builtin/rev-list.c:638:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(arg, ("--no-commit-header"))) {
                ^
/datasets/git/builtin/rev-list.c:643:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (skip_prefix(arg, "--disk-usage", &arg)) {
                ^
/datasets/git/builtin/rev-list.c:644:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (*arg == '=') {
                        ^
/datasets/git/builtin/rev-list.c:645:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!strcmp(++arg, "human")) {
                                ^
/datasets/git/builtin/rev-list.c:647:7: note: +1, nesting level increased to 4
                                } else
                                  ^
/datasets/git/builtin/rev-list.c:650:11: note: +1, nesting level increased to 3
                        } else if (*arg) {
                               ^
/datasets/git/builtin/rev-list.c:666:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (revs.commit_format != CMIT_FMT_USERFORMAT)
        ^
/datasets/git/builtin/rev-list.c:668:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (revs.commit_format != CMIT_FMT_UNSPECIFIED) {
        ^
/datasets/git/builtin/rev-list.c:671:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (revs.commit_format == CMIT_FMT_ONELINE || !revs.include_header)
                ^
/datasets/git/builtin/rev-list.c:671:46: note: +1
                if (revs.commit_format == CMIT_FMT_ONELINE || !revs.include_header)
                                                           ^
/datasets/git/builtin/rev-list.c:673:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/rev-list.c:676:7: note: +1, nesting level increased to 1
        else if (revs.verbose_header)
             ^
/datasets/git/builtin/rev-list.c:680:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((!revs.commits && reflog_walk_empty(revs.reflog_info) &&
        ^
/datasets/git/builtin/rev-list.c:683:55: note: +1
             !revs.rev_input_given && !revs.read_from_stdin) ||
                                                             ^
/datasets/git/builtin/rev-list.c:683:29: note: +1
             !revs.rev_input_given && !revs.read_from_stdin) ||
                                   ^
/datasets/git/builtin/rev-list.c:681:48: note: +1
             (!(revs.tag_objects || revs.tree_objects || revs.blob_objects) &&
                                                      ^
/datasets/git/builtin/rev-list.c:687:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (revs.show_notes)
        ^
/datasets/git/builtin/rev-list.c:690:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (revs.count &&
        ^
/datasets/git/builtin/rev-list.c:691:67: note: +1
            (revs.tag_objects || revs.tree_objects || revs.blob_objects) &&
                                                                         ^
/datasets/git/builtin/rev-list.c:691:45: note: +1
            (revs.tag_objects || revs.tree_objects || revs.blob_objects) &&
                                                   ^
/datasets/git/builtin/rev-list.c:692:23: note: +1
            (revs.left_right || revs.cherry_mark))
                             ^
/datasets/git/builtin/rev-list.c:696:40: note: +1
                              revs.grep_filter.pattern_list ||
                                                            ^
/datasets/git/builtin/rev-list.c:698:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (bisect_list)
        ^
/datasets/git/builtin/rev-list.c:701:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (show_progress)
        ^
/datasets/git/builtin/rev-list.c:704:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (use_bitmap_index) {
        ^
/datasets/git/builtin/rev-list.c:705:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!try_bitmap_count(&revs, filter_provided_objects))
                ^
/datasets/git/builtin/rev-list.c:707:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!try_bitmap_disk_usage(&revs, filter_provided_objects))
                ^
/datasets/git/builtin/rev-list.c:709:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!try_bitmap_traversal(&revs, filter_provided_objects))
                ^
/datasets/git/builtin/rev-list.c:713:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (prepare_revision_walk(&revs))
        ^
/datasets/git/builtin/rev-list.c:715:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (revs.tree_objects)
        ^
/datasets/git/builtin/rev-list.c:718:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (bisect_list) {
        ^
/datasets/git/builtin/rev-list.c:722:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (bisect_find_all)
                ^
/datasets/git/builtin/rev-list.c:725:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (revs.first_parent_only)
                ^
/datasets/git/builtin/rev-list.c:730:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (bisect_show_vars) {
                ^
/datasets/git/builtin/rev-list.c:732:4: note: +1
                        goto cleanup;
                        ^
/datasets/git/builtin/rev-list.c:736:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (filter_provided_objects) {
        ^
/datasets/git/builtin/rev-list.c:738:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < revs.pending.nr; i++) {
                ^
/datasets/git/builtin/rev-list.c:742:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (c = revs.commits; c; c = c->next)
                ^
/datasets/git/builtin/rev-list.c:746:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (arg_print_omitted)
        ^
/datasets/git/builtin/rev-list.c:748:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (arg_missing_action == MA_PRINT)
        ^
/datasets/git/builtin/rev-list.c:753:22: note: +1, including nesting penalty of 0, nesting level increased to 1
                (arg_print_omitted ? &omitted_objects : NULL));
                                   ^
/datasets/git/builtin/rev-list.c:755:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (arg_print_omitted) {
        ^
/datasets/git/builtin/rev-list.c:759:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while ((oid = oidset_iter_next(&iter)))
                ^
/datasets/git/builtin/rev-list.c:763:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (arg_missing_action == MA_PRINT) {
        ^
/datasets/git/builtin/rev-list.c:767:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while ((oid = oidset_iter_next(&iter)))
                ^
/datasets/git/builtin/rev-list.c:774:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (revs.count) {
        ^
/datasets/git/builtin/rev-list.c:775:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (revs.left_right && revs.cherry_mark)
                ^
/datasets/git/builtin/rev-list.c:775:23: note: +1
                if (revs.left_right && revs.cherry_mark)
                                    ^
/datasets/git/builtin/rev-list.c:777:8: note: +1, nesting level increased to 2
                else if (revs.left_right)
                     ^
/datasets/git/builtin/rev-list.c:779:8: note: +1, nesting level increased to 2
                else if (revs.cherry_mark)
                     ^
/datasets/git/builtin/rev-list.c:781:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/rev-list.c:785:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (show_disk_usage)
        ^
/datasets/git/builtin/rev-list.c:512:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/rev-list.c:512:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/rev-list.c:521:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc == 2 && !strcmp(argv[1], "-h"))
                                                ^
                                                 {
/datasets/git/builtin/rev-list.c:540:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 1; i < argc; i++) {
        ^
/datasets/git/builtin/rev-list.c:505:18: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
int cmd_rev_list(int argc, const char **argv, const char *prefix)
                 ^
/datasets/git/builtin/rev-list.c:540:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'argc' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 1; i < argc; i++) {
                    ^
/datasets/git/builtin/rev-list.c:548:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 1; i < argc; i++) {
        ^
/datasets/git/builtin/rev-list.c:548:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'argc' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 1; i < argc; i++) {
                    ^
/datasets/git/builtin/rev-list.c:551:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (revs.exclude_promisor_objects)
                                                          ^
                                                           {
/datasets/git/builtin/rev-list.c:553:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (parse_missing_action_value(arg))
                                                            ^
                                                             {
/datasets/git/builtin/rev-list.c:558:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (arg_missing_action)
                               ^
                                {
/datasets/git/builtin/rev-list.c:563:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&info, 0, sizeof(info));
        ^~~~~~
/datasets/git/builtin/rev-list.c:563:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&info, 0, sizeof(info));
        ^~~~~~
/datasets/git/builtin/rev-list.c:565:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs.bisect)
                        ^
                         {
/datasets/git/builtin/rev-list.c:568:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs.diffopt.flags.quick)
                                     ^
                                      {
/datasets/git/builtin/rev-list.c:569:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                info.flags |= REV_LIST_QUIET;
                ^~~~~~~~~~
/datasets/git/builtin/rev-list.c:569:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                info.flags |= REV_LIST_QUIET;
                              ^
/datasets/git/./bisect.h:25:26: note: expanded from macro 'REV_LIST_QUIET'
#define REV_LIST_QUIET          (1<<1)
                                 ^
/datasets/git/builtin/rev-list.c:570:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 1 ; i < argc; i++) {
        ^
/datasets/git/builtin/rev-list.c:570:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'argc' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 1 ; i < argc; i++) {
                     ^
/datasets/git/builtin/rev-list.c:588:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        info.flags |= BISECT_SHOW_ALL;
                        ^~~~~~~~~~
/datasets/git/builtin/rev-list.c:588:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        info.flags |= BISECT_SHOW_ALL;
                                      ^
/datasets/git/./bisect.h:24:27: note: expanded from macro 'BISECT_SHOW_ALL'
#define BISECT_SHOW_ALL         (1<<0)
                                 ^
/datasets/git/builtin/rev-list.c:618:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(arg, "--exclude-promisor-objects"))
                                                               ^
                                                                {
/datasets/git/builtin/rev-list.c:620:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (skip_prefix(arg, "--missing=", &arg))
                                                         ^
                                                          {
/datasets/git/builtin/rev-list.c:647:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                } else
                                      ^
                                       {
/datasets/git/builtin/rev-list.c:659:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        info.flags |= REV_LIST_QUIET;
                        ^~~~~~~~~~
/datasets/git/builtin/rev-list.c:659:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        info.flags |= REV_LIST_QUIET;
                                      ^
/datasets/git/./bisect.h:25:26: note: expanded from macro 'REV_LIST_QUIET'
#define REV_LIST_QUIET          (1<<1)
                                 ^
/datasets/git/builtin/rev-list.c:666:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs.commit_format != CMIT_FMT_USERFORMAT)
                                                      ^
                                                       {
/datasets/git/builtin/rev-list.c:671:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (revs.commit_format == CMIT_FMT_ONELINE || !revs.include_header)
                                                                                   ^
                                                                                    {
/datasets/git/builtin/rev-list.c:673:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/rev-list.c:676:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (revs.verbose_header)
                                     ^
                                      {
/datasets/git/builtin/rev-list.c:684:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            revs.diff)
                      ^
                       {
/datasets/git/builtin/rev-list.c:687:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs.show_notes)
                            ^
                             {
/datasets/git/builtin/rev-list.c:692:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            (revs.left_right || revs.cherry_mark))
                                                  ^
                                                   {
/datasets/git/builtin/rev-list.c:698:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (bisect_list)
                        ^
                         {
/datasets/git/builtin/rev-list.c:701:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (show_progress)
                          ^
                           {
/datasets/git/builtin/rev-list.c:705:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!try_bitmap_count(&revs, filter_provided_objects))
                                                                      ^
                                                                       {
/datasets/git/builtin/rev-list.c:707:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!try_bitmap_disk_usage(&revs, filter_provided_objects))
                                                                           ^
                                                                            {
/datasets/git/builtin/rev-list.c:709:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!try_bitmap_traversal(&revs, filter_provided_objects))
                                                                          ^
                                                                           {
/datasets/git/builtin/rev-list.c:713:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prepare_revision_walk(&revs))
                                         ^
                                          {
/datasets/git/builtin/rev-list.c:715:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs.tree_objects)
                              ^
                               {
/datasets/git/builtin/rev-list.c:719:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int reaches, all;
                ^~~~~~~~~~~~~~~~~
/datasets/git/builtin/rev-list.c:719:7: warning: variable 'reaches' is not initialized [cppcoreguidelines-init-variables]
                int reaches, all;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/rev-list.c:719:16: warning: variable 'all' is not initialized [cppcoreguidelines-init-variables]
                int reaches, all;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/rev-list.c:722:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (bisect_find_all)
                                    ^
                                     {
/datasets/git/builtin/rev-list.c:723:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        bisect_flags |= FIND_BISECTION_ALL;
                                        ^
/datasets/git/./bisect.h:27:31: note: expanded from macro 'FIND_BISECTION_ALL'
#define FIND_BISECTION_ALL                      (1u<<0)
                                                 ^   ~
/datasets/git/builtin/rev-list.c:725:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (revs.first_parent_only)
                                           ^
                                            {
/datasets/git/builtin/rev-list.c:726:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        bisect_flags |= FIND_BISECTION_FIRST_PARENT_ONLY;
                                        ^
/datasets/git/./bisect.h:28:43: note: expanded from macro 'FIND_BISECTION_FIRST_PARENT_ONLY'
#define FIND_BISECTION_FIRST_PARENT_ONLY        (1u<<1)
                                                 ^   ~
/datasets/git/builtin/rev-list.c:737:23: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
                struct commit_list *c;
                                    ^
                                      = NULL
/datasets/git/builtin/rev-list.c:737:23: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/rev-list.c:738:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < revs.pending.nr; i++) {
                ^
/datasets/git/builtin/rev-list.c:740:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        pending->item->flags |= NOT_USER_GIVEN;
                                                ^
/datasets/git/./revision.h:49:25: note: expanded from macro 'NOT_USER_GIVEN'
#define NOT_USER_GIVEN  (1u<<25)
                         ^   ~~
/datasets/git/builtin/rev-list.c:742:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (c = revs.commits; c; c = c->next)
                ^
/datasets/git/builtin/rev-list.c:742:26: warning: backward branch (for loop) is ID-dependent due to variable reference to 'c' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (c = revs.commits; c; c = c->next)
                                       ^
/datasets/git/builtin/rev-list.c:742:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (c = revs.commits; c; c = c->next)
                                                      ^
                                                       {
/datasets/git/builtin/rev-list.c:743:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        c->item->object.flags |= NOT_USER_GIVEN;
                                                 ^
/datasets/git/./revision.h:49:25: note: expanded from macro 'NOT_USER_GIVEN'
#define NOT_USER_GIVEN  (1u<<25)
                         ^   ~~
/datasets/git/builtin/rev-list.c:746:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (arg_print_omitted)
                              ^
                               {
/datasets/git/builtin/rev-list.c:747:33: warning: performing an implicit widening conversion to type 'size_t' (aka 'unsigned long') of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                oidset_init(&omitted_objects, DEFAULT_OIDSET_SIZE);
                                              ^
/datasets/git/builtin/rev-list.c:83:34: note: expanded from macro 'DEFAULT_OIDSET_SIZE'
#define DEFAULT_OIDSET_SIZE     (16*1024)
                                 ^
/datasets/git/builtin/rev-list.c:747:33: note: make conversion explicit to silence this warning
                oidset_init(&omitted_objects, DEFAULT_OIDSET_SIZE);
                                              ^
/datasets/git/builtin/rev-list.c:83:34: note: expanded from macro 'DEFAULT_OIDSET_SIZE'
#define DEFAULT_OIDSET_SIZE     (16*1024)
                                 ^~~~~~~
/datasets/git/builtin/rev-list.c:747:33: note: perform multiplication in a wider type
                oidset_init(&omitted_objects, DEFAULT_OIDSET_SIZE);
                                              ^
/datasets/git/builtin/rev-list.c:83:34: note: expanded from macro 'DEFAULT_OIDSET_SIZE'
#define DEFAULT_OIDSET_SIZE     (16*1024)
                                 ^~
/datasets/git/builtin/rev-list.c:748:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (arg_missing_action == MA_PRINT)
                                           ^
                                            {
/datasets/git/builtin/rev-list.c:749:33: warning: performing an implicit widening conversion to type 'size_t' (aka 'unsigned long') of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                oidset_init(&missing_objects, DEFAULT_OIDSET_SIZE);
                                              ^
/datasets/git/builtin/rev-list.c:83:34: note: expanded from macro 'DEFAULT_OIDSET_SIZE'
#define DEFAULT_OIDSET_SIZE     (16*1024)
                                 ^
/datasets/git/builtin/rev-list.c:749:33: note: make conversion explicit to silence this warning
                oidset_init(&missing_objects, DEFAULT_OIDSET_SIZE);
                                              ^
/datasets/git/builtin/rev-list.c:83:34: note: expanded from macro 'DEFAULT_OIDSET_SIZE'
#define DEFAULT_OIDSET_SIZE     (16*1024)
                                 ^~~~~~~
/datasets/git/builtin/rev-list.c:749:33: note: perform multiplication in a wider type
                oidset_init(&missing_objects, DEFAULT_OIDSET_SIZE);
                                              ^
/datasets/git/builtin/rev-list.c:83:34: note: expanded from macro 'DEFAULT_OIDSET_SIZE'
#define DEFAULT_OIDSET_SIZE     (16*1024)
                                 ^~
/datasets/git/builtin/rev-list.c:757:21: warning: variable 'oid' is not initialized [cppcoreguidelines-init-variables]
                struct object_id *oid;
                                  ^
                                      = NULL
/datasets/git/builtin/rev-list.c:759:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while ((oid = oidset_iter_next(&iter)))
                ^
/datasets/git/builtin/rev-list.c:759:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'oid' and may cause performance degradation [altera-id-dependent-backward-branch]
                while ((oid = oidset_iter_next(&iter)))
                       ^
/datasets/git/builtin/rev-list.c:759:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while ((oid = oidset_iter_next(&iter)))
                                                       ^
                                                        {
/datasets/git/builtin/rev-list.c:765:21: warning: variable 'oid' is not initialized [cppcoreguidelines-init-variables]
                struct object_id *oid;
                                  ^
                                      = NULL
/datasets/git/builtin/rev-list.c:767:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while ((oid = oidset_iter_next(&iter)))
                ^
/datasets/git/builtin/rev-list.c:767:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'oid' and may cause performance degradation [altera-id-dependent-backward-branch]
                while ((oid = oidset_iter_next(&iter)))
                       ^
/datasets/git/builtin/rev-list.c:767:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while ((oid = oidset_iter_next(&iter)))
                                                       ^
                                                        {
/datasets/git/builtin/rev-list.c:775:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (revs.left_right && revs.cherry_mark)
                                                        ^
                                                         {
/datasets/git/builtin/rev-list.c:777:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (revs.left_right)
                                         ^
                                          {
/datasets/git/builtin/rev-list.c:779:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (revs.cherry_mark)
                                          ^
                                           {
/datasets/git/builtin/rev-list.c:781:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/rev-list.c:785:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (show_disk_usage)
                            ^
                             {
/datasets/git/builtin/rev-parse.c:8:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "builtin.h"
/datasets/git/builtin/rev-parse.c:21:1: warning: replace macro with enum [modernize-macro-to-enum]
#define DO_REVS         1
^~~~~~~~
                =        ,
/datasets/git/builtin/rev-parse.c:21:9: warning: macro 'DO_REVS' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define DO_REVS         1
        ^
/datasets/git/builtin/rev-parse.c:22:9: warning: macro 'DO_NOREV' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define DO_NOREV        2
        ^
/datasets/git/builtin/rev-parse.c:23:9: warning: macro 'DO_FLAGS' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define DO_FLAGS        4
        ^
/datasets/git/builtin/rev-parse.c:24:9: warning: macro 'DO_NONFLAGS' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define DO_NONFLAGS     8
        ^
/datasets/git/builtin/rev-parse.c:25:12: warning: variable 'filter' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int filter = ~0;
           ^
/datasets/git/builtin/rev-parse.c:25:21: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
static int filter = ~0;
                    ^~
/datasets/git/builtin/rev-parse.c:27:20: warning: variable 'def' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *def;
                   ^
/datasets/git/builtin/rev-parse.c:29:1: warning: replace macro with enum [modernize-macro-to-enum]
#define NORMAL 0
^~~~~~~~
               =,
/datasets/git/builtin/rev-parse.c:29:9: warning: macro 'NORMAL' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define NORMAL 0
        ^
/datasets/git/builtin/rev-parse.c:30:9: warning: macro 'REVERSED' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define REVERSED 1
        ^
/datasets/git/builtin/rev-parse.c:31:12: warning: variable 'show_type' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int show_type = NORMAL;
           ^
/datasets/git/builtin/rev-parse.c:35:12: warning: variable 'symbolic' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int symbolic;
           ^
/datasets/git/builtin/rev-parse.c:36:12: warning: variable 'abbrev' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int abbrev;
           ^
/datasets/git/builtin/rev-parse.c:37:12: warning: variable 'abbrev_ref' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int abbrev_ref;
           ^
/datasets/git/builtin/rev-parse.c:38:12: warning: variable 'abbrev_ref_strict' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int abbrev_ref_strict;
           ^
/datasets/git/builtin/rev-parse.c:39:12: warning: variable 'output_sq' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int output_sq;
           ^
/datasets/git/builtin/rev-parse.c:41:12: warning: variable 'stuck_long' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int stuck_long;
           ^
/datasets/git/builtin/rev-parse.c:42:30: warning: variable 'ref_excludes' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct ref_exclusions ref_excludes = REF_EXCLUSIONS_INIT;
                             ^
/datasets/git/builtin/rev-parse.c:82:15: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        const char **p = rev_args;
                     ^
/datasets/git/builtin/rev-parse.c:85:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((*arg == '-') && isdigit(arg[1]))
                             ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/builtin/rev-parse.c:85:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((*arg == '-') && isdigit(arg[1]))
                                             ^
                                              {
/datasets/git/builtin/rev-parse.c:88:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/builtin/rev-parse.c:90:7: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
                int len;
                    ^
                        = 0
/datasets/git/builtin/rev-parse.c:91:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!str)
                         ^
                          {
/datasets/git/builtin/rev-parse.c:93:9: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                len = strlen(str);
                      ^
/datasets/git/builtin/rev-parse.c:95:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    (str[len-1] == '=' && !strncmp(arg, str, len)))
                                                                   ^
                                                                    {
/datasets/git/builtin/rev-parse.c:104:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int sq = '\'', ch;
                ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rev-parse.c:104:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/builtin/rev-parse.c:104:7: warning: variable name 'sq' is too short, expected at least 3 characters [readability-identifier-length]
                int sq = '\'', ch;
                    ^
/datasets/git/builtin/rev-parse.c:104:18: warning: variable 'ch' is not initialized [cppcoreguidelines-init-variables]
                int sq = '\'', ch;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/rev-parse.c:104:18: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/rev-parse.c:107:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while ((ch = *arg++)) {
                ^
/datasets/git/builtin/rev-parse.c:107:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'ch' and may cause performance degradation [altera-id-dependent-backward-branch]
                while ((ch = *arg++)) {
                       ^
/datasets/git/builtin/rev-parse.c:107:16: warning: 'signed char' to 'int' conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse,cert-str34-c]
                while ((ch = *arg++)) {
                             ^
/datasets/git/builtin/rev-parse.c:108:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ch == sq)
                                     ^
                                      {
/datasets/git/builtin/rev-parse.c:109:5: warning: the value returned by this function should be used [cert-err33-c]
                                fputs("'\\'", stdout);
                                ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rev-parse.c:109:5: note: cast the expression to void to silence this warning
/datasets/git/builtin/rev-parse.c:115:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/rev-parse.c:122:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (type != show_type)
                              ^
                               {
/datasets/git/builtin/rev-parse.c:130:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(filter & DO_REVS))
              ^~~~~~
/datasets/git/builtin/rev-parse.c:130:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(filter & DO_REVS))
                                ^
                                 {
/datasets/git/builtin/rev-parse.c:137:10: warning: variable 'full' is not initialized [cppcoreguidelines-init-variables]
                        char *full;
                              ^
                                   = NULL
/datasets/git/builtin/rev-parse.c:139:27: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        switch (dwim_ref(name, strlen(name), &discard, &full, 0)) {
                                               ^
/datasets/git/builtin/rev-parse.c:150:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (abbrev_ref)
                                               ^
                                                {
/datasets/git/builtin/rev-parse.c:164:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (abbrev)
                        ^
                         {
/datasets/git/builtin/rev-parse.c:166:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/rev-parse.c:173:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(filter & DO_FLAGS))
              ^~~~~~
/datasets/git/builtin/rev-parse.c:173:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(filter & DO_FLAGS))
                                 ^
                                  {
/datasets/git/builtin/rev-parse.c:175:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (filter & (is_rev_argument(arg) ? DO_REVS : DO_NOREV)) {
            ^~~~~~
/datasets/git/builtin/rev-parse.c:184:14: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
        const char *s = def;
                    ^
/datasets/git/builtin/rev-parse.c:201:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ref_excluded(&ref_excludes, refname))
                                                 ^
                                                  {
/datasets/git/builtin/rev-parse.c:214:59: warning: parameter 'cb_data' is unused [misc-unused-parameters]
static int show_abbrev(const struct object_id *oid, void *cb_data)
                                                          ^
/datasets/git/builtin/rev-parse.c:222:8: warning: variable 'buffer' is not initialized [cppcoreguidelines-init-variables]
        char *buffer;
              ^
                     = NULL
/datasets/git/builtin/rev-parse.c:225:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((filter & (DO_FLAGS | DO_REVS)) != (DO_FLAGS | DO_REVS))
             ^~~~~~
/datasets/git/builtin/rev-parse.c:225:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((filter & (DO_FLAGS | DO_REVS)) != (DO_FLAGS | DO_REVS))
                       ^
/datasets/git/builtin/rev-parse.c:23:18: note: expanded from macro 'DO_FLAGS'
#define DO_FLAGS        4
                        ^
/datasets/git/builtin/rev-parse.c:225:42: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((filter & (DO_FLAGS | DO_REVS)) != (DO_FLAGS | DO_REVS))
                                                ^
/datasets/git/builtin/rev-parse.c:23:18: note: expanded from macro 'DO_FLAGS'
#define DO_FLAGS        4
                        ^
/datasets/git/builtin/rev-parse.c:225:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((filter & (DO_FLAGS | DO_REVS)) != (DO_FLAGS | DO_REVS))
                                                                    ^
                                                                     {
/datasets/git/builtin/rev-parse.c:235:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((filter & (DO_NONFLAGS|DO_NOREV)) == (DO_NONFLAGS|DO_NOREV)) {
             ^~~~~~
/datasets/git/builtin/rev-parse.c:235:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((filter & (DO_NONFLAGS|DO_NOREV)) == (DO_NONFLAGS|DO_NOREV)) {
                       ^
/datasets/git/builtin/rev-parse.c:24:21: note: expanded from macro 'DO_NONFLAGS'
#define DO_NONFLAGS     8
                        ^
/datasets/git/builtin/rev-parse.c:235:44: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((filter & (DO_NONFLAGS|DO_NOREV)) == (DO_NONFLAGS|DO_NOREV)) {
                                                  ^
/datasets/git/builtin/rev-parse.c:24:21: note: expanded from macro 'DO_NONFLAGS'
#define DO_NONFLAGS     8
                        ^
/datasets/git/builtin/rev-parse.c:241:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/builtin/rev-parse.c:250:8: warning: variable 'dotdot' is not initialized [cppcoreguidelines-init-variables]
        char *dotdot;
              ^
                     = NULL
/datasets/git/builtin/rev-parse.c:253:14: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
        const char *end;
                    ^
                        = NULL
/datasets/git/builtin/rev-parse.c:254:14: warning: variable 'start' is not initialized [cppcoreguidelines-init-variables]
        const char *start;
                    ^
                          = NULL
/datasets/git/builtin/rev-parse.c:255:6: warning: variable 'symmetric' is not initialized [cppcoreguidelines-init-variables]
        int symmetric;
            ^
                      = 0
/datasets/git/builtin/rev-parse.c:258:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if (!(dotdot = strstr(arg, "..")))
              ^
/datasets/git/builtin/rev-parse.c:258:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/builtin/rev-parse.c:258:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/builtin/rev-parse.c:258:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(dotdot = strstr(arg, "..")))
                                          ^
                                           {
/datasets/git/builtin/rev-parse.c:267:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!*end)
                  ^
                   {
/datasets/git/builtin/rev-parse.c:269:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (dotdot == arg)
                          ^
                           {
/datasets/git/builtin/rev-parse.c:286:24: warning: variable 'exclude' is not initialized [cppcoreguidelines-init-variables]
                        struct commit_list *exclude;
                                            ^
                                                    = NULL
/datasets/git/builtin/rev-parse.c:287:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        struct commit *a, *b;
                        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rev-parse.c:286:4: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                        struct commit_list *exclude;
                        ^
/datasets/git/builtin/rev-parse.c:287:19: warning: variable 'a' is not initialized [cppcoreguidelines-init-variables]
                        struct commit *a, *b;
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/rev-parse.c:287:19: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/rev-parse.c:287:23: warning: variable 'b' is not initialized [cppcoreguidelines-init-variables]
                        struct commit *a, *b;
                                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/rev-parse.c:287:23: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/rev-parse.c:295:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (exclude) {
                        ^
/datasets/git/builtin/rev-parse.c:295:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'exclude' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (exclude) {
                               ^
/datasets/git/builtin/rev-parse.c:307:12: warning: function 'try_parent_shorthands' has cognitive complexity of 27 (threshold 25) [readability-function-cognitive-complexity]
static int try_parent_shorthands(const char *arg)
           ^
/datasets/git/builtin/rev-parse.c:318:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((dotdot = strstr(arg, "^!"))) {
        ^
/datasets/git/builtin/rev-parse.c:320:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (dotdot[2])
                ^
/datasets/git/builtin/rev-parse.c:322:9: note: +1, nesting level increased to 1
        } else if ((dotdot = strstr(arg, "^@"))) {
               ^
/datasets/git/builtin/rev-parse.c:324:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (dotdot[2])
                ^
/datasets/git/builtin/rev-parse.c:326:9: note: +1, nesting level increased to 1
        } else if ((dotdot = strstr(arg, "^-"))) {
               ^
/datasets/git/builtin/rev-parse.c:330:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (dotdot[2]) {
                ^
/datasets/git/builtin/rev-parse.c:333:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (*end != '\0' || !exclude_parent)
                        ^
/datasets/git/builtin/rev-parse.c:333:21: note: +1
                        if (*end != '\0' || !exclude_parent)
                                         ^
/datasets/git/builtin/rev-parse.c:336:4: note: +1, nesting level increased to 1
        } else
          ^
/datasets/git/builtin/rev-parse.c:340:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (get_oid_committish(arg, &oid) ||
        ^
/datasets/git/builtin/rev-parse.c:340:36: note: +1
        if (get_oid_committish(arg, &oid) ||
                                          ^
/datasets/git/builtin/rev-parse.c:346:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (exclude_parent &&
        ^
/datasets/git/builtin/rev-parse.c:346:21: note: +1
        if (exclude_parent &&
                           ^
/datasets/git/builtin/rev-parse.c:352:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (include_rev)
        ^
/datasets/git/builtin/rev-parse.c:354:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (parents = commit->parents, parent_number = 1;
        ^
/datasets/git/builtin/rev-parse.c:359:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (exclude_parent && parent_number != exclude_parent)
                ^
/datasets/git/builtin/rev-parse.c:359:22: note: +1
                if (exclude_parent && parent_number != exclude_parent)
                                   ^
/datasets/git/builtin/rev-parse.c:362:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (symbolic)
                ^
/datasets/git/builtin/rev-parse.c:364:28: note: +2, including nesting penalty of 1, nesting level increased to 2
                show_rev(include_parents ? NORMAL : REVERSED,
                                         ^
/datasets/git/builtin/rev-parse.c:309:8: warning: variable 'dotdot' is not initialized [cppcoreguidelines-init-variables]
        char *dotdot;
              ^
                     = NULL
/datasets/git/builtin/rev-parse.c:311:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/builtin/rev-parse.c:312:22: warning: variable 'parents' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *parents;
                            ^
                                    = NULL
/datasets/git/builtin/rev-parse.c:313:6: warning: variable 'parent_number' is not initialized [cppcoreguidelines-init-variables]
        int parent_number;
            ^
                          = 0
/datasets/git/builtin/rev-parse.c:318:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if ((dotdot = strstr(arg, "^!"))) {
             ^
/datasets/git/builtin/rev-parse.c:318:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/builtin/rev-parse.c:318:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/builtin/rev-parse.c:320:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (dotdot[2])
                              ^
                               {
/datasets/git/builtin/rev-parse.c:322:14: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        } else if ((dotdot = strstr(arg, "^@"))) {
                    ^
/datasets/git/builtin/rev-parse.c:322:14: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/builtin/rev-parse.c:322:14: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/builtin/rev-parse.c:324:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (dotdot[2])
                              ^
                               {
/datasets/git/builtin/rev-parse.c:326:14: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        } else if ((dotdot = strstr(arg, "^-"))) {
                    ^
/datasets/git/builtin/rev-parse.c:326:14: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/builtin/rev-parse.c:326:14: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/builtin/rev-parse.c:331:10: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
                        char *end;
                              ^
                                  = NULL
/datasets/git/builtin/rev-parse.c:332:21: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        exclude_parent = strtoul(dotdot + 2, &end, 10);
                                         ^
/datasets/git/builtin/rev-parse.c:332:47: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        exclude_parent = strtoul(dotdot + 2, &end, 10);
                                                                   ^
/datasets/git/builtin/rev-parse.c:333:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (*end != '\0' || !exclude_parent)
                                                            ^
                                                             {
/datasets/git/builtin/rev-parse.c:336:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/builtin/rev-parse.c:341:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
            !(commit = lookup_commit_reference(the_repository, &oid))) {
              ^
/datasets/git/builtin/rev-parse.c:341:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/builtin/rev-parse.c:341:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/builtin/rev-parse.c:352:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (include_rev)
                        ^
                         {
/datasets/git/builtin/rev-parse.c:354:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (parents = commit->parents, parent_number = 1;
        ^
/datasets/git/builtin/rev-parse.c:355:7: warning: backward branch (for loop) is ID-dependent due to variable reference to 'parents' and may cause performance degradation [altera-id-dependent-backward-branch]
             parents;
             ^
/datasets/git/builtin/rev-parse.c:359:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (exclude_parent && parent_number != exclude_parent)
                                                                      ^
                                                                       {
/datasets/git/builtin/rev-parse.c:362:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (symbolic)
                             ^
                              {
/datasets/git/builtin/rev-parse.c:373:47: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static int parseopt_dump(const struct option *o, const char *arg, int unset)
                                              ^
/datasets/git/builtin/rev-parse.c:376:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unset)
                  ^
                   {
/datasets/git/builtin/rev-parse.c:378:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (o->short_name && (o->long_name == NULL || !stuck_long))
                                                                        ^
                                                                         {
/datasets/git/builtin/rev-parse.c:380:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/rev-parse.c:383:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!stuck_long)
                                ^
                                 {
/datasets/git/builtin/rev-parse.c:385:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (o->long_name)
                                      ^
                                       {
/datasets/git/builtin/rev-parse.c:392:43: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static const char *skipspaces(const char *s)
                                          ^
/datasets/git/builtin/rev-parse.c:394:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (isspace(*s))
        ^
/datasets/git/builtin/rev-parse.c:394:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        while (isspace(*s))
               ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/builtin/rev-parse.c:394:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (isspace(*s))
                           ^
                            {
/datasets/git/builtin/rev-parse.c:399:36: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static char *findspace(const char *s)
                                   ^
/datasets/git/builtin/rev-parse.c:401:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; *s; s++)
        ^
/datasets/git/builtin/rev-parse.c:401:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (; *s; s++)
                       ^
                        {
/datasets/git/builtin/rev-parse.c:402:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (isspace(*s))
                    ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/builtin/rev-parse.c:402:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (isspace(*s))
                                ^
                                 {
/datasets/git/builtin/rev-parse.c:407:12: warning: function 'cmd_parseopt' has cognitive complexity of 60 (threshold 25) [readability-function-cognitive-complexity]
static int cmd_parseopt(int argc, const char **argv, const char *prefix)
           ^
/datasets/git/builtin/rev-parse.c:434:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (argc < 1 || strcmp(argv[0], "--"))
        ^
/datasets/git/builtin/rev-parse.c:434:15: note: +1
        if (argc < 1 || strcmp(argv[0], "--"))
                     ^
/datasets/git/builtin/rev-parse.c:438:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (;;) {
        ^
/datasets/git/builtin/rev-parse.c:439:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (strbuf_getline(&sb, stdin) == EOF)
                ^
/datasets/git/builtin/rev-parse.c:441:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                ALLOC_GROW(usage, unb + 1, usz);
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/builtin/rev-parse.c:441:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                ALLOC_GROW(usage, unb + 1, usz);
                ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/builtin/rev-parse.c:441:3: note: +4, including nesting penalty of 3, nesting level increased to 4
                ALLOC_GROW(usage, unb + 1, usz);
                ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/builtin/rev-parse.c:441:3: note: +1, nesting level increased to 4
                ALLOC_GROW(usage, unb + 1, usz);
                ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/builtin/rev-parse.c:442:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp("--", sb.buf)) {
                ^
/datasets/git/builtin/rev-parse.c:443:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (unb < 1)
                        ^
/datasets/git/builtin/rev-parse.c:452:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (strbuf_getline(&sb, stdin) != EOF) {
        ^
/datasets/git/builtin/rev-parse.c:457:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!sb.len)
                ^
/datasets/git/builtin/rev-parse.c:460:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                ALLOC_GROW(opts, onb + 1, osz);
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/builtin/rev-parse.c:460:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                ALLOC_GROW(opts, onb + 1, osz);
                ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/builtin/rev-parse.c:460:3: note: +4, including nesting penalty of 3, nesting level increased to 4
                ALLOC_GROW(opts, onb + 1, osz);
                ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/builtin/rev-parse.c:460:3: note: +1, nesting level increased to 4
                ALLOC_GROW(opts, onb + 1, osz);
                ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/builtin/rev-parse.c:465:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!help || sb.buf == help) {
                ^
/datasets/git/builtin/rev-parse.c:465:13: note: +1
                if (!help || sb.buf == help) {
                          ^
/datasets/git/builtin/rev-parse.c:481:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!s)
                ^
/datasets/git/builtin/rev-parse.c:484:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (s == sb.buf)
                ^
/datasets/git/builtin/rev-parse.c:487:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (s - sb.buf == 1) /* short option only */
                ^
/datasets/git/builtin/rev-parse.c:489:8: note: +1, nesting level increased to 2
                else if (sb.buf[1] != ',') /* long option only */
                     ^
/datasets/git/builtin/rev-parse.c:491:3: note: +1, nesting level increased to 2
                else {
                ^
/datasets/git/builtin/rev-parse.c:497:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (s < help) {
                ^
/datasets/git/builtin/rev-parse.c:498:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        switch (*s++) {
                        ^
/datasets/git/builtin/rev-parse.c:517:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (s < help)
                ^
/datasets/git/builtin/rev-parse.c:523:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        ALLOC_GROW(opts, onb + 1, osz);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/builtin/rev-parse.c:523:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        ALLOC_GROW(opts, onb + 1, osz);
        ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/builtin/rev-parse.c:523:2: note: +3, including nesting penalty of 2, nesting level increased to 3
        ALLOC_GROW(opts, onb + 1, osz);
        ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/builtin/rev-parse.c:523:2: note: +1, nesting level increased to 3
        ALLOC_GROW(opts, onb + 1, osz);
        ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/builtin/rev-parse.c:526:19: note: +1, including nesting penalty of 0, nesting level increased to 1
                        (keep_dashdash ? PARSE_OPT_KEEP_DASHDASH : 0) |
                                       ^
/datasets/git/builtin/rev-parse.c:527:24: note: +1, including nesting penalty of 0, nesting level increased to 1
                        (stop_at_non_option ? PARSE_OPT_STOP_AT_NON_OPTION : 0) |
                                            ^
/datasets/git/builtin/rev-parse.c:409:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        static int keep_dashdash = 0, stop_at_non_option = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rev-parse.c:415:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "keep-dashdash", &keep_dashdash,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/rev-parse.c:417:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "stop-at-non-option", &stop_at_non_option,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/rev-parse.c:420:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "stuck-long", &stuck_long,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/rev-parse.c:426:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct strbuf sb = STRBUF_INIT, parsed = STRBUF_INIT;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rev-parse.c:426:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT, parsed = STRBUF_INIT;
                      ^
/datasets/git/builtin/rev-parse.c:429:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int onb = 0, osz = 0, unb = 0, usz = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rev-parse.c:434:18: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (argc < 1 || strcmp(argv[0], "--"))
                        ^
                                              != 0
/datasets/git/builtin/rev-parse.c:434:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc < 1 || strcmp(argv[0], "--"))
                                              ^
                                               {
/datasets/git/builtin/rev-parse.c:439:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strbuf_getline(&sb, stdin) == EOF)
                                                      ^
                                                       {
/datasets/git/builtin/rev-parse.c:441:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                ALLOC_GROW(usage, unb + 1, usz);
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/builtin/rev-parse.c:443:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (unb < 1)
                                    ^
                                     {
/datasets/git/builtin/rev-parse.c:452:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'sb' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (strbuf_getline(&sb, stdin) != EOF) {
               ^
/datasets/git/builtin/rev-parse.c:453:15: warning: variable 's' is not initialized [cppcoreguidelines-init-variables]
                const char *s;
                            ^
                              = NULL
/datasets/git/builtin/rev-parse.c:453:15: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/rev-parse.c:454:9: warning: variable 'help' is not initialized [cppcoreguidelines-init-variables]
                char *help;
                      ^
                           = NULL
/datasets/git/builtin/rev-parse.c:455:18: warning: variable 'o' is not initialized [cppcoreguidelines-init-variables]
                struct option *o;
                               ^
                                 = NULL
/datasets/git/builtin/rev-parse.c:455:18: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/rev-parse.c:457:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!sb.len)
                            ^
                             {
/datasets/git/builtin/rev-parse.c:460:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                ALLOC_GROW(opts, onb + 1, osz);
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/builtin/rev-parse.c:461:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(opts + onb, 0, sizeof(opts[onb]));
                ^~~~~~
/datasets/git/builtin/rev-parse.c:461:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(opts + onb, 0, sizeof(opts[onb]));
                ^~~~~~
/datasets/git/builtin/rev-parse.c:481:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!s)
                       ^
                        {
/datasets/git/builtin/rev-parse.c:484:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (s == sb.buf)
                                ^
                                 {
/datasets/git/builtin/rev-parse.c:487:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (s - sb.buf == 1) /* short option only */
                                    ^
                                     {
/datasets/git/builtin/rev-parse.c:488:20: warning: 'signed char' to 'int' conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse,cert-str34-c]
                        o->short_name = *sb.buf;
                                        ^
/datasets/git/builtin/rev-parse.c:489:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (sb.buf[1] != ',') /* long option only */
                                          ^
                                           {
/datasets/git/builtin/rev-parse.c:492:20: warning: 'signed char' to 'int' conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse,cert-str34-c]
                        o->short_name = *sb.buf;
                                        ^
/datasets/git/builtin/rev-parse.c:497:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (s < help) {
                ^
/datasets/git/builtin/rev-parse.c:497:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 's' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (s < help) {
                       ^
/datasets/git/builtin/rev-parse.c:500:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                o->flags &= ~PARSE_OPT_NOARG;
                                ^           ~~~~~~~~~~~~~~~~
/datasets/git/builtin/rev-parse.c:500:17: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                                o->flags &= ~PARSE_OPT_NOARG;
                                            ^~~~~~~~~~~~~~~~
/datasets/git/builtin/rev-parse.c:503:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                o->flags &= ~PARSE_OPT_NOARG;
                                ^           ~~~~~~~~~~~~~~~~
/datasets/git/builtin/rev-parse.c:503:17: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                                o->flags &= ~PARSE_OPT_NOARG;
                                            ^~~~~~~~~~~~~~~~
/datasets/git/builtin/rev-parse.c:504:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                o->flags |= PARSE_OPT_OPTARG;
                                ^           ~~~~~~~~~~~~~~~~
/datasets/git/builtin/rev-parse.c:507:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                o->flags |= PARSE_OPT_NONEG;
                                ^           ~~~~~~~~~~~~~~~
/datasets/git/builtin/rev-parse.c:510:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                o->flags |= PARSE_OPT_HIDDEN;
                                ^           ~~~~~~~~~~~~~~~~
/datasets/git/builtin/rev-parse.c:517:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (s < help)
                             ^
                              {
/datasets/git/builtin/rev-parse.c:523:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(opts, onb + 1, osz);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/builtin/rev-parse.c:524:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(opts + onb, 0, sizeof(opts[onb]));
        ^~~~~~
/datasets/git/builtin/rev-parse.c:524:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(opts + onb, 0, sizeof(opts[onb]));
        ^~~~~~
/datasets/git/builtin/rev-parse.c:525:2: warning: Value stored to 'argc' is never read [clang-analyzer-deadcode.DeadStores]
        argc = parse_options(argc, argv, prefix, opts, usage,
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rev-parse.c:525:2: note: Value stored to 'argc' is never read
        argc = parse_options(argc, argv, prefix, opts, usage,
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rev-parse.c:526:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        (keep_dashdash ? PARSE_OPT_KEEP_DASHDASH : 0) |
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rev-parse.c:540:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc)
                 ^
                  {
/datasets/git/builtin/rev-parse.c:550:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (quiet)
                  ^
                   {
/datasets/git/builtin/rev-parse.c:551:3: warning: function is not thread safe [concurrency-mt-unsafe]
                exit(1);
                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/rev-parse.c:552:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/rev-parse.c:584:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pattern)
                    ^
                     {
/datasets/git/builtin/rev-parse.c:586:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/rev-parse.c:622:81: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!prefix && (format != FORMAT_DEFAULT || def != DEFAULT_RELATIVE_IF_SHARED))
                                                                                       ^
                                                                                        {
/datasets/git/builtin/rev-parse.c:634:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                struct strbuf buf = STRBUF_INIT, realbuf = STRBUF_INIT, prefixbuf = STRBUF_INIT;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rev-parse.c:660:5: warning: function 'cmd_rev_parse' has cognitive complexity of 377 (threshold 25) [readability-function-cognitive-complexity]
int cmd_rev_parse(int argc, const char **argv, const char *prefix)
    ^
/datasets/git/builtin/rev-parse.c:675:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (argc > 1 && !strcmp("--parseopt", argv[1]))
        ^
/datasets/git/builtin/rev-parse.c:675:15: note: +1
        if (argc > 1 && !strcmp("--parseopt", argv[1]))
                     ^
/datasets/git/builtin/rev-parse.c:678:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (argc > 1 && !strcmp("--sq-quote", argv[1]))
        ^
/datasets/git/builtin/rev-parse.c:678:15: note: +1
        if (argc > 1 && !strcmp("--sq-quote", argv[1]))
                     ^
/datasets/git/builtin/rev-parse.c:681:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (argc > 1 && !strcmp("-h", argv[1]))
        ^
/datasets/git/builtin/rev-parse.c:681:15: note: +1
        if (argc > 1 && !strcmp("-h", argv[1]))
                     ^
/datasets/git/builtin/rev-parse.c:684:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 1; i < argc; i++) {
        ^
/datasets/git/builtin/rev-parse.c:685:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(argv[i], "--")) {
                ^
/datasets/git/builtin/rev-parse.c:692:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (argc == 1) {
        ^
/datasets/git/builtin/rev-parse.c:698:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 1; i < argc; i++) {
        ^
/datasets/git/builtin/rev-parse.c:701:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (as_is) {
                ^
/datasets/git/builtin/rev-parse.c:702:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (show_file(arg, output_prefix) && as_is < 2)
                        ^
/datasets/git/builtin/rev-parse.c:702:38: note: +1
                        if (show_file(arg, output_prefix) && as_is < 2)
                                                          ^
/datasets/git/builtin/rev-parse.c:707:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!seen_end_of_options) {
                ^
/datasets/git/builtin/rev-parse.c:708:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!strcmp(arg, "--local-env-vars")) {
                        ^
/datasets/git/builtin/rev-parse.c:710:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                for (i = 0; local_repo_env[i]; i++)
                                ^
/datasets/git/builtin/rev-parse.c:714:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!strcmp(arg, "--resolve-git-dir")) {
                        ^
/datasets/git/builtin/rev-parse.c:716:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!gitdir)
                                ^
/datasets/git/builtin/rev-parse.c:719:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!gitdir)
                                ^
/datasets/git/builtin/rev-parse.c:727:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!did_repo_setup) {
                ^
/datasets/git/builtin/rev-parse.c:736:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(arg, "--")) {
                ^
/datasets/git/builtin/rev-parse.c:739:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (filter & (DO_FLAGS | DO_REVS))
                        ^
/datasets/git/builtin/rev-parse.c:744:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!seen_end_of_options && *arg == '-') {
                ^
/datasets/git/builtin/rev-parse.c:744:28: note: +1
                if (!seen_end_of_options && *arg == '-') {
                                         ^
/datasets/git/builtin/rev-parse.c:745:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!strcmp(arg, "--git-path")) {
                        ^
/datasets/git/builtin/rev-parse.c:746:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!argv[i + 1])
                                ^
/datasets/git/builtin/rev-parse.c:755:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!strcmp(arg,"-n")) {
                        ^
/datasets/git/builtin/rev-parse.c:756:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (++i >= argc)
                                ^
/datasets/git/builtin/rev-parse.c:758:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if ((filter & DO_FLAGS) && (filter & DO_REVS)) {
                                ^
/datasets/git/builtin/rev-parse.c:758:29: note: +1
                                if ((filter & DO_FLAGS) && (filter & DO_REVS)) {
                                                        ^
/datasets/git/builtin/rev-parse.c:764:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (starts_with(arg, "-n")) {
                        ^
/datasets/git/builtin/rev-parse.c:765:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if ((filter & DO_FLAGS) && (filter & DO_REVS))
                                ^
/datasets/git/builtin/rev-parse.c:765:29: note: +1
                                if ((filter & DO_FLAGS) && (filter & DO_REVS))
                                                        ^
/datasets/git/builtin/rev-parse.c:769:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (opt_with_value(arg, "--path-format", &arg)) {
                        ^
/datasets/git/builtin/rev-parse.c:770:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!arg)
                                ^
/datasets/git/builtin/rev-parse.c:772:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!strcmp(arg, "absolute")) {
                                ^
/datasets/git/builtin/rev-parse.c:774:12: note: +1, nesting level increased to 4
                                } else if (!strcmp(arg, "relative")) {
                                       ^
/datasets/git/builtin/rev-parse.c:776:7: note: +1, nesting level increased to 4
                                } else {
                                  ^
/datasets/git/builtin/rev-parse.c:781:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!strcmp(arg, "--default")) {
                        ^
/datasets/git/builtin/rev-parse.c:783:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!def)
                                ^
/datasets/git/builtin/rev-parse.c:787:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!strcmp(arg, "--prefix")) {
                        ^
/datasets/git/builtin/rev-parse.c:789:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!prefix)
                                ^
/datasets/git/builtin/rev-parse.c:795:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!strcmp(arg, "--revs-only")) {
                        ^
/datasets/git/builtin/rev-parse.c:799:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!strcmp(arg, "--no-revs")) {
                        ^
/datasets/git/builtin/rev-parse.c:803:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!strcmp(arg, "--flags")) {
                        ^
/datasets/git/builtin/rev-parse.c:807:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!strcmp(arg, "--no-flags")) {
                        ^
/datasets/git/builtin/rev-parse.c:811:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!strcmp(arg, "--verify")) {
                        ^
/datasets/git/builtin/rev-parse.c:816:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!strcmp(arg, "--quiet") || !strcmp(arg, "-q")) {
                        ^
/datasets/git/builtin/rev-parse.c:816:32: note: +1
                        if (!strcmp(arg, "--quiet") || !strcmp(arg, "-q")) {
                                                    ^
/datasets/git/builtin/rev-parse.c:821:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (opt_with_value(arg, "--short", &arg)) {
                        ^
/datasets/git/builtin/rev-parse.c:825:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!arg)
                                ^
/datasets/git/builtin/rev-parse.c:828:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (abbrev < MINIMUM_ABBREV)
                                ^
/datasets/git/builtin/rev-parse.c:830:10: note: +1, nesting level increased to 4
                                else if (hexsz <= abbrev)
                                     ^
/datasets/git/builtin/rev-parse.c:834:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!strcmp(arg, "--sq")) {
                        ^
/datasets/git/builtin/rev-parse.c:838:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!strcmp(arg, "--not")) {
                        ^
/datasets/git/builtin/rev-parse.c:842:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!strcmp(arg, "--symbolic")) {
                        ^
/datasets/git/builtin/rev-parse.c:846:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!strcmp(arg, "--symbolic-full-name")) {
                        ^
/datasets/git/builtin/rev-parse.c:850:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (opt_with_value(arg, "--abbrev-ref", &arg)) {
                        ^
/datasets/git/builtin/rev-parse.c:853:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (arg) {
                                ^
/datasets/git/builtin/rev-parse.c:854:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (!strcmp(arg, "strict"))
                                        ^
/datasets/git/builtin/rev-parse.c:856:11: note: +1, nesting level increased to 5
                                        else if (!strcmp(arg, "loose"))
                                             ^
/datasets/git/builtin/rev-parse.c:858:6: note: +1, nesting level increased to 5
                                        else
                                        ^
/datasets/git/builtin/rev-parse.c:864:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!strcmp(arg, "--all")) {
                        ^
/datasets/git/builtin/rev-parse.c:869:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (skip_prefix(arg, "--disambiguate=", &arg)) {
                        ^
/datasets/git/builtin/rev-parse.c:873:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!strcmp(arg, "--bisect")) {
                        ^
/datasets/git/builtin/rev-parse.c:878:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (opt_with_value(arg, "--branches", &arg)) {
                        ^
/datasets/git/builtin/rev-parse.c:879:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (ref_excludes.hidden_refs_configured)
                                ^
/datasets/git/builtin/rev-parse.c:884:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (opt_with_value(arg, "--tags", &arg)) {
                        ^
/datasets/git/builtin/rev-parse.c:885:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (ref_excludes.hidden_refs_configured)
                                ^
/datasets/git/builtin/rev-parse.c:890:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (skip_prefix(arg, "--glob=", &arg)) {
                        ^
/datasets/git/builtin/rev-parse.c:894:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (opt_with_value(arg, "--remotes", &arg)) {
                        ^
/datasets/git/builtin/rev-parse.c:895:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (ref_excludes.hidden_refs_configured)
                                ^
/datasets/git/builtin/rev-parse.c:900:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (skip_prefix(arg, "--exclude=", &arg)) {
                        ^
/datasets/git/builtin/rev-parse.c:904:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (skip_prefix(arg, "--exclude-hidden=", &arg)) {
                        ^
/datasets/git/builtin/rev-parse.c:908:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!strcmp(arg, "--show-toplevel")) {
                        ^
/datasets/git/builtin/rev-parse.c:910:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (work_tree)
                                ^
/datasets/git/builtin/rev-parse.c:912:5: note: +1, nesting level increased to 4
                                else
                                ^
/datasets/git/builtin/rev-parse.c:916:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!strcmp(arg, "--show-superproject-working-tree")) {
                        ^
/datasets/git/builtin/rev-parse.c:918:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (get_superproject_working_tree(&superproject))
                                ^
/datasets/git/builtin/rev-parse.c:923:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!strcmp(arg, "--show-prefix")) {
                        ^
/datasets/git/builtin/rev-parse.c:924:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (prefix)
                                ^
/datasets/git/builtin/rev-parse.c:926:5: note: +1, nesting level increased to 4
                                else
                                ^
/datasets/git/builtin/rev-parse.c:930:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!strcmp(arg, "--show-cdup")) {
                        ^
/datasets/git/builtin/rev-parse.c:932:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!is_inside_work_tree()) {
                                ^
/datasets/git/builtin/rev-parse.c:935:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (work_tree)
                                        ^
/datasets/git/builtin/rev-parse.c:939:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                while (pfx) {
                                ^
/datasets/git/builtin/rev-parse.c:941:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (pfx) {
                                        ^
/datasets/git/builtin/rev-parse.c:949:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!strcmp(arg, "--git-dir") ||
                        ^
/datasets/git/builtin/rev-parse.c:949:34: note: +1
                        if (!strcmp(arg, "--git-dir") ||
                                                      ^
/datasets/git/builtin/rev-parse.c:955:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (arg[2] == 'g') {    /* --git-dir */
                                ^
/datasets/git/builtin/rev-parse.c:956:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (gitdir) {
                                        ^
/datasets/git/builtin/rev-parse.c:960:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (!prefix) {
                                        ^
/datasets/git/builtin/rev-parse.c:964:7: note: +1, nesting level increased to 4
                                } else {                /* --absolute-git-dir */
                                  ^
/datasets/git/builtin/rev-parse.c:966:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (!gitdir && !prefix)
                                        ^
/datasets/git/builtin/rev-parse.c:966:18: note: +1
                                        if (!gitdir && !prefix)
                                                    ^
/datasets/git/builtin/rev-parse.c:968:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (gitdir) {
                                        ^
/datasets/git/builtin/rev-parse.c:979:65: note: +4, including nesting penalty of 3, nesting level increased to 4
                                strbuf_addf(&buf, "%s%s.git", cwd, len && cwd[len-1] != '/' ? "/" : "");
                                                                                            ^
/datasets/git/builtin/rev-parse.c:979:44: note: +1
                                strbuf_addf(&buf, "%s%s.git", cwd, len && cwd[len-1] != '/' ? "/" : "");
                                                                       ^
/datasets/git/builtin/rev-parse.c:984:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!strcmp(arg, "--git-common-dir")) {
                        ^
/datasets/git/builtin/rev-parse.c:988:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!strcmp(arg, "--is-inside-git-dir")) {
                        ^
/datasets/git/builtin/rev-parse.c:989:40: note: +4, including nesting penalty of 3, nesting level increased to 4
                                printf("%s\n", is_inside_git_dir() ? "true"
                                                                   ^
/datasets/git/builtin/rev-parse.c:993:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!strcmp(arg, "--is-inside-work-tree")) {
                        ^
/datasets/git/builtin/rev-parse.c:994:42: note: +4, including nesting penalty of 3, nesting level increased to 4
                                printf("%s\n", is_inside_work_tree() ? "true"
                                                                     ^
/datasets/git/builtin/rev-parse.c:998:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!strcmp(arg, "--is-bare-repository")) {
                        ^
/datasets/git/builtin/rev-parse.c:999:41: note: +4, including nesting penalty of 3, nesting level increased to 4
                                printf("%s\n", is_bare_repository() ? "true"
                                                                    ^
/datasets/git/builtin/rev-parse.c:1003:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!strcmp(arg, "--is-shallow-repository")) {
                        ^
/datasets/git/builtin/rev-parse.c:1005:45: note: +4, including nesting penalty of 3, nesting level increased to 4
                                                is_repository_shallow(the_repository) ? "true"
                                                                                      ^
/datasets/git/builtin/rev-parse.c:1009:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!strcmp(arg, "--shared-index-path")) {
                        ^
/datasets/git/builtin/rev-parse.c:1010:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (repo_read_index(the_repository) < 0)
                                ^
/datasets/git/builtin/rev-parse.c:1012:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (the_index.split_index) {
                                ^
/datasets/git/builtin/rev-parse.c:1019:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (skip_prefix(arg, "--since=", &arg)) {
                        ^
/datasets/git/builtin/rev-parse.c:1023:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (skip_prefix(arg, "--after=", &arg)) {
                        ^
/datasets/git/builtin/rev-parse.c:1027:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (skip_prefix(arg, "--before=", &arg)) {
                        ^
/datasets/git/builtin/rev-parse.c:1031:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (skip_prefix(arg, "--until=", &arg)) {
                        ^
/datasets/git/builtin/rev-parse.c:1035:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (opt_with_value(arg, "--show-object-format", &arg)) {
                        ^
/datasets/git/builtin/rev-parse.c:1036:27: note: +4, including nesting penalty of 3, nesting level increased to 4
                                const char *val = arg ? arg : "storage";
                                                      ^
/datasets/git/builtin/rev-parse.c:1038:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (strcmp(val, "storage") &&
                                ^
/datasets/git/builtin/rev-parse.c:1039:30: note: +1
                                    strcmp(val, "input") &&
                                                         ^
/datasets/git/builtin/rev-parse.c:1046:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!strcmp(arg, "--end-of-options")) {
                        ^
/datasets/git/builtin/rev-parse.c:1048:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (filter & (DO_FLAGS | DO_REVS))
                                ^
/datasets/git/builtin/rev-parse.c:1052:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (show_flag(arg) && verify)
                        ^
/datasets/git/builtin/rev-parse.c:1052:23: note: +1
                        if (show_flag(arg) && verify)
                                           ^
/datasets/git/builtin/rev-parse.c:1058:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (try_difference(arg))
                ^
/datasets/git/builtin/rev-parse.c:1060:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (try_parent_shorthands(arg))
                ^
/datasets/git/builtin/rev-parse.c:1064:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*arg == '^') {
                ^
/datasets/git/builtin/rev-parse.c:1068:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!get_oid_with_context(the_repository, name,
                ^
/datasets/git/builtin/rev-parse.c:1070:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (verify)
                        ^
/datasets/git/builtin/rev-parse.c:1072:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/builtin/rev-parse.c:1076:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (verify)
                ^
/datasets/git/builtin/rev-parse.c:1078:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (has_dashdash)
                ^
/datasets/git/builtin/rev-parse.c:1081:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!show_file(arg, output_prefix))
                ^
/datasets/git/builtin/rev-parse.c:1086:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (verify) {
        ^
/datasets/git/builtin/rev-parse.c:1087:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (revs_count == 1) {
                ^
/datasets/git/builtin/rev-parse.c:1090:10: note: +1, nesting level increased to 2
                } else if (revs_count == 0 && show_default())
                       ^
/datasets/git/builtin/rev-parse.c:1090:30: note: +1
                } else if (revs_count == 0 && show_default())
                                           ^
/datasets/git/builtin/rev-parse.c:1093:4: note: +1, nesting level increased to 1
        } else
          ^
/datasets/git/builtin/rev-parse.c:662:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, as_is = 0, verify = 0, quiet = 0, revs_count = 0, type = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rev-parse.c:662:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, as_is = 0, verify = 0, quiet = 0, revs_count = 0, type = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/rev-parse.c:662:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/rev-parse.c:675:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc > 1 && !strcmp("--parseopt", argv[1]))
                                                       ^
                                                        {
/datasets/git/builtin/rev-parse.c:678:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc > 1 && !strcmp("--sq-quote", argv[1]))
                                                       ^
                                                        {
/datasets/git/builtin/rev-parse.c:681:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc > 1 && !strcmp("-h", argv[1]))
                                               ^
                                                {
/datasets/git/builtin/rev-parse.c:684:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 1; i < argc; i++) {
        ^
/datasets/git/builtin/rev-parse.c:702:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (show_file(arg, output_prefix) && as_is < 2)
                                                                       ^
                                                                        {
/datasets/git/builtin/rev-parse.c:709:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                                int i;
                                    ^
                                      = 0
/datasets/git/builtin/rev-parse.c:709:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/rev-parse.c:710:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                for (i = 0; local_repo_env[i]; i++)
                                ^
/datasets/git/builtin/rev-parse.c:710:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                for (i = 0; local_repo_env[i]; i++)
                                                                   ^
                                                                    {
/datasets/git/builtin/rev-parse.c:716:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!gitdir)
                                            ^
                                             {
/datasets/git/builtin/rev-parse.c:719:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!gitdir)
                                            ^
                                             {
/datasets/git/builtin/rev-parse.c:739:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (filter & (DO_FLAGS | DO_REVS))
                            ^~~~~~
/datasets/git/builtin/rev-parse.c:739:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (filter & (DO_FLAGS | DO_REVS))
                                      ^
/datasets/git/builtin/rev-parse.c:23:18: note: expanded from macro 'DO_FLAGS'
#define DO_FLAGS        4
                        ^
/datasets/git/builtin/rev-parse.c:739:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (filter & (DO_FLAGS | DO_REVS))
                                                          ^
                                                           {
/datasets/git/builtin/rev-parse.c:746:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!argv[i + 1])
                                                 ^
                                                  {
/datasets/git/builtin/rev-parse.c:756:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (++i >= argc)
                                                ^
                                                 {
/datasets/git/builtin/rev-parse.c:758:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if ((filter & DO_FLAGS) && (filter & DO_REVS)) {
                                     ^~~~~~
/datasets/git/builtin/rev-parse.c:758:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if ((filter & DO_FLAGS) && (filter & DO_REVS)) {
                                                            ^~~~~~
/datasets/git/builtin/rev-parse.c:765:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if ((filter & DO_FLAGS) && (filter & DO_REVS))
                                     ^~~~~~
/datasets/git/builtin/rev-parse.c:765:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if ((filter & DO_FLAGS) && (filter & DO_REVS))
                                                            ^~~~~~
/datasets/git/builtin/rev-parse.c:765:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if ((filter & DO_FLAGS) && (filter & DO_REVS))
                                                                              ^
                                                                               {
/datasets/git/builtin/rev-parse.c:770:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!arg)
                                         ^
                                          {
/datasets/git/builtin/rev-parse.c:783:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!def)
                                         ^
                                          {
/datasets/git/builtin/rev-parse.c:789:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!prefix)
                                            ^
                                             {
/datasets/git/builtin/rev-parse.c:796:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                filter &= ~DO_NOREV;
                                ^~~~~~
/datasets/git/builtin/rev-parse.c:796:15: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                                filter &= ~DO_NOREV;
                                          ^
/datasets/git/builtin/rev-parse.c:800:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                filter &= ~DO_REVS;
                                ^~~~~~
/datasets/git/builtin/rev-parse.c:800:15: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                                filter &= ~DO_REVS;
                                          ^
/datasets/git/builtin/rev-parse.c:804:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                filter &= ~DO_NONFLAGS;
                                ^~~~~~
/datasets/git/builtin/rev-parse.c:804:15: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                                filter &= ~DO_NONFLAGS;
                                          ^
/datasets/git/builtin/rev-parse.c:808:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                filter &= ~DO_FLAGS;
                                ^~~~~~
/datasets/git/builtin/rev-parse.c:808:15: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                                filter &= ~DO_FLAGS;
                                          ^
/datasets/git/builtin/rev-parse.c:812:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                filter &= ~(DO_FLAGS|DO_NOREV);
                                ^~~~~~
/datasets/git/builtin/rev-parse.c:812:15: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                                filter &= ~(DO_FLAGS|DO_NOREV);
                                          ^~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rev-parse.c:812:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                filter &= ~(DO_FLAGS|DO_NOREV);
                                            ^
/datasets/git/builtin/rev-parse.c:23:18: note: expanded from macro 'DO_FLAGS'
#define DO_FLAGS        4
                        ^
/datasets/git/builtin/rev-parse.c:818:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                flags |= GET_OID_QUIETLY;
                                ^
/datasets/git/builtin/rev-parse.c:822:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                filter &= ~(DO_FLAGS|DO_NOREV);
                                ^~~~~~
/datasets/git/builtin/rev-parse.c:822:15: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                                filter &= ~(DO_FLAGS|DO_NOREV);
                                          ^~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rev-parse.c:822:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                filter &= ~(DO_FLAGS|DO_NOREV);
                                            ^
/datasets/git/builtin/rev-parse.c:23:18: note: expanded from macro 'DO_FLAGS'
#define DO_FLAGS        4
                        ^
/datasets/git/builtin/rev-parse.c:825:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!arg)
                                         ^
                                          {
/datasets/git/builtin/rev-parse.c:827:14: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                abbrev = strtoul(arg, NULL, 10);
                                         ^
/datasets/git/builtin/rev-parse.c:827:33: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                abbrev = strtoul(arg, NULL, 10);
                                                            ^
/datasets/git/builtin/rev-parse.c:828:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (abbrev < MINIMUM_ABBREV)
                                                            ^
                                                             {
/datasets/git/builtin/rev-parse.c:830:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                else if (hexsz <= abbrev)
                                                         ^
                                                          {
/datasets/git/builtin/rev-parse.c:839:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                show_type ^= REVERSED;
                                ^~~~~~~~~
/datasets/git/builtin/rev-parse.c:854:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        if (!strcmp(arg, "strict"))
                                                                   ^
                                                                    {
/datasets/git/builtin/rev-parse.c:856:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        else if (!strcmp(arg, "loose"))
                                                                       ^
                                                                        {
/datasets/git/builtin/rev-parse.c:858:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        else
                                            ^
                                             {
/datasets/git/builtin/rev-parse.c:879:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (ref_excludes.hidden_refs_configured)
                                                                        ^
                                                                         {
/datasets/git/builtin/rev-parse.c:885:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (ref_excludes.hidden_refs_configured)
                                                                        ^
                                                                         {
/datasets/git/builtin/rev-parse.c:895:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (ref_excludes.hidden_refs_configured)
                                                                        ^
                                                                         {
/datasets/git/builtin/rev-parse.c:910:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (work_tree)
                                              ^
                                               {
/datasets/git/builtin/rev-parse.c:912:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                else
                                    ^
                                     {
/datasets/git/builtin/rev-parse.c:918:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (get_superproject_working_tree(&superproject))
                                                                                 ^
                                                                                  {
/datasets/git/builtin/rev-parse.c:924:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (prefix)
                                           ^
                                            {
/datasets/git/builtin/rev-parse.c:926:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                else
                                    ^
                                     {
/datasets/git/builtin/rev-parse.c:935:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        if (work_tree)
                                                      ^
                                                       {
/datasets/git/builtin/rev-parse.c:939:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                while (pfx) {
                                ^
/datasets/git/builtin/rev-parse.c:939:12: warning: backward branch (while loop) is ID-dependent due to variable reference to 'pfx' and may cause performance degradation [altera-id-dependent-backward-branch]
                                while (pfx) {
                                       ^
/datasets/git/builtin/rev-parse.c:951:26: warning: function is not thread safe [concurrency-mt-unsafe]
                                const char *gitdir = getenv(GIT_DIR_ENVIRONMENT);
                                                     ^
/datasets/git/builtin/rev-parse.c:952:11: warning: variable 'cwd' is not initialized [cppcoreguidelines-init-variables]
                                char *cwd;
                                      ^
                                          = NULL
/datasets/git/builtin/rev-parse.c:953:9: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
                                int len;
                                    ^
                                        = 0
/datasets/git/builtin/rev-parse.c:966:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        if (!gitdir && !prefix)
                                                               ^
                                                                {
/datasets/git/builtin/rev-parse.c:977:11: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                len = strlen(cwd);
                                      ^
/datasets/git/builtin/rev-parse.c:1010:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (repo_read_index(the_repository) < 0)
                                                                        ^
                                                                         {
/datasets/git/builtin/rev-parse.c:1038:9: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                                if (strcmp(val, "storage") &&
                                    ^
                                                           != 0
/datasets/git/builtin/rev-parse.c:1040:9: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                                    strcmp(val, "output"))
                                    ^
                                                          != 0
/datasets/git/builtin/rev-parse.c:1040:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                    strcmp(val, "output"))
                                                          ^
                                                           {
/datasets/git/builtin/rev-parse.c:1048:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (filter & (DO_FLAGS | DO_REVS))
                                    ^~~~~~
/datasets/git/builtin/rev-parse.c:1048:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (filter & (DO_FLAGS | DO_REVS))
                                              ^
/datasets/git/builtin/rev-parse.c:23:18: note: expanded from macro 'DO_FLAGS'
#define DO_FLAGS        4
                        ^
/datasets/git/builtin/rev-parse.c:1048:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (filter & (DO_FLAGS | DO_REVS))
                                                                  ^
                                                                   {
/datasets/git/builtin/rev-parse.c:1052:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (show_flag(arg) && verify)
                                                     ^
                                                      {
/datasets/git/builtin/rev-parse.c:1058:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (try_difference(arg))
                                        ^
                                         {
/datasets/git/builtin/rev-parse.c:1060:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (try_parent_shorthands(arg))
                                               ^
                                                {
/datasets/git/builtin/rev-parse.c:1070:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (verify)
                                   ^
                                    {
/datasets/git/builtin/rev-parse.c:1072:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/builtin/rev-parse.c:1076:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (verify)
                           ^
                            {
/datasets/git/builtin/rev-parse.c:1078:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (has_dashdash)
                                 ^
                                  {
/datasets/git/builtin/rev-parse.c:1081:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!show_file(arg, output_prefix))
                                                   ^
                                                    {
/datasets/git/builtin/rev-parse.c:1090:5: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                } else if (revs_count == 0 && show_default())
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rev-parse.c:1090:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else if (revs_count == 0 && show_default())
                                                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/rev-parse.c:1093:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/builtin/revert.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "branch.h"
/datasets/git/builtin/revert.c:52:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unset)
                  ^
                   {
/datasets/git/builtin/revert.c:55:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(opts->xopts, opts->xopts_nr + 1, opts->xopts_alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/builtin/revert.c:64:8: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
        char *end;
              ^
                  = NULL
/datasets/git/builtin/revert.c:71:21: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        replay->mainline = strtol(arg, &end, 10);
                           ^
/datasets/git/builtin/revert.c:71:39: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        replay->mainline = strtol(arg, &end, 10);
                                             ^
/datasets/git/builtin/revert.c:72:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*end || replay->mainline <= 0)
                                          ^
                                           {
/datasets/git/builtin/revert.c:80:47: warning: parameter name 'me' is too short, expected at least 3 characters [readability-identifier-length]
static void verify_opt_compatible(const char *me, const char *base_opt, ...)
                                              ^
/datasets/git/builtin/revert.c:82:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        const char *this_opt;
        ^
/datasets/git/builtin/revert.c:82:14: warning: variable 'this_opt' is not initialized [cppcoreguidelines-init-variables]
        const char *this_opt;
                    ^
                             = NULL
/datasets/git/builtin/revert.c:83:10: warning: variable name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
        va_list ap;
                ^
/datasets/git/builtin/revert.c:86:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((this_opt = va_arg(ap, const char *))) {
        ^
/datasets/git/builtin/revert.c:86:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'this_opt' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((this_opt = va_arg(ap, const char *))) {
               ^
/datasets/git/builtin/revert.c:87:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (va_arg(ap, int))
                                    ^
                                     {
/datasets/git/builtin/revert.c:92:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (this_opt)
                     ^
                      {
/datasets/git/builtin/revert.c:96:12: warning: function 'run_sequencer' has cognitive complexity of 40 (threshold 25) [readability-function-cognitive-complexity]
static int run_sequencer(int argc, const char **argv, struct replay_opts *opts)
           ^
/datasets/git/builtin/revert.c:124:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->action == REPLAY_PICK) {
        ^
/datasets/git/builtin/revert.c:134:9: note: +1, nesting level increased to 1
        } else if (opts->action == REPLAY_REVERT) {
               ^
/datasets/git/builtin/revert.c:151:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->keep_redundant_commits)
        ^
/datasets/git/builtin/revert.c:154:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (cleanup_arg) {
        ^
/datasets/git/builtin/revert.c:160:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (cmd) {
        ^
/datasets/git/builtin/revert.c:162:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (cmd == 'q')
                ^
/datasets/git/builtin/revert.c:164:8: note: +1, nesting level increased to 2
                else if (cmd == 'c')
                     ^
/datasets/git/builtin/revert.c:166:8: note: +1, nesting level increased to 2
                else if (cmd == 's')
                     ^
/datasets/git/builtin/revert.c:168:3: note: +1, nesting level increased to 2
                else {
                ^
/datasets/git/builtin/revert.c:169:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        assert(cmd == 'a');
                        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/builtin/revert.c:169:4: note: nesting level increased to 3
                        assert(cmd == 'a');
                        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/builtin/revert.c:169:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        assert(cmd == 'a');
                        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/builtin/revert.c:169:4: note: +1, nesting level increased to 4
                        assert(cmd == 'a');
                        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/builtin/revert.c:177:34: note: +2, including nesting penalty of 1, nesting level increased to 2
                                "--strategy", opts->strategy ? 1 : 0,
                                                             ^
/datasets/git/builtin/revert.c:178:38: note: +2, including nesting penalty of 1, nesting level increased to 2
                                "--strategy-option", opts->xopts ? 1 : 0,
                                                                 ^
/datasets/git/builtin/revert.c:186:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!opts->strategy && opts->default_strategy) {
        ^
/datasets/git/builtin/revert.c:186:22: note: +1
        if (!opts->strategy && opts->default_strategy) {
                            ^
/datasets/git/builtin/revert.c:191:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->allow_ff)
        ^
/datasets/git/builtin/revert.c:199:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (cmd) {
        ^
/datasets/git/builtin/revert.c:201:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/revert.c:207:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (argc < 2)
                ^
/datasets/git/builtin/revert.c:209:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(argv[1], "-"))
                ^
/datasets/git/builtin/revert.c:216:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (argc > 1)
        ^
/datasets/git/builtin/revert.c:222:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!opts->strategy && getenv("GIT_TEST_MERGE_ALGORITHM"))
        ^
/datasets/git/builtin/revert.c:222:22: note: +1
        if (!opts->strategy && getenv("GIT_TEST_MERGE_ALGORITHM"))
                            ^
/datasets/git/builtin/revert.c:225:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (cmd == 'q') {
        ^
/datasets/git/builtin/revert.c:227:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!ret)
                ^
/datasets/git/builtin/revert.c:231:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (cmd == 'c')
        ^
/datasets/git/builtin/revert.c:233:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (cmd == 'a')
        ^
/datasets/git/builtin/revert.c:235:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (cmd == 's')
        ^
/datasets/git/builtin/revert.c:99:14: warning: variable name 'me' is too short, expected at least 3 characters [readability-identifier-length]
        const char *me = action_name(opts);
                    ^
/datasets/git/builtin/revert.c:103:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_CMDMODE(0, "quit", &cmd, N_("end revert or cherry-pick sequence"), 'q'),
                ^
/datasets/git/./parse-options.h:188:37: note: expanded from macro 'OPT_CMDMODE'
#define OPT_CMDMODE(s, l, v, h, i)  OPT_CMDMODE_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:187:16: note: expanded from macro 'OPT_CMDMODE_F'
                                      (h), PARSE_OPT_CMDMODE|PARSE_OPT_NOARG|PARSE_OPT_NONEG | (f), NULL, (i) }
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/revert.c:104:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_CMDMODE(0, "continue", &cmd, N_("resume revert or cherry-pick sequence"), 'c'),
                ^
/datasets/git/./parse-options.h:188:37: note: expanded from macro 'OPT_CMDMODE'
#define OPT_CMDMODE(s, l, v, h, i)  OPT_CMDMODE_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:187:16: note: expanded from macro 'OPT_CMDMODE_F'
                                      (h), PARSE_OPT_CMDMODE|PARSE_OPT_NOARG|PARSE_OPT_NONEG | (f), NULL, (i) }
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/revert.c:105:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_CMDMODE(0, "abort", &cmd, N_("cancel revert or cherry-pick sequence"), 'a'),
                ^
/datasets/git/./parse-options.h:188:37: note: expanded from macro 'OPT_CMDMODE'
#define OPT_CMDMODE(s, l, v, h, i)  OPT_CMDMODE_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:187:16: note: expanded from macro 'OPT_CMDMODE_F'
                                      (h), PARSE_OPT_CMDMODE|PARSE_OPT_NOARG|PARSE_OPT_NONEG | (f), NULL, (i) }
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/revert.c:106:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_CMDMODE(0, "skip", &cmd, N_("skip current commit and continue"), 's'),
                ^
/datasets/git/./parse-options.h:188:37: note: expanded from macro 'OPT_CMDMODE'
#define OPT_CMDMODE(s, l, v, h, i)  OPT_CMDMODE_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:187:16: note: expanded from macro 'OPT_CMDMODE_F'
                                      (h), PARSE_OPT_CMDMODE|PARSE_OPT_NOARG|PARSE_OPT_NONEG | (f), NULL, (i) }
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/revert.c:108:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('n', "no-commit", &opts->no_commit, N_("don't automatically commit")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/revert.c:109:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('e', "edit", &opts->edit, N_("edit the commit message")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/revert.c:110:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_NOOP_NOARG('r', NULL),
                ^
/datasets/git/./parse-options.h:215:4: note: expanded from macro 'OPT_NOOP_NOARG'
          PARSE_OPT_HIDDEN | PARSE_OPT_NOARG, parse_opt_noop_cb }
          ^~~~~~~~~~~~~~~~
/datasets/git/builtin/revert.c:111:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('s', "signoff", &opts->signoff, N_("add a Signed-off-by trailer")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/revert.c:126:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        OPT_BOOL('x', NULL, &opts->record_origin, N_("append commit name")),
                        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/revert.c:127:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        OPT_BOOL(0, "ff", &opts->allow_ff, N_("allow fast-forward")),
                        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/revert.c:128:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        OPT_BOOL(0, "allow-empty", &opts->allow_empty, N_("preserve initially empty commits")),
                        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/revert.c:129:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        OPT_BOOL(0, "allow-empty-message", &opts->allow_empty_message, N_("allow commits with empty messages")),
                        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/revert.c:130:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        OPT_BOOL(0, "keep-redundant-commits", &opts->keep_redundant_commits, N_("keep redundant, empty commits")),
                        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/revert.c:136:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        OPT_BOOL(0, "reference", &opts->commit_use_reference,
                        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/revert.c:144:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        PARSE_OPT_KEEP_ARGV0 |
                        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/revert.c:151:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->keep_redundant_commits)
                                         ^
                                          {
/datasets/git/builtin/revert.c:161:9: warning: variable 'this_operation' is not initialized [cppcoreguidelines-init-variables]
                char *this_operation;
                      ^
                                     = NULL
/datasets/git/builtin/revert.c:162:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cmd == 'q')
                               ^
                                {
/datasets/git/builtin/revert.c:164:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (cmd == 'c')
                                    ^
                                     {
/datasets/git/builtin/revert.c:166:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (cmd == 's')
                                    ^
                                     {
/datasets/git/builtin/revert.c:191:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->allow_ff)
                           ^
                            {
/datasets/git/builtin/revert.c:207:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (argc < 2)
                             ^
                              {
/datasets/git/builtin/revert.c:209:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(argv[1], "-"))
                                          ^
                                           {
/datasets/git/builtin/revert.c:211:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(&s_r_opt, 0, sizeof(s_r_opt));
                ^~~~~~
/datasets/git/builtin/revert.c:211:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(&s_r_opt, 0, sizeof(s_r_opt));
                ^~~~~~
/datasets/git/builtin/revert.c:216:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc > 1)
                     ^
                      {
/datasets/git/builtin/revert.c:222:25: warning: function is not thread safe [concurrency-mt-unsafe]
        if (!opts->strategy && getenv("GIT_TEST_MERGE_ALGORITHM"))
                               ^
/datasets/git/builtin/revert.c:222:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opts->strategy && getenv("GIT_TEST_MERGE_ALGORITHM"))
                                                                  ^
                                                                   {
/datasets/git/builtin/revert.c:223:28: warning: function is not thread safe [concurrency-mt-unsafe]
                opts->strategy = xstrdup(getenv("GIT_TEST_MERGE_ALGORITHM"));
                                         ^
/datasets/git/builtin/revert.c:227:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ret)
                         ^
                          {
/datasets/git/builtin/revert.c:231:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cmd == 'c')
                       ^
                        {
/datasets/git/builtin/revert.c:233:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cmd == 'a')
                       ^
                        {
/datasets/git/builtin/revert.c:235:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cmd == 's')
                       ^
                        {
/datasets/git/builtin/revert.c:240:57: warning: parameter 'prefix' is unused [misc-unused-parameters]
int cmd_revert(int argc, const char **argv, const char *prefix)
                                                        ^
/datasets/git/builtin/revert.c:243:6: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        int res;
            ^
                = 0
/datasets/git/builtin/revert.c:248:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (res < 0)
                    ^
                     {
/datasets/git/builtin/revert.c:250:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts.revs)
                      ^
                       {
/datasets/git/builtin/revert.c:256:62: warning: parameter 'prefix' is unused [misc-unused-parameters]
int cmd_cherry_pick(int argc, const char **argv, const char *prefix)
                                                             ^
/datasets/git/builtin/revert.c:259:6: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        int res;
            ^
                = 0
/datasets/git/builtin/revert.c:264:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (res < 0)
                    ^
                     {
/datasets/git/builtin/rm.c:9:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "cache-tree.h"
/datasets/git/builtin/rm.c:26:8: warning: accessing fields in struct '' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
static struct {
       ^
/datasets/git/builtin/rm.c:26:8: note: use "__attribute__((aligned(16)))" to align struct '' to 16 bytes
/datasets/git/builtin/rm.c:28:2: warning: accessing fields in struct '' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
        struct {
        ^
/datasets/git/builtin/rm.c:28:2: note: use "__attribute__((aligned(16)))" to align struct '' to 16 bytes
/datasets/git/builtin/rm.c:32:3: warning: variable 'list' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} list;
  ^
/datasets/git/builtin/rm.c:36:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int i = -pos - 1;
        ^
/datasets/git/builtin/rm.c:36:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = -pos - 1;
            ^
/datasets/git/builtin/rm.c:38:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((i < the_index.cache_nr) && !strcmp(the_index.cache[i]->name, path)) {
        ^
/datasets/git/builtin/rm.c:38:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((i < the_index.cache_nr) && !strcmp(the_index.cache[i]->name, path)) {
               ^
/datasets/git/builtin/rm.c:39:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce_stage(the_index.cache[i]) == 2)
                    ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/builtin/rm.c:39:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ce_stage(the_index.cache[i]) == 2)
                                                      ^
                                                       {
/datasets/git/builtin/rm.c:52:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/builtin/rm.c:52:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/rm.c:56:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < files_list->nr; i++)
                ^
/datasets/git/builtin/rm.c:56:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < files_list->nr; i++)
                                                    ^
                                                     {
/datasets/git/builtin/rm.c:60:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (advice_enabled(ADVICE_RM_HINTS))
                                                    ^
                                                     {
/datasets/git/builtin/rm.c:69:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/rm.c:69:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/rm.c:70:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < list.nr; i++) {
        ^
/datasets/git/builtin/rm.c:72:7: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
                int pos;
                    ^
                        = 0
/datasets/git/builtin/rm.c:73:29: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
                const struct cache_entry *ce;
                                          ^
                                             = NULL
/datasets/git/builtin/rm.c:73:29: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/rm.c:75:42: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                pos = index_name_pos(&the_index, name, strlen(name));
                                                       ^
/datasets/git/builtin/rm.c:78:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (pos < 0)
                                    ^
                                     {
/datasets/git/builtin/rm.c:83:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!S_ISGITLINK(ce->ce_mode) ||
                     ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/builtin/rm.c:85:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    is_empty_dir(name))
                                       ^
                                        {
/datasets/git/builtin/rm.c:88:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!submodule_uses_gitfile(name))
                                                  ^
                                                   {
/datasets/git/builtin/rm.c:93:12: warning: function 'check_local_mod' has cognitive complexity of 40 (threshold 25) [readability-function-cognitive-complexity]
static int check_local_mod(struct object_id *head, int index_only)
           ^
/datasets/git/builtin/rm.c:109:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < list.nr; i++) {
        ^
/datasets/git/builtin/rm.c:120:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (pos < 0) {
                ^
/datasets/git/builtin/rm.c:126:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (pos < 0)
                        ^
/datasets/git/builtin/rm.c:129:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!S_ISGITLINK(the_index.cache[pos]->ce_mode) ||
                        ^
/datasets/git/builtin/rm.c:129:52: note: +1
                        if (!S_ISGITLINK(the_index.cache[pos]->ce_mode) ||
                                                                        ^
/datasets/git/builtin/rm.c:135:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (lstat(ce->name, &st) < 0) {
                ^
/datasets/git/builtin/rm.c:136:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!is_missing_file_error(errno))
                        ^
/datasets/git/builtin/rm.c:141:8: note: +1, nesting level increased to 2
                else if (S_ISDIR(st.st_mode)) {
                     ^
/datasets/git/builtin/rm.c:147:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!S_ISGITLINK(ce->ce_mode))
                        ^
/datasets/git/builtin/rm.c:170:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ie_match_stat(&the_index, ce, &st, 0) ||
                ^
/datasets/git/builtin/rm.c:170:45: note: +1
                if (ie_match_stat(&the_index, ce, &st, 0) ||
                                                          ^
/datasets/git/builtin/rm.c:171:33: note: +1
                    (S_ISGITLINK(ce->ce_mode) &&
                                              ^
/datasets/git/builtin/rm.c:183:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (no_head
                ^
/datasets/git/builtin/rm.c:186:8: note: +1
                     || !oideq(&ce->oid, &oid))
                     ^
/datasets/git/builtin/rm.c:197:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (local_changes && staged_changes) {
                ^
/datasets/git/builtin/rm.c:197:21: note: +1
                if (local_changes && staged_changes) {
                                  ^
/datasets/git/builtin/rm.c:198:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!index_only || !ce_intent_to_add(ce))
                        ^
/datasets/git/builtin/rm.c:198:20: note: +1
                        if (!index_only || !ce_intent_to_add(ce))
                                        ^
/datasets/git/builtin/rm.c:201:8: note: +1, nesting level increased to 2
                else if (!index_only) {
                     ^
/datasets/git/builtin/rm.c:202:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (staged_changes)
                        ^
/datasets/git/builtin/rm.c:204:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (local_changes)
                        ^
/datasets/git/builtin/rm.c:102:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, no_head;
        ^~~~~~~~~~~~~~~
/datasets/git/builtin/rm.c:102:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, no_head;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/rm.c:102:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/rm.c:102:9: warning: variable 'no_head' is not initialized [cppcoreguidelines-init-variables]
        int i, no_head;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/rm.c:109:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < list.nr; i++) {
        ^
/datasets/git/builtin/rm.c:110:15: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                struct stat st;
                            ^
/datasets/git/builtin/rm.c:111:7: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
                int pos;
                    ^
                        = 0
/datasets/git/builtin/rm.c:112:29: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
                const struct cache_entry *ce;
                                          ^
                                             = NULL
/datasets/git/builtin/rm.c:112:29: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/rm.c:115:18: warning: variable 'mode' is not initialized [cppcoreguidelines-init-variables]
                unsigned short mode;
                               ^
                                    = 0
/datasets/git/builtin/rm.c:119:42: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                pos = index_name_pos(&the_index, name, strlen(name));
                                                       ^
/datasets/git/builtin/rm.c:126:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (pos < 0)
                                    ^
                                     {
/datasets/git/builtin/rm.c:129:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!S_ISGITLINK(the_index.cache[pos]->ce_mode) ||
                             ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/builtin/rm.c:130:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            is_empty_dir(name))
                                               ^
                                                {
/datasets/git/builtin/rm.c:136:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!is_missing_file_error(errno))
                                                          ^
                                                           {
/datasets/git/builtin/rm.c:141:3: warning: do not use 'else' after 'continue' [llvm-else-after-return,readability-else-after-return]
                else if (S_ISDIR(st.st_mode)) {
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rm.c:147:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!S_ISGITLINK(ce->ce_mode))
                             ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/builtin/rm.c:147:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!S_ISGITLINK(ce->ce_mode))
                                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/rm.c:171:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (S_ISGITLINK(ce->ce_mode) &&
                     ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/builtin/rm.c:173:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                SUBMODULE_REMOVAL_DIE_ON_ERROR |
                                ^
/datasets/git/./submodule.h:100:40: note: expanded from macro 'SUBMODULE_REMOVAL_DIE_ON_ERROR'
#define SUBMODULE_REMOVAL_DIE_ON_ERROR (1<<0)
                                       ^~~~~~
/datasets/git/builtin/rm.c:174:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                SUBMODULE_REMOVAL_IGNORE_IGNORED_UNTRACKED)))
                                ^
/datasets/git/./submodule.h:102:53: note: expanded from macro 'SUBMODULE_REMOVAL_IGNORE_IGNORED_UNTRACKED'
#define SUBMODULE_REMOVAL_IGNORE_IGNORED_UNTRACKED (1<<2)
                                                    ^
/datasets/git/builtin/rm.c:174:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                SUBMODULE_REMOVAL_IGNORE_IGNORED_UNTRACKED)))
                                                                             ^
                                                                              {
/datasets/git/builtin/rm.c:186:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                     || !oideq(&ce->oid, &oid))
                                               ^
                                                {
/datasets/git/builtin/rm.c:198:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!index_only || !ce_intent_to_add(ce))
                                            ^
/datasets/git/./refs/../cache.h:246:31: note: expanded from macro 'ce_intent_to_add'
#define ce_intent_to_add(ce) ((ce)->ce_flags & CE_INTENT_TO_ADD)
                              ^                ~~~~~~~~~~~~~~~~
/datasets/git/builtin/rm.c:198:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!index_only || !ce_intent_to_add(ce))
                                                                 ^
                                                                  {
/datasets/git/builtin/rm.c:202:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (staged_changes)
                                           ^
                                            {
/datasets/git/builtin/rm.c:204:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (local_changes)
                                          ^
                                           {
/datasets/git/builtin/rm.c:239:12: warning: variable 'show_only' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int show_only = 0, force = 0, index_only = 0, recursive = 0, quiet = 0;
           ^
/datasets/git/builtin/rm.c:239:27: warning: variable 'force' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int show_only = 0, force = 0, index_only = 0, recursive = 0, quiet = 0;
                          ^
/datasets/git/builtin/rm.c:239:38: warning: variable 'index_only' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int show_only = 0, force = 0, index_only = 0, recursive = 0, quiet = 0;
                                     ^
/datasets/git/builtin/rm.c:239:54: warning: variable 'recursive' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int show_only = 0, force = 0, index_only = 0, recursive = 0, quiet = 0;
                                                     ^
/datasets/git/builtin/rm.c:239:69: warning: variable 'quiet' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int show_only = 0, force = 0, index_only = 0, recursive = 0, quiet = 0;
                                                                    ^
/datasets/git/builtin/rm.c:240:12: warning: variable 'ignore_unmatch' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int ignore_unmatch = 0, pathspec_file_nul;
           ^
/datasets/git/builtin/rm.c:240:32: warning: variable 'pathspec_file_nul' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int ignore_unmatch = 0, pathspec_file_nul;
                               ^
/datasets/git/builtin/rm.c:241:12: warning: variable 'include_sparse' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int include_sparse;
           ^
/datasets/git/builtin/rm.c:242:14: warning: variable 'pathspec_from_file' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *pathspec_from_file;
             ^
/datasets/git/builtin/rm.c:242:14: warning: variable 'pathspec_from_file' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/rm.c:244:22: warning: variable 'builtin_rm_options' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct option builtin_rm_options[] = {
                     ^
/datasets/git/builtin/rm.c:245:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT__DRY_RUN(&show_only, N_("dry run")),
        ^
/datasets/git/./parse-options.h:366:31: note: expanded from macro 'OPT__DRY_RUN'
#define OPT__DRY_RUN(var, h)  OPT_BOOL('n', "dry-run", (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/rm.c:246:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT__QUIET(&quiet, N_("do not list removed files")),
        ^
/datasets/git/./parse-options.h:360:31: note: expanded from macro 'OPT__QUIET'
#define OPT__QUIET(var, h)    OPT_COUNTUP('q', "quiet",   (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/rm.c:247:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL( 0 , "cached",         &index_only, N_("only remove from the index")),
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/rm.c:248:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT__FORCE(&force, N_("override the up-to-date check"), PARSE_OPT_NOCOMPLETE),
        ^
/datasets/git/./parse-options.h:367:31: note: expanded from macro 'OPT__FORCE'
#define OPT__FORCE(var, h, f) OPT_COUNTUP_F('f', "force",   (var), (h), (f))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/rm.c:249:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL('r', NULL,             &recursive,  N_("allow recursive removal")),
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/rm.c:250:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL( 0 , "ignore-unmatch", &ignore_unmatch,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/rm.c:252:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "sparse", &include_sparse, N_("allow updating entries outside of the sparse-checkout cone")),
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/rm.c:254:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_PATHSPEC_FILE_NUL(&pathspec_file_nul),
        ^
/datasets/git/./parse-options.h:391:35: note: expanded from macro 'OPT_PATHSPEC_FILE_NUL'
#define OPT_PATHSPEC_FILE_NUL(v)  OPT_BOOL(0, "pathspec-file-nul", v, N_("with --pathspec-from-file, pathspec elements are separated with NUL character"))
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/rm.c:258:5: warning: function 'cmd_rm' has cognitive complexity of 87 (threshold 25) [readability-function-cognitive-complexity]
int cmd_rm(int argc, const char **argv, const char *prefix)
    ^
/datasets/git/builtin/rm.c:274:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (pathspec_from_file) {
        ^
/datasets/git/builtin/rm.c:275:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (pathspec.nr)
                ^
/datasets/git/builtin/rm.c:281:9: note: +1, nesting level increased to 1
        } else if (pathspec_file_nul) {
               ^
/datasets/git/builtin/rm.c:285:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!pathspec.nr)
        ^
/datasets/git/builtin/rm.c:288:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!index_only)
        ^
/datasets/git/builtin/rm.c:295:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (repo_read_index(the_repository) < 0)
        ^
/datasets/git/builtin/rm.c:302:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (pathspec_needs_expanded_index(&the_index, &pathspec))
        ^
/datasets/git/builtin/rm.c:305:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < the_index.cache_nr; i++) {
        ^
/datasets/git/builtin/rm.c:308:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!include_sparse &&
                ^
/datasets/git/builtin/rm.c:308:23: note: +1
                if (!include_sparse &&
                                    ^
/datasets/git/builtin/rm.c:309:29: note: +1
                    (ce_skip_worktree(ce) ||
                                          ^
/datasets/git/builtin/rm.c:312:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!ce_path_match(&the_index, ce, &pathspec, seen))
                ^
/datasets/git/builtin/rm.c:314:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                ALLOC_GROW(list.entry, list.nr + 1, list.alloc);
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/builtin/rm.c:314:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                ALLOC_GROW(list.entry, list.nr + 1, list.alloc);
                ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/builtin/rm.c:314:3: note: +4, including nesting penalty of 3, nesting level increased to 4
                ALLOC_GROW(list.entry, list.nr + 1, list.alloc);
                ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/builtin/rm.c:314:3: note: +1, nesting level increased to 4
                ALLOC_GROW(list.entry, list.nr + 1, list.alloc);
                ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/builtin/rm.c:317:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (list.entry[list.nr++].is_submodule &&
                ^
/datasets/git/builtin/rm.c:317:42: note: +1
                if (list.entry[list.nr++].is_submodule &&
                                                       ^
/datasets/git/builtin/rm.c:322:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (pathspec.nr) {
        ^
/datasets/git/builtin/rm.c:328:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < pathspec.nr; i++) {
                ^
/datasets/git/builtin/rm.c:330:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (seen[i])
                        ^
/datasets/git/builtin/rm.c:332:9: note: +1, nesting level increased to 3
                        else if (ignore_unmatch)
                             ^
/datasets/git/builtin/rm.c:334:9: note: +1, nesting level increased to 3
                        else if (!include_sparse &&
                             ^
/datasets/git/builtin/rm.c:334:29: note: +1
                        else if (!include_sparse &&
                                                 ^
/datasets/git/builtin/rm.c:337:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/builtin/rm.c:340:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!recursive && seen[i] == MATCHED_RECURSIVELY)
                        ^
/datasets/git/builtin/rm.c:340:19: note: +1
                        if (!recursive && seen[i] == MATCHED_RECURSIVELY)
                                       ^
/datasets/git/builtin/rm.c:342:19: note: +4, including nesting penalty of 3, nesting level increased to 4
                                    *original ? original : ".");
                                              ^
/datasets/git/builtin/rm.c:345:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (only_match_skip_worktree.nr) {
                ^
/datasets/git/builtin/rm.c:352:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!seen_any)
                ^
/datasets/git/builtin/rm.c:358:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!index_only)
        ^
/datasets/git/builtin/rm.c:371:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!force) {
        ^
/datasets/git/builtin/rm.c:373:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (get_oid("HEAD", &oid))
                ^
/datasets/git/builtin/rm.c:375:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (check_local_mod(&oid, index_only))
                ^
/datasets/git/builtin/rm.c:383:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < list.nr; i++) {
        ^
/datasets/git/builtin/rm.c:385:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!quiet)
                ^
/datasets/git/builtin/rm.c:388:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (remove_file_from_index(&the_index, path))
                ^
/datasets/git/builtin/rm.c:392:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (show_only)
        ^
/datasets/git/builtin/rm.c:403:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!index_only) {
        ^
/datasets/git/builtin/rm.c:406:20: note: +2, including nesting penalty of 1, nesting level increased to 2
                int flag = force ? REMOVE_DIR_PURGE_ORIGINAL_CWD : 0;
                                 ^
/datasets/git/builtin/rm.c:407:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < list.nr; i++) {
                ^
/datasets/git/builtin/rm.c:409:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (list.entry[i].is_submodule) {
                        ^
/datasets/git/builtin/rm.c:412:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (remove_dir_recursively(&buf, flag))
                                ^
/datasets/git/builtin/rm.c:416:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!remove_path_from_gitmodules(path))
                                ^
/datasets/git/builtin/rm.c:420:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!remove_path(path)) {
                        ^
/datasets/git/builtin/rm.c:424:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!removed)
                        ^
/datasets/git/builtin/rm.c:428:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (gitmodules_modified)
                ^
/datasets/git/builtin/rm.c:432:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (write_locked_index(&the_index, &lock_file,
        ^
/datasets/git/builtin/rm.c:261:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, ret = 0;
        ^~~~~~~~~~~~~~~
/datasets/git/builtin/rm.c:261:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, ret = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/rm.c:261:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/rm.c:263:8: warning: variable 'seen' is not initialized [cppcoreguidelines-init-variables]
        char *seen;
              ^
                   = NULL
/datasets/git/builtin/rm.c:267:2: warning: Value stored to 'argc' is never read [clang-analyzer-deadcode.DeadStores]
        argc = parse_options(argc, argv, prefix, builtin_rm_options,
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rm.c:267:2: note: Value stored to 'argc' is never read
        argc = parse_options(argc, argv, prefix, builtin_rm_options,
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rm.c:271:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_PREFER_CWD,
                       ^
/datasets/git/./pathspec.h:65:30: note: expanded from macro 'PATHSPEC_PREFER_CWD'
#define PATHSPEC_PREFER_CWD (1<<0) /* No args means match cwd */
                             ^
/datasets/git/builtin/rm.c:275:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pathspec.nr)
                                ^
                                 {
/datasets/git/builtin/rm.c:279:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                    PATHSPEC_PREFER_CWD,
                                    ^
/datasets/git/./pathspec.h:65:30: note: expanded from macro 'PATHSPEC_PREFER_CWD'
#define PATHSPEC_PREFER_CWD (1<<0) /* No args means match cwd */
                             ^
/datasets/git/builtin/rm.c:285:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!pathspec.nr)
                         ^
                          {
/datasets/git/builtin/rm.c:288:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!index_only)
                        ^
                         {
/datasets/git/builtin/rm.c:295:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_read_index(the_repository) < 0)
                                                ^
                                                 {
/datasets/git/builtin/rm.c:298:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        refresh_index(&the_index, REFRESH_QUIET|REFRESH_UNMERGED, &pathspec, NULL, NULL);
                                  ^
/datasets/git/./refs/../cache.h:923:42: note: expanded from macro 'REFRESH_QUIET'
#define REFRESH_QUIET                    (1 << 2) /* be quiet about it */
                                         ^~~~~~~~
/datasets/git/builtin/rm.c:298:42: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        refresh_index(&the_index, REFRESH_QUIET|REFRESH_UNMERGED, &pathspec, NULL, NULL);
                                                ^
/datasets/git/./refs/../cache.h:922:43: note: expanded from macro 'REFRESH_UNMERGED'
#define REFRESH_UNMERGED                 (1 << 1) /* allow unmerged */
                                          ^
/datasets/git/builtin/rm.c:302:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pathspec_needs_expanded_index(&the_index, &pathspec))
                                                                 ^
                                                                  {
/datasets/git/builtin/rm.c:306:29: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                const struct cache_entry *ce = the_index.cache[i];
                                          ^
/datasets/git/builtin/rm.c:309:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (ce_skip_worktree(ce) ||
                     ^
/datasets/git/./refs/../cache.h:244:31: note: expanded from macro 'ce_skip_worktree'
#define ce_skip_worktree(ce) ((ce)->ce_flags & CE_SKIP_WORKTREE)
                              ^                ~~~~~~~~~~~~~~~~
/datasets/git/builtin/rm.c:310:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                     !path_in_sparse_checkout(ce->name, &the_index)))
                                                                     ^
                                                                      {
/datasets/git/builtin/rm.c:312:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ce_path_match(&the_index, ce, &pathspec, seen))
                                                                    ^
                                                                     {
/datasets/git/builtin/rm.c:314:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                ALLOC_GROW(list.entry, list.nr + 1, list.alloc);
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/builtin/rm.c:316:38: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                list.entry[list.nr].is_submodule = S_ISGITLINK(ce->ce_mode);
                                                   ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/builtin/rm.c:318:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !is_staging_gitmodules_ok(&the_index))
                                                          ^
                                                           {
/datasets/git/builtin/rm.c:323:15: warning: variable 'original' is not initialized [cppcoreguidelines-init-variables]
                const char *original;
                            ^
                                     = NULL
/datasets/git/builtin/rm.c:328:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < pathspec.nr; i++) {
                ^
/datasets/git/builtin/rm.c:330:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (seen[i])
                                    ^
                                     {
/datasets/git/builtin/rm.c:332:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (ignore_unmatch)
                                                ^
                                                 {
/datasets/git/builtin/rm.c:335:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                 matches_skip_worktree(&pathspec, i, &skip_worktree_seen))
                                                                                          ^
                                                                                           {
/datasets/git/builtin/rm.c:337:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/builtin/rm.c:340:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!recursive && seen[i] == MATCHED_RECURSIVELY)
                                                                         ^
                                                                          {
/datasets/git/builtin/rm.c:352:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!seen_any)
                              ^
                               {
/datasets/git/builtin/rm.c:353:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        exit(ret);
                        ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/rm.c:358:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!index_only)
                        ^
                         {
/datasets/git/builtin/rm.c:373:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (get_oid("HEAD", &oid))
                                          ^
                                           {
/datasets/git/builtin/rm.c:375:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (check_local_mod(&oid, index_only))
                                                      ^
                                                       {
/datasets/git/builtin/rm.c:376:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        exit(1);
                        ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/rm.c:383:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < list.nr; i++) {
        ^
/datasets/git/builtin/rm.c:385:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!quiet)
                           ^
                            {
/datasets/git/builtin/rm.c:388:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (remove_file_from_index(&the_index, path))
                                                             ^
                                                              {
/datasets/git/builtin/rm.c:392:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (show_only)
                      ^
                       {
/datasets/git/builtin/rm.c:404:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int removed = 0, gitmodules_modified = 0;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/rm.c:407:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < list.nr; i++) {
                ^
/datasets/git/builtin/rm.c:412:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (remove_dir_recursively(&buf, flag))
                                                                       ^
                                                                        {
/datasets/git/builtin/rm.c:416:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!remove_path_from_gitmodules(path))
                                                                       ^
                                                                        {
/datasets/git/builtin/rm.c:424:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!removed)
                                     ^
                                      {
/datasets/git/builtin/rm.c:428:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (gitmodules_modified)
                                        ^
                                         {
/datasets/git/builtin/rm.c:433:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                               COMMIT_LOCK | SKIP_IF_UNCHANGED))
                               ^
/datasets/git/./refs/../cache.h:744:22: note: expanded from macro 'COMMIT_LOCK'
#define COMMIT_LOCK             (1 << 0)
                                ^~~~~~~~
/datasets/git/builtin/rm.c:433:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                               COMMIT_LOCK | SKIP_IF_UNCHANGED))
                                             ^
/datasets/git/./refs/../cache.h:745:28: note: expanded from macro 'SKIP_IF_UNCHANGED'
#define SKIP_IF_UNCHANGED       (1 << 1)
                                 ^
/datasets/git/builtin/rm.c:433:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                               COMMIT_LOCK | SKIP_IF_UNCHANGED))
                                                                ^
                                                                 {
/datasets/git/builtin/send-pack.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "commit.h"
/datasets/git/builtin/send-pack.c:28:30: warning: variable 'args' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct send_pack_args args;
                             ^
/datasets/git/builtin/send-pack.c:30:13: warning: function 'print_helper_status' has cognitive complexity of 32 (threshold 25) [readability-function-cognitive-complexity]
static void print_helper_status(struct ref *ref)
            ^
/datasets/git/builtin/send-pack.c:35:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (; ref; ref = ref->next) {
        ^
/datasets/git/builtin/send-pack.c:40:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                switch(ref->status) {
                ^
/datasets/git/builtin/send-pack.c:101:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ref->remote_status)
                ^
/datasets/git/builtin/send-pack.c:103:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (msg) {
                ^
/datasets/git/builtin/send-pack.c:109:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ref->status == REF_STATUS_OK) {
                ^
/datasets/git/builtin/send-pack.c:110:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (report = ref->report; report; report = report->next) {
                        ^
/datasets/git/builtin/send-pack.c:111:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (count++ > 0)
                                ^
/datasets/git/builtin/send-pack.c:113:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (report->ref_name)
                                ^
/datasets/git/builtin/send-pack.c:116:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (report->old_oid)
                                ^
/datasets/git/builtin/send-pack.c:119:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (report->new_oid)
                                ^
/datasets/git/builtin/send-pack.c:122:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (report->forced_update)
                                ^
/datasets/git/builtin/send-pack.c:30:33: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
static void print_helper_status(struct ref *ref)
                                ^
/datasets/git/builtin/send-pack.c:33:26: warning: variable 'report' is not initialized [cppcoreguidelines-init-variables]
        struct ref_push_report *report;
                                ^
                                       = NULL
/datasets/git/builtin/send-pack.c:35:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; ref; ref = ref->next) {
               ^
/datasets/git/builtin/send-pack.c:37:15: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
                const char *res;
                            ^
                                = NULL
/datasets/git/builtin/send-pack.c:33:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct ref_push_report *report;
        ^
/datasets/git/builtin/send-pack.c:101:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ref->remote_status)
                                       ^
                                        {
/datasets/git/builtin/send-pack.c:110:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (report = ref->report; report; report = report->next) {
                        ^
/datasets/git/builtin/send-pack.c:110:31: warning: backward branch (for loop) is ID-dependent due to variable reference to 'report' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (report = ref->report; report; report = report->next) {
                                                   ^
/datasets/git/builtin/send-pack.c:111:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (count++ > 0)
                                                ^
                                                 {
/datasets/git/builtin/send-pack.c:113:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (report->ref_name)
                                                     ^
                                                      {
/datasets/git/builtin/send-pack.c:116:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (report->old_oid)
                                                    ^
                                                     {
/datasets/git/builtin/send-pack.c:119:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (report->new_oid)
                                                    ^
                                                     {
/datasets/git/builtin/send-pack.c:122:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (report->forced_update)
                                                          ^
                                                           {
/datasets/git/builtin/send-pack.c:131:41: warning: parameter name 'k' is too short, expected at least 3 characters [readability-identifier-length]
static int send_pack_config(const char *k, const char *v, void *cb)
                                        ^
/datasets/git/builtin/send-pack.c:131:56: warning: parameter name 'v' is too short, expected at least 3 characters [readability-identifier-length]
static int send_pack_config(const char *k, const char *v, void *cb)
                                                       ^
/datasets/git/builtin/send-pack.c:131:65: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int send_pack_config(const char *k, const char *v, void *cb)
                                                                ^
/datasets/git/builtin/send-pack.c:136:15: warning: variable 'value' is not initialized [cppcoreguidelines-init-variables]
                const char *value;
                            ^
                                  = NULL
/datasets/git/builtin/send-pack.c:146:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (value && !strcasecmp(value, "if-asked"))
                                                                            ^
                                                                             {
/datasets/git/builtin/send-pack.c:148:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                else
                                    ^
                                     {
/datasets/git/builtin/send-pack.c:156:5: warning: function 'cmd_send_pack' has cognitive complexity of 42 (threshold 25) [readability-function-cognitive-complexity]
int cmd_send_pack(int argc, const char **argv, const char *prefix)
    ^
/datasets/git/builtin/send-pack.c:219:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (argc > 0) {
        ^
/datasets/git/builtin/send-pack.c:224:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!dest)
        ^
/datasets/git/builtin/send-pack.c:237:38: note: +1, including nesting penalty of 0, nesting level increased to 1
        args.push_options = push_options.nr ? &push_options : NULL;
                                            ^
/datasets/git/builtin/send-pack.c:240:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (from_stdin) {
        ^
/datasets/git/builtin/send-pack.c:241:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (args.stateless_rpc) {
                ^
/datasets/git/builtin/send-pack.c:243:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while ((buf = packet_read_line(0, NULL)))
                        ^
/datasets/git/builtin/send-pack.c:245:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/send-pack.c:247:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (strbuf_getline(&line, stdin) != EOF)
                        ^
/datasets/git/builtin/send-pack.c:257:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((rs.nr > 0 && (send_all || args.send_mirror)) ||
        ^
/datasets/git/builtin/send-pack.c:257:52: note: +1
        if ((rs.nr > 0 && (send_all || args.send_mirror)) ||
                                                          ^
/datasets/git/builtin/send-pack.c:257:17: note: +1
        if ((rs.nr > 0 && (send_all || args.send_mirror)) ||
                       ^
/datasets/git/builtin/send-pack.c:257:30: note: +1
        if ((rs.nr > 0 && (send_all || args.send_mirror)) ||
                                    ^
/datasets/git/builtin/send-pack.c:258:16: note: +1
            (send_all && args.send_mirror))
                      ^
/datasets/git/builtin/send-pack.c:261:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (remote_name) {
        ^
/datasets/git/builtin/send-pack.c:263:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!remote_has_url(remote, dest)) {
                ^
/datasets/git/builtin/send-pack.c:269:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (progress == -1)
        ^
/datasets/git/builtin/send-pack.c:270:26: note: +1
                progress = !args.quiet && isatty(2);
                                       ^
/datasets/git/builtin/send-pack.c:273:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (args.stateless_rpc) {
        ^
/datasets/git/builtin/send-pack.c:277:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/send-pack.c:279:17: note: +2, including nesting penalty of 1, nesting level increased to 2
                        args.verbose ? CONNECT_VERBOSE : 0);
                                     ^
/datasets/git/builtin/send-pack.c:287:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        switch (discover_version(&reader)) {
        ^
/datasets/git/builtin/send-pack.c:304:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (send_all)
        ^
/datasets/git/builtin/send-pack.c:306:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (args.send_mirror)
        ^
/datasets/git/builtin/send-pack.c:310:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (match_push_refs(local_refs, &remote_refs, &rs, flags))
        ^
/datasets/git/builtin/send-pack.c:313:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!is_empty_cas(&cas))
        ^
/datasets/git/builtin/send-pack.c:316:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!is_empty_cas(&cas) && force_if_includes)
        ^
/datasets/git/builtin/send-pack.c:316:26: note: +1
        if (!is_empty_cas(&cas) && force_if_includes)
                                ^
/datasets/git/builtin/send-pack.c:324:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (helper_status)
        ^
/datasets/git/builtin/send-pack.c:332:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!helper_status)
        ^
/datasets/git/builtin/send-pack.c:335:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!args.dry_run && remote) {
        ^
/datasets/git/builtin/send-pack.c:335:20: note: +1
        if (!args.dry_run && remote) {
                          ^
/datasets/git/builtin/send-pack.c:337:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (ref = remote_refs; ref; ref = ref->next)
                ^
/datasets/git/builtin/send-pack.c:341:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!ret && !transport_refs_pushed(remote_refs))
        ^
/datasets/git/builtin/send-pack.c:341:11: note: +1
        if (!ret && !transport_refs_pushed(remote_refs))
                 ^
/datasets/git/builtin/send-pack.c:158:17: warning: variable name 'rs' is too short, expected at least 3 characters [readability-identifier-length]
        struct refspec rs = REFSPEC_INIT_PUSH;
                       ^
/datasets/git/builtin/send-pack.c:162:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
        int fd[2];
            ^
/datasets/git/builtin/send-pack.c:163:24: warning: variable 'conn' is not initialized [cppcoreguidelines-init-variables]
        struct child_process *conn;
                              ^
                                   = NULL
/datasets/git/builtin/send-pack.c:166:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct ref *remote_refs, *local_refs;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/send-pack.c:166:14: warning: variable 'remote_refs' is not initialized [cppcoreguidelines-init-variables]
        struct ref *remote_refs, *local_refs;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/send-pack.c:166:28: warning: variable 'local_refs' is not initialized [cppcoreguidelines-init-variables]
        struct ref *remote_refs, *local_refs;
                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/send-pack.c:167:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/builtin/send-pack.c:181:6: warning: variable 'flags' is not initialized [cppcoreguidelines-init-variables]
        int flags;
            ^
                  = 0
/datasets/git/builtin/send-pack.c:182:15: warning: variable 'reject_reasons' is not initialized [cppcoreguidelines-init-variables]
        unsigned int reject_reasons;
                     ^
                                    = 0
/datasets/git/builtin/send-pack.c:194:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "all", &send_all, N_("push all refs")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/send-pack.c:195:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('n' , "dry-run", &dry_run, N_("dry run")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/send-pack.c:196:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "mirror", &send_mirror, N_("mirror all refs")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/send-pack.c:197:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('f', "force", &force_update, N_("force updates")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/send-pack.c:203:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "progress", &progress, N_("force progress reporting")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/send-pack.c:204:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "thin", &use_thin_pack, N_("use thin pack")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/send-pack.c:205:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "atomic", &atomic, N_("request atomic transaction on remote side")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/send-pack.c:206:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "stateless-rpc", &stateless_rpc, N_("use stateless RPC protocol")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/send-pack.c:207:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "stdin", &from_stdin, N_("read refs from stdin")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/send-pack.c:208:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "helper-status", &helper_status, N_("print status from remote helper")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/send-pack.c:212:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, TRANS_OPT_FORCE_IF_INCLUDES, &force_if_includes,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/send-pack.c:224:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!dest)
                  ^
                   {
/datasets/git/builtin/send-pack.c:242:16: warning: variable 'buf' is not initialized [cppcoreguidelines-init-variables]
                        const char *buf;
                                    ^
                                        = NULL
/datasets/git/builtin/send-pack.c:243:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while ((buf = packet_read_line(0, NULL)))
                        ^
/datasets/git/builtin/send-pack.c:243:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        while ((buf = packet_read_line(0, NULL)))
                                                                 ^
                                                                  {
/datasets/git/builtin/send-pack.c:247:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (strbuf_getline(&line, stdin) != EOF)
                        ^
/datasets/git/builtin/send-pack.c:247:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'line' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (strbuf_getline(&line, stdin) != EOF)
                               ^
/datasets/git/builtin/send-pack.c:247:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        while (strbuf_getline(&line, stdin) != EOF)
                                                                   ^
                                                                    {
/datasets/git/builtin/send-pack.c:258:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            (send_all && args.send_mirror))
                                           ^
                                            {
/datasets/git/builtin/send-pack.c:269:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (progress == -1)
                           ^
                            {
/datasets/git/builtin/send-pack.c:279:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        args.verbose ? CONNECT_VERBOSE : 0);
                                       ^
/datasets/git/./connect.h:6:32: note: expanded from macro 'CONNECT_VERBOSE'
#define CONNECT_VERBOSE       (1u << 0)
                               ^     ~
/datasets/git/builtin/send-pack.c:283:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                           PACKET_READ_CHOMP_NEWLINE |
                           ^
/datasets/git/./pkt-line.h:85:43: note: expanded from macro 'PACKET_READ_CHOMP_NEWLINE'
#define PACKET_READ_CHOMP_NEWLINE        (1u<<1)
                                          ^   ~
/datasets/git/builtin/send-pack.c:284:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                           PACKET_READ_GENTLE_ON_EOF |
                           ^
/datasets/git/./pkt-line.h:84:43: note: expanded from macro 'PACKET_READ_GENTLE_ON_EOF'
#define PACKET_READ_GENTLE_ON_EOF        (1u<<0)
                                          ^   ~
/datasets/git/builtin/send-pack.c:285:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                           PACKET_READ_DIE_ON_ERR_PACKET);
                           ^
/datasets/git/./pkt-line.h:86:43: note: expanded from macro 'PACKET_READ_DIE_ON_ERR_PACKET'
#define PACKET_READ_DIE_ON_ERR_PACKET    (1u<<2)
                                          ^   ~
/datasets/git/builtin/send-pack.c:293:43: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                get_remote_heads(&reader, &remote_refs, REF_NORMAL,
                                                        ^
/datasets/git/./remote.h:201:21: note: expanded from macro 'REF_NORMAL'
#define REF_NORMAL      (1u << 0)
                         ^     ~
/datasets/git/builtin/send-pack.c:304:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (send_all)
                     ^
                      {
/datasets/git/builtin/send-pack.c:305:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags |= MATCH_REFS_ALL;
                ^~~~~
/datasets/git/builtin/send-pack.c:306:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (args.send_mirror)
                             ^
                              {
/datasets/git/builtin/send-pack.c:307:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags |= MATCH_REFS_MIRROR;
                ^~~~~
/datasets/git/builtin/send-pack.c:310:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (match_push_refs(local_refs, &remote_refs, &rs, flags))
                                                                  ^
                                                                   {
/datasets/git/builtin/send-pack.c:313:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_empty_cas(&cas))
                                ^
                                 {
/datasets/git/builtin/send-pack.c:316:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_empty_cas(&cas) && force_if_includes)
                                                     ^
                                                      {
/datasets/git/builtin/send-pack.c:324:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (helper_status)
                          ^
                           {
/datasets/git/builtin/send-pack.c:330:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ret |= finish_connect(conn);
        ^~~
/datasets/git/builtin/send-pack.c:332:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!helper_status)
                           ^
                            {
/datasets/git/builtin/send-pack.c:336:15: warning: variable 'ref' is not initialized [cppcoreguidelines-init-variables]
                struct ref *ref;
                            ^
                                = NULL
/datasets/git/builtin/send-pack.c:337:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (ref = remote_refs; ref; ref = ref->next)
                ^
/datasets/git/builtin/send-pack.c:337:27: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (ref = remote_refs; ref; ref = ref->next)
                                        ^
/datasets/git/builtin/send-pack.c:337:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (ref = remote_refs; ref; ref = ref->next)
                                                             ^
                                                              {
/datasets/git/builtin/send-pack.c:341:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ret && !transport_refs_pushed(remote_refs))
                                                        ^
                                                         {
/datasets/git/builtin/send-pack.c:342:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "Everything up-to-date\n");
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/send-pack.c:342:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/shortlog.c:3:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "commit.h"
/datasets/git/builtin/shortlog.c:34:43: warning: parameter name 'a1' is too short, expected at least 3 characters [readability-identifier-length]
static int compare_by_counter(const void *a1, const void *a2)
                                          ^
/datasets/git/builtin/shortlog.c:34:59: warning: parameter name 'a2' is too short, expected at least 3 characters [readability-identifier-length]
static int compare_by_counter(const void *a1, const void *a2)
                                                          ^
/datasets/git/builtin/shortlog.c:36:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const struct string_list_item *i1 = a1, *i2 = a2;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/shortlog.c:36:33: warning: variable name 'i1' is too short, expected at least 3 characters [readability-identifier-length]
        const struct string_list_item *i1 = a1, *i2 = a2;
                                       ^
/datasets/git/builtin/shortlog.c:36:43: warning: variable name 'i2' is too short, expected at least 3 characters [readability-identifier-length]
        const struct string_list_item *i1 = a1, *i2 = a2;
                                                 ^
/datasets/git/builtin/shortlog.c:40:40: warning: parameter name 'a1' is too short, expected at least 3 characters [readability-identifier-length]
static int compare_by_list(const void *a1, const void *a2)
                                       ^
/datasets/git/builtin/shortlog.c:40:56: warning: parameter name 'a2' is too short, expected at least 3 characters [readability-identifier-length]
static int compare_by_list(const void *a1, const void *a2)
                                                       ^
/datasets/git/builtin/shortlog.c:42:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const struct string_list_item *i1 = a1, *i2 = a2;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/shortlog.c:42:33: warning: variable name 'i1' is too short, expected at least 3 characters [readability-identifier-length]
        const struct string_list_item *i1 = a1, *i2 = a2;
                                       ^
/datasets/git/builtin/shortlog.c:42:43: warning: variable name 'i2' is too short, expected at least 3 characters [readability-identifier-length]
        const struct string_list_item *i1 = a1, *i2 = a2;
                                                 ^
/datasets/git/builtin/shortlog.c:43:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const struct string_list *l1 = i1->util, *l2 = i2->util;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/shortlog.c:43:28: warning: variable name 'l1' is too short, expected at least 3 characters [readability-identifier-length]
        const struct string_list *l1 = i1->util, *l2 = i2->util;
                                  ^
/datasets/git/builtin/shortlog.c:43:44: warning: variable name 'l2' is too short, expected at least 3 characters [readability-identifier-length]
        const struct string_list *l1 = i1->util, *l2 = i2->util;
                                                  ^
/datasets/git/builtin/shortlog.c:45:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (l1->nr < l2->nr)
                            ^
                             {
/datasets/git/builtin/shortlog.c:47:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (l1->nr == l2->nr)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/shortlog.c:47:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (l1->nr == l2->nr)
                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/shortlog.c:49:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/shortlog.c:54:10: warning: 2 adjacent parameters of 'insert_one_record' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                              const char *ident,
                              ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/shortlog.c:54:22: note: the first parameter in the range is 'ident'
                              const char *ident,
                                          ^~~~~
/datasets/git/builtin/shortlog.c:55:22: note: the last parameter in the range is 'oneline'
                              const char *oneline)
                                          ^~~~~~~
/datasets/git/builtin/shortlog.c:57:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/builtin/shortlog.c:61:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (log->summary)
                         ^
                          {
/datasets/git/builtin/shortlog.c:62:16: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
                item->util = (void *)(UTIL_TO_INT(item) + 1);
                             ^
/datasets/git/builtin/shortlog.c:64:9: warning: variable 'buffer' is not initialized [cppcoreguidelines-init-variables]
                char *buffer;
                      ^
                             = NULL
/datasets/git/builtin/shortlog.c:66:15: warning: variable 'eol' is not initialized [cppcoreguidelines-init-variables]
                const char *eol;
                            ^
                                = NULL
/datasets/git/builtin/shortlog.c:69:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (*oneline && isspace(*oneline))
                ^
/datasets/git/builtin/shortlog.c:69:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'oneline' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (*oneline && isspace(*oneline))
                       ^
/datasets/git/builtin/shortlog.c:69:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                while (*oneline && isspace(*oneline))
                                   ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/builtin/shortlog.c:69:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (*oneline && isspace(*oneline))
                                                     ^
                                                      {
/datasets/git/builtin/shortlog.c:72:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!eol)
                         ^
                          {
/datasets/git/builtin/shortlog.c:76:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (eob && (!eol || eob < eol))
                                                       ^
                                                        {
/datasets/git/builtin/shortlog.c:79:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (*oneline && isspace(*oneline) && *oneline != '\n')
                ^
/datasets/git/builtin/shortlog.c:79:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'oneline' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (*oneline && isspace(*oneline) && *oneline != '\n')
                       ^
/datasets/git/builtin/shortlog.c:79:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                while (*oneline && isspace(*oneline) && *oneline != '\n')
                                   ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/builtin/shortlog.c:79:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (*oneline && isspace(*oneline) && *oneline != '\n')
                                                                         ^
                                                                          {
/datasets/git/builtin/shortlog.c:93:42: warning: parameter name 'in' is too short, expected at least 3 characters [readability-identifier-length]
                       struct strbuf *out, const char *in)
                                                       ^
/datasets/git/builtin/shortlog.c:95:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *mailbuf, *namebuf;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/shortlog.c:95:14: warning: variable 'mailbuf' is not initialized [cppcoreguidelines-init-variables]
        const char *mailbuf, *namebuf;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/shortlog.c:95:24: warning: variable 'namebuf' is not initialized [cppcoreguidelines-init-variables]
        const char *mailbuf, *namebuf;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/shortlog.c:96:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t namelen, maillen;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/shortlog.c:96:9: warning: variable 'namelen' is not initialized [cppcoreguidelines-init-variables]
        size_t namelen, maillen;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/shortlog.c:96:18: warning: variable 'maillen' is not initialized [cppcoreguidelines-init-variables]
        size_t namelen, maillen;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/shortlog.c:99:35: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        if (split_ident_line(&ident, in, strlen(in)))
                                         ^
/datasets/git/builtin/shortlog.c:99:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (split_ident_line(&ident, in, strlen(in)))
                                                     ^
                                                      {
/datasets/git/builtin/shortlog.c:109:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (log->email)
                       ^
                        {
/datasets/git/builtin/shortlog.c:122:15: warning: variable 'match' is not initialized [cppcoreguidelines-init-variables]
        const char **match;
                     ^
                           = NULL
/datasets/git/builtin/shortlog.c:124:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (HAS_MULTI_BITS(log->groups))
                                        ^
                                         {
/datasets/git/builtin/shortlog.c:142:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'ident' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (strbuf_getline_lf(&ident, stdin) != EOF) {
               ^
/datasets/git/builtin/shortlog.c:143:15: warning: variable 'v' is not initialized [cppcoreguidelines-init-variables]
                const char *v;
                            ^
                              = NULL
/datasets/git/builtin/shortlog.c:143:15: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/shortlog.c:145:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !skip_prefix(ident.buf, match[1], &v))
                                                          ^
                                                           {
/datasets/git/builtin/shortlog.c:147:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (strbuf_getline_lf(&oneline, stdin) != EOF &&
                ^
/datasets/git/builtin/shortlog.c:147:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'oneline' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (strbuf_getline_lf(&oneline, stdin) != EOF &&
                       ^
/datasets/git/builtin/shortlog.c:148:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                       oneline.len)
                                   ^
                                    {
/datasets/git/builtin/shortlog.c:150:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (strbuf_getline_lf(&oneline, stdin) != EOF &&
                ^
/datasets/git/builtin/shortlog.c:150:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'oneline' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (strbuf_getline_lf(&oneline, stdin) != EOF &&
                       ^
/datasets/git/builtin/shortlog.c:151:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                       !oneline.len)
                                    ^
                                     {
/datasets/git/builtin/shortlog.c:155:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (parse_ident(log, &mapped_ident, v) < 0)
                                                           ^
                                                            {
/datasets/git/builtin/shortlog.c:172:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *commit_buffer, *body;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/shortlog.c:172:14: warning: variable 'commit_buffer' is not initialized [cppcoreguidelines-init-variables]
        const char *commit_buffer, *body;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/shortlog.c:172:30: warning: variable 'body' is not initialized [cppcoreguidelines-init-variables]
        const char *commit_buffer, *body;
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/shortlog.c:175:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!log->trailers.nr)
                              ^
                               {
/datasets/git/builtin/shortlog.c:184:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!body)
                  ^
                   {
/datasets/git/builtin/shortlog.c:188:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (trailer_iterator_advance(&iter)) {
        ^
/datasets/git/builtin/shortlog.c:191:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!string_list_has_string(&log->trailers, iter.key.buf))
                                                                          ^
                                                                           {
/datasets/git/builtin/shortlog.c:195:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!parse_ident(log, &ident, value))
                                                     ^
                                                      {
/datasets/git/builtin/shortlog.c:198:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strset_add(dups, value))
                                             ^
                                              {
/datasets/git/builtin/shortlog.c:220:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/builtin/shortlog.c:222:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(item, &log->format) {
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/shortlog.c:222:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(item, &log->format) {
                                  ^
/datasets/git/builtin/shortlog.c:227:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!shortlog_needs_dedup(log) || strset_add(dups, buf.buf))
                                                                            ^
                                                                             {
/datasets/git/builtin/shortlog.c:239:14: warning: variable 'oneline_str' is not initialized [cppcoreguidelines-init-variables]
        const char *oneline_str;
                    ^
                                = NULL
/datasets/git/builtin/shortlog.c:248:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (log->user_format)
                                     ^
                                      {
/datasets/git/builtin/shortlog.c:250:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/shortlog.c:264:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/builtin/shortlog.c:266:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prepare_revision_walk(rev))
                                       ^
                                        {
/datasets/git/builtin/shortlog.c:268:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((commit = get_revision(rev)) != NULL)
        ^
/datasets/git/builtin/shortlog.c:268:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'commit' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((commit = get_revision(rev)) != NULL)
               ^
/datasets/git/builtin/shortlog.c:268:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while ((commit = get_revision(rev)) != NULL)
                                                    ^
                                                     {
/datasets/git/builtin/shortlog.c:272:41: warning: 2 adjacent parameters of 'parse_uint' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int parse_uint(char const **arg, int comma, int defval)
                                        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/shortlog.c:272:45: note: the first parameter in the range is 'comma'
static int parse_uint(char const **arg, int comma, int defval)
                                            ^~~~~
/datasets/git/builtin/shortlog.c:272:56: note: the last parameter in the range is 'defval'
static int parse_uint(char const **arg, int comma, int defval)
                                                       ^~~~~~
/datasets/git/builtin/shortlog.c:274:16: warning: variable 'ul' is not initialized [cppcoreguidelines-init-variables]
        unsigned long ul;
                      ^
                         = 0
/datasets/git/builtin/shortlog.c:274:16: warning: variable name 'ul' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/shortlog.c:275:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/builtin/shortlog.c:276:8: warning: variable 'endp' is not initialized [cppcoreguidelines-init-variables]
        char *endp;
              ^
                   = NULL
/datasets/git/builtin/shortlog.c:278:28: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        ul = strtoul(*arg, &endp, 10);
                                  ^
/datasets/git/builtin/shortlog.c:279:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*endp && *endp != comma)
                                    ^
                                     {
/datasets/git/builtin/shortlog.c:281:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ul > INT_MAX)
                         ^
                          {
/datasets/git/builtin/shortlog.c:289:1: warning: replace macro with enum [modernize-macro-to-enum]
#define DEFAULT_WRAPLEN 76
^~~~~~~~
                        = ,
/datasets/git/builtin/shortlog.c:289:9: warning: macro 'DEFAULT_WRAPLEN' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define DEFAULT_WRAPLEN 76
        ^
/datasets/git/builtin/shortlog.c:290:9: warning: macro 'DEFAULT_INDENT1' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define DEFAULT_INDENT1 6
        ^
/datasets/git/builtin/shortlog.c:291:9: warning: macro 'DEFAULT_INDENT2' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define DEFAULT_INDENT2 9
        ^
/datasets/git/builtin/shortlog.c:298:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unset)
                  ^
                   {
/datasets/git/builtin/shortlog.c:310:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (log->wrap < 0 || log->in1 < 0 || log->in2 < 0)
                                                          ^
                                                           {
/datasets/git/builtin/shortlog.c:314:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
             (log->in2 && log->wrap <= log->in2)))
                                                  ^
                                                   {
/datasets/git/builtin/shortlog.c:322:14: warning: variable 'field' is not initialized [cppcoreguidelines-init-variables]
        const char *field;
                    ^
                          = NULL
/datasets/git/builtin/shortlog.c:328:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else if (!strcasecmp(arg, "author"))
                                              ^
                                               {
/datasets/git/builtin/shortlog.c:329:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                log->groups |= SHORTLOG_GROUP_AUTHOR;
                ^              ~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/shortlog.c:330:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcasecmp(arg, "committer"))
                                               ^
                                                {
/datasets/git/builtin/shortlog.c:331:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                log->groups |= SHORTLOG_GROUP_COMMITTER;
                ^              ~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/shortlog.c:333:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                log->groups |= SHORTLOG_GROUP_TRAILER;
                ^              ~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/shortlog.c:336:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                log->groups |= SHORTLOG_GROUP_FORMAT;
                ^              ~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/shortlog.c:339:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                log->groups |= SHORTLOG_GROUP_FORMAT;
                ^              ~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/shortlog.c:351:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(log, 0, sizeof(*log));
        ^~~~~~
/datasets/git/builtin/shortlog.c:351:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(log, 0, sizeof(*log));
        ^~~~~~
/datasets/git/builtin/shortlog.c:366:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (log->groups & SHORTLOG_GROUP_AUTHOR)
            ^             ~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/shortlog.c:366:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (log->groups & SHORTLOG_GROUP_AUTHOR)
                                                ^
                                                 {
/datasets/git/builtin/shortlog.c:369:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (log->groups & SHORTLOG_GROUP_COMMITTER)
            ^             ~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/shortlog.c:369:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (log->groups & SHORTLOG_GROUP_COMMITTER)
                                                   ^
                                                    {
/datasets/git/builtin/shortlog.c:383:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT('c', "committer", &log.groups,
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/shortlog.c:386:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('n', "numbered", &log.sort_by_number,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/shortlog.c:388:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('s', "summary", &log.summary,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/shortlog.c:390:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('e', "email", &log.email,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/shortlog.c:406:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            PARSE_OPT_KEEP_DASHDASH | PARSE_OPT_KEEP_ARGV0);
                            ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/shortlog.c:408:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/builtin/shortlog.c:416:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        exit(129);
                        ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/shortlog.c:418:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        exit(0);
                        ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/shortlog.c:439:15: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        log.abbrev = rev.abbrev;
                     ^
/datasets/git/builtin/shortlog.c:443:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!log.groups)
                        ^
                         {
/datasets/git/builtin/shortlog.c:448:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!nongit && !rev.pending.nr && isatty(0))
                                                    ^
                                                     {
/datasets/git/builtin/shortlog.c:451:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (isatty(0))
                              ^
                               {
/datasets/git/builtin/shortlog.c:452:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, _("(reading log message from standard input)\n"));
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/shortlog.c:452:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/shortlog.c:455:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/shortlog.c:461:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (log.file != stdout)
                               ^
                                {
/datasets/git/builtin/shortlog.c:462:3: warning: the value returned by this function should be used [cert-err33-c]
                fclose(log.file);
                ^~~~~~~~~~~~~~~~
/datasets/git/builtin/shortlog.c:462:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/shortlog.c:466:53: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static void add_wrapped_shortlog_msg(struct strbuf *sb, const char *s,
                                                    ^
/datasets/git/builtin/shortlog.c:466:69: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void add_wrapped_shortlog_msg(struct strbuf *sb, const char *s,
                                                                    ^
/datasets/git/builtin/shortlog.c:475:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t i, j;
        ^~~~~~~~~~~~
/datasets/git/builtin/shortlog.c:475:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i, j;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/shortlog.c:475:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/shortlog.c:475:12: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        size_t i, j;
                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/shortlog.c:475:12: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/shortlog.c:476:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/shortlog.c:478:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (log->sort_by_number)
                                ^
                                 {
/datasets/git/builtin/shortlog.c:484:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(log->file, "%6d\t%s\n",
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/shortlog.c:484:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/shortlog.c:488:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(log->file, "%s (%"PRIuMAX"):\n",
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/shortlog.c:488:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/shortlog.c:490:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (j = onelines->nr; j >= 1; j--) {
                        ^
/datasets/git/builtin/shortlog.c:490:27: warning: backward branch (for loop) is ID-dependent due to variable reference to 'j' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (j = onelines->nr; j >= 1; j--) {
                                               ^
/datasets/git/builtin/shortlog.c:496:6: warning: the value returned by this function should be used [cert-err33-c]
                                        fwrite(sb.buf, sb.len, 1, log->file);
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/shortlog.c:496:6: note: cast the expression to void to silence this warning
/datasets/git/builtin/shortlog.c:498:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                else
                                    ^
                                     {
/datasets/git/builtin/shortlog.c:499:6: warning: the value returned by this function should be used [cert-err33-c]
                                        fprintf(log->file, "      %s\n", msg);
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/shortlog.c:499:6: note: cast the expression to void to silence this warning
/datasets/git/builtin/shortlog.c:501:4: warning: the value returned by this function should be used [cert-err33-c]
                        putc('\n', log->file);
                        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/shortlog.c:501:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/shortlog.c:475:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        size_t i, j;
        ^
/datasets/git/builtin/show-branch.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "builtin.h"
/datasets/git/builtin/show-branch.c:13:20: warning: variable 'show_branch_usage' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char* show_branch_usage[] = {
                   ^
/datasets/git/builtin/show-branch.c:23:12: warning: variable 'showbranch_use_color' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int showbranch_use_color = -1;
           ^
/datasets/git/builtin/show-branch.c:25:22: warning: variable 'default_args' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct strvec default_args = STRVEC_INIT;
                     ^
/datasets/git/builtin/show-branch.c:25:22: warning: initializing non-local variable with non-const expression depending on uninitialized non-local variable 'empty_strvec' [cppcoreguidelines-interfaces-global-init]
/datasets/git/builtin/show-branch.c:41:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (want_color(showbranch_use_color))
                                             ^
                                              {
/datasets/git/builtin/show-branch.c:48:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (want_color(showbranch_use_color))
                                             ^
                                              {
/datasets/git/builtin/show-branch.c:55:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (list) {
        ^
/datasets/git/builtin/show-branch.c:55:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'list' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (list) {
               ^
/datasets/git/builtin/show-branch.c:58:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (commit->object.flags & UNINTERESTING)
                    ^
/datasets/git/builtin/show-branch.c:58:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (commit->object.flags & UNINTERESTING)
                                                         ^
                                                          {
/datasets/git/builtin/show-branch.c:65:8: warning: accessing fields in struct 'commit_name' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct commit_name {
       ^
/datasets/git/builtin/show-branch.c:65:8: note: use "__attribute__((aligned(16)))" to align struct 'commit_name' to 16 bytes
/datasets/git/builtin/show-branch.c:70:1: warning: backward branch (for loop) is ID-dependent due to member reference to 'slab_size' and may cause performance degradation [altera-id-dependent-backward-branch]
define_commit_slab(commit_name_slab, struct commit_name *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:48:15: note: expanded from macro 'implement_commit_slab'
                for (j = 0; j < s->slab_size; j++)                      \
                            ^
/datasets/git/builtin/show-branch.c:70:1: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
define_commit_slab(commit_name_slab, struct commit_name *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:68:27: note: expanded from macro 'implement_commit_slab'
                for (i = s->slab_count; i <= nth_slab; i++)             \
                                        ^
/datasets/git/builtin/show-branch.c:70:1: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
define_commit_slab(commit_name_slab, struct commit_name *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:35:2: note: expanded from macro 'implement_commit_slab'
        for (i = 0; i < s->slab_count; i++)                             \
        ^
/datasets/git/builtin/show-branch.c:70:1: warning: result of multiplication in type 'unsigned int' is used as a pointer offset after an implicit widening conversion to type 'size_t' [bugprone-implicit-widening-of-multiplication-result]
define_commit_slab(commit_name_slab, struct commit_name *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:49:13: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                 ^
/datasets/git/builtin/show-branch.c:70:1: note: make conversion explicit to silence this warning
define_commit_slab(commit_name_slab, struct commit_name *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:49:24: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                            ^~~~~~~~~~~~~
/datasets/git/builtin/show-branch.c:70:1: note: perform multiplication in a wider type
define_commit_slab(commit_name_slab, struct commit_name *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:49:24: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                            ^
/datasets/git/builtin/show-branch.c:70:1: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
define_commit_slab(commit_name_slab, struct commit_name *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:76:10: note: expanded from macro 'implement_commit_slab'
                                            sizeof(**s->slab) * s->stride);             \
                                            ^
/datasets/git/builtin/show-branch.c:70:1: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(commit_name_slab, struct commit_name *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:55:30: note: expanded from macro 'implement_commit_slab'
                                                  const struct commit *c, \
                                                                       ^
/datasets/git/builtin/show-branch.c:70:1: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(commit_name_slab, struct commit_name *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:14:61: note: expanded from macro 'implement_commit_slab'
scope void init_ ##slabname## _with_stride(struct slabname *s,          \
                                                            ^
/datasets/git/builtin/show-branch.c:70:1: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(commit_name_slab, struct commit_name *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:34:15: note: expanded from macro 'implement_commit_slab'
        unsigned int i;                                                 \
                     ^
/datasets/git/builtin/show-branch.c:70:1: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(commit_name_slab, struct commit_name *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:45:16: note: expanded from macro 'implement_commit_slab'
                unsigned int j;                                         \
                             ^
/datasets/git/builtin/show-branch.c:70:1: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
define_commit_slab(commit_name_slab, struct commit_name *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:58:2: note: expanded from macro 'implement_commit_slab'
        unsigned int nth_slab, nth_slot;                                \
        ^
/datasets/git/builtin/show-branch.c:70:1: note: inferred assignment of ID-dependent value from ID-dependent member slab_count [altera-id-dependent-backward-branch]
define_commit_slab(commit_name_slab, struct commit_name *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:64:3: note: expanded from macro 'implement_commit_slab'
                unsigned int i;                                         \
                ^
/datasets/git/builtin/show-branch.c:70:20: warning: accessing fields in struct 'commit_name_slab' is inefficient due to padding; only needs 20 bytes but is using 24 bytes [altera-struct-pack-align]
define_commit_slab(commit_name_slab, struct commit_name *);
                   ^
/datasets/git/builtin/show-branch.c:70:20: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'commit_name_slab'
/datasets/git/builtin/show-branch.c:70:20: warning: accessing fields in struct 'commit_name_slab' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
define_commit_slab(commit_name_slab, struct commit_name *);
                   ^
/datasets/git/builtin/show-branch.c:70:20: note: use "__attribute__((aligned(32)))" to align struct 'commit_name_slab' to 32 bytes
/datasets/git/builtin/show-branch.c:71:32: warning: variable 'name_slab' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct commit_name_slab name_slab;
                               ^
/datasets/git/builtin/show-branch.c:84:22: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
        struct commit_name *name;
                            ^
                                 = NULL
/datasets/git/builtin/show-branch.c:104:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!commit_name)
                         ^
                          {
/datasets/git/builtin/show-branch.c:107:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            commit_name->generation + 1 < parent_name->generation)
                                                                  ^
                                                                   {
/datasets/git/builtin/show-branch.c:112:51: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static int name_first_parent_chain(struct commit *c)
                                                  ^
/datasets/git/builtin/show-branch.c:112:36: note: inferred assignment of ID-dependent value from ID-dependent variable p [altera-id-dependent-backward-branch]
static int name_first_parent_chain(struct commit *c)
                                   ^
/datasets/git/builtin/show-branch.c:114:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0;
            ^
/datasets/git/builtin/show-branch.c:115:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (c) {
        ^
/datasets/git/builtin/show-branch.c:115:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'c' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (c) {
               ^
/datasets/git/builtin/show-branch.c:116:18: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                struct commit *p;
                               ^
                                 = NULL
/datasets/git/builtin/show-branch.c:116:18: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/show-branch.c:117:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!commit_to_name(c))
                                       ^
                                        {
/datasets/git/builtin/show-branch.c:119:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!c->parents)
                                ^
                                 {
/datasets/git/builtin/show-branch.c:126:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/show-branch.c:133:13: warning: function 'name_commits' has cognitive complexity of 33 (threshold 25) [readability-function-cognitive-complexity]
static void name_commits(struct commit_list *list,
            ^
/datasets/git/builtin/show-branch.c:143:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (cl = list; cl; cl = cl->next) {
        ^
/datasets/git/builtin/show-branch.c:145:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (commit_to_name(c))
                ^
/datasets/git/builtin/show-branch.c:147:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < num_rev; i++) {
                ^
/datasets/git/builtin/show-branch.c:148:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (rev[i] == c) {
                        ^
/datasets/git/builtin/show-branch.c:156:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        do {
        ^
/datasets/git/builtin/show-branch.c:158:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (cl = list; cl; cl = cl->next) {
                ^
/datasets/git/builtin/show-branch.c:164:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        do {
        ^
/datasets/git/builtin/show-branch.c:166:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (cl = list; cl; cl = cl->next) {
                ^
/datasets/git/builtin/show-branch.c:171:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!commit_to_name(c))
                        ^
/datasets/git/builtin/show-branch.c:176:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (parents) {
                        ^
/datasets/git/builtin/show-branch.c:181:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (commit_to_name(p))
                                ^
/datasets/git/builtin/show-branch.c:183:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                switch (n->generation) {
                                ^
/datasets/git/builtin/show-branch.c:195:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (nth == 1)
                                ^
/datasets/git/builtin/show-branch.c:197:5: note: +1, nesting level increased to 4
                                else
                                ^
/datasets/git/builtin/show-branch.c:138:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct commit_list *cl;
        ^
/datasets/git/builtin/show-branch.c:138:22: warning: variable 'cl' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *cl;
                            ^
                               = NULL
/datasets/git/builtin/show-branch.c:138:22: warning: variable name 'cl' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/show-branch.c:139:17: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        struct commit *c;
                       ^
                         = NULL
/datasets/git/builtin/show-branch.c:139:17: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/show-branch.c:140:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/show-branch.c:140:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/show-branch.c:143:18: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cl' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (cl = list; cl; cl = cl->next) {
                        ^
/datasets/git/builtin/show-branch.c:140:2: note: inferred assignment of ID-dependent value from ID-dependent 
        int i;
        ^
/datasets/git/builtin/show-branch.c:145:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (commit_to_name(c))
                                      ^
                                       {
/datasets/git/builtin/show-branch.c:147:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < num_rev; i++) {
                ^
/datasets/git/builtin/show-branch.c:138:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct commit_list *cl;
        ^
/datasets/git/builtin/show-branch.c:147:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < num_rev; i++) {
                            ^
/datasets/git/builtin/show-branch.c:158:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (cl = list; cl; cl = cl->next) {
                ^
/datasets/git/builtin/show-branch.c:138:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct commit_list *cl;
        ^
/datasets/git/builtin/show-branch.c:158:19: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cl' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (cl = list; cl; cl = cl->next) {
                                ^
/datasets/git/builtin/show-branch.c:161:11: warning: backward branch (do loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        } while (i);
                 ^
/datasets/git/builtin/show-branch.c:140:2: note: inferred assignment of ID-dependent value from ID-dependent 
        int i;
        ^
/datasets/git/builtin/show-branch.c:166:19: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cl' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (cl = list; cl; cl = cl->next) {
                                ^
/datasets/git/builtin/show-branch.c:167:24: warning: variable 'parents' is not initialized [cppcoreguidelines-init-variables]
                        struct commit_list *parents;
                                            ^
                                                    = NULL
/datasets/git/builtin/show-branch.c:168:24: warning: variable 'n' is not initialized [cppcoreguidelines-init-variables]
                        struct commit_name *n;
                                            ^
                                              = NULL
/datasets/git/builtin/show-branch.c:168:24: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/show-branch.c:169:8: warning: variable 'nth' is not initialized [cppcoreguidelines-init-variables]
                        int nth;
                            ^
                                = 0
/datasets/git/builtin/show-branch.c:171:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!commit_to_name(c))
                                               ^
                                                {
/datasets/git/builtin/show-branch.c:176:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (parents) {
                        ^
/datasets/git/builtin/show-branch.c:176:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'parents' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (parents) {
                               ^
/datasets/git/builtin/show-branch.c:177:20: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                                struct commit *p = parents->item;
                                               ^
/datasets/git/builtin/show-branch.c:181:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (commit_to_name(p))
                                                      ^
                                                       {
/datasets/git/builtin/show-branch.c:195:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (nth == 1)
                                             ^
                                              {
/datasets/git/builtin/show-branch.c:197:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                else
                                    ^
                                     {
/datasets/git/builtin/show-branch.c:204:11: warning: backward branch (do loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        } while (i);
                 ^
/datasets/git/builtin/show-branch.c:216:13: warning: function 'join_revs' has cognitive complexity of 31 (threshold 25) [readability-function-cognitive-complexity]
static void join_revs(struct commit_list **list_p,
            ^
/datasets/git/builtin/show-branch.c:223:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (*list_p) {
        ^
/datasets/git/builtin/show-branch.c:229:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!still_interesting && extra <= 0)
                ^
/datasets/git/builtin/show-branch.c:229:26: note: +1
                if (!still_interesting && extra <= 0)
                                       ^
/datasets/git/builtin/show-branch.c:233:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((flags & all_revs) == all_revs)
                ^
/datasets/git/builtin/show-branch.c:237:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (parents) {
                ^
/datasets/git/builtin/show-branch.c:241:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if ((this_flag & flags) == flags)
                        ^
/datasets/git/builtin/show-branch.c:244:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (mark_seen(p, seen_p) && !still_interesting)
                        ^
/datasets/git/builtin/show-branch.c:244:29: note: +1
                        if (mark_seen(p, seen_p) && !still_interesting)
                                                 ^
/datasets/git/builtin/show-branch.c:258:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (;;) {
        ^
/datasets/git/builtin/show-branch.c:261:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (s = *seen_p; s; s = s->next) {
                ^
/datasets/git/builtin/show-branch.c:265:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (((c->object.flags & all_revs) != all_revs) &&
                        ^
/datasets/git/builtin/show-branch.c:265:51: note: +1
                        if (((c->object.flags & all_revs) != all_revs) &&
                                                                       ^
/datasets/git/builtin/show-branch.c:276:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (parents) {
                        ^
/datasets/git/builtin/show-branch.c:279:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!(p->object.flags & UNINTERESTING)) {
                                ^
/datasets/git/builtin/show-branch.c:285:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!changed)
                ^
/datasets/git/builtin/show-branch.c:216:23: warning: 2 adjacent parameters of 'join_revs' of similar type ('struct commit_list **') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void join_revs(struct commit_list **list_p,
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/show-branch.c:216:44: note: the first parameter in the range is 'list_p'
static void join_revs(struct commit_list **list_p,
                                           ^~~~~~
/datasets/git/builtin/show-branch.c:217:30: note: the last parameter in the range is 'seen_p'
                      struct commit_list **seen_p,
                                           ^~~~~~
/datasets/git/builtin/show-branch.c:218:9: warning: 2 adjacent parameters of 'join_revs' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                      int num_rev, int extra)
                      ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/show-branch.c:218:13: note: the first parameter in the range is 'num_rev'
                      int num_rev, int extra)
                          ^~~~~~~
/datasets/git/builtin/show-branch.c:218:26: note: the last parameter in the range is 'extra'
                      int num_rev, int extra)
                                       ^~~~~
/datasets/git/builtin/show-branch.c:220:17: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int all_mask = ((1u << (REV_SHIFT + num_rev)) - 1);
                       ^
/datasets/git/builtin/show-branch.c:220:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int all_mask = ((1u << (REV_SHIFT + num_rev)) - 1);
                         ^     ~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/show-branch.c:220:19: warning: integer literal has suffix 'u', which is not uppercase [hicpp-uppercase-literal-suffix,readability-uppercase-literal-suffix]
        int all_mask = ((1u << (REV_SHIFT + num_rev)) - 1);
                         ^~
                          U
/datasets/git/builtin/show-branch.c:221:17: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int all_revs = all_mask & ~((1u << REV_SHIFT) - 1);
                       ^
/datasets/git/builtin/show-branch.c:221:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int all_revs = all_mask & ~((1u << REV_SHIFT) - 1);
                       ^~~~~~~~
/datasets/git/builtin/show-branch.c:221:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int all_revs = all_mask & ~((1u << REV_SHIFT) - 1);
                                     ^
/datasets/git/builtin/show-branch.c:221:31: warning: integer literal has suffix 'u', which is not uppercase [hicpp-uppercase-literal-suffix,readability-uppercase-literal-suffix]
        int all_revs = all_mask & ~((1u << REV_SHIFT) - 1);
                                     ^~
                                      U
/datasets/git/builtin/show-branch.c:224:23: warning: variable 'parents' is not initialized [cppcoreguidelines-init-variables]
                struct commit_list *parents;
                                    ^
                                            = NULL
/datasets/git/builtin/show-branch.c:227:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                int flags = commit->object.flags & all_mask;
                            ^                      ~~~~~~~~
/datasets/git/builtin/show-branch.c:229:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!still_interesting && extra <= 0)
                                                     ^
                                                      {
/datasets/git/builtin/show-branch.c:233:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((flags & all_revs) == all_revs)
                     ^~~~~
/datasets/git/builtin/show-branch.c:233:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((flags & all_revs) == all_revs)
                                                   ^
                                                    {
/datasets/git/builtin/show-branch.c:234:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        flags |= UNINTERESTING;
                        ^~~~~
/datasets/git/builtin/show-branch.c:237:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (parents) {
                ^
/datasets/git/builtin/show-branch.c:237:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'parents' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (parents) {
                       ^
/datasets/git/builtin/show-branch.c:238:19: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                        struct commit *p = parents->item;
                                       ^
/datasets/git/builtin/show-branch.c:241:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if ((this_flag & flags) == flags)
                             ^~~~~~~~~
/datasets/git/builtin/show-branch.c:260:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                struct commit_list *s;
                ^
/datasets/git/builtin/show-branch.c:241:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if ((this_flag & flags) == flags)
                                                         ^
                                                          {
/datasets/git/builtin/show-branch.c:244:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (mark_seen(p, seen_p) && !still_interesting)
                                                                       ^
                                                                        {
/datasets/git/builtin/show-branch.c:246:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        p->object.flags |= flags;
                        ^                  ~~~~~
/datasets/git/builtin/show-branch.c:260:23: warning: variable 's' is not initialized [cppcoreguidelines-init-variables]
                struct commit_list *s;
                                    ^
                                      = NULL
/datasets/git/builtin/show-branch.c:260:23: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/show-branch.c:261:21: warning: backward branch (for loop) is ID-dependent due to variable reference to 's' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (s = *seen_p; s; s = s->next) {
                                  ^
/datasets/git/builtin/show-branch.c:262:19: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                        struct commit *c = s->item;
                                       ^
/datasets/git/builtin/show-branch.c:263:24: warning: variable 'parents' is not initialized [cppcoreguidelines-init-variables]
                        struct commit_list *parents;
                                            ^
                                                    = NULL
/datasets/git/builtin/show-branch.c:265:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (((c->object.flags & all_revs) != all_revs) &&
                              ^                 ~~~~~~~~
/datasets/git/builtin/show-branch.c:266:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !(c->object.flags & UNINTERESTING))
                              ^
/datasets/git/builtin/show-branch.c:266:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            !(c->object.flags & UNINTERESTING))
                                                               ^
                                                                {
/datasets/git/builtin/show-branch.c:276:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (parents) {
                        ^
/datasets/git/builtin/show-branch.c:276:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'parents' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (parents) {
                               ^
/datasets/git/builtin/show-branch.c:277:20: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                                struct commit *p = parents->item;
                                               ^
/datasets/git/builtin/show-branch.c:279:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (!(p->object.flags & UNINTERESTING)) {
                                      ^
/datasets/git/builtin/show-branch.c:280:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        p->object.flags |= UNINTERESTING;
                                        ^
/datasets/git/builtin/show-branch.c:285:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!changed)
                             ^
                              {
/datasets/git/builtin/show-branch.c:306:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (name->generation == 1)
                                                          ^
                                                           {
/datasets/git/builtin/show-branch.c:308:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                else
                                    ^
                                     {
/datasets/git/builtin/show-branch.c:313:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/show-branch.c:322:14: warning: variable 'ref_name' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *ref_name[MAX_REVS + 1];
             ^
/datasets/git/builtin/show-branch.c:323:12: warning: variable 'ref_name_cnt' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int ref_name_cnt;
           ^
/datasets/git/builtin/show-branch.c:325:50: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static const char *find_digit_prefix(const char *s, int *v)
                                                 ^
/datasets/git/builtin/show-branch.c:325:58: warning: parameter name 'v' is too short, expected at least 3 characters [readability-identifier-length]
static const char *find_digit_prefix(const char *s, int *v)
                                                         ^
/datasets/git/builtin/show-branch.c:327:14: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        const char *p;
                    ^
                      = NULL
/datasets/git/builtin/show-branch.c:327:14: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/show-branch.c:328:6: warning: variable 'ver' is not initialized [cppcoreguidelines-init-variables]
        int ver;
            ^
                = 0
/datasets/git/builtin/show-branch.c:329:7: warning: variable 'ch' is not initialized [cppcoreguidelines-init-variables]
        char ch;
             ^
                = 0
/datasets/git/builtin/show-branch.c:329:7: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/show-branch.c:331:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = s, ver = 0;
        ^
/datasets/git/builtin/show-branch.c:332:7: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ch' and may cause performance degradation [altera-id-dependent-backward-branch]
             '0' <= (ch = *p) && ch <= '9';
             ^
/datasets/git/builtin/show-branch.c:333:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
             p++)
                 ^
                  {
/datasets/git/builtin/show-branch.c:334:15: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                ver = ver * 10 + ch - '0';
                            ^
/datasets/git/builtin/show-branch.c:340:36: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static int version_cmp(const char *a, const char *b)
                                   ^
/datasets/git/builtin/show-branch.c:340:51: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static int version_cmp(const char *a, const char *b)
                                                  ^
/datasets/git/builtin/show-branch.c:343:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int va, vb;
                ^~~~~~~~~~~
/datasets/git/builtin/show-branch.c:343:7: warning: variable 'va' is not initialized [cppcoreguidelines-init-variables]
                int va, vb;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/show-branch.c:343:7: warning: variable name 'va' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/show-branch.c:343:11: warning: variable 'vb' is not initialized [cppcoreguidelines-init-variables]
                int va, vb;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/show-branch.c:343:11: warning: variable name 'vb' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/show-branch.c:347:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (va != vb)
                             ^
                              {
/datasets/git/builtin/show-branch.c:350:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (1) {
                ^
/datasets/git/builtin/show-branch.c:351:8: warning: variable name 'ca' is too short, expected at least 3 characters [readability-identifier-length]
                        int ca = *a;
                            ^
/datasets/git/builtin/show-branch.c:351:13: warning: 'signed char' to 'int' conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse,cert-str34-c]
                        int ca = *a;
                                 ^
/datasets/git/builtin/show-branch.c:352:8: warning: variable name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
                        int cb = *b;
                            ^
/datasets/git/builtin/show-branch.c:352:13: warning: 'signed char' to 'int' conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse,cert-str34-c]
                        int cb = *b;
                                 ^
/datasets/git/builtin/show-branch.c:353:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if ('0' <= ca && ca <= '9')
                                                   ^
                                                    {
/datasets/git/builtin/show-branch.c:355:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if ('0' <= cb && cb <= '9')
                                                   ^
                                                    {
/datasets/git/builtin/show-branch.c:357:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ca != cb)
                                     ^
                                      {
/datasets/git/builtin/show-branch.c:359:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!ca)
                                ^
                                 {
/datasets/git/builtin/show-branch.c:364:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!*a && !*b)
                               ^
                                {
/datasets/git/builtin/show-branch.c:369:41: warning: parameter name 'a_' is too short, expected at least 3 characters [readability-identifier-length]
static int compare_ref_name(const void *a_, const void *b_)
                                        ^
/datasets/git/builtin/show-branch.c:369:57: warning: parameter name 'b_' is too short, expected at least 3 characters [readability-identifier-length]
static int compare_ref_name(const void *a_, const void *b_)
                                                        ^
/datasets/git/builtin/show-branch.c:371:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char * const*a = a_, * const*b = b_;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/show-branch.c:371:21: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        const char * const*a = a_, * const*b = b_;
                           ^
/datasets/git/builtin/show-branch.c:371:37: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        const char * const*a = a_, * const*b = b_;
                                           ^
/datasets/git/builtin/show-branch.c:385:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/show-branch.c:385:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/show-branch.c:387:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!commit)
                    ^
                     {
/datasets/git/builtin/show-branch.c:392:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < ref_name_cnt; i++)
                ^
/datasets/git/builtin/show-branch.c:392:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < ref_name_cnt; i++)
                                                  ^
                                                   {
/datasets/git/builtin/show-branch.c:393:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!strcmp(refname, ref_name[i]))
                                                          ^
                                                           {
/datasets/git/builtin/show-branch.c:411:12: warning: 11 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        int ofs = 11;
                  ^
/datasets/git/builtin/show-branch.c:412:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!starts_with(refname, "refs/heads/"))
                                                 ^
                                                  {
/datasets/git/builtin/show-branch.c:417:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid(refname + ofs, &tmp) || !oideq(&tmp, oid))
                                                              ^
                                                               {
/datasets/git/builtin/show-branch.c:418:9: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                ofs = 5;
                      ^
/datasets/git/builtin/show-branch.c:426:12: warning: 13 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        int ofs = 13;
                  ^
/datasets/git/builtin/show-branch.c:427:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!starts_with(refname, "refs/remotes/"))
                                                   ^
                                                    {
/datasets/git/builtin/show-branch.c:432:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid(refname + ofs, &tmp) || !oideq(&tmp, oid))
                                                              ^
                                                               {
/datasets/git/builtin/show-branch.c:433:9: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                ofs = 5;
                      ^
/datasets/git/builtin/show-branch.c:440:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!starts_with(refname, "refs/tags/"))
                                                ^
                                                 {
/datasets/git/builtin/show-branch.c:442:30: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        return append_ref(refname + 5, oid, 0);
                                    ^
/datasets/git/builtin/show-branch.c:445:20: warning: variable 'match_ref_pattern' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *match_ref_pattern = NULL;
                   ^
/datasets/git/builtin/show-branch.c:446:12: warning: variable 'match_ref_slash' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int match_ref_slash = 0;
           ^
/datasets/git/builtin/show-branch.c:455:14: warning: variable 'tail' is not initialized [cppcoreguidelines-init-variables]
        const char *tail;
                    ^
                         = NULL
/datasets/git/builtin/show-branch.c:457:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (tail = refname; *tail && match_ref_slash < slash; )
        ^
/datasets/git/builtin/show-branch.c:457:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 'tail' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (tail = refname; *tail && match_ref_slash < slash; )
                             ^
/datasets/git/builtin/show-branch.c:457:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (tail = refname; *tail && match_ref_slash < slash; )
                                                                ^
                                                                 {
/datasets/git/builtin/show-branch.c:458:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*tail++ == '/')
                                   ^
                                    {
/datasets/git/builtin/show-branch.c:460:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!*tail)
                   ^
                    {
/datasets/git/builtin/show-branch.c:462:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (wildmatch(match_ref_pattern, tail, 0))
                                                  ^
                                                   {
/datasets/git/builtin/show-branch.c:464:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (starts_with(refname, "refs/heads/"))
                                                ^
                                                 {
/datasets/git/builtin/show-branch.c:466:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (starts_with(refname, "refs/tags/"))
                                               ^
                                                {
/datasets/git/builtin/show-branch.c:471:24: warning: 2 adjacent parameters of 'snarf_refs' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void snarf_refs(int head, int remotes)
                       ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/show-branch.c:471:28: note: the first parameter in the range is 'head'
static void snarf_refs(int head, int remotes)
                           ^~~~
/datasets/git/builtin/show-branch.c:471:38: note: the last parameter in the range is 'remotes'
static void snarf_refs(int head, int remotes)
                                     ^~~~~~~
/datasets/git/builtin/show-branch.c:489:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!head)
                  ^
                   {
/datasets/git/builtin/show-branch.c:492:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!skip_prefix(name, "refs/heads/", &name))
                                                     ^
                                                      {
/datasets/git/builtin/show-branch.c:499:17: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int all_mask = ((1u << (REV_SHIFT + num_rev)) - 1);
                       ^
/datasets/git/builtin/show-branch.c:499:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int all_mask = ((1u << (REV_SHIFT + num_rev)) - 1);
                         ^     ~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/show-branch.c:499:19: warning: integer literal has suffix 'u', which is not uppercase [hicpp-uppercase-literal-suffix,readability-uppercase-literal-suffix]
        int all_mask = ((1u << (REV_SHIFT + num_rev)) - 1);
                         ^~
                          U
/datasets/git/builtin/show-branch.c:500:17: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int all_revs = all_mask & ~((1u << REV_SHIFT) - 1);
                       ^
/datasets/git/builtin/show-branch.c:500:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int all_revs = all_mask & ~((1u << REV_SHIFT) - 1);
                       ^~~~~~~~
/datasets/git/builtin/show-branch.c:500:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int all_revs = all_mask & ~((1u << REV_SHIFT) - 1);
                                     ^
/datasets/git/builtin/show-branch.c:500:31: warning: integer literal has suffix 'u', which is not uppercase [hicpp-uppercase-literal-suffix,readability-uppercase-literal-suffix]
        int all_revs = all_mask & ~((1u << REV_SHIFT) - 1);
                                     ^~
                                      U
/datasets/git/builtin/show-branch.c:503:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (seen) {
        ^
/datasets/git/builtin/show-branch.c:505:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                int flags = commit->object.flags & all_mask;
                            ^                      ~~~~~~~~
/datasets/git/builtin/show-branch.c:506:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(flags & UNINTERESTING) &&
                      ^~~~~
/datasets/git/builtin/show-branch.c:507:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    ((flags & all_revs) == all_revs)) {
                      ^~~~~
/datasets/git/builtin/show-branch.c:510:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        commit->object.flags |= UNINTERESTING;
                        ^
/datasets/git/builtin/show-branch.c:518:22: warning: pointer parameter 'rev_mask' can be pointer to const [readability-non-const-parameter]
                            unsigned int *rev_mask)
                                          ^
                            const 
/datasets/git/builtin/show-branch.c:520:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/show-branch.c:520:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/show-branch.c:522:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < num_rev; i++) {
        ^
/datasets/git/builtin/show-branch.c:526:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (commit->object.flags == flag)
                                                 ^
                                                  {
/datasets/git/builtin/show-branch.c:528:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                commit->object.flags |= UNINTERESTING;
                ^
/datasets/git/builtin/show-branch.c:533:40: warning: parameter name 'av' is too short, expected at least 3 characters [readability-identifier-length]
static void append_one_rev(const char *av)
                                       ^
/datasets/git/builtin/show-branch.c:548:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    ref_name_cnt < MAX_REVS)
                                            ^
                                             {
/datasets/git/builtin/show-branch.c:556:77: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int git_show_branch_config(const char *var, const char *value, void *cb)
                                                                            ^
/datasets/git/builtin/show-branch.c:559:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
                            {
/datasets/git/builtin/show-branch.c:565:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!default_args.nr)
                                     ^
                                      {
/datasets/git/builtin/show-branch.c:586:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, flag, count;
        ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/show-branch.c:586:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, flag, count;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/show-branch.c:586:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/show-branch.c:586:9: warning: variable 'flag' is not initialized [cppcoreguidelines-init-variables]
        int i, flag, count;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/show-branch.c:586:15: warning: variable 'count' is not initialized [cppcoreguidelines-init-variables]
        int i, flag, count;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/show-branch.c:587:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < n; i++)
        ^
/datasets/git/builtin/show-branch.c:586:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int i, flag, count;
        ^
/datasets/git/builtin/show-branch.c:587:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < n; i++)
                    ^
/datasets/git/builtin/show-branch.c:587:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < n; i++)
                               ^
                                {
/datasets/git/builtin/show-branch.c:588:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (rev[i] == commit)
                                     ^
                                      {
/datasets/git/builtin/show-branch.c:591:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = count = 0; i < n; i++) {
        ^
/datasets/git/builtin/show-branch.c:591:22: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = count = 0; i < n; i++) {
                            ^
/datasets/git/builtin/show-branch.c:592:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flag & (1u << (i + REV_SHIFT)))
                    ^~~~
/datasets/git/builtin/show-branch.c:592:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flag & (1u << (i + REV_SHIFT)))
                            ^     ~~~~~~~~~~~~~~~
/datasets/git/builtin/show-branch.c:592:15: warning: integer literal has suffix 'u', which is not uppercase [hicpp-uppercase-literal-suffix,readability-uppercase-literal-suffix]
                if (flag & (1u << (i + REV_SHIFT)))
                            ^~
                             U
/datasets/git/builtin/show-branch.c:592:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (flag & (1u << (i + REV_SHIFT)))
                                                   ^
                                                    {
/datasets/git/builtin/show-branch.c:595:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (count == 1)
                       ^
                        {
/datasets/git/builtin/show-branch.c:600:12: warning: variable 'reflog' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int reflog = 0;
           ^
/datasets/git/builtin/show-branch.c:605:8: warning: variable 'ep' is not initialized [cppcoreguidelines-init-variables]
        char *ep;
              ^
                 = NULL
/datasets/git/builtin/show-branch.c:605:8: warning: variable name 'ep' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/show-branch.c:607:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/show-branch.c:608:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!arg)
                 ^
                  {
/datasets/git/builtin/show-branch.c:610:11: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        reflog = strtoul(arg, &ep, 10);
                 ^
/datasets/git/builtin/show-branch.c:610:29: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        reflog = strtoul(arg, &ep, 10);
                                   ^
/datasets/git/builtin/show-branch.c:611:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*ep == ',')
                       ^
                        {
/datasets/git/builtin/show-branch.c:613:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (*ep)
                     ^
                      {
/datasets/git/builtin/show-branch.c:615:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/show-branch.c:617:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (reflog <= 0)
                        ^
                         {
/datasets/git/builtin/show-branch.c:622:5: warning: function 'cmd_show_branch' has cognitive complexity of 139 (threshold 25) [readability-function-cognitive-complexity]
int cmd_show_branch(int ac, const char **av, const char *prefix)
    ^
/datasets/git/builtin/show-branch.c:688:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ac == 1 && default_args.nr) {
        ^
/datasets/git/builtin/show-branch.c:688:14: note: +1
        if (ac == 1 && default_args.nr) {
                    ^
/datasets/git/builtin/show-branch.c:695:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (all_heads)
        ^
/datasets/git/builtin/show-branch.c:698:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (extra || reflog) {
        ^
/datasets/git/builtin/show-branch.c:698:12: note: +1
        if (extra || reflog) {
                  ^
/datasets/git/builtin/show-branch.c:702:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (independent || merge_base)
                ^
/datasets/git/builtin/show-branch.c:702:19: note: +1
                if (independent || merge_base)
                                ^
/datasets/git/builtin/show-branch.c:705:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (reflog && ((0 < extra) || all_heads || all_remotes))
                ^
/datasets/git/builtin/show-branch.c:705:14: note: +1
                if (reflog && ((0 < extra) || all_heads || all_remotes))
                           ^
/datasets/git/builtin/show-branch.c:705:43: note: +1
                if (reflog && ((0 < extra) || all_heads || all_remotes))
                                                        ^
/datasets/git/builtin/show-branch.c:716:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (with_current_branch && reflog)
        ^
/datasets/git/builtin/show-branch.c:716:26: note: +1
        if (with_current_branch && reflog)
                                ^
/datasets/git/builtin/show-branch.c:721:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ac <= topics && all_heads + all_remotes == 0)
        ^
/datasets/git/builtin/show-branch.c:721:19: note: +1
        if (ac <= topics && all_heads + all_remotes == 0)
                         ^
/datasets/git/builtin/show-branch.c:724:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (reflog) {
        ^
/datasets/git/builtin/show-branch.c:730:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ac == 0) {
                ^
/datasets/git/builtin/show-branch.c:739:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!*av)
                        ^
/datasets/git/builtin/show-branch.c:742:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ac != 1)
                ^
/datasets/git/builtin/show-branch.c:745:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (MAX_REVS < reflog)
                ^
/datasets/git/builtin/show-branch.c:749:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!dwim_ref(*av, strlen(*av), &oid, &ref, 0))
                ^
/datasets/git/builtin/show-branch.c:753:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (reflog_base) {
                ^
/datasets/git/builtin/show-branch.c:756:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (*ep) {
                        ^
/datasets/git/builtin/show-branch.c:766:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < reflog; i++) {
                ^
/datasets/git/builtin/show-branch.c:774:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (read_ref_at(get_main_ref_store(the_repository),
                        ^
/datasets/git/builtin/show-branch.c:782:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (end)
                        ^
/datasets/git/builtin/show-branch.c:785:28: note: +3, including nesting penalty of 2, nesting level increased to 3
                        msg = (*logmsg == '\0') ? "(none)" : logmsg;
                                                ^
/datasets/git/builtin/show-branch.c:798:2: note: +1, nesting level increased to 1
        else {
        ^
/datasets/git/builtin/show-branch.c:799:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (0 < ac) {
                ^
/datasets/git/builtin/show-branch.c:803:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (all_heads + all_remotes)
                ^
/datasets/git/builtin/show-branch.c:810:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (with_current_branch && head) {
        ^
/datasets/git/builtin/show-branch.c:810:26: note: +1
        if (with_current_branch && head) {
                                ^
/datasets/git/builtin/show-branch.c:812:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; !has_head && i < ref_name_cnt; i++) {
                ^
/datasets/git/builtin/show-branch.c:812:25: note: +1
                for (i = 0; !has_head && i < ref_name_cnt; i++) {
                                      ^
/datasets/git/builtin/show-branch.c:816:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (rev_is_head(head, ref_name[i]))
                        ^
/datasets/git/builtin/show-branch.c:819:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!has_head) {
                ^
/datasets/git/builtin/show-branch.c:826:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!ref_name_cnt) {
        ^
/datasets/git/builtin/show-branch.c:831:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (num_rev = 0; ref_name[num_rev]; num_rev++) {
        ^
/datasets/git/builtin/show-branch.c:835:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (MAX_REVS <= num_rev)
                ^
/datasets/git/builtin/show-branch.c:839:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (get_oid(ref_name[num_rev], &revkey))
                ^
/datasets/git/builtin/show-branch.c:842:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!commit)
                ^
/datasets/git/builtin/show-branch.c:853:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (commit->object.flags == flag)
                ^
/datasets/git/builtin/show-branch.c:857:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < num_rev; i++)
        ^
/datasets/git/builtin/show-branch.c:860:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (0 <= extra)
        ^
/datasets/git/builtin/show-branch.c:865:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (merge_base)
        ^
/datasets/git/builtin/show-branch.c:868:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (independent)
        ^
/datasets/git/builtin/show-branch.c:872:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (1 < num_rev || extra < 0) {
        ^
/datasets/git/builtin/show-branch.c:872:18: note: +1
        if (1 < num_rev || extra < 0) {
                        ^
/datasets/git/builtin/show-branch.c:873:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < num_rev; i++) {
                ^
/datasets/git/builtin/show-branch.c:875:49: note: +1
                        int is_head = rev_is_head(head, ref_name[i]) &&
                                                                     ^
/datasets/git/builtin/show-branch.c:877:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (extra < 0)
                        ^
/datasets/git/builtin/show-branch.c:879:20: note: +4, including nesting penalty of 3, nesting level increased to 4
                                       is_head ? '*' : ' ', ref_name[i]);
                                               ^
/datasets/git/builtin/show-branch.c:880:4: note: +1, nesting level increased to 3
                        else {
                        ^
/datasets/git/builtin/show-branch.c:881:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                for (j = 0; j < i; j++)
                                ^
/datasets/git/builtin/show-branch.c:885:20: note: +4, including nesting penalty of 3, nesting level increased to 4
                                       is_head ? '*' : '!',
                                               ^
/datasets/git/builtin/show-branch.c:889:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!reflog) {
                        ^
/datasets/git/builtin/show-branch.c:893:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/builtin/show-branch.c:896:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (is_head)
                        ^
/datasets/git/builtin/show-branch.c:899:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (0 <= extra) {
                ^
/datasets/git/builtin/show-branch.c:900:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (i = 0; i < num_rev; i++)
                        ^
/datasets/git/builtin/show-branch.c:905:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (extra < 0)
        ^
/datasets/git/builtin/show-branch.c:912:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!sha1_name && !no_name)
        ^
/datasets/git/builtin/show-branch.c:912:17: note: +1
        if (!sha1_name && !no_name)
                       ^
/datasets/git/builtin/show-branch.c:918:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (seen) {
        ^
/datasets/git/builtin/show-branch.c:925:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (1 < num_rev) {
                ^
/datasets/git/builtin/show-branch.c:926:38: note: +1
                        int is_merge = !!(commit->parents &&
                                                          ^
/datasets/git/builtin/show-branch.c:928:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (topics &&
                        ^
/datasets/git/builtin/show-branch.c:929:24: note: +1
                            !is_merge_point &&
                                            ^
/datasets/git/builtin/show-branch.c:932:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (dense && is_merge &&
                        ^
/datasets/git/builtin/show-branch.c:932:26: note: +1
                        if (dense && is_merge &&
                                              ^
/datasets/git/builtin/show-branch.c:935:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (i = 0; i < num_rev; i++) {
                        ^
/datasets/git/builtin/show-branch.c:937:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!(this_flag & (1u << (i + REV_SHIFT))))
                                ^
/datasets/git/builtin/show-branch.c:939:10: note: +1, nesting level increased to 4
                                else if (is_merge)
                                     ^
/datasets/git/builtin/show-branch.c:941:10: note: +1, nesting level increased to 4
                                else if (i == head_at)
                                     ^
/datasets/git/builtin/show-branch.c:943:5: note: +1, nesting level increased to 4
                                else
                                ^
/datasets/git/builtin/show-branch.c:945:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (mark == ' ')
                                ^
/datasets/git/builtin/show-branch.c:947:5: note: +1, nesting level increased to 4
                                else
                                ^
/datasets/git/builtin/show-branch.c:956:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (shown_merge_point && --extra < 0)
                ^
/datasets/git/builtin/show-branch.c:956:25: note: +1
                if (shown_merge_point && --extra < 0)
                                      ^
/datasets/git/builtin/show-branch.c:622:25: warning: parameter name 'ac' is too short, expected at least 3 characters [readability-identifier-length]
int cmd_show_branch(int ac, const char **av, const char *prefix)
                        ^
/datasets/git/builtin/show-branch.c:622:42: warning: parameter name 'av' is too short, expected at least 3 characters [readability-identifier-length]
int cmd_show_branch(int ac, const char **av, const char *prefix)
                                         ^
/datasets/git/builtin/show-branch.c:624:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit *rev[MAX_REVS], *commit;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/show-branch.c:624:33: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *rev[MAX_REVS], *commit;
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/show-branch.c:626:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit_list *list = NULL, *seen = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/show-branch.c:628:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int num_rev, i, extra = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/show-branch.c:628:6: warning: variable 'num_rev' is not initialized [cppcoreguidelines-init-variables]
        int num_rev, i, extra = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/show-branch.c:628:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int num_rev, i, extra = 0;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/show-branch.c:628:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/show-branch.c:629:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int all_heads = 0, all_remotes = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/show-branch.c:630:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int all_mask, all_revs;
        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/show-branch.c:630:6: warning: variable 'all_mask' is not initialized [cppcoreguidelines-init-variables]
        int all_mask, all_revs;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/show-branch.c:630:16: warning: variable 'all_revs' is not initialized [cppcoreguidelines-init-variables]
        int all_mask, all_revs;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/show-branch.c:632:8: warning: variable 'head' is not initialized [cppcoreguidelines-init-variables]
        char *head;
              ^
                   = NULL
/datasets/git/builtin/show-branch.c:645:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('a', "all", &all_heads,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/show-branch.c:647:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('r', "remotes", &all_remotes,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/show-branch.c:654:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT(0, "list", &extra, N_("synonym to more=-1"), -1),
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/show-branch.c:655:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "no-name", &no_name, N_("suppress naming strings")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/show-branch.c:656:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "current", &with_current_branch,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/show-branch.c:658:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "sha1-name", &sha1_name,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/show-branch.c:660:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "merge-base", &merge_base,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/show-branch.c:662:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "independent", &independent,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/show-branch.c:664:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT(0, "topo-order", &sort_order,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/show-branch.c:667:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "topics", &topics,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/show-branch.c:669:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT(0, "sparse", &dense,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/show-branch.c:671:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT(0, "date-order", &sort_order,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/show-branch.c:678:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            PARSE_OPT_OPTARG | PARSE_OPT_NONEG,
                            ^
/datasets/git/./parse-options.h:169:47: note: expanded from macro 'OPT_CALLBACK_F'
        { OPTION_CALLBACK, (s), (l), (v), (a), (h), (f), (cb) }
                                                     ^
/datasets/git/builtin/show-branch.c:689:8: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                ac = default_args.nr;
                     ^
/datasets/git/builtin/show-branch.c:695:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (all_heads)
                      ^
                       {
/datasets/git/builtin/show-branch.c:702:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (independent || merge_base)
                                              ^
                                               {
/datasets/git/builtin/show-branch.c:705:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (reflog && ((0 < extra) || all_heads || all_remotes))
                                                                        ^
                                                                         {
/datasets/git/builtin/show-branch.c:716:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (with_current_branch && reflog)
                                          ^
                                           {
/datasets/git/builtin/show-branch.c:721:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ac <= topics && all_heads + all_remotes == 0)
                                                         ^
                                                          {
/datasets/git/builtin/show-branch.c:726:9: warning: variable 'ref' is not initialized [cppcoreguidelines-init-variables]
                char *ref;
                      ^
                          = NULL
/datasets/git/builtin/show-branch.c:739:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!*av)
                                 ^
                                  {
/datasets/git/builtin/show-branch.c:742:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ac != 1)
                            ^
                             {
/datasets/git/builtin/show-branch.c:745:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (MAX_REVS < reflog)
                                      ^
                                       {
/datasets/git/builtin/show-branch.c:749:22: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                if (!dwim_ref(*av, strlen(*av), &oid, &ref, 0))
                                   ^
/datasets/git/builtin/show-branch.c:749:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!dwim_ref(*av, strlen(*av), &oid, &ref, 0))
                                                               ^
                                                                {
/datasets/git/builtin/show-branch.c:754:10: warning: variable 'ep' is not initialized [cppcoreguidelines-init-variables]
                        char *ep;
                              ^
                                 = NULL
/datasets/git/builtin/show-branch.c:754:10: warning: variable name 'ep' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/show-branch.c:755:11: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        base = strtoul(reflog_base, &ep, 10);
                               ^
/datasets/git/builtin/show-branch.c:755:37: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        base = strtoul(reflog_base, &ep, 10);
                                                         ^
/datasets/git/builtin/show-branch.c:758:17: warning: variable 'at' is not initialized [cppcoreguidelines-init-variables]
                                timestamp_t at;
                                            ^
                                               = 0
/datasets/git/builtin/show-branch.c:758:17: warning: variable name 'at' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/show-branch.c:766:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < reflog; i++) {
                ^
/datasets/git/builtin/show-branch.c:766:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'reflog' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < reflog; i++) {
                            ^
/datasets/git/builtin/show-branch.c:767:10: warning: variable 'logmsg' is not initialized [cppcoreguidelines-init-variables]
                        char *logmsg;
                              ^
                                     = NULL
/datasets/git/builtin/show-branch.c:768:10: warning: variable 'nth_desc' is not initialized [cppcoreguidelines-init-variables]
                        char *nth_desc;
                              ^
                                       = NULL
/datasets/git/builtin/show-branch.c:769:16: warning: variable 'msg' is not initialized [cppcoreguidelines-init-variables]
                        const char *msg;
                                    ^
                                        = NULL
/datasets/git/builtin/show-branch.c:770:10: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
                        char *end;
                              ^
                                  = NULL
/datasets/git/builtin/show-branch.c:771:16: warning: variable 'timestamp' is not initialized [cppcoreguidelines-init-variables]
                        timestamp_t timestamp;
                                    ^
                                              = 0
/datasets/git/builtin/show-branch.c:772:8: warning: variable 'tz' is not initialized [cppcoreguidelines-init-variables]
                        int tz;
                            ^
                               = 0
/datasets/git/builtin/show-branch.c:772:8: warning: variable name 'tz' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/show-branch.c:622:21: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
int cmd_show_branch(int ac, const char **av, const char *prefix)
                    ^
/datasets/git/builtin/show-branch.c:782:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (end)
                                ^
                                 {
/datasets/git/builtin/show-branch.c:799:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (0 < ac) {
                ^
/datasets/git/builtin/show-branch.c:799:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'ac' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (0 < ac) {
                       ^
/datasets/git/builtin/show-branch.c:803:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (all_heads + all_remotes)
                                            ^
                                             {
/datasets/git/builtin/show-branch.c:812:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; !has_head && i < ref_name_cnt; i++) {
                ^
/datasets/git/builtin/show-branch.c:816:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (rev_is_head(head, ref_name[i]))
                                                           ^
                                                            {
/datasets/git/builtin/show-branch.c:827:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "No revs to be shown.\n");
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/show-branch.c:827:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/show-branch.c:828:3: warning: function is not thread safe [concurrency-mt-unsafe]
                exit(0);
                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/show-branch.c:831:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (num_rev = 0; ref_name[num_rev]; num_rev++) {
        ^
/datasets/git/builtin/show-branch.c:833:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                unsigned int flag = 1u << (num_rev + REV_SHIFT);
                                    ^     ~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/show-branch.c:833:23: warning: integer literal has suffix 'u', which is not uppercase [hicpp-uppercase-literal-suffix,readability-uppercase-literal-suffix]
                unsigned int flag = 1u << (num_rev + REV_SHIFT);
                                    ^~
                                     U
/datasets/git/builtin/show-branch.c:835:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (MAX_REVS <= num_rev)
                                        ^
                                         {
/datasets/git/builtin/show-branch.c:839:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (get_oid(ref_name[num_rev], &revkey))
                                                        ^
                                                         {
/datasets/git/builtin/show-branch.c:842:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!commit)
                            ^
                             {
/datasets/git/builtin/show-branch.c:853:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (commit->object.flags == flag)
                                                 ^
                                                  {
/datasets/git/builtin/show-branch.c:857:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < num_rev; i++)
        ^
/datasets/git/builtin/show-branch.c:857:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < num_rev; i++)
                                     ^
                                      {
/datasets/git/builtin/show-branch.c:860:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (0 <= extra)
                       ^
                        {
/datasets/git/builtin/show-branch.c:865:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (merge_base)
                       ^
                        {
/datasets/git/builtin/show-branch.c:868:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (independent)
                        ^
                         {
/datasets/git/builtin/show-branch.c:874:8: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
                        int j;
                            ^
                              = 0
/datasets/git/builtin/show-branch.c:874:8: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/show-branch.c:877:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (extra < 0)
                                      ^
                                       {
/datasets/git/builtin/show-branch.c:881:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                for (j = 0; j < i; j++)
                                ^
/datasets/git/builtin/show-branch.c:881:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                for (j = 0; j < i; j++)
                                                       ^
                                                        {
/datasets/git/builtin/show-branch.c:893:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/builtin/show-branch.c:894:5: warning: 1st function call argument is an uninitialized value [clang-analyzer-core.CallAndMessage]
                                puts(reflog_msg[i]);
                                ^    ~~~~~~~~~~~~~
/datasets/git/builtin/show-branch.c:688:6: note: Assuming 'ac' is not equal to 1
        if (ac == 1 && default_args.nr) {
            ^~~~~~~
/datasets/git/builtin/show-branch.c:688:14: note: Left side of '&&' is false
        if (ac == 1 && default_args.nr) {
                    ^
/datasets/git/builtin/show-branch.c:695:6: note: Assuming 'all_heads' is 0
        if (all_heads)
            ^~~~~~~~~
/datasets/git/builtin/show-branch.c:695:2: note: Taking false branch
        if (all_heads)
        ^
/datasets/git/builtin/show-branch.c:698:6: note: Assuming 'extra' is 0
        if (extra || reflog) {
            ^~~~~
/datasets/git/builtin/show-branch.c:698:6: note: Left side of '||' is false
/datasets/git/builtin/show-branch.c:698:15: note: Assuming 'reflog' is 0
        if (extra || reflog) {
                     ^~~~~~
/datasets/git/builtin/show-branch.c:698:2: note: Taking false branch
        if (extra || reflog) {
        ^
/datasets/git/builtin/show-branch.c:716:6: note: Assuming 'with_current_branch' is 0
        if (with_current_branch && reflog)
            ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/show-branch.c:716:26: note: Left side of '&&' is false
        if (with_current_branch && reflog)
                                ^
/datasets/git/builtin/show-branch.c:721:6: note: Assuming 'ac' is > 'topics'
        if (ac <= topics && all_heads + all_remotes == 0)
            ^~~~~~~~~~~~
/datasets/git/builtin/show-branch.c:721:19: note: Left side of '&&' is false
        if (ac <= topics && all_heads + all_remotes == 0)
                         ^
/datasets/git/builtin/show-branch.c:724:6: note: 'reflog' is 0
        if (reflog) {
            ^~~~~~
/datasets/git/builtin/show-branch.c:724:2: note: Taking false branch
        if (reflog) {
        ^
/datasets/git/builtin/show-branch.c:799:10: note: Assuming 'ac' is <= 0
                while (0 < ac) {
                       ^~~~~~
/datasets/git/builtin/show-branch.c:799:3: note: Loop condition is false. Execution continues on line 803
                while (0 < ac) {
                ^
/datasets/git/builtin/show-branch.c:803:7: note: Assuming the condition is false
                if (all_heads + all_remotes)
                    ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/show-branch.c:803:3: note: Taking false branch
                if (all_heads + all_remotes)
                ^
/datasets/git/builtin/show-branch.c:810:6: note: 'with_current_branch' is 0
        if (with_current_branch && head) {
            ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/show-branch.c:810:26: note: Left side of '&&' is false
        if (with_current_branch && head) {
                                ^
/datasets/git/builtin/show-branch.c:826:6: note: Assuming 'ref_name_cnt' is not equal to 0
        if (!ref_name_cnt) {
            ^~~~~~~~~~~~~
/datasets/git/builtin/show-branch.c:826:2: note: Taking false branch
        if (!ref_name_cnt) {
        ^
/datasets/git/builtin/show-branch.c:831:2: note: Loop condition is true.  Entering loop body
        for (num_rev = 0; ref_name[num_rev]; num_rev++) {
        ^
/datasets/git/builtin/show-branch.c:835:3: note: Taking false branch
                if (MAX_REVS <= num_rev)
                ^
/datasets/git/builtin/show-branch.c:839:7: note: Assuming the condition is false
                if (get_oid(ref_name[num_rev], &revkey))
                    ^
/datasets/git/./refs/../cache.h:1487:28: note: expanded from macro 'get_oid'
#define get_oid(str, oid)               repo_get_oid(the_repository, str, oid)
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/show-branch.c:839:3: note: Taking false branch
                if (get_oid(ref_name[num_rev], &revkey))
                ^
/datasets/git/builtin/show-branch.c:842:7: note: Assuming 'commit' is non-null
                if (!commit)
                    ^~~~~~~
/datasets/git/builtin/show-branch.c:842:3: note: Taking false branch
                if (!commit)
                ^
/datasets/git/builtin/show-branch.c:845:3: note: Calling 'repo_parse_commit'
                parse_commit(commit);
                ^
/datasets/git/./negotiator/../commit.h:114:28: note: expanded from macro 'parse_commit'
#define parse_commit(item) repo_parse_commit(the_repository, item)
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./negotiator/../commit.h:103:9: note: Assigning value, which participates in a condition later
        return repo_parse_commit_gently(r, item, 0);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/show-branch.c:845:3: note: Returning from 'repo_parse_commit'
                parse_commit(commit);
                ^
/datasets/git/./negotiator/../commit.h:114:28: note: expanded from macro 'parse_commit'
#define parse_commit(item) repo_parse_commit(the_repository, item)
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/show-branch.c:853:7: note: Assuming 'flag' is not equal to field 'flags'
                if (commit->object.flags == flag)
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/show-branch.c:853:3: note: Taking false branch
                if (commit->object.flags == flag)
                ^
/datasets/git/builtin/show-branch.c:831:2: note: Loop condition is true.  Entering loop body
        for (num_rev = 0; ref_name[num_rev]; num_rev++) {
        ^
/datasets/git/builtin/show-branch.c:835:3: note: Taking false branch
                if (MAX_REVS <= num_rev)
                ^
/datasets/git/builtin/show-branch.c:839:7: note: Assuming the condition is false
                if (get_oid(ref_name[num_rev], &revkey))
                    ^
/datasets/git/./refs/../cache.h:1487:28: note: expanded from macro 'get_oid'
#define get_oid(str, oid)               repo_get_oid(the_repository, str, oid)
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/show-branch.c:839:3: note: Taking false branch
                if (get_oid(ref_name[num_rev], &revkey))
                ^
/datasets/git/builtin/show-branch.c:842:7: note: Assuming 'commit' is non-null
                if (!commit)
                    ^~~~~~~
/datasets/git/builtin/show-branch.c:842:3: note: Taking false branch
                if (!commit)
                ^
/datasets/git/builtin/show-branch.c:845:3: note: Calling 'repo_parse_commit'
                parse_commit(commit);
                ^
/datasets/git/./negotiator/../commit.h:114:28: note: expanded from macro 'parse_commit'
#define parse_commit(item) repo_parse_commit(the_repository, item)
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./negotiator/../commit.h:103:9: note: Assigning value, which participates in a condition later
        return repo_parse_commit_gently(r, item, 0);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/show-branch.c:845:3: note: Returning from 'repo_parse_commit'
                parse_commit(commit);
                ^
/datasets/git/./negotiator/../commit.h:114:28: note: expanded from macro 'parse_commit'
#define parse_commit(item) repo_parse_commit(the_repository, item)
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/show-branch.c:853:7: note: Assuming 'flag' is not equal to field 'flags'
                if (commit->object.flags == flag)
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/show-branch.c:853:3: note: Taking false branch
                if (commit->object.flags == flag)
                ^
/datasets/git/builtin/show-branch.c:831:2: note: Loop condition is false. Execution continues on line 857
        for (num_rev = 0; ref_name[num_rev]; num_rev++) {
        ^
/datasets/git/builtin/show-branch.c:857:2: note: Loop condition is true.  Entering loop body
        for (i = 0; i < num_rev; i++)
        ^
/datasets/git/builtin/show-branch.c:857:2: note: Loop condition is true.  Entering loop body
/datasets/git/builtin/show-branch.c:857:2: note: Loop condition is false. Execution continues on line 860
/datasets/git/builtin/show-branch.c:860:11: note: 'extra' is >= 0
        if (0 <= extra)
                 ^~~~~
/datasets/git/builtin/show-branch.c:860:2: note: Taking true branch
        if (0 <= extra)
        ^
/datasets/git/builtin/show-branch.c:865:6: note: Assuming 'merge_base' is 0
        if (merge_base)
            ^~~~~~~~~~
/datasets/git/builtin/show-branch.c:865:2: note: Taking false branch
        if (merge_base)
        ^
/datasets/git/builtin/show-branch.c:868:6: note: Assuming 'independent' is 0
        if (independent)
            ^~~~~~~~~~~
/datasets/git/builtin/show-branch.c:868:2: note: Taking false branch
        if (independent)
        ^
/datasets/git/builtin/show-branch.c:872:10: note: 'num_rev' is > 1
        if (1 < num_rev || extra < 0) {
                ^~~~~~~
/datasets/git/builtin/show-branch.c:872:18: note: Left side of '||' is true
        if (1 < num_rev || extra < 0) {
                        ^
/datasets/git/builtin/show-branch.c:873:8: note: The value 0 is assigned to 'i'
                for (i = 0; i < num_rev; i++) {
                     ^~~~~
/datasets/git/builtin/show-branch.c:873:3: note: Loop condition is true.  Entering loop body
                for (i = 0; i < num_rev; i++) {
                ^
/datasets/git/builtin/show-branch.c:875:49: note: Left side of '&&' is false
                        int is_head = rev_is_head(head, ref_name[i]) &&
                                                                     ^
/datasets/git/builtin/show-branch.c:877:8: note: 'extra' is >= 0
                        if (extra < 0)
                            ^~~~~
/datasets/git/builtin/show-branch.c:877:4: note: Taking false branch
                        if (extra < 0)
                        ^
/datasets/git/builtin/show-branch.c:881:5: note: Loop condition is false. Execution continues on line 883
                                for (j = 0; j < i; j++)
                                ^
/datasets/git/builtin/show-branch.c:885:12: note: 'is_head' is 0
                                       is_head ? '*' : '!',
                                       ^~~~~~~
/datasets/git/builtin/show-branch.c:885:12: note: '?' condition is false
/datasets/git/builtin/show-branch.c:886:12: note: Calling 'get_color_reset_code'
                                       get_color_reset_code(), ref_name[i]);
                                       ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/show-branch.c:48:6: note: Value assigned to 'reflog', which participates in a condition later
        if (want_color(showbranch_use_color))
            ^
/datasets/git/./color.h:112:31: note: expanded from macro 'want_color'
#define want_color(colorbool) want_color_fd(1, (colorbool))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/show-branch.c:48:6: note: Assuming the condition is false
        if (want_color(showbranch_use_color))
            ^
/datasets/git/./color.h:112:31: note: expanded from macro 'want_color'
#define want_color(colorbool) want_color_fd(1, (colorbool))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/show-branch.c:48:2: note: Taking false branch
        if (want_color(showbranch_use_color))
        ^
/datasets/git/builtin/show-branch.c:886:12: note: Returning from 'get_color_reset_code'
                                       get_color_reset_code(), ref_name[i]);
                                       ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/show-branch.c:889:8: note: Assuming 'reflog' is not equal to 0
                        if (!reflog) {
                            ^~~~~~~
/datasets/git/builtin/show-branch.c:889:4: note: Taking false branch
                        if (!reflog) {
                        ^
/datasets/git/builtin/show-branch.c:894:5: note: 1st function call argument is an uninitialized value
                                puts(reflog_msg[i]);
                                ^    ~~~~~~~~~~~~~
/datasets/git/builtin/show-branch.c:896:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (is_head)
                                    ^
                                     {
/datasets/git/builtin/show-branch.c:900:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = 0; i < num_rev; i++)
                        ^
/datasets/git/builtin/show-branch.c:900:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (i = 0; i < num_rev; i++)
                                                     ^
                                                      {
/datasets/git/builtin/show-branch.c:905:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (extra < 0)
                      ^
                       {
/datasets/git/builtin/show-branch.c:906:3: warning: function is not thread safe [concurrency-mt-unsafe]
                exit(0);
                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/show-branch.c:912:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!sha1_name && !no_name)
                                   ^
                                    {
/datasets/git/builtin/show-branch.c:915:13: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        all_mask = ((1u << (REV_SHIFT + num_rev)) - 1);
                   ^
/datasets/git/builtin/show-branch.c:915:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        all_mask = ((1u << (REV_SHIFT + num_rev)) - 1);
                     ^     ~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/show-branch.c:915:15: warning: integer literal has suffix 'u', which is not uppercase [hicpp-uppercase-literal-suffix,readability-uppercase-literal-suffix]
        all_mask = ((1u << (REV_SHIFT + num_rev)) - 1);
                     ^~
                      U
/datasets/git/builtin/show-branch.c:916:13: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        all_revs = all_mask & ~((1u << REV_SHIFT) - 1);
                   ^
/datasets/git/builtin/show-branch.c:916:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        all_revs = all_mask & ~((1u << REV_SHIFT) - 1);
                   ^~~~~~~~
/datasets/git/builtin/show-branch.c:916:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        all_revs = all_mask & ~((1u << REV_SHIFT) - 1);
                                 ^
/datasets/git/builtin/show-branch.c:916:27: warning: integer literal has suffix 'u', which is not uppercase [hicpp-uppercase-literal-suffix,readability-uppercase-literal-suffix]
        all_revs = all_mask & ~((1u << REV_SHIFT) - 1);
                                 ^~
                                  U
/datasets/git/builtin/show-branch.c:921:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                int is_merge_point = ((this_flag & all_revs) == all_revs);
                                       ^~~~~~~~~
/datasets/git/builtin/show-branch.c:923:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                shown_merge_point |= is_merge_point;
                ^~~~~~~~~~~~~~~~~
/datasets/git/builtin/show-branch.c:930:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            (this_flag & (1u << REV_SHIFT)))
                             ^~~~~~~~~
/datasets/git/builtin/show-branch.c:930:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            (this_flag & (1u << REV_SHIFT)))
                                          ^
/datasets/git/builtin/show-branch.c:930:22: warning: integer literal has suffix 'u', which is not uppercase [hicpp-uppercase-literal-suffix,readability-uppercase-literal-suffix]
                            (this_flag & (1u << REV_SHIFT)))
                                          ^~
                                           U
/datasets/git/builtin/show-branch.c:930:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            (this_flag & (1u << REV_SHIFT)))
                                                            ^
                                                             {
/datasets/git/builtin/show-branch.c:933:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            omit_in_dense(commit, rev, num_rev))
                                                                ^
                                                                 {
/datasets/git/builtin/show-branch.c:935:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = 0; i < num_rev; i++) {
                        ^
/datasets/git/builtin/show-branch.c:936:9: warning: variable 'mark' is not initialized [cppcoreguidelines-init-variables]
                                int mark;
                                    ^
                                         = 0
/datasets/git/builtin/show-branch.c:937:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (!(this_flag & (1u << (i + REV_SHIFT))))
                                      ^~~~~~~~~
/datasets/git/builtin/show-branch.c:937:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (!(this_flag & (1u << (i + REV_SHIFT))))
                                                   ^     ~~~~~~~~~~~~~~~
/datasets/git/builtin/show-branch.c:937:24: warning: integer literal has suffix 'u', which is not uppercase [hicpp-uppercase-literal-suffix,readability-uppercase-literal-suffix]
                                if (!(this_flag & (1u << (i + REV_SHIFT))))
                                                   ^~
                                                    U
/datasets/git/builtin/show-branch.c:937:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!(this_flag & (1u << (i + REV_SHIFT))))
                                                                           ^
                                                                            {
/datasets/git/builtin/show-branch.c:939:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                else if (is_merge)
                                                  ^
                                                   {
/datasets/git/builtin/show-branch.c:941:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                else if (i == head_at)
                                                      ^
                                                       {
/datasets/git/builtin/show-branch.c:943:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                else
                                    ^
                                     {
/datasets/git/builtin/show-branch.c:945:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (mark == ' ')
                                                ^
                                                 {
/datasets/git/builtin/show-branch.c:947:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                else
                                    ^
                                     {
/datasets/git/builtin/show-branch.c:956:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (shown_merge_point && --extra < 0)
                                                     ^
                                                      {
builtin/show-index.c:11:5: warning: function 'cmd_show_index' has cognitive complexity of 52 (threshold 25) [readability-function-cognitive-complexity]
int cmd_show_index(int argc, const char **argv, const char *prefix)
    ^
builtin/show-index.c:28:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (hash_name) {
        ^
builtin/show-index.c:30:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (hash_algo == GIT_HASH_UNKNOWN)
                ^
builtin/show-index.c:37:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (fread(top_index, 2 * 4, 1, stdin) != 1)
        ^
builtin/show-index.c:39:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (top_index[0] == htonl(PACK_IDX_SIGNATURE)) {
        ^
builtin/show-index.c:41:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (version < 2 || version > 2)
                ^
builtin/show-index.c:41:19: note: +1
                if (version < 2 || version > 2)
                                ^
builtin/show-index.c:43:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (fread(top_index, 256 * 4, 1, stdin) != 1)
                ^
builtin/show-index.c:45:4: note: +1, nesting level increased to 1
        } else {
          ^
builtin/show-index.c:47:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (fread(&top_index[2], 254 * 4, 1, stdin) != 1)
                ^
builtin/show-index.c:51:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < 256; i++) {
        ^
builtin/show-index.c:53:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (n < nr)
                ^
builtin/show-index.c:57:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (version == 1) {
        ^
builtin/show-index.c:58:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < nr; i++) {
                ^
builtin/show-index.c:61:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (fread(entry, 4 + hashsz, 1, stdin) != 1)
                        ^
builtin/show-index.c:66:4: note: +1, nesting level increased to 1
        } else {
          ^
builtin/show-index.c:74:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < nr; i++) {
                ^
builtin/show-index.c:75:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (fread(entries[i].oid.hash, hashsz, 1, stdin) != 1)
                        ^
builtin/show-index.c:79:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < nr; i++)
                ^
builtin/show-index.c:80:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (fread(&entries[i].crc, 4, 1, stdin) != 1)
                        ^
builtin/show-index.c:82:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < nr; i++)
                ^
builtin/show-index.c:83:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (fread(&entries[i].off, 4, 1, stdin) != 1)
                        ^
builtin/show-index.c:85:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < nr; i++) {
                ^
builtin/show-index.c:88:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!(off & 0x80000000)) {
                        ^
builtin/show-index.c:90:6: note: +1, nesting level increased to 3
                        } else {
                          ^
builtin/show-index.c:92:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if ((off & 0x7fffffff) != off64_nr)
                                ^
builtin/show-index.c:94:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (fread(off64, 8, 1, stdin) != 1)
                                ^
/datasets/git/builtin/show-index.c:13:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/show-index.c:13:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/show-index.c:14:11: warning: variable 'nr' is not initialized [cppcoreguidelines-init-variables]
        unsigned nr;
                 ^
                    = 0
/datasets/git/builtin/show-index.c:14:11: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/show-index.c:15:15: warning: variable 'version' is not initialized [cppcoreguidelines-init-variables]
        unsigned int version;
                     ^
                             = 0
/datasets/git/builtin/show-index.c:16:32: warning: 256 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        static unsigned int top_index[256];
                                      ^
/datasets/git/builtin/show-index.c:17:11: warning: variable 'hashsz' is not initialized [cppcoreguidelines-init-variables]
        unsigned hashsz;
                 ^
                        = 0
/datasets/git/builtin/show-index.c:19:6: warning: variable 'hash_algo' is not initialized [cppcoreguidelines-init-variables]
        int hash_algo;
            ^
                      = 0
/datasets/git/builtin/show-index.c:26:2: warning: Value stored to 'argc' is never read [clang-analyzer-deadcode.DeadStores]
        argc = parse_options(argc, argv, prefix, show_index_options, show_index_usage, 0);
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/show-index.c:26:2: note: Value stored to 'argc' is never read
        argc = parse_options(argc, argv, prefix, show_index_options, show_index_usage, 0);
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/show-index.c:30:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (hash_algo == GIT_HASH_UNKNOWN)
                                                  ^
                                                   {
/datasets/git/builtin/show-index.c:37:23: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        if (fread(top_index, 2 * 4, 1, stdin) != 1)
                             ^
/datasets/git/builtin/show-index.c:37:23: note: make conversion explicit to silence this warning
        if (fread(top_index, 2 * 4, 1, stdin) != 1)
                             ^~~~~
                             (unsigned long)( )
/datasets/git/builtin/show-index.c:37:23: note: perform multiplication in a wider type
        if (fread(top_index, 2 * 4, 1, stdin) != 1)
                             ^
                             (long)
/datasets/git/builtin/show-index.c:37:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fread(top_index, 2 * 4, 1, stdin) != 1)
                                                   ^
                                                    {
/datasets/git/builtin/show-index.c:41:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (version < 2 || version > 2)
                                               ^
                                                {
/datasets/git/builtin/show-index.c:43:24: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                if (fread(top_index, 256 * 4, 1, stdin) != 1)
                                     ^
/datasets/git/builtin/show-index.c:43:24: note: make conversion explicit to silence this warning
                if (fread(top_index, 256 * 4, 1, stdin) != 1)
                                     ^~~~~~~
                                     (unsigned long)( )
/datasets/git/builtin/show-index.c:43:24: note: perform multiplication in a wider type
                if (fread(top_index, 256 * 4, 1, stdin) != 1)
                                     ^~~
                                     (long)
/datasets/git/builtin/show-index.c:43:24: warning: 256 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (fread(top_index, 256 * 4, 1, stdin) != 1)
                                     ^
/datasets/git/builtin/show-index.c:43:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fread(top_index, 256 * 4, 1, stdin) != 1)
                                                             ^
                                                              {
/datasets/git/builtin/show-index.c:47:28: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                if (fread(&top_index[2], 254 * 4, 1, stdin) != 1)
                                         ^
/datasets/git/builtin/show-index.c:47:28: note: make conversion explicit to silence this warning
                if (fread(&top_index[2], 254 * 4, 1, stdin) != 1)
                                         ^~~~~~~
                                         (unsigned long)( )
/datasets/git/builtin/show-index.c:47:28: note: perform multiplication in a wider type
                if (fread(&top_index[2], 254 * 4, 1, stdin) != 1)
                                         ^~~
                                         (long)
/datasets/git/builtin/show-index.c:47:28: warning: 254 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (fread(&top_index[2], 254 * 4, 1, stdin) != 1)
                                         ^
/datasets/git/builtin/show-index.c:47:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fread(&top_index[2], 254 * 4, 1, stdin) != 1)
                                                                 ^
                                                                  {
/datasets/git/builtin/show-index.c:51:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < 256; i++) {
        ^
/datasets/git/builtin/show-index.c:51:18: warning: 256 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        for (i = 0; i < 256; i++) {
                        ^
/datasets/git/builtin/show-index.c:52:12: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
                unsigned n = ntohl(top_index[i]);
                         ^
/datasets/git/builtin/show-index.c:14:2: note: inferred assignment of ID-dependent value from ID-dependent variable n [altera-id-dependent-backward-branch]
        unsigned nr;
        ^
/datasets/git/builtin/show-index.c:53:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (n < nr)
                           ^
                            {
/datasets/git/builtin/show-index.c:58:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < nr; i++) {
                ^
/datasets/git/builtin/show-index.c:58:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < nr; i++) {
                            ^
/datasets/git/builtin/show-index.c:59:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        unsigned int offset, entry[(GIT_MAX_RAWSZ + 4) / sizeof(unsigned int)];
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/show-index.c:59:17: warning: variable 'offset' is not initialized [cppcoreguidelines-init-variables]
                        unsigned int offset, entry[(GIT_MAX_RAWSZ + 4) / sizeof(unsigned int)];
                                     ^
/datasets/git/builtin/show-index.c:14:2: note: inferred assignment of ID-dependent value from ID-dependent variable n [altera-id-dependent-backward-branch]
        unsigned nr;
        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/show-index.c:61:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (fread(entry, 4 + hashsz, 1, stdin) != 1)
                                                                    ^
                                                                     {
/datasets/git/builtin/show-index.c:68:3: warning: accessing fields in struct '' is inefficient due to poor alignment; currently aligned to 4 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
                struct {
                ^
/datasets/git/builtin/show-index.c:68:3: note: use "__attribute__((aligned(64)))" to align struct '' to 64 bytes
/datasets/git/builtin/show-index.c:72:6: warning: variable 'entries' is not initialized [cppcoreguidelines-init-variables]
                } *entries;
                   ^
                           = NULL
/datasets/git/builtin/show-index.c:74:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < nr; i++) {
                ^
/datasets/git/builtin/show-index.c:74:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < nr; i++) {
                            ^
/datasets/git/builtin/show-index.c:75:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (fread(entries[i].oid.hash, hashsz, 1, stdin) != 1)
                                                                              ^
                                                                               {
/datasets/git/builtin/show-index.c:79:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < nr; i++)
                ^
/datasets/git/builtin/show-index.c:79:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < nr; i++)
                            ^
/datasets/git/builtin/show-index.c:79:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < nr; i++)
                                        ^
                                         {
/datasets/git/builtin/show-index.c:80:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (fread(&entries[i].crc, 4, 1, stdin) != 1)
                                                                     ^
                                                                      {
/datasets/git/builtin/show-index.c:82:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < nr; i++)
                ^
/datasets/git/builtin/show-index.c:14:2: note: inferred assignment of ID-dependent value from ID-dependent variable n [altera-id-dependent-backward-branch]
        unsigned nr;
        ^
/datasets/git/builtin/show-index.c:82:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < nr; i++)
                            ^
/datasets/git/builtin/show-index.c:82:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < nr; i++)
                                        ^
                                         {
/datasets/git/builtin/show-index.c:83:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (fread(&entries[i].off, 4, 1, stdin) != 1)
                                                                     ^
                                                                      {
/datasets/git/builtin/show-index.c:85:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < nr; i++) {
                ^
/datasets/git/builtin/show-index.c:85:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < nr; i++) {
                            ^
/datasets/git/builtin/show-index.c:86:13: warning: variable 'offset' is not initialized [cppcoreguidelines-init-variables]
                        uint64_t offset;
                                 ^
                                        = 0
/datasets/git/builtin/show-index.c:88:16: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        if (!(off & 0x80000000)) {
                                    ^
/datasets/git/builtin/show-index.c:92:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if ((off & 0x7fffffff) != off64_nr)
                                     ^     ~~~~~~~~~~
/datasets/git/builtin/show-index.c:92:16: warning: 0x7fffffff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                if ((off & 0x7fffffff) != off64_nr)
                                           ^
/datasets/git/builtin/show-index.c:92:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if ((off & 0x7fffffff) != off64_nr)
                                                                   ^
                                                                    {
/datasets/git/builtin/show-index.c:94:22: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                if (fread(off64, 8, 1, stdin) != 1)
                                                 ^
/datasets/git/builtin/show-index.c:94:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (fread(off64, 8, 1, stdin) != 1)
                                                                   ^
                                                                    {
/datasets/git/builtin/show-index.c:96:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                offset = (((uint64_t)ntohl(off64[0])) << 32) |
                                          ^                              ~~
/datasets/git/builtin/show-index.c:96:46: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                offset = (((uint64_t)ntohl(off64[0])) << 32) |
                                                                         ^
/datasets/git/builtin/show-ref.c:4:1: warning: #includes are not sorted properly [llvm-include-order]
#include "refs.h"
^        ~~~~~~~~
         "object-store.h"
/datasets/git/builtin/show-ref.c:19:12: warning: variable 'deref_tags' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int deref_tags, show_head, tags_only, heads_only, found_match, verify,
           ^
/datasets/git/builtin/show-ref.c:19:24: warning: variable 'show_head' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int deref_tags, show_head, tags_only, heads_only, found_match, verify,
                       ^
/datasets/git/builtin/show-ref.c:19:35: warning: variable 'tags_only' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int deref_tags, show_head, tags_only, heads_only, found_match, verify,
                                  ^
/datasets/git/builtin/show-ref.c:19:46: warning: variable 'heads_only' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int deref_tags, show_head, tags_only, heads_only, found_match, verify,
                                             ^
/datasets/git/builtin/show-ref.c:19:58: warning: variable 'found_match' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int deref_tags, show_head, tags_only, heads_only, found_match, verify,
                                                         ^
/datasets/git/builtin/show-ref.c:19:71: warning: variable 'verify' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int deref_tags, show_head, tags_only, heads_only, found_match, verify,
                                                                      ^
/datasets/git/builtin/show-ref.c:20:5: warning: variable 'quiet' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
           quiet, hash_only, abbrev, exclude_arg;
           ^
/datasets/git/builtin/show-ref.c:20:12: warning: variable 'hash_only' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
           quiet, hash_only, abbrev, exclude_arg;
                  ^
/datasets/git/builtin/show-ref.c:20:23: warning: variable 'abbrev' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
           quiet, hash_only, abbrev, exclude_arg;
                             ^
/datasets/git/builtin/show-ref.c:20:31: warning: variable 'exclude_arg' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
           quiet, hash_only, abbrev, exclude_arg;
                                     ^
/datasets/git/builtin/show-ref.c:21:21: warning: variable 'pattern' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char **pattern;
                    ^
/datasets/git/builtin/show-ref.c:21:21: warning: variable 'pattern' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/show-ref.c:22:20: warning: variable 'exclude_existing_arg' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *exclude_existing_arg;
                   ^
/datasets/git/builtin/show-ref.c:26:14: warning: variable 'hex' is not initialized [cppcoreguidelines-init-variables]
        const char *hex;
                    ^
                        = NULL
/datasets/git/builtin/show-ref.c:29:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!has_object_file(oid))
                                  ^
                                   {
/datasets/git/builtin/show-ref.c:33:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (quiet)
                  ^
                   {
/datasets/git/builtin/show-ref.c:37:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (hash_only)
                      ^
                       {
/datasets/git/builtin/show-ref.c:39:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/show-ref.c:42:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!deref_tags)
                        ^
                         {
/datasets/git/builtin/show-ref.c:54:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (show_head && !strcmp(refname, "HEAD"))
                                                  ^
                                                   {
/datasets/git/builtin/show-ref.c:58:16: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int reflen = strlen(refname);
                             ^
/datasets/git/builtin/show-ref.c:59:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                const char **p = pattern, *m;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/show-ref.c:59:3: note: inferred assignment of ID-dependent value from ID-dependent variable p [altera-id-dependent-backward-branch]
/datasets/git/builtin/show-ref.c:59:16: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                const char **p = pattern, *m;
                             ^
/datasets/git/builtin/show-ref.c:59:30: warning: variable 'm' is not initialized [cppcoreguidelines-init-variables]
                const char **p = pattern, *m;
                                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/show-ref.c:59:30: warning: variable name 'm' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/show-ref.c:60:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while ((m = *p++) != NULL) {
                ^
/datasets/git/builtin/show-ref.c:60:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'm' and may cause performance degradation [altera-id-dependent-backward-branch]
                while ((m = *p++) != NULL) {
                       ^
/datasets/git/builtin/show-ref.c:61:14: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        int len = strlen(m);
                                  ^
/datasets/git/builtin/show-ref.c:62:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (len > reflen)
                                         ^
                                          {
/datasets/git/builtin/show-ref.c:64:8: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                        if (memcmp(m, refname + reflen - len, len))
                            ^
                                                                   != 0
/datasets/git/builtin/show-ref.c:64:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (memcmp(m, refname + reflen - len, len))
                                                                   ^
                                                                    {
/datasets/git/builtin/show-ref.c:66:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (len == reflen)
                                          ^
                                           {
/datasets/git/builtin/show-ref.c:68:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (refname[reflen - len - 1] == '/')
                                                             ^
                                                              {
/datasets/git/builtin/show-ref.c:103:11: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        char buf[1024];
                 ^
/datasets/git/builtin/show-ref.c:104:25: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int matchlen = match ? strlen(match) : 0;
                               ^
/datasets/git/builtin/show-ref.c:108:9: warning: variable 'ref' is not initialized [cppcoreguidelines-init-variables]
                char *ref;
                      ^
                          = NULL
/datasets/git/builtin/show-ref.c:109:13: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int len = strlen(buf);
                          ^
/datasets/git/builtin/show-ref.c:111:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (len > 0 && buf[len - 1] == '\n')
                                                    ^
                                                     {
/datasets/git/builtin/show-ref.c:117:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (ref = buf + len; buf < ref; ref--)
                ^
/datasets/git/builtin/show-ref.c:117:25: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (ref = buf + len; buf < ref; ref--)
                                      ^
/datasets/git/builtin/show-ref.c:117:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (ref = buf + len; buf < ref; ref--)
                                                       ^
                                                        {
/datasets/git/builtin/show-ref.c:118:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (isspace(ref[-1]))
                            ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/builtin/show-ref.c:118:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (isspace(ref[-1]))
                                             ^
                                              {
/datasets/git/builtin/show-ref.c:121:17: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        int reflen = buf + len - ref;
                                     ^
/datasets/git/builtin/show-ref.c:122:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (reflen < matchlen)
                                              ^
                                               {
/datasets/git/builtin/show-ref.c:124:8: warning: function 'strncmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                        if (strncmp(ref, match, matchlen))
                            ^
                                                          != 0
/datasets/git/builtin/show-ref.c:124:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (strncmp(ref, match, matchlen))
                                                          ^
                                                           {
/datasets/git/builtin/show-ref.c:142:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!arg)
                 ^
                  {
/datasets/git/builtin/show-ref.c:150:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/show-ref.c:157:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "tags", &tags_only, N_("only show tags (can be combined with heads)")),
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/show-ref.c:158:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "heads", &heads_only, N_("only show heads (can be combined with tags)")),
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/show-ref.c:159:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "verify", &verify, N_("stricter reference checking, "
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/show-ref.c:161:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_HIDDEN_BOOL('h', NULL, &show_head,
        ^
/datasets/git/./parse-options.h:185:16: note: expanded from macro 'OPT_HIDDEN_BOOL'
                                      (h), PARSE_OPT_NOARG | PARSE_OPT_HIDDEN, NULL, 1}
                                           ^~~~~~~~~~~~~~~
/datasets/git/builtin/show-ref.c:163:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL(0, "head", &show_head,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/show-ref.c:165:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_BOOL('d', "dereference", &deref_tags,
        ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/show-ref.c:171:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT__QUIET(&quiet,
        ^
/datasets/git/./parse-options.h:360:31: note: expanded from macro 'OPT__QUIET'
#define OPT__QUIET(var, h)    OPT_COUNTUP('q', "quiet",   (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/show-ref.c:175:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PARSE_OPT_OPTARG | PARSE_OPT_NONEG, exclude_existing_callback),
                       ^
/datasets/git/./parse-options.h:169:47: note: expanded from macro 'OPT_CALLBACK_F'
        { OPTION_CALLBACK, (s), (l), (v), (a), (h), (f), (cb) }
                                                     ^
/datasets/git/builtin/show-ref.c:179:5: warning: function 'cmd_show_ref' has cognitive complexity of 26 (threshold 25) [readability-function-cognitive-complexity]
int cmd_show_ref(int argc, const char **argv, const char *prefix)
    ^
/datasets/git/builtin/show-ref.c:186:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (exclude_arg)
        ^
/datasets/git/builtin/show-ref.c:190:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!*pattern)
        ^
/datasets/git/builtin/show-ref.c:193:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (verify) {
        ^
/datasets/git/builtin/show-ref.c:194:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!pattern)
                ^
/datasets/git/builtin/show-ref.c:196:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (*pattern) {
                ^
/datasets/git/builtin/show-ref.c:199:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if ((starts_with(*pattern, "refs/") || !strcmp(*pattern, "HEAD")) &&
                        ^
/datasets/git/builtin/show-ref.c:199:70: note: +1
                        if ((starts_with(*pattern, "refs/") || !strcmp(*pattern, "HEAD")) &&
                                                                                          ^
/datasets/git/builtin/show-ref.c:199:40: note: +1
                        if ((starts_with(*pattern, "refs/") || !strcmp(*pattern, "HEAD")) &&
                                                            ^
/datasets/git/builtin/show-ref.c:203:9: note: +1, nesting level increased to 3
                        else if (!quiet)
                             ^
/datasets/git/builtin/show-ref.c:205:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/builtin/show-ref.c:212:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (show_head)
        ^
/datasets/git/builtin/show-ref.c:214:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (heads_only || tags_only) {
        ^
/datasets/git/builtin/show-ref.c:214:17: note: +1
        if (heads_only || tags_only) {
                       ^
/datasets/git/builtin/show-ref.c:215:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (heads_only)
                ^
/datasets/git/builtin/show-ref.c:217:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (tags_only)
                ^
/datasets/git/builtin/show-ref.c:219:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/show-ref.c:222:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!found_match) {
        ^
/datasets/git/builtin/show-ref.c:223:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (verify && !quiet)
                ^
/datasets/git/builtin/show-ref.c:223:14: note: +1
                if (verify && !quiet)
                           ^
/datasets/git/builtin/show-ref.c:183:2: warning: Value stored to 'argc' is never read [clang-analyzer-deadcode.DeadStores]
        argc = parse_options(argc, argv, prefix, show_ref_options,
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/show-ref.c:183:2: note: Value stored to 'argc' is never read
        argc = parse_options(argc, argv, prefix, show_ref_options,
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/show-ref.c:186:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (exclude_arg)
                        ^
                         {
/datasets/git/builtin/show-ref.c:190:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!*pattern)
                      ^
                       {
/datasets/git/builtin/show-ref.c:194:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!pattern)
                             ^
                              {
/datasets/git/builtin/show-ref.c:196:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (*pattern) {
                ^
/datasets/git/builtin/show-ref.c:196:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'pattern' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (*pattern) {
                       ^
/datasets/git/builtin/show-ref.c:203:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (!quiet)
                                        ^
                                         {
/datasets/git/builtin/show-ref.c:205:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/builtin/show-ref.c:212:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (show_head)
                      ^
                       {
/datasets/git/builtin/show-ref.c:215:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (heads_only)
                               ^
                                {
/datasets/git/builtin/show-ref.c:217:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (tags_only)
                              ^
                               {
/datasets/git/builtin/show-ref.c:223:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (verify && !quiet)
                                     ^
                                      {
/datasets/git/builtin/sparse-checkout.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "cache.h"
^        ~~~~~~~~~
         "cache-tree.h"
/datasets/git/builtin/sparse-checkout.c:20:20: warning: variable 'empty_base' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *empty_base = "";
                   ^
/datasets/git/builtin/sparse-checkout.c:27:42: warning: parameter name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
static void write_patterns_to_file(FILE *fp, struct pattern_list *pl)
                                         ^
/datasets/git/builtin/sparse-checkout.c:27:67: warning: parameter name 'pl' is too short, expected at least 3 characters [readability-identifier-length]
static void write_patterns_to_file(FILE *fp, struct pattern_list *pl)
                                                                  ^
/datasets/git/builtin/sparse-checkout.c:29:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/sparse-checkout.c:29:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/sparse-checkout.c:31:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < pl->nr; i++) {
        ^
/datasets/git/builtin/sparse-checkout.c:32:24: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct path_pattern *p = pl->patterns[i];
                                     ^
/datasets/git/builtin/sparse-checkout.c:34:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (p->flags & PATTERN_FLAG_NEGATIVE)
                    ^
/datasets/git/builtin/sparse-checkout.c:34:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (p->flags & PATTERN_FLAG_NEGATIVE)
                                                     ^
                                                      {
/datasets/git/builtin/sparse-checkout.c:35:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(fp, "!");
                        ^~~~~~~~~~~~~~~~
/datasets/git/builtin/sparse-checkout.c:35:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/sparse-checkout.c:37:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(fp, "%s", p->pattern);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/sparse-checkout.c:37:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/sparse-checkout.c:39:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (p->flags & PATTERN_FLAG_MUSTBEDIR)
                    ^
/datasets/git/builtin/sparse-checkout.c:39:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (p->flags & PATTERN_FLAG_MUSTBEDIR)
                                                      ^
                                                       {
/datasets/git/builtin/sparse-checkout.c:40:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(fp, "/");
                        ^~~~~~~~~~~~~~~~
/datasets/git/builtin/sparse-checkout.c:40:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/sparse-checkout.c:42:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(fp, "\n");
                ^~~~~~~~~~~~~~~~~
/datasets/git/builtin/sparse-checkout.c:42:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/sparse-checkout.c:56:22: warning: variable name 'pl' is too short, expected at least 3 characters [readability-identifier-length]
        struct pattern_list pl;
                            ^
/datasets/git/builtin/sparse-checkout.c:57:8: warning: variable 'sparse_filename' is not initialized [cppcoreguidelines-init-variables]
        char *sparse_filename;
              ^
                              = NULL
/datasets/git/builtin/sparse-checkout.c:58:6: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        int res;
            ^
                = 0
/datasets/git/builtin/sparse-checkout.c:82:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                struct pattern_entry *pe;
                ^
/datasets/git/builtin/sparse-checkout.c:60:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!core_apply_sparse_checkout)
                                        ^
                                         {
/datasets/git/builtin/sparse-checkout.c:63:2: warning: Value stored to 'argc' is never read [clang-analyzer-deadcode.DeadStores]
        argc = parse_options(argc, argv, prefix,
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/sparse-checkout.c:63:2: note: Value stored to 'argc' is never read
        argc = parse_options(argc, argv, prefix,
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/sparse-checkout.c:67:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&pl, 0, sizeof(pl));
        ^~~~~~
/datasets/git/builtin/sparse-checkout.c:67:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&pl, 0, sizeof(pl));
        ^~~~~~
/datasets/git/builtin/sparse-checkout.c:81:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/builtin/sparse-checkout.c:81:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/sparse-checkout.c:82:25: warning: variable 'pe' is not initialized [cppcoreguidelines-init-variables]
                struct pattern_entry *pe;
                                      ^
                                         = NULL
/datasets/git/builtin/sparse-checkout.c:82:25: warning: variable name 'pe' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/sparse-checkout.c:84:22: warning: variable name 'sl' is too short, expected at least 3 characters [readability-identifier-length]
                struct string_list sl = STRING_LIST_INIT_DUP;
                                   ^
/datasets/git/builtin/sparse-checkout.c:86:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                hashmap_for_each_entry(&pl.recursive_hashmap, &iter, pe, ent) {
                ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/builtin/sparse-checkout.c:86:56: warning: backward branch (for loop) is ID-dependent due to variable reference to 'pe' and may cause performance degradation [altera-id-dependent-backward-branch]
                hashmap_for_each_entry(&pl.recursive_hashmap, &iter, pe, ent) {
                                                                     ^
/datasets/git/builtin/sparse-checkout.c:93:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < sl.nr; i++) {
                ^
/datasets/git/builtin/sparse-checkout.c:107:65: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void clean_tracked_sparse_directories(struct repository *r)
                                                                ^
/datasets/git/builtin/sparse-checkout.c:109:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, was_full = 0;
        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/sparse-checkout.c:109:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, was_full = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/sparse-checkout.c:109:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/sparse-checkout.c:111:9: warning: variable 'pathlen' is not initialized [cppcoreguidelines-init-variables]
        size_t pathlen;
               ^
                       = 0
/datasets/git/builtin/sparse-checkout.c:112:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/builtin/sparse-checkout.c:119:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!r || !r->index || !r->worktree)
                                            ^
                                             {
/datasets/git/builtin/sparse-checkout.c:122:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !r->index->sparse_checkout_patterns->use_cone_patterns)
                                                                   ^
                                                                    {
/datasets/git/builtin/sparse-checkout.c:137:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (convert_to_sparse(r->index, SPARSE_INDEX_MEMORY_ONLY))
                                                ^
/datasets/git/./sparse-index.h:5:35: note: expanded from macro 'SPARSE_INDEX_MEMORY_ONLY'
#define SPARSE_INDEX_MEMORY_ONLY (1 << 0)
                                  ^
/datasets/git/builtin/sparse-checkout.c:137:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (convert_to_sparse(r->index, SPARSE_INDEX_MEMORY_ONLY))
                                                                          ^
                                                                           {
/datasets/git/builtin/sparse-checkout.c:152:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < r->index->cache_nr; i++) {
        ^
/datasets/git/builtin/sparse-checkout.c:112:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct string_list_item *item;
        ^
/datasets/git/builtin/sparse-checkout.c:153:23: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                struct cache_entry *ce = r->index->cache[i];
                                    ^
/datasets/git/builtin/sparse-checkout.c:156:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    repo_file_exists(r, ce->name))
                                                  ^
                                                   {
/datasets/git/builtin/sparse-checkout.c:160:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(item, &sparse_dirs) {
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/sparse-checkout.c:160:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(item, &sparse_dirs) {
                                  ^
/datasets/git/builtin/sparse-checkout.c:162:19: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct pathspec p = { 0 };
                                ^
/datasets/git/builtin/sparse-checkout.c:163:17: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
                struct strvec s = STRVEC_INIT;
                              ^
/datasets/git/builtin/sparse-checkout.c:168:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                dir.flags |= DIR_SHOW_IGNORED_TOO;
                ^            ~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/sparse-checkout.c:173:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                parse_pathspec(&p, PATHSPEC_GLOB, 0, NULL, s.v);
                                   ^
/datasets/git/./pathspec.h:10:25: note: expanded from macro 'PATHSPEC_GLOB'
#define PATHSPEC_GLOB           (1<<3)
                                 ^
/datasets/git/builtin/sparse-checkout.c:197:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (was_full)
                     ^
                      {
/datasets/git/builtin/sparse-checkout.c:201:58: warning: parameter name 'pl' is too short, expected at least 3 characters [readability-identifier-length]
static int update_working_directory(struct pattern_list *pl)
                                                         ^
/datasets/git/builtin/sparse-checkout.c:203:30: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        enum update_sparsity_result result;
                                    ^
/datasets/git/builtin/sparse-checkout.c:204:30: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
        struct unpack_trees_options o;
                                    ^
/datasets/git/builtin/sparse-checkout.c:206:21: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        struct repository *r = the_repository;
                           ^
/datasets/git/builtin/sparse-checkout.c:209:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_index_unborn(r->index))
                                      ^
                                       {
/datasets/git/builtin/sparse-checkout.c:214:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&o, 0, sizeof(o));
        ^~~~~~
/datasets/git/builtin/sparse-checkout.c:214:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&o, 0, sizeof(o));
        ^~~~~~
/datasets/git/builtin/sparse-checkout.c:231:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (result == UPDATE_SPARSITY_WARNINGS)
                                               ^
                                                {
/datasets/git/builtin/sparse-checkout.c:237:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (result == UPDATE_SPARSITY_SUCCESS)
                                              ^
                                               {
/datasets/git/builtin/sparse-checkout.c:238:44: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                write_locked_index(r->index, &lock_file, COMMIT_LOCK);
                                                         ^
/datasets/git/./refs/../cache.h:744:23: note: expanded from macro 'COMMIT_LOCK'
#define COMMIT_LOCK             (1 << 0)
                                 ^
/datasets/git/builtin/sparse-checkout.c:250:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        char *p = pattern;
        ^
/datasets/git/builtin/sparse-checkout.c:239:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/sparse-checkout.c:250:8: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        char *p = pattern;
              ^
/datasets/git/builtin/sparse-checkout.c:253:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*p) {
        ^
/datasets/git/builtin/sparse-checkout.c:253:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (*p) {
               ^
/datasets/git/builtin/sparse-checkout.c:254:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (is_glob_special(*p))
                    ^
/datasets/git/./git-compat-util.h:1224:28: note: expanded from macro 'is_glob_special'
#define is_glob_special(x) sane_istest(x,GIT_GLOB_SPECIAL)
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/builtin/sparse-checkout.c:254:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_glob_special(*p))
                                        ^
                                         {
/datasets/git/builtin/sparse-checkout.c:264:38: warning: parameter name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
static void write_cone_to_file(FILE *fp, struct pattern_list *pl)
                                     ^
/datasets/git/builtin/sparse-checkout.c:264:63: warning: parameter name 'pl' is too short, expected at least 3 characters [readability-identifier-length]
static void write_cone_to_file(FILE *fp, struct pattern_list *pl)
                                                              ^
/datasets/git/builtin/sparse-checkout.c:266:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/sparse-checkout.c:266:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/sparse-checkout.c:267:24: warning: variable 'pe' is not initialized [cppcoreguidelines-init-variables]
        struct pattern_entry *pe;
                              ^
                                 = NULL
/datasets/git/builtin/sparse-checkout.c:267:24: warning: variable name 'pe' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/sparse-checkout.c:269:21: warning: variable name 'sl' is too short, expected at least 3 characters [readability-identifier-length]
        struct string_list sl = STRING_LIST_INIT_DUP;
                           ^
/datasets/git/builtin/sparse-checkout.c:272:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        hashmap_for_each_entry(&pl->parent_hashmap, &iter, pe, ent) {
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/builtin/sparse-checkout.c:272:53: warning: backward branch (for loop) is ID-dependent due to variable reference to 'pe' and may cause performance degradation [altera-id-dependent-backward-branch]
        hashmap_for_each_entry(&pl->parent_hashmap, &iter, pe, ent) {
                                                           ^
/datasets/git/builtin/sparse-checkout.c:273:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (hashmap_get_entry(&pl->recursive_hashmap, pe, ent, NULL))
                                                                             ^
                                                                              {
/datasets/git/builtin/sparse-checkout.c:278:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                             &parent_pattern))
                                                              ^
                                                               {
/datasets/git/builtin/sparse-checkout.c:285:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(fp, "/*\n!/*/\n");
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/sparse-checkout.c:285:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/sparse-checkout.c:267:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct pattern_entry *pe;
        ^
/datasets/git/builtin/sparse-checkout.c:287:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < sl.nr; i++) {
        ^
/datasets/git/builtin/sparse-checkout.c:267:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct pattern_entry *pe;
        ^
/datasets/git/builtin/sparse-checkout.c:290:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strlen(pattern))
                                    ^
                                     {
/datasets/git/builtin/sparse-checkout.c:291:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(fp, "%s/\n!%s/*/\n", pattern, pattern);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/sparse-checkout.c:291:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/sparse-checkout.c:297:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        hashmap_for_each_entry(&pl->recursive_hashmap, &iter, pe, ent) {
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/builtin/sparse-checkout.c:297:56: warning: backward branch (for loop) is ID-dependent due to variable reference to 'pe' and may cause performance degradation [altera-id-dependent-backward-branch]
        hashmap_for_each_entry(&pl->recursive_hashmap, &iter, pe, ent) {
                                                              ^
/datasets/git/builtin/sparse-checkout.c:300:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                             &parent_pattern))
                                                              ^
                                                               {
/datasets/git/builtin/sparse-checkout.c:309:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < sl.nr; i++) {
        ^
/datasets/git/builtin/sparse-checkout.c:311:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(fp, "%s/\n", pattern);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/sparse-checkout.c:311:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/sparse-checkout.c:316:59: warning: parameter name 'pl' is too short, expected at least 3 characters [readability-identifier-length]
static int write_patterns_and_update(struct pattern_list *pl)
                                                          ^
/datasets/git/builtin/sparse-checkout.c:318:8: warning: variable 'sparse_filename' is not initialized [cppcoreguidelines-init-variables]
        char *sparse_filename;
              ^
                              = NULL
/datasets/git/builtin/sparse-checkout.c:319:8: warning: variable 'fp' is not initialized [cppcoreguidelines-init-variables]
        FILE *fp;
              ^
                 = NULL
/datasets/git/builtin/sparse-checkout.c:319:8: warning: variable name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/sparse-checkout.c:320:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/builtin/sparse-checkout.c:320:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/sparse-checkout.c:321:19: warning: variable name 'lk' is too short, expected at least 3 characters [readability-identifier-length]
        struct lock_file lk = LOCK_INIT;
                         ^
/datasets/git/builtin/sparse-checkout.c:322:6: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        int result;
            ^
                   = 0
/datasets/git/builtin/sparse-checkout.c:326:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (safe_create_leading_directories(sparse_filename))
                                                             ^
                                                              {
/datasets/git/builtin/sparse-checkout.c:343:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (core_sparse_checkout_cone)
                                      ^
                                       {
/datasets/git/builtin/sparse-checkout.c:345:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/sparse-checkout.c:348:2: warning: the value returned by this function should be used [cert-err33-c]
        fflush(fp);
        ^~~~~~~~~~
/datasets/git/builtin/sparse-checkout.c:348:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/sparse-checkout.c:376:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                "true" : "false"))
                                                                  ^
                                                                   {
/datasets/git/builtin/sparse-checkout.c:379:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mode == MODE_NO_PATTERNS)
                                     ^
                                      {
/datasets/git/builtin/sparse-checkout.c:385:25: warning: 2 adjacent parameters of 'update_modes' of similar type ('int *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int update_modes(int *cone_mode, int *sparse_index)
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/sparse-checkout.c:385:30: note: the first parameter in the range is 'cone_mode'
static int update_modes(int *cone_mode, int *sparse_index)
                             ^~~~~~~~~
/datasets/git/builtin/sparse-checkout.c:385:46: note: the last parameter in the range is 'sparse_index'
static int update_modes(int *cone_mode, int *sparse_index)
                                             ^~~~~~~~~~~~
/datasets/git/builtin/sparse-checkout.c:385:46: warning: pointer parameter 'sparse_index' can be pointer to const [readability-non-const-parameter]
static int update_modes(int *cone_mode, int *sparse_index)
                                             ^
                                        const 
/datasets/git/builtin/sparse-checkout.c:387:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int mode, record_mode;
        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/sparse-checkout.c:387:6: warning: variable 'mode' is not initialized [cppcoreguidelines-init-variables]
        int mode, record_mode;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/sparse-checkout.c:387:12: warning: variable 'record_mode' is not initialized [cppcoreguidelines-init-variables]
        int mode, record_mode;
                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/sparse-checkout.c:393:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*cone_mode == -1 && core_apply_sparse_checkout)
                                                           ^
                                                            {
/datasets/git/builtin/sparse-checkout.c:405:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (record_mode && set_config(mode))
                                            ^
                                             {
/datasets/git/builtin/sparse-checkout.c:410:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (set_sparse_index_config(the_repository, *sparse_index) < 0)
                                                                               ^
                                                                                {
/datasets/git/builtin/sparse-checkout.c:417:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!*sparse_index)
                                   ^
                                    {
/datasets/git/builtin/sparse-checkout.c:429:15: warning: accessing fields in struct 'sparse_checkout_init_opts' is inefficient due to poor alignment; currently aligned to 4 bytes, but recommended alignment is 8 bytes [altera-struct-pack-align]
static struct sparse_checkout_init_opts {
              ^
/datasets/git/builtin/sparse-checkout.c:429:15: note: use "__attribute__((aligned(8)))" to align struct 'sparse_checkout_init_opts' to 8 bytes
/datasets/git/builtin/sparse-checkout.c:432:3: warning: variable 'init_opts' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} init_opts;
  ^
/datasets/git/builtin/sparse-checkout.c:436:22: warning: variable name 'pl' is too short, expected at least 3 characters [readability-identifier-length]
        struct pattern_list pl;
                            ^
/datasets/git/builtin/sparse-checkout.c:437:8: warning: variable 'sparse_filename' is not initialized [cppcoreguidelines-init-variables]
        char *sparse_filename;
              ^
                              = NULL
/datasets/git/builtin/sparse-checkout.c:438:6: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        int res;
            ^
                = 0
/datasets/git/builtin/sparse-checkout.c:443:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "cone", &init_opts.cone_mode,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/sparse-checkout.c:445:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "sparse-index", &init_opts.sparse_index,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/sparse-checkout.c:455:2: warning: Value stored to 'argc' is never read [clang-analyzer-deadcode.DeadStores]
        argc = parse_options(argc, argv, prefix,
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/sparse-checkout.c:455:2: note: Value stored to 'argc' is never read
        argc = parse_options(argc, argv, prefix,
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/sparse-checkout.c:459:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (update_modes(&init_opts.cone_mode, &init_opts.sparse_index))
                                                                        ^
                                                                         {
/datasets/git/builtin/sparse-checkout.c:462:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&pl, 0, sizeof(pl));
        ^~~~~~
/datasets/git/builtin/sparse-checkout.c:462:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&pl, 0, sizeof(pl));
        ^~~~~~
/datasets/git/builtin/sparse-checkout.c:474:9: warning: variable 'fp' is not initialized [cppcoreguidelines-init-variables]
                FILE *fp;
                      ^
                         = NULL
/datasets/git/builtin/sparse-checkout.c:474:9: warning: variable name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/sparse-checkout.c:477:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (safe_create_leading_directories(sparse_filename))
                                                                     ^
                                                                      {
/datasets/git/builtin/sparse-checkout.c:481:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!fp)
                        ^
                         {
/datasets/git/builtin/sparse-checkout.c:485:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(fp, "/*\n!/*/\n");
                ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/sparse-checkout.c:485:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/sparse-checkout.c:486:3: warning: the value returned by this function should be used [cert-err33-c]
                fclose(fp);
                ^~~~~~~~~~
/datasets/git/builtin/sparse-checkout.c:486:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/sparse-checkout.c:499:59: warning: parameter name 'pl' is too short, expected at least 3 characters [readability-identifier-length]
static void insert_recursive_pattern(struct pattern_list *pl, struct strbuf *path)
                                                          ^
/datasets/git/builtin/sparse-checkout.c:501:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct pattern_entry *e = xmalloc(sizeof(*e));
        ^
/datasets/git/builtin/sparse-checkout.c:501:24: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
        struct pattern_entry *e = xmalloc(sizeof(*e));
                              ^
/datasets/git/builtin/sparse-checkout.c:508:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (e->patternlen) {
        ^
/datasets/git/builtin/sparse-checkout.c:508:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'e' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (e->patternlen) {
               ^
/datasets/git/builtin/sparse-checkout.c:511:10: warning: variable 'newlen' is not initialized [cppcoreguidelines-init-variables]
                size_t newlen;
                       ^
                              = 0
/datasets/git/builtin/sparse-checkout.c:513:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!slash || slash == e->pattern)
                                                  ^
                                                   {
/datasets/git/builtin/sparse-checkout.c:522:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!hashmap_get_entry(&pl->parent_hashmap, e, ent, NULL))
                                                                          ^
                                                                           {
/datasets/git/builtin/sparse-checkout.c:527:78: warning: parameter name 'pl' is too short, expected at least 3 characters [readability-identifier-length]
static void strbuf_to_cone_pattern(struct strbuf *line, struct pattern_list *pl)
                                                                             ^
/datasets/git/builtin/sparse-checkout.c:533:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strbuf_normalize_path(line))
                                        ^
                                         {
/datasets/git/builtin/sparse-checkout.c:536:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!line->len)
                       ^
                        {
/datasets/git/builtin/sparse-checkout.c:539:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (line->buf[0] != '/')
                                ^
                                 {
/datasets/git/builtin/sparse-checkout.c:545:13: warning: function 'add_patterns_from_input' has cognitive complexity of 29 (threshold 25) [readability-function-cognitive-complexity]
static void add_patterns_from_input(struct pattern_list *pl,
            ^
/datasets/git/builtin/sparse-checkout.c:550:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (core_sparse_checkout_cone) {
        ^
/datasets/git/builtin/sparse-checkout.c:557:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (use_stdin) {
                ^
/datasets/git/builtin/sparse-checkout.c:559:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (!strbuf_getline(&line, stdin)) {
                        ^
/datasets/git/builtin/sparse-checkout.c:560:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (line.buf[0] == '"') {
                                ^
/datasets/git/builtin/sparse-checkout.c:562:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (unquote_c_style(&unquoted, line.buf, NULL))
                                        ^
/datasets/git/builtin/sparse-checkout.c:573:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/sparse-checkout.c:574:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (i = 0; i < argc; i++) {
                        ^
/datasets/git/builtin/sparse-checkout.c:580:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/sparse-checkout.c:581:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (use_stdin) {
                ^
/datasets/git/builtin/sparse-checkout.c:584:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (!strbuf_getline(&line, stdin)) {
                        ^
/datasets/git/builtin/sparse-checkout.c:589:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/sparse-checkout.c:590:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (i = 0; i < argc; i++)
                        ^
/datasets/git/builtin/sparse-checkout.c:545:58: warning: parameter name 'pl' is too short, expected at least 3 characters [readability-identifier-length]
static void add_patterns_from_input(struct pattern_list *pl,
                                                         ^
/datasets/git/builtin/sparse-checkout.c:549:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/sparse-checkout.c:549:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/sparse-checkout.c:551:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                struct strbuf line = STRBUF_INIT;
                ^
/datasets/git/builtin/sparse-checkout.c:559:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (!strbuf_getline(&line, stdin)) {
                        ^
/datasets/git/builtin/sparse-checkout.c:559:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'line' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (!strbuf_getline(&line, stdin)) {
                               ^
/datasets/git/builtin/sparse-checkout.c:562:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        if (unquote_c_style(&unquoted, line.buf, NULL))
                                                                                       ^
                                                                                        {
/datasets/git/builtin/sparse-checkout.c:574:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = 0; i < argc; i++) {
                        ^
/datasets/git/builtin/sparse-checkout.c:582:4: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                        struct strbuf line = STRBUF_INIT;
                        ^
/datasets/git/builtin/sparse-checkout.c:584:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (!strbuf_getline(&line, stdin)) {
                        ^
/datasets/git/builtin/sparse-checkout.c:584:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'line' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (!strbuf_getline(&line, stdin)) {
                               ^
/datasets/git/builtin/sparse-checkout.c:585:12: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
                                size_t len;
                                       ^
                                           = 0
/datasets/git/builtin/sparse-checkout.c:590:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = 0; i < argc; i++)
                        ^
/datasets/git/builtin/sparse-checkout.c:590:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (i = 0; i < argc; i++)
                                                  ^
                                                   {
/datasets/git/builtin/sparse-checkout.c:602:29: warning: parameter name 'pl' is too short, expected at least 3 characters [readability-identifier-length]
                                   struct pattern_list *pl,
                                                        ^
/datasets/git/builtin/sparse-checkout.c:606:24: warning: variable 'pe' is not initialized [cppcoreguidelines-init-variables]
        struct pattern_entry *pe;
                              ^
                                 = NULL
/datasets/git/builtin/sparse-checkout.c:606:24: warning: variable name 'pe' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/sparse-checkout.c:613:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&existing, 0, sizeof(existing));
        ^~~~~~
/datasets/git/builtin/sparse-checkout.c:613:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&existing, 0, sizeof(existing));
        ^~~~~~
/datasets/git/builtin/sparse-checkout.c:617:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                           &existing, NULL, 0))
                                                               ^
                                                                {
/datasets/git/builtin/sparse-checkout.c:621:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!existing.use_cone_patterns)
                                        ^
                                         {
/datasets/git/builtin/sparse-checkout.c:624:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        hashmap_for_each_entry(&existing.recursive_hashmap, &iter, pe, ent) {
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/builtin/sparse-checkout.c:624:61: warning: backward branch (for loop) is ID-dependent due to variable reference to 'pe' and may cause performance degradation [altera-id-dependent-backward-branch]
        hashmap_for_each_entry(&existing.recursive_hashmap, &iter, pe, ent) {
                                                                   ^
/datasets/git/builtin/sparse-checkout.c:640:27: warning: parameter name 'pl' is too short, expected at least 3 characters [readability-identifier-length]
                                 struct pattern_list *pl,
                                                      ^
/datasets/git/builtin/sparse-checkout.c:645:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                           pl, NULL, 0))
                                                        ^
                                                         {
/datasets/git/builtin/sparse-checkout.c:651:61: warning: 2 adjacent parameters of 'modify_pattern_list' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int modify_pattern_list(int argc, const char **argv, int use_stdin,
                                                            ^~~~~~~~~~~~~~
/datasets/git/builtin/sparse-checkout.c:651:65: note: the first parameter in the range is 'use_stdin'
static int modify_pattern_list(int argc, const char **argv, int use_stdin,
                                                                ^~~~~~~~~
/datasets/git/builtin/sparse-checkout.c:652:28: note: the last parameter in the range is 'm'
                               enum modify_type m)
                                                ^
/datasets/git/builtin/sparse-checkout.c:652:11: note: 'int' and 'enum modify_type' may be implicitly converted
                               enum modify_type m)
                               ^
/datasets/git/builtin/sparse-checkout.c:652:28: warning: parameter name 'm' is too short, expected at least 3 characters [readability-identifier-length]
                               enum modify_type m)
                                                ^
/datasets/git/builtin/sparse-checkout.c:654:6: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        int result;
            ^
                   = 0
/datasets/git/builtin/sparse-checkout.c:656:23: warning: variable name 'pl' is too short, expected at least 3 characters [readability-identifier-length]
        struct pattern_list *pl = xcalloc(1, sizeof(*pl));
                             ^
/datasets/git/builtin/sparse-checkout.c:658:2: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
        switch (m) {
        ^
/datasets/git/builtin/sparse-checkout.c:660:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (core_sparse_checkout_cone)
                                              ^
                                               {
/datasets/git/builtin/sparse-checkout.c:662:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/sparse-checkout.c:679:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (result && changed_config)
                                     ^
                                      {
/datasets/git/builtin/sparse-checkout.c:687:13: warning: function 'sanitize_paths' has cognitive complexity of 28 (threshold 25) [readability-function-cognitive-complexity]
static void sanitize_paths(int argc, const char **argv,
            ^
/datasets/git/builtin/sparse-checkout.c:692:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!argc)
        ^
/datasets/git/builtin/sparse-checkout.c:695:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (prefix && *prefix && core_sparse_checkout_cone) {
        ^
/datasets/git/builtin/sparse-checkout.c:695:24: note: +1
        if (prefix && *prefix && core_sparse_checkout_cone) {
                              ^
/datasets/git/builtin/sparse-checkout.c:702:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < argc; i++)
                ^
/datasets/git/builtin/sparse-checkout.c:706:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (skip_checks)
        ^
/datasets/git/builtin/sparse-checkout.c:709:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (prefix && *prefix && !core_sparse_checkout_cone)
        ^
/datasets/git/builtin/sparse-checkout.c:709:24: note: +1
        if (prefix && *prefix && !core_sparse_checkout_cone)
                              ^
/datasets/git/builtin/sparse-checkout.c:712:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (core_sparse_checkout_cone) {
        ^
/datasets/git/builtin/sparse-checkout.c:713:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < argc; i++) {
                ^
/datasets/git/builtin/sparse-checkout.c:714:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (argv[i][0] == '/')
                        ^
/datasets/git/builtin/sparse-checkout.c:716:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (argv[i][0] == '!')
                        ^
/datasets/git/builtin/sparse-checkout.c:718:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (strpbrk(argv[i], "*?[]"))
                        ^
/datasets/git/builtin/sparse-checkout.c:723:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < argc; i++) {
        ^
/datasets/git/builtin/sparse-checkout.c:728:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (pos < 0)
                ^
/datasets/git/builtin/sparse-checkout.c:731:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (S_ISSPARSEDIR(ce->ce_mode))
                ^
/datasets/git/builtin/sparse-checkout.c:734:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (core_sparse_checkout_cone)
                ^
/datasets/git/builtin/sparse-checkout.c:736:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/sparse-checkout.c:690:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/sparse-checkout.c:690:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/sparse-checkout.c:692:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!argc)
                  ^
                   {
/datasets/git/builtin/sparse-checkout.c:700:20: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int prefix_len = strlen(prefix);
                                 ^
/datasets/git/builtin/sparse-checkout.c:702:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < argc; i++)
                ^
/datasets/git/builtin/sparse-checkout.c:702:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < argc; i++)
                                          ^
                                           {
/datasets/git/builtin/sparse-checkout.c:706:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (skip_checks)
                        ^
                         {
/datasets/git/builtin/sparse-checkout.c:709:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prefix && *prefix && !core_sparse_checkout_cone)
                                                            ^
                                                             {
/datasets/git/builtin/sparse-checkout.c:713:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < argc; i++) {
                ^
/datasets/git/builtin/sparse-checkout.c:714:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (argv[i][0] == '/')
                                              ^
                                               {
/datasets/git/builtin/sparse-checkout.c:716:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (argv[i][0] == '!')
                                              ^
                                               {
/datasets/git/builtin/sparse-checkout.c:718:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (strpbrk(argv[i], "*?[]"))
                                                     ^
                                                      {
/datasets/git/builtin/sparse-checkout.c:723:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < argc; i++) {
        ^
/datasets/git/builtin/sparse-checkout.c:724:23: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
                struct cache_entry *ce;
                                    ^
                                       = NULL
/datasets/git/builtin/sparse-checkout.c:724:23: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/sparse-checkout.c:726:44: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int pos = index_name_pos(index, argv[i], strlen(argv[i]));
                                                         ^
/datasets/git/builtin/sparse-checkout.c:728:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pos < 0)
                            ^
                             {
/datasets/git/builtin/sparse-checkout.c:731:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (S_ISSPARSEDIR(ce->ce_mode))
                                               ^
                                                {
/datasets/git/builtin/sparse-checkout.c:734:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (core_sparse_checkout_cone)
                                              ^
                                               {
/datasets/git/builtin/sparse-checkout.c:736:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/sparse-checkout.c:746:15: warning: accessing fields in struct 'sparse_checkout_add_opts' is inefficient due to poor alignment; currently aligned to 4 bytes, but recommended alignment is 8 bytes [altera-struct-pack-align]
static struct sparse_checkout_add_opts {
              ^
/datasets/git/builtin/sparse-checkout.c:746:15: note: use "__attribute__((aligned(8)))" to align struct 'sparse_checkout_add_opts' to 8 bytes
/datasets/git/builtin/sparse-checkout.c:749:3: warning: variable 'add_opts' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} add_opts;
  ^
/datasets/git/builtin/sparse-checkout.c:754:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL_F(0, "skip-checks", &add_opts.skip_checks,
                ^
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/sparse-checkout.c:757:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "stdin", &add_opts.use_stdin,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/sparse-checkout.c:762:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!core_apply_sparse_checkout)
                                        ^
                                         {
/datasets/git/builtin/sparse-checkout.c:782:15: warning: accessing fields in struct 'sparse_checkout_set_opts' is inefficient due to poor alignment; currently aligned to 4 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
static struct sparse_checkout_set_opts {
              ^
/datasets/git/builtin/sparse-checkout.c:782:15: note: use "__attribute__((aligned(16)))" to align struct 'sparse_checkout_set_opts' to 16 bytes
/datasets/git/builtin/sparse-checkout.c:787:3: warning: variable 'set_opts' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} set_opts;
  ^
/datasets/git/builtin/sparse-checkout.c:795:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "cone", &set_opts.cone_mode,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/sparse-checkout.c:797:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "sparse-index", &set_opts.sparse_index,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/sparse-checkout.c:799:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL_F(0, "skip-checks", &set_opts.skip_checks,
                ^
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/sparse-checkout.c:802:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL_F(0, "stdin", &set_opts.use_stdin,
                ^
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/sparse-checkout.c:818:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (update_modes(&set_opts.cone_mode, &set_opts.sparse_index))
                                                                      ^
                                                                       {
/datasets/git/builtin/sparse-checkout.c:841:15: warning: accessing fields in struct 'sparse_checkout_reapply_opts' is inefficient due to poor alignment; currently aligned to 4 bytes, but recommended alignment is 8 bytes [altera-struct-pack-align]
static struct sparse_checkout_reapply_opts {
              ^
/datasets/git/builtin/sparse-checkout.c:841:15: note: use "__attribute__((aligned(8)))" to align struct 'sparse_checkout_reapply_opts' to 8 bytes
/datasets/git/builtin/sparse-checkout.c:844:3: warning: variable 'reapply_opts' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} reapply_opts;
  ^
/datasets/git/builtin/sparse-checkout.c:850:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "cone", &reapply_opts.cone_mode,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/sparse-checkout.c:852:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "sparse-index", &reapply_opts.sparse_index,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/sparse-checkout.c:857:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!core_apply_sparse_checkout)
                                        ^
                                         {
/datasets/git/builtin/sparse-checkout.c:863:2: warning: Value stored to 'argc' is never read [clang-analyzer-deadcode.DeadStores]
        argc = parse_options(argc, argv, prefix,
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/sparse-checkout.c:863:2: note: Value stored to 'argc' is never read
        argc = parse_options(argc, argv, prefix,
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/sparse-checkout.c:869:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (update_modes(&reapply_opts.cone_mode, &reapply_opts.sparse_index))
                                                                              ^
                                                                               {
/datasets/git/builtin/sparse-checkout.c:886:22: warning: variable name 'pl' is too short, expected at least 3 characters [readability-identifier-length]
        struct pattern_list pl;
                            ^
/datasets/git/builtin/sparse-checkout.c:900:2: warning: Value stored to 'argc' is never read [clang-analyzer-deadcode.DeadStores]
        argc = parse_options(argc, argv, prefix,
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/sparse-checkout.c:900:2: note: Value stored to 'argc' is never read
        argc = parse_options(argc, argv, prefix,
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/sparse-checkout.c:906:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&pl, 0, sizeof(pl));
        ^~~~~~
/datasets/git/builtin/sparse-checkout.c:906:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&pl, 0, sizeof(pl));
        ^~~~~~
/datasets/git/builtin/sparse-checkout.c:918:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (update_working_directory(&pl))
                                          ^
                                           {
/datasets/git/builtin/sparse-checkout.c:927:27: warning: variable name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
        parse_opt_subcommand_fn *fn = NULL;
                                 ^
/datasets/git/builtin/stash.c:3:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "cache-tree.h"
/datasets/git/builtin/stash.c:22:1: warning: replace macro with enum [modernize-macro-to-enum]
#define INCLUDE_ALL_FILES 2
^~~~~~~~
                          =
/datasets/git/builtin/stash.c:22:9: warning: macro 'INCLUDE_ALL_FILES' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define INCLUDE_ALL_FILES 2
        ^
/datasets/git/builtin/stash.c:58:2: warning: suspicious string literal, probably missing a comma [bugprone-suspicious-missing-comma]
        BUILTIN_STASH_PUSH_USAGE,
        ^
/datasets/git/builtin/stash.c:39:5: note: expanded from macro 'BUILTIN_STASH_PUSH_USAGE'
        N_("git stash [push [-p | --patch] [-S | --staged] [-k | --[no-]keep-index] [-q | --quiet]\n" \
           ^
/datasets/git/builtin/stash.c:117:22: warning: variable 'stash_index_path' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct strbuf stash_index_path = STRBUF_INIT;
                     ^
/datasets/git/builtin/stash.c:117:22: warning: initializing non-local variable with non-const expression depending on uninitialized non-local variable 'strbuf_slopbuf' [cppcoreguidelines-interfaces-global-init]
/datasets/git/builtin/stash.c:129:8: warning: accessing fields in struct 'stash_info' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct stash_info {
       ^
/datasets/git/builtin/stash.c:129:8: note: use "__attribute__((aligned(128)))" to align struct 'stash_info' to 128 bytes
/datasets/git/builtin/stash.c:157:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            get_oidf(&info->i_tree, "%s^2:", revision))
                                                       ^
                                                        {
/datasets/git/builtin/stash.c:163:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/builtin/stash.c:164:8: warning: variable 'end_of_rev' is not initialized [cppcoreguidelines-init-variables]
        char *end_of_rev;
              ^
                         = NULL
/datasets/git/builtin/stash.c:165:8: warning: variable 'expanded_ref' is not initialized [cppcoreguidelines-init-variables]
        char *expanded_ref;
              ^
                           = NULL
/datasets/git/builtin/stash.c:166:14: warning: variable 'revision' is not initialized [cppcoreguidelines-init-variables]
        const char *revision;
                    ^
                             = NULL
/datasets/git/builtin/stash.c:172:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/builtin/stash.c:172:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/stash.c:175:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < argc; i++)
                ^
/datasets/git/builtin/stash.c:175:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < argc; i++)
                                          ^
                                           {
/datasets/git/builtin/stash.c:185:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc == 1)
                      ^
                       {
/datasets/git/builtin/stash.c:203:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid(revision, &info->w_commit))
                                               ^
                                                {
/datasets/git/builtin/stash.c:213:31: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        ret = dwim_ref(symbolic.buf, symbolic.len, &dummy, &expanded_ref, 0);
                                     ^
/datasets/git/builtin/stash.c:233:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid(ref_stash, &obj))
                                     ^
                                      {
/datasets/git/builtin/stash.c:249:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc)
                 ^
                  {
/datasets/git/builtin/stash.c:256:49: warning: 2 adjacent parameters of 'reset_tree' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int reset_tree(struct object_id *i_tree, int update, int reset)
                                                ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/stash.c:256:53: note: the first parameter in the range is 'update'
static int reset_tree(struct object_id *i_tree, int update, int reset)
                                                    ^~~~~~
/datasets/git/builtin/stash.c:256:65: note: the last parameter in the range is 'reset'
static int reset_tree(struct object_id *i_tree, int update, int reset)
                                                                ^~~~~
/datasets/git/builtin/stash.c:260:19: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
        struct tree_desc t[MAX_UNPACK_TREES];
                         ^
/datasets/git/builtin/stash.c:261:15: warning: variable 'tree' is not initialized [cppcoreguidelines-init-variables]
        struct tree *tree;
                     ^
                          = NULL
/datasets/git/builtin/stash.c:265:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (refresh_index(&the_index, REFRESH_QUIET, NULL, NULL, NULL))
                                      ^
/datasets/git/./refs/../cache.h:923:43: note: expanded from macro 'REFRESH_QUIET'
#define REFRESH_QUIET                    (1 << 2) /* be quiet about it */
                                          ^
/datasets/git/builtin/stash.c:265:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (refresh_index(&the_index, REFRESH_QUIET, NULL, NULL, NULL))
                                                                       ^
                                                                        {
/datasets/git/builtin/stash.c:270:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&opts, 0, sizeof(opts));
        ^~~~~~
/datasets/git/builtin/stash.c:270:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&opts, 0, sizeof(opts));
        ^~~~~~
/datasets/git/builtin/stash.c:273:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_tree(tree))
                             ^
                              {
/datasets/git/builtin/stash.c:284:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (update)
                   ^
                    {
/datasets/git/builtin/stash.c:288:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unpack_trees(nr_trees, t, &opts))
                                             ^
                                              {
/datasets/git/builtin/stash.c:291:49: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (write_locked_index(&the_index, &lock_file, COMMIT_LOCK))
                                                       ^
/datasets/git/./refs/../cache.h:744:23: note: expanded from macro 'COMMIT_LOCK'
#define COMMIT_LOCK             (1 << 0)
                                 ^
/datasets/git/builtin/stash.c:291:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_locked_index(&the_index, &lock_file, COMMIT_LOCK))
                                                                    ^
                                                                     {
/datasets/git/builtin/stash.c:299:23: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
        struct child_process cp = CHILD_PROCESS_INIT;
                             ^
/datasets/git/builtin/stash.c:315:23: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
        struct child_process cp = CHILD_PROCESS_INIT;
                             ^
/datasets/git/builtin/stash.c:329:23: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
        struct child_process cp = CHILD_PROCESS_INIT;
                             ^
/datasets/git/builtin/stash.c:348:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/builtin/stash.c:352:55: warning: parameter name 'q' is too short, expected at least 3 characters [readability-identifier-length]
static void add_diff_to_buf(struct diff_queue_struct *q,
                                                      ^
/datasets/git/builtin/stash.c:353:29: warning: parameter 'options' is unused [misc-unused-parameters]
                            struct diff_options *options,
                                                 ^
/datasets/git/builtin/stash.c:356:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/stash.c:356:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/stash.c:358:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < q->nr; i++) {
        ^
/datasets/git/builtin/stash.c:359:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_path_a_directory(q->queue[i]->one->path))
                                                                ^
                                                                 {
/datasets/git/builtin/stash.c:371:6: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        int res;
            ^
                = 0
/datasets/git/builtin/stash.c:372:23: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
        struct child_process cp = CHILD_PROCESS_INIT;
                             ^
/datasets/git/builtin/stash.c:416:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/stash.c:416:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/stash.c:439:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < diff_queued_diff.nr; i++) {
        ^
/datasets/git/builtin/stash.c:440:25: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                struct diff_filepair *p;
                                      ^
                                        = NULL
/datasets/git/builtin/stash.c:440:25: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/stash.c:441:23: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
                struct cache_entry *ce;
                                    ^
                                       = NULL
/datasets/git/builtin/stash.c:441:23: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/stash.c:442:7: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
                int pos;
                    ^
                        = 0
/datasets/git/builtin/stash.c:447:10: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                     strlen(p->two->path));
                                     ^
/datasets/git/builtin/stash.c:457:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (pos >= 0 && ce_skip_worktree(the_index.cache[pos])) {
                                ^
/datasets/git/./refs/../cache.h:244:31: note: expanded from macro 'ce_skip_worktree'
#define ce_skip_worktree(ce) ((ce)->ce_flags & CE_SKIP_WORKTREE)
                              ^                ~~~~~~~~~~~~~~~~
/datasets/git/builtin/stash.c:458:16: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                        struct stat st;
                                    ^
/datasets/git/builtin/stash.c:464:9: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
                                int fd;
                                    ^
                                       = 0
/datasets/git/builtin/stash.c:464:9: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/stash.c:475:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (rename(ce->name, new_path.buf))
                                                                   ^
                                                                    {
/datasets/git/builtin/stash.c:481:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ce->ce_flags &= ~CE_SKIP_WORKTREE;
                        ^               ~~~~~~~~~~~~~~~~~
/datasets/git/builtin/stash.c:481:20: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                        ce->ce_flags &= ~CE_SKIP_WORKTREE;
                                        ^
/datasets/git/builtin/stash.c:481:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ce->ce_flags &= ~CE_SKIP_WORKTREE;
                                         ^
/datasets/git/./refs/../cache.h:190:31: note: expanded from macro 'CE_SKIP_WORKTREE'
#define CE_SKIP_WORKTREE     (1 << 30)
                              ^
/datasets/git/builtin/stash.c:493:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (pos < 0)
                                    ^
                                     {
/datasets/git/builtin/stash.c:511:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                               COMMIT_LOCK | SKIP_IF_UNCHANGED))
                               ^
/datasets/git/./refs/../cache.h:744:22: note: expanded from macro 'COMMIT_LOCK'
#define COMMIT_LOCK             (1 << 0)
                                ^~~~~~~~
/datasets/git/builtin/stash.c:511:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                               COMMIT_LOCK | SKIP_IF_UNCHANGED))
                                             ^
/datasets/git/./refs/../cache.h:745:28: note: expanded from macro 'SKIP_IF_UNCHANGED'
#define SKIP_IF_UNCHANGED       (1 << 1)
                                 ^
/datasets/git/builtin/stash.c:511:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                               COMMIT_LOCK | SKIP_IF_UNCHANGED))
                                                                ^
                                                                 {
/datasets/git/builtin/stash.c:515:12: warning: function 'do_apply_stash' has cognitive complexity of 33 (threshold 25) [readability-function-cognitive-complexity]
static int do_apply_stash(const char *prefix, struct stash_info *info,
           ^
/datasets/git/builtin/stash.c:527:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (repo_refresh_and_write_index(the_repository, REFRESH_QUIET, 0, 0,
        ^
/datasets/git/builtin/stash.c:531:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (write_cache_as_tree(&c_tree, 0, NULL))
        ^
/datasets/git/builtin/stash.c:534:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (index) {
        ^
/datasets/git/builtin/stash.c:535:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (oideq(&info->b_tree, &info->i_tree) ||
                ^
/datasets/git/builtin/stash.c:535:43: note: +1
                if (oideq(&info->b_tree, &info->i_tree) ||
                                                        ^
/datasets/git/builtin/stash.c:538:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/stash.c:541:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (diff_tree_binary(&out, &info->w_commit)) {
                        ^
/datasets/git/builtin/stash.c:549:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ret)
                        ^
/datasets/git/builtin/stash.c:555:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (write_cache_as_tree(&index_tree, 0, NULL))
                        ^
/datasets/git/builtin/stash.c:570:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (oideq(&info->b_tree, &c_tree))
        ^
/datasets/git/builtin/stash.c:573:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (quiet)
        ^
/datasets/git/builtin/stash.c:576:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (o.verbosity >= 3)
        ^
/datasets/git/builtin/stash.c:591:19: note: +1, including nesting penalty of 0, nesting level increased to 1
        ret = clean >= 0 ? !clean : clean;
                         ^
/datasets/git/builtin/stash.c:593:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ret < 0)
        ^
/datasets/git/builtin/stash.c:595:7: note: +1, nesting level increased to 1
        else if (write_locked_index(o.repo->index, &lock,
             ^
/datasets/git/builtin/stash.c:599:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ret) {
        ^
/datasets/git/builtin/stash.c:602:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (index)
                ^
/datasets/git/builtin/stash.c:605:3: note: +1
                goto restore_untracked;
                ^
/datasets/git/builtin/stash.c:608:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (has_index) {
        ^
/datasets/git/builtin/stash.c:609:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (reset_tree(&index_tree, 0, 0))
                ^
/datasets/git/builtin/stash.c:611:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/stash.c:616:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (info->has_u && restore_untracked(&info->u_tree))
        ^
/datasets/git/builtin/stash.c:616:18: note: +1
        if (info->has_u && restore_untracked(&info->u_tree))
                        ^
/datasets/git/builtin/stash.c:619:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!quiet) {
        ^
/datasets/git/builtin/stash.c:516:6: warning: 2 adjacent parameters of 'do_apply_stash' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                          int index, int quiet)
                          ^~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/stash.c:516:10: note: the first parameter in the range is 'index'
                          int index, int quiet)
                              ^~~~~
/datasets/git/builtin/stash.c:516:21: note: the last parameter in the range is 'quiet'
                          int index, int quiet)
                                         ^~~~~
/datasets/git/builtin/stash.c:518:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int clean, ret;
        ^~~~~~~~~~~~~~~
/datasets/git/builtin/stash.c:518:6: warning: variable 'clean' is not initialized [cppcoreguidelines-init-variables]
        int clean, ret;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/stash.c:518:13: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int clean, ret;
                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/stash.c:520:23: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
        struct merge_options o;
                             ^
/datasets/git/builtin/stash.c:523:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct tree *head, *merge, *merge_base;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/stash.c:523:15: warning: variable 'head' is not initialized [cppcoreguidelines-init-variables]
        struct tree *head, *merge, *merge_base;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/stash.c:523:22: warning: variable 'merge' is not initialized [cppcoreguidelines-init-variables]
        struct tree *head, *merge, *merge_base;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/stash.c:523:30: warning: variable 'merge_base' is not initialized [cppcoreguidelines-init-variables]
        struct tree *head, *merge, *merge_base;
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/stash.c:527:51: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (repo_refresh_and_write_index(the_repository, REFRESH_QUIET, 0, 0,
                                                         ^
/datasets/git/./refs/../cache.h:923:43: note: expanded from macro 'REFRESH_QUIET'
#define REFRESH_QUIET                    (1 << 2) /* be quiet about it */
                                          ^
/datasets/git/builtin/stash.c:528:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                         NULL, NULL, NULL))
                                                           ^
                                                            {
/datasets/git/builtin/stash.c:531:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_cache_as_tree(&c_tree, 0, NULL))
                                                  ^
                                                   {
/datasets/git/builtin/stash.c:549:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ret)
                                ^
                                 {
/datasets/git/builtin/stash.c:555:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (write_cache_as_tree(&index_tree, 0, NULL))
                                                                      ^
                                                                       {
/datasets/git/builtin/stash.c:570:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oideq(&info->b_tree, &c_tree))
                                          ^
                                           {
/datasets/git/builtin/stash.c:573:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (quiet)
                  ^
                   {
/datasets/git/builtin/stash.c:576:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (o.verbosity >= 3)
                             ^
                              {
/datasets/git/builtin/stash.c:593:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret < 0)
                    ^
                     {
/datasets/git/builtin/stash.c:596:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                      COMMIT_LOCK | SKIP_IF_UNCHANGED))
                                      ^
/datasets/git/./refs/../cache.h:744:22: note: expanded from macro 'COMMIT_LOCK'
#define COMMIT_LOCK             (1 << 0)
                                ^~~~~~~~
/datasets/git/builtin/stash.c:596:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                      COMMIT_LOCK | SKIP_IF_UNCHANGED))
                                                    ^
/datasets/git/./refs/../cache.h:745:28: note: expanded from macro 'SKIP_IF_UNCHANGED'
#define SKIP_IF_UNCHANGED       (1 << 1)
                                 ^
/datasets/git/builtin/stash.c:596:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                      COMMIT_LOCK | SKIP_IF_UNCHANGED))
                                                                       ^
                                                                        {
/datasets/git/builtin/stash.c:602:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (index)
                          ^
                           {
/datasets/git/builtin/stash.c:609:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (reset_tree(&index_tree, 0, 0))
                                                  ^
                                                   {
/datasets/git/builtin/stash.c:616:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (info->has_u && restore_untracked(&info->u_tree))
                                                            ^
                                                             {
/datasets/git/builtin/stash.c:620:24: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
                struct child_process cp = CHILD_PROCESS_INIT;
                                     ^
/datasets/git/builtin/stash.c:647:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__QUIET(&quiet, N_("be quiet, only report errors")),
                ^
/datasets/git/./parse-options.h:360:31: note: expanded from macro 'OPT__QUIET'
#define OPT__QUIET(var, h)    OPT_COUNTUP('q', "quiet",   (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/stash.c:648:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "index", &index,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/stash.c:656:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_stash_info(&info, argc, argv))
                                              ^
                                               {
/datasets/git/builtin/stash.c:668:9: warning: 2 adjacent parameters of 'reject_reflog_ent' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                             timestamp_t timestamp UNUSED,
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/stash.c:668:21: note: the first parameter in the range is 'timestamp'
                             timestamp_t timestamp UNUSED,
                                         ^~~~~~~~~
/datasets/git/builtin/stash.c:669:13: note: the last parameter in the range is 'tz'
                             int tz UNUSED, const char *message UNUSED,
                                 ^~
/datasets/git/builtin/stash.c:668:9: note: 
                             timestamp_t timestamp UNUSED,
                             ^
/datasets/git/builtin/stash.c:669:9: note: 'timestamp_t' and 'int' may be implicitly converted: 'timestamp_t' (as 'unsigned long') -> 'int', 'int' -> 'timestamp_t' (as 'unsigned long')
                             int tz UNUSED, const char *message UNUSED,
                             ^
/datasets/git/builtin/stash.c:669:13: warning: parameter name 'tz' is too short, expected at least 3 characters [readability-identifier-length]
                             int tz UNUSED, const char *message UNUSED,
                                 ^
/datasets/git/builtin/stash.c:683:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                           EXPIRE_REFLOGS_REWRITE | EXPIRE_REFLOGS_UPDATE_REF,
                           ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/stash.c:685:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!quiet)
                           ^
                            {
/datasets/git/builtin/stash.c:693:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (reflog_is_empty(ref_stash))
                                       ^
                                        {
/datasets/git/builtin/stash.c:704:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret < 0)
                    ^
                     {
/datasets/git/builtin/stash.c:707:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!info->is_stash_ref)
                                ^
                                 {
/datasets/git/builtin/stash.c:719:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__QUIET(&quiet, N_("be quiet, only report errors")),
                ^
/datasets/git/./parse-options.h:360:31: note: expanded from macro 'OPT__QUIET'
#define OPT__QUIET(var, h)    OPT_COUNTUP('q', "quiet",   (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/stash.c:726:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_stash_info_assert(&info, argc, argv))
                                                     ^
                                                      {
/datasets/git/builtin/stash.c:742:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__QUIET(&quiet, N_("be quiet, only report errors")),
                ^
/datasets/git/./parse-options.h:360:31: note: expanded from macro 'OPT__QUIET'
#define OPT__QUIET(var, h)    OPT_COUNTUP('q', "quiet",   (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/stash.c:743:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "index", &index,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/stash.c:751:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_stash_info_assert(&info, argc, argv))
                                                     ^
                                                      {
/datasets/git/builtin/stash.c:754:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if ((ret = do_apply_stash(prefix, &info, index, quiet)))
             ^
/datasets/git/builtin/stash.c:754:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/builtin/stash.c:754:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/builtin/stash.c:754:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((ret = do_apply_stash(prefix, &info, index, quiet)))
                                                                ^
                                                                 {
/datasets/git/builtin/stash.c:757:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/stash.c:770:23: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
        struct child_process cp = CHILD_PROCESS_INIT;
                             ^
/datasets/git/builtin/stash.c:785:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_stash_info(&info, argc - 1, argv + 1))
                                                      ^
                                                       {
/datasets/git/builtin/stash.c:793:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ret)
                 ^
                  {
/datasets/git/builtin/stash.c:795:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ret && info.is_stash_ref)
                                      ^
                                       {
/datasets/git/builtin/stash.c:805:23: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
        struct child_process cp = CHILD_PROCESS_INIT;
                             ^
/datasets/git/builtin/stash.c:810:2: warning: Value stored to 'argc' is never read [clang-analyzer-deadcode.DeadStores]
        argc = parse_options(argc, argv, prefix, options,
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/stash.c:810:2: note: Value stored to 'argc' is never read
        argc = parse_options(argc, argv, prefix, options,
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/stash.c:814:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ref_exists(ref_stash))
                                   ^
                                    {
/datasets/git/builtin/stash.c:826:12: warning: variable 'show_stat' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int show_stat = 1;
           ^
/datasets/git/builtin/stash.c:827:12: warning: variable 'show_patch' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int show_patch;
           ^
/datasets/git/builtin/stash.c:828:12: warning: variable 'show_include_untracked' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int show_include_untracked;
           ^
/datasets/git/builtin/stash.c:830:71: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int git_stash_config(const char *var, const char *value, void *cb)
                                                                      ^
/datasets/git/builtin/stash.c:849:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        const struct object_id *oid[] = { &info->w_commit, &info->u_tree };
        ^
/datasets/git/builtin/stash.c:853:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/stash.c:853:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/stash.c:855:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ARRAY_SIZE(oid); i++) {
        ^
/datasets/git/builtin/stash.c:855:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'oid' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < ARRAY_SIZE(oid); i++) {
                    ^
/datasets/git/builtin/stash.c:857:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (parse_tree(tree[i]) < 0)
                                            ^
                                             {
/datasets/git/builtin/stash.c:868:71: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unpack_trees(ARRAY_SIZE(tree_desc), tree_desc, &unpack_tree_opt))
                                                                             ^
                                                                              {
/datasets/git/builtin/stash.c:876:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/stash.c:876:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/stash.c:888:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT('u', "include-untracked", &show_untracked,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/stash.c:891:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT_F(0, "only-untracked", &show_untracked,
                ^
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/stash.c:903:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                             PARSE_OPT_KEEP_ARGV0 | PARSE_OPT_KEEP_UNKNOWN_OPT |
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/stash.c:907:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 1; i < argc; i++) {
        ^
/datasets/git/builtin/stash.c:907:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'argc' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 1; i < argc; i++) {
                    ^
/datasets/git/builtin/stash.c:908:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (argv[i][0] != '-')
                                      ^
                                       {
/datasets/git/builtin/stash.c:910:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/stash.c:914:28: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        if (get_stash_info(&info, stash_args.nr, stash_args.v))
                                  ^
/datasets/git/builtin/stash.c:914:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_stash_info(&info, stash_args.nr, stash_args.v))
                                                               ^
                                                                {
/datasets/git/builtin/stash.c:922:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (show_stat)
                              ^
                               {
/datasets/git/builtin/stash.c:925:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (show_patch)
                               ^
                                {
/datasets/git/builtin/stash.c:926:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        rev.diffopt.output_format |= DIFF_FORMAT_PATCH;
                        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/stash.c:934:25: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        argc = setup_revisions(revision_args.nr, revision_args.v, &rev, NULL);
                               ^
/datasets/git/builtin/stash.c:935:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc > 1)
                     ^
                      {
/datasets/git/builtin/stash.c:944:2: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
        switch (show_untracked) {
        ^
/datasets/git/builtin/stash.c:949:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (info.has_u)
                               ^
                                {
/datasets/git/builtin/stash.c:953:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (info.has_u)
                               ^
                                {
/datasets/git/builtin/stash.c:955:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/stash.c:966:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (do_usage)
                     ^
                      {
/datasets/git/builtin/stash.c:977:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!stash_msg)
                       ^
                        {
/datasets/git/builtin/stash.c:981:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       REF_FORCE_CREATE_REFLOG,
                       ^
/datasets/git/./refs.h:637:34: note: expanded from macro 'REF_FORCE_CREATE_REFLOG'
#define REF_FORCE_CREATE_REFLOG (1 << 1)
                                 ^
/datasets/git/builtin/stash.c:1001:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__QUIET(&quiet, N_("be quiet")),
                ^
/datasets/git/./parse-options.h:360:31: note: expanded from macro 'OPT__QUIET'
#define OPT__QUIET(var, h)    OPT_COUNTUP('q', "quiet",   (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/stash.c:1012:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!quiet)
                           ^
                            {
/datasets/git/builtin/stash.c:1021:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!quiet)
                           ^
                            {
/datasets/git/builtin/stash.c:1031:29: warning: parameter name 'ps' is too short, expected at least 3 characters [readability-identifier-length]
                          const struct pathspec *ps) {
                                                 ^
/datasets/git/builtin/stash.c:1032:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/stash.c:1032:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/stash.c:1034:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ps->nr; i++)
        ^
/datasets/git/builtin/stash.c:1034:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < ps->nr; i++)
                                    ^
                                     {
/datasets/git/builtin/stash.c:1045:55: warning: parameter name 'ps' is too short, expected at least 3 characters [readability-identifier-length]
static int get_untracked_files(const struct pathspec *ps, int include_untracked,
                                                      ^
/datasets/git/builtin/stash.c:1048:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/stash.c:1048:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/stash.c:1052:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (include_untracked != INCLUDE_ALL_FILES)
                                                   ^
                                                    {
/datasets/git/builtin/stash.c:1056:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < dir.nr; i++) {
        ^
/datasets/git/builtin/stash.c:1075:63: warning: parameter name 'ps' is too short, expected at least 3 characters [readability-identifier-length]
static int check_changes_tracked_files(const struct pathspec *ps)
                                                              ^
/datasets/git/builtin/stash.c:1077:6: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        int result;
            ^
                   = 0
/datasets/git/builtin/stash.c:1083:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid("HEAD", &dummy))
                                    ^
                                     {
/datasets/git/builtin/stash.c:1086:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_read_index(the_repository) < 0)
                                                ^
                                                 {
/datasets/git/builtin/stash.c:1120:49: warning: parameter name 'ps' is too short, expected at least 3 characters [readability-identifier-length]
static int check_changes(const struct pathspec *ps, int include_untracked,
                                                ^
/datasets/git/builtin/stash.c:1124:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (check_changes_tracked_files(ps))
                                            ^
                                             {
/datasets/git/builtin/stash.c:1128:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                     untracked_files))
                                                                      ^
                                                                       {
/datasets/git/builtin/stash.c:1196:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!quiet)
                           ^
                            {
/datasets/git/builtin/stash.c:1206:72: warning: parameter name 'ps' is too short, expected at least 3 characters [readability-identifier-length]
static int stash_patch(struct stash_info *info, const struct pathspec *ps,
                                                                       ^
/datasets/git/builtin/stash.c:1213:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *old_index_env = NULL, *old_repo_index_file;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/stash.c:1213:31: warning: variable 'old_repo_index_file' is not initialized [cppcoreguidelines-init-variables]
        char *old_index_env = NULL, *old_repo_index_file;
                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/stash.c:1229:34: warning: function is not thread safe [concurrency-mt-unsafe]
        old_index_env = xstrdup_or_null(getenv(INDEX_ENVIRONMENT));
                                        ^
/datasets/git/builtin/stash.c:1230:2: warning: function is not thread safe [concurrency-mt-unsafe]
        setenv(INDEX_ENVIRONMENT, the_repository->index_file, 1);
        ^
/datasets/git/builtin/stash.c:1235:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (old_index_env && *old_index_env)
                                            ^
                                             {
/datasets/git/builtin/stash.c:1236:3: warning: function is not thread safe [concurrency-mt-unsafe]
                setenv(INDEX_ENVIRONMENT, old_index_env, 1);
                ^
/datasets/git/builtin/stash.c:1237:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/stash.c:1238:3: warning: function is not thread safe [concurrency-mt-unsafe]
                unsetenv(INDEX_ENVIRONMENT);
                ^
/datasets/git/builtin/stash.c:1239:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(old_index_env);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/stash.c:1257:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!quiet)
                           ^
                            {
/datasets/git/builtin/stash.c:1268:79: warning: parameter name 'ps' is too short, expected at least 3 characters [readability-identifier-length]
static int stash_working_tree(struct stash_info *info, const struct pathspec *ps)
                                                                              ^
/datasets/git/builtin/stash.c:1329:12: warning: function 'do_create_stash' has cognitive complexity of 54 (threshold 25) [readability-function-cognitive-complexity]
static int do_create_stash(const struct pathspec *ps, struct strbuf *stash_msg_buf,
           ^
/datasets/git/builtin/stash.c:1349:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (repo_refresh_and_write_index(the_repository, REFRESH_QUIET, 0, 0,
        ^
/datasets/git/builtin/stash.c:1352:3: note: +1
                goto done;
                ^
/datasets/git/builtin/stash.c:1355:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (get_oid("HEAD", &info->b_commit)) {
        ^
/datasets/git/builtin/stash.c:1356:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!quiet)
                ^
/datasets/git/builtin/stash.c:1360:3: note: +1
                goto done;
                ^
/datasets/git/builtin/stash.c:1361:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/stash.c:1365:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!check_changes(ps, include_untracked, &untracked_files)) {
        ^
/datasets/git/builtin/stash.c:1367:3: note: +1
                goto done;
                ^
/datasets/git/builtin/stash.c:1371:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (flags & REF_ISSYMREF)
        ^
/datasets/git/builtin/stash.c:1380:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (write_cache_as_tree(&info->i_tree, 0, NULL) ||
        ^
/datasets/git/builtin/stash.c:1380:50: note: +1
        if (write_cache_as_tree(&info->i_tree, 0, NULL) ||
                                                        ^
/datasets/git/builtin/stash.c:1383:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!quiet)
                ^
/datasets/git/builtin/stash.c:1387:3: note: +1
                goto done;
                ^
/datasets/git/builtin/stash.c:1390:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (include_untracked) {
        ^
/datasets/git/builtin/stash.c:1391:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (save_untracked_files(info, &msg, untracked_files)) {
                ^
/datasets/git/builtin/stash.c:1392:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!quiet)
                        ^
/datasets/git/builtin/stash.c:1396:4: note: +1
                        goto done;
                        ^
/datasets/git/builtin/stash.c:1400:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (patch_mode) {
        ^
/datasets/git/builtin/stash.c:1402:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ret < 0) {
                ^
/datasets/git/builtin/stash.c:1403:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!quiet)
                        ^
/datasets/git/builtin/stash.c:1406:4: note: +1
                        goto done;
                        ^
/datasets/git/builtin/stash.c:1407:10: note: +1, nesting level increased to 2
                } else if (ret > 0) {
                       ^
/datasets/git/builtin/stash.c:1408:4: note: +1
                        goto done;
                        ^
/datasets/git/builtin/stash.c:1410:9: note: +1, nesting level increased to 1
        } else if (only_staged) {
               ^
/datasets/git/builtin/stash.c:1412:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ret < 0) {
                ^
/datasets/git/builtin/stash.c:1413:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!quiet)
                        ^
/datasets/git/builtin/stash.c:1416:4: note: +1
                        goto done;
                        ^
/datasets/git/builtin/stash.c:1417:10: note: +1, nesting level increased to 2
                } else if (ret > 0) {
                       ^
/datasets/git/builtin/stash.c:1418:4: note: +1
                        goto done;
                        ^
/datasets/git/builtin/stash.c:1420:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/stash.c:1421:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (stash_working_tree(info, ps)) {
                ^
/datasets/git/builtin/stash.c:1422:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!quiet)
                        ^
/datasets/git/builtin/stash.c:1426:4: note: +1
                        goto done;
                        ^
/datasets/git/builtin/stash.c:1430:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!stash_msg_buf->len)
        ^
/datasets/git/builtin/stash.c:1432:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/builtin/stash.c:1440:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (untracked_commit_option)
        ^
/datasets/git/builtin/stash.c:1448:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (commit_tree(stash_msg_buf->buf, stash_msg_buf->len, &info->w_tree,
        ^
/datasets/git/builtin/stash.c:1450:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!quiet)
                ^
/datasets/git/builtin/stash.c:1454:3: note: +1
                goto done;
                ^
/datasets/git/builtin/stash.c:1329:51: warning: parameter name 'ps' is too short, expected at least 3 characters [readability-identifier-length]
static int do_create_stash(const struct pathspec *ps, struct strbuf *stash_msg_buf,
                                                  ^
/datasets/git/builtin/stash.c:1330:7: warning: 3 adjacent parameters of 'do_create_stash' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                           int include_untracked, int patch_mode, int only_staged,
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/stash.c:1330:11: note: the first parameter in the range is 'include_untracked'
                           int include_untracked, int patch_mode, int only_staged,
                               ^~~~~~~~~~~~~~~~~
/datasets/git/builtin/stash.c:1330:50: note: the last parameter in the range is 'only_staged'
                           int include_untracked, int patch_mode, int only_staged,
                                                                      ^~~~~~~~~~~
/datasets/git/builtin/stash.c:1349:51: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (repo_refresh_and_write_index(the_repository, REFRESH_QUIET, 0, 0,
                                                         ^
/datasets/git/./refs/../cache.h:923:43: note: expanded from macro 'REFRESH_QUIET'
#define REFRESH_QUIET                    (1 << 2) /* be quiet about it */
                                          ^
/datasets/git/builtin/stash.c:1356:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!quiet)
                           ^
                            {
/datasets/git/builtin/stash.c:1371:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & REF_ISSYMREF)
            ^~~~~
/datasets/git/builtin/stash.c:1371:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & REF_ISSYMREF)
                                 ^
                                  {
/datasets/git/builtin/stash.c:1383:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!quiet)
                           ^
                            {
/datasets/git/builtin/stash.c:1392:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!quiet)
                                   ^
                                    {
/datasets/git/builtin/stash.c:1403:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!quiet)
                                   ^
                                    {
/datasets/git/builtin/stash.c:1413:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!quiet)
                                   ^
                                    {
/datasets/git/builtin/stash.c:1422:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!quiet)
                                   ^
                                    {
/datasets/git/builtin/stash.c:1430:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!stash_msg_buf->len)
                                ^
                                 {
/datasets/git/builtin/stash.c:1432:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/stash.c:1440:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (untracked_commit_option)
                                    ^
                                     {
/datasets/git/builtin/stash.c:1450:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!quiet)
                           ^
                            {
/datasets/git/builtin/stash.c:1464:66: warning: parameter 'prefix' is unused [misc-unused-parameters]
static int create_stash(int argc, const char **argv, const char *prefix)
                                                                 ^
/datasets/git/builtin/stash.c:1466:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/builtin/stash.c:1469:18: warning: variable name 'ps' is too short, expected at least 3 characters [readability-identifier-length]
        struct pathspec ps;
                        ^
/datasets/git/builtin/stash.c:1474:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&ps, 0, sizeof(ps));
        ^~~~~~
/datasets/git/builtin/stash.c:1474:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&ps, 0, sizeof(ps));
        ^~~~~~
/datasets/git/builtin/stash.c:1475:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!check_changes_tracked_files(&ps))
                                              ^
                                               {
/datasets/git/builtin/stash.c:1480:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ret)
                 ^
                  {
/datasets/git/builtin/stash.c:1488:12: warning: function 'do_push_stash' has cognitive complexity of 101 (threshold 25) [readability-function-cognitive-complexity]
static int do_push_stash(const struct pathspec *ps, const char *stash_msg, int quiet,
           ^
/datasets/git/builtin/stash.c:1497:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (patch_mode && keep_index == -1)
        ^
/datasets/git/builtin/stash.c:1497:17: note: +1
        if (patch_mode && keep_index == -1)
                       ^
/datasets/git/builtin/stash.c:1500:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (patch_mode && include_untracked) {
        ^
/datasets/git/builtin/stash.c:1500:17: note: +1
        if (patch_mode && include_untracked) {
                       ^
/datasets/git/builtin/stash.c:1504:3: note: +1
                goto done;
                ^
/datasets/git/builtin/stash.c:1508:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (patch_mode)
        ^
/datasets/git/builtin/stash.c:1511:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (only_staged && include_untracked) {
        ^
/datasets/git/builtin/stash.c:1511:18: note: +1
        if (only_staged && include_untracked) {
                        ^
/datasets/git/builtin/stash.c:1515:3: note: +1
                goto done;
                ^
/datasets/git/builtin/stash.c:1519:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!include_untracked && ps->nr) {
        ^
/datasets/git/builtin/stash.c:1519:25: note: +1
        if (!include_untracked && ps->nr) {
                               ^
/datasets/git/builtin/stash.c:1525:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < the_index.cache_nr; i++)
                ^
/datasets/git/builtin/stash.c:1529:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (report_path_error(ps_matched, ps)) {
                ^
/datasets/git/builtin/stash.c:1533:4: note: +1
                        goto done;
                        ^
/datasets/git/builtin/stash.c:1538:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (repo_refresh_and_write_index(the_repository, REFRESH_QUIET, 0, 0,
        ^
/datasets/git/builtin/stash.c:1541:3: note: +1
                goto done;
                ^
/datasets/git/builtin/stash.c:1544:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!check_changes(ps, include_untracked, &untracked_files)) {
        ^
/datasets/git/builtin/stash.c:1545:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!quiet)
                ^
/datasets/git/builtin/stash.c:1547:3: note: +1
                goto done;
                ^
/datasets/git/builtin/stash.c:1550:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!reflog_exists(ref_stash) && do_clear_stash()) {
        ^
/datasets/git/builtin/stash.c:1550:32: note: +1
        if (!reflog_exists(ref_stash) && do_clear_stash()) {
                                      ^
/datasets/git/builtin/stash.c:1552:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!quiet)
                ^
/datasets/git/builtin/stash.c:1554:3: note: +1
                goto done;
                ^
/datasets/git/builtin/stash.c:1557:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (stash_msg)
        ^
/datasets/git/builtin/stash.c:1559:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (do_create_stash(ps, &stash_msg_buf, include_untracked, patch_mode, only_staged,
        ^
/datasets/git/builtin/stash.c:1562:3: note: +1
                goto done;
                ^
/datasets/git/builtin/stash.c:1565:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (do_store_stash(&info.w_commit, stash_msg_buf.buf, 1)) {
        ^
/datasets/git/builtin/stash.c:1567:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!quiet)
                ^
/datasets/git/builtin/stash.c:1569:3: note: +1
                goto done;
                ^
/datasets/git/builtin/stash.c:1572:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!quiet)
        ^
/datasets/git/builtin/stash.c:1576:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!(patch_mode || only_staged)) {
        ^
/datasets/git/builtin/stash.c:1576:19: note: +1
        if (!(patch_mode || only_staged)) {
                         ^
/datasets/git/builtin/stash.c:1577:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (include_untracked && !ps->nr) {
                ^
/datasets/git/builtin/stash.c:1577:25: note: +1
                if (include_untracked && !ps->nr) {
                                      ^
/datasets/git/builtin/stash.c:1581:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (startup_info->original_cwd) {
                        ^
/datasets/git/builtin/stash.c:1589:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (include_untracked == INCLUDE_ALL_FILES)
                        ^
/datasets/git/builtin/stash.c:1591:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (run_command(&cp)) {
                        ^
/datasets/git/builtin/stash.c:1593:5: note: +1
                                goto done;
                                ^
/datasets/git/builtin/stash.c:1597:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ps->nr) {
                ^
/datasets/git/builtin/stash.c:1605:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!include_untracked)
                        ^
/datasets/git/builtin/stash.c:1607:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (include_untracked == INCLUDE_ALL_FILES)
                        ^
/datasets/git/builtin/stash.c:1611:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (run_command(&cp_add)) {
                        ^
/datasets/git/builtin/stash.c:1613:5: note: +1
                                goto done;
                                ^
/datasets/git/builtin/stash.c:1621:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (pipe_command(&cp_diff, NULL, 0, &out, 0, NULL, 0)) {
                        ^
/datasets/git/builtin/stash.c:1623:5: note: +1
                                goto done;
                                ^
/datasets/git/builtin/stash.c:1629:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (pipe_command(&cp_apply, out.buf, out.len, NULL, 0,
                        ^
/datasets/git/builtin/stash.c:1632:5: note: +1
                                goto done;
                                ^
/datasets/git/builtin/stash.c:1634:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/stash.c:1640:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (run_command(&cp)) {
                        ^
/datasets/git/builtin/stash.c:1642:5: note: +1
                                goto done;
                                ^
/datasets/git/builtin/stash.c:1646:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (keep_index == 1 && !is_null_oid(&info.i_tree)) {
                ^
/datasets/git/builtin/stash.c:1646:23: note: +1
                if (keep_index == 1 && !is_null_oid(&info.i_tree)) {
                                    ^
/datasets/git/builtin/stash.c:1652:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!ps->nr)
                        ^
/datasets/git/builtin/stash.c:1654:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/builtin/stash.c:1656:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (run_command(&cp)) {
                        ^
/datasets/git/builtin/stash.c:1658:5: note: +1
                                goto done;
                                ^
/datasets/git/builtin/stash.c:1661:3: note: +1
                goto done;
                ^
/datasets/git/builtin/stash.c:1662:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/stash.c:1668:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (pipe_command(&cp, patch.buf, patch.len, NULL, 0, NULL, 0)) {
                ^
/datasets/git/builtin/stash.c:1669:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!quiet)
                        ^
/datasets/git/builtin/stash.c:1673:4: note: +1
                        goto done;
                        ^
/datasets/git/builtin/stash.c:1676:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (keep_index < 1) {
                ^
/datasets/git/builtin/stash.c:1683:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (run_command(&cp)) {
                        ^
/datasets/git/builtin/stash.c:1685:5: note: +1
                                goto done;
                                ^
/datasets/git/builtin/stash.c:1688:3: note: +1
                goto done;
                ^
/datasets/git/builtin/stash.c:1488:49: warning: parameter name 'ps' is too short, expected at least 3 characters [readability-identifier-length]
static int do_push_stash(const struct pathspec *ps, const char *stash_msg, int quiet,
                                                ^
/datasets/git/builtin/stash.c:1488:76: warning: 2 adjacent parameters of 'do_push_stash' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int do_push_stash(const struct pathspec *ps, const char *stash_msg, int quiet,
                                                                           ^~~~~~~~~~
/datasets/git/builtin/stash.c:1488:80: note: the first parameter in the range is 'quiet'
static int do_push_stash(const struct pathspec *ps, const char *stash_msg, int quiet,
                                                                               ^~~~~
/datasets/git/builtin/stash.c:1489:9: note: the last parameter in the range is 'keep_index'
                         int keep_index, int patch_mode, int include_untracked, int only_staged)
                             ^~~~~~~~~~
/datasets/git/builtin/stash.c:1497:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (patch_mode && keep_index == -1)
                                           ^
                                            {
/datasets/git/builtin/stash.c:1508:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (patch_mode)
                       ^
                        {
/datasets/git/builtin/stash.c:1520:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/builtin/stash.c:1520:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/stash.c:1525:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < the_index.cache_nr; i++)
                ^
/datasets/git/builtin/stash.c:1525:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < the_index.cache_nr; i++)
                                                        ^
                                                         {
/datasets/git/builtin/stash.c:1538:51: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (repo_refresh_and_write_index(the_repository, REFRESH_QUIET, 0, 0,
                                                         ^
/datasets/git/./refs/../cache.h:923:43: note: expanded from macro 'REFRESH_QUIET'
#define REFRESH_QUIET                    (1 << 2) /* be quiet about it */
                                          ^
/datasets/git/builtin/stash.c:1545:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!quiet)
                           ^
                            {
/datasets/git/builtin/stash.c:1552:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!quiet)
                           ^
                            {
/datasets/git/builtin/stash.c:1557:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (stash_msg)
                      ^
                       {
/datasets/git/builtin/stash.c:1567:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!quiet)
                           ^
                            {
/datasets/git/builtin/stash.c:1572:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!quiet)
                   ^
                    {
/datasets/git/builtin/stash.c:1578:25: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
                        struct child_process cp = CHILD_PROCESS_INIT;
                                             ^
/datasets/git/builtin/stash.c:1589:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (include_untracked == INCLUDE_ALL_FILES)
                                                                   ^
                                                                    {
/datasets/git/builtin/stash.c:1605:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!include_untracked)
                                               ^
                                                {
/datasets/git/builtin/stash.c:1607:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (include_untracked == INCLUDE_ALL_FILES)
                                                                   ^
                                                                    {
/datasets/git/builtin/stash.c:1635:25: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
                        struct child_process cp = CHILD_PROCESS_INIT;
                                             ^
/datasets/git/builtin/stash.c:1647:25: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
                        struct child_process cp = CHILD_PROCESS_INIT;
                                             ^
/datasets/git/builtin/stash.c:1652:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!ps->nr)
                                    ^
                                     {
/datasets/git/builtin/stash.c:1654:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/builtin/stash.c:1663:24: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
                struct child_process cp = CHILD_PROCESS_INIT;
                                     ^
/datasets/git/builtin/stash.c:1669:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!quiet)
                                   ^
                                    {
/datasets/git/builtin/stash.c:1677:25: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
                        struct child_process cp = CHILD_PROCESS_INIT;
                                             ^
/datasets/git/builtin/stash.c:1709:18: warning: variable name 'ps' is too short, expected at least 3 characters [readability-identifier-length]
        struct pathspec ps;
                        ^
/datasets/git/builtin/stash.c:1711:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('k', "keep-index", &keep_index,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/stash.c:1713:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('S', "staged", &only_staged,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/stash.c:1715:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('p', "patch", &patch_mode,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/stash.c:1717:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__QUIET(&quiet, N_("quiet mode")),
                ^
/datasets/git/./parse-options.h:360:31: note: expanded from macro 'OPT__QUIET'
#define OPT__QUIET(var, h)    OPT_COUNTUP('q', "quiet",   (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/stash.c:1718:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('u', "include-untracked", &include_untracked,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/stash.c:1720:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT('a', "all", &include_untracked,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/stash.c:1725:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_PATHSPEC_FILE_NUL(&pathspec_file_nul),
                ^
/datasets/git/./parse-options.h:391:35: note: expanded from macro 'OPT_PATHSPEC_FILE_NUL'
#define OPT_PATHSPEC_FILE_NUL(v)  OPT_BOOL(0, "pathspec-file-nul", v, N_("with --pathspec-from-file, pathspec elements are separated with NUL character"))
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/stash.c:1747:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        parse_pathspec(&ps, 0, PATHSPEC_PREFER_FULL | PATHSPEC_PREFIX_ORIGIN,
                               ^
/datasets/git/./pathspec.h:66:30: note: expanded from macro 'PATHSPEC_PREFER_FULL'
#define PATHSPEC_PREFER_FULL (1<<1) /* No args means match everything */
                             ^~~~~~
/datasets/git/builtin/stash.c:1747:48: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        parse_pathspec(&ps, 0, PATHSPEC_PREFER_FULL | PATHSPEC_PREFIX_ORIGIN,
                                                      ^
/datasets/git/./pathspec.h:70:33: note: expanded from macro 'PATHSPEC_PREFIX_ORIGIN'
#define PATHSPEC_PREFIX_ORIGIN (1<<4)
                                ^
/datasets/git/builtin/stash.c:1751:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (patch_mode)
                               ^
                                {
/datasets/git/builtin/stash.c:1754:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (only_staged)
                                ^
                                 {
/datasets/git/builtin/stash.c:1757:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ps.nr)
                          ^
                           {
/datasets/git/builtin/stash.c:1761:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                    PATHSPEC_PREFER_FULL | PATHSPEC_PREFIX_ORIGIN,
                                    ^
/datasets/git/./pathspec.h:66:30: note: expanded from macro 'PATHSPEC_PREFER_FULL'
#define PATHSPEC_PREFER_FULL (1<<1) /* No args means match everything */
                             ^~~~~~
/datasets/git/builtin/stash.c:1761:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                    PATHSPEC_PREFER_FULL | PATHSPEC_PREFIX_ORIGIN,
                                                           ^
/datasets/git/./pathspec.h:70:33: note: expanded from macro 'PATHSPEC_PREFIX_ORIGIN'
#define PATHSPEC_PREFIX_ORIGIN (1<<4)
                                ^
/datasets/git/builtin/stash.c:1785:18: warning: variable name 'ps' is too short, expected at least 3 characters [readability-identifier-length]
        struct pathspec ps;
                        ^
/datasets/git/builtin/stash.c:1788:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('k', "keep-index", &keep_index,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/stash.c:1790:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('S', "staged", &only_staged,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/stash.c:1792:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('p', "patch", &patch_mode,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/stash.c:1794:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__QUIET(&quiet, N_("quiet mode")),
                ^
/datasets/git/./parse-options.h:360:31: note: expanded from macro 'OPT__QUIET'
#define OPT__QUIET(var, h)    OPT_COUNTUP('q', "quiet",   (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/stash.c:1795:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('u', "include-untracked", &include_untracked,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/stash.c:1797:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT('a', "all", &include_untracked,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/stash.c:1808:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc)
                 ^
                  {
/datasets/git/builtin/stash.c:1811:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&ps, 0, sizeof(ps));
        ^~~~~~
/datasets/git/builtin/stash.c:1811:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&ps, 0, sizeof(ps));
        ^~~~~~
/datasets/git/builtin/stash.c:1822:14: warning: variable 'index_file' is not initialized [cppcoreguidelines-init-variables]
        const char *index_file;
                    ^
                               = NULL
/datasets/git/builtin/stash.c:1824:27: warning: variable name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
        parse_opt_subcommand_fn *fn = NULL;
                                 ^
/datasets/git/builtin/stash.c:1843:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                             PARSE_OPT_SUBCOMMAND_OPTIONAL |
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/stash.c:1854:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fn)
               ^
                {
/datasets/git/builtin/stash.c:1856:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (!argc)
        ^~~~~~~~~~~~~~~
/datasets/git/builtin/stash.c:1856:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!argc)
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/stash.c:1862:22: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return !!push_stash(args.nr, args.v, prefix, 1);
                            ^
/datasets/git/builtin/stripspace.c:9:8: warning: variable 'msg' is not initialized [cppcoreguidelines-init-variables]
        char *msg;
              ^
                  = NULL
/datasets/git/builtin/stripspace.c:10:9: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        size_t len;
               ^
                   = 0
/datasets/git/builtin/stripspace.c:33:6: warning: variable 'nongit' is not initialized [cppcoreguidelines-init-variables]
        int nongit;
            ^
                   = 0
/datasets/git/builtin/stripspace.c:36:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_CMDMODE('s', "strip-comments", &mode,
                ^
/datasets/git/./parse-options.h:188:37: note: expanded from macro 'OPT_CMDMODE'
#define OPT_CMDMODE(s, l, v, h, i)  OPT_CMDMODE_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:187:16: note: expanded from macro 'OPT_CMDMODE_F'
                                      (h), PARSE_OPT_CMDMODE|PARSE_OPT_NOARG|PARSE_OPT_NONEG | (f), NULL, (i) }
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/stripspace.c:39:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_CMDMODE('c', "comment-lines", &mode,
                ^
/datasets/git/./parse-options.h:188:37: note: expanded from macro 'OPT_CMDMODE'
#define OPT_CMDMODE(s, l, v, h, i)  OPT_CMDMODE_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:187:16: note: expanded from macro 'OPT_CMDMODE_F'
                                      (h), PARSE_OPT_CMDMODE|PARSE_OPT_NOARG|PARSE_OPT_NONEG | (f), NULL, (i) }
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/stripspace.c:46:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc)
                 ^
                  {
/datasets/git/builtin/stripspace.c:54:27: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (strbuf_read(&buf, 0, 1024) < 0)
                                 ^
/datasets/git/builtin/stripspace.c:54:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strbuf_read(&buf, 0, 1024) < 0)
                                           ^
                                            {
/datasets/git/builtin/stripspace.c:57:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mode == STRIP_DEFAULT || mode == STRIP_COMMENTS)
                                                            ^
                                                             {
/datasets/git/builtin/stripspace.c:59:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/submodule--helper.c:3:1: warning: #includes are not sorted properly [llvm-include-order]
#include "repository.h"
^        ~~~~~~~~~~~~~~
         "advice.h"
/datasets/git/builtin/submodule--helper.c:26:1: warning: replace macro with enum [modernize-macro-to-enum]
#define OPT_QUIET (1 << 0)
^~~~~~~~
                  =       ,
/datasets/git/builtin/submodule--helper.c:26:9: warning: macro 'OPT_QUIET' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define OPT_QUIET (1 << 0)
        ^
/datasets/git/builtin/submodule--helper.c:27:9: warning: macro 'OPT_CACHED' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define OPT_CACHED (1 << 1)
        ^
/datasets/git/builtin/submodule--helper.c:28:9: warning: macro 'OPT_RECURSIVE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define OPT_RECURSIVE (1 << 2)
        ^
/datasets/git/builtin/submodule--helper.c:29:9: warning: macro 'OPT_FORCE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define OPT_FORCE (1 << 3)
        ^
/datasets/git/builtin/submodule--helper.c:37:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/submodule--helper.c:42:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!refname)
                     ^
                      {
/datasets/git/builtin/submodule--helper.c:51:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!skip_prefix(refname, "refs/heads/", &refname))
                                                           ^
                                                            {
/datasets/git/builtin/submodule--helper.c:56:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_config_get_string(repo, sb.buf, &dest))
                                                        ^
                                                         {
/datasets/git/builtin/submodule--helper.c:58:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/submodule--helper.c:68:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/builtin/submodule--helper.c:71:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                null_oid()) < 0)
                                                ^
                                                 {
/datasets/git/builtin/submodule--helper.c:82:8: warning: variable 'default_remote' is not initialized [cppcoreguidelines-init-variables]
        char *default_remote;
              ^
                             = NULL
/datasets/git/builtin/submodule--helper.c:85:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (code)
                 ^
                  {
/datasets/git/builtin/submodule--helper.c:86:3: warning: function is not thread safe [concurrency-mt-unsafe]
                exit(code);
                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/submodule--helper.c:88:2: warning: Undefined or garbage value returned to caller [clang-analyzer-core.uninitialized.UndefReturn]
        return default_remote;
        ^
/datasets/git/builtin/submodule--helper.c:1305:2: note: Calling 'sync_submodule'
        sync_submodule(list_item->name, info->prefix, info->flags);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:1220:6: note: Assuming the condition is false
        if (!is_submodule_active(the_repository, path))
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:1220:2: note: Taking false branch
        if (!is_submodule_active(the_repository, path))
        ^
/datasets/git/builtin/submodule--helper.c:1225:6: note: Assuming 'sub' is non-null
        if (sub && sub->url) {
            ^~~
/datasets/git/builtin/submodule--helper.c:1225:6: note: Left side of '&&' is true
/datasets/git/builtin/submodule--helper.c:1225:13: note: Assuming field 'url' is non-null
        if (sub && sub->url) {
                   ^~~~~~~~
/datasets/git/builtin/submodule--helper.c:1225:2: note: Taking true branch
        if (sub && sub->url) {
        ^
/datasets/git/builtin/submodule--helper.c:1226:7: note: Assuming the condition is true
                if (starts_with_dot_dot_slash(sub->url) ||
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:1226:43: note: Left side of '||' is true
                if (starts_with_dot_dot_slash(sub->url) ||
                                                        ^
/datasets/git/builtin/submodule--helper.c:1230:21: note: Calling 'resolve_relative_url'
                        sub_origin_url = resolve_relative_url(sub->url, up_path, 1);
                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:94:17: note: Calling 'get_default_remote'
        char *remote = get_default_remote();
                       ^~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:82:2: note: 'default_remote' declared without an initial value
        char *default_remote;
        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:83:13: note: Calling 'repo_get_default_remote'
        int code = repo_get_default_remote(the_repository, &default_remote);
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:42:6: note: Assuming 'refname' is null
        if (!refname)
            ^~~~~~~~
/datasets/git/builtin/submodule--helper.c:42:2: note: Taking true branch
        if (!refname)
        ^
/datasets/git/builtin/submodule--helper.c:43:3: note: Returning without writing to '*default_remote'
                return die_message(_("No such ref: %s"), "HEAD");
                ^
/datasets/git/builtin/submodule--helper.c:83:13: note: Returning from 'repo_get_default_remote'
        int code = repo_get_default_remote(the_repository, &default_remote);
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:85:6: note: Assuming 'code' is 0
        if (code)
            ^~~~
/datasets/git/builtin/submodule--helper.c:85:2: note: Taking false branch
        if (code)
        ^
/datasets/git/builtin/submodule--helper.c:88:2: note: Undefined or garbage value returned to caller
        return default_remote;
        ^      ~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:93:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *remoteurl, *resolved_url;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:93:8: warning: variable 'remoteurl' is not initialized [cppcoreguidelines-init-variables]
        char *remoteurl, *resolved_url;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/submodule--helper.c:93:20: warning: variable 'resolved_url' is not initialized [cppcoreguidelines-init-variables]
        char *remoteurl, *resolved_url;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/submodule--helper.c:99:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!quiet)
                           ^
                            {
/datasets/git/builtin/submodule--helper.c:124:17: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                struct strbuf sb = STRBUF_INIT;
                              ^
/datasets/git/builtin/submodule--helper.c:135:31: warning: 2 adjacent parameters of 'compute_rev_name' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static char *compute_rev_name(const char *sub_path, const char* object_id)
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:135:43: note: the first parameter in the range is 'sub_path'
static char *compute_rev_name(const char *sub_path, const char* object_id)
                                          ^~~~~~~~
/datasets/git/builtin/submodule--helper.c:135:65: note: the last parameter in the range is 'object_id'
static char *compute_rev_name(const char *sub_path, const char* object_id)
                                                                ^~~~~~~~~
/datasets/git/builtin/submodule--helper.c:138:2: note: inferred assignment of ID-dependent value from ID-dependent variable describe_argv [altera-id-dependent-backward-branch]
        const char ***d;
        ^
/datasets/git/builtin/submodule--helper.c:137:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/submodule--helper.c:138:16: warning: variable 'd' is not initialized [cppcoreguidelines-init-variables]
        const char ***d;
                      ^
                        = NULL
/datasets/git/builtin/submodule--helper.c:138:16: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/submodule--helper.c:152:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (d = describe_argv; *d; d++) {
        ^
/datasets/git/builtin/submodule--helper.c:152:26: warning: backward branch (for loop) is ID-dependent due to variable reference to 'd' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (d = describe_argv; *d; d++) {
                                ^
/datasets/git/builtin/submodule--helper.c:153:24: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
                struct child_process cp = CHILD_PROCESS_INIT;
                                     ^
/datasets/git/builtin/submodule--helper.c:173:8: warning: accessing fields in struct 'module_list' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct module_list {
       ^
/datasets/git/builtin/submodule--helper.c:173:8: note: use "__attribute__((aligned(16)))" to align struct 'module_list' to 16 bytes
/datasets/git/builtin/submodule--helper.c:179:53: warning: parameter name 'ml' is too short, expected at least 3 characters [readability-identifier-length]
static void module_list_release(struct module_list *ml)
                                                    ^
/datasets/git/builtin/submodule--helper.c:189:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, result = 0;
        ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:189:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, result = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/submodule--helper.c:189:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/submodule--helper.c:193:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_PREFER_FULL,
                       ^
/datasets/git/./pathspec.h:66:31: note: expanded from macro 'PATHSPEC_PREFER_FULL'
#define PATHSPEC_PREFER_FULL (1<<1) /* No args means match everything */
                              ^
/datasets/git/builtin/submodule--helper.c:196:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pathspec->nr)
                         ^
                          {
/datasets/git/builtin/submodule--helper.c:199:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_read_index(the_repository) < 0)
                                                ^
                                                 {
/datasets/git/builtin/submodule--helper.c:203:29: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                const struct cache_entry *ce = the_index.cache[i];
                                          ^
/datasets/git/builtin/submodule--helper.c:207:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    !S_ISGITLINK(ce->ce_mode))
                     ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/builtin/submodule--helper.c:207:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !S_ISGITLINK(ce->ce_mode))
                                              ^
                                               {
/datasets/git/builtin/submodule--helper.c:210:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                ALLOC_GROW(list->entries, list->nr + 1, list->alloc);
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/builtin/submodule--helper.c:210:3: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                ALLOC_GROW(list->entries, list->nr + 1, list->alloc);
                ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/builtin/submodule--helper.c:212:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (i + 1 < the_index.cache_nr &&
                ^
/datasets/git/builtin/submodule--helper.c:212:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'ce' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (i + 1 < the_index.cache_nr &&
                       ^
/datasets/git/builtin/submodule--helper.c:213:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                       !strcmp(ce->name, the_index.cache[i + 1]->name))
                                                                       ^
                                                                        {
/datasets/git/builtin/submodule--helper.c:221:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ps_matched && report_path_error(ps_matched, pathspec))
                                                                  ^
                                                                   {
/datasets/git/builtin/submodule--helper.c:231:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/submodule--helper.c:231:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/submodule--helper.c:235:29: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                const struct cache_entry *ce = list->entries[i];
                                          ^
/datasets/git/builtin/submodule--helper.c:237:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!is_submodule_active(the_repository, ce->name))
                                                                   ^
                                                                    {
/datasets/git/builtin/submodule--helper.c:240:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                ALLOC_GROW(active_modules.entries,
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/builtin/submodule--helper.c:240:3: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                ALLOC_GROW(active_modules.entries,
                ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/builtin/submodule--helper.c:252:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/submodule--helper.c:252:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/submodule--helper.c:253:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/submodule--helper.c:255:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = count_slashes(path); i; i--)
        ^
/datasets/git/builtin/submodule--helper.c:255:32: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = count_slashes(path); i; i--)
                                      ^
/datasets/git/builtin/submodule--helper.c:255:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = count_slashes(path); i; i--)
                                             ^
                                              {
/datasets/git/builtin/submodule--helper.c:263:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_dir_sep(path[strlen(path) - 1]))
                                                ^
                                                 {
/datasets/git/builtin/submodule--helper.c:270:29: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
                                      each_submodule_fn fn, void *cb_data)
                                                        ^
/datasets/git/builtin/submodule--helper.c:272:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/submodule--helper.c:272:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/submodule--helper.c:274:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < list->nr; i++)
        ^
/datasets/git/builtin/submodule--helper.c:274:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < list->nr; i++)
                                      ^
                                       {
/datasets/git/builtin/submodule--helper.c:278:8: warning: accessing fields in struct 'foreach_cb' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct foreach_cb {
       ^
/datasets/git/builtin/submodule--helper.c:278:8: note: use "__attribute__((aligned(32)))" to align struct 'foreach_cb' to 32 bytes
/datasets/git/builtin/submodule--helper.c:293:26: warning: variable 'sub' is not initialized [cppcoreguidelines-init-variables]
        const struct submodule *sub;
                                ^
                                    = NULL
/datasets/git/builtin/submodule--helper.c:294:23: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
        struct child_process cp = CHILD_PROCESS_INIT;
                             ^
/datasets/git/builtin/submodule--helper.c:295:8: warning: variable 'displaypath' is not initialized [cppcoreguidelines-init-variables]
        char *displaypath;
              ^
                          = NULL
/datasets/git/builtin/submodule--helper.c:301:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!sub)
                 ^
                  {
/datasets/git/builtin/submodule--helper.c:305:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_submodule_populated_gently(path, NULL))
                                                       ^
                                                        {
/datasets/git/builtin/submodule--helper.c:326:17: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                struct strbuf sb = STRBUF_INIT;
                              ^
/datasets/git/builtin/submodule--helper.c:353:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!info->quiet)
                         ^
                          {
/datasets/git/builtin/submodule--helper.c:356:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (info->argv[0] && run_command(&cp))
                                              ^
                                               {
/datasets/git/builtin/submodule--helper.c:372:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (info->quiet)
                                ^
                                 {
/datasets/git/builtin/submodule--helper.c:378:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (run_command(&cpr))
                                      ^
                                       {
/datasets/git/builtin/submodule--helper.c:394:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__QUIET(&info.quiet, N_("suppress output of entering each submodule command")),
                ^
/datasets/git/./parse-options.h:360:31: note: expanded from macro 'OPT__QUIET'
#define OPT__QUIET(var, h)    OPT_COUNTUP('q', "quiet",   (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:395:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "recursive", &info.recursive,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:408:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (module_list_compute(NULL, prefix, &pathspec, &list) < 0)
                                                                    ^
                                                                     {
/datasets/git/builtin/submodule--helper.c:426:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return path_match_flags(path, PATH_MATCH_STARTS_WITH_DOT_SLASH |
                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:432:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return path_match_flags(path, PATH_MATCH_STARTS_WITH_DOT_DOT_SLASH |
                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:436:8: warning: accessing fields in struct 'init_cb' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct init_cb {
       ^
/datasets/git/builtin/submodule--helper.c:436:8: note: use "__attribute__((aligned(16)))" to align struct 'init_cb' to 16 bytes
/datasets/git/builtin/submodule--helper.c:445:26: warning: variable 'sub' is not initialized [cppcoreguidelines-init-variables]
        const struct submodule *sub;
                                ^
                                    = NULL
/datasets/git/builtin/submodule--helper.c:446:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/submodule--helper.c:447:14: warning: variable 'upd' is not initialized [cppcoreguidelines-init-variables]
        const char *upd;
                    ^
                        = NULL
/datasets/git/builtin/submodule--helper.c:448:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *url = NULL, *displaypath;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:448:21: warning: variable 'displaypath' is not initialized [cppcoreguidelines-init-variables]
        char *url = NULL, *displaypath;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/submodule--helper.c:454:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!sub)
                 ^
                  {
/datasets/git/builtin/submodule--helper.c:477:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!sub->url)
                              ^
                               {
/datasets/git/builtin/submodule--helper.c:492:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (git_config_set_gently(sb.buf, url))
                                                       ^
                                                        {
/datasets/git/builtin/submodule--helper.c:495:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(flags & OPT_QUIET))
                      ^
/datasets/git/builtin/submodule--helper.c:495:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(flags & OPT_QUIET))
                              ^
/datasets/git/builtin/submodule--helper.c:26:20: note: expanded from macro 'OPT_QUIET'
#define OPT_QUIET (1 << 0)
                   ^
/datasets/git/builtin/submodule--helper.c:495:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(flags & OPT_QUIET))
                                         ^
                                          {
/datasets/git/builtin/submodule--helper.c:496:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr,
                        ^~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:496:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/submodule--helper.c:507:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, _("warning: command update mode suggested for submodule '%s'\n"),
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:507:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/submodule--helper.c:514:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (git_config_set_gently(sb.buf, upd))
                                                       ^
                                                        {
/datasets/git/builtin/submodule--helper.c:536:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__QUIET(&quiet, N_("suppress output for initializing a submodule")),
                ^
/datasets/git/./parse-options.h:360:31: note: expanded from macro 'OPT__QUIET'
#define OPT__QUIET(var, h)    OPT_COUNTUP('q', "quiet",   (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:548:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (module_list_compute(argv, prefix, &pathspec, &list) < 0)
                                                                    ^
                                                                     {
/datasets/git/builtin/submodule--helper.c:555:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!argc && git_config_get_value_multi("submodule.active"))
                                                                    ^
                                                                     {
/datasets/git/builtin/submodule--helper.c:559:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (quiet)
                  ^
                   {
/datasets/git/builtin/submodule--helper.c:560:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                info.flags |= OPT_QUIET;
                ^
/datasets/git/builtin/submodule--helper.c:560:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                info.flags |= OPT_QUIET;
                              ^
/datasets/git/builtin/submodule--helper.c:26:20: note: expanded from macro 'OPT_QUIET'
#define OPT_QUIET (1 << 0)
                   ^
/datasets/git/builtin/submodule--helper.c:571:8: warning: accessing fields in struct 'status_cb' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct status_cb {
       ^
/datasets/git/builtin/submodule--helper.c:571:8: note: use "__attribute__((aligned(16)))" to align struct 'status_cb' to 16 bytes
/datasets/git/builtin/submodule--helper.c:577:26: warning: 2 adjacent parameters of 'print_status' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void print_status(unsigned int flags, char state, const char *path,
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:577:39: note: the first parameter in the range is 'flags'
static void print_status(unsigned int flags, char state, const char *path,
                                      ^~~~~
/datasets/git/builtin/submodule--helper.c:577:51: note: the last parameter in the range is 'state'
static void print_status(unsigned int flags, char state, const char *path,
                                                  ^~~~~
/datasets/git/builtin/submodule--helper.c:577:46: note: 'unsigned int' and 'char' may be implicitly converted
static void print_status(unsigned int flags, char state, const char *path,
                                             ^
/datasets/git/builtin/submodule--helper.c:580:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & OPT_QUIET)
            ^
/datasets/git/builtin/submodule--helper.c:580:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & OPT_QUIET)
                    ^
/datasets/git/builtin/submodule--helper.c:26:20: note: expanded from macro 'OPT_QUIET'
#define OPT_QUIET (1 << 0)
                   ^
/datasets/git/builtin/submodule--helper.c:580:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & OPT_QUIET)
                              ^
                               {
/datasets/git/builtin/submodule--helper.c:588:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (name)
                         ^
                          {
/datasets/git/builtin/submodule--helper.c:603:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oid)
                ^
                 {
/datasets/git/builtin/submodule--helper.c:613:8: warning: variable 'displaypath' is not initialized [cppcoreguidelines-init-variables]
        char *displaypath;
              ^
                          = NULL
/datasets/git/builtin/submodule--helper.c:616:6: warning: variable 'diff_files_result' is not initialized [cppcoreguidelines-init-variables]
        int diff_files_result;
            ^
                              = 0
/datasets/git/builtin/submodule--helper.c:618:14: warning: variable 'git_dir' is not initialized [cppcoreguidelines-init-variables]
        const char *git_dir;
                    ^
                            = NULL
/datasets/git/builtin/submodule--helper.c:623:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!submodule_from_path(the_repository, null_oid(), path))
                                                                   ^
                                                                    {
/datasets/git/builtin/submodule--helper.c:629:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((CE_STAGEMASK & ce_flags) >> CE_STAGESHIFT) {
            ^
/datasets/git/builtin/submodule--helper.c:629:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((CE_STAGEMASK & ce_flags) >> CE_STAGESHIFT) {
             ^
/datasets/git/./refs/../cache.h:153:22: note: expanded from macro 'CE_STAGEMASK'
#define CE_STAGEMASK (0x3000)
                     ^~~~~~~~
/datasets/git/builtin/submodule--helper.c:636:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!git_dir)
                     ^
                      {
/datasets/git/builtin/submodule--helper.c:655:18: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        setup_revisions(diff_files_args.nr, diff_files_args.v, &rev, &opt);
                        ^
/datasets/git/builtin/submodule--helper.c:661:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        } else if (!(flags & OPT_CACHED)) {
                     ^
/datasets/git/builtin/submodule--helper.c:661:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        } else if (!(flags & OPT_CACHED)) {
                             ^
/datasets/git/builtin/submodule--helper.c:27:21: note: expanded from macro 'OPT_CACHED'
#define OPT_CACHED (1 << 1)
                    ^
/datasets/git/builtin/submodule--helper.c:669:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (refs_head_ref(refs, handle_submodule_head_ref, &oid))
                                                                         ^
                                                                          {
/datasets/git/builtin/submodule--helper.c:678:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & OPT_RECURSIVE) {
            ^
/datasets/git/builtin/submodule--helper.c:678:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & OPT_RECURSIVE) {
                    ^
/datasets/git/builtin/submodule--helper.c:28:24: note: expanded from macro 'OPT_RECURSIVE'
#define OPT_RECURSIVE (1 << 2)
                       ^
/datasets/git/builtin/submodule--helper.c:690:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flags & OPT_CACHED)
                    ^
/datasets/git/builtin/submodule--helper.c:690:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flags & OPT_CACHED)
                            ^
/datasets/git/builtin/submodule--helper.c:27:21: note: expanded from macro 'OPT_CACHED'
#define OPT_CACHED (1 << 1)
                    ^
/datasets/git/builtin/submodule--helper.c:690:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (flags & OPT_CACHED)
                                       ^
                                        {
/datasets/git/builtin/submodule--helper.c:693:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flags & OPT_QUIET)
                    ^
/datasets/git/builtin/submodule--helper.c:693:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flags & OPT_QUIET)
                            ^
/datasets/git/builtin/submodule--helper.c:26:20: note: expanded from macro 'OPT_QUIET'
#define OPT_QUIET (1 << 0)
                   ^
/datasets/git/builtin/submodule--helper.c:693:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (flags & OPT_QUIET)
                                      ^
                                       {
/datasets/git/builtin/submodule--helper.c:696:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (run_command(&cpr))
                                      ^
                                       {
/datasets/git/builtin/submodule--helper.c:722:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__QUIET(&quiet, N_("suppress submodule status output")),
                ^
/datasets/git/./parse-options.h:360:31: note: expanded from macro 'OPT__QUIET'
#define OPT__QUIET(var, h)    OPT_COUNTUP('q', "quiet",   (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:723:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT(0, "cached", &info.flags, N_("use commit stored in the index instead of the one stored in the submodule HEAD"), OPT_CACHED),
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:723:123: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT(0, "cached", &info.flags, N_("use commit stored in the index instead of the one stored in the submodule HEAD"), OPT_CACHED),
                                                                                                                                        ^
/datasets/git/builtin/submodule--helper.c:27:21: note: expanded from macro 'OPT_CACHED'
#define OPT_CACHED (1 << 1)
                    ^
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/submodule--helper.c:724:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT(0, "recursive", &info.flags, N_("recurse into nested submodules"), OPT_RECURSIVE),
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:724:78: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT(0, "recursive", &info.flags, N_("recurse into nested submodules"), OPT_RECURSIVE),
                                                                                           ^
/datasets/git/builtin/submodule--helper.c:28:24: note: expanded from macro 'OPT_RECURSIVE'
#define OPT_RECURSIVE (1 << 2)
                       ^
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/submodule--helper.c:733:2: warning: Value stored to 'argc' is never read [clang-analyzer-deadcode.DeadStores]
        argc = parse_options(argc, argv, prefix, module_status_options,
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:733:2: note: Value stored to 'argc' is never read
        argc = parse_options(argc, argv, prefix, module_status_options,
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:736:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (module_list_compute(argv, prefix, &pathspec, &list) < 0)
                                                                    ^
                                                                     {
/datasets/git/builtin/submodule--helper.c:740:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (quiet)
                  ^
                   {
/datasets/git/builtin/submodule--helper.c:741:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                info.flags |= OPT_QUIET;
                ^
/datasets/git/builtin/submodule--helper.c:741:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                info.flags |= OPT_QUIET;
                              ^
/datasets/git/builtin/submodule--helper.c:26:20: note: expanded from macro 'OPT_QUIET'
#define OPT_QUIET (1 << 0)
                   ^
/datasets/git/builtin/submodule--helper.c:752:8: warning: accessing fields in struct 'module_cb' is inefficient due to padding; only needs 89 bytes but is using 96 bytes [altera-struct-pack-align]
struct module_cb {
       ^
/datasets/git/builtin/submodule--helper.c:752:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'module_cb'
/datasets/git/builtin/submodule--helper.c:752:8: warning: accessing fields in struct 'module_cb' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct module_cb {
       ^
/datasets/git/builtin/submodule--helper.c:752:8: note: use "__attribute__((aligned(128)))" to align struct 'module_cb' to 128 bytes
/datasets/git/builtin/submodule--helper.c:767:8: warning: accessing fields in struct 'module_cb_list' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct module_cb_list {
       ^
/datasets/git/builtin/submodule--helper.c:767:8: note: use "__attribute__((aligned(16)))" to align struct 'module_cb_list' to 16 bytes
/datasets/git/builtin/submodule--helper.c:775:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/submodule--helper.c:775:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/submodule--helper.c:777:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < mcbl->nr; i++) {
        ^
/datasets/git/builtin/submodule--helper.c:786:8: warning: accessing fields in struct 'summary_cb' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct summary_cb {
       ^
/datasets/git/builtin/submodule--helper.c:786:8: note: use "__attribute__((aligned(64)))" to align struct 'summary_cb' to 64 bytes
/datasets/git/builtin/submodule--helper.c:802:42: warning: 2 adjacent parameters of 'verify_submodule_committish' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static char *verify_submodule_committish(const char *sm_path,
                                         ^~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:802:54: note: the first parameter in the range is 'sm_path'
static char *verify_submodule_committish(const char *sm_path,
                                                     ^~~~~~~
/datasets/git/builtin/submodule--helper.c:803:19: note: the last parameter in the range is 'committish'
                                         const char *committish)
                                                     ^~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:815:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (capture_command(&cp_rev_parse, &result, 0))
                                                       ^
                                                        {
/datasets/git/builtin/submodule--helper.c:825:27: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                                    struct module_cb *p)
                                                      ^
/datasets/git/builtin/submodule--helper.c:828:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (S_ISGITLINK(p->mod_dst))
                    ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/builtin/submodule--helper.c:828:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (S_ISGITLINK(p->mod_dst))
                                            ^
                                             {
/datasets/git/builtin/submodule--helper.c:831:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/submodule--helper.c:839:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (total_commits < 0)
                              ^
                               {
/datasets/git/builtin/submodule--helper.c:841:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/submodule--helper.c:854:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (S_ISGITLINK(p->mod_src) && S_ISGITLINK(p->mod_dst)) {
                    ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/builtin/submodule--helper.c:854:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (S_ISGITLINK(p->mod_src) && S_ISGITLINK(p->mod_dst)) {
                                               ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/builtin/submodule--helper.c:855:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (info->summary_limit > 0)
                                                    ^
                                                     {
/datasets/git/builtin/submodule--helper.c:863:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                } else if (S_ISGITLINK(p->mod_dst)) {
                           ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/builtin/submodule--helper.c:875:13: warning: function 'generate_submodule_summary' has cognitive complexity of 51 (threshold 25) [readability-function-cognitive-complexity]
static void generate_submodule_summary(struct summary_cb *info,
            ^
/datasets/git/builtin/submodule--helper.c:883:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!info->cached && oideq(&p->oid_dst, null_oid())) {
        ^
/datasets/git/builtin/submodule--helper.c:883:20: note: +1
        if (!info->cached && oideq(&p->oid_dst, null_oid())) {
                          ^
/datasets/git/builtin/submodule--helper.c:884:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (S_ISGITLINK(p->mod_dst)) {
                ^
/datasets/git/builtin/submodule--helper.c:887:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (refs)
                        ^
/datasets/git/builtin/submodule--helper.c:889:10: note: +1, nesting level increased to 2
                } else if (S_ISLNK(p->mod_dst) || S_ISREG(p->mod_dst)) {
                       ^
/datasets/git/builtin/submodule--helper.c:889:34: note: +1
                } else if (S_ISLNK(p->mod_dst) || S_ISREG(p->mod_dst)) {
                                               ^
/datasets/git/builtin/submodule--helper.c:893:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (fd < 0 || fstat(fd, &st) < 0 ||
                        ^
/datasets/git/builtin/submodule--helper.c:893:37: note: +1
                        if (fd < 0 || fstat(fd, &st) < 0 ||
                                                         ^
/datasets/git/builtin/submodule--helper.c:897:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/submodule--helper.c:899:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (p->mod_dst)
                        ^
/datasets/git/builtin/submodule--helper.c:904:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (S_ISGITLINK(p->mod_src)) {
        ^
/datasets/git/builtin/submodule--helper.c:905:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (p->status != 'D')
                ^
/datasets/git/builtin/submodule--helper.c:908:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!src_abbrev) {
                ^
/datasets/git/builtin/submodule--helper.c:918:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/submodule--helper.c:928:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (S_ISGITLINK(p->mod_dst)) {
        ^
/datasets/git/builtin/submodule--helper.c:931:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!dst_abbrev) {
                ^
/datasets/git/builtin/submodule--helper.c:941:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/submodule--helper.c:953:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!missing_src && !missing_dst) {
        ^
/datasets/git/builtin/submodule--helper.c:953:19: note: +1
        if (!missing_src && !missing_dst) {
                         ^
/datasets/git/builtin/submodule--helper.c:959:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (S_ISGITLINK(p->mod_src) && S_ISGITLINK(p->mod_dst))
                ^
/datasets/git/builtin/submodule--helper.c:959:31: note: +1
                if (S_ISGITLINK(p->mod_src) && S_ISGITLINK(p->mod_dst))
                                            ^
/datasets/git/builtin/submodule--helper.c:962:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/submodule--helper.c:963:59: note: +3, including nesting penalty of 2, nesting level increased to 3
                        strvec_push(&cp_rev_list.args, S_ISGITLINK(p->mod_src) ?
                                                                               ^
/datasets/git/builtin/submodule--helper.c:971:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!capture_command(&cp_rev_list, &sb_rev_list, 0))
                ^
/datasets/git/builtin/submodule--helper.c:975:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/submodule--helper.c:980:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (S_ISGITLINK(p->mod_dst)) {
                ^
/datasets/git/builtin/submodule--helper.c:981:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (missing_src && missing_dst) {
                        ^
/datasets/git/builtin/submodule--helper.c:981:20: note: +1
                        if (missing_src && missing_dst) {
                                        ^
/datasets/git/builtin/submodule--helper.c:985:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/builtin/submodule--helper.c:987:35: note: +4, including nesting penalty of 3, nesting level increased to 4
                                            displaypath, missing_src ?
                                                                     ^
/datasets/git/builtin/submodule--helper.c:994:43: note: +1, including nesting penalty of 0, nesting level increased to 1
        print_submodule_summary(info, errmsg.len ? errmsg.buf : NULL,
                                                 ^
/datasets/git/builtin/submodule--helper.c:876:30: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                                       struct module_cb *p)
                                                         ^
/datasets/git/builtin/submodule--helper.c:878:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *displaypath, *src_abbrev = NULL, *dst_abbrev;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:878:8: warning: variable 'displaypath' is not initialized [cppcoreguidelines-init-variables]
        char *displaypath, *src_abbrev = NULL, *dst_abbrev;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/submodule--helper.c:878:42: warning: variable 'dst_abbrev' is not initialized [cppcoreguidelines-init-variables]
        char *displaypath, *src_abbrev = NULL, *dst_abbrev;
                                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/submodule--helper.c:879:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int missing_src = 0, missing_dst = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:884:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (S_ISGITLINK(p->mod_dst)) {
                    ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/builtin/submodule--helper.c:887:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (refs)
                                 ^
                                  {
/datasets/git/builtin/submodule--helper.c:890:16: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                        struct stat st;
                                    ^
/datasets/git/builtin/submodule--helper.c:891:8: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
                        int fd = open(p->sm_path, O_RDONLY);
                            ^
/datasets/git/builtin/submodule--helper.c:891:38: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
                        int fd = open(p->sm_path, O_RDONLY);
                                                          ^
                                                           | O_CLOEXEC
/datasets/git/builtin/submodule--helper.c:895:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                     p->sm_path, 0))
                                                    ^
                                                     {
/datasets/git/builtin/submodule--helper.c:899:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (p->mod_dst)
                                       ^
                                        {
/datasets/git/builtin/submodule--helper.c:904:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (S_ISGITLINK(p->mod_src)) {
            ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/builtin/submodule--helper.c:905:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (p->status != 'D')
                                     ^
                                      {
/datasets/git/builtin/submodule--helper.c:916:51: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        src_abbrev = xstrndup(oid_to_hex(&p->oid_src), 7);
                                                                       ^
/datasets/git/builtin/submodule--helper.c:925:50: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                src_abbrev = xstrndup(oid_to_hex(&p->oid_src), 7);
                                                               ^
/datasets/git/builtin/submodule--helper.c:928:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (S_ISGITLINK(p->mod_dst)) {
            ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/builtin/submodule--helper.c:939:51: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        dst_abbrev = xstrndup(oid_to_hex(&p->oid_dst), 7);
                                                                       ^
/datasets/git/builtin/submodule--helper.c:948:50: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                dst_abbrev = xstrndup(oid_to_hex(&p->oid_dst), 7);
                                                               ^
/datasets/git/builtin/submodule--helper.c:959:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (S_ISGITLINK(p->mod_src) && S_ISGITLINK(p->mod_dst))
                    ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/builtin/submodule--helper.c:959:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (S_ISGITLINK(p->mod_src) && S_ISGITLINK(p->mod_dst))
                                               ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/builtin/submodule--helper.c:959:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (S_ISGITLINK(p->mod_src) && S_ISGITLINK(p->mod_dst))
                                                                       ^
                                                                        {
/datasets/git/builtin/submodule--helper.c:962:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/submodule--helper.c:963:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        strvec_push(&cp_rev_list.args, S_ISGITLINK(p->mod_src) ?
                                                       ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/builtin/submodule--helper.c:971:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!capture_command(&cp_rev_list, &sb_rev_list, 0))
                                                                    ^
                                                                     {
/datasets/git/builtin/submodule--helper.c:972:20: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c]
                        total_commits = atoi(sb_rev_list.buf);
                                        ^
/datasets/git/builtin/submodule--helper.c:980:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (S_ISGITLINK(p->mod_dst)) {
                    ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/builtin/submodule--helper.c:1007:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/submodule--helper.c:1007:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/submodule--helper.c:1008:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < list->nr; i++) {
        ^
/datasets/git/builtin/submodule--helper.c:1009:27: warning: variable 'sub' is not initialized [cppcoreguidelines-init-variables]
                const struct submodule *sub;
                                        ^
                                            = NULL
/datasets/git/builtin/submodule--helper.c:1010:21: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct module_cb *p = list->entries[i];
                                  ^
/datasets/git/builtin/submodule--helper.c:1019:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                    (sub = submodule_from_path(the_repository,
                     ^
/datasets/git/builtin/submodule--helper.c:1019:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/builtin/submodule--helper.c:1019:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/builtin/submodule--helper.c:1022:16: warning: variable 'value' is not initialized [cppcoreguidelines-init-variables]
                        const char *value;
                                    ^
                                          = NULL
/datasets/git/builtin/submodule--helper.c:1027:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!git_config_get_string_tmp(config_key, &value))
                                                                           ^
                                                                            {
/datasets/git/builtin/submodule--helper.c:1029:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (sub->ignore)
                                             ^
                                              {
/datasets/git/builtin/submodule--helper.c:1033:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ignore_all)
                                       ^
                                        {
/datasets/git/builtin/submodule--helper.c:1039:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_nonbare_repository_dir(&sm_gitdir))
                                                          ^
                                                           {
/datasets/git/builtin/submodule--helper.c:1045:66: warning: parameter name 'q' is too short, expected at least 3 characters [readability-identifier-length]
static void submodule_summary_callback(struct diff_queue_struct *q,
                                                                 ^
/datasets/git/builtin/submodule--helper.c:1046:33: warning: parameter 'options' is unused [misc-unused-parameters]
                                       struct diff_options *options,
                                                            ^
/datasets/git/builtin/submodule--helper.c:1049:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/submodule--helper.c:1049:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/submodule--helper.c:1052:25: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct diff_filepair *p = q->queue[i];
                                      ^
/datasets/git/builtin/submodule--helper.c:1053:21: warning: variable 'temp' is not initialized [cppcoreguidelines-init-variables]
                struct module_cb *temp;
                                  ^
                                       = NULL
/datasets/git/builtin/submodule--helper.c:1055:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!S_ISGITLINK(p->one->mode) && !S_ISGITLINK(p->two->mode))
                     ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/builtin/submodule--helper.c:1055:38: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!S_ISGITLINK(p->one->mode) && !S_ISGITLINK(p->two->mode))
                                                   ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/builtin/submodule--helper.c:1055:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!S_ISGITLINK(p->one->mode) && !S_ISGITLINK(p->two->mode))
                                                                             ^
                                                                              {
/datasets/git/builtin/submodule--helper.c:1065:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                ALLOC_GROW(list->entries, list->nr + 1, list->alloc);
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/builtin/submodule--helper.c:1065:3: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                ALLOC_GROW(list->entries, list->nr + 1, list->alloc);
                ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/builtin/submodule--helper.c:1092:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (info->cached)
                         ^
                          {
/datasets/git/builtin/submodule--helper.c:1095:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (head_oid)
                     ^
                      {
/datasets/git/builtin/submodule--helper.c:1098:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (info->argc)
                       ^
                        {
/datasets/git/builtin/submodule--helper.c:1104:25: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        precompose_argv_prefix(diff_args.nr, diff_args.v, NULL);
                               ^
/datasets/git/builtin/submodule--helper.c:1105:18: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        setup_revisions(diff_args.nr, diff_args.v, &rev, &opt);
                        ^
/datasets/git/builtin/submodule--helper.c:1106:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        rev.diffopt.output_format = DIFF_FORMAT_NO_OUTPUT | DIFF_FORMAT_CALLBACK;
                                    ^
/datasets/git/./diff.h:115:31: note: expanded from macro 'DIFF_FORMAT_NO_OUTPUT'
#define DIFF_FORMAT_NO_OUTPUT   0x0800
                                ^~~~~~
/datasets/git/builtin/submodule--helper.c:1111:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (diff_cmd == DIFF_INDEX)
                                           ^
                                            {
/datasets/git/builtin/submodule--helper.c:1124:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (diff_cmd == DIFF_INDEX)
                                   ^
                                    {
/datasets/git/builtin/submodule--helper.c:1126:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/submodule--helper.c:1145:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/builtin/submodule--helper.c:1147:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "cached", &cached,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:1149:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "files", &files,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:1151:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "for-status", &for_status,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:1165:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!summary_limit)
                           ^
                            {
/datasets/git/builtin/submodule--helper.c:1181:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (get_oid("HEAD", &head_oid))
                                               ^
                                                {
/datasets/git/builtin/submodule--helper.c:1186:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cached)
                           ^
                            {
/datasets/git/builtin/submodule--helper.c:1204:8: warning: accessing fields in struct 'sync_cb' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct sync_cb {
       ^
/datasets/git/builtin/submodule--helper.c:1204:8: note: use "__attribute__((aligned(16)))" to align struct 'sync_cb' to 16 bytes
/datasets/git/builtin/submodule--helper.c:1213:26: warning: variable 'sub' is not initialized [cppcoreguidelines-init-variables]
        const struct submodule *sub;
                                ^
                                    = NULL
/datasets/git/builtin/submodule--helper.c:1215:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *sub_origin_url, *super_config_url, *displaypath, *default_remote;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:1215:8: warning: variable 'sub_origin_url' is not initialized [cppcoreguidelines-init-variables]
        char *sub_origin_url, *super_config_url, *displaypath, *default_remote;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/submodule--helper.c:1215:25: warning: variable 'super_config_url' is not initialized [cppcoreguidelines-init-variables]
        char *sub_origin_url, *super_config_url, *displaypath, *default_remote;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/submodule--helper.c:1215:44: warning: variable 'displaypath' is not initialized [cppcoreguidelines-init-variables]
        char *sub_origin_url, *super_config_url, *displaypath, *default_remote;
                                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/submodule--helper.c:1215:58: warning: variable 'default_remote' is not initialized [cppcoreguidelines-init-variables]
        char *sub_origin_url, *super_config_url, *displaypath, *default_remote;
                                                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/submodule--helper.c:1216:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/submodule--helper.c:1218:6: warning: variable 'code' is not initialized [cppcoreguidelines-init-variables]
        int code;
            ^
                 = 0
/datasets/git/builtin/submodule--helper.c:1220:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_submodule_active(the_repository, path))
                                                       ^
                                                        {
/datasets/git/builtin/submodule--helper.c:1244:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & OPT_QUIET))
              ^
/datasets/git/builtin/submodule--helper.c:1244:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & OPT_QUIET))
                      ^
/datasets/git/builtin/submodule--helper.c:26:20: note: expanded from macro 'OPT_QUIET'
#define OPT_QUIET (1 << 0)
                   ^
/datasets/git/builtin/submodule--helper.c:1244:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(flags & OPT_QUIET))
                                 ^
                                  {
/datasets/git/builtin/submodule--helper.c:1249:39: warning: Access to field 'name' results in a dereference of a null pointer (loaded from variable 'sub') [clang-analyzer-core.NullDereference]
        strbuf_addf(&sb, "submodule.%s.url", sub->name);
                                             ^
/datasets/git/builtin/submodule--helper.c:1305:2: note: Calling 'sync_submodule'
        sync_submodule(list_item->name, info->prefix, info->flags);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:1220:6: note: Assuming the condition is false
        if (!is_submodule_active(the_repository, path))
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:1220:2: note: Taking false branch
        if (!is_submodule_active(the_repository, path))
        ^
/datasets/git/builtin/submodule--helper.c:1223:2: note: Value assigned to 'sub'
        sub = submodule_from_path(the_repository, null_oid(), path);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:1225:6: note: Assuming 'sub' is null
        if (sub && sub->url) {
            ^~~
/datasets/git/builtin/submodule--helper.c:1225:6: note: Assuming pointer value is null
        if (sub && sub->url) {
            ^~~
/datasets/git/builtin/submodule--helper.c:1225:10: note: Left side of '&&' is false
        if (sub && sub->url) {
                ^
/datasets/git/builtin/submodule--helper.c:1244:6: note: Assuming the condition is false
        if (!(flags & OPT_QUIET))
            ^~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:1244:2: note: Taking false branch
        if (!(flags & OPT_QUIET))
        ^
/datasets/git/builtin/submodule--helper.c:1249:39: note: Access to field 'name' results in a dereference of a null pointer (loaded from variable 'sub')
        strbuf_addf(&sb, "submodule.%s.url", sub->name);
                                             ^~~
/datasets/git/builtin/submodule--helper.c:1250:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (git_config_set_gently(sb.buf, super_config_url))
                                                            ^
                                                             {
/datasets/git/builtin/submodule--helper.c:1254:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_submodule_populated_gently(path, NULL))
                                                       ^
                                                        {
/datasets/git/builtin/submodule--helper.c:1259:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (code)
                 ^
                  {
/datasets/git/builtin/submodule--helper.c:1260:3: warning: function is not thread safe [concurrency-mt-unsafe]
                exit(code);
                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/submodule--helper.c:1262:15: warning: 2nd function call argument is an uninitialized value [clang-analyzer-core.CallAndMessage]
        remote_key = xstrfmt("remote.%s.url", default_remote);
                     ^
/datasets/git/builtin/submodule--helper.c:1305:2: note: Calling 'sync_submodule'
        sync_submodule(list_item->name, info->prefix, info->flags);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:1215:58: note: 'default_remote' declared without an initial value
        char *sub_origin_url, *super_config_url, *displaypath, *default_remote;
                                                                ^~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:1220:6: note: Assuming the condition is false
        if (!is_submodule_active(the_repository, path))
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:1220:2: note: Taking false branch
        if (!is_submodule_active(the_repository, path))
        ^
/datasets/git/builtin/submodule--helper.c:1225:6: note: Assuming 'sub' is non-null
        if (sub && sub->url) {
            ^~~
/datasets/git/builtin/submodule--helper.c:1225:6: note: Left side of '&&' is true
/datasets/git/builtin/submodule--helper.c:1225:13: note: Assuming field 'url' is null
        if (sub && sub->url) {
                   ^~~~~~~~
/datasets/git/builtin/submodule--helper.c:1225:2: note: Taking false branch
        if (sub && sub->url) {
        ^
/datasets/git/builtin/submodule--helper.c:1244:6: note: Assuming the condition is false
        if (!(flags & OPT_QUIET))
            ^~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:1244:2: note: Taking false branch
        if (!(flags & OPT_QUIET))
        ^
/datasets/git/builtin/submodule--helper.c:1250:6: note: Assuming the condition is false
        if (git_config_set_gently(sb.buf, super_config_url))
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:1250:2: note: Taking false branch
        if (git_config_set_gently(sb.buf, super_config_url))
        ^
/datasets/git/builtin/submodule--helper.c:1254:6: note: Assuming the condition is false
        if (!is_submodule_populated_gently(path, NULL))
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:1254:2: note: Taking false branch
        if (!is_submodule_populated_gently(path, NULL))
        ^
/datasets/git/builtin/submodule--helper.c:1258:9: note: Calling 'get_default_remote_submodule'
        code = get_default_remote_submodule(path, &default_remote);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:70:6: note: Assuming the condition is true
        if (repo_submodule_init(&subrepo, the_repository, module_path,
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:70:2: note: Taking true branch
        if (repo_submodule_init(&subrepo, the_repository, module_path,
        ^
/datasets/git/builtin/submodule--helper.c:72:3: note: Returning without writing to '*default_remote'
                return die_message(_("could not get a repository handle for submodule '%s'"),
                ^
/datasets/git/builtin/submodule--helper.c:1258:9: note: Returning from 'get_default_remote_submodule'
        code = get_default_remote_submodule(path, &default_remote);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:1259:6: note: Assuming 'code' is 0
        if (code)
            ^~~~
/datasets/git/builtin/submodule--helper.c:1259:2: note: Taking false branch
        if (code)
        ^
/datasets/git/builtin/submodule--helper.c:1262:15: note: 2nd function call argument is an uninitialized value
        remote_key = xstrfmt("remote.%s.url", default_remote);
                     ^                        ~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:1268:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (git_config_set_in_file_gently(sb.buf, remote_key, sub_origin_url))
                                                                              ^
                                                                               {
/datasets/git/builtin/submodule--helper.c:1272:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & OPT_RECURSIVE) {
            ^
/datasets/git/builtin/submodule--helper.c:1272:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & OPT_RECURSIVE) {
                    ^
/datasets/git/builtin/submodule--helper.c:28:24: note: expanded from macro 'OPT_RECURSIVE'
#define OPT_RECURSIVE (1 << 2)
                       ^
/datasets/git/builtin/submodule--helper.c:1284:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flags & OPT_QUIET)
                    ^
/datasets/git/builtin/submodule--helper.c:1284:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flags & OPT_QUIET)
                            ^
/datasets/git/builtin/submodule--helper.c:26:20: note: expanded from macro 'OPT_QUIET'
#define OPT_QUIET (1 << 0)
                   ^
/datasets/git/builtin/submodule--helper.c:1284:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (flags & OPT_QUIET)
                                      ^
                                       {
/datasets/git/builtin/submodule--helper.c:1287:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (run_command(&cpr))
                                      ^
                                       {
/datasets/git/builtin/submodule--helper.c:1316:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__QUIET(&quiet, N_("suppress output of synchronizing submodule url")),
                ^
/datasets/git/./parse-options.h:360:31: note: expanded from macro 'OPT__QUIET'
#define OPT__QUIET(var, h)    OPT_COUNTUP('q', "quiet",   (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:1317:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "recursive", &recursive,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:1327:2: warning: Value stored to 'argc' is never read [clang-analyzer-deadcode.DeadStores]
        argc = parse_options(argc, argv, prefix, module_sync_options,
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:1327:2: note: Value stored to 'argc' is never read
        argc = parse_options(argc, argv, prefix, module_sync_options,
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:1330:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (module_list_compute(argv, prefix, &pathspec, &list) < 0)
                                                                    ^
                                                                     {
/datasets/git/builtin/submodule--helper.c:1334:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (quiet)
                  ^
                   {
/datasets/git/builtin/submodule--helper.c:1335:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                info.flags |= OPT_QUIET;
                ^
/datasets/git/builtin/submodule--helper.c:1335:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                info.flags |= OPT_QUIET;
                              ^
/datasets/git/builtin/submodule--helper.c:26:20: note: expanded from macro 'OPT_QUIET'
#define OPT_QUIET (1 << 0)
                   ^
/datasets/git/builtin/submodule--helper.c:1336:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (recursive)
                      ^
                       {
/datasets/git/builtin/submodule--helper.c:1337:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                info.flags |= OPT_RECURSIVE;
                ^
/datasets/git/builtin/submodule--helper.c:1337:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                info.flags |= OPT_RECURSIVE;
                              ^
/datasets/git/builtin/submodule--helper.c:28:24: note: expanded from macro 'OPT_RECURSIVE'
#define OPT_RECURSIVE (1 << 2)
                       ^
/datasets/git/builtin/submodule--helper.c:1348:8: warning: accessing fields in struct 'deinit_cb' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct deinit_cb {
       ^
/datasets/git/builtin/submodule--helper.c:1348:8: note: use "__attribute__((aligned(16)))" to align struct 'deinit_cb' to 16 bytes
/datasets/git/builtin/submodule--helper.c:1357:26: warning: variable 'sub' is not initialized [cppcoreguidelines-init-variables]
        const struct submodule *sub;
                                ^
                                    = NULL
/datasets/git/builtin/submodule--helper.c:1365:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!sub || !sub->name)
                               ^
                                {
/datasets/git/builtin/submodule--helper.c:1373:15: warning: variable 'format' is not initialized [cppcoreguidelines-init-variables]
                const char *format;
                            ^
                                   = NULL
/datasets/git/builtin/submodule--helper.c:1376:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!(flags & OPT_QUIET))
                              ^
/datasets/git/builtin/submodule--helper.c:1376:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!(flags & OPT_QUIET))
                                      ^
/datasets/git/builtin/submodule--helper.c:26:20: note: expanded from macro 'OPT_QUIET'
#define OPT_QUIET (1 << 0)
                   ^
/datasets/git/builtin/submodule--helper.c:1376:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!(flags & OPT_QUIET))
                                                 ^
                                                  {
/datasets/git/builtin/submodule--helper.c:1386:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(flags & OPT_FORCE)) {
                      ^
/datasets/git/builtin/submodule--helper.c:1386:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(flags & OPT_FORCE)) {
                              ^
/datasets/git/builtin/submodule--helper.c:29:20: note: expanded from macro 'OPT_FORCE'
#define OPT_FORCE (1 << 3)
                   ^
/datasets/git/builtin/submodule--helper.c:1393:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (run_command(&cp_rm))
                                                ^
                                                 {
/datasets/git/builtin/submodule--helper.c:1401:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!remove_dir_recursively(&sb_rm, 0))
                                                       ^
                                                        {
/datasets/git/builtin/submodule--helper.c:1403:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/submodule--helper.c:1406:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(flags & OPT_QUIET))
                      ^
/datasets/git/builtin/submodule--helper.c:1406:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(flags & OPT_QUIET))
                              ^
/datasets/git/builtin/submodule--helper.c:26:20: note: expanded from macro 'OPT_QUIET'
#define OPT_QUIET (1 << 0)
                   ^
/datasets/git/builtin/submodule--helper.c:1406:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(flags & OPT_QUIET))
                                         ^
                                          {
/datasets/git/builtin/submodule--helper.c:1414:18: warning: 0777 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (mkdir(path, 0777))
                        ^
/datasets/git/builtin/submodule--helper.c:1414:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mkdir(path, 0777))
                              ^
                               {
/datasets/git/builtin/submodule--helper.c:1431:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(flags & OPT_QUIET))
                      ^
/datasets/git/builtin/submodule--helper.c:1431:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(flags & OPT_QUIET))
                              ^
/datasets/git/builtin/submodule--helper.c:26:20: note: expanded from macro 'OPT_QUIET'
#define OPT_QUIET (1 << 0)
                   ^
/datasets/git/builtin/submodule--helper.c:1431:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(flags & OPT_QUIET))
                                         ^
                                          {
/datasets/git/builtin/submodule--helper.c:1459:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__QUIET(&quiet, N_("suppress submodule status output")),
                ^
/datasets/git/./parse-options.h:360:31: note: expanded from macro 'OPT__QUIET'
#define OPT__QUIET(var, h)    OPT_COUNTUP('q', "quiet",   (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:1460:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__FORCE(&force, N_("remove submodule working trees even if they contain local changes"), 0),
                ^
/datasets/git/./parse-options.h:367:31: note: expanded from macro 'OPT__FORCE'
#define OPT__FORCE(var, h, f) OPT_COUNTUP_F('f', "force",   (var), (h), (f))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:1461:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "all", &all, N_("unregister all submodules")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:1479:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!argc && !all)
                          ^
                           {
/datasets/git/builtin/submodule--helper.c:1482:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (module_list_compute(argv, prefix, &pathspec, &list) < 0)
                                                                    ^
                                                                     {
/datasets/git/builtin/submodule--helper.c:1486:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (quiet)
                  ^
                   {
/datasets/git/builtin/submodule--helper.c:1487:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                info.flags |= OPT_QUIET;
                ^
/datasets/git/builtin/submodule--helper.c:1487:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                info.flags |= OPT_QUIET;
                              ^
/datasets/git/builtin/submodule--helper.c:26:20: note: expanded from macro 'OPT_QUIET'
#define OPT_QUIET (1 << 0)
                   ^
/datasets/git/builtin/submodule--helper.c:1488:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (force)
                  ^
                   {
/datasets/git/builtin/submodule--helper.c:1489:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                info.flags |= OPT_FORCE;
                ^
/datasets/git/builtin/submodule--helper.c:1489:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                info.flags |= OPT_FORCE;
                              ^
/datasets/git/builtin/submodule--helper.c:29:20: note: expanded from macro 'OPT_FORCE'
#define OPT_FORCE (1 << 3)
                   ^
/datasets/git/builtin/submodule--helper.c:1500:8: warning: accessing fields in struct 'module_clone_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct module_clone_data {
       ^
/datasets/git/builtin/submodule--helper.c:1500:8: note: use "__attribute__((aligned(128)))" to align struct 'module_clone_data' to 128 bytes
/datasets/git/builtin/submodule--helper.c:1517:8: warning: accessing fields in struct 'submodule_alternate_setup' is inefficient due to padding; only needs 20 bytes but is using 24 bytes [altera-struct-pack-align]
struct submodule_alternate_setup {
       ^
/datasets/git/builtin/submodule--helper.c:1517:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'submodule_alternate_setup'
/datasets/git/builtin/submodule--helper.c:1517:8: warning: accessing fields in struct 'submodule_alternate_setup' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct submodule_alternate_setup {
       ^
/datasets/git/builtin/submodule--helper.c:1517:8: note: use "__attribute__((aligned(32)))" to align struct 'submodule_alternate_setup' to 32 bytes
/datasets/git/builtin/submodule--helper.c:1541:9: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        size_t len;
               ^
                   = 0
/datasets/git/builtin/submodule--helper.c:1549:9: warning: variable 'sm_alternate' is not initialized [cppcoreguidelines-init-variables]
                char *sm_alternate;
                      ^
                                   = NULL
/datasets/git/builtin/submodule--helper.c:1550:17: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                struct strbuf sb = STRBUF_INIT;
                              ^
/datasets/git/builtin/submodule--helper.c:1554:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (repo_init(&alternate, sb.buf, NULL) < 0)
                                                            ^
                                                             {
/datasets/git/builtin/submodule--helper.c:1571:10: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                        char *p = strbuf_detach(&sb, NULL);
                              ^
/datasets/git/builtin/submodule--helper.c:1578:71: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (advice_enabled(ADVICE_SUBMODULE_ALTERNATE_ERROR_STRATEGY_DIE))
                                                                                                  ^
                                                                                                   {
/datasets/git/builtin/submodule--helper.c:1598:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *sm_alternate = NULL, *error_strategy = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:1602:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!sm_alternate)
                          ^
                           {
/datasets/git/builtin/submodule--helper.c:1607:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!error_strategy)
                            ^
                             {
/datasets/git/builtin/submodule--helper.c:1612:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(error_strategy, "die"))
                                           ^
                                            {
/datasets/git/builtin/submodule--helper.c:1614:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(error_strategy, "info"))
                                                 ^
                                                  {
/datasets/git/builtin/submodule--helper.c:1616:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(error_strategy, "ignore"))
                                                   ^
                                                    {
/datasets/git/builtin/submodule--helper.c:1618:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/submodule--helper.c:1621:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(sm_alternate, "superproject"))
                                                  ^
                                                   {
/datasets/git/builtin/submodule--helper.c:1623:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(sm_alternate, "no"))
                                             ^
                                              {
/datasets/git/builtin/submodule--helper.c:1625:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/submodule--helper.c:1634:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/submodule--helper.c:1635:8: warning: variable 'sm_gitdir' is not initialized [cppcoreguidelines-init-variables]
        char *sm_gitdir;
              ^
                        = NULL
/datasets/git/builtin/submodule--helper.c:1644:12: warning: function 'clone_submodule' has cognitive complexity of 42 (threshold 25) [readability-function-cognitive-complexity]
static int clone_submodule(const struct module_clone_data *clone_data,
           ^
/datasets/git/builtin/submodule--helper.c:1654:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!is_absolute_path(clone_data->path))
        ^
/datasets/git/builtin/submodule--helper.c:1658:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (validate_submodule_git_dir(sm_gitdir, clone_data->name) < 0)
        ^
/datasets/git/builtin/submodule--helper.c:1662:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!file_exists(sm_gitdir)) {
        ^
/datasets/git/builtin/submodule--helper.c:1663:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (safe_create_leading_directories_const(sm_gitdir) < 0)
                ^
/datasets/git/builtin/submodule--helper.c:1670:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (clone_data->quiet)
                ^
/datasets/git/builtin/submodule--helper.c:1672:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (clone_data->progress)
                ^
/datasets/git/builtin/submodule--helper.c:1674:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (clone_data->depth && *(clone_data->depth))
                ^
/datasets/git/builtin/submodule--helper.c:1674:25: note: +1
                if (clone_data->depth && *(clone_data->depth))
                                      ^
/datasets/git/builtin/submodule--helper.c:1676:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (reference->nr) {
                ^
/datasets/git/builtin/submodule--helper.c:1679:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for_each_string_list_item(item, reference)
                        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/submodule--helper.c:1679:4: note: +1
                        for_each_string_list_item(item, reference)
                        ^
/datasets/git/./string-list.h:152:12: note: expanded from macro 'for_each_string_list_item'
             item && item < (list)->items + (list)->nr; \
                  ^
/datasets/git/builtin/submodule--helper.c:1683:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (clone_data->dissociate)
                ^
/datasets/git/builtin/submodule--helper.c:1685:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (sm_gitdir && *sm_gitdir)
                ^
/datasets/git/builtin/submodule--helper.c:1685:17: note: +1
                if (sm_gitdir && *sm_gitdir)
                              ^
/datasets/git/builtin/submodule--helper.c:1687:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (clone_data->filter_options && clone_data->filter_options->choice)
                ^
/datasets/git/builtin/submodule--helper.c:1687:34: note: +1
                if (clone_data->filter_options && clone_data->filter_options->choice)
                                               ^
/datasets/git/builtin/submodule--helper.c:1691:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (clone_data->single_branch >= 0)
                ^
/datasets/git/builtin/submodule--helper.c:1692:52: note: +3, including nesting penalty of 2, nesting level increased to 3
                        strvec_push(&cp.args, clone_data->single_branch ?
                                                                        ^
/datasets/git/builtin/submodule--helper.c:1704:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if(run_command(&cp))
                ^
/datasets/git/builtin/submodule--helper.c:1707:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/submodule--helper.c:1710:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (clone_data->require_init && !access(clone_data_path, X_OK) &&
                ^
/datasets/git/builtin/submodule--helper.c:1710:66: note: +1
                if (clone_data->require_init && !access(clone_data_path, X_OK) &&
                                                                               ^
/datasets/git/builtin/submodule--helper.c:1713:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (safe_create_leading_directories_const(clone_data_path) < 0)
                ^
/datasets/git/builtin/submodule--helper.c:1723:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!p)
        ^
/datasets/git/builtin/submodule--helper.c:1728:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (sm_alternate)
        ^
/datasets/git/builtin/submodule--helper.c:1732:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (error_strategy)
        ^
/datasets/git/builtin/submodule--helper.c:1647:8: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        char *p;
              ^
                = NULL
/datasets/git/builtin/submodule--helper.c:1647:8: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/submodule--helper.c:1649:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *sm_alternate = NULL, *error_strategy = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:1650:23: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
        struct child_process cp = CHILD_PROCESS_INIT;
                             ^
/datasets/git/builtin/submodule--helper.c:1654:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_absolute_path(clone_data->path))
                                                ^
                                                 {
/datasets/git/builtin/submodule--helper.c:1658:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (validate_submodule_git_dir(sm_gitdir, clone_data->name) < 0)
                                                                        ^
                                                                         {
/datasets/git/builtin/submodule--helper.c:1663:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (safe_create_leading_directories_const(sm_gitdir) < 0)
                                                                         ^
                                                                          {
/datasets/git/builtin/submodule--helper.c:1670:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (clone_data->quiet)
                                      ^
                                       {
/datasets/git/builtin/submodule--helper.c:1672:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (clone_data->progress)
                                         ^
                                          {
/datasets/git/builtin/submodule--helper.c:1674:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (clone_data->depth && *(clone_data->depth))
                                                              ^
                                                               {
/datasets/git/builtin/submodule--helper.c:1677:29: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
                        struct string_list_item *item;
                                                 ^
                                                      = NULL
/datasets/git/builtin/submodule--helper.c:1679:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for_each_string_list_item(item, reference)
                        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/submodule--helper.c:1679:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for_each_string_list_item(item, reference)
                                                  ^
/datasets/git/builtin/submodule--helper.c:1683:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (clone_data->dissociate)
                                           ^
                                            {
/datasets/git/builtin/submodule--helper.c:1685:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (sm_gitdir && *sm_gitdir)
                                            ^
                                             {
/datasets/git/builtin/submodule--helper.c:1687:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (clone_data->filter_options && clone_data->filter_options->choice)
                                                                                     ^
                                                                                      {
/datasets/git/builtin/submodule--helper.c:1691:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (clone_data->single_branch >= 0)
                                                   ^
                                                    {
/datasets/git/builtin/submodule--helper.c:1704:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if(run_command(&cp))
                                    ^
                                     {
/datasets/git/builtin/submodule--helper.c:1708:9: warning: variable 'path' is not initialized [cppcoreguidelines-init-variables]
                char *path;
                      ^
                           = NULL
/datasets/git/builtin/submodule--helper.c:1711:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !is_empty_dir(clone_data_path))
                                                   ^
                                                    {
/datasets/git/builtin/submodule--helper.c:1713:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (safe_create_leading_directories_const(clone_data_path) < 0)
                                                                               ^
                                                                                {
/datasets/git/builtin/submodule--helper.c:1723:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!p)
               ^
                {
/datasets/git/builtin/submodule--helper.c:1728:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (sm_alternate)
                         ^
                          {
/datasets/git/builtin/submodule--helper.c:1732:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (error_strategy)
                           ^
                            {
/datasets/git/builtin/submodule--helper.c:1747:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int dissociate = 0, quiet = 0, progress = 0, require_init = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:1769:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "dissociate", &dissociate,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:1774:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__QUIET(&quiet, "suppress output for cloning a submodule"),
                ^
/datasets/git/./parse-options.h:360:31: note: expanded from macro 'OPT__QUIET'
#define OPT__QUIET(var, h)    OPT_COUNTUP('q', "quiet",   (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:1775:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "progress", &progress,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:1777:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "require-init", &require_init,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:1779:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "single-branch", &clone_data.single_branch,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:1801:73: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc || !clone_data.url || !clone_data.path || !*(clone_data.path))
                                                                               ^
                                                                                {
/datasets/git/builtin/submodule--helper.c:1811:67: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int determine_submodule_update_strategy(struct repository *r,
                                                                  ^
/datasets/git/builtin/submodule--helper.c:1818:8: warning: variable 'key' is not initialized [cppcoreguidelines-init-variables]
        char *key;
              ^
                  = NULL
/datasets/git/builtin/submodule--helper.c:1819:14: warning: variable 'val' is not initialized [cppcoreguidelines-init-variables]
        const char *val;
                    ^
                        = NULL
/datasets/git/builtin/submodule--helper.c:1820:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/builtin/submodule--helper.c:1833:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (sub->update_strategy.type == SM_UPDATE_COMMAND)
                                                                   ^
                                                                    {
/datasets/git/builtin/submodule--helper.c:1837:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/builtin/submodule--helper.c:1843:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
             out->type == SM_UPDATE_NONE))
                                          ^
                                           {
/datasets/git/builtin/submodule--helper.c:1852:8: warning: accessing fields in struct 'update_clone_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct update_clone_data {
       ^
/datasets/git/builtin/submodule--helper.c:1852:8: note: use "__attribute__((aligned(64)))" to align struct 'update_clone_data' to 64 bytes
/datasets/git/builtin/submodule--helper.c:1858:8: warning: accessing fields in struct 'submodule_update_clone' is inefficient due to padding; only needs 48 bytes but is using 56 bytes [altera-struct-pack-align]
struct submodule_update_clone {
       ^
/datasets/git/builtin/submodule--helper.c:1858:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'submodule_update_clone'
/datasets/git/builtin/submodule--helper.c:1858:8: warning: accessing fields in struct 'submodule_update_clone' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct submodule_update_clone {
       ^
/datasets/git/builtin/submodule--helper.c:1858:8: note: use "__attribute__((aligned(64)))" to align struct 'submodule_update_clone' to 64 bytes
/datasets/git/builtin/submodule--helper.c:1884:8: warning: accessing fields in struct 'update_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct update_data {
       ^
/datasets/git/builtin/submodule--helper.c:1884:8: note: use "__attribute__((aligned(128)))" to align struct 'update_data' to 128 bytes
/datasets/git/builtin/submodule--helper.c:1922:53: warning: parameter name 'ud' is too short, expected at least 3 characters [readability-identifier-length]
static void update_data_release(struct update_data *ud)
                                                    ^
/datasets/git/builtin/submodule--helper.c:1950:12: warning: function 'prepare_to_clone_next_submodule' has cognitive complexity of 43 (threshold 25) [readability-function-cognitive-complexity]
static int prepare_to_clone_next_submodule(const struct cache_entry *ce,
           ^
/datasets/git/builtin/submodule--helper.c:1966:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ce_stage(ce)) {
        ^
/datasets/git/builtin/submodule--helper.c:1969:3: note: +1
                goto cleanup;
                ^
/datasets/git/builtin/submodule--helper.c:1974:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!sub) {
        ^
/datasets/git/builtin/submodule--helper.c:1976:3: note: +1
                goto cleanup;
                ^
/datasets/git/builtin/submodule--helper.c:1980:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!repo_config_get_string_tmp(the_repository, key, &update_string)) {
        ^
/datasets/git/builtin/submodule--helper.c:1982:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/submodule--helper.c:1987:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (suc->update_data->update_strategy.type == SM_UPDATE_NONE
        ^
/datasets/git/builtin/submodule--helper.c:1988:6: note: +1
            || (suc->update_data->update_strategy.type == SM_UPDATE_UNSPECIFIED
            ^
/datasets/git/builtin/submodule--helper.c:1989:3: note: +1
                && update_type == SM_UPDATE_NONE)) {
                ^
/datasets/git/builtin/submodule--helper.c:1992:3: note: +1
                goto cleanup;
                ^
/datasets/git/builtin/submodule--helper.c:1996:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!is_submodule_active(the_repository, ce->name)) {
        ^
/datasets/git/builtin/submodule--helper.c:1998:3: note: +1
                goto cleanup;
                ^
/datasets/git/builtin/submodule--helper.c:2003:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (repo_config_get_string_tmp(the_repository, sb.buf, &url)) {
        ^
/datasets/git/builtin/submodule--helper.c:2004:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (starts_with_dot_slash(sub->url) ||
                ^
/datasets/git/builtin/submodule--helper.c:2004:39: note: +1
                if (starts_with_dot_slash(sub->url) ||
                                                    ^
/datasets/git/builtin/submodule--helper.c:2008:5: note: +1, nesting level increased to 2
                } else
                  ^
/datasets/git/builtin/submodule--helper.c:2016:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        ALLOC_GROW(suc->update_clone, suc->update_clone_nr + 1,
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/builtin/submodule--helper.c:2016:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        ALLOC_GROW(suc->update_clone, suc->update_clone_nr + 1,
        ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/builtin/submodule--helper.c:2016:2: note: +3, including nesting penalty of 2, nesting level increased to 3
        ALLOC_GROW(suc->update_clone, suc->update_clone_nr + 1,
        ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/builtin/submodule--helper.c:2016:2: note: +1, nesting level increased to 3
        ALLOC_GROW(suc->update_clone, suc->update_clone_nr + 1,
        ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/builtin/submodule--helper.c:2023:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!needs_cloning)
        ^
/datasets/git/builtin/submodule--helper.c:2032:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (suc->update_data->progress)
        ^
/datasets/git/builtin/submodule--helper.c:2034:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (suc->update_data->quiet)
        ^
/datasets/git/builtin/submodule--helper.c:2036:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (suc->update_data->prefix)
        ^
/datasets/git/builtin/submodule--helper.c:2038:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (suc->update_data->recommend_shallow && sub->recommend_shallow == 1)
        ^
/datasets/git/builtin/submodule--helper.c:2038:42: note: +1
        if (suc->update_data->recommend_shallow && sub->recommend_shallow == 1)
                                                ^
/datasets/git/builtin/submodule--helper.c:2040:7: note: +1, nesting level increased to 1
        else if (suc->update_data->depth)
             ^
/datasets/git/builtin/submodule--helper.c:2042:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (suc->update_data->filter_options && suc->update_data->filter_options->choice)
        ^
/datasets/git/builtin/submodule--helper.c:2042:39: note: +1
        if (suc->update_data->filter_options && suc->update_data->filter_options->choice)
                                             ^
/datasets/git/builtin/submodule--helper.c:2045:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (suc->update_data->require_init)
        ^
/datasets/git/builtin/submodule--helper.c:2050:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (suc->update_data->references.nr) {
        ^
/datasets/git/builtin/submodule--helper.c:2053:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for_each_string_list_item(item, &suc->update_data->references)
                ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/submodule--helper.c:2053:3: note: +1
                for_each_string_list_item(item, &suc->update_data->references)
                ^
/datasets/git/./string-list.h:152:12: note: expanded from macro 'for_each_string_list_item'
             item && item < (list)->items + (list)->nr; \
                  ^
/datasets/git/builtin/submodule--helper.c:2056:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (suc->update_data->dissociate)
        ^
/datasets/git/builtin/submodule--helper.c:2058:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (suc->update_data->single_branch >= 0)
        ^
/datasets/git/builtin/submodule--helper.c:2059:61: note: +2, including nesting penalty of 1, nesting level increased to 2
                strvec_push(&child->args, suc->update_data->single_branch ?
                                                                          ^
/datasets/git/builtin/submodule--helper.c:2066:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (need_free_url)
        ^
/datasets/git/builtin/submodule--helper.c:1950:70: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static int prepare_to_clone_next_submodule(const struct cache_entry *ce,
                                                                     ^
/datasets/git/builtin/submodule--helper.c:1957:14: warning: variable 'update_string' is not initialized [cppcoreguidelines-init-variables]
        const char *update_string;
                    ^
                                  = NULL
/datasets/git/builtin/submodule--helper.c:1958:29: warning: variable 'update_type' is not initialized [cppcoreguidelines-init-variables]
        enum submodule_update_type update_type;
                                   ^
/datasets/git/builtin/submodule--helper.c:1959:8: warning: variable 'key' is not initialized [cppcoreguidelines-init-variables]
        char *key;
              ^
                  = NULL
/datasets/git/builtin/submodule--helper.c:1960:28: warning: variable name 'ud' is too short, expected at least 3 characters [readability-identifier-length]
        const struct update_data *ud = suc->update_data;
                                  ^
/datasets/git/builtin/submodule--helper.c:1962:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/submodule--helper.c:1966:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (ce_stage(ce)) {
            ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:2008:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/builtin/submodule--helper.c:2016:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(suc->update_clone, suc->update_clone_nr + 1,
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/builtin/submodule--helper.c:2023:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!needs_cloning)
                           ^
                            {
/datasets/git/builtin/submodule--helper.c:2032:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (suc->update_data->progress)
                                       ^
                                        {
/datasets/git/builtin/submodule--helper.c:2034:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (suc->update_data->quiet)
                                    ^
                                     {
/datasets/git/builtin/submodule--helper.c:2036:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (suc->update_data->prefix)
                                     ^
                                      {
/datasets/git/builtin/submodule--helper.c:2038:73: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (suc->update_data->recommend_shallow && sub->recommend_shallow == 1)
                                                                               ^
                                                                                {
/datasets/git/builtin/submodule--helper.c:2040:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (suc->update_data->depth)
                                         ^
                                          {
/datasets/git/builtin/submodule--helper.c:2042:83: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (suc->update_data->filter_options && suc->update_data->filter_options->choice)
                                                                                         ^
                                                                                          {
/datasets/git/builtin/submodule--helper.c:2045:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (suc->update_data->require_init)
                                           ^
                                            {
/datasets/git/builtin/submodule--helper.c:2051:28: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
                struct string_list_item *item;
                                         ^
                                              = NULL
/datasets/git/builtin/submodule--helper.c:2077:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct submodule_update_clone *suc = suc_cb;
        ^
/datasets/git/builtin/submodule--helper.c:2053:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for_each_string_list_item(item, &suc->update_data->references)
                ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/submodule--helper.c:2053:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
                for_each_string_list_item(item, &suc->update_data->references)
                                          ^
/datasets/git/builtin/submodule--helper.c:2056:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (suc->update_data->dissociate)
                                         ^
                                          {
/datasets/git/builtin/submodule--helper.c:2058:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (suc->update_data->single_branch >= 0)
                                                 ^
                                                  {
/datasets/git/builtin/submodule--helper.c:2066:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (need_free_url)
                          ^
                           {
/datasets/git/builtin/submodule--helper.c:2078:28: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
        const struct cache_entry *ce;
                                  ^
                                     = NULL
/datasets/git/builtin/submodule--helper.c:2078:28: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/submodule--helper.c:2079:6: warning: variable 'index' is not initialized [cppcoreguidelines-init-variables]
        int index;
            ^
                  = 0
/datasets/git/builtin/submodule--helper.c:2081:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; suc->current < suc->update_data->list.nr; suc->current++) {
        ^
/datasets/git/builtin/submodule--helper.c:2081:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'suc' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; suc->current < suc->update_data->list.nr; suc->current++) {
               ^
/datasets/git/builtin/submodule--helper.c:2084:9: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                        int *p = xmalloc(sizeof(*p));
                             ^
/datasets/git/builtin/submodule--helper.c:2100:8: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                int *p;
                     ^
                       = NULL
/datasets/git/builtin/submodule--helper.c:2100:8: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/submodule--helper.c:2120:54: warning: parameter 'err' is unused [misc-unused-parameters]
static int update_clone_start_failure(struct strbuf *err,
                                                     ^
/datasets/git/builtin/submodule--helper.c:2121:11: warning: 2 adjacent parameters of 'update_clone_start_failure' of similar type ('void *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                      void *suc_cb,
                                      ^~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:2121:17: note: the first parameter in the range is 'suc_cb'
                                      void *suc_cb,
                                            ^~~~~~
/datasets/git/builtin/submodule--helper.c:2122:17: note: the last parameter in the range is 'idx_task_cb'
                                      void *idx_task_cb)
                                            ^~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:2122:17: warning: parameter 'idx_task_cb' is unused [misc-unused-parameters]
                                      void *idx_task_cb)
                                            ^
/datasets/git/builtin/submodule--helper.c:2132:11: warning: 2 adjacent parameters of 'update_clone_task_finished' of similar type ('void *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                      void *suc_cb,
                                      ^~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:2132:17: note: the first parameter in the range is 'suc_cb'
                                      void *suc_cb,
                                            ^~~~~~
/datasets/git/builtin/submodule--helper.c:2133:17: note: the last parameter in the range is 'idx_task_cb'
                                      void *idx_task_cb)
                                            ^~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:2135:28: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
        const struct cache_entry *ce;
                                  ^
                                     = NULL
/datasets/git/builtin/submodule--helper.c:2135:28: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/submodule--helper.c:2142:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!result)
                    ^
                     {
/datasets/git/builtin/submodule--helper.c:2150:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                ALLOC_GROW(suc->failed_clones,
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/builtin/submodule--helper.c:2150:3: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                ALLOC_GROW(suc->failed_clones,
                ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/builtin/submodule--helper.c:2155:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else {
          ^~~~~~
/datasets/git/builtin/submodule--helper.c:2169:14: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
                                   void *cb)
                                         ^
/datasets/git/builtin/submodule--helper.c:2173:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(var, "submodule.fetchjobs"))
                                                ^
                                                 {
/datasets/git/builtin/submodule--helper.c:2180:23: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
        struct child_process cp = CHILD_PROCESS_INIT;
                             ^
/datasets/git/builtin/submodule--helper.c:2191:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (capture_command(&cp, &rev, GIT_MAX_HEXSZ + 1) || rev.len)
                                                                     ^
                                                                      {
/datasets/git/builtin/submodule--helper.c:2197:56: warning: 2 adjacent parameters of 'fetch_in_submodule' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int fetch_in_submodule(const char *module_path, int depth, int quiet,
                                                       ^~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:2197:60: note: the first parameter in the range is 'depth'
static int fetch_in_submodule(const char *module_path, int depth, int quiet,
                                                           ^~~~~
/datasets/git/builtin/submodule--helper.c:2197:71: note: the last parameter in the range is 'quiet'
static int fetch_in_submodule(const char *module_path, int depth, int quiet,
                                                                      ^~~~~
/datasets/git/builtin/submodule--helper.c:2200:23: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
        struct child_process cp = CHILD_PROCESS_INIT;
                             ^
/datasets/git/builtin/submodule--helper.c:2207:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (quiet)
                  ^
                   {
/datasets/git/builtin/submodule--helper.c:2209:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (depth)
                  ^
                   {
/datasets/git/builtin/submodule--helper.c:2222:57: warning: parameter name 'ud' is too short, expected at least 3 characters [readability-identifier-length]
static int run_update_command(const struct update_data *ud, int subforce)
                                                        ^
/datasets/git/builtin/submodule--helper.c:2224:23: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
        struct child_process cp = CHILD_PROCESS_INIT;
                             ^
/datasets/git/builtin/submodule--helper.c:2226:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/builtin/submodule--helper.c:2232:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (subforce)
                             ^
                              {
/datasets/git/builtin/submodule--helper.c:2238:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ud->quiet)
                              ^
                               {
/datasets/git/builtin/submodule--helper.c:2244:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ud->quiet)
                              ^
                               {
/datasets/git/builtin/submodule--helper.c:2259:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if ((ret = run_command(&cp))) {
             ^
/datasets/git/builtin/submodule--helper.c:2259:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/builtin/submodule--helper.c:2259:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/builtin/submodule--helper.c:2286:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ud->quiet)
                      ^
                       {
/datasets/git/builtin/submodule--helper.c:2314:59: warning: parameter name 'ud' is too short, expected at least 3 characters [readability-identifier-length]
static int run_update_procedure(const struct update_data *ud)
                                                          ^
/datasets/git/builtin/submodule--helper.c:2324:50: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                    fetch_in_submodule(ud->sm_path, ud->depth, ud->quiet, NULL) &&
                                                               ^
/datasets/git/builtin/submodule--helper.c:2325:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !ud->quiet)
                               ^
                                {
/datasets/git/builtin/submodule--helper.c:2335:50: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                    fetch_in_submodule(ud->sm_path, ud->depth, ud->quiet, &ud->oid))
                                                               ^
/datasets/git/builtin/submodule--helper.c:2335:71: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    fetch_in_submodule(ud->sm_path, ud->depth, ud->quiet, &ud->oid))
                                                                                    ^
                                                                                     {
/datasets/git/builtin/submodule--helper.c:2346:26: warning: variable 'sub' is not initialized [cppcoreguidelines-init-variables]
        const struct submodule *sub;
                                ^
                                    = NULL
/datasets/git/builtin/submodule--helper.c:2347:8: warning: variable 'key' is not initialized [cppcoreguidelines-init-variables]
        char *key;
              ^
                  = NULL
/datasets/git/builtin/submodule--helper.c:2351:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!sub)
                 ^
                  {
/datasets/git/builtin/submodule--helper.c:2356:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_config_get_string_tmp(the_repository, key, branch))
                                                                    ^
                                                                     {
/datasets/git/builtin/submodule--helper.c:2368:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!refname)
                             ^
                              {
/datasets/git/builtin/submodule--helper.c:2372:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(refname, "HEAD"))
                                             ^
                                              {
/datasets/git/builtin/submodule--helper.c:2377:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!skip_prefix(refname, "refs/heads/", &refname))
                                                                   ^
                                                                    {
/datasets/git/builtin/submodule--helper.c:2391:14: warning: variable 'cw' is not initialized [cppcoreguidelines-init-variables]
        const char *cw;
                    ^
                       = NULL
/datasets/git/builtin/submodule--helper.c:2391:14: warning: variable name 'cw' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/submodule--helper.c:2394:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_submodule_init(&subrepo, the_repository, path, null_oid()))
                                                                            ^
                                                                             {
/datasets/git/builtin/submodule--helper.c:2399:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                char *cfg_file, *abs_path;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:2399:9: warning: variable 'cfg_file' is not initialized [cppcoreguidelines-init-variables]
                char *cfg_file, *abs_path;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/submodule--helper.c:2399:20: warning: variable 'abs_path' is not initialized [cppcoreguidelines-init-variables]
                char *cfg_file, *abs_path;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/submodule--helper.c:2400:15: warning: variable 'rel_path' is not initialized [cppcoreguidelines-init-variables]
                const char *rel_path;
                            ^
                                     = NULL
/datasets/git/builtin/submodule--helper.c:2401:17: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                struct strbuf sb = STRBUF_INIT;
                              ^
/datasets/git/builtin/submodule--helper.c:2421:2: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
        switch (type) {
        ^
/datasets/git/builtin/submodule--helper.c:2447:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (update_data->quiet)
                               ^
                                {
/datasets/git/builtin/submodule--helper.c:2449:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (update_data->force)
                               ^
                                {
/datasets/git/builtin/submodule--helper.c:2451:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (update_data->init)
                              ^
                               {
/datasets/git/builtin/submodule--helper.c:2453:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (update_data->remote)
                                ^
                                 {
/datasets/git/builtin/submodule--helper.c:2455:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (update_data->nofetch)
                                 ^
                                  {
/datasets/git/builtin/submodule--helper.c:2457:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (update_data->dissociate)
                                    ^
                                     {
/datasets/git/builtin/submodule--helper.c:2459:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (update_data->progress)
                                  ^
                                   {
/datasets/git/builtin/submodule--helper.c:2461:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (update_data->require_init)
                                      ^
                                       {
/datasets/git/builtin/submodule--helper.c:2463:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (update_data->depth)
                               ^
                                {
/datasets/git/builtin/submodule--helper.c:2465:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (update_type != SM_UPDATE_UNSPECIFIED)
                                                 ^
                                                  {
/datasets/git/builtin/submodule--helper.c:2470:28: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
                struct string_list_item *item;
                                         ^
                                              = NULL
/datasets/git/builtin/submodule--helper.c:2472:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for_each_string_list_item(item, &update_data->references)
                ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/submodule--helper.c:2472:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
                for_each_string_list_item(item, &update_data->references)
                                          ^
/datasets/git/builtin/submodule--helper.c:2475:73: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (update_data->filter_options && update_data->filter_options->choice)
                                                                               ^
                                                                                {
/datasets/git/builtin/submodule--helper.c:2479:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (update_data->recommend_shallow == 0)
                                                ^
                                                 {
/datasets/git/builtin/submodule--helper.c:2481:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (update_data->recommend_shallow == 1)
                                                     ^
                                                      {
/datasets/git/builtin/submodule--helper.c:2483:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (update_data->single_branch >= 0)
                                            ^
                                             {
/datasets/git/builtin/submodule--helper.c:2491:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/builtin/submodule--helper.c:2494:9: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                                  update_data->just_cloned,
                                                  ^
/datasets/git/builtin/submodule--helper.c:2498:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/builtin/submodule--helper.c:2501:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (update_data->just_cloned)
                                     ^
                                      {
/datasets/git/builtin/submodule--helper.c:2503:83: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (resolve_gitlink_ref(update_data->sm_path, "HEAD", &update_data->suboid))
                                                                                         ^
                                                                                          {
/datasets/git/builtin/submodule--helper.c:2508:9: warning: variable 'remote_name' is not initialized [cppcoreguidelines-init-variables]
                char *remote_name;
                      ^
                                  = NULL
/datasets/git/builtin/submodule--helper.c:2509:15: warning: variable 'branch' is not initialized [cppcoreguidelines-init-variables]
                const char *branch;
                            ^
                                   = NULL
/datasets/git/builtin/submodule--helper.c:2510:9: warning: variable 'remote_ref' is not initialized [cppcoreguidelines-init-variables]
                char *remote_ref;
                      ^
                                 = NULL
/datasets/git/builtin/submodule--helper.c:2511:7: warning: variable 'code' is not initialized [cppcoreguidelines-init-variables]
                int code;
                    ^
                         = 0
/datasets/git/builtin/submodule--helper.c:2514:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (code)
                         ^
                          {
/datasets/git/builtin/submodule--helper.c:2517:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (code)
                         ^
                          {
/datasets/git/builtin/submodule--helper.c:2519:16: warning: 2nd function call argument is an uninitialized value [clang-analyzer-core.CallAndMessage]
                remote_ref = xstrfmt("refs/remotes/%s/%s", remote_name, branch);
                             ^
/datasets/git/builtin/submodule--helper.c:2692:6: note: Assuming field 'require_init' is 0
        if (opt.require_init)
            ^~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:2692:2: note: Taking false branch
        if (opt.require_init)
        ^
/datasets/git/builtin/submodule--helper.c:2695:6: note: Assuming field 'choice' is 0
        if (filter_options.choice && !opt.init) {
            ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:2695:28: note: Left side of '&&' is false
        if (filter_options.choice && !opt.init) {
                                  ^
/datasets/git/builtin/submodule--helper.c:2703:6: note: Assuming field 'update_default' is 0
        if (opt.update_default)
            ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:2703:2: note: Taking false branch
        if (opt.update_default)
        ^
/datasets/git/builtin/submodule--helper.c:2706:6: note: Assuming the condition is false
        if (module_list_compute(argv, prefix, &pathspec, &opt.list) < 0) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:2706:2: note: Taking false branch
        if (module_list_compute(argv, prefix, &pathspec, &opt.list) < 0) {
        ^
/datasets/git/builtin/submodule--helper.c:2711:6: note: Assuming field 'nr' is 0
        if (pathspec.nr)
            ^~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:2711:2: note: Taking false branch
        if (pathspec.nr)
        ^
/datasets/git/builtin/submodule--helper.c:2714:6: note: Assuming field 'init' is 0
        if (opt.init) {
            ^~~~~~~~
/datasets/git/builtin/submodule--helper.c:2714:2: note: Taking false branch
        if (opt.init) {
        ^
/datasets/git/builtin/submodule--helper.c:2740:8: note: Calling 'update_submodules'
        ret = update_submodules(&opt);
              ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:2593:6: note: Assuming field 'quickstop' is 0
        if (suc.quickstop) {
            ^~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:2593:2: note: Taking false branch
        if (suc.quickstop) {
        ^
/datasets/git/builtin/submodule--helper.c:2598:14: note: Assuming 'i' is < field 'update_clone_nr'
        for (i = 0; i < suc.update_clone_nr; i++) {
                    ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:2598:2: note: Loop condition is true.  Entering loop body
        for (i = 0; i < suc.update_clone_nr; i++) {
        ^
/datasets/git/builtin/submodule--helper.c:2607:7: note: 'code' is 0
                if (code)
                    ^~~~
/datasets/git/builtin/submodule--helper.c:2607:3: note: Taking false branch
                if (code)
                ^
/datasets/git/builtin/submodule--helper.c:2612:10: note: Calling 'update_submodule'
                code = update_submodule(update_data);
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:2493:8: note: Calling 'determine_submodule_update_strategy'
        ret = determine_submodule_update_strategy(the_repository,
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:1824:6: note: Assuming 'update' is not equal to 0
        if (update) {
            ^~~~~~
/datasets/git/builtin/submodule--helper.c:1824:2: note: Taking true branch
        if (update) {
        ^
/datasets/git/builtin/submodule--helper.c:1840:6: note: Assuming 'just_cloned' is 0, which participates in a condition later
        if (just_cloned &&
            ^~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:1840:18: note: Left side of '&&' is false
        if (just_cloned &&
                        ^
/datasets/git/builtin/submodule--helper.c:1849:2: note: Returning zero (loaded from 'ret'), which participates in a condition later
        return ret;
        ^~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:2493:8: note: Returning from 'determine_submodule_update_strategy'
        ret = determine_submodule_update_strategy(the_repository,
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:2498:6: note: 'ret' is 0
        if (ret)
            ^~~
/datasets/git/builtin/submodule--helper.c:2498:2: note: Taking false branch
        if (ret)
        ^
/datasets/git/builtin/submodule--helper.c:2501:19: note: Field 'just_cloned' is 0
        if (update_data->just_cloned)
                         ^
/datasets/git/builtin/submodule--helper.c:2501:2: note: Taking false branch
        if (update_data->just_cloned)
        ^
/datasets/git/builtin/submodule--helper.c:2503:11: note: Assuming the condition is false
        else if (resolve_gitlink_ref(update_data->sm_path, "HEAD", &update_data->suboid))
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:2503:7: note: Taking false branch
        else if (resolve_gitlink_ref(update_data->sm_path, "HEAD", &update_data->suboid))
             ^
/datasets/git/builtin/submodule--helper.c:2507:6: note: Assuming field 'remote' is not equal to 0
        if (update_data->remote) {
            ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:2507:2: note: Taking true branch
        if (update_data->remote) {
        ^
/datasets/git/builtin/submodule--helper.c:2508:3: note: 'remote_name' declared without an initial value
                char *remote_name;
                ^~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:2513:10: note: Calling 'get_default_remote_submodule'
                code = get_default_remote_submodule(update_data->sm_path, &remote_name);
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:70:6: note: Assuming the condition is true
        if (repo_submodule_init(&subrepo, the_repository, module_path,
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:70:2: note: Taking true branch
        if (repo_submodule_init(&subrepo, the_repository, module_path,
        ^
/datasets/git/builtin/submodule--helper.c:72:3: note: Returning without writing to '*default_remote'
                return die_message(_("could not get a repository handle for submodule '%s'"),
                ^
/datasets/git/builtin/submodule--helper.c:72:3: note: Returning value, which participates in a condition later
                return die_message(_("could not get a repository handle for submodule '%s'"),
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:2513:10: note: Returning from 'get_default_remote_submodule'
                code = get_default_remote_submodule(update_data->sm_path, &remote_name);
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:2514:7: note: Assuming 'code' is 0
                if (code)
                    ^~~~
/datasets/git/builtin/submodule--helper.c:2514:3: note: Taking false branch
                if (code)
                ^
/datasets/git/builtin/submodule--helper.c:2516:10: note: Calling 'remote_submodule_branch'
                code = remote_submodule_branch(update_data->sm_path, &branch);
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:2351:6: note: Assuming 'sub' is null, which participates in a condition later
        if (!sub)
            ^~~~
/datasets/git/builtin/submodule--helper.c:2351:2: note: Taking true branch
        if (!sub)
        ^
/datasets/git/builtin/submodule--helper.c:2352:3: note: Returning value, which participates in a condition later
                return die_message(_("could not initialize submodule at path '%s'"),
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:2516:10: note: Returning from 'remote_submodule_branch'
                code = remote_submodule_branch(update_data->sm_path, &branch);
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:2517:7: note: Assuming 'code' is 0
                if (code)
                    ^~~~
/datasets/git/builtin/submodule--helper.c:2517:3: note: Taking false branch
                if (code)
                ^
/datasets/git/builtin/submodule--helper.c:2519:16: note: 2nd function call argument is an uninitialized value
                remote_ref = xstrfmt("refs/remotes/%s/%s", remote_name, branch);
                             ^                             ~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:2525:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                              0, NULL))
                                                       ^
                                                        {
/datasets/git/builtin/submodule--helper.c:2530:80: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (resolve_gitlink_ref(update_data->sm_path, remote_ref, &update_data->oid))
                                                                                             ^
                                                                                              {
/datasets/git/builtin/submodule--helper.c:2539:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret)
                        ^
                         {
/datasets/git/builtin/submodule--helper.c:2544:24: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
                struct child_process cp = CHILD_PROCESS_INIT;
                                     ^
/datasets/git/builtin/submodule--helper.c:2557:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret)
                        ^
                         {
/datasets/git/builtin/submodule--helper.c:2568:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, ret = 0;
        ^~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:2568:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, ret = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/submodule--helper.c:2568:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/submodule--helper.c:2600:7: warning: variable 'code' is not initialized [cppcoreguidelines-init-variables]
                int code;
                    ^
                         = 0
/datasets/git/builtin/submodule--helper.c:2607:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (code)
                         ^
                          {
/datasets/git/builtin/submodule--helper.c:2613:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FREE_AND_NULL(update_data->displaypath);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/submodule--helper.c:2615:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!code)
                          ^
                           {
/datasets/git/builtin/submodule--helper.c:2618:14: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (ret == 128)
                           ^
/datasets/git/builtin/submodule--helper.c:2618:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret == 128)
                               ^
                                {
/datasets/git/builtin/submodule--helper.c:2635:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/builtin/submodule--helper.c:2637:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__FORCE(&opt.force, N_("force checkout updates"), 0),
                ^
/datasets/git/./parse-options.h:367:31: note: expanded from macro 'OPT__FORCE'
#define OPT__FORCE(var, h, f) OPT_COUNTUP_F('f', "force",   (var), (h), (f))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:2638:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "init", &opt.init,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:2640:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "remote", &opt.remote,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:2642:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "recursive", &opt.recursive,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:2644:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('N', "no-fetch", &opt.nofetch,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:2646:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT(0, "checkout", &opt.update_default,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:2649:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT('m', "merge", &opt.update_default,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:2652:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT('r', "rebase", &opt.update_default,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:2657:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "dissociate", &opt.dissociate,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:2664:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "recommend-shallow", &opt.recommend_shallow,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:2666:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__QUIET(&opt.quiet, N_("don't print cloning progress")),
                ^
/datasets/git/./parse-options.h:360:31: note: expanded from macro 'OPT__QUIET'
#define OPT__QUIET(var, h)    OPT_COUNTUP('q', "quiet",   (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:2667:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "progress", &opt.progress,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:2669:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "require-init", &opt.require_init,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:2671:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "single-branch", &opt.single_branch,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:2692:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt.require_init)
                             ^
                              {
/datasets/git/builtin/submodule--helper.c:2703:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt.update_default)
                               ^
                                {
/datasets/git/builtin/submodule--helper.c:2711:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pathspec.nr)
                        ^
                         {
/datasets/git/builtin/submodule--helper.c:2729:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!argc && git_config_get_value_multi("submodule.active"))
                                                                            ^
                                                                             {
/datasets/git/builtin/submodule--helper.c:2733:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opt.quiet)
                              ^
                               {
/datasets/git/builtin/submodule--helper.c:2734:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        info.flags |= OPT_QUIET;
                        ^
/datasets/git/builtin/submodule--helper.c:2734:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        info.flags |= OPT_QUIET;
                                      ^
/datasets/git/builtin/submodule--helper.c:26:20: note: expanded from macro 'OPT_QUIET'
#define OPT_QUIET (1 << 0)
                   ^
/datasets/git/builtin/submodule--helper.c:2749:64: warning: parameter 'prefix' is unused [misc-unused-parameters]
static int push_check(int argc, const char **argv, const char *prefix)
                                                               ^
/datasets/git/builtin/submodule--helper.c:2751:17: warning: variable 'remote' is not initialized [cppcoreguidelines-init-variables]
        struct remote *remote;
                       ^
                              = NULL
/datasets/git/builtin/submodule--helper.c:2752:14: warning: variable 'superproject_head' is not initialized [cppcoreguidelines-init-variables]
        const char *superproject_head;
                    ^
                                      = NULL
/datasets/git/builtin/submodule--helper.c:2753:8: warning: variable 'head' is not initialized [cppcoreguidelines-init-variables]
        char *head;
              ^
                   = NULL
/datasets/git/builtin/submodule--helper.c:2757:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc < 3)
                     ^
                      {
/datasets/git/builtin/submodule--helper.c:2770:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!head)
                  ^
                   {
/datasets/git/builtin/submodule--helper.c:2772:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(head, "HEAD"))
                                  ^
                                   {
/datasets/git/builtin/submodule--helper.c:2780:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!remote || remote->origin == REMOTE_UNCONFIGURED)
                                                             ^
                                                              {
/datasets/git/builtin/submodule--helper.c:2785:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/builtin/submodule--helper.c:2785:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/submodule--helper.c:2791:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < refspec.nr; i++) {
                ^
/datasets/git/builtin/submodule--helper.c:2792:31: warning: variable name 'rs' is too short, expected at least 3 characters [readability-identifier-length]
                        const struct refspec_item *rs = &refspec.items[i];
                                                   ^
/datasets/git/builtin/submodule--helper.c:2794:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (rs->pattern || rs->matching)
                                                        ^
                                                         {
/datasets/git/builtin/submodule--helper.c:2809:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                            !strcmp(head, superproject_head))
                                                                             ^
                                                                              {
/datasets/git/builtin/submodule--helper.c:2828:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/submodule--helper.c:2828:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/submodule--helper.c:2840:2: warning: Value stored to 'argc' is never read [clang-analyzer-deadcode.DeadStores]
        argc = parse_options(argc, argv, prefix, embed_gitdir_options,
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:2840:2: note: Value stored to 'argc' is never read
        argc = parse_options(argc, argv, prefix, embed_gitdir_options,
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:2843:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (module_list_compute(argv, prefix, &pathspec, &list) < 0)
                                                                    ^
                                                                     {
/datasets/git/builtin/submodule--helper.c:2846:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < list.nr; i++)
        ^
/datasets/git/builtin/submodule--helper.c:2846:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < list.nr; i++)
                                     ^
                                      {
/datasets/git/builtin/submodule--helper.c:2859:14: warning: variable 'newurl' is not initialized [cppcoreguidelines-init-variables]
        const char *newurl;
                    ^
                           = NULL
/datasets/git/builtin/submodule--helper.c:2860:14: warning: variable 'path' is not initialized [cppcoreguidelines-init-variables]
        const char *path;
                    ^
                         = NULL
/datasets/git/builtin/submodule--helper.c:2861:8: warning: variable 'config_name' is not initialized [cppcoreguidelines-init-variables]
        char *config_name;
              ^
                          = NULL
/datasets/git/builtin/submodule--helper.c:2863:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__QUIET(&quiet, N_("suppress output for setting url of a submodule")),
                ^
/datasets/git/./parse-options.h:360:31: note: expanded from macro 'OPT__QUIET'
#define OPT__QUIET(var, h)    OPT_COUNTUP('q', "quiet",   (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:2873:21: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if (argc != 2 || !(path = argv[0]) || !(newurl = argv[1]))
                           ^
/datasets/git/builtin/submodule--helper.c:2873:21: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/builtin/submodule--helper.c:2873:21: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/builtin/submodule--helper.c:2873:42: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if (argc != 2 || !(path = argv[0]) || !(newurl = argv[1]))
                                                ^
/datasets/git/builtin/submodule--helper.c:2873:42: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/builtin/submodule--helper.c:2873:42: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/builtin/submodule--helper.c:2873:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc != 2 || !(path = argv[0]) || !(newurl = argv[1]))
                                                                  ^
                                                                   {
/datasets/git/builtin/submodule--helper.c:2879:39: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        sync_submodule(path, prefix, quiet ? OPT_QUIET : 0);
                                             ^
/datasets/git/builtin/submodule--helper.c:26:20: note: expanded from macro 'OPT_QUIET'
#define OPT_QUIET (1 << 0)
                   ^
/datasets/git/builtin/submodule--helper.c:2888:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int opt_default = 0, ret;
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:2888:23: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int opt_default = 0, ret;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/submodule--helper.c:2890:14: warning: variable 'path' is not initialized [cppcoreguidelines-init-variables]
        const char *path;
                    ^
                         = NULL
/datasets/git/builtin/submodule--helper.c:2891:8: warning: variable 'config_name' is not initialized [cppcoreguidelines-init-variables]
        char *config_name;
              ^
                          = NULL
/datasets/git/builtin/submodule--helper.c:2897:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_NOOP_NOARG('q', "quiet"),
                ^
/datasets/git/./parse-options.h:215:4: note: expanded from macro 'OPT_NOOP_NOARG'
          PARSE_OPT_HIDDEN | PARSE_OPT_NOARG, parse_opt_noop_cb }
          ^~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:2899:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('d', "default", &opt_default,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:2913:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opt_branch && !opt_default)
                                        ^
                                         {
/datasets/git/builtin/submodule--helper.c:2916:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt_branch && opt_default)
                                      ^
                                       {
/datasets/git/builtin/submodule--helper.c:2919:21: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if (argc != 1 || !(path = argv[0]))
                           ^
/datasets/git/builtin/submodule--helper.c:2919:21: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/builtin/submodule--helper.c:2919:21: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/builtin/submodule--helper.c:2919:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc != 1 || !(path = argv[0]))
                                           ^
                                            {
/datasets/git/builtin/submodule--helper.c:2931:20: warning: variable 'track' is not initialized [cppcoreguidelines-init-variables]
        enum branch_track track;
                          ^
/datasets/git/builtin/submodule--helper.c:2932:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int quiet = 0, force = 0, reflog = 0, dry_run = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:2934:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__QUIET(&quiet, N_("print only error messages")),
                ^
/datasets/git/./parse-options.h:360:31: note: expanded from macro 'OPT__QUIET'
#define OPT__QUIET(var, h)    OPT_COUNTUP('q', "quiet",   (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:2935:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__FORCE(&force, N_("force creation"), 0),
                ^
/datasets/git/./parse-options.h:367:31: note: expanded from macro 'OPT__FORCE'
#define OPT__FORCE(var, h, f) OPT_COUNTUP_F('f', "force",   (var), (h), (f))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:2936:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "create-reflog", &reflog,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:2942:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__DRY_RUN(&dry_run,
                ^
/datasets/git/./parse-options.h:366:31: note: expanded from macro 'OPT__DRY_RUN'
#define OPT__DRY_RUN(var, h)  OPT_BOOL('n', "dry-run", (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:2955:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc != 3)
                      ^
                       {
/datasets/git/builtin/submodule--helper.c:2958:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!quiet && !dry_run)
                               ^
                                {
/datasets/git/builtin/submodule--helper.c:2966:8: warning: accessing fields in struct 'add_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct add_data {
       ^
/datasets/git/builtin/submodule--helper.c:2966:8: note: use "__attribute__((aligned(128)))" to align struct 'add_data' to 128 bytes
/datasets/git/builtin/submodule--helper.c:2993:3: note: inferred assignment of ID-dependent value from ID-dependent variable line [altera-id-dependent-backward-branch]
                char *next_line;
                ^
/datasets/git/builtin/submodule--helper.c:2993:9: warning: variable 'next_line' is not initialized [cppcoreguidelines-init-variables]
                char *next_line;
                      ^
                                = NULL
/datasets/git/builtin/submodule--helper.c:2996:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while ((next_line = strchr(line, '\n')) != NULL) {
                ^
/datasets/git/builtin/submodule--helper.c:2996:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'next_line' and may cause performance degradation [altera-id-dependent-backward-branch]
                while ((next_line = strchr(line, '\n')) != NULL) {
                       ^
/datasets/git/builtin/submodule--helper.c:2999:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (strip_suffix_mem(line, &len, " (fetch)"))
                                                                     ^
                                                                      {
/datasets/git/builtin/submodule--helper.c:3010:8: warning: variable 'submod_gitdir_path' is not initialized [cppcoreguidelines-init-variables]
        char *submod_gitdir_path;
              ^
                                 = NULL
/datasets/git/builtin/submodule--helper.c:3020:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_nonbare_repository_dir(&sm_path))
                                                        ^
                                                         {
/datasets/git/builtin/submodule--helper.c:3023:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/submodule--helper.c:3029:24: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
                struct child_process cp = CHILD_PROCESS_INIT;
                                     ^
/datasets/git/builtin/submodule--helper.c:3036:11: warning: variable 'die_msg' is not initialized [cppcoreguidelines-init-variables]
                                char *die_msg;
                                      ^
                                              = NULL
/datasets/git/builtin/submodule--helper.c:3070:10: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                        char *p = xstrdup(add_data->reference_path);
                              ^
/datasets/git/builtin/submodule--helper.c:3075:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (add_data->depth >= 0)
                                         ^
                                          {
/datasets/git/builtin/submodule--helper.c:3078:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (clone_submodule(&clone_data, &reference))
                                                             ^
                                                              {
/datasets/git/builtin/submodule--helper.c:3095:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (run_command(&cp))
                                     ^
                                      {
/datasets/git/builtin/submodule--helper.c:3104:61: warning: 2 adjacent parameters of 'config_submodule_in_gitmodules' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int config_submodule_in_gitmodules(const char *name, const char *var, const char *value)
                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:3104:73: note: the first parameter in the range is 'var'
static int config_submodule_in_gitmodules(const char *name, const char *var, const char *value)
                                                                        ^~~
/datasets/git/builtin/submodule--helper.c:3104:90: note: the last parameter in the range is 'value'
static int config_submodule_in_gitmodules(const char *name, const char *var, const char *value)
                                                                                         ^~~~~
/datasets/git/builtin/submodule--helper.c:3106:8: warning: variable 'key' is not initialized [cppcoreguidelines-init-variables]
        char *key;
              ^
                  = NULL
/datasets/git/builtin/submodule--helper.c:3107:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/builtin/submodule--helper.c:3109:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_writing_gitmodules_ok())
                                        ^
                                         {
/datasets/git/builtin/submodule--helper.c:3121:8: warning: variable 'key' is not initialized [cppcoreguidelines-init-variables]
        char *key;
              ^
                  = NULL
/datasets/git/builtin/submodule--helper.c:3122:14: warning: variable 'val' is not initialized [cppcoreguidelines-init-variables]
        const char *val;
                    ^
                        = NULL
/datasets/git/builtin/submodule--helper.c:3133:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (add_data->force)
                            ^
                             {
/datasets/git/builtin/submodule--helper.c:3137:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (run_command(&add_submod))
                                     ^
                                      {
/datasets/git/builtin/submodule--helper.c:3141:79: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            config_submodule_in_gitmodules(add_data->sm_name, "url", add_data->repo))
                                                                                     ^
                                                                                      {
/datasets/git/builtin/submodule--helper.c:3146:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                   "branch", add_data->branch))
                                                                               ^
                                                                                {
/datasets/git/builtin/submodule--helper.c:3154:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (run_command(&add_gitmodules))
                                         ^
                                          {
/datasets/git/builtin/submodule--helper.c:3186:18: warning: variable name 'ps' is too short, expected at least 3 characters [readability-identifier-length]
        struct pathspec ps;
                        ^
/datasets/git/builtin/submodule--helper.c:3188:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        parse_pathspec(&ps, 0, PATHSPEC_PREFER_CWD, NULL, args);
                               ^
/datasets/git/./pathspec.h:65:30: note: expanded from macro 'PATHSPEC_PREFER_CWD'
#define PATHSPEC_PREFER_CWD (1<<0) /* No args means match cwd */
                             ^
/datasets/git/builtin/submodule--helper.c:3190:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_read_index_preload(the_repository, NULL, 0) < 0)
                                                                 ^
                                                                  {
/datasets/git/builtin/submodule--helper.c:3194:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/builtin/submodule--helper.c:3194:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/submodule--helper.c:3205:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < the_index.cache_nr; i++) {
                ^
/datasets/git/builtin/submodule--helper.c:3210:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!force)
                                           ^
                                            {
/datasets/git/builtin/submodule--helper.c:3213:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (!S_ISGITLINK(the_index.cache[i]->ce_mode))
                                     ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/builtin/submodule--helper.c:3213:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!S_ISGITLINK(the_index.cache[i]->ce_mode))
                                                                              ^
                                                                               {
/datasets/git/builtin/submodule--helper.c:3226:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/submodule--helper.c:3230:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (resolve_gitlink_ref(path, "HEAD", &oid) < 0)
                                                                ^
                                                                 {
/datasets/git/builtin/submodule--helper.c:3238:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int force = 0, quiet = 0, progress = 0, dissociate = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:3244:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__FORCE(&force, N_("allow adding an otherwise ignored submodule path"),
                ^
/datasets/git/./parse-options.h:367:31: note: expanded from macro 'OPT__FORCE'
#define OPT__FORCE(var, h, f) OPT_COUNTUP_F('f', "force",   (var), (h), (f))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:3246:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__QUIET(&quiet, N_("print only error messages")),
                ^
/datasets/git/./parse-options.h:360:31: note: expanded from macro 'OPT__QUIET'
#define OPT__QUIET(var, h)    OPT_COUNTUP('q', "quiet",   (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:3247:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "progress", &progress, N_("force cloning progress")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:3250:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "dissociate", &dissociate, N_("borrow the objects from reference repositories")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:3261:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/submodule--helper.c:3266:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_writing_gitmodules_ok())
                                        ^
                                         {
/datasets/git/builtin/submodule--helper.c:3270:76: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            add_data.reference_path && !is_absolute_path(add_data.reference_path))
                                                                                  ^
                                                                                   {
/datasets/git/builtin/submodule--helper.c:3273:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc == 0 || argc > 2)
                                  ^
                                   {
/datasets/git/builtin/submodule--helper.c:3277:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc == 1)
                      ^
                       {
/datasets/git/builtin/submodule--helper.c:3279:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/submodule--helper.c:3291:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (prefix)
                           ^
                            {
/datasets/git/builtin/submodule--helper.c:3316:24: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
                struct child_process cp = CHILD_PROCESS_INIT;
                                     ^
/datasets/git/builtin/submodule--helper.c:3322:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                if ((ret = pipe_command(&cp, NULL, 0, NULL, 0, &sb, 0))) {
                     ^
/datasets/git/builtin/submodule--helper.c:3322:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/builtin/submodule--helper.c:3322:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/builtin/submodule--helper.c:3324:4: warning: the value returned by this function should be used [cert-err33-c]
                        fputs(sb.buf, stderr);
                        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/submodule--helper.c:3324:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/submodule--helper.c:3329:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if(!add_data.sm_name)
                             ^
                              {
/datasets/git/builtin/submodule--helper.c:3332:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (check_submodule_name(add_data.sm_name))
                                                   ^
                                                    {
/datasets/git/builtin/submodule--helper.c:3341:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (add_submodule(&add_data))
                                     ^
                                      {
/datasets/git/builtin/submodule--helper.c:3357:14: warning: variable 'subcmd' is not initialized [cppcoreguidelines-init-variables]
        const char *subcmd;
                    ^
                           = NULL
/datasets/git/builtin/submodule--helper.c:3358:27: warning: variable name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
        parse_opt_subcommand_fn *fn = NULL;
                                 ^
/datasets/git/builtin/submodule--helper.c:3383:6: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (strcmp(subcmd, "clone") && strcmp(subcmd, "update") &&
            ^
                                    != 0
/datasets/git/builtin/submodule--helper.c:3384:6: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
            strcmp(subcmd, "foreach") && strcmp(subcmd, "status") &&
            ^
                                      != 0
/datasets/git/builtin/submodule--helper.c:3384:35: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
            strcmp(subcmd, "foreach") && strcmp(subcmd, "status") &&
                                         ^
                                                                  != 0
/datasets/git/builtin/submodule--helper.c:3385:6: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
            strcmp(subcmd, "sync") && strcmp(subcmd, "absorbgitdirs") &&
            ^
                                   != 0
/datasets/git/builtin/submodule--helper.c:3385:32: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
            strcmp(subcmd, "sync") && strcmp(subcmd, "absorbgitdirs") &&
                                      ^
                                                                      != 0
/datasets/git/builtin/submodule--helper.c:3386:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            get_super_prefix())
                               ^
                                {
/datasets/git/builtin/symbolic-ref.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "cache.h"
/datasets/git/builtin/symbolic-ref.c:14:43: warning: 4 adjacent parameters of 'check_symref' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int check_symref(const char *HEAD, int quiet, int shorten, int recurse, int print)
                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/symbolic-ref.c:14:47: note: the first parameter in the range is 'quiet'
static int check_symref(const char *HEAD, int quiet, int shorten, int recurse, int print)
                                              ^~~~~
/datasets/git/builtin/symbolic-ref.c:14:84: note: the last parameter in the range is 'print'
static int check_symref(const char *HEAD, int quiet, int shorten, int recurse, int print)
                                                                                   ^~~~~
/datasets/git/builtin/symbolic-ref.c:16:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int resolve_flags, flag;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/symbolic-ref.c:16:6: warning: variable 'resolve_flags' is not initialized [cppcoreguidelines-init-variables]
        int resolve_flags, flag;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/symbolic-ref.c:16:21: warning: variable 'flag' is not initialized [cppcoreguidelines-init-variables]
        int resolve_flags, flag;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/symbolic-ref.c:17:14: warning: variable 'refname' is not initialized [cppcoreguidelines-init-variables]
        const char *refname;
                    ^
                            = NULL
/datasets/git/builtin/symbolic-ref.c:22:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!refname)
                     ^
                      {
/datasets/git/builtin/symbolic-ref.c:24:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        else if (!(flag & REF_ISSYMREF)) {
                   ^~~~
/datasets/git/builtin/symbolic-ref.c:25:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!quiet)
                           ^
                            {
/datasets/git/builtin/symbolic-ref.c:27:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/symbolic-ref.c:32:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (shorten)
                            ^
                             {
/datasets/git/builtin/symbolic-ref.c:42:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int quiet = 0, delete = 0, shorten = 0, recurse = 1, ret = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/symbolic-ref.c:45:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__QUIET(&quiet,
                ^
/datasets/git/./parse-options.h:360:31: note: expanded from macro 'OPT__QUIET'
#define OPT__QUIET(var, h)    OPT_COUNTUP('q', "quiet",   (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/symbolic-ref.c:47:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('d', "delete", &delete, N_("delete symbolic ref")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/symbolic-ref.c:48:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "short", &shorten, N_("shorten ref output")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/symbolic-ref.c:49:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "recurse", &recurse, N_("recursively dereference (default)")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/symbolic-ref.c:57:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (msg && !*msg)
                         ^
                          {
/datasets/git/builtin/symbolic-ref.c:61:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (argc != 1)
                              ^
                               {
/datasets/git/builtin/symbolic-ref.c:64:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret)
                        ^
                         {
/datasets/git/builtin/symbolic-ref.c:66:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(argv[0], "HEAD"))
                                             ^
                                              {
/datasets/git/builtin/symbolic-ref.c:68:42: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                return delete_ref(NULL, argv[0], NULL, REF_NO_DEREF);
                                                       ^
/datasets/git/./refs.h:631:23: note: expanded from macro 'REF_NO_DEREF'
#define REF_NO_DEREF (1 << 0)
                      ^
/datasets/git/builtin/symbolic-ref.c:77:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !starts_with(argv[1], "refs/"))
                                                   ^
                                                    {
/datasets/git/builtin/symbolic-ref.c:79:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (check_refname_format(argv[1], REFNAME_ALLOW_ONELEVEL) < 0)
                                                                              ^
                                                                               {
/datasets/git/builtin/tag.c:10:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "builtin.h"
/datasets/git/builtin/tag.c:37:21: warning: variable 'colopts' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned int colopts;
                    ^
/datasets/git/builtin/tag.c:38:12: warning: variable 'force_sign_annotate' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int force_sign_annotate;
           ^
/datasets/git/builtin/tag.c:39:12: warning: variable 'config_sign_tag' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int config_sign_tag = -1; /* unspecified */
           ^
/datasets/git/builtin/tag.c:48:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/tag.c:48:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/tag.c:50:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&array, 0, sizeof(array));
        ^~~~~~
/datasets/git/builtin/tag.c:50:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&array, 0, sizeof(array));
        ^~~~~~
/datasets/git/builtin/tag.c:52:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (filter->lines == -1)
                                ^
                                 {
/datasets/git/builtin/tag.c:61:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/builtin/tag.c:65:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (verify_ref_format(format))
                                      ^
                                       {
/datasets/git/builtin/tag.c:71:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < array.nr; i++) {
        ^
/datasets/git/builtin/tag.c:74:68: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (format_ref_array_item(array.items[i], format, &output, &err))
                                                                                 ^
                                                                                  {
/datasets/git/builtin/tag.c:76:3: warning: the value returned by this function should be used [cert-err33-c]
                fwrite(output.buf, 1, output.len, stdout);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/tag.c:76:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/tag.c:91:66: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
static int for_each_tag_name(const char **argv, each_tag_name_fn fn,
                                                                 ^
/datasets/git/builtin/tag.c:94:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        const char **p;
        ^
/datasets/git/builtin/tag.c:94:15: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        const char **p;
                     ^
                       = NULL
/datasets/git/builtin/tag.c:94:15: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/tag.c:99:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = argv; *p; p++) {
        ^
/datasets/git/builtin/tag.c:99:17: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = argv; *p; p++) {
                       ^
/datasets/git/builtin/tag.c:107:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fn(*p, ref.buf, &oid, cb_data))
                                                   ^
                                                    {
/datasets/git/builtin/tag.c:114:25: warning: 2 adjacent parameters of 'collect_tags' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int collect_tags(const char *name, const char *ref,
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/tag.c:114:37: note: the first parameter in the range is 'name'
static int collect_tags(const char *name, const char *ref,
                                    ^~~~
/datasets/git/builtin/tag.c:114:55: note: the last parameter in the range is 'ref'
static int collect_tags(const char *name, const char *ref,
                                                      ^~~
/datasets/git/builtin/tag.c:114:37: warning: parameter 'name' is unused [misc-unused-parameters]
static int collect_tags(const char *name, const char *ref,
                                    ^
/datasets/git/builtin/tag.c:126:6: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        int result;
            ^
                   = 0
/datasets/git/builtin/tag.c:128:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/builtin/tag.c:131:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (delete_refs(NULL, &refs_to_delete, REF_NO_DEREF))
                                               ^
/datasets/git/./refs.h:631:23: note: expanded from macro 'REF_NO_DEREF'
#define REF_NO_DEREF (1 << 0)
                      ^
/datasets/git/builtin/tag.c:131:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (delete_refs(NULL, &refs_to_delete, REF_NO_DEREF))
                                                             ^
                                                              {
/datasets/git/builtin/tag.c:134:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(item, &refs_to_delete) {
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/builtin/tag.c:134:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(item, &refs_to_delete) {
                                  ^
/datasets/git/builtin/tag.c:137:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ref_exists(name))
                                      ^
                                       {
/datasets/git/builtin/tag.c:139:20: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                item->string + 10,
                                               ^
/datasets/git/builtin/tag.c:148:23: warning: 2 adjacent parameters of 'verify_tag' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int verify_tag(const char *name, const char *ref,
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/tag.c:148:35: note: the first parameter in the range is 'name'
static int verify_tag(const char *name, const char *ref,
                                  ^~~~
/datasets/git/builtin/tag.c:148:53: note: the last parameter in the range is 'ref'
static int verify_tag(const char *name, const char *ref,
                                                    ^~~
/datasets/git/builtin/tag.c:148:53: warning: parameter 'ref' is unused [misc-unused-parameters]
static int verify_tag(const char *name, const char *ref,
                                                    ^
/datasets/git/builtin/tag.c:151:6: warning: variable 'flags' is not initialized [cppcoreguidelines-init-variables]
        int flags;
            ^
                  = 0
/datasets/git/builtin/tag.c:155:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (format->format)
                           ^
                            {
/datasets/git/builtin/tag.c:158:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (gpg_verify_tag(oid, name, flags))
                                             ^
                                              {
/datasets/git/builtin/tag.c:161:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (format->format)
                           ^
                            {
/datasets/git/builtin/tag.c:181:69: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int git_tag_config(const char *var, const char *value, void *cb)
                                                                    ^
/datasets/git/builtin/tag.c:183:6: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int status;
            ^
                   = 0
/datasets/git/builtin/tag.c:191:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
                            {
/datasets/git/builtin/tag.c:198:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (status)
                   ^
                    {
/datasets/git/builtin/tag.c:205:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (starts_with(var, "column."))
                                        ^
                                         {
/datasets/git/builtin/tag.c:210:32: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
static void write_tag_body(int fd, const struct object_id *oid)
                               ^
/datasets/git/builtin/tag.c:212:16: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size;
                      ^
                           = 0
/datasets/git/builtin/tag.c:213:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/builtin/tag.c:214:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *buf, *sp, *orig;
        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/tag.c:214:8: warning: variable 'buf' is not initialized [cppcoreguidelines-init-variables]
        char *buf, *sp, *orig;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/tag.c:214:14: warning: variable 'sp' is not initialized [cppcoreguidelines-init-variables]
        char *buf, *sp, *orig;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/tag.c:214:14: warning: variable name 'sp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/tag.c:214:19: warning: variable 'orig' is not initialized [cppcoreguidelines-init-variables]
        char *buf, *sp, *orig;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/tag.c:219:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!buf)
                 ^
                  {
/datasets/git/builtin/tag.c:242:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (sign && do_sign(buf) < 0)
                                     ^
                                      {
/datasets/git/builtin/tag.c:244:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_object_file(buf->buf, buf->len, OBJ_TAG, result) < 0)
                                                                       ^
                                                                        {
/datasets/git/builtin/tag.c:249:8: warning: accessing fields in struct 'create_tag_options' is inefficient due to poor alignment; currently aligned to 4 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct create_tag_options {
       ^
/datasets/git/builtin/tag.c:249:8: note: use "__attribute__((aligned(16)))" to align struct 'create_tag_options' to 16 bytes
/datasets/git/builtin/tag.c:269:10: warning: 2 adjacent parameters of 'create_tag' of similar type ('struct object_id *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                       struct object_id *prev, struct object_id *result)
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/tag.c:269:28: note: the first parameter in the range is 'prev'
                       struct object_id *prev, struct object_id *result)
                                         ^~~~
/datasets/git/builtin/tag.c:269:52: note: the last parameter in the range is 'result'
                       struct object_id *prev, struct object_id *result)
                                                                 ^~~~~~
/datasets/git/builtin/tag.c:271:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/builtin/tag.c:276:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (type <= OBJ_NONE)
                             ^
                              {
/datasets/git/builtin/tag.c:279:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (type == OBJ_TAG)
                            ^
                             {
/datasets/git/builtin/tag.c:294:7: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
                int fd;
                    ^
                       = 0
/datasets/git/builtin/tag.c:294:7: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/tag.c:298:50: warning: 0600 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                fd = xopen(path, O_CREAT | O_TRUNC | O_WRONLY, 0600);
                                                               ^
/datasets/git/builtin/tag.c:308:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (opt->cleanup_mode == CLEANUP_ALL)
                                                             ^
                                                              {
/datasets/git/builtin/tag.c:310:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/builtin/tag.c:318:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr,
                        ^~~~~~~~~~~~~~~
/datasets/git/builtin/tag.c:318:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/tag.c:320:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        exit(1);
                        ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/tag.c:324:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->cleanup_mode != CLEANUP_NONE)
                                              ^
                                               {
/datasets/git/builtin/tag.c:327:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opt->message_given && !buf->len)
                                             ^
                                              {
/datasets/git/builtin/tag.c:333:28: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        if (build_tag_object(buf, opt->sign, result) < 0) {
                                  ^
/datasets/git/builtin/tag.c:334:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (path)
                         ^
                          {
/datasets/git/builtin/tag.c:335:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, _("The tag message has been left in %s\n"),
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/tag.c:335:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/tag.c:337:3: warning: function is not thread safe [concurrency-mt-unsafe]
                exit(128);
                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/tag.c:345:75: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static void create_reflog_msg(const struct object_id *oid, struct strbuf *sb)
                                                                          ^
/datasets/git/builtin/tag.c:347:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/builtin/tag.c:348:17: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        struct commit *c;
                       ^
                         = NULL
/datasets/git/builtin/tag.c:348:17: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/tag.c:349:8: warning: variable 'buf' is not initialized [cppcoreguidelines-init-variables]
        char *buf;
              ^
                  = NULL
/datasets/git/builtin/tag.c:350:16: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size;
                      ^
                           = 0
/datasets/git/builtin/tag.c:352:14: warning: variable 'subject_start' is not initialized [cppcoreguidelines-init-variables]
        const char *subject_start;
                    ^
                                  = NULL
/datasets/git/builtin/tag.c:354:14: warning: function is not thread safe [concurrency-mt-unsafe]
        char *rla = getenv("GIT_REFLOG_ACTION");
                    ^
/datasets/git/builtin/tag.c:369:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                if ((buf = read_object_file(oid, &type, &size))) {
                     ^
/datasets/git/builtin/tag.c:369:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/builtin/tag.c:369:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/builtin/tag.c:377:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                if ((c = lookup_commit_reference(the_repository, oid)))
                     ^
/datasets/git/builtin/tag.c:377:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/builtin/tag.c:377:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/builtin/tag.c:377:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((c = lookup_commit_reference(the_repository, oid)))
                                                                       ^
                                                                        {
/datasets/git/builtin/tag.c:393:8: warning: accessing fields in struct 'msg_arg' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct msg_arg {
       ^
/datasets/git/builtin/tag.c:393:8: note: use "__attribute__((aligned(32)))" to align struct 'msg_arg' to 32 bytes
/datasets/git/builtin/tag.c:402:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/tag.c:404:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!arg)
                 ^
                  {
/datasets/git/builtin/tag.c:406:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (msg->buf.len)
                         ^
                          {
/datasets/git/builtin/tag.c:413:48: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static int strbuf_check_tag_ref(struct strbuf *sb, const char *name)
                                               ^
/datasets/git/builtin/tag.c:415:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (name[0] == '-')
                           ^
                            {
/datasets/git/builtin/tag.c:424:5: warning: function 'cmd_tag' has cognitive complexity of 80 (threshold 25) [readability-function-cognitive-complexity]
int cmd_tag(int argc, const char **argv, const char *prefix)
    ^
/datasets/git/builtin/tag.c:502:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!cmdmode) {
        ^
/datasets/git/builtin/tag.c:503:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (argc == 0)
                ^
/datasets/git/builtin/tag.c:505:8: note: +1, nesting level increased to 2
                else if (filter.with_commit || filter.no_commit ||
                     ^
/datasets/git/builtin/tag.c:507:25: note: +1
                         filter.points_at.nr || filter.lines != -1)
                                             ^
/datasets/git/builtin/tag.c:511:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (cmdmode == 'l')
        ^
/datasets/git/builtin/tag.c:514:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt.sign == -1)
        ^
/datasets/git/builtin/tag.c:515:22: note: +2, including nesting penalty of 1, nesting level increased to 2
                opt.sign = cmdmode ? 0 : config_sign_tag > 0;
                                   ^
/datasets/git/builtin/tag.c:517:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (keyid) {
        ^
/datasets/git/builtin/tag.c:521:57: note: +1
        create_tag_object = (opt.sign || annotate || msg.given || msgfile);
                                                               ^
/datasets/git/builtin/tag.c:523:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((create_tag_object || force) && (cmdmode != 0))
        ^
/datasets/git/builtin/tag.c:523:35: note: +1
        if ((create_tag_object || force) && (cmdmode != 0))
                                         ^
/datasets/git/builtin/tag.c:523:25: note: +1
        if ((create_tag_object || force) && (cmdmode != 0))
                               ^
/datasets/git/builtin/tag.c:527:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (cmdmode == 'l' && filter.lines != -1) {
        ^
/datasets/git/builtin/tag.c:527:21: note: +1
        if (cmdmode == 'l' && filter.lines != -1) {
                           ^
/datasets/git/builtin/tag.c:528:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (explicitly_enable_column(colopts))
                ^
/datasets/git/builtin/tag.c:528:7: note: +1
                if (explicitly_enable_column(colopts))
                    ^
/datasets/git/./column.h:20:24: note: expanded from macro 'explicitly_enable_column'
        (((c) & COL_PARSEOPT) && column_active(c))
                              ^
/datasets/git/builtin/tag.c:535:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (cmdmode == 'l') {
        ^
/datasets/git/builtin/tag.c:536:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (column_active(colopts)) {
                ^
/datasets/git/builtin/tag.c:544:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (column_active(colopts))
                ^
/datasets/git/builtin/tag.c:546:3: note: +1
                goto cleanup;
                ^
/datasets/git/builtin/tag.c:548:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (filter.lines != -1)
        ^
/datasets/git/builtin/tag.c:550:7: note: +1, nesting level increased to 1
        else if (filter.with_commit)
             ^
/datasets/git/builtin/tag.c:552:7: note: +1, nesting level increased to 1
        else if (filter.no_commit)
             ^
/datasets/git/builtin/tag.c:554:7: note: +1, nesting level increased to 1
        else if (filter.points_at.nr)
             ^
/datasets/git/builtin/tag.c:556:7: note: +1, nesting level increased to 1
        else if (filter.reachable_from)
             ^
/datasets/git/builtin/tag.c:558:7: note: +1, nesting level increased to 1
        else if (filter.unreachable_from)
             ^
/datasets/git/builtin/tag.c:560:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (only_in_list)
        ^
/datasets/git/builtin/tag.c:562:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (cmdmode == 'd') {
        ^
/datasets/git/builtin/tag.c:564:3: note: +1
                goto cleanup;
                ^
/datasets/git/builtin/tag.c:566:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (cmdmode == 'v') {
        ^
/datasets/git/builtin/tag.c:567:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (format.format && verify_ref_format(&format))
                ^
/datasets/git/builtin/tag.c:567:21: note: +1
                if (format.format && verify_ref_format(&format))
                                  ^
/datasets/git/builtin/tag.c:570:3: note: +1
                goto cleanup;
                ^
/datasets/git/builtin/tag.c:573:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (msg.given || msgfile) {
        ^
/datasets/git/builtin/tag.c:573:16: note: +1
        if (msg.given || msgfile) {
                      ^
/datasets/git/builtin/tag.c:574:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (msg.given && msgfile)
                ^
/datasets/git/builtin/tag.c:574:17: note: +1
                if (msg.given && msgfile)
                              ^
/datasets/git/builtin/tag.c:576:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (msg.given)
                ^
/datasets/git/builtin/tag.c:578:3: note: +1, nesting level increased to 2
                else {
                ^
/datasets/git/builtin/tag.c:579:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!strcmp(msgfile, "-")) {
                        ^
/datasets/git/builtin/tag.c:580:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (strbuf_read(&buf, 0, 1024) < 0)
                                ^
/datasets/git/builtin/tag.c:582:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/builtin/tag.c:583:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (strbuf_read_file(&buf, msgfile, 1024) < 0)
                                ^
/datasets/git/builtin/tag.c:592:25: note: +1, including nesting penalty of 0, nesting level increased to 1
        object_ref = argc == 2 ? argv[1] : "HEAD";
                               ^
/datasets/git/builtin/tag.c:593:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (argc > 2)
        ^
/datasets/git/builtin/tag.c:596:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (get_oid(object_ref, &object))
        ^
/datasets/git/builtin/tag.c:599:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (strbuf_check_tag_ref(&ref, tag))
        ^
/datasets/git/builtin/tag.c:602:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (read_ref(ref.buf, &prev))
        ^
/datasets/git/builtin/tag.c:604:7: note: +1, nesting level increased to 1
        else if (!force)
             ^
/datasets/git/builtin/tag.c:607:32: note: +1
        opt.message_given = msg.given || msgfile;
                                      ^
/datasets/git/builtin/tag.c:610:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!cleanup_arg || !strcmp(cleanup_arg, "strip"))
        ^
/datasets/git/builtin/tag.c:610:19: note: +1
        if (!cleanup_arg || !strcmp(cleanup_arg, "strip"))
                         ^
/datasets/git/builtin/tag.c:612:7: note: +1, nesting level increased to 1
        else if (!strcmp(cleanup_arg, "verbatim"))
             ^
/datasets/git/builtin/tag.c:614:7: note: +1, nesting level increased to 1
        else if (!strcmp(cleanup_arg, "whitespace"))
             ^
/datasets/git/builtin/tag.c:616:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/builtin/tag.c:621:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (create_tag_object) {
        ^
/datasets/git/builtin/tag.c:622:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (force_sign_annotate && !annotate)
                ^
/datasets/git/builtin/tag.c:622:27: note: +1
                if (force_sign_annotate && !annotate)
                                        ^
/datasets/git/builtin/tag.c:628:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!transaction ||
        ^
/datasets/git/builtin/tag.c:631:30: note: +1
                                   reflog_msg.buf, &err) ||
                                                         ^
/datasets/git/builtin/tag.c:630:22: note: +1, including nesting penalty of 0, nesting level increased to 1
                                   create_reflog ? REF_FORCE_CREATE_REFLOG : 0,
                                                 ^
/datasets/git/builtin/tag.c:635:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (force && !is_null_oid(&prev) && !oideq(&prev, &object))
        ^
/datasets/git/builtin/tag.c:635:35: note: +1
        if (force && !is_null_oid(&prev) && !oideq(&prev, &object))
                                         ^
/datasets/git/builtin/tag.c:429:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct object_id object, prev;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/tag.c:430:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *object_ref, *tag;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/tag.c:430:14: warning: variable 'object_ref' is not initialized [cppcoreguidelines-init-variables]
        const char *object_ref, *tag;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/tag.c:430:27: warning: variable 'tag' is not initialized [cppcoreguidelines-init-variables]
        const char *object_ref, *tag;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/tag.c:434:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int annotate = 0, force = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/tag.c:435:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int cmdmode = 0, create_tag_object = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/tag.c:436:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *msgfile = NULL, *keyid = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/tag.c:438:26: warning: variable 'transaction' is not initialized [cppcoreguidelines-init-variables]
        struct ref_transaction *transaction;
                                ^
                                            = NULL
/datasets/git/builtin/tag.c:441:22: warning: variable 'sorting' is not initialized [cppcoreguidelines-init-variables]
        struct ref_sorting *sorting;
                            ^
                                    = NULL
/datasets/git/builtin/tag.c:447:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_CMDMODE('l', "list", &cmdmode, N_("list tag names"), 'l'),
                ^
/datasets/git/./parse-options.h:188:37: note: expanded from macro 'OPT_CMDMODE'
#define OPT_CMDMODE(s, l, v, h, i)  OPT_CMDMODE_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:187:16: note: expanded from macro 'OPT_CMDMODE_F'
                                      (h), PARSE_OPT_CMDMODE|PARSE_OPT_NOARG|PARSE_OPT_NONEG | (f), NULL, (i) }
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/tag.c:451:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_CMDMODE('d', "delete", &cmdmode, N_("delete tags"), 'd'),
                ^
/datasets/git/./parse-options.h:188:37: note: expanded from macro 'OPT_CMDMODE'
#define OPT_CMDMODE(s, l, v, h, i)  OPT_CMDMODE_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:187:16: note: expanded from macro 'OPT_CMDMODE_F'
                                      (h), PARSE_OPT_CMDMODE|PARSE_OPT_NOARG|PARSE_OPT_NONEG | (f), NULL, (i) }
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/tag.c:452:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_CMDMODE('v', "verify", &cmdmode, N_("verify tags"), 'v'),
                ^
/datasets/git/./parse-options.h:188:37: note: expanded from macro 'OPT_CMDMODE'
#define OPT_CMDMODE(s, l, v, h, i)  OPT_CMDMODE_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:187:16: note: expanded from macro 'OPT_CMDMODE_F'
                                      (h), PARSE_OPT_CMDMODE|PARSE_OPT_NOARG|PARSE_OPT_NONEG | (f), NULL, (i) }
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/tag.c:455:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('a', "annotate", &annotate,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/tag.c:460:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('e', "edit", &edit_flag, N_("force edit of tag message")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/tag.c:461:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('s', "sign", &opt.sign, N_("annotated and GPG-signed tag")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/tag.c:465:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__FORCE(&force, N_("replace the tag if exists"), 0),
                ^
/datasets/git/./parse-options.h:367:31: note: expanded from macro 'OPT__FORCE'
#define OPT__FORCE(var, h, f) OPT_COUNTUP_F('f', "force",   (var), (h), (f))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/tag.c:466:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "create-reflog", &create_reflog, N_("create a reflog")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/tag.c:470:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_CONTAINS(&filter.with_commit, N_("print only tags that contain the commit")),
                ^
/datasets/git/./parse-options.h:385:28: note: expanded from macro 'OPT_CONTAINS'
#define OPT_CONTAINS(v, h) _OPT_CONTAINS_OR_WITH("contains", v, h, PARSE_OPT_NONEG)
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:382:4: note: expanded from macro '_OPT_CONTAINS_OR_WITH'
          PARSE_OPT_LASTARG_DEFAULT | flag, \
          ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/tag.c:471:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_NO_CONTAINS(&filter.no_commit, N_("print only tags that don't contain the commit")),
                ^
/datasets/git/./parse-options.h:386:31: note: expanded from macro 'OPT_NO_CONTAINS'
#define OPT_NO_CONTAINS(v, h) _OPT_CONTAINS_OR_WITH("no-contains", v, h, PARSE_OPT_NONEG)
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:382:4: note: expanded from macro '_OPT_CONTAINS_OR_WITH'
          PARSE_OPT_LASTARG_DEFAULT | flag, \
          ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/tag.c:472:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_WITH(&filter.with_commit, N_("print only tags that contain the commit")),
                ^
/datasets/git/./parse-options.h:387:24: note: expanded from macro 'OPT_WITH'
#define OPT_WITH(v, h) _OPT_CONTAINS_OR_WITH("with", v, h, PARSE_OPT_HIDDEN | PARSE_OPT_NONEG)
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:382:4: note: expanded from macro '_OPT_CONTAINS_OR_WITH'
          PARSE_OPT_LASTARG_DEFAULT | flag, \
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/tag.c:473:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_WITHOUT(&filter.no_commit, N_("print only tags that don't contain the commit")),
                ^
/datasets/git/./parse-options.h:388:27: note: expanded from macro 'OPT_WITHOUT'
#define OPT_WITHOUT(v, h) _OPT_CONTAINS_OR_WITH("without", v, h, PARSE_OPT_HIDDEN | PARSE_OPT_NONEG)
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:382:4: note: expanded from macro '_OPT_CONTAINS_OR_WITH'
          PARSE_OPT_LASTARG_DEFAULT | flag, \
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/tag.c:474:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_MERGED(&filter, N_("print only tags that are merged")),
                ^
/datasets/git/./ref-filter.h:93:26: note: expanded from macro 'OPT_MERGED'
#define OPT_MERGED(f, h) _OPT_MERGED_NO_MERGED("merged", f, h)
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./ref-filter.h:90:4: note: expanded from macro '_OPT_MERGED_NO_MERGED'
          PARSE_OPT_LASTARG_DEFAULT | PARSE_OPT_NONEG, \
          ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/tag.c:475:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_NO_MERGED(&filter, N_("print only tags that are not merged")),
                ^
/datasets/git/./ref-filter.h:94:29: note: expanded from macro 'OPT_NO_MERGED'
#define OPT_NO_MERGED(f, h) _OPT_MERGED_NO_MERGED("no-merged", f, h)
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./ref-filter.h:90:4: note: expanded from macro '_OPT_MERGED_NO_MERGED'
          PARSE_OPT_LASTARG_DEFAULT | PARSE_OPT_NONEG, \
          ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/tag.c:485:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('i', "ignore-case", &icase, N_("sorting and filtering are case insensitive")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/tag.c:495:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&opt, 0, sizeof(opt));
        ^~~~~~
/datasets/git/builtin/tag.c:495:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&opt, 0, sizeof(opt));
        ^~~~~~
/datasets/git/builtin/tag.c:496:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&filter, 0, sizeof(filter));
        ^~~~~~
/datasets/git/builtin/tag.c:496:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&filter, 0, sizeof(filter));
        ^~~~~~
/datasets/git/builtin/tag.c:503:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (argc == 0)
                              ^
                               {
/datasets/git/builtin/tag.c:504:4: warning: repeated branch in conditional chain [bugprone-branch-clone]
                        cmdmode = 'l';
                        ^
/datasets/git/builtin/tag.c:504:17: note: end of the original
                        cmdmode = 'l';
                                     ^
/datasets/git/builtin/tag.c:508:4: note: clone 1 starts here
                        cmdmode = 'l';
                        ^
/datasets/git/builtin/tag.c:507:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                         filter.points_at.nr || filter.lines != -1)
                                                                   ^
                                                                    {
/datasets/git/builtin/tag.c:511:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cmdmode == 'l')
                           ^
                            {
/datasets/git/builtin/tag.c:514:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt.sign == -1)
                           ^
                            {
/datasets/git/builtin/tag.c:523:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((create_tag_object || force) && (cmdmode != 0))
                                                           ^
                                                            {
/datasets/git/builtin/tag.c:528:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (explicitly_enable_column(colopts))
                    ^
/datasets/git/./column.h:20:4: note: expanded from macro 'explicitly_enable_column'
        (((c) & COL_PARSEOPT) && column_active(c))
          ^     ~~~~~~~~~~~~
/datasets/git/builtin/tag.c:528:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (explicitly_enable_column(colopts))
                                                      ^
                                                       {
/datasets/git/builtin/tag.c:538:4: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memset(&copts, 0, sizeof(copts));
                        ^~~~~~
/datasets/git/builtin/tag.c:538:4: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                        memset(&copts, 0, sizeof(copts));
                        ^~~~~~
/datasets/git/builtin/tag.c:540:22: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        run_column_filter(colopts, &copts);
                                          ^
/datasets/git/builtin/tag.c:544:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (column_active(colopts))
                                           ^
                                            {
/datasets/git/builtin/tag.c:548:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (filter.lines != -1)
                               ^
                                {
/datasets/git/builtin/tag.c:550:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (filter.with_commit)
                                    ^
                                     {
/datasets/git/builtin/tag.c:552:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (filter.no_commit)
                                  ^
                                   {
/datasets/git/builtin/tag.c:554:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (filter.points_at.nr)
                                     ^
                                      {
/datasets/git/builtin/tag.c:556:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (filter.reachable_from)
                                       ^
                                        {
/datasets/git/builtin/tag.c:558:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (filter.unreachable_from)
                                         ^
                                          {
/datasets/git/builtin/tag.c:560:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (only_in_list)
                         ^
                          {
/datasets/git/builtin/tag.c:567:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (format.format && verify_ref_format(&format))
                                                                ^
                                                                 {
/datasets/git/builtin/tag.c:574:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (msg.given && msgfile)
                                         ^
                                          {
/datasets/git/builtin/tag.c:576:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (msg.given)
                              ^
                               {
/datasets/git/builtin/tag.c:580:30: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                if (strbuf_read(&buf, 0, 1024) < 0)
                                                         ^
/datasets/git/builtin/tag.c:580:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (strbuf_read(&buf, 0, 1024) < 0)
                                                                   ^
                                                                    {
/datasets/git/builtin/tag.c:583:41: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                if (strbuf_read_file(&buf, msgfile, 1024) < 0)
                                                                    ^
/datasets/git/builtin/tag.c:583:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (strbuf_read_file(&buf, msgfile, 1024) < 0)
                                                                              ^
                                                                               {
/datasets/git/builtin/tag.c:593:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc > 2)
                     ^
                      {
/datasets/git/builtin/tag.c:596:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid(object_ref, &object))
                                         ^
                                          {
/datasets/git/builtin/tag.c:599:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strbuf_check_tag_ref(&ref, tag))
                                            ^
                                             {
/datasets/git/builtin/tag.c:602:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (read_ref(ref.buf, &prev))
                                     ^
                                      {
/datasets/git/builtin/tag.c:604:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!force)
                        ^
                         {
/datasets/git/builtin/tag.c:610:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!cleanup_arg || !strcmp(cleanup_arg, "strip"))
                                                          ^
                                                           {
/datasets/git/builtin/tag.c:612:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(cleanup_arg, "verbatim"))
                                                  ^
                                                   {
/datasets/git/builtin/tag.c:614:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(cleanup_arg, "whitespace"))
                                                    ^
                                                     {
/datasets/git/builtin/tag.c:616:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/tag.c:622:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (force_sign_annotate && !annotate)
                                                     ^
                                                      {
/datasets/git/builtin/tag.c:630:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                   create_reflog ? REF_FORCE_CREATE_REFLOG : 0,
                                                   ^
/datasets/git/./refs.h:637:34: note: expanded from macro 'REF_FORCE_CREATE_REFLOG'
#define REF_FORCE_CREATE_REFLOG (1 << 1)
                                 ^
/datasets/git/builtin/tag.c:632:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            ref_transaction_commit(transaction, &err))
                                                      ^
                                                       {
/datasets/git/builtin/tag.c:635:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (force && !is_null_oid(&prev) && !oideq(&prev, &object))
                                                                   ^
                                                                    {
builtin/unpack-file.c:7:19: warning: 50 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        static char path[50];
                         ^
/datasets/git/builtin/unpack-file.c:8:8: warning: variable 'buf' is not initialized [cppcoreguidelines-init-variables]
        void *buf;
              ^
                  = NULL
/datasets/git/builtin/unpack-file.c:9:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/builtin/unpack-file.c:10:16: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size;
                      ^
                           = 0
/datasets/git/builtin/unpack-file.c:11:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/builtin/unpack-file.c:11:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/unpack-file.c:14:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!buf || type != OBJ_BLOB)
                                     ^
                                      {
/datasets/git/builtin/unpack-file.c:19:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_in_full(fd, buf, size) < 0)
                                             ^
                                              {
/datasets/git/builtin/unpack-file.c:25:62: warning: parameter 'prefix' is unused [misc-unused-parameters]
int cmd_unpack_file(int argc, const char **argv, const char *prefix)
                                                             ^
/datasets/git/builtin/unpack-file.c:29:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc != 2 || !strcmp(argv[1], "-h"))
                                                ^
                                                 {
/datasets/git/builtin/unpack-file.c:31:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid(argv[1], &oid))
                                   ^
                                    {
/datasets/git/builtin/unpack-objects.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "cache.h"
^        ~~~~~~~~~
         "blob.h"
/datasets/git/builtin/unpack-objects.c:18:12: warning: variable 'dry_run' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int dry_run, quiet, recover, has_errors, strict;
           ^
/datasets/git/builtin/unpack-objects.c:18:21: warning: variable 'quiet' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int dry_run, quiet, recover, has_errors, strict;
                    ^
/datasets/git/builtin/unpack-objects.c:18:28: warning: variable 'recover' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int dry_run, quiet, recover, has_errors, strict;
                           ^
/datasets/git/builtin/unpack-objects.c:18:37: warning: variable 'has_errors' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int dry_run, quiet, recover, has_errors, strict;
                                    ^
/datasets/git/builtin/unpack-objects.c:18:49: warning: variable 'strict' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int dry_run, quiet, recover, has_errors, strict;
                                                ^
/datasets/git/builtin/unpack-objects.c:22:22: warning: variable 'buffer' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned char buffer[4096];
                     ^
/datasets/git/builtin/unpack-objects.c:22:29: warning: 4096 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
static unsigned char buffer[4096];
                            ^
/datasets/git/builtin/unpack-objects.c:23:21: warning: variable 'offset' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned int offset, len;
                    ^
/datasets/git/builtin/unpack-objects.c:23:29: warning: variable 'len' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned int offset, len;
                            ^
/datasets/git/builtin/unpack-objects.c:24:14: warning: variable 'consumed_bytes' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static off_t consumed_bytes;
             ^
/datasets/git/builtin/unpack-objects.c:25:14: warning: variable 'max_input_size' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static off_t max_input_size;
             ^
/datasets/git/builtin/unpack-objects.c:26:21: warning: variable 'ctx' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static git_hash_ctx ctx;
                    ^
/datasets/git/builtin/unpack-objects.c:27:28: warning: variable 'fsck_options' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct fsck_options fsck_options = FSCK_OPTIONS_STRICT;
                           ^
/datasets/git/builtin/unpack-objects.c:28:25: warning: variable 'progress' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct progress *progress;
                        ^
/datasets/git/builtin/unpack-objects.c:28:25: warning: variable 'progress' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/unpack-objects.c:35:8: warning: accessing fields in struct 'obj_buffer' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct obj_buffer {
       ^
/datasets/git/builtin/unpack-objects.c:35:8: note: use "__attribute__((aligned(16)))" to align struct 'obj_buffer' to 16 bytes
/datasets/git/builtin/unpack-objects.c:40:26: warning: variable 'obj_decorate' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct decoration obj_decorate;
                         ^
/datasets/git/builtin/unpack-objects.c:49:21: warning: variable 'obj' is not initialized [cppcoreguidelines-init-variables]
        struct obj_buffer *obj;
                           ^
                               = NULL
/datasets/git/builtin/unpack-objects.c:53:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (add_decoration(&obj_decorate, object, obj))
                                                       ^
                                                        {
/datasets/git/builtin/unpack-objects.c:63:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (min <= len)
                       ^
                        {
/datasets/git/builtin/unpack-objects.c:65:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (min > sizeof(buffer))
                                 ^
                                  {
/datasets/git/builtin/unpack-objects.c:69:3: warning: Call to function 'memmove' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memmove_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memmove(buffer, buffer + offset, len);
                ^~~~~~~
/datasets/git/builtin/unpack-objects.c:69:3: note: Call to function 'memmove' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memmove_s' in case of C11
                memmove(buffer, buffer + offset, len);
                ^~~~~~~
/datasets/git/builtin/unpack-objects.c:72:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        do {
        ^
/datasets/git/builtin/unpack-objects.c:75:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!ret)
                                 ^
                                  {
/datasets/git/builtin/unpack-objects.c:80:11: warning: backward branch (do loop) is ID-dependent due to variable reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
        } while (len < min);
                 ^
/datasets/git/builtin/unpack-objects.c:86:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (bytes > len)
                        ^
                         {
/datasets/git/builtin/unpack-objects.c:92:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (signed_add_overflows(consumed_bytes, bytes))
                                                        ^
                                                         {
/datasets/git/builtin/unpack-objects.c:95:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (max_input_size && consumed_bytes > max_input_size)
                                                              ^
                                                               {
/datasets/git/builtin/unpack-objects.c:114:44: warning: 8192 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        unsigned long bufsize = dry_run && size > 8192 ? 8192 : size;
                                                  ^
/datasets/git/builtin/unpack-objects.c:114:51: warning: 8192 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        unsigned long bufsize = dry_run && size > 8192 ? 8192 : size;
                                                         ^
/datasets/git/builtin/unpack-objects.c:117:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&stream, 0, sizeof(stream));
        ^~~~~~
/datasets/git/builtin/unpack-objects.c:117:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&stream, 0, sizeof(stream));
        ^~~~~~
/datasets/git/builtin/unpack-objects.c:127:7: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                use(len - stream.avail_in);
                    ^
/datasets/git/builtin/unpack-objects.c:128:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (stream.total_out == size && ret == Z_STREAM_END)
                                                                    ^
                                                                     {
/datasets/git/builtin/unpack-objects.c:132:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        FREE_AND_NULL(buf);
                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/unpack-objects.c:133:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!recover)
                                     ^
                                      {
/datasets/git/builtin/unpack-objects.c:134:5: warning: function is not thread safe [concurrency-mt-unsafe]
                                exit(1);
                                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/unpack-objects.c:149:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (dry_run)
                    ^
                     {
/datasets/git/builtin/unpack-objects.c:150:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FREE_AND_NULL(buf);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/unpack-objects.c:154:8: warning: accessing fields in struct 'delta_info' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct delta_info {
       ^
/datasets/git/builtin/unpack-objects.c:154:8: note: use "__attribute__((aligned(128)))" to align struct 'delta_info' to 128 bytes
/datasets/git/builtin/unpack-objects.c:163:27: warning: variable 'delta_list' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct delta_info *delta_list;
                          ^
/datasets/git/builtin/unpack-objects.c:163:27: warning: variable 'delta_list' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/unpack-objects.c:165:40: warning: parameter name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
static void add_delta_to_list(unsigned nr, const struct object_id *base_oid,
                                       ^
/datasets/git/builtin/unpack-objects.c:180:8: warning: accessing fields in struct 'obj_info' is inefficient due to padding; only needs 52 bytes but is using 56 bytes [altera-struct-pack-align]
struct obj_info {
       ^
/datasets/git/builtin/unpack-objects.c:180:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'obj_info'
/datasets/git/builtin/unpack-objects.c:180:8: warning: accessing fields in struct 'obj_info' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct obj_info {
       ^
/datasets/git/builtin/unpack-objects.c:180:8: note: use "__attribute__((aligned(64)))" to align struct 'obj_info' to 64 bytes
/datasets/git/builtin/unpack-objects.c:190:25: warning: variable 'obj_list' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct obj_info *obj_list;
                        ^
/datasets/git/builtin/unpack-objects.c:190:25: warning: variable 'obj_list' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/unpack-objects.c:191:17: warning: variable 'nr_objects' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned nr_objects;
                ^
/datasets/git/builtin/unpack-objects.c:202:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                              obj->type, &oid) < 0)
                                                   ^
                                                    {
/datasets/git/builtin/unpack-objects.c:204:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        obj->flags |= FLAG_WRITTEN;
                      ^
/datasets/git/builtin/unpack-objects.c:188:23: note: expanded from macro 'FLAG_WRITTEN'
#define FLAG_WRITTEN (1u<<21)
                      ^   ~~
/datasets/git/builtin/unpack-objects.c:213:10: warning: parameter 'data' is unused [misc-unused-parameters]
                        void *data, struct fsck_options *options)
                              ^
/datasets/git/builtin/unpack-objects.c:213:37: warning: parameter 'options' is unused [misc-unused-parameters]
                        void *data, struct fsck_options *options)
                                                         ^
/datasets/git/builtin/unpack-objects.c:215:21: warning: variable 'obj_buf' is not initialized [cppcoreguidelines-init-variables]
        struct obj_buffer *obj_buf;
                           ^
                                   = NULL
/datasets/git/builtin/unpack-objects.c:217:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!obj)
                 ^
                  {
/datasets/git/builtin/unpack-objects.c:220:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (obj->flags & FLAG_WRITTEN)
                         ^
/datasets/git/builtin/unpack-objects.c:188:23: note: expanded from macro 'FLAG_WRITTEN'
#define FLAG_WRITTEN (1u<<21)
                      ^   ~~
/datasets/git/builtin/unpack-objects.c:220:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (obj->flags & FLAG_WRITTEN)
                                      ^
                                       {
/datasets/git/builtin/unpack-objects.c:223:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (type != OBJ_ANY && obj->type != type)
                                                 ^
                                                  {
/datasets/git/builtin/unpack-objects.c:226:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(obj->flags & FLAG_OPEN)) {
                           ^
/datasets/git/builtin/unpack-objects.c:187:20: note: expanded from macro 'FLAG_OPEN'
#define FLAG_OPEN (1u<<20)
                   ^   ~~
/datasets/git/builtin/unpack-objects.c:227:17: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
                unsigned long size;
                              ^
                                   = 0
/datasets/git/builtin/unpack-objects.c:229:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (type != obj->type || type <= 0)
                                                   ^
                                                    {
/datasets/git/builtin/unpack-objects.c:231:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                obj->flags |= FLAG_WRITTEN;
                              ^
/datasets/git/builtin/unpack-objects.c:188:23: note: expanded from macro 'FLAG_WRITTEN'
#define FLAG_WRITTEN (1u<<21)
                      ^   ~~
/datasets/git/builtin/unpack-objects.c:236:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!obj_buf)
                     ^
                      {
/datasets/git/builtin/unpack-objects.c:238:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fsck_object(obj, obj_buf->buffer, obj_buf->size, &fsck_options))
                                                                            ^
                                                                             {
/datasets/git/builtin/unpack-objects.c:241:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fsck_walk(obj, NULL, &fsck_options))
                                                ^
                                                 {
/datasets/git/builtin/unpack-objects.c:249:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned i;
                 ^
                   = 0
/datasets/git/builtin/unpack-objects.c:249:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/unpack-objects.c:250:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr_objects; i++) {
        ^
/datasets/git/builtin/unpack-objects.c:251:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (obj_list[i].obj)
                                    ^
                                     {
/datasets/git/builtin/unpack-objects.c:256:35: warning: parameter name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
static void added_object(unsigned nr, enum object_type type,
                                  ^
/datasets/git/builtin/unpack-objects.c:264:13: warning: function 'write_object' is within a recursive call chain [misc-no-recursion]
static void write_object(unsigned nr, enum object_type type,
            ^
/datasets/git/builtin/unpack-objects.c:305:13: note: example recursive call chain, starting from function 'resolve_delta'
static void resolve_delta(unsigned nr, enum object_type type,
            ^
/datasets/git/builtin/unpack-objects.c:318:2: note: Frame #1: function 'resolve_delta' calls function 'write_object' here:
        write_object(nr, type, result, result_size);
        ^
/datasets/git/builtin/unpack-objects.c:271:3: note: Frame #2: function 'write_object' calls function 'added_object' here:
                added_object(nr, type, buf, size);
                ^
/datasets/git/builtin/unpack-objects.c:336:4: note: Frame #3: function 'added_object' calls function 'resolve_delta' here:
                        resolve_delta(info->nr, type, data, size,
                        ^
/datasets/git/builtin/unpack-objects.c:336:4: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/builtin/unpack-objects.c:264:35: warning: parameter name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
static void write_object(unsigned nr, enum object_type type,
                                  ^
/datasets/git/builtin/unpack-objects.c:269:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                      &obj_list[nr].oid) < 0)
                                                             ^
                                                              {
/datasets/git/builtin/unpack-objects.c:275:16: warning: variable 'blob' is not initialized [cppcoreguidelines-init-variables]
                struct blob *blob;
                             ^
                                  = NULL
/datasets/git/builtin/unpack-objects.c:277:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                      &obj_list[nr].oid) < 0)
                                                             ^
                                                              {
/datasets/git/builtin/unpack-objects.c:283:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (blob)
                         ^
                          {
/datasets/git/builtin/unpack-objects.c:284:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        blob->object.flags |= FLAG_WRITTEN;
                                              ^
/datasets/git/builtin/unpack-objects.c:188:23: note: expanded from macro 'FLAG_WRITTEN'
#define FLAG_WRITTEN (1u<<21)
                      ^   ~~
/datasets/git/builtin/unpack-objects.c:285:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/unpack-objects.c:289:18: warning: variable 'obj' is not initialized [cppcoreguidelines-init-variables]
                struct object *obj;
                               ^
                                   = NULL
/datasets/git/builtin/unpack-objects.c:290:7: warning: variable 'eaten' is not initialized [cppcoreguidelines-init-variables]
                int eaten;
                    ^
                          = 0
/datasets/git/builtin/unpack-objects.c:297:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!obj)
                         ^
                          {
/datasets/git/builtin/unpack-objects.c:300:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                obj->flags |= FLAG_OPEN;
                              ^
/datasets/git/builtin/unpack-objects.c:187:20: note: expanded from macro 'FLAG_OPEN'
#define FLAG_OPEN (1u<<20)
                   ^   ~~
/datasets/git/builtin/unpack-objects.c:305:13: warning: function 'resolve_delta' is within a recursive call chain [misc-no-recursion]
static void resolve_delta(unsigned nr, enum object_type type,
            ^
/datasets/git/builtin/unpack-objects.c:305:36: warning: parameter name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
static void resolve_delta(unsigned nr, enum object_type type,
                                   ^
/datasets/git/builtin/unpack-objects.c:309:8: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        void *result;
              ^
                     = NULL
/datasets/git/builtin/unpack-objects.c:310:16: warning: variable 'result_size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long result_size;
                      ^
                                  = 0
/datasets/git/builtin/unpack-objects.c:315:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!result)
                    ^
                     {
/datasets/git/builtin/unpack-objects.c:325:13: warning: function 'added_object' is within a recursive call chain [misc-no-recursion]
static void added_object(unsigned nr, enum object_type type,
            ^
/datasets/git/builtin/unpack-objects.c:325:26: warning: 2 adjacent parameters of 'added_object' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void added_object(unsigned nr, enum object_type type,
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/unpack-objects.c:325:35: note: the first parameter in the range is 'nr'
static void added_object(unsigned nr, enum object_type type,
                                  ^~
/datasets/git/builtin/unpack-objects.c:325:56: note: the last parameter in the range is 'type'
static void added_object(unsigned nr, enum object_type type,
                                                       ^~~~
/datasets/git/builtin/unpack-objects.c:325:39: note: 'unsigned int' and 'enum object_type' may be implicitly converted
static void added_object(unsigned nr, enum object_type type,
                                      ^
/datasets/git/builtin/unpack-objects.c:325:35: warning: parameter name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
static void added_object(unsigned nr, enum object_type type,
                                  ^
/datasets/git/builtin/unpack-objects.c:329:2: note: inferred assignment of ID-dependent value from ID-dependent variable p [altera-id-dependent-backward-branch]
        struct delta_info *info;
        ^
/datasets/git/builtin/unpack-objects.c:328:22: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        struct delta_info **p = &delta_list;
                            ^
/datasets/git/builtin/unpack-objects.c:329:21: warning: variable 'info' is not initialized [cppcoreguidelines-init-variables]
        struct delta_info *info;
                           ^
                                = NULL
/datasets/git/builtin/unpack-objects.c:331:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((info = *p) != NULL) {
        ^
/datasets/git/builtin/unpack-objects.c:331:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'info' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((info = *p) != NULL) {
               ^
/datasets/git/builtin/unpack-objects.c:346:17: warning: parameter name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
                                   unsigned nr)
                                            ^
/datasets/git/builtin/unpack-objects.c:350:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (buf)
                ^
                 {
/datasets/git/builtin/unpack-objects.c:354:8: warning: accessing fields in struct 'input_zstream_data' is inefficient due to padding; only needs 8204 bytes but is using 8208 bytes [altera-struct-pack-align]
struct input_zstream_data {
       ^
/datasets/git/builtin/unpack-objects.c:354:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'input_zstream_data'
/datasets/git/builtin/unpack-objects.c:354:8: warning: accessing fields in struct 'input_zstream_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct input_zstream_data {
       ^
/datasets/git/builtin/unpack-objects.c:354:8: note: use "__attribute__((aligned(128)))" to align struct 'input_zstream_data' to 128 bytes
/datasets/git/builtin/unpack-objects.c:356:20: warning: 8192 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        unsigned char buf[8192];
                          ^
/datasets/git/builtin/unpack-objects.c:365:8: warning: variable name 'in' is too short, expected at least 3 characters [readability-identifier-length]
        void *in = fill(1);
              ^
/datasets/git/builtin/unpack-objects.c:380:6: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        use(len - zstream->avail_in);
            ^
/datasets/git/builtin/unpack-objects.c:386:25: warning: 2 adjacent parameters of 'stream_blob' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void stream_blob(unsigned long size, unsigned nr)
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/unpack-objects.c:386:39: note: the first parameter in the range is 'size'
static void stream_blob(unsigned long size, unsigned nr)
                                      ^~~~
/datasets/git/builtin/unpack-objects.c:386:54: note: the last parameter in the range is 'nr'
static void stream_blob(unsigned long size, unsigned nr)
                                                     ^~
/datasets/git/builtin/unpack-objects.c:386:45: note: 'unsigned long' and 'unsigned int' may be implicitly converted
static void stream_blob(unsigned long size, unsigned nr)
                                            ^
/datasets/git/builtin/unpack-objects.c:386:54: warning: parameter name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
static void stream_blob(unsigned long size, unsigned nr)
                                                     ^
/datasets/git/builtin/unpack-objects.c:399:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (stream_loose_object(&in_stream, size, &info->oid))
                                                              ^
                                                               {
/datasets/git/builtin/unpack-objects.c:402:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (data.status != Z_STREAM_END)
                                        ^
                                         {
/datasets/git/builtin/unpack-objects.c:409:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!blob)
                          ^
                           {
/datasets/git/builtin/unpack-objects.c:411:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                blob->object.flags |= FLAG_WRITTEN;
                                      ^
/datasets/git/builtin/unpack-objects.c:188:23: note: expanded from macro 'FLAG_WRITTEN'
#define FLAG_WRITTEN (1u<<21)
                      ^   ~~
/datasets/git/builtin/unpack-objects.c:416:42: warning: parameter name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
static int resolve_against_held(unsigned nr, const struct object_id *base,
                                         ^
/datasets/git/builtin/unpack-objects.c:419:17: warning: variable 'obj' is not initialized [cppcoreguidelines-init-variables]
        struct object *obj;
                       ^
                           = NULL
/datasets/git/builtin/unpack-objects.c:420:21: warning: variable 'obj_buffer' is not initialized [cppcoreguidelines-init-variables]
        struct obj_buffer *obj_buffer;
                           ^
                                      = NULL
/datasets/git/builtin/unpack-objects.c:422:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!obj)
                 ^
                  {
/datasets/git/builtin/unpack-objects.c:425:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!obj_buffer)
                        ^
                         {
/datasets/git/builtin/unpack-objects.c:432:13: warning: function 'unpack_delta_entry' has cognitive complexity of 32 (threshold 25) [readability-function-cognitive-complexity]
static void unpack_delta_entry(enum object_type type, unsigned long delta_size,
            ^
/datasets/git/builtin/unpack-objects.c:439:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (type == OBJ_REF_DELTA) {
        ^
/datasets/git/builtin/unpack-objects.c:443:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!delta_data)
                ^
/datasets/git/builtin/unpack-objects.c:445:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (has_object_file(&base_oid))
                ^
/datasets/git/builtin/unpack-objects.c:447:8: note: +1, nesting level increased to 2
                else if (resolve_against_held(nr, &base_oid,
                     ^
/datasets/git/builtin/unpack-objects.c:450:3: note: +1, nesting level increased to 2
                else {
                ^
/datasets/git/builtin/unpack-objects.c:456:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/unpack-objects.c:466:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (c & 128) {
                ^
/datasets/git/builtin/unpack-objects.c:468:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!base_offset || MSB(base_offset, 7))
                        ^
/datasets/git/builtin/unpack-objects.c:468:21: note: +1
                        if (!base_offset || MSB(base_offset, 7))
                                         ^
/datasets/git/builtin/unpack-objects.c:476:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (base_offset <= 0 || base_offset >= obj_list[nr].offset)
                ^
/datasets/git/builtin/unpack-objects.c:476:24: note: +1
                if (base_offset <= 0 || base_offset >= obj_list[nr].offset)
                                     ^
/datasets/git/builtin/unpack-objects.c:480:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!delta_data)
                ^
/datasets/git/builtin/unpack-objects.c:484:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (lo < hi) {
                ^
/datasets/git/builtin/unpack-objects.c:486:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (base_offset < obj_list[mid].offset) {
                        ^
/datasets/git/builtin/unpack-objects.c:488:11: note: +1, nesting level increased to 3
                        } else if (base_offset > obj_list[mid].offset) {
                               ^
/datasets/git/builtin/unpack-objects.c:490:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/builtin/unpack-objects.c:496:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!base_found) {
                ^
/datasets/git/builtin/unpack-objects.c:508:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (resolve_against_held(nr, &base_oid, delta_data, delta_size))
        ^
/datasets/git/builtin/unpack-objects.c:512:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!base) {
        ^
/datasets/git/builtin/unpack-objects.c:515:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!recover)
                ^
/datasets/git/builtin/unpack-objects.c:433:20: warning: parameter name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
                               unsigned nr)
                                        ^
/datasets/git/builtin/unpack-objects.c:435:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        void *delta_data, *base;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/unpack-objects.c:435:8: warning: variable 'delta_data' is not initialized [cppcoreguidelines-init-variables]
        void *delta_data, *base;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/unpack-objects.c:435:21: warning: variable 'base' is not initialized [cppcoreguidelines-init-variables]
        void *delta_data, *base;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/unpack-objects.c:436:16: warning: variable 'base_size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long base_size;
                      ^
                                = 0
/datasets/git/builtin/unpack-objects.c:443:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!delta_data)
                                ^
                                 {
/datasets/git/builtin/unpack-objects.c:445:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (has_object_file(&base_oid))
                                               ^
                                                {
/datasets/git/builtin/unpack-objects.c:448:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                              delta_data, delta_size))
                                                                      ^
                                                                       {
/datasets/git/builtin/unpack-objects.c:458:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                unsigned char *pack, c;
                ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/unpack-objects.c:458:18: warning: variable 'pack' is not initialized [cppcoreguidelines-init-variables]
                unsigned char *pack, c;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/unpack-objects.c:458:24: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
                unsigned char *pack, c;
                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/unpack-objects.c:458:24: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/unpack-objects.c:459:9: warning: variable 'base_offset' is not initialized [cppcoreguidelines-init-variables]
                off_t base_offset;
                      ^
                                  = 0
/datasets/git/builtin/unpack-objects.c:460:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                unsigned lo, mid, hi;
                ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/unpack-objects.c:458:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                unsigned char *pack, c;
                ^
/datasets/git/builtin/unpack-objects.c:460:12: warning: variable 'lo' is not initialized [cppcoreguidelines-init-variables]
                unsigned lo, mid, hi;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/unpack-objects.c:460:12: warning: variable name 'lo' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/unpack-objects.c:460:16: warning: variable 'mid' is not initialized [cppcoreguidelines-init-variables]
                unsigned lo, mid, hi;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/unpack-objects.c:460:21: warning: variable 'hi' is not initialized [cppcoreguidelines-init-variables]
                unsigned lo, mid, hi;
                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/unpack-objects.c:460:21: warning: variable name 'hi' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/unpack-objects.c:465:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                base_offset = c & 127;
                              ^   ~~~
/datasets/git/builtin/unpack-objects.c:465:21: warning: 127 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                base_offset = c & 127;
                                  ^
/datasets/git/builtin/unpack-objects.c:466:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (c & 128) {
                ^
/datasets/git/builtin/unpack-objects.c:466:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'c' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (c & 128) {
                       ^
/datasets/git/builtin/unpack-objects.c:466:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                while (c & 128) {
                       ^   ~~~
/datasets/git/builtin/unpack-objects.c:466:14: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                while (c & 128) {
                           ^
/datasets/git/builtin/unpack-objects.c:468:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!base_offset || MSB(base_offset, 7))
                                            ^
/datasets/git/./git-compat-util.h:155:23: note: expanded from macro 'MSB'
#define MSB(x, bits) ((x) & TYPEOF(x)(~0ULL << (bitsizeof(x) - (bits))))
                      ^~~
/datasets/git/builtin/unpack-objects.c:468:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!base_offset || MSB(base_offset, 7))
                                                                ^
                                                                 {
/datasets/git/builtin/unpack-objects.c:473:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        base_offset = (base_offset << 7) + (c & 127);
                                       ^~~~~~~~~~~
/datasets/git/builtin/unpack-objects.c:473:34: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        base_offset = (base_offset << 7) + (c & 127);
                                                      ^
/datasets/git/builtin/unpack-objects.c:473:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        base_offset = (base_offset << 7) + (c & 127);
                                                            ^   ~~~
/datasets/git/builtin/unpack-objects.c:473:44: warning: 127 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        base_offset = (base_offset << 7) + (c & 127);
                                                                ^
/datasets/git/builtin/unpack-objects.c:476:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (base_offset <= 0 || base_offset >= obj_list[nr].offset)
                                                                           ^
                                                                            {
/datasets/git/builtin/unpack-objects.c:480:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!delta_data)
                                ^
                                 {
/datasets/git/builtin/unpack-objects.c:484:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (lo < hi) {
                ^
/datasets/git/builtin/unpack-objects.c:484:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'lo' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (lo < hi) {
                       ^
/datasets/git/builtin/unpack-objects.c:508:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (resolve_against_held(nr, &base_oid, delta_data, delta_size))
                                                                        ^
                                                                         {
/datasets/git/builtin/unpack-objects.c:515:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!recover)
                             ^
                              {
/datasets/git/builtin/unpack-objects.c:516:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        exit(1);
                        ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/unpack-objects.c:524:33: warning: parameter name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
static void unpack_one(unsigned nr)
                                ^
/datasets/git/builtin/unpack-objects.c:526:11: warning: variable 'shift' is not initialized [cppcoreguidelines-init-variables]
        unsigned shift;
                 ^
                       = 0
/datasets/git/builtin/unpack-objects.c:527:17: warning: variable 'pack' is not initialized [cppcoreguidelines-init-variables]
        unsigned char *pack;
                       ^
                            = NULL
/datasets/git/builtin/unpack-objects.c:528:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned long size, c;
        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/unpack-objects.c:528:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/builtin/unpack-objects.c:528:16: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size, c;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/unpack-objects.c:528:22: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size, c;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/unpack-objects.c:528:22: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/unpack-objects.c:529:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/builtin/unpack-objects.c:536:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        type = (c >> 4) & 7;
               ^          ~
/datasets/git/builtin/unpack-objects.c:536:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        type = (c >> 4) & 7;
                ^    ~
/datasets/git/builtin/unpack-objects.c:536:20: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        type = (c >> 4) & 7;
                          ^
/datasets/git/builtin/unpack-objects.c:537:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        size = (c & 15);
                ^   ~~
/datasets/git/builtin/unpack-objects.c:537:14: warning: 15 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        size = (c & 15);
                    ^
/datasets/git/builtin/unpack-objects.c:539:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (c & 0x80) {
        ^
/datasets/git/builtin/unpack-objects.c:539:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'c' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (c & 0x80) {
               ^
/datasets/git/builtin/unpack-objects.c:539:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        while (c & 0x80) {
               ^   ~~~~
/datasets/git/builtin/unpack-objects.c:539:13: warning: 0x80 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        while (c & 0x80) {
                   ^
/datasets/git/builtin/unpack-objects.c:543:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                size += (c & 0x7f) << shift;
                         ^   ~~~~
/datasets/git/builtin/unpack-objects.c:543:16: warning: 0x7f is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                size += (c & 0x7f) << shift;
                             ^
/datasets/git/builtin/unpack-objects.c:544:12: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                shift += 7;
                         ^
/datasets/git/builtin/unpack-objects.c:566:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (recover)
                            ^
                             {
/datasets/git/builtin/unpack-objects.c:568:3: warning: function is not thread safe [concurrency-mt-unsafe]
                exit(1);
                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/unpack-objects.c:574:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/unpack-objects.c:574:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/unpack-objects.c:579:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ntohl(hdr->hdr_signature) != PACK_SIGNATURE)
                                                        ^
                                                         {
/datasets/git/builtin/unpack-objects.c:581:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!pack_version_ok(hdr->hdr_version))
                                               ^
                                                {
/datasets/git/builtin/unpack-objects.c:586:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!quiet)
                   ^
                    {
/datasets/git/builtin/unpack-objects.c:590:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr_objects; i++) {
        ^
/datasets/git/builtin/unpack-objects.c:590:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'nr_objects' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < nr_objects; i++) {
                    ^
/datasets/git/builtin/unpack-objects.c:597:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (delta_list)
                       ^
                        {
/datasets/git/builtin/unpack-objects.c:601:5: warning: function 'cmd_unpack_objects' has cognitive complexity of 39 (threshold 25) [readability-function-cognitive-complexity]
int cmd_unpack_objects(int argc, const char **argv, const char *prefix)
    ^
/datasets/git/builtin/unpack-objects.c:612:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 1 ; i < argc; i++) {
        ^
/datasets/git/builtin/unpack-objects.c:615:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*arg == '-') {
                ^
/datasets/git/builtin/unpack-objects.c:616:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!strcmp(arg, "-n")) {
                        ^
/datasets/git/builtin/unpack-objects.c:620:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!strcmp(arg, "-q")) {
                        ^
/datasets/git/builtin/unpack-objects.c:624:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!strcmp(arg, "-r")) {
                        ^
/datasets/git/builtin/unpack-objects.c:628:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!strcmp(arg, "--strict")) {
                        ^
/datasets/git/builtin/unpack-objects.c:632:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (skip_prefix(arg, "--strict=", &arg)) {
                        ^
/datasets/git/builtin/unpack-objects.c:637:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (starts_with(arg, "--pack_header=")) {
                        ^
/datasets/git/builtin/unpack-objects.c:644:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (*c != ',')
                                ^
/datasets/git/builtin/unpack-objects.c:647:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (*c)
                                ^
/datasets/git/builtin/unpack-objects.c:652:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (skip_prefix(arg, "--max-input-size=", &arg)) {
                        ^
/datasets/git/builtin/unpack-objects.c:666:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (strict) {
        ^
/datasets/git/builtin/unpack-objects.c:668:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (fsck_finish(&fsck_options))
                ^
/datasets/git/builtin/unpack-objects.c:671:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!hasheq(fill(the_hash_algo->rawsz), oid.hash))
        ^
/datasets/git/builtin/unpack-objects.c:676:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (len) {
        ^
/datasets/git/builtin/unpack-objects.c:678:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ret <= 0)
                ^
/datasets/git/builtin/unpack-objects.c:601:65: warning: parameter 'prefix' is unused [misc-unused-parameters]
int cmd_unpack_objects(int argc, const char **argv, const char *prefix)
                                                                ^
/datasets/git/builtin/unpack-objects.c:603:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/unpack-objects.c:603:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/unpack-objects.c:612:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 1 ; i < argc; i++) {
        ^
/datasets/git/builtin/unpack-objects.c:638:25: warning: variable 'hdr' is not initialized [cppcoreguidelines-init-variables]
                                struct pack_header *hdr;
                                                    ^
                                                        = NULL
/datasets/git/builtin/unpack-objects.c:639:11: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
                                char *c;
                                      ^
                                        = NULL
/datasets/git/builtin/unpack-objects.c:639:11: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/unpack-objects.c:644:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (*c != ',')
                                              ^
                                               {
/datasets/git/builtin/unpack-objects.c:647:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (*c)
                                       ^
                                        {
/datasets/git/builtin/unpack-objects.c:653:22: warning: narrowing conversion from 'uintmax_t' (aka 'unsigned long') to signed type 'off_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                max_input_size = strtoumax(arg, NULL, 10);
                                                 ^
/datasets/git/builtin/unpack-objects.c:653:43: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                max_input_size = strtoumax(arg, NULL, 10);
                                                                      ^
/datasets/git/builtin/unpack-objects.c:668:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fsck_finish(&fsck_options))
                                               ^
                                                {
/datasets/git/builtin/unpack-objects.c:671:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!hasheq(fill(the_hash_algo->rawsz), oid.hash))
                                                          ^
                                                           {
/datasets/git/builtin/unpack-objects.c:676:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (len) {
        ^
/datasets/git/builtin/unpack-objects.c:676:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (len) {
               ^
/datasets/git/builtin/unpack-objects.c:677:13: warning: narrowing conversion from 'ssize_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int ret = xwrite(1, buffer + offset, len);
                          ^
/datasets/git/builtin/unpack-objects.c:678:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret <= 0)
                             ^
                              {
/datasets/git/builtin/update-index.c:8:1: warning: #includes are not sorted properly [llvm-include-order]
#include "bulk-checkin.h"
^        ~~~~~~~~~~~~~~~~
         "builtin.h"
/datasets/git/builtin/update-index.c:30:12: warning: variable 'allow_add' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int allow_add;
           ^
/datasets/git/builtin/update-index.c:31:12: warning: variable 'allow_remove' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int allow_remove;
           ^
/datasets/git/builtin/update-index.c:32:12: warning: variable 'allow_replace' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int allow_replace;
           ^
/datasets/git/builtin/update-index.c:33:12: warning: variable 'info_only' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int info_only;
           ^
/datasets/git/builtin/update-index.c:34:12: warning: variable 'force_remove' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int force_remove;
           ^
/datasets/git/builtin/update-index.c:35:12: warning: variable 'verbose' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int verbose;
           ^
/datasets/git/builtin/update-index.c:36:12: warning: variable 'mark_valid_only' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int mark_valid_only;
           ^
/datasets/git/builtin/update-index.c:37:12: warning: variable 'mark_skip_worktree_only' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int mark_skip_worktree_only;
           ^
/datasets/git/builtin/update-index.c:38:12: warning: variable 'mark_fsmonitor_only' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int mark_fsmonitor_only;
           ^
/datasets/git/builtin/update-index.c:39:12: warning: variable 'ignore_skip_worktree_entries' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int ignore_skip_worktree_entries;
           ^
/datasets/git/builtin/update-index.c:40:1: warning: replace macro with enum [modernize-macro-to-enum]
#define MARK_FLAG 1
^~~~~~~~
                  =,
/datasets/git/builtin/update-index.c:40:9: warning: macro 'MARK_FLAG' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define MARK_FLAG 1
        ^
/datasets/git/builtin/update-index.c:41:9: warning: macro 'UNMARK_FLAG' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define UNMARK_FLAG 2
        ^
/datasets/git/builtin/update-index.c:42:22: warning: variable 'mtime_dir' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct strbuf mtime_dir = STRBUF_INIT;
                     ^
/datasets/git/builtin/update-index.c:42:22: warning: initializing non-local variable with non-const expression depending on uninitialized non-local variable 'strbuf_slopbuf' [cppcoreguidelines-interfaces-global-init]
/datasets/git/builtin/update-index.c:56:10: warning: variable name 'vp' is too short, expected at least 3 characters [readability-identifier-length]
        va_list vp;
                ^
/datasets/git/builtin/update-index.c:58:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!verbose)
                     ^
                      {
/datasets/git/builtin/update-index.c:70:2: warning: Function 'vprintf' is called with an uninitialized va_list argument [clang-analyzer-valist.Uninitialized]
        vprintf(fmt, vp);
        ^~~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:58:6: note: Assuming 'verbose' is not equal to 0
        if (!verbose)
            ^~~~~~~~
/datasets/git/builtin/update-index.c:58:2: note: Taking false branch
        if (!verbose)
        ^
/datasets/git/builtin/update-index.c:70:2: note: Function 'vprintf' is called with an uninitialized va_list argument
        vprintf(fmt, vp);
        ^~~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:77:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mtime_dir.len)
                          ^
                           {
/datasets/git/builtin/update-index.c:83:23: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        static struct strbuf sb = STRBUF_INIT;
                             ^
/datasets/git/builtin/update-index.c:92:18: warning: 0700 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (mkdir(path, 0700))
                        ^
/datasets/git/builtin/update-index.c:92:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mkdir(path, 0700))
                              ^
                               {
/datasets/git/builtin/update-index.c:96:41: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
static int xstat_mtime_dir(struct stat *st)
                                        ^
/datasets/git/builtin/update-index.c:98:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (stat(mtime_dir.buf, st))
                                    ^
                                     {
/datasets/git/builtin/update-index.c:105:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/builtin/update-index.c:105:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/update-index.c:107:37: warning: 0644 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        fd = xopen(path, O_CREAT | O_RDWR, 0644);
                                           ^
/datasets/git/builtin/update-index.c:114:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unlink(path))
                         ^
                          {
/datasets/git/builtin/update-index.c:121:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (rmdir(path))
                        ^
                         {
/datasets/git/builtin/update-index.c:132:2: warning: function is not thread safe [concurrency-mt-unsafe]
        sleep(1);
        ^
/datasets/git/builtin/update-index.c:137:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/builtin/update-index.c:139:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int fd, ret = 0;
        ^~~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:139:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd, ret = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/update-index.c:139:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/update-index.c:140:8: warning: variable 'cwd' is not initialized [cppcoreguidelines-init-variables]
        char *cwd;
              ^
                  = NULL
/datasets/git/builtin/update-index.c:143:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!mkdtemp(mtime_dir.buf))
                                    ^
                                     {
/datasets/git/builtin/update-index.c:147:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(stderr, _("Testing mtime in '%s' "), cwd);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:147:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/update-index.c:150:2: warning: the value returned by this function should be used [cert-err33-c]
        atexit(remove_test_directory);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:150:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/update-index.c:153:2: warning: the value returned by this function should be used [cert-err33-c]
        fputc('.', stderr);
        ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:153:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/update-index.c:160:3: warning: the value returned by this function should be used [cert-err33-c]
                fputc('\n', stderr);
                ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:160:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/update-index.c:166:2: warning: the value returned by this function should be used [cert-err33-c]
        fputc('.', stderr);
        ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:166:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/update-index.c:173:3: warning: the value returned by this function should be used [cert-err33-c]
                fputc('\n', stderr);
                ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:173:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/update-index.c:179:2: warning: the value returned by this function should be used [cert-err33-c]
        fputc('.', stderr);
        ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:179:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/update-index.c:186:3: warning: the value returned by this function should be used [cert-err33-c]
                fputc('\n', stderr);
                ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:186:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/update-index.c:191:2: warning: the value returned by this function should be used [cert-err33-c]
        fputc('.', stderr);
        ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:191:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/update-index.c:197:3: warning: the value returned by this function should be used [cert-err33-c]
                fputc('\n', stderr);
                ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:197:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/update-index.c:202:2: warning: the value returned by this function should be used [cert-err33-c]
        fputc('.', stderr);
        ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:202:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/update-index.c:208:3: warning: the value returned by this function should be used [cert-err33-c]
                fputc('\n', stderr);
                ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:208:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/update-index.c:214:2: warning: the value returned by this function should be used [cert-err33-c]
        fputc('.', stderr);
        ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:214:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/update-index.c:221:3: warning: the value returned by this function should be used [cert-err33-c]
                fputc('\n', stderr);
                ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:221:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/update-index.c:227:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (rmdir(mtime_dir.buf))
                                 ^
                                  {
/datasets/git/builtin/update-index.c:237:44: warning: 2 adjacent parameters of 'mark_ce_flags' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int mark_ce_flags(const char *path, int flag, int mark)
                                           ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:237:48: note: the first parameter in the range is 'flag'
static int mark_ce_flags(const char *path, int flag, int mark)
                                               ^~~~
/datasets/git/builtin/update-index.c:237:58: note: the last parameter in the range is 'mark'
static int mark_ce_flags(const char *path, int flag, int mark)
                                                         ^~~~
/datasets/git/builtin/update-index.c:239:16: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int namelen = strlen(path);
                      ^
/datasets/git/builtin/update-index.c:243:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (mark)
                         ^
                          {
/datasets/git/builtin/update-index.c:244:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        the_index.cache[pos]->ce_flags |= flag;
                        ^                                 ~~~~
/datasets/git/builtin/update-index.c:245:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/update-index.c:246:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        the_index.cache[pos]->ce_flags &= ~flag;
                        ^                                 ~~~~~
/datasets/git/builtin/update-index.c:246:38: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                        the_index.cache[pos]->ce_flags &= ~flag;
                                                          ^~~~~
/datasets/git/builtin/update-index.c:247:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                the_index.cache[pos]->ce_flags |= CE_UPDATE_IN_BASE;
                ^
/datasets/git/builtin/update-index.c:247:37: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                the_index.cache[pos]->ce_flags |= CE_UPDATE_IN_BASE;
                                                  ^
/datasets/git/./refs/../cache.h:183:31: note: expanded from macro 'CE_UPDATE_IN_BASE'
#define CE_UPDATE_IN_BASE    (1 << 27)
                              ^
/datasets/git/builtin/update-index.c:249:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                the_index.cache_changed |= CE_ENTRY_CHANGED;
                ^
/datasets/git/builtin/update-index.c:249:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                the_index.cache_changed |= CE_ENTRY_CHANGED;
                                           ^
/datasets/git/./refs/../cache.h:299:27: note: expanded from macro 'CE_ENTRY_CHANGED'
#define CE_ENTRY_CHANGED        (1 << 1)
                                 ^
/datasets/git/builtin/update-index.c:257:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!allow_remove)
                          ^
                           {
/datasets/git/builtin/update-index.c:259:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (remove_file_from_index(&the_index, path))
                                                     ^
                                                      {
/datasets/git/builtin/update-index.c:273:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_missing_file_error(err))
                                       ^
                                        {
/datasets/git/builtin/update-index.c:275:42: warning: function is not thread safe [concurrency-mt-unsafe]
        return error("lstat(\"%s\"): %s", path, strerror(err));
                                                ^
/datasets/git/builtin/update-index.c:278:96: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
static int add_one_path(const struct cache_entry *old, const char *path, int len, struct stat *st)
                                                                                               ^
/datasets/git/builtin/update-index.c:280:6: warning: variable 'option' is not initialized [cppcoreguidelines-init-variables]
        int option;
            ^
                   = 0
/datasets/git/builtin/update-index.c:281:22: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
        struct cache_entry *ce;
                            ^
                               = NULL
/datasets/git/builtin/update-index.c:281:22: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/update-index.c:284:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (old && !ce_stage(old) && !ie_match_stat(&the_index, old, st, 0))
                    ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:284:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (old && !ce_stage(old) && !ie_match_stat(&the_index, old, st, 0))
                                                                            ^
                                                                             {
/datasets/git/builtin/update-index.c:288:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(ce->name, path, len);
        ^~~~~~
/datasets/git/builtin/update-index.c:288:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(ce->name, path, len);
        ^~~~~~
/datasets/git/builtin/update-index.c:300:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        option |= allow_replace ? ADD_CACHE_OK_TO_REPLACE : 0;
        ^~~~~~
/datasets/git/builtin/update-index.c:331:70: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
static int process_directory(const char *path, int len, struct stat *st)
                                                                     ^
/datasets/git/builtin/update-index.c:334:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int pos = index_name_pos(&the_index, path, len);
        ^
/datasets/git/builtin/update-index.c:338:29: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                const struct cache_entry *ce = the_index.cache[pos];
                                          ^
/datasets/git/builtin/update-index.c:339:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (S_ISGITLINK(ce->ce_mode)) {
                    ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/builtin/update-index.c:342:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (resolve_gitlink_ref(path, "HEAD", &oid) < 0)
                                                                        ^
                                                                         {
/datasets/git/builtin/update-index.c:353:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (pos < the_index.cache_nr) {
        ^
/datasets/git/builtin/update-index.c:353:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'pos' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (pos < the_index.cache_nr) {
               ^
/datasets/git/builtin/update-index.c:354:29: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                const struct cache_entry *ce = the_index.cache[pos++];
                                          ^
/datasets/git/builtin/update-index.c:356:7: warning: function 'strncmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (strncmp(ce->name, path, len))
                    ^
                                                 != 0
/datasets/git/builtin/update-index.c:356:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strncmp(ce->name, path, len))
                                                 ^
                                                  {
/datasets/git/builtin/update-index.c:358:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ce->name[len] > '/')
                                        ^
                                         {
/datasets/git/builtin/update-index.c:360:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ce->name[len] < '/')
                                        ^
                                         {
/datasets/git/builtin/update-index.c:368:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!resolve_gitlink_ref(path, "HEAD", &oid))
                                                     ^
                                                      {
/datasets/git/builtin/update-index.c:375:56: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
static int process_path(const char *path, struct stat *st, int stat_errno)
                                                       ^
/datasets/git/builtin/update-index.c:377:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int pos, len;
        ^~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:377:6: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        int pos, len;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/update-index.c:377:11: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int pos, len;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/update-index.c:378:28: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
        const struct cache_entry *ce;
                                  ^
                                     = NULL
/datasets/git/builtin/update-index.c:378:28: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/update-index.c:380:8: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        len = strlen(path);
              ^
/datasets/git/builtin/update-index.c:381:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (has_symlink_leading_path(path, len))
                                                ^
                                                 {
/datasets/git/builtin/update-index.c:386:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (ce && ce_skip_worktree(ce)) {
                  ^
/datasets/git/./refs/../cache.h:244:31: note: expanded from macro 'ce_skip_worktree'
#define ce_skip_worktree(ce) ((ce)->ce_flags & CE_SKIP_WORKTREE)
                              ^                ~~~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:393:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    remove_file_from_index(&the_index, path))
                                                             ^
                                                              {
/datasets/git/builtin/update-index.c:402:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (stat_errno)
                       ^
                        {
/datasets/git/builtin/update-index.c:405:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (S_ISDIR(st->st_mode))
                                 ^
                                  {
/datasets/git/builtin/update-index.c:414:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int len, option;
        ^~~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:414:6: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int len, option;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/update-index.c:414:11: warning: variable 'option' is not initialized [cppcoreguidelines-init-variables]
        int len, option;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/update-index.c:415:22: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
        struct cache_entry *ce;
                            ^
                               = NULL
/datasets/git/builtin/update-index.c:415:22: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/update-index.c:417:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!verify_path(path, mode))
                                     ^
                                      {
/datasets/git/builtin/update-index.c:420:8: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        len = strlen(path);
              ^
/datasets/git/builtin/update-index.c:424:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(ce->name, path, len);
        ^~~~~~
/datasets/git/builtin/update-index.c:424:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(ce->name, path, len);
        ^~~~~~
/datasets/git/builtin/update-index.c:428:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (assume_unchanged)
                             ^
                              {
/datasets/git/builtin/update-index.c:429:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ce->ce_flags |= CE_VALID;
                ^
/datasets/git/builtin/update-index.c:431:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        option |= allow_replace ? ADD_CACHE_OK_TO_REPLACE : 0;
        ^~~~~~
/datasets/git/builtin/update-index.c:432:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (add_index_entry(&the_index, ce, option))
                                                    ^
                                                     {
/datasets/git/builtin/update-index.c:441:6: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        int pos;
            ^
                = 0
/datasets/git/builtin/update-index.c:442:22: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
        struct cache_entry *ce;
                            ^
                               = NULL
/datasets/git/builtin/update-index.c:442:22: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/update-index.c:444:41: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        pos = index_name_pos(&the_index, path, strlen(path));
                                               ^
/datasets/git/builtin/update-index.c:445:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pos < 0)
                    ^
                     {
/datasets/git/builtin/update-index.c:448:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (chmod_index_entry(&the_index, ce, flip) < 0)
                                                        ^
                                                         {
/datasets/git/builtin/update-index.c:460:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/builtin/update-index.c:463:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            mark_fsmonitor_only)
                                ^
                                 {
/datasets/git/builtin/update-index.c:471:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "Ignoring path %s\n", path);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:471:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/update-index.c:475:67: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (mark_ce_flags(path, CE_VALID, mark_valid_only == MARK_FLAG))
                                                                                ^
                                                                                 {
/datasets/git/builtin/update-index.c:480:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (mark_ce_flags(path, CE_SKIP_WORKTREE, mark_skip_worktree_only == MARK_FLAG))
                                        ^
/datasets/git/./refs/../cache.h:190:31: note: expanded from macro 'CE_SKIP_WORKTREE'
#define CE_SKIP_WORKTREE     (1 << 30)
                              ^
/datasets/git/builtin/update-index.c:480:83: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (mark_ce_flags(path, CE_SKIP_WORKTREE, mark_skip_worktree_only == MARK_FLAG))
                                                                                                ^
                                                                                                 {
/datasets/git/builtin/update-index.c:485:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (mark_ce_flags(path, CE_FSMONITOR_VALID, mark_fsmonitor_only == MARK_FLAG))
                                        ^
/datasets/git/./refs/../cache.h:173:31: note: expanded from macro 'CE_FSMONITOR_VALID'
#define CE_FSMONITOR_VALID   (1 << 21)
                              ^
/datasets/git/builtin/update-index.c:485:81: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (mark_ce_flags(path, CE_FSMONITOR_VALID, mark_fsmonitor_only == MARK_FLAG))
                                                                                              ^
                                                                                               {
/datasets/git/builtin/update-index.c:491:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (remove_file_from_index(&the_index, path))
                                                             ^
                                                              {
/datasets/git/builtin/update-index.c:496:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (process_path(path, &st, stat_errno))
                                                ^
                                                 {
/datasets/git/builtin/update-index.c:501:13: warning: function 'read_index_info' has cognitive complexity of 32 (threshold 25) [readability-function-cognitive-complexity]
static void read_index_info(int nul_term_line)
            ^
/datasets/git/builtin/update-index.c:508:29: note: +1, including nesting penalty of 0, nesting level increased to 1
        getline_fn = nul_term_line ? strbuf_getline_nul : strbuf_getline_lf;
                                   ^
/datasets/git/builtin/update-index.c:509:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (getline_fn(&buf, stdin) != EOF) {
        ^
/datasets/git/builtin/update-index.c:535:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ptr == buf.buf || *ptr != ' '
                ^
/datasets/git/builtin/update-index.c:536:16: note: +1
                    || errno || (unsigned int) ul != ul)
                             ^
/datasets/git/builtin/update-index.c:541:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!tab || tab - ptr < hexsz + 1)
                ^
/datasets/git/builtin/update-index.c:541:12: note: +1
                if (!tab || tab - ptr < hexsz + 1)
                         ^
/datasets/git/builtin/update-index.c:544:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (tab[-2] == ' ' && '0' <= tab[-1] && tab[-1] <= '3') {
                ^
/datasets/git/builtin/update-index.c:544:40: note: +1
                if (tab[-2] == ' ' && '0' <= tab[-1] && tab[-1] <= '3') {
                                                     ^
/datasets/git/builtin/update-index.c:549:3: note: +1, nesting level increased to 2
                else {
                ^
/datasets/git/builtin/update-index.c:554:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (get_oid_hex(tab - hexsz, &oid) ||
                ^
/datasets/git/builtin/update-index.c:554:38: note: +1
                if (get_oid_hex(tab - hexsz, &oid) ||
                                                   ^
/datasets/git/builtin/update-index.c:559:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!nul_term_line && path_name[0] == '"') {
                ^
/datasets/git/builtin/update-index.c:559:22: note: +1
                if (!nul_term_line && path_name[0] == '"') {
                                   ^
/datasets/git/builtin/update-index.c:561:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (unquote_c_style(&uq, path_name, NULL)) {
                        ^
/datasets/git/builtin/update-index.c:567:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!verify_path(path_name, mode)) {
                ^
/datasets/git/builtin/update-index.c:572:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!mode) {
                ^
/datasets/git/builtin/update-index.c:574:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (remove_file_from_index(&the_index, path_name))
                        ^
/datasets/git/builtin/update-index.c:578:3: note: +1, nesting level increased to 2
                else {
                ^
/datasets/git/builtin/update-index.c:584:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (add_cacheinfo(mode, &oid, path_name, stage))
                        ^
/datasets/git/builtin/update-index.c:506:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        strbuf_getline_fn getline_fn;
        ^
/datasets/git/builtin/update-index.c:505:16: warning: variable name 'uq' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf uq = STRBUF_INIT;
                      ^
/datasets/git/builtin/update-index.c:506:20: warning: variable 'getline_fn' is not initialized [cppcoreguidelines-init-variables]
        strbuf_getline_fn getline_fn;
                          ^
                                     = NULL
/datasets/git/builtin/update-index.c:509:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (getline_fn(&buf, stdin) != EOF) {
        ^
/datasets/git/builtin/update-index.c:509:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'getline_fn' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (getline_fn(&buf, stdin) != EOF) {
               ^
/datasets/git/builtin/update-index.c:510:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                char *ptr, *tab;
                ^~~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:510:9: warning: variable 'ptr' is not initialized [cppcoreguidelines-init-variables]
                char *ptr, *tab;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/update-index.c:510:15: warning: variable 'tab' is not initialized [cppcoreguidelines-init-variables]
                char *ptr, *tab;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/update-index.c:511:9: warning: variable 'path_name' is not initialized [cppcoreguidelines-init-variables]
                char *path_name;
                      ^
                                = NULL
/datasets/git/builtin/update-index.c:513:16: warning: variable 'mode' is not initialized [cppcoreguidelines-init-variables]
                unsigned int mode;
                             ^
                                  = 0
/datasets/git/builtin/update-index.c:514:17: warning: variable 'ul' is not initialized [cppcoreguidelines-init-variables]
                unsigned long ul;
                              ^
                                 = 0
/datasets/git/builtin/update-index.c:514:17: warning: variable name 'ul' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/update-index.c:515:7: warning: variable 'stage' is not initialized [cppcoreguidelines-init-variables]
                int stage;
                    ^
                          = 0
/datasets/git/builtin/update-index.c:534:31: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                ul = strtoul(buf.buf, &ptr, 8);
                                            ^
/datasets/git/builtin/update-index.c:536:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    || errno || (unsigned int) ul != ul)
                                                        ^
                                                         {
/datasets/git/builtin/update-index.c:541:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!tab || tab - ptr < hexsz + 1)
                                                  ^
                                                   {
/datasets/git/builtin/update-index.c:555:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        tab[-(hexsz + 1)] != ' ')
                                                 ^
                                                  {
/datasets/git/builtin/update-index.c:568:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, "Ignoring path %s\n", path_name);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:568:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/update-index.c:574:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (remove_file_from_index(&the_index, path_name))
                                                                          ^
                                                                           {
/datasets/git/builtin/update-index.c:584:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (add_cacheinfo(mode, &oid, path_name, stage))
                                                                        ^
                                                                         {
/datasets/git/builtin/update-index.c:602:25: warning: variable 'head_oid' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct object_id head_oid;
                        ^
/datasets/git/builtin/update-index.c:603:25: warning: variable 'merge_head_oid' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct object_id merge_head_oid;
                        ^
/datasets/git/builtin/update-index.c:607:6: warning: 2 adjacent parameters of 'read_one_ent' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                        int namelen, int stage)
                                        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:607:10: note: the first parameter in the range is 'namelen'
                                        int namelen, int stage)
                                            ^~~~~~~
/datasets/git/builtin/update-index.c:607:23: note: the last parameter in the range is 'stage'
                                        int namelen, int stage)
                                                         ^~~~~
/datasets/git/builtin/update-index.c:609:17: warning: variable 'mode' is not initialized [cppcoreguidelines-init-variables]
        unsigned short mode;
                       ^
                            = 0
/datasets/git/builtin/update-index.c:611:22: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
        struct cache_entry *ce;
                            ^
                               = NULL
/datasets/git/builtin/update-index.c:611:22: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/update-index.c:614:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (which)
                          ^
                           {
/datasets/git/builtin/update-index.c:619:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (which)
                          ^
                           {
/datasets/git/builtin/update-index.c:626:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(ce->name, path, namelen);
        ^~~~~~
/datasets/git/builtin/update-index.c:626:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(ce->name, path, namelen);
        ^~~~~~
/datasets/git/builtin/update-index.c:635:16: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int namelen = strlen(path);
                      ^
/datasets/git/builtin/update-index.c:636:6: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        int pos;
            ^
                = 0
/datasets/git/builtin/update-index.c:638:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct cache_entry *ce_2 = NULL, *ce_3 = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:646:30: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                        const struct cache_entry *ce = the_index.cache[pos];
                                                  ^
/datasets/git/builtin/update-index.c:647:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (ce_stage(ce) &&
                            ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:649:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            !memcmp(ce->name, path, namelen))
                                                             ^
                                                              {
/datasets/git/builtin/update-index.c:660:30: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                        const struct cache_entry *ce = the_index.cache[pos];
                                                  ^
/datasets/git/builtin/update-index.c:663:5: warning: the value returned by this function should be used [cert-err33-c]
                                fprintf(stderr,
                                ^~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:663:5: note: cast the expression to void to silence this warning
/datasets/git/builtin/update-index.c:684:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "%s: identical in both, skipping.\n",
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:684:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/update-index.c:695:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!add_index_entry(&the_index, ce_3, ADD_CACHE_OK_TO_ADD))
                                                                    ^
                                                                     {
/datasets/git/builtin/update-index.c:707:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (read_ref("HEAD", &head_oid))
                                        ^
                                         {
/datasets/git/builtin/update-index.c:710:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "Not in the middle of a merge.\n");
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:710:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/update-index.c:711:3: warning: function is not thread safe [concurrency-mt-unsafe]
                exit(0);
                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/update-index.c:715:29: warning: parameter name 'ac' is too short, expected at least 3 characters [readability-identifier-length]
static int do_unresolve(int ac, const char **av,
                            ^
/datasets/git/builtin/update-index.c:715:46: warning: parameter name 'av' is too short, expected at least 3 characters [readability-identifier-length]
static int do_unresolve(int ac, const char **av,
                                             ^
/datasets/git/builtin/update-index.c:718:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/update-index.c:718:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/update-index.c:726:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 1; i < ac; i++) {
        ^
/datasets/git/builtin/update-index.c:728:9: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                char *p = prefix_path(prefix, prefix_length, arg);
                      ^
/datasets/git/builtin/update-index.c:729:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                err |= unresolve_one(p);
                ^~~
/datasets/git/builtin/update-index.c:741:6: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        int pos;
            ^
                = 0
/datasets/git/builtin/update-index.c:746:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_PREFER_CWD,
                       ^
/datasets/git/./pathspec.h:65:30: note: expanded from macro 'PATHSPEC_PREFER_CWD'
#define PATHSPEC_PREFER_CWD (1<<0) /* No args means match cwd */
                             ^
/datasets/git/builtin/update-index.c:749:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (read_ref("HEAD", &head_oid))
                                        ^
                                         {
/datasets/git/builtin/update-index.c:755:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (pos = 0; pos < the_index.cache_nr; pos++) {
        ^
/datasets/git/builtin/update-index.c:756:29: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                const struct cache_entry *ce = the_index.cache[pos];
                                          ^
/datasets/git/builtin/update-index.c:758:7: warning: variable 'save_nr' is not initialized [cppcoreguidelines-init-variables]
                int save_nr;
                    ^
                            = 0
/datasets/git/builtin/update-index.c:759:9: warning: variable 'path' is not initialized [cppcoreguidelines-init-variables]
                char *path;
                      ^
                           = NULL
/datasets/git/builtin/update-index.c:761:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce_stage(ce) || !ce_path_match(&the_index, ce, &pathspec, NULL))
                    ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:761:71: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ce_stage(ce) || !ce_path_match(&the_index, ce, &pathspec, NULL))
                                                                                    ^
                                                                                     {
/datasets/git/builtin/update-index.c:763:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (has_head)
                             ^
                              {
/datasets/git/builtin/update-index.c:785:13: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                save_nr = the_index.cache_nr;
                          ^
/datasets/git/builtin/update-index.c:790:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (save_nr != the_index.cache_nr)
                                                  ^
                                                   {
/datasets/git/builtin/update-index.c:797:8: warning: accessing fields in struct 'refresh_params' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct refresh_params {
       ^
/datasets/git/builtin/update-index.c:797:8: note: use "__attribute__((aligned(16)))" to align struct 'refresh_params' to 16 bytes
/datasets/git/builtin/update-index.c:802:43: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static int refresh(struct refresh_params *o, unsigned int flag)
                                          ^
/datasets/git/builtin/update-index.c:806:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        *o->has_errors |= refresh_index(&the_index, o->flags | flag, NULL,
        ^~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:817:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                the_index.cache_changed |= SOMETHING_CHANGED;
                ^
/datasets/git/builtin/update-index.c:817:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                the_index.cache_changed |= SOMETHING_CHANGED;
                                           ^
/datasets/git/./refs/../cache.h:298:28: note: expanded from macro 'SOMETHING_CHANGED'
#define SOMETHING_CHANGED       (1 << 0) /* unclassified changes go here */
                                 ^
/datasets/git/builtin/update-index.c:825:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/update-index.c:826:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_ARG(arg);
        ^
/datasets/git/./parse-options.h:288:29: note: expanded from macro 'BUG_ON_OPT_ARG'
#define BUG_ON_OPT_ARG(arg) do { \
                            ^
/datasets/git/builtin/update-index.c:833:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/update-index.c:834:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_ARG(arg);
        ^
/datasets/git/./parse-options.h:288:29: note: expanded from macro 'BUG_ON_OPT_ARG'
#define BUG_ON_OPT_ARG(arg) do { \
                            ^
/datasets/git/builtin/update-index.c:835:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return refresh(opt->value, REFRESH_REALLY);
                                   ^
/datasets/git/./refs/../cache.h:921:43: note: expanded from macro 'REFRESH_REALLY'
#define REFRESH_REALLY                   (1 << 0) /* ignore_valid */
                                          ^
/datasets/git/builtin/update-index.c:842:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/update-index.c:843:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((arg[0] != '-' && arg[0] != '+') || arg[1] != 'x' || arg[2])
                                                                        ^
                                                                         {
/datasets/git/builtin/update-index.c:849:61: warning: parameter 'opt' is unused [misc-unused-parameters]
static int resolve_undo_clear_callback(const struct option *opt,
                                                            ^
/datasets/git/builtin/update-index.c:852:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/update-index.c:853:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_ARG(arg);
        ^
/datasets/git/./parse-options.h:288:29: note: expanded from macro 'BUG_ON_OPT_ARG'
#define BUG_ON_OPT_ARG(arg) do { \
                            ^
/datasets/git/builtin/update-index.c:863:16: warning: variable 'ul' is not initialized [cppcoreguidelines-init-variables]
        unsigned long ul;
                      ^
                         = 0
/datasets/git/builtin/update-index.c:863:16: warning: variable name 'ul' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/update-index.c:864:8: warning: variable 'endp' is not initialized [cppcoreguidelines-init-variables]
        char *endp;
              ^
                   = NULL
/datasets/git/builtin/update-index.c:865:14: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        const char *p;
                    ^
                      = NULL
/datasets/git/builtin/update-index.c:865:14: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/update-index.c:867:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!arg)
                 ^
                  {
/datasets/git/builtin/update-index.c:871:27: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        ul = strtoul(arg, &endp, 8);
                                 ^
/datasets/git/builtin/update-index.c:872:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (errno || endp == arg || *endp != ',' || (unsigned int) ul != ul)
                                                                            ^
                                                                             {
/datasets/git/builtin/update-index.c:876:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_oid_hex(endp, oid, &p) || *p != ',')
                                                      ^
                                                       {
/datasets/git/builtin/update-index.c:883:52: warning: parameter 'opt' is unused [misc-unused-parameters]
        struct parse_opt_ctx_t *ctx, const struct option *opt,
                                                          ^
/datasets/git/builtin/update-index.c:887:15: warning: variable 'mode' is not initialized [cppcoreguidelines-init-variables]
        unsigned int mode;
                     ^
                          = 0
/datasets/git/builtin/update-index.c:888:14: warning: variable 'path' is not initialized [cppcoreguidelines-init-variables]
        const char *path;
                    ^
                         = NULL
/datasets/git/builtin/update-index.c:890:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/update-index.c:891:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_ARG(arg);
        ^
/datasets/git/./parse-options.h:288:29: note: expanded from macro 'BUG_ON_OPT_ARG'
#define BUG_ON_OPT_ARG(arg) do { \
                            ^
/datasets/git/builtin/update-index.c:894:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (add_cacheinfo(mode, &oid, path, 0))
                                                       ^
                                                        {
/datasets/git/builtin/update-index.c:900:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ctx->argc <= 3)
                           ^
                            {
/datasets/git/builtin/update-index.c:902:31: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (strtoul_ui(*++ctx->argv, 8, &mode) ||
                                     ^
/datasets/git/builtin/update-index.c:904:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            add_cacheinfo(mode, &oid, *++ctx->argv, 0))
                                                       ^
                                                        {
/datasets/git/builtin/update-index.c:916:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/update-index.c:917:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_ARG(arg);
        ^
/datasets/git/./parse-options.h:288:29: note: expanded from macro 'BUG_ON_OPT_ARG'
#define BUG_ON_OPT_ARG(arg) do { \
                            ^
/datasets/git/builtin/update-index.c:919:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ctx->argc != 1)
                           ^
                            {
/datasets/git/builtin/update-index.c:932:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/update-index.c:933:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_ARG(arg);
        ^
/datasets/git/./parse-options.h:288:29: note: expanded from macro 'BUG_ON_OPT_ARG'
#define BUG_ON_OPT_ARG(arg) do { \
                            ^
/datasets/git/builtin/update-index.c:935:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ctx->argc != 1)
                           ^
                            {
/datasets/git/builtin/update-index.c:948:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/update-index.c:949:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_ARG(arg);
        ^
/datasets/git/./parse-options.h:288:29: note: expanded from macro 'BUG_ON_OPT_ARG'
#define BUG_ON_OPT_ARG(arg) do { \
                            ^
/datasets/git/builtin/update-index.c:953:22: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                prefix, prefix ? strlen(prefix) : 0);
                                                 ^
/datasets/git/builtin/update-index.c:954:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*has_errors)
                        ^
                         {
/datasets/git/builtin/update-index.c:969:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/builtin/update-index.c:970:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_ARG(arg);
        ^
/datasets/git/./parse-options.h:288:29: note: expanded from macro 'BUG_ON_OPT_ARG'
#define BUG_ON_OPT_ARG(arg) do { \
                            ^
/datasets/git/builtin/update-index.c:975:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*has_errors)
                        ^
                         {
/datasets/git/builtin/update-index.c:983:5: warning: function 'cmd_update_index' has cognitive complexity of 72 (threshold 25) [readability-function-cognitive-complexity]
int cmd_update_index(int argc, const char **argv, const char *prefix)
    ^
/datasets/git/builtin/update-index.c:988:29: note: +1, including nesting penalty of 0, nesting level increased to 1
        int prefix_length = prefix ? strlen(prefix) : 0;
                                   ^
/datasets/git/builtin/update-index.c:1104:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (argc == 2 && !strcmp(argv[1], "-h"))
        ^
/datasets/git/builtin/update-index.c:1104:16: note: +1
        if (argc == 2 && !strcmp(argv[1], "-h"))
                      ^
/datasets/git/builtin/update-index.c:1114:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (newfd < 0)
        ^
/datasets/git/builtin/update-index.c:1118:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (entries < 0)
        ^
/datasets/git/builtin/update-index.c:1135:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (ctx.argc) {
        ^
/datasets/git/builtin/update-index.c:1136:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (parseopt_state != PARSE_OPT_DONE)
                ^
/datasets/git/builtin/update-index.c:1139:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!ctx.argc)
                ^
/datasets/git/builtin/update-index.c:1141:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                switch (parseopt_state) {
                ^
/datasets/git/builtin/update-index.c:1156:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (set_executable_bit)
                        ^
/datasets/git/builtin/update-index.c:1164:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ctx.argv[0][1] == '-')
                        ^
/datasets/git/builtin/update-index.c:1166:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/builtin/update-index.c:1173:29: note: +1, including nesting penalty of 0, nesting level increased to 1
        getline_fn = nul_term_line ? strbuf_getline_nul : strbuf_getline_lf;
                                   ^
/datasets/git/builtin/update-index.c:1174:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (preferred_index_format) {
        ^
/datasets/git/builtin/update-index.c:1175:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (preferred_index_format < INDEX_FORMAT_LB ||
                ^
/datasets/git/builtin/update-index.c:1175:48: note: +1
                if (preferred_index_format < INDEX_FORMAT_LB ||
                                                             ^
/datasets/git/builtin/update-index.c:1181:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (the_index.version != preferred_index_format)
                ^
/datasets/git/builtin/update-index.c:1186:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (read_from_stdin) {
        ^
/datasets/git/builtin/update-index.c:1191:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (getline_fn(&buf, stdin) != EOF) {
                ^
/datasets/git/builtin/update-index.c:1193:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!nul_term_line && buf.buf[0] == '"') {
                        ^
/datasets/git/builtin/update-index.c:1193:23: note: +1
                        if (!nul_term_line && buf.buf[0] == '"') {
                                           ^
/datasets/git/builtin/update-index.c:1195:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (unquote_c_style(&unquoted, buf.buf, NULL))
                                ^
/datasets/git/builtin/update-index.c:1201:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (set_executable_bit)
                        ^
/datasets/git/builtin/update-index.c:1214:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (split_index > 0) {
        ^
/datasets/git/builtin/update-index.c:1215:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (git_config_get_split_index() == 0)
                ^
/datasets/git/builtin/update-index.c:1219:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (the_index.split_index)
                ^
/datasets/git/builtin/update-index.c:1221:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/builtin/update-index.c:1223:9: note: +1, nesting level increased to 1
        } else if (!split_index) {
               ^
/datasets/git/builtin/update-index.c:1224:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (git_config_get_split_index() == 1)
                ^
/datasets/git/builtin/update-index.c:1232:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        switch (untracked_cache) {
        ^
/datasets/git/builtin/update-index.c:1236:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (r->settings.core_untracked_cache == UNTRACKED_CACHE_WRITE)
                ^
/datasets/git/builtin/update-index.c:1248:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (r->settings.core_untracked_cache == UNTRACKED_CACHE_REMOVE)
                ^
/datasets/git/builtin/update-index.c:1259:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (fsmonitor > 0) {
        ^
/datasets/git/builtin/update-index.c:1273:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (reason > FSMONITOR_REASON_OK)
                ^
/datasets/git/builtin/update-index.c:1277:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (fsm_mode == FSMONITOR_MODE_DISABLED) {
                ^
/datasets/git/builtin/update-index.c:1284:9: note: +1, nesting level increased to 1
        } else if (!fsmonitor) {
               ^
/datasets/git/builtin/update-index.c:1286:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (fsm_mode > FSMONITOR_MODE_DISABLED)
                ^
/datasets/git/builtin/update-index.c:1294:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (the_index.cache_changed || force_write) {
        ^
/datasets/git/builtin/update-index.c:1294:30: note: +1
        if (the_index.cache_changed || force_write) {
                                    ^
/datasets/git/builtin/update-index.c:1295:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (newfd < 0) {
                ^
/datasets/git/builtin/update-index.c:1296:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (refresh_args.flags & REFRESH_QUIET)
                        ^
/datasets/git/builtin/update-index.c:1300:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (write_locked_index(&the_index, &lock_file, COMMIT_LOCK))
                ^
/datasets/git/builtin/update-index.c:1306:20: note: +1, including nesting penalty of 0, nesting level increased to 1
        return has_errors ? 1 : 0;
                          ^
/datasets/git/builtin/update-index.c:985:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int newfd, entries, has_errors = 0, nul_term_line = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:985:6: warning: variable 'newfd' is not initialized [cppcoreguidelines-init-variables]
        int newfd, entries, has_errors = 0, nul_term_line = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/update-index.c:985:13: warning: variable 'entries' is not initialized [cppcoreguidelines-init-variables]
        int newfd, entries, has_errors = 0, nul_term_line = 0;
                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/update-index.c:988:31: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int prefix_length = prefix ? strlen(prefix) : 0;
                                     ^
/datasets/git/builtin/update-index.c:998:20: warning: variable 'getline_fn' is not initialized [cppcoreguidelines-init-variables]
        strbuf_getline_fn getline_fn;
                          ^
                                     = NULL
/datasets/git/builtin/update-index.c:1000:21: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        struct repository *r = the_repository;
                           ^
/datasets/git/builtin/update-index.c:1002:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT('q', NULL, &refresh_args.flags,
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:1004:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        REFRESH_QUIET),
                        ^
/datasets/git/./refs/../cache.h:923:43: note: expanded from macro 'REFRESH_QUIET'
#define REFRESH_QUIET                    (1 << 2) /* be quiet about it */
                                          ^
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/update-index.c:1005:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT(0, "ignore-submodules", &refresh_args.flags,
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:1007:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        REFRESH_IGNORE_SUBMODULES),
                        ^
/datasets/git/./refs/../cache.h:925:43: note: expanded from macro 'REFRESH_IGNORE_SUBMODULES'
#define REFRESH_IGNORE_SUBMODULES        (1 << 4) /* ignore submodules */
                                          ^
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/update-index.c:1008:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT(0, "add", &allow_add,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:1010:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT(0, "replace", &allow_replace,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:1012:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT(0, "remove", &allow_remove,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:1014:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT(0, "unmerged", &refresh_args.flags,
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:1016:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        REFRESH_UNMERGED),
                        ^
/datasets/git/./refs/../cache.h:922:43: note: expanded from macro 'REFRESH_UNMERGED'
#define REFRESH_UNMERGED                 (1 << 1) /* allow unmerged */
                                          ^
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/update-index.c:1019:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        PARSE_OPT_NOARG | PARSE_OPT_NONEG,
                        ^
/datasets/git/./parse-options.h:169:47: note: expanded from macro 'OPT_CALLBACK_F'
        { OPTION_CALLBACK, (s), (l), (v), (a), (h), (f), (cb) }
                                                     ^
/datasets/git/builtin/update-index.c:1023:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        PARSE_OPT_NOARG | PARSE_OPT_NONEG,
                        ^
/datasets/git/./parse-options.h:169:47: note: expanded from macro 'OPT_CALLBACK_F'
        { OPTION_CALLBACK, (s), (l), (v), (a), (h), (f), (cb) }
                                                     ^
/datasets/git/builtin/update-index.c:1028:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        PARSE_OPT_NOARG | /* disallow --cacheinfo=<mode> form */
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:1038:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        PARSE_OPT_NOARG | PARSE_OPT_NONEG, NULL, MARK_FLAG},
                        ^~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:1041:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        PARSE_OPT_NOARG | PARSE_OPT_NONEG, NULL, UNMARK_FLAG},
                        ^~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:1044:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        PARSE_OPT_NOARG | PARSE_OPT_NONEG, NULL, MARK_FLAG},
                        ^~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:1047:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        PARSE_OPT_NOARG | PARSE_OPT_NONEG, NULL, UNMARK_FLAG},
                        ^~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:1048:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "ignore-skip-worktree-entries", &ignore_skip_worktree_entries,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:1050:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT(0, "info-only", &info_only,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:1052:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT(0, "force-remove", &force_remove,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:1054:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('z', NULL, &nul_term_line,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:1058:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        PARSE_OPT_NONEG | PARSE_OPT_NOARG,
                        ^~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:1062:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        PARSE_OPT_NONEG | PARSE_OPT_NOARG,
                        ^~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:1066:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        PARSE_OPT_NONEG | PARSE_OPT_NOARG,
                        ^~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:1070:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        PARSE_OPT_NONEG | PARSE_OPT_NOARG,
                        ^~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:1072:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT(0, "ignore-missing", &refresh_args.flags,
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:1074:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        REFRESH_IGNORE_MISSING),
                        ^
/datasets/git/./refs/../cache.h:924:43: note: expanded from macro 'REFRESH_IGNORE_MISSING'
#define REFRESH_IGNORE_MISSING           (1 << 3) /* ignore non-existent */
                                          ^
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/builtin/update-index.c:1075:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT(0, "verbose", &verbose,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:1079:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        PARSE_OPT_NOARG | PARSE_OPT_NONEG,
                        ^
/datasets/git/./parse-options.h:169:47: note: expanded from macro 'OPT_CALLBACK_F'
        { OPTION_CALLBACK, (s), (l), (v), (a), (h), (f), (cb) }
                                                     ^
/datasets/git/builtin/update-index.c:1083:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "split-index", &split_index,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:1085:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "untracked-cache", &untracked_cache,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:1087:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT(0, "test-untracked-cache", &untracked_cache,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:1089:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT(0, "force-untracked-cache", &untracked_cache,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:1091:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT(0, "force-write-index", &force_write,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:1093:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "fsmonitor", &fsmonitor,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:1097:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        PARSE_OPT_NOARG | PARSE_OPT_NONEG, NULL, MARK_FLAG},
                        ^~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:1100:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        PARSE_OPT_NOARG | PARSE_OPT_NONEG, NULL, UNMARK_FLAG},
                        ^~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:1104:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc == 2 && !strcmp(argv[1], "-h"))
                                                ^
                                                 {
/datasets/git/builtin/update-index.c:1114:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (newfd < 0)
                      ^
                       {
/datasets/git/builtin/update-index.c:1118:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (entries < 0)
                        ^
                         {
/datasets/git/builtin/update-index.c:1135:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (ctx.argc) {
        ^
/datasets/git/builtin/update-index.c:1136:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (parseopt_state != PARSE_OPT_DONE)
                                                     ^
                                                      {
/datasets/git/builtin/update-index.c:1139:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ctx.argc)
                              ^
                               {
/datasets/git/builtin/update-index.c:1141:3: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
                switch (parseopt_state) {
                ^
/datasets/git/builtin/update-index.c:1144:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        exit(129);
                        ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/update-index.c:1146:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        exit(0);
                        ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/update-index.c:1151:10: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                        char *p;
                              ^
                                = NULL
/datasets/git/builtin/update-index.c:1151:10: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/update-index.c:1156:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (set_executable_bit)
                                               ^
                                                {
/datasets/git/builtin/update-index.c:1164:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ctx.argv[0][1] == '-')
                                                  ^
                                                   {
/datasets/git/builtin/update-index.c:1166:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/builtin/update-index.c:1171:2: warning: Value stored to 'argc' is never read [clang-analyzer-deadcode.DeadStores]
        argc = parse_options_end(&ctx);
        ^      ~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:1171:2: note: Value stored to 'argc' is never read
        argc = parse_options_end(&ctx);
        ^      ~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/update-index.c:1176:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    INDEX_FORMAT_UB < preferred_index_format)
                                                             ^
                                                              {
/datasets/git/builtin/update-index.c:1181:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (the_index.version != preferred_index_format)
                                                                ^
                                                                 {
/datasets/git/builtin/update-index.c:1182:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        the_index.cache_changed |= SOMETHING_CHANGED;
                        ^
/datasets/git/builtin/update-index.c:1182:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        the_index.cache_changed |= SOMETHING_CHANGED;
                                                   ^
/datasets/git/./refs/../cache.h:298:28: note: expanded from macro 'SOMETHING_CHANGED'
#define SOMETHING_CHANGED       (1 << 0) /* unclassified changes go here */
                                 ^
/datasets/git/builtin/update-index.c:998:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        strbuf_getline_fn getline_fn;
        ^
/datasets/git/builtin/update-index.c:1191:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (getline_fn(&buf, stdin) != EOF) {
                ^
/datasets/git/builtin/update-index.c:1191:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'getline_fn' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (getline_fn(&buf, stdin) != EOF) {
                       ^
/datasets/git/builtin/update-index.c:1192:10: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                        char *p;
                              ^
                                = NULL
/datasets/git/builtin/update-index.c:1192:10: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/update-index.c:1195:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (unquote_c_style(&unquoted, buf.buf, NULL))
                                                                              ^
                                                                               {
/datasets/git/builtin/update-index.c:1201:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (set_executable_bit)
                                               ^
                                                {
/datasets/git/builtin/update-index.c:1215:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (git_config_get_split_index() == 0)
                                                      ^
                                                       {
/datasets/git/builtin/update-index.c:1219:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (the_index.split_index)
                                          ^
                                           {
/datasets/git/builtin/update-index.c:1220:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        the_index.cache_changed |= SPLIT_INDEX_ORDERED;
                        ^
/datasets/git/builtin/update-index.c:1220:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        the_index.cache_changed |= SPLIT_INDEX_ORDERED;
                                                   ^
/datasets/git/./refs/../cache.h:304:30: note: expanded from macro 'SPLIT_INDEX_ORDERED'
#define SPLIT_INDEX_ORDERED     (1 << 6)
                                 ^
/datasets/git/builtin/update-index.c:1221:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/update-index.c:1224:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (git_config_get_split_index() == 1)
                                                      ^
                                                       {
/datasets/git/builtin/update-index.c:1236:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (r->settings.core_untracked_cache == UNTRACKED_CACHE_WRITE)
                                                                              ^
                                                                               {
/datasets/git/builtin/update-index.c:1248:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (r->settings.core_untracked_cache == UNTRACKED_CACHE_REMOVE)
                                                                               ^
                                                                                {
/datasets/git/builtin/update-index.c:1273:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (reason > FSMONITOR_REASON_OK)
                                                 ^
                                                  {
/datasets/git/builtin/update-index.c:1286:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fsm_mode > FSMONITOR_MODE_DISABLED)
                                                       ^
                                                        {
/datasets/git/builtin/update-index.c:1296:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (refresh_args.flags & REFRESH_QUIET)
                            ^
/datasets/git/builtin/update-index.c:1296:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (refresh_args.flags & REFRESH_QUIET)
                                                 ^
/datasets/git/./refs/../cache.h:923:43: note: expanded from macro 'REFRESH_QUIET'
#define REFRESH_QUIET                    (1 << 2) /* be quiet about it */
                                          ^
/datasets/git/builtin/update-index.c:1296:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (refresh_args.flags & REFRESH_QUIET)
                                                               ^
                                                                {
/datasets/git/builtin/update-index.c:1297:5: warning: function is not thread safe [concurrency-mt-unsafe]
                                exit(128);
                                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/builtin/update-index.c:1300:50: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (write_locked_index(&the_index, &lock_file, COMMIT_LOCK))
                                                               ^
/datasets/git/./refs/../cache.h:744:23: note: expanded from macro 'COMMIT_LOCK'
#define COMMIT_LOCK             (1 << 0)
                                 ^
/datasets/git/builtin/update-index.c:1300:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (write_locked_index(&the_index, &lock_file, COMMIT_LOCK))
                                                                            ^
                                                                             {
/datasets/git/builtin/update-ref.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "builtin.h"
/datasets/git/builtin/update-ref.c:16:13: warning: variable 'line_termination' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char line_termination = '\n';
            ^
/datasets/git/builtin/update-ref.c:17:21: warning: variable 'update_flags' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned int update_flags;
                    ^
/datasets/git/builtin/update-ref.c:18:21: warning: variable 'default_flags' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned int default_flags;
                    ^
/datasets/git/builtin/update-ref.c:19:17: warning: variable 'create_reflog_flag' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned create_reflog_flag;
                ^
/datasets/git/builtin/update-ref.c:20:20: warning: variable 'msg' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *msg;
                   ^
/datasets/git/builtin/update-ref.c:33:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (unquote_c_style(arg, next, &next))
                                                      ^
                                                       {
/datasets/git/builtin/update-ref.c:35:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (*next && !isspace(*next))
                              ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/builtin/update-ref.c:35:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*next && !isspace(*next))
                                             ^
                                              {
/datasets/git/builtin/update-ref.c:38:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (*next && !isspace(*next))
                ^
/datasets/git/builtin/update-ref.c:38:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                while (*next && !isspace(*next))
                                 ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/builtin/update-ref.c:38:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (*next && !isspace(*next))
                                                ^
                                                 {
/datasets/git/builtin/update-ref.c:71:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (check_refname_format(ref.buf, REFNAME_ALLOW_ONELEVEL))
                                                                  ^
                                                                   {
/datasets/git/builtin/update-ref.c:81:1: warning: replace macro with enum [modernize-macro-to-enum]
#define PARSE_SHA1_OLD 0x01
^~~~~~~~
                       =
/datasets/git/builtin/update-ref.c:81:9: warning: macro 'PARSE_SHA1_OLD' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define PARSE_SHA1_OLD 0x01
        ^
/datasets/git/builtin/update-ref.c:87:1: warning: replace macro with enum [modernize-macro-to-enum]
#define PARSE_SHA1_ALLOW_EMPTY 0x02
^~~~~~~~
                               =
/datasets/git/builtin/update-ref.c:87:9: warning: macro 'PARSE_SHA1_ALLOW_EMPTY' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define PARSE_SHA1_ALLOW_EMPTY 0x02
        ^
/datasets/git/builtin/update-ref.c:98:12: warning: function 'parse_next_oid' has cognitive complexity of 27 (threshold 25) [readability-function-cognitive-complexity]
static int parse_next_oid(const char **next, const char *end,
           ^
/datasets/git/builtin/update-ref.c:106:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (*next == end)
        ^
/datasets/git/builtin/update-ref.c:109:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (line_termination) {
        ^
/datasets/git/builtin/update-ref.c:111:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!**next || **next == line_termination)
                ^
/datasets/git/builtin/update-ref.c:111:15: note: +1
                if (!**next || **next == line_termination)
                            ^
/datasets/git/builtin/update-ref.c:113:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (**next != ' ')
                ^
/datasets/git/builtin/update-ref.c:118:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (arg.len) {
                ^
/datasets/git/builtin/update-ref.c:119:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (get_oid(arg.buf, oid))
                        ^
/datasets/git/builtin/update-ref.c:121:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/update-ref.c:125:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/update-ref.c:127:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (**next)
                ^
/datasets/git/builtin/update-ref.c:131:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*next == end)
                ^
/datasets/git/builtin/update-ref.c:136:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (arg.len) {
                ^
/datasets/git/builtin/update-ref.c:137:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (get_oid(arg.buf, oid))
                        ^
/datasets/git/builtin/update-ref.c:139:10: note: +1, nesting level increased to 2
                } else if (flags & PARSE_SHA1_ALLOW_EMPTY) {
                       ^
/datasets/git/builtin/update-ref.c:144:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/builtin/update-ref.c:158:29: note: +1, including nesting penalty of 0, nesting level increased to 1
        die(flags & PARSE_SHA1_OLD ?
                                   ^
/datasets/git/builtin/update-ref.c:164:29: note: +1, including nesting penalty of 0, nesting level increased to 1
        die(flags & PARSE_SHA1_OLD ?
                                   ^
/datasets/git/builtin/update-ref.c:106:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*next == end)
                         ^
                          {
/datasets/git/builtin/update-ref.c:111:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!**next || **next == line_termination)
                                                          ^
                                                           {
/datasets/git/builtin/update-ref.c:113:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (**next != ' ')
                                  ^
                                   {
/datasets/git/builtin/update-ref.c:119:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (get_oid(arg.buf, oid))
                                                  ^
                                                   {
/datasets/git/builtin/update-ref.c:127:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (**next)
                           ^
                            {
/datasets/git/builtin/update-ref.c:131:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*next == end)
                                 ^
                                  {
/datasets/git/builtin/update-ref.c:137:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (get_oid(arg.buf, oid))
                                                  ^
                                                   {
/datasets/git/builtin/update-ref.c:139:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                } else if (flags & PARSE_SHA1_ALLOW_EMPTY) {
                           ^~~~~
/datasets/git/builtin/update-ref.c:158:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        die(flags & PARSE_SHA1_OLD ?
            ^~~~~
/datasets/git/builtin/update-ref.c:164:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        die(flags & PARSE_SHA1_OLD ?
            ^~~~~
/datasets/git/builtin/update-ref.c:185:8: warning: variable 'refname' is not initialized [cppcoreguidelines-init-variables]
        char *refname;
              ^
                      = NULL
/datasets/git/builtin/update-ref.c:186:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct object_id new_oid, old_oid;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/update-ref.c:187:6: warning: variable 'have_old' is not initialized [cppcoreguidelines-init-variables]
        int have_old;
            ^
                     = 0
/datasets/git/builtin/update-ref.c:190:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!refname)
                     ^
                      {
/datasets/git/builtin/update-ref.c:194:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                           PARSE_SHA1_ALLOW_EMPTY))
                                                   ^
                                                    {
/datasets/git/builtin/update-ref.c:200:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*next != line_termination)
                                      ^
                                       {
/datasets/git/builtin/update-ref.c:206:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                   msg, &err))
                                              ^
                                               {
/datasets/git/builtin/update-ref.c:218:8: warning: variable 'refname' is not initialized [cppcoreguidelines-init-variables]
        char *refname;
              ^
                      = NULL
/datasets/git/builtin/update-ref.c:222:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!refname)
                     ^
                      {
/datasets/git/builtin/update-ref.c:225:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_next_oid(&next, end, &new_oid, "create", refname, 0))
                                                                       ^
                                                                        {
/datasets/git/builtin/update-ref.c:228:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_null_oid(&new_oid))
                                  ^
                                   {
/datasets/git/builtin/update-ref.c:231:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*next != line_termination)
                                      ^
                                       {
/datasets/git/builtin/update-ref.c:236:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                   msg, &err))
                                              ^
                                               {
/datasets/git/builtin/update-ref.c:248:8: warning: variable 'refname' is not initialized [cppcoreguidelines-init-variables]
        char *refname;
              ^
                      = NULL
/datasets/git/builtin/update-ref.c:250:6: warning: variable 'have_old' is not initialized [cppcoreguidelines-init-variables]
        int have_old;
            ^
                     = 0
/datasets/git/builtin/update-ref.c:253:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!refname)
                     ^
                      {
/datasets/git/builtin/update-ref.c:260:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_null_oid(&old_oid))
                                          ^
                                           {
/datasets/git/builtin/update-ref.c:265:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*next != line_termination)
                                      ^
                                       {
/datasets/git/builtin/update-ref.c:270:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                   update_flags, msg, &err))
                                                            ^
                                                             {
/datasets/git/builtin/update-ref.c:282:8: warning: variable 'refname' is not initialized [cppcoreguidelines-init-variables]
        char *refname;
              ^
                      = NULL
/datasets/git/builtin/update-ref.c:286:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!refname)
                     ^
                      {
/datasets/git/builtin/update-ref.c:290:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                           PARSE_SHA1_OLD))
                                           ^
                                            {
/datasets/git/builtin/update-ref.c:293:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*next != line_termination)
                                      ^
                                       {
/datasets/git/builtin/update-ref.c:297:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                   update_flags, &err))
                                                       ^
                                                        {
/datasets/git/builtin/update-ref.c:307:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(stdout, "%s: ok\n", command);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/update-ref.c:307:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/update-ref.c:308:2: warning: the value returned by this function should be used [cert-err33-c]
        fflush(stdout);
        ^~~~~~~~~~~~~~
/datasets/git/builtin/update-ref.c:308:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/update-ref.c:311:54: warning: parameter 'transaction' is unused [misc-unused-parameters]
static void parse_cmd_option(struct ref_transaction *transaction,
                                                     ^
/datasets/git/builtin/update-ref.c:312:39: warning: parameter 'end' is unused [misc-unused-parameters]
                             const char *next, const char *end)
                                                           ^
/datasets/git/builtin/update-ref.c:314:14: warning: variable 'rest' is not initialized [cppcoreguidelines-init-variables]
        const char *rest;
                    ^
                         = NULL
/datasets/git/builtin/update-ref.c:315:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (skip_prefix(next, "no-deref", &rest) && *rest == line_termination)
                                                                              ^
                                                                               {
/datasets/git/builtin/update-ref.c:316:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                update_flags |= REF_NO_DEREF;
                ^
/datasets/git/builtin/update-ref.c:316:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                update_flags |= REF_NO_DEREF;
                                ^
/datasets/git/./refs.h:631:23: note: expanded from macro 'REF_NO_DEREF'
#define REF_NO_DEREF (1 << 0)
                      ^
/datasets/git/builtin/update-ref.c:317:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/update-ref.c:321:53: warning: parameter 'transaction' is unused [misc-unused-parameters]
static void parse_cmd_start(struct ref_transaction *transaction,
                                                    ^
/datasets/git/builtin/update-ref.c:322:38: warning: parameter 'end' is unused [misc-unused-parameters]
                            const char *next, const char *end)
                                                          ^
/datasets/git/builtin/update-ref.c:324:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*next != line_termination)
                                      ^
                                       {
/datasets/git/builtin/update-ref.c:330:40: warning: parameter 'end' is unused [misc-unused-parameters]
                              const char *next, const char *end)
                                                            ^
/datasets/git/builtin/update-ref.c:333:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*next != line_termination)
                                      ^
                                       {
/datasets/git/builtin/update-ref.c:335:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ref_transaction_prepare(transaction, &error))
                                                         ^
                                                          {
/datasets/git/builtin/update-ref.c:341:38: warning: parameter 'end' is unused [misc-unused-parameters]
                            const char *next, const char *end)
                                                          ^
/datasets/git/builtin/update-ref.c:344:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*next != line_termination)
                                      ^
                                       {
/datasets/git/builtin/update-ref.c:346:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ref_transaction_abort(transaction, &error))
                                                       ^
                                                        {
/datasets/git/builtin/update-ref.c:352:39: warning: parameter 'end' is unused [misc-unused-parameters]
                             const char *next, const char *end)
                                                           ^
/datasets/git/builtin/update-ref.c:355:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*next != line_termination)
                                      ^
                                       {
/datasets/git/builtin/update-ref.c:357:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ref_transaction_commit(transaction, &error))
                                                        ^
                                                         {
/datasets/git/builtin/update-ref.c:374:21: warning: accessing fields in struct 'parse_cmd' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
static const struct parse_cmd {
                    ^
/datasets/git/builtin/update-ref.c:374:21: note: use "__attribute__((aligned(32)))" to align struct 'parse_cmd' to 32 bytes
/datasets/git/builtin/update-ref.c:391:13: warning: function 'update_refs_stdin' has cognitive complexity of 47 (threshold 25) [readability-function-cognitive-complexity]
static void update_refs_stdin(void)
            ^
/datasets/git/builtin/update-ref.c:399:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!transaction)
        ^
/datasets/git/builtin/update-ref.c:403:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (!strbuf_getwholeline(&input, stdin, line_termination)) {
        ^
/datasets/git/builtin/update-ref.c:406:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*input.buf == line_termination)
                ^
/datasets/git/builtin/update-ref.c:408:8: note: +1, nesting level increased to 2
                else if (isspace(*input.buf))
                     ^
/datasets/git/builtin/update-ref.c:411:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < ARRAY_SIZE(command); i++) {
                ^
/datasets/git/builtin/update-ref.c:415:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!starts_with(input.buf, prefix))
                        ^
/datasets/git/builtin/update-ref.c:423:24: note: +3, including nesting penalty of 2, nesting level increased to 3
                        c = command[i].args ? ' ' : line_termination;
                                            ^
/datasets/git/builtin/update-ref.c:424:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (input.buf[strlen(prefix)] != c)
                        ^
/datasets/git/builtin/update-ref.c:430:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!cmd)
                ^
/datasets/git/builtin/update-ref.c:438:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (j = 1; line_termination == '\0' && j < cmd->args; j++)
                ^
/datasets/git/builtin/update-ref.c:438:40: note: +1
                for (j = 1; line_termination == '\0' && j < cmd->args; j++)
                                                     ^
/datasets/git/builtin/update-ref.c:439:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (strbuf_appendwholeline(&input, stdin, line_termination))
                        ^
/datasets/git/builtin/update-ref.c:442:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                switch (state) {
                ^
/datasets/git/builtin/update-ref.c:445:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (state == UPDATE_REFS_STARTED && cmd->state == UPDATE_REFS_STARTED)
                        ^
/datasets/git/builtin/update-ref.c:445:37: note: +1
                        if (state == UPDATE_REFS_STARTED && cmd->state == UPDATE_REFS_STARTED)
                                                         ^
/datasets/git/builtin/update-ref.c:448:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (cmd->state >= state)
                        ^
/datasets/git/builtin/update-ref.c:452:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (cmd->state != UPDATE_REFS_CLOSED)
                        ^
/datasets/git/builtin/update-ref.c:457:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (cmd->state != UPDATE_REFS_STARTED)
                        ^
/datasets/git/builtin/update-ref.c:466:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!transaction)
                        ^
/datasets/git/builtin/update-ref.c:476:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        switch (state) {
        ^
/datasets/git/builtin/update-ref.c:479:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ref_transaction_commit(transaction, &err))
                ^
/datasets/git/builtin/update-ref.c:486:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ref_transaction_abort(transaction, &err))
                ^
/datasets/git/builtin/update-ref.c:393:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct strbuf input = STRBUF_INIT, err = STRBUF_INIT;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/update-ref.c:395:26: warning: variable 'transaction' is not initialized [cppcoreguidelines-init-variables]
        struct ref_transaction *transaction;
                                ^
                                            = NULL
/datasets/git/builtin/update-ref.c:396:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, j;
        ^~~~~~~~~
/datasets/git/builtin/update-ref.c:396:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, j;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/update-ref.c:396:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/update-ref.c:396:9: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int i, j;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/update-ref.c:396:9: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/update-ref.c:399:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!transaction)
                         ^
                          {
/datasets/git/builtin/update-ref.c:403:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'input' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (!strbuf_getwholeline(&input, stdin, line_termination)) {
               ^
/datasets/git/builtin/update-ref.c:406:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*input.buf == line_termination)
                                                   ^
                                                    {
/datasets/git/builtin/update-ref.c:408:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                else if (isspace(*input.buf))
                         ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/builtin/update-ref.c:408:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (isspace(*input.buf))
                                             ^
                                              {
/datasets/git/builtin/update-ref.c:411:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < ARRAY_SIZE(command); i++) {
                ^
/datasets/git/builtin/update-ref.c:413:9: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
                        char c;
                             ^
                               = 0
/datasets/git/builtin/update-ref.c:413:9: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/update-ref.c:415:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!starts_with(input.buf, prefix))
                                                            ^
                                                             {
/datasets/git/builtin/update-ref.c:423:32: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        c = command[i].args ? ' ' : line_termination;
                                                    ^
/datasets/git/builtin/update-ref.c:424:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (input.buf[strlen(prefix)] != c)
                                                           ^
                                                            {
/datasets/git/builtin/update-ref.c:430:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!cmd)
                         ^
                          {
/datasets/git/builtin/update-ref.c:438:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (j = 1; line_termination == '\0' && j < cmd->args; j++)
                ^
/datasets/git/builtin/update-ref.c:438:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cmd' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (j = 1; line_termination == '\0' && j < cmd->args; j++)
                            ^
/datasets/git/builtin/update-ref.c:438:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (j = 1; line_termination == '\0' && j < cmd->args; j++)
                                                                           ^
                                                                            {
/datasets/git/builtin/update-ref.c:439:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (strbuf_appendwholeline(&input, stdin, line_termination))
                                                                                    ^
                                                                                     {
/datasets/git/builtin/update-ref.c:442:3: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
                switch (state) {
                ^
/datasets/git/builtin/update-ref.c:445:74: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (state == UPDATE_REFS_STARTED && cmd->state == UPDATE_REFS_STARTED)
                                                                                              ^
                                                                                               {
/datasets/git/builtin/update-ref.c:448:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (cmd->state >= state)
                                                ^
                                                 {
/datasets/git/builtin/update-ref.c:452:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (cmd->state != UPDATE_REFS_CLOSED)
                                                             ^
                                                              {
/datasets/git/builtin/update-ref.c:457:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (cmd->state != UPDATE_REFS_STARTED)
                                                              ^
                                                               {
/datasets/git/builtin/update-ref.c:466:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!transaction)
                                         ^
                                          {
/datasets/git/builtin/update-ref.c:476:2: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
        switch (state) {
        ^
/datasets/git/builtin/update-ref.c:479:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ref_transaction_commit(transaction, &err))
                                                              ^
                                                               {
/datasets/git/builtin/update-ref.c:486:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ref_transaction_abort(transaction, &err))
                                                             ^
                                                              {
/datasets/git/builtin/update-ref.c:498:5: warning: function 'cmd_update_ref' has cognitive complexity of 32 (threshold 25) [readability-function-cognitive-complexity]
int cmd_update_ref(int argc, const char **argv, const char *prefix)
    ^
/datasets/git/builtin/update-ref.c:518:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (msg && !*msg)
        ^
/datasets/git/builtin/update-ref.c:518:10: note: +1
        if (msg && !*msg)
                ^
/datasets/git/builtin/update-ref.c:521:37: note: +1, including nesting penalty of 0, nesting level increased to 1
        create_reflog_flag = create_reflog ? REF_FORCE_CREATE_REFLOG : 0;
                                           ^
/datasets/git/builtin/update-ref.c:523:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (no_deref) {
        ^
/datasets/git/builtin/update-ref.c:528:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (read_stdin) {
        ^
/datasets/git/builtin/update-ref.c:529:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (delete || argc > 0)
                ^
/datasets/git/builtin/update-ref.c:529:14: note: +1
                if (delete || argc > 0)
                           ^
/datasets/git/builtin/update-ref.c:531:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (end_null)
                ^
/datasets/git/builtin/update-ref.c:537:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (end_null)
        ^
/datasets/git/builtin/update-ref.c:540:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (delete) {
        ^
/datasets/git/builtin/update-ref.c:541:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (argc < 1 || argc > 2)
                ^
/datasets/git/builtin/update-ref.c:541:16: note: +1
                if (argc < 1 || argc > 2)
                             ^
/datasets/git/builtin/update-ref.c:545:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/builtin/update-ref.c:547:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (argc < 2 || argc > 3)
                ^
/datasets/git/builtin/update-ref.c:547:16: note: +1
                if (argc < 2 || argc > 3)
                             ^
/datasets/git/builtin/update-ref.c:552:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (get_oid(value, &oid))
                ^
/datasets/git/builtin/update-ref.c:556:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (oldval) {
        ^
/datasets/git/builtin/update-ref.c:557:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!*oldval)
                ^
/datasets/git/builtin/update-ref.c:563:8: note: +1, nesting level increased to 2
                else if (get_oid(oldval, &oldoid))
                     ^
/datasets/git/builtin/update-ref.c:567:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (delete)
        ^
/datasets/git/builtin/update-ref.c:573:41: note: +2, including nesting penalty of 1, nesting level increased to 2
                                  (oldval && !is_null_oid(&oldoid)) ? &oldoid : NULL,
                                                                    ^
/datasets/git/builtin/update-ref.c:573:15: note: +1
                                  (oldval && !is_null_oid(&oldoid)) ? &oldoid : NULL,
                                          ^
/datasets/git/builtin/update-ref.c:575:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/builtin/update-ref.c:576:48: note: +2, including nesting penalty of 1, nesting level increased to 2
                return update_ref(msg, refname, &oid, oldval ? &oldoid : NULL,
                                                             ^
/datasets/git/builtin/update-ref.c:500:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *refname, *oldval;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/update-ref.c:500:14: warning: variable 'refname' is not initialized [cppcoreguidelines-init-variables]
        const char *refname, *oldval;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/update-ref.c:500:24: warning: variable 'oldval' is not initialized [cppcoreguidelines-init-variables]
        const char *refname, *oldval;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/update-ref.c:501:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct object_id oid, oldoid;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/update-ref.c:502:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int delete = 0, no_deref = 0, read_stdin = 0, end_null = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/update-ref.c:506:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('d', NULL, &delete, N_("delete the reference")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/update-ref.c:507:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL( 0 , "no-deref", &no_deref,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/update-ref.c:509:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('z', NULL, &end_null, N_("stdin has NUL-terminated arguments")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/update-ref.c:510:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL( 0 , "stdin", &read_stdin, N_("read updates from stdin")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/update-ref.c:511:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL( 0 , "create-reflog", &create_reflog, N_("create a reflog")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/update-ref.c:518:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (msg && !*msg)
                         ^
                          {
/datasets/git/builtin/update-ref.c:521:39: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        create_reflog_flag = create_reflog ? REF_FORCE_CREATE_REFLOG : 0;
                                             ^
/datasets/git/./refs.h:637:34: note: expanded from macro 'REF_FORCE_CREATE_REFLOG'
#define REF_FORCE_CREATE_REFLOG (1 << 1)
                                 ^
/datasets/git/builtin/update-ref.c:524:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                default_flags = REF_NO_DEREF;
                                ^
/datasets/git/./refs.h:631:23: note: expanded from macro 'REF_NO_DEREF'
#define REF_NO_DEREF (1 << 0)
                      ^
/datasets/git/builtin/update-ref.c:529:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (delete || argc > 0)
                                       ^
                                        {
/datasets/git/builtin/update-ref.c:531:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (end_null)
                             ^
                              {
/datasets/git/builtin/update-ref.c:537:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (end_null)
                     ^
                      {
/datasets/git/builtin/update-ref.c:541:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (argc < 1 || argc > 2)
                                         ^
                                          {
/datasets/git/builtin/update-ref.c:546:15: warning: variable 'value' is not initialized [cppcoreguidelines-init-variables]
                const char *value;
                            ^
                                  = NULL
/datasets/git/builtin/update-ref.c:547:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (argc < 2 || argc > 3)
                                         ^
                                          {
/datasets/git/builtin/update-ref.c:552:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (get_oid(value, &oid))
                                         ^
                                          {
/datasets/git/builtin/update-ref.c:557:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!*oldval)
                             ^
                              {
/datasets/git/builtin/update-ref.c:563:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (get_oid(oldval, &oldoid))
                                                  ^
                                                   {
/datasets/git/builtin/update-ref.c:567:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (delete)
                   ^
                    {
/datasets/git/builtin/update-ref.c:575:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else
        ^~~~
/datasets/git/builtin/update-ref.c:575:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/update-server-info.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "builtin.h"
/datasets/git/builtin/update-server-info.c:15:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__FORCE(&force, N_("update the info files from scratch"), 0),
                ^
/datasets/git/./parse-options.h:367:31: note: expanded from macro 'OPT__FORCE'
#define OPT__FORCE(var, h, f) OPT_COUNTUP_F('f', "force",   (var), (h), (f))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/update-server-info.c:22:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc > 0)
                     ^
                      {
/datasets/git/builtin/upload-archive.c:5:1: warning: #includes are not sorted properly [llvm-include-order]
#include "builtin.h"
^        ~~~~~~~~~~~
         "archive.h"
/datasets/git/builtin/upload-archive.c:18:1: warning: replace macro with enum [modernize-macro-to-enum]
#define MAX_ARGS (64)
^~~~~~~~
                 =
/datasets/git/builtin/upload-archive.c:18:9: warning: macro 'MAX_ARGS' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define MAX_ARGS (64)
        ^
/datasets/git/builtin/upload-archive.c:25:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc != 2 || !strcmp(argv[1], "-h"))
                                                ^
                                                 {
/datasets/git/builtin/upload-archive.c:28:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!enter_repo(argv[1], 0))
                                    ^
                                     {
/datasets/git/builtin/upload-archive.c:35:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/builtin/upload-archive.c:37:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!buf)
                         ^
                          {
/datasets/git/builtin/upload-archive.c:39:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (sent_argv.nr > MAX_ARGS)
                                            ^
                                             {
/datasets/git/builtin/upload-archive.c:42:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!starts_with(buf, arg_cmd))
                                               ^
                                                {
/datasets/git/builtin/upload-archive.c:48:23: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return write_archive(sent_argv.nr, sent_argv.v, prefix,
                             ^
/datasets/git/builtin/upload-archive.c:61:31: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'ssize_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        send_sideband(1, 3, buf.buf, buf.len, LARGE_PACKET_MAX);
                                     ^
/datasets/git/builtin/upload-archive.c:65:30: warning: 2 adjacent parameters of 'process_input' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static ssize_t process_input(int child_fd, int band)
                             ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/upload-archive.c:65:34: note: the first parameter in the range is 'child_fd'
static ssize_t process_input(int child_fd, int band)
                                 ^~~~~~~~
/datasets/git/builtin/upload-archive.c:65:48: note: the last parameter in the range is 'band'
static ssize_t process_input(int child_fd, int band)
                                               ^~~~
/datasets/git/builtin/upload-archive.c:67:11: warning: 16384 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        char buf[16384];
                 ^
/datasets/git/builtin/upload-archive.c:68:10: warning: variable name 'sz' is too short, expected at least 3 characters [readability-identifier-length]
        ssize_t sz = read(child_fd, buf, sizeof(buf));
                ^
/datasets/git/builtin/upload-archive.c:70:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (errno != EAGAIN && errno != EINTR)
                                                      ^
                                                       {
/datasets/git/builtin/upload-archive.c:71:35: warning: function is not thread safe [concurrency-mt-unsafe]
                        error_clnt("read error: %s\n", strerror(errno));
                                                       ^
/datasets/git/builtin/upload-archive.c:78:65: warning: parameter 'prefix' is unused [misc-unused-parameters]
int cmd_upload_archive(int argc, const char **argv, const char *prefix)
                                                                ^
/datasets/git/builtin/upload-archive.c:82:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc == 2 && !strcmp(argv[1], "-h"))
                                                ^
                                                 {
/datasets/git/builtin/upload-archive.c:99:29: warning: function is not thread safe [concurrency-mt-unsafe]
                die("upload-archive: %s", strerror(err));
                                          ^
/datasets/git/builtin/upload-archive.c:105:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/builtin/upload-archive.c:115:5: warning: function is not thread safe [concurrency-mt-unsafe]
                                sleep(1);
                                ^
/datasets/git/builtin/upload-archive.c:119:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (pfd[1].revents & POLLIN)
                    ^~~~~~~~~~~~~~
/datasets/git/builtin/upload-archive.c:119:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pfd[1].revents & POLLIN)
                                            ^
                                             {
/datasets/git/builtin/upload-archive.c:121:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (process_input(pfd[1].fd, 2))
                                                        ^
                                                         {
/datasets/git/builtin/upload-archive.c:123:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (pfd[0].revents & POLLIN)
                    ^~~~~~~~~~~~~~
/datasets/git/builtin/upload-archive.c:123:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pfd[0].revents & POLLIN)
                                            ^
                                             {
/datasets/git/builtin/upload-archive.c:125:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (process_input(pfd[0].fd, 1))
                                                        ^
                                                         {
/datasets/git/builtin/upload-archive.c:128:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (finish_command(&writer))
                                            ^
                                             {
/datasets/git/builtin/upload-pack.c:4:1: warning: #includes are not sorted properly [llvm-include-order]
#include "pkt-line.h"
^        ~~~~~~~~~~~~
         "parse-options.h"
/datasets/git/builtin/upload-pack.c:18:14: warning: variable 'dir' is not initialized [cppcoreguidelines-init-variables]
        const char *dir;
                    ^
                        = NULL
/datasets/git/builtin/upload-pack.c:24:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "stateless-rpc", &stateless_rpc,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/upload-pack.c:26:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_HIDDEN_BOOL(0, "http-backend-info-refs", &advertise_refs,
                ^
/datasets/git/./parse-options.h:185:16: note: expanded from macro 'OPT_HIDDEN_BOOL'
                                      (h), PARSE_OPT_NOARG | PARSE_OPT_HIDDEN, NULL, 1}
                                           ^~~~~~~~~~~~~~~
/datasets/git/builtin/upload-pack.c:29:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "strict", &strict,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/upload-pack.c:41:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc != 1)
                      ^
                       {
/datasets/git/builtin/upload-pack.c:48:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!enter_repo(dir, strict))
                                     ^
                                      {
/datasets/git/builtin/upload-pack.c:53:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (advertise_refs)
                                   ^
                                    {
/datasets/git/builtin/upload-pack.c:55:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/upload-pack.c:63:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (advertise_refs || !stateless_rpc)
                                                     ^
                                                      {
/datasets/git/builtin/var.c:16:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!pgm && flag & IDENT_STRICT)
                    ^~~~
/datasets/git/builtin/var.c:16:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!pgm && flag & IDENT_STRICT)
                                        ^
                                         {
/datasets/git/builtin/var.c:22:30: warning: parameter 'flag' is unused [misc-unused-parameters]
static const char *pager(int flag)
                             ^
/datasets/git/builtin/var.c:26:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!pgm)
                 ^
                  {
/datasets/git/builtin/var.c:31:39: warning: parameter 'flag' is unused [misc-unused-parameters]
static const char *default_branch(int flag)
                                      ^
/datasets/git/builtin/var.c:36:8: warning: accessing fields in struct 'git_var' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct git_var {
       ^
/datasets/git/builtin/var.c:36:8: note: use "__attribute__((aligned(16)))" to align struct 'git_var' to 16 bytes
/datasets/git/builtin/var.c:40:23: warning: variable 'git_vars' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct git_var git_vars[] = {
                      ^
/datasets/git/builtin/var.c:51:18: warning: variable 'ptr' is not initialized [cppcoreguidelines-init-variables]
        struct git_var *ptr;
                        ^
                            = NULL
/datasets/git/builtin/var.c:52:14: warning: variable 'val' is not initialized [cppcoreguidelines-init-variables]
        const char *val;
                    ^
                        = NULL
/datasets/git/builtin/var.c:54:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (ptr = git_vars; ptr->read; ptr++)
        ^
/datasets/git/builtin/var.c:54:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ptr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (ptr = git_vars; ptr->read; ptr++)
                             ^
/datasets/git/builtin/var.c:54:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (ptr = git_vars; ptr->read; ptr++)
                                              ^
                                               {
/datasets/git/builtin/var.c:55:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                if ((val = ptr->read(0)))
                     ^
/datasets/git/builtin/var.c:55:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/builtin/var.c:55:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/builtin/var.c:61:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct git_var *ptr;
        ^
/datasets/git/builtin/var.c:55:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((val = ptr->read(0)))
                                         ^
                                          {
/datasets/git/builtin/var.c:61:18: warning: variable 'ptr' is not initialized [cppcoreguidelines-init-variables]
        struct git_var *ptr;
                        ^
                            = NULL
/datasets/git/builtin/var.c:62:14: warning: variable 'val' is not initialized [cppcoreguidelines-init-variables]
        const char *val;
                    ^
                        = NULL
/datasets/git/builtin/var.c:64:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (ptr = git_vars; ptr->read; ptr++) {
        ^
/datasets/git/builtin/var.c:64:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ptr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (ptr = git_vars; ptr->read; ptr++) {
                             ^
/datasets/git/builtin/var.c:73:66: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int show_config(const char *var, const char *value, void *cb)
                                                                 ^
/datasets/git/builtin/var.c:75:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (value)
                  ^
                   {
/datasets/git/builtin/var.c:77:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/var.c:82:54: warning: parameter 'prefix' is unused [misc-unused-parameters]
int cmd_var(int argc, const char **argv, const char *prefix)
                                                     ^
/datasets/git/builtin/var.c:85:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc != 2)
                      ^
                       {
/datasets/git/builtin/var.c:95:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!val)
                 ^
                  {
/datasets/git/builtin/verify-commit.c:9:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "builtin.h"
/datasets/git/builtin/verify-commit.c:26:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/builtin/verify-commit.c:28:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&signature_check, 0, sizeof(signature_check));
        ^~~~~~
/datasets/git/builtin/verify-commit.c:28:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&signature_check, 0, sizeof(signature_check));
        ^~~~~~
/datasets/git/builtin/verify-commit.c:40:17: warning: variable 'obj' is not initialized [cppcoreguidelines-init-variables]
        struct object *obj;
                       ^
                           = NULL
/datasets/git/builtin/verify-commit.c:42:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid(name, &oid))
                                ^
                                 {
/datasets/git/builtin/verify-commit.c:46:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!obj)
                 ^
                  {
/datasets/git/builtin/verify-commit.c:48:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (obj->type != OBJ_COMMIT)
                                    ^
                                     {
/datasets/git/builtin/verify-commit.c:55:79: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int git_verify_commit_config(const char *var, const char *value, void *cb)
                                                                              ^
/datasets/git/builtin/verify-commit.c:58:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (status)
                   ^
                    {
/datasets/git/builtin/verify-commit.c:65:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i = 1, verbose = 0, had_error = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/verify-commit.c:65:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 1, verbose = 0, had_error = 0;
            ^
/datasets/git/builtin/verify-commit.c:68:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__VERBOSE(&verbose, N_("print commit contents")),
                ^
/datasets/git/./parse-options.h:359:31: note: expanded from macro 'OPT__VERBOSE'
#define OPT__VERBOSE(var, h)  OPT_COUNTUP('v', "verbose", (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/verify-commit.c:69:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT(0, "raw", &flags, N_("print raw gpg status output"), GPG_VERIFY_RAW),
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/verify-commit.c:77:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc <= i)
                      ^
                       {
/datasets/git/builtin/verify-commit.c:80:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (verbose)
                    ^
                     {
/datasets/git/builtin/verify-commit.c:81:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags |= GPG_VERIFY_VERBOSE;
                ^
/datasets/git/builtin/verify-commit.c:85:2: warning: the value returned by this function should be used [cert-err33-c]
        signal(SIGPIPE, SIG_IGN);
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/verify-commit.c:85:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/verify-commit.c:86:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (i < argc)
        ^
/datasets/git/builtin/verify-commit.c:86:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'argc' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (i < argc)
               ^
/datasets/git/builtin/verify-commit.c:86:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (i < argc)
                        ^
                         {
/datasets/git/builtin/verify-commit.c:87:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (verify_commit(argv[i++], flags))
                                                    ^
                                                     {
/datasets/git/builtin/verify-pack.c:4:1: warning: #includes are not sorted properly [llvm-include-order]
#include "run-command.h"
^        ~~~~~~~~~~~~~~~
         "parse-options.h"
/datasets/git/builtin/verify-pack.c:7:1: warning: replace macro with enum [modernize-macro-to-enum]
#define VERIFY_PACK_VERBOSE 01
^~~~~~~~
                            = ,
/datasets/git/builtin/verify-pack.c:7:9: warning: macro 'VERIFY_PACK_VERBOSE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define VERIFY_PACK_VERBOSE 01
        ^
/datasets/git/builtin/verify-pack.c:8:9: warning: macro 'VERIFY_PACK_STAT_ONLY' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define VERIFY_PACK_STAT_ONLY 02
        ^
/datasets/git/builtin/verify-pack.c:15:16: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int verbose = flags & VERIFY_PACK_VERBOSE;
                      ^
/datasets/git/builtin/verify-pack.c:15:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
/datasets/git/builtin/verify-pack.c:16:18: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int stat_only = flags & VERIFY_PACK_STAT_ONLY;
                        ^
/datasets/git/builtin/verify-pack.c:16:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
/datasets/git/builtin/verify-pack.c:17:6: warning: variable 'err' is not initialized [cppcoreguidelines-init-variables]
        int err;
            ^
                = 0
/datasets/git/builtin/verify-pack.c:21:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (stat_only)
                      ^
                       {
/datasets/git/builtin/verify-pack.c:23:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (verbose)
                         ^
                          {
/datasets/git/builtin/verify-pack.c:25:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/verify-pack.c:28:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (hash_algo)
                      ^
                       {
/datasets/git/builtin/verify-pack.c:37:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !ends_with(arg.buf, ".pack"))
                                         ^
                                          {
/datasets/git/builtin/verify-pack.c:46:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err)
                        ^
                         {
/datasets/git/builtin/verify-pack.c:49:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!stat_only)
                                       ^
                                        {
/datasets/git/builtin/verify-pack.c:68:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/verify-pack.c:68:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/verify-pack.c:70:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT('v', "verbose", &flags, N_("verbose"),
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/verify-pack.c:72:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT('s', "stat-only", &flags, N_("show statistics only"),
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/verify-pack.c:82:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc < 1)
                     ^
                      {
/datasets/git/builtin/verify-pack.c:84:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < argc; i++) {
        ^
/datasets/git/builtin/verify-pack.c:84:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'argc' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < argc; i++) {
                    ^
/datasets/git/builtin/verify-pack.c:85:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (verify_one_pack(argv[i], flags, object_format))
                                                                   ^
                                                                    {
/datasets/git/builtin/verify-tag.c:9:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "builtin.h"
/datasets/git/builtin/verify-tag.c:22:76: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int git_verify_tag_config(const char *var, const char *value, void *cb)
                                                                           ^
/datasets/git/builtin/verify-tag.c:25:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (status)
                   ^
                    {
/datasets/git/builtin/verify-tag.c:32:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i = 1, verbose = 0, had_error = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/verify-tag.c:32:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 1, verbose = 0, had_error = 0;
            ^
/datasets/git/builtin/verify-tag.c:36:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__VERBOSE(&verbose, N_("print tag contents")),
                ^
/datasets/git/./parse-options.h:359:31: note: expanded from macro 'OPT__VERBOSE'
#define OPT__VERBOSE(var, h)  OPT_COUNTUP('v', "verbose", (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/verify-tag.c:37:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT(0, "raw", &flags, N_("print raw gpg status output"), GPG_VERIFY_RAW),
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/verify-tag.c:46:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argc <= i)
                      ^
                       {
/datasets/git/builtin/verify-tag.c:49:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (verbose)
                    ^
                     {
/datasets/git/builtin/verify-tag.c:50:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags |= GPG_VERIFY_VERBOSE;
                ^
/datasets/git/builtin/verify-tag.c:53:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (verify_ref_format(&format))
                                               ^
                                                {
/datasets/git/builtin/verify-tag.c:56:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags |= GPG_VERIFY_OMIT_STATUS;
                ^
/datasets/git/builtin/verify-tag.c:59:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (i < argc) {
        ^
/datasets/git/builtin/verify-tag.c:59:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'argc' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (i < argc) {
               ^
/datasets/git/builtin/verify-tag.c:73:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (format.format)
                                  ^
                                   {
/datasets/git/builtin/worktree.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "checkout.h"
^        ~~~~~~~~~~~~
         "branch.h"
/datasets/git/builtin/worktree.c:37:2: warning: suspicious string literal, probably missing a comma [bugprone-suspicious-missing-comma]
        BUILTIN_WORKTREE_ADD_USAGE,
        ^
/datasets/git/builtin/worktree.c:19:5: note: expanded from macro 'BUILTIN_WORKTREE_ADD_USAGE'
        N_("git worktree add [-f] [--detach] [--checkout] [--lock [--reason <string>]]\n" \
           ^
/datasets/git/builtin/worktree.c:88:8: warning: accessing fields in struct 'add_opts' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct add_opts {
       ^
/datasets/git/builtin/worktree.c:88:8: note: use "__attribute__((aligned(32)))" to align struct 'add_opts' to 32 bytes
/datasets/git/builtin/worktree.c:96:12: warning: variable 'show_only' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int show_only;
           ^
/datasets/git/builtin/worktree.c:97:12: warning: variable 'verbose' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int verbose;
           ^
/datasets/git/builtin/worktree.c:98:12: warning: variable 'guess_remote' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int guess_remote;
           ^
/datasets/git/builtin/worktree.c:99:20: warning: variable 'expire' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static timestamp_t expire;
                   ^
/datasets/git/builtin/worktree.c:101:74: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int git_worktree_config(const char *var, const char *value, void *cb)
                                                                         ^
/datasets/git/builtin/worktree.c:111:39: warning: parameter name 'id' is too short, expected at least 3 characters [readability-identifier-length]
static int delete_git_dir(const char *id)
                                      ^
/datasets/git/builtin/worktree.c:113:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/worktree.c:114:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/builtin/worktree.c:118:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret < 0 && errno == ENOTDIR)
                                        ^
                                         {
/datasets/git/builtin/worktree.c:120:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/builtin/worktree.c:131:40: warning: parameter name 'id' is too short, expected at least 3 characters [readability-identifier-length]
static void prune_worktree(const char *id, const char *reason)
                                       ^
/datasets/git/builtin/worktree.c:133:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (show_only || verbose)
                                 ^
                                  {
/datasets/git/builtin/worktree.c:135:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!show_only)
                       ^
                        {
/datasets/git/builtin/worktree.c:139:22: warning: 2 adjacent parameters of 'prune_cmp' of similar type ('const void *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int prune_cmp(const void *a, const void *b)
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/worktree.c:139:34: note: the first parameter in the range is 'a'
static int prune_cmp(const void *a, const void *b)
                                 ^
/datasets/git/builtin/worktree.c:139:49: note: the last parameter in the range is 'b'
static int prune_cmp(const void *a, const void *b)
                                                ^
/datasets/git/builtin/worktree.c:139:34: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static int prune_cmp(const void *a, const void *b)
                                 ^
/datasets/git/builtin/worktree.c:139:49: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static int prune_cmp(const void *a, const void *b)
                                                ^
/datasets/git/builtin/worktree.c:141:33: warning: variable name 'x' is too short, expected at least 3 characters [readability-identifier-length]
        const struct string_list_item *x = a;
                                       ^
/datasets/git/builtin/worktree.c:142:33: warning: variable name 'y' is too short, expected at least 3 characters [readability-identifier-length]
        const struct string_list_item *y = b;
                                       ^
/datasets/git/builtin/worktree.c:143:6: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        int c;
            ^
              = 0
/datasets/git/builtin/worktree.c:143:6: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/worktree.c:145:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if ((c = fspathcmp(x->string, y->string)))
             ^
/datasets/git/builtin/worktree.c:145:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/builtin/worktree.c:145:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/builtin/worktree.c:145:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((c = fspathcmp(x->string, y->string)))
                                                  ^
                                                   {
/datasets/git/builtin/worktree.c:153:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!x->util)
                     ^
                      {
/datasets/git/builtin/worktree.c:155:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!y->util)
                     ^
                      {
/datasets/git/builtin/worktree.c:161:44: warning: parameter name 'l' is too short, expected at least 3 characters [readability-identifier-length]
static void prune_dups(struct string_list *l)
                                           ^
/datasets/git/builtin/worktree.c:163:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/worktree.c:163:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/worktree.c:166:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 1; i < l->nr; i++) {
        ^
/datasets/git/builtin/worktree.c:167:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!fspathcmp(l->items[i].string, l->items[i - 1].string))
                                                                           ^
                                                                            {
/datasets/git/builtin/worktree.c:178:17: warning: variable 'd' is not initialized [cppcoreguidelines-init-variables]
        struct dirent *d;
                       ^
                         = NULL
/datasets/git/builtin/worktree.c:178:17: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/worktree.c:179:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!dir)
                 ^
                  {
/datasets/git/builtin/worktree.c:181:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((d = readdir_skip_dot_and_dotdot(dir)) != NULL) {
        ^
/datasets/git/builtin/worktree.c:181:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'd' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((d = readdir_skip_dot_and_dotdot(dir)) != NULL) {
               ^
/datasets/git/builtin/worktree.c:182:9: warning: variable 'path' is not initialized [cppcoreguidelines-init-variables]
                char *path;
                      ^
                           = NULL
/datasets/git/builtin/worktree.c:184:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (should_prune_worktree(d->d_name, &reason, &path, expire))
                                                                             ^
                                                                              {
/datasets/git/builtin/worktree.c:186:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (path)
                              ^
                               {
/datasets/git/builtin/worktree.c:198:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!show_only)
                       ^
                        {
/datasets/git/builtin/worktree.c:203:22: warning: parameter name 'ac' is too short, expected at least 3 characters [readability-identifier-length]
static int prune(int ac, const char **av, const char *prefix)
                     ^
/datasets/git/builtin/worktree.c:203:39: warning: parameter name 'av' is too short, expected at least 3 characters [readability-identifier-length]
static int prune(int ac, const char **av, const char *prefix)
                                      ^
/datasets/git/builtin/worktree.c:206:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__DRY_RUN(&show_only, N_("do not remove, show only")),
                ^
/datasets/git/./parse-options.h:366:31: note: expanded from macro 'OPT__DRY_RUN'
#define OPT__DRY_RUN(var, h)  OPT_BOOL('n', "dry-run", (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/worktree.c:207:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__VERBOSE(&verbose, N_("report pruned working trees")),
                ^
/datasets/git/./parse-options.h:359:31: note: expanded from macro 'OPT__VERBOSE'
#define OPT__VERBOSE(var, h)  OPT_COUNTUP('v', "verbose", (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/worktree.c:216:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ac)
               ^
                {
/datasets/git/builtin/worktree.c:222:14: warning: variable 'junk_work_tree' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *junk_work_tree;
             ^
/datasets/git/builtin/worktree.c:222:14: warning: variable 'junk_work_tree' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/worktree.c:223:14: warning: variable 'junk_git_dir' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *junk_git_dir;
             ^
/datasets/git/builtin/worktree.c:223:14: warning: variable 'junk_git_dir' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/builtin/worktree.c:224:12: warning: variable 'is_junk' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int is_junk;
           ^
/datasets/git/builtin/worktree.c:225:14: warning: variable 'junk_pid' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static pid_t junk_pid;
             ^
/datasets/git/builtin/worktree.c:229:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/worktree.c:230:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_junk || getpid() != junk_pid)
                                             ^
                                              {
/datasets/git/builtin/worktree.c:248:2: warning: the value returned by this function should be used [cert-err33-c]
        raise(signo);
        ^~~~~~~~~~~~
/datasets/git/builtin/worktree.c:248:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/worktree.c:253:14: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
        const char *name;
                    ^
                         = NULL
/datasets/git/builtin/worktree.c:254:6: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int len;
            ^
                = 0
/datasets/git/builtin/worktree.c:256:8: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        len = strlen(path);
              ^
/datasets/git/builtin/worktree.c:257:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (len && is_dir_sep(path[len - 1]))
        ^
/datasets/git/builtin/worktree.c:257:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (len && is_dir_sep(path[len - 1]))
               ^
/datasets/git/builtin/worktree.c:257:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (len && is_dir_sep(path[len - 1]))
                                                ^
                                                 {
/datasets/git/builtin/worktree.c:260:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (name = path + len - 1; name > path; name--)
        ^
/datasets/git/builtin/worktree.c:260:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'name' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (name = path + len - 1; name > path; name--)
                                    ^
/datasets/git/builtin/worktree.c:260:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (name = path + len - 1; name > path; name--)
                                                        ^
                                                         {
/datasets/git/builtin/worktree.c:276:19: warning: variable 'wt' is not initialized [cppcoreguidelines-init-variables]
        struct worktree *wt;
                         ^
                            = NULL
/datasets/git/builtin/worktree.c:276:19: warning: variable name 'wt' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/worktree.c:277:6: warning: variable 'locked' is not initialized [cppcoreguidelines-init-variables]
        int locked;
            ^
                   = 0
/datasets/git/builtin/worktree.c:279:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (file_exists(path) && !is_empty_dir(path))
                                                     ^
                                                      {
/datasets/git/builtin/worktree.c:283:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!wt)
                ^
                 {
/datasets/git/builtin/worktree.c:288:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (delete_git_dir(wt->id))
                                           ^
                                            {
/datasets/git/builtin/worktree.c:293:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (locked)
                   ^
                    {
/datasets/git/builtin/worktree.c:295:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/worktree.c:306:34: warning: 0666 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        copy_file(to_file, from_file, 0666))
                                                      ^
/datasets/git/builtin/worktree.c:306:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        copy_file(to_file, from_file, 0666))
                                                            ^
                                                             {
/datasets/git/builtin/worktree.c:321:21: warning: variable name 'cs' is too short, expected at least 3 characters [readability-identifier-length]
                struct config_set cs = { { 0 } };
                                  ^
/datasets/git/builtin/worktree.c:322:15: warning: variable 'core_worktree' is not initialized [cppcoreguidelines-init-variables]
                const char *core_worktree;
                            ^
                                          = NULL
/datasets/git/builtin/worktree.c:323:7: warning: variable 'bare' is not initialized [cppcoreguidelines-init-variables]
                int bare;
                    ^
                         = 0
/datasets/git/builtin/worktree.c:326:34: warning: 0666 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        copy_file(to_file, from_file, 0666)) {
                                                      ^
/datasets/git/builtin/worktree.c:338:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                to_file, "core.bare", NULL, "true", 0))
                                                                       ^
                                                                        {
/datasets/git/builtin/worktree.c:343:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                        "core.worktree", NULL))
                                                                               ^
                                                                                {
/datasets/git/builtin/worktree.c:358:23: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
        struct child_process cp = CHILD_PROCESS_INIT;
                             ^
/datasets/git/builtin/worktree.c:361:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->quiet)
                        ^
                         {
/datasets/git/builtin/worktree.c:367:12: warning: function 'add_worktree' has cognitive complexity of 29 (threshold 25) [readability-function-cognitive-complexity]
static int add_worktree(const char *path, const char *refname,
           ^
/datasets/git/builtin/worktree.c:389:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!opts->detach && !strbuf_check_branch_ref(&symref, refname) &&
        ^
/datasets/git/builtin/worktree.c:389:66: note: +1
        if (!opts->detach && !strbuf_check_branch_ref(&symref, refname) &&
                                                                        ^
/datasets/git/builtin/worktree.c:392:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!opts->force)
                ^
/datasets/git/builtin/worktree.c:396:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!commit)
        ^
/datasets/git/builtin/worktree.c:402:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!sb_name.len)
        ^
/datasets/git/builtin/worktree.c:408:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (safe_create_leading_directories_const(sb_repo.buf))
        ^
/datasets/git/builtin/worktree.c:412:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (mkdir(sb_repo.buf, 0777)) {
        ^
/datasets/git/builtin/worktree.c:414:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((errno != EEXIST) || !counter /* overflow */)
                ^
/datasets/git/builtin/worktree.c:414:25: note: +1
                if ((errno != EEXIST) || !counter /* overflow */)
                                      ^
/datasets/git/builtin/worktree.c:434:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->keep_locked)
        ^
/datasets/git/builtin/worktree.c:436:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/builtin/worktree.c:440:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (safe_create_leading_directories_const(sb_git.buf))
        ^
/datasets/git/builtin/worktree.c:470:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (core_apply_sparse_checkout)
        ^
/datasets/git/builtin/worktree.c:478:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (repository_format_worktree_config)
        ^
/datasets/git/builtin/worktree.c:485:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!is_branch)
        ^
/datasets/git/builtin/worktree.c:488:2: note: +1, nesting level increased to 1
        else {
        ^
/datasets/git/builtin/worktree.c:491:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opts->quiet)
                ^
/datasets/git/builtin/worktree.c:497:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ret)
        ^
/datasets/git/builtin/worktree.c:500:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->checkout &&
        ^
/datasets/git/builtin/worktree.c:500:21: note: +1
        if (opts->checkout &&
                           ^
/datasets/git/builtin/worktree.c:505:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        FREE_AND_NULL(junk_work_tree);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/worktree.c:506:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        FREE_AND_NULL(junk_git_dir);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/worktree.c:509:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ret || !opts->keep_locked) {
        ^
/datasets/git/builtin/worktree.c:509:10: note: +1
        if (ret || !opts->keep_locked) {
                ^
/datasets/git/builtin/worktree.c:519:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!ret && opts->checkout) {
        ^
/datasets/git/builtin/worktree.c:519:11: note: +1
        if (!ret && opts->checkout) {
                 ^
/datasets/git/builtin/worktree.c:367:25: warning: 2 adjacent parameters of 'add_worktree' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int add_worktree(const char *path, const char *refname,
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/worktree.c:367:37: note: the first parameter in the range is 'path'
static int add_worktree(const char *path, const char *refname,
                                    ^~~~
/datasets/git/builtin/worktree.c:367:55: note: the last parameter in the range is 'refname'
static int add_worktree(const char *path, const char *refname,
                                                      ^~~~~~~
/datasets/git/builtin/worktree.c:370:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct strbuf sb_git = STRBUF_INIT, sb_repo = STRBUF_INIT;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/worktree.c:371:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct strbuf sb = STRBUF_INIT, realpath = STRBUF_INIT;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/worktree.c:371:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT, realpath = STRBUF_INIT;
                      ^
/datasets/git/builtin/worktree.c:372:14: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
        const char *name;
                    ^
                         = NULL
/datasets/git/builtin/worktree.c:373:23: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
        struct child_process cp = CHILD_PROCESS_INIT;
                             ^
/datasets/git/builtin/worktree.c:376:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int len, ret;
        ^~~~~~~~~~~~~
/datasets/git/builtin/worktree.c:376:6: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int len, ret;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/worktree.c:376:11: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int len, ret;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/worktree.c:381:20: warning: variable 'worktrees' is not initialized [cppcoreguidelines-init-variables]
        struct worktree **worktrees;
                          ^
                                    = NULL
/datasets/git/builtin/worktree.c:392:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!opts->force)
                                 ^
                                  {
/datasets/git/builtin/worktree.c:396:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!commit)
                    ^
                     {
/datasets/git/builtin/worktree.c:402:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!sb_name.len)
                         ^
                          {
/datasets/git/builtin/worktree.c:407:8: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        len = sb_repo.len;
              ^
/datasets/git/builtin/worktree.c:408:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (safe_create_leading_directories_const(sb_repo.buf))
                                                               ^
                                                                {
/datasets/git/builtin/worktree.c:412:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (mkdir(sb_repo.buf, 0777)) {
        ^
/datasets/git/builtin/worktree.c:412:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'sb_repo' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (mkdir(sb_repo.buf, 0777)) {
               ^
/datasets/git/builtin/worktree.c:412:28: warning: 0777 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        while (mkdir(sb_repo.buf, 0777)) {
                                  ^
/datasets/git/builtin/worktree.c:414:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((errno != EEXIST) || !counter /* overflow */)
                                                                 ^
                                                                  {
/datasets/git/builtin/worktree.c:423:2: warning: the value returned by this function should be used [cert-err33-c]
        atexit(remove_junk);
        ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/worktree.c:423:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/worktree.c:434:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->keep_locked)
                              ^
                               {
/datasets/git/builtin/worktree.c:436:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/builtin/worktree.c:440:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (safe_create_leading_directories_const(sb_git.buf))
                                                              ^
                                                               {
/datasets/git/builtin/worktree.c:470:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (core_apply_sparse_checkout)
                                       ^
                                        {
/datasets/git/builtin/worktree.c:478:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repository_format_worktree_config)
                                              ^
                                               {
/datasets/git/builtin/worktree.c:485:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_branch)
                       ^
                        {
/datasets/git/builtin/worktree.c:491:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opts->quiet)
                                ^
                                 {
/datasets/git/builtin/worktree.c:497:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/builtin/worktree.c:501:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
            (ret = checkout_worktree(opts, &child_env)))
             ^
/datasets/git/builtin/worktree.c:501:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/builtin/worktree.c:501:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/builtin/worktree.c:501:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            (ret = checkout_worktree(opts, &child_env)))
                                                        ^
                                                         {
/datasets/git/builtin/worktree.c:505:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(junk_work_tree);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/worktree.c:506:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(junk_git_dir);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/builtin/worktree.c:550:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!commit)
                            ^
                             {
/datasets/git/builtin/worktree.c:552:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/builtin/worktree.c:559:17: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
                struct strbuf s = STRBUF_INIT;
                              ^
/datasets/git/builtin/worktree.c:561:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    ref_exists(s.buf))
                                      ^
                                       {
/datasets/git/builtin/worktree.c:566:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!commit)
                                    ^
                                     {
/datasets/git/builtin/worktree.c:577:6: warning: variable 'n' is not initialized [cppcoreguidelines-init-variables]
        int n;
            ^
              = 0
/datasets/git/builtin/worktree.c:577:6: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/worktree.c:578:6: warning: variable 'branch_exists' is not initialized [cppcoreguidelines-init-variables]
        int branch_exists;
            ^
                          = 0
/datasets/git/builtin/worktree.c:579:14: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
        const char *s = worktree_basename(path, &n);
                    ^
/datasets/git/builtin/worktree.c:583:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        UNLEAK(branchname);
        ^
/datasets/git/./git-compat-util.h:1544:21: note: expanded from macro 'UNLEAK'
#define UNLEAK(var) do {} while (0)
                    ^
/datasets/git/builtin/worktree.c:588:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (branch_exists)
                          ^
                           {
/datasets/git/builtin/worktree.c:601:12: warning: function 'add' has cognitive complexity of 37 (threshold 25) [readability-function-cognitive-complexity]
static int add(int ac, const char **av, const char *prefix)
           ^
/datasets/git/builtin/worktree.c:636:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!!opts.detach + !!new_branch + !!new_branch_force > 1)
        ^
/datasets/git/builtin/worktree.c:638:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (lock_reason && !keep_locked)
        ^
/datasets/git/builtin/worktree.c:638:18: note: +1
        if (lock_reason && !keep_locked)
                        ^
/datasets/git/builtin/worktree.c:640:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (lock_reason)
        ^
/datasets/git/builtin/worktree.c:642:7: note: +1, nesting level increased to 1
        else if (keep_locked)
             ^
/datasets/git/builtin/worktree.c:645:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ac < 1 || ac > 2)
        ^
/datasets/git/builtin/worktree.c:645:13: note: +1
        if (ac < 1 || ac > 2)
                   ^
/datasets/git/builtin/worktree.c:649:18: note: +1, including nesting penalty of 0, nesting level increased to 1
        branch = ac < 2 ? "HEAD" : av[1];
                        ^
/datasets/git/builtin/worktree.c:651:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(branch, "-"))
        ^
/datasets/git/builtin/worktree.c:654:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (new_branch_force) {
        ^
/datasets/git/builtin/worktree.c:659:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!opts.force &&
                ^
/datasets/git/builtin/worktree.c:660:53: note: +1
                    !strbuf_check_branch_ref(&symref, new_branch) &&
                                                                  ^
/datasets/git/builtin/worktree.c:666:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ac < 2 && !new_branch && !opts.detach) {
        ^
/datasets/git/builtin/worktree.c:666:28: note: +1
        if (ac < 2 && !new_branch && !opts.detach) {
                                  ^
/datasets/git/builtin/worktree.c:668:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (s)
                ^
/datasets/git/builtin/worktree.c:672:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ac == 2 && !new_branch && !opts.detach) {
        ^
/datasets/git/builtin/worktree.c:672:29: note: +1
        if (ac == 2 && !new_branch && !opts.detach) {
                                   ^
/datasets/git/builtin/worktree.c:678:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!commit) {
                ^
/datasets/git/builtin/worktree.c:680:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (remote) {
                        ^
/datasets/git/builtin/worktree.c:686:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!opts.quiet)
        ^
/datasets/git/builtin/worktree.c:689:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (new_branch) {
        ^
/datasets/git/builtin/worktree.c:693:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (new_branch_force)
                ^
/datasets/git/builtin/worktree.c:695:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opts.quiet)
                ^
/datasets/git/builtin/worktree.c:699:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opt_track)
                ^
/datasets/git/builtin/worktree.c:701:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (run_command(&cp))
                ^
/datasets/git/builtin/worktree.c:704:9: note: +1, nesting level increased to 1
        } else if (opt_track) {
               ^
/datasets/git/builtin/worktree.c:708:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        UNLEAK(path);
        ^
/datasets/git/./git-compat-util.h:1544:21: note: expanded from macro 'UNLEAK'
#define UNLEAK(var) do {} while (0)
                    ^
/datasets/git/builtin/worktree.c:709:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        UNLEAK(opts);
        ^
/datasets/git/./git-compat-util.h:1544:21: note: expanded from macro 'UNLEAK'
#define UNLEAK(var) do {} while (0)
                    ^
/datasets/git/builtin/worktree.c:601:20: warning: parameter name 'ac' is too short, expected at least 3 characters [readability-identifier-length]
static int add(int ac, const char **av, const char *prefix)
                   ^
/datasets/git/builtin/worktree.c:601:37: warning: parameter name 'av' is too short, expected at least 3 characters [readability-identifier-length]
static int add(int ac, const char **av, const char *prefix)
                                    ^
/datasets/git/builtin/worktree.c:605:8: warning: variable 'path' is not initialized [cppcoreguidelines-init-variables]
        char *path;
              ^
                   = NULL
/datasets/git/builtin/worktree.c:606:14: warning: variable 'branch' is not initialized [cppcoreguidelines-init-variables]
        const char *branch;
                    ^
                           = NULL
/datasets/git/builtin/worktree.c:612:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__FORCE(&opts.force,
                ^
/datasets/git/./parse-options.h:367:31: note: expanded from macro 'OPT__FORCE'
#define OPT__FORCE(var, h, f) OPT_COUNTUP_F('f', "force",   (var), (h), (f))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/worktree.c:619:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('d', "detach", &opts.detach, N_("detach HEAD at named commit")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/worktree.c:620:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "checkout", &opts.checkout, N_("populate the new working tree")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/worktree.c:621:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "lock", &keep_locked, N_("keep the new working tree locked")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/worktree.c:624:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__QUIET(&opts.quiet, N_("suppress progress reporting")),
                ^
/datasets/git/./parse-options.h:360:31: note: expanded from macro 'OPT__QUIET'
#define OPT__QUIET(var, h)    OPT_COUNTUP('q', "quiet",   (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/worktree.c:627:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                             PARSE_OPT_NOARG | PARSE_OPT_OPTARG),
                             ^
/datasets/git/./parse-options.h:377:47: note: expanded from macro 'OPT_PASSTHRU'
        { OPTION_CALLBACK, (s), (l), (v), (a), (h), (f), parse_opt_passthru }
                                                     ^
/datasets/git/builtin/worktree.c:628:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "guess-remote", &guess_remote,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/worktree.c:633:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&opts, 0, sizeof(opts));
        ^~~~~~
/datasets/git/builtin/worktree.c:633:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&opts, 0, sizeof(opts));
        ^~~~~~
/datasets/git/builtin/worktree.c:636:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!!opts.detach + !!new_branch + !!new_branch_force > 1)
                                                                  ^
                                                                   {
/datasets/git/builtin/worktree.c:638:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (lock_reason && !keep_locked)
                                        ^
                                         {
/datasets/git/builtin/worktree.c:640:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (lock_reason)
                        ^
                         {
/datasets/git/builtin/worktree.c:642:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (keep_locked)
                             ^
                              {
/datasets/git/builtin/worktree.c:645:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ac < 1 || ac > 2)
                             ^
                              {
/datasets/git/builtin/worktree.c:651:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(branch, "-"))
                                 ^
                                  {
/datasets/git/builtin/worktree.c:661:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    ref_exists(symref.buf))
                                           ^
                                            {
/datasets/git/builtin/worktree.c:667:15: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
                const char *s = dwim_branch(path, &new_branch);
                            ^
/datasets/git/builtin/worktree.c:668:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (s)
                      ^
                       {
/datasets/git/builtin/worktree.c:674:18: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
                struct commit *commit;
                               ^
                                      = NULL
/datasets/git/builtin/worktree.c:675:15: warning: variable 'remote' is not initialized [cppcoreguidelines-init-variables]
                const char *remote;
                            ^
                                   = NULL
/datasets/git/builtin/worktree.c:686:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opts.quiet)
                        ^
                         {
/datasets/git/builtin/worktree.c:690:24: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
                struct child_process cp = CHILD_PROCESS_INIT;
                                     ^
/datasets/git/builtin/worktree.c:693:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (new_branch_force)
                                     ^
                                      {
/datasets/git/builtin/worktree.c:695:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opts.quiet)
                               ^
                                {
/datasets/git/builtin/worktree.c:699:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opt_track)
                              ^
                               {
/datasets/git/builtin/worktree.c:701:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (run_command(&cp))
                                     ^
                                      {
/datasets/git/builtin/worktree.c:708:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        UNLEAK(path);
        ^
/datasets/git/./git-compat-util.h:1544:21: note: expanded from macro 'UNLEAK'
#define UNLEAK(var) do {} while (0)
                    ^
/datasets/git/builtin/worktree.c:709:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        UNLEAK(opts);
        ^
/datasets/git/./git-compat-util.h:1544:21: note: expanded from macro 'UNLEAK'
#define UNLEAK(var) do {} while (0)
                    ^
/datasets/git/builtin/worktree.c:713:54: warning: parameter name 'wt' is too short, expected at least 3 characters [readability-identifier-length]
static void show_worktree_porcelain(struct worktree *wt, int line_terminator)
                                                     ^
/datasets/git/builtin/worktree.c:715:14: warning: variable 'reason' is not initialized [cppcoreguidelines-init-variables]
        const char *reason;
                    ^
                           = NULL
/datasets/git/builtin/worktree.c:718:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (wt->is_bare)
                        ^
                         {
/datasets/git/builtin/worktree.c:722:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (wt->is_detached)
                                    ^
                                     {
/datasets/git/builtin/worktree.c:724:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (wt->head_ref)
                                      ^
                                       {
/datasets/git/builtin/worktree.c:730:3: warning: the value returned by this function should be used [cert-err33-c]
                fputs("locked", stdout);
                ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/worktree.c:730:3: note: cast the expression to void to silence this warning
/datasets/git/builtin/worktree.c:732:4: warning: the value returned by this function should be used [cert-err33-c]
                        fputc(' ', stdout);
                        ^~~~~~~~~~~~~~~~~~
/datasets/git/builtin/worktree.c:732:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/worktree.c:735:4: warning: the value returned by this function should be used [cert-err33-c]
                        fputc(line_terminator, stdout);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/worktree.c:735:4: note: cast the expression to void to silence this warning
/datasets/git/builtin/worktree.c:740:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (reason)
                   ^
                    {
/datasets/git/builtin/worktree.c:743:2: warning: the value returned by this function should be used [cert-err33-c]
        fputc(line_terminator, stdout);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/worktree.c:743:2: note: cast the expression to void to silence this warning
/datasets/git/builtin/worktree.c:746:44: warning: parameter name 'wt' is too short, expected at least 3 characters [readability-identifier-length]
static void show_worktree(struct worktree *wt, int path_maxlen, int abbrev_len)
                                           ^
/datasets/git/builtin/worktree.c:746:48: warning: 2 adjacent parameters of 'show_worktree' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void show_worktree(struct worktree *wt, int path_maxlen, int abbrev_len)
                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/worktree.c:746:52: note: the first parameter in the range is 'path_maxlen'
static void show_worktree(struct worktree *wt, int path_maxlen, int abbrev_len)
                                                   ^~~~~~~~~~~
/datasets/git/builtin/worktree.c:746:69: note: the last parameter in the range is 'abbrev_len'
static void show_worktree(struct worktree *wt, int path_maxlen, int abbrev_len)
                                                                    ^~~~~~~~~~
/datasets/git/builtin/worktree.c:748:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/worktree.c:749:21: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int cur_path_len = strlen(wt->path);
                           ^
/datasets/git/builtin/worktree.c:751:14: warning: variable 'reason' is not initialized [cppcoreguidelines-init-variables]
        const char *reason;
                    ^
                           = NULL
/datasets/git/builtin/worktree.c:754:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (wt->is_bare)
                        ^
                         {
/datasets/git/builtin/worktree.c:759:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (wt->is_detached)
                                    ^
                                     {
/datasets/git/builtin/worktree.c:765:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/builtin/worktree.c:770:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (verbose && reason && *reason)
                                         ^
                                          {
/datasets/git/builtin/worktree.c:772:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (reason)
                        ^
                         {
/datasets/git/builtin/worktree.c:776:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (verbose && reason)
                              ^
                               {
/datasets/git/builtin/worktree.c:778:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (reason)
                        ^
                         {
/datasets/git/builtin/worktree.c:785:46: warning: parameter name 'wt' is too short, expected at least 3 characters [readability-identifier-length]
static void measure_widths(struct worktree **wt, int *abbrev, int *maxlen)
                                             ^
/datasets/git/builtin/worktree.c:785:50: warning: 2 adjacent parameters of 'measure_widths' of similar type ('int *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void measure_widths(struct worktree **wt, int *abbrev, int *maxlen)
                                                 ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/worktree.c:785:55: note: the first parameter in the range is 'abbrev'
static void measure_widths(struct worktree **wt, int *abbrev, int *maxlen)
                                                      ^~~~~~
/datasets/git/builtin/worktree.c:785:68: note: the last parameter in the range is 'maxlen'
static void measure_widths(struct worktree **wt, int *abbrev, int *maxlen)
                                                                   ^~~~~~
/datasets/git/builtin/worktree.c:787:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/builtin/worktree.c:787:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/worktree.c:789:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; wt[i]; i++) {
        ^
/datasets/git/builtin/worktree.c:790:7: warning: variable 'sha1_len' is not initialized [cppcoreguidelines-init-variables]
                int sha1_len;
                    ^
                             = 0
/datasets/git/builtin/worktree.c:791:18: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int path_len = strlen(wt[i]->path);
                               ^
/datasets/git/builtin/worktree.c:793:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (path_len > *maxlen)
                                       ^
                                        {
/datasets/git/builtin/worktree.c:795:14: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                sha1_len = strlen(find_unique_abbrev(&wt[i]->head_oid, *abbrev));
                           ^
/datasets/git/builtin/worktree.c:796:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (sha1_len > *abbrev)
                                       ^
                                        {
/datasets/git/builtin/worktree.c:801:32: warning: parameter name 'a_' is too short, expected at least 3 characters [readability-identifier-length]
static int pathcmp(const void *a_, const void *b_)
                               ^
/datasets/git/builtin/worktree.c:801:48: warning: parameter name 'b_' is too short, expected at least 3 characters [readability-identifier-length]
static int pathcmp(const void *a_, const void *b_)
                                               ^
/datasets/git/builtin/worktree.c:803:32: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        const struct worktree *const *a = a_;
                                      ^
/datasets/git/builtin/worktree.c:804:32: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        const struct worktree *const *b = b_;
                                      ^
/datasets/git/builtin/worktree.c:808:40: warning: parameter name 'wt' is too short, expected at least 3 characters [readability-identifier-length]
static void pathsort(struct worktree **wt)
                                       ^
/datasets/git/builtin/worktree.c:810:6: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
        int n = 0;
            ^
/datasets/git/builtin/worktree.c:811:20: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        struct worktree **p = wt;
                          ^
/datasets/git/builtin/worktree.c:813:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*p++)
        ^
/datasets/git/builtin/worktree.c:813:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (*p++)
               ^
/datasets/git/builtin/worktree.c:813:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (*p++)
                    ^
                     {
/datasets/git/builtin/worktree.c:815:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        QSORT(wt, n, pathcmp);
        ^
/datasets/git/./git-compat-util.h:1304:56: note: expanded from macro 'QSORT'
#define QSORT(base, n, compar) sane_qsort((base), (n), sizeof(*(base)), compar)
                                                       ^
/datasets/git/builtin/worktree.c:818:21: warning: parameter name 'ac' is too short, expected at least 3 characters [readability-identifier-length]
static int list(int ac, const char **av, const char *prefix)
                    ^
/datasets/git/builtin/worktree.c:818:38: warning: parameter name 'av' is too short, expected at least 3 characters [readability-identifier-length]
static int list(int ac, const char **av, const char *prefix)
                                     ^
/datasets/git/builtin/worktree.c:824:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "porcelain", &porcelain, N_("machine-readable output")),
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/worktree.c:825:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__VERBOSE(&verbose, N_("show extended annotations and reasons, if available")),
                ^
/datasets/git/./parse-options.h:359:31: note: expanded from macro 'OPT__VERBOSE'
#define OPT__VERBOSE(var, h)  OPT_COUNTUP('v', "verbose", (var), (h))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:181:37: note: expanded from macro 'OPT_COUNTUP'
#define OPT_COUNTUP(s, l, v, h)     OPT_COUNTUP_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/worktree.c:828:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT('z', NULL, &line_terminator,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/builtin/worktree.c:835:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ac)
               ^
                {
/datasets/git/builtin/worktree.c:837:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (verbose && porcelain)
                                      ^
                                       {
/datasets/git/builtin/worktree.c:839:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!line_terminator && !porcelain)
                                                ^
                                                 {
/datasets/git/builtin/worktree.c:843:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int path_maxlen = 0, abbrev = DEFAULT_ABBREV, i;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/worktree.c:843:49: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int path_maxlen = 0, abbrev = DEFAULT_ABBREV, i;
                                                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/worktree.c:843:49: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/worktree.c:848:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!porcelain)
                               ^
                                {
/datasets/git/builtin/worktree.c:851:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; worktrees[i]; i++) {
                ^
/datasets/git/builtin/worktree.c:852:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (porcelain)
                                      ^
                                       {
/datasets/git/builtin/worktree.c:855:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/builtin/worktree.c:863:30: warning: parameter name 'ac' is too short, expected at least 3 characters [readability-identifier-length]
static int lock_worktree(int ac, const char **av, const char *prefix)
                             ^
/datasets/git/builtin/worktree.c:863:47: warning: parameter name 'av' is too short, expected at least 3 characters [readability-identifier-length]
static int lock_worktree(int ac, const char **av, const char *prefix)
                                              ^
/datasets/git/builtin/worktree.c:865:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *reason = "", *old_reason;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/worktree.c:865:28: warning: variable 'old_reason' is not initialized [cppcoreguidelines-init-variables]
        const char *reason = "", *old_reason;
                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/worktree.c:871:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct worktree **worktrees, *wt;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/worktree.c:871:20: warning: variable 'worktrees' is not initialized [cppcoreguidelines-init-variables]
        struct worktree **worktrees, *wt;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/worktree.c:871:32: warning: variable 'wt' is not initialized [cppcoreguidelines-init-variables]
        struct worktree **worktrees, *wt;
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/worktree.c:871:32: warning: variable name 'wt' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/worktree.c:874:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ac != 1)
                    ^
                     {
/datasets/git/builtin/worktree.c:879:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!wt)
                ^
                 {
/datasets/git/builtin/worktree.c:881:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_main_worktree(wt))
                                 ^
                                  {
/datasets/git/builtin/worktree.c:886:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*old_reason)
                                ^
                                 {
/datasets/git/builtin/worktree.c:898:32: warning: parameter name 'ac' is too short, expected at least 3 characters [readability-identifier-length]
static int unlock_worktree(int ac, const char **av, const char *prefix)
                               ^
/datasets/git/builtin/worktree.c:898:49: warning: parameter name 'av' is too short, expected at least 3 characters [readability-identifier-length]
static int unlock_worktree(int ac, const char **av, const char *prefix)
                                                ^
/datasets/git/builtin/worktree.c:903:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct worktree **worktrees, *wt;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/worktree.c:903:20: warning: variable 'worktrees' is not initialized [cppcoreguidelines-init-variables]
        struct worktree **worktrees, *wt;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/worktree.c:903:32: warning: variable 'wt' is not initialized [cppcoreguidelines-init-variables]
        struct worktree **worktrees, *wt;
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/worktree.c:903:32: warning: variable name 'wt' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/worktree.c:904:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/builtin/worktree.c:907:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ac != 1)
                    ^
                     {
/datasets/git/builtin/worktree.c:912:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!wt)
                ^
                 {
/datasets/git/builtin/worktree.c:914:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_main_worktree(wt))
                                 ^
                                  {
/datasets/git/builtin/worktree.c:916:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!worktree_lock_reason(wt))
                                      ^
                                       {
/datasets/git/builtin/worktree.c:923:59: warning: parameter name 'wt' is too short, expected at least 3 characters [readability-identifier-length]
static void validate_no_submodules(const struct worktree *wt)
                                                          ^
/datasets/git/builtin/worktree.c:927:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, found_submodules = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/worktree.c:927:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, found_submodules = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/worktree.c:927:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/worktree.c:938:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < istate.cache_nr; i++) {
                ^
/datasets/git/builtin/worktree.c:939:24: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                        struct cache_entry *ce = istate.cache[i];
                                            ^
/datasets/git/builtin/worktree.c:940:8: warning: variable 'err' is not initialized [cppcoreguidelines-init-variables]
                        int err;
                            ^
                                = 0
/datasets/git/builtin/worktree.c:942:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!S_ISGITLINK(ce->ce_mode))
                             ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/builtin/worktree.c:942:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!S_ISGITLINK(ce->ce_mode))
                                                      ^
                                                       {
/datasets/git/builtin/worktree.c:947:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!is_submodule_populated_gently(path.buf, &err))
                                                                           ^
                                                                            {
/datasets/git/builtin/worktree.c:957:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (found_submodules)
                             ^
                              {
/datasets/git/builtin/worktree.c:961:30: warning: parameter name 'ac' is too short, expected at least 3 characters [readability-identifier-length]
static int move_worktree(int ac, const char **av, const char *prefix)
                             ^
/datasets/git/builtin/worktree.c:961:47: warning: parameter name 'av' is too short, expected at least 3 characters [readability-identifier-length]
static int move_worktree(int ac, const char **av, const char *prefix)
                                              ^
/datasets/git/builtin/worktree.c:965:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__FORCE(&force,
                ^
/datasets/git/./parse-options.h:367:31: note: expanded from macro 'OPT__FORCE'
#define OPT__FORCE(var, h, f) OPT_COUNTUP_F('f', "force",   (var), (h), (f))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/worktree.c:970:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct worktree **worktrees, *wt;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/worktree.c:970:20: warning: variable 'worktrees' is not initialized [cppcoreguidelines-init-variables]
        struct worktree **worktrees, *wt;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/worktree.c:970:32: warning: variable 'wt' is not initialized [cppcoreguidelines-init-variables]
        struct worktree **worktrees, *wt;
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/worktree.c:970:32: warning: variable name 'wt' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/worktree.c:974:8: warning: variable 'path' is not initialized [cppcoreguidelines-init-variables]
        char *path;
              ^
                   = NULL
/datasets/git/builtin/worktree.c:978:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ac != 2)
                    ^
                     {
/datasets/git/builtin/worktree.c:987:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!wt)
                ^
                 {
/datasets/git/builtin/worktree.c:989:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_main_worktree(wt))
                                 ^
                                  {
/datasets/git/builtin/worktree.c:994:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!sep)
                         ^
                          {
/datasets/git/builtin/worktree.c:1004:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (force < 2)
                      ^
                       {
/datasets/git/builtin/worktree.c:1007:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*reason)
                            ^
                             {
/datasets/git/builtin/worktree.c:1012:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (validate_worktree(wt, &errmsg, 0))
                                              ^
                                               {
/datasets/git/builtin/worktree.c:1017:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (rename(wt->path, dst.buf) == -1)
                                            ^
                                             {
/datasets/git/builtin/worktree.c:1038:51: warning: parameter name 'wt' is too short, expected at least 3 characters [readability-identifier-length]
static void check_clean_worktree(struct worktree *wt,
                                                  ^
/datasets/git/builtin/worktree.c:1041:23: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
        struct child_process cp;
                             ^
/datasets/git/builtin/worktree.c:1043:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/builtin/worktree.c:1063:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/builtin/worktree.c:1066:8: warning: narrowing conversion from 'ssize_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        ret = xread(cp.out, buf, sizeof(buf));
              ^
/datasets/git/builtin/worktree.c:1067:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/builtin/worktree.c:1072:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/builtin/worktree.c:1077:50: warning: parameter name 'wt' is too short, expected at least 3 characters [readability-identifier-length]
static int delete_git_work_tree(struct worktree *wt)
                                                 ^
/datasets/git/builtin/worktree.c:1079:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/builtin/worktree.c:1091:32: warning: parameter name 'ac' is too short, expected at least 3 characters [readability-identifier-length]
static int remove_worktree(int ac, const char **av, const char *prefix)
                               ^
/datasets/git/builtin/worktree.c:1091:49: warning: parameter name 'av' is too short, expected at least 3 characters [readability-identifier-length]
static int remove_worktree(int ac, const char **av, const char *prefix)
                                                ^
/datasets/git/builtin/worktree.c:1095:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT__FORCE(&force,
                ^
/datasets/git/./parse-options.h:367:31: note: expanded from macro 'OPT__FORCE'
#define OPT__FORCE(var, h, f) OPT_COUNTUP_F('f', "force",   (var), (h), (f))
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:164:17: note: expanded from macro 'OPT_COUNTUP_F'
                                       (h), PARSE_OPT_NOARG|(f) }
                                            ^~~~~~~~~~~~~~~
/datasets/git/builtin/worktree.c:1100:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct worktree **worktrees, *wt;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/worktree.c:1100:20: warning: variable 'worktrees' is not initialized [cppcoreguidelines-init-variables]
        struct worktree **worktrees, *wt;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/worktree.c:1100:32: warning: variable 'wt' is not initialized [cppcoreguidelines-init-variables]
        struct worktree **worktrees, *wt;
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/worktree.c:1100:32: warning: variable name 'wt' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/worktree.c:1106:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ac != 1)
                    ^
                     {
/datasets/git/builtin/worktree.c:1111:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!wt)
                ^
                 {
/datasets/git/builtin/worktree.c:1113:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_main_worktree(wt))
                                 ^
                                  {
/datasets/git/builtin/worktree.c:1115:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (force < 2)
                      ^
                       {
/datasets/git/builtin/worktree.c:1118:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*reason)
                            ^
                             {
/datasets/git/builtin/worktree.c:1123:37: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (validate_worktree(wt, &errmsg, WT_VALIDATE_WORKTREE_MISSING_OK))
                                           ^
/datasets/git/./worktree.h:99:42: note: expanded from macro 'WT_VALIDATE_WORKTREE_MISSING_OK'
#define WT_VALIDATE_WORKTREE_MISSING_OK (1 << 0)
                                         ^
/datasets/git/builtin/worktree.c:1123:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (validate_worktree(wt, &errmsg, WT_VALIDATE_WORKTREE_MISSING_OK))
                                                                            ^
                                                                             {
/datasets/git/builtin/worktree.c:1129:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!force)
                           ^
                            {
/datasets/git/builtin/worktree.c:1132:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ret |= delete_git_work_tree(wt);
                ^~~
/datasets/git/builtin/worktree.c:1138:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ret |= delete_git_dir(wt->id);
        ^~~
/datasets/git/builtin/worktree.c:1156:23: warning: parameter name 'ac' is too short, expected at least 3 characters [readability-identifier-length]
static int repair(int ac, const char **av, const char *prefix)
                      ^
/datasets/git/builtin/worktree.c:1156:40: warning: parameter name 'av' is too short, expected at least 3 characters [readability-identifier-length]
static int repair(int ac, const char **av, const char *prefix)
                                       ^
/datasets/git/builtin/worktree.c:1158:15: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        const char **p;
                     ^
                       = NULL
/datasets/git/builtin/worktree.c:1158:15: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/builtin/worktree.c:1163:6: warning: variable name 'rc' is too short, expected at least 3 characters [readability-identifier-length]
        int rc = 0;
            ^
/datasets/git/builtin/worktree.c:1167:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; *p; p++)
        ^
/datasets/git/builtin/worktree.c:1167:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; *p; p++)
               ^
/datasets/git/builtin/worktree.c:1167:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (; *p; p++)
                       ^
                        {
/datasets/git/builtin/worktree.c:1173:22: warning: parameter name 'ac' is too short, expected at least 3 characters [readability-identifier-length]
int cmd_worktree(int ac, const char **av, const char *prefix)
                     ^
/datasets/git/builtin/worktree.c:1173:39: warning: parameter name 'av' is too short, expected at least 3 characters [readability-identifier-length]
int cmd_worktree(int ac, const char **av, const char *prefix)
                                      ^
/datasets/git/builtin/worktree.c:1175:27: warning: variable name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
        parse_opt_subcommand_fn *fn = NULL;
                                 ^
/datasets/git/builtin/worktree.c:1190:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!prefix)
                    ^
                     {
/datasets/git/builtin/write-tree.c:8:1: warning: #includes are not sorted properly [llvm-include-order]
#include "cache.h"
^        ~~~~~~~~~
         "cache-tree.h"
/datasets/git/builtin/write-tree.c:21:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int flags = 0, ret;
        ^~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/write-tree.c:21:17: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int flags = 0, ret;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/builtin/write-tree.c:24:14: warning: variable name 'me' is too short, expected at least 3 characters [readability-identifier-length]
        const char *me = "git-write-tree";
                    ^
/datasets/git/builtin/write-tree.c:26:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT(0, "missing-ok", &flags, N_("allow missing objects"),
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/builtin/write-tree.c:32:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                  PARSE_OPT_HIDDEN | PARSE_OPT_NOARG, NULL,
                  ^~~~~~~~~~~~~~~~
/datasets/git/builtin/write-tree.c:38:2: warning: Value stored to 'argc' is never read [clang-analyzer-deadcode.DeadStores]
        argc = parse_options(argc, argv, cmd_prefix, write_tree_options,
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/write-tree.c:38:2: note: Value stored to 'argc' is never read
        argc = parse_options(argc, argv, cmd_prefix, write_tree_options,
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/builtin/write-tree.c:42:2: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
        switch (ret) {
        ^
/datasets/git/bulk-checkin.c:6:1: warning: #includes are not sorted properly [llvm-include-order]
#include "lockfile.h"
^        ~~~~~~~~~~~~
         "csum-file.h"
/datasets/git/bulk-checkin.c:16:12: warning: variable 'odb_transaction_nesting' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int odb_transaction_nesting;
           ^
/datasets/git/bulk-checkin.c:18:27: warning: variable 'bulk_fsync_objdir' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct tmp_objdir *bulk_fsync_objdir;
                          ^
/datasets/git/bulk-checkin.c:18:27: warning: variable 'bulk_fsync_objdir' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/bulk-checkin.c:20:15: warning: accessing fields in struct 'bulk_checkin_packfile' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
static struct bulk_checkin_packfile {
              ^
/datasets/git/bulk-checkin.c:20:15: note: use "__attribute__((aligned(128)))" to align struct 'bulk_checkin_packfile' to 128 bytes
/datasets/git/bulk-checkin.c:29:3: warning: variable 'bulk_checkin_packfile' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} bulk_checkin_packfile;
  ^
/datasets/git/bulk-checkin.c:51:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/bulk-checkin.c:51:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/bulk-checkin.c:53:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!state->f)
                      ^
                       {
/datasets/git/bulk-checkin.c:62:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                  CSUM_HASH_IN_STREAM | CSUM_FSYNC | CSUM_CLOSE);
                                  ^
/datasets/git/./csum-file.h:37:29: note: expanded from macro 'CSUM_HASH_IN_STREAM'
#define CSUM_HASH_IN_STREAM     4
                                ^
/datasets/git/bulk-checkin.c:64:7: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
                int fd = finalize_hashfile(state->f, hash, FSYNC_COMPONENT_PACK, 0);
                    ^
/datasets/git/bulk-checkin.c:76:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < state->nr_written; i++)
        ^
/datasets/git/bulk-checkin.c:76:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < state->nr_written; i++)
                                               ^
                                                {
/datasets/git/bulk-checkin.c:81:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(state, 0, sizeof(*state));
        ^~~~~~
/datasets/git/bulk-checkin.c:81:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(state, 0, sizeof(*state));
        ^~~~~~
/datasets/git/bulk-checkin.c:94:19: warning: variable 'temp' is not initialized [cppcoreguidelines-init-variables]
        struct tempfile *temp;
                         ^
                              = NULL
/datasets/git/bulk-checkin.c:96:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!bulk_fsync_objdir)
                               ^
                                {
/datasets/git/bulk-checkin.c:124:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/bulk-checkin.c:124:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/bulk-checkin.c:127:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (has_object_file(oid))
                                 ^
                                  {
/datasets/git/bulk-checkin.c:131:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < state->nr_written; i++)
        ^
/datasets/git/bulk-checkin.c:131:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < state->nr_written; i++)
                                               ^
                                                {
/datasets/git/bulk-checkin.c:132:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (oideq(&state->written[i]->oid, oid))
                                                        ^
                                                         {
/datasets/git/bulk-checkin.c:154:12: warning: function 'stream_to_pack' has cognitive complexity of 39 (threshold 25) [readability-function-cognitive-complexity]
static int stream_to_pack(struct bulk_checkin_packfile *state,
           ^
/datasets/git/bulk-checkin.c:173:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (status != Z_STREAM_END) {
        ^
/datasets/git/bulk-checkin.c:174:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (size && !s.avail_in) {
                ^
/datasets/git/bulk-checkin.c:174:12: note: +1
                if (size && !s.avail_in) {
                         ^
/datasets/git/bulk-checkin.c:175:40: note: +3, including nesting penalty of 2, nesting level increased to 3
                        ssize_t rsize = size < sizeof(ibuf) ? size : sizeof(ibuf);
                                                            ^
/datasets/git/bulk-checkin.c:177:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (read_result < 0)
                        ^
/datasets/git/bulk-checkin.c:179:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (read_result != rsize)
                        ^
/datasets/git/bulk-checkin.c:183:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (*already_hashed_to < offset) {
                        ^
/datasets/git/bulk-checkin.c:185:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (rsize < hsize)
                                ^
/datasets/git/bulk-checkin.c:187:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (hsize)
                                ^
/datasets/git/bulk-checkin.c:196:33: note: +2, including nesting penalty of 1, nesting level increased to 2
                status = git_deflate(&s, size ? 0 : Z_FINISH);
                                              ^
/datasets/git/bulk-checkin.c:198:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!s.avail_out || status == Z_STREAM_END) {
                ^
/datasets/git/bulk-checkin.c:198:20: note: +1
                if (!s.avail_out || status == Z_STREAM_END) {
                                 ^
/datasets/git/bulk-checkin.c:199:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (write_object) {
                        ^
/datasets/git/bulk-checkin.c:203:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (state->nr_written &&
                                ^
/datasets/git/bulk-checkin.c:204:29: note: +1
                                    pack_size_limit_cfg &&
                                                        ^
/datasets/git/bulk-checkin.c:217:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                switch (status) {
                ^
/datasets/git/bulk-checkin.c:156:6: warning: 2 adjacent parameters of 'stream_to_pack' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                          int fd, size_t size, enum object_type type,
                          ^~~~~~~~~~~~~~~~~~~
/datasets/git/bulk-checkin.c:156:10: note: the first parameter in the range is 'fd'
                          int fd, size_t size, enum object_type type,
                              ^~
/datasets/git/bulk-checkin.c:156:21: note: the last parameter in the range is 'size'
                          int fd, size_t size, enum object_type type,
                                         ^~~~
/datasets/git/bulk-checkin.c:156:6: note: 
                          int fd, size_t size, enum object_type type,
                          ^
/datasets/git/bulk-checkin.c:156:14: note: 'int' and 'size_t' may be implicitly converted: 'int' -> 'size_t' (as 'unsigned long'), 'size_t' (as 'unsigned long') -> 'int'
                          int fd, size_t size, enum object_type type,
                                  ^
/datasets/git/bulk-checkin.c:156:10: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
                          int fd, size_t size, enum object_type type,
                              ^
/datasets/git/bulk-checkin.c:163:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int status = Z_OK;
        ^
/datasets/git/bulk-checkin.c:159:14: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
        git_zstream s;
                    ^
/datasets/git/bulk-checkin.c:160:21: warning: 16384 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        unsigned char ibuf[16384];
                           ^
/datasets/git/bulk-checkin.c:161:21: warning: 16384 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        unsigned char obuf[16384];
                           ^
/datasets/git/bulk-checkin.c:162:11: warning: variable 'hdrlen' is not initialized [cppcoreguidelines-init-variables]
        unsigned hdrlen;
                 ^
                        = 0
/datasets/git/bulk-checkin.c:164:21: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int write_object = (flags & HASH_WRITE_OBJECT);
                           ^
/datasets/git/bulk-checkin.c:164:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int write_object = (flags & HASH_WRITE_OBJECT);
                            ^
/datasets/git/bulk-checkin.c:173:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (status != Z_STREAM_END) {
        ^
/datasets/git/bulk-checkin.c:173:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'status' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (status != Z_STREAM_END) {
               ^
/datasets/git/bulk-checkin.c:175:42: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'ssize_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        ssize_t rsize = size < sizeof(ibuf) ? size : sizeof(ibuf);
                                                              ^
/datasets/git/bulk-checkin.c:177:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (read_result < 0)
                                            ^
                                             {
/datasets/git/bulk-checkin.c:179:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (read_result != rsize)
                                                 ^
                                                  {
/datasets/git/bulk-checkin.c:185:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (rsize < hsize)
                                                  ^
                                                   {
/datasets/git/bulk-checkin.c:187:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (hsize)
                                          ^
                                           {
/datasets/git/bulk-checkin.c:211:22: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'off_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                state->offset += written;
                                                 ^
/datasets/git/bulk-checkin.c:234:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & HASH_WRITE_OBJECT) || state->f)
              ^
/datasets/git/bulk-checkin.c:234:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(flags & HASH_WRITE_OBJECT) || state->f)
                                                     ^
                                                      {
/datasets/git/bulk-checkin.c:242:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!state->offset)
                           ^
                            {
/datasets/git/bulk-checkin.c:248:11: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
                           int fd, size_t size,
                               ^
/datasets/git/bulk-checkin.c:252:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        off_t seekback, already_hashed_to;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/bulk-checkin.c:252:8: warning: variable 'seekback' is not initialized [cppcoreguidelines-init-variables]
        off_t seekback, already_hashed_to;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/bulk-checkin.c:252:18: warning: variable 'already_hashed_to' is not initialized [cppcoreguidelines-init-variables]
        off_t seekback, already_hashed_to;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/bulk-checkin.c:254:21: warning: 16384 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        unsigned char obuf[16384];
                           ^
/datasets/git/bulk-checkin.c:255:11: warning: variable 'header_len' is not initialized [cppcoreguidelines-init-variables]
        unsigned header_len;
                 ^
                            = 0
/datasets/git/bulk-checkin.c:260:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (seekback == (off_t) -1)
                                   ^
                                    {
/datasets/git/bulk-checkin.c:269:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((flags & HASH_WRITE_OBJECT) != 0)
             ^
/datasets/git/bulk-checkin.c:269:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((flags & HASH_WRITE_OBJECT) != 0)
                                             ^
                                              {
/datasets/git/bulk-checkin.c:274:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/bulk-checkin.c:282:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                    fd, size, type, path, flags))
                                                                 ^
                                                                  {
/datasets/git/bulk-checkin.c:289:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!idx)
                         ^
                          {
/datasets/git/bulk-checkin.c:294:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (lseek(fd, seekback, SEEK_SET) == (off_t) -1)
                                                                ^
                                                                 {
/datasets/git/bulk-checkin.c:298:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!idx)
                 ^
                  {
/datasets/git/bulk-checkin.c:308:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                ALLOC_GROW(state->written,
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/bulk-checkin.c:308:3: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                ALLOC_GROW(state->written,
                ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/bulk-checkin.c:324:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!odb_transaction_nesting || bulk_fsync_objdir)
                                                          ^
                                                           {
/datasets/git/bulk-checkin.c:328:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (bulk_fsync_objdir)
                              ^
                               {
/datasets/git/bulk-checkin.c:332:42: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
void fsync_loose_object_bulk_checkin(int fd, const char *filename)
                                         ^
/datasets/git/bulk-checkin.c:343:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (errno == ENOSYS)
                                    ^
                                     {
/datasets/git/bulk-checkin.c:350:14: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
                       int fd, size_t size, enum object_type type,
                           ^
/datasets/git/bulk-checkin.c:355:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!odb_transaction_nesting)
                                     ^
                                      {
/datasets/git/bulk-checkin.c:374:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (odb_transaction_nesting < 0)
                                        ^
                                         {
/datasets/git/bulk-checkin.c:377:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (odb_transaction_nesting)
                                    ^
                                     {
/datasets/git/bundle-uri.c:4:1: warning: #includes are not sorted properly [llvm-include-order]
#include "object-store.h"
^        ~~~~~~~~~~~~~~~~
         "config.h"
/datasets/git/bundle-uri.c:11:40: warning: parameter 'hashmap_cmp_fn_data' is unused [misc-unused-parameters]
static int compare_bundles(const void *hashmap_cmp_fn_data,
                                       ^
/datasets/git/bundle-uri.c:14:19: warning: parameter name 'id' is too short, expected at least 3 characters [readability-identifier-length]
                           const void *id)
                                       ^
/datasets/git/bundle-uri.c:16:35: warning: variable name 'e1' is too short, expected at least 3 characters [readability-identifier-length]
        const struct remote_bundle_info *e1 =
                                         ^
/datasets/git/bundle-uri.c:18:35: warning: variable name 'e2' is too short, expected at least 3 characters [readability-identifier-length]
        const struct remote_bundle_info *e2 =
                                         ^
/datasets/git/bundle-uri.c:26:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(list, 0, sizeof(*list));
        ^~~~~~
/datasets/git/bundle-uri.c:26:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(list, 0, sizeof(*list));
        ^~~~~~
/datasets/git/bundle-uri.c:36:15: warning: parameter 'data' is unused [misc-unused-parameters]
                                    void *data)
                                          ^
/datasets/git/bundle-uri.c:38:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(bundle->id);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/bundle-uri.c:39:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(bundle->uri);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/bundle-uri.c:40:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(bundle->file);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/bundle-uri.c:47:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!list)
                  ^
                   {
/datasets/git/bundle-uri.c:58:29: warning: variable 'info' is not initialized [cppcoreguidelines-init-variables]
        struct remote_bundle_info *info;
                                   ^
                                        = NULL
/datasets/git/bundle-uri.c:59:22: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        struct hashmap_iter i;
                            ^
/datasets/git/bundle-uri.c:61:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        hashmap_for_each_entry(&list->bundles, &i, info, ent) {
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/bundle-uri.c:61:45: warning: backward branch (for loop) is ID-dependent due to variable reference to 'info' and may cause performance degradation [altera-id-dependent-backward-branch]
        hashmap_for_each_entry(&list->bundles, &i, info, ent) {
                                                   ^
/datasets/git/bundle-uri.c:64:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (result)
                           ^
                            {
/datasets/git/bundle-uri.c:73:8: warning: variable name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
        FILE *fp = data;
              ^
/datasets/git/bundle-uri.c:74:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(fp, "[bundle \"%s\"]\n", info->id);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/bundle-uri.c:74:2: note: cast the expression to void to silence this warning
/datasets/git/bundle-uri.c:75:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(fp, "\turi = %s\n", info->uri);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/bundle-uri.c:75:2: note: cast the expression to void to silence this warning
/datasets/git/bundle-uri.c:79:30: warning: parameter name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
void print_bundle_list(FILE *fp, struct bundle_list *list)
                             ^
/datasets/git/bundle-uri.c:81:14: warning: variable 'mode' is not initialized [cppcoreguidelines-init-variables]
        const char *mode;
                    ^
                         = NULL
/datasets/git/bundle-uri.c:97:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(fp, "[bundle]\n");
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/bundle-uri.c:97:2: note: cast the expression to void to silence this warning
/datasets/git/bundle-uri.c:98:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(fp, "\tversion = %d\n", list->version);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/bundle-uri.c:98:2: note: cast the expression to void to silence this warning
/datasets/git/bundle-uri.c:99:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(fp, "\tmode = %s\n", mode);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/bundle-uri.c:99:2: note: cast the expression to void to silence this warning
/datasets/git/bundle-uri.c:109:31: warning: 2 adjacent parameters of 'bundle_list_update' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int bundle_list_update(const char *key, const char *value,
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/bundle-uri.c:109:43: note: the first parameter in the range is 'key'
static int bundle_list_update(const char *key, const char *value,
                                          ^~~
/datasets/git/bundle-uri.c:109:60: note: the last parameter in the range is 'value'
static int bundle_list_update(const char *key, const char *value,
                                                           ^~~~~
/datasets/git/bundle-uri.c:112:16: warning: variable name 'id' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf id = STRBUF_INIT;
                      ^
/datasets/git/bundle-uri.c:114:29: warning: variable 'bundle' is not initialized [cppcoreguidelines-init-variables]
        struct remote_bundle_info *bundle;
                                   ^
                                          = NULL
/datasets/git/bundle-uri.c:115:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *subsection, *subkey;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/bundle-uri.c:115:14: warning: variable 'subsection' is not initialized [cppcoreguidelines-init-variables]
        const char *subsection, *subkey;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/bundle-uri.c:115:27: warning: variable 'subkey' is not initialized [cppcoreguidelines-init-variables]
        const char *subsection, *subkey;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/bundle-uri.c:116:9: warning: variable 'subsection_len' is not initialized [cppcoreguidelines-init-variables]
        size_t subsection_len;
               ^
                              = 0
/datasets/git/bundle-uri.c:118:77: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_config_key(key, "bundle", &subsection, &subsection_len, &subkey))
                                                                                   ^
                                                                                    {
/datasets/git/bundle-uri.c:123:8: warning: variable 'version' is not initialized [cppcoreguidelines-init-variables]
                        int version;
                            ^
                                    = 0
/datasets/git/bundle-uri.c:124:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!git_parse_int(value, &version))
                                                            ^
                                                             {
/datasets/git/bundle-uri.c:126:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (version != 1)
                                         ^
                                          {
/datasets/git/bundle-uri.c:134:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!strcmp(value, "all"))
                                                  ^
                                                   {
/datasets/git/bundle-uri.c:136:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (!strcmp(value, "any"))
                                                       ^
                                                        {
/datasets/git/bundle-uri.c:138:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/bundle-uri.c:155:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if (!(bundle = hashmap_get_entry(&list->bundles, &lookup, ent, NULL))) {
              ^
/datasets/git/bundle-uri.c:155:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/bundle-uri.c:155:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/bundle-uri.c:164:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (bundle->uri)
                                ^
                                 {
/datasets/git/bundle-uri.c:184:36: warning: 2 adjacent parameters of 'bundle_uri_parse_config_format' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
int bundle_uri_parse_config_format(const char *uri,
                                   ^~~~~~~~~~~~~~~~
/datasets/git/bundle-uri.c:184:48: note: the first parameter in the range is 'uri'
int bundle_uri_parse_config_format(const char *uri,
                                               ^~~
/datasets/git/bundle-uri.c:185:20: note: the last parameter in the range is 'filename'
                                   const char *filename,
                                               ^~~~~~~~
/datasets/git/bundle-uri.c:188:6: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        int result;
            ^
                   = 0
/datasets/git/bundle-uri.c:207:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/bundle-uri.c:207:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/bundle-uri.c:227:23: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
        struct child_process cp = CHILD_PROCESS_INIT;
                             ^
/datasets/git/bundle-uri.c:228:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        FILE *child_in = NULL, *child_out = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/bundle-uri.c:237:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (start_command(&cp))
                               ^
                                {
/datasets/git/bundle-uri.c:252:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(child_in, "capabilities\n");
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/bundle-uri.c:252:2: note: cast the expression to void to silence this warning
/datasets/git/bundle-uri.c:253:2: warning: the value returned by this function should be used [cert-err33-c]
        fflush(child_in);
        ^~~~~~~~~~~~~~~~
/datasets/git/bundle-uri.c:253:2: note: cast the expression to void to silence this warning
/datasets/git/bundle-uri.c:255:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (!strbuf_getline(&line, child_out)) {
        ^
/datasets/git/bundle-uri.c:255:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'line' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (!strbuf_getline(&line, child_out)) {
               ^
/datasets/git/bundle-uri.c:256:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!line.len)
                              ^
                               {
/datasets/git/bundle-uri.c:258:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(line.buf, "get"))
                                             ^
                                              {
/datasets/git/bundle-uri.c:268:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(child_in, "get %s %s\n\n", uri, file);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/bundle-uri.c:268:2: note: cast the expression to void to silence this warning
/datasets/git/bundle-uri.c:271:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (child_in)
                     ^
                      {
/datasets/git/bundle-uri.c:272:3: warning: the value returned by this function should be used [cert-err33-c]
                fclose(child_in);
                ^~~~~~~~~~~~~~~~
/datasets/git/bundle-uri.c:272:3: note: cast the expression to void to silence this warning
/datasets/git/bundle-uri.c:273:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (finish_command(&cp))
                                ^
                                 {
/datasets/git/bundle-uri.c:275:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (child_out)
                      ^
                       {
/datasets/git/bundle-uri.c:276:3: warning: the value returned by this function should be used [cert-err33-c]
                fclose(child_out);
                ^~~~~~~~~~~~~~~~~
/datasets/git/bundle-uri.c:276:3: note: cast the expression to void to silence this warning
/datasets/git/bundle-uri.c:282:14: warning: variable 'out' is not initialized [cppcoreguidelines-init-variables]
        const char *out;
                    ^
                        = NULL
/datasets/git/bundle-uri.c:285:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            starts_with(uri, "http:"))
                                      ^
                                       {
/datasets/git/bundle-uri.c:288:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (skip_prefix(uri, "file://", &out))
                                              ^
                                               {
/datasets/git/bundle-uri.c:295:50: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int unbundle_from_file(struct repository *r, const char *file)
                                                 ^
/datasets/git/bundle-uri.c:298:6: warning: variable 'bundle_fd' is not initialized [cppcoreguidelines-init-variables]
        int bundle_fd;
            ^
                      = 0
/datasets/git/bundle-uri.c:300:27: warning: variable 'refname' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *refname;
                                 ^
                                         = NULL
/datasets/git/bundle-uri.c:302:9: warning: variable 'bundle_prefix_len' is not initialized [cppcoreguidelines-init-variables]
        size_t bundle_prefix_len;
               ^
                                 = 0
/datasets/git/bundle-uri.c:304:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if ((bundle_fd = read_bundle_header(file, &header)) < 0)
             ^
/datasets/git/bundle-uri.c:304:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/bundle-uri.c:304:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/bundle-uri.c:304:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((bundle_fd = read_bundle_header(file, &header)) < 0)
                                                                ^
                                                                 {
/datasets/git/bundle-uri.c:312:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if ((result = unbundle(r, &header, bundle_fd, NULL,
             ^
/datasets/git/bundle-uri.c:312:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/bundle-uri.c:312:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/bundle-uri.c:300:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct string_list_item *refname;
        ^
/datasets/git/bundle-uri.c:313:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                               VERIFY_BUNDLE_QUIET)))
                                                     ^
                                                      {
/datasets/git/bundle-uri.c:323:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(refname, &header.references) {
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/bundle-uri.c:323:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'refname' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(refname, &header.references) {
                                  ^
/datasets/git/bundle-uri.c:326:15: warning: variable 'branch_name' is not initialized [cppcoreguidelines-init-variables]
                const char *branch_name;
                            ^
                                        = NULL
/datasets/git/bundle-uri.c:327:7: warning: variable 'has_old' is not initialized [cppcoreguidelines-init-variables]
                int has_old;
                    ^
                            = 0
/datasets/git/bundle-uri.c:329:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!skip_prefix(refname->string, "refs/heads/", &branch_name))
                                                                               ^
                                                                                {
/datasets/git/bundle-uri.c:338:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                           REF_SKIP_OID_VERIFICATION,
                           ^
/datasets/git/./refs.h:643:36: note: expanded from macro 'REF_SKIP_OID_VERIFICATION'
#define REF_SKIP_OID_VERIFICATION (1 << 10)
                                   ^
/datasets/git/bundle-uri.c:346:8: warning: accessing fields in struct 'bundle_list_context' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct bundle_list_context {
       ^
/datasets/git/bundle-uri.c:346:8: note: use "__attribute__((aligned(32)))" to align struct 'bundle_list_context' to 32 bytes
/datasets/git/bundle-uri.c:361:57: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int fetch_bundle_uri_internal(struct repository *r,
                                                        ^
/datasets/git/bundle-uri.c:368:6: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        int res;
            ^
                = 0
/datasets/git/bundle-uri.c:371:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ctx->mode == BUNDLE_MODE_ANY && ctx->count)
                                                       ^
                                                        {
/datasets/git/bundle-uri.c:381:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!res)
                 ^
                  {
/datasets/git/bundle-uri.c:392:52: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int download_bundle_list(struct repository *r,
                                                   ^
/datasets/git/bundle-uri.c:407:66: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int fetch_bundle_list_in_config_format(struct repository *r,
                                                                 ^
/datasets/git/bundle-uri.c:412:6: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        int result;
            ^
                   = 0
/datasets/git/bundle-uri.c:417:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if ((result = bundle_uri_parse_config_format(bundle->uri,
             ^
/datasets/git/bundle-uri.c:417:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/bundle-uri.c:417:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/bundle-uri.c:419:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                     &list_from_bundle)))
                                                                         ^
                                                                          {
/datasets/git/bundle-uri.c:429:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if ((result = download_bundle_list(r, &list_from_bundle,
             ^
/datasets/git/bundle-uri.c:429:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/bundle-uri.c:429:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/bundle-uri.c:430:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                           global_list, depth)))
                                                                ^
                                                                 {
/datasets/git/bundle-uri.c:442:12: warning: variable 'max_bundle_uri_depth' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int max_bundle_uri_depth = 4;
           ^
/datasets/git/bundle-uri.c:450:57: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int fetch_bundle_uri_internal(struct repository *r,
                                                        ^
/datasets/git/bundle-uri.c:456:29: warning: variable 'bcopy' is not initialized [cppcoreguidelines-init-variables]
        struct remote_bundle_info *bcopy;
                                   ^
                                         = NULL
/datasets/git/bundle-uri.c:465:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
            !(bundle->file = find_temp_filename())) {
              ^
/datasets/git/bundle-uri.c:465:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/bundle-uri.c:465:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/bundle-uri.c:470:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if ((result = copy_uri_to_file(bundle->file, bundle->uri))) {
             ^
/datasets/git/bundle-uri.c:470:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/bundle-uri.c:470:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/bundle-uri.c:475:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if ((result = !is_bundle(bundle->file, 1))) {
             ^
/datasets/git/bundle-uri.c:475:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/bundle-uri.c:475:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/bundle-uri.c:478:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (result)
                           ^
                            {
/datasets/git/bundle-uri.c:492:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (result && bundle->file)
                                   ^
                                    {
/datasets/git/bundle-uri.c:503:21: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        struct repository *r = data;
                           ^
/datasets/git/bundle-uri.c:505:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!info->file || info->unbundled)
                                           ^
                                            {
/datasets/git/bundle-uri.c:516:52: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int unbundle_all_bundles(struct repository *r,
                                                   ^
/datasets/git/bundle-uri.c:528:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (for_all_bundles_in_list(list, attempt_unbundle, r)) ;
        ^
/datasets/git/bundle-uri.c:528:60: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
        while (for_all_bundles_in_list(list, attempt_unbundle, r)) ;
                                                                  ^
                                                                   {
/datasets/git/bundle-uri.c:533:65: warning: parameter 'data' is unused [misc-unused-parameters]
static int unlink_bundle(struct remote_bundle_info *info, void *data)
                                                                ^
/datasets/git/bundle-uri.c:535:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (info->file)
                       ^
                        {
/datasets/git/bundle-uri.c:540:41: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int fetch_bundle_uri(struct repository *r, const char *uri)
                                        ^
/datasets/git/bundle-uri.c:542:6: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        int result;
            ^
                   = 0
/datasets/git/bundle-uri.c:554:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if ((result = fetch_bundle_uri_internal(r, &bundle, 0, &list)))
             ^
/datasets/git/bundle-uri.c:554:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/bundle-uri.c:554:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/bundle-uri.c:554:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((result = fetch_bundle_uri_internal(r, &bundle, 0, &list)))
                                                                       ^
                                                                        {
/datasets/git/bundle-uri.c:571:6: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        int result;
            ^
                   = 0
/datasets/git/bundle-uri.c:572:14: warning: variable 'equals' is not initialized [cppcoreguidelines-init-variables]
        const char *equals;
                    ^
                           = NULL
/datasets/git/bundle-uri.c:575:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strlen(line))
                          ^
                           {
/datasets/git/bundle-uri.c:580:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!equals)
                    ^
                     {
/datasets/git/bundle-uri.c:582:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (line == equals || !*(equals + 1))
                                             ^
                                              {
/datasets/git/bundle.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "lockfile.h"
^        ~~~~~~~~~~~~
         "bundle.h"
/datasets/git/bundle.c:18:8: warning: accessing fields in struct '' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
static struct {
       ^
/datasets/git/bundle.c:18:8: note: use "__attribute__((aligned(16)))" to align struct '' to 16 bytes
/datasets/git/bundle.c:21:3: warning: variable 'bundle_sigs' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} bundle_sigs[] = {
  ^
/datasets/git/bundle.c:29:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(header, &blank, sizeof(*header));
        ^~~~~~
/datasets/git/bundle.c:29:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(header, &blank, sizeof(*header));
        ^~~~~~
/datasets/git/bundle.c:41:14: warning: variable 'arg' is not initialized [cppcoreguidelines-init-variables]
        const char *arg;
                    ^
                        = NULL
/datasets/git/bundle.c:44:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (algo == GIT_HASH_UNKNOWN)
                                             ^
                                              {
/datasets/git/bundle.c:58:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/bundle.c:58:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/bundle.c:60:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ARRAY_SIZE(bundle_sigs); i++) {
        ^
/datasets/git/bundle.c:69:5: warning: function 'read_bundle_header_fd' has cognitive complexity of 33 (threshold 25) [readability-function-cognitive-complexity]
int read_bundle_header_fd(int fd, struct bundle_header *header,
    ^
/datasets/git/bundle.c:76:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (strbuf_getwholeline_fd(&buf, fd, '\n') ||
        ^
/datasets/git/bundle.c:76:45: note: +1
        if (strbuf_getwholeline_fd(&buf, fd, '\n') ||
                                                   ^
/datasets/git/bundle.c:78:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (report_path)
                ^
/datasets/git/bundle.c:82:3: note: +1
                goto abort;
                ^
/datasets/git/bundle.c:88:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (!strbuf_getwholeline_fd(&buf, fd, '\n') &&
        ^
/datasets/git/bundle.c:89:17: note: +1
               buf.len && buf.buf[0] != '\n') {
                       ^
/datasets/git/bundle.c:96:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (header->version == 3 && *buf.buf == '@') {
                ^
/datasets/git/bundle.c:96:28: note: +1
                if (header->version == 3 && *buf.buf == '@') {
                                         ^
/datasets/git/bundle.c:97:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (parse_capability(header, buf.buf + 1)) {
                        ^
/datasets/git/bundle.c:104:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*buf.buf == '-') {
                ^
/datasets/git/bundle.c:114:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (parse_oid_hex_algop(buf.buf, &oid, &p, header->hash_algo) ||
                ^
/datasets/git/bundle.c:115:28: note: +1
                    (*p && !isspace(*p)) ||
                                         ^
/datasets/git/bundle.c:115:11: note: +1
                    (*p && !isspace(*p)) ||
                        ^
/datasets/git/bundle.c:116:19: note: +1
                    (!is_prereq && !*p)) {
                                ^
/datasets/git/bundle.c:117:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (report_path)
                        ^
/datasets/git/bundle.c:119:22: note: +4, including nesting penalty of 3, nesting level increased to 4
                                      (is_prereq ? "-" : ""), buf.buf, (int)buf.len);
                                                 ^
/datasets/git/bundle.c:122:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/bundle.c:124:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (is_prereq)
                        ^
/datasets/git/bundle.c:126:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/bundle.c:132:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (status) {
        ^
/datasets/git/bundle.c:69:31: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
int read_bundle_header_fd(int fd, struct bundle_header *header,
                              ^
/datasets/git/bundle.c:72:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct strbuf buf = STRBUF_INIT;
        ^
/datasets/git/bundle.c:78:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (report_path)
                                ^
                                 {
/datasets/git/bundle.c:88:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (!strbuf_getwholeline_fd(&buf, fd, '\n') &&
        ^
/datasets/git/bundle.c:88:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'buf' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (!strbuf_getwholeline_fd(&buf, fd, '\n') &&
               ^
/datasets/git/bundle.c:92:15: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                const char *p;
                            ^
                              = NULL
/datasets/git/bundle.c:92:15: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/bundle.c:115:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (*p && !isspace(*p)) ||
                            ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/bundle.c:117:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (report_path)
                                        ^
                                         {
/datasets/git/bundle.c:122:5: warning: do not use 'else' after 'break' [llvm-else-after-return,readability-else-after-return]
                } else {
                  ^~~~~~
/datasets/git/bundle.c:124:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (is_prereq)
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/bundle.c:126:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/bundle.c:142:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
        int fd = open(path, O_RDONLY);
            ^
/datasets/git/bundle.c:142:30: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
        int fd = open(path, O_RDONLY);
                                    ^
                                     | O_CLOEXEC
/datasets/git/bundle.c:144:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fd < 0)
                   ^
                    {
/datasets/git/bundle.c:152:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
        int fd = open(path, O_RDONLY);
            ^
/datasets/git/bundle.c:152:30: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
        int fd = open(path, O_RDONLY);
                                    ^
                                     | O_CLOEXEC
/datasets/git/bundle.c:154:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fd < 0)
                   ^
                    {
/datasets/git/bundle.c:157:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fd >= 0)
                    ^
                     {
/datasets/git/bundle.c:163:42: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int list_refs(struct string_list *r, int argc, const char **argv)
                                         ^
/datasets/git/bundle.c:165:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/bundle.c:165:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/bundle.c:168:21: warning: variable 'oid' is not initialized [cppcoreguidelines-init-variables]
                struct object_id *oid;
                                  ^
                                      = NULL
/datasets/git/bundle.c:169:15: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
                const char *name;
                            ^
                                 = NULL
/datasets/git/bundle.c:172:8: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
                        int j;
                            ^
                              = 0
/datasets/git/bundle.c:172:8: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/bundle.c:173:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (j = 1; j < argc; j++)
                        ^
/datasets/git/bundle.c:173:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (j = 1; j < argc; j++)
                                                  ^
                                                   {
/datasets/git/bundle.c:174:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!strcmp(r->items[i].string, argv[j]))
                                                                         ^
                                                                          {
/datasets/git/bundle.c:176:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (j == argc)
                                      ^
                                       {
/datasets/git/bundle.c:188:1: warning: replace macro with enum [modernize-macro-to-enum]
#define PREREQ_MARK (1u<<16)
^~~~~~~~
                    =
/datasets/git/bundle.c:188:9: warning: macro 'PREREQ_MARK' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define PREREQ_MARK (1u<<16)
        ^
/datasets/git/bundle.c:190:5: warning: function 'verify_bundle' has cognitive complexity of 37 (threshold 25) [readability-function-cognitive-complexity]
int verify_bundle(struct repository *r,
    ^
/datasets/git/bundle.c:205:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!r || !r->objects || !r->objects->odb)
        ^
/datasets/git/bundle.c:205:24: note: +1
        if (!r || !r->objects || !r->objects->odb)
                              ^
/datasets/git/bundle.c:209:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < p->nr; i++) {
        ^
/datasets/git/bundle.c:214:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (o) {
                ^
/datasets/git/bundle.c:220:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (flags & VERIFY_BUNDLE_QUIET)
                ^
/datasets/git/bundle.c:222:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ret == 1)
                ^
/datasets/git/bundle.c:226:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (revs.pending.nr != p->nr)
        ^
/datasets/git/bundle.c:233:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (prepare_revision_walk(&revs))
        ^
/datasets/git/bundle.c:237:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (i && (commit = get_revision(&revs)))
        ^
/datasets/git/bundle.c:237:11: note: +1
        while (i && (commit = get_revision(&revs)))
                 ^
/datasets/git/bundle.c:238:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (commit->object.flags & PREREQ_MARK)
                ^
/datasets/git/bundle.c:241:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < p->nr; i++) {
        ^
/datasets/git/bundle.c:246:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(o); /* otherwise we'd have returned early */
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/bundle.c:246:3: note: nesting level increased to 2
                assert(o); /* otherwise we'd have returned early */
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/bundle.c:246:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(o); /* otherwise we'd have returned early */
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/bundle.c:246:3: note: +1, nesting level increased to 3
                assert(o); /* otherwise we'd have returned early */
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/bundle.c:247:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (o->flags & SHOWN)
                ^
/datasets/git/bundle.c:250:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (flags & VERIFY_BUNDLE_QUIET)
                ^
/datasets/git/bundle.c:252:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ret == 1)
                ^
/datasets/git/bundle.c:257:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (flags & VERIFY_BUNDLE_VERBOSE) {
        ^
/datasets/git/bundle.c:268:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!r->nr) {
                ^
/datasets/git/bundle.c:270:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/bundle.c:280:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (header->filter.choice)
                ^
/datasets/git/bundle.c:286:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < p->nr; i++) {
        ^
/datasets/git/bundle.c:290:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (commit)
                ^
/datasets/git/bundle.c:190:38: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int verify_bundle(struct repository *r,
                                     ^
/datasets/git/bundle.c:198:22: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        struct string_list *p = &header->prerequisites;
                            ^
/datasets/git/bundle.c:201:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/bundle.c:202:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, ret = 0, req_nr;
        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/bundle.c:202:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, ret = 0, req_nr;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/bundle.c:202:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/bundle.c:202:18: warning: variable 'req_nr' is not initialized [cppcoreguidelines-init-variables]
        int i, ret = 0, req_nr;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/bundle.c:205:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!r || !r->objects || !r->objects->odb)
                                                  ^
                                                   {
/datasets/git/bundle.c:209:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < p->nr; i++) {
        ^
/datasets/git/bundle.c:209:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < p->nr; i++) {
                    ^
/datasets/git/bundle.c:210:28: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                struct string_list_item *e = p->items + i;
                                         ^
/datasets/git/bundle.c:213:18: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                struct object *o = parse_object(r, oid);
                               ^
/datasets/git/bundle.c:215:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        o->flags |= PREREQ_MARK;
                                    ^
/datasets/git/bundle.c:188:22: note: expanded from macro 'PREREQ_MARK'
#define PREREQ_MARK (1u<<16)
                     ^   ~~
/datasets/git/bundle.c:220:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flags & VERIFY_BUNDLE_QUIET)
                    ^       ~~~~~~~~~~~~~~~~~~~
/datasets/git/bundle.c:220:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (flags & VERIFY_BUNDLE_QUIET)
                                                ^
                                                 {
/datasets/git/bundle.c:222:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret == 1)
                             ^
                              {
/datasets/git/bundle.c:226:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs.pending.nr != p->nr)
                                     ^
                                      {
/datasets/git/bundle.c:228:11: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        req_nr = revs.pending.nr;
                 ^
/datasets/git/bundle.c:233:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prepare_revision_walk(&revs))
                                         ^
                                          {
/datasets/git/bundle.c:237:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (i && (commit = get_revision(&revs)))
        ^
/datasets/git/bundle.c:202:2: note: inferred assignment of ID-dependent value from ID-dependent variable req_nr [altera-id-dependent-backward-branch]
        int i, ret = 0, req_nr;
        ^
/datasets/git/bundle.c:237:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (i && (commit = get_revision(&revs)))
               ^
/datasets/git/bundle.c:237:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (i && (commit = get_revision(&revs)))
                                                   ^
                                                    {
/datasets/git/bundle.c:238:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (commit->object.flags & PREREQ_MARK)
                                           ^
/datasets/git/bundle.c:188:22: note: expanded from macro 'PREREQ_MARK'
#define PREREQ_MARK (1u<<16)
                     ^   ~~
/datasets/git/bundle.c:238:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (commit->object.flags & PREREQ_MARK)
                                                       ^
                                                        {
/datasets/git/bundle.c:241:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < p->nr; i++) {
        ^
/datasets/git/bundle.c:241:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < p->nr; i++) {
                    ^
/datasets/git/bundle.c:242:28: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                struct string_list_item *e = p->items + i;
                                         ^
/datasets/git/bundle.c:245:18: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                struct object *o = parse_object(r, oid);
                               ^
/datasets/git/bundle.c:247:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (o->flags & SHOWN)
                               ^
/datasets/git/./revision.h:30:17: note: expanded from macro 'SHOWN'
#define SHOWN           (1u<<3)
                         ^   ~
/datasets/git/bundle.c:247:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (o->flags & SHOWN)
                                     ^
                                      {
/datasets/git/bundle.c:250:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flags & VERIFY_BUNDLE_QUIET)
                    ^       ~~~~~~~~~~~~~~~~~~~
/datasets/git/bundle.c:250:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (flags & VERIFY_BUNDLE_QUIET)
                                                ^
                                                 {
/datasets/git/bundle.c:252:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret == 1)
                             ^
                              {
/datasets/git/bundle.c:257:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & VERIFY_BUNDLE_VERBOSE) {
            ^       ~~~~~~~~~~~~~~~~~~~~~
/datasets/git/bundle.c:258:23: warning: variable 'r' is not initialized [cppcoreguidelines-init-variables]
                struct string_list *r;
                                    ^
                                      = NULL
/datasets/git/bundle.c:258:23: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/bundle.c:202:2: note: inferred assignment of ID-dependent value from ID-dependent variable req_nr [altera-id-dependent-backward-branch]
        int i, ret = 0, req_nr;
        ^
/datasets/git/bundle.c:280:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (header->filter.choice)
                                          ^
                                           {
/datasets/git/bundle.c:286:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < p->nr; i++) {
        ^
/datasets/git/bundle.c:286:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < p->nr; i++) {
                    ^
/datasets/git/bundle.c:287:28: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                struct string_list_item *e = p->items + i;
                                         ^
/datasets/git/bundle.c:290:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (commit)
                           ^
                            {
/datasets/git/bundle.c:291:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        clear_commit_marks(commit, ALL_REV_FLAGS | PREREQ_MARK);
                                                   ^
/datasets/git/./revision.h:52:26: note: expanded from macro 'ALL_REV_FLAGS'
#define ALL_REV_FLAGS   (((1u<<11)-1) | NOT_USER_GIVEN | TRACK_LINEAR | PULL_MERGE)
                           ^   ~~
/datasets/git/bundle.c:291:47: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        clear_commit_marks(commit, ALL_REV_FLAGS | PREREQ_MARK);
                                                                   ^
/datasets/git/bundle.c:188:22: note: expanded from macro 'PREREQ_MARK'
#define PREREQ_MARK (1u<<16)
                     ^   ~~
/datasets/git/bundle.c:304:16: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size;
                      ^
                           = 0
/datasets/git/bundle.c:305:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/bundle.c:306:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *buf = NULL, *line, *lineend;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/bundle.c:306:21: warning: variable 'line' is not initialized [cppcoreguidelines-init-variables]
        char *buf = NULL, *line, *lineend;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/bundle.c:306:28: warning: variable 'lineend' is not initialized [cppcoreguidelines-init-variables]
        char *buf = NULL, *line, *lineend;
                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/bundle.c:307:14: warning: variable 'date' is not initialized [cppcoreguidelines-init-variables]
        timestamp_t date;
                    ^
                         = 0
/datasets/git/bundle.c:310:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->max_age == -1 && revs->min_age == -1)
                                                       ^
                                                        {
/datasets/git/bundle.c:314:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!buf)
                 ^
                  {
/datasets/git/bundle.c:316:40: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        line = memmem(buf, size, "\ntagger ", 8);
                                              ^
/datasets/git/bundle.c:317:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!line++)
                    ^
                     {
/datasets/git/bundle.c:321:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!line++)
                    ^
                     {
/datasets/git/bundle.c:323:37: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        date = parse_timestamp(line, NULL, 10);
                                           ^
/datasets/git/bundle.c:336:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/bundle.c:336:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/bundle.c:343:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->filter.choice)
                                ^
                                 {
/datasets/git/bundle.c:355:22: warning: prefer fcntl() to dup() because fcntl() allows F_DUPFD_CLOEXEC [android-cloexec-dup]
                pack_objects.out = dup(pack_objects.out);
                                   ^~~~~~~~~~~~~~~~~~~~~
                                   fcntl(pack_objects.out, F_DUPFD_CLOEXEC)
/datasets/git/bundle.c:363:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (start_command(&pack_objects))
                                         ^
                                          {
/datasets/git/bundle.c:366:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < revs->pending.nr; i++) {
        ^
/datasets/git/bundle.c:368:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (object->flags & UNINTERESTING)
                                    ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/bundle.c:368:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (object->flags & UNINTERESTING)
                                                  ^
                                                   {
/datasets/git/bundle.c:374:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (finish_command(&pack_objects))
                                          ^
                                           {
/datasets/git/bundle.c:390:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/bundle.c:390:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/bundle.c:393:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < revs->pending.nr; i++) {
        ^
/datasets/git/bundle.c:394:30: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                struct object_array_entry *e = revs->pending.objects + i;
                                           ^
/datasets/git/bundle.c:396:9: warning: variable 'ref' is not initialized [cppcoreguidelines-init-variables]
                char *ref;
                      ^
                          = NULL
/datasets/git/bundle.c:397:15: warning: variable 'display_ref' is not initialized [cppcoreguidelines-init-variables]
                const char *display_ref;
                            ^
                                        = NULL
/datasets/git/bundle.c:398:7: warning: variable 'flag' is not initialized [cppcoreguidelines-init-variables]
                int flag;
                    ^
                         = 0
/datasets/git/bundle.c:400:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (e->item->flags & UNINTERESTING)
                                     ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/bundle.c:400:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (e->item->flags & UNINTERESTING)
                                                   ^
                                                    {
/datasets/git/bundle.c:402:25: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                if (dwim_ref(e->name, strlen(e->name), &oid, &ref, 0) != 1)
                                      ^
/datasets/git/bundle.c:402:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (dwim_ref(e->name, strlen(e->name), &oid, &ref, 0) != 1)
                                                                           ^
                                                                            {
/datasets/git/bundle.c:404:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (read_ref_full(e->name, RESOLVE_REF_READING, &oid, &flag))
                                                                             ^
                                                                              {
/datasets/git/bundle.c:406:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                display_ref = (flag & REF_ISSYMREF) ? e->name : ref;
                               ^~~~
/datasets/git/bundle.c:410:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        e->item->flags |= UNINTERESTING;
                                          ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/bundle.c:423:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(e->item->flags & SHOWN) && e->item->type == OBJ_COMMIT) {
                                       ^
/datasets/git/./revision.h:30:17: note: expanded from macro 'SHOWN'
#define SHOWN           (1u<<3)
                         ^   ~
/datasets/git/bundle.c:441:19: warning: variable 'obj' is not initialized [cppcoreguidelines-init-variables]
                        struct object *obj;
                                       ^
                                           = NULL
/datasets/git/bundle.c:453:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                obj->flags |= SHOWN;
                                              ^
/datasets/git/./revision.h:30:17: note: expanded from macro 'SHOWN'
#define SHOWN           (1u<<3)
                         ^   ~
/datasets/git/bundle.c:473:8: warning: accessing fields in struct 'bundle_prerequisites_info' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct bundle_prerequisites_info {
       ^
/datasets/git/bundle.c:473:8: note: use "__attribute__((aligned(16)))" to align struct 'bundle_prerequisites_info' to 16 bytes
/datasets/git/bundle.c:481:17: warning: variable 'object' is not initialized [cppcoreguidelines-init-variables]
        struct object *object;
                       ^
                              = NULL
/datasets/git/bundle.c:485:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(commit->object.flags & BOUNDARY))
                                     ^
/datasets/git/./revision.h:32:19: note: expanded from macro 'BOUNDARY'
#define BOUNDARY        (1u<<5)
                         ^   ~
/datasets/git/bundle.c:485:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(commit->object.flags & BOUNDARY))
                                               ^
                                                {
/datasets/git/bundle.c:497:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        object->flags |= UNINTERESTING;
                         ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/bundle.c:505:38: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int create_bundle(struct repository *r, const char *path,
                                     ^
/datasets/git/bundle.c:510:6: warning: variable 'bundle_to_stdout' is not initialized [cppcoreguidelines-init-variables]
        int bundle_to_stdout;
            ^
                             = 0
/datasets/git/bundle.c:512:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct rev_info revs, revs_copy;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/bundle.c:515:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/bundle.c:515:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/bundle.c:536:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (the_hash_algo != &hash_algos[GIT_HASH_SHA1] || revs.filter.choice)
                                                                              ^
                                                                               {
/datasets/git/bundle.c:545:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (bundle_to_stdout)
                             ^
                              {
/datasets/git/bundle.c:547:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/bundle.c:551:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (version == -1)
                          ^
                           {
/datasets/git/bundle.c:577:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(&revs_copy, &revs, sizeof(revs));
        ^~~~~~
/datasets/git/bundle.c:577:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(&revs_copy, &revs, sizeof(revs));
        ^~~~~~
/datasets/git/bundle.c:581:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < revs.pending.nr; i++) {
        ^
/datasets/git/bundle.c:582:30: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                struct object_array_entry *e = revs.pending.objects + i;
                                           ^
/datasets/git/bundle.c:583:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (e)
                      ^
                       {
/datasets/git/bundle.c:591:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prepare_revision_walk(&revs))
                                         ^
                                          {
/datasets/git/bundle.c:606:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ref_count)
                       ^
                        {
/datasets/git/bundle.c:608:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (ref_count < 0)
                               ^
                                {
/datasets/git/bundle.c:612:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_pack_data(bundle_fd, &revs_copy, pack_options))
                                                                 ^
                                                                  {
/datasets/git/bundle.c:616:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (commit_lock_file(&lock))
                                            ^
                                             {
/datasets/git/bundle.c:625:33: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int unbundle(struct repository *r, struct bundle_header *header,
                                ^
/datasets/git/bundle.c:629:23: warning: variable name 'ip' is too short, expected at least 3 characters [readability-identifier-length]
        struct child_process ip = CHILD_PROCESS_INIT;
                             ^
/datasets/git/bundle.c:633:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (header->filter.choice)
                                  ^
                                   {
/datasets/git/bundle.c:641:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (verify_bundle(r, header, flags))
                                            ^
                                             {
/datasets/git/bundle.c:646:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (run_command(&ip))
                             ^
                              {
/datasets/git/cache-tree.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "lockfile.h"
^        ~~~~~~~~~~~~
         "bulk-checkin.h"
/datasets/git/cache-tree.c:18:21: warning: variable name 'it' is too short, expected at least 3 characters [readability-identifier-length]
        struct cache_tree *it = xcalloc(1, sizeof(struct cache_tree));
                           ^
/datasets/git/cache-tree.c:23:6: warning: function 'cache_tree_free' is within a recursive call chain [misc-no-recursion]
void cache_tree_free(struct cache_tree **it_p)
     ^
/datasets/git/cache-tree.c:23:6: note: example recursive call chain, starting from function 'cache_tree_free'
/datasets/git/cache-tree.c:32:4: note: Frame #1: function 'cache_tree_free' calls function 'cache_tree_free' here:
                        cache_tree_free(&it->down[i]->cache_tree);
                        ^
/datasets/git/cache-tree.c:32:4: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/cache-tree.c:25:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/cache-tree.c:25:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/cache-tree.c:26:21: warning: variable name 'it' is too short, expected at least 3 characters [readability-identifier-length]
        struct cache_tree *it = *it_p;
                           ^
/datasets/git/cache-tree.c:28:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!it)
                ^
                 {
/datasets/git/cache-tree.c:30:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < it->subtree_nr; i++)
        ^
/datasets/git/cache-tree.c:30:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'it' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < it->subtree_nr; i++)
                    ^
/datasets/git/cache-tree.c:30:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < it->subtree_nr; i++)
                                            ^
                                             {
/datasets/git/cache-tree.c:43:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (onelen < twolen)
                            ^
                             {
/datasets/git/cache-tree.c:45:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (twolen < onelen)
                            ^
                             {
/datasets/git/cache-tree.c:50:47: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
int cache_tree_subtree_pos(struct cache_tree *it, const char *path, int pathlen)
                                              ^
/datasets/git/cache-tree.c:53:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int lo, hi;
        ^~~~~~~~~~~
/datasets/git/cache-tree.c:53:2: note: inferred assignment of ID-dependent value from ID-dependent variable mi [altera-id-dependent-backward-branch]
/datasets/git/cache-tree.c:53:6: warning: variable 'lo' is not initialized [cppcoreguidelines-init-variables]
        int lo, hi;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/cache-tree.c:53:6: warning: variable name 'lo' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/cache-tree.c:53:10: warning: variable 'hi' is not initialized [cppcoreguidelines-init-variables]
        int lo, hi;
                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/cache-tree.c:53:10: warning: variable name 'hi' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/cache-tree.c:56:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (lo < hi) {
        ^
/datasets/git/cache-tree.c:56:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'lo' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (lo < hi) {
               ^
/datasets/git/cache-tree.c:57:7: warning: variable name 'mi' is too short, expected at least 3 characters [readability-identifier-length]
                int mi = lo + (hi - lo) / 2;
                    ^
/datasets/git/cache-tree.c:61:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!cmp)
                         ^
                          {
/datasets/git/cache-tree.c:63:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cmp < 0)
                            ^
                             {
/datasets/git/cache-tree.c:65:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/cache-tree.c:71:63: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
static struct cache_tree_sub *find_subtree(struct cache_tree *it,
                                                              ^
/datasets/git/cache-tree.c:73:9: warning: 2 adjacent parameters of 'find_subtree' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                           int pathlen,
                                           ^~~~~~~~~~~~
/datasets/git/cache-tree.c:73:13: note: the first parameter in the range is 'pathlen'
                                           int pathlen,
                                               ^~~~~~~
/datasets/git/cache-tree.c:74:13: note: the last parameter in the range is 'create'
                                           int create)
                                               ^~~~~~
/datasets/git/cache-tree.c:76:25: warning: variable 'down' is not initialized [cppcoreguidelines-init-variables]
        struct cache_tree_sub *down;
                               ^
                                    = NULL
/datasets/git/cache-tree.c:78:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (0 <= pos)
                     ^
                      {
/datasets/git/cache-tree.c:80:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!create)
                    ^
                     {
/datasets/git/cache-tree.c:84:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(it->down, it->subtree_nr + 1, it->subtree_alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/cache-tree.c:84:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_GROW(it->down, it->subtree_nr + 1, it->subtree_alloc);
        ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/cache-tree.c:87:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FLEX_ALLOC_MEM(down, name, path, pathlen);
        ^
/datasets/git/./git-compat-util.h:1151:47: note: expanded from macro 'FLEX_ALLOC_MEM'
#define FLEX_ALLOC_MEM(x, flexname, buf, len) do { \
                                              ^
/datasets/git/cache-tree.c:87:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        FLEX_ALLOC_MEM(down, name, path, pathlen);
        ^
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/cache-tree.c:87:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        FLEX_ALLOC_MEM(down, name, path, pathlen);
        ^
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/cache-tree.c:91:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pos < it->subtree_nr)
                                 ^
                                  {
/datasets/git/cache-tree.c:92:3: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                MOVE_ARRAY(it->down + pos + 1, it->down + pos,
                ^
/datasets/git/./git-compat-util.h:1102:63: note: expanded from macro 'MOVE_ARRAY'
#define MOVE_ARRAY(dst, src, n) move_array((dst), (src), (n), sizeof(*(dst)) + \
                                                              ^
/datasets/git/cache-tree.c:98:58: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
struct cache_tree_sub *cache_tree_sub(struct cache_tree *it, const char *path)
                                                         ^
/datasets/git/cache-tree.c:100:16: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int pathlen = strlen(path);
                      ^
/datasets/git/cache-tree.c:104:12: warning: function 'do_invalidate_path' is within a recursive call chain [misc-no-recursion]
static int do_invalidate_path(struct cache_tree *it, const char *path)
           ^
/datasets/git/cache-tree.c:104:12: note: example recursive call chain, starting from function 'do_invalidate_path'
/datasets/git/cache-tree.c:146:3: note: Frame #1: function 'do_invalidate_path' calls function 'do_invalidate_path' here:
                do_invalidate_path(down->cache_tree, slash + 1);
                ^
/datasets/git/cache-tree.c:146:3: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/cache-tree.c:104:50: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
static int do_invalidate_path(struct cache_tree *it, const char *path)
                                                 ^
/datasets/git/cache-tree.c:113:14: warning: variable 'slash' is not initialized [cppcoreguidelines-init-variables]
        const char *slash;
                    ^
                          = NULL
/datasets/git/cache-tree.c:114:6: warning: variable 'namelen' is not initialized [cppcoreguidelines-init-variables]
        int namelen;
            ^
                    = 0
/datasets/git/cache-tree.c:115:25: warning: variable 'down' is not initialized [cppcoreguidelines-init-variables]
        struct cache_tree_sub *down;
                               ^
                                    = NULL
/datasets/git/cache-tree.c:121:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!it)
                ^
                 {
/datasets/git/cache-tree.c:124:12: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        namelen = slash - path;
                  ^
/datasets/git/cache-tree.c:127:7: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
                int pos;
                    ^
                        = 0
/datasets/git/cache-tree.c:138:4: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                        MOVE_ARRAY(it->down + pos, it->down + pos + 1,
                        ^
/datasets/git/./git-compat-util.h:1102:63: note: expanded from macro 'MOVE_ARRAY'
#define MOVE_ARRAY(dst, src, n) move_array((dst), (src), (n), sizeof(*(dst)) + \
                                                              ^
/datasets/git/cache-tree.c:145:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (down)
                 ^
                  {
/datasets/git/cache-tree.c:152:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (do_invalidate_path(istate->cache_tree, path))
                                                         ^
                                                          {
/datasets/git/cache-tree.c:153:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                istate->cache_changed |= CACHE_TREE_CHANGED;
                ^
/datasets/git/cache-tree.c:153:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                istate->cache_changed |= CACHE_TREE_CHANGED;
                                         ^
/datasets/git/./refs/../cache.h:303:29: note: expanded from macro 'CACHE_TREE_CHANGED'
#define CACHE_TREE_CHANGED      (1 << 5)
                                 ^
/datasets/git/cache-tree.c:158:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned i, funny;
        ^~~~~~~~~~~~~~~~~~
/datasets/git/cache-tree.c:158:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned i, funny;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/cache-tree.c:158:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/cache-tree.c:158:14: warning: variable 'funny' is not initialized [cppcoreguidelines-init-variables]
        unsigned i, funny;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/cache-tree.c:159:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int silent = flags & WRITE_TREE_SILENT;
                     ^~~~~
/datasets/git/cache-tree.c:163:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < istate->cache_nr; i++) {
        ^
/datasets/git/cache-tree.c:164:29: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                const struct cache_entry *ce = istate->cache[i];
                                          ^
/datasets/git/cache-tree.c:165:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce_stage(ce)) {
                    ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/cache-tree.c:166:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (silent)
                                   ^
                                    {
/datasets/git/cache-tree.c:168:8: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        if (10 < ++funny) {
                            ^
/datasets/git/cache-tree.c:169:5: warning: the value returned by this function should be used [cert-err33-c]
                                fprintf(stderr, "...\n");
                                ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/cache-tree.c:169:5: note: cast the expression to void to silence this warning
/datasets/git/cache-tree.c:172:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, "%s: unmerged (%s)\n",
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/cache-tree.c:172:4: note: cast the expression to void to silence this warning
/datasets/git/cache-tree.c:176:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (funny)
                  ^
                   {
/datasets/git/cache-tree.c:184:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i + 1 < istate->cache_nr; i++) {
        ^
/datasets/git/cache-tree.c:197:8: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        if (10 < ++funny) {
                            ^
/datasets/git/cache-tree.c:198:5: warning: the value returned by this function should be used [cert-err33-c]
                                fprintf(stderr, "...\n");
                                ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/cache-tree.c:198:5: note: cast the expression to void to silence this warning
/datasets/git/cache-tree.c:201:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, "You have both %s and %s\n",
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/cache-tree.c:201:4: note: cast the expression to void to silence this warning
/datasets/git/cache-tree.c:205:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (funny)
                  ^
                   {
/datasets/git/cache-tree.c:210:56: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
static void discard_unused_subtrees(struct cache_tree *it)
                                                       ^
/datasets/git/cache-tree.c:213:6: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
        int nr = it->subtree_nr;
            ^
/datasets/git/cache-tree.c:214:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int dst, src;
        ^~~~~~~~~~~~~
/datasets/git/cache-tree.c:213:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int nr = it->subtree_nr;
        ^
/datasets/git/cache-tree.c:214:6: warning: variable 'dst' is not initialized [cppcoreguidelines-init-variables]
        int dst, src;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/cache-tree.c:214:11: warning: variable 'src' is not initialized [cppcoreguidelines-init-variables]
        int dst, src;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/cache-tree.c:215:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (dst = src = 0; src < nr; src++) {
        ^
/datasets/git/cache-tree.c:215:22: warning: backward branch (for loop) is ID-dependent due to variable reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (dst = src = 0; src < nr; src++) {
                            ^
/datasets/git/cache-tree.c:216:26: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
                struct cache_tree_sub *s = down[src];
                                       ^
/datasets/git/cache-tree.c:217:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (s->used)
                            ^
                             {
/datasets/git/cache-tree.c:227:5: warning: function 'cache_tree_fully_valid' is within a recursive call chain [misc-no-recursion]
int cache_tree_fully_valid(struct cache_tree *it)
    ^
/datasets/git/cache-tree.c:227:5: note: example recursive call chain, starting from function 'cache_tree_fully_valid'
/datasets/git/cache-tree.c:235:8: note: Frame #1: function 'cache_tree_fully_valid' calls function 'cache_tree_fully_valid' here:
                if (!cache_tree_fully_valid(it->down[i]->cache_tree))
                     ^
/datasets/git/cache-tree.c:235:8: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/cache-tree.c:227:47: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
int cache_tree_fully_valid(struct cache_tree *it)
                                              ^
/datasets/git/cache-tree.c:229:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/cache-tree.c:229:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/cache-tree.c:230:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!it)
                ^
                 {
/datasets/git/cache-tree.c:232:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (it->entry_count < 0 || !has_object_file(&it->oid))
                                                              ^
                                                               {
/datasets/git/cache-tree.c:234:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < it->subtree_nr; i++) {
        ^
/datasets/git/cache-tree.c:235:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!cache_tree_fully_valid(it->down[i]->cache_tree))
                                                                     ^
                                                                      {
/datasets/git/cache-tree.c:241:59: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static int must_check_existence(const struct cache_entry *ce)
                                                          ^
/datasets/git/cache-tree.c:243:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return !(has_promisor_remote() && ce_skip_worktree(ce));
                                          ^
/datasets/git/./refs/../cache.h:244:31: note: expanded from macro 'ce_skip_worktree'
#define ce_skip_worktree(ce) ((ce)->ce_flags & CE_SKIP_WORKTREE)
                              ^                ~~~~~~~~~~~~~~~~
/datasets/git/cache-tree.c:246:12: warning: function 'update_one' is within a recursive call chain [misc-no-recursion]
static int update_one(struct cache_tree *it,
           ^
/datasets/git/cache-tree.c:246:12: note: example recursive call chain, starting from function 'update_one'
/datasets/git/cache-tree.c:323:12: note: Frame #1: function 'update_one' calls function 'update_one' here:
                subcnt = update_one(sub->cache_tree,
                         ^
/datasets/git/cache-tree.c:323:12: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/cache-tree.c:246:12: warning: function 'update_one' has cognitive complexity of 63 (threshold 25) [readability-function-cognitive-complexity]
static int update_one(struct cache_tree *it,
           ^
/datasets/git/cache-tree.c:261:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(!(dryrun && repair));
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/cache-tree.c:261:18: note: +1
        assert(!(dryrun && repair));
                        ^
/datasets/git/cache-tree.c:261:2: note: nesting level increased to 1
        assert(!(dryrun && repair));
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/cache-tree.c:261:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(!(dryrun && repair));
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/cache-tree.c:261:18: note: +1
        assert(!(dryrun && repair));
                        ^
/datasets/git/cache-tree.c:261:2: note: +1, nesting level increased to 2
        assert(!(dryrun && repair));
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/cache-tree.c:271:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (entries > 0) {
        ^
/datasets/git/cache-tree.c:274:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (S_ISSPARSEDIR(ce->ce_mode) &&
                ^
/datasets/git/cache-tree.c:275:33: note: +1
                    ce->ce_namelen == baselen &&
                                              ^
/datasets/git/cache-tree.c:283:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (0 <= it->entry_count && has_object_file(&it->oid))
        ^
/datasets/git/cache-tree.c:283:27: note: +1
        if (0 <= it->entry_count && has_object_file(&it->oid))
                                 ^
/datasets/git/cache-tree.c:291:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < it->subtree_nr; i++)
        ^
/datasets/git/cache-tree.c:298:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (i < entries) {
        ^
/datasets/git/cache-tree.c:306:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (pathlen <= baselen || memcmp(base, path, baselen))
                ^
/datasets/git/cache-tree.c:306:26: note: +1
                if (pathlen <= baselen || memcmp(base, path, baselen))
                                       ^
/datasets/git/cache-tree.c:310:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!slash) {
                ^
/datasets/git/cache-tree.c:321:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!sub->cache_tree)
                ^
/datasets/git/cache-tree.c:329:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (subcnt < 0)
                ^
/datasets/git/cache-tree.c:331:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!subcnt)
                ^
/datasets/git/cache-tree.c:347:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (i < entries) {
        ^
/datasets/git/cache-tree.c:360:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (pathlen <= baselen || memcmp(base, path, baselen))
                ^
/datasets/git/cache-tree.c:360:26: note: +1
                if (pathlen <= baselen || memcmp(base, path, baselen))
                                       ^
/datasets/git/cache-tree.c:364:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (slash) {
                ^
/datasets/git/cache-tree.c:367:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!sub)
                        ^
/datasets/git/cache-tree.c:374:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (contains_ita) {
                        ^
/datasets/git/cache-tree.c:379:3: note: +1, nesting level increased to 2
                else {
                ^
/datasets/git/cache-tree.c:386:53: note: +1
                ce_missing_ok = mode == S_IFGITLINK || missing_ok ||
                                                                  ^
/datasets/git/cache-tree.c:388:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (is_null_oid(oid) ||
                ^
/datasets/git/cache-tree.c:388:24: note: +1
                if (is_null_oid(oid) ||
                                     ^
/datasets/git/cache-tree.c:389:23: note: +1
                    (!ce_missing_ok && !has_object_file(oid))) {
                                    ^
/datasets/git/cache-tree.c:391:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (expected_missing)
                        ^
/datasets/git/cache-tree.c:402:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ce->ce_flags & CE_REMOVE) {
                ^
/datasets/git/cache-tree.c:412:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!sub && ce_intent_to_add(ce)) {
                ^
/datasets/git/cache-tree.c:412:12: note: +1
                if (!sub && ce_intent_to_add(ce)) {
                         ^
/datasets/git/cache-tree.c:420:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (contains_ita && is_empty_tree_oid(oid))
                ^
/datasets/git/cache-tree.c:420:20: note: +1
                if (contains_ita && is_empty_tree_oid(oid))
                                 ^
/datasets/git/cache-tree.c:433:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (repair) {
        ^
/datasets/git/cache-tree.c:437:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (has_object_file_with_flags(&oid, OBJECT_INFO_SKIP_FETCH_OBJECT))
                ^
/datasets/git/cache-tree.c:439:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/cache-tree.c:441:9: note: +1, nesting level increased to 1
        } else if (dryrun) {
               ^
/datasets/git/cache-tree.c:444:9: note: +1, nesting level increased to 1
        } else if (write_object_file_flags(buffer.buf, buffer.len, OBJ_TREE,
               ^
/datasets/git/cache-tree.c:446:9: note: +2, including nesting penalty of 1, nesting level increased to 2
                                           ? HASH_SILENT : 0)) {
                                           ^
/datasets/git/cache-tree.c:452:34: note: +1, including nesting penalty of 0, nesting level increased to 1
        it->entry_count = to_invalidate ? -1 : i - *skip_count;
                                        ^
/datasets/git/cache-tree.c:246:42: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
static int update_one(struct cache_tree *it,
                                         ^
/datasets/git/cache-tree.c:255:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int missing_ok = flags & WRITE_TREE_MISSING_OK;
                         ^~~~~
/datasets/git/cache-tree.c:256:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int dryrun = flags & WRITE_TREE_DRY_RUN;
                     ^~~~~
/datasets/git/cache-tree.c:257:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int repair = flags & WRITE_TREE_REPAIR;
                     ^~~~~
/datasets/git/cache-tree.c:259:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/cache-tree.c:259:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/cache-tree.c:272:29: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                const struct cache_entry *ce = cache[0];
                                          ^
/datasets/git/cache-tree.c:283:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (0 <= it->entry_count && has_object_file(&it->oid))
                                                              ^
                                                               {
/datasets/git/cache-tree.c:291:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < it->subtree_nr; i++)
        ^
/datasets/git/cache-tree.c:259:2: note: inferred assignment of ID-dependent value from ID-dependent variable subcnt [altera-id-dependent-backward-branch]
        int i;
        ^
/datasets/git/cache-tree.c:291:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < it->subtree_nr; i++)
                    ^
/datasets/git/cache-tree.c:291:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < it->subtree_nr; i++)
                                            ^
                                             {
/datasets/git/cache-tree.c:298:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (i < entries) {
        ^
/datasets/git/cache-tree.c:259:2: note: inferred assignment of ID-dependent value from ID-dependent variable subcnt [altera-id-dependent-backward-branch]
        int i;
        ^
/datasets/git/cache-tree.c:298:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (i < entries) {
               ^
/datasets/git/cache-tree.c:299:29: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                const struct cache_entry *ce = cache[i];
                                          ^
/datasets/git/cache-tree.c:300:26: warning: variable 'sub' is not initialized [cppcoreguidelines-init-variables]
                struct cache_tree_sub *sub;
                                       ^
                                           = NULL
/datasets/git/cache-tree.c:301:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                const char *path, *slash;
                ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/cache-tree.c:301:15: warning: variable 'path' is not initialized [cppcoreguidelines-init-variables]
                const char *path, *slash;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/cache-tree.c:301:22: warning: variable 'slash' is not initialized [cppcoreguidelines-init-variables]
                const char *path, *slash;
                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/cache-tree.c:302:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int pathlen, sublen, subcnt, subskip;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/cache-tree.c:302:7: warning: variable 'pathlen' is not initialized [cppcoreguidelines-init-variables]
                int pathlen, sublen, subcnt, subskip;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/cache-tree.c:302:16: warning: variable 'sublen' is not initialized [cppcoreguidelines-init-variables]
                int pathlen, sublen, subcnt, subskip;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/cache-tree.c:302:24: warning: variable 'subcnt' is not initialized [cppcoreguidelines-init-variables]
                int pathlen, sublen, subcnt, subskip;
                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/cache-tree.c:302:32: warning: variable 'subskip' is not initialized [cppcoreguidelines-init-variables]
                int pathlen, sublen, subcnt, subskip;
                                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/cache-tree.c:306:29: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (pathlen <= baselen || memcmp(base, path, baselen))
                                          ^
                                                                      != 0
/datasets/git/cache-tree.c:306:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pathlen <= baselen || memcmp(base, path, baselen))
                                                                      ^
                                                                       {
/datasets/git/cache-tree.c:319:12: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                sublen = slash - (path + baselen);
                         ^
/datasets/git/cache-tree.c:321:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!sub->cache_tree)
                                     ^
                                      {
/datasets/git/cache-tree.c:329:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (subcnt < 0)
                               ^
                                {
/datasets/git/cache-tree.c:331:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!subcnt)
                            ^
                             {
/datasets/git/cache-tree.c:344:23: warning: 8192 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        strbuf_init(&buffer, 8192);
                             ^
/datasets/git/cache-tree.c:347:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (i < entries) {
        ^
/datasets/git/cache-tree.c:347:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (i < entries) {
               ^
/datasets/git/cache-tree.c:348:29: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                const struct cache_entry *ce = cache[i];
                                          ^
/datasets/git/cache-tree.c:350:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                const char *path, *slash;
                ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/cache-tree.c:350:15: warning: variable 'path' is not initialized [cppcoreguidelines-init-variables]
                const char *path, *slash;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/cache-tree.c:350:22: warning: variable 'slash' is not initialized [cppcoreguidelines-init-variables]
                const char *path, *slash;
                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/cache-tree.c:351:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int pathlen, entlen;
                ^~~~~~~~~~~~~~~~~~~~
/datasets/git/cache-tree.c:351:7: warning: variable 'pathlen' is not initialized [cppcoreguidelines-init-variables]
                int pathlen, entlen;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/cache-tree.c:351:16: warning: variable 'entlen' is not initialized [cppcoreguidelines-init-variables]
                int pathlen, entlen;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/cache-tree.c:352:27: warning: variable 'oid' is not initialized [cppcoreguidelines-init-variables]
                const struct object_id *oid;
                                        ^
                                            = NULL
/datasets/git/cache-tree.c:353:12: warning: variable 'mode' is not initialized [cppcoreguidelines-init-variables]
                unsigned mode;
                         ^
                              = 0
/datasets/git/cache-tree.c:356:7: warning: variable 'ce_missing_ok' is not initialized [cppcoreguidelines-init-variables]
                int ce_missing_ok;
                    ^
                                  = 0
/datasets/git/cache-tree.c:360:29: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (pathlen <= baselen || memcmp(base, path, baselen))
                                          ^
                                                                      != 0
/datasets/git/cache-tree.c:360:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pathlen <= baselen || memcmp(base, path, baselen))
                                                                      ^
                                                                       {
/datasets/git/cache-tree.c:365:13: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        entlen = slash - (path + baselen);
                                 ^
/datasets/git/cache-tree.c:367:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!sub)
                                 ^
                                  {
/datasets/git/cache-tree.c:391:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (expected_missing)
                                             ^
                                              {
/datasets/git/cache-tree.c:402:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce->ce_flags & CE_REMOVE) {
                    ^
/datasets/git/cache-tree.c:402:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce->ce_flags & CE_REMOVE) {
                                   ^
/datasets/git/./refs/../cache.h:168:31: note: expanded from macro 'CE_REMOVE'
#define CE_REMOVE            (1 << 17)
                              ^
/datasets/git/cache-tree.c:412:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!sub && ce_intent_to_add(ce)) {
                            ^
/datasets/git/./refs/../cache.h:246:31: note: expanded from macro 'ce_intent_to_add'
#define ce_intent_to_add(ce) ((ce)->ce_flags & CE_INTENT_TO_ADD)
                              ^                ~~~~~~~~~~~~~~~~
/datasets/git/cache-tree.c:420:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (contains_ita && is_empty_tree_oid(oid))
                                                           ^
                                                            {
/datasets/git/cache-tree.c:423:33: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                strbuf_grow(&buffer, entlen + 100);
                                              ^
/datasets/git/cache-tree.c:437:71: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (has_object_file_with_flags(&oid, OBJECT_INFO_SKIP_FETCH_OBJECT))
                                                                                    ^
                                                                                     {
/datasets/git/cache-tree.c:439:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/cache-tree.c:445:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                           &it->oid, flags & WRITE_TREE_SILENT
                                                     ^~~~~
/datasets/git/cache-tree.c:463:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int skip, i;
        ^~~~~~~~~~~~
/datasets/git/cache-tree.c:463:6: warning: variable 'skip' is not initialized [cppcoreguidelines-init-variables]
        int skip, i;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/cache-tree.c:463:12: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int skip, i;
                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/cache-tree.c:463:12: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/cache-tree.c:467:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (i)
              ^
               {
/datasets/git/cache-tree.c:470:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!istate->cache_tree)
                                ^
                                 {
/datasets/git/cache-tree.c:473:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & WRITE_TREE_MISSING_OK) && has_promisor_remote())
              ^~~~~
/datasets/git/cache-tree.c:473:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(flags & WRITE_TREE_MISSING_OK) && has_promisor_remote())
                                                                      ^
                                                                       {
/datasets/git/cache-tree.c:479:52: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        i = update_one(istate->cache_tree, istate->cache, istate->cache_nr,
                                                          ^
/datasets/git/cache-tree.c:483:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_performance_leave("cache_tree_update");
        ^
/datasets/git/./trace.h:251:2: note: expanded from macro 'trace_performance_leave'
        do {                                                                \
        ^
/datasets/git/cache-tree.c:484:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (i < 0)
                  ^
                   {
/datasets/git/cache-tree.c:486:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        istate->cache_changed |= CACHE_TREE_CHANGED;
        ^
/datasets/git/cache-tree.c:486:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        istate->cache_changed |= CACHE_TREE_CHANGED;
                                 ^
/datasets/git/./refs/../cache.h:303:29: note: expanded from macro 'CACHE_TREE_CHANGED'
#define CACHE_TREE_CHANGED      (1 << 5)
                                 ^
/datasets/git/cache-tree.c:490:13: warning: function 'write_one' is within a recursive call chain [misc-no-recursion]
static void write_one(struct strbuf *buffer, struct cache_tree *it,
            ^
/datasets/git/cache-tree.c:490:13: note: example recursive call chain, starting from function 'write_one'
/datasets/git/cache-tree.c:526:3: note: Frame #1: function 'write_one' calls function 'write_one' here:
                write_one(buffer, down->cache_tree, down->name, down->namelen);
                ^
/datasets/git/cache-tree.c:526:3: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/cache-tree.c:490:65: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
static void write_one(struct strbuf *buffer, struct cache_tree *it,
                                                                ^
/datasets/git/cache-tree.c:493:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/cache-tree.c:493:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/cache-tree.c:501:32: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        strbuf_grow(buffer, pathlen + 100);
                                      ^
/datasets/git/cache-tree.c:518:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < it->subtree_nr; i++) {
        ^
/datasets/git/cache-tree.c:523:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                             prev->name, prev->namelen) <= 0)
                                                                             ^
                                                                              {
/datasets/git/cache-tree.c:530:38: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void cache_tree_write(struct strbuf *sb, struct cache_tree *root)
                                     ^
/datasets/git/cache-tree.c:537:27: warning: function 'read_one' is within a recursive call chain [misc-no-recursion]
static struct cache_tree *read_one(const char **buffer, unsigned long *size_p)
                          ^
/datasets/git/cache-tree.c:537:27: note: example recursive call chain, starting from function 'read_one'
/datasets/git/cache-tree.c:604:9: note: Frame #1: function 'read_one' calls function 'read_one' here:
                sub = read_one(&buf, &size);
                      ^
/datasets/git/cache-tree.c:604:9: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/cache-tree.c:541:14: warning: variable 'cp' is not initialized [cppcoreguidelines-init-variables]
        const char *cp;
                    ^
                       = NULL
/datasets/git/cache-tree.c:541:14: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/cache-tree.c:542:8: warning: variable 'ep' is not initialized [cppcoreguidelines-init-variables]
        char *ep;
              ^
                 = NULL
/datasets/git/cache-tree.c:542:8: warning: variable name 'ep' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/cache-tree.c:543:21: warning: variable 'it' is not initialized [cppcoreguidelines-init-variables]
        struct cache_tree *it;
                           ^
                              = NULL
/datasets/git/cache-tree.c:543:21: warning: variable name 'it' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/cache-tree.c:544:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, subtree_nr;
        ^~~~~~~~~~~~~~~~~~
/datasets/git/cache-tree.c:540:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        unsigned long size = *size_p;
        ^
/datasets/git/cache-tree.c:544:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, subtree_nr;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/cache-tree.c:544:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/cache-tree.c:544:9: warning: variable 'subtree_nr' is not initialized [cppcoreguidelines-init-variables]
        int i, subtree_nr;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/cache-tree.c:549:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (size && *buf) {
        ^
/datasets/git/cache-tree.c:549:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'size' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (size && *buf) {
               ^
/datasets/git/cache-tree.c:553:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!size)
                  ^
                   {
/datasets/git/cache-tree.c:559:20: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        it->entry_count = strtol(cp, &ep, 10);
                          ^
/datasets/git/cache-tree.c:559:36: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        it->entry_count = strtol(cp, &ep, 10);
                                          ^
/datasets/git/cache-tree.c:560:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cp == ep)
                     ^
                      {
/datasets/git/cache-tree.c:563:15: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        subtree_nr = strtol(cp, &ep, 10);
                     ^
/datasets/git/cache-tree.c:563:31: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        subtree_nr = strtol(cp, &ep, 10);
                                     ^
/datasets/git/cache-tree.c:564:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cp == ep)
                     ^
                      {
/datasets/git/cache-tree.c:566:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (size && *buf && *buf != '\n') {
        ^
/datasets/git/cache-tree.c:566:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'size' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (size && *buf && *buf != '\n') {
               ^
/datasets/git/cache-tree.c:570:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!size)
                  ^
                   {
/datasets/git/cache-tree.c:574:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (size < rawsz)
                                 ^
                                  {
/datasets/git/cache-tree.c:597:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        CALLOC_ARRAY(it->down, it->subtree_alloc);
        ^
/datasets/git/./git-compat-util.h:1091:55: note: expanded from macro 'CALLOC_ARRAY'
#define CALLOC_ARRAY(x, alloc) (x) = xcalloc((alloc), sizeof(*(x)))
                                                      ^
/datasets/git/cache-tree.c:598:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < subtree_nr; i++) {
        ^
/datasets/git/cache-tree.c:598:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'subtree_nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < subtree_nr; i++) {
                    ^
/datasets/git/cache-tree.c:600:22: warning: variable 'sub' is not initialized [cppcoreguidelines-init-variables]
                struct cache_tree *sub;
                                   ^
                                       = NULL
/datasets/git/cache-tree.c:601:26: warning: variable 'subtree' is not initialized [cppcoreguidelines-init-variables]
                struct cache_tree_sub *subtree;
                                       ^
                                               = NULL
/datasets/git/cache-tree.c:605:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!sub)
                         ^
                          {
/datasets/git/cache-tree.c:610:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (subtree_nr != it->subtree_nr)
                                         ^
                                          {
/datasets/git/cache-tree.c:623:21: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        struct cache_tree *result;
                           ^
                                  = NULL
/datasets/git/cache-tree.c:625:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (buffer[0])
                      ^
                       {
/datasets/git/cache-tree.c:635:62: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
static struct cache_tree *cache_tree_find(struct cache_tree *it, const char *path)
                                                             ^
/datasets/git/cache-tree.c:637:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!it)
                ^
                 {
/datasets/git/cache-tree.c:639:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'path' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (*path) {
               ^
/datasets/git/cache-tree.c:640:15: warning: variable 'slash' is not initialized [cppcoreguidelines-init-variables]
                const char *slash;
                            ^
                                  = NULL
/datasets/git/cache-tree.c:641:26: warning: variable 'sub' is not initialized [cppcoreguidelines-init-variables]
                struct cache_tree_sub *sub;
                                       ^
                                           = NULL
/datasets/git/cache-tree.c:648:32: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                sub = find_subtree(it, path, slash - path, 0);
                                             ^
/datasets/git/cache-tree.c:649:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!sub)
                         ^
                          {
/datasets/git/cache-tree.c:654:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (*path == '/')
                ^
/datasets/git/cache-tree.c:654:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'path' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (*path == '/')
                       ^
/datasets/git/cache-tree.c:654:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (*path == '/')
                                    ^
                                     {
/datasets/git/cache-tree.c:666:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & WRITE_TREE_IGNORE_CACHE_TREE) {
            ^~~~~
/datasets/git/cache-tree.c:671:69: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!cache_tree_valid && cache_tree_update(index_state, flags) < 0)
                                                                           ^
                                                                            {
/datasets/git/cache-tree.c:675:22: warning: variable 'subtree' is not initialized [cppcoreguidelines-init-variables]
                struct cache_tree *subtree;
                                   ^
                                           = NULL
/datasets/git/cache-tree.c:677:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!subtree)
                             ^
                              {
/datasets/git/cache-tree.c:681:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/cache-tree.c:688:19: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
        struct object_id o;
                         ^
/datasets/git/cache-tree.c:689:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int was_valid, ret;
        ^~~~~~~~~~~~~~~~~~~
/datasets/git/cache-tree.c:689:6: warning: variable 'was_valid' is not initialized [cppcoreguidelines-init-variables]
        int was_valid, ret;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/cache-tree.c:689:17: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int was_valid, ret;
                       ^
/datasets/git/cache-tree.c:691:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct index_state *index_state = repo->index;
        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/cache-tree.c:697:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/cache-tree.c:697:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/cache-tree.c:699:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < index_state->cache_nr; i++) {
                ^
/datasets/git/cache-tree.c:699:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'index_state' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < index_state->cache_nr; i++) {
                            ^
/datasets/git/cache-tree.c:700:30: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                        const struct cache_entry *ce = index_state->cache[i];
                                                  ^
/datasets/git/cache-tree.c:701:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (ce_stage(ce))
                            ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/cache-tree.c:701:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ce_stage(ce))
                                         ^
                                          {
/datasets/git/cache-tree.c:702:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                bug("%d %.*s", ce_stage(ce),
                                               ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1389:45: note: expanded from macro 'bug'
#define bug(...) bug_fl(__FILE__, __LINE__, __VA_ARGS__)
                                            ^~~~~~~~~~~
/datasets/git/cache-tree.c:714:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int entries, was_valid;
        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/cache-tree.c:714:6: warning: variable 'entries' is not initialized [cppcoreguidelines-init-variables]
        int entries, was_valid;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/cache-tree.c:714:15: warning: variable 'was_valid' is not initialized [cppcoreguidelines-init-variables]
        int entries, was_valid;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/cache-tree.c:716:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/cache-tree.c:726:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        was_valid = !(flags & WRITE_TREE_IGNORE_CACHE_TREE) &&
                      ^~~~~
/datasets/git/cache-tree.c:733:47: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                write_locked_index(index_state, &lock_file, COMMIT_LOCK);
                                                            ^
/datasets/git/./refs/../cache.h:744:23: note: expanded from macro 'COMMIT_LOCK'
#define COMMIT_LOCK             (1 << 0)
                                 ^
/datasets/git/cache-tree.c:747:60: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
static void prime_cache_tree_sparse_dir(struct cache_tree *it,
                                                           ^
/datasets/git/cache-tree.c:755:13: warning: function 'prime_cache_tree_rec' is within a recursive call chain [misc-no-recursion]
static void prime_cache_tree_rec(struct repository *r,
            ^
/datasets/git/cache-tree.c:755:13: note: example recursive call chain, starting from function 'prime_cache_tree_rec'
/datasets/git/cache-tree.c:804:5: note: Frame #1: function 'prime_cache_tree_rec' calls function 'prime_cache_tree_rec' here:
                                prime_cache_tree_rec(r, sub->cache_tree, subtree, tree_path);
                                ^
/datasets/git/cache-tree.c:804:5: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/cache-tree.c:755:53: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void prime_cache_tree_rec(struct repository *r,
                                                    ^
/datasets/git/cache-tree.c:756:25: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
                                 struct cache_tree *it,
                                                    ^
/datasets/git/cache-tree.c:762:6: warning: variable 'cnt' is not initialized [cppcoreguidelines-init-variables]
        int cnt;
            ^
                = 0
/datasets/git/cache-tree.c:763:22: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int base_path_len = tree_path->len;
                            ^
/datasets/git/cache-tree.c:769:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (tree_entry(&desc, &entry)) {
        ^
/datasets/git/cache-tree.c:770:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!S_ISDIR(entry.mode))
                                         ^
                                          {
/datasets/git/cache-tree.c:773:27: warning: variable 'sub' is not initialized [cppcoreguidelines-init-variables]
                        struct cache_tree_sub *sub;
                                               ^
                                                   = NULL
/datasets/git/cache-tree.c:776:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!subtree->object.parsed)
                                                    ^
                                                     {
/datasets/git/cache-tree.c:801:53: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                            index_entry_exists(r->index, tree_path->buf, tree_path->len))
                                                                         ^
/datasets/git/cache-tree.c:801:69: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            index_entry_exists(r->index, tree_path->buf, tree_path->len))
                                                                                         ^
                                                                                          {
/datasets/git/cache-tree.c:803:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/cache-tree.c:812:42: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void prime_cache_tree(struct repository *r,
                                         ^
/datasets/git/cache-tree.c:824:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        istate->cache_changed |= CACHE_TREE_CHANGED;
        ^
/datasets/git/cache-tree.c:824:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        istate->cache_changed |= CACHE_TREE_CHANGED;
                                 ^
/datasets/git/./refs/../cache.h:303:29: note: expanded from macro 'CACHE_TREE_CHANGED'
#define CACHE_TREE_CHANGED      (1 << 5)
                                 ^
/datasets/git/cache-tree.c:836:27: warning: function 'find_cache_tree_from_traversal' is within a recursive call chain [misc-no-recursion]
static struct cache_tree *find_cache_tree_from_traversal(struct cache_tree *root,
                          ^
/datasets/git/cache-tree.c:836:27: note: example recursive call chain, starting from function 'find_cache_tree_from_traversal'
/datasets/git/cache-tree.c:843:15: note: Frame #1: function 'find_cache_tree_from_traversal' calls function 'find_cache_tree_from_traversal' here:
        our_parent = find_cache_tree_from_traversal(root, info->prev);
                     ^
/datasets/git/cache-tree.c:843:15: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/cache-tree.c:839:21: warning: variable 'our_parent' is not initialized [cppcoreguidelines-init-variables]
        struct cache_tree *our_parent;
                           ^
                                      = NULL
/datasets/git/cache-tree.c:841:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!info->prev)
                        ^
                         {
/datasets/git/cache-tree.c:851:21: warning: variable 'it' is not initialized [cppcoreguidelines-init-variables]
        struct cache_tree *it;
                           ^
                              = NULL
/datasets/git/cache-tree.c:851:21: warning: variable name 'it' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/cache-tree.c:855:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (it && it->entry_count > 0 && oideq(&ent->oid, &it->oid))
                                                                    ^
                                                                     {
/datasets/git/cache-tree.c:864:22: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
        struct cache_entry *ce = istate->cache[pos];
                            ^
/datasets/git/cache-tree.c:866:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!S_ISSPARSEDIR(ce->ce_mode))
                                        ^
                                         {
/datasets/git/cache-tree.c:878:12: warning: function 'verify_one' is within a recursive call chain [misc-no-recursion]
static int verify_one(struct repository *r,
           ^
/datasets/git/cache-tree.c:878:12: note: example recursive call chain, starting from function 'verify_one'
/datasets/git/cache-tree.c:889:7: note: Frame #1: function 'verify_one' calls function 'verify_one' here:
                if (verify_one(r, istate, it->down[i]->cache_tree, path))
                    ^
/datasets/git/cache-tree.c:889:7: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/cache-tree.c:878:42: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int verify_one(struct repository *r,
                                         ^
/datasets/git/cache-tree.c:880:28: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
                      struct cache_tree *it,
                                         ^
/datasets/git/cache-tree.c:883:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, pos, len = path->len;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/cache-tree.c:883:2: note: inferred assignment of ID-dependent value from ID-dependent member entry_count [altera-id-dependent-backward-branch]
/datasets/git/cache-tree.c:883:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, pos, len = path->len;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/cache-tree.c:883:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/cache-tree.c:883:9: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        int i, pos, len = path->len;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/cache-tree.c:883:20: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int i, pos, len = path->len;
                          ^
/datasets/git/cache-tree.c:887:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < it->subtree_nr; i++) {
        ^
/datasets/git/cache-tree.c:887:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < it->subtree_nr; i++) {
                    ^
/datasets/git/cache-tree.c:889:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (verify_one(r, istate, it->down[i]->cache_tree, path))
                                                                         ^
                                                                          {
/datasets/git/cache-tree.c:896:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            lookup_replace_object(r, &it->oid) != &it->oid)
                                                           ^
                                                            {
/datasets/git/cache-tree.c:906:43: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                pos = index_name_pos(istate, path->buf, path->len);
                                                        ^
/datasets/git/cache-tree.c:907:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_sparse && !istate->sparse_index)
                                                       ^
                                                        {
/datasets/git/cache-tree.c:921:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (i < it->entry_count) {
        ^
/datasets/git/cache-tree.c:921:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (i < it->entry_count) {
               ^
/datasets/git/cache-tree.c:922:23: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                struct cache_entry *ce = istate->cache[pos + i];
                                    ^
/datasets/git/cache-tree.c:923:15: warning: variable 'slash' is not initialized [cppcoreguidelines-init-variables]
                const char *slash;
                            ^
                                  = NULL
/datasets/git/cache-tree.c:925:27: warning: variable 'oid' is not initialized [cppcoreguidelines-init-variables]
                const struct object_id *oid;
                                        ^
                                            = NULL
/datasets/git/cache-tree.c:926:15: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
                const char *name;
                            ^
                                 = NULL
/datasets/git/cache-tree.c:927:12: warning: variable 'mode' is not initialized [cppcoreguidelines-init-variables]
                unsigned mode;
                         ^
                              = 0
/datasets/git/cache-tree.c:928:7: warning: variable 'entlen' is not initialized [cppcoreguidelines-init-variables]
                int entlen;
                    ^
                           = 0
/datasets/git/cache-tree.c:930:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce->ce_flags & (CE_STAGEMASK | CE_INTENT_TO_ADD | CE_REMOVE))
                    ^              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/cache-tree.c:930:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce->ce_flags & (CE_STAGEMASK | CE_INTENT_TO_ADD | CE_REMOVE))
                                    ^
/datasets/git/./refs/../cache.h:153:22: note: expanded from macro 'CE_STAGEMASK'
#define CE_STAGEMASK (0x3000)
                     ^
/datasets/git/cache-tree.c:930:38: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce->ce_flags & (CE_STAGEMASK | CE_INTENT_TO_ADD | CE_REMOVE))
                                                   ^
/datasets/git/./refs/../cache.h:189:31: note: expanded from macro 'CE_INTENT_TO_ADD'
#define CE_INTENT_TO_ADD     (1 << 29)
                              ^
/datasets/git/cache-tree.c:930:57: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce->ce_flags & (CE_STAGEMASK | CE_INTENT_TO_ADD | CE_REMOVE))
                                                                      ^
/datasets/git/./refs/../cache.h:168:31: note: expanded from macro 'CE_REMOVE'
#define CE_REMOVE            (1 << 17)
                              ^
/datasets/git/cache-tree.c:930:68: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ce->ce_flags & (CE_STAGEMASK | CE_INTENT_TO_ADD | CE_REMOVE))
                                                                                 ^
                                                                                  {
/datasets/git/cache-tree.c:936:13: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        entlen = slash - name;
                                 ^
/datasets/git/cache-tree.c:938:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!sub || sub->cache_tree->entry_count < 0)
                                                                     ^
                                                                      {
/datasets/git/cache-tree.c:954:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!oideq(&new_oid, &it->oid))
                                       ^
                                        {
/datasets/git/cache-tree.c:963:43: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void cache_tree_verify(struct repository *r, struct index_state *istate)
                                          ^
/datasets/git/cache-tree.c:967:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!istate->cache_tree)
                                ^
                                 {
/datasets/git/cache-tree.c:971:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (verify_one(r, istate, istate->cache_tree, &path))
                                                                     ^
                                                                      {
cbtree.c:9:47: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static struct cb_node *cb_node_of(const void *p)
                                              ^
cbtree.c:11:9: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
        return (struct cb_node *)((uintptr_t)p - 1);
               ^
cbtree.c:15:63: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static struct cb_node *cb_internal_best_match(struct cb_node *p,
                                                              ^
cbtree.c:16:21: warning: parameter name 'k' is too short, expected at least 3 characters [readability-identifier-length]
                                        const uint8_t *k, size_t klen)
                                                       ^
cbtree.c:15:47: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
static struct cb_node *cb_internal_best_match(struct cb_node *p,
                                              ^
cbtree.c:18:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1 & (uintptr_t)p) {
        ^
cbtree.c:18:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (1 & (uintptr_t)p) {
               ^
/datasets/git/cbtree.c:18:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        while (1 & (uintptr_t)p) {
               ^
/datasets/git/cbtree.c:19:19: warning: variable name 'q' is too short, expected at least 3 characters [readability-identifier-length]
                struct cb_node *q = cb_node_of(p);
                                ^
/datasets/git/cbtree.c:20:11: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                uint8_t c = q->byte < klen ? k[q->byte] : 0;
                        ^
/datasets/git/cbtree.c:21:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                size_t direction = (1 + (q->otherbits | c)) >> 8;
                                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/cbtree.c:21:50: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                size_t direction = (1 + (q->otherbits | c)) >> 8;
                                                               ^
/datasets/git/cbtree.c:29:43: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
struct cb_node *cb_insert(struct cb_tree *t, struct cb_node *node, size_t klen)
                                          ^
/datasets/git/cbtree.c:31:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t newbyte, newotherbits;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/cbtree.c:31:9: warning: variable 'newbyte' is not initialized [cppcoreguidelines-init-variables]
        size_t newbyte, newotherbits;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/cbtree.c:31:18: warning: variable 'newotherbits' is not initialized [cppcoreguidelines-init-variables]
        size_t newbyte, newotherbits;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/cbtree.c:32:10: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        uint8_t c;
                ^
                  = 0
/datasets/git/cbtree.c:32:10: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/cbtree.c:33:6: warning: variable 'newdirection' is not initialized [cppcoreguidelines-init-variables]
        int newdirection;
            ^
                         = 0
/datasets/git/cbtree.c:34:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct cb_node **wherep, *p;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/cbtree.c:34:19: warning: variable 'wherep' is not initialized [cppcoreguidelines-init-variables]
        struct cb_node **wherep, *p;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/cbtree.c:34:28: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct cb_node **wherep, *p;
                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/cbtree.c:34:28: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/cbtree.c:36:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        assert(!((uintptr_t)node & 1)); /* allocations must be aligned */
                 ^
/usr/include/assert.h:108:20: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                   ^~~~
/datasets/git/cbtree.c:47:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (newbyte = 0; newbyte < klen; newbyte++) {
        ^
/datasets/git/cbtree.c:48:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (p->k[newbyte] != node->k[newbyte])
                                                      ^
                                                       {
/datasets/git/cbtree.c:55:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        newotherbits |= newotherbits >> 1;
                        ^               ~
/datasets/git/cbtree.c:56:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        newotherbits |= newotherbits >> 2;
                        ^               ~
/datasets/git/cbtree.c:57:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        newotherbits |= newotherbits >> 4;
                        ^               ~
/datasets/git/cbtree.c:58:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        newotherbits = (newotherbits & ~(newotherbits >> 1)) ^ 255;
                       ^                                       ~~~
/datasets/git/cbtree.c:58:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        newotherbits = (newotherbits & ~(newotherbits >> 1)) ^ 255;
                                         ^               ~
/datasets/git/cbtree.c:58:57: warning: 255 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        newotherbits = (newotherbits & ~(newotherbits >> 1)) ^ 255;
                                                               ^
/datasets/git/cbtree.c:60:17: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        newdirection = (1 + (newotherbits | c)) >> 8;
                       ^
/datasets/git/cbtree.c:60:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        newdirection = (1 + (newotherbits | c)) >> 8;
                       ^                           ~
/datasets/git/cbtree.c:60:45: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        newdirection = (1 + (newotherbits | c)) >> 8;
                                                   ^
/datasets/git/cbtree.c:68:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/cbtree.c:69:19: warning: variable 'q' is not initialized [cppcoreguidelines-init-variables]
                struct cb_node *q;
                                ^
                                  = NULL
/datasets/git/cbtree.c:69:19: warning: variable name 'q' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/cbtree.c:70:10: warning: variable 'direction' is not initialized [cppcoreguidelines-init-variables]
                size_t direction;
                       ^
                                 = 0
/datasets/git/cbtree.c:73:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(1 & (uintptr_t)p))
                      ^
/datasets/git/cbtree.c:73:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(1 & (uintptr_t)p))
                                        ^
                                         {
/datasets/git/cbtree.c:76:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (q->byte > newbyte)
                                      ^
                                       {
/datasets/git/cbtree.c:78:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (q->byte == newbyte && q->otherbits > newotherbits)
                                                                      ^
                                                                       {
/datasets/git/cbtree.c:81:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                direction = (1 + (q->otherbits | c)) >> 8;
                            ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/cbtree.c:81:43: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                direction = (1 + (q->otherbits | c)) >> 8;
                                                        ^
/datasets/git/cbtree.c:86:12: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
        *wherep = (struct cb_node *)(1 + (uintptr_t)node);
                  ^
/datasets/git/cbtree.c:91:43: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
struct cb_node *cb_lookup(struct cb_tree *t, const uint8_t *k, size_t klen)
                                          ^
/datasets/git/cbtree.c:91:61: warning: parameter name 'k' is too short, expected at least 3 characters [readability-identifier-length]
struct cb_node *cb_lookup(struct cb_tree *t, const uint8_t *k, size_t klen)
                                                            ^
/datasets/git/cbtree.c:93:18: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        struct cb_node *p = cb_internal_best_match(t->root, k, klen);
                        ^
/datasets/git/cbtree.c:98:21: warning: function 'cb_descend' is within a recursive call chain [misc-no-recursion]
static enum cb_next cb_descend(struct cb_node *p, cb_iter fn, void *arg)
                    ^
/datasets/git/cbtree.c:98:21: note: example recursive call chain, starting from function 'cb_descend'
/datasets/git/cbtree.c:102:20: note: Frame #1: function 'cb_descend' calls function 'cb_descend' here:
                enum cb_next n = cb_descend(q->child[0], fn, arg);
                                 ^
/datasets/git/cbtree.c:102:20: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/cbtree.c:98:48: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static enum cb_next cb_descend(struct cb_node *p, cb_iter fn, void *arg)
                                               ^
/datasets/git/cbtree.c:98:59: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
static enum cb_next cb_descend(struct cb_node *p, cb_iter fn, void *arg)
                                                          ^
/datasets/git/cbtree.c:100:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (1 & (uintptr_t)p) {
            ^
/datasets/git/cbtree.c:101:19: warning: variable name 'q' is too short, expected at least 3 characters [readability-identifier-length]
                struct cb_node *q = cb_node_of(p);
                                ^
/datasets/git/cbtree.c:102:16: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
                enum cb_next n = cb_descend(q->child[0], fn, arg);
                             ^
/datasets/git/cbtree.c:105:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else {
          ^~~~~~
/datasets/git/cbtree.c:110:30: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
void cb_each(struct cb_tree *t, const uint8_t *kpfx, size_t klen,
                             ^
/datasets/git/cbtree.c:111:12: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
                        cb_iter fn, void *arg)
                                ^
/datasets/git/cbtree.c:113:18: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        struct cb_node *p = t->root;
                        ^
/datasets/git/cbtree.c:115:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        size_t i = 0;
               ^
/datasets/git/cbtree.c:117:9: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
        if (!p) return; /* empty tree */
               ^
                {
/datasets/git/cbtree.c:113:2: note: inferred assignment of ID-dependent value from ID-dependent member root [altera-id-dependent-backward-branch]
        struct cb_node *p = t->root;
        ^
/datasets/git/cbtree.c:120:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1 & (uintptr_t)p) {
        ^
/datasets/git/cbtree.c:120:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (1 & (uintptr_t)p) {
               ^
/datasets/git/cbtree.c:120:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        while (1 & (uintptr_t)p) {
               ^
/datasets/git/cbtree.c:121:19: warning: variable name 'q' is too short, expected at least 3 characters [readability-identifier-length]
                struct cb_node *q = cb_node_of(p);
                                ^
/datasets/git/cbtree.c:122:11: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                uint8_t c = q->byte < klen ? kpfx[q->byte] : 0;
                        ^
/datasets/git/cbtree.c:123:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                size_t direction = (1 + (q->otherbits | c)) >> 8;
                                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/cbtree.c:123:50: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                size_t direction = (1 + (q->otherbits | c)) >> 8;
                                                               ^
/datasets/git/cbtree.c:126:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (q->byte < klen)
                                   ^
                                    {
/datasets/git/cbtree.c:130:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < klen; i++) {
        ^
/datasets/git/cbtree.c:131:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (p->k[i] != kpfx[i])
                                       ^
                                        {
/datasets/git/chdir-notify.c:6:8: warning: accessing fields in struct 'chdir_notify_entry' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct chdir_notify_entry {
       ^
/datasets/git/chdir-notify.c:6:8: note: use "__attribute__((aligned(64)))" to align struct 'chdir_notify_entry' to 64 bytes
/datasets/git/chdir-notify.c:12:18: warning: variable 'chdir_notify_entries' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static LIST_HEAD(chdir_notify_entries);
                 ^
/datasets/git/chdir-notify.c:15:29: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
                           chdir_notify_callback cb,
                                                 ^
/datasets/git/chdir-notify.c:18:29: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
        struct chdir_notify_entry *e = xmalloc(sizeof(*e));
                                   ^
/datasets/git/chdir-notify.c:25:25: warning: 2 adjacent parameters of 'reparent_cb' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void reparent_cb(const char *name,
                        ^~~~~~~~~~~~~~~~~
/datasets/git/chdir-notify.c:25:37: note: the first parameter in the range is 'name'
static void reparent_cb(const char *name,
                                    ^~~~
/datasets/git/chdir-notify.c:26:16: note: the last parameter in the range is 'old_cwd'
                        const char *old_cwd,
                                    ^~~~~~~
/datasets/git/chdir-notify.c:33:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!tmp)
                 ^
                  {
/datasets/git/chdir-notify.c:40:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                trace_printf_key(&trace_setup_key,
                ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/chdir-notify.c:54:20: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        struct list_head *pos;
                          ^
                              = NULL
/datasets/git/chdir-notify.c:56:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strbuf_getcwd(&old_cwd) < 0)
                                        ^
                                         {
/datasets/git/chdir-notify.c:65:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf_key(&trace_setup_key,
        ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/chdir-notify.c:54:2: note: inferred assignment of ID-dependent value from ID-dependent member next [altera-id-dependent-backward-branch]
        struct list_head *pos;
        ^
/datasets/git/chdir-notify.c:69:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        list_for_each(pos, &chdir_notify_entries) {
        ^
./list.h:130:2: note: expanded from macro 'list_for_each'
        for (pos = (head)->next; pos != (head); pos = pos->next)
        ^
/datasets/git/chdir-notify.c:69:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'pos' and may cause performance degradation [altera-id-dependent-backward-branch]
        list_for_each(pos, &chdir_notify_entries) {
                      ^
/datasets/git/chdir-notify.c:70:30: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                struct chdir_notify_entry *e =
                                           ^
/datasets/git/chdir-notify.c:79:30: warning: 2 adjacent parameters of 'reparent_relative_path' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
char *reparent_relative_path(const char *old_cwd,
                             ^~~~~~~~~~~~~~~~~~~~
/datasets/git/chdir-notify.c:79:42: note: the first parameter in the range is 'old_cwd'
char *reparent_relative_path(const char *old_cwd,
                                         ^~~~~~~
/datasets/git/chdir-notify.c:80:21: note: the last parameter in the range is 'new_cwd'
                             const char *new_cwd,
                                         ^~~~~~~
/datasets/git/chdir-notify.c:83:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *ret, *full;
        ^~~~~~~~~~~~~~~~~
/datasets/git/chdir-notify.c:83:8: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        char *ret, *full;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/chdir-notify.c:83:14: warning: variable 'full' is not initialized [cppcoreguidelines-init-variables]
        char *ret, *full;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/chdir-notify.c:85:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_absolute_path(path))
                                   ^
                                    {
/datasets/git/checkout.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "remote.h"
^        ~~~~~~~~~~
         "checkout.h"
/datasets/git/checkout.c:7:8: warning: accessing fields in struct 'tracking_name_data' is inefficient due to padding; only needs 52 bytes but is using 56 bytes [altera-struct-pack-align]
struct tracking_name_data {
       ^
/datasets/git/checkout.c:7:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'tracking_name_data'
/datasets/git/checkout.c:7:8: warning: accessing fields in struct 'tracking_name_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct tracking_name_data {
       ^
/datasets/git/checkout.c:7:8: note: use "__attribute__((aligned(64)))" to align struct 'tracking_name_data' to 64 bytes
/datasets/git/checkout.c:21:29: warning: variable name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
        struct tracking_name_data *cb = cb_data;
                                   ^
/datasets/git/checkout.c:23:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&query, 0, sizeof(struct refspec_item));
        ^~~~~~
/datasets/git/checkout.c:23:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&query, 0, sizeof(struct refspec_item));
        ^~~~~~
/datasets/git/checkout.c:50:76: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!git_config_get_string_tmp("checkout.defaultremote", &default_remote))
                                                                                  ^
                                                                                   {
/datasets/git/checkout.c:55:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (dwim_remotes_matched)
                                 ^
                                  {
/datasets/git/chunk-format.c:10:8: warning: accessing fields in struct 'chunk_info' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct chunk_info {
       ^
/datasets/git/chunk-format.c:10:8: note: use "__attribute__((aligned(32)))" to align struct 'chunk_info' to 32 bytes
/datasets/git/chunk-format.c:18:8: warning: accessing fields in struct 'chunkfile' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct chunkfile {
       ^
/datasets/git/chunk-format.c:18:8: note: use "__attribute__((aligned(32)))" to align struct 'chunkfile' to 32 bytes
/datasets/git/chunk-format.c:26:51: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
struct chunkfile *init_chunkfile(struct hashfile *f)
                                                  ^
/datasets/git/chunk-format.c:28:20: warning: variable name 'cf' is too short, expected at least 3 characters [readability-identifier-length]
        struct chunkfile *cf = xcalloc(1, sizeof(*cf));
                          ^
/datasets/git/chunk-format.c:33:39: warning: parameter name 'cf' is too short, expected at least 3 characters [readability-identifier-length]
void free_chunkfile(struct chunkfile *cf)
                                      ^
/datasets/git/chunk-format.c:35:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!cf)
                ^
                 {
/datasets/git/chunk-format.c:41:38: warning: parameter name 'cf' is too short, expected at least 3 characters [readability-identifier-length]
int get_num_chunks(struct chunkfile *cf)
                                     ^
/datasets/git/chunk-format.c:43:9: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return cf->chunks_nr;
               ^
/datasets/git/chunk-format.c:46:34: warning: parameter name 'cf' is too short, expected at least 3 characters [readability-identifier-length]
void add_chunk(struct chunkfile *cf,
                                 ^
/datasets/git/chunk-format.c:47:9: warning: 2 adjacent parameters of 'add_chunk' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
               uint32_t id,
               ^~~~~~~~~~~~
/datasets/git/chunk-format.c:47:18: note: the first parameter in the range is 'id'
               uint32_t id,
                        ^~
/datasets/git/chunk-format.c:48:16: note: the last parameter in the range is 'size'
               size_t size,
                      ^~~~
/datasets/git/chunk-format.c:47:9: note: 
               uint32_t id,
               ^
/datasets/git/chunk-format.c:48:9: note: 'uint32_t' and 'size_t' may be implicitly converted: 'uint32_t' (as 'unsigned int') -> 'size_t' (as 'unsigned long'), 'size_t' (as 'unsigned long') -> 'uint32_t' (as 'unsigned int')
               size_t size,
               ^
/datasets/git/chunk-format.c:47:18: warning: parameter name 'id' is too short, expected at least 3 characters [readability-identifier-length]
               uint32_t id,
                        ^
/datasets/git/chunk-format.c:49:24: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
               chunk_write_fn fn)
                              ^
/datasets/git/chunk-format.c:51:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(cf->chunks, cf->chunks_nr + 1, cf->chunks_alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/chunk-format.c:59:39: warning: parameter name 'cf' is too short, expected at least 3 characters [readability-identifier-length]
int write_chunkfile(struct chunkfile *cf, void *data)
                                      ^
/datasets/git/chunk-format.c:61:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, result = 0;
        ^~~~~~~~~~~~~~~~~~
/datasets/git/chunk-format.c:61:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, result = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/chunk-format.c:61:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/chunk-format.c:69:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < cf->chunks_nr; i++) {
        ^
/datasets/git/chunk-format.c:80:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < cf->chunks_nr; i++) {
        ^
/datasets/git/chunk-format.c:84:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (result)
                           ^
                            {
/datasets/git/chunk-format.c:87:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (hashfile_total(cf->f) - start_offset != cf->chunks[i].size)
                                                                               ^
                                                                                {
/datasets/git/chunk-format.c:98:46: warning: parameter name 'cf' is too short, expected at least 3 characters [readability-identifier-length]
int read_table_of_contents(struct chunkfile *cf,
                                             ^
/datasets/git/chunk-format.c:100:7: warning: 3 adjacent parameters of 'read_table_of_contents' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                           size_t mfile_size,
                           ^~~~~~~~~~~~~~~~~~
/datasets/git/chunk-format.c:100:14: note: the first parameter in the range is 'mfile_size'
                           size_t mfile_size,
                                  ^~~~~~~~~~
/datasets/git/chunk-format.c:102:11: note: the last parameter in the range is 'toc_length'
                           int toc_length)
                               ^~~~~~~~~~
/datasets/git/chunk-format.c:100:7: note: after resolving type aliases, the common type of 'size_t' and 'uint64_t' is 'unsigned long'
                           size_t mfile_size,
                           ^
/datasets/git/chunk-format.c:100:7: note: 
/datasets/git/chunk-format.c:102:7: note: 'size_t' and 'int' may be implicitly converted: 'size_t' (as 'unsigned long') -> 'int', 'int' -> 'size_t' (as 'unsigned long')
                           int toc_length)
                           ^
/datasets/git/chunk-format.c:101:7: note: 
                           uint64_t toc_offset,
                           ^
/datasets/git/chunk-format.c:102:7: note: 'uint64_t' and 'int' may be implicitly converted: 'uint64_t' (as 'unsigned long') -> 'int', 'int' -> 'uint64_t' (as 'unsigned long')
                           int toc_length)
                           ^
/datasets/git/chunk-format.c:104:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/chunk-format.c:104:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/chunk-format.c:105:11: warning: variable 'chunk_id' is not initialized [cppcoreguidelines-init-variables]
        uint32_t chunk_id;
                 ^
                          = 0
/datasets/git/chunk-format.c:108:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(cf->chunks, toc_length, cf->chunks_alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/chunk-format.c:111:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                uint64_t chunk_offset, next_chunk_offset;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/chunk-format.c:111:12: warning: variable 'chunk_offset' is not initialized [cppcoreguidelines-init-variables]
                uint64_t chunk_offset, next_chunk_offset;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/chunk-format.c:111:26: warning: variable 'next_chunk_offset' is not initialized [cppcoreguidelines-init-variables]
                uint64_t chunk_offset, next_chunk_offset;
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/chunk-format.c:131:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < cf->chunks_nr; i++) {
                ^
/datasets/git/chunk-format.c:155:12: warning: parameter 'chunk_size' is unused [misc-unused-parameters]
                         size_t chunk_size,
                                ^
/datasets/git/chunk-format.c:158:24: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        const unsigned char **p = data;
                              ^
/datasets/git/chunk-format.c:163:34: warning: parameter name 'cf' is too short, expected at least 3 characters [readability-identifier-length]
int pair_chunk(struct chunkfile *cf,
                                 ^
/datasets/git/chunk-format.c:165:31: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
               const unsigned char **p)
                                     ^
/datasets/git/chunk-format.c:170:34: warning: parameter name 'cf' is too short, expected at least 3 characters [readability-identifier-length]
int read_chunk(struct chunkfile *cf,
                                 ^
/datasets/git/chunk-format.c:172:23: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
               chunk_read_fn fn,
                             ^
/datasets/git/chunk-format.c:175:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/chunk-format.c:175:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/chunk-format.c:177:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < cf->chunks_nr; i++) {
        ^
/datasets/git/chunk-format.c:178:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cf->chunks[i].id == chunk_id)
                                                 ^
                                                  {
/datasets/git/color.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "color.h"
/datasets/git/color.c:5:12: warning: variable 'git_use_color_default' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int git_use_color_default = GIT_COLOR_AUTO;
           ^
/datasets/git/color.c:6:5: warning: variable 'color_stdout_is_tty' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
int color_stdout_is_tty = -1;
    ^
/datasets/git/color.c:11:13: warning: variable 'column_colors_ansi' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
const char *column_colors_ansi[] = {
            ^
/datasets/git/color.c:39:8: warning: accessing fields in struct 'color' is inefficient due to poor alignment; currently aligned to 4 bytes, but recommended alignment is 8 bytes [altera-struct-pack-align]
struct color {
       ^
/datasets/git/color.c:39:8: note: use "__attribute__((aligned(8)))" to align struct 'color' to 8 bytes
/datasets/git/color.c:59:2: warning: Undefined or garbage value returned to caller [clang-analyzer-core.uninitialized.UndefReturn]
        return !strncasecmp(word, match, len) && !match[len];
        ^
/datasets/git/color.c:214:9: note: Calling 'color_parse_mem'
        return color_parse_mem(value, strlen(value), dst);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/color.c:263:9: note: Assuming 'len' is > 0
        while (len > 0 && isspace(*ptr)) {
               ^~~~~~~
/datasets/git/color.c:263:9: note: Left side of '&&' is true
/datasets/git/color.c:263:2: note: Loop condition is false. Execution continues on line 268
        while (len > 0 && isspace(*ptr)) {
        ^
/datasets/git/color.c:268:7: note: 'len' is not equal to 0
        if (!len) {
             ^~~
/datasets/git/color.c:268:2: note: Taking false branch
        if (!len) {
        ^
/datasets/git/color.c:274:9: note: 'len' is > 0
        while (len > 0) {
               ^~~
/datasets/git/color.c:274:2: note: Loop condition is true.  Entering loop body
        while (len > 0) {
        ^
/datasets/git/color.c:279:10: note: 'len' is > 0
                while (len > 0 && !isspace(word[wordlen])) {
                       ^~~
/datasets/git/color.c:279:10: note: Left side of '&&' is true
/datasets/git/color.c:279:3: note: Loop condition is false. Execution continues on line 284
                while (len > 0 && !isspace(word[wordlen])) {
                ^
/datasets/git/color.c:285:10: note: 'len' is > 0
                while (len > 0 && isspace(*ptr)) {
                       ^~~
/datasets/git/color.c:285:10: note: Left side of '&&' is true
/datasets/git/color.c:285:3: note: Loop condition is false. Execution continues on line 290
                while (len > 0 && isspace(*ptr)) {
                ^
/datasets/git/color.c:290:3: note: Taking false branch
                if (match_word(word, wordlen, "reset")) {
                ^
/datasets/git/color.c:295:8: note: Calling 'parse_color'
                if (!parse_color(&c, word, wordlen)) {
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/color.c:128:2: note: Taking false branch
        if (match_word(name, len, "normal")) {
        ^
/datasets/git/color.c:134:6: note: 'len' is not equal to 7
        if (len == 7 && name[0] == '#') {
            ^~~
/datasets/git/color.c:134:15: note: Left side of '&&' is false
        if (len == 7 && name[0] == '#') {
                     ^
/datasets/git/color.c:144:6: note: Calling 'parse_ansi_color'
        if (parse_ansi_color(out, name, len) == 0) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/color.c:86:2: note: Taking false branch
        if (match_word(name, len, "default")) {
        ^
/datasets/git/color.c:107:2: note: Taking true branch
        if (strncasecmp(name, "bright", 6) == 0) {
        ^
/datasets/git/color.c:112:2: note: Loop condition is true.  Entering loop body
        for (i = 0; i < ARRAY_SIZE(color_names); i++) {
        ^
/datasets/git/color.c:113:7: note: Calling 'match_word'
                if (match_word(name, len, color_names[i])) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/color.c:59:9: note: Left side of '&&' is true
        return !strncasecmp(word, match, len) && !match[len];
               ^
/datasets/git/color.c:59:2: note: Undefined or garbage value returned to caller
        return !strncasecmp(word, match, len) && !match[len];
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/color.c:62:38: warning: parameter name 'in' is too short, expected at least 3 characters [readability-identifier-length]
static int get_hex_color(const char *in, unsigned char *out)
                                     ^
/datasets/git/color.c:64:15: warning: variable 'val' is not initialized [cppcoreguidelines-init-variables]
        unsigned int val;
                     ^
                         = 0
/datasets/git/color.c:65:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        val = (hexval(in[0]) << 4) | hexval(in[1]);
               ^                ~
/datasets/git/color.c:66:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (val & ~0xff)
            ^     ~~~~~
/datasets/git/color.c:66:12: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
        if (val & ~0xff)
                  ^~~~~
/datasets/git/color.c:66:13: warning: 0xff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (val & ~0xff)
                   ^
/datasets/git/color.c:66:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (val & ~0xff)
                        ^
                         {
/datasets/git/color.c:83:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/color.c:83:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/color.c:103:16: warning: 9 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                out->value = 9 + color_offset;
                             ^
/datasets/git/color.c:107:34: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (strncasecmp(name, "bright", 6) == 0) {
                                        ^
/datasets/git/color.c:109:11: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                name += 6;
                        ^
/datasets/git/color.c:110:10: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                len -= 6;
                       ^
/datasets/git/color.c:112:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ARRAY_SIZE(color_names); i++) {
        ^
/datasets/git/color.c:124:8: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
        char *end;
              ^
                  = NULL
/datasets/git/color.c:125:7: warning: variable 'val' is not initialized [cppcoreguidelines-init-variables]
        long val;
             ^
                 = 0
/datasets/git/color.c:134:13: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (len == 7 && name[0] == '#') {
                   ^
/datasets/git/color.c:137:29: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                    !get_hex_color(name + 5, &out->blue)) {
                                          ^
/datasets/git/color.c:149:27: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        val = strtol(name, &end, 10);
                                 ^
/datasets/git/color.c:155:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (val < -1)
                             ^
                              {
/datasets/git/color.c:161:20: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                } else if (val < 8) {
                                 ^
/datasets/git/color.c:166:20: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                } else if (val < 16) {
                                 ^
/datasets/git/color.c:168:23: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        out->value = val - 8 + COLOR_FOREGROUND_BRIGHT_ANSI;
                                           ^
/datasets/git/color.c:170:20: warning: 256 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                } else if (val < 256) {
                                 ^
/datasets/git/color.c:182:15: warning: accessing fields in struct '' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
        static const struct {
                     ^
/datasets/git/color.c:182:15: note: use "__attribute__((aligned(32)))" to align struct '' to 32 bytes
/datasets/git/color.c:198:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/color.c:198:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/color.c:205:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ARRAY_SIZE(attrs); i++) {
        ^
/datasets/git/color.c:206:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (attrs[i].len == len && !memcmp(attrs[i].name, name, len))
                                                                             ^
                                                                              {
/datasets/git/color.c:214:32: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return color_parse_mem(value, strlen(value), dst);
                                      ^
/datasets/git/color.c:222:67: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static char *color_output(char *out, int len, const struct color *c, int background)
                                                                  ^
/datasets/git/color.c:226:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (background)
                       ^
                        {
/datasets/git/color.c:248:44: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static int color_empty(const struct color *c)
                                           ^
/datasets/git/color.c:253:5: warning: function 'color_parse_mem' has cognitive complexity of 76 (threshold 25) [readability-function-cognitive-complexity]
int color_parse_mem(const char *value, int value_len, char *dst)
    ^
/datasets/git/color.c:263:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (len > 0 && isspace(*ptr)) {
        ^
/datasets/git/color.c:263:17: note: +1
        while (len > 0 && isspace(*ptr)) {
                       ^
/datasets/git/color.c:268:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!len) {
        ^
/datasets/git/color.c:274:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (len > 0) {
        ^
/datasets/git/color.c:279:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (len > 0 && !isspace(word[wordlen])) {
                ^
/datasets/git/color.c:279:18: note: +1
                while (len > 0 && !isspace(word[wordlen])) {
                               ^
/datasets/git/color.c:285:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (len > 0 && isspace(*ptr)) {
                ^
/datasets/git/color.c:285:18: note: +1
                while (len > 0 && isspace(*ptr)) {
                               ^
/datasets/git/color.c:290:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (match_word(word, wordlen, "reset")) {
                ^
/datasets/git/color.c:295:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!parse_color(&c, word, wordlen)) {
                ^
/datasets/git/color.c:296:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (fg.type == COLOR_UNSPECIFIED) {
                        ^
/datasets/git/color.c:300:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (bg.type == COLOR_UNSPECIFIED) {
                        ^
/datasets/git/color.c:304:4: note: +1
                        goto bad;
                        ^
/datasets/git/color.c:307:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (0 <= val)
                ^
/datasets/git/color.c:309:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/color.c:320:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (has_reset || attr || !color_empty(&fg) || !color_empty(&bg)) {
        ^
/datasets/git/color.c:320:45: note: +1
        if (has_reset || attr || !color_empty(&fg) || !color_empty(&bg)) {
                                                   ^
/datasets/git/color.c:324:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                OUT('\033');
                ^
/datasets/git/color.c:314:16: note: expanded from macro 'OUT'
#define OUT(x) do { \
               ^
/datasets/git/color.c:324:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                OUT('\033');
                ^
/datasets/git/color.c:315:2: note: expanded from macro 'OUT'
        if (dst == end) \
        ^
/datasets/git/color.c:325:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                OUT('[');
                ^
/datasets/git/color.c:314:16: note: expanded from macro 'OUT'
#define OUT(x) do { \
               ^
/datasets/git/color.c:325:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                OUT('[');
                ^
/datasets/git/color.c:315:2: note: expanded from macro 'OUT'
        if (dst == end) \
        ^
/datasets/git/color.c:327:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (has_reset)
                ^
/datasets/git/color.c:330:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; attr; i++) {
                ^
/datasets/git/color.c:332:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!(attr & bit))
                        ^
/datasets/git/color.c:335:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (sep++)
                        ^
/datasets/git/color.c:336:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                OUT(';');
                                ^
/datasets/git/color.c:315:2: note: expanded from macro 'OUT'
        if (dst == end) \
        ^
/datasets/git/color.c:339:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!color_empty(&fg)) {
                ^
/datasets/git/color.c:340:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (sep++)
                        ^
/datasets/git/color.c:341:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                OUT(';');
                                ^
/datasets/git/color.c:315:2: note: expanded from macro 'OUT'
        if (dst == end) \
        ^
/datasets/git/color.c:344:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!color_empty(&bg)) {
                ^
/datasets/git/color.c:345:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (sep++)
                        ^
/datasets/git/color.c:346:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                OUT(';');
                                ^
/datasets/git/color.c:315:2: note: expanded from macro 'OUT'
        if (dst == end) \
        ^
/datasets/git/color.c:349:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                OUT('m');
                ^
/datasets/git/color.c:314:16: note: expanded from macro 'OUT'
#define OUT(x) do { \
               ^
/datasets/git/color.c:349:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                OUT('m');
                ^
/datasets/git/color.c:315:2: note: expanded from macro 'OUT'
        if (dst == end) \
        ^
/datasets/git/color.c:351:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        OUT(0);
        ^
/datasets/git/color.c:314:16: note: expanded from macro 'OUT'
#define OUT(x) do { \
               ^
/datasets/git/color.c:351:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        OUT(0);
        ^
/datasets/git/color.c:315:2: note: expanded from macro 'OUT'
        if (dst == end) \
        ^
/datasets/git/color.c:256:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int len = value_len;
        ^
/datasets/git/color.c:260:15: warning: variable name 'fg' is too short, expected at least 3 characters [readability-identifier-length]
        struct color fg = { COLOR_UNSPECIFIED };
                     ^
/datasets/git/color.c:261:15: warning: variable name 'bg' is too short, expected at least 3 characters [readability-identifier-length]
        struct color bg = { COLOR_UNSPECIFIED };
                     ^
/datasets/git/color.c:263:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (len > 0 && isspace(*ptr)) {
        ^
/datasets/git/color.c:256:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int len = value_len;
        ^
/datasets/git/color.c:263:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (len > 0 && isspace(*ptr)) {
               ^
/datasets/git/color.c:263:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        while (len > 0 && isspace(*ptr)) {
                          ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/color.c:274:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (len > 0) {
               ^
/datasets/git/color.c:276:16: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                struct color c = { COLOR_UNSPECIFIED };
                             ^
/datasets/git/color.c:277:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int val, wordlen = 0;
                ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/color.c:256:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int len = value_len;
        ^
/datasets/git/color.c:277:7: warning: variable 'val' is not initialized [cppcoreguidelines-init-variables]
                int val, wordlen = 0;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/color.c:279:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (len > 0 && !isspace(word[wordlen])) {
                ^
/datasets/git/color.c:256:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int len = value_len;
        ^
/datasets/git/color.c:279:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (len > 0 && !isspace(word[wordlen])) {
                       ^
/datasets/git/color.c:279:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                while (len > 0 && !isspace(word[wordlen])) {
                                   ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/color.c:285:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (len > 0 && isspace(*ptr)) {
                ^
/datasets/git/color.c:285:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (len > 0 && isspace(*ptr)) {
                       ^
/datasets/git/color.c:285:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                while (len > 0 && isspace(*ptr)) {
                                  ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/color.c:307:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (0 <= val)
                             ^
                              {
/datasets/git/color.c:308:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        attr |= (1 << val);
                        ^       ~~~~~~~~~~
/datasets/git/color.c:308:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        attr |= (1 << val);
                                 ^
/datasets/git/color.c:309:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/color.c:322:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/color.c:322:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/color.c:324:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                OUT('\033');
                ^
/datasets/git/color.c:314:16: note: expanded from macro 'OUT'
#define OUT(x) do { \
               ^
/datasets/git/color.c:325:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                OUT('[');
                ^
/datasets/git/color.c:314:16: note: expanded from macro 'OUT'
#define OUT(x) do { \
               ^
/datasets/git/color.c:327:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (has_reset)
                              ^
                               {
/datasets/git/color.c:330:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'attr' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; attr; i++) {
                            ^
/datasets/git/color.c:331:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        unsigned bit = (1 << i);
                                        ^
/datasets/git/color.c:332:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!(attr & bit))
                                          ^
                                           {
/datasets/git/color.c:335:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (sep++)
                                  ^
                                   {
/datasets/git/color.c:336:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                OUT(';');
                                ^
/datasets/git/color.c:314:16: note: expanded from macro 'OUT'
#define OUT(x) do { \
               ^
/datasets/git/color.c:340:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (sep++)
                                  ^
                                   {
/datasets/git/color.c:341:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                OUT(';');
                                ^
/datasets/git/color.c:314:16: note: expanded from macro 'OUT'
#define OUT(x) do { \
               ^
/datasets/git/color.c:342:28: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        dst = color_output(dst, end - dst, &fg, 0);
                                                ^
/datasets/git/color.c:345:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (sep++)
                                  ^
                                   {
/datasets/git/color.c:346:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                OUT(';');
                                ^
/datasets/git/color.c:314:16: note: expanded from macro 'OUT'
#define OUT(x) do { \
               ^
/datasets/git/color.c:347:28: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        dst = color_output(dst, end - dst, &bg, 1);
                                                ^
/datasets/git/color.c:349:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                OUT('m');
                ^
/datasets/git/color.c:314:16: note: expanded from macro 'OUT'
#define OUT(x) do { \
               ^
/datasets/git/color.c:351:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        OUT(0);
        ^
/datasets/git/color.c:314:16: note: expanded from macro 'OUT'
#define OUT(x) do { \
               ^
/datasets/git/color.c:361:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcasecmp(value, "never"))
                                                ^
                                                 {
/datasets/git/color.c:363:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcasecmp(value, "always"))
                                                 ^
                                                  {
/datasets/git/color.c:365:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcasecmp(value, "auto"))
                                               ^
                                                {
/datasets/git/color.c:369:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!var)
                 ^
                  {
/datasets/git/color.c:373:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!git_config_bool(var, value))
                                         ^
                                          {
/datasets/git/color.c:380:33: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
static int check_auto_color(int fd)
                                ^
/datasets/git/color.c:384:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*is_tty_p < 0)
                          ^
                           {
/datasets/git/color.c:387:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!is_terminal_dumb())
                                        ^
                                         {
/datasets/git/color.c:393:19: warning: 2 adjacent parameters of 'want_color_fd' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
int want_color_fd(int fd, int var)
                  ^~~~~~~~~~~~~~~
/datasets/git/color.c:393:23: note: the first parameter in the range is 'fd'
int want_color_fd(int fd, int var)
                      ^~
/datasets/git/color.c:393:31: note: the last parameter in the range is 'var'
int want_color_fd(int fd, int var)
                              ^~~
/datasets/git/color.c:393:23: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
int want_color_fd(int fd, int var)
                      ^
/datasets/git/color.c:404:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fd < 1 || fd >= ARRAY_SIZE(want_auto))
                                                  ^
                                                   {
/datasets/git/color.c:407:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (var < 0)
                    ^
                     {
/datasets/git/color.c:411:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (want_auto[fd] < 0)
                                      ^
                                       {
/datasets/git/color.c:418:64: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
int git_color_config(const char *var, const char *value, void *cb UNUSED)
                                                               ^
/datasets/git/color.c:428:72: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
int git_color_default_config(const char *var, const char *value, void *cb)
                                                                       ^
/datasets/git/color.c:430:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (git_color_config(var, value, cb) < 0)
                                                 ^
                                                  {
/datasets/git/color.c:436:31: warning: parameter name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
void color_print_strbuf(FILE *fp, const char *color, const struct strbuf *sb)
                              ^
/datasets/git/color.c:436:75: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void color_print_strbuf(FILE *fp, const char *color, const struct strbuf *sb)
                                                                          ^
/datasets/git/color.c:438:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*color)
                   ^
                    {
/datasets/git/color.c:439:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(fp, "%s", color);
                ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/color.c:439:3: note: cast the expression to void to silence this warning
/datasets/git/color.c:440:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(fp, "%s", sb->buf);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/color.c:440:2: note: cast the expression to void to silence this warning
/datasets/git/color.c:441:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*color)
                   ^
                    {
/datasets/git/color.c:442:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(fp, "%s", GIT_COLOR_RESET);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/color.c:442:3: note: cast the expression to void to silence this warning
/datasets/git/color.c:445:33: warning: parameter name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
static int color_vfprintf(FILE *fp, const char *color, const char *fmt,
                                ^
/datasets/git/color.c:445:37: warning: 2 adjacent parameters of 'color_vfprintf' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int color_vfprintf(FILE *fp, const char *color, const char *fmt,
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/color.c:445:49: note: the first parameter in the range is 'color'
static int color_vfprintf(FILE *fp, const char *color, const char *fmt,
                                                ^~~~~
/datasets/git/color.c:445:68: note: the last parameter in the range is 'fmt'
static int color_vfprintf(FILE *fp, const char *color, const char *fmt,
                                                                   ^~~
/datasets/git/color.c:448:6: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        int r = 0;
            ^
/datasets/git/color.c:450:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*color)
                   ^
                    {
/datasets/git/color.c:452:7: warning: Function 'vfprintf' is called with an uninitialized va_list argument [clang-analyzer-valist.Uninitialized]
        r += vfprintf(fp, fmt, args);
             ^
/datasets/git/color.c:475:6: note: Calling 'color_vfprintf'
        r = color_vfprintf(fp, color, fmt, args, "\n");
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/color.c:450:6: note: Assuming the condition is false
        if (*color)
            ^~~~~~
/datasets/git/color.c:450:2: note: Taking false branch
        if (*color)
        ^
/datasets/git/color.c:452:7: note: Function 'vfprintf' is called with an uninitialized va_list argument
        r += vfprintf(fp, fmt, args);
             ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/color.c:453:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*color)
                   ^
                    {
/datasets/git/color.c:455:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (trail)
                  ^
                   {
/datasets/git/color.c:460:25: warning: parameter name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
int color_fprintf(FILE *fp, const char *color, const char *fmt, ...)
                        ^
/datasets/git/color.c:463:6: warning: variable 'r' is not initialized [cppcoreguidelines-init-variables]
        int r;
            ^
              = 0
/datasets/git/color.c:463:6: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/color.c:470:28: warning: parameter name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
int color_fprintf_ln(FILE *fp, const char *color, const char *fmt, ...)
                           ^
/datasets/git/color.c:473:6: warning: variable 'r' is not initialized [cppcoreguidelines-init-variables]
        int r;
            ^
              = 0
/datasets/git/color.c:473:6: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/color.c:480:30: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
int color_is_nil(const char *c)
                             ^
/datasets/git/column.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "column.h"
/datasets/git/column.c:13:8: warning: accessing fields in struct 'column_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct column_data {
       ^
/datasets/git/column.c:13:8: note: use "__attribute__((aligned(64)))" to align struct 'column_data' to 64 bytes
/datasets/git/column.c:24:36: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static int item_length(const char *s)
                                   ^
/datasets/git/column.c:35:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/column.c:35:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/column.c:38:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < data->list->nr; i++)
        ^
/datasets/git/column.c:38:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < data->list->nr; i++)
                                            ^
                                             {
/datasets/git/column.c:39:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*width < data->len[i])
                                          ^
                                           {
/datasets/git/column.c:44:15: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        data->cols = (data->opts.width - strlen(data->opts.indent)) / *width;
                     ^
/datasets/git/column.c:45:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (data->cols == 0)
                            ^
                             {
/datasets/git/column.c:53:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, x, y;
        ^~~~~~~~~~~~
/datasets/git/column.c:18:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        int rows, cols;
        ^
/datasets/git/column.c:53:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, x, y;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/column.c:53:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/column.c:53:9: warning: variable 'x' is not initialized [cppcoreguidelines-init-variables]
        int i, x, y;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/column.c:53:9: warning: variable name 'x' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/column.c:53:12: warning: variable 'y' is not initialized [cppcoreguidelines-init-variables]
        int i, x, y;
                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/column.c:53:12: warning: variable name 'y' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/column.c:18:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        int rows, cols;
        ^
/datasets/git/column.c:54:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'cols' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (x = 0; x < data->cols; x++) {
                    ^
/datasets/git/column.c:55:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                data->width[x] = XY2LINEAR(data, x, 0);
                                 ^
/datasets/git/column.c:9:29: note: expanded from macro 'XY2LINEAR'
#define XY2LINEAR(d, x, y) (COL_LAYOUT((d)->colopts) == COL_COLUMN ? \
                            ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./column.h:14:24: note: expanded from macro 'COL_LAYOUT'
#define COL_LAYOUT(c) ((c) & COL_LAYOUT_MASK)
                       ^     ~~~~~~~~~~~~~~~
/datasets/git/column.c:56:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (y = 0; y < data->rows; y++) {
                ^
/datasets/git/column.c:56:15: warning: backward branch (for loop) is ID-dependent due to member reference to 'rows' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (y = 0; y < data->rows; y++) {
                            ^
/datasets/git/column.c:57:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        i = XY2LINEAR(data, x, y);
                            ^
/datasets/git/column.c:9:29: note: expanded from macro 'XY2LINEAR'
#define XY2LINEAR(d, x, y) (COL_LAYOUT((d)->colopts) == COL_COLUMN ? \
                            ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./column.h:14:24: note: expanded from macro 'COL_LAYOUT'
#define COL_LAYOUT(c) ((c) & COL_LAYOUT_MASK)
                       ^     ~~~~~~~~~~~~~~~
/datasets/git/column.c:18:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        int rows, cols;
        ^
/datasets/git/column.c:59:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            data->len[data->width[x]] < data->len[i])
                                                                     ^
                                                                      {
/datasets/git/column.c:75:9: warning: backward branch (while loop) is ID-dependent due to member reference to 'rows' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (data->rows > 1) {
               ^
/datasets/git/column.c:76:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int x, total_width, cols, rows;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/column.c:76:7: warning: variable 'x' is not initialized [cppcoreguidelines-init-variables]
                int x, total_width, cols, rows;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/column.c:76:7: warning: variable name 'x' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/column.c:76:10: warning: variable 'total_width' is not initialized [cppcoreguidelines-init-variables]
                int x, total_width, cols, rows;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/column.c:76:23: warning: variable 'cols' is not initialized [cppcoreguidelines-init-variables]
                int x, total_width, cols, rows;
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/column.c:76:29: warning: variable 'rows' is not initialized [cppcoreguidelines-init-variables]
                int x, total_width, cols, rows;
                                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/column.c:82:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (data->cols != cols)
                                       ^
                                        {
/datasets/git/column.c:86:17: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                total_width = strlen(data->opts.indent);
                              ^
/datasets/git/column.c:87:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (x = 0; x < data->cols; x++) {
                ^
/datasets/git/column.c:87:15: warning: backward branch (for loop) is ID-dependent due to member reference to 'cols' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (x = 0; x < data->cols; x++) {
                            ^
/datasets/git/column.c:102:38: warning: parameter name 'nl' is too short, expected at least 3 characters [readability-identifier-length]
                          const char *indent, const char *nl)
                                                          ^
/datasets/git/column.c:104:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/column.c:104:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/column.c:106:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < list->nr; i++)
        ^
/datasets/git/column.c:106:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < list->nr; i++)
                                      ^
                                       {
/datasets/git/column.c:112:32: warning: parameter name 'x' is too short, expected at least 3 characters [readability-identifier-length]
                        const char *empty_cell, int x, int y)
                                                    ^
/datasets/git/column.c:112:39: warning: parameter name 'y' is too short, expected at least 3 characters [readability-identifier-length]
                        const char *empty_cell, int x, int y)
                                                           ^
/datasets/git/column.c:114:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, len, newline;
        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/column.c:114:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, len, newline;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/column.c:114:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/column.c:114:9: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int i, len, newline;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/column.c:114:14: warning: variable 'newline' is not initialized [cppcoreguidelines-init-variables]
        int i, len, newline;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/column.c:116:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        i = XY2LINEAR(data, x, y);
            ^
/datasets/git/column.c:9:29: note: expanded from macro 'XY2LINEAR'
#define XY2LINEAR(d, x, y) (COL_LAYOUT((d)->colopts) == COL_COLUMN ? \
                            ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./column.h:14:24: note: expanded from macro 'COL_LAYOUT'
#define COL_LAYOUT(c) ((c) & COL_LAYOUT_MASK)
                       ^     ~~~~~~~~~~~~~~~
/datasets/git/column.c:117:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (i >= data->list->nr)
                                ^
                                 {
/datasets/git/column.c:131:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (COL_LAYOUT(data->colopts) == COL_COLUMN)
            ^
/datasets/git/./column.h:14:24: note: expanded from macro 'COL_LAYOUT'
#define COL_LAYOUT(c) ((c) & COL_LAYOUT_MASK)
                       ^     ~~~~~~~~~~~~~~~
/datasets/git/column.c:131:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (COL_LAYOUT(data->colopts) == COL_COLUMN)
                                                    ^
                                                     {
/datasets/git/column.c:133:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/column.c:149:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int x, y, i, initial_width;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/column.c:149:6: warning: variable 'x' is not initialized [cppcoreguidelines-init-variables]
        int x, y, i, initial_width;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/column.c:149:6: warning: variable name 'x' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/column.c:149:9: warning: variable 'y' is not initialized [cppcoreguidelines-init-variables]
        int x, y, i, initial_width;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/column.c:149:9: warning: variable name 'y' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/column.c:149:12: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int x, y, i, initial_width;
                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/column.c:149:12: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/column.c:149:15: warning: variable 'initial_width' is not initialized [cppcoreguidelines-init-variables]
        int x, y, i, initial_width;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/column.c:150:8: warning: variable 'empty_cell' is not initialized [cppcoreguidelines-init-variables]
        char *empty_cell;
              ^
                         = NULL
/datasets/git/column.c:152:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&data, 0, sizeof(data));
        ^~~~~~
/datasets/git/column.c:152:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&data, 0, sizeof(data));
        ^~~~~~
/datasets/git/column.c:158:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < list->nr; i++)
        ^
/datasets/git/column.c:158:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < list->nr; i++)
                                      ^
                                       {
/datasets/git/column.c:163:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (colopts & COL_DENSE)
            ^
/datasets/git/column.c:163:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (colopts & COL_DENSE)
                                ^
                                 {
/datasets/git/column.c:167:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(empty_cell, ' ', initial_width);
        ^~~~~~
/datasets/git/column.c:167:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(empty_cell, ' ', initial_width);
        ^~~~~~
/datasets/git/column.c:168:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'rows' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (y = 0; y < data.rows; y++) {
                    ^
/datasets/git/column.c:169:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (x = 0; x < data.cols; x++)
                ^
/datasets/git/column.c:169:15: warning: backward branch (for loop) is ID-dependent due to member reference to 'cols' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (x = 0; x < data.cols; x++)
                            ^
/datasets/git/column.c:169:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (x = 0; x < data.cols; x++)
                                               ^
                                                {
/datasets/git/column.c:170:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (display_cell(&data, initial_width, empty_cell, x, y))
                                                                                 ^
                                                                                  {
/datasets/git/column.c:184:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!list->nr)
                      ^
                       {
/datasets/git/column.c:186:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        assert((colopts & COL_ENABLE_MASK) != COL_AUTO);
                ^
/usr/include/assert.h:108:20: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                   ^~~~
/datasets/git/column.c:188:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&nopts, 0, sizeof(nopts));
        ^~~~~~
/datasets/git/column.c:188:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&nopts, 0, sizeof(nopts));
        ^~~~~~
/datasets/git/column.c:197:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        switch (COL_LAYOUT(colopts)) {
                ^
/datasets/git/./column.h:14:24: note: expanded from macro 'COL_LAYOUT'
#define COL_LAYOUT(c) ((c) & COL_LAYOUT_MASK)
                       ^     ~~~~~~~~~~~~~~~
/datasets/git/column.c:206:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                BUG("invalid layout mode %d", COL_LAYOUT(colopts));
                                              ^
/datasets/git/./column.h:14:24: note: expanded from macro 'COL_LAYOUT'
#define COL_LAYOUT(c) ((c) & COL_LAYOUT_MASK)
                       ^     ~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1386:45: note: expanded from macro 'BUG'
#define BUG(...) BUG_fl(__FILE__, __LINE__, __VA_ARGS__)
                                            ^~~~~~~~~~~
/datasets/git/column.c:212:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((*colopts & COL_ENABLE_MASK) == COL_AUTO) {
             ^
/datasets/git/column.c:213:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (stdout_is_tty < 0)
                                      ^
                                       {
/datasets/git/column.c:215:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                *colopts &= ~COL_ENABLE_MASK;
                ^           ~~~~~~~~~~~~~~~~
/datasets/git/column.c:215:15: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                *colopts &= ~COL_ENABLE_MASK;
                            ^
/datasets/git/column.c:216:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (stdout_is_tty || pager_in_use())
                                                    ^
                                                     {
/datasets/git/column.c:217:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        *colopts |= COL_ENABLED;
                        ^
/datasets/git/column.c:222:8: warning: accessing fields in struct 'colopt' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct colopt {
       ^
/datasets/git/column.c:222:8: note: use "__attribute__((aligned(16)))" to align struct 'colopt' to 16 bytes
/datasets/git/column.c:228:1: warning: replace macro with enum [modernize-macro-to-enum]
#define LAYOUT_SET 1
^~~~~~~~
                   =,
/datasets/git/column.c:228:9: warning: macro 'LAYOUT_SET' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define LAYOUT_SET 1
        ^
/datasets/git/column.c:229:9: warning: macro 'ENABLE_SET' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define ENABLE_SET 2
        ^
/datasets/git/column.c:243:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/column.c:243:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/column.c:245:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ARRAY_SIZE(opts); i++) {
        ^
/datasets/git/column.c:246:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int set = 1, arg_len = len, name_len;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/column.c:246:31: warning: variable 'name_len' is not initialized [cppcoreguidelines-init-variables]
                int set = 1, arg_len = len, name_len;
                                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/column.c:257:14: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                name_len = strlen(opts[i].name);
                           ^
/datasets/git/column.c:259:7: warning: function 'strncmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                    strncmp(arg_str, opts[i].name, name_len))
                    ^
                                                             != 0
/datasets/git/column.c:259:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    strncmp(arg_str, opts[i].name, name_len))
                                                             ^
                                                              {
/datasets/git/column.c:264:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        *group_set |= ENABLE_SET;
                        ^~~~~~~~~~
/datasets/git/column.c:267:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        *group_set |= LAYOUT_SET;
                        ^~~~~~~~~~
/datasets/git/column.c:271:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opts[i].mask)
                                 ^
                                  {
/datasets/git/column.c:274:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (set)
                                ^
                                 {
/datasets/git/column.c:276:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/column.c:290:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*value) {
        ^
/datasets/git/column.c:290:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'value' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (*value) {
               ^
/datasets/git/column.c:291:13: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int len = strcspn(value, sep);
                          ^
/datasets/git/column.c:293:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (parse_option(value, len, colopts, &group_set))
                                                                          ^
                                                                           {
/datasets/git/column.c:308:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((group_set & LAYOUT_SET) && !(group_set & ENABLE_SET))
             ^~~~~~~~~
/datasets/git/column.c:308:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((group_set & LAYOUT_SET) && !(group_set & ENABLE_SET))
                                          ^~~~~~~~~
/datasets/git/column.c:308:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((group_set & LAYOUT_SET) && !(group_set & ENABLE_SET))
                                                                  ^
                                                                   {
/datasets/git/column.c:309:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                *colopts = (*colopts & ~COL_ENABLE_MASK) | COL_ENABLED;
                           ^
/datasets/git/column.c:309:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                *colopts = (*colopts & ~COL_ENABLE_MASK) | COL_ENABLED;
                            ^          ~~~~~~~~~~~~~~~~
/datasets/git/column.c:309:26: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                *colopts = (*colopts & ~COL_ENABLE_MASK) | COL_ENABLED;
                                       ^
/datasets/git/column.c:313:26: warning: 2 adjacent parameters of 'column_config' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int column_config(const char *var, const char *value,
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/column.c:313:38: note: the first parameter in the range is 'var'
static int column_config(const char *var, const char *value,
                                     ^~~
/datasets/git/column.c:313:55: note: the last parameter in the range is 'value'
static int column_config(const char *var, const char *value,
                                                      ^~~~~
/datasets/git/column.c:316:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!value)
                   ^
                    {
/datasets/git/column.c:318:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_config(colopts, value))
                                         ^
                                          {
/datasets/git/column.c:323:40: warning: 2 adjacent parameters of 'git_column_config' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
int git_column_config(const char *var, const char *value,
                                       ^~~~~~~~~~~~~~~~~~
/datasets/git/column.c:323:52: note: the first parameter in the range is 'value'
int git_column_config(const char *var, const char *value,
                                                   ^~~~~
/datasets/git/column.c:324:21: note: the last parameter in the range is 'command'
                      const char *command, unsigned int *colopts)
                                  ^~~~~~~
/datasets/git/column.c:326:14: warning: variable 'it' is not initialized [cppcoreguidelines-init-variables]
        const char *it;
                    ^
                       = NULL
/datasets/git/column.c:326:14: warning: variable name 'it' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/column.c:328:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!skip_prefix(var, "column.", &it))
                                              ^
                                               {
/datasets/git/column.c:331:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(it, "ui"))
                              ^
                               {
/datasets/git/column.c:334:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (command && !strcmp(it, command))
                                            ^
                                             {
/datasets/git/column.c:344:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        *colopts |= COL_PARSEOPT;
        ^
/datasets/git/column.c:345:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        *colopts &= ~COL_ENABLE_MASK;
        ^           ~~~~~~~~~~~~~~~~
/datasets/git/column.c:345:14: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
        *colopts &= ~COL_ENABLE_MASK;
                    ^
/datasets/git/column.c:346:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unset)              /* --no-column == never */
                  ^
                   {
/datasets/git/column.c:349:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        *colopts |= COL_ENABLED;
        ^
/datasets/git/column.c:350:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (arg)
                ^
                 {
/datasets/git/column.c:356:12: warning: variable 'fd_out' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int fd_out = -1;
           ^
/datasets/git/column.c:357:29: warning: variable 'column_process' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct child_process column_process = CHILD_PROCESS_INIT;
                            ^
/datasets/git/column.c:357:29: warning: initializing non-local variable with non-const expression depending on uninitialized non-local variable 'empty_strvec' [cppcoreguidelines-interfaces-global-init]
/datasets/git/column.c:361:17: warning: variable 'argv' is not initialized [cppcoreguidelines-init-variables]
        struct strvec *argv;
                       ^
                            = NULL
/datasets/git/column.c:363:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fd_out != -1)
                         ^
                          {
/datasets/git/column.c:371:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts && opts->width)
                                ^
                                 {
/datasets/git/column.c:373:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts && opts->indent)
                                 ^
                                  {
/datasets/git/column.c:375:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts && opts->padding)
                                  ^
                                   {
/datasets/git/column.c:378:2: warning: the value returned by this function should be used [cert-err33-c]
        fflush(stdout);
        ^~~~~~~~~~~~~~
/datasets/git/column.c:378:2: note: cast the expression to void to silence this warning
/datasets/git/column.c:380:23: warning: prefer fcntl() to dup() because fcntl() allows F_DUPFD_CLOEXEC [android-cloexec-dup]
        column_process.out = dup(1);
                             ^~~~~~
                             fcntl(1, F_DUPFD_CLOEXEC)
/datasets/git/column.c:383:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (start_command(&column_process))
                                           ^
                                            {
/datasets/git/column.c:386:11: warning: prefer fcntl() to dup() because fcntl() allows F_DUPFD_CLOEXEC [android-cloexec-dup]
        fd_out = dup(1);
                 ^~~~~~
                 fcntl(1, F_DUPFD_CLOEXEC)
/datasets/git/column.c:395:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fd_out == -1)
                         ^
                          {
/datasets/git/column.c:398:2: warning: the value returned by this function should be used [cert-err33-c]
        fflush(stdout);
        ^~~~~~~~~~~~~~
/datasets/git/column.c:398:2: note: cast the expression to void to silence this warning
/datasets/git/combine-diff.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "object-store.h"
^        ~~~~~~~~~~~~~~~~
         "blob.h"
/datasets/git/combine-diff.c:19:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!S_ISDIR(one->mode) && !S_ISDIR(two->mode))
                                                       ^
                                                        {
/datasets/git/combine-diff.c:22:38: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return base_name_compare(one->path, strlen(one->path), one->mode,
                                            ^
/datasets/git/combine-diff.c:22:57: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return base_name_compare(one->path, strlen(one->path), one->mode,
                                                               ^
/datasets/git/combine-diff.c:23:17: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                 two->path, strlen(two->path), two->mode);
                                            ^
/datasets/git/combine-diff.c:31:34: warning: function 'intersect_paths' has cognitive complexity of 28 (threshold 25) [readability-function-cognitive-complexity]
static struct combine_diff_path *intersect_paths(
                                 ^
/datasets/git/combine-diff.c:41:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!n) {
        ^
/datasets/git/combine-diff.c:42:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < q->nr; i++) {
                ^
/datasets/git/combine-diff.c:45:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (diff_unmodified_pair(q->queue[i]))
                        ^
/datasets/git/combine-diff.c:63:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (combined_all_paths &&
                        ^
/datasets/git/combine-diff.c:63:27: note: +1
                        if (combined_all_paths &&
                                               ^
/datasets/git/combine-diff.c:80:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while ((p = *tail) != NULL) {
        ^
/datasets/git/combine-diff.c:82:10: note: +2, including nesting penalty of 1, nesting level increased to 2
                       ? -1 : compare_paths(p, q->queue[i]->two));
                       ^
/datasets/git/combine-diff.c:84:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (cmp < 0) {
                ^
/datasets/git/combine-diff.c:87:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (j = 0; j < num_parent; j++)
                        ^
/datasets/git/combine-diff.c:88:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (combined_all_paths &&
                                ^
/datasets/git/combine-diff.c:88:28: note: +1
                                if (combined_all_paths &&
                                                       ^
/datasets/git/combine-diff.c:95:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (cmp > 0) {
                ^
/datasets/git/combine-diff.c:104:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (combined_all_paths &&
                ^
/datasets/git/combine-diff.c:104:26: note: +1
                if (combined_all_paths &&
                                       ^
/datasets/git/combine-diff.c:33:2: warning: 2 adjacent parameters of 'intersect_paths' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
        int n,
        ^~~~~~
/datasets/git/combine-diff.c:33:6: note: the first parameter in the range is 'n'
        int n,
            ^
/datasets/git/combine-diff.c:34:6: note: the last parameter in the range is 'num_parent'
        int num_parent,
            ^~~~~~~~~~
/datasets/git/combine-diff.c:37:28: warning: variable name 'q' is too short, expected at least 3 characters [readability-identifier-length]
        struct diff_queue_struct *q = &diff_queued_diff;
                                  ^
/datasets/git/combine-diff.c:38:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct combine_diff_path *p, **tail = &curr;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:38:28: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct combine_diff_path *p, **tail = &curr;
                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/combine-diff.c:38:28: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/combine-diff.c:39:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, j, cmp;
        ^~~~~~~~~~~~~~
/datasets/git/combine-diff.c:38:2: note: inferred assignment of ID-dependent value from ID-dependent variable len [altera-id-dependent-backward-branch]
        struct combine_diff_path *p, **tail = &curr;
        ^
/datasets/git/combine-diff.c:39:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, j, cmp;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/combine-diff.c:39:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/combine-diff.c:39:9: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int i, j, cmp;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/combine-diff.c:39:9: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/combine-diff.c:39:12: warning: variable 'cmp' is not initialized [cppcoreguidelines-init-variables]
        int i, j, cmp;
                  ^
/datasets/git/combine-diff.c:37:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct diff_queue_struct *q = &diff_queued_diff;
        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/combine-diff.c:42:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < q->nr; i++) {
                ^
/datasets/git/combine-diff.c:42:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'q' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < q->nr; i++) {
                            ^
/datasets/git/combine-diff.c:43:8: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
                        int len;
                            ^
                                = 0
/datasets/git/combine-diff.c:44:16: warning: variable 'path' is not initialized [cppcoreguidelines-init-variables]
                        const char *path;
                                    ^
                                         = NULL
/datasets/git/combine-diff.c:45:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (diff_unmodified_pair(q->queue[i]))
                                                              ^
                                                               {
/datasets/git/combine-diff.c:48:10: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        len = strlen(path);
                              ^
/datasets/git/combine-diff.c:51:4: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memcpy(p->path, path, len);
                        ^~~~~~
/datasets/git/combine-diff.c:51:4: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                        memcpy(p->path, path, len);
                        ^~~~~~
/datasets/git/combine-diff.c:54:4: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memset(p->parent, 0,
                        ^~~~~~
/datasets/git/combine-diff.c:54:4: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                        memset(p->parent, 0,
                        ^~~~~~
/datasets/git/combine-diff.c:80:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((p = *tail) != NULL) {
               ^
/datasets/git/combine-diff.c:87:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (j = 0; j < num_parent; j++)
                        ^
/datasets/git/combine-diff.c:87:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (j = 0; j < num_parent; j++)
                                                        ^
                                                         {
/datasets/git/combine-diff.c:89:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                    filename_changed(p->parent[j].status))
                                                                          ^
                                                                           {
/datasets/git/combine-diff.c:105:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    filename_changed(p->parent[n].status))
                                                          ^
                                                           {
/datasets/git/combine-diff.c:124:8: warning: accessing fields in struct 'plost' is inefficient due to padding; only needs 20 bytes but is using 24 bytes [altera-struct-pack-align]
struct plost {
       ^
/datasets/git/combine-diff.c:124:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'plost'
/datasets/git/combine-diff.c:124:8: warning: accessing fields in struct 'plost' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct plost {
       ^
/datasets/git/combine-diff.c:124:8: note: use "__attribute__((aligned(32)))" to align struct 'plost' to 32 bytes
/datasets/git/combine-diff.c:130:8: warning: accessing fields in struct 'sline' is inefficient due to padding; only needs 64 bytes but is using 72 bytes [altera-struct-pack-align]
struct sline {
       ^
/datasets/git/combine-diff.c:130:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'sline'
/datasets/git/combine-diff.c:130:8: warning: accessing fields in struct 'sline' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct sline {
       ^
/datasets/git/combine-diff.c:130:8: note: use "__attribute__((aligned(64)))" to align struct 'sline' to 64 bytes
/datasets/git/combine-diff.c:146:12: warning: function 'match_string_spaces' has cognitive complexity of 38 (threshold 25) [readability-function-cognitive-complexity]
static int match_string_spaces(const char *line1, int len1,
           ^
/datasets/git/combine-diff.c:150:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (flags & XDF_WHITESPACE_FLAGS) {
        ^
/datasets/git/combine-diff.c:151:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (; len1 > 0 && XDL_ISSPACE(line1[len1 - 1]); len1--);
                ^
/datasets/git/combine-diff.c:151:19: note: +1
                for (; len1 > 0 && XDL_ISSPACE(line1[len1 - 1]); len1--);
                                ^
/datasets/git/combine-diff.c:152:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (; len2 > 0 && XDL_ISSPACE(line2[len2 - 1]); len2--);
                ^
/datasets/git/combine-diff.c:152:19: note: +1
                for (; len2 > 0 && XDL_ISSPACE(line2[len2 - 1]); len2--);
                                ^
/datasets/git/combine-diff.c:155:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!(flags & (XDF_IGNORE_WHITESPACE | XDF_IGNORE_WHITESPACE_CHANGE)))
        ^
/datasets/git/combine-diff.c:156:24: note: +1
                return (len1 == len2 && !memcmp(line1, line2, len1));
                                     ^
/datasets/git/combine-diff.c:158:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (len1 > 0 && len2 > 0) {
        ^
/datasets/git/combine-diff.c:158:18: note: +1
        while (len1 > 0 && len2 > 0) {
                        ^
/datasets/git/combine-diff.c:161:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (XDL_ISSPACE(line1[len1]) || XDL_ISSPACE(line2[len2])) {
                ^
/datasets/git/combine-diff.c:161:32: note: +1
                if (XDL_ISSPACE(line1[len1]) || XDL_ISSPACE(line2[len2])) {
                                             ^
/datasets/git/combine-diff.c:162:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if ((flags & XDF_IGNORE_WHITESPACE_CHANGE) &&
                        ^
/datasets/git/combine-diff.c:162:47: note: +1
                        if ((flags & XDF_IGNORE_WHITESPACE_CHANGE) &&
                                                                   ^
/datasets/git/combine-diff.c:163:35: note: +1
                            (!XDL_ISSPACE(line1[len1]) || !XDL_ISSPACE(line2[len2])))
                                                       ^
/datasets/git/combine-diff.c:166:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (; len1 > 0 && XDL_ISSPACE(line1[len1]); len1--);
                        ^
/datasets/git/combine-diff.c:166:20: note: +1
                        for (; len1 > 0 && XDL_ISSPACE(line1[len1]); len1--);
                                        ^
/datasets/git/combine-diff.c:167:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (; len2 > 0 && XDL_ISSPACE(line2[len2]); len2--);
                        ^
/datasets/git/combine-diff.c:167:20: note: +1
                        for (; len2 > 0 && XDL_ISSPACE(line2[len2]); len2--);
                                        ^
/datasets/git/combine-diff.c:169:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (line1[len1] != line2[len2])
                ^
/datasets/git/combine-diff.c:173:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (flags & XDF_IGNORE_WHITESPACE) {
        ^
/datasets/git/combine-diff.c:175:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (; len1 > 0 && XDL_ISSPACE(line1[len1 - 1]); len1--);
                ^
/datasets/git/combine-diff.c:175:19: note: +1
                for (; len1 > 0 && XDL_ISSPACE(line1[len1 - 1]); len1--);
                                ^
/datasets/git/combine-diff.c:176:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (; len2 > 0 && XDL_ISSPACE(line2[len2 - 1]); len2--);
                ^
/datasets/git/combine-diff.c:176:19: note: +1
                for (; len2 > 0 && XDL_ISSPACE(line2[len2 - 1]); len2--);
                                ^
/datasets/git/combine-diff.c:180:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!len1 && !len2)
        ^
/datasets/git/combine-diff.c:180:12: note: +1
        if (!len1 && !len2)
                  ^
/datasets/git/combine-diff.c:150:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & XDF_WHITESPACE_FLAGS) {
            ^~~~~
/datasets/git/combine-diff.c:150:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & XDF_WHITESPACE_FLAGS) {
                    ^
/datasets/git/./xdiff/xdiff.h:37:31: note: expanded from macro 'XDF_WHITESPACE_FLAGS'
#define XDF_WHITESPACE_FLAGS (XDF_IGNORE_WHITESPACE | \
                              ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./xdiff/xdiff.h:33:31: note: expanded from macro 'XDF_IGNORE_WHITESPACE'
#define XDF_IGNORE_WHITESPACE (1 << 1)
                              ^
/datasets/git/combine-diff.c:151:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (; len1 > 0 && XDL_ISSPACE(line1[len1 - 1]); len1--);
                ^
/datasets/git/combine-diff.c:151:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                for (; len1 > 0 && XDL_ISSPACE(line1[len1 - 1]); len1--);
                                   ^
/datasets/git/./xdiff/xmacros.h:33:25: note: expanded from macro 'XDL_ISSPACE'
#define XDL_ISSPACE(c) (isspace((unsigned char)(c)))
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/combine-diff.c:151:59: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                for (; len1 > 0 && XDL_ISSPACE(line1[len1 - 1]); len1--);
                                                                        ^
                                                                         {
/datasets/git/combine-diff.c:152:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (; len2 > 0 && XDL_ISSPACE(line2[len2 - 1]); len2--);
                ^
/datasets/git/combine-diff.c:152:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                for (; len2 > 0 && XDL_ISSPACE(line2[len2 - 1]); len2--);
                                   ^
/datasets/git/./xdiff/xmacros.h:33:25: note: expanded from macro 'XDL_ISSPACE'
#define XDL_ISSPACE(c) (isspace((unsigned char)(c)))
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/combine-diff.c:152:59: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                for (; len2 > 0 && XDL_ISSPACE(line2[len2 - 1]); len2--);
                                                                        ^
                                                                         {
/datasets/git/combine-diff.c:155:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & (XDF_IGNORE_WHITESPACE | XDF_IGNORE_WHITESPACE_CHANGE)))
              ^~~~~
/datasets/git/combine-diff.c:155:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & (XDF_IGNORE_WHITESPACE | XDF_IGNORE_WHITESPACE_CHANGE)))
                       ^
/datasets/git/./xdiff/xdiff.h:33:31: note: expanded from macro 'XDF_IGNORE_WHITESPACE'
#define XDF_IGNORE_WHITESPACE (1 << 1)
                              ^~~~~~~~
/datasets/git/combine-diff.c:155:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & (XDF_IGNORE_WHITESPACE | XDF_IGNORE_WHITESPACE_CHANGE)))
                                               ^
/datasets/git/./xdiff/xdiff.h:34:39: note: expanded from macro 'XDF_IGNORE_WHITESPACE_CHANGE'
#define XDF_IGNORE_WHITESPACE_CHANGE (1 << 2)
                                      ^
/datasets/git/combine-diff.c:155:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(flags & (XDF_IGNORE_WHITESPACE | XDF_IGNORE_WHITESPACE_CHANGE)))
                                                                              ^
                                                                               {
/datasets/git/combine-diff.c:161:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (XDL_ISSPACE(line1[len1]) || XDL_ISSPACE(line2[len2])) {
                    ^
/datasets/git/./xdiff/xmacros.h:33:25: note: expanded from macro 'XDL_ISSPACE'
#define XDL_ISSPACE(c) (isspace((unsigned char)(c)))
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/combine-diff.c:161:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (XDL_ISSPACE(line1[len1]) || XDL_ISSPACE(line2[len2])) {
                                                ^
/datasets/git/./xdiff/xmacros.h:33:25: note: expanded from macro 'XDL_ISSPACE'
#define XDL_ISSPACE(c) (isspace((unsigned char)(c)))
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/combine-diff.c:162:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if ((flags & XDF_IGNORE_WHITESPACE_CHANGE) &&
                             ^~~~~
/datasets/git/combine-diff.c:162:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if ((flags & XDF_IGNORE_WHITESPACE_CHANGE) &&
                                     ^
/datasets/git/./xdiff/xdiff.h:34:39: note: expanded from macro 'XDF_IGNORE_WHITESPACE_CHANGE'
#define XDF_IGNORE_WHITESPACE_CHANGE (1 << 2)
                                      ^
/datasets/git/combine-diff.c:163:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            (!XDL_ISSPACE(line1[len1]) || !XDL_ISSPACE(line2[len2])))
                              ^
/datasets/git/./xdiff/xmacros.h:33:25: note: expanded from macro 'XDL_ISSPACE'
#define XDL_ISSPACE(c) (isspace((unsigned char)(c)))
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/combine-diff.c:163:39: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            (!XDL_ISSPACE(line1[len1]) || !XDL_ISSPACE(line2[len2])))
                                                           ^
/datasets/git/./xdiff/xmacros.h:33:25: note: expanded from macro 'XDL_ISSPACE'
#define XDL_ISSPACE(c) (isspace((unsigned char)(c)))
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/combine-diff.c:163:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            (!XDL_ISSPACE(line1[len1]) || !XDL_ISSPACE(line2[len2])))
                                                                                     ^
                                                                                      {
/datasets/git/combine-diff.c:166:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (; len1 > 0 && XDL_ISSPACE(line1[len1]); len1--);
                        ^
/datasets/git/combine-diff.c:166:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        for (; len1 > 0 && XDL_ISSPACE(line1[len1]); len1--);
                                           ^
/datasets/git/./xdiff/xmacros.h:33:25: note: expanded from macro 'XDL_ISSPACE'
#define XDL_ISSPACE(c) (isspace((unsigned char)(c)))
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/combine-diff.c:166:56: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                        for (; len1 > 0 && XDL_ISSPACE(line1[len1]); len1--);
                                                                            ^
                                                                             {
/datasets/git/combine-diff.c:167:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (; len2 > 0 && XDL_ISSPACE(line2[len2]); len2--);
                        ^
/datasets/git/combine-diff.c:167:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        for (; len2 > 0 && XDL_ISSPACE(line2[len2]); len2--);
                                           ^
/datasets/git/./xdiff/xmacros.h:33:25: note: expanded from macro 'XDL_ISSPACE'
#define XDL_ISSPACE(c) (isspace((unsigned char)(c)))
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/combine-diff.c:167:56: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                        for (; len2 > 0 && XDL_ISSPACE(line2[len2]); len2--);
                                                                            ^
                                                                             {
/datasets/git/combine-diff.c:169:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (line1[len1] != line2[len2])
                                               ^
                                                {
/datasets/git/combine-diff.c:173:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & XDF_IGNORE_WHITESPACE) {
            ^~~~~
/datasets/git/combine-diff.c:173:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & XDF_IGNORE_WHITESPACE) {
                    ^
/datasets/git/./xdiff/xdiff.h:33:32: note: expanded from macro 'XDF_IGNORE_WHITESPACE'
#define XDF_IGNORE_WHITESPACE (1 << 1)
                               ^
/datasets/git/combine-diff.c:175:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (; len1 > 0 && XDL_ISSPACE(line1[len1 - 1]); len1--);
                ^
/datasets/git/combine-diff.c:175:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                for (; len1 > 0 && XDL_ISSPACE(line1[len1 - 1]); len1--);
                                   ^
/datasets/git/./xdiff/xmacros.h:33:25: note: expanded from macro 'XDL_ISSPACE'
#define XDL_ISSPACE(c) (isspace((unsigned char)(c)))
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/combine-diff.c:175:59: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                for (; len1 > 0 && XDL_ISSPACE(line1[len1 - 1]); len1--);
                                                                        ^
                                                                         {
/datasets/git/combine-diff.c:176:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (; len2 > 0 && XDL_ISSPACE(line2[len2 - 1]); len2--);
                ^
/datasets/git/combine-diff.c:176:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                for (; len2 > 0 && XDL_ISSPACE(line2[len2 - 1]); len2--);
                                   ^
/datasets/git/./xdiff/xmacros.h:33:25: note: expanded from macro 'XDL_ISSPACE'
#define XDL_ISSPACE(c) (isspace((unsigned char)(c)))
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/combine-diff.c:176:59: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                for (; len2 > 0 && XDL_ISSPACE(line2[len2 - 1]); len2--);
                                                                        ^
                                                                         {
/datasets/git/combine-diff.c:180:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!len1 && !len2)
                           ^
                            {
/datasets/git/combine-diff.c:189:22: warning: function 'coalesce_lines' has cognitive complexity of 44 (threshold 25) [readability-function-cognitive-complexity]
static struct lline *coalesce_lines(struct lline *base, int *lenbase,
                     ^
/datasets/git/combine-diff.c:198:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!newline)
        ^
/datasets/git/combine-diff.c:201:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!base) {
        ^
/datasets/git/combine-diff.c:219:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < origbaselen + 1; i++) {
        ^
/datasets/git/combine-diff.c:224:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (j = 1; j < lennew + 1; j++)
        ^
/datasets/git/combine-diff.c:227:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 1, baseend = base; i < origbaselen + 1; i++) {
        ^
/datasets/git/combine-diff.c:228:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (j = 1, newend = newline; j < lennew + 1; j++) {
                ^
/datasets/git/combine-diff.c:229:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (match_string_spaces(baseend->line, baseend->len,
                        ^
/datasets/git/combine-diff.c:233:11: note: +1, nesting level increased to 3
                        } else if (lcs[i][j - 1] >= lcs[i - 1][j]) {
                               ^
/datasets/git/combine-diff.c:236:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/combine-diff.c:240:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (newend->next)
                        ^
/datasets/git/combine-diff.c:243:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (baseend->next)
                ^
/datasets/git/combine-diff.c:247:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < origbaselen + 1; i++)
        ^
/datasets/git/combine-diff.c:254:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (i != 0 || j != 0) {
        ^
/datasets/git/combine-diff.c:254:16: note: +1
        while (i != 0 || j != 0) {
                      ^
/datasets/git/combine-diff.c:255:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (directions[i][j] == MATCH) {
                ^
/datasets/git/combine-diff.c:261:10: note: +1, nesting level increased to 2
                } else if (directions[i][j] == NEW) {
                       ^
/datasets/git/combine-diff.c:266:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (lline->prev)
                        ^
/datasets/git/combine-diff.c:268:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/combine-diff.c:270:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (lline->next)
                        ^
/datasets/git/combine-diff.c:277:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (baseend) {
                        ^
/datasets/git/combine-diff.c:280:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (lline->prev)
                                ^
/datasets/git/combine-diff.c:283:4: note: +1, nesting level increased to 3
                        else {
                        ^
/datasets/git/combine-diff.c:289:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (lline->next)
                        ^
/datasets/git/combine-diff.c:292:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/combine-diff.c:299:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (newend) {
        ^
/datasets/git/combine-diff.c:305:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < origbaselen + 1; i++)
        ^
/datasets/git/combine-diff.c:190:32: warning: 3 adjacent parameters of 'coalesce_lines' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                    struct lline *newline, int lennew,
                                                           ^~~~~~~~~~~
/datasets/git/combine-diff.c:190:36: note: the first parameter in the range is 'lennew'
                                    struct lline *newline, int lennew,
                                                               ^~~~~~
/datasets/git/combine-diff.c:191:36: note: the last parameter in the range is 'flags'
                                    unsigned long parent, long flags)
                                                               ^~~~~
/datasets/git/combine-diff.c:191:9: note: 'int' and 'unsigned long' may be implicitly converted
                                    unsigned long parent, long flags)
                                    ^
/datasets/git/combine-diff.c:191:31: note: 'int' and 'long' may be implicitly converted
                                    unsigned long parent, long flags)
                                                          ^
/datasets/git/combine-diff.c:191:31: note: 'unsigned long' and 'long' may be implicitly converted
/datasets/git/combine-diff.c:193:8: warning: variable 'lcs' is not initialized [cppcoreguidelines-init-variables]
        int **lcs;
              ^
                  = NULL
/datasets/git/combine-diff.c:194:28: warning: variable 'directions' is not initialized [cppcoreguidelines-init-variables]
        enum coalesce_direction **directions;
                                  ^
                                             = NULL
/datasets/git/combine-diff.c:195:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct lline *baseend, *newend = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:195:16: warning: variable 'baseend' is not initialized [cppcoreguidelines-init-variables]
        struct lline *baseend, *newend = NULL;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/combine-diff.c:196:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, j, origbaselen = *lenbase;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:196:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, j, origbaselen = *lenbase;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/combine-diff.c:196:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/combine-diff.c:196:9: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int i, j, origbaselen = *lenbase;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/combine-diff.c:196:9: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/combine-diff.c:198:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!newline)
                     ^
                      {
/datasets/git/combine-diff.c:219:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < origbaselen + 1; i++) {
        ^
/datasets/git/combine-diff.c:219:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'origbaselen' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < origbaselen + 1; i++) {
                    ^
/datasets/git/combine-diff.c:224:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (j = 1; j < lennew + 1; j++)
        ^
/datasets/git/combine-diff.c:196:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int i, j, origbaselen = *lenbase;
        ^
/datasets/git/combine-diff.c:224:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (j = 1; j < lennew + 1; j++)
                                        ^
                                         {
/datasets/git/combine-diff.c:227:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'origbaselen' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 1, baseend = base; i < origbaselen + 1; i++) {
                                    ^
/datasets/git/combine-diff.c:228:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (j = 1, newend = newline; j < lennew + 1; j++) {
                ^
/datasets/git/combine-diff.c:240:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (newend->next)
                                         ^
                                          {
/datasets/git/combine-diff.c:243:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (baseend->next)
                                  ^
                                   {
/datasets/git/combine-diff.c:247:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < origbaselen + 1; i++)
        ^
/datasets/git/combine-diff.c:247:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'origbaselen' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < origbaselen + 1; i++)
                    ^
/datasets/git/combine-diff.c:247:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < origbaselen + 1; i++)
                                             ^
                                              {
/datasets/git/combine-diff.c:254:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (i != 0 || j != 0) {
        ^
/datasets/git/combine-diff.c:195:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct lline *baseend, *newend = NULL;
        ^
/datasets/git/combine-diff.c:256:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        baseend->parent_map |= 1<<parent;
                        ^                      ~~~~~~~~~
/datasets/git/combine-diff.c:256:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        baseend->parent_map |= 1<<parent;
                                               ^
/datasets/git/combine-diff.c:258:13: warning: Access to field 'prev' results in a dereference of a null pointer (loaded from variable 'newend') [clang-analyzer-core.NullDereference]
                        newend = newend->prev;
                                 ^
/datasets/git/combine-diff.c:1653:2: note: Loop condition is true.  Entering loop body
        while (parent) {
        ^
/datasets/git/combine-diff.c:1653:2: note: Loop condition is false. Execution continues on line 1657
/datasets/git/combine-diff.c:1657:2: note: Calling 'diff_tree_combined'
        diff_tree_combined(&commit->object.oid, &parents, rev);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1501:6: note: Assuming field 'ignore_regex_nr' is 0
        if (opt->ignore_regex_nr)
            ^~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1501:2: note: Taking false branch
        if (opt->ignore_regex_nr)
        ^
/datasets/git/combine-diff.c:1504:6: note: Assuming field 'close_file' is 0
        if (opt->close_file)
            ^~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1504:2: note: Taking false branch
        if (opt->close_file)
        ^
/datasets/git/combine-diff.c:1509:6: note: Assuming 'num_parent' is not equal to 0
        if (!num_parent)
            ^~~~~~~~~~~
/datasets/git/combine-diff.c:1509:2: note: Taking false branch
        if (!num_parent)
        ^
/datasets/git/combine-diff.c:1512:20: note: Assuming field 'loginfo' is non-null
        show_log_first = !!rev->loginfo && !rev->no_commit_id;
                          ^~~~~~~~~~~~~
/datasets/git/combine-diff.c:1512:19: note: Left side of '&&' is true
        show_log_first = !!rev->loginfo && !rev->no_commit_id;
                         ^
/datasets/git/combine-diff.c:1512:37: note: Assuming field 'no_commit_id' is not equal to 0
        show_log_first = !!rev->loginfo && !rev->no_commit_id;
                                           ^~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1514:6: note: 'show_log_first' is 0
        if (show_log_first) {
            ^~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1514:2: note: Taking false branch
        if (show_log_first) {
        ^
/datasets/git/combine-diff.c:1547:26: note: Assuming field 'skip_stat_unmatch' is 0
        need_generic_pathscan = opt->skip_stat_unmatch  ||
                                ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1547:26: note: Left side of '||' is false
/datasets/git/combine-diff.c:1548:4: note: Assuming field 'follow_renames' is 0
                        opt->flags.follow_renames       ||
                        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1547:26: note: Left side of '||' is false
        need_generic_pathscan = opt->skip_stat_unmatch  ||
                                ^
/datasets/git/combine-diff.c:1549:4: note: Assuming the condition is false
                        opt->break_opt != -1    ||
                        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1547:26: note: Left side of '||' is false
        need_generic_pathscan = opt->skip_stat_unmatch  ||
                                ^
/datasets/git/combine-diff.c:1550:4: note: Assuming field 'detect_rename' is 0
                        opt->detect_rename      ||
                        ^~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1547:26: note: Left side of '||' is false
        need_generic_pathscan = opt->skip_stat_unmatch  ||
                                ^
/datasets/git/combine-diff.c:1551:5: note: Assuming the condition is false
                        (opt->pickaxe_opts &
                         ^~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1547:26: note: Left side of '||' is false
        need_generic_pathscan = opt->skip_stat_unmatch  ||
                                ^
/datasets/git/combine-diff.c:1555:6: note: Assuming 'need_generic_pathscan' is 0
        if (need_generic_pathscan) {
            ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1555:2: note: Taking false branch
        if (need_generic_pathscan) {
        ^
/datasets/git/combine-diff.c:1568:7: note: Assuming the condition is false
                if (opt->pickaxe_opts & DIFF_PICKAXE_KIND_OBJFIND)
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1568:3: note: Taking false branch
                if (opt->pickaxe_opts & DIFF_PICKAXE_KIND_OBJFIND)
                ^
/datasets/git/combine-diff.c:1576:7: note: Assuming 'stat_opt' is 0
                if (stat_opt) {
                    ^~~~~~~~
/datasets/git/combine-diff.c:1576:3: note: Taking false branch
                if (stat_opt) {
                ^
/datasets/git/combine-diff.c:1588:2: note: Loop condition is true.  Entering loop body
        for (num_paths = 0, p = paths; p; p = p->next)
        ^
/datasets/git/combine-diff.c:1588:2: note: Loop condition is false. Execution continues on line 1592
/datasets/git/combine-diff.c:1592:6: note: Assuming field 'orderfile' is null
        if (opt->orderfile && num_paths) {
            ^~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1592:21: note: Left side of '&&' is false
        if (opt->orderfile && num_paths) {
                           ^
/datasets/git/combine-diff.c:1611:6: note: 'num_paths' is 1
        if (num_paths) {
            ^~~~~~~~~
/datasets/git/combine-diff.c:1611:2: note: Taking true branch
        if (num_paths) {
        ^
/datasets/git/combine-diff.c:1612:7: note: Assuming the condition is false
                if (opt->output_format & (DIFF_FORMAT_RAW |
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1612:3: note: Taking false branch
                if (opt->output_format & (DIFF_FORMAT_RAW |
                ^
/datasets/git/combine-diff.c:1619:8: note: Taking false branch
                else if (opt->output_format & STAT_FORMAT_MASK)
                     ^
/datasets/git/combine-diff.c:1621:12: note: Assuming the condition is false
                else if (opt->output_format & DIFF_FORMAT_CALLBACK)
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1621:8: note: Taking false branch
                else if (opt->output_format & DIFF_FORMAT_CALLBACK)
                     ^
/datasets/git/combine-diff.c:1624:7: note: Assuming the condition is true
                if (opt->output_format & DIFF_FORMAT_PATCH) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1624:3: note: Taking true branch
                if (opt->output_format & DIFF_FORMAT_PATCH) {
                ^
/datasets/git/combine-diff.c:1625:8: note: 'needsep' is 0
                        if (needsep)
                            ^~~~~~~
/datasets/git/combine-diff.c:1625:4: note: Taking false branch
                        if (needsep)
                        ^
/datasets/git/combine-diff.c:1628:4: note: Loop condition is true.  Entering loop body
                        for (p = paths; p; p = p->next)
                        ^
/datasets/git/combine-diff.c:1629:5: note: Calling 'show_patch_diff'
                                show_patch_diff(p, num_parent, 0, rev);
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1034:6: note: Assuming 'userdiff' is non-null
        if (!userdiff)
            ^~~~~~~~~
/datasets/git/combine-diff.c:1034:2: note: Taking false branch
        if (!userdiff)
        ^
/datasets/git/combine-diff.c:1036:6: note: Assuming field 'allow_textconv' is 0
        if (opt->flags.allow_textconv)
            ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1036:2: note: Taking false branch
        if (opt->flags.allow_textconv)
        ^
/datasets/git/combine-diff.c:1040:7: note: 'working_tree_file' is 0
        if (!working_tree_file)
             ^~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1040:2: note: Taking true branch
        if (!working_tree_file)
        ^
/datasets/git/combine-diff.c:1123:2: note: Loop condition is true.  Entering loop body
        for (i = 0; i < num_parent; i++) {
        ^
/datasets/git/combine-diff.c:1124:7: note: Assuming 'elem->parent[i].mode' is not equal to 'elem->mode'
                if (elem->parent[i].mode != elem->mode) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1124:3: note: Taking true branch
                if (elem->parent[i].mode != elem->mode) {
                ^
/datasets/git/combine-diff.c:1126:4: note:  Execution continues on line 1130
                        break;
                        ^
/datasets/git/combine-diff.c:1130:6: note: 'textconv' is null
        if (textconv)
            ^~~~~~~~
/datasets/git/combine-diff.c:1130:2: note: Taking false branch
        if (textconv)
        ^
/datasets/git/combine-diff.c:1132:11: note: Assuming the condition is true
        else if (userdiff->binary != -1)
                 ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1132:7: note: Taking true branch
        else if (userdiff->binary != -1)
             ^
/datasets/git/combine-diff.c:1148:6: note: Assuming 'is_binary' is 0
        if (is_binary) {
            ^~~~~~~~~
/datasets/git/combine-diff.c:1148:2: note: Taking false branch
        if (is_binary) {
        ^
/datasets/git/combine-diff.c:1156:29: note: Assuming the condition is false
        for (cnt = 0, cp = result; cp < result + result_size; cp++) {
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1156:2: note: Loop condition is false. Execution continues on line 1160
        for (cnt = 0, cp = result; cp < result + result_size; cp++) {
        ^
/datasets/git/combine-diff.c:1160:6: note: 'result_size' is 0
        if (result_size && result[result_size-1] != '\n')
            ^~~~~~~~~~~
/datasets/git/combine-diff.c:1160:18: note: Left side of '&&' is false
        if (result_size && result[result_size-1] != '\n')
                        ^
/datasets/git/combine-diff.c:1165:2: note: Loop condition is false. Execution continues on line 1173
        for (lno = 0, cp = result; cp < result + result_size; cp++) {
        ^
/datasets/git/combine-diff.c:1173:6: note: 'result_size' is 0
        if (result_size && result[result_size-1] != '\n')
            ^~~~~~~~~~~
/datasets/git/combine-diff.c:1173:18: note: Left side of '&&' is false
        if (result_size && result[result_size-1] != '\n')
                        ^
/datasets/git/combine-diff.c:1183:2: note: Loop condition is true.  Entering loop body
        for (lno = 0; lno <= cnt; lno++)
        ^
/datasets/git/combine-diff.c:1183:2: note: Loop condition is false. Execution continues on line 1186
/datasets/git/combine-diff.c:1186:2: note: Loop condition is true.  Entering loop body
        for (i = 0; i < num_parent; i++) {
        ^
/datasets/git/combine-diff.c:1188:3: note: Loop condition is false. Execution continues on line 1195
                for (j = 0; j < i; j++) {
                ^
/datasets/git/combine-diff.c:1195:7: note: 'i' is <= 'j'
                if (i <= j)
                    ^
/datasets/git/combine-diff.c:1195:3: note: Taking true branch
                if (i <= j)
                ^
/datasets/git/combine-diff.c:1196:4: note: Calling 'combine_diff'
                        combine_diff(opt->repo,
                        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:439:6: note: 'result_deleted' is 0
        if (result_deleted)
            ^~~~~~~~~~~~~~
/datasets/git/combine-diff.c:439:2: note: Taking false branch
        if (result_deleted)
        ^
/datasets/git/combine-diff.c:454:6: note: Assuming the condition is false
        if (xdi_diff_outf(&parent_file, result_file, consume_hunk,
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:454:2: note: Taking false branch
        if (xdi_diff_outf(&parent_file, result_file, consume_hunk,
        ^
/datasets/git/combine-diff.c:467:2: note: Loop condition is true.  Entering loop body
        for (lno = 0,  p_lno = 1; lno <= cnt; lno++) {
        ^
/datasets/git/combine-diff.c:472:7: note: Assuming field 'lost_head' is non-null
                if (sline[lno].plost.lost_head) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:472:3: note: Taking true branch
                if (sline[lno].plost.lost_head) {
                ^
/datasets/git/combine-diff.c:474:15: note: Calling 'coalesce_lines'
                        sl->lost = coalesce_lines(sl->lost, &sl->lenlost,
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:195:26: note: 'newend' initialized to a null pointer value
        struct lline *baseend, *newend = NULL;
                                ^~~~~~
/datasets/git/combine-diff.c:198:7: note: 'newline' is non-null
        if (!newline)
             ^~~~~~~
/datasets/git/combine-diff.c:198:2: note: Taking false branch
        if (!newline)
        ^
/datasets/git/combine-diff.c:201:6: note: Assuming 'base' is non-null
        if (!base) {
            ^~~~~
/datasets/git/combine-diff.c:201:2: note: Taking false branch
        if (!base) {
        ^
/datasets/git/combine-diff.c:219:14: note: Assuming the condition is false
        for (i = 0; i < origbaselen + 1; i++) {
                    ^~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:219:2: note: Loop condition is false. Execution continues on line 224
        for (i = 0; i < origbaselen + 1; i++) {
        ^
/datasets/git/combine-diff.c:224:14: note: Assuming the condition is false
        for (j = 1; j < lennew + 1; j++)
                    ^~~~~~~~~~~~~~
/datasets/git/combine-diff.c:224:2: note: Loop condition is false. Execution continues on line 227
        for (j = 1; j < lennew + 1; j++)
        ^
/datasets/git/combine-diff.c:227:2: note: Loop condition is false. Execution continues on line 247
        for (i = 1, baseend = base; i < origbaselen + 1; i++) {
        ^
/datasets/git/combine-diff.c:247:2: note: Loop condition is false. Execution continues on line 249
        for (i = 0; i < origbaselen + 1; i++)
        ^
/datasets/git/combine-diff.c:254:9: note: 'i' is not equal to 0
        while (i != 0 || j != 0) {
               ^
/datasets/git/combine-diff.c:254:16: note: Left side of '||' is true
        while (i != 0 || j != 0) {
                      ^
/datasets/git/combine-diff.c:255:7: note: Assuming the condition is true
                if (directions[i][j] == MATCH) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:255:3: note: Taking true branch
                if (directions[i][j] == MATCH) {
                ^
/datasets/git/combine-diff.c:258:13: note: Access to field 'prev' results in a dereference of a null pointer (loaded from variable 'newend')
                        newend = newend->prev;
                                 ^~~~~~
/datasets/git/combine-diff.c:262:18: warning: variable 'lline' is not initialized [cppcoreguidelines-init-variables]
                        struct lline *lline;
                                      ^
                                            = NULL
/datasets/git/combine-diff.c:266:8: warning: Access to field 'prev' results in a dereference of a null pointer (loaded from variable 'lline') [clang-analyzer-core.NullDereference]
                        if (lline->prev)
                            ^
/datasets/git/combine-diff.c:1653:2: note: Loop condition is true.  Entering loop body
        while (parent) {
        ^
/datasets/git/combine-diff.c:1653:2: note: Loop condition is false. Execution continues on line 1657
/datasets/git/combine-diff.c:1657:2: note: Calling 'diff_tree_combined'
        diff_tree_combined(&commit->object.oid, &parents, rev);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1501:6: note: Assuming field 'ignore_regex_nr' is 0
        if (opt->ignore_regex_nr)
            ^~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1501:2: note: Taking false branch
        if (opt->ignore_regex_nr)
        ^
/datasets/git/combine-diff.c:1504:6: note: Assuming field 'close_file' is 0
        if (opt->close_file)
            ^~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1504:2: note: Taking false branch
        if (opt->close_file)
        ^
/datasets/git/combine-diff.c:1509:6: note: Assuming 'num_parent' is not equal to 0
        if (!num_parent)
            ^~~~~~~~~~~
/datasets/git/combine-diff.c:1509:2: note: Taking false branch
        if (!num_parent)
        ^
/datasets/git/combine-diff.c:1512:20: note: Assuming field 'loginfo' is non-null
        show_log_first = !!rev->loginfo && !rev->no_commit_id;
                          ^~~~~~~~~~~~~
/datasets/git/combine-diff.c:1512:19: note: Left side of '&&' is true
        show_log_first = !!rev->loginfo && !rev->no_commit_id;
                         ^
/datasets/git/combine-diff.c:1512:37: note: Assuming field 'no_commit_id' is not equal to 0
        show_log_first = !!rev->loginfo && !rev->no_commit_id;
                                           ^~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1514:6: note: 'show_log_first' is 0
        if (show_log_first) {
            ^~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1514:2: note: Taking false branch
        if (show_log_first) {
        ^
/datasets/git/combine-diff.c:1547:26: note: Assuming field 'skip_stat_unmatch' is 0
        need_generic_pathscan = opt->skip_stat_unmatch  ||
                                ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1547:26: note: Left side of '||' is false
/datasets/git/combine-diff.c:1548:4: note: Assuming field 'follow_renames' is 0
                        opt->flags.follow_renames       ||
                        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1547:26: note: Left side of '||' is false
        need_generic_pathscan = opt->skip_stat_unmatch  ||
                                ^
/datasets/git/combine-diff.c:1549:4: note: Assuming the condition is false
                        opt->break_opt != -1    ||
                        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1547:26: note: Left side of '||' is false
        need_generic_pathscan = opt->skip_stat_unmatch  ||
                                ^
/datasets/git/combine-diff.c:1550:4: note: Assuming field 'detect_rename' is 0
                        opt->detect_rename      ||
                        ^~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1547:26: note: Left side of '||' is false
        need_generic_pathscan = opt->skip_stat_unmatch  ||
                                ^
/datasets/git/combine-diff.c:1551:5: note: Assuming the condition is false
                        (opt->pickaxe_opts &
                         ^~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1547:26: note: Left side of '||' is false
        need_generic_pathscan = opt->skip_stat_unmatch  ||
                                ^
/datasets/git/combine-diff.c:1555:6: note: Assuming 'need_generic_pathscan' is 0
        if (need_generic_pathscan) {
            ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1555:2: note: Taking false branch
        if (need_generic_pathscan) {
        ^
/datasets/git/combine-diff.c:1568:7: note: Assuming the condition is false
                if (opt->pickaxe_opts & DIFF_PICKAXE_KIND_OBJFIND)
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1568:3: note: Taking false branch
                if (opt->pickaxe_opts & DIFF_PICKAXE_KIND_OBJFIND)
                ^
/datasets/git/combine-diff.c:1576:7: note: Assuming 'stat_opt' is 0
                if (stat_opt) {
                    ^~~~~~~~
/datasets/git/combine-diff.c:1576:3: note: Taking false branch
                if (stat_opt) {
                ^
/datasets/git/combine-diff.c:1588:2: note: Loop condition is true.  Entering loop body
        for (num_paths = 0, p = paths; p; p = p->next)
        ^
/datasets/git/combine-diff.c:1588:2: note: Loop condition is false. Execution continues on line 1592
/datasets/git/combine-diff.c:1592:6: note: Assuming field 'orderfile' is null
        if (opt->orderfile && num_paths) {
            ^~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1592:21: note: Left side of '&&' is false
        if (opt->orderfile && num_paths) {
                           ^
/datasets/git/combine-diff.c:1611:6: note: 'num_paths' is 1
        if (num_paths) {
            ^~~~~~~~~
/datasets/git/combine-diff.c:1611:2: note: Taking true branch
        if (num_paths) {
        ^
/datasets/git/combine-diff.c:1612:7: note: Assuming the condition is false
                if (opt->output_format & (DIFF_FORMAT_RAW |
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1612:3: note: Taking false branch
                if (opt->output_format & (DIFF_FORMAT_RAW |
                ^
/datasets/git/combine-diff.c:1619:8: note: Taking false branch
                else if (opt->output_format & STAT_FORMAT_MASK)
                     ^
/datasets/git/combine-diff.c:1621:12: note: Assuming the condition is false
                else if (opt->output_format & DIFF_FORMAT_CALLBACK)
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1621:8: note: Taking false branch
                else if (opt->output_format & DIFF_FORMAT_CALLBACK)
                     ^
/datasets/git/combine-diff.c:1624:7: note: Assuming the condition is true
                if (opt->output_format & DIFF_FORMAT_PATCH) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1624:3: note: Taking true branch
                if (opt->output_format & DIFF_FORMAT_PATCH) {
                ^
/datasets/git/combine-diff.c:1625:8: note: 'needsep' is 0
                        if (needsep)
                            ^~~~~~~
/datasets/git/combine-diff.c:1625:4: note: Taking false branch
                        if (needsep)
                        ^
/datasets/git/combine-diff.c:1628:4: note: Loop condition is true.  Entering loop body
                        for (p = paths; p; p = p->next)
                        ^
/datasets/git/combine-diff.c:1629:5: note: Calling 'show_patch_diff'
                                show_patch_diff(p, num_parent, 0, rev);
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1034:6: note: Assuming 'userdiff' is non-null
        if (!userdiff)
            ^~~~~~~~~
/datasets/git/combine-diff.c:1034:2: note: Taking false branch
        if (!userdiff)
        ^
/datasets/git/combine-diff.c:1036:6: note: Assuming field 'allow_textconv' is 0
        if (opt->flags.allow_textconv)
            ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1036:2: note: Taking false branch
        if (opt->flags.allow_textconv)
        ^
/datasets/git/combine-diff.c:1040:7: note: 'working_tree_file' is 0
        if (!working_tree_file)
             ^~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1040:2: note: Taking true branch
        if (!working_tree_file)
        ^
/datasets/git/combine-diff.c:1123:2: note: Loop condition is true.  Entering loop body
        for (i = 0; i < num_parent; i++) {
        ^
/datasets/git/combine-diff.c:1124:7: note: Assuming 'elem->parent[i].mode' is not equal to 'elem->mode'
                if (elem->parent[i].mode != elem->mode) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1124:3: note: Taking true branch
                if (elem->parent[i].mode != elem->mode) {
                ^
/datasets/git/combine-diff.c:1126:4: note:  Execution continues on line 1130
                        break;
                        ^
/datasets/git/combine-diff.c:1130:6: note: 'textconv' is null
        if (textconv)
            ^~~~~~~~
/datasets/git/combine-diff.c:1130:2: note: Taking false branch
        if (textconv)
        ^
/datasets/git/combine-diff.c:1132:11: note: Assuming the condition is true
        else if (userdiff->binary != -1)
                 ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1132:7: note: Taking true branch
        else if (userdiff->binary != -1)
             ^
/datasets/git/combine-diff.c:1148:6: note: Assuming 'is_binary' is 0
        if (is_binary) {
            ^~~~~~~~~
/datasets/git/combine-diff.c:1148:2: note: Taking false branch
        if (is_binary) {
        ^
/datasets/git/combine-diff.c:1156:29: note: Assuming the condition is false
        for (cnt = 0, cp = result; cp < result + result_size; cp++) {
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1156:2: note: Loop condition is false. Execution continues on line 1160
        for (cnt = 0, cp = result; cp < result + result_size; cp++) {
        ^
/datasets/git/combine-diff.c:1160:6: note: 'result_size' is 0
        if (result_size && result[result_size-1] != '\n')
            ^~~~~~~~~~~
/datasets/git/combine-diff.c:1160:18: note: Left side of '&&' is false
        if (result_size && result[result_size-1] != '\n')
                        ^
/datasets/git/combine-diff.c:1165:2: note: Loop condition is false. Execution continues on line 1173
        for (lno = 0, cp = result; cp < result + result_size; cp++) {
        ^
/datasets/git/combine-diff.c:1173:6: note: 'result_size' is 0
        if (result_size && result[result_size-1] != '\n')
            ^~~~~~~~~~~
/datasets/git/combine-diff.c:1173:18: note: Left side of '&&' is false
        if (result_size && result[result_size-1] != '\n')
                        ^
/datasets/git/combine-diff.c:1183:2: note: Loop condition is true.  Entering loop body
        for (lno = 0; lno <= cnt; lno++)
        ^
/datasets/git/combine-diff.c:1183:2: note: Loop condition is false. Execution continues on line 1186
/datasets/git/combine-diff.c:1186:2: note: Loop condition is true.  Entering loop body
        for (i = 0; i < num_parent; i++) {
        ^
/datasets/git/combine-diff.c:1188:3: note: Loop condition is false. Execution continues on line 1195
                for (j = 0; j < i; j++) {
                ^
/datasets/git/combine-diff.c:1195:7: note: 'i' is <= 'j'
                if (i <= j)
                    ^
/datasets/git/combine-diff.c:1195:3: note: Taking true branch
                if (i <= j)
                ^
/datasets/git/combine-diff.c:1196:4: note: Calling 'combine_diff'
                        combine_diff(opt->repo,
                        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:439:6: note: 'result_deleted' is 0
        if (result_deleted)
            ^~~~~~~~~~~~~~
/datasets/git/combine-diff.c:439:2: note: Taking false branch
        if (result_deleted)
        ^
/datasets/git/combine-diff.c:454:6: note: Assuming the condition is false
        if (xdi_diff_outf(&parent_file, result_file, consume_hunk,
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:454:2: note: Taking false branch
        if (xdi_diff_outf(&parent_file, result_file, consume_hunk,
        ^
/datasets/git/combine-diff.c:467:2: note: Loop condition is true.  Entering loop body
        for (lno = 0,  p_lno = 1; lno <= cnt; lno++) {
        ^
/datasets/git/combine-diff.c:472:7: note: Assuming field 'lost_head' is non-null
                if (sline[lno].plost.lost_head) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:472:3: note: Taking true branch
                if (sline[lno].plost.lost_head) {
                ^
/datasets/git/combine-diff.c:474:15: note: Calling 'coalesce_lines'
                        sl->lost = coalesce_lines(sl->lost, &sl->lenlost,
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:195:26: note: 'newend' initialized to a null pointer value
        struct lline *baseend, *newend = NULL;
                                ^~~~~~
/datasets/git/combine-diff.c:198:7: note: 'newline' is non-null
        if (!newline)
             ^~~~~~~
/datasets/git/combine-diff.c:198:2: note: Taking false branch
        if (!newline)
        ^
/datasets/git/combine-diff.c:201:6: note: Assuming 'base' is non-null
        if (!base) {
            ^~~~~
/datasets/git/combine-diff.c:201:2: note: Taking false branch
        if (!base) {
        ^
/datasets/git/combine-diff.c:219:14: note: Assuming the condition is false
        for (i = 0; i < origbaselen + 1; i++) {
                    ^~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:219:2: note: Loop condition is false. Execution continues on line 224
        for (i = 0; i < origbaselen + 1; i++) {
        ^
/datasets/git/combine-diff.c:224:14: note: Assuming the condition is false
        for (j = 1; j < lennew + 1; j++)
                    ^~~~~~~~~~~~~~
/datasets/git/combine-diff.c:224:2: note: Loop condition is false. Execution continues on line 227
        for (j = 1; j < lennew + 1; j++)
        ^
/datasets/git/combine-diff.c:227:2: note: Loop condition is false. Execution continues on line 247
        for (i = 1, baseend = base; i < origbaselen + 1; i++) {
        ^
/datasets/git/combine-diff.c:247:2: note: Loop condition is false. Execution continues on line 249
        for (i = 0; i < origbaselen + 1; i++)
        ^
/datasets/git/combine-diff.c:254:9: note: 'i' is not equal to 0
        while (i != 0 || j != 0) {
               ^
/datasets/git/combine-diff.c:254:16: note: Left side of '||' is true
        while (i != 0 || j != 0) {
                      ^
/datasets/git/combine-diff.c:255:7: note: Assuming the condition is false
                if (directions[i][j] == MATCH) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:255:3: note: Taking false branch
                if (directions[i][j] == MATCH) {
                ^
/datasets/git/combine-diff.c:261:14: note: Assuming the condition is true
                } else if (directions[i][j] == NEW) {
                           ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:261:10: note: Taking true branch
                } else if (directions[i][j] == NEW) {
                       ^
/datasets/git/combine-diff.c:264:4: note: Null pointer value stored to 'lline'
                        lline = newend;
                        ^~~~~~~~~~~~~~
/datasets/git/combine-diff.c:266:8: note: Access to field 'prev' results in a dereference of a null pointer (loaded from variable 'lline')
                        if (lline->prev)
                            ^~~~~
/datasets/git/combine-diff.c:266:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (lline->prev)
                                        ^
                                         {
/datasets/git/combine-diff.c:268:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/combine-diff.c:270:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (lline->next)
                                        ^
                                         {
/datasets/git/combine-diff.c:280:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (lline->prev)
                                                ^
                                                 {
/datasets/git/combine-diff.c:289:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (lline->next)
                                        ^
                                         {
/datasets/git/combine-diff.c:299:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (newend) {
        ^
/datasets/git/combine-diff.c:299:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'newend' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (newend) {
               ^
/datasets/git/combine-diff.c:305:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < origbaselen + 1; i++)
        ^
/datasets/git/combine-diff.c:305:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'origbaselen' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < origbaselen + 1; i++)
                    ^
/datasets/git/combine-diff.c:305:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < origbaselen + 1; i++)
                                             ^
                                              {
/datasets/git/combine-diff.c:312:43: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static char *grab_blob(struct repository *r,
                                          ^
/datasets/git/combine-diff.c:317:8: warning: variable 'blob' is not initialized [cppcoreguidelines-init-variables]
        char *blob;
              ^
                   = NULL
/datasets/git/combine-diff.c:318:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/combine-diff.c:320:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (S_ISGITLINK(mode)) {
            ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/combine-diff.c:330:25: warning: variable name 'df' is too short, expected at least 3 characters [readability-identifier-length]
                struct diff_filespec *df = alloc_filespec(path);
                                      ^
/datasets/git/combine-diff.c:336:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (type != OBJ_BLOB)
                                     ^
                                      {
/datasets/git/combine-diff.c:344:16: warning: variable 'lline' is not initialized [cppcoreguidelines-init-variables]
        struct lline *lline;
                      ^
                            = NULL
/datasets/git/combine-diff.c:345:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned long this_mask = (1UL<<n);
                                   ^    ~
/datasets/git/combine-diff.c:346:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (line[len-1] == '\n')
                                ^
                                 {
/datasets/git/combine-diff.c:349:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FLEX_ALLOC_MEM(lline, line, line, len);
        ^
/datasets/git/./git-compat-util.h:1151:47: note: expanded from macro 'FLEX_ALLOC_MEM'
#define FLEX_ALLOC_MEM(x, flexname, buf, len) do { \
                                              ^
/datasets/git/combine-diff.c:349:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        FLEX_ALLOC_MEM(lline, line, line, len);
        ^
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/combine-diff.c:349:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        FLEX_ALLOC_MEM(lline, line, line, len);
        ^
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/combine-diff.c:353:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (lline->prev)
                        ^
                         {
/datasets/git/combine-diff.c:355:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/combine-diff.c:362:8: warning: accessing fields in struct 'combine_diff_state' is inefficient due to padding; only needs 52 bytes but is using 56 bytes [altera-struct-pack-align]
struct combine_diff_state {
       ^
/datasets/git/combine-diff.c:362:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'combine_diff_state'
/datasets/git/combine-diff.c:362:8: warning: accessing fields in struct 'combine_diff_state' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct combine_diff_state {
       ^
/datasets/git/combine-diff.c:362:8: note: use "__attribute__((aligned(64)))" to align struct 'combine_diff_state' to 64 bytes
/datasets/git/combine-diff.c:373:10: warning: parameter name 'ob' is too short, expected at least 3 characters [readability-identifier-length]
                         long ob, long on,
                              ^
/datasets/git/combine-diff.c:373:14: warning: 2 adjacent parameters of 'consume_hunk' of similar type ('long') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                         long ob, long on,
                                  ^~~~~~~~
/datasets/git/combine-diff.c:373:19: note: the first parameter in the range is 'on'
                         long ob, long on,
                                       ^~
/datasets/git/combine-diff.c:374:10: note: the last parameter in the range is 'nb'
                         long nb, long nn,
                              ^~
/datasets/git/combine-diff.c:373:19: warning: parameter name 'on' is too short, expected at least 3 characters [readability-identifier-length]
                         long ob, long on,
                                       ^
/datasets/git/combine-diff.c:374:10: warning: parameter name 'nb' is too short, expected at least 3 characters [readability-identifier-length]
                         long nb, long nn,
                              ^
/datasets/git/combine-diff.c:374:19: warning: parameter name 'nn' is too short, expected at least 3 characters [readability-identifier-length]
                         long nb, long nn,
                                       ^
/datasets/git/combine-diff.c:375:17: warning: parameter 'funcline' is unused [misc-unused-parameters]
                         const char *funcline, long funclen)
                                     ^
/datasets/git/combine-diff.c:375:32: warning: parameter 'funclen' is unused [misc-unused-parameters]
                         const char *funcline, long funclen)
                                                    ^
/datasets/git/combine-diff.c:379:14: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        state->ob = ob;
                    ^
/datasets/git/combine-diff.c:380:14: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        state->on = on;
                    ^
/datasets/git/combine-diff.c:381:14: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        state->nb = nb;
                    ^
/datasets/git/combine-diff.c:382:14: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        state->nn = nn;
                    ^
/datasets/git/combine-diff.c:395:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!state->nb)
                               ^
                                {
/datasets/git/combine-diff.c:400:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!state->sline[state->nb-1].p_lno)
                                             ^
                                              {
/datasets/git/combine-diff.c:409:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!state->lost_bucket)
                                ^
                                 {
/datasets/git/combine-diff.c:413:53: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                append_lost(state->lost_bucket, state->n, line+1, len-1);
                                                                  ^
/datasets/git/combine-diff.c:423:45: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void combine_diff(struct repository *r,
                                            ^
/datasets/git/combine-diff.c:426:26: warning: 4 adjacent parameters of 'combine_diff' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                         struct sline *sline, unsigned int cnt, int n,
                                              ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:426:39: note: the first parameter in the range is 'cnt'
                         struct sline *sline, unsigned int cnt, int n,
                                                           ^~~
/datasets/git/combine-diff.c:427:25: note: the last parameter in the range is 'result_deleted'
                         int num_parent, int result_deleted,
                                             ^~~~~~~~~~~~~~
/datasets/git/combine-diff.c:426:44: note: 'unsigned int' and 'int' may be implicitly converted
                         struct sline *sline, unsigned int cnt, int n,
                                                                ^
/datasets/git/combine-diff.c:431:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned int p_lno, lno;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:431:15: warning: variable 'p_lno' is not initialized [cppcoreguidelines-init-variables]
        unsigned int p_lno, lno;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/combine-diff.c:431:22: warning: variable 'lno' is not initialized [cppcoreguidelines-init-variables]
        unsigned int p_lno, lno;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/combine-diff.c:432:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned long nmask = (1UL << n);
                               ^      ~
/datasets/git/combine-diff.c:437:16: warning: variable 'sz' is not initialized [cppcoreguidelines-init-variables]
        unsigned long sz;
                      ^
                         = 0
/datasets/git/combine-diff.c:437:16: warning: variable name 'sz' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/combine-diff.c:439:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (result_deleted)
                           ^
                            {
/datasets/git/combine-diff.c:443:21: warning: narrowing conversion from 'unsigned long' to signed type 'long' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        parent_file.size = sz;
                           ^
/datasets/git/combine-diff.c:444:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&xpp, 0, sizeof(xpp));
        ^~~~~~
/datasets/git/combine-diff.c:444:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&xpp, 0, sizeof(xpp));
        ^~~~~~
/datasets/git/combine-diff.c:446:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&xecfg, 0, sizeof(xecfg));
        ^~~~~~
/datasets/git/combine-diff.c:446:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&xecfg, 0, sizeof(xecfg));
        ^~~~~~
/datasets/git/combine-diff.c:447:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&state, 0, sizeof(state));
        ^~~~~~
/datasets/git/combine-diff.c:447:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&state, 0, sizeof(state));
        ^~~~~~
/datasets/git/combine-diff.c:455:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                          consume_line, &state, &xpp, &xecfg))
                                                              ^
                                                               {
/datasets/git/combine-diff.c:468:17: warning: variable 'll' is not initialized [cppcoreguidelines-init-variables]
                struct lline *ll;
                              ^
                                 = NULL
/datasets/git/combine-diff.c:468:17: warning: variable name 'll' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/combine-diff.c:473:18: warning: variable name 'sl' is too short, expected at least 3 characters [readability-identifier-length]
                        struct sline *sl = &sline[lno];
                                      ^
/datasets/git/combine-diff.c:483:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (ll) {
                ^
/datasets/git/combine-diff.c:483:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'll' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (ll) {
                       ^
/datasets/git/combine-diff.c:484:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ll->parent_map & nmask)
                                                   ^
                                                    {
/datasets/git/combine-diff.c:488:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (lno < cnt && !(sline[lno].flag & nmask))
                                                            ^
                                                             {
/datasets/git/combine-diff.c:494:22: warning: variable 'context' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned long context = 3;
                     ^
/datasets/git/combine-diff.c:495:13: warning: variable 'combine_marker' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char combine_marker = '@';
            ^
/datasets/git/combine-diff.c:508:25: warning: parameter name 'i' is too short, expected at least 3 characters [readability-identifier-length]
                                      unsigned long i)
                                                    ^
/datasets/git/combine-diff.c:517:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((hunk_begin + 1 <= i) && !(sline[i-1].flag & all_mask))
                                                                   ^
                                                                    {
/datasets/git/combine-diff.c:524:25: warning: parameter name 'i' is too short, expected at least 3 characters [readability-identifier-length]
                               unsigned long i,
                                             ^
/datasets/git/combine-diff.c:525:11: warning: 2 adjacent parameters of 'find_next' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                               unsigned long cnt,
                               ^~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:525:25: note: the first parameter in the range is 'cnt'
                               unsigned long cnt,
                                             ^~~
/datasets/git/combine-diff.c:526:15: note: the last parameter in the range is 'look_for_uninteresting'
                               int look_for_uninteresting)
                                   ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:526:11: note: 'unsigned long' and 'int' may be implicitly converted
                               int look_for_uninteresting)
                               ^
/datasets/git/combine-diff.c:535:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (i <= cnt)
        ^
/datasets/git/combine-diff.c:535:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (i <= cnt)
                        ^
                         {
/datasets/git/combine-diff.c:538:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    : (sline[i].flag & mark))
                                             ^
                                              {
/datasets/git/combine-diff.c:540:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/combine-diff.c:545:46: warning: 2 adjacent parameters of 'give_context' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int give_context(struct sline *sline, unsigned long cnt, int num_parent)
                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:545:60: note: the first parameter in the range is 'cnt'
static int give_context(struct sline *sline, unsigned long cnt, int num_parent)
                                                           ^~~
/datasets/git/combine-diff.c:545:69: note: the last parameter in the range is 'num_parent'
static int give_context(struct sline *sline, unsigned long cnt, int num_parent)
                                                                    ^~~~~~~~~~
/datasets/git/combine-diff.c:545:65: note: 'unsigned long' and 'int' may be implicitly converted
static int give_context(struct sline *sline, unsigned long cnt, int num_parent)
                                                                ^
/datasets/git/combine-diff.c:547:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned long all_mask = (1UL<<num_parent) - 1;
                                  ^    ~~~~~~~~~~
/datasets/git/combine-diff.c:548:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned long mark = (1UL<<num_parent);
                              ^    ~~~~~~~~~~
/datasets/git/combine-diff.c:549:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned long no_pre_delete = (2UL<<num_parent);
                                       ^    ~~~~~~~~~~
/datasets/git/combine-diff.c:550:16: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned long i;
                      ^
                        = 0
/datasets/git/combine-diff.c:550:16: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/combine-diff.c:566:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                unsigned long j = (context < i) ? (i - context) : 0;
                ^
/datasets/git/combine-diff.c:562:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cnt < i)
                    ^
                     {
/datasets/git/combine-diff.c:565:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (i <= cnt) {
               ^
/datasets/git/combine-diff.c:566:17: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
                unsigned long j = (context < i) ? (i - context) : 0;
                              ^
/datasets/git/combine-diff.c:567:17: warning: variable 'k' is not initialized [cppcoreguidelines-init-variables]
                unsigned long k;
                              ^
                                = 0
/datasets/git/combine-diff.c:567:17: warning: variable name 'k' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/combine-diff.c:570:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (j < i) {
                ^
/datasets/git/combine-diff.c:570:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'j' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (j < i) {
                       ^
/datasets/git/combine-diff.c:571:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!(sline[j].flag & mark))
                                                    ^
                                                     {
/datasets/git/combine-diff.c:581:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cnt < j)
                            ^
                             {
/datasets/git/combine-diff.c:592:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (j < k)
                        ^
/datasets/git/combine-diff.c:592:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'j' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (j < k)
                               ^
/datasets/git/combine-diff.c:592:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        while (j < k)
                                     ^
                                      {
/datasets/git/combine-diff.c:604:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (j < k)
                ^
/datasets/git/combine-diff.c:604:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'j' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (j < k)
                       ^
/datasets/git/combine-diff.c:604:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (j < k)
                             ^
                              {
/datasets/git/combine-diff.c:610:12: warning: function 'make_hunks' has cognitive complexity of 60 (threshold 25) [readability-function-cognitive-complexity]
static int make_hunks(struct sline *sline, unsigned long cnt,
           ^
/datasets/git/combine-diff.c:618:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i <= cnt; i++) {
        ^
/datasets/git/combine-diff.c:619:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (interesting(&sline[i], all_mask))
                ^
/datasets/git/combine-diff.c:621:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/combine-diff.c:624:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!dense)
        ^
/datasets/git/combine-diff.c:632:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (i <= cnt) {
        ^
/datasets/git/combine-diff.c:635:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (i <= cnt && !(sline[i].flag & mark))
                ^
/datasets/git/combine-diff.c:635:19: note: +1
                while (i <= cnt && !(sline[i].flag & mark))
                                ^
/datasets/git/combine-diff.c:637:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (cnt < i)
                ^
/datasets/git/combine-diff.c:640:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (j = i + 1; j <= cnt; j++) {
                ^
/datasets/git/combine-diff.c:641:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!(sline[j].flag & mark)) {
                        ^
/datasets/git/combine-diff.c:650:35: note: +4, including nesting penalty of 3, nesting level increased to 4
                                la = (la + context < cnt + 1) ?
                                                              ^
/datasets/git/combine-diff.c:652:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                while (la && j <= --la) {
                                ^
/datasets/git/combine-diff.c:652:15: note: +1
                                while (la && j <= --la) {
                                          ^
/datasets/git/combine-diff.c:653:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (sline[la].flag & mark) {
                                        ^
/datasets/git/combine-diff.c:658:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!contin)
                                ^
/datasets/git/combine-diff.c:686:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (j = i; j < hunk_end && !has_interesting; j++) {
                ^
/datasets/git/combine-diff.c:686:28: note: +1
                for (j = i; j < hunk_end && !has_interesting; j++) {
                                         ^
/datasets/git/combine-diff.c:689:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (this_diff) {
                        ^
/datasets/git/combine-diff.c:693:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!same_diff)
                                ^
/datasets/git/combine-diff.c:695:10: note: +1, nesting level increased to 4
                                else if (same_diff != this_diff) {
                                     ^
/datasets/git/combine-diff.c:700:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (ll && !has_interesting) {
                        ^
/datasets/git/combine-diff.c:700:14: note: +1
                        while (ll && !has_interesting) {
                                  ^
/datasets/git/combine-diff.c:705:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!same_diff)
                                ^
/datasets/git/combine-diff.c:707:10: note: +1, nesting level increased to 4
                                else if (same_diff != this_diff) {
                                     ^
/datasets/git/combine-diff.c:714:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!has_interesting && same_diff != all_mask) {
                ^
/datasets/git/combine-diff.c:714:24: note: +1
                if (!has_interesting && same_diff != all_mask) {
                                     ^
/datasets/git/combine-diff.c:716:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (j = hunk_begin; j < hunk_end; j++)
                        ^
/datasets/git/combine-diff.c:611:10: warning: 2 adjacent parameters of 'make_hunks' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                       int num_parent, int dense)
                       ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:611:14: note: the first parameter in the range is 'num_parent'
                       int num_parent, int dense)
                           ^~~~~~~~~~
/datasets/git/combine-diff.c:611:30: note: the last parameter in the range is 'dense'
                       int num_parent, int dense)
                                           ^~~~~
/datasets/git/combine-diff.c:615:2: note: inferred assignment of ID-dependent value from ID-dependent variable hunk_end [altera-id-dependent-backward-branch]
        unsigned long i;
        ^
/datasets/git/combine-diff.c:613:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned long all_mask = (1UL<<num_parent) - 1;
                                  ^    ~~~~~~~~~~
/datasets/git/combine-diff.c:614:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned long mark = (1UL<<num_parent);
                              ^    ~~~~~~~~~~
/datasets/git/combine-diff.c:615:16: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned long i;
                      ^
                        = 0
/datasets/git/combine-diff.c:615:16: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/combine-diff.c:618:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i <= cnt; i++) {
        ^
/datasets/git/combine-diff.c:618:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i <= cnt; i++) {
                    ^
/datasets/git/combine-diff.c:619:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (interesting(&sline[i], all_mask))
                                                     ^
                                                      {
/datasets/git/combine-diff.c:621:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/combine-diff.c:624:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!dense)
                   ^
                    {
/datasets/git/combine-diff.c:632:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (i <= cnt) {
               ^
/datasets/git/combine-diff.c:633:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                unsigned long j, hunk_begin, hunk_end;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:633:17: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
                unsigned long j, hunk_begin, hunk_end;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/combine-diff.c:633:17: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/combine-diff.c:633:20: warning: variable 'hunk_begin' is not initialized [cppcoreguidelines-init-variables]
                unsigned long j, hunk_begin, hunk_end;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/combine-diff.c:633:32: warning: variable 'hunk_end' is not initialized [cppcoreguidelines-init-variables]
                unsigned long j, hunk_begin, hunk_end;
                                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/combine-diff.c:634:17: warning: variable 'same_diff' is not initialized [cppcoreguidelines-init-variables]
                unsigned long same_diff;
                              ^
                                        = 0
/datasets/git/combine-diff.c:646:5: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                                unsigned long la; /* lookahead */
                                ^
/datasets/git/combine-diff.c:635:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (i <= cnt && !(sline[i].flag & mark))
                ^
/datasets/git/combine-diff.c:635:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (i <= cnt && !(sline[i].flag & mark))
                       ^
/datasets/git/combine-diff.c:635:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (i <= cnt && !(sline[i].flag & mark))
                                                           ^
                                                            {
/datasets/git/combine-diff.c:637:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cnt < i)
                            ^
                             {
/datasets/git/combine-diff.c:640:19: warning: backward branch (for loop) is ID-dependent due to variable reference to 'j' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (j = i + 1; j <= cnt; j++) {
                                ^
/datasets/git/combine-diff.c:633:3: note: inferred assignment of ID-dependent value from ID-dependent variable i
                unsigned long j, hunk_begin, hunk_end;
                ^
/datasets/git/combine-diff.c:646:19: warning: variable 'la' is not initialized [cppcoreguidelines-init-variables]
                                unsigned long la; /* lookahead */
                                              ^
                                                 = 0
/datasets/git/combine-diff.c:646:19: warning: variable name 'la' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/combine-diff.c:688:4: note: inferred assignment of ID-dependent value from ID-dependent member lost [altera-id-dependent-backward-branch]
                        struct lline *ll = sline[j].lost;
                        ^
/datasets/git/combine-diff.c:652:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                while (la && j <= --la) {
                                ^
/datasets/git/combine-diff.c:652:12: warning: backward branch (while loop) is ID-dependent due to variable reference to 'la' and may cause performance degradation [altera-id-dependent-backward-branch]
                                while (la && j <= --la) {
                                       ^
/datasets/git/combine-diff.c:658:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!contin)
                                            ^
                                             {
/datasets/git/combine-diff.c:686:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'j' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (j = i; j < hunk_end && !has_interesting; j++) {
                            ^
/datasets/git/combine-diff.c:688:18: warning: variable name 'll' is too short, expected at least 3 characters [readability-identifier-length]
                        struct lline *ll = sline[j].lost;
                                      ^
/datasets/git/combine-diff.c:693:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!same_diff)
                                               ^
                                                {
/datasets/git/combine-diff.c:700:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (ll && !has_interesting) {
                        ^
/datasets/git/combine-diff.c:700:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'll' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (ll && !has_interesting) {
                               ^
/datasets/git/combine-diff.c:705:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!same_diff)
                                               ^
                                                {
/datasets/git/combine-diff.c:716:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (j = hunk_begin; j < hunk_end; j++)
                        ^
/datasets/git/combine-diff.c:716:25: warning: backward branch (for loop) is ID-dependent due to variable reference to 'j' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (j = hunk_begin; j < hunk_end; j++)
                                             ^
/datasets/git/combine-diff.c:716:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (j = hunk_begin; j < hunk_end; j++)
                                                               ^
                                                                {
/datasets/git/combine-diff.c:726:64: warning: parameter name 'l0' is too short, expected at least 3 characters [readability-identifier-length]
static void show_parent_lno(struct sline *sline, unsigned long l0, unsigned long l1, int n, unsigned long null_context)
                                                               ^
/datasets/git/combine-diff.c:726:82: warning: parameter name 'l1' is too short, expected at least 3 characters [readability-identifier-length]
static void show_parent_lno(struct sline *sline, unsigned long l0, unsigned long l1, int n, unsigned long null_context)
                                                                                 ^
/datasets/git/combine-diff.c:726:86: warning: 2 adjacent parameters of 'show_parent_lno' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void show_parent_lno(struct sline *sline, unsigned long l0, unsigned long l1, int n, unsigned long null_context)
                                                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:726:90: note: the first parameter in the range is 'n'
static void show_parent_lno(struct sline *sline, unsigned long l0, unsigned long l1, int n, unsigned long null_context)
                                                                                         ^
/datasets/git/combine-diff.c:726:107: note: the last parameter in the range is 'null_context'
static void show_parent_lno(struct sline *sline, unsigned long l0, unsigned long l1, int n, unsigned long null_context)
                                                                                                          ^~~~~~~~~~~~
/datasets/git/combine-diff.c:726:93: note: 'int' and 'unsigned long' may be implicitly converted
static void show_parent_lno(struct sline *sline, unsigned long l0, unsigned long l1, int n, unsigned long null_context)
                                                                                            ^
/datasets/git/combine-diff.c:735:6: warning: variable 'ch' is not initialized [cppcoreguidelines-init-variables]
        int ch;
            ^
               = 0
/datasets/git/combine-diff.c:735:6: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/combine-diff.c:737:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!bol)
                 ^
                  {
/datasets/git/combine-diff.c:739:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ch = *bol & 0xff;
             ^~~~
/datasets/git/combine-diff.c:739:14: warning: 0xff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        ch = *bol & 0xff;
                    ^
/datasets/git/combine-diff.c:740:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return (isalpha(ch) || ch == '_' || ch == '$');
                ^
/datasets/git/./git-compat-util.h:1219:20: note: expanded from macro 'isalpha'
#define isalpha(x) sane_istest(x,GIT_ALPHA)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/combine-diff.c:746:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len < 0)
                    ^
                     {
/datasets/git/combine-diff.c:747:9: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                len = strlen(line);
                      ^
/datasets/git/combine-diff.c:755:13: warning: function 'dump_sline' has cognitive complexity of 92 (threshold 25) [readability-function-cognitive-complexity]
static void dump_sline(struct sline *sline, const char *line_prefix,
            ^
/datasets/git/combine-diff.c:770:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (result_deleted)
        ^
/datasets/git/combine-diff.c:773:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (1) {
        ^
/datasets/git/combine-diff.c:779:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (lno <= cnt && !(sline[lno].flag & mark)) {
                ^
/datasets/git/combine-diff.c:779:21: note: +1
                while (lno <= cnt && !(sline[lno].flag & mark)) {
                                  ^
/datasets/git/combine-diff.c:780:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (hunk_comment_line(sline[lno].bol))
                        ^
/datasets/git/combine-diff.c:784:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (cnt < lno)
                ^
/datasets/git/combine-diff.c:786:3: note: +1, nesting level increased to 2
                else {
                ^
/datasets/git/combine-diff.c:787:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (hunk_end = lno + 1; hunk_end <= cnt; hunk_end++)
                        ^
/datasets/git/combine-diff.c:788:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!(sline[hunk_end].flag & mark))
                                ^
/datasets/git/combine-diff.c:792:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (cnt < hunk_end)
                ^
/datasets/git/combine-diff.c:795:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!context) {
                ^
/datasets/git/combine-diff.c:806:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (j = lno; j < hunk_end; j++)
                        ^
/datasets/git/combine-diff.c:807:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!(sline[j].flag & (mark-1)))
                                ^
/datasets/git/combine-diff.c:813:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i <= num_parent; i++) putchar(combine_marker);
                ^
/datasets/git/combine-diff.c:814:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < num_parent; i++)
                ^
/datasets/git/combine-diff.c:817:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i <= num_parent; i++) putchar(combine_marker);
                ^
/datasets/git/combine-diff.c:819:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (hunk_comment) {
                ^
/datasets/git/combine-diff.c:821:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (i = 0; i < 40; i++) {
                        ^
/datasets/git/combine-diff.c:823:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!ch || ch == '\n')
                                ^
/datasets/git/combine-diff.c:823:13: note: +1
                                if (!ch || ch == '\n')
                                        ^
/datasets/git/combine-diff.c:825:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!isspace(ch))
                                ^
/datasets/git/combine-diff.c:828:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (comment_end)
                        ^
/datasets/git/combine-diff.c:832:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (i = 0; i < comment_end; i++)
                        ^
/datasets/git/combine-diff.c:837:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (lno < hunk_end) {
                ^
/datasets/git/combine-diff.c:842:36: note: +3, including nesting penalty of 2, nesting level increased to 3
                        ll = (sl->flag & no_pre_delete) ? NULL : sl->lost;
                                                        ^
/datasets/git/combine-diff.c:843:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (ll) {
                        ^
/datasets/git/combine-diff.c:845:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                for (j = 0; j < num_parent; j++) {
                                ^
/datasets/git/combine-diff.c:846:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (ll->parent_map & (1UL<<j))
                                        ^
/datasets/git/combine-diff.c:848:6: note: +1, nesting level increased to 5
                                        else
                                        ^
/datasets/git/combine-diff.c:854:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (cnt < lno)
                        ^
/datasets/git/combine-diff.c:858:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!(sl->flag & (mark-1))) {
                        ^
/datasets/git/combine-diff.c:863:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!context)
                                ^
/datasets/git/combine-diff.c:867:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/combine-diff.c:869:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (j = 0; j < num_parent; j++) {
                        ^
/datasets/git/combine-diff.c:870:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (p_mask & sl->flag)
                                ^
/datasets/git/combine-diff.c:872:5: note: +1, nesting level increased to 4
                                else
                                ^
/datasets/git/combine-diff.c:756:10: warning: 4 adjacent parameters of 'dump_sline' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                       unsigned long cnt, int num_parent,
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:756:24: note: the first parameter in the range is 'cnt'
                       unsigned long cnt, int num_parent,
                                     ^~~
/datasets/git/combine-diff.c:757:29: note: the last parameter in the range is 'result_deleted'
                       int use_color, int result_deleted)
                                          ^~~~~~~~~~~~~~
/datasets/git/combine-diff.c:756:29: note: 'unsigned long' and 'int' may be implicitly converted
                       unsigned long cnt, int num_parent,
                                          ^
/datasets/git/combine-diff.c:759:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned long mark = (1UL<<num_parent);
                              ^    ~~~~~~~~~~
/datasets/git/combine-diff.c:760:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned long no_pre_delete = (2UL<<num_parent);
                                       ^    ~~~~~~~~~~
/datasets/git/combine-diff.c:761:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/combine-diff.c:761:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/combine-diff.c:770:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (result_deleted)
                           ^
                            {
/datasets/git/combine-diff.c:774:17: warning: variable 'hunk_end' is not initialized [cppcoreguidelines-init-variables]
                unsigned long hunk_end;
                              ^
                                       = 0
/datasets/git/combine-diff.c:775:17: warning: variable 'rlines' is not initialized [cppcoreguidelines-init-variables]
                unsigned long rlines;
                              ^
                                     = 0
/datasets/git/combine-diff.c:779:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (lno <= cnt && !(sline[lno].flag & mark)) {
                ^
/datasets/git/combine-diff.c:779:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'mark' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (lno <= cnt && !(sline[lno].flag & mark)) {
                       ^
/datasets/git/combine-diff.c:780:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (hunk_comment_line(sline[lno].bol))
                                                              ^
                                                               {
/datasets/git/combine-diff.c:784:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cnt < lno)
                              ^
                               {
/datasets/git/combine-diff.c:786:3: warning: do not use 'else' after 'break' [llvm-else-after-return,readability-else-after-return]
                else {
                ^~~~~~
/datasets/git/combine-diff.c:759:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        unsigned long mark = (1UL<<num_parent);
        ^
/datasets/git/combine-diff.c:787:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (hunk_end = lno + 1; hunk_end <= cnt; hunk_end++)
                        ^
/datasets/git/combine-diff.c:787:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'hunk_end' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (hunk_end = lno + 1; hunk_end <= cnt; hunk_end++)
                                                 ^
/datasets/git/combine-diff.c:787:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (hunk_end = lno + 1; hunk_end <= cnt; hunk_end++)
                                                                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/combine-diff.c:788:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!(sline[hunk_end].flag & mark))
                                                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/combine-diff.c:792:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cnt < hunk_end)
                                   ^
                                    {
/datasets/git/combine-diff.c:805:18: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
                        unsigned long j;
                                      ^
                                        = 0
/datasets/git/combine-diff.c:805:18: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/combine-diff.c:806:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (j = lno; j < hunk_end; j++)
                        ^
/datasets/git/combine-diff.c:806:18: warning: backward branch (for loop) is ID-dependent due to variable reference to 'j' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (j = lno; j < hunk_end; j++)
                                      ^
/datasets/git/combine-diff.c:806:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (j = lno; j < hunk_end; j++)
                                                        ^
                                                         {
/datasets/git/combine-diff.c:807:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!(sline[j].flag & (mark-1)))
                                                                ^
                                                                 {
/datasets/git/combine-diff.c:813:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i <= num_parent; i++) putchar(combine_marker);
                ^
/datasets/git/combine-diff.c:813:36: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i <= num_parent; i++) putchar(combine_marker);
                                                 ^
                                                  {
/datasets/git/combine-diff.c:814:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < num_parent; i++)
                ^
/datasets/git/combine-diff.c:814:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < num_parent; i++)
                                                ^
                                                 {
/datasets/git/combine-diff.c:817:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i <= num_parent; i++) putchar(combine_marker);
                ^
/datasets/git/combine-diff.c:774:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                unsigned long hunk_end;
                ^
/datasets/git/combine-diff.c:817:36: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i <= num_parent; i++) putchar(combine_marker);
                                                 ^
                                                  {
/datasets/git/combine-diff.c:821:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = 0; i < 40; i++) {
                        ^
/datasets/git/combine-diff.c:821:20: warning: 40 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        for (i = 0; i < 40; i++) {
                                        ^
/datasets/git/combine-diff.c:822:9: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
                                int ch = hunk_comment[i] & 0xff;
                                    ^
/datasets/git/combine-diff.c:822:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                int ch = hunk_comment[i] & 0xff;
                                         ^~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:822:32: warning: 0xff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                int ch = hunk_comment[i] & 0xff;
                                                           ^
/datasets/git/combine-diff.c:823:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!ch || ch == '\n')
                                                      ^
                                                       {
/datasets/git/combine-diff.c:825:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (!isspace(ch))
                                     ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/combine-diff.c:825:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!isspace(ch))
                                                 ^
                                                  {
/datasets/git/combine-diff.c:828:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (comment_end)
                                        ^
                                         {
/datasets/git/combine-diff.c:832:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = 0; i < comment_end; i++)
                        ^
/datasets/git/combine-diff.c:832:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'comment_end' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (i = 0; i < comment_end; i++)
                                    ^
/datasets/git/combine-diff.c:832:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (i = 0; i < comment_end; i++)
                                                         ^
                                                          {
/datasets/git/combine-diff.c:837:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'hunk_end' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (lno < hunk_end) {
                       ^
/datasets/git/combine-diff.c:838:18: warning: variable 'll' is not initialized [cppcoreguidelines-init-variables]
                        struct lline *ll;
                                      ^
                                         = NULL
/datasets/git/combine-diff.c:838:18: warning: variable name 'll' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/combine-diff.c:839:8: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
                        int j;
                            ^
                              = 0
/datasets/git/combine-diff.c:839:8: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/combine-diff.c:840:18: warning: variable 'p_mask' is not initialized [cppcoreguidelines-init-variables]
                        unsigned long p_mask;
                                      ^
                                             = 0
/datasets/git/combine-diff.c:841:18: warning: variable name 'sl' is too short, expected at least 3 characters [readability-identifier-length]
                        struct sline *sl = &sline[lno++];
                                      ^
/datasets/git/combine-diff.c:843:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'll' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (ll) {
                               ^
/datasets/git/combine-diff.c:845:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                for (j = 0; j < num_parent; j++) {
                                ^
/datasets/git/combine-diff.c:846:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        if (ll->parent_map & (1UL<<j))
                                                              ^    ~
/datasets/git/combine-diff.c:846:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        if (ll->parent_map & (1UL<<j))
                                                                      ^
                                                                       {
/datasets/git/combine-diff.c:848:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        else
                                            ^
                                             {
/datasets/git/combine-diff.c:854:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (cnt < lno)
                                      ^
                                       {
/datasets/git/combine-diff.c:857:4: warning: the value returned by this function should be used [cert-err33-c]
                        fputs(line_prefix, stdout);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:857:4: note: cast the expression to void to silence this warning
/datasets/git/combine-diff.c:838:4: note: inferred assignment of ID-dependent value from ID-dependent member flag [altera-id-dependent-backward-branch]
                        struct lline *ll;
                        ^
/datasets/git/combine-diff.c:863:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!context)
                                             ^
                                              {
/datasets/git/combine-diff.c:865:5: warning: the value returned by this function should be used [cert-err33-c]
                                fputs(c_context, stdout);
                                ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:865:5: note: cast the expression to void to silence this warning
/datasets/git/combine-diff.c:867:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/combine-diff.c:868:5: warning: the value returned by this function should be used [cert-err33-c]
                                fputs(c_new, stdout);
                                ^~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:868:5: note: cast the expression to void to silence this warning
/datasets/git/combine-diff.c:869:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (j = 0; j < num_parent; j++) {
                        ^
/datasets/git/combine-diff.c:870:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (p_mask & sl->flag)
                                                      ^
                                                       {
/datasets/git/combine-diff.c:872:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                else
                                    ^
                                     {
/datasets/git/combine-diff.c:874:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                p_mask <<= 1;
                                ^          ~
/datasets/git/combine-diff.c:881:53: warning: 2 adjacent parameters of 'reuse_combine_diff' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void reuse_combine_diff(struct sline *sline, unsigned long cnt,
                                                    ^~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:881:67: note: the first parameter in the range is 'cnt'
static void reuse_combine_diff(struct sline *sline, unsigned long cnt,
                                                                  ^~~
/datasets/git/combine-diff.c:882:15: note: the last parameter in the range is 'i'
                               int i, int j)
                                   ^
/datasets/git/combine-diff.c:882:11: note: 'unsigned long' and 'int' may be implicitly converted
                               int i, int j)
                               ^
/datasets/git/combine-diff.c:882:15: warning: parameter name 'i' is too short, expected at least 3 characters [readability-identifier-length]
                               int i, int j)
                                   ^
/datasets/git/combine-diff.c:882:22: warning: parameter name 'j' is too short, expected at least 3 characters [readability-identifier-length]
                               int i, int j)
                                          ^
/datasets/git/combine-diff.c:888:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned long lno, imask, jmask;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:888:16: warning: variable 'lno' is not initialized [cppcoreguidelines-init-variables]
        unsigned long lno, imask, jmask;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/combine-diff.c:888:21: warning: variable 'imask' is not initialized [cppcoreguidelines-init-variables]
        unsigned long lno, imask, jmask;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/combine-diff.c:888:28: warning: variable 'jmask' is not initialized [cppcoreguidelines-init-variables]
        unsigned long lno, imask, jmask;
                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/combine-diff.c:889:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        imask = (1UL<<i);
                 ^    ~
/datasets/git/combine-diff.c:890:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        jmask = (1UL<<j);
                 ^    ~
/datasets/git/combine-diff.c:893:3: note: inferred assignment of ID-dependent value from ID-dependent member lost [altera-id-dependent-backward-branch]
                struct lline *ll = sline->lost;
                ^
/datasets/git/combine-diff.c:893:17: warning: variable name 'll' is too short, expected at least 3 characters [readability-identifier-length]
                struct lline *ll = sline->lost;
                              ^
/datasets/git/combine-diff.c:895:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (ll) {
                ^
/datasets/git/combine-diff.c:895:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'll' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (ll) {
                       ^
/datasets/git/combine-diff.c:896:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ll->parent_map & jmask)
                                                   ^
                                                    {
/datasets/git/combine-diff.c:900:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (sline->flag & jmask)
                                        ^
                                         {
/datasets/git/combine-diff.c:908:30: warning: 2 adjacent parameters of 'dump_quoted_path' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void dump_quoted_path(const char *head,
                             ^~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:908:42: note: the first parameter in the range is 'head'
static void dump_quoted_path(const char *head,
                                         ^~~~
/datasets/git/combine-diff.c:909:21: note: the last parameter in the range is 'prefix'
                             const char *prefix,
                                         ^~~~~~
/datasets/git/combine-diff.c:910:9: warning: 2 adjacent parameters of 'dump_quoted_path' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                             const char *path,
                             ^~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:910:21: note: the first parameter in the range is 'path'
                             const char *path,
                                         ^~~~
/datasets/git/combine-diff.c:911:21: note: the last parameter in the range is 'line_prefix'
                             const char *line_prefix,
                                         ^~~~~~~~~~~
/datasets/git/combine-diff.c:925:13: warning: function 'show_combined_header' has cognitive complexity of 49 (threshold 25) [readability-function-cognitive-complexity]
static void show_combined_header(struct combine_diff_path *elem,
            ^
/datasets/git/combine-diff.c:933:37: note: +1, including nesting penalty of 0, nesting level increased to 1
        int abbrev = opt->flags.full_index ? the_hash_algo->hexsz : DEFAULT_ABBREV;
                                           ^
/datasets/git/combine-diff.c:934:39: note: +1, including nesting penalty of 0, nesting level increased to 1
        const char *a_prefix = opt->a_prefix ? opt->a_prefix : "a/";
                                             ^
/datasets/git/combine-diff.c:935:39: note: +1, including nesting penalty of 0, nesting level increased to 1
        const char *b_prefix = opt->b_prefix ? opt->b_prefix : "b/";
                                             ^
/datasets/git/combine-diff.c:944:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (rev->loginfo && !rev->no_commit_id)
        ^
/datasets/git/combine-diff.c:944:19: note: +1
        if (rev->loginfo && !rev->no_commit_id)
                         ^
/datasets/git/combine-diff.c:947:25: note: +1, including nesting penalty of 0, nesting level increased to 1
        dump_quoted_path(dense ? "diff --cc " : "diff --combined ",
                               ^
/datasets/git/combine-diff.c:950:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < num_parent; i++) {
        ^
/datasets/git/combine-diff.c:953:20: note: +2, including nesting penalty of 1, nesting level increased to 2
                printf("%s%s", i ? "," : "", abb);
                                 ^
/datasets/git/combine-diff.c:958:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mode_differs) {
        ^
/datasets/git/combine-diff.c:963:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; added && i < num_parent; i++)
                ^
/datasets/git/combine-diff.c:963:21: note: +1
                for (i = 0; added && i < num_parent; i++)
                                  ^
/datasets/git/combine-diff.c:964:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (elem->parent[i].status !=
                        ^
/datasets/git/combine-diff.c:967:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (added)
                ^
/datasets/git/combine-diff.c:970:3: note: +1, nesting level increased to 2
                else {
                ^
/datasets/git/combine-diff.c:971:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (deleted)
                        ^
/datasets/git/combine-diff.c:975:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (i = 0; i < num_parent; i++) {
                        ^
/datasets/git/combine-diff.c:976:24: note: +4, including nesting penalty of 3, nesting level increased to 4
                                printf("%s%06o", i ? "," : "",
                                                   ^
/datasets/git/combine-diff.c:979:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (elem->mode)
                        ^
/datasets/git/combine-diff.c:985:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!show_file_header)
        ^
/datasets/git/combine-diff.c:988:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (rev->combined_all_paths) {
        ^
/datasets/git/combine-diff.c:989:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < num_parent; i++) {
                ^
/datasets/git/combine-diff.c:991:5: note: +3, including nesting penalty of 2, nesting level increased to 3
                                ? elem->parent[i].path.buf : elem->path;
                                ^
/datasets/git/combine-diff.c:992:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (elem->parent[i].status == DIFF_STATUS_ADDED)
                        ^
/datasets/git/combine-diff.c:995:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/combine-diff.c:999:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/combine-diff.c:1000:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (added)
                ^
/datasets/git/combine-diff.c:1003:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/combine-diff.c:1007:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (deleted)
        ^
/datasets/git/combine-diff.c:1010:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/combine-diff.c:929:6: warning: 2 adjacent parameters of 'show_combined_header' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                 int mode_differs,
                                 ^~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:929:10: note: the first parameter in the range is 'mode_differs'
                                 int mode_differs,
                                     ^~~~~~~~~~~~
/datasets/git/combine-diff.c:930:10: note: the last parameter in the range is 'show_file_header'
                                 int show_file_header)
                                     ^~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:933:39: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int abbrev = opt->flags.full_index ? the_hash_algo->hexsz : DEFAULT_ABBREV;
                                             ^
/datasets/git/./hash.h:200:23: note: expanded from macro 'the_hash_algo'
#define the_hash_algo the_repository->hash_algo
                      ^
/datasets/git/combine-diff.c:933:62: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int abbrev = opt->flags.full_index ? the_hash_algo->hexsz : DEFAULT_ABBREV;
                                                                    ^
/datasets/git/./refs/../cache.h:1417:24: note: expanded from macro 'DEFAULT_ABBREV'
#define DEFAULT_ABBREV default_abbrev
                       ^
/datasets/git/combine-diff.c:938:14: warning: variable 'abb' is not initialized [cppcoreguidelines-init-variables]
        const char *abb;
                    ^
                        = NULL
/datasets/git/combine-diff.c:941:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/combine-diff.c:941:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/combine-diff.c:944:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (rev->loginfo && !rev->no_commit_id)
                                               ^
                                                {
/datasets/git/combine-diff.c:950:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < num_parent; i++) {
        ^
/datasets/git/combine-diff.c:963:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; added && i < num_parent; i++)
                ^
/datasets/git/combine-diff.c:963:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'added' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; added && i < num_parent; i++)
                            ^
/datasets/git/combine-diff.c:963:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; added && i < num_parent; i++)
                                                         ^
                                                          {
/datasets/git/combine-diff.c:965:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            DIFF_STATUS_ADDED)
                                              ^
                                               {
/datasets/git/combine-diff.c:967:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (added)
                          ^
                           {
/datasets/git/combine-diff.c:971:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (deleted)
                                    ^
                                     {
/datasets/git/combine-diff.c:975:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = 0; i < num_parent; i++) {
                        ^
/datasets/git/combine-diff.c:979:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (elem->mode)
                                       ^
                                        {
/datasets/git/combine-diff.c:985:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!show_file_header)
                              ^
                               {
/datasets/git/combine-diff.c:989:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < num_parent; i++) {
                ^
/datasets/git/combine-diff.c:992:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (elem->parent[i].status == DIFF_STATUS_ADDED)
                                                                        ^
                                                                         {
/datasets/git/combine-diff.c:995:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/combine-diff.c:1000:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (added)
                          ^
                           {
/datasets/git/combine-diff.c:1003:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/combine-diff.c:1007:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (deleted)
                    ^
                     {
/datasets/git/combine-diff.c:1010:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/combine-diff.c:1015:13: warning: function 'show_patch_diff' has cognitive complexity of 82 (threshold 25) [readability-function-cognitive-complexity]
static void show_patch_diff(struct combine_diff_path *elem, int num_parent,
            ^
/datasets/git/combine-diff.c:1034:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!userdiff)
        ^
/datasets/git/combine-diff.c:1036:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt->flags.allow_textconv)
        ^
/datasets/git/combine-diff.c:1040:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!working_tree_file)
        ^
/datasets/git/combine-diff.c:1043:2: note: +1, nesting level increased to 1
        else {
        ^
/datasets/git/combine-diff.c:1048:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (lstat(elem->path, &st) < 0)
                ^
/datasets/git/combine-diff.c:1051:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (S_ISLNK(st.st_mode)) {
                ^
/datasets/git/combine-diff.c:1054:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (strbuf_readlink(&buf, elem->path, st.st_size) < 0) {
                        ^
/datasets/git/combine-diff.c:1061:10: note: +1, nesting level increased to 2
                } else if (S_ISDIR(st.st_mode)) {
                       ^
/datasets/git/combine-diff.c:1063:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (resolve_gitlink_ref(elem->path, "HEAD", &oid) < 0)
                        ^
/datasets/git/combine-diff.c:1067:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/combine-diff.c:1070:10: note: +1, nesting level increased to 2
                } else if (textconv) {
                       ^
/datasets/git/combine-diff.c:1075:10: note: +1, nesting level increased to 2
                } else if (0 <= (fd = open(elem->path, O_RDONLY))) {
                       ^
/datasets/git/combine-diff.c:1085:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (i = 0; !is_file && i < num_parent; i++)
                        ^
/datasets/git/combine-diff.c:1085:25: note: +1
                        for (i = 0; !is_file && i < num_parent; i++)
                                             ^
/datasets/git/combine-diff.c:1087:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!is_file)
                        ^
/datasets/git/combine-diff.c:1094:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (done < 0)
                        ^
/datasets/git/combine-diff.c:1096:9: note: +1, nesting level increased to 3
                        else if (done < len)
                             ^
/datasets/git/combine-diff.c:1100:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (is_file) {
                        ^
/datasets/git/combine-diff.c:1103:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (convert_to_git(rev->diffopt.repo->index,
                                ^
/datasets/git/combine-diff.c:1111:3: note: +1, nesting level increased to 2
                else {
                ^
/datasets/git/combine-diff.c:1119:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (0 <= fd)
                ^
/datasets/git/combine-diff.c:1123:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < num_parent; i++) {
        ^
/datasets/git/combine-diff.c:1124:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (elem->parent[i].mode != elem->mode) {
                ^
/datasets/git/combine-diff.c:1130:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (textconv)
        ^
/datasets/git/combine-diff.c:1132:7: note: +1, nesting level increased to 1
        else if (userdiff->binary != -1)
             ^
/datasets/git/combine-diff.c:1134:2: note: +1, nesting level increased to 1
        else {
        ^
/datasets/git/combine-diff.c:1136:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; !is_binary && i < num_parent; i++) {
                ^
/datasets/git/combine-diff.c:1136:26: note: +1
                for (i = 0; !is_binary && i < num_parent; i++) {
                                       ^
/datasets/git/combine-diff.c:1143:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (buffer_is_binary(buf, size))
                        ^
/datasets/git/combine-diff.c:1148:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (is_binary) {
        ^
/datasets/git/combine-diff.c:1156:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (cnt = 0, cp = result; cp < result + result_size; cp++) {
        ^
/datasets/git/combine-diff.c:1157:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*cp == '\n')
                ^
/datasets/git/combine-diff.c:1160:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (result_size && result[result_size-1] != '\n')
        ^
/datasets/git/combine-diff.c:1160:18: note: +1
        if (result_size && result[result_size-1] != '\n')
                        ^
/datasets/git/combine-diff.c:1165:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (lno = 0, cp = result; cp < result + result_size; cp++) {
        ^
/datasets/git/combine-diff.c:1166:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*cp == '\n') {
                ^
/datasets/git/combine-diff.c:1169:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (lno < cnt)
                        ^
/datasets/git/combine-diff.c:1173:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (result_size && result[result_size-1] != '\n')
        ^
/datasets/git/combine-diff.c:1173:18: note: +1
        if (result_size && result[result_size-1] != '\n')
                        ^
/datasets/git/combine-diff.c:1183:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (lno = 0; lno <= cnt; lno++)
        ^
/datasets/git/combine-diff.c:1186:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < num_parent; i++) {
        ^
/datasets/git/combine-diff.c:1188:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (j = 0; j < i; j++) {
                ^
/datasets/git/combine-diff.c:1189:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (oideq(&elem->parent[i].oid,
                        ^
/datasets/git/combine-diff.c:1195:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (i <= j)
                ^
/datasets/git/combine-diff.c:1206:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (show_hunks || mode_differs || working_tree_file) {
        ^
/datasets/git/combine-diff.c:1206:33: note: +1
        if (show_hunks || mode_differs || working_tree_file) {
                                       ^
/datasets/git/combine-diff.c:1214:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (lno = 0; lno < cnt; lno++) {
        ^
/datasets/git/combine-diff.c:1215:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (sline[lno].lost) {
                ^
/datasets/git/combine-diff.c:1217:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (ll) {
                        ^
/datasets/git/combine-diff.c:1015:61: warning: 2 adjacent parameters of 'show_patch_diff' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void show_patch_diff(struct combine_diff_path *elem, int num_parent,
                                                            ^~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1015:65: note: the first parameter in the range is 'num_parent'
static void show_patch_diff(struct combine_diff_path *elem, int num_parent,
                                                                ^~~~~~~~~~
/datasets/git/combine-diff.c:1016:12: note: the last parameter in the range is 'working_tree_file'
                            int working_tree_file,
                                ^~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1020:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned long result_size, cnt, lno;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1020:16: warning: variable 'result_size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long result_size, cnt, lno;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/combine-diff.c:1020:29: warning: variable 'cnt' is not initialized [cppcoreguidelines-init-variables]
        unsigned long result_size, cnt, lno;
                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/combine-diff.c:1020:34: warning: variable 'lno' is not initialized [cppcoreguidelines-init-variables]
        unsigned long result_size, cnt, lno;
                                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/combine-diff.c:1022:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *result, *cp;
        ^~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1022:8: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        char *result, *cp;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/combine-diff.c:1022:17: warning: variable 'cp' is not initialized [cppcoreguidelines-init-variables]
        char *result, *cp;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/combine-diff.c:1022:17: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/combine-diff.c:1023:16: warning: variable 'sline' is not initialized [cppcoreguidelines-init-variables]
        struct sline *sline; /* survived lines */
                      ^
                            = NULL
/datasets/git/combine-diff.c:1025:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, show_hunks;
        ^~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1025:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, show_hunks;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/combine-diff.c:1025:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/combine-diff.c:1025:9: warning: variable 'show_hunks' is not initialized [cppcoreguidelines-init-variables]
        int i, show_hunks;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/combine-diff.c:1027:26: warning: variable 'userdiff' is not initialized [cppcoreguidelines-init-variables]
        struct userdiff_driver *userdiff;
                                ^
                                         = NULL
/datasets/git/combine-diff.c:1029:6: warning: variable 'is_binary' is not initialized [cppcoreguidelines-init-variables]
        int is_binary;
            ^
                      = 0
/datasets/git/combine-diff.c:1034:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!userdiff)
                      ^
                       {
/datasets/git/combine-diff.c:1036:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->flags.allow_textconv)
                                      ^
                                       {
/datasets/git/combine-diff.c:1040:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!working_tree_file)
                               ^
                                {
/datasets/git/combine-diff.c:1045:15: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                struct stat st;
                            ^
/datasets/git/combine-diff.c:1046:7: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
                int fd = -1;
                    ^
/datasets/git/combine-diff.c:1048:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (lstat(elem->path, &st) < 0)
                                               ^
                                                {
/datasets/git/combine-diff.c:1063:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (resolve_gitlink_ref(elem->path, "HEAD", &oid) < 0)
                                                                              ^
                                                                               {
/datasets/git/combine-diff.c:1067:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/combine-diff.c:1071:26: warning: variable name 'df' is too short, expected at least 3 characters [readability-identifier-length]
                        struct diff_filespec *df = alloc_filespec(elem->path);
                                              ^
/datasets/git/combine-diff.c:1075:20: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                } else if (0 <= (fd = open(elem->path, O_RDONLY))) {
                                 ^
/datasets/git/combine-diff.c:1075:20: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/combine-diff.c:1075:20: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/combine-diff.c:1075:50: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
                } else if (0 <= (fd = open(elem->path, O_RDONLY))) {
                                                               ^
                                                                | O_CLOEXEC
/datasets/git/combine-diff.c:1077:12: warning: variable 'done' is not initialized [cppcoreguidelines-init-variables]
                        ssize_t done;
                                ^
                                     = 0
/datasets/git/combine-diff.c:1078:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        int is_file, i;
                        ^~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1078:8: warning: variable 'is_file' is not initialized [cppcoreguidelines-init-variables]
                        int is_file, i;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/combine-diff.c:1078:17: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                        int is_file, i;
                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/combine-diff.c:1078:17: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/combine-diff.c:1085:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = 0; !is_file && i < num_parent; i++)
                        ^
/datasets/git/combine-diff.c:1085:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'is_file' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (i = 0; !is_file && i < num_parent; i++)
                                    ^
/datasets/git/combine-diff.c:1085:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (i = 0; !is_file && i < num_parent; i++)
                                                                    ^
                                                                     {
/datasets/git/combine-diff.c:1087:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!is_file)
                                     ^
                                      {
/datasets/git/combine-diff.c:1094:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (done < 0)
                                     ^
                                      {
/datasets/git/combine-diff.c:1096:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (done < len)
                                            ^
                                             {
/datasets/git/combine-diff.c:1119:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (0 <= fd)
                            ^
                             {
/datasets/git/combine-diff.c:1123:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < num_parent; i++) {
        ^
/datasets/git/combine-diff.c:1130:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (textconv)
                     ^
                      {
/datasets/git/combine-diff.c:1132:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (userdiff->binary != -1)
                                        ^
                                         {
/datasets/git/combine-diff.c:1136:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; !is_binary && i < num_parent; i++) {
                ^
/datasets/git/combine-diff.c:1136:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'is_binary' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; !is_binary && i < num_parent; i++) {
                            ^
/datasets/git/combine-diff.c:1137:10: warning: variable 'buf' is not initialized [cppcoreguidelines-init-variables]
                        char *buf;
                              ^
                                  = NULL
/datasets/git/combine-diff.c:1138:18: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
                        unsigned long size;
                                      ^
                                           = 0
/datasets/git/combine-diff.c:1143:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (buffer_is_binary(buf, size))
                                                        ^
                                                         {
/datasets/git/combine-diff.c:1156:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cnt = 0, cp = result; cp < result + result_size; cp++) {
        ^
/datasets/git/combine-diff.c:1156:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cp' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (cnt = 0, cp = result; cp < result + result_size; cp++) {
                                   ^
/datasets/git/combine-diff.c:1157:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*cp == '\n')
                                ^
                                 {
/datasets/git/combine-diff.c:1160:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (result_size && result[result_size-1] != '\n')
                                                         ^
                                                          {
/datasets/git/combine-diff.c:1165:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (lno = 0, cp = result; cp < result + result_size; cp++) {
        ^
/datasets/git/combine-diff.c:1165:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cp' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (lno = 0, cp = result; cp < result + result_size; cp++) {
                                   ^
/datasets/git/combine-diff.c:1167:21: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        sline[lno].len = cp - sline[lno].bol;
                                         ^
/datasets/git/combine-diff.c:1169:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (lno < cnt)
                                      ^
                                       {
/datasets/git/combine-diff.c:1173:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (result_size && result[result_size-1] != '\n')
                                                         ^
                                                          {
/datasets/git/combine-diff.c:1174:22: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                sline[cnt-1].len = result_size - (sline[cnt-1].bol - result);
                                   ^
/datasets/git/combine-diff.c:1177:21: warning: narrowing conversion from 'unsigned long' to signed type 'long' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        result_file.size = result_size;
                           ^
/datasets/git/combine-diff.c:1183:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (lno = 0; lno <= cnt; lno++)
        ^
/datasets/git/combine-diff.c:1183:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (lno = 0; lno <= cnt; lno++)
                                        ^
                                         {
/datasets/git/combine-diff.c:1187:7: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
                int j;
                    ^
                      = 0
/datasets/git/combine-diff.c:1187:7: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/combine-diff.c:1216:4: note: inferred assignment of ID-dependent value from ID-dependent member lost [altera-id-dependent-backward-branch]
                        struct lline *ll = sline[lno].lost;
                        ^
/datasets/git/combine-diff.c:1188:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (j = 0; j < i; j++) {
                ^
/datasets/git/combine-diff.c:1195:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (i <= j)
                           ^
                            {
/datasets/git/combine-diff.c:1216:18: warning: variable name 'll' is too short, expected at least 3 characters [readability-identifier-length]
                        struct lline *ll = sline[lno].lost;
                                      ^
/datasets/git/combine-diff.c:1217:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (ll) {
                        ^
/datasets/git/combine-diff.c:1217:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'll' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (ll) {
                               ^
/datasets/git/combine-diff.c:1228:53: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static void show_raw_diff(struct combine_diff_path *p, int num_parent, struct rev_info *rev)
                                                    ^
/datasets/git/combine-diff.c:1231:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int line_termination, inter_name_termination, i;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1231:6: warning: variable 'line_termination' is not initialized [cppcoreguidelines-init-variables]
        int line_termination, inter_name_termination, i;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/combine-diff.c:1231:24: warning: variable 'inter_name_termination' is not initialized [cppcoreguidelines-init-variables]
        int line_termination, inter_name_termination, i;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/combine-diff.c:1231:48: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int line_termination, inter_name_termination, i;
                                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/combine-diff.c:1231:48: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/combine-diff.c:1236:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!line_termination)
                              ^
                               {
/datasets/git/combine-diff.c:1239:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (rev->loginfo && !rev->no_commit_id)
                                               ^
                                                {
/datasets/git/combine-diff.c:1243:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (opt->output_format & DIFF_FORMAT_RAW) {
            ^~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1247:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < num_parent; i++)
                ^
/datasets/git/combine-diff.c:1247:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < num_parent; i++)
                                                ^
                                                 {
/datasets/git/combine-diff.c:1251:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < num_parent; i++)
                ^
/datasets/git/combine-diff.c:1251:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < num_parent; i++)
                                                ^
                                                 {
/datasets/git/combine-diff.c:1256:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < num_parent; i++)
                ^
/datasets/git/combine-diff.c:1256:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < num_parent; i++)
                                                ^
                                                 {
/datasets/git/combine-diff.c:1262:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (opt->output_format & (DIFF_FORMAT_RAW | DIFF_FORMAT_NAME_STATUS)) {
            ^~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1262:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (opt->output_format & (DIFF_FORMAT_RAW | DIFF_FORMAT_NAME_STATUS)) {
                                  ^
/datasets/git/./diff.h:99:26: note: expanded from macro 'DIFF_FORMAT_RAW'
#define DIFF_FORMAT_RAW         0x0001
                                ^~~~~~
/datasets/git/combine-diff.c:1263:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < num_parent; i++)
                ^
/datasets/git/combine-diff.c:1263:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < num_parent; i++)
                                                ^
                                                 {
/datasets/git/combine-diff.c:1268:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < num_parent; i++)
        ^
/datasets/git/combine-diff.c:1268:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < num_parent; i++)
                                        ^
                                         {
/datasets/git/combine-diff.c:1270:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (filename_changed(p->parent[i].status))
                                                                  ^
                                                                   {
/datasets/git/combine-diff.c:1273:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/combine-diff.c:1286:51: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
void show_combined_diff(struct combine_diff_path *p,
                                                  ^
/datasets/git/combine-diff.c:1292:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (opt->output_format & (DIFF_FORMAT_RAW |
            ^~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1292:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (opt->output_format & (DIFF_FORMAT_RAW |
                                  ^
/datasets/git/./diff.h:99:26: note: expanded from macro 'DIFF_FORMAT_RAW'
#define DIFF_FORMAT_RAW         0x0001
                                ^
/datasets/git/combine-diff.c:1294:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                  DIFF_FORMAT_NAME_STATUS))
                                                           ^
                                                            {
/datasets/git/combine-diff.c:1296:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        else if (opt->output_format & DIFF_FORMAT_PATCH)
                 ^~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1296:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (opt->output_format & DIFF_FORMAT_PATCH)
                                                        ^
                                                         {
/datasets/git/combine-diff.c:1315:70: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static struct diff_filepair *combined_pair(struct combine_diff_path *p,
                                                                     ^
/datasets/git/combine-diff.c:1318:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/combine-diff.c:1318:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/combine-diff.c:1319:24: warning: variable 'pair' is not initialized [cppcoreguidelines-init-variables]
        struct diff_filepair *pair;
                              ^
                                   = NULL
/datasets/git/combine-diff.c:1320:24: warning: variable 'pool' is not initialized [cppcoreguidelines-init-variables]
        struct diff_filespec *pool;
                              ^
                                   = NULL
/datasets/git/combine-diff.c:1327:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < num_parent; i++) {
        ^
/datasets/git/combine-diff.c:1345:10: warning: 2 adjacent parameters of 'handle_combined_callback' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                     int num_parent,
                                     ^~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1345:14: note: the first parameter in the range is 'num_parent'
                                     int num_parent,
                                         ^~~~~~~~~~
/datasets/git/combine-diff.c:1346:14: note: the last parameter in the range is 'num_paths'
                                     int num_paths)
                                         ^~~~~~~~~
/datasets/git/combine-diff.c:1348:28: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct combine_diff_path *p;
                                  ^
                                    = NULL
/datasets/git/combine-diff.c:1348:28: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/combine-diff.c:1349:27: warning: variable name 'q' is too short, expected at least 3 characters [readability-identifier-length]
        struct diff_queue_struct q;
                                 ^
/datasets/git/combine-diff.c:1350:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/combine-diff.c:1350:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/combine-diff.c:1352:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        CALLOC_ARRAY(q.queue, num_paths);
        ^
/datasets/git/./git-compat-util.h:1091:55: note: expanded from macro 'CALLOC_ARRAY'
#define CALLOC_ARRAY(x, alloc) (x) = xcalloc((alloc), sizeof(*(x)))
                                                      ^
/datasets/git/combine-diff.c:1355:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0, p = paths; p; p = p->next)
        ^
/datasets/git/combine-diff.c:1355:25: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0, p = paths; p; p = p->next)
                               ^
/datasets/git/combine-diff.c:1355:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0, p = paths; p; p = p->next)
                                              ^
                                               {
/datasets/git/combine-diff.c:1358:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < num_paths; i++)
        ^
/datasets/git/combine-diff.c:1358:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < num_paths; i++)
                                       ^
                                        {
/datasets/git/combine-diff.c:1386:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, num_parent = parents->nr;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1386:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/combine-diff.c:1386:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, num_parent = parents->nr;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/combine-diff.c:1386:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/combine-diff.c:1386:22: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int i, num_parent = parents->nr;
                            ^
/datasets/git/combine-diff.c:1396:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < num_parent; i++) {
        ^
/datasets/git/combine-diff.c:1396:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'num_parent' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < num_parent; i++) {
                    ^
/datasets/git/combine-diff.c:1401:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                int stat_opt = output_format & STAT_FORMAT_MASK;
                               ^~~~~~~~~~~~~
/datasets/git/combine-diff.c:1401:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                int stat_opt = output_format & STAT_FORMAT_MASK;
                                               ^
/datasets/git/combine-diff.c:1373:27: note: expanded from macro 'STAT_FORMAT_MASK'
#define STAT_FORMAT_MASK (DIFF_FORMAT_NUMSTAT \
                          ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/./diff.h:101:29: note: expanded from macro 'DIFF_FORMAT_NUMSTAT'
#define DIFF_FORMAT_NUMSTAT     0x0004
                                ^
/datasets/git/combine-diff.c:1402:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (i == 0 && stat_opt)
                                       ^
                                        {
/datasets/git/combine-diff.c:1404:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/combine-diff.c:1434:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, nparent = parents->nr;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1434:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, nparent = parents->nr;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/combine-diff.c:1434:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/combine-diff.c:1434:19: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int i, nparent = parents->nr;
                         ^
/datasets/git/combine-diff.c:1435:27: warning: variable 'parents_oid' is not initialized [cppcoreguidelines-init-variables]
        const struct object_id **parents_oid;
                                 ^
                                             = NULL
/datasets/git/combine-diff.c:1439:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_ARRAY(parents_oid, nparent);
        ^
/datasets/git/./git-compat-util.h:1090:53: note: expanded from macro 'ALLOC_ARRAY'
#define ALLOC_ARRAY(x, alloc) (x) = xmalloc(st_mult(sizeof(*(x)), (alloc)))
                                                    ^
/datasets/git/combine-diff.c:1440:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nparent; i++)
        ^
/datasets/git/combine-diff.c:1440:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'nparent' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < nparent; i++)
                    ^
/datasets/git/combine-diff.c:1440:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < nparent; i++)
                                     ^
                                      {
/datasets/git/combine-diff.c:1458:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/combine-diff.c:1458:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/combine-diff.c:1459:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oidset_contains(set, &path->oid))
                                             ^
                                              {
/datasets/git/combine-diff.c:1461:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < num_parent; i++) {
        ^
/datasets/git/combine-diff.c:1462:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (oidset_contains(set, &path->parent[i].oid))
                                                               ^
                                                                {
/datasets/git/combine-diff.c:1472:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct combine_diff_path *ret = NULL, **tail = &ret;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1473:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct combine_diff_path *p = paths;
        ^
/datasets/git/combine-diff.c:1473:28: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        struct combine_diff_path *p = paths;
                                  ^
/datasets/git/combine-diff.c:1475:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (p) {
        ^
/datasets/git/combine-diff.c:1475:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (p) {
               ^
/datasets/git/combine-diff.c:1491:6: warning: function 'diff_tree_combined' has cognitive complexity of 48 (threshold 25) [readability-function-cognitive-complexity]
void diff_tree_combined(const struct object_id *oid,
     ^
/datasets/git/combine-diff.c:1501:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt->ignore_regex_nr)
        ^
/datasets/git/combine-diff.c:1504:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt->close_file)
        ^
/datasets/git/combine-diff.c:1509:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!num_parent)
        ^
/datasets/git/combine-diff.c:1512:34: note: +1
        show_log_first = !!rev->loginfo && !rev->no_commit_id;
                                        ^
/datasets/git/combine-diff.c:1514:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (show_log_first) {
        ^
/datasets/git/combine-diff.c:1517:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (rev->verbose_header && opt->output_format &&
                ^
/datasets/git/combine-diff.c:1518:51: note: +1
                    opt->output_format != DIFF_FORMAT_NO_OUTPUT &&
                                                                ^
/datasets/git/combine-diff.c:1552:61: note: +1
                         (DIFF_PICKAXE_KINDS_MASK & ~DIFF_PICKAXE_KIND_OBJFIND)) ||
                                                                                 ^
/datasets/git/combine-diff.c:1555:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (need_generic_pathscan) {
        ^
/datasets/git/combine-diff.c:1564:2: note: +1, nesting level increased to 1
        else {
        ^
/datasets/git/combine-diff.c:1568:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opt->pickaxe_opts & DIFF_PICKAXE_KIND_OBJFIND)
                ^
/datasets/git/combine-diff.c:1576:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (stat_opt) {
                ^
/datasets/git/combine-diff.c:1581:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (opt->orderfile)
                        ^
/datasets/git/combine-diff.c:1588:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (num_paths = 0, p = paths; p; p = p->next)
        ^
/datasets/git/combine-diff.c:1592:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt->orderfile && num_paths) {
        ^
/datasets/git/combine-diff.c:1592:21: note: +1
        if (opt->orderfile && num_paths) {
                           ^
/datasets/git/combine-diff.c:1596:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0, p = paths; p; p = p->next, i++)
                ^
/datasets/git/combine-diff.c:1599:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < num_paths - 1; i++) {
                ^
/datasets/git/combine-diff.c:1611:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (num_paths) {
        ^
/datasets/git/combine-diff.c:1612:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opt->output_format & (DIFF_FORMAT_RAW |
                ^
/datasets/git/combine-diff.c:1615:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (p = paths; p; p = p->next)
                        ^
/datasets/git/combine-diff.c:1619:8: note: +1, nesting level increased to 2
                else if (opt->output_format & STAT_FORMAT_MASK)
                     ^
/datasets/git/combine-diff.c:1621:8: note: +1, nesting level increased to 2
                else if (opt->output_format & DIFF_FORMAT_CALLBACK)
                     ^
/datasets/git/combine-diff.c:1624:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opt->output_format & DIFF_FORMAT_PATCH) {
                ^
/datasets/git/combine-diff.c:1625:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (needsep)
                        ^
/datasets/git/combine-diff.c:1628:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (p = paths; p; p = p->next)
                        ^
/datasets/git/combine-diff.c:1634:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (paths) {
        ^
/datasets/git/combine-diff.c:1637:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < num_parent; i++)
                ^
/datasets/git/combine-diff.c:1638:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (rev->combined_all_paths &&
                        ^
/datasets/git/combine-diff.c:1638:32: note: +1
                        if (rev->combined_all_paths &&
                                                    ^
/datasets/git/combine-diff.c:1497:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct combine_diff_path *p, *paths;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1497:28: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct combine_diff_path *p, *paths;
                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/combine-diff.c:1497:28: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/combine-diff.c:1497:32: warning: variable 'paths' is not initialized [cppcoreguidelines-init-variables]
        struct combine_diff_path *p, *paths;
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/combine-diff.c:1498:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, num_paths, needsep, show_log_first, num_parent = parents->nr;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1498:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, num_paths, needsep, show_log_first, num_parent = parents->nr;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/combine-diff.c:1498:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/combine-diff.c:1498:9: warning: variable 'num_paths' is not initialized [cppcoreguidelines-init-variables]
        int i, num_paths, needsep, show_log_first, num_parent = parents->nr;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/combine-diff.c:1498:20: warning: variable 'needsep' is not initialized [cppcoreguidelines-init-variables]
        int i, num_paths, needsep, show_log_first, num_parent = parents->nr;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/combine-diff.c:1498:29: warning: variable 'show_log_first' is not initialized [cppcoreguidelines-init-variables]
        int i, num_paths, needsep, show_log_first, num_parent = parents->nr;
                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/combine-diff.c:1498:58: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int i, num_paths, needsep, show_log_first, num_parent = parents->nr;
                                                                ^
/datasets/git/combine-diff.c:1499:6: warning: variable 'need_generic_pathscan' is not initialized [cppcoreguidelines-init-variables]
        int need_generic_pathscan;
            ^
                                  = 0
/datasets/git/combine-diff.c:1501:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->ignore_regex_nr)
                                 ^
                                  {
/datasets/git/combine-diff.c:1504:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->close_file)
                            ^
                             {
/datasets/git/combine-diff.c:1509:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!num_parent)
                        ^
                         {
/datasets/git/combine-diff.c:1519:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !commit_format_is_empty(rev->commit_format))
                                                                ^
                                                                 {
/datasets/git/combine-diff.c:1551:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        (opt->pickaxe_opts &
                         ^
/datasets/git/combine-diff.c:1552:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         (DIFF_PICKAXE_KINDS_MASK & ~DIFF_PICKAXE_KIND_OBJFIND)) ||
                          ^
/datasets/git/./diff.h:556:33: note: expanded from macro 'DIFF_PICKAXE_KINDS_MASK'
#define DIFF_PICKAXE_KINDS_MASK (DIFF_PICKAXE_KIND_S | \
                                ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1552:32: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                         (DIFF_PICKAXE_KINDS_MASK & ~DIFF_PICKAXE_KIND_OBJFIND)) ||
                                                    ^
/datasets/git/combine-diff.c:1565:7: warning: variable 'stat_opt' is not initialized [cppcoreguidelines-init-variables]
                int stat_opt;
                    ^
                             = 0
/datasets/git/combine-diff.c:1568:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (opt->pickaxe_opts & DIFF_PICKAXE_KIND_OBJFIND)
                    ^
/datasets/git/combine-diff.c:1568:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opt->pickaxe_opts & DIFF_PICKAXE_KIND_OBJFIND)
                                                                  ^
                                                                   {
/datasets/git/combine-diff.c:1575:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                stat_opt = opt->output_format & STAT_FORMAT_MASK;
                           ^~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1575:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                stat_opt = opt->output_format & STAT_FORMAT_MASK;
                                                ^
/datasets/git/combine-diff.c:1373:27: note: expanded from macro 'STAT_FORMAT_MASK'
#define STAT_FORMAT_MASK (DIFF_FORMAT_NUMSTAT \
                          ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/./diff.h:101:29: note: expanded from macro 'DIFF_FORMAT_NUMSTAT'
#define DIFF_FORMAT_NUMSTAT     0x0004
                                ^
/datasets/git/combine-diff.c:1581:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (opt->orderfile)
                                           ^
                                            {
/datasets/git/combine-diff.c:1588:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (num_paths = 0, p = paths; p; p = p->next)
        ^
/datasets/git/combine-diff.c:1497:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct combine_diff_path *p, *paths;
        ^
/datasets/git/combine-diff.c:1588:33: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (num_paths = 0, p = paths; p; p = p->next)
                                       ^
/datasets/git/combine-diff.c:1588:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (num_paths = 0, p = paths; p; p = p->next)
                                                      ^
                                                       {
/datasets/git/combine-diff.c:1593:21: warning: variable 'o' is not initialized [cppcoreguidelines-init-variables]
                struct obj_order *o;
                                  ^
                                    = NULL
/datasets/git/combine-diff.c:1593:21: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/combine-diff.c:1596:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0, p = paths; p; p = p->next, i++)
                ^
/datasets/git/combine-diff.c:1596:26: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0, p = paths; p; p = p->next, i++)
                                       ^
/datasets/git/combine-diff.c:1596:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0, p = paths; p; p = p->next, i++)
                                                           ^
                                                            {
/datasets/git/combine-diff.c:1599:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < num_paths - 1; i++) {
                ^
/datasets/git/combine-diff.c:1612:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (opt->output_format & (DIFF_FORMAT_RAW |
                    ^~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1612:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (opt->output_format & (DIFF_FORMAT_RAW |
                                          ^
/datasets/git/./diff.h:99:26: note: expanded from macro 'DIFF_FORMAT_RAW'
#define DIFF_FORMAT_RAW         0x0001
                                ^
/datasets/git/combine-diff.c:1615:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (p = paths; p; p = p->next)
                        ^
/datasets/git/combine-diff.c:1615:20: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (p = paths; p; p = p->next)
                                        ^
/datasets/git/combine-diff.c:1615:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (p = paths; p; p = p->next)
                                                       ^
                                                        {
/datasets/git/combine-diff.c:1619:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                else if (opt->output_format & STAT_FORMAT_MASK)
                         ^~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1619:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                else if (opt->output_format & STAT_FORMAT_MASK)
                                              ^
/datasets/git/combine-diff.c:1373:27: note: expanded from macro 'STAT_FORMAT_MASK'
#define STAT_FORMAT_MASK (DIFF_FORMAT_NUMSTAT \
                          ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/./diff.h:101:29: note: expanded from macro 'DIFF_FORMAT_NUMSTAT'
#define DIFF_FORMAT_NUMSTAT     0x0004
                                ^
/datasets/git/combine-diff.c:1619:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (opt->output_format & STAT_FORMAT_MASK)
                                                               ^
                                                                {
/datasets/git/combine-diff.c:1621:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                else if (opt->output_format & DIFF_FORMAT_CALLBACK)
                         ^~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1621:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (opt->output_format & DIFF_FORMAT_CALLBACK)
                                                                   ^
                                                                    {
/datasets/git/combine-diff.c:1624:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (opt->output_format & DIFF_FORMAT_PATCH) {
                    ^~~~~~~~~~~~~~~~~~
/datasets/git/combine-diff.c:1625:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (needsep)
                                    ^
                                     {
/datasets/git/combine-diff.c:1628:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (p = paths; p; p = p->next)
                        ^
/datasets/git/combine-diff.c:1628:20: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (p = paths; p; p = p->next)
                                        ^
/datasets/git/combine-diff.c:1628:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (p = paths; p; p = p->next)
                                                       ^
                                                        {
/datasets/git/combine-diff.c:1634:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'paths' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (paths) {
               ^
/datasets/git/combine-diff.c:1637:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < num_parent; i++)
                ^
/datasets/git/combine-diff.c:1637:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'num_parent' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < num_parent; i++)
                            ^
/datasets/git/combine-diff.c:1637:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < num_parent; i++)
                                                ^
                                                 {
/datasets/git/combine-diff.c:1639:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            filename_changed(tmp->parent[i].status))
                                                                    ^
                                                                     {
/datasets/git/combine-diff.c:1653:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (parent) {
        ^
/datasets/git/combine-diff.c:1653:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'parent' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (parent) {
               ^
/datasets/git/commit-graph.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "alloc.h"
/datasets/git/commit-graph.c:27:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!git_env_bool(GIT_TEST_COMMIT_GRAPH, 0))
                                                    ^
                                                     {
/datasets/git/commit-graph.c:30:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (git_env_bool(GIT_TEST_COMMIT_GRAPH_CHANGED_PATHS, 0))
                                                                 ^
                                                                  {
/datasets/git/commit-graph.c:34:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                         flags, NULL))
                                                      ^
                                                       {
/datasets/git/commit-graph.c:38:1: warning: replace macro with enum [modernize-macro-to-enum]
#define GRAPH_SIGNATURE 0x43475048 /* "CGPH" */
^~~~~~~~
                        =         ,
/datasets/git/commit-graph.c:38:9: warning: macro 'GRAPH_SIGNATURE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define GRAPH_SIGNATURE 0x43475048 /* "CGPH" */
        ^
/datasets/git/commit-graph.c:39:9: warning: macro 'GRAPH_CHUNKID_OIDFANOUT' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define GRAPH_CHUNKID_OIDFANOUT 0x4f494446 /* "OIDF" */
        ^
/datasets/git/commit-graph.c:40:9: warning: macro 'GRAPH_CHUNKID_OIDLOOKUP' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define GRAPH_CHUNKID_OIDLOOKUP 0x4f49444c /* "OIDL" */
        ^
/datasets/git/commit-graph.c:41:9: warning: macro 'GRAPH_CHUNKID_DATA' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define GRAPH_CHUNKID_DATA 0x43444154 /* "CDAT" */
        ^
/datasets/git/commit-graph.c:42:9: warning: macro 'GRAPH_CHUNKID_GENERATION_DATA' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define GRAPH_CHUNKID_GENERATION_DATA 0x47444132 /* "GDA2" */
        ^
/datasets/git/commit-graph.c:43:9: warning: macro 'GRAPH_CHUNKID_GENERATION_DATA_OVERFLOW' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define GRAPH_CHUNKID_GENERATION_DATA_OVERFLOW 0x47444f32 /* "GDO2" */
        ^
/datasets/git/commit-graph.c:44:9: warning: macro 'GRAPH_CHUNKID_EXTRAEDGES' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define GRAPH_CHUNKID_EXTRAEDGES 0x45444745 /* "EDGE" */
        ^
/datasets/git/commit-graph.c:45:9: warning: macro 'GRAPH_CHUNKID_BLOOMINDEXES' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define GRAPH_CHUNKID_BLOOMINDEXES 0x42494458 /* "BIDX" */
        ^
/datasets/git/commit-graph.c:46:9: warning: macro 'GRAPH_CHUNKID_BLOOMDATA' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define GRAPH_CHUNKID_BLOOMDATA 0x42444154 /* "BDAT" */
        ^
/datasets/git/commit-graph.c:47:9: warning: macro 'GRAPH_CHUNKID_BASE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define GRAPH_CHUNKID_BASE 0x42415345 /* "BASE" */
        ^
/datasets/git/commit-graph.c:51:1: warning: replace macro with enum [modernize-macro-to-enum]
#define GRAPH_VERSION_1 0x1
^~~~~~~~
                        =
/datasets/git/commit-graph.c:51:9: warning: macro 'GRAPH_VERSION_1' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define GRAPH_VERSION_1 0x1
        ^
/datasets/git/commit-graph.c:54:1: warning: replace macro with enum [modernize-macro-to-enum]
#define GRAPH_EXTRA_EDGES_NEEDED 0x80000000
^~~~~~~~
                                 =         ,
/datasets/git/commit-graph.c:54:9: warning: macro 'GRAPH_EXTRA_EDGES_NEEDED' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define GRAPH_EXTRA_EDGES_NEEDED 0x80000000
        ^
/datasets/git/commit-graph.c:55:9: warning: macro 'GRAPH_EDGE_LAST_MASK' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define GRAPH_EDGE_LAST_MASK 0x7fffffff
        ^
/datasets/git/commit-graph.c:56:9: warning: macro 'GRAPH_PARENT_NONE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define GRAPH_PARENT_NONE 0x70000000
        ^
/datasets/git/commit-graph.c:58:1: warning: replace macro with enum [modernize-macro-to-enum]
#define GRAPH_LAST_EDGE 0x80000000
^~~~~~~~
                        =
/datasets/git/commit-graph.c:58:9: warning: macro 'GRAPH_LAST_EDGE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define GRAPH_LAST_EDGE 0x80000000
        ^
/datasets/git/commit-graph.c:60:1: warning: replace macro with enum [modernize-macro-to-enum]
#define GRAPH_HEADER_SIZE 8
^~~~~~~~
                          =,
/datasets/git/commit-graph.c:60:9: warning: macro 'GRAPH_HEADER_SIZE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define GRAPH_HEADER_SIZE 8
        ^
/datasets/git/commit-graph.c:61:9: warning: macro 'GRAPH_FANOUT_SIZE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define GRAPH_FANOUT_SIZE (4 * 256)
        ^
/datasets/git/commit-graph.c:68:1: warning: replace macro with enum [modernize-macro-to-enum]
#define REACHABLE       (1u<<15)
^~~~~~~~
                  =
/datasets/git/commit-graph.c:68:9: warning: macro 'REACHABLE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define REACHABLE       (1u<<15)
        ^
/datasets/git/commit-graph.c:70:1: warning: backward branch (for loop) is ID-dependent due to member reference to 'slab_size' and may cause performance degradation [altera-id-dependent-backward-branch]
define_commit_slab(topo_level_slab, uint32_t);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:48:15: note: expanded from macro 'implement_commit_slab'
                for (j = 0; j < s->slab_size; j++)                      \
                            ^
/datasets/git/commit-graph.c:70:1: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
define_commit_slab(topo_level_slab, uint32_t);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:68:27: note: expanded from macro 'implement_commit_slab'
                for (i = s->slab_count; i <= nth_slab; i++)             \
                                        ^
/datasets/git/commit-graph.c:70:1: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
define_commit_slab(topo_level_slab, uint32_t);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:35:2: note: expanded from macro 'implement_commit_slab'
        for (i = 0; i < s->slab_count; i++)                             \
        ^
/datasets/git/commit-graph.c:70:1: warning: result of multiplication in type 'unsigned int' is used as a pointer offset after an implicit widening conversion to type 'size_t' [bugprone-implicit-widening-of-multiplication-result]
define_commit_slab(topo_level_slab, uint32_t);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:49:13: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                 ^
/datasets/git/commit-graph.c:70:1: note: make conversion explicit to silence this warning
define_commit_slab(topo_level_slab, uint32_t);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:49:24: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                            ^~~~~~~~~~~~~
/datasets/git/commit-graph.c:70:1: note: perform multiplication in a wider type
define_commit_slab(topo_level_slab, uint32_t);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:49:24: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                            ^
/datasets/git/commit-graph.c:70:1: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(topo_level_slab, uint32_t);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:55:30: note: expanded from macro 'implement_commit_slab'
                                                  const struct commit *c, \
                                                                       ^
/datasets/git/commit-graph.c:70:1: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(topo_level_slab, uint32_t);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:14:61: note: expanded from macro 'implement_commit_slab'
scope void init_ ##slabname## _with_stride(struct slabname *s,          \
                                                            ^
/datasets/git/commit-graph.c:70:1: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(topo_level_slab, uint32_t);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:34:15: note: expanded from macro 'implement_commit_slab'
        unsigned int i;                                                 \
                     ^
/datasets/git/commit-graph.c:70:1: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(topo_level_slab, uint32_t);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:45:16: note: expanded from macro 'implement_commit_slab'
                unsigned int j;                                         \
                             ^
/datasets/git/commit-graph.c:70:1: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
define_commit_slab(topo_level_slab, uint32_t);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:58:2: note: expanded from macro 'implement_commit_slab'
        unsigned int nth_slab, nth_slot;                                \
        ^
/datasets/git/commit-graph.c:70:1: note: inferred assignment of ID-dependent value from ID-dependent member slab_count [altera-id-dependent-backward-branch]
define_commit_slab(topo_level_slab, uint32_t);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:64:3: note: expanded from macro 'implement_commit_slab'
                unsigned int i;                                         \
                ^
/datasets/git/commit-graph.c:70:20: warning: accessing fields in struct 'topo_level_slab' is inefficient due to padding; only needs 20 bytes but is using 24 bytes [altera-struct-pack-align]
define_commit_slab(topo_level_slab, uint32_t);
                   ^
/datasets/git/commit-graph.c:70:20: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'topo_level_slab'
/datasets/git/commit-graph.c:70:20: warning: accessing fields in struct 'topo_level_slab' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
define_commit_slab(topo_level_slab, uint32_t);
                   ^
/datasets/git/commit-graph.c:70:20: note: use "__attribute__((aligned(32)))" to align struct 'topo_level_slab' to 32 bytes
/datasets/git/commit-graph.c:73:1: warning: backward branch (for loop) is ID-dependent due to member reference to 'slab_size' and may cause performance degradation [altera-id-dependent-backward-branch]
define_commit_slab(commit_pos, int);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:48:15: note: expanded from macro 'implement_commit_slab'
                for (j = 0; j < s->slab_size; j++)                      \
                            ^
/datasets/git/commit-graph.c:73:1: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
define_commit_slab(commit_pos, int);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:68:27: note: expanded from macro 'implement_commit_slab'
                for (i = s->slab_count; i <= nth_slab; i++)             \
                                        ^
/datasets/git/commit-graph.c:73:1: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
define_commit_slab(commit_pos, int);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:35:2: note: expanded from macro 'implement_commit_slab'
        for (i = 0; i < s->slab_count; i++)                             \
        ^
/datasets/git/commit-graph.c:73:1: warning: result of multiplication in type 'unsigned int' is used as a pointer offset after an implicit widening conversion to type 'size_t' [bugprone-implicit-widening-of-multiplication-result]
define_commit_slab(commit_pos, int);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:49:13: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                 ^
/datasets/git/commit-graph.c:73:1: note: make conversion explicit to silence this warning
define_commit_slab(commit_pos, int);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:49:24: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                            ^~~~~~~~~~~~~
/datasets/git/commit-graph.c:73:1: note: perform multiplication in a wider type
define_commit_slab(commit_pos, int);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:49:24: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                            ^
/datasets/git/commit-graph.c:73:1: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(commit_pos, int);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:55:30: note: expanded from macro 'implement_commit_slab'
                                                  const struct commit *c, \
                                                                       ^
/datasets/git/commit-graph.c:73:1: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(commit_pos, int);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:14:61: note: expanded from macro 'implement_commit_slab'
scope void init_ ##slabname## _with_stride(struct slabname *s,          \
                                                            ^
/datasets/git/commit-graph.c:73:1: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(commit_pos, int);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:34:15: note: expanded from macro 'implement_commit_slab'
        unsigned int i;                                                 \
                     ^
/datasets/git/commit-graph.c:73:1: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(commit_pos, int);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:45:16: note: expanded from macro 'implement_commit_slab'
                unsigned int j;                                         \
                             ^
/datasets/git/commit-graph.c:73:1: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
define_commit_slab(commit_pos, int);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:58:2: note: expanded from macro 'implement_commit_slab'
        unsigned int nth_slab, nth_slot;                                \
        ^
/datasets/git/commit-graph.c:73:1: note: inferred assignment of ID-dependent value from ID-dependent member slab_count [altera-id-dependent-backward-branch]
define_commit_slab(commit_pos, int);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:64:3: note: expanded from macro 'implement_commit_slab'
                unsigned int i;                                         \
                ^
/datasets/git/commit-graph.c:73:20: warning: accessing fields in struct 'commit_pos' is inefficient due to padding; only needs 20 bytes but is using 24 bytes [altera-struct-pack-align]
define_commit_slab(commit_pos, int);
                   ^
/datasets/git/commit-graph.c:73:20: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'commit_pos'
/datasets/git/commit-graph.c:73:20: warning: accessing fields in struct 'commit_pos' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
define_commit_slab(commit_pos, int);
                   ^
/datasets/git/commit-graph.c:73:20: note: use "__attribute__((aligned(32)))" to align struct 'commit_pos' to 32 bytes
/datasets/git/commit-graph.c:74:26: warning: variable 'commit_pos' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct commit_pos commit_pos = COMMIT_SLAB_INIT(1, commit_pos);
                         ^
/datasets/git/commit-graph.c:76:47: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void set_commit_pos(struct repository *r, const struct object_id *oid)
                                              ^
/datasets/git/commit-graph.c:81:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!commit)
                    ^
                     {
/datasets/git/commit-graph.c:87:39: warning: parameter name 'va' is too short, expected at least 3 characters [readability-identifier-length]
static int commit_pos_cmp(const void *va, const void *vb)
                                      ^
/datasets/git/commit-graph.c:87:55: warning: parameter name 'vb' is too short, expected at least 3 characters [readability-identifier-length]
static int commit_pos_cmp(const void *va, const void *vb)
                                                      ^
/datasets/git/commit-graph.c:89:23: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        const struct commit *a = *(const struct commit **)va;
                             ^
/datasets/git/commit-graph.c:90:23: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        const struct commit *b = *(const struct commit **)vb;
                             ^
/datasets/git/commit-graph.c:91:9: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return commit_pos_at(&commit_pos, a) -
               ^
/datasets/git/commit-graph.c:95:1: warning: backward branch (for loop) is ID-dependent due to member reference to 'slab_size' and may cause performance degradation [altera-id-dependent-backward-branch]
define_commit_slab(commit_graph_data_slab, struct commit_graph_data);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:48:15: note: expanded from macro 'implement_commit_slab'
                for (j = 0; j < s->slab_size; j++)                      \
                            ^
/datasets/git/commit-graph.c:95:1: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
define_commit_slab(commit_graph_data_slab, struct commit_graph_data);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:68:27: note: expanded from macro 'implement_commit_slab'
                for (i = s->slab_count; i <= nth_slab; i++)             \
                                        ^
/datasets/git/commit-graph.c:95:1: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
define_commit_slab(commit_graph_data_slab, struct commit_graph_data);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:35:2: note: expanded from macro 'implement_commit_slab'
        for (i = 0; i < s->slab_count; i++)                             \
        ^
/datasets/git/commit-graph.c:95:1: warning: result of multiplication in type 'unsigned int' is used as a pointer offset after an implicit widening conversion to type 'size_t' [bugprone-implicit-widening-of-multiplication-result]
define_commit_slab(commit_graph_data_slab, struct commit_graph_data);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:49:13: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                 ^
/datasets/git/commit-graph.c:95:1: note: make conversion explicit to silence this warning
define_commit_slab(commit_graph_data_slab, struct commit_graph_data);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:49:24: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                            ^~~~~~~~~~~~~
/datasets/git/commit-graph.c:95:1: note: perform multiplication in a wider type
define_commit_slab(commit_graph_data_slab, struct commit_graph_data);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:49:24: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                            ^
/datasets/git/commit-graph.c:95:1: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
define_commit_slab(commit_graph_data_slab, struct commit_graph_data);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:67:3: note: expanded from macro 'implement_commit_slab'
                REALLOC_ARRAY(s->slab, nth_slab + 1);                   \
                ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/commit-graph.c:95:1: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(commit_graph_data_slab, struct commit_graph_data);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:55:30: note: expanded from macro 'implement_commit_slab'
                                                  const struct commit *c, \
                                                                       ^
/datasets/git/commit-graph.c:95:1: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(commit_graph_data_slab, struct commit_graph_data);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:14:61: note: expanded from macro 'implement_commit_slab'
scope void init_ ##slabname## _with_stride(struct slabname *s,          \
                                                            ^
/datasets/git/commit-graph.c:95:1: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(commit_graph_data_slab, struct commit_graph_data);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:34:15: note: expanded from macro 'implement_commit_slab'
        unsigned int i;                                                 \
                     ^
/datasets/git/commit-graph.c:95:1: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(commit_graph_data_slab, struct commit_graph_data);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:45:16: note: expanded from macro 'implement_commit_slab'
                unsigned int j;                                         \
                             ^
/datasets/git/commit-graph.c:95:1: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
define_commit_slab(commit_graph_data_slab, struct commit_graph_data);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:58:2: note: expanded from macro 'implement_commit_slab'
        unsigned int nth_slab, nth_slot;                                \
        ^
/datasets/git/commit-graph.c:95:1: note: inferred assignment of ID-dependent value from ID-dependent member slab_count [altera-id-dependent-backward-branch]
define_commit_slab(commit_graph_data_slab, struct commit_graph_data);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:64:3: note: expanded from macro 'implement_commit_slab'
                unsigned int i;                                         \
                ^
/datasets/git/commit-graph.c:95:20: warning: accessing fields in struct 'commit_graph_data_slab' is inefficient due to padding; only needs 20 bytes but is using 24 bytes [altera-struct-pack-align]
define_commit_slab(commit_graph_data_slab, struct commit_graph_data);
                   ^
/datasets/git/commit-graph.c:95:20: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'commit_graph_data_slab'
/datasets/git/commit-graph.c:95:20: warning: accessing fields in struct 'commit_graph_data_slab' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
define_commit_slab(commit_graph_data_slab, struct commit_graph_data);
                   ^
/datasets/git/commit-graph.c:95:20: note: use "__attribute__((aligned(32)))" to align struct 'commit_graph_data_slab' to 32 bytes
/datasets/git/commit-graph.c:96:38: warning: variable 'commit_graph_data_slab' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct commit_graph_data_slab commit_graph_data_slab =
                                     ^
/datasets/git/commit-graph.c:99:65: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int get_configured_generation_version(struct repository *r)
                                                                ^
/datasets/git/commit-graph.c:106:53: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
uint32_t commit_graph_position(const struct commit *c)
                                                    ^
/datasets/git/commit-graph.c:114:58: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
timestamp_t commit_graph_generation(const struct commit *c)
                                                         ^
/datasets/git/commit-graph.c:119:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!data)
                  ^
                   {
/datasets/git/commit-graph.c:120:3: warning: repeated branch in conditional chain [bugprone-branch-clone]
                return GENERATION_NUMBER_INFINITY;
                ^
/datasets/git/commit-graph.c:120:36: note: end of the original
                return GENERATION_NUMBER_INFINITY;
                                                 ^
/datasets/git/commit-graph.c:122:3: note: clone 1 starts here
                return GENERATION_NUMBER_INFINITY;
                ^
/datasets/git/commit-graph.c:120:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                return GENERATION_NUMBER_INFINITY;
                       ^
/datasets/git/./negotiator/../commit.h:14:38: note: expanded from macro 'GENERATION_NUMBER_INFINITY'
#define GENERATION_NUMBER_INFINITY ((1ULL << 63) - 1)
                                     ^       ~~
/datasets/git/commit-graph.c:121:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (data->graph_pos == COMMIT_NOT_FROM_GRAPH)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-graph.c:121:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (data->graph_pos == COMMIT_NOT_FROM_GRAPH)
                                                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit-graph.c:122:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                return GENERATION_NUMBER_INFINITY;
                       ^
/datasets/git/./negotiator/../commit.h:14:38: note: expanded from macro 'GENERATION_NUMBER_INFINITY'
#define GENERATION_NUMBER_INFINITY ((1ULL << 63) - 1)
                                     ^       ~~
/datasets/git/commit-graph.c:127:76: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static struct commit_graph_data *commit_graph_data_at(const struct commit *c)
                                                                           ^
/datasets/git/commit-graph.c:129:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned int i, nth_slab;
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-graph.c:129:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i, nth_slab;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit-graph.c:129:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit-graph.c:129:18: warning: variable 'nth_slab' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i, nth_slab;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit-graph.c:133:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (data)
                 ^
                  {
/datasets/git/commit-graph.c:146:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < commit_graph_data_slab.slab_size; i++) {
        ^
/datasets/git/commit-graph.c:146:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'slab_size' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < commit_graph_data_slab.slab_size; i++) {
                    ^
/datasets/git/commit-graph.c:158:39: warning: parameter name 'va' is too short, expected at least 3 characters [readability-identifier-length]
static int commit_gen_cmp(const void *va, const void *vb)
                                      ^
/datasets/git/commit-graph.c:158:55: warning: parameter name 'vb' is too short, expected at least 3 characters [readability-identifier-length]
static int commit_gen_cmp(const void *va, const void *vb)
                                                      ^
/datasets/git/commit-graph.c:160:23: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        const struct commit *a = *(const struct commit **)va;
                             ^
/datasets/git/commit-graph.c:161:23: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        const struct commit *b = *(const struct commit **)vb;
                             ^
/datasets/git/commit-graph.c:166:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (generation_a < generation_b)
                                        ^
                                         {
/datasets/git/commit-graph.c:168:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (generation_a > generation_b)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-graph.c:168:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (generation_a > generation_b)
                                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit-graph.c:172:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (a->date < b->date)
                              ^
                               {
/datasets/git/commit-graph.c:174:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (a->date > b->date)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-graph.c:174:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (a->date > b->date)
                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit-graph.c:198:23: warning: variable name 'g' is too short, expected at least 3 characters [readability-identifier-length]
        struct commit_graph *g = xcalloc(1, sizeof(*g));
                             ^
/datasets/git/commit-graph.c:203:12: warning: variable 'read_replace_refs' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
extern int read_replace_refs;
           ^
/datasets/git/commit-graph.c:203:12: warning: redundant 'read_replace_refs' declaration [readability-redundant-declaration]
extern int read_replace_refs;
~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/datasets/git/./refs/../cache.h:994:12: note: previously declared here
extern int read_replace_refs;
           ^
/datasets/git/commit-graph.c:205:55: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int commit_graph_compatible(struct repository *r)
                                                      ^
/datasets/git/commit-graph.c:207:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!r->gitdir)
                       ^
                        {
/datasets/git/commit-graph.c:212:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (hashmap_get_size(&r->objects->replace_map->map))
                                                                    ^
                                                                     {
/datasets/git/commit-graph.c:218:78: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            (r->parsed_objects->grafts_nr || r->parsed_objects->substituted_parent))
                                                                                    ^
                                                                                     {
/datasets/git/commit-graph.c:220:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_repository_shallow(r))
                                     ^
                                      {
/datasets/git/commit-graph.c:226:52: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
int open_commit_graph(const char *graph_file, int *fd, struct stat *st)
                                                   ^
/datasets/git/commit-graph.c:226:69: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
int open_commit_graph(const char *graph_file, int *fd, struct stat *st)
                                                                    ^
/datasets/git/commit-graph.c:229:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*fd < 0)
                    ^
                     {
/datasets/git/commit-graph.c:238:69: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
struct commit_graph *load_commit_graph_one_fd_st(struct repository *r,
                                                                    ^
/datasets/git/commit-graph.c:239:12: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
                                                 int fd, struct stat *st,
                                                     ^
/datasets/git/commit-graph.c:239:29: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                                                 int fd, struct stat *st,
                                                                      ^
/datasets/git/commit-graph.c:242:8: warning: variable 'graph_map' is not initialized [cppcoreguidelines-init-variables]
        void *graph_map;
              ^
                        = NULL
/datasets/git/commit-graph.c:243:9: warning: variable 'graph_size' is not initialized [cppcoreguidelines-init-variables]
        size_t graph_size;
               ^
                          = 0
/datasets/git/commit-graph.c:244:23: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        struct commit_graph *ret;
                             ^
                                 = NULL
/datasets/git/commit-graph.c:248:19: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        if (graph_size < GRAPH_MIN_SIZE) {
                         ^
/datasets/git/commit-graph.c:63:6: note: expanded from macro 'GRAPH_MIN_SIZE'
                        + GRAPH_FANOUT_SIZE + the_hash_algo->rawsz)
                          ^
/datasets/git/commit-graph.c:61:28: note: expanded from macro 'GRAPH_FANOUT_SIZE'
#define GRAPH_FANOUT_SIZE (4 * 256)
                           ^
/datasets/git/commit-graph.c:248:19: note: make conversion explicit to silence this warning
        if (graph_size < GRAPH_MIN_SIZE) {
                         ^
/datasets/git/commit-graph.c:63:6: note: expanded from macro 'GRAPH_MIN_SIZE'
                        + GRAPH_FANOUT_SIZE + the_hash_algo->rawsz)
                          ^~~~~~~~~~~~~~~~~
/datasets/git/commit-graph.c:61:28: note: expanded from macro 'GRAPH_FANOUT_SIZE'
#define GRAPH_FANOUT_SIZE (4 * 256)
                           ^~~~~~~
/datasets/git/commit-graph.c:248:19: note: perform multiplication in a wider type
        if (graph_size < GRAPH_MIN_SIZE) {
                         ^
/datasets/git/commit-graph.c:63:6: note: expanded from macro 'GRAPH_MIN_SIZE'
                        + GRAPH_FANOUT_SIZE + the_hash_algo->rawsz)
                          ^~~~~~~~~~~~~~~~~
/datasets/git/commit-graph.c:61:28: note: expanded from macro 'GRAPH_FANOUT_SIZE'
#define GRAPH_FANOUT_SIZE (4 * 256)
                           ^
/datasets/git/commit-graph.c:258:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/commit-graph.c:260:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/commit-graph.c:266:58: warning: parameter name 'g' is too short, expected at least 3 characters [readability-identifier-length]
static int verify_commit_graph_lite(struct commit_graph *g)
                                                         ^
/datasets/git/commit-graph.c:299:23: warning: variable name 'g' is too short, expected at least 3 characters [readability-identifier-length]
        struct commit_graph *g = data;
                             ^
/datasets/git/commit-graph.c:306:14: warning: parameter 'chunk_size' is unused [misc-unused-parameters]
                                  size_t chunk_size, void *data)
                                         ^
/datasets/git/commit-graph.c:308:23: warning: variable name 'g' is too short, expected at least 3 characters [readability-identifier-length]
        struct commit_graph *g = data;
                             ^
/datasets/git/commit-graph.c:309:11: warning: variable 'hash_version' is not initialized [cppcoreguidelines-init-variables]
        uint32_t hash_version;
                 ^
                              = 0
/datasets/git/commit-graph.c:313:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (hash_version != 1)
                              ^
                               {
/datasets/git/commit-graph.c:319:68: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        g->bloom_filter_settings->bits_per_entry = get_be32(chunk_start + 8);
                                                                          ^
/datasets/git/commit-graph.c:325:63: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
struct commit_graph *parse_commit_graph(struct repo_settings *s,
                                                              ^
/datasets/git/commit-graph.c:328:23: warning: variable 'data' is not initialized [cppcoreguidelines-init-variables]
        const unsigned char *data;
                             ^
                                  = NULL
/datasets/git/commit-graph.c:329:23: warning: variable 'graph' is not initialized [cppcoreguidelines-init-variables]
        struct commit_graph *graph;
                             ^
                                   = NULL
/datasets/git/commit-graph.c:330:11: warning: variable 'graph_signature' is not initialized [cppcoreguidelines-init-variables]
        uint32_t graph_signature;
                 ^
                                 = 0
/datasets/git/commit-graph.c:331:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned char graph_version, hash_version;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-graph.c:331:16: warning: variable 'graph_version' is not initialized [cppcoreguidelines-init-variables]
        unsigned char graph_version, hash_version;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit-graph.c:331:31: warning: variable 'hash_version' is not initialized [cppcoreguidelines-init-variables]
        unsigned char graph_version, hash_version;
                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit-graph.c:332:20: warning: variable name 'cf' is too short, expected at least 3 characters [readability-identifier-length]
        struct chunkfile *cf = NULL;
                          ^
/datasets/git/commit-graph.c:334:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!graph_map)
                       ^
                        {
/datasets/git/commit-graph.c:337:19: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        if (graph_size < GRAPH_MIN_SIZE)
                         ^
/datasets/git/commit-graph.c:63:6: note: expanded from macro 'GRAPH_MIN_SIZE'
                        + GRAPH_FANOUT_SIZE + the_hash_algo->rawsz)
                          ^
/datasets/git/commit-graph.c:61:28: note: expanded from macro 'GRAPH_FANOUT_SIZE'
#define GRAPH_FANOUT_SIZE (4 * 256)
                           ^
/datasets/git/commit-graph.c:337:19: note: make conversion explicit to silence this warning
        if (graph_size < GRAPH_MIN_SIZE)
                         ^
/datasets/git/commit-graph.c:63:6: note: expanded from macro 'GRAPH_MIN_SIZE'
                        + GRAPH_FANOUT_SIZE + the_hash_algo->rawsz)
                          ^~~~~~~~~~~~~~~~~
/datasets/git/commit-graph.c:61:28: note: expanded from macro 'GRAPH_FANOUT_SIZE'
#define GRAPH_FANOUT_SIZE (4 * 256)
                           ^~~~~~~
/datasets/git/commit-graph.c:337:19: note: perform multiplication in a wider type
        if (graph_size < GRAPH_MIN_SIZE)
                         ^
/datasets/git/commit-graph.c:63:6: note: expanded from macro 'GRAPH_MIN_SIZE'
                        + GRAPH_FANOUT_SIZE + the_hash_algo->rawsz)
                          ^~~~~~~~~~~~~~~~~
/datasets/git/commit-graph.c:61:28: note: expanded from macro 'GRAPH_FANOUT_SIZE'
#define GRAPH_FANOUT_SIZE (4 * 256)
                           ^
/datasets/git/commit-graph.c:337:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (graph_size < GRAPH_MIN_SIZE)
                                        ^
                                         {
/datasets/git/commit-graph.c:356:42: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        hash_version = *(unsigned char*)(data + 5);
                                                ^
/datasets/git/commit-graph.c:366:47: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        graph->num_chunks = *(unsigned char*)(data + 6);
                                                     ^
/datasets/git/commit-graph.c:372:5: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                         GRAPH_FANOUT_SIZE + the_hash_algo->rawsz) {
                         ^
/datasets/git/commit-graph.c:61:28: note: expanded from macro 'GRAPH_FANOUT_SIZE'
#define GRAPH_FANOUT_SIZE (4 * 256)
                           ^
/datasets/git/commit-graph.c:372:5: note: make conversion explicit to silence this warning
                         GRAPH_FANOUT_SIZE + the_hash_algo->rawsz) {
                         ^
/datasets/git/commit-graph.c:61:28: note: expanded from macro 'GRAPH_FANOUT_SIZE'
#define GRAPH_FANOUT_SIZE (4 * 256)
                           ^~~~~~~
/datasets/git/commit-graph.c:372:5: note: perform multiplication in a wider type
                         GRAPH_FANOUT_SIZE + the_hash_algo->rawsz) {
                         ^
/datasets/git/commit-graph.c:61:28: note: expanded from macro 'GRAPH_FANOUT_SIZE'
#define GRAPH_FANOUT_SIZE (4 * 256)
                           ^
/datasets/git/commit-graph.c:382:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                   GRAPH_HEADER_SIZE, graph->num_chunks))
                                                                         ^
                                                                          {
/datasets/git/commit-graph.c:398:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (graph->chunk_generation_data)
                                                 ^
                                                  {
/datasets/git/commit-graph.c:415:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FREE_AND_NULL(graph->bloom_filter_settings);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/commit-graph.c:420:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (verify_commit_graph_lite(graph))
                                            ^
                                             {
/datasets/git/commit-graph.c:433:70: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static struct commit_graph *load_commit_graph_one(struct repository *r,
                                                                     ^
/datasets/git/commit-graph.c:438:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/commit-graph.c:439:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/commit-graph.c:439:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit-graph.c:440:23: warning: variable 'g' is not initialized [cppcoreguidelines-init-variables]
        struct commit_graph *g;
                             ^
                               = NULL
/datasets/git/commit-graph.c:440:23: warning: variable name 'g' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit-graph.c:443:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!open_ok)
                     ^
                      {
/datasets/git/commit-graph.c:448:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (g)
              ^
               {
/datasets/git/commit-graph.c:454:69: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static struct commit_graph *load_commit_graph_v1(struct repository *r,
                                                                    ^
/datasets/git/commit-graph.c:458:23: warning: variable name 'g' is too short, expected at least 3 characters [readability-identifier-length]
        struct commit_graph *g = load_commit_graph_one(r, graph_name, odb);
                             ^
/datasets/git/commit-graph.c:464:52: warning: parameter name 'g' is too short, expected at least 3 characters [readability-identifier-length]
static int add_graph_to_chain(struct commit_graph *g,
                                                   ^
/datasets/git/commit-graph.c:476:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (n) {
        ^
/datasets/git/commit-graph.c:481:29: warning: result of multiplication in type 'int' is used as a pointer offset after an implicit widening conversion to type 'ptrdiff_t' [bugprone-implicit-widening-of-multiplication-result]
                    !hasheq(oids[n].hash, g->chunk_base_graphs + g->hash_len * n)) {
                                          ^
/datasets/git/commit-graph.c:481:52: note: make conversion explicit to silence this warning
                    !hasheq(oids[n].hash, g->chunk_base_graphs + g->hash_len * n)) {
                                                                 ^~~~~~~~~~~~~~~
                                                                 (ptrdiff_t)(  )
/datasets/git/commit-graph.c:481:52: note: perform multiplication in a wider type
                    !hasheq(oids[n].hash, g->chunk_base_graphs + g->hash_len * n)) {
                                                                 ^~~~~~~~~~~
                                                                 (ptrdiff_t)
/datasets/git/commit-graph.c:491:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (chain)
                  ^
                   {
/datasets/git/commit-graph.c:497:72: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static struct commit_graph *load_commit_graph_chain(struct repository *r,
                                                                       ^
/datasets/git/commit-graph.c:502:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/commit-graph.c:503:20: warning: variable 'oids' is not initialized [cppcoreguidelines-init-variables]
        struct object_id *oids;
                          ^
                               = NULL
/datasets/git/commit-graph.c:504:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i = 0, valid = 1, count;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-graph.c:504:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0, valid = 1, count;
            ^
/datasets/git/commit-graph.c:504:24: warning: variable 'count' is not initialized [cppcoreguidelines-init-variables]
        int i = 0, valid = 1, count;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit-graph.c:506:8: warning: variable 'fp' is not initialized [cppcoreguidelines-init-variables]
        FILE *fp;
              ^
                 = NULL
/datasets/git/commit-graph.c:506:8: warning: variable name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit-graph.c:507:6: warning: variable 'stat_res' is not initialized [cppcoreguidelines-init-variables]
        int stat_res;
            ^
                     = 0
/datasets/git/commit-graph.c:513:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!fp)
                ^
                 {
/datasets/git/commit-graph.c:517:3: warning: the value returned by this function should be used [cert-err33-c]
                fclose(fp);
                ^~~~~~~~~~
/datasets/git/commit-graph.c:517:3: note: cast the expression to void to silence this warning
/datasets/git/commit-graph.c:521:10: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        count = st.st_size / (the_hash_algo->hexsz + 1);
                ^
/datasets/git/commit-graph.c:526:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'count' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < count; i++) {
                    ^
/datasets/git/commit-graph.c:527:28: warning: variable 'odb' is not initialized [cppcoreguidelines-init-variables]
                struct object_directory *odb;
                                         ^
                                             = NULL
/datasets/git/commit-graph.c:529:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strbuf_getline_lf(&line, fp) == EOF)
                                                        ^
                                                         {
/datasets/git/commit-graph.c:535:4: warning: Value stored to 'valid' is never read [clang-analyzer-deadcode.DeadStores]
                        valid = 0;
                        ^       ~
/datasets/git/commit-graph.c:535:4: note: Value stored to 'valid' is never read
                        valid = 0;
                        ^       ~
/datasets/git/commit-graph.c:540:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (odb = r->objects->odb; odb; odb = odb->next) {
                ^
/datasets/git/commit-graph.c:540:31: warning: backward branch (for loop) is ID-dependent due to variable reference to 'odb' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (odb = r->objects->odb; odb; odb = odb->next) {
                                            ^
/datasets/git/commit-graph.c:542:25: warning: variable name 'g' is too short, expected at least 3 characters [readability-identifier-length]
                        struct commit_graph *g = load_commit_graph_one(r, graph_name, odb);
                                             ^
/datasets/git/commit-graph.c:563:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(fp);
        ^~~~~~~~~~
/datasets/git/commit-graph.c:563:2: note: cast the expression to void to silence this warning
/datasets/git/commit-graph.c:573:65: warning: parameter name 'g' is too short, expected at least 3 characters [readability-identifier-length]
static int validate_mixed_generation_chain(struct commit_graph *g)
                                                                ^
/datasets/git/commit-graph.c:575:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int read_generation_data = 1;
        ^
/datasets/git/commit-graph.c:576:23: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        struct commit_graph *p = g;
                             ^
/datasets/git/commit-graph.c:578:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (read_generation_data && p) {
        ^
/datasets/git/commit-graph.c:578:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'read_generation_data' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (read_generation_data && p) {
               ^
/datasets/git/commit-graph.c:579:26: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                read_generation_data = p->read_generation_data;
                                       ^
/datasets/git/commit-graph.c:583:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (read_generation_data)
                                 ^
                                  {
/datasets/git/commit-graph.c:586:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (g) {
        ^
/datasets/git/commit-graph.c:586:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'g' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (g) {
               ^
/datasets/git/commit-graph.c:594:63: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
struct commit_graph *read_commit_graph_one(struct repository *r,
                                                              ^
/datasets/git/commit-graph.c:597:23: warning: variable name 'g' is too short, expected at least 3 characters [readability-identifier-length]
        struct commit_graph *g = load_commit_graph_v1(r, odb);
                             ^
/datasets/git/commit-graph.c:599:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!g)
               ^
                {
/datasets/git/commit-graph.c:607:57: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void prepare_commit_graph_one(struct repository *r,
                                                        ^
/datasets/git/commit-graph.c:611:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (r->objects->commit_graph)
                                     ^
                                      {
/datasets/git/commit-graph.c:623:52: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int prepare_commit_graph(struct repository *r)
                                                   ^
/datasets/git/commit-graph.c:625:27: warning: variable 'odb' is not initialized [cppcoreguidelines-init-variables]
        struct object_directory *odb;
                                 ^
                                     = NULL
/datasets/git/commit-graph.c:634:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!r->gitdir || r->commit_graph_disabled)
                                                   ^
                                                    {
/datasets/git/commit-graph.c:637:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (r->objects->commit_graph_attempted)
                                               ^
                                                {
/datasets/git/commit-graph.c:644:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            r->settings.core_commit_graph != 1)
                                               ^
                                                {
/datasets/git/commit-graph.c:653:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!commit_graph_compatible(r))
                                        ^
                                         {
/datasets/git/commit-graph.c:657:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (odb = r->objects->odb;
        ^
/datasets/git/commit-graph.c:658:7: warning: backward branch (for loop) is ID-dependent due to variable reference to 'odb' and may cause performance degradation [altera-id-dependent-backward-branch]
             !r->objects->commit_graph && odb;
             ^
/datasets/git/commit-graph.c:659:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
             odb = odb->next)
                             ^
                              {
/datasets/git/commit-graph.c:664:51: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int generation_numbers_enabled(struct repository *r)
                                                  ^
/datasets/git/commit-graph.c:666:11: warning: variable 'first_generation' is not initialized [cppcoreguidelines-init-variables]
        uint32_t first_generation;
                 ^
                                  = 0
/datasets/git/commit-graph.c:667:23: warning: variable 'g' is not initialized [cppcoreguidelines-init-variables]
        struct commit_graph *g;
                             ^
                               = NULL
/datasets/git/commit-graph.c:667:23: warning: variable name 'g' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit-graph.c:668:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!prepare_commit_graph(r))
                                     ^
                                      {
/datasets/git/commit-graph.c:673:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!g->num_commits)
                            ^
                             {
/datasets/git/commit-graph.c:676:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        first_generation = get_be32(g->chunk_commit_data +
                           ^
/datasets/git/commit-graph.c:677:23: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                    g->hash_len + 8) >> 2;
                                                  ^
/datasets/git/commit-graph.c:682:55: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int corrected_commit_dates_enabled(struct repository *r)
                                                      ^
/datasets/git/commit-graph.c:684:23: warning: variable 'g' is not initialized [cppcoreguidelines-init-variables]
        struct commit_graph *g;
                             ^
                               = NULL
/datasets/git/commit-graph.c:684:23: warning: variable name 'g' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit-graph.c:685:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!prepare_commit_graph(r))
                                     ^
                                      {
/datasets/git/commit-graph.c:690:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!g->num_commits)
                            ^
                             {
/datasets/git/commit-graph.c:693:9: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return g->read_generation_data;
               ^
/datasets/git/commit-graph.c:696:76: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
struct bloom_filter_settings *get_bloom_filter_settings(struct repository *r)
                                                                           ^
/datasets/git/commit-graph.c:698:2: note: inferred assignment of ID-dependent value from ID-dependent member commit_graph [altera-id-dependent-backward-branch]
        struct commit_graph *g = r->objects->commit_graph;
        ^
/datasets/git/commit-graph.c:698:23: warning: variable name 'g' is too short, expected at least 3 characters [readability-identifier-length]
        struct commit_graph *g = r->objects->commit_graph;
                             ^
/datasets/git/commit-graph.c:699:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (g) {
        ^
/datasets/git/commit-graph.c:699:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'g' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (g) {
               ^
/datasets/git/commit-graph.c:700:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (g->bloom_filter_settings)
                                             ^
                                              {
/datasets/git/commit-graph.c:707:13: warning: function 'close_commit_graph_one' is within a recursive call chain [misc-no-recursion]
static void close_commit_graph_one(struct commit_graph *g)
            ^
/datasets/git/commit-graph.c:707:13: note: example recursive call chain, starting from function 'close_commit_graph_one'
/datasets/git/commit-graph.c:713:2: note: Frame #1: function 'close_commit_graph_one' calls function 'close_commit_graph_one' here:
        close_commit_graph_one(g->base_graph);
        ^
/datasets/git/commit-graph.c:713:2: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/commit-graph.c:707:57: warning: parameter name 'g' is too short, expected at least 3 characters [readability-identifier-length]
static void close_commit_graph_one(struct commit_graph *g)
                                                        ^
/datasets/git/commit-graph.c:709:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!g)
               ^
                {
/datasets/git/commit-graph.c:717:50: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
void close_commit_graph(struct raw_object_store *o)
                                                 ^
/datasets/git/commit-graph.c:723:47: warning: parameter name 'g' is too short, expected at least 3 characters [readability-identifier-length]
static int bsearch_graph(struct commit_graph *g, const struct object_id *oid, uint32_t *pos)
                                              ^
/datasets/git/commit-graph.c:729:54: warning: parameter name 'g' is too short, expected at least 3 characters [readability-identifier-length]
static void load_oid_from_graph(struct commit_graph *g,
                                                     ^
/datasets/git/commit-graph.c:733:11: warning: variable 'lex_index' is not initialized [cppcoreguidelines-init-variables]
        uint32_t lex_index;
                 ^
                           = 0
/datasets/git/commit-graph.c:735:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (g && pos < g->num_commits_in_base)
        ^
/datasets/git/commit-graph.c:735:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'g' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (g && pos < g->num_commits_in_base)
               ^
/datasets/git/commit-graph.c:735:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (g && pos < g->num_commits_in_base)
                                                 ^
                                                  {
/datasets/git/commit-graph.c:738:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!g)
               ^
                {
/datasets/git/commit-graph.c:741:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pos >= g->num_commits + g->num_commits_in_base)
                                                           ^
                                                            {
/datasets/git/commit-graph.c:746:15: warning: result of multiplication in type 'unsigned int' is used as a pointer offset after an implicit widening conversion to type 'size_t' [bugprone-implicit-widening-of-multiplication-result]
        oidread(oid, g->chunk_oid_lookup + g->hash_len * lex_index);
                     ^
/datasets/git/commit-graph.c:746:37: note: make conversion explicit to silence this warning
        oidread(oid, g->chunk_oid_lookup + g->hash_len * lex_index);
                                           ^~~~~~~~~~~~~~~~~~~~~~~
                                           (size_t)(     )
/datasets/git/commit-graph.c:746:37: note: perform multiplication in a wider type
        oidread(oid, g->chunk_oid_lookup + g->hash_len * lex_index);
                                           ^~~~~~~~~~~
                                           (size_t)
/datasets/git/commit-graph.c:749:69: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static struct commit_list **insert_parent_or_die(struct repository *r,
                                                                    ^
/datasets/git/commit-graph.c:750:29: warning: parameter name 'g' is too short, expected at least 3 characters [readability-identifier-length]
                                                 struct commit_graph *g,
                                                                      ^
/datasets/git/commit-graph.c:754:17: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        struct commit *c;
                       ^
                         = NULL
/datasets/git/commit-graph.c:754:17: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit-graph.c:757:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pos >= g->num_commits + g->num_commits_in_base)
                                                           ^
                                                            {
/datasets/git/commit-graph.c:762:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!c)
               ^
                {
/datasets/git/commit-graph.c:768:78: warning: parameter name 'g' is too short, expected at least 3 characters [readability-identifier-length]
static void fill_commit_graph_info(struct commit *item, struct commit_graph *g, uint32_t pos)
                                                                             ^
/datasets/git/commit-graph.c:770:23: warning: variable 'commit_data' is not initialized [cppcoreguidelines-init-variables]
        const unsigned char *commit_data;
                             ^
                                         = NULL
/datasets/git/commit-graph.c:771:28: warning: variable 'graph_data' is not initialized [cppcoreguidelines-init-variables]
        struct commit_graph_data *graph_data;
                                  ^
                                             = NULL
/datasets/git/commit-graph.c:772:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        uint32_t lex_index, offset_pos;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-graph.c:772:11: warning: variable 'lex_index' is not initialized [cppcoreguidelines-init-variables]
        uint32_t lex_index, offset_pos;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit-graph.c:772:22: warning: variable 'offset_pos' is not initialized [cppcoreguidelines-init-variables]
        uint32_t lex_index, offset_pos;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit-graph.c:773:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        uint64_t date_high, date_low, offset;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-graph.c:773:11: warning: variable 'date_high' is not initialized [cppcoreguidelines-init-variables]
        uint64_t date_high, date_low, offset;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit-graph.c:773:22: warning: variable 'date_low' is not initialized [cppcoreguidelines-init-variables]
        uint64_t date_high, date_low, offset;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit-graph.c:773:32: warning: variable 'offset' is not initialized [cppcoreguidelines-init-variables]
        uint64_t date_high, date_low, offset;
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit-graph.c:775:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (pos < g->num_commits_in_base)
        ^
/datasets/git/commit-graph.c:775:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'g' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (pos < g->num_commits_in_base)
               ^
/datasets/git/commit-graph.c:775:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (pos < g->num_commits_in_base)
                                            ^
                                             {
/datasets/git/commit-graph.c:778:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pos >= g->num_commits + g->num_commits_in_base)
                                                           ^
                                                            {
/datasets/git/commit-graph.c:787:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        date_high = get_be32(commit_data + g->hash_len + 8) & 0x3;
                    ^                                         ~~~
/datasets/git/commit-graph.c:787:51: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        date_high = get_be32(commit_data + g->hash_len + 8) & 0x3;
                                                         ^
/datasets/git/commit-graph.c:788:50: warning: 12 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        date_low = get_be32(commit_data + g->hash_len + 12);
                                                        ^
/datasets/git/commit-graph.c:789:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        item->date = (timestamp_t)((date_high << 32) | date_low);
                                    ^            ~~
/datasets/git/commit-graph.c:789:43: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        item->date = (timestamp_t)((date_high << 32) | date_low);
                                                 ^
/datasets/git/commit-graph.c:794:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (offset & CORRECTED_COMMIT_DATE_OFFSET_OVERFLOW) {
                             ^
/datasets/git/commit-graph.c:65:48: note: expanded from macro 'CORRECTED_COMMIT_DATE_OFFSET_OVERFLOW'
#define CORRECTED_COMMIT_DATE_OFFSET_OVERFLOW (1ULL << 31)
                                               ^       ~~
/datasets/git/commit-graph.c:795:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!g->chunk_generation_data_overflow)
                                                               ^
                                                                {
/datasets/git/commit-graph.c:798:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        offset_pos = offset ^ CORRECTED_COMMIT_DATE_OFFSET_OVERFLOW;
                                              ^
/datasets/git/commit-graph.c:65:48: note: expanded from macro 'CORRECTED_COMMIT_DATE_OFFSET_OVERFLOW'
#define CORRECTED_COMMIT_DATE_OFFSET_OVERFLOW (1ULL << 31)
                                               ^       ~~
/datasets/git/commit-graph.c:799:51: warning: result of multiplication in type 'unsigned int' is used as a pointer offset after an implicit widening conversion to type 'size_t' [bugprone-implicit-widening-of-multiplication-result]
                        graph_data->generation = item->date + get_be64(g->chunk_generation_data_overflow + 8 * offset_pos);
                                                                       ^
/datasets/git/commit-graph.c:799:87: note: make conversion explicit to silence this warning
                        graph_data->generation = item->date + get_be64(g->chunk_generation_data_overflow + 8 * offset_pos);
                                                                                                           ^~~~~~~~~~~~~~
                                                                                                           (size_t)( )
/datasets/git/commit-graph.c:799:87: note: perform multiplication in a wider type
                        graph_data->generation = item->date + get_be64(g->chunk_generation_data_overflow + 8 * offset_pos);
                                                                                                           ^
                                                                                                           (size_t)
/datasets/git/commit-graph.c:799:87: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        graph_data->generation = item->date + get_be64(g->chunk_generation_data_overflow + 8 * offset_pos);
                                                                                                           ^
/datasets/git/commit-graph.c:800:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/commit-graph.c:802:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/commit-graph.c:803:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                graph_data->generation = get_be32(commit_data + g->hash_len + 8) >> 2;
                                         ^                                          ~
/datasets/git/commit-graph.c:803:65: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                graph_data->generation = get_be32(commit_data + g->hash_len + 8) >> 2;
                                                                              ^
/datasets/git/commit-graph.c:805:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (g->topo_levels)
                           ^
                            {
/datasets/git/commit-graph.c:806:47: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                *topo_level_slab_at(g->topo_levels, item) = get_be32(commit_data + g->hash_len + 8) >> 2;
                                                            ^                                          ~
/datasets/git/commit-graph.c:806:84: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                *topo_level_slab_at(g->topo_levels, item) = get_be32(commit_data + g->hash_len + 8) >> 2;
                                                                                                 ^
/datasets/git/commit-graph.c:809:51: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static inline void set_commit_tree(struct commit *c, struct tree *t)
                                                  ^
/datasets/git/commit-graph.c:809:67: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
static inline void set_commit_tree(struct commit *c, struct tree *t)
                                                                  ^
/datasets/git/commit-graph.c:814:52: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int fill_commit_in_graph(struct repository *r,
                                                   ^
/datasets/git/commit-graph.c:816:26: warning: parameter name 'g' is too short, expected at least 3 characters [readability-identifier-length]
                                struct commit_graph *g, uint32_t pos)
                                                     ^
/datasets/git/commit-graph.c:818:11: warning: variable 'edge_value' is not initialized [cppcoreguidelines-init-variables]
        uint32_t edge_value;
                 ^
                            = 0
/datasets/git/commit-graph.c:819:12: warning: variable 'parent_data_ptr' is not initialized [cppcoreguidelines-init-variables]
        uint32_t *parent_data_ptr;
                  ^
                                  = NULL
/datasets/git/commit-graph.c:820:23: warning: variable 'pptr' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list **pptr;
                             ^
                                  = NULL
/datasets/git/commit-graph.c:821:23: warning: variable 'commit_data' is not initialized [cppcoreguidelines-init-variables]
        const unsigned char *commit_data;
                             ^
                                         = NULL
/datasets/git/commit-graph.c:822:11: warning: variable 'lex_index' is not initialized [cppcoreguidelines-init-variables]
        uint32_t lex_index;
                 ^
                           = 0
/datasets/git/commit-graph.c:824:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (pos < g->num_commits_in_base)
        ^
/datasets/git/commit-graph.c:824:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'g' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (pos < g->num_commits_in_base)
               ^
/datasets/git/commit-graph.c:824:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (pos < g->num_commits_in_base)
                                            ^
                                             {
/datasets/git/commit-graph.c:830:16: warning: result of multiplication in type 'unsigned int' is used as a pointer offset after an implicit widening conversion to type 'size_t' [bugprone-implicit-widening-of-multiplication-result]
        commit_data = g->chunk_commit_data + (g->hash_len + 16) * lex_index;
                      ^
/datasets/git/commit-graph.c:830:39: note: make conversion explicit to silence this warning
        commit_data = g->chunk_commit_data + (g->hash_len + 16) * lex_index;
                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                             (size_t)(            )
/datasets/git/commit-graph.c:830:39: note: perform multiplication in a wider type
        commit_data = g->chunk_commit_data + (g->hash_len + 16) * lex_index;
                                             ^~~~~~~~~~~~~~~~~~
                                             (size_t)
/datasets/git/commit-graph.c:830:54: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        commit_data = g->chunk_commit_data + (g->hash_len + 16) * lex_index;
                                                            ^
/datasets/git/commit-graph.c:839:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (edge_value == GRAPH_PARENT_NONE)
                                            ^
                                             {
/datasets/git/commit-graph.c:844:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (edge_value == GRAPH_PARENT_NONE)
                                            ^
                                             {
/datasets/git/commit-graph.c:847:3: warning: Value stored to 'pptr' is never read [clang-analyzer-deadcode.DeadStores]
                pptr = insert_parent_or_die(r, g, edge_value, pptr);
                ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-graph.c:847:3: note: Value stored to 'pptr' is never read
                pptr = insert_parent_or_die(r, g, edge_value, pptr);
                ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-graph.c:852:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                          4 * (uint64_t)(edge_value & GRAPH_EDGE_LAST_MASK));
                                         ^
/datasets/git/commit-graph.c:853:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        do {
        ^
/datasets/git/commit-graph.c:856:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                            edge_value & GRAPH_EDGE_LAST_MASK,
                                            ^
/datasets/git/commit-graph.c:859:11: warning: backward branch (do loop) is ID-dependent due to variable reference to 'edge_value' and may cause performance degradation [altera-id-dependent-backward-branch]
        } while (!(edge_value & GRAPH_LAST_EDGE));
                 ^
/datasets/git/commit-graph.c:864:63: warning: parameter name 'id' is too short, expected at least 3 characters [readability-identifier-length]
static int search_commit_pos_in_graph(const struct object_id *id, struct commit_graph *g, uint32_t *pos)
                                                              ^
/datasets/git/commit-graph.c:864:88: warning: parameter name 'g' is too short, expected at least 3 characters [readability-identifier-length]
static int search_commit_pos_in_graph(const struct object_id *id, struct commit_graph *g, uint32_t *pos)
                                                                                       ^
/datasets/git/commit-graph.c:867:11: warning: variable 'lex_index' is not initialized [cppcoreguidelines-init-variables]
        uint32_t lex_index;
                 ^
                           = 0
/datasets/git/commit-graph.c:869:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (cur_g && !bsearch_graph(cur_g, id, &lex_index))
        ^
/datasets/git/commit-graph.c:869:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'cur_g' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (cur_g && !bsearch_graph(cur_g, id, &lex_index))
               ^
/datasets/git/commit-graph.c:869:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (cur_g && !bsearch_graph(cur_g, id, &lex_index))
                                                              ^
                                                               {
/datasets/git/commit-graph.c:880:79: warning: parameter name 'g' is too short, expected at least 3 characters [readability-identifier-length]
static int find_commit_pos_in_graph(struct commit *item, struct commit_graph *g, uint32_t *pos)
                                                                              ^
/datasets/git/commit-graph.c:886:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else {
          ^~~~~~
/datasets/git/commit-graph.c:891:54: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int repo_find_commit_pos_in_graph(struct repository *r, struct commit *c,
                                                     ^
/datasets/git/commit-graph.c:891:72: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
int repo_find_commit_pos_in_graph(struct repository *r, struct commit *c,
                                                                       ^
/datasets/git/commit-graph.c:894:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!prepare_commit_graph(r))
                                     ^
                                      {
/datasets/git/commit-graph.c:899:88: warning: parameter name 'id' is too short, expected at least 3 characters [readability-identifier-length]
struct commit *lookup_commit_in_graph(struct repository *repo, const struct object_id *id)
                                                                                       ^
/datasets/git/commit-graph.c:901:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/commit-graph.c:902:11: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        uint32_t pos;
                 ^
                     = 0
/datasets/git/commit-graph.c:904:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!prepare_commit_graph(repo))
                                        ^
                                         {
/datasets/git/commit-graph.c:906:73: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!search_commit_pos_in_graph(id, repo->objects->commit_graph, &pos))
                                                                               ^
                                                                                {
/datasets/git/commit-graph.c:908:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!has_object(repo, id, 0))
                                     ^
                                      {
/datasets/git/commit-graph.c:912:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!commit)
                    ^
                     {
/datasets/git/commit-graph.c:914:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (commit->object.parsed)
                                  ^
                                   {
/datasets/git/commit-graph.c:917:76: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!fill_commit_in_graph(repo, commit, repo->objects->commit_graph, pos))
                                                                                  ^
                                                                                   {
/datasets/git/commit-graph.c:923:57: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int parse_commit_in_graph_one(struct repository *r,
                                                        ^
/datasets/git/commit-graph.c:924:31: warning: parameter name 'g' is too short, expected at least 3 characters [readability-identifier-length]
                                     struct commit_graph *g,
                                                          ^
/datasets/git/commit-graph.c:927:11: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        uint32_t pos;
                 ^
                     = 0
/datasets/git/commit-graph.c:929:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (item->object.parsed)
                                ^
                                 {
/datasets/git/commit-graph.c:932:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (find_commit_pos_in_graph(item, g, &pos))
                                                    ^
                                                     {
/datasets/git/commit-graph.c:938:46: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int parse_commit_in_graph(struct repository *r, struct commit *item)
                                             ^
/datasets/git/commit-graph.c:943:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            git_env_bool(GIT_TEST_COMMIT_GRAPH_DIE_ON_PARSE, 0))
                                                                ^
                                                                 {
/datasets/git/commit-graph.c:948:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!prepare_commit_graph(r))
                                     ^
                                      {
/datasets/git/commit-graph.c:953:48: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void load_commit_graph_info(struct repository *r, struct commit *item)
                                               ^
/datasets/git/commit-graph.c:955:11: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        uint32_t pos;
                 ^
                     = 0
/datasets/git/commit-graph.c:956:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_find_commit_pos_in_graph(r, item, &pos))
                                                         ^
                                                          {
/datasets/git/commit-graph.c:960:61: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static struct tree *load_tree_for_commit(struct repository *r,
                                                            ^
/datasets/git/commit-graph.c:961:28: warning: parameter name 'g' is too short, expected at least 3 characters [readability-identifier-length]
                                         struct commit_graph *g,
                                                              ^
/datasets/git/commit-graph.c:962:22: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                                         struct commit *c)
                                                        ^
/datasets/git/commit-graph.c:965:23: warning: variable 'commit_data' is not initialized [cppcoreguidelines-init-variables]
        const unsigned char *commit_data;
                             ^
                                         = NULL
/datasets/git/commit-graph.c:968:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (graph_pos < g->num_commits_in_base)
        ^
/datasets/git/commit-graph.c:968:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'graph_pos' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (graph_pos < g->num_commits_in_base)
               ^
/datasets/git/commit-graph.c:968:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (graph_pos < g->num_commits_in_base)
                                                  ^
                                                   {
/datasets/git/commit-graph.c:980:69: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static struct tree *get_commit_tree_in_graph_one(struct repository *r,
                                                                    ^
/datasets/git/commit-graph.c:981:29: warning: parameter name 'g' is too short, expected at least 3 characters [readability-identifier-length]
                                                 struct commit_graph *g,
                                                                      ^
/datasets/git/commit-graph.c:982:29: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                                                 const struct commit *c)
                                                                      ^
/datasets/git/commit-graph.c:984:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (c->maybe_tree)
                          ^
                           {
/datasets/git/commit-graph.c:986:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (commit_graph_position(c) == COMMIT_NOT_FROM_GRAPH)
                                                              ^
                                                               {
/datasets/git/commit-graph.c:992:58: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
struct tree *get_commit_tree_in_graph(struct repository *r, const struct commit *c)
                                                         ^
/datasets/git/commit-graph.c:992:82: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
struct tree *get_commit_tree_in_graph(struct repository *r, const struct commit *c)
                                                                                 ^
/datasets/git/commit-graph.c:997:8: warning: accessing fields in struct 'packed_commit_list' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct packed_commit_list {
       ^
/datasets/git/commit-graph.c:997:8: note: use "__attribute__((aligned(32)))" to align struct 'packed_commit_list' to 32 bytes
/datasets/git/commit-graph.c:1003:8: warning: accessing fields in struct 'write_commit_graph_context' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct write_commit_graph_context {
       ^
/datasets/git/commit-graph.c:1003:8: note: use "__attribute__((aligned(128)))" to align struct 'write_commit_graph_context' to 128 bytes
/datasets/git/commit-graph.c:1044:54: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
static int write_graph_chunk_fanout(struct hashfile *f,
                                                     ^
/datasets/git/commit-graph.c:1048:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, count = 0;
        ^~~~~~~~~~~~~~~~~
/datasets/git/commit-graph.c:1048:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, count = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit-graph.c:1048:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit-graph.c:1056:18: warning: 256 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        for (i = 0; i < 256; i++) {
                        ^
/datasets/git/commit-graph.c:1057:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (count < ctx->commits.nr) {
                ^
/datasets/git/commit-graph.c:1057:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'ctx' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (count < ctx->commits.nr) {
                       ^
/datasets/git/commit-graph.c:1058:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if ((*list)->object.oid.hash[0] != i)
                                                             ^
                                                              {
/datasets/git/commit-graph.c:1071:52: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
static int write_graph_chunk_oids(struct hashfile *f,
                                                   ^
/datasets/git/commit-graph.c:1074:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct write_commit_graph_context *ctx = data;
        ^
/datasets/git/commit-graph.c:1076:6: warning: variable 'count' is not initialized [cppcoreguidelines-init-variables]
        int count;
            ^
                  = 0
/datasets/git/commit-graph.c:1077:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (count = 0; count < ctx->commits.nr; count++, list++) {
        ^
/datasets/git/commit-graph.c:1077:18: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ctx' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (count = 0; count < ctx->commits.nr; count++, list++) {
                        ^
/datasets/git/commit-graph.c:1091:12: warning: function 'write_graph_chunk_data' has cognitive complexity of 42 (threshold 25) [readability-function-cognitive-complexity]
static int write_graph_chunk_data(struct hashfile *f,
           ^
/datasets/git/commit-graph.c:1099:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (list < last) {
        ^
/datasets/git/commit-graph.c:1106:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (repo_parse_commit_no_graph(ctx->r, *list))
                ^
/datasets/git/commit-graph.c:1114:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!parent)
                ^
/datasets/git/commit-graph.c:1116:3: note: +1, nesting level increased to 2
                else {
                ^
/datasets/git/commit-graph.c:1122:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (edge_value >= 0)
                        ^
/datasets/git/commit-graph.c:1124:9: note: +1, nesting level increased to 3
                        else if (ctx->new_base_graph) {
                             ^
/datasets/git/commit-graph.c:1126:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (find_commit_pos_in_graph(parent->item,
                                ^
/datasets/git/commit-graph.c:1132:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (edge_value < 0)
                        ^
/datasets/git/commit-graph.c:1140:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (parent)
                ^
/datasets/git/commit-graph.c:1143:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!parent)
                ^
/datasets/git/commit-graph.c:1145:8: note: +1, nesting level increased to 2
                else if (parent->next)
                     ^
/datasets/git/commit-graph.c:1147:3: note: +1, nesting level increased to 2
                else {
                ^
/datasets/git/commit-graph.c:1153:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (edge_value >= 0)
                        ^
/datasets/git/commit-graph.c:1155:9: note: +1, nesting level increased to 3
                        else if (ctx->new_base_graph) {
                             ^
/datasets/git/commit-graph.c:1157:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (find_commit_pos_in_graph(parent->item,
                                ^
/datasets/git/commit-graph.c:1163:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (edge_value < 0)
                        ^
/datasets/git/commit-graph.c:1171:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (edge_value & GRAPH_EXTRA_EDGES_NEEDED) {
                ^
/datasets/git/commit-graph.c:1172:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        do {
                        ^
/datasets/git/commit-graph.c:1178:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (sizeof((*list)->date) > 4)
                ^
/datasets/git/commit-graph.c:1180:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/commit-graph.c:1091:52: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
static int write_graph_chunk_data(struct hashfile *f,
                                                   ^
/datasets/git/commit-graph.c:1095:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct commit **list = ctx->commits.list;
        ^
/datasets/git/commit-graph.c:1099:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'list' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (list < last) {
               ^
/datasets/git/commit-graph.c:1100:23: warning: variable 'parent' is not initialized [cppcoreguidelines-init-variables]
                struct commit_list *parent;
                                    ^
                                           = NULL
/datasets/git/commit-graph.c:1101:21: warning: variable 'tree' is not initialized [cppcoreguidelines-init-variables]
                struct object_id *tree;
                                  ^
                                       = NULL
/datasets/git/commit-graph.c:1102:7: warning: variable 'edge_value' is not initialized [cppcoreguidelines-init-variables]
                int edge_value;
                    ^
                               = 0
/datasets/git/commit-graph.c:1106:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (repo_parse_commit_no_graph(ctx->r, *list))
                                                              ^
                                                               {
/datasets/git/commit-graph.c:1114:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!parent)
                            ^
                             {
/datasets/git/commit-graph.c:1122:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (edge_value >= 0)
                                            ^
                                             {
/datasets/git/commit-graph.c:1123:19: warning: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                edge_value += ctx->new_num_commits_in_base;
                                              ^
/datasets/git/commit-graph.c:1125:14: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
                                uint32_t pos;
                                         ^
                                             = 0
/datasets/git/commit-graph.c:1128:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                             &pos))
                                                                   ^
                                                                    {
/datasets/git/commit-graph.c:1129:19: warning: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                        edge_value = pos;
                                                     ^
/datasets/git/commit-graph.c:1132:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (edge_value < 0)
                                           ^
                                            {
/datasets/git/commit-graph.c:1140:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (parent)
                           ^
                            {
/datasets/git/commit-graph.c:1143:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!parent)
                            ^
                             {
/datasets/git/commit-graph.c:1145:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (parent->next)
                                      ^
                                       {
/datasets/git/commit-graph.c:1153:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (edge_value >= 0)
                                            ^
                                             {
/datasets/git/commit-graph.c:1154:19: warning: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                edge_value += ctx->new_num_commits_in_base;
                                              ^
/datasets/git/commit-graph.c:1156:14: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
                                uint32_t pos;
                                         ^
                                             = 0
/datasets/git/commit-graph.c:1159:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                             &pos))
                                                                   ^
                                                                    {
/datasets/git/commit-graph.c:1160:19: warning: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                        edge_value = pos;
                                                     ^
/datasets/git/commit-graph.c:1163:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (edge_value < 0)
                                           ^
                                            {
/datasets/git/commit-graph.c:1171:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (edge_value & GRAPH_EXTRA_EDGES_NEEDED) {
                    ^~~~~~~~~~
/datasets/git/commit-graph.c:1100:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                struct commit_list *parent;
                ^
/datasets/git/commit-graph.c:1172:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        do {
                        ^
/datasets/git/commit-graph.c:1175:13: warning: backward branch (do loop) is ID-dependent due to variable reference to 'parent' and may cause performance degradation [altera-id-dependent-backward-branch]
                        } while (parent);
                                 ^
/datasets/git/commit-graph.c:1178:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (sizeof((*list)->date) > 4)
                                              ^
                                               {
/datasets/git/commit-graph.c:1179:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        packedDate[0] = htonl(((*list)->date >> 32) & 0x3);
                                              ^
/datasets/git/./compat/bswap.h:91:26: note: expanded from macro 'htonl'
#define htonl(x) bswap32(x)
                         ^
/datasets/git/commit-graph.c:1179:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        packedDate[0] = htonl(((*list)->date >> 32) & 0x3);
                                               ^
/datasets/git/./compat/bswap.h:91:26: note: expanded from macro 'htonl'
#define htonl(x) bswap32(x)
                         ^
/datasets/git/commit-graph.c:1180:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/commit-graph.c:1183:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                packedDate[0] |= htonl(*topo_level_slab_at(ctx->topo_levels, *list) << 2);
                                       ^
/datasets/git/./compat/bswap.h:91:26: note: expanded from macro 'htonl'
#define htonl(x) bswap32(x)
                         ^
/datasets/git/commit-graph.c:1186:28: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                hashwrite(f, packedDate, 8);
                                         ^
/datasets/git/commit-graph.c:1194:63: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
static int write_graph_chunk_generation_data(struct hashfile *f,
                                                              ^
/datasets/git/commit-graph.c:1198:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, num_generation_data_overflows = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-graph.c:1197:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct write_commit_graph_context *ctx = data;
        ^
/datasets/git/commit-graph.c:1198:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, num_generation_data_overflows = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit-graph.c:1198:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit-graph.c:1200:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ctx->commits.nr; i++) {
        ^
/datasets/git/commit-graph.c:1200:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ctx' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < ctx->commits.nr; i++) {
                    ^
/datasets/git/commit-graph.c:1201:18: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                struct commit *c = ctx->commits.list[i];
                               ^
/datasets/git/commit-graph.c:1202:15: warning: variable 'offset' is not initialized [cppcoreguidelines-init-variables]
                timestamp_t offset;
                            ^
                                   = 0
/datasets/git/commit-graph.c:1207:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (offset > GENERATION_NUMBER_V2_OFFSET_MAX) {
                             ^
/datasets/git/./negotiator/../commit.h:17:43: note: expanded from macro 'GENERATION_NUMBER_V2_OFFSET_MAX'
#define GENERATION_NUMBER_V2_OFFSET_MAX ((1ULL << 31) - 1)
                                          ^       ~~
/datasets/git/commit-graph.c:1208:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        offset = CORRECTED_COMMIT_DATE_OFFSET_OVERFLOW | num_generation_data_overflows;
                                 ^                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-graph.c:65:47: note: expanded from macro 'CORRECTED_COMMIT_DATE_OFFSET_OVERFLOW'
#define CORRECTED_COMMIT_DATE_OFFSET_OVERFLOW (1ULL << 31)
                                              ^
/datasets/git/commit-graph.c:1218:72: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
static int write_graph_chunk_generation_data_overflow(struct hashfile *f,
                                                                       ^
/datasets/git/commit-graph.c:1221:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct write_commit_graph_context *ctx = data;
        ^
/datasets/git/commit-graph.c:1222:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/commit-graph.c:1222:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit-graph.c:1223:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ctx->commits.nr; i++) {
        ^
/datasets/git/commit-graph.c:1223:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ctx' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < ctx->commits.nr; i++) {
                    ^
/datasets/git/commit-graph.c:1224:18: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                struct commit *c = ctx->commits.list[i];
                               ^
/datasets/git/commit-graph.c:1228:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (offset > GENERATION_NUMBER_V2_OFFSET_MAX) {
                             ^
/datasets/git/./negotiator/../commit.h:17:43: note: expanded from macro 'GENERATION_NUMBER_V2_OFFSET_MAX'
#define GENERATION_NUMBER_V2_OFFSET_MAX ((1ULL << 31) - 1)
                                          ^       ~~
/datasets/git/commit-graph.c:1229:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        hashwrite_be32(f, offset >> 32);
                                          ^         ~~
/datasets/git/commit-graph.c:1229:32: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        hashwrite_be32(f, offset >> 32);
                                                    ^
/datasets/git/commit-graph.c:1237:59: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
static int write_graph_chunk_extra_edges(struct hashfile *f,
                                                          ^
/datasets/git/commit-graph.c:1241:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct commit **list = ctx->commits.list;
        ^
/datasets/git/commit-graph.c:1243:22: warning: variable 'parent' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *parent;
                            ^
                                   = NULL
/datasets/git/commit-graph.c:1245:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'list' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (list < last) {
               ^
/datasets/git/commit-graph.c:1250:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (parent = (*list)->parents; num_parents < 3 && parent;
                ^
/datasets/git/commit-graph.c:1243:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct commit_list *parent;
        ^
/datasets/git/commit-graph.c:1250:35: warning: backward branch (for loop) is ID-dependent due to variable reference to 'parent' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (parent = (*list)->parents; num_parents < 3 && parent;
                                                ^
/datasets/git/commit-graph.c:1251:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                     parent = parent->next)
                                           ^
                                            {
/datasets/git/commit-graph.c:1260:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (parent = (*list)->parents->next; parent; parent = parent->next) {
                ^
/datasets/git/commit-graph.c:1260:41: warning: backward branch (for loop) is ID-dependent due to variable reference to 'parent' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (parent = (*list)->parents->next; parent; parent = parent->next) {
                                                      ^
/datasets/git/commit-graph.c:1266:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (edge_value >= 0)
                                            ^
                                             {
/datasets/git/commit-graph.c:1267:19: warning: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                edge_value += ctx->new_num_commits_in_base;
                                              ^
/datasets/git/commit-graph.c:1269:14: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
                                uint32_t pos;
                                         ^
                                             = 0
/datasets/git/commit-graph.c:1272:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                             &pos))
                                                                   ^
                                                                    {
/datasets/git/commit-graph.c:1273:19: warning: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                        edge_value = pos;
                                                     ^
/datasets/git/commit-graph.c:1276:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (edge_value < 0)
                                           ^
                                            {
/datasets/git/commit-graph.c:1280:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (!parent->next)
                                               ^
                                                {
/datasets/git/commit-graph.c:1281:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                edge_value |= GRAPH_LAST_EDGE;
                                ^~~~~~~~~~
/datasets/git/commit-graph.c:1281:19: warning: narrowing conversion from constant value 2147483648 (0x80000000) of type 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                edge_value |= GRAPH_LAST_EDGE;
                                              ^
/datasets/git/commit-graph.c:58:25: note: expanded from macro 'GRAPH_LAST_EDGE'
#define GRAPH_LAST_EDGE 0x80000000
                        ^
/datasets/git/commit-graph.c:1292:61: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
static int write_graph_chunk_bloom_indexes(struct hashfile *f,
                                                            ^
/datasets/git/commit-graph.c:1296:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct commit **list = ctx->commits.list;
        ^
/datasets/git/commit-graph.c:1300:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (list < last) {
        ^
/datasets/git/commit-graph.c:1300:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'list' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (list < last) {
               ^
/datasets/git/commit-graph.c:1314:21: warning: variable name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
        struct json_writer jw = JSON_WRITER_INIT;
                           ^
/datasets/git/commit-graph.c:1328:58: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
static int write_graph_chunk_bloom_data(struct hashfile *f,
                                                         ^
/datasets/git/commit-graph.c:1332:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct commit **list = ctx->commits.list;
        ^
/datasets/git/commit-graph.c:1341:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (list < last) {
        ^
/datasets/git/commit-graph.c:1341:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'list' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (list < last) {
               ^
/datasets/git/commit-graph.c:1346:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (len)
                        ^
                         {
/datasets/git/commit-graph.c:1360:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/commit-graph.c:1362:21: warning: variable name 'oi' is too short, expected at least 3 characters [readability-identifier-length]
        struct object_info oi = OBJECT_INFO_INIT;
                           ^
/datasets/git/commit-graph.c:1382:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct commit_list *parent;
        ^
/datasets/git/commit-graph.c:1364:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ctx->progress)
                          ^
                           {
/datasets/git/commit-graph.c:1368:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (packed_object_info(ctx->r, pack, offset, &oi) < 0)
                                                              ^
                                                               {
/datasets/git/commit-graph.c:1371:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (type != OBJ_COMMIT)
                               ^
                                {
/datasets/git/commit-graph.c:1382:22: warning: variable 'parent' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *parent;
                            ^
                                   = NULL
/datasets/git/commit-graph.c:1383:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (parent = commit->parents; parent; parent = parent->next) {
        ^
/datasets/git/commit-graph.c:1383:33: warning: backward branch (for loop) is ID-dependent due to variable reference to 'parent' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (parent = commit->parents; parent; parent = parent->next) {
                                       ^
/datasets/git/commit-graph.c:1384:38: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(parent->item->object.flags & REACHABLE)) {
                                                   ^
/datasets/git/commit-graph.c:68:26: note: expanded from macro 'REACHABLE'
#define REACHABLE       (1u<<15)
                         ^   ~~
/datasets/git/commit-graph.c:1386:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        parent->item->object.flags |= REACHABLE;
                                                      ^
/datasets/git/commit-graph.c:68:26: note: expanded from macro 'REACHABLE'
#define REACHABLE       (1u<<15)
                         ^   ~~
/datasets/git/commit-graph.c:1393:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/commit-graph.c:1393:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit-graph.c:1394:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/commit-graph.c:1398:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ctx->report_progress)
                                 ^
                                  {
/datasets/git/commit-graph.c:1402:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ctx->oids.nr; i++) {
        ^
/datasets/git/commit-graph.c:1405:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (commit)
                           ^
                            {
/datasets/git/commit-graph.c:1406:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        commit->object.flags |= REACHABLE;
                                                ^
/datasets/git/commit-graph.c:68:26: note: expanded from macro 'REACHABLE'
#define REACHABLE       (1u<<15)
                         ^   ~~
/datasets/git/commit-graph.c:1415:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ctx->report_progress)
                                 ^
                                  {
/datasets/git/commit-graph.c:1419:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ctx->oids.nr; i++) {
        ^
/datasets/git/commit-graph.c:1423:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!commit)
                            ^
                             {
/datasets/git/commit-graph.c:1428:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            flags == COMMIT_GRAPH_SPLIT_REPLACE)
                                                                ^
                                                                 {
/datasets/git/commit-graph.c:1430:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else if (!repo_parse_commit_no_graph(ctx->r, commit))
                                                                       ^
                                                                        {
/datasets/git/commit-graph.c:1435:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ctx->report_progress)
                                 ^
                                  {
/datasets/git/commit-graph.c:1439:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ctx->oids.nr; i++) {
        ^
/datasets/git/commit-graph.c:1443:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (commit)
                           ^
                            {
/datasets/git/commit-graph.c:1444:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        commit->object.flags &= ~REACHABLE;
                                                 ^
/datasets/git/commit-graph.c:68:26: note: expanded from macro 'REACHABLE'
#define REACHABLE       (1u<<15)
                         ^   ~~
/datasets/git/commit-graph.c:1451:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/commit-graph.c:1451:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit-graph.c:1454:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ctx->report_progress)
                                 ^
                                  {
/datasets/git/commit-graph.c:1459:18: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                struct commit *c = ctx->commits.list[i];
                               ^
/datasets/git/commit-graph.c:1460:12: warning: variable 'level' is not initialized [cppcoreguidelines-init-variables]
                uint32_t level;
                         ^
                               = 0
/datasets/git/commit-graph.c:1472:4: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                        struct commit_list *parent;
                        ^
/datasets/git/commit-graph.c:1466:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (level != GENERATION_NUMBER_ZERO)
                                                    ^
                                                     {
/datasets/git/commit-graph.c:1472:24: warning: variable 'parent' is not initialized [cppcoreguidelines-init-variables]
                        struct commit_list *parent;
                                            ^
                                                   = NULL
/datasets/git/commit-graph.c:1476:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (parent = current->parents; parent; parent = parent->next) {
                        ^
/datasets/git/commit-graph.c:1476:36: warning: backward branch (for loop) is ID-dependent due to variable reference to 'parent' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (parent = current->parents; parent; parent = parent->next) {
                                                        ^
/datasets/git/commit-graph.c:1486:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (level > max_level)
                                                      ^
                                                       {
/datasets/git/commit-graph.c:1493:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (max_level > GENERATION_NUMBER_V1_MAX - 1)
                                                                             ^
                                                                              {
/datasets/git/commit-graph.c:1502:13: warning: function 'compute_generation_numbers' has cognitive complexity of 31 (threshold 25) [readability-function-cognitive-complexity]
static void compute_generation_numbers(struct write_commit_graph_context *ctx)
            ^
/datasets/git/commit-graph.c:1507:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ctx->report_progress)
        ^
/datasets/git/commit-graph.c:1512:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!ctx->trust_generation_numbers) {
        ^
/datasets/git/commit-graph.c:1513:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < ctx->commits.nr; i++) {
                ^
/datasets/git/commit-graph.c:1520:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < ctx->commits.nr; i++) {
        ^
/datasets/git/commit-graph.c:1528:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (corrected_commit_date != GENERATION_NUMBER_ZERO)
                ^
/datasets/git/commit-graph.c:1532:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (list) {
                ^
/datasets/git/commit-graph.c:1538:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (parent = current->parents; parent; parent = parent->next) {
                        ^
/datasets/git/commit-graph.c:1542:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (corrected_commit_date == GENERATION_NUMBER_ZERO) {
                                ^
/datasets/git/commit-graph.c:1548:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (corrected_commit_date > max_corrected_commit_date)
                                ^
/datasets/git/commit-graph.c:1552:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (all_parents_computed) {
                        ^
/datasets/git/commit-graph.c:1555:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (current->date && current->date > max_corrected_commit_date)
                                ^
/datasets/git/commit-graph.c:1555:23: note: +1
                                if (current->date && current->date > max_corrected_commit_date)
                                                  ^
/datasets/git/commit-graph.c:1562:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < ctx->commits.nr; i++) {
        ^
/datasets/git/commit-graph.c:1565:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (offset > GENERATION_NUMBER_V2_OFFSET_MAX)
                ^
/datasets/git/commit-graph.c:1504:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/commit-graph.c:1504:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit-graph.c:1507:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ctx->report_progress)
                                 ^
                                  {
/datasets/git/commit-graph.c:1513:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < ctx->commits.nr; i++) {
                ^
/datasets/git/commit-graph.c:1514:19: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                        struct commit *c = ctx->commits.list[i];
                                       ^
/datasets/git/commit-graph.c:1521:18: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                struct commit *c = ctx->commits.list[i];
                               ^
/datasets/git/commit-graph.c:1522:15: warning: variable 'corrected_commit_date' is not initialized [cppcoreguidelines-init-variables]
                timestamp_t corrected_commit_date;
                            ^
                                                  = 0
/datasets/git/commit-graph.c:1534:4: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                        struct commit_list *parent;
                        ^
/datasets/git/commit-graph.c:1528:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (corrected_commit_date != GENERATION_NUMBER_ZERO)
                                                                    ^
                                                                     {
/datasets/git/commit-graph.c:1534:24: warning: variable 'parent' is not initialized [cppcoreguidelines-init-variables]
                        struct commit_list *parent;
                                            ^
                                                   = NULL
/datasets/git/commit-graph.c:1538:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (parent = current->parents; parent; parent = parent->next) {
                        ^
/datasets/git/commit-graph.c:1538:36: warning: backward branch (for loop) is ID-dependent due to variable reference to 'parent' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (parent = current->parents; parent; parent = parent->next) {
                                                        ^
/datasets/git/commit-graph.c:1548:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (corrected_commit_date > max_corrected_commit_date)
                                                                                      ^
                                                                                       {
/datasets/git/commit-graph.c:1555:68: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (current->date && current->date > max_corrected_commit_date)
                                                                                               ^
                                                                                                {
/datasets/git/commit-graph.c:1562:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ctx->commits.nr; i++) {
        ^
/datasets/git/commit-graph.c:1563:18: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                struct commit *c = ctx->commits.list[i];
                               ^
/datasets/git/commit-graph.c:1565:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (offset > GENERATION_NUMBER_V2_OFFSET_MAX)
                             ^
/datasets/git/./negotiator/../commit.h:17:43: note: expanded from macro 'GENERATION_NUMBER_V2_OFFSET_MAX'
#define GENERATION_NUMBER_V2_OFFSET_MAX ((1ULL << 31) - 1)
                                          ^       ~~
/datasets/git/commit-graph.c:1565:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (offset > GENERATION_NUMBER_V2_OFFSET_MAX)
                                                             ^
                                                              {
/datasets/git/commit-graph.c:1585:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/commit-graph.c:1585:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit-graph.c:1587:18: warning: variable 'sorted_commits' is not initialized [cppcoreguidelines-init-variables]
        struct commit **sorted_commits;
                        ^
                                       = NULL
/datasets/git/commit-graph.c:1588:6: warning: variable 'max_new_filters' is not initialized [cppcoreguidelines-init-variables]
        int max_new_filters;
            ^
                            = 0
/datasets/git/commit-graph.c:1592:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ctx->report_progress)
                                 ^
                                  {
/datasets/git/commit-graph.c:1597:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_ARRAY(sorted_commits, ctx->commits.nr);
        ^
/datasets/git/./git-compat-util.h:1090:53: note: expanded from macro 'ALLOC_ARRAY'
#define ALLOC_ARRAY(x, alloc) (x) = xmalloc(st_mult(sizeof(*(x)), (alloc)))
                                                    ^
/datasets/git/commit-graph.c:1598:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        COPY_ARRAY(sorted_commits, ctx->commits.list, ctx->commits.nr);
        ^
/datasets/git/./git-compat-util.h:1094:63: note: expanded from macro 'COPY_ARRAY'
#define COPY_ARRAY(dst, src, n) copy_array((dst), (src), (n), sizeof(*(dst)) + \
                                                              ^
/datasets/git/commit-graph.c:1600:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ctx->order_by_pack)
                               ^
                                {
/datasets/git/commit-graph.c:1601:3: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                QSORT(sorted_commits, ctx->commits.nr, commit_pos_cmp);
                ^
/datasets/git/./git-compat-util.h:1304:56: note: expanded from macro 'QSORT'
#define QSORT(base, n, compar) sane_qsort((base), (n), sizeof(*(base)), compar)
                                                       ^
/datasets/git/commit-graph.c:1602:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/commit-graph.c:1603:3: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                QSORT(sorted_commits, ctx->commits.nr, commit_gen_cmp);
                ^
/datasets/git/./git-compat-util.h:1304:56: note: expanded from macro 'QSORT'
#define QSORT(base, n, compar) sane_qsort((base), (n), sizeof(*(base)), compar)
                                                       ^
/datasets/git/commit-graph.c:1606:3: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                ctx->opts->max_new_filters : ctx->commits.nr;
                ^
/datasets/git/commit-graph.c:1606:32: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                ctx->opts->max_new_filters : ctx->commits.nr;
                                             ^
/datasets/git/commit-graph.c:1608:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ctx->commits.nr; i++) {
        ^
/datasets/git/commit-graph.c:1610:18: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                struct commit *c = sorted_commits[i];
                               ^
/datasets/git/commit-graph.c:1617:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (computed & BLOOM_COMPUTED) {
                    ^          ~~~~~~~~~~~~~~
/datasets/git/commit-graph.c:1619:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (computed & BLOOM_TRUNC_EMPTY)
                            ^          ~~~~~~~~~~~~~~~~~
/datasets/git/commit-graph.c:1619:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (computed & BLOOM_TRUNC_EMPTY)
                                                         ^
                                                          {
/datasets/git/commit-graph.c:1621:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (computed & BLOOM_TRUNC_LARGE)
                            ^          ~~~~~~~~~~~~~~~~~
/datasets/git/commit-graph.c:1621:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (computed & BLOOM_TRUNC_LARGE)
                                                         ^
                                                          {
/datasets/git/commit-graph.c:1623:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                } else if (computed & BLOOM_NOT_COMPUTED)
                           ^          ~~~~~~~~~~~~~~~~~~
/datasets/git/commit-graph.c:1623:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else if (computed & BLOOM_NOT_COMPUTED)
                                                         ^
                                                          {
/datasets/git/commit-graph.c:1630:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (trace2_is_enabled())
                                ^
                                 {
/datasets/git/commit-graph.c:1637:8: warning: accessing fields in struct 'refs_cb_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct refs_cb_data {
       ^
/datasets/git/commit-graph.c:1637:8: note: use "__attribute__((aligned(16)))" to align struct 'refs_cb_data' to 16 bytes
/datasets/git/commit-graph.c:1649:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!peel_iterated_oid(oid, &peeled))
                                             ^
                                              {
/datasets/git/commit-graph.c:1651:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oid_object_info(the_repository, oid, NULL) == OBJ_COMMIT)
                                                                     ^
                                                                      {
/datasets/git/commit-graph.c:1665:6: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        int result;
            ^
                   = 0
/datasets/git/commit-graph.c:1667:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&data, 0, sizeof(data));
        ^~~~~~
/datasets/git/commit-graph.c:1667:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&data, 0, sizeof(data));
        ^~~~~~
/datasets/git/commit-graph.c:1669:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & COMMIT_GRAPH_WRITE_PROGRESS)
            ^       ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-graph.c:1669:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & COMMIT_GRAPH_WRITE_PROGRESS)
                                                ^
                                                 {
/datasets/git/commit-graph.c:1687:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i;
                 ^
                   = 0
/datasets/git/commit-graph.c:1687:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit-graph.c:1690:6: warning: variable 'dirlen' is not initialized [cppcoreguidelines-init-variables]
        int dirlen;
            ^
                   = 0
/datasets/git/commit-graph.c:1694:11: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        dirlen = packname.len;
                 ^
/datasets/git/commit-graph.c:1704:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < pack_indexes->nr; i++) {
        ^
/datasets/git/commit-graph.c:1705:22: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                struct packed_git *p;
                                   ^
                                     = NULL
/datasets/git/commit-graph.c:1705:22: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit-graph.c:1735:20: warning: variable 'oid' is not initialized [cppcoreguidelines-init-variables]
        struct object_id *oid;
                          ^
                              = NULL
/datasets/git/commit-graph.c:1737:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!oidset_size(commits))
                                  ^
                                   {
/datasets/git/commit-graph.c:1741:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((oid = oidset_iter_next(&iter))) {
        ^
/datasets/git/commit-graph.c:1741:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'oid' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((oid = oidset_iter_next(&iter))) {
               ^
/datasets/git/commit-graph.c:1750:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ctx->report_progress)
                                 ^
                                  {
/datasets/git/commit-graph.c:1756:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ctx->progress_done < ctx->approx_nr_objects)
                                                        ^
                                                         {
/datasets/git/commit-graph.c:1763:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i;
                 ^
                   = 0
/datasets/git/commit-graph.c:1763:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit-graph.c:1768:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ctx->report_progress)
                                 ^
                                  {
/datasets/git/commit-graph.c:1773:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < ctx->oids.nr; i = oid_array_next_unique(&ctx->oids, i)) {
                    ^
/datasets/git/commit-graph.c:1774:16: warning: variable 'num_parents' is not initialized [cppcoreguidelines-init-variables]
                unsigned int num_parents;
                             ^
                                         = 0
/datasets/git/commit-graph.c:1778:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                ALLOC_GROW(ctx->commits.list, ctx->commits.nr + 1, ctx->commits.alloc);
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/commit-graph.c:1778:3: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                ALLOC_GROW(ctx->commits.list, ctx->commits.nr + 1, ctx->commits.alloc);
                ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/commit-graph.c:1782:90: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    commit_graph_position(ctx->commits.list[ctx->commits.nr]) != COMMIT_NOT_FROM_GRAPH)
                                                                                                       ^
                                                                                                        {
/datasets/git/commit-graph.c:1785:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ctx->split && flags == COMMIT_GRAPH_SPLIT_REPLACE)
                                                                      ^
                                                                       {
/datasets/git/commit-graph.c:1787:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/commit-graph.c:1791:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (num_parents > 2)
                                    ^
                                     {
/datasets/git/commit-graph.c:1792:28: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        ctx->num_extra_edges += num_parents - 1;
                                                ^
/datasets/git/commit-graph.c:1799:12: warning: function 'write_graph_chunk_base_1' is within a recursive call chain [misc-no-recursion]
static int write_graph_chunk_base_1(struct hashfile *f,
           ^
/datasets/git/commit-graph.c:1799:12: note: example recursive call chain, starting from function 'write_graph_chunk_base_1'
/datasets/git/commit-graph.c:1807:8: note: Frame #1: function 'write_graph_chunk_base_1' calls function 'write_graph_chunk_base_1' here:
        num = write_graph_chunk_base_1(f, g->base_graph);
              ^
/datasets/git/commit-graph.c:1807:8: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/commit-graph.c:1799:54: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
static int write_graph_chunk_base_1(struct hashfile *f,
                                                     ^
/datasets/git/commit-graph.c:1800:30: warning: parameter name 'g' is too short, expected at least 3 characters [readability-identifier-length]
                                    struct commit_graph *g)
                                                         ^
/datasets/git/commit-graph.c:1804:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!g)
               ^
                {
/datasets/git/commit-graph.c:1812:52: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
static int write_graph_chunk_base(struct hashfile *f,
                                                   ^
/datasets/git/commit-graph.c:1826:12: warning: function 'write_commit_graph_file' has cognitive complexity of 39 (threshold 25) [readability-function-cognitive-complexity]
static int write_commit_graph_file(struct write_commit_graph_context *ctx)
           ^
/datasets/git/commit-graph.c:1837:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ctx->split) {
        ^
/datasets/git/commit-graph.c:1844:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/commit-graph.c:1848:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (safe_create_leading_directories(ctx->graph_name)) {
        ^
/datasets/git/commit-graph.c:1849:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                UNLEAK(ctx->graph_name);
                ^
/datasets/git/./git-compat-util.h:1544:21: note: expanded from macro 'UNLEAK'
#define UNLEAK(var) do {} while (0)
                    ^
/datasets/git/commit-graph.c:1855:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ctx->split) {
        ^
/datasets/git/commit-graph.c:1863:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (fd < 0) {
                ^
/datasets/git/commit-graph.c:1868:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (adjust_shared_perm(ctx->graph_name)) {
                ^
/datasets/git/commit-graph.c:1875:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/commit-graph.c:1891:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ctx->write_generation_data)
        ^
/datasets/git/commit-graph.c:1895:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ctx->num_generation_data_overflows)
        ^
/datasets/git/commit-graph.c:1899:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ctx->num_extra_edges)
        ^
/datasets/git/commit-graph.c:1903:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ctx->changed_paths) {
        ^
/datasets/git/commit-graph.c:1912:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ctx->num_commit_graphs_after > 1)
        ^
/datasets/git/commit-graph.c:1924:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ctx->report_progress) {
        ^
/datasets/git/commit-graph.c:1940:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ctx->split && ctx->base_graph_name && ctx->num_commit_graphs_after > 1) {
        ^
/datasets/git/commit-graph.c:1940:41: note: +1
        if (ctx->split && ctx->base_graph_name && ctx->num_commit_graphs_after > 1) {
                                               ^
/datasets/git/commit-graph.c:1955:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ctx->split) {
        ^
/datasets/git/commit-graph.c:1962:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!chainf) {
                ^
/datasets/git/commit-graph.c:1967:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ctx->base_graph_name) {
                ^
/datasets/git/commit-graph.c:1970:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ctx->num_commit_graphs_after > 1)
                        ^
/datasets/git/commit-graph.c:1975:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (strcmp(ctx->base_graph_name, dest)) {
                        ^
/datasets/git/commit-graph.c:1978:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (result) {
                                ^
/datasets/git/commit-graph.c:1983:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/commit-graph.c:1996:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < ctx->num_commit_graphs_after; i++)
                ^
/datasets/git/commit-graph.c:1999:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (result) {
                ^
/datasets/git/commit-graph.c:1828:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i;
                 ^
                   = 0
/datasets/git/commit-graph.c:1828:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit-graph.c:1829:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/commit-graph.c:1829:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit-graph.c:1830:19: warning: variable 'f' is not initialized [cppcoreguidelines-init-variables]
        struct hashfile *f;
                         ^
                           = NULL
/datasets/git/commit-graph.c:1830:19: warning: variable name 'f' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit-graph.c:1831:19: warning: variable name 'lk' is too short, expected at least 3 characters [readability-identifier-length]
        struct lock_file lk = LOCK_INIT;
                         ^
/datasets/git/commit-graph.c:1834:20: warning: variable 'cf' is not initialized [cppcoreguidelines-init-variables]
        struct chunkfile *cf;
                          ^
                             = NULL
/datasets/git/commit-graph.c:1834:20: warning: variable name 'cf' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit-graph.c:1849:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                UNLEAK(ctx->graph_name);
                ^
/datasets/git/./git-compat-util.h:1544:21: note: expanded from macro 'UNLEAK'
#define UNLEAK(var) do {} while (0)
                    ^
/datasets/git/commit-graph.c:1859:32: warning: 0444 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                               LOCK_DIE_ON_ERROR, 0444);
                                                                  ^
/datasets/git/commit-graph.c:1862:42: warning: 0444 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                fd = git_mkstemp_mode(ctx->graph_name, 0444);
                                                       ^
/datasets/git/commit-graph.c:1877:32: warning: 0444 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                               LOCK_DIE_ON_ERROR, 0444);
                                                                  ^
/datasets/git/commit-graph.c:1884:41: warning: performing an implicit widening conversion to type 'size_t' (aka 'unsigned long') of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        add_chunk(cf, GRAPH_CHUNKID_OIDFANOUT, GRAPH_FANOUT_SIZE,
                                               ^
/datasets/git/commit-graph.c:61:28: note: expanded from macro 'GRAPH_FANOUT_SIZE'
#define GRAPH_FANOUT_SIZE (4 * 256)
                           ^
/datasets/git/commit-graph.c:1884:41: note: make conversion explicit to silence this warning
        add_chunk(cf, GRAPH_CHUNKID_OIDFANOUT, GRAPH_FANOUT_SIZE,
                                               ^
/datasets/git/commit-graph.c:61:28: note: expanded from macro 'GRAPH_FANOUT_SIZE'
#define GRAPH_FANOUT_SIZE (4 * 256)
                           ^~~~~~~
/datasets/git/commit-graph.c:1884:41: note: perform multiplication in a wider type
        add_chunk(cf, GRAPH_CHUNKID_OIDFANOUT, GRAPH_FANOUT_SIZE,
                                               ^
/datasets/git/commit-graph.c:61:28: note: expanded from macro 'GRAPH_FANOUT_SIZE'
#define GRAPH_FANOUT_SIZE (4 * 256)
                           ^
/datasets/git/commit-graph.c:1888:46: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        add_chunk(cf, GRAPH_CHUNKID_DATA, (hashsz + 16) * ctx->commits.nr,
                                                    ^
/datasets/git/commit-graph.c:1891:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ctx->write_generation_data)
                                       ^
                                        {
/datasets/git/commit-graph.c:1895:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ctx->num_generation_data_overflows)
                                               ^
                                                {
/datasets/git/commit-graph.c:1899:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ctx->num_extra_edges)
                                 ^
                                  {
/datasets/git/commit-graph.c:1901:6: warning: performing an implicit widening conversion to type 'size_t' (aka 'unsigned long') of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                          4 * ctx->num_extra_edges,
                          ^
/datasets/git/commit-graph.c:1901:6: note: make conversion explicit to silence this warning
                          4 * ctx->num_extra_edges,
                          ^~~~~~~~~~~~~~~~~~~~~~~~
                          (size_t)()
/datasets/git/commit-graph.c:1901:6: note: perform multiplication in a wider type
                          4 * ctx->num_extra_edges,
                          ^
                          (long)
/datasets/git/commit-graph.c:1912:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ctx->num_commit_graphs_after > 1)
                                             ^
                                              {
/datasets/git/commit-graph.c:1914:6: warning: performing an implicit widening conversion to type 'size_t' (aka 'unsigned long') of a multiplication performed in type 'unsigned int' [bugprone-implicit-widening-of-multiplication-result]
                          hashsz * (ctx->num_commit_graphs_after - 1),
                          ^
/datasets/git/commit-graph.c:1914:6: note: make conversion explicit to silence this warning
                          hashsz * (ctx->num_commit_graphs_after - 1),
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                          (size_t)(                                 )
/datasets/git/commit-graph.c:1914:6: note: perform multiplication in a wider type
                          hashsz * (ctx->num_commit_graphs_after - 1),
                          ^~~~~~
                          (size_t)
/datasets/git/commit-graph.c:1952:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                          CSUM_HASH_IN_STREAM | CSUM_FSYNC);
                          ^
/datasets/git/./csum-file.h:37:29: note: expanded from macro 'CSUM_HASH_IN_STREAM'
#define CSUM_HASH_IN_STREAM     4
                                ^
/datasets/git/commit-graph.c:1957:9: warning: variable 'final_graph_name' is not initialized [cppcoreguidelines-init-variables]
                char *final_graph_name;
                      ^
                                       = NULL
/datasets/git/commit-graph.c:1958:7: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
                int result;
                    ^
                           = 0
/datasets/git/commit-graph.c:1968:16: warning: variable 'dest' is not initialized [cppcoreguidelines-init-variables]
                        const char *dest;
                                    ^
                                         = NULL
/datasets/git/commit-graph.c:1970:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ctx->num_commit_graphs_after > 1)
                                                             ^
                                                              {
/datasets/git/commit-graph.c:1975:8: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                        if (strcmp(ctx->base_graph_name, dest)) {
                            ^
                                                               != 0
/datasets/git/commit-graph.c:1996:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < ctx->num_commit_graphs_after; i++)
                ^
/datasets/git/commit-graph.c:1996:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < ctx->num_commit_graphs_after; i++)
                                                                  ^
                                                                   {
/datasets/git/commit-graph.c:1997:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(get_lock_file_fp(&lk), "%s\n", ctx->commit_graph_hash_after[i]);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-graph.c:1997:4: note: cast the expression to void to silence this warning
/datasets/git/commit-graph.c:2010:13: warning: function 'split_graph_merge_strategy' has cognitive complexity of 28 (threshold 25) [readability-function-cognitive-complexity]
static void split_graph_merge_strategy(struct write_commit_graph_context *ctx)
            ^
/datasets/git/commit-graph.c:2020:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ctx->opts) {
        ^
/datasets/git/commit-graph.c:2023:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ctx->opts->size_multiple)
                ^
/datasets/git/commit-graph.c:2031:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (flags == COMMIT_GRAPH_SPLIT_REPLACE)
        ^
/datasets/git/commit-graph.c:2033:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/commit-graph.c:2036:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (flags != COMMIT_GRAPH_SPLIT_MERGE_PROHIBITED &&
        ^
/datasets/git/commit-graph.c:2036:51: note: +1
        if (flags != COMMIT_GRAPH_SPLIT_MERGE_PROHIBITED &&
                                                         ^
/datasets/git/commit-graph.c:2038:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (g && (g->num_commits <= size_mult * num_commits ||
                ^
/datasets/git/commit-graph.c:2038:12: note: +1
                while (g && (g->num_commits <= size_mult * num_commits ||
                         ^
/datasets/git/commit-graph.c:2038:58: note: +1
                while (g && (g->num_commits <= size_mult * num_commits ||
                                                                       ^
/datasets/git/commit-graph.c:2039:21: note: +1
                            (max_commits && num_commits > max_commits))) {
                                         ^
/datasets/git/commit-graph.c:2040:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (g->odb != ctx->odb)
                        ^
/datasets/git/commit-graph.c:2050:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (flags != COMMIT_GRAPH_SPLIT_REPLACE)
        ^
/datasets/git/commit-graph.c:2052:7: note: +1, nesting level increased to 1
        else if (ctx->num_commit_graphs_after != 1)
             ^
/datasets/git/commit-graph.c:2056:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ctx->num_commit_graphs_after == 2) {
        ^
/datasets/git/commit-graph.c:2059:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(g->filename, old_graph_name) &&
                ^
/datasets/git/commit-graph.c:2059:44: note: +1
                if (!strcmp(g->filename, old_graph_name) &&
                                                         ^
/datasets/git/commit-graph.c:2071:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < ctx->num_commit_graphs_after &&
        ^
/datasets/git/commit-graph.c:2071:47: note: +1
        for (i = 0; i < ctx->num_commit_graphs_after &&
                                                     ^
/datasets/git/commit-graph.c:2078:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (g) {
        ^
/datasets/git/commit-graph.c:2079:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (i < ctx->num_commit_graphs_after)
                ^
/datasets/git/commit-graph.c:2086:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (i == ctx->num_commit_graphs_after - 2)
                ^
/datasets/git/commit-graph.c:2012:23: warning: variable 'g' is not initialized [cppcoreguidelines-init-variables]
        struct commit_graph *g;
                             ^
                               = NULL
/datasets/git/commit-graph.c:2012:23: warning: variable name 'g' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit-graph.c:2013:11: warning: variable 'num_commits' is not initialized [cppcoreguidelines-init-variables]
        uint32_t num_commits;
                 ^
                             = 0
/datasets/git/commit-graph.c:2015:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i;
                 ^
                   = 0
/datasets/git/commit-graph.c:2015:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit-graph.c:2023:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ctx->opts->size_multiple)
                                             ^
                                              {
/datasets/git/commit-graph.c:2031:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags == COMMIT_GRAPH_SPLIT_REPLACE)
                                                ^
                                                 {
/datasets/git/commit-graph.c:2033:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/commit-graph.c:2038:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (g && (g->num_commits <= size_mult * num_commits ||
                ^
/datasets/git/commit-graph.c:2038:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'g' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (g && (g->num_commits <= size_mult * num_commits ||
                       ^
/datasets/git/commit-graph.c:2040:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (g->odb != ctx->odb)
                                               ^
                                                {
/datasets/git/commit-graph.c:2050:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags != COMMIT_GRAPH_SPLIT_REPLACE)
                                                ^
                                                 {
/datasets/git/commit-graph.c:2052:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (ctx->num_commit_graphs_after != 1)
                                                   ^
                                                    {
/datasets/git/commit-graph.c:2057:52: warning: Access to field 'odb' results in a dereference of a null pointer (loaded from variable 'g') [clang-analyzer-core.NullDereference]
                char *old_graph_name = get_commit_graph_filename(g->odb);
                                                                 ^
/datasets/git/commit-graph.c:27:6: note: Assuming the condition is false
        if (!git_env_bool(GIT_TEST_COMMIT_GRAPH, 0))
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-graph.c:27:2: note: Taking false branch
        if (!git_env_bool(GIT_TEST_COMMIT_GRAPH, 0))
        ^
/datasets/git/commit-graph.c:30:6: note: Assuming the condition is false
        if (git_env_bool(GIT_TEST_COMMIT_GRAPH_CHANGED_PATHS, 0))
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-graph.c:30:2: note: Taking false branch
        if (git_env_bool(GIT_TEST_COMMIT_GRAPH_CHANGED_PATHS, 0))
        ^
/datasets/git/commit-graph.c:33:6: note: Calling 'write_commit_graph_reachable'
        if (write_commit_graph_reachable(the_repository->objects->odb,
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-graph.c:1669:2: note: Taking false branch
        if (flags & COMMIT_GRAPH_WRITE_PROGRESS)
        ^
/datasets/git/commit-graph.c:1677:11: note: Calling 'write_commit_graph'
        result = write_commit_graph(odb, NULL, &commits,
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-graph.c:2288:6: note: Assuming field 'core_commit_graph' is not equal to 0
        if (!r->settings.core_commit_graph) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-graph.c:2288:2: note: Taking false branch
        if (!r->settings.core_commit_graph) {
        ^
/datasets/git/commit-graph.c:2292:2: note: Taking false branch
        if (!commit_graph_compatible(r))
        ^
/datasets/git/commit-graph.c:2298:16: note: '?' condition is false
        ctx->append = flags & COMMIT_GRAPH_WRITE_APPEND ? 1 : 0;
                      ^
/datasets/git/commit-graph.c:2299:25: note: '?' condition is false
        ctx->report_progress = flags & COMMIT_GRAPH_WRITE_PROGRESS ? 1 : 0;
                               ^
/datasets/git/commit-graph.c:2300:15: note: '?' condition is false
        ctx->split = flags & COMMIT_GRAPH_WRITE_SPLIT ? 1 : 0;
                     ^
/datasets/git/commit-graph.c:2303:32: note: Assuming the condition is false
        ctx->write_generation_data = (get_configured_generation_version(r) == 2);
                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-graph.c:2318:6: note: Assuming field 'commit_graph' is null
        if (ctx->r->objects->commit_graph) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-graph.c:2318:2: note: Taking false branch
        if (ctx->r->objects->commit_graph) {
        ^
/datasets/git/commit-graph.c:2327:2: note: Taking false branch
        if (flags & COMMIT_GRAPH_WRITE_BLOOM_FILTERS)
        ^
/datasets/git/commit-graph.c:2329:2: note: Taking true branch
        if (!(flags & COMMIT_GRAPH_NO_WRITE_BLOOM_FILTERS)) {
        ^
/datasets/git/commit-graph.c:2335:7: note: 'g' is null
                if (g && g->chunk_bloom_data) {
                    ^
/datasets/git/commit-graph.c:2335:9: note: Left side of '&&' is false
                if (g && g->chunk_bloom_data) {
                      ^
/datasets/git/commit-graph.c:2341:11: note: Field 'split' is 0
        if (ctx->split) {
                 ^
/datasets/git/commit-graph.c:2341:2: note: Taking false branch
        if (ctx->split) {
        ^
/datasets/git/commit-graph.c:2366:11: note: Field 'append' is 0
        if (ctx->append && ctx->r->objects->commit_graph) {
                 ^
/datasets/git/commit-graph.c:2366:18: note: Left side of '&&' is false
        if (ctx->append && ctx->r->objects->commit_graph) {
                        ^
/datasets/git/commit-graph.c:2375:6: note: 'pack_indexes' is null
        if (pack_indexes) {
            ^~~~~~~~~~~~
/datasets/git/commit-graph.c:2375:2: note: Taking false branch
        if (pack_indexes) {
        ^
/datasets/git/commit-graph.c:2381:6: note: 'commits' is non-null
        if (commits) {
            ^~~~~~~
/datasets/git/commit-graph.c:2381:2: note: Taking true branch
        if (commits) {
        ^
/datasets/git/commit-graph.c:2382:8: note: Assuming 'res' is 0
                if ((res = fill_oids_from_commits(ctx, commits)))
                     ^~~
/datasets/git/commit-graph.c:2382:3: note: Taking false branch
                if ((res = fill_oids_from_commits(ctx, commits)))
                ^
/datasets/git/commit-graph.c:2386:7: note: 'pack_indexes' is null
        if (!pack_indexes && !commits) {
             ^~~~~~~~~~~~
/datasets/git/commit-graph.c:2386:6: note: Left side of '&&' is true
        if (!pack_indexes && !commits) {
            ^
/datasets/git/commit-graph.c:2386:24: note: 'commits' is non-null
        if (!pack_indexes && !commits) {
                              ^~~~~~~
/datasets/git/commit-graph.c:2386:2: note: Taking false branch
        if (!pack_indexes && !commits) {
        ^
/datasets/git/commit-graph.c:2395:6: note: Assuming field 'nr' is < GRAPH_EDGE_LAST_MASK
        if (ctx->commits.nr >= GRAPH_EDGE_LAST_MASK) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-graph.c:2395:2: note: Taking false branch
        if (ctx->commits.nr >= GRAPH_EDGE_LAST_MASK) {
        ^
/datasets/git/commit-graph.c:2401:6: note: Assuming field 'nr' is not equal to 0
        if (!ctx->commits.nr && !replace)
            ^~~~~~~~~~~~~~~~
/datasets/git/commit-graph.c:2401:23: note: Left side of '&&' is false
        if (!ctx->commits.nr && !replace)
                             ^
/datasets/git/commit-graph.c:2404:6: note: Assuming field 'split' is not equal to 0
        if (ctx->split) {
            ^~~~~~~~~~
/datasets/git/commit-graph.c:2404:2: note: Taking true branch
        if (ctx->split) {
        ^
/datasets/git/commit-graph.c:2405:3: note: Calling 'split_graph_merge_strategy'
                split_graph_merge_strategy(ctx);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-graph.c:2020:6: note: Assuming field 'opts' is null
        if (ctx->opts) {
            ^~~~~~~~~
/datasets/git/commit-graph.c:2020:2: note: Taking false branch
        if (ctx->opts) {
        ^
/datasets/git/commit-graph.c:2029:2: note: Value assigned to 'g'
        g = ctx->r->objects->commit_graph;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-graph.c:2031:6: note: 'flags' is not equal to COMMIT_GRAPH_SPLIT_REPLACE
        if (flags == COMMIT_GRAPH_SPLIT_REPLACE)
            ^~~~~
/datasets/git/commit-graph.c:2031:2: note: Taking false branch
        if (flags == COMMIT_GRAPH_SPLIT_REPLACE)
        ^
/datasets/git/commit-graph.c:2036:6: note: 'flags' is not equal to COMMIT_GRAPH_SPLIT_MERGE_PROHIBITED
        if (flags != COMMIT_GRAPH_SPLIT_MERGE_PROHIBITED &&
            ^~~~~
/datasets/git/commit-graph.c:2036:6: note: Left side of '&&' is true
/datasets/git/commit-graph.c:2037:6: note: 'flags' is not equal to COMMIT_GRAPH_SPLIT_REPLACE
            flags != COMMIT_GRAPH_SPLIT_REPLACE) {
            ^~~~~
/datasets/git/commit-graph.c:2036:2: note: Taking true branch
        if (flags != COMMIT_GRAPH_SPLIT_MERGE_PROHIBITED &&
        ^
/datasets/git/commit-graph.c:2038:10: note: Assuming 'g' is null
                while (g && (g->num_commits <= size_mult * num_commits ||
                       ^
/datasets/git/commit-graph.c:2038:12: note: Left side of '&&' is false
                while (g && (g->num_commits <= size_mult * num_commits ||
                         ^
/datasets/git/commit-graph.c:2050:6: note: 'flags' is not equal to COMMIT_GRAPH_SPLIT_REPLACE
        if (flags != COMMIT_GRAPH_SPLIT_REPLACE)
            ^~~~~
/datasets/git/commit-graph.c:2050:2: note: Taking true branch
        if (flags != COMMIT_GRAPH_SPLIT_REPLACE)
        ^
/datasets/git/commit-graph.c:2056:6: note: Assuming field 'num_commit_graphs_after' is equal to 2
        if (ctx->num_commit_graphs_after == 2) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-graph.c:2056:2: note: Taking true branch
        if (ctx->num_commit_graphs_after == 2) {
        ^
/datasets/git/commit-graph.c:2057:52: note: Access to field 'odb' results in a dereference of a null pointer (loaded from variable 'g')
                char *old_graph_name = get_commit_graph_filename(g->odb);
                                                                 ^
/datasets/git/commit-graph.c:2071:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ctx->num_commit_graphs_after &&
        ^
/datasets/git/commit-graph.c:2012:2: note: inferred assignment of ID-dependent value from ID-dependent member commit_graph [altera-id-dependent-backward-branch]
        struct commit_graph *g;
        ^
/datasets/git/commit-graph.c:2071:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < ctx->num_commit_graphs_after &&
                    ^
/datasets/git/commit-graph.c:2072:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    i < ctx->num_commit_graphs_before; i++)
                                                           ^
                                                            {
/datasets/git/commit-graph.c:2078:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (g) {
        ^
/datasets/git/commit-graph.c:2078:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'g' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (g) {
               ^
/datasets/git/commit-graph.c:2079:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (i < ctx->num_commit_graphs_after)
                                                     ^
                                                      {
/datasets/git/commit-graph.c:2086:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (i == ctx->num_commit_graphs_after - 2)
                                                          ^
                                                           {
/datasets/git/commit-graph.c:2095:32: warning: parameter name 'g' is too short, expected at least 3 characters [readability-identifier-length]
                               struct commit_graph *g)
                                                    ^
/datasets/git/commit-graph.c:2097:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i;
                 ^
                   = 0
/datasets/git/commit-graph.c:2097:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit-graph.c:2100:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(ctx->commits.list, ctx->commits.nr + g->num_commits, ctx->commits.alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/./commit-graph.h:83:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        uint32_t num_commits;
        ^
/datasets/git/commit-graph.c:2100:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_GROW(ctx->commits.list, ctx->commits.nr + g->num_commits, ctx->commits.alloc);
        ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/commit-graph.c:2102:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < g->num_commits; i++) {
        ^
/datasets/git/commit-graph.c:2102:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'num_commits' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < g->num_commits; i++) {
                    ^
/datasets/git/commit-graph.c:2104:18: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
                struct commit *result;
                               ^
                                      = NULL
/datasets/git/commit-graph.c:2120:39: warning: parameter name '_a' is too short, expected at least 3 characters [readability-identifier-length]
static int commit_compare(const void *_a, const void *_b)
                                      ^
/datasets/git/commit-graph.c:2120:55: warning: parameter name '_b' is too short, expected at least 3 characters [readability-identifier-length]
static int commit_compare(const void *_a, const void *_b)
                                                      ^
/datasets/git/commit-graph.c:2122:23: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        const struct commit *a = *(const struct commit **)_a;
                             ^
/datasets/git/commit-graph.c:2123:23: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        const struct commit *b = *(const struct commit **)_b;
                             ^
/datasets/git/commit-graph.c:2129:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        uint32_t i, dedup_i = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-graph.c:2129:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i, dedup_i = 0;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit-graph.c:2129:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit-graph.c:2131:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ctx->report_progress)
                                 ^
                                  {
/datasets/git/commit-graph.c:2136:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        QSORT(ctx->commits.list, ctx->commits.nr, commit_compare);
        ^
/datasets/git/./git-compat-util.h:1304:56: note: expanded from macro 'QSORT'
#define QSORT(base, n, compar) sane_qsort((base), (n), sizeof(*(base)), compar)
                                                       ^
/datasets/git/commit-graph.c:2139:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ctx->commits.nr; i++) {
        ^
/datasets/git/commit-graph.c:2139:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < ctx->commits.nr; i++) {
                    ^
/datasets/git/commit-graph.c:2152:17: warning: variable 'num_parents' is not initialized [cppcoreguidelines-init-variables]
                        unsigned int num_parents;
                                     ^
                                                 = 0
/datasets/git/commit-graph.c:2158:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (num_parents > 2)
                                            ^
                                             {
/datasets/git/commit-graph.c:2159:29: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                ctx->num_extra_edges += num_parents - 1;
                                                        ^
/datasets/git/commit-graph.c:2170:23: warning: variable name 'g' is too short, expected at least 3 characters [readability-identifier-length]
        struct commit_graph *g = ctx->r->objects->commit_graph;
                             ^
/datasets/git/commit-graph.c:2173:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (g && current_graph_number >= ctx->num_commit_graphs_after) {
        ^
/datasets/git/commit-graph.c:2173:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'g' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (g && current_graph_number >= ctx->num_commit_graphs_after) {
               ^
/datasets/git/commit-graph.c:2176:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ctx->report_progress)
                                         ^
                                          {
/datasets/git/commit-graph.c:2190:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ctx->new_base_graph)
                                ^
                                 {
/datasets/git/commit-graph.c:2198:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i;
                 ^
                   = 0
/datasets/git/commit-graph.c:2198:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit-graph.c:2201:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = ctx->num_commit_graphs_after - 1; i < ctx->num_commit_graphs_before; i++) {
        ^
/datasets/git/commit-graph.c:2201:45: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = ctx->num_commit_graphs_after - 1; i < ctx->num_commit_graphs_before; i++) {
                                                   ^
/datasets/git/commit-graph.c:2202:15: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                struct stat st;
                            ^
/datasets/git/commit-graph.c:2205:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (stat(ctx->commit_graph_filenames_before[i], &st) < 0)
                                                                         ^
                                                                          {
/datasets/git/commit-graph.c:2217:7: warning: variable 'dir' is not initialized [cppcoreguidelines-init-variables]
        DIR *dir;
             ^
                 = NULL
/datasets/git/commit-graph.c:2218:17: warning: variable 'de' is not initialized [cppcoreguidelines-init-variables]
        struct dirent *de;
                       ^
                          = NULL
/datasets/git/commit-graph.c:2218:17: warning: variable name 'de' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit-graph.c:2219:9: warning: variable 'dirnamelen' is not initialized [cppcoreguidelines-init-variables]
        size_t dirnamelen;
               ^
                          = 0
/datasets/git/commit-graph.c:2222:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ctx->opts && ctx->opts->expire_time)
                                                ^
                                                 {
/datasets/git/commit-graph.c:2235:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!dir)
                 ^
                  {
/datasets/git/commit-graph.c:2240:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'de' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((de = readdir(dir)) != NULL) {
               ^
/datasets/git/commit-graph.c:2240:15: warning: function is not thread safe [concurrency-mt-unsafe]
        while ((de = readdir(dir)) != NULL) {
                     ^
/datasets/git/commit-graph.c:2241:15: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                struct stat st;
                            ^
/datasets/git/commit-graph.c:2242:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                uint32_t i, found = 0;
                ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-graph.c:2242:12: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                uint32_t i, found = 0;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit-graph.c:2242:12: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit-graph.c:2247:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (stat(path.buf, &st) < 0)
                                            ^
                                             {
/datasets/git/commit-graph.c:2250:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (st.st_mtime > expire_time)
                                              ^
                                               {
/datasets/git/commit-graph.c:2252:18: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (path.len < 6 || strcmp(path.buf + path.len - 6, ".graph"))
                               ^
/datasets/git/commit-graph.c:2252:23: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (path.len < 6 || strcmp(path.buf + path.len - 6, ".graph"))
                                    ^
                                                                              != 0
/datasets/git/commit-graph.c:2252:52: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (path.len < 6 || strcmp(path.buf + path.len - 6, ".graph"))
                                                                 ^
/datasets/git/commit-graph.c:2252:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (path.len < 6 || strcmp(path.buf + path.len - 6, ".graph"))
                                                                              ^
                                                                               {
/datasets/git/commit-graph.c:2255:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < ctx->num_commit_graphs_after; i++) {
                ^
/datasets/git/commit-graph.c:2255:15: warning: backward branch (for loop) is ID-dependent due to member reference to 'num_commit_graphs_after' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < ctx->num_commit_graphs_after; i++) {
                            ^
/datasets/git/commit-graph.c:2263:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!found)
                           ^
                            {
/datasets/git/commit-graph.c:2268:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if(dir)
               ^
                {
/datasets/git/commit-graph.c:2273:5: warning: function 'write_commit_graph' has cognitive complexity of 51 (threshold 25) [readability-function-cognitive-complexity]
int write_commit_graph(struct object_directory *odb,
    ^
/datasets/git/commit-graph.c:2288:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!r->settings.core_commit_graph) {
        ^
/datasets/git/commit-graph.c:2292:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!commit_graph_compatible(r))
        ^
/datasets/git/commit-graph.c:2298:50: note: +1, including nesting penalty of 0, nesting level increased to 1
        ctx->append = flags & COMMIT_GRAPH_WRITE_APPEND ? 1 : 0;
                                                        ^
/datasets/git/commit-graph.c:2299:61: note: +1, including nesting penalty of 0, nesting level increased to 1
        ctx->report_progress = flags & COMMIT_GRAPH_WRITE_PROGRESS ? 1 : 0;
                                                                   ^
/datasets/git/commit-graph.c:2300:48: note: +1, including nesting penalty of 0, nesting level increased to 1
        ctx->split = flags & COMMIT_GRAPH_WRITE_SPLIT ? 1 : 0;
                                                      ^
/datasets/git/commit-graph.c:2318:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ctx->r->objects->commit_graph) {
        ^
/datasets/git/commit-graph.c:2321:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (g) {
                ^
/datasets/git/commit-graph.c:2327:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (flags & COMMIT_GRAPH_WRITE_BLOOM_FILTERS)
        ^
/datasets/git/commit-graph.c:2329:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!(flags & COMMIT_GRAPH_NO_WRITE_BLOOM_FILTERS)) {
        ^
/datasets/git/commit-graph.c:2335:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (g && g->chunk_bloom_data) {
                ^
/datasets/git/commit-graph.c:2335:9: note: +1
                if (g && g->chunk_bloom_data) {
                      ^
/datasets/git/commit-graph.c:2341:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ctx->split) {
        ^
/datasets/git/commit-graph.c:2344:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (g) {
                ^
/datasets/git/commit-graph.c:2349:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ctx->num_commit_graphs_before) {
                ^
/datasets/git/commit-graph.c:2354:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (g) {
                        ^
/datasets/git/commit-graph.c:2360:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ctx->opts)
                ^
/datasets/git/commit-graph.c:2366:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ctx->append && ctx->r->objects->commit_graph) {
        ^
/datasets/git/commit-graph.c:2366:18: note: +1
        if (ctx->append && ctx->r->objects->commit_graph) {
                        ^
/datasets/git/commit-graph.c:2368:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < g->num_commits; i++) {
                ^
/datasets/git/commit-graph.c:2375:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (pack_indexes) {
        ^
/datasets/git/commit-graph.c:2377:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((res = fill_oids_from_packs(ctx, pack_indexes)))
                ^
/datasets/git/commit-graph.c:2381:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (commits) {
        ^
/datasets/git/commit-graph.c:2382:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((res = fill_oids_from_commits(ctx, commits)))
                ^
/datasets/git/commit-graph.c:2386:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!pack_indexes && !commits) {
        ^
/datasets/git/commit-graph.c:2386:20: note: +1
        if (!pack_indexes && !commits) {
                          ^
/datasets/git/commit-graph.c:2395:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ctx->commits.nr >= GRAPH_EDGE_LAST_MASK) {
        ^
/datasets/git/commit-graph.c:2398:3: note: +1
                goto cleanup;
                ^
/datasets/git/commit-graph.c:2401:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!ctx->commits.nr && !replace)
        ^
/datasets/git/commit-graph.c:2401:23: note: +1
        if (!ctx->commits.nr && !replace)
                             ^
/datasets/git/commit-graph.c:2404:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ctx->split) {
        ^
/datasets/git/commit-graph.c:2407:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!replace)
                ^
/datasets/git/commit-graph.c:2409:4: note: +1, nesting level increased to 1
        } else
          ^
/datasets/git/commit-graph.c:2415:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ctx->write_generation_data)
        ^
/datasets/git/commit-graph.c:2418:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ctx->changed_paths)
        ^
/datasets/git/commit-graph.c:2423:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ctx->split)
        ^
/datasets/git/commit-graph.c:2434:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ctx->commit_graph_filenames_after) {
        ^
/datasets/git/commit-graph.c:2435:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < ctx->num_commit_graphs_after; i++) {
                ^
/datasets/git/commit-graph.c:2440:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < ctx->num_commit_graphs_before; i++)
                ^
/datasets/git/commit-graph.c:2279:21: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        struct repository *r = the_repository;
                           ^
/datasets/git/commit-graph.c:2280:37: warning: variable 'ctx' is not initialized [cppcoreguidelines-init-variables]
        struct write_commit_graph_context *ctx;
                                           ^
                                               = NULL
/datasets/git/commit-graph.c:2281:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i;
                 ^
                   = 0
/datasets/git/commit-graph.c:2281:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit-graph.c:2292:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!commit_graph_compatible(r))
                                        ^
                                         {
/datasets/git/commit-graph.c:2298:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ctx->append = flags & COMMIT_GRAPH_WRITE_APPEND ? 1 : 0;
                      ^       ~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-graph.c:2299:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ctx->report_progress = flags & COMMIT_GRAPH_WRITE_PROGRESS ? 1 : 0;
                               ^       ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-graph.c:2300:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ctx->split = flags & COMMIT_GRAPH_WRITE_SPLIT ? 1 : 0;
                     ^       ~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-graph.c:2319:3: note: inferred assignment of ID-dependent value from ID-dependent member commit_graph [altera-id-dependent-backward-branch]
                struct commit_graph *g = ctx->r->objects->commit_graph;
                ^
/datasets/git/commit-graph.c:2319:24: warning: variable name 'g' is too short, expected at least 3 characters [readability-identifier-length]
                struct commit_graph *g = ctx->r->objects->commit_graph;
                                     ^
/datasets/git/commit-graph.c:2321:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (g) {
                ^
/datasets/git/commit-graph.c:2321:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'g' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (g) {
                       ^
/datasets/git/commit-graph.c:2327:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & COMMIT_GRAPH_WRITE_BLOOM_FILTERS)
            ^       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-graph.c:2327:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & COMMIT_GRAPH_WRITE_BLOOM_FILTERS)
                                                     ^
                                                      {
/datasets/git/commit-graph.c:2329:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & COMMIT_GRAPH_NO_WRITE_BLOOM_FILTERS)) {
              ^       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-graph.c:2330:24: warning: variable 'g' is not initialized [cppcoreguidelines-init-variables]
                struct commit_graph *g;
                                     ^
                                       = NULL
/datasets/git/commit-graph.c:2330:24: warning: variable name 'g' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit-graph.c:2342:3: note: inferred assignment of ID-dependent value from ID-dependent member commit_graph [altera-id-dependent-backward-branch]
                struct commit_graph *g = ctx->r->objects->commit_graph;
                ^
/datasets/git/commit-graph.c:2342:24: warning: variable name 'g' is too short, expected at least 3 characters [readability-identifier-length]
                struct commit_graph *g = ctx->r->objects->commit_graph;
                                     ^
/datasets/git/commit-graph.c:2342:3: note: inferred assignment of ID-dependent value from ID-dependent member commit_graph [altera-id-dependent-backward-branch]
                struct commit_graph *g = ctx->r->objects->commit_graph;
                ^
/datasets/git/commit-graph.c:2344:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (g) {
                ^
/datasets/git/commit-graph.c:2344:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'g' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (g) {
                       ^
/datasets/git/commit-graph.c:2354:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (g) {
                        ^
/datasets/git/commit-graph.c:2354:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'g' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (g) {
                               ^
/datasets/git/commit-graph.c:2360:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ctx->opts)
                              ^
                               {
/datasets/git/commit-graph.c:2361:14: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        replace = ctx->opts->split_flags & COMMIT_GRAPH_SPLIT_REPLACE;
                                  ^
/datasets/git/commit-graph.c:2361:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        replace = ctx->opts->split_flags & COMMIT_GRAPH_SPLIT_REPLACE;
                                  ^                        ~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-graph.c:2281:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        uint32_t i;
        ^
/datasets/git/commit-graph.c:2367:24: warning: variable name 'g' is too short, expected at least 3 characters [readability-identifier-length]
                struct commit_graph *g = ctx->r->objects->commit_graph;
                                     ^
/datasets/git/commit-graph.c:2368:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < g->num_commits; i++) {
                ^
/datasets/git/commit-graph.c:2368:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < g->num_commits; i++) {
                            ^
/datasets/git/commit-graph.c:2370:18: warning: result of multiplication in type 'unsigned int' is used as a pointer offset after an implicit widening conversion to type 'size_t' [bugprone-implicit-widening-of-multiplication-result]
                        oidread(&oid, g->chunk_oid_lookup + g->hash_len * i);
                                      ^
/datasets/git/commit-graph.c:2370:40: note: make conversion explicit to silence this warning
                        oidread(&oid, g->chunk_oid_lookup + g->hash_len * i);
                                                            ^~~~~~~~~~~~~~~
                                                            (size_t)(     )
/datasets/git/commit-graph.c:2370:40: note: perform multiplication in a wider type
                        oidread(&oid, g->chunk_oid_lookup + g->hash_len * i);
                                                            ^~~~~~~~~~~
                                                            (size_t)
/datasets/git/commit-graph.c:2377:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                if ((res = fill_oids_from_packs(ctx, pack_indexes)))
                     ^
/datasets/git/commit-graph.c:2377:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/commit-graph.c:2377:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/commit-graph.c:2377:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((res = fill_oids_from_packs(ctx, pack_indexes)))
                                                                    ^
                                                                     {
/datasets/git/commit-graph.c:2382:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                if ((res = fill_oids_from_commits(ctx, commits)))
                     ^
/datasets/git/commit-graph.c:2382:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/commit-graph.c:2382:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/commit-graph.c:2382:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((res = fill_oids_from_commits(ctx, commits)))
                                                                 ^
                                                                  {
/datasets/git/commit-graph.c:2401:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ctx->commits.nr && !replace)
                                         ^
                                          {
/datasets/git/commit-graph.c:2407:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!replace)
                             ^
                              {
/datasets/git/commit-graph.c:2409:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/commit-graph.c:2415:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ctx->write_generation_data)
                                       ^
                                        {
/datasets/git/commit-graph.c:2418:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ctx->changed_paths)
                               ^
                                {
/datasets/git/commit-graph.c:2423:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ctx->split)
                       ^
                        {
/datasets/git/commit-graph.c:2435:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < ctx->num_commit_graphs_after; i++) {
                ^
/datasets/git/commit-graph.c:2435:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < ctx->num_commit_graphs_after; i++) {
                            ^
/datasets/git/commit-graph.c:2440:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < ctx->num_commit_graphs_before; i++)
                ^
/datasets/git/commit-graph.c:2440:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < ctx->num_commit_graphs_before; i++)
                            ^
/datasets/git/commit-graph.c:2440:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < ctx->num_commit_graphs_before; i++)
                                                                   ^
                                                                    {
/datasets/git/commit-graph.c:2454:12: warning: variable 'verify_commit_graph_error' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int verify_commit_graph_error;
           ^
/datasets/git/commit-graph.c:2459:10: warning: variable name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
        va_list ap;
                ^
/datasets/git/commit-graph.c:2463:2: warning: the value returned by this function should be used [cert-err33-c]
        vfprintf(stderr, fmt, ap);
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-graph.c:2463:2: note: cast the expression to void to silence this warning
/datasets/git/commit-graph.c:2463:2: warning: Function 'vfprintf' is called with an uninitialized va_list argument [clang-analyzer-valist.Uninitialized]
        vfprintf(stderr, fmt, ap);
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-graph.c:2463:2: note: Function 'vfprintf' is called with an uninitialized va_list argument
        vfprintf(stderr, fmt, ap);
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-graph.c:2464:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(stderr, "\n");
        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-graph.c:2464:2: note: cast the expression to void to silence this warning
/datasets/git/commit-graph.c:2471:61: warning: parameter name 'g' is too short, expected at least 3 characters [readability-identifier-length]
static int commit_graph_checksum_valid(struct commit_graph *g)
                                                            ^
/datasets/git/commit-graph.c:2476:5: warning: function 'verify_commit_graph' is within a recursive call chain [misc-no-recursion]
int verify_commit_graph(struct repository *r, struct commit_graph *g, int flags)
    ^
/datasets/git/commit-graph.c:2476:5: note: example recursive call chain, starting from function 'verify_commit_graph'
/datasets/git/commit-graph.c:2636:18: note: Frame #1: function 'verify_commit_graph' calls function 'verify_commit_graph' here:
                local_error |= verify_commit_graph(r, g->base_graph, flags);
                               ^
/datasets/git/commit-graph.c:2636:18: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/commit-graph.c:2476:5: warning: function 'verify_commit_graph' has cognitive complexity of 54 (threshold 25) [readability-function-cognitive-complexity]
int verify_commit_graph(struct repository *r, struct commit_graph *g, int flags)
    ^
/datasets/git/commit-graph.c:2484:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!g) {
        ^
/datasets/git/commit-graph.c:2490:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (verify_commit_graph_error)
        ^
/datasets/git/commit-graph.c:2493:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!commit_graph_checksum_valid(g)) {
        ^
/datasets/git/commit-graph.c:2498:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < g->num_commits; i++) {
        ^
/datasets/git/commit-graph.c:2503:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (i && oidcmp(&prev_oid, &cur_oid) >= 0)
                ^
/datasets/git/commit-graph.c:2503:9: note: +1
                if (i && oidcmp(&prev_oid, &cur_oid) >= 0)
                      ^
/datasets/git/commit-graph.c:2510:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (cur_oid.hash[0] > cur_fanout_pos) {
                ^
/datasets/git/commit-graph.c:2513:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (i != fanout_value)
                        ^
/datasets/git/commit-graph.c:2520:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!parse_commit_in_graph_one(r, g, graph_commit))
                ^
/datasets/git/commit-graph.c:2525:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (cur_fanout_pos < 256) {
        ^
/datasets/git/commit-graph.c:2528:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (g->num_commits != fanout_value)
                ^
/datasets/git/commit-graph.c:2535:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (verify_commit_graph_error & ~VERIFY_COMMIT_GRAPH_ERROR_HASH)
        ^
/datasets/git/commit-graph.c:2538:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (flags & COMMIT_GRAPH_WRITE_PROGRESS)
        ^
/datasets/git/commit-graph.c:2542:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < g->num_commits; i++) {
        ^
/datasets/git/commit-graph.c:2553:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (parse_commit_internal(odb_commit, 0, 0)) {
                ^
/datasets/git/commit-graph.c:2559:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!oideq(&get_commit_tree_in_graph_one(r, g, graph_commit)->object.oid,
                ^
/datasets/git/commit-graph.c:2569:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (graph_parents) {
                ^
/datasets/git/commit-graph.c:2570:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!odb_parents) {
                        ^
/datasets/git/commit-graph.c:2579:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!oideq(&graph_parents->item->object.oid, &odb_parents->item->object.oid))
                        ^
/datasets/git/commit-graph.c:2586:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (generation > max_generation)
                        ^
/datasets/git/commit-graph.c:2593:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (odb_parents)
                ^
/datasets/git/commit-graph.c:2597:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!commit_graph_generation(graph_commit)) {
                ^
/datasets/git/commit-graph.c:2598:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (generation_zero == GENERATION_NUMBER_EXISTS)
                        ^
/datasets/git/commit-graph.c:2602:10: note: +1, nesting level increased to 2
                } else if (generation_zero == GENERATION_ZERO_EXISTS)
                       ^
/datasets/git/commit-graph.c:2606:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (generation_zero == GENERATION_ZERO_EXISTS)
                ^
/datasets/git/commit-graph.c:2615:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!g->read_generation_data && max_generation == GENERATION_NUMBER_V1_MAX)
                ^
/datasets/git/commit-graph.c:2615:32: note: +1
                if (!g->read_generation_data && max_generation == GENERATION_NUMBER_V1_MAX)
                                             ^
/datasets/git/commit-graph.c:2619:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (generation < max_generation + 1)
                ^
/datasets/git/commit-graph.c:2625:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (graph_commit->date != odb_commit->date)
                ^
/datasets/git/commit-graph.c:2635:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!(flags & COMMIT_GRAPH_VERIFY_SHALLOW) && g->base_graph)
        ^
/datasets/git/commit-graph.c:2635:45: note: +1
        if (!(flags & COMMIT_GRAPH_VERIFY_SHALLOW) && g->base_graph)
                                                   ^
/datasets/git/commit-graph.c:2476:44: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int verify_commit_graph(struct repository *r, struct commit_graph *g, int flags)
                                           ^
/datasets/git/commit-graph.c:2476:68: warning: parameter name 'g' is too short, expected at least 3 characters [readability-identifier-length]
int verify_commit_graph(struct repository *r, struct commit_graph *g, int flags)
                                                                   ^
/datasets/git/commit-graph.c:2478:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        uint32_t i, cur_fanout_pos = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-graph.c:2478:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i, cur_fanout_pos = 0;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit-graph.c:2478:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit-graph.c:2479:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct object_id prev_oid, cur_oid;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-graph.c:2490:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (verify_commit_graph_error)
                                      ^
                                       {
/datasets/git/commit-graph.c:2498:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'num_commits' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < g->num_commits; i++) {
                    ^
/datasets/git/commit-graph.c:2499:18: warning: variable 'graph_commit' is not initialized [cppcoreguidelines-init-variables]
                struct commit *graph_commit;
                               ^
                                            = NULL
/datasets/git/commit-graph.c:2501:21: warning: result of multiplication in type 'unsigned int' is used as a pointer offset after an implicit widening conversion to type 'size_t' [bugprone-implicit-widening-of-multiplication-result]
                oidread(&cur_oid, g->chunk_oid_lookup + g->hash_len * i);
                                  ^
/datasets/git/commit-graph.c:2501:43: note: make conversion explicit to silence this warning
                oidread(&cur_oid, g->chunk_oid_lookup + g->hash_len * i);
                                                        ^~~~~~~~~~~~~~~
                                                        (size_t)(     )
/datasets/git/commit-graph.c:2501:43: note: perform multiplication in a wider type
                oidread(&cur_oid, g->chunk_oid_lookup + g->hash_len * i);
                                                        ^~~~~~~~~~~
                                                        (size_t)
/datasets/git/commit-graph.c:2503:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (i && oidcmp(&prev_oid, &cur_oid) >= 0)
                                                          ^
                                                           {
/datasets/git/commit-graph.c:2510:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (cur_oid.hash[0] > cur_fanout_pos) {
                ^
/datasets/git/commit-graph.c:2513:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (i != fanout_value)
                                              ^
                                               {
/datasets/git/commit-graph.c:2520:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!parse_commit_in_graph_one(r, g, graph_commit))
                                                                   ^
                                                                    {
/datasets/git/commit-graph.c:2525:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (cur_fanout_pos < 256) {
        ^
/datasets/git/commit-graph.c:2525:26: warning: 256 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        while (cur_fanout_pos < 256) {
                                ^
/datasets/git/commit-graph.c:2528:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (g->num_commits != fanout_value)
                                                   ^
                                                    {
/datasets/git/commit-graph.c:2535:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (verify_commit_graph_error & ~VERIFY_COMMIT_GRAPH_ERROR_HASH)
            ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-graph.c:2535:34: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
        if (verify_commit_graph_error & ~VERIFY_COMMIT_GRAPH_ERROR_HASH)
                                        ^
/datasets/git/commit-graph.c:2535:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (verify_commit_graph_error & ~VERIFY_COMMIT_GRAPH_ERROR_HASH)
                                                                        ^
                                                                         {
/datasets/git/commit-graph.c:2538:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & COMMIT_GRAPH_WRITE_PROGRESS)
            ^~~~~
/datasets/git/commit-graph.c:2538:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & COMMIT_GRAPH_WRITE_PROGRESS)
                                                ^
                                                 {
/datasets/git/commit-graph.c:2542:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'num_commits' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < g->num_commits; i++) {
                    ^
/datasets/git/commit-graph.c:2543:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                struct commit *graph_commit, *odb_commit;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-graph.c:2543:18: warning: variable 'graph_commit' is not initialized [cppcoreguidelines-init-variables]
                struct commit *graph_commit, *odb_commit;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit-graph.c:2543:33: warning: variable 'odb_commit' is not initialized [cppcoreguidelines-init-variables]
                struct commit *graph_commit, *odb_commit;
                                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit-graph.c:2544:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                struct commit_list *graph_parents, *odb_parents;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-graph.c:2544:23: warning: variable 'graph_parents' is not initialized [cppcoreguidelines-init-variables]
                struct commit_list *graph_parents, *odb_parents;
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit-graph.c:2544:39: warning: variable 'odb_parents' is not initialized [cppcoreguidelines-init-variables]
                struct commit_list *graph_parents, *odb_parents;
                                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit-graph.c:2546:15: warning: variable 'generation' is not initialized [cppcoreguidelines-init-variables]
                timestamp_t generation;
                            ^
                                       = 0
/datasets/git/commit-graph.c:2549:21: warning: result of multiplication in type 'unsigned int' is used as a pointer offset after an implicit widening conversion to type 'size_t' [bugprone-implicit-widening-of-multiplication-result]
                oidread(&cur_oid, g->chunk_oid_lookup + g->hash_len * i);
                                  ^
/datasets/git/commit-graph.c:2549:43: note: make conversion explicit to silence this warning
                oidread(&cur_oid, g->chunk_oid_lookup + g->hash_len * i);
                                                        ^~~~~~~~~~~~~~~
                                                        (size_t)(     )
/datasets/git/commit-graph.c:2549:43: note: perform multiplication in a wider type
                oidread(&cur_oid, g->chunk_oid_lookup + g->hash_len * i);
                                                        ^~~~~~~~~~~
                                                        (size_t)
/datasets/git/commit-graph.c:2560:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                           get_commit_tree_oid(odb_commit)))
                                                            ^
                                                             {
/datasets/git/commit-graph.c:2569:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (graph_parents) {
                ^
/datasets/git/commit-graph.c:2569:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'graph_parents' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (graph_parents) {
                       ^
/datasets/git/commit-graph.c:2579:81: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!oideq(&graph_parents->item->object.oid, &odb_parents->item->object.oid))
                                                                                                     ^
                                                                                                      {
/datasets/git/commit-graph.c:2586:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (generation > max_generation)
                                                        ^
                                                         {
/datasets/git/commit-graph.c:2593:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (odb_parents)
                                ^
                                 {
/datasets/git/commit-graph.c:2598:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (generation_zero == GENERATION_NUMBER_EXISTS)
                                                                        ^
                                                                         {
/datasets/git/commit-graph.c:2602:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else if (generation_zero == GENERATION_ZERO_EXISTS)
                                                                     ^
                                                                      {
/datasets/git/commit-graph.c:2606:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (generation_zero == GENERATION_ZERO_EXISTS)
                                                              ^
                                                               {
/datasets/git/commit-graph.c:2615:78: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!g->read_generation_data && max_generation == GENERATION_NUMBER_V1_MAX)
                                                                                           ^
                                                                                            {
/datasets/git/commit-graph.c:2619:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (generation < max_generation + 1)
                                                    ^
                                                     {
/datasets/git/commit-graph.c:2625:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (graph_commit->date != odb_commit->date)
                                                           ^
                                                            {
/datasets/git/commit-graph.c:2635:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & COMMIT_GRAPH_VERIFY_SHALLOW) && g->base_graph)
              ^~~~~
/datasets/git/commit-graph.c:2635:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & COMMIT_GRAPH_VERIFY_SHALLOW) && g->base_graph)
                      ^
/datasets/git/./commit-graph.h:170:38: note: expanded from macro 'COMMIT_GRAPH_VERIFY_SHALLOW'
#define COMMIT_GRAPH_VERIFY_SHALLOW     (1 << 0)
                                         ^
/datasets/git/commit-graph.c:2635:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(flags & COMMIT_GRAPH_VERIFY_SHALLOW) && g->base_graph)
                                                                    ^
                                                                     {
/datasets/git/commit-graph.c:2636:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                local_error |= verify_commit_graph(r, g->base_graph, flags);
                ^~~~~~~~~~~
/datasets/git/commit-graph.c:2641:45: warning: parameter name 'g' is too short, expected at least 3 characters [readability-identifier-length]
void free_commit_graph(struct commit_graph *g)
                                            ^
/datasets/git/commit-graph.c:2643:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!g)
               ^
                {
/datasets/git/commit-graph.c:2654:46: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void disable_commit_graph(struct repository *r)
                                             ^
/datasets/git/commit-reach.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "commit.h"
^        ~~~~~~~~~~
         "commit-graph.h"
/datasets/git/commit-reach.c:13:1: warning: replace macro with enum [modernize-macro-to-enum]
#define PARENT1         (1u<<16)
^~~~~~~~
                =               ,
/datasets/git/commit-reach.c:13:9: warning: macro 'PARENT1' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define PARENT1         (1u<<16)
        ^
/datasets/git/commit-reach.c:14:9: warning: macro 'PARENT2' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define PARENT2         (1u<<17)
        ^
/datasets/git/commit-reach.c:15:9: warning: macro 'STALE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define STALE           (1u<<18)
        ^
/datasets/git/commit-reach.c:16:9: warning: macro 'RESULT' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define RESULT          (1u<<19)
        ^
/datasets/git/commit-reach.c:18:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
static const unsigned all_flags = (PARENT1 | PARENT2 | STALE | RESULT);
                                   ^
/datasets/git/commit-reach.c:13:19: note: expanded from macro 'PARENT1'
#define PARENT1         (1u<<16)
                         ^   ~~
/datasets/git/commit-reach.c:18:46: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
static const unsigned all_flags = (PARENT1 | PARENT2 | STALE | RESULT);
                                             ^
/datasets/git/commit-reach.c:14:19: note: expanded from macro 'PARENT2'
#define PARENT2         (1u<<17)
                         ^   ~~
/datasets/git/commit-reach.c:18:56: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
static const unsigned all_flags = (PARENT1 | PARENT2 | STALE | RESULT);
                                                       ^
/datasets/git/commit-reach.c:15:17: note: expanded from macro 'STALE'
#define STALE           (1u<<18)
                         ^   ~~
/datasets/git/commit-reach.c:18:64: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
static const unsigned all_flags = (PARENT1 | PARENT2 | STALE | RESULT);
                                                               ^
/datasets/git/commit-reach.c:16:18: note: expanded from macro 'RESULT'
#define RESULT          (1u<<19)
                         ^   ~~
/datasets/git/commit-reach.c:20:47: warning: parameter name '_a' is too short, expected at least 3 characters [readability-identifier-length]
static int compare_commits_by_gen(const void *_a, const void *_b)
                                              ^
/datasets/git/commit-reach.c:20:63: warning: parameter name '_b' is too short, expected at least 3 characters [readability-identifier-length]
static int compare_commits_by_gen(const void *_a, const void *_b)
                                                              ^
/datasets/git/commit-reach.c:22:23: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        const struct commit *a = *(const struct commit * const *)_a;
                             ^
/datasets/git/commit-reach.c:23:23: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        const struct commit *b = *(const struct commit * const *)_b;
                             ^
/datasets/git/commit-reach.c:28:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (generation_a < generation_b)
                                        ^
                                         {
/datasets/git/commit-reach.c:30:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (generation_a > generation_b)
                                        ^
                                         {
/datasets/git/commit-reach.c:32:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (a->date < b->date)
                              ^
                               {
/datasets/git/commit-reach.c:34:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (a->date > b->date)
                              ^
                               {
/datasets/git/commit-reach.c:41:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/commit-reach.c:41:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit-reach.c:42:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < queue->nr; i++) {
        ^
/datasets/git/commit-reach.c:44:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(commit->object.flags & STALE))
                                             ^
/datasets/git/commit-reach.c:15:17: note: expanded from macro 'STALE'
#define STALE           (1u<<18)
                         ^   ~~
/datasets/git/commit-reach.c:44:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(commit->object.flags & STALE))
                                                    ^
                                                     {
/datasets/git/commit-reach.c:51:68: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static struct commit_list *paint_down_to_common(struct repository *r,
                                                                   ^
/datasets/git/commit-reach.c:58:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/commit-reach.c:58:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit-reach.c:59:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        timestamp_t last_gen = GENERATION_NUMBER_INFINITY;
                               ^
/datasets/git/./negotiator/../commit.h:14:38: note: expanded from macro 'GENERATION_NUMBER_INFINITY'
#define GENERATION_NUMBER_INFINITY ((1ULL << 63) - 1)
                                     ^       ~~
/datasets/git/commit-reach.c:61:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!min_generation && !corrected_commit_dates_enabled(r))
                                                                  ^
                                                                   {
/datasets/git/commit-reach.c:64:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        one->object.flags |= PARENT1;
                             ^
/datasets/git/commit-reach.c:13:19: note: expanded from macro 'PARENT1'
#define PARENT1         (1u<<16)
                         ^   ~~
/datasets/git/commit-reach.c:71:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < n; i++) {
        ^
/datasets/git/commit-reach.c:72:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                twos[i]->object.flags |= PARENT2;
                                         ^
/datasets/git/commit-reach.c:14:19: note: expanded from macro 'PARENT2'
#define PARENT2         (1u<<17)
                         ^   ~~
/datasets/git/commit-reach.c:78:23: warning: variable 'parents' is not initialized [cppcoreguidelines-init-variables]
                struct commit_list *parents;
                                    ^
                                            = NULL
/datasets/git/commit-reach.c:79:7: warning: variable 'flags' is not initialized [cppcoreguidelines-init-variables]
                int flags;
                    ^
                          = 0
/datasets/git/commit-reach.c:82:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (min_generation && generation > last_gen)
                                                            ^
                                                             {
/datasets/git/commit-reach.c:88:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (generation < min_generation)
                                                ^
                                                 {
/datasets/git/commit-reach.c:91:11: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                flags = commit->object.flags & (PARENT1 | PARENT2 | STALE);
                        ^
/datasets/git/commit-reach.c:91:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags = commit->object.flags & (PARENT1 | PARENT2 | STALE);
                                                ^
/datasets/git/commit-reach.c:13:19: note: expanded from macro 'PARENT1'
#define PARENT1         (1u<<16)
                         ^   ~~
/datasets/git/commit-reach.c:91:45: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags = commit->object.flags & (PARENT1 | PARENT2 | STALE);
                                                          ^
/datasets/git/commit-reach.c:14:19: note: expanded from macro 'PARENT2'
#define PARENT2         (1u<<17)
                         ^   ~~
/datasets/git/commit-reach.c:91:55: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags = commit->object.flags & (PARENT1 | PARENT2 | STALE);
                                                                    ^
/datasets/git/commit-reach.c:15:17: note: expanded from macro 'STALE'
#define STALE           (1u<<18)
                         ^   ~~
/datasets/git/commit-reach.c:92:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flags == (PARENT1 | PARENT2)) {
                              ^
/datasets/git/commit-reach.c:13:19: note: expanded from macro 'PARENT1'
#define PARENT1         (1u<<16)
                         ^   ~~
/datasets/git/commit-reach.c:92:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flags == (PARENT1 | PARENT2)) {
                                        ^
/datasets/git/commit-reach.c:14:19: note: expanded from macro 'PARENT2'
#define PARENT2         (1u<<17)
                         ^   ~~
/datasets/git/commit-reach.c:93:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!(commit->object.flags & RESULT)) {
                                                     ^
/datasets/git/commit-reach.c:16:18: note: expanded from macro 'RESULT'
#define RESULT          (1u<<19)
                         ^   ~~
/datasets/git/commit-reach.c:94:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                commit->object.flags |= RESULT;
                                                        ^
/datasets/git/commit-reach.c:16:18: note: expanded from macro 'RESULT'
#define RESULT          (1u<<19)
                         ^   ~~
/datasets/git/commit-reach.c:98:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        flags |= STALE;
                        ^~~~~
/datasets/git/commit-reach.c:98:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        flags |= STALE;
                                 ^
/datasets/git/commit-reach.c:15:17: note: expanded from macro 'STALE'
#define STALE           (1u<<18)
                         ^   ~~
/datasets/git/commit-reach.c:101:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (parents) {
                ^
/datasets/git/commit-reach.c:101:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'parents' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (parents) {
                       ^
/datasets/git/commit-reach.c:102:19: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                        struct commit *p = parents->item;
                                       ^
/datasets/git/commit-reach.c:104:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if ((p->object.flags & flags) == flags)
                             ^                 ~~~~~
/datasets/git/commit-reach.c:104:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if ((p->object.flags & flags) == flags)
                                                               ^
                                                                {
/datasets/git/commit-reach.c:106:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (repo_parse_commit(r, p))
                                                    ^
                                                     {
/datasets/git/commit-reach.c:108:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        p->object.flags |= flags;
                        ^                  ~~~~~
/datasets/git/commit-reach.c:117:64: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static struct commit_list *merge_bases_many(struct repository *r,
                                                               ^
/datasets/git/commit-reach.c:123:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/commit-reach.c:123:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit-reach.c:125:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < n; i++) {
        ^
/datasets/git/commit-reach.c:126:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (one == twos[i])
                                   ^
                                    {
/datasets/git/commit-reach.c:134:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_parse_commit(r, one))
                                      ^
                                       {
/datasets/git/commit-reach.c:136:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < n; i++) {
        ^
/datasets/git/commit-reach.c:121:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct commit_list *list = NULL;
        ^
/datasets/git/commit-reach.c:137:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (repo_parse_commit(r, twos[i]))
                                                  ^
                                                   {
/datasets/git/commit-reach.c:143:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (list) {
        ^
/datasets/git/commit-reach.c:143:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'list' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (list) {
               ^
/datasets/git/commit-reach.c:145:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(commit->object.flags & STALE))
                                             ^
/datasets/git/commit-reach.c:15:17: note: expanded from macro 'STALE'
#define STALE           (1u<<18)
                         ^   ~~
/datasets/git/commit-reach.c:145:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(commit->object.flags & STALE))
                                                    ^
                                                     {
/datasets/git/commit-reach.c:151:65: warning: parameter name 'in' is too short, expected at least 3 characters [readability-identifier-length]
struct commit_list *get_octopus_merge_bases(struct commit_list *in)
                                                                ^
/datasets/git/commit-reach.c:153:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit_list *i, *j, *k, *ret = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-reach.c:153:22: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *i, *j, *k, *ret = NULL;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit-reach.c:153:22: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit-reach.c:153:26: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *i, *j, *k, *ret = NULL;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit-reach.c:153:26: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit-reach.c:153:30: warning: variable 'k' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *i, *j, *k, *ret = NULL;
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit-reach.c:153:30: warning: variable name 'k' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit-reach.c:155:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!in)
                ^
                 {
/datasets/git/commit-reach.c:160:21: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = in->next; i; i = i->next) {
                           ^
/datasets/git/commit-reach.c:161:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                struct commit_list *new_commits = NULL, *end = NULL;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-reach.c:153:2: note: inferred assignment of ID-dependent value from ID-dependent variable ret [altera-id-dependent-backward-branch]
        struct commit_list *i, *j, *k, *ret = NULL;
        ^
/datasets/git/commit-reach.c:163:17: warning: backward branch (for loop) is ID-dependent due to variable reference to 'j' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (j = ret; j; j = j->next) {
                              ^
/datasets/git/commit-reach.c:164:24: warning: variable 'bases' is not initialized [cppcoreguidelines-init-variables]
                        struct commit_list *bases;
                                            ^
                                                  = NULL
/datasets/git/commit-reach.c:166:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!new_commits)
                                         ^
                                          {
/datasets/git/commit-reach.c:168:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/commit-reach.c:170:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (k = bases; k; k = k->next)
                        ^
/datasets/git/commit-reach.c:170:20: warning: backward branch (for loop) is ID-dependent due to variable reference to 'k' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (k = bases; k; k = k->next)
                                        ^
/datasets/git/commit-reach.c:170:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (k = bases; k; k = k->next)
                                                       ^
                                                        {
/datasets/git/commit-reach.c:178:55: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int remove_redundant_no_gen(struct repository *r,
                                                      ^
/datasets/git/commit-reach.c:181:18: warning: variable 'work' is not initialized [cppcoreguidelines-init-variables]
        struct commit **work;
                        ^
                             = NULL
/datasets/git/commit-reach.c:182:17: warning: variable 'redundant' is not initialized [cppcoreguidelines-init-variables]
        unsigned char *redundant;
                       ^
                                 = NULL
/datasets/git/commit-reach.c:183:7: warning: variable 'filled_index' is not initialized [cppcoreguidelines-init-variables]
        int *filled_index;
             ^
                          = NULL
/datasets/git/commit-reach.c:184:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, j, filled;
        ^~~~~~~~~~~~~~~~~
/datasets/git/commit-reach.c:184:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, j, filled;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit-reach.c:184:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit-reach.c:184:9: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int i, j, filled;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit-reach.c:184:9: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit-reach.c:184:12: warning: variable 'filled' is not initialized [cppcoreguidelines-init-variables]
        int i, j, filled;
                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit-reach.c:186:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        CALLOC_ARRAY(work, cnt);
        ^
/datasets/git/./git-compat-util.h:1091:55: note: expanded from macro 'CALLOC_ARRAY'
#define CALLOC_ARRAY(x, alloc) (x) = xcalloc((alloc), sizeof(*(x)))
                                                      ^
/datasets/git/commit-reach.c:190:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < cnt; i++)
        ^
/datasets/git/commit-reach.c:184:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int i, j, filled;
        ^
/datasets/git/commit-reach.c:190:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < cnt; i++)
                    ^
/datasets/git/commit-reach.c:190:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < cnt; i++)
                                 ^
                                  {
/datasets/git/commit-reach.c:192:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < cnt; i++) {
                    ^
/datasets/git/commit-reach.c:193:23: warning: variable 'common' is not initialized [cppcoreguidelines-init-variables]
                struct commit_list *common;
                                    ^
                                           = NULL
/datasets/git/commit-reach.c:196:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (redundant[i])
                                 ^
                                  {
/datasets/git/commit-reach.c:198:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (j = filled = 0; j < cnt; j++) {
                ^
/datasets/git/commit-reach.c:198:24: warning: backward branch (for loop) is ID-dependent due to variable reference to 'j' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (j = filled = 0; j < cnt; j++) {
                                     ^
/datasets/git/commit-reach.c:199:16: warning: variable 'curr_generation' is not initialized [cppcoreguidelines-init-variables]
                        timestamp_t curr_generation;
                                    ^
                                                    = 0
/datasets/git/commit-reach.c:200:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (i == j || redundant[j])
                                                   ^
                                                    {
/datasets/git/commit-reach.c:206:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (curr_generation < min_generation)
                                                             ^
                                                              {
/datasets/git/commit-reach.c:211:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (array[i]->object.flags & PARENT2)
                                             ^
/datasets/git/commit-reach.c:14:19: note: expanded from macro 'PARENT2'
#define PARENT2         (1u<<17)
                         ^   ~~
/datasets/git/commit-reach.c:211:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (array[i]->object.flags & PARENT2)
                                                     ^
                                                      {
/datasets/git/commit-reach.c:213:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (j = 0; j < filled; j++)
                ^
/datasets/git/commit-reach.c:213:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'j' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (j = 0; j < filled; j++)
                            ^
/datasets/git/commit-reach.c:213:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (j = 0; j < filled; j++)
                                            ^
                                             {
/datasets/git/commit-reach.c:214:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (work[j]->object.flags & PARENT1)
                                                    ^
/datasets/git/commit-reach.c:13:19: note: expanded from macro 'PARENT1'
#define PARENT1         (1u<<16)
                         ^   ~~
/datasets/git/commit-reach.c:214:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (work[j]->object.flags & PARENT1)
                                                            ^
                                                             {
/datasets/git/commit-reach.c:222:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        COPY_ARRAY(work, array, cnt);
        ^
/datasets/git/./git-compat-util.h:1094:63: note: expanded from macro 'COPY_ARRAY'
#define COPY_ARRAY(dst, src, n) copy_array((dst), (src), (n), sizeof(*(dst)) + \
                                                              ^
/datasets/git/commit-reach.c:223:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = filled = 0; i < cnt; i++)
        ^
/datasets/git/commit-reach.c:223:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = filled = 0; i < cnt; i++)
                             ^
/datasets/git/commit-reach.c:223:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = filled = 0; i < cnt; i++)
                                          ^
                                           {
/datasets/git/commit-reach.c:224:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!redundant[i])
                                  ^
                                   {
/datasets/git/commit-reach.c:232:12: warning: function 'remove_redundant_with_gen' has cognitive complexity of 61 (threshold 25) [readability-function-cognitive-complexity]
static int remove_redundant_with_gen(struct repository *r,
           ^
/datasets/git/commit-reach.c:256:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < cnt; i++) {
        ^
/datasets/git/commit-reach.c:263:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (parents) {
                ^
/datasets/git/commit-reach.c:265:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!(parents->item->object.flags & STALE)) {
                        ^
/datasets/git/commit-reach.c:267:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                ALLOC_GROW(walk_start, walk_start_nr + 1, walk_start_alloc);
                                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/commit-reach.c:267:5: note: +5, including nesting penalty of 4, nesting level increased to 5
                                ALLOC_GROW(walk_start, walk_start_nr + 1, walk_start_alloc);
                                ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/commit-reach.c:267:5: note: +6, including nesting penalty of 5, nesting level increased to 6
                                ALLOC_GROW(walk_start, walk_start_nr + 1, walk_start_alloc);
                                ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/commit-reach.c:267:5: note: +1, nesting level increased to 6
                                ALLOC_GROW(walk_start, walk_start_nr + 1, walk_start_alloc);
                                ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/commit-reach.c:277:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < walk_start_nr; i++)
        ^
/datasets/git/commit-reach.c:286:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = walk_start_nr - 1; i >= 0 && count_still_independent > 1; i--) {
        ^
/datasets/git/commit-reach.c:286:37: note: +1
        for (i = walk_start_nr - 1; i >= 0 && count_still_independent > 1; i--) {
                                           ^
/datasets/git/commit-reach.c:293:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (stack) {
                ^
/datasets/git/commit-reach.c:299:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (c->object.flags & RESULT) {
                        ^
/datasets/git/commit-reach.c:301:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (--count_still_independent <= 1)
                                ^
/datasets/git/commit-reach.c:303:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (oideq(&c->object.oid, &sorted[min_gen_pos]->object.oid)) {
                                ^
/datasets/git/commit-reach.c:304:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        while (min_gen_pos < cnt - 1 &&
                                        ^
/datasets/git/commit-reach.c:304:35: note: +1
                                        while (min_gen_pos < cnt - 1 &&
                                                                     ^
/datasets/git/commit-reach.c:311:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (commit_graph_generation(c) < min_generation) {
                        ^
/datasets/git/commit-reach.c:317:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (parents) {
                        ^
/datasets/git/commit-reach.c:318:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!(parents->item->object.flags & STALE)) {
                                ^
/datasets/git/commit-reach.c:327:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!parents)
                        ^
/datasets/git/commit-reach.c:335:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < cnt; i++)
        ^
/datasets/git/commit-reach.c:339:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = count_non_stale = 0; i < cnt; i++) {
        ^
/datasets/git/commit-reach.c:340:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!(array[i]->object.flags & STALE))
                ^
/datasets/git/commit-reach.c:232:57: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int remove_redundant_with_gen(struct repository *r,
                                                        ^
/datasets/git/commit-reach.c:235:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, count_non_stale = 0, count_still_independent = cnt;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-reach.c:235:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, count_non_stale = 0, count_still_independent = cnt;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit-reach.c:235:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit-reach.c:236:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        timestamp_t min_generation = GENERATION_NUMBER_INFINITY;
                                     ^
/datasets/git/./negotiator/../commit.h:14:38: note: expanded from macro 'GENERATION_NUMBER_INFINITY'
#define GENERATION_NUMBER_INFINITY ((1ULL << 63) - 1)
                                     ^       ~~
/datasets/git/commit-reach.c:237:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit **walk_start, **sorted;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-reach.c:237:18: warning: variable 'walk_start' is not initialized [cppcoreguidelines-init-variables]
        struct commit **walk_start, **sorted;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit-reach.c:237:32: warning: variable 'sorted' is not initialized [cppcoreguidelines-init-variables]
        struct commit **walk_start, **sorted;
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit-reach.c:238:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t walk_start_nr = 0, walk_start_alloc = cnt;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-reach.c:235:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int i, count_non_stale = 0, count_still_independent = cnt;
        ^
/datasets/git/commit-reach.c:248:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_ARRAY(sorted, cnt);
        ^
/datasets/git/./git-compat-util.h:1090:53: note: expanded from macro 'ALLOC_ARRAY'
#define ALLOC_ARRAY(x, alloc) (x) = xmalloc(st_mult(sizeof(*(x)), (alloc)))
                                                    ^
/datasets/git/commit-reach.c:249:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        COPY_ARRAY(sorted, array, cnt);
        ^
/datasets/git/./git-compat-util.h:1094:63: note: expanded from macro 'COPY_ARRAY'
#define COPY_ARRAY(dst, src, n) copy_array((dst), (src), (n), sizeof(*(dst)) + \
                                                              ^
/datasets/git/commit-reach.c:250:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        QSORT(sorted, cnt, compare_commits_by_gen);
        ^
/datasets/git/./git-compat-util.h:1304:56: note: expanded from macro 'QSORT'
#define QSORT(base, n, compar) sane_qsort((base), (n), sizeof(*(base)), compar)
                                                       ^
/datasets/git/commit-reach.c:253:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_ARRAY(walk_start, walk_start_alloc);
        ^
/datasets/git/./git-compat-util.h:1090:53: note: expanded from macro 'ALLOC_ARRAY'
#define ALLOC_ARRAY(x, alloc) (x) = xmalloc(st_mult(sizeof(*(x)), (alloc)))
                                                    ^
/datasets/git/commit-reach.c:257:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                struct commit_list *parents;
                ^
/datasets/git/commit-reach.c:256:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < cnt; i++) {
                    ^
/datasets/git/commit-reach.c:257:23: warning: variable 'parents' is not initialized [cppcoreguidelines-init-variables]
                struct commit_list *parents;
                                    ^
                                            = NULL
/datasets/git/commit-reach.c:260:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                array[i]->object.flags |= RESULT;
                                          ^
/datasets/git/commit-reach.c:16:18: note: expanded from macro 'RESULT'
#define RESULT          (1u<<19)
                         ^   ~~
/datasets/git/commit-reach.c:263:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'parents' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (parents) {
                       ^
/datasets/git/commit-reach.c:265:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!(parents->item->object.flags & STALE)) {
                                                            ^
/datasets/git/commit-reach.c:15:17: note: expanded from macro 'STALE'
#define STALE           (1u<<18)
                         ^   ~~
/datasets/git/commit-reach.c:266:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                parents->item->object.flags |= STALE;
                                                               ^
/datasets/git/commit-reach.c:15:17: note: expanded from macro 'STALE'
#define STALE           (1u<<18)
                         ^   ~~
/datasets/git/commit-reach.c:267:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                ALLOC_GROW(walk_start, walk_start_nr + 1, walk_start_alloc);
                                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/commit-reach.c:267:5: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                                ALLOC_GROW(walk_start, walk_start_nr + 1, walk_start_alloc);
                                ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/commit-reach.c:274:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        QSORT(walk_start, walk_start_nr, compare_commits_by_gen);
        ^
/datasets/git/./git-compat-util.h:1304:56: note: expanded from macro 'QSORT'
#define QSORT(base, n, compar) sane_qsort((base), (n), sizeof(*(base)), compar)
                                                       ^
/datasets/git/commit-reach.c:277:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < walk_start_nr; i++)
        ^
/datasets/git/commit-reach.c:235:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int i, count_non_stale = 0, count_still_independent = cnt;
        ^
/datasets/git/commit-reach.c:277:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < walk_start_nr; i++)
                    ^
/datasets/git/commit-reach.c:277:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < walk_start_nr; i++)
                                           ^
                                            {
/datasets/git/commit-reach.c:278:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                walk_start[i]->object.flags &= ~STALE;
                                                ^
/datasets/git/commit-reach.c:15:17: note: expanded from macro 'STALE'
#define STALE           (1u<<18)
                         ^   ~~
/datasets/git/commit-reach.c:286:11: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        for (i = walk_start_nr - 1; i >= 0 && count_still_independent > 1; i--) {
                 ^
/datasets/git/commit-reach.c:286:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = walk_start_nr - 1; i >= 0 && count_still_independent > 1; i--) {
                                    ^
/datasets/git/commit-reach.c:291:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                walk_start[i]->object.flags |= STALE;
                                               ^
/datasets/git/commit-reach.c:15:17: note: expanded from macro 'STALE'
#define STALE           (1u<<18)
                         ^   ~~
/datasets/git/commit-reach.c:294:4: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                        struct commit_list *parents;
                        ^
/datasets/git/commit-reach.c:294:24: warning: variable 'parents' is not initialized [cppcoreguidelines-init-variables]
                        struct commit_list *parents;
                                            ^
                                                    = NULL
/datasets/git/commit-reach.c:295:19: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                        struct commit *c = stack->item;
                                       ^
/datasets/git/commit-reach.c:299:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (c->object.flags & RESULT) {
                                              ^
/datasets/git/commit-reach.c:16:18: note: expanded from macro 'RESULT'
#define RESULT          (1u<<19)
                         ^   ~~
/datasets/git/commit-reach.c:300:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                c->object.flags &= ~RESULT;
                                                    ^
/datasets/git/commit-reach.c:16:18: note: expanded from macro 'RESULT'
#define RESULT          (1u<<19)
                         ^   ~~
/datasets/git/commit-reach.c:301:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (--count_still_independent <= 1)
                                                                   ^
                                                                    {
/datasets/git/commit-reach.c:304:6: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                        while (min_gen_pos < cnt - 1 &&
                                        ^
/datasets/git/commit-reach.c:304:13: warning: backward branch (while loop) is ID-dependent due to member reference to 'flags' and may cause performance degradation [altera-id-dependent-backward-branch]
                                        while (min_gen_pos < cnt - 1 &&
                                               ^
/datasets/git/commit-reach.c:305:50: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                               (sorted[min_gen_pos]->object.flags & STALE))
                                                                                    ^
/datasets/git/commit-reach.c:15:17: note: expanded from macro 'STALE'
#define STALE           (1u<<18)
                         ^   ~~
/datasets/git/commit-reach.c:305:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                               (sorted[min_gen_pos]->object.flags & STALE))
                                                                                           ^
                                                                                            {
/datasets/git/commit-reach.c:317:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (parents) {
                        ^
/datasets/git/commit-reach.c:317:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'parents' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (parents) {
                               ^
/datasets/git/commit-reach.c:318:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (!(parents->item->object.flags & STALE)) {
                                                                    ^
/datasets/git/commit-reach.c:15:17: note: expanded from macro 'STALE'
#define STALE           (1u<<18)
                         ^   ~~
/datasets/git/commit-reach.c:319:37: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        parents->item->object.flags |= STALE;
                                                                       ^
/datasets/git/commit-reach.c:15:17: note: expanded from macro 'STALE'
#define STALE           (1u<<18)
                         ^   ~~
/datasets/git/commit-reach.c:327:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!parents)
                                     ^
                                      {
/datasets/git/commit-reach.c:335:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < cnt; i++)
        ^
/datasets/git/commit-reach.c:235:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int i, count_non_stale = 0, count_still_independent = cnt;
        ^
/datasets/git/commit-reach.c:335:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < cnt; i++)
                    ^
/datasets/git/commit-reach.c:335:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < cnt; i++)
                                 ^
                                  {
/datasets/git/commit-reach.c:336:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                array[i]->object.flags &= ~RESULT;
                                           ^
/datasets/git/commit-reach.c:16:18: note: expanded from macro 'RESULT'
#define RESULT          (1u<<19)
                         ^   ~~
/datasets/git/commit-reach.c:339:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = count_non_stale = 0; i < cnt; i++) {
        ^
/datasets/git/commit-reach.c:339:32: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = count_non_stale = 0; i < cnt; i++) {
                                      ^
/datasets/git/commit-reach.c:340:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(array[i]->object.flags & STALE))
                                               ^
/datasets/git/commit-reach.c:15:17: note: expanded from macro 'STALE'
#define STALE           (1u<<18)
                         ^   ~~
/datasets/git/commit-reach.c:340:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(array[i]->object.flags & STALE))
                                                      ^
                                                       {
/datasets/git/commit-reach.c:345:26: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        clear_commit_marks_many(walk_start_nr, walk_start, STALE);
                                ^
/datasets/git/commit-reach.c:345:53: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        clear_commit_marks_many(walk_start_nr, walk_start, STALE);
                                                           ^
/datasets/git/commit-reach.c:15:17: note: expanded from macro 'STALE'
#define STALE           (1u<<18)
                         ^   ~~
/datasets/git/commit-reach.c:351:48: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int remove_redundant(struct repository *r, struct commit **array, int cnt)
                                               ^
/datasets/git/commit-reach.c:361:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/commit-reach.c:361:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit-reach.c:367:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < cnt; i++) {
                ^
/datasets/git/commit-reach.c:368:44: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (commit_graph_generation(array[i]) < GENERATION_NUMBER_INFINITY)
                                                                ^
/datasets/git/./negotiator/../commit.h:14:38: note: expanded from macro 'GENERATION_NUMBER_INFINITY'
#define GENERATION_NUMBER_INFINITY ((1ULL << 63) - 1)
                                     ^       ~~
/datasets/git/commit-reach.c:368:71: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (commit_graph_generation(array[i]) < GENERATION_NUMBER_INFINITY)
                                                                                           ^
                                                                                            {
/datasets/git/commit-reach.c:376:70: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static struct commit_list *get_merge_bases_many_0(struct repository *r,
                                                                     ^
/datasets/git/commit-reach.c:382:22: warning: variable 'list' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *list;
                            ^
                                 = NULL
/datasets/git/commit-reach.c:383:18: warning: variable 'rslt' is not initialized [cppcoreguidelines-init-variables]
        struct commit **rslt;
                        ^
                             = NULL
/datasets/git/commit-reach.c:384:22: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *result;
                            ^
                                   = NULL
/datasets/git/commit-reach.c:385:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int cnt, i;
        ^~~~~~~~~~~
/datasets/git/commit-reach.c:385:6: warning: variable 'cnt' is not initialized [cppcoreguidelines-init-variables]
        int cnt, i;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit-reach.c:385:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int cnt, i;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit-reach.c:385:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit-reach.c:388:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < n; i++) {
        ^
/datasets/git/commit-reach.c:389:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (one == twos[i])
                                   ^
                                    {
/datasets/git/commit-reach.c:401:8: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        cnt = commit_list_count(result);
              ^
/datasets/git/commit-reach.c:402:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        CALLOC_ARRAY(rslt, cnt);
        ^
/datasets/git/./git-compat-util.h:1091:55: note: expanded from macro 'CALLOC_ARRAY'
#define CALLOC_ARRAY(x, alloc) (x) = xcalloc((alloc), sizeof(*(x)))
                                                      ^
/datasets/git/commit-reach.c:403:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (list = result, i = 0; list; list = list->next)
        ^
/datasets/git/commit-reach.c:403:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'list' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (list = result, i = 0; list; list = list->next)
                                   ^
/datasets/git/commit-reach.c:403:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (list = result, i = 0; list; list = list->next)
                                                           ^
                                                            {
/datasets/git/commit-reach.c:412:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < cnt; i++)
        ^
/datasets/git/commit-reach.c:412:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cnt' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < cnt; i++)
                    ^
/datasets/git/commit-reach.c:412:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < cnt; i++)
                                 ^
                                  {
/datasets/git/commit-reach.c:418:66: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
struct commit_list *repo_get_merge_bases_many(struct repository *r,
                                                                 ^
/datasets/git/commit-reach.c:426:72: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
struct commit_list *repo_get_merge_bases_many_dirty(struct repository *r,
                                                                       ^
/datasets/git/commit-reach.c:434:61: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
struct commit_list *repo_get_merge_bases(struct repository *r,
                                                            ^
/datasets/git/commit-reach.c:444:46: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int repo_is_descendant_of(struct repository *r,
                                             ^
/datasets/git/commit-reach.c:448:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!with_commit)
                         ^
                          {
/datasets/git/commit-reach.c:453:7: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
                int result;
                    ^
                           = 0
/datasets/git/commit-reach.c:446:6: note: inferred assignment of ID-dependent value from ID-dependent member next [altera-id-dependent-backward-branch]
                          struct commit_list *with_commit)
                          ^
/datasets/git/commit-reach.c:458:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else {
          ^~~~~~
/datasets/git/commit-reach.c:459:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (with_commit) {
                ^
/datasets/git/commit-reach.c:459:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'with_commit' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (with_commit) {
                       ^
/datasets/git/commit-reach.c:460:19: warning: variable 'other' is not initialized [cppcoreguidelines-init-variables]
                        struct commit *other;
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit-reach.c:464:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (repo_in_merge_bases_many(r, other, 1, &commit))
                                                                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit-reach.c:474:49: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int repo_in_merge_bases_many(struct repository *r, struct commit *commit,
                                                ^
/datasets/git/commit-reach.c:477:22: warning: variable 'bases' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *bases;
                            ^
                                  = NULL
/datasets/git/commit-reach.c:478:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int ret = 0, i;
        ^~~~~~~~~~~~~~~
/datasets/git/commit-reach.c:478:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int ret = 0, i;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit-reach.c:478:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit-reach.c:479:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        timestamp_t generation, max_generation = GENERATION_NUMBER_ZERO;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-reach.c:479:14: warning: variable 'generation' is not initialized [cppcoreguidelines-init-variables]
        timestamp_t generation, max_generation = GENERATION_NUMBER_ZERO;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit-reach.c:481:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_parse_commit(r, commit))
                                         ^
                                          {
/datasets/git/commit-reach.c:483:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr_reference; i++) {
        ^
/datasets/git/commit-reach.c:484:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (repo_parse_commit(r, reference[i]))
                                                       ^
                                                        {
/datasets/git/commit-reach.c:488:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (generation > max_generation)
                                                ^
                                                 {
/datasets/git/commit-reach.c:493:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (generation > max_generation)
                                        ^
                                         {
/datasets/git/commit-reach.c:499:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (commit->object.flags & PARENT2)
                                   ^
/datasets/git/commit-reach.c:14:19: note: expanded from macro 'PARENT2'
#define PARENT2         (1u<<17)
                         ^   ~~
/datasets/git/commit-reach.c:499:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (commit->object.flags & PARENT2)
                                           ^
                                            {
/datasets/git/commit-reach.c:510:44: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int repo_in_merge_bases(struct repository *r,
                                           ^
/datasets/git/commit-reach.c:511:4: warning: 2 adjacent parameters of 'repo_in_merge_bases' of similar type ('struct commit *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                        struct commit *commit,
                        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-reach.c:511:19: note: the first parameter in the range is 'commit'
                        struct commit *commit,
                                       ^~~~~~
/datasets/git/commit-reach.c:512:19: note: the last parameter in the range is 'reference'
                        struct commit *reference)
                                       ^~~~~~~~~
/datasets/git/commit-reach.c:514:6: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        int res;
            ^
                = 0
/datasets/git/commit-reach.c:518:2: warning: Value stored to 'next' is never read [clang-analyzer-deadcode.DeadStores]
        next = commit_list_append(commit, next);
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-reach.c:518:2: note: Value stored to 'next' is never read
        next = commit_list_append(commit, next);
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-reach.c:527:22: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *p;
                            ^
                              = NULL
/datasets/git/commit-reach.c:527:22: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit-reach.c:528:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit_list *result = NULL, **tail = &result;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-reach.c:529:18: warning: variable 'array' is not initialized [cppcoreguidelines-init-variables]
        struct commit **array;
                        ^
                              = NULL
/datasets/git/commit-reach.c:530:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int num_head, i;
        ^~~~~~~~~~~~~~~~
/datasets/git/commit-reach.c:530:6: warning: variable 'num_head' is not initialized [cppcoreguidelines-init-variables]
        int num_head, i;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit-reach.c:530:16: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int num_head, i;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit-reach.c:530:16: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit-reach.c:532:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!heads)
                   ^
                    {
/datasets/git/commit-reach.c:536:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = heads; p; p = p->next)
        ^
/datasets/git/commit-reach.c:527:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct commit_list *p;
        ^
/datasets/git/commit-reach.c:536:18: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = heads; p; p = p->next)
                        ^
/datasets/git/commit-reach.c:536:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (p = heads; p; p = p->next)
                                       ^
                                        {
/datasets/git/commit-reach.c:537:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                p->item->object.flags &= ~STALE;
                                          ^
/datasets/git/commit-reach.c:15:17: note: expanded from macro 'STALE'
#define STALE           (1u<<18)
                         ^   ~~
/datasets/git/commit-reach.c:538:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = heads, num_head = 0; p; p = p->next) {
        ^
/datasets/git/commit-reach.c:527:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct commit_list *p;
        ^
/datasets/git/commit-reach.c:538:32: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = heads, num_head = 0; p; p = p->next) {
                                      ^
/datasets/git/commit-reach.c:539:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (p->item->object.flags & STALE)
                                            ^
/datasets/git/commit-reach.c:15:17: note: expanded from macro 'STALE'
#define STALE           (1u<<18)
                         ^   ~~
/datasets/git/commit-reach.c:539:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (p->item->object.flags & STALE)
                                                  ^
                                                   {
/datasets/git/commit-reach.c:541:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                p->item->object.flags |= STALE;
                                         ^
/datasets/git/commit-reach.c:15:17: note: expanded from macro 'STALE'
#define STALE           (1u<<18)
                         ^   ~~
/datasets/git/commit-reach.c:544:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        CALLOC_ARRAY(array, num_head);
        ^
/datasets/git/./git-compat-util.h:1091:55: note: expanded from macro 'CALLOC_ARRAY'
#define CALLOC_ARRAY(x, alloc) (x) = xcalloc((alloc), sizeof(*(x)))
                                                      ^
/datasets/git/commit-reach.c:545:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = heads, i = 0; p; p = p->next) {
        ^
/datasets/git/commit-reach.c:545:25: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = heads, i = 0; p; p = p->next) {
                               ^
/datasets/git/commit-reach.c:546:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (p->item->object.flags & STALE) {
                                            ^
/datasets/git/commit-reach.c:15:17: note: expanded from macro 'STALE'
#define STALE           (1u<<18)
                         ^   ~~
/datasets/git/commit-reach.c:548:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        p->item->object.flags &= ~STALE;
                                                  ^
/datasets/git/commit-reach.c:15:17: note: expanded from macro 'STALE'
#define STALE           (1u<<18)
                         ^   ~~
/datasets/git/commit-reach.c:552:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < num_head; i++)
        ^
/datasets/git/commit-reach.c:552:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'num_head' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < num_head; i++)
                    ^
/datasets/git/commit-reach.c:552:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < num_head; i++)
                                      ^
                                       {
/datasets/git/commit-reach.c:567:17: warning: variable 'o' is not initialized [cppcoreguidelines-init-variables]
        struct object *o;
                       ^
                         = NULL
/datasets/git/commit-reach.c:567:17: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit-reach.c:568:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit *old_commit, *new_commit;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-reach.c:568:17: warning: variable 'old_commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *old_commit, *new_commit;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit-reach.c:568:30: warning: variable 'new_commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *old_commit, *new_commit;
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit-reach.c:570:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/commit-reach.c:578:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!o || o->type != OBJ_COMMIT)
                                        ^
                                         {
/datasets/git/commit-reach.c:584:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!o || o->type != OBJ_COMMIT)
                                        ^
                                         {
/datasets/git/commit-reach.c:588:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_commit(new_commit) < 0)
                                         ^
                                          {
/datasets/git/commit-reach.c:605:8: warning: accessing fields in struct 'contains_stack' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct contains_stack {
       ^
/datasets/git/commit-reach.c:605:8: note: use "__attribute__((aligned(16)))" to align struct 'contains_stack' to 16 bytes
/datasets/git/commit-reach.c:607:9: warning: accessing fields in struct 'contains_stack_entry' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
        struct contains_stack_entry {
               ^
/datasets/git/commit-reach.c:607:9: note: use "__attribute__((aligned(16)))" to align struct 'contains_stack_entry' to 16 bytes
/datasets/git/commit-reach.c:613:74: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static int in_commit_list(const struct commit_list *want, struct commit *c)
                                                                         ^
/datasets/git/commit-reach.c:615:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; want; want = want->next)
        ^
/datasets/git/commit-reach.c:615:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'want' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; want; want = want->next)
               ^
/datasets/git/commit-reach.c:615:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (; want; want = want->next)
                                       ^
                                        {
/datasets/git/commit-reach.c:616:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (oideq(&want->item->object.oid, &c->object.oid))
                                                                   ^
                                                                    {
/datasets/git/commit-reach.c:633:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*cached)
                    ^
                     {
/datasets/git/commit-reach.c:645:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (commit_graph_generation(candidate) < cutoff)
                                                        ^
                                                         {
/datasets/git/commit-reach.c:653:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(contains_stack->contains_stack, contains_stack->nr + 1, contains_stack->alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/commit-reach.c:665:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        const struct commit_list *p;
        ^
/datasets/git/commit-reach.c:663:23: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        enum contains_result result;
                             ^
/datasets/git/commit-reach.c:664:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        timestamp_t cutoff = GENERATION_NUMBER_INFINITY;
                             ^
/datasets/git/./negotiator/../commit.h:14:38: note: expanded from macro 'GENERATION_NUMBER_INFINITY'
#define GENERATION_NUMBER_INFINITY ((1ULL << 63) - 1)
                                     ^       ~~
/datasets/git/commit-reach.c:665:28: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        const struct commit_list *p;
                                  ^
                                    = NULL
/datasets/git/commit-reach.c:665:28: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit-reach.c:667:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = want; p; p = p->next) {
        ^
/datasets/git/commit-reach.c:667:17: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = want; p; p = p->next) {
                       ^
/datasets/git/commit-reach.c:668:15: warning: variable 'generation' is not initialized [cppcoreguidelines-init-variables]
                timestamp_t generation;
                            ^
                                       = 0
/datasets/git/commit-reach.c:669:18: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                struct commit *c = p->item;
                               ^
/datasets/git/commit-reach.c:672:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (generation < cutoff)
                                        ^
                                         {
/datasets/git/commit-reach.c:677:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (result != CONTAINS_UNKNOWN)
                                       ^
                                        {
/datasets/git/commit-reach.c:681:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (contains_stack.nr) {
        ^
/datasets/git/commit-reach.c:694:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else switch (contains_test(parents->item, want, cache, cutoff)) {
                    ^
                     {
/datasets/git/commit-reach.c:714:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (filter->with_commit_tag_algo)
                                         ^
                                          {
/datasets/git/commit-reach.c:719:5: warning: function 'can_all_from_reach_with_flag' has cognitive complexity of 45 (threshold 25) [readability-function-cognitive-complexity]
int can_all_from_reach_with_flag(struct object_array *from,
    ^
/datasets/git/commit-reach.c:732:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < from->nr; i++) {
        ^
/datasets/git/commit-reach.c:735:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!from_one || from_one->flags & assign_flag)
                ^
/datasets/git/commit-reach.c:735:17: note: +1
                if (!from_one || from_one->flags & assign_flag)
                              ^
/datasets/git/commit-reach.c:740:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!from_one || from_one->type != OBJ_COMMIT) {
                ^
/datasets/git/commit-reach.c:740:17: note: +1
                if (!from_one || from_one->type != OBJ_COMMIT) {
                              ^
/datasets/git/commit-reach.c:752:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (parse_commit(list[nr_commits]) ||
                ^
/datasets/git/commit-reach.c:752:38: note: +1
                if (parse_commit(list[nr_commits]) ||
                                                   ^
/datasets/git/commit-reach.c:755:4: note: +1
                        goto cleanup;
                        ^
/datasets/git/commit-reach.c:763:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < nr_commits; i++) {
        ^
/datasets/git/commit-reach.c:770:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (stack) {
                ^
/datasets/git/commit-reach.c:773:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (stack->item->object.flags & (with_flag | RESULT)) {
                        ^
/datasets/git/commit-reach.c:775:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (stack)
                                ^
/datasets/git/commit-reach.c:780:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (parent = stack->item->parents; parent; parent = parent->next) {
                        ^
/datasets/git/commit-reach.c:781:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (parent->item->object.flags & (with_flag | RESULT))
                                ^
/datasets/git/commit-reach.c:784:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!(parent->item->object.flags & assign_flag)) {
                                ^
/datasets/git/commit-reach.c:787:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (parse_commit(parent->item) ||
                                        ^
/datasets/git/commit-reach.c:788:47: note: +1
                                            parent->item->date < min_commit_date ||
                                                                                 ^
/datasets/git/commit-reach.c:797:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!parent)
                        ^
/datasets/git/commit-reach.c:801:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!(list[i]->object.flags & (with_flag | RESULT))) {
                ^
/datasets/git/commit-reach.c:803:4: note: +1
                        goto cleanup;
                        ^
/datasets/git/commit-reach.c:811:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < from->nr; i++)
        ^
/datasets/git/commit-reach.c:720:6: warning: 3 adjacent parameters of 'can_all_from_reach_with_flag' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                 unsigned int with_flag,
                                 ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-reach.c:720:19: note: the first parameter in the range is 'with_flag'
                                 unsigned int with_flag,
                                              ^~~~~~~~~
/datasets/git/commit-reach.c:722:13: note: the last parameter in the range is 'min_commit_date'
                                 time_t min_commit_date,
                                        ^~~~~~~~~~~~~~~
/datasets/git/commit-reach.c:720:6: note: 
                                 unsigned int with_flag,
                                 ^
/datasets/git/commit-reach.c:722:6: note: 'unsigned int' and 'time_t' may be implicitly converted: 'unsigned int' -> 'time_t' (as 'long'), 'time_t' (as 'long') -> 'unsigned int'
                                 time_t min_commit_date,
                                 ^
/datasets/git/commit-reach.c:726:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/commit-reach.c:726:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit-reach.c:727:6: warning: variable 'nr_commits' is not initialized [cppcoreguidelines-init-variables]
        int nr_commits;
            ^
                       = 0
/datasets/git/commit-reach.c:730:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_ARRAY(list, from->nr);
        ^
/datasets/git/./git-compat-util.h:1090:53: note: expanded from macro 'ALLOC_ARRAY'
#define ALLOC_ARRAY(x, alloc) (x) = xmalloc(st_mult(sizeof(*(x)), (alloc)))
                                                    ^
/datasets/git/commit-reach.c:732:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < from->nr; i++) {
        ^
/datasets/git/commit-reach.c:735:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!from_one || from_one->flags & assign_flag)
                                                               ^
                                                                {
/datasets/git/commit-reach.c:761:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        QSORT(list, nr_commits, compare_commits_by_gen);
        ^
/datasets/git/./git-compat-util.h:1304:56: note: expanded from macro 'QSORT'
#define QSORT(base, n, compar) sane_qsort((base), (n), sizeof(*(base)), compar)
                                                       ^
/datasets/git/commit-reach.c:771:4: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                        struct commit_list *parent;
                        ^
/datasets/git/commit-reach.c:771:24: warning: variable 'parent' is not initialized [cppcoreguidelines-init-variables]
                        struct commit_list *parent;
                                            ^
                                                   = NULL
/datasets/git/commit-reach.c:773:49: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (stack->item->object.flags & (with_flag | RESULT)) {
                                                                     ^
/datasets/git/commit-reach.c:16:18: note: expanded from macro 'RESULT'
#define RESULT          (1u<<19)
                         ^   ~~
/datasets/git/commit-reach.c:775:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (stack)
                                          ^
                                           {
/datasets/git/commit-reach.c:776:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        stack->item->object.flags |= RESULT;
                                                                     ^
/datasets/git/commit-reach.c:16:18: note: expanded from macro 'RESULT'
#define RESULT          (1u<<19)
                         ^   ~~
/datasets/git/commit-reach.c:780:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (parent = stack->item->parents; parent; parent = parent->next) {
                        ^
/datasets/git/commit-reach.c:780:40: warning: backward branch (for loop) is ID-dependent due to variable reference to 'parent' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (parent = stack->item->parents; parent; parent = parent->next) {
                                                            ^
/datasets/git/commit-reach.c:781:51: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (parent->item->object.flags & (with_flag | RESULT))
                                                                              ^
/datasets/git/commit-reach.c:16:18: note: expanded from macro 'RESULT'
#define RESULT          (1u<<19)
                         ^   ~~
/datasets/git/commit-reach.c:781:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (parent->item->object.flags & (with_flag | RESULT))
                                                                                      ^
                                                                                       {
/datasets/git/commit-reach.c:782:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        stack->item->object.flags |= RESULT;
                                                                     ^
/datasets/git/commit-reach.c:16:18: note: expanded from macro 'RESULT'
#define RESULT          (1u<<19)
                         ^   ~~
/datasets/git/commit-reach.c:789:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                            commit_graph_generation(parent->item) < min_generation)
                                                                                                   ^
                                                                                                    {
/datasets/git/commit-reach.c:797:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!parent)
                                    ^
                                     {
/datasets/git/commit-reach.c:801:46: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(list[i]->object.flags & (with_flag | RESULT))) {
                                                           ^
/datasets/git/commit-reach.c:16:18: note: expanded from macro 'RESULT'
#define RESULT          (1u<<19)
                         ^   ~~
/datasets/git/commit-reach.c:808:44: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        clear_commit_marks_many(nr_commits, list, RESULT | assign_flag);
                                                  ^
/datasets/git/commit-reach.c:16:18: note: expanded from macro 'RESULT'
#define RESULT          (1u<<19)
                         ^   ~~
/datasets/git/commit-reach.c:811:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < from->nr; i++)
        ^
/datasets/git/commit-reach.c:811:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < from->nr; i++)
                                      ^
                                       {
/datasets/git/commit-reach.c:812:32: warning: Access to field 'flags' results in a dereference of a null pointer (loaded from field 'item') [clang-analyzer-core.NullDereference]
                from->objects[i].item->flags &= ~assign_flag;
                                             ^
/datasets/git/commit-reach.c:714:6: note: Assuming field 'with_commit_tag_algo' is 0
        if (filter->with_commit_tag_algo)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-reach.c:714:2: note: Taking false branch
        if (filter->with_commit_tag_algo)
        ^
/datasets/git/commit-reach.c:716:9: note: Calling 'repo_is_descendant_of'
        return repo_is_descendant_of(the_repository, commit, list);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-reach.c:448:6: note: Assuming 'with_commit' is non-null
        if (!with_commit)
            ^~~~~~~~~~~~
/datasets/git/commit-reach.c:448:2: note: Taking false branch
        if (!with_commit)
        ^
/datasets/git/commit-reach.c:451:6: note: Assuming the condition is true
        if (generation_numbers_enabled(the_repository)) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-reach.c:451:2: note: Taking true branch
        if (generation_numbers_enabled(the_repository)) {
        ^
/datasets/git/commit-reach.c:455:12: note: Calling 'can_all_from_reach'
                result = can_all_from_reach(from_list, with_commit, 0);
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-reach.c:821:27: note: 'cutoff_by_min_date' is 0
        time_t min_commit_date = cutoff_by_min_date ? from->item->date : 0;
                                 ^~~~~~~~~~~~~~~~~~
/datasets/git/commit-reach.c:821:27: note: '?' condition is false
/datasets/git/commit-reach.c:826:2: note: Loop condition is true.  Entering loop body
        while (from_iter) {
        ^
/datasets/git/commit-reach.c:829:7: note: Assuming the condition is false
                if (!parse_commit(from_iter->item)) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-reach.c:829:3: note: Taking false branch
                if (!parse_commit(from_iter->item)) {
                ^
/datasets/git/commit-reach.c:826:2: note: Loop condition is false. Execution continues on line 842
        while (from_iter) {
        ^
/datasets/git/commit-reach.c:842:2: note: Loop condition is true.  Entering loop body
        while (to_iter) {
        ^
/datasets/git/commit-reach.c:843:7: note: Assuming the condition is false
                if (!parse_commit(to_iter->item)) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-reach.c:843:3: note: Taking false branch
                if (!parse_commit(to_iter->item)) {
                ^
/datasets/git/commit-reach.c:842:2: note: Loop condition is false. Execution continues on line 858
        while (to_iter) {
        ^
/datasets/git/commit-reach.c:858:11: note: Calling 'can_all_from_reach_with_flag'
        result = can_all_from_reach_with_flag(&from_objs, PARENT2, PARENT1,
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-reach.c:732:14: note: Assuming 'i' is < field 'nr'
        for (i = 0; i < from->nr; i++) {
                    ^~~~~~~~~~~~
/datasets/git/commit-reach.c:732:2: note: Loop condition is true.  Entering loop body
        for (i = 0; i < from->nr; i++) {
        ^
/datasets/git/commit-reach.c:735:7: note: Assuming 'from_one' is null
                if (!from_one || from_one->flags & assign_flag)
                    ^~~~~~~~~
/datasets/git/commit-reach.c:735:17: note: Left side of '||' is true
                if (!from_one || from_one->flags & assign_flag)
                              ^
/datasets/git/commit-reach.c:736:4: note:  Execution continues on line 732
                        continue;
                        ^
/datasets/git/commit-reach.c:732:14: note: Assuming 'i' is >= field 'nr'
        for (i = 0; i < from->nr; i++) {
                    ^~~~~~~~~~~~
/datasets/git/commit-reach.c:732:2: note: Loop condition is false. Execution continues on line 761
        for (i = 0; i < from->nr; i++) {
        ^
/datasets/git/commit-reach.c:763:2: note: Loop condition is false. Execution continues on line 808
        for (i = 0; i < nr_commits; i++) {
        ^
/datasets/git/commit-reach.c:811:2: note: Loop condition is true.  Entering loop body
        for (i = 0; i < from->nr; i++)
        ^
/datasets/git/commit-reach.c:812:32: note: Access to field 'flags' results in a dereference of a null pointer (loaded from field 'item')
                from->objects[i].item->flags &= ~assign_flag;
                                 ~~~~        ^
/datasets/git/commit-reach.c:817:70: warning: parameter name 'to' is too short, expected at least 3 characters [readability-identifier-length]
int can_all_from_reach(struct commit_list *from, struct commit_list *to,
                                                                     ^
/datasets/git/commit-reach.c:821:48: warning: narrowing conversion from 'timestamp_t' (aka 'unsigned long') to signed type 'time_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        time_t min_commit_date = cutoff_by_min_date ? from->item->date : 0;
                                                      ^
/datasets/git/commit-reach.c:822:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit_list *from_iter = from, *to_iter = to;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit-reach.c:822:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/commit-reach.c:823:6: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        int result;
            ^
                   = 0
/datasets/git/commit-reach.c:824:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        timestamp_t min_generation = GENERATION_NUMBER_INFINITY;
                                     ^
/datasets/git/./negotiator/../commit.h:14:38: note: expanded from macro 'GENERATION_NUMBER_INFINITY'
#define GENERATION_NUMBER_INFINITY ((1ULL << 63) - 1)
                                     ^       ~~
/datasets/git/commit-reach.c:826:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (from_iter) {
        ^
/datasets/git/commit-reach.c:822:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct commit_list *from_iter = from, *to_iter = to;
        ^
/datasets/git/commit-reach.c:826:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'from_iter' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (from_iter) {
               ^
/datasets/git/commit-reach.c:830:16: warning: variable 'generation' is not initialized [cppcoreguidelines-init-variables]
                        timestamp_t generation;
                                    ^
                                               = 0
/datasets/git/commit-reach.c:831:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (from_iter->item->date < min_commit_date)
                                                                    ^
                                                                     {
/datasets/git/commit-reach.c:832:23: warning: narrowing conversion from 'timestamp_t' (aka 'unsigned long') to signed type 'time_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                min_commit_date = from_iter->item->date;
                                                  ^
/datasets/git/commit-reach.c:835:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (generation < min_generation)
                                                        ^
                                                         {
/datasets/git/commit-reach.c:842:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (to_iter) {
        ^
/datasets/git/commit-reach.c:817:24: note: inferred assignment of ID-dependent value from ID-dependent member next [altera-id-dependent-backward-branch]
int can_all_from_reach(struct commit_list *from, struct commit_list *to,
                       ^
/datasets/git/commit-reach.c:842:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'to_iter' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (to_iter) {
               ^
/datasets/git/commit-reach.c:844:16: warning: variable 'generation' is not initialized [cppcoreguidelines-init-variables]
                        timestamp_t generation;
                                    ^
                                               = 0
/datasets/git/commit-reach.c:845:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (to_iter->item->date < min_commit_date)
                                                                  ^
                                                                   {
/datasets/git/commit-reach.c:846:23: warning: narrowing conversion from 'timestamp_t' (aka 'unsigned long') to signed type 'time_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                min_commit_date = to_iter->item->date;
                                                  ^
/datasets/git/commit-reach.c:849:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (generation < min_generation)
                                                        ^
                                                         {
/datasets/git/commit-reach.c:853:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                to_iter->item->object.flags |= PARENT2;
                                               ^
/datasets/git/commit-reach.c:14:19: note: expanded from macro 'PARENT2'
#define PARENT2         (1u<<17)
                         ^   ~~
/datasets/git/commit-reach.c:858:52: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        result = can_all_from_reach_with_flag(&from_objs, PARENT2, PARENT1,
                                                          ^
/datasets/git/commit-reach.c:14:19: note: expanded from macro 'PARENT2'
#define PARENT2         (1u<<17)
                         ^   ~~
/datasets/git/commit-reach.c:858:61: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        result = can_all_from_reach_with_flag(&from_objs, PARENT2, PARENT1,
                                                                   ^
/datasets/git/commit-reach.c:13:19: note: expanded from macro 'PARENT1'
#define PARENT1         (1u<<16)
                         ^   ~~
/datasets/git/commit-reach.c:861:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (from) {
        ^
/datasets/git/commit-reach.c:817:50: note: inferred assignment of ID-dependent value from ID-dependent member next [altera-id-dependent-backward-branch]
int can_all_from_reach(struct commit_list *from, struct commit_list *to,
                                                 ^
/datasets/git/commit-reach.c:861:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'from' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (from) {
               ^
/datasets/git/commit-reach.c:862:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                clear_commit_marks(from->item, PARENT1);
                                               ^
/datasets/git/commit-reach.c:13:19: note: expanded from macro 'PARENT1'
#define PARENT1         (1u<<16)
                         ^   ~~
/datasets/git/commit-reach.c:866:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (to) {
        ^
/datasets/git/commit-reach.c:866:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'to' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (to) {
               ^
/datasets/git/commit-reach.c:867:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                clear_commit_marks(to->item, PARENT2);
                                             ^
/datasets/git/commit-reach.c:14:19: note: expanded from macro 'PARENT2'
#define PARENT2         (1u<<17)
                         ^   ~~
/datasets/git/commit-reach.c:876:23: warning: parameter name 'to' is too short, expected at least 3 characters [readability-identifier-length]
                                         struct commit **to, int nr_to,
                                                         ^
/datasets/git/commit-reach.c:879:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct commit **item;
        ^
/datasets/git/commit-reach.c:876:27: warning: 2 adjacent parameters of 'get_reachable_subset' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                         struct commit **to, int nr_to,
                                                             ^~~~~~~~~~
/datasets/git/commit-reach.c:876:31: note: the first parameter in the range is 'nr_to'
                                         struct commit **to, int nr_to,
                                                                 ^~~~~
/datasets/git/commit-reach.c:877:20: note: the last parameter in the range is 'reachable_flag'
                                         unsigned int reachable_flag)
                                                      ^~~~~~~~~~~~~~
/datasets/git/commit-reach.c:877:7: note: 'int' and 'unsigned int' may be implicitly converted
                                         unsigned int reachable_flag)
                                         ^
/datasets/git/commit-reach.c:879:18: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct commit **item;
                        ^
                             = NULL
/datasets/git/commit-reach.c:880:17: warning: variable 'current' is not initialized [cppcoreguidelines-init-variables]
        struct commit *current;
                       ^
                               = NULL
/datasets/git/commit-reach.c:884:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        timestamp_t min_generation = GENERATION_NUMBER_INFINITY;
                                     ^
/datasets/git/./negotiator/../commit.h:14:38: note: expanded from macro 'GENERATION_NUMBER_INFINITY'
#define GENERATION_NUMBER_INFINITY ((1ULL << 63) - 1)
                                     ^       ~~
/datasets/git/commit-reach.c:889:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (item = to; item < to_last; item++) {
        ^
/datasets/git/commit-reach.c:879:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct commit **item;
        ^
/datasets/git/commit-reach.c:889:18: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (item = to; item < to_last; item++) {
                        ^
/datasets/git/commit-reach.c:890:15: warning: variable 'generation' is not initialized [cppcoreguidelines-init-variables]
                timestamp_t generation;
                            ^
                                       = 0
/datasets/git/commit-reach.c:891:18: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                struct commit *c = *item;
                               ^
/datasets/git/commit-reach.c:895:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (generation < min_generation)
                                                ^
                                                 {
/datasets/git/commit-reach.c:898:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(c->object.flags & PARENT1)) {
                                        ^
/datasets/git/commit-reach.c:13:19: note: expanded from macro 'PARENT1'
#define PARENT1         (1u<<16)
                         ^   ~~
/datasets/git/commit-reach.c:899:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        c->object.flags |= PARENT1;
                                           ^
/datasets/git/commit-reach.c:13:19: note: expanded from macro 'PARENT1'
#define PARENT1         (1u<<16)
                         ^   ~~
/datasets/git/commit-reach.c:904:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (item = from; item < from_last; item++) {
        ^
/datasets/git/commit-reach.c:880:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct commit *current;
        ^
/datasets/git/commit-reach.c:904:20: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (item = from; item < from_last; item++) {
                          ^
/datasets/git/commit-reach.c:905:18: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                struct commit *c = *item;
                               ^
/datasets/git/commit-reach.c:906:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(c->object.flags & PARENT2)) {
                                        ^
/datasets/git/commit-reach.c:14:19: note: expanded from macro 'PARENT2'
#define PARENT2         (1u<<17)
                         ^   ~~
/datasets/git/commit-reach.c:907:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        c->object.flags |= PARENT2;
                                           ^
/datasets/git/commit-reach.c:14:19: note: expanded from macro 'PARENT2'
#define PARENT2         (1u<<17)
                         ^   ~~
/datasets/git/commit-reach.c:915:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                struct commit_list *parents;
                ^
/datasets/git/commit-reach.c:914:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'current' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (num_to_find && (current = prio_queue_get(&queue)) != NULL) {
               ^
/datasets/git/commit-reach.c:915:23: warning: variable 'parents' is not initialized [cppcoreguidelines-init-variables]
                struct commit_list *parents;
                                    ^
                                            = NULL
/datasets/git/commit-reach.c:917:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (current->object.flags & PARENT1) {
                                            ^
/datasets/git/commit-reach.c:13:19: note: expanded from macro 'PARENT1'
#define PARENT1         (1u<<16)
                         ^   ~~
/datasets/git/commit-reach.c:918:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        current->object.flags &= ~PARENT1;
                                                  ^
/datasets/git/commit-reach.c:13:19: note: expanded from macro 'PARENT1'
#define PARENT1         (1u<<16)
                         ^   ~~
/datasets/git/commit-reach.c:924:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (parents = current->parents; parents; parents = parents->next) {
                ^
/datasets/git/commit-reach.c:924:36: warning: backward branch (for loop) is ID-dependent due to variable reference to 'parents' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (parents = current->parents; parents; parents = parents->next) {
                                                 ^
/datasets/git/commit-reach.c:925:19: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                        struct commit *p = parents->item;
                                       ^
/datasets/git/commit-reach.c:929:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (commit_graph_generation(p) < min_generation)
                                                                        ^
                                                                         {
/datasets/git/commit-reach.c:932:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (p->object.flags & PARENT2)
                                              ^
/datasets/git/commit-reach.c:14:19: note: expanded from macro 'PARENT2'
#define PARENT2         (1u<<17)
                         ^   ~~
/datasets/git/commit-reach.c:932:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (p->object.flags & PARENT2)
                                                      ^
                                                       {
/datasets/git/commit-reach.c:935:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        p->object.flags |= PARENT2;
                                           ^
/datasets/git/commit-reach.c:14:19: note: expanded from macro 'PARENT2'
#define PARENT2         (1u<<17)
                         ^   ~~
/datasets/git/commit-reach.c:940:37: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        clear_commit_marks_many(nr_to, to, PARENT1);
                                           ^
/datasets/git/commit-reach.c:13:19: note: expanded from macro 'PARENT1'
#define PARENT1         (1u<<16)
                         ^   ~~
/datasets/git/commit-reach.c:941:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        clear_commit_marks_many(nr_from, from, PARENT2);
                                               ^
/datasets/git/commit-reach.c:14:19: note: expanded from macro 'PARENT2'
#define PARENT2         (1u<<17)
                         ^   ~~
/datasets/git/commit.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "tag.h"
^        ~~~~~~~
         "advice.h"
/datasets/git/commit.c:26:36: warning: function 'read_commit_extra_header_lines' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
static struct commit_extra_header *read_commit_extra_header_lines(const char *buf, size_t len, const char **);
                                   ^
/datasets/git/commit.c:1349:36: note: the definition seen here
static struct commit_extra_header *read_commit_extra_header_lines(
                                   ^
/datasets/git/commit.c:26:36: note: differing parameters are named here: ('len'), in definition: ('size')
static struct commit_extra_header *read_commit_extra_header_lines(const char *buf, size_t len, const char **);
                                   ^                                                      ~~~
                                                                                          size
/datasets/git/commit.c:26:109: warning: all parameters should be named in a function [hicpp-named-parameter,readability-named-parameter]
static struct commit_extra_header *read_commit_extra_header_lines(const char *buf, size_t len, const char **);
                                                                                                            ^
                                                                                                             /*exclude*/
/datasets/git/commit.c:28:5: warning: variable 'save_commit_buffer' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
int save_commit_buffer = 1;
    ^
/datasets/git/commit.c:29:5: warning: variable 'no_graft_file_deprecated_advice' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
int no_graft_file_deprecated_advice;
    ^
/datasets/git/commit.c:31:13: warning: variable 'commit_type' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
const char *commit_type = "commit";
            ^
/datasets/git/commit.c:33:66: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
struct commit *lookup_commit_reference_gently(struct repository *r,
                                                                 ^
/datasets/git/commit.c:40:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!obj)
                 ^
                  {
/datasets/git/commit.c:45:59: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
struct commit *lookup_commit_reference(struct repository *r, const struct object_id *oid)
                                                          ^
/datasets/git/commit.c:52:17: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        struct commit *c = lookup_commit_reference(the_repository, oid);
                       ^
/datasets/git/commit.c:53:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!c)
               ^
                {
/datasets/git/commit.c:62:56: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
struct commit *lookup_commit_object(struct repository *r,
                                                       ^
/datasets/git/commit.c:70:49: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
struct commit *lookup_commit(struct repository *r, const struct object_id *oid)
                                                ^
/datasets/git/commit.c:73:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!obj)
                 ^
                  {
/datasets/git/commit.c:81:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/commit.c:83:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid_committish(name, &oid))
                                           ^
                                            {
/datasets/git/commit.c:86:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_commit(commit))
                                 ^
                                  {
/datasets/git/commit.c:93:14: warning: variable 'dateptr' is not initialized [cppcoreguidelines-init-variables]
        const char *dateptr;
                    ^
                            = NULL
/datasets/git/commit.c:95:12: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (buf + 6 >= tail)
                  ^
/datasets/git/commit.c:95:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (buf + 6 >= tail)
                            ^
                             {
/datasets/git/commit.c:97:6: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (memcmp(buf, "author", 6))
            ^
                                     != 0
/datasets/git/commit.c:97:28: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (memcmp(buf, "author", 6))
                                  ^
/datasets/git/commit.c:97:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (memcmp(buf, "author", 6))
                                     ^
                                      {
/datasets/git/commit.c:99:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (buf < tail && *buf++ != '\n')
        ^
/datasets/git/commit.c:99:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (buf < tail && *buf++ != '\n')
                                            ^
                                             {
/datasets/git/commit.c:101:12: warning: 9 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (buf + 9 >= tail)
                  ^
/datasets/git/commit.c:101:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (buf + 9 >= tail)
                            ^
                             {
/datasets/git/commit.c:103:6: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (memcmp(buf, "committer", 9))
            ^
                                        != 0
/datasets/git/commit.c:103:31: warning: 9 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (memcmp(buf, "committer", 9))
                                     ^
/datasets/git/commit.c:103:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (memcmp(buf, "committer", 9))
                                        ^
                                         {
/datasets/git/commit.c:105:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (buf < tail && *buf++ != '>')
        ^
/datasets/git/commit.c:105:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (buf < tail && *buf++ != '>')
                                           ^
                                            {
/datasets/git/commit.c:107:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (buf >= tail)
                        ^
                         {
/datasets/git/commit.c:110:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (buf < tail && *buf++ != '\n')
        ^
/datasets/git/commit.c:110:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (buf < tail && *buf++ != '\n')
                                            ^
                                             {
/datasets/git/commit.c:112:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (buf >= tail)
                        ^
                         {
/datasets/git/commit.c:115:40: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        return parse_timestamp(dateptr, NULL, 10);
                                              ^
/datasets/git/commit.c:124:41: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int commit_graft_pos(struct repository *r, const struct object_id *oid)
                                        ^
/datasets/git/commit.c:131:47: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void unparse_commit(struct repository *r, const struct object_id *oid)
                                              ^
/datasets/git/commit.c:133:17: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        struct commit *c = lookup_commit(r, oid);
                       ^
/datasets/git/commit.c:135:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!c->object.parsed)
                              ^
                               {
/datasets/git/commit.c:142:46: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int register_commit_graft(struct repository *r, struct commit_graft *graft,
                                             ^
/datasets/git/commit.c:148:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ignore_dups)
                                ^
                                 {
/datasets/git/commit.c:157:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(r->parsed_objects->grafts,
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/commit.c:157:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_GROW(r->parsed_objects->grafts,
        ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/commit.c:161:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pos < r->parsed_objects->grafts_nr)
                                               ^
                                                {
/datasets/git/commit.c:162:3: warning: Call to function 'memmove' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memmove_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memmove(r->parsed_objects->grafts + pos + 1,
                ^~~~~~~
/datasets/git/commit.c:162:3: note: Call to function 'memmove' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memmove_s' in case of C11
                memmove(r->parsed_objects->grafts + pos + 1,
                ^~~~~~~
/datasets/git/commit.c:165:4: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                        sizeof(*r->parsed_objects->grafts));
                        ^
/datasets/git/commit.c:174:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, phase;
        ^~~~~~~~~~~~~
/datasets/git/commit.c:174:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, phase;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit.c:174:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit.c:174:9: warning: variable 'phase' is not initialized [cppcoreguidelines-init-variables]
        int i, phase;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit.c:177:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct object_id dummy_oid, *oid;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit.c:177:31: warning: variable 'oid' is not initialized [cppcoreguidelines-init-variables]
        struct object_id dummy_oid, *oid;
                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit.c:180:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!line->len || line->buf[0] == '#')
                                              ^
                                               {
/datasets/git/commit.c:188:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (parse_oid_hex(line->buf, oid, &tail))
                                                         ^
                                                          {
/datasets/git/commit.c:190:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; *tail != '\0'; i++) {
                ^
/datasets/git/commit.c:192:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!isspace(*tail++) || parse_oid_hex(tail, oid, &tail))
                             ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/commit.c:192:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!isspace(*tail++) || parse_oid_hex(tail, oid, &tail))
                                                                                 ^
                                                                                  {
/datasets/git/commit.c:209:47: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int read_graft_file(struct repository *r, const char *graft_file)
                                              ^
/datasets/git/commit.c:211:8: warning: variable name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
        FILE *fp = fopen_or_warn(graft_file, "r");
              ^
/datasets/git/commit.c:213:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!fp)
                ^
                 {
/datasets/git/commit.c:216:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            advice_enabled(ADVICE_GRAFT_FILE_DEPRECATED))
                                                         ^
                                                          {
/datasets/git/commit.c:225:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (!strbuf_getwholeline(&buf, fp, '\n')) {
        ^
/datasets/git/commit.c:225:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'buf' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (!strbuf_getwholeline(&buf, fp, '\n')) {
               ^
/datasets/git/commit.c:228:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!graft)
                           ^
                            {
/datasets/git/commit.c:230:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (register_commit_graft(r, graft, 1))
                                                       ^
                                                        {
/datasets/git/commit.c:233:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(fp);
        ^~~~~~~~~~
/datasets/git/commit.c:233:2: note: cast the expression to void to silence this warning
/datasets/git/commit.c:238:46: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void prepare_commit_graft(struct repository *r)
                                             ^
/datasets/git/commit.c:240:8: warning: variable 'graft_file' is not initialized [cppcoreguidelines-init-variables]
        char *graft_file;
              ^
                         = NULL
/datasets/git/commit.c:242:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (r->parsed_objects->commit_graft_prepared)
                                                     ^
                                                      {
/datasets/git/commit.c:244:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!startup_info->have_repository)
                                           ^
                                            {
/datasets/git/commit.c:254:61: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
struct commit_graft *lookup_commit_graft(struct repository *r, const struct object_id *oid)
                                                            ^
/datasets/git/commit.c:256:6: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        int pos;
            ^
                = 0
/datasets/git/commit.c:259:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pos < 0)
                    ^
                     {
/datasets/git/commit.c:264:48: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
int for_each_commit_graft(each_commit_graft_fn fn, void *cb_data)
                                               ^
/datasets/git/commit.c:266:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, ret;
        ^~~~~~~~~~~
/datasets/git/commit.c:266:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, ret;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit.c:266:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit.c:266:9: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int i, ret;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit.c:267:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = ret = 0; i < the_repository->parsed_objects->grafts_nr && !ret; i++)
        ^
/datasets/git/commit.c:267:20: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = ret = 0; i < the_repository->parsed_objects->grafts_nr && !ret; i++)
                          ^
/datasets/git/commit.c:267:79: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = ret = 0; i < the_repository->parsed_objects->grafts_nr && !ret; i++)
                                                                                     ^
                                                                                      {
/datasets/git/commit.c:272:45: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void reset_commit_grafts(struct repository *r)
                                            ^
/datasets/git/commit.c:274:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/commit.c:274:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit.c:276:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < r->parsed_objects->grafts_nr; i++) {
        ^
/datasets/git/commit.c:284:8: warning: accessing fields in struct 'commit_buffer' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct commit_buffer {
       ^
/datasets/git/commit.c:284:8: note: use "__attribute__((aligned(16)))" to align struct 'commit_buffer' to 16 bytes
/datasets/git/commit.c:288:1: warning: backward branch (for loop) is ID-dependent due to member reference to 'slab_size' and may cause performance degradation [altera-id-dependent-backward-branch]
define_commit_slab(buffer_slab, struct commit_buffer);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:48:15: note: expanded from macro 'implement_commit_slab'
                for (j = 0; j < s->slab_size; j++)                      \
                            ^
/datasets/git/commit.c:288:1: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
define_commit_slab(buffer_slab, struct commit_buffer);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:68:27: note: expanded from macro 'implement_commit_slab'
                for (i = s->slab_count; i <= nth_slab; i++)             \
                                        ^
/datasets/git/commit.c:288:1: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
define_commit_slab(buffer_slab, struct commit_buffer);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:35:2: note: expanded from macro 'implement_commit_slab'
        for (i = 0; i < s->slab_count; i++)                             \
        ^
/datasets/git/commit.c:288:1: warning: result of multiplication in type 'unsigned int' is used as a pointer offset after an implicit widening conversion to type 'size_t' [bugprone-implicit-widening-of-multiplication-result]
define_commit_slab(buffer_slab, struct commit_buffer);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:49:13: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                 ^
/datasets/git/commit.c:288:1: note: make conversion explicit to silence this warning
define_commit_slab(buffer_slab, struct commit_buffer);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:49:24: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                            ^~~~~~~~~~~~~
/datasets/git/commit.c:288:1: note: perform multiplication in a wider type
define_commit_slab(buffer_slab, struct commit_buffer);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:49:24: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                            ^
/datasets/git/commit.c:288:1: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
define_commit_slab(buffer_slab, struct commit_buffer);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:67:3: note: expanded from macro 'implement_commit_slab'
                REALLOC_ARRAY(s->slab, nth_slab + 1);                   \
                ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/commit.c:288:1: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(buffer_slab, struct commit_buffer);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:55:30: note: expanded from macro 'implement_commit_slab'
                                                  const struct commit *c, \
                                                                       ^
/datasets/git/commit.c:288:1: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(buffer_slab, struct commit_buffer);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:14:61: note: expanded from macro 'implement_commit_slab'
scope void init_ ##slabname## _with_stride(struct slabname *s,          \
                                                            ^
/datasets/git/commit.c:288:1: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(buffer_slab, struct commit_buffer);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:34:15: note: expanded from macro 'implement_commit_slab'
        unsigned int i;                                                 \
                     ^
/datasets/git/commit.c:288:1: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(buffer_slab, struct commit_buffer);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:45:16: note: expanded from macro 'implement_commit_slab'
                unsigned int j;                                         \
                             ^
/datasets/git/commit.c:288:1: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
define_commit_slab(buffer_slab, struct commit_buffer);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:58:2: note: expanded from macro 'implement_commit_slab'
        unsigned int nth_slab, nth_slot;                                \
        ^
/datasets/git/commit.c:288:1: note: inferred assignment of ID-dependent value from ID-dependent member slab_count [altera-id-dependent-backward-branch]
define_commit_slab(buffer_slab, struct commit_buffer);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:64:3: note: expanded from macro 'implement_commit_slab'
                unsigned int i;                                         \
                ^
/datasets/git/commit.c:288:20: warning: accessing fields in struct 'buffer_slab' is inefficient due to padding; only needs 20 bytes but is using 24 bytes [altera-struct-pack-align]
define_commit_slab(buffer_slab, struct commit_buffer);
                   ^
/datasets/git/commit.c:288:20: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'buffer_slab'
/datasets/git/commit.c:288:20: warning: accessing fields in struct 'buffer_slab' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
define_commit_slab(buffer_slab, struct commit_buffer);
                   ^
/datasets/git/commit.c:288:20: note: use "__attribute__((aligned(32)))" to align struct 'buffer_slab' to 32 bytes
/datasets/git/commit.c:292:22: warning: variable name 'bs' is too short, expected at least 3 characters [readability-identifier-length]
        struct buffer_slab *bs = xmalloc(sizeof(*bs));
                            ^
/datasets/git/commit.c:297:50: warning: parameter name 'bs' is too short, expected at least 3 characters [readability-identifier-length]
void free_commit_buffer_slab(struct buffer_slab *bs)
                                                 ^
/datasets/git/commit.c:303:43: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void set_commit_buffer(struct repository *r, struct commit *commit, void *buffer, unsigned long size)
                                          ^
/datasets/git/commit.c:305:24: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
        struct commit_buffer *v = buffer_slab_at(
                              ^
/datasets/git/commit.c:311:57: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
const void *get_cached_commit_buffer(struct repository *r, const struct commit *commit, unsigned long *sizep)
                                                        ^
/datasets/git/commit.c:313:24: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
        struct commit_buffer *v = buffer_slab_peek(
                              ^
/datasets/git/commit.c:316:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (sizep)
                          ^
                           {
/datasets/git/commit.c:320:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (sizep)
                  ^
                   {
/datasets/git/commit.c:325:55: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
const void *repo_get_commit_buffer(struct repository *r,
                                                      ^
/datasets/git/commit.c:331:20: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
                enum object_type type;
                                 ^
/datasets/git/commit.c:332:17: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
                unsigned long size;
                              ^
                                   = 0
/datasets/git/commit.c:334:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ret)
                         ^
                          {
/datasets/git/commit.c:337:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (type != OBJ_COMMIT)
                                       ^
                                        {
/datasets/git/commit.c:340:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (sizep)
                          ^
                           {
/datasets/git/commit.c:346:50: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void repo_unuse_commit_buffer(struct repository *r,
                                                 ^
/datasets/git/commit.c:350:24: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
        struct commit_buffer *v = buffer_slab_peek(
                              ^
/datasets/git/commit.c:352:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(v && v->buffer == buffer))
                                        ^
                                         {
/datasets/git/commit.c:358:24: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
        struct commit_buffer *v = buffer_slab_peek(
                              ^
/datasets/git/commit.c:361:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FREE_AND_NULL(v->buffer);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/commit.c:366:51: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static inline void set_commit_tree(struct commit *c, struct tree *t)
                                                  ^
/datasets/git/commit.c:366:67: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
static inline void set_commit_tree(struct commit *c, struct tree *t)
                                                                  ^
/datasets/git/commit.c:371:54: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
struct tree *repo_get_commit_tree(struct repository *r,
                                                     ^
/datasets/git/commit.c:374:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (commit->maybe_tree || !commit->object.parsed)
                                                         ^
                                                          {
/datasets/git/commit.c:377:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (commit_graph_position(commit) != COMMIT_NOT_FROM_GRAPH)
                                                                   ^
                                                                    {
/datasets/git/commit.c:389:76: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
void release_commit_memory(struct parsed_object_pool *pool, struct commit *c)
                                                                           ^
/datasets/git/commit.c:401:24: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
        struct commit_buffer *v = buffer_slab_peek(
                              ^
/datasets/git/commit.c:403:8: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        void *ret;
              ^
                  = NULL
/datasets/git/commit.c:406:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (sizep)
                          ^
                           {
/datasets/git/commit.c:411:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (sizep)
                  ^
                   {
/datasets/git/commit.c:419:44: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int parse_commit_buffer(struct repository *r, struct commit *item, const void *buffer, unsigned long size, int check_graph)
                                           ^
/datasets/git/commit.c:419:88: warning: 2 adjacent parameters of 'parse_commit_buffer' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
int parse_commit_buffer(struct repository *r, struct commit *item, const void *buffer, unsigned long size, int check_graph)
                                                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit.c:419:102: note: the first parameter in the range is 'size'
int parse_commit_buffer(struct repository *r, struct commit *item, const void *buffer, unsigned long size, int check_graph)
                                                                                                     ^~~~
/datasets/git/commit.c:419:112: note: the last parameter in the range is 'check_graph'
int parse_commit_buffer(struct repository *r, struct commit *item, const void *buffer, unsigned long size, int check_graph)
                                                                                                               ^~~~~~~~~~~
/datasets/git/commit.c:419:108: note: 'unsigned long' and 'int' may be implicitly converted
int parse_commit_buffer(struct repository *r, struct commit *item, const void *buffer, unsigned long size, int check_graph)
                                                                                                           ^
/datasets/git/commit.c:424:23: warning: variable 'pptr' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list **pptr;
                             ^
                                  = NULL
/datasets/git/commit.c:425:23: warning: variable 'graft' is not initialized [cppcoreguidelines-init-variables]
        struct commit_graft *graft;
                             ^
                                   = NULL
/datasets/git/commit.c:428:15: warning: variable 'tree' is not initialized [cppcoreguidelines-init-variables]
        struct tree *tree;
                     ^
                          = NULL
/datasets/git/commit.c:430:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (item->object.parsed)
                                ^
                                 {
/datasets/git/commit.c:442:45: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (tail <= bufptr + tree_entry_len + 1 || memcmp(bufptr, "tree ", 5) ||
                                                   ^
                                                                              != 0
/datasets/git/commit.c:442:69: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (tail <= bufptr + tree_entry_len + 1 || memcmp(bufptr, "tree ", 5) ||
                                                                           ^
/datasets/git/commit.c:443:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        bufptr[tree_entry_len] != '\n')
                                                       ^
                                                        {
/datasets/git/commit.c:445:27: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (get_oid_hex(bufptr + 5, &parent) < 0)
                                 ^
/datasets/git/commit.c:445:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid_hex(bufptr + 5, &parent) < 0)
                                                 ^
                                                  {
/datasets/git/commit.c:449:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!tree)
                  ^
                   {
/datasets/git/commit.c:458:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (graft)
                  ^
                   {
/datasets/git/commit.c:460:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (bufptr + parent_entry_len < tail && !memcmp(bufptr, "parent ", 7)) {
        ^
/datasets/git/commit.c:460:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'bufptr' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (bufptr + parent_entry_len < tail && !memcmp(bufptr, "parent ", 7)) {
               ^
/datasets/git/commit.c:460:72: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        while (bufptr + parent_entry_len < tail && !memcmp(bufptr, "parent ", 7)) {
                                                                              ^
/datasets/git/commit.c:461:18: warning: variable 'new_parent' is not initialized [cppcoreguidelines-init-variables]
                struct commit *new_parent;
                               ^
                                          = NULL
/datasets/git/commit.c:464:28: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                    get_oid_hex(bufptr + 7, &parent) ||
                                         ^
/datasets/git/commit.c:465:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    bufptr[parent_entry_len] != '\n')
                                                     ^
                                                      {
/datasets/git/commit.c:472:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (graft && (graft->nr_parent < 0 || grafts_replace_parents))
                                                                              ^
                                                                               {
/datasets/git/commit.c:475:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!new_parent)
                                ^
                                 {
/datasets/git/commit.c:482:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/commit.c:482:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit.c:483:18: warning: variable 'new_parent' is not initialized [cppcoreguidelines-init-variables]
                struct commit *new_parent;
                               ^
                                          = NULL
/datasets/git/commit.c:484:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < graft->nr_parent; i++) {
                ^
/datasets/git/commit.c:484:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'graft' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < graft->nr_parent; i++) {
                            ^
/datasets/git/commit.c:487:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!new_parent)
                                        ^
                                         {
/datasets/git/commit.c:496:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (check_graph)
                        ^
                         {
/datasets/git/commit.c:503:51: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int repo_parse_commit_internal(struct repository *r,
                                                  ^
/datasets/git/commit.c:505:11: warning: 2 adjacent parameters of 'repo_parse_commit_internal' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                               int quiet_on_missing,
                               ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit.c:505:15: note: the first parameter in the range is 'quiet_on_missing'
                               int quiet_on_missing,
                                   ^~~~~~~~~~~~~~~~
/datasets/git/commit.c:506:15: note: the last parameter in the range is 'use_commit_graph'
                               int use_commit_graph)
                                   ^~~~~~~~~~~~~~~~
/datasets/git/commit.c:508:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/commit.c:509:8: warning: variable 'buffer' is not initialized [cppcoreguidelines-init-variables]
        void *buffer;
              ^
                     = NULL
/datasets/git/commit.c:510:16: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size;
                      ^
                           = 0
/datasets/git/commit.c:511:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/commit.c:513:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!item)
                  ^
                   {
/datasets/git/commit.c:515:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (item->object.parsed)
                                ^
                                 {
/datasets/git/commit.c:517:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (use_commit_graph && parse_commit_in_graph(r, item))
                                                               ^
                                                                {
/datasets/git/commit.c:520:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!buffer)
                    ^
                     {
/datasets/git/commit.c:539:49: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int repo_parse_commit_gently(struct repository *r,
                                                ^
/datasets/git/commit.c:547:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_commit(item))
                               ^
                                {
/datasets/git/commit.c:554:14: warning: variable 'eol' is not initialized [cppcoreguidelines-init-variables]
        const char *eol;
                    ^
                        = NULL
/datasets/git/commit.c:555:14: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        const char *p = commit_buffer;
                    ^
/datasets/git/commit.c:557:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*p && (*p != '\n' || p[1] != '\n'))
        ^
/datasets/git/commit.c:557:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (*p && (*p != '\n' || p[1] != '\n'))
               ^
/datasets/git/commit.c:557:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (*p && (*p != '\n' || p[1] != '\n'))
                                                  ^
                                                   {
/datasets/git/commit.c:562:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/commit.c:567:9: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return eol - p;
               ^
/datasets/git/commit.c:572:14: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        const char *p = body;
                    ^
/datasets/git/commit.c:573:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*p) {
        ^
/datasets/git/commit.c:573:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (*p) {
               ^
/datasets/git/commit.c:575:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (next != p)
                              ^
                               {
/datasets/git/commit.c:578:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*p)
                       ^
                        {
/datasets/git/commit.c:595:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (list) {
        ^
/datasets/git/commit.c:595:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'list' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (list) {
               ^
/datasets/git/commit.c:596:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (list->item == item)
                                       ^
                                        {
/datasets/git/commit.c:604:54: warning: parameter name 'l' is too short, expected at least 3 characters [readability-identifier-length]
unsigned commit_list_count(const struct commit_list *l)
                                                     ^
/datasets/git/commit.c:606:11: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned c = 0;
                 ^
/datasets/git/commit.c:612:38: note: inferred assignment of ID-dependent value from ID-dependent member next [altera-id-dependent-backward-branch]
struct commit_list *copy_commit_list(struct commit_list *list)
                                     ^
/datasets/git/commit.c:607:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; l; l = l->next )
        ^
/datasets/git/commit.c:607:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'l' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; l; l = l->next )
               ^
/datasets/git/commit.c:607:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (; l; l = l->next )
                               ^
                                {
/datasets/git/commit.c:615:23: warning: variable name 'pp' is too short, expected at least 3 characters [readability-identifier-length]
        struct commit_list **pp = &head;
                             ^
/datasets/git/commit.c:616:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (list) {
        ^
/datasets/git/commit.c:616:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'list' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (list) {
               ^
/datasets/git/commit.c:625:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit_list *next = NULL, *current, *backup;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit.c:625:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/commit.c:625:36: warning: variable 'current' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *next = NULL, *current, *backup;
                                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit.c:625:46: warning: variable 'backup' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *next = NULL, *current, *backup;
                                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit.c:626:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (current = list; current; current = backup) {
        ^
/datasets/git/commit.c:626:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 'current' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (current = list; current; current = backup) {
                             ^
/datasets/git/commit.c:636:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (list)
        ^
/datasets/git/commit.c:643:2: note: inferred assignment of ID-dependent value from ID-dependent variable pp [altera-id-dependent-backward-branch]
        struct commit_list *p;
        ^
/datasets/git/commit.c:636:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (list)
                    ^
                     {
/datasets/git/commit.c:642:23: warning: variable name 'pp' is too short, expected at least 3 characters [readability-identifier-length]
        struct commit_list **pp = list;
                             ^
/datasets/git/commit.c:643:22: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *p;
                            ^
                              = NULL
/datasets/git/commit.c:643:22: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit.c:644:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((p = *pp) != NULL) {
        ^
/datasets/git/commit.c:644:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((p = *pp) != NULL) {
               ^
/datasets/git/commit.c:653:66: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static int commit_list_compare_by_date(const struct commit_list *a,
                                                                 ^
/datasets/git/commit.c:654:38: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
                                       const struct commit_list *b)
                                                                 ^
/datasets/git/commit.c:658:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (a_date < b_date)
                            ^
                             {
/datasets/git/commit.c:660:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (a_date > b_date)
                            ^
                             {
/datasets/git/commit.c:665:1: warning: backward branch (do loop) is ID-dependent due to variable reference to 'list' and may cause performance degradation [altera-id-dependent-backward-branch]
DEFINE_LIST_SORT(static, commit_list_sort, struct commit_list, next);
^
/datasets/git/./mergesort.h:102:58: note: expanded from macro 'DEFINE_LIST_SORT'
#define DEFINE_LIST_SORT(scope, name, type, next_member) \
                                                         ^
/datasets/git/./mergesort.h:97:9: note: expanded from macro '\
DEFINE_LIST_SORT_DEBUG'
                                                                \
                                                                ^
/datasets/git/./mergesort.h:24:12: note: expanded from macro '\
DEFINE_LIST_MERGE_INTERNAL'
                } while (compare_fn(list, other) < prefer_list);        \
                         ^
/datasets/git/commit.c:665:1: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
DEFINE_LIST_SORT(static, commit_list_sort, struct commit_list, next);
^
/datasets/git/./mergesort.h:102:58: note: expanded from macro 'DEFINE_LIST_SORT'
#define DEFINE_LIST_SORT(scope, name, type, next_member) \
                                                         ^
/datasets/git/./mergesort.h:97:9: note: expanded from macro '\
DEFINE_LIST_SORT_DEBUG'
                                                                \
                                                                ^
/datasets/git/./mergesort.h:14:3: note: expanded from macro '\
DEFINE_LIST_MERGE_INTERNAL'
                SWAP(list, other);                                      \
                ^
/datasets/git/./git-compat-util.h:759:20: note: expanded from macro 'SWAP'
#define SWAP(a, b) do {                                         \
                   ^
/datasets/git/commit.c:665:1: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
DEFINE_LIST_SORT(static, commit_list_sort, struct commit_list, next);
^
/datasets/git/./mergesort.h:102:58: note: expanded from macro 'DEFINE_LIST_SORT'
#define DEFINE_LIST_SORT(scope, name, type, next_member) \
                                                         ^
/datasets/git/./mergesort.h:97:9: note: expanded from macro '\
DEFINE_LIST_SORT_DEBUG'
                                                                \
                                                                ^
/datasets/git/./mergesort.h:14:3: note: expanded from macro '\
DEFINE_LIST_MERGE_INTERNAL'
                SWAP(list, other);                                      \
                ^
/datasets/git/./git-compat-util.h:762:29: note: expanded from macro 'SWAP'
        unsigned char _swap_buffer[sizeof(a)];                  \
                                   ^
/datasets/git/commit.c:665:1: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
DEFINE_LIST_SORT(static, commit_list_sort, struct commit_list, next);
^
/datasets/git/./mergesort.h:102:58: note: expanded from macro 'DEFINE_LIST_SORT'
#define DEFINE_LIST_SORT(scope, name, type, next_member) \
                                                         ^
/datasets/git/./mergesort.h:97:9: note: expanded from macro '\
DEFINE_LIST_SORT_DEBUG'
                                                                \
                                                                ^
/datasets/git/./mergesort.h:14:3: note: expanded from macro '\
DEFINE_LIST_MERGE_INTERNAL'
                SWAP(list, other);                                      \
                ^~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/commit.c:665:1: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
DEFINE_LIST_SORT(static, commit_list_sort, struct commit_list, next);
^
/datasets/git/./mergesort.h:102:58: note: expanded from macro 'DEFINE_LIST_SORT'
#define DEFINE_LIST_SORT(scope, name, type, next_member) \
                                                         ^
/datasets/git/./mergesort.h:97:9: note: expanded from macro '\
DEFINE_LIST_SORT_DEBUG'
                                                                \
                                                                ^
/datasets/git/./mergesort.h:14:3: note: expanded from macro '\
DEFINE_LIST_MERGE_INTERNAL'
                SWAP(list, other);                                      \
                ^~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/commit.c:665:1: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
DEFINE_LIST_SORT(static, commit_list_sort, struct commit_list, next);
^
/datasets/git/./mergesort.h:102:58: note: expanded from macro 'DEFINE_LIST_SORT'
#define DEFINE_LIST_SORT(scope, name, type, next_member) \
                                                         ^
/datasets/git/./mergesort.h:97:9: note: expanded from macro '\
DEFINE_LIST_SORT_DEBUG'
                                                                \
                                                                ^
/datasets/git/./mergesort.h:26:3: note: expanded from macro '\
DEFINE_LIST_MERGE_INTERNAL'
                prefer_list ^= 1;                                       \
                ^~~~~~~~~~~
/datasets/git/commit.c:665:1: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
DEFINE_LIST_SORT(static, commit_list_sort, struct commit_list, next);
^
/datasets/git/./mergesort.h:102:58: note: expanded from macro 'DEFINE_LIST_SORT'
#define DEFINE_LIST_SORT(scope, name, type, next_member) \
                                                         ^
/datasets/git/./mergesort.h:98:43: note: expanded from macro '\
DEFINE_LIST_SORT_DEBUG'
DEFINE_LIST_MERGE_INTERNAL(name, type)                          \
                                                                ^
/datasets/git/./mergesort.h:57:7: note: expanded from macro '\
DEFINE_LIST_SORT_INTERNAL'
                int i;                                                  \
                    ^
/datasets/git/commit.c:665:1: warning: variable name 'm' is too short, expected at least 3 characters [readability-identifier-length]
DEFINE_LIST_SORT(static, commit_list_sort, struct commit_list, next);
^
/datasets/git/./mergesort.h:102:58: note: expanded from macro 'DEFINE_LIST_SORT'
#define DEFINE_LIST_SORT(scope, name, type, next_member) \
                                                         ^
/datasets/git/./mergesort.h:98:43: note: expanded from macro '\
DEFINE_LIST_SORT_DEBUG'
DEFINE_LIST_MERGE_INTERNAL(name, type)                          \
                                                                ^
/datasets/git/./mergesort.h:58:10: note: expanded from macro '\
DEFINE_LIST_SORT_INTERNAL'
                size_t m;                                               \
                       ^
/datasets/git/commit.c:665:1: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
DEFINE_LIST_SORT(static, commit_list_sort, struct commit_list, next);
^
/datasets/git/./mergesort.h:102:58: note: expanded from macro 'DEFINE_LIST_SORT'
#define DEFINE_LIST_SORT(scope, name, type, next_member) \
                                                         ^
/datasets/git/./mergesort.h:98:43: note: expanded from macro '\
DEFINE_LIST_SORT_DEBUG'
DEFINE_LIST_MERGE_INTERNAL(name, type)                          \
                                                                ^
/datasets/git/./mergesort.h:51:9: note: expanded from macro '\
DEFINE_LIST_SORT_INTERNAL'
        size_t n = 0;                                                   \
               ^
/datasets/git/commit.c:665:44: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
DEFINE_LIST_SORT(static, commit_list_sort, struct commit_list, next);
                                           ^
/datasets/git/commit.c:678:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (parents) {
        ^
/datasets/git/commit.c:690:6: note: inferred assignment of ID-dependent value from ID-dependent member item [altera-id-dependent-backward-branch]
                                 struct commit *commit, unsigned int mark)
                                 ^
/datasets/git/commit.c:678:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'parents' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (parents) {
               ^
/datasets/git/commit.c:692:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'commit' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (commit) {
               ^
/datasets/git/commit.c:693:23: warning: variable 'parents' is not initialized [cppcoreguidelines-init-variables]
                struct commit_list *parents;
                                    ^
                                            = NULL
/datasets/git/commit.c:695:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(mark & commit->object.flags))
                                                   ^
                                                    {
/datasets/git/commit.c:701:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!parents)
                             ^
                              {
/datasets/git/commit.c:704:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while ((parents = parents->next))
                ^
/datasets/git/commit.c:704:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'parents' and may cause performance degradation [altera-id-dependent-backward-branch]
                while ((parents = parents->next))
                       ^
/datasets/git/commit.c:704:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while ((parents = parents->next))
                                                 ^
                                                  {
/datasets/git/commit.c:711:34: warning: parameter name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
void clear_commit_marks_many(int nr, struct commit **commit, unsigned int mark)
                                 ^
/datasets/git/commit.c:715:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (nr--) {
        ^
/datasets/git/commit.c:719:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (list)
        ^
/datasets/git/commit.c:719:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (list)
                    ^
                     {
/datasets/git/commit.c:745:1: warning: backward branch (for loop) is ID-dependent due to member reference to 'slab_size' and may cause performance degradation [altera-id-dependent-backward-branch]
define_commit_slab(indegree_slab, int);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:48:15: note: expanded from macro 'implement_commit_slab'
                for (j = 0; j < s->slab_size; j++)                      \
                            ^
/datasets/git/commit.c:745:1: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
define_commit_slab(indegree_slab, int);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:68:27: note: expanded from macro 'implement_commit_slab'
                for (i = s->slab_count; i <= nth_slab; i++)             \
                                        ^
/datasets/git/commit.c:745:1: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
define_commit_slab(indegree_slab, int);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:35:2: note: expanded from macro 'implement_commit_slab'
        for (i = 0; i < s->slab_count; i++)                             \
        ^
/datasets/git/commit.c:745:1: warning: result of multiplication in type 'unsigned int' is used as a pointer offset after an implicit widening conversion to type 'size_t' [bugprone-implicit-widening-of-multiplication-result]
define_commit_slab(indegree_slab, int);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:49:13: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                 ^
/datasets/git/commit.c:745:1: note: make conversion explicit to silence this warning
define_commit_slab(indegree_slab, int);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:49:24: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                            ^~~~~~~~~~~~~
/datasets/git/commit.c:745:1: note: perform multiplication in a wider type
define_commit_slab(indegree_slab, int);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:49:24: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                            ^
/datasets/git/commit.c:745:1: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(indegree_slab, int);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:55:30: note: expanded from macro 'implement_commit_slab'
                                                  const struct commit *c, \
                                                                       ^
/datasets/git/commit.c:745:1: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(indegree_slab, int);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:14:61: note: expanded from macro 'implement_commit_slab'
scope void init_ ##slabname## _with_stride(struct slabname *s,          \
                                                            ^
/datasets/git/commit.c:745:1: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(indegree_slab, int);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:34:15: note: expanded from macro 'implement_commit_slab'
        unsigned int i;                                                 \
                     ^
/datasets/git/commit.c:745:1: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(indegree_slab, int);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:45:16: note: expanded from macro 'implement_commit_slab'
                unsigned int j;                                         \
                             ^
/datasets/git/commit.c:745:1: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
define_commit_slab(indegree_slab, int);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:58:2: note: expanded from macro 'implement_commit_slab'
        unsigned int nth_slab, nth_slot;                                \
        ^
/datasets/git/commit.c:745:1: note: inferred assignment of ID-dependent value from ID-dependent member slab_count [altera-id-dependent-backward-branch]
define_commit_slab(indegree_slab, int);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:64:3: note: expanded from macro 'implement_commit_slab'
                unsigned int i;                                         \
                ^
/datasets/git/commit.c:745:20: warning: accessing fields in struct 'indegree_slab' is inefficient due to padding; only needs 20 bytes but is using 24 bytes [altera-struct-pack-align]
define_commit_slab(indegree_slab, int);
                   ^
/datasets/git/commit.c:745:20: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'indegree_slab'
/datasets/git/commit.c:745:20: warning: accessing fields in struct 'indegree_slab' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
define_commit_slab(indegree_slab, int);
                   ^
/datasets/git/commit.c:745:20: note: use "__attribute__((aligned(32)))" to align struct 'indegree_slab' to 32 bytes
/datasets/git/commit.c:747:1: warning: backward branch (for loop) is ID-dependent due to member reference to 'slab_size' and may cause performance degradation [altera-id-dependent-backward-branch]
define_commit_slab(author_date_slab, timestamp_t);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:48:15: note: expanded from macro 'implement_commit_slab'
                for (j = 0; j < s->slab_size; j++)                      \
                            ^
/datasets/git/commit.c:747:1: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
define_commit_slab(author_date_slab, timestamp_t);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:68:27: note: expanded from macro 'implement_commit_slab'
                for (i = s->slab_count; i <= nth_slab; i++)             \
                                        ^
/datasets/git/commit.c:747:1: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
define_commit_slab(author_date_slab, timestamp_t);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:35:2: note: expanded from macro 'implement_commit_slab'
        for (i = 0; i < s->slab_count; i++)                             \
        ^
/datasets/git/commit.c:747:1: warning: result of multiplication in type 'unsigned int' is used as a pointer offset after an implicit widening conversion to type 'size_t' [bugprone-implicit-widening-of-multiplication-result]
define_commit_slab(author_date_slab, timestamp_t);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:49:13: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                 ^
/datasets/git/commit.c:747:1: note: make conversion explicit to silence this warning
define_commit_slab(author_date_slab, timestamp_t);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:49:24: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                            ^~~~~~~~~~~~~
/datasets/git/commit.c:747:1: note: perform multiplication in a wider type
define_commit_slab(author_date_slab, timestamp_t);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:49:24: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                            ^
/datasets/git/commit.c:747:1: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(author_date_slab, timestamp_t);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:55:30: note: expanded from macro 'implement_commit_slab'
                                                  const struct commit *c, \
                                                                       ^
/datasets/git/commit.c:747:1: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(author_date_slab, timestamp_t);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:14:61: note: expanded from macro 'implement_commit_slab'
scope void init_ ##slabname## _with_stride(struct slabname *s,          \
                                                            ^
/datasets/git/commit.c:747:1: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(author_date_slab, timestamp_t);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:34:15: note: expanded from macro 'implement_commit_slab'
        unsigned int i;                                                 \
                     ^
/datasets/git/commit.c:747:1: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(author_date_slab, timestamp_t);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:45:16: note: expanded from macro 'implement_commit_slab'
                unsigned int j;                                         \
                             ^
/datasets/git/commit.c:747:1: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
define_commit_slab(author_date_slab, timestamp_t);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:58:2: note: expanded from macro 'implement_commit_slab'
        unsigned int nth_slab, nth_slot;                                \
        ^
/datasets/git/commit.c:747:1: note: inferred assignment of ID-dependent value from ID-dependent member slab_count [altera-id-dependent-backward-branch]
define_commit_slab(author_date_slab, timestamp_t);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:64:3: note: expanded from macro 'implement_commit_slab'
                unsigned int i;                                         \
                ^
/datasets/git/commit.c:747:20: warning: accessing fields in struct 'author_date_slab' is inefficient due to padding; only needs 20 bytes but is using 24 bytes [altera-struct-pack-align]
define_commit_slab(author_date_slab, timestamp_t);
                   ^
/datasets/git/commit.c:747:20: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'author_date_slab'
/datasets/git/commit.c:747:20: warning: accessing fields in struct 'author_date_slab' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
define_commit_slab(author_date_slab, timestamp_t);
                   ^
/datasets/git/commit.c:747:20: note: use "__attribute__((aligned(32)))" to align struct 'author_date_slab' to 32 bytes
/datasets/git/commit.c:754:14: warning: variable 'ident_line' is not initialized [cppcoreguidelines-init-variables]
        const char *ident_line;
                    ^
                               = NULL
/datasets/git/commit.c:755:9: warning: variable 'ident_len' is not initialized [cppcoreguidelines-init-variables]
        size_t ident_len;
               ^
                         = 0
/datasets/git/commit.c:756:8: warning: variable 'date_end' is not initialized [cppcoreguidelines-init-variables]
        char *date_end;
              ^
                       = NULL
/datasets/git/commit.c:757:14: warning: variable 'date' is not initialized [cppcoreguidelines-init-variables]
        timestamp_t date;
                    ^
                         = 0
/datasets/git/commit.c:760:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ident_line)
                        ^
                         {
/datasets/git/commit.c:762:43: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        if (split_ident_line(&ident, ident_line, ident_len) ||
                                                 ^
/datasets/git/commit.c:763:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !ident.date_begin || !ident.date_end)
                                                 ^
                                                  {
/datasets/git/commit.c:766:54: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        date = parse_timestamp(ident.date_begin, &date_end, 10);
                                                            ^
/datasets/git/commit.c:767:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (date_end != ident.date_end)
                                       ^
                                        {
/datasets/git/commit.c:775:48: warning: parameter name 'a_' is too short, expected at least 3 characters [readability-identifier-length]
int compare_commits_by_author_date(const void *a_, const void *b_,
                                               ^
/datasets/git/commit.c:775:52: warning: 2 adjacent parameters of 'compare_commits_by_author_date' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
int compare_commits_by_author_date(const void *a_, const void *b_,
                                                   ^~~~~~~~~~~~~~~
/datasets/git/commit.c:775:64: note: the first parameter in the range is 'b_'
int compare_commits_by_author_date(const void *a_, const void *b_,
                                                               ^~
/datasets/git/commit.c:776:14: note: the last parameter in the range is 'cb_data'
                                   void *cb_data)
                                         ^~~~~~~
/datasets/git/commit.c:776:8: note: 'const void *' and 'void *' may be implicitly converted
                                   void *cb_data)
                                   ^
/datasets/git/commit.c:775:64: warning: parameter name 'b_' is too short, expected at least 3 characters [readability-identifier-length]
int compare_commits_by_author_date(const void *a_, const void *b_,
                                                               ^
/datasets/git/commit.c:778:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const struct commit *a = a_, *b = b_;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit.c:778:23: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        const struct commit *a = a_, *b = b_;
                             ^
/datasets/git/commit.c:778:32: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        const struct commit *a = a_, *b = b_;
                                      ^
/datasets/git/commit.c:784:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (a_date < b_date)
                            ^
                             {
/datasets/git/commit.c:786:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (a_date > b_date)
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit.c:786:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (a_date > b_date)
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit.c:791:57: warning: parameter name 'a_' is too short, expected at least 3 characters [readability-identifier-length]
int compare_commits_by_gen_then_commit_date(const void *a_, const void *b_, void *unused)
                                                        ^
/datasets/git/commit.c:791:61: warning: 2 adjacent parameters of 'compare_commits_by_gen_then_commit_date' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
int compare_commits_by_gen_then_commit_date(const void *a_, const void *b_, void *unused)
                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit.c:791:73: note: the first parameter in the range is 'b_'
int compare_commits_by_gen_then_commit_date(const void *a_, const void *b_, void *unused)
                                                                        ^~
/datasets/git/commit.c:791:83: note: the last parameter in the range is 'unused'
int compare_commits_by_gen_then_commit_date(const void *a_, const void *b_, void *unused)
                                                                                  ^~~~~~
/datasets/git/commit.c:791:77: note: 'const void *' and 'void *' may be implicitly converted
int compare_commits_by_gen_then_commit_date(const void *a_, const void *b_, void *unused)
                                                                            ^
/datasets/git/commit.c:791:73: warning: parameter name 'b_' is too short, expected at least 3 characters [readability-identifier-length]
int compare_commits_by_gen_then_commit_date(const void *a_, const void *b_, void *unused)
                                                                        ^
/datasets/git/commit.c:791:83: warning: parameter 'unused' is unused [misc-unused-parameters]
int compare_commits_by_gen_then_commit_date(const void *a_, const void *b_, void *unused)
                                                                                  ^
/datasets/git/commit.c:793:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const struct commit *a = a_, *b = b_;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit.c:793:23: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        const struct commit *a = a_, *b = b_;
                             ^
/datasets/git/commit.c:793:32: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        const struct commit *a = a_, *b = b_;
                                      ^
/datasets/git/commit.c:794:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const timestamp_t generation_a = commit_graph_generation(a),
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit.c:798:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (generation_a < generation_b)
                                        ^
                                         {
/datasets/git/commit.c:800:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (generation_a > generation_b)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit.c:800:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (generation_a > generation_b)
                                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit.c:804:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (a->date < b->date)
                              ^
                               {
/datasets/git/commit.c:806:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (a->date > b->date)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit.c:806:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (a->date > b->date)
                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit.c:811:48: warning: parameter name 'a_' is too short, expected at least 3 characters [readability-identifier-length]
int compare_commits_by_commit_date(const void *a_, const void *b_, void *unused)
                                               ^
/datasets/git/commit.c:811:52: warning: 2 adjacent parameters of 'compare_commits_by_commit_date' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
int compare_commits_by_commit_date(const void *a_, const void *b_, void *unused)
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit.c:811:64: note: the first parameter in the range is 'b_'
int compare_commits_by_commit_date(const void *a_, const void *b_, void *unused)
                                                               ^~
/datasets/git/commit.c:811:74: note: the last parameter in the range is 'unused'
int compare_commits_by_commit_date(const void *a_, const void *b_, void *unused)
                                                                         ^~~~~~
/datasets/git/commit.c:811:68: note: 'const void *' and 'void *' may be implicitly converted
int compare_commits_by_commit_date(const void *a_, const void *b_, void *unused)
                                                                   ^
/datasets/git/commit.c:811:64: warning: parameter name 'b_' is too short, expected at least 3 characters [readability-identifier-length]
int compare_commits_by_commit_date(const void *a_, const void *b_, void *unused)
                                                               ^
/datasets/git/commit.c:811:74: warning: parameter 'unused' is unused [misc-unused-parameters]
int compare_commits_by_commit_date(const void *a_, const void *b_, void *unused)
                                                                         ^
/datasets/git/commit.c:813:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const struct commit *a = a_, *b = b_;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit.c:813:23: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        const struct commit *a = a_, *b = b_;
                             ^
/datasets/git/commit.c:813:32: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        const struct commit *a = a_, *b = b_;
                                      ^
/datasets/git/commit.c:815:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (a->date < b->date)
                              ^
                               {
/datasets/git/commit.c:817:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (a->date > b->date)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit.c:817:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (a->date > b->date)
                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit.c:827:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit_list *next, *orig = *list;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit.c:827:22: warning: variable 'next' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *next, *orig = *list;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit.c:828:23: warning: variable 'pptr' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list **pptr;
                             ^
                                  = NULL
/datasets/git/commit.c:831:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/commit.c:834:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!orig)
                  ^
                   {
/datasets/git/commit.c:839:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&queue, '\0', sizeof(queue));
        ^~~~~~
/datasets/git/commit.c:839:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&queue, '\0', sizeof(queue));
        ^~~~~~
/datasets/git/commit.c:856:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (next = orig; next; next = next->next) {
        ^
/datasets/git/commit.c:827:2: note: inferred assignment of ID-dependent value from ID-dependent variable orig [altera-id-dependent-backward-branch]
        struct commit_list *next, *orig = *list;
        ^
/datasets/git/commit.c:856:20: warning: backward branch (for loop) is ID-dependent due to variable reference to 'next' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (next = orig; next; next = next->next) {
                          ^
/datasets/git/commit.c:860:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (sort_order == REV_SORT_BY_AUTHOR_DATE)
                                                          ^
                                                           {
/datasets/git/commit.c:865:20: warning: backward branch (for loop) is ID-dependent due to variable reference to 'next' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (next = orig; next; next = next->next) {
                          ^
/datasets/git/commit.c:827:2: note: inferred assignment of ID-dependent value from ID-dependent variable orig
        struct commit_list *next, *orig = *list;
        ^
/datasets/git/commit.c:867:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (parents) {
                ^
/datasets/git/commit.c:867:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'parents' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (parents) {
                       ^
/datasets/git/commit.c:869:9: warning: variable name 'pi' is too short, expected at least 3 characters [readability-identifier-length]
                        int *pi = indegree_slab_at(&indegree, parent);
                             ^
/datasets/git/commit.c:871:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (*pi)
                                ^
                                 {
/datasets/git/commit.c:884:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (next = orig; next; next = next->next) {
        ^
/datasets/git/commit.c:884:20: warning: backward branch (for loop) is ID-dependent due to variable reference to 'next' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (next = orig; next; next = next->next) {
                          ^
/datasets/git/commit.c:887:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*(indegree_slab_at(&indegree, commit)) == 1)
                                                                ^
                                                                 {
/datasets/git/commit.c:895:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (sort_order == REV_SORT_IN_GRAPH_ORDER)
                                                  ^
                                                   {
/datasets/git/commit.c:903:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'commit' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((commit = prio_queue_get(&queue)) != NULL) {
               ^
/datasets/git/commit.c:904:23: warning: variable 'parents' is not initialized [cppcoreguidelines-init-variables]
                struct commit_list *parents;
                                    ^
                                            = NULL
/datasets/git/commit.c:906:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (parents = commit->parents; parents ; parents = parents->next) {
                ^
/datasets/git/commit.c:906:35: warning: backward branch (for loop) is ID-dependent due to variable reference to 'parents' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (parents = commit->parents; parents ; parents = parents->next) {
                                                ^
/datasets/git/commit.c:908:9: warning: variable name 'pi' is too short, expected at least 3 characters [readability-identifier-length]
                        int *pi = indegree_slab_at(&indegree, parent);
                             ^
/datasets/git/commit.c:910:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!*pi)
                                 ^
                                  {
/datasets/git/commit.c:918:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (--(*pi) == 1)
                                         ^
                                          {
/datasets/git/commit.c:932:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (sort_order == REV_SORT_BY_AUTHOR_DATE)
                                                  ^
                                                   {
/datasets/git/commit.c:936:8: warning: accessing fields in struct 'rev_collect' is inefficient due to padding; only needs 20 bytes but is using 24 bytes [altera-struct-pack-align]
struct rev_collect {
       ^
/datasets/git/commit.c:936:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'rev_collect'
/datasets/git/commit.c:936:8: warning: accessing fields in struct 'rev_collect' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct rev_collect {
       ^
/datasets/git/commit.c:936:8: note: use "__attribute__((aligned(32)))" to align struct 'rev_collect' to 32 bytes
/datasets/git/commit.c:945:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/commit.c:947:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_null_oid(oid))
                             ^
                              {
/datasets/git/commit.c:952:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            (commit->object.flags & TMP_MARK) ||
                                    ^
/datasets/git/./revision.h:31:19: note: expanded from macro 'TMP_MARK'
#define TMP_MARK        (1u<<4) /* for isolated cases; clean after use */
                         ^   ~
/datasets/git/commit.c:953:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            parse_commit(commit))
                                 ^
                                  {
/datasets/git/commit.c:956:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(revs->commit, revs->nr + 1, revs->alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/commit.c:956:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_GROW(revs->commit, revs->nr + 1, revs->alloc);
        ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/commit.c:958:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        commit->object.flags |= TMP_MARK;
                                ^
/datasets/git/./revision.h:31:19: note: expanded from macro 'TMP_MARK'
#define TMP_MARK        (1u<<4) /* for isolated cases; clean after use */
                         ^   ~
/datasets/git/commit.c:963:7: warning: 2 adjacent parameters of 'collect_one_reflog_ent' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                  timestamp_t timestamp UNUSED, int tz UNUSED,
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit.c:963:19: note: the first parameter in the range is 'timestamp'
                                  timestamp_t timestamp UNUSED, int tz UNUSED,
                                              ^~~~~~~~~
/datasets/git/commit.c:963:41: note: the last parameter in the range is 'tz'
                                  timestamp_t timestamp UNUSED, int tz UNUSED,
                                                                    ^~
/datasets/git/commit.c:963:7: note: 
                                  timestamp_t timestamp UNUSED, int tz UNUSED,
                                  ^
/datasets/git/commit.c:963:37: note: 'timestamp_t' and 'int' may be implicitly converted: 'timestamp_t' (as 'unsigned long') -> 'int', 'int' -> 'timestamp_t' (as 'unsigned long')
                                  timestamp_t timestamp UNUSED, int tz UNUSED,
                                                                ^
/datasets/git/commit.c:963:41: warning: parameter name 'tz' is too short, expected at least 3 characters [readability-identifier-length]
                                  timestamp_t timestamp UNUSED, int tz UNUSED,
                                                                    ^
/datasets/git/commit.c:980:22: warning: variable 'bases' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *bases;
                            ^
                                  = NULL
/datasets/git/commit.c:981:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/commit.c:981:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit.c:983:8: warning: variable 'full_refname' is not initialized [cppcoreguidelines-init-variables]
        char *full_refname;
              ^
                           = NULL
/datasets/git/commit.c:985:28: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        switch (dwim_ref(refname, strlen(refname), &oid, &full_refname, 0)) {
                                  ^
/datasets/git/commit.c:994:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&revs, 0, sizeof(revs));
        ^~~~~~
/datasets/git/commit.c:994:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&revs, 0, sizeof(revs));
        ^~~~~~
/datasets/git/commit.c:998:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!revs.nr)
                     ^
                      {
/datasets/git/commit.c:1001:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < revs.nr; i++)
        ^
/datasets/git/commit.c:1001:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < revs.nr; i++)
                                     ^
                                      {
/datasets/git/commit.c:1002:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                revs.commit[i]->object.flags &= ~TMP_MARK;
                                                 ^
/datasets/git/./revision.h:31:19: note: expanded from macro 'TMP_MARK'
#define TMP_MARK        (1u<<4) /* for isolated cases; clean after use */
                         ^   ~
/datasets/git/commit.c:1010:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!bases || bases->next)
                                  ^
                                   {
/datasets/git/commit.c:1014:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < revs.nr; i++)
        ^
/datasets/git/commit.c:1014:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < revs.nr; i++)
                                     ^
                                      {
/datasets/git/commit.c:1015:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (&bases->item->object == &revs.commit[i]->object)
                                                                    ^
                                                                     {
/datasets/git/commit.c:1017:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs.nr <= i)
                         ^
                          {
/datasets/git/commit.c:1031:20: warning: variable 'gpg_sig_headers' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *gpg_sig_headers[] = {
                   ^
/datasets/git/commit.c:1040:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int inspos, copypos;
        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/commit.c:1040:6: warning: variable 'inspos' is not initialized [cppcoreguidelines-init-variables]
        int inspos, copypos;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit.c:1040:14: warning: variable 'copypos' is not initialized [cppcoreguidelines-init-variables]
        int inspos, copypos;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit.c:1041:14: warning: variable 'eoh' is not initialized [cppcoreguidelines-init-variables]
        const char *eoh;
                    ^
                        = NULL
/datasets/git/commit.c:1043:27: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int gpg_sig_header_len = strlen(gpg_sig_header);
                                 ^
/datasets/git/commit.c:1047:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!eoh)
                 ^
                  {
/datasets/git/commit.c:1048:12: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                inspos = buf->len;
                         ^
/datasets/git/commit.c:1049:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/commit.c:1050:12: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                inspos = eoh - buf->buf + 1;
                         ^
/datasets/git/commit.c:1052:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!keyid || !*keyid)
                              ^
                               {
/datasets/git/commit.c:1059:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (copypos = 0; sig.buf[copypos]; ) {
        ^
/datasets/git/commit.c:1059:20: warning: backward branch (for loop) is ID-dependent due to variable reference to 'sig' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (copypos = 0; sig.buf[copypos]; ) {
                          ^
/datasets/git/commit.c:1062:13: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int len = (eol - bol) + !!*eol;
                          ^
/datasets/git/commit.c:1083:16: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size;
                      ^
                           = 0
/datasets/git/commit.c:1097:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int in_signature = 0, saw_signature = 0, other_signature = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit.c:1098:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *line, *tail, *p;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit.c:1098:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/commit.c:1098:14: warning: variable 'line' is not initialized [cppcoreguidelines-init-variables]
        const char *line, *tail, *p;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit.c:1098:21: warning: variable 'tail' is not initialized [cppcoreguidelines-init-variables]
        const char *line, *tail, *p;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit.c:1098:28: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        const char *line, *tail, *p;
                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit.c:1098:28: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit.c:1103:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (line < tail) {
        ^
/datasets/git/commit.c:1103:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'line' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (line < tail) {
               ^
/datasets/git/commit.c:1108:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (in_signature && line[0] == ' ')
                                                   ^
                                                    {
/datasets/git/commit.c:1115:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (starts_with(line, "gpgsig"))
                                                     ^
                                                      {
/datasets/git/commit.c:1117:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (other_signature && line[0] != ' ')
                                                           ^
                                                            {
/datasets/git/commit.c:1124:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (*line == '\n')
                                          ^
                                           {
/datasets/git/commit.c:1127:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!other_signature)
                                             ^
                                              {
/datasets/git/commit.c:1136:5: warning: function 'remove_signature' has cognitive complexity of 26 (threshold 25) [readability-function-cognitive-complexity]
int remove_signature(struct strbuf *buf)
    ^
/datasets/git/commit.c:1150:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (line < tail) {
        ^
/datasets/git/commit.c:1152:15: note: +2, including nesting penalty of 1, nesting level increased to 2
                next = next ? next + 1 : tail;
                            ^
/datasets/git/commit.c:1154:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (in_signature && line[0] == ' ')
                ^
/datasets/git/commit.c:1154:20: note: +1
                if (in_signature && line[0] == ' ')
                                 ^
/datasets/git/commit.c:1156:8: note: +1, nesting level increased to 2
                else if (starts_with(line, "gpgsig")) {
                     ^
/datasets/git/commit.c:1158:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (i = 1; i < GIT_HASH_NALGOS; i++) {
                        ^
/datasets/git/commit.c:1160:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (skip_prefix(line, gpg_sig_headers[i], &p) &&
                                ^
/datasets/git/commit.c:1160:51: note: +1
                                if (skip_prefix(line, gpg_sig_headers[i], &p) &&
                                                                              ^
/datasets/git/commit.c:1167:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/commit.c:1168:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (*line == '\n')
                        ^
/datasets/git/commit.c:1171:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (in_signature && sigp - sigs != ARRAY_SIZE(sigs))
                        ^
/datasets/git/commit.c:1171:21: note: +1
                        if (in_signature && sigp - sigs != ARRAY_SIZE(sigs))
                                         ^
/datasets/git/commit.c:1178:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = ARRAY_SIZE(sigs) - 1; i >= 0; i--)
        ^
/datasets/git/commit.c:1179:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (sigs[i].start)
                ^
/datasets/git/commit.c:1138:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        const char *line = buf->buf;
        ^
/datasets/git/commit.c:1141:9: warning: accessing fields in struct 'sigbuf' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
        struct sigbuf {
               ^
/datasets/git/commit.c:1141:9: note: use "__attribute__((aligned(16)))" to align struct 'sigbuf' to 16 bytes
/datasets/git/commit.c:1145:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/commit.c:1145:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit.c:1148:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(sigs, 0, sizeof(sigs));
        ^~~~~~
/datasets/git/commit.c:1148:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(sigs, 0, sizeof(sigs));
        ^~~~~~
/datasets/git/commit.c:1150:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'line' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (line < tail) {
               ^
/datasets/git/commit.c:1154:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (in_signature && line[0] == ' ')
                                                   ^
                                                    {
/datasets/git/commit.c:1157:8: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                        int i;
                            ^
                              = 0
/datasets/git/commit.c:1157:8: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit.c:1158:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = 1; i < GIT_HASH_NALGOS; i++) {
                        ^
/datasets/git/commit.c:1159:17: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                                const char *p;
                                            ^
                                              = NULL
/datasets/git/commit.c:1159:17: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit.c:1168:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (*line == '\n')
                                          ^
                                           {
/datasets/git/commit.c:1171:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (in_signature && sigp - sigs != ARRAY_SIZE(sigs))
                                                                            ^
                                                                             {
/datasets/git/commit.c:1178:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = ARRAY_SIZE(sigs) - 1; i >= 0; i--)
        ^
/datasets/git/commit.c:1178:33: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = ARRAY_SIZE(sigs) - 1; i >= 0; i--)
                                       ^
/datasets/git/commit.c:1178:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = ARRAY_SIZE(sigs) - 1; i >= 0; i--)
                                                   ^
                                                    {
/datasets/git/commit.c:1179:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (sigs[i].start)
                                  ^
                                   {
/datasets/git/commit.c:1187:28: warning: variable 'desc' is not initialized [cppcoreguidelines-init-variables]
        struct merge_remote_desc *desc;
                                  ^
                                       = NULL
/datasets/git/commit.c:1188:30: warning: variable 'mergetag' is not initialized [cppcoreguidelines-init-variables]
        struct commit_extra_header *mergetag;
                                    ^
                                             = NULL
/datasets/git/commit.c:1189:8: warning: variable 'buf' is not initialized [cppcoreguidelines-init-variables]
        char *buf;
              ^
                  = NULL
/datasets/git/commit.c:1190:16: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size;
                      ^
                           = 0
/datasets/git/commit.c:1191:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/commit.c:1196:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!desc || !desc->obj)
                                ^
                                 {
/datasets/git/commit.c:1199:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!buf || type != OBJ_TAG)
                                    ^
                                     {
/datasets/git/commit.c:1201:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!parse_signature(buf, size, &payload, &signature))
                                                              ^
                                                               {
/datasets/git/commit.c:1236:76: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_signed_commit(commit, &payload, &signature, the_hash_algo) <= 0)
                                                                                  ^
                                                                                   {
/datasets/git/commit.c:1250:52: warning: 2 adjacent parameters of 'verify_merge_signature' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
void verify_merge_signature(struct commit *commit, int verbosity,
                                                   ^~~~~~~~~~~~~~
/datasets/git/commit.c:1250:56: note: the first parameter in the range is 'verbosity'
void verify_merge_signature(struct commit *commit, int verbosity,
                                                       ^~~~~~~~~
/datasets/git/commit.c:1251:12: note: the last parameter in the range is 'check_trust'
                            int check_trust)
                                ^~~~~~~~~~~
/datasets/git/commit.c:1255:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/commit.c:1256:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&signature_check, 0, sizeof(signature_check));
        ^~~~~~
/datasets/git/commit.c:1256:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&signature_check, 0, sizeof(signature_check));
        ^~~~~~
/datasets/git/commit.c:1263:76: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret || (check_trust && signature_check.trust_level < TRUST_MARGINAL))
                                                                                         ^
                                                                                          {
/datasets/git/commit.c:1273:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (verbosity >= 0 && signature_check.result == 'G')
                                                            ^
                                                             {
/datasets/git/commit.c:1283:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (parents) {
        ^
/datasets/git/commit.c:1283:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'parents' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (parents) {
               ^
/datasets/git/commit.c:1294:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (extra->len)
                       ^
                        {
/datasets/git/commit.c:1296:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/commit.c:1304:16: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size;
                      ^
                           = 0
/datasets/git/commit.c:1311:40: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
int for_each_mergetag(each_mergetag_fn fn, struct commit *commit, void *data)
                                       ^
/datasets/git/commit.c:1313:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit_extra_header *extra, *to_free;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit.c:1314:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int res = 0;
        ^
/datasets/git/commit.c:1313:30: warning: variable 'extra' is not initialized [cppcoreguidelines-init-variables]
        struct commit_extra_header *extra, *to_free;
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit.c:1313:38: warning: variable 'to_free' is not initialized [cppcoreguidelines-init-variables]
        struct commit_extra_header *extra, *to_free;
                                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit.c:1317:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (extra = to_free; !res && extra; extra = extra->next) {
        ^
/datasets/git/commit.c:1317:24: warning: backward branch (for loop) is ID-dependent due to variable reference to 'res' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (extra = to_free; !res && extra; extra = extra->next) {
                              ^
/datasets/git/commit.c:1318:7: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (strcmp(extra->key, "mergetag"))
                    ^
                                                   != 0
/datasets/git/commit.c:1318:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strcmp(extra->key, "mergetag"))
                                                   ^
                                                    {
/datasets/git/commit.c:1329:11: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                (len == 6 && !memcmp(field, "parent", 6)) ||
                        ^
/datasets/git/commit.c:1329:41: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                (len == 6 && !memcmp(field, "parent", 6)) ||
                                                      ^
/datasets/git/commit.c:1330:11: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                (len == 6 && !memcmp(field, "author", 6)) ||
                        ^
/datasets/git/commit.c:1330:41: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                (len == 6 && !memcmp(field, "author", 6)) ||
                                                      ^
/datasets/git/commit.c:1331:11: warning: 9 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                (len == 9 && !memcmp(field, "committer", 9)) ||
                        ^
/datasets/git/commit.c:1331:44: warning: 9 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                (len == 9 && !memcmp(field, "committer", 9)) ||
                                                         ^
/datasets/git/commit.c:1332:11: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                (len == 8 && !memcmp(field, "encoding", 8)));
                        ^
/datasets/git/commit.c:1332:43: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                (len == 8 && !memcmp(field, "encoding", 8)));
                                                        ^
/datasets/git/commit.c:1337:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!exclude)
                     ^
                      {
/datasets/git/commit.c:1340:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*exclude) {
        ^
/datasets/git/commit.c:1342:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (len == xlen && !memcmp(field, *exclude, xlen))
                                                                  ^
                                                                   {
/datasets/git/commit.c:1353:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit_extra_header *extra = NULL, **tail = &extra, *it = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit.c:1353:62: warning: variable name 'it' is too short, expected at least 3 characters [readability-identifier-length]
        struct commit_extra_header *extra = NULL, **tail = &extra, *it = NULL;
                                                                    ^
/datasets/git/commit.c:1354:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *line, *next, *eof, *eob;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit.c:1354:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/commit.c:1354:14: warning: variable 'line' is not initialized [cppcoreguidelines-init-variables]
        const char *line, *next, *eof, *eob;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit.c:1354:21: warning: variable 'next' is not initialized [cppcoreguidelines-init-variables]
        const char *line, *next, *eof, *eob;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit.c:1354:28: warning: variable 'eof' is not initialized [cppcoreguidelines-init-variables]
        const char *line, *next, *eof, *eob;
                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit.c:1354:34: warning: variable 'eob' is not initialized [cppcoreguidelines-init-variables]
        const char *line, *next, *eof, *eob;
                                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit.c:1357:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (line = buffer, eob = line + size;
        ^
/datasets/git/commit.c:1358:7: warning: backward branch (for loop) is ID-dependent due to variable reference to 'line' and may cause performance degradation [altera-id-dependent-backward-branch]
             line < eob && *line != '\n';
             ^
/datasets/git/commit.c:1364:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (it)
                               ^
                                {
/datasets/git/commit.c:1368:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (it)
                       ^
                        {
/datasets/git/commit.c:1374:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!eof)
                         ^
                          {
/datasets/git/commit.c:1377:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                         excluded_header_field(line, eof - line, exclude))
                                                                          ^
                                                                           {
/datasets/git/commit.c:1384:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (eof + 1 < next)
                                   ^
                                    {
/datasets/git/commit.c:1387:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (it)
               ^
                {
/datasets/git/commit.c:1394:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (extra) {
        ^
/datasets/git/commit.c:1394:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'extra' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (extra) {
               ^
/datasets/git/commit.c:1407:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit_extra_header *extra = NULL, **tail = &extra;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit.c:1408:6: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        int result;
            ^
                   = 0
/datasets/git/commit.c:1417:47: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
static int find_invalid_utf8(const char *buf, int len)
                                              ^
/datasets/git/commit.c:1424:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (len) {
               ^
/datasets/git/commit.c:1425:17: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                unsigned char c = *buf++;
                              ^
/datasets/git/commit.c:1426:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int bytes, bad_offset;
                ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit.c:1426:7: warning: variable 'bytes' is not initialized [cppcoreguidelines-init-variables]
                int bytes, bad_offset;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit.c:1426:14: warning: variable 'bad_offset' is not initialized [cppcoreguidelines-init-variables]
                int bytes, bad_offset;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit.c:1427:16: warning: variable 'codepoint' is not initialized [cppcoreguidelines-init-variables]
                unsigned int codepoint;
                             ^
                                       = 0
/datasets/git/commit.c:1428:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                unsigned int min_val, max_val;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit.c:1428:16: warning: variable 'min_val' is not initialized [cppcoreguidelines-init-variables]
                unsigned int min_val, max_val;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit.c:1428:25: warning: variable 'max_val' is not initialized [cppcoreguidelines-init-variables]
                unsigned int min_val, max_val;
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/commit.c:1434:11: warning: 0x80 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (c < 0x80)
                        ^
/datasets/git/commit.c:1434:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (c < 0x80)
                             ^
                              {
/datasets/git/commit.c:1444:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (c & 0x40) {
                ^
/datasets/git/commit.c:1444:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'c' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (c & 0x40) {
                       ^
/datasets/git/commit.c:1444:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                while (c & 0x40) {
                       ^   ~~~~
/datasets/git/commit.c:1444:14: warning: 0x40 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                while (c & 0x40) {
                           ^
/datasets/git/commit.c:1445:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        c <<= 1;
                        ^     ~
/datasets/git/commit.c:1453:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (bytes < 1 || 3 < bytes)
                                           ^
                                            {
/datasets/git/commit.c:1457:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (len < bytes)
                                ^
                                 {
/datasets/git/commit.c:1464:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                codepoint = (c & 0x7f) >> bytes;
                            ^~~~~~~~~~
/datasets/git/commit.c:1464:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                codepoint = (c & 0x7f) >> bytes;
                             ^   ~~~~
/datasets/git/commit.c:1464:20: warning: 0x7f is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                codepoint = (c & 0x7f) >> bytes;
                                 ^
/datasets/git/commit.c:1472:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                do {
                ^
/datasets/git/commit.c:1473:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        codepoint <<= 6;
                        ^             ~
/datasets/git/commit.c:1473:18: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        codepoint <<= 6;
                                      ^
/datasets/git/commit.c:1474:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        codepoint |= *buf & 0x3f;
                        ^            ~~~~~~~~~~~
/datasets/git/commit.c:1474:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        codepoint |= *buf & 0x3f;
                                     ^~~~
/datasets/git/commit.c:1474:24: warning: 0x3f is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        codepoint |= *buf & 0x3f;
                                            ^
/datasets/git/commit.c:1475:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if ((*buf++ & 0xc0) != 0x80)
                             ^~~~~~
/datasets/git/commit.c:1475:18: warning: 0xc0 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        if ((*buf++ & 0xc0) != 0x80)
                                      ^
/datasets/git/commit.c:1475:27: warning: 0x80 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        if ((*buf++ & 0xc0) != 0x80)
                                               ^
/datasets/git/commit.c:1475:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if ((*buf++ & 0xc0) != 0x80)
                                                    ^
                                                     {
/datasets/git/commit.c:1480:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (codepoint < min_val || codepoint > max_val)
                                                               ^
                                                                {
/datasets/git/commit.c:1483:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((codepoint & 0x1ff800) == 0xd800)
                     ^           ~~~~~~~~
/datasets/git/commit.c:1483:20: warning: 0x1ff800 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if ((codepoint & 0x1ff800) == 0xd800)
                                 ^
/datasets/git/commit.c:1483:33: warning: 0xd800 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if ((codepoint & 0x1ff800) == 0xd800)
                                              ^
/datasets/git/commit.c:1483:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((codepoint & 0x1ff800) == 0xd800)
                                                     ^
                                                      {
/datasets/git/commit.c:1486:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((codepoint & 0xfffe) == 0xfffe)
                     ^           ~~~~~~
/datasets/git/commit.c:1486:20: warning: 0xfffe is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if ((codepoint & 0xfffe) == 0xfffe)
                                 ^
/datasets/git/commit.c:1486:31: warning: 0xfffe is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if ((codepoint & 0xfffe) == 0xfffe)
                                            ^
/datasets/git/commit.c:1486:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((codepoint & 0xfffe) == 0xfffe)
                                                   ^
                                                    {
/datasets/git/commit.c:1489:20: warning: 0xfdd0 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (codepoint >= 0xfdd0 && codepoint <= 0xfdef)
                                 ^
/datasets/git/commit.c:1489:43: warning: 0xfdef is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (codepoint >= 0xfdd0 && codepoint <= 0xfdef)
                                                        ^
/datasets/git/commit.c:1489:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (codepoint >= 0xfdd0 && codepoint <= 0xfdef)
                                                               ^
                                                                {
/datasets/git/commit.c:1503:6: warning: variable name 'ok' is too short, expected at least 3 characters [readability-identifier-length]
        int ok = 1;
            ^
/datasets/git/commit.c:1506:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/commit.c:1507:7: warning: variable 'bad' is not initialized [cppcoreguidelines-init-variables]
                int bad;
                    ^
                        = 0
/datasets/git/commit.c:1508:17: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
                unsigned char c;
                              ^
                                = 0
/datasets/git/commit.c:1508:17: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/commit.c:1511:43: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                bad = find_invalid_utf8(buf->buf + pos, buf->len - pos);
                                                        ^
/datasets/git/commit.c:1512:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (bad < 0)
                            ^
                             {
/datasets/git/commit.c:1520:16: warning: 0xc0 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                replace[0] = 0xc0 + (c >> 6);
                             ^
/datasets/git/commit.c:1520:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                replace[0] = 0xc0 + (c >> 6);
                                     ^    ~
/datasets/git/commit.c:1520:29: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                replace[0] = 0xc0 + (c >> 6);
                                          ^
/datasets/git/commit.c:1521:16: warning: 0x80 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                replace[1] = 0x80 + (c & 0x3f);
                             ^
/datasets/git/commit.c:1521:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                replace[1] = 0x80 + (c & 0x3f);
                                     ^   ~~~~
/datasets/git/commit.c:1521:28: warning: 0x3f is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                replace[1] = 0x80 + (c & 0x3f);
                                         ^
/datasets/git/commit.c:1535:5: warning: 3 adjacent parameters of 'commit_tree_extended' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                         const char *author, const char *committer,
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit.c:1535:17: note: the first parameter in the range is 'author'
                         const char *author, const char *committer,
                                     ^~~~~~
/datasets/git/commit.c:1536:17: note: the last parameter in the range is 'sign_commit'
                         const char *sign_commit,
                                     ^~~~~~~~~~~
/datasets/git/commit.c:1539:6: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        int result;
            ^
                   = 0
/datasets/git/commit.c:1540:6: warning: variable 'encoding_is_utf8' is not initialized [cppcoreguidelines-init-variables]
        int encoding_is_utf8;
            ^
                             = 0
/datasets/git/commit.c:1545:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (memchr(msg, '\0', msg_len))
                                       ^
                                        {
/datasets/git/commit.c:1551:23: warning: 8192 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        strbuf_init(&buffer, 8192); /* should avoid reallocs for the headers */
                             ^
/datasets/git/commit.c:1559:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (parents) {
        ^
/datasets/git/commit.c:1566:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!author)
                    ^
                     {
/datasets/git/commit.c:1569:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!committer)
                       ^
                        {
/datasets/git/commit.c:1572:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!encoding_is_utf8)
                              ^
                               {
/datasets/git/commit.c:1575:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (extra) {
        ^
/datasets/git/commit.c:1575:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'extra' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (extra) {
               ^
/datasets/git/commit.c:1585:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (encoding_is_utf8 && !verify_utf8(&buffer))
                                                      ^
                                                       {
/datasets/git/commit.c:1586:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, _(commit_utf8_warn));
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit.c:1586:3: note: cast the expression to void to silence this warning
/datasets/git/commit.c:1599:1: warning: backward branch (for loop) is ID-dependent due to member reference to 'slab_size' and may cause performance degradation [altera-id-dependent-backward-branch]
define_commit_slab(merge_desc_slab, struct merge_remote_desc *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:48:15: note: expanded from macro 'implement_commit_slab'
                for (j = 0; j < s->slab_size; j++)                      \
                            ^
/datasets/git/commit.c:1599:1: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
define_commit_slab(merge_desc_slab, struct merge_remote_desc *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:68:27: note: expanded from macro 'implement_commit_slab'
                for (i = s->slab_count; i <= nth_slab; i++)             \
                                        ^
/datasets/git/commit.c:1599:1: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
define_commit_slab(merge_desc_slab, struct merge_remote_desc *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:35:2: note: expanded from macro 'implement_commit_slab'
        for (i = 0; i < s->slab_count; i++)                             \
        ^
/datasets/git/commit.c:1599:1: warning: result of multiplication in type 'unsigned int' is used as a pointer offset after an implicit widening conversion to type 'size_t' [bugprone-implicit-widening-of-multiplication-result]
define_commit_slab(merge_desc_slab, struct merge_remote_desc *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:49:13: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                 ^
/datasets/git/commit.c:1599:1: note: make conversion explicit to silence this warning
define_commit_slab(merge_desc_slab, struct merge_remote_desc *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:49:24: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                            ^~~~~~~~~~~~~
/datasets/git/commit.c:1599:1: note: perform multiplication in a wider type
define_commit_slab(merge_desc_slab, struct merge_remote_desc *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:49:24: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                            ^
/datasets/git/commit.c:1599:1: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
define_commit_slab(merge_desc_slab, struct merge_remote_desc *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:76:10: note: expanded from macro 'implement_commit_slab'
                                            sizeof(**s->slab) * s->stride);             \
                                            ^
/datasets/git/commit.c:1599:1: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(merge_desc_slab, struct merge_remote_desc *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:55:30: note: expanded from macro 'implement_commit_slab'
                                                  const struct commit *c, \
                                                                       ^
/datasets/git/commit.c:1599:1: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(merge_desc_slab, struct merge_remote_desc *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:14:61: note: expanded from macro 'implement_commit_slab'
scope void init_ ##slabname## _with_stride(struct slabname *s,          \
                                                            ^
/datasets/git/commit.c:1599:1: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(merge_desc_slab, struct merge_remote_desc *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:34:15: note: expanded from macro 'implement_commit_slab'
        unsigned int i;                                                 \
                     ^
/datasets/git/commit.c:1599:1: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(merge_desc_slab, struct merge_remote_desc *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:45:16: note: expanded from macro 'implement_commit_slab'
                unsigned int j;                                         \
                             ^
/datasets/git/commit.c:1599:1: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
define_commit_slab(merge_desc_slab, struct merge_remote_desc *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:58:2: note: expanded from macro 'implement_commit_slab'
        unsigned int nth_slab, nth_slot;                                \
        ^
/datasets/git/commit.c:1599:1: note: inferred assignment of ID-dependent value from ID-dependent member slab_count [altera-id-dependent-backward-branch]
define_commit_slab(merge_desc_slab, struct merge_remote_desc *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:64:3: note: expanded from macro 'implement_commit_slab'
                unsigned int i;                                         \
                ^
/datasets/git/commit.c:1599:20: warning: accessing fields in struct 'merge_desc_slab' is inefficient due to padding; only needs 20 bytes but is using 24 bytes [altera-struct-pack-align]
define_commit_slab(merge_desc_slab, struct merge_remote_desc *);
                   ^
/datasets/git/commit.c:1599:20: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'merge_desc_slab'
/datasets/git/commit.c:1599:20: warning: accessing fields in struct 'merge_desc_slab' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
define_commit_slab(merge_desc_slab, struct merge_remote_desc *);
                   ^
/datasets/git/commit.c:1599:20: note: use "__attribute__((aligned(32)))" to align struct 'merge_desc_slab' to 32 bytes
/datasets/git/commit.c:1600:31: warning: variable 'merge_desc_slab' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct merge_desc_slab merge_desc_slab = COMMIT_SLAB_INIT(1, merge_desc_slab);
                              ^
/datasets/git/commit.c:1600:49: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
static struct merge_desc_slab merge_desc_slab = COMMIT_SLAB_INIT(1, merge_desc_slab);
                                                ^
./commit-slab-decl.h:26:21: note: expanded from macro 'COMMIT_SLAB_INIT'
        COMMIT_SLAB_SIZE / sizeof(**((var).slab)) / (stride), \
                           ^
/datasets/git/commit.c:1610:28: warning: variable 'desc' is not initialized [cppcoreguidelines-init-variables]
        struct merge_remote_desc *desc;
                                  ^
                                       = NULL
/datasets/git/commit.c:1611:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FLEX_ALLOC_STR(desc, name, name);
        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^
/datasets/git/./git-compat-util.h:1151:47: note: expanded from macro 'FLEX_ALLOC_MEM'
#define FLEX_ALLOC_MEM(x, flexname, buf, len) do { \
                                              ^
/datasets/git/commit.c:1611:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        FLEX_ALLOC_STR(desc, name, name);
        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/commit.c:1611:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        FLEX_ALLOC_STR(desc, name, name);
        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/commit.c:1618:17: warning: variable 'obj' is not initialized [cppcoreguidelines-init-variables]
        struct object *obj;
                       ^
                           = NULL
/datasets/git/commit.c:1619:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/commit.c:1661:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        const char *line = msg;
        ^
/datasets/git/commit.c:1621:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid(name, &oid))
                                ^
                                 {
/datasets/git/commit.c:1625:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (commit && !merge_remote_util(commit))
                                                 ^
                                                  {
/datasets/git/commit.c:1660:16: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int key_len = strlen(key);
                      ^
/datasets/git/commit.c:1670:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (line && line < msg + len) {
        ^
/datasets/git/commit.c:1670:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'line' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (line && line < msg + len) {
               ^
/datasets/git/commit.c:1673:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (line == eol)
                                ^
                                 {
/datasets/git/commit.c:1708:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (bol < cutoff) {
        ^
/datasets/git/commit.c:1708:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'bol' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (bol < cutoff) {
               ^
/datasets/git/commit.c:1711:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!next_line)
                               ^
                                {
/datasets/git/commit.c:1713:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/commit.c:1718:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!boc)
                                 ^
                                  {
/datasets/git/commit.c:1723:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!boc)
                                 ^
                                  {
/datasets/git/commit.c:1742:14: warning: variable 'arg' is not initialized [cppcoreguidelines-init-variables]
        const char *arg;
                    ^
                        = NULL
/datasets/git/commit.c:1749:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!editor_is_used)
                            ^
                             {
/datasets/git/commit.c:1753:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((arg = va_arg(args, const char *)))
        ^
/datasets/git/commit.c:1753:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'arg' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((arg = va_arg(args, const char *)))
               ^
/datasets/git/commit.c:1753:16: warning: va_arg() is called on an uninitialized va_list [clang-analyzer-valist.Uninitialized]
        while ((arg = va_arg(args, const char *)))
                      ^
/usr/lib/llvm-15/lib/clang/15.0.2/include/stdarg.h:19:29: note: expanded from macro 'va_arg'
#define va_arg(ap, type)    __builtin_va_arg(ap, type)
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit.c:1749:6: note: Assuming 'editor_is_used' is not equal to 0
        if (!editor_is_used)
            ^~~~~~~~~~~~~~~
/datasets/git/commit.c:1749:2: note: Taking false branch
        if (!editor_is_used)
        ^
/datasets/git/commit.c:1753:16: note: va_arg() is called on an uninitialized va_list
        while ((arg = va_arg(args, const char *)))
                      ^
/usr/lib/llvm-15/lib/clang/15.0.2/include/stdarg.h:19:29: note: expanded from macro 'va_arg'
#define va_arg(ap, type)    __builtin_va_arg(ap, type)
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/commit.c:1753:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while ((arg = va_arg(args, const char *)))
                                                  ^
                                                   {
/datasets/git/common-main.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "exec-cmd.h"
^        ~~~~~~~~~~~~
         "attr.h"
/datasets/git/common-main.c:22:2: warning: function is not thread safe [concurrency-mt-unsafe]
        sigprocmask(SIG_UNBLOCK, &unblock, NULL);
        ^
/datasets/git/common-main.c:23:2: warning: the value returned by this function should be used [cert-err33-c]
        signal(SIGPIPE, SIG_DFL);
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/common-main.c:23:2: note: cast the expression to void to silence this warning
/datasets/git/common-main.c:28:6: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        int result;
            ^
                   = 0
/datasets/git/common-main.c:43:2: warning: the value returned by this function should be used [cert-err33-c]
        setlocale(LC_CTYPE, "");
        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/common-main.c:43:2: note: cast the expression to void to silence this warning
/datasets/git/common-main.c:43:2: warning: function is not thread safe [concurrency-mt-unsafe]
        setlocale(LC_CTYPE, "");
        ^
/datasets/git/common-main.c:54:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strbuf_getcwd(&tmp))
                                 ^
                                  {
/datasets/git/common-main.c:60:2: warning: function is not thread safe [concurrency-mt-unsafe]
        exit(result);
        ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/common-main.c:65:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!bug_called_must_BUG)
                                 ^
                                  {
/datasets/git/common-main.c:79:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        code &= 0xff;
        ^~~~
/datasets/git/common-main.c:79:10: warning: 0xff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        code &= 0xff;
                ^
/datasets/git/compat/fopen.c:16:8: warning: variable 'fp' is not initialized [cppcoreguidelines-init-variables]
        FILE *fp;
              ^
                 = NULL
/datasets/git/compat/fopen.c:16:8: warning: variable name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/compat/fopen.c:17:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/compat/fopen.c:19:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mode[0] == 'w' || mode[0] == 'a')
                                             ^
                                              {
/datasets/git/compat/fopen.c:22:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if (!(fp = fopen(path, mode)))
              ^
/datasets/git/compat/fopen.c:22:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/compat/fopen.c:22:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/compat/fopen.c:22:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(fp = fopen(path, mode)))
                                      ^
                                       {
/datasets/git/compat/fopen.c:26:3: warning: the value returned by this function should be used [cert-err33-c]
                fclose(fp);
                ^~~~~~~~~~
/datasets/git/compat/fopen.c:26:3: note: cast the expression to void to silence this warning
/datasets/git/compat/fopen.c:31:3: warning: the value returned by this function should be used [cert-err33-c]
                fclose(fp);
                ^~~~~~~~~~
/datasets/git/compat/fopen.c:31:3: note: cast the expression to void to silence this warning
/datasets/git/compat/linux/procinfo.c:43:1: warning: replace macro with enum [modernize-macro-to-enum]
#define STAT_PARENT_PID_READ_N 64
^~~~~~~~
                               =
/datasets/git/compat/linux/procinfo.c:43:9: warning: macro 'STAT_PARENT_PID_READ_N' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define STAT_PARENT_PID_READ_N 64
        ^
/datasets/git/compat/linux/procinfo.c:45:28: warning: 2 adjacent parameters of 'parse_proc_stat' of similar type ('struct strbuf *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int parse_proc_stat(struct strbuf *sb, struct strbuf *name,
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/compat/linux/procinfo.c:45:43: note: the first parameter in the range is 'sb'
static int parse_proc_stat(struct strbuf *sb, struct strbuf *name,
                                          ^~
/datasets/git/compat/linux/procinfo.c:45:62: note: the last parameter in the range is 'name'
static int parse_proc_stat(struct strbuf *sb, struct strbuf *name,
                                                             ^~~~
/datasets/git/compat/linux/procinfo.c:45:43: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static int parse_proc_stat(struct strbuf *sb, struct strbuf *name,
                                          ^
/datasets/git/compat/linux/procinfo.c:50:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *ppid_lhs, *ppid_rhs;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/compat/linux/procinfo.c:50:14: warning: variable 'ppid_lhs' is not initialized [cppcoreguidelines-init-variables]
        const char *ppid_lhs, *ppid_rhs;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/compat/linux/procinfo.c:50:25: warning: variable 'ppid_rhs' is not initialized [cppcoreguidelines-init-variables]
        const char *ppid_lhs, *ppid_rhs;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/compat/linux/procinfo.c:51:8: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        char *p;
              ^
                = NULL
/datasets/git/compat/linux/procinfo.c:51:8: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/compat/linux/procinfo.c:52:8: warning: variable 'ppid' is not initialized [cppcoreguidelines-init-variables]
        pid_t ppid;
              ^
                   = 0
/datasets/git/compat/linux/procinfo.c:54:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!comm_lhs || !comm_rhs)
                                   ^
                                    {
/datasets/git/compat/linux/procinfo.c:69:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ppid_rhs)
                      ^
                       {
/datasets/git/compat/linux/procinfo.c:72:9: warning: narrowing conversion from 'long' to signed type 'pid_t' (aka 'int') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        ppid = strtol(ppid_lhs, &p, 10);
               ^
/datasets/git/compat/linux/procinfo.c:72:30: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        ppid = strtol(ppid_lhs, &p, 10);
                                    ^
/datasets/git/compat/linux/procinfo.c:95:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/compat/linux/procinfo.c:96:8: warning: variable 'fp' is not initialized [cppcoreguidelines-init-variables]
        FILE *fp;
              ^
                 = NULL
/datasets/git/compat/linux/procinfo.c:96:8: warning: variable name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/compat/linux/procinfo.c:102:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!fp)
                ^
                 {
/datasets/git/compat/linux/procinfo.c:114:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strbuf_fread(&sb, STAT_PARENT_PID_READ_N, fp))
                                                           ^
                                                            {
/datasets/git/compat/linux/procinfo.c:116:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_proc_stat(&sb, name, statppid) < 0)
                                                     ^
                                                      {
/datasets/git/compat/linux/procinfo.c:121:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fp)
               ^
                {
/datasets/git/compat/linux/procinfo.c:122:3: warning: the value returned by this function should be used [cert-err33-c]
                fclose(fp);
                ^~~~~~~~~~
/datasets/git/compat/linux/procinfo.c:122:3: note: cast the expression to void to silence this warning
/datasets/git/compat/linux/procinfo.c:129:13: warning: function 'push_ancestry_name' is within a recursive call chain [misc-no-recursion]
static void push_ancestry_name(struct strvec *names, pid_t pid)
            ^
/datasets/git/compat/linux/procinfo.c:129:13: note: example recursive call chain, starting from function 'push_ancestry_name'
/datasets/git/compat/linux/procinfo.c:144:3: note: Frame #1: function 'push_ancestry_name' calls function 'push_ancestry_name' here:
                push_ancestry_name(names, ppid);
                ^
/datasets/git/compat/linux/procinfo.c:144:3: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/compat/linux/procinfo.c:132:6: warning: variable 'ppid' is not initialized [cppcoreguidelines-init-variables]
        int ppid;
            ^
                 = 0
/datasets/git/compat/linux/procinfo.c:134:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (stat_parent_pid(pid, &name, &ppid) < 0)
                                                   ^
                                                    {
/datasets/git/compat/linux/procinfo.c:143:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ppid)
                 ^
                  {
/datasets/git/compat/linux/procinfo.c:148:2: warning: redundant return statement at the end of a function with a void return type [readability-redundant-control-flow]
        return;
~~~~~~~~^~~~~~~
/datasets/git/compat/linux/procinfo.c:155:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!trace2_is_enabled())
                                 ^
                                  {
/datasets/git/compat/linux/procinfo.c:158:2: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
        switch (reason) {
        ^
/datasets/git/compat/linux/procinfo.c:169:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (names.nr)
                             ^
                              {
/datasets/git/compat/linux/procinfo.c:175:2: warning: redundant return statement at the end of a function with a void return type [readability-redundant-control-flow]
        return;
        ^~~~~~~
compat/nonblock.c:6:30: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
int enable_pipe_nonblock(int fd)
                             ^
/datasets/git/compat/nonblock.c:9:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags < 0)
                      ^
                       {
/datasets/git/compat/nonblock.c:11:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        flags |= O_NONBLOCK;
        ^~~~~
/datasets/git/compat/obstack.c:21:1: warning: #includes are not sorted properly [llvm-include-order]
#include <gettext.h>
^        ~~~~~~~~~~~
         "obstack.h"
/datasets/git/compat/obstack.c:38:1: warning: system include stdio.h not allowed [llvmlibc-restrict-system-libc-headers]
#include <stdio.h>              /* Random thing to get __GNU_LIBRARY__.  */
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/compat/obstack.c:40:1: warning: system include gnu-versions.h not allowed [llvmlibc-restrict-system-libc-headers]
# include <gnu-versions.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~
compat/qsort_s.c:9:13: warning: function 'msort_with_tmp' is within a recursive call chain [misc-no-recursion]
static void msort_with_tmp(void *b, size_t n, size_t s,
            ^
compat/qsort_s.c:9:13: note: example recursive call chain, starting from function 'msort_with_tmp'
compat/qsort_s.c:25:2: note: Frame #1: function 'msort_with_tmp' calls function 'msort_with_tmp' here:
        msort_with_tmp(b1, n1, s, cmp, t, ctx);
        ^
compat/qsort_s.c:25:2: note: ... which was the starting point of the recursive call chain; there may be other cycles
compat/qsort_s.c:9:34: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static void msort_with_tmp(void *b, size_t n, size_t s,
                                 ^
compat/qsort_s.c:9:54: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void msort_with_tmp(void *b, size_t n, size_t s,
                                                     ^
compat/qsort_s.c:11:13: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
                           char *t, void *ctx)
                                 ^
/datasets/git/compat/qsort_s.c:13:8: warning: variable 'tmp' is not initialized [cppcoreguidelines-init-variables]
        char *tmp;
              ^
                  = NULL
/datasets/git/compat/qsort_s.c:14:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *b1, *b2;
        ^~~~~~~~~~~~~~
/datasets/git/compat/qsort_s.c:14:8: warning: variable 'b1' is not initialized [cppcoreguidelines-init-variables]
        char *b1, *b2;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/compat/qsort_s.c:14:8: warning: variable name 'b1' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/compat/qsort_s.c:14:13: warning: variable 'b2' is not initialized [cppcoreguidelines-init-variables]
        char *b1, *b2;
                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/compat/qsort_s.c:14:13: warning: variable name 'b2' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/compat/qsort_s.c:15:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t n1, n2;
        ^~~~~~~~~~~~~~
/datasets/git/compat/qsort_s.c:15:9: warning: variable 'n1' is not initialized [cppcoreguidelines-init-variables]
        size_t n1, n2;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/compat/qsort_s.c:15:9: warning: variable name 'n1' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/compat/qsort_s.c:15:13: warning: variable 'n2' is not initialized [cppcoreguidelines-init-variables]
        size_t n1, n2;
                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/compat/qsort_s.c:15:13: warning: variable name 'n2' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/compat/qsort_s.c:17:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (n <= 1)
                   ^
                    {
/datasets/git/compat/qsort_s.c:30:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (n1 > 0 && n2 > 0) {
        ^
/datasets/git/compat/qsort_s.c:30:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'n1' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (n1 > 0 && n2 > 0) {
               ^
/datasets/git/compat/qsort_s.c:32:4: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memcpy(tmp, b1, s);
                        ^~~~~~
/datasets/git/compat/qsort_s.c:32:4: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                        memcpy(tmp, b1, s);
                        ^~~~~~
/datasets/git/compat/qsort_s.c:37:4: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memcpy(tmp, b2, s);
                        ^~~~~~
/datasets/git/compat/qsort_s.c:37:4: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                        memcpy(tmp, b2, s);
                        ^~~~~~
/datasets/git/compat/qsort_s.c:43:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (n1 > 0)
                   ^
                    {
/datasets/git/compat/qsort_s.c:44:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(tmp, b1, n1 * s);
                ^~~~~~
/datasets/git/compat/qsort_s.c:44:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(tmp, b1, n1 * s);
                ^~~~~~
/datasets/git/compat/qsort_s.c:45:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(b, t, (n - n2) * s);
        ^~~~~~
/datasets/git/compat/qsort_s.c:45:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(b, t, (n - n2) * s);
        ^~~~~~
/datasets/git/compat/qsort_s.c:48:23: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
int git_qsort_s(void *b, size_t n, size_t s,
                      ^
/datasets/git/compat/qsort_s.c:48:43: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
int git_qsort_s(void *b, size_t n, size_t s,
                                          ^
/datasets/git/compat/qsort_s.c:52:8: warning: variable 'tmp' is not initialized [cppcoreguidelines-init-variables]
        char *tmp;
              ^
                  = NULL
/datasets/git/compat/qsort_s.c:54:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!n)
               ^
                {
/datasets/git/compat/qsort_s.c:56:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!b || !cmp)
                       ^
                        {
/datasets/git/compat/simple-ipc/ipc-shared.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "simple-ipc.h"
^        ~~~~~~~~~~~~~~
         "pkt-line.h"
/datasets/git/compat/simple-ipc/ipc-shared.c:20:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/compat/simple-ipc/ipc-shared.c:24:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "simple-ipc.h"
^        ~~~~~~~~~~~~~~
         "pkt-line.h"
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:22:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:61:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((st.st_mode & S_IFMT) != S_IFSOCK)
             ^
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:61:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((st.st_mode & S_IFMT) != S_IFSOCK)
                                              ^
                                               {
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:82:1: warning: replace macro with enum [modernize-macro-to-enum]
#define WAIT_STEP_MS (50)
^~~~~~~~
                     =
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:82:9: warning: macro 'WAIT_STEP_MS' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define WAIT_STEP_MS (50)
        ^
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:94:6: warning: variable 'k' is not initialized [cppcoreguidelines-init-variables]
        int k;
            ^
              = 0
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:94:6: warning: variable name 'k' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:98:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (k = 0; k < timeout_ms; k += WAIT_STEP_MS) {
        ^
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:99:7: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
                int fd = unix_stream_connect(path, options->uds_disallow_chdir);
                    ^
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:107:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!options->wait_if_not_found)
                                                        ^
                                                         {
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:114:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!options->wait_if_busy)
                                                   ^
                                                    {
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:121:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!options->wait_if_busy)
                                                   ^
                                                    {
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:150:1: warning: replace macro with enum [modernize-macro-to-enum]
#define MY_CONNECTION_TIMEOUT_MS (1000)
^~~~~~~~
                                 =
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:150:9: warning: macro 'MY_CONNECTION_TIMEOUT_MS' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define MY_CONNECTION_TIMEOUT_MS (1000)
        ^
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:158:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
        int fd = -1;
            ^
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:182:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!connection)
                        ^
                         {
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:185:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (connection->fd != -1)
                                 ^
                                  {
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:211:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    PACKET_READ_GENTLE_ON_EOF | PACKET_READ_GENTLE_ON_READ_ERROR) < 0) {
                    ^
/datasets/git/./pkt-line.h:84:43: note: expanded from macro 'PACKET_READ_GENTLE_ON_EOF'
#define PACKET_READ_GENTLE_ON_EOF        (1u<<0)
                                          ^   ~
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:211:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    PACKET_READ_GENTLE_ON_EOF | PACKET_READ_GENTLE_ON_READ_ERROR) < 0) {
                                                ^
/datasets/git/./pkt-line.h:87:43: note: expanded from macro 'PACKET_READ_GENTLE_ON_READ_ERROR'
#define PACKET_READ_GENTLE_ON_READ_ERROR (1u<<3)
                                          ^   ~
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:227:24: warning: variable 'state' is not initialized [cppcoreguidelines-init-variables]
        enum ipc_active_state state;
                              ^
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:232:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (state != IPC_STATE__LISTENING)
                                          ^
                                           {
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:244:37: warning: 2 adjacent parameters of 'set_socket_blocking_flag' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int set_socket_blocking_flag(int fd, int make_nonblocking)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:244:41: note: the first parameter in the range is 'fd'
static int set_socket_blocking_flag(int fd, int make_nonblocking)
                                        ^~
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:244:49: note: the last parameter in the range is 'make_nonblocking'
static int set_socket_blocking_flag(int fd, int make_nonblocking)
                                                ^~~~~~~~~~~~~~~~
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:244:41: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
static int set_socket_blocking_flag(int fd, int make_nonblocking)
                                        ^
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:246:6: warning: variable 'flags' is not initialized [cppcoreguidelines-init-variables]
        int flags;
            ^
                  = 0
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:250:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags < 0)
                      ^
                       {
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:253:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (make_nonblocking)
                             ^
                              {
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:254:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags |= O_NONBLOCK;
                ^~~~~
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:255:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:256:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags &= ~O_NONBLOCK;
                ^~~~~
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:256:12: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                flags &= ~O_NONBLOCK;
                         ^
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:274:8: warning: accessing fields in struct 'ipc_server_reply_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct ipc_server_reply_data {
       ^
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:274:8: note: use "__attribute__((aligned(16)))" to align struct 'ipc_server_reply_data' to 16 bytes
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:280:8: warning: accessing fields in struct 'ipc_worker_thread_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct ipc_worker_thread_data {
       ^
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:280:8: note: use "__attribute__((aligned(32)))" to align struct 'ipc_worker_thread_data' to 32 bytes
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:287:8: warning: accessing fields in struct 'ipc_accept_thread_data' is inefficient due to padding; only needs 36 bytes but is using 40 bytes [altera-struct-pack-align]
struct ipc_accept_thread_data {
       ^
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:287:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'ipc_accept_thread_data'
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:287:8: warning: accessing fields in struct 'ipc_accept_thread_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct ipc_accept_thread_data {
       ^
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:287:8: note: use "__attribute__((aligned(64)))" to align struct 'ipc_accept_thread_data' to 64 bytes
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:308:8: warning: accessing fields in struct 'ipc_server_data' is inefficient due to padding; only needs 176 bytes but is using 184 bytes [altera-struct-pack-align]
struct ipc_server_data {
       ^
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:308:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'ipc_server_data'
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:308:8: warning: accessing fields in struct 'ipc_server_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct ipc_server_data {
       ^
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:308:8: note: use "__attribute__((aligned(128)))" to align struct 'ipc_server_data' to 128 bytes
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:343:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:343:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:345:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (server_data->back_pos == server_data->front_pos)
                                                            ^
                                                             {
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:352:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (server_data->front_pos == server_data->queue_size)
                                                              ^
                                                               {
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:363:66: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
static int fifo_enqueue(struct ipc_server_data *server_data, int fd)
                                                                 ^
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:367:6: warning: variable 'next_back_pos' is not initialized [cppcoreguidelines-init-variables]
        int next_back_pos;
            ^
                          = 0
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:370:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (next_back_pos == server_data->queue_size)
                                                     ^
                                                      {
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:396:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
        int fd = -1;
            ^
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:399:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:400:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (server_data->shutdown_requested)
                                                    ^
                                                     {
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:404:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fd >= 0)
                            ^
                             {
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:431:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (reply_data->magic != MAGIC_SERVER_REPLY_DATA)
                                                         ^
                                                          {
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:439:1: warning: replace macro with enum [modernize-macro-to-enum]
#define MY_WAIT_POLL_TIMEOUT_MS (10)
^~~~~~~~
                                =
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:439:9: warning: macro 'MY_WAIT_POLL_TIMEOUT_MS' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define MY_WAIT_POLL_TIMEOUT_MS (10)
        ^
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:457:6: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
        int fd)
            ^
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:461:6: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        int result;
            ^
                   = 0
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:463:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:469:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (errno == EINTR)
                                           ^
                                            {
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:477:8: warning: variable 'in_shutdown' is not initialized [cppcoreguidelines-init-variables]
                        int in_shutdown;
                            ^
                                        = 0
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:487:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (in_shutdown)
                                        ^
                                         {
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:492:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (pollfd[0].revents & POLLHUP)
                    ^~~~~~~~~~~~~~~~~
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:492:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pollfd[0].revents & POLLHUP)
                                                ^
                                                 {
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:495:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (pollfd[0].revents & POLLIN)
                    ^~~~~~~~~~~~~~~~~
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:495:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pollfd[0].revents & POLLIN)
                                               ^
                                                {
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:513:6: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
        int fd)
            ^
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:526:8: warning: narrowing conversion from 'ssize_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        ret = read_packetized_to_strbuf(
              ^
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:528:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                PACKET_READ_GENTLE_ON_EOF | PACKET_READ_GENTLE_ON_READ_ERROR);
                ^
/datasets/git/./pkt-line.h:84:43: note: expanded from macro 'PACKET_READ_GENTLE_ON_EOF'
#define PACKET_READ_GENTLE_ON_EOF        (1u<<0)
                                          ^   ~
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:528:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                PACKET_READ_GENTLE_ON_EOF | PACKET_READ_GENTLE_ON_READ_ERROR);
                                            ^
/datasets/git/./pkt-line.h:87:43: note: expanded from macro 'PACKET_READ_GENTLE_ON_READ_ERROR'
#define PACKET_READ_GENTLE_ON_READ_ERROR (1u<<3)
                                          ^   ~
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:588:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int fd, io;
        ^~~~~~~~~~~
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:588:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd, io;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:588:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:588:10: warning: variable 'io' is not initialized [cppcoreguidelines-init-variables]
        int fd, io;
                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:588:10: warning: variable name 'io' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:589:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:595:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:597:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fd == -1)
                             ^
                              {
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:601:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (io == -1)
                             ^
                              {
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:632:1: warning: replace macro with enum [modernize-macro-to-enum]
#define MY_ACCEPT_POLL_TIMEOUT_MS (60 * 1000)
^~~~~~~~
                                  =
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:632:9: warning: macro 'MY_ACCEPT_POLL_TIMEOUT_MS' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define MY_ACCEPT_POLL_TIMEOUT_MS (60 * 1000)
        ^
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:643:6: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        int result;
            ^
                   = 0
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:645:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:654:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (errno == EINTR)
                                           ^
                                            {
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:679:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (pollfd[0].revents & POLLIN) {
                    ^~~~~~~~~~~~~~~~~
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:684:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (pollfd[1].revents & POLLIN) {
                    ^~~~~~~~~~~~~~~~~
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:690:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (client_fd >= 0)
                                           ^
                                            {
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:726:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:733:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (client_fd >= 0)
                                           ^
                                            {
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:764:1: warning: replace macro with enum [modernize-macro-to-enum]
#define FIFO_SCALE (100)
^~~~~~~~
                   =
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:764:9: warning: macro 'FIFO_SCALE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define FIFO_SCALE (100)
        ^
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:774:1: warning: replace macro with enum [modernize-macro-to-enum]
#define LISTEN_BACKLOG (50)
^~~~~~~~
                       =
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:774:9: warning: macro 'LISTEN_BACKLOG' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define LISTEN_BACKLOG (50)
        ^
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:783:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:789:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:810:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int ret, saved_errno;
        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:810:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret, saved_errno;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:810:11: warning: variable 'saved_errno' is not initialized [cppcoreguidelines-init-variables]
        int ret, saved_errno;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:832:26: warning: variable 'server_data' is not initialized [cppcoreguidelines-init-variables]
        struct ipc_server_data *server_data;
                                ^
                                            = NULL
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:833:6: warning: variable name 'sv' is too short, expected at least 3 characters [readability-identifier-length]
        int sv[2];
            ^
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:834:6: warning: variable 'k' is not initialized [cppcoreguidelines-init-variables]
        int k;
            ^
              = 0
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:834:6: warning: variable name 'k' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:835:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:846:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (socketpair(AF_UNIX, SOCK_STREAM, 0, sv) < 0)
                                                        ^
                                                         {
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:873:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (nr_threads < 1)
                           ^
                            {
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:891:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                           accept_thread_proc, server_data->accept_thread))
                                                                           ^
                                                                            {
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:894:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (k = 0; k < nr_threads; k++) {
        ^
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:894:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'nr_threads' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (k = 0; k < nr_threads; k++) {
                    ^
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:895:34: warning: variable 'wtd' is not initialized [cppcoreguidelines-init-variables]
                struct ipc_worker_thread_data *wtd;
                                               ^
                                                   = NULL
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:903:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (k == 0)
                                   ^
                                    {
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:928:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:928:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:930:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!server_data)
                         ^
                          {
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:943:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write(server_data->accept_thread->fd_send_shutdown, "Q", 1) < 0)
                                                                            ^
                                                                             {
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:949:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((fd = fifo_dequeue(server_data)) != -1)
        ^
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:949:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'fd' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((fd = fifo_dequeue(server_data)) != -1)
               ^
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:949:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while ((fd = fifo_dequeue(server_data)) != -1)
                                                      ^
                                                       {
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:972:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!server_data->shutdown_requested)
                                             ^
                                              {
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:976:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (server_data->worker_thread_list) {
        ^
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:976:9: warning: backward branch (while loop) is ID-dependent due to member reference to 'worker_thread_list' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (server_data->worker_thread_list) {
               ^
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:993:34: warning: variable 'accept_thread_data' is not initialized [cppcoreguidelines-init-variables]
        struct ipc_accept_thread_data * accept_thread_data;
                                        ^
                                                           = NULL
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:995:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!server_data)
                         ^
                          {
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:998:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!server_data->is_stopped)
                                     ^
                                      {
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:1006:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (accept_thread_data->fd_send_shutdown != -1)
                                                               ^
                                                                {
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:1008:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (accept_thread_data->fd_wait_shutdown != -1)
                                                               ^
                                                                {
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:1014:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (server_data->worker_thread_list) {
        ^
/datasets/git/compat/simple-ipc/ipc-unix-socket.c:1014:9: warning: backward branch (while loop) is ID-dependent due to member reference to 'worker_thread_list' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (server_data->worker_thread_list) {
               ^
/datasets/git/compat/strlcpy.c:9:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(dest, src, len);
                ^~~~~~
/datasets/git/compat/strlcpy.c:9:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(dest, src, len);
                ^~~~~~
/datasets/git/compat/terminal.c:3:1: warning: #includes are not sorted properly [llvm-include-order]
#include "sigchain.h"
^        ~~~~~~~~~~~~
         "hashmap.h"
/datasets/git/compat/terminal.c:15:2: warning: the value returned by this function should be used [cert-err33-c]
        raise(sig);
        ^~~~~~~~~~
/datasets/git/compat/terminal.c:15:2: note: cast the expression to void to silence this warning
/datasets/git/compat/terminal.c:23:30: warning: variable 'term_fd_needs_closing' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static volatile sig_atomic_t term_fd_needs_closing;
                             ^
/datasets/git/compat/terminal.c:24:12: warning: variable 'term_fd' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int term_fd = -1;
           ^
/datasets/git/compat/terminal.c:25:23: warning: variable 'old_term' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct termios old_term;
                      ^
/datasets/git/compat/terminal.c:27:20: warning: variable 'background_resume_msg' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *background_resume_msg;
                   ^
/datasets/git/compat/terminal.c:28:20: warning: variable 'restore_error_msg' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *restore_error_msg;
                   ^
/datasets/git/compat/terminal.c:29:30: warning: variable 'ttou_received' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static volatile sig_atomic_t ttou_received;
                             ^
/datasets/git/compat/terminal.c:44:19: warning: variable name 'sa' is too short, expected at least 3 characters [readability-identifier-length]
        struct sigaction sa = { .sa_handler = SIG_DFL };
                         ^
/datasets/git/compat/terminal.c:49:2: warning: the value returned by this function should be used [cert-err33-c]
        raise(signo);
        ^~~~~~~~~~~~
/datasets/git/compat/terminal.c:49:2: note: cast the expression to void to silence this warning
/datasets/git/compat/terminal.c:52:2: warning: function is not thread safe [concurrency-mt-unsafe]
        sigprocmask(SIG_UNBLOCK, &mask, NULL);
        ^
/datasets/git/compat/terminal.c:54:2: warning: function is not thread safe [concurrency-mt-unsafe]
        sigprocmask(SIG_BLOCK, &mask, NULL);
        ^
/datasets/git/compat/terminal.c:62:6: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        int res;
            ^
                = 0
/datasets/git/compat/terminal.c:63:17: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
        struct termios t;
                       ^
/datasets/git/compat/terminal.c:66:19: warning: variable name 'sa' is too short, expected at least 3 characters [readability-identifier-length]
        struct sigaction sa = { .sa_handler = SIG_DFL };
                         ^
/datasets/git/compat/terminal.c:69:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (tcgetattr(term_fd, &t) < 0)
                                       ^
                                        {
/datasets/git/compat/terminal.c:72:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (tcsetattr(term_fd, TCSAFLUSH, &old_term) < 0)
                                                         ^
                                                          {
/datasets/git/compat/terminal.c:76:2: warning: the value returned by this function should be used [cert-err33-c]
        raise(signo);
        ^~~~~~~~~~~~
/datasets/git/compat/terminal.c:76:2: note: cast the expression to void to silence this warning
/datasets/git/compat/terminal.c:79:2: warning: function is not thread safe [concurrency-mt-unsafe]
        sigprocmask(SIG_UNBLOCK, &mask, NULL);
        ^
/datasets/git/compat/terminal.c:81:2: warning: function is not thread safe [concurrency-mt-unsafe]
        sigprocmask(SIG_BLOCK, &mask, NULL);
        ^
/datasets/git/compat/terminal.c:100:2: warning: function is not thread safe [concurrency-mt-unsafe]
        sigprocmask(SIG_UNBLOCK, &mask, NULL);
        ^
/datasets/git/compat/terminal.c:102:2: warning: function is not thread safe [concurrency-mt-unsafe]
        sigprocmask(SIG_BLOCK, &mask, NULL);
        ^
/datasets/git/compat/terminal.c:103:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ttou_received)
                          ^
                           {
/datasets/git/compat/terminal.c:105:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (res < 0)
                         ^
                          {
/datasets/git/compat/terminal.c:115:3: warning: the value returned by this function should be used [cert-err33-c]
                signal(SIGTTIN, SIG_DFL);
                ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/compat/terminal.c:115:3: note: cast the expression to void to silence this warning
/datasets/git/compat/terminal.c:116:3: warning: the value returned by this function should be used [cert-err33-c]
                signal(SIGTTOU, SIG_DFL);
                ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/compat/terminal.c:116:3: note: cast the expression to void to silence this warning
/datasets/git/compat/terminal.c:117:3: warning: the value returned by this function should be used [cert-err33-c]
                signal(SIGTSTP, SIG_DFL);
                ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/compat/terminal.c:117:3: note: cast the expression to void to silence this warning
/datasets/git/compat/terminal.c:125:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (term_fd_needs_closing)
                                  ^
                                   {
/datasets/git/compat/terminal.c:133:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (term_fd < 0)
                        ^
                         {
/datasets/git/compat/terminal.c:144:19: warning: variable name 'sa' is too short, expected at least 3 characters [readability-identifier-length]
        struct sigaction sa;
                         ^
/datasets/git/compat/terminal.c:146:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (term_fd < 0)
                        ^
                         {
/datasets/git/compat/terminal.c:147:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                term_fd = ((flags & SAVE_TERM_STDIN)
                            ^       ~~~~~~~~~~~~~~~
/datasets/git/compat/terminal.c:149:32: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
                           : open("/dev/tty", O_RDWR));
                                                    ^
                                                     | O_CLOEXEC
/datasets/git/compat/terminal.c:150:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (term_fd < 0)
                        ^
                         {
/datasets/git/compat/terminal.c:152:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        term_fd_needs_closing = !(flags & SAVE_TERM_STDIN);
                                  ^       ~~~~~~~~~~~~~~~
/datasets/git/compat/terminal.c:163:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (sa.sa_handler == SIG_IGN)
                                     ^
                                      {
/datasets/git/compat/terminal.c:182:25: warning: 2 adjacent parameters of 'disable_bits' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int disable_bits(enum save_term_flags flags, tcflag_t bits)
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/compat/terminal.c:182:46: note: the first parameter in the range is 'flags'
static int disable_bits(enum save_term_flags flags, tcflag_t bits)
                                             ^~~~~
/datasets/git/compat/terminal.c:182:62: note: the last parameter in the range is 'bits'
static int disable_bits(enum save_term_flags flags, tcflag_t bits)
                                                             ^~~~
/datasets/git/compat/terminal.c:182:25: note: 
static int disable_bits(enum save_term_flags flags, tcflag_t bits)
                        ^
/datasets/git/compat/terminal.c:182:53: note: 'enum save_term_flags' and 'tcflag_t' may be implicitly converted: 'enum save_term_flags' -> 'tcflag_t' (as 'unsigned int'), 'tcflag_t' (as 'unsigned int') -> 'enum save_term_flags'
static int disable_bits(enum save_term_flags flags, tcflag_t bits)
                                                    ^
/datasets/git/compat/terminal.c:184:17: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
        struct termios t;
                       ^
/datasets/git/compat/terminal.c:186:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (save_term(flags) < 0)
                                 ^
                                  {
/datasets/git/compat/terminal.c:192:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (bits & ICANON) {
            ^
/datasets/git/compat/terminal.c:196:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!tcsetattr(term_fd, TCSAFLUSH, &t))
                                               ^
                                                {
/datasets/git/compat/terminal.c:221:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct timeval tv, *tvp = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/compat/terminal.c:221:17: warning: variable name 'tv' is too short, expected at least 3 characters [readability-identifier-length]
        struct timeval tv, *tvp = NULL;
                       ^
/datasets/git/compat/terminal.c:223:6: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        int res;
            ^
                = 0
/datasets/git/compat/terminal.c:227:25: warning: 1000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                tv.tv_sec = timeout / 1000;
                                      ^
/datasets/git/compat/terminal.c:228:16: warning: performing an implicit widening conversion to type '__suseconds_t' (aka 'long') of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                tv.tv_usec = (timeout % 1000) * 1000;
                             ^
/datasets/git/compat/terminal.c:228:16: note: make conversion explicit to silence this warning
                tv.tv_usec = (timeout % 1000) * 1000;
                             ^~~~~~~~~~~~~~~~~~~~~~~
                             (__suseconds_t)(   )
/datasets/git/compat/terminal.c:228:16: note: perform multiplication in a wider type
                tv.tv_usec = (timeout % 1000) * 1000;
                             ^~~~~~~~~~~~~~~
                              (__suseconds_t)
/datasets/git/compat/terminal.c:228:27: warning: 1000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                tv.tv_usec = (timeout % 1000) * 1000;
                                        ^
/datasets/git/compat/terminal.c:228:35: warning: 1000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                tv.tv_usec = (timeout % 1000) * 1000;
                                                ^
/datasets/git/compat/terminal.c:235:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!res)
                 ^
                  {
/datasets/git/compat/terminal.c:238:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (errno == EINTR)
                                   ^
                                    {
/datasets/git/compat/terminal.c:240:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/compat/terminal.c:430:6: warning: variable 'r' is not initialized [cppcoreguidelines-init-variables]
        int r;
            ^
              = 0
/datasets/git/compat/terminal.c:430:6: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/compat/terminal.c:431:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        FILE *input_fh, *output_fh;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/compat/terminal.c:431:8: warning: variable 'input_fh' is not initialized [cppcoreguidelines-init-variables]
        FILE *input_fh, *output_fh;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/compat/terminal.c:431:19: warning: variable 'output_fh' is not initialized [cppcoreguidelines-init-variables]
        FILE *input_fh, *output_fh;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/compat/terminal.c:434:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!input_fh)
                      ^
                       {
/datasets/git/compat/terminal.c:439:3: warning: the value returned by this function should be used [cert-err33-c]
                fclose(input_fh);
                ^~~~~~~~~~~~~~~~
/datasets/git/compat/terminal.c:439:3: note: cast the expression to void to silence this warning
/datasets/git/compat/terminal.c:444:3: warning: the value returned by this function should be used [cert-err33-c]
                fclose(input_fh);
                ^~~~~~~~~~~~~~~~
/datasets/git/compat/terminal.c:444:3: note: cast the expression to void to silence this warning
/datasets/git/compat/terminal.c:445:3: warning: the value returned by this function should be used [cert-err33-c]
                fclose(output_fh);
                ^~~~~~~~~~~~~~~~~
/datasets/git/compat/terminal.c:445:3: note: cast the expression to void to silence this warning
/datasets/git/compat/terminal.c:449:2: warning: the value returned by this function should be used [cert-err33-c]
        fputs(prompt, output_fh);
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/compat/terminal.c:449:2: note: cast the expression to void to silence this warning
/datasets/git/compat/terminal.c:450:2: warning: the value returned by this function should be used [cert-err33-c]
        fflush(output_fh);
        ^~~~~~~~~~~~~~~~~
/datasets/git/compat/terminal.c:450:2: note: cast the expression to void to silence this warning
/datasets/git/compat/terminal.c:454:3: warning: the value returned by this function should be used [cert-err33-c]
                putc('\n', output_fh);
                ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/compat/terminal.c:454:3: note: cast the expression to void to silence this warning
/datasets/git/compat/terminal.c:455:3: warning: the value returned by this function should be used [cert-err33-c]
                fflush(output_fh);
                ^~~~~~~~~~~~~~~~~
/datasets/git/compat/terminal.c:455:3: note: cast the expression to void to silence this warning
/datasets/git/compat/terminal.c:459:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(input_fh);
        ^~~~~~~~~~~~~~~~
/datasets/git/compat/terminal.c:459:2: note: cast the expression to void to silence this warning
/datasets/git/compat/terminal.c:460:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(output_fh);
        ^~~~~~~~~~~~~~~~~
/datasets/git/compat/terminal.c:460:2: note: cast the expression to void to silence this warning
/datasets/git/compat/terminal.c:462:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (r == EOF)
                     ^
                      {
/datasets/git/compat/terminal.c:481:46: warning: parameter name 'e1' is too short, expected at least 3 characters [readability-identifier-length]
                              const struct escape_sequence_entry *e1,
                                                                  ^
/datasets/git/compat/terminal.c:482:46: warning: parameter name 'e2' is too short, expected at least 3 characters [readability-identifier-length]
                              const struct escape_sequence_entry *e2,
                                                                  ^
/datasets/git/compat/terminal.c:494:24: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
                struct child_process cp = CHILD_PROCESS_INIT;
                                     ^
/datasets/git/compat/terminal.c:496:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                char *p, *eol;
                ^~~~~~~~~~~~~~
/datasets/git/compat/terminal.c:496:9: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                char *p, *eol;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/compat/terminal.c:496:9: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/compat/terminal.c:496:13: warning: variable 'eol' is not initialized [cppcoreguidelines-init-variables]
                char *p, *eol;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/compat/terminal.c:502:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pipe_command(&cp, NULL, 0, &buf, 0, NULL, 0))
                                                                 ^
                                                                  {
/datasets/git/compat/terminal.c:505:8: warning: Value stored to 'eol' is never read [clang-analyzer-deadcode.DeadStores]
                for (eol = p = buf.buf; *p; p = eol + 1) {
                     ^     ~~~~~~~~~~~
/datasets/git/compat/terminal.c:505:8: note: Value stored to 'eol' is never read
                for (eol = p = buf.buf; *p; p = eol + 1) {
                     ^     ~~~~~~~~~~~
/datasets/git/compat/terminal.c:505:27: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (eol = p = buf.buf; *p; p = eol + 1) {
                                        ^
/datasets/git/compat/terminal.c:507:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!p)
                               ^
                                {
/datasets/git/compat/terminal.c:514:35: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
                                struct escape_sequence_entry *e;
                                                              ^
                                                                = NULL
/datasets/git/compat/terminal.c:514:35: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/compat/terminal.c:518:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                FLEX_ALLOC_MEM(e, sequence, p, comma - p);
                                ^
/datasets/git/./git-compat-util.h:1151:47: note: expanded from macro 'FLEX_ALLOC_MEM'
#define FLEX_ALLOC_MEM(x, flexname, buf, len) do { \
                                              ^
/datasets/git/compat/terminal.c:518:5: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                                FLEX_ALLOC_MEM(e, sequence, p, comma - p);
                                ^
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/compat/terminal.c:518:5: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                                FLEX_ALLOC_MEM(e, sequence, p, comma - p);
                                ^
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/compat/terminal.c:523:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!*eol)
                                  ^
                                   {
/datasets/git/compat/terminal.c:535:6: warning: variable 'ch' is not initialized [cppcoreguidelines-init-variables]
        int ch;
            ^
               = 0
/datasets/git/compat/terminal.c:535:6: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/compat/terminal.c:570:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (!is_known_escape_sequence(buf->buf)) {
                ^
/datasets/git/compat/terminal.c:571:30: warning: 500 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        ch = getchar_with_timeout(500);
                                                  ^
/datasets/git/compat/terminal.c:572:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ch == EOF)
                                      ^
                                       {
compat/zlib-uncompress2.c:95:14: warning: variable 'dummy_variable' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static void *dummy_variable = &dummy_variable;
             ^
compat/zlib-uncompress2.c:95:14: warning: variable 'dummy_variable' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/config.c:9:1: warning: #includes are not sorted properly [llvm-include-order]
#include "date.h"
^        ~~~~~~~~
         "branch.h"
/datasets/git/config.c:27:8: warning: accessing fields in struct 'config_source' is inefficient due to padding; only needs 148 bytes but is using 160 bytes [altera-struct-pack-align]
struct config_source {
       ^
/datasets/git/config.c:27:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'config_source'
/datasets/git/config.c:27:8: warning: accessing fields in struct 'config_source' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct config_source {
       ^
/datasets/git/config.c:27:8: note: use "__attribute__((aligned(128)))" to align struct 'config_source' to 128 bytes
/datasets/git/config.c:31:10: warning: accessing fields in struct 'config_buf' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
                struct config_buf {
                       ^
/datasets/git/config.c:31:10: note: use "__attribute__((aligned(32)))" to align struct 'config_buf' to 32 bytes
/datasets/git/config.c:48:40: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        int (*do_fgetc)(struct config_source *c);
                                              ^
/datasets/git/config.c:49:23: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        int (*do_ungetc)(int c, struct config_source *conf);
                             ^
/datasets/git/config.c:50:41: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        long (*do_ftell)(struct config_source *c);
                                               ^
/datasets/git/config.c:69:30: warning: variable 'cf' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct config_source *cf;
                             ^
/datasets/git/config.c:69:30: warning: variable 'cf' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/config.c:69:30: warning: variable name 'cf' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/config.c:70:31: warning: variable 'current_config_kvi' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct key_value_info *current_config_kvi;
                              ^
/datasets/git/config.c:70:31: warning: variable 'current_config_kvi' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/config.c:79:26: warning: variable 'current_parsing_scope' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static enum config_scope current_parsing_scope;
                         ^
/datasets/git/config.c:81:12: warning: variable 'pack_compression_seen' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int pack_compression_seen;
           ^
/datasets/git/config.c:82:12: warning: variable 'zlib_compression_seen' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int zlib_compression_seen;
           ^
/datasets/git/config.c:93:26: warning: variable 'protected_config' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct config_set protected_config;
                         ^
/datasets/git/config.c:97:9: warning: function is not thread safe [concurrency-mt-unsafe]
        return getc_unlocked(conf->u.file);
               ^
/datasets/git/config.c:100:35: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static int config_file_ungetc(int c, struct config_source *conf)
                                  ^
/datasets/git/config.c:113:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (conf->u.buf.pos < conf->u.buf.len)
                                              ^
                                               {
/datasets/git/config.c:119:34: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static int config_buf_ungetc(int c, struct config_source *conf)
                                 ^
/datasets/git/config.c:123:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (conf->u.buf.buf[conf->u.buf.pos] != c)
                                                          ^
                                                           {
/datasets/git/config.c:133:9: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'long' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return conf->u.buf.pos;
               ^
/datasets/git/config.c:136:8: warning: accessing fields in struct 'config_include_data' is inefficient due to padding; only needs 44 bytes but is using 48 bytes [altera-struct-pack-align]
struct config_include_data {
       ^
/datasets/git/config.c:136:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'config_include_data'
/datasets/git/config.c:136:8: warning: accessing fields in struct 'config_include_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct config_include_data {
       ^
/datasets/git/config.c:136:8: note: use "__attribute__((aligned(64)))" to align struct 'config_include_data' to 64 bytes
/datasets/git/config.c:152:1: warning: replace macro with enum [modernize-macro-to-enum]
#define MAX_INCLUDE_DEPTH 10
^~~~~~~~
                          =
/datasets/git/config.c:152:9: warning: macro 'MAX_INCLUDE_DEPTH' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define MAX_INCLUDE_DEPTH 10
        ^
/datasets/git/config.c:163:8: warning: variable 'expanded' is not initialized [cppcoreguidelines-init-variables]
        char *expanded;
              ^
                       = NULL
/datasets/git/config.c:165:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!path)
                  ^
                   {
/datasets/git/config.c:169:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!expanded)
                      ^
                       {
/datasets/git/config.c:178:9: warning: variable 'slash' is not initialized [cppcoreguidelines-init-variables]
                char *slash;
                      ^
                            = NULL
/datasets/git/config.c:186:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (slash)
                          ^
                           {
/datasets/git/config.c:193:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (++inc->depth > MAX_INCLUDE_DEPTH)
                                                     ^
                                                      {
/datasets/git/config.c:209:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pat->len && is_dir_sep(pat->buf[pat->len - 1]))
                                                           ^
                                                            {
/datasets/git/config.c:216:8: warning: variable 'expanded' is not initialized [cppcoreguidelines-init-variables]
        char *expanded;
              ^
                       = NULL
/datasets/git/config.c:227:15: warning: variable 'slash' is not initialized [cppcoreguidelines-init-variables]
                const char *slash;
                            ^
                                  = NULL
/datasets/git/config.c:229:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!cf || !cf->path)
                                     ^
                                      {
/datasets/git/config.c:235:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!slash)
                           ^
                            {
/datasets/git/config.c:238:12: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                prefix = slash - path.buf + 1 /* slash */;
                         ^
/datasets/git/config.c:239:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else if (!is_absolute_path(pat->buf))
                                               ^
                                                {
/datasets/git/config.c:249:27: warning: 2 adjacent parameters of 'include_by_gitdir' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                             const char *cond, size_t cond_len, int icase)
                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/config.c:249:34: note: the first parameter in the range is 'cond_len'
                             const char *cond, size_t cond_len, int icase)
                                                      ^~~~~~~~
/datasets/git/config.c:249:48: note: the last parameter in the range is 'icase'
                             const char *cond, size_t cond_len, int icase)
                                                                    ^~~~~
/datasets/git/config.c:249:27: note: 
                             const char *cond, size_t cond_len, int icase)
                                               ^
/datasets/git/config.c:249:44: note: 'size_t' and 'int' may be implicitly converted: 'size_t' (as 'unsigned long') -> 'int', 'int' -> 'size_t' (as 'unsigned long')
                             const char *cond, size_t cond_len, int icase)
                                                                ^
/datasets/git/config.c:253:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int ret = 0, prefix;
        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/config.c:253:15: warning: variable 'prefix' is not initialized [cppcoreguidelines-init-variables]
        int ret = 0, prefix;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/config.c:254:14: warning: variable 'git_dir' is not initialized [cppcoreguidelines-init-variables]
        const char *git_dir;
                    ^
                            = NULL
/datasets/git/config.c:257:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->git_dir)
                          ^
                           {
/datasets/git/config.c:259:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/config.c:267:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prefix < 0)
                       ^
                        {
/datasets/git/config.c:275:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (text.len < prefix)
                                      ^
                                       {
/datasets/git/config.c:277:17: warning: function 'strncmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (!icase && strncmp(pattern.buf, text.buf, prefix))
                              ^
                                                                     != 0
/datasets/git/config.c:277:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!icase && strncmp(pattern.buf, text.buf, prefix))
                                                                     ^
                                                                      {
/datasets/git/config.c:279:16: warning: function 'strncasecmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (icase && strncasecmp(pattern.buf, text.buf, prefix))
                             ^
                                                                        != 0
/datasets/git/config.c:279:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (icase && strncasecmp(pattern.buf, text.buf, prefix))
                                                                        ^
                                                                         {
/datasets/git/config.c:284:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         WM_PATHNAME | (icase ? WM_CASEFOLD : 0));
                         ^
/datasets/git/./wildmatch.h:5:21: note: expanded from macro 'WM_PATHNAME'
#define WM_PATHNAME 2
                    ^
/datasets/git/config.c:308:6: warning: variable 'flags' is not initialized [cppcoreguidelines-init-variables]
        int flags;
            ^
                  = 0
/datasets/git/config.c:309:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/config.c:313:14: warning: variable 'shortname' is not initialized [cppcoreguidelines-init-variables]
        const char *shortname;
                    ^
                              = NULL
/datasets/git/config.c:315:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!refname || !(flags & REF_ISSYMREF) ||
                          ^~~~~
/datasets/git/config.c:316:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        !skip_prefix(refname, "refs/heads/", &shortname))
                                                                         ^
                                                                          {
/datasets/git/config.c:326:27: warning: 2 adjacent parameters of 'add_remote_url' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int add_remote_url(const char *var, const char *value, void *data)
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/config.c:326:39: note: the first parameter in the range is 'var'
static int add_remote_url(const char *var, const char *value, void *data)
                                      ^~~
/datasets/git/config.c:326:56: note: the last parameter in the range is 'value'
static int add_remote_url(const char *var, const char *value, void *data)
                                                       ^~~~~
/datasets/git/config.c:329:14: warning: variable 'remote_name' is not initialized [cppcoreguidelines-init-variables]
        const char *remote_name;
                    ^
                                = NULL
/datasets/git/config.c:330:9: warning: variable 'remote_name_len' is not initialized [cppcoreguidelines-init-variables]
        size_t remote_name_len;
               ^
                               = 0
/datasets/git/config.c:331:14: warning: variable 'key' is not initialized [cppcoreguidelines-init-variables]
        const char *key;
                    ^
                        = NULL
/datasets/git/config.c:336:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !strcmp(key, "url"))
                                ^
                                 {
/datasets/git/config.c:365:30: warning: 2 adjacent parameters of 'forbid_remote_url' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int forbid_remote_url(const char *var, const char *value UNUSED,
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/config.c:365:42: note: the first parameter in the range is 'var'
static int forbid_remote_url(const char *var, const char *value UNUSED,
                                         ^~~
/datasets/git/config.c:365:59: note: the last parameter in the range is 'value'
static int forbid_remote_url(const char *var, const char *value UNUSED,
                                                          ^~~~~
/datasets/git/config.c:368:14: warning: variable 'remote_name' is not initialized [cppcoreguidelines-init-variables]
        const char *remote_name;
                    ^
                                = NULL
/datasets/git/config.c:369:9: warning: variable 'remote_name_len' is not initialized [cppcoreguidelines-init-variables]
        size_t remote_name_len;
               ^
                               = 0
/datasets/git/config.c:370:14: warning: variable 'key' is not initialized [cppcoreguidelines-init-variables]
        const char *key;
                    ^
                        = NULL
/datasets/git/config.c:384:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct string_list_item *url_item;
        ^
/datasets/git/config.c:375:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !strcmp(key, "url"))
                                ^
                                 {
/datasets/git/config.c:384:27: warning: variable 'url_item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *url_item;
                                 ^
                                          = NULL
/datasets/git/config.c:388:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(url_item, remote_urls) {
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/config.c:388:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'url_item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(url_item, remote_urls) {
                                  ^
/datasets/git/config.c:401:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (inc->opts->unconditional_remote_url)
                                                ^
                                                 {
/datasets/git/config.c:403:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!inc->remote_urls)
                              ^
                               {
/datasets/git/config.c:405:45: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return at_least_one_url_matches_glob(cond, cond_len,
                                                   ^
/datasets/git/config.c:414:67: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (skip_prefix_mem(cond, cond_len, "gitdir:", &cond, &cond_len))
                                                                         ^
                                                                          {
/datasets/git/config.c:416:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (skip_prefix_mem(cond, cond_len, "gitdir/i:", &cond, &cond_len))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/config.c:416:74: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (skip_prefix_mem(cond, cond_len, "gitdir/i:", &cond, &cond_len))
                                                                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/config.c:418:74: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (skip_prefix_mem(cond, cond_len, "onbranch:", &cond, &cond_len))
                                                                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/config.c:421:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                   &cond_len))
                                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/config.c:431:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *cond, *key;
        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/config.c:431:14: warning: variable 'cond' is not initialized [cppcoreguidelines-init-variables]
        const char *cond, *key;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/config.c:431:21: warning: variable 'key' is not initialized [cppcoreguidelines-init-variables]
        const char *cond, *key;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/config.c:432:9: warning: variable 'cond_len' is not initialized [cppcoreguidelines-init-variables]
        size_t cond_len;
               ^
                        = 0
/datasets/git/config.c:433:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/config.c:440:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret < 0)
                    ^
                     {
/datasets/git/config.c:443:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(var, "include.path"))
                                         ^
                                          {
/datasets/git/config.c:451:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (inc->opts->unconditional_remote_url)
                                                        ^
                                                         {
/datasets/git/config.c:463:20: warning: function is not thread safe [concurrency-mt-unsafe]
        const char *old = getenv(CONFIG_DATA_ENVIRONMENT);
                          ^
/datasets/git/config.c:470:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (value)
                  ^
                   {
/datasets/git/config.c:472:2: warning: function is not thread safe [concurrency-mt-unsafe]
        setenv(CONFIG_DATA_ENVIRONMENT, env.buf, 1);
        ^
/datasets/git/config.c:478:14: warning: variable 'value' is not initialized [cppcoreguidelines-init-variables]
        const char *value;
                    ^
                          = NULL
/datasets/git/config.c:514:8: warning: variable 'key' is not initialized [cppcoreguidelines-init-variables]
        char *key;
              ^
                  = NULL
/datasets/git/config.c:515:14: warning: variable 'env_name' is not initialized [cppcoreguidelines-init-variables]
        const char *env_name;
                    ^
                             = NULL
/datasets/git/config.c:516:14: warning: variable 'env_value' is not initialized [cppcoreguidelines-init-variables]
        const char *env_value;
                    ^
                              = NULL
/datasets/git/config.c:519:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!env_name)
                      ^
                       {
/datasets/git/config.c:523:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!*env_name)
                       ^
                        {
/datasets/git/config.c:527:14: warning: function is not thread safe [concurrency-mt-unsafe]
        env_value = getenv(env_name);
                    ^
/datasets/git/config.c:528:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!env_value)
                       ^
                        {
/datasets/git/config.c:536:33: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static inline int iskeychar(int c)
                                ^
/datasets/git/config.c:538:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return isalnum(c) || c == '-';
               ^
/datasets/git/./git-compat-util.h:1220:20: note: expanded from macro 'isalnum'
#define isalnum(x) sane_istest(x,GIT_ALPHA | GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/config.c:555:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t i, baselen;
        ^~~~~~~~~~~~~~~~~~
/datasets/git/config.c:555:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i, baselen;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/config.c:555:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/config.c:555:12: warning: variable 'baselen' is not initialized [cppcoreguidelines-init-variables]
        size_t i, baselen;
                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/config.c:556:6: warning: variable 'dot' is not initialized [cppcoreguidelines-init-variables]
        int dot;
            ^
                = 0
/datasets/git/config.c:575:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (baselen_)
                     ^
                      {
/datasets/git/config.c:584:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; key[i]; i++) {
        ^
/datasets/git/config.c:585:17: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                unsigned char c = key[i];
                              ^
/datasets/git/config.c:586:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (c == '.')
                             ^
                              {
/datasets/git/config.c:591:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            (i == baselen + 1 && !isalpha(c))) {
                                                  ^
/datasets/git/./git-compat-util.h:1219:20: note: expanded from macro 'isalpha'
#define isalpha(x) sane_istest(x,GIT_ALPHA)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/config.c:600:21: warning: narrowing conversion from 'unsigned char' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                (*store_key)[i] = c;
                                  ^
/datasets/git/config.c:606:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(*store_key);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/config.c:610:30: warning: 2 adjacent parameters of 'config_parse_pair' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int config_parse_pair(const char *key, const char *value,
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/config.c:610:42: note: the first parameter in the range is 'key'
static int config_parse_pair(const char *key, const char *value,
                                         ^~~
/datasets/git/config.c:610:59: note: the last parameter in the range is 'value'
static int config_parse_pair(const char *key, const char *value,
                                                          ^~~~~
/datasets/git/config.c:611:18: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
                          config_fn_t fn, void *data)
                                      ^
/datasets/git/config.c:613:8: warning: variable 'canonical_name' is not initialized [cppcoreguidelines-init-variables]
        char *canonical_name;
              ^
                             = NULL
/datasets/git/config.c:614:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/config.c:616:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strlen(key))
                         ^
                          {
/datasets/git/config.c:618:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (git_config_parse_key(key, &canonical_name, NULL))
                                                             ^
                                                              {
/datasets/git/config.c:627:23: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
                               config_fn_t fn, void *data)
                                           ^
/datasets/git/config.c:629:14: warning: variable 'value' is not initialized [cppcoreguidelines-init-variables]
        const char *value;
                    ^
                          = NULL
/datasets/git/config.c:630:18: warning: variable 'pair' is not initialized [cppcoreguidelines-init-variables]
        struct strbuf **pair;
                        ^
                             = NULL
/datasets/git/config.c:631:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/config.c:634:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!pair[0])
                     ^
                      {
/datasets/git/config.c:655:12: warning: function 'parse_config_env_list' has cognitive complexity of 32 (threshold 25) [readability-function-cognitive-complexity]
static int parse_config_env_list(char *env, config_fn_t fn, void *data)
           ^
/datasets/git/config.c:658:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (cur && *cur) {
        ^
/datasets/git/config.c:658:13: note: +1
        while (cur && *cur) {
                   ^
/datasets/git/config.c:660:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!key)
                ^
/datasets/git/config.c:664:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!cur || isspace(*cur)) {
                ^
/datasets/git/config.c:664:12: note: +1
                if (!cur || isspace(*cur)) {
                         ^
/datasets/git/config.c:666:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (git_config_parse_parameter(key, fn, data) < 0)
                        ^
/datasets/git/config.c:669:8: note: +1, nesting level increased to 2
                else if (*cur == '=') {
                     ^
/datasets/git/config.c:674:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (*cur == '\'') {
                        ^
/datasets/git/config.c:677:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!value || (cur && !isspace(*cur))) {
                                ^
/datasets/git/config.c:677:16: note: +1
                                if (!value || (cur && !isspace(*cur))) {
                                           ^
/datasets/git/config.c:677:24: note: +1
                                if (!value || (cur && !isspace(*cur))) {
                                                   ^
/datasets/git/config.c:681:11: note: +1, nesting level increased to 3
                        } else if (!*cur || isspace(*cur)) {
                               ^
/datasets/git/config.c:681:21: note: +1
                        } else if (!*cur || isspace(*cur)) {
                                         ^
/datasets/git/config.c:684:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/config.c:689:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (config_parse_pair(key, value, fn, data) < 0)
                        ^
/datasets/git/config.c:692:3: note: +1, nesting level increased to 2
                else {
                ^
/datasets/git/config.c:698:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (cur) {
                ^
/datasets/git/config.c:699:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (isspace(*cur))
                        ^
/datasets/git/config.c:655:57: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
static int parse_config_env_list(char *env, config_fn_t fn, void *data)
                                                        ^
/datasets/git/config.c:657:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        char *cur = env;
        ^
/datasets/git/config.c:658:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'cur' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (cur && *cur) {
               ^
/datasets/git/config.c:660:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!key)
                         ^
                          {
/datasets/git/config.c:664:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!cur || isspace(*cur)) {
                            ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/config.c:666:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (git_config_parse_parameter(key, fn, data) < 0)
                                                                          ^
                                                                           {
/datasets/git/config.c:671:16: warning: variable 'value' is not initialized [cppcoreguidelines-init-variables]
                        const char *value;
                                    ^
                                          = NULL
/datasets/git/config.c:677:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (!value || (cur && !isspace(*cur))) {
                                                       ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/config.c:681:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        } else if (!*cur || isspace(*cur)) {
                                            ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/config.c:689:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (config_parse_pair(key, value, fn, data) < 0)
                                                                        ^
                                                                         {
/datasets/git/config.c:699:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (isspace(*cur))
                        ^
/datasets/git/config.c:699:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'cur' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (isspace(*cur))
                               ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^
/datasets/git/./git-compat-util.h:1215:29: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                            ^
/datasets/git/config.c:699:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        while (isspace(*cur))
                               ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/config.c:699:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        while (isspace(*cur))
                                             ^
                                              {
/datasets/git/config.c:706:44: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
int git_config_from_parameters(config_fn_t fn, void *data)
                                           ^
/datasets/git/config.c:708:14: warning: variable 'env' is not initialized [cppcoreguidelines-init-variables]
        const char *env;
                    ^
                        = NULL
/datasets/git/config.c:715:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&source, 0, sizeof(source));
        ^~~~~~
/datasets/git/config.c:715:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&source, 0, sizeof(source));
        ^~~~~~
/datasets/git/config.c:720:8: warning: function is not thread safe [concurrency-mt-unsafe]
        env = getenv(CONFIG_COUNT_ENVIRONMENT);
              ^
/datasets/git/config.c:722:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                unsigned long count;
                ^
/datasets/git/config.c:722:17: warning: variable 'count' is not initialized [cppcoreguidelines-init-variables]
                unsigned long count;
                              ^
                                    = 0
/datasets/git/config.c:723:9: warning: variable 'endp' is not initialized [cppcoreguidelines-init-variables]
                char *endp;
                      ^
                           = NULL
/datasets/git/config.c:724:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/config.c:724:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/config.c:726:31: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                count = strtoul(env, &endp, 10);
                                            ^
/datasets/git/config.c:736:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < count; i++) {
                ^
/datasets/git/config.c:736:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'count' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < count; i++) {
                            ^
/datasets/git/config.c:737:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        const char *key, *value;
                        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/config.c:737:16: warning: variable 'key' is not initialized [cppcoreguidelines-init-variables]
                        const char *key, *value;
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/config.c:737:22: warning: variable 'value' is not initialized [cppcoreguidelines-init-variables]
                        const char *key, *value;
                                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/config.c:762:8: warning: function is not thread safe [concurrency-mt-unsafe]
        env = getenv(CONFIG_DATA_ENVIRONMENT);
              ^
/datasets/git/config.c:782:6: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        int c = cf->do_fgetc(cf);
            ^
/datasets/git/config.c:788:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (c != EOF)
                                     ^
                                      {
/datasets/git/config.c:806:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (c == '\n')
                      ^
                       {
/datasets/git/config.c:816:14: warning: function 'parse_value' has cognitive complexity of 29 (threshold 25) [readability-function-cognitive-complexity]
static char *parse_value(void)
             ^
/datasets/git/config.c:821:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (;;) {
        ^
/datasets/git/config.c:823:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (c == '\n') {
                ^
/datasets/git/config.c:824:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (quote) {
                        ^
/datasets/git/config.c:830:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (comment)
                ^
/datasets/git/config.c:832:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (isspace(c) && !quote) {
                ^
/datasets/git/config.c:832:18: note: +1
                if (isspace(c) && !quote) {
                               ^
/datasets/git/config.c:833:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (cf->value.len)
                        ^
/datasets/git/config.c:837:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!quote) {
                ^
/datasets/git/config.c:838:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (c == ';' || c == '#') {
                        ^
/datasets/git/config.c:838:17: note: +1
                        if (c == ';' || c == '#') {
                                     ^
/datasets/git/config.c:843:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (; space; space--)
                ^
/datasets/git/config.c:845:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (c == '\\') {
                ^
/datasets/git/config.c:847:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        switch (c) {
                        ^
/datasets/git/config.c:869:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (c == '"') {
                ^
/datasets/git/config.c:818:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int quote = 0, comment = 0, space = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/config.c:822:7: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                int c = get_next_char();
                    ^
/datasets/git/config.c:830:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (comment)
                            ^
                             {
/datasets/git/config.c:832:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (isspace(c) && !quote) {
                    ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/config.c:833:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (cf->value.len)
                                          ^
                                           {
/datasets/git/config.c:843:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (; space; space--)
                ^
/datasets/git/config.c:843:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (; space; space--)
                                      ^
                                       {
/datasets/git/config.c:877:34: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
static int get_value(config_fn_t fn, void *data, struct strbuf *name)
                                 ^
/datasets/git/config.c:879:6: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        int c;
            ^
              = 0
/datasets/git/config.c:879:6: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/config.c:880:8: warning: variable 'value' is not initialized [cppcoreguidelines-init-variables]
        char *value;
              ^
                    = NULL
/datasets/git/config.c:881:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/config.c:884:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/config.c:886:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cf->eof)
                            ^
                             {
/datasets/git/config.c:888:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!iskeychar(c))
                                  ^
                                   {
/datasets/git/config.c:893:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (c == ' ' || c == '\t')
        ^
/datasets/git/config.c:893:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (c == ' ' || c == '\t')
                                     ^
                                      {
/datasets/git/config.c:898:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (c != '=')
                             ^
                              {
/datasets/git/config.c:901:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
                            {
/datasets/git/config.c:911:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret >= 0)
                     ^
                      {
/datasets/git/config.c:916:59: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static int get_extended_base_var(struct strbuf *name, int c)
                                                          ^
/datasets/git/config.c:919:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        do {
        ^
/datasets/git/config.c:920:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (c == '\n')
                              ^
                               {
/datasets/git/config.c:923:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        } while (isspace(c));
                 ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/config.c:926:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (c != '"')
                     ^
                      {
/datasets/git/config.c:930:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/config.c:931:7: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                int c = get_next_char();
                    ^
/datasets/git/config.c:932:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (c == '\n')
                              ^
                               {
/datasets/git/config.c:934:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (c == '"')
                             ^
                              {
/datasets/git/config.c:938:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (c == '\n')
                                      ^
                                       {
/datasets/git/config.c:945:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_next_char() != ']')
                                   ^
                                    {
/datasets/git/config.c:956:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/config.c:957:7: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                int c = get_next_char();
                    ^
/datasets/git/config.c:958:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cf->eof)
                            ^
                             {
/datasets/git/config.c:960:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (c == ']')
                             ^
                              {
/datasets/git/config.c:962:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (isspace(c))
                    ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/config.c:962:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (isspace(c))
                               ^
                                {
/datasets/git/config.c:964:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!iskeychar(c) && c != '.')
                                              ^
                                               {
/datasets/git/config.c:970:8: warning: accessing fields in struct 'parse_event_data' is inefficient due to padding; only needs 20 bytes but is using 24 bytes [altera-struct-pack-align]
struct parse_event_data {
       ^
/datasets/git/config.c:970:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'parse_event_data'
/datasets/git/config.c:970:8: warning: accessing fields in struct 'parse_event_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct parse_event_data {
       ^
/datasets/git/config.c:970:8: note: use "__attribute__((aligned(32)))" to align struct 'parse_event_data' to 32 bytes
/datasets/git/config.c:978:9: warning: variable 'offset' is not initialized [cppcoreguidelines-init-variables]
        size_t offset;
               ^
                      = 0
/datasets/git/config.c:980:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!data->opts || !data->opts->event_fn)
                                                 ^
                                                  {
/datasets/git/config.c:984:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            data->previous_type == type)
                                        ^
                                         {
/datasets/git/config.c:993:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (type != CONFIG_EVENT_EOF)
                                     ^
                                      {
/datasets/git/config.c:998:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                 offset, data->opts->event_fn_data) < 0)
                                                                        ^
                                                                         {
/datasets/git/config.c:1007:12: warning: function 'git_parse_source' has cognitive complexity of 58 (threshold 25) [readability-function-cognitive-complexity]
static int git_parse_source(config_fn_t fn, void *data,
           ^
/datasets/git/config.c:1024:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (;;) {
        ^
/datasets/git/config.c:1028:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (bomptr && *bomptr) {
                ^
/datasets/git/config.c:1028:14: note: +1
                if (bomptr && *bomptr) {
                           ^
/datasets/git/config.c:1032:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (c == (*bomptr & 0377)) {
                        ^
/datasets/git/config.c:1035:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/config.c:1037:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (bomptr != utf8_bom)
                                ^
/datasets/git/config.c:1043:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (c == '\n') {
                ^
/datasets/git/config.c:1044:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (cf->eof) {
                        ^
/datasets/git/config.c:1045:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (do_event(CONFIG_EVENT_EOF, &event_data) < 0)
                                ^
/datasets/git/config.c:1049:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (do_event(CONFIG_EVENT_WHITESPACE, &event_data) < 0)
                        ^
/datasets/git/config.c:1054:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (comment)
                ^
/datasets/git/config.c:1056:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (isspace(c)) {
                ^
/datasets/git/config.c:1057:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (do_event(CONFIG_EVENT_WHITESPACE, &event_data) < 0)
                        ^
/datasets/git/config.c:1061:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (c == '#' || c == ';') {
                ^
/datasets/git/config.c:1061:16: note: +1
                if (c == '#' || c == ';') {
                             ^
/datasets/git/config.c:1062:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (do_event(CONFIG_EVENT_COMMENT, &event_data) < 0)
                        ^
/datasets/git/config.c:1067:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (c == '[') {
                ^
/datasets/git/config.c:1068:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (do_event(CONFIG_EVENT_SECTION, &event_data) < 0)
                        ^
/datasets/git/config.c:1073:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (get_base_var(var) < 0 || var->len < 1)
                        ^
/datasets/git/config.c:1073:30: note: +1
                        if (get_base_var(var) < 0 || var->len < 1)
                                                  ^
/datasets/git/config.c:1079:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!isalpha(c))
                ^
/datasets/git/config.c:1082:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (do_event(CONFIG_EVENT_ENTRY, &event_data) < 0)
                ^
/datasets/git/config.c:1092:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (get_value(fn, data, var) < 0)
                ^
/datasets/git/config.c:1096:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (do_event(CONFIG_EVENT_ERROR, &event_data) < 0)
        ^
/datasets/git/config.c:1099:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        switch (cf->origin_type) {
        ^
/datasets/git/config.c:1125:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        switch (opts && opts->error_action ?
        ^
/datasets/git/config.c:1125:37: note: +2, including nesting penalty of 1, nesting level increased to 2
        switch (opts && opts->error_action ?
                                           ^
/datasets/git/config.c:1125:15: note: +1
        switch (opts && opts->error_action ?
                     ^
/datasets/git/config.c:1007:41: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
static int git_parse_source(config_fn_t fn, void *data,
                                        ^
/datasets/git/config.c:1024:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/config.c:1025:7: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
                int c;
                    ^
                      = 0
/datasets/git/config.c:1025:7: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/config.c:1032:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (c == (*bomptr & 0377)) {
                                  ^~~~~~~
/datasets/git/config.c:1032:24: warning: 0377 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        if (c == (*bomptr & 0377)) {
                                            ^
/datasets/git/config.c:1035:6: warning: do not use 'else' after 'continue' [llvm-else-after-return,readability-else-after-return]
                        } else {
                          ^~~~~~
/datasets/git/config.c:1037:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (bomptr != utf8_bom)
                                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/config.c:1045:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (do_event(CONFIG_EVENT_EOF, &event_data) < 0)
                                                                                ^
                                                                                 {
/datasets/git/config.c:1049:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (do_event(CONFIG_EVENT_WHITESPACE, &event_data) < 0)
                                                                               ^
                                                                                {
/datasets/git/config.c:1054:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (comment)
                            ^
                             {
/datasets/git/config.c:1056:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (isspace(c)) {
                    ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/config.c:1057:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (do_event(CONFIG_EVENT_WHITESPACE, &event_data) < 0)
                                                                               ^
                                                                                {
/datasets/git/config.c:1062:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (do_event(CONFIG_EVENT_COMMENT, &event_data) < 0)
                                                                            ^
                                                                             {
/datasets/git/config.c:1068:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (do_event(CONFIG_EVENT_SECTION, &event_data) < 0)
                                                                            ^
                                                                             {
/datasets/git/config.c:1073:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (get_base_var(var) < 0 || var->len < 1)
                                                                  ^
                                                                   {
/datasets/git/config.c:1079:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!isalpha(c))
                     ^
/datasets/git/./git-compat-util.h:1219:20: note: expanded from macro 'isalpha'
#define isalpha(x) sane_istest(x,GIT_ALPHA)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/config.c:1079:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!isalpha(c))
                                ^
                                 {
/datasets/git/config.c:1082:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (do_event(CONFIG_EVENT_ENTRY, &event_data) < 0)
                                                                  ^
                                                                   {
/datasets/git/config.c:1092:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (get_value(fn, data, var) < 0)
                                                 ^
                                                  {
/datasets/git/config.c:1096:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (do_event(CONFIG_EVENT_ERROR, &event_data) < 0)
                                                          ^
                                                           {
/datasets/git/config.c:1147:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!*end)
                  ^
                   {
/datasets/git/config.c:1149:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (!strcasecmp(end, "k"))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/config.c:1149:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcasecmp(end, "k"))
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/config.c:1150:10: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                return 1024;
                       ^
/datasets/git/config.c:1151:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcasecmp(end, "m"))
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/config.c:1152:10: warning: performing an implicit widening conversion to type 'uintmax_t' (aka 'unsigned long') of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                return 1024 * 1024;
                       ^
/datasets/git/config.c:1152:10: note: make conversion explicit to silence this warning
                return 1024 * 1024;
                       ^~~~~~~~~~~
                       (uintmax_t)( )
/datasets/git/config.c:1152:10: note: perform multiplication in a wider type
                return 1024 * 1024;
                       ^~~~
                       (long)
/datasets/git/config.c:1152:10: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                return 1024 * 1024;
                       ^
/datasets/git/config.c:1152:17: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                return 1024 * 1024;
                              ^
/datasets/git/config.c:1153:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcasecmp(end, "g"))
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/config.c:1154:10: warning: performing an implicit widening conversion to type 'uintmax_t' (aka 'unsigned long') of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                return 1024 * 1024 * 1024;
                       ^
/datasets/git/config.c:1154:10: note: make conversion explicit to silence this warning
                return 1024 * 1024 * 1024;
                       ^~~~~~~~~~~~~~~~~~
                       (uintmax_t)(  )
/datasets/git/config.c:1154:10: note: perform multiplication in a wider type
                return 1024 * 1024 * 1024;
                       ^~~~~~~~~~~
                       (long)
/datasets/git/config.c:1154:10: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                return 1024 * 1024 * 1024;
                       ^
/datasets/git/config.c:1154:17: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                return 1024 * 1024 * 1024;
                              ^
/datasets/git/config.c:1154:24: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                return 1024 * 1024 * 1024;
                                     ^
/datasets/git/config.c:1161:9: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
                char *end;
                      ^
                          = NULL
/datasets/git/config.c:1162:12: warning: variable 'val' is not initialized [cppcoreguidelines-init-variables]
                intmax_t val;
                         ^
                             = 0
/datasets/git/config.c:1163:12: warning: variable 'factor' is not initialized [cppcoreguidelines-init-variables]
                intmax_t factor;
                         ^
                                = 0
/datasets/git/config.c:1165:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (max < 0)
                            ^
                             {
/datasets/git/config.c:1170:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (errno == ERANGE)
                                    ^
                                     {
/datasets/git/config.c:1176:12: warning: narrowing conversion from 'uintmax_t' (aka 'unsigned long') to signed type 'intmax_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                factor = get_unit_factor(end);
                         ^
/datasets/git/config.c:1197:9: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
                char *end;
                      ^
                          = NULL
/datasets/git/config.c:1198:13: warning: variable 'val' is not initialized [cppcoreguidelines-init-variables]
                uintmax_t val;
                          ^
                              = 0
/datasets/git/config.c:1199:13: warning: variable 'factor' is not initialized [cppcoreguidelines-init-variables]
                uintmax_t factor;
                          ^
                                 = 0
/datasets/git/config.c:1208:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (errno == ERANGE)
                                    ^
                                     {
/datasets/git/config.c:1234:11: warning: variable 'tmp' is not initialized [cppcoreguidelines-init-variables]
        intmax_t tmp;
                 ^
                     = 0
/datasets/git/config.c:1235:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!git_parse_signed(value, &tmp, maximum_signed_value_of_type(int)))
                                                                              ^
                                                                               {
/datasets/git/config.c:1237:9: warning: narrowing conversion from 'intmax_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        *ret = tmp;
               ^
/datasets/git/config.c:1243:11: warning: variable 'tmp' is not initialized [cppcoreguidelines-init-variables]
        intmax_t tmp;
                 ^
                     = 0
/datasets/git/config.c:1244:76: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!git_parse_signed(value, &tmp, maximum_signed_value_of_type(int64_t)))
                                                                                  ^
                                                                                   {
/datasets/git/config.c:1252:12: warning: variable 'tmp' is not initialized [cppcoreguidelines-init-variables]
        uintmax_t tmp;
                  ^
                      = 0
/datasets/git/config.c:1253:77: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!git_parse_unsigned(value, &tmp, maximum_unsigned_value_of_type(long)))
                                                                                   ^
                                                                                    {
/datasets/git/config.c:1261:11: warning: variable 'tmp' is not initialized [cppcoreguidelines-init-variables]
        intmax_t tmp;
                 ^
                     = 0
/datasets/git/config.c:1262:76: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!git_parse_signed(value, &tmp, maximum_signed_value_of_type(ssize_t)))
                                                                                  ^
                                                                                   {
/datasets/git/config.c:1275:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!value)
                   ^
                    {
/datasets/git/config.c:1278:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(cf && cf->name))
                              ^
                               {
/datasets/git/config.c:1305:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/config.c:1306:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!git_parse_int(value, &ret))
                                        ^
                                         {
/datasets/git/config.c:1313:10: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int64_t ret;
                ^
                    = 0
/datasets/git/config.c:1314:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!git_parse_int64(value, &ret))
                                          ^
                                           {
/datasets/git/config.c:1321:16: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        unsigned long ret;
                      ^
                          = 0
/datasets/git/config.c:1322:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!git_parse_ulong(value, &ret))
                                          ^
                                           {
/datasets/git/config.c:1329:10: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        ssize_t ret;
                ^
                    = 0
/datasets/git/config.c:1330:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!git_parse_ssize_t(value, &ret))
                                            ^
                                             {
/datasets/git/config.c:1337:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!value)
                   ^
                    {
/datasets/git/config.c:1339:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!*value)
                    ^
                     {
/datasets/git/config.c:1343:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            || !strcasecmp(value, "on"))
                                        ^
                                         {
/datasets/git/config.c:1347:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            || !strcasecmp(value, "off"))
                                         ^
                                          {
/datasets/git/config.c:1352:21: warning: accessing fields in struct 'fsync_component_name' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
static const struct fsync_component_name {
                    ^
/datasets/git/config.c:1352:21: note: use "__attribute__((aligned(16)))" to align struct 'fsync_component_name' to 16 bytes
/datasets/git/config.c:1361:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "objects", FSYNC_COMPONENTS_OBJECTS },
                     ^
/datasets/git/./refs/../cache.h:1011:35: note: expanded from macro 'FSYNC_COMPONENTS_OBJECTS'
#define FSYNC_COMPONENTS_OBJECTS (FSYNC_COMPONENT_LOOSE_OBJECT | \
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/config.c:1363:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "derived-metadata", FSYNC_COMPONENTS_DERIVED_METADATA },
                              ^
/datasets/git/./refs/../cache.h:1014:44: note: expanded from macro 'FSYNC_COMPONENTS_DERIVED_METADATA'
#define FSYNC_COMPONENTS_DERIVED_METADATA (FSYNC_COMPONENT_PACK_METADATA | \
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/config.c:1364:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "committed", FSYNC_COMPONENTS_COMMITTED },
                       ^
/datasets/git/./refs/../cache.h:1021:37: note: expanded from macro 'FSYNC_COMPONENTS_COMMITTED'
#define FSYNC_COMPONENTS_COMMITTED (FSYNC_COMPONENTS_OBJECTS | \
                                    ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./refs/../cache.h:1011:34: note: expanded from macro 'FSYNC_COMPONENTS_OBJECTS'
#define FSYNC_COMPONENTS_OBJECTS (FSYNC_COMPONENT_LOOSE_OBJECT | \
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/config.c:1365:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "added", FSYNC_COMPONENTS_ADDED },
                   ^
/datasets/git/./refs/../cache.h:1024:33: note: expanded from macro 'FSYNC_COMPONENTS_ADDED'
#define FSYNC_COMPONENTS_ADDED (FSYNC_COMPONENTS_COMMITTED | \
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./refs/../cache.h:1021:36: note: expanded from macro 'FSYNC_COMPONENTS_COMMITTED'
#define FSYNC_COMPONENTS_COMMITTED (FSYNC_COMPONENTS_OBJECTS | \
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/config.c:1366:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "all", FSYNC_COMPONENTS_ALL },
                 ^
/datasets/git/./refs/../cache.h:1027:31: note: expanded from macro 'FSYNC_COMPONENTS_ALL'
#define FSYNC_COMPONENTS_ALL (FSYNC_COMPONENT_LOOSE_OBJECT | \
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/config.c:1369:52: warning: 2 adjacent parameters of 'parse_fsync_components' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static enum fsync_component parse_fsync_components(const char *var, const char *string)
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/config.c:1369:64: note: the first parameter in the range is 'var'
static enum fsync_component parse_fsync_components(const char *var, const char *string)
                                                               ^~~
/datasets/git/config.c:1369:81: note: the last parameter in the range is 'string'
static enum fsync_component parse_fsync_components(const char *var, const char *string)
                                                                                ^~~~~~
/datasets/git/config.c:1371:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        enum fsync_component current = FSYNC_COMPONENTS_PLATFORM_DEFAULT;
                                       ^
/datasets/git/./refs/../cache.h:1035:43: note: expanded from macro 'FSYNC_COMPONENTS_PLATFORM_DEFAULT'
#define FSYNC_COMPONENTS_PLATFORM_DEFAULT FSYNC_COMPONENTS_DEFAULT
                                          ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./refs/../cache.h:1017:35: note: expanded from macro 'FSYNC_COMPONENTS_DEFAULT'
#define FSYNC_COMPONENTS_DEFAULT ((FSYNC_COMPONENTS_OBJECTS | \
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/config.c:1371:33: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
        enum fsync_component current = FSYNC_COMPONENTS_PLATFORM_DEFAULT;
                                       ^
/datasets/git/./refs/../cache.h:1035:43: note: expanded from macro 'FSYNC_COMPONENTS_PLATFORM_DEFAULT'
#define FSYNC_COMPONENTS_PLATFORM_DEFAULT FSYNC_COMPONENTS_DEFAULT
                                          ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./refs/../cache.h:1019:7: note: expanded from macro 'FSYNC_COMPONENTS_DEFAULT'
                                  ~FSYNC_COMPONENT_LOOSE_OBJECT)
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/config.c:1372:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        enum fsync_component positive = 0, negative = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/config.c:1369:69: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
static enum fsync_component parse_fsync_components(const char *var, const char *string)
                                                                    ^
/datasets/git/config.c:1374:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'string' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (string) {
               ^
/datasets/git/config.c:1375:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/config.c:1375:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/config.c:1376:10: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
                size_t len;
                       ^
                           = 0
/datasets/git/config.c:1377:15: warning: variable 'ep' is not initialized [cppcoreguidelines-init-variables]
                const char *ep;
                            ^
                               = NULL
/datasets/git/config.c:1377:15: warning: variable name 'ep' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/config.c:1393:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!len)
                                 ^
                                  {
/datasets/git/config.c:1397:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!len)
                         ^
                          {
/datasets/git/config.c:1400:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < ARRAY_SIZE(fsync_component_names); ++i) {
                ^
/datasets/git/config.c:1401:39: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
                        const struct fsync_component_name *n = &fsync_component_names[i];
                                                           ^
/datasets/git/config.c:1403:8: warning: function 'strncmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                        if (strncmp(n->name, string, len))
                            ^
                                                          != 0
/datasets/git/config.c:1403:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (strncmp(n->name, string, len))
                                                          ^
                                                           {
/datasets/git/config.c:1407:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (negated)
                                    ^
                                     {
/datasets/git/config.c:1409:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/config.c:1428:6: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
        int v = git_parse_maybe_bool_text(value);
            ^
/datasets/git/config.c:1429:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (0 <= v)
                   ^
                    {
/datasets/git/config.c:1431:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (git_parse_int(value, &v))
                                     ^
                                      {
/datasets/git/config.c:1438:6: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
        int v = git_parse_maybe_bool_text(value);
            ^
/datasets/git/config.c:1449:6: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
        int v = git_parse_maybe_bool(value);
            ^
/datasets/git/config.c:1450:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (v < 0)
                  ^
                   {
/datasets/git/config.c:1455:42: warning: 2 adjacent parameters of 'git_config_string' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
int git_config_string(const char **dest, const char *var, const char *value)
                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/config.c:1455:54: note: the first parameter in the range is 'var'
int git_config_string(const char **dest, const char *var, const char *value)
                                                     ^~~
/datasets/git/config.c:1455:71: note: the last parameter in the range is 'value'
int git_config_string(const char **dest, const char *var, const char *value)
                                                                      ^~~~~
/datasets/git/config.c:1457:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!value)
                   ^
                    {
/datasets/git/config.c:1463:44: warning: 2 adjacent parameters of 'git_config_pathname' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
int git_config_pathname(const char **dest, const char *var, const char *value)
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/config.c:1463:56: note: the first parameter in the range is 'var'
int git_config_pathname(const char **dest, const char *var, const char *value)
                                                       ^~~
/datasets/git/config.c:1463:73: note: the last parameter in the range is 'value'
int git_config_pathname(const char **dest, const char *var, const char *value)
                                                                        ^~~~~
/datasets/git/config.c:1465:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!value)
                   ^
                    {
/datasets/git/config.c:1468:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!*dest)
                   ^
                    {
/datasets/git/config.c:1475:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!value)
                   ^
                    {
/datasets/git/config.c:1477:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_expiry_date(value, timestamp))
                                                ^
                                                 {
/datasets/git/config.c:1483:34: warning: 2 adjacent parameters of 'git_config_color' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
int git_config_color(char *dest, const char *var, const char *value)
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/config.c:1483:46: note: the first parameter in the range is 'var'
int git_config_color(char *dest, const char *var, const char *value)
                                             ^~~
/datasets/git/config.c:1483:63: note: the last parameter in the range is 'value'
int git_config_color(char *dest, const char *var, const char *value)
                                                              ^~~~~
/datasets/git/config.c:1485:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!value)
                   ^
                    {
/datasets/git/config.c:1487:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (color_parse(value, dest) < 0)
                                         ^
                                          {
/datasets/git/config.c:1492:12: warning: function 'git_default_core_config' has cognitive complexity of 113 (threshold 25) [readability-function-cognitive-complexity]
static int git_default_core_config(const char *var, const char *value, void *cb)
           ^
/datasets/git/config.c:1495:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "core.filemode")) {
        ^
/datasets/git/config.c:1499:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "core.trustctime")) {
        ^
/datasets/git/config.c:1503:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "core.checkstat")) {
        ^
/datasets/git/config.c:1504:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcasecmp(value, "default"))
                ^
/datasets/git/config.c:1506:8: note: +1, nesting level increased to 2
                else if (!strcasecmp(value, "minimal"))
                     ^
/datasets/git/config.c:1510:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "core.quotepath")) {
        ^
/datasets/git/config.c:1515:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "core.symlinks")) {
        ^
/datasets/git/config.c:1520:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "core.ignorecase")) {
        ^
/datasets/git/config.c:1525:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "core.attributesfile"))
        ^
/datasets/git/config.c:1528:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "core.hookspath"))
        ^
/datasets/git/config.c:1531:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "core.bare")) {
        ^
/datasets/git/config.c:1536:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "core.ignorestat")) {
        ^
/datasets/git/config.c:1541:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "core.prefersymlinkrefs")) {
        ^
/datasets/git/config.c:1546:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "core.logallrefupdates")) {
        ^
/datasets/git/config.c:1547:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (value && !strcasecmp(value, "always"))
                ^
/datasets/git/config.c:1547:13: note: +1
                if (value && !strcasecmp(value, "always"))
                          ^
/datasets/git/config.c:1549:8: note: +1, nesting level increased to 2
                else if (git_config_bool(var, value))
                     ^
/datasets/git/config.c:1551:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/config.c:1556:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "core.warnambiguousrefs")) {
        ^
/datasets/git/config.c:1561:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "core.abbrev")) {
        ^
/datasets/git/config.c:1562:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!value)
                ^
/datasets/git/config.c:1564:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcasecmp(value, "auto"))
                ^
/datasets/git/config.c:1566:8: note: +1, nesting level increased to 2
                else if (!git_parse_maybe_bool_text(value))
                     ^
/datasets/git/config.c:1568:3: note: +1, nesting level increased to 2
                else {
                ^
/datasets/git/config.c:1570:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (abbrev < minimum_abbrev || abbrev > the_hash_algo->hexsz)
                        ^
/datasets/git/config.c:1570:32: note: +1
                        if (abbrev < minimum_abbrev || abbrev > the_hash_algo->hexsz)
                                                    ^
/datasets/git/config.c:1577:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "core.disambiguate"))
        ^
/datasets/git/config.c:1580:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "core.loosecompression")) {
        ^
/datasets/git/config.c:1582:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (level == -1)
                ^
/datasets/git/config.c:1584:8: note: +1, nesting level increased to 2
                else if (level < 0 || level > Z_BEST_COMPRESSION)
                     ^
/datasets/git/config.c:1584:22: note: +1
                else if (level < 0 || level > Z_BEST_COMPRESSION)
                                   ^
/datasets/git/config.c:1591:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "core.compression")) {
        ^
/datasets/git/config.c:1593:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (level == -1)
                ^
/datasets/git/config.c:1595:8: note: +1, nesting level increased to 2
                else if (level < 0 || level > Z_BEST_COMPRESSION)
                     ^
/datasets/git/config.c:1595:22: note: +1
                else if (level < 0 || level > Z_BEST_COMPRESSION)
                                   ^
/datasets/git/config.c:1597:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!zlib_compression_seen)
                ^
/datasets/git/config.c:1599:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!pack_compression_seen)
                ^
/datasets/git/config.c:1604:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "core.packedgitwindowsize")) {
        ^
/datasets/git/config.c:1610:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (packed_git_window_size < 1)
                ^
/datasets/git/config.c:1616:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "core.bigfilethreshold")) {
        ^
/datasets/git/config.c:1621:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "core.packedgitlimit")) {
        ^
/datasets/git/config.c:1626:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "core.deltabasecachelimit")) {
        ^
/datasets/git/config.c:1631:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "core.autocrlf")) {
        ^
/datasets/git/config.c:1632:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (value && !strcasecmp(value, "input")) {
                ^
/datasets/git/config.c:1632:13: note: +1
                if (value && !strcasecmp(value, "input")) {
                          ^
/datasets/git/config.c:1640:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "core.safecrlf")) {
        ^
/datasets/git/config.c:1642:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (value && !strcasecmp(value, "warn")) {
                ^
/datasets/git/config.c:1642:13: note: +1
                if (value && !strcasecmp(value, "warn")) {
                          ^
/datasets/git/config.c:1647:42: note: +2, including nesting penalty of 1, nesting level increased to 2
                global_conv_flags_eol = eol_rndtrp_die ?
                                                       ^
/datasets/git/config.c:1652:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "core.eol")) {
        ^
/datasets/git/config.c:1653:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (value && !strcasecmp(value, "lf"))
                ^
/datasets/git/config.c:1653:13: note: +1
                if (value && !strcasecmp(value, "lf"))
                          ^
/datasets/git/config.c:1655:8: note: +1, nesting level increased to 2
                else if (value && !strcasecmp(value, "crlf"))
                     ^
/datasets/git/config.c:1655:18: note: +1
                else if (value && !strcasecmp(value, "crlf"))
                               ^
/datasets/git/config.c:1657:8: note: +1, nesting level increased to 2
                else if (value && !strcasecmp(value, "native"))
                     ^
/datasets/git/config.c:1657:18: note: +1
                else if (value && !strcasecmp(value, "native"))
                               ^
/datasets/git/config.c:1659:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/config.c:1664:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "core.checkroundtripencoding")) {
        ^
/datasets/git/config.c:1669:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "core.notesref")) {
        ^
/datasets/git/config.c:1674:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "core.editor"))
        ^
/datasets/git/config.c:1677:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "core.commentchar")) {
        ^
/datasets/git/config.c:1678:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!value)
                ^
/datasets/git/config.c:1680:8: note: +1, nesting level increased to 2
                else if (!strcasecmp(value, "auto"))
                     ^
/datasets/git/config.c:1682:8: note: +1, nesting level increased to 2
                else if (value[0] && !value[1]) {
                     ^
/datasets/git/config.c:1682:21: note: +1
                else if (value[0] && !value[1]) {
                                  ^
/datasets/git/config.c:1685:5: note: +1, nesting level increased to 2
                } else
                  ^
/datasets/git/config.c:1690:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "core.askpass"))
        ^
/datasets/git/config.c:1693:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "core.excludesfile"))
        ^
/datasets/git/config.c:1696:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "core.whitespace")) {
        ^
/datasets/git/config.c:1697:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!value)
                ^
/datasets/git/config.c:1703:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "core.fsync")) {
        ^
/datasets/git/config.c:1704:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!value)
                ^
/datasets/git/config.c:1710:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "core.fsyncmethod")) {
        ^
/datasets/git/config.c:1711:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!value)
                ^
/datasets/git/config.c:1713:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(value, "fsync"))
                ^
/datasets/git/config.c:1715:8: note: +1, nesting level increased to 2
                else if (!strcmp(value, "writeout-only"))
                     ^
/datasets/git/config.c:1717:8: note: +1, nesting level increased to 2
                else if (!strcmp(value, "batch"))
                     ^
/datasets/git/config.c:1719:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/config.c:1724:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "core.fsyncobjectfiles")) {
        ^
/datasets/git/config.c:1725:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (fsync_object_files < 0)
                ^
/datasets/git/config.c:1731:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "core.preloadindex")) {
        ^
/datasets/git/config.c:1736:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "core.createobject")) {
        ^
/datasets/git/config.c:1737:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(value, "rename"))
                ^
/datasets/git/config.c:1739:8: note: +1, nesting level increased to 2
                else if (!strcmp(value, "link"))
                     ^
/datasets/git/config.c:1741:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/config.c:1746:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "core.sparsecheckout")) {
        ^
/datasets/git/config.c:1751:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "core.sparsecheckoutcone")) {
        ^
/datasets/git/config.c:1756:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "core.precomposeunicode")) {
        ^
/datasets/git/config.c:1761:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "core.protecthfs")) {
        ^
/datasets/git/config.c:1766:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "core.protectntfs")) {
        ^
/datasets/git/config.c:1771:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "core.usereplacerefs")) {
        ^
/datasets/git/config.c:1492:78: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int git_default_core_config(const char *var, const char *value, void *cb)
                                                                             ^
/datasets/git/config.c:1504:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcasecmp(value, "default"))
                                                  ^
                                                   {
/datasets/git/config.c:1506:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcasecmp(value, "minimal"))
                                                       ^
                                                        {
/datasets/git/config.c:1525:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(var, "core.attributesfile"))
                                                ^
                                                 {
/datasets/git/config.c:1528:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(var, "core.hookspath"))
                                           ^
                                            {
/datasets/git/config.c:1547:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (value && !strcasecmp(value, "always"))
                                                          ^
                                                           {
/datasets/git/config.c:1549:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (git_config_bool(var, value))
                                                     ^
                                                      {
/datasets/git/config.c:1551:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/config.c:1562:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
                            {
/datasets/git/config.c:1564:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcasecmp(value, "auto"))
                                               ^
                                                {
/datasets/git/config.c:1566:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!git_parse_maybe_bool_text(value))
                                                           ^
                                                            {
/datasets/git/config.c:1570:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (abbrev < minimum_abbrev || abbrev > the_hash_algo->hexsz)
                                                                                     ^
                                                                                      {
/datasets/git/config.c:1577:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(var, "core.disambiguate"))
                                              ^
                                               {
/datasets/git/config.c:1582:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (level == -1)
                                ^
                                 {
/datasets/git/config.c:1584:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (level < 0 || level > Z_BEST_COMPRESSION)
                                                                 ^
                                                                  {
/datasets/git/config.c:1593:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (level == -1)
                                ^
                                 {
/datasets/git/config.c:1595:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (level < 0 || level > Z_BEST_COMPRESSION)
                                                                 ^
                                                                  {
/datasets/git/config.c:1597:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!zlib_compression_seen)
                                           ^
                                            {
/datasets/git/config.c:1599:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!pack_compression_seen)
                                           ^
                                            {
/datasets/git/config.c:1610:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (packed_git_window_size < 1)
                                               ^
                                                {
/datasets/git/config.c:1641:7: warning: variable 'eol_rndtrp_die' is not initialized [cppcoreguidelines-init-variables]
                int eol_rndtrp_die;
                    ^
                                   = 0
/datasets/git/config.c:1643:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        global_conv_flags_eol = CONV_EOL_RNDTRP_WARN;
                                                ^
/datasets/git/./convert.h:14:32: note: expanded from macro 'CONV_EOL_RNDTRP_WARN'
#define CONV_EOL_RNDTRP_WARN  (1<<1) /* Warn if CRLF to LF to CRLF is different */
                               ^
/datasets/git/config.c:1648:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        CONV_EOL_RNDTRP_DIE : 0;
                        ^
/datasets/git/./convert.h:13:32: note: expanded from macro 'CONV_EOL_RNDTRP_DIE'
#define CONV_EOL_RNDTRP_DIE   (1<<0) /* Die if CRLF to LF to CRLF is different */
                               ^
/datasets/git/config.c:1653:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (value && !strcasecmp(value, "lf"))
                                                      ^
                                                       {
/datasets/git/config.c:1655:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (value && !strcasecmp(value, "crlf"))
                                                             ^
                                                              {
/datasets/git/config.c:1657:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (value && !strcasecmp(value, "native"))
                                                               ^
                                                                {
/datasets/git/config.c:1659:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/config.c:1674:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(var, "core.editor"))
                                        ^
                                         {
/datasets/git/config.c:1678:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
                            {
/datasets/git/config.c:1680:3: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                else if (!strcasecmp(value, "auto"))
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/config.c:1680:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcasecmp(value, "auto"))
                                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/config.c:1685:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/config.c:1690:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(var, "core.askpass"))
                                         ^
                                          {
/datasets/git/config.c:1693:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(var, "core.excludesfile"))
                                              ^
                                               {
/datasets/git/config.c:1697:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
                            {
/datasets/git/config.c:1704:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
                            {
/datasets/git/config.c:1711:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
                            {
/datasets/git/config.c:1713:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(value, "fsync"))
                                            ^
                                             {
/datasets/git/config.c:1715:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(value, "writeout-only"))
                                                         ^
                                                          {
/datasets/git/config.c:1717:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(value, "batch"))
                                                 ^
                                                  {
/datasets/git/config.c:1719:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/config.c:1725:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fsync_object_files < 0)
                                           ^
                                            {
/datasets/git/config.c:1737:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(value, "rename"))
                                             ^
                                              {
/datasets/git/config.c:1739:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(value, "link"))
                                                ^
                                                 {
/datasets/git/config.c:1741:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/config.c:1793:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(var, "i18n.commitencoding"))
                                                ^
                                                 {
/datasets/git/config.c:1796:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(var, "i18n.logoutputencoding"))
                                                   ^
                                                    {
/datasets/git/config.c:1809:5: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                } else if (value && !strcmp(value, "inherit")) {
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/config.c:1820:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
                            {
/datasets/git/config.c:1822:3: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                else if (!strcmp(value, "never"))
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/config.c:1822:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(value, "never"))
                                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/config.c:1824:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(value, "local"))
                                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/config.c:1826:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(value, "remote"))
                                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/config.c:1828:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(value, "always"))
                                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/config.c:1830:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/config.c:1842:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
                            {
/datasets/git/config.c:1844:3: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                else if (!strcmp(value, "nothing"))
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/config.c:1844:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(value, "nothing"))
                                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/config.c:1846:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(value, "matching"))
                                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/config.c:1848:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(value, "simple"))
                                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/config.c:1850:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(value, "upstream"))
                                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/config.c:1851:4: warning: repeated branch in conditional chain [bugprone-branch-clone]
                        push_default = PUSH_DEFAULT_UPSTREAM;
                        ^
/datasets/git/config.c:1851:40: note: end of the original
                        push_default = PUSH_DEFAULT_UPSTREAM;
                                                            ^
/datasets/git/config.c:1853:4: note: clone 1 starts here
                        push_default = PUSH_DEFAULT_UPSTREAM;
                        ^
/datasets/git/config.c:1852:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(value, "tracking")) /* deprecated */
                                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/config.c:1854:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(value, "current"))
                                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/config.c:1870:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(var, "mailmap.file"))
                                         ^
                                          {
/datasets/git/config.c:1872:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(var, "mailmap.blob"))
                                         ^
                                          {
/datasets/git/config.c:1879:66: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
int git_default_config(const char *var, const char *value, void *cb)
                                                                 ^
/datasets/git/config.c:1881:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (starts_with(var, "core."))
                                      ^
                                       {
/datasets/git/config.c:1886:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            starts_with(var, "committer."))
                                           ^
                                            {
/datasets/git/config.c:1889:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (starts_with(var, "i18n."))
                                      ^
                                       {
/datasets/git/config.c:1892:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (starts_with(var, "branch."))
                                        ^
                                         {
/datasets/git/config.c:1895:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (starts_with(var, "push."))
                                      ^
                                       {
/datasets/git/config.c:1898:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (starts_with(var, "mailmap."))
                                         ^
                                          {
/datasets/git/config.c:1901:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (starts_with(var, "advice.") || starts_with(var, "color.advice"))
                                                                            ^
                                                                             {
/datasets/git/config.c:1916:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (level == -1)
                                ^
                                 {
/datasets/git/config.c:1918:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (level < 0 || level > Z_BEST_COMPRESSION)
                                                                 ^
                                                                  {
/datasets/git/config.c:1925:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (starts_with(var, "sparse."))
                                        ^
                                         {
/datasets/git/config.c:1937:66: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
static int do_config_from(struct config_source *top, config_fn_t fn, void *data,
                                                                 ^
/datasets/git/config.c:1940:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/config.c:1947:27: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        strbuf_init(&top->value, 1024);
                                 ^
/datasets/git/config.c:1948:25: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        strbuf_init(&top->var, 1024);
                               ^
/datasets/git/config.c:1961:44: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
static int do_config_from_file(config_fn_t fn,
                                           ^
/datasets/git/config.c:1963:3: warning: 2 adjacent parameters of 'do_config_from_file' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                const char *name, const char *path, FILE *f,
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/config.c:1963:15: note: the first parameter in the range is 'name'
                const char *name, const char *path, FILE *f,
                            ^~~~
/datasets/git/config.c:1963:33: note: the last parameter in the range is 'path'
                const char *name, const char *path, FILE *f,
                                              ^~~~
/datasets/git/config.c:1963:45: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
                const char *name, const char *path, FILE *f,
                                                          ^
/datasets/git/config.c:1967:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/config.c:1984:46: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
static int git_config_from_stdin(config_fn_t fn, void *data)
                                             ^
/datasets/git/config.c:1990:51: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
int git_config_from_file_with_options(config_fn_t fn, const char *filename,
                                                  ^
/datasets/git/config.c:1995:8: warning: variable 'f' is not initialized [cppcoreguidelines-init-variables]
        FILE *f;
              ^
                = NULL
/datasets/git/config.c:1995:8: warning: variable name 'f' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/config.c:1997:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!filename)
                      ^
                       {
/datasets/git/config.c:2003:3: warning: the value returned by this function should be used [cert-err33-c]
                fclose(f);
                ^~~~~~~~~
/datasets/git/config.c:2003:3: note: cast the expression to void to silence this warning
/datasets/git/config.c:2008:38: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
int git_config_from_file(config_fn_t fn, const char *filename, void *data)
                                     ^
/datasets/git/config.c:2013:37: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
int git_config_from_mem(config_fn_t fn,
                                    ^
/datasets/git/config.c:2015:4: warning: 2 adjacent parameters of 'git_config_from_mem' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                        const char *name, const char *buf, size_t len,
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/config.c:2015:16: note: the first parameter in the range is 'name'
                        const char *name, const char *buf, size_t len,
                                    ^~~~
/datasets/git/config.c:2015:34: note: the last parameter in the range is 'buf'
                        const char *name, const char *buf, size_t len,
                                                      ^~~
/datasets/git/config.c:2034:42: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
int git_config_from_blob_oid(config_fn_t fn,
                                         ^
/datasets/git/config.c:2040:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/config.c:2041:8: warning: variable 'buf' is not initialized [cppcoreguidelines-init-variables]
        char *buf;
              ^
                  = NULL
/datasets/git/config.c:2042:16: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size;
                      ^
                           = 0
/datasets/git/config.c:2043:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/config.c:2046:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!buf)
                 ^
                  {
/datasets/git/config.c:2060:49: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
static int git_config_from_blob_ref(config_fn_t fn,
                                                ^
/datasets/git/config.c:2067:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_get_oid(repo, name, &oid) < 0)
                                               ^
                                                {
/datasets/git/config.c:2074:40: warning: function is not thread safe [concurrency-mt-unsafe]
        char *system_config = xstrdup_or_null(getenv("GIT_CONFIG_SYSTEM"));
                                              ^
/datasets/git/config.c:2075:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!system_config)
                           ^
                            {
/datasets/git/config.c:2081:24: warning: 2 adjacent parameters of 'git_global_config' of similar type ('char **') are easily swapped by mistake [bugprone-easily-swappable-parameters]
void git_global_config(char **user_out, char **xdg_out)
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/config.c:2081:31: note: the first parameter in the range is 'user_out'
void git_global_config(char **user_out, char **xdg_out)
                              ^~~~~~~~
/datasets/git/config.c:2081:48: note: the last parameter in the range is 'xdg_out'
void git_global_config(char **user_out, char **xdg_out)
                                               ^~~~~~~
/datasets/git/config.c:2083:38: warning: function is not thread safe [concurrency-mt-unsafe]
        char *user_config = xstrdup_or_null(getenv("GIT_CONFIG_GLOBAL"));
                                            ^
/datasets/git/config.c:2099:30: warning: parameter name 'k' is too short, expected at least 3 characters [readability-identifier-length]
int git_env_bool(const char *k, int def)
                             ^
/datasets/git/config.c:2101:14: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
        const char *v = getenv(k);
                    ^
/datasets/git/config.c:2101:18: warning: function is not thread safe [concurrency-mt-unsafe]
        const char *v = getenv(k);
                        ^
/datasets/git/config.c:2109:41: warning: parameter name 'k' is too short, expected at least 3 characters [readability-identifier-length]
unsigned long git_env_ulong(const char *k, unsigned long val)
                                        ^
/datasets/git/config.c:2111:14: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
        const char *v = getenv(k);
                    ^
/datasets/git/config.c:2111:18: warning: function is not thread safe [concurrency-mt-unsafe]
        const char *v = getenv(k);
                        ^
/datasets/git/config.c:2112:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (v && !git_parse_ulong(v, &val))
                                           ^
                                            {
/datasets/git/config.c:2123:19: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
                                  config_fn_t fn, void *data)
                                              ^
/datasets/git/config.c:2129:8: warning: variable 'repo_config' is not initialized [cppcoreguidelines-init-variables]
        char *repo_config;
              ^
                          = NULL
/datasets/git/config.c:2132:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->commondir)
                            ^
                             {
/datasets/git/config.c:2134:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (opts->git_dir)
                               ^
                                {
/datasets/git/config.c:2136:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/config.c:2142:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                           opts->system_gently ? ACCESS_EACCES_OK : 0))
                                                 ^
/datasets/git/./git-compat-util.h:1455:27: note: expanded from macro 'ACCESS_EACCES_OK'
#define ACCESS_EACCES_OK (1U << 0)
                          ^     ~
/datasets/git/config.c:2142:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                           opts->system_gently ? ACCESS_EACCES_OK : 0))
                                                                       ^
                                                                        {
/datasets/git/config.c:2148:53: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (xdg_config && !access_or_die(xdg_config, R_OK, ACCESS_EACCES_OK))
                                                           ^
/datasets/git/./git-compat-util.h:1455:27: note: expanded from macro 'ACCESS_EACCES_OK'
#define ACCESS_EACCES_OK (1U << 0)
                          ^     ~
/datasets/git/config.c:2148:71: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (xdg_config && !access_or_die(xdg_config, R_OK, ACCESS_EACCES_OK))
                                                                             ^
                                                                              {
/datasets/git/config.c:2151:55: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (user_config && !access_or_die(user_config, R_OK, ACCESS_EACCES_OK))
                                                             ^
/datasets/git/./git-compat-util.h:1455:27: note: expanded from macro 'ACCESS_EACCES_OK'
#define ACCESS_EACCES_OK (1U << 0)
                          ^     ~
/datasets/git/config.c:2151:73: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (user_config && !access_or_die(user_config, R_OK, ACCESS_EACCES_OK))
                                                                               ^
                                                                                {
/datasets/git/config.c:2156:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !access_or_die(repo_config, R_OK, 0))
                                                 ^
                                                  {
/datasets/git/config.c:2162:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!access_or_die(path, R_OK, 0))
                                                  ^
                                                   {
/datasets/git/config.c:2168:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opts->ignore_cmdline && git_config_from_parameters(fn, data) < 0)
                                                                              ^
                                                                               {
/datasets/git/config.c:2179:37: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
int config_with_options(config_fn_t fn, void *data,
                                    ^
/datasets/git/config.c:2184:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/config.c:2195:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (config_source)
                          ^
                           {
/datasets/git/config.c:2217:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FREE_AND_NULL(inc.remote_urls);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/config.c:2222:47: warning: parameter name 'cs' is too short, expected at least 3 characters [readability-identifier-length]
static void configset_iter(struct config_set *cs, config_fn_t fn, void *data)
                                              ^
/datasets/git/config.c:2222:63: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
static void configset_iter(struct config_set *cs, config_fn_t fn, void *data)
                                                              ^
/datasets/git/config.c:2224:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, value_index;
        ^~~~~~~~~~~~~~~~~~~
/datasets/git/config.c:2227:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct configset_list *list = &cs->list;
        ^
/datasets/git/config.c:2224:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, value_index;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/config.c:2224:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/config.c:2224:9: warning: variable 'value_index' is not initialized [cppcoreguidelines-init-variables]
        int i, value_index;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/config.c:2225:22: warning: variable 'values' is not initialized [cppcoreguidelines-init-variables]
        struct string_list *values;
                            ^
                                   = NULL
/datasets/git/config.c:2226:29: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
        struct config_set_element *entry;
                                   ^
                                         = NULL
/datasets/git/config.c:2229:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < list->nr; i++) {
        ^
/datasets/git/config.c:2229:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'list' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < list->nr; i++) {
                    ^
/datasets/git/config.c:2236:67: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fn(entry->key, values->items[value_index].string, data) < 0)
                                                                                ^
                                                                                 {
/datasets/git/config.c:2245:36: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
void read_early_config(config_fn_t cb, void *data)
                                   ^
/datasets/git/config.c:2279:41: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
void read_very_early_config(config_fn_t cb, void *data)
                                        ^
/datasets/git/config.c:2292:77: warning: parameter name 'cs' is too short, expected at least 3 characters [readability-identifier-length]
static struct config_set_element *configset_find_element(struct config_set *cs, const char *key)
                                                                            ^
/datasets/git/config.c:2294:28: warning: variable name 'k' is too short, expected at least 3 characters [readability-identifier-length]
        struct config_set_element k;
                                  ^
/datasets/git/config.c:2295:29: warning: variable 'found_entry' is not initialized [cppcoreguidelines-init-variables]
        struct config_set_element *found_entry;
                                   ^
                                               = NULL
/datasets/git/config.c:2296:8: warning: variable 'normalized_key' is not initialized [cppcoreguidelines-init-variables]
        char *normalized_key;
              ^
                             = NULL
/datasets/git/config.c:2301:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (git_config_parse_key(key, &normalized_key, NULL))
                                                             ^
                                                              {
/datasets/git/config.c:2311:51: warning: parameter name 'cs' is too short, expected at least 3 characters [readability-identifier-length]
static int configset_add_value(struct config_set *cs, const char *key, const char *value)
                                                  ^
/datasets/git/config.c:2311:55: warning: 2 adjacent parameters of 'configset_add_value' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int configset_add_value(struct config_set *cs, const char *key, const char *value)
                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/config.c:2311:67: note: the first parameter in the range is 'key'
static int configset_add_value(struct config_set *cs, const char *key, const char *value)
                                                                  ^~~
/datasets/git/config.c:2311:84: note: the last parameter in the range is 'value'
static int configset_add_value(struct config_set *cs, const char *key, const char *value)
                                                                                   ^~~~~
/datasets/git/config.c:2313:29: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct config_set_element *e;
                                   ^
                                     = NULL
/datasets/git/config.c:2313:29: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/config.c:2314:27: warning: variable 'si' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *si;
                                 ^
                                    = NULL
/datasets/git/config.c:2314:27: warning: variable name 'si' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/config.c:2315:30: warning: variable 'l_item' is not initialized [cppcoreguidelines-init-variables]
        struct configset_list_item *l_item;
                                    ^
                                           = NULL
/datasets/git/config.c:2332:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(cs->list.items, cs->list.nr + 1, cs->list.alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/config.c:2335:24: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        l_item->value_index = e->value_list.nr - 1;
                              ^
/datasets/git/config.c:2337:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!cf)
                ^
                 {
/datasets/git/config.c:2356:7: warning: 2 adjacent parameters of 'config_set_element_cmp' of similar type ('const struct hashmap_entry *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                  const struct hashmap_entry *eptr,
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/config.c:2356:35: note: the first parameter in the range is 'eptr'
                                  const struct hashmap_entry *eptr,
                                                              ^~~~
/datasets/git/config.c:2357:35: note: the last parameter in the range is 'entry_or_key'
                                  const struct hashmap_entry *entry_or_key,
                                                              ^~~~~~~~~~~~
/datasets/git/config.c:2360:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const struct config_set_element *e1, *e2;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/config.c:2360:35: warning: variable 'e1' is not initialized [cppcoreguidelines-init-variables]
        const struct config_set_element *e1, *e2;
                                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/config.c:2360:35: warning: variable name 'e1' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/config.c:2360:40: warning: variable 'e2' is not initialized [cppcoreguidelines-init-variables]
        const struct config_set_element *e1, *e2;
                                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/config.c:2360:40: warning: variable name 'e2' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/config.c:2368:44: warning: parameter name 'cs' is too short, expected at least 3 characters [readability-identifier-length]
void git_configset_init(struct config_set *cs)
                                           ^
/datasets/git/config.c:2377:45: warning: parameter name 'cs' is too short, expected at least 3 characters [readability-identifier-length]
void git_configset_clear(struct config_set *cs)
                                            ^
/datasets/git/config.c:2379:29: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
        struct config_set_element *entry;
                                   ^
                                         = NULL
/datasets/git/config.c:2381:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!cs->hash_initialized)
                                  ^
                                   {
/datasets/git/config.c:2384:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        hashmap_for_each_entry(&cs->config_hash, &iter, entry,
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/config.c:2384:50: warning: backward branch (for loop) is ID-dependent due to variable reference to 'entry' and may cause performance degradation [altera-id-dependent-backward-branch]
        hashmap_for_each_entry(&cs->config_hash, &iter, entry,
                                                        ^
/datasets/git/config.c:2397:74: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int config_set_callback(const char *key, const char *value, void *cb)
                                                                         ^
/datasets/git/config.c:2399:21: warning: variable name 'cs' is too short, expected at least 3 characters [readability-identifier-length]
        struct config_set *cs = cb;
                           ^
/datasets/git/config.c:2404:47: warning: parameter name 'cs' is too short, expected at least 3 characters [readability-identifier-length]
int git_configset_add_file(struct config_set *cs, const char *filename)
                                              ^
/datasets/git/config.c:2409:48: warning: parameter name 'cs' is too short, expected at least 3 characters [readability-identifier-length]
int git_configset_get_value(struct config_set *cs, const char *key, const char **value)
                                               ^
/datasets/git/config.c:2419:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!values)
                    ^
                     {
/datasets/git/config.c:2426:76: warning: parameter name 'cs' is too short, expected at least 3 characters [readability-identifier-length]
const struct string_list *git_configset_get_value_multi(struct config_set *cs, const char *key)
                                                                           ^
/datasets/git/config.c:2428:29: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
        struct config_set_element *e = configset_find_element(cs, key);
                                   ^
/datasets/git/config.c:2432:49: warning: parameter name 'cs' is too short, expected at least 3 characters [readability-identifier-length]
int git_configset_get_string(struct config_set *cs, const char *key, char **dest)
                                                ^
/datasets/git/config.c:2434:14: warning: variable 'value' is not initialized [cppcoreguidelines-init-variables]
        const char *value;
                    ^
                          = NULL
/datasets/git/config.c:2435:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!git_configset_get_value(cs, key, &value))
                                                      ^
                                                       {
/datasets/git/config.c:2437:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else
        ^~~~
                        return 1
/datasets/git/config.c:2437:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/config.c:2441:60: warning: parameter name 'cs' is too short, expected at least 3 characters [readability-identifier-length]
static int git_configset_get_string_tmp(struct config_set *cs, const char *key,
                                                           ^
/datasets/git/config.c:2444:14: warning: variable 'value' is not initialized [cppcoreguidelines-init-variables]
        const char *value;
                    ^
                          = NULL
/datasets/git/config.c:2446:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
                            {
/datasets/git/config.c:2450:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else {
          ^~~~~~
/datasets/git/config.c:2455:46: warning: parameter name 'cs' is too short, expected at least 3 characters [readability-identifier-length]
int git_configset_get_int(struct config_set *cs, const char *key, int *dest)
                                             ^
/datasets/git/config.c:2457:14: warning: variable 'value' is not initialized [cppcoreguidelines-init-variables]
        const char *value;
                    ^
                          = NULL
/datasets/git/config.c:2461:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else
          ^~~~
                        return 1
/datasets/git/config.c:2461:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/config.c:2465:48: warning: parameter name 'cs' is too short, expected at least 3 characters [readability-identifier-length]
int git_configset_get_ulong(struct config_set *cs, const char *key, unsigned long *dest)
                                               ^
/datasets/git/config.c:2467:14: warning: variable 'value' is not initialized [cppcoreguidelines-init-variables]
        const char *value;
                    ^
                          = NULL
/datasets/git/config.c:2471:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else
          ^~~~
                        return 1
/datasets/git/config.c:2471:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/config.c:2475:47: warning: parameter name 'cs' is too short, expected at least 3 characters [readability-identifier-length]
int git_configset_get_bool(struct config_set *cs, const char *key, int *dest)
                                              ^
/datasets/git/config.c:2477:14: warning: variable 'value' is not initialized [cppcoreguidelines-init-variables]
        const char *value;
                    ^
                          = NULL
/datasets/git/config.c:2481:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else
          ^~~~
                        return 1
/datasets/git/config.c:2481:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/config.c:2485:54: warning: parameter name 'cs' is too short, expected at least 3 characters [readability-identifier-length]
int git_configset_get_bool_or_int(struct config_set *cs, const char *key,
                                                     ^
/datasets/git/config.c:2488:14: warning: variable 'value' is not initialized [cppcoreguidelines-init-variables]
        const char *value;
                    ^
                          = NULL
/datasets/git/config.c:2492:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else
          ^~~~
                        return 1
/datasets/git/config.c:2492:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/config.c:2496:53: warning: parameter name 'cs' is too short, expected at least 3 characters [readability-identifier-length]
int git_configset_get_maybe_bool(struct config_set *cs, const char *key, int *dest)
                                                    ^
/datasets/git/config.c:2498:14: warning: variable 'value' is not initialized [cppcoreguidelines-init-variables]
        const char *value;
                    ^
                          = NULL
/datasets/git/config.c:2501:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*dest == -1)
                                ^
                                 {
/datasets/git/config.c:2504:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else
          ^~~~
                        return 1
/datasets/git/config.c:2504:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/config.c:2508:51: warning: parameter name 'cs' is too short, expected at least 3 characters [readability-identifier-length]
int git_configset_get_pathname(struct config_set *cs, const char *key, const char **dest)
                                                  ^
/datasets/git/config.c:2510:14: warning: variable 'value' is not initialized [cppcoreguidelines-init-variables]
        const char *value;
                    ^
                          = NULL
/datasets/git/config.c:2511:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!git_configset_get_value(cs, key, &value))
                                                      ^
                                                       {
/datasets/git/config.c:2513:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else
        ^~~~
                        return 1
/datasets/git/config.c:2513:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/config.c:2526:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!repo->config)
                          ^
                           {
/datasets/git/config.c:2528:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/config.c:2533:78: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (config_with_options(config_set_callback, repo->config, NULL, &opts) < 0)
                                                                                    ^
                                                                                     {
/datasets/git/config.c:2550:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo->config && repo->config->hash_initialized)
                                                           ^
                                                            {
/datasets/git/config.c:2557:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!repo->config || !repo->config->hash_initialized)
                                                             ^
                                                              {
/datasets/git/config.c:2562:55: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
void repo_config(struct repository *repo, config_fn_t fn, void *data)
                                                      ^
/datasets/git/config.c:2585:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/config.c:2588:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret < 0)
                    ^
                     {
/datasets/git/config.c:2596:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/config.c:2599:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret < 0)
                    ^
                     {
/datasets/git/config.c:2642:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/config.c:2645:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret < 0)
                    ^
                     {
/datasets/git/config.c:2664:39: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
void git_protected_config(config_fn_t fn, void *data)
                                      ^
/datasets/git/config.c:2666:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!protected_config.hash_initialized)
                                               ^
                                                {
/datasets/git/config.c:2672:29: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
void git_config(config_fn_t fn, void *data)
                            ^
/datasets/git/config.c:2735:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/config.c:2737:6: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (strcmp(*output, "now")) {
            ^
                                   != 0
/datasets/git/config.c:2739:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (approxidate(*output) >= now)
                                                ^
                                                 {
/datasets/git/config.c:2747:14: warning: variable 'expiry_string' is not initialized [cppcoreguidelines-init-variables]
        const char *expiry_string;
                    ^
                                  = NULL
/datasets/git/config.c:2748:11: warning: variable 'days' is not initialized [cppcoreguidelines-init-variables]
        intmax_t days;
                 ^
                      = 0
/datasets/git/config.c:2749:14: warning: variable 'when' is not initialized [cppcoreguidelines-init-variables]
        timestamp_t when;
                    ^
                         = 0
/datasets/git/config.c:2751:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (git_config_get_string_tmp(key, &expiry_string))
                                                           ^
                                                            {
/datasets/git/config.c:2769:6: warning: variable 'val' is not initialized [cppcoreguidelines-init-variables]
        int val;
            ^
                = 0
/datasets/git/config.c:2771:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!git_config_get_maybe_bool("core.splitindex", &val))
                                                                ^
                                                                 {
/datasets/git/config.c:2782:26: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (0 <= val && val <= 100)
                                       ^
/datasets/git/config.c:2782:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (0 <= val && val <= 100)
                                           ^
                                            {
/datasets/git/config.c:2794:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int is_bool, val;
        ^~~~~~~~~~~~~~~~~
/datasets/git/config.c:2794:6: warning: variable 'is_bool' is not initialized [cppcoreguidelines-init-variables]
        int is_bool, val;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/config.c:2794:15: warning: variable 'val' is not initialized [cppcoreguidelines-init-variables]
        int is_bool, val;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/config.c:2796:8: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        val = git_env_ulong("GIT_TEST_INDEX_THREADS", 0);
              ^
/datasets/git/config.c:2803:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_bool)
                            ^
                             {
/datasets/git/config.c:2805:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/config.c:2816:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!filename)
                      ^
                       {
/datasets/git/config.c:2818:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/config.c:2824:21: warning: 2 adjacent parameters of 'git_die_config' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
void git_die_config(const char *key, const char *err, ...)
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/config.c:2824:33: note: the first parameter in the range is 'key'
void git_die_config(const char *key, const char *err, ...)
                                ^~~
/datasets/git/config.c:2824:50: note: the last parameter in the range is 'err'
void git_die_config(const char *key, const char *err, ...)
                                                 ^~~
/datasets/git/config.c:2826:28: warning: variable 'values' is not initialized [cppcoreguidelines-init-variables]
        const struct string_list *values;
                                  ^
                                         = NULL
/datasets/git/config.c:2827:25: warning: variable 'kv_info' is not initialized [cppcoreguidelines-init-variables]
        struct key_value_info *kv_info;
                               ^
                                       = NULL
/datasets/git/config.c:2845:8: warning: accessing fields in struct 'config_store_data' is inefficient due to padding; only needs 84 bytes but is using 88 bytes [altera-struct-pack-align]
struct config_store_data {
       ^
/datasets/git/config.c:2845:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'config_store_data'
/datasets/git/config.c:2845:8: warning: accessing fields in struct 'config_store_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct config_store_data {
       ^
/datasets/git/config.c:2845:8: note: use "__attribute__((aligned(128)))" to align struct 'config_store_data' to 128 bytes
/datasets/git/config.c:2852:2: warning: accessing fields in struct '' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
        struct {
        ^
/datasets/git/config.c:2852:2: note: use "__attribute__((aligned(32)))" to align struct '' to 32 bytes
/datasets/git/config.c:2871:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(store, 0, sizeof(*store));
        ^~~~~~
/datasets/git/config.c:2871:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(store, 0, sizeof(*store));
        ^~~~~~
/datasets/git/config.c:2874:20: warning: 2 adjacent parameters of 'matches' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int matches(const char *key, const char *value,
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/config.c:2874:32: note: the first parameter in the range is 'key'
static int matches(const char *key, const char *value,
                               ^~~
/datasets/git/config.c:2874:49: note: the last parameter in the range is 'value'
static int matches(const char *key, const char *value,
                                                ^~~~~
/datasets/git/config.c:2877:6: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (strcmp(key, store->key))
            ^
                                    != 0
/datasets/git/config.c:2877:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strcmp(key, store->key))
                                    ^
                                     {
/datasets/git/config.c:2879:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (store->fixed_value)
                               ^
                                {
/datasets/git/config.c:2881:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!store->value_pattern)
                                  ^
                                   {
/datasets/git/config.c:2883:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (store->value_pattern == CONFIG_REGEX_NONE)
                                                      ^
                                                       {
/datasets/git/config.c:2886:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return store->do_not_match ^
               ^~~~~~~~~~~~~~~~~~~
/datasets/git/config.c:2890:12: warning: function 'store_aux_event' has cognitive complexity of 30 (threshold 25) [readability-function-cognitive-complexity]
static int store_aux_event(enum config_event_t type,
           ^
/datasets/git/config.c:2895:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        ALLOC_GROW(store->parsed, store->parsed_nr + 1, store->parsed_alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/config.c:2895:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        ALLOC_GROW(store->parsed, store->parsed_nr + 1, store->parsed_alloc);
        ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/config.c:2895:2: note: +3, including nesting penalty of 2, nesting level increased to 3
        ALLOC_GROW(store->parsed, store->parsed_nr + 1, store->parsed_alloc);
        ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/config.c:2895:2: note: +1, nesting level increased to 3
        ALLOC_GROW(store->parsed, store->parsed_nr + 1, store->parsed_alloc);
        ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/config.c:2900:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (type == CONFIG_EVENT_SECTION) {
        ^
/datasets/git/config.c:2903:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (cf->var.len < 2 || cf->var.buf[cf->var.len - 1] != '.')
                ^
/datasets/git/config.c:2903:23: note: +1
                if (cf->var.len < 2 || cf->var.buf[cf->var.len - 1] != '.')
                                    ^
/datasets/git/config.c:2906:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (cf->subsection_case_sensitive)
                ^
/datasets/git/config.c:2908:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/config.c:2914:38: note: +1
                        cf->var.len - 1 == store->baselen &&
                                                          ^
/datasets/git/config.c:2916:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (store->is_keys_section) {
                ^
/datasets/git/config.c:2918:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        ALLOC_GROW(store->seen, store->seen_nr + 1,
                        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/config.c:2918:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        ALLOC_GROW(store->seen, store->seen_nr + 1,
                        ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/config.c:2918:4: note: +5, including nesting penalty of 4, nesting level increased to 5
                        ALLOC_GROW(store->seen, store->seen_nr + 1,
                        ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/config.c:2918:4: note: +1, nesting level increased to 5
                        ALLOC_GROW(store->seen, store->seen_nr + 1,
                        ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/config.c:2895:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(store->parsed, store->parsed_nr + 1, store->parsed_alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/config.c:2901:9: warning: variable 'cmpfn' is not initialized [cppcoreguidelines-init-variables]
                int (*cmpfn)(const char *, const char *, size_t);
                      ^
                            = NULL
/datasets/git/config.c:2903:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cf->var.len < 2 || cf->var.buf[cf->var.len - 1] != '.')
                                                                           ^
                                                                            {
/datasets/git/config.c:2906:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cf->subsection_case_sensitive)
                                                  ^
                                                   {
/datasets/git/config.c:2908:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/config.c:2918:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        ALLOC_GROW(store->seen, store->seen_nr + 1,
                        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/config.c:2929:12: warning: function 'store_aux' has cognitive complexity of 33 (threshold 25) [readability-function-cognitive-complexity]
static int store_aux(const char *key, const char *value, void *cb)
           ^
/datasets/git/config.c:2933:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (store->key_seen) {
        ^
/datasets/git/config.c:2934:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (matches(key, value, store)) {
                ^
/datasets/git/config.c:2935:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (store->seen_nr == 1 && store->multi_replace == 0) {
                        ^
/datasets/git/config.c:2935:28: note: +1
                        if (store->seen_nr == 1 && store->multi_replace == 0) {
                                                ^
/datasets/git/config.c:2939:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        ALLOC_GROW(store->seen, store->seen_nr + 1,
                        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/config.c:2939:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        ALLOC_GROW(store->seen, store->seen_nr + 1,
                        ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/config.c:2939:4: note: +5, including nesting penalty of 4, nesting level increased to 5
                        ALLOC_GROW(store->seen, store->seen_nr + 1,
                        ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/config.c:2939:4: note: +1, nesting level increased to 5
                        ALLOC_GROW(store->seen, store->seen_nr + 1,
                        ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/config.c:2945:9: note: +1, nesting level increased to 1
        } else if (store->is_keys_section) {
               ^
/datasets/git/config.c:2950:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                ALLOC_GROW(store->seen, store->seen_nr + 1, store->seen_alloc);
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/config.c:2950:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                ALLOC_GROW(store->seen, store->seen_nr + 1, store->seen_alloc);
                ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/config.c:2950:3: note: +4, including nesting penalty of 3, nesting level increased to 4
                ALLOC_GROW(store->seen, store->seen_nr + 1, store->seen_alloc);
                ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/config.c:2950:3: note: +1, nesting level increased to 4
                ALLOC_GROW(store->seen, store->seen_nr + 1, store->seen_alloc);
                ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/config.c:2954:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (matches(key, value, store)) {
                ^
/datasets/git/config.c:2929:64: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int store_aux(const char *key, const char *value, void *cb)
                                                               ^
/datasets/git/config.c:2939:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        ALLOC_GROW(store->seen, store->seen_nr + 1,
                        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/config.c:2950:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                ALLOC_GROW(store->seen, store->seen_nr + 1, store->seen_alloc);
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/config.c:2974:14: warning: variable 'dot' is not initialized [cppcoreguidelines-init-variables]
        const char *dot;
                    ^
                        = NULL
/datasets/git/config.c:2975:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i;
               ^
                 = 0
/datasets/git/config.c:2975:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/config.c:2976:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/config.c:2975:2: note: inferred assignment of ID-dependent value from ID-dependent variable dot [altera-id-dependent-backward-branch]
        size_t i;
        ^
/datasets/git/config.c:2981:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = dot - key + 1; i < store->baselen; i++) {
                ^
/datasets/git/config.c:2981:27: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = dot - key + 1; i < store->baselen; i++) {
                                        ^
/datasets/git/config.c:2982:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (key[i] == '"' || key[i] == '\\')
                                                            ^
                                                             {
/datasets/git/config.c:2996:34: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
static ssize_t write_section(int fd, const char *key,
                                 ^
/datasets/git/config.c:2999:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = store_create_section(key, store);
                      ^
/datasets/git/config.c:3000:10: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        ssize_t ret;
                ^
                    = 0
/datasets/git/config.c:3008:31: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
static ssize_t write_pair(int fd, const char *key, const char *value,
                              ^
/datasets/git/config.c:3008:35: warning: 2 adjacent parameters of 'write_pair' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static ssize_t write_pair(int fd, const char *key, const char *value,
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/config.c:3008:47: note: the first parameter in the range is 'key'
static ssize_t write_pair(int fd, const char *key, const char *value,
                                              ^~~
/datasets/git/config.c:3008:64: note: the last parameter in the range is 'value'
static ssize_t write_pair(int fd, const char *key, const char *value,
                                                               ^~~~~
/datasets/git/config.c:3011:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/config.c:3011:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/config.c:3012:10: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        ssize_t ret;
                ^
                    = 0
/datasets/git/config.c:3014:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/config.c:3023:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (value[0] == ' ')
                            ^
                             {
/datasets/git/config.c:3025:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; value[i]; i++)
        ^
/datasets/git/config.c:3025:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; value[i]; i++)
                                  ^
                                   {
/datasets/git/config.c:3026:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (value[i] == ';' || value[i] == '#')
                                                       ^
                                                        {
/datasets/git/config.c:3028:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (i && value[i - 1] == ' ')
                                     ^
                                      {
/datasets/git/config.c:3033:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; value[i]; i++)
        ^
/datasets/git/config.c:3033:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; value[i]; i++)
                                  ^
                                   {
/datasets/git/config.c:3066:13: warning: function 'maybe_remove_section' has cognitive complexity of 29 (threshold 25) [readability-function-cognitive-complexity]
static void maybe_remove_section(struct config_store_data *store,
            ^
/datasets/git/config.c:3078:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = store->seen[seen]; i > 0; i--) {
        ^
/datasets/git/config.c:3081:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (type == CONFIG_EVENT_COMMENT)
                ^
/datasets/git/config.c:3084:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (type == CONFIG_EVENT_ENTRY) {
                ^
/datasets/git/config.c:3085:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!section_seen)
                        ^
/datasets/git/config.c:3091:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (type == CONFIG_EVENT_SECTION) {
                ^
/datasets/git/config.c:3092:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!store->parsed[i - 1].is_keys_section)
                        ^
/datasets/git/config.c:3104:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = store->seen[seen] + 1; i < store->parsed_nr; i++) {
        ^
/datasets/git/config.c:3107:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (type == CONFIG_EVENT_COMMENT)
                ^
/datasets/git/config.c:3109:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (type == CONFIG_EVENT_SECTION) {
                ^
/datasets/git/config.c:3110:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (store->parsed[i].is_keys_section)
                        ^
/datasets/git/config.c:3114:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (type == CONFIG_EVENT_ENTRY) {
                ^
/datasets/git/config.c:3115:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (++seen < store->seen_nr &&
                        ^
/datasets/git/config.c:3115:32: note: +1
                        if (++seen < store->seen_nr &&
                                                    ^
/datasets/git/config.c:3131:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (i < store->parsed_nr)
        ^
/datasets/git/config.c:3133:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/config.c:3067:6: warning: 2 adjacent parameters of 'maybe_remove_section' of similar type ('size_t *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                 size_t *begin_offset, size_t *end_offset,
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/config.c:3067:14: note: the first parameter in the range is 'begin_offset'
                                 size_t *begin_offset, size_t *end_offset,
                                         ^~~~~~~~~~~~
/datasets/git/config.c:3067:36: note: the last parameter in the range is 'end_offset'
                                 size_t *begin_offset, size_t *end_offset,
                                                               ^~~~~~~~~~
/datasets/git/config.c:3070:9: warning: variable 'begin' is not initialized [cppcoreguidelines-init-variables]
        size_t begin;
               ^
                     = 0
/datasets/git/config.c:3071:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, seen, section_seen = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/config.c:3071:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/config.c:3071:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, seen, section_seen = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/config.c:3071:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/config.c:3071:9: warning: variable 'seen' is not initialized [cppcoreguidelines-init-variables]
        int i, seen, section_seen = 0;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/config.c:3078:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = store->seen[seen]; i > 0; i--) {
        ^
/datasets/git/config.c:3071:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int i, seen, section_seen = 0;
        ^
/datasets/git/config.c:3078:11: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        for (i = store->seen[seen]; i > 0; i--) {
                 ^
/datasets/git/config.c:3078:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = store->seen[seen]; i > 0; i--) {
                                    ^
/datasets/git/config.c:3081:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (type == CONFIG_EVENT_COMMENT)
                                                 ^
                                                  {
/datasets/git/config.c:3085:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!section_seen)
                                          ^
                                           {
/datasets/git/config.c:3092:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!store->parsed[i - 1].is_keys_section)
                                                                  ^
                                                                   {
/datasets/git/config.c:3104:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = store->seen[seen] + 1; i < store->parsed_nr; i++) {
        ^
/datasets/git/config.c:3104:11: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        for (i = store->seen[seen] + 1; i < store->parsed_nr; i++) {
                 ^
/datasets/git/config.c:3104:34: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = store->seen[seen] + 1; i < store->parsed_nr; i++) {
                                        ^
/datasets/git/config.c:3107:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (type == CONFIG_EVENT_COMMENT)
                                                 ^
                                                  {
/datasets/git/config.c:3110:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (store->parsed[i].is_keys_section)
                                                             ^
                                                              {
/datasets/git/config.c:3116:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            i == store->seen[seen])
                                                   ^
                                                    {
/datasets/git/config.c:3131:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (i < store->parsed_nr)
                                 ^
                                  {
/datasets/git/config.c:3133:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/config.c:3154:56: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int repo_config_set_worktree_gently(struct repository *r,
                                                       ^
/datasets/git/config.c:3200:5: warning: function 'git_config_set_multivar_in_file_gently' has cognitive complexity of 149 (threshold 25) [readability-function-cognitive-complexity]
int git_config_set_multivar_in_file_gently(const char *config_filename,
    ^
/datasets/git/config.c:3217:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ret)
        ^
/datasets/git/config.c:3222:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!config_filename)
        ^
/datasets/git/config.c:3230:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (fd < 0) {
        ^
/datasets/git/config.c:3233:3: note: +1
                goto out_free;
                ^
/datasets/git/config.c:3240:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ( in_fd < 0 ) {
        ^
/datasets/git/config.c:3241:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ( ENOENT != errno ) {
                ^
/datasets/git/config.c:3244:4: note: +1
                        goto out_free;
                        ^
/datasets/git/config.c:3247:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!value) {
                ^
/datasets/git/config.c:3249:4: note: +1
                        goto out_free;
                        ^
/datasets/git/config.c:3254:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (write_section(fd, key, &store) < 0 ||
                ^
/datasets/git/config.c:3254:42: note: +1
                if (write_section(fd, key, &store) < 0 ||
                                                       ^
/datasets/git/config.c:3257:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/config.c:3263:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!value_pattern)
                ^
/datasets/git/config.c:3265:8: note: +1, nesting level increased to 2
                else if (value_pattern == CONFIG_REGEX_NONE)
                     ^
/datasets/git/config.c:3267:8: note: +1, nesting level increased to 2
                else if (flags & CONFIG_FLAGS_FIXED_VALUE)
                     ^
/datasets/git/config.c:3269:3: note: +1, nesting level increased to 2
                else {
                ^
/datasets/git/config.c:3270:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (value_pattern[0] == '!') {
                        ^
/datasets/git/config.c:3273:6: note: +1, nesting level increased to 3
                        } else
                          ^
/datasets/git/config.c:3277:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (regcomp(store.value_pattern, value_pattern,
                        ^
/datasets/git/config.c:3280:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                FREE_AND_NULL(store.value_pattern);
                                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/config.c:3282:5: note: +1
                                goto out_free;
                                ^
/datasets/git/config.c:3286:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                ALLOC_GROW(store.parsed, 1, store.parsed_alloc);
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/config.c:3286:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                ALLOC_GROW(store.parsed, 1, store.parsed_alloc);
                ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/config.c:3286:3: note: +4, including nesting penalty of 3, nesting level increased to 4
                ALLOC_GROW(store.parsed, 1, store.parsed_alloc);
                ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/config.c:3286:3: note: +1, nesting level increased to 4
                ALLOC_GROW(store.parsed, 1, store.parsed_alloc);
                ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/config.c:3301:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (git_config_from_file_with_options(store_aux,
                ^
/datasets/git/config.c:3306:4: note: +1
                        goto out_free;
                        ^
/datasets/git/config.c:3310:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((store.seen_nr == 0 && value == NULL) ||
                ^
/datasets/git/config.c:3310:45: note: +1
                if ((store.seen_nr == 0 && value == NULL) ||
                                                          ^
/datasets/git/config.c:3310:27: note: +1
                if ((store.seen_nr == 0 && value == NULL) ||
                                        ^
/datasets/git/config.c:3311:26: note: +1
                    (store.seen_nr > 1 && !store.multi_replace)) {
                                       ^
/datasets/git/config.c:3313:4: note: +1
                        goto out_free;
                        ^
/datasets/git/config.c:3316:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (fstat(in_fd, &st) == -1) {
                ^
/datasets/git/config.c:3319:4: note: +1
                        goto out_free;
                        ^
/datasets/git/config.c:3325:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (contents == MAP_FAILED) {
                ^
/datasets/git/config.c:3326:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (errno == ENODEV && S_ISDIR(st.st_mode))
                        ^
/datasets/git/config.c:3326:24: note: +1
                        if (errno == ENODEV && S_ISDIR(st.st_mode))
                                            ^
/datasets/git/config.c:3332:4: note: +1
                        goto out_free;
                        ^
/datasets/git/config.c:3337:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (chmod(get_lock_file_path(&lock), st.st_mode & 07777) < 0) {
                ^
/datasets/git/config.c:3340:4: note: +1
                        goto out_free;
                        ^
/datasets/git/config.c:3343:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (store.seen_nr == 0) {
                ^
/datasets/git/config.c:3344:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!store.seen_alloc) {
                        ^
/datasets/git/config.c:3346:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                ALLOC_GROW(store.seen, 1, store.seen_alloc);
                                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/config.c:3346:5: note: +5, including nesting penalty of 4, nesting level increased to 5
                                ALLOC_GROW(store.seen, 1, store.seen_alloc);
                                ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/config.c:3346:5: note: +6, including nesting penalty of 5, nesting level increased to 6
                                ALLOC_GROW(store.seen, 1, store.seen_alloc);
                                ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/config.c:3346:5: note: +1, nesting level increased to 6
                                ALLOC_GROW(store.seen, 1, store.seen_alloc);
                                ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/config.c:3353:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0, copy_begin = 0; i < store.seen_nr; i++) {
                ^
/datasets/git/config.c:3358:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!store.key_seen) {
                        ^
/datasets/git/config.c:3361:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (copy_end > 0 && copy_end < contents_sz &&
                                ^
/datasets/git/config.c:3362:40: note: +1
                                    contents[copy_end - 1] != '\n' &&
                                                                   ^
/datasets/git/config.c:3366:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/config.c:3369:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!value)
                                ^
/datasets/git/config.c:3377:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                while (copy_end > 0 ) {
                                ^
/datasets/git/config.c:3380:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (isspace(c) && c != '\n')
                                        ^
/datasets/git/config.c:3380:21: note: +1
                                        if (isspace(c) && c != '\n')
                                                       ^
/datasets/git/config.c:3382:6: note: +1, nesting level increased to 5
                                        else
                                        ^
/datasets/git/config.c:3387:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (copy_end > 0 && contents[copy_end-1] != '\n')
                        ^
/datasets/git/config.c:3387:21: note: +1
                        if (copy_end > 0 && contents[copy_end-1] != '\n')
                                         ^
/datasets/git/config.c:3391:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (copy_end > copy_begin) {
                        ^
/datasets/git/config.c:3392:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (write_in_full(fd, contents + copy_begin,
                                ^
/datasets/git/config.c:3395:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (new_line &&
                                ^
/datasets/git/config.c:3395:18: note: +1
                                if (new_line &&
                                             ^
/datasets/git/config.c:3403:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (value) {
                ^
/datasets/git/config.c:3404:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!store.section_seen) {
                        ^
/datasets/git/config.c:3405:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (write_section(fd, key, &store) < 0)
                                ^
/datasets/git/config.c:3408:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (write_pair(fd, key, value, &store) < 0)
                        ^
/datasets/git/config.c:3413:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (copy_begin < contents_sz)
                ^
/datasets/git/config.c:3414:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (write_in_full(fd, contents + copy_begin,
                        ^
/datasets/git/config.c:3422:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (commit_lock_file(&lock) < 0) {
        ^
/datasets/git/config.c:3425:3: note: +1
                goto out_free;
                ^
/datasets/git/config.c:3436:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (contents)
        ^
/datasets/git/config.c:3438:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (in_fd >= 0)
        ^
/datasets/git/config.c:3445:2: note: +1
        goto out_free;
        ^
/datasets/git/config.c:3200:44: warning: 2 adjacent parameters of 'git_config_set_multivar_in_file_gently' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
int git_config_set_multivar_in_file_gently(const char *config_filename,
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/config.c:3200:56: note: the first parameter in the range is 'config_filename'
int git_config_set_multivar_in_file_gently(const char *config_filename,
                                                       ^~~~~~~~~~~~~~~
/datasets/git/config.c:3201:21: note: the last parameter in the range is 'key'
                                           const char *key, const char *value,
                                                       ^~~
/datasets/git/config.c:3201:26: warning: 2 adjacent parameters of 'git_config_set_multivar_in_file_gently' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                           const char *key, const char *value,
                                                            ^~~~~~~~~~~~~~~~~~
/datasets/git/config.c:3201:38: note: the first parameter in the range is 'value'
                                           const char *key, const char *value,
                                                                        ^~~~~
/datasets/git/config.c:3202:21: note: the last parameter in the range is 'value_pattern'
                                           const char *value_pattern,
                                                       ^~~~~~~~~~~~~
/datasets/git/config.c:3205:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int fd = -1, in_fd = -1;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/config.c:3205:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
        int fd = -1, in_fd = -1;
            ^
/datasets/git/config.c:3206:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/config.c:3210:9: warning: variable 'contents_sz' is not initialized [cppcoreguidelines-init-variables]
        size_t contents_sz;
               ^
                           = 0
/datasets/git/config.c:3213:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&store, 0, sizeof(store));
        ^~~~~~
/datasets/git/config.c:3213:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&store, 0, sizeof(store));
        ^~~~~~
/datasets/git/config.c:3217:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/config.c:3220:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        store.multi_replace = (flags & CONFIG_FLAGS_MULTI_REPLACE) != 0;
                               ^
/datasets/git/config.c:3220:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        store.multi_replace = (flags & CONFIG_FLAGS_MULTI_REPLACE) != 0;
                                       ^
/datasets/git/./config.h:294:37: note: expanded from macro 'CONFIG_FLAGS_MULTI_REPLACE'
#define CONFIG_FLAGS_MULTI_REPLACE (1 << 0)
                                    ^
/datasets/git/config.c:3222:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!config_filename)
                             ^
                              {
/datasets/git/config.c:3239:40: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
        in_fd = open(config_filename, O_RDONLY);
                                              ^
                                               | O_CLOEXEC
/datasets/git/config.c:3255:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    write_pair(fd, key, value, &store) < 0)
                                                           ^
                                                            {
/datasets/git/config.c:3258:15: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                struct stat st;
                            ^
/datasets/git/config.c:3259:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                size_t copy_begin, copy_end;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/config.c:3259:10: warning: variable 'copy_begin' is not initialized [cppcoreguidelines-init-variables]
                size_t copy_begin, copy_end;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/config.c:3259:22: warning: variable 'copy_end' is not initialized [cppcoreguidelines-init-variables]
                size_t copy_begin, copy_end;
                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/config.c:3260:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int i, new_line = 0;
                ^~~~~~~~~~~~~~~~~~~~
/datasets/git/config.c:3260:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i, new_line = 0;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/config.c:3260:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/config.c:3263:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value_pattern)
                                   ^
                                    {
/datasets/git/config.c:3265:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (value_pattern == CONFIG_REGEX_NONE)
                                                            ^
                                                             {
/datasets/git/config.c:3267:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                else if (flags & CONFIG_FLAGS_FIXED_VALUE)
                         ^
/datasets/git/config.c:3267:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                else if (flags & CONFIG_FLAGS_FIXED_VALUE)
                                 ^
/datasets/git/./config.h:301:35: note: expanded from macro 'CONFIG_FLAGS_FIXED_VALUE'
#define CONFIG_FLAGS_FIXED_VALUE (1 << 1)
                                  ^
/datasets/git/config.c:3267:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (flags & CONFIG_FLAGS_FIXED_VALUE)
                                                          ^
                                                           {
/datasets/git/config.c:3273:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        } else
                              ^
                               {
/datasets/git/config.c:3280:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                FREE_AND_NULL(store.value_pattern);
                                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/config.c:3286:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                ALLOC_GROW(store.parsed, 1, store.parsed_alloc);
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/config.c:3289:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(&opts, 0, sizeof(opts));
                ^~~~~~
/datasets/git/config.c:3289:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(&opts, 0, sizeof(opts));
                ^~~~~~
/datasets/git/config.c:3326:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (errno == ENODEV && S_ISDIR(st.st_mode))
                                                                   ^
                                                                    {
/datasets/git/config.c:3337:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (chmod(get_lock_file_path(&lock), st.st_mode & 07777) < 0) {
                                                     ^            ~~~~~
/datasets/git/config.c:3337:53: warning: 07777 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (chmod(get_lock_file_path(&lock), st.st_mode & 07777) < 0) {
                                                                  ^
/datasets/git/config.c:3346:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                ALLOC_GROW(store.seen, 1, store.seen_alloc);
                                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/config.c:3354:11: warning: variable 'replace_end' is not initialized [cppcoreguidelines-init-variables]
                        size_t replace_end;
                               ^
                                           = 0
/datasets/git/config.c:3355:8: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
                        int j = store.seen[i];
                            ^
/datasets/git/config.c:3355:12: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        int j = store.seen[i];
                                ^
/datasets/git/config.c:3363:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                    contents[copy_end] == '\n')
                                                               ^
                                                                {
/datasets/git/config.c:3369:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!value)
                                           ^
                                            {
/datasets/git/config.c:3377:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                while (copy_end > 0 ) {
                                ^
/datasets/git/config.c:3377:12: warning: backward branch (while loop) is ID-dependent due to variable reference to 'copy_end' and may cause performance degradation [altera-id-dependent-backward-branch]
                                while (copy_end > 0 ) {
                                       ^
/datasets/git/config.c:3378:11: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                                        char c = contents[copy_end - 1];
                                             ^
/datasets/git/config.c:3380:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        if (isspace(c) && c != '\n')
                                            ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/config.c:3380:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        if (isspace(c) && c != '\n')
                                                                    ^
                                                                     {
/datasets/git/config.c:3382:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        else
                                            ^
                                             {
/datasets/git/config.c:3387:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (copy_end > 0 && contents[copy_end-1] != '\n')
                                                                         ^
                                                                          {
/datasets/git/config.c:3393:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                  copy_end - copy_begin) < 0)
                                                                             ^
                                                                              {
/datasets/git/config.c:3396:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                    write_str_in_full(fd, "\n") < 0)
                                                                    ^
                                                                     {
/datasets/git/config.c:3405:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (write_section(fd, key, &store) < 0)
                                                                       ^
                                                                        {
/datasets/git/config.c:3408:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (write_pair(fd, key, value, &store) < 0)
                                                                   ^
                                                                    {
/datasets/git/config.c:3413:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (copy_begin < contents_sz)
                                             ^
                                              {
/datasets/git/config.c:3415:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                          contents_sz - copy_begin) < 0)
                                                                        ^
                                                                         {
/datasets/git/config.c:3436:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (contents)
                     ^
                      {
/datasets/git/config.c:3438:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (in_fd >= 0)
                       ^
                        {
/datasets/git/config.c:3454:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                    value_pattern, flags))
                                                                          ^
                                                                           {
/datasets/git/config.c:3456:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (value)
                  ^
                   {
/datasets/git/config.c:3458:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/config.c:3469:56: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int repo_config_set_multivar_gently(struct repository *r, const char *key,
                                                       ^
/datasets/git/config.c:3490:12: warning: function 'section_name_match' has cognitive complexity of 30 (threshold 25) [readability-function-cognitive-complexity]
static int section_name_match (const char *buf, const char *name)
           ^
/datasets/git/config.c:3493:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (buf[i] != '[')
        ^
/datasets/git/config.c:3495:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 1; buf[i] && buf[i] != ']'; i++) {
        ^
/datasets/git/config.c:3495:21: note: +1
        for (i = 1; buf[i] && buf[i] != ']'; i++) {
                           ^
/datasets/git/config.c:3496:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!dot && isspace(buf[i])) {
                ^
/datasets/git/config.c:3496:12: note: +1
                if (!dot && isspace(buf[i])) {
                         ^
/datasets/git/config.c:3498:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (name[j++] != '.')
                        ^
/datasets/git/config.c:3500:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (i++; isspace(buf[i]); i++)
                        ^
/datasets/git/config.c:3502:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (buf[i] != '"')
                        ^
/datasets/git/config.c:3506:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (buf[i] == '\\' && dot)
                ^
/datasets/git/config.c:3506:22: note: +1
                if (buf[i] == '\\' && dot)
                                   ^
/datasets/git/config.c:3508:8: note: +1, nesting level increased to 2
                else if (buf[i] == '"' && dot) {
                     ^
/datasets/git/config.c:3508:26: note: +1
                else if (buf[i] == '"' && dot) {
                                       ^
/datasets/git/config.c:3509:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (i++; isspace(buf[i]); i++)
                        ^
/datasets/git/config.c:3513:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (buf[i] != name[j++])
                ^
/datasets/git/config.c:3516:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (buf[i] == ']' && name[j] == 0) {
        ^
/datasets/git/config.c:3516:20: note: +1
        if (buf[i] == ']' && name[j] == 0) {
                          ^
/datasets/git/config.c:3522:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (; buf[i] && isspace(buf[i]); i++)
                ^
/datasets/git/config.c:3522:17: note: +1
                for (; buf[i] && isspace(buf[i]); i++)
                              ^
/datasets/git/config.c:3492:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i = 0, j = 0, dot = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/config.c:3492:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0, j = 0, dot = 0;
            ^
/datasets/git/config.c:3492:13: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0, j = 0, dot = 0;
                   ^
/datasets/git/config.c:3493:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (buf[i] != '[')
                          ^
                           {
/datasets/git/config.c:3496:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!dot && isspace(buf[i])) {
                            ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/config.c:3498:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (name[j++] != '.')
                                             ^
                                              {
/datasets/git/config.c:3500:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i++; isspace(buf[i]); i++)
                        ^
/datasets/git/config.c:3500:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        for (i++; isspace(buf[i]); i++)
                                  ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/config.c:3500:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (i++; isspace(buf[i]); i++)
                                                       ^
                                                        {
/datasets/git/config.c:3502:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (buf[i] != '"')
                                          ^
                                           {
/datasets/git/config.c:3506:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (buf[i] == '\\' && dot)
                                          ^
                                           {
/datasets/git/config.c:3509:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i++; isspace(buf[i]); i++)
                        ^
/datasets/git/config.c:3509:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        for (i++; isspace(buf[i]); i++)
                                  ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/config.c:3509:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (i++; isspace(buf[i]); i++)
                                                       ^
                                                        {
/datasets/git/config.c:3513:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (buf[i] != name[j++])
                                        ^
                                         {
/datasets/git/config.c:3522:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (; buf[i] && isspace(buf[i]); i++)
                ^
/datasets/git/config.c:3522:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                for (; buf[i] && isspace(buf[i]); i++)
                                 ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/config.c:3522:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (; buf[i] && isspace(buf[i]); i++)
                                                      ^
                                                       {
/datasets/git/config.c:3532:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!*name)
                   ^
                    {
/datasets/git/config.c:3539:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; *name && *name != '.'; name++)
        ^
/datasets/git/config.c:3539:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (; *name && *name != '.'; name++)
                                             ^
                                              {
/datasets/git/config.c:3540:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (*name != '-' && !isalnum(*name))
                                     ^
/datasets/git/./git-compat-util.h:1220:20: note: expanded from macro 'isalnum'
#define isalnum(x) sane_istest(x,GIT_ALPHA | GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/config.c:3540:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*name != '-' && !isalnum(*name))
                                                    ^
                                                     {
/datasets/git/config.c:3546:12: warning: function 'git_config_copy_or_rename_section_in_file' has cognitive complexity of 65 (threshold 25) [readability-function-cognitive-complexity]
static int git_config_copy_or_rename_section_in_file(const char *config_filename,
           ^
/datasets/git/config.c:3562:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (new_name && !section_name_is_ok(new_name)) {
        ^
/datasets/git/config.c:3562:15: note: +1
        if (new_name && !section_name_is_ok(new_name)) {
                     ^
/datasets/git/config.c:3564:3: note: +1
                goto out_no_rollback;
                ^
/datasets/git/config.c:3567:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!config_filename)
        ^
/datasets/git/config.c:3571:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (out_fd < 0) {
        ^
/datasets/git/config.c:3573:3: note: +1
                goto out;
                ^
/datasets/git/config.c:3576:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!(config_file = fopen(config_filename, "rb"))) {
        ^
/datasets/git/config.c:3578:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ret)
                ^
/datasets/git/config.c:3581:3: note: +1
                goto commit_and_out;
                ^
/datasets/git/config.c:3584:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (fstat(fileno(config_file), &st) == -1) {
        ^
/datasets/git/config.c:3586:3: note: +1
                goto out;
                ^
/datasets/git/config.c:3589:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (chmod(get_lock_file_path(&lock), st.st_mode & 07777) < 0) {
        ^
/datasets/git/config.c:3592:3: note: +1
                goto out;
                ^
/datasets/git/config.c:3595:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (fgets(buf, sizeof(buf), config_file)) {
        ^
/datasets/git/config.c:3600:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; buf[i] && isspace(buf[i]); i++)
                ^
/datasets/git/config.c:3600:22: note: +1
                for (i = 0; buf[i] && isspace(buf[i]); i++)
                                   ^
/datasets/git/config.c:3602:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (buf[i] == '[') {
                ^
/datasets/git/config.c:3613:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (copystr.len > 0) {
                        ^
/datasets/git/config.c:3614:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (write_in_full(out_fd, copystr.buf, copystr.len) < 0) {
                                ^
/datasets/git/config.c:3616:6: note: +1
                                        goto out;
                                        ^
/datasets/git/config.c:3622:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (offset > 0) {
                        ^
/datasets/git/config.c:3624:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!new_name) {
                                ^
/datasets/git/config.c:3629:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!copy) {
                                ^
/datasets/git/config.c:3630:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (write_section(out_fd, new_name, &store) < 0) {
                                        ^
/datasets/git/config.c:3632:7: note: +1
                                                goto out;
                                                ^
/datasets/git/config.c:3640:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (strlen(output) > 0) {
                                        ^
/datasets/git/config.c:3650:7: note: +1, nesting level increased to 4
                                } else {
                                  ^
/datasets/git/config.c:3656:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (remove)
                ^
/datasets/git/config.c:3660:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!is_section && copystr.len > 0) {
                ^
/datasets/git/config.c:3660:19: note: +1
                if (!is_section && copystr.len > 0) {
                                ^
/datasets/git/config.c:3664:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (write_in_full(out_fd, output, length) < 0) {
                ^
/datasets/git/config.c:3666:4: note: +1
                        goto out;
                        ^
/datasets/git/config.c:3675:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (copystr.len > 0) {
        ^
/datasets/git/config.c:3676:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (write_in_full(out_fd, copystr.buf, copystr.len) < 0) {
                ^
/datasets/git/config.c:3678:4: note: +1
                        goto out;
                        ^
/datasets/git/config.c:3686:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (commit_lock_file(&lock) < 0)
        ^
/datasets/git/config.c:3690:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (config_file)
        ^
/datasets/git/config.c:3546:54: warning: 3 adjacent parameters of 'git_config_copy_or_rename_section_in_file' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int git_config_copy_or_rename_section_in_file(const char *config_filename,
                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/config.c:3546:66: note: the first parameter in the range is 'config_filename'
static int git_config_copy_or_rename_section_in_file(const char *config_filename,
                                                                 ^~~~~~~~~~~~~~~
/datasets/git/config.c:3548:23: note: the last parameter in the range is 'new_name'
                                      const char *new_name, int copy)
                                                  ^~~~~~~~
/datasets/git/config.c:3550:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int ret = 0, remove = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/config.c:3553:6: warning: variable 'out_fd' is not initialized [cppcoreguidelines-init-variables]
        int out_fd;
            ^
                   = 0
/datasets/git/config.c:3554:11: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        char buf[1024];
                 ^
/datasets/git/config.c:3556:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/config.c:3560:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&store, 0, sizeof(store));
        ^~~~~~
/datasets/git/config.c:3560:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&store, 0, sizeof(store));
        ^~~~~~
/datasets/git/config.c:3567:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!config_filename)
                             ^
                              {
/datasets/git/config.c:3576:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if (!(config_file = fopen(config_filename, "rb"))) {
              ^
/datasets/git/config.c:3576:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/config.c:3576:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/config.c:3555:2: note: inferred assignment of ID-dependent value from ID-dependent variable config_filename [altera-id-dependent-backward-branch]
        FILE *config_file = NULL;
        ^
/datasets/git/config.c:3578:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret)
                        ^
                         {
/datasets/git/config.c:3589:39: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (chmod(get_lock_file_path(&lock), st.st_mode & 07777) < 0) {
                                             ^            ~~~~~
/datasets/git/config.c:3589:52: warning: 07777 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (chmod(get_lock_file_path(&lock), st.st_mode & 07777) < 0) {
                                                          ^
/datasets/git/config.c:3595:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'config_file' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (fgets(buf, sizeof(buf), config_file)) {
               ^
/datasets/git/config.c:3596:12: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                unsigned i;
                         ^
                           = 0
/datasets/git/config.c:3596:12: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/config.c:3597:7: warning: variable 'length' is not initialized [cppcoreguidelines-init-variables]
                int length;
                    ^
                           = 0
/datasets/git/config.c:3600:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; buf[i] && isspace(buf[i]); i++)
                ^
/datasets/git/config.c:3600:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                for (i = 0; buf[i] && isspace(buf[i]); i++)
                                      ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/config.c:3600:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; buf[i] && isspace(buf[i]); i++)
                                                           ^
                                                            {
/datasets/git/config.c:3604:8: warning: variable 'offset' is not initialized [cppcoreguidelines-init-variables]
                        int offset;
                            ^
                                   = 0
/datasets/git/config.c:3656:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (remove)
                           ^
                            {
/datasets/git/config.c:3658:12: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                length = strlen(output);
                         ^
/datasets/git/config.c:3683:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(config_file);
        ^~~~~~~~~~~~~~~~~~~
/datasets/git/config.c:3683:2: note: cast the expression to void to silence this warning
/datasets/git/config.c:3686:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (commit_lock_file(&lock) < 0)
                                        ^
                                         {
/datasets/git/config.c:3690:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (config_file)
                        ^
                         {
/datasets/git/config.c:3691:3: warning: the value returned by this function should be used [cert-err33-c]
                fclose(config_file);
                ^~~~~~~~~~~~~~~~~~~
/datasets/git/config.c:3691:3: note: cast the expression to void to silence this warning
/datasets/git/config.c:3738:14: warning: variable 'dot' is not initialized [cppcoreguidelines-init-variables]
        const char *dot;
                    ^
                        = NULL
/datasets/git/config.c:3741:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!skip_prefix(var, section, &var) || *var != '.')
                                                            ^
                                                             {
/datasets/git/config.c:3760:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!subsection)
                                ^
                                 {
/datasets/git/config.c:3771:6: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        int type;
            ^
                 = 0
/datasets/git/config.c:3772:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (current_config_kvi)
                               ^
                                {
/datasets/git/config.c:3774:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if(cf)
                   ^
                    {
/datasets/git/config.c:3776:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/config.c:3817:14: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
        const char *name;
                    ^
                         = NULL
/datasets/git/config.c:3818:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (current_config_kvi)
                               ^
                                {
/datasets/git/config.c:3820:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (cf)
                    ^
                     {
/datasets/git/config.c:3822:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/config.c:3829:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (current_config_kvi)
                               ^
                                {
/datasets/git/config.c:3831:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else
        ^~~~
                        return current_parsing_scope
/datasets/git/config.c:3831:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/config.c:3837:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (current_config_kvi)
                               ^
                                {
/datasets/git/config.c:3839:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else
        ^~~~
                        return cf->linenr
/datasets/git/config.c:3839:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/config.c:3845:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/config.c:3845:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/config.c:3847:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr_mapping; i++) {
        ^
/datasets/git/config.c:3850:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (name && !strcasecmp(var, name))
                                                   ^
                                                    {
/datasets/git/connect.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "cache.h"
^        ~~~~~~~~~
         "alias.h"
/datasets/git/connect.c:19:14: warning: variable 'server_capabilities_v1' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *server_capabilities_v1;
             ^
/datasets/git/connect.c:19:14: warning: variable 'server_capabilities_v1' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/connect.c:20:22: warning: variable 'server_capabilities_v2' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct strvec server_capabilities_v2 = STRVEC_INIT;
                     ^
/datasets/git/connect.c:20:22: warning: initializing non-local variable with non-const expression depending on uninitialized non-local variable 'empty_strvec' [cppcoreguidelines-interfaces-global-init]
/datasets/git/connect.c:25:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!flags)
                   ^
                    {
/datasets/git/connect.c:28:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!skip_prefix(name, "refs/", &name))
                                               ^
                                                {
/datasets/git/connect.c:32:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((flags & REF_NORMAL) && check_refname_format(name, 0))
                     ^
/datasets/git/./remote.h:201:21: note: expanded from macro 'REF_NORMAL'
#define REF_NORMAL      (1u << 0)
                         ^     ~
/datasets/git/connect.c:32:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((flags & REF_NORMAL) && check_refname_format(name, 0))
                                                                  ^
                                                                   {
/datasets/git/connect.c:36:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((flags & REF_HEADS) && starts_with(name, "heads/"))
                     ^
/datasets/git/./remote.h:202:20: note: expanded from macro 'REF_HEADS'
#define REF_HEADS       (1u << 1)
                         ^     ~
/datasets/git/connect.c:36:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((flags & REF_HEADS) && starts_with(name, "heads/"))
                                                               ^
                                                                {
/datasets/git/connect.c:40:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((flags & REF_TAGS) && starts_with(name, "tags/"))
                     ^
/datasets/git/./remote.h:203:19: note: expanded from macro 'REF_TAGS'
#define REF_TAGS        (1u << 2)
                         ^     ~
/datasets/git/connect.c:40:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((flags & REF_TAGS) && starts_with(name, "tags/"))
                                                             ^
                                                              {
/datasets/git/connect.c:44:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return !(flags & ~REF_NORMAL);
                          ^
/datasets/git/./remote.h:201:21: note: expanded from macro 'REF_NORMAL'
#define REF_NORMAL      (1u << 0)
                         ^     ~
/datasets/git/connect.c:60:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unexpected)
                       ^
                        {
/datasets/git/connect.c:62:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/connect.c:69:36: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
int server_supports_v2(const char *c, int die_on_error)
                                   ^
/datasets/git/connect.c:71:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/connect.c:71:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/connect.c:73:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < server_capabilities_v2.nr; i++) {
        ^
/datasets/git/connect.c:74:15: warning: variable 'out' is not initialized [cppcoreguidelines-init-variables]
                const char *out;
                            ^
                                = NULL
/datasets/git/connect.c:76:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    (!*out || *out == '='))
                                           ^
                                            {
/datasets/git/connect.c:80:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (die_on_error)
                         ^
                          {
/datasets/git/connect.c:86:35: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
int server_feature_v2(const char *c, const char **v)
                                  ^
/datasets/git/connect.c:86:51: warning: parameter name 'v' is too short, expected at least 3 characters [readability-identifier-length]
int server_feature_v2(const char *c, const char **v)
                                                  ^
/datasets/git/connect.c:88:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/connect.c:88:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/connect.c:90:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < server_capabilities_v2.nr; i++) {
        ^
/datasets/git/connect.c:91:15: warning: variable 'out' is not initialized [cppcoreguidelines-init-variables]
                const char *out;
                            ^
                                = NULL
/datasets/git/connect.c:101:29: warning: 2 adjacent parameters of 'server_supports_feature' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
int server_supports_feature(const char *c, const char *feature,
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/connect.c:101:41: note: the first parameter in the range is 'c'
int server_supports_feature(const char *c, const char *feature,
                                        ^
/datasets/git/connect.c:101:56: note: the last parameter in the range is 'feature'
int server_supports_feature(const char *c, const char *feature,
                                                       ^~~~~~~
/datasets/git/connect.c:101:41: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
int server_supports_feature(const char *c, const char *feature,
                                        ^
/datasets/git/connect.c:104:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/connect.c:104:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/connect.c:106:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < server_capabilities_v2.nr; i++) {
        ^
/datasets/git/connect.c:107:15: warning: variable 'out' is not initialized [cppcoreguidelines-init-variables]
                const char *out;
                            ^
                                = NULL
/datasets/git/connect.c:110:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (parse_feature_request(out, feature))
                                                                ^
                                                                 {
/datasets/git/connect.c:112:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                        else
                        ^~~~
                                                        break
/datasets/git/connect.c:112:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/connect.c:117:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (die_on_error)
                         ^
                          {
/datasets/git/connect.c:125:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (packet_reader_read(reader) == PACKET_READ_NORMAL)
        ^
/datasets/git/connect.c:125:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (packet_reader_read(reader) == PACKET_READ_NORMAL)
                                                                ^
                                                                 {
/datasets/git/connect.c:128:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (reader->status != PACKET_READ_FLUSH)
                                                ^
                                                 {
/datasets/git/connect.c:153:2: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
        switch (version) {
        ^
/datasets/git/connect.c:174:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *sym, *target;
        ^~~~~~~~~~~~~~~~~~~
/datasets/git/connect.c:174:8: warning: variable 'sym' is not initialized [cppcoreguidelines-init-variables]
        char *sym, *target;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/connect.c:174:14: warning: variable 'target' is not initialized [cppcoreguidelines-init-variables]
        char *sym, *target;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/connect.c:175:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/connect.c:177:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!len)
                 ^
                  {
/datasets/git/connect.c:182:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!target)
                    ^
                     {
/datasets/git/connect.c:187:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            check_refname_format(target, REFNAME_ALLOW_ONELEVEL))
                                                                 ^
                                                                  {
/datasets/git/connect.c:195:2: warning: redundant return statement at the end of a function with a void return type [readability-redundant-control-flow]
        return;
~~~~~~~~^~~~~~~
/datasets/git/connect.c:203:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/connect.c:198:44: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
static void annotate_refs_with_symref_info(struct ref *ref)
                                           ^
/datasets/git/connect.c:204:7: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
                int len;
                    ^
                        = 0
/datasets/git/connect.c:205:15: warning: variable 'val' is not initialized [cppcoreguidelines-init-variables]
                const char *val;
                            ^
                                = NULL
/datasets/git/connect.c:208:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!val)
                         ^
                          {
/datasets/git/connect.c:214:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; ref; ref = ref->next) {
        ^
/datasets/git/connect.c:214:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; ref; ref = ref->next) {
               ^
/datasets/git/connect.c:215:28: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
                struct string_list_item *item;
                                         ^
                                              = NULL
/datasets/git/connect.c:217:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!item)
                          ^
                           {
/datasets/git/connect.c:226:14: warning: variable 'feat_val' is not initialized [cppcoreguidelines-init-variables]
        const char *feat_val;
                    ^
                             = NULL
/datasets/git/connect.c:227:6: warning: variable 'feat_len' is not initialized [cppcoreguidelines-init-variables]
        int feat_len;
            ^
                     = 0
/datasets/git/connect.c:229:21: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int nul_location = strlen(line);
                           ^
/datasets/git/connect.c:230:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (nul_location == *linelen)
                                     ^
                                      {
/datasets/git/connect.c:239:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (hash_algo != GIT_HASH_UNKNOWN)
                                                  ^
                                                   {
/datasets/git/connect.c:251:14: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
        const char *name;
                    ^
                         = NULL
/datasets/git/connect.c:253:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_oid_hex_algop(line, &oid, &name, reader->hash_algo))
                                                                      ^
                                                                       {
/datasets/git/connect.c:255:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*name != ' ')
                         ^
                          {
/datasets/git/connect.c:264:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strlen(line) != len)
                                ^
                                 {
/datasets/git/connect.c:275:14: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
        const char *name;
                    ^
                         = NULL
/datasets/git/connect.c:277:68: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_oid_hex_algop(line, &old_oid, &name, reader->hash_algo))
                                                                          ^
                                                                           {
/datasets/git/connect.c:279:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*name != ' ')
                         ^
                          {
/datasets/git/connect.c:301:14: warning: variable 'arg' is not initialized [cppcoreguidelines-init-variables]
        const char *arg;
                    ^
                        = NULL
/datasets/git/connect.c:304:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!skip_prefix(line, "shallow ", &arg))
                                                 ^
                                                  {
/datasets/git/connect.c:307:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid_hex_algop(arg, &old_oid, reader->hash_algo))
                                                                ^
                                                                 {
/datasets/git/connect.c:309:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!shallow_points)
                            ^
                             {
/datasets/git/connect.c:328:10: warning: 2 adjacent parameters of 'get_remote_heads' of similar type ('struct oid_array *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                              struct oid_array *extra_have,
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/connect.c:328:28: note: the first parameter in the range is 'extra_have'
                              struct oid_array *extra_have,
                                                ^~~~~~~~~~
/datasets/git/connect.c:329:28: note: the last parameter in the range is 'shallow_points'
                              struct oid_array *shallow_points)
                                                ^~~~~~~~~~~~~~
/datasets/git/connect.c:337:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (state != EXPECTING_DONE) {
        ^
/datasets/git/connect.c:352:3: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
                switch (state) {
                ^
/datasets/git/connect.c:362:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (process_ref(reader, len, &list, flags, extra_have))
                                                                               ^
                                                                                {
/datasets/git/connect.c:367:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (process_shallow(reader, len, shallow_points))
                                                                         ^
                                                                          {
/datasets/git/connect.c:381:12: warning: function 'process_ref_v2' has cognitive complexity of 27 (threshold 25) [readability-function-cognitive-complexity]
static int process_ref_v2(struct packet_reader *reader, struct ref ***list,
           ^
/datasets/git/connect.c:398:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (string_list_split(&line_sections, line, ' ', -1) < 2) {
        ^
/datasets/git/connect.c:400:3: note: +1
                goto out;
                ^
/datasets/git/connect.c:403:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp("unborn", line_sections.items[i].string)) {
        ^
/datasets/git/connect.c:405:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (unborn_head_target &&
                ^
/datasets/git/connect.c:405:26: note: +1
                if (unborn_head_target &&
                                       ^
/datasets/git/connect.c:411:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (; i < line_sections.nr; i++) {
                        ^
/datasets/git/connect.c:414:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (skip_prefix(arg, "symref-target:", &arg)) {
                                ^
/datasets/git/connect.c:420:3: note: +1
                goto out;
                ^
/datasets/git/connect.c:422:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (parse_oid_hex_algop(line_sections.items[i++].string, &old_oid, &end, reader->hash_algo) ||
        ^
/datasets/git/connect.c:422:94: note: +1
        if (parse_oid_hex_algop(line_sections.items[i++].string, &old_oid, &end, reader->hash_algo) ||
                                                                                                    ^
/datasets/git/connect.c:425:3: note: +1
                goto out;
                ^
/datasets/git/connect.c:434:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (; i < line_sections.nr; i++) {
        ^
/datasets/git/connect.c:436:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (skip_prefix(arg, "symref-target:", &arg))
                ^
/datasets/git/connect.c:439:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (skip_prefix(arg, "peeled:", &arg)) {
                ^
/datasets/git/connect.c:443:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (parse_oid_hex_algop(arg, &peeled_oid, &end,
                        ^
/datasets/git/connect.c:444:26: note: +1
                                                reader->hash_algo) || *end) {
                                                                   ^
/datasets/git/connect.c:446:5: note: +1
                                goto out;
                                ^
/datasets/git/connect.c:385:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0;
            ^
/datasets/git/connect.c:387:14: warning: variable 'ref' is not initialized [cppcoreguidelines-init-variables]
        struct ref *ref;
                    ^
                        = NULL
/datasets/git/connect.c:389:14: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
        const char *end;
                    ^
                        = NULL
/datasets/git/connect.c:411:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (; i < line_sections.nr; i++) {
                        ^
/datasets/git/connect.c:430:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(ref->old_oid.hash, old_oid.hash, reader->hash_algo->rawsz);
        ^~~~~~
/datasets/git/connect.c:430:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(ref->old_oid.hash, old_oid.hash, reader->hash_algo->rawsz);
        ^~~~~~
/datasets/git/connect.c:434:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; i < line_sections.nr; i++) {
        ^
/datasets/git/connect.c:436:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (skip_prefix(arg, "symref-target:", &arg))
                                                             ^
                                                              {
/datasets/git/connect.c:441:10: warning: variable 'peeled_name' is not initialized [cppcoreguidelines-init-variables]
                        char *peeled_name;
                              ^
                                          = NULL
/datasets/git/connect.c:442:16: warning: variable 'peeled' is not initialized [cppcoreguidelines-init-variables]
                        struct ref *peeled;
                                    ^
                                           = NULL
/datasets/git/connect.c:452:4: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memcpy(peeled->old_oid.hash, peeled_oid.hash,
                        ^~~~~~
/datasets/git/connect.c:452:4: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                        memcpy(peeled->old_oid.hash, peeled_oid.hash,
                        ^~~~~~
/datasets/git/connect.c:470:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!stateless_rpc)
                           ^
                            {
/datasets/git/connect.c:472:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (packet_reader_read(reader) != PACKET_READ_RESPONSE_END)
                                                                   ^
                                                                    {
/datasets/git/connect.c:478:14: warning: variable 'hash_name' is not initialized [cppcoreguidelines-init-variables]
        const char *hash_name;
                    ^
                              = NULL
/datasets/git/connect.c:480:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (server_supports_v2("agent", 0))
                                           ^
                                            {
/datasets/git/connect.c:485:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (hash_algo == GIT_HASH_UNKNOWN)
                                                  ^
                                                   {
/datasets/git/connect.c:500:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/connect.c:500:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/connect.c:507:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (server_supports_v2("ls-refs", 1))
                                             ^
                                              {
/datasets/git/connect.c:514:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            server_supports_v2("server-option", 1))
                                                   ^
                                                    {
/datasets/git/connect.c:515:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < server_options->nr; i++)
                ^
/datasets/git/connect.c:515:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < server_options->nr; i++)
                                                        ^
                                                         {
/datasets/git/connect.c:521:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!for_push)
                      ^
                       {
/datasets/git/connect.c:524:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (server_supports_feature("ls-refs", "unborn", 0))
                                                            ^
                                                             {
/datasets/git/connect.c:526:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; ref_prefixes && i < ref_prefixes->nr; i++) {
        ^
/datasets/git/connect.c:526:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ref_prefixes' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; ref_prefixes && i < ref_prefixes->nr; i++) {
                    ^
/datasets/git/connect.c:533:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (packet_reader_read(reader) == PACKET_READ_NORMAL) {
        ^
/datasets/git/connect.c:534:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!process_ref_v2(reader, &list, unborn_head_target))
                                                                       ^
                                                                        {
/datasets/git/connect.c:538:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (reader->status != PACKET_READ_FLUSH)
                                                ^
                                                 {
/datasets/git/connect.c:547:13: warning: function 'parse_feature_value' has cognitive complexity of 29 (threshold 25) [readability-function-cognitive-complexity]
const char *parse_feature_value(const char *feature_list, const char *feature, int *lenp, int *offset)
            ^
/datasets/git/connect.c:551:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!feature_list)
        ^
/datasets/git/connect.c:555:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (offset)
        ^
/datasets/git/connect.c:557:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (*feature_list) {
        ^
/datasets/git/connect.c:559:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!found)
                ^
/datasets/git/connect.c:561:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (feature_list == found || isspace(found[-1])) {
                ^
/datasets/git/connect.c:561:29: note: +1
                if (feature_list == found || isspace(found[-1])) {
                                          ^
/datasets/git/connect.c:564:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!*value || isspace(*value)) {
                        ^
/datasets/git/connect.c:564:16: note: +1
                        if (!*value || isspace(*value)) {
                                    ^
/datasets/git/connect.c:565:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (lenp)
                                ^
/datasets/git/connect.c:567:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (offset)
                                ^
/datasets/git/connect.c:572:9: note: +1, nesting level increased to 3
                        else if (*value == '=') {
                             ^
/datasets/git/connect.c:577:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (lenp)
                                ^
/datasets/git/connect.c:579:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (offset)
                                ^
/datasets/git/connect.c:547:80: warning: 2 adjacent parameters of 'parse_feature_value' of similar type ('int *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
const char *parse_feature_value(const char *feature_list, const char *feature, int *lenp, int *offset)
                                                                               ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/connect.c:547:85: note: the first parameter in the range is 'lenp'
const char *parse_feature_value(const char *feature_list, const char *feature, int *lenp, int *offset)
                                                                                    ^~~~
/datasets/git/connect.c:547:96: note: the last parameter in the range is 'offset'
const char *parse_feature_value(const char *feature_list, const char *feature, int *lenp, int *offset)
                                                                                               ^~~~~~
/datasets/git/connect.c:549:6: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int len;
            ^
                = 0
/datasets/git/connect.c:551:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!feature_list)
                          ^
                           {
/datasets/git/connect.c:554:8: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        len = strlen(feature);
              ^
/datasets/git/connect.c:555:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (offset)
                   ^
                    {
/datasets/git/connect.c:557:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*feature_list) {
        ^
/datasets/git/connect.c:557:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'feature_list' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (*feature_list) {
               ^
/datasets/git/connect.c:559:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!found)
                           ^
                            {
/datasets/git/connect.c:561:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (feature_list == found || isspace(found[-1])) {
                                             ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/connect.c:564:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!*value || isspace(*value)) {
                                       ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/connect.c:565:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (lenp)
                                         ^
                                          {
/datasets/git/connect.c:567:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (offset)
                                           ^
                                            {
/datasets/git/connect.c:568:16: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                        *offset = found + len - feature_list;
                                                  ^
/datasets/git/connect.c:572:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                        else if (*value == '=') {
                        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/connect.c:573:9: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
                                int end;
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/connect.c:576:11: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                end = strcspn(value, " \t\n");
                                      ^
/datasets/git/connect.c:577:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (lenp)
                                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/connect.c:579:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (offset)
                                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/connect.c:580:16: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                        *offset = value + end - feature_list;
                                                  ^
/datasets/git/connect.c:596:6: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int len;
            ^
                = 0
/datasets/git/connect.c:597:14: warning: variable 'hash' is not initialized [cppcoreguidelines-init-variables]
        const char *hash;
                    ^
                         = NULL
/datasets/git/connect.c:600:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (feature_supported)
                              ^
                               {
/datasets/git/connect.c:604:9: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                len = strlen(hash);
                      ^
/datasets/git/connect.c:606:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (hash) {
        ^
/datasets/git/connect.c:606:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'hash' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (hash) {
               ^
/datasets/git/connect.c:607:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!xstrncmpz(desired, hash, len))
                                                   ^
                                                    {
/datasets/git/connect.c:667:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(name, "ssh"))
                                 ^
                                  {
/datasets/git/connect.c:669:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(name, "git"))
                                 ^
                                  {
/datasets/git/connect.c:671:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(name, "git+ssh")) /* deprecated - do not use */
                                     ^
                                      {
/datasets/git/connect.c:673:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(name, "ssh+git")) /* deprecated - do not use */
                                     ^
                                      {
/datasets/git/connect.c:675:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(name, "file"))
                                  ^
                                   {
/datasets/git/connect.c:683:8: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
        char *end;
              ^
                  = NULL
/datasets/git/connect.c:685:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (start)
                  ^
                   {
/datasets/git/connect.c:687:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/connect.c:694:5: warning: Call to function 'memmove' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memmove_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                                memmove(start, start + 1, end - start);
                                ^~~~~~~
/datasets/git/connect.c:694:5: note: Call to function 'memmove' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memmove_s' in case of C11
                                memmove(start, start + 1, end - start);
                                ^~~~~~~
/datasets/git/connect.c:697:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/connect.c:699:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/connect.c:709:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *colon, *end;
        ^~~~~~~~~~~~~~~~~~
/datasets/git/connect.c:709:8: warning: variable 'colon' is not initialized [cppcoreguidelines-init-variables]
        char *colon, *end;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/connect.c:709:16: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
        char *colon, *end;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/connect.c:713:41: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                long portnr = strtol(colon + 1, &end, 10);
                                                      ^
/datasets/git/connect.c:714:67: warning: 65536 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (end != colon + 1 && *end == '\0' && 0 <= portnr && portnr < 65536) {
                                                                                ^
/datasets/git/connect.c:725:6: warning: variable name 'ka' is too short, expected at least 3 characters [readability-identifier-length]
        int ka = 1;
            ^
/datasets/git/connect.c:727:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (setsockopt(sockfd, SOL_SOCKET, SO_KEEPALIVE, &ka, sizeof(ka)) < 0)
                                                                              ^
                                                                               {
/datasets/git/connect.c:733:51: warning: parameter name 'ai' is too short, expected at least 3 characters [readability-identifier-length]
static const char *ai_name(const struct addrinfo *ai)
                                                  ^
/datasets/git/connect.c:737:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        NI_NUMERICHOST) != 0)
                                             ^
                                              {
/datasets/git/connect.c:751:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct addrinfo hints, *ai0, *ai;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/connect.c:751:26: warning: variable 'ai0' is not initialized [cppcoreguidelines-init-variables]
        struct addrinfo hints, *ai0, *ai;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/connect.c:751:32: warning: variable 'ai' is not initialized [cppcoreguidelines-init-variables]
        struct addrinfo hints, *ai0, *ai;
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/connect.c:751:32: warning: variable name 'ai' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/connect.c:752:6: warning: variable 'gai' is not initialized [cppcoreguidelines-init-variables]
        int gai;
            ^
                = 0
/datasets/git/connect.c:756:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!*port)
                   ^
                    {
/datasets/git/connect.c:759:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&hints, 0, sizeof(hints));
        ^~~~~~
/datasets/git/connect.c:759:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&hints, 0, sizeof(hints));
        ^~~~~~
/datasets/git/connect.c:760:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & CONNECT_IPV4)
            ^~~~~
/datasets/git/connect.c:760:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & CONNECT_IPV4)
                    ^
/datasets/git/./connect.h:8:32: note: expanded from macro 'CONNECT_IPV4'
#define CONNECT_IPV4          (1u << 2)
                               ^     ~
/datasets/git/connect.c:760:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & CONNECT_IPV4)
                                 ^
                                  {
/datasets/git/connect.c:762:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        else if (flags & CONNECT_IPV6)
                 ^~~~~
/datasets/git/connect.c:762:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        else if (flags & CONNECT_IPV6)
                         ^
/datasets/git/./connect.h:9:32: note: expanded from macro 'CONNECT_IPV6'
#define CONNECT_IPV6          (1u << 3)
                               ^     ~
/datasets/git/connect.c:762:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (flags & CONNECT_IPV6)
                                      ^
                                       {
/datasets/git/connect.c:767:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & CONNECT_VERBOSE)
            ^~~~~
/datasets/git/connect.c:767:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & CONNECT_VERBOSE)
                    ^
/datasets/git/./connect.h:6:32: note: expanded from macro 'CONNECT_VERBOSE'
#define CONNECT_VERBOSE       (1u << 0)
                               ^     ~
/datasets/git/connect.c:767:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & CONNECT_VERBOSE)
                                    ^
                                     {
/datasets/git/connect.c:768:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, _("Looking up %s ... "), host);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/connect.c:768:3: note: cast the expression to void to silence this warning
/datasets/git/connect.c:771:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (gai)
                ^
                 {
/datasets/git/connect.c:774:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & CONNECT_VERBOSE)
            ^~~~~
/datasets/git/connect.c:774:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & CONNECT_VERBOSE)
                    ^
/datasets/git/./connect.h:6:32: note: expanded from macro 'CONNECT_VERBOSE'
#define CONNECT_VERBOSE       (1u << 0)
                               ^     ~
/datasets/git/connect.c:774:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & CONNECT_VERBOSE)
                                    ^
                                     {
/datasets/git/connect.c:776:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, _("done.\nConnecting to %s (port %s) ... "), host, port);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/connect.c:776:3: note: cast the expression to void to silence this warning
/datasets/git/connect.c:751:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct addrinfo hints, *ai0, *ai;
        ^
/datasets/git/connect.c:778:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (ai0 = ai; ai; ai = ai->ai_next, cnt++) {
        ^
/datasets/git/connect.c:778:17: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ai' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (ai0 = ai; ai; ai = ai->ai_next, cnt++) {
                       ^
/datasets/git/connect.c:784:33: warning: function is not thread safe [concurrency-mt-unsafe]
                                    host, cnt, ai_name(ai), strerror(errno));
                                                            ^
/datasets/git/connect.c:785:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (0 <= sockfd)
                                        ^
                                         {
/datasets/git/connect.c:790:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flags & CONNECT_VERBOSE)
                    ^~~~~
/datasets/git/connect.c:790:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flags & CONNECT_VERBOSE)
                            ^
/datasets/git/./connect.h:6:32: note: expanded from macro 'CONNECT_VERBOSE'
#define CONNECT_VERBOSE       (1u << 0)
                               ^     ~
/datasets/git/connect.c:790:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (flags & CONNECT_VERBOSE)
                                            ^
                                             {
/datasets/git/connect.c:791:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, "%s ", ai_name(ai));
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/connect.c:791:4: note: cast the expression to void to silence this warning
/datasets/git/connect.c:797:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (sockfd < 0)
                       ^
                        {
/datasets/git/connect.c:802:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & CONNECT_VERBOSE)
            ^~~~~
/datasets/git/connect.c:802:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & CONNECT_VERBOSE)
                    ^
/datasets/git/./connect.h:6:32: note: expanded from macro 'CONNECT_VERBOSE'
#define CONNECT_VERBOSE       (1u << 0)
                               ^     ~
/datasets/git/connect.c:802:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & CONNECT_VERBOSE)
                                    ^
                                     {
/datasets/git/connect.c:893:29: warning: variable 'no_fork' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct child_process no_fork = CHILD_PROCESS_INIT;
                            ^
/datasets/git/connect.c:893:29: warning: initializing non-local variable with non-const expression depending on uninitialized non-local variable 'empty_strvec' [cppcoreguidelines-interfaces-global-init]
/datasets/git/connect.c:900:50: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
static struct child_process *git_tcp_connect(int fd[2], char *host, int flags)
                                                 ^
/datasets/git/connect.c:905:10: warning: prefer fcntl() to dup() because fcntl() allows F_DUPFD_CLOEXEC [android-cloexec-dup]
        fd[1] = dup(sockfd);
                ^~~~~~~~~~~
                fcntl(sockfd, F_DUPFD_CLOEXEC)
/datasets/git/connect.c:911:14: warning: variable 'git_proxy_command' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *git_proxy_command;
             ^
/datasets/git/connect.c:911:14: warning: variable 'git_proxy_command' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/connect.c:914:9: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
                void *cb)
                      ^
/datasets/git/connect.c:917:15: warning: variable 'for_pos' is not initialized [cppcoreguidelines-init-variables]
                const char *for_pos;
                            ^
                                    = NULL
/datasets/git/connect.c:919:7: warning: variable 'hostlen' is not initialized [cppcoreguidelines-init-variables]
                int hostlen;
                    ^
                            = 0
/datasets/git/connect.c:921:19: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int rhost_len = strlen(rhost_name);
                                ^
/datasets/git/connect.c:923:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (git_proxy_command)
                                      ^
                                       {
/datasets/git/connect.c:925:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
                            {
/datasets/git/connect.c:934:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!for_pos)
                             ^
                              {
/datasets/git/connect.c:936:15: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        matchlen = strlen(value);
                                   ^
/datasets/git/connect.c:938:14: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        hostlen = strlen(for_pos + 5);
                                  ^
/datasets/git/connect.c:938:31: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        hostlen = strlen(for_pos + 5);
                                                   ^
/datasets/git/connect.c:939:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (rhost_len < hostlen)
                                                ^
                                                 {
/datasets/git/connect.c:940:5: warning: repeated branch in conditional chain [bugprone-branch-clone]
                                matchlen = -1;
                                ^
/datasets/git/connect.c:940:18: note: end of the original
                                matchlen = -1;
                                             ^
/datasets/git/connect.c:948:5: note: clone 1 starts here
                                matchlen = -1;
                                ^
/datasets/git/connect.c:941:32: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        else if (!strncmp(for_pos + 5,
                                                    ^
/datasets/git/connect.c:945:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                  rhost_name[rhost_len - hostlen -1] == '.'))
                                                                             ^
                                                                              {
/datasets/git/connect.c:946:16: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                matchlen = for_pos - value;
                                           ^
/datasets/git/connect.c:947:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/connect.c:953:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            !memcmp(value, "none", 4))
                                                      ^
                                                       {
/datasets/git/connect.c:965:22: warning: function is not thread safe [concurrency-mt-unsafe]
        git_proxy_command = getenv("GIT_PROXY_COMMAND");
                            ^
/datasets/git/connect.c:970:52: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
static struct child_process *git_proxy_connect(int fd[2], char *host)
                                                   ^
/datasets/git/connect.c:973:24: warning: variable 'proxy' is not initialized [cppcoreguidelines-init-variables]
        struct child_process *proxy;
                              ^
                                    = NULL
/datasets/git/connect.c:977:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (looks_like_command_line_option(host))
                                                 ^
                                                  {
/datasets/git/connect.c:979:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (looks_like_command_line_option(port))
                                                 ^
                                                  {
/datasets/git/connect.c:989:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (start_command(proxy))
                                 ^
                                  {
/datasets/git/connect.c:998:8: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
        char *end;
              ^
                  = NULL
/datasets/git/connect.c:999:8: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        char *p = strchr(host, ':');
              ^
/datasets/git/connect.c:1002:35: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                long port = strtol(p + 1, &end, 10);
                                                ^
/datasets/git/connect.c:1003:59: warning: 65536 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (end != p + 1 && *end == '\0' && 0 <= port && port < 65536) {
                                                                        ^
/datasets/git/connect.c:1016:62: warning: 2 adjacent parameters of 'parse_connect_url' of similar type ('char **') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static enum protocol parse_connect_url(const char *url_orig, char **ret_host,
                                                             ^~~~~~~~~~~~~~~~
/datasets/git/connect.c:1016:69: note: the first parameter in the range is 'ret_host'
static enum protocol parse_connect_url(const char *url_orig, char **ret_host,
                                                                    ^~~~~~~~
/datasets/git/connect.c:1017:19: note: the last parameter in the range is 'ret_path'
                                       char **ret_path)
                                              ^~~~~~~~
/datasets/git/connect.c:1019:8: warning: variable 'url' is not initialized [cppcoreguidelines-init-variables]
        char *url;
              ^
                  = NULL
/datasets/git/connect.c:1020:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *host, *path;
        ^~~~~~~~~~~~~~~~~~
/datasets/git/connect.c:1020:8: warning: variable 'host' is not initialized [cppcoreguidelines-init-variables]
        char *host, *path;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/connect.c:1020:15: warning: variable 'path' is not initialized [cppcoreguidelines-init-variables]
        char *host, *path;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/connect.c:1021:8: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
        char *end;
              ^
                  = NULL
/datasets/git/connect.c:1025:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_url(url_orig))
                             ^
                              {
/datasets/git/connect.c:1027:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/connect.c:1049:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (protocol == PROTO_LOCAL)
                                    ^
                                     {
/datasets/git/connect.c:1050:3: warning: repeated branch in conditional chain [bugprone-branch-clone]
                path = end;
                ^
/datasets/git/connect.c:1050:13: note: end of the original
                path = end;
                          ^
/datasets/git/connect.c:1056:3: note: clone 1 starts here
                path = end; /* "file://$(pwd)" may be "file://C:/projects/repo" */
                ^
/datasets/git/connect.c:1053:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                 offset_1st_component(host - 2) > 1)
                                                    ^
                                                     {
/datasets/git/connect.c:1055:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (protocol == PROTO_FILE && has_dos_drive_prefix(end))
                                                                     ^
                                                                      {
/datasets/git/connect.c:1057:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/connect.c:1060:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!path || !*path)
                            ^
                             {
/datasets/git/connect.c:1069:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (separator == ':')
                             ^
                              {
/datasets/git/connect.c:1072:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (path[1] == '~')
                                   ^
                                    {
/datasets/git/connect.c:1087:14: warning: variable 'ssh' is not initialized [cppcoreguidelines-init-variables]
        const char *ssh;
                    ^
                        = NULL
/datasets/git/connect.c:1089:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if ((ssh = getenv("GIT_SSH_COMMAND")))
             ^
/datasets/git/connect.c:1089:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/connect.c:1089:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/connect.c:1089:13: warning: function is not thread safe [concurrency-mt-unsafe]
        if ((ssh = getenv("GIT_SSH_COMMAND")))
                   ^
/datasets/git/connect.c:1089:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((ssh = getenv("GIT_SSH_COMMAND")))
                                              ^
                                               {
/datasets/git/connect.c:1092:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!git_config_get_string_tmp("core.sshcommand", &ssh))
                                                                ^
                                                                 {
/datasets/git/connect.c:1109:24: warning: function is not thread safe [concurrency-mt-unsafe]
        const char *variant = getenv("GIT_SSH_VARIANT");
                              ^
/datasets/git/connect.c:1111:69: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!variant && git_config_get_string_tmp("ssh.variant", &variant))
                                                                           ^
                                                                            {
/datasets/git/connect.c:1114:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(variant, "auto"))
                                     ^
                                      {
/datasets/git/connect.c:1116:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(variant, "plink"))
                                           ^
                                            {
/datasets/git/connect.c:1118:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(variant, "putty"))
                                           ^
                                            {
/datasets/git/connect.c:1120:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(variant, "tortoiseplink"))
                                                   ^
                                                    {
/datasets/git/connect.c:1122:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(variant, "simple"))
                                            ^
                                             {
/datasets/git/connect.c:1124:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/connect.c:1132:14: warning: variable 'variant' is not initialized [cppcoreguidelines-init-variables]
        const char *variant;
                    ^
                            = NULL
/datasets/git/connect.c:1133:8: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        char *p = NULL;
              ^
/datasets/git/connect.c:1137:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ssh_variant != VARIANT_AUTO)
                                        ^
                                         {
/datasets/git/connect.c:1144:16: warning: variable 'ssh_argv' is not initialized [cppcoreguidelines-init-variables]
                const char **ssh_argv;
                             ^
                                      = NULL
/datasets/git/connect.c:1162:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !strcasecmp(variant, "ssh.exe"))
                                            ^
                                             {
/datasets/git/connect.c:1165:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                 !strcasecmp(variant, "plink.exe"))
                                                   ^
                                                    {
/datasets/git/connect.c:1168:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                 !strcasecmp(variant, "tortoiseplink.exe"))
                                                           ^
                                                            {
/datasets/git/connect.c:1181:50: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
static struct child_process *git_connect_git(int fd[2], char *hostandport,
                                                 ^
/datasets/git/connect.c:1183:11: warning: 2 adjacent parameters of 'git_connect_git' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                             enum protocol_version version,
                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/connect.c:1183:33: note: the first parameter in the range is 'version'
                                             enum protocol_version version,
                                                                   ^~~~~~~
/datasets/git/connect.c:1184:15: note: the last parameter in the range is 'flags'
                                             int flags)
                                                 ^~~~~
/datasets/git/connect.c:1184:11: note: 'enum protocol_version' and 'int' may be implicitly converted
                                             int flags)
                                             ^
/datasets/git/connect.c:1186:24: warning: variable 'conn' is not initialized [cppcoreguidelines-init-variables]
        struct child_process *conn;
                              ^
                                   = NULL
/datasets/git/connect.c:1193:22: warning: function is not thread safe [concurrency-mt-unsafe]
        char *target_host = getenv("GIT_OVERRIDE_VIRTUAL_HOST");
                            ^
/datasets/git/connect.c:1194:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (target_host)
                        ^
                         {
/datasets/git/connect.c:1196:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/connect.c:1200:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strchr(target_host, '\n') || strchr(path, '\n'))
                                                            ^
                                                             {
/datasets/git/connect.c:1207:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (git_use_proxy(hostandport))
                                       ^
                                        {
/datasets/git/connect.c:1209:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/connect.c:1241:30: warning: 2 adjacent parameters of 'push_ssh_options' of similar type ('struct strvec *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void push_ssh_options(struct strvec *args, struct strvec *env,
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/connect.c:1241:45: note: the first parameter in the range is 'args'
static void push_ssh_options(struct strvec *args, struct strvec *env,
                                            ^~~~
/datasets/git/connect.c:1241:66: note: the last parameter in the range is 'env'
static void push_ssh_options(struct strvec *args, struct strvec *env,
                                                                 ^~~
/datasets/git/connect.c:1243:9: warning: 2 adjacent parameters of 'push_ssh_options' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                             enum protocol_version version, int flags)
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/connect.c:1243:31: note: the first parameter in the range is 'version'
                             enum protocol_version version, int flags)
                                                   ^~~~~~~
/datasets/git/connect.c:1243:44: note: the last parameter in the range is 'flags'
                             enum protocol_version version, int flags)
                                                                ^~~~~
/datasets/git/connect.c:1243:40: note: 'enum protocol_version' and 'int' may be implicitly converted
                             enum protocol_version version, int flags)
                                                            ^
/datasets/git/connect.c:1253:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & CONNECT_IPV4) {
            ^~~~~
/datasets/git/connect.c:1253:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & CONNECT_IPV4) {
                    ^
/datasets/git/./connect.h:8:32: note: expanded from macro 'CONNECT_IPV4'
#define CONNECT_IPV4          (1u << 2)
                               ^     ~
/datasets/git/connect.c:1254:3: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
                switch (variant) {
                ^
/datasets/git/connect.c:1265:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        } else if (flags & CONNECT_IPV6) {
                   ^~~~~
/datasets/git/connect.c:1265:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        } else if (flags & CONNECT_IPV6) {
                           ^
/datasets/git/./connect.h:9:32: note: expanded from macro 'CONNECT_IPV6'
#define CONNECT_IPV6          (1u << 3)
                               ^     ~
/datasets/git/connect.c:1266:3: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
                switch (variant) {
                ^
/datasets/git/connect.c:1279:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (variant == VARIANT_TORTOISEPLINK)
                                             ^
                                              {
/datasets/git/connect.c:1283:3: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
                switch (variant) {
                ^
/datasets/git/connect.c:1302:55: warning: 2 adjacent parameters of 'fill_ssh_args' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void fill_ssh_args(struct child_process *conn, const char *ssh_host,
                                                      ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/connect.c:1302:67: note: the first parameter in the range is 'ssh_host'
static void fill_ssh_args(struct child_process *conn, const char *ssh_host,
                                                                  ^~~~~~~~
/datasets/git/connect.c:1303:18: note: the last parameter in the range is 'port'
                          const char *port, enum protocol_version version,
                                      ^~~~
/datasets/git/connect.c:1306:14: warning: variable 'ssh' is not initialized [cppcoreguidelines-init-variables]
        const char *ssh;
                    ^
                        = NULL
/datasets/git/connect.c:1307:19: warning: variable 'variant' is not initialized [cppcoreguidelines-init-variables]
        enum ssh_variant variant;
                         ^
/datasets/git/connect.c:1309:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (looks_like_command_line_option(ssh_host))
                                                     ^
                                                      {
/datasets/git/connect.c:1323:9: warning: function is not thread safe [concurrency-mt-unsafe]
                ssh = getenv("GIT_SSH");
                      ^
/datasets/git/connect.c:1324:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ssh)
                         ^
                          {
/datasets/git/connect.c:1361:23: warning: function 'git_connect' has cognitive complexity of 46 (threshold 25) [readability-function-cognitive-complexity]
struct child_process *git_connect(int fd[2], const char *url,
                      ^
/datasets/git/connect.c:1374:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (version == protocol_v2 && !strcmp("git-receive-pack", prog))
        ^
/datasets/git/connect.c:1374:29: note: +1
        if (version == protocol_v2 && !strcmp("git-receive-pack", prog))
                                   ^
/datasets/git/connect.c:1383:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((flags & CONNECT_DIAG_URL) && (protocol != PROTO_SSH)) {
        ^
/datasets/git/connect.c:1383:33: note: +1
        if ((flags & CONNECT_DIAG_URL) && (protocol != PROTO_SSH)) {
                                       ^
/datasets/git/connect.c:1384:32: note: +2, including nesting penalty of 1, nesting level increased to 2
                printf("Diag: url=%s\n", url ? url : "NULL");
                                             ^
/datasets/git/connect.c:1386:48: note: +2, including nesting penalty of 1, nesting level increased to 2
                printf("Diag: hostandport=%s\n", hostandport ? hostandport : "NULL");
                                                             ^
/datasets/git/connect.c:1387:34: note: +2, including nesting penalty of 1, nesting level increased to 2
                printf("Diag: path=%s\n", path ? path : "NULL");
                                               ^
/datasets/git/connect.c:1389:9: note: +1, nesting level increased to 1
        } else if (protocol == PROTO_GIT) {
               ^
/datasets/git/connect.c:1392:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/connect.c:1399:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (looks_like_command_line_option(path))
                ^
/datasets/git/connect.c:1407:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (var = local_repo_env; *var; var++)
                ^
/datasets/git/connect.c:1412:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (protocol == PROTO_SSH) {
                ^
/datasets/git/connect.c:1418:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!port)
                        ^
/datasets/git/connect.c:1421:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (flags & CONNECT_DIAG_URL) {
                        ^
/datasets/git/connect.c:1422:34: note: +4, including nesting penalty of 3, nesting level increased to 4
                                printf("Diag: url=%s\n", url ? url : "NULL");
                                                             ^
/datasets/git/connect.c:1424:47: note: +4, including nesting penalty of 3, nesting level increased to 4
                                printf("Diag: userandhost=%s\n", ssh_host ? ssh_host : "NULL");
                                                                          ^
/datasets/git/connect.c:1425:36: note: +4, including nesting penalty of 3, nesting level increased to 4
                                printf("Diag: port=%s\n", port ? port : "NONE");
                                                               ^
/datasets/git/connect.c:1426:36: note: +4, including nesting penalty of 3, nesting level increased to 4
                                printf("Diag: path=%s\n", path ? path : "NULL");
                                                               ^
/datasets/git/connect.c:1436:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/connect.c:1439:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (version > 0) {
                        ^
/datasets/git/connect.c:1447:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (start_command(conn))
                ^
/datasets/git/connect.c:1361:39: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
struct child_process *git_connect(int fd[2], const char *url,
                                      ^
/datasets/git/connect.c:1361:46: warning: 2 adjacent parameters of 'git_connect' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
struct child_process *git_connect(int fd[2], const char *url,
                                             ^~~~~~~~~~~~~~~~
/datasets/git/connect.c:1361:58: note: the first parameter in the range is 'url'
struct child_process *git_connect(int fd[2], const char *url,
                                                         ^~~
/datasets/git/connect.c:1362:19: note: the last parameter in the range is 'prog'
                                  const char *prog, int flags)
                                              ^~~~
/datasets/git/connect.c:1364:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *hostandport, *path;
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/connect.c:1364:8: warning: variable 'hostandport' is not initialized [cppcoreguidelines-init-variables]
        char *hostandport, *path;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/connect.c:1364:22: warning: variable 'path' is not initialized [cppcoreguidelines-init-variables]
        char *hostandport, *path;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/connect.c:1365:24: warning: variable 'conn' is not initialized [cppcoreguidelines-init-variables]
        struct child_process *conn;
                              ^
                                   = NULL
/datasets/git/connect.c:1366:16: warning: variable 'protocol' is not initialized [cppcoreguidelines-init-variables]
        enum protocol protocol;
                      ^
/datasets/git/connect.c:1374:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (version == protocol_v2 && !strcmp("git-receive-pack", prog))
                                                                        ^
                                                                         {
/datasets/git/connect.c:1380:2: warning: the value returned by this function should be used [cert-err33-c]
        signal(SIGCHLD, SIG_DFL);
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/connect.c:1380:2: note: cast the expression to void to silence this warning
/datasets/git/connect.c:1383:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((flags & CONNECT_DIAG_URL) && (protocol != PROTO_SSH)) {
             ^~~~~
/datasets/git/connect.c:1383:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((flags & CONNECT_DIAG_URL) && (protocol != PROTO_SSH)) {
                     ^
/datasets/git/./connect.h:7:32: note: expanded from macro 'CONNECT_DIAG_URL'
#define CONNECT_DIAG_URL      (1u << 1)
                               ^     ~
/datasets/git/connect.c:1394:22: warning: variable 'var' is not initialized [cppcoreguidelines-init-variables]
                const char *const *var;
                                   ^
                                       = NULL
/datasets/git/connect.c:1399:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (looks_like_command_line_option(path))
                                                         ^
                                                          {
/datasets/git/connect.c:1407:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (var = local_repo_env; *var; var++)
                ^
/datasets/git/connect.c:1407:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'var' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (var = local_repo_env; *var; var++)
                                           ^
/datasets/git/connect.c:1407:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (var = local_repo_env; *var; var++)
                                                       ^
                                                        {
/datasets/git/connect.c:1418:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!port)
                                  ^
                                   {
/datasets/git/connect.c:1421:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (flags & CONNECT_DIAG_URL) {
                            ^~~~~
/datasets/git/connect.c:1421:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (flags & CONNECT_DIAG_URL) {
                                    ^
/datasets/git/./connect.h:7:32: note: expanded from macro 'CONNECT_DIAG_URL'
#define CONNECT_DIAG_URL      (1u << 1)
                               ^     ~
/datasets/git/connect.c:1447:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (start_command(conn))
                                        ^
                                         {
/datasets/git/connect.c:1461:6: warning: variable 'code' is not initialized [cppcoreguidelines-init-variables]
        int code;
            ^
                 = 0
/datasets/git/connect.c:1462:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!conn || git_connection_is_socket(conn))
                                                    ^
                                                     {
/datasets/git/connected.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "object-store.h"
^        ~~~~~~~~~~~~~~~~
         "connected.h"
/datasets/git/connected.c:21:5: warning: function 'check_connected' has cognitive complexity of 44 (threshold 25) [readability-function-cognitive-complexity]
int check_connected(oid_iterate_fn fn, void *cb_data,
    ^
/datasets/git/connected.c:33:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!opt)
        ^
/datasets/git/connected.c:38:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!oid) {
        ^
/datasets/git/connected.c:39:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opt->err_fd)
                ^
/datasets/git/connected.c:44:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (transport && transport->smart_options &&
        ^
/datasets/git/connected.c:46:40: note: +1
            transport->pack_lockfiles.nr == 1 &&
                                              ^
/datasets/git/connected.c:57:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (has_promisor_remote()) {
        ^
/datasets/git/connected.c:71:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                do {
                ^
/datasets/git/connected.c:74:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (p = get_all_packs(the_repository); p; p = p->next) {
                        ^
/datasets/git/connected.c:75:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!p->pack_promisor)
                                ^
/datasets/git/connected.c:77:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (find_pack_entry_one(oid->hash, p))
                                ^
/datasets/git/connected.c:84:4: note: +1
                        goto no_promisor_pack_found;
                        ^
/datasets/git/connected.c:92:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt->shallow_file) {
        ^
/datasets/git/connected.c:99:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (has_promisor_remote())
        ^
/datasets/git/connected.c:101:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!opt->is_deepening_fetch) {
        ^
/datasets/git/connected.c:103:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opt->exclude_hidden_refs_section)
                ^
/datasets/git/connected.c:110:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt->progress)
        ^
/datasets/git/connected.c:115:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt->env)
        ^
/datasets/git/connected.c:119:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt->err_fd)
        ^
/datasets/git/connected.c:121:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/connected.c:124:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (start_command(&rev_list))
        ^
/datasets/git/connected.c:131:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        do {
        ^
/datasets/git/connected.c:140:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (new_pack && find_pack_entry_one(oid->hash, new_pack))
                ^
/datasets/git/connected.c:140:16: note: +1
                if (new_pack && find_pack_entry_one(oid->hash, new_pack))
                             ^
/datasets/git/connected.c:143:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (fprintf(rev_list_in, "%s\n", oid_to_hex(oid)) < 0)
                ^
/datasets/git/connected.c:147:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ferror(rev_list_in) || fflush(rev_list_in)) {
        ^
/datasets/git/connected.c:147:26: note: +1
        if (ferror(rev_list_in) || fflush(rev_list_in)) {
                                ^
/datasets/git/connected.c:148:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (errno != EPIPE && errno != EINVAL)
                ^
/datasets/git/connected.c:148:22: note: +1
                if (errno != EPIPE && errno != EINVAL)
                                   ^
/datasets/git/connected.c:153:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (fclose(rev_list_in))
        ^
/datasets/git/connected.c:157:35: note: +1
        return finish_command(&rev_list) || err;
                                         ^
/datasets/git/connected.c:21:36: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
int check_connected(oid_iterate_fn fn, void *cb_data,
                                   ^
/datasets/git/connected.c:25:8: warning: variable 'rev_list_in' is not initialized [cppcoreguidelines-init-variables]
        FILE *rev_list_in;
              ^
                          = NULL
/datasets/git/connected.c:27:26: warning: variable 'oid' is not initialized [cppcoreguidelines-init-variables]
        const struct object_id *oid;
                                ^
                                    = NULL
/datasets/git/connected.c:30:20: warning: variable 'transport' is not initialized [cppcoreguidelines-init-variables]
        struct transport *transport;
                          ^
                                    = NULL
/datasets/git/connected.c:31:9: warning: variable 'base_len' is not initialized [cppcoreguidelines-init-variables]
        size_t base_len;
               ^
                        = 0
/datasets/git/connected.c:33:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opt)
                 ^
                  {
/datasets/git/connected.c:39:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opt->err_fd)
                                ^
                                 {
/datasets/git/connected.c:72:23: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                        struct packed_git *p;
                                           ^
                                             = NULL
/datasets/git/connected.c:72:23: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/connected.c:74:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (p = get_all_packs(the_repository); p; p = p->next) {
                        ^
/datasets/git/connected.c:74:44: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (p = get_all_packs(the_repository); p; p = p->next) {
                                                                ^
/datasets/git/connected.c:75:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!p->pack_promisor)
                                                      ^
                                                       {
/datasets/git/connected.c:77:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (find_pack_entry_one(oid->hash, p))
                                                                      ^
                                                                       {
/datasets/git/connected.c:87:12: warning: backward branch (do loop) is ID-dependent due to variable reference to 'oid' and may cause performance degradation [altera-id-dependent-backward-branch]
                } while ((oid = fn(cb_data)) != NULL);
                         ^
/datasets/git/connected.c:72:4: note: inferred assignment of ID-dependent value from ID-dependent 
                        struct packed_git *p;
                        ^
/datasets/git/connected.c:99:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (has_promisor_remote())
                                  ^
                                   {
/datasets/git/connected.c:103:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opt->exclude_hidden_refs_section)
                                                     ^
                                                      {
/datasets/git/connected.c:110:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->progress)
                          ^
                           {
/datasets/git/connected.c:115:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->env)
                     ^
                      {
/datasets/git/connected.c:119:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->err_fd)
                        ^
                         {
/datasets/git/connected.c:121:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/connected.c:124:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (start_command(&rev_list))
                                     ^
                                      {
/datasets/git/connected.c:131:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        do {
        ^
/datasets/git/connected.c:140:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (new_pack && find_pack_entry_one(oid->hash, new_pack))
                                                                         ^
                                                                          {
/datasets/git/connected.c:143:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fprintf(rev_list_in, "%s\n", oid_to_hex(oid)) < 0)
                                                                      ^
                                                                       {
/datasets/git/connected.c:145:11: warning: backward branch (do loop) is ID-dependent due to variable reference to 'oid' and may cause performance degradation [altera-id-dependent-backward-branch]
        } while ((oid = fn(cb_data)) != NULL);
                 ^
/datasets/git/connected.c:148:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (errno != EPIPE && errno != EINVAL)
                                                      ^
                                                       {
/datasets/git/connected.c:153:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fclose(rev_list_in))
                                ^
                                 {
/datasets/git/convert.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "attr.h"
/datasets/git/convert.c:23:1: warning: replace macro with enum [modernize-macro-to-enum]
#define CONVERT_STAT_BITS_TXT_LF    0x1
^~~~~~~~
                                 =     ,
/datasets/git/convert.c:23:9: warning: macro 'CONVERT_STAT_BITS_TXT_LF' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define CONVERT_STAT_BITS_TXT_LF    0x1
        ^
/datasets/git/convert.c:24:9: warning: macro 'CONVERT_STAT_BITS_TXT_CRLF' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define CONVERT_STAT_BITS_TXT_CRLF  0x2
        ^
/datasets/git/convert.c:25:9: warning: macro 'CONVERT_STAT_BITS_BIN' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define CONVERT_STAT_BITS_BIN       0x4
        ^
/datasets/git/convert.c:27:8: warning: accessing fields in struct 'text_stat' is inefficient due to poor alignment; currently aligned to 4 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct text_stat {
       ^
/datasets/git/convert.c:27:8: note: use "__attribute__((aligned(32)))" to align struct 'text_stat' to 32 bytes
/datasets/git/convert.c:37:16: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned long i;
                      ^
                        = 0
/datasets/git/convert.c:37:16: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/convert.c:39:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(stats, 0, sizeof(*stats));
        ^~~~~~
/datasets/git/convert.c:39:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(stats, 0, sizeof(*stats));
        ^~~~~~
/datasets/git/convert.c:41:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < size; i++) {
        ^
/datasets/git/convert.c:42:17: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                unsigned char c = buf[i];
                              ^
/datasets/git/convert.c:42:21: warning: Array access (from variable 'buf') results in a null pointer dereference [clang-analyzer-core.NullDereference]
                unsigned char c = buf[i];
                                  ^
/datasets/git/convert.c:1523:8: note: Calling 'convert_to_working_tree_ca_internal'
        ret = convert_to_working_tree_ca_internal(&ca, path, src, len, dst, 1,
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:1465:9: note: Calling 'ident_to_worktree'
        ret |= ident_to_worktree(src, len, dst, ca->ident);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:1152:6: note: Assuming 'ident' is not equal to 0
        if (!ident)
            ^~~~~~
/datasets/git/convert.c:1152:2: note: Taking false branch
        if (!ident)
        ^
/datasets/git/convert.c:1156:7: note: 'cnt' is 0
        if (!cnt)
             ^~~
/datasets/git/convert.c:1156:2: note: Taking true branch
        if (!cnt)
        ^
/datasets/git/convert.c:1157:3: note: Returning without writing to 'buf->buf', which participates in a condition later
                return 0;
                ^
/datasets/git/convert.c:1157:3: note: Returning without writing to 'buf->buf'
/datasets/git/convert.c:1465:9: note: Returning from 'ident_to_worktree'
        ret |= ident_to_worktree(src, len, dst, ca->ident);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:1466:6: note: 'ret' is 0
        if (ret) {
            ^~~
/datasets/git/convert.c:1466:2: note: Taking false branch
        if (ret) {
        ^
/datasets/git/convert.c:1475:7: note: Assuming field 'drv' is null
        if ((ca->drv && (ca->drv->smudge || ca->drv->process)) || !normalizing) {
             ^~~~~~~
/datasets/git/convert.c:1475:15: note: Left side of '&&' is false
        if ((ca->drv && (ca->drv->smudge || ca->drv->process)) || !normalizing) {
                     ^
/datasets/git/convert.c:1475:61: note: 'normalizing' is 1
        if ((ca->drv && (ca->drv->smudge || ca->drv->process)) || !normalizing) {
                                                                   ^~~~~~~~~~~
/datasets/git/convert.c:1475:2: note: Taking false branch
        if ((ca->drv && (ca->drv->smudge || ca->drv->process)) || !normalizing) {
        ^
/datasets/git/convert.c:1484:6: note: 'ret' is 1
        if (ret) {
            ^~~
/datasets/git/convert.c:1484:2: note: Taking true branch
        if (ret) {
        ^
/datasets/git/convert.c:1489:15: note: Calling 'apply_filter'
        ret_filter = apply_filter(
                     ^~~~~~~~~~~~~
/datasets/git/convert.c:991:7: note: 'drv' is null
        if (!drv)
             ^~~
/datasets/git/convert.c:991:2: note: Taking true branch
        if (!drv)
        ^
/datasets/git/convert.c:992:3: note: Returning without writing to 'dst->buf', which participates in a condition later
                return 0;
                ^
/datasets/git/convert.c:992:3: note: Returning without writing to 'dst->buf'
/datasets/git/convert.c:1489:15: note: Returning from 'apply_filter'
        ret_filter = apply_filter(
                     ^~~~~~~~~~~~~
/datasets/git/convert.c:1491:7: note: 'ret_filter' is 0
        if (!ret_filter && ca->drv && ca->drv->required)
             ^~~~~~~~~~
/datasets/git/convert.c:1491:6: note: Left side of '&&' is true
        if (!ret_filter && ca->drv && ca->drv->required)
            ^
/datasets/git/convert.c:1491:25: note: Field 'drv' is null
        if (!ret_filter && ca->drv && ca->drv->required)
                               ^
/datasets/git/convert.c:1491:29: note: Left side of '&&' is false
        if (!ret_filter && ca->drv && ca->drv->required)
                                   ^
/datasets/git/convert.c:1523:8: note: Returning from 'convert_to_working_tree_ca_internal'
        ret = convert_to_working_tree_ca_internal(&ca, path, src, len, dst, 1,
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:1525:6: note: 'ret' is 1
        if (ret) {
            ^~~
/datasets/git/convert.c:1525:2: note: Taking true branch
        if (ret) {
        ^
/datasets/git/convert.c:1529:15: note: Calling 'convert_to_git'
        return ret | convert_to_git(istate, path, src, len, dst, CONV_EOL_RENORMALIZE);
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:1412:2: note: Calling 'convert_attrs'
        convert_attrs(istate, &ca, path);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:1303:6: note: Assuming 'check' is non-null
        if (!check) {
            ^~~~~~
/datasets/git/convert.c:1303:2: note: Taking false branch
        if (!check) {
        ^
/datasets/git/convert.c:1314:10: note: Field 'crlf_action' is equal to CRLF_UNDEFINED
        if (ca->crlf_action == CRLF_UNDEFINED)
                ^
/datasets/git/convert.c:1314:2: note: Taking true branch
        if (ca->crlf_action == CRLF_UNDEFINED)
        ^
/datasets/git/convert.c:1317:2: note: Value assigned to 'ca.drv', which participates in a condition later
        ca->drv = git_path_check_convert(ccheck + 2);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:1318:10: note: Field 'crlf_action' is not equal to CRLF_BINARY
        if (ca->crlf_action != CRLF_BINARY) {
                ^
/datasets/git/convert.c:1318:2: note: Taking true branch
        if (ca->crlf_action != CRLF_BINARY) {
        ^
/datasets/git/convert.c:1320:11: note: Field 'crlf_action' is not equal to CRLF_AUTO
                if (ca->crlf_action == CRLF_AUTO && eol_attr == EOL_LF)
                        ^
/datasets/git/convert.c:1320:36: note: Left side of '&&' is false
                if (ca->crlf_action == CRLF_AUTO && eol_attr == EOL_LF)
                                                 ^
/datasets/git/convert.c:1322:16: note: Field 'crlf_action' is not equal to CRLF_AUTO
                else if (ca->crlf_action == CRLF_AUTO && eol_attr == EOL_CRLF)
                             ^
/datasets/git/convert.c:1322:41: note: Left side of '&&' is false
                else if (ca->crlf_action == CRLF_AUTO && eol_attr == EOL_CRLF)
                                                      ^
/datasets/git/convert.c:1324:12: note: 'eol_attr' is not equal to EOL_LF
                else if (eol_attr == EOL_LF)
                         ^~~~~~~~
/datasets/git/convert.c:1324:8: note: Taking false branch
                else if (eol_attr == EOL_LF)
                     ^
/datasets/git/convert.c:1326:12: note: 'eol_attr' is not equal to EOL_CRLF
                else if (eol_attr == EOL_CRLF)
                         ^~~~~~~~
/datasets/git/convert.c:1326:8: note: Taking false branch
                else if (eol_attr == EOL_CRLF)
                     ^
/datasets/git/convert.c:1329:30: note: Calling 'git_path_check_encoding'
        ca->working_tree_encoding = git_path_check_encoding(ccheck + 5);
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:1232:6: note: Assuming 'value' is equal to null
        if (ATTR_UNSET(value) || !strlen(value))
            ^
/datasets/git/./attr.h:152:24: note: expanded from macro 'ATTR_UNSET'
#define ATTR_UNSET(v) ((v) == NULL)
                       ^~~~~~~~~~~
/datasets/git/convert.c:1232:24: note: Left side of '||' is true
        if (ATTR_UNSET(value) || !strlen(value))
                              ^
/datasets/git/convert.c:1233:3: note: Returning null pointer, which participates in a condition later
                return NULL;
                ^~~~~~~~~~~
/datasets/git/convert.c:1329:30: note: Returning from 'git_path_check_encoding'
        ca->working_tree_encoding = git_path_check_encoding(ccheck + 5);
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:1329:2: note: Null pointer value stored to 'ca.working_tree_encoding', which participates in a condition later
        ca->working_tree_encoding = git_path_check_encoding(ccheck + 5);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:1333:10: note: Field 'crlf_action' is not equal to CRLF_TEXT
        if (ca->crlf_action == CRLF_TEXT)
                ^
/datasets/git/convert.c:1333:2: note: Taking false branch
        if (ca->crlf_action == CRLF_TEXT)
        ^
/datasets/git/convert.c:1335:10: note: Field 'crlf_action' is equal to CRLF_UNDEFINED
        if (ca->crlf_action == CRLF_UNDEFINED && auto_crlf == AUTO_CRLF_FALSE)
                ^
/datasets/git/convert.c:1335:6: note: Left side of '&&' is true
        if (ca->crlf_action == CRLF_UNDEFINED && auto_crlf == AUTO_CRLF_FALSE)
            ^
/datasets/git/convert.c:1335:43: note: Assuming 'auto_crlf' is not equal to AUTO_CRLF_FALSE
        if (ca->crlf_action == CRLF_UNDEFINED && auto_crlf == AUTO_CRLF_FALSE)
                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:1335:2: note: Taking false branch
        if (ca->crlf_action == CRLF_UNDEFINED && auto_crlf == AUTO_CRLF_FALSE)
        ^
/datasets/git/convert.c:1337:10: note: Field 'crlf_action' is equal to CRLF_UNDEFINED
        if (ca->crlf_action == CRLF_UNDEFINED && auto_crlf == AUTO_CRLF_TRUE)
                ^
/datasets/git/convert.c:1337:6: note: Left side of '&&' is true
        if (ca->crlf_action == CRLF_UNDEFINED && auto_crlf == AUTO_CRLF_TRUE)
            ^
/datasets/git/convert.c:1337:43: note: Assuming 'auto_crlf' is not equal to AUTO_CRLF_TRUE
        if (ca->crlf_action == CRLF_UNDEFINED && auto_crlf == AUTO_CRLF_TRUE)
                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:1337:2: note: Taking false branch
        if (ca->crlf_action == CRLF_UNDEFINED && auto_crlf == AUTO_CRLF_TRUE)
        ^
/datasets/git/convert.c:1339:10: note: Field 'crlf_action' is equal to CRLF_UNDEFINED
        if (ca->crlf_action == CRLF_UNDEFINED && auto_crlf == AUTO_CRLF_INPUT)
                ^
/datasets/git/convert.c:1339:6: note: Left side of '&&' is true
        if (ca->crlf_action == CRLF_UNDEFINED && auto_crlf == AUTO_CRLF_INPUT)
            ^
/datasets/git/convert.c:1339:43: note: Assuming 'auto_crlf' is not equal to AUTO_CRLF_INPUT
        if (ca->crlf_action == CRLF_UNDEFINED && auto_crlf == AUTO_CRLF_INPUT)
                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:1339:2: note: Taking false branch
        if (ca->crlf_action == CRLF_UNDEFINED && auto_crlf == AUTO_CRLF_INPUT)
        ^
/datasets/git/convert.c:1412:2: note: Returning from 'convert_attrs'
        convert_attrs(istate, &ca, path);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:1414:9: note: Calling 'apply_filter'
        ret |= apply_filter(path, src, len, -1, dst, ca.drv, CAP_CLEAN, NULL, NULL);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:991:6: note: Assuming 'drv' is non-null
        if (!drv)
            ^~~~
/datasets/git/convert.c:991:2: note: Taking false branch
        if (!drv)
        ^
/datasets/git/convert.c:994:7: note: 'dst' is non-null
        if (!dst)
             ^~~
/datasets/git/convert.c:994:2: note: Taking false branch
        if (!dst)
        ^
/datasets/git/convert.c:997:6: note: Left side of '&&' is true
        if ((wanted_capability & CAP_CLEAN) && !drv->process && drv->clean)
            ^
/datasets/git/convert.c:997:41: note: Assuming field 'process' is null
        if ((wanted_capability & CAP_CLEAN) && !drv->process && drv->clean)
                                               ^~~~~~~~~~~~~
/datasets/git/convert.c:997:6: note: Left side of '&&' is true
        if ((wanted_capability & CAP_CLEAN) && !drv->process && drv->clean)
            ^
/datasets/git/convert.c:997:58: note: Assuming field 'clean' is non-null
        if ((wanted_capability & CAP_CLEAN) && !drv->process && drv->clean)
                                                                ^~~~~~~~~~
/datasets/git/convert.c:997:2: note: Taking true branch
        if ((wanted_capability & CAP_CLEAN) && !drv->process && drv->clean)
        ^
/datasets/git/convert.c:1002:6: note: 'cmd' is non-null
        if (cmd && *cmd)
            ^~~
/datasets/git/convert.c:1002:6: note: Left side of '&&' is true
/datasets/git/convert.c:1002:13: note: Assuming the condition is true
        if (cmd && *cmd)
                   ^~~~
/datasets/git/convert.c:1002:2: note: Taking true branch
        if (cmd && *cmd)
        ^
/datasets/git/convert.c:1003:10: note: Calling 'apply_single_file_filter'
                return apply_single_file_filter(path, src, len, fd, dst, cmd);
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:712:6: note: Assuming the condition is false
        if (start_async(&async))
            ^~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:712:2: note: Taking false branch
        if (start_async(&async))
        ^
/datasets/git/convert.c:715:6: note: Assuming the condition is false
        if (strbuf_read(&nbuf, async.out, 0) < 0) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:715:2: note: Taking false branch
        if (strbuf_read(&nbuf, async.out, 0) < 0) {
        ^
/datasets/git/convert.c:718:6: note: Assuming the condition is false
        if (close(async.out)) {
            ^~~~~~~~~~~~~~~~
/datasets/git/convert.c:718:2: note: Taking false branch
        if (close(async.out)) {
        ^
/datasets/git/convert.c:721:6: note: Assuming the condition is false
        if (finish_async(&async)) {
            ^~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:721:2: note: Taking false branch
        if (finish_async(&async)) {
        ^
/datasets/git/convert.c:725:7: note: 'err' is 0
        if (!err) {
             ^~~
/datasets/git/convert.c:725:2: note: Taking true branch
        if (!err) {
        ^
/datasets/git/convert.c:726:3: note: Calling 'strbuf_swap'
                strbuf_swap(dst, &nbuf);
                ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./strbuf.h:127:2: note: Value assigned to field 'buf', which participates in a condition later
        SWAP(*a, *b);
        ^
/datasets/git/./git-compat-util.h:764:2: note: expanded from macro 'SWAP'
        memcpy(_swap_a_ptr, _swap_b_ptr, sizeof(a) +            \
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./strbuf.h:127:2: note: Value assigned to field 'buf'
        SWAP(*a, *b);
        ^
/datasets/git/./git-compat-util.h:764:2: note: expanded from macro 'SWAP'
        memcpy(_swap_a_ptr, _swap_b_ptr, sizeof(a) +            \
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./strbuf.h:127:2: note: Loop condition is false.  Exiting loop
        SWAP(*a, *b);
        ^
/datasets/git/./git-compat-util.h:759:20: note: expanded from macro 'SWAP'
#define SWAP(a, b) do {                                         \
                   ^
/datasets/git/convert.c:726:3: note: Returning from 'strbuf_swap'
                strbuf_swap(dst, &nbuf);
                ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:729:2: note: Returning the value 1, which participates in a condition later
        return !err;
        ^~~~~~~~~~~
/datasets/git/convert.c:1003:10: note: Returning from 'apply_single_file_filter'
                return apply_single_file_filter(path, src, len, fd, dst, cmd);
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:1003:3: note: Returning the value 1, which participates in a condition later
                return apply_single_file_filter(path, src, len, fd, dst, cmd);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:1414:9: note: Returning from 'apply_filter'
        ret |= apply_filter(path, src, len, -1, dst, ca.drv, CAP_CLEAN, NULL, NULL);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:1415:7: note: 'ret' is 1
        if (!ret && ca.drv && ca.drv->required)
             ^~~
/datasets/git/convert.c:1415:11: note: Left side of '&&' is false
        if (!ret && ca.drv && ca.drv->required)
                 ^
/datasets/git/convert.c:1418:6: note: 'ret' is 1
        if (ret && dst) {
            ^~~
/datasets/git/convert.c:1418:6: note: Left side of '&&' is true
/datasets/git/convert.c:1418:13: note: 'dst' is non-null
        if (ret && dst) {
                   ^~~
/datasets/git/convert.c:1418:2: note: Taking true branch
        if (ret && dst) {
        ^
/datasets/git/convert.c:1423:9: note: Calling 'encode_to_git'
        ret |= encode_to_git(path, src, len, dst, ca.working_tree_encoding, conv_flags);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:383:7: note: 'enc' is null
        if (!enc || (src && !src_len))
             ^~~
/datasets/git/convert.c:383:11: note: Left side of '||' is true
        if (!enc || (src && !src_len))
                 ^
/datasets/git/convert.c:384:3: note: Returning without writing to 'buf->buf', which participates in a condition later
                return 0;
                ^
/datasets/git/convert.c:384:3: note: Returning without writing to 'buf->buf'
/datasets/git/convert.c:384:3: note: Returning zero, which participates in a condition later
                return 0;
                ^~~~~~~~
/datasets/git/convert.c:1423:9: note: Returning from 'encode_to_git'
        ret |= encode_to_git(path, src, len, dst, ca.working_tree_encoding, conv_flags);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:1424:6: note: 'ret' is 1
        if (ret && dst) {
            ^~~
/datasets/git/convert.c:1424:6: note: Left side of '&&' is true
/datasets/git/convert.c:1424:13: note: 'dst' is non-null
        if (ret && dst) {
                   ^~~
/datasets/git/convert.c:1424:2: note: Taking true branch
        if (ret && dst) {
        ^
/datasets/git/convert.c:1425:3: note: Value assigned to 'src'
                src = dst->buf;
                ^~~~~~~~~~~~~~
/datasets/git/convert.c:1429:2: note: Taking true branch
        if (!(conv_flags & CONV_EOL_KEEP_CRLF)) {
        ^
/datasets/git/convert.c:1430:36: note: Passing 'src' via 3rd parameter 'src'
                ret |= crlf_to_git(istate, path, src, len, dst, ca.crlf_action, conv_flags);
                                                 ^~~
/datasets/git/convert.c:1430:10: note: Calling 'crlf_to_git'
                ret |= crlf_to_git(istate, path, src, len, dst, ca.crlf_action, conv_flags);
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:497:6: note: 'crlf_action' is not equal to CRLF_BINARY
        if (crlf_action == CRLF_BINARY ||
            ^~~~~~~~~~~
/datasets/git/convert.c:497:6: note: Left side of '||' is false
/datasets/git/convert.c:498:7: note: Assuming 'src' is null
            (src && !len))
             ^~~
/datasets/git/convert.c:498:11: note: Left side of '&&' is false
            (src && !len))
                 ^
/datasets/git/convert.c:505:7: note: 'buf' is non-null
        if (!buf && !src)
             ^~~
/datasets/git/convert.c:505:11: note: Left side of '&&' is false
        if (!buf && !src)
                 ^
/datasets/git/convert.c:508:15: note: Passing null pointer value via 1st parameter 'buf'
        gather_stats(src, len, &stats);
                     ^~~
/datasets/git/convert.c:508:2: note: Calling 'gather_stats'
        gather_stats(src, len, &stats);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:41:14: note: Assuming 'i' is < 'size'
        for (i = 0; i < size; i++) {
                    ^~~~~~~~
/datasets/git/convert.c:41:2: note: Loop condition is true.  Entering loop body
        for (i = 0; i < size; i++) {
        ^
/datasets/git/convert.c:42:21: note: Array access (from variable 'buf') results in a null pointer dereference
                unsigned char c = buf[i];
                                  ^~~
/datasets/git/convert.c:47:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        } else
                              ^
                               {
/datasets/git/convert.c:55:12: warning: 127 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (c == 127)
                         ^
/datasets/git/convert.c:55:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (c == 127)
                             ^
                              {
/datasets/git/convert.c:58:16: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                else if (c < 32) {
                             ^
/datasets/git/convert.c:71:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/convert.c:76:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (size >= 1 && buf[size-1] == '\032')
                                               ^
                                                {
/datasets/git/convert.c:86:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (stats->lonecr)
                          ^
                           {
/datasets/git/convert.c:88:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (stats->nul)
                       ^
                        {
/datasets/git/convert.c:90:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((stats->printable >> 7) < stats->nonprintable)
             ^                   ~
/datasets/git/convert.c:90:27: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if ((stats->printable >> 7) < stats->nonprintable)
                                 ^
/datasets/git/convert.c:90:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((stats->printable >> 7) < stats->nonprintable)
                                                          ^
                                                           {
/datasets/git/convert.c:99:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!data || !size)
                           ^
                            {
/datasets/git/convert.c:102:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (convert_is_binary(&stats))
                                      ^
                                       {
/datasets/git/convert.c:103:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ret |= CONVERT_STAT_BITS_BIN;
                ^~~
/datasets/git/convert.c:104:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (stats.crlf)
                       ^
                        {
/datasets/git/convert.c:105:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ret |= CONVERT_STAT_BITS_TXT_CRLF;
                ^~~
/datasets/git/convert.c:106:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (stats.lonelf)
                         ^
                          {
/datasets/git/convert.c:107:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ret |=  CONVERT_STAT_BITS_TXT_LF;
                ^~~
/datasets/git/convert.c:116:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (convert_stats & CONVERT_STAT_BITS_BIN)
            ^
/datasets/git/convert.c:116:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (convert_stats & CONVERT_STAT_BITS_BIN)
                                                  ^
                                                   {
/datasets/git/convert.c:123:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        case CONVERT_STAT_BITS_TXT_LF | CONVERT_STAT_BITS_TXT_CRLF:
             ^
/datasets/git/convert.c:23:37: note: expanded from macro 'CONVERT_STAT_BITS_TXT_LF'
#define CONVERT_STAT_BITS_TXT_LF    0x1
                                    ^~~
/datasets/git/convert.c:133:14: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        const char *ret;
                    ^
                        = NULL
/datasets/git/convert.c:134:16: warning: variable 'sz' is not initialized [cppcoreguidelines-init-variables]
        unsigned long sz;
                      ^
                         = 0
/datasets/git/convert.c:134:16: warning: variable name 'sz' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/convert.c:144:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/convert.c:145:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strbuf_read_file(&sb, path, 0) >= 0)
                                                ^
                                                 {
/datasets/git/convert.c:153:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (auto_crlf == AUTO_CRLF_TRUE)
                                        ^
                                         {
/datasets/git/convert.c:155:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (auto_crlf == AUTO_CRLF_INPUT)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:155:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (auto_crlf == AUTO_CRLF_INPUT)
                                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/convert.c:157:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (core_eol == EOL_CRLF)
                                 ^
                                  {
/datasets/git/convert.c:159:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (core_eol == EOL_UNSET && EOL_NATIVE == EOL_CRLF)
                                                            ^
                                                             {
/datasets/git/convert.c:166:2: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
        switch (crlf_action) {
        ^
/datasets/git/convert.c:195:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (conv_flags & CONV_EOL_RNDTRP_DIE)
                    ^~~~~~~~~~
/datasets/git/convert.c:195:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (conv_flags & CONV_EOL_RNDTRP_DIE)
                                 ^
/datasets/git/./convert.h:13:32: note: expanded from macro 'CONV_EOL_RNDTRP_DIE'
#define CONV_EOL_RNDTRP_DIE   (1<<0) /* Die if CRLF to LF to CRLF is different */
                               ^
/datasets/git/convert.c:195:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (conv_flags & CONV_EOL_RNDTRP_DIE)
                                                     ^
                                                      {
/datasets/git/convert.c:197:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                else if (conv_flags & CONV_EOL_RNDTRP_WARN)
                         ^~~~~~~~~~
/datasets/git/convert.c:197:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                else if (conv_flags & CONV_EOL_RNDTRP_WARN)
                                      ^
/datasets/git/./convert.h:14:32: note: expanded from macro 'CONV_EOL_RNDTRP_WARN'
#define CONV_EOL_RNDTRP_WARN  (1<<1) /* Warn if CRLF to LF to CRLF is different */
                               ^
/datasets/git/convert.c:197:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (conv_flags & CONV_EOL_RNDTRP_WARN)
                                                           ^
                                                            {
/datasets/git/convert.c:205:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (conv_flags & CONV_EOL_RNDTRP_DIE)
                    ^~~~~~~~~~
/datasets/git/convert.c:205:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (conv_flags & CONV_EOL_RNDTRP_DIE)
                                 ^
/datasets/git/./convert.h:13:32: note: expanded from macro 'CONV_EOL_RNDTRP_DIE'
#define CONV_EOL_RNDTRP_DIE   (1<<0) /* Die if CRLF to LF to CRLF is different */
                               ^
/datasets/git/convert.c:205:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (conv_flags & CONV_EOL_RNDTRP_DIE)
                                                     ^
                                                      {
/datasets/git/convert.c:207:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                else if (conv_flags & CONV_EOL_RNDTRP_WARN)
                         ^~~~~~~~~~
/datasets/git/convert.c:207:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                else if (conv_flags & CONV_EOL_RNDTRP_WARN)
                                      ^
/datasets/git/./convert.h:14:32: note: expanded from macro 'CONV_EOL_RNDTRP_WARN'
#define CONV_EOL_RNDTRP_WARN  (1<<1) /* Warn if CRLF to LF to CRLF is different */
                               ^
/datasets/git/convert.c:207:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (conv_flags & CONV_EOL_RNDTRP_WARN)
                                                           ^
                                                            {
/datasets/git/convert.c:216:16: warning: variable 'sz' is not initialized [cppcoreguidelines-init-variables]
        unsigned long sz;
                      ^
                         = 0
/datasets/git/convert.c:216:16: warning: variable name 'sz' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/convert.c:217:8: warning: variable 'data' is not initialized [cppcoreguidelines-init-variables]
        void *data;
              ^
                   = NULL
/datasets/git/convert.c:218:14: warning: variable 'crp' is not initialized [cppcoreguidelines-init-variables]
        const char *crp;
                    ^
                        = NULL
/datasets/git/convert.c:222:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!data)
                  ^
                   {
/datasets/git/convert.c:227:16: warning: variable 'ret_stats' is not initialized [cppcoreguidelines-init-variables]
                unsigned int ret_stats;
                             ^
                                       = 0
/datasets/git/convert.c:229:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(ret_stats & CONVERT_STAT_BITS_BIN) &&
                      ^
/datasets/git/convert.c:230:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (ret_stats & CONVERT_STAT_BITS_TXT_CRLF))
                     ^
/datasets/git/convert.c:230:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    (ret_stats & CONVERT_STAT_BITS_TXT_CRLF))
                                                             ^
                                                              {
/datasets/git/convert.c:240:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (output_eol(crlf_action) != EOL_CRLF)
                                                ^
                                                 {
/datasets/git/convert.c:243:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!stats->lonelf)
                           ^
                            {
/datasets/git/convert.c:249:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (stats->lonecr || stats->crlf)
                                                 ^
                                                  {
/datasets/git/convert.c:252:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (convert_is_binary(stats))
                                             ^
                                              {
/datasets/git/convert.c:260:27: warning: 2 adjacent parameters of 'validate_encoding' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                      const char *data, size_t len, int die_on_error)
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:260:34: note: the first parameter in the range is 'len'
                      const char *data, size_t len, int die_on_error)
                                               ^~~
/datasets/git/convert.c:260:43: note: the last parameter in the range is 'die_on_error'
                      const char *data, size_t len, int die_on_error)
                                                        ^~~~~~~~~~~~
/datasets/git/convert.c:260:27: note: 
                      const char *data, size_t len, int die_on_error)
                                        ^
/datasets/git/convert.c:260:39: note: 'size_t' and 'int' may be implicitly converted: 'size_t' (as 'unsigned long') -> 'int', 'int' -> 'size_t' (as 'unsigned long')
                      const char *data, size_t len, int die_on_error)
                                                    ^
/datasets/git/convert.c:262:14: warning: variable 'stripped' is not initialized [cppcoreguidelines-init-variables]
        const char *stripped;
                    ^
                             = NULL
/datasets/git/convert.c:283:23: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        int stripped_len = strlen(stripped) - strlen("BE");
                                           ^
/datasets/git/convert.c:285:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (die_on_error)
                                         ^
                                          {
/datasets/git/convert.c:300:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (die_on_error)
                                         ^
                                          {
/datasets/git/convert.c:312:7: warning: 2 adjacent parameters of 'trace_encoding' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                           const char *encoding, const char *buf, size_t len)
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:312:19: note: the first parameter in the range is 'encoding'
                           const char *encoding, const char *buf, size_t len)
                                       ^~~~~~~~
/datasets/git/convert.c:312:41: note: the last parameter in the range is 'buf'
                           const char *encoding, const char *buf, size_t len)
                                                             ^~~
/datasets/git/convert.c:316:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/convert.c:316:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/convert.c:319:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < len && buf; ++i) {
        ^
/datasets/git/convert.c:324:14: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        (buf[i] > 32 && buf[i] < 127 ? buf[i] : ' '),
                                  ^
/datasets/git/convert.c:324:29: warning: 127 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        (buf[i] > 32 && buf[i] < 127 ? buf[i] : ' '),
                                                 ^
/datasets/git/convert.c:325:13: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        ((i+1) % 8 && (i+1) < len ? ' ' : '\n')
                                 ^
/datasets/git/convert.c:330:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_strbuf(&coe, &trace);
        ^
/datasets/git/./trace.h:197:2: note: expanded from macro 'trace_strbuf'
        do {                                                                \
        ^
/datasets/git/convert.c:342:14: warning: variable 'next' is not initialized [cppcoreguidelines-init-variables]
        const char *next;
                    ^
                         = NULL
/datasets/git/convert.c:343:6: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int len;
            ^
                = 0
/datasets/git/convert.c:344:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!found)
                   ^
                    {
/datasets/git/convert.c:347:8: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        len = strlen(check_roundtrip_encoding);
              ^
/datasets/git/convert.c:355:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                (isspace(found[-1]) || found[-1] == ',')
                                 ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/convert.c:365:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                (isspace(next[0]) || next[0] == ',')
                                 ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/convert.c:370:20: warning: variable 'default_encoding' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *default_encoding = "UTF-8";
                   ^
/datasets/git/convert.c:375:8: warning: variable 'dst' is not initialized [cppcoreguidelines-init-variables]
        char *dst;
              ^
                  = NULL
/datasets/git/convert.c:376:9: warning: variable 'dst_len' is not initialized [cppcoreguidelines-init-variables]
        size_t dst_len;
               ^
                       = 0
/datasets/git/convert.c:377:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int die_on_error = conv_flags & CONV_WRITE_OBJECT;
                           ^~~~~~~~~~
/datasets/git/convert.c:377:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int die_on_error = conv_flags & CONV_WRITE_OBJECT;
                                        ^
/datasets/git/./convert.h:17:32: note: expanded from macro 'CONV_WRITE_OBJECT'
#define CONV_WRITE_OBJECT     (1<<4) /* Content is written to the index */
                               ^
/datasets/git/convert.c:383:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!enc || (src && !src_len))
                                      ^
                                       {
/datasets/git/convert.c:392:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!buf && !src)
                         ^
                          {
/datasets/git/convert.c:395:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (validate_encoding(path, enc, src, src_len, die_on_error))
                                                                     ^
                                                                      {
/datasets/git/convert.c:409:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (die_on_error)
                                 ^
                                  {
/datasets/git/convert.c:438:9: warning: variable 're_src' is not initialized [cppcoreguidelines-init-variables]
                char *re_src;
                      ^
                             = NULL
/datasets/git/convert.c:439:10: warning: variable 're_src_len' is not initialized [cppcoreguidelines-init-variables]
                size_t re_src_len;
                       ^
                                  = 0
/datasets/git/convert.c:445:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                trace_printf("Checking roundtrip encoding for %s...\n", enc);
                ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/convert.c:450:7: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                    memcmp(src, re_src, src_len)) {
                    ^
                                                 != 0
/datasets/git/convert.c:463:31: warning: 2 adjacent parameters of 'encode_to_worktree' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int encode_to_worktree(const char *path, const char *src, size_t src_len,
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:463:43: note: the first parameter in the range is 'path'
static int encode_to_worktree(const char *path, const char *src, size_t src_len,
                                          ^~~~
/datasets/git/convert.c:463:61: note: the last parameter in the range is 'src'
static int encode_to_worktree(const char *path, const char *src, size_t src_len,
                                                            ^~~
/datasets/git/convert.c:466:8: warning: variable 'dst' is not initialized [cppcoreguidelines-init-variables]
        char *dst;
              ^
                  = NULL
/datasets/git/convert.c:467:9: warning: variable 'dst_len' is not initialized [cppcoreguidelines-init-variables]
        size_t dst_len;
               ^
                       = 0
/datasets/git/convert.c:473:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!enc || (src && !src_len))
                                      ^
                                       {
/datasets/git/convert.c:488:12: warning: function 'crlf_to_git' has cognitive complexity of 36 (threshold 25) [readability-function-cognitive-complexity]
static int crlf_to_git(struct index_state *istate,
           ^
/datasets/git/convert.c:497:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (crlf_action == CRLF_BINARY ||
        ^
/datasets/git/convert.c:497:33: note: +1
        if (crlf_action == CRLF_BINARY ||
                                       ^
/datasets/git/convert.c:498:11: note: +1
            (src && !len))
                 ^
/datasets/git/convert.c:505:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!buf && !src)
        ^
/datasets/git/convert.c:505:11: note: +1
        if (!buf && !src)
                 ^
/datasets/git/convert.c:512:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (crlf_action == CRLF_AUTO || crlf_action == CRLF_AUTO_INPUT || crlf_action == CRLF_AUTO_CRLF) {
        ^
/datasets/git/convert.c:512:65: note: +1
        if (crlf_action == CRLF_AUTO || crlf_action == CRLF_AUTO_INPUT || crlf_action == CRLF_AUTO_CRLF) {
                                                                       ^
/datasets/git/convert.c:513:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (convert_is_binary(&stats))
                ^
/datasets/git/convert.c:521:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((!(conv_flags & CONV_EOL_RENORMALIZE)) &&
                ^
/datasets/git/convert.c:521:46: note: +1
                if ((!(conv_flags & CONV_EOL_RENORMALIZE)) &&
                                                           ^
/datasets/git/convert.c:525:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (((conv_flags & CONV_EOL_RNDTRP_WARN) ||
        ^
/datasets/git/convert.c:525:43: note: +1
        if (((conv_flags & CONV_EOL_RNDTRP_WARN) ||
                                                 ^
/datasets/git/convert.c:526:43: note: +1
             ((conv_flags & CONV_EOL_RNDTRP_DIE) && len))) {
                                                 ^
/datasets/git/convert.c:530:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (convert_crlf_into_lf) {
                ^
/datasets/git/convert.c:535:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (will_convert_lf_to_crlf(&new_stats, crlf_action)) {
                ^
/datasets/git/convert.c:541:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!convert_crlf_into_lf)
        ^
/datasets/git/convert.c:548:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!buf)
        ^
/datasets/git/convert.c:552:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (strbuf_avail(buf) + buf->len < len)
        ^
/datasets/git/convert.c:555:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (crlf_action == CRLF_AUTO || crlf_action == CRLF_AUTO_INPUT || crlf_action == CRLF_AUTO_CRLF) {
        ^
/datasets/git/convert.c:555:65: note: +1
        if (crlf_action == CRLF_AUTO || crlf_action == CRLF_AUTO_INPUT || crlf_action == CRLF_AUTO_CRLF) {
                                                                       ^
/datasets/git/convert.c:561:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                do {
                ^
/datasets/git/convert.c:563:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (c != '\r')
                        ^
/datasets/git/convert.c:566:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/convert.c:567:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                do {
                ^
/datasets/git/convert.c:569:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (! (c == '\r' && (1 < len && *src == '\n')))
                        ^
/datasets/git/convert.c:569:21: note: +1
                        if (! (c == '\r' && (1 < len && *src == '\n')))
                                         ^
/datasets/git/convert.c:489:10: warning: 2 adjacent parameters of 'crlf_to_git' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                       const char *path, const char *src, size_t len,
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:489:22: note: the first parameter in the range is 'path'
                       const char *path, const char *src, size_t len,
                                   ^~~~
/datasets/git/convert.c:489:40: note: the last parameter in the range is 'src'
                       const char *path, const char *src, size_t len,
                                                     ^~~
/datasets/git/convert.c:491:10: warning: 2 adjacent parameters of 'crlf_to_git' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                       enum convert_crlf_action crlf_action, int conv_flags)
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:491:35: note: the first parameter in the range is 'crlf_action'
                       enum convert_crlf_action crlf_action, int conv_flags)
                                                ^~~~~~~~~~~
/datasets/git/convert.c:491:52: note: the last parameter in the range is 'conv_flags'
                       enum convert_crlf_action crlf_action, int conv_flags)
                                                                 ^~~~~~~~~~
/datasets/git/convert.c:491:48: note: 'enum convert_crlf_action' and 'int' may be implicitly converted
                       enum convert_crlf_action crlf_action, int conv_flags)
                                                             ^
/datasets/git/convert.c:494:8: warning: variable 'dst' is not initialized [cppcoreguidelines-init-variables]
        char *dst;
              ^
                  = NULL
/datasets/git/convert.c:495:6: warning: variable 'convert_crlf_into_lf' is not initialized [cppcoreguidelines-init-variables]
        int convert_crlf_into_lf;
            ^
                                 = 0
/datasets/git/convert.c:498:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            (src && !len))
                          ^
                           {
/datasets/git/convert.c:505:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!buf && !src)
                         ^
                          {
/datasets/git/convert.c:513:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (convert_is_binary(&stats))
                                              ^
                                               {
/datasets/git/convert.c:521:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((!(conv_flags & CONV_EOL_RENORMALIZE)) &&
                       ^~~~~~~~~~
/datasets/git/convert.c:521:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((!(conv_flags & CONV_EOL_RENORMALIZE)) &&
                                    ^
/datasets/git/./convert.h:15:32: note: expanded from macro 'CONV_EOL_RENORMALIZE'
#define CONV_EOL_RENORMALIZE  (1<<2) /* Convert CRLF to LF */
                               ^
/datasets/git/convert.c:522:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    has_crlf_in_index(istate, path))
                                                    ^
                                                     {
/datasets/git/convert.c:525:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (((conv_flags & CONV_EOL_RNDTRP_WARN) ||
              ^~~~~~~~~~
/datasets/git/convert.c:525:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (((conv_flags & CONV_EOL_RNDTRP_WARN) ||
                           ^
/datasets/git/./convert.h:14:32: note: expanded from macro 'CONV_EOL_RNDTRP_WARN'
#define CONV_EOL_RNDTRP_WARN  (1<<1) /* Warn if CRLF to LF to CRLF is different */
                               ^
/datasets/git/convert.c:526:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
             ((conv_flags & CONV_EOL_RNDTRP_DIE) && len))) {
               ^~~~~~~~~~
/datasets/git/convert.c:526:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
             ((conv_flags & CONV_EOL_RNDTRP_DIE) && len))) {
                            ^
/datasets/git/./convert.h:13:32: note: expanded from macro 'CONV_EOL_RNDTRP_DIE'
#define CONV_EOL_RNDTRP_DIE   (1<<0) /* Die if CRLF to LF to CRLF is different */
                               ^
/datasets/git/convert.c:528:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(&new_stats, &stats, sizeof(new_stats));
                ^~~~~~
/datasets/git/convert.c:528:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(&new_stats, &stats, sizeof(new_stats));
                ^~~~~~
/datasets/git/convert.c:541:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!convert_crlf_into_lf)
                                  ^
                                   {
/datasets/git/convert.c:548:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!buf)
                 ^
                  {
/datasets/git/convert.c:552:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strbuf_avail(buf) + buf->len < len)
                                               ^
                                                {
/datasets/git/convert.c:561:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                do {
                ^
/datasets/git/convert.c:562:18: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                        unsigned char c = *src++;
                                      ^
/datasets/git/convert.c:562:22: warning: Dereference of null pointer [clang-analyzer-core.NullDereference]
                        unsigned char c = *src++;
                                          ^
/datasets/git/convert.c:1523:8: note: Calling 'convert_to_working_tree_ca_internal'
        ret = convert_to_working_tree_ca_internal(&ca, path, src, len, dst, 1,
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:1465:9: note: Calling 'ident_to_worktree'
        ret |= ident_to_worktree(src, len, dst, ca->ident);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:1152:6: note: Assuming 'ident' is not equal to 0
        if (!ident)
            ^~~~~~
/datasets/git/convert.c:1152:2: note: Taking false branch
        if (!ident)
        ^
/datasets/git/convert.c:1156:7: note: 'cnt' is 0
        if (!cnt)
             ^~~
/datasets/git/convert.c:1156:2: note: Taking true branch
        if (!cnt)
        ^
/datasets/git/convert.c:1157:3: note: Returning without writing to 'buf->buf', which participates in a condition later
                return 0;
                ^
/datasets/git/convert.c:1157:3: note: Returning without writing to 'buf->buf'
/datasets/git/convert.c:1465:9: note: Returning from 'ident_to_worktree'
        ret |= ident_to_worktree(src, len, dst, ca->ident);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:1466:6: note: 'ret' is 0
        if (ret) {
            ^~~
/datasets/git/convert.c:1466:2: note: Taking false branch
        if (ret) {
        ^
/datasets/git/convert.c:1475:7: note: Assuming field 'drv' is null
        if ((ca->drv && (ca->drv->smudge || ca->drv->process)) || !normalizing) {
             ^~~~~~~
/datasets/git/convert.c:1475:15: note: Left side of '&&' is false
        if ((ca->drv && (ca->drv->smudge || ca->drv->process)) || !normalizing) {
                     ^
/datasets/git/convert.c:1475:61: note: 'normalizing' is 1
        if ((ca->drv && (ca->drv->smudge || ca->drv->process)) || !normalizing) {
                                                                   ^~~~~~~~~~~
/datasets/git/convert.c:1475:2: note: Taking false branch
        if ((ca->drv && (ca->drv->smudge || ca->drv->process)) || !normalizing) {
        ^
/datasets/git/convert.c:1484:6: note: 'ret' is 1
        if (ret) {
            ^~~
/datasets/git/convert.c:1484:2: note: Taking true branch
        if (ret) {
        ^
/datasets/git/convert.c:1489:15: note: Calling 'apply_filter'
        ret_filter = apply_filter(
                     ^~~~~~~~~~~~~
/datasets/git/convert.c:991:7: note: 'drv' is null
        if (!drv)
             ^~~
/datasets/git/convert.c:991:2: note: Taking true branch
        if (!drv)
        ^
/datasets/git/convert.c:992:3: note: Returning without writing to 'dst->buf', which participates in a condition later
                return 0;
                ^
/datasets/git/convert.c:992:3: note: Returning without writing to 'dst->buf'
/datasets/git/convert.c:1489:15: note: Returning from 'apply_filter'
        ret_filter = apply_filter(
                     ^~~~~~~~~~~~~
/datasets/git/convert.c:1491:7: note: 'ret_filter' is 0
        if (!ret_filter && ca->drv && ca->drv->required)
             ^~~~~~~~~~
/datasets/git/convert.c:1491:6: note: Left side of '&&' is true
        if (!ret_filter && ca->drv && ca->drv->required)
            ^
/datasets/git/convert.c:1491:25: note: Field 'drv' is null
        if (!ret_filter && ca->drv && ca->drv->required)
                               ^
/datasets/git/convert.c:1491:29: note: Left side of '&&' is false
        if (!ret_filter && ca->drv && ca->drv->required)
                                   ^
/datasets/git/convert.c:1523:8: note: Returning from 'convert_to_working_tree_ca_internal'
        ret = convert_to_working_tree_ca_internal(&ca, path, src, len, dst, 1,
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:1525:6: note: 'ret' is 1
        if (ret) {
            ^~~
/datasets/git/convert.c:1525:2: note: Taking true branch
        if (ret) {
        ^
/datasets/git/convert.c:1529:15: note: Calling 'convert_to_git'
        return ret | convert_to_git(istate, path, src, len, dst, CONV_EOL_RENORMALIZE);
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:1412:2: note: Calling 'convert_attrs'
        convert_attrs(istate, &ca, path);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:1303:6: note: Assuming 'check' is non-null
        if (!check) {
            ^~~~~~
/datasets/git/convert.c:1303:2: note: Taking false branch
        if (!check) {
        ^
/datasets/git/convert.c:1314:10: note: Field 'crlf_action' is equal to CRLF_UNDEFINED
        if (ca->crlf_action == CRLF_UNDEFINED)
                ^
/datasets/git/convert.c:1314:2: note: Taking true branch
        if (ca->crlf_action == CRLF_UNDEFINED)
        ^
/datasets/git/convert.c:1317:2: note: Value assigned to 'ca.drv', which participates in a condition later
        ca->drv = git_path_check_convert(ccheck + 2);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:1318:10: note: Field 'crlf_action' is not equal to CRLF_BINARY
        if (ca->crlf_action != CRLF_BINARY) {
                ^
/datasets/git/convert.c:1318:2: note: Taking true branch
        if (ca->crlf_action != CRLF_BINARY) {
        ^
/datasets/git/convert.c:1320:11: note: Field 'crlf_action' is not equal to CRLF_AUTO
                if (ca->crlf_action == CRLF_AUTO && eol_attr == EOL_LF)
                        ^
/datasets/git/convert.c:1320:36: note: Left side of '&&' is false
                if (ca->crlf_action == CRLF_AUTO && eol_attr == EOL_LF)
                                                 ^
/datasets/git/convert.c:1322:16: note: Field 'crlf_action' is not equal to CRLF_AUTO
                else if (ca->crlf_action == CRLF_AUTO && eol_attr == EOL_CRLF)
                             ^
/datasets/git/convert.c:1322:41: note: Left side of '&&' is false
                else if (ca->crlf_action == CRLF_AUTO && eol_attr == EOL_CRLF)
                                                      ^
/datasets/git/convert.c:1324:12: note: 'eol_attr' is not equal to EOL_LF
                else if (eol_attr == EOL_LF)
                         ^~~~~~~~
/datasets/git/convert.c:1324:8: note: Taking false branch
                else if (eol_attr == EOL_LF)
                     ^
/datasets/git/convert.c:1326:12: note: 'eol_attr' is not equal to EOL_CRLF
                else if (eol_attr == EOL_CRLF)
                         ^~~~~~~~
/datasets/git/convert.c:1326:8: note: Taking false branch
                else if (eol_attr == EOL_CRLF)
                     ^
/datasets/git/convert.c:1329:30: note: Calling 'git_path_check_encoding'
        ca->working_tree_encoding = git_path_check_encoding(ccheck + 5);
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:1232:6: note: Assuming 'value' is equal to null
        if (ATTR_UNSET(value) || !strlen(value))
            ^
/datasets/git/./attr.h:152:24: note: expanded from macro 'ATTR_UNSET'
#define ATTR_UNSET(v) ((v) == NULL)
                       ^~~~~~~~~~~
/datasets/git/convert.c:1232:24: note: Left side of '||' is true
        if (ATTR_UNSET(value) || !strlen(value))
                              ^
/datasets/git/convert.c:1233:3: note: Returning null pointer, which participates in a condition later
                return NULL;
                ^~~~~~~~~~~
/datasets/git/convert.c:1329:30: note: Returning from 'git_path_check_encoding'
        ca->working_tree_encoding = git_path_check_encoding(ccheck + 5);
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:1329:2: note: Null pointer value stored to 'ca.working_tree_encoding', which participates in a condition later
        ca->working_tree_encoding = git_path_check_encoding(ccheck + 5);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:1333:10: note: Field 'crlf_action' is not equal to CRLF_TEXT
        if (ca->crlf_action == CRLF_TEXT)
                ^
/datasets/git/convert.c:1333:2: note: Taking false branch
        if (ca->crlf_action == CRLF_TEXT)
        ^
/datasets/git/convert.c:1335:10: note: Field 'crlf_action' is equal to CRLF_UNDEFINED
        if (ca->crlf_action == CRLF_UNDEFINED && auto_crlf == AUTO_CRLF_FALSE)
                ^
/datasets/git/convert.c:1335:6: note: Left side of '&&' is true
        if (ca->crlf_action == CRLF_UNDEFINED && auto_crlf == AUTO_CRLF_FALSE)
            ^
/datasets/git/convert.c:1335:43: note: Assuming 'auto_crlf' is not equal to AUTO_CRLF_FALSE
        if (ca->crlf_action == CRLF_UNDEFINED && auto_crlf == AUTO_CRLF_FALSE)
                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:1335:2: note: Taking false branch
        if (ca->crlf_action == CRLF_UNDEFINED && auto_crlf == AUTO_CRLF_FALSE)
        ^
/datasets/git/convert.c:1337:10: note: Field 'crlf_action' is equal to CRLF_UNDEFINED
        if (ca->crlf_action == CRLF_UNDEFINED && auto_crlf == AUTO_CRLF_TRUE)
                ^
/datasets/git/convert.c:1337:6: note: Left side of '&&' is true
        if (ca->crlf_action == CRLF_UNDEFINED && auto_crlf == AUTO_CRLF_TRUE)
            ^
/datasets/git/convert.c:1337:43: note: Assuming 'auto_crlf' is not equal to AUTO_CRLF_TRUE
        if (ca->crlf_action == CRLF_UNDEFINED && auto_crlf == AUTO_CRLF_TRUE)
                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:1337:2: note: Taking false branch
        if (ca->crlf_action == CRLF_UNDEFINED && auto_crlf == AUTO_CRLF_TRUE)
        ^
/datasets/git/convert.c:1339:10: note: Field 'crlf_action' is equal to CRLF_UNDEFINED
        if (ca->crlf_action == CRLF_UNDEFINED && auto_crlf == AUTO_CRLF_INPUT)
                ^
/datasets/git/convert.c:1339:6: note: Left side of '&&' is true
        if (ca->crlf_action == CRLF_UNDEFINED && auto_crlf == AUTO_CRLF_INPUT)
            ^
/datasets/git/convert.c:1339:43: note: Assuming 'auto_crlf' is equal to AUTO_CRLF_INPUT
        if (ca->crlf_action == CRLF_UNDEFINED && auto_crlf == AUTO_CRLF_INPUT)
                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:1339:2: note: Taking true branch
        if (ca->crlf_action == CRLF_UNDEFINED && auto_crlf == AUTO_CRLF_INPUT)
        ^
/datasets/git/convert.c:1412:2: note: Returning from 'convert_attrs'
        convert_attrs(istate, &ca, path);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:1414:9: note: Calling 'apply_filter'
        ret |= apply_filter(path, src, len, -1, dst, ca.drv, CAP_CLEAN, NULL, NULL);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:991:6: note: Assuming 'drv' is non-null
        if (!drv)
            ^~~~
/datasets/git/convert.c:991:2: note: Taking false branch
        if (!drv)
        ^
/datasets/git/convert.c:994:7: note: 'dst' is non-null
        if (!dst)
             ^~~
/datasets/git/convert.c:994:2: note: Taking false branch
        if (!dst)
        ^
/datasets/git/convert.c:997:6: note: Left side of '&&' is true
        if ((wanted_capability & CAP_CLEAN) && !drv->process && drv->clean)
            ^
/datasets/git/convert.c:997:41: note: Assuming field 'process' is null
        if ((wanted_capability & CAP_CLEAN) && !drv->process && drv->clean)
                                               ^~~~~~~~~~~~~
/datasets/git/convert.c:997:6: note: Left side of '&&' is true
        if ((wanted_capability & CAP_CLEAN) && !drv->process && drv->clean)
            ^
/datasets/git/convert.c:997:58: note: Assuming field 'clean' is non-null
        if ((wanted_capability & CAP_CLEAN) && !drv->process && drv->clean)
                                                                ^~~~~~~~~~
/datasets/git/convert.c:997:2: note: Taking true branch
        if ((wanted_capability & CAP_CLEAN) && !drv->process && drv->clean)
        ^
/datasets/git/convert.c:1002:6: note: 'cmd' is non-null
        if (cmd && *cmd)
            ^~~
/datasets/git/convert.c:1002:6: note: Left side of '&&' is true
/datasets/git/convert.c:1002:13: note: Assuming the condition is true
        if (cmd && *cmd)
                   ^~~~
/datasets/git/convert.c:1002:2: note: Taking true branch
        if (cmd && *cmd)
        ^
/datasets/git/convert.c:1003:10: note: Calling 'apply_single_file_filter'
                return apply_single_file_filter(path, src, len, fd, dst, cmd);
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:712:6: note: Assuming the condition is false
        if (start_async(&async))
            ^~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:712:2: note: Taking false branch
        if (start_async(&async))
        ^
/datasets/git/convert.c:715:6: note: Assuming the condition is false
        if (strbuf_read(&nbuf, async.out, 0) < 0) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:715:2: note: Taking false branch
        if (strbuf_read(&nbuf, async.out, 0) < 0) {
        ^
/datasets/git/convert.c:718:6: note: Assuming the condition is false
        if (close(async.out)) {
            ^~~~~~~~~~~~~~~~
/datasets/git/convert.c:718:2: note: Taking false branch
        if (close(async.out)) {
        ^
/datasets/git/convert.c:721:6: note: Assuming the condition is false
        if (finish_async(&async)) {
            ^~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:721:2: note: Taking false branch
        if (finish_async(&async)) {
        ^
/datasets/git/convert.c:725:7: note: 'err' is 0
        if (!err) {
             ^~~
/datasets/git/convert.c:725:2: note: Taking true branch
        if (!err) {
        ^
/datasets/git/convert.c:726:3: note: Calling 'strbuf_swap'
                strbuf_swap(dst, &nbuf);
                ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./strbuf.h:127:2: note: Value assigned to field 'buf', which participates in a condition later
        SWAP(*a, *b);
        ^
/datasets/git/./git-compat-util.h:764:2: note: expanded from macro 'SWAP'
        memcpy(_swap_a_ptr, _swap_b_ptr, sizeof(a) +            \
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./strbuf.h:127:2: note: Value assigned to field 'buf'
        SWAP(*a, *b);
        ^
/datasets/git/./git-compat-util.h:764:2: note: expanded from macro 'SWAP'
        memcpy(_swap_a_ptr, _swap_b_ptr, sizeof(a) +            \
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./strbuf.h:127:2: note: Loop condition is false.  Exiting loop
        SWAP(*a, *b);
        ^
/datasets/git/./git-compat-util.h:759:20: note: expanded from macro 'SWAP'
#define SWAP(a, b) do {                                         \
                   ^
/datasets/git/convert.c:726:3: note: Returning from 'strbuf_swap'
                strbuf_swap(dst, &nbuf);
                ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:729:2: note: Returning the value 1, which participates in a condition later
        return !err;
        ^~~~~~~~~~~
/datasets/git/convert.c:1003:10: note: Returning from 'apply_single_file_filter'
                return apply_single_file_filter(path, src, len, fd, dst, cmd);
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:1003:3: note: Returning the value 1, which participates in a condition later
                return apply_single_file_filter(path, src, len, fd, dst, cmd);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:1414:9: note: Returning from 'apply_filter'
        ret |= apply_filter(path, src, len, -1, dst, ca.drv, CAP_CLEAN, NULL, NULL);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:1415:7: note: 'ret' is 1
        if (!ret && ca.drv && ca.drv->required)
             ^~~
/datasets/git/convert.c:1415:11: note: Left side of '&&' is false
        if (!ret && ca.drv && ca.drv->required)
                 ^
/datasets/git/convert.c:1418:6: note: 'ret' is 1
        if (ret && dst) {
            ^~~
/datasets/git/convert.c:1418:6: note: Left side of '&&' is true
/datasets/git/convert.c:1418:13: note: 'dst' is non-null
        if (ret && dst) {
                   ^~~
/datasets/git/convert.c:1418:2: note: Taking true branch
        if (ret && dst) {
        ^
/datasets/git/convert.c:1423:9: note: Calling 'encode_to_git'
        ret |= encode_to_git(path, src, len, dst, ca.working_tree_encoding, conv_flags);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:383:7: note: 'enc' is null
        if (!enc || (src && !src_len))
             ^~~
/datasets/git/convert.c:383:11: note: Left side of '||' is true
        if (!enc || (src && !src_len))
                 ^
/datasets/git/convert.c:384:3: note: Returning without writing to 'buf->buf', which participates in a condition later
                return 0;
                ^
/datasets/git/convert.c:384:3: note: Returning without writing to 'buf->buf'
/datasets/git/convert.c:384:3: note: Returning zero, which participates in a condition later
                return 0;
                ^~~~~~~~
/datasets/git/convert.c:1423:9: note: Returning from 'encode_to_git'
        ret |= encode_to_git(path, src, len, dst, ca.working_tree_encoding, conv_flags);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:1424:6: note: 'ret' is 1
        if (ret && dst) {
            ^~~
/datasets/git/convert.c:1424:6: note: Left side of '&&' is true
/datasets/git/convert.c:1424:13: note: 'dst' is non-null
        if (ret && dst) {
                   ^~~
/datasets/git/convert.c:1424:2: note: Taking true branch
        if (ret && dst) {
        ^
/datasets/git/convert.c:1425:3: note: Value assigned to 'src'
                src = dst->buf;
                ^~~~~~~~~~~~~~
/datasets/git/convert.c:1429:2: note: Taking true branch
        if (!(conv_flags & CONV_EOL_KEEP_CRLF)) {
        ^
/datasets/git/convert.c:1430:36: note: Passing 'src' via 3rd parameter 'src'
                ret |= crlf_to_git(istate, path, src, len, dst, ca.crlf_action, conv_flags);
                                                 ^~~
/datasets/git/convert.c:1430:10: note: Calling 'crlf_to_git'
                ret |= crlf_to_git(istate, path, src, len, dst, ca.crlf_action, conv_flags);
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:497:6: note: 'crlf_action' is not equal to CRLF_BINARY
        if (crlf_action == CRLF_BINARY ||
            ^~~~~~~~~~~
/datasets/git/convert.c:497:6: note: Left side of '||' is false
/datasets/git/convert.c:498:7: note: Assuming 'src' is null
            (src && !len))
             ^~~
/datasets/git/convert.c:498:11: note: Left side of '&&' is false
            (src && !len))
                 ^
/datasets/git/convert.c:505:7: note: 'buf' is non-null
        if (!buf && !src)
             ^~~
/datasets/git/convert.c:505:11: note: Left side of '&&' is false
        if (!buf && !src)
                 ^
/datasets/git/convert.c:510:26: note: Assuming field 'crlf' is not equal to 0
        convert_crlf_into_lf = !!stats.crlf;
                                ^~~~~~~~~~~
/datasets/git/convert.c:512:6: note: 'crlf_action' is not equal to CRLF_AUTO
        if (crlf_action == CRLF_AUTO || crlf_action == CRLF_AUTO_INPUT || crlf_action == CRLF_AUTO_CRLF) {
            ^~~~~~~~~~~
/datasets/git/convert.c:512:6: note: Left side of '||' is false
/datasets/git/convert.c:512:34: note: 'crlf_action' is equal to CRLF_AUTO_INPUT
        if (crlf_action == CRLF_AUTO || crlf_action == CRLF_AUTO_INPUT || crlf_action == CRLF_AUTO_CRLF) {
                                        ^~~~~~~~~~~
/datasets/git/convert.c:512:65: note: Left side of '||' is true
        if (crlf_action == CRLF_AUTO || crlf_action == CRLF_AUTO_INPUT || crlf_action == CRLF_AUTO_CRLF) {
                                                                       ^
/datasets/git/convert.c:513:3: note: Taking false branch
                if (convert_is_binary(&stats))
                ^
/datasets/git/convert.c:521:46: note: Left side of '&&' is false
                if ((!(conv_flags & CONV_EOL_RENORMALIZE)) &&
                                                           ^
/datasets/git/convert.c:525:7: note: Left side of '||' is false
        if (((conv_flags & CONV_EOL_RNDTRP_WARN) ||
             ^
/datasets/git/convert.c:526:43: note: Left side of '&&' is false
             ((conv_flags & CONV_EOL_RNDTRP_DIE) && len))) {
                                                 ^
/datasets/git/convert.c:541:7: note: 'convert_crlf_into_lf' is 1
        if (!convert_crlf_into_lf)
             ^~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:541:2: note: Taking false branch
        if (!convert_crlf_into_lf)
        ^
/datasets/git/convert.c:548:7: note: 'buf' is non-null
        if (!buf)
             ^~~
/datasets/git/convert.c:548:2: note: Taking false branch
        if (!buf)
        ^
/datasets/git/convert.c:552:2: note: Taking false branch
        if (strbuf_avail(buf) + buf->len < len)
        ^
/datasets/git/convert.c:555:6: note: 'crlf_action' is not equal to CRLF_AUTO
        if (crlf_action == CRLF_AUTO || crlf_action == CRLF_AUTO_INPUT || crlf_action == CRLF_AUTO_CRLF) {
            ^~~~~~~~~~~
/datasets/git/convert.c:555:6: note: Left side of '||' is false
/datasets/git/convert.c:555:34: note: 'crlf_action' is equal to CRLF_AUTO_INPUT
        if (crlf_action == CRLF_AUTO || crlf_action == CRLF_AUTO_INPUT || crlf_action == CRLF_AUTO_CRLF) {
                                        ^~~~~~~~~~~
/datasets/git/convert.c:555:65: note: Left side of '||' is true
        if (crlf_action == CRLF_AUTO || crlf_action == CRLF_AUTO_INPUT || crlf_action == CRLF_AUTO_CRLF) {
                                                                       ^
/datasets/git/convert.c:562:22: note: Dereference of null pointer
                        unsigned char c = *src++;
                                          ^~~~~~
/datasets/git/convert.c:563:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (c != '\r')
                                      ^
                                       {
/datasets/git/convert.c:564:14: warning: narrowing conversion from 'unsigned char' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                *dst++ = c;
                                         ^
/datasets/git/convert.c:567:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                do {
                ^
/datasets/git/convert.c:568:18: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                        unsigned char c = *src++;
                                      ^
/datasets/git/convert.c:569:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (! (c == '\r' && (1 < len && *src == '\n')))
                                                                       ^
                                                                        {
/datasets/git/convert.c:570:14: warning: narrowing conversion from 'unsigned char' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                *dst++ = c;
                                         ^
/datasets/git/convert.c:583:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!len || output_eol(crlf_action) != EOL_CRLF)
                                                        ^
                                                         {
/datasets/git/convert.c:587:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!will_convert_lf_to_crlf(&stats, crlf_action))
                                                          ^
                                                           {
/datasets/git/convert.c:591:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (src == buf->buf)
                            ^
                             {
/datasets/git/convert.c:595:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/convert.c:596:15: warning: variable name 'nl' is too short, expected at least 3 characters [readability-identifier-length]
                const char *nl = memchr(src, '\n', len);
                            ^
/datasets/git/convert.c:597:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!nl)
                        ^
                         {
/datasets/git/convert.c:614:8: warning: accessing fields in struct 'filter_params' is inefficient due to padding; only needs 36 bytes but is using 40 bytes [altera-struct-pack-align]
struct filter_params {
       ^
/datasets/git/convert.c:614:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'filter_params'
/datasets/git/convert.c:614:8: warning: accessing fields in struct 'filter_params' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct filter_params {
       ^
/datasets/git/convert.c:614:8: note: use "__attribute__((aligned(64)))" to align struct 'filter_params' to 64 bytes
/datasets/git/convert.c:622:32: warning: 2 adjacent parameters of 'filter_buffer_or_fd' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int filter_buffer_or_fd(int in UNUSED, int out, void *data)
                               ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:622:36: note: the first parameter in the range is 'in'
static int filter_buffer_or_fd(int in UNUSED, int out, void *data)
                                   ^~
/datasets/git/convert.c:622:51: note: the last parameter in the range is 'out'
static int filter_buffer_or_fd(int in UNUSED, int out, void *data)
                                                  ^~~
/datasets/git/convert.c:622:36: warning: parameter name 'in' is too short, expected at least 3 characters [readability-identifier-length]
static int filter_buffer_or_fd(int in UNUSED, int out, void *data)
                                   ^
/datasets/git/convert.c:629:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int write_err, status;
        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:629:6: warning: variable 'write_err' is not initialized [cppcoreguidelines-init-variables]
        int write_err, status;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/convert.c:629:17: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int write_err, status;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/convert.c:663:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (errno == EPIPE)
                                   ^
                                    {
/datasets/git/convert.c:667:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (write_err == COPY_WRITE_ERROR && errno == EPIPE)
                                                                    ^
                                                                     {
/datasets/git/convert.c:671:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (close(child_process.in))
                                    ^
                                     {
/datasets/git/convert.c:673:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_err)
                      ^
                       {
/datasets/git/convert.c:680:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (status)
                   ^
                    {
/datasets/git/convert.c:687:37: warning: 2 adjacent parameters of 'apply_single_file_filter' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int apply_single_file_filter(const char *path, const char *src, size_t len, int fd,
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:687:49: note: the first parameter in the range is 'path'
static int apply_single_file_filter(const char *path, const char *src, size_t len, int fd,
                                                ^~~~
/datasets/git/convert.c:687:67: note: the last parameter in the range is 'src'
static int apply_single_file_filter(const char *path, const char *src, size_t len, int fd,
                                                                  ^~~
/datasets/git/convert.c:687:72: warning: 2 adjacent parameters of 'apply_single_file_filter' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int apply_single_file_filter(const char *path, const char *src, size_t len, int fd,
                                                                       ^~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:687:79: note: the first parameter in the range is 'len'
static int apply_single_file_filter(const char *path, const char *src, size_t len, int fd,
                                                                              ^~~
/datasets/git/convert.c:687:88: note: the last parameter in the range is 'fd'
static int apply_single_file_filter(const char *path, const char *src, size_t len, int fd,
                                                                                       ^~
/datasets/git/convert.c:687:72: note: 
static int apply_single_file_filter(const char *path, const char *src, size_t len, int fd,
                                                                       ^
/datasets/git/convert.c:687:84: note: 'size_t' and 'int' may be implicitly converted: 'size_t' (as 'unsigned long') -> 'int', 'int' -> 'size_t' (as 'unsigned long')
static int apply_single_file_filter(const char *path, const char *src, size_t len, int fd,
                                                                                   ^
/datasets/git/convert.c:687:88: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
static int apply_single_file_filter(const char *path, const char *src, size_t len, int fd,
                                                                                       ^
/datasets/git/convert.c:701:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&async, 0, sizeof(async));
        ^~~~~~
/datasets/git/convert.c:701:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&async, 0, sizeof(async));
        ^~~~~~
/datasets/git/convert.c:711:2: warning: the value returned by this function should be used [cert-err33-c]
        fflush(NULL);
        ^~~~~~~~~~~~
/datasets/git/convert.c:711:2: note: cast the expression to void to silence this warning
/datasets/git/convert.c:712:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (start_async(&async))
                                ^
                                 {
/datasets/git/convert.c:732:1: warning: replace macro with enum [modernize-macro-to-enum]
#define CAP_CLEAN    (1u<<0)
^~~~~~~~
                  =         ,
/datasets/git/convert.c:732:9: warning: macro 'CAP_CLEAN' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define CAP_CLEAN    (1u<<0)
        ^
/datasets/git/convert.c:733:9: warning: macro 'CAP_SMUDGE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define CAP_SMUDGE   (1u<<1)
        ^
/datasets/git/convert.c:734:9: warning: macro 'CAP_DELAY' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define CAP_DELAY    (1u<<2)
        ^
/datasets/git/convert.c:736:8: warning: accessing fields in struct 'cmd2process' is inefficient due to padding; only needs 148 bytes but is using 152 bytes [altera-struct-pack-align]
struct cmd2process {
       ^
/datasets/git/convert.c:736:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'cmd2process'
/datasets/git/convert.c:736:8: warning: accessing fields in struct 'cmd2process' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct cmd2process {
       ^
/datasets/git/convert.c:736:8: note: use "__attribute__((aligned(128)))" to align struct 'cmd2process' to 128 bytes
/datasets/git/convert.c:741:12: warning: variable 'subprocess_map_initialized' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int subprocess_map_initialized;
           ^
/datasets/git/convert.c:742:23: warning: variable 'subprocess_map' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct hashmap subprocess_map;
                      ^
/datasets/git/convert.c:748:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                { "clean",  CAP_CLEAN  },
                            ^
/datasets/git/convert.c:732:23: note: expanded from macro 'CAP_CLEAN'
#define CAP_CLEAN    (1u<<0)
                      ^   ~
/datasets/git/convert.c:749:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                { "smudge", CAP_SMUDGE },
                            ^
/datasets/git/convert.c:733:23: note: expanded from macro 'CAP_SMUDGE'
#define CAP_SMUDGE   (1u<<1)
                      ^   ~
/datasets/git/convert.c:750:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                { "delay",  CAP_DELAY  },
                            ^
/datasets/git/convert.c:734:23: note: expanded from macro 'CAP_DELAY'
#define CAP_DELAY    (1u<<2)
                      ^   ~
/datasets/git/convert.c:763:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(filter_status->buf, "error"))
                                                 ^
                                                  {
/datasets/git/convert.c:783:12: warning: function 'apply_multi_file_filter' has cognitive complexity of 50 (threshold 25) [readability-function-cognitive-complexity]
static int apply_multi_file_filter(const char *path, const char *src, size_t len,
           ^
/datasets/git/convert.c:797:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!subprocess_map_initialized) {
        ^
/datasets/git/convert.c:801:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/convert.c:807:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!entry) {
        ^
/datasets/git/convert.c:811:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (subprocess_start(&subprocess_map, &entry->subprocess, cmd, start_multi_file_filter_fn)) {
                ^
/datasets/git/convert.c:818:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!(entry->supported_capabilities & wanted_capability))
        ^
/datasets/git/convert.c:821:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (wanted_capability & CAP_CLEAN)
        ^
/datasets/git/convert.c:823:7: note: +1, nesting level increased to 1
        else if (wanted_capability & CAP_SMUDGE)
             ^
/datasets/git/convert.c:825:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/convert.c:830:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(strlen(filter_type) < LARGE_PACKET_DATA_MAX - strlen("command=\n"));
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/convert.c:830:2: note: nesting level increased to 1
        assert(strlen(filter_type) < LARGE_PACKET_DATA_MAX - strlen("command=\n"));
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/convert.c:830:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(strlen(filter_type) < LARGE_PACKET_DATA_MAX - strlen("command=\n"));
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/convert.c:830:2: note: +1, nesting level increased to 2
        assert(strlen(filter_type) < LARGE_PACKET_DATA_MAX - strlen("command=\n"));
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/convert.c:832:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (err)
        ^
/datasets/git/convert.c:836:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (err) {
        ^
/datasets/git/convert.c:838:3: note: +1
                goto done;
                ^
/datasets/git/convert.c:842:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (err)
        ^
/datasets/git/convert.c:845:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (meta && meta->refname) {
        ^
/datasets/git/convert.c:845:11: note: +1
        if (meta && meta->refname) {
                 ^
/datasets/git/convert.c:847:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (err)
                ^
/datasets/git/convert.c:851:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (meta && !is_null_oid(&meta->treeish)) {
        ^
/datasets/git/convert.c:851:11: note: +1
        if (meta && !is_null_oid(&meta->treeish)) {
                 ^
/datasets/git/convert.c:853:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (err)
                ^
/datasets/git/convert.c:857:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (meta && !is_null_oid(&meta->blob)) {
        ^
/datasets/git/convert.c:857:11: note: +1
        if (meta && !is_null_oid(&meta->blob)) {
                 ^
/datasets/git/convert.c:859:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (err)
                ^
/datasets/git/convert.c:863:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((entry->supported_capabilities & CAP_DELAY) &&
        ^
/datasets/git/convert.c:864:10: note: +1
            dco && dco->state == CE_CAN_DELAY) {
                ^
/datasets/git/convert.c:867:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (err)
                ^
/datasets/git/convert.c:872:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (err)
        ^
/datasets/git/convert.c:875:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (fd >= 0)
        ^
/datasets/git/convert.c:877:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/convert.c:879:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (err)
        ^
/datasets/git/convert.c:883:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (err)
        ^
/datasets/git/convert.c:887:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (err)
        ^
/datasets/git/convert.c:890:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (can_delay && !strcmp(filter_status.buf, "delayed")) {
        ^
/datasets/git/convert.c:890:16: note: +1
        if (can_delay && !strcmp(filter_status.buf, "delayed")) {
                      ^
/datasets/git/convert.c:893:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/convert.c:896:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (err)
                ^
/datasets/git/convert.c:901:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (err)
                ^
/datasets/git/convert.c:905:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (err)
                ^
/datasets/git/convert.c:914:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (err)
        ^
/datasets/git/convert.c:916:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/convert.c:783:36: warning: 2 adjacent parameters of 'apply_multi_file_filter' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int apply_multi_file_filter(const char *path, const char *src, size_t len,
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:783:48: note: the first parameter in the range is 'path'
static int apply_multi_file_filter(const char *path, const char *src, size_t len,
                                               ^~~~
/datasets/git/convert.c:783:66: note: the last parameter in the range is 'src'
static int apply_multi_file_filter(const char *path, const char *src, size_t len,
                                                                 ^~~
/datasets/git/convert.c:783:71: warning: 2 adjacent parameters of 'apply_multi_file_filter' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int apply_multi_file_filter(const char *path, const char *src, size_t len,
                                                                      ^~~~~~~~~~~
/datasets/git/convert.c:783:78: note: the first parameter in the range is 'len'
static int apply_multi_file_filter(const char *path, const char *src, size_t len,
                                                                             ^~~
/datasets/git/convert.c:784:12: note: the last parameter in the range is 'fd'
                                   int fd, struct strbuf *dst, const char *cmd,
                                       ^~
/datasets/git/convert.c:783:71: note: 
static int apply_multi_file_filter(const char *path, const char *src, size_t len,
                                                                      ^
/datasets/git/convert.c:784:8: note: 'size_t' and 'int' may be implicitly converted: 'size_t' (as 'unsigned long') -> 'int', 'int' -> 'size_t' (as 'unsigned long')
                                   int fd, struct strbuf *dst, const char *cmd,
                                   ^
/datasets/git/convert.c:784:12: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
                                   int fd, struct strbuf *dst, const char *cmd,
                                       ^
/datasets/git/convert.c:789:6: warning: variable 'err' is not initialized [cppcoreguidelines-init-variables]
        int err;
            ^
                = 0
/datasets/git/convert.c:791:22: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
        struct cmd2process *entry;
                            ^
                                  = NULL
/datasets/git/convert.c:792:24: warning: variable 'process' is not initialized [cppcoreguidelines-init-variables]
        struct child_process *process;
                              ^
                                      = NULL
/datasets/git/convert.c:795:14: warning: variable 'filter_type' is not initialized [cppcoreguidelines-init-variables]
        const char *filter_type;
                    ^
                                = NULL
/datasets/git/convert.c:805:2: warning: the value returned by this function should be used [cert-err33-c]
        fflush(NULL);
        ^~~~~~~~~~~~
/datasets/git/convert.c:805:2: note: cast the expression to void to silence this warning
/datasets/git/convert.c:818:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(entry->supported_capabilities & wanted_capability))
                                                                 ^
                                                                  {
/datasets/git/convert.c:821:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (wanted_capability & CAP_CLEAN)
                                ^
/datasets/git/convert.c:732:23: note: expanded from macro 'CAP_CLEAN'
#define CAP_CLEAN    (1u<<0)
                      ^   ~
/datasets/git/convert.c:821:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (wanted_capability & CAP_CLEAN)
                                          ^
                                           {
/datasets/git/convert.c:823:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        else if (wanted_capability & CAP_SMUDGE)
                                     ^
/datasets/git/convert.c:733:23: note: expanded from macro 'CAP_SMUDGE'
#define CAP_SMUDGE   (1u<<1)
                      ^   ~
/datasets/git/convert.c:823:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (wanted_capability & CAP_SMUDGE)
                                                ^
                                                 {
/datasets/git/convert.c:825:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/convert.c:832:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err)
                ^
                 {
/datasets/git/convert.c:842:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err)
                ^
                 {
/datasets/git/convert.c:847:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err)
                        ^
                         {
/datasets/git/convert.c:853:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err)
                        ^
                         {
/datasets/git/convert.c:859:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err)
                        ^
                         {
/datasets/git/convert.c:863:39: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((entry->supported_capabilities & CAP_DELAY) &&
                                             ^
/datasets/git/convert.c:734:23: note: expanded from macro 'CAP_DELAY'
#define CAP_DELAY    (1u<<2)
                      ^   ~
/datasets/git/convert.c:867:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err)
                        ^
                         {
/datasets/git/convert.c:872:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err)
                ^
                 {
/datasets/git/convert.c:875:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fd >= 0)
                    ^
                     {
/datasets/git/convert.c:877:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/convert.c:879:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err)
                ^
                 {
/datasets/git/convert.c:883:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err)
                ^
                 {
/datasets/git/convert.c:887:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err)
                ^
                 {
/datasets/git/convert.c:896:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err)
                        ^
                         {
/datasets/git/convert.c:900:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                                PACKET_READ_GENTLE_ON_EOF) < 0;
                                                ^
/datasets/git/./pkt-line.h:84:43: note: expanded from macro 'PACKET_READ_GENTLE_ON_EOF'
#define PACKET_READ_GENTLE_ON_EOF        (1u<<0)
                                          ^   ~
/datasets/git/convert.c:901:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err)
                        ^
                         {
/datasets/git/convert.c:905:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err)
                        ^
                         {
/datasets/git/convert.c:914:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err)
                ^
                 {
/datasets/git/convert.c:916:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/convert.c:926:6: warning: variable 'err' is not initialized [cppcoreguidelines-init-variables]
        int err;
            ^
                = 0
/datasets/git/convert.c:927:8: warning: variable 'line' is not initialized [cppcoreguidelines-init-variables]
        char *line;
              ^
                   = NULL
/datasets/git/convert.c:928:22: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
        struct cmd2process *entry;
                            ^
                                  = NULL
/datasets/git/convert.c:929:24: warning: variable 'process' is not initialized [cppcoreguidelines-init-variables]
        struct child_process *process;
                              ^
                                      = NULL
/datasets/git/convert.c:944:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err)
                ^
                 {
/datasets/git/convert.c:948:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err)
                ^
                 {
/datasets/git/convert.c:951:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((line = packet_read_line(process->out, NULL))) {
        ^
/datasets/git/convert.c:951:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'line' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((line = packet_read_line(process->out, NULL))) {
               ^
/datasets/git/convert.c:952:15: warning: variable 'path' is not initialized [cppcoreguidelines-init-variables]
                const char *path;
                            ^
                                 = NULL
/datasets/git/convert.c:953:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (skip_prefix(line, "pathname=", &path))
                                                          ^
                                                           {
/datasets/git/convert.c:955:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/convert.c:960:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err)
                ^
                 {
/datasets/git/convert.c:968:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err)
                ^
                 {
/datasets/git/convert.c:974:15: warning: accessing fields in struct 'convert_driver' is inefficient due to padding; only needs 44 bytes but is using 48 bytes [altera-struct-pack-align]
static struct convert_driver {
              ^
/datasets/git/convert.c:974:15: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'convert_driver'
/datasets/git/convert.c:974:15: warning: accessing fields in struct 'convert_driver' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
static struct convert_driver {
              ^
/datasets/git/convert.c:974:15: note: use "__attribute__((aligned(64)))" to align struct 'convert_driver' to 64 bytes
/datasets/git/convert.c:981:4: warning: variable 'user_convert' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} *user_convert, **user_convert_tail;
   ^
/datasets/git/convert.c:981:4: warning: variable 'user_convert' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/convert.c:981:20: warning: variable 'user_convert_tail' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} *user_convert, **user_convert_tail;
                   ^
/datasets/git/convert.c:981:20: warning: variable 'user_convert_tail' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/convert.c:984:8: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
                        int fd, struct strbuf *dst, struct convert_driver *drv,
                            ^
/datasets/git/convert.c:991:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!drv)
                 ^
                  {
/datasets/git/convert.c:994:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!dst)
                 ^
                  {
/datasets/git/convert.c:997:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((wanted_capability & CAP_CLEAN) && !drv->process && drv->clean)
                                 ^
/datasets/git/convert.c:732:23: note: expanded from macro 'CAP_CLEAN'
#define CAP_CLEAN    (1u<<0)
                      ^   ~
/datasets/git/convert.c:997:69: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((wanted_capability & CAP_CLEAN) && !drv->process && drv->clean)
                                                                           ^
                                                                            {
/datasets/git/convert.c:999:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        else if ((wanted_capability & CAP_SMUDGE) && !drv->process && drv->smudge)
                                      ^
/datasets/git/convert.c:733:23: note: expanded from macro 'CAP_SMUDGE'
#define CAP_SMUDGE   (1u<<1)
                      ^   ~
/datasets/git/convert.c:999:76: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if ((wanted_capability & CAP_SMUDGE) && !drv->process && drv->smudge)
                                                                                  ^
                                                                                   {
/datasets/git/convert.c:1002:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cmd && *cmd)
                        ^
                         {
/datasets/git/convert.c:1004:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (drv->process && *drv->process)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:1004:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (drv->process && *drv->process)
                                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/convert.c:1011:74: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int read_convert_config(const char *var, const char *value, void *cb UNUSED)
                                                                         ^
/datasets/git/convert.c:1013:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *key, *name;
        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:1013:14: warning: variable 'key' is not initialized [cppcoreguidelines-init-variables]
        const char *key, *name;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/convert.c:1013:20: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
        const char *key, *name;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/convert.c:1014:9: warning: variable 'namelen' is not initialized [cppcoreguidelines-init-variables]
        size_t namelen;
               ^
                       = 0
/datasets/git/convert.c:1015:25: warning: variable 'drv' is not initialized [cppcoreguidelines-init-variables]
        struct convert_driver *drv;
                               ^
                                   = NULL
/datasets/git/convert.c:1021:74: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_config_key(var, "filter", &name, &namelen, &key) < 0 || !name)
                                                                                ^
                                                                                 {
/datasets/git/convert.c:1023:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (drv = user_convert; drv; drv = drv->next)
        ^
/datasets/git/convert.c:1023:27: warning: backward branch (for loop) is ID-dependent due to variable reference to 'drv' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (drv = user_convert; drv; drv = drv->next)
                                 ^
/datasets/git/convert.c:1023:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (drv = user_convert; drv; drv = drv->next)
                                                      ^
                                                       {
/datasets/git/convert.c:1024:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strncmp(drv->name, name, namelen) && !drv->name[namelen])
                                                                              ^
                                                                               {
/datasets/git/convert.c:1042:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp("smudge", key))
                                   ^
                                    {
/datasets/git/convert.c:1045:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp("clean", key))
                                  ^
                                   {
/datasets/git/convert.c:1048:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp("process", key))
                                    ^
                                     {
/datasets/git/convert.c:1059:36: warning: parameter name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
static int count_ident(const char *cp, unsigned long size)
                                   ^
/datasets/git/convert.c:1065:7: warning: variable 'ch' is not initialized [cppcoreguidelines-init-variables]
        char ch;
             ^
                = 0
/datasets/git/convert.c:1065:7: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/convert.c:1070:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ch != '$')
                              ^
                               {
/datasets/git/convert.c:1072:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (size < 3)
                             ^
                              {
/datasets/git/convert.c:1074:7: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (memcmp("Id", cp, 2))
                    ^
                                        != 0
/datasets/git/convert.c:1074:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (memcmp("Id", cp, 2))
                                        ^
                                         {
/datasets/git/convert.c:1079:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ch == '$')
                              ^
                               {
/datasets/git/convert.c:1081:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ch != ':')
                              ^
                               {
/datasets/git/convert.c:1087:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (size) {
                ^
/datasets/git/convert.c:1094:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ch == '\n')
                                       ^
                                        {
/datasets/git/convert.c:1104:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *dst, *dollar;
        ^~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:1104:8: warning: variable 'dst' is not initialized [cppcoreguidelines-init-variables]
        char *dst, *dollar;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/convert.c:1104:14: warning: variable 'dollar' is not initialized [cppcoreguidelines-init-variables]
        char *dst, *dollar;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/convert.c:1106:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ident || (src && !count_ident(src, len)))
                                                      ^
                                                       {
/datasets/git/convert.c:1109:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!buf)
                 ^
                  {
/datasets/git/convert.c:1113:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strbuf_avail(buf) + buf->len < len)
                                               ^
                                                {
/datasets/git/convert.c:1116:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/convert.c:1118:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!dollar)
                            ^
                             {
/datasets/git/convert.c:1120:3: warning: Call to function 'memmove' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memmove_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memmove(dst, src, dollar + 1 - src);
                ^~~~~~~
/datasets/git/convert.c:1120:3: note: Call to function 'memmove' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memmove_s' in case of C11
                memmove(dst, src, dollar + 1 - src);
                ^~~~~~~
/datasets/git/convert.c:1127:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!dollar)
                                    ^
                                     {
/datasets/git/convert.c:1134:4: warning: the result from calling 'memcpy' is not null-terminated [bugprone-not-null-terminated-result]
                        memcpy(dst, "Id$", 3);
                        ^~~~~~           ~~~
                        strcpy
/datasets/git/convert.c:1134:4: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memcpy(dst, "Id$", 3);
                        ^~~~~~
/datasets/git/convert.c:1134:4: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                        memcpy(dst, "Id$", 3);
                        ^~~~~~
/datasets/git/convert.c:1140:2: warning: Call to function 'memmove' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memmove_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memmove(dst, src, len);
        ^~~~~~~
/datasets/git/convert.c:1140:2: note: Call to function 'memmove' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memmove_s' in case of C11
        memmove(dst, src, len);
        ^~~~~~~
/datasets/git/convert.c:1149:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *to_free = NULL, *dollar, *spc;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:1149:25: warning: variable 'dollar' is not initialized [cppcoreguidelines-init-variables]
        char *to_free = NULL, *dollar, *spc;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/convert.c:1149:34: warning: variable 'spc' is not initialized [cppcoreguidelines-init-variables]
        char *to_free = NULL, *dollar, *spc;
                                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/convert.c:1150:6: warning: variable 'cnt' is not initialized [cppcoreguidelines-init-variables]
        int cnt;
            ^
                = 0
/datasets/git/convert.c:1152:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ident)
                   ^
                    {
/datasets/git/convert.c:1156:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!cnt)
                 ^
                  {
/datasets/git/convert.c:1160:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (src == buf->buf)
                            ^
                             {
/datasets/git/convert.c:1165:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/convert.c:1168:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!dollar)
                            ^
                             {
/datasets/git/convert.c:1175:18: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (len < 3 || memcmp("Id", src, 2))
                               ^
                                                    != 0
/datasets/git/convert.c:1175:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (len < 3 || memcmp("Id", src, 2))
                                                    ^
                                                     {
/datasets/git/convert.c:1232:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ATTR_UNSET(value) || !strlen(value))
                                                ^
                                                 {
/datasets/git/convert.c:1240:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (same_encoding(value, default_encoding))
                                                   ^
                                                    {
/datasets/git/convert.c:1250:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ATTR_TRUE(value))
                             ^
                              {
/datasets/git/convert.c:1252:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (ATTR_FALSE(value))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:1252:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (ATTR_FALSE(value))
                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/convert.c:1254:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (ATTR_UNSET(value))
                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/convert.c:1256:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(value, "input"))
                                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/convert.c:1258:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(value, "auto"))
                                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/convert.c:1267:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ATTR_UNSET(value))
                              ^
                               {
/datasets/git/convert.c:1269:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(value, "lf"))
                                      ^
                                       {
/datasets/git/convert.c:1271:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(value, "crlf"))
                                        ^
                                         {
/datasets/git/convert.c:1279:25: warning: variable 'drv' is not initialized [cppcoreguidelines-init-variables]
        struct convert_driver *drv;
                               ^
                                   = NULL
/datasets/git/convert.c:1281:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ATTR_TRUE(value) || ATTR_FALSE(value) || ATTR_UNSET(value))
                                                                       ^
                                                                        {
/datasets/git/convert.c:1283:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (drv = user_convert; drv; drv = drv->next)
        ^
/datasets/git/convert.c:1283:27: warning: backward branch (for loop) is ID-dependent due to variable reference to 'drv' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (drv = user_convert; drv; drv = drv->next)
                                 ^
/datasets/git/convert.c:1283:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (drv = user_convert; drv; drv = drv->next)
                                                      ^
                                                       {
/datasets/git/convert.c:1284:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(value, drv->name))
                                              ^
                                               {
/datasets/git/convert.c:1296:27: warning: variable 'check' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct attr_check *check;
                          ^
/datasets/git/convert.c:1296:27: warning: variable 'check' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/convert.c:1299:25: warning: parameter name 'ca' is too short, expected at least 3 characters [readability-identifier-length]
                   struct conv_attrs *ca, const char *path)
                                      ^
/datasets/git/convert.c:1314:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ca->crlf_action == CRLF_UNDEFINED)
                                              ^
                                               {
/datasets/git/convert.c:1320:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ca->crlf_action == CRLF_AUTO && eol_attr == EOL_LF)
                                                                       ^
                                                                        {
/datasets/git/convert.c:1322:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (ca->crlf_action == CRLF_AUTO && eol_attr == EOL_CRLF)
                                                                              ^
                                                                               {
/datasets/git/convert.c:1324:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (eol_attr == EOL_LF)
                                            ^
                                             {
/datasets/git/convert.c:1326:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (eol_attr == EOL_CRLF)
                                              ^
                                               {
/datasets/git/convert.c:1329:63: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        ca->working_tree_encoding = git_path_check_encoding(ccheck + 5);
                                                                     ^
/datasets/git/convert.c:1333:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ca->crlf_action == CRLF_TEXT)
                                         ^
                                          {
/datasets/git/convert.c:1335:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ca->crlf_action == CRLF_UNDEFINED && auto_crlf == AUTO_CRLF_FALSE)
                                                                              ^
                                                                               {
/datasets/git/convert.c:1337:71: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ca->crlf_action == CRLF_UNDEFINED && auto_crlf == AUTO_CRLF_TRUE)
                                                                             ^
                                                                              {
/datasets/git/convert.c:1339:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ca->crlf_action == CRLF_UNDEFINED && auto_crlf == AUTO_CRLF_INPUT)
                                                                              ^
                                                                               {
/datasets/git/convert.c:1345:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct convert_driver *drv, *next;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:1345:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/convert.c:1345:25: warning: variable 'drv' is not initialized [cppcoreguidelines-init-variables]
        struct convert_driver *drv, *next;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/convert.c:1345:31: warning: variable 'next' is not initialized [cppcoreguidelines-init-variables]
        struct convert_driver *drv, *next;
                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/convert.c:1351:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (drv = user_convert; drv; drv = next) {
        ^
/datasets/git/convert.c:1351:27: warning: backward branch (for loop) is ID-dependent due to variable reference to 'drv' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (drv = user_convert; drv; drv = next) {
                                 ^
/datasets/git/convert.c:1362:20: warning: variable name 'ca' is too short, expected at least 3 characters [readability-identifier-length]
        struct conv_attrs ca;
                          ^
/datasets/git/convert.c:1365:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ca.drv)
                    ^
                     {
/datasets/git/convert.c:1373:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ca.drv->required)
                              ^
                               {
/datasets/git/convert.c:1376:55: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return apply_filter(path, NULL, 0, -1, NULL, ca.drv, CAP_CLEAN, NULL, NULL);
                                                             ^
/datasets/git/convert.c:732:23: note: expanded from macro 'CAP_CLEAN'
#define CAP_CLEAN    (1u<<0)
                      ^   ~
/datasets/git/convert.c:1381:20: warning: variable name 'ca' is too short, expected at least 3 characters [readability-identifier-length]
        struct conv_attrs ca;
                          ^
/datasets/git/convert.c:1410:20: warning: variable name 'ca' is too short, expected at least 3 characters [readability-identifier-length]
        struct conv_attrs ca;
                          ^
/datasets/git/convert.c:1414:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ret |= apply_filter(path, src, len, -1, dst, ca.drv, CAP_CLEAN, NULL, NULL);
        ^~~
/datasets/git/convert.c:1414:55: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ret |= apply_filter(path, src, len, -1, dst, ca.drv, CAP_CLEAN, NULL, NULL);
                                                             ^
/datasets/git/convert.c:732:23: note: expanded from macro 'CAP_CLEAN'
#define CAP_CLEAN    (1u<<0)
                      ^   ~
/datasets/git/convert.c:1415:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ret && ca.drv && ca.drv->required)
                                               ^
                                                {
/datasets/git/convert.c:1423:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ret |= encode_to_git(path, src, len, dst, ca.working_tree_encoding, conv_flags);
        ^~~
/datasets/git/convert.c:1429:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(conv_flags & CONV_EOL_KEEP_CRLF)) {
              ^~~~~~~~~~
/datasets/git/convert.c:1429:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(conv_flags & CONV_EOL_KEEP_CRLF)) {
                           ^
/datasets/git/./convert.h:16:32: note: expanded from macro 'CONV_EOL_KEEP_CRLF'
#define CONV_EOL_KEEP_CRLF    (1<<3) /* Keep CRLF line endings as is */
                               ^
/datasets/git/convert.c:1430:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ret |= crlf_to_git(istate, path, src, len, dst, ca.crlf_action, conv_flags);
                ^~~
/datasets/git/convert.c:1436:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return ret | ident_to_git(src, len, dst, ca.ident);
               ^~~
/datasets/git/convert.c:1440:32: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
                              const char *path, int fd, struct strbuf *dst,
                                                    ^
/datasets/git/convert.c:1443:20: warning: variable name 'ca' is too short, expected at least 3 characters [readability-identifier-length]
        struct conv_attrs ca;
                          ^
/datasets/git/convert.c:1448:52: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!apply_filter(path, NULL, 0, fd, dst, ca.drv, CAP_CLEAN, NULL, NULL))
                                                          ^
/datasets/git/convert.c:732:23: note: expanded from macro 'CAP_CLEAN'
#define CAP_CLEAN    (1u<<0)
                      ^   ~
/datasets/git/convert.c:1448:75: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!apply_filter(path, NULL, 0, fd, dst, ca.drv, CAP_CLEAN, NULL, NULL))
                                                                                 ^
                                                                                  {
/datasets/git/convert.c:1456:73: warning: parameter name 'ca' is too short, expected at least 3 characters [readability-identifier-length]
static int convert_to_working_tree_ca_internal(const struct conv_attrs *ca,
                                                                        ^
/datasets/git/convert.c:1463:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int ret = 0, ret_filter = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:1465:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ret |= ident_to_worktree(src, len, dst, ca->ident);
        ^~~
/datasets/git/convert.c:1476:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ret |= crlf_to_worktree(src, len, dst, ca->crlf_action);
                ^~~
/datasets/git/convert.c:1483:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ret |= encode_to_worktree(path, src, len, dst, ca->working_tree_encoding);
        ^~~
/datasets/git/convert.c:1490:37: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                path, src, len, -1, dst, ca->drv, CAP_SMUDGE, meta, dco);
                                                  ^
/datasets/git/convert.c:733:23: note: expanded from macro 'CAP_SMUDGE'
#define CAP_SMUDGE   (1u<<1)
                      ^   ~
/datasets/git/convert.c:1491:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ret_filter && ca->drv && ca->drv->required)
                                                        ^
                                                         {
/datasets/git/convert.c:1494:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return ret | ret_filter;
               ^~~
/datasets/git/convert.c:1497:63: warning: parameter name 'ca' is too short, expected at least 3 characters [readability-identifier-length]
int async_convert_to_working_tree_ca(const struct conv_attrs *ca,
                                                              ^
/datasets/git/convert.c:1507:57: warning: parameter name 'ca' is too short, expected at least 3 characters [readability-identifier-length]
int convert_to_working_tree_ca(const struct conv_attrs *ca,
                                                        ^
/datasets/git/convert.c:1519:20: warning: variable name 'ca' is too short, expected at least 3 characters [readability-identifier-length]
        struct conv_attrs ca;
                          ^
/datasets/git/convert.c:1520:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/convert.c:1529:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return ret | convert_to_git(istate, path, src, len, dst, CONV_EOL_RENORMALIZE);
               ^~~
/datasets/git/convert.c:1529:59: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return ret | convert_to_git(istate, path, src, len, dst, CONV_EOL_RENORMALIZE);
                                                                 ^
/datasets/git/./convert.h:15:32: note: expanded from macro 'CONV_EOL_RENORMALIZE'
#define CONV_EOL_RENORMALIZE  (1<<2) /* Convert CRLF to LF */
                               ^
/datasets/git/convert.c:1543:8: warning: accessing fields in struct 'stream_filter_vtbl' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct stream_filter_vtbl {
       ^
/datasets/git/convert.c:1543:8: note: use "__attribute__((aligned(16)))" to align struct 'stream_filter_vtbl' to 16 bytes
/datasets/git/convert.c:1556:9: warning: variable 'count' is not initialized [cppcoreguidelines-init-variables]
        size_t count;
               ^
                     = 0
/datasets/git/convert.c:1558:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!input)
                   ^
                    {
/datasets/git/convert.c:1561:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*osize_p < count)
                             ^
                              {
/datasets/git/convert.c:1564:3: warning: Call to function 'memmove' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memmove_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memmove(output, input, count);
                ^~~~~~~
/datasets/git/convert.c:1564:3: note: Call to function 'memmove' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memmove_s' in case of C11
                memmove(output, input, count);
                ^~~~~~~
/datasets/git/convert.c:1576:34: warning: variable 'null_vtbl' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct stream_filter_vtbl null_vtbl = {
                                 ^
/datasets/git/convert.c:1581:29: warning: variable 'null_filter_singleton' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct stream_filter null_filter_singleton = {
                            ^
/datasets/git/convert.c:1595:8: warning: accessing fields in struct 'lf_to_crlf_filter' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct lf_to_crlf_filter {
       ^
/datasets/git/convert.c:1595:8: note: use "__attribute__((aligned(16)))" to align struct 'lf_to_crlf_filter' to 16 bytes
/datasets/git/convert.c:1605:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t count, o = 0;
        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:1605:9: warning: variable 'count' is not initialized [cppcoreguidelines-init-variables]
        size_t count, o = 0;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/convert.c:1605:16: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
        size_t count, o = 0;
                      ^
/datasets/git/convert.c:1605:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        size_t count, o = 0;
        ^
/datasets/git/convert.c:1626:10: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                size_t i;
                       ^
                         = 0
/datasets/git/convert.c:1626:10: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/convert.c:1634:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; o < *osize_p && i < count; i++) {
                ^
/datasets/git/convert.c:1634:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'count' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; o < *osize_p && i < count; i++) {
                            ^
/datasets/git/convert.c:1635:9: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
                        char ch = input[i];
                             ^
/datasets/git/convert.c:1637:20: warning: repeated branch in conditional chain [bugprone-branch-clone]
                        if (ch == '\n') {
                                        ^
/datasets/git/convert.c:1639:5: note: end of the original
                        } else if (was_cr) {
                         ^
/datasets/git/convert.c:1639:23: note: clone 1 starts here
                        } else if (was_cr) {
                                           ^
/datasets/git/convert.c:1685:34: warning: variable 'lf_to_crlf_vtbl' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct stream_filter_vtbl lf_to_crlf_vtbl = {
                                 ^
/datasets/git/convert.c:1701:1: warning: replace macro with enum [modernize-macro-to-enum]
#define FILTER_BUFFER 1024
^~~~~~~~
                      =
/datasets/git/convert.c:1701:9: warning: macro 'FILTER_BUFFER' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define FILTER_BUFFER 1024
        ^
/datasets/git/convert.c:1702:8: warning: accessing fields in struct 'cascade_filter' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct cascade_filter {
       ^
/datasets/git/convert.c:1702:8: note: use "__attribute__((aligned(128)))" to align struct 'cascade_filter' to 128 bytes
/datasets/git/convert.c:1716:9: warning: variable name 'sz' is too short, expected at least 3 characters [readability-identifier-length]
        size_t sz = *osize_p;
               ^
/datasets/git/convert.c:1717:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t to_feed, remaining;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/convert.c:1715:2: note: inferred assignment of ID-dependent value from ID-dependent variable sz [altera-id-dependent-backward-branch]
        size_t filled = 0;
        ^
/datasets/git/convert.c:1717:9: warning: variable 'to_feed' is not initialized [cppcoreguidelines-init-variables]
        size_t to_feed, remaining;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/convert.c:1717:18: warning: variable 'remaining' is not initialized [cppcoreguidelines-init-variables]
        size_t to_feed, remaining;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/convert.c:1722:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (filled < sz) {
        ^
/datasets/git/convert.c:1722:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'filled' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (filled < sz) {
               ^
/datasets/git/convert.c:1730:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                          output + filled, &remaining))
                                                                       ^
                                                                        {
/datasets/git/convert.c:1732:16: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        cas->ptr += (cas->end - cas->ptr) - to_feed;
                                    ^
/datasets/git/convert.c:1739:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (input && !to_feed)
                                      ^
                                       {
/datasets/git/convert.c:1744:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                  cas->buf, &remaining))
                                                        ^
                                                         {
/datasets/git/convert.c:1746:14: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                cas->end = sizeof(cas->buf) - remaining;
                           ^
/datasets/git/convert.c:1755:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (input || cas->end)
                                      ^
                                       {
/datasets/git/convert.c:1763:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                  output + filled, &remaining))
                                                               ^
                                                                {
/datasets/git/convert.c:1765:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (remaining == (sz - filled))
                                               ^
                                                {
/datasets/git/convert.c:1781:34: warning: variable 'cascade_vtbl' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct stream_filter_vtbl cascade_vtbl = {
                                 ^
/datasets/git/convert.c:1789:25: warning: variable 'cascade' is not initialized [cppcoreguidelines-init-variables]
        struct cascade_filter *cascade;
                               ^
                                       = NULL
/datasets/git/convert.c:1791:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!one || is_null_stream_filter(one))
                                               ^
                                                {
/datasets/git/convert.c:1793:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!two || is_null_stream_filter(two))
                                               ^
                                                {
/datasets/git/convert.c:1807:1: warning: replace macro with enum [modernize-macro-to-enum]
#define IDENT_DRAINING (-1)
^~~~~~~~
                       =   ,
/datasets/git/convert.c:1807:9: warning: macro 'IDENT_DRAINING' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define IDENT_DRAINING (-1)
        ^
/datasets/git/convert.c:1808:9: warning: macro 'IDENT_SKIPPING' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define IDENT_SKIPPING (-2)
        ^
/datasets/git/convert.c:1809:8: warning: accessing fields in struct 'ident_filter' is inefficient due to padding; only needs 105 bytes but is using 112 bytes [altera-struct-pack-align]
struct ident_filter {
       ^
/datasets/git/convert.c:1809:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'ident_filter'
/datasets/git/convert.c:1809:8: warning: accessing fields in struct 'ident_filter' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct ident_filter {
       ^
/datasets/git/convert.c:1809:8: note: use "__attribute__((aligned(128)))" to align struct 'ident_filter' to 128 bytes
/datasets/git/convert.c:1813:29: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        char ident[GIT_MAX_HEXSZ + 5]; /* ": x40 $" */
                                   ^
/datasets/git/convert.c:1818:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/convert.c:1818:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/convert.c:1820:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!skip_prefix(str, "$Id: ", &str))
                                             ^
                                              {
/datasets/git/convert.c:1822:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; str[i]; i++) {
        ^
/datasets/git/convert.c:1823:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (isspace(str[i]) && str[i+1] != '$')
                    ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/convert.c:1823:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (isspace(str[i]) && str[i+1] != '$')
                                                       ^
                                                        {
/datasets/git/convert.c:1833:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*osize_p < to_drain)
                                ^
                                 {
/datasets/git/convert.c:1836:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(*output_p, ident->left.buf, to_drain);
                ^~~~~~
/datasets/git/convert.c:1836:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(*output_p, ident->left.buf, to_drain);
                ^~~~~~
/datasets/git/convert.c:1841:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ident->left.len)
                             ^
                              {
/datasets/git/convert.c:1845:12: warning: function 'ident_filter_fn' has cognitive complexity of 35 (threshold 25) [readability-function-cognitive-complexity]
static int ident_filter_fn(struct stream_filter *filter,
           ^
/datasets/git/convert.c:1852:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!input) {
        ^
/datasets/git/convert.c:1854:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                switch (ident->state) {
                ^
/datasets/git/convert.c:1866:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (*isize_p || (ident->state == IDENT_DRAINING)) {
        ^
/datasets/git/convert.c:1866:18: note: +1
        while (*isize_p || (ident->state == IDENT_DRAINING)) {
                        ^
/datasets/git/convert.c:1869:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ident->state == IDENT_DRAINING) {
                ^
/datasets/git/convert.c:1871:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!*osize_p)
                        ^
/datasets/git/convert.c:1879:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ident->state == IDENT_SKIPPING) {
                ^
/datasets/git/convert.c:1885:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ch != '\n' && ch != '$')
                        ^
/datasets/git/convert.c:1885:19: note: +1
                        if (ch != '\n' && ch != '$')
                                       ^
/datasets/git/convert.c:1887:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ch == '$' && !is_foreign_ident(ident->left.buf)) {
                        ^
/datasets/git/convert.c:1887:18: note: +1
                        if (ch == '$' && !is_foreign_ident(ident->left.buf)) {
                                      ^
/datasets/git/convert.c:1895:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ident->state < sizeof(head) &&
                ^
/datasets/git/convert.c:1895:35: note: +1
                if (ident->state < sizeof(head) &&
                                                ^
/datasets/git/convert.c:1901:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ident->state)
                ^
/datasets/git/convert.c:1903:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ident->state == sizeof(head) - 1) {
                ^
/datasets/git/convert.c:1904:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ch != ':' && ch != '$') {
                        ^
/datasets/git/convert.c:1904:18: note: +1
                        if (ch != ':' && ch != '$') {
                                      ^
/datasets/git/convert.c:1910:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ch == ':') {
                        ^
/datasets/git/convert.c:1913:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/convert.c:1849:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct ident_filter *ident = (struct ident_filter *)filter;
        ^
/datasets/git/convert.c:1866:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*isize_p || (ident->state == IDENT_DRAINING)) {
        ^
/datasets/git/convert.c:1866:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'ident' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (*isize_p || (ident->state == IDENT_DRAINING)) {
               ^
/datasets/git/convert.c:1867:7: warning: variable 'ch' is not initialized [cppcoreguidelines-init-variables]
                int ch;
                    ^
                       = 0
/datasets/git/convert.c:1867:7: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/convert.c:1871:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!*osize_p)
                                      ^
                                       {
/datasets/git/convert.c:1876:8: warning: 'signed char' to 'int' conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse,cert-str34-c]
                ch = *(input++);
                     ^
/datasets/git/convert.c:1885:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ch != '\n' && ch != '$')
                                                    ^
                                                     {
/datasets/git/convert.c:1901:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ident->state)
                                 ^
                                  {
/datasets/git/convert.c:1933:34: warning: variable 'ident_vtbl' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct stream_filter_vtbl ident_vtbl = {
                                 ^
/datasets/git/convert.c:1958:69: warning: parameter name 'ca' is too short, expected at least 3 characters [readability-identifier-length]
struct stream_filter *get_stream_filter_ca(const struct conv_attrs *ca,
                                                                    ^
/datasets/git/convert.c:1963:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (classify_conv_attrs(ca) != CA_CLASS_STREAMABLE)
                                                           ^
                                                            {
/datasets/git/convert.c:1966:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ca->ident)
                      ^
                       {
/datasets/git/convert.c:1969:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (output_eol(ca->crlf_action) == EOL_CRLF)
                                                    ^
                                                     {
/datasets/git/convert.c:1971:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/convert.c:1981:20: warning: variable name 'ca' is too short, expected at least 3 characters [readability-identifier-length]
        struct conv_attrs ca;
                          ^
/datasets/git/convert.c:2002:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(meta, 0, sizeof(*meta));
        ^~~~~~
/datasets/git/convert.c:2002:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(meta, 0, sizeof(*meta));
        ^~~~~~
/datasets/git/convert.c:2003:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (refname)
                    ^
                     {
/datasets/git/convert.c:2005:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (treeish)
                    ^
                     {
/datasets/git/convert.c:2007:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (blob)
                 ^
                  {
/datasets/git/convert.c:2015:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(dst, src, sizeof(*dst));
        ^~~~~~
/datasets/git/convert.c:2015:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(dst, src, sizeof(*dst));
        ^~~~~~
/datasets/git/convert.c:2016:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (blob)
                 ^
                  {
/datasets/git/convert.c:2020:77: warning: parameter name 'ca' is too short, expected at least 3 characters [readability-identifier-length]
enum conv_attrs_classification classify_conv_attrs(const struct conv_attrs *ca)
                                                                            ^
/datasets/git/convert.c:2023:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ca->drv->process)
                                     ^
                                      {
/datasets/git/convert.c:2025:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ca->drv->smudge || ca->drv->clean)
                                                      ^
                                                       {
/datasets/git/convert.c:2029:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ca->working_tree_encoding)
                                      ^
                                       {
/datasets/git/convert.c:2032:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ca->crlf_action == CRLF_AUTO || ca->crlf_action == CRLF_AUTO_CRLF)
                                                                              ^
                                                                               {
copy.c:5:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
copy.c:6:15: warning: 8192 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                char buffer[8192];
                            ^
/datasets/git/copy.c:8:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!len)
                         ^
                          {
/datasets/git/copy.c:10:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (len < 0)
                            ^
                             {
/datasets/git/copy.c:12:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (write_in_full(ofd, buffer, len) < 0)
                                                        ^
                                                         {
/datasets/git/copy.c:18:23: warning: 2 adjacent parameters of 'copy_times' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int copy_times(const char *dst, const char *src)
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/copy.c:18:35: note: the first parameter in the range is 'dst'
static int copy_times(const char *dst, const char *src)
                                  ^~~
/datasets/git/copy.c:18:52: note: the last parameter in the range is 'src'
static int copy_times(const char *dst, const char *src)
                                                   ^~~
/datasets/git/copy.c:20:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/copy.c:22:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (stat(src, &st) < 0)
                               ^
                                {
/datasets/git/copy.c:26:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (utime(dst, &times) < 0)
                                   ^
                                    {
/datasets/git/copy.c:33:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int fdi, fdo, status;
        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/copy.c:33:6: warning: variable 'fdi' is not initialized [cppcoreguidelines-init-variables]
        int fdi, fdo, status;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/copy.c:33:11: warning: variable 'fdo' is not initialized [cppcoreguidelines-init-variables]
        int fdi, fdo, status;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/copy.c:33:16: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int fdi, fdo, status;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/copy.c:35:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mode = (mode & 0111) ? 0777 : 0666;
                ^~~~
/datasets/git/copy.c:35:17: warning: 0111 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mode = (mode & 0111) ? 0777 : 0666;
                       ^
/datasets/git/copy.c:35:25: warning: 0777 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mode = (mode & 0111) ? 0777 : 0666;
                               ^
/datasets/git/copy.c:35:32: warning: 0666 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mode = (mode & 0111) ? 0777 : 0666;
                                      ^
/datasets/git/copy.c:36:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if ((fdi = open(src, O_RDONLY)) < 0)
             ^
/datasets/git/copy.c:36:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/copy.c:36:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/copy.c:36:31: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
        if ((fdi = open(src, O_RDONLY)) < 0)
                                     ^
                                      | O_CLOEXEC
/datasets/git/copy.c:36:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((fdi = open(src, O_RDONLY)) < 0)
                                            ^
                                             {
/datasets/git/copy.c:38:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if ((fdo = open(dst, O_WRONLY | O_CREAT | O_EXCL, mode)) < 0) {
             ^
/datasets/git/copy.c:38:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/copy.c:38:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/copy.c:38:50: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
        if ((fdo = open(dst, O_WRONLY | O_CREAT | O_EXCL, mode)) < 0) {
                                                        ^
                                                         | O_CLOEXEC
/datasets/git/copy.c:43:2: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
        switch (status) {
        ^
/datasets/git/copy.c:52:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (close(fdo) != 0)
                            ^
                             {
/datasets/git/copy.c:55:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!status && adjust_shared_perm(dst))
                                               ^
                                                {
/datasets/git/copy.c:64:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!status)
                    ^
                     {
/datasets/git/credential.c:4:1: warning: #includes are not sorted properly [llvm-include-order]
#include "string-list.h"
^        ~~~~~~~~~~~~~~~
         "prompt.h"
/datasets/git/credential.c:11:41: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
void credential_init(struct credential *c)
                                        ^
/datasets/git/credential.c:14:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(c, &blank, sizeof(*c));
        ^~~~~~
/datasets/git/credential.c:14:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(c, &blank, sizeof(*c));
        ^~~~~~
/datasets/git/credential.c:17:42: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
void credential_clear(struct credential *c)
                                         ^
/datasets/git/credential.c:41:71: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static int credential_from_potentially_partial_url(struct credential *c,
                                                                      ^
/datasets/git/credential.c:47:21: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        struct credential *c = data;
                           ^
/datasets/git/credential.c:48:14: warning: variable 'key' is not initialized [cppcoreguidelines-init-variables]
        const char *key;
                    ^
                        = NULL
/datasets/git/credential.c:50:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!skip_prefix(var, "credential.", &key))
                                                   ^
                                                    {
/datasets/git/credential.c:53:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!value)
                   ^
                    {
/datasets/git/credential.c:57:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*value)
                           ^
                            {
/datasets/git/credential.c:59:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/credential.c:67:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(key, "usehttppath"))
                                             ^
                                              {
/datasets/git/credential.c:73:38: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static int proto_is_http(const char *s)
                                     ^
/datasets/git/credential.c:75:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!s)
               ^
                {
/datasets/git/credential.c:80:52: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static void credential_describe(struct credential *c, struct strbuf *out);
                                                   ^
/datasets/git/credential.c:81:50: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static void credential_format(struct credential *c, struct strbuf *out);
                                                 ^
/datasets/git/credential.c:83:23: warning: 2 adjacent parameters of 'select_all' of similar type ('const struct urlmatch_item *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int select_all(const struct urlmatch_item *a,
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/credential.c:83:51: note: the first parameter in the range is 'a'
static int select_all(const struct urlmatch_item *a,
                                                  ^
/datasets/git/credential.c:84:37: note: the last parameter in the range is 'b'
                      const struct urlmatch_item *b)
                                                  ^
/datasets/git/credential.c:83:51: warning: parameter 'a' is unused [misc-unused-parameters]
static int select_all(const struct urlmatch_item *a,
                                                  ^
/datasets/git/credential.c:83:51: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/credential.c:84:37: warning: parameter 'b' is unused [misc-unused-parameters]
                      const struct urlmatch_item *b)
                                                  ^
/datasets/git/credential.c:84:37: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/credential.c:89:53: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int match_partial_url(const char *url, void *cb)
                                                    ^
/datasets/git/credential.c:91:21: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        struct credential *c = cb;
                           ^
/datasets/git/credential.c:95:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (credential_from_potentially_partial_url(&want, url) < 0)
                                                                    ^
                                                                     {
/datasets/git/credential.c:98:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/credential.c:105:56: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static void credential_apply_config(struct credential *c)
                                                       ^
/datasets/git/credential.c:107:8: warning: variable 'normalized_url' is not initialized [cppcoreguidelines-init-variables]
        char *normalized_url;
              ^
                             = NULL
/datasets/git/credential.c:111:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!c->host)
                     ^
                      {
/datasets/git/credential.c:113:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!c->protocol)
                         ^
                          {
/datasets/git/credential.c:116:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (c->configured)
                          ^
                           {
/datasets/git/credential.c:139:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FREE_AND_NULL(c->path);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/credential.c:143:52: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static void credential_describe(struct credential *c, struct strbuf *out)
                                                   ^
/datasets/git/credential.c:145:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!c->protocol)
                         ^
                          {
/datasets/git/credential.c:148:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (c->username && *c->username)
                                        ^
                                         {
/datasets/git/credential.c:150:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (c->host)
                    ^
                     {
/datasets/git/credential.c:152:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (c->path)
                    ^
                     {
/datasets/git/credential.c:156:50: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static void credential_format(struct credential *c, struct strbuf *out)
                                                 ^
/datasets/git/credential.c:158:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!c->protocol)
                         ^
                          {
/datasets/git/credential.c:165:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (c->host)
                    ^
                     {
/datasets/git/credential.c:173:70: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static char *credential_ask_one(const char *what, struct credential *c,
                                                                     ^
/datasets/git/credential.c:178:8: warning: variable 'r' is not initialized [cppcoreguidelines-init-variables]
        char *r;
              ^
                = NULL
/datasets/git/credential.c:178:8: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/credential.c:181:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (desc.len)
                     ^
                      {
/datasets/git/credential.c:183:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/credential.c:193:51: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static void credential_getpass(struct credential *c)
                                                  ^
/datasets/git/credential.c:195:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!c->username)
                         ^
                          {
/datasets/git/credential.c:197:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                                 PROMPT_ASKPASS|PROMPT_ECHO);
                                                 ^
/datasets/git/./prompt.h:4:24: note: expanded from macro 'PROMPT_ASKPASS'
#define PROMPT_ASKPASS (1<<0)
                       ^~~~~~
/datasets/git/credential.c:197:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                                 PROMPT_ASKPASS|PROMPT_ECHO);
                                                                ^
/datasets/git/./prompt.h:5:25: note: expanded from macro 'PROMPT_ECHO'
#define PROMPT_ECHO    (1<<1)
                        ^
/datasets/git/credential.c:198:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!c->password)
                         ^
                          {
/datasets/git/credential.c:200:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                                 PROMPT_ASKPASS);
                                                 ^
/datasets/git/./prompt.h:4:25: note: expanded from macro 'PROMPT_ASKPASS'
#define PROMPT_ASKPASS (1<<0)
                        ^
/datasets/git/credential.c:203:40: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
int credential_read(struct credential *c, FILE *fp)
                                       ^
/datasets/git/credential.c:203:49: warning: parameter name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
int credential_read(struct credential *c, FILE *fp)
                                                ^
/datasets/git/credential.c:205:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct strbuf line = STRBUF_INIT;
        ^
/datasets/git/credential.c:207:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (strbuf_getline(&line, fp) != EOF) {
        ^
/datasets/git/credential.c:207:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'line' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (strbuf_getline(&line, fp) != EOF) {
               ^
/datasets/git/credential.c:211:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!line.len)
                              ^
                               {
/datasets/git/credential.c:253:41: warning: parameter name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
static void credential_write_item(FILE *fp, const char *key, const char *value,
                                        ^
/datasets/git/credential.c:256:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!value && required)
                               ^
                                {
/datasets/git/credential.c:258:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!value)
                   ^
                    {
/datasets/git/credential.c:260:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strchr(value, '\n'))
                                ^
                                 {
/datasets/git/credential.c:262:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(fp, "%s=%s\n", key, value);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/credential.c:262:2: note: cast the expression to void to silence this warning
/datasets/git/credential.c:265:48: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
void credential_write(const struct credential *c, FILE *fp)
                                               ^
/datasets/git/credential.c:265:57: warning: parameter name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
void credential_write(const struct credential *c, FILE *fp)
                                                        ^
/datasets/git/credential.c:274:53: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static int run_credential_helper(struct credential *c,
                                                    ^
/datasets/git/credential.c:279:8: warning: variable 'fp' is not initialized [cppcoreguidelines-init-variables]
        FILE *fp;
              ^
                 = NULL
/datasets/git/credential.c:279:8: warning: variable name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/credential.c:284:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (want_output)
                        ^
                         {
/datasets/git/credential.c:286:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/credential.c:289:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (start_command(&helper) < 0)
                                       ^
                                        {
/datasets/git/credential.c:295:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(fp);
        ^~~~~~~~~~
/datasets/git/credential.c:295:2: note: cast the expression to void to silence this warning
/datasets/git/credential.c:299:7: warning: variable 'r' is not initialized [cppcoreguidelines-init-variables]
                int r;
                    ^
                      = 0
/datasets/git/credential.c:299:7: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/credential.c:302:3: warning: the value returned by this function should be used [cert-err33-c]
                fclose(fp);
                ^~~~~~~~~~
/datasets/git/credential.c:302:3: note: cast the expression to void to silence this warning
/datasets/git/credential.c:309:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (finish_command(&helper))
                                    ^
                                     {
/datasets/git/credential.c:314:45: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static int credential_do(struct credential *c, const char *helper,
                                            ^
/datasets/git/credential.c:314:48: warning: 2 adjacent parameters of 'credential_do' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int credential_do(struct credential *c, const char *helper,
                                               ^~~~~~~~~~~~~~~~~~~
/datasets/git/credential.c:314:60: note: the first parameter in the range is 'helper'
static int credential_do(struct credential *c, const char *helper,
                                                           ^~~~~~
/datasets/git/credential.c:315:17: note: the last parameter in the range is 'operation'
                         const char *operation)
                                     ^~~~~~~~~
/datasets/git/credential.c:318:6: warning: variable 'r' is not initialized [cppcoreguidelines-init-variables]
        int r;
            ^
              = 0
/datasets/git/credential.c:318:6: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/credential.c:320:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (helper[0] == '!')
                             ^
                              {
/datasets/git/credential.c:322:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (is_absolute_path(helper))
                                          ^
                                           {
/datasets/git/credential.c:324:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/credential.c:334:41: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
void credential_fill(struct credential *c)
                                        ^
/datasets/git/credential.c:336:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/credential.c:336:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/credential.c:338:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (c->username && c->password)
                                       ^
                                        {
/datasets/git/credential.c:343:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < c->helpers.nr; i++) {
        ^
/datasets/git/credential.c:345:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (c->username && c->password)
                                               ^
                                                {
/datasets/git/credential.c:347:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (c->quit)
                            ^
                             {
/datasets/git/credential.c:353:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!c->username && !c->password)
                                         ^
                                          {
/datasets/git/credential.c:357:44: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
void credential_approve(struct credential *c)
                                           ^
/datasets/git/credential.c:359:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/credential.c:359:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/credential.c:361:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (c->approved)
                        ^
                         {
/datasets/git/credential.c:363:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!c->username || !c->password)
                                         ^
                                          {
/datasets/git/credential.c:368:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < c->helpers.nr; i++)
        ^
/datasets/git/credential.c:368:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < c->helpers.nr; i++)
                                           ^
                                            {
/datasets/git/credential.c:373:43: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
void credential_reject(struct credential *c)
                                          ^
/datasets/git/credential.c:375:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/credential.c:375:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/credential.c:379:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < c->helpers.nr; i++)
        ^
/datasets/git/credential.c:379:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < c->helpers.nr; i++)
                                           ^
                                            {
/datasets/git/credential.c:382:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(c->username);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/credential.c:383:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(c->password);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/credential.c:388:11: warning: 2 adjacent parameters of 'check_url_component' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                               const char *name, const char *value)
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/credential.c:388:23: note: the first parameter in the range is 'name'
                               const char *name, const char *value)
                                           ^~~~
/datasets/git/credential.c:388:41: note: the last parameter in the range is 'value'
                               const char *name, const char *value)
                                                             ^~~~~
/datasets/git/credential.c:390:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!value)
                   ^
                    {
/datasets/git/credential.c:392:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strchr(value, '\n'))
                                 ^
                                  {
/datasets/git/credential.c:395:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!quiet)
                   ^
                    {
/datasets/git/credential.c:424:12: warning: function 'credential_from_url_1' has cognitive complexity of 28 (threshold 25) [readability-function-cognitive-complexity]
static int credential_from_url_1(struct credential *c, const char *url,
           ^
/datasets/git/credential.c:438:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!allow_partial_url && (!proto_end || proto_end == url)) {
        ^
/datasets/git/credential.c:438:25: note: +1
        if (!allow_partial_url && (!proto_end || proto_end == url)) {
                               ^
/datasets/git/credential.c:438:40: note: +1
        if (!allow_partial_url && (!proto_end || proto_end == url)) {
                                              ^
/datasets/git/credential.c:439:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!quiet)
                ^
/datasets/git/credential.c:443:17: note: +1, including nesting penalty of 0, nesting level increased to 1
        cp = proto_end ? proto_end + 3 : url;
                       ^
/datasets/git/credential.c:455:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!at || slash <= at) {
        ^
/datasets/git/credential.c:455:10: note: +1
        if (!at || slash <= at) {
                ^
/datasets/git/credential.c:459:7: note: +1, nesting level increased to 1
        else if (!colon || at <= colon) {
             ^
/datasets/git/credential.c:459:18: note: +1
        else if (!colon || at <= colon) {
                        ^
/datasets/git/credential.c:462:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (c->username && *c->username)
                ^
/datasets/git/credential.c:462:19: note: +1
                if (c->username && *c->username)
                                ^
/datasets/git/credential.c:465:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/credential.c:468:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (c->username && *c->username)
                ^
/datasets/git/credential.c:468:19: note: +1
                if (c->username && *c->username)
                                ^
/datasets/git/credential.c:474:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (proto_end && proto_end - url > 0)
        ^
/datasets/git/credential.c:474:16: note: +1
        if (proto_end && proto_end - url > 0)
                      ^
/datasets/git/credential.c:476:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!allow_partial_url || slash - host > 0)
        ^
/datasets/git/credential.c:476:25: note: +1
        if (!allow_partial_url || slash - host > 0)
                               ^
/datasets/git/credential.c:479:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (*slash == '/')
        ^
/datasets/git/credential.c:481:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (*slash) {
        ^
/datasets/git/credential.c:485:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (p > c->path && *p == '/')
                ^
/datasets/git/credential.c:485:22: note: +1
                while (p > c->path && *p == '/')
                                   ^
/datasets/git/credential.c:489:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (check_url_component(url, quiet, "username", c->username) < 0 ||
        ^
/datasets/git/credential.c:492:59: note: +1
            check_url_component(url, quiet, "host", c->host) < 0 ||
                                                                 ^
/datasets/git/credential.c:424:53: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static int credential_from_url_1(struct credential *c, const char *url,
                                                    ^
/datasets/git/credential.c:425:6: warning: 2 adjacent parameters of 'credential_from_url_1' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                 int allow_partial_url, int quiet)
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/credential.c:425:10: note: the first parameter in the range is 'allow_partial_url'
                                 int allow_partial_url, int quiet)
                                     ^~~~~~~~~~~~~~~~~
/datasets/git/credential.c:425:33: note: the last parameter in the range is 'quiet'
                                 int allow_partial_url, int quiet)
                                                            ^~~~~
/datasets/git/credential.c:427:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *at, *colon, *cp, *slash, *host, *proto_end;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/credential.c:427:14: warning: variable 'at' is not initialized [cppcoreguidelines-init-variables]
        const char *at, *colon, *cp, *slash, *host, *proto_end;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/credential.c:427:14: warning: variable name 'at' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/credential.c:427:19: warning: variable 'colon' is not initialized [cppcoreguidelines-init-variables]
        const char *at, *colon, *cp, *slash, *host, *proto_end;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/credential.c:427:27: warning: variable 'cp' is not initialized [cppcoreguidelines-init-variables]
        const char *at, *colon, *cp, *slash, *host, *proto_end;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/credential.c:427:27: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/credential.c:427:32: warning: variable 'slash' is not initialized [cppcoreguidelines-init-variables]
        const char *at, *colon, *cp, *slash, *host, *proto_end;
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/credential.c:427:40: warning: variable 'host' is not initialized [cppcoreguidelines-init-variables]
        const char *at, *colon, *cp, *slash, *host, *proto_end;
                                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/credential.c:427:47: warning: variable 'proto_end' is not initialized [cppcoreguidelines-init-variables]
        const char *at, *colon, *cp, *slash, *host, *proto_end;
                                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/credential.c:439:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!quiet)
                           ^
                            {
/datasets/git/credential.c:461:36: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                c->username = url_decode_mem(cp, at - cp);
                                                 ^
/datasets/git/credential.c:462:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (c->username && *c->username)
                                                ^
                                                 {
/datasets/git/credential.c:467:36: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                c->username = url_decode_mem(cp, colon - cp);
                                                 ^
/datasets/git/credential.c:468:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (c->username && *c->username)
                                                ^
                                                 {
/datasets/git/credential.c:470:43: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                c->password = url_decode_mem(colon + 1, at - (colon + 1));
                                                        ^
/datasets/git/credential.c:474:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (proto_end && proto_end - url > 0)
                                             ^
                                              {
/datasets/git/credential.c:476:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!allow_partial_url || slash - host > 0)
                                                   ^
                                                    {
/datasets/git/credential.c:477:34: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                c->host = url_decode_mem(host, slash - host);
                                               ^
/datasets/git/credential.c:479:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*slash == '/')
        ^
/datasets/git/credential.c:479:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'slash' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (*slash == '/')
               ^
/datasets/git/credential.c:479:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (*slash == '/')
                             ^
                              {
/datasets/git/credential.c:482:9: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                char *p;
                      ^
                        = NULL
/datasets/git/credential.c:482:9: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/credential.c:485:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (p > c->path && *p == '/')
                ^
/datasets/git/credential.c:485:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (p > c->path && *p == '/')
                       ^
/datasets/git/credential.c:485:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (p > c->path && *p == '/')
                                                ^
                                                 {
/datasets/git/credential.c:493:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            check_url_component(url, quiet, "path", c->path) < 0)
                                                                 ^
                                                                  {
/datasets/git/credential.c:499:71: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static int credential_from_potentially_partial_url(struct credential *c,
                                                                      ^
/datasets/git/credential.c:505:51: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
int credential_from_url_gently(struct credential *c, const char *url, int quiet)
                                                  ^
/datasets/git/credential.c:510:45: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
void credential_from_url(struct credential *c, const char *url)
                                            ^
/datasets/git/credential.c:512:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (credential_from_url_gently(c, url, 0) < 0)
                                                      ^
                                                       {
/datasets/git/csum-file.c:11:1: warning: #includes are not sorted properly [llvm-include-order]
#include "progress.h"
^        ~~~~~~~~~~~~
         "csum-file.h"
/datasets/git/csum-file.c:14:51: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
static void verify_buffer_or_die(struct hashfile *f,
                                                  ^
/datasets/git/csum-file.c:20:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret < 0)
                    ^
                     {
/datasets/git/csum-file.c:22:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret != count)
                         ^
                          {
/datasets/git/csum-file.c:24:6: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (memcmp(buf, f->check_buffer, count))
            ^
                                                != 0
/datasets/git/csum-file.c:24:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (memcmp(buf, f->check_buffer, count))
                                                ^
                                                 {
/datasets/git/csum-file.c:28:36: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
static void flush(struct hashfile *f, const void *buf, unsigned int count)
                                   ^
/datasets/git/csum-file.c:30:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (0 <= f->check_fd && count)
                                      ^
                                       {
/datasets/git/csum-file.c:34:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (errno == ENOSPC)
                                    ^
                                     {
/datasets/git/csum-file.c:43:33: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
void hashflush(struct hashfile *f)
                                ^
/datasets/git/csum-file.c:54:44: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
static void free_hashfile(struct hashfile *f)
                                           ^
/datasets/git/csum-file.c:61:40: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
int finalize_hashfile(struct hashfile *f, unsigned char *result,
                                       ^
/datasets/git/csum-file.c:62:9: warning: 2 adjacent parameters of 'finalize_hashfile' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                      enum fsync_component component, unsigned int flags)
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/csum-file.c:62:30: note: the first parameter in the range is 'component'
                      enum fsync_component component, unsigned int flags)
                                           ^~~~~~~~~
/datasets/git/csum-file.c:62:54: note: the last parameter in the range is 'flags'
                      enum fsync_component component, unsigned int flags)
                                                                   ^~~~~
/datasets/git/csum-file.c:62:41: note: 'enum fsync_component' and 'unsigned int' may be implicitly converted
                      enum fsync_component component, unsigned int flags)
                                                      ^
/datasets/git/csum-file.c:64:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/csum-file.c:64:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/csum-file.c:68:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (result)
                   ^
                    {
/datasets/git/csum-file.c:70:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & CSUM_HASH_IN_STREAM)
            ^
/datasets/git/csum-file.c:70:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & CSUM_HASH_IN_STREAM)
                                        ^
                                         {
/datasets/git/csum-file.c:72:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & CSUM_FSYNC)
            ^
/datasets/git/csum-file.c:72:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & CSUM_FSYNC)
                               ^
                                {
/datasets/git/csum-file.c:74:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & CSUM_CLOSE) {
            ^
/datasets/git/csum-file.c:75:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (close(f->fd))
                                 ^
                                  {
/datasets/git/csum-file.c:78:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/csum-file.c:81:8: warning: variable 'discard' is not initialized [cppcoreguidelines-init-variables]
                char discard;
                     ^
                             = 0
/datasets/git/csum-file.c:82:13: warning: narrowing conversion from 'ssize_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int cnt = read_in_full(f->check_fd, &discard, 1);
                          ^
/datasets/git/csum-file.c:83:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cnt < 0)
                            ^
                             {
/datasets/git/csum-file.c:86:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cnt)
                        ^
                         {
/datasets/git/csum-file.c:88:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (close(f->check_fd))
                                       ^
                                        {
/datasets/git/csum-file.c:95:33: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
void hashwrite(struct hashfile *f, const void *buf, unsigned int count)
                                ^
/datasets/git/csum-file.c:95:53: note: inferred assignment of ID-dependent value from ID-dependent variable nr [altera-id-dependent-backward-branch]
void hashwrite(struct hashfile *f, const void *buf, unsigned int count)
                                                    ^
/datasets/git/csum-file.c:97:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (count) {
        ^
/datasets/git/csum-file.c:97:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'count' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (count) {
               ^
/datasets/git/csum-file.c:99:12: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
                unsigned nr = count > left ? left : count;
                         ^
/datasets/git/csum-file.c:101:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (f->do_crc)
                              ^
                               {
/datasets/git/csum-file.c:118:4: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memcpy(f->buffer + f->offset, buf, nr);
                        ^~~~~~
/datasets/git/csum-file.c:118:4: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                        memcpy(f->buffer + f->offset, buf, nr);
                        ^~~~~~
/datasets/git/csum-file.c:121:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!left)
                                  ^
                                   {
/datasets/git/csum-file.c:132:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int sink, check;
        ^~~~~~~~~~~~~~~~
/datasets/git/csum-file.c:132:6: warning: variable 'sink' is not initialized [cppcoreguidelines-init-variables]
        int sink, check;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/csum-file.c:132:12: warning: variable 'check' is not initialized [cppcoreguidelines-init-variables]
        int sink, check;
                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/csum-file.c:133:19: warning: variable 'f' is not initialized [cppcoreguidelines-init-variables]
        struct hashfile *f;
                         ^
                           = NULL
/datasets/git/csum-file.c:133:19: warning: variable name 'f' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/csum-file.c:144:45: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
static struct hashfile *hashfd_internal(int fd, const char *name,
                                            ^
/datasets/git/csum-file.c:145:23: warning: parameter name 'tp' is too short, expected at least 3 characters [readability-identifier-length]
                                        struct progress *tp,
                                                         ^
/datasets/git/csum-file.c:148:19: warning: variable name 'f' is too short, expected at least 3 characters [readability-identifier-length]
        struct hashfile *f = xmalloc(sizeof(*f));
                         ^
/datasets/git/csum-file.c:165:29: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
struct hashfile *hashfd(int fd, const char *name)
                            ^
/datasets/git/csum-file.c:172:41: warning: performing an implicit widening conversion to type 'size_t' (aka 'unsigned long') of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        return hashfd_internal(fd, name, NULL, 128 * 1024);
                                               ^
/datasets/git/csum-file.c:172:41: note: make conversion explicit to silence this warning
        return hashfd_internal(fd, name, NULL, 128 * 1024);
                                               ^~~~~~~~~~
                                               (size_t)( )
/datasets/git/csum-file.c:172:41: note: perform multiplication in a wider type
        return hashfd_internal(fd, name, NULL, 128 * 1024);
                                               ^~~
                                               (long)
/datasets/git/csum-file.c:172:41: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        return hashfd_internal(fd, name, NULL, 128 * 1024);
                                               ^
/datasets/git/csum-file.c:172:47: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        return hashfd_internal(fd, name, NULL, 128 * 1024);
                                                     ^
/datasets/git/csum-file.c:175:40: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
struct hashfile *hashfd_throughput(int fd, const char *name, struct progress *tp)
                                       ^
/datasets/git/csum-file.c:175:79: warning: parameter name 'tp' is too short, expected at least 3 characters [readability-identifier-length]
struct hashfile *hashfd_throughput(int fd, const char *name, struct progress *tp)
                                                                              ^
/datasets/git/csum-file.c:183:39: warning: performing an implicit widening conversion to type 'size_t' (aka 'unsigned long') of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        return hashfd_internal(fd, name, tp, 8 * 1024);
                                             ^
/datasets/git/csum-file.c:183:39: note: make conversion explicit to silence this warning
        return hashfd_internal(fd, name, tp, 8 * 1024);
                                             ^~~~~~~~
                                             (size_t)( )
/datasets/git/csum-file.c:183:39: note: perform multiplication in a wider type
        return hashfd_internal(fd, name, tp, 8 * 1024);
                                             ^
                                             (long)
/datasets/git/csum-file.c:183:39: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        return hashfd_internal(fd, name, tp, 8 * 1024);
                                             ^
/datasets/git/csum-file.c:183:43: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        return hashfd_internal(fd, name, tp, 8 * 1024);
                                                 ^
/datasets/git/csum-file.c:186:43: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
void hashfile_checkpoint(struct hashfile *f, struct hashfile_checkpoint *checkpoint)
                                          ^
/datasets/git/csum-file.c:193:40: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
int hashfile_truncate(struct hashfile *f, struct hashfile_checkpoint *checkpoint)
                                       ^
/datasets/git/csum-file.c:198:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            lseek(f->fd, offset, SEEK_SET) != offset)
                                                     ^
                                                      {
/datasets/git/csum-file.c:206:35: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
void crc32_begin(struct hashfile *f)
                                  ^
/datasets/git/csum-file.c:212:37: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
uint32_t crc32_end(struct hashfile *f)
                                    ^
/datasets/git/csum-file.c:224:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (total_len < the_hash_algo->rawsz)
                                             ^
                                              {
ctype.c:17:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        Z = GIT_CNTRL | GIT_SPACE
            ^
/datasets/git/./git-compat-util.h:1213:19: note: expanded from macro 'GIT_CNTRL'
#define GIT_CNTRL 0x40
                  ^~~~
date.c:13:38: warning: parameter name 'tm' is too short, expected at least 3 characters [readability-identifier-length]
time_t tm_to_time_t(const struct tm *tm)
                                     ^
date.c:18:27: warning: 70 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        int year = tm->tm_year - 70;
                                 ^
date.c:22:25: warning: 129 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (year < 0 || year > 129) /* algo only works for 1970-2099 */
                               ^
/datasets/git/date.c:22:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (year < 0 || year > 129) /* algo only works for 1970-2099 */
                                   ^
                                    {
/datasets/git/date.c:24:27: warning: 11 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (month < 0 || month > 11) /* array bounds */
                                 ^
/datasets/git/date.c:24:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (month < 0 || month > 11) /* array bounds */
                                    ^
                                     {
/datasets/git/date.c:26:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (month < 2 || (year + 2) % 4)
                                        ^
                                         {
/datasets/git/date.c:28:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (tm->tm_hour < 0 || tm->tm_min < 0 || tm->tm_sec < 0)
                                                                ^
                                                                 {
/datasets/git/date.c:30:9: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        return (year * 365 + (year + 1) / 4 + mdays[month] + day) * 24*60*60UL +
               ^
/datasets/git/date.c:30:9: note: make conversion explicit to silence this warning
        return (year * 365 + (year + 1) / 4 + mdays[month] + day) * 24*60*60UL +
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
               (unsigned long)(                                        )
/datasets/git/date.c:30:9: note: perform multiplication in a wider type
        return (year * 365 + (year + 1) / 4 + mdays[month] + day) * 24*60*60UL +
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
               (long)
/datasets/git/date.c:30:9: warning: narrowing conversion from 'unsigned long' to signed type 'time_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return (year * 365 + (year + 1) / 4 + mdays[month] + day) * 24*60*60UL +
               ^
/datasets/git/date.c:30:17: warning: 365 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        return (year * 365 + (year + 1) / 4 + mdays[month] + day) * 24*60*60UL +
                       ^
/datasets/git/date.c:30:62: warning: 24 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        return (year * 365 + (year + 1) / 4 + mdays[month] + day) * 24*60*60UL +
                                                                    ^
/datasets/git/date.c:30:65: warning: 60 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        return (year * 365 + (year + 1) / 4 + mdays[month] + day) * 24*60*60UL +
                                                                       ^
/datasets/git/date.c:30:68: warning: 60UL is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        return (year * 365 + (year + 1) / 4 + mdays[month] + day) * 24*60*60UL +
                                                                          ^
/datasets/git/date.c:31:3: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                tm->tm_hour * 60*60 + tm->tm_min * 60 + tm->tm_sec;
                ^
/datasets/git/date.c:31:3: note: make conversion explicit to silence this warning
                tm->tm_hour * 60*60 + tm->tm_min * 60 + tm->tm_sec;
                ^~~~~~~~~~~~~~~~~~~
                (unsigned long)( )
/datasets/git/date.c:31:3: note: perform multiplication in a wider type
                tm->tm_hour * 60*60 + tm->tm_min * 60 + tm->tm_sec;
                ^~~~~~~~~~~~~~~~
                (long)
/datasets/git/date.c:31:17: warning: 60 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                tm->tm_hour * 60*60 + tm->tm_min * 60 + tm->tm_sec;
                              ^
/datasets/git/date.c:31:20: warning: 60 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                tm->tm_hour * 60*60 + tm->tm_min * 60 + tm->tm_sec;
                                 ^
/datasets/git/date.c:31:25: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                tm->tm_hour * 60*60 + tm->tm_min * 60 + tm->tm_sec;
                                      ^
/datasets/git/date.c:31:25: note: make conversion explicit to silence this warning
                tm->tm_hour * 60*60 + tm->tm_min * 60 + tm->tm_sec;
                                      ^~~~~~~~~~~~~~~
                                      (unsigned long)( )
/datasets/git/date.c:31:25: note: perform multiplication in a wider type
                tm->tm_hour * 60*60 + tm->tm_min * 60 + tm->tm_sec;
                                      ^~~~~~~~~~
                                      (long)
/datasets/git/date.c:31:38: warning: 60 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                tm->tm_hour * 60*60 + tm->tm_min * 60 + tm->tm_sec;
                                                   ^
/datasets/git/date.c:34:20: warning: variable 'month_names' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *month_names[] = {
                   ^
/datasets/git/date.c:39:20: warning: variable 'weekday_names' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *weekday_names[] = {
                   ^
/datasets/git/date.c:43:47: warning: parameter name 'tz' is too short, expected at least 3 characters [readability-identifier-length]
static time_t gm_time_t(timestamp_t time, int tz)
                                              ^
/datasets/git/date.c:45:6: warning: variable 'minutes' is not initialized [cppcoreguidelines-init-variables]
        int minutes;
            ^
                    = 0
/datasets/git/date.c:48:23: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        minutes = (minutes / 100)*60 + (minutes % 100);
                             ^
/datasets/git/date.c:48:28: warning: 60 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        minutes = (minutes / 100)*60 + (minutes % 100);
                                  ^
/datasets/git/date.c:48:44: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        minutes = (minutes / 100)*60 + (minutes % 100);
                                                  ^
/datasets/git/date.c:52:36: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                if (unsigned_add_overflows(time, minutes * 60))
                                                 ^
/datasets/git/date.c:52:36: note: make conversion explicit to silence this warning
                if (unsigned_add_overflows(time, minutes * 60))
                                                 ^
                                                 (unsigned long)( )
/datasets/git/./git-compat-util.h:131:7: note: expanded from macro 'unsigned_add_overflows'
    ((b) > maximum_unsigned_value_of_type(a) - (a))
      ^
/datasets/git/date.c:52:36: note: perform multiplication in a wider type
                if (unsigned_add_overflows(time, minutes * 60))
                                                 ^
                                                 (long)
/datasets/git/./git-compat-util.h:131:7: note: expanded from macro 'unsigned_add_overflows'
    ((b) > maximum_unsigned_value_of_type(a) - (a))
      ^
/datasets/git/date.c:52:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (unsigned_add_overflows(time, minutes * 60))
                                                               ^
                                                                {
/datasets/git/date.c:55:20: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        } else if (time < -minutes * 60)
                          ^
/datasets/git/date.c:55:20: note: make conversion explicit to silence this warning
        } else if (time < -minutes * 60)
                          ^~~~~~~~~~~~~
                          (unsigned long)( )
/datasets/git/date.c:55:20: note: perform multiplication in a wider type
        } else if (time < -minutes * 60)
                          ^~~~~~~~
                          (long)
/datasets/git/date.c:55:31: warning: 60 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        } else if (time < -minutes * 60)
                                     ^
/datasets/git/date.c:55:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else if (time < -minutes * 60)
                                        ^
                                         {
/datasets/git/date.c:57:10: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        time += minutes * 60;
                ^
/datasets/git/date.c:57:10: note: make conversion explicit to silence this warning
        time += minutes * 60;
                ^~~~~~~~~~~~
                (unsigned long)( )
/datasets/git/date.c:57:10: note: perform multiplication in a wider type
        time += minutes * 60;
                ^~~~~~~
                (long)
/datasets/git/date.c:57:20: warning: 60 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        time += minutes * 60;
                          ^
/datasets/git/date.c:58:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (date_overflows(time))
                                 ^
                                  {
/datasets/git/date.c:68:52: warning: parameter name 'tz' is too short, expected at least 3 characters [readability-identifier-length]
static struct tm *time_to_tm(timestamp_t time, int tz, struct tm *tm)
                                                   ^
/datasets/git/date.c:68:67: warning: parameter name 'tm' is too short, expected at least 3 characters [readability-identifier-length]
static struct tm *time_to_tm(timestamp_t time, int tz, struct tm *tm)
                                                                  ^
/datasets/git/date.c:70:9: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
        time_t t = gm_time_t(time, tz);
               ^
/datasets/git/date.c:74:65: warning: parameter name 'tm' is too short, expected at least 3 characters [readability-identifier-length]
static struct tm *time_to_tm_local(timestamp_t time, struct tm *tm)
                                                                ^
/datasets/git/date.c:76:9: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
        time_t t = time;
               ^
/datasets/git/date.c:76:13: warning: narrowing conversion from 'timestamp_t' (aka 'unsigned long') to signed type 'time_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        time_t t = time;
                   ^
/datasets/git/date.c:84:39: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
static int local_time_tzoffset(time_t t, struct tm *tm)
                                      ^
/datasets/git/date.c:84:53: warning: parameter name 'tm' is too short, expected at least 3 characters [readability-identifier-length]
static int local_time_tzoffset(time_t t, struct tm *tm)
                                                    ^
/datasets/git/date.c:86:9: warning: variable 't_local' is not initialized [cppcoreguidelines-init-variables]
        time_t t_local;
               ^
                       = 0
/datasets/git/date.c:87:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int offset, eastwest;
        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/date.c:87:6: warning: variable 'offset' is not initialized [cppcoreguidelines-init-variables]
        int offset, eastwest;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/date.c:87:14: warning: variable 'eastwest' is not initialized [cppcoreguidelines-init-variables]
        int offset, eastwest;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/date.c:91:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (t_local == -1)
                          ^
                           {
/datasets/git/date.c:95:12: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                offset = t - t_local;
                         ^
/datasets/git/date.c:98:12: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                offset = t_local - t;
                         ^
/datasets/git/date.c:100:12: warning: 60 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        offset /= 60; /* in minutes */
                  ^
/datasets/git/date.c:101:21: warning: 60 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        offset = (offset % 60) + ((offset / 60) * 100);
                           ^
/datasets/git/date.c:101:38: warning: 60 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        offset = (offset % 60) + ((offset / 60) * 100);
                                            ^
/datasets/git/date.c:101:44: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        offset = (offset % 60) + ((offset / 60) * 100);
                                                  ^
/datasets/git/date.c:111:12: warning: variable name 'tm' is too short, expected at least 3 characters [readability-identifier-length]
        struct tm tm;
                  ^
/datasets/git/date.c:113:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (date_overflows(time))
                                 ^
                                  {
/datasets/git/date.c:121:14: warning: variable 'x' is not initialized [cppcoreguidelines-init-variables]
        const char *x;
                    ^
                      = NULL
/datasets/git/date.c:121:14: warning: variable name 'x' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/date.c:123:6: warning: function is not thread safe [concurrency-mt-unsafe]
        x = getenv("GIT_TEST_DATE_NOW");
            ^
/datasets/git/date.c:125:17: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c]
                now->tv_sec = atoi(x);
                              ^
/datasets/git/date.c:128:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/date.c:135:14: warning: variable 'diff' is not initialized [cppcoreguidelines-init-variables]
        timestamp_t diff;
                    ^
                         = 0
/datasets/git/date.c:143:13: warning: 90 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (diff < 90) {
                   ^
/datasets/git/date.c:149:17: warning: 30 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        diff = (diff + 30) / 60;
                       ^
/datasets/git/date.c:149:23: warning: 60 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        diff = (diff + 30) / 60;
                             ^
/datasets/git/date.c:150:13: warning: 90 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (diff < 90) {
                   ^
/datasets/git/date.c:156:17: warning: 30 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        diff = (diff + 30) / 60;
                       ^
/datasets/git/date.c:156:23: warning: 60 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        diff = (diff + 30) / 60;
                             ^
/datasets/git/date.c:157:13: warning: 36 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (diff < 36) {
                   ^
/datasets/git/date.c:163:17: warning: 12 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        diff = (diff + 12) / 24;
                       ^
/datasets/git/date.c:163:23: warning: 24 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        diff = (diff + 12) / 24;
                             ^
/datasets/git/date.c:164:13: warning: 14 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (diff < 14) {
                   ^
/datasets/git/date.c:170:13: warning: 70 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (diff < 70) {
                   ^
/datasets/git/date.c:172:68: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         Q_("%"PRItime" week ago", "%"PRItime" weeks ago", (diff + 3) / 7),
                                                                                        ^
/datasets/git/date.c:173:18: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         (diff + 3) / 7);
                                      ^
/datasets/git/date.c:177:13: warning: 365 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (diff < 365) {
                   ^
/datasets/git/date.c:179:65: warning: 15 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         Q_("%"PRItime" month ago", "%"PRItime" months ago", (diff + 15) / 30),
                                                                                     ^
/datasets/git/date.c:179:71: warning: 30 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         Q_("%"PRItime" month ago", "%"PRItime" months ago", (diff + 15) / 30),
                                                                                           ^
/datasets/git/date.c:180:13: warning: 15 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         (diff + 15) / 30);
                                 ^
/datasets/git/date.c:180:19: warning: 30 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         (diff + 15) / 30);
                                       ^
/datasets/git/date.c:184:13: warning: 1825 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (diff < 1825) {
                   ^
/datasets/git/date.c:185:37: warning: 12 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                timestamp_t totalmonths = (diff * 12 * 2 + 365) / (365 * 2);
                                                  ^
/datasets/git/date.c:185:46: warning: 365 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                timestamp_t totalmonths = (diff * 12 * 2 + 365) / (365 * 2);
                                                           ^
/datasets/git/date.c:185:54: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                timestamp_t totalmonths = (diff * 12 * 2 + 365) / (365 * 2);
                                                                   ^
/datasets/git/date.c:185:54: note: make conversion explicit to silence this warning
                timestamp_t totalmonths = (diff * 12 * 2 + 365) / (365 * 2);
                                                                   ^~~~~~~
                                                                   (unsigned long)( )
/datasets/git/date.c:185:54: note: perform multiplication in a wider type
                timestamp_t totalmonths = (diff * 12 * 2 + 365) / (365 * 2);
                                                                   ^~~
                                                                   (long)
/datasets/git/date.c:185:54: warning: 365 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                timestamp_t totalmonths = (diff * 12 * 2 + 365) / (365 * 2);
                                                                   ^
/datasets/git/date.c:186:37: warning: 12 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                timestamp_t years = totalmonths / 12;
                                                  ^
/datasets/git/date.c:187:38: warning: 12 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                timestamp_t months = totalmonths % 12;
                                                   ^
/datasets/git/date.c:189:18: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                        struct strbuf sb = STRBUF_INIT;
                                      ^
/datasets/git/date.c:196:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/date.c:203:62: warning: 183 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                 Q_("%"PRItime" year ago", "%"PRItime" years ago", (diff + 183) / 365),
                                                                           ^
/datasets/git/date.c:203:69: warning: 365 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                 Q_("%"PRItime" year ago", "%"PRItime" years ago", (diff + 183) / 365),
                                                                                  ^
/datasets/git/date.c:204:12: warning: 183 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                 (diff + 183) / 365);
                         ^
/datasets/git/date.c:204:19: warning: 365 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                 (diff + 183) / 365);
                                ^
/datasets/git/date.c:210:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (type == DATE_STRFTIME)
                                  ^
                                   {
/datasets/git/date.c:216:79: warning: parameter name 'tm' is too short, expected at least 3 characters [readability-identifier-length]
static void show_date_normal(struct strbuf *buf, timestamp_t time, struct tm *tm, int tz, struct tm *human_tm, int human_tz, int local)
                                                                              ^
/datasets/git/date.c:216:87: warning: parameter name 'tz' is too short, expected at least 3 characters [readability-identifier-length]
static void show_date_normal(struct strbuf *buf, timestamp_t time, struct tm *tm, int tz, struct tm *human_tm, int human_tz, int local)
                                                                                      ^
/datasets/git/date.c:218:2: warning: accessing fields in struct '' is inefficient due to poor alignment; currently aligned to 4 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
        struct {
        ^
/datasets/git/date.c:218:2: note: use "__attribute__((aligned(32)))" to align struct '' to 32 bytes
/datasets/git/date.c:235:29: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        } else if (tm->tm_mday + 5 > human_tm->tm_mday) {
                                                 ^
/datasets/git/date.c:259:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                hide.tz |= !hide.date;
                ^          ~~~~~~~~~~
/datasets/git/date.c:263:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!hide.wday)
                       ^
                        {
/datasets/git/date.c:265:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!hide.date)
                       ^
                        {
/datasets/git/date.c:271:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!hide.seconds)
                                  ^
                                   {
/datasets/git/date.c:273:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/date.c:276:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!hide.year)
                       ^
                        {
/datasets/git/date.c:277:41: warning: 1900 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                strbuf_addf(buf, " %d", tm->tm_year + 1900);
                                                      ^
/datasets/git/date.c:279:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!hide.tz)
                     ^
                      {
/datasets/git/date.c:283:45: warning: parameter name 'tz' is too short, expected at least 3 characters [readability-identifier-length]
const char *show_date(timestamp_t time, int tz, const struct date_mode *mode)
                                            ^
/datasets/git/date.c:285:13: warning: variable 'tm' is not initialized [cppcoreguidelines-init-variables]
        struct tm *tm;
                   ^
                      = NULL
/datasets/git/date.c:285:13: warning: variable name 'tm' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/date.c:306:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mode->local)
                        ^
                         {
/datasets/git/date.c:321:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mode->local)
                        ^
                         {
/datasets/git/date.c:323:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/date.c:331:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mode->type == DATE_SHORT)
                                     ^
                                      {
/datasets/git/date.c:332:57: warning: 1900 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                strbuf_addf(&timebuf, "%04d-%02d-%02d", tm->tm_year + 1900,
                                                                      ^
/datasets/git/date.c:334:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (mode->type == DATE_ISO8601)
                                            ^
                                             {
/datasets/git/date.c:336:19: warning: 1900 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                tm->tm_year + 1900,
                                              ^
/datasets/git/date.c:345:19: warning: 1900 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                tm->tm_year + 1900,
                                              ^
/datasets/git/date.c:349:16: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                sign, tz / 100, tz % 100);
                                           ^
/datasets/git/date.c:349:26: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                sign, tz / 100, tz % 100);
                                                     ^
/datasets/git/date.c:350:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else if (mode->type == DATE_RFC2822)
                                              ^
                                               {
/datasets/git/date.c:353:43: warning: 1900 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        month_names[tm->tm_mon], tm->tm_year + 1900,
                                                               ^
/datasets/git/date.c:355:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (mode->type == DATE_STRFTIME)
                                             ^
                                              {
/datasets/git/date.c:358:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/date.c:369:14: warning: accessing fields in struct '' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
static const struct {
             ^
/datasets/git/date.c:369:14: note: use "__attribute__((aligned(16)))" to align struct '' to 16 bytes
/datasets/git/date.c:424:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0;
            ^
/datasets/git/date.c:426:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; *date; date++, str++, i++) {
        ^
/datasets/git/date.c:427:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*date == *str)
                                  ^
                                   {
/datasets/git/date.c:429:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (toupper(*date) == toupper(*str))
                                                    ^
                                                     {
/datasets/git/date.c:431:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!isalnum(*date))
                     ^
/datasets/git/./git-compat-util.h:1220:20: note: expanded from macro 'isalnum'
#define isalnum(x) sane_istest(x,GIT_ALPHA | GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/date.c:431:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!isalnum(*date))
                                    ^
                                     {
/datasets/git/date.c:440:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0;
            ^
/datasets/git/date.c:441:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        do {
        ^
/datasets/git/date.c:443:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        } while (isalpha(date[i]));
                 ^
/datasets/git/./git-compat-util.h:1219:20: note: expanded from macro 'isalpha'
#define isalpha(x) sane_istest(x,GIT_ALPHA)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/date.c:450:53: warning: parameter name 'tm' is too short, expected at least 3 characters [readability-identifier-length]
static int match_alpha(const char *date, struct tm *tm, int *offset)
                                                    ^
/datasets/git/date.c:452:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/date.c:452:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/date.c:454:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < 12; i++) {
        ^
/datasets/git/date.c:454:18: warning: 12 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        for (i = 0; i < 12; i++) {
                        ^
/datasets/git/date.c:462:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < 7; i++) {
        ^
/datasets/git/date.c:462:18: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        for (i = 0; i < 7; i++) {
                        ^
/datasets/git/date.c:470:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ARRAY_SIZE(timezone_names); i++) {
        ^
/datasets/git/date.c:479:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (*offset == -1)
                                          ^
                                           {
/datasets/git/date.c:480:15: warning: 60 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                *offset = 60*off;
                                          ^
/datasets/git/date.c:487:32: warning: 12 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                tm->tm_hour = (tm->tm_hour % 12) + 12;
                                             ^
/datasets/git/date.c:487:38: warning: 12 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                tm->tm_hour = (tm->tm_hour % 12) + 12;
                                                   ^
/datasets/git/date.c:492:32: warning: 12 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                tm->tm_hour = (tm->tm_hour % 12) + 0;
                                             ^
/datasets/git/date.c:500:21: warning: 2 adjacent parameters of 'set_date' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int set_date(int year, int month, int day, struct tm *now_tm, time_t now, struct tm *tm)
                    ^~~~~~~~~~~~~~~~~~~
/datasets/git/date.c:500:25: note: the first parameter in the range is 'year'
static int set_date(int year, int month, int day, struct tm *now_tm, time_t now, struct tm *tm)
                        ^~~~
/datasets/git/date.c:500:35: note: the last parameter in the range is 'month'
static int set_date(int year, int month, int day, struct tm *now_tm, time_t now, struct tm *tm)
                                  ^~~~~
/datasets/git/date.c:500:93: warning: parameter name 'tm' is too short, expected at least 3 characters [readability-identifier-length]
static int set_date(int year, int month, int day, struct tm *now_tm, time_t now, struct tm *tm)
                                                                                            ^
/datasets/git/date.c:502:27: warning: 13 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (month > 0 && month < 13 && day > 0 && day < 32) {
                                 ^
/datasets/git/date.c:502:50: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (month > 0 && month < 13 && day > 0 && day < 32) {
                                                        ^
/datasets/git/date.c:504:14: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
                struct tm *r = (now_tm ? &check : tm);
                           ^
/datasets/git/date.c:505:10: warning: variable 'specified' is not initialized [cppcoreguidelines-init-variables]
                time_t specified;
                       ^
                                 = 0
/datasets/git/date.c:510:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!now_tm)
                                    ^
                                     {
/datasets/git/date.c:514:20: warning: 1970 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                else if (year >= 1970 && year < 2100)
                                 ^
/datasets/git/date.c:514:35: warning: 2100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                else if (year >= 1970 && year < 2100)
                                                ^
/datasets/git/date.c:514:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (year >= 1970 && year < 2100)
                                                     ^
                                                      {
/datasets/git/date.c:515:24: warning: 1900 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        r->tm_year = year - 1900;
                                            ^
/datasets/git/date.c:516:19: warning: 70 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                else if (year > 70 && year < 100)
                                ^
/datasets/git/date.c:516:32: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                else if (year > 70 && year < 100)
                                             ^
/datasets/git/date.c:516:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (year > 70 && year < 100)
                                                 ^
                                                  {
/datasets/git/date.c:518:19: warning: 38 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                else if (year < 38)
                                ^
/datasets/git/date.c:518:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (year < 38)
                                   ^
                                    {
/datasets/git/date.c:519:24: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        r->tm_year = year + 100;
                                            ^
/datasets/git/date.c:520:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/date.c:522:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!now_tm)
                            ^
                             {
/datasets/git/date.c:531:35: warning: performing an implicit widening conversion to type 'long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                if ((specified != -1) && (now + 10*24*3600 < specified))
                                                ^
/datasets/git/date.c:531:35: note: make conversion explicit to silence this warning
                if ((specified != -1) && (now + 10*24*3600 < specified))
                                                ^~~~~~~~~~
                                                (long)( )
/datasets/git/date.c:531:35: note: perform multiplication in a wider type
                if ((specified != -1) && (now + 10*24*3600 < specified))
                                                ^~~~~
                                                (long)
/datasets/git/date.c:531:35: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if ((specified != -1) && (now + 10*24*3600 < specified))
                                                ^
/datasets/git/date.c:531:38: warning: 24 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if ((specified != -1) && (now + 10*24*3600 < specified))
                                                   ^
/datasets/git/date.c:531:41: warning: 3600 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if ((specified != -1) && (now + 10*24*3600 < specified))
                                                      ^
/datasets/git/date.c:531:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((specified != -1) && (now + 10*24*3600 < specified))
                                                                        ^
                                                                         {
/datasets/git/date.c:535:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (year != -1)
                               ^
                                {
/datasets/git/date.c:542:69: warning: parameter name 'tm' is too short, expected at least 3 characters [readability-identifier-length]
static int set_time(long hour, long minute, long second, struct tm *tm)
                                                                    ^
/datasets/git/date.c:545:27: warning: 24 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (0 <= hour && hour <= 24 &&
                                 ^
/datasets/git/date.c:546:30: warning: 60 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
            0 <= minute && minute < 60 &&
                                    ^
/datasets/git/date.c:547:31: warning: 60 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
            0 <= second && second <= 60) {
                                     ^
/datasets/git/date.c:548:17: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                tm->tm_hour = hour;
                              ^
/datasets/git/date.c:549:16: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                tm->tm_min = minute;
                             ^
/datasets/git/date.c:550:16: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                tm->tm_sec = second;
                             ^
/datasets/git/date.c:556:37: warning: parameter name 'tm' is too short, expected at least 3 characters [readability-identifier-length]
static int is_date_known(struct tm *tm)
                                    ^
/datasets/git/date.c:561:12: warning: function 'match_multi_number' has cognitive complexity of 31 (threshold 25) [readability-function-cognitive-complexity]
static int match_multi_number(timestamp_t num, char c, const char *date,
           ^
/datasets/git/date.c:570:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (*end == c && isdigit(end[1]))
        ^
/datasets/git/date.c:570:16: note: +1
        if (*end == c && isdigit(end[1]))
                      ^
/datasets/git/date.c:574:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        switch (c) {
        ^
/datasets/git/date.c:576:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (num3 < 0)
                ^
/datasets/git/date.c:578:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (set_time(num, num2, num3, tm) == 0) {
                ^
/datasets/git/date.c:584:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (*end == '.' && isdigit(end[1]) && is_date_known(tm))
                        ^
/datasets/git/date.c:584:39: note: +1
                        if (*end == '.' && isdigit(end[1]) && is_date_known(tm))
                                                           ^
/datasets/git/date.c:593:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!now)
                ^
/datasets/git/date.c:596:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (gmtime_r(&now, &now_tm))
                ^
/datasets/git/date.c:599:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (num > 70) {
                ^
/datasets/git/date.c:601:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (set_date(num, num2, num3, NULL, now, tm) == 0)
                        ^
/datasets/git/date.c:604:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (set_date(num, num3, num2, NULL, now, tm) == 0)
                        ^
/datasets/git/date.c:611:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (c != '.' &&
                ^
/datasets/git/date.c:611:16: note: +1
                if (c != '.' &&
                             ^
/datasets/git/date.c:615:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (set_date(num3, num2, num, refuse_future, now, tm) == 0)
                ^
/datasets/git/date.c:618:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (c == '.' &&
                ^
/datasets/git/date.c:618:16: note: +1
                if (c == '.' &&
                             ^
/datasets/git/date.c:561:53: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static int match_multi_number(timestamp_t num, char c, const char *date,
                                                    ^
/datasets/git/date.c:562:32: warning: parameter name 'tm' is too short, expected at least 3 characters [readability-identifier-length]
                              char *end, struct tm *tm, time_t now)
                                                    ^
/datasets/git/date.c:565:13: warning: variable 'refuse_future' is not initialized [cppcoreguidelines-init-variables]
        struct tm *refuse_future;
                   ^
                                 = NULL
/datasets/git/date.c:566:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        long num2, num3;
        ^~~~~~~~~~~~~~~~
/datasets/git/date.c:566:7: warning: variable 'num2' is not initialized [cppcoreguidelines-init-variables]
        long num2, num3;
             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/date.c:566:13: warning: variable 'num3' is not initialized [cppcoreguidelines-init-variables]
        long num2, num3;
                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/date.c:568:29: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        num2 = strtol(end+1, &end, 10);
                                   ^
/datasets/git/date.c:570:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (*end == c && isdigit(end[1]))
                         ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/date.c:570:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*end == c && isdigit(end[1]))
                                         ^
                                          {
/datasets/git/date.c:571:30: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                num3 = strtol(end+1, &end, 10);
                                           ^
/datasets/git/date.c:574:2: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
        switch (c) {
        ^
/datasets/git/date.c:576:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (num3 < 0)
                             ^
                              {
/datasets/git/date.c:578:16: warning: narrowing conversion from 'timestamp_t' (aka 'unsigned long') to signed type 'long' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                if (set_time(num, num2, num3, tm) == 0) {
                             ^
/datasets/git/date.c:584:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (*end == '.' && isdigit(end[1]) && is_date_known(tm))
                                           ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/date.c:584:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (*end == '.' && isdigit(end[1]) && is_date_known(tm))
                                                                                ^
                                                                                 {
/datasets/git/date.c:585:5: warning: the value returned by this function should be used [cert-err33-c]
                                strtol(end + 1, &end, 10);
                                ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/date.c:585:5: note: cast the expression to void to silence this warning
/datasets/git/date.c:585:27: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                strtol(end + 1, &end, 10);
                                                      ^
/datasets/git/date.c:593:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!now)
                         ^
                          {
/datasets/git/date.c:596:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (gmtime_r(&now, &now_tm))
                                            ^
                                             {
/datasets/git/date.c:599:13: warning: 70 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (num > 70) {
                          ^
/datasets/git/date.c:601:17: warning: narrowing conversion from 'timestamp_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        if (set_date(num, num2, num3, NULL, now, tm) == 0)
                                     ^
/datasets/git/date.c:601:22: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        if (set_date(num, num2, num3, NULL, now, tm) == 0)
                                          ^
/datasets/git/date.c:601:28: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        if (set_date(num, num2, num3, NULL, now, tm) == 0)
                                                ^
/datasets/git/date.c:601:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (set_date(num, num2, num3, NULL, now, tm) == 0)
                                                                          ^
                                                                           {
/datasets/git/date.c:604:17: warning: narrowing conversion from 'timestamp_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        if (set_date(num, num3, num2, NULL, now, tm) == 0)
                                     ^
/datasets/git/date.c:604:22: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        if (set_date(num, num3, num2, NULL, now, tm) == 0)
                                          ^
/datasets/git/date.c:604:28: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        if (set_date(num, num3, num2, NULL, now, tm) == 0)
                                                ^
/datasets/git/date.c:604:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (set_date(num, num3, num2, NULL, now, tm) == 0)
                                                                          ^
                                                                           {
/datasets/git/date.c:612:16: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                    set_date(num3, num, num2, refuse_future, now, tm) == 0)
                             ^
/datasets/git/date.c:612:22: warning: narrowing conversion from 'timestamp_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                    set_date(num3, num, num2, refuse_future, now, tm) == 0)
                                   ^
/datasets/git/date.c:612:27: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                    set_date(num3, num, num2, refuse_future, now, tm) == 0)
                                        ^
/datasets/git/date.c:612:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    set_date(num3, num, num2, refuse_future, now, tm) == 0)
                                                                           ^
                                                                            {
/datasets/git/date.c:615:16: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                if (set_date(num3, num2, num, refuse_future, now, tm) == 0)
                             ^
/datasets/git/date.c:615:22: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                if (set_date(num3, num2, num, refuse_future, now, tm) == 0)
                                   ^
/datasets/git/date.c:615:28: warning: narrowing conversion from 'timestamp_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                if (set_date(num3, num2, num, refuse_future, now, tm) == 0)
                                         ^
/datasets/git/date.c:615:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (set_date(num3, num2, num, refuse_future, now, tm) == 0)
                                                                           ^
                                                                            {
/datasets/git/date.c:619:16: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                    set_date(num3, num, num2, refuse_future, now, tm) == 0)
                             ^
/datasets/git/date.c:619:22: warning: narrowing conversion from 'timestamp_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                    set_date(num3, num, num2, refuse_future, now, tm) == 0)
                                   ^
/datasets/git/date.c:619:27: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                    set_date(num3, num, num2, refuse_future, now, tm) == 0)
                                        ^
/datasets/git/date.c:619:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    set_date(num3, num, num2, refuse_future, now, tm) == 0)
                                                                           ^
                                                                            {
/datasets/git/date.c:623:9: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return end - date;
               ^
/datasets/git/date.c:631:37: warning: parameter name 'tm' is too short, expected at least 3 characters [readability-identifier-length]
static inline int nodate(struct tm *tm)
                                    ^
/datasets/git/date.c:633:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return (tm->tm_year &
                ^~~~~~~~~~~~~
/datasets/git/date.c:644:12: warning: function 'match_digit' has cognitive complexity of 35 (threshold 25) [readability-function-cognitive-complexity]
static int match_digit(const char *date, struct tm *tm, int *offset, int *tm_gmt)
           ^
/datasets/git/date.c:657:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (num >= 100000000 && nodate(tm)) {
        ^
/datasets/git/date.c:657:23: note: +1
        if (num >= 100000000 && nodate(tm)) {
                             ^
/datasets/git/date.c:659:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (gmtime_r(&time, tm)) {
                ^
/datasets/git/date.c:668:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        switch (*end) {
        ^
/datasets/git/date.c:673:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (isdigit(end[1])) {
                ^
/datasets/git/date.c:675:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (match)
                        ^
/datasets/git/date.c:686:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        do {
        ^
/datasets/git/date.c:692:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (n == 8 || n == 6) {
        ^
/datasets/git/date.c:692:13: note: +1
        if (n == 8 || n == 6) {
                   ^
/datasets/git/date.c:696:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (n == 8)
                ^
/datasets/git/date.c:698:8: note: +1, nesting level increased to 2
                else if (n == 6 && set_time(num1, num2, num3, tm) == 0 &&
                     ^
/datasets/git/date.c:699:17: note: +1
                         *end == '.' && isdigit(end[1]))
                                     ^
/datasets/git/date.c:705:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (n == 4) {
        ^
/datasets/git/date.c:706:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (num <= 1400 && *offset == -1) {
                ^
/datasets/git/date.c:706:19: note: +1
                if (num <= 1400 && *offset == -1) {
                                ^
/datasets/git/date.c:710:10: note: +1, nesting level increased to 2
                } else if (num > 1900 && num < 2100)
                       ^
/datasets/git/date.c:710:25: note: +1
                } else if (num > 1900 && num < 2100)
                                      ^
/datasets/git/date.c:719:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (n > 2)
        ^
/datasets/git/date.c:729:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (num > 0 && num < 32 && tm->tm_mday < 0) {
        ^
/datasets/git/date.c:729:26: note: +1
        if (num > 0 && num < 32 && tm->tm_mday < 0) {
                                ^
/datasets/git/date.c:735:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (n == 2 && tm->tm_year < 0) {
        ^
/datasets/git/date.c:735:13: note: +1
        if (n == 2 && tm->tm_year < 0) {
                   ^
/datasets/git/date.c:736:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (num < 10 && tm->tm_mday >= 0) {
                ^
/datasets/git/date.c:736:16: note: +1
                if (num < 10 && tm->tm_mday >= 0) {
                             ^
/datasets/git/date.c:740:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (num >= 70) {
                ^
/datasets/git/date.c:746:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (num > 0 && num < 13 && tm->tm_mon < 0)
        ^
/datasets/git/date.c:746:26: note: +1
        if (num > 0 && num < 13 && tm->tm_mon < 0)
                                ^
/datasets/git/date.c:644:53: warning: parameter name 'tm' is too short, expected at least 3 characters [readability-identifier-length]
static int match_digit(const char *date, struct tm *tm, int *offset, int *tm_gmt)
                                                    ^
/datasets/git/date.c:644:57: warning: 2 adjacent parameters of 'match_digit' of similar type ('int *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int match_digit(const char *date, struct tm *tm, int *offset, int *tm_gmt)
                                                        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/date.c:644:62: note: the first parameter in the range is 'offset'
static int match_digit(const char *date, struct tm *tm, int *offset, int *tm_gmt)
                                                             ^~~~~~
/datasets/git/date.c:644:75: note: the last parameter in the range is 'tm_gmt'
static int match_digit(const char *date, struct tm *tm, int *offset, int *tm_gmt)
                                                                          ^~~~~~
/datasets/git/date.c:646:6: warning: variable 'n' is not initialized [cppcoreguidelines-init-variables]
        int n;
            ^
              = 0
/datasets/git/date.c:646:6: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/date.c:647:8: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
        char *end;
              ^
                  = NULL
/datasets/git/date.c:648:14: warning: variable 'num' is not initialized [cppcoreguidelines-init-variables]
        timestamp_t num;
                    ^
                        = 0
/datasets/git/date.c:650:36: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        num = parse_timestamp(date, &end, 10);
                                          ^
/datasets/git/date.c:657:13: warning: 100000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (num >= 100000000 && nodate(tm)) {
                   ^
/datasets/git/date.c:658:17: warning: narrowing conversion from 'timestamp_t' (aka 'unsigned long') to signed type 'time_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                time_t time = num;
                              ^
/datasets/git/date.c:661:11: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        return end - date;
                               ^
/datasets/git/date.c:673:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (isdigit(end[1])) {
                    ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/date.c:675:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (match)
                                  ^
                                   {
/datasets/git/date.c:686:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        do {
        ^
/datasets/git/date.c:688:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        } while (isdigit(date[n]));
                 ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/date.c:692:11: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (n == 8 || n == 6) {
                 ^
/datasets/git/date.c:692:21: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (n == 8 || n == 6) {
                           ^
/datasets/git/date.c:693:29: warning: 10000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                unsigned int num1 = num / 10000;
                                          ^
/datasets/git/date.c:694:30: warning: 10000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                unsigned int num2 = (num % 10000) / 100;
                                           ^
/datasets/git/date.c:694:39: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                unsigned int num2 = (num % 10000) / 100;
                                                    ^
/datasets/git/date.c:695:29: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                unsigned int num3 = num % 100;
                                          ^
/datasets/git/date.c:696:12: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (n == 8)
                         ^
/datasets/git/date.c:696:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (n == 8)
                           ^
                            {
/datasets/git/date.c:697:13: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        set_date(num1, num2, num3, NULL, time(NULL), tm);
                                 ^
/datasets/git/date.c:697:19: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        set_date(num1, num2, num3, NULL, time(NULL), tm);
                                       ^
/datasets/git/date.c:697:25: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        set_date(num1, num2, num3, NULL, time(NULL), tm);
                                             ^
/datasets/git/date.c:698:17: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                else if (n == 6 && set_time(num1, num2, num3, tm) == 0 &&
                              ^
/datasets/git/date.c:699:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         *end == '.' && isdigit(end[1]))
                                        ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/date.c:699:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                         *end == '.' && isdigit(end[1]))
                                                        ^
                                                         {
/datasets/git/date.c:700:4: warning: the value returned by this function should be used [cert-err33-c]
                        strtoul(end + 1, &end, 10);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/date.c:700:4: note: cast the expression to void to silence this warning
/datasets/git/date.c:700:27: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        strtoul(end + 1, &end, 10);
                                               ^
/datasets/git/date.c:701:10: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                return end - date;
                       ^
/datasets/git/date.c:706:14: warning: 1400 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (num <= 1400 && *offset == -1) {
                           ^
/datasets/git/date.c:707:33: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        unsigned int minutes = num % 100;
                                                     ^
/datasets/git/date.c:708:31: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        unsigned int hours = num / 100;
                                                   ^
/datasets/git/date.c:709:14: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        *offset = hours*60 + minutes;
                                  ^
/datasets/git/date.c:709:20: warning: 60 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        *offset = hours*60 + minutes;
                                        ^
/datasets/git/date.c:710:20: warning: 1900 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                } else if (num > 1900 && num < 2100)
                                 ^
/datasets/git/date.c:710:34: warning: 2100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                } else if (num > 1900 && num < 2100)
                                               ^
/datasets/git/date.c:710:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else if (num > 1900 && num < 2100)
                                                    ^
                                                     {
/datasets/git/date.c:711:18: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        tm->tm_year = num - 1900;
                                      ^
/datasets/git/date.c:711:24: warning: 1900 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        tm->tm_year = num - 1900;
                                            ^
/datasets/git/date.c:719:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (n > 2)
                  ^
                   {
/datasets/git/date.c:729:23: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (num > 0 && num < 32 && tm->tm_mday < 0) {
                             ^
/datasets/git/date.c:730:17: warning: narrowing conversion from 'timestamp_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                tm->tm_mday = num;
                              ^
/datasets/git/date.c:736:13: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (num < 10 && tm->tm_mday >= 0) {
                          ^
/datasets/git/date.c:737:18: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        tm->tm_year = num + 100;
                                      ^
/datasets/git/date.c:737:24: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        tm->tm_year = num + 100;
                                            ^
/datasets/git/date.c:740:14: warning: 70 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (num >= 70) {
                           ^
/datasets/git/date.c:741:18: warning: narrowing conversion from 'timestamp_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        tm->tm_year = num;
                                      ^
/datasets/git/date.c:746:23: warning: 13 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (num > 0 && num < 13 && tm->tm_mon < 0)
                             ^
/datasets/git/date.c:746:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (num > 0 && num < 13 && tm->tm_mon < 0)
                                                  ^
                                                   {
/datasets/git/date.c:747:16: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                tm->tm_mon = num-1;
                             ^
/datasets/git/date.c:754:8: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
        char *end;
              ^
                  = NULL
/datasets/git/date.c:755:13: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int hour = strtoul(date + 1, &end, 10);
                   ^
/datasets/git/date.c:755:37: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        int hour = strtoul(date + 1, &end, 10);
                                           ^
/datasets/git/date.c:756:6: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
        int n = end - (date + 1);
            ^
/datasets/git/date.c:756:10: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int n = end - (date + 1);
                ^
/datasets/git/date.c:761:16: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                min = hour % 100;
                             ^
/datasets/git/date.c:762:17: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                hour = hour / 100;
                              ^
/datasets/git/date.c:764:9: warning: 99 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                min = 99; /* random crap */
                      ^
/datasets/git/date.c:767:9: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                min = strtoul(end + 1, &end, 10);
                      ^
/datasets/git/date.c:767:32: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                min = strtoul(end + 1, &end, 10);
                                             ^
/datasets/git/date.c:768:27: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (end - (date + 1) != 5)
                                        ^
/datasets/git/date.c:768:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (end - (date + 1) != 5)
                                          ^
                                           {
/datasets/git/date.c:769:10: warning: 99 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        min = 99; /* random crap */
                              ^
/datasets/git/date.c:780:12: warning: 60 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (min < 60 && hour < 24) {
                  ^
/datasets/git/date.c:780:25: warning: 24 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (min < 60 && hour < 24) {
                               ^
/datasets/git/date.c:781:23: warning: 60 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                int offset = hour * 60 + min;
                                    ^
/datasets/git/date.c:782:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*date == '-')
                                 ^
                                  {
/datasets/git/date.c:786:9: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return end - date;
               ^
/datasets/git/date.c:797:65: warning: 60 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        strbuf_addf(buf, "%"PRItime" %c%02d%02d", date, sign, offset / 60, offset % 60);
                                                                       ^
/datasets/git/date.c:797:78: warning: 60 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        strbuf_addf(buf, "%"PRItime" %c%02d%02d", date, sign, offset / 60, offset % 60);
                                                                                    ^
/datasets/git/date.c:806:8: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
        char *end;
              ^
                  = NULL
/datasets/git/date.c:807:14: warning: variable 'stamp' is not initialized [cppcoreguidelines-init-variables]
        timestamp_t stamp;
                    ^
                          = 0
/datasets/git/date.c:808:6: warning: variable 'ofs' is not initialized [cppcoreguidelines-init-variables]
        int ofs;
            ^
                = 0
/datasets/git/date.c:810:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*date < '0' || '9' < *date)
                                       ^
                                        {
/datasets/git/date.c:812:38: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        stamp = parse_timestamp(date, &end, 10);
                                            ^
/datasets/git/date.c:813:75: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*end != ' ' || stamp == TIME_MAX || (end[1] != '+' && end[1] != '-'))
                                                                                 ^
                                                                                  {
/datasets/git/date.c:816:8: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        ofs = strtol(date, &end, 10);
              ^
/datasets/git/date.c:816:27: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        ofs = strtol(date, &end, 10);
                                 ^
/datasets/git/date.c:817:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((*end != '\0' && (*end != '\n')) || end != date + 4)
                                                                ^
                                                                 {
/datasets/git/date.c:819:15: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        ofs = (ofs / 100) * 60 + (ofs % 100);
                     ^
/datasets/git/date.c:819:22: warning: 60 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        ofs = (ofs / 100) * 60 + (ofs % 100);
                            ^
/datasets/git/date.c:819:34: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        ofs = (ofs / 100) * 60 + (ofs % 100);
                                        ^
/datasets/git/date.c:820:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (date[-1] == '-')
                            ^
                             {
/datasets/git/date.c:831:12: warning: variable name 'tm' is too short, expected at least 3 characters [readability-identifier-length]
        struct tm tm;
                  ^
/datasets/git/date.c:832:6: warning: variable 'tm_gmt' is not initialized [cppcoreguidelines-init-variables]
        int tm_gmt;
            ^
                   = 0
/datasets/git/date.c:833:14: warning: variable 'dummy_timestamp' is not initialized [cppcoreguidelines-init-variables]
        timestamp_t dummy_timestamp;
                    ^
                                    = 0
/datasets/git/date.c:834:6: warning: variable 'dummy_offset' is not initialized [cppcoreguidelines-init-variables]
        int dummy_offset;
            ^
                         = 0
/datasets/git/date.c:836:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!timestamp)
                       ^
                        {
/datasets/git/date.c:838:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!offset)
                    ^
                     {
/datasets/git/date.c:841:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&tm, 0, sizeof(tm));
        ^~~~~~
/datasets/git/date.c:841:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&tm, 0, sizeof(tm));
        ^~~~~~
/datasets/git/date.c:853:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !match_object_header_date(date + 1, timestamp, offset))
                                                                   ^
                                                                    {
/datasets/git/date.c:855:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/date.c:857:17: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                unsigned char c = *date;
                              ^
/datasets/git/date.c:860:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!c || c == '\n')
                                    ^
                                     {
/datasets/git/date.c:863:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (isalpha(c))
                    ^
/datasets/git/./git-compat-util.h:1219:20: note: expanded from macro 'isalpha'
#define isalpha(x) sane_istest(x,GIT_ALPHA)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/date.c:863:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (isalpha(c))
                               ^
                                {
/datasets/git/date.c:865:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                else if (isdigit(c))
                         ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/date.c:865:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (isdigit(c))
                                    ^
                                     {
/datasets/git/date.c:867:38: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                else if ((c == '-' || c == '+') && isdigit(date[1]))
                                                   ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/date.c:867:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if ((c == '-' || c == '+') && isdigit(date[1]))
                                                                    ^
                                                                     {
/datasets/git/date.c:880:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*timestamp == -1)
                             ^
                              {
/datasets/git/date.c:884:10: warning: variable 'temp_time' is not initialized [cppcoreguidelines-init-variables]
                time_t temp_time;
                       ^
                                 = 0
/datasets/git/date.c:890:14: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        *offset = ((time_t)*timestamp - temp_time) / 60;
                                  ^
/datasets/git/date.c:890:49: warning: 60 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        *offset = ((time_t)*timestamp - temp_time) / 60;
                                                                     ^
/datasets/git/date.c:892:56: warning: 60 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        *offset = -(int)((temp_time - (time_t)*timestamp) / 60);
                                                                            ^
/datasets/git/date.c:896:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!tm_gmt)
                    ^
                     {
/datasets/git/date.c:897:17: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                *timestamp -= *offset * 60;
                              ^
/datasets/git/date.c:897:17: note: make conversion explicit to silence this warning
                *timestamp -= *offset * 60;
                              ^~~~~~~~~~~~
                              (unsigned long)( )
/datasets/git/date.c:897:17: note: perform multiplication in a wider type
                *timestamp -= *offset * 60;
                              ^~~~~~~
                              (long)
/datasets/git/date.c:897:27: warning: 60 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                *timestamp -= *offset * 60;
                                        ^
/datasets/git/date.c:905:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(date, "never") || !strcmp(date, "false"))
                                                             ^
                                                              {
/datasets/git/date.c:907:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(date, "all") || !strcmp(date, "now"))
                                                              ^
                                                               {
/datasets/git/date.c:917:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/date.c:925:14: warning: variable 'timestamp' is not initialized [cppcoreguidelines-init-variables]
        timestamp_t timestamp;
                    ^
                              = 0
/datasets/git/date.c:926:6: warning: variable 'offset' is not initialized [cppcoreguidelines-init-variables]
        int offset;
            ^
                   = 0
/datasets/git/date.c:927:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_date_basic(date, &timestamp, &offset))
                                                        ^
                                                         {
/datasets/git/date.c:935:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (skip_prefix(format, "relative", end))
                                                 ^
                                                  {
/datasets/git/date.c:938:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            skip_prefix(format, "iso-strict", end))
                                                   ^
                                                    {
/datasets/git/date.c:941:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            skip_prefix(format, "iso", end))
                                            ^
                                             {
/datasets/git/date.c:944:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            skip_prefix(format, "rfc", end))
                                            ^
                                             {
/datasets/git/date.c:946:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (skip_prefix(format, "short", end))
                                              ^
                                               {
/datasets/git/date.c:948:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (skip_prefix(format, "default", end))
                                                ^
                                                 {
/datasets/git/date.c:950:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (skip_prefix(format, "human", end))
                                              ^
                                               {
/datasets/git/date.c:952:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (skip_prefix(format, "raw", end))
                                            ^
                                             {
/datasets/git/date.c:954:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (skip_prefix(format, "unix", end))
                                             ^
                                              {
/datasets/git/date.c:956:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (skip_prefix(format, "format", end))
                                               ^
                                                {
/datasets/git/date.c:968:14: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        const char *p;
                    ^
                      = NULL
/datasets/git/date.c:968:14: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/date.c:972:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (isatty(1) || pager_in_use())
                                                ^
                                                 {
/datasets/git/date.c:974:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/date.c:979:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(format, "local"))
                                     ^
                                      {
/datasets/git/date.c:985:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (skip_prefix(p, "-local", &p))
                                         ^
                                          {
/datasets/git/date.c:989:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!skip_prefix(p, ":", &p))
                                             ^
                                              {
/datasets/git/date.c:992:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else if (*p)
                      ^
                       {
/datasets/git/date.c:1003:9: warning: variable 'now' is not initialized [cppcoreguidelines-init-variables]
        time_t now;
               ^
                   = 0
/datasets/git/date.c:1004:6: warning: variable 'offset' is not initialized [cppcoreguidelines-init-variables]
        int offset;
            ^
                   = 0
/datasets/git/date.c:1005:12: warning: variable name 'tm' is too short, expected at least 3 characters [readability-identifier-length]
        struct tm tm = { 0 };
                  ^
/datasets/git/date.c:1007:2: warning: the value returned by this function should be used [cert-err33-c]
        time(&now);
        ^~~~~~~~~~
/datasets/git/date.c:1007:2: note: cast the expression to void to silence this warning
/datasets/git/date.c:1009:11: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        offset = tm_to_time_t(localtime_r(&now, &tm)) - now;
                 ^
/datasets/git/date.c:1010:12: warning: 60 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        offset /= 60;
                  ^
/datasets/git/date.c:1019:36: warning: parameter name 'tm' is too short, expected at least 3 characters [readability-identifier-length]
static time_t update_tm(struct tm *tm, struct tm *now, time_t sec)
                                   ^
/datasets/git/date.c:1021:9: warning: variable 'n' is not initialized [cppcoreguidelines-init-variables]
        time_t n;
               ^
                 = 0
/datasets/git/date.c:1021:9: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/date.c:1023:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (tm->tm_mday < 0)
                            ^
                             {
/datasets/git/date.c:1025:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (tm->tm_mon < 0)
                           ^
                            {
/datasets/git/date.c:1029:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (tm->tm_mon > now->tm_mon)
                                             ^
                                              {
/datasets/git/date.c:1043:39: warning: parameter name 'tm' is too short, expected at least 3 characters [readability-identifier-length]
static void pending_number(struct tm *tm, int *num)
                                      ^
/datasets/git/date.c:1049:35: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (tm->tm_mday < 0 && number < 32)
                                                ^
/datasets/git/date.c:1049:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (tm->tm_mday < 0 && number < 32)
                                                   ^
                                                    {
/datasets/git/date.c:1051:39: warning: 13 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                else if (tm->tm_mon < 0 && number < 13)
                                                    ^
/datasets/git/date.c:1051:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (tm->tm_mon < 0 && number < 13)
                                                       ^
                                                        {
/datasets/git/date.c:1054:17: warning: 1969 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        if (number > 1969 && number < 2100)
                                     ^
/datasets/git/date.c:1054:34: warning: 2100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        if (number > 1969 && number < 2100)
                                                      ^
/datasets/git/date.c:1054:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (number > 1969 && number < 2100)
                                                           ^
                                                            {
/datasets/git/date.c:1055:28: warning: 1900 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                tm->tm_year = number - 1900;
                                                       ^
/datasets/git/date.c:1056:22: warning: 69 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        else if (number > 69 && number < 100)
                                          ^
/datasets/git/date.c:1056:37: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        else if (number > 69 && number < 100)
                                                         ^
/datasets/git/date.c:1056:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (number > 69 && number < 100)
                                                             ^
                                                              {
/datasets/git/date.c:1058:22: warning: 38 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        else if (number < 38)
                                          ^
/datasets/git/date.c:1058:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (number < 38)
                                             ^
                                              {
/datasets/git/date.c:1059:19: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                tm->tm_year = 100 + number;
                                              ^
/datasets/git/date.c:1065:33: warning: parameter name 'tm' is too short, expected at least 3 characters [readability-identifier-length]
static void date_now(struct tm *tm, struct tm *now, int *num)
                                ^
/datasets/git/date.c:1071:39: warning: parameter name 'tm' is too short, expected at least 3 characters [readability-identifier-length]
static void date_yesterday(struct tm *tm, struct tm *now, int *num)
                                      ^
/datasets/git/date.c:1074:21: warning: performing an implicit widening conversion to type 'time_t' (aka 'long') of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        update_tm(tm, now, 24*60*60);
                           ^
/datasets/git/date.c:1074:21: note: make conversion explicit to silence this warning
        update_tm(tm, now, 24*60*60);
                           ^~~~~~~~
                           (time_t)( )
/datasets/git/date.c:1074:21: note: perform multiplication in a wider type
        update_tm(tm, now, 24*60*60);
                           ^~~~~
                           (time_t)
/datasets/git/date.c:1074:21: warning: 24 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        update_tm(tm, now, 24*60*60);
                           ^
/datasets/git/date.c:1074:24: warning: 60 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        update_tm(tm, now, 24*60*60);
                              ^
/datasets/git/date.c:1074:27: warning: 60 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        update_tm(tm, now, 24*60*60);
                                 ^
/datasets/git/date.c:1077:34: warning: parameter name 'tm' is too short, expected at least 3 characters [readability-identifier-length]
static void date_time(struct tm *tm, struct tm *now, int hour)
                                 ^
/datasets/git/date.c:1079:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (tm->tm_hour < hour)
                               ^
                                {
/datasets/git/date.c:1080:22: warning: performing an implicit widening conversion to type 'time_t' (aka 'long') of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                update_tm(tm, now, 24*60*60);
                                   ^
/datasets/git/date.c:1080:22: note: make conversion explicit to silence this warning
                update_tm(tm, now, 24*60*60);
                                   ^~~~~~~~
                                   (time_t)( )
/datasets/git/date.c:1080:22: note: perform multiplication in a wider type
                update_tm(tm, now, 24*60*60);
                                   ^~~~~
                                   (time_t)
/datasets/git/date.c:1080:22: warning: 24 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                update_tm(tm, now, 24*60*60);
                                   ^
/datasets/git/date.c:1080:25: warning: 60 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                update_tm(tm, now, 24*60*60);
                                      ^
/datasets/git/date.c:1080:28: warning: 60 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                update_tm(tm, now, 24*60*60);
                                         ^
/datasets/git/date.c:1086:38: warning: parameter name 'tm' is too short, expected at least 3 characters [readability-identifier-length]
static void date_midnight(struct tm *tm, struct tm *now, int *num)
                                     ^
/datasets/git/date.c:1092:34: warning: parameter name 'tm' is too short, expected at least 3 characters [readability-identifier-length]
static void date_noon(struct tm *tm, struct tm *now, int *num)
                                 ^
/datasets/git/date.c:1095:21: warning: 12 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        date_time(tm, now, 12);
                           ^
/datasets/git/date.c:1098:33: warning: parameter name 'tm' is too short, expected at least 3 characters [readability-identifier-length]
static void date_tea(struct tm *tm, struct tm *now, int *num)
                                ^
/datasets/git/date.c:1101:21: warning: 17 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        date_time(tm, now, 17);
                           ^
/datasets/git/date.c:1104:21: warning: 2 adjacent parameters of 'date_pm' of similar type ('struct tm *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void date_pm(struct tm *tm, struct tm *now UNUSED, int *num)
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/date.c:1104:32: note: the first parameter in the range is 'tm'
static void date_pm(struct tm *tm, struct tm *now UNUSED, int *num)
                               ^~
/datasets/git/date.c:1104:47: note: the last parameter in the range is 'now'
static void date_pm(struct tm *tm, struct tm *now UNUSED, int *num)
                                              ^~~
/datasets/git/date.c:1104:32: warning: parameter name 'tm' is too short, expected at least 3 characters [readability-identifier-length]
static void date_pm(struct tm *tm, struct tm *now UNUSED, int *num)
                               ^
/datasets/git/date.c:1106:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int hour, n = *num;
        ^~~~~~~~~~~~~~~~~~~
/datasets/git/date.c:1106:6: warning: variable 'hour' is not initialized [cppcoreguidelines-init-variables]
        int hour, n = *num;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/date.c:1106:12: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
        int hour, n = *num;
                  ^
/datasets/git/date.c:1115:24: warning: 12 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        tm->tm_hour = (hour % 12) + 12;
                              ^
/datasets/git/date.c:1115:30: warning: 12 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        tm->tm_hour = (hour % 12) + 12;
                                    ^
/datasets/git/date.c:1118:21: warning: 2 adjacent parameters of 'date_am' of similar type ('struct tm *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void date_am(struct tm *tm, struct tm *now UNUSED, int *num)
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/date.c:1118:32: note: the first parameter in the range is 'tm'
static void date_am(struct tm *tm, struct tm *now UNUSED, int *num)
                               ^~
/datasets/git/date.c:1118:47: note: the last parameter in the range is 'now'
static void date_am(struct tm *tm, struct tm *now UNUSED, int *num)
                                              ^~~
/datasets/git/date.c:1118:32: warning: parameter name 'tm' is too short, expected at least 3 characters [readability-identifier-length]
static void date_am(struct tm *tm, struct tm *now UNUSED, int *num)
                               ^
/datasets/git/date.c:1120:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int hour, n = *num;
        ^~~~~~~~~~~~~~~~~~~
/datasets/git/date.c:1120:6: warning: variable 'hour' is not initialized [cppcoreguidelines-init-variables]
        int hour, n = *num;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/date.c:1120:12: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
        int hour, n = *num;
                  ^
/datasets/git/date.c:1129:24: warning: 12 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        tm->tm_hour = (hour % 12);
                              ^
/datasets/git/date.c:1132:24: warning: 2 adjacent parameters of 'date_never' of similar type ('struct tm *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void date_never(struct tm *tm, struct tm *now UNUSED, int *num)
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/date.c:1132:35: note: the first parameter in the range is 'tm'
static void date_never(struct tm *tm, struct tm *now UNUSED, int *num)
                                  ^~
/datasets/git/date.c:1132:50: note: the last parameter in the range is 'now'
static void date_never(struct tm *tm, struct tm *now UNUSED, int *num)
                                                 ^~~
/datasets/git/date.c:1132:35: warning: parameter name 'tm' is too short, expected at least 3 characters [readability-identifier-length]
static void date_never(struct tm *tm, struct tm *now UNUSED, int *num)
                                  ^
/datasets/git/date.c:1134:9: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
        time_t n = 0;
               ^
/datasets/git/date.c:1139:21: warning: accessing fields in struct 'special' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
static const struct special {
                    ^
/datasets/git/date.c:1139:21: note: use "__attribute__((aligned(16)))" to align struct 'special' to 16 bytes
/datasets/git/date.c:1154:20: warning: variable 'number_name' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *number_name[] = {
                   ^
/datasets/git/date.c:1159:21: warning: accessing fields in struct 'typelen' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
static const struct typelen {
                    ^
/datasets/git/date.c:1159:21: note: use "__attribute__((aligned(16)))" to align struct 'typelen' to 16 bytes
/datasets/git/date.c:1171:20: warning: function 'approxidate_alpha' has cognitive complexity of 28 (threshold 25) [readability-function-cognitive-complexity]
static const char *approxidate_alpha(const char *date, struct tm *tm, struct tm *now, int *num, int *touched)
                   ^
/datasets/git/date.c:1178:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (isalpha(*++end))
        ^
/datasets/git/date.c:1181:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < 12; i++) {
        ^
/datasets/git/date.c:1183:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (match >= 3) {
                ^
/datasets/git/date.c:1190:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (s = special; s->name; s++) {
        ^
/datasets/git/date.c:1192:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (match_string(date, s->name) == len) {
                ^
/datasets/git/date.c:1199:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!*num) {
        ^
/datasets/git/date.c:1200:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 1; i < 11; i++) {
                ^
/datasets/git/date.c:1202:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (match_string(date, number_name[i]) == len) {
                        ^
/datasets/git/date.c:1208:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (match_string(date, "last") == 4) {
                ^
/datasets/git/date.c:1216:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (tl->type) {
        ^
/datasets/git/date.c:1218:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (match_string(date, tl->type) >= len-1) {
                ^
/datasets/git/date.c:1227:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < 7; i++) {
        ^
/datasets/git/date.c:1229:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (match >= 3) {
                ^
/datasets/git/date.c:1234:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (diff <= 0)
                        ^
/datasets/git/date.c:1244:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (match_string(date, "months") >= 5) {
        ^
/datasets/git/date.c:1249:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (n < 0) {
                ^
/datasets/git/date.c:1258:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (match_string(date, "years") >= 4) {
        ^
/datasets/git/date.c:1171:67: warning: parameter name 'tm' is too short, expected at least 3 characters [readability-identifier-length]
static const char *approxidate_alpha(const char *date, struct tm *tm, struct tm *now, int *num, int *touched)
                                                                  ^
/datasets/git/date.c:1171:87: warning: 2 adjacent parameters of 'approxidate_alpha' of similar type ('int *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static const char *approxidate_alpha(const char *date, struct tm *tm, struct tm *now, int *num, int *touched)
                                                                                      ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/date.c:1171:92: note: the first parameter in the range is 'num'
static const char *approxidate_alpha(const char *date, struct tm *tm, struct tm *now, int *num, int *touched)
                                                                                           ^~~
/datasets/git/date.c:1171:102: note: the last parameter in the range is 'touched'
static const char *approxidate_alpha(const char *date, struct tm *tm, struct tm *now, int *num, int *touched)
                                                                                                     ^~~~~~~
/datasets/git/date.c:1173:24: warning: variable 'tl' is not initialized [cppcoreguidelines-init-variables]
        const struct typelen *tl;
                              ^
                                 = NULL
/datasets/git/date.c:1173:24: warning: variable name 'tl' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/date.c:1174:24: warning: variable 's' is not initialized [cppcoreguidelines-init-variables]
        const struct special *s;
                              ^
                                = NULL
/datasets/git/date.c:1174:24: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/date.c:1176:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/date.c:1176:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/date.c:1178:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (isalpha(*++end))
        ^
/datasets/git/date.c:1178:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'end' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (isalpha(*++end))
               ^
/datasets/git/./git-compat-util.h:1219:20: note: expanded from macro 'isalpha'
#define isalpha(x) sane_istest(x,GIT_ALPHA)
                   ^
/datasets/git/./git-compat-util.h:1215:29: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                            ^
/datasets/git/date.c:1178:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        while (isalpha(*++end))
               ^
/datasets/git/./git-compat-util.h:1219:20: note: expanded from macro 'isalpha'
#define isalpha(x) sane_istest(x,GIT_ALPHA)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/date.c:1178:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (isalpha(*++end))
                               ^
                                {
/datasets/git/date.c:1181:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < 12; i++) {
        ^
/datasets/git/date.c:1174:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        const struct special *s;
        ^
/datasets/git/date.c:1181:18: warning: 12 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        for (i = 0; i < 12; i++) {
                        ^
/datasets/git/date.c:1190:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (s = special; s->name; s++) {
        ^
/datasets/git/date.c:1173:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        const struct typelen *tl;
        ^
/datasets/git/date.c:1190:20: warning: backward branch (for loop) is ID-dependent due to variable reference to 's' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (s = special; s->name; s++) {
                          ^
/datasets/git/date.c:1191:13: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int len = strlen(s->name);
                          ^
/datasets/git/date.c:1200:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 1; i < 11; i++) {
                ^
/datasets/git/date.c:1200:19: warning: 11 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                for (i = 1; i < 11; i++) {
                                ^
/datasets/git/date.c:1201:14: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        int len = strlen(number_name[i]);
                                  ^
/datasets/git/date.c:1216:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (tl->type) {
        ^
/datasets/git/date.c:1216:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'tl' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (tl->type) {
               ^
/datasets/git/date.c:1217:13: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int len = strlen(tl->type);
                          ^
/datasets/git/date.c:1219:23: warning: performing an implicit widening conversion to type 'time_t' (aka 'long') of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                        update_tm(tm, now, tl->length * *num);
                                           ^
/datasets/git/date.c:1219:23: note: make conversion explicit to silence this warning
                        update_tm(tm, now, tl->length * *num);
                                           ^~~~~~~~~~~~~~~~~
                                           (time_t)(     )
/datasets/git/date.c:1219:23: note: perform multiplication in a wider type
                        update_tm(tm, now, tl->length * *num);
                                           ^~~~~~~~~~
                                           (time_t)
/datasets/git/date.c:1227:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < 7; i++) {
        ^
/datasets/git/date.c:1227:18: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        for (i = 0; i < 7; i++) {
                        ^
/datasets/git/date.c:1230:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        int diff, n = *num -1;
                        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/date.c:1230:8: warning: variable 'diff' is not initialized [cppcoreguidelines-init-variables]
                        int diff, n = *num -1;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/date.c:1230:14: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
                        int diff, n = *num -1;
                                  ^
/datasets/git/date.c:1234:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (diff <= 0)
                                      ^
                                       {
/datasets/git/date.c:1236:12: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        diff += 7*n;
                                ^
/datasets/git/date.c:1238:23: warning: performing an implicit widening conversion to type 'time_t' (aka 'long') of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                        update_tm(tm, now, diff * 24 * 60 * 60);
                                           ^
/datasets/git/date.c:1238:23: note: make conversion explicit to silence this warning
                        update_tm(tm, now, diff * 24 * 60 * 60);
                                           ^~~~~~~~~~~~~~~~~~~
                                           (time_t)(        )
/datasets/git/date.c:1238:23: note: perform multiplication in a wider type
                        update_tm(tm, now, diff * 24 * 60 * 60);
                                           ^~~~~~~~~~~~~~
                                           (time_t)
/datasets/git/date.c:1238:30: warning: 24 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        update_tm(tm, now, diff * 24 * 60 * 60);
                                                  ^
/datasets/git/date.c:1238:35: warning: 60 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        update_tm(tm, now, diff * 24 * 60 * 60);
                                                       ^
/datasets/git/date.c:1238:40: warning: 60 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        update_tm(tm, now, diff * 24 * 60 * 60);
                                                            ^
/datasets/git/date.c:1244:38: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (match_string(date, "months") >= 5) {
                                            ^
/datasets/git/date.c:1245:7: warning: variable 'n' is not initialized [cppcoreguidelines-init-variables]
                int n;
                    ^
                      = 0
/datasets/git/date.c:1245:7: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/date.c:1249:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (n < 0) {
                ^
/datasets/git/date.c:1249:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'n' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (n < 0) {
                       ^
/datasets/git/date.c:1250:9: warning: 12 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        n += 12;
                             ^
/datasets/git/date.c:1269:67: warning: parameter name 'tm' is too short, expected at least 3 characters [readability-identifier-length]
static const char *approxidate_digit(const char *date, struct tm *tm, int *num,
                                                                  ^
/datasets/git/date.c:1272:8: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
        char *end;
              ^
                  = NULL
/datasets/git/date.c:1273:51: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        timestamp_t number = parse_timestamp(date, &end, 10);
                                                         ^
/datasets/git/date.c:1280:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (isdigit(end[1])) {
                    ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/date.c:1283:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (match)
                                  ^
                                   {
/datasets/git/date.c:1289:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (date[0] != '0' || end - date <= 2)
                                              ^
                                               {
/datasets/git/date.c:1290:10: warning: narrowing conversion from 'timestamp_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                *num = number;
                       ^
/datasets/git/date.c:1295:30: warning: parameter name 'tv' is too short, expected at least 3 characters [readability-identifier-length]
                                   const struct timeval *tv,
                                                         ^
/datasets/git/date.c:1300:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct tm tm, now;
        ^~~~~~~~~~~~~~~~~~
/datasets/git/date.c:1300:12: warning: variable name 'tm' is too short, expected at least 3 characters [readability-identifier-length]
        struct tm tm, now;
                  ^
/datasets/git/date.c:1301:9: warning: variable 'time_sec' is not initialized [cppcoreguidelines-init-variables]
        time_t time_sec;
               ^
                        = 0
/datasets/git/date.c:1311:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/date.c:1312:17: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                unsigned char c = *date;
                              ^
/datasets/git/date.c:1313:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!c)
                       ^
                        {
/datasets/git/date.c:1316:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (isdigit(c)) {
                    ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/date.c:1322:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (isalpha(c))
                    ^
/datasets/git/./git-compat-util.h:1219:20: note: expanded from macro 'isalpha'
#define isalpha(x) sane_istest(x,GIT_ALPHA)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/date.c:1322:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (isalpha(c))
                               ^
                                {
/datasets/git/date.c:1326:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!touched)
                     ^
                      {
/datasets/git/date.c:1333:17: warning: variable name 'tv' is too short, expected at least 3 characters [readability-identifier-length]
        struct timeval tv;
                       ^
/datasets/git/date.c:1334:14: warning: variable 'timestamp' is not initialized [cppcoreguidelines-init-variables]
        timestamp_t timestamp;
                    ^
                              = 0
/datasets/git/date.c:1335:6: warning: variable 'offset' is not initialized [cppcoreguidelines-init-variables]
        int offset;
            ^
                   = 0
/datasets/git/date.c:1338:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!parse_date_basic(date, &timestamp, &offset))
                                                         ^
                                                          {
/datasets/git/date.c:1347:17: warning: variable name 'tv' is too short, expected at least 3 characters [readability-identifier-length]
        struct timeval tv;
                       ^
/datasets/git/date.c:1348:14: warning: variable 'timestamp' is not initialized [cppcoreguidelines-init-variables]
        timestamp_t timestamp;
                    ^
                              = 0
/datasets/git/date.c:1349:6: warning: variable 'offset' is not initialized [cppcoreguidelines-init-variables]
        int offset;
            ^
                   = 0
/datasets/git/date.c:1351:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!error_ret)
                       ^
                        {
/datasets/git/date.c:1363:32: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
int date_overflows(timestamp_t t)
                               ^
/datasets/git/date.c:1365:9: warning: variable 'sys' is not initialized [cppcoreguidelines-init-variables]
        time_t sys;
               ^
                   = 0
/datasets/git/date.c:1368:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((uintmax_t)t >= TIME_MAX)
                                     ^
                                      {
/datasets/git/date.c:1376:8: warning: narrowing conversion from 'timestamp_t' (aka 'unsigned long') to signed type 'time_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        sys = t;
              ^
/datasets/git/decorate.c:6:1: warning: #includes are not sorted properly [llvm-include-order]
#include "object.h"
^        ~~~~~~~~~~
         "decorate.h"
/datasets/git/decorate.c:16:13: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int size = n->size;
                   ^
/datasets/git/decorate.c:18:15: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned int j = hash_obj(base, size);
                     ^
/datasets/git/decorate.c:20:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (entries[j].base) {
        ^
/datasets/git/decorate.c:20:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'entries' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (entries[j].base) {
               ^
/datasets/git/decorate.c:26:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (++j >= size)
                                ^
                                 {
/datasets/git/decorate.c:37:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/decorate.c:37:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/decorate.c:38:17: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int old_size = n->size;
                       ^
/datasets/git/decorate.c:41:24: warning: 1000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        n->size = (old_size + 1000) * 3 / 2;
                              ^
/datasets/git/decorate.c:45:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < old_size; i++) {
        ^
/datasets/git/decorate.c:45:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'old_size' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < old_size; i++) {
                    ^
/datasets/git/decorate.c:49:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!decoration)
                                ^
                                 {
/datasets/git/decorate.c:59:6: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
        int nr = n->nr + 1;
            ^
/datasets/git/decorate.c:59:11: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int nr = n->nr + 1;
                 ^
/datasets/git/decorate.c:61:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (nr > n->size * 2 / 3)
                                 ^
                                  {
/datasets/git/decorate.c:68:15: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        unsigned int j;
                     ^
                       = 0
/datasets/git/decorate.c:68:15: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/decorate.c:71:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!n->size)
                     ^
                      {
/datasets/git/decorate.c:74:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/decorate.c:76:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ref->base == obj)
                                     ^
                                      {
/datasets/git/decorate.c:78:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ref->base)
                               ^
                                {
/datasets/git/decorate.c:80:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (++j == n->size)
                                   ^
                                    {
/datasets/git/delta-islands.c:3:1: warning: #includes are not sorted properly [llvm-include-order]
#include "object.h"
^        ~~~~~~~~~~
         "blob.h"
/datasets/git/delta-islands.c:23:1: warning: backward branch (for loop) is ID-dependent due to member reference to 'n_buckets' and may cause performance degradation [altera-id-dependent-backward-branch]
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
./khash.h:139:16: note: expanded from macro '__KHASH_IMPL'
                        for (j = 0; j != h->n_buckets; ++j) {                                           \
                                    ^
/datasets/git/delta-islands.c:23:1: warning: backward branch (while loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
./khash.h:112:11: note: expanded from macro '__KHASH_IMPL'
                        while (!__ac_isempty(h->flags, i) && (__ac_isdel(h->flags, i) || !__hash_equal(h->keys[i], key))) { \
                               ^
/datasets/git/delta-islands.c:23:1: warning: accessing fields in struct '' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
./khash.h:229:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_TYPE(name, khkey_t, khval_t)                                                            \
        ^
./khash.h:65:10: note: expanded from macro '__KHASH_TYPE'
        typedef struct { \
                ^
/datasets/git/delta-islands.c:23:1: note: use "__attribute__((aligned(64)))" to align struct '' to 64 bytes
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
./khash.h:229:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_TYPE(name, khkey_t, khval_t)                                                            \
        ^
./khash.h:65:10: note: expanded from macro '__KHASH_TYPE'
        typedef struct { \
                ^
/datasets/git/delta-islands.c:23:1: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
./khash.h:112:4: note: expanded from macro '__KHASH_IMPL'
                        while (!__ac_isempty(h->flags, i) && (__ac_isdel(h->flags, i) || !__hash_equal(h->keys[i], key))) { \
                        ^
/datasets/git/delta-islands.c:23:1: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./khash.h:101:4: note: expanded from macro '__KHASH_IMPL'
                        memset(h->flags, 0xaa, __ac_fsize(h->n_buckets) * sizeof(khint32_t)); \
                        ^~~~~~
/datasets/git/delta-islands.c:23:1: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./khash.h:101:4: note: expanded from macro '__KHASH_IMPL'
                        memset(h->flags, 0xaa, __ac_fsize(h->n_buckets) * sizeof(khint32_t)); \
                        ^~~~~~
/datasets/git/delta-islands.c:23:1: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./khash.h:101:27: note: expanded from macro '__KHASH_IMPL'
                        memset(h->flags, 0xaa, __ac_fsize(h->n_buckets) * sizeof(khint32_t)); \
                                               ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./khash.h:48:38: note: expanded from macro '__ac_fsize'
#define __ac_fsize(m) ((m) < 16? 1 : (m)>>4)
                                     ^    ~
/datasets/git/delta-islands.c:23:1: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^~~~~~~~~~
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./khash.h:117:5: note: expanded from macro '__KHASH_IMPL'
                } else return 0;                                                                                                \
                  ^~~~
/datasets/git/delta-islands.c:23:1: warning: function 'kh_put_str' has cognitive complexity of 26 (threshold 25) [readability-function-cognitive-complexity]
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:176:16: note: expanded from macro '__KHASH_IMPL'
        SCOPE khint_t kh_put_##name(kh_##name##_t *h, khkey_t key, int *ret) \
                      ^
note: expanded from here
/datasets/git/delta-islands.c:23:1: note: +1, including nesting penalty of 0, nesting level increased to 1
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:179:3: note: expanded from macro '__KHASH_IMPL'
                if (h->n_occupied >= h->upper_bound) { /* update the hash table */ \
                ^
/datasets/git/delta-islands.c:23:1: note: +2, including nesting penalty of 1, nesting level increased to 2
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:180:4: note: expanded from macro '__KHASH_IMPL'
                        if (h->n_buckets > (h->size<<1)) {                                                      \
                        ^
/datasets/git/delta-islands.c:23:1: note: +1, nesting level increased to 2
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:182:6: note: expanded from macro '__KHASH_IMPL'
                        } else { \
                          ^
/datasets/git/delta-islands.c:23:1: note: +1, including nesting penalty of 0, nesting level increased to 1
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:189:4: note: expanded from macro '__KHASH_IMPL'
                        if (__ac_isempty(h->flags, i)) x = i; /* for speed up */        \
                        ^
/datasets/git/delta-islands.c:23:1: note: +1, nesting level increased to 1
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:190:4: note: expanded from macro '__KHASH_IMPL'
                        else {                                                                                                          \
                        ^
/datasets/git/delta-islands.c:23:1: note: +2, including nesting penalty of 1, nesting level increased to 2
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:192:5: note: expanded from macro '__KHASH_IMPL'
                                while (!__ac_isempty(h->flags, i) && (__ac_isdel(h->flags, i) || !__hash_equal(h->keys[i], key))) { \
                                ^
/datasets/git/delta-islands.c:23:1: note: +1
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:192:39: note: expanded from macro '__KHASH_IMPL'
                                while (!__ac_isempty(h->flags, i) && (__ac_isdel(h->flags, i) || !__hash_equal(h->keys[i], key))) { \
                                                                  ^
/datasets/git/delta-islands.c:23:1: note: +1
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:192:67: note: expanded from macro '__KHASH_IMPL'
                                while (!__ac_isempty(h->flags, i) && (__ac_isdel(h->flags, i) || !__hash_equal(h->keys[i], key))) { \
                                                                                              ^
/datasets/git/delta-islands.c:23:1: note: +3, including nesting penalty of 2, nesting level increased to 3
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:193:6: note: expanded from macro '__KHASH_IMPL'
                                        if (__ac_isdel(h->flags, i)) site = i;                          \
                                        ^
/datasets/git/delta-islands.c:23:1: note: +3, including nesting penalty of 2, nesting level increased to 3
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:195:6: note: expanded from macro '__KHASH_IMPL'
                                        if (i == last) { x = site; break; }                                     \
                                        ^
/datasets/git/delta-islands.c:23:1: note: +2, including nesting penalty of 1, nesting level increased to 2
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:197:5: note: expanded from macro '__KHASH_IMPL'
                                if (x == h->n_buckets) {                                                                \
                                ^
/datasets/git/delta-islands.c:23:1: note: +3, including nesting penalty of 2, nesting level increased to 3
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:198:6: note: expanded from macro '__KHASH_IMPL'
                                        if (__ac_isempty(h->flags, i) && site != h->n_buckets) x = site; \
                                        ^
/datasets/git/delta-islands.c:23:1: note: +1
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:198:36: note: expanded from macro '__KHASH_IMPL'
                                        if (__ac_isempty(h->flags, i) && site != h->n_buckets) x = site; \
                                                                      ^
/datasets/git/delta-islands.c:23:1: note: +1, nesting level increased to 3
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:199:6: note: expanded from macro '__KHASH_IMPL'
                                        else x = i;                                                                                     \
                                        ^
/datasets/git/delta-islands.c:23:1: note: +1, including nesting penalty of 0, nesting level increased to 1
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:203:3: note: expanded from macro '__KHASH_IMPL'
                if (__ac_isempty(h->flags, x)) { /* not present at all */               \
                ^
/datasets/git/delta-islands.c:23:1: note: +1, nesting level increased to 1
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:208:10: note: expanded from macro '__KHASH_IMPL'
                } else if (__ac_isdel(h->flags, x)) { /* deleted */                             \
                       ^
/datasets/git/delta-islands.c:23:1: note: +1, nesting level increased to 1
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:213:5: note: expanded from macro '__KHASH_IMPL'
                } else *ret = 0; /* Don't touch h->keys[x] if present and not deleted */ \
                  ^
/datasets/git/delta-islands.c:23:1: warning: function 'kh_resize_str' has cognitive complexity of 55 (threshold 25) [readability-function-cognitive-complexity]
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:119:13: note: expanded from macro '__KHASH_IMPL'
        SCOPE void kh_resize_##name(kh_##name##_t *h, khint_t new_n_buckets) \
                   ^
note: expanded from here
/datasets/git/delta-islands.c:23:1: note: +1, including nesting penalty of 0, nesting level increased to 1
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:125:4: note: expanded from macro '__KHASH_IMPL'
                        if (new_n_buckets < 4) new_n_buckets = 4;                                       \
                        ^
/datasets/git/delta-islands.c:23:1: note: +1, including nesting penalty of 0, nesting level increased to 1
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:126:4: note: expanded from macro '__KHASH_IMPL'
                        if (h->size >= (khint_t)(new_n_buckets * __ac_HASH_UPPER + 0.5)) j = 0; /* requested size is too small */ \
                        ^
/datasets/git/delta-islands.c:23:1: note: +1, nesting level increased to 1
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:127:4: note: expanded from macro '__KHASH_IMPL'
                        else { /* hash table size to be changed (shrink or expand); rehash */ \
                        ^
/datasets/git/delta-islands.c:23:1: note: +2, including nesting penalty of 1, nesting level increased to 2
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:128:28: note: expanded from macro '__KHASH_IMPL'
                                ALLOC_ARRAY(new_flags, __ac_fsize(new_n_buckets)); \
                                                       ^
/datasets/git/./khash.h:48:32: note: expanded from macro '__ac_fsize'
#define __ac_fsize(m) ((m) < 16? 1 : (m)>>4)
                               ^
/datasets/git/delta-islands.c:23:1: note: +2, including nesting penalty of 1, nesting level increased to 2
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:129:29: note: expanded from macro '__KHASH_IMPL'
                                memset(new_flags, 0xaa, __ac_fsize(new_n_buckets) * sizeof(khint32_t)); \
                                                        ^
/datasets/git/./khash.h:48:32: note: expanded from macro '__ac_fsize'
#define __ac_fsize(m) ((m) < 16? 1 : (m)>>4)
                               ^
/datasets/git/delta-islands.c:23:1: note: +2, including nesting penalty of 1, nesting level increased to 2
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:130:5: note: expanded from macro '__KHASH_IMPL'
                                if (h->n_buckets < new_n_buckets) {     /* expand */            \
                                ^
/datasets/git/delta-islands.c:23:1: note: +3, including nesting penalty of 2, nesting level increased to 3
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:132:6: note: expanded from macro '__KHASH_IMPL'
                                        if (kh_is_map) {                                                                        \
                                        ^
/datasets/git/delta-islands.c:23:1: note: +1, including nesting penalty of 0, nesting level increased to 1
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:138:3: note: expanded from macro '__KHASH_IMPL'
                if (j) { /* rehashing is needed */                                                              \
                ^
/datasets/git/delta-islands.c:23:1: note: +2, including nesting penalty of 1, nesting level increased to 2
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:139:4: note: expanded from macro '__KHASH_IMPL'
                        for (j = 0; j != h->n_buckets; ++j) {                                           \
                        ^
/datasets/git/delta-islands.c:23:1: note: +3, including nesting penalty of 2, nesting level increased to 3
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:140:5: note: expanded from macro '__KHASH_IMPL'
                                if (__ac_iseither(h->flags, j) == 0) {                                  \
                                ^
/datasets/git/delta-islands.c:23:1: note: +4, including nesting penalty of 3, nesting level increased to 4
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:145:6: note: expanded from macro '__KHASH_IMPL'
                                        if (kh_is_map) val = h->vals[j];                                        \
                                        ^
/datasets/git/delta-islands.c:23:1: note: +4, including nesting penalty of 3, nesting level increased to 4
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:147:6: note: expanded from macro '__KHASH_IMPL'
                                        while (1) { /* kick-out process; sort of like in Cuckoo hashing */ \
                                        ^
/datasets/git/delta-islands.c:23:1: note: +5, including nesting penalty of 4, nesting level increased to 5
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:151:7: note: expanded from macro '__KHASH_IMPL'
                                                while (!__ac_isempty(new_flags, i)) i = (i + (++step)) & new_mask; \
                                                ^
/datasets/git/delta-islands.c:23:1: note: +5, including nesting penalty of 4, nesting level increased to 5
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:153:7: note: expanded from macro '__KHASH_IMPL'
                                                if (i < h->n_buckets && __ac_iseither(h->flags, i) == 0) { /* kick out the existing element */ \
                                                ^
/datasets/git/delta-islands.c:23:1: note: +1
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:153:28: note: expanded from macro '__KHASH_IMPL'
                                                if (i < h->n_buckets && __ac_iseither(h->flags, i) == 0) { /* kick out the existing element */ \
                                                                     ^
/datasets/git/delta-islands.c:23:1: note: +6, including nesting penalty of 5, nesting level increased to 6
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:155:8: note: expanded from macro '__KHASH_IMPL'
                                                        if (kh_is_map) { khval_t tmp = h->vals[i]; h->vals[i] = val; val = tmp; } \
                                                        ^
/datasets/git/delta-islands.c:23:1: note: +1, nesting level increased to 5
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:157:9: note: expanded from macro '__KHASH_IMPL'
                                                } else { /* write the element and jump out of the loop */ \
                                                  ^
/datasets/git/delta-islands.c:23:1: note: +6, including nesting penalty of 5, nesting level increased to 6
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:159:8: note: expanded from macro '__KHASH_IMPL'
                                                        if (kh_is_map) h->vals[i] = val;                        \
                                                        ^
/datasets/git/delta-islands.c:23:1: note: +2, including nesting penalty of 1, nesting level increased to 2
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:165:4: note: expanded from macro '__KHASH_IMPL'
                        if (h->n_buckets > new_n_buckets) { /* shrink the hash table */ \
                        ^
/datasets/git/delta-islands.c:23:1: note: +3, including nesting penalty of 2, nesting level increased to 3
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:167:5: note: expanded from macro '__KHASH_IMPL'
                                if (kh_is_map) REALLOC_ARRAY(h->vals, new_n_buckets); \
                                ^
/datasets/git/delta-islands.c:23:1: warning: parameter name 'h' is too short, expected at least 3 characters [readability-identifier-length]
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:85:46: note: expanded from macro '__KHASH_IMPL'
        SCOPE void kh_release_##name(kh_##name##_t *h)                                          \
                                                    ^
/datasets/git/delta-islands.c:23:1: warning: parameter name 'x' is too short, expected at least 3 characters [readability-identifier-length]
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:216:53: note: expanded from macro '__KHASH_IMPL'
        SCOPE void kh_del_##name(kh_##name##_t *h, khint_t x)                           \
                                                           ^
/datasets/git/delta-islands.c:23:1: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:108:15: note: expanded from macro '__KHASH_IMPL'
                        khint_t k, i, last, mask, step = 0; \
                                   ^
/datasets/git/delta-islands.c:23:1: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:122:11: note: expanded from macro '__KHASH_IMPL'
                khint_t j = 1;                                                                                                  \
                        ^
/datasets/git/delta-islands.c:23:1: warning: variable name 'k' is too short, expected at least 3 characters [readability-identifier-length]
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:108:12: note: expanded from macro '__KHASH_IMPL'
                        khint_t k, i, last, mask, step = 0; \
                                ^
/datasets/git/delta-islands.c:23:1: warning: variable name 'x' is too short, expected at least 3 characters [readability-identifier-length]
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:178:11: note: expanded from macro '__KHASH_IMPL'
                khint_t x;                                                                                                              \
                        ^
/datasets/git/delta-islands.c:23:1: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:108:4: note: expanded from macro '__KHASH_IMPL'
                        khint_t k, i, last, mask, step = 0; \
                        ^
/datasets/git/delta-islands.c:23:1: note: inferred assignment of ID-dependent value from ID-dependent variable k [altera-id-dependent-backward-branch]
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:230:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:108:4: note: expanded from macro '__KHASH_IMPL'
                        khint_t k, i, last, mask, step = 0; \
                        ^
/datasets/git/delta-islands.c:25:22: warning: variable 'island_marks' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static kh_oid_map_t *island_marks;
                     ^
/datasets/git/delta-islands.c:25:22: warning: variable 'island_marks' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/delta-islands.c:26:17: warning: variable 'island_counter' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned island_counter;
                ^
/datasets/git/delta-islands.c:27:17: warning: variable 'island_counter_core' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned island_counter_core;
                ^
/datasets/git/delta-islands.c:29:8: warning: accessing fields in struct 'remote_island' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct remote_island {
       ^
/datasets/git/delta-islands.c:29:8: note: use "__attribute__((aligned(64)))" to align struct 'remote_island' to 64 bytes
/datasets/git/delta-islands.c:39:17: warning: variable 'island_bitmap_size' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static uint32_t island_bitmap_size;
                ^
/datasets/git/delta-islands.c:47:48: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'unsigned int' [bugprone-implicit-widening-of-multiplication-result]
        size_t size = sizeof(struct island_bitmap) + (island_bitmap_size * 4);
                                                      ^
/datasets/git/delta-islands.c:47:48: note: make conversion explicit to silence this warning
        size_t size = sizeof(struct island_bitmap) + (island_bitmap_size * 4);
                                                      ^~~~~~~~~~~~~~~~~~~~~~
                                                      (unsigned long)(     )
/datasets/git/delta-islands.c:47:48: note: perform multiplication in a wider type
        size_t size = sizeof(struct island_bitmap) + (island_bitmap_size * 4);
                                                      ^~~~~~~~~~~~~~~~~~
                                                      (unsigned long)
/datasets/git/delta-islands.c:48:24: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        struct island_bitmap *b = xcalloc(1, size);
                              ^
/datasets/git/delta-islands.c:50:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (old)
                ^
                 {
/datasets/git/delta-islands.c:51:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(b, old, size);
                ^~~~~~
/datasets/git/delta-islands.c:51:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(b, old, size);
                ^~~~~~
/datasets/git/delta-islands.c:57:52: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static void island_bitmap_or(struct island_bitmap *a, const struct island_bitmap *b)
                                                   ^
/datasets/git/delta-islands.c:57:83: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static void island_bitmap_or(struct island_bitmap *a, const struct island_bitmap *b)
                                                                                  ^
/datasets/git/delta-islands.c:59:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i;
                 ^
                   = 0
/datasets/git/delta-islands.c:59:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/delta-islands.c:61:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < island_bitmap_size; ++i)
        ^
/datasets/git/delta-islands.c:61:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < island_bitmap_size; ++i)
                                                ^
                                                 {
/datasets/git/delta-islands.c:68:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i;
                 ^
                   = 0
/datasets/git/delta-islands.c:68:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/delta-islands.c:70:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (self == super)
                          ^
                           {
/datasets/git/delta-islands.c:73:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < island_bitmap_size; ++i) {
        ^
/datasets/git/delta-islands.c:74:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((self->bits[i] & super->bits[i]) != self->bits[i])
                                                                      ^
                                                                       {
/datasets/git/delta-islands.c:81:33: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
#define ISLAND_BITMAP_BLOCK(x) (x / 32)
                                ^
                                ()
/datasets/git/delta-islands.c:82:38: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
#define ISLAND_BITMAP_MASK(x) (1 << (x % 32))
                                     ^
                                     ()
/datasets/git/delta-islands.c:84:68: warning: parameter name 'i' is too short, expected at least 3 characters [readability-identifier-length]
static void island_bitmap_set(struct island_bitmap *self, uint32_t i)
                                                                   ^
/datasets/git/delta-islands.c:86:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        self->bits[ISLAND_BITMAP_BLOCK(i)] |= ISLAND_BITMAP_MASK(i);
        ^
/datasets/git/delta-islands.c:86:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        self->bits[ISLAND_BITMAP_BLOCK(i)] |= ISLAND_BITMAP_MASK(i);
                                              ^
/datasets/git/delta-islands.c:82:32: note: expanded from macro 'ISLAND_BITMAP_MASK'
#define ISLAND_BITMAP_MASK(x) (1 << (x % 32))
                               ^
/datasets/git/delta-islands.c:89:67: warning: parameter name 'i' is too short, expected at least 3 characters [readability-identifier-length]
static int island_bitmap_get(struct island_bitmap *self, uint32_t i)
                                                                  ^
/datasets/git/delta-islands.c:91:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return (self->bits[ISLAND_BITMAP_BLOCK(i)] & ISLAND_BITMAP_MASK(i)) != 0;
                ^
/datasets/git/delta-islands.c:91:47: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return (self->bits[ISLAND_BITMAP_BLOCK(i)] & ISLAND_BITMAP_MASK(i)) != 0;
                                                     ^
/datasets/git/delta-islands.c:82:32: note: expanded from macro 'ISLAND_BITMAP_MASK'
#define ISLAND_BITMAP_MASK(x) (1 << (x % 32))
                               ^
/datasets/git/delta-islands.c:94:20: warning: 2 adjacent parameters of 'in_same_island' of similar type ('const struct object_id *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
int in_same_island(const struct object_id *trg_oid, const struct object_id *src_oid)
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/delta-islands.c:94:44: note: the first parameter in the range is 'trg_oid'
int in_same_island(const struct object_id *trg_oid, const struct object_id *src_oid)
                                           ^~~~~~~
/datasets/git/delta-islands.c:94:77: note: the last parameter in the range is 'src_oid'
int in_same_island(const struct object_id *trg_oid, const struct object_id *src_oid)
                                                                            ^~~~~~~
/datasets/git/delta-islands.c:96:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        khiter_t trg_pos, src_pos;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/delta-islands.c:96:11: warning: variable 'trg_pos' is not initialized [cppcoreguidelines-init-variables]
        khiter_t trg_pos, src_pos;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/delta-islands.c:96:20: warning: variable 'src_pos' is not initialized [cppcoreguidelines-init-variables]
        khiter_t trg_pos, src_pos;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/delta-islands.c:99:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!island_marks)
                          ^
                           {
/datasets/git/delta-islands.c:107:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (trg_pos >= kh_end(island_marks))
                                            ^
                                             {
/datasets/git/delta-islands.c:115:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (src_pos >= kh_end(island_marks))
                                            ^
                                             {
/datasets/git/delta-islands.c:122:22: warning: 2 adjacent parameters of 'island_delta_cmp' of similar type ('const struct object_id *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
int island_delta_cmp(const struct object_id *a, const struct object_id *b)
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/delta-islands.c:122:46: note: the first parameter in the range is 'a'
int island_delta_cmp(const struct object_id *a, const struct object_id *b)
                                             ^
/datasets/git/delta-islands.c:122:73: note: the last parameter in the range is 'b'
int island_delta_cmp(const struct object_id *a, const struct object_id *b)
                                                                        ^
/datasets/git/delta-islands.c:122:46: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
int island_delta_cmp(const struct object_id *a, const struct object_id *b)
                                             ^
/datasets/git/delta-islands.c:122:73: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
int island_delta_cmp(const struct object_id *a, const struct object_id *b)
                                                                        ^
/datasets/git/delta-islands.c:124:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        khiter_t a_pos, b_pos;
        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/delta-islands.c:124:11: warning: variable 'a_pos' is not initialized [cppcoreguidelines-init-variables]
        khiter_t a_pos, b_pos;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/delta-islands.c:124:18: warning: variable 'b_pos' is not initialized [cppcoreguidelines-init-variables]
        khiter_t a_pos, b_pos;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/delta-islands.c:125:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct island_bitmap *a_bitmap = NULL, *b_bitmap = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/delta-islands.c:127:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!island_marks)
                          ^
                           {
/datasets/git/delta-islands.c:131:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (a_pos < kh_end(island_marks))
                                         ^
                                          {
/datasets/git/delta-islands.c:135:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (b_pos < kh_end(island_marks))
                                         ^
                                          {
/datasets/git/delta-islands.c:139:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!b_bitmap || !island_bitmap_is_subset(a_bitmap, b_bitmap))
                                                                              ^
                                                                               {
/datasets/git/delta-islands.c:143:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!a_bitmap || !island_bitmap_is_subset(b_bitmap, a_bitmap))
                                                                              ^
                                                                               {
/datasets/git/delta-islands.c:152:11: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        khiter_t pos;
                 ^
                     = 0
/datasets/git/delta-islands.c:153:6: warning: variable 'hash_ret' is not initialized [cppcoreguidelines-init-variables]
        int hash_ret;
            ^
                     = 0
/datasets/git/delta-islands.c:156:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (hash_ret)
                     ^
                      {
/datasets/git/delta-islands.c:164:24: warning: variable 'b' is not initialized [cppcoreguidelines-init-variables]
        struct island_bitmap *b;
                              ^
                                = NULL
/datasets/git/delta-islands.c:164:24: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/delta-islands.c:165:11: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        khiter_t pos;
                 ^
                     = 0
/datasets/git/delta-islands.c:166:6: warning: variable 'hash_ret' is not initialized [cppcoreguidelines-init-variables]
        int hash_ret;
            ^
                     = 0
/datasets/git/delta-islands.c:191:53: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void mark_remote_island_1(struct repository *r,
                                                    ^
/datasets/git/delta-islands.c:192:28: warning: parameter name 'rl' is too short, expected at least 3 characters [readability-identifier-length]
                                 struct remote_island *rl,
                                                       ^
/datasets/git/delta-islands.c:195:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i;
                 ^
                   = 0
/datasets/git/delta-islands.c:195:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/delta-islands.c:198:25: warning: variable 'marks' is not initialized [cppcoreguidelines-init-variables]
                struct island_bitmap *marks;
                                      ^
                                            = NULL
/datasets/git/delta-islands.c:201:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!obj)
                         ^
                          {
/datasets/git/delta-islands.c:207:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_core_island && obj->type == OBJ_COMMIT)
                                                              ^
                                                               {
/datasets/git/delta-islands.c:208:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        obj->flags |= NEEDS_BITMAP;
                                      ^
/datasets/git/./pack-bitmap.h:24:23: note: expanded from macro 'NEEDS_BITMAP'
#define NEEDS_BITMAP (1u<<22)
                      ^   ~~
/datasets/git/delta-islands.c:211:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (obj && obj->type == OBJ_TAG) {
                ^
/datasets/git/delta-islands.c:211:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'obj' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (obj && obj->type == OBJ_TAG) {
                       ^
/datasets/git/delta-islands.c:221:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_core_island)
                           ^
                            {
/datasets/git/delta-islands.c:227:8: warning: accessing fields in struct 'tree_islands_todo' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct tree_islands_todo {
       ^
/datasets/git/delta-islands.c:227:8: note: use "__attribute__((aligned(16)))" to align struct 'tree_islands_todo' to 16 bytes
/datasets/git/delta-islands.c:232:31: warning: 2 adjacent parameters of 'tree_depth_compare' of similar type ('const void *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int tree_depth_compare(const void *a, const void *b)
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/delta-islands.c:232:43: note: the first parameter in the range is 'a'
static int tree_depth_compare(const void *a, const void *b)
                                          ^
/datasets/git/delta-islands.c:232:58: note: the last parameter in the range is 'b'
static int tree_depth_compare(const void *a, const void *b)
                                                         ^
/datasets/git/delta-islands.c:232:43: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static int tree_depth_compare(const void *a, const void *b)
                                          ^
/datasets/git/delta-islands.c:232:58: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static int tree_depth_compare(const void *a, const void *b)
                                                         ^
/datasets/git/delta-islands.c:237:9: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return todo_a->depth - todo_b->depth;
               ^
/datasets/git/delta-islands.c:240:46: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void resolve_tree_islands(struct repository *r,
                                             ^
/datasets/git/delta-islands.c:245:28: warning: variable 'todo' is not initialized [cppcoreguidelines-init-variables]
        struct tree_islands_todo *todo;
                                  ^
                                       = NULL
/datasets/git/delta-islands.c:246:6: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
        int nr = 0;
            ^
/datasets/git/delta-islands.c:247:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/delta-islands.c:247:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/delta-islands.c:249:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!island_marks)
                          ^
                           {
/datasets/git/delta-islands.c:260:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < to_pack->nr_objects; i++) {
        ^
/datasets/git/delta-islands.c:269:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (progress)
                     ^
                      {
/datasets/git/delta-islands.c:274:25: warning: variable 'root_marks' is not initialized [cppcoreguidelines-init-variables]
                struct island_bitmap *root_marks;
                                      ^
                                                 = NULL
/datasets/git/delta-islands.c:275:16: warning: variable 'tree' is not initialized [cppcoreguidelines-init-variables]
                struct tree *tree;
                             ^
                                  = NULL
/datasets/git/delta-islands.c:278:12: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
                khiter_t pos;
                         ^
                             = 0
/datasets/git/delta-islands.c:281:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pos >= kh_end(island_marks))
                                                ^
                                                 {
/datasets/git/delta-islands.c:287:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!tree || parse_tree(tree) < 0)
                                                  ^
                                                   {
/datasets/git/delta-islands.c:291:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (tree_entry(&desc, &entry)) {
                ^
/datasets/git/delta-islands.c:292:19: warning: variable 'obj' is not initialized [cppcoreguidelines-init-variables]
                        struct object *obj;
                                       ^
                                           = NULL
/datasets/git/delta-islands.c:294:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (S_ISGITLINK(entry.mode))
                            ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/delta-islands.c:294:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (S_ISGITLINK(entry.mode))
                                                    ^
                                                     {
/datasets/git/delta-islands.c:298:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!obj)
                                 ^
                                  {
/datasets/git/delta-islands.c:313:8: warning: accessing fields in struct 'island_load_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct island_load_data {
       ^
/datasets/git/delta-islands.c:313:8: note: use "__attribute__((aligned(32)))" to align struct 'island_load_data' to 32 bytes
/datasets/git/delta-islands.c:319:20: warning: variable 'core_island_name' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *core_island_name;
                   ^
/datasets/git/delta-islands.c:323:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (size_t i = 0; i < ild->nr; i++)
        ^
/datasets/git/delta-islands.c:323:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (size_t i = 0; i < ild->nr; i++)
                                            ^
                                             {
/datasets/git/delta-islands.c:330:14: warning: variable 'island_name' is not initialized [cppcoreguidelines-init-variables]
        const char *island_name;
                    ^
                                = NULL
/datasets/git/delta-islands.c:331:24: warning: variable 'rl' is not initialized [cppcoreguidelines-init-variables]
        struct remote_island *rl;
                              ^
                                 = NULL
/datasets/git/delta-islands.c:331:24: warning: variable name 'rl' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/delta-islands.c:23:1: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:229:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_TYPE(name, khkey_t, khval_t)                                                            \
        ^
/datasets/git/./khash.h:66:3: note: expanded from macro '__KHASH_TYPE'
                khint_t n_buckets, size, n_occupied, upper_bound; \
                ^
/datasets/git/delta-islands.c:333:2: warning: backward branch (for loop) is ID-dependent due to member reference to 'n_buckets' and may cause performance degradation [altera-id-dependent-backward-branch]
        kh_foreach(remote_islands, island_name, rl, {
        ^
/datasets/git/./khash.h:303:26: note: expanded from macro 'kh_foreach'
        for (__i = kh_begin(h); __i != kh_end(h); ++__i) {              \
                                ^
/datasets/git/delta-islands.c:333:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        kh_foreach(remote_islands, island_name, rl, {
        ^
/datasets/git/./khash.h:303:2: note: expanded from macro 'kh_foreach'
        for (__i = kh_begin(h); __i != kh_end(h); ++__i) {              \
        ^
/datasets/git/delta-islands.c:333:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        kh_foreach(remote_islands, island_name, rl, {
        ^
/datasets/git/./khash.h:304:8: note: expanded from macro 'kh_foreach'
                if (!kh_exist(h,__i)) continue;                                         \
                     ^~~~~~~~~~~~~~~
/datasets/git/./khash.h:243:26: note: expanded from macro 'kh_exist'
#define kh_exist(h, x) (!__ac_iseither((h)->flags, (x)))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./khash.h:42:33: note: expanded from macro '__ac_iseither'
#define __ac_iseither(flag, i) ((flag[i>>4]>>((i&0xfU)<<1))&3)
                                ^                           ~
/datasets/git/delta-islands.c:341:47: warning: parameter name 'k' is too short, expected at least 3 characters [readability-identifier-length]
static int island_config_callback(const char *k, const char *v, void *cb)
                                              ^
/datasets/git/delta-islands.c:341:62: warning: parameter name 'v' is too short, expected at least 3 characters [readability-identifier-length]
static int island_config_callback(const char *k, const char *v, void *cb)
                                                             ^
/datasets/git/delta-islands.c:341:71: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int island_config_callback(const char *k, const char *v, void *cb)
                                                                      ^
/datasets/git/delta-islands.c:346:17: warning: variable name 're' is too short, expected at least 3 characters [readability-identifier-length]
                struct strbuf re = STRBUF_INIT;
                              ^
/datasets/git/delta-islands.c:348:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!v)
                       ^
                        {
/datasets/git/delta-islands.c:351:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                ALLOC_GROW(ild->rx, ild->nr + 1, ild->alloc);
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/delta-islands.c:353:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*v != '^')
                              ^
                               {
/datasets/git/delta-islands.c:357:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (regcomp(&ild->rx[ild->nr], re.buf, REG_EXTENDED))
                                                                     ^
                                                                      {
/datasets/git/delta-islands.c:365:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(k, "pack.islandcore"))
                                          ^
                                           {
/datasets/git/delta-islands.c:374:11: warning: variable 'sha_core' is not initialized [cppcoreguidelines-init-variables]
        uint64_t sha_core;
                 ^
                          = 0
/datasets/git/delta-islands.c:375:24: warning: variable name 'rl' is too short, expected at least 3 characters [readability-identifier-length]
        struct remote_island *rl = NULL;
                              ^
/datasets/git/delta-islands.c:377:6: warning: variable 'hash_ret' is not initialized [cppcoreguidelines-init-variables]
        int hash_ret;
            ^
                     = 0
/datasets/git/delta-islands.c:388:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(&sha_core, oid->hash, sizeof(uint64_t));
        ^~~~~~
/datasets/git/delta-islands.c:388:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(&sha_core, oid->hash, sizeof(uint64_t));
        ^~~~~~
/datasets/git/delta-islands.c:393:35: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
                               int flags UNUSED, void *cb)
                                                       ^
/datasets/git/delta-islands.c:402:21: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        regmatch_t matches[16];
                           ^
/datasets/git/delta-islands.c:403:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, m;
        ^~~~~~~~~
/datasets/git/delta-islands.c:403:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/delta-islands.c:403:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, m;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/delta-islands.c:403:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/delta-islands.c:403:9: warning: variable 'm' is not initialized [cppcoreguidelines-init-variables]
        int i, m;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/delta-islands.c:403:9: warning: variable name 'm' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/delta-islands.c:407:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = ild->nr - 1; i >= 0; i--) {
        ^
/datasets/git/delta-islands.c:407:11: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        for (i = ild->nr - 1; i >= 0; i--) {
                 ^
/datasets/git/delta-islands.c:407:24: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = ild->nr - 1; i >= 0; i--) {
                              ^
/datasets/git/delta-islands.c:409:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                             ARRAY_SIZE(matches), matches, 0))
                                                              ^
                                                               {
/datasets/git/delta-islands.c:413:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (i < 0)
                  ^
                   {
/datasets/git/delta-islands.c:416:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (matches[ARRAY_SIZE(matches) - 1].rm_so != -1)
                                                         ^
                                                          {
/datasets/git/delta-islands.c:421:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (m = 1; m < ARRAY_SIZE(matches); m++) {
        ^
/datasets/git/delta-islands.c:424:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (match->rm_so == -1)
                                       ^
                                        {
/datasets/git/delta-islands.c:427:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (island_name.len)
                                    ^
                                     {
/datasets/git/delta-islands.c:442:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pos < kh_end(remote_islands))
                                                 ^
                                                  {
/datasets/git/delta-islands.c:449:78: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void deduplicate_islands(kh_str_t *remote_islands, struct repository *r)
                                                                             ^
/datasets/git/delta-islands.c:451:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct remote_island *island, *core = NULL, **list;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/delta-islands.c:451:24: warning: variable 'island' is not initialized [cppcoreguidelines-init-variables]
        struct remote_island *island, *core = NULL, **list;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/delta-islands.c:451:48: warning: variable 'list' is not initialized [cppcoreguidelines-init-variables]
        struct remote_island *island, *core = NULL, **list;
                                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/delta-islands.c:452:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned int island_count, dst, src, ref, i = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/delta-islands.c:452:2: note: inferred assignment of ID-dependent value from ID-dependent member size [altera-id-dependent-backward-branch]
/datasets/git/delta-islands.c:452:15: warning: variable 'island_count' is not initialized [cppcoreguidelines-init-variables]
        unsigned int island_count, dst, src, ref, i = 0;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/delta-islands.c:452:29: warning: variable 'dst' is not initialized [cppcoreguidelines-init-variables]
        unsigned int island_count, dst, src, ref, i = 0;
                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/delta-islands.c:452:34: warning: variable 'src' is not initialized [cppcoreguidelines-init-variables]
        unsigned int island_count, dst, src, ref, i = 0;
                                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/delta-islands.c:452:39: warning: variable 'ref' is not initialized [cppcoreguidelines-init-variables]
        unsigned int island_count, dst, src, ref, i = 0;
                                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/delta-islands.c:452:44: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned int island_count, dst, src, ref, i = 0;
                                                  ^
/datasets/git/delta-islands.c:455:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_ARRAY(list, island_count);
        ^
/datasets/git/./git-compat-util.h:1090:53: note: expanded from macro 'ALLOC_ARRAY'
#define ALLOC_ARRAY(x, alloc) (x) = xmalloc(st_mult(sizeof(*(x)), (alloc)))
                                                    ^
/datasets/git/delta-islands.c:23:1: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
KHASH_INIT(str, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
^
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:229:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_TYPE(name, khkey_t, khval_t)                                                            \
        ^
/datasets/git/./khash.h:66:3: note: expanded from macro '__KHASH_TYPE'
                khint_t n_buckets, size, n_occupied, upper_bound; \
                ^
/datasets/git/delta-islands.c:457:2: warning: backward branch (for loop) is ID-dependent due to member reference to 'n_buckets' and may cause performance degradation [altera-id-dependent-backward-branch]
        kh_foreach_value(remote_islands, island, {
        ^
/datasets/git/./khash.h:317:26: note: expanded from macro 'kh_foreach_value'
        for (__i = kh_begin(h); __i != kh_end(h); ++__i) {              \
                                ^
/datasets/git/delta-islands.c:457:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        kh_foreach_value(remote_islands, island, {
        ^
/datasets/git/./khash.h:317:2: note: expanded from macro 'kh_foreach_value'
        for (__i = kh_begin(h); __i != kh_end(h); ++__i) {              \
        ^
/datasets/git/delta-islands.c:457:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        kh_foreach_value(remote_islands, island, {
        ^
/datasets/git/./khash.h:318:8: note: expanded from macro 'kh_foreach_value'
                if (!kh_exist(h,__i)) continue;                                         \
                     ^~~~~~~~~~~~~~~
/datasets/git/./khash.h:243:26: note: expanded from macro 'kh_exist'
#define kh_exist(h, x) (!__ac_iseither((h)->flags, (x)))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./khash.h:42:33: note: expanded from macro '__ac_iseither'
#define __ac_iseither(flag, i) ((flag[i>>4]>>((i&0xfU)<<1))&3)
                                ^                           ~
/datasets/git/delta-islands.c:461:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'island_count' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (ref = 0; ref + 1 < island_count; ref++) {
                      ^
/datasets/git/delta-islands.c:452:2: note: inferred assignment of ID-dependent value from ID-dependent member size
        unsigned int island_count, dst, src, ref, i = 0;
        ^
/datasets/git/delta-islands.c:462:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (src = ref + 1, dst = src; src < island_count; src++) {
                ^
/datasets/git/delta-islands.c:462:34: warning: backward branch (for loop) is ID-dependent due to variable reference to 'src' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (src = ref + 1, dst = src; src < island_count; src++) {
                                               ^
/datasets/git/delta-islands.c:463:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (list[ref]->hash == list[src]->hash)
                                                               ^
                                                                {
/datasets/git/delta-islands.c:466:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (src != dst)
                                       ^
                                        {
/datasets/git/delta-islands.c:474:39: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        island_bitmap_size = (island_count / 32) + 1;
                                             ^
/datasets/git/delta-islands.c:477:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < island_count; ++i) {
        ^
/datasets/git/delta-islands.c:477:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'island_count' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < island_count; ++i) {
                    ^
/datasets/git/delta-islands.c:484:44: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void load_delta_islands(struct repository *r, int progress)
                                           ^
/datasets/git/delta-islands.c:497:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (progress)
                     ^
                      {
/datasets/git/delta-islands.c:498:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, _("Marked %d islands, done.\n"), island_counter);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/delta-islands.c:498:3: note: cast the expression to void to silence this warning
/datasets/git/delta-islands.c:506:23: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                struct commit_list *p;
                                    ^
                                      = NULL
/datasets/git/delta-islands.c:506:23: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/delta-islands.c:511:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (p = commit->parents; p; p = p->next)
                ^
/datasets/git/delta-islands.c:511:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (p = commit->parents; p; p = p->next)
                                          ^
/datasets/git/delta-islands.c:511:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (p = commit->parents; p; p = p->next)
                                                         ^
                                                          {
/datasets/git/delta-islands.c:518:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i;
                 ^
                   = 0
/datasets/git/delta-islands.c:518:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/delta-islands.c:520:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!core_island_name || !island_marks)
                                               ^
                                                {
/datasets/git/delta-islands.c:523:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < to_pack->nr_objects; ++i) {
        ^
/datasets/git/delta-islands.c:532:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (island_bitmap_get(bitmap, island_counter_core))
                                                                           ^
                                                                            {
/datasets/git/diagnose.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "diagnose.h"
^        ~~~~~~~~~~~~
         "archive.h"
/datasets/git/diagnose.c:11:8: warning: accessing fields in struct 'archive_dir' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct archive_dir {
       ^
/datasets/git/diagnose.c:11:8: note: use "__attribute__((aligned(16)))" to align struct 'archive_dir' to 16 bytes
/datasets/git/diagnose.c:16:8: warning: accessing fields in struct 'diagnose_option' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct diagnose_option {
       ^
/datasets/git/diagnose.c:16:8: note: use "__attribute__((aligned(16)))" to align struct 'diagnose_option' to 16 bytes
/datasets/git/diagnose.c:21:31: warning: variable 'diagnose_options' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct diagnose_option diagnose_options[] = {
                              ^
/datasets/git/diagnose.c:28:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/diagnose.c:28:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diagnose.c:36:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ARRAY_SIZE(diagnose_options); i++) {
        ^
/datasets/git/diagnose.c:46:66: warning: parameter 'full_path_len' is unused [misc-unused-parameters]
static void dir_file_stats_objects(const char *full_path, size_t full_path_len,
                                                                 ^
/datasets/git/diagnose.c:50:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/diagnose.c:52:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!stat(full_path, &st))
                                  ^
                                   {
/datasets/git/diagnose.c:77:47: warning: parameter name 'e' is too short, expected at least 3 characters [readability-identifier-length]
static unsigned char get_dtype(struct dirent *e, struct strbuf *path)
                                              ^
/datasets/git/diagnose.c:79:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/diagnose.c:81:9: warning: variable 'base_path_len' is not initialized [cppcoreguidelines-init-variables]
        size_t base_path_len;
               ^
                             = 0
/datasets/git/diagnose.c:83:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (dtype != DT_UNKNOWN)
                                ^
                                 {
/datasets/git/diagnose.c:89:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (lstat(path->buf, &st))
                                  ^
                                   {
/datasets/git/diagnose.c:93:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (S_ISREG(st.st_mode))
                                ^
                                 {
/datasets/git/diagnose.c:95:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (S_ISDIR(st.st_mode))
                                     ^
                                      {
/datasets/git/diagnose.c:97:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (S_ISLNK(st.st_mode))
                                     ^
                                      {
/datasets/git/diagnose.c:108:17: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct dirent *e;
                       ^
                         = NULL
/datasets/git/diagnose.c:108:17: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diagnose.c:111:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!dir)
                 ^
                  {
/datasets/git/diagnose.c:114:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((e = readdir_skip_dot_and_dotdot(dir)) != NULL)
        ^
/datasets/git/diagnose.c:114:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'e' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((e = readdir_skip_dot_and_dotdot(dir)) != NULL)
               ^
/datasets/git/diagnose.c:114:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while ((e = readdir_skip_dot_and_dotdot(dir)) != NULL)
                                                              ^
                                                               {
/datasets/git/diagnose.c:115:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (get_dtype(e, path) == DT_REG)
                                                 ^
                                                  {
/datasets/git/diagnose.c:125:17: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct dirent *e;
                       ^
                         = NULL
/datasets/git/diagnose.c:125:17: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diagnose.c:126:6: warning: variable 'count' is not initialized [cppcoreguidelines-init-variables]
        int count;
            ^
                  = 0
/datasets/git/diagnose.c:128:16: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        unsigned char c;
                      ^
                        = 0
/datasets/git/diagnose.c:128:16: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diagnose.c:130:9: warning: variable 'base_path_len' is not initialized [cppcoreguidelines-init-variables]
        size_t base_path_len;
               ^
                             = 0
/datasets/git/diagnose.c:132:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!dir)
                 ^
                  {
/datasets/git/diagnose.c:143:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((e = readdir_skip_dot_and_dotdot(dir)) != NULL)
        ^
/datasets/git/diagnose.c:143:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'e' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((e = readdir_skip_dot_and_dotdot(dir)) != NULL)
               ^
/datasets/git/diagnose.c:143:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while ((e = readdir_skip_dot_and_dotdot(dir)) != NULL)
                                                              ^
                                                               {
/datasets/git/diagnose.c:159:12: warning: function 'add_directory_to_archiver' is within a recursive call chain [misc-no-recursion]
static int add_directory_to_archiver(struct strvec *archiver_args,
           ^
/datasets/git/diagnose.c:159:12: note: example recursive call chain, starting from function 'add_directory_to_archiver'
/datasets/git/diagnose.c:200:5: note: Frame #1: function 'add_directory_to_archiver' calls function 'add_directory_to_archiver' here:
                         add_directory_to_archiver(archiver_args,
                         ^
/datasets/git/diagnose.c:200:5: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/diagnose.c:163:7: warning: variable 'dir' is not initialized [cppcoreguidelines-init-variables]
        DIR *dir;
             ^
                 = NULL
/datasets/git/diagnose.c:164:17: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct dirent *e;
                       ^
                         = NULL
/datasets/git/diagnose.c:164:17: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diagnose.c:166:9: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        size_t len;
               ^
                   = 0
/datasets/git/diagnose.c:178:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!at_root)
                     ^
                      {
/datasets/git/diagnose.c:183:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (!res && (e = readdir_skip_dot_and_dotdot(dir))) {
        ^
/datasets/git/diagnose.c:183:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'e' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (!res && (e = readdir_skip_dot_and_dotdot(dir))) {
               ^
/datasets/git/diagnose.c:185:17: warning: variable 'dtype' is not initialized [cppcoreguidelines-init-variables]
                unsigned char dtype;
                              ^
                                    = 0
/datasets/git/diagnose.c:194:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (dtype == DT_REG)
                                    ^
                                     {
/datasets/git/diagnose.c:196:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (dtype != DT_DIR)
                                         ^
                                          {
/datasets/git/diagnose.c:201:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                   buf.buf, recurse) < 0)
                                                                         ^
                                                                          {
/datasets/git/diagnose.c:216:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int stdout_fd = -1, archiver_fd = -1;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diagnose.c:218:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int res, i;
        ^~~~~~~~~~~
/datasets/git/diagnose.c:218:6: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        int res, i;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diagnose.c:218:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int res, i;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diagnose.c:218:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diagnose.c:232:14: warning: prefer fcntl() to dup() because fcntl() allows F_DUPFD_CLOEXEC [android-cloexec-dup]
        stdout_fd = dup(STDOUT_FILENO);
                    ^~~~~~~~~~~~~~~~~~
                    fcntl(STDOUT_FILENO, F_DUPFD_CLOEXEC)
/datasets/git/diagnose.c:238:67: warning: 0666 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        archiver_fd = xopen(zip_path->buf, O_CREAT | O_WRONLY | O_TRUNC, 0666);
                                                                         ^
/datasets/git/diagnose.c:271:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < ARRAY_SIZE(archive_dirs); i++) {
                ^
/datasets/git/diagnose.c:288:22: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        res = write_archive(archiver_args.nr, (const char **)argv_copy, NULL,
                            ^
/datasets/git/diagnose.c:295:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(stderr, "\n"
        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/diagnose.c:295:2: note: cast the expression to void to silence this warning
/datasets/git/diff-delta.c:18:1: warning: replace macro with enum [modernize-macro-to-enum]
#define HASH_LIMIT 64
^~~~~~~~
                   =
/datasets/git/diff-delta.c:18:9: warning: macro 'HASH_LIMIT' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define HASH_LIMIT 64
        ^
/datasets/git/diff-delta.c:20:1: warning: replace macro with enum [modernize-macro-to-enum]
#define RABIN_SHIFT 23
^~~~~~~~
                    = ,
/datasets/git/diff-delta.c:20:9: warning: macro 'RABIN_SHIFT' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define RABIN_SHIFT 23
        ^
/datasets/git/diff-delta.c:21:9: warning: macro 'RABIN_WINDOW' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define RABIN_WINDOW 16
        ^
/datasets/git/diff-delta.c:23:27: warning: variable name 'T' is too short, expected at least 3 characters [readability-identifier-length]
static const unsigned int T[256] = {
                          ^
/datasets/git/diff-delta.c:69:27: warning: variable name 'U' is too short, expected at least 3 characters [readability-identifier-length]
static const unsigned int U[256] = {
                          ^
/datasets/git/diff-delta.c:115:8: warning: accessing fields in struct 'index_entry' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct index_entry {
       ^
/datasets/git/diff-delta.c:115:8: note: use "__attribute__((aligned(16)))" to align struct 'index_entry' to 16 bytes
/datasets/git/diff-delta.c:120:8: warning: accessing fields in struct 'unpacked_index_entry' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct unpacked_index_entry {
       ^
/datasets/git/diff-delta.c:120:8: note: use "__attribute__((aligned(32)))" to align struct 'unpacked_index_entry' to 32 bytes
/datasets/git/diff-delta.c:133:22: warning: function 'create_delta_index' has cognitive complexity of 32 (threshold 25) [readability-function-cognitive-complexity]
struct delta_index * create_delta_index(const void *buf, unsigned long bufsize)
                     ^
/datasets/git/diff-delta.c:143:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!buf || !bufsize)
        ^
/datasets/git/diff-delta.c:143:11: note: +1
        if (!buf || !bufsize)
                 ^
/datasets/git/diff-delta.c:150:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (bufsize >= 0xffffffffUL) {
        ^
/datasets/git/diff-delta.c:158:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 4; (1u << i) < hsize; i++);
        ^
/datasets/git/diff-delta.c:166:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!mem)
        ^
/datasets/git/diff-delta.c:176:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!hash_count) {
        ^
/datasets/git/diff-delta.c:183:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (data = buffer + entries * RABIN_WINDOW - RABIN_WINDOW;
        ^
/datasets/git/diff-delta.c:187:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 1; i <= RABIN_WINDOW; i++)
                ^
/datasets/git/diff-delta.c:189:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (val == prev_val) {
                ^
/datasets/git/diff-delta.c:193:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/diff-delta.c:216:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < hsize; i++) {
        ^
/datasets/git/diff-delta.c:219:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (hash_count[i] <= HASH_LIMIT)
                ^
/datasets/git/diff-delta.c:240:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                do {
                ^
/datasets/git/diff-delta.c:242:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (acc > 0) {
                        ^
/datasets/git/diff-delta.c:244:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                do {
                                ^
/datasets/git/diff-delta.c:263:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!mem) {
        ^
/datasets/git/diff-delta.c:279:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < hsize; i++) {
        ^
/datasets/git/diff-delta.c:285:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (entry = hash[i]; entry; entry = entry->next)
                ^
/datasets/git/diff-delta.c:292:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(packed_entry - (struct index_entry *)mem == entries);
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/diff-delta.c:292:2: note: nesting level increased to 1
        assert(packed_entry - (struct index_entry *)mem == entries);
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/diff-delta.c:292:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(packed_entry - (struct index_entry *)mem == entries);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/diff-delta.c:292:2: note: +1, nesting level increased to 2
        assert(packed_entry - (struct index_entry *)mem == entries);
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/diff-delta.c:135:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned int i, hsize, hmask, entries, prev_val, *hash_count;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff-delta.c:135:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i, hsize, hmask, entries, prev_val, *hash_count;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff-delta.c:135:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff-delta.c:135:18: warning: variable 'hsize' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i, hsize, hmask, entries, prev_val, *hash_count;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff-delta.c:135:25: warning: variable 'hmask' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i, hsize, hmask, entries, prev_val, *hash_count;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff-delta.c:135:32: warning: variable 'entries' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i, hsize, hmask, entries, prev_val, *hash_count;
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff-delta.c:135:41: warning: variable 'prev_val' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i, hsize, hmask, entries, prev_val, *hash_count;
                                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff-delta.c:135:52: warning: variable 'hash_count' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i, hsize, hmask, entries, prev_val, *hash_count;
                                                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff-delta.c:136:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const unsigned char *data, *buffer = buf;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff-delta.c:136:23: warning: variable 'data' is not initialized [cppcoreguidelines-init-variables]
        const unsigned char *data, *buffer = buf;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff-delta.c:137:22: warning: variable 'index' is not initialized [cppcoreguidelines-init-variables]
        struct delta_index *index;
                            ^
                                  = NULL
/datasets/git/diff-delta.c:138:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct unpacked_index_entry *entry, **hash;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff-delta.c:138:31: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
        struct unpacked_index_entry *entry, **hash;
                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff-delta.c:138:40: warning: variable 'hash' is not initialized [cppcoreguidelines-init-variables]
        struct unpacked_index_entry *entry, **hash;
                                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff-delta.c:139:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct index_entry *packed_entry, **packed_hash;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff-delta.c:139:22: warning: variable 'packed_entry' is not initialized [cppcoreguidelines-init-variables]
        struct index_entry *packed_entry, **packed_hash;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff-delta.c:139:38: warning: variable 'packed_hash' is not initialized [cppcoreguidelines-init-variables]
        struct index_entry *packed_entry, **packed_hash;
                                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff-delta.c:140:8: warning: variable 'mem' is not initialized [cppcoreguidelines-init-variables]
        void *mem;
              ^
                  = NULL
/datasets/git/diff-delta.c:141:16: warning: variable 'memsize' is not initialized [cppcoreguidelines-init-variables]
        unsigned long memsize;
                      ^
                              = 0
/datasets/git/diff-delta.c:143:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!buf || !bufsize)
                             ^
                              {
/datasets/git/diff-delta.c:150:17: warning: 0xffffffffUL is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (bufsize >= 0xffffffffUL) {
                       ^
/datasets/git/diff-delta.c:155:13: warning: 0xfffffffeU is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                entries = 0xfffffffeU / RABIN_WINDOW;
                          ^
/datasets/git/diff-delta.c:158:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 4; (1u << i) < hsize; i++);
        ^
/datasets/git/diff-delta.c:158:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 4; (1u << i) < hsize; i++);
                    ^
/datasets/git/diff-delta.c:158:15: warning: integer literal has suffix 'u', which is not uppercase [hicpp-uppercase-literal-suffix,readability-uppercase-literal-suffix]
        for (i = 4; (1u << i) < hsize; i++);
                     ^~
                      U
/datasets/git/diff-delta.c:158:37: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 4; (1u << i) < hsize; i++);
                                           ^
                                            {
/datasets/git/diff-delta.c:135:2: note: inferred assignment of ID-dependent value from ID-dependent variable val [altera-id-dependent-backward-branch]
        unsigned int i, hsize, hmask, entries, prev_val, *hash_count;
        ^
/datasets/git/diff-delta.c:159:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        hsize = 1 << i;
                ^
/datasets/git/diff-delta.c:163:12: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        memsize = sizeof(*hash) * hsize +
                  ^
/datasets/git/diff-delta.c:166:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!mem)
                 ^
                  {
/datasets/git/diff-delta.c:172:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(hash, 0, hsize * sizeof(*hash));
        ^~~~~~
/datasets/git/diff-delta.c:172:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(hash, 0, hsize * sizeof(*hash));
        ^~~~~~
/datasets/git/diff-delta.c:172:26: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        memset(hash, 0, hsize * sizeof(*hash));
                                ^
/datasets/git/diff-delta.c:182:13: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
        prev_val = ~0;
                   ^~
/datasets/git/diff-delta.c:183:14: warning: result of multiplication in type 'unsigned int' is used as a pointer offset after an implicit widening conversion to type 'size_t' [bugprone-implicit-widening-of-multiplication-result]
        for (data = buffer + entries * RABIN_WINDOW - RABIN_WINDOW;
                    ^
/datasets/git/diff-delta.c:183:23: note: make conversion explicit to silence this warning
        for (data = buffer + entries * RABIN_WINDOW - RABIN_WINDOW;
                             ^~~~~~~~~~~~~~~~~~~~~~
                             (size_t)( )
/datasets/git/diff-delta.c:183:23: note: perform multiplication in a wider type
        for (data = buffer + entries * RABIN_WINDOW - RABIN_WINDOW;
                             ^~~~~~~
                             (size_t)
/datasets/git/diff-delta.c:184:7: warning: backward branch (for loop) is ID-dependent due to variable reference to 'data' and may cause performance degradation [altera-id-dependent-backward-branch]
             data >= buffer;
             ^
/datasets/git/diff-delta.c:135:2: note: inferred assignment of ID-dependent value from ID-dependent variable val
        unsigned int i, hsize, hmask, entries, prev_val, *hash_count;
        ^
/datasets/git/diff-delta.c:187:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 1; i <= RABIN_WINDOW; i++)
                ^
/datasets/git/diff-delta.c:187:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 1; i <= RABIN_WINDOW; i++)
                            ^
/datasets/git/diff-delta.c:187:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 1; i <= RABIN_WINDOW; i++)
                                                   ^
                                                    {
/datasets/git/diff-delta.c:188:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        val = ((val << 8) | data[i]) ^ T[val >> RABIN_SHIFT];
                                ^      ~
/datasets/git/diff-delta.c:188:19: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        val = ((val << 8) | data[i]) ^ T[val >> RABIN_SHIFT];
                                       ^
/datasets/git/diff-delta.c:188:37: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        val = ((val << 8) | data[i]) ^ T[val >> RABIN_SHIFT];
                                                         ^
/datasets/git/diff-delta.c:216:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < hsize; i++) {
                    ^
/datasets/git/diff-delta.c:135:2: note: inferred assignment of ID-dependent value from ID-dependent variable val
        unsigned int i, hsize, hmask, entries, prev_val, *hash_count;
        ^
/datasets/git/diff-delta.c:217:7: warning: variable 'acc' is not initialized [cppcoreguidelines-init-variables]
                int acc;
                    ^
                        = 0
/datasets/git/diff-delta.c:219:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (hash_count[i] <= HASH_LIMIT)
                                                ^
                                                 {
/datasets/git/diff-delta.c:241:11: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        acc += hash_count[i] - HASH_LIMIT;
                               ^
/datasets/git/diff-delta.c:244:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                do {
                                ^
/datasets/git/diff-delta.c:247:14: warning: backward branch (do loop) is ID-dependent due to variable reference to 'acc' and may cause performance degradation [altera-id-dependent-backward-branch]
                                } while (acc > 0);
                                         ^
/datasets/git/diff-delta.c:251:12: warning: backward branch (do loop) is ID-dependent due to variable reference to 'entry' and may cause performance degradation [altera-id-dependent-backward-branch]
                } while (entry);
                         ^
/datasets/git/diff-delta.c:260:5: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                + sizeof(*packed_hash) * (hsize+1)
                  ^
/datasets/git/diff-delta.c:279:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < hsize; i++) {
                    ^
/datasets/git/diff-delta.c:285:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (entry = hash[i]; entry; entry = entry->next)
                ^
/datasets/git/diff-delta.c:285:25: warning: backward branch (for loop) is ID-dependent due to variable reference to 'entry' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (entry = hash[i]; entry; entry = entry->next)
                                      ^
/datasets/git/diff-delta.c:285:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (entry = hash[i]; entry; entry = entry->next)
                                                                 ^
                                                                  {
/datasets/git/diff-delta.c:305:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (index)
                  ^
                   {
/datasets/git/diff-delta.c:307:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else
        ^~~~
                        return 0
/datasets/git/diff-delta.c:307:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff-delta.c:318:1: warning: function 'create_delta' has cognitive complexity of 110 (threshold 25) [readability-function-cognitive-complexity]
create_delta(const struct delta_index *index,
^
/datasets/git/diff-delta.c:331:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!trg_buf || !trg_size)
        ^
/datasets/git/diff-delta.c:331:15: note: +1
        if (!trg_buf || !trg_size)
                     ^
/datasets/git/diff-delta.c:336:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (max_size && outsize >= max_size)
        ^
/datasets/git/diff-delta.c:336:15: note: +1
        if (max_size && outsize >= max_size)
                     ^
/datasets/git/diff-delta.c:339:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!out)
        ^
/datasets/git/diff-delta.c:344:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (l >= 0x80) {
        ^
/datasets/git/diff-delta.c:352:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (l >= 0x80) {
        ^
/datasets/git/diff-delta.c:365:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < RABIN_WINDOW && data < top; i++, data++) {
        ^
/datasets/git/diff-delta.c:365:31: note: +1
        for (i = 0; i < RABIN_WINDOW && data < top; i++, data++) {
                                     ^
/datasets/git/diff-delta.c:373:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (data < top) {
        ^
/datasets/git/diff-delta.c:374:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (msize < 4096) {
                ^
/datasets/git/diff-delta.c:379:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (entry = index->hash[i]; entry < index->hash[i+1]; entry++) {
                        ^
/datasets/git/diff-delta.c:383:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (entry->val != val)
                                ^
/datasets/git/diff-delta.c:385:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (ref_size > top - src)
                                ^
/datasets/git/diff-delta.c:387:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (ref_size <= msize)
                                ^
/datasets/git/diff-delta.c:389:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                while (ref_size-- && *src++ == *ref)
                                ^
/datasets/git/diff-delta.c:389:23: note: +1
                                while (ref_size-- && *src++ == *ref)
                                                  ^
/datasets/git/diff-delta.c:391:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (msize < ref - entry->ptr) {
                                ^
/datasets/git/diff-delta.c:395:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (msize >= 4096) /* good enough */
                                        ^
/datasets/git/diff-delta.c:401:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (msize < 4) {
                ^
/datasets/git/diff-delta.c:402:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!inscnt)
                        ^
/datasets/git/diff-delta.c:406:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (inscnt == 0x7f) {
                        ^
/datasets/git/diff-delta.c:411:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/diff-delta.c:415:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (inscnt) {
                        ^
/datasets/git/diff-delta.c:416:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                while (moff && ref_data[moff-1] == data[-1]) {
                                ^
/datasets/git/diff-delta.c:416:17: note: +1
                                while (moff && ref_data[moff-1] == data[-1]) {
                                            ^
/datasets/git/diff-delta.c:422:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (--inscnt)
                                        ^
/datasets/git/diff-delta.c:433:29: note: +3, including nesting penalty of 2, nesting level increased to 3
                        left = (msize < 0x10000) ? 0 : (msize - 0x10000);
                                                 ^
/datasets/git/diff-delta.c:439:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (moff & 0x000000ff)
                        ^
/datasets/git/diff-delta.c:441:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (moff & 0x0000ff00)
                        ^
/datasets/git/diff-delta.c:443:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (moff & 0x00ff0000)
                        ^
/datasets/git/diff-delta.c:445:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (moff & 0xff000000)
                        ^
/datasets/git/diff-delta.c:448:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (msize & 0x00ff)
                        ^
/datasets/git/diff-delta.c:450:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (msize & 0xff00)
                        ^
/datasets/git/diff-delta.c:459:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (moff > 0xffffffff)
                        ^
/datasets/git/diff-delta.c:462:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (msize < 4096) {
                        ^
/datasets/git/diff-delta.c:465:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                for (j = -RABIN_WINDOW; j < 0; j++)
                                ^
/datasets/git/diff-delta.c:471:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (outpos >= outsize - MAX_OP_SIZE) {
                ^
/datasets/git/diff-delta.c:474:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (max_size && outsize >= max_size)
                        ^
/datasets/git/diff-delta.c:474:17: note: +1
                        if (max_size && outsize >= max_size)
                                     ^
/datasets/git/diff-delta.c:476:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (max_size && outpos > max_size)
                        ^
/datasets/git/diff-delta.c:476:17: note: +1
                        if (max_size && outpos > max_size)
                                     ^
/datasets/git/diff-delta.c:479:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!out) {
                        ^
/datasets/git/diff-delta.c:486:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (inscnt)
        ^
/datasets/git/diff-delta.c:489:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (max_size && outpos > max_size) {
        ^
/datasets/git/diff-delta.c:489:15: note: +1
        if (max_size && outpos > max_size) {
                     ^
/datasets/git/diff-delta.c:322:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned int i, val;
        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/diff-delta.c:322:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i, val;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff-delta.c:322:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff-delta.c:322:18: warning: variable 'val' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i, val;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff-delta.c:323:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        off_t outpos, moff;
        ^~~~~~~~~~~~~~~~~~~
/datasets/git/diff-delta.c:323:8: warning: variable 'outpos' is not initialized [cppcoreguidelines-init-variables]
        off_t outpos, moff;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff-delta.c:323:16: warning: variable 'moff' is not initialized [cppcoreguidelines-init-variables]
        off_t outpos, moff;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff-delta.c:324:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t l, outsize, msize;
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff-delta.c:324:9: warning: variable 'l' is not initialized [cppcoreguidelines-init-variables]
        size_t l, outsize, msize;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff-delta.c:324:9: warning: variable name 'l' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff-delta.c:324:12: warning: variable 'outsize' is not initialized [cppcoreguidelines-init-variables]
        size_t l, outsize, msize;
                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff-delta.c:324:21: warning: variable 'msize' is not initialized [cppcoreguidelines-init-variables]
        size_t l, outsize, msize;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff-delta.c:325:6: warning: variable 'inscnt' is not initialized [cppcoreguidelines-init-variables]
        int inscnt;
            ^
                   = 0
/datasets/git/diff-delta.c:326:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const unsigned char *ref_data, *ref_top, *data, *top;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff-delta.c:326:23: warning: variable 'ref_data' is not initialized [cppcoreguidelines-init-variables]
        const unsigned char *ref_data, *ref_top, *data, *top;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff-delta.c:326:34: warning: variable 'ref_top' is not initialized [cppcoreguidelines-init-variables]
        const unsigned char *ref_data, *ref_top, *data, *top;
                                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff-delta.c:326:44: warning: variable 'data' is not initialized [cppcoreguidelines-init-variables]
        const unsigned char *ref_data, *ref_top, *data, *top;
                                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff-delta.c:326:51: warning: variable 'top' is not initialized [cppcoreguidelines-init-variables]
        const unsigned char *ref_data, *ref_top, *data, *top;
                                                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff-delta.c:327:17: warning: variable 'out' is not initialized [cppcoreguidelines-init-variables]
        unsigned char *out;
                       ^
                           = NULL
/datasets/git/diff-delta.c:331:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!trg_buf || !trg_size)
                                  ^
                                   {
/datasets/git/diff-delta.c:335:12: warning: 8192 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        outsize = 8192;
                  ^
/datasets/git/diff-delta.c:336:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (max_size && outsize >= max_size)
                                            ^
                                             {
/datasets/git/diff-delta.c:339:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!out)
                 ^
                  {
/datasets/git/diff-delta.c:344:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (l >= 0x80) {
        ^
/datasets/git/diff-delta.c:324:2: note: inferred assignment of ID-dependent value from ID-dependent member src_size [altera-id-dependent-backward-branch]
        size_t l, outsize, msize;
        ^
/datasets/git/diff-delta.c:344:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'l' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (l >= 0x80) {
               ^
/datasets/git/diff-delta.c:344:14: warning: 0x80 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        while (l >= 0x80) {
                    ^
/datasets/git/diff-delta.c:345:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                out[outpos++] = l | 0x80;
                                ^   ~~~~
/datasets/git/diff-delta.c:345:23: warning: 0x80 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                out[outpos++] = l | 0x80;
                                    ^
/datasets/git/diff-delta.c:346:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                l >>= 7;
                ^     ~
/datasets/git/diff-delta.c:346:9: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                l >>= 7;
                      ^
/datasets/git/diff-delta.c:352:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (l >= 0x80) {
        ^
/datasets/git/diff-delta.c:322:2: note: inferred assignment of ID-dependent value from ID-dependent variable val [altera-id-dependent-backward-branch]
        unsigned int i, val;
        ^
/datasets/git/diff-delta.c:352:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'l' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (l >= 0x80) {
               ^
/datasets/git/diff-delta.c:352:14: warning: 0x80 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        while (l >= 0x80) {
                    ^
/datasets/git/diff-delta.c:353:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                out[outpos++] = l | 0x80;
                                ^   ~~~~
/datasets/git/diff-delta.c:353:23: warning: 0x80 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                out[outpos++] = l | 0x80;
                                    ^
/datasets/git/diff-delta.c:354:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                l >>= 7;
                ^     ~
/datasets/git/diff-delta.c:354:9: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                l >>= 7;
                      ^
/datasets/git/diff-delta.c:365:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < RABIN_WINDOW && data < top; i++, data++) {
        ^
/datasets/git/diff-delta.c:326:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        const unsigned char *ref_data, *ref_top, *data, *top;
        ^
/datasets/git/diff-delta.c:365:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < RABIN_WINDOW && data < top; i++, data++) {
                    ^
/datasets/git/diff-delta.c:367:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                val = ((val << 8) | *data) ^ T[val >> RABIN_SHIFT];
                        ^      ~
/datasets/git/diff-delta.c:367:18: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                val = ((val << 8) | *data) ^ T[val >> RABIN_SHIFT];
                               ^
/datasets/git/diff-delta.c:367:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                val = ((val << 8) | *data) ^ T[val >> RABIN_SHIFT];
                                               ^
/datasets/git/diff-delta.c:369:11: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        inscnt = i;
                 ^
/datasets/git/diff-delta.c:373:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'data' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (data < top) {
               ^
/datasets/git/diff-delta.c:374:15: warning: 4096 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (msize < 4096) {
                            ^
/datasets/git/diff-delta.c:375:24: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
                        struct index_entry *entry;
                                            ^
                                                  = NULL
/datasets/git/diff-delta.c:377:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        val = ((val << 8) | *data) ^ T[val >> RABIN_SHIFT];
                                ^      ~
/datasets/git/diff-delta.c:377:19: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        val = ((val << 8) | *data) ^ T[val >> RABIN_SHIFT];
                                       ^
/datasets/git/diff-delta.c:377:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        val = ((val << 8) | *data) ^ T[val >> RABIN_SHIFT];
                                                       ^
/datasets/git/diff-delta.c:379:33: warning: backward branch (for loop) is ID-dependent due to variable reference to 'entry' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (entry = index->hash[i]; entry < index->hash[i+1]; entry++) {
                                                     ^
/datasets/git/diff-delta.c:383:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (entry->val != val)
                                                      ^
                                                       {
/datasets/git/diff-delta.c:385:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (ref_size > top - src)
                                                         ^
                                                          {
/datasets/git/diff-delta.c:387:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (ref_size <= msize)
                                                      ^
                                                       {
/datasets/git/diff-delta.c:389:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                while (ref_size-- && *src++ == *ref)
                                ^
/datasets/git/diff-delta.c:389:12: warning: backward branch (while loop) is ID-dependent due to variable reference to 'ref_size' and may cause performance degradation [altera-id-dependent-backward-branch]
                                while (ref_size-- && *src++ == *ref)
                                       ^
/datasets/git/diff-delta.c:389:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                while (ref_size-- && *src++ == *ref)
                                                                    ^
                                                                     {
/datasets/git/diff-delta.c:395:19: warning: 4096 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                        if (msize >= 4096) /* good enough */
                                                     ^
/datasets/git/diff-delta.c:395:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        if (msize >= 4096) /* good enough */
                                                          ^
                                                           {
/datasets/git/diff-delta.c:402:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!inscnt)
                                    ^
                                     {
/datasets/git/diff-delta.c:406:18: warning: 0x7f is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        if (inscnt == 0x7f) {
                                      ^
/datasets/git/diff-delta.c:412:17: warning: variable 'left' is not initialized [cppcoreguidelines-init-variables]
                        unsigned int left;
                                     ^
                                          = 0
/datasets/git/diff-delta.c:413:19: warning: variable 'op' is not initialized [cppcoreguidelines-init-variables]
                        unsigned char *op;
                                       ^
                                          = NULL
/datasets/git/diff-delta.c:413:19: warning: variable name 'op' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff-delta.c:323:2: note: inferred assignment of ID-dependent value from ID-dependent member ptr [altera-id-dependent-backward-branch]
        off_t outpos, moff;
        ^
/datasets/git/diff-delta.c:416:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                while (moff && ref_data[moff-1] == data[-1]) {
                                ^
/datasets/git/diff-delta.c:416:12: warning: backward branch (while loop) is ID-dependent due to variable reference to 'moff' and may cause performance degradation [altera-id-dependent-backward-branch]
                                while (moff && ref_data[moff-1] == data[-1]) {
                                       ^
/datasets/git/diff-delta.c:422:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        if (--inscnt)
                                                     ^
                                                      {
/datasets/git/diff-delta.c:433:20: warning: 0x10000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        left = (msize < 0x10000) ? 0 : (msize - 0x10000);
                                        ^
/datasets/git/diff-delta.c:433:44: warning: 0x10000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        left = (msize < 0x10000) ? 0 : (msize - 0x10000);
                                                                ^
/datasets/git/diff-delta.c:437:8: warning: 0x80 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        i = 0x80;
                            ^
/datasets/git/diff-delta.c:439:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (moff & 0x000000ff)
                            ^~~~
/datasets/git/diff-delta.c:439:15: warning: 0x000000ff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        if (moff & 0x000000ff)
                                   ^
/datasets/git/diff-delta.c:439:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (moff & 0x000000ff)
                                              ^
                                               {
/datasets/git/diff-delta.c:440:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                out[outpos++] = moff >> 0,  i |= 0x01;
                                                ^~~~
/datasets/git/diff-delta.c:440:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                out[outpos++] = moff >> 0,  i |= 0x01;
                                                            ^    ~~~~
/datasets/git/diff-delta.c:441:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (moff & 0x0000ff00)
                            ^~~~
/datasets/git/diff-delta.c:441:15: warning: 0x0000ff00 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        if (moff & 0x0000ff00)
                                   ^
/datasets/git/diff-delta.c:441:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (moff & 0x0000ff00)
                                              ^
                                               {
/datasets/git/diff-delta.c:442:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                out[outpos++] = moff >> 8,  i |= 0x02;
                                                ^~~~
/datasets/git/diff-delta.c:442:29: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                out[outpos++] = moff >> 8,  i |= 0x02;
                                                        ^
/datasets/git/diff-delta.c:442:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                out[outpos++] = moff >> 8,  i |= 0x02;
                                                            ^    ~~~~
/datasets/git/diff-delta.c:443:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (moff & 0x00ff0000)
                            ^~~~
/datasets/git/diff-delta.c:443:15: warning: 0x00ff0000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        if (moff & 0x00ff0000)
                                   ^
/datasets/git/diff-delta.c:443:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (moff & 0x00ff0000)
                                              ^
                                               {
/datasets/git/diff-delta.c:444:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                out[outpos++] = moff >> 16, i |= 0x04;
                                                ^~~~
/datasets/git/diff-delta.c:444:29: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                out[outpos++] = moff >> 16, i |= 0x04;
                                                        ^
/datasets/git/diff-delta.c:444:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                out[outpos++] = moff >> 16, i |= 0x04;
                                                            ^    ~~~~
/datasets/git/diff-delta.c:445:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (moff & 0xff000000)
                            ^~~~
/datasets/git/diff-delta.c:445:15: warning: 0xff000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        if (moff & 0xff000000)
                                   ^
/datasets/git/diff-delta.c:445:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (moff & 0xff000000)
                                              ^
                                               {
/datasets/git/diff-delta.c:446:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                out[outpos++] = moff >> 24, i |= 0x08;
                                                ^~~~
/datasets/git/diff-delta.c:446:29: warning: 24 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                out[outpos++] = moff >> 24, i |= 0x08;
                                                        ^
/datasets/git/diff-delta.c:446:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                out[outpos++] = moff >> 24, i |= 0x08;
                                                            ^    ~~~~
/datasets/git/diff-delta.c:446:38: warning: 0x08 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                out[outpos++] = moff >> 24, i |= 0x08;
                                                                 ^
/datasets/git/diff-delta.c:448:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (msize & 0x00ff)
                            ^       ~~~~~~
/datasets/git/diff-delta.c:448:16: warning: 0x00ff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        if (msize & 0x00ff)
                                    ^
/datasets/git/diff-delta.c:448:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (msize & 0x00ff)
                                           ^
                                            {
/datasets/git/diff-delta.c:449:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                out[outpos++] = msize >> 0, i |= 0x10;
                                                ^        ~
/datasets/git/diff-delta.c:449:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                out[outpos++] = msize >> 0, i |= 0x10;
                                                            ^    ~~~~
/datasets/git/diff-delta.c:449:38: warning: 0x10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                out[outpos++] = msize >> 0, i |= 0x10;
                                                                 ^
/datasets/git/diff-delta.c:450:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (msize & 0xff00)
                            ^       ~~~~~~
/datasets/git/diff-delta.c:450:16: warning: 0xff00 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        if (msize & 0xff00)
                                    ^
/datasets/git/diff-delta.c:450:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (msize & 0xff00)
                                           ^
                                            {
/datasets/git/diff-delta.c:451:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                out[outpos++] = msize >> 8, i |= 0x20;
                                                ^        ~
/datasets/git/diff-delta.c:451:30: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                out[outpos++] = msize >> 8, i |= 0x20;
                                                         ^
/datasets/git/diff-delta.c:451:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                out[outpos++] = msize >> 8, i |= 0x20;
                                                            ^    ~~~~
/datasets/git/diff-delta.c:451:38: warning: 0x20 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                out[outpos++] = msize >> 8, i |= 0x20;
                                                                 ^
/datasets/git/diff-delta.c:456:12: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'off_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        moff += msize;
                                ^
/datasets/git/diff-delta.c:459:15: warning: 0xffffffff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        if (moff > 0xffffffff)
                                   ^
/datasets/git/diff-delta.c:459:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (moff > 0xffffffff)
                                              ^
                                               {
/datasets/git/diff-delta.c:462:16: warning: 4096 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        if (msize < 4096) {
                                    ^
/datasets/git/diff-delta.c:463:9: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
                                int j;
                                    ^
                                      = 0
/datasets/git/diff-delta.c:463:9: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff-delta.c:465:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                for (j = -RABIN_WINDOW; j < 0; j++)
                                ^
/datasets/git/diff-delta.c:465:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                for (j = -RABIN_WINDOW; j < 0; j++)
                                                                   ^
                                                                    {
/datasets/git/diff-delta.c:466:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        val = ((val << 8) | data[j])
                                                ^      ~
/datasets/git/diff-delta.c:466:21: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                        val = ((val << 8) | data[j])
                                                       ^
/datasets/git/diff-delta.c:467:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                              ^ T[val >> RABIN_SHIFT];
                                                  ^
/datasets/git/diff-delta.c:474:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (max_size && outsize >= max_size)
                                                            ^
                                                             {
/datasets/git/diff-delta.c:476:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (max_size && outpos > max_size)
                                                          ^
                                                           {
/datasets/git/diff-delta.c:486:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (inscnt)
                   ^
                    {
/datasets/git/diff-lib.c:5:1: warning: #includes are not sorted properly [llvm-include-order]
#include "quote.h"
^        ~~~~~~~~~
         "cache-tree.h"
/datasets/git/diff-lib.c:31:86: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static int check_removed(const struct index_state *istate, const struct cache_entry *ce, struct stat *st)
                                                                                     ^
/datasets/git/diff-lib.c:31:103: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
static int check_removed(const struct index_state *istate, const struct cache_entry *ce, struct stat *st)
                                                                                                      ^
/datasets/git/diff-lib.c:34:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(ce->ce_flags & CE_FSMONITOR_VALID) && lstat(ce->name, st) < 0) {
              ^
/datasets/git/diff-lib.c:34:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(ce->ce_flags & CE_FSMONITOR_VALID) && lstat(ce->name, st) < 0) {
                             ^
/datasets/git/./refs/../cache.h:173:31: note: expanded from macro 'CE_FSMONITOR_VALID'
#define CE_FSMONITOR_VALID   (1 << 21)
                              ^
/datasets/git/diff-lib.c:35:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!is_missing_file_error(errno))
                                                  ^
                                                   {
/datasets/git/diff-lib.c:39:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (has_symlink_leading_path(ce->name, ce_namelen(ce)))
                                                               ^
                                                                {
/datasets/git/diff-lib.c:41:6: warning: The left operand of '&' is a garbage value [clang-analyzer-core.UndefinedBinaryOperatorResult]
        if (S_ISDIR(st->st_mode)) {
            ^
/usr/include/x86_64-linux-gnu/sys/stat.h:125:24: note: expanded from macro 'S_ISDIR'
#define S_ISDIR(mode)    __S_ISTYPE((mode), __S_IFDIR)
                         ^
/usr/include/x86_64-linux-gnu/sys/stat.h:123:41: note: expanded from macro '__S_ISTYPE'
#define __S_ISTYPE(mode, mask)  (((mode) & __S_IFMT) == (mask))
                                         ^
/datasets/git/diff-lib.c:95:25: note: Assuming the condition is false
        unsigned ce_option = ((option & DIFF_RACY_IS_MODIFIED)
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff-lib.c:95:24: note: '?' condition is false
        unsigned ce_option = ((option & DIFF_RACY_IS_MODIFIED)
                              ^
/datasets/git/diff-lib.c:104:6: note: Assuming 'diff_unmerged_stage' is >= 0
        if (diff_unmerged_stage < 0)
            ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff-lib.c:104:2: note: Taking false branch
        if (diff_unmerged_stage < 0)
        ^
/datasets/git/diff-lib.c:107:14: note: Assuming 'i' is < 'entries'
        for (i = 0; i < entries; i++) {
                    ^~~~~~~~~~~
/datasets/git/diff-lib.c:107:2: note: Loop condition is true.  Entering loop body
        for (i = 0; i < entries; i++) {
        ^
/datasets/git/diff-lib.c:114:7: note: Assuming the condition is false
                if (diff_can_quit_early(&revs->diffopt))
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff-lib.c:114:3: note: Taking false branch
                if (diff_can_quit_early(&revs->diffopt))
                ^
/datasets/git/diff-lib.c:117:7: note: Assuming the condition is false
                if (!ce_path_match(istate, ce, &revs->prune_data, NULL))
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff-lib.c:117:3: note: Taking false branch
                if (!ce_path_match(istate, ce, &revs->prune_data, NULL))
                ^
/datasets/git/diff-lib.c:120:7: note: Assuming field 'prefix' is null
                if (revs->diffopt.prefix &&
                    ^~~~~~~~~~~~~~~~~~~~
/datasets/git/diff-lib.c:120:28: note: Left side of '&&' is false
                if (revs->diffopt.prefix &&
                                         ^
/datasets/git/diff-lib.c:124:7: note: Assuming the condition is false
                if (ce_stage(ce)) {
                    ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff-lib.c:124:3: note: Taking false branch
                if (ce_stage(ce)) {
                ^
/datasets/git/diff-lib.c:205:7: note: Assuming the condition is false
                if (ce_uptodate(ce) || ce_skip_worktree(ce))
                    ^
/datasets/git/./refs/../cache.h:243:26: note: expanded from macro 'ce_uptodate'
#define ce_uptodate(ce) ((ce)->ce_flags & CE_UPTODATE)
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff-lib.c:205:7: note: Left side of '||' is false
                if (ce_uptodate(ce) || ce_skip_worktree(ce))
                    ^
/datasets/git/./refs/../cache.h:243:25: note: expanded from macro 'ce_uptodate'
#define ce_uptodate(ce) ((ce)->ce_flags & CE_UPTODATE)
                        ^
/datasets/git/diff-lib.c:205:26: note: Assuming the condition is false
                if (ce_uptodate(ce) || ce_skip_worktree(ce))
                                       ^
/datasets/git/./refs/../cache.h:244:31: note: expanded from macro 'ce_skip_worktree'
#define ce_skip_worktree(ce) ((ce)->ce_flags & CE_SKIP_WORKTREE)
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff-lib.c:205:3: note: Taking false branch
                if (ce_uptodate(ce) || ce_skip_worktree(ce))
                ^
/datasets/git/diff-lib.c:218:7: note: Assuming the condition is false
                if (ce->ce_flags & (CE_VALID | CE_FSMONITOR_VALID)) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff-lib.c:218:3: note: Taking false branch
                if (ce->ce_flags & (CE_VALID | CE_FSMONITOR_VALID)) {
                ^
/datasets/git/diff-lib.c:224:14: note: Calling 'check_removed'
                        changed = check_removed(istate, ce, &st);
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff-lib.c:33:2: note: Taking true branch
        assert(is_fsmonitor_refreshed(istate));
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/diff-lib.c:34:6: note: Assuming the condition is false
        if (!(ce->ce_flags & CE_FSMONITOR_VALID) && lstat(ce->name, st) < 0) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff-lib.c:34:43: note: Left side of '&&' is false
        if (!(ce->ce_flags & CE_FSMONITOR_VALID) && lstat(ce->name, st) < 0) {
                                                 ^
/datasets/git/diff-lib.c:39:6: note: Assuming the condition is false
        if (has_symlink_leading_path(ce->name, ce_namelen(ce)))
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff-lib.c:39:2: note: Taking false branch
        if (has_symlink_leading_path(ce->name, ce_namelen(ce)))
        ^
/datasets/git/diff-lib.c:41:6: note: The left operand of '&' is a garbage value
        if (S_ISDIR(st->st_mode)) {
            ^
/usr/include/x86_64-linux-gnu/sys/stat.h:125:24: note: expanded from macro 'S_ISDIR'
#define S_ISDIR(mode)    __S_ISTYPE((mode), __S_IFDIR)
                         ^           ~~~~
/usr/include/x86_64-linux-gnu/sys/stat.h:123:41: note: expanded from macro '__S_ISTYPE'
#define __S_ISTYPE(mode, mask)  (((mode) & __S_IFMT) == (mask))
                                   ~~~~  ^
/datasets/git/diff-lib.c:55:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!S_ISGITLINK(ce->ce_mode) &&
                     ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/diff-lib.c:56:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    resolve_gitlink_ref(ce->name, "HEAD", &sub))
                                                                ^
                                                                 {
/datasets/git/diff-lib.c:71:36: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                                     const struct cache_entry *ce,
                                                               ^
/datasets/git/diff-lib.c:72:23: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                                     struct stat *st, unsigned ce_option,
                                                  ^
/datasets/git/diff-lib.c:76:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (S_ISGITLINK(ce->ce_mode)) {
            ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/diff-lib.c:78:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!diffopt->flags.override_submodule_config)
                                                              ^
                                                               {
/datasets/git/diff-lib.c:80:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (diffopt->flags.ignore_submodules)
                                                     ^
                                                      {
/datasets/git/diff-lib.c:83:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                         (!changed || diffopt->flags.dirty_submodules))
                                                                       ^
                                                                        {
/datasets/git/diff-lib.c:85:10: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                                                 diffopt->flags.ignore_untracked_in_submodules);
                                                                 ^
/datasets/git/diff-lib.c:91:5: warning: function 'run_diff_files' has cognitive complexity of 74 (threshold 25) [readability-function-cognitive-complexity]
int run_diff_files(struct rev_info *revs, unsigned int option)
    ^
/datasets/git/diff-lib.c:96:10: note: +1, including nesting penalty of 0, nesting level increased to 1
                              ? CE_MATCH_RACY_IS_DIRTY : 0);
                              ^
/datasets/git/diff-lib.c:104:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (diff_unmerged_stage < 0)
        ^
/datasets/git/diff-lib.c:107:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < entries; i++) {
        ^
/datasets/git/diff-lib.c:114:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (diff_can_quit_early(&revs->diffopt))
                ^
/datasets/git/diff-lib.c:117:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!ce_path_match(istate, ce, &revs->prune_data, NULL))
                ^
/datasets/git/diff-lib.c:120:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (revs->diffopt.prefix &&
                ^
/datasets/git/diff-lib.c:120:28: note: +1
                if (revs->diffopt.prefix &&
                                         ^
/datasets/git/diff-lib.c:124:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ce_stage(ce)) {
                ^
/datasets/git/diff-lib.c:145:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!changed)
                        ^
/datasets/git/diff-lib.c:147:4: note: +1, nesting level increased to 3
                        else {
                        ^
/datasets/git/diff-lib.c:148:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (changed < 0) {
                                ^
/datasets/git/diff-lib.c:156:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (i < entries) {
                        ^
/datasets/git/diff-lib.c:160:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (strcmp(ce->name, nce->name))
                                ^
/datasets/git/diff-lib.c:167:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (2 <= stage) {
                                ^
/datasets/git/diff-lib.c:178:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (stage == diff_unmerged_stage)
                                ^
/datasets/git/diff-lib.c:187:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (revs->combine_merges && num_compare_stages == 2) {
                        ^
/datasets/git/diff-lib.c:187:29: note: +1
                        if (revs->combine_merges && num_compare_stages == 2) {
                                                 ^
/datasets/git/diff-lib.c:192:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        FREE_AND_NULL(dpath);
                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/diff-lib.c:199:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (wt_mode)
                        ^
/datasets/git/diff-lib.c:201:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ce_stage(ce) != diff_unmerged_stage)
                        ^
/datasets/git/diff-lib.c:205:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ce_uptodate(ce) || ce_skip_worktree(ce))
                ^
/datasets/git/diff-lib.c:205:23: note: +1
                if (ce_uptodate(ce) || ce_skip_worktree(ce))
                                    ^
/datasets/git/diff-lib.c:218:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ce->ce_flags & (CE_VALID | CE_FSMONITOR_VALID)) {
                ^
/datasets/git/diff-lib.c:221:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/diff-lib.c:225:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (changed) {
                        ^
/datasets/git/diff-lib.c:226:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (changed < 0) {
                                ^
/datasets/git/diff-lib.c:235:11: note: +1, nesting level increased to 3
                        } else if (revs->diffopt.ita_invisible_in_index &&
                               ^
/datasets/git/diff-lib.c:235:52: note: +1
                        } else if (revs->diffopt.ita_invisible_in_index &&
                                                                        ^
/datasets/git/diff-lib.c:248:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!changed && !dirty_submodule) {
                ^
/datasets/git/diff-lib.c:248:16: note: +1
                if (!changed && !dirty_submodule) {
                             ^
/datasets/git/diff-lib.c:251:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!revs->diffopt.flags.find_copies_harder)
                        ^
/datasets/git/diff-lib.c:256:21: note: +2, including nesting penalty of 1, nesting level increased to 2
                new_oid = changed ? null_oid() : &ce->oid;
                                  ^
/datasets/git/diff-lib.c:266:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        trace_performance_since(start, "diff-files");
        ^
/datasets/git/./trace.h:240:2: note: expanded from macro 'trace_performance_since'
        do {                                                                \
        ^
/datasets/git/diff-lib.c:266:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        trace_performance_since(start, "diff-files");
        ^
/datasets/git/./trace.h:241:3: note: expanded from macro 'trace_performance_since'
                if (trace_pass_fl(&trace_perf_key))                         \
                ^
/datasets/git/diff-lib.c:93:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int entries, i;
        ^~~~~~~~~~~~~~~
/datasets/git/diff-lib.c:93:6: warning: variable 'entries' is not initialized [cppcoreguidelines-init-variables]
        int entries, i;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff-lib.c:93:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int entries, i;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff-lib.c:93:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff-lib.c:95:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned ce_option = ((option & DIFF_RACY_IS_MODIFIED)
                               ^
/datasets/git/diff-lib.c:104:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (diff_unmerged_stage < 0)
                                    ^
                                     {
/datasets/git/diff-lib.c:106:12: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        entries = istate->cache_nr;
                  ^
/datasets/git/diff-lib.c:107:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'entries' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < entries; i++) {
                    ^
/datasets/git/diff-lib.c:108:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                unsigned int oldmode, newmode;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff-lib.c:108:16: warning: variable 'oldmode' is not initialized [cppcoreguidelines-init-variables]
                unsigned int oldmode, newmode;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff-lib.c:108:25: warning: variable 'newmode' is not initialized [cppcoreguidelines-init-variables]
                unsigned int oldmode, newmode;
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff-lib.c:109:23: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                struct cache_entry *ce = istate->cache[i];
                                    ^
/datasets/git/diff-lib.c:110:7: warning: variable 'changed' is not initialized [cppcoreguidelines-init-variables]
                int changed;
                    ^
                            = 0
/datasets/git/diff-lib.c:112:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                const struct object_id *old_oid, *new_oid;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff-lib.c:112:27: warning: variable 'old_oid' is not initialized [cppcoreguidelines-init-variables]
                const struct object_id *old_oid, *new_oid;
                                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff-lib.c:112:37: warning: variable 'new_oid' is not initialized [cppcoreguidelines-init-variables]
                const struct object_id *old_oid, *new_oid;
                                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff-lib.c:114:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (diff_can_quit_early(&revs->diffopt))
                                                        ^
                                                         {
/datasets/git/diff-lib.c:117:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ce_path_match(istate, ce, &revs->prune_data, NULL))
                                                                        ^
                                                                         {
/datasets/git/diff-lib.c:121:7: warning: function 'strncmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                    strncmp(ce->name, revs->diffopt.prefix, revs->diffopt.prefix_length))
                    ^
                                                                                         != 0
/datasets/git/diff-lib.c:121:76: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    strncmp(ce->name, revs->diffopt.prefix, revs->diffopt.prefix_length))
                                                                                         ^
                                                                                          {
/datasets/git/diff-lib.c:124:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce_stage(ce)) {
                    ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/diff-lib.c:125:30: warning: variable 'dpath' is not initialized [cppcoreguidelines-init-variables]
                        struct combine_diff_path *dpath;
                                                  ^
                                                        = NULL
/datasets/git/diff-lib.c:126:26: warning: variable 'pair' is not initialized [cppcoreguidelines-init-variables]
                        struct diff_filepair *pair;
                                              ^
                                                   = NULL
/datasets/git/diff-lib.c:129:11: warning: variable 'path_len' is not initialized [cppcoreguidelines-init-variables]
                        size_t path_len;
                               ^
                                        = 0
/datasets/git/diff-lib.c:130:16: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                        struct stat st;
                                    ^
/datasets/git/diff-lib.c:135:43: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        dpath->path = (char *) &(dpath->parent[5]);
                                                               ^
/datasets/git/diff-lib.c:138:4: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memcpy(dpath->path, ce->name, path_len);
                        ^~~~~~
/datasets/git/diff-lib.c:138:4: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                        memcpy(dpath->path, ce->name, path_len);
                        ^~~~~~
/datasets/git/diff-lib.c:141:4: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memset(&(dpath->parent[0]), 0,
                        ^~~~~~
/datasets/git/diff-lib.c:141:4: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                        memset(&(dpath->parent[0]), 0,
                        ^~~~~~
/datasets/git/diff-lib.c:142:46: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                               sizeof(struct combine_diff_parent)*5);
                                                                  ^
/datasets/git/diff-lib.c:145:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!changed)
                                     ^
                                      {
/datasets/git/diff-lib.c:156:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (i < entries) {
                        ^
/datasets/git/diff-lib.c:156:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'entries' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (i < entries) {
                               ^
/datasets/git/diff-lib.c:158:9: warning: variable 'stage' is not initialized [cppcoreguidelines-init-variables]
                                int stage;
                                    ^
                                          = 0
/datasets/git/diff-lib.c:160:9: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                                if (strcmp(ce->name, nce->name))
                                    ^
                                                                != 0
/datasets/git/diff-lib.c:160:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (strcmp(ce->name, nce->name))
                                                                ^
                                                                 {
/datasets/git/diff-lib.c:166:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                stage = ce_stage(nce);
                                        ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/diff-lib.c:168:17: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                        int mode = nce->ce_mode;
                                                   ^
/datasets/git/diff-lib.c:178:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (stage == diff_unmerged_stage)
                                                                 ^
                                                                  {
/datasets/git/diff-lib.c:192:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        FREE_AND_NULL(dpath);
                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/diff-lib.c:199:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (wt_mode)
                                    ^
                                     {
/datasets/git/diff-lib.c:201:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (ce_stage(ce) != diff_unmerged_stage)
                            ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/diff-lib.c:201:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ce_stage(ce) != diff_unmerged_stage)
                                                                ^
                                                                 {
/datasets/git/diff-lib.c:205:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce_uptodate(ce) || ce_skip_worktree(ce))
                    ^
/datasets/git/./refs/../cache.h:243:26: note: expanded from macro 'ce_uptodate'
#define ce_uptodate(ce) ((ce)->ce_flags & CE_UPTODATE)
                         ^                ~~~~~~~~~~~
/datasets/git/diff-lib.c:205:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce_uptodate(ce) || ce_skip_worktree(ce))
                                       ^
/datasets/git/./refs/../cache.h:244:31: note: expanded from macro 'ce_skip_worktree'
#define ce_skip_worktree(ce) ((ce)->ce_flags & CE_SKIP_WORKTREE)
                              ^                ~~~~~~~~~~~~~~~~
/datasets/git/diff-lib.c:205:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ce_uptodate(ce) || ce_skip_worktree(ce))
                                                            ^
                                                             {
/datasets/git/diff-lib.c:218:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce->ce_flags & (CE_VALID | CE_FSMONITOR_VALID)) {
                    ^              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff-lib.c:218:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce->ce_flags & (CE_VALID | CE_FSMONITOR_VALID)) {
                                    ^
/datasets/git/./refs/../cache.h:155:22: note: expanded from macro 'CE_VALID'
#define CE_VALID     (0x8000)
                     ^~~~~~~~
/datasets/git/diff-lib.c:218:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce->ce_flags & (CE_VALID | CE_FSMONITOR_VALID)) {
                                               ^
/datasets/git/./refs/../cache.h:173:31: note: expanded from macro 'CE_FSMONITOR_VALID'
#define CE_FSMONITOR_VALID   (1 << 21)
                              ^
/datasets/git/diff-lib.c:222:16: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                        struct stat st;
                                    ^
/datasets/git/diff-lib.c:235:6: warning: do not use 'else' after 'continue' [llvm-else-after-return,readability-else-after-return]
                        } else if (revs->diffopt.ita_invisible_in_index &&
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff-lib.c:236:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                   ce_intent_to_add(ce)) {
                                   ^
/datasets/git/./refs/../cache.h:246:31: note: expanded from macro 'ce_intent_to_add'
#define ce_intent_to_add(ce) ((ce)->ce_flags & CE_INTENT_TO_ADD)
                              ^                ~~~~~~~~~~~~~~~~
/datasets/git/diff-lib.c:249:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ce_mark_uptodate(ce);
                        ^
/datasets/git/./refs/../cache.h:245:31: note: expanded from macro 'ce_mark_uptodate'
#define ce_mark_uptodate(ce) ((ce)->ce_flags |= CE_UPTODATE)
                              ^                 ~~~~~~~~~~~
/datasets/git/diff-lib.c:251:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!revs->diffopt.flags.find_copies_harder)
                                                                    ^
                                                                     {
/datasets/git/diff-lib.c:266:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_performance_since(start, "diff-files");
        ^
/datasets/git/./trace.h:240:2: note: expanded from macro 'trace_performance_since'
        do {                                                                \
        ^
/datasets/git/diff-lib.c:277:32: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                                 const struct cache_entry *ce,
                                                           ^
/datasets/git/diff-lib.c:287:31: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                         const struct cache_entry *ce,
                                                   ^
/datasets/git/diff-lib.c:290:5: warning: 2 adjacent parameters of 'get_stat_data' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                         int cached, int match_missing,
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff-lib.c:290:9: note: the first parameter in the range is 'cached'
                         int cached, int match_missing,
                             ^~~~~~
/datasets/git/diff-lib.c:290:21: note: the last parameter in the range is 'match_missing'
                         int cached, int match_missing,
                                         ^~~~~~~~~~~~~
/datasets/git/diff-lib.c:296:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!cached && !ce_uptodate(ce)) {
                        ^
/datasets/git/./refs/../cache.h:243:26: note: expanded from macro 'ce_uptodate'
#define ce_uptodate(ce) ((ce)->ce_flags & CE_UPTODATE)
                         ^                ~~~~~~~~~~~
/datasets/git/diff-lib.c:297:7: warning: variable 'changed' is not initialized [cppcoreguidelines-init-variables]
                int changed;
                    ^
                            = 0
/datasets/git/diff-lib.c:298:15: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                struct stat st;
                            ^
/datasets/git/diff-lib.c:300:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (changed < 0)
                                ^
                                 {
/datasets/git/diff-lib.c:302:3: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                else if (changed) {
                ^~~~~~~~~~~~~~~~~~~
/datasets/git/diff-lib.c:327:26: warning: variable 'oid' is not initialized [cppcoreguidelines-init-variables]
        const struct object_id *oid;
                                ^
                                    = NULL
/datasets/git/diff-lib.c:328:15: warning: variable 'mode' is not initialized [cppcoreguidelines-init-variables]
        unsigned int mode;
                     ^
                          = 0
/datasets/git/diff-lib.c:342:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            &dirty_submodule, &revs->diffopt) < 0)
                                                  ^
                                                   {
/datasets/git/diff-lib.c:351:5: warning: 2 adjacent parameters of 'show_modified' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                         int report_missing,
                         ^~~~~~~~~~~~~~~~~~~
/datasets/git/diff-lib.c:351:9: note: the first parameter in the range is 'report_missing'
                         int report_missing,
                             ^~~~~~~~~~~~~~
/datasets/git/diff-lib.c:352:9: note: the last parameter in the range is 'cached'
                         int cached, int match_missing)
                             ^~~~~~
/datasets/git/diff-lib.c:354:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned int mode, oldmode;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff-lib.c:354:15: warning: variable 'mode' is not initialized [cppcoreguidelines-init-variables]
        unsigned int mode, oldmode;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff-lib.c:354:21: warning: variable 'oldmode' is not initialized [cppcoreguidelines-init-variables]
        unsigned int mode, oldmode;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff-lib.c:355:26: warning: variable 'oid' is not initialized [cppcoreguidelines-init-variables]
        const struct object_id *oid;
                                ^
                                    = NULL
/datasets/git/diff-lib.c:375:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (report_missing)
                                   ^
                                    {
/datasets/git/diff-lib.c:384:29: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                struct combine_diff_path *p;
                                          ^
                                            = NULL
/datasets/git/diff-lib.c:384:29: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff-lib.c:390:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(p->path, new_entry->name, pathlen);
                ^~~~~~
/datasets/git/diff-lib.c:390:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(p->path, new_entry->name, pathlen);
                ^~~~~~
/datasets/git/diff-lib.c:394:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(p->parent, 0, 2 * sizeof(struct combine_diff_parent));
                ^~~~~~
/datasets/git/diff-lib.c:394:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(p->parent, 0, 2 * sizeof(struct combine_diff_parent));
                ^~~~~~
/datasets/git/diff-lib.c:408:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !revs->diffopt.flags.find_copies_harder)
                                                    ^
                                                     {
/datasets/git/diff-lib.c:423:57: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static void do_oneway_diff(struct unpack_trees_options *o,
                                                        ^
/datasets/git/diff-lib.c:428:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int match_missing, cached;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff-lib.c:428:6: warning: variable 'match_missing' is not initialized [cppcoreguidelines-init-variables]
        int match_missing, cached;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff-lib.c:428:21: warning: variable 'cached' is not initialized [cppcoreguidelines-init-variables]
        int match_missing, cached;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff-lib.c:436:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            idx && ce_intent_to_add(idx)) {
                   ^
/datasets/git/./refs/../cache.h:246:31: note: expanded from macro 'ce_intent_to_add'
#define ce_intent_to_add(ce) ((ce)->ce_flags & CE_INTENT_TO_ADD)
                              ^                ~~~~~~~~~~~~~~~~
/datasets/git/diff-lib.c:438:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!tree)
                          ^
                           {
/datasets/git/diff-lib.c:444:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                (idx && ((idx->ce_flags & CE_VALID) || ce_skip_worktree(idx)));
                          ^
/datasets/git/diff-lib.c:444:42: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                (idx && ((idx->ce_flags & CE_VALID) || ce_skip_worktree(idx)));
                                                       ^
/datasets/git/./refs/../cache.h:244:31: note: expanded from macro 'ce_skip_worktree'
#define ce_skip_worktree(ce) ((ce)->ce_flags & CE_SKIP_WORKTREE)
                              ^                ~~~~~~~~~~~~~~~~
/datasets/git/diff-lib.c:448:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (cached && idx && ce_stage(idx)) {
                             ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/diff-lib.c:449:25: warning: variable 'pair' is not initialized [cppcoreguidelines-init-variables]
                struct diff_filepair *pair;
                                      ^
                                           = NULL
/datasets/git/diff-lib.c:451:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (tree)
                         ^
                          {
/datasets/git/diff-lib.c:499:39: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                       struct unpack_trees_options *o)
                                                    ^
/datasets/git/diff-lib.c:511:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (tree == o->df_conflict_entry)
                                         ^
                                          {
/datasets/git/diff-lib.c:532:15: warning: variable 'tree' is not initialized [cppcoreguidelines-init-variables]
        struct tree *tree;
                     ^
                          = NULL
/datasets/git/diff-lib.c:533:19: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
        struct tree_desc t;
                         ^
/datasets/git/diff-lib.c:537:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!tree)
                  ^
                   {
/datasets/git/diff-lib.c:540:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&opts, 0, sizeof(opts));
        ^~~~~~
/datasets/git/diff-lib.c:540:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&opts, 0, sizeof(opts));
        ^~~~~~
/datasets/git/diff-lib.c:557:73: warning: parameter name 'mb' is too short, expected at least 3 characters [readability-identifier-length]
void diff_get_merge_base(const struct rev_info *revs, struct object_id *mb)
                                                                        ^
/datasets/git/diff-lib.c:559:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/diff-lib.c:559:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff-lib.c:561:22: warning: variable 'merge_bases' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *merge_bases;
                            ^
                                        = NULL
/datasets/git/diff-lib.c:563:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < revs->pending.nr; i++) {
        ^
/datasets/git/diff-lib.c:565:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (obj->flags)
                               ^
                                {
/datasets/git/diff-lib.c:567:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (obj->type != OBJ_COMMIT)
                                            ^
                                             {
/datasets/git/diff-lib.c:576:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->pending.nr < 1 || revs->pending.nr > 2)
                                                         ^
                                                          {
/datasets/git/diff-lib.c:579:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < revs->pending.nr; i++)
        ^
/datasets/git/diff-lib.c:579:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < revs->pending.nr; i++)
                                              ^
                                               {
/datasets/git/diff-lib.c:584:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (get_oid("HEAD", &oid))
                                          ^
                                           {
/datasets/git/diff-lib.c:591:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!merge_bases)
                         ^
                          {
/datasets/git/diff-lib.c:593:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (merge_bases->next)
                              ^
                               {
/datasets/git/diff-lib.c:603:29: warning: variable 'ent' is not initialized [cppcoreguidelines-init-variables]
        struct object_array_entry *ent;
                                   ^
                                       = NULL
/datasets/git/diff-lib.c:604:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int cached = !!(option & DIFF_INDEX_CACHED);
                        ^
/datasets/git/diff-lib.c:605:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int merge_base = !!(option & DIFF_INDEX_MERGE_BASE);
                            ^
/datasets/git/diff-lib.c:607:14: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
        const char *name;
                    ^
                         = NULL
/datasets/git/diff-lib.c:611:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->pending.nr != 1)
                                  ^
                                   {
/datasets/git/diff-lib.c:627:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (diff_cache(revs, &oid, name, cached))
                                                 ^
                                                  {
/datasets/git/diff-lib.c:628:3: warning: function is not thread safe [concurrency-mt-unsafe]
                exit(128);
                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/diff-lib.c:634:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_performance_leave("diff-index");
        ^
/datasets/git/./trace.h:251:2: note: expanded from macro 'trace_performance_leave'
        do {                                                                \
        ^
/datasets/git/diff-lib.c:647:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (diff_cache(&revs, tree_oid, NULL, 1))
                                                 ^
                                                  {
/datasets/git/diff-lib.c:648:3: warning: function is not thread safe [concurrency-mt-unsafe]
                exit(128);
                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/diff-lib.c:653:43: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int index_differs_from(struct repository *r,
                                          ^
/datasets/git/diff-lib.c:659:11: warning: variable 'has_changes' is not initialized [cppcoreguidelines-init-variables]
        unsigned has_changes;
                 ^
                             = 0
/datasets/git/diff-lib.c:662:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&opt, 0, sizeof(opt));
        ^~~~~~
/datasets/git/diff-lib.c:662:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&opt, 0, sizeof(opt));
        ^~~~~~
/datasets/git/diff-lib.c:667:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags)
                  ^
                   {
/datasets/git/diff-lib.c:676:60: warning: parameter 'opt' is unused [misc-unused-parameters]
static struct strbuf *idiff_prefix_cb(struct diff_options *opt, void *data)
                                                           ^
/datasets/git/diff-lib.c:687:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(&opts, diffopt, sizeof(opts));
        ^~~~~~
/datasets/git/diff-lib.c:687:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(&opts, diffopt, sizeof(opts));
        ^~~~~~
diff-merges.c:8:33: warning: variable 'set_to_default' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static diff_merges_setup_func_t set_to_default = set_separate;
                                ^
diff-merges.c:9:12: warning: variable 'suppress_m_parsing' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int suppress_m_parsing;
           ^
/datasets/git/diff-merges.c:70:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(optarg, "off") || !strcmp(optarg, "none"))
                                                              ^
                                                               {
/datasets/git/diff-merges.c:72:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(optarg, "1") || !strcmp(optarg, "first-parent"))
                                                                    ^
                                                                     {
/datasets/git/diff-merges.c:74:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(optarg, "separate"))
                                        ^
                                         {
/datasets/git/diff-merges.c:76:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(optarg, "c") || !strcmp(optarg, "combined"))
                                                                ^
                                                                 {
/datasets/git/diff-merges.c:78:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(optarg, "cc") || !strcmp(optarg, "dense-combined"))
                                                                       ^
                                                                        {
/datasets/git/diff-merges.c:80:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(optarg, "r") || !strcmp(optarg, "remerge"))
                                                               ^
                                                                {
/datasets/git/diff-merges.c:82:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(optarg, "m") || !strcmp(optarg, "on"))
                                                          ^
                                                           {
/datasets/git/diff-merges.c:91:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!func)
                  ^
                   {
/datasets/git/diff-merges.c:105:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!func)
                  ^
                   {
/datasets/git/diff-merges.c:120:14: warning: variable 'optarg' is not initialized [cppcoreguidelines-init-variables]
        const char *optarg;
                    ^
                           = NULL
/datasets/git/diff-merges.c:139:14: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        } else if ((argcount = parse_long_opt("diff-merges", argv, &optarg))) {
                    ^
/datasets/git/diff-merges.c:139:14: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/diff-merges.c:139:14: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/diff-merges.c:141:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/diff-merges.c:155:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!revs->explicit_diff_merges)
                                        ^
                                         {
/datasets/git/diff-merges.c:157:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->separate_merges)
                                  ^
                                   {
/datasets/git/diff-merges.c:163:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!revs->explicit_diff_merges)
                                        ^
                                         {
/datasets/git/diff-merges.c:169:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!revs->combine_merges)
                                  ^
                                   {
/datasets/git/diff-merges.c:175:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->combine_merges == 0)
                                      ^
                                       {
/datasets/git/diff-merges.c:177:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->separate_merges == 0)
                                       ^
                                        {
/datasets/git/diff-merges.c:179:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->combined_all_paths && !revs->combine_merges)
                                                              ^
                                                               {
/datasets/git/diff-merges.c:181:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->merges_imply_patch)
                                     ^
                                      {
/datasets/git/diff-merges.c:184:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!revs->diffopt.output_format)
                                                 ^
                                                  {
/datasets/git/diff-no-index.c:8:1: warning: #includes are not sorted properly [llvm-include-order]
#include "color.h"
^        ~~~~~~~~~
         "blob.h"
/datasets/git/diff-no-index.c:23:7: warning: variable 'dir' is not initialized [cppcoreguidelines-init-variables]
        DIR *dir;
             ^
                 = NULL
/datasets/git/diff-no-index.c:24:17: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct dirent *e;
                       ^
                         = NULL
/datasets/git/diff-no-index.c:24:17: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff-no-index.c:26:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if (!(dir = opendir(path)))
              ^
/datasets/git/diff-no-index.c:26:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/diff-no-index.c:26:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/diff-no-index.c:26:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(dir = opendir(path)))
                                   ^
                                    {
/datasets/git/diff-no-index.c:29:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((e = readdir_skip_dot_and_dotdot(dir)))
        ^
/datasets/git/diff-no-index.c:29:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'e' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((e = readdir_skip_dot_and_dotdot(dir)))
               ^
/datasets/git/diff-no-index.c:29:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while ((e = readdir_skip_dot_and_dotdot(dir)))
                                                      ^
                                                       {
/datasets/git/diff-no-index.c:45:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/diff-no-index.c:47:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!path || !strcmp(path, "/dev/null"))
                                                ^
                                                 {
/datasets/git/diff-no-index.c:53:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (path == file_from_standard_input)
                                                  ^
                                                   {
/datasets/git/diff-no-index.c:54:11: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                *mode = create_ce_mode(0666);
                        ^
/datasets/git/diff-no-index.c:54:26: warning: 0666 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                *mode = create_ce_mode(0666);
                                       ^
/datasets/git/diff-no-index.c:55:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (lstat(path, &st))
                                  ^
                                   {
/datasets/git/diff-no-index.c:57:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/diff-no-index.c:58:11: warning: narrowing conversion from '__mode_t' (aka 'unsigned int') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                *mode = st.st_mode;
                        ^
/datasets/git/diff-no-index.c:62:54: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static int populate_from_stdin(struct diff_filespec *s)
                                                     ^
/datasets/git/diff-no-index.c:67:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strbuf_read(&buf, 0, 0) < 0)
                                        ^
                                         {
/datasets/git/diff-no-index.c:80:24: warning: variable 's' is not initialized [cppcoreguidelines-init-variables]
        struct diff_filespec *s;
                              ^
                                = NULL
/datasets/git/diff-no-index.c:80:24: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff-no-index.c:82:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!name)
                  ^
                   {
/datasets/git/diff-no-index.c:86:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (name == file_from_standard_input)
                                             ^
                                              {
/datasets/git/diff-no-index.c:91:12: warning: function 'queue_diff' is within a recursive call chain [misc-no-recursion]
static int queue_diff(struct diff_options *o,
           ^
/datasets/git/diff-no-index.c:91:12: note: example recursive call chain, starting from function 'queue_diff'
/datasets/git/diff-no-index.c:176:10: note: Frame #1: function 'queue_diff' calls function 'queue_diff' here:
                        ret = queue_diff(o, n1, n2);
                              ^
/datasets/git/diff-no-index.c:176:10: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/diff-no-index.c:91:12: warning: function 'queue_diff' has cognitive complexity of 45 (threshold 25) [readability-function-cognitive-complexity]
static int queue_diff(struct diff_options *o,
           ^
/datasets/git/diff-no-index.c:96:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (get_mode(name1, &mode1) || get_mode(name2, &mode2))
        ^
/datasets/git/diff-no-index.c:96:30: note: +1
        if (get_mode(name1, &mode1) || get_mode(name2, &mode2))
                                    ^
/datasets/git/diff-no-index.c:99:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mode1 && mode2 && S_ISDIR(mode1) != S_ISDIR(mode2)) {
        ^
/datasets/git/diff-no-index.c:99:21: note: +1
        if (mode1 && mode2 && S_ISDIR(mode1) != S_ISDIR(mode2)) {
                           ^
/datasets/git/diff-no-index.c:102:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (S_ISDIR(mode1)) {
                ^
/datasets/git/diff-no-index.c:108:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/diff-no-index.c:121:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (S_ISDIR(mode1) || S_ISDIR(mode2)) {
        ^
/datasets/git/diff-no-index.c:121:21: note: +1
        if (S_ISDIR(mode1) || S_ISDIR(mode2)) {
                           ^
/datasets/git/diff-no-index.c:129:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (name1 && read_directory_contents(name1, &p1))
                ^
/datasets/git/diff-no-index.c:129:13: note: +1
                if (name1 && read_directory_contents(name1, &p1))
                          ^
/datasets/git/diff-no-index.c:131:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (name2 && read_directory_contents(name2, &p2)) {
                ^
/datasets/git/diff-no-index.c:131:13: note: +1
                if (name2 && read_directory_contents(name2, &p2)) {
                          ^
/datasets/git/diff-no-index.c:136:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (name1) {
                ^
/datasets/git/diff-no-index.c:142:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (name2) {
                ^
/datasets/git/diff-no-index.c:148:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i1 = i2 = 0; !ret && (i1 < p1.nr || i2 < p2.nr); ) {
                ^
/datasets/git/diff-no-index.c:148:26: note: +1
                for (i1 = i2 = 0; !ret && (i1 < p1.nr || i2 < p2.nr); ) {
                                       ^
/datasets/git/diff-no-index.c:148:41: note: +1
                for (i1 = i2 = 0; !ret && (i1 < p1.nr || i2 < p2.nr); ) {
                                                      ^
/datasets/git/diff-no-index.c:155:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (i1 == p1.nr)
                        ^
/datasets/git/diff-no-index.c:157:9: note: +1, nesting level increased to 3
                        else if (i2 == p2.nr)
                             ^
/datasets/git/diff-no-index.c:159:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/diff-no-index.c:162:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (comp > 0)
                        ^
/datasets/git/diff-no-index.c:164:4: note: +1, nesting level increased to 3
                        else {
                        ^
/datasets/git/diff-no-index.c:169:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (comp < 0)
                        ^
/datasets/git/diff-no-index.c:171:4: note: +1, nesting level increased to 3
                        else {
                        ^
/datasets/git/diff-no-index.c:184:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/diff-no-index.c:187:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (o->flags.reverse_diff) {
                ^
/datasets/git/diff-no-index.c:188:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        SWAP(mode1, mode2);
                        ^
/datasets/git/./git-compat-util.h:759:20: note: expanded from macro 'SWAP'
#define SWAP(a, b) do {                                         \
                   ^
/datasets/git/diff-no-index.c:189:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        SWAP(name1, name2);
                        ^
/datasets/git/./git-compat-util.h:759:20: note: expanded from macro 'SWAP'
#define SWAP(a, b) do {                                         \
                   ^
/datasets/git/diff-no-index.c:91:44: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static int queue_diff(struct diff_options *o,
                                           ^
/datasets/git/diff-no-index.c:94:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int mode1 = 0, mode2 = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff-no-index.c:96:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_mode(name1, &mode1) || get_mode(name2, &mode2))
                                                               ^
                                                                {
/datasets/git/diff-no-index.c:100:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                struct diff_filespec *d1, *d2;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff-no-index.c:100:25: warning: variable 'd1' is not initialized [cppcoreguidelines-init-variables]
                struct diff_filespec *d1, *d2;
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff-no-index.c:100:25: warning: variable name 'd1' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff-no-index.c:100:30: warning: variable 'd2' is not initialized [cppcoreguidelines-init-variables]
                struct diff_filespec *d1, *d2;
                                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff-no-index.c:100:30: warning: variable name 'd2' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff-no-index.c:124:22: warning: variable name 'p1' is too short, expected at least 3 characters [readability-identifier-length]
                struct string_list p1 = STRING_LIST_INIT_DUP;
                                   ^
/datasets/git/diff-no-index.c:125:22: warning: variable name 'p2' is too short, expected at least 3 characters [readability-identifier-length]
                struct string_list p2 = STRING_LIST_INIT_DUP;
                                   ^
/datasets/git/diff-no-index.c:126:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int i1, i2, ret = 0;
                ^~~~~~~~~~~~~~~~~~~~
/datasets/git/diff-no-index.c:126:7: warning: variable 'i1' is not initialized [cppcoreguidelines-init-variables]
                int i1, i2, ret = 0;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff-no-index.c:126:7: warning: variable name 'i1' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff-no-index.c:126:11: warning: variable 'i2' is not initialized [cppcoreguidelines-init-variables]
                int i1, i2, ret = 0;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff-no-index.c:126:11: warning: variable name 'i2' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff-no-index.c:127:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                size_t len1 = 0, len2 = 0;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff-no-index.c:129:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (name1 && read_directory_contents(name1, &p1))
                                                                 ^
                                                                  {
/datasets/git/diff-no-index.c:148:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i1 = i2 = 0; !ret && (i1 < p1.nr || i2 < p2.nr); ) {
                ^
/datasets/git/diff-no-index.c:148:21: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ret' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i1 = i2 = 0; !ret && (i1 < p1.nr || i2 < p2.nr); ) {
                                  ^
/datasets/git/diff-no-index.c:149:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        const char *n1, *n2;
                        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/diff-no-index.c:149:16: warning: variable 'n1' is not initialized [cppcoreguidelines-init-variables]
                        const char *n1, *n2;
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff-no-index.c:149:16: warning: variable name 'n1' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff-no-index.c:149:21: warning: variable 'n2' is not initialized [cppcoreguidelines-init-variables]
                        const char *n1, *n2;
                                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff-no-index.c:149:21: warning: variable name 'n2' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff-no-index.c:150:8: warning: variable 'comp' is not initialized [cppcoreguidelines-init-variables]
                        int comp;
                            ^
                                 = 0
/datasets/git/diff-no-index.c:155:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (i1 == p1.nr)
                                        ^
                                         {
/datasets/git/diff-no-index.c:157:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (i2 == p2.nr)
                                             ^
                                              {
/datasets/git/diff-no-index.c:159:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/diff-no-index.c:162:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (comp > 0)
                                     ^
                                      {
/datasets/git/diff-no-index.c:169:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (comp < 0)
                                     ^
                                      {
/datasets/git/diff-no-index.c:184:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else {
          ^~~~~~
/datasets/git/diff-no-index.c:185:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                struct diff_filespec *d1, *d2;
                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff-no-index.c:185:25: warning: variable 'd1' is not initialized [cppcoreguidelines-init-variables]
                struct diff_filespec *d1, *d2;
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff-no-index.c:185:25: warning: variable name 'd1' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff-no-index.c:185:30: warning: variable 'd2' is not initialized [cppcoreguidelines-init-variables]
                struct diff_filespec *d1, *d2;
                                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff-no-index.c:185:30: warning: variable name 'd2' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff-no-index.c:188:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        SWAP(mode1, mode2);
                        ^
/datasets/git/./git-compat-util.h:759:20: note: expanded from macro 'SWAP'
#define SWAP(a, b) do {                                         \
                   ^
/datasets/git/diff-no-index.c:188:4: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        SWAP(mode1, mode2);
                        ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/diff-no-index.c:188:4: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                        SWAP(mode1, mode2);
                        ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/diff-no-index.c:189:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        SWAP(name1, name2);
                        ^
/datasets/git/./git-compat-util.h:759:20: note: expanded from macro 'SWAP'
#define SWAP(a, b) do {                                         \
                   ^
/datasets/git/diff-no-index.c:189:4: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        SWAP(name1, name2);
                        ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/diff-no-index.c:189:4: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                        SWAP(name1, name2);
                        ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/diff-no-index.c:200:50: warning: 2 adjacent parameters of 'append_basename' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void append_basename(struct strbuf *path, const char *dir, const char *file)
                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff-no-index.c:200:62: note: the first parameter in the range is 'dir'
static void append_basename(struct strbuf *path, const char *dir, const char *file)
                                                             ^~~
/datasets/git/diff-no-index.c:200:79: note: the last parameter in the range is 'file'
static void append_basename(struct strbuf *path, const char *dir, const char *file)
                                                                              ^~~~
/datasets/git/diff-no-index.c:205:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (path->len && path->buf[path->len - 1] == '/')
        ^
/datasets/git/diff-no-index.c:205:9: warning: backward branch (while loop) is ID-dependent due to member reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (path->len && path->buf[path->len - 1] == '/')
               ^
/datasets/git/diff-no-index.c:205:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (path->len && path->buf[path->len - 1] == '/')
                                                            ^
                                                             {
/datasets/git/diff-no-index.c:218:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned int isdir0, isdir1;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff-no-index.c:218:15: warning: variable 'isdir0' is not initialized [cppcoreguidelines-init-variables]
        unsigned int isdir0, isdir1;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff-no-index.c:218:23: warning: variable 'isdir1' is not initialized [cppcoreguidelines-init-variables]
        unsigned int isdir0, isdir1;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff-no-index.c:221:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            path[1] == file_from_standard_input)
                                                ^
                                                 {
/datasets/git/diff-no-index.c:225:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (isdir0 == isdir1)
                             ^
                              {
/datasets/git/diff-no-index.c:242:5: warning: 2 adjacent parameters of 'diff_no_index' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                  int implicit_no_index,
                  ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff-no-index.c:242:9: note: the first parameter in the range is 'implicit_no_index'
                  int implicit_no_index,
                      ^~~~~~~~~~~~~~~~~
/datasets/git/diff-no-index.c:243:9: note: the last parameter in the range is 'argc'
                  int argc, const char **argv)
                      ^~~~
/datasets/git/diff-no-index.c:245:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, no_index;
        ^~~~~~~~~~~~~~~~
/datasets/git/diff-no-index.c:245:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, no_index;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff-no-index.c:245:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff-no-index.c:245:9: warning: variable 'no_index' is not initialized [cppcoreguidelines-init-variables]
        int i, no_index;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff-no-index.c:252:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL_F(0, "no-index", &no_index, "",
                ^
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/diff-no-index.c:253:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                           PARSE_OPT_NONEG | PARSE_OPT_HIDDEN),
                           ^
/datasets/git/./parse-options.h:167:66: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                                                 ^
/datasets/git/./parse-options.h:166:32: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                                                  ^
/datasets/git/diff-no-index.c:256:17: warning: variable 'options' is not initialized [cppcoreguidelines-init-variables]
        struct option *options;
                       ^
                               = NULL
/datasets/git/diff-no-index.c:263:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (implicit_no_index)
                                      ^
                                       {
/datasets/git/diff-no-index.c:268:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(options);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/diff-no-index.c:269:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < 2; i++) {
        ^
/datasets/git/diff-no-index.c:270:15: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                const char *p = argv[i];
                            ^
/datasets/git/diff-no-index.c:271:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(p, "-"))
                                    ^
                                     {
/datasets/git/diff-no-index.c:277:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (prefix)
                                ^
                                 {
/datasets/git/diff-no-index.c:285:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!revs->diffopt.output_format)
                                         ^
                                          {
/datasets/git/diff-no-index.c:299:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (queue_diff(&revs->diffopt, paths[0], paths[1]))
                                                           ^
                                                            {
/datasets/git/diff-no-index.c:312:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ARRAY_SIZE(to_free); i++)
        ^
/datasets/git/diff-no-index.c:312:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < ARRAY_SIZE(to_free); i++)
                                                 ^
                                                  {
/datasets/git/diff.c:5:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "attr.h"
/datasets/git/diff.c:39:12: warning: variable 'diff_detect_rename_default' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int diff_detect_rename_default;
           ^
/datasets/git/diff.c:40:12: warning: variable 'diff_indent_heuristic' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int diff_indent_heuristic = 1;
           ^
/datasets/git/diff.c:41:12: warning: variable 'diff_rename_limit_default' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int diff_rename_limit_default = 1000;
           ^
/datasets/git/diff.c:41:40: warning: 1000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
static int diff_rename_limit_default = 1000;
                                       ^
/datasets/git/diff.c:42:12: warning: variable 'diff_suppress_blank_empty' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int diff_suppress_blank_empty;
           ^
/datasets/git/diff.c:43:12: warning: variable 'diff_use_color_default' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int diff_use_color_default = -1;
           ^
/datasets/git/diff.c:44:12: warning: variable 'diff_color_moved_default' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int diff_color_moved_default;
           ^
/datasets/git/diff.c:45:12: warning: variable 'diff_color_moved_ws_default' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int diff_color_moved_ws_default;
           ^
/datasets/git/diff.c:46:12: warning: variable 'diff_context_default' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int diff_context_default = 3;
           ^
/datasets/git/diff.c:47:12: warning: variable 'diff_interhunk_context_default' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int diff_interhunk_context_default;
           ^
/datasets/git/diff.c:48:20: warning: variable 'diff_word_regex_cfg' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *diff_word_regex_cfg;
                   ^
/datasets/git/diff.c:49:20: warning: variable 'external_diff_cmd_cfg' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *external_diff_cmd_cfg;
                   ^
/datasets/git/diff.c:50:20: warning: variable 'diff_order_file_cfg' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *diff_order_file_cfg;
                   ^
/datasets/git/diff.c:51:5: warning: variable 'diff_auto_refresh_index' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
int diff_auto_refresh_index = 1;
    ^
/datasets/git/diff.c:52:12: warning: variable 'diff_mnemonic_prefix' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int diff_mnemonic_prefix;
           ^
/datasets/git/diff.c:53:12: warning: variable 'diff_no_prefix' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int diff_no_prefix;
           ^
/datasets/git/diff.c:54:12: warning: variable 'diff_relative' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int diff_relative;
           ^
/datasets/git/diff.c:55:12: warning: variable 'diff_stat_graph_width' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int diff_stat_graph_width;
           ^
/datasets/git/diff.c:56:12: warning: variable 'diff_dirstat_permille_default' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int diff_dirstat_permille_default = 30;
           ^
/datasets/git/diff.c:56:44: warning: 30 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
static int diff_dirstat_permille_default = 30;
                                           ^
/datasets/git/diff.c:57:28: warning: variable 'default_diff_options' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct diff_options default_diff_options;
                           ^
/datasets/git/diff.c:58:13: warning: variable 'diff_algorithm' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static long diff_algorithm;
            ^
/datasets/git/diff.c:59:17: warning: variable 'ws_error_highlight_default' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned ws_error_highlight_default = WSEH_NEW;
                ^
/datasets/git/diff.c:59:46: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
static unsigned ws_error_highlight_default = WSEH_NEW;
                                             ^
/datasets/git/./diff.h:328:19: note: expanded from macro 'WSEH_NEW'
#define WSEH_NEW (1<<12)
                  ^
/datasets/git/diff.c:61:13: warning: variable 'diff_colors' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char diff_colors[][COLOR_MAXLEN] = {
            ^
/datasets/git/diff.c:87:20: warning: variable 'color_diff_slots' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *color_diff_slots[] = {
                   ^
/datasets/git/diff.c:112:1: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
define_list_config_array_extra(color_diff_slots, {"plain"});
^
/datasets/git/./help.h:73:2: note: expanded from macro 'define_list_config_array_extra'
        for (i = 0; i < ARRAY_SIZE(extra); i++)                         \
        ^
/datasets/git/diff.c:112:1: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
define_list_config_array_extra(color_diff_slots, {"plain"});
^
/datasets/git/./help.h:71:6: note: expanded from macro 'define_list_config_array_extra'
        int i;                                                          \
            ^
/datasets/git/diff.c:116:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcasecmp(var, "plain"))
                                      ^
                                       {
/datasets/git/diff.c:127:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/diff.c:127:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:129:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*params_copy)
                         ^
                          {
/datasets/git/diff.c:132:15: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                const char *p = params.items[i].string;
                            ^
/datasets/git/diff.c:146:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                } else if (isdigit(*p)) {
                           ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/diff.c:147:10: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
                        char *end;
                              ^
                                  = NULL
/datasets/git/diff.c:148:19: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        int permille = strtoul(p, &end, 10) * 10;
                                       ^
/datasets/git/diff.c:148:36: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        int permille = strtoul(p, &end, 10) * 10;
                                                        ^
/datasets/git/diff.c:148:42: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        int permille = strtoul(p, &end, 10) * 10;
                                                              ^
/datasets/git/diff.c:149:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (*end == '.' && isdigit(*++end)) {
                                           ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/diff.c:153:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                while (isdigit(*++end))
                                ^
/datasets/git/diff.c:153:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                while (isdigit(*++end))
                                       ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/diff.c:153:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                while (isdigit(*++end))
                                                       ^
                                                        {
/datasets/git/diff.c:156:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!*end)
                                  ^
                                   {
/datasets/git/diff.c:176:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(value, "log"))
                                  ^
                                   {
/datasets/git/diff.c:178:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(value, "short"))
                                         ^
                                          {
/datasets/git/diff.c:180:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(value, "diff"))
                                        ^
                                         {
/datasets/git/diff.c:186:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/diff.c:193:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!value)
                   ^
                    {
/datasets/git/diff.c:195:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcasecmp(value, "copies") || !strcasecmp(value, "copy"))
                                                                       ^
                                                                        {
/datasets/git/diff.c:202:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!value)
                   ^
                    {
/datasets/git/diff.c:204:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (!strcasecmp(value, "myers") || !strcasecmp(value, "default"))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:204:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcasecmp(value, "myers") || !strcasecmp(value, "default"))
                                                                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:206:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcasecmp(value, "minimal"))
                                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:207:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                return XDF_NEED_MINIMAL;
                       ^
/datasets/git/./xdiff/xdiff.h:31:27: note: expanded from macro 'XDF_NEED_MINIMAL'
#define XDF_NEED_MINIMAL (1 << 0)
                          ^
/datasets/git/diff.c:208:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcasecmp(value, "patience"))
                                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:209:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                return XDF_PATIENCE_DIFF;
                       ^
/datasets/git/./xdiff/xdiff.h:44:28: note: expanded from macro 'XDF_PATIENCE_DIFF'
#define XDF_PATIENCE_DIFF (1 << 14)
                           ^
/datasets/git/diff.c:210:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcasecmp(value, "histogram"))
                                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:211:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                return XDF_HISTOGRAM_DIFF;
                       ^
/datasets/git/./xdiff/xdiff.h:45:29: note: expanded from macro 'XDF_HISTOGRAM_DIFF'
#define XDF_HISTOGRAM_DIFF (1 << 15)
                            ^
/datasets/git/diff.c:221:14: warning: variable 'rest' is not initialized [cppcoreguidelines-init-variables]
        const char *rest;
                    ^
                         = NULL
/datasets/git/diff.c:234:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*arg) {
        ^
/datasets/git/diff.c:235:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (parse_one_token(&arg, "none"))
                                                  ^
                                                   {
/datasets/git/diff.c:237:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (parse_one_token(&arg, "default"))
                                                          ^
                                                           {
/datasets/git/diff.c:238:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        val = WSEH_NEW;
                              ^
/datasets/git/./diff.h:328:19: note: expanded from macro 'WSEH_NEW'
#define WSEH_NEW (1<<12)
                  ^
/datasets/git/diff.c:239:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (parse_one_token(&arg, "all"))
                                                      ^
                                                       {
/datasets/git/diff.c:240:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        val = WSEH_NEW | WSEH_OLD | WSEH_CONTEXT;
                              ^
/datasets/git/./diff.h:328:18: note: expanded from macro 'WSEH_NEW'
#define WSEH_NEW (1<<12)
                 ^
/datasets/git/diff.c:240:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        val = WSEH_NEW | WSEH_OLD | WSEH_CONTEXT;
                                         ^
/datasets/git/./diff.h:330:19: note: expanded from macro 'WSEH_OLD'
#define WSEH_OLD (1<<14)
                  ^
/datasets/git/diff.c:240:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        val = WSEH_NEW | WSEH_OLD | WSEH_CONTEXT;
                                                    ^
/datasets/git/./diff.h:329:23: note: expanded from macro 'WSEH_CONTEXT'
#define WSEH_CONTEXT (1<<13)
                      ^
/datasets/git/diff.c:241:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (parse_one_token(&arg, "new"))
                                                      ^
                                                       {
/datasets/git/diff.c:242:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        val |= WSEH_NEW;
                        ^
/datasets/git/diff.c:242:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        val |= WSEH_NEW;
                               ^
/datasets/git/./diff.h:328:19: note: expanded from macro 'WSEH_NEW'
#define WSEH_NEW (1<<12)
                  ^
/datasets/git/diff.c:243:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (parse_one_token(&arg, "old"))
                                                      ^
                                                       {
/datasets/git/diff.c:244:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        val |= WSEH_OLD;
                        ^
/datasets/git/diff.c:244:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        val |= WSEH_OLD;
                               ^
/datasets/git/./diff.h:330:19: note: expanded from macro 'WSEH_OLD'
#define WSEH_OLD (1<<14)
                  ^
/datasets/git/diff.c:245:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (parse_one_token(&arg, "context"))
                                                          ^
                                                           {
/datasets/git/diff.c:246:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        val |= WSEH_CONTEXT;
                        ^
/datasets/git/diff.c:246:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        val |= WSEH_CONTEXT;
                               ^
/datasets/git/./diff.h:329:23: note: expanded from macro 'WSEH_CONTEXT'
#define WSEH_CONTEXT (1<<13)
                      ^
/datasets/git/diff.c:250:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*arg)
                         ^
                          {
/datasets/git/diff.c:253:9: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return val;
               ^
/datasets/git/diff.c:268:16: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
                              void *cb UNUSED)
                                    ^
/datasets/git/diff.c:270:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(var, "diff.indentheuristic"))
                                                 ^
                                                  {
/datasets/git/diff.c:286:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(arg, "no"))
                               ^
                                {
/datasets/git/diff.c:288:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (!strcmp(arg, "plain"))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:288:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(arg, "plain"))
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:290:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(arg, "blocks"))
                                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:292:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(arg, "zebra"))
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:293:3: warning: repeated branch in conditional chain [bugprone-branch-clone]
                return COLOR_MOVED_ZEBRA;
                ^
/datasets/git/diff.c:293:27: note: end of the original
                return COLOR_MOVED_ZEBRA;
                                        ^
/datasets/git/diff.c:295:3: note: clone 1 starts here
                return COLOR_MOVED_DEFAULT;
                ^
/datasets/git/diff.c:294:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(arg, "default"))
                                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:296:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(arg, "dimmed-zebra"))
                                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:297:3: warning: repeated branch in conditional chain [bugprone-branch-clone]
                return COLOR_MOVED_ZEBRA_DIM;
                ^
/datasets/git/diff.c:297:31: note: end of the original
                return COLOR_MOVED_ZEBRA_DIM;
                                            ^
/datasets/git/diff.c:299:3: note: clone 1 starts here
                return COLOR_MOVED_ZEBRA_DIM;
                ^
/datasets/git/diff.c:298:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(arg, "dimmed_zebra"))
                                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:300:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:307:21: warning: variable name 'l' is too short, expected at least 3 characters [readability-identifier-length]
        struct string_list l = STRING_LIST_INIT_DUP;
                           ^
/datasets/git/diff.c:308:27: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *i;
                                 ^
                                   = NULL
/datasets/git/diff.c:308:27: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:312:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(i, &l) {
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/diff.c:312:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(i, &l) {
                                  ^
/datasets/git/diff.c:313:17: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                struct strbuf sb = STRBUF_INIT;
                              ^
/datasets/git/diff.c:317:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(sb.buf, "no"))
                                          ^
                                           {
/datasets/git/diff.c:319:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(sb.buf, "ignore-space-change"))
                                                                ^
                                                                 {
/datasets/git/diff.c:320:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ret |= XDF_IGNORE_WHITESPACE_CHANGE;
                        ^~~
/datasets/git/diff.c:320:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ret |= XDF_IGNORE_WHITESPACE_CHANGE;
                               ^
/datasets/git/./xdiff/xdiff.h:34:39: note: expanded from macro 'XDF_IGNORE_WHITESPACE_CHANGE'
#define XDF_IGNORE_WHITESPACE_CHANGE (1 << 2)
                                      ^
/datasets/git/diff.c:321:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(sb.buf, "ignore-space-at-eol"))
                                                                ^
                                                                 {
/datasets/git/diff.c:322:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ret |= XDF_IGNORE_WHITESPACE_AT_EOL;
                        ^~~
/datasets/git/diff.c:322:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ret |= XDF_IGNORE_WHITESPACE_AT_EOL;
                               ^
/datasets/git/./xdiff/xdiff.h:35:39: note: expanded from macro 'XDF_IGNORE_WHITESPACE_AT_EOL'
#define XDF_IGNORE_WHITESPACE_AT_EOL (1 << 3)
                                      ^
/datasets/git/diff.c:323:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(sb.buf, "ignore-all-space"))
                                                             ^
                                                              {
/datasets/git/diff.c:324:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ret |= XDF_IGNORE_WHITESPACE;
                        ^~~
/datasets/git/diff.c:324:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ret |= XDF_IGNORE_WHITESPACE;
                               ^
/datasets/git/./xdiff/xdiff.h:33:32: note: expanded from macro 'XDF_IGNORE_WHITESPACE'
#define XDF_IGNORE_WHITESPACE (1 << 1)
                               ^
/datasets/git/diff.c:325:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(sb.buf, "allow-indentation-change"))
                                                                     ^
                                                                      {
/datasets/git/diff.c:326:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ret |= COLOR_MOVED_WS_ALLOW_INDENTATION_CHANGE;
                        ^~~
/datasets/git/diff.c:326:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ret |= COLOR_MOVED_WS_ALLOW_INDENTATION_CHANGE;
                               ^
/datasets/git/./diff.h:392:51: note: expanded from macro 'COLOR_MOVED_WS_ALLOW_INDENTATION_CHANGE'
        #define COLOR_MOVED_WS_ALLOW_INDENTATION_CHANGE (1<<5)
                                                         ^
/datasets/git/diff.c:328:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ret |= COLOR_MOVED_WS_ERROR;
                        ^~~
/datasets/git/diff.c:328:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ret |= COLOR_MOVED_WS_ERROR;
                               ^
/datasets/git/./diff.h:393:32: note: expanded from macro 'COLOR_MOVED_WS_ERROR'
        #define COLOR_MOVED_WS_ERROR (1<<0)
                                      ^
/datasets/git/diff.c:335:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((ret & COLOR_MOVED_WS_ALLOW_INDENTATION_CHANGE) &&
             ^~~
/datasets/git/diff.c:335:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((ret & COLOR_MOVED_WS_ALLOW_INDENTATION_CHANGE) &&
                   ^
/datasets/git/./diff.h:392:51: note: expanded from macro 'COLOR_MOVED_WS_ALLOW_INDENTATION_CHANGE'
        #define COLOR_MOVED_WS_ALLOW_INDENTATION_CHANGE (1<<5)
                                                         ^
/datasets/git/diff.c:336:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            (ret & XDF_WHITESPACE_FLAGS)) {
             ^~~
/datasets/git/diff.c:336:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            (ret & XDF_WHITESPACE_FLAGS)) {
                   ^
/datasets/git/./xdiff/xdiff.h:37:31: note: expanded from macro 'XDF_WHITESPACE_FLAGS'
#define XDF_WHITESPACE_FLAGS (XDF_IGNORE_WHITESPACE | \
                              ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./xdiff/xdiff.h:33:31: note: expanded from macro 'XDF_IGNORE_WHITESPACE'
#define XDF_IGNORE_WHITESPACE (1 << 1)
                              ^
/datasets/git/diff.c:338:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ret |= COLOR_MOVED_WS_ERROR;
                ^~~
/datasets/git/diff.c:338:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ret |= COLOR_MOVED_WS_ERROR;
                       ^
/datasets/git/./diff.h:393:32: note: expanded from macro 'COLOR_MOVED_WS_ERROR'
        #define COLOR_MOVED_WS_ERROR (1<<0)
                                      ^
/datasets/git/diff.c:346:5: warning: function 'git_diff_ui_config' has cognitive complexity of 31 (threshold 25) [readability-function-cognitive-complexity]
int git_diff_ui_config(const char *var, const char *value, void *cb)
    ^
/datasets/git/diff.c:348:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "diff.color") || !strcmp(var, "color.diff")) {
        ^
/datasets/git/diff.c:348:33: note: +1
        if (!strcmp(var, "diff.color") || !strcmp(var, "color.diff")) {
                                       ^
/datasets/git/diff.c:352:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "diff.colormoved")) {
        ^
/datasets/git/diff.c:354:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (cm < 0)
                ^
/datasets/git/diff.c:359:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "diff.colormovedws")) {
        ^
/datasets/git/diff.c:361:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (cm & COLOR_MOVED_WS_ERROR)
                ^
/datasets/git/diff.c:366:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "diff.context")) {
        ^
/datasets/git/diff.c:368:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (diff_context_default < 0)
                ^
/datasets/git/diff.c:372:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "diff.interhunkcontext")) {
        ^
/datasets/git/diff.c:374:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (diff_interhunk_context_default < 0)
                ^
/datasets/git/diff.c:378:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "diff.renames")) {
        ^
/datasets/git/diff.c:382:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "diff.autorefreshindex")) {
        ^
/datasets/git/diff.c:386:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "diff.mnemonicprefix")) {
        ^
/datasets/git/diff.c:390:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "diff.noprefix")) {
        ^
/datasets/git/diff.c:394:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "diff.relative")) {
        ^
/datasets/git/diff.c:398:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "diff.statgraphwidth")) {
        ^
/datasets/git/diff.c:402:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "diff.external"))
        ^
/datasets/git/diff.c:404:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "diff.wordregex"))
        ^
/datasets/git/diff.c:406:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "diff.orderfile"))
        ^
/datasets/git/diff.c:409:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "diff.ignoresubmodules"))
        ^
/datasets/git/diff.c:412:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "diff.submodule")) {
        ^
/datasets/git/diff.c:413:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (parse_submodule_params(&default_diff_options, value))
                ^
/datasets/git/diff.c:419:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "diff.algorithm")) {
        ^
/datasets/git/diff.c:421:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (diff_algorithm < 0)
                ^
/datasets/git/diff.c:426:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (git_color_config(var, value, cb) < 0)
        ^
/datasets/git/diff.c:346:66: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
int git_diff_ui_config(const char *var, const char *value, void *cb)
                                                                 ^
/datasets/git/diff.c:353:7: warning: variable name 'cm' is too short, expected at least 3 characters [readability-identifier-length]
                int cm = parse_color_moved(value);
                    ^
/datasets/git/diff.c:354:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cm < 0)
                           ^
                            {
/datasets/git/diff.c:360:12: warning: variable name 'cm' is too short, expected at least 3 characters [readability-identifier-length]
                unsigned cm = parse_color_moved_ws(value);
                         ^
/datasets/git/diff.c:361:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (cm & COLOR_MOVED_WS_ERROR)
                    ^
/datasets/git/diff.c:361:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (cm & COLOR_MOVED_WS_ERROR)
                         ^
/datasets/git/./diff.h:393:32: note: expanded from macro 'COLOR_MOVED_WS_ERROR'
        #define COLOR_MOVED_WS_ERROR (1<<0)
                                      ^
/datasets/git/diff.c:361:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cm & COLOR_MOVED_WS_ERROR)
                                              ^
                                               {
/datasets/git/diff.c:363:33: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                diff_color_moved_ws_default = cm;
                                              ^
/datasets/git/diff.c:368:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (diff_context_default < 0)
                                             ^
                                              {
/datasets/git/diff.c:374:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (diff_interhunk_context_default < 0)
                                                       ^
                                                        {
/datasets/git/diff.c:402:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(var, "diff.external"))
                                          ^
                                           {
/datasets/git/diff.c:404:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(var, "diff.wordregex"))
                                           ^
                                            {
/datasets/git/diff.c:406:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(var, "diff.orderfile"))
                                           ^
                                            {
/datasets/git/diff.c:409:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(var, "diff.ignoresubmodules"))
                                                  ^
                                                   {
/datasets/git/diff.c:413:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (parse_submodule_params(&default_diff_options, value))
                                                                         ^
                                                                          {
/datasets/git/diff.c:421:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (diff_algorithm < 0)
                                       ^
                                        {
/datasets/git/diff.c:426:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (git_color_config(var, value, cb) < 0)
                                                 ^
                                                  {
/datasets/git/diff.c:432:69: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
int git_diff_basic_config(const char *var, const char *value, void *cb)
                                                                    ^
/datasets/git/diff.c:434:14: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
        const char *name;
                    ^
                         = NULL
/datasets/git/diff.c:441:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (userdiff_config(var, value) < 0)
                                            ^
                                             {
/datasets/git/diff.c:447:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (slot < 0)
                             ^
                              {
/datasets/git/diff.c:449:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
                            {
/datasets/git/diff.c:456:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (val < 0)
                            ^
                             {
/datasets/git/diff.c:473:67: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (parse_dirstat_params(&default_diff_options, value, &errmsg))
                                                                                ^
                                                                                 {
/datasets/git/diff.c:481:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (git_diff_heuristic_config(var, value, cb) < 0)
                                                          ^
                                                           {
/datasets/git/diff.c:489:17: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int need_one = quote_c_style(one, NULL, NULL, CQUOTE_NODQ);
                       ^
/datasets/git/diff.c:490:17: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int need_two = quote_c_style(two, NULL, NULL, CQUOTE_NODQ);
                       ^
/datasets/git/diff.c:510:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (done_preparing)
                           ^
                            {
/datasets/git/diff.c:512:38: warning: function is not thread safe [concurrency-mt-unsafe]
        external_diff_cmd = xstrdup_or_null(getenv("GIT_EXTERNAL_DIFF"));
                                            ^
/datasets/git/diff.c:513:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!external_diff_cmd)
                               ^
                                {
/datasets/git/diff.c:524:15: warning: accessing fields in struct 'diff_tempfile' is inefficient due to padding; only needs 91 bytes but is using 96 bytes [altera-struct-pack-align]
static struct diff_tempfile {
              ^
/datasets/git/diff.c:524:15: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'diff_tempfile'
/datasets/git/diff.c:524:15: warning: accessing fields in struct 'diff_tempfile' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
static struct diff_tempfile {
              ^
/datasets/git/diff.c:524:15: note: use "__attribute__((aligned(128)))" to align struct 'diff_tempfile' to 128 bytes
/datasets/git/diff.c:532:12: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        char mode[10];
                  ^
/datasets/git/diff.c:539:3: warning: variable 'diff_temp' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} diff_temp[2];
  ^
/datasets/git/diff.c:541:8: warning: accessing fields in struct 'emit_callback' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct emit_callback {
       ^
/datasets/git/diff.c:541:8: note: use "__attribute__((aligned(64)))" to align struct 'emit_callback' to 64 bytes
/datasets/git/diff.c:556:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int count, ch, completely_empty = 1, nl_just_seen = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:556:6: warning: variable 'count' is not initialized [cppcoreguidelines-init-variables]
        int count, ch, completely_empty = 1, nl_just_seen = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:556:13: warning: variable 'ch' is not initialized [cppcoreguidelines-init-variables]
        int count, ch, completely_empty = 1, nl_just_seen = 0;
                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:556:13: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:558:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (0 < size--) {
        ^
/datasets/git/diff.c:559:8: warning: 'signed char' to 'int' conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse,cert-str34-c]
                ch = *data++;
                     ^
/datasets/git/diff.c:570:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (completely_empty)
                             ^
                              {
/datasets/git/diff.c:572:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!nl_just_seen)
                          ^
                           {
/datasets/git/diff.c:577:43: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int fill_mmfile(struct repository *r, mmfile_t *mf,
                                          ^
/datasets/git/diff.c:577:56: warning: parameter name 'mf' is too short, expected at least 3 characters [readability-identifier-length]
static int fill_mmfile(struct repository *r, mmfile_t *mf,
                                                       ^
/datasets/git/diff.c:585:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (diff_populate_filespec(r, one, NULL))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:585:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (diff_populate_filespec(r, one, NULL))
                                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:589:13: warning: narrowing conversion from 'unsigned long' to signed type 'long' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        mf->size = one->size;
                   ^
/datasets/git/diff.c:594:60: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static unsigned long diff_filespec_size(struct repository *r,
                                                           ^
/datasets/git/diff.c:601:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!DIFF_FILE_VALID(one))
                                  ^
                                   {
/datasets/git/diff.c:607:43: warning: parameter name 'mf' is too short, expected at least 3 characters [readability-identifier-length]
static int count_trailing_blank(mmfile_t *mf, unsigned ws_rule)
                                          ^
/datasets/git/diff.c:613:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!size)
                  ^
                   {
/datasets/git/diff.c:616:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*ptr != '\n')
                         ^
                          {
/datasets/git/diff.c:618:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/diff.c:620:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'ptr' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (mf->ptr < ptr) {
               ^
/datasets/git/diff.c:621:9: warning: variable 'prev_eol' is not initialized [cppcoreguidelines-init-variables]
                char *prev_eol;
                      ^
                               = NULL
/datasets/git/diff.c:622:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (prev_eol = ptr; mf->ptr <= prev_eol; prev_eol--)
                ^
/datasets/git/diff.c:622:24: warning: backward branch (for loop) is ID-dependent due to variable reference to 'prev_eol' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (prev_eol = ptr; mf->ptr <= prev_eol; prev_eol--)
                                     ^
/datasets/git/diff.c:622:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (prev_eol = ptr; mf->ptr <= prev_eol; prev_eol--)
                                                                     ^
                                                                      {
/datasets/git/diff.c:623:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (*prev_eol == '\n')
                                              ^
                                               {
/datasets/git/diff.c:625:36: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                if (!ws_blank_line(prev_eol + 1, ptr - prev_eol, ws_rule))
                                                 ^
/datasets/git/diff.c:625:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ws_blank_line(prev_eol + 1, ptr - prev_eol, ws_rule))
                                                                          ^
                                                                           {
/datasets/git/diff.c:636:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int l1, l2, at;
        ^~~~~~~~~~~~~~~
/datasets/git/diff.c:636:6: warning: variable 'l1' is not initialized [cppcoreguidelines-init-variables]
        int l1, l2, at;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:636:6: warning: variable name 'l1' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:636:10: warning: variable 'l2' is not initialized [cppcoreguidelines-init-variables]
        int l1, l2, at;
                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:636:10: warning: variable name 'l2' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:636:14: warning: variable 'at' is not initialized [cppcoreguidelines-init-variables]
        int l1, l2, at;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:636:14: warning: variable name 'at' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:645:29: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        at = count_lines(mf1->ptr, mf1->size);
                                   ^
/datasets/git/diff.c:648:29: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        at = count_lines(mf2->ptr, mf2->size);
                                   ^
/datasets/git/diff.c:652:46: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static void emit_line_0(struct diff_options *o,
                                             ^
/datasets/git/diff.c:656:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int has_trailing_newline, has_trailing_carriage_return;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:656:6: warning: variable 'has_trailing_newline' is not initialized [cppcoreguidelines-init-variables]
        int has_trailing_newline, has_trailing_carriage_return;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:656:28: warning: variable 'has_trailing_carriage_return' is not initialized [cppcoreguidelines-init-variables]
        int has_trailing_newline, has_trailing_carriage_return;
                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:660:2: warning: the value returned by this function should be used [cert-err33-c]
        fputs(diff_line_prefix(o), file);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:660:2: note: cast the expression to void to silence this warning
/datasets/git/diff.c:663:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (has_trailing_newline)
                                 ^
                                  {
/datasets/git/diff.c:667:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (has_trailing_carriage_return)
                                         ^
                                          {
/datasets/git/diff.c:670:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!len && !first)
                           ^
                            {
/datasets/git/diff.c:674:3: warning: the value returned by this function should be used [cert-err33-c]
                fputs(GIT_COLOR_REVERSE, file);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:674:3: note: cast the expression to void to silence this warning
/datasets/git/diff.c:679:3: warning: the value returned by this function should be used [cert-err33-c]
                fputs(set_sign, file);
                ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:679:3: note: cast the expression to void to silence this warning
/datasets/git/diff.c:683:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (first)
                  ^
                   {
/datasets/git/diff.c:684:3: warning: the value returned by this function should be used [cert-err33-c]
                fputc(first, file);
                ^~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:684:3: note: cast the expression to void to silence this warning
/datasets/git/diff.c:686:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!len)
                 ^
                  {
/datasets/git/diff.c:690:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (set_sign && set != set_sign)
                                                ^
                                                 {
/datasets/git/diff.c:691:4: warning: the value returned by this function should be used [cert-err33-c]
                        fputs(reset, file);
                        ^~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:691:4: note: cast the expression to void to silence this warning
/datasets/git/diff.c:692:3: warning: the value returned by this function should be used [cert-err33-c]
                fputs(set, file);
                ^~~~~~~~~~~~~~~~
/datasets/git/diff.c:692:3: note: cast the expression to void to silence this warning
/datasets/git/diff.c:693:3: warning: Value stored to 'needs_reset' is never read [clang-analyzer-deadcode.DeadStores]
                needs_reset = 1;
                ^             ~
/datasets/git/diff.c:693:3: note: Value stored to 'needs_reset' is never read
                needs_reset = 1;
                ^             ~
/datasets/git/diff.c:695:2: warning: the value returned by this function should be used [cert-err33-c]
        fwrite(line, len, 1, file);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:695:2: note: cast the expression to void to silence this warning
/datasets/git/diff.c:699:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (needs_reset)
                        ^
                         {
/datasets/git/diff.c:700:3: warning: the value returned by this function should be used [cert-err33-c]
                fputs(reset, file);
                ^~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:700:3: note: cast the expression to void to silence this warning
/datasets/git/diff.c:701:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (has_trailing_carriage_return)
                                         ^
                                          {
/datasets/git/diff.c:702:3: warning: the value returned by this function should be used [cert-err33-c]
                fputc('\r', file);
                ^~~~~~~~~~~~~~~~~
/datasets/git/diff.c:702:3: note: cast the expression to void to silence this warning
/datasets/git/diff.c:703:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (has_trailing_newline)
                                 ^
                                  {
/datasets/git/diff.c:704:3: warning: the value returned by this function should be used [cert-err33-c]
                fputc('\n', file);
                ^~~~~~~~~~~~~~~~~
/datasets/git/diff.c:704:3: note: cast the expression to void to silence this warning
/datasets/git/diff.c:707:44: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static void emit_line(struct diff_options *o, const char *set, const char *reset,
                                           ^
/datasets/git/diff.c:773:8: warning: accessing fields in struct 'emitted_diff_symbol' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct emitted_diff_symbol {
       ^
/datasets/git/diff.c:773:8: note: use "__attribute__((aligned(32)))" to align struct 'emitted_diff_symbol' to 32 bytes
/datasets/git/diff.c:784:8: warning: accessing fields in struct 'emitted_diff_symbols' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct emitted_diff_symbols {
       ^
/datasets/git/diff.c:784:8: note: use "__attribute__((aligned(16)))" to align struct 'emitted_diff_symbols' to 16 bytes
/datasets/git/diff.c:790:61: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static void append_emitted_diff_symbol(struct diff_options *o,
                                                            ^
/datasets/git/diff.c:791:40: warning: parameter name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                                       struct emitted_diff_symbol *e)
                                                                   ^
/datasets/git/diff.c:793:30: warning: variable 'f' is not initialized [cppcoreguidelines-init-variables]
        struct emitted_diff_symbol *f;
                                    ^
                                      = NULL
/datasets/git/diff.c:793:30: warning: variable name 'f' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:795:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(o->emitted_symbols->buf,
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/diff.c:800:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(f, e, sizeof(struct emitted_diff_symbol));
        ^~~~~~
/datasets/git/diff.c:800:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(f, e, sizeof(struct emitted_diff_symbol));
        ^~~~~~
/datasets/git/diff.c:804:68: warning: parameter name 'e' is too short, expected at least 3 characters [readability-identifier-length]
static void free_emitted_diff_symbols(struct emitted_diff_symbols *e)
                                                                   ^
/datasets/git/diff.c:806:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!e)
               ^
                {
/datasets/git/diff.c:812:8: warning: accessing fields in struct 'moved_entry' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct moved_entry {
       ^
/datasets/git/diff.c:812:8: note: use "__attribute__((aligned(32)))" to align struct 'moved_entry' to 32 bytes
/datasets/git/diff.c:818:8: warning: accessing fields in struct 'moved_block' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct moved_block {
       ^
/datasets/git/diff.c:818:8: note: use "__attribute__((aligned(16)))" to align struct 'moved_block' to 16 bytes
/datasets/git/diff.c:825:61: warning: parameter name 'es' is too short, expected at least 3 characters [readability-identifier-length]
static void fill_es_indent_data(struct emitted_diff_symbol *es)
                                                            ^
/datasets/git/diff.c:827:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned int off = 0, i;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:827:24: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned int off = 0, i;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:827:24: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:828:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int width = 0, tab_width = es->flags & WS_TAB_WIDTH_MASK;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:828:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int width = 0, tab_width = es->flags & WS_TAB_WIDTH_MASK;
                                   ^~~~~~~~~
/datasets/git/diff.c:829:14: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
        const char *s = es->line;
                    ^
/datasets/git/diff.c:833:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (s[off] == '\f' || s[off] == '\v' ||
        ^
/datasets/git/diff.c:833:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 's' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (s[off] == '\f' || s[off] == '\v' ||
               ^
/datasets/git/diff.c:834:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
               (s[off] == '\r' && off < len - 1))
                                                 ^
                                                  {
/datasets/git/diff.c:844:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (s[++off] == '\t')
                        ^
/datasets/git/diff.c:844:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 's' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (s[++off] == '\t')
                               ^
/datasets/git/diff.c:844:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        while (s[++off] == '\t')
                                                ^
                                                 {
/datasets/git/diff.c:852:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = off; i < len; i++)
        ^
/datasets/git/diff.c:852:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = off; i < len; i++)
                      ^
/datasets/git/diff.c:852:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = off; i < len; i++)
                                   ^
                                    {
/datasets/git/diff.c:853:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!isspace(s[i]))
                     ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/diff.c:853:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!isspace(s[i]))
                                   ^
                                    {
/datasets/git/diff.c:860:20: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                es->indent_off = off;
                                 ^
/datasets/git/diff.c:865:63: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static int compute_ws_delta(const struct emitted_diff_symbol *a,
                                                              ^
/datasets/git/diff.c:866:42: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
                            const struct emitted_diff_symbol *b)
                                                              ^
/datasets/git/diff.c:868:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int a_width = a->indent_width,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:871:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (a_width == INDENT_BLANKLINE && b_width == INDENT_BLANKLINE)
                                                                       ^
                                                                        {
/datasets/git/diff.c:878:40: warning: parameter name 'l' is too short, expected at least 3 characters [readability-identifier-length]
                                 const struct emitted_diff_symbol *l,
                                                                   ^
/datasets/git/diff.c:881:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int a_width = cur->es->indent_width, b_width = l->indent_width;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:882:6: warning: variable 'delta' is not initialized [cppcoreguidelines-init-variables]
        int delta;
            ^
                  = 0
/datasets/git/diff.c:885:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cur->es->id != l->id)
                                 ^
                                  {
/datasets/git/diff.c:892:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (a_width == INDENT_BLANKLINE)
                                        ^
                                         {
/datasets/git/diff.c:906:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pmb->wsd == INDENT_BLANKLINE)
                                         ^
                                          {
/datasets/git/diff.c:912:8: warning: accessing fields in struct 'interned_diff_symbol' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct interned_diff_symbol {
       ^
/datasets/git/diff.c:912:8: note: use "__attribute__((aligned(32)))" to align struct 'interned_diff_symbol' to 32 bytes
/datasets/git/diff.c:918:9: warning: 2 adjacent parameters of 'interned_diff_symbol_cmp' of similar type ('const struct hashmap_entry *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                    const struct hashmap_entry *eptr,
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:918:37: note: the first parameter in the range is 'eptr'
                                    const struct hashmap_entry *eptr,
                                                                ^~~~
/datasets/git/diff.c:919:37: note: the last parameter in the range is 'entry_or_key'
                                    const struct hashmap_entry *entry_or_key,
                                                                ^~~~~~~~~~~~
/datasets/git/diff.c:923:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const struct emitted_diff_symbol *a, *b;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:923:36: warning: variable 'a' is not initialized [cppcoreguidelines-init-variables]
        const struct emitted_diff_symbol *a, *b;
                                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:923:36: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:923:40: warning: variable 'b' is not initialized [cppcoreguidelines-init-variables]
        const struct emitted_diff_symbol *a, *b;
                                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:923:40: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:924:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned flags = diffopt->color_moved_ws_handling
                         ^
/datasets/git/diff.c:925:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         & XDF_WHITESPACE_FLAGS;
                           ^
/datasets/git/./xdiff/xdiff.h:37:31: note: expanded from macro 'XDF_WHITESPACE_FLAGS'
#define XDF_WHITESPACE_FLAGS (XDF_IGNORE_WHITESPACE | \
                              ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./xdiff/xdiff.h:33:31: note: expanded from macro 'XDF_IGNORE_WHITESPACE'
#define XDF_IGNORE_WHITESPACE (1 << 1)
                              ^
/datasets/git/diff.c:936:48: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static void prepare_entry(struct diff_options *o, struct emitted_diff_symbol *l,
                                               ^
/datasets/git/diff.c:936:79: warning: parameter name 'l' is too short, expected at least 3 characters [readability-identifier-length]
static void prepare_entry(struct diff_options *o, struct emitted_diff_symbol *l,
                                                                              ^
/datasets/git/diff.c:937:35: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
                          struct interned_diff_symbol *s)
                                                       ^
/datasets/git/diff.c:939:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned flags = o->color_moved_ws_handling & XDF_WHITESPACE_FLAGS;
                         ^
/datasets/git/diff.c:939:48: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned flags = o->color_moved_ws_handling & XDF_WHITESPACE_FLAGS;
                                                      ^
/datasets/git/./xdiff/xdiff.h:37:31: note: expanded from macro 'XDF_WHITESPACE_FLAGS'
#define XDF_WHITESPACE_FLAGS (XDF_IGNORE_WHITESPACE | \
                              ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./xdiff/xdiff.h:33:31: note: expanded from macro 'XDF_IGNORE_WHITESPACE'
#define XDF_IGNORE_WHITESPACE (1 << 1)
                              ^
/datasets/git/diff.c:947:8: warning: accessing fields in struct 'moved_entry_list' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct moved_entry_list {
       ^
/datasets/git/diff.c:947:8: note: use "__attribute__((aligned(16)))" to align struct 'moved_entry_list' to 16 bytes
/datasets/git/diff.c:951:33: warning: function 'add_lines_to_move_detection' has cognitive complexity of 46 (threshold 25) [readability-function-cognitive-complexity]
static struct moved_entry_list *add_lines_to_move_detection(struct diff_options *o,
                                ^
/datasets/git/diff.c:965:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (n = 0; n < o->emitted_symbols->nr; n++) {
        ^
/datasets/git/diff.c:971:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (l->s != DIFF_SYMBOL_PLUS && l->s != DIFF_SYMBOL_MINUS) {
                ^
/datasets/git/diff.c:971:32: note: +1
                if (l->s != DIFF_SYMBOL_PLUS && l->s != DIFF_SYMBOL_MINUS) {
                                             ^
/datasets/git/diff.c:976:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (o->color_moved_ws_handling &
                ^
/datasets/git/diff.c:982:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (s) {
                ^
/datasets/git/diff.c:984:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/diff.c:986:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        ALLOC_GROW_BY(entry_list, id, 1, entry_list_alloc);
                        ^
/datasets/git/./refs/../cache.h:719:2: note: expanded from macro 'ALLOC_GROW_BY'
        do { \
        ^
/datasets/git/diff.c:986:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        ALLOC_GROW_BY(entry_list, id, 1, entry_list_alloc);
                        ^
/datasets/git/./refs/../cache.h:720:3: note: expanded from macro 'ALLOC_GROW_BY'
                if (increase) { \
                ^
/datasets/git/diff.c:986:4: note: +5, including nesting penalty of 4, nesting level increased to 5
                        ALLOC_GROW_BY(entry_list, id, 1, entry_list_alloc);
                        ^
/datasets/git/./refs/../cache.h:722:4: note: expanded from macro 'ALLOC_GROW_BY'
                        if (new_nr < nr) \
                        ^
/datasets/git/diff.c:986:4: note: +5, including nesting penalty of 4, nesting level increased to 5
                        ALLOC_GROW_BY(entry_list, id, 1, entry_list_alloc);
                        ^
/datasets/git/./refs/../cache.h:724:4: note: expanded from macro 'ALLOC_GROW_BY'
                        ALLOC_GROW(x, new_nr, alloc); \
                        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/diff.c:986:4: note: +6, including nesting penalty of 5, nesting level increased to 6
                        ALLOC_GROW_BY(entry_list, id, 1, entry_list_alloc);
                        ^
/datasets/git/./refs/../cache.h:724:4: note: expanded from macro 'ALLOC_GROW_BY'
                        ALLOC_GROW(x, new_nr, alloc); \
                        ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/diff.c:986:4: note: +7, including nesting penalty of 6, nesting level increased to 7
                        ALLOC_GROW_BY(entry_list, id, 1, entry_list_alloc);
                        ^
/datasets/git/./refs/../cache.h:724:4: note: expanded from macro 'ALLOC_GROW_BY'
                        ALLOC_GROW(x, new_nr, alloc); \
                        ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/diff.c:986:4: note: +1, nesting level increased to 7
                        ALLOC_GROW_BY(entry_list, id, 1, entry_list_alloc);
                        ^
/datasets/git/./refs/../cache.h:724:4: note: expanded from macro 'ALLOC_GROW_BY'
                        ALLOC_GROW(x, new_nr, alloc); \
                        ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/diff.c:995:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (prev_line && prev_line->es->s == l->s)
                ^
/datasets/git/diff.c:995:17: note: +1
                if (prev_line && prev_line->es->s == l->s)
                              ^
/datasets/git/diff.c:998:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (l->s == DIFF_SYMBOL_PLUS) {
                ^
/datasets/git/diff.c:1001:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/diff.c:951:82: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static struct moved_entry_list *add_lines_to_move_detection(struct diff_options *o,
                                                                                 ^
/datasets/git/diff.c:959:11: warning: variable name 'id' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned id = 0;
                 ^
/datasets/git/diff.c:960:6: warning: variable 'n' is not initialized [cppcoreguidelines-init-variables]
        int n;
            ^
              = 0
/datasets/git/diff.c:960:6: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:962:59: warning: 8096 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        hashmap_init(&interned_map, interned_diff_symbol_cmp, o, 8096);
                                                                 ^
/datasets/git/diff.c:963:32: warning: performing an implicit widening conversion to type 'size_t' (aka 'unsigned long') of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        mem_pool_init(&interned_pool, 1024 * 1024);
                                      ^
/datasets/git/diff.c:963:32: note: make conversion explicit to silence this warning
        mem_pool_init(&interned_pool, 1024 * 1024);
                                      ^~~~~~~~~~~
                                      (size_t)( )
/datasets/git/diff.c:963:32: note: perform multiplication in a wider type
        mem_pool_init(&interned_pool, 1024 * 1024);
                                      ^~~~
                                      (long)
/datasets/git/diff.c:963:32: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mem_pool_init(&interned_pool, 1024 * 1024);
                                      ^
/datasets/git/diff.c:963:39: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mem_pool_init(&interned_pool, 1024 * 1024);
                                             ^
/datasets/git/diff.c:967:31: warning: variable name 'l' is too short, expected at least 3 characters [readability-identifier-length]
                struct emitted_diff_symbol *l = &o->emitted_symbols->buf[n];
                                            ^
/datasets/git/diff.c:968:32: warning: variable 's' is not initialized [cppcoreguidelines-init-variables]
                struct interned_diff_symbol *s;
                                             ^
                                               = NULL
/datasets/git/diff.c:968:32: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:969:23: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
                struct moved_entry *entry;
                                    ^
                                          = NULL
/datasets/git/diff.c:976:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (o->color_moved_ws_handling &
                    ^
/datasets/git/diff.c:977:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    COLOR_MOVED_WS_ALLOW_INDENTATION_CHANGE)
                    ^
/datasets/git/./diff.h:392:51: note: expanded from macro 'COLOR_MOVED_WS_ALLOW_INDENTATION_CHANGE'
        #define COLOR_MOVED_WS_ALLOW_INDENTATION_CHANGE (1<<5)
                                                         ^
/datasets/git/diff.c:977:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    COLOR_MOVED_WS_ALLOW_INDENTATION_CHANGE)
                                                            ^
                                                             {
/datasets/git/diff.c:986:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        ALLOC_GROW_BY(entry_list, id, 1, entry_list_alloc);
                        ^
/datasets/git/./refs/../cache.h:724:4: note: expanded from macro 'ALLOC_GROW_BY'
                        ALLOC_GROW(x, new_nr, alloc); \
                        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/diff.c:986:4: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        ALLOC_GROW_BY(entry_list, id, 1, entry_list_alloc);
                        ^
/datasets/git/./refs/../cache.h:725:4: note: expanded from macro 'ALLOC_GROW_BY'
                        memset((x) + nr, 0, sizeof(*(x)) * (increase)); \
                        ^~~~~~
/datasets/git/diff.c:986:4: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                        ALLOC_GROW_BY(entry_list, id, 1, entry_list_alloc);
                        ^
/datasets/git/./refs/../cache.h:725:4: note: expanded from macro 'ALLOC_GROW_BY'
                        memset((x) + nr, 0, sizeof(*(x)) * (increase)); \
                        ^~~~~~
/datasets/git/diff.c:988:9: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                                    memcpy(mem_pool_alloc(&interned_pool,
                                    ^~~~~~
/datasets/git/diff.c:988:9: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                                    memcpy(mem_pool_alloc(&interned_pool,
                                    ^~~~~~
/datasets/git/diff.c:995:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (prev_line && prev_line->es->s == l->s)
                                                          ^
                                                           {
/datasets/git/diff.c:999:24: warning: Dereference of null pointer [clang-analyzer-core.NullDereference]
                        entry->next_match = entry_list[l->id].add;
                                            ^
/datasets/git/diff.c:6530:6: note: Assuming field 'nr' is not equal to 0
        if (!q->nr && !options->additional_path_headers)
            ^~~~~~
/datasets/git/diff.c:6530:13: note: Left side of '&&' is false
        if (!q->nr && !options->additional_path_headers)
                   ^
/datasets/git/diff.c:6533:6: note: Assuming the condition is false
        if (output_format & (DIFF_FORMAT_RAW |
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:6533:2: note: Taking false branch
        if (output_format & (DIFF_FORMAT_RAW |
        ^
/datasets/git/diff.c:6545:6: note: Assuming the condition is false
        if (output_format & DIFF_FORMAT_DIRSTAT && options->flags.dirstat_by_line)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:6545:42: note: Left side of '&&' is false
        if (output_format & DIFF_FORMAT_DIRSTAT && options->flags.dirstat_by_line)
                                                ^
/datasets/git/diff.c:6548:6: note: Assuming the condition is false
        if (output_format & (DIFF_FORMAT_DIFFSTAT|DIFF_FORMAT_SHORTSTAT|DIFF_FORMAT_NUMSTAT) ||
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:6548:6: note: Left side of '||' is false
/datasets/git/diff.c:6549:6: note: 'dirstat_by_line' is 0
            dirstat_by_line) {
            ^~~~~~~~~~~~~~~
/datasets/git/diff.c:6548:2: note: Taking false branch
        if (output_format & (DIFF_FORMAT_DIFFSTAT|DIFF_FORMAT_SHORTSTAT|DIFF_FORMAT_NUMSTAT) ||
        ^
/datasets/git/diff.c:6564:44: note: Left side of '&&' is false
        if ((output_format & DIFF_FORMAT_DIRSTAT) && !dirstat_by_line)
                                                  ^
/datasets/git/diff.c:6567:6: note: Assuming the condition is false
        if (output_format & DIFF_FORMAT_SUMMARY && !is_summary_empty(q)) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:6567:42: note: Left side of '&&' is false
        if (output_format & DIFF_FORMAT_SUMMARY && !is_summary_empty(q)) {
                                                ^
/datasets/git/diff.c:6574:6: note: Assuming the condition is false
        if (output_format & DIFF_FORMAT_NO_OUTPUT &&
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:6574:44: note: Left side of '&&' is false
        if (output_format & DIFF_FORMAT_NO_OUTPUT &&
                                                  ^
/datasets/git/diff.c:6595:6: note: Assuming the condition is true
        if (output_format & DIFF_FORMAT_PATCH) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:6595:2: note: Taking true branch
        if (output_format & DIFF_FORMAT_PATCH) {
        ^
/datasets/git/diff.c:6596:7: note: 'separator' is 0
                if (separator) {
                    ^~~~~~~~~
/datasets/git/diff.c:6596:3: note: Taking false branch
                if (separator) {
                ^
/datasets/git/diff.c:6604:3: note: Calling 'diff_flush_patch_all_file_pairs'
                diff_flush_patch_all_file_pairs(options);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:6449:2: note: Taking false branch
        if (WSEH_NEW & WS_RULE_MASK)
        ^
/datasets/git/diff.c:6452:6: note: Assuming field 'color_moved' is 0
        if (o->color_moved)
            ^~~~~~~~~~~~~~
/datasets/git/diff.c:6452:2: note: Taking false branch
        if (o->color_moved)
        ^
/datasets/git/diff.c:6455:6: note: Assuming field 'additional_path_headers' is null
        if (o->additional_path_headers)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:6455:2: note: Taking false branch
        if (o->additional_path_headers)
        ^
/datasets/git/diff.c:6458:14: note: Assuming 'i' is < field 'nr'
        for (i = 0; i < q->nr; i++) {
                    ^~~~~~~~~
/datasets/git/diff.c:6458:2: note: Loop condition is true.  Entering loop body
        for (i = 0; i < q->nr; i++) {
        ^
/datasets/git/diff.c:6460:3: note: Taking true branch
                if (check_pair_status(p))
                ^
/datasets/git/diff.c:6458:14: note: Assuming 'i' is >= field 'nr'
        for (i = 0; i < q->nr; i++) {
                    ^~~~~~~~~
/datasets/git/diff.c:6458:2: note: Loop condition is false. Execution continues on line 6464
        for (i = 0; i < q->nr; i++) {
        ^
/datasets/git/diff.c:6464:6: note: Assuming field 'emitted_symbols' is non-null
        if (o->emitted_symbols) {
            ^~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:6464:2: note: Taking true branch
        if (o->emitted_symbols) {
        ^
/datasets/git/diff.c:6465:7: note: Assuming field 'color_moved' is not equal to 0
                if (o->color_moved) {
                    ^~~~~~~~~~~~~~
/datasets/git/diff.c:6465:3: note: Taking true branch
                if (o->color_moved) {
                ^
/datasets/git/diff.c:6470:17: note: Calling 'add_lines_to_move_detection'
                        entry_list = add_lines_to_move_detection(o,
                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:957:2: note: 'entry_list' initialized to a null pointer value
        struct moved_entry_list *entry_list = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:965:14: note: Assuming 'n' is < field 'nr'
        for (n = 0; n < o->emitted_symbols->nr; n++) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:965:2: note: Loop condition is true.  Entering loop body
        for (n = 0; n < o->emitted_symbols->nr; n++) {
        ^
/datasets/git/diff.c:971:7: note: Assuming field 's' is equal to DIFF_SYMBOL_PLUS
                if (l->s != DIFF_SYMBOL_PLUS && l->s != DIFF_SYMBOL_MINUS) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:971:32: note: Left side of '&&' is false
                if (l->s != DIFF_SYMBOL_PLUS && l->s != DIFF_SYMBOL_MINUS) {
                                             ^
/datasets/git/diff.c:976:7: note: Assuming the condition is false
                if (o->color_moved_ws_handling &
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:976:3: note: Taking false branch
                if (o->color_moved_ws_handling &
                ^
/datasets/git/diff.c:981:7: note: Calling 'container_of_or_null_offset'
                s = hashmap_get_entry(&interned_map, &key, ent, &key.ent);
                    ^
/datasets/git/./hashmap.h:516:2: note: expanded from macro 'hashmap_get_entry'
        container_of_or_null_offset( \
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1581:9: note: Assuming 'ptr' is non-null, which participates in a condition later
        return ptr ? (char *)ptr - offset : NULL;
               ^~~
/datasets/git/./git-compat-util.h:1581:9: note: '?' condition is true
/datasets/git/./git-compat-util.h:1581:2: note: Returning pointer, which participates in a condition later
        return ptr ? (char *)ptr - offset : NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:981:7: note: Returning from 'container_of_or_null_offset'
                s = hashmap_get_entry(&interned_map, &key, ent, &key.ent);
                    ^
/datasets/git/./hashmap.h:516:2: note: expanded from macro 'hashmap_get_entry'
        container_of_or_null_offset( \
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:982:7: note: 's' is non-null
                if (s) {
                    ^
/datasets/git/diff.c:982:3: note: Taking true branch
                if (s) {
                ^
/datasets/git/diff.c:995:7: note: 'prev_line' is null
                if (prev_line && prev_line->es->s == l->s)
                    ^~~~~~~~~
/datasets/git/diff.c:995:17: note: Left side of '&&' is false
                if (prev_line && prev_line->es->s == l->s)
                              ^
/datasets/git/diff.c:998:7: note: Assuming field 's' is equal to DIFF_SYMBOL_PLUS
                if (l->s == DIFF_SYMBOL_PLUS) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:998:3: note: Taking true branch
                if (l->s == DIFF_SYMBOL_PLUS) {
                ^
/datasets/git/diff.c:999:24: note: Dereference of null pointer
                        entry->next_match = entry_list[l->id].add;
                                            ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:1002:24: warning: Dereference of null pointer [clang-analyzer-core.NullDereference]
                        entry->next_match = entry_list[l->id].del;
                                            ^
/datasets/git/diff.c:6530:6: note: Assuming field 'nr' is not equal to 0
        if (!q->nr && !options->additional_path_headers)
            ^~~~~~
/datasets/git/diff.c:6530:13: note: Left side of '&&' is false
        if (!q->nr && !options->additional_path_headers)
                   ^
/datasets/git/diff.c:6533:6: note: Assuming the condition is false
        if (output_format & (DIFF_FORMAT_RAW |
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:6533:2: note: Taking false branch
        if (output_format & (DIFF_FORMAT_RAW |
        ^
/datasets/git/diff.c:6545:6: note: Assuming the condition is false
        if (output_format & DIFF_FORMAT_DIRSTAT && options->flags.dirstat_by_line)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:6545:42: note: Left side of '&&' is false
        if (output_format & DIFF_FORMAT_DIRSTAT && options->flags.dirstat_by_line)
                                                ^
/datasets/git/diff.c:6548:6: note: Assuming the condition is false
        if (output_format & (DIFF_FORMAT_DIFFSTAT|DIFF_FORMAT_SHORTSTAT|DIFF_FORMAT_NUMSTAT) ||
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:6548:6: note: Left side of '||' is false
/datasets/git/diff.c:6549:6: note: 'dirstat_by_line' is 0
            dirstat_by_line) {
            ^~~~~~~~~~~~~~~
/datasets/git/diff.c:6548:2: note: Taking false branch
        if (output_format & (DIFF_FORMAT_DIFFSTAT|DIFF_FORMAT_SHORTSTAT|DIFF_FORMAT_NUMSTAT) ||
        ^
/datasets/git/diff.c:6564:44: note: Left side of '&&' is false
        if ((output_format & DIFF_FORMAT_DIRSTAT) && !dirstat_by_line)
                                                  ^
/datasets/git/diff.c:6567:6: note: Assuming the condition is false
        if (output_format & DIFF_FORMAT_SUMMARY && !is_summary_empty(q)) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:6567:42: note: Left side of '&&' is false
        if (output_format & DIFF_FORMAT_SUMMARY && !is_summary_empty(q)) {
                                                ^
/datasets/git/diff.c:6574:6: note: Assuming the condition is false
        if (output_format & DIFF_FORMAT_NO_OUTPUT &&
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:6574:44: note: Left side of '&&' is false
        if (output_format & DIFF_FORMAT_NO_OUTPUT &&
                                                  ^
/datasets/git/diff.c:6595:6: note: Assuming the condition is true
        if (output_format & DIFF_FORMAT_PATCH) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:6595:2: note: Taking true branch
        if (output_format & DIFF_FORMAT_PATCH) {
        ^
/datasets/git/diff.c:6596:7: note: 'separator' is 0
                if (separator) {
                    ^~~~~~~~~
/datasets/git/diff.c:6596:3: note: Taking false branch
                if (separator) {
                ^
/datasets/git/diff.c:6604:3: note: Calling 'diff_flush_patch_all_file_pairs'
                diff_flush_patch_all_file_pairs(options);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:6449:2: note: Taking false branch
        if (WSEH_NEW & WS_RULE_MASK)
        ^
/datasets/git/diff.c:6452:6: note: Assuming field 'color_moved' is 0
        if (o->color_moved)
            ^~~~~~~~~~~~~~
/datasets/git/diff.c:6452:2: note: Taking false branch
        if (o->color_moved)
        ^
/datasets/git/diff.c:6455:6: note: Assuming field 'additional_path_headers' is null
        if (o->additional_path_headers)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:6455:2: note: Taking false branch
        if (o->additional_path_headers)
        ^
/datasets/git/diff.c:6458:14: note: Assuming 'i' is < field 'nr'
        for (i = 0; i < q->nr; i++) {
                    ^~~~~~~~~
/datasets/git/diff.c:6458:2: note: Loop condition is true.  Entering loop body
        for (i = 0; i < q->nr; i++) {
        ^
/datasets/git/diff.c:6460:3: note: Taking true branch
                if (check_pair_status(p))
                ^
/datasets/git/diff.c:6458:14: note: Assuming 'i' is >= field 'nr'
        for (i = 0; i < q->nr; i++) {
                    ^~~~~~~~~
/datasets/git/diff.c:6458:2: note: Loop condition is false. Execution continues on line 6464
        for (i = 0; i < q->nr; i++) {
        ^
/datasets/git/diff.c:6464:6: note: Assuming field 'emitted_symbols' is non-null
        if (o->emitted_symbols) {
            ^~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:6464:2: note: Taking true branch
        if (o->emitted_symbols) {
        ^
/datasets/git/diff.c:6465:7: note: Assuming field 'color_moved' is not equal to 0
                if (o->color_moved) {
                    ^~~~~~~~~~~~~~
/datasets/git/diff.c:6465:3: note: Taking true branch
                if (o->color_moved) {
                ^
/datasets/git/diff.c:6470:17: note: Calling 'add_lines_to_move_detection'
                        entry_list = add_lines_to_move_detection(o,
                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:957:2: note: 'entry_list' initialized to a null pointer value
        struct moved_entry_list *entry_list = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:965:14: note: Assuming 'n' is < field 'nr'
        for (n = 0; n < o->emitted_symbols->nr; n++) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:965:2: note: Loop condition is true.  Entering loop body
        for (n = 0; n < o->emitted_symbols->nr; n++) {
        ^
/datasets/git/diff.c:971:7: note: Assuming field 's' is equal to DIFF_SYMBOL_PLUS
                if (l->s != DIFF_SYMBOL_PLUS && l->s != DIFF_SYMBOL_MINUS) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:971:32: note: Left side of '&&' is false
                if (l->s != DIFF_SYMBOL_PLUS && l->s != DIFF_SYMBOL_MINUS) {
                                             ^
/datasets/git/diff.c:976:7: note: Assuming the condition is false
                if (o->color_moved_ws_handling &
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:976:3: note: Taking false branch
                if (o->color_moved_ws_handling &
                ^
/datasets/git/diff.c:981:7: note: Calling 'container_of_or_null_offset'
                s = hashmap_get_entry(&interned_map, &key, ent, &key.ent);
                    ^
/datasets/git/./hashmap.h:516:2: note: expanded from macro 'hashmap_get_entry'
        container_of_or_null_offset( \
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1581:9: note: Assuming 'ptr' is non-null, which participates in a condition later
        return ptr ? (char *)ptr - offset : NULL;
               ^~~
/datasets/git/./git-compat-util.h:1581:9: note: '?' condition is true
/datasets/git/./git-compat-util.h:1581:2: note: Returning pointer, which participates in a condition later
        return ptr ? (char *)ptr - offset : NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:981:7: note: Returning from 'container_of_or_null_offset'
                s = hashmap_get_entry(&interned_map, &key, ent, &key.ent);
                    ^
/datasets/git/./hashmap.h:516:2: note: expanded from macro 'hashmap_get_entry'
        container_of_or_null_offset( \
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:982:7: note: 's' is non-null
                if (s) {
                    ^
/datasets/git/diff.c:982:3: note: Taking true branch
                if (s) {
                ^
/datasets/git/diff.c:995:7: note: 'prev_line' is null
                if (prev_line && prev_line->es->s == l->s)
                    ^~~~~~~~~
/datasets/git/diff.c:995:17: note: Left side of '&&' is false
                if (prev_line && prev_line->es->s == l->s)
                              ^
/datasets/git/diff.c:998:7: note: Assuming field 's' is not equal to DIFF_SYMBOL_PLUS
                if (l->s == DIFF_SYMBOL_PLUS) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:998:3: note: Taking false branch
                if (l->s == DIFF_SYMBOL_PLUS) {
                ^
/datasets/git/diff.c:1002:24: note: Dereference of null pointer
                        entry->next_match = entry_list[l->id].del;
                                            ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:1013:54: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static void pmb_advance_or_null(struct diff_options *o,
                                                     ^
/datasets/git/diff.c:1014:33: warning: parameter name 'l' is too short, expected at least 3 characters [readability-identifier-length]
                                struct emitted_diff_symbol *l,
                                                            ^
/datasets/git/diff.c:1018:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, j;
        ^~~~~~~~~
/datasets/git/diff.c:1018:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, j;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:1018:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:1018:9: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int i, j;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:1018:9: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:1020:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0, j = 0; i < *pmb_nr; i++) {
        ^
/datasets/git/diff.c:1021:7: warning: variable 'match' is not initialized [cppcoreguidelines-init-variables]
                int match;
                    ^
                          = 0
/datasets/git/diff.c:1026:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (o->color_moved_ws_handling &
                    ^
/datasets/git/diff.c:1027:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    COLOR_MOVED_WS_ALLOW_INDENTATION_CHANGE)
                    ^
/datasets/git/./diff.h:392:51: note: expanded from macro 'COLOR_MOVED_WS_ALLOW_INDENTATION_CHANGE'
        #define COLOR_MOVED_WS_ALLOW_INDENTATION_CHANGE (1<<5)
                                                         ^
/datasets/git/diff.c:1027:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    COLOR_MOVED_WS_ALLOW_INDENTATION_CHANGE)
                                                            ^
                                                             {
/datasets/git/diff.c:1030:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/diff.c:1041:62: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static void fill_potential_moved_blocks(struct diff_options *o,
                                                             ^
/datasets/git/diff.c:1043:34: warning: parameter name 'l' is too short, expected at least 3 characters [readability-identifier-length]
                                        struct emitted_diff_symbol *l,
                                                                    ^
/datasets/git/diff.c:1045:6: warning: 2 adjacent parameters of 'fill_potential_moved_blocks' of similar type ('int *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                        int *pmb_alloc_p, int *pmb_nr_p)
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:1045:11: note: the first parameter in the range is 'pmb_alloc_p'
                                        int *pmb_alloc_p, int *pmb_nr_p)
                                             ^~~~~~~~~~~
/datasets/git/diff.c:1045:29: note: the last parameter in the range is 'pmb_nr_p'
                                        int *pmb_alloc_p, int *pmb_nr_p)
                                                               ^~~~~~~~
/datasets/git/diff.c:1049:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int pmb_alloc = *pmb_alloc_p, pmb_nr = *pmb_nr_p;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:1042:6: note: inferred assignment of ID-dependent value from ID-dependent member next_match [altera-id-dependent-backward-branch]
                                        struct moved_entry *match,
                                        ^
/datasets/git/diff.c:1055:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'match' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; match; match = match->next_match) {
               ^
/datasets/git/diff.c:1056:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                ALLOC_GROW(pmb, pmb_nr + 1, pmb_alloc);
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/diff.c:1057:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (o->color_moved_ws_handling &
                    ^
/datasets/git/diff.c:1058:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    COLOR_MOVED_WS_ALLOW_INDENTATION_CHANGE)
                    ^
/datasets/git/./diff.h:392:51: note: expanded from macro 'COLOR_MOVED_WS_ALLOW_INDENTATION_CHANGE'
        #define COLOR_MOVED_WS_ALLOW_INDENTATION_CHANGE (1<<5)
                                                         ^
/datasets/git/diff.c:1058:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    COLOR_MOVED_WS_ALLOW_INDENTATION_CHANGE)
                                                            ^
                                                             {
/datasets/git/diff.c:1060:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/diff.c:1088:51: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static int adjust_last_block(struct diff_options *o, int n, int block_length)
                                                  ^
/datasets/git/diff.c:1088:54: warning: 2 adjacent parameters of 'adjust_last_block' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int adjust_last_block(struct diff_options *o, int n, int block_length)
                                                     ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:1088:58: note: the first parameter in the range is 'n'
static int adjust_last_block(struct diff_options *o, int n, int block_length)
                                                         ^
/datasets/git/diff.c:1088:65: note: the last parameter in the range is 'block_length'
static int adjust_last_block(struct diff_options *o, int n, int block_length)
                                                                ^~~~~~~~~~~~
/datasets/git/diff.c:1090:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, alnum_count = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:1090:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, alnum_count = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:1090:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:1094:3: note: inferred assignment of ID-dependent value from ID-dependent member line [altera-id-dependent-backward-branch]
                const char *c = o->emitted_symbols->buf[n - i].line;
                ^
/datasets/git/diff.c:1091:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (o->color_moved == COLOR_MOVED_PLAIN)
                                                ^
                                                 {
/datasets/git/diff.c:1094:15: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                const char *c = o->emitted_symbols->buf[n - i].line;
                            ^
/datasets/git/diff.c:1095:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (; *c; c++) {
                ^
/datasets/git/diff.c:1095:10: warning: backward branch (for loop) is ID-dependent due to variable reference to 'c' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (; *c; c++) {
                       ^
/datasets/git/diff.c:1096:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!isalnum(*c))
                             ^
/datasets/git/./git-compat-util.h:1220:20: note: expanded from macro 'isalnum'
#define isalnum(x) sane_istest(x,GIT_ALPHA | GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/diff.c:1096:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!isalnum(*c))
                                         ^
                                          {
/datasets/git/diff.c:1099:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (alnum_count >= COLOR_MOVED_MIN_ALNUM_COUNT)
                                                                       ^
                                                                        {
/datasets/git/diff.c:1103:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 1; i < block_length + 1; i++)
        ^
/datasets/git/diff.c:1103:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 1; i < block_length + 1; i++)
                                              ^
                                               {
/datasets/git/diff.c:1104:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                o->emitted_symbols->buf[n - i].flags &= ~DIFF_SYMBOL_MOVED_LINE_ZEBRA_MASK;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:1104:43: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                o->emitted_symbols->buf[n - i].flags &= ~DIFF_SYMBOL_MOVED_LINE_ZEBRA_MASK;
                                                        ^
/datasets/git/diff.c:1104:44: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                o->emitted_symbols->buf[n - i].flags &= ~DIFF_SYMBOL_MOVED_LINE_ZEBRA_MASK;
                                                         ^
/datasets/git/diff.c:1087:4: note: expanded from macro 'DIFF_SYMBOL_MOVED_LINE_ZEBRA_MASK'
  (DIFF_SYMBOL_MOVED_LINE | DIFF_SYMBOL_MOVED_LINE_ALT)
   ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:756:34: note: expanded from macro 'DIFF_SYMBOL_MOVED_LINE'
#define DIFF_SYMBOL_MOVED_LINE                  (1<<17)
                                                ^~~~~~~
/datasets/git/diff.c:1109:13: warning: function 'mark_color_as_moved' has cognitive complexity of 37 (threshold 25) [readability-function-cognitive-complexity]
static void mark_color_as_moved(struct diff_options *o,
            ^
/datasets/git/diff.c:1118:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (n = 0; n < o->emitted_symbols->nr; n++) {
        ^
/datasets/git/diff.c:1122:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                switch (l->s) {
                ^
/datasets/git/diff.c:1133:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (pmb_nr && (!match || l->s != moved_symbol)) {
                ^
/datasets/git/diff.c:1133:14: note: +1
                if (pmb_nr && (!match || l->s != moved_symbol)) {
                           ^
/datasets/git/diff.c:1133:25: note: +1
                if (pmb_nr && (!match || l->s != moved_symbol)) {
                                      ^
/datasets/git/diff.c:1134:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!adjust_last_block(o, n, block_length) &&
                        ^
/datasets/git/diff.c:1134:47: note: +1
                        if (!adjust_last_block(o, n, block_length) &&
                                                                   ^
/datasets/git/diff.c:1147:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!match) {
                ^
/datasets/git/diff.c:1152:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (o->color_moved == COLOR_MOVED_PLAIN) {
                ^
/datasets/git/diff.c:1159:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (pmb_nr == 0) {
                ^
/datasets/git/diff.c:1162:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!contiguous && block_length > 1)
                        ^
/datasets/git/diff.c:1162:20: note: +1
                        if (!contiguous && block_length > 1)
                                        ^
/datasets/git/diff.c:1168:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/diff.c:1173:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (contiguous && pmb_nr && moved_symbol == l->s)
                        ^
/datasets/git/diff.c:1173:29: note: +1
                        if (contiguous && pmb_nr && moved_symbol == l->s)
                                                 ^
/datasets/git/diff.c:1175:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/diff.c:1178:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (pmb_nr)
                        ^
/datasets/git/diff.c:1180:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/diff.c:1186:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (pmb_nr) {
                ^
/datasets/git/diff.c:1189:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (flipped_block && o->color_moved != COLOR_MOVED_BLOCKS)
                        ^
/datasets/git/diff.c:1189:22: note: +1
                        if (flipped_block && o->color_moved != COLOR_MOVED_BLOCKS)
                                          ^
/datasets/git/diff.c:1109:54: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static void mark_color_as_moved(struct diff_options *o,
                                                     ^
/datasets/git/diff.c:1113:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int pmb_nr = 0, pmb_alloc = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:1114:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int n, flipped_block = 0, block_length = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:1114:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/diff.c:1114:6: warning: variable 'n' is not initialized [cppcoreguidelines-init-variables]
        int n, flipped_block = 0, block_length = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:1114:6: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:1118:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (n = 0; n < o->emitted_symbols->nr; n++) {
        ^
/datasets/git/diff.c:1118:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'n' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (n = 0; n < o->emitted_symbols->nr; n++) {
                    ^
/datasets/git/diff.c:1120:31: warning: variable name 'l' is too short, expected at least 3 characters [readability-identifier-length]
                struct emitted_diff_symbol *l = &o->emitted_symbols->buf[n];
                                            ^
/datasets/git/diff.c:1153:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        l->flags |= DIFF_SYMBOL_MOVED_LINE;
                        ^~~~~~~~
/datasets/git/diff.c:1153:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        l->flags |= DIFF_SYMBOL_MOVED_LINE;
                                    ^
/datasets/git/diff.c:756:35: note: expanded from macro 'DIFF_SYMBOL_MOVED_LINE'
#define DIFF_SYMBOL_MOVED_LINE                  (1<<17)
                                                 ^
/datasets/git/diff.c:1162:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!contiguous && block_length > 1)
                                                            ^
                                                             {
/datasets/git/diff.c:1168:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/diff.c:1173:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (contiguous && pmb_nr && moved_symbol == l->s)
                                                                         ^
                                                                          {
/datasets/git/diff.c:1175:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/diff.c:1178:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (pmb_nr)
                                   ^
                                    {
/datasets/git/diff.c:1180:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/diff.c:1188:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        l->flags |= DIFF_SYMBOL_MOVED_LINE;
                        ^~~~~~~~
/datasets/git/diff.c:1188:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        l->flags |= DIFF_SYMBOL_MOVED_LINE;
                                    ^
/datasets/git/diff.c:756:35: note: expanded from macro 'DIFF_SYMBOL_MOVED_LINE'
#define DIFF_SYMBOL_MOVED_LINE                  (1<<17)
                                                 ^
/datasets/git/diff.c:1189:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (flipped_block && o->color_moved != COLOR_MOVED_BLOCKS)
                                                                                  ^
                                                                                   {
/datasets/git/diff.c:1190:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                l->flags |= DIFF_SYMBOL_MOVED_LINE_ALT;
                                ^~~~~~~~
/datasets/git/diff.c:1190:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                l->flags |= DIFF_SYMBOL_MOVED_LINE_ALT;
                                            ^
/datasets/git/diff.c:757:38: note: expanded from macro 'DIFF_SYMBOL_MOVED_LINE_ALT'
#define DIFF_SYMBOL_MOVED_LINE_ALT              (1<<18)
                                                 ^
/datasets/git/diff.c:1198:50: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static void dim_moved_lines(struct diff_options *o)
                                                 ^
/datasets/git/diff.c:1200:6: warning: variable 'n' is not initialized [cppcoreguidelines-init-variables]
        int n;
            ^
              = 0
/datasets/git/diff.c:1200:6: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:1201:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (n = 0; n < o->emitted_symbols->nr; n++) {
        ^
/datasets/git/diff.c:1204:31: warning: variable name 'l' is too short, expected at least 3 characters [readability-identifier-length]
                struct emitted_diff_symbol *l = &o->emitted_symbols->buf[n];
                                            ^
/datasets/git/diff.c:1210:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (l->s != DIFF_SYMBOL_PLUS && l->s != DIFF_SYMBOL_MINUS)
                                                                          ^
                                                                           {
/datasets/git/diff.c:1214:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(l->flags & DIFF_SYMBOL_MOVED_LINE))
                      ^~~~~~~~
/datasets/git/diff.c:1214:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(l->flags & DIFF_SYMBOL_MOVED_LINE))
                                 ^
/datasets/git/diff.c:756:35: note: expanded from macro 'DIFF_SYMBOL_MOVED_LINE'
#define DIFF_SYMBOL_MOVED_LINE                  (1<<17)
                                                 ^
/datasets/git/diff.c:1214:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(l->flags & DIFF_SYMBOL_MOVED_LINE))
                                                         ^
                                                          {
/datasets/git/diff.c:1222:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            prev->s != DIFF_SYMBOL_MINUS)
                                                         ^
                                                          {
/datasets/git/diff.c:1225:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            next->s != DIFF_SYMBOL_MINUS)
                                                         ^
                                                          {
/datasets/git/diff.c:1230:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (prev->flags & DIFF_SYMBOL_MOVED_LINE_ZEBRA_MASK) ==
                     ^~~~~~~~~~~
/datasets/git/diff.c:1230:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (prev->flags & DIFF_SYMBOL_MOVED_LINE_ZEBRA_MASK) ==
                                   ^
/datasets/git/diff.c:1087:4: note: expanded from macro 'DIFF_SYMBOL_MOVED_LINE_ZEBRA_MASK'
  (DIFF_SYMBOL_MOVED_LINE | DIFF_SYMBOL_MOVED_LINE_ALT)
   ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:756:34: note: expanded from macro 'DIFF_SYMBOL_MOVED_LINE'
#define DIFF_SYMBOL_MOVED_LINE                  (1<<17)
                                                ^~~~~~~
/datasets/git/diff.c:1231:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (l->flags & DIFF_SYMBOL_MOVED_LINE_ZEBRA_MASK)) &&
                     ^~~~~~~~
/datasets/git/diff.c:1231:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (l->flags & DIFF_SYMBOL_MOVED_LINE_ZEBRA_MASK)) &&
                                ^
/datasets/git/diff.c:1087:4: note: expanded from macro 'DIFF_SYMBOL_MOVED_LINE_ZEBRA_MASK'
  (DIFF_SYMBOL_MOVED_LINE | DIFF_SYMBOL_MOVED_LINE_ALT)
   ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:756:34: note: expanded from macro 'DIFF_SYMBOL_MOVED_LINE'
#define DIFF_SYMBOL_MOVED_LINE                  (1<<17)
                                                ^~~~~~~
/datasets/git/diff.c:1233:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (next->flags & DIFF_SYMBOL_MOVED_LINE_ZEBRA_MASK) ==
                     ^~~~~~~~~~~
/datasets/git/diff.c:1233:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (next->flags & DIFF_SYMBOL_MOVED_LINE_ZEBRA_MASK) ==
                                   ^
/datasets/git/diff.c:1087:4: note: expanded from macro 'DIFF_SYMBOL_MOVED_LINE_ZEBRA_MASK'
  (DIFF_SYMBOL_MOVED_LINE | DIFF_SYMBOL_MOVED_LINE_ALT)
   ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:756:34: note: expanded from macro 'DIFF_SYMBOL_MOVED_LINE'
#define DIFF_SYMBOL_MOVED_LINE                  (1<<17)
                                                ^~~~~~~
/datasets/git/diff.c:1234:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (l->flags & DIFF_SYMBOL_MOVED_LINE_ZEBRA_MASK))) {
                     ^~~~~~~~
/datasets/git/diff.c:1234:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (l->flags & DIFF_SYMBOL_MOVED_LINE_ZEBRA_MASK))) {
                                ^
/datasets/git/diff.c:1087:4: note: expanded from macro 'DIFF_SYMBOL_MOVED_LINE_ZEBRA_MASK'
  (DIFF_SYMBOL_MOVED_LINE | DIFF_SYMBOL_MOVED_LINE_ALT)
   ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:756:34: note: expanded from macro 'DIFF_SYMBOL_MOVED_LINE'
#define DIFF_SYMBOL_MOVED_LINE                  (1<<17)
                                                ^~~~~~~
/datasets/git/diff.c:1235:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        l->flags |= DIFF_SYMBOL_MOVED_LINE_UNINTERESTING;
                        ^~~~~~~~
/datasets/git/diff.c:1235:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        l->flags |= DIFF_SYMBOL_MOVED_LINE_UNINTERESTING;
                                    ^
/datasets/git/diff.c:758:47: note: expanded from macro 'DIFF_SYMBOL_MOVED_LINE_UNINTERESTING'
#define DIFF_SYMBOL_MOVED_LINE_UNINTERESTING    (1<<19)
                                                 ^
/datasets/git/diff.c:1240:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (prev && (prev->flags & DIFF_SYMBOL_MOVED_LINE) &&
                             ^~~~~~~~~~~
/datasets/git/diff.c:1240:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (prev && (prev->flags & DIFF_SYMBOL_MOVED_LINE) &&
                                           ^
/datasets/git/diff.c:756:35: note: expanded from macro 'DIFF_SYMBOL_MOVED_LINE'
#define DIFF_SYMBOL_MOVED_LINE                  (1<<17)
                                                 ^
/datasets/git/diff.c:1241:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (prev->flags & DIFF_SYMBOL_MOVED_LINE_ALT) !=
                     ^~~~~~~~~~~
/datasets/git/diff.c:1241:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (prev->flags & DIFF_SYMBOL_MOVED_LINE_ALT) !=
                                   ^
/datasets/git/diff.c:757:38: note: expanded from macro 'DIFF_SYMBOL_MOVED_LINE_ALT'
#define DIFF_SYMBOL_MOVED_LINE_ALT              (1<<18)
                                                 ^
/datasets/git/diff.c:1242:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       (l->flags & DIFF_SYMBOL_MOVED_LINE_ALT))
                        ^~~~~~~~
/datasets/git/diff.c:1242:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       (l->flags & DIFF_SYMBOL_MOVED_LINE_ALT))
                                   ^
/datasets/git/diff.c:757:38: note: expanded from macro 'DIFF_SYMBOL_MOVED_LINE_ALT'
#define DIFF_SYMBOL_MOVED_LINE_ALT              (1<<18)
                                                 ^
/datasets/git/diff.c:1242:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                       (l->flags & DIFF_SYMBOL_MOVED_LINE_ALT))
                                                               ^
                                                                {
/datasets/git/diff.c:1244:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (next && (next->flags & DIFF_SYMBOL_MOVED_LINE) &&
                             ^~~~~~~~~~~
/datasets/git/diff.c:1244:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (next && (next->flags & DIFF_SYMBOL_MOVED_LINE) &&
                                           ^
/datasets/git/diff.c:756:35: note: expanded from macro 'DIFF_SYMBOL_MOVED_LINE'
#define DIFF_SYMBOL_MOVED_LINE                  (1<<17)
                                                 ^
/datasets/git/diff.c:1245:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (next->flags & DIFF_SYMBOL_MOVED_LINE_ALT) !=
                     ^~~~~~~~~~~
/datasets/git/diff.c:1245:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (next->flags & DIFF_SYMBOL_MOVED_LINE_ALT) !=
                                   ^
/datasets/git/diff.c:757:38: note: expanded from macro 'DIFF_SYMBOL_MOVED_LINE_ALT'
#define DIFF_SYMBOL_MOVED_LINE_ALT              (1<<18)
                                                 ^
/datasets/git/diff.c:1246:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       (l->flags & DIFF_SYMBOL_MOVED_LINE_ALT))
                        ^~~~~~~~
/datasets/git/diff.c:1246:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       (l->flags & DIFF_SYMBOL_MOVED_LINE_ALT))
                                   ^
/datasets/git/diff.c:757:38: note: expanded from macro 'DIFF_SYMBOL_MOVED_LINE_ALT'
#define DIFF_SYMBOL_MOVED_LINE_ALT              (1<<18)
                                                 ^
/datasets/git/diff.c:1246:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                       (l->flags & DIFF_SYMBOL_MOVED_LINE_ALT))
                                                               ^
                                                                {
/datasets/git/diff.c:1253:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                l->flags |= DIFF_SYMBOL_MOVED_LINE_UNINTERESTING;
                ^~~~~~~~
/datasets/git/diff.c:1253:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                l->flags |= DIFF_SYMBOL_MOVED_LINE_UNINTERESTING;
                            ^
/datasets/git/diff.c:758:47: note: expanded from macro 'DIFF_SYMBOL_MOVED_LINE_UNINTERESTING'
#define DIFF_SYMBOL_MOVED_LINE_UNINTERESTING    (1<<19)
                                                 ^
/datasets/git/diff.c:1257:54: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static void emit_line_ws_markup(struct diff_options *o,
                                                     ^
/datasets/git/diff.c:1261:5: warning: 2 adjacent parameters of 'emit_line_ws_markup' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                unsigned ws_rule, int blank_at_eof)
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:1261:14: note: the first parameter in the range is 'ws_rule'
                                unsigned ws_rule, int blank_at_eof)
                                         ^~~~~~~
/datasets/git/diff.c:1261:27: note: the last parameter in the range is 'blank_at_eof'
                                unsigned ws_rule, int blank_at_eof)
                                                      ^~~~~~~~~~~~
/datasets/git/diff.c:1261:23: note: 'unsigned int' and 'int' may be implicitly converted
                                unsigned ws_rule, int blank_at_eof)
                                                  ^
/datasets/git/diff.c:1263:14: warning: variable name 'ws' is too short, expected at least 3 characters [readability-identifier-length]
        const char *ws = NULL;
                    ^
/datasets/git/diff.c:1264:13: warning: 'signed char' to 'int' conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse,cert-str34-c]
        int sign = o->output_indicators[sign_index];
                   ^
/datasets/git/diff.c:1268:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!*ws)
                         ^
                          {
/datasets/git/diff.c:1272:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ws && !set_sign)
                             ^
                              {
/datasets/git/diff.c:1276:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else if (blank_at_eof)
                                ^
                                 {
/datasets/git/diff.c:1288:13: warning: function 'emit_diff_symbol_from_struct' has cognitive complexity of 45 (threshold 25) [readability-function-cognitive-complexity]
static void emit_diff_symbol_from_struct(struct diff_options *o,
            ^
/datasets/git/diff.c:1299:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        switch (s) {
        ^
/datasets/git/diff.c:1332:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (o->flags.dual_color_diffed_diffs) {
                ^
/datasets/git/diff.c:1333:18: note: +3, including nesting penalty of 2, nesting level increased to 3
                        char c = !len ? 0 : line[0];
                                      ^
/datasets/git/diff.c:1335:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (c == '+')
                        ^
/datasets/git/diff.c:1337:9: note: +1, nesting level increased to 3
                        else if (c == '@')
                             ^
/datasets/git/diff.c:1339:9: note: +1, nesting level increased to 3
                        else if (c == '-')
                             ^
/datasets/git/diff.c:1347:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                switch (flags & (DIFF_SYMBOL_MOVED_LINE |
                ^
/datasets/git/diff.c:1370:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!o->flags.dual_color_diffed_diffs)
                ^
/datasets/git/diff.c:1372:3: note: +1, nesting level increased to 2
                else {
                ^
/datasets/git/diff.c:1373:18: note: +3, including nesting penalty of 2, nesting level increased to 3
                        char c = !len ? 0 : line[0];
                                      ^
/datasets/git/diff.c:1376:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (c == '-')
                        ^
/datasets/git/diff.c:1378:9: note: +1, nesting level increased to 3
                        else if (c == '@')
                             ^
/datasets/git/diff.c:1380:9: note: +1, nesting level increased to 3
                        else if (c == '+')
                             ^
/datasets/git/diff.c:1382:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/diff.c:1392:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                switch (flags & (DIFF_SYMBOL_MOVED_LINE |
                ^
/datasets/git/diff.c:1415:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!o->flags.dual_color_diffed_diffs)
                ^
/datasets/git/diff.c:1417:3: note: +1, nesting level increased to 2
                else {
                ^
/datasets/git/diff.c:1418:18: note: +3, including nesting penalty of 2, nesting level increased to 3
                        char c = !len ? 0 : line[0];
                                      ^
/datasets/git/diff.c:1421:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (c == '+')
                        ^
/datasets/git/diff.c:1423:9: note: +1, nesting level increased to 3
                        else if (c == '@')
                             ^
/datasets/git/diff.c:1425:9: note: +1, nesting level increased to 3
                        else if (c == '-')
                             ^
/datasets/git/diff.c:1427:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/diff.c:1448:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (line[0] != '\n') {
                ^
/datasets/git/diff.c:1459:22: note: +2, including nesting penalty of 1, nesting level increased to 2
                        strchr(line, ' ') ? "\t" : "");
                                          ^
/datasets/git/diff.c:1466:22: note: +2, including nesting penalty of 1, nesting level increased to 2
                        strchr(line, ' ') ? "\t" : "");
                                          ^
/datasets/git/diff.c:1288:63: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static void emit_diff_symbol_from_struct(struct diff_options *o,
                                                              ^
/datasets/git/diff.c:1292:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *context, *reset, *set, *set_sign, *meta, *fraginfo;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:1292:14: warning: variable 'context' is not initialized [cppcoreguidelines-init-variables]
        const char *context, *reset, *set, *set_sign, *meta, *fraginfo;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:1292:24: warning: variable 'reset' is not initialized [cppcoreguidelines-init-variables]
        const char *context, *reset, *set, *set_sign, *meta, *fraginfo;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:1292:32: warning: variable 'set' is not initialized [cppcoreguidelines-init-variables]
        const char *context, *reset, *set, *set_sign, *meta, *fraginfo;
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:1292:38: warning: variable 'set_sign' is not initialized [cppcoreguidelines-init-variables]
        const char *context, *reset, *set, *set_sign, *meta, *fraginfo;
                                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:1292:49: warning: variable 'meta' is not initialized [cppcoreguidelines-init-variables]
        const char *context, *reset, *set, *set_sign, *meta, *fraginfo;
                                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:1292:56: warning: variable 'fraginfo' is not initialized [cppcoreguidelines-init-variables]
        const char *context, *reset, *set, *set_sign, *meta, *fraginfo;
                                                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:1294:19: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
        enum diff_symbol s = eds->s;
                         ^
/datasets/git/diff.c:1303:3: warning: the value returned by this function should be used [cert-err33-c]
                putc('\n', o->file);
                ^~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:1303:3: note: cast the expression to void to silence this warning
/datasets/git/diff.c:1305:15: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                            nneof, strlen(nneof));
                                   ^
/datasets/git/diff.c:1324:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(o->file, "%s%c",
                ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:1324:3: note: cast the expression to void to silence this warning
/datasets/git/diff.c:1333:9: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                        char c = !len ? 0 : line[0];
                             ^
/datasets/git/diff.c:1333:24: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        char c = !len ? 0 : line[0];
                                            ^
/datasets/git/diff.c:1335:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (c == '+')
                                     ^
                                      {
/datasets/git/diff.c:1337:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (c == '@')
                                          ^
                                           {
/datasets/git/diff.c:1339:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (c == '-')
                                          ^
                                           {
/datasets/git/diff.c:1344:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                    flags & (DIFF_SYMBOL_CONTENT_WS_MASK), 0);
                                    ^       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:1344:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                    flags & (DIFF_SYMBOL_CONTENT_WS_MASK), 0);
                                             ^
/datasets/git/diff.c:759:38: note: expanded from macro 'DIFF_SYMBOL_CONTENT_WS_MASK'
#define DIFF_SYMBOL_CONTENT_WS_MASK (WSEH_NEW | WSEH_OLD | WSEH_CONTEXT | WS_RULE_MASK)
                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./diff.h:328:18: note: expanded from macro 'WSEH_NEW'
#define WSEH_NEW (1<<12)
                 ^
/datasets/git/diff.c:1347:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                switch (flags & (DIFF_SYMBOL_MOVED_LINE |
                        ^       ~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:1347:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                switch (flags & (DIFF_SYMBOL_MOVED_LINE |
                                 ^
/datasets/git/diff.c:756:34: note: expanded from macro 'DIFF_SYMBOL_MOVED_LINE'
#define DIFF_SYMBOL_MOVED_LINE                  (1<<17)
                                                ^
/datasets/git/diff.c:1348:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                 DIFF_SYMBOL_MOVED_LINE_ALT |
                                 ^
/datasets/git/diff.c:757:38: note: expanded from macro 'DIFF_SYMBOL_MOVED_LINE_ALT'
#define DIFF_SYMBOL_MOVED_LINE_ALT              (1<<18)
                                                 ^
/datasets/git/diff.c:1349:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                 DIFF_SYMBOL_MOVED_LINE_UNINTERESTING)) {
                                 ^
/datasets/git/diff.c:758:47: note: expanded from macro 'DIFF_SYMBOL_MOVED_LINE_UNINTERESTING'
#define DIFF_SYMBOL_MOVED_LINE_UNINTERESTING    (1<<19)
                                                 ^
/datasets/git/diff.c:1350:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                case DIFF_SYMBOL_MOVED_LINE |
                     ^
/datasets/git/diff.c:756:34: note: expanded from macro 'DIFF_SYMBOL_MOVED_LINE'
#define DIFF_SYMBOL_MOVED_LINE                  (1<<17)
                                                ^
/datasets/git/diff.c:1351:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                     DIFF_SYMBOL_MOVED_LINE_ALT |
                     ^
/datasets/git/diff.c:757:38: note: expanded from macro 'DIFF_SYMBOL_MOVED_LINE_ALT'
#define DIFF_SYMBOL_MOVED_LINE_ALT              (1<<18)
                                                 ^
/datasets/git/diff.c:1352:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                     DIFF_SYMBOL_MOVED_LINE_UNINTERESTING:
                     ^
/datasets/git/diff.c:758:47: note: expanded from macro 'DIFF_SYMBOL_MOVED_LINE_UNINTERESTING'
#define DIFF_SYMBOL_MOVED_LINE_UNINTERESTING    (1<<19)
                                                 ^
/datasets/git/diff.c:1355:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                case DIFF_SYMBOL_MOVED_LINE |
                     ^
/datasets/git/diff.c:756:34: note: expanded from macro 'DIFF_SYMBOL_MOVED_LINE'
#define DIFF_SYMBOL_MOVED_LINE                  (1<<17)
                                                ^~~~~~~
/datasets/git/diff.c:1356:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                     DIFF_SYMBOL_MOVED_LINE_ALT:
                     ^
/datasets/git/diff.c:757:38: note: expanded from macro 'DIFF_SYMBOL_MOVED_LINE_ALT'
#define DIFF_SYMBOL_MOVED_LINE_ALT              (1<<18)
                                                 ^
/datasets/git/diff.c:1359:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                case DIFF_SYMBOL_MOVED_LINE |
                     ^
/datasets/git/diff.c:756:34: note: expanded from macro 'DIFF_SYMBOL_MOVED_LINE'
#define DIFF_SYMBOL_MOVED_LINE                  (1<<17)
                                                ^~~~~~~
/datasets/git/diff.c:1360:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                     DIFF_SYMBOL_MOVED_LINE_UNINTERESTING:
                     ^
/datasets/git/diff.c:758:47: note: expanded from macro 'DIFF_SYMBOL_MOVED_LINE_UNINTERESTING'
#define DIFF_SYMBOL_MOVED_LINE_UNINTERESTING    (1<<19)
                                                 ^
/datasets/git/diff.c:1363:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                case DIFF_SYMBOL_MOVED_LINE:
                     ^
/datasets/git/diff.c:756:35: note: expanded from macro 'DIFF_SYMBOL_MOVED_LINE'
#define DIFF_SYMBOL_MOVED_LINE                  (1<<17)
                                                 ^
/datasets/git/diff.c:1370:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!o->flags.dual_color_diffed_diffs)
                                                      ^
                                                       {
/datasets/git/diff.c:1373:9: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                        char c = !len ? 0 : line[0];
                             ^
/datasets/git/diff.c:1373:24: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        char c = !len ? 0 : line[0];
                                            ^
/datasets/git/diff.c:1376:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (c == '-')
                                     ^
                                      {
/datasets/git/diff.c:1378:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (c == '@')
                                          ^
                                           {
/datasets/git/diff.c:1380:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (c == '+')
                                          ^
                                           {
/datasets/git/diff.c:1382:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/diff.c:1384:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        flags &= ~DIFF_SYMBOL_CONTENT_WS_MASK;
                        ^        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:1384:13: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                        flags &= ~DIFF_SYMBOL_CONTENT_WS_MASK;
                                 ^
/datasets/git/diff.c:1384:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        flags &= ~DIFF_SYMBOL_CONTENT_WS_MASK;
                                  ^
/datasets/git/diff.c:759:38: note: expanded from macro 'DIFF_SYMBOL_CONTENT_WS_MASK'
#define DIFF_SYMBOL_CONTENT_WS_MASK (WSEH_NEW | WSEH_OLD | WSEH_CONTEXT | WS_RULE_MASK)
                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./diff.h:328:18: note: expanded from macro 'WSEH_NEW'
#define WSEH_NEW (1<<12)
                 ^
/datasets/git/diff.c:1388:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                    flags & DIFF_SYMBOL_CONTENT_WS_MASK,
                                    ^
/datasets/git/diff.c:1388:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                    flags & DIFF_SYMBOL_CONTENT_WS_MASK,
                                            ^
/datasets/git/diff.c:759:38: note: expanded from macro 'DIFF_SYMBOL_CONTENT_WS_MASK'
#define DIFF_SYMBOL_CONTENT_WS_MASK (WSEH_NEW | WSEH_OLD | WSEH_CONTEXT | WS_RULE_MASK)
                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./diff.h:328:18: note: expanded from macro 'WSEH_NEW'
#define WSEH_NEW (1<<12)
                 ^
/datasets/git/diff.c:1389:9: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                    flags & DIFF_SYMBOL_CONTENT_BLANK_LINE_EOF);
                                    ^
/datasets/git/diff.c:1389:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
/datasets/git/diff.c:1389:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                    flags & DIFF_SYMBOL_CONTENT_BLANK_LINE_EOF);
                                            ^
/datasets/git/diff.c:755:45: note: expanded from macro 'DIFF_SYMBOL_CONTENT_BLANK_LINE_EOF'
#define DIFF_SYMBOL_CONTENT_BLANK_LINE_EOF      (1<<16)
                                                 ^
/datasets/git/diff.c:1392:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                switch (flags & (DIFF_SYMBOL_MOVED_LINE |
                        ^       ~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:1392:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                switch (flags & (DIFF_SYMBOL_MOVED_LINE |
                                 ^
/datasets/git/diff.c:756:34: note: expanded from macro 'DIFF_SYMBOL_MOVED_LINE'
#define DIFF_SYMBOL_MOVED_LINE                  (1<<17)
                                                ^
/datasets/git/diff.c:1393:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                 DIFF_SYMBOL_MOVED_LINE_ALT |
                                 ^
/datasets/git/diff.c:757:38: note: expanded from macro 'DIFF_SYMBOL_MOVED_LINE_ALT'
#define DIFF_SYMBOL_MOVED_LINE_ALT              (1<<18)
                                                 ^
/datasets/git/diff.c:1394:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                 DIFF_SYMBOL_MOVED_LINE_UNINTERESTING)) {
                                 ^
/datasets/git/diff.c:758:47: note: expanded from macro 'DIFF_SYMBOL_MOVED_LINE_UNINTERESTING'
#define DIFF_SYMBOL_MOVED_LINE_UNINTERESTING    (1<<19)
                                                 ^
/datasets/git/diff.c:1395:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                case DIFF_SYMBOL_MOVED_LINE |
                     ^
/datasets/git/diff.c:756:34: note: expanded from macro 'DIFF_SYMBOL_MOVED_LINE'
#define DIFF_SYMBOL_MOVED_LINE                  (1<<17)
                                                ^
/datasets/git/diff.c:1396:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                     DIFF_SYMBOL_MOVED_LINE_ALT |
                     ^
/datasets/git/diff.c:757:38: note: expanded from macro 'DIFF_SYMBOL_MOVED_LINE_ALT'
#define DIFF_SYMBOL_MOVED_LINE_ALT              (1<<18)
                                                 ^
/datasets/git/diff.c:1397:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                     DIFF_SYMBOL_MOVED_LINE_UNINTERESTING:
                     ^
/datasets/git/diff.c:758:47: note: expanded from macro 'DIFF_SYMBOL_MOVED_LINE_UNINTERESTING'
#define DIFF_SYMBOL_MOVED_LINE_UNINTERESTING    (1<<19)
                                                 ^
/datasets/git/diff.c:1400:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                case DIFF_SYMBOL_MOVED_LINE |
                     ^
/datasets/git/diff.c:756:34: note: expanded from macro 'DIFF_SYMBOL_MOVED_LINE'
#define DIFF_SYMBOL_MOVED_LINE                  (1<<17)
                                                ^~~~~~~
/datasets/git/diff.c:1401:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                     DIFF_SYMBOL_MOVED_LINE_ALT:
                     ^
/datasets/git/diff.c:757:38: note: expanded from macro 'DIFF_SYMBOL_MOVED_LINE_ALT'
#define DIFF_SYMBOL_MOVED_LINE_ALT              (1<<18)
                                                 ^
/datasets/git/diff.c:1404:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                case DIFF_SYMBOL_MOVED_LINE |
                     ^
/datasets/git/diff.c:756:34: note: expanded from macro 'DIFF_SYMBOL_MOVED_LINE'
#define DIFF_SYMBOL_MOVED_LINE                  (1<<17)
                                                ^~~~~~~
/datasets/git/diff.c:1405:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                     DIFF_SYMBOL_MOVED_LINE_UNINTERESTING:
                     ^
/datasets/git/diff.c:758:47: note: expanded from macro 'DIFF_SYMBOL_MOVED_LINE_UNINTERESTING'
#define DIFF_SYMBOL_MOVED_LINE_UNINTERESTING    (1<<19)
                                                 ^
/datasets/git/diff.c:1408:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                case DIFF_SYMBOL_MOVED_LINE:
                     ^
/datasets/git/diff.c:756:35: note: expanded from macro 'DIFF_SYMBOL_MOVED_LINE'
#define DIFF_SYMBOL_MOVED_LINE                  (1<<17)
                                                 ^
/datasets/git/diff.c:1415:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!o->flags.dual_color_diffed_diffs)
                                                      ^
                                                       {
/datasets/git/diff.c:1418:9: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                        char c = !len ? 0 : line[0];
                             ^
/datasets/git/diff.c:1418:24: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        char c = !len ? 0 : line[0];
                                            ^
/datasets/git/diff.c:1421:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (c == '+')
                                     ^
                                      {
/datasets/git/diff.c:1423:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (c == '@')
                                          ^
                                           {
/datasets/git/diff.c:1425:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (c == '-')
                                          ^
                                           {
/datasets/git/diff.c:1427:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/diff.c:1432:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                    flags & DIFF_SYMBOL_CONTENT_WS_MASK, 0);
                                    ^
/datasets/git/diff.c:1432:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                    flags & DIFF_SYMBOL_CONTENT_WS_MASK, 0);
                                            ^
/datasets/git/diff.c:759:38: note: expanded from macro 'DIFF_SYMBOL_CONTENT_WS_MASK'
#define DIFF_SYMBOL_CONTENT_WS_MASK (WSEH_NEW | WSEH_OLD | WSEH_CONTEXT | WS_RULE_MASK)
                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./diff.h:328:18: note: expanded from macro 'WSEH_NEW'
#define WSEH_NEW (1<<12)
                 ^
/datasets/git/diff.c:1438:3: warning: the value returned by this function should be used [cert-err33-c]
                fputs("~\n", o->file);
                ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:1438:3: note: cast the expression to void to silence this warning
/datasets/git/diff.c:1457:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(o->file, "%s%s+++ %s%s%s\n", diff_line_prefix(o), meta,
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:1457:3: note: cast the expression to void to silence this warning
/datasets/git/diff.c:1464:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(o->file, "%s%s--- %s%s%s\n", diff_line_prefix(o), meta,
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:1464:3: note: cast the expression to void to silence this warning
/datasets/git/diff.c:1470:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(o->file, "%s", line);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:1470:3: note: cast the expression to void to silence this warning
/datasets/git/diff.c:1473:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(o->file, "%sGIT binary patch\n", diff_line_prefix(o));
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:1473:3: note: cast the expression to void to silence this warning
/datasets/git/diff.c:1476:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(o->file, "%sdelta %s\n", diff_line_prefix(o), line);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:1476:3: note: cast the expression to void to silence this warning
/datasets/git/diff.c:1479:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(o->file, "%sliteral %s\n", diff_line_prefix(o), line);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:1479:3: note: cast the expression to void to silence this warning
/datasets/git/diff.c:1482:3: warning: the value returned by this function should be used [cert-err33-c]
                fputs(diff_line_prefix(o), o->file);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:1482:3: note: cast the expression to void to silence this warning
/datasets/git/diff.c:1483:3: warning: the value returned by this function should be used [cert-err33-c]
                fputc('\n', o->file);
                ^~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:1483:3: note: cast the expression to void to silence this warning
/datasets/git/diff.c:1501:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(o->file, "%sSubmodule %s contains untracked content\n",
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:1501:3: note: cast the expression to void to silence this warning
/datasets/git/diff.c:1505:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(o->file, "%sSubmodule %s contains modified content\n",
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:1505:3: note: cast the expression to void to silence this warning
/datasets/git/diff.c:1516:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(o->file, "%.*s", len, line);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:1516:3: note: cast the expression to void to silence this warning
/datasets/git/diff.c:1519:3: warning: the value returned by this function should be used [cert-err33-c]
                fputs(o->stat_sep, o->file);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:1519:3: note: cast the expression to void to silence this warning
/datasets/git/diff.c:1526:51: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static void emit_diff_symbol(struct diff_options *o, enum diff_symbol s,
                                                  ^
/datasets/git/diff.c:1526:71: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void emit_diff_symbol(struct diff_options *o, enum diff_symbol s,
                                                                      ^
/datasets/git/diff.c:1529:29: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
        struct emitted_diff_symbol e = {
                                   ^
/datasets/git/diff.c:1530:38: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                .line = line, .len = len, .flags = flags, .s = s
                                                   ^
/datasets/git/diff.c:1533:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (o->emitted_symbols)
                               ^
                                {
/datasets/git/diff.c:1535:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/diff.c:1539:51: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
void diff_emit_submodule_del(struct diff_options *o, const char *line)
                                                  ^
/datasets/git/diff.c:1541:55: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        emit_diff_symbol(o, DIFF_SYMBOL_SUBMODULE_DEL, line, strlen(line), 0);
                                                             ^
/datasets/git/diff.c:1544:51: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
void diff_emit_submodule_add(struct diff_options *o, const char *line)
                                                  ^
/datasets/git/diff.c:1546:55: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        emit_diff_symbol(o, DIFF_SYMBOL_SUBMODULE_ADD, line, strlen(line), 0);
                                                             ^
/datasets/git/diff.c:1549:57: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
void diff_emit_submodule_untracked(struct diff_options *o, const char *path)
                                                        ^
/datasets/git/diff.c:1552:11: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                         path, strlen(path), 0);
                               ^
/datasets/git/diff.c:1555:56: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
void diff_emit_submodule_modified(struct diff_options *o, const char *path)
                                                       ^
/datasets/git/diff.c:1558:11: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                         path, strlen(path), 0);
                               ^
/datasets/git/diff.c:1561:54: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
void diff_emit_submodule_header(struct diff_options *o, const char *header)
                                                     ^
/datasets/git/diff.c:1564:13: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                         header, strlen(header), 0);
                                 ^
/datasets/git/diff.c:1567:53: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
void diff_emit_submodule_error(struct diff_options *o, const char *err)
                                                    ^
/datasets/git/diff.c:1569:56: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        emit_diff_symbol(o, DIFF_SYMBOL_SUBMODULE_ERROR, err, strlen(err), 0);
                                                              ^
/datasets/git/diff.c:1572:59: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
void diff_emit_submodule_pipethrough(struct diff_options *o,
                                                          ^
/datasets/git/diff.c:1580:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!((ecbdata->ws_rule & WS_BLANK_AT_EOF) &&
               ^
/datasets/git/diff.c:1584:73: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
              ecbdata->blank_at_eof_in_postimage <= ecbdata->lno_in_postimage))
                                                                               ^
                                                                                {
/datasets/git/diff.c:1592:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned flags = WSEH_NEW | ecbdata->ws_rule;
                         ^
/datasets/git/./diff.h:328:18: note: expanded from macro 'WSEH_NEW'
#define WSEH_NEW (1<<12)
                 ^~~~~~~
/datasets/git/diff.c:1593:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (new_blank_line_at_eof(ecbdata, line, len))
                                                      ^
                                                       {
/datasets/git/diff.c:1594:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags |= DIFF_SYMBOL_CONTENT_BLANK_LINE_EOF;
                ^
/datasets/git/diff.c:1594:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags |= DIFF_SYMBOL_CONTENT_BLANK_LINE_EOF;
                         ^
/datasets/git/diff.c:755:45: note: expanded from macro 'DIFF_SYMBOL_CONTENT_BLANK_LINE_EOF'
#define DIFF_SYMBOL_CONTENT_BLANK_LINE_EOF      (1<<16)
                                                 ^
/datasets/git/diff.c:1602:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned flags = WSEH_OLD | ecbdata->ws_rule;
                         ^
/datasets/git/./diff.h:330:18: note: expanded from macro 'WSEH_OLD'
#define WSEH_OLD (1<<14)
                 ^~~~~~~
/datasets/git/diff.c:1609:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned flags = WSEH_CONTEXT | ecbdata->ws_rule;
                         ^
/datasets/git/./diff.h:329:22: note: expanded from macro 'WSEH_CONTEXT'
#define WSEH_CONTEXT (1<<13)
                     ^~~~~~~
/datasets/git/diff.c:1622:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *cp, *ep;
        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:1622:14: warning: variable 'cp' is not initialized [cppcoreguidelines-init-variables]
        const char *cp, *ep;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:1622:14: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:1622:19: warning: variable 'ep' is not initialized [cppcoreguidelines-init-variables]
        const char *cp, *ep;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:1622:19: warning: variable name 'ep' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:1625:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 1;
            ^
/datasets/git/diff.c:1631:12: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (len < 10 ||
                  ^
/datasets/git/diff.c:1632:6: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
            memcmp(line, atat, 2) ||
            ^
                                  != 0
/datasets/git/diff.c:1633:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
            !(ep = memmem(line + 2, len - 2, atat, 2))) {
              ^
/datasets/git/diff.c:1633:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/diff.c:1633:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/diff.c:1641:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ecbdata->opt->flags.dual_color_diffed_diffs)
                                                        ^
                                                         {
/datasets/git/diff.c:1644:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ecbdata->opt->flags.suppress_hunk_header_line_count)
                                                                ^
                                                                 {
/datasets/git/diff.c:1646:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/diff.c:1653:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for ( ; i < 3; i++)
        ^
/datasets/git/diff.c:1653:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for ( ; i < 3; i++)
                           ^
                            {
/datasets/git/diff.c:1654:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (line[len - i] == '\r' || line[len - i] == '\n')
                                                                   ^
                                                                    {
/datasets/git/diff.c:1658:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cp = ep; ep - line < len; ep++)
        ^
/datasets/git/diff.c:1658:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ep' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (cp = ep; ep - line < len; ep++)
                      ^
/datasets/git/diff.c:1658:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (cp = ep; ep - line < len; ep++)
                                            ^
                                             {
/datasets/git/diff.c:1659:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*ep != ' ' && *ep != '\t')
                                              ^
                                               {
/datasets/git/diff.c:1676:47: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                         DIFF_SYMBOL_CONTEXT_FRAGINFO, msgbuf.buf, msgbuf.len, 0);
                                                                   ^
/datasets/git/diff.c:1682:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/diff.c:1682:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:1683:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ARRAY_SIZE(diff_temp); i++)
        ^
/datasets/git/diff.c:1683:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < ARRAY_SIZE(diff_temp); i++)
                                                   ^
                                                    {
/datasets/git/diff.c:1684:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!diff_temp[i].name)
                                       ^
                                        {
/datasets/git/diff.c:1691:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/diff.c:1691:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:1692:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ARRAY_SIZE(diff_temp); i++) {
        ^
/datasets/git/diff.c:1693:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_tempfile_active(diff_temp[i].tempfile))
                                                              ^
                                                               {
/datasets/git/diff.c:1719:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (0 < size) {
        ^
/datasets/git/diff.c:1719:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'size' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (0 < size) {
               ^
/datasets/git/diff.c:1720:7: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
                int len;
                    ^
                        = 0
/datasets/git/diff.c:1723:16: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                len = endp ? (endp - data + 1) : size;
                             ^
/datasets/git/diff.c:1723:36: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                len = endp ? (endp - data + 1) : size;
                                                 ^
/datasets/git/diff.c:1734:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!endp)
                  ^
                   {
/datasets/git/diff.c:1744:31: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                              struct diff_options *o)
                                                   ^
/datasets/git/diff.c:1746:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int lc_a, lc_b;
        ^~~~~~~~~~~~~~~
/datasets/git/diff.c:1746:6: warning: variable 'lc_a' is not initialized [cppcoreguidelines-init-variables]
        int lc_a, lc_b;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:1746:12: warning: variable 'lc_b' is not initialized [cppcoreguidelines-init-variables]
        int lc_a, lc_b;
                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:1747:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        static struct strbuf a_name = STRBUF_INIT, b_name = STRBUF_INIT;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:1748:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *a_prefix, *b_prefix;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:1748:14: warning: variable 'a_prefix' is not initialized [cppcoreguidelines-init-variables]
        const char *a_prefix, *b_prefix;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:1748:25: warning: variable 'b_prefix' is not initialized [cppcoreguidelines-init-variables]
        const char *a_prefix, *b_prefix;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:1749:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *data_one, *data_two;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:1749:8: warning: variable 'data_one' is not initialized [cppcoreguidelines-init-variables]
        char *data_one, *data_two;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:1749:19: warning: variable 'data_two' is not initialized [cppcoreguidelines-init-variables]
        char *data_one, *data_two;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:1750:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t size_one, size_two;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:1750:9: warning: variable 'size_one' is not initialized [cppcoreguidelines-init-variables]
        size_t size_one, size_two;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:1750:19: warning: variable 'size_two' is not initialized [cppcoreguidelines-init-variables]
        size_t size_one, size_two;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:1773:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&ecbdata, 0, sizeof(ecbdata));
        ^~~~~~
/datasets/git/diff.c:1773:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&ecbdata, 0, sizeof(ecbdata));
        ^~~~~~
/datasets/git/diff.c:1777:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (ecbdata.ws_rule & WS_BLANK_AT_EOF) {
            ^
/datasets/git/diff.c:1778:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                mmfile_t mf1, mf2;
                ^~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:1779:13: warning: redundant cast to the same type [google-readability-casting]
                mf1.ptr = (char *)data_one;
                          ^~~~~~~~
/datasets/git/diff.c:1780:13: warning: redundant cast to the same type [google-readability-casting]
                mf2.ptr = (char *)data_two;
                          ^~~~~~~~
/datasets/git/diff.c:1781:14: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'long' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                mf1.size = size_one;
                           ^
/datasets/git/diff.c:1782:14: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'long' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                mf2.size = size_two;
                           ^
/datasets/git/diff.c:1788:31: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        lc_a = count_lines(data_one, size_one);
                                     ^
/datasets/git/diff.c:1789:31: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        lc_b = count_lines(data_two, size_two);
                                     ^
/datasets/git/diff.c:1792:17: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                         a_name.buf, a_name.len, 0);
                                     ^
/datasets/git/diff.c:1794:17: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                         b_name.buf, b_name.len, 0);
                                     ^
/datasets/git/diff.c:1797:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!o->irreversible_delete)
                                    ^
                                     {
/datasets/git/diff.c:1799:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/diff.c:1804:57: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        emit_diff_symbol(o, DIFF_SYMBOL_REWRITE_DIFF, out.buf, out.len, 0);
                                                               ^
/datasets/git/diff.c:1807:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (lc_a && !o->irreversible_delete)
                                            ^
                                             {
/datasets/git/diff.c:1808:47: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                emit_rewrite_lines(&ecbdata, '-', data_one, size_one);
                                                            ^
/datasets/git/diff.c:1809:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (lc_b)
                 ^
                  {
/datasets/git/diff.c:1810:47: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                emit_rewrite_lines(&ecbdata, '+', data_two, size_two);
                                                            ^
/datasets/git/diff.c:1811:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (textconv_one)
                         ^
                          {
/datasets/git/diff.c:1812:8: warning: redundant cast to the same type [google-readability-casting]
                free((char *)data_one);
                     ^~~~~~~~
/datasets/git/diff.c:1813:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (textconv_two)
                         ^
                          {
/datasets/git/diff.c:1814:8: warning: redundant cast to the same type [google-readability-casting]
                free((char *)data_two);
                     ^~~~~~~~
/datasets/git/diff.c:1817:8: warning: accessing fields in struct 'diff_words_buffer' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct diff_words_buffer {
       ^
/datasets/git/diff.c:1817:8: note: use "__attribute__((aligned(64)))" to align struct 'diff_words_buffer' to 64 bytes
/datasets/git/diff.c:1820:9: warning: accessing fields in struct 'diff_words_orig' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
        struct diff_words_orig {
               ^
/datasets/git/diff.c:1820:9: note: use "__attribute__((aligned(16)))" to align struct 'diff_words_orig' to 16 bytes
/datasets/git/diff.c:1829:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(buffer->text.ptr, buffer->text.size + len, buffer->alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/diff.c:1832:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(buffer->text.ptr + buffer->text.size, line, len);
        ^~~~~~
/datasets/git/diff.c:1832:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(buffer->text.ptr + buffer->text.size, line, len);
        ^~~~~~
/datasets/git/diff.c:1833:23: warning: narrowing conversion from 'unsigned long' to signed type 'long' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        buffer->text.size += len;
                             ^
/datasets/git/diff.c:1837:8: warning: accessing fields in struct 'diff_words_style_elem' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct diff_words_style_elem {
       ^
/datasets/git/diff.c:1837:8: note: use "__attribute__((aligned(32)))" to align struct 'diff_words_style_elem' to 32 bytes
/datasets/git/diff.c:1844:8: warning: accessing fields in struct 'diff_words_style' is inefficient due to padding; only needs 84 bytes but is using 88 bytes [altera-struct-pack-align]
struct diff_words_style {
       ^
/datasets/git/diff.c:1844:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'diff_words_style'
/datasets/git/diff.c:1844:8: warning: accessing fields in struct 'diff_words_style' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct diff_words_style {
       ^
/datasets/git/diff.c:1844:8: note: use "__attribute__((aligned(128)))" to align struct 'diff_words_style' to 128 bytes
/datasets/git/diff.c:1850:32: warning: variable 'diff_words_styles' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct diff_words_style diff_words_styles[] = {
                               ^
/datasets/git/diff.c:1856:8: warning: accessing fields in struct 'diff_words_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct diff_words_data {
       ^
/datasets/git/diff.c:1856:8: note: use "__attribute__((aligned(128)))" to align struct 'diff_words_data' to 128 bytes
/datasets/git/diff.c:1866:64: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static int fn_out_diff_words_write_helper(struct diff_options *o,
                                                               ^
/datasets/git/diff.c:1869:8: note: inferred assignment of ID-dependent value from ID-dependent variable p [altera-id-dependent-backward-branch]
                                          size_t count, const char *buf)
                                          ^
/datasets/git/diff.c:1872:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/diff.c:1874:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (count) {
        ^
/datasets/git/diff.c:1874:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'count' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (count) {
               ^
/datasets/git/diff.c:1875:9: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                char *p = memchr(buf, '\n', count);
                      ^
/datasets/git/diff.c:1876:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (print)
                          ^
                           {
/datasets/git/diff.c:1882:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (st_el->color && *st_el->color)
                                                          ^
                                                           {
/datasets/git/diff.c:1887:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (reset)
                                  ^
                                   {
/datasets/git/diff.c:1890:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!p)
                       ^
                        {
/datasets/git/diff.c:1899:15: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                         sb.buf, sb.len, 0);
                                                 ^
/datasets/git/diff.c:1905:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (sb.len)
                   ^
                    {
/datasets/git/diff.c:1907:14: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                 sb.buf, sb.len, 0);
                                         ^
/datasets/git/diff.c:1950:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else {
          ^~~~~~
/datasets/git/diff.c:1956:25: warning: 2 adjacent parameters of 'fn_out_diff_words_aux' of similar type ('long') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                  long minus_first, long minus_len,
                                                    ^~~~~~~~~~~~~~~
/datasets/git/diff.c:1956:30: note: the first parameter in the range is 'minus_len'
                                  long minus_first, long minus_len,
                                                         ^~~~~~~~~
/datasets/git/diff.c:1957:12: note: the last parameter in the range is 'plus_first'
                                  long plus_first, long plus_len,
                                       ^~~~~~~~~~
/datasets/git/diff.c:1958:19: warning: parameter 'func' is unused [misc-unused-parameters]
                                  const char *func, long funclen)
                                              ^
/datasets/git/diff.c:1958:30: warning: parameter 'funclen' is unused [misc-unused-parameters]
                                  const char *func, long funclen)
                                                         ^
/datasets/git/diff.c:1962:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *minus_begin, *minus_end, *plus_begin, *plus_end;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:1962:14: warning: variable 'minus_begin' is not initialized [cppcoreguidelines-init-variables]
        const char *minus_begin, *minus_end, *plus_begin, *plus_end;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:1962:28: warning: variable 'minus_end' is not initialized [cppcoreguidelines-init-variables]
        const char *minus_begin, *minus_end, *plus_begin, *plus_end;
                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:1962:40: warning: variable 'plus_begin' is not initialized [cppcoreguidelines-init-variables]
        const char *minus_begin, *minus_end, *plus_begin, *plus_end;
                                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:1962:53: warning: variable 'plus_end' is not initialized [cppcoreguidelines-init-variables]
        const char *minus_begin, *minus_end, *plus_begin, *plus_end;
                                                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:1964:14: warning: variable 'line_prefix' is not initialized [cppcoreguidelines-init-variables]
        const char *line_prefix;
                    ^
                                = NULL
/datasets/git/diff.c:1974:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/diff.c:1981:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/diff.c:1985:3: warning: the value returned by this function should be used [cert-err33-c]
                fputs(line_prefix, diff_words->opt->file);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:1985:3: note: cast the expression to void to silence this warning
/datasets/git/diff.c:2005:27: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        diff_words->last_minus = minus_first;
                                 ^
/datasets/git/diff.c:2012:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (word_regex && *begin < buffer->size) {
        ^
/datasets/git/diff.c:2012:9: warning: backward branch (while loop) is ID-dependent due to member reference to 'size' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (word_regex && *begin < buffer->size) {
               ^
/datasets/git/diff.c:2016:10: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                        char *p = memchr(buffer->ptr + *begin + match[0].rm_so,
                              ^
/datasets/git/diff.c:2018:17: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        *end = p ? p - buffer->ptr : match[0].rm_eo + *begin;
                                     ^
/datasets/git/diff.c:2018:33: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        *end = p ? p - buffer->ptr : match[0].rm_eo + *begin;
                                                     ^
/datasets/git/diff.c:2020:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (*begin == *end)
                                           ^
                                            {
/datasets/git/diff.c:2022:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/diff.c:2030:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*begin < buffer->size && isspace(buffer->ptr[*begin]))
        ^
/datasets/git/diff.c:2030:9: warning: backward branch (while loop) is ID-dependent due to member reference to 'size' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (*begin < buffer->size && isspace(buffer->ptr[*begin]))
               ^
/datasets/git/diff.c:2030:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        while (*begin < buffer->size && isspace(buffer->ptr[*begin]))
                                        ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/diff.c:2030:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (*begin < buffer->size && isspace(buffer->ptr[*begin]))
                                                                     ^
                                                                      {
/datasets/git/diff.c:2032:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*begin >= buffer->size)
                                   ^
                                    {
/datasets/git/diff.c:2037:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*end < buffer->size && !isspace(buffer->ptr[*end]))
        ^
/datasets/git/diff.c:2037:9: warning: backward branch (while loop) is ID-dependent due to member reference to 'size' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (*end < buffer->size && !isspace(buffer->ptr[*end]))
               ^
/datasets/git/diff.c:2037:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        while (*end < buffer->size && !isspace(buffer->ptr[*end]))
                                       ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/diff.c:2037:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (*end < buffer->size && !isspace(buffer->ptr[*end]))
                                                                  ^
                                                                   {
/datasets/git/diff.c:2048:13: warning: function 'diff_words_fill' has cognitive complexity of 30 (threshold 25) [readability-function-cognitive-complexity]
static void diff_words_fill(struct diff_words_buffer *buffer, mmfile_t *out,
            ^
/datasets/git/diff.c:2058:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        ALLOC_GROW(buffer->orig, 1, buffer->orig_alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/diff.c:2058:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        ALLOC_GROW(buffer->orig, 1, buffer->orig_alloc);
        ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/diff.c:2058:2: note: +3, including nesting penalty of 2, nesting level increased to 3
        ALLOC_GROW(buffer->orig, 1, buffer->orig_alloc);
        ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/diff.c:2058:2: note: +1, nesting level increased to 3
        ALLOC_GROW(buffer->orig, 1, buffer->orig_alloc);
        ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/diff.c:2062:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < buffer->text.size; i++) {
        ^
/datasets/git/diff.c:2063:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (find_word_boundaries(&buffer->text, word_regex, &i, &j))
                ^
/datasets/git/diff.c:2067:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                ALLOC_GROW(buffer->orig, buffer->orig_nr + 1,
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/diff.c:2067:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                ALLOC_GROW(buffer->orig, buffer->orig_nr + 1,
                ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/diff.c:2067:3: note: +4, including nesting penalty of 3, nesting level increased to 4
                ALLOC_GROW(buffer->orig, buffer->orig_nr + 1,
                ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/diff.c:2067:3: note: +1, nesting level increased to 4
                ALLOC_GROW(buffer->orig, buffer->orig_nr + 1,
                ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/diff.c:2074:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                ALLOC_GROW(out->ptr, out->size + j - i + 1, alloc);
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/diff.c:2074:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                ALLOC_GROW(out->ptr, out->size + j - i + 1, alloc);
                ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/diff.c:2074:3: note: +4, including nesting penalty of 3, nesting level increased to 4
                ALLOC_GROW(out->ptr, out->size + j - i + 1, alloc);
                ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/diff.c:2074:3: note: +1, nesting level increased to 4
                ALLOC_GROW(out->ptr, out->size + j - i + 1, alloc);
                ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/diff.c:2051:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, j;
        ^~~~~~~~~
/datasets/git/diff.c:2051:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, j;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:2051:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:2051:9: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int i, j;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:2051:9: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:2058:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(buffer->orig, 1, buffer->orig_alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/diff.c:2051:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int i, j;
        ^
/datasets/git/diff.c:2062:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < buffer->text.size; i++) {
                    ^
/datasets/git/diff.c:2063:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (find_word_boundaries(&buffer->text, word_regex, &i, &j))
                                                                            ^
                                                                             {
/datasets/git/diff.c:2067:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                ALLOC_GROW(buffer->orig, buffer->orig_nr + 1,
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/diff.c:2074:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                ALLOC_GROW(out->ptr, out->size + j - i + 1, alloc);
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/diff.c:2075:3: warning: Null pointer passed to 1st parameter expecting 'nonnull' [clang-analyzer-core.NonNullParamChecker]
                memcpy(out->ptr + out->size, buffer->text.ptr + i, j - i);
                ^
/datasets/git/diff.c:3461:6: note: Assuming field 'reverse_diff' is 0
        if (o->flags.reverse_diff) {
            ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:3461:2: note: Taking false branch
        if (o->flags.reverse_diff) {
        ^
/datasets/git/diff.c:3469:6: note: Assuming field 'submodule_format' is not equal to DIFF_SUBMODULE_LOG
        if (o->submodule_format == DIFF_SUBMODULE_LOG &&
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:3469:48: note: Left side of '&&' is false
        if (o->submodule_format == DIFF_SUBMODULE_LOG &&
                                                      ^
/datasets/git/diff.c:3477:13: note: Assuming field 'submodule_format' is not equal to DIFF_SUBMODULE_INLINE_DIFF
        } else if (o->submodule_format == DIFF_SUBMODULE_INLINE_DIFF &&
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:3477:63: note: Left side of '&&' is false
        } else if (o->submodule_format == DIFF_SUBMODULE_INLINE_DIFF &&
                                                                     ^
/datasets/git/diff.c:3487:6: note: Assuming field 'allow_textconv' is 0
        if (o->flags.allow_textconv) {
            ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:3487:2: note: Taking false branch
        if (o->flags.allow_textconv) {
        ^
/datasets/git/diff.c:3493:11: note: Assuming field 'mode' is equal to 0
        name_a = DIFF_FILE_VALID(one) ? name_a : name_b;
                 ^
/datasets/git/./diffcore.h:52:32: note: expanded from macro 'DIFF_FILE_VALID'
#define DIFF_FILE_VALID(spec) (((spec)->mode) != 0)
                               ^~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:3493:11: note: '?' condition is false
        name_a = DIFF_FILE_VALID(one) ? name_a : name_b;
                 ^
/datasets/git/./diffcore.h:52:31: note: expanded from macro 'DIFF_FILE_VALID'
#define DIFF_FILE_VALID(spec) (((spec)->mode) != 0)
                              ^
/datasets/git/diff.c:3494:11: note: Assuming field 'mode' is equal to 0
        name_b = DIFF_FILE_VALID(two) ? name_b : name_a;
                 ^
/datasets/git/./diffcore.h:52:32: note: expanded from macro 'DIFF_FILE_VALID'
#define DIFF_FILE_VALID(spec) (((spec)->mode) != 0)
                               ^~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:3494:11: note: '?' condition is false
        name_b = DIFF_FILE_VALID(two) ? name_b : name_a;
                 ^
/datasets/git/./diffcore.h:52:31: note: expanded from macro 'DIFF_FILE_VALID'
#define DIFF_FILE_VALID(spec) (((spec)->mode) != 0)
                              ^
/datasets/git/diff.c:3496:40: note: Assuming the condition is false
        a_one = quote_two(a_prefix, name_a + (*name_a == '/'));
                                              ^~~~~~~~~~~~~~
/datasets/git/diff.c:3498:11: note: Field 'mode' is equal to 0
        lbl[0] = DIFF_FILE_VALID(one) ? a_one : "/dev/null";
                 ^
/datasets/git/./diffcore.h:52:41: note: expanded from macro 'DIFF_FILE_VALID'
#define DIFF_FILE_VALID(spec) (((spec)->mode) != 0)
                                        ^
/datasets/git/diff.c:3498:11: note: '?' condition is false
        lbl[0] = DIFF_FILE_VALID(one) ? a_one : "/dev/null";
                 ^
/datasets/git/./diffcore.h:52:31: note: expanded from macro 'DIFF_FILE_VALID'
#define DIFF_FILE_VALID(spec) (((spec)->mode) != 0)
                              ^
/datasets/git/diff.c:3499:11: note: Field 'mode' is equal to 0
        lbl[1] = DIFF_FILE_VALID(two) ? b_two : "/dev/null";
                 ^
/datasets/git/./diffcore.h:52:41: note: expanded from macro 'DIFF_FILE_VALID'
#define DIFF_FILE_VALID(spec) (((spec)->mode) != 0)
                                        ^
/datasets/git/diff.c:3499:11: note: '?' condition is false
        lbl[1] = DIFF_FILE_VALID(two) ? b_two : "/dev/null";
                 ^
/datasets/git/./diffcore.h:52:31: note: expanded from macro 'DIFF_FILE_VALID'
#define DIFF_FILE_VALID(spec) (((spec)->mode) != 0)
                              ^
/datasets/git/diff.c:3500:2: note: Taking true branch
        if (diff_filepair_is_phoney(one, two)) {
        ^
/datasets/git/diff.c:3512:6: note: Assuming the condition is false
        if (lbl[0][0] == '/') {
            ^~~~~~~~~~~~~~~~
/datasets/git/diff.c:3512:2: note: Taking false branch
        if (lbl[0][0] == '/') {
        ^
/datasets/git/diff.c:3519:11: note: Assuming the condition is false
        else if (lbl[1][0] == '/') {
                 ^~~~~~~~~~~~~~~~
/datasets/git/diff.c:3519:7: note: Taking false branch
        else if (lbl[1][0] == '/') {
             ^
/datasets/git/diff.c:3526:12: note: 'one->mode' is equal to 'two->mode'
                if (one->mode != two->mode) {
                         ^
/datasets/git/diff.c:3526:3: note: Taking false branch
                if (one->mode != two->mode) {
                ^
/datasets/git/diff.c:3531:7: note: Assuming 'xfrm_msg' is null
                if (xfrm_msg)
                    ^~~~~~~~
/datasets/git/diff.c:3531:3: note: Taking false branch
                if (xfrm_msg)
                ^
/datasets/git/diff.c:3538:3: note: Taking false branch
                if ((one->mode ^ two->mode) & S_IFMT)
                ^
/datasets/git/diff.c:3540:7: note: Assuming 'complete_rewrite' is 0
                if (complete_rewrite &&
                    ^~~~~~~~~~~~~~~~
/datasets/git/diff.c:3540:24: note: Left side of '&&' is false
                if (complete_rewrite &&
                                     ^
/datasets/git/diff.c:3553:6: note: Assuming field 'irreversible_delete' is 0
        if (o->irreversible_delete && lbl[1][0] == '/') {
            ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:3553:29: note: Left side of '&&' is false
        if (o->irreversible_delete && lbl[1][0] == '/') {
                                   ^
/datasets/git/diff.c:3558:13: note: Assuming field 'text' is not equal to 0
        } else if (!o->flags.text &&
                   ^~~~~~~~~~~~~~
/datasets/git/diff.c:3558:28: note: Left side of '&&' is false
        } else if (!o->flags.text &&
                                  ^
/datasets/git/diff.c:3613:7: note: Assuming 'must_show_header' is 0
                if (must_show_header) {
                    ^~~~~~~~~~~~~~~~
/datasets/git/diff.c:3613:3: note: Taking false branch
                if (must_show_header) {
                ^
/datasets/git/diff.c:3623:8: note: 'pe' is null
                if (!pe)
                     ^~
/datasets/git/diff.c:3623:3: note: Taking true branch
                if (!pe)
                ^
/datasets/git/diff.c:3629:7: note: Assuming field 'suppress_diff_headers' is 0
                if (o->flags.suppress_diff_headers)
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:3629:3: note: Taking false branch
                if (o->flags.suppress_diff_headers)
                ^
/datasets/git/diff.c:3634:7: note: Assuming the condition is false
                if (ecbdata.ws_rule & WS_BLANK_AT_EOF)
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:3634:3: note: Taking false branch
                if (ecbdata.ws_rule & WS_BLANK_AT_EOF)
                ^
/datasets/git/diff.c:3637:7: note: Assuming field 'len' is 0
                if (header.len && !o->flags.suppress_diff_headers)
                    ^~~~~~~~~~
/datasets/git/diff.c:3637:18: note: Left side of '&&' is false
                if (header.len && !o->flags.suppress_diff_headers)
                               ^
/datasets/git/diff.c:3647:7: note: Assuming field 'funccontext' is 0
                if (o->flags.funccontext)
                    ^~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:3647:3: note: Taking false branch
                if (o->flags.funccontext)
                ^
/datasets/git/diff.c:3649:7: note: 'pe' is null
                if (pe)
                    ^~
/datasets/git/diff.c:3649:3: note: Taking false branch
                if (pe)
                ^
/datasets/git/diff.c:3652:14: note: Assuming the environment variable does not exist
                diffopts = getenv("GIT_DIFF_OPTS");
                           ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:3653:8: note: 'diffopts' is null
                if (!diffopts)
                     ^~~~~~~~
/datasets/git/diff.c:3653:3: note: Taking true branch
                if (!diffopts)
                ^
/datasets/git/diff.c:3660:7: note: Assuming field 'word_diff' is 0
                if (o->word_diff)
                    ^~~~~~~~~~~~
/datasets/git/diff.c:3660:3: note: Taking false branch
                if (o->word_diff)
                ^
/datasets/git/diff.c:3662:7: note: Assuming the condition is false
                if (xdi_diff_outf(&mf1, &mf2, NULL, fn_out_consume,
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:3662:3: note: Taking false branch
                if (xdi_diff_outf(&mf1, &mf2, NULL, fn_out_consume,
                ^
/datasets/git/diff.c:3665:7: note: Assuming field 'word_diff' is not equal to 0
                if (o->word_diff)
                    ^~~~~~~~~~~~
/datasets/git/diff.c:3665:3: note: Taking true branch
                if (o->word_diff)
                ^
/datasets/git/diff.c:3666:4: note: Calling 'free_diff_words_data'
                        free_diff_words_data(&ecbdata);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:2235:6: note: Assuming field 'diff_words' is non-null
        if (ecbdata->diff_words) {
            ^~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:2235:2: note: Taking true branch
        if (ecbdata->diff_words) {
        ^
/datasets/git/diff.c:2236:3: note: Calling 'diff_words_flush'
                diff_words_flush(ecbdata);
                ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:2142:6: note: Assuming field 'size' is not equal to 0
        if (ecbdata->diff_words->minus.text.size ||
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:2142:43: note: Left side of '||' is true
        if (ecbdata->diff_words->minus.text.size ||
                                                 ^
/datasets/git/diff.c:2144:3: note: Calling 'diff_words_show'
                diff_words_show(ecbdata->diff_words);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:2094:9: note: Assuming 'opt' is non-null
        assert(opt);
               ^
/usr/include/assert.h:109:11: note: expanded from macro 'assert'
      if (expr)                                                         \
          ^~~~
/datasets/git/diff.c:2094:2: note: Taking true branch
        assert(opt);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/diff.c:2098:6: note: Assuming field 'size' is not equal to 0
        if (!diff_words->plus.text.size) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:2098:2: note: Taking false branch
        if (!diff_words->plus.text.size) {
        ^
/datasets/git/diff.c:2114:2: note: Calling 'diff_words_fill'
        diff_words_fill(&diff_words->minus, &minus, diff_words->word_regex);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:2055:2: note: Null pointer value stored to 'minus.ptr'
        out->ptr = NULL;
        ^~~~~~~~~~~~~~~
/datasets/git/diff.c:2058:2: note: Assuming 1 is <= field 'orig_alloc'
        ALLOC_GROW(buffer->orig, 1, buffer->orig_alloc);
        ^
/datasets/git/./refs/../cache.h:702:7: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                    ^~~~~~~~~~~~
/datasets/git/diff.c:2058:2: note: Taking false branch
        ALLOC_GROW(buffer->orig, 1, buffer->orig_alloc);
        ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/diff.c:2058:2: note: Loop condition is false.  Exiting loop
        ALLOC_GROW(buffer->orig, 1, buffer->orig_alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/diff.c:2062:14: note: Assuming 'i' is < field 'size'
        for (i = 0; i < buffer->text.size; i++) {
                    ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:2062:2: note: Loop condition is true.  Entering loop body
        for (i = 0; i < buffer->text.size; i++) {
        ^
/datasets/git/diff.c:2063:7: note: Assuming the condition is false
                if (find_word_boundaries(&buffer->text, word_regex, &i, &j))
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:2063:3: note: Taking false branch
                if (find_word_boundaries(&buffer->text, word_regex, &i, &j))
                ^
/datasets/git/diff.c:2067:3: note: Assuming the condition is false
                ALLOC_GROW(buffer->orig, buffer->orig_nr + 1,
                ^
/datasets/git/./refs/../cache.h:702:7: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                    ^~~~~~~~~~~~
/datasets/git/diff.c:2067:3: note: Taking false branch
                ALLOC_GROW(buffer->orig, buffer->orig_nr + 1,
                ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/diff.c:2067:3: note: Loop condition is false.  Exiting loop
                ALLOC_GROW(buffer->orig, buffer->orig_nr + 1,
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/diff.c:2074:3: note: Assuming the condition is false
                ALLOC_GROW(out->ptr, out->size + j - i + 1, alloc);
                ^
/datasets/git/./refs/../cache.h:702:7: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                    ^~~~~~~~~~~~
/datasets/git/diff.c:2074:3: note: Taking false branch
                ALLOC_GROW(out->ptr, out->size + j - i + 1, alloc);
                ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/diff.c:2074:3: note: Loop condition is false.  Exiting loop
                ALLOC_GROW(out->ptr, out->size + j - i + 1, alloc);
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/diff.c:2075:3: note: Null pointer passed to 1st parameter expecting 'nonnull'
                memcpy(out->ptr + out->size, buffer->text.ptr + i, j - i);
                ^      ~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:2075:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(out->ptr + out->size, buffer->text.ptr + i, j - i);
                ^~~~~~
/datasets/git/diff.c:2075:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(out->ptr + out->size, buffer->text.ptr + i, j - i);
                ^~~~~~
/datasets/git/diff.c:2088:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        mmfile_t minus, plus;
        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:2092:14: warning: variable 'line_prefix' is not initialized [cppcoreguidelines-init-variables]
        const char *line_prefix;
                    ^
                                = NULL
/datasets/git/diff.c:2100:19: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                 line_prefix, strlen(line_prefix), 0);
                                              ^
/datasets/git/diff.c:2112:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&xpp, 0, sizeof(xpp));
        ^~~~~~
/datasets/git/diff.c:2112:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&xpp, 0, sizeof(xpp));
        ^~~~~~
/datasets/git/diff.c:2113:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&xecfg, 0, sizeof(xecfg));
        ^~~~~~
/datasets/git/diff.c:2113:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&xecfg, 0, sizeof(xecfg));
        ^~~~~~
/datasets/git/diff.c:2120:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                          diff_words, &xpp, &xecfg))
                                                    ^
                                                     {
/datasets/git/diff.c:2126:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (color_words_output_graph_prefix(diff_words))
                                                                ^
                                                                 {
/datasets/git/diff.c:2128:20: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                         line_prefix, strlen(line_prefix), 0);
                                                      ^
/datasets/git/diff.c:2140:23: warning: variable name 'wo' is too short, expected at least 3 characters [readability-identifier-length]
        struct diff_options *wo = ecbdata->diff_words->opt;
                             ^
/datasets/git/diff.c:2143:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            ecbdata->diff_words->plus.text.size)
                                                ^
                                                 {
/datasets/git/diff.c:2147:24: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                struct diff_options *o = ecbdata->opt;
                                     ^
/datasets/git/diff.c:2149:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/diff.c:2149:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:2155:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < wol->nr; i++)
                ^
/datasets/git/diff.c:2155:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'wol' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < wol->nr; i++)
                            ^
/datasets/git/diff.c:2155:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < wol->nr; i++)
                                             ^
                                              {
/datasets/git/diff.c:2158:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < wol->nr; i++)
                ^
/datasets/git/diff.c:2158:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'wol' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < wol->nr; i++)
                            ^
/datasets/git/diff.c:2158:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < wol->nr; i++)
                                             ^
                                              {
/datasets/git/diff.c:2169:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (one->driver)
                        ^
                         {
/datasets/git/diff.c:2172:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (S_ISREG(one->mode))
                               ^
                                {
/datasets/git/diff.c:2176:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!one->driver)
                         ^
                          {
/datasets/git/diff.c:2192:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/diff.c:2192:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:2193:23: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
        struct diff_options *o = xmalloc(sizeof(struct diff_options));
                             ^
/datasets/git/diff.c:2194:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(o, orig_opts, sizeof(struct diff_options));
        ^~~~~~
/datasets/git/diff.c:2194:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(o, orig_opts, sizeof(struct diff_options));
        ^~~~~~
/datasets/git/diff.c:2200:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (orig_opts->emitted_symbols)
                                       ^
                                        {
/datasets/git/diff.c:2203:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!o->word_regex)
                           ^
                            {
/datasets/git/diff.c:2205:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!o->word_regex)
                           ^
                            {
/datasets/git/diff.c:2207:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!o->word_regex)
                           ^
                            {
/datasets/git/diff.c:2214:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            REG_EXTENDED | REG_NEWLINE))
                                                        ^
                                                         {
/datasets/git/diff.c:2218:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ARRAY_SIZE(diff_words_styles); i++) {
        ^
/datasets/git/diff.c:2226:28: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                struct diff_words_style *st = ecbdata->diff_words->style;
                                         ^
/datasets/git/diff.c:2247:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FREE_AND_NULL(ecbdata->diff_words);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/diff.c:2251:28: warning: 2 adjacent parameters of 'diff_get_color' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
const char *diff_get_color(int diff_use_color, enum color_diff ix)
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:2251:32: note: the first parameter in the range is 'diff_use_color'
const char *diff_get_color(int diff_use_color, enum color_diff ix)
                               ^~~~~~~~~~~~~~
/datasets/git/diff.c:2251:64: note: the last parameter in the range is 'ix'
const char *diff_get_color(int diff_use_color, enum color_diff ix)
                                                               ^~
/datasets/git/diff.c:2251:48: note: 'int' and 'enum color_diff' may be implicitly converted
const char *diff_get_color(int diff_use_color, enum color_diff ix)
                                               ^
/datasets/git/diff.c:2251:64: warning: parameter name 'ix' is too short, expected at least 3 characters [readability-identifier-length]
const char *diff_get_color(int diff_use_color, enum color_diff ix)
                                                               ^
/datasets/git/diff.c:2253:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (want_color(diff_use_color))
                                       ^
                                        {
/datasets/git/diff.c:2260:17: warning: variable 'msgbuf' is not initialized [cppcoreguidelines-init-variables]
        struct strbuf *msgbuf;
                       ^
                              = NULL
/datasets/git/diff.c:2272:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        size_t l = len;
        ^
/datasets/git/diff.c:2261:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opt->output_prefix)
                                ^
                                 {
/datasets/git/diff.c:2268:47: warning: pointer parameter 'line' can be pointer to const [readability-non-const-parameter]
static unsigned long sane_truncate_line(char *line, unsigned long len)
                                              ^
                                        const 
/datasets/git/diff.c:2270:14: warning: variable 'cp' is not initialized [cppcoreguidelines-init-variables]
        const char *cp;
                    ^
                       = NULL
/datasets/git/diff.c:2270:14: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:2271:16: warning: variable 'allot' is not initialized [cppcoreguidelines-init-variables]
        unsigned long allot;
                      ^
                            = 0
/datasets/git/diff.c:2272:9: warning: variable name 'l' is too short, expected at least 3 characters [readability-identifier-length]
        size_t l = len;
               ^
/datasets/git/diff.c:2276:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (0 < l) {
        ^
/datasets/git/diff.c:2276:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'l' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (0 < l) {
               ^
/datasets/git/diff.c:2278:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!cp)
                        ^
                         {
/datasets/git/diff.c:2286:14: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        const char *p;
                    ^
                      = NULL
/datasets/git/diff.c:2286:14: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:2290:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!p)
               ^
                {
/datasets/git/diff.c:2292:29: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        ecbdata->lno_in_preimage = strtol(p + 1, NULL, 10);
                                   ^
/datasets/git/diff.c:2292:49: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        ecbdata->lno_in_preimage = strtol(p + 1, NULL, 10);
                                                       ^
/datasets/git/diff.c:2294:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!p)
               ^
                {
/datasets/git/diff.c:2296:30: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        ecbdata->lno_in_postimage = strtol(p + 1, NULL, 10);
                                    ^
/datasets/git/diff.c:2296:50: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        ecbdata->lno_in_postimage = strtol(p + 1, NULL, 10);
                                                        ^
/datasets/git/diff.c:2302:23: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
        struct diff_options *o = ecbdata->opt;
                             ^
/datasets/git/diff.c:2308:28: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                 ecbdata->header->buf, ecbdata->header->len, 0);
                                                       ^
/datasets/git/diff.c:2316:6: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                 strlen(ecbdata->label_path[0]), 0);
                                 ^
/datasets/git/diff.c:2319:6: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                 strlen(ecbdata->label_path[1]), 0);
                                 ^
/datasets/git/diff.c:2330:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ecbdata->diff_words)
                                        ^
                                         {
/datasets/git/diff.c:2334:35: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                emit_hunk_header(ecbdata, line, len);
                                                ^
/datasets/git/diff.c:2339:20: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
                enum diff_symbol s =
                                 ^
/datasets/git/diff.c:2346:5: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                } else if (line[0] == '+') {
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:2361:32: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                emit_diff_symbol(o, s, line, len, 0);
                                             ^
/datasets/git/diff.c:2368:36: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                emit_add_line(ecbdata, line + 1, len - 1);
                                                 ^
/datasets/git/diff.c:2372:36: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                emit_del_line(ecbdata, line + 1, len - 1);
                                                 ^
/datasets/git/diff.c:2377:40: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                emit_context_line(ecbdata, line + 1, len - 1);
                                                     ^
/datasets/git/diff.c:2383:12: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                 line, len, 0);
                                       ^
/datasets/git/diff.c:2389:60: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static void pprint_rename(struct strbuf *name, const char *a, const char *b)
                                                           ^
/datasets/git/diff.c:2389:75: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static void pprint_rename(struct strbuf *name, const char *a, const char *b)
                                                                          ^
/datasets/git/diff.c:2393:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int pfx_length, sfx_length;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:2393:6: warning: variable 'pfx_length' is not initialized [cppcoreguidelines-init-variables]
        int pfx_length, sfx_length;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:2393:18: warning: variable 'sfx_length' is not initialized [cppcoreguidelines-init-variables]
        int pfx_length, sfx_length;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:2394:6: warning: variable 'pfx_adjust_for_slash' is not initialized [cppcoreguidelines-init-variables]
        int pfx_adjust_for_slash;
            ^
                                 = 0
/datasets/git/diff.c:2395:14: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int len_a = strlen(a);
                    ^
/datasets/git/diff.c:2396:14: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int len_b = strlen(b);
                    ^
/datasets/git/diff.c:2397:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int a_midlen, b_midlen;
        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:2391:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        const char *old_name = a;
        ^
/datasets/git/diff.c:2397:6: warning: variable 'a_midlen' is not initialized [cppcoreguidelines-init-variables]
        int a_midlen, b_midlen;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:2397:16: warning: variable 'b_midlen' is not initialized [cppcoreguidelines-init-variables]
        int a_midlen, b_midlen;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:2398:15: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int qlen_a = quote_c_style(a, NULL, NULL, 0);
                     ^
/datasets/git/diff.c:2399:15: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int qlen_b = quote_c_style(b, NULL, NULL, 0);
                     ^
/datasets/git/diff.c:2410:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*old_name && *new_name && *old_name == *new_name) {
        ^
/datasets/git/diff.c:2393:2: note: inferred assignment of ID-dependent value from ID-dependent variable old_name [altera-id-dependent-backward-branch]
        int pfx_length, sfx_length;
        ^
/datasets/git/diff.c:2410:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'old_name' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (*old_name && *new_name && *old_name == *new_name) {
               ^
/datasets/git/diff.c:2411:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*old_name == '/')
                                     ^
                                      {
/datasets/git/diff.c:2412:17: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        pfx_length = old_name - a + 1;
                                     ^
/datasets/git/diff.c:2430:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (a + pfx_length - pfx_adjust_for_slash <= old_name &&
        ^
/datasets/git/diff.c:2430:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'pfx_length' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (a + pfx_length - pfx_adjust_for_slash <= old_name &&
               ^
/datasets/git/diff.c:2433:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*old_name == '/')
                                     ^
                                      {
/datasets/git/diff.c:2434:17: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        sfx_length = len_a - (old_name - a);
                                     ^
/datasets/git/diff.c:2447:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (a_midlen < 0)
                         ^
                          {
/datasets/git/diff.c:2449:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (b_midlen < 0)
                         ^
                          {
/datasets/git/diff.c:2452:68: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        strbuf_grow(name, pfx_length + a_midlen + b_midlen + sfx_length + 7);
                                                                          ^
/datasets/git/diff.c:2470:24: warning: variable 'x' is not initialized [cppcoreguidelines-init-variables]
        struct diffstat_file *x;
                              ^
                                = NULL
/datasets/git/diff.c:2470:24: warning: variable name 'x' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:2472:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(diffstat->files, diffstat->nr + 1, diffstat->alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/diff.c:2472:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_GROW(diffstat->files, diffstat->nr + 1, diffstat->alloc);
        ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/diff.c:2486:47: warning: pointer parameter 'line' can be pointer to const [readability-non-const-parameter]
static int diffstat_consume(void *priv, char *line, unsigned long len)
                                              ^
                                        const 
/datasets/git/diff.c:2489:24: warning: variable name 'x' is too short, expected at least 3 characters [readability-identifier-length]
        struct diffstat_file *x = diffstat->files[diffstat->nr - 1];
                              ^
/datasets/git/diff.c:2491:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!len)
                 ^
                  {
/datasets/git/diff.c:2494:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (line[0] == '+')
                           ^
                            {
/datasets/git/diff.c:2496:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (line[0] == '-')
                                ^
                                 {
/datasets/git/diff.c:2503:29: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
static int scale_linear(int it, int width, int max_change)
                            ^
/datasets/git/diff.c:2505:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!it)
                ^
                 {
/datasets/git/diff.c:2516:49: warning: parameter name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
static void show_graph(struct strbuf *out, char ch, int cnt,
                                                ^
/datasets/git/diff.c:2519:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cnt <= 0)
                     ^
                      {
/datasets/git/diff.c:2530:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (file->print_name)
                             ^
                              {
/datasets/git/diff.c:2533:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (file->is_renamed)
                             ^
                              {
/datasets/git/diff.c:2535:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/diff.c:2538:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (file->comments)
                           ^
                            {
/datasets/git/diff.c:2545:3: warning: 2 adjacent parameters of 'print_stat_summary_inserts_deletes' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                int files, int insertions, int deletions)
                ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:2545:7: note: the first parameter in the range is 'files'
                int files, int insertions, int deletions)
                    ^~~~~
/datasets/git/diff.c:2545:18: note: the last parameter in the range is 'insertions'
                int files, int insertions, int deletions)
                               ^~~~~~~~~~
/datasets/git/diff.c:2547:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/diff.c:2581:13: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                         sb.buf, sb.len, 0);
                                 ^
/datasets/git/diff.c:2585:31: warning: parameter name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
void print_stat_summary(FILE *fp, int files,
                              ^
/datasets/git/diff.c:2588:22: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
        struct diff_options o;
                            ^
/datasets/git/diff.c:2589:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&o, 0, sizeof(o));
        ^~~~~~
/datasets/git/diff.c:2589:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&o, 0, sizeof(o));
        ^~~~~~
/datasets/git/diff.c:2595:13: warning: function 'show_stats' has cognitive complexity of 86 (threshold 25) [readability-function-cognitive-complexity]
static void show_stats(struct diffstat_t *data, struct diff_options *options)
            ^
/datasets/git/diff.c:2606:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (data->nr == 0)
        ^
/datasets/git/diff.c:2609:30: note: +1, including nesting penalty of 0, nesting level increased to 1
        count = options->stat_count ? options->stat_count : data->nr;
                                    ^
/datasets/git/diff.c:2618:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; (i < count) && (i < data->nr); i++) {
        ^
/datasets/git/diff.c:2618:26: note: +1
        for (i = 0; (i < count) && (i < data->nr); i++) {
                                ^
/datasets/git/diff.c:2622:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!file->is_interesting && (change == 0)) {
                ^
/datasets/git/diff.c:2622:29: note: +1
                if (!file->is_interesting && (change == 0)) {
                                          ^
/datasets/git/diff.c:2628:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (max_len < len)
                ^
/datasets/git/diff.c:2631:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (file->is_unmerged) {
                ^
/datasets/git/diff.c:2633:30: note: +3, including nesting penalty of 2, nesting level increased to 3
                        bin_width = bin_width < 8 ? 8 : bin_width;
                                                  ^
/datasets/git/diff.c:2636:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (file->is_binary) {
                ^
/datasets/git/diff.c:2640:30: note: +3, including nesting penalty of 2, nesting level increased to 3
                        bin_width = bin_width < w ? w : bin_width;
                                                  ^
/datasets/git/diff.c:2646:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (max_change < change)
                ^
/datasets/git/diff.c:2685:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (options->stat_width == -1)
        ^
/datasets/git/diff.c:2687:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/diff.c:2688:31: note: +2, including nesting penalty of 1, nesting level increased to 2
                width = options->stat_width ? options->stat_width : 80;
                                            ^
/datasets/git/diff.c:2689:58: note: +1, including nesting penalty of 0, nesting level increased to 1
        number_width = decimal_width(max_change) > number_width ?
                                                                ^
/datasets/git/diff.c:2692:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (options->stat_graph_width == -1)
        ^
/datasets/git/diff.c:2699:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (width < 16 + 6 + number_width)
        ^
/datasets/git/diff.c:2707:43: note: +1, including nesting penalty of 0, nesting level increased to 1
        graph_width = max_change + 4 > bin_width ? max_change : bin_width - 4;
                                                 ^
/datasets/git/diff.c:2708:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (options->stat_graph_width &&
        ^
/datasets/git/diff.c:2708:32: note: +1
        if (options->stat_graph_width &&
                                      ^
/datasets/git/diff.c:2713:45: note: +1, including nesting penalty of 0, nesting level increased to 1
                      options->stat_name_width < max_len) ?
                                                          ^
/datasets/git/diff.c:2712:45: note: +1
        name_width = (options->stat_name_width > 0 &&
                                                   ^
/datasets/git/diff.c:2719:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (name_width + number_width + 6 + graph_width > width) {
        ^
/datasets/git/diff.c:2720:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (graph_width > width * 3/8 - number_width - 6) {
                ^
/datasets/git/diff.c:2722:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (graph_width < 6)
                        ^
/datasets/git/diff.c:2726:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (options->stat_graph_width &&
                ^
/datasets/git/diff.c:2726:33: note: +1
                if (options->stat_graph_width &&
                                              ^
/datasets/git/diff.c:2729:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (name_width > width - number_width - 6 - graph_width)
                ^
/datasets/git/diff.c:2731:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/diff.c:2740:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < count; i++) {
        ^
/datasets/git/diff.c:2748:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!file->is_interesting && (added + deleted == 0))
                ^
/datasets/git/diff.c:2748:29: note: +1
                if (!file->is_interesting && (added + deleted == 0))
                                          ^
/datasets/git/diff.c:2756:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (name_width < name_len) {
                ^
/datasets/git/diff.c:2772:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (slash)
                        ^
/datasets/git/diff.c:2776:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (padding < 0)
                ^
/datasets/git/diff.c:2779:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (file->is_binary) {
                ^
/datasets/git/diff.c:2783:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!added && !deleted) {
                        ^
/datasets/git/diff.c:2783:15: note: +1
                        if (!added && !deleted) {
                                   ^
/datasets/git/diff.c:2801:8: note: +1, nesting level increased to 2
                else if (file->is_unmerged) {
                     ^
/datasets/git/diff.c:2817:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (graph_width <= max_change) {
                ^
/datasets/git/diff.c:2819:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (total < 2 && add && del)
                        ^
/datasets/git/diff.c:2819:25: note: +1
                        if (total < 2 && add && del)
                                             ^
/datasets/git/diff.c:2822:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (add < del) {
                        ^
/datasets/git/diff.c:2825:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/diff.c:2833:24: note: +2, including nesting penalty of 1, nesting level increased to 2
                            added + deleted ? " " : "");
                                            ^
/datasets/git/diff.c:2842:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < data->nr; i++) {
        ^
/datasets/git/diff.c:2847:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (file->is_unmerged ||
                ^
/datasets/git/diff.c:2847:25: note: +1
                if (file->is_unmerged ||
                                      ^
/datasets/git/diff.c:2848:30: note: +1
                    (!file->is_interesting && (added + deleted == 0))) {
                                           ^
/datasets/git/diff.c:2853:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!file->is_binary) {
                ^
/datasets/git/diff.c:2857:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (i < count)
                ^
/datasets/git/diff.c:2859:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!extra_shown)
                ^
/datasets/git/diff.c:2597:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, len, add, del, adds = 0, dels = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:2597:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, len, add, del, adds = 0, dels = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:2597:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:2597:9: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int i, len, add, del, adds = 0, dels = 0;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:2597:14: warning: variable 'add' is not initialized [cppcoreguidelines-init-variables]
        int i, len, add, del, adds = 0, dels = 0;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:2597:19: warning: variable 'del' is not initialized [cppcoreguidelines-init-variables]
        int i, len, add, del, adds = 0, dels = 0;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:2598:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        uintmax_t max_change = 0, max_len = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:2599:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int total_files = data->nr, count;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:2599:30: warning: variable 'count' is not initialized [cppcoreguidelines-init-variables]
        int total_files = data->nr, count;
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:2600:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int width, name_width, graph_width, number_width = 0, bin_width = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:2600:6: warning: variable 'width' is not initialized [cppcoreguidelines-init-variables]
        int width, name_width, graph_width, number_width = 0, bin_width = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:2600:13: warning: variable 'name_width' is not initialized [cppcoreguidelines-init-variables]
        int width, name_width, graph_width, number_width = 0, bin_width = 0;
                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:2600:25: warning: variable 'graph_width' is not initialized [cppcoreguidelines-init-variables]
        int width, name_width, graph_width, number_width = 0, bin_width = 0;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:2601:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *reset, *add_c, *del_c;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:2601:14: warning: variable 'reset' is not initialized [cppcoreguidelines-init-variables]
        const char *reset, *add_c, *del_c;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:2601:22: warning: variable 'add_c' is not initialized [cppcoreguidelines-init-variables]
        const char *reset, *add_c, *del_c;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:2601:30: warning: variable 'del_c' is not initialized [cppcoreguidelines-init-variables]
        const char *reset, *add_c, *del_c;
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:2606:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (data->nr == 0)
                          ^
                           {
/datasets/git/diff.c:2618:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; (i < count) && (i < data->nr); i++) {
        ^
/datasets/git/diff.c:2618:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'count' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; (i < count) && (i < data->nr); i++) {
                    ^
/datasets/git/diff.c:2628:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (max_len < len)
                                  ^
                                   {
/datasets/git/diff.c:2633:28: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        bin_width = bin_width < 8 ? 8 : bin_width;
                                                ^
/datasets/git/diff.c:2633:32: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        bin_width = bin_width < 8 ? 8 : bin_width;
                                                    ^
/datasets/git/diff.c:2638:8: warning: variable name 'w' is too short, expected at least 3 characters [readability-identifier-length]
                        int w = 14 + decimal_width(file->added)
                            ^
/datasets/git/diff.c:2638:12: warning: 14 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        int w = 14 + decimal_width(file->added)
                                ^
/datasets/git/diff.c:2646:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (max_change < change)
                                        ^
                                         {
/datasets/git/diff.c:2685:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (options->stat_width == -1)
                                      ^
                                       {
/datasets/git/diff.c:2686:11: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                width = term_columns() - strlen(line_prefix);
                        ^
/datasets/git/diff.c:2687:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/diff.c:2688:55: warning: 80 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                width = options->stat_width ? options->stat_width : 80;
                                                                    ^
/datasets/git/diff.c:2692:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (options->stat_graph_width == -1)
                                            ^
                                             {
/datasets/git/diff.c:2699:14: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (width < 16 + 6 + number_width)
                    ^
/datasets/git/diff.c:2699:19: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (width < 16 + 6 + number_width)
                         ^
/datasets/git/diff.c:2699:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (width < 16 + 6 + number_width)
                                          ^
                                           {
/datasets/git/diff.c:2700:11: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                width = 16 + 6 + number_width;
                        ^
/datasets/git/diff.c:2700:16: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                width = 16 + 6 + number_width;
                             ^
/datasets/git/diff.c:2707:45: warning: narrowing conversion from 'uintmax_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        graph_width = max_change + 4 > bin_width ? max_change : bin_width - 4;
                                                   ^
/datasets/git/diff.c:2707:58: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        graph_width = max_change + 4 > bin_width ? max_change : bin_width - 4;
                                                                ^
/datasets/git/diff.c:2709:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            options->stat_graph_width < graph_width)
                                                    ^
                                                     {
/datasets/git/diff.c:2714:3: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                options->stat_name_width : max_len;
                ^
/datasets/git/diff.c:2714:30: warning: narrowing conversion from 'uintmax_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                options->stat_name_width : max_len;
                                           ^
/datasets/git/diff.c:2719:34: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (name_width + number_width + 6 + graph_width > width) {
                                        ^
/datasets/git/diff.c:2720:31: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (graph_width > width * 3/8 - number_width - 6) {
                                            ^
/datasets/git/diff.c:2720:50: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (graph_width > width * 3/8 - number_width - 6) {
                                                               ^
/datasets/git/diff.c:2721:28: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        graph_width = width * 3/8 - number_width - 6;
                                                ^
/datasets/git/diff.c:2721:47: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        graph_width = width * 3/8 - number_width - 6;
                                                                   ^
/datasets/git/diff.c:2722:22: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        if (graph_width < 6)
                                          ^
/datasets/git/diff.c:2722:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (graph_width < 6)
                                            ^
                                             {
/datasets/git/diff.c:2723:19: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                graph_width = 6;
                                              ^
/datasets/git/diff.c:2727:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    graph_width > options->stat_graph_width)
                                                            ^
                                                             {
/datasets/git/diff.c:2729:43: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (name_width > width - number_width - 6 - graph_width)
                                                        ^
/datasets/git/diff.c:2729:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (name_width > width - number_width - 6 - graph_width)
                                                                        ^
                                                                         {
/datasets/git/diff.c:2730:40: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        name_width = width - number_width - 6 - graph_width;
                                                            ^
/datasets/git/diff.c:2731:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/diff.c:2732:41: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        graph_width = width - number_width - 6 - name_width;
                                                             ^
/datasets/git/diff.c:2740:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < count; i++) {
        ^
/datasets/git/diff.c:2740:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'count' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < count; i++) {
                    ^
/datasets/git/diff.c:2746:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int name_len, padding;
                ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:2746:7: warning: variable 'name_len' is not initialized [cppcoreguidelines-init-variables]
                int name_len, padding;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:2746:17: warning: variable 'padding' is not initialized [cppcoreguidelines-init-variables]
                int name_len, padding;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:2748:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!file->is_interesting && (added + deleted == 0))
                                                                    ^
                                                                     {
/datasets/git/diff.c:2757:10: warning: variable 'slash' is not initialized [cppcoreguidelines-init-variables]
                        char *slash;
                              ^
                                    = NULL
/datasets/git/diff.c:2772:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (slash)
                                  ^
                                   {
/datasets/git/diff.c:2776:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (padding < 0)
                                ^
                                 {
/datasets/git/diff.c:2786:17: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                                 out.buf, out.len, 0);
                                                          ^
/datasets/git/diff.c:2797:16: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                         out.buf, out.len, 0);
                                                  ^
/datasets/git/diff.c:2801:3: warning: do not use 'else' after 'continue' [llvm-else-after-return,readability-else-after-return]
                else if (file->is_unmerged) {
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:2806:16: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                         out.buf, out.len, 0);
                                                  ^
/datasets/git/diff.c:2814:9: warning: narrowing conversion from 'uintmax_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                add = added;
                      ^
/datasets/git/diff.c:2815:9: warning: narrowing conversion from 'uintmax_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                del = deleted;
                      ^
/datasets/git/diff.c:2818:53: warning: narrowing conversion from 'uintmax_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        int total = scale_linear(add + del, graph_width, max_change);
                                                                         ^
/datasets/git/diff.c:2819:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (total < 2 && add && del)
                                                    ^
                                                     {
/datasets/git/diff.c:2823:42: warning: narrowing conversion from 'uintmax_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                add = scale_linear(add, graph_width, max_change);
                                                                     ^
/datasets/git/diff.c:2826:42: warning: narrowing conversion from 'uintmax_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                del = scale_linear(del, graph_width, max_change);
                                                                     ^
/datasets/git/diff.c:2838:15: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                 out.buf, out.len, 0);
                                          ^
/datasets/git/diff.c:2842:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < data->nr; i++) {
        ^
/datasets/git/diff.c:2854:12: warning: narrowing conversion from 'uintmax_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        adds += added;
                                ^
/datasets/git/diff.c:2855:12: warning: narrowing conversion from 'uintmax_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        dels += deleted;
                                ^
/datasets/git/diff.c:2857:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (i < count)
                              ^
                               {
/datasets/git/diff.c:2859:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!extra_shown)
                                 ^
                                  {
/datasets/git/diff.c:2872:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, adds = 0, dels = 0, total_files = data->nr;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:2872:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, adds = 0, dels = 0, total_files = data->nr;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:2872:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:2874:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (data->nr == 0)
                          ^
                           {
/datasets/git/diff.c:2877:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < data->nr; i++) {
        ^
/datasets/git/diff.c:2878:15: warning: narrowing conversion from 'uintmax_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int added = data->files[i]->added;
                            ^
/datasets/git/diff.c:2879:17: warning: narrowing conversion from 'uintmax_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int deleted = data->files[i]->deleted;
                              ^
/datasets/git/diff.c:2894:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/diff.c:2894:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:2896:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (data->nr == 0)
                          ^
                           {
/datasets/git/diff.c:2899:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < data->nr; i++) {
        ^
/datasets/git/diff.c:2902:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(options->file, "%s", diff_line_prefix(options));
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:2902:3: note: cast the expression to void to silence this warning
/datasets/git/diff.c:2904:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (file->is_binary)
                                    ^
                                     {
/datasets/git/diff.c:2905:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(options->file, "-\t-\t");
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:2905:4: note: cast the expression to void to silence this warning
/datasets/git/diff.c:2906:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/diff.c:2907:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(options->file,
                        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:2907:4: note: cast the expression to void to silence this warning
/datasets/git/diff.c:2912:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!file->is_renamed)
                                              ^
                                               {
/datasets/git/diff.c:2916:5: warning: the value returned by this function should be used [cert-err33-c]
                                fputs(file->print_name, options->file);
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:2916:5: note: cast the expression to void to silence this warning
/datasets/git/diff.c:2917:5: warning: the value returned by this function should be used [cert-err33-c]
                                putc(options->line_termination, options->file);
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:2917:5: note: cast the expression to void to silence this warning
/datasets/git/diff.c:2921:5: warning: the value returned by this function should be used [cert-err33-c]
                                putc('\0', options->file);
                                ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:2921:5: note: cast the expression to void to silence this warning
/datasets/git/diff.c:2929:8: warning: accessing fields in struct 'dirstat_file' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct dirstat_file {
       ^
/datasets/git/diff.c:2929:8: note: use "__attribute__((aligned(16)))" to align struct 'dirstat_file' to 16 bytes
/datasets/git/diff.c:2934:8: warning: accessing fields in struct 'dirstat_dir' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct dirstat_dir {
       ^
/datasets/git/diff.c:2934:8: note: use "__attribute__((aligned(32)))" to align struct 'dirstat_dir' to 32 bytes
/datasets/git/diff.c:2939:13: warning: function 'gather_dirstat' is within a recursive call chain [misc-no-recursion]
static long gather_dirstat(struct diff_options *opt, struct dirstat_dir *dir,
            ^
/datasets/git/diff.c:2939:13: note: example recursive call chain, starting from function 'gather_dirstat'
/datasets/git/diff.c:2959:14: note: Frame #1: function 'gather_dirstat' calls function 'gather_dirstat' here:
                        changes = gather_dirstat(opt, dir, changed, f->name, newbaselen);
                                  ^
/datasets/git/diff.c:2959:14: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/diff.c:2946:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (dir->nr) {
        ^
/datasets/git/diff.c:2947:24: warning: variable name 'f' is too short, expected at least 3 characters [readability-identifier-length]
                struct dirstat_file *f = dir->files;
                                     ^
/datasets/git/diff.c:2948:17: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int namelen = strlen(f->name);
                              ^
/datasets/git/diff.c:2949:17: warning: variable 'changes' is not initialized [cppcoreguidelines-init-variables]
                unsigned long changes;
                              ^
                                      = 0
/datasets/git/diff.c:2950:9: warning: variable 'slash' is not initialized [cppcoreguidelines-init-variables]
                char *slash;
                      ^
                            = NULL
/datasets/git/diff.c:2952:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (namelen < baselen)
                                      ^
                                       {
/datasets/git/diff.c:2954:7: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (memcmp(f->name, base, baselen))
                    ^
                                                   != 0
/datasets/git/diff.c:2954:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (memcmp(f->name, base, baselen))
                                                   ^
                                                    {
/datasets/git/diff.c:2958:21: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        int newbaselen = slash + 1 - f->name;
                                         ^
/datasets/git/diff.c:2978:19: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        int permille = sum_changes * 1000 / changed;
                                       ^
/datasets/git/diff.c:2978:33: warning: 1000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        int permille = sum_changes * 1000 / changed;
                                                     ^
/datasets/git/diff.c:2980:5: warning: the value returned by this function should be used [cert-err33-c]
                                fprintf(opt->file, "%s%4d.%01d%% %.*s\n", line_prefix,
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:2980:5: note: cast the expression to void to silence this warning
/datasets/git/diff.c:2981:17: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                        permille / 10, permille % 10, baselen, base);
                                                   ^
/datasets/git/diff.c:2981:32: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                        permille / 10, permille % 10, baselen, base);
                                                                  ^
/datasets/git/diff.c:2982:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!dir->cumulative)
                                                     ^
                                                      {
/datasets/git/diff.c:2987:9: warning: narrowing conversion from 'unsigned long' to signed type 'long' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return sum_changes;
               ^
/datasets/git/diff.c:2990:40: warning: parameter name '_a' is too short, expected at least 3 characters [readability-identifier-length]
static int dirstat_compare(const void *_a, const void *_b)
                                       ^
/datasets/git/diff.c:2990:56: warning: parameter name '_b' is too short, expected at least 3 characters [readability-identifier-length]
static int dirstat_compare(const void *_a, const void *_b)
                                                       ^
/datasets/git/diff.c:2992:29: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        const struct dirstat_file *a = _a;
                                   ^
/datasets/git/diff.c:2993:29: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        const struct dirstat_file *b = _b;
                                   ^
/datasets/git/diff.c:2997:13: warning: function 'show_dirstat' has cognitive complexity of 29 (threshold 25) [readability-function-cognitive-complexity]
static void show_dirstat(struct diff_options *options)
            ^
/datasets/git/diff.c:3011:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < q->nr; i++) {
        ^
/datasets/git/diff.c:3019:23: note: +2, including nesting penalty of 1, nesting level increased to 2
                name = p->two->path ? p->two->path : p->one->path;
                                    ^
/datasets/git/diff.c:3021:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (p->one->oid_valid && p->two->oid_valid &&
                ^
/datasets/git/diff.c:3021:46: note: +1
                if (p->one->oid_valid && p->two->oid_valid &&
                                                           ^
/datasets/git/diff.c:3029:4: note: +1
                        goto found_damage;
                        ^
/datasets/git/diff.c:3032:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (options->flags.dirstat_by_file) {
                ^
/datasets/git/diff.c:3041:4: note: +1
                        goto found_damage;
                        ^
/datasets/git/diff.c:3044:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (DIFF_FILE_VALID(p->one) && DIFF_FILE_VALID(p->two)) {
                ^
/datasets/git/diff.c:3044:31: note: +1
                if (DIFF_FILE_VALID(p->one) && DIFF_FILE_VALID(p->two)) {
                                            ^
/datasets/git/diff.c:3052:10: note: +1, nesting level increased to 2
                } else if (DIFF_FILE_VALID(p->one)) {
                       ^
/datasets/git/diff.c:3056:10: note: +1, nesting level increased to 2
                } else if (DIFF_FILE_VALID(p->two)) {
                       ^
/datasets/git/diff.c:3061:5: note: +1, nesting level increased to 2
                } else
                  ^
/datasets/git/diff.c:3075:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!damage)
                ^
/datasets/git/diff.c:3079:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                ALLOC_GROW(dir.files, dir.nr + 1, dir.alloc);
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/diff.c:3079:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                ALLOC_GROW(dir.files, dir.nr + 1, dir.alloc);
                ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/diff.c:3079:3: note: +4, including nesting penalty of 3, nesting level increased to 4
                ALLOC_GROW(dir.files, dir.nr + 1, dir.alloc);
                ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/diff.c:3079:3: note: +1, nesting level increased to 4
                ALLOC_GROW(dir.files, dir.nr + 1, dir.alloc);
                ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/diff.c:3087:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!changed)
        ^
/datasets/git/diff.c:3002:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct diff_queue_struct *q = &diff_queued_diff;
        ^
/datasets/git/diff.c:2999:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/diff.c:2999:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:3000:16: warning: variable 'changed' is not initialized [cppcoreguidelines-init-variables]
        unsigned long changed;
                      ^
                              = 0
/datasets/git/diff.c:3002:28: warning: variable name 'q' is too short, expected at least 3 characters [readability-identifier-length]
        struct diff_queue_struct *q = &diff_queued_diff;
                                  ^
/datasets/git/diff.c:3008:19: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        dir.cumulative = options->flags.dirstat_cumulative;
                         ^
/datasets/git/diff.c:3011:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'q' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < q->nr; i++) {
                    ^
/datasets/git/diff.c:3012:25: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct diff_filepair *p = q->queue[i];
                                      ^
/datasets/git/diff.c:3013:15: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
                const char *name;
                            ^
                                 = NULL
/datasets/git/diff.c:3014:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                unsigned long copied, added, damage;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:3014:17: warning: variable 'copied' is not initialized [cppcoreguidelines-init-variables]
                unsigned long copied, added, damage;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:3014:25: warning: variable 'added' is not initialized [cppcoreguidelines-init-variables]
                unsigned long copied, added, damage;
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:3014:32: warning: variable 'damage' is not initialized [cppcoreguidelines-init-variables]
                unsigned long copied, added, damage;
                                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:3061:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/diff.c:3075:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!damage)
                            ^
                             {
/datasets/git/diff.c:3079:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                ALLOC_GROW(dir.files, dir.nr + 1, dir.alloc);
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/diff.c:3087:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!changed)
                     ^
                      {
/datasets/git/diff.c:3097:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/diff.c:3097:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:3098:16: warning: variable 'changed' is not initialized [cppcoreguidelines-init-variables]
        unsigned long changed;
                      ^
                              = 0
/datasets/git/diff.c:3101:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (data->nr == 0)
                          ^
                           {
/datasets/git/diff.c:3108:19: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        dir.cumulative = options->flags.dirstat_cumulative;
                         ^
/datasets/git/diff.c:3114:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (file->is_binary)
                                    ^
                                     {
/datasets/git/diff.c:3123:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                ALLOC_GROW(dir.files, dir.nr + 1, dir.alloc);
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/diff.c:3131:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!changed)
                     ^
                      {
/datasets/git/diff.c:3139:54: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
static void free_diffstat_file(struct diffstat_file *f)
                                                     ^
/datasets/git/diff.c:3149:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/diff.c:3149:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:3150:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < diffstat->nr; i++)
        ^
/datasets/git/diff.c:3150:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < diffstat->nr; i++)
                                          ^
                                           {
/datasets/git/diff.c:3155:8: warning: accessing fields in struct 'checkdiff_t' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct checkdiff_t {
       ^
/datasets/git/diff.c:3155:8: note: use "__attribute__((aligned(32)))" to align struct 'checkdiff_t' to 32 bytes
/datasets/git/diff.c:3166:7: warning: variable 'firstchar' is not initialized [cppcoreguidelines-init-variables]
        char firstchar;
             ^
                       = 0
/datasets/git/diff.c:3167:6: warning: variable 'cnt' is not initialized [cppcoreguidelines-init-variables]
        int cnt;
            ^
                = 0
/datasets/git/diff.c:3169:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len < marker_size + 1)
                                  ^
                                   {
/datasets/git/diff.c:3178:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cnt = 1; cnt < marker_size; cnt++)
        ^
/datasets/git/diff.c:3178:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (cnt = 1; cnt < marker_size; cnt++)
                                               ^
                                                {
/datasets/git/diff.c:3179:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (line[cnt] != firstchar)
                                           ^
                                            {
/datasets/git/diff.c:3182:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (len < marker_size + 1 || !isspace(line[marker_size]))
                                      ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/diff.c:3182:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len < marker_size + 1 || !isspace(line[marker_size]))
                                                                 ^
                                                                  {
/datasets/git/diff.c:3188:13: warning: parameter 'ob' is unused [misc-unused-parameters]
                                   long ob, long on, long nb, long nn,
                                        ^
/datasets/git/diff.c:3188:13: warning: parameter name 'ob' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:3188:17: warning: 2 adjacent parameters of 'checkdiff_consume_hunk' of similar type ('long') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                   long ob, long on, long nb, long nn,
                                            ^~~~~~~~~~~~~~~~
/datasets/git/diff.c:3188:22: note: the first parameter in the range is 'on'
                                   long ob, long on, long nb, long nn,
                                                 ^~
/datasets/git/diff.c:3188:31: note: the last parameter in the range is 'nb'
                                   long ob, long on, long nb, long nn,
                                                          ^~
/datasets/git/diff.c:3188:22: warning: parameter 'on' is unused [misc-unused-parameters]
                                   long ob, long on, long nb, long nn,
                                                 ^
/datasets/git/diff.c:3188:22: warning: parameter name 'on' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:3188:31: warning: parameter name 'nb' is too short, expected at least 3 characters [readability-identifier-length]
                                   long ob, long on, long nb, long nn,
                                                          ^
/datasets/git/diff.c:3188:40: warning: parameter 'nn' is unused [misc-unused-parameters]
                                   long ob, long on, long nb, long nn,
                                                                   ^
/datasets/git/diff.c:3188:40: warning: parameter name 'nn' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:3189:20: warning: parameter 'func' is unused [misc-unused-parameters]
                                   const char *func, long funclen)
                                               ^
/datasets/git/diff.c:3189:31: warning: parameter 'funclen' is unused [misc-unused-parameters]
                                   const char *func, long funclen)
                                                          ^
/datasets/git/diff.c:3193:17: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        data->lineno = nb - 1;
                       ^
/datasets/git/diff.c:3200:14: warning: variable name 'ws' is too short, expected at least 3 characters [readability-identifier-length]
        const char *ws = diff_get_color(data->o->use_color, DIFF_WHITESPACE);
                    ^
/datasets/git/diff.c:3203:8: warning: variable 'err' is not initialized [cppcoreguidelines-init-variables]
        char *err;
              ^
                  = NULL
/datasets/git/diff.c:3204:14: warning: variable 'line_prefix' is not initialized [cppcoreguidelines-init-variables]
        const char *line_prefix;
                    ^
                                = NULL
/datasets/git/diff.c:3210:12: warning: variable 'bad' is not initialized [cppcoreguidelines-init-variables]
                unsigned bad;
                         ^
                             = 0
/datasets/git/diff.c:3213:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        data->status |= 1;
                        ^               ~
/datasets/git/diff.c:3214:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(data->o->file,
                        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:3214:4: note: cast the expression to void to silence this warning
/datasets/git/diff.c:3218:28: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                bad = ws_check(line + 1, len - 1, data->ws_rule);
                                         ^
/datasets/git/diff.c:3219:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!bad)
                         ^
                          {
/datasets/git/diff.c:3223:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(data->o->file, "%s%s:%d: %s.\n",
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:3223:3: note: cast the expression to void to silence this warning
/datasets/git/diff.c:3227:27: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                ws_check_emit(line + 1, len - 1, data->ws_rule,
                                        ^
/datasets/git/diff.c:3239:6: warning: variable 'bound' is not initialized [cppcoreguidelines-init-variables]
        int bound;
            ^
                  = 0
/datasets/git/diff.c:3240:17: warning: variable 'deflated' is not initialized [cppcoreguidelines-init-variables]
        unsigned char *deflated;
                       ^
                                = NULL
/datasets/git/diff.c:3244:10: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        bound = git_deflate_bound(&stream, size);
                ^
/datasets/git/diff.c:3251:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (git_deflate(&stream, Z_FINISH) == Z_OK)
        ^
/datasets/git/diff.c:3251:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (git_deflate(&stream, Z_FINISH) == Z_OK)
                                                      ^
                                                       {
/datasets/git/diff.c:3258:56: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static void emit_binary_diff_body(struct diff_options *o,
                                                       ^
/datasets/git/diff.c:3268:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        unsigned long data_size;
        ^
/datasets/git/diff.c:3261:8: warning: variable 'cp' is not initialized [cppcoreguidelines-init-variables]
        void *cp;
              ^
                 = NULL
/datasets/git/diff.c:3261:8: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:3262:8: warning: variable 'delta' is not initialized [cppcoreguidelines-init-variables]
        void *delta;
              ^
                    = NULL
/datasets/git/diff.c:3263:8: warning: variable 'deflated' is not initialized [cppcoreguidelines-init-variables]
        void *deflated;
              ^
                       = NULL
/datasets/git/diff.c:3264:8: warning: variable 'data' is not initialized [cppcoreguidelines-init-variables]
        void *data;
              ^
                   = NULL
/datasets/git/diff.c:3265:16: warning: variable 'orig_size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long orig_size;
                      ^
                                = 0
/datasets/git/diff.c:3266:16: warning: variable 'delta_size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long delta_size;
                      ^
                                 = 0
/datasets/git/diff.c:3267:16: warning: variable 'deflate_size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long deflate_size;
                      ^
                                   = 0
/datasets/git/diff.c:3268:16: warning: variable 'data_size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long data_size;
                      ^
                                = 0
/datasets/git/diff.c:3288:9: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
                char *s = xstrfmt("%"PRIuMAX , (uintmax_t)orig_size);
                      ^
/datasets/git/diff.c:3290:9: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                 s, strlen(s), 0);
                                    ^
/datasets/git/diff.c:3296:9: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
                char *s = xstrfmt("%lu", two->size);
                      ^
/datasets/git/diff.c:3298:9: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                 s, strlen(s), 0);
                                    ^
/datasets/git/diff.c:3307:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (data_size) {
        ^
/datasets/git/diff.c:3307:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'data_size' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (data_size) {
               ^
/datasets/git/diff.c:3308:7: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
                int len;
                    ^
                        = 0
/datasets/git/diff.c:3309:16: warning: 52 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                int bytes = (52 < data_size) ? 52 : data_size;
                             ^
/datasets/git/diff.c:3309:34: warning: 52 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                int bytes = (52 < data_size) ? 52 : data_size;
                                               ^
/datasets/git/diff.c:3309:39: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int bytes = (52 < data_size) ? 52 : data_size;
                                                    ^
/datasets/git/diff.c:3310:13: warning: 71 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                char line[71];
                          ^
/datasets/git/diff.c:3312:16: warning: 26 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (bytes <= 26)
                             ^
/datasets/git/diff.c:3312:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (bytes <= 26)
                                ^
                                 {
/datasets/git/diff.c:3313:14: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        line[0] = bytes + 'A' - 1;
                                  ^
/datasets/git/diff.c:3314:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/diff.c:3315:14: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        line[0] = bytes - 26 + 'a' - 1;
                                  ^
/datasets/git/diff.c:3315:22: warning: 26 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        line[0] = bytes - 26 + 'a' - 1;
                                          ^
/datasets/git/diff.c:3319:9: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                len = strlen(line);
                      ^
/datasets/git/diff.c:3330:51: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static void emit_binary_diff(struct diff_options *o,
                                                  ^
/datasets/git/diff.c:3335:2: warning: 2nd argument 'two' (passed to 'one') looks like it might be swapped with the 3rd, 'one' (passed to 'two') [readability-suspicious-call-argument]
        emit_binary_diff_body(o, two, one);
        ^                        ~~~  ~~~
/datasets/git/diff.c:3258:13: note: in the call to 'emit_binary_diff_body', declared here
static void emit_binary_diff_body(struct diff_options *o,
            ^
/datasets/git/diff.c:3338:48: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int diff_filespec_is_binary(struct repository *r,
                                               ^
/datasets/git/diff.c:3347:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (one->driver->binary != -1)
                                              ^
                                               {
/datasets/git/diff.c:3350:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!one->data && DIFF_FILE_VALID(one))
                                                               ^
                                                                {
/datasets/git/diff.c:3352:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (one->is_binary == -1 && one->data)
                                                              ^
                                                               {
/datasets/git/diff.c:3355:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (one->is_binary == -1)
                                                 ^
                                                  {
/datasets/git/diff.c:3363:44: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
diff_funcname_pattern(struct diff_options *o, struct diff_filespec *one)
                                           ^
/datasets/git/diff.c:3369:61: warning: 2 adjacent parameters of 'diff_set_mnemonic_prefix' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
void diff_set_mnemonic_prefix(struct diff_options *options, const char *a, const char *b)
                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:3369:73: note: the first parameter in the range is 'a'
void diff_set_mnemonic_prefix(struct diff_options *options, const char *a, const char *b)
                                                                        ^
/datasets/git/diff.c:3369:88: note: the last parameter in the range is 'b'
void diff_set_mnemonic_prefix(struct diff_options *options, const char *a, const char *b)
                                                                                       ^
/datasets/git/diff.c:3369:73: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
void diff_set_mnemonic_prefix(struct diff_options *options, const char *a, const char *b)
                                                                        ^
/datasets/git/diff.c:3369:88: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
void diff_set_mnemonic_prefix(struct diff_options *options, const char *a, const char *b)
                                                                                       ^
/datasets/git/diff.c:3371:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!options->a_prefix)
                               ^
                                {
/datasets/git/diff.c:3373:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!options->b_prefix)
                               ^
                                {
/datasets/git/diff.c:3377:57: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
struct userdiff_driver *get_textconv(struct repository *r,
                                                        ^
/datasets/git/diff.c:3380:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!DIFF_FILE_VALID(one))
                                  ^
                                   {
/datasets/git/diff.c:3387:68: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static struct string_list *additional_headers(struct diff_options *o,
                                                                   ^
/datasets/git/diff.c:3390:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!o->additional_path_headers)
                                        ^
                                         {
/datasets/git/diff.c:3396:7: warning: 2 adjacent parameters of 'add_formatted_header' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                  const char *header,
                                  ^~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:3396:19: note: the first parameter in the range is 'header'
                                  const char *header,
                                              ^~~~~~
/datasets/git/diff.c:3397:19: note: the last parameter in the range is 'line_prefix'
                                  const char *line_prefix,
                                              ^~~~~~~~~~~
/datasets/git/diff.c:3401:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *next, *newline;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:3401:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/diff.c:3401:14: warning: variable 'next' is not initialized [cppcoreguidelines-init-variables]
        const char *next, *newline;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:3401:21: warning: variable 'newline' is not initialized [cppcoreguidelines-init-variables]
        const char *next, *newline;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:3403:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (next = header; *next; next = newline) {
        ^
/datasets/git/diff.c:3403:22: warning: backward branch (for loop) is ID-dependent due to variable reference to 'next' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (next = header; *next; next = newline) {
                            ^
/datasets/git/diff.c:3407:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*newline)
                             ^
                              {
/datasets/git/diff.c:3418:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/diff.c:3418:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:3420:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < more_headers->nr; i++)
        ^
/datasets/git/diff.c:3420:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < more_headers->nr; i++)
                                              ^
                                               {
/datasets/git/diff.c:3440:13: warning: function 'builtin_diff' has cognitive complexity of 102 (threshold 25) [readability-function-cognitive-complexity]
static void builtin_diff(const char *name_a,
            ^
/datasets/git/diff.c:3461:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (o->flags.reverse_diff) {
        ^
/datasets/git/diff.c:3464:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/diff.c:3469:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (o->submodule_format == DIFF_SUBMODULE_LOG &&
        ^
/datasets/git/diff.c:3471:45: note: +1
            (!two->mode || S_ISGITLINK(two->mode)) &&
                                                   ^
/datasets/git/diff.c:3470:18: note: +1
            (!one->mode || S_ISGITLINK(one->mode)) &&
                        ^
/datasets/git/diff.c:3471:18: note: +1
            (!two->mode || S_ISGITLINK(two->mode)) &&
                        ^
/datasets/git/diff.c:3473:44: note: +2, including nesting penalty of 1, nesting level increased to 2
                show_submodule_diff_summary(o, one->path ? one->path : two->path,
                                                         ^
/datasets/git/diff.c:3477:9: note: +1, nesting level increased to 1
        } else if (o->submodule_format == DIFF_SUBMODULE_INLINE_DIFF &&
               ^
/datasets/git/diff.c:3479:45: note: +1
                   (!two->mode || S_ISGITLINK(two->mode)) &&
                                                          ^
/datasets/git/diff.c:3478:18: note: +1
                   (!one->mode || S_ISGITLINK(one->mode)) &&
                               ^
/datasets/git/diff.c:3479:18: note: +1
                   (!two->mode || S_ISGITLINK(two->mode)) &&
                               ^
/datasets/git/diff.c:3481:43: note: +2, including nesting penalty of 1, nesting level increased to 2
                show_submodule_inline_diff(o, one->path ? one->path : two->path,
                                                        ^
/datasets/git/diff.c:3487:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (o->flags.allow_textconv) {
        ^
/datasets/git/diff.c:3493:32: note: +1, including nesting penalty of 0, nesting level increased to 1
        name_a = DIFF_FILE_VALID(one) ? name_a : name_b;
                                      ^
/datasets/git/diff.c:3494:32: note: +1, including nesting penalty of 0, nesting level increased to 1
        name_b = DIFF_FILE_VALID(two) ? name_b : name_a;
                                      ^
/datasets/git/diff.c:3498:32: note: +1, including nesting penalty of 0, nesting level increased to 1
        lbl[0] = DIFF_FILE_VALID(one) ? a_one : "/dev/null";
                                      ^
/datasets/git/diff.c:3499:32: note: +1, including nesting penalty of 0, nesting level increased to 1
        lbl[1] = DIFF_FILE_VALID(two) ? b_two : "/dev/null";
                                      ^
/datasets/git/diff.c:3500:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (diff_filepair_is_phoney(one, two)) {
        ^
/datasets/git/diff.c:3512:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (lbl[0][0] == '/') {
        ^
/datasets/git/diff.c:3515:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (xfrm_msg)
                ^
/datasets/git/diff.c:3519:7: note: +1, nesting level increased to 1
        else if (lbl[1][0] == '/') {
             ^
/datasets/git/diff.c:3521:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (xfrm_msg)
                ^
/datasets/git/diff.c:3525:2: note: +1, nesting level increased to 1
        else {
        ^
/datasets/git/diff.c:3526:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (one->mode != two->mode) {
                ^
/datasets/git/diff.c:3531:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (xfrm_msg)
                ^
/datasets/git/diff.c:3538:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((one->mode ^ two->mode) & S_IFMT)
                ^
/datasets/git/diff.c:3540:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (complete_rewrite &&
                ^
/datasets/git/diff.c:3541:64: note: +1
                    (textconv_one || !diff_filespec_is_binary(o->repo, one)) &&
                                                                             ^
/datasets/git/diff.c:3541:21: note: +1
                    (textconv_one || !diff_filespec_is_binary(o->repo, one)) &&
                                  ^
/datasets/git/diff.c:3542:21: note: +1
                    (textconv_two || !diff_filespec_is_binary(o->repo, two))) {
                                  ^
/datasets/git/diff.c:3549:4: note: +1
                        goto free_ab_and_return;
                        ^
/datasets/git/diff.c:3553:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (o->irreversible_delete && lbl[1][0] == '/') {
        ^
/datasets/git/diff.c:3553:29: note: +1
        if (o->irreversible_delete && lbl[1][0] == '/') {
                                   ^
/datasets/git/diff.c:3557:3: note: +1
                goto free_ab_and_return;
                ^
/datasets/git/diff.c:3558:9: note: +1, nesting level increased to 1
        } else if (!o->flags.text &&
               ^
/datasets/git/diff.c:3558:28: note: +1
        } else if (!o->flags.text &&
                                  ^
/datasets/git/diff.c:3559:65: note: +1
                   ( (!textconv_one && diff_filespec_is_binary(o->repo, one)) ||
                                                                              ^
/datasets/git/diff.c:3559:23: note: +1
                   ( (!textconv_one && diff_filespec_is_binary(o->repo, one)) ||
                                    ^
/datasets/git/diff.c:3560:23: note: +1
                     (!textconv_two && diff_filespec_is_binary(o->repo, two)) )) {
                                    ^
/datasets/git/diff.c:3562:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!one->data && !two->data &&
                ^
/datasets/git/diff.c:3563:48: note: +1
                    S_ISREG(one->mode) && S_ISREG(two->mode) &&
                                                             ^
/datasets/git/diff.c:3565:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (oideq(&one->oid, &two->oid)) {
                        ^
/datasets/git/diff.c:3566:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (must_show_header)
                                ^
/datasets/git/diff.c:3570:5: note: +1
                                goto free_ab_and_return;
                                ^
/datasets/git/diff.c:3579:4: note: +1
                        goto free_ab_and_return;
                        ^
/datasets/git/diff.c:3581:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (fill_mmfile(o->repo, &mf1, one) < 0 ||
                ^
/datasets/git/diff.c:3581:43: note: +1
                if (fill_mmfile(o->repo, &mf1, one) < 0 ||
                                                        ^
/datasets/git/diff.c:3585:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (mf1.size == mf2.size &&
                ^
/datasets/git/diff.c:3585:28: note: +1
                if (mf1.size == mf2.size &&
                                         ^
/datasets/git/diff.c:3587:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (must_show_header)
                        ^
/datasets/git/diff.c:3590:4: note: +1
                        goto free_ab_and_return;
                        ^
/datasets/git/diff.c:3594:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (o->flags.binary)
                ^
/datasets/git/diff.c:3596:3: note: +1, nesting level increased to 2
                else {
                ^
/datasets/git/diff.c:3604:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/diff.c:3613:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (must_show_header) {
                ^
/datasets/git/diff.c:3623:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!pe)
                ^
/datasets/git/diff.c:3629:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (o->flags.suppress_diff_headers)
                ^
/datasets/git/diff.c:3634:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ecbdata.ws_rule & WS_BLANK_AT_EOF)
                ^
/datasets/git/diff.c:3637:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (header.len && !o->flags.suppress_diff_headers)
                ^
/datasets/git/diff.c:3637:18: note: +1
                if (header.len && !o->flags.suppress_diff_headers)
                               ^
/datasets/git/diff.c:3647:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (o->flags.funccontext)
                ^
/datasets/git/diff.c:3649:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (pe)
                ^
/datasets/git/diff.c:3653:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!diffopts)
                ^
/datasets/git/diff.c:3655:8: note: +1, nesting level increased to 2
                else if (skip_prefix(diffopts, "--unified=", &v))
                     ^
/datasets/git/diff.c:3657:8: note: +1, nesting level increased to 2
                else if (skip_prefix(diffopts, "-u", &v))
                     ^
/datasets/git/diff.c:3660:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (o->word_diff)
                ^
/datasets/git/diff.c:3662:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (xdi_diff_outf(&mf1, &mf2, NULL, fn_out_consume,
                ^
/datasets/git/diff.c:3665:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (o->word_diff)
                ^
/datasets/git/diff.c:3667:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (textconv_one)
                ^
/datasets/git/diff.c:3669:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (textconv_two)
                ^
/datasets/git/diff.c:3446:26: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                         struct diff_options *o,
                                              ^
/datasets/git/diff.c:3449:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        mmfile_t mf1, mf2;
        ^~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:3451:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *a_one, *b_two;
        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:3451:8: warning: variable 'a_one' is not initialized [cppcoreguidelines-init-variables]
        char *a_one, *b_two;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:3451:16: warning: variable 'b_two' is not initialized [cppcoreguidelines-init-variables]
        char *a_one, *b_two;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:3454:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *a_prefix, *b_prefix;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:3454:14: warning: variable 'a_prefix' is not initialized [cppcoreguidelines-init-variables]
        const char *a_prefix, *b_prefix;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:3454:25: warning: variable 'b_prefix' is not initialized [cppcoreguidelines-init-variables]
        const char *a_prefix, *b_prefix;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:3470:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            (!one->mode || S_ISGITLINK(one->mode)) &&
                           ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/diff.c:3471:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            (!two->mode || S_ISGITLINK(two->mode)) &&
                           ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/diff.c:3477:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else if (o->submodule_format == DIFF_SUBMODULE_INLINE_DIFF &&
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:3478:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                   (!one->mode || S_ISGITLINK(one->mode)) &&
                                  ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/diff.c:3479:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                   (!two->mode || S_ISGITLINK(two->mode)) &&
                                  ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/diff.c:3515:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (xfrm_msg)
                             ^
                              {
/datasets/git/diff.c:3521:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (xfrm_msg)
                             ^
                              {
/datasets/git/diff.c:3531:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (xfrm_msg)
                             ^
                              {
/datasets/git/diff.c:3538:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((one->mode ^ two->mode) & S_IFMT)
                    ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:3538:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((one->mode ^ two->mode) & S_IFMT)
                                                     ^
                                                      {
/datasets/git/diff.c:3544:19: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                         header.buf, header.len, 0);
                                                     ^
/datasets/git/diff.c:3555:6: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                 header.len, 0);
                                 ^
/datasets/git/diff.c:3561:17: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                struct strbuf sb = STRBUF_INIT;
                              ^
/datasets/git/diff.c:3566:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (must_show_header)
                                                     ^
                                                      {
/datasets/git/diff.c:3568:21: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                                         header.buf, header.len,
                                                                     ^
/datasets/git/diff.c:3573:19: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                         header.buf, header.len, 0);
                                                     ^
/datasets/git/diff.c:3577:15: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                         sb.buf, sb.len, 0);
                                                 ^
/datasets/git/diff.c:3582:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    fill_mmfile(o->repo, &mf2, two) < 0)
                                                        ^
                                                         {
/datasets/git/diff.c:3587:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (must_show_header)
                                             ^
                                              {
/datasets/git/diff.c:3589:20: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                                 header.buf, header.len, 0);
                                                             ^
/datasets/git/diff.c:3592:55: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                emit_diff_symbol(o, DIFF_SYMBOL_HEADER, header.buf, header.len, 0);
                                                                    ^
/datasets/git/diff.c:3594:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (o->flags.binary)
                                    ^
                                     {
/datasets/git/diff.c:3600:15: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                         sb.buf, sb.len, 0);
                                                 ^
/datasets/git/diff.c:3606:15: warning: variable 'diffopts' is not initialized [cppcoreguidelines-init-variables]
                const char *diffopts;
                            ^
                                     = NULL
/datasets/git/diff.c:3607:15: warning: variable 'v' is not initialized [cppcoreguidelines-init-variables]
                const char *v;
                            ^
                              = NULL
/datasets/git/diff.c:3607:15: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:3611:35: warning: variable 'pe' is not initialized [cppcoreguidelines-init-variables]
                const struct userdiff_funcname *pe;
                                                ^
                                                   = NULL
/datasets/git/diff.c:3611:35: warning: variable name 'pe' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:3615:19: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                         header.buf, header.len, 0);
                                                     ^
/datasets/git/diff.c:3619:14: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'long' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                mf1.size = fill_textconv(o->repo, textconv_one, one, &mf1.ptr);
                           ^
/datasets/git/diff.c:3620:14: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'long' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                mf2.size = fill_textconv(o->repo, textconv_two, two, &mf2.ptr);
                           ^
/datasets/git/diff.c:3623:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!pe)
                        ^
                         {
/datasets/git/diff.c:3626:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(&xpp, 0, sizeof(xpp));
                ^~~~~~
/datasets/git/diff.c:3626:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(&xpp, 0, sizeof(xpp));
                ^~~~~~
/datasets/git/diff.c:3627:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(&xecfg, 0, sizeof(xecfg));
                ^~~~~~
/datasets/git/diff.c:3627:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(&xecfg, 0, sizeof(xecfg));
                ^~~~~~
/datasets/git/diff.c:3628:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(&ecbdata, 0, sizeof(ecbdata));
                ^~~~~~
/datasets/git/diff.c:3628:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(&ecbdata, 0, sizeof(ecbdata));
                ^~~~~~
/datasets/git/diff.c:3629:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (o->flags.suppress_diff_headers)
                                                   ^
                                                    {
/datasets/git/diff.c:3634:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ecbdata.ws_rule & WS_BLANK_AT_EOF)
                    ^
/datasets/git/diff.c:3634:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ecbdata.ws_rule & WS_BLANK_AT_EOF)
                                                      ^
                                                       {
/datasets/git/diff.c:3637:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (header.len && !o->flags.suppress_diff_headers)
                                                                  ^
                                                                   {
/datasets/git/diff.c:3646:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                xecfg.flags = XDL_EMIT_FUNCNAMES;
                              ^
/datasets/git/./xdiff/xdiff.h:52:29: note: expanded from macro 'XDL_EMIT_FUNCNAMES'
#define XDL_EMIT_FUNCNAMES (1 << 0)
                            ^
/datasets/git/diff.c:3647:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (o->flags.funccontext)
                                         ^
                                          {
/datasets/git/diff.c:3648:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        xecfg.flags |= XDL_EMIT_FUNCCONTEXT;
                        ^
/datasets/git/diff.c:3648:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        xecfg.flags |= XDL_EMIT_FUNCCONTEXT;
                                       ^
/datasets/git/./xdiff/xdiff.h:54:31: note: expanded from macro 'XDL_EMIT_FUNCCONTEXT'
#define XDL_EMIT_FUNCCONTEXT (1 << 2)
                              ^
/datasets/git/diff.c:3649:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pe)
                       ^
                        {
/datasets/git/diff.c:3652:14: warning: function is not thread safe [concurrency-mt-unsafe]
                diffopts = getenv("GIT_DIFF_OPTS");
                           ^
/datasets/git/diff.c:3653:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!diffopts)
                              ^
                               {
/datasets/git/diff.c:3655:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (skip_prefix(diffopts, "--unified=", &v))
                                                                 ^
                                                                  {
/datasets/git/diff.c:3656:4: warning: repeated branch in conditional chain [bugprone-branch-clone]
                        xecfg.ctxlen = strtoul(v, NULL, 10);
                        ^
/datasets/git/diff.c:3656:39: note: end of the original
                        xecfg.ctxlen = strtoul(v, NULL, 10);
                                                           ^
/datasets/git/diff.c:3658:4: note: clone 1 starts here
                        xecfg.ctxlen = strtoul(v, NULL, 10);
                        ^
/datasets/git/diff.c:3656:19: warning: narrowing conversion from 'unsigned long' to signed type 'long' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        xecfg.ctxlen = strtoul(v, NULL, 10);
                                       ^
/datasets/git/diff.c:3656:36: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        xecfg.ctxlen = strtoul(v, NULL, 10);
                                                        ^
/datasets/git/diff.c:3657:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (skip_prefix(diffopts, "-u", &v))
                                                         ^
                                                          {
/datasets/git/diff.c:3658:19: warning: narrowing conversion from 'unsigned long' to signed type 'long' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        xecfg.ctxlen = strtoul(v, NULL, 10);
                                       ^
/datasets/git/diff.c:3658:36: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        xecfg.ctxlen = strtoul(v, NULL, 10);
                                                        ^
/datasets/git/diff.c:3660:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (o->word_diff)
                                 ^
                                  {
/datasets/git/diff.c:3663:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                  &ecbdata, &xpp, &xecfg))
                                                          ^
                                                           {
/datasets/git/diff.c:3665:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (o->word_diff)
                                 ^
                                  {
/datasets/git/diff.c:3667:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (textconv_one)
                                 ^
                                  {
/datasets/git/diff.c:3669:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (textconv_two)
                                 ^
                                  {
/datasets/git/diff.c:3680:2: warning: redundant return statement at the end of a function with a void return type [readability-redundant-control-flow]
        return;
~~~~~~~~^~~~~~~
/datasets/git/diff.c:3683:62: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static char *get_compact_summary(const struct diff_filepair *p, int is_renamed)
                                                             ^
/datasets/git/diff.c:3687:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (S_ISLNK(p->two->mode))
                                                  ^
                                                   {
/datasets/git/diff.c:3689:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                        else if ((p->two->mode & 0777) == 0755)
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:3689:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        else if ((p->two->mode & 0777) == 0755)
                                  ^              ~~~~
/datasets/git/diff.c:3689:29: warning: 0777 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        else if ((p->two->mode & 0777) == 0755)
                                                 ^
/datasets/git/diff.c:3689:38: warning: 0755 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        else if ((p->two->mode & 0777) == 0755)
                                                          ^
/datasets/git/diff.c:3689:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if ((p->two->mode & 0777) == 0755)
                                                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:3691:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:3693:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else if (p->status == DIFF_STATUS_DELETED)
                                                            ^
                                                             {
/datasets/git/diff.c:3696:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (S_ISLNK(p->one->mode) && !S_ISLNK(p->two->mode))
                                                            ^
                                                             {
/datasets/git/diff.c:3698:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (!S_ISLNK(p->one->mode) && S_ISLNK(p->two->mode))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:3698:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!S_ISLNK(p->one->mode) && S_ISLNK(p->two->mode))
                                                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:3700:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        else if ((p->one->mode & 0777) == 0644 &&
                  ^              ~~~~
/datasets/git/diff.c:3700:27: warning: 0777 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        else if ((p->one->mode & 0777) == 0644 &&
                                 ^
/datasets/git/diff.c:3700:36: warning: 0644 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        else if ((p->one->mode & 0777) == 0644 &&
                                          ^
/datasets/git/diff.c:3701:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                 (p->two->mode & 0777) == 0755)
                  ^              ~~~~
/datasets/git/diff.c:3701:20: warning: 0777 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                 (p->two->mode & 0777) == 0755)
                                 ^
/datasets/git/diff.c:3701:29: warning: 0755 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                 (p->two->mode & 0777) == 0755)
                                          ^
/datasets/git/diff.c:3701:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                 (p->two->mode & 0777) == 0755)
                                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:3703:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        else if ((p->one->mode & 0777) == 0755 &&
                  ^              ~~~~
/datasets/git/diff.c:3703:27: warning: 0777 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        else if ((p->one->mode & 0777) == 0755 &&
                                 ^
/datasets/git/diff.c:3703:36: warning: 0755 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        else if ((p->one->mode & 0777) == 0755 &&
                                          ^
/datasets/git/diff.c:3704:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                 (p->two->mode & 0777) == 0644)
                  ^              ~~~~
/datasets/git/diff.c:3704:20: warning: 0777 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                 (p->two->mode & 0777) == 0644)
                                 ^
/datasets/git/diff.c:3704:29: warning: 0644 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                 (p->two->mode & 0777) == 0644)
                                          ^
/datasets/git/diff.c:3704:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                 (p->two->mode & 0777) == 0644)
                                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:3709:13: warning: function 'builtin_diffstat' has cognitive complexity of 27 (threshold 25) [readability-function-cognitive-complexity]
static void builtin_diffstat(const char *name_a, const char *name_b,
            ^
/datasets/git/diff.c:3721:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!DIFF_PAIR_UNMERGED(p)) {
        ^
/datasets/git/diff.c:3722:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (p->status == DIFF_STATUS_MODIFIED && p->score)
                ^
/datasets/git/diff.c:3722:41: note: +1
                if (p->status == DIFF_STATUS_MODIFIED && p->score)
                                                      ^
/datasets/git/diff.c:3728:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (o->flags.stat_with_summary)
        ^
/datasets/git/diff.c:3731:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!one || !two) {
        ^
/datasets/git/diff.c:3731:11: note: +1
        if (!one || !two) {
                 ^
/datasets/git/diff.c:3737:50: note: +1
        may_differ = !(one->oid_valid && two->oid_valid &&
                                                        ^
/datasets/git/diff.c:3740:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (diff_filespec_is_binary(o->repo, one) ||
        ^
/datasets/git/diff.c:3740:44: note: +1
        if (diff_filespec_is_binary(o->repo, one) ||
                                                  ^
/datasets/git/diff.c:3743:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!may_differ) {
                ^
/datasets/git/diff.c:3746:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/diff.c:3752:7: note: +1, nesting level increased to 1
        else if (complete_rewrite) {
             ^
/datasets/git/diff.c:3759:7: note: +1, nesting level increased to 1
        else if (may_differ) {
             ^
/datasets/git/diff.c:3764:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (fill_mmfile(o->repo, &mf1, one) < 0 ||
                ^
/datasets/git/diff.c:3764:43: note: +1
                if (fill_mmfile(o->repo, &mf1, one) < 0 ||
                                                        ^
/datasets/git/diff.c:3778:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (xdi_diff_outf(&mf1, &mf2, NULL,
                ^
/datasets/git/diff.c:3782:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (DIFF_FILE_VALID(one) && DIFF_FILE_VALID(two)) {
                ^
/datasets/git/diff.c:3782:28: note: +1
                if (DIFF_FILE_VALID(one) && DIFF_FILE_VALID(two)) {
                                         ^
/datasets/git/diff.c:3794:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if ((p->status == DIFF_STATUS_MODIFIED)
                        ^
/datasets/git/diff.c:3797:5: note: +1
                                && one->mode == two->mode) {
                                ^
/datasets/git/diff.c:3713:30: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                             struct diff_options *o,
                                                  ^
/datasets/git/diff.c:3714:31: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                             struct diff_filepair *p)
                                                   ^
/datasets/git/diff.c:3716:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        mmfile_t mf1, mf2;
        ^~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:3717:24: warning: variable 'data' is not initialized [cppcoreguidelines-init-variables]
        struct diffstat_file *data;
                              ^
                                   = NULL
/datasets/git/diff.c:3718:6: warning: variable 'may_differ' is not initialized [cppcoreguidelines-init-variables]
        int may_differ;
            ^
                       = 0
/datasets/git/diff.c:3722:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (p->status == DIFF_STATUS_MODIFIED && p->score)
                                                                  ^
                                                                   {
/datasets/git/diff.c:3728:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (o->flags.stat_with_summary)
                                       ^
                                        {
/datasets/git/diff.c:3755:42: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                data->deleted = count_lines(one->data, one->size);
                                                       ^
/datasets/git/diff.c:3756:40: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                data->added = count_lines(two->data, two->size);
                                                     ^
/datasets/git/diff.c:3765:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    fill_mmfile(o->repo, &mf2, two) < 0)
                                                        ^
                                                         {
/datasets/git/diff.c:3768:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(&xpp, 0, sizeof(xpp));
                ^~~~~~
/datasets/git/diff.c:3768:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(&xpp, 0, sizeof(xpp));
                ^~~~~~
/datasets/git/diff.c:3769:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(&xecfg, 0, sizeof(xecfg));
                ^~~~~~
/datasets/git/diff.c:3769:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(&xecfg, 0, sizeof(xecfg));
                ^~~~~~
/datasets/git/diff.c:3777:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                xecfg.flags = XDL_EMIT_NO_HUNK_HDR;
                              ^
/datasets/git/./xdiff/xdiff.h:53:31: note: expanded from macro 'XDL_EMIT_NO_HUNK_HDR'
#define XDL_EMIT_NO_HUNK_HDR (1 << 1)
                              ^
/datasets/git/diff.c:3779:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                  diffstat_consume, diffstat, &xpp, &xecfg))
                                                                            ^
                                                                             {
/datasets/git/diff.c:3808:51: warning: 2 adjacent parameters of 'builtin_checkdiff' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void builtin_checkdiff(const char *name_a, const char *name_b,
                                                  ^~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:3808:63: note: the first parameter in the range is 'name_b'
static void builtin_checkdiff(const char *name_a, const char *name_b,
                                                              ^~~~~~
/datasets/git/diff.c:3809:22: note: the last parameter in the range is 'attr_path'
                              const char *attr_path,
                                          ^~~~~~~~~
/datasets/git/diff.c:3812:31: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                              struct diff_options *o)
                                                   ^
/datasets/git/diff.c:3814:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        mmfile_t mf1, mf2;
        ^~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:3817:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!two)
                 ^
                  {
/datasets/git/diff.c:3820:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&data, 0, sizeof(data));
        ^~~~~~
/datasets/git/diff.c:3820:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&data, 0, sizeof(data));
        ^~~~~~
/datasets/git/diff.c:3828:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            fill_mmfile(o->repo, &mf2, two) < 0)
                                                ^
                                                 {
/datasets/git/diff.c:3837:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (diff_filespec_is_binary(o->repo, two))
                                                  ^
                                                   {
/datasets/git/diff.c:3844:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(&xpp, 0, sizeof(xpp));
                ^~~~~~
/datasets/git/diff.c:3844:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(&xpp, 0, sizeof(xpp));
                ^~~~~~
/datasets/git/diff.c:3845:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(&xecfg, 0, sizeof(xecfg));
                ^~~~~~
/datasets/git/diff.c:3845:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(&xecfg, 0, sizeof(xecfg));
                ^~~~~~
/datasets/git/diff.c:3850:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                  &xpp, &xecfg))
                                                ^
                                                 {
/datasets/git/diff.c:3853:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (data.ws_rule & WS_BLANK_AT_EOF) {
                    ^
/datasets/git/diff.c:3855:8: warning: variable 'blank_at_eof' is not initialized [cppcoreguidelines-init-variables]
                        int blank_at_eof;
                            ^
                                         = 0
/datasets/git/diff.c:3862:18: warning: variable 'err' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
                                static char *err;
                                             ^
/datasets/git/diff.c:3863:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!err)
                                         ^
                                          {
/datasets/git/diff.c:3865:5: warning: the value returned by this function should be used [cert-err33-c]
                                fprintf(o->file, "%s:%d: %s.\n",
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:3865:5: note: cast the expression to void to silence this warning
/datasets/git/diff.c:3874:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (data.status)
                        ^
                         {
/datasets/git/diff.c:3880:24: warning: variable 'spec' is not initialized [cppcoreguidelines-init-variables]
        struct diff_filespec *spec;
                              ^
                                   = NULL
/datasets/git/diff.c:3882:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FLEXPTR_ALLOC_STR(spec, path, path);
        ^
/datasets/git/./git-compat-util.h:1165:2: note: expanded from macro 'FLEXPTR_ALLOC_STR'
        FLEXPTR_ALLOC_MEM((x), ptrname, (str), strlen(str))
        ^
/datasets/git/./git-compat-util.h:1156:49: note: expanded from macro 'FLEXPTR_ALLOC_MEM'
#define FLEXPTR_ALLOC_MEM(x, ptrname, buf, len) do { \
                                                ^
/datasets/git/diff.c:3882:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        FLEXPTR_ALLOC_STR(spec, path, path);
        ^
/datasets/git/./git-compat-util.h:1165:2: note: expanded from macro 'FLEXPTR_ALLOC_STR'
        FLEXPTR_ALLOC_MEM((x), ptrname, (str), strlen(str))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1159:2: note: expanded from macro 'FLEXPTR_ALLOC_MEM'
        memcpy((x) + 1, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/diff.c:3882:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        FLEXPTR_ALLOC_STR(spec, path, path);
        ^
/datasets/git/./git-compat-util.h:1165:2: note: expanded from macro 'FLEXPTR_ALLOC_STR'
        FLEXPTR_ALLOC_MEM((x), ptrname, (str), strlen(str))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1159:2: note: expanded from macro 'FLEXPTR_ALLOC_MEM'
        memcpy((x) + 1, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/diff.c:3897:6: warning: 2 adjacent parameters of 'fill_filespec' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                   int oid_valid, unsigned short mode)
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:3897:10: note: the first parameter in the range is 'oid_valid'
                   int oid_valid, unsigned short mode)
                       ^~~~~~~~~
/datasets/git/diff.c:3897:36: note: the last parameter in the range is 'mode'
                   int oid_valid, unsigned short mode)
                                                 ^~~~
/datasets/git/diff.c:3897:21: note: 'int' and 'unsigned short' may be implicitly converted
                   int oid_valid, unsigned short mode)
                                  ^
/datasets/git/diff.c:3916:28: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
        const struct cache_entry *ce;
                                  ^
                                     = NULL
/datasets/git/diff.c:3916:28: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:3917:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/diff.c:3918:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int pos, len;
        ^~~~~~~~~~~~~
/datasets/git/diff.c:3918:6: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        int pos, len;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:3918:11: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int pos, len;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:3933:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!istate->cache)
                           ^
                            {
/datasets/git/diff.c:3945:68: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!FAST_WORKING_DIRECTORY && !want_file && has_object_pack(oid))
                                                                          ^
                                                                           {
/datasets/git/diff.c:3952:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!want_file && would_convert_to_git(istate, name))
                                                             ^
                                                              {
/datasets/git/diff.c:3959:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!path_in_sparse_checkout(name, istate))
                                                   ^
                                                    {
/datasets/git/diff.c:3962:8: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        len = strlen(name);
              ^
/datasets/git/diff.c:3964:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pos < 0)
                    ^
                     {
/datasets/git/diff.c:3972:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!oideq(oid, &ce->oid) || !S_ISREG(ce->ce_mode))
                                                           ^
                                                            {
/datasets/git/diff.c:3979:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((ce->ce_flags & CE_VALID) || ce_skip_worktree(ce))
             ^
/datasets/git/diff.c:3979:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((ce->ce_flags & CE_VALID) || ce_skip_worktree(ce))
                                         ^
/datasets/git/./refs/../cache.h:244:31: note: expanded from macro 'ce_skip_worktree'
#define ce_skip_worktree(ce) ((ce)->ce_flags & CE_SKIP_WORKTREE)
                              ^                ~~~~~~~~~~~~~~~~
/datasets/git/diff.c:3979:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((ce->ce_flags & CE_VALID) || ce_skip_worktree(ce))
                                                              ^
                                                               {
/datasets/git/diff.c:3985:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (ce_uptodate(ce) ||
            ^
/datasets/git/./refs/../cache.h:243:26: note: expanded from macro 'ce_uptodate'
#define ce_uptodate(ce) ((ce)->ce_flags & CE_UPTODATE)
                         ^                ~~~~~~~~~~~
/datasets/git/diff.c:3986:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            (!lstat(name, &st) && !ie_match_stat(istate, ce, &st, 0)))
                                                                      ^
                                                                       {
/datasets/git/diff.c:3992:56: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static int diff_populate_gitlink(struct diff_filespec *s, int size_only)
                                                       ^
/datasets/git/diff.c:3998:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (s->dirty_submodule)
                               ^
                                {
/datasets/git/diff.c:4019:5: warning: function 'diff_populate_filespec' has cognitive complexity of 57 (threshold 25) [readability-function-cognitive-complexity]
int diff_populate_filespec(struct repository *r,
    ^
/datasets/git/diff.c:4023:26: note: +1, including nesting penalty of 0, nesting level increased to 1
        int size_only = options ? options->check_size_only : 0;
                                ^
/datasets/git/diff.c:4024:29: note: +1, including nesting penalty of 0, nesting level increased to 1
        int check_binary = options ? options->check_binary : 0;
                                   ^
/datasets/git/diff.c:4031:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (conv_flags & CONV_EOL_RNDTRP_DIE)
        ^
/datasets/git/diff.c:4034:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!DIFF_FILE_VALID(s))
        ^
/datasets/git/diff.c:4036:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (S_ISDIR(s->mode))
        ^
/datasets/git/diff.c:4039:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (s->data)
        ^
/datasets/git/diff.c:4042:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (size_only && 0 < s->size)
        ^
/datasets/git/diff.c:4042:16: note: +1
        if (size_only && 0 < s->size)
                      ^
/datasets/git/diff.c:4045:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (S_ISGITLINK(s->mode))
        ^
/datasets/git/diff.c:4048:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!s->oid_valid ||
        ^
/datasets/git/diff.c:4048:20: note: +1
        if (!s->oid_valid ||
                          ^
/datasets/git/diff.c:4054:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (lstat(s->path, &st) < 0) {
                ^
/datasets/git/diff.c:4063:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!s->size)
                ^
/datasets/git/diff.c:4065:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (S_ISLNK(st.st_mode)) {
                ^
/datasets/git/diff.c:4068:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (strbuf_readlink(&sb, s->path, s->size))
                        ^
/datasets/git/diff.c:4082:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (size_only && !would_convert_to_git(r->index, s->path))
                ^
/datasets/git/diff.c:4082:17: note: +1
                if (size_only && !would_convert_to_git(r->index, s->path))
                              ^
/datasets/git/diff.c:4094:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (check_binary &&
                ^
/datasets/git/diff.c:4095:36: note: +1
                    s->size > big_file_threshold && s->is_binary == -1) {
                                                 ^
/datasets/git/diff.c:4100:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (fd < 0)
                ^
/datasets/git/diff.c:4109:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (convert_to_git(r->index, s->path, s->data, s->size, &buf, conv_flags)) {
                ^
/datasets/git/diff.c:4118:2: note: +1, nesting level increased to 1
        else {
        ^
/datasets/git/diff.c:4123:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!(size_only || check_binary))
                ^
/datasets/git/diff.c:4123:19: note: +1
                if (!(size_only || check_binary))
                                ^
/datasets/git/diff.c:4130:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (options && options->missing_object_cb) {
                ^
/datasets/git/diff.c:4130:15: note: +1
                if (options && options->missing_object_cb) {
                            ^
/datasets/git/diff.c:4131:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!oid_object_info_extended(r, &s->oid, &info,
                        ^
/datasets/git/diff.c:4137:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (oid_object_info_extended(r, &s->oid, &info,
                ^
/datasets/git/diff.c:4142:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (size_only || check_binary) {
                ^
/datasets/git/diff.c:4142:17: note: +1
                if (size_only || check_binary) {
                              ^
/datasets/git/diff.c:4143:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (size_only)
                        ^
/datasets/git/diff.c:4145:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (s->size > big_file_threshold && s->is_binary == -1) {
                        ^
/datasets/git/diff.c:4145:37: note: +1
                        if (s->size > big_file_threshold && s->is_binary == -1) {
                                                         ^
/datasets/git/diff.c:4150:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!info.contentp) {
                ^
/datasets/git/diff.c:4152:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (oid_object_info_extended(r, &s->oid, &info,
                        ^
/datasets/git/diff.c:4019:47: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int diff_populate_filespec(struct repository *r,
                                              ^
/datasets/git/diff.c:4020:29: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
                           struct diff_filespec *s,
                                                 ^
/datasets/git/diff.c:4031:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (conv_flags & CONV_EOL_RNDTRP_DIE)
            ^~~~~~~~~~
/datasets/git/diff.c:4031:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (conv_flags & CONV_EOL_RNDTRP_DIE)
                         ^
/datasets/git/./convert.h:13:32: note: expanded from macro 'CONV_EOL_RNDTRP_DIE'
#define CONV_EOL_RNDTRP_DIE   (1<<0) /* Die if CRLF to LF to CRLF is different */
                               ^
/datasets/git/diff.c:4031:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (conv_flags & CONV_EOL_RNDTRP_DIE)
                                             ^
                                              {
/datasets/git/diff.c:4032:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                conv_flags = CONV_EOL_RNDTRP_WARN;
                             ^
/datasets/git/./convert.h:14:32: note: expanded from macro 'CONV_EOL_RNDTRP_WARN'
#define CONV_EOL_RNDTRP_WARN  (1<<1) /* Warn if CRLF to LF to CRLF is different */
                               ^
/datasets/git/diff.c:4034:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!DIFF_FILE_VALID(s))
                                ^
                                 {
/datasets/git/diff.c:4036:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (S_ISDIR(s->mode))
                             ^
                              {
/datasets/git/diff.c:4039:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (s->data)
                    ^
                     {
/datasets/git/diff.c:4042:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (size_only && 0 < s->size)
                                     ^
                                      {
/datasets/git/diff.c:4045:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (S_ISGITLINK(s->mode))
            ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/diff.c:4045:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (S_ISGITLINK(s->mode))
                                 ^
                                  {
/datasets/git/diff.c:4051:15: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                struct stat st;
                            ^
/datasets/git/diff.c:4052:7: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
                int fd;
                    ^
                       = 0
/datasets/git/diff.c:4052:7: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:4063:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!s->size)
                             ^
                              {
/datasets/git/diff.c:4066:18: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                        struct strbuf sb = STRBUF_INIT;
                                      ^
/datasets/git/diff.c:4068:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (strbuf_readlink(&sb, s->path, s->size))
                                                                   ^
                                                                    {
/datasets/git/diff.c:4082:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (size_only && !would_convert_to_git(r->index, s->path))
                                                                          ^
                                                                           {
/datasets/git/diff.c:4099:30: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
                fd = open(s->path, O_RDONLY);
                                           ^
                                            | O_CLOEXEC
/datasets/git/diff.c:4100:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fd < 0)
                           ^
                            {
/datasets/git/diff.c:4123:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(size_only || check_binary))
                                                 ^
                                                  {
/datasets/git/diff.c:4132:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                                      OBJECT_INFO_LOOKUP_REPLACE |
                                                      ^
/datasets/git/./object-store.h:432:36: note: expanded from macro 'OBJECT_INFO_LOOKUP_REPLACE'
#define OBJECT_INFO_LOOKUP_REPLACE 1
                                   ^
/datasets/git/diff.c:4133:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                      OBJECT_INFO_SKIP_FETCH_OBJECT))
                                                                                     ^
                                                                                      {
/datasets/git/diff.c:4138:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                             OBJECT_INFO_LOOKUP_REPLACE))
                                                                         ^
                                                                          {
/datasets/git/diff.c:4143:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (size_only)
                                      ^
                                       {
/datasets/git/diff.c:4153:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                     OBJECT_INFO_LOOKUP_REPLACE))
                                                                                 ^
                                                                                  {
/datasets/git/diff.c:4161:52: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
void diff_free_filespec_blob(struct diff_filespec *s)
                                                   ^
/datasets/git/diff.c:4163:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (s->should_free)
                           ^
                            {
/datasets/git/diff.c:4164:3: warning: Argument to free() is the address of a global variable, which is not memory allocated by malloc() [clang-analyzer-unix.Malloc]
                free(s->data);
                ^
/datasets/git/diff.c:7128:6: note: Assuming 'textconv' is non-null
        if (!textconv) {
            ^~~~~~~~~
/datasets/git/diff.c:7128:2: note: Taking false branch
        if (!textconv) {
        ^
/datasets/git/diff.c:7134:2: note: Calling 'free_filespec'
        free_filespec(df);
        ^~~~~~~~~~~~~~~~~
/datasets/git/diff.c:3890:2: note: Taking true branch
        if (!--spec->count) {
        ^
/datasets/git/diff.c:3891:3: note: Calling 'diff_free_filespec_data'
                diff_free_filespec_data(spec);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:4176:7: note: 's' is non-null
        if (!s)
             ^
/datasets/git/diff.c:4176:2: note: Taking false branch
        if (!s)
        ^
/datasets/git/diff.c:4179:2: note: Calling 'diff_free_filespec_blob'
        diff_free_filespec_blob(s);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:4163:6: note: Assuming field 'should_free' is not equal to 0
        if (s->should_free)
            ^~~~~~~~~~~~~~
/datasets/git/diff.c:4163:2: note: Taking true branch
        if (s->should_free)
        ^
/datasets/git/diff.c:4164:3: note: Argument to free() is the address of a global variable, which is not memory allocated by malloc()
                free(s->data);
                ^    ~~~~~~~
/datasets/git/diff.c:4165:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (s->should_munmap)
                                  ^
                                   {
/datasets/git/diff.c:4174:52: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
void diff_free_filespec_data(struct diff_filespec *s)
                                                   ^
/datasets/git/diff.c:4176:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!s)
               ^
                {
/datasets/git/diff.c:4180:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(s->cnt_data);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/diff.c:4198:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!temp->tempfile)
                            ^
                             {
/datasets/git/diff.c:4206:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            close_tempfile_gently(temp->tempfile))
                                                  ^
                                                   {
/datasets/git/diff.c:4215:30: warning: function 'prepare_temp_file' has cognitive complexity of 28 (threshold 25) [readability-function-cognitive-complexity]
static struct diff_tempfile *prepare_temp_file(struct repository *r,
                             ^
/datasets/git/diff.c:4221:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!DIFF_FILE_VALID(one)) {
        ^
/datasets/git/diff.c:4232:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!S_ISGITLINK(one->mode) &&
        ^
/datasets/git/diff.c:4232:30: note: +1
        if (!S_ISGITLINK(one->mode) &&
                                    ^
/datasets/git/diff.c:4233:23: note: +1
            (!one->oid_valid ||
                             ^
/datasets/git/diff.c:4236:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (lstat(name, &st) < 0) {
                ^
/datasets/git/diff.c:4237:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (errno == ENOENT)
                        ^
/datasets/git/diff.c:4241:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (S_ISLNK(st.st_mode)) {
                ^
/datasets/git/diff.c:4243:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (strbuf_readlink(&sb, name, st.st_size) < 0)
                        ^
/datasets/git/diff.c:4246:28: note: +3, including nesting penalty of 2, nesting level increased to 3
                                       (one->oid_valid ?
                                                       ^
/datasets/git/diff.c:4248:28: note: +3, including nesting penalty of 2, nesting level increased to 3
                                       (one->oid_valid ?
                                                       ^
/datasets/git/diff.c:4252:3: note: +1, nesting level increased to 2
                else {
                ^
/datasets/git/diff.c:4255:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!one->oid_valid)
                        ^
/datasets/git/diff.c:4257:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/diff.c:4269:2: note: +1, nesting level increased to 1
        else {
        ^
/datasets/git/diff.c:4270:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (diff_populate_filespec(r, one, NULL))
                ^
/datasets/git/diff.c:4215:67: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static struct diff_tempfile *prepare_temp_file(struct repository *r,
                                                                  ^
/datasets/git/diff.c:4232:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!S_ISGITLINK(one->mode) &&
             ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/diff.c:4235:15: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                struct stat st;
                            ^
/datasets/git/diff.c:4237:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (errno == ENOENT)
                                            ^
                                             {
/datasets/git/diff.c:4242:18: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                        struct strbuf sb = STRBUF_INIT;
                                      ^
/datasets/git/diff.c:4243:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (strbuf_readlink(&sb, name, st.st_size) < 0)
                                                                       ^
                                                                        {
/datasets/git/diff.c:4255:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!one->oid_valid)
                                            ^
                                             {
/datasets/git/diff.c:4257:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/diff.c:4269:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else {
        ^~~~~~
/datasets/git/diff.c:4270:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (diff_populate_filespec(r, one, NULL))
                                                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:4279:55: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void add_external_diff_name(struct repository *r,
                                                      ^
/datasets/git/diff.c:4282:30: warning: parameter name 'df' is too short, expected at least 3 characters [readability-identifier-length]
                                   struct diff_filespec *df)
                                                         ^
/datasets/git/diff.c:4302:31: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                              struct diff_options *o)
                                                   ^
/datasets/git/diff.c:4305:28: warning: variable name 'q' is too short, expected at least 3 characters [readability-identifier-length]
        struct diff_queue_struct *q = &diff_queued_diff;
                                  ^
/datasets/git/diff.c:4312:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!other)
                           ^
                            {
/datasets/git/diff.c:4328:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (run_command(&cmd))
                              ^
                               {
/datasets/git/diff.c:4334:51: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static int similarity_index(struct diff_filepair *p)
                                                  ^
/datasets/git/diff.c:4336:9: warning: narrowing conversion from 'double' to 'int' [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return p->score * 100 / MAX_SCORE;
               ^
/datasets/git/diff.c:4336:20: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        return p->score * 100 / MAX_SCORE;
                          ^
/datasets/git/diff.c:4341:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (startup_info->have_repository)
                                          ^
                                           {
/datasets/git/diff.c:4343:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else {
        ^~~~~~
/datasets/git/diff.c:4345:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (abbrev < 0)
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:4347:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (abbrev > the_hash_algo->hexsz)
                                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:4349:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (abbrev)
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:4360:27: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                          struct diff_options *o,
                                               ^
/datasets/git/diff.c:4361:28: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                          struct diff_filepair *p,
                                                ^
/datasets/git/diff.c:4371:34: warning: 300 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        strbuf_init(msg, PATH_MAX * 2 + 300);
                                        ^
/datasets/git/diff.c:4405:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if ((more_headers = additional_headers(o, name))) {
             ^
/datasets/git/diff.c:4405:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/diff.c:4405:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/diff.c:4414:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (o->flags.full_index)
                                        ^
                                         {
/datasets/git/diff.c:4415:13: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        abbrev = hexsz;
                                 ^
/datasets/git/diff.c:4418:13: warning: variable name 'mf' is too short, expected at least 3 characters [readability-identifier-length]
                        mmfile_t mf;
                                 ^
/datasets/git/diff.c:4422:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                             diff_filespec_is_binary(o->repo, two)))
                                                                    ^
                                                                     {
/datasets/git/diff.c:4423:14: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                abbrev = hexsz;
                                         ^
/datasets/git/diff.c:4428:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (one->mode == two->mode)
                                           ^
                                            {
/datasets/git/diff.c:4436:5: warning: 2 adjacent parameters of 'run_diff_cmd' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                         const char *other,
                         ^~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:4436:17: note: the first parameter in the range is 'other'
                         const char *other,
                                     ^~~~~
/datasets/git/diff.c:4437:17: note: the last parameter in the range is 'attr_path'
                         const char *attr_path,
                                     ^~~~~~~~~
/datasets/git/diff.c:4441:26: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                         struct diff_options *o,
                                              ^
/datasets/git/diff.c:4442:27: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                         struct diff_filepair *p)
                                               ^
/datasets/git/diff.c:4450:27: warning: variable 'drv' is not initialized [cppcoreguidelines-init-variables]
                struct userdiff_driver *drv;
                                        ^
                                            = NULL
/datasets/git/diff.c:4453:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (drv && drv->external)
                                         ^
                                          {
/datasets/git/diff.c:4472:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (one && two)
                       ^
                        {
/datasets/git/diff.c:4476:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/diff.c:4477:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(o->file, "* Unmerged path %s\n", name);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:4477:3: note: cast the expression to void to silence this warning
/datasets/git/diff.c:4484:16: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                        struct stat st;
                                    ^
/datasets/git/diff.c:4489:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (lstat(one->path, &st) < 0)
                                                      ^
                                                       {
/datasets/git/diff.c:4491:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (index_path(istate, &one->oid, one->path, &st, 0))
                                                                             ^
                                                                              {
/datasets/git/diff.c:4495:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/diff.c:4499:45: warning: 2 adjacent parameters of 'strip_prefix' of similar type ('const char **') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void strip_prefix(int prefix_length, const char **namep, const char **otherp)
                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:4499:58: note: the first parameter in the range is 'namep'
static void strip_prefix(int prefix_length, const char **namep, const char **otherp)
                                                         ^~~~~
/datasets/git/diff.c:4499:78: note: the last parameter in the range is 'otherp'
static void strip_prefix(int prefix_length, const char **namep, const char **otherp)
                                                                             ^~~~~~
/datasets/git/diff.c:4504:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (**namep == '/')
                                   ^
                                    {
/datasets/git/diff.c:4509:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (**otherp == '/')
                                    ^
                                     {
/datasets/git/diff.c:4514:44: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static void run_diff(struct diff_filepair *p, struct diff_options *o)
                                           ^
/datasets/git/diff.c:4514:68: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static void run_diff(struct diff_filepair *p, struct diff_options *o)
                                                                   ^
/datasets/git/diff.c:4520:14: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
        const char *name;
                    ^
                         = NULL
/datasets/git/diff.c:4521:14: warning: variable 'other' is not initialized [cppcoreguidelines-init-variables]
        const char *other;
                    ^
                          = NULL
/datasets/git/diff.c:4522:14: warning: variable 'attr_path' is not initialized [cppcoreguidelines-init-variables]
        const char *attr_path;
                    ^
                              = NULL
/datasets/git/diff.c:4527:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (o->prefix_length)
                             ^
                              {
/datasets/git/diff.c:4530:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!o->flags.allow_external)
                                     ^
                                      {
/datasets/git/diff.c:4561:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/diff.c:4568:48: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static void run_diffstat(struct diff_filepair *p, struct diff_options *o,
                                               ^
/datasets/git/diff.c:4568:72: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static void run_diffstat(struct diff_filepair *p, struct diff_options *o,
                                                                       ^
/datasets/git/diff.c:4571:14: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
        const char *name;
                    ^
                         = NULL
/datasets/git/diff.c:4572:14: warning: variable 'other' is not initialized [cppcoreguidelines-init-variables]
        const char *other;
                    ^
                          = NULL
/datasets/git/diff.c:4584:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (o->prefix_length)
                             ^
                              {
/datasets/git/diff.c:4594:49: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static void run_checkdiff(struct diff_filepair *p, struct diff_options *o)
                                                ^
/datasets/git/diff.c:4594:73: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static void run_checkdiff(struct diff_filepair *p, struct diff_options *o)
                                                                        ^
/datasets/git/diff.c:4596:14: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
        const char *name;
                    ^
                         = NULL
/datasets/git/diff.c:4597:14: warning: variable 'other' is not initialized [cppcoreguidelines-init-variables]
        const char *other;
                    ^
                          = NULL
/datasets/git/diff.c:4598:14: warning: variable 'attr_path' is not initialized [cppcoreguidelines-init-variables]
        const char *attr_path;
                    ^
                              = NULL
/datasets/git/diff.c:4609:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (o->prefix_length)
                             ^
                              {
/datasets/git/diff.c:4620:41: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void repo_diff_setup(struct repository *r, struct diff_options *options)
                                        ^
/datasets/git/diff.c:4622:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(options, &default_diff_options, sizeof(*options));
        ^~~~~~
/datasets/git/diff.c:4622:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(options, &default_diff_options, sizeof(*options));
        ^~~~~~
/datasets/git/diff.c:4647:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        options->xdl_opts |= diff_algorithm;
        ^~~~~~~~~~~~~~~~~
/datasets/git/diff.c:4647:23: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        options->xdl_opts |= diff_algorithm;
                             ^
/datasets/git/diff.c:4648:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (diff_indent_heuristic)
                                  ^
                                   {
/datasets/git/diff.c:4649:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                DIFF_XDL_SET(options, INDENT_HEURISTIC);
                ^
/datasets/git/./diff.h:215:38: note: expanded from macro 'DIFF_XDL_SET'
#define DIFF_XDL_SET(opts, flag)    ((opts)->xdl_opts |= XDF_##flag)
                                     ^~~~~~~~~~~~~~~~
/datasets/git/diff.c:4653:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!options->flags.ignore_submodule_set)
                                                 ^
                                                  {
/datasets/git/diff.c:4683:21: warning: variable 'filter_bit' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned int filter_bit['Z' + 1];
                    ^
/datasets/git/diff.c:4687:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/diff.c:4687:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:4690:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; diff_status_letters[i]; i++)
                ^
/datasets/git/diff.c:4690:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; diff_status_letters[i]; i++)
                                                        ^
                                                         {
/datasets/git/diff.c:4691:48: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        filter_bit[(int) diff_status_letters[i]] = (1 << i);
                                                                    ^
/datasets/git/diff.c:4706:6: warning: function 'diff_setup_done' has cognitive complexity of 28 (threshold 25) [readability-function-cognitive-complexity]
void diff_setup_done(struct diff_options *options)
     ^
/datasets/git/diff.c:4718:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (options->set_default)
        ^
/datasets/git/diff.c:4721:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (HAS_MULTI_BITS(options->output_format & check_mask))
        ^
/datasets/git/diff.c:4725:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (HAS_MULTI_BITS(options->pickaxe_opts & DIFF_PICKAXE_KINDS_MASK))
        ^
/datasets/git/diff.c:4729:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (HAS_MULTI_BITS(options->pickaxe_opts & DIFF_PICKAXE_KINDS_G_REGEX_MASK))
        ^
/datasets/git/diff.c:4733:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (HAS_MULTI_BITS(options->pickaxe_opts & DIFF_PICKAXE_KINDS_ALL_OBJFIND_MASK))
        ^
/datasets/git/diff.c:4744:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((options->xdl_opts & XDF_WHITESPACE_FLAGS) ||
        ^
/datasets/git/diff.c:4744:49: note: +1
        if ((options->xdl_opts & XDF_WHITESPACE_FLAGS) ||
                                                       ^
/datasets/git/diff.c:4747:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/diff.c:4750:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (options->flags.find_copies_harder)
        ^
/datasets/git/diff.c:4753:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!options->flags.relative_name)
        ^
/datasets/git/diff.c:4755:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (options->prefix)
        ^
/datasets/git/diff.c:4757:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/diff.c:4760:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (options->output_format & (DIFF_FORMAT_NAME |
        ^
/datasets/git/diff.c:4776:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (options->output_format & (DIFF_FORMAT_PATCH |
        ^
/datasets/git/diff.c:4787:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (options->pickaxe_opts & DIFF_PICKAXE_KINDS_MASK)
        ^
/datasets/git/diff.c:4793:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (options->output_format & DIFF_FORMAT_PATCH)
        ^
/datasets/git/diff.c:4796:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (options->detect_rename && options->rename_limit < 0)
        ^
/datasets/git/diff.c:4796:29: note: +1
        if (options->detect_rename && options->rename_limit < 0)
                                   ^
/datasets/git/diff.c:4798:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (hexsz < options->abbrev)
        ^
/datasets/git/diff.c:4806:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (options->flags.quick) {
        ^
/datasets/git/diff.c:4813:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (options->flags.follow_renames && options->pathspec.nr != 1)
        ^
/datasets/git/diff.c:4813:36: note: +1
        if (options->flags.follow_renames && options->pathspec.nr != 1)
                                          ^
/datasets/git/diff.c:4816:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!options->use_color || external_diff())
        ^
/datasets/git/diff.c:4816:26: note: +1
        if (!options->use_color || external_diff())
                                ^
/datasets/git/diff.c:4819:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (options->filter_not) {
        ^
/datasets/git/diff.c:4820:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!options->filter)
                ^
/datasets/git/diff.c:4825:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        FREE_AND_NULL(options->parseopts);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/diff.c:4708:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned check_mask = DIFF_FORMAT_NAME |
                              ^
/datasets/git/./diff.h:108:26: note: expanded from macro 'DIFF_FORMAT_NAME'
#define DIFF_FORMAT_NAME        0x0100
                                ^
/datasets/git/diff.c:4718:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (options->set_default)
                                 ^
                                  {
/datasets/git/diff.c:4721:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (HAS_MULTI_BITS(options->output_format & check_mask))
                           ^
/datasets/git/./git-compat-util.h:156:30: note: expanded from macro 'HAS_MULTI_BITS'
#define HAS_MULTI_BITS(i)  ((i) & ((i) - 1))  /* checks if an integer has more than 1 bit set */
                             ^
/datasets/git/diff.c:4721:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (HAS_MULTI_BITS(options->output_format & check_mask))
                                                                ^
                                                                 {
/datasets/git/diff.c:4725:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (HAS_MULTI_BITS(options->pickaxe_opts & DIFF_PICKAXE_KINDS_MASK))
                           ^
/datasets/git/./git-compat-util.h:156:30: note: expanded from macro 'HAS_MULTI_BITS'
#define HAS_MULTI_BITS(i)  ((i) & ((i) - 1))  /* checks if an integer has more than 1 bit set */
                             ^
/datasets/git/diff.c:4725:45: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (HAS_MULTI_BITS(options->pickaxe_opts & DIFF_PICKAXE_KINDS_MASK))
                                                   ^
/datasets/git/./diff.h:556:34: note: expanded from macro 'DIFF_PICKAXE_KINDS_MASK'
#define DIFF_PICKAXE_KINDS_MASK (DIFF_PICKAXE_KIND_S | \
                                 ^
/datasets/git/./diff.h:552:29: note: expanded from macro 'DIFF_PICKAXE_KIND_S'
#define DIFF_PICKAXE_KIND_S     4 /* traditional plumbing counter */
                                ^
/datasets/git/./git-compat-util.h:156:30: note: expanded from macro 'HAS_MULTI_BITS'
#define HAS_MULTI_BITS(i)  ((i) & ((i) - 1))  /* checks if an integer has more than 1 bit set */
                             ^
/datasets/git/diff.c:4725:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (HAS_MULTI_BITS(options->pickaxe_opts & DIFF_PICKAXE_KINDS_MASK))
                                                                            ^
                                                                             {
/datasets/git/diff.c:4729:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (HAS_MULTI_BITS(options->pickaxe_opts & DIFF_PICKAXE_KINDS_G_REGEX_MASK))
                           ^
/datasets/git/./git-compat-util.h:156:30: note: expanded from macro 'HAS_MULTI_BITS'
#define HAS_MULTI_BITS(i)  ((i) & ((i) - 1))  /* checks if an integer has more than 1 bit set */
                             ^
/datasets/git/diff.c:4729:45: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (HAS_MULTI_BITS(options->pickaxe_opts & DIFF_PICKAXE_KINDS_G_REGEX_MASK))
                                                   ^
/datasets/git/./diff.h:559:42: note: expanded from macro 'DIFF_PICKAXE_KINDS_G_REGEX_MASK'
#define DIFF_PICKAXE_KINDS_G_REGEX_MASK (DIFF_PICKAXE_KIND_G | \
                                         ^~~~~~~~~~~~~~~~~~~
/datasets/git/./diff.h:553:29: note: expanded from macro 'DIFF_PICKAXE_KIND_G'
#define DIFF_PICKAXE_KIND_G     8 /* grep in the patch */
                                ^
/datasets/git/./git-compat-util.h:156:30: note: expanded from macro 'HAS_MULTI_BITS'
#define HAS_MULTI_BITS(i)  ((i) & ((i) - 1))  /* checks if an integer has more than 1 bit set */
                             ^
/datasets/git/diff.c:4729:78: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (HAS_MULTI_BITS(options->pickaxe_opts & DIFF_PICKAXE_KINDS_G_REGEX_MASK))
                                                                                    ^
                                                                                     {
/datasets/git/diff.c:4733:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (HAS_MULTI_BITS(options->pickaxe_opts & DIFF_PICKAXE_KINDS_ALL_OBJFIND_MASK))
                           ^
/datasets/git/./git-compat-util.h:156:30: note: expanded from macro 'HAS_MULTI_BITS'
#define HAS_MULTI_BITS(i)  ((i) & ((i) - 1))  /* checks if an integer has more than 1 bit set */
                             ^
/datasets/git/diff.c:4733:45: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (HAS_MULTI_BITS(options->pickaxe_opts & DIFF_PICKAXE_KINDS_ALL_OBJFIND_MASK))
                                                   ^
/datasets/git/./diff.h:561:46: note: expanded from macro 'DIFF_PICKAXE_KINDS_ALL_OBJFIND_MASK'
#define DIFF_PICKAXE_KINDS_ALL_OBJFIND_MASK (DIFF_PICKAXE_ALL | \
                                             ^~~~~~~~~~~~~~~~
/datasets/git/./diff.h:549:26: note: expanded from macro 'DIFF_PICKAXE_ALL'
#define DIFF_PICKAXE_ALL        1
                                ^
/datasets/git/./git-compat-util.h:156:30: note: expanded from macro 'HAS_MULTI_BITS'
#define HAS_MULTI_BITS(i)  ((i) & ((i) - 1))  /* checks if an integer has more than 1 bit set */
                             ^
/datasets/git/diff.c:4733:82: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (HAS_MULTI_BITS(options->pickaxe_opts & DIFF_PICKAXE_KINDS_ALL_OBJFIND_MASK))
                                                                                        ^
                                                                                         {
/datasets/git/diff.c:4744:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((options->xdl_opts & XDF_WHITESPACE_FLAGS) ||
             ^~~~~~~~~~~~~~~~~
/datasets/git/diff.c:4744:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((options->xdl_opts & XDF_WHITESPACE_FLAGS) ||
                                 ^
/datasets/git/./xdiff/xdiff.h:37:31: note: expanded from macro 'XDF_WHITESPACE_FLAGS'
#define XDF_WHITESPACE_FLAGS (XDF_IGNORE_WHITESPACE | \
                              ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./xdiff/xdiff.h:33:31: note: expanded from macro 'XDF_IGNORE_WHITESPACE'
#define XDF_IGNORE_WHITESPACE (1 << 1)
                              ^
/datasets/git/diff.c:4745:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            options->ignore_regex_nr)
                                     ^
                                      {
/datasets/git/diff.c:4747:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/diff.c:4750:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (options->flags.find_copies_harder)
                                              ^
                                               {
/datasets/git/diff.c:4753:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!options->flags.relative_name)
                                          ^
                                           {
/datasets/git/diff.c:4755:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (options->prefix)
                            ^
                             {
/datasets/git/diff.c:4756:28: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                options->prefix_length = strlen(options->prefix);
                                         ^
/datasets/git/diff.c:4757:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/diff.c:4760:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (options->output_format & (DIFF_FORMAT_NAME |
            ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:4760:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (options->output_format & (DIFF_FORMAT_NAME |
                                      ^
/datasets/git/./diff.h:108:26: note: expanded from macro 'DIFF_FORMAT_NAME'
#define DIFF_FORMAT_NAME        0x0100
                                ^
/datasets/git/diff.c:4763:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                      DIFF_FORMAT_NO_OUTPUT))
                                                             ^
                                                              {
/datasets/git/diff.c:4764:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                options->output_format &= ~(DIFF_FORMAT_RAW |
                ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:4764:29: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                options->output_format &= ~(DIFF_FORMAT_RAW |
                                          ^~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:4764:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                options->output_format &= ~(DIFF_FORMAT_RAW |
                                            ^
/datasets/git/./diff.h:99:26: note: expanded from macro 'DIFF_FORMAT_RAW'
#define DIFF_FORMAT_RAW         0x0001
                                ^
/datasets/git/diff.c:4776:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (options->output_format & (DIFF_FORMAT_PATCH |
            ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:4776:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (options->output_format & (DIFF_FORMAT_PATCH |
                                      ^
/datasets/git/./diff.h:103:27: note: expanded from macro 'DIFF_FORMAT_PATCH'
#define DIFF_FORMAT_PATCH       0x0010
                                ^
/datasets/git/diff.c:4782:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                      DIFF_FORMAT_CHECKDIFF))
                                                             ^
                                                              {
/datasets/git/diff.c:4787:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (options->pickaxe_opts & DIFF_PICKAXE_KINDS_MASK)
            ^
/datasets/git/diff.c:4787:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (options->pickaxe_opts & DIFF_PICKAXE_KINDS_MASK)
                                    ^
/datasets/git/./diff.h:556:34: note: expanded from macro 'DIFF_PICKAXE_KINDS_MASK'
#define DIFF_PICKAXE_KINDS_MASK (DIFF_PICKAXE_KIND_S | \
                                 ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./diff.h:552:29: note: expanded from macro 'DIFF_PICKAXE_KIND_S'
#define DIFF_PICKAXE_KIND_S     4 /* traditional plumbing counter */
                                ^
/datasets/git/diff.c:4787:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (options->pickaxe_opts & DIFF_PICKAXE_KINDS_MASK)
                                                            ^
                                                             {
/datasets/git/diff.c:4793:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (options->output_format & DIFF_FORMAT_PATCH)
            ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:4793:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (options->output_format & DIFF_FORMAT_PATCH)
                                                       ^
                                                        {
/datasets/git/diff.c:4796:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (options->detect_rename && options->rename_limit < 0)
                                                                ^
                                                                 {
/datasets/git/diff.c:4798:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (hexsz < options->abbrev)
                                    ^
                                     {
/datasets/git/diff.c:4813:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (options->flags.follow_renames && options->pathspec.nr != 1)
                                                                       ^
                                                                        {
/datasets/git/diff.c:4816:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!options->use_color || external_diff())
                                                   ^
                                                    {
/datasets/git/diff.c:4820:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!options->filter)
                                     ^
                                      {
/datasets/git/diff.c:4825:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(options->parseopts);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/diff.c:4832:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!skip_prefix(arg, "--", &arg))
                                          ^
                                           {
/datasets/git/diff.c:4834:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!skip_prefix(arg, opt, &arg))
                                         ^
                                          {
/datasets/git/diff.c:4840:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*arg != '\0')
                         ^
                          {
/datasets/git/diff.c:4843:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!argv[1])
                     ^
                      {
/datasets/git/diff.c:4849:12: warning: function 'diff_opt_stat' has cognitive complexity of 28 (threshold 25) [readability-function-cognitive-complexity]
static int diff_opt_stat(const struct option *opt, const char *value, int unset)
           ^
/datasets/git/diff.c:4858:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/diff.c:4858:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:285:2: note: expanded from macro 'BUG_ON_OPT_NEG'
        if ((unset)) \
        ^
/datasets/git/diff.c:4860:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(opt->long_name, "stat")) {
        ^
/datasets/git/diff.c:4861:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (value) {
                ^
/datasets/git/diff.c:4863:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (*end == ',')
                        ^
/datasets/git/diff.c:4865:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (*end == ',')
                        ^
/datasets/git/diff.c:4867:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (*end)
                        ^
/datasets/git/diff.c:4870:9: note: +1, nesting level increased to 1
        } else if (!strcmp(opt->long_name, "stat-width")) {
               ^
/datasets/git/diff.c:4872:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*end)
                ^
/datasets/git/diff.c:4875:9: note: +1, nesting level increased to 1
        } else if (!strcmp(opt->long_name, "stat-name-width")) {
               ^
/datasets/git/diff.c:4877:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*end)
                ^
/datasets/git/diff.c:4880:9: note: +1, nesting level increased to 1
        } else if (!strcmp(opt->long_name, "stat-graph-width")) {
               ^
/datasets/git/diff.c:4882:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*end)
                ^
/datasets/git/diff.c:4885:9: note: +1, nesting level increased to 1
        } else if (!strcmp(opt->long_name, "stat-count")) {
               ^
/datasets/git/diff.c:4887:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*end)
                ^
/datasets/git/diff.c:4890:4: note: +1, nesting level increased to 1
        } else
          ^
/datasets/git/diff.c:4856:8: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
        char *end;
              ^
                  = NULL
/datasets/git/diff.c:4858:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/diff.c:4862:12: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        width = strtoul(value, &end, 10);
                                ^
/datasets/git/diff.c:4862:33: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        width = strtoul(value, &end, 10);
                                                     ^
/datasets/git/diff.c:4863:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (*end == ',')
                                        ^
                                         {
/datasets/git/diff.c:4864:18: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                name_width = strtoul(end+1, &end, 10);
                                             ^
/datasets/git/diff.c:4864:39: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                name_width = strtoul(end+1, &end, 10);
                                                                  ^
/datasets/git/diff.c:4865:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (*end == ',')
                                        ^
                                         {
/datasets/git/diff.c:4866:13: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                count = strtoul(end+1, &end, 10);
                                        ^
/datasets/git/diff.c:4866:34: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                count = strtoul(end+1, &end, 10);
                                                             ^
/datasets/git/diff.c:4867:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (*end)
                                 ^
                                  {
/datasets/git/diff.c:4871:11: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                width = strtoul(value, &end, 10);
                        ^
/datasets/git/diff.c:4871:32: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                width = strtoul(value, &end, 10);
                                             ^
/datasets/git/diff.c:4872:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*end)
                         ^
                          {
/datasets/git/diff.c:4876:16: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                name_width = strtoul(value, &end, 10);
                             ^
/datasets/git/diff.c:4876:37: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                name_width = strtoul(value, &end, 10);
                                                  ^
/datasets/git/diff.c:4877:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*end)
                         ^
                          {
/datasets/git/diff.c:4881:17: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                graph_width = strtoul(value, &end, 10);
                              ^
/datasets/git/diff.c:4881:38: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                graph_width = strtoul(value, &end, 10);
                                                   ^
/datasets/git/diff.c:4882:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*end)
                         ^
                          {
/datasets/git/diff.c:4886:11: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                count = strtoul(value, &end, 10);
                        ^
/datasets/git/diff.c:4886:32: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                count = strtoul(value, &end, 10);
                                             ^
/datasets/git/diff.c:4887:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*end)
                         ^
                          {
/datasets/git/diff.c:4890:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/diff.c:4893:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        options->output_format |= DIFF_FORMAT_DIFFSTAT;
        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:4904:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_dirstat_params(options, params, &errmsg))
                                                           ^
                                                            {
/datasets/git/diff.c:4912:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        options->output_format |= DIFF_FORMAT_DIRSTAT;
        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:4920:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, optch;
        ^~~~~~~~~~~~~
/datasets/git/diff.c:4920:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, optch;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:4920:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:4920:9: warning: variable 'optch' is not initialized [cppcoreguidelines-init-variables]
        int i, optch;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:4922:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/diff.c:4920:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int i, optch;
        ^
/datasets/git/diff.c:4925:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; (optch = optarg[i]) != '\0'; i++) {
        ^
/datasets/git/diff.c:4925:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'optch' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; (optch = optarg[i]) != '\0'; i++) {
                    ^
/datasets/git/diff.c:4925:23: warning: 'signed char' to 'int' conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse,cert-str34-c]
        for (i = 0; (optch = optarg[i]) != '\0'; i++) {
                             ^
/datasets/git/diff.c:4926:16: warning: variable 'bit' is not initialized [cppcoreguidelines-init-variables]
                unsigned int bit;
                             ^
                                 = 0
/datasets/git/diff.c:4927:7: warning: variable 'negate' is not initialized [cppcoreguidelines-init-variables]
                int negate;
                    ^
                           = 0
/datasets/git/diff.c:4937:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!bit)
                         ^
                          {
/datasets/git/diff.c:4940:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (negate)
                           ^
                            {
/datasets/git/diff.c:4942:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/diff.c:4950:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        *fmt &= ~DIFF_FORMAT_NO_OUTPUT;
        ^~~~
/datasets/git/diff.c:4950:10: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
        *fmt &= ~DIFF_FORMAT_NO_OUTPUT;
                ^
/datasets/git/diff.c:4951:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        *fmt |= DIFF_FORMAT_PATCH;
        ^~~~
/datasets/git/diff.c:4960:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/diff.c:4961:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (val < 0)
                    ^
                     {
/datasets/git/diff.c:4974:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/diff.c:4975:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid(arg, &oid))
                               ^
                                {
/datasets/git/diff.c:4978:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opt->objfind)
                          ^
                           {
/datasets/git/diff.c:4981:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        opt->pickaxe_opts |= DIFF_PICKAXE_KIND_OBJFIND;
        ^
/datasets/git/diff.c:4993:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/diff.c:4994:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        options->xdl_opts = DIFF_WITH_ALG(options, PATIENCE_DIFF);
                            ^
/datasets/git/./diff.h:218:38: note: expanded from macro 'DIFF_WITH_ALG'
#define DIFF_WITH_ALG(opts, flag)   (((opts)->xdl_opts & ~XDF_DIFF_ALGORITHM_MASK) | XDF_##flag)
                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:4994:22: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
        options->xdl_opts = DIFF_WITH_ALG(options, PATIENCE_DIFF);
                            ^
/datasets/git/./diff.h:218:58: note: expanded from macro 'DIFF_WITH_ALG'
#define DIFF_WITH_ALG(opts, flag)   (((opts)->xdl_opts & ~XDF_DIFF_ALGORITHM_MASK) | XDF_##flag)
                                                         ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:4995:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(options->anchors, options->anchors_nr + 1,
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/diff.c:5006:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/diff.c:5007:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_ARG(arg);
        ^
/datasets/git/./parse-options.h:288:29: note: expanded from macro 'BUG_ON_OPT_ARG'
#define BUG_ON_OPT_ARG(arg) do { \
                            ^
/datasets/git/diff.c:5017:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int opt1, opt2;
        ^~~~~~~~~~~~~~~
/datasets/git/diff.c:5017:6: warning: variable 'opt1' is not initialized [cppcoreguidelines-init-variables]
        int opt1, opt2;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:5017:12: warning: variable 'opt2' is not initialized [cppcoreguidelines-init-variables]
        int opt1, opt2;
                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:5019:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/diff.c:5020:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!arg)
                 ^
                  {
/datasets/git/diff.c:5023:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*arg == 0)
                      ^
                       {
/datasets/git/diff.c:5025:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (*arg != '/')
                             ^
                              {
/datasets/git/diff.c:5031:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*arg != 0)
                      ^
                       {
/datasets/git/diff.c:5033:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        *break_opt = opt1 | (opt2 << 16);
                     ^~~~
/datasets/git/diff.c:5033:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        *break_opt = opt1 | (opt2 << 16);
                             ^~~~
/datasets/git/diff.c:5033:31: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        *break_opt = opt1 | (opt2 << 16);
                                     ^
/datasets/git/diff.c:5042:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/diff.c:5043:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (arg[1])
                   ^
                    {
/datasets/git/diff.c:5058:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (diff_color_moved_default)
                                             ^
                                              {
/datasets/git/diff.c:5060:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (options->color_moved == COLOR_MOVED_NO)
                                                           ^
                                                            {
/datasets/git/diff.c:5063:7: warning: variable name 'cm' is too short, expected at least 3 characters [readability-identifier-length]
                int cm = parse_color_moved(arg);
                    ^
/datasets/git/diff.c:5064:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cm < 0)
                           ^
                            {
/datasets/git/diff.c:5075:11: warning: variable 'cm' is not initialized [cppcoreguidelines-init-variables]
        unsigned cm;
                 ^
                    = 0
/datasets/git/diff.c:5075:11: warning: variable name 'cm' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:5083:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (cm & COLOR_MOVED_WS_ERROR)
            ^
/datasets/git/diff.c:5083:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (cm & COLOR_MOVED_WS_ERROR)
                 ^
/datasets/git/./diff.h:393:32: note: expanded from macro 'COLOR_MOVED_WS_ERROR'
        #define COLOR_MOVED_WS_ERROR (1<<0)
                                      ^
/datasets/git/diff.c:5083:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cm & COLOR_MOVED_WS_ERROR)
                                      ^
                                       {
/datasets/git/diff.c:5094:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/diff.c:5106:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_ARG(arg);
        ^
/datasets/git/./parse-options.h:288:29: note: expanded from macro 'BUG_ON_OPT_ARG'
#define BUG_ON_OPT_ARG(arg) do { \
                            ^
/datasets/git/diff.c:5111:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                options->output_format |= DIFF_FORMAT_DIFFSTAT;
                ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:5122:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/diff.c:5123:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (value < 0)
                      ^
                       {
/datasets/git/diff.c:5128:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        DIFF_XDL_CLR(options, NEED_MINIMAL);
        ^
/datasets/git/./diff.h:216:38: note: expanded from macro 'DIFF_XDL_CLR'
#define DIFF_XDL_CLR(opts, flag)    ((opts)->xdl_opts &= ~XDF_##flag)
                                     ^~~~~~~~~~~~~~~~
/datasets/git/diff.c:5128:2: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
        DIFF_XDL_CLR(options, NEED_MINIMAL);
        ^
/datasets/git/./diff.h:216:58: note: expanded from macro 'DIFF_XDL_CLR'
#define DIFF_XDL_CLR(opts, flag)    ((opts)->xdl_opts &= ~XDF_##flag)
                                                         ^~~~~~~~~~~
/datasets/git/diff.c:5129:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        options->xdl_opts &= ~XDF_DIFF_ALGORITHM_MASK;
        ^~~~~~~~~~~~~~~~~
/datasets/git/diff.c:5129:23: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
        options->xdl_opts &= ~XDF_DIFF_ALGORITHM_MASK;
                             ^
/datasets/git/diff.c:5129:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        options->xdl_opts &= ~XDF_DIFF_ALGORITHM_MASK;
                              ^
/datasets/git/./xdiff/xdiff.h:46:34: note: expanded from macro 'XDF_DIFF_ALGORITHM_MASK'
#define XDF_DIFF_ALGORITHM_MASK (XDF_PATIENCE_DIFF | XDF_HISTOGRAM_DIFF)
                                 ^~~~~~~~~~~~~~~~~
/datasets/git/./xdiff/xdiff.h:44:27: note: expanded from macro 'XDF_PATIENCE_DIFF'
#define XDF_PATIENCE_DIFF (1 << 14)
                          ^~~~~~~~~
/datasets/git/diff.c:5130:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        options->xdl_opts |= value;
        ^~~~~~~~~~~~~~~~~
/datasets/git/diff.c:5130:23: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        options->xdl_opts |= value;
                             ^
/datasets/git/diff.c:5139:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/diff.c:5141:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (arg)
                        ^
                         {
/datasets/git/diff.c:5144:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else if (!strcmp(opt->long_name, "dirstat-by-file"))
                                                              ^
                                                               {
/datasets/git/diff.c:5155:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/diff.c:5156:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!arg)
                 ^
                  {
/datasets/git/diff.c:5159:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*arg != 0)
                      ^
                       {
/datasets/git/diff.c:5162:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (options->detect_rename == DIFF_DETECT_COPY)
                                                       ^
                                                        {
/datasets/git/diff.c:5164:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/diff.c:5175:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/diff.c:5176:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!arg)
                 ^
                  {
/datasets/git/diff.c:5179:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*arg != 0)
                      ^
                       {
/datasets/git/diff.c:5191:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_ARG(arg);
        ^
/datasets/git/./parse-options.h:288:29: note: expanded from macro 'BUG_ON_OPT_ARG'
#define BUG_ON_OPT_ARG(arg) do { \
                            ^
/datasets/git/diff.c:5206:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/diff.c:5207:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!arg)
                 ^
                  {
/datasets/git/diff.c:5219:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/diff.c:5231:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/diff.c:5232:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_ARG(optarg);
        ^
/datasets/git/./parse-options.h:288:29: note: expanded from macro 'BUG_ON_OPT_ARG'
#define BUG_ON_OPT_ARG(arg) do { \
                            ^
/datasets/git/diff.c:5243:8: warning: variable 'path' is not initialized [cppcoreguidelines-init-variables]
        char *path;
              ^
                   = NULL
/datasets/git/diff.c:5245:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/diff.c:5249:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (options->use_color != GIT_COLOR_ALWAYS)
                                                   ^
                                                    {
/datasets/git/diff.c:5259:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/diff.c:5259:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:5261:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/diff.c:5262:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_ARG(arg);
        ^
/datasets/git/./parse-options.h:288:29: note: expanded from macro 'BUG_ON_OPT_ARG'
#define BUG_ON_OPT_ARG(arg) do { \
                            ^
/datasets/git/diff.c:5263:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        options->xdl_opts = DIFF_WITH_ALG(options, PATIENCE_DIFF);
                            ^
/datasets/git/./diff.h:218:38: note: expanded from macro 'DIFF_WITH_ALG'
#define DIFF_WITH_ALG(opts, flag)   (((opts)->xdl_opts & ~XDF_DIFF_ALGORITHM_MASK) | XDF_##flag)
                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:5263:22: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
        options->xdl_opts = DIFF_WITH_ALG(options, PATIENCE_DIFF);
                            ^
/datasets/git/./diff.h:218:58: note: expanded from macro 'DIFF_WITH_ALG'
#define DIFF_WITH_ALG(opts, flag)   (((opts)->xdl_opts & ~XDF_DIFF_ALGORITHM_MASK) | XDF_##flag)
                                                         ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:5269:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < options->anchors_nr; i++)
        ^
/datasets/git/diff.c:5269:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'options' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < options->anchors_nr; i++)
                    ^
/datasets/git/diff.c:5269:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < options->anchors_nr; i++)
                                                 ^
                                                  {
/datasets/git/diff.c:5279:11: warning: variable 'regex' is not initialized [cppcoreguidelines-init-variables]
        regex_t *regex;
                 ^
                       = NULL
/datasets/git/diff.c:5281:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/diff.c:5283:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (regcomp(regex, arg, REG_EXTENDED | REG_NEWLINE))
                                                            ^
                                                             {
/datasets/git/diff.c:5285:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(options->ignore_regex, options->ignore_regex_nr + 1,
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/diff.c:5285:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_GROW(options->ignore_regex, options->ignore_regex_nr + 1,
        ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/diff.c:5296:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/diff.c:5298:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        options->pickaxe_opts |= DIFF_PICKAXE_KIND_G;
        ^
/datasets/git/diff.c:5307:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/diff.c:5309:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        options->pickaxe_opts |= DIFF_PICKAXE_KIND_S;
        ^
/datasets/git/diff.c:5319:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (arg)
                ^
                 {
/datasets/git/diff.c:5329:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/diff.c:5330:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!arg)
                 ^
                  {
/datasets/git/diff.c:5332:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_submodule_params(options, arg))
                                                 ^
                                                  {
/datasets/git/diff.c:5343:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_ARG(arg);
        ^
/datasets/git/./parse-options.h:288:29: note: expanded from macro 'BUG_ON_OPT_ARG'
#define BUG_ON_OPT_ARG(arg) do { \
                            ^
/datasets/git/diff.c:5357:8: warning: variable 's' is not initialized [cppcoreguidelines-init-variables]
        char *s;
              ^
                = NULL
/datasets/git/diff.c:5357:8: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:5359:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/diff.c:5362:22: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                options->context = strtol(arg, &s, 10);
                                   ^
/datasets/git/diff.c:5362:38: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                options->context = strtol(arg, &s, 10);
                                                   ^
/datasets/git/diff.c:5363:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*s)
                       ^
                        {
/datasets/git/diff.c:5376:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/diff.c:5378:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(arg, "plain"))
                                          ^
                                           {
/datasets/git/diff.c:5384:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(arg, "porcelain"))
                                                   ^
                                                    {
/datasets/git/diff.c:5386:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(arg, "none"))
                                              ^
                                               {
/datasets/git/diff.c:5388:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/diff.c:5391:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (options->word_diff == DIFF_WORDS_NONE)
                                                          ^
                                                           {
/datasets/git/diff.c:5402:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/diff.c:5403:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (options->word_diff == DIFF_WORDS_NONE)
                                                  ^
                                                   {
/datasets/git/diff.c:5413:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/diff.c:5414:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(opt->long_name, "skip-to"))
                                               ^
                                                {
/datasets/git/diff.c:5416:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/diff.c:5426:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BITOP('p', "patch", &options->output_format,
                ^
/datasets/git/./parse-options.h:177:10: note: expanded from macro 'OPT_BITOP'
                                            PARSE_OPT_NOARG|PARSE_OPT_NONEG, NULL, \
                                            ^~~~~~~~~~~~~~~
/datasets/git/diff.c:5429:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT_F('s', "no-patch", &options->output_format,
                ^
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/diff.c:5432:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BITOP('u', NULL, &options->output_format,
                ^
/datasets/git/./parse-options.h:177:10: note: expanded from macro 'OPT_BITOP'
                                            PARSE_OPT_NOARG|PARSE_OPT_NONEG, NULL, \
                                            ^~~~~~~~~~~~~~~
/datasets/git/diff.c:5437:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                               PARSE_OPT_NONEG | PARSE_OPT_OPTARG, diff_opt_unified),
                               ^
/datasets/git/./parse-options.h:169:47: note: expanded from macro 'OPT_CALLBACK_F'
        { OPTION_CALLBACK, (s), (l), (v), (a), (h), (f), (cb) }
                                                     ^
/datasets/git/diff.c:5438:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('W', "function-context", &options->flags.funccontext,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/diff.c:5440:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT_F(0, "raw", &options->output_format,
                ^
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/diff.c:5443:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BITOP(0, "patch-with-raw", &options->output_format,
                ^
/datasets/git/./parse-options.h:177:10: note: expanded from macro 'OPT_BITOP'
                                            PARSE_OPT_NOARG|PARSE_OPT_NONEG, NULL, \
                                            ^~~~~~~~~~~~~~~
/datasets/git/diff.c:5445:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                          DIFF_FORMAT_PATCH | DIFF_FORMAT_RAW,
                          ^
/datasets/git/./diff.h:103:27: note: expanded from macro 'DIFF_FORMAT_PATCH'
#define DIFF_FORMAT_PATCH       0x0010
                                ^~~~~~
/datasets/git/./parse-options.h:178:11: note: expanded from macro 'OPT_BITOP'
                                            (set), NULL, (clear) }
                                             ^~~
/datasets/git/diff.c:5447:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BITOP(0, "patch-with-stat", &options->output_format,
                ^
/datasets/git/./parse-options.h:177:10: note: expanded from macro 'OPT_BITOP'
                                            PARSE_OPT_NOARG|PARSE_OPT_NONEG, NULL, \
                                            ^~~~~~~~~~~~~~~
/datasets/git/diff.c:5449:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                          DIFF_FORMAT_PATCH | DIFF_FORMAT_DIFFSTAT,
                          ^
/datasets/git/./diff.h:103:27: note: expanded from macro 'DIFF_FORMAT_PATCH'
#define DIFF_FORMAT_PATCH       0x0010
                                ^~~~~~
/datasets/git/./parse-options.h:178:11: note: expanded from macro 'OPT_BITOP'
                                            (set), NULL, (clear) }
                                             ^~~
/datasets/git/diff.c:5451:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT_F(0, "numstat", &options->output_format,
                ^
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/diff.c:5454:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT_F(0, "shortstat", &options->output_format,
                ^
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/diff.c:5459:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                               PARSE_OPT_NONEG | PARSE_OPT_OPTARG,
                               ^
/datasets/git/./parse-options.h:169:47: note: expanded from macro 'OPT_CALLBACK_F'
        { OPTION_CALLBACK, (s), (l), (v), (a), (h), (f), (cb) }
                                                     ^
/datasets/git/diff.c:5463:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                               PARSE_OPT_NONEG | PARSE_OPT_NOARG,
                               ^
/datasets/git/./parse-options.h:169:47: note: expanded from macro 'OPT_CALLBACK_F'
        { OPTION_CALLBACK, (s), (l), (v), (a), (h), (f), (cb) }
                                                     ^
/datasets/git/diff.c:5467:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                               PARSE_OPT_NONEG | PARSE_OPT_OPTARG,
                               ^
/datasets/git/./parse-options.h:169:47: note: expanded from macro 'OPT_CALLBACK_F'
        { OPTION_CALLBACK, (s), (l), (v), (a), (h), (f), (cb) }
                                                     ^
/datasets/git/diff.c:5469:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT_F(0, "check", &options->output_format,
                ^
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/diff.c:5472:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT_F(0, "summary", &options->output_format,
                ^
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/diff.c:5475:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT_F(0, "name-only", &options->output_format,
                ^
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/diff.c:5478:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT_F(0, "name-status", &options->output_format,
                ^
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/diff.c:5483:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                               PARSE_OPT_NONEG | PARSE_OPT_OPTARG, diff_opt_stat),
                               ^
/datasets/git/./parse-options.h:169:47: note: expanded from macro 'OPT_CALLBACK_F'
        { OPTION_CALLBACK, (s), (l), (v), (a), (h), (f), (cb) }
                                                     ^
/datasets/git/diff.c:5501:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                               PARSE_OPT_NONEG | PARSE_OPT_NOARG, diff_opt_binary),
                               ^
/datasets/git/./parse-options.h:169:47: note: expanded from macro 'OPT_CALLBACK_F'
        { OPTION_CALLBACK, (s), (l), (v), (a), (h), (f), (cb) }
                                                     ^
/datasets/git/diff.c:5502:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "full-index", &options->flags.full_index,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/diff.c:5509:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT('z', NULL, &options->line_termination,
                ^
/datasets/git/./parse-options.h:182:37: note: expanded from macro 'OPT_SET_INT'
#define OPT_SET_INT(s, l, v, h, i)  OPT_SET_INT_F(s, l, v, h, i, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/diff.c:5524:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                               PARSE_OPT_NONEG | PARSE_OPT_NOARG, diff_opt_no_prefix),
                               ^
/datasets/git/./parse-options.h:169:47: note: expanded from macro 'OPT_CALLBACK_F'
        { OPTION_CALLBACK, (s), (l), (v), (a), (h), (f), (cb) }
                                                     ^
/datasets/git/diff.c:5547:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                               PARSE_OPT_NONEG | PARSE_OPT_OPTARG,
                               ^
/datasets/git/./parse-options.h:169:47: note: expanded from macro 'OPT_CALLBACK_F'
        { OPTION_CALLBACK, (s), (l), (v), (a), (h), (f), (cb) }
                                                     ^
/datasets/git/diff.c:5551:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                               PARSE_OPT_NONEG | PARSE_OPT_OPTARG,
                               ^
/datasets/git/./parse-options.h:169:47: note: expanded from macro 'OPT_CALLBACK_F'
        { OPTION_CALLBACK, (s), (l), (v), (a), (h), (f), (cb) }
                                                     ^
/datasets/git/diff.c:5553:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT_F('D', "irreversible-delete", &options->irreversible_delete,
                ^
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/diff.c:5558:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                               PARSE_OPT_NONEG | PARSE_OPT_OPTARG,
                               ^
/datasets/git/./parse-options.h:169:47: note: expanded from macro 'OPT_CALLBACK_F'
        { OPTION_CALLBACK, (s), (l), (v), (a), (h), (f), (cb) }
                                                     ^
/datasets/git/diff.c:5560:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "find-copies-harder", &options->flags.find_copies_harder,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/diff.c:5562:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT_F(0, "no-renames", &options->detect_rename,
                ^
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/diff.c:5565:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "rename-empty", &options->flags.rename_empty,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/diff.c:5574:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT(0, "minimal", &options->xdl_opts,
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/diff.c:5576:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        XDF_NEED_MINIMAL),
                        ^
/datasets/git/./xdiff/xdiff.h:31:27: note: expanded from macro 'XDF_NEED_MINIMAL'
#define XDF_NEED_MINIMAL (1 << 0)
                          ^
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/diff.c:5577:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT_F('w', "ignore-all-space", &options->xdl_opts,
                ^
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/diff.c:5579:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                          XDF_IGNORE_WHITESPACE, PARSE_OPT_NONEG),
                          ^
/datasets/git/./xdiff/xdiff.h:33:32: note: expanded from macro 'XDF_IGNORE_WHITESPACE'
#define XDF_IGNORE_WHITESPACE (1 << 1)
                               ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/diff.c:5580:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT_F('b', "ignore-space-change", &options->xdl_opts,
                ^
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/diff.c:5582:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                          XDF_IGNORE_WHITESPACE_CHANGE, PARSE_OPT_NONEG),
                          ^
/datasets/git/./xdiff/xdiff.h:34:39: note: expanded from macro 'XDF_IGNORE_WHITESPACE_CHANGE'
#define XDF_IGNORE_WHITESPACE_CHANGE (1 << 2)
                                      ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/diff.c:5583:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT_F(0, "ignore-space-at-eol", &options->xdl_opts,
                ^
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/diff.c:5585:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                          XDF_IGNORE_WHITESPACE_AT_EOL, PARSE_OPT_NONEG),
                          ^
/datasets/git/./xdiff/xdiff.h:35:39: note: expanded from macro 'XDF_IGNORE_WHITESPACE_AT_EOL'
#define XDF_IGNORE_WHITESPACE_AT_EOL (1 << 3)
                                      ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/diff.c:5586:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT_F(0, "ignore-cr-at-eol", &options->xdl_opts,
                ^
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/diff.c:5588:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                          XDF_IGNORE_CR_AT_EOL, PARSE_OPT_NONEG),
                          ^
/datasets/git/./xdiff/xdiff.h:36:31: note: expanded from macro 'XDF_IGNORE_CR_AT_EOL'
#define XDF_IGNORE_CR_AT_EOL (1 << 4)
                              ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/diff.c:5589:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT_F(0, "ignore-blank-lines", &options->xdl_opts,
                ^
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/diff.c:5591:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                          XDF_IGNORE_BLANK_LINES, PARSE_OPT_NONEG),
                          ^
/datasets/git/./xdiff/xdiff.h:42:33: note: expanded from macro 'XDF_IGNORE_BLANK_LINES'
#define XDF_IGNORE_BLANK_LINES (1 << 7)
                                ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/diff.c:5595:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT(0, "indent-heuristic", &options->xdl_opts,
                ^
/datasets/git/./parse-options.h:175:37: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/diff.c:5597:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        XDF_INDENT_HEURISTIC),
                        ^
/datasets/git/./xdiff/xdiff.h:49:31: note: expanded from macro 'XDF_INDENT_HEURISTIC'
#define XDF_INDENT_HEURISTIC (1 << 23)
                              ^
/datasets/git/./parse-options.h:175:59: note: expanded from macro 'OPT_BIT'
#define OPT_BIT(s, l, v, h, b)      OPT_BIT_F(s, l, v, h, b, 0)
                                                          ^
/datasets/git/./parse-options.h:162:39: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                                                  ^
/datasets/git/diff.c:5600:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                               PARSE_OPT_NONEG | PARSE_OPT_NOARG,
                               ^
/datasets/git/./parse-options.h:169:47: note: expanded from macro 'OPT_CALLBACK_F'
        { OPTION_CALLBACK, (s), (l), (v), (a), (h), (f), (cb) }
                                                     ^
/datasets/git/diff.c:5602:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BITOP(0, "histogram", &options->xdl_opts,
                ^
/datasets/git/./parse-options.h:177:10: note: expanded from macro 'OPT_BITOP'
                                            PARSE_OPT_NOARG|PARSE_OPT_NONEG, NULL, \
                                            ^~~~~~~~~~~~~~~
/datasets/git/diff.c:5604:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                          XDF_HISTOGRAM_DIFF, XDF_DIFF_ALGORITHM_MASK),
                          ^
/datasets/git/./xdiff/xdiff.h:45:29: note: expanded from macro 'XDF_HISTOGRAM_DIFF'
#define XDF_HISTOGRAM_DIFF (1 << 15)
                            ^
/datasets/git/./parse-options.h:178:11: note: expanded from macro 'OPT_BITOP'
                                            (set), NULL, (clear) }
                                             ^~~
/datasets/git/diff.c:5604:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                          XDF_HISTOGRAM_DIFF, XDF_DIFF_ALGORITHM_MASK),
                                              ^
/datasets/git/./xdiff/xdiff.h:46:34: note: expanded from macro 'XDF_DIFF_ALGORITHM_MASK'
#define XDF_DIFF_ALGORITHM_MASK (XDF_PATIENCE_DIFF | XDF_HISTOGRAM_DIFF)
                                 ^~~~~~~~~~~~~~~~~
/datasets/git/./xdiff/xdiff.h:44:27: note: expanded from macro 'XDF_PATIENCE_DIFF'
#define XDF_PATIENCE_DIFF (1 << 14)
                          ^~~~~~~~~
/datasets/git/./parse-options.h:178:24: note: expanded from macro 'OPT_BITOP'
                                            (set), NULL, (clear) }
                                                          ^~~~~
/datasets/git/diff.c:5613:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                               PARSE_OPT_NONEG | PARSE_OPT_OPTARG, diff_opt_word_diff),
                               ^
/datasets/git/./parse-options.h:169:47: note: expanded from macro 'OPT_CALLBACK_F'
        { OPTION_CALLBACK, (s), (l), (v), (a), (h), (f), (cb) }
                                                     ^
/datasets/git/diff.c:5619:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                               PARSE_OPT_NONEG | PARSE_OPT_OPTARG, diff_opt_color_words),
                               ^
/datasets/git/./parse-options.h:169:47: note: expanded from macro 'OPT_CALLBACK_F'
        { OPTION_CALLBACK, (s), (l), (v), (a), (h), (f), (cb) }
                                                     ^
/datasets/git/diff.c:5632:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('a', "text", &options->flags.text,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/diff.c:5634:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL('R', NULL, &options->flags.reverse_diff,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/diff.c:5636:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "exit-code", &options->flags.exit_with_status,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/diff.c:5638:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "quiet", &options->flags.quick,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/diff.c:5640:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "ext-diff", &options->flags.allow_external,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/diff.c:5647:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                               PARSE_OPT_NONEG | PARSE_OPT_OPTARG,
                               ^
/datasets/git/./parse-options.h:169:47: note: expanded from macro 'OPT_CALLBACK_F'
        { OPTION_CALLBACK, (s), (l), (v), (a), (h), (f), (cb) }
                                                     ^
/datasets/git/diff.c:5651:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                               PARSE_OPT_NONEG | PARSE_OPT_OPTARG,
                               ^
/datasets/git/./parse-options.h:169:47: note: expanded from macro 'OPT_CALLBACK_F'
        { OPTION_CALLBACK, (s), (l), (v), (a), (h), (f), (cb) }
                                                     ^
/datasets/git/diff.c:5653:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT_F(0, "ita-invisible-in-index", &options->ita_invisible_in_index,
                ^
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/diff.c:5656:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_SET_INT_F(0, "ita-visible-in-index", &options->ita_invisible_in_index,
                ^
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/diff.c:5665:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT_F(0, "pickaxe-all", &options->pickaxe_opts,
                ^
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/diff.c:5668:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BIT_F(0, "pickaxe-regex", &options->pickaxe_opts,
                ^
/datasets/git/./parse-options.h:162:11: note: expanded from macro 'OPT_BIT_F'
                                      PARSE_OPT_NOARG|(f), NULL, (b) }
                                      ^~~~~~~~~~~~~~~
/datasets/git/diff.c:5693:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(options->parseopts, parseopts, sizeof(parseopts));
        ^~~~~~
/datasets/git/diff.c:5693:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(options->parseopts, parseopts, sizeof(parseopts));
        ^~~~~~
/datasets/git/diff.c:5697:19: warning: parameter name 'av' is too short, expected at least 3 characters [readability-identifier-length]
                   const char **av, int ac, const char *prefix)
                                ^
/datasets/git/diff.c:5697:27: warning: parameter name 'ac' is too short, expected at least 3 characters [readability-identifier-length]
                   const char **av, int ac, const char *prefix)
                                        ^
/datasets/git/diff.c:5699:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!prefix)
                    ^
                     {
/datasets/git/diff.c:5703:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                           PARSE_OPT_KEEP_DASHDASH |
                           ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:5714:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned long num, scale;
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:5714:16: warning: variable 'num' is not initialized [cppcoreguidelines-init-variables]
        unsigned long num, scale;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:5714:21: warning: variable 'scale' is not initialized [cppcoreguidelines-init-variables]
        unsigned long num, scale;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:5715:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int ch, dot;
        ^~~~~~~~~~~~
/datasets/git/diff.c:5715:6: warning: variable 'ch' is not initialized [cppcoreguidelines-init-variables]
        int ch, dot;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:5715:6: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:5715:10: warning: variable 'dot' is not initialized [cppcoreguidelines-init-variables]
        int ch, dot;
                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:5716:14: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
        const char *cp = *cp_p;
                    ^
/datasets/git/diff.c:5721:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/diff.c:5722:8: warning: 'signed char' to 'int' conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse,cert-str34-c]
                ch = *cp;
                     ^
/datasets/git/diff.c:5727:24: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        scale = dot ? scale*100 : 100;
                                            ^
/datasets/git/diff.c:5727:30: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        scale = dot ? scale*100 : 100;
                                                  ^
/datasets/git/diff.c:5731:17: warning: 100000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        if ( scale < 100000 ) {
                                     ^
/datasets/git/diff.c:5732:14: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                scale *= 10;
                                         ^
/datasets/git/diff.c:5733:16: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                num = (num*10) + (ch-'0');
                                           ^
/datasets/git/diff.c:5745:57: warning: narrowing conversion from 'unsigned long' to 'double' [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return (int)((num >= scale) ? MAX_SCORE : (MAX_SCORE * num / scale));
                                                               ^
/datasets/git/diff.c:5745:63: warning: narrowing conversion from 'unsigned long' to 'double' [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return (int)((num >= scale) ? MAX_SCORE : (MAX_SCORE * num / scale));
                                                                     ^
/datasets/git/diff.c:5748:26: warning: variable 'diff_queued_diff' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
struct diff_queue_struct diff_queued_diff;
                         ^
/datasets/git/diff.c:5750:68: warning: parameter name 'dp' is too short, expected at least 3 characters [readability-identifier-length]
void diff_q(struct diff_queue_struct *queue, struct diff_filepair *dp)
                                                                   ^
/datasets/git/diff.c:5752:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(queue->queue, queue->nr + 1, queue->alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/diff.c:5752:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_GROW(queue->queue, queue->nr + 1, queue->alloc);
        ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/diff.c:5757:6: warning: 2 adjacent parameters of 'diff_queue' of similar type ('struct diff_filespec *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                 struct diff_filespec *one,
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:5757:28: note: the first parameter in the range is 'one'
                                 struct diff_filespec *one,
                                                       ^~~
/datasets/git/diff.c:5758:28: note: the last parameter in the range is 'two'
                                 struct diff_filespec *two)
                                                       ^~~
/datasets/git/diff.c:5760:24: warning: variable name 'dp' is too short, expected at least 3 characters [readability-identifier-length]
        struct diff_filepair *dp = xcalloc(1, sizeof(*dp));
                              ^
/datasets/git/diff.c:5763:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (queue)
                  ^
                   {
/datasets/git/diff.c:5768:47: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
void diff_free_filepair(struct diff_filepair *p)
                                              ^
/datasets/git/diff.c:5775:48: warning: parameter name 'q' is too short, expected at least 3 characters [readability-identifier-length]
void diff_free_queue(struct diff_queue_struct *q)
                                               ^
/datasets/git/diff.c:5777:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (int i = 0; i < q->nr; i++)
        ^
/datasets/git/diff.c:5777:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (int i = 0; i < q->nr; i++)
                                       ^
                                        {
/datasets/git/diff.c:5784:6: warning: variable 'abblen' is not initialized [cppcoreguidelines-init-variables]
        int abblen;
            ^
                   = 0
/datasets/git/diff.c:5785:14: warning: variable 'abbrev' is not initialized [cppcoreguidelines-init-variables]
        const char *abbrev;
                    ^
                           = NULL
/datasets/git/diff.c:5788:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len == the_hash_algo->hexsz)
                                        ^
                                         {
/datasets/git/diff.c:5794:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!print_sha1_ellipsis())
                                   ^
                                    {
/datasets/git/diff.c:5797:11: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        abblen = strlen(abbrev);
                 ^
/datasets/git/diff.c:5820:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (len < abblen && abblen <= len + 2)
                                                      ^
                                                       {
/datasets/git/diff.c:5822:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/diff.c:5830:50: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static void diff_flush_raw(struct diff_filepair *p, struct diff_options *opt)
                                                 ^
/datasets/git/diff.c:5835:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(opt->file, "%s", diff_line_prefix(opt));
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:5835:2: note: cast the expression to void to silence this warning
/datasets/git/diff.c:5836:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(opt->output_format & DIFF_FORMAT_NAME_STATUS)) {
              ^~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:5837:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(opt->file, ":%06o %06o %s ", p->one->mode, p->two->mode,
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:5837:3: note: cast the expression to void to silence this warning
/datasets/git/diff.c:5839:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(opt->file, "%s ",
                ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:5839:3: note: cast the expression to void to silence this warning
/datasets/git/diff.c:5843:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(opt->file, "%c%03d%c", p->status, similarity_index(p),
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:5843:3: note: cast the expression to void to silence this warning
/datasets/git/diff.c:5846:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(opt->file, "%c%c", p->status, inter_name_termination);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:5846:3: note: cast the expression to void to silence this warning
/datasets/git/diff.c:5851:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                const char *name_a, *name_b;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:5851:15: warning: variable 'name_a' is not initialized [cppcoreguidelines-init-variables]
                const char *name_a, *name_b;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:5851:24: warning: variable 'name_b' is not initialized [cppcoreguidelines-init-variables]
                const char *name_a, *name_b;
                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:5858:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                const char *name_a, *name_b;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:5858:15: warning: variable 'name_a' is not initialized [cppcoreguidelines-init-variables]
                const char *name_a, *name_b;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:5858:24: warning: variable 'name_b' is not initialized [cppcoreguidelines-init-variables]
                const char *name_a, *name_b;
                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:5866:48: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
int diff_unmodified_pair(struct diff_filepair *p)
                                               ^
/datasets/git/diff.c:5873:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct diff_filespec *one = p->one, *two = p->two;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:5875:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (DIFF_PAIR_UNMERGED(p))
                                  ^
                                   {
/datasets/git/diff.c:5883:6: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
            strcmp(one->path, two->path))
            ^
                                         != 0
/datasets/git/diff.c:5883:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            strcmp(one->path, two->path))
                                         ^
                                          {
/datasets/git/diff.c:5891:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !one->dirty_submodule && !two->dirty_submodule)
                                                           ^
                                                            {
/datasets/git/diff.c:5893:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!one->oid_valid && !two->oid_valid)
                                               ^
                                                {
/datasets/git/diff.c:5898:52: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static void diff_flush_patch(struct diff_filepair *p, struct diff_options *o)
                                                   ^
/datasets/git/diff.c:5898:76: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static void diff_flush_patch(struct diff_filepair *p, struct diff_options *o)
                                                                           ^
/datasets/git/diff.c:5915:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (diff_unmodified_pair(p) && !include_conflict_headers)
                                                                 ^
                                                                  {
/datasets/git/diff.c:5920:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            (DIFF_FILE_VALID(p->two) && S_ISDIR(p->two->mode)))
                                                               ^
                                                                {
/datasets/git/diff.c:5926:51: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static void diff_flush_stat(struct diff_filepair *p, struct diff_options *o,
                                                  ^
/datasets/git/diff.c:5926:75: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static void diff_flush_stat(struct diff_filepair *p, struct diff_options *o,
                                                                          ^
/datasets/git/diff.c:5929:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (diff_unmodified_pair(p))
                                    ^
                                     {
/datasets/git/diff.c:5933:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            (DIFF_FILE_VALID(p->two) && S_ISDIR(p->two->mode)))
                                                               ^
                                                                {
/datasets/git/diff.c:5939:56: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static void diff_flush_checkdiff(struct diff_filepair *p,
                                                       ^
/datasets/git/diff.c:5940:24: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                struct diff_options *o)
                                     ^
/datasets/git/diff.c:5942:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (diff_unmodified_pair(p))
                                    ^
                                     {
/datasets/git/diff.c:5946:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            (DIFF_FILE_VALID(p->two) && S_ISDIR(p->two->mode)))
                                                               ^
                                                                {
/datasets/git/diff.c:5952:46: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
int diff_queue_is_empty(struct diff_options *o)
                                             ^
/datasets/git/diff.c:5954:28: warning: variable name 'q' is too short, expected at least 3 characters [readability-identifier-length]
        struct diff_queue_struct *q = &diff_queued_diff;
                                  ^
/datasets/git/diff.c:5955:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/diff.c:5955:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:5962:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (include_conflict_headers)
                                     ^
                                      {
/datasets/git/diff.c:5965:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < q->nr; i++)
        ^
/datasets/git/diff.c:5965:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'q' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < q->nr; i++)
                    ^
/datasets/git/diff.c:5965:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < q->nr; i++)
                                   ^
                                    {
/datasets/git/diff.c:5966:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!diff_unmodified_pair(q->queue[i]))
                                                       ^
                                                        {
/datasets/git/diff.c:6009:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/diff.c:6009:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:6010:24: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct diff_filepair *p;
                              ^
                                = NULL
/datasets/git/diff.c:6010:24: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:6011:28: warning: variable name 'q' is too short, expected at least 3 characters [readability-identifier-length]
        struct diff_queue_struct *q = &diff_queued_diff;
                                  ^
/datasets/git/diff.c:6013:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        diff_debug_queue("resolve-rename-copy", q);
        ^
/datasets/git/./diffcore.h:217:31: note: expanded from macro 'diff_debug_queue'
#define diff_debug_queue(a,b) do { /* nothing */ } while (0)
                              ^
/datasets/git/diff.c:6011:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct diff_queue_struct *q = &diff_queued_diff;
        ^
/datasets/git/diff.c:6015:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < q->nr; i++) {
        ^
/datasets/git/diff.c:6015:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'q' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < q->nr; i++) {
                    ^
/datasets/git/diff.c:6018:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (DIFF_PAIR_UNMERGED(p))
                                          ^
                                           {
/datasets/git/diff.c:6020:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!DIFF_FILE_VALID(p->one))
                                                  ^
                                                   {
/datasets/git/diff.c:6022:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!DIFF_FILE_VALID(p->two))
                                                  ^
                                                   {
/datasets/git/diff.c:6024:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (DIFF_PAIR_TYPE_CHANGED(p))
                                                   ^
                                                    {
/datasets/git/diff.c:6042:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!strcmp(p->one->path, p->two->path))
                                                                ^
                                                                 {
/datasets/git/diff.c:6044:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (--p->one->rename_used > 0)
                                                           ^
                                                            {
/datasets/git/diff.c:6046:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/diff.c:6053:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                         is_null_oid(&p->one->oid))
                                                   ^
                                                    {
/datasets/git/diff.c:6064:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        diff_debug_queue("resolve-rename-copy done", q);
        ^
/datasets/git/./diffcore.h:217:31: note: expanded from macro 'diff_debug_queue'
#define diff_debug_queue(a,b) do { /* nothing */ } while (0)
                              ^
/datasets/git/diff.c:6067:52: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static int check_pair_status(struct diff_filepair *p)
                                                   ^
/datasets/git/diff.c:6079:50: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static void flush_one_pair(struct diff_filepair *p, struct diff_options *opt)
                                                 ^
/datasets/git/diff.c:6083:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (fmt & DIFF_FORMAT_CHECKDIFF)
            ^~~
/datasets/git/diff.c:6083:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fmt & DIFF_FORMAT_CHECKDIFF)
                                        ^
                                         {
/datasets/git/diff.c:6085:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        else if (fmt & (DIFF_FORMAT_RAW | DIFF_FORMAT_NAME_STATUS))
                 ^~~
/datasets/git/diff.c:6085:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        else if (fmt & (DIFF_FORMAT_RAW | DIFF_FORMAT_NAME_STATUS))
                        ^
/datasets/git/./diff.h:99:26: note: expanded from macro 'DIFF_FORMAT_RAW'
#define DIFF_FORMAT_RAW         0x0001
                                ^~~~~~
/datasets/git/diff.c:6085:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (fmt & (DIFF_FORMAT_RAW | DIFF_FORMAT_NAME_STATUS))
                                                                   ^
                                                                    {
/datasets/git/diff.c:6087:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        else if (fmt & DIFF_FORMAT_NAME) {
                 ^~~
/datasets/git/diff.c:6088:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                const char *name_a, *name_b;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:6088:15: warning: variable 'name_a' is not initialized [cppcoreguidelines-init-variables]
                const char *name_a, *name_b;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:6088:24: warning: variable 'name_b' is not initialized [cppcoreguidelines-init-variables]
                const char *name_a, *name_b;
                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:6092:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(opt->file, "%s", diff_line_prefix(opt));
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:6092:3: note: cast the expression to void to silence this warning
/datasets/git/diff.c:6097:104: warning: parameter name 'fs' is too short, expected at least 3 characters [readability-identifier-length]
static void show_file_mode_name(struct diff_options *opt, const char *newdelete, struct diff_filespec *fs)
                                                                                                       ^
/datasets/git/diff.c:6099:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/diff.c:6100:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fs->mode)
                     ^
                      {
/datasets/git/diff.c:6102:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/diff.c:6108:13: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                         sb.buf, sb.len, 0);
                                 ^
/datasets/git/diff.c:6112:78: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static void show_mode_change(struct diff_options *opt, struct diff_filepair *p,
                                                                             ^
/datasets/git/diff.c:6116:17: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                struct strbuf sb = STRBUF_INIT;
                              ^
/datasets/git/diff.c:6125:14: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                 sb.buf, sb.len, 0);
                                         ^
/datasets/git/diff.c:6131:25: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct diff_filepair *p)
                                      ^
/datasets/git/diff.c:6133:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/diff.c:6141:14: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                 sb.buf, sb.len, 0);
                                         ^
/datasets/git/diff.c:6146:74: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static void diff_summary(struct diff_options *opt, struct diff_filepair *p)
                                                                         ^
/datasets/git/diff.c:6163:18: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                        struct strbuf sb = STRBUF_INIT;
                                      ^
/datasets/git/diff.c:6168:15: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                         sb.buf, sb.len, 0);
                                                 ^
/datasets/git/diff.c:6176:8: warning: accessing fields in struct 'patch_id_t' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct patch_id_t {
       ^
/datasets/git/diff.c:6176:8: note: use "__attribute__((aligned(16)))" to align struct 'patch_id_t' to 16 bytes
/datasets/git/diff.c:6183:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/diff.c:6183:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:6185:16: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        unsigned char c;
                      ^
                        = 0
/datasets/git/diff.c:6185:16: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:6187:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < len; i++)
        ^
/datasets/git/diff.c:6187:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < len; i++)
                                 ^
                                  {
/datasets/git/diff.c:6188:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!isspace((c = line[i])))
                     ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/diff.c:6188:17: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                if (!isspace((c = line[i])))
                              ^
/datasets/git/diff.c:6188:17: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/diff.c:6188:17: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/diff.c:6188:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!isspace((c = line[i])))
                                            ^
                                             {
/datasets/git/diff.c:6189:13: warning: narrowing conversion from 'unsigned char' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        *dst++ = c;
                                 ^
/datasets/git/diff.c:6191:9: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return dst - line;
               ^
/datasets/git/diff.c:6198:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/diff.c:6198:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:6203:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < the_hash_algo->rawsz; ++i) {
        ^
/datasets/git/diff.c:6206:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                carry >>= 8;
                ^         ~
/datasets/git/diff.c:6206:13: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                carry >>= 8;
                          ^
/datasets/git/diff.c:6213:6: warning: variable 'new_len' is not initialized [cppcoreguidelines-init-variables]
        int new_len;
            ^
                    = 0
/datasets/git/diff.c:6215:12: warning: 12 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (len > 12 && starts_with(line, "\\ "))
                  ^
/datasets/git/diff.c:6215:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len > 12 && starts_with(line, "\\ "))
                                                 ^
                                                  {
/datasets/git/diff.c:6217:31: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        new_len = remove_space(line, len);
                                     ^
/datasets/git/diff.c:6232:11: warning: 12 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        char buf[12];
                 ^
/datasets/git/diff.c:6238:12: warning: function 'diff_get_patch_id' has cognitive complexity of 35 (threshold 25) [readability-function-cognitive-complexity]
static int diff_get_patch_id(struct diff_options *options, struct object_id *oid, int diff_header_only)
           ^
/datasets/git/diff.c:6250:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < q->nr; i++) {
        ^
/datasets/git/diff.c:6259:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (p->status == 0)
                ^
/datasets/git/diff.c:6261:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (p->status == DIFF_STATUS_UNKNOWN)
                ^
/datasets/git/diff.c:6263:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (diff_unmodified_pair(p))
                ^
/datasets/git/diff.c:6265:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((DIFF_FILE_VALID(p->one) && S_ISDIR(p->one->mode)) ||
                ^
/datasets/git/diff.c:6265:58: note: +1
                if ((DIFF_FILE_VALID(p->one) && S_ISDIR(p->one->mode)) ||
                                                                       ^
/datasets/git/diff.c:6265:32: note: +1
                if ((DIFF_FILE_VALID(p->one) && S_ISDIR(p->one->mode)) ||
                                             ^
/datasets/git/diff.c:6266:32: note: +1
                    (DIFF_FILE_VALID(p->two) && S_ISDIR(p->two->mode)))
                                             ^
/datasets/git/diff.c:6268:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (DIFF_PAIR_UNMERGED(p))
                ^
/datasets/git/diff.c:6282:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (p->one->mode == 0) {
                ^
/datasets/git/diff.c:6285:10: note: +1, nesting level increased to 2
                } else if (p->two->mode == 0) {
                       ^
/datasets/git/diff.c:6288:10: note: +1, nesting level increased to 2
                } else if (p->one->mode != p->two->mode) {
                       ^
/datasets/git/diff.c:6295:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (diff_header_only) {
                ^
/datasets/git/diff.c:6297:10: note: +1, nesting level increased to 2
                } else if (diff_filespec_is_binary(options->repo, p->one) ||
                       ^
/datasets/git/diff.c:6297:61: note: +1
                } else if (diff_filespec_is_binary(options->repo, p->one) ||
                                                                          ^
/datasets/git/diff.c:6303:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/diff.c:6304:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (p->one->mode == 0) {
                        ^
/datasets/git/diff.c:6308:11: note: +1, nesting level increased to 3
                        } else if (p->two->mode == 0) {
                               ^
/datasets/git/diff.c:6312:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/diff.c:6319:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (fill_mmfile(options->repo, &mf1, p->one) < 0 ||
                        ^
/datasets/git/diff.c:6319:53: note: +1
                        if (fill_mmfile(options->repo, &mf1, p->one) < 0 ||
                                                                         ^
/datasets/git/diff.c:6325:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (xdi_diff_outf(&mf1, &mf2, NULL,
                        ^
/datasets/git/diff.c:6240:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct diff_queue_struct *q = &diff_queued_diff;
        ^
/datasets/git/diff.c:6240:28: warning: variable name 'q' is too short, expected at least 3 characters [readability-identifier-length]
        struct diff_queue_struct *q = &diff_queued_diff;
                                  ^
/datasets/git/diff.c:6241:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/diff.c:6241:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:6246:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&data, 0, sizeof(struct patch_id_t));
        ^~~~~~
/datasets/git/diff.c:6246:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&data, 0, sizeof(struct patch_id_t));
        ^~~~~~
/datasets/git/diff.c:6250:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < q->nr; i++) {
        ^
/datasets/git/diff.c:6250:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'q' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < q->nr; i++) {
                    ^
/datasets/git/diff.c:6253:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                mmfile_t mf1, mf2;
                ^~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:6254:25: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct diff_filepair *p = q->queue[i];
                                      ^
/datasets/git/diff.c:6255:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int len1, len2;
                ^~~~~~~~~~~~~~~
/datasets/git/diff.c:6255:7: warning: variable 'len1' is not initialized [cppcoreguidelines-init-variables]
                int len1, len2;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:6255:13: warning: variable 'len2' is not initialized [cppcoreguidelines-init-variables]
                int len1, len2;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:6257:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(&xpp, 0, sizeof(xpp));
                ^~~~~~
/datasets/git/diff.c:6257:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(&xpp, 0, sizeof(xpp));
                ^~~~~~
/datasets/git/diff.c:6258:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(&xecfg, 0, sizeof(xecfg));
                ^~~~~~
/datasets/git/diff.c:6258:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(&xecfg, 0, sizeof(xecfg));
                ^~~~~~
/datasets/git/diff.c:6259:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (p->status == 0)
                                   ^
                                    {
/datasets/git/diff.c:6261:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (p->status == DIFF_STATUS_UNKNOWN)
                                                     ^
                                                      {
/datasets/git/diff.c:6263:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (diff_unmodified_pair(p))
                                            ^
                                             {
/datasets/git/diff.c:6266:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    (DIFF_FILE_VALID(p->two) && S_ISDIR(p->two->mode)))
                                                                       ^
                                                                        {
/datasets/git/diff.c:6268:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (DIFF_PAIR_UNMERGED(p))
                                          ^
                                           {
/datasets/git/diff.c:6274:37: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                len1 = remove_space(p->one->path, strlen(p->one->path));
                                                  ^
/datasets/git/diff.c:6275:37: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                len2 = remove_space(p->two->path, strlen(p->two->path));
                                                  ^
/datasets/git/diff.c:6320:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            fill_mmfile(options->repo, &mf2, p->two) < 0)
                                                                         ^
                                                                          {
/datasets/git/diff.c:6324:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        xecfg.flags = XDL_EMIT_NO_HUNK_HDR;
                                      ^
/datasets/git/./xdiff/xdiff.h:53:31: note: expanded from macro 'XDL_EMIT_NO_HUNK_HDR'
#define XDL_EMIT_NO_HUNK_HDR (1 << 1)
                              ^
/datasets/git/diff.c:6326:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                          patch_id_consume, &data, &xpp, &xecfg))
                                                                                 ^
                                                                                  {
/datasets/git/diff.c:6338:28: warning: variable name 'q' is too short, expected at least 3 characters [readability-identifier-length]
        struct diff_queue_struct *q = &diff_queued_diff;
                                  ^
/datasets/git/diff.c:6342:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        DIFF_QUEUE_CLEAR(q);
        ^
/datasets/git/./diffcore.h:155:2: note: expanded from macro 'DIFF_QUEUE_CLEAR'
        do { \
        ^
/datasets/git/diff.c:6347:61: warning: parameter name 'q' is too short, expected at least 3 characters [readability-identifier-length]
static int is_summary_empty(const struct diff_queue_struct *q)
                                                            ^
/datasets/git/./diffcore.h:151:2: note: inferred assignment of ID-dependent member from ID-dependent member alloc [altera-id-dependent-backward-branch]
        int nr;
        ^
/datasets/git/diff.c:6349:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/diff.c:6349:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:6351:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < q->nr; i++) {
        ^
/datasets/git/diff.c:6351:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < q->nr; i++) {
                    ^
/datasets/git/diff.c:6352:31: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                const struct diff_filepair *p = q->queue[i];
                                            ^
/datasets/git/diff.c:6361:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (p->score)
                                     ^
                                      {
/datasets/git/diff.c:6364:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            p->one->mode != p->two->mode)
                                                         ^
                                                          {
/datasets/git/diff.c:6382:50: warning: 2 adjacent parameters of 'diff_warn_rename_limit' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
void diff_warn_rename_limit(const char *varname, int needed, int degraded_cc)
                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:6382:54: note: the first parameter in the range is 'needed'
void diff_warn_rename_limit(const char *varname, int needed, int degraded_cc)
                                                     ^~~~~~
/datasets/git/diff.c:6382:66: note: the last parameter in the range is 'degraded_cc'
void diff_warn_rename_limit(const char *varname, int needed, int degraded_cc)
                                                                 ^~~~~~~~~~~
/datasets/git/diff.c:6384:2: warning: the value returned by this function should be used [cert-err33-c]
        fflush(stdout);
        ^~~~~~~~~~~~~~
/datasets/git/diff.c:6384:2: note: cast the expression to void to silence this warning
/datasets/git/diff.c:6385:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (degraded_cc)
                        ^
                         {
/datasets/git/diff.c:6387:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (needed)
                        ^
                         {
/datasets/git/diff.c:6389:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/diff.c:6391:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (0 < needed)
                       ^
                        {
/datasets/git/diff.c:6395:81: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static void create_filepairs_for_header_only_notifications(struct diff_options *o)
                                                                                ^
/datasets/git/diff.c:6398:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct diff_queue_struct *q = &diff_queued_diff;
        ^
/datasets/git/diff.c:6398:28: warning: variable name 'q' is too short, expected at least 3 characters [readability-identifier-length]
        struct diff_queue_struct *q = &diff_queued_diff;
                                  ^
/datasets/git/diff.c:6400:23: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct strmap_entry *e;
                             ^
                               = NULL
/datasets/git/diff.c:6400:23: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:6401:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/diff.c:6401:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:6409:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < q->nr; i++) {
        ^
/datasets/git/diff.c:6400:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct strmap_entry *e;
        ^
/datasets/git/diff.c:6409:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'q' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < q->nr; i++) {
                    ^
/datasets/git/diff.c:6410:25: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct diff_filepair *p = q->queue[i];
                                      ^
/datasets/git/diff.c:6413:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strmap_contains(o->additional_path_headers, path))
                                                                      ^
                                                                       {
/datasets/git/diff.c:6422:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        strmap_for_each_entry(o->additional_path_headers, &iter, e) {
        ^
/datasets/git/./strmap.h:112:2: note: expanded from macro 'strmap_for_each_entry'
        hashmap_for_each_entry(&(mystrmap)->map, iter, var, ent)
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/diff.c:6422:59: warning: backward branch (for loop) is ID-dependent due to variable reference to 'e' and may cause performance degradation [altera-id-dependent-backward-branch]
        strmap_for_each_entry(o->additional_path_headers, &iter, e) {
                                                                 ^
/datasets/git/diff.c:6424:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        struct diff_filespec *one, *two;
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:6424:26: warning: variable 'one' is not initialized [cppcoreguidelines-init-variables]
                        struct diff_filespec *one, *two;
                                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:6424:32: warning: variable 'two' is not initialized [cppcoreguidelines-init-variables]
                        struct diff_filespec *one, *two;
                                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:6425:26: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                        struct diff_filepair *p;
                                              ^
                                                = NULL
/datasets/git/diff.c:6425:26: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:6443:66: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static void diff_flush_patch_all_file_pairs(struct diff_options *o)
                                                                 ^
/datasets/git/diff.c:6445:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/diff.c:6445:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:6447:28: warning: variable name 'q' is too short, expected at least 3 characters [readability-identifier-length]
        struct diff_queue_struct *q = &diff_queued_diff;
                                  ^
/datasets/git/diff.c:6449:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (WSEH_NEW & WS_RULE_MASK)
            ^
/datasets/git/./diff.h:328:18: note: expanded from macro 'WSEH_NEW'
#define WSEH_NEW (1<<12)
                 ^~~~~~~
/datasets/git/diff.c:6449:15: warning: ineffective bitwise and operation [misc-redundant-expression]
        if (WSEH_NEW & WS_RULE_MASK)
                     ^
/datasets/git/diff.c:6449:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (WSEH_NEW & WS_RULE_MASK)
                                    ^
                                     {
/datasets/git/diff.c:6452:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (o->color_moved)
                           ^
                            {
/datasets/git/diff.c:6455:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (o->additional_path_headers)
                                       ^
                                        {
/datasets/git/diff.c:6458:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < q->nr; i++) {
        ^
/datasets/git/diff.c:6458:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'q' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < q->nr; i++) {
                    ^
/datasets/git/diff.c:6459:25: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct diff_filepair *p = q->queue[i];
                                      ^
/datasets/git/diff.c:6460:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (check_pair_status(p))
                                         ^
                                          {
/datasets/git/diff.c:6467:29: warning: variable 'entry_list' is not initialized [cppcoreguidelines-init-variables]
                        struct moved_entry_list *entry_list;
                                                 ^
                                                            = NULL
/datasets/git/diff.c:6469:31: warning: performing an implicit widening conversion to type 'size_t' (aka 'unsigned long') of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                        mem_pool_init(&entry_pool, 1024 * 1024);
                                                   ^
/datasets/git/diff.c:6469:31: note: make conversion explicit to silence this warning
                        mem_pool_init(&entry_pool, 1024 * 1024);
                                                   ^~~~~~~~~~~
                                                   (size_t)( )
/datasets/git/diff.c:6469:31: note: perform multiplication in a wider type
                        mem_pool_init(&entry_pool, 1024 * 1024);
                                                   ^~~~
                                                   (long)
/datasets/git/diff.c:6469:31: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        mem_pool_init(&entry_pool, 1024 * 1024);
                                                   ^
/datasets/git/diff.c:6469:38: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        mem_pool_init(&entry_pool, 1024 * 1024);
                                                          ^
/datasets/git/diff.c:6473:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (o->color_moved == COLOR_MOVED_ZEBRA_DIM)
                                                                    ^
                                                                     {
/datasets/git/diff.c:6480:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < esm.nr; i++)
                ^
/datasets/git/diff.c:6480:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < esm.nr; i++)
                                            ^
                                             {
/datasets/git/diff.c:6483:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < esm.nr; i++)
                ^
/datasets/git/diff.c:6483:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < esm.nr; i++)
                                            ^
                                             {
/datasets/git/diff.c:6493:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (options->close_file)
                                ^
                                 {
/datasets/git/diff.c:6494:3: warning: the value returned by this function should be used [cert-err33-c]
                fclose(options->file);
                ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:6494:3: note: cast the expression to void to silence this warning
/datasets/git/diff.c:6499:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/diff.c:6499:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:6501:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < options->ignore_regex_nr; i++) {
        ^
/datasets/git/diff.c:6510:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (options->no_free)
                             ^
                              {
/datasets/git/diff.c:6516:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(options->parseopts);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/diff.c:6519:6: warning: function 'diff_flush' has cognitive complexity of 49 (threshold 25) [readability-function-cognitive-complexity]
void diff_flush(struct diff_options *options)
     ^
/datasets/git/diff.c:6530:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!q->nr && !options->additional_path_headers)
        ^
/datasets/git/diff.c:6530:13: note: +1
        if (!q->nr && !options->additional_path_headers)
                   ^
/datasets/git/diff.c:6533:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (output_format & (DIFF_FORMAT_RAW |
        ^
/datasets/git/diff.c:6537:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < q->nr; i++) {
                ^
/datasets/git/diff.c:6539:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (check_pair_status(p))
                        ^
/datasets/git/diff.c:6545:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (output_format & DIFF_FORMAT_DIRSTAT && options->flags.dirstat_by_line)
        ^
/datasets/git/diff.c:6545:42: note: +1
        if (output_format & DIFF_FORMAT_DIRSTAT && options->flags.dirstat_by_line)
                                                ^
/datasets/git/diff.c:6548:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (output_format & (DIFF_FORMAT_DIFFSTAT|DIFF_FORMAT_SHORTSTAT|DIFF_FORMAT_NUMSTAT) ||
        ^
/datasets/git/diff.c:6548:87: note: +1
        if (output_format & (DIFF_FORMAT_DIFFSTAT|DIFF_FORMAT_SHORTSTAT|DIFF_FORMAT_NUMSTAT) ||
                                                                                             ^
/datasets/git/diff.c:6553:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (output_format & DIFF_FORMAT_NUMSTAT)
                ^
/datasets/git/diff.c:6555:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (output_format & DIFF_FORMAT_DIFFSTAT)
                ^
/datasets/git/diff.c:6557:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (output_format & DIFF_FORMAT_SHORTSTAT)
                ^
/datasets/git/diff.c:6559:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (output_format & DIFF_FORMAT_DIRSTAT && dirstat_by_line)
                ^
/datasets/git/diff.c:6559:43: note: +1
                if (output_format & DIFF_FORMAT_DIRSTAT && dirstat_by_line)
                                                        ^
/datasets/git/diff.c:6564:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((output_format & DIFF_FORMAT_DIRSTAT) && !dirstat_by_line)
        ^
/datasets/git/diff.c:6564:44: note: +1
        if ((output_format & DIFF_FORMAT_DIRSTAT) && !dirstat_by_line)
                                                  ^
/datasets/git/diff.c:6567:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (output_format & DIFF_FORMAT_SUMMARY && !is_summary_empty(q)) {
        ^
/datasets/git/diff.c:6567:42: note: +1
        if (output_format & DIFF_FORMAT_SUMMARY && !is_summary_empty(q)) {
                                                ^
/datasets/git/diff.c:6568:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < q->nr; i++) {
                ^
/datasets/git/diff.c:6574:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (output_format & DIFF_FORMAT_NO_OUTPUT &&
        ^
/datasets/git/diff.c:6575:38: note: +1
            options->flags.exit_with_status &&
                                            ^
/datasets/git/diff.c:6586:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < q->nr; i++) {
                ^
/datasets/git/diff.c:6588:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (check_pair_status(p))
                        ^
/datasets/git/diff.c:6590:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (options->found_changes)
                        ^
/datasets/git/diff.c:6595:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (output_format & DIFF_FORMAT_PATCH) {
        ^
/datasets/git/diff.c:6596:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (separator) {
                ^
/datasets/git/diff.c:6598:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (options->stat_sep)
                        ^
/datasets/git/diff.c:6607:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (output_format & DIFF_FORMAT_CALLBACK)
        ^
/datasets/git/diff.c:6612:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        DIFF_QUEUE_CLEAR(q);
        ^
/datasets/git/./diffcore.h:155:2: note: expanded from macro 'DIFF_QUEUE_CLEAR'
        do { \
        ^
/datasets/git/diff.c:6620:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (options->flags.diff_from_contents) {
        ^
/datasets/git/diff.c:6621:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (options->found_changes)
                ^
/datasets/git/diff.c:6623:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/diff.c:6521:28: warning: variable name 'q' is too short, expected at least 3 characters [readability-identifier-length]
        struct diff_queue_struct *q = &diff_queued_diff;
                                  ^
/datasets/git/diff.c:6522:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, output_format = options->output_format;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:6522:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, output_format = options->output_format;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:6522:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:6530:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!q->nr && !options->additional_path_headers)
                                                        ^
                                                         {
/datasets/git/diff.c:6533:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (output_format & (DIFF_FORMAT_RAW |
            ^~~~~~~~~~~~~
/datasets/git/diff.c:6533:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (output_format & (DIFF_FORMAT_RAW |
                             ^
/datasets/git/./diff.h:99:26: note: expanded from macro 'DIFF_FORMAT_RAW'
#define DIFF_FORMAT_RAW         0x0001
                                ^
/datasets/git/diff.c:6537:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < q->nr; i++) {
                ^
/datasets/git/diff.c:6537:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'q' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < q->nr; i++) {
                            ^
/datasets/git/diff.c:6538:26: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                        struct diff_filepair *p = q->queue[i];
                                              ^
/datasets/git/diff.c:6539:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (check_pair_status(p))
                                                 ^
                                                  {
/datasets/git/diff.c:6545:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (output_format & DIFF_FORMAT_DIRSTAT && options->flags.dirstat_by_line)
            ^~~~~~~~~~~~~
/datasets/git/diff.c:6545:76: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (output_format & DIFF_FORMAT_DIRSTAT && options->flags.dirstat_by_line)
                                                                                  ^
                                                                                   {
/datasets/git/diff.c:6548:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (output_format & (DIFF_FORMAT_DIFFSTAT|DIFF_FORMAT_SHORTSTAT|DIFF_FORMAT_NUMSTAT) ||
            ^~~~~~~~~~~~~
/datasets/git/diff.c:6548:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (output_format & (DIFF_FORMAT_DIFFSTAT|DIFF_FORMAT_SHORTSTAT|DIFF_FORMAT_NUMSTAT) ||
                             ^
/datasets/git/./diff.h:100:30: note: expanded from macro 'DIFF_FORMAT_DIFFSTAT'
#define DIFF_FORMAT_DIFFSTAT    0x0002
                                ^
/datasets/git/diff.c:6553:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (output_format & DIFF_FORMAT_NUMSTAT)
                    ^~~~~~~~~~~~~
/datasets/git/diff.c:6553:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (output_format & DIFF_FORMAT_NUMSTAT)
                                                        ^
                                                         {
/datasets/git/diff.c:6555:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (output_format & DIFF_FORMAT_DIFFSTAT)
                    ^~~~~~~~~~~~~
/datasets/git/diff.c:6555:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (output_format & DIFF_FORMAT_DIFFSTAT)
                                                         ^
                                                          {
/datasets/git/diff.c:6557:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (output_format & DIFF_FORMAT_SHORTSTAT)
                    ^~~~~~~~~~~~~
/datasets/git/diff.c:6557:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (output_format & DIFF_FORMAT_SHORTSTAT)
                                                          ^
                                                           {
/datasets/git/diff.c:6559:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (output_format & DIFF_FORMAT_DIRSTAT && dirstat_by_line)
                    ^~~~~~~~~~~~~
/datasets/git/diff.c:6559:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (output_format & DIFF_FORMAT_DIRSTAT && dirstat_by_line)
                                                                           ^
                                                                            {
/datasets/git/diff.c:6564:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((output_format & DIFF_FORMAT_DIRSTAT) && !dirstat_by_line)
             ^~~~~~~~~~~~~
/datasets/git/diff.c:6564:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((output_format & DIFF_FORMAT_DIRSTAT) && !dirstat_by_line)
                                                                      ^
                                                                       {
/datasets/git/diff.c:6567:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (output_format & DIFF_FORMAT_SUMMARY && !is_summary_empty(q)) {
            ^~~~~~~~~~~~~
/datasets/git/diff.c:6521:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct diff_queue_struct *q = &diff_queued_diff;
        ^
/datasets/git/diff.c:6568:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < q->nr; i++) {
                ^
/datasets/git/diff.c:6568:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'q' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < q->nr; i++) {
                            ^
/datasets/git/diff.c:6574:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (output_format & DIFF_FORMAT_NO_OUTPUT &&
            ^~~~~~~~~~~~~
/datasets/git/diff.c:6521:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct diff_queue_struct *q = &diff_queued_diff;
        ^
/datasets/git/diff.c:6586:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < q->nr; i++) {
                ^
/datasets/git/diff.c:6586:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'q' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < q->nr; i++) {
                            ^
/datasets/git/diff.c:6587:26: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                        struct diff_filepair *p = q->queue[i];
                                              ^
/datasets/git/diff.c:6588:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (check_pair_status(p))
                                                 ^
                                                  {
/datasets/git/diff.c:6590:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (options->found_changes)
                                                   ^
                                                    {
/datasets/git/diff.c:6595:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (output_format & DIFF_FORMAT_PATCH) {
            ^~~~~~~~~~~~~
/datasets/git/diff.c:6598:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (options->stat_sep)
                                              ^
                                               {
/datasets/git/diff.c:6607:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (output_format & DIFF_FORMAT_CALLBACK)
            ^~~~~~~~~~~~~
/datasets/git/diff.c:6607:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (output_format & DIFF_FORMAT_CALLBACK)
                                                 ^
                                                  {
/datasets/git/diff.c:6612:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        DIFF_QUEUE_CLEAR(q);
        ^
/datasets/git/./diffcore.h:155:2: note: expanded from macro 'DIFF_QUEUE_CLEAR'
        do { \
        ^
/datasets/git/diff.c:6621:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (options->found_changes)
                                           ^
                                            {
/datasets/git/diff.c:6623:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/diff.c:6628:89: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static int match_filter(const struct diff_options *options, const struct diff_filepair *p)
                                                                                        ^
/datasets/git/diff.c:6641:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/diff.c:6641:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:6642:28: warning: variable name 'q' is too short, expected at least 3 characters [readability-identifier-length]
        struct diff_queue_struct *q = &diff_queued_diff;
                                  ^
/datasets/git/diff.c:6641:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int i;
        ^
/datasets/git/diff.c:6645:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        DIFF_QUEUE_CLEAR(&outq);
        ^
/datasets/git/./diffcore.h:155:2: note: expanded from macro 'DIFF_QUEUE_CLEAR'
        do { \
        ^
/datasets/git/diff.c:6647:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!options->filter)
                             ^
                              {
/datasets/git/diff.c:6651:7: warning: variable 'found' is not initialized [cppcoreguidelines-init-variables]
                int found;
                    ^
                          = 0
/datasets/git/diff.c:6652:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = found = 0; !found && i < q->nr; i++) {
                ^
/datasets/git/diff.c:6652:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = found = 0; !found && i < q->nr; i++) {
                                    ^
/datasets/git/diff.c:6653:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (match_filter(options, q->queue[i]))
                                                               ^
                                                                {
/datasets/git/diff.c:6656:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (found)
                          ^
                           {
/datasets/git/diff.c:6664:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < q->nr; i++)
                ^
/datasets/git/diff.c:6664:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < q->nr; i++)
                            ^
/datasets/git/diff.c:6664:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < q->nr; i++)
                                           ^
                                            {
/datasets/git/diff.c:6669:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < q->nr; i++) {
                ^
/datasets/git/diff.c:6669:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < q->nr; i++) {
                            ^
/datasets/git/diff.c:6670:26: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                        struct diff_filepair *p = q->queue[i];
                                              ^
/datasets/git/diff.c:6671:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (match_filter(options, p))
                                                     ^
                                                      {
/datasets/git/diff.c:6673:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/diff.c:6682:58: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int diff_filespec_is_identical(struct repository *r,
                                                         ^
/datasets/git/diff.c:6686:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (S_ISGITLINK(one->mode))
            ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/diff.c:6686:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (S_ISGITLINK(one->mode))
                                   ^
                                    {
/datasets/git/diff.c:6688:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (diff_populate_filespec(r, one, NULL))
                                                 ^
                                                  {
/datasets/git/diff.c:6690:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (diff_populate_filespec(r, two, NULL))
                                                 ^
                                                  {
/datasets/git/diff.c:6695:64: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int diff_filespec_check_stat_unmatch(struct repository *r,
                                                               ^
/datasets/git/diff.c:6696:32: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                                            struct diff_filepair *p)
                                                                  ^
/datasets/git/diff.c:6704:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (p->done_skip_stat_unmatch)
                                      ^
                                       {
/datasets/git/diff.c:6729:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !diff_filespec_is_identical(r, p->one, p->two)) /* (2) */
                                                           ^
                                                            {
/datasets/git/diff.c:6736:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/diff.c:6736:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:6737:28: warning: variable name 'q' is too short, expected at least 3 characters [readability-identifier-length]
        struct diff_queue_struct *q = &diff_queued_diff;
                                  ^
/datasets/git/diff.c:6739:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        DIFF_QUEUE_CLEAR(&outq);
        ^
/datasets/git/./diffcore.h:155:2: note: expanded from macro 'DIFF_QUEUE_CLEAR'
        do { \
        ^
/datasets/git/diff.c:6737:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct diff_queue_struct *q = &diff_queued_diff;
        ^
/datasets/git/diff.c:6741:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < q->nr; i++) {
        ^
/datasets/git/diff.c:6741:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'q' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < q->nr; i++) {
                    ^
/datasets/git/diff.c:6742:25: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct diff_filepair *p = q->queue[i];
                                      ^
/datasets/git/diff.c:6744:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (diff_filespec_check_stat_unmatch(diffopt->repo, p))
                                                                       ^
                                                                        {
/datasets/git/diff.c:6752:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!diffopt->flags.no_index)
                                                     ^
                                                      {
/datasets/git/diff.c:6761:36: warning: parameter name 'a_' is too short, expected at least 3 characters [readability-identifier-length]
static int diffnamecmp(const void *a_, const void *b_)
                                   ^
/datasets/git/diff.c:6761:52: warning: parameter name 'b_' is too short, expected at least 3 characters [readability-identifier-length]
static int diffnamecmp(const void *a_, const void *b_)
                                                   ^
/datasets/git/diff.c:6763:30: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        const struct diff_filepair *a = *((const struct diff_filepair **)a_);
                                    ^
/datasets/git/diff.c:6764:30: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        const struct diff_filepair *b = *((const struct diff_filepair **)b_);
                                    ^
/datasets/git/diff.c:6765:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *name_a, *name_b;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:6765:14: warning: variable 'name_a' is not initialized [cppcoreguidelines-init-variables]
        const char *name_a, *name_b;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:6765:23: warning: variable 'name_b' is not initialized [cppcoreguidelines-init-variables]
        const char *name_a, *name_b;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:6774:28: warning: variable name 'q' is too short, expected at least 3 characters [readability-identifier-length]
        struct diff_queue_struct *q = &diff_queued_diff;
                                  ^
/datasets/git/diff.c:6775:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        QSORT(q->queue, q->nr, diffnamecmp);
        ^
/datasets/git/./git-compat-util.h:1304:56: note: expanded from macro 'QSORT'
#define QSORT(base, n, compar) sane_qsort((base), (n), sizeof(*(base)), compar)
                                                       ^
/datasets/git/diff.c:6778:45: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void diff_add_if_missing(struct repository *r,
                                            ^
/datasets/git/diff.c:6783:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            !S_ISGITLINK(filespec->mode) &&
             ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/diff.c:6785:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                     OBJECT_INFO_FOR_PREFETCH))
                                     ^
/datasets/git/./object-store.h:448:35: note: expanded from macro 'OBJECT_INFO_FOR_PREFETCH'
#define OBJECT_INFO_FOR_PREFETCH (OBJECT_INFO_SKIP_FETCH_OBJECT | OBJECT_INFO_QUICK)
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./object-store.h:443:39: note: expanded from macro 'OBJECT_INFO_SKIP_FETCH_OBJECT'
#define OBJECT_INFO_SKIP_FETCH_OBJECT 32
                                      ^~
/datasets/git/diff.c:6793:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct diff_queue_struct *q = &diff_queued_diff;
        ^
/datasets/git/diff.c:6785:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                     OBJECT_INFO_FOR_PREFETCH))
                                                               ^
                                                                {
/datasets/git/diff.c:6792:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/diff.c:6792:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:6793:28: warning: variable name 'q' is too short, expected at least 3 characters [readability-identifier-length]
        struct diff_queue_struct *q = &diff_queued_diff;
                                  ^
/datasets/git/diff.c:6796:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < q->nr; i++) {
        ^
/datasets/git/diff.c:6796:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'q' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < q->nr; i++) {
                    ^
/datasets/git/diff.c:6797:25: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct diff_filepair *p = q->queue[i];
                                      ^
/datasets/git/diff.c:6805:49: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        promisor_remote_get_direct(repo, to_fetch.oid, to_fetch.nr);
                                                       ^
/datasets/git/diff.c:6812:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int output_formats_to_prefetch = DIFF_FORMAT_DIFFSTAT |
                                         ^
/datasets/git/./diff.h:100:30: note: expanded from macro 'DIFF_FORMAT_DIFFSTAT'
#define DIFF_FORMAT_DIFFSTAT    0x0002
                                ^
/datasets/git/diff.c:6827:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            (options->output_format & output_formats_to_prefetch ||
             ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:6828:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
             options->pickaxe_opts & DIFF_PICKAXE_KINDS_MASK))
             ^
/datasets/git/diff.c:6828:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
             options->pickaxe_opts & DIFF_PICKAXE_KINDS_MASK))
                                     ^
/datasets/git/./diff.h:556:34: note: expanded from macro 'DIFF_PICKAXE_KINDS_MASK'
#define DIFF_PICKAXE_KINDS_MASK (DIFF_PICKAXE_KIND_S | \
                                 ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./diff.h:552:29: note: expanded from macro 'DIFF_PICKAXE_KIND_S'
#define DIFF_PICKAXE_KIND_S     4 /* traditional plumbing counter */
                                ^
/datasets/git/diff.c:6828:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
             options->pickaxe_opts & DIFF_PICKAXE_KINDS_MASK))
                                                              ^
                                                               {
/datasets/git/diff.c:6832:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (options->skip_stat_unmatch)
                                       ^
                                        {
/datasets/git/diff.c:6836:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (options->break_opt != -1)
                                             ^
                                              {
/datasets/git/diff.c:6839:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (options->detect_rename)
                                           ^
                                            {
/datasets/git/diff.c:6841:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (options->break_opt != -1)
                                             ^
                                              {
/datasets/git/diff.c:6844:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (options->pickaxe_opts & DIFF_PICKAXE_KINDS_MASK)
            ^
/datasets/git/diff.c:6844:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (options->pickaxe_opts & DIFF_PICKAXE_KINDS_MASK)
                                    ^
/datasets/git/./diff.h:556:34: note: expanded from macro 'DIFF_PICKAXE_KINDS_MASK'
#define DIFF_PICKAXE_KINDS_MASK (DIFF_PICKAXE_KIND_S | \
                                 ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./diff.h:552:29: note: expanded from macro 'DIFF_PICKAXE_KIND_S'
#define DIFF_PICKAXE_KIND_S     4 /* traditional plumbing counter */
                                ^
/datasets/git/diff.c:6844:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (options->pickaxe_opts & DIFF_PICKAXE_KINDS_MASK)
                                                            ^
                                                             {
/datasets/git/diff.c:6846:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (options->orderfile)
                               ^
                                {
/datasets/git/diff.c:6848:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (options->rotate_to)
                               ^
                                {
/datasets/git/diff.c:6850:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!options->found_follow)
                                   ^
                                    {
/datasets/git/diff.c:6855:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (diff_queued_diff.nr && !options->flags.diff_from_contents)
                                                                      ^
                                                                       {
/datasets/git/diff.c:6857:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/diff.c:6871:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            !(opt->output_format & DIFF_FORMAT_CHECKDIFF))
              ^~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:6871:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !(opt->output_format & DIFF_FORMAT_CHECKDIFF))
                                                          ^
                                                           {
/datasets/git/diff.c:6874:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            opt->flags.has_changes)
                                   ^
                                    {
/datasets/git/diff.c:6875:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                result |= 01;
                ^~~~~~
/datasets/git/diff.c:6876:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((opt->output_format & DIFF_FORMAT_CHECKDIFF) &&
             ^~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:6877:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            opt->flags.check_failed)
                                    ^
                                     {
/datasets/git/diff.c:6878:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                result |= 02;
                ^~~~~~
/datasets/git/diff.c:6899:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!options->flags.override_submodule_config)
                                                      ^
                                                       {
/datasets/git/diff.c:6901:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (options->flags.ignore_submodules)
                                             ^
                                              {
/datasets/git/diff.c:6909:35: warning: parameter name 'q' is too short, expected at least 3 characters [readability-identifier-length]
                      struct diff_queue_struct *q)
                                                ^
/datasets/git/./diffcore.h:151:2: note: inferred assignment of ID-dependent member from ID-dependent member alloc [altera-id-dependent-backward-branch]
        int nr;
        ^
/datasets/git/diff.c:6911:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/diff.c:6911:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:6913:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(diffstat, 0, sizeof(struct diffstat_t));
        ^~~~~~
/datasets/git/diff.c:6913:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(diffstat, 0, sizeof(struct diffstat_t));
        ^~~~~~
/datasets/git/diff.c:6914:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < q->nr; i++) {
        ^
/datasets/git/diff.c:6914:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < q->nr; i++) {
                    ^
/datasets/git/diff.c:6915:25: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct diff_filepair *p = q->queue[i];
                                      ^
/datasets/git/diff.c:6916:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (check_pair_status(p))
                                         ^
                                          {
/datasets/git/diff.c:6922:7: warning: 2 adjacent parameters of 'diff_addremove' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                    int addremove, unsigned mode,
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:6922:11: note: the first parameter in the range is 'addremove'
                    int addremove, unsigned mode,
                        ^~~~~~~~~
/datasets/git/diff.c:6922:31: note: the last parameter in the range is 'mode'
                    int addremove, unsigned mode,
                                            ^~~~
/datasets/git/diff.c:6922:22: note: 'int' and 'unsigned int' may be implicitly converted
                    int addremove, unsigned mode,
                                   ^
/datasets/git/diff.c:6927:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct diff_filespec *one, *two;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:6927:24: warning: variable 'one' is not initialized [cppcoreguidelines-init-variables]
        struct diff_filespec *one, *two;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:6927:30: warning: variable 'two' is not initialized [cppcoreguidelines-init-variables]
        struct diff_filespec *one, *two;
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:6929:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (S_ISGITLINK(mode) && is_submodule_ignored(concatpath, options))
            ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/diff.c:6929:69: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (S_ISGITLINK(mode) && is_submodule_ignored(concatpath, options))
                                                                           ^
                                                                            {
/datasets/git/diff.c:6944:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (options->flags.reverse_diff)
                                        ^
                                         {
/datasets/git/diff.c:6949:6: warning: function 'strncmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
            strncmp(concatpath, options->prefix, options->prefix_length))
            ^
                                                                         != 0
/datasets/git/diff.c:6949:67: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            strncmp(concatpath, options->prefix, options->prefix_length))
                                                                         ^
                                                                          {
/datasets/git/diff.c:6955:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (addremove != '+')
                             ^
                              {
/datasets/git/diff.c:6963:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!options->flags.diff_from_contents)
                                               ^
                                                {
/datasets/git/diff.c:6975:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct diff_filespec *one, *two;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:6975:24: warning: variable 'one' is not initialized [cppcoreguidelines-init-variables]
        struct diff_filespec *one, *two;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:6975:30: warning: variable 'two' is not initialized [cppcoreguidelines-init-variables]
        struct diff_filespec *one, *two;
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:6976:24: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct diff_filepair *p;
                              ^
                                = NULL
/datasets/git/diff.c:6976:24: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:6978:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (S_ISGITLINK(old_mode) && S_ISGITLINK(new_mode) &&
            ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/diff.c:6978:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (S_ISGITLINK(old_mode) && S_ISGITLINK(new_mode) &&
                                     ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/diff.c:6979:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            is_submodule_ignored(concatpath, options))
                                                      ^
                                                       {
/datasets/git/diff.c:6983:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                SWAP(old_mode, new_mode);
                ^
/datasets/git/./git-compat-util.h:759:20: note: expanded from macro 'SWAP'
#define SWAP(a, b) do {                                         \
                   ^
/datasets/git/diff.c:6983:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                SWAP(old_mode, new_mode);
                ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/diff.c:6983:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                SWAP(old_mode, new_mode);
                ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/diff.c:6984:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                SWAP(old_oid, new_oid);
                ^
/datasets/git/./git-compat-util.h:759:20: note: expanded from macro 'SWAP'
#define SWAP(a, b) do {                                         \
                   ^
/datasets/git/diff.c:6984:3: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                SWAP(old_oid, new_oid);
                ^
/datasets/git/./git-compat-util.h:762:29: note: expanded from macro 'SWAP'
        unsigned char _swap_buffer[sizeof(a)];                  \
                                   ^
/datasets/git/diff.c:6984:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                SWAP(old_oid, new_oid);
                ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/diff.c:6984:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                SWAP(old_oid, new_oid);
                ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/diff.c:6985:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                SWAP(old_oid_valid, new_oid_valid);
                ^
/datasets/git/./git-compat-util.h:759:20: note: expanded from macro 'SWAP'
#define SWAP(a, b) do {                                         \
                   ^
/datasets/git/diff.c:6985:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                SWAP(old_oid_valid, new_oid_valid);
                ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/diff.c:6985:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                SWAP(old_oid_valid, new_oid_valid);
                ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/diff.c:6986:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                SWAP(old_dirty_submodule, new_dirty_submodule);
                ^
/datasets/git/./git-compat-util.h:759:20: note: expanded from macro 'SWAP'
#define SWAP(a, b) do {                                         \
                   ^
/datasets/git/diff.c:6986:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                SWAP(old_dirty_submodule, new_dirty_submodule);
                ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/diff.c:6986:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                SWAP(old_dirty_submodule, new_dirty_submodule);
                ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/diff.c:6990:6: warning: function 'strncmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
            strncmp(concatpath, options->prefix, options->prefix_length))
            ^
                                                                         != 0
/datasets/git/diff.c:6990:67: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            strncmp(concatpath, options->prefix, options->prefix_length))
                                                                         ^
                                                                          {
/datasets/git/diff.c:7001:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (options->flags.diff_from_contents)
                                              ^
                                               {
/datasets/git/diff.c:7016:24: warning: variable 'pair' is not initialized [cppcoreguidelines-init-variables]
        struct diff_filepair *pair;
                              ^
                                   = NULL
/datasets/git/diff.c:7017:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct diff_filespec *one, *two;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diff.c:7017:24: warning: variable 'one' is not initialized [cppcoreguidelines-init-variables]
        struct diff_filespec *one, *two;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:7017:30: warning: variable 'two' is not initialized [cppcoreguidelines-init-variables]
        struct diff_filespec *one, *two;
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diff.c:7020:6: warning: function 'strncmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
            strncmp(path, options->prefix, options->prefix_length))
            ^
                                                                   != 0
/datasets/git/diff.c:7020:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            strncmp(path, options->prefix, options->prefix_length))
                                                                   ^
                                                                    {
/datasets/git/diff.c:7030:46: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static char *run_textconv(struct repository *r,
                                             ^
/datasets/git/diff.c:7035:24: warning: variable 'temp' is not initialized [cppcoreguidelines-init-variables]
        struct diff_tempfile *temp;
                              ^
                                   = NULL
/datasets/git/diff.c:7051:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strbuf_read(&buf, child.out, 0) < 0)
                                                ^
                                                 {
/datasets/git/diff.c:7065:41: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
size_t fill_textconv(struct repository *r,
                                        ^
/datasets/git/diff.c:7067:30: warning: parameter name 'df' is too short, expected at least 3 characters [readability-identifier-length]
                     struct diff_filespec *df,
                                           ^
/datasets/git/diff.c:7070:9: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        size_t size;
               ^
                    = 0
/datasets/git/diff.c:7077:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (diff_populate_filespec(r, df, NULL))
                                                        ^
                                                         {
/datasets/git/diff.c:7083:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!driver->textconv)
                              ^
                               {
/datasets/git/diff.c:7090:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*outbuf)
                            ^
                             {
/datasets/git/diff.c:7095:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!*outbuf)
                     ^
                      {
/datasets/git/diff.c:7114:40: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int textconv_object(struct repository *r,
                                       ^
/datasets/git/diff.c:7122:24: warning: variable 'df' is not initialized [cppcoreguidelines-init-variables]
        struct diff_filespec *df;
                              ^
                                 = NULL
/datasets/git/diff.c:7122:24: warning: variable name 'df' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diff.c:7123:26: warning: variable 'textconv' is not initialized [cppcoreguidelines-init-variables]
        struct userdiff_driver *textconv;
                                ^
                                         = NULL
/datasets/git/diff.c:7150:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            check_pager_config("diff") != 0)
                                            ^
                                             {
diffcore-break.c:9:44: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int should_break(struct repository *r,
                                           ^
/datasets/git/diffcore-break.c:50:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned long delta_size, max_size;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-break.c:50:16: warning: variable 'delta_size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long delta_size, max_size;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-break.c:50:28: warning: variable 'max_size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long delta_size, max_size;
                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-break.c:51:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned long src_copied, literal_added, src_removed;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-break.c:51:16: warning: variable 'src_copied' is not initialized [cppcoreguidelines-init-variables]
        unsigned long src_copied, literal_added, src_removed;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-break.c:51:28: warning: variable 'literal_added' is not initialized [cppcoreguidelines-init-variables]
        unsigned long src_copied, literal_added, src_removed;
                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-break.c:51:43: warning: variable 'src_removed' is not initialized [cppcoreguidelines-init-variables]
        unsigned long src_copied, literal_added, src_removed;
                                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-break.c:65:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            oideq(&src->oid, &dst->oid))
                                        ^
                                         {
/datasets/git/diffcore-break.c:74:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            diff_populate_filespec(r, dst, &options))
                                                     ^
                                                      {
/datasets/git/diffcore-break.c:78:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (max_size < MINIMUM_BREAK_SIZE)
                                          ^
                                           {
/datasets/git/diffcore-break.c:81:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!src->size)
                       ^
                        {
/datasets/git/diffcore-break.c:86:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                   &src_copied, &literal_added))
                                                                ^
                                                                 {
/datasets/git/diffcore-break.c:90:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (src->size < src_copied)
                                   ^
                                    {
/datasets/git/diffcore-break.c:93:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (src_copied < dst->size)
                                           ^
                                            {
/datasets/git/diffcore-break.c:95:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/diffcore-break.c:105:25: warning: narrowing conversion from 'unsigned long' to 'double' [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        *merge_score_p = (int)(src_removed * MAX_SCORE / src->size);
                               ^
/datasets/git/diffcore-break.c:105:51: warning: narrowing conversion from 'unsigned long' to 'double' [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        *merge_score_p = (int)(src_removed * MAX_SCORE / src->size);
                                                         ^
/datasets/git/diffcore-break.c:106:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*merge_score_p > break_score)
                                         ^
                                          {
/datasets/git/diffcore-break.c:113:6: warning: narrowing conversion from 'unsigned long' to 'double' [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        if (delta_size * MAX_SCORE / max_size < break_score)
            ^
/datasets/git/diffcore-break.c:113:31: warning: narrowing conversion from 'unsigned long' to 'double' [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        if (delta_size * MAX_SCORE / max_size < break_score)
                                     ^
/datasets/git/diffcore-break.c:113:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (delta_size * MAX_SCORE / max_size < break_score)
                                                            ^
                                                             {
/datasets/git/diffcore-break.c:119:7: warning: narrowing conversion from 'unsigned long' to 'double' [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        if ((src->size * break_score < src_removed * MAX_SCORE) &&
             ^
/datasets/git/diffcore-break.c:119:33: warning: narrowing conversion from 'unsigned long' to 'double' [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        if ((src->size * break_score < src_removed * MAX_SCORE) &&
                                       ^
/datasets/git/diffcore-break.c:120:23: warning: 20 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
            (literal_added * 20 < src_removed) &&
                             ^
/datasets/git/diffcore-break.c:121:23: warning: 20 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
            (literal_added * 20 < src_copied))
                             ^
/datasets/git/diffcore-break.c:121:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            (literal_added * 20 < src_copied))
                                              ^
                                               {
/datasets/git/diffcore-break.c:127:40: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void diffcore_break(struct repository *r, int break_score)
                                       ^
/datasets/git/diffcore-break.c:129:28: warning: variable name 'q' is too short, expected at least 3 characters [readability-identifier-length]
        struct diff_queue_struct *q = &diff_queued_diff;
                                  ^
/datasets/git/diffcore-break.c:163:6: warning: variable 'merge_score' is not initialized [cppcoreguidelines-init-variables]
        int merge_score;
            ^
                        = 0
/datasets/git/diffcore-break.c:164:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/diffcore-break.c:164:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diffcore-break.c:169:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        merge_score = (break_score >> 16) & 0xFFFF;
                      ^~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-break.c:169:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        merge_score = (break_score >> 16) & 0xFFFF;
                       ^~~~~~~~~~~
/datasets/git/diffcore-break.c:169:32: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        merge_score = (break_score >> 16) & 0xFFFF;
                                      ^
/datasets/git/diffcore-break.c:169:38: warning: 0xFFFF is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        merge_score = (break_score >> 16) & 0xFFFF;
                                            ^
/datasets/git/diffcore-break.c:170:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        break_score = (break_score & 0xFFFF);
                       ^~~~~~~~~~~
/datasets/git/diffcore-break.c:170:31: warning: 0xFFFF is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        break_score = (break_score & 0xFFFF);
                                     ^
/datasets/git/diffcore-break.c:172:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!break_score)
                         ^
                          {
/datasets/git/diffcore-break.c:174:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!merge_score)
                         ^
                          {
/datasets/git/diffcore-break.c:177:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        DIFF_QUEUE_CLEAR(&outq);
        ^
/datasets/git/./diffcore.h:155:2: note: expanded from macro 'DIFF_QUEUE_CLEAR'
        do { \
        ^
/datasets/git/diffcore-break.c:129:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct diff_queue_struct *q = &diff_queued_diff;
        ^
/datasets/git/diffcore-break.c:179:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < q->nr; i++) {
        ^
/datasets/git/diffcore-break.c:179:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'q' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < q->nr; i++) {
                    ^
/datasets/git/diffcore-break.c:180:25: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct diff_filepair *p = q->queue[i];
                                      ^
/datasets/git/diffcore-break.c:181:7: warning: variable 'score' is not initialized [cppcoreguidelines-init-variables]
                int score;
                    ^
                          = 0
/datasets/git/diffcore-break.c:194:5: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                                struct diff_filespec *null_one, *null_two;
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-break.c:194:27: warning: variable 'null_one' is not initialized [cppcoreguidelines-init-variables]
                                struct diff_filespec *null_one, *null_two;
                                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-break.c:194:38: warning: variable 'null_two' is not initialized [cppcoreguidelines-init-variables]
                                struct diff_filespec *null_one, *null_two;
                                                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-break.c:195:27: warning: variable 'dp' is not initialized [cppcoreguidelines-init-variables]
                                struct diff_filepair *dp;
                                                      ^
                                                         = NULL
/datasets/git/diffcore-break.c:195:27: warning: variable name 'dp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diffcore-break.c:203:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (score < merge_score)
                                                        ^
                                                         {
/datasets/git/diffcore-break.c:233:2: warning: redundant return statement at the end of a function with a void return type [readability-redundant-control-flow]
        return;
~~~~~~~~^~~~~~~
/datasets/git/diffcore-break.c:236:48: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static void merge_broken(struct diff_filepair *p,
                                               ^
/datasets/git/diffcore-break.c:237:27: warning: parameter name 'pp' is too short, expected at least 3 characters [readability-identifier-length]
                         struct diff_filepair *pp,
                                               ^
/datasets/git/diffcore-break.c:241:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct diff_filepair *c = p, *d = pp, *dp;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-break.c:241:24: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        struct diff_filepair *c = p, *d = pp, *dp;
                              ^
/datasets/git/diffcore-break.c:241:32: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
        struct diff_filepair *c = p, *d = pp, *dp;
                                      ^
/datasets/git/diffcore-break.c:241:41: warning: variable 'dp' is not initialized [cppcoreguidelines-init-variables]
        struct diff_filepair *c = p, *d = pp, *dp;
                                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-break.c:241:41: warning: variable name 'dp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diffcore-break.c:247:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!DIFF_FILE_VALID(d->one))
                                     ^
                                      {
/datasets/git/diffcore-break.c:249:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (DIFF_FILE_VALID(d->two))
                                    ^
                                     {
/datasets/git/diffcore-break.c:251:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (DIFF_FILE_VALID(c->one))
                                    ^
                                     {
/datasets/git/diffcore-break.c:253:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!DIFF_FILE_VALID(c->two))
                                     ^
                                      {
/datasets/git/diffcore-break.c:273:28: warning: variable name 'q' is too short, expected at least 3 characters [readability-identifier-length]
        struct diff_queue_struct *q = &diff_queued_diff;
                                  ^
/datasets/git/diffcore-break.c:275:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, j;
        ^~~~~~~~~
/datasets/git/diffcore-break.c:275:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, j;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-break.c:275:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diffcore-break.c:275:9: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int i, j;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-break.c:275:9: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diffcore-break.c:277:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        DIFF_QUEUE_CLEAR(&outq);
        ^
/datasets/git/./diffcore.h:155:2: note: expanded from macro 'DIFF_QUEUE_CLEAR'
        do { \
        ^
/datasets/git/diffcore-break.c:273:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct diff_queue_struct *q = &diff_queued_diff;
        ^
/datasets/git/diffcore-break.c:279:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'q' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < q->nr; i++) {
                    ^
/datasets/git/diffcore-break.c:280:25: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct diff_filepair *p = q->queue[i];
                                      ^
/datasets/git/diffcore-break.c:281:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!p)
                       ^
                        {
/datasets/git/diffcore-break.c:284:3: warning: do not use 'else' after 'continue' [llvm-else-after-return,readability-else-after-return]
                else if (p->broken_pair &&
                ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-break.c:289:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (j = i + 1; j < q->nr; j++) {
                        ^
/datasets/git/diffcore-break.c:289:20: warning: backward branch (for loop) is ID-dependent due to variable reference to 'j' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (j = i + 1; j < q->nr; j++) {
                                        ^
/datasets/git/diffcore-break.c:290:27: warning: variable name 'pp' is too short, expected at least 3 characters [readability-identifier-length]
                                struct diff_filepair *pp = q->queue[j];
                                                      ^
/datasets/git/diffcore-break.c:291:9: warning: Access to field 'broken_pair' results in a dereference of a null pointer (loaded from variable 'pp') [clang-analyzer-core.NullDereference]
                                if (pp->broken_pair &&
                                    ^~
/datasets/git/diffcore-break.c:277:2: note: Loop condition is false.  Exiting loop
        DIFF_QUEUE_CLEAR(&outq);
        ^
/datasets/git/./diffcore.h:155:2: note: expanded from macro 'DIFF_QUEUE_CLEAR'
        do { \
        ^
/datasets/git/diffcore-break.c:279:14: note: Assuming 'i' is < field 'nr'
        for (i = 0; i < q->nr; i++) {
                    ^~~~~~~~~
/datasets/git/diffcore-break.c:279:2: note: Loop condition is true.  Entering loop body
        for (i = 0; i < q->nr; i++) {
        ^
/datasets/git/diffcore-break.c:281:7: note: Assuming 'p' is non-null
                if (!p)
                    ^~
/datasets/git/diffcore-break.c:281:3: note: Taking false branch
                if (!p)
                ^
/datasets/git/diffcore-break.c:284:12: note: Assuming field 'broken_pair' is not equal to 0
                else if (p->broken_pair &&
                         ^~~~~~~~~~~~~~
/datasets/git/diffcore-break.c:284:12: note: Left side of '&&' is true
/datasets/git/diffcore-break.c:285:5: note: Assuming the condition is true
                         !strcmp(p->one->path, p->two->path)) {
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-break.c:284:8: note: Taking true branch
                else if (p->broken_pair &&
                     ^
/datasets/git/diffcore-break.c:289:20: note: Assuming 'j' is < field 'nr'
                        for (j = i + 1; j < q->nr; j++) {
                                        ^~~~~~~~~
/datasets/git/diffcore-break.c:289:4: note: Loop condition is true.  Entering loop body
                        for (j = i + 1; j < q->nr; j++) {
                        ^
/datasets/git/diffcore-break.c:291:9: note: Assuming field 'broken_pair' is 0
                                if (pp->broken_pair &&
                                    ^~~~~~~~~~~~~~~
/datasets/git/diffcore-break.c:291:25: note: Left side of '&&' is false
                                if (pp->broken_pair &&
                                                    ^
/datasets/git/diffcore-break.c:289:20: note: Assuming 'j' is < field 'nr'
                        for (j = i + 1; j < q->nr; j++) {
                                        ^~~~~~~~~
/datasets/git/diffcore-break.c:289:4: note: Loop condition is true.  Entering loop body
                        for (j = i + 1; j < q->nr; j++) {
                        ^
/datasets/git/diffcore-break.c:291:9: note: Assuming field 'broken_pair' is not equal to 0
                                if (pp->broken_pair &&
                                    ^~~~~~~~~~~~~~~
/datasets/git/diffcore-break.c:291:9: note: Left side of '&&' is true
/datasets/git/diffcore-break.c:291:9: note: Left side of '&&' is true
/datasets/git/diffcore-break.c:291:5: note: Taking true branch
                                if (pp->broken_pair &&
                                ^
/datasets/git/diffcore-break.c:296:6: note: Storing null pointer value
                                        q->queue[j] = NULL;
                                        ^~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-break.c:297:6: note: Control jumps to line 279
                                        goto next;
                                        ^
/datasets/git/diffcore-break.c:279:14: note: Assuming 'i' is < field 'nr'
        for (i = 0; i < q->nr; i++) {
                    ^~~~~~~~~
/datasets/git/diffcore-break.c:279:2: note: Loop condition is true.  Entering loop body
        for (i = 0; i < q->nr; i++) {
        ^
/datasets/git/diffcore-break.c:281:7: note: Assuming 'p' is non-null
                if (!p)
                    ^~
/datasets/git/diffcore-break.c:281:3: note: Taking false branch
                if (!p)
                ^
/datasets/git/diffcore-break.c:284:12: note: Assuming field 'broken_pair' is not equal to 0
                else if (p->broken_pair &&
                         ^~~~~~~~~~~~~~
/datasets/git/diffcore-break.c:284:12: note: Left side of '&&' is true
/datasets/git/diffcore-break.c:284:8: note: Taking true branch
                else if (p->broken_pair &&
                     ^
/datasets/git/diffcore-break.c:289:9: note: The value 2 is assigned to 'j'
                        for (j = i + 1; j < q->nr; j++) {
                             ^~~~~~~~~
/datasets/git/diffcore-break.c:289:20: note: Assuming 'j' is < field 'nr'
                        for (j = i + 1; j < q->nr; j++) {
                                        ^~~~~~~~~
/datasets/git/diffcore-break.c:289:4: note: Loop condition is true.  Entering loop body
                        for (j = i + 1; j < q->nr; j++) {
                        ^
/datasets/git/diffcore-break.c:290:5: note: 'pp' initialized to a null pointer value
                                struct diff_filepair *pp = q->queue[j];
                                ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-break.c:291:9: note: Access to field 'broken_pair' results in a dereference of a null pointer (loaded from variable 'pp')
                                if (pp->broken_pair &&
                                    ^~
/datasets/git/diffcore-break.c:305:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-break.c:312:2: warning: redundant return statement at the end of a function with a void return type [readability-redundant-control-flow]
        return;
~~~~~~~~^~~~~~~
/datasets/git/diffcore-delta.c:25:1: warning: replace macro with enum [modernize-macro-to-enum]
#define INITIAL_HASH_SIZE 9
^~~~~~~~
                          =
/datasets/git/diffcore-delta.c:25:9: warning: macro 'INITIAL_HASH_SIZE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define INITIAL_HASH_SIZE 9
        ^
/datasets/git/diffcore-delta.c:30:48: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
#define INITIAL_FREE(sz_log2) ((1<<(sz_log2))*(sz_log2-3)/(sz_log2))
                                               ^
                                               (      )
/datasets/git/diffcore-delta.c:37:1: warning: replace macro with enum [modernize-macro-to-enum]
#define HASHBASE 107927
^~~~~~~~
                 =
/datasets/git/diffcore-delta.c:37:9: warning: macro 'HASHBASE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define HASHBASE 107927
        ^
/datasets/git/diffcore-delta.c:39:8: warning: accessing fields in struct 'spanhash' is inefficient due to poor alignment; currently aligned to 4 bytes, but recommended alignment is 8 bytes [altera-struct-pack-align]
struct spanhash {
       ^
/datasets/git/diffcore-delta.c:39:8: note: use "__attribute__((aligned(8)))" to align struct 'spanhash' to 8 bytes
/datasets/git/diffcore-delta.c:53:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int osz = 1 << orig->alloc_log2;
        ^
/datasets/git/diffcore-delta.c:51:23: warning: variable 'new_spanhash' is not initialized [cppcoreguidelines-init-variables]
        struct spanhash_top *new_spanhash;
                             ^
                                          = NULL
/datasets/git/diffcore-delta.c:52:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/diffcore-delta.c:52:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diffcore-delta.c:53:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int osz = 1 << orig->alloc_log2;
                  ^
/datasets/git/diffcore-delta.c:54:6: warning: variable name 'sz' is too short, expected at least 3 characters [readability-identifier-length]
        int sz = osz << 1;
            ^
/datasets/git/diffcore-delta.c:54:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int sz = osz << 1;
                 ^~~
/datasets/git/diffcore-delta.c:59:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        new_spanhash->free = INITIAL_FREE(new_spanhash->alloc_log2);
                             ^
/datasets/git/diffcore-delta.c:30:33: note: expanded from macro 'INITIAL_FREE'
#define INITIAL_FREE(sz_log2) ((1<<(sz_log2))*(sz_log2-3)/(sz_log2))
                                ^
/datasets/git/diffcore-delta.c:60:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(new_spanhash->data, 0, sizeof(struct spanhash) * sz);
        ^~~~~~
/datasets/git/diffcore-delta.c:60:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(new_spanhash->data, 0, sizeof(struct spanhash) * sz);
        ^~~~~~
/datasets/git/diffcore-delta.c:61:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'osz' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < osz; i++) {
                    ^
/datasets/git/diffcore-delta.c:62:20: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                struct spanhash *o = &(orig->data[i]);
                                 ^
/datasets/git/diffcore-delta.c:63:7: warning: variable 'bucket' is not initialized [cppcoreguidelines-init-variables]
                int bucket;
                    ^
                           = 0
/datasets/git/diffcore-delta.c:64:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!o->cnt)
                            ^
                             {
/datasets/git/diffcore-delta.c:66:12: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                bucket = o->hashval & (sz - 1);
                         ^
/datasets/git/diffcore-delta.c:66:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                bucket = o->hashval & (sz - 1);
                         ^            ~~~~~~~~
/datasets/git/diffcore-delta.c:67:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (1) {
                ^
/datasets/git/diffcore-delta.c:68:21: warning: variable name 'h' is too short, expected at least 3 characters [readability-identifier-length]
                        struct spanhash *h = &(new_spanhash->data[bucket++]);
                                         ^
/datasets/git/diffcore-delta.c:75:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (sz <= bucket)
                                         ^
                                          {
/datasets/git/diffcore-delta.c:84:7: warning: 2 adjacent parameters of 'add_spanhash' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                         unsigned int hashval, int cnt)
                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-delta.c:84:20: note: the first parameter in the range is 'hashval'
                                         unsigned int hashval, int cnt)
                                                      ^~~~~~~
/datasets/git/diffcore-delta.c:84:33: note: the last parameter in the range is 'cnt'
                                         unsigned int hashval, int cnt)
                                                                   ^~~
/datasets/git/diffcore-delta.c:84:29: note: 'unsigned int' and 'int' may be implicitly converted
                                         unsigned int hashval, int cnt)
                                                               ^
/datasets/git/diffcore-delta.c:86:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int bucket, lim;
        ^~~~~~~~~~~~~~~~
/datasets/git/diffcore-delta.c:86:6: warning: variable 'bucket' is not initialized [cppcoreguidelines-init-variables]
        int bucket, lim;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-delta.c:86:14: warning: variable 'lim' is not initialized [cppcoreguidelines-init-variables]
        int bucket, lim;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-delta.c:87:19: warning: variable 'h' is not initialized [cppcoreguidelines-init-variables]
        struct spanhash *h;
                         ^
                           = NULL
/datasets/git/diffcore-delta.c:87:19: warning: variable name 'h' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diffcore-delta.c:89:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        lim = (1 << top->alloc_log2);
               ^
/datasets/git/diffcore-delta.c:90:11: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        bucket = hashval & (lim - 1);
                 ^
/datasets/git/diffcore-delta.c:90:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        bucket = hashval & (lim - 1);
                 ^         ~~~~~~~~~
/datasets/git/diffcore-delta.c:91:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/diffcore-delta.c:97:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (top->free < 0)
                                          ^
                                           {
/datasets/git/diffcore-delta.c:105:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (lim <= bucket)
                                  ^
                                   {
/datasets/git/diffcore-delta.c:110:37: warning: parameter name 'a_' is too short, expected at least 3 characters [readability-identifier-length]
static int spanhash_cmp(const void *a_, const void *b_)
                                    ^
/datasets/git/diffcore-delta.c:110:53: warning: parameter name 'b_' is too short, expected at least 3 characters [readability-identifier-length]
static int spanhash_cmp(const void *a_, const void *b_)
                                                    ^
/datasets/git/diffcore-delta.c:112:25: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        const struct spanhash *a = a_;
                               ^
/datasets/git/diffcore-delta.c:113:25: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        const struct spanhash *b = b_;
                               ^
/datasets/git/diffcore-delta.c:116:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!a->cnt)
                    ^
                     {
/datasets/git/diffcore-delta.c:118:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!b->cnt)
                    ^
                     {
/datasets/git/diffcore-delta.c:124:59: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static struct spanhash_top *hash_chars(struct repository *r,
                                                          ^
/datasets/git/diffcore-delta.c:127:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, n;
        ^~~~~~~~~
/datasets/git/diffcore-delta.c:127:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, n;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-delta.c:127:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diffcore-delta.c:127:9: warning: variable 'n' is not initialized [cppcoreguidelines-init-variables]
        int i, n;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-delta.c:127:9: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diffcore-delta.c:128:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned int accum1, accum2, hashval;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-delta.c:131:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        unsigned int sz = one->size;
        ^
/datasets/git/diffcore-delta.c:128:15: warning: variable 'accum1' is not initialized [cppcoreguidelines-init-variables]
        unsigned int accum1, accum2, hashval;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-delta.c:128:23: warning: variable 'accum2' is not initialized [cppcoreguidelines-init-variables]
        unsigned int accum1, accum2, hashval;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-delta.c:128:31: warning: variable 'hashval' is not initialized [cppcoreguidelines-init-variables]
        unsigned int accum1, accum2, hashval;
                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-delta.c:129:23: warning: variable 'hash' is not initialized [cppcoreguidelines-init-variables]
        struct spanhash_top *hash;
                             ^
                                  = NULL
/datasets/git/diffcore-delta.c:131:15: warning: variable name 'sz' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned int sz = one->size;
                     ^
/datasets/git/diffcore-delta.c:136:43: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                              st_mult(sizeof(struct spanhash), (size_t)1 << i)));
                                                               ^            ~
/datasets/git/diffcore-delta.c:138:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        hash->free = INITIAL_FREE(i);
                     ^
/datasets/git/diffcore-delta.c:30:33: note: expanded from macro 'INITIAL_FREE'
#define INITIAL_FREE(sz_log2) ((1<<(sz_log2))*(sz_log2-3)/(sz_log2))
                                ^
/datasets/git/diffcore-delta.c:139:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(hash->data, 0, sizeof(struct spanhash) * ((size_t)1 << i));
        ^~~~~~
/datasets/git/diffcore-delta.c:139:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(hash->data, 0, sizeof(struct spanhash) * ((size_t)1 << i));
        ^~~~~~
/datasets/git/diffcore-delta.c:139:51: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        memset(hash->data, 0, sizeof(struct spanhash) * ((size_t)1 << i));
                                                         ^            ~
/datasets/git/diffcore-delta.c:143:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (sz) {
        ^
/datasets/git/diffcore-delta.c:143:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'sz' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (sz) {
               ^
/datasets/git/diffcore-delta.c:144:16: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                unsigned int c = *buf++;
                             ^
/datasets/git/diffcore-delta.c:149:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_text && c == '\r' && sz && *buf == '\n')
                                                               ^
                                                                {
/datasets/git/diffcore-delta.c:152:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                accum1 = (accum1 << 7) ^ (accum2 >> 25);
                          ^         ~
/datasets/git/diffcore-delta.c:152:23: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                accum1 = (accum1 << 7) ^ (accum2 >> 25);
                                    ^
/datasets/git/diffcore-delta.c:152:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                accum1 = (accum1 << 7) ^ (accum2 >> 25);
                                          ^         ~~
/datasets/git/diffcore-delta.c:152:39: warning: 25 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                accum1 = (accum1 << 7) ^ (accum2 >> 25);
                                                    ^
/datasets/git/diffcore-delta.c:153:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                accum2 = (accum2 << 7) ^ (old_1 >> 25);
                          ^         ~
/datasets/git/diffcore-delta.c:153:23: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                accum2 = (accum2 << 7) ^ (old_1 >> 25);
                                    ^
/datasets/git/diffcore-delta.c:153:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                accum2 = (accum2 << 7) ^ (old_1 >> 25);
                                          ^        ~~
/datasets/git/diffcore-delta.c:153:38: warning: 25 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                accum2 = (accum2 << 7) ^ (old_1 >> 25);
                                                   ^
/datasets/git/diffcore-delta.c:155:13: warning: 64 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (++n < 64 && c != '\n')
                          ^
/datasets/git/diffcore-delta.c:155:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (++n < 64 && c != '\n')
                                          ^
                                           {
/datasets/git/diffcore-delta.c:157:32: warning: 0x61 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                hashval = (accum1 + accum2 * 0x61) % HASHBASE;
                                             ^
/datasets/git/diffcore-delta.c:162:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        QSORT(hash->data, (size_t)1ul << hash->alloc_log2, spanhash_cmp);
                          ^
/datasets/git/./git-compat-util.h:1304:52: note: expanded from macro 'QSORT'
#define QSORT(base, n, compar) sane_qsort((base), (n), sizeof(*(base)), compar)
                                                   ^
/datasets/git/diffcore-delta.c:162:28: warning: integer literal has suffix 'ul', which is not uppercase [hicpp-uppercase-literal-suffix,readability-uppercase-literal-suffix]
        QSORT(hash->data, (size_t)1ul << hash->alloc_log2, spanhash_cmp);
                                  ^~~
                                   UL
/datasets/git/diffcore-delta.c:166:47: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int diffcore_count_changes(struct repository *r,
                                              ^
/datasets/git/diffcore-delta.c:169:7: warning: 2 adjacent parameters of 'diffcore_count_changes' of similar type ('void **') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                           void **src_count_p,
                           ^~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-delta.c:169:14: note: the first parameter in the range is 'src_count_p'
                           void **src_count_p,
                                  ^~~~~~~~~~~
/datasets/git/diffcore-delta.c:170:14: note: the last parameter in the range is 'dst_count_p'
                           void **dst_count_p,
                                  ^~~~~~~~~~~
/datasets/git/diffcore-delta.c:171:7: warning: 2 adjacent parameters of 'diffcore_count_changes' of similar type ('unsigned long *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                           unsigned long *src_copied,
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-delta.c:171:22: note: the first parameter in the range is 'src_copied'
                           unsigned long *src_copied,
                                          ^~~~~~~~~~
/datasets/git/diffcore-delta.c:172:22: note: the last parameter in the range is 'literal_added'
                           unsigned long *literal_added)
                                          ^~~~~~~~~~~~~
/datasets/git/diffcore-delta.c:174:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct spanhash *s, *d;
        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-delta.c:174:19: warning: variable 's' is not initialized [cppcoreguidelines-init-variables]
        struct spanhash *s, *d;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-delta.c:174:19: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diffcore-delta.c:174:23: warning: variable 'd' is not initialized [cppcoreguidelines-init-variables]
        struct spanhash *s, *d;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-delta.c:174:23: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diffcore-delta.c:175:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct spanhash_top *src_count, *dst_count;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-delta.c:175:23: warning: variable 'src_count' is not initialized [cppcoreguidelines-init-variables]
        struct spanhash_top *src_count, *dst_count;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-delta.c:175:35: warning: variable 'dst_count' is not initialized [cppcoreguidelines-init-variables]
        struct spanhash_top *src_count, *dst_count;
                                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-delta.c:176:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned long sc, la;
        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-delta.c:176:16: warning: variable 'sc' is not initialized [cppcoreguidelines-init-variables]
        unsigned long sc, la;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-delta.c:176:16: warning: variable name 'sc' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diffcore-delta.c:176:20: warning: variable 'la' is not initialized [cppcoreguidelines-init-variables]
        unsigned long sc, la;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-delta.c:176:20: warning: variable name 'la' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diffcore-delta.c:179:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (src_count_p)
                        ^
                         {
/datasets/git/diffcore-delta.c:183:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (src_count_p)
                                ^
                                 {
/datasets/git/diffcore-delta.c:186:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (dst_count_p)
                        ^
                         {
/datasets/git/diffcore-delta.c:190:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (dst_count_p)
                                ^
                                 {
/datasets/git/diffcore-delta.c:198:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                unsigned dst_cnt, src_cnt;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-delta.c:198:12: warning: variable 'dst_cnt' is not initialized [cppcoreguidelines-init-variables]
                unsigned dst_cnt, src_cnt;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-delta.c:198:21: warning: variable 'src_cnt' is not initialized [cppcoreguidelines-init-variables]
                unsigned dst_cnt, src_cnt;
                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-delta.c:199:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!s->cnt)
                            ^
                             {
/datasets/git/diffcore-delta.c:201:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (d->cnt) {
                ^
/datasets/git/diffcore-delta.c:201:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'd' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (d->cnt) {
                       ^
/datasets/git/diffcore-delta.c:202:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (d->hashval >= s->hashval)
                                                     ^
                                                      {
/datasets/git/diffcore-delta.c:217:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/diffcore-delta.c:221:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (d->cnt) {
        ^
/datasets/git/diffcore-delta.c:221:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'd' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (d->cnt) {
               ^
/datasets/git/diffcore-delta.c:226:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!src_count_p)
                         ^
                          {
/datasets/git/diffcore-delta.c:228:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!dst_count_p)
                         ^
                          {
diffcore-order.c:8:15: warning: variable 'order' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char **order;
              ^
diffcore-order.c:8:15: warning: variable 'order' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
diffcore-order.c:9:12: warning: variable 'order_cnt' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int order_cnt;
           ^
/datasets/git/diffcore-order.c:13:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int cnt, pass;
        ^~~~~~~~~~~~~~
/datasets/git/diffcore-order.c:13:6: warning: variable 'cnt' is not initialized [cppcoreguidelines-init-variables]
        int cnt, pass;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-order.c:13:11: warning: variable 'pass' is not initialized [cppcoreguidelines-init-variables]
        int cnt, pass;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-order.c:14:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/diffcore-order.c:15:8: warning: variable 'map' is not initialized [cppcoreguidelines-init-variables]
        void *map;
              ^
                  = NULL
/datasets/git/diffcore-order.c:16:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *cp, *endp;
        ^~~~~~~~~~~~~~~~
/datasets/git/diffcore-order.c:16:8: warning: variable 'cp' is not initialized [cppcoreguidelines-init-variables]
        char *cp, *endp;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-order.c:16:8: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diffcore-order.c:16:13: warning: variable 'endp' is not initialized [cppcoreguidelines-init-variables]
        char *cp, *endp;
                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-order.c:17:10: warning: variable 'sz' is not initialized [cppcoreguidelines-init-variables]
        ssize_t sz;
                ^
                   = 0
/datasets/git/diffcore-order.c:17:10: warning: variable name 'sz' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diffcore-order.c:16:2: note: inferred assignment of ID-dependent value from ID-dependent variable map [altera-id-dependent-backward-branch]
        char *cp, *endp;
        ^
/datasets/git/diffcore-order.c:19:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (order)
                  ^
                   {
/datasets/git/diffcore-order.c:23:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (sz < 0)
                   ^
                    {
/datasets/git/diffcore-order.c:31:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'cp' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (cp < endp) {
                       ^
/datasets/git/diffcore-order.c:32:10: warning: variable 'ep' is not initialized [cppcoreguidelines-init-variables]
                        char *ep;
                              ^
                                 = NULL
/datasets/git/diffcore-order.c:32:10: warning: variable name 'ep' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diffcore-order.c:33:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (ep = cp; ep < endp && *ep != '\n'; ep++)
                        ^
/datasets/git/diffcore-order.c:33:18: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ep' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (ep = cp; ep < endp && *ep != '\n'; ep++)
                                      ^
/datasets/git/diffcore-order.c:33:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (ep = cp; ep < endp && *ep != '\n'; ep++)
                                                                     ^
                                                                      {
/datasets/git/diffcore-order.c:36:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (*cp == '\n' || *cp == '#')
                                                      ^
                                                       {
/datasets/git/diffcore-order.c:38:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (pass == 0)
                                           ^
                                            {
/datasets/git/diffcore-order.c:49:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ep < endp)
                                      ^
                                       {
/datasets/git/diffcore-order.c:62:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/diffcore-order.c:62:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diffcore-order.c:63:23: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        static struct strbuf p = STRBUF_INIT;
                             ^
/datasets/git/diffcore-order.c:63:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        static struct strbuf p = STRBUF_INIT;
        ^
/datasets/git/diffcore-order.c:65:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'order_cnt' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < order_cnt; i++) {
                    ^
/datasets/git/diffcore-order.c:68:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (p.buf[0]) {
                ^
/datasets/git/diffcore-order.c:68:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (p.buf[0]) {
                       ^
/datasets/git/diffcore-order.c:69:10: warning: variable 'cp' is not initialized [cppcoreguidelines-init-variables]
                        char *cp;
                              ^
                                 = NULL
/datasets/git/diffcore-order.c:69:10: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diffcore-order.c:70:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!wildmatch(order[i], p.buf, 0))
                                                           ^
                                                            {
/datasets/git/diffcore-order.c:73:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!cp)
                                ^
                                 {
/datasets/git/diffcore-order.c:81:43: warning: parameter name 'a_' is too short, expected at least 3 characters [readability-identifier-length]
static int compare_objs_order(const void *a_, const void *b_)
                                          ^
/datasets/git/diffcore-order.c:81:59: warning: parameter name 'b_' is too short, expected at least 3 characters [readability-identifier-length]
static int compare_objs_order(const void *a_, const void *b_)
                                                          ^
/datasets/git/diffcore-order.c:83:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct obj_order const *a, *b;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-order.c:83:26: warning: variable 'a' is not initialized [cppcoreguidelines-init-variables]
        struct obj_order const *a, *b;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-order.c:83:26: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diffcore-order.c:83:30: warning: variable 'b' is not initialized [cppcoreguidelines-init-variables]
        struct obj_order const *a, *b;
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-order.c:83:30: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diffcore-order.c:86:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (a->order != b->order)
                                 ^
                                  {
/datasets/git/diffcore-order.c:92:34: warning: parameter name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
                   struct obj_order *objs, int nr)
                                               ^
/datasets/git/diffcore-order.c:94:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/diffcore-order.c:94:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diffcore-order.c:96:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!nr)
                ^
                 {
/datasets/git/diffcore-order.c:100:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr; i++) {
        ^
/datasets/git/diffcore-order.c:116:28: warning: variable name 'q' is too short, expected at least 3 characters [readability-identifier-length]
        struct diff_queue_struct *q = &diff_queued_diff;
                                  ^
/datasets/git/diffcore-order.c:117:20: warning: variable 'o' is not initialized [cppcoreguidelines-init-variables]
        struct obj_order *o;
                          ^
                            = NULL
/datasets/git/diffcore-order.c:117:20: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diffcore-order.c:118:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/diffcore-order.c:118:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diffcore-order.c:120:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!q->nr)
                   ^
                    {
/datasets/git/diffcore-order.c:124:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < q->nr; i++)
        ^
/datasets/git/diffcore-order.c:124:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'q' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < q->nr; i++)
                    ^
/datasets/git/diffcore-order.c:124:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < q->nr; i++)
                                   ^
                                    {
/datasets/git/diffcore-order.c:127:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < q->nr; i++)
        ^
/datasets/git/diffcore-order.c:127:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'q' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < q->nr; i++)
                    ^
/datasets/git/diffcore-order.c:127:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < q->nr; i++)
                                   ^
                                    {
/datasets/git/diffcore-order.c:130:2: warning: redundant return statement at the end of a function with a void return type [readability-redundant-control-flow]
        return;
~~~~~~~~^~~~~~~
/datasets/git/diffcore-pickaxe.c:6:1: warning: #includes are not sorted properly [llvm-include-order]
#include "diff.h"
^        ~~~~~~~~
         "commit.h"
/datasets/git/diffcore-pickaxe.c:14:27: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                          struct diff_options *o,
                                               ^
/datasets/git/diffcore-pickaxe.c:17:8: warning: accessing fields in struct 'diffgrep_cb' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct diffgrep_cb {
       ^
/datasets/git/diffcore-pickaxe.c:17:8: note: use "__attribute__((aligned(16)))" to align struct 'diffgrep_cb' to 16 bytes
/datasets/git/diffcore-pickaxe.c:27:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (line[0] != '+' && line[0] != '-')
                                             ^
                                              {
/datasets/git/diffcore-pickaxe.c:29:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (data->hit)
                      ^
                       {
/datasets/git/diffcore-pickaxe.c:40:29: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                     struct diff_options *o,
                                          ^
/datasets/git/diffcore-pickaxe.c:46:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/diffcore-pickaxe.c:52:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&xpp, 0, sizeof(xpp));
        ^~~~~~
/datasets/git/diffcore-pickaxe.c:52:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&xpp, 0, sizeof(xpp));
        ^~~~~~
/datasets/git/diffcore-pickaxe.c:53:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&xecfg, 0, sizeof(xecfg));
        ^~~~~~
/datasets/git/diffcore-pickaxe.c:53:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&xecfg, 0, sizeof(xecfg));
        ^~~~~~
/datasets/git/diffcore-pickaxe.c:56:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        xecfg.flags = XDL_EMIT_NO_HUNK_HDR;
                      ^
/datasets/git/./xdiff/xdiff.h:53:31: note: expanded from macro 'XDL_EMIT_NO_HUNK_HDR'
#define XDL_EMIT_NO_HUNK_HDR (1 << 1)
                              ^
/datasets/git/diffcore-pickaxe.c:66:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ecbdata.hit)
                        ^
                         {
/datasets/git/diffcore-pickaxe.c:68:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/diffcore-pickaxe.c:73:40: warning: parameter name 'mf' is too short, expected at least 3 characters [readability-identifier-length]
static unsigned int contains(mmfile_t *mf, regex_t *regexp, kwset_t kws,
                                       ^
/datasets/git/diffcore-pickaxe.c:77:16: warning: variable name 'sz' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned long sz = mf->size;
                      ^
/datasets/git/diffcore-pickaxe.c:77:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        unsigned long sz = mf->size;
        ^
/datasets/git/diffcore-pickaxe.c:84:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (sz &&
                ^
/datasets/git/diffcore-pickaxe.c:84:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'sz' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (sz &&
                       ^
/datasets/git/diffcore-pickaxe.c:86:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        flags |= REG_NOTBOL;
                        ^~~~~
/datasets/git/diffcore-pickaxe.c:95:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (limit && cnt == limit)
                                                  ^
                                                   {
/datasets/git/diffcore-pickaxe.c:100:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (sz) {
                ^
/datasets/git/diffcore-pickaxe.c:100:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'sz' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (sz) {
                       ^
/datasets/git/diffcore-pickaxe.c:103:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (offset == -1)
                                         ^
                                          {
/datasets/git/diffcore-pickaxe.c:109:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (limit && cnt == limit)
                                                  ^
                                                   {
/datasets/git/diffcore-pickaxe.c:117:31: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                       struct diff_options *o UNUSED,
                                            ^
/datasets/git/diffcore-pickaxe.c:120:15: warning: variable name 'c1' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned int c1 = one ? contains(one, regexp, kws, 0) : 0;
                     ^
/datasets/git/diffcore-pickaxe.c:121:15: warning: variable name 'c2' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned int c2 = two ? contains(two, regexp, kws, c1 + 1) : 0;
                     ^
/datasets/git/diffcore-pickaxe.c:125:48: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static int pickaxe_match(struct diff_filepair *p, struct diff_options *o,
                                               ^
/datasets/git/diffcore-pickaxe.c:125:72: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static int pickaxe_match(struct diff_filepair *p, struct diff_options *o,
                                                                       ^
/datasets/git/diffcore-pickaxe.c:126:46: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
                         regex_t *regexp, kwset_t kws, pickaxe_fn fn)
                                                                  ^
/datasets/git/diffcore-pickaxe.c:130:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        mmfile_t mf1, mf2;
        ^~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-pickaxe.c:131:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/diffcore-pickaxe.c:134:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!DIFF_FILE_VALID(p->one) && !DIFF_FILE_VALID(p->two))
                                                                 ^
                                                                  {
/datasets/git/diffcore-pickaxe.c:156:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (textconv_one == textconv_two && diff_unmodified_pair(p))
                                                                    ^
                                                                     {
/datasets/git/diffcore-pickaxe.c:159:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((o->pickaxe_opts & DIFF_PICKAXE_KIND_G) &&
             ^
/datasets/git/diffcore-pickaxe.c:162:68: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
             (!textconv_two && diff_filespec_is_binary(o->repo, p->two))))
                                                                          ^
                                                                           {
/datasets/git/diffcore-pickaxe.c:165:13: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'long' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        mf1.size = fill_textconv(o->repo, textconv_one, p->one, &mf1.ptr);
                   ^
/datasets/git/diffcore-pickaxe.c:166:13: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'long' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        mf2.size = fill_textconv(o->repo, textconv_two, p->two, &mf2.ptr);
                   ^
/datasets/git/diffcore-pickaxe.c:168:8: warning: Called function pointer is null (null dereference) [clang-analyzer-core.CallAndMessage]
        ret = fn(&mf1, &mf2, o, regexp, kws);
              ^
/datasets/git/diffcore-pickaxe.c:237:6: note: Assuming the condition is false
        if (opts & ~DIFF_PICKAXE_KIND_OBJFIND &&
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-pickaxe.c:237:40: note: Left side of '&&' is false
        if (opts & ~DIFF_PICKAXE_KIND_OBJFIND &&
                                              ^
/datasets/git/diffcore-pickaxe.c:240:6: note: Assuming the condition is false
        if (opts & (DIFF_PICKAXE_REGEX | DIFF_PICKAXE_KIND_G)) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-pickaxe.c:240:2: note: Taking false branch
        if (opts & (DIFF_PICKAXE_REGEX | DIFF_PICKAXE_KIND_G)) {
        ^
/datasets/git/diffcore-pickaxe.c:260:13: note: Assuming the condition is false
        } else if (opts & DIFF_PICKAXE_KIND_S) {
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-pickaxe.c:260:9: note: Taking false branch
        } else if (opts & DIFF_PICKAXE_KIND_S) {
               ^
/datasets/git/diffcore-pickaxe.c:277:13: note: Assuming the condition is true
        } else if (opts & DIFF_PICKAXE_KIND_OBJFIND) {
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-pickaxe.c:277:9: note: Taking true branch
        } else if (opts & DIFF_PICKAXE_KIND_OBJFIND) {
               ^
/datasets/git/diffcore-pickaxe.c:278:3: note: Null pointer value stored to 'fn'
                fn = NULL;
                ^~~~~~~~~
/datasets/git/diffcore-pickaxe.c:283:45: note: Passing null pointer value via 5th parameter 'fn'
        pickaxe(&diff_queued_diff, o, regexp, kws, fn);
                                                   ^~
/datasets/git/diffcore-pickaxe.c:283:2: note: Calling 'pickaxe'
        pickaxe(&diff_queued_diff, o, regexp, kws, fn);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-pickaxe.c:186:2: note: Loop condition is false.  Exiting loop
        DIFF_QUEUE_CLEAR(&outq);
        ^
/datasets/git/./diffcore.h:155:2: note: expanded from macro 'DIFF_QUEUE_CLEAR'
        do { \
        ^
/datasets/git/diffcore-pickaxe.c:188:6: note: Assuming the condition is false
        if (o->pickaxe_opts & DIFF_PICKAXE_ALL) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-pickaxe.c:188:2: note: Taking false branch
        if (o->pickaxe_opts & DIFF_PICKAXE_ALL) {
        ^
/datasets/git/diffcore-pickaxe.c:205:15: note: Assuming 'i' is < field 'nr'
                for (i = 0; i < q->nr; i++) {
                            ^~~~~~~~~
/datasets/git/diffcore-pickaxe.c:205:3: note: Loop condition is true.  Entering loop body
                for (i = 0; i < q->nr; i++) {
                ^
/datasets/git/diffcore-pickaxe.c:207:41: note: Passing null pointer value via 5th parameter 'fn'
                        if (pickaxe_match(p, o, regexp, kws, fn))
                                                             ^~
/datasets/git/diffcore-pickaxe.c:207:8: note: Calling 'pickaxe_match'
                        if (pickaxe_match(p, o, regexp, kws, fn))
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-pickaxe.c:134:7: note: Assuming field 'mode' is not equal to 0
        if (!DIFF_FILE_VALID(p->one) && !DIFF_FILE_VALID(p->two))
             ^
/datasets/git/./diffcore.h:52:32: note: expanded from macro 'DIFF_FILE_VALID'
#define DIFF_FILE_VALID(spec) (((spec)->mode) != 0)
                               ^~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-pickaxe.c:134:31: note: Left side of '&&' is false
        if (!DIFF_FILE_VALID(p->one) && !DIFF_FILE_VALID(p->two))
                                     ^
/datasets/git/diffcore-pickaxe.c:137:6: note: Assuming field 'objfind' is null
        if (o->objfind) {
            ^~~~~~~~~~
/datasets/git/diffcore-pickaxe.c:137:2: note: Taking false branch
        if (o->objfind) {
        ^
/datasets/git/diffcore-pickaxe.c:144:6: note: Assuming field 'allow_textconv' is 0
        if (o->flags.allow_textconv) {
            ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-pickaxe.c:144:2: note: Taking false branch
        if (o->flags.allow_textconv) {
        ^
/datasets/git/diffcore-pickaxe.c:156:6: note: 'textconv_one' is equal to 'textconv_two'
        if (textconv_one == textconv_two && diff_unmodified_pair(p))
            ^~~~~~~~~~~~
/datasets/git/diffcore-pickaxe.c:156:6: note: Left side of '&&' is true
/datasets/git/diffcore-pickaxe.c:156:38: note: Assuming the condition is false
        if (textconv_one == textconv_two && diff_unmodified_pair(p))
                                            ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-pickaxe.c:156:2: note: Taking false branch
        if (textconv_one == textconv_two && diff_unmodified_pair(p))
        ^
/datasets/git/diffcore-pickaxe.c:159:7: note: Assuming the condition is false
        if ((o->pickaxe_opts & DIFF_PICKAXE_KIND_G) &&
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-pickaxe.c:159:46: note: Left side of '&&' is false
        if ((o->pickaxe_opts & DIFF_PICKAXE_KIND_G) &&
                                                    ^
/datasets/git/diffcore-pickaxe.c:168:8: note: Called function pointer is null (null dereference)
        ret = fn(&mf1, &mf2, o, regexp, kws);
              ^~
/datasets/git/diffcore-pickaxe.c:170:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (textconv_one)
                         ^
                          {
/datasets/git/diffcore-pickaxe.c:172:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (textconv_two)
                         ^
                          {
/datasets/git/diffcore-pickaxe.c:180:47: warning: parameter name 'q' is too short, expected at least 3 characters [readability-identifier-length]
static void pickaxe(struct diff_queue_struct *q, struct diff_options *o,
                                              ^
/datasets/git/diffcore-pickaxe.c:180:71: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static void pickaxe(struct diff_queue_struct *q, struct diff_options *o,
                                                                      ^
/datasets/git/diffcore-pickaxe.c:181:48: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
                    regex_t *regexp, kwset_t kws, pickaxe_fn fn)
                                                             ^
/datasets/git/diffcore-pickaxe.c:183:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/diffcore-pickaxe.c:183:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diffcore-pickaxe.c:186:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        DIFF_QUEUE_CLEAR(&outq);
        ^
/datasets/git/./diffcore.h:155:2: note: expanded from macro 'DIFF_QUEUE_CLEAR'
        do { \
        ^
/datasets/git/diffcore-pickaxe.c:188:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (o->pickaxe_opts & DIFF_PICKAXE_ALL) {
            ^
/datasets/git/./diffcore.h:151:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        int nr;
        ^
/datasets/git/diffcore-pickaxe.c:190:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < q->nr; i++) {
                ^
/datasets/git/diffcore-pickaxe.c:190:15: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < q->nr; i++) {
                            ^
/datasets/git/diffcore-pickaxe.c:191:26: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                        struct diff_filepair *p = q->queue[i];
                                              ^
/datasets/git/./diffcore.h:151:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        int nr;
        ^
/datasets/git/diffcore-pickaxe.c:192:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (pickaxe_match(p, o, regexp, kws, fn))
                                                                 ^
                                                                  {
/datasets/git/diffcore-pickaxe.c:201:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < q->nr; i++)
                ^
/datasets/git/diffcore-pickaxe.c:201:15: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < q->nr; i++)
                            ^
/datasets/git/diffcore-pickaxe.c:201:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < q->nr; i++)
                                           ^
                                            {
/datasets/git/diffcore-pickaxe.c:205:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < q->nr; i++) {
                ^
/datasets/git/diffcore-pickaxe.c:205:15: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < q->nr; i++) {
                            ^
/datasets/git/diffcore-pickaxe.c:206:26: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                        struct diff_filepair *p = q->queue[i];
                                              ^
/datasets/git/diffcore-pickaxe.c:207:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (pickaxe_match(p, o, regexp, kws, fn))
                                                                 ^
                                                                  {
/datasets/git/diffcore-pickaxe.c:209:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/diffcore-pickaxe.c:223:15: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                char errbuf[1024];
                            ^
/datasets/git/diffcore-pickaxe.c:224:32: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                regerror(err, regex, errbuf, 1024);
                                             ^
/datasets/git/diffcore-pickaxe.c:229:44: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
void diffcore_pickaxe(struct diff_options *o)
                                           ^
/datasets/git/diffcore-pickaxe.c:232:13: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int opts = o->pickaxe_opts;
                   ^
/datasets/git/diffcore-pickaxe.c:233:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        regex_t regex, *regexp = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-pickaxe.c:235:13: warning: variable 'fn' is not initialized [cppcoreguidelines-init-variables]
        pickaxe_fn fn;
                   ^
                      = NULL
/datasets/git/diffcore-pickaxe.c:235:13: warning: variable name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diffcore-pickaxe.c:237:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (opts & ~DIFF_PICKAXE_KIND_OBJFIND &&
            ^~~~
/datasets/git/diffcore-pickaxe.c:237:13: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
        if (opts & ~DIFF_PICKAXE_KIND_OBJFIND &&
                   ^
/datasets/git/diffcore-pickaxe.c:238:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            (!needle || !*needle))
                                  ^
                                   {
/datasets/git/diffcore-pickaxe.c:240:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (opts & (DIFF_PICKAXE_REGEX | DIFF_PICKAXE_KIND_G)) {
            ^~~~
/datasets/git/diffcore-pickaxe.c:240:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (opts & (DIFF_PICKAXE_REGEX | DIFF_PICKAXE_KIND_G)) {
                    ^
/datasets/git/./diff.h:550:28: note: expanded from macro 'DIFF_PICKAXE_REGEX'
#define DIFF_PICKAXE_REGEX      2
                                ^
/datasets/git/diffcore-pickaxe.c:242:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (o->pickaxe_opts & DIFF_PICKAXE_IGNORE_CASE)
                    ^
/datasets/git/diffcore-pickaxe.c:242:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (o->pickaxe_opts & DIFF_PICKAXE_IGNORE_CASE)
                                                               ^
                                                                {
/datasets/git/diffcore-pickaxe.c:243:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        cflags |= REG_ICASE;
                        ^~~~~~
/datasets/git/diffcore-pickaxe.c:247:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (opts & DIFF_PICKAXE_KIND_G)
                    ^~~~
/datasets/git/diffcore-pickaxe.c:247:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opts & DIFF_PICKAXE_KIND_G)
                                               ^
                                                {
/datasets/git/diffcore-pickaxe.c:249:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                else if (opts & DIFF_PICKAXE_REGEX)
                         ^~~~
/datasets/git/diffcore-pickaxe.c:249:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (opts & DIFF_PICKAXE_REGEX)
                                                   ^
                                                    {
/datasets/git/diffcore-pickaxe.c:251:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/diffcore-pickaxe.c:260:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        } else if (opts & DIFF_PICKAXE_KIND_S) {
                   ^~~~
/datasets/git/diffcore-pickaxe.c:261:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (o->pickaxe_opts & DIFF_PICKAXE_IGNORE_CASE &&
                    ^
/datasets/git/diffcore-pickaxe.c:263:18: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                        struct strbuf sb = STRBUF_INIT;
                                      ^
/datasets/git/diffcore-pickaxe.c:271:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        kws = kwsalloc(o->pickaxe_opts & DIFF_PICKAXE_IGNORE_CASE
                                       ^
/datasets/git/diffcore-pickaxe.c:277:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        } else if (opts & DIFF_PICKAXE_KIND_OBJFIND) {
                   ^~~~
/datasets/git/diffcore-pickaxe.c:285:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (regexp)
                   ^
                    {
/datasets/git/diffcore-pickaxe.c:287:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (kws)
                ^
                 {
/datasets/git/diffcore-pickaxe.c:289:2: warning: redundant return statement at the end of a function with a void return type [readability-redundant-control-flow]
        return;
~~~~~~~~^~~~~~~
/datasets/git/diffcore-rename.c:8:1: warning: #includes are not sorted properly [llvm-include-order]
#include "object-store.h"
^        ~~~~~~~~~~~~~~~~
         "hashmap.h"
/datasets/git/diffcore-rename.c:16:15: warning: accessing fields in struct 'diff_rename_dst' is inefficient due to padding; only needs 20 bytes but is using 24 bytes [altera-struct-pack-align]
static struct diff_rename_dst {
              ^
/datasets/git/diffcore-rename.c:16:15: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'diff_rename_dst'
/datasets/git/diffcore-rename.c:16:15: warning: accessing fields in struct 'diff_rename_dst' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
static struct diff_rename_dst {
              ^
/datasets/git/diffcore-rename.c:16:15: note: use "__attribute__((aligned(32)))" to align struct 'diff_rename_dst' to 32 bytes
/datasets/git/diffcore-rename.c:20:4: warning: variable 'rename_dst' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} *rename_dst;
   ^
/datasets/git/diffcore-rename.c:20:4: warning: variable 'rename_dst' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/diffcore-rename.c:21:12: warning: variable 'rename_dst_nr' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int rename_dst_nr, rename_dst_alloc;
           ^
/datasets/git/diffcore-rename.c:21:27: warning: variable 'rename_dst_alloc' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int rename_dst_nr, rename_dst_alloc;
                          ^
/datasets/git/diffcore-rename.c:23:26: warning: variable 'break_idx' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct strintmap *break_idx = NULL;
                         ^
/datasets/git/diffcore-rename.c:23:26: warning: variable 'break_idx' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/diffcore-rename.c:25:72: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static struct diff_rename_dst *locate_rename_dst(struct diff_filepair *p)
                                                                       ^
/datasets/git/diffcore-rename.c:35:49: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static int add_rename_dst(struct diff_filepair *p)
                                                ^
/datasets/git/diffcore-rename.c:37:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(rename_dst, rename_dst_nr + 1, rename_dst_alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/diffcore-rename.c:46:15: warning: accessing fields in struct 'diff_rename_src' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
static struct diff_rename_src {
              ^
/datasets/git/diffcore-rename.c:46:15: note: use "__attribute__((aligned(16)))" to align struct 'diff_rename_src' to 16 bytes
/datasets/git/diffcore-rename.c:49:4: warning: variable 'rename_src' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} *rename_src;
   ^
/datasets/git/diffcore-rename.c:49:4: warning: variable 'rename_src' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/diffcore-rename.c:50:12: warning: variable 'rename_src_nr' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int rename_src_nr, rename_src_alloc;
           ^
/datasets/git/diffcore-rename.c:50:27: warning: variable 'rename_src_alloc' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int rename_src_nr, rename_src_alloc;
                          ^
/datasets/git/diffcore-rename.c:52:55: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static void register_rename_src(struct diff_filepair *p)
                                                      ^
/datasets/git/diffcore-rename.c:62:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(rename_src, rename_src_nr + 1, rename_src_alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/diffcore-rename.c:70:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int src_len = strlen(src->path), dst_len = strlen(dst->path);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:70:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/diffcore-rename.c:70:16: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int src_len = strlen(src->path), dst_len = strlen(dst->path);
                      ^
/datasets/git/diffcore-rename.c:70:45: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int src_len = strlen(src->path), dst_len = strlen(dst->path);
                                                   ^
/datasets/git/diffcore-rename.c:71:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (src_len && dst_len) {
        ^
/datasets/git/diffcore-rename.c:71:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'src_len' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (src_len && dst_len) {
               ^
/datasets/git/diffcore-rename.c:72:8: warning: variable name 'c1' is too short, expected at least 3 characters [readability-identifier-length]
                char c1 = src->path[--src_len];
                     ^
/datasets/git/diffcore-rename.c:73:8: warning: variable name 'c2' is too short, expected at least 3 characters [readability-identifier-length]
                char c2 = dst->path[--dst_len];
                     ^
/datasets/git/diffcore-rename.c:74:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (c1 != c2)
                             ^
                              {
/datasets/git/diffcore-rename.c:76:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (c1 == '/')
                              ^
                               {
/datasets/git/diffcore-rename.c:83:8: warning: accessing fields in struct 'diff_score' is inefficient due to poor alignment; currently aligned to 4 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct diff_score {
       ^
/datasets/git/diffcore-rename.c:83:8: note: use "__attribute__((aligned(16)))" to align struct 'diff_score' to 16 bytes
/datasets/git/diffcore-rename.c:90:8: warning: accessing fields in struct 'inexact_prefetch_options' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct inexact_prefetch_options {
       ^
/datasets/git/diffcore-rename.c:90:8: note: use "__attribute__((aligned(16)))" to align struct 'inexact_prefetch_options' to 16 bytes
/datasets/git/diffcore-rename.c:97:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/diffcore-rename.c:97:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diffcore-rename.c:100:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < rename_dst_nr; i++) {
        ^
/datasets/git/diffcore-rename.c:101:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (rename_dst[i].p->renamed_pair)
                                                  ^
                                                   {
/datasets/git/diffcore-rename.c:110:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < rename_src_nr; i++) {
        ^
/datasets/git/diffcore-rename.c:112:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    diff_unmodified_pair(rename_src[i].p))
                                                          ^
                                                           {
/datasets/git/diffcore-rename.c:121:58: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        promisor_remote_get_direct(options->repo, to_fetch.oid, to_fetch.nr);
                                                                ^
/datasets/git/diffcore-rename.c:125:51: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int estimate_similarity(struct repository *r,
                                                  ^
/datasets/git/diffcore-rename.c:144:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned long max_size, delta_size, base_size, src_copied, literal_added;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:144:16: warning: variable 'max_size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long max_size, delta_size, base_size, src_copied, literal_added;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-rename.c:144:26: warning: variable 'delta_size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long max_size, delta_size, base_size, src_copied, literal_added;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-rename.c:144:38: warning: variable 'base_size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long max_size, delta_size, base_size, src_copied, literal_added;
                                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-rename.c:144:49: warning: variable 'src_copied' is not initialized [cppcoreguidelines-init-variables]
        unsigned long max_size, delta_size, base_size, src_copied, literal_added;
                                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-rename.c:144:61: warning: variable 'literal_added' is not initialized [cppcoreguidelines-init-variables]
        unsigned long max_size, delta_size, base_size, src_copied, literal_added;
                                                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-rename.c:145:6: warning: variable 'score' is not initialized [cppcoreguidelines-init-variables]
        int score;
            ^
                  = 0
/datasets/git/diffcore-rename.c:151:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!S_ISREG(src->mode) || !S_ISREG(dst->mode))
                                                       ^
                                                        {
/datasets/git/diffcore-rename.c:166:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            diff_populate_filespec(r, src, dpf_opt))
                                                    ^
                                                     {
/datasets/git/diffcore-rename.c:169:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            diff_populate_filespec(r, dst, dpf_opt))
                                                    ^
                                                     {
/datasets/git/diffcore-rename.c:184:6: warning: narrowing conversion from 'unsigned long' to 'double' [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        if (max_size * (MAX_SCORE-minimum_score) < delta_size * MAX_SCORE)
            ^
/datasets/git/diffcore-rename.c:184:45: warning: narrowing conversion from 'unsigned long' to 'double' [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        if (max_size * (MAX_SCORE-minimum_score) < delta_size * MAX_SCORE)
                                                   ^
/datasets/git/diffcore-rename.c:184:68: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (max_size * (MAX_SCORE-minimum_score) < delta_size * MAX_SCORE)
                                                                          ^
                                                                           {
/datasets/git/diffcore-rename.c:189:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!src->cnt_data && diff_populate_filespec(r, src, dpf_opt))
                                                                      ^
                                                                       {
/datasets/git/diffcore-rename.c:191:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!dst->cnt_data && diff_populate_filespec(r, dst, dpf_opt))
                                                                      ^
                                                                       {
/datasets/git/diffcore-rename.c:196:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                   &src_copied, &literal_added))
                                                                ^
                                                                 {
/datasets/git/diffcore-rename.c:202:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!dst->size)
                       ^
                        {
/datasets/git/diffcore-rename.c:204:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/diffcore-rename.c:205:17: warning: narrowing conversion from 'unsigned long' to 'double' [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                score = (int)(src_copied * MAX_SCORE / max_size);
                              ^
/datasets/git/diffcore-rename.c:205:42: warning: narrowing conversion from 'unsigned long' to 'double' [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                score = (int)(src_copied * MAX_SCORE / max_size);
                                                       ^
/datasets/git/diffcore-rename.c:209:32: warning: 3 adjacent parameters of 'record_rename_pair' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void record_rename_pair(int dst_index, int src_index, int score)
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:209:36: note: the first parameter in the range is 'dst_index'
static void record_rename_pair(int dst_index, int src_index, int score)
                                   ^~~~~~~~~
/datasets/git/diffcore-rename.c:209:66: note: the last parameter in the range is 'score'
static void record_rename_pair(int dst_index, int src_index, int score)
                                                                 ^~~~~
/datasets/git/diffcore-rename.c:214:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (dst->renamed_pair)
                              ^
                               {
/datasets/git/diffcore-rename.c:225:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(dst->one->path, dst->two->path))
                                                    ^
                                                     {
/datasets/git/diffcore-rename.c:227:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/diffcore-rename.c:235:38: warning: parameter name 'a_' is too short, expected at least 3 characters [readability-identifier-length]
static int score_compare(const void *a_, const void *b_)
                                     ^
/datasets/git/diffcore-rename.c:235:54: warning: parameter name 'b_' is too short, expected at least 3 characters [readability-identifier-length]
static int score_compare(const void *a_, const void *b_)
                                                     ^
/datasets/git/diffcore-rename.c:237:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const struct diff_score *a = a_, *b = b_;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:237:27: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        const struct diff_score *a = a_, *b = b_;
                                 ^
/datasets/git/diffcore-rename.c:237:36: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        const struct diff_score *a = a_, *b = b_;
                                          ^
/datasets/git/diffcore-rename.c:240:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (a->dst < 0)
                       ^
                        {
/datasets/git/diffcore-rename.c:242:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (b->dst < 0)
        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:242:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (b->dst < 0)
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-rename.c:245:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (a->score == b->score)
                                 ^
                                  {
/datasets/git/diffcore-rename.c:251:8: warning: accessing fields in struct 'file_similarity' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct file_similarity {
       ^
/datasets/git/diffcore-rename.c:251:8: note: use "__attribute__((aligned(32)))" to align struct 'file_similarity' to 32 bytes
/datasets/git/diffcore-rename.c:257:54: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static unsigned int hash_filespec(struct repository *r,
                                                     ^
/datasets/git/diffcore-rename.c:261:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (diff_populate_filespec(r, filespec, NULL))
                                                              ^
                                                               {
/datasets/git/diffcore-rename.c:275:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct file_similarity *p, *best = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:275:26: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct file_similarity *p, *best = NULL;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-rename.c:275:26: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diffcore-rename.c:276:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i = 100, best_score = -1;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:275:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct file_similarity *p, *best = NULL;
        ^
/datasets/git/diffcore-rename.c:276:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 100, best_score = -1;
            ^
/datasets/git/diffcore-rename.c:276:10: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        int i = 100, best_score = -1;
                ^
/datasets/git/diffcore-rename.c:284:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        hashmap_for_each_entry_from(srcs, p, entry) {
        ^
/datasets/git/./hashmap.h:537:2: note: expanded from macro 'hashmap_for_each_entry_from'
        for (; \
        ^
/datasets/git/diffcore-rename.c:284:36: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        hashmap_for_each_entry_from(srcs, p, entry) {
                                          ^
/datasets/git/diffcore-rename.c:285:7: warning: variable 'score' is not initialized [cppcoreguidelines-init-variables]
                int score;
                    ^
                          = 0
/datasets/git/diffcore-rename.c:289:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!oideq(&source->oid, &target->oid))
                                                       ^
                                                        {
/datasets/git/diffcore-rename.c:293:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (source->mode != target->mode)
                                                         ^
                                                          {
/datasets/git/diffcore-rename.c:298:73: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (source->rename_used && options->detect_rename != DIFF_DETECT_COPY)
                                                                                      ^
                                                                                       {
/datasets/git/diffcore-rename.c:304:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (score == 2)
                                       ^
                                        {
/datasets/git/diffcore-rename.c:309:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!--i)
                         ^
                          {
/datasets/git/diffcore-rename.c:319:50: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void insert_file_table(struct repository *r,
                                                 ^
/datasets/git/diffcore-rename.c:343:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, renames = 0;
        ^~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:343:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, renames = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-rename.c:343:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diffcore-rename.c:350:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = rename_src_nr-1; i >= 0; i--)
        ^
/datasets/git/diffcore-rename.c:350:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = rename_src_nr-1; i >= 0; i--)
                                  ^
/datasets/git/diffcore-rename.c:350:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = rename_src_nr-1; i >= 0; i--)
                                              ^
                                               {
/datasets/git/diffcore-rename.c:356:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < rename_dst_nr; i++)
        ^
/datasets/git/diffcore-rename.c:356:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < rename_dst_nr; i++)
                    ^
/datasets/git/diffcore-rename.c:356:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < rename_dst_nr; i++)
                                           ^
                                            {
/datasets/git/diffcore-rename.c:365:8: warning: accessing fields in struct 'dir_rename_info' is inefficient due to padding; only needs 156 bytes but is using 160 bytes [altera-struct-pack-align]
struct dir_rename_info {
       ^
/datasets/git/diffcore-rename.c:365:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'dir_rename_info'
/datasets/git/diffcore-rename.c:365:8: warning: accessing fields in struct 'dir_rename_info' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct dir_rename_info {
       ^
/datasets/git/diffcore-rename.c:365:8: note: use "__attribute__((aligned(128)))" to align struct 'dir_rename_info' to 128 bytes
/datasets/git/diffcore-rename.c:382:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!slash)
                   ^
                    {
/datasets/git/diffcore-rename.c:392:23: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
        struct strmap_entry *entry;
                             ^
                                   = NULL
/datasets/git/diffcore-rename.c:394:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        strintmap_for_each_entry(counts, &iter, entry) {
        ^
/datasets/git/./strmap.h:134:2: note: expanded from macro 'strintmap_for_each_entry'
        strmap_for_each_entry(&(mystrmap)->map, iter, var)
        ^
/datasets/git/./strmap.h:112:2: note: expanded from macro 'strmap_for_each_entry'
        hashmap_for_each_entry(&(mystrmap)->map, iter, var, ent)
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/diffcore-rename.c:394:42: warning: backward branch (for loop) is ID-dependent due to variable reference to 'entry' and may cause performance degradation [altera-id-dependent-backward-branch]
        strintmap_for_each_entry(counts, &iter, entry) {
                                                ^
/datasets/git/diffcore-rename.c:398:20: warning: narrowing conversion from 'intptr_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        highest_count = count;
                                        ^
/datasets/git/diffcore-rename.c:405:14: warning: variable 'UNKNOWN_DIR' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *UNKNOWN_DIR = "/";  /* placeholder -- short, illegal directory */
             ^
/datasets/git/diffcore-rename.c:405:14: warning: variable 'UNKNOWN_DIR' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/diffcore-rename.c:410:23: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
        struct strmap_entry *entry;
                             ^
                                   = NULL
/datasets/git/diffcore-rename.c:411:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int first = 0, second = 0, unknown = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:410:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct strmap_entry *entry;
        ^
/datasets/git/diffcore-rename.c:412:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        strintmap_for_each_entry(counts, &iter, entry) {
        ^
/datasets/git/./strmap.h:134:2: note: expanded from macro 'strintmap_for_each_entry'
        strmap_for_each_entry(&(mystrmap)->map, iter, var)
        ^
/datasets/git/./strmap.h:112:2: note: expanded from macro 'strmap_for_each_entry'
        hashmap_for_each_entry(&(mystrmap)->map, iter, var, ent)
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/diffcore-rename.c:412:42: warning: backward branch (for loop) is ID-dependent due to variable reference to 'entry' and may cause performance degradation [altera-id-dependent-backward-branch]
        strintmap_for_each_entry(counts, &iter, entry) {
                                                ^
/datasets/git/diffcore-rename.c:416:14: warning: narrowing conversion from 'intptr_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        unknown = count;
                                  ^
/datasets/git/diffcore-rename.c:419:12: warning: narrowing conversion from 'intptr_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        first = count;
                                ^
/datasets/git/diffcore-rename.c:421:13: warning: narrowing conversion from 'intptr_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        second = count;
                                 ^
/datasets/git/diffcore-rename.c:428:8: warning: 2 adjacent parameters of 'increment_count' of similar type ('char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                            char *old_dir,
                            ^~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:428:14: note: the first parameter in the range is 'old_dir'
                            char *old_dir,
                                  ^~~~~~~
/datasets/git/diffcore-rename.c:429:14: note: the last parameter in the range is 'new_dir'
                            char *new_dir)
                                  ^~~~~~~
/datasets/git/diffcore-rename.c:431:20: warning: variable 'counts' is not initialized [cppcoreguidelines-init-variables]
        struct strintmap *counts;
                          ^
                                 = NULL
/datasets/git/diffcore-rename.c:432:23: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct strmap_entry *e;
                             ^
                               = NULL
/datasets/git/diffcore-rename.c:432:23: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diffcore-rename.c:448:13: warning: function 'update_dir_rename_counts' has cognitive complexity of 30 (threshold 25) [readability-function-cognitive-complexity]
static void update_dir_rename_counts(struct dir_rename_info *info,
            ^
/datasets/git/diffcore-rename.c:458:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!info->setup)
        ^
/datasets/git/diffcore-rename.c:484:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (1) {
        ^
/datasets/git/diffcore-rename.c:489:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (info->relevant_source_dirs &&
                ^
/datasets/git/diffcore-rename.c:489:34: note: +1
                if (info->relevant_source_dirs &&
                                               ^
/datasets/git/diffcore-rename.c:511:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!first_time_in_loop) {
                ^
/datasets/git/diffcore-rename.c:514:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!*new_dir) {
                        ^
/datasets/git/diffcore-rename.c:526:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (new_dir_first_char != old_sub_dir[0] ||
                                ^
/datasets/git/diffcore-rename.c:526:46: note: +1
                                if (new_dir_first_char != old_sub_dir[0] ||
                                                                         ^
/datasets/git/diffcore-rename.c:529:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/diffcore-rename.c:530:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (strcmp(old_sub_dir, new_sub_dir))
                                ^
/datasets/git/diffcore-rename.c:549:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (dirs_removed)
                ^
/datasets/git/diffcore-rename.c:551:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (drd_flag == RELEVANT_FOR_SELF || first_time_in_loop)
                ^
/datasets/git/diffcore-rename.c:551:37: note: +1
                if (drd_flag == RELEVANT_FOR_SELF || first_time_in_loop)
                                                  ^
/datasets/git/diffcore-rename.c:555:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (drd_flag == NOT_RELEVANT)
                ^
/datasets/git/diffcore-rename.c:558:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!*old_dir || !*new_dir)
                ^
/datasets/git/diffcore-rename.c:558:17: note: +1
                if (!*old_dir || !*new_dir)
                              ^
/datasets/git/diffcore-rename.c:453:8: warning: variable 'old_dir' is not initialized [cppcoreguidelines-init-variables]
        char *old_dir;
              ^
                      = NULL
/datasets/git/diffcore-rename.c:454:8: warning: variable 'new_dir' is not initialized [cppcoreguidelines-init-variables]
        char *new_dir;
              ^
                      = NULL
/datasets/git/diffcore-rename.c:458:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!info->setup)
                         ^
                          {
/datasets/git/diffcore-rename.c:484:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/diffcore-rename.c:490:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !strintmap_contains(info->relevant_source_dirs, old_dir))
                                                                             ^
                                                                              {
/datasets/git/diffcore-rename.c:527:9: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                                    strcmp(old_sub_dir+1, new_sub_dir))
                                    ^
                                                                       != 0
/datasets/git/diffcore-rename.c:527:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                    strcmp(old_sub_dir+1, new_sub_dir))
                                                                       ^
                                                                        {
/datasets/git/diffcore-rename.c:530:9: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                                if (strcmp(old_sub_dir, new_sub_dir))
                                    ^
                                                                     != 0
/datasets/git/diffcore-rename.c:530:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (strcmp(old_sub_dir, new_sub_dir))
                                                                     ^
                                                                      {
/datasets/git/diffcore-rename.c:549:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (dirs_removed)
                                 ^
                                  {
/datasets/git/diffcore-rename.c:551:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (drd_flag == RELEVANT_FOR_SELF || first_time_in_loop)
                                                                        ^
                                                                         {
/datasets/git/diffcore-rename.c:555:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (drd_flag == NOT_RELEVANT)
                                             ^
                                              {
/datasets/git/diffcore-rename.c:558:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!*old_dir || !*new_dir)
                                           ^
                                            {
/datasets/git/diffcore-rename.c:570:12: warning: 2 adjacent parameters of 'initialize_dir_rename_info' of similar type ('struct strmap *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                       struct strmap *dir_rename_count,
                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:570:27: note: the first parameter in the range is 'dir_rename_count'
                                       struct strmap *dir_rename_count,
                                                      ^~~~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:571:27: note: the last parameter in the range is 'cached_pairs'
                                       struct strmap *cached_pairs)
                                                      ^~~~~~~~~~~~
/datasets/git/diffcore-rename.c:574:23: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
        struct strmap_entry *entry;
                             ^
                                   = NULL
/datasets/git/diffcore-rename.c:575:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/diffcore-rename.c:575:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diffcore-rename.c:574:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct strmap_entry *entry;
        ^
/datasets/git/diffcore-rename.c:598:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                strintmap_for_each_entry(relevant_sources, &iter, entry) {
                ^
/datasets/git/./strmap.h:134:2: note: expanded from macro 'strintmap_for_each_entry'
        strmap_for_each_entry(&(mystrmap)->map, iter, var)
        ^
/datasets/git/./strmap.h:112:2: note: expanded from macro 'strmap_for_each_entry'
        hashmap_for_each_entry(&(mystrmap)->map, iter, var, ent)
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/diffcore-rename.c:598:53: warning: backward branch (for loop) is ID-dependent due to variable reference to 'entry' and may cause performance degradation [altera-id-dependent-backward-branch]
                strintmap_for_each_entry(relevant_sources, &iter, entry) {
                                                                  ^
/datasets/git/diffcore-rename.c:601:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            strintmap_contains(dirs_removed, dirname))
                                                                      ^
                                                                       {
/datasets/git/diffcore-rename.c:612:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < rename_dst_nr; ++i) {
        ^
/datasets/git/diffcore-rename.c:574:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct strmap_entry *entry;
        ^
/datasets/git/diffcore-rename.c:637:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        strmap_for_each_entry(cached_pairs, &iter, entry) {
        ^
/datasets/git/./strmap.h:112:2: note: expanded from macro 'strmap_for_each_entry'
        hashmap_for_each_entry(&(mystrmap)->map, iter, var, ent)
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/diffcore-rename.c:574:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct strmap_entry *entry;
        ^
/datasets/git/diffcore-rename.c:637:45: warning: backward branch (for loop) is ID-dependent due to variable reference to 'entry' and may cause performance degradation [altera-id-dependent-backward-branch]
        strmap_for_each_entry(cached_pairs, &iter, entry) {
                                                   ^
/datasets/git/diffcore-rename.c:640:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!new_name)
                              ^
                               {
/datasets/git/diffcore-rename.c:654:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        strmap_for_each_entry(info->dir_rename_count, &iter, entry) {
        ^
/datasets/git/./strmap.h:112:2: note: expanded from macro 'strmap_for_each_entry'
        hashmap_for_each_entry(&(mystrmap)->map, iter, var, ent)
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/diffcore-rename.c:654:55: warning: backward branch (for loop) is ID-dependent due to variable reference to 'entry' and may cause performance degradation [altera-id-dependent-backward-branch]
        strmap_for_each_entry(info->dir_rename_count, &iter, entry) {
                                                             ^
/datasets/git/diffcore-rename.c:657:9: warning: variable 'best_newdir' is not initialized [cppcoreguidelines-init-variables]
                char *best_newdir;
                      ^
                                  = NULL
/datasets/git/diffcore-rename.c:668:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct strmap_entry *entry;
        ^
/datasets/git/diffcore-rename.c:668:23: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
        struct strmap_entry *entry;
                             ^
                                   = NULL
/datasets/git/diffcore-rename.c:670:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        strmap_for_each_entry(dir_rename_count, &iter, entry) {
        ^
/datasets/git/./strmap.h:112:2: note: expanded from macro 'strmap_for_each_entry'
        hashmap_for_each_entry(&(mystrmap)->map, iter, var, ent)
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/diffcore-rename.c:670:49: warning: backward branch (for loop) is ID-dependent due to variable reference to 'entry' and may cause performance degradation [altera-id-dependent-backward-branch]
        strmap_for_each_entry(dir_rename_count, &iter, entry) {
                                                       ^
/datasets/git/diffcore-rename.c:682:23: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
        struct strmap_entry *entry;
                             ^
                                   = NULL
/datasets/git/diffcore-rename.c:684:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/diffcore-rename.c:684:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diffcore-rename.c:686:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!info->setup)
                         ^
                          {
/datasets/git/diffcore-rename.c:699:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FREE_AND_NULL(info->relevant_source_dirs);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/diffcore-rename.c:706:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FREE_AND_NULL(info->dir_rename_count);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/diffcore-rename.c:717:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        strmap_for_each_entry(info->dir_rename_count, &iter, entry) {
        ^
/datasets/git/./strmap.h:112:2: note: expanded from macro 'strmap_for_each_entry'
        hashmap_for_each_entry(&(mystrmap)->map, iter, var, ent)
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/diffcore-rename.c:717:55: warning: backward branch (for loop) is ID-dependent due to variable reference to 'entry' and may cause performance degradation [altera-id-dependent-backward-branch]
        strmap_for_each_entry(info->dir_rename_count, &iter, entry) {
                                                             ^
/datasets/git/diffcore-rename.c:727:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strintmap_contains(counts, UNKNOWN_DIR))
                                                            ^
                                                             {
/datasets/git/diffcore-rename.c:730:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < to_remove.nr; ++i)
        ^
/datasets/git/diffcore-rename.c:730:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < to_remove.nr; ++i)
                                          ^
                                           {
/datasets/git/diffcore-rename.c:803:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *old_dir, *new_dir;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:803:8: warning: variable 'old_dir' is not initialized [cppcoreguidelines-init-variables]
        char *old_dir, *new_dir;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-rename.c:803:18: warning: variable 'new_dir' is not initialized [cppcoreguidelines-init-variables]
        char *old_dir, *new_dir;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-rename.c:805:6: warning: variable 'idx' is not initialized [cppcoreguidelines-init-variables]
        int idx;
            ^
                = 0
/datasets/git/diffcore-rename.c:807:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!info->setup)
                         ^
                          {
/datasets/git/diffcore-rename.c:813:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!new_dir)
                     ^
                      {
/datasets/git/diffcore-rename.c:825:8: warning: accessing fields in struct 'basename_prefetch_options' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct basename_prefetch_options {
       ^
/datasets/git/diffcore-rename.c:825:8: note: use "__attribute__((aligned(64)))" to align struct 'basename_prefetch_options' to 64 bytes
/datasets/git/diffcore-rename.c:839:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/diffcore-rename.c:839:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diffcore-rename.c:847:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < rename_src_nr; ++i) {
        ^
/datasets/git/diffcore-rename.c:850:12: warning: variable 'src_index' is not initialized [cppcoreguidelines-init-variables]
                intptr_t src_index;
                         ^
                                   = 0
/datasets/git/diffcore-rename.c:851:12: warning: variable 'dst_index' is not initialized [cppcoreguidelines-init-variables]
                intptr_t dst_index;
                         ^
                                   = 0
/datasets/git/diffcore-rename.c:855:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !strintmap_contains(relevant_sources, filename))
                                                                    ^
                                                                     {
/datasets/git/diffcore-rename.c:869:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        struct diff_filespec *one, *two;
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:869:26: warning: variable 'one' is not initialized [cppcoreguidelines-init-variables]
                        struct diff_filespec *one, *two;
                                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-rename.c:869:32: warning: variable 'two' is not initialized [cppcoreguidelines-init-variables]
                        struct diff_filespec *one, *two;
                                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-rename.c:877:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (dst_index == -1)
                                            ^
                                             {
/datasets/git/diffcore-rename.c:881:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (rename_dst[dst_index].is_rename)
                                                            ^
                                                             {
/datasets/git/diffcore-rename.c:893:58: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        promisor_remote_get_direct(options->repo, to_fetch.oid, to_fetch.nr);
                                                                ^
/datasets/git/diffcore-rename.c:897:12: warning: function 'find_basename_matches' has cognitive complexity of 45 (threshold 25) [readability-function-cognitive-complexity]
static int find_basename_matches(struct diff_options *options,
           ^
/datasets/git/diffcore-rename.c:955:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < rename_src_nr; ++i) {
        ^
/datasets/git/diffcore-rename.c:960:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(!rename_src[i].p->one->rename_used);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/diffcore-rename.c:960:3: note: nesting level increased to 2
                assert(!rename_src[i].p->one->rename_used);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/diffcore-rename.c:960:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(!rename_src[i].p->one->rename_used);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/diffcore-rename.c:960:3: note: +1, nesting level increased to 3
                assert(!rename_src[i].p->one->rename_used);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/diffcore-rename.c:964:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (strintmap_contains(&sources, base))
                ^
/datasets/git/diffcore-rename.c:966:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/diffcore-rename.c:969:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < rename_dst_nr; ++i) {
        ^
/datasets/git/diffcore-rename.c:973:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (rename_dst[i].is_rename)
                ^
/datasets/git/diffcore-rename.c:978:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (strintmap_contains(&dests, base))
                ^
/datasets/git/diffcore-rename.c:980:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/diffcore-rename.c:984:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (options->repo == the_repository && has_promisor_remote()) {
        ^
/datasets/git/diffcore-rename.c:984:38: note: +1
        if (options->repo == the_repository && has_promisor_remote()) {
                                            ^
/datasets/git/diffcore-rename.c:990:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < rename_src_nr; ++i) {
        ^
/datasets/git/diffcore-rename.c:997:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (relevant_sources &&
                ^
/datasets/git/diffcore-rename.c:997:24: note: +1
                if (relevant_sources &&
                                     ^
/datasets/git/diffcore-rename.c:1009:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(src_index == -1 || src_index == i);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/diffcore-rename.c:1009:26: note: +1
                assert(src_index == -1 || src_index == i);
                                       ^
/datasets/git/diffcore-rename.c:1009:3: note: nesting level increased to 2
                assert(src_index == -1 || src_index == i);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/diffcore-rename.c:1009:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(src_index == -1 || src_index == i);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/diffcore-rename.c:1009:26: note: +1
                assert(src_index == -1 || src_index == i);
                                       ^
/datasets/git/diffcore-rename.c:1009:3: note: +1, nesting level increased to 3
                assert(src_index == -1 || src_index == i);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/diffcore-rename.c:1011:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (strintmap_contains(&dests, base)) {
                ^
/datasets/git/diffcore-rename.c:1017:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (src_index == -1 || dst_index == -1) {
                        ^
/datasets/git/diffcore-rename.c:1017:24: note: +1
                        if (src_index == -1 || dst_index == -1) {
                                            ^
/datasets/git/diffcore-rename.c:1021:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (dst_index == -1)
                        ^
/datasets/git/diffcore-rename.c:1025:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (rename_dst[dst_index].is_rename)
                        ^
/datasets/git/diffcore-rename.c:1035:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (score < minimum_score)
                        ^
/datasets/git/diffcore-rename.c:900:6: warning: 2 adjacent parameters of 'find_basename_matches' of similar type ('struct strintmap *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                 struct strintmap *relevant_sources,
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:900:24: note: the first parameter in the range is 'relevant_sources'
                                 struct strintmap *relevant_sources,
                                                   ^~~~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:901:24: note: the last parameter in the range is 'dirs_removed'
                                 struct strintmap *dirs_removed)
                                                   ^~~~~~~~~~~~
/datasets/git/diffcore-rename.c:933:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, renames = 0;
        ^~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:933:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, renames = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-rename.c:933:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diffcore-rename.c:955:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < rename_src_nr; ++i) {
        ^
/datasets/git/diffcore-rename.c:957:15: warning: variable 'base' is not initialized [cppcoreguidelines-init-variables]
                const char *base;
                            ^
                                 = NULL
/datasets/git/diffcore-rename.c:964:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strintmap_contains(&sources, base))
                                                       ^
                                                        {
/datasets/git/diffcore-rename.c:966:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/diffcore-rename.c:969:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < rename_dst_nr; ++i) {
        ^
/datasets/git/diffcore-rename.c:971:15: warning: variable 'base' is not initialized [cppcoreguidelines-init-variables]
                const char *base;
                            ^
                                 = NULL
/datasets/git/diffcore-rename.c:973:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (rename_dst[i].is_rename)
                                            ^
                                             {
/datasets/git/diffcore-rename.c:978:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strintmap_contains(&dests, base))
                                                     ^
                                                      {
/datasets/git/diffcore-rename.c:980:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/diffcore-rename.c:990:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < rename_src_nr; ++i) {
        ^
/datasets/git/diffcore-rename.c:993:12: warning: variable 'src_index' is not initialized [cppcoreguidelines-init-variables]
                intptr_t src_index;
                         ^
                                   = 0
/datasets/git/diffcore-rename.c:994:12: warning: variable 'dst_index' is not initialized [cppcoreguidelines-init-variables]
                intptr_t dst_index;
                         ^
                                   = 0
/datasets/git/diffcore-rename.c:998:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !strintmap_contains(relevant_sources, filename))
                                                                    ^
                                                                     {
/datasets/git/diffcore-rename.c:1012:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        struct diff_filespec *one, *two;
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:1012:26: warning: variable 'one' is not initialized [cppcoreguidelines-init-variables]
                        struct diff_filespec *one, *two;
                                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-rename.c:1012:32: warning: variable 'two' is not initialized [cppcoreguidelines-init-variables]
                        struct diff_filespec *one, *two;
                                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-rename.c:1013:8: warning: variable 'score' is not initialized [cppcoreguidelines-init-variables]
                        int score;
                            ^
                                  = 0
/datasets/git/diffcore-rename.c:1021:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (dst_index == -1)
                                            ^
                                             {
/datasets/git/diffcore-rename.c:1025:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (rename_dst[dst_index].is_rename)
                                                            ^
                                                             {
/datasets/git/diffcore-rename.c:1035:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (score < minimum_score)
                                                  ^
                                                   {
/datasets/git/diffcore-rename.c:1037:23: warning: narrowing conversion from 'intptr_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        record_rename_pair(dst_index, src_index, score);
                                           ^
/datasets/git/diffcore-rename.c:1037:34: warning: narrowing conversion from 'intptr_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        record_rename_pair(dst_index, src_index, score);
                                                      ^
/datasets/git/diffcore-rename.c:1059:48: warning: parameter name 'm' is too short, expected at least 3 characters [readability-identifier-length]
static void record_if_better(struct diff_score m[], struct diff_score *o)
                                               ^
/datasets/git/diffcore-rename.c:1059:72: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static void record_if_better(struct diff_score m[], struct diff_score *o)
                                                                       ^
/datasets/git/diffcore-rename.c:1061:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, worst;
        ^~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:1061:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, worst;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-rename.c:1061:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diffcore-rename.c:1061:9: warning: variable 'worst' is not initialized [cppcoreguidelines-init-variables]
        int i, worst;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-rename.c:1065:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 1; i < NUM_CANDIDATE_PER_DST; i++)
        ^
/datasets/git/diffcore-rename.c:1065:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 1; i < NUM_CANDIDATE_PER_DST; i++)
                                                   ^
                                                    {
/datasets/git/diffcore-rename.c:1066:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (score_compare(&m[i], &m[worst]) > 0)
                                                        ^
                                                         {
/datasets/git/diffcore-rename.c:1070:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (score_compare(&m[worst], o) > 0)
                                            ^
                                             {
/datasets/git/diffcore-rename.c:1084:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, limited_sources;
        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:1084:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, limited_sources;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-rename.c:1084:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diffcore-rename.c:1084:9: warning: variable 'limited_sources' is not initialized [cppcoreguidelines-init-variables]
        int i, limited_sources;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-rename.c:1099:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (rename_limit <= 0)
                              ^
                               {
/datasets/git/diffcore-rename.c:1102:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            <= st_mult(rename_limit, rename_limit))
                                                   ^
                                                    {
/datasets/git/diffcore-rename.c:1109:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!options->flags.find_copies_harder)
                                               ^
                                                {
/datasets/git/diffcore-rename.c:1113:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (limited_sources = i = 0; i < num_sources; i++) {
        ^
/datasets/git/diffcore-rename.c:1114:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (diff_unmodified_pair(rename_src[i].p))
                                                          ^
                                                           {
/datasets/git/diffcore-rename.c:1119:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            <= st_mult(rename_limit, rename_limit))
                                                   ^
                                                    {
/datasets/git/diffcore-rename.c:1124:44: warning: parameter name 'mx' is too short, expected at least 3 characters [readability-identifier-length]
static int find_renames(struct diff_score *mx,
                                           ^
/datasets/git/diffcore-rename.c:1125:4: warning: 3 adjacent parameters of 'find_renames' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                        int dst_cnt,
                        ^~~~~~~~~~~~
/datasets/git/diffcore-rename.c:1125:8: note: the first parameter in the range is 'dst_cnt'
                        int dst_cnt,
                            ^~~~~~~
/datasets/git/diffcore-rename.c:1127:8: note: the last parameter in the range is 'copies'
                        int copies,
                            ^~~~~~
/datasets/git/diffcore-rename.c:1131:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int count = 0, i;
        ^~~~~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:1131:17: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int count = 0, i;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-rename.c:1131:17: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diffcore-rename.c:1133:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < dst_cnt * NUM_CANDIDATE_PER_DST; i++) {
        ^
/datasets/git/diffcore-rename.c:1134:27: warning: variable 'dst' is not initialized [cppcoreguidelines-init-variables]
                struct diff_rename_dst *dst;
                                        ^
                                            = NULL
/datasets/git/diffcore-rename.c:1137:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    (mx[i].score < minimum_score))
                                                  ^
                                                   {
/datasets/git/diffcore-rename.c:1140:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (dst->is_rename)
                                   ^
                                    {
/datasets/git/diffcore-rename.c:1142:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!copies && rename_src[mx[i].src].p->one->rename_used)
                                                                         ^
                                                                          {
/datasets/git/diffcore-rename.c:1156:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, new_num_src;
        ^~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:1156:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, new_num_src;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-rename.c:1156:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diffcore-rename.c:1156:9: warning: variable 'new_num_src' is not initialized [cppcoreguidelines-init-variables]
        int i, new_num_src;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-rename.c:1158:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (detecting_copies && !interesting)
                                             ^
                                              {
/datasets/git/diffcore-rename.c:1160:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (break_idx)
                      ^
                       {
/datasets/git/diffcore-rename.c:1184:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0, new_num_src = 0; i < rename_src_nr; i++) {
        ^
/datasets/git/diffcore-rename.c:1184:31: warning: backward branch (for loop) is ID-dependent due to variable reference to 'rename_src_nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0, new_num_src = 0; i < rename_src_nr; i++) {
                                     ^
/datasets/git/diffcore-rename.c:1192:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!detecting_copies && one->rename_used)
                                                          ^
                                                           {
/datasets/git/diffcore-rename.c:1196:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (interesting && !strintmap_contains(interesting, one->path))
                                                                               ^
                                                                                {
/datasets/git/diffcore-rename.c:1199:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (new_num_src < i)
                                    ^
                                     {
/datasets/git/diffcore-rename.c:1200:4: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memcpy(&rename_src[new_num_src], &rename_src[i],
                        ^~~~~~
/datasets/git/diffcore-rename.c:1200:4: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                        memcpy(&rename_src[new_num_src], &rename_src[i],
                        ^~~~~~
/datasets/git/diffcore-rename.c:1208:13: warning: function 'handle_early_known_dir_renames' has cognitive complexity of 52 (threshold 25) [readability-function-cognitive-complexity]
static void handle_early_known_dir_renames(struct dir_rename_info *info,
            ^
/datasets/git/diffcore-rename.c:1224:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!dirs_removed || !relevant_sources)
        ^
/datasets/git/diffcore-rename.c:1224:20: note: +1
        if (!dirs_removed || !relevant_sources)
                          ^
/datasets/git/diffcore-rename.c:1226:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (break_idx)
        ^
/datasets/git/diffcore-rename.c:1233:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < rename_src_nr; i++) {
        ^
/datasets/git/diffcore-rename.c:1241:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(!one->rename_used);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/diffcore-rename.c:1241:3: note: nesting level increased to 2
                assert(!one->rename_used);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/diffcore-rename.c:1241:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(!one->rename_used);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/diffcore-rename.c:1241:3: note: +1, nesting level increased to 3
                assert(!one->rename_used);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/diffcore-rename.c:1244:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (*old_dir != '\0' &&
                ^
/datasets/git/diffcore-rename.c:1244:27: note: +1
                while (*old_dir != '\0' &&
                                        ^
/datasets/git/diffcore-rename.c:1273:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        strmap_for_each_entry(info->dir_rename_count, &iter, entry) {
        ^
/datasets/git/./strmap.h:112:2: note: expanded from macro 'strmap_for_each_entry'
        hashmap_for_each_entry(&(mystrmap)->map, iter, var, ent)
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/diffcore-rename.c:1277:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (strintmap_get(dirs_removed, entry->key) ==
                ^
/datasets/git/diffcore-rename.c:1278:25: note: +1
                    RELEVANT_FOR_SELF &&
                                      ^
/datasets/git/diffcore-rename.c:1285:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0, new_num_src = 0; i < rename_src_nr; i++) {
        ^
/datasets/git/diffcore-rename.c:1296:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(val != -1);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/diffcore-rename.c:1296:3: note: nesting level increased to 2
                assert(val != -1);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/diffcore-rename.c:1296:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(val != -1);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/diffcore-rename.c:1296:3: note: +1, nesting level increased to 3
                assert(val != -1);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/diffcore-rename.c:1298:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (val == RELEVANT_LOCATION) {
                ^
/datasets/git/diffcore-rename.c:1301:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (1) {
                        ^
/datasets/git/diffcore-rename.c:1306:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (res == NOT_RELEVANT)
                                ^
/datasets/git/diffcore-rename.c:1309:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (res == RELEVANT_FOR_SELF) {
                                ^
/datasets/git/diffcore-rename.c:1314:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                assert(res == RELEVANT_FOR_ANCESTOR);
                                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/diffcore-rename.c:1314:5: note: nesting level increased to 4
                                assert(res == RELEVANT_FOR_ANCESTOR);
                                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/diffcore-rename.c:1314:5: note: +5, including nesting penalty of 4, nesting level increased to 5
                                assert(res == RELEVANT_FOR_ANCESTOR);
                                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/diffcore-rename.c:1314:5: note: +1, nesting level increased to 5
                                assert(res == RELEVANT_FOR_ANCESTOR);
                                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/diffcore-rename.c:1319:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (removable) {
                        ^
/datasets/git/diffcore-rename.c:1326:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (new_num_src < i)
                ^
/datasets/git/diffcore-rename.c:1220:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, new_num_src;
        ^~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:1220:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, new_num_src;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-rename.c:1220:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diffcore-rename.c:1220:9: warning: variable 'new_num_src' is not initialized [cppcoreguidelines-init-variables]
        int i, new_num_src;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-rename.c:1222:23: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
        struct strmap_entry *entry;
                             ^
                                   = NULL
/datasets/git/diffcore-rename.c:1234:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                char *old_dir;
                ^
/datasets/git/diffcore-rename.c:1224:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!dirs_removed || !relevant_sources)
                                               ^
                                                {
/datasets/git/diffcore-rename.c:1226:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (break_idx)
                      ^
                       {
/datasets/git/diffcore-rename.c:1233:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'rename_src_nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < rename_src_nr; i++) {
                    ^
/datasets/git/diffcore-rename.c:1222:2: note: inferred assignment of ID-dependent value from ID-dependent 
        struct strmap_entry *entry;
        ^
/datasets/git/diffcore-rename.c:1234:9: warning: variable 'old_dir' is not initialized [cppcoreguidelines-init-variables]
                char *old_dir;
                      ^
                              = NULL
/datasets/git/diffcore-rename.c:1244:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (*old_dir != '\0' &&
                ^
/datasets/git/diffcore-rename.c:1244:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'old_dir' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (*old_dir != '\0' &&
                       ^
/datasets/git/diffcore-rename.c:1273:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        strmap_for_each_entry(info->dir_rename_count, &iter, entry) {
        ^
/datasets/git/./strmap.h:112:2: note: expanded from macro 'strmap_for_each_entry'
        hashmap_for_each_entry(&(mystrmap)->map, iter, var, ent)
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/diffcore-rename.c:50:1: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
static int rename_src_nr, rename_src_alloc;
^
/datasets/git/diffcore-rename.c:1273:55: warning: backward branch (for loop) is ID-dependent due to variable reference to 'entry' and may cause performance degradation [altera-id-dependent-backward-branch]
        strmap_for_each_entry(info->dir_rename_count, &iter, entry) {
                                                             ^
/datasets/git/diffcore-rename.c:1285:31: warning: backward branch (for loop) is ID-dependent due to variable reference to 'rename_src_nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0, new_num_src = 0; i < rename_src_nr; i++) {
                                     ^
/datasets/git/diffcore-rename.c:1287:7: warning: variable 'val' is not initialized [cppcoreguidelines-init-variables]
                int val;
                    ^
                        = 0
/datasets/git/diffcore-rename.c:1301:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (1) {
                        ^
/datasets/git/diffcore-rename.c:1306:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (res == NOT_RELEVANT)
                                                        ^
                                                         {
/datasets/git/diffcore-rename.c:1326:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (new_num_src < i)
                                    ^
                                     {
/datasets/git/diffcore-rename.c:1327:4: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memcpy(&rename_src[new_num_src], &rename_src[i],
                        ^~~~~~
/datasets/git/diffcore-rename.c:1327:4: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                        memcpy(&rename_src[new_num_src], &rename_src[i],
                        ^~~~~~
/datasets/git/diffcore-rename.c:1337:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!--spec->count)
                           ^
                            {
/datasets/git/diffcore-rename.c:1358:31: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                             struct diff_filepair *p)
                                                   ^
/datasets/git/diffcore-rename.c:1374:6: warning: function 'diffcore_rename_extended' has cognitive complexity of 120 (threshold 25) [readability-function-cognitive-complexity]
void diffcore_rename_extended(struct diff_options *options,
     ^
/datasets/git/diffcore-rename.c:1403:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(!dir_rename_count || strmap_empty(dir_rename_count));
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/diffcore-rename.c:1403:27: note: +1
        assert(!dir_rename_count || strmap_empty(dir_rename_count));
                                 ^
/datasets/git/diffcore-rename.c:1403:2: note: nesting level increased to 1
        assert(!dir_rename_count || strmap_empty(dir_rename_count));
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/diffcore-rename.c:1403:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(!dir_rename_count || strmap_empty(dir_rename_count));
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/diffcore-rename.c:1403:27: note: +1
        assert(!dir_rename_count || strmap_empty(dir_rename_count));
                                 ^
/datasets/git/diffcore-rename.c:1403:2: note: +1, nesting level increased to 2
        assert(!dir_rename_count || strmap_empty(dir_rename_count));
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/diffcore-rename.c:1405:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (dirs_removed && (break_idx || want_copies))
        ^
/datasets/git/diffcore-rename.c:1405:19: note: +1
        if (dirs_removed && (break_idx || want_copies))
                         ^
/datasets/git/diffcore-rename.c:1405:33: note: +1
        if (dirs_removed && (break_idx || want_copies))
                                       ^
/datasets/git/diffcore-rename.c:1407:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (break_idx && relevant_sources)
        ^
/datasets/git/diffcore-rename.c:1407:16: note: +1
        if (break_idx && relevant_sources)
                      ^
/datasets/git/diffcore-rename.c:1409:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!minimum_score)
        ^
/datasets/git/diffcore-rename.c:1412:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < q->nr; i++) {
        ^
/datasets/git/diffcore-rename.c:1414:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!DIFF_FILE_VALID(p->one)) {
                ^
/datasets/git/diffcore-rename.c:1415:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!DIFF_FILE_VALID(p->two))
                        ^
/datasets/git/diffcore-rename.c:1417:9: note: +1, nesting level increased to 3
                        else if (options->single_follow &&
                             ^
/datasets/git/diffcore-rename.c:1417:36: note: +1
                        else if (options->single_follow &&
                                                        ^
/datasets/git/diffcore-rename.c:1420:9: note: +1, nesting level increased to 3
                        else if (!options->flags.rename_empty &&
                             ^
/datasets/git/diffcore-rename.c:1420:42: note: +1
                        else if (!options->flags.rename_empty &&
                                                              ^
/datasets/git/diffcore-rename.c:1423:9: note: +1, nesting level increased to 3
                        else if (add_rename_dst(p) < 0) {
                             ^
/datasets/git/diffcore-rename.c:1427:5: note: +1
                                goto cleanup;
                                ^
/datasets/git/diffcore-rename.c:1430:8: note: +1, nesting level increased to 2
                else if (!options->flags.rename_empty &&
                     ^
/datasets/git/diffcore-rename.c:1430:41: note: +1
                else if (!options->flags.rename_empty &&
                                                      ^
/datasets/git/diffcore-rename.c:1433:8: note: +1, nesting level increased to 2
                else if (!DIFF_PAIR_UNMERGED(p) && !DIFF_FILE_VALID(p->two)) {
                     ^
/datasets/git/diffcore-rename.c:1433:35: note: +1
                else if (!DIFF_PAIR_UNMERGED(p) && !DIFF_FILE_VALID(p->two)) {
                                                ^
/datasets/git/diffcore-rename.c:1441:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (p->broken_pair && !p->score)
                        ^
/datasets/git/diffcore-rename.c:1441:23: note: +1
                        if (p->broken_pair && !p->score)
                                           ^
/datasets/git/diffcore-rename.c:1445:8: note: +1, nesting level increased to 2
                else if (want_copies) {
                     ^
/datasets/git/diffcore-rename.c:1455:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (rename_dst_nr == 0 || rename_src_nr == 0)
        ^
/datasets/git/diffcore-rename.c:1455:25: note: +1
        if (rename_dst_nr == 0 || rename_src_nr == 0)
                               ^
/datasets/git/diffcore-rename.c:1474:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (minimum_score == MAX_SCORE)
        ^
/datasets/git/diffcore-rename.c:1479:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (want_copies || break_idx) {
        ^
/datasets/git/diffcore-rename.c:1479:18: note: +1
        if (want_copies || break_idx) {
                        ^
/datasets/git/diffcore-rename.c:1488:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/diffcore-rename.c:1494:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (basename_factor)
                ^
/datasets/git/diffcore-rename.c:1496:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(factor >= 0.0 && factor <= 1.0);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/diffcore-rename.c:1496:24: note: +1
                assert(factor >= 0.0 && factor <= 1.0);
                                     ^
/datasets/git/diffcore-rename.c:1496:3: note: nesting level increased to 2
                assert(factor >= 0.0 && factor <= 1.0);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/diffcore-rename.c:1496:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(factor >= 0.0 && factor <= 1.0);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/diffcore-rename.c:1496:24: note: +1
                assert(factor >= 0.0 && factor <= 1.0);
                                     ^
/datasets/git/diffcore-rename.c:1496:3: note: +1, nesting level increased to 3
                assert(factor >= 0.0 && factor <= 1.0);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/diffcore-rename.c:1546:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!num_destinations || !num_sources)
        ^
/datasets/git/diffcore-rename.c:1546:24: note: +1
        if (!num_destinations || !num_sources)
                              ^
/datasets/git/diffcore-rename.c:1549:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        switch (too_many_rename_candidates(num_destinations, num_sources,
        ^
/datasets/git/diffcore-rename.c:1552:3: note: +1
                goto cleanup;
                ^
/datasets/git/diffcore-rename.c:1562:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (options->show_rename_progress) {
        ^
/datasets/git/diffcore-rename.c:1570:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (options->repo == the_repository && has_promisor_remote()) {
        ^
/datasets/git/diffcore-rename.c:1570:38: note: +1
        if (options->repo == the_repository && has_promisor_remote()) {
                                            ^
/datasets/git/diffcore-rename.c:1576:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (dst_cnt = i = 0; i < rename_dst_nr; i++) {
        ^
/datasets/git/diffcore-rename.c:1580:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (rename_dst[i].is_rename)
                ^
/datasets/git/diffcore-rename.c:1584:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (j = 0; j < NUM_CANDIDATE_PER_DST; j++)
                ^
/datasets/git/diffcore-rename.c:1587:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (j = 0; j < rename_src_nr; j++) {
                ^
/datasets/git/diffcore-rename.c:1591:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        assert(!one->rename_used || want_copies || break_idx);
                        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/diffcore-rename.c:1591:44: note: +1
                        assert(!one->rename_used || want_copies || break_idx);
                                                                ^
/datasets/git/diffcore-rename.c:1591:4: note: nesting level increased to 3
                        assert(!one->rename_used || want_copies || break_idx);
                        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/diffcore-rename.c:1591:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        assert(!one->rename_used || want_copies || break_idx);
                        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/diffcore-rename.c:1591:44: note: +1
                        assert(!one->rename_used || want_copies || break_idx);
                                                                ^
/datasets/git/diffcore-rename.c:1591:4: note: +1, nesting level increased to 4
                        assert(!one->rename_used || want_copies || break_idx);
                        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/diffcore-rename.c:1593:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (skip_unmodified &&
                        ^
/datasets/git/diffcore-rename.c:1593:24: note: +1
                        if (skip_unmodified &&
                                            ^
/datasets/git/diffcore-rename.c:1623:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (want_copies)
        ^
/datasets/git/diffcore-rename.c:1634:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        DIFF_QUEUE_CLEAR(&outq);
        ^
/datasets/git/./diffcore.h:155:2: note: expanded from macro 'DIFF_QUEUE_CLEAR'
        do { \
        ^
/datasets/git/diffcore-rename.c:1635:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < q->nr; i++) {
        ^
/datasets/git/diffcore-rename.c:1639:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (DIFF_PAIR_UNMERGED(p)) {
                ^
/datasets/git/diffcore-rename.c:1642:8: note: +1, nesting level increased to 2
                else if (!DIFF_FILE_VALID(p->one) && DIFF_FILE_VALID(p->two)) {
                     ^
/datasets/git/diffcore-rename.c:1642:37: note: +1
                else if (!DIFF_FILE_VALID(p->one) && DIFF_FILE_VALID(p->two)) {
                                                  ^
/datasets/git/diffcore-rename.c:1646:8: note: +1, nesting level increased to 2
                else if (DIFF_FILE_VALID(p->one) && !DIFF_FILE_VALID(p->two)) {
                     ^
/datasets/git/diffcore-rename.c:1646:36: note: +1
                else if (DIFF_FILE_VALID(p->one) && !DIFF_FILE_VALID(p->two)) {
                                                 ^
/datasets/git/diffcore-rename.c:1663:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (DIFF_PAIR_BROKEN(p)) {
                        ^
/datasets/git/diffcore-rename.c:1663:8: note: +1
                        if (DIFF_PAIR_BROKEN(p)) {
                            ^
/datasets/git/./diffcore.h:121:63: note: expanded from macro 'DIFF_PAIR_BROKEN'
        ( (!DIFF_FILE_VALID((p)->one) != !DIFF_FILE_VALID((p)->two)) && \
                                                                     ^
/datasets/git/diffcore-rename.c:1666:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!dst)
                                ^
/datasets/git/diffcore-rename.c:1668:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (dst->is_rename)
                                ^
/datasets/git/diffcore-rename.c:1672:4: note: +1, nesting level increased to 3
                        else {
                        ^
/datasets/git/diffcore-rename.c:1673:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (p->one->rename_used)
                                ^
/datasets/git/diffcore-rename.c:1678:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!pair_to_free)
                        ^
/datasets/git/diffcore-rename.c:1681:8: note: +1, nesting level increased to 2
                else if (!diff_unmodified_pair(p))
                     ^
/datasets/git/diffcore-rename.c:1684:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/diffcore-rename.c:1688:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (pair_to_free)
                ^
/datasets/git/diffcore-rename.c:1691:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        diff_debug_queue("done copying original", &outq);
        ^
/datasets/git/./diffcore.h:217:31: note: expanded from macro 'diff_debug_queue'
#define diff_debug_queue(a,b) do { /* nothing */ } while (0)
                              ^
/datasets/git/diffcore-rename.c:1695:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        diff_debug_queue("done collapsing", q);
        ^
/datasets/git/./diffcore.h:217:31: note: expanded from macro 'diff_debug_queue'
#define diff_debug_queue(a,b) do { /* nothing */ } while (0)
                              ^
/datasets/git/diffcore-rename.c:1697:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < rename_dst_nr; i++)
        ^
/datasets/git/diffcore-rename.c:1698:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (rename_dst[i].filespec_to_free)
                ^
/datasets/git/diffcore-rename.c:1702:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        FREE_AND_NULL(rename_dst);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/diffcore-rename.c:1704:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        FREE_AND_NULL(rename_src);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/diffcore-rename.c:1706:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (break_idx) {
        ^
/datasets/git/diffcore-rename.c:1708:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                FREE_AND_NULL(break_idx);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/diffcore-rename.c:1383:28: warning: variable name 'q' is too short, expected at least 3 characters [readability-identifier-length]
        struct diff_queue_struct *q = &diff_queued_diff;
                                  ^
/datasets/git/diffcore-rename.c:1385:21: warning: variable 'mx' is not initialized [cppcoreguidelines-init-variables]
        struct diff_score *mx;
                           ^
                              = NULL
/datasets/git/diffcore-rename.c:1385:21: warning: variable name 'mx' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diffcore-rename.c:1386:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, j, rename_count, skip_unmodified = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:1386:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, j, rename_count, skip_unmodified = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-rename.c:1386:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diffcore-rename.c:1386:9: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int i, j, rename_count, skip_unmodified = 0;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-rename.c:1386:9: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diffcore-rename.c:1386:12: warning: variable 'rename_count' is not initialized [cppcoreguidelines-init-variables]
        int i, j, rename_count, skip_unmodified = 0;
                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-rename.c:1387:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int num_destinations, dst_cnt;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:1387:6: warning: variable 'num_destinations' is not initialized [cppcoreguidelines-init-variables]
        int num_destinations, dst_cnt;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-rename.c:1387:24: warning: variable 'dst_cnt' is not initialized [cppcoreguidelines-init-variables]
        int num_destinations, dst_cnt;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-rename.c:1388:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int num_sources, want_copies;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:1388:6: warning: variable 'num_sources' is not initialized [cppcoreguidelines-init-variables]
        int num_sources, want_copies;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-rename.c:1388:19: warning: variable 'want_copies' is not initialized [cppcoreguidelines-init-variables]
        int num_sources, want_copies;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-rename.c:1405:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (dirs_removed && (break_idx || want_copies))
                                                       ^
                                                        {
/datasets/git/diffcore-rename.c:1407:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (break_idx && relevant_sources)
                                          ^
                                           {
/datasets/git/diffcore-rename.c:1409:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!minimum_score)
                           ^
                            {
/datasets/git/diffcore-rename.c:1412:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < q->nr; i++) {
        ^
/datasets/git/diffcore-rename.c:1412:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'q' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < q->nr; i++) {
                    ^
/datasets/git/diffcore-rename.c:1413:25: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct diff_filepair *p = q->queue[i];
                                      ^
/datasets/git/diffcore-rename.c:1415:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!DIFF_FILE_VALID(p->two))
                                                     ^
                                                      {
/datasets/git/diffcore-rename.c:1416:5: warning: repeated branch in conditional chain [bugprone-branch-clone]
                                continue; /* unmerged */
                                ^
/datasets/git/diffcore-rename.c:1416:13: note: end of the original
                                continue; /* unmerged */
                                        ^
/datasets/git/diffcore-rename.c:1419:5: note: clone 1 starts here
                                continue; /* not interested */
                                ^
/datasets/git/diffcore-rename.c:1422:5: note: clone 2 starts here
                                continue;
                                ^
/datasets/git/diffcore-rename.c:1417:4: warning: do not use 'else' after 'continue' [llvm-else-after-return,readability-else-after-return]
                        else if (options->single_follow &&
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:1418:6: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                                 strcmp(options->single_follow, p->two->path))
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-rename.c:1418:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                 strcmp(options->single_follow, p->two->path))
                                                                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-rename.c:1421:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                 is_empty_blob_oid(&p->two->oid))
                                                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-rename.c:1431:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                         is_empty_blob_oid(&p->one->oid))
                                                         ^
                                                          {
/datasets/git/diffcore-rename.c:1441:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (p->broken_pair && !p->score)
                                                        ^
                                                         {
/datasets/git/diffcore-rename.c:1455:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (rename_dst_nr == 0 || rename_src_nr == 0)
                                                     ^
                                                      {
/datasets/git/diffcore-rename.c:1459:29: warning: performing an implicit widening conversion to type 'size_t' (aka 'unsigned long') of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        mem_pool_init(&local_pool, 32*1024);
                                   ^
/datasets/git/diffcore-rename.c:1459:29: note: make conversion explicit to silence this warning
        mem_pool_init(&local_pool, 32*1024);
                                   ^~~~~~~
                                   (size_t)( )
/datasets/git/diffcore-rename.c:1459:29: note: perform multiplication in a wider type
        mem_pool_init(&local_pool, 32*1024);
                                   ^~
                                   (long)
/datasets/git/diffcore-rename.c:1459:29: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mem_pool_init(&local_pool, 32*1024);
                                   ^
/datasets/git/diffcore-rename.c:1459:32: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mem_pool_init(&local_pool, 32*1024);
                                      ^
/datasets/git/diffcore-rename.c:1474:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (minimum_score == MAX_SCORE)
                                       ^
                                        {
/datasets/git/diffcore-rename.c:1477:2: warning: Value stored to 'num_sources' is never read [clang-analyzer-deadcode.DeadStores]
        num_sources = rename_src_nr;
        ^             ~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:1477:2: note: Value stored to 'num_sources' is never read
        num_sources = rename_src_nr;
        ^             ~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:1490:19: warning: 0.5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                double factor = 0.5;
                                ^
/datasets/git/diffcore-rename.c:1491:27: warning: function is not thread safe [concurrency-mt-unsafe]
                char *basename_factor = getenv("GIT_BASENAME_FACTOR");
                                        ^
/datasets/git/diffcore-rename.c:1492:7: warning: variable 'min_basename_score' is not initialized [cppcoreguidelines-init-variables]
                int min_basename_score;
                    ^
                                       = 0
/datasets/git/diffcore-rename.c:1494:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (basename_factor)
                                    ^
                                     {
/datasets/git/diffcore-rename.c:1495:13: warning: narrowing conversion from 'long' to 'double' [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        factor = strtol(basename_factor, NULL, 10)/100.0;
                                 ^
/datasets/git/diffcore-rename.c:1495:43: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        factor = strtol(basename_factor, NULL, 10)/100.0;
                                                               ^
/datasets/git/diffcore-rename.c:1546:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!num_destinations || !num_sources)
                                              ^
                                               {
/datasets/git/diffcore-rename.c:1576:24: warning: backward branch (for loop) is ID-dependent due to variable reference to 'rename_dst_nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (dst_cnt = i = 0; i < rename_dst_nr; i++) {
                              ^
/datasets/git/diffcore-rename.c:1578:22: warning: variable 'm' is not initialized [cppcoreguidelines-init-variables]
                struct diff_score *m;
                                   ^
                                     = NULL
/datasets/git/diffcore-rename.c:1578:22: warning: variable name 'm' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diffcore-rename.c:1580:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (rename_dst[i].is_rename)
                                            ^
                                             {
/datasets/git/diffcore-rename.c:1583:8: warning: result of multiplication in type 'int' is used as a pointer offset after an implicit widening conversion to type 'ptrdiff_t' [bugprone-implicit-widening-of-multiplication-result]
                m = &mx[dst_cnt * NUM_CANDIDATE_PER_DST];
                     ^
/datasets/git/diffcore-rename.c:1583:11: note: make conversion explicit to silence this warning
                m = &mx[dst_cnt * NUM_CANDIDATE_PER_DST];
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                        (ptrdiff_t)( )
/datasets/git/diffcore-rename.c:1583:11: note: perform multiplication in a wider type
                m = &mx[dst_cnt * NUM_CANDIDATE_PER_DST];
                        ^~~~~~~
                        (ptrdiff_t)
/datasets/git/diffcore-rename.c:1584:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (j = 0; j < NUM_CANDIDATE_PER_DST; j++)
                ^
/datasets/git/diffcore-rename.c:50:1: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
static int rename_src_nr, rename_src_alloc;
^
/datasets/git/diffcore-rename.c:1584:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (j = 0; j < NUM_CANDIDATE_PER_DST; j++)
                                                           ^
                                                            {
/datasets/git/diffcore-rename.c:1587:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (j = 0; j < rename_src_nr; j++) {
                ^
/datasets/git/diffcore-rename.c:1587:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'rename_src_nr' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (j = 0; j < rename_src_nr; j++) {
                            ^
/datasets/git/diffcore-rename.c:1594:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            diff_unmodified_pair(rename_src[j].p))
                                                                  ^
                                                                   {
/datasets/git/diffcore-rename.c:1601:26: warning: narrowing conversion from 'int' to signed type 'short' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        this_src.name_score = basename_same(one, two);
                                              ^
/datasets/git/diffcore-rename.c:1619:19: warning: performing an implicit widening conversion to type 'size_t' (aka 'unsigned long') of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        STABLE_QSORT(mx, dst_cnt * NUM_CANDIDATE_PER_DST, score_compare);
                         ^
/datasets/git/diffcore-rename.c:1619:19: note: make conversion explicit to silence this warning
        STABLE_QSORT(mx, dst_cnt * NUM_CANDIDATE_PER_DST, score_compare);
                         ^
                         (size_t)( )
/datasets/git/./git-compat-util.h:1313:28: note: expanded from macro 'STABLE_QSORT'
        git_stable_qsort((base), (n), sizeof(*(base)), compar)
                                  ^
/datasets/git/diffcore-rename.c:1619:19: note: perform multiplication in a wider type
        STABLE_QSORT(mx, dst_cnt * NUM_CANDIDATE_PER_DST, score_compare);
                         ^
                         (long)
/datasets/git/./git-compat-util.h:1313:28: note: expanded from macro 'STABLE_QSORT'
        git_stable_qsort((base), (n), sizeof(*(base)), compar)
                                  ^
/datasets/git/diffcore-rename.c:1623:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (want_copies)
                        ^
                         {
/datasets/git/diffcore-rename.c:1624:3: warning: Value stored to 'rename_count' is never read [clang-analyzer-deadcode.DeadStores]
                rename_count += find_renames(mx, dst_cnt, minimum_score, 1,
                ^               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:1624:3: note: Value stored to 'rename_count' is never read
                rename_count += find_renames(mx, dst_cnt, minimum_score, 1,
                ^               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/diffcore-rename.c:1634:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        DIFF_QUEUE_CLEAR(&outq);
        ^
/datasets/git/./diffcore.h:155:2: note: expanded from macro 'DIFF_QUEUE_CLEAR'
        do { \
        ^
/datasets/git/diffcore-rename.c:1383:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct diff_queue_struct *q = &diff_queued_diff;
        ^
/datasets/git/diffcore-rename.c:1635:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < q->nr; i++) {
        ^
/datasets/git/diffcore-rename.c:1635:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'q' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < q->nr; i++) {
                    ^
/datasets/git/diffcore-rename.c:1636:25: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct diff_filepair *p = q->queue[i];
                                      ^
/datasets/git/diffcore-rename.c:1639:30: warning: repeated branch in conditional chain [bugprone-branch-clone]
                if (DIFF_PAIR_UNMERGED(p)) {
                                           ^
/datasets/git/diffcore-rename.c:1641:4: note: end of the original
                }
                 ^
/datasets/git/diffcore-rename.c:1642:65: note: clone 1 starts here
                else if (!DIFF_FILE_VALID(p->one) && DIFF_FILE_VALID(p->two)) {
                                                                              ^
/datasets/git/diffcore-rename.c:1683:4: note: clone 2 starts here
                        diff_q(&outq, p);
                        ^
/datasets/git/diffcore-rename.c:1666:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!dst)
                                         ^
                                          {
/datasets/git/diffcore-rename.c:1668:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (dst->is_rename)
                                                   ^
                                                    {
/datasets/git/diffcore-rename.c:1673:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (p->one->rename_used)
                                                        ^
                                                         {
/datasets/git/diffcore-rename.c:1678:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!pair_to_free)
                                          ^
                                           {
/datasets/git/diffcore-rename.c:1681:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!diff_unmodified_pair(p))
                                                  ^
                                                   {
/datasets/git/diffcore-rename.c:1684:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/diffcore-rename.c:1688:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pair_to_free)
                                 ^
                                  {
/datasets/git/diffcore-rename.c:1691:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        diff_debug_queue("done copying original", &outq);
        ^
/datasets/git/./diffcore.h:217:31: note: expanded from macro 'diff_debug_queue'
#define diff_debug_queue(a,b) do { /* nothing */ } while (0)
                              ^
/datasets/git/diffcore-rename.c:1695:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        diff_debug_queue("done collapsing", q);
        ^
/datasets/git/./diffcore.h:217:31: note: expanded from macro 'diff_debug_queue'
#define diff_debug_queue(a,b) do { /* nothing */ } while (0)
                              ^
/datasets/git/diffcore-rename.c:1697:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < rename_dst_nr; i++)
        ^
/datasets/git/diffcore-rename.c:1697:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'rename_dst_nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < rename_dst_nr; i++)
                    ^
/datasets/git/diffcore-rename.c:1697:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < rename_dst_nr; i++)
                                           ^
                                            {
/datasets/git/diffcore-rename.c:1698:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (rename_dst[i].filespec_to_free)
                                                   ^
                                                    {
/datasets/git/diffcore-rename.c:1702:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(rename_dst);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/diffcore-rename.c:1704:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(rename_src);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/diffcore-rename.c:1708:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FREE_AND_NULL(break_idx);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/diffcore-rename.c:1711:2: warning: redundant return statement at the end of a function with a void return type [readability-redundant-control-flow]
        return;
~~~~~~~~^~~~~~~
diffcore-rotate.c:11:28: warning: variable name 'q' is too short, expected at least 3 characters [readability-identifier-length]
        struct diff_queue_struct *q = &diff_queued_diff;
                                  ^
/datasets/git/diffcore-rotate.c:13:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int rotate_to, i;
        ^~~~~~~~~~~~~~~~~
/datasets/git/diffcore-rotate.c:13:6: warning: variable 'rotate_to' is not initialized [cppcoreguidelines-init-variables]
        int rotate_to, i;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-rotate.c:13:17: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int rotate_to, i;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/diffcore-rotate.c:13:17: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/diffcore-rotate.c:15:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!q->nr)
                   ^
                    {
/datasets/git/diffcore-rotate.c:18:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < q->nr; i++) {
        ^
/datasets/git/diffcore-rotate.c:18:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < q->nr; i++) {
                    ^
/datasets/git/diffcore-rotate.c:20:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!cmp)
                         ^
                          {
/datasets/git/diffcore-rotate.c:22:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!opt->rotate_to_strict && cmp < 0)
                                                      ^
                                                       {
/datasets/git/diffcore-rotate.c:28:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opt->rotate_to_strict)
                                          ^
                                           {
/datasets/git/diffcore-rotate.c:33:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        DIFF_QUEUE_CLEAR(&outq);
        ^
/datasets/git/./diffcore.h:155:2: note: expanded from macro 'DIFF_QUEUE_CLEAR'
        do { \
        ^
/datasets/git/diffcore-rotate.c:36:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = rotate_to; i < q->nr; i++)
        ^
/datasets/git/diffcore-rotate.c:13:2: note: inferred assignment of ID-dependent value from ID-dependent variable rotate_to [altera-id-dependent-backward-branch]
        int rotate_to, i;
        ^
/datasets/git/diffcore-rotate.c:36:22: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = rotate_to; i < q->nr; i++)
                            ^
/datasets/git/diffcore-rotate.c:36:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = rotate_to; i < q->nr; i++)
                                           ^
                                            {
/datasets/git/diffcore-rotate.c:38:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < rotate_to; i++) {
        ^
/datasets/git/diffcore-rotate.c:38:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < rotate_to; i++) {
                    ^
/datasets/git/diffcore-rotate.c:39:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opt->skip_instead_of_rotate)
                                                ^
                                                 {
/datasets/git/diffcore-rotate.c:41:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/dir-iterator.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "dir.h"
^        ~~~~~~~
         "dir-iterator.h"
/datasets/git/dir-iterator.c:6:8: warning: accessing fields in struct 'dir_iterator_level' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct dir_iterator_level {
       ^
/datasets/git/dir-iterator.c:6:8: note: use "__attribute__((aligned(16)))" to align struct 'dir_iterator_level' to 16 bytes
/datasets/git/dir-iterator.c:21:8: warning: accessing fields in struct 'dir_iterator_int' is inefficient due to padding; only needs 212 bytes but is using 216 bytes [altera-struct-pack-align]
struct dir_iterator_int {
       ^
/datasets/git/dir-iterator.c:21:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'dir_iterator_int'
/datasets/git/dir-iterator.c:21:8: warning: accessing fields in struct 'dir_iterator_int' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct dir_iterator_int {
       ^
/datasets/git/dir-iterator.c:21:8: note: use "__attribute__((aligned(128)))" to align struct 'dir_iterator_int' to 128 bytes
/datasets/git/dir-iterator.c:54:29: warning: variable 'level' is not initialized [cppcoreguidelines-init-variables]
        struct dir_iterator_level *level;
                                   ^
                                         = NULL
/datasets/git/dir-iterator.c:56:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(iter->levels, iter->levels_nr + 1, iter->levels_alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/dir-iterator.c:59:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_dir_sep(iter->base.path.buf[iter->base.path.len - 1]))
                                                                      ^
                                                                       {
/datasets/git/dir-iterator.c:87:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (level->dir && closedir(level->dir))
                                               ^
                                                {
/datasets/git/dir-iterator.c:92:9: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return --iter->levels_nr;
               ^
/datasets/git/dir-iterator.c:101:23: warning: parameter name 'de' is too short, expected at least 3 characters [readability-identifier-length]
                                   struct dirent *de)
                                                  ^
/datasets/git/dir-iterator.c:103:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int err, saved_errno;
        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir-iterator.c:103:6: warning: variable 'err' is not initialized [cppcoreguidelines-init-variables]
        int err, saved_errno;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/dir-iterator.c:103:11: warning: variable 'saved_errno' is not initialized [cppcoreguidelines-init-variables]
        int err, saved_errno;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/dir-iterator.c:115:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (iter->flags & DIR_ITERATOR_FOLLOW_SYMLINKS)
            ^
/datasets/git/dir-iterator.c:115:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (iter->flags & DIR_ITERATOR_FOLLOW_SYMLINKS)
                          ^
/datasets/git/./dir-iterator.h:69:39: note: expanded from macro 'DIR_ITERATOR_FOLLOW_SYMLINKS'
#define DIR_ITERATOR_FOLLOW_SYMLINKS (1 << 1)
                                      ^
/datasets/git/dir-iterator.c:115:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (iter->flags & DIR_ITERATOR_FOLLOW_SYMLINKS)
                                                       ^
                                                        {
/datasets/git/dir-iterator.c:117:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/dir-iterator.c:121:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err && errno != ENOENT)
                                   ^
                                    {
/datasets/git/dir-iterator.c:128:5: warning: function 'dir_iterator_advance' has cognitive complexity of 26 (threshold 25) [readability-function-cognitive-complexity]
int dir_iterator_advance(struct dir_iterator *dir_iterator)
    ^
/datasets/git/dir-iterator.c:133:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (S_ISDIR(iter->base.st.st_mode) && push_level(iter)) {
        ^
/datasets/git/dir-iterator.c:133:37: note: +1
        if (S_ISDIR(iter->base.st.st_mode) && push_level(iter)) {
                                           ^
/datasets/git/dir-iterator.c:134:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (errno != ENOENT && iter->flags & DIR_ITERATOR_PEDANTIC)
                ^
/datasets/git/dir-iterator.c:134:23: note: +1
                if (errno != ENOENT && iter->flags & DIR_ITERATOR_PEDANTIC)
                                    ^
/datasets/git/dir-iterator.c:136:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (iter->levels_nr == 0)
                ^
/datasets/git/dir-iterator.c:141:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (1) {
        ^
/datasets/git/dir-iterator.c:150:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!de) {
                ^
/datasets/git/dir-iterator.c:151:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (errno) {
                        ^
/datasets/git/dir-iterator.c:154:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (iter->flags & DIR_ITERATOR_PEDANTIC)
                                ^
/datasets/git/dir-iterator.c:156:11: note: +1, nesting level increased to 3
                        } else if (pop_level(iter) == 0) {
                               ^
/datasets/git/dir-iterator.c:162:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (is_dot_or_dotdot(de->d_name))
                ^
/datasets/git/dir-iterator.c:165:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (prepare_next_entry_data(iter, de)) {
                ^
/datasets/git/dir-iterator.c:166:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (errno != ENOENT && iter->flags & DIR_ITERATOR_PEDANTIC)
                        ^
/datasets/git/dir-iterator.c:166:24: note: +1
                        if (errno != ENOENT && iter->flags & DIR_ITERATOR_PEDANTIC)
                                            ^
/datasets/git/dir-iterator.c:134:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (errno != ENOENT && iter->flags & DIR_ITERATOR_PEDANTIC)
                                       ^
/datasets/git/dir-iterator.c:134:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (errno != ENOENT && iter->flags & DIR_ITERATOR_PEDANTIC)
                                                     ^
/datasets/git/./dir-iterator.h:68:32: note: expanded from macro 'DIR_ITERATOR_PEDANTIC'
#define DIR_ITERATOR_PEDANTIC (1 << 0)
                               ^
/datasets/git/dir-iterator.c:134:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (errno != ENOENT && iter->flags & DIR_ITERATOR_PEDANTIC)
                                                                           ^
                                                                            {
/datasets/git/dir-iterator.c:136:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (iter->levels_nr == 0)
                                         ^
                                          {
/datasets/git/dir-iterator.c:141:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/dir-iterator.c:142:18: warning: variable 'de' is not initialized [cppcoreguidelines-init-variables]
                struct dirent *de;
                               ^
                                  = NULL
/datasets/git/dir-iterator.c:142:18: warning: variable name 'de' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/dir-iterator.c:148:8: warning: function is not thread safe [concurrency-mt-unsafe]
                de = readdir(level->dir);
                     ^
/datasets/git/dir-iterator.c:154:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (iter->flags & DIR_ITERATOR_PEDANTIC)
                                    ^
/datasets/git/dir-iterator.c:154:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (iter->flags & DIR_ITERATOR_PEDANTIC)
                                                  ^
/datasets/git/./dir-iterator.h:68:32: note: expanded from macro 'DIR_ITERATOR_PEDANTIC'
#define DIR_ITERATOR_PEDANTIC (1 << 0)
                               ^
/datasets/git/dir-iterator.c:154:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (iter->flags & DIR_ITERATOR_PEDANTIC)
                                                                        ^
                                                                         {
/datasets/git/dir-iterator.c:162:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_dot_or_dotdot(de->d_name))
                                                 ^
                                                  {
/datasets/git/dir-iterator.c:166:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (errno != ENOENT && iter->flags & DIR_ITERATOR_PEDANTIC)
                                               ^
/datasets/git/dir-iterator.c:166:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (errno != ENOENT && iter->flags & DIR_ITERATOR_PEDANTIC)
                                                             ^
/datasets/git/./dir-iterator.h:68:32: note: expanded from macro 'DIR_ITERATOR_PEDANTIC'
#define DIR_ITERATOR_PEDANTIC (1 << 0)
                               ^
/datasets/git/dir-iterator.c:181:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct dir_iterator_int *iter = (struct dir_iterator_int *)dir_iterator;
        ^
/datasets/git/dir-iterator.c:166:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (errno != ENOENT && iter->flags & DIR_ITERATOR_PEDANTIC)
                                                                                   ^
                                                                                    {
/datasets/git/dir-iterator.c:183:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; iter->levels_nr; iter->levels_nr--) {
        ^
/datasets/git/dir-iterator.c:183:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'iter' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; iter->levels_nr; iter->levels_nr--) {
               ^
/datasets/git/dir-iterator.c:206:6: warning: variable 'saved_errno' is not initialized [cppcoreguidelines-init-variables]
        int saved_errno;
            ^
                        = 0
/datasets/git/dir-iterator.c:211:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(iter->levels, 10, iter->levels_alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/dir.c:9:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "attr.h"
/datasets/git/dir.c:38:8: warning: accessing fields in struct 'cached_dir' is inefficient due to padding; only needs 52 bytes but is using 56 bytes [altera-struct-pack-align]
struct cached_dir {
       ^
/datasets/git/dir.c:38:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'cached_dir'
/datasets/git/dir.c:38:8: warning: accessing fields in struct 'cached_dir' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct cached_dir {
       ^
/datasets/git/dir.c:38:8: note: use "__attribute__((aligned(64)))" to align struct 'cached_dir' to 64 bytes
/datasets/git/dir.c:50:28: warning: function 'read_directory_recursive' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
static enum path_treatment read_directory_recursive(struct dir_struct *dir,
                           ^
/datasets/git/dir.c:2547:28: note: the definition seen here
static enum path_treatment read_directory_recursive(struct dir_struct *dir,
                           ^
/datasets/git/dir.c:50:28: note: differing parameters are named here: ('path'), in definition: ('base')
static enum path_treatment read_directory_recursive(struct dir_struct *dir,
                           ^
/datasets/git/dir.c:58:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct dirent *e;
        ^
/datasets/git/dir.c:58:17: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct dirent *e;
                       ^
                         = NULL
/datasets/git/dir.c:58:17: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/dir.c:60:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((e = readdir(dirp)) != NULL) {
        ^
/datasets/git/dir.c:60:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'e' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((e = readdir(dirp)) != NULL) {
               ^
/datasets/git/dir.c:60:14: warning: function is not thread safe [concurrency-mt-unsafe]
        while ((e = readdir(dirp)) != NULL) {
                    ^
/datasets/git/dir.c:61:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!is_dot_or_dotdot(e->d_name))
                                                 ^
                                                  {
/datasets/git/dir.c:67:31: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
int count_slashes(const char *s)
                              ^
/datasets/git/dir.c:70:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*s)
        ^
/datasets/git/dir.c:70:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (*s)
                  ^
                   {
/datasets/git/dir.c:71:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*s++ == '/')
                                ^
                                 {
/datasets/git/dir.c:76:27: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
int fspathcmp(const char *a, const char *b)
                          ^
/datasets/git/dir.c:76:42: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
int fspathcmp(const char *a, const char *b)
                                         ^
/datasets/git/dir.c:81:26: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
int fspatheq(const char *a, const char *b)
                         ^
/datasets/git/dir.c:81:41: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
int fspatheq(const char *a, const char *b)
                                        ^
/datasets/git/dir.c:86:28: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
int fspathncmp(const char *a, const char *b, size_t count)
                           ^
/datasets/git/dir.c:86:43: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
int fspathncmp(const char *a, const char *b, size_t count)
                                          ^
/datasets/git/dir.c:101:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ps_strncmp(item, pattern, string, prefix))
                                                              ^
                                                               {
/datasets/git/dir.c:106:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (item->flags & PATHSPEC_ONESTAR) {
            ^~~~~~~~~~~
/datasets/git/dir.c:107:21: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int pattern_len = strlen(++pattern);
                                  ^
/datasets/git/dir.c:108:20: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int string_len = strlen(string);
                                 ^
/datasets/git/dir.c:113:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (item->magic & PATHSPEC_GLOB)
            ^
/datasets/git/dir.c:113:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (item->magic & PATHSPEC_GLOB)
                          ^
/datasets/git/./pathspec.h:10:25: note: expanded from macro 'PATHSPEC_GLOB'
#define PATHSPEC_GLOB           (1<<3)
                                 ^
/datasets/git/dir.c:113:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (item->magic & PATHSPEC_GLOB)
                                        ^
                                         {
/datasets/git/dir.c:115:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                 WM_PATHNAME |
                                 ^
/datasets/git/./wildmatch.h:5:21: note: expanded from macro 'WM_PATHNAME'
#define WM_PATHNAME 2
                    ^
/datasets/git/dir.c:116:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                 (item->magic & PATHSPEC_ICASE ? WM_CASEFOLD : 0));
                                  ^
/datasets/git/dir.c:116:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                 (item->magic & PATHSPEC_ICASE ? WM_CASEFOLD : 0));
                                                ^
/datasets/git/./pathspec.h:11:26: note: expanded from macro 'PATHSPEC_ICASE'
#define PATHSPEC_ICASE          (1<<4)
                                 ^
/datasets/git/dir.c:117:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else
        ^~~~
/datasets/git/dir.c:117:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/dir.c:120:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                 item->magic & PATHSPEC_ICASE ? WM_CASEFOLD : 0);
                                 ^
/datasets/git/dir.c:120:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                 item->magic & PATHSPEC_ICASE ? WM_CASEFOLD : 0);
                                               ^
/datasets/git/./pathspec.h:11:26: note: expanded from macro 'PATHSPEC_ICASE'
#define PATHSPEC_ICASE          (1<<4)
                                 ^
/datasets/git/dir.c:124:29: warning: 2 adjacent parameters of 'fnmatch_icase_mem' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                             const char *string, int stringlen,
                                                 ^~~~~~~~~~~~~~
/datasets/git/dir.c:124:33: note: the first parameter in the range is 'stringlen'
                             const char *string, int stringlen,
                                                     ^~~~~~~~~
/datasets/git/dir.c:125:13: note: the last parameter in the range is 'flags'
                             int flags)
                                 ^~~~~
/datasets/git/dir.c:127:6: warning: variable 'match_status' is not initialized [cppcoreguidelines-init-variables]
        int match_status;
            ^
                         = 0
/datasets/git/dir.c:142:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ignore_case)
                        ^
                         {
/datasets/git/dir.c:143:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags |= WM_CASEFOLD;
                ^~~~~
/datasets/git/dir.c:154:6: warning: variable 'n' is not initialized [cppcoreguidelines-init-variables]
        int n;
            ^
              = 0
/datasets/git/dir.c:154:6: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/dir.c:164:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        GUARD_PATHSPEC(pathspec,
        ^
/datasets/git/./pathspec.h:59:2: note: expanded from macro 'GUARD_PATHSPEC'
        do { \
        ^
/datasets/git/dir.c:164:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        GUARD_PATHSPEC(pathspec,
        ^
/datasets/git/./pathspec.h:60:7: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                    ^             ~~~~~~~
/datasets/git/dir.c:164:2: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
        GUARD_PATHSPEC(pathspec,
        ^
/datasets/git/./pathspec.h:60:21: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                                  ^~~~~~~
/datasets/git/dir.c:165:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_FROMTOP |
                       ^
/datasets/git/./pathspec.h:7:26: note: expanded from macro 'PATHSPEC_FROMTOP'
#define PATHSPEC_FROMTOP        (1<<0)
                                ^
/datasets/git/./pathspec.h:60:23: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                                    ^~~~
/datasets/git/dir.c:166:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_MAXDEPTH |
                       ^
/datasets/git/./pathspec.h:8:28: note: expanded from macro 'PATHSPEC_MAXDEPTH'
#define PATHSPEC_MAXDEPTH       (1<<1)
                                 ^
/datasets/git/./pathspec.h:60:23: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                                    ^~~~
/datasets/git/dir.c:167:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_LITERAL |
                       ^
/datasets/git/./pathspec.h:9:27: note: expanded from macro 'PATHSPEC_LITERAL'
#define PATHSPEC_LITERAL        (1<<2)
                                 ^
/datasets/git/./pathspec.h:60:23: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                                    ^~~~
/datasets/git/dir.c:168:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_GLOB |
                       ^
/datasets/git/./pathspec.h:10:25: note: expanded from macro 'PATHSPEC_GLOB'
#define PATHSPEC_GLOB           (1<<3)
                                 ^
/datasets/git/./pathspec.h:60:23: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                                    ^~~~
/datasets/git/dir.c:169:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_ICASE |
                       ^
/datasets/git/./pathspec.h:11:26: note: expanded from macro 'PATHSPEC_ICASE'
#define PATHSPEC_ICASE          (1<<4)
                                 ^
/datasets/git/./pathspec.h:60:23: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                                    ^~~~
/datasets/git/dir.c:170:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_EXCLUDE |
                       ^
/datasets/git/./pathspec.h:12:27: note: expanded from macro 'PATHSPEC_EXCLUDE'
#define PATHSPEC_EXCLUDE        (1<<5)
                                 ^
/datasets/git/./pathspec.h:60:23: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                                    ^~~~
/datasets/git/dir.c:171:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_ATTR);
                       ^
/datasets/git/./pathspec.h:13:25: note: expanded from macro 'PATHSPEC_ATTR'
#define PATHSPEC_ATTR           (1<<6)
                                 ^
/datasets/git/./pathspec.h:60:23: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                                    ^~~~
/datasets/git/dir.c:174:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                size_t i = 0, len = 0, item_len;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:174:10: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
                size_t i = 0, len = 0, item_len;
                       ^
/datasets/git/dir.c:174:26: warning: variable 'item_len' is not initialized [cppcoreguidelines-init-variables]
                size_t i = 0, len = 0, item_len;
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/dir.c:175:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (pathspec->items[n].magic & PATHSPEC_EXCLUDE)
                    ^
/datasets/git/dir.c:175:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (pathspec->items[n].magic & PATHSPEC_EXCLUDE)
                                               ^
/datasets/git/./pathspec.h:12:27: note: expanded from macro 'PATHSPEC_EXCLUDE'
#define PATHSPEC_EXCLUDE        (1<<5)
                                 ^
/datasets/git/dir.c:175:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pathspec->items[n].magic & PATHSPEC_EXCLUDE)
                                                                ^
                                                                 {
/datasets/git/dir.c:177:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (pathspec->items[n].magic & PATHSPEC_ICASE)
                    ^
/datasets/git/dir.c:177:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (pathspec->items[n].magic & PATHSPEC_ICASE)
                                               ^
/datasets/git/./pathspec.h:11:26: note: expanded from macro 'PATHSPEC_ICASE'
#define PATHSPEC_ICASE          (1<<4)
                                 ^
/datasets/git/dir.c:177:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pathspec->items[n].magic & PATHSPEC_ICASE)
                                                              ^
                                                               {
/datasets/git/dir.c:179:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/dir.c:181:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (i < item_len && (n == 0 || i < max)) {
                ^
/datasets/git/dir.c:181:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'item_len' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (i < item_len && (n == 0 || i < max)) {
                       ^
/datasets/git/dir.c:182:9: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                        char c = pathspec->items[n].match[i];
                             ^
/datasets/git/dir.c:183:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (c != pathspec->items[0].match[i])
                                                             ^
                                                              {
/datasets/git/dir.c:185:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (c == '/')
                                     ^
                                      {
/datasets/git/dir.c:191:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!max)
                                 ^
                                  {
/datasets/git/dir.c:213:14: warning: variable 'prefix' is not initialized [cppcoreguidelines-init-variables]
        const char *prefix;
                    ^
                           = NULL
/datasets/git/dir.c:214:9: warning: variable 'prefix_len' is not initialized [cppcoreguidelines-init-variables]
        size_t prefix_len;
               ^
                          = 0
/datasets/git/dir.c:216:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned exclusive_flags = DIR_SHOW_IGNORED | DIR_SHOW_IGNORED_TOO;
                                   ^~~~~~~~~~~~~~~~
/datasets/git/dir.c:217:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((dir->flags & exclusive_flags) == exclusive_flags)
                                                              ^
                                                               {
/datasets/git/dir.c:228:38: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        read_directory(dir, istate, prefix, prefix_len, pathspec);
                                            ^
/datasets/git/dir.c:230:9: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return prefix_len;
               ^
/datasets/git/dir.c:233:36: warning: 2 adjacent parameters of 'within_depth' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
int within_depth(const char *name, int namelen,
                                   ^~~~~~~~~~~~
/datasets/git/dir.c:233:40: note: the first parameter in the range is 'namelen'
int within_depth(const char *name, int namelen,
                                       ^~~~~~~
/datasets/git/dir.c:234:8: note: the last parameter in the range is 'depth'
                        int depth, int max_depth)
                            ^~~~~
/datasets/git/dir.c:236:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *cp = name, *cpe = name + namelen;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:236:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/dir.c:236:14: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
        const char *cp = name, *cpe = name + namelen;
                    ^
/datasets/git/dir.c:238:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (cp < cpe) {
        ^
/datasets/git/dir.c:238:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'cp' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (cp < cpe) {
               ^
/datasets/git/dir.c:239:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*cp++ != '/')
                                 ^
                                  {
/datasets/git/dir.c:242:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (depth > max_depth)
                                      ^
                                       {
/datasets/git/dir.c:263:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/dir.c:264:16: warning: variable 'sz' is not initialized [cppcoreguidelines-init-variables]
        unsigned long sz;
                      ^
                         = 0
/datasets/git/dir.c:264:16: warning: variable name 'sz' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/dir.c:265:8: warning: variable 'data' is not initialized [cppcoreguidelines-init-variables]
        char *data;
              ^
                   = NULL
/datasets/git/dir.c:277:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(&oid_stat->stat, 0, sizeof(oid_stat->stat));
                ^~~~~~
/datasets/git/dir.c:277:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(&oid_stat->stat, 0, sizeof(oid_stat->stat));
                ^~~~~~
/datasets/git/dir.c:291:22: warning: narrowing conversion from 'unsigned long' to signed type 'off_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        *size_out = xsize_t(sz);
                            ^
/datasets/git/dir.c:297:1: warning: replace macro with enum [modernize-macro-to-enum]
#define DO_MATCH_EXCLUDE   (1<<0)
^~~~~~~~
                         =       ,
/datasets/git/dir.c:297:9: warning: macro 'DO_MATCH_EXCLUDE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define DO_MATCH_EXCLUDE   (1<<0)
        ^
/datasets/git/dir.c:298:9: warning: macro 'DO_MATCH_DIRECTORY' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define DO_MATCH_DIRECTORY (1<<1)
        ^
/datasets/git/dir.c:299:9: warning: macro 'DO_MATCH_LEADING_PATHSPEC' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define DO_MATCH_LEADING_PATHSPEC (1<<2)
        ^
/datasets/git/dir.c:324:12: warning: function 'match_pathspec_item' has cognitive complexity of 28 (threshold 25) [readability-function-cognitive-complexity]
static int match_pathspec_item(struct index_state *istate,
           ^
/datasets/git/dir.c:361:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (item->prefix && (item->magic & PATHSPEC_ICASE) &&
        ^
/datasets/git/dir.c:361:53: note: +1
        if (item->prefix && (item->magic & PATHSPEC_ICASE) &&
                                                           ^
/datasets/git/dir.c:365:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (item->attr_match_nr &&
        ^
/datasets/git/dir.c:365:26: note: +1
        if (item->attr_match_nr &&
                                ^
/datasets/git/dir.c:370:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!*match)
        ^
/datasets/git/dir.c:373:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (matchlen <= namelen && !ps_strncmp(item, match, name, matchlen)) {
        ^
/datasets/git/dir.c:373:26: note: +1
        if (matchlen <= namelen && !ps_strncmp(item, match, name, matchlen)) {
                                ^
/datasets/git/dir.c:374:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (matchlen == namelen)
                ^
/datasets/git/dir.c:377:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (match[matchlen-1] == '/' || name[matchlen] == '/')
                ^
/datasets/git/dir.c:377:32: note: +1
                if (match[matchlen-1] == '/' || name[matchlen] == '/')
                                             ^
/datasets/git/dir.c:379:9: note: +1, nesting level increased to 1
        } else if ((flags & DO_MATCH_DIRECTORY) &&
               ^
/datasets/git/dir.c:381:30: note: +1
                   namelen == matchlen - 1 &&
                                           ^
/datasets/git/dir.c:385:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (item->nowildcard_len < item->len &&
        ^
/datasets/git/dir.c:385:39: note: +1
        if (item->nowildcard_len < item->len &&
                                             ^
/datasets/git/dir.c:391:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ( (flags & DO_MATCH_LEADING_PATHSPEC) &&
        ^
/datasets/git/dir.c:391:43: note: +1
        if ( (flags & DO_MATCH_LEADING_PATHSPEC) &&
                                                 ^
/datasets/git/dir.c:394:39: note: +2, including nesting penalty of 1, nesting level increased to 2
                int offset = name[namelen-1] == '/' ? 1 : 0;
                                                    ^
/datasets/git/dir.c:395:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((namelen < matchlen) &&
                ^
/datasets/git/dir.c:396:38: note: +1
                    (match[namelen-offset] == '/') &&
                                                   ^
/datasets/git/dir.c:401:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (item->nowildcard_len < item->len &&
                ^
/datasets/git/dir.c:401:40: note: +1
                if (item->nowildcard_len < item->len &&
                                                     ^
/datasets/git/dir.c:410:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (item->nowildcard_len == item->len)
                ^
/datasets/git/dir.c:361:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (item->prefix && (item->magic & PATHSPEC_ICASE) &&
                             ^
/datasets/git/dir.c:361:37: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (item->prefix && (item->magic & PATHSPEC_ICASE) &&
                                           ^
/datasets/git/./pathspec.h:11:26: note: expanded from macro 'PATHSPEC_ICASE'
#define PATHSPEC_ICASE          (1<<4)
                                 ^
/datasets/git/dir.c:362:6: warning: function 'strncmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
            strncmp(item->match, name - prefix, item->prefix))
            ^
                                                              != 0
/datasets/git/dir.c:362:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            strncmp(item->match, name - prefix, item->prefix))
                                                              ^
                                                               {
/datasets/git/dir.c:366:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !match_pathspec_attrs(istate, name, namelen, item))
                                                               ^
                                                                {
/datasets/git/dir.c:370:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!*match)
                    ^
                     {
/datasets/git/dir.c:374:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (matchlen == namelen)
                                        ^
                                         {
/datasets/git/dir.c:377:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (match[matchlen-1] == '/' || name[matchlen] == '/')
                                                                      ^
                                                                       {
/datasets/git/dir.c:379:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        } else if ((flags & DO_MATCH_DIRECTORY) &&
                    ^
/datasets/git/dir.c:379:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        } else if ((flags & DO_MATCH_DIRECTORY) &&
                            ^
/datasets/git/dir.c:298:29: note: expanded from macro 'DO_MATCH_DIRECTORY'
#define DO_MATCH_DIRECTORY (1<<1)
                            ^
/datasets/git/dir.c:382:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                   !ps_strncmp(item, match, name, namelen))
                                                           ^
                                                            {
/datasets/git/dir.c:387:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                         item->nowildcard_len - prefix))
                                                        ^
                                                         {
/datasets/git/dir.c:391:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ( (flags & DO_MATCH_LEADING_PATHSPEC) &&
              ^
/datasets/git/dir.c:391:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ( (flags & DO_MATCH_LEADING_PATHSPEC) &&
                      ^
/datasets/git/dir.c:299:36: note: expanded from macro 'DO_MATCH_LEADING_PATHSPEC'
#define DO_MATCH_LEADING_PATHSPEC (1<<2)
                                   ^
/datasets/git/dir.c:392:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            !(flags & DO_MATCH_EXCLUDE)) {
              ^
/datasets/git/dir.c:392:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            !(flags & DO_MATCH_EXCLUDE)) {
                      ^
/datasets/git/dir.c:297:29: note: expanded from macro 'DO_MATCH_EXCLUDE'
#define DO_MATCH_EXCLUDE   (1<<0)
                            ^
/datasets/git/dir.c:397:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !ps_strncmp(item, match, name, namelen))
                                                            ^
                                                             {
/datasets/git/dir.c:403:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                               item->nowildcard_len - prefix))
                                                              ^
                                                               {
/datasets/git/dir.c:410:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (item->nowildcard_len == item->len)
                                                      ^
                                                       {
/datasets/git/dir.c:447:12: warning: function 'do_match_pathspec' has cognitive complexity of 41 (threshold 25) [readability-function-cognitive-complexity]
static int do_match_pathspec(struct index_state *istate,
           ^
/datasets/git/dir.c:455:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        GUARD_PATHSPEC(ps,
        ^
/datasets/git/./pathspec.h:59:2: note: expanded from macro 'GUARD_PATHSPEC'
        do { \
        ^
/datasets/git/dir.c:455:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        GUARD_PATHSPEC(ps,
        ^
/datasets/git/./pathspec.h:60:3: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                ^
/datasets/git/dir.c:464:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!ps->nr) {
        ^
/datasets/git/dir.c:465:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!ps->recursive ||
                ^
/datasets/git/dir.c:466:40: note: +1
                    !(ps->magic & PATHSPEC_MAXDEPTH) ||
                                                     ^
/datasets/git/dir.c:470:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (within_depth(name, namelen, 0, ps->max_depth))
                ^
/datasets/git/dir.c:472:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/dir.c:479:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = ps->nr - 1; i >= 0; i--) {
        ^
/datasets/git/dir.c:482:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((!exclude &&   ps->items[i].magic & PATHSPEC_EXCLUDE) ||
                ^
/datasets/git/dir.c:482:61: note: +1
                if ((!exclude &&   ps->items[i].magic & PATHSPEC_EXCLUDE) ||
                                                                          ^
/datasets/git/dir.c:482:17: note: +1
                if ((!exclude &&   ps->items[i].magic & PATHSPEC_EXCLUDE) ||
                              ^
/datasets/git/dir.c:483:17: note: +1
                    ( exclude && !(ps->items[i].magic & PATHSPEC_EXCLUDE)))
                              ^
/datasets/git/dir.c:486:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (seen && seen[i] == MATCHED_EXACTLY)
                ^
/datasets/git/dir.c:486:12: note: +1
                if (seen && seen[i] == MATCHED_EXACTLY)
                         ^
/datasets/git/dir.c:492:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (seen && ps->items[i].magic & PATHSPEC_EXCLUDE)
                ^
/datasets/git/dir.c:492:12: note: +1
                if (seen && ps->items[i].magic & PATHSPEC_EXCLUDE)
                         ^
/datasets/git/dir.c:496:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ps->recursive &&
                ^
/datasets/git/dir.c:499:11: note: +1
                    how && how != MATCHED_FNMATCH) {
                        ^
/datasets/git/dir.c:501:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (name[len] == '/')
                        ^
/datasets/git/dir.c:503:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (within_depth(name+len, namelen-len, 0, ps->max_depth))
                        ^
/datasets/git/dir.c:505:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/dir.c:508:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (how) {
                ^
/datasets/git/dir.c:509:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (retval < how)
                        ^
/datasets/git/dir.c:511:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (seen && seen[i] < how)
                        ^
/datasets/git/dir.c:511:13: note: +1
                        if (seen && seen[i] < how)
                                 ^
/datasets/git/dir.c:448:32: warning: parameter name 'ps' is too short, expected at least 3 characters [readability-identifier-length]
                             const struct pathspec *ps,
                                                    ^
/datasets/git/dir.c:453:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, retval = 0, exclude = flags & DO_MATCH_EXCLUDE;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:453:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, retval = 0, exclude = flags & DO_MATCH_EXCLUDE;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/dir.c:453:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/dir.c:453:31: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int i, retval = 0, exclude = flags & DO_MATCH_EXCLUDE;
                                     ^
/datasets/git/dir.c:453:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
/datasets/git/dir.c:453:39: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int i, retval = 0, exclude = flags & DO_MATCH_EXCLUDE;
                                             ^
/datasets/git/dir.c:297:29: note: expanded from macro 'DO_MATCH_EXCLUDE'
#define DO_MATCH_EXCLUDE   (1<<0)
                            ^
/datasets/git/dir.c:455:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        GUARD_PATHSPEC(ps,
        ^
/datasets/git/./pathspec.h:59:2: note: expanded from macro 'GUARD_PATHSPEC'
        do { \
        ^
/datasets/git/dir.c:453:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int i, retval = 0, exclude = flags & DO_MATCH_EXCLUDE;
        ^
/datasets/git/dir.c:455:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        GUARD_PATHSPEC(ps,
        ^
/datasets/git/./pathspec.h:60:7: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                    ^             ~~~~~~~
/datasets/git/dir.c:455:2: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
        GUARD_PATHSPEC(ps,
        ^
/datasets/git/./pathspec.h:60:21: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                                  ^~~~~~~
/datasets/git/dir.c:456:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_FROMTOP |
                       ^
/datasets/git/./pathspec.h:7:26: note: expanded from macro 'PATHSPEC_FROMTOP'
#define PATHSPEC_FROMTOP        (1<<0)
                                ^
/datasets/git/./pathspec.h:60:23: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                                    ^~~~
/datasets/git/dir.c:457:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_MAXDEPTH |
                       ^
/datasets/git/./pathspec.h:8:28: note: expanded from macro 'PATHSPEC_MAXDEPTH'
#define PATHSPEC_MAXDEPTH       (1<<1)
                                 ^
/datasets/git/./pathspec.h:60:23: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                                    ^~~~
/datasets/git/dir.c:458:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_LITERAL |
                       ^
/datasets/git/./pathspec.h:9:27: note: expanded from macro 'PATHSPEC_LITERAL'
#define PATHSPEC_LITERAL        (1<<2)
                                 ^
/datasets/git/./pathspec.h:60:23: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                                    ^~~~
/datasets/git/dir.c:459:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_GLOB |
                       ^
/datasets/git/./pathspec.h:10:25: note: expanded from macro 'PATHSPEC_GLOB'
#define PATHSPEC_GLOB           (1<<3)
                                 ^
/datasets/git/./pathspec.h:60:23: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                                    ^~~~
/datasets/git/dir.c:460:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_ICASE |
                       ^
/datasets/git/./pathspec.h:11:26: note: expanded from macro 'PATHSPEC_ICASE'
#define PATHSPEC_ICASE          (1<<4)
                                 ^
/datasets/git/./pathspec.h:60:23: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                                    ^~~~
/datasets/git/dir.c:461:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_EXCLUDE |
                       ^
/datasets/git/./pathspec.h:12:27: note: expanded from macro 'PATHSPEC_EXCLUDE'
#define PATHSPEC_EXCLUDE        (1<<5)
                                 ^
/datasets/git/./pathspec.h:60:23: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                                    ^~~~
/datasets/git/dir.c:462:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_ATTR);
                       ^
/datasets/git/./pathspec.h:13:25: note: expanded from macro 'PATHSPEC_ATTR'
#define PATHSPEC_ATTR           (1<<6)
                                 ^
/datasets/git/./pathspec.h:60:23: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                                    ^~~~
/datasets/git/dir.c:466:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    !(ps->magic & PATHSPEC_MAXDEPTH) ||
                      ^
/datasets/git/dir.c:466:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    !(ps->magic & PATHSPEC_MAXDEPTH) ||
                                  ^
/datasets/git/./pathspec.h:8:28: note: expanded from macro 'PATHSPEC_MAXDEPTH'
#define PATHSPEC_MAXDEPTH       (1<<1)
                                 ^
/datasets/git/dir.c:467:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    ps->max_depth == -1)
                                        ^
                                         {
/datasets/git/dir.c:470:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (within_depth(name, namelen, 0, ps->max_depth))
                                                                  ^
                                                                   {
/datasets/git/dir.c:472:3: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                else
                ^~~~
                                        return 0
/datasets/git/dir.c:472:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/dir.c:479:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = ps->nr - 1; i >= 0; i--) {
        ^
/datasets/git/dir.c:479:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = ps->nr - 1; i >= 0; i--) {
                             ^
/datasets/git/dir.c:480:7: warning: variable 'how' is not initialized [cppcoreguidelines-init-variables]
                int how;
                    ^
                        = 0
/datasets/git/dir.c:482:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((!exclude &&   ps->items[i].magic & PATHSPEC_EXCLUDE) ||
                                   ^
/datasets/git/dir.c:482:43: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((!exclude &&   ps->items[i].magic & PATHSPEC_EXCLUDE) ||
                                                        ^
/datasets/git/./pathspec.h:12:27: note: expanded from macro 'PATHSPEC_EXCLUDE'
#define PATHSPEC_EXCLUDE        (1<<5)
                                 ^
/datasets/git/dir.c:483:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    ( exclude && !(ps->items[i].magic & PATHSPEC_EXCLUDE)))
                                   ^
/datasets/git/dir.c:483:43: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    ( exclude && !(ps->items[i].magic & PATHSPEC_EXCLUDE)))
                                                        ^
/datasets/git/./pathspec.h:12:27: note: expanded from macro 'PATHSPEC_EXCLUDE'
#define PATHSPEC_EXCLUDE        (1<<5)
                                 ^
/datasets/git/dir.c:483:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    ( exclude && !(ps->items[i].magic & PATHSPEC_EXCLUDE)))
                                                                           ^
                                                                            {
/datasets/git/dir.c:486:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (seen && seen[i] == MATCHED_EXACTLY)
                                                       ^
                                                        {
/datasets/git/dir.c:492:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (seen && ps->items[i].magic & PATHSPEC_EXCLUDE)
                            ^
/datasets/git/dir.c:492:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (seen && ps->items[i].magic & PATHSPEC_EXCLUDE)
                                                 ^
/datasets/git/./pathspec.h:12:27: note: expanded from macro 'PATHSPEC_EXCLUDE'
#define PATHSPEC_EXCLUDE        (1<<5)
                                 ^
/datasets/git/dir.c:492:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (seen && ps->items[i].magic & PATHSPEC_EXCLUDE)
                                                                  ^
                                                                   {
/datasets/git/dir.c:497:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (ps->magic & PATHSPEC_MAXDEPTH) &&
                     ^
/datasets/git/dir.c:497:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (ps->magic & PATHSPEC_MAXDEPTH) &&
                                 ^
/datasets/git/./pathspec.h:8:28: note: expanded from macro 'PATHSPEC_MAXDEPTH'
#define PATHSPEC_MAXDEPTH       (1<<1)
                                 ^
/datasets/git/dir.c:501:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (name[len] == '/')
                                             ^
                                              {
/datasets/git/dir.c:503:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (within_depth(name+len, namelen-len, 0, ps->max_depth))
                                                                                  ^
                                                                                   {
/datasets/git/dir.c:505:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/dir.c:509:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (retval < how)
                                         ^
                                          {
/datasets/git/dir.c:511:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (seen && seen[i] < how)
                                                  ^
                                                   {
/datasets/git/dir.c:512:15: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                seen[i] = how;
                                          ^
/datasets/git/dir.c:519:33: warning: parameter name 'ps' is too short, expected at least 3 characters [readability-identifier-length]
                                     const struct pathspec *ps,
                                                            ^
/datasets/git/dir.c:523:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int positive, negative;
        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:523:6: warning: variable 'positive' is not initialized [cppcoreguidelines-init-variables]
        int positive, negative;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/dir.c:523:16: warning: variable 'negative' is not initialized [cppcoreguidelines-init-variables]
        int positive, negative;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/dir.c:526:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(ps->magic & PATHSPEC_EXCLUDE) || !positive)
              ^
/datasets/git/dir.c:526:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(ps->magic & PATHSPEC_EXCLUDE) || !positive)
                          ^
/datasets/git/./pathspec.h:12:27: note: expanded from macro 'PATHSPEC_EXCLUDE'
#define PATHSPEC_EXCLUDE        (1<<5)
                                 ^
/datasets/git/dir.c:526:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(ps->magic & PATHSPEC_EXCLUDE) || !positive)
                                                         ^
                                                          {
/datasets/git/dir.c:530:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                     flags | DO_MATCH_EXCLUDE);
                                     ^
/datasets/git/dir.c:530:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                     flags | DO_MATCH_EXCLUDE);
                                             ^
/datasets/git/dir.c:297:29: note: expanded from macro 'DO_MATCH_EXCLUDE'
#define DO_MATCH_EXCLUDE   (1<<0)
                            ^
/datasets/git/dir.c:535:29: warning: parameter name 'ps' is too short, expected at least 3 characters [readability-identifier-length]
                   const struct pathspec *ps,
                                          ^
/datasets/git/dir.c:539:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned flags = is_dir ? DO_MATCH_DIRECTORY : 0;
                                  ^
/datasets/git/dir.c:298:29: note: expanded from macro 'DO_MATCH_DIRECTORY'
#define DO_MATCH_DIRECTORY (1<<1)
                            ^
/datasets/git/dir.c:548:28: warning: parameter name 'ps' is too short, expected at least 3 characters [readability-identifier-length]
                         const struct pathspec *ps,
                                                ^
/datasets/git/dir.c:553:7: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                                strlen(submodule_name),
                                                ^
/datasets/git/dir.c:555:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                                DO_MATCH_DIRECTORY |
                                                ^
/datasets/git/dir.c:298:28: note: expanded from macro 'DO_MATCH_DIRECTORY'
#define DO_MATCH_DIRECTORY (1<<1)
                           ^~~~~~
/datasets/git/dir.c:556:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                                DO_MATCH_LEADING_PATHSPEC);
                                                ^
/datasets/git/dir.c:299:36: note: expanded from macro 'DO_MATCH_LEADING_PATHSPEC'
#define DO_MATCH_LEADING_PATHSPEC (1<<2)
                                   ^
/datasets/git/dir.c:566:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int num, errors = 0;
        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:566:6: warning: variable 'num' is not initialized [cppcoreguidelines-init-variables]
        int num, errors = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/dir.c:568:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int other, found_dup;
                ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:568:7: warning: variable 'other' is not initialized [cppcoreguidelines-init-variables]
                int other, found_dup;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/dir.c:568:14: warning: variable 'found_dup' is not initialized [cppcoreguidelines-init-variables]
                int other, found_dup;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/dir.c:570:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ps_matched[num])
                                    ^
                                     {
/datasets/git/dir.c:578:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (found_dup = other = 0;
                ^
/datasets/git/dir.c:579:8: warning: backward branch (for loop) is ID-dependent due to variable reference to 'found_dup' and may cause performance degradation [altera-id-dependent-backward-branch]
                     !found_dup && other < pathspec->nr;
                     ^
/datasets/git/dir.c:581:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (other == num || !ps_matched[other])
                                                               ^
                                                                {
/datasets/git/dir.c:584:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                    pathspec->items[num].original))
                                                                   ^
                                                                    {
/datasets/git/dir.c:590:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (found_dup)
                              ^
                               {
/datasets/git/dir.c:607:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/dir.c:608:17: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                unsigned char c = *match++;
                              ^
/datasets/git/dir.c:610:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (c == '\0' || is_glob_special(c))
                                 ^
/datasets/git/./git-compat-util.h:1224:28: note: expanded from macro 'is_glob_special'
#define is_glob_special(x) sane_istest(x,GIT_GLOB_SPECIAL)
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/dir.c:610:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (c == '\0' || is_glob_special(c))
                                                    ^
                                                     {
/datasets/git/dir.c:625:14: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        const char *p = *pattern;
                    ^
/datasets/git/dir.c:626:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t i, len;
        ^~~~~~~~~~~~~~
/datasets/git/dir.c:626:2: note: inferred assignment of ID-dependent value from ID-dependent variable p [altera-id-dependent-backward-branch]
/datasets/git/dir.c:626:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i, len;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/dir.c:626:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/dir.c:626:12: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        size_t i, len;
                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/dir.c:630:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                *flags |= PATTERN_FLAG_NEGATIVE;
                ^
/datasets/git/dir.c:636:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                *flags |= PATTERN_FLAG_MUSTBEDIR;
                ^
/datasets/git/dir.c:638:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < len; i++) {
        ^
/datasets/git/dir.c:638:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < len; i++) {
                    ^
/datasets/git/dir.c:639:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (p[i] == '/')
                                ^
                                 {
/datasets/git/dir.c:642:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (i == len)
                     ^
                      {
/datasets/git/dir.c:643:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                *flags |= PATTERN_FLAG_NODIR;
                ^
/datasets/git/dir.c:650:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*nowildcardlen > len)
                                 ^
                                  {
/datasets/git/dir.c:651:20: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                *nowildcardlen = len;
                                 ^
/datasets/git/dir.c:652:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*p == '*' && no_wildcard(p + 1))
                                            ^
                                             {
/datasets/git/dir.c:653:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                *flags |= PATTERN_FLAG_ENDSWITH;
                ^
/datasets/git/dir.c:655:16: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        *patternlen = len;
                      ^
/datasets/git/dir.c:659:6: warning: 2 adjacent parameters of 'pl_hashmap_cmp' of similar type ('const struct hashmap_entry *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                   const struct hashmap_entry *a,
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:659:34: note: the first parameter in the range is 'a'
                   const struct hashmap_entry *a,
                                               ^
/datasets/git/dir.c:660:34: note: the last parameter in the range is 'b'
                   const struct hashmap_entry *b,
                                               ^
/datasets/git/dir.c:659:34: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
                   const struct hashmap_entry *a,
                                               ^
/datasets/git/dir.c:660:34: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
                   const struct hashmap_entry *b,
                                               ^
/datasets/git/dir.c:677:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *set, *read;
        ^~~~~~~~~~~~~~~~~
/datasets/git/dir.c:677:2: note: inferred assignment of ID-dependent value from ID-dependent variable result [altera-id-dependent-backward-branch]
/datasets/git/dir.c:677:8: warning: variable 'set' is not initialized [cppcoreguidelines-init-variables]
        char *set, *read;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/dir.c:677:14: warning: variable 'read' is not initialized [cppcoreguidelines-init-variables]
        char *set, *read;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/dir.c:684:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*read) {
        ^
/datasets/git/dir.c:684:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'read' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (*read) {
               ^
/datasets/git/dir.c:686:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*read == '\\')
                                  ^
                                   {
/datasets/git/dir.c:699:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            *(set - 2) == '/')
                              ^
                               {
/datasets/git/dir.c:705:13: warning: function 'add_pattern_to_hashsets' has cognitive complexity of 32 (threshold 25) [readability-function-cognitive-complexity]
static void add_pattern_to_hashsets(struct pattern_list *pl, struct path_pattern *given)
            ^
/datasets/git/dir.c:712:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!pl->use_cone_patterns)
        ^
/datasets/git/dir.c:715:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (given->flags & PATTERN_FLAG_NEGATIVE &&
        ^
/datasets/git/dir.c:716:44: note: +1
            given->flags & PATTERN_FLAG_MUSTBEDIR &&
                                                  ^
/datasets/git/dir.c:722:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!given->flags && !strcmp(given->pattern, "/*")) {
        ^
/datasets/git/dir.c:722:20: note: +1
        if (!given->flags && !strcmp(given->pattern, "/*")) {
                          ^
/datasets/git/dir.c:727:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (given->patternlen < 2 ||
        ^
/datasets/git/dir.c:728:29: note: +1
            *given->pattern != '/' ||
                                   ^
/datasets/git/dir.c:732:3: note: +1
                goto clear_hashmaps;
                ^
/datasets/git/dir.c:739:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (*cur) {
        ^
/datasets/git/dir.c:741:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!is_glob_special(*cur))
                ^
/datasets/git/dir.c:745:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*prev == '\\')
                ^
/datasets/git/dir.c:749:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*cur == '\\' &&
                ^
/datasets/git/dir.c:749:20: note: +1
                if (*cur == '\\' &&
                                 ^
/datasets/git/dir.c:754:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*prev == '/' &&
                ^
/datasets/git/dir.c:755:19: note: +1
                    *cur == '*' &&
                                ^
/datasets/git/dir.c:761:3: note: +1
                goto clear_hashmaps;
                ^
/datasets/git/dir.c:769:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (given->patternlen > 2 &&
        ^
/datasets/git/dir.c:769:28: note: +1
        if (given->patternlen > 2 &&
                                  ^
/datasets/git/dir.c:771:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!(given->flags & PATTERN_FLAG_NEGATIVE)) {
                ^
/datasets/git/dir.c:774:4: note: +1
                        goto clear_hashmaps;
                        ^
/datasets/git/dir.c:785:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!hashmap_get_entry(&pl->recursive_hashmap,
                ^
/datasets/git/dir.c:792:4: note: +1
                        goto clear_hashmaps;
                        ^
/datasets/git/dir.c:801:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (given->flags & PATTERN_FLAG_NEGATIVE) {
        ^
/datasets/git/dir.c:804:3: note: +1
                goto clear_hashmaps;
                ^
/datasets/git/dir.c:816:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (hashmap_get_entry(&pl->parent_hashmap, translated, ent, NULL)) {
        ^
/datasets/git/dir.c:820:3: note: +1
                goto clear_hashmaps;
                ^
/datasets/git/dir.c:705:58: warning: parameter name 'pl' is too short, expected at least 3 characters [readability-identifier-length]
static void add_pattern_to_hashsets(struct pattern_list *pl, struct path_pattern *given)
                                                         ^
/datasets/git/dir.c:707:24: warning: variable 'translated' is not initialized [cppcoreguidelines-init-variables]
        struct pattern_entry *translated;
                              ^
                                         = NULL
/datasets/git/dir.c:708:8: warning: variable 'truncated' is not initialized [cppcoreguidelines-init-variables]
        char *truncated;
              ^
                        = NULL
/datasets/git/dir.c:710:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *prev, *cur, *next;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:710:14: warning: variable 'prev' is not initialized [cppcoreguidelines-init-variables]
        const char *prev, *cur, *next;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/dir.c:710:21: warning: variable 'cur' is not initialized [cppcoreguidelines-init-variables]
        const char *prev, *cur, *next;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/dir.c:710:27: warning: variable 'next' is not initialized [cppcoreguidelines-init-variables]
        const char *prev, *cur, *next;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/dir.c:712:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!pl->use_cone_patterns)
                                   ^
                                    {
/datasets/git/dir.c:715:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (given->flags & PATTERN_FLAG_NEGATIVE &&
            ^
/datasets/git/dir.c:716:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            given->flags & PATTERN_FLAG_MUSTBEDIR &&
            ^
/datasets/git/dir.c:739:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*cur) {
        ^
/datasets/git/dir.c:739:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'cur' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (*cur) {
               ^
/datasets/git/dir.c:741:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!is_glob_special(*cur))
                     ^
/datasets/git/./git-compat-util.h:1224:28: note: expanded from macro 'is_glob_special'
#define is_glob_special(x) sane_istest(x,GIT_GLOB_SPECIAL)
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/dir.c:741:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!is_glob_special(*cur))
                                           ^
                                            {
/datasets/git/dir.c:745:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*prev == '\\')
                                  ^
                                   {
/datasets/git/dir.c:750:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    is_glob_special(*next))
                    ^
/datasets/git/./git-compat-util.h:1224:28: note: expanded from macro 'is_glob_special'
#define is_glob_special(x) sane_istest(x,GIT_GLOB_SPECIAL)
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/dir.c:750:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    is_glob_special(*next))
                                           ^
                                            {
/datasets/git/dir.c:756:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    *next == 0)
                               ^
                                {
/datasets/git/dir.c:771:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(given->flags & PATTERN_FLAG_NEGATIVE)) {
                      ^
/datasets/git/dir.c:801:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (given->flags & PATTERN_FLAG_NEGATIVE) {
            ^
/datasets/git/dir.c:835:23: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        struct pattern_entry p;
                             ^
/datasets/git/dir.c:848:8: warning: variable 'slash_pos' is not initialized [cppcoreguidelines-init-variables]
        char *slash_pos;
              ^
                        = NULL
/datasets/git/dir.c:852:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (path[0] != '/')
                           ^
                            {
/datasets/git/dir.c:859:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (slash_pos > buffer->buf) {
        ^
/datasets/git/dir.c:859:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'slash_pos' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (slash_pos > buffer->buf) {
               ^
/datasets/git/dir.c:862:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (hashmap_contains_path(map, buffer))
                                                       ^
                                                        {
/datasets/git/dir.c:871:18: warning: 2 adjacent parameters of 'add_pattern' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
void add_pattern(const char *string, const char *base,
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:871:30: note: the first parameter in the range is 'string'
void add_pattern(const char *string, const char *base,
                             ^~~~~~
/datasets/git/dir.c:871:50: note: the last parameter in the range is 'base'
void add_pattern(const char *string, const char *base,
                                                 ^~~~
/datasets/git/dir.c:872:38: warning: parameter name 'pl' is too short, expected at least 3 characters [readability-identifier-length]
                 int baselen, struct pattern_list *pl, int srcpos)
                                                   ^
/datasets/git/dir.c:874:23: warning: variable 'pattern' is not initialized [cppcoreguidelines-init-variables]
        struct path_pattern *pattern;
                             ^
                                     = NULL
/datasets/git/dir.c:875:6: warning: variable 'patternlen' is not initialized [cppcoreguidelines-init-variables]
        int patternlen;
            ^
                       = 0
/datasets/git/dir.c:876:11: warning: variable 'flags' is not initialized [cppcoreguidelines-init-variables]
        unsigned flags;
                 ^
                       = 0
/datasets/git/dir.c:877:6: warning: variable 'nowildcardlen' is not initialized [cppcoreguidelines-init-variables]
        int nowildcardlen;
            ^
                          = 0
/datasets/git/dir.c:880:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & PATTERN_FLAG_MUSTBEDIR) {
            ^
/datasets/git/dir.c:881:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FLEXPTR_ALLOC_MEM(pattern, pattern, string, patternlen);
                ^
/datasets/git/./git-compat-util.h:1156:49: note: expanded from macro 'FLEXPTR_ALLOC_MEM'
#define FLEXPTR_ALLOC_MEM(x, ptrname, buf, len) do { \
                                                ^
/datasets/git/dir.c:881:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                FLEXPTR_ALLOC_MEM(pattern, pattern, string, patternlen);
                ^
/datasets/git/./git-compat-util.h:1159:2: note: expanded from macro 'FLEXPTR_ALLOC_MEM'
        memcpy((x) + 1, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/dir.c:881:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                FLEXPTR_ALLOC_MEM(pattern, pattern, string, patternlen);
                ^
/datasets/git/./git-compat-util.h:1159:2: note: expanded from macro 'FLEXPTR_ALLOC_MEM'
        memcpy((x) + 1, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/dir.c:892:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(pl->patterns, pl->nr + 1, pl->alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/dir.c:892:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_GROW(pl->patterns, pl->nr + 1, pl->alloc);
        ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/dir.c:904:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int pos, len;
        ^~~~~~~~~~~~~
/datasets/git/dir.c:904:6: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        int pos, len;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/dir.c:904:11: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int pos, len;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/dir.c:906:8: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        len = strlen(path);
              ^
/datasets/git/dir.c:908:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pos < 0)
                    ^
                     {
/datasets/git/dir.c:910:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!ce_skip_worktree(istate->cache[pos]))
             ^
/datasets/git/./refs/../cache.h:244:31: note: expanded from macro 'ce_skip_worktree'
#define ce_skip_worktree(ce) ((ce)->ce_flags & CE_SKIP_WORKTREE)
                              ^                ~~~~~~~~~~~~~~~~
/datasets/git/dir.c:910:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ce_skip_worktree(istate->cache[pos]))
                                                  ^
                                                   {
/datasets/git/dir.c:920:46: warning: parameter name 'pl' is too short, expected at least 3 characters [readability-identifier-length]
void clear_pattern_list(struct pattern_list *pl)
                                             ^
/datasets/git/dir.c:922:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/dir.c:922:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/dir.c:924:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < pl->nr; i++)
        ^
/datasets/git/dir.c:924:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < pl->nr; i++)
                                    ^
                                     {
/datasets/git/dir.c:931:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(pl, 0, sizeof(*pl));
        ^~~~~~
/datasets/git/dir.c:931:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(pl, 0, sizeof(*pl));
        ^~~~~~
/datasets/git/dir.c:936:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *p, *last_space = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:936:8: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        char *p, *last_space = NULL;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/dir.c:936:8: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/dir.c:938:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = buf; *p; p++)
        ^
/datasets/git/dir.c:938:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = buf; *p; p++)
                      ^
/datasets/git/dir.c:938:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (p = buf; *p; p++)
                              ^
                               {
/datasets/git/dir.c:941:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!last_space)
                                        ^
                                         {
/datasets/git/dir.c:946:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!*p)
                                ^
                                 {
/datasets/git/dir.c:953:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (last_space)
                       ^
                        {
/datasets/git/dir.c:964:77: warning: parameter name 'uc' is too short, expected at least 3 characters [readability-identifier-length]
static struct untracked_cache_dir *lookup_untracked(struct untracked_cache *uc,
                                                                            ^
/datasets/git/dir.c:968:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int first, last;
        ^~~~~~~~~~~~~~~~
/datasets/git/dir.c:968:6: warning: variable 'first' is not initialized [cppcoreguidelines-init-variables]
        int first, last;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/dir.c:968:13: warning: variable 'last' is not initialized [cppcoreguidelines-init-variables]
        int first, last;
                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/dir.c:969:30: warning: variable 'd' is not initialized [cppcoreguidelines-init-variables]
        struct untracked_cache_dir *d;
                                    ^
                                      = NULL
/datasets/git/dir.c:969:30: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/dir.c:970:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!dir)
                 ^
                  {
/datasets/git/dir.c:972:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len && name[len - 1] == '/')
                                        ^
                                         {
/datasets/git/dir.c:975:9: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        last = dir->dirs_nr;
               ^
/datasets/git/dir.c:976:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (last > first) {
        ^
/datasets/git/dir.c:976:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'last' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (last > first) {
               ^
/datasets/git/dir.c:977:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int cmp, next = first + ((last - first) >> 1);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:977:7: warning: variable 'cmp' is not initialized [cppcoreguidelines-init-variables]
                int cmp, next = first + ((last - first) >> 1);
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/dir.c:977:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                int cmp, next = first + ((last - first) >> 1);
                                         ^~~~~~~~~~~~~~
/datasets/git/dir.c:980:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!cmp && strlen(d->name) > len)
                                                  ^
                                                   {
/datasets/git/dir.c:982:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!cmp)
                         ^
                          {
/datasets/git/dir.c:992:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FLEX_ALLOC_MEM(d, name, name, len);
        ^
/datasets/git/./git-compat-util.h:1151:47: note: expanded from macro 'FLEX_ALLOC_MEM'
#define FLEX_ALLOC_MEM(x, flexname, buf, len) do { \
                                              ^
/datasets/git/dir.c:992:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        FLEX_ALLOC_MEM(d, name, name, len);
        ^
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/dir.c:992:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        FLEX_ALLOC_MEM(d, name, name, len);
        ^
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/dir.c:994:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(dir->dirs, dir->dirs_nr + 1, dir->dirs_alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/dir.c:994:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_GROW(dir->dirs, dir->dirs_nr + 1, dir->dirs_alloc);
        ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/dir.c:995:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        MOVE_ARRAY(dir->dirs + first + 1, dir->dirs + first,
        ^
/datasets/git/./git-compat-util.h:1102:63: note: expanded from macro 'MOVE_ARRAY'
#define MOVE_ARRAY(dst, src, n) move_array((dst), (src), (n), sizeof(*(dst)) + \
                                                              ^
/datasets/git/dir.c:1002:13: warning: function 'do_invalidate_gitignore' is within a recursive call chain [misc-no-recursion]
static void do_invalidate_gitignore(struct untracked_cache_dir *dir)
            ^
/datasets/git/dir.c:1002:13: note: example recursive call chain, starting from function 'do_invalidate_gitignore'
/datasets/git/dir.c:1008:3: note: Frame #1: function 'do_invalidate_gitignore' calls function 'do_invalidate_gitignore' here:
                do_invalidate_gitignore(dir->dirs[i]);
                ^
/datasets/git/dir.c:1008:3: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/dir.c:1004:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/dir.c:1004:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/dir.c:1007:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < dir->dirs_nr; i++)
        ^
/datasets/git/dir.c:1007:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < dir->dirs_nr; i++)
                                          ^
                                           {
/datasets/git/dir.c:1011:58: warning: parameter name 'uc' is too short, expected at least 3 characters [readability-identifier-length]
static void invalidate_gitignore(struct untracked_cache *uc,
                                                         ^
/datasets/git/dir.c:1018:58: warning: parameter name 'uc' is too short, expected at least 3 characters [readability-identifier-length]
static void invalidate_directory(struct untracked_cache *uc,
                                                         ^
/datasets/git/dir.c:1021:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/dir.c:1021:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/dir.c:1029:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (dir->valid)
                       ^
                        {
/datasets/git/dir.c:1034:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < dir->dirs_nr; i++)
        ^
/datasets/git/dir.c:1034:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < dir->dirs_nr; i++)
                                          ^
                                           {
/datasets/git/dir.c:1040:30: warning: parameter name 'pl' is too short, expected at least 3 characters [readability-identifier-length]
                                    struct pattern_list *pl);
                                                         ^
/datasets/git/dir.c:1043:1: warning: replace macro with enum [modernize-macro-to-enum]
#define PATTERN_NOFOLLOW (1<<0)
^~~~~~~~
                         =
/datasets/git/dir.c:1043:9: warning: macro 'PATTERN_NOFOLLOW' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define PATTERN_NOFOLLOW (1<<0)
        ^
/datasets/git/dir.c:1054:12: warning: function 'add_patterns' has cognitive complexity of 28 (threshold 25) [readability-function-cognitive-complexity]
static int add_patterns(const char *fname, const char *base, int baselen,
           ^
/datasets/git/dir.c:1064:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (flags & PATTERN_NOFOLLOW)
        ^
/datasets/git/dir.c:1066:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/dir.c:1069:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (fd < 0 || fstat(fd, &st) < 0) {
        ^
/datasets/git/dir.c:1069:13: note: +1
        if (fd < 0 || fstat(fd, &st) < 0) {
                   ^
/datasets/git/dir.c:1070:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (fd < 0)
                ^
/datasets/git/dir.c:1072:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/dir.c:1074:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!istate)
                ^
/datasets/git/dir.c:1079:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (r != 1)
                ^
/datasets/git/dir.c:1081:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/dir.c:1083:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (size == 0) {
                ^
/datasets/git/dir.c:1084:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (oid_stat) {
                        ^
/datasets/git/dir.c:1093:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (read_in_full(fd, buf, size) != size) {
                ^
/datasets/git/dir.c:1100:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (oid_stat) {
                ^
/datasets/git/dir.c:1102:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (oid_stat->valid &&
                        ^
/datasets/git/dir.c:1102:24: note: +1
                        if (oid_stat->valid &&
                                            ^
/datasets/git/dir.c:1105:9: note: +1, nesting level increased to 3
                        else if (istate &&
                             ^
/datasets/git/dir.c:1108:38: note: +1
                                 ce_uptodate(istate->cache[pos]) &&
                                                                 ^
/datasets/git/dir.c:1112:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/dir.c:1054:25: warning: 2 adjacent parameters of 'add_patterns' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int add_patterns(const char *fname, const char *base, int baselen,
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:1054:37: note: the first parameter in the range is 'fname'
static int add_patterns(const char *fname, const char *base, int baselen,
                                    ^~~~~
/datasets/git/dir.c:1054:56: note: the last parameter in the range is 'base'
static int add_patterns(const char *fname, const char *base, int baselen,
                                                       ^~~~
/datasets/git/dir.c:1055:25: warning: parameter name 'pl' is too short, expected at least 3 characters [readability-identifier-length]
                        struct pattern_list *pl, struct index_state *istate,
                                             ^
/datasets/git/dir.c:1058:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/dir.c:1059:6: warning: variable 'r' is not initialized [cppcoreguidelines-init-variables]
        int r;
            ^
              = 0
/datasets/git/dir.c:1059:6: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/dir.c:1060:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/dir.c:1060:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/dir.c:1062:8: warning: variable 'buf' is not initialized [cppcoreguidelines-init-variables]
        char *buf;
              ^
                  = NULL
/datasets/git/dir.c:1064:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & PATTERN_NOFOLLOW)
            ^
/datasets/git/dir.c:1064:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & PATTERN_NOFOLLOW)
                    ^
/datasets/git/dir.c:1043:27: note: expanded from macro 'PATTERN_NOFOLLOW'
#define PATTERN_NOFOLLOW (1<<0)
                          ^
/datasets/git/dir.c:1064:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & PATTERN_NOFOLLOW)
                                     ^
                                      {
/datasets/git/dir.c:1066:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/dir.c:1067:28: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
                fd = open(fname, O_RDONLY);
                                         ^
                                          | O_CLOEXEC
/datasets/git/dir.c:1070:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fd < 0)
                           ^
                            {
/datasets/git/dir.c:1072:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/dir.c:1074:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!istate)
                            ^
                             {
/datasets/git/dir.c:1079:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (r != 1)
                           ^
                            {
/datasets/git/dir.c:1101:8: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
                        int pos;
                            ^
                                = 0
/datasets/git/dir.c:1103:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            !match_stat_data_racy(istate, &oid_stat->stat, &st))
                                                                                ^
                                                                                 {
/datasets/git/dir.c:1106:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                                 (pos = index_name_pos(istate, fname, strlen(fname))) >= 0 &&
                                  ^
/datasets/git/dir.c:1106:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/dir.c:1106:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/dir.c:1106:43: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                 (pos = index_name_pos(istate, fname, strlen(fname))) >= 0 &&
                                                                      ^
/datasets/git/dir.c:1107:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                 !ce_stage(istate->cache[pos]) &&
                                  ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/dir.c:1108:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                 ce_uptodate(istate->cache[pos]) &&
                                 ^
/datasets/git/./refs/../cache.h:243:26: note: expanded from macro 'ce_uptodate'
#define ce_uptodate(ce) ((ce)->ce_flags & CE_UPTODATE)
                         ^                ~~~~~~~~~~~
/datasets/git/dir.c:1109:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                 !would_convert_to_git(istate, fname))
                                                                      ^
                                                                       {
/datasets/git/dir.c:1112:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/dir.c:1126:30: warning: parameter name 'pl' is too short, expected at least 3 characters [readability-identifier-length]
                                    struct pattern_list *pl)
                                                         ^
/datasets/git/dir.c:1128:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, lineno = 1;
        ^~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:1128:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, lineno = 1;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/dir.c:1128:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/dir.c:1129:8: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
        char *entry;
              ^
                    = NULL
/datasets/git/dir.c:1136:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (skip_utf8_bom(&buf, size))
                                      ^
                                       {
/datasets/git/dir.c:1141:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < size; i++) {
        ^
/datasets/git/dir.c:1141:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'size' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < size; i++) {
                    ^
/datasets/git/dir.c:1156:42: warning: parameter name 'pl' is too short, expected at least 3 characters [readability-identifier-length]
                                   int baselen, struct pattern_list *pl,
                                                                     ^
/datasets/git/dir.c:1166:23: warning: parameter name 'pl' is too short, expected at least 3 characters [readability-identifier-length]
        struct pattern_list *pl)
                             ^
/datasets/git/dir.c:1168:8: warning: variable 'buf' is not initialized [cppcoreguidelines-init-variables]
        char *buf;
              ^
                  = NULL
/datasets/git/dir.c:1169:9: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        size_t size;
               ^
                    = 0
/datasets/git/dir.c:1170:6: warning: variable 'r' is not initialized [cppcoreguidelines-init-variables]
        int r;
            ^
              = 0
/datasets/git/dir.c:1170:6: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/dir.c:1173:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (r != 1)
                   ^
                    {
/datasets/git/dir.c:1183:23: warning: variable 'pl' is not initialized [cppcoreguidelines-init-variables]
        struct pattern_list *pl;
                             ^
                                = NULL
/datasets/git/dir.c:1183:23: warning: variable name 'pl' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/dir.c:1184:29: warning: variable 'group' is not initialized [cppcoreguidelines-init-variables]
        struct exclude_list_group *group;
                                   ^
                                         = NULL
/datasets/git/dir.c:1187:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(group->pl, group->nr + 1, group->alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/dir.c:1189:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(pl, 0, sizeof(*pl));
        ^~~~~~
/datasets/git/dir.c:1189:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(pl, 0, sizeof(*pl));
        ^~~~~~
/datasets/git/dir.c:1200:23: warning: variable 'pl' is not initialized [cppcoreguidelines-init-variables]
        struct pattern_list *pl;
                             ^
                                = NULL
/datasets/git/dir.c:1200:23: warning: variable name 'pl' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/dir.c:1206:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!dir->untracked)
                            ^
                             {
/datasets/git/dir.c:1209:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (add_patterns(fname, "", 0, pl, NULL, 0, oid_stat) < 0)
                                                                  ^
                                                                   {
/datasets/git/dir.c:1220:39: warning: 2 adjacent parameters of 'match_basename' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                   const char *pattern, int prefix, int patternlen,
                                                    ^~~~~~~~~~~~~~~
/datasets/git/dir.c:1220:43: note: the first parameter in the range is 'patternlen'
                   const char *pattern, int prefix, int patternlen,
                                                        ^~~~~~~~~~
/datasets/git/dir.c:1221:15: note: the last parameter in the range is 'flags'
                   unsigned flags)
                            ^~~~~
/datasets/git/dir.c:1221:6: note: 'int' and 'unsigned int' may be implicitly converted
                   unsigned flags)
                   ^
/datasets/git/dir.c:1225:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !fspathncmp(pattern, basename, basenamelen))
                                                                ^
                                                                 {
/datasets/git/dir.c:1227:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        } else if (flags & PATTERN_FLAG_ENDSWITH) {
                   ^
/datasets/git/dir.c:1232:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                   patternlen - 1))
                                                   ^
                                                    {
/datasets/git/dir.c:1237:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                      0) == 0)
                                              ^
                                               {
/datasets/git/dir.c:1247:14: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
        const char *name;
                    ^
                         = NULL
/datasets/git/dir.c:1248:6: warning: variable 'namelen' is not initialized [cppcoreguidelines-init-variables]
        int namelen;
            ^
                    = 0
/datasets/git/dir.c:1266:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            fspathncmp(pathname, base, baselen))
                                                ^
                                                 {
/datasets/git/dir.c:1277:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (prefix > namelen)
                                     ^
                                      {
/datasets/git/dir.c:1280:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fspathncmp(pattern, name, prefix))
                                                      ^
                                                       {
/datasets/git/dir.c:1292:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!patternlen && !namelen)
                                            ^
                                             {
/datasets/git/dir.c:1311:35: warning: parameter name 'pl' is too short, expected at least 3 characters [readability-identifier-length]
                                                       struct pattern_list *pl,
                                                                            ^
/datasets/git/dir.c:1315:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/dir.c:1315:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/dir.c:1317:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!pl->nr)
                    ^
                     {
/datasets/git/dir.c:1320:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = pl->nr - 1; 0 <= i; i--) {
        ^
/datasets/git/dir.c:1320:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = pl->nr - 1; 0 <= i; i--) {
                             ^
/datasets/git/dir.c:1325:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (pattern->flags & PATTERN_FLAG_MUSTBEDIR) {
                    ^
/datasets/git/dir.c:1327:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (*dtype != DT_DIR)
                                             ^
                                              {
/datasets/git/dir.c:1331:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (pattern->flags & PATTERN_FLAG_NODIR) {
                    ^
/datasets/git/dir.c:1333:9: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                           pathlen - (basename - pathname),
                                           ^
/datasets/git/dir.c:1364:26: warning: parameter name 'pl' is too short, expected at least 3 characters [readability-identifier-length]
                                struct pattern_list *pl,
                                                     ^
/datasets/git/dir.c:1367:23: warning: variable 'pattern' is not initialized [cppcoreguidelines-init-variables]
        struct path_pattern *pattern;
                             ^
                                     = NULL
/datasets/git/dir.c:1370:9: warning: variable 'slash_pos' is not initialized [cppcoreguidelines-init-variables]
        size_t slash_pos;
               ^
                         = 0
/datasets/git/dir.c:1376:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (pattern->flags & PATTERN_FLAG_NEGATIVE)
                            ^
/datasets/git/dir.c:1376:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (pattern->flags & PATTERN_FLAG_NEGATIVE)
                                                                   ^
                                                                    {
/datasets/git/dir.c:1378:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                        else
                        ^~~~
                                                        return MATCHED
/datasets/git/dir.c:1378:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/dir.c:1385:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pl->full_cone)
                          ^
                           {
/datasets/git/dir.c:1428:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                    &parent_pathname))
                                                      ^
                                                       {
/datasets/git/dir.c:1438:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!core_apply_sparse_checkout)
                                        ^
                                         {
/datasets/git/dir.c:1440:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (istate->sparse_checkout_patterns)
                                             ^
                                              {
/datasets/git/dir.c:1446:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FREE_AND_NULL(istate->sparse_checkout_patterns);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/dir.c:1459:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *end, *slash;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:1459:14: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
        const char *end, *slash;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/dir.c:1459:20: warning: variable 'slash' is not initialized [cppcoreguidelines-init-variables]
        const char *end, *slash;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/dir.c:1468:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
             !istate->sparse_checkout_patterns->use_cone_patterns))
                                                                   ^
                                                                    {
/datasets/git/dir.c:1478:7: warning: backward branch (for loop) is ID-dependent due to variable reference to 'end' and may cause performance degradation [altera-id-dependent-backward-branch]
             end > path && match == UNDECIDED;
             ^
/datasets/git/dir.c:1481:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (slash = end - 1; slash > path && *slash != '/'; slash--)
                ^
/datasets/git/dir.c:1481:25: warning: backward branch (for loop) is ID-dependent due to variable reference to 'slash' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (slash = end - 1; slash > path && *slash != '/'; slash--)
                                      ^
/datasets/git/dir.c:1481:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (slash = end - 1; slash > path && *slash != '/'; slash--)
                                                                             ^
                                                                              {
/datasets/git/dir.c:1484:43: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                match = path_matches_pattern_list(path, end - path,
                                                        ^
/datasets/git/dir.c:1511:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, j;
        ^~~~~~~~~
/datasets/git/dir.c:1511:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, j;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/dir.c:1511:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/dir.c:1511:9: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int i, j;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/dir.c:1511:9: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/dir.c:1512:29: warning: variable 'group' is not initialized [cppcoreguidelines-init-variables]
        struct exclude_list_group *group;
                                   ^
                                         = NULL
/datasets/git/dir.c:1513:23: warning: variable 'pattern' is not initialized [cppcoreguidelines-init-variables]
        struct path_pattern *pattern;
                             ^
                                     = NULL
/datasets/git/dir.c:1511:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int i, j;
        ^
/datasets/git/dir.c:1516:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (j = group->nr - 1; j >= 0; j--) {
                ^
/datasets/git/dir.c:1516:27: warning: backward branch (for loop) is ID-dependent due to variable reference to 'j' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (j = group->nr - 1; j >= 0; j--) {
                                        ^
/datasets/git/dir.c:1520:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (pattern)
                                    ^
                                     {
/datasets/git/dir.c:1531:13: warning: function 'prep_exclude' has cognitive complexity of 44 (threshold 25) [readability-function-cognitive-complexity]
static void prep_exclude(struct dir_struct *dir,
            ^
/datasets/git/dir.c:1548:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while ((stk = dir->exclude_stack) != NULL) {
        ^
/datasets/git/dir.c:1549:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (stk->baselen <= baselen &&
                ^
/datasets/git/dir.c:1549:31: note: +1
                if (stk->baselen <= baselen &&
                                            ^
/datasets/git/dir.c:1562:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (dir->pattern)
        ^
/datasets/git/dir.c:1570:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!dir->basebuf.buf)
        ^
/datasets/git/dir.c:1574:16: note: +1, including nesting penalty of 0, nesting level increased to 1
        current = stk ? stk->baselen : -1;
                      ^
/datasets/git/dir.c:1575:43: note: +1, including nesting penalty of 0, nesting level increased to 1
        strbuf_setlen(&dir->basebuf, current < 0 ? 0 : current);
                                                 ^
/datasets/git/dir.c:1576:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (dir->untracked)
        ^
/datasets/git/dir.c:1577:19: note: +2, including nesting penalty of 1, nesting level increased to 2
                untracked = stk ? stk->ucd : dir->untracked->root;
                                ^
/datasets/git/dir.c:1578:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/dir.c:1581:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (current < baselen) {
        ^
/datasets/git/dir.c:1586:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (current < 0) {
                ^
/datasets/git/dir.c:1589:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/dir.c:1591:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!cp)
                        ^
/datasets/git/dir.c:1605:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(stk->baselen == dir->basebuf.len);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/dir.c:1605:3: note: nesting level increased to 2
                assert(stk->baselen == dir->basebuf.len);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/dir.c:1605:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(stk->baselen == dir->basebuf.len);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/dir.c:1605:3: note: +1, nesting level increased to 3
                assert(stk->baselen == dir->basebuf.len);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/dir.c:1608:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (stk->baselen) {
                ^
/datasets/git/dir.c:1616:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (dir->pattern &&
                        ^
/datasets/git/dir.c:1616:21: note: +1
                        if (dir->pattern &&
                                         ^
/datasets/git/dir.c:1619:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (dir->pattern) {
                        ^
/datasets/git/dir.c:1628:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (dir->exclude_per_dir &&
                ^
/datasets/git/dir.c:1628:28: note: +1
                if (dir->exclude_per_dir &&
                                         ^
/datasets/git/dir.c:1634:40: note: +1
                    (!untracked || !untracked->valid ||
                                                     ^
/datasets/git/dir.c:1656:20: note: +3, including nesting penalty of 2, nesting level increased to 3
                                     untracked ? &oid_stat : NULL);
                                               ^
/datasets/git/dir.c:1672:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (untracked &&
                ^
/datasets/git/dir.c:1672:17: note: +1
                if (untracked &&
                              ^
/datasets/git/dir.c:1537:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct exclude_stack *stk = NULL;
        ^
/datasets/git/dir.c:1535:29: warning: variable 'group' is not initialized [cppcoreguidelines-init-variables]
        struct exclude_list_group *group;
                                   ^
                                         = NULL
/datasets/git/dir.c:1536:23: warning: variable 'pl' is not initialized [cppcoreguidelines-init-variables]
        struct pattern_list *pl;
                             ^
                                = NULL
/datasets/git/dir.c:1536:23: warning: variable name 'pl' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/dir.c:1538:30: warning: variable 'untracked' is not initialized [cppcoreguidelines-init-variables]
        struct untracked_cache_dir *untracked;
                                    ^
                                              = NULL
/datasets/git/dir.c:1539:6: warning: variable 'current' is not initialized [cppcoreguidelines-init-variables]
        int current;
            ^
                    = 0
/datasets/git/dir.c:1548:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((stk = dir->exclude_stack) != NULL) {
        ^
/datasets/git/dir.c:1548:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'stk' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((stk = dir->exclude_stack) != NULL) {
               ^
/datasets/git/dir.c:1550:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !strncmp(dir->basebuf.buf, base, stk->baselen))
                                                                   ^
                                                                    {
/datasets/git/dir.c:1562:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (dir->pattern)
                         ^
                          {
/datasets/git/dir.c:1570:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!dir->basebuf.buf)
                              ^
                               {
/datasets/git/dir.c:1576:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (dir->untracked)
                           ^
                            {
/datasets/git/dir.c:1578:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/dir.c:1581:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (current < baselen) {
        ^
/datasets/git/dir.c:1581:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'current' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (current < baselen) {
               ^
/datasets/git/dir.c:1582:15: warning: variable 'cp' is not initialized [cppcoreguidelines-init-variables]
                const char *cp;
                            ^
                               = NULL
/datasets/git/dir.c:1582:15: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/dir.c:1591:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!cp)
                                ^
                                 {
/datasets/git/dir.c:1597:8: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                                 cp - base - current);
                                                 ^
/datasets/git/dir.c:1600:18: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                stk->baselen = cp - base;
                               ^
/datasets/git/dir.c:1609:8: warning: variable name 'dt' is too short, expected at least 3 characters [readability-identifier-length]
                        int dt = DT_DIR;
                            ^
/datasets/git/dir.c:1617:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            dir->pattern->flags & PATTERN_FLAG_NEGATIVE)
                            ^
/datasets/git/dir.c:1617:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            dir->pattern->flags & PATTERN_FLAG_NEGATIVE)
                                                                        ^
                                                                         {
/datasets/git/dir.c:1650:18: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                        struct strbuf sb = STRBUF_INIT;
                                      ^
/datasets/git/dir.c:1655:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                     PATTERN_NOFOLLOW,
                                     ^
/datasets/git/dir.c:1043:27: note: expanded from macro 'PATTERN_NOFOLLOW'
#define PATTERN_NOFOLLOW (1<<0)
                          ^
/datasets/git/dir.c:1694:16: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int pathlen = strlen(pathname);
                      ^
/datasets/git/dir.c:1700:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (dir->pattern)
                         ^
                          {
/datasets/git/dir.c:1717:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pattern)
                    ^
                     {
/datasets/git/dir.c:1718:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                return pattern->flags & PATTERN_FLAG_NEGATIVE ? 0 : 1;
                       ^
/datasets/git/dir.c:1724:20: warning: variable 'ent' is not initialized [cppcoreguidelines-init-variables]
        struct dir_entry *ent;
                          ^
                              = NULL
/datasets/git/dir.c:1726:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FLEX_ALLOC_MEM(ent, name, pathname, len);
        ^
/datasets/git/./git-compat-util.h:1151:47: note: expanded from macro 'FLEX_ALLOC_MEM'
#define FLEX_ALLOC_MEM(x, flexname, buf, len) do { \
                                              ^
/datasets/git/dir.c:1726:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        FLEX_ALLOC_MEM(ent, name, pathname, len);
        ^
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/dir.c:1726:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        FLEX_ALLOC_MEM(ent, name, pathname, len);
        ^
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/dir.c:1735:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (index_file_exists(istate, pathname, len, ignore_case))
                                                                  ^
                                                                   {
/datasets/git/dir.c:1738:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(dir->entries, dir->nr+1, dir->alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/dir.c:1738:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_GROW(dir->entries, dir->nr+1, dir->alloc);
        ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/dir.c:1746:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!index_name_is_other(istate, pathname, len))
                                                        ^
                                                         {
/datasets/git/dir.c:1749:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(dir->ignored, dir->ignored_nr+1, dir->ignored_alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/dir.c:1749:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_GROW(dir->ignored, dir->ignored_nr+1, dir->ignored_alloc);
        ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/dir.c:1767:22: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
        struct cache_entry *ce;
                            ^
                               = NULL
/datasets/git/dir.c:1767:22: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/dir.c:1769:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (index_dir_exists(istate, dirname, len))
                                                   ^
                                                    {
/datasets/git/dir.c:1773:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (ce && S_ISGITLINK(ce->ce_mode))
                  ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/dir.c:1773:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ce && S_ISGITLINK(ce->ce_mode))
                                           ^
                                            {
/datasets/git/dir.c:1789:6: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        int pos;
            ^
                = 0
/datasets/git/dir.c:1791:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ignore_case)
                        ^
                         {
/datasets/git/dir.c:1795:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pos < 0)
                    ^
                     {
/datasets/git/dir.c:1797:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (pos < istate->cache_nr) {
        ^
/datasets/git/dir.c:1797:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'pos' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (pos < istate->cache_nr) {
               ^
/datasets/git/dir.c:1798:29: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                const struct cache_entry *ce = istate->cache[pos++];
                                          ^
/datasets/git/dir.c:1799:17: warning: variable 'endchar' is not initialized [cppcoreguidelines-init-variables]
                unsigned char endchar;
                              ^
                                      = 0
/datasets/git/dir.c:1801:7: warning: function 'strncmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (strncmp(ce->name, dirname, len))
                    ^
                                                    != 0
/datasets/git/dir.c:1801:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strncmp(ce->name, dirname, len))
                                                    ^
                                                     {
/datasets/git/dir.c:1804:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (endchar > '/')
                                  ^
                                   {
/datasets/git/dir.c:1806:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (endchar == '/')
                                   ^
                                    {
/datasets/git/dir.c:1808:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!endchar && S_ISGITLINK(ce->ce_mode))
                                ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/dir.c:1808:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!endchar && S_ISGITLINK(ce->ce_mode))
                                                         ^
                                                          {
/datasets/git/dir.c:1847:28: warning: function 'treat_directory' is within a recursive call chain [misc-no-recursion]
static enum path_treatment treat_directory(struct dir_struct *dir,
                           ^
/datasets/git/dir.c:1847:28: warning: function 'treat_directory' has cognitive complexity of 68 (threshold 25) [readability-function-cognitive-complexity]
/datasets/git/dir.c:1865:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (status == index_directory)
        ^
/datasets/git/dir.c:1867:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (status == index_gitdir)
        ^
/datasets/git/dir.c:1869:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (status != index_nonexistent)
        ^
/datasets/git/dir.c:1879:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (pathspec && !excluded) {
        ^
/datasets/git/dir.c:1879:15: note: +1
        if (pathspec && !excluded) {
                     ^
/datasets/git/dir.c:1885:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!matches_how)
                ^
/datasets/git/dir.c:1890:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((dir->flags & DIR_SKIP_NESTED_GIT) ||
        ^
/datasets/git/dir.c:1890:41: note: +1
        if ((dir->flags & DIR_SKIP_NESTED_GIT) ||
                                               ^
/datasets/git/dir.c:1905:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (nested_repo) {
                ^
/datasets/git/dir.c:1917:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (nested_repo) {
                ^
/datasets/git/dir.c:1918:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if ((dir->flags & DIR_SKIP_NESTED_GIT) ||
                        ^
/datasets/git/dir.c:1918:43: note: +1
                        if ((dir->flags & DIR_SKIP_NESTED_GIT) ||
                                                               ^
/datasets/git/dir.c:1921:20: note: +3, including nesting penalty of 2, nesting level increased to 3
                        return excluded ? path_excluded : path_untracked;
                                        ^
/datasets/git/dir.c:1925:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!(dir->flags & DIR_SHOW_OTHER_DIRECTORIES)) {
        ^
/datasets/git/dir.c:1926:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (excluded &&
                ^
/datasets/git/dir.c:1927:43: note: +1
                    (dir->flags & DIR_SHOW_IGNORED_TOO) &&
                                                        ^
/datasets/git/dir.c:1941:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!(dir->flags & DIR_HIDE_EMPTY_DIRECTORIES))
                        ^
/datasets/git/dir.c:1944:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (read_directory_recursive(dir, istate, dirname, len,
                        ^
/datasets/git/dir.c:1953:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(dir->flags & DIR_SHOW_OTHER_DIRECTORIES);
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/dir.c:1953:2: note: nesting level increased to 1
        assert(dir->flags & DIR_SHOW_OTHER_DIRECTORIES);
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/dir.c:1953:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(dir->flags & DIR_SHOW_OTHER_DIRECTORIES);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/dir.c:1953:2: note: +1, nesting level increased to 2
        assert(dir->flags & DIR_SHOW_OTHER_DIRECTORIES);
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/dir.c:1961:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (matches_how == MATCHED_RECURSIVELY_LEADING_PATHSPEC)
        ^
/datasets/git/dir.c:1965:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (excluded) {
        ^
/datasets/git/dir.c:1971:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!(dir->flags & DIR_HIDE_EMPTY_DIRECTORIES))
                ^
/datasets/git/dir.c:1979:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((dir->flags & DIR_SHOW_IGNORED_TOO) &&
                ^
/datasets/git/dir.c:1979:43: note: +1
                if ((dir->flags & DIR_SHOW_IGNORED_TOO) &&
                                                        ^
/datasets/git/dir.c:1994:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!excluded &&
        ^
/datasets/git/dir.c:1994:16: note: +1
        if (!excluded &&
                      ^
/datasets/git/dir.c:2008:58: note: +1
        check_only = ((dir->flags & DIR_HIDE_EMPTY_DIRECTORIES) &&
                                                                ^
/datasets/git/dir.c:2026:26: note: +1
        stop_early = check_only && excluded;
                                ^
/datasets/git/dir.c:2049:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (state == path_excluded) {
        ^
/datasets/git/dir.c:2061:41: note: +1
                        ((dir->flags & DIR_SHOW_IGNORED_TOO) &&
                                                             ^
/datasets/git/dir.c:2064:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (want_ignored_subpaths) {
                ^
/datasets/git/dir.c:2070:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/dir.c:2072:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (i = old_ignored_nr + 1; i<dir->ignored_nr; ++i)
                        ^
/datasets/git/dir.c:2073:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                FREE_AND_NULL(dir->ignored[i]);
                                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/dir.c:2082:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((dir->flags & DIR_SHOW_IGNORED_TOO) &&
        ^
/datasets/git/dir.c:2082:42: note: +1
        if ((dir->flags & DIR_SHOW_IGNORED_TOO) &&
                                                ^
/datasets/git/dir.c:2085:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = old_untracked_nr + 1; i<dir->nr; ++i)
                ^
/datasets/git/dir.c:2086:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        FREE_AND_NULL(dir->entries[i]);
                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/dir.c:2095:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (state == path_none && !(dir->flags & DIR_HIDE_EMPTY_DIRECTORIES))
        ^
/datasets/git/dir.c:2095:25: note: +1
        if (state == path_none && !(dir->flags & DIR_HIDE_EMPTY_DIRECTORIES))
                               ^
/datasets/git/dir.c:2096:20: note: +2, including nesting penalty of 1, nesting level increased to 2
                state = excluded ? path_excluded : path_untracked;
                                 ^
/datasets/git/dir.c:1850:32: warning: 2 adjacent parameters of 'treat_directory' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
        const char *dirname, int len, int baselen, int excluded,
                                      ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:1850:36: note: the first parameter in the range is 'baselen'
        const char *dirname, int len, int baselen, int excluded,
                                          ^~~~~~~
/datasets/git/dir.c:1850:49: note: the last parameter in the range is 'excluded'
        const char *dirname, int len, int baselen, int excluded,
                                                       ^~~~~~~~
/datasets/git/dir.c:1858:22: warning: variable 'state' is not initialized [cppcoreguidelines-init-variables]
        enum path_treatment state;
                            ^
/datasets/git/dir.c:1860:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int check_only, stop_early;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:1860:6: warning: variable 'check_only' is not initialized [cppcoreguidelines-init-variables]
        int check_only, stop_early;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/dir.c:1860:18: warning: variable 'stop_early' is not initialized [cppcoreguidelines-init-variables]
        int check_only, stop_early;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/dir.c:1861:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int old_ignored_nr, old_untracked_nr;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:1861:6: warning: variable 'old_ignored_nr' is not initialized [cppcoreguidelines-init-variables]
        int old_ignored_nr, old_untracked_nr;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/dir.c:1861:22: warning: variable 'old_untracked_nr' is not initialized [cppcoreguidelines-init-variables]
        int old_ignored_nr, old_untracked_nr;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/dir.c:1865:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (status == index_directory)
                                      ^
                                       {
/datasets/git/dir.c:1867:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (status == index_gitdir)
                                   ^
                                    {
/datasets/git/dir.c:1869:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (status != index_nonexistent)
                                        ^
                                         {
/datasets/git/dir.c:1884:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                                        DO_MATCH_LEADING_PATHSPEC);
                                                        ^
/datasets/git/dir.c:299:36: note: expanded from macro 'DO_MATCH_LEADING_PATHSPEC'
#define DO_MATCH_LEADING_PATHSPEC (1<<2)
                                   ^
/datasets/git/dir.c:1885:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!matches_how)
                                 ^
                                  {
/datasets/git/dir.c:1890:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((dir->flags & DIR_SKIP_NESTED_GIT) ||
             ^            ~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:1891:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                !(dir->flags & DIR_NO_GITLINKS)) {
                  ^            ~~~~~~~~~~~~~~~
/datasets/git/dir.c:1900:7: warning: variable 'nested_repo' is not initialized [cppcoreguidelines-init-variables]
                int nested_repo;
                    ^
                                = 0
/datasets/git/dir.c:1901:17: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                struct strbuf sb = STRBUF_INIT;
                              ^
/datasets/git/dir.c:1906:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        char *real_dirname, *real_gitdir;
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:1906:10: warning: variable 'real_dirname' is not initialized [cppcoreguidelines-init-variables]
                        char *real_dirname, *real_gitdir;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/dir.c:1906:25: warning: variable 'real_gitdir' is not initialized [cppcoreguidelines-init-variables]
                        char *real_dirname, *real_gitdir;
                                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/dir.c:1918:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if ((dir->flags & DIR_SKIP_NESTED_GIT) ||
                             ^            ~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:1919:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                (matches_how == MATCHED_RECURSIVELY_LEADING_PATHSPEC))
                                                                                      ^
                                                                                       {
/datasets/git/dir.c:1925:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(dir->flags & DIR_SHOW_OTHER_DIRECTORIES)) {
              ^            ~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:1927:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (dir->flags & DIR_SHOW_IGNORED_TOO) &&
                     ^            ~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:1928:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (dir->flags & DIR_SHOW_IGNORED_TOO_MODE_MATCHING)) {
                     ^            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:1941:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!(dir->flags & DIR_HIDE_EMPTY_DIRECTORIES))
                              ^            ~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:1941:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!(dir->flags & DIR_HIDE_EMPTY_DIRECTORIES))
                                                                       ^
                                                                        {
/datasets/git/dir.c:1945:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                     untracked, 1, 1, pathspec) == path_excluded)
                                                                                                 ^
                                                                                                  {
/datasets/git/dir.c:1953:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        assert(dir->flags & DIR_SHOW_OTHER_DIRECTORIES);
               ^
/usr/include/assert.h:108:20: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                   ^~~~
/datasets/git/dir.c:1961:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (matches_how == MATCHED_RECURSIVELY_LEADING_PATHSPEC)
                                                                ^
                                                                 {
/datasets/git/dir.c:1971:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(dir->flags & DIR_HIDE_EMPTY_DIRECTORIES))
                      ^            ~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:1971:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(dir->flags & DIR_HIDE_EMPTY_DIRECTORIES))
                                                               ^
                                                                {
/datasets/git/dir.c:1979:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((dir->flags & DIR_SHOW_IGNORED_TOO) &&
                     ^            ~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:1980:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (dir->flags & DIR_SHOW_IGNORED_TOO_MODE_MATCHING))
                     ^            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:1980:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    (dir->flags & DIR_SHOW_IGNORED_TOO_MODE_MATCHING))
                                                                      ^
                                                                       {
/datasets/git/dir.c:1995:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            !(dir->flags & (DIR_SHOW_IGNORED |
              ^            ~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:1995:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            !(dir->flags & (DIR_SHOW_IGNORED |
                            ^~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:2008:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        check_only = ((dir->flags & DIR_HIDE_EMPTY_DIRECTORIES) &&
                       ^            ~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:2009:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                      !(dir->flags & DIR_SHOW_IGNORED_TOO));
                        ^            ~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:2061:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ((dir->flags & DIR_SHOW_IGNORED_TOO) &&
                          ^            ~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:2062:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         (dir->flags & DIR_SHOW_IGNORED_TOO_MODE_MATCHING));
                          ^            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:2071:8: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                        int i;
                            ^
                              = 0
/datasets/git/dir.c:2071:8: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/dir.c:2072:33: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (i = old_ignored_nr + 1; i<dir->ignored_nr; ++i)
                                                     ^
/datasets/git/dir.c:2072:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (i = old_ignored_nr + 1; i<dir->ignored_nr; ++i)
                                                                            ^
                                                                             {
/datasets/git/dir.c:2073:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                FREE_AND_NULL(dir->ignored[i]);
                                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/dir.c:2082:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((dir->flags & DIR_SHOW_IGNORED_TOO) &&
             ^            ~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:2083:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            !(dir->flags & DIR_KEEP_UNTRACKED_CONTENTS)) {
              ^            ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:2084:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/dir.c:2084:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/dir.c:2085:34: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = old_untracked_nr + 1; i<dir->nr; ++i)
                                               ^
/datasets/git/dir.c:2085:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = old_untracked_nr + 1; i<dir->nr; ++i)
                                                              ^
                                                               {
/datasets/git/dir.c:2086:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        FREE_AND_NULL(dir->entries[i]);
                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/dir.c:2095:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (state == path_none && !(dir->flags & DIR_HIDE_EMPTY_DIRECTORIES))
                                    ^            ~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:2095:71: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (state == path_none && !(dir->flags & DIR_HIDE_EMPTY_DIRECTORIES))
                                                                             ^
                                                                              {
/datasets/git/dir.c:2109:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/dir.c:2109:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/dir.c:2111:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!pathspec || !pathspec->nr)
                                       ^
                                        {
/datasets/git/dir.c:2114:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        GUARD_PATHSPEC(pathspec,
        ^
/datasets/git/./pathspec.h:59:2: note: expanded from macro 'GUARD_PATHSPEC'
        do { \
        ^
/datasets/git/dir.c:2114:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        GUARD_PATHSPEC(pathspec,
        ^
/datasets/git/./pathspec.h:60:7: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                    ^             ~~~~~~~
/datasets/git/dir.c:2114:2: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
        GUARD_PATHSPEC(pathspec,
        ^
/datasets/git/./pathspec.h:60:21: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                                  ^~~~~~~
/datasets/git/dir.c:2115:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_FROMTOP |
                       ^
/datasets/git/./pathspec.h:7:26: note: expanded from macro 'PATHSPEC_FROMTOP'
#define PATHSPEC_FROMTOP        (1<<0)
                                ^
/datasets/git/./pathspec.h:60:23: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                                    ^~~~
/datasets/git/dir.c:2116:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_MAXDEPTH |
                       ^
/datasets/git/./pathspec.h:8:28: note: expanded from macro 'PATHSPEC_MAXDEPTH'
#define PATHSPEC_MAXDEPTH       (1<<1)
                                 ^
/datasets/git/./pathspec.h:60:23: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                                    ^~~~
/datasets/git/dir.c:2117:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_LITERAL |
                       ^
/datasets/git/./pathspec.h:9:27: note: expanded from macro 'PATHSPEC_LITERAL'
#define PATHSPEC_LITERAL        (1<<2)
                                 ^
/datasets/git/./pathspec.h:60:23: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                                    ^~~~
/datasets/git/dir.c:2118:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_GLOB |
                       ^
/datasets/git/./pathspec.h:10:25: note: expanded from macro 'PATHSPEC_GLOB'
#define PATHSPEC_GLOB           (1<<3)
                                 ^
/datasets/git/./pathspec.h:60:23: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                                    ^~~~
/datasets/git/dir.c:2119:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_ICASE |
                       ^
/datasets/git/./pathspec.h:11:26: note: expanded from macro 'PATHSPEC_ICASE'
#define PATHSPEC_ICASE          (1<<4)
                                 ^
/datasets/git/./pathspec.h:60:23: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                                    ^~~~
/datasets/git/dir.c:2120:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_EXCLUDE |
                       ^
/datasets/git/./pathspec.h:12:27: note: expanded from macro 'PATHSPEC_EXCLUDE'
#define PATHSPEC_EXCLUDE        (1<<5)
                                 ^
/datasets/git/./pathspec.h:60:23: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                                    ^~~~
/datasets/git/dir.c:2121:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_ATTR);
                       ^
/datasets/git/./pathspec.h:13:25: note: expanded from macro 'PATHSPEC_ATTR'
#define PATHSPEC_ATTR           (1<<6)
                                 ^
/datasets/git/./pathspec.h:60:23: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                                    ^~~~
/datasets/git/dir.c:2123:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < pathspec->nr; i++) {
        ^
/datasets/git/dir.c:2127:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (len > pathlen)
                                  ^
                                   {
/datasets/git/dir.c:2129:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ps_strncmp(item, item->match, path, len))
                                                              ^
                                                               {
/datasets/git/dir.c:2150:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/dir.c:2150:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/dir.c:2152:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!pathspec || !pathspec->nr)
                                       ^
                                        {
/datasets/git/dir.c:2155:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        GUARD_PATHSPEC(pathspec,
        ^
/datasets/git/./pathspec.h:59:2: note: expanded from macro 'GUARD_PATHSPEC'
        do { \
        ^
/datasets/git/dir.c:2155:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        GUARD_PATHSPEC(pathspec,
        ^
/datasets/git/./pathspec.h:60:7: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                    ^             ~~~~~~~
/datasets/git/dir.c:2155:2: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
        GUARD_PATHSPEC(pathspec,
        ^
/datasets/git/./pathspec.h:60:21: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                                  ^~~~~~~
/datasets/git/dir.c:2156:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_FROMTOP |
                       ^
/datasets/git/./pathspec.h:7:26: note: expanded from macro 'PATHSPEC_FROMTOP'
#define PATHSPEC_FROMTOP        (1<<0)
                                ^
/datasets/git/./pathspec.h:60:23: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                                    ^~~~
/datasets/git/dir.c:2157:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_MAXDEPTH |
                       ^
/datasets/git/./pathspec.h:8:28: note: expanded from macro 'PATHSPEC_MAXDEPTH'
#define PATHSPEC_MAXDEPTH       (1<<1)
                                 ^
/datasets/git/./pathspec.h:60:23: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                                    ^~~~
/datasets/git/dir.c:2158:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_LITERAL |
                       ^
/datasets/git/./pathspec.h:9:27: note: expanded from macro 'PATHSPEC_LITERAL'
#define PATHSPEC_LITERAL        (1<<2)
                                 ^
/datasets/git/./pathspec.h:60:23: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                                    ^~~~
/datasets/git/dir.c:2159:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_GLOB |
                       ^
/datasets/git/./pathspec.h:10:25: note: expanded from macro 'PATHSPEC_GLOB'
#define PATHSPEC_GLOB           (1<<3)
                                 ^
/datasets/git/./pathspec.h:60:23: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                                    ^~~~
/datasets/git/dir.c:2160:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_ICASE |
                       ^
/datasets/git/./pathspec.h:11:26: note: expanded from macro 'PATHSPEC_ICASE'
#define PATHSPEC_ICASE          (1<<4)
                                 ^
/datasets/git/./pathspec.h:60:23: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                                    ^~~~
/datasets/git/dir.c:2161:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_EXCLUDE);
                       ^
/datasets/git/./pathspec.h:12:27: note: expanded from macro 'PATHSPEC_EXCLUDE'
#define PATHSPEC_EXCLUDE        (1<<5)
                                 ^
/datasets/git/./pathspec.h:60:23: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                                    ^~~~
/datasets/git/dir.c:2163:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < pathspec->nr; i++) {
        ^
/datasets/git/dir.c:2168:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !ps_strncmp(item, item->match, path, pathlen))
                                                                  ^
                                                                   {
/datasets/git/dir.c:2172:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !ps_strncmp(item, item->match, path, pathlen))
                                                                  ^
                                                                   {
/datasets/git/dir.c:2181:6: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        int pos;
            ^
                = 0
/datasets/git/dir.c:2182:28: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
        const struct cache_entry *ce;
                                  ^
                                     = NULL
/datasets/git/dir.c:2182:28: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/dir.c:2186:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!ce_uptodate(ce))
                     ^
/datasets/git/./refs/../cache.h:243:26: note: expanded from macro 'ce_uptodate'
#define ce_uptodate(ce) ((ce)->ce_flags & CE_UPTODATE)
                         ^                ~~~~~~~~~~~
/datasets/git/dir.c:2186:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ce_uptodate(ce))
                                     ^
                                      {
/datasets/git/dir.c:2188:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (S_ISGITLINK(ce->ce_mode))
                    ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/dir.c:2188:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (S_ISGITLINK(ce->ce_mode))
                                             ^
                                              {
/datasets/git/dir.c:2199:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pos >= 0)
                     ^
                      {
/datasets/git/dir.c:2202:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (pos < istate->cache_nr) {
        ^
/datasets/git/dir.c:2202:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'pos' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (pos < istate->cache_nr) {
               ^
/datasets/git/dir.c:2204:7: warning: function 'strncmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (strncmp(ce->name, path, len))
                    ^
                                                 != 0
/datasets/git/dir.c:2204:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strncmp(ce->name, path, len))
                                                 ^
                                                  {
/datasets/git/dir.c:2206:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ce->name[len] > '/')
                                        ^
                                         {
/datasets/git/dir.c:2208:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ce->name[len] < '/')
                                        ^
                                         {
/datasets/git/dir.c:2210:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!ce_uptodate(ce))
                     ^
/datasets/git/./refs/../cache.h:243:26: note: expanded from macro 'ce_uptodate'
#define ce_uptodate(ce) ((ce)->ce_flags & CE_UPTODATE)
                         ^                ~~~~~~~~~~~
/datasets/git/dir.c:2210:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ce_uptodate(ce))
                                     ^
                                      {
/datasets/git/dir.c:2220:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/dir.c:2222:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (dtype != DT_UNKNOWN)
                                ^
                                 {
/datasets/git/dir.c:2225:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (dtype != DT_UNKNOWN)
                                ^
                                 {
/datasets/git/dir.c:2227:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (lstat(path, &st))
                             ^
                              {
/datasets/git/dir.c:2229:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (S_ISREG(st.st_mode))
                                ^
                                 {
/datasets/git/dir.c:2231:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (S_ISDIR(st.st_mode))
                                ^
                                 {
/datasets/git/dir.c:2233:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (S_ISLNK(st.st_mode))
                                ^
                                 {
/datasets/git/dir.c:2238:28: warning: function 'treat_path_fast' is within a recursive call chain [misc-no-recursion]
static enum path_treatment treat_path_fast(struct dir_struct *dir,
                           ^
/datasets/git/dir.c:2258:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cdir->ucd->check_only)
                                  ^
                                   {
/datasets/git/dir.c:2264:59: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                return read_directory_recursive(dir, istate, path->buf, path->len,
                                                                        ^
/datasets/git/dir.c:2275:28: warning: function 'treat_path' is within a recursive call chain [misc-no-recursion]
static enum path_treatment treat_path(struct dir_struct *dir,
                           ^
/datasets/git/dir.c:2547:28: note: example recursive call chain, starting from function 'read_directory_recursive'
static enum path_treatment read_directory_recursive(struct dir_struct *dir,
                           ^
/datasets/git/dir.c:2572:11: note: Frame #1: function 'read_directory_recursive' calls function 'treat_path' here:
                state = treat_path(dir, untracked, &cdir, istate, &path,
                        ^
/datasets/git/dir.c:2286:10: note: Frame #2: function 'treat_path' calls function 'treat_path_fast' here:
                return treat_path_fast(dir, cdir, istate, path,
                       ^
/datasets/git/dir.c:2264:10: note: Frame #3: function 'treat_path_fast' calls function 'read_directory_recursive' here:
                return read_directory_recursive(dir, istate, path->buf, path->len,
                       ^
/datasets/git/dir.c:2264:10: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/dir.c:2283:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int has_path_in_index, dtype, excluded;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:2283:6: warning: variable 'has_path_in_index' is not initialized [cppcoreguidelines-init-variables]
        int has_path_in_index, dtype, excluded;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/dir.c:2283:25: warning: variable 'dtype' is not initialized [cppcoreguidelines-init-variables]
        int has_path_in_index, dtype, excluded;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/dir.c:2283:32: warning: variable 'excluded' is not initialized [cppcoreguidelines-init-variables]
        int has_path_in_index, dtype, excluded;
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/dir.c:2285:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!cdir->d_name)
                          ^
                           {
/datasets/git/dir.c:2288:73: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_dot_or_dotdot(cdir->d_name) || !fspathcmp(cdir->d_name, ".git"))
                                                                               ^
                                                                                {
/datasets/git/dir.c:2292:31: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        if (simplify_away(path->buf, path->len, pathspec))
                                     ^
/datasets/git/dir.c:2292:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (simplify_away(path->buf, path->len, pathspec))
                                                          ^
                                                           {
/datasets/git/dir.c:2295:57: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        dtype = resolve_dtype(cdir->d_type, istate, path->buf, path->len);
                                                               ^
/datasets/git/dir.c:2298:61: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        has_path_in_index = !!index_file_exists(istate, path->buf, path->len,
                                                                   ^
/datasets/git/dir.c:2300:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (dtype != DT_DIR && has_path_in_index)
                                                 ^
                                                  {
/datasets/git/dir.c:2321:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((dir->flags & DIR_COLLECT_KILLED_ONLY) &&
             ^            ~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:2324:52: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
            (directory_exists_in_index(istate, path->buf, path->len) == index_nonexistent))
                                                          ^
/datasets/git/dir.c:2324:85: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            (directory_exists_in_index(istate, path->buf, path->len) == index_nonexistent))
                                                                                           ^
                                                                                            {
/datasets/git/dir.c:2333:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (excluded && !(dir->flags & (DIR_SHOW_IGNORED|DIR_SHOW_IGNORED_TOO)))
                          ^            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:2333:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (excluded && !(dir->flags & (DIR_SHOW_IGNORED|DIR_SHOW_IGNORED_TOO)))
                                        ^~~~~~~~~~~~~~~~
/datasets/git/dir.c:2333:74: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (excluded && !(dir->flags & (DIR_SHOW_IGNORED|DIR_SHOW_IGNORED_TOO)))
                                                                                ^
                                                                                 {
/datasets/git/dir.c:2348:23: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                       path->buf, path->len,
                                                  ^
/datasets/git/dir.c:2353:52: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                    !match_pathspec(istate, pathspec, path->buf, path->len,
                                                                 ^
/datasets/git/dir.c:2355:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                    0 /* is_dir */))
                                                    ^
                                                     {
/datasets/git/dir.c:2357:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (excluded)
                             ^
                              {
/datasets/git/dir.c:2365:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!dir)
                 ^
                  {
/datasets/git/dir.c:2367:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(dir->untracked, dir->untracked_nr + 1,
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/dir.c:2378:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/dir.c:2380:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!untracked)
                       ^
                        {
/datasets/git/dir.c:2389:4: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memset(&untracked->stat_data, 0, sizeof(untracked->stat_data));
                        ^~~~~~
/datasets/git/dir.c:2389:4: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                        memset(&untracked->stat_data, 0, sizeof(untracked->stat_data));
                        ^~~~~~
/datasets/git/dir.c:2399:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (untracked->check_only != !!check_only)
                                                  ^
                                                   {
/datasets/git/dir.c:2411:40: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                prep_exclude(dir, istate, path->buf, path->len);
                                                     ^
/datasets/git/dir.c:2413:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/dir.c:2414:40: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                prep_exclude(dir, istate, path->buf, path->len);
                                                     ^
/datasets/git/dir.c:2427:14: warning: variable 'c_path' is not initialized [cppcoreguidelines-init-variables]
        const char *c_path;
                    ^
                           = NULL
/datasets/git/dir.c:2429:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(cdir, 0, sizeof(*cdir));
        ^~~~~~
/datasets/git/dir.c:2429:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(cdir, 0, sizeof(*cdir));
        ^~~~~~
/datasets/git/dir.c:2431:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (valid_cached_dir(dir, untracked, istate, path, check_only))
                                                                       ^
                                                                        {
/datasets/git/dir.c:2435:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!cdir->fdir)
                        ^
                         {
/datasets/git/dir.c:2441:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!cdir->fdir)
                        ^
                         {
/datasets/git/dir.c:2448:17: warning: variable 'de' is not initialized [cppcoreguidelines-init-variables]
        struct dirent *de;
                       ^
                          = NULL
/datasets/git/dir.c:2448:17: warning: variable name 'de' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/dir.c:2461:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (cdir->nr_dirs < cdir->untracked->dirs_nr) {
        ^
/datasets/git/dir.c:2461:25: warning: Access to field 'dirs_nr' results in a dereference of a null pointer (loaded from field 'untracked') [clang-analyzer-core.NullDereference]
        while (cdir->nr_dirs < cdir->untracked->dirs_nr) {
                               ^
/datasets/git/dir.c:217:6: note: Assuming the condition is false
        if ((dir->flags & exclusive_flags) == exclusive_flags)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:217:2: note: Taking false branch
        if ((dir->flags & exclusive_flags) == exclusive_flags)
        ^
/datasets/git/dir.c:225:11: note: 'prefix_len' is 0
        prefix = prefix_len ? pathspec->items[0].match : "";
                 ^~~~~~~~~~
/datasets/git/dir.c:225:11: note: '?' condition is false
/datasets/git/dir.c:228:2: note: Calling 'read_directory'
        read_directory(dir, istate, prefix, prefix_len, pathspec);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:2992:6: note: Assuming the condition is false
        if (has_symlink_leading_path(path, len)) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:2992:2: note: Taking false branch
        if (has_symlink_leading_path(path, len)) {
        ^
/datasets/git/dir.c:2998:7: note: 'untracked' is null
        if (!untracked)
             ^~~~~~~~~
/datasets/git/dir.c:2998:2: note: Taking true branch
        if (!untracked)
        ^
/datasets/git/dir.c:3004:7: note: 'len' is 0
        if (!len || treat_leading_path(dir, istate, path, len, pathspec))
             ^~~
/datasets/git/dir.c:3004:11: note: Left side of '||' is true
        if (!len || treat_leading_path(dir, istate, path, len, pathspec))
                 ^
/datasets/git/dir.c:3005:3: note: Calling 'read_directory_recursive'
                read_directory_recursive(dir, istate, path, len, untracked, 0, 0, pathspec);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:2563:2: note: Taking false branch
        if (open_cached_dir(&cdir, dir, untracked, istate, &path, check_only))
        ^
/datasets/git/dir.c:2567:6: note: 'untracked' is null
        if (untracked)
            ^~~~~~~~~
/datasets/git/dir.c:2567:2: note: Taking false branch
        if (untracked)
        ^
/datasets/git/dir.c:2570:2: note: Loop condition is true.  Entering loop body
        while (!read_cached_dir(&cdir)) {
        ^
/datasets/git/dir.c:2576:7: note: 'state' is > 'dir_state'
                if (state > dir_state)
                    ^~~~~
/datasets/git/dir.c:2576:3: note: Taking true branch
                if (state > dir_state)
                ^
/datasets/git/dir.c:2580:7: note: Assuming 'state' is equal to path_recurse
                if (state == path_recurse) {
                    ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:2580:3: note: Taking true branch
                if (state == path_recurse) {
                ^
/datasets/git/dir.c:2582:4: note: Value assigned to 'ud'
                        ud = lookup_untracked(dir->untracked, untracked,
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:2587:19: note: Passing value via 5th parameter 'untracked'
                                                         path.len, ud,
                                                                   ^~
/datasets/git/dir.c:2586:5: note: Calling 'read_directory_recursive'
                                read_directory_recursive(dir, istate, path.buf,
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:2563:34: note: Passing 'untracked' via 3rd parameter 'untracked'
        if (open_cached_dir(&cdir, dir, untracked, istate, &path, check_only))
                                        ^~~~~~~~~
/datasets/git/dir.c:2563:6: note: Calling 'open_cached_dir'
        if (open_cached_dir(&cdir, dir, untracked, istate, &path, check_only))
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:2430:2: note: The value of 'untracked' is assigned to 'cdir.untracked'
        cdir->untracked = untracked;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:2431:6: note: Assuming the condition is true
        if (valid_cached_dir(dir, untracked, istate, path, check_only))
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:2431:2: note: Taking true branch
        if (valid_cached_dir(dir, untracked, istate, path, check_only))
        ^
/datasets/git/dir.c:2563:6: note: Returning from 'open_cached_dir'
        if (open_cached_dir(&cdir, dir, untracked, istate, &path, check_only))
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:2563:2: note: Taking false branch
        if (open_cached_dir(&cdir, dir, untracked, istate, &path, check_only))
        ^
/datasets/git/dir.c:2567:6: note: Assuming 'untracked' is null
        if (untracked)
            ^~~~~~~~~
/datasets/git/dir.c:2567:2: note: Taking false branch
        if (untracked)
        ^
/datasets/git/dir.c:2570:10: note: Calling 'read_cached_dir'
        while (!read_cached_dir(&cdir)) {
                ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:2450:12: note: Field 'fdir' is null
        if (cdir->fdir) {
                  ^
/datasets/git/dir.c:2450:2: note: Taking false branch
        if (cdir->fdir) {
        ^
/datasets/git/dir.c:2461:25: note: Access to field 'dirs_nr' results in a dereference of a null pointer (loaded from field 'untracked')
        while (cdir->nr_dirs < cdir->untracked->dirs_nr) {
                               ^     ~~~~~~~~~
/datasets/git/dir.c:2462:31: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
                struct untracked_cache_dir *d = cdir->untracked->dirs[cdir->nr_dirs];
                                            ^
/datasets/git/dir.c:2473:31: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
                struct untracked_cache_dir *d = cdir->untracked;
                                            ^
/datasets/git/dir.c:2482:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cdir->fdir)
                       ^
                        {
/datasets/git/dir.c:2506:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (dir->flags & DIR_SHOW_IGNORED)
                    ^            ~~~~~~~~~~~~~~~~
/datasets/git/dir.c:2506:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (dir->flags & DIR_SHOW_IGNORED)
                                                  ^
                                                   {
/datasets/git/dir.c:2507:41: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        dir_add_name(dir, istate, path->buf, path->len);
                                                             ^
/datasets/git/dir.c:2508:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                else if ((dir->flags & DIR_SHOW_IGNORED_TOO) ||
                          ^            ~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:2509:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ((dir->flags & DIR_COLLECT_IGNORED) &&
                          ^            ~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:2510:40: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        exclude_matches_pathspec(path->buf, path->len,
                                                            ^
/datasets/git/dir.c:2511:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                 pathspec)))
                                                            ^
                                                             {
/datasets/git/dir.c:2512:44: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        dir_add_ignored(dir, istate, path->buf, path->len);
                                                                ^
/datasets/git/dir.c:2516:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (dir->flags & DIR_SHOW_IGNORED)
                    ^            ~~~~~~~~~~~~~~~~
/datasets/git/dir.c:2516:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (dir->flags & DIR_SHOW_IGNORED)
                                                  ^
                                                   {
/datasets/git/dir.c:2518:40: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                dir_add_name(dir, istate, path->buf, path->len);
                                                     ^
/datasets/git/dir.c:2519:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cdir->fdir)
                               ^
                                {
/datasets/git/dir.c:2547:28: warning: function 'read_directory_recursive' is within a recursive call chain [misc-no-recursion]
static enum path_treatment read_directory_recursive(struct dir_struct *dir,
                           ^
/datasets/git/dir.c:2547:28: warning: function 'read_directory_recursive' has cognitive complexity of 30 (threshold 25) [readability-function-cognitive-complexity]
/datasets/git/dir.c:2563:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (open_cached_dir(&cdir, dir, untracked, istate, &path, check_only))
        ^
/datasets/git/dir.c:2567:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (untracked)
        ^
/datasets/git/dir.c:2570:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (!read_cached_dir(&cdir)) {
        ^
/datasets/git/dir.c:2576:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (state > dir_state)
                ^
/datasets/git/dir.c:2580:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (state == path_recurse) {
                ^
/datasets/git/dir.c:2589:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (subdir_state > dir_state)
                        ^
/datasets/git/dir.c:2592:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (pathspec &&
                        ^
/datasets/git/dir.c:2592:17: note: +1
                        if (pathspec &&
                                     ^
/datasets/git/dir.c:2599:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (check_only) {
                ^
/datasets/git/dir.c:2600:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (stop_at_first_file) {
                        ^
/datasets/git/dir.c:2616:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (dir_state >= path_excluded) {
                                ^
/datasets/git/dir.c:2623:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (dir_state == path_untracked) {
                        ^
/datasets/git/dir.c:2624:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (cdir.fdir)
                                ^
/datasets/git/dir.c:2558:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        enum path_treatment state, subdir_state, dir_state = path_none;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:2558:22: warning: variable 'state' is not initialized [cppcoreguidelines-init-variables]
        enum path_treatment state, subdir_state, dir_state = path_none;
                            ^
/datasets/git/dir.c:2558:29: warning: variable 'subdir_state' is not initialized [cppcoreguidelines-init-variables]
        enum path_treatment state, subdir_state, dir_state = path_none;
                                   ^
/datasets/git/dir.c:2563:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (open_cached_dir(&cdir, dir, untracked, istate, &path, check_only))
                                                                              ^
                                                                               {
/datasets/git/dir.c:2567:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (untracked)
                      ^
                       {
/datasets/git/dir.c:2570:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (!read_cached_dir(&cdir)) {
        ^
/datasets/git/dir.c:2576:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (state > dir_state)
                                      ^
                                       {
/datasets/git/dir.c:2581:32: warning: variable 'ud' is not initialized [cppcoreguidelines-init-variables]
                        struct untracked_cache_dir *ud;
                                                    ^
                                                       = NULL
/datasets/git/dir.c:2581:32: warning: variable name 'ud' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/dir.c:2584:12: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                              path.len - baselen);
                                              ^
/datasets/git/dir.c:2587:9: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                                         path.len, ud,
                                                         ^
/datasets/git/dir.c:2589:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (subdir_state > dir_state)
                                                     ^
                                                      {
/datasets/git/dir.c:2593:52: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                            !match_pathspec(istate, pathspec, path.buf, path.len,
                                                                        ^
/datasets/git/dir.c:2595:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                            0 /* do NOT special case dirs */))
                                                                              ^
                                                                               {
/datasets/git/dir.c:2624:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (cdir.fdir)
                                              ^
                                               {
/datasets/git/dir.c:2643:31: warning: parameter name 'p1' is too short, expected at least 3 characters [readability-identifier-length]
int cmp_dir_entry(const void *p1, const void *p2)
                              ^
/datasets/git/dir.c:2643:47: warning: parameter name 'p2' is too short, expected at least 3 characters [readability-identifier-length]
int cmp_dir_entry(const void *p1, const void *p2)
                                              ^
/datasets/git/dir.c:2645:26: warning: variable name 'e1' is too short, expected at least 3 characters [readability-identifier-length]
        const struct dir_entry *e1 = *(const struct dir_entry **)p1;
                                ^
/datasets/git/dir.c:2646:26: warning: variable name 'e2' is too short, expected at least 3 characters [readability-identifier-length]
        const struct dir_entry *e2 = *(const struct dir_entry **)p2;
                                ^
/datasets/git/dir.c:2652:83: warning: parameter name 'in' is too short, expected at least 3 characters [readability-identifier-length]
int check_dir_entry_contains(const struct dir_entry *out, const struct dir_entry *in)
                                                                                  ^
/datasets/git/dir.c:2664:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/dir.c:2666:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int prevlen, baselen;
        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:2666:6: warning: variable 'prevlen' is not initialized [cppcoreguidelines-init-variables]
        int prevlen, baselen;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/dir.c:2666:15: warning: variable 'baselen' is not initialized [cppcoreguidelines-init-variables]
        int prevlen, baselen;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/dir.c:2667:14: warning: variable 'cp' is not initialized [cppcoreguidelines-init-variables]
        const char *cp;
                    ^
                       = NULL
/datasets/git/dir.c:2667:14: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/dir.c:2688:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (len && path[len - 1] == '/')
        ^
/datasets/git/dir.c:2688:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (len && path[len - 1] == '/')
                                           ^
                                            {
/datasets/git/dir.c:2690:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!len)
                 ^
                  {
/datasets/git/dir.c:2693:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&cdir, 0, sizeof(cdir));
        ^~~~~~
/datasets/git/dir.c:2693:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&cdir, 0, sizeof(cdir));
        ^~~~~~
/datasets/git/dir.c:2696:2: warning: Value stored to 'prevlen' is never read [clang-analyzer-deadcode.DeadStores]
        prevlen = 0;
        ^         ~
/datasets/git/dir.c:2696:2: note: Value stored to 'prevlen' is never read
        prevlen = 0;
        ^         ~
/datasets/git/dir.c:2697:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/dir.c:2701:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!cp)
                        ^
                         {
/datasets/git/dir.c:2703:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/dir.c:2704:14: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        baselen = cp - path;
                                  ^
/datasets/git/dir.c:2707:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!is_directory(sb.buf))
                                          ^
                                           {
/datasets/git/dir.c:2716:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (state != path_recurse)
                                          ^
                                           {
/datasets/git/dir.c:2718:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (len <= baselen)
                                   ^
                                    {
/datasets/git/dir.c:2732:23: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        static struct strbuf sb = STRBUF_INIT;
                             ^
/datasets/git/dir.c:2735:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (sb.len)
                   ^
                    {
/datasets/git/dir.c:2737:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (uname(&uts) < 0)
                            ^
                             {
/datasets/git/dir.c:2744:61: warning: parameter name 'uc' is too short, expected at least 3 characters [readability-identifier-length]
static int ident_in_untracked(const struct untracked_cache *uc)
                                                            ^
/datasets/git/dir.c:2755:57: warning: parameter name 'uc' is too short, expected at least 3 characters [readability-identifier-length]
static void set_untracked_ident(struct untracked_cache *uc)
                                                        ^
/datasets/git/dir.c:2770:8: warning: variable 'val' is not initialized [cppcoreguidelines-init-variables]
        char *val;
              ^
                  = NULL
/datasets/git/dir.c:2778:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !strcmp(val, "all"))
                                ^
                                 {
/datasets/git/dir.c:2785:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return DIR_SHOW_OTHER_DIRECTORIES | DIR_HIDE_EMPTY_DIRECTORIES;
               ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:2790:26: warning: variable name 'uc' is too short, expected at least 3 characters [readability-identifier-length]
        struct untracked_cache *uc = xcalloc(1, sizeof(*uc));
                                ^
/datasets/git/dir.c:2791:26: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        strbuf_init(&uc->ident, 100);
                                ^
/datasets/git/dir.c:2796:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        istate->cache_changed |= UNTRACKED_CHANGED;
        ^
/datasets/git/dir.c:2796:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        istate->cache_changed |= UNTRACKED_CHANGED;
                                 ^
/datasets/git/./refs/../cache.h:305:28: note: expanded from macro 'UNTRACKED_CHANGED'
#define UNTRACKED_CHANGED       (1 << 7)
                                 ^
/datasets/git/dir.c:2816:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                istate->cache_changed |= UNTRACKED_CHANGED;
                ^
/datasets/git/dir.c:2816:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                istate->cache_changed |= UNTRACKED_CHANGED;
                                         ^
/datasets/git/./refs/../cache.h:305:28: note: expanded from macro 'UNTRACKED_CHANGED'
#define UNTRACKED_CHANGED       (1 << 7)
                                 ^
/datasets/git/dir.c:2825:30: warning: variable 'root' is not initialized [cppcoreguidelines-init-variables]
        struct untracked_cache_dir *root;
                                    ^
                                         = NULL
/datasets/git/dir.c:2828:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!dir->untracked)
                            ^
                             {
/datasets/git/dir.c:2830:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (untracked_cache_disabled < 0)
                                         ^
                                          {
/datasets/git/dir.c:2832:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (untracked_cache_disabled)
                                     ^
                                      {
/datasets/git/dir.c:2842:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (dir->unmanaged_exclude_files)
                                         ^
                                          {
/datasets/git/dir.c:2851:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (base_len || (pathspec && pathspec->nr))
                                                   ^
                                                    {
/datasets/git/dir.c:2855:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (dir->flags & (DIR_SHOW_IGNORED | DIR_SHOW_IGNORED_TOO |
            ^            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:2855:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (dir->flags & (DIR_SHOW_IGNORED | DIR_SHOW_IGNORED_TOO |
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:2856:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        DIR_COLLECT_IGNORED))
                                             ^
                                              {
/datasets/git/dir.c:2864:6: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
            strcmp(dir->exclude_per_dir, dir->untracked->exclude_per_dir))
            ^
                                                                          != 0
/datasets/git/dir.c:2864:68: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            strcmp(dir->exclude_per_dir, dir->untracked->exclude_per_dir))
                                                                          ^
                                                                           {
/datasets/git/dir.c:2871:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (dir->exclude_list_group[EXC_CMDL].nr)
                                                 ^
                                                  {
/datasets/git/dir.c:2925:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FLEX_ALLOC_STR(dir->untracked->root, name, "");
                ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^
/datasets/git/./git-compat-util.h:1151:47: note: expanded from macro 'FLEX_ALLOC_MEM'
#define FLEX_ALLOC_MEM(x, flexname, buf, len) do { \
                                              ^
/datasets/git/dir.c:2925:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                FLEX_ALLOC_STR(dir->untracked->root, name, "");
                ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/dir.c:2925:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                FLEX_ALLOC_STR(dir->untracked->root, name, "");
                ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/dir.c:2926:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                istate->cache_changed |= UNTRACKED_CHANGED;
                ^
/datasets/git/dir.c:2926:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                istate->cache_changed |= UNTRACKED_CHANGED;
                                         ^
/datasets/git/./refs/../cache.h:305:28: note: expanded from macro 'UNTRACKED_CHANGED'
#define UNTRACKED_CHANGED       (1 << 7)
                                 ^
/datasets/git/dir.c:2952:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!trace2_is_enabled())
                                 ^
                                  {
/datasets/git/dir.c:2969:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!dir->untracked)
                            ^
                             {
/datasets/git/dir.c:2986:30: warning: variable 'untracked' is not initialized [cppcoreguidelines-init-variables]
        struct untracked_cache_dir *untracked;
                                    ^
                                              = NULL
/datasets/git/dir.c:2998:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!untracked)
                       ^
                        {
/datasets/git/dir.c:3004:67: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!len || treat_leading_path(dir, istate, path, len, pathspec))
                                                                         ^
                                                                          {
/datasets/git/dir.c:3006:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        QSORT(dir->entries, dir->nr, cmp_dir_entry);
        ^
/datasets/git/./git-compat-util.h:1304:56: note: expanded from macro 'QSORT'
#define QSORT(base, n, compar) sane_qsort((base), (n), sizeof(*(base)), compar)
                                                       ^
/datasets/git/dir.c:3007:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        QSORT(dir->ignored, dir->ignored_nr, cmp_dir_entry);
        ^
/datasets/git/./git-compat-util.h:1304:56: note: expanded from macro 'QSORT'
#define QSORT(base, n, compar) sane_qsort((base), (n), sizeof(*(base)), compar)
                                                       ^
/datasets/git/dir.c:3015:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (force_untracked_cache < 0)
                                              ^
                                               {
/datasets/git/dir.c:3018:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (force_untracked_cache < 0)
                                              ^
                                               {
/datasets/git/dir.c:3024:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                     dir->untracked->dir_invalidated))
                                                      ^
                                                       {
/datasets/git/dir.c:3025:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        istate->cache_changed |= UNTRACKED_CHANGED;
                        ^
/datasets/git/dir.c:3025:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        istate->cache_changed |= UNTRACKED_CHANGED;
                                                 ^
/datasets/git/./refs/../cache.h:305:28: note: expanded from macro 'UNTRACKED_CHANGED'
#define UNTRACKED_CHANGED       (1 << 7)
                                 ^
/datasets/git/dir.c:3027:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        FREE_AND_NULL(dir->untracked);
                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/dir.c:3034:29: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
int file_exists(const char *f)
                            ^
/datasets/git/dir.c:3036:14: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat sb;
                    ^
/datasets/git/dir.c:3042:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo != the_repository)
                                   ^
                                    {
/datasets/git/dir.c:3048:27: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static int cmp_icase(char a, char b)
                          ^
/datasets/git/dir.c:3048:35: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static int cmp_icase(char a, char b)
                                  ^
/datasets/git/dir.c:3050:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (a == b)
                   ^
                    {
/datasets/git/dir.c:3052:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ignore_case)
                        ^
                         {
/datasets/git/dir.c:3068:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*dir && *subdir && !cmp_icase(*dir, *subdir)) {
        ^
/datasets/git/dir.c:3075:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*dir && *subdir)
                            ^
                             {
/datasets/git/dir.c:3078:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!*subdir)
                     ^
                      {
/datasets/git/dir.c:3082:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_dir_sep(dir[-1]))
                                ^
                                 {
/datasets/git/dir.c:3091:8: warning: variable 'cwd' is not initialized [cppcoreguidelines-init-variables]
        char *cwd;
              ^
                  = NULL
/datasets/git/dir.c:3092:6: warning: variable 'rc' is not initialized [cppcoreguidelines-init-variables]
        int rc;
            ^
               = 0
/datasets/git/dir.c:3092:6: warning: variable name 'rc' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/dir.c:3094:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!dir)
                 ^
                  {
/datasets/git/dir.c:3106:17: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct dirent *e;
                       ^
                         = NULL
/datasets/git/dir.c:3106:17: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/dir.c:3109:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!dir)
                 ^
                  {
/datasets/git/dir.c:3113:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (e)
              ^
               {
/datasets/git/dir.c:3120:7: warning: function 'git_url_basename' has cognitive complexity of 48 (threshold 25) [readability-function-cognitive-complexity]
char *git_url_basename(const char *repo, int is_bundle, int is_bare)
      ^
/datasets/git/dir.c:3130:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!start)
        ^
/datasets/git/dir.c:3132:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/dir.c:3140:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (ptr = start; ptr < end && !is_dir_sep(*ptr); ptr++) {
        ^
/datasets/git/dir.c:3140:30: note: +1
        for (ptr = start; ptr < end && !is_dir_sep(*ptr); ptr++) {
                                    ^
/datasets/git/dir.c:3141:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*ptr == '@')
                ^
/datasets/git/dir.c:3148:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (start < end && (is_dir_sep(end[-1]) || isspace(end[-1])))
        ^
/datasets/git/dir.c:3148:21: note: +1
        while (start < end && (is_dir_sep(end[-1]) || isspace(end[-1])))
                           ^
/datasets/git/dir.c:3148:45: note: +1
        while (start < end && (is_dir_sep(end[-1]) || isspace(end[-1])))
                                                   ^
/datasets/git/dir.c:3150:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (end - start > 5 && is_dir_sep(end[-5]) &&
        ^
/datasets/git/dir.c:3150:45: note: +1
        if (end - start > 5 && is_dir_sep(end[-5]) &&
                                                   ^
/datasets/git/dir.c:3153:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (start < end && is_dir_sep(end[-1]))
                ^
/datasets/git/dir.c:3153:22: note: +1
                while (start < end && is_dir_sep(end[-1]))
                                   ^
/datasets/git/dir.c:3162:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (end - start < 0)
        ^
/datasets/git/dir.c:3174:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (memchr(start, '/', end - start) == NULL
        ^
/datasets/git/dir.c:3175:6: note: +1
            && memchr(start, ':', end - start) != NULL) {
            ^
/datasets/git/dir.c:3177:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (start < ptr && isdigit(ptr[-1]) && ptr[-1] != ':')
                ^
/datasets/git/dir.c:3177:42: note: +1
                while (start < ptr && isdigit(ptr[-1]) && ptr[-1] != ':')
                                                       ^
/datasets/git/dir.c:3179:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (start < ptr && ptr[-1] == ':')
                ^
/datasets/git/dir.c:3179:19: note: +1
                if (start < ptr && ptr[-1] == ':')
                                ^
/datasets/git/dir.c:3190:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (start < ptr && !is_dir_sep(ptr[-1]) && ptr[-1] != ':')
        ^
/datasets/git/dir.c:3190:45: note: +1
        while (start < ptr && !is_dir_sep(ptr[-1]) && ptr[-1] != ':')
                                                   ^
/datasets/git/dir.c:3198:42: note: +1, including nesting penalty of 0, nesting level increased to 1
        strip_suffix_mem(start, &len, is_bundle ? ".bundle" : ".git");
                                                ^
/datasets/git/dir.c:3200:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!len || (len == 1 && *start == '/'))
        ^
/datasets/git/dir.c:3200:11: note: +1
        if (!len || (len == 1 && *start == '/'))
                 ^
/datasets/git/dir.c:3200:24: note: +1
        if (!len || (len == 1 && *start == '/'))
                              ^
/datasets/git/dir.c:3204:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (is_bare)
        ^
/datasets/git/dir.c:3206:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/dir.c:3212:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (*dir) {
        ^
/datasets/git/dir.c:3215:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (end = dir; *end; ++end) {
                ^
/datasets/git/dir.c:3217:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if ((unsigned char)ch < '\x20')
                        ^
/datasets/git/dir.c:3219:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (isspace(ch)) {
                        ^
/datasets/git/dir.c:3220:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (prev_space)
                                ^
/datasets/git/dir.c:3223:6: note: +1, nesting level increased to 3
                        } else
                          ^
/datasets/git/dir.c:3228:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (out > dir && prev_space)
                ^
/datasets/git/dir.c:3228:17: note: +1
                if (out > dir && prev_space)
                              ^
/datasets/git/dir.c:3120:42: warning: 2 adjacent parameters of 'git_url_basename' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
char *git_url_basename(const char *repo, int is_bundle, int is_bare)
                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:3120:46: note: the first parameter in the range is 'is_bundle'
char *git_url_basename(const char *repo, int is_bundle, int is_bare)
                                             ^~~~~~~~~
/datasets/git/dir.c:3120:61: note: the last parameter in the range is 'is_bare'
char *git_url_basename(const char *repo, int is_bundle, int is_bare)
                                                            ^~~~~~~
/datasets/git/dir.c:3122:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *end = repo + strlen(repo), *start, *ptr;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:3122:42: warning: variable 'start' is not initialized [cppcoreguidelines-init-variables]
        const char *end = repo + strlen(repo), *start, *ptr;
                                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/dir.c:3122:50: warning: variable 'ptr' is not initialized [cppcoreguidelines-init-variables]
        const char *end = repo + strlen(repo), *start, *ptr;
                                                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/dir.c:3123:9: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        size_t len;
               ^
                   = 0
/datasets/git/dir.c:3124:8: warning: variable 'dir' is not initialized [cppcoreguidelines-init-variables]
        char *dir;
              ^
                  = NULL
/datasets/git/dir.c:3130:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!start)
                   ^
                    {
/datasets/git/dir.c:3132:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/dir.c:3140:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (ptr = start; ptr < end && !is_dir_sep(*ptr); ptr++) {
        ^
/datasets/git/dir.c:3140:20: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ptr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (ptr = start; ptr < end && !is_dir_sep(*ptr); ptr++) {
                          ^
/datasets/git/dir.c:3141:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*ptr == '@')
                                ^
                                 {
/datasets/git/dir.c:3148:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (start < end && (is_dir_sep(end[-1]) || isspace(end[-1])))
        ^
/datasets/git/dir.c:3148:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'start' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (start < end && (is_dir_sep(end[-1]) || isspace(end[-1])))
               ^
/datasets/git/dir.c:3148:48: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        while (start < end && (is_dir_sep(end[-1]) || isspace(end[-1])))
                                                      ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/dir.c:3148:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (start < end && (is_dir_sep(end[-1]) || isspace(end[-1])))
                                                                        ^
                                                                         {
/datasets/git/dir.c:3150:20: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (end - start > 5 && is_dir_sep(end[-5]) &&
                          ^
/datasets/git/dir.c:3150:41: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (end - start > 5 && is_dir_sep(end[-5]) &&
                                               ^
/datasets/git/dir.c:3152:10: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                end -= 5;
                       ^
/datasets/git/dir.c:3153:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (start < end && is_dir_sep(end[-1]))
                ^
/datasets/git/dir.c:3153:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'start' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (start < end && is_dir_sep(end[-1]))
                       ^
/datasets/git/dir.c:3153:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (start < end && is_dir_sep(end[-1]))
                                                          ^
                                                           {
/datasets/git/dir.c:3162:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (end - start < 0)
                            ^
                             {
/datasets/git/dir.c:3177:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (start < ptr && isdigit(ptr[-1]) && ptr[-1] != ':')
                ^
/datasets/git/dir.c:3177:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'start' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (start < ptr && isdigit(ptr[-1]) && ptr[-1] != ':')
                       ^
/datasets/git/dir.c:3177:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                while (start < ptr && isdigit(ptr[-1]) && ptr[-1] != ':')
                                      ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/dir.c:3122:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        const char *end = repo + strlen(repo), *start, *ptr;
        ^
/datasets/git/dir.c:3177:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (start < ptr && isdigit(ptr[-1]) && ptr[-1] != ':')
                                                                         ^
                                                                          {
/datasets/git/dir.c:3179:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (start < ptr && ptr[-1] == ':')
                                                  ^
                                                   {
/datasets/git/dir.c:3190:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (start < ptr && !is_dir_sep(ptr[-1]) && ptr[-1] != ':')
        ^
/datasets/git/dir.c:3190:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'start' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (start < ptr && !is_dir_sep(ptr[-1]) && ptr[-1] != ':')
               ^
/datasets/git/dir.c:3190:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (start < ptr && !is_dir_sep(ptr[-1]) && ptr[-1] != ':')
                                                                     ^
                                                                      {
/datasets/git/dir.c:3200:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!len || (len == 1 && *start == '/'))
                                                ^
                                                 {
/datasets/git/dir.c:3204:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_bare)
                    ^
                     {
/datasets/git/dir.c:3206:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/dir.c:3215:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (end = dir; *end; ++end) {
                ^
/datasets/git/dir.c:3215:19: warning: backward branch (for loop) is ID-dependent due to variable reference to 'end' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (end = dir; *end; ++end) {
                                ^
/datasets/git/dir.c:3216:9: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
                        char ch = *end;
                             ^
/datasets/git/dir.c:3217:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if ((unsigned char)ch < '\x20')
                                                       ^
                                                        {
/datasets/git/dir.c:3219:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (isspace(ch)) {
                            ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/dir.c:3220:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (prev_space)
                                               ^
                                                {
/datasets/git/dir.c:3223:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        } else
                              ^
                               {
/datasets/git/dir.c:3228:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (out > dir && prev_space)
                                            ^
                                             {
/datasets/git/dir.c:3238:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (dir < end - 1 && is_dir_sep(end[-1]))
        ^
/datasets/git/dir.c:3238:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'end' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (dir < end - 1 && is_dir_sep(end[-1]))
               ^
/datasets/git/dir.c:3238:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (dir < end - 1 && is_dir_sep(end[-1]))
                                                    ^
                                                     {
/datasets/git/dir.c:3243:12: warning: function 'remove_dir_recurse' is within a recursive call chain [misc-no-recursion]
static int remove_dir_recurse(struct strbuf *path, int flag, int *kept_up)
           ^
/datasets/git/dir.c:3243:12: note: example recursive call chain, starting from function 'remove_dir_recurse'
/datasets/git/dir.c:3292:9: note: Frame #1: function 'remove_dir_recurse' calls function 'remove_dir_recurse' here:
                        if (!remove_dir_recurse(path, flag, &kept_down))
                             ^
/datasets/git/dir.c:3292:9: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/dir.c:3243:12: warning: function 'remove_dir_recurse' has cognitive complexity of 37 (threshold 25) [readability-function-cognitive-complexity]
static int remove_dir_recurse(struct strbuf *path, int flag, int *kept_up)
           ^
/datasets/git/dir.c:3253:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((flag & REMOVE_DIR_KEEP_NESTED_GIT) &&
        ^
/datasets/git/dir.c:3253:42: note: +1
        if ((flag & REMOVE_DIR_KEEP_NESTED_GIT) &&
                                                ^
/datasets/git/dir.c:3256:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (kept_up)
                ^
/datasets/git/dir.c:3263:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!dir) {
        ^
/datasets/git/dir.c:3264:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (errno == ENOENT)
                ^
/datasets/git/dir.c:3265:25: note: +3, including nesting penalty of 2, nesting level increased to 3
                        return keep_toplevel ? -1 : 0;
                                             ^
/datasets/git/dir.c:3266:8: note: +1, nesting level increased to 2
                else if (errno == EACCES && !keep_toplevel)
                     ^
/datasets/git/dir.c:3266:28: note: +1
                else if (errno == EACCES && !keep_toplevel)
                                         ^
/datasets/git/dir.c:3272:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/dir.c:3278:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while ((e = readdir_skip_dot_and_dotdot(dir)) != NULL) {
        ^
/datasets/git/dir.c:3283:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (lstat(path->buf, &st)) {
                ^
/datasets/git/dir.c:3284:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (errno == ENOENT)
                        ^
/datasets/git/dir.c:3291:10: note: +1, nesting level increased to 2
                } else if (S_ISDIR(st.st_mode)) {
                       ^
/datasets/git/dir.c:3292:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!remove_dir_recurse(path, flag, &kept_down))
                        ^
/datasets/git/dir.c:3294:10: note: +1, nesting level increased to 2
                } else if (!only_empty &&
                       ^
/datasets/git/dir.c:3294:26: note: +1
                } else if (!only_empty &&
                                       ^
/datasets/git/dir.c:3295:27: note: +1
                           (!unlink(path->buf) || errno == ENOENT)) {
                                               ^
/datasets/git/dir.c:3306:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!ret && !keep_toplevel && !kept_down) {
        ^
/datasets/git/dir.c:3306:29: note: +1
        if (!ret && !keep_toplevel && !kept_down) {
                                   ^
/datasets/git/dir.c:3307:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!purge_original_cwd &&
                ^
/datasets/git/dir.c:3308:34: note: +1
                    startup_info->original_cwd &&
                                               ^
/datasets/git/dir.c:3311:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/dir.c:3312:49: note: +3, including nesting penalty of 2, nesting level increased to 3
                        ret = (!rmdir(path->buf) || errno == ENOENT) ? 0 : -1;
                                                                     ^
/datasets/git/dir.c:3312:29: note: +1
                        ret = (!rmdir(path->buf) || errno == ENOENT) ? 0 : -1;
                                                 ^
/datasets/git/dir.c:3313:9: note: +1, nesting level increased to 1
        } else if (kept_up)
               ^
/datasets/git/dir.c:3245:7: warning: variable 'dir' is not initialized [cppcoreguidelines-init-variables]
        DIR *dir;
             ^
                 = NULL
/datasets/git/dir.c:3246:17: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct dirent *e;
                       ^
                         = NULL
/datasets/git/dir.c:3246:17: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/dir.c:3247:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int ret = 0, original_len = path->len, len, kept_down = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:3247:30: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int ret = 0, original_len = path->len, len, kept_down = 0;
                                    ^
/datasets/git/dir.c:3247:41: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int ret = 0, original_len = path->len, len, kept_down = 0;
                                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/dir.c:3248:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int only_empty = (flag & REMOVE_DIR_EMPTY_ONLY);
                          ^~~~
/datasets/git/dir.c:3249:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int keep_toplevel = (flag & REMOVE_DIR_KEEP_TOPLEVEL);
                             ^~~~
/datasets/git/dir.c:3250:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int purge_original_cwd = (flag & REMOVE_DIR_PURGE_ORIGINAL_CWD);
                                  ^~~~
/datasets/git/dir.c:3253:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((flag & REMOVE_DIR_KEEP_NESTED_GIT) &&
             ^~~~
/datasets/git/dir.c:3256:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (kept_up)
                            ^
                             {
/datasets/git/dir.c:3261:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        flag &= ~REMOVE_DIR_KEEP_TOPLEVEL;
        ^~~~
/datasets/git/dir.c:3246:2: note: inferred assignment of ID-dependent value from ID-dependent variable dir [altera-id-dependent-backward-branch]
        struct dirent *e;
        ^
/datasets/git/dir.c:3261:10: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
        flag &= ~REMOVE_DIR_KEEP_TOPLEVEL;
                ^
/datasets/git/dir.c:3264:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (errno == ENOENT)
                                    ^
                                     {
/datasets/git/dir.c:3266:3: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                else if (errno == EACCES && !keep_toplevel)
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:3266:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (errno == EACCES && !keep_toplevel)
                                                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/dir.c:3272:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/dir.c:3277:8: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        len = path->len;
              ^
/datasets/git/dir.c:3278:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((e = readdir_skip_dot_and_dotdot(dir)) != NULL) {
        ^
/datasets/git/dir.c:3278:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'e' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((e = readdir_skip_dot_and_dotdot(dir)) != NULL) {
               ^
/datasets/git/dir.c:3279:15: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                struct stat st;
                            ^
/datasets/git/dir.c:3284:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (errno == ENOENT)
                                            ^
                                             {
/datasets/git/dir.c:3292:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!remove_dir_recurse(path, flag, &kept_down))
                                                                        ^
                                                                         {
/datasets/git/dir.c:3309:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !strcmp(startup_info->original_cwd, path->buf))
                                                                   ^
                                                                    {
/datasets/git/dir.c:3311:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/dir.c:3313:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else if (kept_up)
                           ^
                            {
/datasets/git/dir.c:3327:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(git_path_info_exclude, "info/exclude")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/dir.c:3334:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!excludes_file)
                           ^
                            {
/datasets/git/dir.c:3336:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (excludes_file && !access_or_warn(excludes_file, R_OK, 0))
                                                                     ^
                                                                      {
/datasets/git/dir.c:3343:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!access_or_warn(path, R_OK, 0))
                                                   ^
                                                    {
/datasets/git/dir.c:3354:55: warning: parameter name 'pl' is too short, expected at least 3 characters [readability-identifier-length]
int get_sparse_checkout_patterns(struct pattern_list *pl)
                                                      ^
/datasets/git/dir.c:3356:6: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        int res;
            ^
                = 0
/datasets/git/dir.c:3368:8: warning: variable 'slash' is not initialized [cppcoreguidelines-init-variables]
        char *slash;
              ^
                    = NULL
/datasets/git/dir.c:3375:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                char *dirs = xstrdup(name);
                ^
/datasets/git/dir.c:3370:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unlink(name) && !is_missing_file_error(errno))
                                                          ^
                                                           {
/datasets/git/dir.c:3377:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                do {
                ^
/datasets/git/dir.c:3380:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            !strcmp(startup_info->original_cwd, dirs))
                                                                      ^
                                                                       {
/datasets/git/dir.c:3382:12: warning: backward branch (do loop) is ID-dependent due to variable reference to 'dirs' and may cause performance degradation [altera-id-dependent-backward-branch]
                } while (rmdir(dirs) == 0 && (slash = strrchr(dirs, '/')));
                         ^
/datasets/git/./git-compat-util.h:427:15: note: expanded from macro 'rmdir'
#define rmdir lstat_cache_aware_rmdir
              ^
/datasets/git/dir.c:3394:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, j;
        ^~~~~~~~~
/datasets/git/dir.c:3394:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, j;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/dir.c:3394:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/dir.c:3394:9: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int i, j;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/dir.c:3394:9: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/dir.c:3395:29: warning: variable 'group' is not initialized [cppcoreguidelines-init-variables]
        struct exclude_list_group *group;
                                   ^
                                         = NULL
/datasets/git/dir.c:3396:23: warning: variable 'pl' is not initialized [cppcoreguidelines-init-variables]
        struct pattern_list *pl;
                             ^
                                = NULL
/datasets/git/dir.c:3396:23: warning: variable name 'pl' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/dir.c:3397:24: warning: variable 'stk' is not initialized [cppcoreguidelines-init-variables]
        struct exclude_stack *stk;
                              ^
                                  = NULL
/datasets/git/dir.c:3395:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct exclude_list_group *group;
        ^
/datasets/git/dir.c:3402:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (j = 0; j < group->nr; j++) {
                ^
/datasets/git/dir.c:3402:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'group' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (j = 0; j < group->nr; j++) {
                            ^
/datasets/git/dir.c:3404:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (i == EXC_DIRS)
                                          ^
                                           {
/datasets/git/dir.c:3411:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < dir->ignored_nr; i++)
        ^
/datasets/git/dir.c:3411:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'ignored_nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < dir->ignored_nr; i++)
                    ^
/datasets/git/dir.c:3411:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < dir->ignored_nr; i++)
                                             ^
                                              {
/datasets/git/dir.c:3413:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < dir->nr; i++)
        ^
/datasets/git/dir.c:3397:2: note: inferred assignment of ID-dependent value from ID-dependent member exclude_stack [altera-id-dependent-backward-branch]
        struct exclude_stack *stk;
        ^
/datasets/git/dir.c:3413:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < dir->nr; i++)
                    ^
/datasets/git/dir.c:3413:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < dir->nr; i++)
                                     ^
                                      {
/datasets/git/dir.c:3419:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (stk) {
        ^
/datasets/git/dir.c:3419:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'stk' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (stk) {
               ^
/datasets/git/dir.c:3426:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(dir, &new, sizeof(*dir));
        ^~~~~~
/datasets/git/dir.c:3426:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(dir, &new, sizeof(*dir));
        ^~~~~~
/datasets/git/dir.c:3429:8: warning: accessing fields in struct 'ondisk_untracked_cache' is inefficient due to poor alignment; currently aligned to 4 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct ondisk_untracked_cache {
       ^
/datasets/git/dir.c:3429:8: note: use "__attribute__((aligned(128)))" to align struct 'ondisk_untracked_cache' to 128 bytes
/datasets/git/dir.c:3437:8: warning: accessing fields in struct 'write_data' is inefficient due to padding; only needs 100 bytes but is using 104 bytes [altera-struct-pack-align]
struct write_data {
       ^
/datasets/git/dir.c:3437:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'write_data'
/datasets/git/dir.c:3437:8: warning: accessing fields in struct 'write_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct write_data {
       ^
/datasets/git/dir.c:3437:8: note: use "__attribute__((aligned(128)))" to align struct 'write_data' to 128 bytes
/datasets/git/dir.c:3447:49: warning: parameter name 'to' is too short, expected at least 3 characters [readability-identifier-length]
static void stat_data_to_disk(struct stat_data *to, const struct stat_data *from)
                                                ^
/datasets/git/dir.c:3460:13: warning: function 'write_one_dir' is within a recursive call chain [misc-no-recursion]
static void write_one_dir(struct untracked_cache_dir *untracked,
            ^
/datasets/git/dir.c:3460:13: note: example recursive call chain, starting from function 'write_one_dir'
/datasets/git/dir.c:3509:4: note: Frame #1: function 'write_one_dir' calls function 'write_one_dir' here:
                        write_one_dir(untracked->dirs[i], wd);
                        ^
/datasets/git/dir.c:3509:4: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/dir.c:3461:25: warning: parameter name 'wd' is too short, expected at least 3 characters [readability-identifier-length]
                          struct write_data *wd)
                                             ^
/datasets/git/dir.c:3465:23: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        unsigned char intbuf[16];
                             ^
/datasets/git/dir.c:3466:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned int intlen, value;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:3466:15: warning: variable 'intlen' is not initialized [cppcoreguidelines-init-variables]
        unsigned int intlen, value;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/dir.c:3466:23: warning: variable 'value' is not initialized [cppcoreguidelines-init-variables]
        unsigned int intlen, value;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/dir.c:3467:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = wd->index++;
            ^
/datasets/git/dir.c:3478:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (untracked->check_only)
                                  ^
                                   {
/datasets/git/dir.c:3495:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0, value = 0; i < untracked->dirs_nr; i++)
        ^
/datasets/git/dir.c:3495:25: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0, value = 0; i < untracked->dirs_nr; i++)
                               ^
/datasets/git/dir.c:3495:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0, value = 0; i < untracked->dirs_nr; i++)
                                                           ^
                                                            {
/datasets/git/dir.c:3496:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (untracked->dirs[i]->recurse)
                                                ^
                                                 {
/datasets/git/dir.c:3503:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < untracked->untracked_nr; i++)
        ^
/datasets/git/dir.c:3503:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < untracked->untracked_nr; i++)
                    ^
/datasets/git/dir.c:3503:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < untracked->untracked_nr; i++)
                                                     ^
                                                      {
/datasets/git/dir.c:3507:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < untracked->dirs_nr; i++)
        ^
/datasets/git/dir.c:3507:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < untracked->dirs_nr; i++)
                    ^
/datasets/git/dir.c:3507:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < untracked->dirs_nr; i++)
                                                ^
                                                 {
/datasets/git/dir.c:3508:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (untracked->dirs[i]->recurse)
                                                ^
                                                 {
/datasets/git/dir.c:3514:33: warning: variable 'ouc' is not initialized [cppcoreguidelines-init-variables]
        struct ondisk_untracked_cache *ouc;
                                       ^
                                           = NULL
/datasets/git/dir.c:3515:20: warning: variable name 'wd' is too short, expected at least 3 characters [readability-identifier-length]
        struct write_data wd;
                          ^
/datasets/git/dir.c:3516:23: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        unsigned char varbuf[16];
                             ^
/datasets/git/dir.c:3517:6: warning: variable 'varint_len' is not initialized [cppcoreguidelines-init-variables]
        int varint_len;
            ^
                       = 0
/datasets/git/dir.c:3533:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(ouc);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/dir.c:3545:23: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        strbuf_init(&wd.out, 1024);
                             ^
/datasets/git/dir.c:3546:27: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        strbuf_init(&wd.sb_stat, 1024);
                                 ^
/datasets/git/dir.c:3547:27: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        strbuf_init(&wd.sb_sha1, 1024);
                                 ^
/datasets/git/dir.c:3568:13: warning: function 'free_untracked' is within a recursive call chain [misc-no-recursion]
static void free_untracked(struct untracked_cache_dir *ucd)
            ^
/datasets/git/dir.c:3568:13: note: example recursive call chain, starting from function 'free_untracked'
/datasets/git/dir.c:3574:3: note: Frame #1: function 'free_untracked' calls function 'free_untracked' here:
                free_untracked(ucd->dirs[i]);
                ^
/datasets/git/dir.c:3574:3: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/dir.c:3570:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/dir.c:3570:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/dir.c:3571:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ucd)
                 ^
                  {
/datasets/git/dir.c:3573:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ucd->dirs_nr; i++)
        ^
/datasets/git/dir.c:3573:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < ucd->dirs_nr; i++)
                                          ^
                                           {
/datasets/git/dir.c:3575:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ucd->untracked_nr; i++)
        ^
/datasets/git/dir.c:3575:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < ucd->untracked_nr; i++)
                                               ^
                                                {
/datasets/git/dir.c:3582:51: warning: parameter name 'uc' is too short, expected at least 3 characters [readability-identifier-length]
void free_untracked_cache(struct untracked_cache *uc)
                                                  ^
/datasets/git/dir.c:3584:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (uc)
               ^
                {
/datasets/git/dir.c:3589:8: warning: accessing fields in struct 'read_data' is inefficient due to padding; only needs 52 bytes but is using 56 bytes [altera-struct-pack-align]
struct read_data {
       ^
/datasets/git/dir.c:3589:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'read_data'
/datasets/git/dir.c:3589:8: warning: accessing fields in struct 'read_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct read_data {
       ^
/datasets/git/dir.c:3589:8: note: use "__attribute__((aligned(64)))" to align struct 'read_data' to 64 bytes
/datasets/git/dir.c:3599:51: warning: parameter name 'to' is too short, expected at least 3 characters [readability-identifier-length]
static void stat_data_from_disk(struct stat_data *to, const unsigned char *data)
                                                  ^
/datasets/git/dir.c:3601:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(to, data, sizeof(*to));
        ^~~~~~
/datasets/git/dir.c:3601:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(to, data, sizeof(*to));
        ^~~~~~
/datasets/git/dir.c:3613:12: warning: function 'read_one_dir' is within a recursive call chain [misc-no-recursion]
static int read_one_dir(struct untracked_cache_dir **untracked_,
           ^
/datasets/git/dir.c:3613:12: note: example recursive call chain, starting from function 'read_one_dir'
/datasets/git/dir.c:3659:7: note: Frame #1: function 'read_one_dir' calls function 'read_one_dir' here:
                if (read_one_dir(untracked->dirs + i, rd) < 0)
                    ^
/datasets/git/dir.c:3659:7: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/dir.c:3614:22: warning: parameter name 'rd' is too short, expected at least 3 characters [readability-identifier-length]
                        struct read_data *rd)
                                          ^
/datasets/git/dir.c:3616:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct untracked_cache_dir ud, *untracked;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:3616:29: warning: variable name 'ud' is too short, expected at least 3 characters [readability-identifier-length]
        struct untracked_cache_dir ud, *untracked;
                                   ^
/datasets/git/dir.c:3616:34: warning: variable 'untracked' is not initialized [cppcoreguidelines-init-variables]
        struct untracked_cache_dir ud, *untracked;
                                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/dir.c:3617:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const unsigned char *data = rd->data, *end = rd->end;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:3618:23: warning: variable 'eos' is not initialized [cppcoreguidelines-init-variables]
        const unsigned char *eos;
                             ^
                                 = NULL
/datasets/git/dir.c:3619:15: warning: variable 'value' is not initialized [cppcoreguidelines-init-variables]
        unsigned int value;
                     ^
                           = 0
/datasets/git/dir.c:3620:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/dir.c:3620:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/dir.c:3622:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&ud, 0, sizeof(ud));
        ^~~~~~
/datasets/git/dir.c:3622:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&ud, 0, sizeof(ud));
        ^~~~~~
/datasets/git/dir.c:3625:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (data > end)
                       ^
                        {
/datasets/git/dir.c:3630:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ud.untracked_nr)
                            ^
                             {
/datasets/git/dir.c:3634:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (data > end)
                       ^
                        {
/datasets/git/dir.c:3636:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_ARRAY(ud.dirs, ud.dirs_nr);
        ^
/datasets/git/./git-compat-util.h:1090:53: note: expanded from macro 'ALLOC_ARRAY'
#define ALLOC_ARRAY(x, alloc) (x) = xmalloc(st_mult(sizeof(*(x)), (alloc)))
                                                    ^
/datasets/git/dir.c:3639:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!eos || eos == end)
                               ^
                                {
/datasets/git/dir.c:3643:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(untracked, &ud, sizeof(ud));
        ^~~~~~
/datasets/git/dir.c:3643:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(untracked, &ud, sizeof(ud));
        ^~~~~~
/datasets/git/dir.c:3644:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(untracked->name, data, eos - data + 1);
        ^~~~~~
/datasets/git/dir.c:3644:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(untracked->name, data, eos - data + 1);
        ^~~~~~
/datasets/git/dir.c:3647:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < untracked->untracked_nr; i++) {
        ^
/datasets/git/dir.c:3616:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct untracked_cache_dir ud, *untracked;
        ^
/datasets/git/dir.c:3647:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'untracked' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < untracked->untracked_nr; i++) {
                    ^
/datasets/git/dir.c:3649:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!eos || eos == end)
                                       ^
                                        {
/datasets/git/dir.c:3658:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < untracked->dirs_nr; i++) {
        ^
/datasets/git/dir.c:3658:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'untracked' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < untracked->dirs_nr; i++) {
                    ^
/datasets/git/dir.c:3659:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (read_one_dir(untracked->dirs + i, rd) < 0)
                                                              ^
                                                               {
/datasets/git/dir.c:3665:46: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static void set_check_only(size_t pos, void *cb)
                                             ^
/datasets/git/dir.c:3667:20: warning: variable name 'rd' is too short, expected at least 3 characters [readability-identifier-length]
        struct read_data *rd = cb;
                          ^
/datasets/git/dir.c:3668:30: warning: variable name 'ud' is too short, expected at least 3 characters [readability-identifier-length]
        struct untracked_cache_dir *ud = rd->ucd[pos];
                                    ^
/datasets/git/dir.c:3672:41: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static void read_stat(size_t pos, void *cb)
                                        ^
/datasets/git/dir.c:3674:20: warning: variable name 'rd' is too short, expected at least 3 characters [readability-identifier-length]
        struct read_data *rd = cb;
                          ^
/datasets/git/dir.c:3675:30: warning: variable name 'ud' is too short, expected at least 3 characters [readability-identifier-length]
        struct untracked_cache_dir *ud = rd->ucd[pos];
                                    ^
/datasets/git/dir.c:3685:40: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static void read_oid(size_t pos, void *cb)
                                       ^
/datasets/git/dir.c:3687:20: warning: variable name 'rd' is too short, expected at least 3 characters [readability-identifier-length]
        struct read_data *rd = cb;
                          ^
/datasets/git/dir.c:3688:30: warning: variable name 'ud' is too short, expected at least 3 characters [readability-identifier-length]
        struct untracked_cache_dir *ud = rd->ucd[pos];
                                    ^
/datasets/git/dir.c:3697:54: warning: 2 adjacent parameters of 'load_oid_stat' of similar type ('const unsigned char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void load_oid_stat(struct oid_stat *oid_stat, const unsigned char *data,
                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:3697:75: note: the first parameter in the range is 'data'
static void load_oid_stat(struct oid_stat *oid_stat, const unsigned char *data,
                                                                          ^~~~
/datasets/git/dir.c:3698:27: note: the last parameter in the range is 'sha1'
                          const unsigned char *sha1)
                                               ^~~~
/datasets/git/dir.c:3705:82: warning: parameter name 'sz' is too short, expected at least 3 characters [readability-identifier-length]
struct untracked_cache *read_untracked_extension(const void *data, unsigned long sz)
                                                                                 ^
/datasets/git/dir.c:3707:26: warning: variable 'uc' is not initialized [cppcoreguidelines-init-variables]
        struct untracked_cache *uc;
                                ^
                                   = NULL
/datasets/git/dir.c:3707:26: warning: variable name 'uc' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/dir.c:3708:19: warning: variable name 'rd' is too short, expected at least 3 characters [readability-identifier-length]
        struct read_data rd;
                         ^
/datasets/git/dir.c:3709:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const unsigned char *next = data, *end = (const unsigned char *)data + sz;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:3710:14: warning: variable 'ident' is not initialized [cppcoreguidelines-init-variables]
        const char *ident;
                    ^
                          = NULL
/datasets/git/dir.c:3711:6: warning: variable 'ident_len' is not initialized [cppcoreguidelines-init-variables]
        int ident_len;
            ^
                      = 0
/datasets/git/dir.c:3712:10: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        ssize_t len;
                ^
                    = 0
/datasets/git/dir.c:3713:14: warning: variable 'exclude_per_dir' is not initialized [cppcoreguidelines-init-variables]
        const char *exclude_per_dir;
                    ^
                                    = NULL
/datasets/git/dir.c:3718:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (sz <= 1 || end[-1] != '\0')
                                       ^
                                        {
/datasets/git/dir.c:3722:14: warning: narrowing conversion from 'uintmax_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        ident_len = decode_varint(&next);
                    ^
/datasets/git/dir.c:3723:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (next + ident_len > end)
                                   ^
                                    {
/datasets/git/dir.c:3728:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (next + exclude_per_dir_offset + 1 > end)
                                                    ^
                                                     {
/datasets/git/dir.c:3745:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (next >= end)
                        ^
                         {
/datasets/git/dir.c:3748:8: warning: narrowing conversion from 'uintmax_t' (aka 'unsigned long') to signed type 'ssize_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        len = decode_varint(&next);
              ^
/datasets/git/dir.c:3749:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (next > end || len == 0)
                                   ^
                                    {
/datasets/git/dir.c:3758:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_ARRAY(rd.ucd, len);
        ^
/datasets/git/./git-compat-util.h:1090:53: note: expanded from macro 'ALLOC_ARRAY'
#define ALLOC_ARRAY(x, alloc) (x) = xmalloc(st_mult(sizeof(*(x)), (alloc)))
                                                    ^
/datasets/git/dir.c:3760:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (read_one_dir(&uc->root, &rd) || rd.index != len)
                                                            ^
                                                             {
/datasets/git/dir.c:3765:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len < 0)
                    ^
                     {
/datasets/git/dir.c:3770:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len < 0)
                    ^
                     {
/datasets/git/dir.c:3775:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len < 0)
                    ^
                     {
/datasets/git/dir.c:3797:62: warning: parameter name 'uc' is too short, expected at least 3 characters [readability-identifier-length]
static void invalidate_one_directory(struct untracked_cache *uc,
                                                             ^
/datasets/git/dir.c:3829:12: warning: function 'invalidate_one_component' is within a recursive call chain [misc-no-recursion]
static int invalidate_one_component(struct untracked_cache *uc,
           ^
/datasets/git/dir.c:3829:12: note: example recursive call chain, starting from function 'invalidate_one_component'
/datasets/git/dir.c:3840:4: note: Frame #1: function 'invalidate_one_component' calls function 'invalidate_one_component' here:
                        invalidate_one_component(uc, d, rest + 1,
                        ^
/datasets/git/dir.c:3840:4: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/dir.c:3829:61: warning: parameter name 'uc' is too short, expected at least 3 characters [readability-identifier-length]
static int invalidate_one_component(struct untracked_cache *uc,
                                                            ^
/datasets/git/dir.c:3836:23: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int component_len = rest - path;
                                    ^
/datasets/git/dir.c:3837:31: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
                struct untracked_cache_dir *d =
                                            ^
/datasets/git/dir.c:3842:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret)
                        ^
                         {
/datasets/git/dir.c:3848:9: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return uc->dir_flags & DIR_SHOW_OTHER_DIRECTORIES;
               ^
/datasets/git/dir.c:3848:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return uc->dir_flags & DIR_SHOW_OTHER_DIRECTORIES;
               ^               ~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:3854:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!istate->untracked || !istate->untracked->root)
                                                           ^
                                                            {
/datasets/git/dir.c:3856:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!safe_path && !verify_path(path, 0))
                                                ^
                                                 {
/datasets/git/dir.c:3859:12: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                 path, strlen(path));
                                       ^
/datasets/git/dir.c:3874:13: warning: function 'connect_wt_gitdir_in_nested' is within a recursive call chain [misc-no-recursion]
static void connect_wt_gitdir_in_nested(const char *sub_worktree,
            ^
/datasets/git/dir.c:3924:6: note: example recursive call chain, starting from function 'connect_work_tree_and_git_dir'
void connect_work_tree_and_git_dir(const char *work_tree_,
     ^
/datasets/git/dir.c:3958:3: note: Frame #1: function 'connect_work_tree_and_git_dir' calls function 'connect_wt_gitdir_in_nested' here:
                connect_wt_gitdir_in_nested(work_tree, git_dir);
                ^
/datasets/git/dir.c:3917:3: note: Frame #2: function 'connect_wt_gitdir_in_nested' calls function 'connect_work_tree_and_git_dir' here:
                connect_work_tree_and_git_dir(sub_wt.buf, sub_gd.buf, 1);
                ^
/datasets/git/dir.c:3917:3: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/dir.c:3877:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/dir.c:3877:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/dir.c:3882:26: warning: variable 'sub' is not initialized [cppcoreguidelines-init-variables]
        const struct submodule *sub;
                                ^
                                    = NULL
/datasets/git/dir.c:3885:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_init(&subrepo, sub_gitdir, sub_worktree))
                                                          ^
                                                           {
/datasets/git/dir.c:3888:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_read_index(&subrepo) < 0)
                                          ^
                                           {
/datasets/git/dir.c:3894:29: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                const struct cache_entry *ce = subrepo.index->cache[i];
                                          ^
/datasets/git/dir.c:3896:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!S_ISGITLINK(ce->ce_mode))
                     ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/dir.c:3896:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!S_ISGITLINK(ce->ce_mode))
                                              ^
                                               {
/datasets/git/dir.c:3899:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (i + 1 < subrepo.index->cache_nr &&
                ^
/datasets/git/dir.c:3899:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'ce' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (i + 1 < subrepo.index->cache_nr &&
                       ^
/datasets/git/dir.c:3900:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                       !strcmp(ce->name, subrepo.index->cache[i + 1]->name))
                                                                            ^
                                                                             {
/datasets/git/dir.c:3908:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!sub || !is_submodule_active(&subrepo, ce->name))
                                                                     ^
                                                                      {
/datasets/git/dir.c:3924:6: warning: function 'connect_work_tree_and_git_dir' is within a recursive call chain [misc-no-recursion]
void connect_work_tree_and_git_dir(const char *work_tree_,
     ^
/datasets/git/dir.c:3931:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *git_dir, *work_tree;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:3931:8: warning: variable 'git_dir' is not initialized [cppcoreguidelines-init-variables]
        char *git_dir, *work_tree;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/dir.c:3931:18: warning: variable 'work_tree' is not initialized [cppcoreguidelines-init-variables]
        char *git_dir, *work_tree;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/dir.c:3935:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (safe_create_leading_directories_const(gitfile_sb.buf))
                                                                  ^
                                                                   {
/datasets/git/dir.c:3940:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (safe_create_leading_directories_const(cfg_sb.buf))
                                                              ^
                                                               {
/datasets/git/dir.c:3957:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (recurse_into_nested)
                                ^
                                 {
/datasets/git/dir.c:3967:22: warning: 2 adjacent parameters of 'relocate_gitdir' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
void relocate_gitdir(const char *path, const char *old_git_dir, const char *new_git_dir)
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:3967:34: note: the first parameter in the range is 'path'
void relocate_gitdir(const char *path, const char *old_git_dir, const char *new_git_dir)
                                 ^~~~
/datasets/git/dir.c:3967:52: note: the last parameter in the range is 'old_git_dir'
void relocate_gitdir(const char *path, const char *old_git_dir, const char *new_git_dir)
                                                   ^~~~~~~~~~~
/datasets/git/dir.c:3969:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (rename(old_git_dir, new_git_dir) < 0)
                                                 ^
                                                  {
/datasets/git/dir.c:3978:14: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        const char *p = str;
                    ^
/datasets/git/dir.c:3980:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & PATH_MATCH_NATIVE &&
            ^       ~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:3981:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            flags & PATH_MATCH_XPLATFORM)
            ^       ~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:3981:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            flags & PATH_MATCH_XPLATFORM)
                                         ^
                                          {
/datasets/git/dir.c:3983:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        else if (!(flags & PATH_MATCH_KINDS_MASK))
                   ^
/datasets/git/dir.c:3983:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        else if (!(flags & PATH_MATCH_KINDS_MASK))
                           ^
/datasets/git/./dir.h:611:32: note: expanded from macro 'PATH_MATCH_KINDS_MASK'
#define PATH_MATCH_KINDS_MASK (PATH_MATCH_STARTS_WITH_DOT_SLASH | \
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:3983:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!(flags & PATH_MATCH_KINDS_MASK))
                                                  ^
                                                   {
/datasets/git/dir.c:3986:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & PATH_MATCH_STARTS_WITH_DOT_SLASH &&
            ^       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:3987:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            flags & PATH_MATCH_STARTS_WITH_DOT_DOT_SLASH)
            ^       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:3987:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            flags & PATH_MATCH_STARTS_WITH_DOT_DOT_SLASH)
                                                         ^
                                                          {
/datasets/git/dir.c:3989:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        else if (!(flags & PATH_MATCH_PLATFORM_MASK))
                   ^
/datasets/git/dir.c:3989:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        else if (!(flags & PATH_MATCH_PLATFORM_MASK))
                           ^
/datasets/git/./dir.h:613:35: note: expanded from macro 'PATH_MATCH_PLATFORM_MASK'
#define PATH_MATCH_PLATFORM_MASK (PATH_MATCH_NATIVE | PATH_MATCH_XPLATFORM)
                                  ^~~~~~~~~~~~~~~~~
/datasets/git/dir.c:3989:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!(flags & PATH_MATCH_PLATFORM_MASK))
                                                     ^
                                                      {
/datasets/git/dir.c:3992:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*p++ != '.')
                        ^
                         {
/datasets/git/dir.c:3994:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & PATH_MATCH_STARTS_WITH_DOT_DOT_SLASH &&
            ^       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:3995:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            *p++ != '.')
                        ^
                         {
/datasets/git/dir.c:3998:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & PATH_MATCH_NATIVE)
            ^       ~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:3998:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & PATH_MATCH_NATIVE)
                                      ^
                                       {
/datasets/git/dir.c:4000:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (flags & PATH_MATCH_XPLATFORM)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:4000:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        else if (flags & PATH_MATCH_XPLATFORM)
                 ^       ~~~~~~~~~~~~~~~~~~~~
/datasets/git/dir.c:4000:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (flags & PATH_MATCH_XPLATFORM)
                                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/editor.c:3:1: warning: #includes are not sorted properly [llvm-include-order]
#include "strbuf.h"
^        ~~~~~~~~~~
         "run-command.h"
/datasets/git/editor.c:14:25: warning: function is not thread safe [concurrency-mt-unsafe]
        const char *terminal = getenv("TERM");
                               ^
/datasets/git/editor.c:20:23: warning: function is not thread safe [concurrency-mt-unsafe]
        const char *editor = getenv("GIT_EDITOR");
                             ^
/datasets/git/editor.c:23:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!editor && editor_program)
                                      ^
                                       {
/datasets/git/editor.c:25:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!editor && !terminal_is_dumb)
                                         ^
                                          {
/datasets/git/editor.c:26:12: warning: function is not thread safe [concurrency-mt-unsafe]
                editor = getenv("VISUAL");
                         ^
/datasets/git/editor.c:27:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!editor)
                    ^
                     {
/datasets/git/editor.c:28:12: warning: function is not thread safe [concurrency-mt-unsafe]
                editor = getenv("EDITOR");
                         ^
/datasets/git/editor.c:30:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!editor && terminal_is_dumb)
                                        ^
                                         {
/datasets/git/editor.c:33:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!editor)
                    ^
                     {
/datasets/git/editor.c:41:23: warning: function is not thread safe [concurrency-mt-unsafe]
        const char *editor = getenv("GIT_SEQUENCE_EDITOR");
                             ^
/datasets/git/editor.c:43:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!editor)
                    ^
                     {
/datasets/git/editor.c:45:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!editor)
                    ^
                     {
/datasets/git/editor.c:51:36: warning: 2 adjacent parameters of 'launch_specified_editor' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int launch_specified_editor(const char *editor, const char *path,
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/editor.c:51:48: note: the first parameter in the range is 'editor'
static int launch_specified_editor(const char *editor, const char *path,
                                               ^~~~~~
/datasets/git/editor.c:51:68: note: the last parameter in the range is 'path'
static int launch_specified_editor(const char *editor, const char *path,
                                                                   ^~~~
/datasets/git/editor.c:54:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!editor)
                    ^
                     {
/datasets/git/editor.c:57:6: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (strcmp(editor, ":")) {
            ^
                                != 0
/datasets/git/editor.c:59:24: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct child_process p = CHILD_PROCESS_INIT;
                                     ^
/datasets/git/editor.c:60:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int ret, sig;
                ^~~~~~~~~~~~~
/datasets/git/editor.c:60:7: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
                int ret, sig;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/editor.c:60:12: warning: variable 'sig' is not initialized [cppcoreguidelines-init-variables]
                int ret, sig;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/editor.c:73:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr,
                        ^~~~~~~~~~~~~~~
/datasets/git/editor.c:73:4: note: cast the expression to void to silence this warning
/datasets/git/editor.c:76:4: warning: the value returned by this function should be used [cert-err33-c]
                        fflush(stderr);
                        ^~~~~~~~~~~~~~
/datasets/git/editor.c:76:4: note: cast the expression to void to silence this warning
/datasets/git/editor.c:82:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (env)
                        ^
                         {
/datasets/git/editor.c:95:15: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                sig = ret - 128;
                            ^
/datasets/git/editor.c:98:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (sig == SIGINT || sig == SIGQUIT)
                                                    ^
                                                     {
/datasets/git/editor.c:99:4: warning: the value returned by this function should be used [cert-err33-c]
                        raise(sig);
                        ^~~~~~~~~~
/datasets/git/editor.c:99:4: note: cast the expression to void to silence this warning
/datasets/git/editor.c:100:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret)
                        ^
                         {
/datasets/git/editor.c:104:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (print_waiting_for_editor && !is_terminal_dumb())
                                                                    ^
                                                                     {
/datasets/git/editor.c:112:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!buffer)
                    ^
                     {
/datasets/git/editor.c:114:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strbuf_read_file(buffer, path, 0) < 0)
                                                  ^
                                                   {
/datasets/git/entry.c:3:1: warning: #includes are not sorted properly [llvm-include-order]
#include "object-store.h"
^        ~~~~~~~~~~~~~~~~
         "dir.h"
/datasets/git/entry.c:19:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                do {
                ^
/datasets/git/entry.c:23:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (len >= path_len)
                                    ^
                                     {
/datasets/git/entry.c:34:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (has_dirs_only_path(buf, len, state->base_dir_len))
                                                                      ^
                                                                       {
/datasets/git/entry.c:43:18: warning: 0777 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (mkdir(buf, 0777)) {
                               ^
/datasets/git/entry.c:45:44: warning: 0777 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !unlink_or_warn(buf) && !mkdir(buf, 0777))
                                                                ^
/datasets/git/entry.c:45:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            !unlink_or_warn(buf) && !mkdir(buf, 0777))
                                                                      ^
                                                                       {
/datasets/git/entry.c:53:13: warning: function 'remove_subtree' is within a recursive call chain [misc-no-recursion]
static void remove_subtree(struct strbuf *path)
            ^
/datasets/git/entry.c:53:13: note: example recursive call chain, starting from function 'remove_subtree'
/datasets/git/entry.c:69:4: note: Frame #1: function 'remove_subtree' calls function 'remove_subtree' here:
                        remove_subtree(path);
                        ^
/datasets/git/entry.c:69:4: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/entry.c:56:17: warning: variable 'de' is not initialized [cppcoreguidelines-init-variables]
        struct dirent *de;
                       ^
                          = NULL
/datasets/git/entry.c:56:17: warning: variable name 'de' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/entry.c:57:16: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int origlen = path->len;
                      ^
/datasets/git/entry.c:59:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!dir)
                 ^
                  {
/datasets/git/entry.c:61:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((de = readdir_skip_dot_and_dotdot(dir)) != NULL) {
        ^
/datasets/git/entry.c:61:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'de' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((de = readdir_skip_dot_and_dotdot(dir)) != NULL) {
               ^
/datasets/git/entry.c:62:15: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                struct stat st;
                            ^
/datasets/git/entry.c:66:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (lstat(path->buf, &st))
                                          ^
                                           {
/datasets/git/entry.c:68:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (S_ISDIR(st.st_mode))
                                        ^
                                         {
/datasets/git/entry.c:70:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (unlink(path->buf))
                                           ^
                                            {
/datasets/git/entry.c:75:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (rmdir(path->buf))
                             ^
                              {
/datasets/git/entry.c:81:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mode = (mode & 0100) ? 0777 : 0666;
                ^      ~~~~
/datasets/git/entry.c:81:17: warning: 0100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mode = (mode & 0100) ? 0777 : 0666;
                       ^
/datasets/git/entry.c:81:25: warning: 0777 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mode = (mode & 0100) ? 0777 : 0666;
                               ^
/datasets/git/entry.c:81:32: warning: 0666 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mode = (mode & 0100) ? 0777 : 0666;
                                      ^
/datasets/git/entry.c:82:47: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
        return open(path, O_WRONLY | O_CREAT | O_EXCL, mode);
                                                     ^
                                                      | O_CLOEXEC
/datasets/git/entry.c:85:49: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
void *read_blob_entry(const struct cache_entry *ce, size_t *size)
                                                ^
/datasets/git/entry.c:87:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/entry.c:88:16: warning: variable 'ul' is not initialized [cppcoreguidelines-init-variables]
        unsigned long ul;
                      ^
                         = 0
/datasets/git/entry.c:88:16: warning: variable name 'ul' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/entry.c:93:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (type == OBJ_BLOB)
                                     ^
                                      {
/datasets/git/entry.c:100:65: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static int open_output_fd(char *path, const struct cache_entry *ce, int to_tempfile)
                                                                ^
/datasets/git/entry.c:102:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int symlink = (ce->ce_mode & S_IFMT) != S_IFREG;
                       ^
/datasets/git/entry.c:107:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else {
          ^~~~~~
/datasets/git/entry.c:108:53: warning: 0666 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                return create_file(path, !symlink ? ce->ce_mode : 0666);
                                                                  ^
/datasets/git/entry.c:112:31: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
int fstat_checkout_output(int fd, const struct checkout *state, struct stat *st)
                              ^
/datasets/git/entry.c:112:78: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
int fstat_checkout_output(int fd, const struct checkout *state, struct stat *st)
                                                                             ^
/datasets/git/entry.c:122:60: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static int streaming_write_entry(const struct cache_entry *ce, char *path,
                                                           ^
/datasets/git/entry.c:128:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/entry.c:128:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/entry.c:131:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fd < 0)
                   ^
                    {
/datasets/git/entry.c:134:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        result |= stream_blob_to_fd(fd, &ce->oid, filter, 1);
        ^~~~~~
/datasets/git/entry.c:136:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        result |= close(fd);
        ^~~~~~
/datasets/git/entry.c:138:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (result)
                   ^
                    {
/datasets/git/entry.c:156:27: warning: variable 'available' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *available;
                                 ^
                                           = NULL
/datasets/git/entry.c:159:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (available)
                      ^
                       {
/datasets/git/entry.c:164:5: warning: function 'finish_delayed_checkout' has cognitive complexity of 27 (threshold 25) [readability-function-cognitive-complexity]
int finish_delayed_checkout(struct checkout *state, int show_progress)
    ^
/datasets/git/entry.c:173:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!state->delayed_checkout)
        ^
/datasets/git/entry.c:177:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (show_progress)
        ^
/datasets/git/entry.c:179:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (dco->filters.nr > 0) {
        ^
/datasets/git/entry.c:180:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for_each_string_list_item(filter, &dco->filters) {
                ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/entry.c:180:3: note: +1
                for_each_string_list_item(filter, &dco->filters) {
                ^
/datasets/git/./string-list.h:152:12: note: expanded from macro 'for_each_string_list_item'
             item && item < (list)->items + (list)->nr; \
                  ^
/datasets/git/entry.c:183:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!async_query_available_blobs(filter->string, &available_paths)) {
                        ^
/datasets/git/entry.c:189:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (available_paths.nr <= 0) {
                        ^
/datasets/git/entry.c:208:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for_each_string_list_item(path, &available_paths) {
                        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/entry.c:208:4: note: +1
                        for_each_string_list_item(path, &available_paths) {
                        ^
/datasets/git/./string-list.h:152:12: note: expanded from macro 'for_each_string_list_item'
             item && item < (list)->items + (list)->nr; \
                  ^
/datasets/git/entry.c:211:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!path->util) {
                                ^
/datasets/git/entry.c:227:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (ce) {
                                ^
/datasets/git/entry.c:232:7: note: +1, nesting level increased to 4
                                } else
                                  ^
/datasets/git/entry.c:243:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for_each_string_list_item(path, &dco->paths) {
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/entry.c:243:2: note: +1
        for_each_string_list_item(path, &dco->paths) {
        ^
/datasets/git/./string-list.h:152:12: note: expanded from macro 'for_each_string_list_item'
             item && item < (list)->items + (list)->nr; \
                  ^
/datasets/git/entry.c:169:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct string_list_item *filter, *path;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/entry.c:169:27: warning: variable 'filter' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *filter, *path;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/entry.c:169:36: warning: variable 'path' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *filter, *path;
                                          ^
/datasets/git/entry.c:169:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct string_list_item *filter, *path;
        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/entry.c:173:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!state->delayed_checkout)
                                     ^
                                      {
/datasets/git/entry.c:177:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (show_progress)
                          ^
                           {
/datasets/git/entry.c:179:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'dco' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (dco->filters.nr > 0) {
               ^
/datasets/git/entry.c:180:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'filter' and may cause performance degradation [altera-id-dependent-backward-branch]
                for_each_string_list_item(filter, &dco->filters) {
                                          ^
/datasets/git/entry.c:169:2: note: inferred assignment of ID-dependent value from ID-dependent 
        struct string_list_item *filter, *path;
        ^
/datasets/git/entry.c:208:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for_each_string_list_item(path, &available_paths) {
                        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/entry.c:208:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'path' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for_each_string_list_item(path, &available_paths) {
                                                  ^
/datasets/git/entry.c:209:25: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
                                struct cache_entry* ce;
                                                    ^
                                                       = NULL
/datasets/git/entry.c:209:25: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/entry.c:216:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        errs |= 1;
                                        ^~~~
/datasets/git/entry.c:226:14: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                                       strlen(path->string), 0);
                                                       ^
/datasets/git/entry.c:229:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        errs |= checkout_entry(ce, state, NULL, path->util);
                                        ^~~~
/datasets/git/entry.c:232:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                } else
                                      ^
                                       {
/datasets/git/entry.c:242:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        errs |= dco->paths.nr;
        ^~~~
/datasets/git/entry.c:242:10: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        errs |= dco->paths.nr;
                ^
/datasets/git/entry.c:243:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(path, &dco->paths) {
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/entry.c:243:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'path' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(path, &dco->paths) {
                                  ^
/datasets/git/entry.c:254:78: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
void update_ce_after_write(const struct checkout *state, struct cache_entry *ce,
                                                                             ^
/datasets/git/entry.c:255:20: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                           struct stat *st)
                                        ^
/datasets/git/entry.c:260:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ce->ce_flags |= CE_UPDATE_IN_BASE;
                ^
/datasets/git/entry.c:260:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ce->ce_flags |= CE_UPDATE_IN_BASE;
                                ^
/datasets/git/./refs/../cache.h:183:31: note: expanded from macro 'CE_UPDATE_IN_BASE'
#define CE_UPDATE_IN_BASE    (1 << 27)
                              ^
/datasets/git/entry.c:262:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                state->istate->cache_changed |= CE_ENTRY_CHANGED;
                ^
/datasets/git/entry.c:262:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                state->istate->cache_changed |= CE_ENTRY_CHANGED;
                                                ^
/datasets/git/./refs/../cache.h:299:27: note: expanded from macro 'CE_ENTRY_CHANGED'
#define CE_ENTRY_CHANGED        (1 << 1)
                                 ^
/datasets/git/entry.c:267:12: warning: function 'write_entry' has cognitive complexity of 58 (threshold 25) [readability-function-cognitive-complexity]
static int write_entry(struct cache_entry *ce, char *path, struct conv_attrs *ca,
           ^
/datasets/git/entry.c:286:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ce_mode_s_ifmt == S_IFREG) {
        ^
/datasets/git/entry.c:288:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (filter &&
                ^
/datasets/git/entry.c:288:14: note: +1
                if (filter &&
                           ^
/datasets/git/entry.c:295:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        switch (ce_mode_s_ifmt) {
        ^
/datasets/git/entry.c:298:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!new_blob)
                ^
/datasets/git/entry.c:306:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!has_symlinks || to_tempfile)
                ^
/datasets/git/entry.c:306:21: note: +1
                if (!has_symlinks || to_tempfile)
                                  ^
/datasets/git/entry.c:311:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ret)
                ^
/datasets/git/entry.c:320:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (dco && dco->state == CE_RETRY) {
                ^
/datasets/git/entry.c:320:11: note: +1
                if (dco && dco->state == CE_RETRY) {
                        ^
/datasets/git/entry.c:323:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/entry.c:325:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!new_blob)
                        ^
/datasets/git/entry.c:333:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (dco && dco->state != CE_NO_DELAY) {
                ^
/datasets/git/entry.c:333:11: note: +1
                if (dco && dco->state != CE_NO_DELAY) {
                        ^
/datasets/git/entry.c:337:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ret) {
                        ^
/datasets/git/entry.c:340:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (item) {
                                ^
/datasets/git/entry.c:341:32: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        item->util = nr_checkouts ? nr_checkouts
                                                                  ^
/datasets/git/entry.c:344:6: note: +1
                                        goto delayed;
                                        ^
/datasets/git/entry.c:347:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/entry.c:352:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ret) {
                ^
/datasets/git/entry.c:365:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (fd < 0) {
                ^
/datasets/git/entry.c:371:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!to_tempfile)
                ^
/datasets/git/entry.c:375:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (wrote < 0)
                ^
/datasets/git/entry.c:380:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (to_tempfile)
                ^
/datasets/git/entry.c:382:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (mkdir(path, 0777) < 0)
                ^
/datasets/git/entry.c:385:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (sub)
                ^
/datasets/git/entry.c:388:18: note: +3, including nesting penalty of 2, nesting level increased to 3
                                state->force ? SUBMODULE_MOVE_HEAD_FORCE : 0);
                                             ^
/datasets/git/entry.c:396:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (state->refresh_cache) {
        ^
/datasets/git/entry.c:397:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!fstat_done && lstat(ce->name, &st) < 0)
                ^
/datasets/git/entry.c:397:19: note: +1
                if (!fstat_done && lstat(ce->name, &st) < 0)
                                ^
/datasets/git/entry.c:402:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (nr_checkouts)
        ^
/datasets/git/entry.c:267:44: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static int write_entry(struct cache_entry *ce, char *path, struct conv_attrs *ca,
                                           ^
/datasets/git/entry.c:267:79: warning: parameter name 'ca' is too short, expected at least 3 characters [readability-identifier-length]
static int write_entry(struct cache_entry *ce, char *path, struct conv_attrs *ca,
                                                                              ^
/datasets/git/entry.c:271:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned int ce_mode_s_ifmt = ce->ce_mode & S_IFMT;
                                      ^
/datasets/git/entry.c:273:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int fd, ret, fstat_done = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/entry.c:273:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd, ret, fstat_done = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/entry.c:273:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/entry.c:273:10: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int fd, ret, fstat_done = 0;
                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/entry.c:274:8: warning: variable 'new_blob' is not initialized [cppcoreguidelines-init-variables]
        char *new_blob;
              ^
                       = NULL
/datasets/git/entry.c:276:9: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        size_t size;
               ^
                    = 0
/datasets/git/entry.c:277:10: warning: variable 'wrote' is not initialized [cppcoreguidelines-init-variables]
        ssize_t wrote;
                ^
                      = 0
/datasets/git/entry.c:279:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/entry.c:280:26: warning: variable 'sub' is not initialized [cppcoreguidelines-init-variables]
        const struct submodule *sub;
                                ^
                                    = NULL
/datasets/git/entry.c:291:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                           &fstat_done, &st))
                                                             ^
                                                              {
/datasets/git/entry.c:298:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!new_blob)
                              ^
                               {
/datasets/git/entry.c:306:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!has_symlinks || to_tempfile)
                                                 ^
                                                  {
/datasets/git/entry.c:311:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret)
                        ^
                         {
/datasets/git/entry.c:325:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!new_blob)
                                      ^
                                       {
/datasets/git/entry.c:371:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!to_tempfile)
                                 ^
                                  {
/datasets/git/entry.c:375:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (wrote < 0)
                              ^
                               {
/datasets/git/entry.c:380:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (to_tempfile)
                                ^
                                 {
/datasets/git/entry.c:382:19: warning: 0777 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (mkdir(path, 0777) < 0)
                                ^
/datasets/git/entry.c:382:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (mkdir(path, 0777) < 0)
                                          ^
                                           {
/datasets/git/entry.c:385:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (sub)
                        ^
                         {
/datasets/git/entry.c:388:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                state->force ? SUBMODULE_MOVE_HEAD_FORCE : 0);
                                               ^
/datasets/git/./submodule.h:152:38: note: expanded from macro 'SUBMODULE_MOVE_HEAD_FORCE'
#define SUBMODULE_MOVE_HEAD_FORCE   (1<<1)
                                     ^
/datasets/git/entry.c:397:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!fstat_done && lstat(ce->name, &st) < 0)
                                                            ^
                                                             {
/datasets/git/entry.c:402:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (nr_checkouts)
                         ^
                          {
/datasets/git/entry.c:412:63: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
static int check_path(const char *path, int len, struct stat *st, int skiplen)
                                                              ^
/datasets/git/entry.c:416:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (path < slash && *slash != '/')
        ^
/datasets/git/entry.c:416:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'slash' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (path < slash && *slash != '/')
               ^
/datasets/git/entry.c:416:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (path < slash && *slash != '/')
                                             ^
                                              {
/datasets/git/entry.c:418:32: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        if (!has_dirs_only_path(path, slash - path, skiplen)) {
                                      ^
/datasets/git/entry.c:426:28: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                                   struct cache_entry *ce, struct stat *st)
                                                       ^
/datasets/git/entry.c:426:45: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                                   struct cache_entry *ce, struct stat *st)
                                                                        ^
/datasets/git/entry.c:428:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, trust_ino = check_stat;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/entry.c:428:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, trust_ino = check_stat;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/entry.c:428:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/entry.c:434:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ce->ce_flags |= CE_MATCHED;
        ^
/datasets/git/entry.c:434:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ce->ce_flags |= CE_MATCHED;
                        ^
/datasets/git/./refs/../cache.h:181:31: note: expanded from macro 'CE_MATCHED'
#define CE_MATCHED           (1 << 26)
                              ^
/datasets/git/entry.c:438:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < state->istate->cache_nr; i++) {
        ^
/datasets/git/entry.c:447:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (parallel_checkout_status() == PC_RUNNING)
                                                                     ^
                                                                      {
/datasets/git/entry.c:449:4: warning: do not use 'else' after 'continue' [llvm-else-after-return,readability-else-after-return]
                        else
                        ^~~~
                                                        break
/datasets/git/entry.c:449:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/entry.c:453:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (dup->ce_flags & (CE_MATCHED | CE_VALID | CE_SKIP_WORKTREE))
                    ^               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/entry.c:453:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (dup->ce_flags & (CE_MATCHED | CE_VALID | CE_SKIP_WORKTREE))
                                     ^
/datasets/git/./refs/../cache.h:181:30: note: expanded from macro 'CE_MATCHED'
#define CE_MATCHED           (1 << 26)
                             ^
/datasets/git/entry.c:453:48: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (dup->ce_flags & (CE_MATCHED | CE_VALID | CE_SKIP_WORKTREE))
                                                             ^
/datasets/git/./refs/../cache.h:190:31: note: expanded from macro 'CE_SKIP_WORKTREE'
#define CE_SKIP_WORKTREE     (1 << 30)
                              ^
/datasets/git/entry.c:453:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (dup->ce_flags & (CE_MATCHED | CE_VALID | CE_SKIP_WORKTREE))
                                                                               ^
                                                                                {
/datasets/git/entry.c:458:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        dup->ce_flags |= CE_MATCHED;
                        ^
/datasets/git/entry.c:458:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        dup->ce_flags |= CE_MATCHED;
                                         ^
/datasets/git/./refs/../cache.h:181:31: note: expanded from macro 'CE_MATCHED'
#define CE_MATCHED           (1 << 26)
                              ^
/datasets/git/entry.c:464:5: warning: function 'checkout_entry_ca' has cognitive complexity of 45 (threshold 25) [readability-function-cognitive-complexity]
int checkout_entry_ca(struct cache_entry *ce, struct conv_attrs *ca,
    ^
/datasets/git/entry.c:472:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ce->ce_flags & CE_WT_REMOVE) {
        ^
/datasets/git/entry.c:473:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (topath)
                ^
/datasets/git/entry.c:483:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (topath) {
        ^
/datasets/git/entry.c:484:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (S_ISREG(ce->ce_mode) && !ca) {
                ^
/datasets/git/entry.c:484:28: note: +1
                if (S_ISREG(ce->ce_mode) && !ca) {
                                         ^
/datasets/git/entry.c:495:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!check_path(path.buf, path.len, &st, state->base_dir_len)) {
        ^
/datasets/git/entry.c:504:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (sub) {
                ^
/datasets/git/entry.c:506:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!is_submodule_populated_gently(ce->name, &err)) {
                        ^
/datasets/git/entry.c:508:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (lstat(ce->name, &sb))
                                ^
/datasets/git/entry.c:510:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!(st.st_mode & S_IFDIR))
                                ^
/datasets/git/entry.c:515:6: note: +1, nesting level increased to 3
                        } else
                          ^
/datasets/git/entry.c:518:19: note: +4, including nesting penalty of 3, nesting level increased to 4
                                        state->force ? SUBMODULE_MOVE_HEAD_FORCE : 0);
                                                     ^
/datasets/git/entry.c:521:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!changed)
                ^
/datasets/git/entry.c:523:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!state->force) {
                ^
/datasets/git/entry.c:524:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!state->quiet)
                        ^
/datasets/git/entry.c:531:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (state->clone)
                ^
/datasets/git/entry.c:540:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (S_ISDIR(st.st_mode)) {
                ^
/datasets/git/entry.c:542:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (S_ISGITLINK(ce->ce_mode))
                        ^
/datasets/git/entry.c:545:10: note: +1, nesting level increased to 2
                } else if (unlink(path.buf))
                       ^
/datasets/git/entry.c:547:9: note: +1, nesting level increased to 1
        } else if (state->not_new)
               ^
/datasets/git/entry.c:552:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (S_ISREG(ce->ce_mode) && !ca) {
        ^
/datasets/git/entry.c:552:27: note: +1
        if (S_ISREG(ce->ce_mode) && !ca) {
                                 ^
/datasets/git/entry.c:557:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!enqueue_checkout(ce, ca, nr_checkouts))
        ^
/datasets/git/entry.c:464:43: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
int checkout_entry_ca(struct cache_entry *ce, struct conv_attrs *ca,
                                          ^
/datasets/git/entry.c:464:66: warning: parameter name 'ca' is too short, expected at least 3 characters [readability-identifier-length]
int checkout_entry_ca(struct cache_entry *ce, struct conv_attrs *ca,
                                                                 ^
/datasets/git/entry.c:469:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/entry.c:472:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (ce->ce_flags & CE_WT_REMOVE) {
            ^
/datasets/git/entry.c:472:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (ce->ce_flags & CE_WT_REMOVE) {
                           ^
/datasets/git/./refs/../cache.h:174:31: note: expanded from macro 'CE_WT_REMOVE'
#define CE_WT_REMOVE         (1 << 22) /* remove in work directory */
                              ^
/datasets/git/entry.c:473:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (topath)
                           ^
                            {
/datasets/git/entry.c:495:28: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        if (!check_path(path.buf, path.len, &st, state->base_dir_len)) {
                                  ^
/datasets/git/entry.c:496:27: warning: variable 'sub' is not initialized [cppcoreguidelines-init-variables]
                const struct submodule *sub;
                                        ^
                                            = NULL
/datasets/git/entry.c:498:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                                 CE_MATCH_IGNORE_VALID | CE_MATCH_IGNORE_SKIP_WORKTREE);
                                                 ^
/datasets/git/./refs/../cache.h:879:32: note: expanded from macro 'CE_MATCH_IGNORE_VALID'
#define CE_MATCH_IGNORE_VALID           01
                                        ^~
/datasets/git/entry.c:505:8: warning: variable 'err' is not initialized [cppcoreguidelines-init-variables]
                        int err;
                            ^
                                = 0
/datasets/git/entry.c:507:17: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                                struct stat sb;
                                            ^
/datasets/git/entry.c:508:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (lstat(ce->name, &sb))
                                                         ^
                                                          {
/datasets/git/entry.c:510:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (!(st.st_mode & S_IFDIR))
                                      ^
/datasets/git/entry.c:510:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!(st.st_mode & S_IFDIR))
                                                            ^
                                                             {
/datasets/git/entry.c:515:6: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                        } else
                          ^~~~
/datasets/git/entry.c:515:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        } else
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/entry.c:518:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        state->force ? SUBMODULE_MOVE_HEAD_FORCE : 0);
                                                       ^
/datasets/git/./submodule.h:152:38: note: expanded from macro 'SUBMODULE_MOVE_HEAD_FORCE'
#define SUBMODULE_MOVE_HEAD_FORCE   (1<<1)
                                     ^
/datasets/git/entry.c:521:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!changed)
                             ^
                              {
/datasets/git/entry.c:524:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!state->quiet)
                                          ^
                                           {
/datasets/git/entry.c:525:5: warning: the value returned by this function should be used [cert-err33-c]
                                fprintf(stderr,
                                ^~~~~~~~~~~~~~~
/datasets/git/entry.c:525:5: note: cast the expression to void to silence this warning
/datasets/git/entry.c:531:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (state->clone)
                                 ^
                                  {
/datasets/git/entry.c:542:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (S_ISGITLINK(ce->ce_mode))
                            ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/entry.c:542:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (S_ISGITLINK(ce->ce_mode))
                                                     ^
                                                      {
/datasets/git/entry.c:545:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else if (unlink(path.buf))
                                            ^
                                             {
/datasets/git/entry.c:547:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else if (state->not_new)
                                  ^
                                   {
/datasets/git/entry.c:550:31: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        create_directories(path.buf, path.len, state);
                                     ^
/datasets/git/entry.c:557:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!enqueue_checkout(ce, ca, nr_checkouts))
                                                    ^
                                                     {
/datasets/git/entry.c:563:45: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
void unlink_entry(const struct cache_entry *ce)
                                            ^
/datasets/git/entry.c:569:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                    SUBMODULE_MOVE_HEAD_FORCE);
                                    ^
/datasets/git/./submodule.h:152:38: note: expanded from macro 'SUBMODULE_MOVE_HEAD_FORCE'
#define SUBMODULE_MOVE_HEAD_FORCE   (1<<1)
                                     ^
/datasets/git/entry.c:571:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (check_leading_path(ce->name, ce_namelen(ce), 1) >= 0)
                                                                 ^
                                                                  {
/datasets/git/entry.c:573:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (remove_or_warn(ce->ce_mode, ce->name))
                                                  ^
                                                   {
/datasets/git/environment.c:12:1: warning: #includes are not sorted properly [llvm-include-order]
#include "environment.h"
^        ~~~~~~~~~~~~~~~
         "chdir-notify.h"
/datasets/git/environment.c:24:5: warning: variable 'trust_executable_bit' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
int trust_executable_bit = 1;
    ^
/datasets/git/environment.c:25:5: warning: variable 'trust_ctime' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
int trust_ctime = 1;
    ^
/datasets/git/environment.c:26:5: warning: variable 'check_stat' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
int check_stat = 1;
    ^
/datasets/git/environment.c:27:5: warning: variable 'has_symlinks' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
int has_symlinks = 1;
    ^
/datasets/git/environment.c:28:5: warning: variable 'minimum_abbrev' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
int minimum_abbrev = 4, default_abbrev = -1;
    ^
/datasets/git/environment.c:28:25: warning: variable 'default_abbrev' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
int minimum_abbrev = 4, default_abbrev = -1;
                        ^
/datasets/git/environment.c:29:5: warning: variable 'ignore_case' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
int ignore_case;
    ^
/datasets/git/environment.c:30:5: warning: variable 'assume_unchanged' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
int assume_unchanged;
    ^
/datasets/git/environment.c:31:5: warning: variable 'prefer_symlink_refs' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
int prefer_symlink_refs;
    ^
/datasets/git/environment.c:32:5: warning: variable 'is_bare_repository_cfg' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
int is_bare_repository_cfg = -1; /* unspecified */
    ^
/datasets/git/environment.c:33:5: warning: variable 'warn_ambiguous_refs' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
int warn_ambiguous_refs = 1;
    ^
/datasets/git/environment.c:34:5: warning: variable 'warn_on_object_refname_ambiguity' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
int warn_on_object_refname_ambiguity = 1;
    ^
/datasets/git/environment.c:35:5: warning: variable 'repository_format_precious_objects' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
int repository_format_precious_objects;
    ^
/datasets/git/environment.c:36:5: warning: variable 'repository_format_worktree_config' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
int repository_format_worktree_config;
    ^
/datasets/git/environment.c:37:13: warning: variable 'git_commit_encoding' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
const char *git_commit_encoding;
            ^
/datasets/git/environment.c:38:13: warning: variable 'git_log_output_encoding' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
const char *git_log_output_encoding;
            ^
/datasets/git/environment.c:39:7: warning: variable 'apply_default_whitespace' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
char *apply_default_whitespace;
      ^
/datasets/git/environment.c:39:7: warning: variable 'apply_default_whitespace' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/environment.c:40:7: warning: variable 'apply_default_ignorewhitespace' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
char *apply_default_ignorewhitespace;
      ^
/datasets/git/environment.c:40:7: warning: variable 'apply_default_ignorewhitespace' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/environment.c:41:13: warning: variable 'git_attributes_file' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
const char *git_attributes_file;
            ^
/datasets/git/environment.c:42:13: warning: variable 'git_hooks_path' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
const char *git_hooks_path;
            ^
/datasets/git/environment.c:43:5: warning: variable 'zlib_compression_level' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
int zlib_compression_level = Z_BEST_SPEED;
    ^
/datasets/git/environment.c:44:5: warning: variable 'pack_compression_level' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
int pack_compression_level = Z_DEFAULT_COMPRESSION;
    ^
/datasets/git/environment.c:45:5: warning: variable 'fsync_object_files' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
int fsync_object_files = -1;
    ^
/datasets/git/environment.c:46:5: warning: variable 'use_fsync' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
int use_fsync = -1;
    ^
/datasets/git/environment.c:47:19: warning: variable 'fsync_method' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
enum fsync_method fsync_method = FSYNC_METHOD_DEFAULT;
                  ^
/datasets/git/environment.c:48:22: warning: variable 'fsync_components' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
enum fsync_component fsync_components = FSYNC_COMPONENTS_DEFAULT;
                     ^
/datasets/git/environment.c:48:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
enum fsync_component fsync_components = FSYNC_COMPONENTS_DEFAULT;
                                        ^
/datasets/git/./refs/../cache.h:1017:35: note: expanded from macro 'FSYNC_COMPONENTS_DEFAULT'
#define FSYNC_COMPONENTS_DEFAULT ((FSYNC_COMPONENTS_OBJECTS | \
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/environment.c:48:41: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
enum fsync_component fsync_components = FSYNC_COMPONENTS_DEFAULT;
                                        ^
/datasets/git/./refs/../cache.h:1019:7: note: expanded from macro 'FSYNC_COMPONENTS_DEFAULT'
                                  ~FSYNC_COMPONENT_LOOSE_OBJECT)
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/environment.c:49:8: warning: variable 'packed_git_window_size' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
size_t packed_git_window_size = DEFAULT_PACKED_GIT_WINDOW_SIZE;
       ^
/datasets/git/environment.c:50:8: warning: variable 'packed_git_limit' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
size_t packed_git_limit = DEFAULT_PACKED_GIT_LIMIT;
       ^
/datasets/git/environment.c:51:8: warning: variable 'delta_base_cache_limit' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
size_t delta_base_cache_limit = 96 * 1024 * 1024;
       ^
/datasets/git/environment.c:51:33: warning: performing an implicit widening conversion to type 'size_t' (aka 'unsigned long') of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
size_t delta_base_cache_limit = 96 * 1024 * 1024;
                                ^
/datasets/git/environment.c:51:33: note: make conversion explicit to silence this warning
size_t delta_base_cache_limit = 96 * 1024 * 1024;
                                ^~~~~~~~~~~~~~~~
                                (size_t)(   )
/datasets/git/environment.c:51:33: note: perform multiplication in a wider type
size_t delta_base_cache_limit = 96 * 1024 * 1024;
                                ^~~~~~~~~
                                (long)
/datasets/git/environment.c:51:33: warning: 96 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
size_t delta_base_cache_limit = 96 * 1024 * 1024;
                                ^
/datasets/git/environment.c:51:38: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
size_t delta_base_cache_limit = 96 * 1024 * 1024;
                                     ^
/datasets/git/environment.c:51:45: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
size_t delta_base_cache_limit = 96 * 1024 * 1024;
                                            ^
/datasets/git/environment.c:52:15: warning: variable 'big_file_threshold' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
unsigned long big_file_threshold = 512 * 1024 * 1024;
              ^
/datasets/git/environment.c:52:36: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
unsigned long big_file_threshold = 512 * 1024 * 1024;
                                   ^
/datasets/git/environment.c:52:36: note: make conversion explicit to silence this warning
unsigned long big_file_threshold = 512 * 1024 * 1024;
                                   ^~~~~~~~~~~~~~~~~
                                   (unsigned long)( )
/datasets/git/environment.c:52:36: note: perform multiplication in a wider type
unsigned long big_file_threshold = 512 * 1024 * 1024;
                                   ^~~~~~~~~~
                                   (long)
/datasets/git/environment.c:52:36: warning: 512 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
unsigned long big_file_threshold = 512 * 1024 * 1024;
                                   ^
/datasets/git/environment.c:52:42: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
unsigned long big_file_threshold = 512 * 1024 * 1024;
                                         ^
/datasets/git/environment.c:52:49: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
unsigned long big_file_threshold = 512 * 1024 * 1024;
                                                ^
/datasets/git/environment.c:53:5: warning: variable 'pager_use_color' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
int pager_use_color = 1;
    ^
/datasets/git/environment.c:54:13: warning: variable 'editor_program' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
const char *editor_program;
            ^
/datasets/git/environment.c:55:13: warning: variable 'askpass_program' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
const char *askpass_program;
            ^
/datasets/git/environment.c:56:13: warning: variable 'excludes_file' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
const char *excludes_file;
            ^
/datasets/git/environment.c:57:16: warning: variable 'auto_crlf' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
enum auto_crlf auto_crlf = AUTO_CRLF_FALSE;
               ^
/datasets/git/environment.c:58:5: warning: variable 'read_replace_refs' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
int read_replace_refs = 1;
    ^
/datasets/git/environment.c:59:10: warning: variable 'core_eol' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
enum eol core_eol = EOL_UNSET;
         ^
/datasets/git/environment.c:60:5: warning: variable 'global_conv_flags_eol' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
int global_conv_flags_eol = CONV_EOL_RNDTRP_WARN;
    ^
/datasets/git/environment.c:60:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
int global_conv_flags_eol = CONV_EOL_RNDTRP_WARN;
                            ^
/datasets/git/./convert.h:14:32: note: expanded from macro 'CONV_EOL_RNDTRP_WARN'
#define CONV_EOL_RNDTRP_WARN  (1<<1) /* Warn if CRLF to LF to CRLF is different */
                               ^
/datasets/git/environment.c:61:7: warning: variable 'check_roundtrip_encoding' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
char *check_roundtrip_encoding = "SHIFT-JIS";
      ^
/datasets/git/environment.c:61:7: warning: variable 'check_roundtrip_encoding' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/environment.c:62:10: warning: variable 'whitespace_rule_cfg' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
unsigned whitespace_rule_cfg = WS_DEFAULT_RULE;
         ^
/datasets/git/environment.c:62:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
unsigned whitespace_rule_cfg = WS_DEFAULT_RULE;
                               ^
/datasets/git/./refs/../cache.h:1857:26: note: expanded from macro 'WS_DEFAULT_RULE'
#define WS_DEFAULT_RULE (WS_TRAILING_SPACE|WS_SPACE_BEFORE_TAB|8)
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./refs/../cache.h:1856:32: note: expanded from macro 'WS_TRAILING_SPACE'
#define WS_TRAILING_SPACE      (WS_BLANK_AT_EOL|WS_BLANK_AT_EOF)
                               ^
/datasets/git/environment.c:63:19: warning: variable 'git_branch_track' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
enum branch_track git_branch_track = BRANCH_TRACK_REMOTE;
                  ^
/datasets/git/environment.c:64:24: warning: variable 'autorebase' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
enum rebase_setup_type autorebase = AUTOREBASE_NEVER;
                       ^
/datasets/git/environment.c:65:24: warning: variable 'push_default' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
enum push_default_type push_default = PUSH_DEFAULT_UNSPECIFIED;
                       ^
/datasets/git/environment.c:69:27: warning: variable 'object_creation_mode' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
enum object_creation_mode object_creation_mode = OBJECT_CREATION_MODE;
                          ^
/datasets/git/environment.c:70:7: warning: variable 'notes_ref_name' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
char *notes_ref_name;
      ^
/datasets/git/environment.c:70:7: warning: variable 'notes_ref_name' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/environment.c:71:5: warning: variable 'grafts_replace_parents' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
int grafts_replace_parents = 1;
    ^
/datasets/git/environment.c:72:5: warning: variable 'core_apply_sparse_checkout' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
int core_apply_sparse_checkout;
    ^
/datasets/git/environment.c:73:5: warning: variable 'core_sparse_checkout_cone' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
int core_sparse_checkout_cone;
    ^
/datasets/git/environment.c:74:5: warning: variable 'sparse_expect_files_outside_of_patterns' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
int sparse_expect_files_outside_of_patterns;
    ^
/datasets/git/environment.c:75:5: warning: variable 'merge_log_config' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
int merge_log_config = -1;
    ^
/datasets/git/environment.c:76:5: warning: variable 'precomposed_unicode' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
int precomposed_unicode = -1; /* see probe_utf8_pathname_composition() */
    ^
/datasets/git/environment.c:77:15: warning: variable 'pack_size_limit_cfg' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
unsigned long pack_size_limit_cfg;
              ^
/datasets/git/environment.c:78:22: warning: variable 'log_all_ref_updates' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
enum log_refs_config log_all_ref_updates = LOG_REFS_UNSET;
                     ^
/datasets/git/environment.c:83:5: warning: variable 'protect_hfs' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
int protect_hfs = PROTECT_HFS_DEFAULT;
    ^
/datasets/git/environment.c:88:5: warning: variable 'protect_ntfs' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
int protect_ntfs = PROTECT_NTFS_DEFAULT;
    ^
/datasets/git/environment.c:94:6: warning: variable 'comment_line_char' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
char comment_line_char = '#';
     ^
/datasets/git/environment.c:95:5: warning: variable 'auto_comment_line_char' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
int auto_comment_line_char;
    ^
/datasets/git/environment.c:98:5: warning: variable 'core_preload_index' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
int core_preload_index = 1;
    ^
/datasets/git/environment.c:101:7: warning: variable 'git_work_tree_cfg' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
char *git_work_tree_cfg;
      ^
/datasets/git/environment.c:101:7: warning: variable 'git_work_tree_cfg' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/environment.c:103:14: warning: variable 'git_namespace' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *git_namespace;
             ^
/datasets/git/environment.c:103:14: warning: variable 'git_namespace' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/environment.c:105:14: warning: variable 'super_prefix' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *super_prefix;
             ^
/datasets/git/environment.c:105:14: warning: variable 'super_prefix' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/environment.c:133:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct strbuf **components, **c;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/environment.c:133:18: warning: variable 'components' is not initialized [cppcoreguidelines-init-variables]
        struct strbuf **components, **c;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/environment.c:133:32: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        struct strbuf **components, **c;
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/environment.c:133:32: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/environment.c:135:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!raw_namespace || !*raw_namespace)
                                              ^
                                               {
/datasets/git/environment.c:141:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (c = components; *c; c++)
        ^
/datasets/git/environment.c:141:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 'c' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (c = components; *c; c++)
                             ^
/datasets/git/environment.c:141:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (c = components; *c; c++)
                                     ^
                                      {
/datasets/git/environment.c:142:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strcmp((*c)->buf, "/") != 0)
                                                ^
                                                 {
/datasets/git/environment.c:145:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (check_refname_format(buf.buf, 0))
                                             ^
                                              {
/datasets/git/environment.c:153:22: warning: function is not thread safe [concurrency-mt-unsafe]
        const char *value = getenv(name);
                            ^
/datasets/git/environment.c:155:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!value)
                   ^
                    {
/datasets/git/environment.c:164:8: warning: variable 'git_replace_ref_base' is not initialized [cppcoreguidelines-init-variables]
        char *git_replace_ref_base;
              ^
                                   = NULL
/datasets/git/environment.c:165:14: warning: variable 'shallow_file' is not initialized [cppcoreguidelines-init-variables]
        const char *shallow_file;
                    ^
                                 = NULL
/datasets/git/environment.c:166:14: warning: variable 'replace_ref_base' is not initialized [cppcoreguidelines-init-variables]
        const char *replace_ref_base;
                    ^
                                     = NULL
/datasets/git/environment.c:175:6: warning: function is not thread safe [concurrency-mt-unsafe]
        if (getenv(GIT_QUARANTINE_ENVIRONMENT)) {
            ^
/datasets/git/environment.c:182:6: warning: function is not thread safe [concurrency-mt-unsafe]
        if (getenv(NO_REPLACE_OBJECTS_ENVIRONMENT))
            ^
/datasets/git/environment.c:182:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (getenv(NO_REPLACE_OBJECTS_ENVIRONMENT))
                                                   ^
                                                    {
/datasets/git/environment.c:184:21: warning: function is not thread safe [concurrency-mt-unsafe]
        replace_ref_base = getenv(GIT_REPLACE_REF_BASE_ENVIRONMENT);
                           ^
/datasets/git/environment.c:190:35: warning: function is not thread safe [concurrency-mt-unsafe]
        git_namespace = expand_namespace(getenv(GIT_NAMESPACE_ENVIRONMENT));
                                         ^
/datasets/git/environment.c:191:17: warning: function is not thread safe [concurrency-mt-unsafe]
        shallow_file = getenv(GIT_SHALLOW_FILE_ENVIRONMENT);
                       ^
/datasets/git/environment.c:192:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (shallow_file)
                         ^
                          {
/datasets/git/environment.c:210:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!the_repository->gitdir)
                                    ^
                                     {
/datasets/git/environment.c:217:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!the_repository->commondir)
                                       ^
                                        {
/datasets/git/environment.c:224:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!git_namespace)
                           ^
                            {
/datasets/git/environment.c:231:14: warning: variable 'out' is not initialized [cppcoreguidelines-init-variables]
        const char *out;
                    ^
                        = NULL
/datasets/git/environment.c:232:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (skip_prefix(namespaced_ref, get_git_namespace(), &out))
                                                                   ^
                                                                    {
/datasets/git/environment.c:241:34: warning: function is not thread safe [concurrency-mt-unsafe]
                super_prefix = xstrdup_or_null(getenv(GIT_SUPER_PREFIX_ENVIRONMENT));
                                               ^
/datasets/git/environment.c:247:12: warning: variable 'git_work_tree_initialized' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int git_work_tree_initialized;
           ^
/datasets/git/environment.c:261:7: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (strcmp(new_work_tree, the_repository->worktree))
                    ^
                                                                    != 0
/datasets/git/environment.c:261:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strcmp(new_work_tree, the_repository->worktree))
                                                                    ^
                                                                     {
/datasets/git/environment.c:279:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!the_repository->objects->odb)
                                          ^
                                           {
/datasets/git/environment.c:286:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/environment.c:286:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/environment.c:291:13: warning: 0444 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        int mode = 0444;
                   ^
/datasets/git/environment.c:294:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (0 <= fd)
                    ^
                     {
/datasets/git/environment.c:306:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/environment.c:306:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/environment.c:308:39: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
        fd = open(name, O_RDWR|O_CREAT|O_EXCL, 0600);
                                             ^
                                              | O_CLOEXEC
/datasets/git/environment.c:308:41: warning: 0600 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        fd = open(name, O_RDWR|O_CREAT|O_EXCL, 0600);
                                               ^
/datasets/git/environment.c:309:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (0 <= fd)
                    ^
                     {
/datasets/git/environment.c:314:41: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
        return open(name, O_RDWR|O_CREAT|O_EXCL, 0600);
                                               ^
                                                | O_CLOEXEC
/datasets/git/environment.c:314:43: warning: 0600 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        return open(name, O_RDWR|O_CREAT|O_EXCL, 0600);
                                                 ^
/datasets/git/environment.c:319:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!the_repository->index_file)
                                        ^
                                         {
/datasets/git/environment.c:324:41: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
char *get_graft_file(struct repository *r)
                                        ^
/datasets/git/environment.c:326:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!r->graft_file)
                           ^
                            {
/datasets/git/environment.c:337:36: warning: 2 adjacent parameters of 'update_relative_gitdir' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void update_relative_gitdir(const char *name UNUSED,
                                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/environment.c:337:48: note: the first parameter in the range is 'name'
static void update_relative_gitdir(const char *name UNUSED,
                                               ^~~~
/datasets/git/environment.c:338:20: note: the last parameter in the range is 'old_cwd'
                                   const char *old_cwd,
                                               ^~~~~~~
/datasets/git/environment.c:345:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf_key(&trace_setup_key,
        ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/environment.c:349:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (tmp_objdir)
                       ^
                        {
/datasets/git/environment.c:364:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_absolute_path(path))
                                    ^
                                     {
/datasets/git/environment.c:381:12: warning: variable 'the_shared_repository' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int the_shared_repository = PERM_UMASK;
           ^
/datasets/git/environment.c:382:12: warning: variable 'need_shared_repository_from_config' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int need_shared_repository_from_config = 1;
           ^
/datasets/git/environment.c:394:15: warning: variable 'value' is not initialized [cppcoreguidelines-init-variables]
                const char *value;
                            ^
                                  = NULL
/datasets/git/environment.c:395:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!git_config_get_value(var, &value))
                                                       ^
                                                        {
/datasets/git/environment.c:421:15: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
                const char *v = getenv("GIT_PRINT_SHA1_ELLIPSIS");
                            ^
/datasets/git/environment.c:421:19: warning: function is not thread safe [concurrency-mt-unsafe]
                const char *v = getenv("GIT_PRINT_SHA1_ELLIPSIS");
                                ^
/datasets/git/ewah/bitmap.c:22:38: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
#define EWAH_MASK(x) ((eword_t)1 << (x % BITS_IN_EWORD))
                                     ^
                                     ()
/datasets/git/ewah/bitmap.c:23:24: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
#define EWAH_BLOCK(x) (x / BITS_IN_EWORD)
                       ^
                       ()
/datasets/git/ewah/bitmap.c:35:27: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        return bitmap_word_alloc(32);
                                 ^
/datasets/git/ewah/bitmap.c:48:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(self->words, word_alloc, self->word_alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/ewah/bitmap.c:49:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(self->words + old_size, 0x0,
        ^~~~~~
/datasets/git/ewah/bitmap.c:49:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(self->words + old_size, 0x0,
        ^~~~~~
/datasets/git/ewah/bitmap.c:65:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (block < self->word_alloc)
                                     ^
                                      {
/datasets/git/ewah/bitmap.c:79:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t i, running_empty_words = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./ewah/ewok.h:171:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        size_t word_alloc;
        ^
/datasets/git/ewah/bitmap.c:79:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i, running_empty_words = 0;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ewah/bitmap.c:79:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ewah/bitmap.c:82:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < bitmap->word_alloc; ++i) {
        ^
/datasets/git/ewah/bitmap.c:82:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'word_alloc' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < bitmap->word_alloc; ++i) {
                    ^
/datasets/git/ewah/bitmap.c:88:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (last_word != 0)
                                   ^
                                    {
/datasets/git/ewah/bitmap.c:106:23: warning: variable name 'it' is too short, expected at least 3 characters [readability-identifier-length]
        struct ewah_iterator it;
                             ^
/datasets/git/ewah/bitmap.c:107:10: warning: variable 'blowup' is not initialized [cppcoreguidelines-init-variables]
        eword_t blowup;
                ^
                       = 0
/datasets/git/ewah/bitmap.c:108:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        size_t i = 0;
               ^
/datasets/git/ewah/bitmap.c:113:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                ALLOC_GROW(bitmap->words, i + 1, bitmap->word_alloc);
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/ewah/bitmap.c:126:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i;
               ^
                 = 0
/datasets/git/ewah/bitmap.c:126:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ewah/bitmap.c:128:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < count; ++i)
        ^
/datasets/git/ewah/bitmap.c:128:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'count' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < count; ++i)
                    ^
/datasets/git/ewah/bitmap.c:128:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < count; ++i)
                                   ^
                                    {
/datasets/git/ewah/bitmap.c:134:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i;
               ^
                 = 0
/datasets/git/ewah/bitmap.c:134:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ewah/bitmap.c:137:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < other->word_alloc; i++)
        ^
/datasets/git/ewah/bitmap.c:137:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'word_alloc' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < other->word_alloc; i++)
                    ^
/datasets/git/ewah/bitmap.c:137:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < other->word_alloc; i++)
                                               ^
                                                {
/datasets/git/ewah/bitmap.c:145:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        size_t i = 0;
               ^
/datasets/git/ewah/bitmap.c:146:23: warning: variable name 'it' is too short, expected at least 3 characters [readability-identifier-length]
        struct ewah_iterator it;
                             ^
/datasets/git/ewah/bitmap.c:147:10: warning: variable 'word' is not initialized [cppcoreguidelines-init-variables]
        eword_t word;
                ^
                     = 0
/datasets/git/ewah/bitmap.c:152:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(self->words + original_size, 0x0,
                ^~~~~~
/datasets/git/ewah/bitmap.c:152:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(self->words + original_size, 0x0,
                ^~~~~~
/datasets/git/ewah/bitmap.c:158:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (ewah_iterator_next(&word, &it))
        ^
/datasets/git/ewah/bitmap.c:158:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (ewah_iterator_next(&word, &it))
                                              ^
                                               {
/datasets/git/ewah/bitmap.c:164:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t i, count = 0;
        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/ewah/bitmap.c:164:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i, count = 0;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ewah/bitmap.c:164:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ewah/bitmap.c:166:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < self->word_alloc; ++i)
        ^
/datasets/git/ewah/bitmap.c:166:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'word_alloc' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < self->word_alloc; ++i)
                    ^
/datasets/git/ewah/bitmap.c:166:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < self->word_alloc; ++i)
                                              ^
                                               {
/datasets/git/ewah/bitmap.c:174:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct bitmap *big, *small;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ewah/bitmap.c:174:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/ewah/bitmap.c:174:17: warning: variable 'big' is not initialized [cppcoreguidelines-init-variables]
        struct bitmap *big, *small;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ewah/bitmap.c:174:23: warning: variable 'small' is not initialized [cppcoreguidelines-init-variables]
        struct bitmap *big, *small;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ewah/bitmap.c:175:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i;
               ^
                 = 0
/datasets/git/ewah/bitmap.c:175:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ewah/bitmap.c:185:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < small->word_alloc; ++i) {
        ^
/datasets/git/ewah/bitmap.c:174:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct bitmap *big, *small;
        ^
/datasets/git/ewah/bitmap.c:185:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'small' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < small->word_alloc; ++i) {
                    ^
/datasets/git/ewah/bitmap.c:186:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (small->words[i] != big->words[i])
                                                     ^
                                                      {
/datasets/git/ewah/bitmap.c:190:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; i < big->word_alloc; ++i) {
        ^
/datasets/git/ewah/bitmap.c:190:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'big' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; i < big->word_alloc; ++i) {
               ^
/datasets/git/ewah/bitmap.c:191:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (big->words[i] != 0)
                                       ^
                                        {
/datasets/git/ewah/bitmap.c:200:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t common_size, i;
        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ewah/bitmap.c:200:9: warning: variable 'common_size' is not initialized [cppcoreguidelines-init-variables]
        size_t common_size, i;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ewah/bitmap.c:200:22: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t common_size, i;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ewah/bitmap.c:200:22: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ewah/bitmap.c:200:2: note: inferred assignment of ID-dependent value from ID-dependent variable common_size [altera-id-dependent-backward-branch]
        size_t common_size, i;
        ^
/datasets/git/ewah/bitmap.c:202:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (self->word_alloc < other->word_alloc)
                                                 ^
                                                  {
/datasets/git/ewah/bitmap.c:206:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = common_size; i < self->word_alloc; i++) {
                ^
/datasets/git/ewah/bitmap.c:206:25: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = common_size; i < self->word_alloc; i++) {
                                      ^
/datasets/git/ewah/bitmap.c:207:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (self->words[i])
                                           ^
                                            {
/datasets/git/ewah/bitmap.c:212:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < common_size; i++) {
        ^
/datasets/git/ewah/bitmap.c:212:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < common_size; i++) {
                    ^
/datasets/git/ewah/bitmap.c:213:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (self->words[i] & ~other->words[i])
                                                      ^
                                                       {
/datasets/git/ewah/bitmap.c:221:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!bitmap)
                    ^
                     {
/datasets/git/ewah/ewah_bitmap.c:20:1: warning: #includes are not sorted properly [llvm-include-order]
#include "ewok.h"
^        ~~~~~~~~
         "cache.h"
/datasets/git/ewah/ewah_bitmap.c:24:38: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static inline size_t min_size(size_t a, size_t b)
                                     ^
/datasets/git/ewah/ewah_bitmap.c:24:48: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static inline size_t min_size(size_t a, size_t b)
                                               ^
/datasets/git/ewah/ewah_bitmap.c:29:38: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static inline size_t max_size(size_t a, size_t b)
                                     ^
/datasets/git/ewah/ewah_bitmap.c:29:48: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static inline size_t max_size(size_t a, size_t b)
                                               ^
/datasets/git/ewah/ewah_bitmap.c:37:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(self->buffer, new_size, self->alloc_size);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/ewah/ewah_bitmap.c:53:57: warning: 2 adjacent parameters of 'add_empty_words' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static size_t add_empty_words(struct ewah_bitmap *self, int v, size_t number)
                                                        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/ewah/ewah_bitmap.c:53:61: note: the first parameter in the range is 'v'
static size_t add_empty_words(struct ewah_bitmap *self, int v, size_t number)
                                                            ^
/datasets/git/ewah/ewah_bitmap.c:53:71: note: the last parameter in the range is 'number'
static size_t add_empty_words(struct ewah_bitmap *self, int v, size_t number)
                                                                      ^~~~~~
/datasets/git/ewah/ewah_bitmap.c:53:57: note: 
static size_t add_empty_words(struct ewah_bitmap *self, int v, size_t number)
                                                        ^
/datasets/git/ewah/ewah_bitmap.c:53:64: note: 'int' and 'size_t' may be implicitly converted: 'int' -> 'size_t' (as 'unsigned long'), 'size_t' (as 'unsigned long') -> 'int'
static size_t add_empty_words(struct ewah_bitmap *self, int v, size_t number)
                                                               ^
/datasets/git/ewah/ewah_bitmap.c:53:61: warning: parameter name 'v' is too short, expected at least 3 characters [readability-identifier-length]
static size_t add_empty_words(struct ewah_bitmap *self, int v, size_t number)
                                                            ^
/datasets/git/ewah/ewah_bitmap.c:56:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        eword_t runlen, can_add;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ewah/ewah_bitmap.c:53:64: note: inferred assignment of ID-dependent value from ID-dependent variable can_add [altera-id-dependent-backward-branch]
static size_t add_empty_words(struct ewah_bitmap *self, int v, size_t number)
                                                               ^
/datasets/git/ewah/ewah_bitmap.c:56:10: warning: variable 'runlen' is not initialized [cppcoreguidelines-init-variables]
        eword_t runlen, can_add;
                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ewah/ewah_bitmap.c:56:18: warning: variable 'can_add' is not initialized [cppcoreguidelines-init-variables]
        eword_t runlen, can_add;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ewah/ewah_bitmap.c:63:9: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                if (v) rlw_set_run_bit(self->rlw, v);
                      ^
                       {
/datasets/git/ewah/ewah_bitmap.c:73:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (number >= RLW_LARGEST_RUNNING_COUNT) {
        ^
/datasets/git/ewah/ewah_bitmap.c:73:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'number' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (number >= RLW_LARGEST_RUNNING_COUNT) {
               ^
/datasets/git/ewah/ewah_bitmap.c:76:9: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                if (v) rlw_set_run_bit(self->rlw, v);
                      ^
                       {
/datasets/git/ewah/ewah_bitmap.c:85:9: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                if (v) rlw_set_run_bit(self->rlw, v);
                      ^
                       {
/datasets/git/ewah/ewah_bitmap.c:92:59: warning: parameter name 'v' is too short, expected at least 3 characters [readability-identifier-length]
size_t ewah_add_empty_words(struct ewah_bitmap *self, int v, size_t number)
                                                          ^
/datasets/git/ewah/ewah_bitmap.c:94:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (number == 0)
                        ^
                         {
/datasets/git/ewah/ewah_bitmap.c:124:2: warning: 2 adjacent parameters of 'ewah_add_dirty_words' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
        size_t number, int negate)
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ewah/ewah_bitmap.c:124:9: note: the first parameter in the range is 'number'
        size_t number, int negate)
               ^~~~~~
/datasets/git/ewah/ewah_bitmap.c:124:21: note: the last parameter in the range is 'negate'
        size_t number, int negate)
                           ^~~~~~
/datasets/git/ewah/ewah_bitmap.c:124:2: note: 
        size_t number, int negate)
        ^
/datasets/git/ewah/ewah_bitmap.c:124:17: note: 'size_t' and 'int' may be implicitly converted: 'size_t' (as 'unsigned long') -> 'int', 'int' -> 'size_t' (as 'unsigned long')
        size_t number, int negate)
                       ^
/datasets/git/ewah/ewah_bitmap.c:126:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t literals, can_add;
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ewah/ewah_bitmap.c:126:9: warning: variable 'literals' is not initialized [cppcoreguidelines-init-variables]
        size_t literals, can_add;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ewah/ewah_bitmap.c:126:19: warning: variable 'can_add' is not initialized [cppcoreguidelines-init-variables]
        size_t literals, can_add;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ewah/ewah_bitmap.c:137:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                        size_t i;
                               ^
                                 = 0
/datasets/git/ewah/ewah_bitmap.c:137:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ewah/ewah_bitmap.c:138:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = 0; i < can_add; ++i)
                        ^
/datasets/git/ewah/ewah_bitmap.c:138:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'can_add' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (i = 0; i < can_add; ++i)
                                    ^
/datasets/git/ewah/ewah_bitmap.c:138:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (i = 0; i < can_add; ++i)
                                                     ^
                                                      {
/datasets/git/ewah/ewah_bitmap.c:141:4: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memcpy(self->buffer + self->buffer_size,
                        ^~~~~~
/datasets/git/ewah/ewah_bitmap.c:141:4: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                        memcpy(self->buffer + self->buffer_size,
                        ^~~~~~
/datasets/git/ewah/ewah_bitmap.c:148:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (number - can_add == 0)
                                          ^
                                           {
/datasets/git/ewah/ewah_bitmap.c:157:15: warning: function 'add_empty_word' has cognitive complexity of 53 (threshold 25) [readability-function-cognitive-complexity]
static size_t add_empty_word(struct ewah_bitmap *self, int v)
              ^
/datasets/git/ewah/ewah_bitmap.c:162:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (no_literal && run_len == 0) {
        ^
/datasets/git/ewah/ewah_bitmap.c:162:17: note: +1
        if (no_literal && run_len == 0) {
                       ^
/datasets/git/ewah/ewah_bitmap.c:164:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(rlw_get_run_bit(self->rlw) == v);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/ewah/ewah_bitmap.c:164:3: note: nesting level increased to 2
                assert(rlw_get_run_bit(self->rlw) == v);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/ewah/ewah_bitmap.c:164:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(rlw_get_run_bit(self->rlw) == v);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/ewah/ewah_bitmap.c:164:3: note: +1, nesting level increased to 3
                assert(rlw_get_run_bit(self->rlw) == v);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/ewah/ewah_bitmap.c:167:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (no_literal && rlw_get_run_bit(self->rlw) == v &&
        ^
/datasets/git/ewah/ewah_bitmap.c:167:52: note: +1
        if (no_literal && rlw_get_run_bit(self->rlw) == v &&
                                                          ^
/datasets/git/ewah/ewah_bitmap.c:170:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(rlw_get_running_len(self->rlw) == run_len + 1);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/ewah/ewah_bitmap.c:170:3: note: nesting level increased to 2
                assert(rlw_get_running_len(self->rlw) == run_len + 1);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/ewah/ewah_bitmap.c:170:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(rlw_get_running_len(self->rlw) == run_len + 1);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/ewah/ewah_bitmap.c:170:3: note: +1, nesting level increased to 3
                assert(rlw_get_running_len(self->rlw) == run_len + 1);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/ewah/ewah_bitmap.c:172:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/ewah/ewah_bitmap.c:175:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(rlw_get_running_len(self->rlw) == 0);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/ewah/ewah_bitmap.c:175:3: note: nesting level increased to 2
                assert(rlw_get_running_len(self->rlw) == 0);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/ewah/ewah_bitmap.c:175:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(rlw_get_running_len(self->rlw) == 0);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/ewah/ewah_bitmap.c:175:3: note: +1, nesting level increased to 3
                assert(rlw_get_running_len(self->rlw) == 0);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/ewah/ewah_bitmap.c:176:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(rlw_get_run_bit(self->rlw) == 0);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/ewah/ewah_bitmap.c:176:3: note: nesting level increased to 2
                assert(rlw_get_run_bit(self->rlw) == 0);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/ewah/ewah_bitmap.c:176:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(rlw_get_run_bit(self->rlw) == 0);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/ewah/ewah_bitmap.c:176:3: note: +1, nesting level increased to 3
                assert(rlw_get_run_bit(self->rlw) == 0);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/ewah/ewah_bitmap.c:177:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(rlw_get_literal_words(self->rlw) == 0);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/ewah/ewah_bitmap.c:177:3: note: nesting level increased to 2
                assert(rlw_get_literal_words(self->rlw) == 0);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/ewah/ewah_bitmap.c:177:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(rlw_get_literal_words(self->rlw) == 0);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/ewah/ewah_bitmap.c:177:3: note: +1, nesting level increased to 3
                assert(rlw_get_literal_words(self->rlw) == 0);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/ewah/ewah_bitmap.c:180:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(rlw_get_run_bit(self->rlw) == v);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/ewah/ewah_bitmap.c:180:3: note: nesting level increased to 2
                assert(rlw_get_run_bit(self->rlw) == v);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/ewah/ewah_bitmap.c:180:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(rlw_get_run_bit(self->rlw) == v);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/ewah/ewah_bitmap.c:180:3: note: +1, nesting level increased to 3
                assert(rlw_get_run_bit(self->rlw) == v);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/ewah/ewah_bitmap.c:183:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(rlw_get_running_len(self->rlw) == 1);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/ewah/ewah_bitmap.c:183:3: note: nesting level increased to 2
                assert(rlw_get_running_len(self->rlw) == 1);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/ewah/ewah_bitmap.c:183:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(rlw_get_running_len(self->rlw) == 1);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/ewah/ewah_bitmap.c:183:3: note: +1, nesting level increased to 3
                assert(rlw_get_running_len(self->rlw) == 1);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/ewah/ewah_bitmap.c:184:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(rlw_get_literal_words(self->rlw) == 0);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/ewah/ewah_bitmap.c:184:3: note: nesting level increased to 2
                assert(rlw_get_literal_words(self->rlw) == 0);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/ewah/ewah_bitmap.c:184:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(rlw_get_literal_words(self->rlw) == 0);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/ewah/ewah_bitmap.c:184:3: note: +1, nesting level increased to 3
                assert(rlw_get_literal_words(self->rlw) == 0);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/ewah/ewah_bitmap.c:157:60: warning: parameter name 'v' is too short, expected at least 3 characters [readability-identifier-length]
static size_t add_empty_word(struct ewah_bitmap *self, int v)
                                                           ^
/datasets/git/ewah/ewah_bitmap.c:172:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else {
          ^~~~~~
/datasets/git/ewah/ewah_bitmap.c:193:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (word == 0)
                      ^
                       {
/datasets/git/ewah/ewah_bitmap.c:196:14: warning: either cast from 'int' to 'eword_t' (aka 'unsigned long') is ineffective, or there is loss of precision before the conversion [bugprone-misplaced-widening-cast]
        if (word == (eword_t)(~0))
                    ^
/datasets/git/ewah/ewah_bitmap.c:196:24: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
        if (word == (eword_t)(~0))
                              ^~
/datasets/git/ewah/ewah_bitmap.c:196:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (word == (eword_t)(~0))
                                  ^
                                   {
/datasets/git/ewah/ewah_bitmap.c:202:48: warning: parameter name 'i' is too short, expected at least 3 characters [readability-identifier-length]
void ewah_set(struct ewah_bitmap *self, size_t i)
                                               ^
/datasets/git/ewah/ewah_bitmap.c:213:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (dist > 1)
                             ^
                              {
/datasets/git/ewah/ewah_bitmap.c:231:45: warning: either cast from 'int' to 'eword_t' (aka 'unsigned long') is ineffective, or there is loss of precision before the conversion [bugprone-misplaced-widening-cast]
        if (self->buffer[self->buffer_size - 1] == (eword_t)(~0)) {
                                                   ^
/datasets/git/ewah/ewah_bitmap.c:231:55: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
        if (self->buffer[self->buffer_size - 1] == (eword_t)(~0)) {
                                                             ^~
/datasets/git/./ewah/ewok.h:59:2: note: inferred assignment of ID-dependent member from ID-dependent variable can_add [altera-id-dependent-backward-branch]
        size_t buffer_size;
        ^
/datasets/git/ewah/ewah_bitmap.c:243:9: warning: variable 'k' is not initialized [cppcoreguidelines-init-variables]
        size_t k;
               ^
                 = 0
/datasets/git/ewah/ewah_bitmap.c:243:9: warning: variable name 'k' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ewah/ewah_bitmap.c:246:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                eword_t *word = &self->buffer[pointer];
                ^
/datasets/git/ewah/ewah_bitmap.c:245:9: warning: backward branch (while loop) is ID-dependent due to member reference to 'buffer_size' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (pointer < self->buffer_size) {
               ^
/datasets/git/ewah/ewah_bitmap.c:250:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (k = 0; k < len; ++k, ++pos)
                        ^
/datasets/git/ewah/ewah_bitmap.c:250:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (k = 0; k < len; ++k, ++pos)
                                    ^
/datasets/git/ewah/ewah_bitmap.c:250:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (k = 0; k < len; ++k, ++pos)
                                                        ^
                                                         {
/datasets/git/ewah/ewah_bitmap.c:258:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'word' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (k = 0; k < rlw_get_literal_words(word); ++k) {
                            ^
/datasets/git/ewah/ewah_bitmap.c:259:8: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
                        int c;
                            ^
                              = 0
/datasets/git/ewah/ewah_bitmap.c:259:8: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ewah/ewah_bitmap.c:262:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (c = 0; c < BITS_IN_EWORD; ++c, ++pos) {
                        ^
/datasets/git/ewah/ewah_bitmap.c:263:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if ((self->buffer[pointer] & ((eword_t)1 << c)) != 0)
                                                              ^             ~
/datasets/git/ewah/ewah_bitmap.c:263:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if ((self->buffer[pointer] & ((eword_t)1 << c)) != 0)
                                                                                     ^
                                                                                      {
/datasets/git/ewah/ewah_bitmap.c:286:22: warning: variable 'self' is not initialized [cppcoreguidelines-init-variables]
        struct ewah_bitmap *self;
                            ^
                                 = NULL
/datasets/git/ewah/ewah_bitmap.c:289:21: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        self->alloc_size = 32;
                           ^
/datasets/git/ewah/ewah_bitmap.c:298:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!self)
                  ^
                   {
/datasets/git/ewah/ewah_bitmap.c:301:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (self->alloc_size)
                             ^
                              {
/datasets/git/ewah/ewah_bitmap.c:307:48: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
static void read_new_rlw(struct ewah_iterator *it)
                                               ^
/datasets/git/ewah/ewah_bitmap.c:314:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/ewah/ewah_bitmap.c:321:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (it->rl || it->lw)
                                     ^
                                      {
/datasets/git/ewah/ewah_bitmap.c:333:61: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
int ewah_iterator_next(eword_t *next, struct ewah_iterator *it)
                                                            ^
/datasets/git/ewah/ewah_bitmap.c:335:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (it->pointer >= it->buffer_size)
                                           ^
                                            {
/datasets/git/ewah/ewah_bitmap.c:340:29: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                *next = it->b ? (eword_t)(~0) : 0;
                                          ^~
/datasets/git/ewah/ewah_bitmap.c:353:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (++it->pointer < it->buffer_size)
                                                    ^
                                                     {
/datasets/git/ewah/ewah_bitmap.c:360:47: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
void ewah_iterator_init(struct ewah_iterator *it, struct ewah_bitmap *parent)
                                              ^
/datasets/git/ewah/ewah_bitmap.c:372:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (it->pointer < it->buffer_size)
                                          ^
                                           {
/datasets/git/ewah/ewah_bitmap.c:383:9: warning: variable 'literals' is not initialized [cppcoreguidelines-init-variables]
        size_t literals;
               ^
                        = 0
/datasets/git/ewah/ewah_bitmap.c:389:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (rlw_i.rlw.running_len > 0 || rlw_j.rlw.running_len > 0) {
                ^
/datasets/git/ewah/ewah_bitmap.c:390:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        struct rlw_iterator *prey, *predator;
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ewah/ewah_bitmap.c:390:25: warning: variable 'prey' is not initialized [cppcoreguidelines-init-variables]
                        struct rlw_iterator *prey, *predator;
                                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ewah/ewah_bitmap.c:390:32: warning: variable 'predator' is not initialized [cppcoreguidelines-init-variables]
                        struct rlw_iterator *prey, *predator;
                                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ewah/ewah_bitmap.c:391:11: warning: variable 'index' is not initialized [cppcoreguidelines-init-variables]
                        size_t index;
                               ^
                                     = 0
/datasets/git/ewah/ewah_bitmap.c:392:8: warning: variable 'negate_words' is not initialized [cppcoreguidelines-init-variables]
                        int negate_words;
                            ^
                                         = 0
/datasets/git/ewah/ewah_bitmap.c:383:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        size_t literals;
        ^
/datasets/git/ewah/ewah_bitmap.c:418:11: warning: variable 'k' is not initialized [cppcoreguidelines-init-variables]
                        size_t k;
                               ^
                                 = 0
/datasets/git/ewah/ewah_bitmap.c:418:11: warning: variable name 'k' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ewah/ewah_bitmap.c:420:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (k = 0; k < literals; ++k) {
                        ^
/datasets/git/ewah/ewah_bitmap.c:420:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'literals' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (k = 0; k < literals; ++k) {
                                    ^
/datasets/git/ewah/ewah_bitmap.c:432:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (rlwit_word_size(&rlw_i) > 0)
                                        ^
                                         {
/datasets/git/ewah/ewah_bitmap.c:433:32: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                rlwit_discharge(&rlw_i, out, ~0, 0);
                                             ^~
/datasets/git/ewah/ewah_bitmap.c:434:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/ewah/ewah_bitmap.c:435:32: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                rlwit_discharge(&rlw_j, out, ~0, 0);
                                             ^~
/datasets/git/ewah/ewah_bitmap.c:440:1: warning: replace macro with enum [modernize-macro-to-enum]
#define BITMAP_POOL_MAX 16
^~~~~~~~
                        =
/datasets/git/ewah/ewah_bitmap.c:440:9: warning: macro 'BITMAP_POOL_MAX' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define BITMAP_POOL_MAX 16
        ^
/datasets/git/ewah/ewah_bitmap.c:441:28: warning: variable 'bitmap_pool' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct ewah_bitmap *bitmap_pool[BITMAP_POOL_MAX];
                           ^
/datasets/git/ewah/ewah_bitmap.c:442:15: warning: variable 'bitmap_pool_size' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static size_t bitmap_pool_size;
              ^
/datasets/git/ewah/ewah_bitmap.c:446:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (bitmap_pool_size)
                             ^
                              {
/datasets/git/ewah/ewah_bitmap.c:454:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!self)
                  ^
                   {
/datasets/git/ewah/ewah_bitmap.c:469:17: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        const uint8_t *p = (uint8_t *)self->buffer;
                       ^
/datasets/git/ewah/ewah_bitmap.c:473:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (size--)
        ^
/datasets/git/ewah/ewah_bitmap.c:473:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'size' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (size--)
               ^
/datasets/git/ewah/ewah_bitmap.c:473:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (size--)
                      ^
                       {
/datasets/git/ewah/ewah_bitmap.c:474:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                crc = (crc << 5) - crc + (uint32_t)*p++;
                       ^      ~
/datasets/git/ewah/ewah_bitmap.c:474:17: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                crc = (crc << 5) - crc + (uint32_t)*p++;
                              ^
/datasets/git/ewah/ewah_io.c:27:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i;
               ^
                 = 0
/datasets/git/ewah/ewah_io.c:27:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ewah/ewah_io.c:28:15: warning: 2048 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        eword_t dump[2048];
                     ^
/datasets/git/ewah/ewah_io.c:30:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        uint32_t bitsize, word_count, rlw_pos;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ewah/ewah_io.c:30:11: warning: variable 'bitsize' is not initialized [cppcoreguidelines-init-variables]
        uint32_t bitsize, word_count, rlw_pos;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ewah/ewah_io.c:30:20: warning: variable 'word_count' is not initialized [cppcoreguidelines-init-variables]
        uint32_t bitsize, word_count, rlw_pos;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ewah/ewah_io.c:30:32: warning: variable 'rlw_pos' is not initialized [cppcoreguidelines-init-variables]
        uint32_t bitsize, word_count, rlw_pos;
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ewah/ewah_io.c:32:17: warning: variable 'buffer' is not initialized [cppcoreguidelines-init-variables]
        const eword_t *buffer;
                       ^
                              = NULL
/datasets/git/ewah/ewah_io.c:33:9: warning: variable 'words_left' is not initialized [cppcoreguidelines-init-variables]
        size_t words_left;
               ^
                          = 0
/datasets/git/ewah/ewah_io.c:37:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_fun(data, &bitsize, 4) != 4)
                                              ^
                                               {
/datasets/git/ewah/ewah_io.c:42:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_fun(data, &word_count, 4) != 4)
                                                 ^
                                                  {
/datasets/git/ewah/ewah_io.c:49:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'words_left' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (words_left >= words_per_dump) {
               ^
/datasets/git/ewah/ewah_io.c:50:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < words_per_dump; ++i, ++buffer)
                ^
/datasets/git/ewah/ewah_io.c:50:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'words_per_dump' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < words_per_dump; ++i, ++buffer)
                            ^
/datasets/git/ewah/ewah_io.c:50:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < words_per_dump; ++i, ++buffer)
                                                              ^
                                                               {
/datasets/git/ewah/ewah_io.c:53:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (write_fun(data, dump, sizeof(dump)) != sizeof(dump))
                                                                        ^
                                                                         {
/datasets/git/ewah/ewah_io.c:60:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < words_left; ++i, ++buffer)
                ^
/datasets/git/ewah/ewah_io.c:60:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'words_left' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < words_left; ++i, ++buffer)
                            ^
/datasets/git/ewah/ewah_io.c:60:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < words_left; ++i, ++buffer)
                                                          ^
                                                           {
/datasets/git/ewah/ewah_io.c:63:42: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (write_fun(data, dump, words_left * 8) != words_left * 8)
                                                       ^
/datasets/git/ewah/ewah_io.c:63:61: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (write_fun(data, dump, words_left * 8) != words_left * 8)
                                                                          ^
/datasets/git/ewah/ewah_io.c:63:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (write_fun(data, dump, words_left * 8) != words_left * 8)
                                                                            ^
                                                                             {
/datasets/git/ewah/ewah_io.c:71:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_fun(data, &rlw_pos, 4) != 4)
                                              ^
                                               {
/datasets/git/ewah/ewah_io.c:74:9: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return (3 * 4) + (self->buffer_size * 8);
               ^
/datasets/git/ewah/ewah_io.c:74:10: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        return (3 * 4) + (self->buffer_size * 8);
                ^
/datasets/git/ewah/ewah_io.c:74:10: note: make conversion explicit to silence this warning
        return (3 * 4) + (self->buffer_size * 8);
                ^~~~~
                (unsigned long)( )
/datasets/git/ewah/ewah_io.c:74:10: note: perform multiplication in a wider type
        return (3 * 4) + (self->buffer_size * 8);
                ^
                (long)
/datasets/git/ewah/ewah_io.c:74:40: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        return (3 * 4) + (self->buffer_size * 8);
                                              ^
/datasets/git/ewah/ewah_io.c:77:25: warning: 2 adjacent parameters of 'write_strbuf' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int write_strbuf(void *user_data, const void *data, size_t len)
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ewah/ewah_io.c:77:31: note: the first parameter in the range is 'user_data'
static int write_strbuf(void *user_data, const void *data, size_t len)
                              ^~~~~~~~~
/datasets/git/ewah/ewah_io.c:77:54: note: the last parameter in the range is 'data'
static int write_strbuf(void *user_data, const void *data, size_t len)
                                                     ^~~~
/datasets/git/ewah/ewah_io.c:77:42: note: 'void *' and 'const void *' may be implicitly converted
static int write_strbuf(void *user_data, const void *data, size_t len)
                                         ^
/datasets/git/ewah/ewah_io.c:79:17: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf *sb = user_data;
                       ^
/datasets/git/ewah/ewah_io.c:81:9: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return len;
               ^
/datasets/git/ewah/ewah_io.c:84:68: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
int ewah_serialize_strbuf(struct ewah_bitmap *self, struct strbuf *sb)
                                                                   ^
/datasets/git/ewah/ewah_io.c:92:9: warning: variable 'data_len' is not initialized [cppcoreguidelines-init-variables]
        size_t data_len;
               ^
                        = 0
/datasets/git/ewah/ewah_io.c:93:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i;
               ^
                 = 0
/datasets/git/ewah/ewah_io.c:93:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ewah/ewah_io.c:95:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len < sizeof(uint32_t))
                                   ^
                                    {
/datasets/git/ewah/ewah_io.c:101:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len < sizeof(uint32_t))
                                   ^
                                    {
/datasets/git/ewah/ewah_io.c:116:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len < data_len)
                           ^
                            {
/datasets/git/ewah/ewah_io.c:120:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(self->buffer, ptr, data_len);
        ^~~~~~
/datasets/git/ewah/ewah_io.c:120:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(self->buffer, ptr, data_len);
        ^~~~~~
/datasets/git/ewah/ewah_io.c:124:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < self->buffer_size; ++i)
        ^
/datasets/git/ewah/ewah_io.c:124:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'buffer_size' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < self->buffer_size; ++i)
                    ^
/datasets/git/ewah/ewah_io.c:124:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < self->buffer_size; ++i)
                                               ^
                                                {
/datasets/git/ewah/ewah_io.c:127:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len < sizeof(uint32_t))
                                   ^
                                    {
/datasets/git/ewah/ewah_io.c:131:2: warning: Value stored to 'len' is never read [clang-analyzer-deadcode.DeadStores]
        len -= sizeof(uint32_t);
        ^      ~~~~~~~~~~~~~~~~
/datasets/git/ewah/ewah_io.c:131:2: note: Value stored to 'len' is never read
        len -= sizeof(uint32_t);
        ^      ~~~~~~~~~~~~~~~~
ewah/ewah_rlw.c:23:50: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
static inline int next_word(struct rlw_iterator *it)
                                                 ^
/datasets/git/ewah/ewah_rlw.c:25:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (it->pointer >= it->size)
                                    ^
                                     {
/datasets/git/ewah/ewah_rlw.c:31:26: warning: narrowing conversion from 'eword_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        it->rlw.literal_words = rlw_get_literal_words(it->rlw.word);
                                ^
/datasets/git/ewah/ewah_rlw.c:32:24: warning: narrowing conversion from 'eword_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        it->rlw.running_len = rlw_get_running_len(it->rlw.word);
                              ^
/datasets/git/ewah/ewah_rlw.c:39:38: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
void rlwit_init(struct rlw_iterator *it, struct ewah_bitmap *from_ewah)
                                     ^
/datasets/git/ewah/ewah_rlw.c:51:53: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
void rlwit_discard_first_words(struct rlw_iterator *it, size_t x)
                                                    ^
/datasets/git/ewah/ewah_rlw.c:51:64: warning: parameter name 'x' is too short, expected at least 3 characters [readability-identifier-length]
void rlwit_discard_first_words(struct rlw_iterator *it, size_t x)
                                                               ^
/datasets/git/ewah/ewah_rlw.c:51:57: note: inferred assignment of ID-dependent value from ID-dependent member running_len [altera-id-dependent-backward-branch]
void rlwit_discard_first_words(struct rlw_iterator *it, size_t x)
                                                        ^
/datasets/git/ewah/ewah_rlw.c:53:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (x > 0) {
        ^
/datasets/git/ewah/ewah_rlw.c:53:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'x' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (x > 0) {
               ^
/datasets/git/ewah/ewah_rlw.c:54:10: warning: variable 'discard' is not initialized [cppcoreguidelines-init-variables]
                size_t discard;
                       ^
                               = 0
/datasets/git/ewah/ewah_rlw.c:57:27: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        it->rlw.running_len -= x;
                                               ^
/datasets/git/ewah/ewah_rlw.c:67:28: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                it->rlw.literal_words -= discard;
                                         ^
/datasets/git/ewah/ewah_rlw.c:71:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!next_word(it))
                                           ^
                                            {
/datasets/git/ewah/ewah_rlw.c:81:23: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
        struct rlw_iterator *it, struct ewah_bitmap *out, size_t max, int negate)
                             ^
/datasets/git/ewah/ewah_rlw.c:83:2: note: inferred assignment of ID-dependent value from ID-dependent variable pl [altera-id-dependent-backward-branch]
        size_t index = 0;
        ^
/datasets/git/ewah/ewah_rlw.c:81:52: warning: 2 adjacent parameters of 'rlwit_discharge' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
        struct rlw_iterator *it, struct ewah_bitmap *out, size_t max, int negate)
                                                          ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ewah/ewah_rlw.c:81:59: note: the first parameter in the range is 'max'
        struct rlw_iterator *it, struct ewah_bitmap *out, size_t max, int negate)
                                                                 ^~~
/datasets/git/ewah/ewah_rlw.c:81:68: note: the last parameter in the range is 'negate'
        struct rlw_iterator *it, struct ewah_bitmap *out, size_t max, int negate)
                                                                          ^~~~~~
/datasets/git/ewah/ewah_rlw.c:81:52: note: 
        struct rlw_iterator *it, struct ewah_bitmap *out, size_t max, int negate)
                                                          ^
/datasets/git/ewah/ewah_rlw.c:81:64: note: 'size_t' and 'int' may be implicitly converted: 'size_t' (as 'unsigned long') -> 'int', 'int' -> 'size_t' (as 'unsigned long')
        struct rlw_iterator *it, struct ewah_bitmap *out, size_t max, int negate)
                                                                      ^
/datasets/git/ewah/ewah_rlw.c:85:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (index < max && rlwit_word_size(it) > 0) {
        ^
/datasets/git/ewah/ewah_rlw.c:85:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'index' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (index < max && rlwit_word_size(it) > 0) {
               ^
/datasets/git/ewah/ewah_rlw.c:86:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                size_t pd, pl = it->rlw.running_len;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ewah/ewah_rlw.c:86:10: warning: variable 'pd' is not initialized [cppcoreguidelines-init-variables]
                size_t pd, pl = it->rlw.running_len;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ewah/ewah_rlw.c:86:10: warning: variable name 'pd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ewah/ewah_rlw.c:86:14: warning: variable name 'pl' is too short, expected at least 3 characters [readability-identifier-length]
                size_t pd, pl = it->rlw.running_len;
                           ^
/datasets/git/ewah/ewah_rlw.c:88:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (index + pl > max)
                                     ^
                                      {
/datasets/git/ewah/ewah_rlw.c:91:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ewah_add_empty_words(out, it->rlw.running_bit ^ negate, pl);
                                          ^~~~~~~~~~~~~~~~~~~
/datasets/git/ewah/ewah_rlw.c:95:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pd + index > max)
                                     ^
                                      {
/datasets/git/exec-cmd.c:20:1: warning: replace macro with enum [modernize-macro-to-enum]
#define MAX_ARGS 32
^~~~~~~~
                 =
/datasets/git/exec-cmd.c:20:9: warning: macro 'MAX_ARGS' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define MAX_ARGS 32
        ^
/datasets/git/exec-cmd.c:263:16: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf d = STRBUF_INIT;
                      ^
/datasets/git/exec-cmd.c:265:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_absolute_path(path))
                                   ^
                                    {
/datasets/git/exec-cmd.c:272:20: warning: variable 'exec_path_value' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *exec_path_value;
                   ^
/datasets/git/exec-cmd.c:280:2: warning: function is not thread safe [concurrency-mt-unsafe]
        setenv(EXEC_PATH_ENVIRONMENT, exec_path, 1);
        ^
/datasets/git/exec-cmd.c:287:21: warning: function is not thread safe [concurrency-mt-unsafe]
                const char *env = getenv(EXEC_PATH_ENVIRONMENT);
                                  ^
/datasets/git/exec-cmd.c:288:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (env && *env)
                                ^
                                 {
/datasets/git/exec-cmd.c:290:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/exec-cmd.c:307:25: warning: function is not thread safe [concurrency-mt-unsafe]
        const char *old_path = getenv("PATH");
                               ^
/datasets/git/exec-cmd.c:313:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (old_path)
                     ^
                      {
/datasets/git/exec-cmd.c:315:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/exec-cmd.c:318:2: warning: function is not thread safe [concurrency-mt-unsafe]
        setenv("PATH", new_path.buf, 1);
        ^
/datasets/git/exec-cmd.c:335:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_argv_printf(nargv.v, "trace: exec:");
        ^
/datasets/git/./trace.h:184:2: note: expanded from macro 'trace_argv_printf'
        do {                                                                \
        ^
/datasets/git/exec-cmd.c:340:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf("trace: exec failed: %s\n", strerror(errno));
        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/exec-cmd.c:340:43: warning: function is not thread safe [concurrency-mt-unsafe]
        trace_printf("trace: exec failed: %s\n", strerror(errno));
                                                 ^
/datasets/git/exec-cmd.c:348:6: warning: variable 'argc' is not initialized [cppcoreguidelines-init-variables]
        int argc;
            ^
                 = 0
/datasets/git/exec-cmd.c:350:14: warning: variable 'arg' is not initialized [cppcoreguidelines-init-variables]
        const char *arg;
                    ^
                        = NULL
/datasets/git/exec-cmd.c:356:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (argc < MAX_ARGS) {
        ^
/datasets/git/exec-cmd.c:357:24: warning: va_arg() is called on an uninitialized va_list [clang-analyzer-valist.Uninitialized]
                arg = argv[argc++] = va_arg(param, char *);
                                     ^
/usr/lib/llvm-15/lib/clang/15.0.2/include/stdarg.h:19:29: note: expanded from macro 'va_arg'
#define va_arg(ap, type)    __builtin_va_arg(ap, type)
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/exec-cmd.c:356:2: note: Loop condition is true.  Entering loop body
        while (argc < MAX_ARGS) {
        ^
/datasets/git/exec-cmd.c:357:24: note: va_arg() is called on an uninitialized va_list
                arg = argv[argc++] = va_arg(param, char *);
                                     ^
/usr/lib/llvm-15/lib/clang/15.0.2/include/stdarg.h:19:29: note: expanded from macro 'va_arg'
#define va_arg(ap, type)    __builtin_va_arg(ap, type)
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/exec-cmd.c:358:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!arg)
                         ^
                          {
/datasets/git/exec-cmd.c:362:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (MAX_ARGS <= argc)
                             ^
                              {
/datasets/git/fetch-negotiator.c:4:1: warning: #includes are not sorted properly [llvm-include-order]
#include "negotiator/skipping.h"
^        ~~~~~~~~~~~~~~~~~~~~~~~
         "negotiator/noop.h"
/datasets/git/fetch-negotiator.c:8:47: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void fetch_negotiator_init(struct repository *r,
                                              ^
/datasets/git/fetch-pack.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "repository.h"
^        ~~~~~~~~~~~~~~
         "commit-graph.h"
/datasets/git/fetch-pack.c:31:12: warning: variable 'transfer_unpack_limit' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int transfer_unpack_limit = -1;
           ^
/datasets/git/fetch-pack.c:32:12: warning: variable 'fetch_unpack_limit' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int fetch_unpack_limit = -1;
           ^
/datasets/git/fetch-pack.c:33:12: warning: variable 'unpack_limit' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int unpack_limit = 100;
           ^
/datasets/git/fetch-pack.c:33:27: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
static int unpack_limit = 100;
                          ^
/datasets/git/fetch-pack.c:34:12: warning: variable 'prefer_ofs_delta' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int prefer_ofs_delta = 1;
           ^
/datasets/git/fetch-pack.c:35:12: warning: variable 'no_done' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int no_done;
           ^
/datasets/git/fetch-pack.c:36:12: warning: variable 'deepen_since_ok' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int deepen_since_ok;
           ^
/datasets/git/fetch-pack.c:37:12: warning: variable 'deepen_not_ok' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int deepen_not_ok;
           ^
/datasets/git/fetch-pack.c:38:12: warning: variable 'fetch_fsck_objects' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int fetch_fsck_objects = -1;
           ^
/datasets/git/fetch-pack.c:39:12: warning: variable 'transfer_fsck_objects' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int transfer_fsck_objects = -1;
           ^
/datasets/git/fetch-pack.c:40:12: warning: variable 'agent_supported' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int agent_supported;
           ^
/datasets/git/fetch-pack.c:41:12: warning: variable 'server_supports_filtering' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int server_supports_filtering;
           ^
/datasets/git/fetch-pack.c:42:12: warning: variable 'advertise_sid' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int advertise_sid;
           ^
/datasets/git/fetch-pack.c:43:28: warning: variable 'shallow_lock' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct shallow_lock shallow_lock;
                           ^
/datasets/git/fetch-pack.c:44:20: warning: variable 'alternate_shallow_file' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *alternate_shallow_file;
                   ^
/datasets/git/fetch-pack.c:45:28: warning: variable 'fsck_options' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct fsck_options fsck_options = FSCK_OPTIONS_MISSING_GITMODULES;
                           ^
/datasets/git/fetch-pack.c:46:22: warning: variable 'fsck_msg_types' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct strbuf fsck_msg_types = STRBUF_INIT;
                     ^
/datasets/git/fetch-pack.c:46:22: warning: initializing non-local variable with non-const expression depending on uninitialized non-local variable 'strbuf_slopbuf' [cppcoreguidelines-interfaces-global-init]
/datasets/git/fetch-pack.c:47:27: warning: variable 'uri_protocols' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct string_list uri_protocols = STRING_LIST_INIT_DUP;
                          ^
/datasets/git/fetch-pack.c:61:12: warning: variable 'multi_ack' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int multi_ack, use_sideband;
           ^
/datasets/git/fetch-pack.c:61:23: warning: variable 'use_sideband' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int multi_ack, use_sideband;
                      ^
/datasets/git/fetch-pack.c:66:21: warning: variable 'allow_unadvertised_object_request' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned int allow_unadvertised_object_request;
                    ^
/datasets/git/fetch-pack.c:74:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!args->verbose)
                           ^
                            {
/datasets/git/fetch-pack.c:78:2: warning: the value returned by this function should be used [cert-err33-c]
        vfprintf(stderr, fmt, params);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/fetch-pack.c:78:2: note: cast the expression to void to silence this warning
/datasets/git/fetch-pack.c:78:2: warning: Function 'vfprintf' is called with an uninitialized va_list argument [clang-analyzer-valist.Uninitialized]
        vfprintf(stderr, fmt, params);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/fetch-pack.c:74:6: note: Assuming field 'verbose' is not equal to 0
        if (!args->verbose)
            ^~~~~~~~~~~~~~
/datasets/git/fetch-pack.c:74:2: note: Taking false branch
        if (!args->verbose)
        ^
/datasets/git/fetch-pack.c:78:2: note: Function 'vfprintf' is called with an uninitialized va_list argument
        vfprintf(stderr, fmt, params);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/fetch-pack.c:80:2: warning: the value returned by this function should be used [cert-err33-c]
        fputc('\n', stderr);
        ^~~~~~~~~~~~~~~~~~~
/datasets/git/fetch-pack.c:80:2: note: cast the expression to void to silence this warning
/datasets/git/fetch-pack.c:83:8: warning: accessing fields in struct 'alternate_object_cache' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct alternate_object_cache {
       ^
/datasets/git/fetch-pack.c:83:8: note: use "__attribute__((aligned(32)))" to align struct 'alternate_object_cache' to 32 bytes
/datasets/git/fetch-pack.c:94:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!obj || (obj->flags & ALTERNATE))
                                  ^
/datasets/git/fetch-pack.c:51:20: note: expanded from macro 'ALTERNATE'
#define ALTERNATE       (1U << 1)
                         ^     ~
/datasets/git/fetch-pack.c:94:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!obj || (obj->flags & ALTERNATE))
                                             ^
                                              {
/datasets/git/fetch-pack.c:97:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        obj->flags |= ALTERNATE;
                      ^
/datasets/git/fetch-pack.c:51:20: note: expanded from macro 'ALTERNATE'
#define ALTERNATE       (1U << 1)
                         ^     ~
/datasets/git/fetch-pack.c:98:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(cache->items, cache->nr + 1, cache->alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/fetch-pack.c:98:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_GROW(cache->items, cache->nr + 1, cache->alloc);
        ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/fetch-pack.c:103:18: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
                                      void (*cb)(struct fetch_negotiator *,
                                             ^
/datasets/git/fetch-pack.c:108:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i;
               ^
                 = 0
/datasets/git/fetch-pack.c:108:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/fetch-pack.c:115:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < cache.nr; i++)
        ^
/datasets/git/fetch-pack.c:115:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < cache.nr; i++)
                                      ^
                                       {
/datasets/git/fetch-pack.c:121:26: warning: pointer parameter 'type' can be pointer to const [readability-non-const-parameter]
                                                        enum object_type *type,
                                                                          ^
                                                        const 
/datasets/git/fetch-pack.c:125:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/fetch-pack.c:128:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (commit)
                   ^
                    {
/datasets/git/fetch-pack.c:131:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/fetch-pack.c:133:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                             oi_flags))
                                                       ^
                                                        {
/datasets/git/fetch-pack.c:139:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!tag->tagged)
                                         ^
                                          {
/datasets/git/fetch-pack.c:141:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (mark_tags_complete)
                                               ^
                                                {
/datasets/git/fetch-pack.c:142:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                tag->object.flags |= COMPLETE;
                                                     ^
/datasets/git/fetch-pack.c:50:19: note: expanded from macro 'COMPLETE'
#define COMPLETE        (1U << 0)
                         ^     ~
/datasets/git/fetch-pack.c:151:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!commit || repo_parse_commit(the_repository, commit))
                                                                         ^
                                                                          {
/datasets/git/fetch-pack.c:163:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/fetch-pack.c:164:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned flags = OBJECT_INFO_SKIP_FETCH_OBJECT | OBJECT_INFO_QUICK;
                         ^
/datasets/git/./object-store.h:443:39: note: expanded from macro 'OBJECT_INFO_SKIP_FETCH_OBJECT'
#define OBJECT_INFO_SKIP_FETCH_OBJECT 32
                                      ^~
/datasets/git/fetch-pack.c:172:17: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        struct commit *c = deref_without_lazy_fetch(oid, 0);
                       ^
/datasets/git/fetch-pack.c:174:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (c)
              ^
               {
/datasets/git/fetch-pack.c:203:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (packet_reader_read(reader) == PACKET_READ_NORMAL) {
                ^
/datasets/git/fetch-pack.c:204:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (starts_with(reader->line, "shallow "))
                                                                  ^
                                                                   {
/datasets/git/fetch-pack.c:206:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (starts_with(reader->line, "unshallow "))
                                                                    ^
                                                                     {
/datasets/git/fetch-pack.c:210:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (reader->status != PACKET_READ_FLUSH)
                                                        ^
                                                         {
/datasets/git/fetch-pack.c:218:6: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int len;
            ^
                = 0
/datasets/git/fetch-pack.c:219:14: warning: variable 'arg' is not initialized [cppcoreguidelines-init-variables]
        const char *arg;
                    ^
                        = NULL
/datasets/git/fetch-pack.c:221:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (packet_reader_read(reader) != PACKET_READ_NORMAL)
                                                             ^
                                                              {
/datasets/git/fetch-pack.c:225:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(reader->line, "NAK"))
                                         ^
                                          {
/datasets/git/fetch-pack.c:228:15: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                const char *p;
                            ^
                              = NULL
/datasets/git/fetch-pack.c:228:15: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/fetch-pack.c:230:11: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        len -= p - reader->line;
                               ^
/datasets/git/fetch-pack.c:231:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (len < 1)
                                    ^
                                     {
/datasets/git/fetch-pack.c:233:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (strstr(p, "continue"))
                                                  ^
                                                   {
/datasets/git/fetch-pack.c:235:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (strstr(p, "common"))
                                                ^
                                                 {
/datasets/git/fetch-pack.c:237:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (strstr(p, "ready"))
                                               ^
                                                {
/datasets/git/fetch-pack.c:246:9: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
                         int fd, struct strbuf *buf)
                             ^
/datasets/git/fetch-pack.c:249:35: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'ssize_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                send_sideband(fd, -1, buf->buf, buf->len, LARGE_PACKET_MAX);
                                                ^
/datasets/git/fetch-pack.c:252:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (write_in_full(fd, buf->buf, buf->len) < 0)
                                                              ^
                                                               {
/datasets/git/fetch-pack.c:267:23: warning: 2 adjacent parameters of 'next_flush' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int next_flush(int stateless_rpc, int count)
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/fetch-pack.c:267:27: note: the first parameter in the range is 'stateless_rpc'
static int next_flush(int stateless_rpc, int count)
                          ^~~~~~~~~~~~~
/datasets/git/fetch-pack.c:267:46: note: the last parameter in the range is 'count'
static int next_flush(int stateless_rpc, int count)
                                             ^~~~~
/datasets/git/fetch-pack.c:270:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (count < LARGE_FLUSH)
                                        ^
                                         {
/datasets/git/fetch-pack.c:271:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        count <<= 1;
                        ^~~~~
/datasets/git/fetch-pack.c:272:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/fetch-pack.c:273:20: warning: 11 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        count = count * 11 / 10;
                                        ^
/datasets/git/fetch-pack.c:273:25: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        count = count * 11 / 10;
                                             ^
/datasets/git/fetch-pack.c:275:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (count < PIPESAFE_FLUSH)
                                           ^
                                            {
/datasets/git/fetch-pack.c:276:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        count <<= 1;
                        ^~~~~
/datasets/git/fetch-pack.c:277:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/fetch-pack.c:286:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/fetch-pack.c:286:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/fetch-pack.c:293:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < negotiation_tips->nr; i++)
        ^
/datasets/git/fetch-pack.c:293:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < negotiation_tips->nr; i++)
                                                  ^
                                                   {
/datasets/git/fetch-pack.c:295:2: warning: redundant return statement at the end of a function with a void return type [readability-redundant-control-flow]
        return;
~~~~~~~~^~~~~~~
/datasets/git/fetch-pack.c:321:12: warning: function 'find_common' has cognitive complexity of 152 (threshold 25) [readability-function-cognitive-complexity]
static int find_common(struct fetch_negotiator *negotiator,
           ^
/datasets/git/fetch-pack.c:337:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (args->stateless_rpc && multi_ack == 1)
        ^
/datasets/git/fetch-pack.c:337:26: note: +1
        if (args->stateless_rpc && multi_ack == 1)
                                ^
/datasets/git/fetch-pack.c:348:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for ( ; refs ; refs = refs->next) {
        ^
/datasets/git/fetch-pack.c:353:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!args->refetch) {
                ^
/datasets/git/fetch-pack.c:364:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (((o = lookup_object(the_repository, remote)) != NULL) &&
                        ^
/datasets/git/fetch-pack.c:364:62: note: +1
                        if (((o = lookup_object(the_repository, remote)) != NULL) &&
                                                                                  ^
/datasets/git/fetch-pack.c:371:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!fetching) {
                ^
/datasets/git/fetch-pack.c:373:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (multi_ack == 2)     strbuf_addstr(&c, " multi_ack_detailed");
                        ^
/datasets/git/fetch-pack.c:374:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (multi_ack == 1)     strbuf_addstr(&c, " multi_ack");
                        ^
/datasets/git/fetch-pack.c:375:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (no_done)            strbuf_addstr(&c, " no-done");
                        ^
/datasets/git/fetch-pack.c:376:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (use_sideband == 2)  strbuf_addstr(&c, " side-band-64k");
                        ^
/datasets/git/fetch-pack.c:377:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (use_sideband == 1)  strbuf_addstr(&c, " side-band");
                        ^
/datasets/git/fetch-pack.c:378:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (args->deepen_relative) strbuf_addstr(&c, " deepen-relative");
                        ^
/datasets/git/fetch-pack.c:379:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (args->use_thin_pack) strbuf_addstr(&c, " thin-pack");
                        ^
/datasets/git/fetch-pack.c:380:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (args->no_progress)   strbuf_addstr(&c, " no-progress");
                        ^
/datasets/git/fetch-pack.c:381:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (args->include_tag)   strbuf_addstr(&c, " include-tag");
                        ^
/datasets/git/fetch-pack.c:382:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (prefer_ofs_delta)   strbuf_addstr(&c, " ofs-delta");
                        ^
/datasets/git/fetch-pack.c:383:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (deepen_since_ok)    strbuf_addstr(&c, " deepen-since");
                        ^
/datasets/git/fetch-pack.c:384:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (deepen_not_ok)      strbuf_addstr(&c, " deepen-not");
                        ^
/datasets/git/fetch-pack.c:385:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (agent_supported)    strbuf_addf(&c, " agent=%s",
                        ^
/datasets/git/fetch-pack.c:387:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (advertise_sid)
                        ^
/datasets/git/fetch-pack.c:389:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (args->filter_options.choice)
                        ^
/datasets/git/fetch-pack.c:393:5: note: +1, nesting level increased to 2
                } else
                  ^
/datasets/git/fetch-pack.c:398:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!fetching) {
        ^
/datasets/git/fetch-pack.c:404:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (is_repository_shallow(the_repository))
        ^
/datasets/git/fetch-pack.c:406:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (args->depth > 0)
        ^
/datasets/git/fetch-pack.c:408:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (args->deepen_since) {
        ^
/datasets/git/fetch-pack.c:412:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (args->deepen_not) {
        ^
/datasets/git/fetch-pack.c:414:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < args->deepen_not->nr; i++) {
                ^
/datasets/git/fetch-pack.c:423:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (args->deepen) {
        ^
/datasets/git/fetch-pack.c:428:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (packet_reader_read(&reader) == PACKET_READ_NORMAL) {
                ^
/datasets/git/fetch-pack.c:429:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (skip_prefix(reader.line, "shallow ", &arg)) {
                        ^
/datasets/git/fetch-pack.c:430:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (get_oid_hex(arg, &oid))
                                ^
/datasets/git/fetch-pack.c:435:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (skip_prefix(reader.line, "unshallow ", &arg)) {
                        ^
/datasets/git/fetch-pack.c:436:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (get_oid_hex(arg, &oid))
                                ^
/datasets/git/fetch-pack.c:438:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!lookup_object(the_repository, &oid))
                                ^
/datasets/git/fetch-pack.c:441:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!parse_object(the_repository, &oid))
                                ^
/datasets/git/fetch-pack.c:443:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (unregister_shallow(&oid))
                                ^
/datasets/git/fetch-pack.c:449:9: note: +1, nesting level increased to 1
        } else if (!args->stateless_rpc)
               ^
/datasets/git/fetch-pack.c:452:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!args->stateless_rpc) {
        ^
/datasets/git/fetch-pack.c:463:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while ((oid = negotiator->next(negotiator))) {
        ^
/datasets/git/fetch-pack.c:468:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (flush_at <= ++count) {
                ^
/datasets/git/fetch-pack.c:490:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!args->stateless_rpc && count == INITIAL_FLUSH)
                        ^
/datasets/git/fetch-pack.c:490:29: note: +1
                        if (!args->stateless_rpc && count == INITIAL_FLUSH)
                                                 ^
/datasets/git/fetch-pack.c:494:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        do {
                        ^
/datasets/git/fetch-pack.c:496:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (ack)
                                ^
/datasets/git/fetch-pack.c:499:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                switch (ack) {
                                ^
/datasets/git/fetch-pack.c:507:6: note: +1
                                        goto done;
                                        ^
/datasets/git/fetch-pack.c:516:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (!commit)
                                        ^
/datasets/git/fetch-pack.c:519:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (args->stateless_rpc
                                        ^
/datasets/git/fetch-pack.c:521:7: note: +1
                                         && !was_common) {
                                         ^
/datasets/git/fetch-pack.c:536:13: note: +1, nesting level increased to 5
                                        } else if (!args->stateless_rpc
                                               ^
/datasets/git/fetch-pack.c:537:10: note: +1
                                                   || ack != ACK_common)
                                                   ^
/datasets/git/fetch-pack.c:541:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (ack == ACK_ready)
                                        ^
/datasets/git/fetch-pack.c:551:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (got_continue && MAX_IN_VAIN < in_vain) {
                        ^
/datasets/git/fetch-pack.c:551:21: note: +1
                        if (got_continue && MAX_IN_VAIN < in_vain) {
                                         ^
/datasets/git/fetch-pack.c:555:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (got_ready)
                        ^
/datasets/git/fetch-pack.c:563:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!got_ready || !no_done) {
        ^
/datasets/git/fetch-pack.c:563:17: note: +1
        if (!got_ready || !no_done) {
                       ^
/datasets/git/fetch-pack.c:568:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (retval != 0) {
        ^
/datasets/git/fetch-pack.c:574:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!got_ready || !no_done)
        ^
/datasets/git/fetch-pack.c:574:17: note: +1
        if (!got_ready || !no_done)
                       ^
/datasets/git/fetch-pack.c:576:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (flushes || multi_ack) {
        ^
/datasets/git/fetch-pack.c:576:17: note: +1
        while (flushes || multi_ack) {
                       ^
/datasets/git/fetch-pack.c:578:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ack) {
                ^
/datasets/git/fetch-pack.c:581:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ack == ACK)
                        ^
/datasets/git/fetch-pack.c:589:15: note: +1, including nesting penalty of 0, nesting level increased to 1
        return count ? retval : 0;
                     ^
/datasets/git/fetch-pack.c:323:14: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
                       int fd[2], struct object_id *result_oid,
                           ^
/datasets/git/fetch-pack.c:326:6: warning: variable 'fetching' is not initialized [cppcoreguidelines-init-variables]
        int fetching;
            ^
                     = 0
/datasets/git/fetch-pack.c:327:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int count = 0, flushes = 0, flush_at = INITIAL_FLUSH, retval;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/fetch-pack.c:327:56: warning: variable 'retval' is not initialized [cppcoreguidelines-init-variables]
        int count = 0, flushes = 0, flush_at = INITIAL_FLUSH, retval;
                                                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/fetch-pack.c:328:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int negotiation_round = 0, haves = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/fetch-pack.c:329:26: warning: variable 'oid' is not initialized [cppcoreguidelines-init-variables]
        const struct object_id *oid;
                                ^
                                    = NULL
/datasets/git/fetch-pack.c:337:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (args->stateless_rpc && multi_ack == 1)
                                                  ^
                                                   {
/datasets/git/fetch-pack.c:341:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                           PACKET_READ_CHOMP_NEWLINE |
                           ^
/datasets/git/./pkt-line.h:85:43: note: expanded from macro 'PACKET_READ_CHOMP_NEWLINE'
#define PACKET_READ_CHOMP_NEWLINE        (1u<<1)
                                          ^   ~
/datasets/git/fetch-pack.c:342:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                           PACKET_READ_DIE_ON_ERR_PACKET);
                           ^
/datasets/git/./pkt-line.h:86:43: note: expanded from macro 'PACKET_READ_DIE_ON_ERR_PACKET'
#define PACKET_READ_DIE_ON_ERR_PACKET    (1u<<2)
                                          ^   ~
/datasets/git/fetch-pack.c:348:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for ( ; refs ; refs = refs->next) {
        ^
/datasets/git/fetch-pack.c:348:10: warning: backward branch (for loop) is ID-dependent due to variable reference to 'refs' and may cause performance degradation [altera-id-dependent-backward-branch]
        for ( ; refs ; refs = refs->next) {
                ^
/datasets/git/fetch-pack.c:350:15: warning: variable 'remote_hex' is not initialized [cppcoreguidelines-init-variables]
                const char *remote_hex;
                            ^
                                       = NULL
/datasets/git/fetch-pack.c:351:18: warning: variable 'o' is not initialized [cppcoreguidelines-init-variables]
                struct object *o;
                               ^
                                 = NULL
/datasets/git/fetch-pack.c:351:18: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/fetch-pack.c:364:10: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                        if (((o = lookup_object(the_repository, remote)) != NULL) &&
                              ^
/datasets/git/fetch-pack.c:364:10: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/fetch-pack.c:364:10: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/fetch-pack.c:365:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        (o->flags & COMPLETE)) {
                                                    ^
/datasets/git/fetch-pack.c:50:19: note: expanded from macro 'COMPLETE'
#define COMPLETE        (1U << 0)
                         ^     ~
/datasets/git/fetch-pack.c:372:18: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                        struct strbuf c = STRBUF_INIT;
                                      ^
/datasets/git/fetch-pack.c:373:23: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                        if (multi_ack == 2)     strbuf_addstr(&c, " multi_ack_detailed");
                                           ^
                                            {
/datasets/git/fetch-pack.c:374:23: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                        if (multi_ack == 1)     strbuf_addstr(&c, " multi_ack");
                                           ^
                                            {
/datasets/git/fetch-pack.c:375:16: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                        if (no_done)            strbuf_addstr(&c, " no-done");
                                    ^
                                     {
/datasets/git/fetch-pack.c:376:26: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                        if (use_sideband == 2)  strbuf_addstr(&c, " side-band-64k");
                                              ^
                                               {
/datasets/git/fetch-pack.c:377:26: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                        if (use_sideband == 1)  strbuf_addstr(&c, " side-band");
                                              ^
                                               {
/datasets/git/fetch-pack.c:378:30: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                        if (args->deepen_relative) strbuf_addstr(&c, " deepen-relative");
                                                  ^
                                                   {
/datasets/git/fetch-pack.c:379:28: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                        if (args->use_thin_pack) strbuf_addstr(&c, " thin-pack");
                                                ^
                                                 {
/datasets/git/fetch-pack.c:380:26: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                        if (args->no_progress)   strbuf_addstr(&c, " no-progress");
                                              ^
                                               {
/datasets/git/fetch-pack.c:381:26: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                        if (args->include_tag)   strbuf_addstr(&c, " include-tag");
                                              ^
                                               {
/datasets/git/fetch-pack.c:382:25: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                        if (prefer_ofs_delta)   strbuf_addstr(&c, " ofs-delta");
                                             ^
                                              {
/datasets/git/fetch-pack.c:383:24: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                        if (deepen_since_ok)    strbuf_addstr(&c, " deepen-since");
                                            ^
                                             {
/datasets/git/fetch-pack.c:384:22: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                        if (deepen_not_ok)      strbuf_addstr(&c, " deepen-not");
                                          ^
                                           {
/datasets/git/fetch-pack.c:385:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (agent_supported)    strbuf_addf(&c, " agent=%s",
                                            ^
                                             {
/datasets/git/fetch-pack.c:387:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (advertise_sid)
                                          ^
                                           {
/datasets/git/fetch-pack.c:389:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (args->filter_options.choice)
                                                        ^
                                                         {
/datasets/git/fetch-pack.c:393:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/fetch-pack.c:404:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_repository_shallow(the_repository))
                                                  ^
                                                   {
/datasets/git/fetch-pack.c:406:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (args->depth > 0)
                            ^
                             {
/datasets/git/fetch-pack.c:413:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/fetch-pack.c:413:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/fetch-pack.c:414:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < args->deepen_not->nr; i++) {
                ^
/datasets/git/fetch-pack.c:415:29: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
                        struct string_list_item *s = args->deepen_not->items + i;
                                                 ^
/datasets/git/fetch-pack.c:424:15: warning: variable 'arg' is not initialized [cppcoreguidelines-init-variables]
                const char *arg;
                            ^
                                = NULL
/datasets/git/fetch-pack.c:428:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (packet_reader_read(&reader) == PACKET_READ_NORMAL) {
                ^
/datasets/git/fetch-pack.c:430:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (get_oid_hex(arg, &oid))
                                                           ^
                                                            {
/datasets/git/fetch-pack.c:436:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (get_oid_hex(arg, &oid))
                                                           ^
                                                            {
/datasets/git/fetch-pack.c:438:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!lookup_object(the_repository, &oid))
                                                                         ^
                                                                          {
/datasets/git/fetch-pack.c:441:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!parse_object(the_repository, &oid))
                                                                        ^
                                                                         {
/datasets/git/fetch-pack.c:443:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (unregister_shallow(&oid))
                                                             ^
                                                              {
/datasets/git/fetch-pack.c:449:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else if (!args->stateless_rpc)
                                        ^
                                         {
/datasets/git/fetch-pack.c:463:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'oid' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((oid = negotiator->next(negotiator))) {
               ^
/datasets/git/fetch-pack.c:469:8: warning: variable 'ack' is not initialized [cppcoreguidelines-init-variables]
                        int ack;
                            ^
                                = 0
/datasets/git/fetch-pack.c:490:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!args->stateless_rpc && count == INITIAL_FLUSH)
                                                                           ^
                                                                            {
/datasets/git/fetch-pack.c:494:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        do {
                        ^
/datasets/git/fetch-pack.c:496:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (ack)
                                        ^
                                         {
/datasets/git/fetch-pack.c:499:5: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
                                switch (ack) {
                                ^
/datasets/git/fetch-pack.c:514:10: warning: variable 'was_common' is not initialized [cppcoreguidelines-init-variables]
                                        int was_common;
                                            ^
                                                       = 0
/datasets/git/fetch-pack.c:516:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        if (!commit)
                                                    ^
                                                     {
/datasets/git/fetch-pack.c:537:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                   || ack != ACK_common)
                                                                        ^
                                                                         {
/datasets/git/fetch-pack.c:541:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        if (ack == ACK_ready)
                                                             ^
                                                              {
/datasets/git/fetch-pack.c:546:13: warning: backward branch (do loop) is ID-dependent due to variable reference to 'ack' and may cause performance degradation [altera-id-dependent-backward-branch]
                        } while (ack);
                                 ^
/datasets/git/fetch-pack.c:555:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (got_ready)
                                      ^
                                       {
/datasets/git/fetch-pack.c:574:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!got_ready || !no_done)
                                   ^
                                    {
/datasets/git/fetch-pack.c:576:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (flushes || multi_ack) {
        ^
/datasets/git/fetch-pack.c:581:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ack == ACK)
                                       ^
                                        {
/datasets/git/fetch-pack.c:592:28: warning: variable 'complete' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct commit_list *complete;
                           ^
/datasets/git/fetch-pack.c:592:28: warning: variable 'complete' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/fetch-pack.c:598:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (commit && !(commit->object.flags & COMPLETE)) {
                                               ^
/datasets/git/fetch-pack.c:50:19: note: expanded from macro 'COMPLETE'
#define COMPLETE        (1U << 0)
                         ^     ~
/datasets/git/fetch-pack.c:599:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                commit->object.flags |= COMPLETE;
                                        ^
/datasets/git/fetch-pack.c:50:19: note: expanded from macro 'COMPLETE'
#define COMPLETE        (1U << 0)
                         ^     ~
/datasets/git/fetch-pack.c:616:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (complete && cutoff <= complete->item->date) {
        ^
/datasets/git/fetch-pack.c:619:37: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                pop_most_recent_commit(&complete, COMPLETE);
                                                  ^
/datasets/git/fetch-pack.c:50:19: note: expanded from macro 'COMPLETE'
#define COMPLETE        (1U << 0)
                         ^     ~
/datasets/git/fetch-pack.c:625:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; refs; refs = refs->next)
        ^
/datasets/git/fetch-pack.c:625:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'refs' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; refs; refs = refs->next)
               ^
/datasets/git/fetch-pack.c:625:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (; refs; refs = refs->next)
                                       ^
                                        {
/datasets/git/fetch-pack.c:632:14: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        const char *p;
                    ^
                      = NULL
/datasets/git/fetch-pack.c:632:14: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/fetch-pack.c:639:13: warning: function 'filter_refs' has cognitive complexity of 34 (threshold 25) [readability-function-cognitive-complexity]
static void filter_refs(struct fetch_pack_args *args,
            ^
/datasets/git/fetch-pack.c:653:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (ref = *refs; ref; ref = next) {
        ^
/datasets/git/fetch-pack.c:657:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (starts_with(ref->name, "refs/") &&
                ^
/datasets/git/fetch-pack.c:657:39: note: +1
                if (starts_with(ref->name, "refs/") &&
                                                    ^
/datasets/git/fetch-pack.c:665:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/fetch-pack.c:666:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (i < nr_sought) {
                        ^
/datasets/git/fetch-pack.c:668:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (cmp < 0)
                                ^
/datasets/git/fetch-pack.c:670:10: note: +1, nesting level increased to 4
                                else if (cmp == 0) {
                                     ^
/datasets/git/fetch-pack.c:677:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!keep && args->fetch_all &&
                        ^
/datasets/git/fetch-pack.c:677:33: note: +1
                        if (!keep && args->fetch_all &&
                                                     ^
/datasets/git/fetch-pack.c:678:23: note: +1
                            (!args->deepen || !starts_with(ref->name, "refs/tags/")))
                                           ^
/datasets/git/fetch-pack.c:682:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (keep) {
                ^
/datasets/git/fetch-pack.c:686:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/fetch-pack.c:692:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (strict) {
        ^
/datasets/git/fetch-pack.c:693:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < nr_sought; i++) {
                ^
/datasets/git/fetch-pack.c:695:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!is_unmatched_ref(ref))
                        ^
/datasets/git/fetch-pack.c:705:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < nr_sought; i++) {
        ^
/datasets/git/fetch-pack.c:707:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!is_unmatched_ref(ref))
                ^
/datasets/git/fetch-pack.c:710:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strict || oidset_contains(&tip_oids, &ref->old_oid)) {
                ^
/datasets/git/fetch-pack.c:710:15: note: +1
                if (!strict || oidset_contains(&tip_oids, &ref->old_oid)) {
                            ^
/datasets/git/fetch-pack.c:714:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/fetch-pack.c:640:4: warning: 2 adjacent parameters of 'filter_refs' of similar type ('struct ref **') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                        struct ref **refs,
                        ^~~~~~~~~~~~~~~~~~
/datasets/git/fetch-pack.c:640:17: note: the first parameter in the range is 'refs'
                        struct ref **refs,
                                     ^~~~
/datasets/git/fetch-pack.c:641:17: note: the last parameter in the range is 'sought'
                        struct ref **sought, int nr_sought)
                                     ^~~~~~
/datasets/git/fetch-pack.c:646:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct ref *ref, *next;
        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/fetch-pack.c:646:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/fetch-pack.c:646:14: warning: variable 'ref' is not initialized [cppcoreguidelines-init-variables]
        struct ref *ref, *next;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/fetch-pack.c:646:20: warning: variable 'next' is not initialized [cppcoreguidelines-init-variables]
        struct ref *ref, *next;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/fetch-pack.c:648:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/fetch-pack.c:648:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/fetch-pack.c:649:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int strict = !(allow_unadvertised_object_request &
                       ^
/datasets/git/fetch-pack.c:650:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       (ALLOW_TIP_SHA1 | ALLOW_REACHABLE_SHA1));
                        ^
/datasets/git/fetch-pack.c:63:24: note: expanded from macro 'ALLOW_TIP_SHA1'
#define ALLOW_TIP_SHA1  01
                        ^~
/datasets/git/fetch-pack.c:653:20: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (ref = *refs; ref; ref = next) {
                          ^
/datasets/git/fetch-pack.c:665:5: warning: do not use 'else' after 'continue' [llvm-else-after-return,readability-else-after-return]
                } else {
                  ^~~~~~
/datasets/git/fetch-pack.c:666:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (i < nr_sought) {
                        ^
/datasets/git/fetch-pack.c:668:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (cmp < 0)
                                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/fetch-pack.c:670:5: warning: do not use 'else' after 'break' [llvm-else-after-return,readability-else-after-return]
                                else if (cmp == 0) {
                                ^~~~
note: this fix will not be applied because it overlaps with another fix
/datasets/git/fetch-pack.c:678:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            (!args->deepen || !starts_with(ref->name, "refs/tags/")))
                                                                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/fetch-pack.c:693:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < nr_sought; i++) {
                ^
/datasets/git/fetch-pack.c:695:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!is_unmatched_ref(ref))
                                                   ^
                                                    {
/datasets/git/fetch-pack.c:705:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr_sought; i++) {
        ^
/datasets/git/fetch-pack.c:707:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!is_unmatched_ref(ref))
                                           ^
                                            {
/datasets/git/fetch-pack.c:725:62: warning: parameter 'unused' is unused [misc-unused-parameters]
static void mark_alternate_complete(struct fetch_negotiator *unused,
                                                             ^
/datasets/git/fetch-pack.c:731:8: warning: accessing fields in struct 'loose_object_iter' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct loose_object_iter {
       ^
/datasets/git/fetch-pack.c:731:8: note: use "__attribute__((aligned(16)))" to align struct 'loose_object_iter' to 16 bytes
/datasets/git/fetch-pack.c:748:14: warning: variable 'ref' is not initialized [cppcoreguidelines-init-variables]
        struct ref *ref;
                    ^
                        = NULL
/datasets/git/fetch-pack.c:752:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (args->refetch)
                          ^
                           {
/datasets/git/fetch-pack.c:758:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (ref = *refs; ref; ref = ref->next) {
        ^
/datasets/git/fetch-pack.c:748:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct ref *ref;
        ^
/datasets/git/fetch-pack.c:758:20: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (ref = *refs; ref; ref = ref->next) {
                          ^
/datasets/git/fetch-pack.c:759:18: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
                struct commit *commit;
                               ^
                                      = NULL
/datasets/git/fetch-pack.c:763:19: warning: variable 'o' is not initialized [cppcoreguidelines-init-variables]
                        struct object *o;
                                       ^
                                         = NULL
/datasets/git/fetch-pack.c:763:19: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/fetch-pack.c:766:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                                OBJECT_INFO_QUICK |
                                                ^
/datasets/git/./object-store.h:436:27: note: expanded from macro 'OBJECT_INFO_QUICK'
#define OBJECT_INFO_QUICK 8
                          ^
/datasets/git/./object-store.h:336:101: note: expanded from macro 'has_object_file_with_flags'
#define has_object_file_with_flags(oid, flags) repo_has_object_file_with_flags(the_repository, oid, flags)
                                                                                                    ^~~~~
/datasets/git/fetch-pack.c:767:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                OBJECT_INFO_SKIP_FETCH_OBJECT))
                                                                               ^
                                                                                {
/datasets/git/fetch-pack.c:770:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!o || o->type != OBJ_COMMIT)
                                                        ^
                                                         {
/datasets/git/fetch-pack.c:781:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!cutoff || cutoff < commit->date)
                                                     ^
                                                      {
/datasets/git/fetch-pack.c:795:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cutoff)
                           ^
                            {
/datasets/git/fetch-pack.c:805:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (ref = *refs; ref; ref = ref->next) {
        ^
/datasets/git/fetch-pack.c:805:20: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (ref = *refs; ref; ref = ref->next) {
                          ^
/datasets/git/fetch-pack.c:806:18: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                struct commit *c = deref_without_lazy_fetch(&ref->old_oid, 0);
                               ^
/datasets/git/fetch-pack.c:808:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!c || !(c->object.flags & COMPLETE))
                                              ^
/datasets/git/fetch-pack.c:50:19: note: expanded from macro 'COMPLETE'
#define COMPLETE        (1U << 0)
                         ^     ~
/datasets/git/fetch-pack.c:825:2: note: inferred assignment of ID-dependent value from ID-dependent member next [altera-id-dependent-backward-branch]
        struct ref *ref;
        ^
/datasets/git/fetch-pack.c:808:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!c || !(c->object.flags & COMPLETE))
                                                        ^
                                                         {
/datasets/git/fetch-pack.c:825:14: warning: variable 'ref' is not initialized [cppcoreguidelines-init-variables]
        struct ref *ref;
                    ^
                        = NULL
/datasets/git/fetch-pack.c:826:6: warning: variable 'retval' is not initialized [cppcoreguidelines-init-variables]
        int retval;
            ^
                   = 0
/datasets/git/fetch-pack.c:828:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (retval = 1, ref = *refs; ref ; ref = ref->next) {
        ^
/datasets/git/fetch-pack.c:828:32: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (retval = 1, ref = *refs; ref ; ref = ref->next) {
                                      ^
/datasets/git/fetch-pack.c:830:18: warning: variable 'o' is not initialized [cppcoreguidelines-init-variables]
                struct object *o;
                               ^
                                 = NULL
/datasets/git/fetch-pack.c:830:18: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/fetch-pack.c:833:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!o || !(o->flags & COMPLETE)) {
                                       ^
/datasets/git/fetch-pack.c:50:19: note: expanded from macro 'COMPLETE'
#define COMPLETE        (1U << 0)
                         ^     ~
/datasets/git/fetch-pack.c:846:27: warning: 2 adjacent parameters of 'sideband_demux' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int sideband_demux(int in UNUSED, int out, void *data)
                          ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/fetch-pack.c:846:31: note: the first parameter in the range is 'in'
static int sideband_demux(int in UNUSED, int out, void *data)
                              ^~
/datasets/git/fetch-pack.c:846:46: note: the last parameter in the range is 'out'
static int sideband_demux(int in UNUSED, int out, void *data)
                                             ^~~
/datasets/git/fetch-pack.c:846:31: warning: parameter name 'in' is too short, expected at least 3 characters [readability-identifier-length]
static int sideband_demux(int in UNUSED, int out, void *data)
                              ^
/datasets/git/fetch-pack.c:848:7: warning: variable name 'xd' is too short, expected at least 3 characters [readability-identifier-length]
        int *xd = data;
             ^
/datasets/git/fetch-pack.c:849:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/fetch-pack.c:860:6: warning: variable 'suffix_stripped' is not initialized [cppcoreguidelines-init-variables]
        int suffix_stripped;
            ^
                            = 0
/datasets/git/fetch-pack.c:864:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!suffix_stripped)
                             ^
                              {
/datasets/git/fetch-pack.c:874:39: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
static void parse_gitmodules_oids(int fd, struct oidset *gitmodules_oids)
                                      ^
/datasets/git/fetch-pack.c:878:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        do {
        ^
/datasets/git/fetch-pack.c:880:18: warning: narrowing conversion from 'ssize_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int read_len = read_in_full(fd, hex_hash, len);
                               ^
/datasets/git/fetch-pack.c:882:15: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
                const char *end;
                            ^
                                = NULL
/datasets/git/fetch-pack.c:884:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!read_len)
                              ^
                               {
/datasets/git/fetch-pack.c:886:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (read_len != len)
                                    ^
                                     {
/datasets/git/fetch-pack.c:888:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (parse_oid_hex(hex_hash, &oid, &end) || *end != '\n')
                                                                        ^
                                                                         {
/datasets/git/fetch-pack.c:898:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (xgethostname(hostname, sizeof(hostname)))
                                                     ^
                                                      {
/datasets/git/fetch-pack.c:909:12: warning: function 'get_pack' has cognitive complexity of 68 (threshold 25) [readability-function-cognitive-complexity]
static int get_pack(struct fetch_pack_args *args,
           ^
/datasets/git/fetch-pack.c:925:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (use_sideband) {
        ^
/datasets/git/fetch-pack.c:934:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (start_async(&demux))
                ^
/datasets/git/fetch-pack.c:937:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/fetch-pack.c:940:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!args->keep_pack && unpack_limit && !index_pack_args) {
        ^
/datasets/git/fetch-pack.c:940:39: note: +1
        if (!args->keep_pack && unpack_limit && !index_pack_args) {
                                             ^
/datasets/git/fetch-pack.c:942:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (read_pack_header(demux.out, &header))
                ^
/datasets/git/fetch-pack.c:945:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ntohl(header.hdr_entries) < unpack_limit)
                ^
/datasets/git/fetch-pack.c:947:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/fetch-pack.c:951:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (alternate_shallow_file) {
        ^
/datasets/git/fetch-pack.c:956:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (fetch_fsck_objects >= 0
        ^
/datasets/git/fetch-pack.c:957:6: note: +1, including nesting penalty of 0, nesting level increased to 1
            ? fetch_fsck_objects
            ^
/datasets/git/fetch-pack.c:959:6: note: +2, including nesting penalty of 1, nesting level increased to 2
            ? transfer_fsck_objects
            ^
/datasets/git/fetch-pack.c:963:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (do_keep || args->from_promisor || index_pack_args || fsck_objects) {
        ^
/datasets/git/fetch-pack.c:963:56: note: +1
        if (do_keep || args->from_promisor || index_pack_args || fsck_objects) {
                                                              ^
/datasets/git/fetch-pack.c:964:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (pack_lockfiles || fsck_objects)
                ^
/datasets/git/fetch-pack.c:964:22: note: +1
                if (pack_lockfiles || fsck_objects)
                                   ^
/datasets/git/fetch-pack.c:969:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!args->quiet && !args->no_progress)
                ^
/datasets/git/fetch-pack.c:969:20: note: +1
                if (!args->quiet && !args->no_progress)
                                 ^
/datasets/git/fetch-pack.c:971:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (args->use_thin_pack)
                ^
/datasets/git/fetch-pack.c:973:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((do_keep || index_pack_args) && (args->lock_pack || unpack_limit))
                ^
/datasets/git/fetch-pack.c:973:36: note: +1
                if ((do_keep || index_pack_args) && (args->lock_pack || unpack_limit))
                                                 ^
/datasets/git/fetch-pack.c:973:16: note: +1
                if ((do_keep || index_pack_args) && (args->lock_pack || unpack_limit))
                             ^
/datasets/git/fetch-pack.c:973:56: note: +1
                if ((do_keep || index_pack_args) && (args->lock_pack || unpack_limit))
                                                                     ^
/datasets/git/fetch-pack.c:975:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!index_pack_args && args->check_self_contained_and_connected)
                ^
/datasets/git/fetch-pack.c:975:24: note: +1
                if (!index_pack_args && args->check_self_contained_and_connected)
                                     ^
/datasets/git/fetch-pack.c:977:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/fetch-pack.c:985:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (args->from_promisor)
                ^
/datasets/git/fetch-pack.c:996:2: note: +1, nesting level increased to 1
        else {
        ^
/datasets/git/fetch-pack.c:999:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (args->quiet || args->no_progress)
                ^
/datasets/git/fetch-pack.c:999:19: note: +1
                if (args->quiet || args->no_progress)
                                ^
/datasets/git/fetch-pack.c:1004:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (pass_header)
        ^
/datasets/git/fetch-pack.c:1008:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (fsck_objects) {
        ^
/datasets/git/fetch-pack.c:1009:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (args->from_promisor || index_pack_args)
                ^
/datasets/git/fetch-pack.c:1009:27: note: +1
                if (args->from_promisor || index_pack_args)
                                        ^
/datasets/git/fetch-pack.c:1016:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/fetch-pack.c:1021:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (index_pack_args) {
        ^
/datasets/git/fetch-pack.c:1024:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < cmd.args.nr; i++)
                ^
/datasets/git/fetch-pack.c:1032:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (start_command(&cmd))
        ^
/datasets/git/fetch-pack.c:1034:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (do_keep && (pack_lockfiles || fsck_objects)) {
        ^
/datasets/git/fetch-pack.c:1034:14: note: +1
        if (do_keep && (pack_lockfiles || fsck_objects)) {
                    ^
/datasets/git/fetch-pack.c:1034:33: note: +1
        if (do_keep && (pack_lockfiles || fsck_objects)) {
                                       ^
/datasets/git/fetch-pack.c:1038:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!is_well_formed)
                ^
/datasets/git/fetch-pack.c:1040:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (pack_lockfile)
                ^
/datasets/git/fetch-pack.c:1046:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!use_sideband)
        ^
/datasets/git/fetch-pack.c:1051:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!ret || (args->check_self_contained_and_connected && ret == 1))
        ^
/datasets/git/fetch-pack.c:1051:11: note: +1
        if (!ret || (args->check_self_contained_and_connected && ret == 1))
                 ^
/datasets/git/fetch-pack.c:1051:56: note: +1
        if (!ret || (args->check_self_contained_and_connected && ret == 1))
                                                              ^
/datasets/git/fetch-pack.c:1053:45: note: +1
                        args->check_self_contained_and_connected &&
                                                                 ^
/datasets/git/fetch-pack.c:1055:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/fetch-pack.c:1057:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (use_sideband && finish_async(&demux))
        ^
/datasets/git/fetch-pack.c:1057:19: note: +1
        if (use_sideband && finish_async(&demux))
                         ^
/datasets/git/fetch-pack.c:1066:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (do_keep && pack_lockfiles && pack_lockfiles->nr && args->from_promisor)
        ^
/datasets/git/fetch-pack.c:1066:54: note: +1
        if (do_keep && pack_lockfiles && pack_lockfiles->nr && args->from_promisor)
                                                            ^
/datasets/git/fetch-pack.c:910:11: warning: parameter name 'xd' is too short, expected at least 3 characters [readability-identifier-length]
                    int xd[2], struct string_list *pack_lockfiles,
                        ^
/datasets/git/fetch-pack.c:917:14: warning: variable 'cmd_name' is not initialized [cppcoreguidelines-init-variables]
        const char *cmd_name;
                    ^
                             = NULL
/datasets/git/fetch-pack.c:922:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/fetch-pack.c:924:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&demux, 0, sizeof(demux));
        ^~~~~~
/datasets/git/fetch-pack.c:924:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&demux, 0, sizeof(demux));
        ^~~~~~
/datasets/git/fetch-pack.c:934:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (start_async(&demux))
                                        ^
                                         {
/datasets/git/fetch-pack.c:937:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/fetch-pack.c:942:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (read_pack_header(demux.out, &header))
                                                         ^
                                                          {
/datasets/git/fetch-pack.c:945:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ntohl(header.hdr_entries) < unpack_limit)
                                                             ^
                                                              {
/datasets/git/fetch-pack.c:947:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/fetch-pack.c:960:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            : 0)
                ^
                 {
/datasets/git/fetch-pack.c:964:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pack_lockfiles || fsck_objects)
                                                   ^
                                                    {
/datasets/git/fetch-pack.c:969:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!args->quiet && !args->no_progress)
                                                       ^
                                                        {
/datasets/git/fetch-pack.c:971:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (args->use_thin_pack)
                                        ^
                                         {
/datasets/git/fetch-pack.c:973:73: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((do_keep || index_pack_args) && (args->lock_pack || unpack_limit))
                                                                                      ^
                                                                                       {
/datasets/git/fetch-pack.c:975:68: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!index_pack_args && args->check_self_contained_and_connected)
                                                                                 ^
                                                                                  {
/datasets/git/fetch-pack.c:977:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/fetch-pack.c:985:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (args->from_promisor)
                                        ^
                                         {
/datasets/git/fetch-pack.c:999:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (args->quiet || args->no_progress)
                                                     ^
                                                      {
/datasets/git/fetch-pack.c:1004:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pass_header)
                        ^
                         {
/datasets/git/fetch-pack.c:1009:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (args->from_promisor || index_pack_args)
                                                           ^
                                                            {
/datasets/git/fetch-pack.c:1016:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/fetch-pack.c:1022:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/fetch-pack.c:1022:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/fetch-pack.c:1024:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < cmd.args.nr; i++)
                ^
/datasets/git/fetch-pack.c:1024:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cmd' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < cmd.args.nr; i++)
                            ^
/datasets/git/fetch-pack.c:1024:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < cmd.args.nr; i++)
                                                 ^
                                                  {
/datasets/git/fetch-pack.c:1032:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (start_command(&cmd))
                                ^
                                 {
/datasets/git/fetch-pack.c:1035:7: warning: variable 'is_well_formed' is not initialized [cppcoreguidelines-init-variables]
                int is_well_formed;
                    ^
                                   = 0
/datasets/git/fetch-pack.c:1038:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!is_well_formed)
                                    ^
                                     {
/datasets/git/fetch-pack.c:1040:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pack_lockfile)
                                  ^
                                   {
/datasets/git/fetch-pack.c:1046:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!use_sideband)
                          ^
                           {
/datasets/git/fetch-pack.c:1051:69: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ret || (args->check_self_contained_and_connected && ret == 1))
                                                                           ^
                                                                            {
/datasets/git/fetch-pack.c:1055:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/fetch-pack.c:1057:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (use_sideband && finish_async(&demux))
                                                 ^
                                                  {
/datasets/git/fetch-pack.c:1066:77: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (do_keep && pack_lockfiles && pack_lockfiles->nr && args->from_promisor)
                                                                                   ^
                                                                                    {
/datasets/git/fetch-pack.c:1072:47: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static int ref_compare_name(const struct ref *a, const struct ref *b)
                                              ^
/datasets/git/fetch-pack.c:1072:68: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static int ref_compare_name(const struct ref *a, const struct ref *b)
                                                                   ^
/datasets/git/fetch-pack.c:1077:1: warning: backward branch (do loop) is ID-dependent due to variable reference to 'list' and may cause performance degradation [altera-id-dependent-backward-branch]
DEFINE_LIST_SORT(static, sort_ref_list, struct ref, next);
^
/datasets/git/./mergesort.h:102:58: note: expanded from macro 'DEFINE_LIST_SORT'
#define DEFINE_LIST_SORT(scope, name, type, next_member) \
                                                         ^
/datasets/git/./mergesort.h:97:9: note: expanded from macro '\
DEFINE_LIST_SORT_DEBUG'
                                                                \
                                                                ^
/datasets/git/./mergesort.h:24:12: note: expanded from macro '\
DEFINE_LIST_MERGE_INTERNAL'
                } while (compare_fn(list, other) < prefer_list);        \
                         ^
/datasets/git/fetch-pack.c:1077:1: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
DEFINE_LIST_SORT(static, sort_ref_list, struct ref, next);
^
/datasets/git/./mergesort.h:102:58: note: expanded from macro 'DEFINE_LIST_SORT'
#define DEFINE_LIST_SORT(scope, name, type, next_member) \
                                                         ^
/datasets/git/./mergesort.h:97:9: note: expanded from macro '\
DEFINE_LIST_SORT_DEBUG'
                                                                \
                                                                ^
/datasets/git/./mergesort.h:14:3: note: expanded from macro '\
DEFINE_LIST_MERGE_INTERNAL'
                SWAP(list, other);                                      \
                ^
/datasets/git/./git-compat-util.h:759:20: note: expanded from macro 'SWAP'
#define SWAP(a, b) do {                                         \
                   ^
/datasets/git/fetch-pack.c:1077:1: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
DEFINE_LIST_SORT(static, sort_ref_list, struct ref, next);
^
/datasets/git/./mergesort.h:102:58: note: expanded from macro 'DEFINE_LIST_SORT'
#define DEFINE_LIST_SORT(scope, name, type, next_member) \
                                                         ^
/datasets/git/./mergesort.h:97:9: note: expanded from macro '\
DEFINE_LIST_SORT_DEBUG'
                                                                \
                                                                ^
/datasets/git/./mergesort.h:14:3: note: expanded from macro '\
DEFINE_LIST_MERGE_INTERNAL'
                SWAP(list, other);                                      \
                ^
/datasets/git/./git-compat-util.h:762:29: note: expanded from macro 'SWAP'
        unsigned char _swap_buffer[sizeof(a)];                  \
                                   ^
/datasets/git/fetch-pack.c:1077:1: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
DEFINE_LIST_SORT(static, sort_ref_list, struct ref, next);
^
/datasets/git/./mergesort.h:102:58: note: expanded from macro 'DEFINE_LIST_SORT'
#define DEFINE_LIST_SORT(scope, name, type, next_member) \
                                                         ^
/datasets/git/./mergesort.h:97:9: note: expanded from macro '\
DEFINE_LIST_SORT_DEBUG'
                                                                \
                                                                ^
/datasets/git/./mergesort.h:14:3: note: expanded from macro '\
DEFINE_LIST_MERGE_INTERNAL'
                SWAP(list, other);                                      \
                ^~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/fetch-pack.c:1077:1: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
DEFINE_LIST_SORT(static, sort_ref_list, struct ref, next);
^
/datasets/git/./mergesort.h:102:58: note: expanded from macro 'DEFINE_LIST_SORT'
#define DEFINE_LIST_SORT(scope, name, type, next_member) \
                                                         ^
/datasets/git/./mergesort.h:97:9: note: expanded from macro '\
DEFINE_LIST_SORT_DEBUG'
                                                                \
                                                                ^
/datasets/git/./mergesort.h:14:3: note: expanded from macro '\
DEFINE_LIST_MERGE_INTERNAL'
                SWAP(list, other);                                      \
                ^~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/fetch-pack.c:1077:1: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
DEFINE_LIST_SORT(static, sort_ref_list, struct ref, next);
^
/datasets/git/./mergesort.h:102:58: note: expanded from macro 'DEFINE_LIST_SORT'
#define DEFINE_LIST_SORT(scope, name, type, next_member) \
                                                         ^
/datasets/git/./mergesort.h:97:9: note: expanded from macro '\
DEFINE_LIST_SORT_DEBUG'
                                                                \
                                                                ^
/datasets/git/./mergesort.h:26:3: note: expanded from macro '\
DEFINE_LIST_MERGE_INTERNAL'
                prefer_list ^= 1;                                       \
                ^~~~~~~~~~~
/datasets/git/fetch-pack.c:1077:1: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
DEFINE_LIST_SORT(static, sort_ref_list, struct ref, next);
^
/datasets/git/./mergesort.h:102:58: note: expanded from macro 'DEFINE_LIST_SORT'
#define DEFINE_LIST_SORT(scope, name, type, next_member) \
                                                         ^
/datasets/git/./mergesort.h:98:43: note: expanded from macro '\
DEFINE_LIST_SORT_DEBUG'
DEFINE_LIST_MERGE_INTERNAL(name, type)                          \
                                                                ^
/datasets/git/./mergesort.h:57:7: note: expanded from macro '\
DEFINE_LIST_SORT_INTERNAL'
                int i;                                                  \
                    ^
/datasets/git/fetch-pack.c:1077:1: warning: variable name 'm' is too short, expected at least 3 characters [readability-identifier-length]
DEFINE_LIST_SORT(static, sort_ref_list, struct ref, next);
^
/datasets/git/./mergesort.h:102:58: note: expanded from macro 'DEFINE_LIST_SORT'
#define DEFINE_LIST_SORT(scope, name, type, next_member) \
                                                         ^
/datasets/git/./mergesort.h:98:43: note: expanded from macro '\
DEFINE_LIST_SORT_DEBUG'
DEFINE_LIST_MERGE_INTERNAL(name, type)                          \
                                                                ^
/datasets/git/./mergesort.h:58:10: note: expanded from macro '\
DEFINE_LIST_SORT_INTERNAL'
                size_t m;                                               \
                       ^
/datasets/git/fetch-pack.c:1077:1: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
DEFINE_LIST_SORT(static, sort_ref_list, struct ref, next);
^
/datasets/git/./mergesort.h:102:58: note: expanded from macro 'DEFINE_LIST_SORT'
#define DEFINE_LIST_SORT(scope, name, type, next_member) \
                                                         ^
/datasets/git/./mergesort.h:98:43: note: expanded from macro '\
DEFINE_LIST_SORT_DEBUG'
DEFINE_LIST_MERGE_INTERNAL(name, type)                          \
                                                                ^
/datasets/git/./mergesort.h:51:9: note: expanded from macro '\
DEFINE_LIST_SORT_INTERNAL'
        size_t n = 0;                                                   \
               ^
/datasets/git/fetch-pack.c:1077:41: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
DEFINE_LIST_SORT(static, sort_ref_list, struct ref, next);
                                        ^
/datasets/git/fetch-pack.c:1079:40: warning: parameter name 'a_' is too short, expected at least 3 characters [readability-identifier-length]
static int cmp_ref_by_name(const void *a_, const void *b_)
                                       ^
/datasets/git/fetch-pack.c:1079:56: warning: parameter name 'b_' is too short, expected at least 3 characters [readability-identifier-length]
static int cmp_ref_by_name(const void *a_, const void *b_)
                                                       ^
/datasets/git/fetch-pack.c:1081:20: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        const struct ref *a = *((const struct ref **)a_);
                          ^
/datasets/git/fetch-pack.c:1082:20: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        const struct ref *b = *((const struct ref **)b_);
                          ^
/datasets/git/fetch-pack.c:1086:20: warning: function 'do_fetch_pack' has cognitive complexity of 55 (threshold 25) [readability-function-cognitive-complexity]
static struct ref *do_fetch_pack(struct fetch_pack_args *args,
                   ^
/datasets/git/fetch-pack.c:1102:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (args->refetch) {
        ^
/datasets/git/fetch-pack.c:1104:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/fetch-pack.c:1111:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((agent_feature = server_feature_value("agent", &agent_len))) {
        ^
/datasets/git/fetch-pack.c:1113:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (agent_len)
                ^
/datasets/git/fetch-pack.c:1118:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!server_supports("session-id"))
        ^
/datasets/git/fetch-pack.c:1121:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (server_supports("shallow"))
        ^
/datasets/git/fetch-pack.c:1123:7: note: +1, nesting level increased to 1
        else if (args->depth > 0 || is_repository_shallow(r))
             ^
/datasets/git/fetch-pack.c:1123:27: note: +1
        else if (args->depth > 0 || is_repository_shallow(r))
                                 ^
/datasets/git/fetch-pack.c:1125:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (args->depth > 0 || args->deepen_since || args->deepen_not)
        ^
/datasets/git/fetch-pack.c:1125:44: note: +1
        if (args->depth > 0 || args->deepen_since || args->deepen_not)
                                                  ^
/datasets/git/fetch-pack.c:1127:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (server_supports("multi_ack_detailed")) {
        ^
/datasets/git/fetch-pack.c:1130:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (server_supports("no-done")) {
                ^
/datasets/git/fetch-pack.c:1132:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (args->stateless_rpc)
                        ^
/datasets/git/fetch-pack.c:1136:7: note: +1, nesting level increased to 1
        else if (server_supports("multi_ack")) {
             ^
/datasets/git/fetch-pack.c:1140:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (server_supports("side-band-64k")) {
        ^
/datasets/git/fetch-pack.c:1144:7: note: +1, nesting level increased to 1
        else if (server_supports("side-band")) {
             ^
/datasets/git/fetch-pack.c:1148:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (server_supports("allow-tip-sha1-in-want")) {
        ^
/datasets/git/fetch-pack.c:1152:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (server_supports("allow-reachable-sha1-in-want")) {
        ^
/datasets/git/fetch-pack.c:1156:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (server_supports("thin-pack"))
        ^
/datasets/git/fetch-pack.c:1158:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/fetch-pack.c:1160:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (server_supports("no-progress"))
        ^
/datasets/git/fetch-pack.c:1162:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/fetch-pack.c:1164:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (server_supports("include-tag"))
        ^
/datasets/git/fetch-pack.c:1166:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/fetch-pack.c:1168:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (server_supports("ofs-delta"))
        ^
/datasets/git/fetch-pack.c:1170:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/fetch-pack.c:1173:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (server_supports("filter")) {
        ^
/datasets/git/fetch-pack.c:1176:9: note: +1, nesting level increased to 1
        } else if (args->filter_options.choice) {
               ^
/datasets/git/fetch-pack.c:1180:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (server_supports("deepen-since")) {
        ^
/datasets/git/fetch-pack.c:1183:9: note: +1, nesting level increased to 1
        } else if (args->deepen_since)
               ^
/datasets/git/fetch-pack.c:1185:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (server_supports("deepen-not")) {
        ^
/datasets/git/fetch-pack.c:1188:9: note: +1, nesting level increased to 1
        } else if (args->deepen_not)
               ^
/datasets/git/fetch-pack.c:1190:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (server_supports("deepen-relative"))
        ^
/datasets/git/fetch-pack.c:1192:7: note: +1, nesting level increased to 1
        else if (args->deepen_relative)
             ^
/datasets/git/fetch-pack.c:1194:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!server_supports_hash(the_hash_algo->name, NULL))
        ^
/datasets/git/fetch-pack.c:1199:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!args->refetch && everything_local(args, &ref)) {
        ^
/datasets/git/fetch-pack.c:1199:21: note: +1
        if (!args->refetch && everything_local(args, &ref)) {
                           ^
/datasets/git/fetch-pack.c:1201:3: note: +1
                goto all_done;
                ^
/datasets/git/fetch-pack.c:1203:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (find_common(negotiator, args, fd, &oid, ref) < 0)
        ^
/datasets/git/fetch-pack.c:1204:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!args->keep_pack)
                ^
/datasets/git/fetch-pack.c:1210:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (args->stateless_rpc)
        ^
/datasets/git/fetch-pack.c:1212:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (args->deepen)
        ^
/datasets/git/fetch-pack.c:1215:7: note: +1, nesting level increased to 1
        else if (si->nr_ours || si->nr_theirs) {
             ^
/datasets/git/fetch-pack.c:1215:23: note: +1
        else if (si->nr_ours || si->nr_theirs) {
                             ^
/datasets/git/fetch-pack.c:1216:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (args->reject_shallow_remote)
                ^
/datasets/git/fetch-pack.c:1219:4: note: +1, nesting level increased to 1
        } else
          ^
/datasets/git/fetch-pack.c:1221:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (get_pack(args, fd, pack_lockfiles, NULL, sought, nr_sought,
        ^
/datasets/git/fetch-pack.c:1224:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (fsck_finish(&fsck_options))
        ^
/datasets/git/fetch-pack.c:1228:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (negotiator)
        ^
/datasets/git/fetch-pack.c:1087:10: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
                                 int fd[2],
                                     ^
/datasets/git/fetch-pack.c:1090:27: warning: parameter name 'si' is too short, expected at least 3 characters [readability-identifier-length]
                                 struct shallow_info *si,
                                                      ^
/datasets/git/fetch-pack.c:1093:21: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        struct repository *r = the_repository;
                           ^
/datasets/git/fetch-pack.c:1096:14: warning: variable 'agent_feature' is not initialized [cppcoreguidelines-init-variables]
        const char *agent_feature;
                    ^
                                  = NULL
/datasets/git/fetch-pack.c:1097:6: warning: variable 'agent_len' is not initialized [cppcoreguidelines-init-variables]
        int agent_len;
            ^
                      = 0
/datasets/git/fetch-pack.c:1099:27: warning: variable 'negotiator' is not initialized [cppcoreguidelines-init-variables]
        struct fetch_negotiator *negotiator;
                                 ^
                                            = NULL
/datasets/git/fetch-pack.c:1109:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        QSORT(sought, nr_sought, cmp_ref_by_name);
        ^
/datasets/git/./git-compat-util.h:1304:56: note: expanded from macro 'QSORT'
#define QSORT(base, n, compar) sane_qsort((base), (n), sizeof(*(base)), compar)
                                                       ^
/datasets/git/fetch-pack.c:1111:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if ((agent_feature = server_feature_value("agent", &agent_len))) {
             ^
/datasets/git/fetch-pack.c:1111:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/fetch-pack.c:1111:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/fetch-pack.c:1113:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (agent_len)
                              ^
                               {
/datasets/git/fetch-pack.c:1118:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!server_supports("session-id"))
                                           ^
                                            {
/datasets/git/fetch-pack.c:1121:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (server_supports("shallow"))
                                       ^
                                        {
/datasets/git/fetch-pack.c:1123:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (args->depth > 0 || is_repository_shallow(r))
                                                             ^
                                                              {
/datasets/git/fetch-pack.c:1125:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (args->depth > 0 || args->deepen_since || args->deepen_not)
                                                                      ^
                                                                       {
/datasets/git/fetch-pack.c:1132:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (args->stateless_rpc)
                                                ^
                                                 {
/datasets/git/fetch-pack.c:1150:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                allow_unadvertised_object_request |= ALLOW_TIP_SHA1;
                ^
/datasets/git/fetch-pack.c:1154:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                allow_unadvertised_object_request |= ALLOW_REACHABLE_SHA1;
                ^
/datasets/git/fetch-pack.c:1156:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (server_supports("thin-pack"))
                                         ^
                                          {
/datasets/git/fetch-pack.c:1158:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/fetch-pack.c:1160:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (server_supports("no-progress"))
                                           ^
                                            {
/datasets/git/fetch-pack.c:1162:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/fetch-pack.c:1164:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (server_supports("include-tag"))
                                           ^
                                            {
/datasets/git/fetch-pack.c:1166:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/fetch-pack.c:1168:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (server_supports("ofs-delta"))
                                         ^
                                          {
/datasets/git/fetch-pack.c:1170:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/fetch-pack.c:1183:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else if (args->deepen_since)
                                      ^
                                       {
/datasets/git/fetch-pack.c:1188:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else if (args->deepen_not)
                                    ^
                                     {
/datasets/git/fetch-pack.c:1190:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (server_supports("deepen-relative"))
                                               ^
                                                {
/datasets/git/fetch-pack.c:1192:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (args->deepen_relative)
                                       ^
                                        {
/datasets/git/fetch-pack.c:1194:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!server_supports_hash(the_hash_algo->name, NULL))
                                                             ^
                                                              {
/datasets/git/fetch-pack.c:1203:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (find_common(negotiator, args, fd, &oid, ref) < 0)
                                                             ^
                                                              {
/datasets/git/fetch-pack.c:1204:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!args->keep_pack)
                                     ^
                                      {
/datasets/git/fetch-pack.c:1210:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (args->stateless_rpc)
                                ^
                                 {
/datasets/git/fetch-pack.c:1212:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (args->deepen)
                         ^
                          {
/datasets/git/fetch-pack.c:1216:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (args->reject_shallow_remote)
                                                ^
                                                 {
/datasets/git/fetch-pack.c:1219:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/fetch-pack.c:1222:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                     &fsck_options.gitmodules_found))
                                                     ^
                                                      {
/datasets/git/fetch-pack.c:1224:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fsck_finish(&fsck_options))
                                       ^
                                        {
/datasets/git/fetch-pack.c:1228:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (negotiator)
                       ^
                        {
/datasets/git/fetch-pack.c:1236:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_repository_shallow(the_repository))
                                                  ^
                                                   {
/datasets/git/fetch-pack.c:1238:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (args->depth > 0)
                            ^
                             {
/datasets/git/fetch-pack.c:1245:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/fetch-pack.c:1245:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/fetch-pack.c:1246:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < args->deepen_not->nr; i++) {
                ^
/datasets/git/fetch-pack.c:1247:29: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
                        struct string_list_item *s = args->deepen_not->items + i;
                                                 ^
/datasets/git/fetch-pack.c:1255:23: note: inferred assignment of ID-dependent value from ID-dependent member next [altera-id-dependent-backward-branch]
static void add_wants(const struct ref *wants, struct strbuf *req_buf)
                      ^
/datasets/git/fetch-pack.c:1251:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (args->deepen_relative)
                                  ^
                                   {
/datasets/git/fetch-pack.c:1259:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for ( ; wants ; wants = wants->next) {
        ^
/datasets/git/fetch-pack.c:1259:10: warning: backward branch (for loop) is ID-dependent due to variable reference to 'wants' and may cause performance degradation [altera-id-dependent-backward-branch]
        for ( ; wants ; wants = wants->next) {
                ^
/datasets/git/fetch-pack.c:1261:18: warning: variable 'o' is not initialized [cppcoreguidelines-init-variables]
                struct object *o;
                               ^
                                 = NULL
/datasets/git/fetch-pack.c:1261:18: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/fetch-pack.c:1273:9: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                if (((o = lookup_object(the_repository, remote)) != NULL) &&
                      ^
/datasets/git/fetch-pack.c:1273:9: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/fetch-pack.c:1273:9: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/fetch-pack.c:1274:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (o->flags & COMPLETE)) {
                                ^
/datasets/git/fetch-pack.c:50:19: note: expanded from macro 'COMPLETE'
#define COMPLETE        (1U << 0)
                         ^     ~
/datasets/git/fetch-pack.c:1288:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        const struct object_id *oid;
        ^
/datasets/git/fetch-pack.c:1278:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!use_ref_in_want || wants->exact_oid)
                                                         ^
                                                          {
/datasets/git/fetch-pack.c:1280:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/fetch-pack.c:1288:26: warning: variable 'oid' is not initialized [cppcoreguidelines-init-variables]
        const struct object_id *oid;
                                ^
                                    = NULL
/datasets/git/fetch-pack.c:1301:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        const struct object_id *oid;
        ^
/datasets/git/fetch-pack.c:1291:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((oid = oidset_iter_next(&iter))) {
        ^
/datasets/git/fetch-pack.c:1291:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'oid' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((oid = oidset_iter_next(&iter))) {
               ^
/datasets/git/fetch-pack.c:1301:26: warning: variable 'oid' is not initialized [cppcoreguidelines-init-variables]
        const struct object_id *oid;
                                ^
                                    = NULL
/datasets/git/fetch-pack.c:1303:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((oid = negotiator->next(negotiator))) {
        ^
/datasets/git/fetch-pack.c:1303:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'oid' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((oid = negotiator->next(negotiator))) {
               ^
/datasets/git/fetch-pack.c:1305:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (++haves_added >= *haves_to_send)
                                                    ^
                                                     {
/datasets/git/fetch-pack.c:1318:14: warning: variable 'hash_name' is not initialized [cppcoreguidelines-init-variables]
        const char *hash_name;
                    ^
                              = NULL
/datasets/git/fetch-pack.c:1320:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (server_supports_v2("fetch", 1))
                                           ^
                                            {
/datasets/git/fetch-pack.c:1322:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (server_supports_v2("agent", 0))
                                           ^
                                            {
/datasets/git/fetch-pack.c:1324:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (advertise_sid && server_supports_v2("session-id", 0))
                                                                 ^
                                                                  {
/datasets/git/fetch-pack.c:1328:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/fetch-pack.c:1328:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/fetch-pack.c:1329:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < server_options->nr; i++)
                ^
/datasets/git/fetch-pack.c:1329:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < server_options->nr; i++)
                                                        ^
                                                         {
/datasets/git/fetch-pack.c:1336:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (hash_algo_by_ptr(the_hash_algo) != hash_algo)
                                                                 ^
                                                                  {
/datasets/git/fetch-pack.c:1350:10: warning: 2 adjacent parameters of 'send_fetch_request' of similar type ('int *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                              int *haves_to_send, int *in_vain,
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/fetch-pack.c:1350:15: note: the first parameter in the range is 'haves_to_send'
                              int *haves_to_send, int *in_vain,
                                   ^~~~~~~~~~~~~
/datasets/git/fetch-pack.c:1350:35: note: the last parameter in the range is 'in_vain'
                              int *haves_to_send, int *in_vain,
                                                       ^~~~~~~
/datasets/git/fetch-pack.c:1351:10: warning: 2 adjacent parameters of 'send_fetch_request' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                              int sideband_all, int seen_ack)
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/fetch-pack.c:1351:14: note: the first parameter in the range is 'sideband_all'
                              int sideband_all, int seen_ack)
                                  ^~~~~~~~~~~~
/datasets/git/fetch-pack.c:1351:32: note: the last parameter in the range is 'seen_ack'
                              int sideband_all, int seen_ack)
                                                    ^~~~~~~~
/datasets/git/fetch-pack.c:1353:6: warning: variable 'haves_added' is not initialized [cppcoreguidelines-init-variables]
        int haves_added;
            ^
                        = 0
/datasets/git/fetch-pack.c:1359:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (args->use_thin_pack)
                                ^
                                 {
/datasets/git/fetch-pack.c:1361:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (args->no_progress)
                              ^
                               {
/datasets/git/fetch-pack.c:1363:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (args->include_tag)
                              ^
                               {
/datasets/git/fetch-pack.c:1365:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prefer_ofs_delta)
                             ^
                              {
/datasets/git/fetch-pack.c:1367:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (sideband_all)
                         ^
                          {
/datasets/git/fetch-pack.c:1371:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (server_supports_feature("fetch", "shallow", 0))
                                                           ^
                                                            {
/datasets/git/fetch-pack.c:1373:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (is_repository_shallow(the_repository) || args->deepen)
                                                                       ^
                                                                        {
/datasets/git/fetch-pack.c:1381:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/fetch-pack.c:1381:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/fetch-pack.c:1384:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < uri_protocols.nr; i++) {
                ^
/datasets/git/fetch-pack.c:1385:16: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
                        const char *s = uri_protocols.items[i].string;
                                    ^
/datasets/git/fetch-pack.c:1388:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (to_send.len)
                                                ^
                                                 {
/datasets/git/fetch-pack.c:1418:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_in_full(fd_out, req_buf.buf, req_buf.len) < 0)
                                                                ^
                                                                 {
/datasets/git/fetch-pack.c:1437:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !strcmp(reader->line, section))
                                           ^
                                            {
/datasets/git/fetch-pack.c:1442:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (reader->line)
                                         ^
                                          {
/datasets/git/fetch-pack.c:1445:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/fetch-pack.c:1459:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (packet_reader_read(reader) == PACKET_READ_NORMAL) {
        ^
/datasets/git/fetch-pack.c:1460:15: warning: variable 'arg' is not initialized [cppcoreguidelines-init-variables]
                const char *arg;
                            ^
                                = NULL
/datasets/git/fetch-pack.c:1462:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(reader->line, "NAK"))
                                                 ^
                                                  {
/datasets/git/fetch-pack.c:1467:20: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
                                struct commit *commit;
                                               ^
                                                      = NULL
/datasets/git/fetch-pack.c:1469:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (negotiator)
                                               ^
                                                {
/datasets/git/fetch-pack.c:1484:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            reader->status != PACKET_READ_DELIM)
                                                ^
                                                 {
/datasets/git/fetch-pack.c:1494:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*received_ready && reader->status != PACKET_READ_DELIM)
                                                                   ^
                                                                    {
/datasets/git/fetch-pack.c:1500:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!*received_ready && reader->status != PACKET_READ_FLUSH)
                                                                    ^
                                                                     {
/datasets/git/fetch-pack.c:1510:13: warning: function 'receive_shallow_info' has cognitive complexity of 35 (threshold 25) [readability-function-cognitive-complexity]
static void receive_shallow_info(struct fetch_pack_args *args,
            ^
/datasets/git/fetch-pack.c:1518:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (packet_reader_read(reader) == PACKET_READ_NORMAL) {
        ^
/datasets/git/fetch-pack.c:1522:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (skip_prefix(reader->line, "shallow ", &arg)) {
                ^
/datasets/git/fetch-pack.c:1523:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (get_oid_hex(arg, &oid))
                        ^
/datasets/git/fetch-pack.c:1528:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (skip_prefix(reader->line, "unshallow ", &arg)) {
                ^
/datasets/git/fetch-pack.c:1529:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (get_oid_hex(arg, &oid))
                        ^
/datasets/git/fetch-pack.c:1531:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!lookup_object(the_repository, &oid))
                        ^
/datasets/git/fetch-pack.c:1534:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!parse_object(the_repository, &oid))
                        ^
/datasets/git/fetch-pack.c:1536:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (unregister_shallow(&oid))
                        ^
/datasets/git/fetch-pack.c:1544:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (reader->status != PACKET_READ_FLUSH &&
        ^
/datasets/git/fetch-pack.c:1544:42: note: +1
        if (reader->status != PACKET_READ_FLUSH &&
                                                ^
/datasets/git/fetch-pack.c:1548:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (args->deepen || unshallow_received) {
        ^
/datasets/git/fetch-pack.c:1548:19: note: +1
        if (args->deepen || unshallow_received) {
                         ^
/datasets/git/fetch-pack.c:1556:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < shallows->nr; i++)
                ^
/datasets/git/fetch-pack.c:1561:9: note: +1, nesting level increased to 1
        } else if (shallows->nr) {
               ^
/datasets/git/fetch-pack.c:1568:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (si->nr_ours || si->nr_theirs) {
                ^
/datasets/git/fetch-pack.c:1568:19: note: +1
                if (si->nr_ours || si->nr_theirs) {
                                ^
/datasets/git/fetch-pack.c:1569:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (args->reject_shallow_remote)
                        ^
/datasets/git/fetch-pack.c:1573:5: note: +1, nesting level increased to 2
                } else
                  ^
/datasets/git/fetch-pack.c:1575:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/fetch-pack.c:1513:27: warning: parameter name 'si' is too short, expected at least 3 characters [readability-identifier-length]
                                 struct shallow_info *si)
                                                      ^
/datasets/git/fetch-pack.c:1518:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (packet_reader_read(reader) == PACKET_READ_NORMAL) {
        ^
/datasets/git/fetch-pack.c:1519:15: warning: variable 'arg' is not initialized [cppcoreguidelines-init-variables]
                const char *arg;
                            ^
                                = NULL
/datasets/git/fetch-pack.c:1523:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (get_oid_hex(arg, &oid))
                                                   ^
                                                    {
/datasets/git/fetch-pack.c:1529:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (get_oid_hex(arg, &oid))
                                                   ^
                                                    {
/datasets/git/fetch-pack.c:1531:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!lookup_object(the_repository, &oid))
                                                                 ^
                                                                  {
/datasets/git/fetch-pack.c:1534:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!parse_object(the_repository, &oid))
                                                                ^
                                                                 {
/datasets/git/fetch-pack.c:1536:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (unregister_shallow(&oid))
                                                     ^
                                                      {
/datasets/git/fetch-pack.c:1545:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            reader->status != PACKET_READ_DELIM)
                                                ^
                                                 {
/datasets/git/fetch-pack.c:1554:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/fetch-pack.c:1554:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/fetch-pack.c:1556:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < shallows->nr; i++)
                ^
/datasets/git/fetch-pack.c:1556:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < shallows->nr; i++)
                                                  ^
                                                   {
/datasets/git/fetch-pack.c:1569:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (args->reject_shallow_remote)
                                                        ^
                                                         {
/datasets/git/fetch-pack.c:1573:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/fetch-pack.c:1589:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (packet_reader_read(reader) == PACKET_READ_NORMAL) {
        ^
/datasets/git/fetch-pack.c:1591:15: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
                const char *end;
                            ^
                                = NULL
/datasets/git/fetch-pack.c:1592:16: warning: variable 'found' is not initialized [cppcoreguidelines-init-variables]
                struct ref **found;
                             ^
                                   = NULL
/datasets/git/fetch-pack.c:1594:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (parse_oid_hex(reader->line, &oid, &end) || *end++ != ' ')
                                                                             ^
                                                                              {
/datasets/git/fetch-pack.c:1597:43: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                found = bsearch(end, sought, nr_sought, sizeof(*sought),
                                                        ^
/datasets/git/fetch-pack.c:1599:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!found)
                           ^
                            {
/datasets/git/fetch-pack.c:1604:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (reader->status != PACKET_READ_DELIM)
                                                ^
                                                 {
/datasets/git/fetch-pack.c:1612:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (packet_reader_read(reader) == PACKET_READ_NORMAL) {
        ^
/datasets/git/fetch-pack.c:1614:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    reader->line[the_hash_algo->hexsz] != ' ')
                                                              ^
                                                               {
/datasets/git/fetch-pack.c:1619:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (reader->status != PACKET_READ_DELIM)
                                                ^
                                                 {
/datasets/git/fetch-pack.c:1638:20: warning: function 'do_fetch_pack_v2' has cognitive complexity of 65 (threshold 25) [readability-function-cognitive-complexity]
static struct ref *do_fetch_pack_v2(struct fetch_pack_args *args,
                   ^
/datasets/git/fetch-pack.c:1664:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (args->refetch)
        ^
/datasets/git/fetch-pack.c:1666:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/fetch-pack.c:1672:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (git_env_bool("GIT_TEST_SIDEBAND_ALL", 1) &&
        ^
/datasets/git/fetch-pack.c:1672:47: note: +1
        if (git_env_bool("GIT_TEST_SIDEBAND_ALL", 1) &&
                                                     ^
/datasets/git/fetch-pack.c:1678:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (state != FETCH_DONE) {
        ^
/datasets/git/fetch-pack.c:1679:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                switch (state) {
                ^
/datasets/git/fetch-pack.c:1687:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (args->depth > 0 || args->deepen_since || args->deepen_not)
                        ^
/datasets/git/fetch-pack.c:1687:46: note: +1
                        if (args->depth > 0 || args->deepen_since || args->deepen_not)
                                                                  ^
/datasets/git/fetch-pack.c:1693:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!args->refetch && everything_local(args, &ref))
                        ^
/datasets/git/fetch-pack.c:1693:23: note: +1
                        if (!args->refetch && everything_local(args, &ref))
                                           ^
/datasets/git/fetch-pack.c:1695:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/fetch-pack.c:1703:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!negotiation_started) {
                        ^
/datasets/git/fetch-pack.c:1713:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (send_fetch_request(negotiator, fd[1], args, ref,
                        ^
/datasets/git/fetch-pack.c:1723:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/fetch-pack.c:1729:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (process_ack(negotiator, &reader, &common_oid,
                        ^
/datasets/git/fetch-pack.c:1738:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (received_ready) {
                        ^
/datasets/git/fetch-pack.c:1744:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/fetch-pack.c:1756:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (process_section_header(&reader, "shallow-info", 1))
                        ^
/datasets/git/fetch-pack.c:1759:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (process_section_header(&reader, "wanted-refs", 1))
                        ^
/datasets/git/fetch-pack.c:1763:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (git_env_bool("GIT_TRACE_REDACT", 1))
                        ^
/datasets/git/fetch-pack.c:1765:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (process_section_header(&reader, "packfile-uris", 1))
                        ^
/datasets/git/fetch-pack.c:1780:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (get_pack(args, fd, pack_lockfiles,
                        ^
/datasets/git/fetch-pack.c:1781:27: note: +3, including nesting penalty of 2, nesting level increased to 3
                                     packfile_uris.nr ? &index_pack_args : NULL,
                                                      ^
/datasets/git/fetch-pack.c:1793:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < packfile_uris.nr; i++) {
        ^
/datasets/git/fetch-pack.c:1804:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (j = 0; j < index_pack_args.nr; j++)
                ^
/datasets/git/fetch-pack.c:1811:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (start_command(&cmd))
                ^
/datasets/git/fetch-pack.c:1814:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (read_in_full(cmd.out, packname, 5) < 0 ||
                ^
/datasets/git/fetch-pack.c:1814:46: note: +1
                if (read_in_full(cmd.out, packname, 5) < 0 ||
                                                           ^
/datasets/git/fetch-pack.c:1818:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (read_in_full(cmd.out, packname,
                ^
/datasets/git/fetch-pack.c:1819:36: note: +1
                                 the_hash_algo->hexsz + 1) < 0 ||
                                                               ^
/datasets/git/fetch-pack.c:1829:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (finish_command(&cmd))
                ^
/datasets/git/fetch-pack.c:1832:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (memcmp(packfile_uris.items[i].string, packname,
                ^
/datasets/git/fetch-pack.c:1846:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (fsck_finish(&fsck_options))
        ^
/datasets/git/fetch-pack.c:1849:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (negotiator)
        ^
/datasets/git/fetch-pack.c:1639:13: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
                                    int fd[2],
                                        ^
/datasets/git/fetch-pack.c:1643:30: warning: parameter name 'si' is too short, expected at least 3 characters [readability-identifier-length]
                                    struct shallow_info *si,
                                                         ^
/datasets/git/fetch-pack.c:1646:21: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        struct repository *r = the_repository;
                           ^
/datasets/git/fetch-pack.c:1651:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int in_vain = 0, negotiation_started = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/fetch-pack.c:1655:27: warning: variable 'negotiator' is not initialized [cppcoreguidelines-init-variables]
        struct fetch_negotiator *negotiator;
                                 ^
                                            = NULL
/datasets/git/fetch-pack.c:1660:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/fetch-pack.c:1660:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/fetch-pack.c:1664:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (args->refetch)
                          ^
                           {
/datasets/git/fetch-pack.c:1666:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/fetch-pack.c:1670:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                           PACKET_READ_CHOMP_NEWLINE |
                           ^
/datasets/git/./pkt-line.h:85:43: note: expanded from macro 'PACKET_READ_CHOMP_NEWLINE'
#define PACKET_READ_CHOMP_NEWLINE        (1u<<1)
                                          ^   ~
/datasets/git/fetch-pack.c:1671:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                           PACKET_READ_DIE_ON_ERR_PACKET);
                           ^
/datasets/git/./pkt-line.h:86:43: note: expanded from macro 'PACKET_READ_DIE_ON_ERR_PACKET'
#define PACKET_READ_DIE_ON_ERR_PACKET    (1u<<2)
                                          ^   ~
/datasets/git/fetch-pack.c:1679:3: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
                switch (state) {
                ^
/datasets/git/fetch-pack.c:1682:4: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                        QSORT(sought, nr_sought, cmp_ref_by_name);
                        ^
/datasets/git/./git-compat-util.h:1304:56: note: expanded from macro 'QSORT'
#define QSORT(base, n, compar) sane_qsort((base), (n), sizeof(*(base)), compar)
                                                       ^
/datasets/git/fetch-pack.c:1685:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        allow_unadvertised_object_request |= ALLOW_REACHABLE_SHA1;
                        ^
/datasets/git/fetch-pack.c:1687:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (args->depth > 0 || args->deepen_since || args->deepen_not)
                                                                                      ^
                                                                                       {
/datasets/git/fetch-pack.c:1693:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!args->refetch && everything_local(args, &ref))
                                                                           ^
                                                                            {
/datasets/git/fetch-pack.c:1695:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/fetch-pack.c:1723:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/fetch-pack.c:1729:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (process_ack(negotiator, &reader, &common_oid,
                        ^
/datasets/git/fetch-pack.c:1729:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'negotiator' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (process_ack(negotiator, &reader, &common_oid,
                               ^
/datasets/git/fetch-pack.c:1756:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (process_section_header(&reader, "shallow-info", 1))
                                                                               ^
                                                                                {
/datasets/git/fetch-pack.c:1759:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (process_section_header(&reader, "wanted-refs", 1))
                                                                              ^
                                                                               {
/datasets/git/fetch-pack.c:1763:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (git_env_bool("GIT_TRACE_REDACT", 1))
                                                                ^
                                                                 {
/datasets/git/fetch-pack.c:1764:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                reader.options |= PACKET_READ_REDACT_URI_PATH;
                                ^~~~~~~~~~~~~~
/datasets/git/fetch-pack.c:1764:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                reader.options |= PACKET_READ_REDACT_URI_PATH;
                                                  ^
/datasets/git/./pkt-line.h:88:43: note: expanded from macro 'PACKET_READ_REDACT_URI_PATH'
#define PACKET_READ_REDACT_URI_PATH      (1u<<4)
                                          ^   ~
/datasets/git/fetch-pack.c:1765:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (process_section_header(&reader, "packfile-uris", 1))
                                                                                ^
                                                                                 {
/datasets/git/fetch-pack.c:1768:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        reader.options &= ~PACKET_READ_REDACT_URI_PATH;
                        ^~~~~~~~~~~~~~
/datasets/git/fetch-pack.c:1768:22: warning: narrowing conversion from constant value 4294967279 (0xFFFFFFEF) of type 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        reader.options &= ~PACKET_READ_REDACT_URI_PATH;
                                          ^
/datasets/git/fetch-pack.c:1768:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        reader.options &= ~PACKET_READ_REDACT_URI_PATH;
                                           ^
/datasets/git/./pkt-line.h:88:43: note: expanded from macro 'PACKET_READ_REDACT_URI_PATH'
#define PACKET_READ_REDACT_URI_PATH      (1u<<4)
                                          ^   ~
/datasets/git/fetch-pack.c:1782:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                     sought, nr_sought, &fsck_options.gitmodules_found))
                                                                                        ^
                                                                                         {
/datasets/git/fetch-pack.c:1794:7: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
                int j;
                    ^
                      = 0
/datasets/git/fetch-pack.c:1794:7: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/fetch-pack.c:1804:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (j = 0; j < index_pack_args.nr; j++)
                ^
/datasets/git/fetch-pack.c:1804:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'index_pack_args' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (j = 0; j < index_pack_args.nr; j++)
                            ^
/datasets/git/fetch-pack.c:1804:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (j = 0; j < index_pack_args.nr; j++)
                                                        ^
                                                         {
/datasets/git/fetch-pack.c:1811:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (start_command(&cmd))
                                        ^
                                         {
/datasets/git/fetch-pack.c:1814:39: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (read_in_full(cmd.out, packname, 5) < 0 ||
                                                    ^
/datasets/git/fetch-pack.c:1815:7: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                    memcmp(packname, "keep\t", 5))
                    ^
                                                  != 0
/datasets/git/fetch-pack.c:1815:34: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                    memcmp(packname, "keep\t", 5))
                                               ^
/datasets/git/fetch-pack.c:1815:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    memcmp(packname, "keep\t", 5))
                                                  ^
                                                   {
/datasets/git/fetch-pack.c:1820:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    packname[the_hash_algo->hexsz] != '\n')
                                                           ^
                                                            {
/datasets/git/fetch-pack.c:1829:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (finish_command(&cmd))
                                         ^
                                          {
/datasets/git/fetch-pack.c:1832:7: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (memcmp(packfile_uris.items[i].string, packname,
                    ^
/datasets/git/fetch-pack.c:1833:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                           the_hash_algo->hexsz))
                                                 ^
                                                  {
/datasets/git/fetch-pack.c:1846:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fsck_finish(&fsck_options))
                                       ^
                                        {
/datasets/git/fetch-pack.c:1849:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (negotiator)
                       ^
                        {
/datasets/git/fetch-pack.c:1856:75: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int fetch_pack_config_cb(const char *var, const char *value, void *cb)
                                                                          ^
/datasets/git/fetch-pack.c:1859:15: warning: variable 'path' is not initialized [cppcoreguidelines-init-variables]
                const char *path;
                            ^
                                 = NULL
/datasets/git/fetch-pack.c:1861:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (git_config_pathname(&path, var, value))
                                                           ^
                                                            {
/datasets/git/fetch-pack.c:1870:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_valid_msg_type(var, value))
                                                  ^
                                                   {
/datasets/git/fetch-pack.c:1873:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/fetch-pack.c:1890:9: warning: variable 'str' is not initialized [cppcoreguidelines-init-variables]
                char *str;
                      ^
                          = NULL
/datasets/git/fetch-pack.c:1904:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (did_setup)
                      ^
                       {
/datasets/git/fetch-pack.c:1907:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (0 <= transfer_unpack_limit)
                                       ^
                                        {
/datasets/git/fetch-pack.c:1909:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (0 <= fetch_unpack_limit)
                                         ^
                                          {
/datasets/git/fetch-pack.c:1914:60: warning: parameter name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
static int remove_duplicates_in_refs(struct ref **ref, int nr)
                                                           ^
/datasets/git/fetch-pack.c:1917:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int src, dst;
        ^~~~~~~~~~~~~
/datasets/git/fetch-pack.c:1917:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/fetch-pack.c:1917:6: warning: variable 'src' is not initialized [cppcoreguidelines-init-variables]
        int src, dst;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/fetch-pack.c:1917:11: warning: variable 'dst' is not initialized [cppcoreguidelines-init-variables]
        int src, dst;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/fetch-pack.c:1919:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (src = dst = 0; src < nr; src++) {
        ^
/datasets/git/fetch-pack.c:1919:22: warning: backward branch (for loop) is ID-dependent due to variable reference to 'src' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (src = dst = 0; src < nr; src++) {
                            ^
/datasets/git/fetch-pack.c:1920:28: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
                struct string_list_item *item;
                                         ^
                                              = NULL
/datasets/git/fetch-pack.c:1922:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (item->util)
                               ^
                                {
/datasets/git/fetch-pack.c:1925:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (src != dst)
                               ^
                                {
/datasets/git/fetch-pack.c:1929:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (src = dst; src < nr; src++)
        ^
/datasets/git/fetch-pack.c:1929:18: warning: backward branch (for loop) is ID-dependent due to variable reference to 'src' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (src = dst; src < nr; src++)
                        ^
/datasets/git/fetch-pack.c:1929:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (src = dst; src < nr; src++)
                                        ^
                                         {
/datasets/git/fetch-pack.c:1935:13: warning: function 'update_shallow' has cognitive complexity of 35 (threshold 25) [readability-function-cognitive-complexity]
static void update_shallow(struct fetch_pack_args *args,
            ^
/datasets/git/fetch-pack.c:1943:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (args->deepen && alternate_shallow_file) {
        ^
/datasets/git/fetch-pack.c:1943:19: note: +1
        if (args->deepen && alternate_shallow_file) {
                         ^
/datasets/git/fetch-pack.c:1944:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*alternate_shallow_file == '\0') { /* --unshallow */
                ^
/datasets/git/fetch-pack.c:1947:5: note: +1, nesting level increased to 2
                } else
                  ^
/datasets/git/fetch-pack.c:1953:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!si->shallow || !si->shallow->nr)
        ^
/datasets/git/fetch-pack.c:1953:19: note: +1
        if (!si->shallow || !si->shallow->nr)
                         ^
/datasets/git/fetch-pack.c:1956:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (args->cloning) {
        ^
/datasets/git/fetch-pack.c:1965:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < si->shallow->nr; i++)
                ^
/datasets/git/fetch-pack.c:1966:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (has_object_file(&oid[i]))
                        ^
/datasets/git/fetch-pack.c:1968:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (extra.nr) {
                ^
/datasets/git/fetch-pack.c:1979:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!si->nr_ours && !si->nr_theirs)
        ^
/datasets/git/fetch-pack.c:1979:19: note: +1
        if (!si->nr_ours && !si->nr_theirs)
                         ^
/datasets/git/fetch-pack.c:1983:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!si->nr_ours && !si->nr_theirs)
        ^
/datasets/git/fetch-pack.c:1983:19: note: +1
        if (!si->nr_ours && !si->nr_theirs)
                         ^
/datasets/git/fetch-pack.c:1985:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < nr_sought; i++)
        ^
/datasets/git/fetch-pack.c:1989:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (args->update_shallow) {
        ^
/datasets/git/fetch-pack.c:1999:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!si->nr_ours && !si->nr_theirs) {
                ^
/datasets/git/fetch-pack.c:1999:20: note: +1
                if (!si->nr_ours && !si->nr_theirs) {
                                 ^
/datasets/git/fetch-pack.c:2003:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < si->nr_ours; i++)
                ^
/datasets/git/fetch-pack.c:2005:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < si->nr_theirs; i++)
                ^
/datasets/git/fetch-pack.c:2023:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (si->nr_ours || si->nr_theirs) {
        ^
/datasets/git/fetch-pack.c:2023:18: note: +1
        if (si->nr_ours || si->nr_theirs) {
                        ^
/datasets/git/fetch-pack.c:2024:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < nr_sought; i++)
                ^
/datasets/git/fetch-pack.c:2025:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (status[i])
                        ^
/datasets/git/fetch-pack.c:1937:28: warning: parameter name 'si' is too short, expected at least 3 characters [readability-identifier-length]
                           struct shallow_info *si)
                                                ^
/datasets/git/fetch-pack.c:1940:7: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int *status;
             ^
                    = NULL
/datasets/git/fetch-pack.c:1941:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/fetch-pack.c:1941:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/fetch-pack.c:1947:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/fetch-pack.c:1953:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!si->shallow || !si->shallow->nr)
                                             ^
                                              {
/datasets/git/fetch-pack.c:1965:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < si->shallow->nr; i++)
                ^
/datasets/git/fetch-pack.c:1965:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < si->shallow->nr; i++)
                                                     ^
                                                      {
/datasets/git/fetch-pack.c:1966:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (has_object_file(&oid[i]))
                                                     ^
                                                      {
/datasets/git/fetch-pack.c:1979:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!si->nr_ours && !si->nr_theirs)
                                           ^
                                            {
/datasets/git/fetch-pack.c:1983:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!si->nr_ours && !si->nr_theirs)
                                           ^
                                            {
/datasets/git/fetch-pack.c:1985:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr_sought; i++)
        ^
/datasets/git/fetch-pack.c:1985:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < nr_sought; i++)
                                       ^
                                        {
/datasets/git/fetch-pack.c:2003:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < si->nr_ours; i++)
                ^
/datasets/git/fetch-pack.c:2003:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < si->nr_ours; i++)
                                                 ^
                                                  {
/datasets/git/fetch-pack.c:2005:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < si->nr_theirs; i++)
                ^
/datasets/git/fetch-pack.c:2005:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < si->nr_theirs; i++)
                                                   ^
                                                    {
/datasets/git/fetch-pack.c:2024:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < nr_sought; i++)
                ^
/datasets/git/fetch-pack.c:2024:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < nr_sought; i++)
                                               ^
                                                {
/datasets/git/fetch-pack.c:2025:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (status[i])
                                      ^
                                       {
/datasets/git/fetch-pack.c:2034:15: warning: variable name 'rm' is too short, expected at least 3 characters [readability-identifier-length]
        struct ref **rm = cb_data;
                     ^
/datasets/git/fetch-pack.c:2037:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ref)
                 ^
                  {
/datasets/git/fetch-pack.c:2044:14: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
                       int fd[],
                           ^
/datasets/git/fetch-pack.c:2051:14: warning: variable 'ref_cpy' is not initialized [cppcoreguidelines-init-variables]
        struct ref *ref_cpy;
                    ^
                            = NULL
/datasets/git/fetch-pack.c:2052:22: warning: variable name 'si' is too short, expected at least 3 characters [readability-identifier-length]
        struct shallow_info si;
                            ^
/datasets/git/fetch-pack.c:2056:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (nr_sought)
                      ^
                       {
/datasets/git/fetch-pack.c:2064:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (shallow->nr)
                                ^
                                 {
/datasets/git/fetch-pack.c:2066:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(&si, 0, sizeof(si));
                ^~~~~~
/datasets/git/fetch-pack.c:2066:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(&si, 0, sizeof(si));
                ^~~~~~
/datasets/git/fetch-pack.c:2081:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (args->deepen)
                                 ^
                                  {
/datasets/git/fetch-pack.c:2102:23: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        struct object_array *a = data;
                             ^
/datasets/git/fetch-pack.c:2108:46: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void clear_common_flag(struct oidset *s)
                                             ^
/datasets/git/fetch-pack.c:2111:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        const struct object_id *oid;
        ^
/datasets/git/fetch-pack.c:2111:26: warning: variable 'oid' is not initialized [cppcoreguidelines-init-variables]
        const struct object_id *oid;
                                ^
                                    = NULL
/datasets/git/fetch-pack.c:2114:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((oid = oidset_iter_next(&iter))) {
        ^
/datasets/git/fetch-pack.c:2114:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'oid' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((oid = oidset_iter_next(&iter))) {
               ^
/datasets/git/fetch-pack.c:2116:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                obj->flags &= ~COMMON;
                               ^
/datasets/git/fetch-pack.c:52:18: note: expanded from macro 'COMMON'
#define COMMON          (1U << 6)
                         ^     ~
/datasets/git/fetch-pack.c:2123:11: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
                           int fd[],
                               ^
/datasets/git/fetch-pack.c:2135:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        timestamp_t min_generation = GENERATION_NUMBER_INFINITY;
                                     ^
/datasets/git/./negotiator/../commit.h:14:38: note: expanded from macro 'GENERATION_NUMBER_INFINITY'
#define GENERATION_NUMBER_INFINITY ((1ULL << 63) - 1)
                                     ^       ~~
/datasets/git/fetch-pack.c:2141:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                           PACKET_READ_CHOMP_NEWLINE |
                           ^
/datasets/git/./pkt-line.h:85:43: note: expanded from macro 'PACKET_READ_CHOMP_NEWLINE'
#define PACKET_READ_CHOMP_NEWLINE        (1u<<1)
                                          ^   ~
/datasets/git/fetch-pack.c:2142:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                           PACKET_READ_DIE_ON_ERR_PACKET);
                           ^
/datasets/git/./pkt-line.h:86:43: note: expanded from macro 'PACKET_READ_DIE_ON_ERR_PACKET'
#define PACKET_READ_DIE_ON_ERR_PACKET    (1u<<2)
                                          ^   ~
/datasets/git/fetch-pack.c:2150:7: warning: variable 'haves_added' is not initialized [cppcoreguidelines-init-variables]
                int haves_added;
                    ^
                                = 0
/datasets/git/fetch-pack.c:2166:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!haves_added || (seen_ack && in_vain >= MAX_IN_VAIN))
                                                                         ^
                                                                          {
/datasets/git/fetch-pack.c:2176:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (write_in_full(fd[1], req_buf.buf, req_buf.len) < 0)
                                                                       ^
                                                                        {
/datasets/git/fetch-pack.c:2181:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (process_ack(&negotiator, &reader, &common_oid,
                ^
/datasets/git/fetch-pack.c:2186:17: warning: variable 'generation' is not initialized [cppcoreguidelines-init-variables]
                                timestamp_t generation;
                                            ^
                                                       = 0
/datasets/git/fetch-pack.c:2189:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                commit->object.flags |= COMMON;
                                                        ^
/datasets/git/fetch-pack.c:52:18: note: expanded from macro 'COMMON'
#define COMMON          (1U << 6)
                         ^     ~
/datasets/git/fetch-pack.c:2191:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (generation < min_generation)
                                                                ^
                                                                 {
/datasets/git/fetch-pack.c:2198:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (received_ready)
                                   ^
                                    {
/datasets/git/fetch-pack.c:2200:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/fetch-pack.c:2202:54: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (can_all_from_reach_with_flag(&nt_object_array, COMMON,
                                                                   ^
/datasets/git/fetch-pack.c:52:18: note: expanded from macro 'COMMON'
#define COMMON          (1U << 6)
                         ^     ~
/datasets/git/fetch-pack.c:2203:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                                 REACH_SCRATCH, 0,
                                                 ^
/datasets/git/fetch-pack.c:53:24: note: expanded from macro 'REACH_SCRATCH'
#define REACH_SCRATCH   (1U << 7)
                         ^     ~
/datasets/git/fetch-pack.c:2204:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                 min_generation))
                                                                 ^
                                                                  {
/datasets/git/fetch-pack.c:2219:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, ret = 0;
        ^~~~~~~~~~~~~~~
/datasets/git/fetch-pack.c:2219:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, ret = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/fetch-pack.c:2219:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/fetch-pack.c:2221:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr_sought; i++) {
        ^
/datasets/git/fetch-pack.c:2222:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!sought[i])
                               ^
                                {
/datasets/git/fmt-merge-msg.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "refs.h"
^        ~~~~~~~~
         "branch.h"
/datasets/git/fmt-merge-msg.c:14:12: warning: variable 'use_branch_desc' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int use_branch_desc;
           ^
/datasets/git/fmt-merge-msg.c:15:12: warning: variable 'suppress_dest_pattern_seen' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int suppress_dest_pattern_seen;
           ^
/datasets/git/fmt-merge-msg.c:16:27: warning: variable 'suppress_dest_patterns' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct string_list suppress_dest_patterns = STRING_LIST_INIT_DUP;
                          ^
/datasets/git/fmt-merge-msg.c:18:68: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
int fmt_merge_msg_config(const char *key, const char *value, void *cb)
                                                                   ^
/datasets/git/fmt-merge-msg.c:23:7: warning: variable 'is_bool' is not initialized [cppcoreguidelines-init-variables]
                int is_bool;
                    ^
                            = 0
/datasets/git/fmt-merge-msg.c:25:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!is_bool && merge_log_config < 0)
                                                     ^
                                                      {
/datasets/git/fmt-merge-msg.c:27:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_bool && merge_log_config)
                                                ^
                                                 {
/datasets/git/fmt-merge-msg.c:32:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
                            {
/datasets/git/fmt-merge-msg.c:34:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!*value)
                            ^
                             {
/datasets/git/fmt-merge-msg.c:36:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/fmt-merge-msg.c:41:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (status)
                           ^
                            {
/datasets/git/fmt-merge-msg.c:49:8: warning: accessing fields in struct 'src_data' is inefficient due to padding; only needs 164 bytes but is using 168 bytes [altera-struct-pack-align]
struct src_data {
       ^
/datasets/git/fmt-merge-msg.c:49:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'src_data'
/datasets/git/fmt-merge-msg.c:49:8: warning: accessing fields in struct 'src_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct src_data {
       ^
/datasets/git/fmt-merge-msg.c:49:8: note: use "__attribute__((aligned(128)))" to align struct 'src_data' to 128 bytes
/datasets/git/fmt-merge-msg.c:54:8: warning: accessing fields in struct 'origin_data' is inefficient due to poor alignment; currently aligned to 4 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct origin_data {
       ^
/datasets/git/fmt-merge-msg.c:54:8: note: use "__attribute__((aligned(64)))" to align struct 'origin_data' to 64 bytes
/datasets/git/fmt-merge-msg.c:67:27: warning: variable 'srcs' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct string_list srcs = STRING_LIST_INIT_DUP;
                          ^
/datasets/git/fmt-merge-msg.c:68:27: warning: variable 'origins' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct string_list origins = STRING_LIST_INIT_DUP;
                          ^
/datasets/git/fmt-merge-msg.c:70:8: warning: accessing fields in struct 'merge_parents' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct merge_parents {
       ^
/datasets/git/fmt-merge-msg.c:70:8: note: use "__attribute__((aligned(16)))" to align struct 'merge_parents' to 16 bytes
/datasets/git/fmt-merge-msg.c:72:9: warning: accessing fields in struct 'merge_parent' is inefficient due to padding; only needs 73 bytes but is using 76 bytes [altera-struct-pack-align]
        struct merge_parent {
               ^
/datasets/git/fmt-merge-msg.c:72:9: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'merge_parent'
/datasets/git/fmt-merge-msg.c:72:9: warning: accessing fields in struct 'merge_parent' is inefficient due to poor alignment; currently aligned to 4 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
        struct merge_parent {
               ^
/datasets/git/fmt-merge-msg.c:72:9: note: use "__attribute__((aligned(128)))" to align struct 'merge_parent' to 128 bytes
/datasets/git/fmt-merge-msg.c:87:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/fmt-merge-msg.c:87:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/fmt-merge-msg.c:88:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < table->nr; i++) {
        ^
/datasets/git/fmt-merge-msg.c:89:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (given && !oideq(&table->item[i].given, given))
                                                                  ^
                                                                   {
/datasets/git/fmt-merge-msg.c:91:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (commit && !oideq(&table->item[i].commit, commit))
                                                                     ^
                                                                      {
/datasets/git/fmt-merge-msg.c:102:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (table->nr && find_merge_parent(table, given, commit))
                                                                 ^
                                                                  {
/datasets/git/fmt-merge-msg.c:104:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(table->item, table->nr + 1, table->alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/fmt-merge-msg.c:113:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, len = strlen(line);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/fmt-merge-msg.c:113:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, len = strlen(line);
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/fmt-merge-msg.c:113:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/fmt-merge-msg.c:113:15: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int i, len = strlen(line);
                     ^
/datasets/git/fmt-merge-msg.c:114:22: warning: variable 'origin_data' is not initialized [cppcoreguidelines-init-variables]
        struct origin_data *origin_data;
                            ^
                                        = NULL
/datasets/git/fmt-merge-msg.c:115:8: warning: variable 'src' is not initialized [cppcoreguidelines-init-variables]
        char *src;
              ^
                  = NULL
/datasets/git/fmt-merge-msg.c:116:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *origin, *tag_name;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/fmt-merge-msg.c:116:14: warning: variable 'origin' is not initialized [cppcoreguidelines-init-variables]
        const char *origin, *tag_name;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/fmt-merge-msg.c:116:23: warning: variable 'tag_name' is not initialized [cppcoreguidelines-init-variables]
        const char *origin, *tag_name;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/fmt-merge-msg.c:118:19: warning: variable 'src_data' is not initialized [cppcoreguidelines-init-variables]
        struct src_data *src_data;
                         ^
                                  = NULL
/datasets/git/fmt-merge-msg.c:119:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/fmt-merge-msg.c:124:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len < hexsz + 3 || line[hexsz] != '\t')
                                                   ^
                                                    {
/datasets/git/fmt-merge-msg.c:127:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (starts_with(line + hexsz + 1, "not-for-merge"))
                                                           ^
                                                            {
/datasets/git/fmt-merge-msg.c:130:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (line[hexsz + 1] != '\t')
                                    ^
                                     {
/datasets/git/fmt-merge-msg.c:134:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (i)
              ^
               {
/datasets/git/fmt-merge-msg.c:137:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!find_merge_parent(merge_parents, &oid, NULL))
                                                          ^
                                                           {
/datasets/git/fmt-merge-msg.c:143:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (line[len - 1] == '\n')
                                  ^
                                   {
/datasets/git/fmt-merge-msg.c:172:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                src_data->head_status |= 1;
                ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/fmt-merge-msg.c:176:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                src_data->head_status |= 2;
                ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/fmt-merge-msg.c:180:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                src_data->head_status |= 2;
                ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/fmt-merge-msg.c:183:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                src_data->head_status |= 2;
                ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/fmt-merge-msg.c:187:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                src_data->head_status |= 2;
                ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/fmt-merge-msg.c:191:13: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int len = strlen(origin);
                          ^
/datasets/git/fmt-merge-msg.c:192:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (origin[0] == '\'' && origin[len - 1] == '\'')
                                                                 ^
                                                                  {
/datasets/git/fmt-merge-msg.c:194:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/fmt-merge-msg.c:196:6: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (strcmp(".", src))
            ^
                             != 0
/datasets/git/fmt-merge-msg.c:196:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strcmp(".", src))
                             ^
                              {
/datasets/git/fmt-merge-msg.c:203:26: warning: 2 adjacent parameters of 'print_joined' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void print_joined(const char *singular, const char *plural,
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/fmt-merge-msg.c:203:38: note: the first parameter in the range is 'singular'
static void print_joined(const char *singular, const char *plural,
                                     ^~~~~~~~
/datasets/git/fmt-merge-msg.c:203:60: note: the last parameter in the range is 'plural'
static void print_joined(const char *singular, const char *plural,
                                                           ^~~~~~
/datasets/git/fmt-merge-msg.c:206:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (list->nr == 0)
                          ^
                           {
/datasets/git/fmt-merge-msg.c:211:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/fmt-merge-msg.c:211:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/fmt-merge-msg.c:225:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                const char *bp = desc.buf;
                ^
/datasets/git/fmt-merge-msg.c:213:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < list->nr - 1; i++)
                ^
/datasets/git/fmt-merge-msg.c:213:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < list->nr - 1; i++)
                                                  ^
                                                   {
/datasets/git/fmt-merge-msg.c:225:15: warning: variable name 'bp' is too short, expected at least 3 characters [readability-identifier-length]
                const char *bp = desc.buf;
                            ^
/datasets/git/fmt-merge-msg.c:226:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (*bp) {
                ^
/datasets/git/fmt-merge-msg.c:226:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'bp' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (*bp) {
                       ^
/datasets/git/fmt-merge-msg.c:227:16: warning: variable name 'ep' is too short, expected at least 3 characters [readability-identifier-length]
                        const char *ep = strchrnul(bp, '\n');
                                    ^
/datasets/git/fmt-merge-msg.c:228:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (*ep)
                                ^
                                 {
/datasets/git/fmt-merge-msg.c:243:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *name_buf, *name, *name_end;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/fmt-merge-msg.c:243:8: warning: variable 'name_buf' is not initialized [cppcoreguidelines-init-variables]
        char *name_buf, *name, *name_end;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/fmt-merge-msg.c:243:19: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
        char *name_buf, *name, *name_end;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/fmt-merge-msg.c:243:26: warning: variable 'name_end' is not initialized [cppcoreguidelines-init-variables]
        char *name_buf, *name, *name_end;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/fmt-merge-msg.c:244:27: warning: variable 'elem' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *elem;
                                 ^
                                      = NULL
/datasets/git/fmt-merge-msg.c:245:14: warning: variable 'field' is not initialized [cppcoreguidelines-init-variables]
        const char *field;
                    ^
                          = NULL
/datasets/git/fmt-merge-msg.c:249:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!name)
                  ^
                   {
/datasets/git/fmt-merge-msg.c:253:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*name_end)
                      ^
                       {
/datasets/git/fmt-merge-msg.c:255:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (isspace(*name_end) && name <= name_end)
        ^
/datasets/git/fmt-merge-msg.c:255:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'name_end' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (isspace(*name_end) && name <= name_end)
               ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^
/datasets/git/./git-compat-util.h:1215:29: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                            ^
/datasets/git/fmt-merge-msg.c:255:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        while (isspace(*name_end) && name <= name_end)
               ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/fmt-merge-msg.c:255:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (isspace(*name_end) && name <= name_end)
                                                      ^
                                                       {
/datasets/git/fmt-merge-msg.c:257:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (name_end < name)
                            ^
                             {
/datasets/git/fmt-merge-msg.c:266:15: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
        elem->util = (void*)(util_as_integral(elem) + 1);
                     ^
/datasets/git/fmt-merge-msg.c:279:57: warning: parameter name 'a_' is too short, expected at least 3 characters [readability-identifier-length]
static int cmp_string_list_util_as_integral(const void *a_, const void *b_)
                                                        ^
/datasets/git/fmt-merge-msg.c:279:73: warning: parameter name 'b_' is too short, expected at least 3 characters [readability-identifier-length]
static int cmp_string_list_util_as_integral(const void *a_, const void *b_)
                                                                        ^
/datasets/git/fmt-merge-msg.c:281:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const struct string_list_item *a = a_, *b = b_;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/fmt-merge-msg.c:281:33: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        const struct string_list_item *a = a_, *b = b_;
                                       ^
/datasets/git/fmt-merge-msg.c:281:42: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        const struct string_list_item *a = a_, *b = b_;
                                                ^
/datasets/git/fmt-merge-msg.c:287:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (people->nr == 1)
                            ^
                             {
/datasets/git/fmt-merge-msg.c:289:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (people->nr == 2)
                                 ^
                                  {
/datasets/git/fmt-merge-msg.c:295:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (people->nr)
                            ^
                             {
/datasets/git/fmt-merge-msg.c:305:14: warning: variable 'label' is not initialized [cppcoreguidelines-init-variables]
        const char *label;
                    ^
                          = NULL
/datasets/git/fmt-merge-msg.c:306:14: warning: variable 'me' is not initialized [cppcoreguidelines-init-variables]
        const char *me;
                    ^
                       = NULL
/datasets/git/fmt-merge-msg.c:306:14: warning: variable name 'me' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/fmt-merge-msg.c:320:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
             starts_with(me, " <")))
                                    ^
                                     {
/datasets/git/fmt-merge-msg.c:339:13: warning: function 'shortlog' has cognitive complexity of 29 (threshold 25) [readability-function-cognitive-complexity]
static void shortlog(const char *name,
            ^
/datasets/git/fmt-merge-msg.c:360:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!branch || branch->type != OBJ_COMMIT)
        ^
/datasets/git/fmt-merge-msg.c:360:14: note: +1
        if (!branch || branch->type != OBJ_COMMIT)
                    ^
/datasets/git/fmt-merge-msg.c:367:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (prepare_revision_walk(rev))
        ^
/datasets/git/fmt-merge-msg.c:369:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while ((commit = get_revision(rev)) != NULL) {
        ^
/datasets/git/fmt-merge-msg.c:372:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (commit->parents && commit->parents->next) {
                ^
/datasets/git/fmt-merge-msg.c:372:23: note: +1
                if (commit->parents && commit->parents->next) {
                                    ^
/datasets/git/fmt-merge-msg.c:374:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (opts->credit_people)
                        ^
/datasets/git/fmt-merge-msg.c:378:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!count && opts->credit_people)
                ^
/datasets/git/fmt-merge-msg.c:378:14: note: +1
                if (!count && opts->credit_people)
                           ^
/datasets/git/fmt-merge-msg.c:381:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opts->credit_people)
                ^
/datasets/git/fmt-merge-msg.c:384:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (subjects.nr > limit)
                ^
/datasets/git/fmt-merge-msg.c:390:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!sb.len)
                ^
/datasets/git/fmt-merge-msg.c:393:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/fmt-merge-msg.c:398:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->credit_people)
        ^
/datasets/git/fmt-merge-msg.c:400:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (count > limit)
        ^
/datasets/git/fmt-merge-msg.c:402:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/fmt-merge-msg.c:405:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (origin_data->is_local_branch && use_branch_desc)
        ^
/datasets/git/fmt-merge-msg.c:405:35: note: +1
        if (origin_data->is_local_branch && use_branch_desc)
                                         ^
/datasets/git/fmt-merge-msg.c:408:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < subjects.nr; i++)
        ^
/datasets/git/fmt-merge-msg.c:409:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (i >= limit)
                ^
/datasets/git/fmt-merge-msg.c:411:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/fmt-merge-msg.c:346:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, count = 0;
        ^~~~~~~~~~~~~~~~~
/datasets/git/fmt-merge-msg.c:346:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, count = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/fmt-merge-msg.c:346:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/fmt-merge-msg.c:347:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/fmt-merge-msg.c:348:17: warning: variable 'branch' is not initialized [cppcoreguidelines-init-variables]
        struct object *branch;
                       ^
                              = NULL
/datasets/git/fmt-merge-msg.c:352:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int flags = UNINTERESTING | TREESAME | SEEN | SHOWN | ADDED;
                    ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/fmt-merge-msg.c:352:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int flags = UNINTERESTING | TREESAME | SEEN | SHOWN | ADDED;
                                    ^
/datasets/git/./revision.h:29:19: note: expanded from macro 'TREESAME'
#define TREESAME        (1u<<2)
                         ^   ~
/datasets/git/fmt-merge-msg.c:352:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int flags = UNINTERESTING | TREESAME | SEEN | SHOWN | ADDED;
                                               ^
/datasets/git/./revision.h:27:16: note: expanded from macro 'SEEN'
#define SEEN            (1u<<0)
                         ^   ~
/datasets/git/fmt-merge-msg.c:352:48: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int flags = UNINTERESTING | TREESAME | SEEN | SHOWN | ADDED;
                                                      ^
/datasets/git/./revision.h:30:17: note: expanded from macro 'SHOWN'
#define SHOWN           (1u<<3)
                         ^   ~
/datasets/git/fmt-merge-msg.c:352:56: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int flags = UNINTERESTING | TREESAME | SEEN | SHOWN | ADDED;
                                                              ^
/datasets/git/./revision.h:34:17: note: expanded from macro 'ADDED'
#define ADDED           (1u<<7) /* Parents already parsed and added? */
                         ^   ~
/datasets/git/fmt-merge-msg.c:353:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/fmt-merge-msg.c:360:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!branch || branch->type != OBJ_COMMIT)
                                                  ^
                                                   {
/datasets/git/fmt-merge-msg.c:366:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        head->object.flags |= UNINTERESTING;
                              ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/fmt-merge-msg.c:367:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prepare_revision_walk(rev))
                                       ^
                                        {
/datasets/git/fmt-merge-msg.c:369:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((commit = get_revision(rev)) != NULL) {
        ^
/datasets/git/fmt-merge-msg.c:369:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'commit' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((commit = get_revision(rev)) != NULL) {
               ^
/datasets/git/fmt-merge-msg.c:374:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (opts->credit_people)
                                                ^
                                                 {
/datasets/git/fmt-merge-msg.c:378:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!count && opts->credit_people)
                                                  ^
                                                   {
/datasets/git/fmt-merge-msg.c:381:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opts->credit_people)
                                        ^
                                         {
/datasets/git/fmt-merge-msg.c:384:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (subjects.nr > limit)
                                        ^
                                         {
/datasets/git/fmt-merge-msg.c:390:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!sb.len)
                            ^
                             {
/datasets/git/fmt-merge-msg.c:393:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/fmt-merge-msg.c:398:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->credit_people)
                                ^
                                 {
/datasets/git/fmt-merge-msg.c:400:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (count > limit)
                          ^
                           {
/datasets/git/fmt-merge-msg.c:402:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/fmt-merge-msg.c:405:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (origin_data->is_local_branch && use_branch_desc)
                                                            ^
                                                             {
/datasets/git/fmt-merge-msg.c:408:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < subjects.nr; i++)
        ^
/datasets/git/fmt-merge-msg.c:408:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < subjects.nr; i++)
                                         ^
                                          {
/datasets/git/fmt-merge-msg.c:409:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (i >= limit)
                               ^
                                {
/datasets/git/fmt-merge-msg.c:411:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/fmt-merge-msg.c:434:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/fmt-merge-msg.c:436:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(item, &suppress_dest_patterns) {
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/fmt-merge-msg.c:436:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(item, &suppress_dest_patterns) {
                                  ^
/datasets/git/fmt-merge-msg.c:437:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!wildmatch(item->string, dest_branch, WM_PATHNAME))
                                                                       ^
                                                                        {
/datasets/git/fmt-merge-msg.c:446:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0;
            ^
/datasets/git/fmt-merge-msg.c:450:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < srcs.nr; i++) {
        ^
/datasets/git/fmt-merge-msg.c:487:7: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (strcmp(".", srcs.items[i].string))
                    ^
                                                      != 0
/datasets/git/fmt-merge-msg.c:487:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strcmp(".", srcs.items[i].string))
                                                      ^
                                                       {
/datasets/git/fmt-merge-msg.c:491:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!dest_suppressed(current_branch))
                                             ^
                                              {
/datasets/git/fmt-merge-msg.c:515:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, tag_number = 0, first_tag = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/fmt-merge-msg.c:515:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, tag_number = 0, first_tag = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/fmt-merge-msg.c:515:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/fmt-merge-msg.c:518:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < origins.nr; i++) {
        ^
/datasets/git/fmt-merge-msg.c:520:20: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
                enum object_type type;
                                 ^
/datasets/git/fmt-merge-msg.c:521:17: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
                unsigned long size;
                              ^
                                   = 0
/datasets/git/fmt-merge-msg.c:526:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                struct strbuf payload = STRBUF_INIT, sig = STRBUF_INIT;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/fmt-merge-msg.c:528:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!buf || type != OBJ_TAG)
                                            ^
                                             {
/datasets/git/fmt-merge-msg.c:531:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!parse_signature(buf, size, &payload, &sig))
                                                                ^
                                                                 {
/datasets/git/fmt-merge-msg.c:539:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            !sigc.output)
                                         ^
                                          {
/datasets/git/fmt-merge-msg.c:541:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/fmt-merge-msg.c:579:26: warning: parameter name 'in' is too short, expected at least 3 characters [readability-identifier-length]
                               struct strbuf *in, struct object_id *head)
                                              ^
/datasets/git/fmt-merge-msg.c:581:22: warning: variable 'parents' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *parents;
                            ^
                                    = NULL
/datasets/git/fmt-merge-msg.c:582:17: warning: variable 'head_commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *head_commit;
                       ^
                                   = NULL
/datasets/git/fmt-merge-msg.c:583:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int pos = 0, i, j;
        ^~~~~~~~~~~~~~~~~~
/datasets/git/fmt-merge-msg.c:583:2: note: inferred assignment of ID-dependent value from ID-dependent variable len [altera-id-dependent-backward-branch]
/datasets/git/fmt-merge-msg.c:583:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int pos = 0, i, j;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/fmt-merge-msg.c:583:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/fmt-merge-msg.c:583:18: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int pos = 0, i, j;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/fmt-merge-msg.c:583:18: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/fmt-merge-msg.c:586:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (pos < in->len) {
        ^
/datasets/git/fmt-merge-msg.c:586:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'pos' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (pos < in->len) {
               ^
/datasets/git/fmt-merge-msg.c:587:7: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
                int len;
                    ^
                        = 0
/datasets/git/fmt-merge-msg.c:588:9: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                char *p = in->buf + pos;
                      ^
/datasets/git/fmt-merge-msg.c:590:15: warning: variable 'q' is not initialized [cppcoreguidelines-init-variables]
                const char *q;
                            ^
                              = NULL
/datasets/git/fmt-merge-msg.c:590:15: warning: variable name 'q' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/fmt-merge-msg.c:592:18: warning: variable 'parent' is not initialized [cppcoreguidelines-init-variables]
                struct commit *parent;
                               ^
                                      = NULL
/datasets/git/fmt-merge-msg.c:593:18: warning: variable 'obj' is not initialized [cppcoreguidelines-init-variables]
                struct object *obj;
                               ^
                                   = NULL
/datasets/git/fmt-merge-msg.c:595:19: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                len = newline ? newline - p : strlen(p);
                                ^
/datasets/git/fmt-merge-msg.c:595:33: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                len = newline ? newline - p : strlen(p);
                                              ^
/datasets/git/fmt-merge-msg.c:600:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    q[1] != '\t')
                                 ^
                                  {
/datasets/git/fmt-merge-msg.c:609:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!parent)
                            ^
                             {
/datasets/git/fmt-merge-msg.c:615:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (head_commit)
                        ^
                         {
/datasets/git/fmt-merge-msg.c:621:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < result->nr; i++)
                ^
/datasets/git/fmt-merge-msg.c:621:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < result->nr; i++)
                            ^
/datasets/git/fmt-merge-msg.c:621:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < result->nr; i++)
                                                ^
                                                 {
/datasets/git/fmt-merge-msg.c:622:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (oideq(&result->item[i].commit, &cmit->object.oid))
                                                                              ^
                                                                               {
/datasets/git/fmt-merge-msg.c:626:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = j = 0; i < result->nr; i++) {
        ^
/datasets/git/fmt-merge-msg.c:626:18: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = j = 0; i < result->nr; i++) {
                        ^
/datasets/git/fmt-merge-msg.c:628:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (i != j)
                                   ^
                                    {
/datasets/git/fmt-merge-msg.c:637:19: warning: 2 adjacent parameters of 'fmt_merge_msg' of similar type ('struct strbuf *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
int fmt_merge_msg(struct strbuf *in, struct strbuf *out,
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/fmt-merge-msg.c:637:34: note: the first parameter in the range is 'in'
int fmt_merge_msg(struct strbuf *in, struct strbuf *out,
                                 ^~
/datasets/git/fmt-merge-msg.c:637:53: note: the last parameter in the range is 'out'
int fmt_merge_msg(struct strbuf *in, struct strbuf *out,
                                                    ^~~
/datasets/git/fmt-merge-msg.c:637:34: warning: parameter name 'in' is too short, expected at least 3 characters [readability-identifier-length]
int fmt_merge_msg(struct strbuf *in, struct strbuf *out,
                                 ^
/datasets/git/fmt-merge-msg.c:640:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i = 0, pos = 0;
        ^~~~~~~~~~~~~~~~~~~
/datasets/git/fmt-merge-msg.c:640:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0, pos = 0;
            ^
/datasets/git/fmt-merge-msg.c:642:14: warning: variable 'current_branch' is not initialized [cppcoreguidelines-init-variables]
        const char *current_branch;
                    ^
                                   = NULL
/datasets/git/fmt-merge-msg.c:643:8: warning: variable 'current_branch_to_free' is not initialized [cppcoreguidelines-init-variables]
        void *current_branch_to_free;
              ^
                                     = NULL
/datasets/git/fmt-merge-msg.c:651:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&merge_parents, 0, sizeof(merge_parents));
        ^~~~~~
/datasets/git/fmt-merge-msg.c:651:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&merge_parents, 0, sizeof(merge_parents));
        ^~~~~~
/datasets/git/fmt-merge-msg.c:656:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!current_branch)
                            ^
                             {
/datasets/git/fmt-merge-msg.c:659:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->into_name)
                            ^
                             {
/datasets/git/fmt-merge-msg.c:661:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (starts_with(current_branch, "refs/heads/"))
                                                            ^
                                                             {
/datasets/git/fmt-merge-msg.c:662:21: warning: 11 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                current_branch += 11;
                                  ^
/datasets/git/fmt-merge-msg.c:667:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (pos < in->len) {
        ^
/datasets/git/fmt-merge-msg.c:667:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'pos' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (pos < in->len) {
               ^
/datasets/git/fmt-merge-msg.c:668:7: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
                int len;
                    ^
                        = 0
/datasets/git/fmt-merge-msg.c:669:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                char *newline, *p = in->buf + pos;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/fmt-merge-msg.c:669:9: warning: variable 'newline' is not initialized [cppcoreguidelines-init-variables]
                char *newline, *p = in->buf + pos;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/fmt-merge-msg.c:669:19: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                char *newline, *p = in->buf + pos;
                                ^
/datasets/git/fmt-merge-msg.c:672:19: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                len = newline ? newline - p : strlen(p);
                                ^
/datasets/git/fmt-merge-msg.c:672:33: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                len = newline ? newline - p : strlen(p);
                                              ^
/datasets/git/fmt-merge-msg.c:676:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (handle_line(p, &merge_parents))
                                                   ^
                                                    {
/datasets/git/fmt-merge-msg.c:680:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->add_title && srcs.nr)
                                       ^
                                        {
/datasets/git/fmt-merge-msg.c:683:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (origins.nr)
                       ^
                        {
/datasets/git/fmt-merge-msg.c:687:18: warning: variable 'head' is not initialized [cppcoreguidelines-init-variables]
                struct commit *head;
                               ^
                                    = NULL
/datasets/git/fmt-merge-msg.c:698:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < origins.nr; i++)
                ^
/datasets/git/fmt-merge-msg.c:698:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < origins.nr; i++)
                                                ^
                                                 {
/datasets/git/fsck.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "object-store.h"
^        ~~~~~~~~~~~~~~~~
         "blob.h"
/datasets/git/fsck.c:24:8: warning: accessing fields in struct '' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
static struct {
       ^
/datasets/git/fsck.c:24:8: note: use "__attribute__((aligned(32)))" to align struct '' to 32 bytes
/datasets/git/fsck.c:29:3: warning: variable 'msg_id_info' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} msg_id_info[FSCK_MSG_MAX + 1] = {
  ^
/datasets/git/fsck.c:38:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/fsck.c:38:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/fsck.c:40:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (msg_id_info[0].downcased)
                                     ^
                                      {
/datasets/git/fsck.c:45:15: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                const char *p = msg_id_info[i].id_string;
                            ^
/datasets/git/fsck.c:46:13: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int len = strlen(p);
                          ^
/datasets/git/fsck.c:47:9: warning: variable name 'q' is too short, expected at least 3 characters [readability-identifier-length]
                char *q = xmalloc(len);
                      ^
/datasets/git/fsck.c:50:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (*p)
                ^
/datasets/git/fsck.c:45:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                const char *p = msg_id_info[i].id_string;
                ^
/datasets/git/fsck.c:50:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (*p)
                       ^
/datasets/git/fsck.c:50:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (*p)
                          ^
                           {
/datasets/git/fsck.c:51:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (*p == '_')
                                      ^
                                       {
/datasets/git/fsck.c:53:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/fsck.c:60:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (*p) {
                ^
/datasets/git/fsck.c:60:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (*p) {
                       ^
/datasets/git/fsck.c:63:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (*p)
                                       ^
                                        {
/datasets/git/fsck.c:75:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/fsck.c:75:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/fsck.c:79:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < FSCK_MSG_MAX; i++)
        ^
/datasets/git/fsck.c:79:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < FSCK_MSG_MAX; i++)
                                          ^
                                           {
/datasets/git/fsck.c:80:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(text, msg_id_info[i].downcased))
                                                            ^
                                                             {
/datasets/git/fsck.c:88:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/fsck.c:88:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/fsck.c:92:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < FSCK_MSG_MAX; i++)
        ^
/datasets/git/fsck.c:92:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < FSCK_MSG_MAX; i++)
                                          ^
                                           {
/datasets/git/fsck.c:104:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (options->strict && msg_type == FSCK_WARN)
                                                             ^
                                                              {
/datasets/git/fsck.c:114:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(str, "error"))
                                  ^
                                   {
/datasets/git/fsck.c:116:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (!strcmp(str, "warn"))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/fsck.c:116:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(str, "warn"))
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/fsck.c:118:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(str, "ignore"))
                                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/fsck.c:120:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/fsck.c:124:23: warning: 2 adjacent parameters of 'is_valid_msg_type' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
int is_valid_msg_type(const char *msg_id, const char *msg_type)
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/fsck.c:124:35: note: the first parameter in the range is 'msg_id'
int is_valid_msg_type(const char *msg_id, const char *msg_type)
                                  ^~~~~~
/datasets/git/fsck.c:124:55: note: the last parameter in the range is 'msg_type'
int is_valid_msg_type(const char *msg_id, const char *msg_type)
                                                      ^~~~~~~~
/datasets/git/fsck.c:126:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_msg_id(msg_id) < 0)
                                     ^
                                      {
/datasets/git/fsck.c:137:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/fsck.c:137:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/fsck.c:138:23: warning: variable 'severity' is not initialized [cppcoreguidelines-init-variables]
                enum fsck_msg_type *severity;
                                    ^
                                             = NULL
/datasets/git/fsck.c:140:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < FSCK_MSG_MAX; i++)
                ^
/datasets/git/fsck.c:140:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < FSCK_MSG_MAX; i++)
                                                  ^
                                                   {
/datasets/git/fsck.c:154:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (msg_id < 0)
                       ^
                        {
/datasets/git/fsck.c:157:75: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (msg_type != FSCK_ERROR && msg_id_info[msg_id].msg_type == FSCK_FATAL)
                                                                                 ^
                                                                                  {
/datasets/git/fsck.c:165:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *buf = xstrdup(values), *to_free = buf;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/fsck.c:166:2: note: inferred assignment of ID-dependent value from ID-dependent variable buf [altera-id-dependent-backward-branch]
        int done = 0;
        ^
/datasets/git/fsck.c:168:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'done' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (!done) {
               ^
/datasets/git/fsck.c:169:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int len = strcspn(buf, " ,|"), equal;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/fsck.c:169:13: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int len = strcspn(buf, " ,|"), equal;
                          ^
/datasets/git/fsck.c:169:34: warning: variable 'equal' is not initialized [cppcoreguidelines-init-variables]
                int len = strcspn(buf, " ,|"), equal;
                                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/fsck.c:178:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (equal = 0;
                ^
/datasets/git/fsck.c:179:8: warning: backward branch (for loop) is ID-dependent due to variable reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
                     equal < len && buf[equal] != '=' && buf[equal] != ':';
                     ^
/datasets/git/fsck.c:180:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                     equal++)
                             ^
                              {
/datasets/git/fsck.c:185:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (equal == len)
                                         ^
                                          {
/datasets/git/fsck.c:192:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (equal == len)
                                 ^
                                  {
/datasets/git/fsck.c:212:10: warning: variable name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
        va_list ap;
                ^
/datasets/git/fsck.c:213:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/fsck.c:215:6: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        int result;
            ^
                   = 0
/datasets/git/fsck.c:217:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (msg_type == FSCK_IGNORE)
                                    ^
                                     {
/datasets/git/fsck.c:220:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (object_on_skiplist(options, oid))
                                             ^
                                              {
/datasets/git/fsck.c:223:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (msg_type == FSCK_FATAL)
                                   ^
                                    {
/datasets/git/fsck.c:225:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (msg_type == FSCK_INFO)
                                       ^
                                        {
/datasets/git/fsck.c:243:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!options->object_names)
                                   ^
                                    {
/datasets/git/fsck.c:250:11: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        khiter_t pos;
                 ^
                     = 0
/datasets/git/fsck.c:251:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!options->object_names)
                                   ^
                                    {
/datasets/git/fsck.c:254:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pos >= kh_end(options->object_names))
                                                 ^
                                                  {
/datasets/git/fsck.c:263:10: warning: variable name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
        va_list ap;
                ^
/datasets/git/fsck.c:265:11: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        khiter_t pos;
                 ^
                     = 0
/datasets/git/fsck.c:266:6: warning: variable 'hashret' is not initialized [cppcoreguidelines-init-variables]
        int hashret;
            ^
                    = 0
/datasets/git/fsck.c:268:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!options->object_names)
                                   ^
                                    {
/datasets/git/fsck.c:272:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!hashret)
                     ^
                      {
/datasets/git/fsck.c:286:13: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        static int b = 0;
                   ^
/datasets/git/fsck.c:287:17: warning: variable 'buf' is not initialized [cppcoreguidelines-init-variables]
        struct strbuf *buf;
                       ^
                           = NULL
/datasets/git/fsck.c:291:6: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        b = (b + 1) % ARRAY_SIZE(bufs);
            ^
/datasets/git/fsck.c:294:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (name)
                 ^
                  {
/datasets/git/fsck.c:305:14: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
        const char *name;
                    ^
                         = NULL
/datasets/git/fsck.c:307:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_tree(tree))
                             ^
                              {
/datasets/git/fsck.c:311:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (init_tree_desc_gently(&desc, tree->buffer, tree->size, 0))
                                                                      ^
                                                                       {
/datasets/git/fsck.c:313:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (tree_entry_gently(&desc, &entry)) {
        ^
/datasets/git/fsck.c:314:18: warning: variable 'obj' is not initialized [cppcoreguidelines-init-variables]
                struct object *obj;
                               ^
                                   = NULL
/datasets/git/fsck.c:315:7: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
                int result;
                    ^
                           = 0
/datasets/git/fsck.c:317:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (S_ISGITLINK(entry.mode))
                    ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/fsck.c:317:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (S_ISGITLINK(entry.mode))
                                            ^
                                             {
/datasets/git/fsck.c:322:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (name && obj)
                                        ^
                                         {
/datasets/git/fsck.c:329:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (name && obj)
                                        ^
                                         {
/datasets/git/fsck.c:339:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (result < 0)
                               ^
                                {
/datasets/git/fsck.c:341:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!res)
                         ^
                          {
/datasets/git/fsck.c:347:12: warning: function 'fsck_walk_commit' has cognitive complexity of 30 (threshold 25) [readability-function-cognitive-complexity]
static int fsck_walk_commit(struct commit *commit, void *data, struct fsck_options *options)
           ^
/datasets/git/fsck.c:355:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (parse_commit(commit))
        ^
/datasets/git/fsck.c:359:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (name)
        ^
/datasets/git/fsck.c:365:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (result < 0)
        ^
/datasets/git/fsck.c:370:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (name && parents) {
        ^
/datasets/git/fsck.c:370:11: note: +1
        if (name && parents) {
                 ^
/datasets/git/fsck.c:373:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (len && name[len - 1] == '^') {
                ^
/datasets/git/fsck.c:373:11: note: +1
                if (len && name[len - 1] == '^') {
                        ^
/datasets/git/fsck.c:377:3: note: +1, nesting level increased to 2
                else { /* parse ~<generation> suffix */
                ^
/datasets/git/fsck.c:378:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (generation = 0, power = 1;
                        ^
/datasets/git/fsck.c:379:13: note: +1
                             len && isdigit(name[len - 1]);
                                 ^
/datasets/git/fsck.c:382:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (power > 1 && len && name[len - 1] == '~')
                        ^
/datasets/git/fsck.c:382:25: note: +1
                        if (power > 1 && len && name[len - 1] == '~')
                                             ^
/datasets/git/fsck.c:384:4: note: +1, nesting level increased to 3
                        else {
                        ^
/datasets/git/fsck.c:392:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (parents) {
        ^
/datasets/git/fsck.c:393:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (name) {
                ^
/datasets/git/fsck.c:396:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (counter++)
                        ^
/datasets/git/fsck.c:399:9: note: +1, nesting level increased to 3
                        else if (generation > 0)
                             ^
/datasets/git/fsck.c:403:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/fsck.c:407:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (result < 0)
                ^
/datasets/git/fsck.c:409:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!res)
                ^
/datasets/git/fsck.c:349:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int counter = 0, generation = 0, name_prefix_len = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/fsck.c:350:22: warning: variable 'parents' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *parents;
                            ^
                                    = NULL
/datasets/git/fsck.c:351:6: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        int res;
            ^
                = 0
/datasets/git/fsck.c:352:6: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        int result;
            ^
                   = 0
/datasets/git/fsck.c:353:14: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
        const char *name;
                    ^
                         = NULL
/datasets/git/fsck.c:355:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_commit(commit))
                                 ^
                                  {
/datasets/git/fsck.c:359:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (name)
                 ^
                  {
/datasets/git/fsck.c:365:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (result < 0)
                       ^
                        {
/datasets/git/fsck.c:371:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int len = strlen(name), power;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/fsck.c:371:13: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int len = strlen(name), power;
                          ^
/datasets/git/fsck.c:371:27: warning: variable 'power' is not initialized [cppcoreguidelines-init-variables]
                int len = strlen(name), power;
                                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/fsck.c:378:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (generation = 0, power = 1;
                        ^
/datasets/git/fsck.c:379:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
                             len && isdigit(name[len - 1]);
                             ^
/datasets/git/fsck.c:379:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                             len && isdigit(name[len - 1]);
                                    ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/fsck.c:380:18: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                             power *= 10)
                                      ^
/datasets/git/fsck.c:380:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                             power *= 10)
                                         ^
                                          {
/datasets/git/fsck.c:382:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (power > 1 && len && name[len - 1] == '~')
                                                                     ^
                                                                      {
/datasets/git/fsck.c:392:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (parents) {
        ^
/datasets/git/fsck.c:392:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'parents' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (parents) {
               ^
/datasets/git/fsck.c:396:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (counter++)
                                      ^
                                       {
/datasets/git/fsck.c:399:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (generation > 0)
                                                ^
                                                 {
/datasets/git/fsck.c:403:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/fsck.c:407:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (result < 0)
                               ^
                                {
/datasets/git/fsck.c:409:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!res)
                         ^
                          {
/datasets/git/fsck.c:420:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_tag(tag))
                           ^
                            {
/datasets/git/fsck.c:422:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (name)
                 ^
                  {
/datasets/git/fsck.c:429:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!obj)
                 ^
                  {
/datasets/git/fsck.c:432:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (obj->type == OBJ_NONE)
                                  ^
                                   {
/datasets/git/fsck.c:451:8: warning: accessing fields in struct 'name_stack' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct name_stack {
       ^
/datasets/git/fsck.c:451:8: note: use "__attribute__((aligned(32)))" to align struct 'name_stack' to 32 bytes
/datasets/git/fsck.c:458:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(stack->names, stack->nr + 1, stack->alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/fsck.c:469:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(stack->names);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/fsck.c:481:1: warning: replace macro with enum [modernize-macro-to-enum]
#define TREE_UNORDERED (-1)
^~~~~~~~
                       =   ,
/datasets/git/fsck.c:481:9: warning: macro 'TREE_UNORDERED' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define TREE_UNORDERED (-1)
        ^
/datasets/git/fsck.c:482:9: warning: macro 'TREE_HAS_DUPS' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define TREE_HAS_DUPS  (-2)
        ^
/datasets/git/fsck.c:484:45: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static int is_less_than_slash(unsigned char c)
                                            ^
/datasets/git/fsck.c:489:12: warning: function 'verify_ordered' has cognitive complexity of 28 (threshold 25) [readability-function-cognitive-complexity]
static int verify_ordered(unsigned mode1, const char *name1,
           ^
/datasets/git/fsck.c:495:24: note: +1, including nesting penalty of 0, nesting level increased to 1
        int len = len1 < len2 ? len1 : len2;
                              ^
/datasets/git/fsck.c:500:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (cmp < 0)
        ^
/datasets/git/fsck.c:502:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (cmp > 0)
        ^
/datasets/git/fsck.c:512:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!c1 && !c2)
        ^
/datasets/git/fsck.c:512:10: note: +1
        if (!c1 && !c2)
                ^
/datasets/git/fsck.c:519:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!c1 && S_ISDIR(mode1))
        ^
/datasets/git/fsck.c:519:10: note: +1
        if (!c1 && S_ISDIR(mode1))
                ^
/datasets/git/fsck.c:521:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!c2 && S_ISDIR(mode2))
        ^
/datasets/git/fsck.c:521:10: note: +1
        if (!c2 && S_ISDIR(mode2))
                ^
/datasets/git/fsck.c:538:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!c1 && is_less_than_slash(c2)) {
        ^
/datasets/git/fsck.c:538:10: note: +1
        if (!c1 && is_less_than_slash(c2)) {
                ^
/datasets/git/fsck.c:540:9: note: +1, nesting level increased to 1
        } else if (c2 == '/' && is_less_than_slash(c1)) {
               ^
/datasets/git/fsck.c:540:23: note: +1
        } else if (c2 == '/' && is_less_than_slash(c1)) {
                             ^
/datasets/git/fsck.c:541:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (;;) {
                ^
/datasets/git/fsck.c:545:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!f_name)
                        ^
/datasets/git/fsck.c:547:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!skip_prefix(name2, f_name, &p))
                        ^
/datasets/git/fsck.c:549:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!*p)
                        ^
/datasets/git/fsck.c:551:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (is_less_than_slash(*p)) {
                        ^
/datasets/git/fsck.c:558:17: note: +1, including nesting penalty of 0, nesting level increased to 1
        return c1 < c2 ? 0 : TREE_UNORDERED;
                       ^
/datasets/git/fsck.c:493:13: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int len1 = strlen(name1);
                   ^
/datasets/git/fsck.c:494:13: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int len2 = strlen(name2);
                   ^
/datasets/git/fsck.c:496:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned char c1, c2;
        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/fsck.c:496:16: warning: variable 'c1' is not initialized [cppcoreguidelines-init-variables]
        unsigned char c1, c2;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/fsck.c:496:16: warning: variable name 'c1' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/fsck.c:496:20: warning: variable 'c2' is not initialized [cppcoreguidelines-init-variables]
        unsigned char c1, c2;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/fsck.c:496:20: warning: variable name 'c2' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/fsck.c:497:6: warning: variable 'cmp' is not initialized [cppcoreguidelines-init-variables]
        int cmp;
            ^
                = 0
/datasets/git/fsck.c:500:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cmp < 0)
                    ^
                     {
/datasets/git/fsck.c:502:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cmp > 0)
                    ^
                     {
/datasets/git/fsck.c:512:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!c1 && !c2)
                       ^
                        {
/datasets/git/fsck.c:519:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!c1 && S_ISDIR(mode1))
                                  ^
                                   {
/datasets/git/fsck.c:521:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!c2 && S_ISDIR(mode2))
                                  ^
                                   {
/datasets/git/fsck.c:541:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (;;) {
                ^
/datasets/git/fsck.c:542:16: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                        const char *p;
                                    ^
                                      = NULL
/datasets/git/fsck.c:542:16: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/fsck.c:545:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!f_name)
                                    ^
                                     {
/datasets/git/fsck.c:547:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!skip_prefix(name2, f_name, &p))
                                                            ^
                                                             {
/datasets/git/fsck.c:549:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!*p)
                                ^
                                 {
/datasets/git/fsck.c:561:12: warning: function 'fsck_tree' has cognitive complexity of 61 (threshold 25) [readability-function-cognitive-complexity]
static int fsck_tree(const struct object_id *tree_oid,
           ^
/datasets/git/fsck.c:581:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (init_tree_desc_gently(&desc, buffer, size, TREE_DESC_RAW_MODES)) {
        ^
/datasets/git/fsck.c:591:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (desc.size) {
        ^
/datasets/git/fsck.c:603:37: note: +1
                has_dotgit |= is_hfs_dotgit(name) || is_ntfs_dotgit(name);
                                                  ^
/datasets/git/fsck.c:606:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (is_hfs_dotgitmodules(name) || is_ntfs_dotgitmodules(name)) {
                ^
/datasets/git/fsck.c:606:34: note: +1
                if (is_hfs_dotgitmodules(name) || is_ntfs_dotgitmodules(name)) {
                                               ^
/datasets/git/fsck.c:607:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!S_ISLNK(mode))
                        ^
/datasets/git/fsck.c:610:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/fsck.c:617:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (S_ISLNK(mode)) {
                ^
/datasets/git/fsck.c:618:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (is_hfs_dotgitignore(name) ||
                        ^
/datasets/git/fsck.c:618:34: note: +1
                        if (is_hfs_dotgitignore(name) ||
                                                      ^
/datasets/git/fsck.c:623:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (is_hfs_dotgitattributes(name) ||
                        ^
/datasets/git/fsck.c:623:38: note: +1
                        if (is_hfs_dotgitattributes(name) ||
                                                          ^
/datasets/git/fsck.c:628:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (is_hfs_dotmailmap(name) ||
                        ^
/datasets/git/fsck.c:628:32: note: +1
                        if (is_hfs_dotmailmap(name) ||
                                                    ^
/datasets/git/fsck.c:635:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((backslash = strchr(name, '\\'))) {
                ^
/datasets/git/fsck.c:636:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (backslash) {
                        ^
/datasets/git/fsck.c:639:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (is_ntfs_dotgitmodules(backslash)) {
                                ^
/datasets/git/fsck.c:640:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (!S_ISLNK(mode))
                                        ^
/datasets/git/fsck.c:643:6: note: +1, nesting level increased to 5
                                        else
                                        ^
/datasets/git/fsck.c:652:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (update_tree_entry_gently(&desc)) {
                ^
/datasets/git/fsck.c:659:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                switch (mode) {
                ^
/datasets/git/fsck.c:675:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!options->strict)
                        ^
/datasets/git/fsck.c:682:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (o_name) {
                ^
/datasets/git/fsck.c:683:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        switch (verify_ordered(o_mode, o_name, mode, name,
                        ^
/datasets/git/fsck.c:702:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (has_null_sha1)
        ^
/datasets/git/fsck.c:706:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (has_full_path)
        ^
/datasets/git/fsck.c:710:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (has_empty_name)
        ^
/datasets/git/fsck.c:714:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (has_dot)
        ^
/datasets/git/fsck.c:718:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (has_dotdot)
        ^
/datasets/git/fsck.c:722:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (has_dotgit)
        ^
/datasets/git/fsck.c:726:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (has_zero_pad)
        ^
/datasets/git/fsck.c:730:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (has_bad_modes)
        ^
/datasets/git/fsck.c:734:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (has_dup_entries)
        ^
/datasets/git/fsck.c:738:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (not_properly_sorted)
        ^
/datasets/git/fsck.c:577:11: warning: variable 'o_mode' is not initialized [cppcoreguidelines-init-variables]
        unsigned o_mode;
                 ^
                        = 0
/datasets/git/fsck.c:578:14: warning: variable 'o_name' is not initialized [cppcoreguidelines-init-variables]
        const char *o_name;
                    ^
                           = NULL
/datasets/git/fsck.c:592:18: warning: variable 'mode' is not initialized [cppcoreguidelines-init-variables]
                unsigned short mode;
                               ^
                                    = 0
/datasets/git/fsck.c:593:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                const char *name, *backslash;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/fsck.c:593:15: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
                const char *name, *backslash;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/fsck.c:593:22: warning: variable 'backslash' is not initialized [cppcoreguidelines-init-variables]
                const char *name, *backslash;
                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/fsck.c:594:27: warning: variable 'entry_oid' is not initialized [cppcoreguidelines-init-variables]
                const struct object_id *entry_oid;
                                        ^
                                                  = NULL
/datasets/git/fsck.c:598:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                has_null_sha1 |= is_null_oid(entry_oid);
                ^~~~~~~~~~~~~
/datasets/git/fsck.c:599:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                has_full_path |= !!strchr(name, '/');
                ^~~~~~~~~~~~~
/datasets/git/fsck.c:600:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                has_empty_name |= !*name;
                ^~~~~~~~~~~~~~
/datasets/git/fsck.c:601:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                has_dot |= !strcmp(name, ".");
                ^~~~~~~
/datasets/git/fsck.c:602:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                has_dotdot |= !strcmp(name, "..");
                ^~~~~~~~~~
/datasets/git/fsck.c:603:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                has_dotgit |= is_hfs_dotgit(name) || is_ntfs_dotgit(name);
                ^~~~~~~~~~
/datasets/git/fsck.c:604:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                has_zero_pad |= *(char *)desc.buffer == '0';
                ^~~~~~~~~~~~
/datasets/git/fsck.c:607:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!S_ISLNK(mode))
                                           ^
                                            {
/datasets/git/fsck.c:610:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/fsck.c:619:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            is_ntfs_dotgitignore(name))
                                                       ^
                                                        {
/datasets/git/fsck.c:624:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            is_ntfs_dotgitattributes(name))
                                                           ^
                                                            {
/datasets/git/fsck.c:629:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            is_ntfs_dotmailmap(name))
                                                     ^
                                                      {
/datasets/git/fsck.c:635:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                if ((backslash = strchr(name, '\\'))) {
                     ^
/datasets/git/fsck.c:635:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/fsck.c:635:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/fsck.c:636:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (backslash) {
                        ^
/datasets/git/fsck.c:636:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'backslash' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (backslash) {
                               ^
/datasets/git/fsck.c:638:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                has_dotgit |= is_ntfs_dotgit(backslash);
                                ^~~~~~~~~~
/datasets/git/fsck.c:640:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        if (!S_ISLNK(mode))
                                                           ^
                                                            {
/datasets/git/fsck.c:643:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        else
                                            ^
                                             {
/datasets/git/fsck.c:663:18: warning: 0755 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                case S_IFREG | 0755:
                               ^
/datasets/git/fsck.c:664:18: warning: 0644 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                case S_IFREG | 0644:
                               ^
/datasets/git/fsck.c:674:18: warning: 0664 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                case S_IFREG | 0664:
                               ^
/datasets/git/fsck.c:675:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!options->strict)
                                             ^
                                              {
/datasets/git/fsck.c:702:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (has_null_sha1)
                          ^
                           {
/datasets/git/fsck.c:706:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (has_full_path)
                          ^
                           {
/datasets/git/fsck.c:710:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (has_empty_name)
                           ^
                            {
/datasets/git/fsck.c:714:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (has_dot)
                    ^
                     {
/datasets/git/fsck.c:718:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (has_dotdot)
                       ^
                        {
/datasets/git/fsck.c:722:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (has_dotgit)
                       ^
                        {
/datasets/git/fsck.c:726:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (has_zero_pad)
                         ^
                          {
/datasets/git/fsck.c:730:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (has_bad_modes)
                          ^
                           {
/datasets/git/fsck.c:734:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (has_dup_entries)
                            ^
                             {
/datasets/git/fsck.c:738:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (not_properly_sorted)
                                ^
                                 {
/datasets/git/fsck.c:750:16: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned long i;
                      ^
                        = 0
/datasets/git/fsck.c:750:16: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/fsck.c:752:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < size; i++) {
        ^
/datasets/git/fsck.c:759:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (i + 1 < size && buffer[i + 1] == '\n')
                                                                  ^
                                                                   {
/datasets/git/fsck.c:770:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (size && buffer[size - 1] == '\n')
                                             ^
                                              {
/datasets/git/fsck.c:781:14: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        const char *p = *ident;
                    ^
/datasets/git/fsck.c:782:8: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
        char *end;
              ^
                  = NULL
/datasets/git/fsck.c:785:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (**ident == '\n')
                            ^
                             {
/datasets/git/fsck.c:788:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*p == '<')
                      ^
                       {
/datasets/git/fsck.c:791:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*p == '>')
                      ^
                       {
/datasets/git/fsck.c:793:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*p != '<')
                      ^
                       {
/datasets/git/fsck.c:795:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (p[-1] != ' ')
                         ^
                          {
/datasets/git/fsck.c:799:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*p != '>')
                      ^
                       {
/datasets/git/fsck.c:802:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*p != ' ')
                      ^
                       {
/datasets/git/fsck.c:805:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*p == '0' && p[1] != ' ')
                                     ^
                                      {
/datasets/git/fsck.c:807:46: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (date_overflows(parse_timestamp(p, &end, 10)))
                                                    ^
/datasets/git/fsck.c:807:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (date_overflows(parse_timestamp(p, &end, 10)))
                                                         ^
                                                          {
/datasets/git/fsck.c:809:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((end == p || *end != ' '))
                                      ^
                                       {
/datasets/git/fsck.c:813:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            !isdigit(p[1]) ||
             ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/fsck.c:814:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            !isdigit(p[2]) ||
             ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/fsck.c:815:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            !isdigit(p[3]) ||
             ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/fsck.c:816:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            !isdigit(p[4]) ||
             ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/fsck.c:817:9: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
            (p[5] != '\n'))
               ^
/datasets/git/fsck.c:817:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            (p[5] != '\n'))
                           ^
                            {
/datasets/git/fsck.c:819:2: warning: Value stored to 'p' is never read [clang-analyzer-deadcode.DeadStores]
        p += 6;
        ^    ~
/datasets/git/fsck.c:819:2: note: Value stored to 'p' is never read
        p += 6;
        ^    ~
/datasets/git/fsck.c:819:7: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        p += 6;
             ^
/datasets/git/fsck.c:827:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct object_id tree_oid, parent_oid;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/fsck.c:828:11: warning: variable 'author_count' is not initialized [cppcoreguidelines-init-variables]
        unsigned author_count;
                 ^
                              = 0
/datasets/git/fsck.c:829:6: warning: variable 'err' is not initialized [cppcoreguidelines-init-variables]
        int err;
            ^
                = 0
/datasets/git/fsck.c:831:14: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        const char *p;
                    ^
                      = NULL
/datasets/git/fsck.c:831:14: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/fsck.c:833:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (verify_headers(buffer, size, oid, OBJ_COMMIT, options))
                                                                   ^
                                                                    {
/datasets/git/fsck.c:836:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!skip_prefix(buffer, "tree ", &buffer))
                                                   ^
                                                    {
/datasets/git/fsck.c:840:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err)
                        ^
                         {
/datasets/git/fsck.c:844:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (skip_prefix(buffer, "parent ", &buffer)) {
        ^
/datasets/git/fsck.c:824:10: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                       const char *buffer, unsigned long size,
                       ^
/datasets/git/fsck.c:844:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'buffer' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (skip_prefix(buffer, "parent ", &buffer)) {
               ^
/datasets/git/fsck.c:847:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (err)
                                ^
                                 {
/datasets/git/fsck.c:853:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (skip_prefix(buffer, "author ", &buffer)) {
        ^
/datasets/git/fsck.c:853:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'buffer' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (skip_prefix(buffer, "author ", &buffer)) {
               ^
/datasets/git/fsck.c:856:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err)
                        ^
                         {
/datasets/git/fsck.c:859:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (author_count < 1)
                             ^
                              {
/datasets/git/fsck.c:861:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (author_count > 1)
                                  ^
                                   {
/datasets/git/fsck.c:863:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err)
                ^
                 {
/datasets/git/fsck.c:865:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!skip_prefix(buffer, "committer ", &buffer))
                                                        ^
                                                         {
/datasets/git/fsck.c:868:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err)
                ^
                 {
/datasets/git/fsck.c:873:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err)
                        ^
                         {
/datasets/git/fsck.c:883:6: warning: variable 'tagged_type' is not initialized [cppcoreguidelines-init-variables]
        int tagged_type;
            ^
                        = 0
/datasets/git/fsck.c:888:5: warning: function 'fsck_tag_standalone' has cognitive complexity of 28 (threshold 25) [readability-function-cognitive-complexity]
int fsck_tag_standalone(const struct object_id *oid, const char *buffer,
    ^
/datasets/git/fsck.c:899:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ret)
        ^
/datasets/git/fsck.c:902:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!skip_prefix(buffer, "object ", &buffer)) {
        ^
/datasets/git/fsck.c:904:3: note: +1
                goto done;
                ^
/datasets/git/fsck.c:906:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (parse_oid_hex(buffer, tagged_oid, &p) || *p != '\n') {
        ^
/datasets/git/fsck.c:906:44: note: +1
        if (parse_oid_hex(buffer, tagged_oid, &p) || *p != '\n') {
                                                  ^
/datasets/git/fsck.c:908:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ret)
                ^
/datasets/git/fsck.c:913:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!skip_prefix(buffer, "type ", &buffer)) {
        ^
/datasets/git/fsck.c:915:3: note: +1
                goto done;
                ^
/datasets/git/fsck.c:918:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!eol) {
        ^
/datasets/git/fsck.c:920:3: note: +1
                goto done;
                ^
/datasets/git/fsck.c:923:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (*tagged_type < 0)
        ^
/datasets/git/fsck.c:925:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ret)
        ^
/datasets/git/fsck.c:929:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!skip_prefix(buffer, "tag ", &buffer)) {
        ^
/datasets/git/fsck.c:931:3: note: +1
                goto done;
                ^
/datasets/git/fsck.c:934:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!eol) {
        ^
/datasets/git/fsck.c:936:3: note: +1
                goto done;
                ^
/datasets/git/fsck.c:939:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (check_refname_format(sb.buf, 0)) {
        ^
/datasets/git/fsck.c:944:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ret)
                ^
/datasets/git/fsck.c:949:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!skip_prefix(buffer, "tagger ", &buffer)) {
        ^
/datasets/git/fsck.c:952:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ret)
                ^
/datasets/git/fsck.c:955:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/fsck.c:957:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!*buffer)
        ^
/datasets/git/fsck.c:960:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!starts_with(buffer, "\n")) {
        ^
/datasets/git/fsck.c:969:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ret)
                ^
/datasets/git/fsck.c:894:8: warning: variable 'eol' is not initialized [cppcoreguidelines-init-variables]
        char *eol;
              ^
                  = NULL
/datasets/git/fsck.c:895:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/fsck.c:896:14: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        const char *p;
                    ^
                      = NULL
/datasets/git/fsck.c:896:14: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/fsck.c:899:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/fsck.c:908:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret)
                        ^
                         {
/datasets/git/fsck.c:923:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*tagged_type < 0)
                             ^
                              {
/datasets/git/fsck.c:925:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/fsck.c:944:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret)
                        ^
                         {
/datasets/git/fsck.c:952:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret)
                        ^
                         {
/datasets/git/fsck.c:955:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/fsck.c:957:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!*buffer)
                     ^
                      {
/datasets/git/fsck.c:969:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret)
                        ^
                         {
/datasets/git/fsck.c:980:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return path_match_flags(path, PATH_MATCH_STARTS_WITH_DOT_SLASH |
                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/fsck.c:986:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return path_match_flags(path, PATH_MATCH_STARTS_WITH_DOT_DOT_SLASH |
                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/fsck.c:1009:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/fsck.c:1050:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            skip_prefix(url, "ftps::", out))
                                            ^
                                             {
/datasets/git/fsck.c:1064:14: warning: variable 'curl_url' is not initialized [cppcoreguidelines-init-variables]
        const char *curl_url;
                    ^
                             = NULL
/datasets/git/fsck.c:1066:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (looks_like_command_line_option(url))
                                                ^
                                                 {
/datasets/git/fsck.c:1070:9: warning: variable 'decoded' is not initialized [cppcoreguidelines-init-variables]
                char *decoded;
                      ^
                              = NULL
/datasets/git/fsck.c:1071:15: warning: variable 'next' is not initialized [cppcoreguidelines-init-variables]
                const char *next;
                            ^
                                 = NULL
/datasets/git/fsck.c:1072:7: warning: variable 'has_nl' is not initialized [cppcoreguidelines-init-variables]
                int has_nl;
                    ^
                           = 0
/datasets/git/fsck.c:1082:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (has_nl)
                           ^
                            {
/datasets/git/fsck.c:1093:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    (*next == ':' || *next == '/'))
                                                   ^
                                                    {
/datasets/git/fsck.c:1098:21: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                struct credential c = CREDENTIAL_INIT;
                                  ^
/datasets/git/fsck.c:1101:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !*c.host)
                             ^
                              {
/datasets/git/fsck.c:1110:8: warning: accessing fields in struct 'fsck_gitmodules_data' is inefficient due to padding; only needs 20 bytes but is using 24 bytes [altera-struct-pack-align]
struct fsck_gitmodules_data {
       ^
/datasets/git/fsck.c:1110:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'fsck_gitmodules_data'
/datasets/git/fsck.c:1110:8: warning: accessing fields in struct 'fsck_gitmodules_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct fsck_gitmodules_data {
       ^
/datasets/git/fsck.c:1110:8: note: use "__attribute__((aligned(32)))" to align struct 'fsck_gitmodules_data' to 32 bytes
/datasets/git/fsck.c:1116:31: warning: 2 adjacent parameters of 'fsck_gitmodules_fn' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int fsck_gitmodules_fn(const char *var, const char *value, void *vdata)
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/fsck.c:1116:43: note: the first parameter in the range is 'var'
static int fsck_gitmodules_fn(const char *var, const char *value, void *vdata)
                                          ^~~
/datasets/git/fsck.c:1116:60: note: the last parameter in the range is 'value'
static int fsck_gitmodules_fn(const char *var, const char *value, void *vdata)
                                                           ^~~~~
/datasets/git/fsck.c:1119:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *subsection, *key;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/fsck.c:1119:14: warning: variable 'subsection' is not initialized [cppcoreguidelines-init-variables]
        const char *subsection, *key;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/fsck.c:1119:27: warning: variable 'key' is not initialized [cppcoreguidelines-init-variables]
        const char *subsection, *key;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/fsck.c:1120:9: warning: variable 'subsection_len' is not initialized [cppcoreguidelines-init-variables]
        size_t subsection_len;
               ^
                              = 0
/datasets/git/fsck.c:1121:8: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
        char *name;
              ^
                   = NULL
/datasets/git/fsck.c:1124:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !subsection)
                        ^
                         {
/datasets/git/fsck.c:1128:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (check_submodule_name(name) < 0)
                                           ^
                                            {
/datasets/git/fsck.c:1129:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                data->ret |= report(data->options,
                ^~~~~~~~~
/datasets/git/fsck.c:1135:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            check_submodule_url(value) < 0)
                                           ^
                                            {
/datasets/git/fsck.c:1136:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                data->ret |= report(data->options,
                ^~~~~~~~~
/datasets/git/fsck.c:1142:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            looks_like_command_line_option(value))
                                                  ^
                                                   {
/datasets/git/fsck.c:1143:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                data->ret |= report(data->options,
                ^~~~~~~~~
/datasets/git/fsck.c:1149:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            parse_submodule_update_type(value) == SM_UPDATE_COMMAND)
                                                                    ^
                                                                     {
/datasets/git/fsck.c:1150:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                data->ret |= report(data->options, data->oid, OBJ_BLOB,
                ^~~~~~~~~
/datasets/git/fsck.c:1165:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!oidset_contains(&options->gitmodules_found, oid))
                                                              ^
                                                               {
/datasets/git/fsck.c:1169:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (object_on_skiplist(options, oid))
                                             ^
                                              {
/datasets/git/fsck.c:1188:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                ".gitmodules", buf, size, &data, &config_opts))
                                                                               ^
                                                                                {
/datasets/git/fsck.c:1189:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                data.ret |= report(options, oid, OBJ_BLOB,
                ^~~~~~~~
/datasets/git/fsck.c:1199:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!obj)
                 ^
                  {
/datasets/git/fsck.c:1202:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (obj->type == OBJ_BLOB)
                                  ^
                                   {
/datasets/git/fsck.c:1204:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (obj->type == OBJ_TREE)
                                  ^
                                   {
/datasets/git/fsck.c:1206:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (obj->type == OBJ_COMMIT)
                                    ^
                                     {
/datasets/git/fsck.c:1208:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (obj->type == OBJ_TAG)
                                 ^
                                  {
/datasets/git/fsck.c:1217:46: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
int fsck_error_function(struct fsck_options *o,
                                             ^
/datasets/git/fsck.c:1236:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        const struct object_id *oid;
        ^
/datasets/git/fsck.c:1219:21: warning: parameter 'object_type' is unused [misc-unused-parameters]
                        enum object_type object_type,
                                         ^
/datasets/git/fsck.c:1221:21: warning: parameter 'msg_id' is unused [misc-unused-parameters]
                        enum fsck_msg_id msg_id,
                                         ^
/datasets/git/fsck.c:1236:26: warning: variable 'oid' is not initialized [cppcoreguidelines-init-variables]
        const struct object_id *oid;
                                ^
                                    = NULL
/datasets/git/fsck.c:1239:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((oid = oidset_iter_next(&iter))) {
        ^
/datasets/git/fsck.c:1239:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'oid' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((oid = oidset_iter_next(&iter))) {
               ^
/datasets/git/fsck.c:1240:20: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
                enum object_type type;
                                 ^
/datasets/git/fsck.c:1241:17: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
                unsigned long size;
                              ^
                                   = 0
/datasets/git/fsck.c:1242:9: warning: variable 'buf' is not initialized [cppcoreguidelines-init-variables]
                char *buf;
                      ^
                          = NULL
/datasets/git/fsck.c:1244:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (oidset_contains(&options->gitmodules_done, oid))
                                                                    ^
                                                                     {
/datasets/git/fsck.c:1249:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (is_promisor_object(oid))
                                                    ^
                                                     {
/datasets/git/fsck.c:1251:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ret |= report(options,
                        ^~~
/datasets/git/fsck.c:1258:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (type == OBJ_BLOB)
                                     ^
                                      {
/datasets/git/fsck.c:1259:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ret |= fsck_blob(oid, buf, size, options);
                        ^~~
/datasets/git/fsck.c:1260:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/fsck.c:1261:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ret |= report(options,
                        ^~~
/datasets/git/fsck.c:1274:63: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
int git_fsck_config(const char *var, const char *value, void *cb)
                                                              ^
/datasets/git/fsck.c:1278:15: warning: variable 'path' is not initialized [cppcoreguidelines-init-variables]
                const char *path;
                            ^
                                 = NULL
/datasets/git/fsck.c:1279:17: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                struct strbuf sb = STRBUF_INIT;
                              ^
/datasets/git/fsck.c:1281:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (git_config_pathname(&path, var, value))
                                                           ^
                                                            {
/datasets/git/fsck.c:1302:65: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
int fsck_error_cb_print_missing_gitmodules(struct fsck_options *o,
                                                                ^
/datasets/git/fsmonitor-ipc.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "fsmonitor.h"
^        ~~~~~~~~~~~~~
         "fsmonitor-ipc.h"
/datasets/git/fsmonitor-ipc.c:21:56: warning: parameter 'r' is unused [misc-unused-parameters]
const char *fsmonitor_ipc__get_path(struct repository *r)
                                                       ^
/datasets/git/fsmonitor-ipc.c:21:56: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/fsmonitor-ipc.c:31:43: warning: parameter 'since_token' is unused [misc-unused-parameters]
int fsmonitor_ipc__send_query(const char *since_token,
                                          ^
/datasets/git/fsmonitor-ipc.c:32:25: warning: parameter 'answer' is unused [misc-unused-parameters]
                              struct strbuf *answer)
                                             ^
/datasets/git/fsmonitor-ipc.c:37:45: warning: parameter 'command' is unused [misc-unused-parameters]
int fsmonitor_ipc__send_command(const char *command,
                                            ^
/datasets/git/fsmonitor-ipc.c:38:20: warning: parameter 'answer' is unused [misc-unused-parameters]
                                struct strbuf *answer)
                                               ^
/datasets/git/fsmonitor-settings.c:3:1: warning: #includes are not sorted properly [llvm-include-order]
#include "repository.h"
^        ~~~~~~~~~~~~~~
         "fsmonitor-ipc.h"
/datasets/git/fsmonitor-settings.c:12:8: warning: accessing fields in struct 'fsmonitor_settings' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct fsmonitor_settings {
       ^
/datasets/git/fsmonitor-settings.c:12:8: note: use "__attribute__((aligned(16)))" to align struct 'fsmonitor_settings' to 16 bytes
/datasets/git/fsmonitor-settings.c:64:72: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static enum fsmonitor_reason check_for_incompatible(struct repository *r, int ipc)
                                                                       ^
/datasets/git/fsmonitor-settings.c:64:79: warning: parameter 'ipc' is unused [misc-unused-parameters]
static enum fsmonitor_reason check_for_incompatible(struct repository *r, int ipc)
                                                                        ~~~~~~^~~
/datasets/git/fsmonitor-settings.c:92:29: warning: variable 's' is not initialized [cppcoreguidelines-init-variables]
        struct fsmonitor_settings *s;
                                   ^
                                     = NULL
/datasets/git/fsmonitor-settings.c:92:29: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/fsmonitor-settings.c:101:58: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void lookup_fsmonitor_settings(struct repository *r)
                                                         ^
/datasets/git/fsmonitor-settings.c:103:14: warning: variable 'const_str' is not initialized [cppcoreguidelines-init-variables]
        const char *const_str;
                    ^
                              = NULL
/datasets/git/fsmonitor-settings.c:104:6: warning: variable 'bool_value' is not initialized [cppcoreguidelines-init-variables]
        int bool_value;
            ^
                       = 0
/datasets/git/fsmonitor-settings.c:106:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (r->settings.fsmonitor)
                                  ^
                                   {
/datasets/git/fsmonitor-settings.c:119:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (bool_value)
                               ^
                                {
/datasets/git/fsmonitor-settings.c:121:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/fsmonitor-settings.c:126:15: warning: function is not thread safe [concurrency-mt-unsafe]
                const_str = getenv("GIT_TEST_FSMONITOR");
                            ^
/datasets/git/fsmonitor-settings.c:130:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (repo_config_get_pathname(r, "core.fsmonitor", &const_str))
                                                                              ^
                                                                               {
/datasets/git/fsmonitor-settings.c:138:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (const_str && *const_str)
                                    ^
                                     {
/datasets/git/fsmonitor-settings.c:140:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/fsmonitor-settings.c:144:63: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
enum fsmonitor_mode fsm_settings__get_mode(struct repository *r)
                                                              ^
/datasets/git/fsmonitor-settings.c:146:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!r)
               ^
                {
/datasets/git/fsmonitor-settings.c:148:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!r->settings.fsmonitor)
                                   ^
                                    {
/datasets/git/fsmonitor-settings.c:154:60: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
const char *fsm_settings__get_hook_path(struct repository *r)
                                                           ^
/datasets/git/fsmonitor-settings.c:156:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!r)
               ^
                {
/datasets/git/fsmonitor-settings.c:158:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!r->settings.fsmonitor)
                                   ^
                                    {
/datasets/git/fsmonitor-settings.c:164:47: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void fsm_settings__set_ipc(struct repository *r)
                                              ^
/datasets/git/fsmonitor-settings.c:177:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!r)
               ^
                {
/datasets/git/fsmonitor-settings.c:179:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!r->settings.fsmonitor)
                                   ^
                                    {
/datasets/git/fsmonitor-settings.c:184:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(r->settings.fsmonitor->hook_path);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/fsmonitor-settings.c:187:48: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void fsm_settings__set_hook(struct repository *r, const char *path)
                                               ^
/datasets/git/fsmonitor-settings.c:200:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!r)
               ^
                {
/datasets/git/fsmonitor-settings.c:202:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!r->settings.fsmonitor)
                                   ^
                                    {
/datasets/git/fsmonitor-settings.c:207:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(r->settings.fsmonitor->hook_path);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/fsmonitor-settings.c:211:52: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void fsm_settings__set_disabled(struct repository *r)
                                                   ^
/datasets/git/fsmonitor-settings.c:213:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!r)
               ^
                {
/datasets/git/fsmonitor-settings.c:215:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!r->settings.fsmonitor)
                                   ^
                                    {
/datasets/git/fsmonitor-settings.c:220:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(r->settings.fsmonitor->hook_path);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/fsmonitor-settings.c:223:56: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void fsm_settings__set_incompatible(struct repository *r,
                                                       ^
/datasets/git/fsmonitor-settings.c:226:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!r)
               ^
                {
/datasets/git/fsmonitor-settings.c:228:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!r->settings.fsmonitor)
                                   ^
                                    {
/datasets/git/fsmonitor-settings.c:233:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(r->settings.fsmonitor->hook_path);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/fsmonitor-settings.c:236:67: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
enum fsmonitor_reason fsm_settings__get_reason(struct repository *r)
                                                                  ^
/datasets/git/fsmonitor-settings.c:238:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!r)
               ^
                {
/datasets/git/fsmonitor-settings.c:240:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!r->settings.fsmonitor)
                                   ^
                                    {
/datasets/git/fsmonitor-settings.c:246:61: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
char *fsm_settings__get_incompatible_msg(struct repository *r,
                                                            ^
/datasets/git/fsmonitor-settings.c:250:14: warning: variable 'socket_dir' is not initialized [cppcoreguidelines-init-variables]
        const char *socket_dir;
                    ^
                               = NULL
/datasets/git/fsmonitor-settings.c:252:2: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
        switch (reason) {
        ^
/datasets/git/fsmonitor-settings.c:286:16: warning: function is not thread safe [concurrency-mt-unsafe]
                socket_dir = dirname((char *)fsmonitor_ipc__get_path(r));
                             ^
/datasets/git/fsmonitor.c:5:1: warning: #includes are not sorted properly [llvm-include-order]
#include "fsmonitor.h"
^        ~~~~~~~~~~~~~
         "fsmonitor-ipc.h"
/datasets/git/fsmonitor.c:10:1: warning: replace macro with enum [modernize-macro-to-enum]
#define INDEX_EXTENSION_VERSION1        (1)
^~~~~~~~
                                 =         ,
/datasets/git/fsmonitor.c:10:9: warning: macro 'INDEX_EXTENSION_VERSION1' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define INDEX_EXTENSION_VERSION1        (1)
        ^
/datasets/git/fsmonitor.c:11:9: warning: macro 'INDEX_EXTENSION_VERSION2' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define INDEX_EXTENSION_VERSION2        (2)
        ^
/datasets/git/fsmonitor.c:12:9: warning: macro 'HOOK_INTERFACE_VERSION1' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define HOOK_INTERFACE_VERSION1         (1)
        ^
/datasets/git/fsmonitor.c:13:9: warning: macro 'HOOK_INTERFACE_VERSION2' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define HOOK_INTERFACE_VERSION2         (2)
        ^
/datasets/git/fsmonitor.c:15:18: warning: variable 'trace_fsmonitor' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
struct trace_key trace_fsmonitor = TRACE_KEY_INIT(FSMONITOR);
                 ^
/datasets/git/fsmonitor.c:19:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pos > istate->cache_nr)
                                   ^
                                    {
/datasets/git/fsmonitor.c:24:55: warning: parameter name 'is' is too short, expected at least 3 characters [readability-identifier-length]
static void fsmonitor_ewah_callback(size_t pos, void *is)
                                                      ^
/datasets/git/fsmonitor.c:27:22: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
        struct cache_entry *ce;
                            ^
                               = NULL
/datasets/git/fsmonitor.c:27:22: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/fsmonitor.c:32:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ce->ce_flags &= ~CE_FSMONITOR_VALID;
        ^               ~~~~~~~~~~~~~~~~~~~
/datasets/git/fsmonitor.c:32:18: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
        ce->ce_flags &= ~CE_FSMONITOR_VALID;
                        ^
/datasets/git/fsmonitor.c:32:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ce->ce_flags &= ~CE_FSMONITOR_VALID;
                         ^
/datasets/git/./refs/../cache.h:173:31: note: expanded from macro 'CE_FSMONITOR_VALID'
#define CE_FSMONITOR_VALID   (1 << 21)
                              ^
/datasets/git/fsmonitor.c:37:6: warning: variable 'hook_version' is not initialized [cppcoreguidelines-init-variables]
        int hook_version;
            ^
                         = 0
/datasets/git/fsmonitor.c:39:69: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (git_config_get_int("core.fsmonitorhookversion", &hook_version))
                                                                           ^
                                                                            {
/datasets/git/fsmonitor.c:43:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            hook_version == HOOK_INTERFACE_VERSION2)
                                                    ^
                                                     {
/datasets/git/fsmonitor.c:52:16: warning: parameter name 'sz' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned long sz)
                      ^
/datasets/git/fsmonitor.c:55:11: warning: variable 'hdr_version' is not initialized [cppcoreguidelines-init-variables]
        uint32_t hdr_version;
                 ^
                             = 0
/datasets/git/fsmonitor.c:56:11: warning: variable 'ewah_size' is not initialized [cppcoreguidelines-init-variables]
        uint32_t ewah_size;
                 ^
                           = 0
/datasets/git/fsmonitor.c:57:22: warning: variable 'fsmonitor_dirty' is not initialized [cppcoreguidelines-init-variables]
        struct ewah_bitmap *fsmonitor_dirty;
                            ^
                                            = NULL
/datasets/git/fsmonitor.c:58:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/fsmonitor.c:59:11: warning: variable 'timestamp' is not initialized [cppcoreguidelines-init-variables]
        uint64_t timestamp;
                 ^
                           = 0
/datasets/git/fsmonitor.c:62:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (sz < sizeof(uint32_t) + 1 + sizeof(uint32_t))
                                                         ^
                                                          {
/datasets/git/fsmonitor.c:84:8: warning: narrowing conversion from 'ssize_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        ret = ewah_read_mmap(fsmonitor_dirty, index, ewah_size);
              ^
/datasets/git/fsmonitor.c:91:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!istate->split_index)
                                 ^
                                  {
/datasets/git/fsmonitor.c:96:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf_key(&trace_fsmonitor,
        ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/fsmonitor.c:104:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned int i, skipped = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/fsmonitor.c:104:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i, skipped = 0;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/fsmonitor.c:104:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/fsmonitor.c:106:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < istate->cache_nr; i++) {
        ^
/datasets/git/fsmonitor.c:107:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (istate->cache[i]->ce_flags & CE_REMOVE)
                    ^
/datasets/git/fsmonitor.c:107:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (istate->cache[i]->ce_flags & CE_REMOVE)
                                                 ^
/datasets/git/./refs/../cache.h:168:31: note: expanded from macro 'CE_REMOVE'
#define CE_REMOVE            (1 << 17)
                              ^
/datasets/git/fsmonitor.c:107:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (istate->cache[i]->ce_flags & CE_REMOVE)
                                                           ^
                                                            {
/datasets/git/fsmonitor.c:109:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                else if (!(istate->cache[i]->ce_flags & CE_FSMONITOR_VALID))
                           ^
/datasets/git/fsmonitor.c:109:43: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                else if (!(istate->cache[i]->ce_flags & CE_FSMONITOR_VALID))
                                                        ^
/datasets/git/./refs/../cache.h:173:31: note: expanded from macro 'CE_FSMONITOR_VALID'
#define CE_FSMONITOR_VALID   (1 << 21)
                              ^
/datasets/git/fsmonitor.c:109:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!(istate->cache[i]->ce_flags & CE_FSMONITOR_VALID))
                                                                            ^
                                                                             {
/datasets/git/fsmonitor.c:114:47: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void write_fsmonitor_extension(struct strbuf *sb, struct index_state *istate)
                                              ^
/datasets/git/fsmonitor.c:116:11: warning: variable 'hdr_version' is not initialized [cppcoreguidelines-init-variables]
        uint32_t hdr_version;
                 ^
                             = 0
/datasets/git/fsmonitor.c:117:11: warning: variable 'ewah_start' is not initialized [cppcoreguidelines-init-variables]
        uint32_t ewah_start;
                 ^
                            = 0
/datasets/git/fsmonitor.c:121:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!istate->split_index)
                                 ^
                                  {
/datasets/git/fsmonitor.c:130:10: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        fixup = sb->len;
                ^
/datasets/git/fsmonitor.c:140:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(sb->buf + fixup, &ewah_size, sizeof(uint32_t));
        ^~~~~~
/datasets/git/fsmonitor.c:140:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(sb->buf + fixup, &ewah_size, sizeof(uint32_t));
        ^~~~~~
/datasets/git/fsmonitor.c:144:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf_key(&trace_fsmonitor,
        ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/fsmonitor.c:152:52: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int query_fsmonitor_hook(struct repository *r,
                                                   ^
/datasets/git/fsmonitor.c:157:23: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
        struct child_process cp = CHILD_PROCESS_INIT;
                             ^
/datasets/git/fsmonitor.c:158:6: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        int result;
            ^
                   = 0
/datasets/git/fsmonitor.c:160:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fsm_settings__get_mode(r) != FSMONITOR_MODE_HOOK)
                                                             ^
                                                              {
/datasets/git/fsmonitor.c:171:46: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        result = capture_command(&cp, query_result, 1024);
                                                    ^
/datasets/git/fsmonitor.c:173:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (result)
                   ^
                    {
/datasets/git/fsmonitor.c:175:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/fsmonitor.c:186:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, len = strlen(name);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/fsmonitor.c:186:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, len = strlen(name);
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/fsmonitor.c:186:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/fsmonitor.c:186:15: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int i, len = strlen(name);
                     ^
/datasets/git/fsmonitor.c:189:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf_key(&trace_fsmonitor,
        ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/fsmonitor.c:207:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pos < 0)
                            ^
                             {
/datasets/git/fsmonitor.c:211:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = pos; i < istate->cache_nr; i++) {
                ^
/datasets/git/fsmonitor.c:211:17: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = pos; i < istate->cache_nr; i++) {
                              ^
/datasets/git/fsmonitor.c:212:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!starts_with(istate->cache[i]->name, name))
                                                                       ^
                                                                        {
/datasets/git/fsmonitor.c:214:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        istate->cache[i]->ce_flags &= ~CE_FSMONITOR_VALID;
                        ^                             ~~~~~~~~~~~~~~~~~~~
/datasets/git/fsmonitor.c:214:34: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                        istate->cache[i]->ce_flags &= ~CE_FSMONITOR_VALID;
                                                      ^
/datasets/git/fsmonitor.c:214:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        istate->cache[i]->ce_flags &= ~CE_FSMONITOR_VALID;
                                                       ^
/datasets/git/./refs/../cache.h:173:31: note: expanded from macro 'CE_FSMONITOR_VALID'
#define CE_FSMONITOR_VALID   (1 << 21)
                              ^
/datasets/git/fsmonitor.c:227:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                istate->cache[pos]->ce_flags &= ~CE_FSMONITOR_VALID;
                ^                               ~~~~~~~~~~~~~~~~~~~
/datasets/git/fsmonitor.c:227:35: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                istate->cache[pos]->ce_flags &= ~CE_FSMONITOR_VALID;
                                                ^
/datasets/git/fsmonitor.c:227:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                istate->cache[pos]->ce_flags &= ~CE_FSMONITOR_VALID;
                                                 ^
/datasets/git/./refs/../cache.h:173:31: note: expanded from macro 'CE_FSMONITOR_VALID'
#define CE_FSMONITOR_VALID   (1 << 21)
                              ^
/datasets/git/fsmonitor.c:186:2: note: inferred assignment of ID-dependent value from ID-dependent variable pos [altera-id-dependent-backward-branch]
        int i, len = strlen(name);
        ^
/datasets/git/fsmonitor.c:242:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = pos; i < istate->cache_nr; i++) {
                ^
/datasets/git/fsmonitor.c:242:17: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = pos; i < istate->cache_nr; i++) {
                              ^
/datasets/git/fsmonitor.c:243:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!starts_with(istate->cache[i]->name, name))
                                                                       ^
                                                                        {
/datasets/git/fsmonitor.c:245:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if ((unsigned char)istate->cache[i]->name[len] > '/')
                                                                             ^
                                                                              {
/datasets/git/fsmonitor.c:247:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (istate->cache[i]->name[len] == '/')
                                                               ^
                                                                {
/datasets/git/fsmonitor.c:248:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                istate->cache[i]->ce_flags &= ~CE_FSMONITOR_VALID;
                                ^                             ~~~~~~~~~~~~~~~~~~~
/datasets/git/fsmonitor.c:248:35: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                                istate->cache[i]->ce_flags &= ~CE_FSMONITOR_VALID;
                                                              ^
/datasets/git/fsmonitor.c:248:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                istate->cache[i]->ce_flags &= ~CE_FSMONITOR_VALID;
                                                               ^
/datasets/git/./refs/../cache.h:173:31: note: expanded from macro 'CE_FSMONITOR_VALID'
#define CE_FSMONITOR_VALID   (1 << 21)
                              ^
/datasets/git/fsmonitor.c:294:12: warning: variable 'fsmonitor_force_update_threshold' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int fsmonitor_force_update_threshold = 100;
           ^
/datasets/git/fsmonitor.c:294:47: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
static int fsmonitor_force_update_threshold = 100;
                                              ^
/datasets/git/fsmonitor.c:296:6: warning: function 'refresh_fsmonitor' has cognitive complexity of 89 (threshold 25) [readability-function-cognitive-complexity]
void refresh_fsmonitor(struct index_state *istate)
     ^
/datasets/git/fsmonitor.c:307:38: note: +1, including nesting penalty of 0, nesting level increased to 1
        struct repository *r = istate->repo ? istate->repo : the_repository;
                                            ^
/datasets/git/fsmonitor.c:311:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!warn_once && reason > FSMONITOR_REASON_OK) {
        ^
/datasets/git/fsmonitor.c:311:17: note: +1
        if (!warn_once && reason > FSMONITOR_REASON_OK) {
                       ^
/datasets/git/fsmonitor.c:318:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (fsm_mode <= FSMONITOR_MODE_DISABLED ||
        ^
/datasets/git/fsmonitor.c:318:42: note: +1
        if (fsm_mode <= FSMONITOR_MODE_DISABLED ||
                                                ^
/datasets/git/fsmonitor.c:324:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        trace_printf_key(&trace_fsmonitor, "refresh fsmonitor");
        ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/fsmonitor.c:324:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        trace_printf_key(&trace_fsmonitor, "refresh fsmonitor");
        ^
/datasets/git/./trace.h:173:3: note: expanded from macro 'trace_printf_key'
                if (trace_pass_fl(key))                                     \
                ^
/datasets/git/fsmonitor.c:326:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (fsm_mode == FSMONITOR_MODE_IPC) {
        ^
/datasets/git/fsmonitor.c:328:34: note: +2, including nesting penalty of 1, nesting level increased to 2
                        istate->fsmonitor_last_update ?
                                                      ^
/datasets/git/fsmonitor.c:331:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (query_success) {
                ^
/datasets/git/fsmonitor.c:345:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (is_trivial)
                        ^
/datasets/git/fsmonitor.c:348:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/fsmonitor.c:361:3: note: +1
                goto apply_results;
                ^
/datasets/git/fsmonitor.c:364:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(fsm_mode == FSMONITOR_MODE_HOOK);
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/fsmonitor.c:364:2: note: nesting level increased to 1
        assert(fsm_mode == FSMONITOR_MODE_HOOK);
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/fsmonitor.c:364:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(fsm_mode == FSMONITOR_MODE_HOOK);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/fsmonitor.c:364:2: note: +1, nesting level increased to 2
        assert(fsm_mode == FSMONITOR_MODE_HOOK);
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/fsmonitor.c:373:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (hook_version == HOOK_INTERFACE_VERSION1)
        ^
/datasets/git/fsmonitor.c:381:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (istate->fsmonitor_last_update) {
        ^
/datasets/git/fsmonitor.c:382:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (hook_version == -1 || hook_version == HOOK_INTERFACE_VERSION2) {
                ^
/datasets/git/fsmonitor.c:382:26: note: +1
                if (hook_version == -1 || hook_version == HOOK_INTERFACE_VERSION2) {
                                       ^
/datasets/git/fsmonitor.c:387:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (query_success) {
                        ^
/datasets/git/fsmonitor.c:388:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (hook_version < 0)
                                ^
/datasets/git/fsmonitor.c:400:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!last_update_token.len) {
                                ^
/datasets/git/fsmonitor.c:403:7: note: +1, nesting level increased to 4
                                } else {
                                  ^
/datasets/git/fsmonitor.c:407:11: note: +1, nesting level increased to 3
                        } else if (hook_version < 0) {
                               ^
/datasets/git/fsmonitor.c:409:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!last_update_token.len)
                                ^
/datasets/git/fsmonitor.c:414:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (hook_version == HOOK_INTERFACE_VERSION1) {
                ^
/datasets/git/fsmonitor.c:418:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (query_success)
                        ^
/datasets/git/fsmonitor.c:422:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (is_trivial)
                ^
/datasets/git/fsmonitor.c:426:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                trace_performance_since(last_update, "fsmonitor process '%s'",
                ^
/datasets/git/./trace.h:240:2: note: expanded from macro 'trace_performance_since'
        do {                                                                \
        ^
/datasets/git/fsmonitor.c:426:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                trace_performance_since(last_update, "fsmonitor process '%s'",
                ^
/datasets/git/./trace.h:241:3: note: expanded from macro 'trace_performance_since'
                if (trace_pass_fl(&trace_perf_key))                         \
                ^
/datasets/git/fsmonitor.c:428:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                trace_printf_key(&trace_fsmonitor,
                ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/fsmonitor.c:428:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                trace_printf_key(&trace_fsmonitor,
                ^
/datasets/git/./trace.h:173:3: note: expanded from macro 'trace_printf_key'
                if (trace_pass_fl(key))                                     \
                ^
/datasets/git/fsmonitor.c:431:20: note: +4, including nesting penalty of 3, nesting level increased to 4
                                 query_success ? "success" : "failure");
                                               ^
/datasets/git/fsmonitor.c:450:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (query_success && !is_trivial) {
        ^
/datasets/git/fsmonitor.c:450:20: note: +1
        if (query_success && !is_trivial) {
                          ^
/datasets/git/fsmonitor.c:459:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = bol; i < query_result.len; i++) {
                ^
/datasets/git/fsmonitor.c:460:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (buf[i] != '\0')
                        ^
/datasets/git/fsmonitor.c:466:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (bol < query_result.len) {
                ^
/datasets/git/fsmonitor.c:472:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (istate->untracked)
                ^
/datasets/git/fsmonitor.c:475:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (count > fsmonitor_force_update_threshold)
                ^
/datasets/git/fsmonitor.c:481:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/fsmonitor.c:492:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < istate->cache_nr; i++) {
                ^
/datasets/git/fsmonitor.c:493:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (istate->cache[i]->ce_flags & CE_FSMONITOR_VALID) {
                        ^
/datasets/git/fsmonitor.c:503:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (is_cache_changed)
                ^
/datasets/git/fsmonitor.c:506:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (istate->untracked)
                ^
/datasets/git/fsmonitor.c:514:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        FREE_AND_NULL(istate->fsmonitor_last_update);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/fsmonitor.c:300:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int query_success = 0, hook_version = -1;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/fsmonitor.c:302:11: warning: variable 'last_update' is not initialized [cppcoreguidelines-init-variables]
        uint64_t last_update;
                 ^
                             = 0
/datasets/git/fsmonitor.c:304:8: warning: variable 'buf' is not initialized [cppcoreguidelines-init-variables]
        char *buf;
              ^
                  = NULL
/datasets/git/fsmonitor.c:305:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i;
                     ^
                       = 0
/datasets/git/fsmonitor.c:305:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/fsmonitor.c:307:21: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        struct repository *r = istate->repo ? istate->repo : the_repository;
                           ^
/datasets/git/fsmonitor.c:319:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            istate->fsmonitor_has_run_once)
                                           ^
                                            {
/datasets/git/fsmonitor.c:324:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf_key(&trace_fsmonitor, "refresh fsmonitor");
        ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/fsmonitor.c:345:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (is_trivial)
                                       ^
                                        {
/datasets/git/fsmonitor.c:373:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (hook_version == HOOK_INTERFACE_VERSION1)
                                                    ^
                                                     {
/datasets/git/fsmonitor.c:388:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (hook_version < 0)
                                                     ^
                                                      {
/datasets/git/fsmonitor.c:409:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!last_update_token.len)
                                                           ^
                                                            {
/datasets/git/fsmonitor.c:418:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (query_success)
                                          ^
                                           {
/datasets/git/fsmonitor.c:422:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_trivial)
                               ^
                                {
/datasets/git/fsmonitor.c:426:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                trace_performance_since(last_update, "fsmonitor process '%s'",
                ^
/datasets/git/./trace.h:240:2: note: expanded from macro 'trace_performance_since'
        do {                                                                \
        ^
/datasets/git/fsmonitor.c:428:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                trace_printf_key(&trace_fsmonitor,
                ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/fsmonitor.c:459:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = bol; i < query_result.len; i++) {
                ^
/datasets/git/fsmonitor.c:459:17: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = bol; i < query_result.len; i++) {
                              ^
/datasets/git/fsmonitor.c:460:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (buf[i] != '\0')
                                           ^
                                            {
/datasets/git/fsmonitor.c:472:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (istate->untracked)
                                      ^
                                       {
/datasets/git/fsmonitor.c:475:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (count > fsmonitor_force_update_threshold)
                                                             ^
                                                              {
/datasets/git/fsmonitor.c:476:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        istate->cache_changed |= FSMONITOR_CHANGED;
                        ^
/datasets/git/fsmonitor.c:476:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        istate->cache_changed |= FSMONITOR_CHANGED;
                                                 ^
/datasets/git/./refs/../cache.h:306:28: note: expanded from macro 'FSMONITOR_CHANGED'
#define FSMONITOR_CHANGED       (1 << 8)
                                 ^
/datasets/git/fsmonitor.c:305:2: note: inferred assignment of ID-dependent value from ID-dependent variable bol [altera-id-dependent-backward-branch]
        unsigned int i;
        ^
/datasets/git/fsmonitor.c:492:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < istate->cache_nr; i++) {
                ^
/datasets/git/fsmonitor.c:492:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < istate->cache_nr; i++) {
                            ^
/datasets/git/fsmonitor.c:493:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (istate->cache[i]->ce_flags & CE_FSMONITOR_VALID) {
                            ^
/datasets/git/fsmonitor.c:493:37: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (istate->cache[i]->ce_flags & CE_FSMONITOR_VALID) {
                                                         ^
/datasets/git/./refs/../cache.h:173:31: note: expanded from macro 'CE_FSMONITOR_VALID'
#define CE_FSMONITOR_VALID   (1 << 21)
                              ^
/datasets/git/fsmonitor.c:495:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                istate->cache[i]->ce_flags &= ~CE_FSMONITOR_VALID;
                                ^                             ~~~~~~~~~~~~~~~~~~~
/datasets/git/fsmonitor.c:495:35: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                                istate->cache[i]->ce_flags &= ~CE_FSMONITOR_VALID;
                                                              ^
/datasets/git/fsmonitor.c:495:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                istate->cache[i]->ce_flags &= ~CE_FSMONITOR_VALID;
                                                               ^
/datasets/git/./refs/../cache.h:173:31: note: expanded from macro 'CE_FSMONITOR_VALID'
#define CE_FSMONITOR_VALID   (1 << 21)
                              ^
/datasets/git/fsmonitor.c:503:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_cache_changed)
                                     ^
                                      {
/datasets/git/fsmonitor.c:504:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        istate->cache_changed |= FSMONITOR_CHANGED;
                        ^
/datasets/git/fsmonitor.c:504:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        istate->cache_changed |= FSMONITOR_CHANGED;
                                                 ^
/datasets/git/./refs/../cache.h:306:28: note: expanded from macro 'FSMONITOR_CHANGED'
#define FSMONITOR_CHANGED       (1 << 8)
                                 ^
/datasets/git/fsmonitor.c:506:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (istate->untracked)
                                      ^
                                       {
/datasets/git/fsmonitor.c:514:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(istate->fsmonitor_last_update);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/fsmonitor.c:551:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i;
                     ^
                       = 0
/datasets/git/fsmonitor.c:551:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/fsmonitor.c:554:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                trace_printf_key(&trace_fsmonitor, "add fsmonitor");
                ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/fsmonitor.c:555:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                istate->cache_changed |= FSMONITOR_CHANGED;
                ^
/datasets/git/fsmonitor.c:555:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                istate->cache_changed |= FSMONITOR_CHANGED;
                                         ^
/datasets/git/./refs/../cache.h:306:28: note: expanded from macro 'FSMONITOR_CHANGED'
#define FSMONITOR_CHANGED       (1 << 8)
                                 ^
/datasets/git/fsmonitor.c:559:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < istate->cache_nr; i++)
                ^
/datasets/git/fsmonitor.c:559:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < istate->cache_nr; i++)
                                                      ^
                                                       {
/datasets/git/fsmonitor.c:560:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        istate->cache[i]->ce_flags &= ~CE_FSMONITOR_VALID;
                        ^                             ~~~~~~~~~~~~~~~~~~~
/datasets/git/fsmonitor.c:560:34: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                        istate->cache[i]->ce_flags &= ~CE_FSMONITOR_VALID;
                                                      ^
/datasets/git/fsmonitor.c:560:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        istate->cache[i]->ce_flags &= ~CE_FSMONITOR_VALID;
                                                       ^
/datasets/git/./refs/../cache.h:173:31: note: expanded from macro 'CE_FSMONITOR_VALID'
#define CE_FSMONITOR_VALID   (1 << 21)
                              ^
/datasets/git/fsmonitor.c:576:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                trace_printf_key(&trace_fsmonitor, "remove fsmonitor");
                ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/fsmonitor.c:577:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                istate->cache_changed |= FSMONITOR_CHANGED;
                ^
/datasets/git/fsmonitor.c:577:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                istate->cache_changed |= FSMONITOR_CHANGED;
                                         ^
/datasets/git/./refs/../cache.h:306:28: note: expanded from macro 'FSMONITOR_CHANGED'
#define FSMONITOR_CHANGED       (1 << 8)
                                 ^
/datasets/git/fsmonitor.c:578:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FREE_AND_NULL(istate->fsmonitor_last_update);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/fsmonitor.c:584:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i;
                     ^
                       = 0
/datasets/git/fsmonitor.c:584:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/fsmonitor.c:591:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = 0; i < istate->cache_nr; i++) {
                        ^
/datasets/git/fsmonitor.c:592:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (S_ISGITLINK(istate->cache[i]->ce_mode))
                                    ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/fsmonitor.c:592:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (S_ISGITLINK(istate->cache[i]->ce_mode))
                                                                           ^
                                                                            {
/datasets/git/fsmonitor.c:594:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                istate->cache[i]->ce_flags |= CE_FSMONITOR_VALID;
                                ^
/datasets/git/fsmonitor.c:594:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                istate->cache[i]->ce_flags |= CE_FSMONITOR_VALID;
                                                              ^
/datasets/git/./refs/../cache.h:173:31: note: expanded from macro 'CE_FSMONITOR_VALID'
#define CE_FSMONITOR_VALID   (1 << 21)
                              ^
/datasets/git/fsmonitor.c:608:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fsmonitor_enabled)
                              ^
                               {
/datasets/git/fsmonitor.c:610:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/gettext.c:6:1: warning: #includes are not sorted properly [llvm-include-order]
#include "exec-cmd.h"
^        ~~~~~~~~~~~~
         "config.h"
/datasets/git/gettext.c:13:1: warning: system include libintl.h not allowed [llvmlibc-restrict-system-libc-headers]
#       include <libintl.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/gettext.c:35:1: warning: system include langinfo.h not allowed [llvmlibc-restrict-system-libc-headers]
#               include <langinfo.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/gettext.c:40:20: warning: variable 'charset' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *charset;
                   ^
/datasets/git/gettext.c:50:14: warning: variable 'retval' is not initialized [cppcoreguidelines-init-variables]
        const char *retval;
                    ^
                           = NULL
/datasets/git/gettext.c:52:11: warning: function is not thread safe [concurrency-mt-unsafe]
        retval = getenv("LANGUAGE");
                 ^
/datasets/git/gettext.c:53:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (retval && *retval)
                              ^
                               {
/datasets/git/gettext.c:57:11: warning: function is not thread safe [concurrency-mt-unsafe]
        retval = setlocale(LC_MESSAGES, NULL);
                 ^
/datasets/git/gettext.c:59:3: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                strcmp(retval, "C") &&
                ^
                                    != 0
/datasets/git/gettext.c:60:3: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                strcmp(retval, "POSIX"))
                ^
                                        != 0
/datasets/git/gettext.c:60:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                strcmp(retval, "POSIX"))
                                        ^
                                         {
/datasets/git/gettext.c:71:11: warning: 26 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        char buf[26];
                 ^
/datasets/git/gettext.c:72:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/gettext.c:73:10: warning: variable name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
        va_list ap;
                ^
/datasets/git/gettext.c:75:8: warning: Call to function 'vsnprintf' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'vsnprintf_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        ret = vsnprintf(buf, sizeof(buf), fmt, ap);
              ^~~~~~~~~
/datasets/git/gettext.c:75:8: note: Call to function 'vsnprintf' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'vsnprintf_s' in case of C11
        ret = vsnprintf(buf, sizeof(buf), fmt, ap);
              ^~~~~~~~~
/datasets/git/gettext.c:75:8: warning: Function 'vsnprintf' is called with an uninitialized va_list argument [clang-analyzer-valist.Uninitialized]
        ret = vsnprintf(buf, sizeof(buf), fmt, ap);
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/gettext.c:75:8: note: Function 'vsnprintf' is called with an uninitialized va_list argument
        ret = vsnprintf(buf, sizeof(buf), fmt, ap);
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/gettext.c:82:12: warning: function is not thread safe [concurrency-mt-unsafe]
        charset = locale_charset();
                  ^
/datasets/git/gettext.c:36:28: note: expanded from macro 'locale_charset'
#               define locale_charset() nl_langinfo(CODESET)
                                        ^
/datasets/git/gettext.c:99:29: warning: 13 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (test_vsnprintf("%.*s", 13, "David_K\345gedal") < 0)
                                   ^
/datasets/git/gettext.c:99:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (test_vsnprintf("%.*s", 13, "David_K\345gedal") < 0)
                                                               ^
                                                                {
/datasets/git/gettext.c:100:3: warning: the value returned by this function should be used [cert-err33-c]
                setlocale(LC_CTYPE, "C");
                ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/gettext.c:100:3: note: cast the expression to void to silence this warning
/datasets/git/gettext.c:100:3: warning: function is not thread safe [concurrency-mt-unsafe]
                setlocale(LC_CTYPE, "C");
                ^
/datasets/git/gettext.c:105:22: warning: function is not thread safe [concurrency-mt-unsafe]
        const char *podir = getenv(GIT_TEXT_DOMAIN_DIR_ENVIRONMENT);
                            ^
/datasets/git/gettext.c:106:8: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        char *p = NULL;
              ^
/datasets/git/gettext.c:108:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!podir)
                   ^
                    {
/datasets/git/gettext.c:117:2: warning: the value returned by this function should be used [cert-err33-c]
        setlocale(LC_MESSAGES, "");
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/gettext.c:117:2: note: cast the expression to void to silence this warning
/datasets/git/gettext.c:117:2: warning: function is not thread safe [concurrency-mt-unsafe]
        setlocale(LC_MESSAGES, "");
        ^
/datasets/git/gettext.c:118:2: warning: the value returned by this function should be used [cert-err33-c]
        setlocale(LC_TIME, "");
        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/gettext.c:118:2: note: cast the expression to void to silence this warning
/datasets/git/gettext.c:118:2: warning: function is not thread safe [concurrency-mt-unsafe]
        setlocale(LC_TIME, "");
        ^
/datasets/git/gettext.c:126:31: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
int gettext_width(const char *s)
                              ^
/datasets/git/gettext.c:129:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_utf8 == -1)
                          ^
                           {
/datasets/git/gettext.c:132:19: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return is_utf8 ? utf8_strwidth(s) : strlen(s);
                         ^
/datasets/git/gettext.c:132:38: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return is_utf8 ? utf8_strwidth(s) : strlen(s);
                                            ^
/datasets/git/git.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "alias.h"
/datasets/git/git.c:9:1: warning: replace macro with enum [modernize-macro-to-enum]
#define RUN_SETUP               (1<<0)
^~~~~~~~
                  =                   ,
/datasets/git/git.c:9:9: warning: macro 'RUN_SETUP' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define RUN_SETUP               (1<<0)
        ^
/datasets/git/git.c:10:9: warning: macro 'RUN_SETUP_GENTLY' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define RUN_SETUP_GENTLY        (1<<1)
        ^
/datasets/git/git.c:11:9: warning: macro 'USE_PAGER' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define USE_PAGER               (1<<2)
        ^
/datasets/git/git.c:16:9: warning: macro 'NEED_WORK_TREE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define NEED_WORK_TREE          (1<<3)
        ^
/datasets/git/git.c:17:9: warning: macro 'SUPPORT_SUPER_PREFIX' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define SUPPORT_SUPER_PREFIX    (1<<4)
        ^
/datasets/git/git.c:18:9: warning: macro 'DELAY_PAGER_CONFIG' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define DELAY_PAGER_CONFIG      (1<<5)
        ^
/datasets/git/git.c:19:9: warning: macro 'NO_PARSEOPT' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define NO_PARSEOPT             (1<<6) /* parse-options is not used */
        ^
/datasets/git/git.c:21:8: warning: accessing fields in struct 'cmd_struct' is inefficient due to padding; only needs 20 bytes but is using 24 bytes [altera-struct-pack-align]
struct cmd_struct {
       ^
/datasets/git/git.c:21:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'cmd_struct'
/datasets/git/git.c:21:8: warning: accessing fields in struct 'cmd_struct' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct cmd_struct {
       ^
/datasets/git/git.c:21:8: note: use "__attribute__((aligned(32)))" to align struct 'cmd_struct' to 32 bytes
/datasets/git/git.c:41:12: warning: variable 'use_pager' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int use_pager = -1;
           ^
/datasets/git/git.c:43:13: warning: function 'list_builtins' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
static void list_builtins(struct string_list *list, unsigned int exclude_option);
            ^
/datasets/git/git.c:651:13: note: the definition seen here
static void list_builtins(struct string_list *out, unsigned int exclude_option)
            ^
/datasets/git/git.c:43:13: note: differing parameters are named here: ('list'), in definition: ('out')
static void list_builtins(struct string_list *list, unsigned int exclude_option);
            ^                                 ~~~~
                                              out
/datasets/git/git.c:47:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0;
            ^
/datasets/git/git.c:49:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (i < list->nr) {
        ^
/datasets/git/git.c:50:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strstr(list->items[i].string, "--"))
                                                        ^
                                                         {
/datasets/git/git.c:52:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/git.c:59:18: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int token_len = strlen(token);
                        ^
/datasets/git/git.c:67:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/git.c:67:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/git.c:68:6: warning: variable 'nongit' is not initialized [cppcoreguidelines-init-variables]
        int nongit;
            ^
                   = 0
/datasets/git/git.c:76:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*spec) {
        ^
/datasets/git/git.c:76:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'spec' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (*spec) {
               ^
/datasets/git/git.c:78:13: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int len = sep - spec;
                          ^
/datasets/git/git.c:80:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (match_token(spec, len, "builtins"))
                                                       ^
                                                        {
/datasets/git/git.c:82:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (match_token(spec, len, "main"))
                                                        ^
                                                         {
/datasets/git/git.c:84:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (match_token(spec, len, "others"))
                                                          ^
                                                           {
/datasets/git/git.c:86:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (match_token(spec, len, "nohelpers"))
                                                             ^
                                                              {
/datasets/git/git.c:88:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (match_token(spec, len, "alias"))
                                                         ^
                                                          {
/datasets/git/git.c:90:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (match_token(spec, len, "config"))
                                                          ^
                                                           {
/datasets/git/git.c:92:18: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                else if (len > 5 && !strncmp(spec, "list-", 5)) {
                               ^
/datasets/git/git.c:92:47: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                else if (len > 5 && !strncmp(spec, "list-", 5)) {
                                                            ^
/datasets/git/git.c:93:18: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                        struct strbuf sb = STRBUF_INIT;
                                      ^
/datasets/git/git.c:95:27: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        strbuf_add(&sb, spec + 5, len - 5);
                                               ^
/datasets/git/git.c:95:36: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        strbuf_add(&sb, spec + 5, len - 5);
                                                        ^
/datasets/git/git.c:99:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/git.c:102:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*spec == ',')
                                 ^
                                  {
/datasets/git/git.c:105:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < list.nr; i++)
        ^
/datasets/git/git.c:105:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < list.nr; i++)
                                     ^
                                      {
/datasets/git/git.c:115:3: warning: function is not thread safe [concurrency-mt-unsafe]
                setenv("GIT_PAGER", "cat", 1);
                ^
/datasets/git/git.c:127:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (use_pager != -1 || pager_in_use())
                                              ^
                                               {
/datasets/git/git.c:130:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (use_pager == -1)
                            ^
                             {
/datasets/git/git.c:135:12: warning: function 'handle_options' has cognitive complexity of 136 (threshold 25) [readability-function-cognitive-complexity]
static int handle_options(const char ***argv, int *argc, int *envchanged)
           ^
/datasets/git/git.c:139:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (*argc > 0) {
        ^
/datasets/git/git.c:141:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (cmd[0] != '-')
                ^
/datasets/git/git.c:149:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(cmd, "--help") || !strcmp(cmd, "-h") ||
                ^
/datasets/git/git.c:150:33: note: +1
                    !strcmp(cmd, "--version") || !strcmp(cmd, "-v"))
                                              ^
/datasets/git/git.c:156:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (skip_prefix(cmd, "--exec-path", &cmd)) {
                ^
/datasets/git/git.c:157:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (*cmd == '=')
                        ^
/datasets/git/git.c:159:4: note: +1, nesting level increased to 3
                        else {
                        ^
/datasets/git/git.c:164:10: note: +1, nesting level increased to 2
                } else if (!strcmp(cmd, "--html-path")) {
                       ^
/datasets/git/git.c:168:10: note: +1, nesting level increased to 2
                } else if (!strcmp(cmd, "--man-path")) {
                       ^
/datasets/git/git.c:172:10: note: +1, nesting level increased to 2
                } else if (!strcmp(cmd, "--info-path")) {
                       ^
/datasets/git/git.c:176:10: note: +1, nesting level increased to 2
                } else if (!strcmp(cmd, "-p") || !strcmp(cmd, "--paginate")) {
                       ^
/datasets/git/git.c:176:33: note: +1
                } else if (!strcmp(cmd, "-p") || !strcmp(cmd, "--paginate")) {
                                              ^
/datasets/git/git.c:178:10: note: +1, nesting level increased to 2
                } else if (!strcmp(cmd, "-P") || !strcmp(cmd, "--no-pager")) {
                       ^
/datasets/git/git.c:178:33: note: +1
                } else if (!strcmp(cmd, "-P") || !strcmp(cmd, "--no-pager")) {
                                              ^
/datasets/git/git.c:180:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (envchanged)
                        ^
/datasets/git/git.c:182:10: note: +1, nesting level increased to 2
                } else if (!strcmp(cmd, "--no-replace-objects")) {
                       ^
/datasets/git/git.c:185:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (envchanged)
                        ^
/datasets/git/git.c:187:10: note: +1, nesting level increased to 2
                } else if (!strcmp(cmd, "--git-dir")) {
                       ^
/datasets/git/git.c:188:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (*argc < 2) {
                        ^
/datasets/git/git.c:193:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (envchanged)
                        ^
/datasets/git/git.c:197:10: note: +1, nesting level increased to 2
                } else if (skip_prefix(cmd, "--git-dir=", &cmd)) {
                       ^
/datasets/git/git.c:199:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (envchanged)
                        ^
/datasets/git/git.c:201:10: note: +1, nesting level increased to 2
                } else if (!strcmp(cmd, "--namespace")) {
                       ^
/datasets/git/git.c:202:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (*argc < 2) {
                        ^
/datasets/git/git.c:207:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (envchanged)
                        ^
/datasets/git/git.c:211:10: note: +1, nesting level increased to 2
                } else if (skip_prefix(cmd, "--namespace=", &cmd)) {
                       ^
/datasets/git/git.c:213:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (envchanged)
                        ^
/datasets/git/git.c:215:10: note: +1, nesting level increased to 2
                } else if (!strcmp(cmd, "--work-tree")) {
                       ^
/datasets/git/git.c:216:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (*argc < 2) {
                        ^
/datasets/git/git.c:221:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (envchanged)
                        ^
/datasets/git/git.c:225:10: note: +1, nesting level increased to 2
                } else if (skip_prefix(cmd, "--work-tree=", &cmd)) {
                       ^
/datasets/git/git.c:227:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (envchanged)
                        ^
/datasets/git/git.c:229:10: note: +1, nesting level increased to 2
                } else if (!strcmp(cmd, "--super-prefix")) {
                       ^
/datasets/git/git.c:230:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (*argc < 2) {
                        ^
/datasets/git/git.c:235:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (envchanged)
                        ^
/datasets/git/git.c:239:10: note: +1, nesting level increased to 2
                } else if (skip_prefix(cmd, "--super-prefix=", &cmd)) {
                       ^
/datasets/git/git.c:241:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (envchanged)
                        ^
/datasets/git/git.c:243:10: note: +1, nesting level increased to 2
                } else if (!strcmp(cmd, "--bare")) {
                       ^
/datasets/git/git.c:249:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (envchanged)
                        ^
/datasets/git/git.c:251:10: note: +1, nesting level increased to 2
                } else if (!strcmp(cmd, "-c")) {
                       ^
/datasets/git/git.c:252:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (*argc < 2) {
                        ^
/datasets/git/git.c:259:10: note: +1, nesting level increased to 2
                } else if (!strcmp(cmd, "--config-env")) {
                       ^
/datasets/git/git.c:260:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (*argc < 2) {
                        ^
/datasets/git/git.c:267:10: note: +1, nesting level increased to 2
                } else if (skip_prefix(cmd, "--config-env=", &cmd)) {
                       ^
/datasets/git/git.c:269:10: note: +1, nesting level increased to 2
                } else if (!strcmp(cmd, "--literal-pathspecs")) {
                       ^
/datasets/git/git.c:271:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (envchanged)
                        ^
/datasets/git/git.c:273:10: note: +1, nesting level increased to 2
                } else if (!strcmp(cmd, "--no-literal-pathspecs")) {
                       ^
/datasets/git/git.c:275:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (envchanged)
                        ^
/datasets/git/git.c:277:10: note: +1, nesting level increased to 2
                } else if (!strcmp(cmd, "--glob-pathspecs")) {
                       ^
/datasets/git/git.c:279:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (envchanged)
                        ^
/datasets/git/git.c:281:10: note: +1, nesting level increased to 2
                } else if (!strcmp(cmd, "--noglob-pathspecs")) {
                       ^
/datasets/git/git.c:283:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (envchanged)
                        ^
/datasets/git/git.c:285:10: note: +1, nesting level increased to 2
                } else if (!strcmp(cmd, "--icase-pathspecs")) {
                       ^
/datasets/git/git.c:287:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (envchanged)
                        ^
/datasets/git/git.c:289:10: note: +1, nesting level increased to 2
                } else if (!strcmp(cmd, "--no-optional-locks")) {
                       ^
/datasets/git/git.c:291:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (envchanged)
                        ^
/datasets/git/git.c:293:10: note: +1, nesting level increased to 2
                } else if (!strcmp(cmd, "--shallow-file")) {
                       ^
/datasets/git/git.c:297:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (envchanged)
                        ^
/datasets/git/git.c:299:10: note: +1, nesting level increased to 2
                } else if (!strcmp(cmd, "-C")) {
                       ^
/datasets/git/git.c:300:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (*argc < 2) {
                        ^
/datasets/git/git.c:304:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if ((*argv)[1][0]) {
                        ^
/datasets/git/git.c:305:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (chdir((*argv)[1]))
                                ^
/datasets/git/git.c:307:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (envchanged)
                                ^
/datasets/git/git.c:312:10: note: +1, nesting level increased to 2
                } else if (skip_prefix(cmd, "--list-cmds=", &cmd)) {
                       ^
/datasets/git/git.c:314:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!strcmp(cmd, "parseopt")) {
                        ^
/datasets/git/git.c:319:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                for (i = 0; i < list.nr; i++)
                                ^
/datasets/git/git.c:323:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/git.c:326:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/git.c:135:47: warning: 2 adjacent parameters of 'handle_options' of similar type ('int *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int handle_options(const char ***argv, int *argc, int *envchanged)
                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/git.c:135:52: note: the first parameter in the range is 'argc'
static int handle_options(const char ***argv, int *argc, int *envchanged)
                                                   ^~~~
/datasets/git/git.c:135:63: note: the last parameter in the range is 'envchanged'
static int handle_options(const char ***argv, int *argc, int *envchanged)
                                                              ^~~~~~~~~~
/datasets/git/git.c:141:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cmd[0] != '-')
                                  ^
                                   {
/datasets/git/git.c:150:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !strcmp(cmd, "--version") || !strcmp(cmd, "-v"))
                                                                    ^
                                                                     {
/datasets/git/git.c:157:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (*cmd == '=')
                                        ^
                                         {
/datasets/git/git.c:162:5: warning: function is not thread safe [concurrency-mt-unsafe]
                                exit(0);
                                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/git.c:167:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        exit(0);
                        ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/git.c:171:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        exit(0);
                        ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/git.c:175:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        exit(0);
                        ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/git.c:180:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (envchanged)
                                       ^
                                        {
/datasets/git/git.c:184:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        setenv(NO_REPLACE_OBJECTS_ENVIRONMENT, "1", 1);
                        ^
/datasets/git/git.c:185:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (envchanged)
                                       ^
                                        {
/datasets/git/git.c:189:5: warning: the value returned by this function should be used [cert-err33-c]
                                fprintf(stderr, _("no directory given for '%s' option\n" ), "--git-dir");
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/git.c:189:5: note: cast the expression to void to silence this warning
/datasets/git/git.c:192:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        setenv(GIT_DIR_ENVIRONMENT, (*argv)[1], 1);
                        ^
/datasets/git/git.c:193:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (envchanged)
                                       ^
                                        {
/datasets/git/git.c:198:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        setenv(GIT_DIR_ENVIRONMENT, cmd, 1);
                        ^
/datasets/git/git.c:199:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (envchanged)
                                       ^
                                        {
/datasets/git/git.c:203:5: warning: the value returned by this function should be used [cert-err33-c]
                                fprintf(stderr, _("no namespace given for --namespace\n" ));
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/git.c:203:5: note: cast the expression to void to silence this warning
/datasets/git/git.c:206:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        setenv(GIT_NAMESPACE_ENVIRONMENT, (*argv)[1], 1);
                        ^
/datasets/git/git.c:207:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (envchanged)
                                       ^
                                        {
/datasets/git/git.c:212:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        setenv(GIT_NAMESPACE_ENVIRONMENT, cmd, 1);
                        ^
/datasets/git/git.c:213:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (envchanged)
                                       ^
                                        {
/datasets/git/git.c:217:5: warning: the value returned by this function should be used [cert-err33-c]
                                fprintf(stderr, _("no directory given for '%s' option\n" ), "--work-tree");
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/git.c:217:5: note: cast the expression to void to silence this warning
/datasets/git/git.c:220:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        setenv(GIT_WORK_TREE_ENVIRONMENT, (*argv)[1], 1);
                        ^
/datasets/git/git.c:221:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (envchanged)
                                       ^
                                        {
/datasets/git/git.c:226:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        setenv(GIT_WORK_TREE_ENVIRONMENT, cmd, 1);
                        ^
/datasets/git/git.c:227:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (envchanged)
                                       ^
                                        {
/datasets/git/git.c:231:5: warning: the value returned by this function should be used [cert-err33-c]
                                fprintf(stderr, _("no prefix given for --super-prefix\n" ));
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/git.c:231:5: note: cast the expression to void to silence this warning
/datasets/git/git.c:234:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        setenv(GIT_SUPER_PREFIX_ENVIRONMENT, (*argv)[1], 1);
                        ^
/datasets/git/git.c:235:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (envchanged)
                                       ^
                                        {
/datasets/git/git.c:240:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        setenv(GIT_SUPER_PREFIX_ENVIRONMENT, cmd, 1);
                        ^
/datasets/git/git.c:241:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (envchanged)
                                       ^
                                        {
/datasets/git/git.c:246:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        setenv(GIT_DIR_ENVIRONMENT, cwd, 0);
                        ^
/datasets/git/git.c:248:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        setenv(GIT_IMPLICIT_WORK_TREE_ENVIRONMENT, "0", 1);
                        ^
/datasets/git/git.c:249:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (envchanged)
                                       ^
                                        {
/datasets/git/git.c:253:5: warning: the value returned by this function should be used [cert-err33-c]
                                fprintf(stderr, _("-c expects a configuration string\n" ));
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/git.c:253:5: note: cast the expression to void to silence this warning
/datasets/git/git.c:261:5: warning: the value returned by this function should be used [cert-err33-c]
                                fprintf(stderr, _("no config key given for --config-env\n" ));
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/git.c:261:5: note: cast the expression to void to silence this warning
/datasets/git/git.c:270:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        setenv(GIT_LITERAL_PATHSPECS_ENVIRONMENT, "1", 1);
                        ^
/datasets/git/git.c:271:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (envchanged)
                                       ^
                                        {
/datasets/git/git.c:274:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        setenv(GIT_LITERAL_PATHSPECS_ENVIRONMENT, "0", 1);
                        ^
/datasets/git/git.c:275:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (envchanged)
                                       ^
                                        {
/datasets/git/git.c:278:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        setenv(GIT_GLOB_PATHSPECS_ENVIRONMENT, "1", 1);
                        ^
/datasets/git/git.c:279:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (envchanged)
                                       ^
                                        {
/datasets/git/git.c:282:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        setenv(GIT_NOGLOB_PATHSPECS_ENVIRONMENT, "1", 1);
                        ^
/datasets/git/git.c:283:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (envchanged)
                                       ^
                                        {
/datasets/git/git.c:286:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        setenv(GIT_ICASE_PATHSPECS_ENVIRONMENT, "1", 1);
                        ^
/datasets/git/git.c:287:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (envchanged)
                                       ^
                                        {
/datasets/git/git.c:290:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        setenv(GIT_OPTIONAL_LOCKS_ENVIRONMENT, "0", 1);
                        ^
/datasets/git/git.c:291:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (envchanged)
                                       ^
                                        {
/datasets/git/git.c:297:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (envchanged)
                                       ^
                                        {
/datasets/git/git.c:301:5: warning: the value returned by this function should be used [cert-err33-c]
                                fprintf(stderr, _("no directory given for '%s' option\n" ), "-C");
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/git.c:301:5: note: cast the expression to void to silence this warning
/datasets/git/git.c:305:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (chdir((*argv)[1]))
                                                      ^
                                                       {
/datasets/git/git.c:307:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (envchanged)
                                               ^
                                                {
/datasets/git/git.c:316:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                                int i;
                                    ^
                                      = 0
/datasets/git/git.c:316:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/git.c:318:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                list_builtins(&list, NO_PARSEOPT);
                                                     ^
/datasets/git/git.c:19:23: note: expanded from macro 'NO_PARSEOPT'
#define NO_PARSEOPT             (1<<6) /* parse-options is not used */
                                 ^
/datasets/git/git.c:319:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                for (i = 0; i < list.nr; i++)
                                ^
/datasets/git/git.c:319:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                for (i = 0; i < list.nr; i++)
                                                             ^
                                                              {
/datasets/git/git.c:322:5: warning: function is not thread safe [concurrency-mt-unsafe]
                                exit(0);
                                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/git.c:324:5: warning: function is not thread safe [concurrency-mt-unsafe]
                                exit(list_cmds(cmd));
                                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/git.c:327:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, _("unknown option: %s\n"), cmd);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/git.c:327:4: note: cast the expression to void to silence this warning
/datasets/git/git.c:334:9: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return (*argv) - orig_argv;
               ^
/datasets/git/git.c:339:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int envchanged = 0, ret = 0, saved_errno = errno;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/git.c:340:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int count, option_count;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/git.c:340:6: warning: variable 'count' is not initialized [cppcoreguidelines-init-variables]
        int count, option_count;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/git.c:340:13: warning: variable 'option_count' is not initialized [cppcoreguidelines-init-variables]
        int count, option_count;
                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/git.c:341:15: warning: variable 'new_argv' is not initialized [cppcoreguidelines-init-variables]
        const char **new_argv;
                     ^
                              = NULL
/datasets/git/git.c:342:14: warning: variable 'alias_command' is not initialized [cppcoreguidelines-init-variables]
        const char *alias_command;
                    ^
                                  = NULL
/datasets/git/git.c:343:8: warning: variable 'alias_string' is not initialized [cppcoreguidelines-init-variables]
        char *alias_string;
              ^
                           = NULL
/datasets/git/git.c:348:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*argcp > 1 && !strcmp((*argv)[1], "-h"))
                                                            ^
                                                             {
/datasets/git/git.c:353:8: warning: variable 'nongit_ok' is not initialized [cppcoreguidelines-init-variables]
                        int nongit_ok;
                            ^
                                      = 0
/datasets/git/git.c:373:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ret >= 0)   /* normal exit */
                                     ^
                                      {
/datasets/git/git.c:374:5: warning: function is not thread safe [concurrency-mt-unsafe]
                                exit(ret);
                                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/git.c:380:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (count < 0)
                              ^
                               {
/datasets/git/git.c:384:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (envchanged)
                               ^
                                {
/datasets/git/git.c:391:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (count < 1)
                              ^
                               {
/datasets/git/git.c:394:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(alias_command, new_argv[0]))
                                                        ^
                                                         {
/datasets/git/git.c:397:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                trace_argv_printf(new_argv,
                ^
/datasets/git/./trace.h:184:2: note: expanded from macro 'trace_argv_printf'
        do {                                                                \
        ^
/datasets/git/git.c:420:12: warning: function 'run_builtin' has cognitive complexity of 34 (threshold 25) [readability-function-cognitive-complexity]
static int run_builtin(struct cmd_struct *p, int argc, const char **argv)
           ^
/datasets/git/git.c:427:19: note: +1
        help = argc == 2 && !strcmp(argv[1], "-h");
                         ^
/datasets/git/git.c:428:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (help && (run_setup & RUN_SETUP))
        ^
/datasets/git/git.c:428:11: note: +1
        if (help && (run_setup & RUN_SETUP))
                 ^
/datasets/git/git.c:432:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (run_setup & RUN_SETUP) {
        ^
/datasets/git/git.c:434:9: note: +1, nesting level increased to 1
        } else if (run_setup & RUN_SETUP_GENTLY) {
               ^
/datasets/git/git.c:437:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/git.c:440:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(!prefix || *prefix);
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/git.c:440:17: note: +1
        assert(!prefix || *prefix);
                       ^
/datasets/git/git.c:440:2: note: nesting level increased to 1
        assert(!prefix || *prefix);
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/git.c:440:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(!prefix || *prefix);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/git.c:440:17: note: +1
        assert(!prefix || *prefix);
                       ^
/datasets/git/git.c:440:2: note: +1, nesting level increased to 2
        assert(!prefix || *prefix);
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/git.c:442:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (use_pager == -1 && run_setup &&
        ^
/datasets/git/git.c:442:35: note: +1
        if (use_pager == -1 && run_setup &&
                                         ^
/datasets/git/git.c:445:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (use_pager == -1 && p->option & USE_PAGER)
        ^
/datasets/git/git.c:445:22: note: +1
        if (use_pager == -1 && p->option & USE_PAGER)
                            ^
/datasets/git/git.c:447:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (run_setup && startup_info->have_repository)
        ^
/datasets/git/git.c:447:16: note: +1
        if (run_setup && startup_info->have_repository)
                      ^
/datasets/git/git.c:452:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!help && get_super_prefix()) {
        ^
/datasets/git/git.c:452:12: note: +1
        if (!help && get_super_prefix()) {
                  ^
/datasets/git/git.c:453:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!(p->option & SUPPORT_SUPER_PREFIX))
                ^
/datasets/git/git.c:457:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!help && p->option & NEED_WORK_TREE)
        ^
/datasets/git/git.c:457:12: note: +1
        if (!help && p->option & NEED_WORK_TREE)
                  ^
/datasets/git/git.c:460:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        trace_argv_printf(argv, "trace: built-in: git");
        ^
/datasets/git/./trace.h:184:2: note: expanded from macro 'trace_argv_printf'
        do {                                                                \
        ^
/datasets/git/git.c:460:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        trace_argv_printf(argv, "trace: built-in: git");
        ^
/datasets/git/./trace.h:185:3: note: expanded from macro 'trace_argv_printf'
                if (trace_pass_fl(&trace_default_key))                      \
                ^
/datasets/git/git.c:469:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (status)
        ^
/datasets/git/git.c:473:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (fstat(fileno(stdout), &st))
        ^
/datasets/git/git.c:476:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (S_ISFIFO(st.st_mode) || S_ISSOCK(st.st_mode))
        ^
/datasets/git/git.c:476:27: note: +1
        if (S_ISFIFO(st.st_mode) || S_ISSOCK(st.st_mode))
                                 ^
/datasets/git/git.c:480:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (fflush(stdout))
        ^
/datasets/git/git.c:482:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ferror(stdout))
        ^
/datasets/git/git.c:484:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (fclose(stdout))
        ^
/datasets/git/git.c:420:43: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static int run_builtin(struct cmd_struct *p, int argc, const char **argv)
                                          ^
/datasets/git/git.c:422:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int status, help;
        ^~~~~~~~~~~~~~~~~
/datasets/git/git.c:422:6: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int status, help;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/git.c:422:14: warning: variable 'help' is not initialized [cppcoreguidelines-init-variables]
        int status, help;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/git.c:423:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/git.c:424:14: warning: variable 'prefix' is not initialized [cppcoreguidelines-init-variables]
        const char *prefix;
                    ^
                           = NULL
/datasets/git/git.c:425:18: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int run_setup = (p->option & (RUN_SETUP | RUN_SETUP_GENTLY));
                        ^
/datasets/git/git.c:425:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int run_setup = (p->option & (RUN_SETUP | RUN_SETUP_GENTLY));
                         ^           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/git.c:425:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int run_setup = (p->option & (RUN_SETUP | RUN_SETUP_GENTLY));
                                      ^
/datasets/git/git.c:9:20: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                ^~~~~~
/datasets/git/git.c:425:44: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int run_setup = (p->option & (RUN_SETUP | RUN_SETUP_GENTLY));
                                                  ^
/datasets/git/git.c:10:27: note: expanded from macro 'RUN_SETUP_GENTLY'
#define RUN_SETUP_GENTLY        (1<<1)
                                 ^
/datasets/git/git.c:428:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (help && (run_setup & RUN_SETUP))
                     ^~~~~~~~~
/datasets/git/git.c:428:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (help && (run_setup & RUN_SETUP))
                                 ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:428:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (help && (run_setup & RUN_SETUP))
                                            ^
                                             {
/datasets/git/git.c:430:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                run_setup = RUN_SETUP_GENTLY;
                            ^
/datasets/git/git.c:10:27: note: expanded from macro 'RUN_SETUP_GENTLY'
#define RUN_SETUP_GENTLY        (1<<1)
                                 ^
/datasets/git/git.c:432:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (run_setup & RUN_SETUP) {
            ^~~~~~~~~
/datasets/git/git.c:432:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (run_setup & RUN_SETUP) {
                        ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:434:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        } else if (run_setup & RUN_SETUP_GENTLY) {
                   ^~~~~~~~~
/datasets/git/git.c:434:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        } else if (run_setup & RUN_SETUP_GENTLY) {
                               ^
/datasets/git/git.c:10:27: note: expanded from macro 'RUN_SETUP_GENTLY'
#define RUN_SETUP_GENTLY        (1<<1)
                                 ^
/datasets/git/git.c:435:7: warning: variable 'nongit_ok' is not initialized [cppcoreguidelines-init-variables]
                int nongit_ok;
                    ^
                              = 0
/datasets/git/git.c:443:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                !(p->option & DELAY_PAGER_CONFIG))
                  ^
/datasets/git/git.c:443:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                !(p->option & DELAY_PAGER_CONFIG))
                              ^
/datasets/git/git.c:18:29: note: expanded from macro 'DELAY_PAGER_CONFIG'
#define DELAY_PAGER_CONFIG      (1<<5)
                                 ^
/datasets/git/git.c:443:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                !(p->option & DELAY_PAGER_CONFIG))
                                                  ^
                                                   {
/datasets/git/git.c:445:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (use_pager == -1 && p->option & USE_PAGER)
                               ^
/datasets/git/git.c:445:37: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (use_pager == -1 && p->option & USE_PAGER)
                                           ^
/datasets/git/git.c:11:21: note: expanded from macro 'USE_PAGER'
#define USE_PAGER               (1<<2)
                                 ^
/datasets/git/git.c:445:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (use_pager == -1 && p->option & USE_PAGER)
                                                     ^
                                                      {
/datasets/git/git.c:447:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (run_setup && startup_info->have_repository)
                                                       ^
                                                        {
/datasets/git/git.c:453:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(p->option & SUPPORT_SUPER_PREFIX))
                      ^
/datasets/git/git.c:453:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(p->option & SUPPORT_SUPER_PREFIX))
                                  ^
/datasets/git/git.c:17:31: note: expanded from macro 'SUPPORT_SUPER_PREFIX'
#define SUPPORT_SUPER_PREFIX    (1<<4)
                                 ^
/datasets/git/git.c:453:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(p->option & SUPPORT_SUPER_PREFIX))
                                                        ^
                                                         {
/datasets/git/git.c:457:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!help && p->option & NEED_WORK_TREE)
                     ^
/datasets/git/git.c:457:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!help && p->option & NEED_WORK_TREE)
                                 ^
/datasets/git/git.c:16:26: note: expanded from macro 'NEED_WORK_TREE'
#define NEED_WORK_TREE          (1<<3)
                                 ^
/datasets/git/git.c:457:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!help && p->option & NEED_WORK_TREE)
                                                ^
                                                 {
/datasets/git/git.c:460:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_argv_printf(argv, "trace: built-in: git");
        ^
/datasets/git/./trace.h:184:2: note: expanded from macro 'trace_argv_printf'
        do {                                                                \
        ^
/datasets/git/git.c:469:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (status)
                   ^
                    {
/datasets/git/git.c:473:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fstat(fileno(stdout), &st))
                                       ^
                                        {
/datasets/git/git.c:476:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (S_ISFIFO(st.st_mode) || S_ISSOCK(st.st_mode))
                                                         ^
                                                          {
/datasets/git/git.c:480:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fflush(stdout))
                           ^
                            {
/datasets/git/git.c:482:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ferror(stdout))
                           ^
                            {
/datasets/git/git.c:484:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fclose(stdout))
                           ^
                            {
/datasets/git/git.c:489:26: warning: variable 'commands' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct cmd_struct commands[] = {
                         ^
/datasets/git/git.c:490:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "add", cmd_add, RUN_SETUP | NEED_WORK_TREE },
                          ^
/datasets/git/git.c:9:20: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                ^~~~~~
/datasets/git/git.c:490:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "add", cmd_add, RUN_SETUP | NEED_WORK_TREE },
                                      ^
/datasets/git/git.c:16:26: note: expanded from macro 'NEED_WORK_TREE'
#define NEED_WORK_TREE          (1<<3)
                                 ^
/datasets/git/git.c:491:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "am", cmd_am, RUN_SETUP | NEED_WORK_TREE },
                        ^
/datasets/git/git.c:9:20: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                ^~~~~~
/datasets/git/git.c:491:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "am", cmd_am, RUN_SETUP | NEED_WORK_TREE },
                                    ^
/datasets/git/git.c:16:26: note: expanded from macro 'NEED_WORK_TREE'
#define NEED_WORK_TREE          (1<<3)
                                 ^
/datasets/git/git.c:492:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "annotate", cmd_annotate, RUN_SETUP },
                                    ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:493:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "apply", cmd_apply, RUN_SETUP_GENTLY },
                              ^
/datasets/git/git.c:10:27: note: expanded from macro 'RUN_SETUP_GENTLY'
#define RUN_SETUP_GENTLY        (1<<1)
                                 ^
/datasets/git/git.c:494:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "archive", cmd_archive, RUN_SETUP_GENTLY },
                                  ^
/datasets/git/git.c:10:27: note: expanded from macro 'RUN_SETUP_GENTLY'
#define RUN_SETUP_GENTLY        (1<<1)
                                 ^
/datasets/git/git.c:495:42: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "bisect--helper", cmd_bisect__helper, RUN_SETUP },
                                                ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:496:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "blame", cmd_blame, RUN_SETUP },
                              ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:497:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "branch", cmd_branch, RUN_SETUP | DELAY_PAGER_CONFIG },
                                ^
/datasets/git/git.c:9:20: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                ^~~~~~
/datasets/git/git.c:497:38: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "branch", cmd_branch, RUN_SETUP | DELAY_PAGER_CONFIG },
                                            ^
/datasets/git/git.c:18:29: note: expanded from macro 'DELAY_PAGER_CONFIG'
#define DELAY_PAGER_CONFIG      (1<<5)
                                 ^
/datasets/git/git.c:498:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "bugreport", cmd_bugreport, RUN_SETUP_GENTLY },
                                      ^
/datasets/git/git.c:10:27: note: expanded from macro 'RUN_SETUP_GENTLY'
#define RUN_SETUP_GENTLY        (1<<1)
                                 ^
/datasets/git/git.c:499:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "bundle", cmd_bundle, RUN_SETUP_GENTLY },
                                ^
/datasets/git/git.c:10:27: note: expanded from macro 'RUN_SETUP_GENTLY'
#define RUN_SETUP_GENTLY        (1<<1)
                                 ^
/datasets/git/git.c:500:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "cat-file", cmd_cat_file, RUN_SETUP },
                                    ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:501:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "check-attr", cmd_check_attr, RUN_SETUP },
                                        ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:502:38: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "check-ignore", cmd_check_ignore, RUN_SETUP | NEED_WORK_TREE },
                                            ^
/datasets/git/git.c:9:20: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                ^~~~~~
/datasets/git/git.c:502:50: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "check-ignore", cmd_check_ignore, RUN_SETUP | NEED_WORK_TREE },
                                                        ^
/datasets/git/git.c:16:26: note: expanded from macro 'NEED_WORK_TREE'
#define NEED_WORK_TREE          (1<<3)
                                 ^
/datasets/git/git.c:503:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "check-mailmap", cmd_check_mailmap, RUN_SETUP },
                                              ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:504:46: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "check-ref-format", cmd_check_ref_format, NO_PARSEOPT  },
                                                    ^
/datasets/git/git.c:19:23: note: expanded from macro 'NO_PARSEOPT'
#define NO_PARSEOPT             (1<<6) /* parse-options is not used */
                                 ^
/datasets/git/git.c:505:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "checkout", cmd_checkout, RUN_SETUP | NEED_WORK_TREE },
                                    ^
/datasets/git/git.c:9:20: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                ^~~~~~
/datasets/git/git.c:505:42: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "checkout", cmd_checkout, RUN_SETUP | NEED_WORK_TREE },
                                                ^
/datasets/git/git.c:16:26: note: expanded from macro 'NEED_WORK_TREE'
#define NEED_WORK_TREE          (1<<3)
                                 ^
/datasets/git/git.c:507:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                RUN_SETUP | NEED_WORK_TREE | SUPPORT_SUPER_PREFIX },
                ^
/datasets/git/git.c:9:20: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                ^
/datasets/git/git.c:507:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                RUN_SETUP | NEED_WORK_TREE | SUPPORT_SUPER_PREFIX },
                            ^
/datasets/git/git.c:16:26: note: expanded from macro 'NEED_WORK_TREE'
#define NEED_WORK_TREE          (1<<3)
                                 ^
/datasets/git/git.c:507:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                RUN_SETUP | NEED_WORK_TREE | SUPPORT_SUPER_PREFIX },
                                             ^
/datasets/git/git.c:17:31: note: expanded from macro 'SUPPORT_SUPER_PREFIX'
#define SUPPORT_SUPER_PREFIX    (1<<4)
                                 ^
/datasets/git/git.c:509:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                RUN_SETUP | NEED_WORK_TREE},
                ^
/datasets/git/git.c:9:20: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                ^~~~~~
/datasets/git/git.c:509:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                RUN_SETUP | NEED_WORK_TREE},
                            ^
/datasets/git/git.c:16:26: note: expanded from macro 'NEED_WORK_TREE'
#define NEED_WORK_TREE          (1<<3)
                                 ^
/datasets/git/git.c:510:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "cherry", cmd_cherry, RUN_SETUP },
                                ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:511:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "cherry-pick", cmd_cherry_pick, RUN_SETUP | NEED_WORK_TREE },
                                          ^
/datasets/git/git.c:9:20: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                ^~~~~~
/datasets/git/git.c:511:48: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "cherry-pick", cmd_cherry_pick, RUN_SETUP | NEED_WORK_TREE },
                                                      ^
/datasets/git/git.c:16:26: note: expanded from macro 'NEED_WORK_TREE'
#define NEED_WORK_TREE          (1<<3)
                                 ^
/datasets/git/git.c:512:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "clean", cmd_clean, RUN_SETUP | NEED_WORK_TREE },
                              ^
/datasets/git/git.c:9:20: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                ^~~~~~
/datasets/git/git.c:512:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "clean", cmd_clean, RUN_SETUP | NEED_WORK_TREE },
                                          ^
/datasets/git/git.c:16:26: note: expanded from macro 'NEED_WORK_TREE'
#define NEED_WORK_TREE          (1<<3)
                                 ^
/datasets/git/git.c:514:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "column", cmd_column, RUN_SETUP_GENTLY },
                                ^
/datasets/git/git.c:10:27: note: expanded from macro 'RUN_SETUP_GENTLY'
#define RUN_SETUP_GENTLY        (1<<1)
                                 ^
/datasets/git/git.c:515:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "commit", cmd_commit, RUN_SETUP | NEED_WORK_TREE },
                                ^
/datasets/git/git.c:9:20: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                ^~~~~~
/datasets/git/git.c:515:38: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "commit", cmd_commit, RUN_SETUP | NEED_WORK_TREE },
                                            ^
/datasets/git/git.c:16:26: note: expanded from macro 'NEED_WORK_TREE'
#define NEED_WORK_TREE          (1<<3)
                                 ^
/datasets/git/git.c:516:38: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "commit-graph", cmd_commit_graph, RUN_SETUP },
                                            ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:517:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "commit-tree", cmd_commit_tree, RUN_SETUP },
                                          ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:518:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "config", cmd_config, RUN_SETUP_GENTLY | DELAY_PAGER_CONFIG },
                                ^
/datasets/git/git.c:10:26: note: expanded from macro 'RUN_SETUP_GENTLY'
#define RUN_SETUP_GENTLY        (1<<1)
                                ^~~~~~
/datasets/git/git.c:518:45: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "config", cmd_config, RUN_SETUP_GENTLY | DELAY_PAGER_CONFIG },
                                                   ^
/datasets/git/git.c:18:29: note: expanded from macro 'DELAY_PAGER_CONFIG'
#define DELAY_PAGER_CONFIG      (1<<5)
                                 ^
/datasets/git/git.c:519:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "count-objects", cmd_count_objects, RUN_SETUP },
                                              ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:520:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "credential", cmd_credential, RUN_SETUP_GENTLY | NO_PARSEOPT },
                                        ^
/datasets/git/git.c:10:26: note: expanded from macro 'RUN_SETUP_GENTLY'
#define RUN_SETUP_GENTLY        (1<<1)
                                ^~~~~~
/datasets/git/git.c:520:53: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "credential", cmd_credential, RUN_SETUP_GENTLY | NO_PARSEOPT },
                                                           ^
/datasets/git/git.c:19:23: note: expanded from macro 'NO_PARSEOPT'
#define NO_PARSEOPT             (1<<6) /* parse-options is not used */
                                 ^
/datasets/git/git.c:524:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "describe", cmd_describe, RUN_SETUP },
                                    ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:525:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "diagnose", cmd_diagnose, RUN_SETUP_GENTLY },
                                    ^
/datasets/git/git.c:10:27: note: expanded from macro 'RUN_SETUP_GENTLY'
#define RUN_SETUP_GENTLY        (1<<1)
                                 ^
/datasets/git/git.c:526:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "diff", cmd_diff, NO_PARSEOPT },
                            ^
/datasets/git/git.c:19:23: note: expanded from macro 'NO_PARSEOPT'
#define NO_PARSEOPT             (1<<6) /* parse-options is not used */
                                 ^
/datasets/git/git.c:527:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "diff-files", cmd_diff_files, RUN_SETUP | NEED_WORK_TREE | NO_PARSEOPT },
                                        ^
/datasets/git/git.c:9:20: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                ^
/datasets/git/git.c:527:46: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "diff-files", cmd_diff_files, RUN_SETUP | NEED_WORK_TREE | NO_PARSEOPT },
                                                    ^
/datasets/git/git.c:16:26: note: expanded from macro 'NEED_WORK_TREE'
#define NEED_WORK_TREE          (1<<3)
                                 ^
/datasets/git/git.c:527:63: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "diff-files", cmd_diff_files, RUN_SETUP | NEED_WORK_TREE | NO_PARSEOPT },
                                                                     ^
/datasets/git/git.c:19:23: note: expanded from macro 'NO_PARSEOPT'
#define NO_PARSEOPT             (1<<6) /* parse-options is not used */
                                 ^
/datasets/git/git.c:528:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "diff-index", cmd_diff_index, RUN_SETUP | NO_PARSEOPT },
                                        ^
/datasets/git/git.c:9:20: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                ^~~~~~
/datasets/git/git.c:528:46: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "diff-index", cmd_diff_index, RUN_SETUP | NO_PARSEOPT },
                                                    ^
/datasets/git/git.c:19:23: note: expanded from macro 'NO_PARSEOPT'
#define NO_PARSEOPT             (1<<6) /* parse-options is not used */
                                 ^
/datasets/git/git.c:529:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "diff-tree", cmd_diff_tree, RUN_SETUP | NO_PARSEOPT },
                                      ^
/datasets/git/git.c:9:20: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                ^~~~~~
/datasets/git/git.c:529:44: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "diff-tree", cmd_diff_tree, RUN_SETUP | NO_PARSEOPT },
                                                  ^
/datasets/git/git.c:19:23: note: expanded from macro 'NO_PARSEOPT'
#define NO_PARSEOPT             (1<<6) /* parse-options is not used */
                                 ^
/datasets/git/git.c:530:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "difftool", cmd_difftool, RUN_SETUP_GENTLY },
                                    ^
/datasets/git/git.c:10:27: note: expanded from macro 'RUN_SETUP_GENTLY'
#define RUN_SETUP_GENTLY        (1<<1)
                                 ^
/datasets/git/git.c:532:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "fast-export", cmd_fast_export, RUN_SETUP },
                                          ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:533:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "fast-import", cmd_fast_import, RUN_SETUP | NO_PARSEOPT },
                                          ^
/datasets/git/git.c:9:20: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                ^~~~~~
/datasets/git/git.c:533:48: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "fast-import", cmd_fast_import, RUN_SETUP | NO_PARSEOPT },
                                                      ^
/datasets/git/git.c:19:23: note: expanded from macro 'NO_PARSEOPT'
#define NO_PARSEOPT             (1<<6) /* parse-options is not used */
                                 ^
/datasets/git/git.c:534:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "fetch", cmd_fetch, RUN_SETUP },
                              ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:535:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "fetch-pack", cmd_fetch_pack, RUN_SETUP | NO_PARSEOPT },
                                        ^
/datasets/git/git.c:9:20: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                ^~~~~~
/datasets/git/git.c:535:46: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "fetch-pack", cmd_fetch_pack, RUN_SETUP | NO_PARSEOPT },
                                                    ^
/datasets/git/git.c:19:23: note: expanded from macro 'NO_PARSEOPT'
#define NO_PARSEOPT             (1<<6) /* parse-options is not used */
                                 ^
/datasets/git/git.c:536:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "fmt-merge-msg", cmd_fmt_merge_msg, RUN_SETUP },
                                              ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:537:38: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "for-each-ref", cmd_for_each_ref, RUN_SETUP },
                                            ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:538:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "for-each-repo", cmd_for_each_repo, RUN_SETUP_GENTLY },
                                              ^
/datasets/git/git.c:10:27: note: expanded from macro 'RUN_SETUP_GENTLY'
#define RUN_SETUP_GENTLY        (1<<1)
                                 ^
/datasets/git/git.c:539:38: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "format-patch", cmd_format_patch, RUN_SETUP },
                                            ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:540:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "fsck", cmd_fsck, RUN_SETUP },
                            ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:541:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "fsck-objects", cmd_fsck, RUN_SETUP },
                                    ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:542:48: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "fsmonitor--daemon", cmd_fsmonitor__daemon, SUPPORT_SUPER_PREFIX | RUN_SETUP },
                                                      ^
/datasets/git/git.c:17:30: note: expanded from macro 'SUPPORT_SUPER_PREFIX'
#define SUPPORT_SUPER_PREFIX    (1<<4)
                                ^~~~~~
/datasets/git/git.c:542:71: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "fsmonitor--daemon", cmd_fsmonitor__daemon, SUPPORT_SUPER_PREFIX | RUN_SETUP },
                                                                             ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:543:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "gc", cmd_gc, RUN_SETUP },
                        ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:544:48: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "get-tar-commit-id", cmd_get_tar_commit_id, NO_PARSEOPT },
                                                      ^
/datasets/git/git.c:19:23: note: expanded from macro 'NO_PARSEOPT'
#define NO_PARSEOPT             (1<<6) /* parse-options is not used */
                                 ^
/datasets/git/git.c:545:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "grep", cmd_grep, RUN_SETUP_GENTLY },
                            ^
/datasets/git/git.c:10:27: note: expanded from macro 'RUN_SETUP_GENTLY'
#define RUN_SETUP_GENTLY        (1<<1)
                                 ^
/datasets/git/git.c:548:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "hook", cmd_hook, RUN_SETUP },
                            ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:549:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "index-pack", cmd_index_pack, RUN_SETUP_GENTLY | NO_PARSEOPT },
                                        ^
/datasets/git/git.c:10:26: note: expanded from macro 'RUN_SETUP_GENTLY'
#define RUN_SETUP_GENTLY        (1<<1)
                                ^~~~~~
/datasets/git/git.c:549:53: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "index-pack", cmd_index_pack, RUN_SETUP_GENTLY | NO_PARSEOPT },
                                                           ^
/datasets/git/git.c:19:23: note: expanded from macro 'NO_PARSEOPT'
#define NO_PARSEOPT             (1<<6) /* parse-options is not used */
                                 ^
/datasets/git/git.c:552:50: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "interpret-trailers", cmd_interpret_trailers, RUN_SETUP_GENTLY },
                                                        ^
/datasets/git/git.c:10:27: note: expanded from macro 'RUN_SETUP_GENTLY'
#define RUN_SETUP_GENTLY        (1<<1)
                                 ^
/datasets/git/git.c:553:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "log", cmd_log, RUN_SETUP },
                          ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:554:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "ls-files", cmd_ls_files, RUN_SETUP },
                                    ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:555:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "ls-remote", cmd_ls_remote, RUN_SETUP_GENTLY },
                                      ^
/datasets/git/git.c:10:27: note: expanded from macro 'RUN_SETUP_GENTLY'
#define RUN_SETUP_GENTLY        (1<<1)
                                 ^
/datasets/git/git.c:556:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "ls-tree", cmd_ls_tree, RUN_SETUP },
                                  ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:557:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "mailinfo", cmd_mailinfo, RUN_SETUP_GENTLY },
                                    ^
/datasets/git/git.c:10:27: note: expanded from macro 'RUN_SETUP_GENTLY'
#define RUN_SETUP_GENTLY        (1<<1)
                                 ^
/datasets/git/git.c:558:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "mailsplit", cmd_mailsplit, NO_PARSEOPT },
                                      ^
/datasets/git/git.c:19:23: note: expanded from macro 'NO_PARSEOPT'
#define NO_PARSEOPT             (1<<6) /* parse-options is not used */
                                 ^
/datasets/git/git.c:559:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "maintenance", cmd_maintenance, RUN_SETUP },
                                          ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:560:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "merge", cmd_merge, RUN_SETUP | NEED_WORK_TREE },
                              ^
/datasets/git/git.c:9:20: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                ^~~~~~
/datasets/git/git.c:560:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "merge", cmd_merge, RUN_SETUP | NEED_WORK_TREE },
                                          ^
/datasets/git/git.c:16:26: note: expanded from macro 'NEED_WORK_TREE'
#define NEED_WORK_TREE          (1<<3)
                                 ^
/datasets/git/git.c:561:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "merge-base", cmd_merge_base, RUN_SETUP },
                                        ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:562:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "merge-file", cmd_merge_file, RUN_SETUP_GENTLY },
                                        ^
/datasets/git/git.c:10:27: note: expanded from macro 'RUN_SETUP_GENTLY'
#define RUN_SETUP_GENTLY        (1<<1)
                                 ^
/datasets/git/git.c:563:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "merge-index", cmd_merge_index, RUN_SETUP | NO_PARSEOPT },
                                          ^
/datasets/git/git.c:9:20: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                ^~~~~~
/datasets/git/git.c:563:48: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "merge-index", cmd_merge_index, RUN_SETUP | NO_PARSEOPT },
                                                      ^
/datasets/git/git.c:19:23: note: expanded from macro 'NO_PARSEOPT'
#define NO_PARSEOPT             (1<<6) /* parse-options is not used */
                                 ^
/datasets/git/git.c:564:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "merge-ours", cmd_merge_ours, RUN_SETUP | NO_PARSEOPT },
                                        ^
/datasets/git/git.c:9:20: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                ^~~~~~
/datasets/git/git.c:564:46: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "merge-ours", cmd_merge_ours, RUN_SETUP | NO_PARSEOPT },
                                                    ^
/datasets/git/git.c:19:23: note: expanded from macro 'NO_PARSEOPT'
#define NO_PARSEOPT             (1<<6) /* parse-options is not used */
                                 ^
/datasets/git/git.c:565:44: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "merge-recursive", cmd_merge_recursive, RUN_SETUP | NEED_WORK_TREE | NO_PARSEOPT },
                                                  ^
/datasets/git/git.c:9:20: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                ^
/datasets/git/git.c:565:56: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "merge-recursive", cmd_merge_recursive, RUN_SETUP | NEED_WORK_TREE | NO_PARSEOPT },
                                                              ^
/datasets/git/git.c:16:26: note: expanded from macro 'NEED_WORK_TREE'
#define NEED_WORK_TREE          (1<<3)
                                 ^
/datasets/git/git.c:565:73: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "merge-recursive", cmd_merge_recursive, RUN_SETUP | NEED_WORK_TREE | NO_PARSEOPT },
                                                                               ^
/datasets/git/git.c:19:23: note: expanded from macro 'NO_PARSEOPT'
#define NO_PARSEOPT             (1<<6) /* parse-options is not used */
                                 ^
/datasets/git/git.c:566:49: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "merge-recursive-ours", cmd_merge_recursive, RUN_SETUP | NEED_WORK_TREE | NO_PARSEOPT },
                                                       ^
/datasets/git/git.c:9:20: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                ^
/datasets/git/git.c:566:61: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "merge-recursive-ours", cmd_merge_recursive, RUN_SETUP | NEED_WORK_TREE | NO_PARSEOPT },
                                                                   ^
/datasets/git/git.c:16:26: note: expanded from macro 'NEED_WORK_TREE'
#define NEED_WORK_TREE          (1<<3)
                                 ^
/datasets/git/git.c:566:78: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "merge-recursive-ours", cmd_merge_recursive, RUN_SETUP | NEED_WORK_TREE | NO_PARSEOPT },
                                                                                    ^
/datasets/git/git.c:19:23: note: expanded from macro 'NO_PARSEOPT'
#define NO_PARSEOPT             (1<<6) /* parse-options is not used */
                                 ^
/datasets/git/git.c:567:51: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "merge-recursive-theirs", cmd_merge_recursive, RUN_SETUP | NEED_WORK_TREE | NO_PARSEOPT },
                                                         ^
/datasets/git/git.c:9:20: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                ^
/datasets/git/git.c:567:63: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "merge-recursive-theirs", cmd_merge_recursive, RUN_SETUP | NEED_WORK_TREE | NO_PARSEOPT },
                                                                     ^
/datasets/git/git.c:16:26: note: expanded from macro 'NEED_WORK_TREE'
#define NEED_WORK_TREE          (1<<3)
                                 ^
/datasets/git/git.c:567:80: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "merge-recursive-theirs", cmd_merge_recursive, RUN_SETUP | NEED_WORK_TREE | NO_PARSEOPT },
                                                                                      ^
/datasets/git/git.c:19:23: note: expanded from macro 'NO_PARSEOPT'
#define NO_PARSEOPT             (1<<6) /* parse-options is not used */
                                 ^
/datasets/git/git.c:568:42: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "merge-subtree", cmd_merge_recursive, RUN_SETUP | NEED_WORK_TREE | NO_PARSEOPT },
                                                ^
/datasets/git/git.c:9:20: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                ^
/datasets/git/git.c:568:54: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "merge-subtree", cmd_merge_recursive, RUN_SETUP | NEED_WORK_TREE | NO_PARSEOPT },
                                                            ^
/datasets/git/git.c:16:26: note: expanded from macro 'NEED_WORK_TREE'
#define NEED_WORK_TREE          (1<<3)
                                 ^
/datasets/git/git.c:568:71: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "merge-subtree", cmd_merge_recursive, RUN_SETUP | NEED_WORK_TREE | NO_PARSEOPT },
                                                                             ^
/datasets/git/git.c:19:23: note: expanded from macro 'NO_PARSEOPT'
#define NO_PARSEOPT             (1<<6) /* parse-options is not used */
                                 ^
/datasets/git/git.c:569:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "merge-tree", cmd_merge_tree, RUN_SETUP },
                                        ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:570:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "mktag", cmd_mktag, RUN_SETUP },
                              ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:571:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "mktree", cmd_mktree, RUN_SETUP },
                                ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:572:46: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "multi-pack-index", cmd_multi_pack_index, RUN_SETUP },
                                                    ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:573:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "mv", cmd_mv, RUN_SETUP | NEED_WORK_TREE },
                        ^
/datasets/git/git.c:9:20: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                ^~~~~~
/datasets/git/git.c:573:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "mv", cmd_mv, RUN_SETUP | NEED_WORK_TREE },
                                    ^
/datasets/git/git.c:16:26: note: expanded from macro 'NEED_WORK_TREE'
#define NEED_WORK_TREE          (1<<3)
                                 ^
/datasets/git/git.c:574:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "name-rev", cmd_name_rev, RUN_SETUP },
                                    ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:575:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "notes", cmd_notes, RUN_SETUP },
                              ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:576:38: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "pack-objects", cmd_pack_objects, RUN_SETUP },
                                            ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:577:42: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "pack-redundant", cmd_pack_redundant, RUN_SETUP | NO_PARSEOPT },
                                                ^
/datasets/git/git.c:9:20: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                ^~~~~~
/datasets/git/git.c:577:54: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "pack-redundant", cmd_pack_redundant, RUN_SETUP | NO_PARSEOPT },
                                                            ^
/datasets/git/git.c:19:23: note: expanded from macro 'NO_PARSEOPT'
#define NO_PARSEOPT             (1<<6) /* parse-options is not used */
                                 ^
/datasets/git/git.c:578:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "pack-refs", cmd_pack_refs, RUN_SETUP },
                                      ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:579:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "patch-id", cmd_patch_id, RUN_SETUP_GENTLY | NO_PARSEOPT },
                                    ^
/datasets/git/git.c:10:26: note: expanded from macro 'RUN_SETUP_GENTLY'
#define RUN_SETUP_GENTLY        (1<<1)
                                ^~~~~~
/datasets/git/git.c:579:49: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "patch-id", cmd_patch_id, RUN_SETUP_GENTLY | NO_PARSEOPT },
                                                       ^
/datasets/git/git.c:19:23: note: expanded from macro 'NO_PARSEOPT'
#define NO_PARSEOPT             (1<<6) /* parse-options is not used */
                                 ^
/datasets/git/git.c:580:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "pickaxe", cmd_blame, RUN_SETUP },
                                ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:581:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "prune", cmd_prune, RUN_SETUP },
                              ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:582:38: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "prune-packed", cmd_prune_packed, RUN_SETUP },
                                            ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:583:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "pull", cmd_pull, RUN_SETUP | NEED_WORK_TREE },
                            ^
/datasets/git/git.c:9:20: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                ^~~~~~
/datasets/git/git.c:583:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "pull", cmd_pull, RUN_SETUP | NEED_WORK_TREE },
                                        ^
/datasets/git/git.c:16:26: note: expanded from macro 'NEED_WORK_TREE'
#define NEED_WORK_TREE          (1<<3)
                                 ^
/datasets/git/git.c:584:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "push", cmd_push, RUN_SETUP },
                            ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:585:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "range-diff", cmd_range_diff, RUN_SETUP | USE_PAGER },
                                        ^
/datasets/git/git.c:9:20: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                ^~~~~~
/datasets/git/git.c:585:46: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "range-diff", cmd_range_diff, RUN_SETUP | USE_PAGER },
                                                    ^
/datasets/git/git.c:11:21: note: expanded from macro 'USE_PAGER'
#define USE_PAGER               (1<<2)
                                 ^
/datasets/git/git.c:586:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "read-tree", cmd_read_tree, RUN_SETUP | SUPPORT_SUPER_PREFIX},
                                      ^
/datasets/git/git.c:9:20: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                ^~~~~~
/datasets/git/git.c:586:44: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "read-tree", cmd_read_tree, RUN_SETUP | SUPPORT_SUPER_PREFIX},
                                                  ^
/datasets/git/git.c:17:31: note: expanded from macro 'SUPPORT_SUPER_PREFIX'
#define SUPPORT_SUPER_PREFIX    (1<<4)
                                 ^
/datasets/git/git.c:587:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "rebase", cmd_rebase, RUN_SETUP | NEED_WORK_TREE },
                                ^
/datasets/git/git.c:9:20: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                ^~~~~~
/datasets/git/git.c:587:38: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "rebase", cmd_rebase, RUN_SETUP | NEED_WORK_TREE },
                                            ^
/datasets/git/git.c:16:26: note: expanded from macro 'NEED_WORK_TREE'
#define NEED_WORK_TREE          (1<<3)
                                 ^
/datasets/git/git.c:589:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "reflog", cmd_reflog, RUN_SETUP },
                                ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:590:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "remote", cmd_remote, RUN_SETUP },
                                ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:591:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "remote-ext", cmd_remote_ext, NO_PARSEOPT },
                                        ^
/datasets/git/git.c:19:23: note: expanded from macro 'NO_PARSEOPT'
#define NO_PARSEOPT             (1<<6) /* parse-options is not used */
                                 ^
/datasets/git/git.c:592:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "remote-fd", cmd_remote_fd, NO_PARSEOPT },
                                      ^
/datasets/git/git.c:19:23: note: expanded from macro 'NO_PARSEOPT'
#define NO_PARSEOPT             (1<<6) /* parse-options is not used */
                                 ^
/datasets/git/git.c:593:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "repack", cmd_repack, RUN_SETUP },
                                ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:594:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "replace", cmd_replace, RUN_SETUP },
                                  ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:595:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "rerere", cmd_rerere, RUN_SETUP },
                                ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:596:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "reset", cmd_reset, RUN_SETUP },
                              ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:597:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "restore", cmd_restore, RUN_SETUP | NEED_WORK_TREE },
                                  ^
/datasets/git/git.c:9:20: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                ^~~~~~
/datasets/git/git.c:597:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "restore", cmd_restore, RUN_SETUP | NEED_WORK_TREE },
                                              ^
/datasets/git/git.c:16:26: note: expanded from macro 'NEED_WORK_TREE'
#define NEED_WORK_TREE          (1<<3)
                                 ^
/datasets/git/git.c:598:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "rev-list", cmd_rev_list, RUN_SETUP | NO_PARSEOPT },
                                    ^
/datasets/git/git.c:9:20: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                ^~~~~~
/datasets/git/git.c:598:42: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "rev-list", cmd_rev_list, RUN_SETUP | NO_PARSEOPT },
                                                ^
/datasets/git/git.c:19:23: note: expanded from macro 'NO_PARSEOPT'
#define NO_PARSEOPT             (1<<6) /* parse-options is not used */
                                 ^
/datasets/git/git.c:599:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "rev-parse", cmd_rev_parse, NO_PARSEOPT },
                                      ^
/datasets/git/git.c:19:23: note: expanded from macro 'NO_PARSEOPT'
#define NO_PARSEOPT             (1<<6) /* parse-options is not used */
                                 ^
/datasets/git/git.c:600:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "revert", cmd_revert, RUN_SETUP | NEED_WORK_TREE },
                                ^
/datasets/git/git.c:9:20: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                ^~~~~~
/datasets/git/git.c:600:38: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "revert", cmd_revert, RUN_SETUP | NEED_WORK_TREE },
                                            ^
/datasets/git/git.c:16:26: note: expanded from macro 'NEED_WORK_TREE'
#define NEED_WORK_TREE          (1<<3)
                                 ^
/datasets/git/git.c:601:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "rm", cmd_rm, RUN_SETUP },
                        ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:602:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "send-pack", cmd_send_pack, RUN_SETUP },
                                      ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:603:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "shortlog", cmd_shortlog, RUN_SETUP_GENTLY | USE_PAGER },
                                    ^
/datasets/git/git.c:10:26: note: expanded from macro 'RUN_SETUP_GENTLY'
#define RUN_SETUP_GENTLY        (1<<1)
                                ^~~~~~
/datasets/git/git.c:603:49: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "shortlog", cmd_shortlog, RUN_SETUP_GENTLY | USE_PAGER },
                                                       ^
/datasets/git/git.c:11:21: note: expanded from macro 'USE_PAGER'
#define USE_PAGER               (1<<2)
                                 ^
/datasets/git/git.c:604:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "show", cmd_show, RUN_SETUP },
                            ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:605:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "show-branch", cmd_show_branch, RUN_SETUP },
                                          ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:606:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "show-index", cmd_show_index, RUN_SETUP_GENTLY },
                                        ^
/datasets/git/git.c:10:27: note: expanded from macro 'RUN_SETUP_GENTLY'
#define RUN_SETUP_GENTLY        (1<<1)
                                 ^
/datasets/git/git.c:607:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "show-ref", cmd_show_ref, RUN_SETUP },
                                    ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:608:44: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "sparse-checkout", cmd_sparse_checkout, RUN_SETUP | NEED_WORK_TREE },
                                                  ^
/datasets/git/git.c:9:20: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                ^~~~~~
/datasets/git/git.c:608:56: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "sparse-checkout", cmd_sparse_checkout, RUN_SETUP | NEED_WORK_TREE },
                                                              ^
/datasets/git/git.c:16:26: note: expanded from macro 'NEED_WORK_TREE'
#define NEED_WORK_TREE          (1<<3)
                                 ^
/datasets/git/git.c:609:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "stage", cmd_add, RUN_SETUP | NEED_WORK_TREE },
                            ^
/datasets/git/git.c:9:20: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                ^~~~~~
/datasets/git/git.c:609:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "stage", cmd_add, RUN_SETUP | NEED_WORK_TREE },
                                        ^
/datasets/git/git.c:16:26: note: expanded from macro 'NEED_WORK_TREE'
#define NEED_WORK_TREE          (1<<3)
                                 ^
/datasets/git/git.c:610:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "stash", cmd_stash, RUN_SETUP | NEED_WORK_TREE },
                              ^
/datasets/git/git.c:9:20: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                ^~~~~~
/datasets/git/git.c:610:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "stash", cmd_stash, RUN_SETUP | NEED_WORK_TREE },
                                          ^
/datasets/git/git.c:16:26: note: expanded from macro 'NEED_WORK_TREE'
#define NEED_WORK_TREE          (1<<3)
                                 ^
/datasets/git/git.c:611:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "status", cmd_status, RUN_SETUP | NEED_WORK_TREE },
                                ^
/datasets/git/git.c:9:20: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                ^~~~~~
/datasets/git/git.c:611:38: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "status", cmd_status, RUN_SETUP | NEED_WORK_TREE },
                                            ^
/datasets/git/git.c:16:26: note: expanded from macro 'NEED_WORK_TREE'
#define NEED_WORK_TREE          (1<<3)
                                 ^
/datasets/git/git.c:613:48: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "submodule--helper", cmd_submodule__helper, RUN_SETUP | SUPPORT_SUPER_PREFIX },
                                                      ^
/datasets/git/git.c:9:20: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                ^~~~~~
/datasets/git/git.c:613:60: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "submodule--helper", cmd_submodule__helper, RUN_SETUP | SUPPORT_SUPER_PREFIX },
                                                                  ^
/datasets/git/git.c:17:31: note: expanded from macro 'SUPPORT_SUPER_PREFIX'
#define SUPPORT_SUPER_PREFIX    (1<<4)
                                 ^
/datasets/git/git.c:614:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "switch", cmd_switch, RUN_SETUP | NEED_WORK_TREE },
                                ^
/datasets/git/git.c:9:20: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                ^~~~~~
/datasets/git/git.c:614:38: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "switch", cmd_switch, RUN_SETUP | NEED_WORK_TREE },
                                            ^
/datasets/git/git.c:16:26: note: expanded from macro 'NEED_WORK_TREE'
#define NEED_WORK_TREE          (1<<3)
                                 ^
/datasets/git/git.c:615:38: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "symbolic-ref", cmd_symbolic_ref, RUN_SETUP },
                                            ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:616:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "tag", cmd_tag, RUN_SETUP | DELAY_PAGER_CONFIG },
                          ^
/datasets/git/git.c:9:20: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                ^~~~~~
/datasets/git/git.c:616:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "tag", cmd_tag, RUN_SETUP | DELAY_PAGER_CONFIG },
                                      ^
/datasets/git/git.c:18:29: note: expanded from macro 'DELAY_PAGER_CONFIG'
#define DELAY_PAGER_CONFIG      (1<<5)
                                 ^
/datasets/git/git.c:617:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "unpack-file", cmd_unpack_file, RUN_SETUP | NO_PARSEOPT },
                                          ^
/datasets/git/git.c:9:20: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                ^~~~~~
/datasets/git/git.c:617:48: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "unpack-file", cmd_unpack_file, RUN_SETUP | NO_PARSEOPT },
                                                      ^
/datasets/git/git.c:19:23: note: expanded from macro 'NO_PARSEOPT'
#define NO_PARSEOPT             (1<<6) /* parse-options is not used */
                                 ^
/datasets/git/git.c:618:42: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "unpack-objects", cmd_unpack_objects, RUN_SETUP | NO_PARSEOPT },
                                                ^
/datasets/git/git.c:9:20: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                ^~~~~~
/datasets/git/git.c:618:54: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "unpack-objects", cmd_unpack_objects, RUN_SETUP | NO_PARSEOPT },
                                                            ^
/datasets/git/git.c:19:23: note: expanded from macro 'NO_PARSEOPT'
#define NO_PARSEOPT             (1<<6) /* parse-options is not used */
                                 ^
/datasets/git/git.c:619:38: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "update-index", cmd_update_index, RUN_SETUP },
                                            ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:620:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "update-ref", cmd_update_ref, RUN_SETUP },
                                        ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:621:50: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "update-server-info", cmd_update_server_info, RUN_SETUP },
                                                        ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:622:42: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "upload-archive", cmd_upload_archive, NO_PARSEOPT },
                                                ^
/datasets/git/git.c:19:23: note: expanded from macro 'NO_PARSEOPT'
#define NO_PARSEOPT             (1<<6) /* parse-options is not used */
                                 ^
/datasets/git/git.c:623:57: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "upload-archive--writer", cmd_upload_archive_writer, NO_PARSEOPT },
                                                               ^
/datasets/git/git.c:19:23: note: expanded from macro 'NO_PARSEOPT'
#define NO_PARSEOPT             (1<<6) /* parse-options is not used */
                                 ^
/datasets/git/git.c:625:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "var", cmd_var, RUN_SETUP_GENTLY | NO_PARSEOPT },
                          ^
/datasets/git/git.c:10:26: note: expanded from macro 'RUN_SETUP_GENTLY'
#define RUN_SETUP_GENTLY        (1<<1)
                                ^~~~~~
/datasets/git/git.c:625:39: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "var", cmd_var, RUN_SETUP_GENTLY | NO_PARSEOPT },
                                             ^
/datasets/git/git.c:19:23: note: expanded from macro 'NO_PARSEOPT'
#define NO_PARSEOPT             (1<<6) /* parse-options is not used */
                                 ^
/datasets/git/git.c:626:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "verify-commit", cmd_verify_commit, RUN_SETUP },
                                              ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:628:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "verify-tag", cmd_verify_tag, RUN_SETUP },
                                        ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:630:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "whatchanged", cmd_whatchanged, RUN_SETUP },
                                          ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:631:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "worktree", cmd_worktree, RUN_SETUP },
                                    ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:632:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "write-tree", cmd_write_tree, RUN_SETUP },
                                        ^
/datasets/git/git.c:9:21: note: expanded from macro 'RUN_SETUP'
#define RUN_SETUP               (1<<0)
                                 ^
/datasets/git/git.c:635:51: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static struct cmd_struct *get_builtin(const char *s)
                                                  ^
/datasets/git/git.c:637:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/git.c:637:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/git.c:638:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ARRAY_SIZE(commands); i++) {
        ^
/datasets/git/git.c:639:22: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct cmd_struct *p = commands + i;
                                   ^
/datasets/git/git.c:640:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(s, p->cmd))
                                       ^
                                        {
/datasets/git/git.c:646:28: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
int is_builtin(const char *s)
                           ^
/datasets/git/git.c:653:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/git.c:653:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/git.c:654:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ARRAY_SIZE(commands); i++) {
        ^
/datasets/git/git.c:656:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    (commands[i].option & exclude_option))
                                                          ^
                                                           {
/datasets/git/git.c:664:14: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
        const char *name;
                    ^
                         = NULL
/datasets/git/git.c:665:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/git.c:665:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/git.c:673:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!skip_prefix(prefix, "git-", &prefix))
                                                  ^
                                                   {
/datasets/git/git.c:676:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ARRAY_SIZE(commands); i++)
        ^
/datasets/git/git.c:676:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < ARRAY_SIZE(commands); i++)
                                                  ^
                                                   {
/datasets/git/git.c:677:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (skip_prefix(commands[i].cmd, prefix, &name))
                                                                ^
                                                                 {
/datasets/git/git.c:678:28: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        add_cmdname(cmds, name, strlen(name));
                                                ^
/datasets/git/git.c:696:14: warning: variable 'cmd' is not initialized [cppcoreguidelines-init-variables]
        const char *cmd;
                    ^
                        = NULL
/datasets/git/git.c:697:21: warning: variable 'builtin' is not initialized [cppcoreguidelines-init-variables]
        struct cmd_struct *builtin;
                           ^
                                   = NULL
/datasets/git/git.c:704:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/git.c:704:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/git.c:709:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < argc; i++) {
                ^
/datasets/git/git.c:711:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!i)
                               ^
                                {
/datasets/git/git.c:720:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (builtin)
                    ^
                     {
/datasets/git/git.c:721:3: warning: function is not thread safe [concurrency-mt-unsafe]
                exit(run_builtin(builtin, argc, argv));
                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/git.c:728:6: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int status;
            ^
                   = 0
/datasets/git/git.c:730:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_super_prefix())
                               ^
                                {
/datasets/git/git.c:733:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (use_pager == -1 && !is_builtin(argv[0]))
                                                    ^
                                                     {
/datasets/git/git.c:750:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_argv_printf(cmd.args.v, "trace: exec:");
        ^
/datasets/git/./trace.h:184:2: note: expanded from macro 'trace_argv_printf'
        do {                                                                \
        ^
/datasets/git/git.c:765:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (status >= 0)
                        ^
                         {
/datasets/git/git.c:766:3: warning: function is not thread safe [concurrency-mt-unsafe]
                exit(status);
                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/git.c:767:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (errno != ENOENT)
                                 ^
                                  {
/datasets/git/git.c:768:3: warning: function is not thread safe [concurrency-mt-unsafe]
                exit(128);
                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/git.c:771:12: warning: function 'run_argv' has cognitive complexity of 33 (threshold 25) [readability-function-cognitive-complexity]
static int run_argv(int *argcp, const char ***argv)
           ^
/datasets/git/git.c:777:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (1) {
        ^
/datasets/git/git.c:787:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!done_alias)
                ^
/datasets/git/git.c:789:8: note: +1, nesting level increased to 2
                else if (get_builtin(**argv)) {
                     ^
/datasets/git/git.c:802:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (get_super_prefix())
                        ^
/datasets/git/git.c:808:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (i = 0; i < *argcp; i++)
                        ^
/datasets/git/git.c:811:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        trace_argv_printf(cmd.args.v, "trace: exec:");
                        ^
/datasets/git/./trace.h:184:2: note: expanded from macro 'trace_argv_printf'
        do {                                                                \
        ^
/datasets/git/git.c:811:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        trace_argv_printf(cmd.args.v, "trace: exec:");
                        ^
/datasets/git/./trace.h:185:3: note: expanded from macro 'trace_argv_printf'
                if (trace_pass_fl(&trace_default_key))                      \
                ^
/datasets/git/git.c:822:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (i >= 0 || errno != ENOENT)
                        ^
/datasets/git/git.c:822:15: note: +1
                        if (i >= 0 || errno != ENOENT)
                                   ^
/datasets/git/git.c:831:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (seen) {
                ^
/datasets/git/git.c:834:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (i = 0; i < cmd_list.nr; i++) {
                        ^
/datasets/git/git.c:838:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (item == seen)
                                ^
/datasets/git/git.c:840:10: note: +1, nesting level increased to 4
                                else if (i == cmd_list.nr - 1)
                                     ^
/datasets/git/git.c:854:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!handle_alias(argcp, argv))
                ^
/datasets/git/git.c:775:27: warning: variable 'seen' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *seen;
                                 ^
                                      = NULL
/datasets/git/git.c:787:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!done_alias)
                                ^
                                 {
/datasets/git/git.c:791:8: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                        int i;
                            ^
                              = 0
/datasets/git/git.c:791:8: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/git.c:802:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (get_super_prefix())
                                               ^
                                                {
/datasets/git/git.c:808:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = 0; i < *argcp; i++)
                        ^
/datasets/git/git.c:808:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (i = 0; i < *argcp; i++)
                                    ^
/datasets/git/git.c:808:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (i = 0; i < *argcp; i++)
                                                    ^
                                                     {
/datasets/git/git.c:811:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        trace_argv_printf(cmd.args.v, "trace: exec:");
                        ^
/datasets/git/./trace.h:184:2: note: expanded from macro 'trace_argv_printf'
        do {                                                                \
        ^
/datasets/git/git.c:822:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (i >= 0 || errno != ENOENT)
                                                      ^
                                                       {
/datasets/git/git.c:823:5: warning: function is not thread safe [concurrency-mt-unsafe]
                                exit(i);
                                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/git.c:832:8: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                        int i;
                            ^
                              = 0
/datasets/git/git.c:832:8: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/git.c:833:18: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                        struct strbuf sb = STRBUF_INIT;
                                      ^
/datasets/git/git.c:834:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = 0; i < cmd_list.nr; i++) {
                        ^
/datasets/git/git.c:838:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (item == seen)
                                                 ^
                                                  {
/datasets/git/git.c:840:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                else if (i == cmd_list.nr - 1)
                                                              ^
                                                               {
/datasets/git/git.c:854:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!handle_alias(argcp, argv))
                                               ^
                                                {
/datasets/git/git.c:866:14: warning: variable 'cmd' is not initialized [cppcoreguidelines-init-variables]
        const char *cmd;
                    ^
                        = NULL
/datasets/git/git.c:870:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!cmd)
                 ^
                  {
/datasets/git/git.c:874:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (slash)
                          ^
                           {
/datasets/git/git.c:907:3: warning: function is not thread safe [concurrency-mt-unsafe]
                exit(1);
                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/git.c:910:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp("--version", argv[0]) || !strcmp("-v", argv[0]))
                                                                    ^
                                                                     {
/datasets/git/git.c:912:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp("--help", argv[0]) || !strcmp("-h", argv[0]))
                                                                      ^
                                                                       {
/datasets/git/git.c:925:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/git.c:927:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (errno != ENOENT)
                                    ^
                                     {
/datasets/git/git.c:930:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, _("expansion of alias '%s' failed; "
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/git.c:930:4: note: cast the expression to void to silence this warning
/datasets/git/git.c:933:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        exit(1);
                        ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/git.c:938:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/git.c:942:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(stderr, _("failed to run command '%s': %s\n"),
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/git.c:942:2: note: cast the expression to void to silence this warning
/datasets/git/git.c:943:8: warning: function is not thread safe [concurrency-mt-unsafe]
                cmd, strerror(errno));
                     ^
/datasets/git/gpg-interface.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "commit.h"
^        ~~~~~~~~~~
         "alias.h"
/datasets/git/gpg-interface.c:12:14: warning: variable 'configured_signing_key' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *configured_signing_key;
             ^
/datasets/git/gpg-interface.c:12:14: warning: variable 'configured_signing_key' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/gpg-interface.c:13:20: warning: variable 'ssh_default_key_command' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *ssh_default_key_command, *ssh_allowed_signers, *ssh_revocation_file;
                   ^
/datasets/git/gpg-interface.c:13:46: warning: variable 'ssh_allowed_signers' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *ssh_default_key_command, *ssh_allowed_signers, *ssh_revocation_file;
                                             ^
/datasets/git/gpg-interface.c:13:68: warning: variable 'ssh_revocation_file' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *ssh_default_key_command, *ssh_allowed_signers, *ssh_revocation_file;
                                                                   ^
/datasets/git/gpg-interface.c:14:35: warning: variable 'configured_min_trust_level' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static enum signature_trust_level configured_min_trust_level = TRUST_UNDEFINED;
                                  ^
/datasets/git/gpg-interface.c:16:8: warning: accessing fields in struct 'gpg_format' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct gpg_format {
       ^
/datasets/git/gpg-interface.c:16:8: note: use "__attribute__((aligned(64)))" to align struct 'gpg_format' to 64 bytes
/datasets/git/gpg-interface.c:31:20: warning: variable 'openpgp_verify_args' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *openpgp_verify_args[] = {
                   ^
/datasets/git/gpg-interface.c:35:20: warning: variable 'openpgp_sigs' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *openpgp_sigs[] = {
                   ^
/datasets/git/gpg-interface.c:41:20: warning: variable 'x509_verify_args' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *x509_verify_args[] = {
                   ^
/datasets/git/gpg-interface.c:44:20: warning: variable 'x509_sigs' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *x509_sigs[] = {
                   ^
/datasets/git/gpg-interface.c:49:20: warning: variable 'ssh_verify_args' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *ssh_verify_args[] = { NULL };
                   ^
/datasets/git/gpg-interface.c:50:20: warning: variable 'ssh_sigs' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *ssh_sigs[] = {
                   ^
/datasets/git/gpg-interface.c:72:26: warning: variable 'gpg_format' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct gpg_format gpg_format[] = {
                         ^
/datasets/git/gpg-interface.c:105:27: warning: variable 'use_format' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct gpg_format *use_format = &gpg_format[0];
                          ^
/datasets/git/gpg-interface.c:105:27: warning: variable 'use_format' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/gpg-interface.c:109:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/gpg-interface.c:109:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/gpg-interface.c:111:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ARRAY_SIZE(gpg_format); i++)
        ^
/datasets/git/gpg-interface.c:111:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < ARRAY_SIZE(gpg_format); i++)
                                                    ^
                                                     {
/datasets/git/gpg-interface.c:112:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(gpg_format[i].name, str))
                                                     ^
                                                      {
/datasets/git/gpg-interface.c:119:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, j;
        ^~~~~~~~~
/datasets/git/gpg-interface.c:119:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, j;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/gpg-interface.c:119:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/gpg-interface.c:119:9: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int i, j;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/gpg-interface.c:119:9: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/gpg-interface.c:121:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < ARRAY_SIZE(gpg_format); i++)
                                                    ^
                                                     {
/datasets/git/gpg-interface.c:122:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (j = 0; gpg_format[i].sigs[j]; j++)
                ^
/datasets/git/gpg-interface.c:122:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (j = 0; gpg_format[i].sigs[j]; j++)
                                                       ^
                                                        {
/datasets/git/gpg-interface.c:123:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (starts_with(sig, gpg_format[i].sigs[j]))
                                                                    ^
                                                                     {
/datasets/git/gpg-interface.c:130:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(sigc->payload);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/gpg-interface.c:131:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(sigc->output);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/gpg-interface.c:132:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(sigc->gpg_status);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/gpg-interface.c:133:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(sigc->signer);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/gpg-interface.c:134:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(sigc->key);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/gpg-interface.c:135:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(sigc->fingerprint);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/gpg-interface.c:136:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(sigc->primary_key_fingerprint);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/gpg-interface.c:140:1: warning: replace macro with enum [modernize-macro-to-enum]
#define GPG_STATUS_EXCLUSIVE    (1<<0)
^~~~~~~~
                             =        ,
/datasets/git/gpg-interface.c:140:9: warning: macro 'GPG_STATUS_EXCLUSIVE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define GPG_STATUS_EXCLUSIVE    (1<<0)
        ^
/datasets/git/gpg-interface.c:142:9: warning: macro 'GPG_STATUS_KEYID' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define GPG_STATUS_KEYID        (1<<1)
        ^
/datasets/git/gpg-interface.c:144:9: warning: macro 'GPG_STATUS_UID' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define GPG_STATUS_UID          (1<<2)
        ^
/datasets/git/gpg-interface.c:146:9: warning: macro 'GPG_STATUS_FINGERPRINT' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define GPG_STATUS_FINGERPRINT  (1<<3)
        ^
/datasets/git/gpg-interface.c:148:9: warning: macro 'GPG_STATUS_TRUST_LEVEL' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define GPG_STATUS_TRUST_LEVEL  (1<<4)
        ^
/datasets/git/gpg-interface.c:153:8: warning: accessing fields in struct '' is inefficient due to padding; only needs 13 bytes but is using 24 bytes [altera-struct-pack-align]
static struct {
       ^
/datasets/git/gpg-interface.c:153:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct ''
/datasets/git/gpg-interface.c:153:8: warning: accessing fields in struct '' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
static struct {
       ^
/datasets/git/gpg-interface.c:153:8: note: use "__attribute__((aligned(16)))" to align struct '' to 16 bytes
/datasets/git/gpg-interface.c:153:8: warning: Excessive padding in 'struct (unnamed at gpg-interface.c:153:8)' (11 padding bytes, where 3 is optimal). Optimal fields order: check, flags, result, consider reordering the fields or adding explicit padding members [clang-analyzer-optin.performance.Padding]
static struct {
       ^~~~~~~~
/datasets/git/gpg-interface.c:153:8: note: Excessive padding in 'struct (unnamed at gpg-interface.c:153:8)' (11 padding bytes, where 3 is optimal). Optimal fields order: check, flags, result, consider reordering the fields or adding explicit padding members
static struct {
       ^~~~~~~~
/datasets/git/gpg-interface.c:157:3: warning: variable 'sigcheck_gpg_status' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} sigcheck_gpg_status[] = {
  ^
/datasets/git/gpg-interface.c:158:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { 'G', "GOODSIG ", GPG_STATUS_STDSIG },
                           ^
/datasets/git/gpg-interface.c:151:28: note: expanded from macro 'GPG_STATUS_STDSIG'
#define GPG_STATUS_STDSIG       (GPG_STATUS_EXCLUSIVE|GPG_STATUS_KEYID|GPG_STATUS_UID)
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/gpg-interface.c:140:30: note: expanded from macro 'GPG_STATUS_EXCLUSIVE'
#define GPG_STATUS_EXCLUSIVE    (1<<0)
                                ^
/datasets/git/gpg-interface.c:159:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { 'B', "BADSIG ", GPG_STATUS_STDSIG },
                          ^
/datasets/git/gpg-interface.c:151:28: note: expanded from macro 'GPG_STATUS_STDSIG'
#define GPG_STATUS_STDSIG       (GPG_STATUS_EXCLUSIVE|GPG_STATUS_KEYID|GPG_STATUS_UID)
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/gpg-interface.c:140:30: note: expanded from macro 'GPG_STATUS_EXCLUSIVE'
#define GPG_STATUS_EXCLUSIVE    (1<<0)
                                ^
/datasets/git/gpg-interface.c:160:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { 'E', "ERRSIG ", GPG_STATUS_EXCLUSIVE|GPG_STATUS_KEYID },
                          ^
/datasets/git/gpg-interface.c:140:30: note: expanded from macro 'GPG_STATUS_EXCLUSIVE'
#define GPG_STATUS_EXCLUSIVE    (1<<0)
                                ^~~~~~
/datasets/git/gpg-interface.c:160:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { 'E', "ERRSIG ", GPG_STATUS_EXCLUSIVE|GPG_STATUS_KEYID },
                                               ^
/datasets/git/gpg-interface.c:142:27: note: expanded from macro 'GPG_STATUS_KEYID'
#define GPG_STATUS_KEYID        (1<<1)
                                 ^
/datasets/git/gpg-interface.c:161:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { 'X', "EXPSIG ", GPG_STATUS_STDSIG },
                          ^
/datasets/git/gpg-interface.c:151:28: note: expanded from macro 'GPG_STATUS_STDSIG'
#define GPG_STATUS_STDSIG       (GPG_STATUS_EXCLUSIVE|GPG_STATUS_KEYID|GPG_STATUS_UID)
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/gpg-interface.c:140:30: note: expanded from macro 'GPG_STATUS_EXCLUSIVE'
#define GPG_STATUS_EXCLUSIVE    (1<<0)
                                ^
/datasets/git/gpg-interface.c:162:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { 'Y', "EXPKEYSIG ", GPG_STATUS_STDSIG },
                             ^
/datasets/git/gpg-interface.c:151:28: note: expanded from macro 'GPG_STATUS_STDSIG'
#define GPG_STATUS_STDSIG       (GPG_STATUS_EXCLUSIVE|GPG_STATUS_KEYID|GPG_STATUS_UID)
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/gpg-interface.c:140:30: note: expanded from macro 'GPG_STATUS_EXCLUSIVE'
#define GPG_STATUS_EXCLUSIVE    (1<<0)
                                ^
/datasets/git/gpg-interface.c:163:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { 'R', "REVKEYSIG ", GPG_STATUS_STDSIG },
                             ^
/datasets/git/gpg-interface.c:151:28: note: expanded from macro 'GPG_STATUS_STDSIG'
#define GPG_STATUS_STDSIG       (GPG_STATUS_EXCLUSIVE|GPG_STATUS_KEYID|GPG_STATUS_UID)
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/gpg-interface.c:140:30: note: expanded from macro 'GPG_STATUS_EXCLUSIVE'
#define GPG_STATUS_EXCLUSIVE    (1<<0)
                                ^
/datasets/git/gpg-interface.c:164:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { 0, "VALIDSIG ", GPG_STATUS_FINGERPRINT },
                          ^
/datasets/git/gpg-interface.c:146:33: note: expanded from macro 'GPG_STATUS_FINGERPRINT'
#define GPG_STATUS_FINGERPRINT  (1<<3)
                                 ^
/datasets/git/gpg-interface.c:165:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { 0, "TRUST_", GPG_STATUS_TRUST_LEVEL },
                       ^
/datasets/git/gpg-interface.c:148:33: note: expanded from macro 'GPG_STATUS_TRUST_LEVEL'
#define GPG_STATUS_TRUST_LEVEL  (1<<4)
                                 ^
/datasets/git/gpg-interface.c:169:15: warning: accessing fields in struct 'sigcheck_gpg_trust_level' is inefficient due to padding; only needs 20 bytes but is using 24 bytes [altera-struct-pack-align]
static struct sigcheck_gpg_trust_level {
              ^
/datasets/git/gpg-interface.c:169:15: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'sigcheck_gpg_trust_level'
/datasets/git/gpg-interface.c:169:15: warning: accessing fields in struct 'sigcheck_gpg_trust_level' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
static struct sigcheck_gpg_trust_level {
              ^
/datasets/git/gpg-interface.c:169:15: note: use "__attribute__((aligned(32)))" to align struct 'sigcheck_gpg_trust_level' to 32 bytes
/datasets/git/gpg-interface.c:173:3: warning: variable 'sigcheck_gpg_trust_level' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} sigcheck_gpg_trust_level[] = {
  ^
/datasets/git/gpg-interface.c:185:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (line && next)
                         ^
                          {
/datasets/git/gpg-interface.c:187:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/gpg-interface.c:194:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i;
               ^
                 = 0
/datasets/git/gpg-interface.c:194:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/gpg-interface.c:196:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ARRAY_SIZE(sigcheck_gpg_trust_level); i++) {
        ^
/datasets/git/gpg-interface.c:205:13: warning: function 'parse_gpg_output' has cognitive complexity of 71 (threshold 25) [readability-function-cognitive-complexity]
static void parse_gpg_output(struct signature_check *sigc)
            ^
/datasets/git/gpg-interface.c:213:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (line = buf; *line; line = strchrnul(line+1, '\n')) {
        ^
/datasets/git/gpg-interface.c:214:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (*line == '\n')
                ^
/datasets/git/gpg-interface.c:216:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!*line)
                ^
/datasets/git/gpg-interface.c:220:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!skip_prefix(line, "[GNUPG:] ", &line))
                ^
/datasets/git/gpg-interface.c:224:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < ARRAY_SIZE(sigcheck_gpg_status); i++) {
                ^
/datasets/git/gpg-interface.c:225:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (skip_prefix(line, sigcheck_gpg_status[i].check, &line)) {
                        ^
/datasets/git/gpg-interface.c:235:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (sigcheck_gpg_status[i].flags & GPG_STATUS_EXCLUSIVE) {
                                ^
/datasets/git/gpg-interface.c:236:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (seen_exclusive_status++)
                                        ^
/datasets/git/gpg-interface.c:240:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (sigcheck_gpg_status[i].result)
                                ^
/datasets/git/gpg-interface.c:243:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (sigcheck_gpg_status[i].flags & GPG_STATUS_KEYID) {
                                ^
/datasets/git/gpg-interface.c:247:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (*next && (sigcheck_gpg_status[i].flags & GPG_STATUS_UID)) {
                                        ^
/datasets/git/gpg-interface.c:247:16: note: +1
                                        if (*next && (sigcheck_gpg_status[i].flags & GPG_STATUS_UID)) {
                                                  ^
/datasets/git/gpg-interface.c:255:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (sigcheck_gpg_status[i].flags & GPG_STATUS_TRUST_LEVEL) {
                                ^
/datasets/git/gpg-interface.c:265:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (parse_gpg_trust_level(trust, &sigc->trust_level)) {
                                        ^
/datasets/git/gpg-interface.c:267:7: note: +1
                                                goto error;
                                                ^
/datasets/git/gpg-interface.c:273:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (sigcheck_gpg_status[i].flags & GPG_STATUS_FINGERPRINT) {
                                ^
/datasets/git/gpg-interface.c:287:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        for (j = 9; j > 0; j--) {
                                        ^
/datasets/git/gpg-interface.c:288:7: note: +6, including nesting penalty of 5, nesting level increased to 6
                                                if (!*next || limit <= next)
                                                ^
/datasets/git/gpg-interface.c:288:18: note: +1
                                                if (!*next || limit <= next)
                                                           ^
/datasets/git/gpg-interface.c:295:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (!j) {
                                        ^
/datasets/git/gpg-interface.c:298:8: note: +1, nesting level increased to 5
                                        } else {
                                          ^
/datasets/git/gpg-interface.c:312:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        FREE_AND_NULL(sigc->primary_key_fingerprint);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/gpg-interface.c:313:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        FREE_AND_NULL(sigc->fingerprint);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/gpg-interface.c:314:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        FREE_AND_NULL(sigc->signer);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/gpg-interface.c:315:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        FREE_AND_NULL(sigc->key);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/gpg-interface.c:208:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *line, *next;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/gpg-interface.c:208:14: warning: variable 'line' is not initialized [cppcoreguidelines-init-variables]
        const char *line, *next;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/gpg-interface.c:208:21: warning: variable 'next' is not initialized [cppcoreguidelines-init-variables]
        const char *line, *next;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/gpg-interface.c:209:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, j;
        ^~~~~~~~~
/datasets/git/gpg-interface.c:208:2: note: inferred assignment of ID-dependent value from ID-dependent variable buf [altera-id-dependent-backward-branch]
        const char *line, *next;
        ^
/datasets/git/gpg-interface.c:209:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, j;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/gpg-interface.c:209:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/gpg-interface.c:209:9: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int i, j;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/gpg-interface.c:209:9: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/gpg-interface.c:213:19: warning: backward branch (for loop) is ID-dependent due to variable reference to 'line' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (line = buf; *line; line = strchrnul(line+1, '\n')) {
                         ^
/datasets/git/gpg-interface.c:214:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (*line == '\n')
                ^
/datasets/git/gpg-interface.c:214:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'line' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (*line == '\n')
                       ^
/datasets/git/gpg-interface.c:214:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (*line == '\n')
                                     ^
                                      {
/datasets/git/gpg-interface.c:216:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!*line)
                           ^
                            {
/datasets/git/gpg-interface.c:220:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!skip_prefix(line, "[GNUPG:] ", &line))
                                                           ^
                                                            {
/datasets/git/gpg-interface.c:235:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (sigcheck_gpg_status[i].flags & GPG_STATUS_EXCLUSIVE) {
                                    ^
/datasets/git/gpg-interface.c:235:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (sigcheck_gpg_status[i].flags & GPG_STATUS_EXCLUSIVE) {
                                                                   ^
/datasets/git/gpg-interface.c:140:31: note: expanded from macro 'GPG_STATUS_EXCLUSIVE'
#define GPG_STATUS_EXCLUSIVE    (1<<0)
                                 ^
/datasets/git/gpg-interface.c:236:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        if (seen_exclusive_status++)
                                                                    ^
                                                                     {
/datasets/git/gpg-interface.c:240:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (sigcheck_gpg_status[i].result)
                                                                  ^
                                                                   {
/datasets/git/gpg-interface.c:243:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (sigcheck_gpg_status[i].flags & GPG_STATUS_KEYID) {
                                    ^
/datasets/git/gpg-interface.c:243:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (sigcheck_gpg_status[i].flags & GPG_STATUS_KEYID) {
                                                                   ^
/datasets/git/gpg-interface.c:142:27: note: expanded from macro 'GPG_STATUS_KEYID'
#define GPG_STATUS_KEYID        (1<<1)
                                 ^
/datasets/git/gpg-interface.c:247:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        if (*next && (sigcheck_gpg_status[i].flags & GPG_STATUS_UID)) {
                                                      ^
/datasets/git/gpg-interface.c:247:51: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        if (*next && (sigcheck_gpg_status[i].flags & GPG_STATUS_UID)) {
                                                                                     ^
/datasets/git/gpg-interface.c:144:26: note: expanded from macro 'GPG_STATUS_UID'
#define GPG_STATUS_UID          (1<<2)
                                 ^
/datasets/git/gpg-interface.c:255:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (sigcheck_gpg_status[i].flags & GPG_STATUS_TRUST_LEVEL) {
                                    ^
/datasets/git/gpg-interface.c:255:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (sigcheck_gpg_status[i].flags & GPG_STATUS_TRUST_LEVEL) {
                                                                   ^
/datasets/git/gpg-interface.c:148:33: note: expanded from macro 'GPG_STATUS_TRUST_LEVEL'
#define GPG_STATUS_TRUST_LEVEL  (1<<4)
                                 ^
/datasets/git/gpg-interface.c:273:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (sigcheck_gpg_status[i].flags & GPG_STATUS_FINGERPRINT) {
                                    ^
/datasets/git/gpg-interface.c:273:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (sigcheck_gpg_status[i].flags & GPG_STATUS_FINGERPRINT) {
                                                                   ^
/datasets/git/gpg-interface.c:146:33: note: expanded from macro 'GPG_STATUS_FINGERPRINT'
#define GPG_STATUS_FINGERPRINT  (1<<3)
                                 ^
/datasets/git/gpg-interface.c:274:18: warning: variable 'limit' is not initialized [cppcoreguidelines-init-variables]
                                        const char *limit;
                                                    ^
                                                          = NULL
/datasets/git/gpg-interface.c:275:13: warning: variable 'field' is not initialized [cppcoreguidelines-init-variables]
                                        char **field;
                                               ^
                                                     = NULL
/datasets/git/gpg-interface.c:287:6: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                        for (j = 9; j > 0; j--) {
                                        ^
/datasets/git/gpg-interface.c:287:15: warning: 9 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                        for (j = 9; j > 0; j--) {
                                                 ^
/datasets/git/gpg-interface.c:288:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                if (!*next || limit <= next)
                                                                            ^
                                                                             {
/datasets/git/gpg-interface.c:312:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(sigc->primary_key_fingerprint);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/gpg-interface.c:313:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(sigc->fingerprint);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/gpg-interface.c:314:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(sigc->signer);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/gpg-interface.c:315:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(sigc->key);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/gpg-interface.c:324:19: warning: variable 'temp' is not initialized [cppcoreguidelines-init-variables]
        struct tempfile *temp;
                         ^
                              = NULL
/datasets/git/gpg-interface.c:325:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/gpg-interface.c:330:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!temp)
                  ^
                   {
/datasets/git/gpg-interface.c:354:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ret |= !strstr(gpg_stdout.buf, "\n[GNUPG:] GOODSIG ");
        ^~~
/datasets/git/gpg-interface.c:368:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *line, *principal, *search;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/gpg-interface.c:368:14: warning: variable 'line' is not initialized [cppcoreguidelines-init-variables]
        const char *line, *principal, *search;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/gpg-interface.c:368:21: warning: variable 'principal' is not initialized [cppcoreguidelines-init-variables]
        const char *line, *principal, *search;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/gpg-interface.c:368:33: warning: variable 'search' is not initialized [cppcoreguidelines-init-variables]
        const char *line, *principal, *search;
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/gpg-interface.c:369:8: warning: variable 'to_free' is not initialized [cppcoreguidelines-init-variables]
        char *to_free;
              ^
                      = NULL
/datasets/git/gpg-interface.c:368:2: note: inferred assignment of ID-dependent value from ID-dependent variable line [altera-id-dependent-backward-branch]
        const char *line, *principal, *search;
        ^
/datasets/git/gpg-interface.c:393:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                do {
                ^
/datasets/git/gpg-interface.c:395:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (search)
                                   ^
                                    {
/datasets/git/gpg-interface.c:397:12: warning: backward branch (do loop) is ID-dependent due to variable reference to 'search' and may cause performance degradation [altera-id-dependent-backward-branch]
                } while (search != NULL);
                         ^
/datasets/git/gpg-interface.c:398:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (line == principal)
                                      ^
                                       {
/datasets/git/gpg-interface.c:429:12: warning: function 'verify_ssh_signed_buffer' has cognitive complexity of 41 (threshold 25) [readability-function-cognitive-complexity]
static int verify_ssh_signed_buffer(struct signature_check *sigc,
           ^
/datasets/git/gpg-interface.c:451:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!ssh_allowed_signers) {
        ^
/datasets/git/gpg-interface.c:457:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!buffer_file)
        ^
/datasets/git/gpg-interface.c:459:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (write_in_full(buffer_file->fd, signature, signature_size) < 0 ||
        ^
/datasets/git/gpg-interface.c:459:68: note: +1
        if (write_in_full(buffer_file->fd, signature, signature_size) < 0 ||
                                                                          ^
/datasets/git/gpg-interface.c:467:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (sigc->payload_timestamp)
        ^
/datasets/git/gpg-interface.c:480:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ret && strstr(ssh_principals_err.buf, "usage:")) {
        ^
/datasets/git/gpg-interface.c:480:10: note: +1
        if (ret && strstr(ssh_principals_err.buf, "usage:")) {
                ^
/datasets/git/gpg-interface.c:482:3: note: +1
                goto out;
                ^
/datasets/git/gpg-interface.c:484:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ret || !ssh_principals_out.len) {
        ^
/datasets/git/gpg-interface.c:484:10: note: +1
        if (ret || !ssh_principals_out.len) {
                ^
/datasets/git/gpg-interface.c:504:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/gpg-interface.c:507:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (line = ssh_principals_out.buf;
                ^
/datasets/git/gpg-interface.c:515:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (*end_of_text &&
                        ^
/datasets/git/gpg-interface.c:516:27: note: +1
                            line < end_of_text &&
                                               ^
/datasets/git/gpg-interface.c:521:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (*next)
                        ^
/datasets/git/gpg-interface.c:525:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (line == end_of_text)
                        ^
/datasets/git/gpg-interface.c:547:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ssh_revocation_file) {
                        ^
/datasets/git/gpg-interface.c:548:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (file_exists(ssh_revocation_file)) {
                                ^
/datasets/git/gpg-interface.c:551:7: note: +1, nesting level increased to 4
                                } else {
                                  ^
/datasets/git/gpg-interface.c:562:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        FREE_AND_NULL(principal);
                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/gpg-interface.c:564:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!ret)
                        ^
/datasets/git/gpg-interface.c:567:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!ret)
                        ^
/datasets/git/gpg-interface.c:583:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (buffer_file)
        ^
/datasets/git/gpg-interface.c:435:19: warning: variable 'buffer_file' is not initialized [cppcoreguidelines-init-variables]
        struct tempfile *buffer_file;
                         ^
                                     = NULL
/datasets/git/gpg-interface.c:437:14: warning: variable 'line' is not initialized [cppcoreguidelines-init-variables]
        const char *line;
                    ^
                         = NULL
/datasets/git/gpg-interface.c:438:8: warning: variable 'principal' is not initialized [cppcoreguidelines-init-variables]
        char *principal;
              ^
                        = NULL
/datasets/git/gpg-interface.c:437:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        const char *line;
        ^
/datasets/git/gpg-interface.c:457:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!buffer_file)
                         ^
                          {
/datasets/git/gpg-interface.c:467:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (sigc->payload_timestamp)
                                    ^
                                     {
/datasets/git/gpg-interface.c:506:15: warning: variable 'next' is not initialized [cppcoreguidelines-init-variables]
                const char *next;
                            ^
                                 = NULL
/datasets/git/gpg-interface.c:508:8: warning: backward branch (for loop) is ID-dependent due to variable reference to 'line' and may cause performance degradation [altera-id-dependent-backward-branch]
                     *line;
                     ^
/datasets/git/gpg-interface.c:510:16: warning: variable 'end_of_text' is not initialized [cppcoreguidelines-init-variables]
                        const char *end_of_text;
                                    ^
                                                = NULL
/datasets/git/gpg-interface.c:517:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            end_of_text[-1] == '\r')
                                                    ^
                                                     {
/datasets/git/gpg-interface.c:521:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (*next)
                                  ^
                                   {
/datasets/git/gpg-interface.c:525:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (line == end_of_text)
                                                ^
                                                 {
/datasets/git/gpg-interface.c:562:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        FREE_AND_NULL(principal);
                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/gpg-interface.c:564:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!ret)
                                 ^
                                  {
/datasets/git/gpg-interface.c:567:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!ret)
                                 ^
                                  {
/datasets/git/gpg-interface.c:583:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (buffer_file)
                        ^
                         {
/datasets/git/gpg-interface.c:597:9: warning: variable 'ident_len' is not initialized [cppcoreguidelines-init-variables]
        size_t ident_len;
               ^
                         = 0
/datasets/git/gpg-interface.c:599:14: warning: variable 'signer_header' is not initialized [cppcoreguidelines-init-variables]
        const char *signer_header;
                    ^
                                  = NULL
/datasets/git/gpg-interface.c:617:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ident_line || !ident_len)
                                      ^
                                       {
/datasets/git/gpg-interface.c:620:43: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        if (split_ident_line(&ident, ident_line, ident_len))
                                                 ^
/datasets/git/gpg-interface.c:620:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (split_ident_line(&ident, ident_line, ident_len))
                                                            ^
                                                             {
/datasets/git/gpg-interface.c:623:69: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!sigc->payload_timestamp && ident.date_begin && ident.date_end)
                                                                           ^
                                                                            {
/datasets/git/gpg-interface.c:624:69: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                sigc->payload_timestamp = parse_timestamp(ident.date_begin, NULL, 10);
                                                                                  ^
/datasets/git/gpg-interface.c:632:21: warning: variable 'fmt' is not initialized [cppcoreguidelines-init-variables]
        struct gpg_format *fmt;
                           ^
                               = NULL
/datasets/git/gpg-interface.c:633:6: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int status;
            ^
                   = 0
/datasets/git/gpg-interface.c:639:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!fmt)
                 ^
                  {
/datasets/git/gpg-interface.c:642:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_payload_metadata(sigc))
                                         ^
                                          {
/datasets/git/gpg-interface.c:647:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (status && !sigc->output)
                                    ^
                                     {
/datasets/git/gpg-interface.c:650:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        status |= sigc->result != 'G';
        ^~~~~~
/datasets/git/gpg-interface.c:651:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        status |= sigc->trust_level < configured_min_trust_level;
        ^~~~~~
/datasets/git/gpg-interface.c:658:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        const char *output = flags & GPG_VERIFY_RAW ? sigc->gpg_status :
                             ^
/datasets/git/gpg-interface.c:661:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & GPG_VERIFY_VERBOSE && sigc->payload)
            ^
/datasets/git/gpg-interface.c:670:2: note: inferred assignment of ID-dependent value from ID-dependent variable eol [altera-id-dependent-backward-branch]
        size_t len = 0;
        ^
/datasets/git/gpg-interface.c:661:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & GPG_VERIFY_VERBOSE && sigc->payload)
                                                        ^
                                                         {
/datasets/git/gpg-interface.c:662:3: warning: the value returned by this function should be used [cert-err33-c]
                fwrite(sigc->payload, 1, sigc->payload_len, stdout);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/gpg-interface.c:662:3: note: cast the expression to void to silence this warning
/datasets/git/gpg-interface.c:664:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (output)
                   ^
                    {
/datasets/git/gpg-interface.c:665:3: warning: the value returned by this function should be used [cert-err33-c]
                fputs(output, stderr);
                ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/gpg-interface.c:665:3: note: cast the expression to void to silence this warning
/datasets/git/gpg-interface.c:672:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (len < size) {
        ^
/datasets/git/gpg-interface.c:672:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (len < size) {
               ^
/datasets/git/gpg-interface.c:673:15: warning: variable 'eol' is not initialized [cppcoreguidelines-init-variables]
                const char *eol;
                            ^
                                = NULL
/datasets/git/gpg-interface.c:675:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (get_format_by_sig(buf + len))
                                                 ^
                                                  {
/datasets/git/gpg-interface.c:702:5: warning: function 'git_gpg_config' has cognitive complexity of 27 (threshold 25) [readability-function-cognitive-complexity]
int git_gpg_config(const char *var, const char *value, void *cb UNUSED)
    ^
/datasets/git/gpg-interface.c:709:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "user.signingkey")) {
        ^
/datasets/git/gpg-interface.c:710:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!value)
                ^
/datasets/git/gpg-interface.c:716:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "gpg.format")) {
        ^
/datasets/git/gpg-interface.c:717:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!value)
                ^
/datasets/git/gpg-interface.c:720:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!fmt)
                ^
/datasets/git/gpg-interface.c:727:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "gpg.mintrustlevel")) {
        ^
/datasets/git/gpg-interface.c:728:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!value)
                ^
/datasets/git/gpg-interface.c:735:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ret)
                ^
/datasets/git/gpg-interface.c:741:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "gpg.ssh.defaultkeycommand")) {
        ^
/datasets/git/gpg-interface.c:742:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!value)
                ^
/datasets/git/gpg-interface.c:747:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "gpg.ssh.allowedsignersfile")) {
        ^
/datasets/git/gpg-interface.c:748:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!value)
                ^
/datasets/git/gpg-interface.c:753:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "gpg.ssh.revocationfile")) {
        ^
/datasets/git/gpg-interface.c:754:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!value)
                ^
/datasets/git/gpg-interface.c:759:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "gpg.program") || !strcmp(var, "gpg.openpgp.program"))
        ^
/datasets/git/gpg-interface.c:759:34: note: +1
        if (!strcmp(var, "gpg.program") || !strcmp(var, "gpg.openpgp.program"))
                                        ^
/datasets/git/gpg-interface.c:762:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "gpg.x509.program"))
        ^
/datasets/git/gpg-interface.c:765:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(var, "gpg.ssh.program"))
        ^
/datasets/git/gpg-interface.c:768:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (fmtname) {
        ^
/datasets/git/gpg-interface.c:702:62: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
int git_gpg_config(const char *var, const char *value, void *cb UNUSED)
                                                             ^
/datasets/git/gpg-interface.c:706:8: warning: variable 'trust' is not initialized [cppcoreguidelines-init-variables]
        char *trust;
              ^
                    = NULL
/datasets/git/gpg-interface.c:707:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/gpg-interface.c:710:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
                            {
/datasets/git/gpg-interface.c:717:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
                            {
/datasets/git/gpg-interface.c:720:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!fmt)
                         ^
                          {
/datasets/git/gpg-interface.c:728:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
                            {
/datasets/git/gpg-interface.c:735:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret)
                        ^
                         {
/datasets/git/gpg-interface.c:742:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
                            {
/datasets/git/gpg-interface.c:748:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
                            {
/datasets/git/gpg-interface.c:754:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
                            {
/datasets/git/gpg-interface.c:759:73: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(var, "gpg.program") || !strcmp(var, "gpg.openpgp.program"))
                                                                               ^
                                                                                {
/datasets/git/gpg-interface.c:762:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(var, "gpg.x509.program"))
                                             ^
                                              {
/datasets/git/gpg-interface.c:765:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(var, "gpg.ssh.program"))
                                            ^
                                             {
/datasets/git/gpg-interface.c:782:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (skip_prefix(string, "key::", key))
                                              ^
                                               {
/datasets/git/gpg-interface.c:796:18: warning: variable 'fingerprint' is not initialized [cppcoreguidelines-init-variables]
        struct strbuf **fingerprint;
                        ^
                                    = NULL
/datasets/git/gpg-interface.c:797:8: warning: variable 'fingerprint_ret' is not initialized [cppcoreguidelines-init-variables]
        char *fingerprint_ret;
              ^
                              = NULL
/datasets/git/gpg-interface.c:816:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!!ret)
                  ^
                   {
/datasets/git/gpg-interface.c:821:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!fingerprint[1])
                            ^
                             {
/datasets/git/gpg-interface.c:836:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct strbuf key_stdout = STRBUF_INIT, key_stderr = STRBUF_INIT;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/gpg-interface.c:837:18: warning: variable 'keys' is not initialized [cppcoreguidelines-init-variables]
        struct strbuf **keys;
                        ^
                             = NULL
/datasets/git/gpg-interface.c:839:15: warning: variable 'argv' is not initialized [cppcoreguidelines-init-variables]
        const char **argv;
                     ^
                          = NULL
/datasets/git/gpg-interface.c:840:6: warning: variable 'n' is not initialized [cppcoreguidelines-init-variables]
        int n;
            ^
              = 0
/datasets/git/gpg-interface.c:840:6: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/gpg-interface.c:844:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ssh_default_key_command)
                                     ^
                                      {
/datasets/git/gpg-interface.c:850:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (n < 0)
                  ^
                   {
/datasets/git/gpg-interface.c:901:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (configured_signing_key)
                                   ^
                                    {
/datasets/git/gpg-interface.c:907:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return git_committer_info(IDENT_STRICT | IDENT_NO_DATE);
                                  ^
/datasets/git/./refs/../cache.h:1629:29: note: expanded from macro 'IDENT_STRICT'
#define IDENT_STRICT           1
                               ^
/datasets/git/gpg-interface.c:912:35: warning: variable 'trust' is not initialized [cppcoreguidelines-init-variables]
        struct sigcheck_gpg_trust_level *trust;
                                         ^
                                               = NULL
/datasets/git/gpg-interface.c:914:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (level < 0 || level >= ARRAY_SIZE(sigcheck_gpg_trust_level))
                                                                       ^
                                                                        {
/datasets/git/gpg-interface.c:918:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (trust->value != level)
                                  ^
                                   {
/datasets/git/gpg-interface.c:935:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t i, j;
        ^~~~~~~~~~~~
/datasets/git/gpg-interface.c:935:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/gpg-interface.c:935:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i, j;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/gpg-interface.c:935:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/gpg-interface.c:935:12: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        size_t i, j;
                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/gpg-interface.c:935:12: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/gpg-interface.c:937:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = j = offset; i < buffer->len; i++) {
        ^
/datasets/git/gpg-interface.c:937:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = j = offset; i < buffer->len; i++) {
                             ^
/datasets/git/gpg-interface.c:939:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (i != j)
                                   ^
                                    {
/datasets/git/gpg-interface.c:951:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/gpg-interface.c:952:9: warning: variable 'bottom' is not initialized [cppcoreguidelines-init-variables]
        size_t bottom;
               ^
                      = 0
/datasets/git/gpg-interface.c:953:14: warning: variable 'cp' is not initialized [cppcoreguidelines-init-variables]
        const char *cp;
                    ^
                       = NULL
/datasets/git/gpg-interface.c:953:14: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/gpg-interface.c:970:18: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                           signature, 1024, &gpg_status, 0);
                                      ^
/datasets/git/gpg-interface.c:973:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cp = gpg_status.buf;
        ^
/datasets/git/gpg-interface.c:974:7: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cp' and may cause performance degradation [altera-id-dependent-backward-branch]
             cp && (cp = strstr(cp, "[GNUPG:] SIG_CREATED "));
             ^
/datasets/git/gpg-interface.c:976:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cp == gpg_status.buf || cp[-1] == '\n')
                                                           ^
                                                            {
/datasets/git/gpg-interface.c:979:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ret |= !cp;
        ^~~
/datasets/git/gpg-interface.c:981:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/gpg-interface.c:995:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t bottom, keylen;
        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/gpg-interface.c:995:9: warning: variable 'bottom' is not initialized [cppcoreguidelines-init-variables]
        size_t bottom, keylen;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/gpg-interface.c:995:17: warning: variable 'keylen' is not initialized [cppcoreguidelines-init-variables]
        size_t bottom, keylen;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/gpg-interface.c:997:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct tempfile *key_file = NULL, *buffer_file = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/gpg-interface.c:1002:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!signing_key || signing_key[0] == '\0')
                                                   ^
                                                    {
/datasets/git/gpg-interface.c:1009:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!key_file)
                              ^
                               {
/datasets/git/gpg-interface.c:1050:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strstr(signer_stderr.buf, "usage:"))
                                                        ^
                                                         {
/datasets/git/gpg-interface.c:1071:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (key_file)
                     ^
                      {
/datasets/git/gpg-interface.c:1073:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (buffer_file)
                        ^
                         {
/datasets/git/gpg-interface.c:1075:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ssh_signature_filename.len)
                                       ^
                                        {
/datasets/git/gpg-interface.c:1079:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(ssh_signing_key_file);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/graph.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "color.h"
/datasets/git/graph.c:18:72: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static void graph_padding_line(struct git_graph *graph, struct strbuf *sb);
                                                                       ^
/datasets/git/graph.c:41:31: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                              struct strbuf const *sb);
                                                   ^
/datasets/git/graph.c:50:8: warning: accessing fields in struct 'column' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct column {
       ^
/datasets/git/graph.c:50:8: note: use "__attribute__((aligned(16)))" to align struct 'column' to 16 bytes
/datasets/git/graph.c:73:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!diffopt || !diffopt->line_prefix)
                                              ^
                                               {
/datasets/git/graph.c:76:2: warning: the value returned by this function should be used [cert-err33-c]
        fwrite(diffopt->line_prefix,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/graph.c:76:2: note: cast the expression to void to silence this warning
/datasets/git/graph.c:82:21: warning: variable 'column_colors' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char **column_colors;
                    ^
/datasets/git/graph.c:82:21: warning: variable 'column_colors' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/graph.c:83:23: warning: variable 'column_colors_max' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned short column_colors_max;
                      ^
/datasets/git/graph.c:87:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *end, *start;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/graph.c:87:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/graph.c:87:14: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
        const char *end, *start;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/graph.c:87:20: warning: variable 'start' is not initialized [cppcoreguidelines-init-variables]
        const char *end, *start;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/graph.c:91:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (start < end) {
        ^
/datasets/git/graph.c:91:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'start' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (start < end) {
               ^
/datasets/git/graph.c:95:31: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                if (!color_parse_mem(start, comma - start, color))
                                            ^
/datasets/git/graph.c:95:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!color_parse_mem(start, comma - start, color))
                                                                  ^
                                                                   {
/datasets/git/graph.c:97:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/graph.c:116:8: warning: accessing fields in struct 'graph_line' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct graph_line {
       ^
/datasets/git/graph.c:116:8: note: use "__attribute__((aligned(16)))" to align struct 'graph_line' to 16 bytes
/datasets/git/graph.c:121:66: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static inline void graph_line_addch(struct graph_line *line, int c)
                                                                 ^
/datasets/git/graph.c:127:69: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static inline void graph_line_addchars(struct graph_line *line, int c, size_t n)
                                                                    ^
/datasets/git/graph.c:133:75: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static inline void graph_line_addstr(struct graph_line *line, const char *s)
                                                                          ^
/datasets/git/graph.c:144:83: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static void graph_line_write_column(struct graph_line *line, const struct column *c,
                                                                                  ^
/datasets/git/graph.c:147:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (c->color < column_colors_max)
                                         ^
                                          {
/datasets/git/graph.c:150:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (c->color < column_colors_max)
                                         ^
                                          {
/datasets/git/graph.c:154:8: warning: accessing fields in struct 'git_graph' is inefficient due to padding; only needs 106 bytes but is using 112 bytes [altera-struct-pack-align]
struct git_graph {
       ^
/datasets/git/graph.c:154:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'git_graph'
/datasets/git/graph.c:154:8: warning: accessing fields in struct 'git_graph' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct git_graph {
       ^
/datasets/git/graph.c:154:8: note: use "__attribute__((aligned(128)))" to align struct 'git_graph' to 128 bytes
/datasets/git/graph.c:322:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->line_prefix)
                             ^
                              {
/datasets/git/graph.c:325:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (graph)
                  ^
                   {
/datasets/git/graph.c:330:35: warning: variable 'default_diffopt' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const struct diff_options *default_diffopt;
                                  ^
/datasets/git/graph.c:337:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (diffopt && !diffopt->output_prefix)
                                               ^
                                                {
/datasets/git/graph.c:347:9: warning: variable 'string' is not initialized [cppcoreguidelines-init-variables]
                char *string;
                      ^
                             = NULL
/datasets/git/graph.c:388:27: warning: 30 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        graph->column_capacity = 30;
                                 ^
/datasets/git/graph.c:391:30: warning: performing an implicit widening conversion to type 'size_t' (aka 'unsigned long') of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        ALLOC_ARRAY(graph->mapping, 2 * graph->column_capacity);
                                    ^
/datasets/git/graph.c:391:30: note: make conversion explicit to silence this warning
        ALLOC_ARRAY(graph->mapping, 2 * graph->column_capacity);
                                    ^
                                    (size_t)(  )
/datasets/git/./git-compat-util.h:1090:68: note: expanded from macro 'ALLOC_ARRAY'
#define ALLOC_ARRAY(x, alloc) (x) = xmalloc(st_mult(sizeof(*(x)), (alloc)))
                                                                   ^~~~~
/datasets/git/graph.c:391:30: note: perform multiplication in a wider type
        ALLOC_ARRAY(graph->mapping, 2 * graph->column_capacity);
                                    ^
                                    (long)
/datasets/git/./git-compat-util.h:1090:68: note: expanded from macro 'ALLOC_ARRAY'
#define ALLOC_ARRAY(x, alloc) (x) = xmalloc(st_mult(sizeof(*(x)), (alloc)))
                                                                   ^~~~~
/datasets/git/graph.c:392:34: warning: performing an implicit widening conversion to type 'size_t' (aka 'unsigned long') of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        ALLOC_ARRAY(graph->old_mapping, 2 * graph->column_capacity);
                                        ^
/datasets/git/graph.c:392:34: note: make conversion explicit to silence this warning
        ALLOC_ARRAY(graph->old_mapping, 2 * graph->column_capacity);
                                        ^
                                        (size_t)(  )
/datasets/git/./git-compat-util.h:1090:68: note: expanded from macro 'ALLOC_ARRAY'
#define ALLOC_ARRAY(x, alloc) (x) = xmalloc(st_mult(sizeof(*(x)), (alloc)))
                                                                   ^~~~~
/datasets/git/graph.c:392:34: note: perform multiplication in a wider type
        ALLOC_ARRAY(graph->old_mapping, 2 * graph->column_capacity);
                                        ^
                                        (long)
/datasets/git/./git-compat-util.h:1090:68: note: expanded from macro 'ALLOC_ARRAY'
#define ALLOC_ARRAY(x, alloc) (x) = xmalloc(st_mult(sizeof(*(x)), (alloc)))
                                                                   ^~~~~
/datasets/git/graph.c:406:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!graph)
                   ^
                    {
/datasets/git/graph.c:416:74: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void graph_update_state(struct git_graph *graph, enum graph_state s)
                                                                         ^
/datasets/git/graph.c:424:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (graph->column_capacity >= num_columns)
                                                  ^
                                                   {
/datasets/git/graph.c:427:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        do {
        ^
/datasets/git/graph.c:433:32: warning: performing an implicit widening conversion to type 'size_t' (aka 'unsigned long') of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        REALLOC_ARRAY(graph->mapping, graph->column_capacity * 2);
                                      ^
/datasets/git/graph.c:433:32: note: make conversion explicit to silence this warning
        REALLOC_ARRAY(graph->mapping, graph->column_capacity * 2);
                                      ^
                                      (size_t)(                )
/datasets/git/./git-compat-util.h:1092:76: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                                           ^~~~~
/datasets/git/graph.c:433:32: note: perform multiplication in a wider type
        REALLOC_ARRAY(graph->mapping, graph->column_capacity * 2);
                                      ^
                                      (long)
/datasets/git/./git-compat-util.h:1092:76: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                                           ^~~~~
/datasets/git/graph.c:434:36: warning: performing an implicit widening conversion to type 'size_t' (aka 'unsigned long') of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        REALLOC_ARRAY(graph->old_mapping, graph->column_capacity * 2);
                                          ^
/datasets/git/graph.c:434:36: note: make conversion explicit to silence this warning
        REALLOC_ARRAY(graph->old_mapping, graph->column_capacity * 2);
                                          ^
                                          (size_t)(                )
/datasets/git/./git-compat-util.h:1092:76: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                                           ^~~~~
/datasets/git/graph.c:434:36: note: perform multiplication in a wider type
        REALLOC_ARRAY(graph->old_mapping, graph->column_capacity * 2);
                                          ^
                                          (long)
/datasets/git/./git-compat-util.h:1092:76: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                                           ^~~~~
/datasets/git/graph.c:449:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (commit->object.flags & CHILD_SHOWN)
                                           ^
/datasets/git/./revision.h:33:22: note: expanded from macro 'CHILD_SHOWN'
#define CHILD_SHOWN     (1u<<6)
                         ^   ~
/datasets/git/graph.c:449:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (commit->object.flags & CHILD_SHOWN)
                                                       ^
                                                        {
/datasets/git/graph.c:463:22: warning: variable 'list' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *list;
                            ^
                                 = NULL
/datasets/git/graph.c:469:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (graph->revs->first_parent_only)
                                           ^
                                            {
/datasets/git/graph.c:475:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (list = orig->next; list; list = list->next) {
        ^
/datasets/git/graph.c:475:26: warning: backward branch (for loop) is ID-dependent due to variable reference to 'list' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (list = orig->next; list; list = list->next) {
                                ^
/datasets/git/graph.c:476:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (graph_is_interesting(graph, list->item))
                                                            ^
                                                             {
/datasets/git/graph.c:490:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!parents)
                     ^
                      {
/datasets/git/graph.c:496:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (graph_is_interesting(graph, parents->item))
                                                       ^
                                                        {
/datasets/git/graph.c:508:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!want_color(graph->revs->diffopt.use_color))
                                                        ^
                                                         {
/datasets/git/graph.c:525:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/graph.c:525:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/graph.c:526:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < graph->num_columns; i++) {
        ^
/datasets/git/graph.c:527:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (graph->columns[i].commit == commit)
                                                       ^
                                                        {
/datasets/git/graph.c:536:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/graph.c:536:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/graph.c:537:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < graph->num_new_columns; i++) {
        ^
/datasets/git/graph.c:538:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (graph->new_columns[i].commit == commit)
                                                           ^
                                                            {
/datasets/git/graph.c:548:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = graph_find_new_column_by_commit(graph, commit);
            ^
/datasets/git/graph.c:549:6: warning: variable 'mapping_idx' is not initialized [cppcoreguidelines-init-variables]
        int mapping_idx;
            ^
                        = 0
/datasets/git/graph.c:567:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int dist, shift;
                ^~~~~~~~~~~~~~~~
/datasets/git/graph.c:567:7: warning: variable 'dist' is not initialized [cppcoreguidelines-init-variables]
                int dist, shift;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/graph.c:567:13: warning: variable 'shift' is not initialized [cppcoreguidelines-init-variables]
                int dist, shift;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/graph.c:601:22: warning: variable 'parent' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *parent;
                            ^
                                   = NULL
/datasets/git/graph.c:602:6: warning: variable 'max_new_columns' is not initialized [cppcoreguidelines-init-variables]
        int max_new_columns;
            ^
                            = 0
/datasets/git/graph.c:603:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, seen_this, is_commit_in_columns;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/graph.c:603:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, seen_this, is_commit_in_columns;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/graph.c:603:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/graph.c:603:9: warning: variable 'seen_this' is not initialized [cppcoreguidelines-init-variables]
        int i, seen_this, is_commit_in_columns;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/graph.c:603:20: warning: variable 'is_commit_in_columns' is not initialized [cppcoreguidelines-init-variables]
        int i, seen_this, is_commit_in_columns;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/graph.c:613:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        SWAP(graph->columns, graph->new_columns);
        ^
/datasets/git/./git-compat-util.h:759:20: note: expanded from macro 'SWAP'
#define SWAP(a, b) do {                                         \
                   ^
/datasets/git/graph.c:613:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        SWAP(graph->columns, graph->new_columns);
        ^
/datasets/git/./git-compat-util.h:762:29: note: expanded from macro 'SWAP'
        unsigned char _swap_buffer[sizeof(a)];                  \
                                   ^
/datasets/git/graph.c:613:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        SWAP(graph->columns, graph->new_columns);
        ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/graph.c:613:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        SWAP(graph->columns, graph->new_columns);
        ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/graph.c:632:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < graph->mapping_size; i++)
        ^
/datasets/git/graph.c:269:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        int num_columns;
        ^
/datasets/git/graph.c:632:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'mapping_size' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < graph->mapping_size; i++)
                    ^
/datasets/git/graph.c:632:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < graph->mapping_size; i++)
                                                 ^
                                                  {
/datasets/git/graph.c:650:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'num_columns' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i <= graph->num_columns; i++) {
                    ^
/datasets/git/graph.c:651:18: warning: variable 'col_commit' is not initialized [cppcoreguidelines-init-variables]
                struct commit *col_commit;
                               ^
                                          = NULL
/datasets/git/graph.c:653:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (seen_this)
                                      ^
                                       {
/datasets/git/graph.c:665:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (parent = first_interesting_parent(graph);
                        ^
/datasets/git/graph.c:666:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'parent' and may cause performance degradation [altera-id-dependent-backward-branch]
                             parent;
                             ^
/datasets/git/graph.c:685:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (graph->num_parents == 0)
                                                    ^
                                                     {
/datasets/git/graph.c:695:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (graph->mapping_size > 1 &&
        ^
/datasets/git/graph.c:695:9: warning: backward branch (while loop) is ID-dependent due to member reference to 'mapping_size' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (graph->mapping_size > 1 &&
               ^
/datasets/git/graph.c:696:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
               graph->mapping[graph->mapping_size - 1] < 0)
                                                           ^
                                                            {
/datasets/git/graph.c:739:22: warning: variable 'parent' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *parent;
                            ^
                                   = NULL
/datasets/git/graph.c:750:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (parent = first_interesting_parent(graph);
        ^
/datasets/git/graph.c:751:7: warning: backward branch (for loop) is ID-dependent due to variable reference to 'parent' and may cause performance degradation [altera-id-dependent-backward-branch]
             parent;
             ^
/datasets/git/graph.c:790:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (graph->state != GRAPH_PADDING)
                                          ^
                                           {
/datasets/git/graph.c:792:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (graph_needs_pre_commit_line(graph))
                                                    ^
                                                     {
/datasets/git/graph.c:794:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/graph.c:800:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/graph.c:800:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/graph.c:808:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < graph->mapping_size; i++) {
        ^
/datasets/git/graph.c:808:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'mapping_size' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < graph->mapping_size; i++) {
                    ^
/datasets/git/graph.c:810:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (target < 0)
                               ^
                                {
/datasets/git/graph.c:812:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (target == (i / 2))
                                      ^
                                       {
/datasets/git/graph.c:829:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (line->width < graph->width)
                                       ^
                                        {
/datasets/git/graph.c:836:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/graph.c:836:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/graph.c:841:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < graph->num_new_columns; i++) {
        ^
/datasets/git/graph.c:862:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (graph_needs_pre_commit_line(graph))
                                               ^
                                                {
/datasets/git/graph.c:864:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/graph.c:871:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, seen_this;
        ^~~~~~~~~~~~~~~~~
/datasets/git/graph.c:269:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        int num_columns;
        ^
/datasets/git/graph.c:871:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, seen_this;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/graph.c:871:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/graph.c:871:9: warning: variable 'seen_this' is not initialized [cppcoreguidelines-init-variables]
        int i, seen_this;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/graph.c:893:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < graph->num_columns; i++) {
        ^
/datasets/git/graph.c:893:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'num_columns' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < graph->num_columns; i++) {
                    ^
/datasets/git/graph.c:910:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            graph->prev_commit_index < i)
                                                         ^
                                                          {
/datasets/git/graph.c:912:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/graph.c:927:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!graph_needs_pre_commit_line(graph))
                                                ^
                                                 {
/datasets/git/graph.c:937:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (graph->commit->object.flags & BOUNDARY) {
                                          ^
/datasets/git/./revision.h:32:19: note: expanded from macro 'BOUNDARY'
#define BOUNDARY        (1u<<5)
                         ^   ~
/datasets/git/graph.c:980:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, j;
        ^~~~~~~~~
/datasets/git/graph.c:983:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int dashed_parents = graph_num_dashed_parents(graph);
        ^
/datasets/git/graph.c:980:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, j;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/graph.c:980:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/graph.c:980:9: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int i, j;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/graph.c:980:9: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/graph.c:981:17: warning: variable 'col' is not initialized [cppcoreguidelines-init-variables]
        struct column *col;
                       ^
                           = NULL
/datasets/git/graph.c:985:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < dashed_parents; i++) {
        ^
/datasets/git/graph.c:985:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'dashed_parents' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < dashed_parents; i++) {
                    ^
/datasets/git/graph.c:986:7: warning: result of multiplication in type 'int' is used as a pointer offset after an implicit widening conversion to type 'ptrdiff_t' [bugprone-implicit-widening-of-multiplication-result]
                j = graph->mapping[(graph->commit_index + i + 2) * 2];
                    ^
/datasets/git/graph.c:986:22: note: make conversion explicit to silence this warning
                j = graph->mapping[(graph->commit_index + i + 2) * 2];
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                   (ptrdiff_t)(                    )
/datasets/git/graph.c:986:22: note: perform multiplication in a wider type
                j = graph->mapping[(graph->commit_index + i + 2) * 2];
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                    (ptrdiff_t)
/datasets/git/graph.c:993:2: warning: redundant return statement at the end of a function with a void return type [readability-redundant-control-flow]
        return;
        ^~~~~~~
/datasets/git/graph.c:996:13: warning: function 'graph_output_commit_line' has cognitive complexity of 27 (threshold 25) [readability-function-cognitive-complexity]
static void graph_output_commit_line(struct git_graph *graph, struct graph_line *line)
            ^
/datasets/git/graph.c:1009:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i <= graph->num_columns; i++) {
        ^
/datasets/git/graph.c:1012:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (i == graph->num_columns) {
                ^
/datasets/git/graph.c:1013:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (seen_this)
                        ^
/datasets/git/graph.c:1016:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/graph.c:1020:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (col_commit == graph->commit) {
                ^
/datasets/git/graph.c:1024:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (graph->num_parents > 2)
                        ^
/datasets/git/graph.c:1026:10: note: +1, nesting level increased to 2
                } else if (seen_this && (graph->edges_added > 1)) {
                       ^
/datasets/git/graph.c:1026:24: note: +1
                } else if (seen_this && (graph->edges_added > 1)) {
                                     ^
/datasets/git/graph.c:1028:10: note: +1, nesting level increased to 2
                } else if (seen_this && (graph->edges_added == 1)) {
                       ^
/datasets/git/graph.c:1028:24: note: +1
                } else if (seen_this && (graph->edges_added == 1)) {
                                     ^
/datasets/git/graph.c:1043:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (graph->prev_state == GRAPH_POST_MERGE &&
                        ^
/datasets/git/graph.c:1044:36: note: +1
                            graph->prev_edges_added > 0 &&
                                                        ^
/datasets/git/graph.c:1047:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/graph.c:1049:10: note: +1, nesting level increased to 2
                } else if (graph->prev_state == GRAPH_COLLAPSING &&
                       ^
/datasets/git/graph.c:1050:42: note: +1
                           graph->old_mapping[2 * i + 1] == i &&
                                                              ^
/datasets/git/graph.c:1053:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/graph.c:1062:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (graph->num_parents > 1)
        ^
/datasets/git/graph.c:1064:7: note: +1, nesting level increased to 1
        else if (graph_is_mapping_correct(graph))
             ^
/datasets/git/graph.c:1066:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/graph.c:269:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        int num_columns;
        ^
/datasets/git/graph.c:999:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/graph.c:999:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/graph.c:1009:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i <= graph->num_columns; i++) {
        ^
/datasets/git/graph.c:1009:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'num_columns' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i <= graph->num_columns; i++) {
                    ^
/datasets/git/graph.c:1011:18: warning: variable 'col_commit' is not initialized [cppcoreguidelines-init-variables]
                struct commit *col_commit;
                               ^
                                          = NULL
/datasets/git/graph.c:1013:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (seen_this)
                                      ^
                                       {
/datasets/git/graph.c:1024:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (graph->num_parents > 2)
                                                   ^
                                                    {
/datasets/git/graph.c:1045:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            graph->prev_commit_index < i)
                                                         ^
                                                          {
/datasets/git/graph.c:1047:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/graph.c:1051:7: warning: result of multiplication in type 'int' is used as a pointer offset after an implicit widening conversion to type 'ptrdiff_t' [bugprone-implicit-widening-of-multiplication-result]
                           graph->mapping[2 * i] < i) {
                           ^
/datasets/git/graph.c:1051:22: note: make conversion explicit to silence this warning
                           graph->mapping[2 * i] < i) {
                                          ^~~~~
                                          (ptrdiff_t)( )
/datasets/git/graph.c:1051:22: note: perform multiplication in a wider type
                           graph->mapping[2 * i] < i) {
                                          ^
                                          (ptrdiff_t)
/datasets/git/graph.c:1062:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (graph->num_parents > 1)
                                   ^
                                    {
/datasets/git/graph.c:1064:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (graph_is_mapping_correct(graph))
                                                 ^
                                                  {
/datasets/git/graph.c:1066:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/graph.c:1072:13: warning: function 'graph_output_post_merge_line' has cognitive complexity of 55 (threshold 25) [readability-function-cognitive-complexity]
static void graph_output_post_merge_line(struct git_graph *graph, struct graph_line *line)
            ^
/datasets/git/graph.c:1083:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i <= graph->num_columns; i++) {
        ^
/datasets/git/graph.c:1086:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (i == graph->num_columns) {
                ^
/datasets/git/graph.c:1087:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (seen_this)
                        ^
/datasets/git/graph.c:1090:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/graph.c:1094:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (col_commit == graph->commit) {
                ^
/datasets/git/graph.c:1107:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (j = 0; j < graph->num_parents; j++) {
                        ^
/datasets/git/graph.c:1109:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                assert(par_column >= 0);
                                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/graph.c:1109:5: note: nesting level increased to 4
                                assert(par_column >= 0);
                                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/graph.c:1109:5: note: +5, including nesting penalty of 4, nesting level increased to 5
                                assert(par_column >= 0);
                                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/graph.c:1109:5: note: +1, nesting level increased to 5
                                assert(par_column >= 0);
                                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/graph.c:1113:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (idx == 2) {
                                ^
/datasets/git/graph.c:1114:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (graph->edges_added > 0 || j < graph->num_parents - 1)
                                        ^
/datasets/git/graph.c:1114:33: note: +1
                                        if (graph->edges_added > 0 || j < graph->num_parents - 1)
                                                                   ^
/datasets/git/graph.c:1116:7: note: +1, nesting level increased to 4
                                } else {
                                  ^
/datasets/git/graph.c:1121:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (graph->edges_added == 0)
                        ^
/datasets/git/graph.c:1124:10: note: +1, nesting level increased to 2
                } else if (seen_this) {
                       ^
/datasets/git/graph.c:1125:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (graph->edges_added > 0)
                        ^
/datasets/git/graph.c:1127:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/graph.c:1130:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/graph.c:1132:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (graph->merge_layout != 0 || i != graph->commit_index - 1) {
                        ^
/datasets/git/graph.c:1132:33: note: +1
                        if (graph->merge_layout != 0 || i != graph->commit_index - 1) {
                                                     ^
/datasets/git/graph.c:1133:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (parent_col)
                                ^
/datasets/git/graph.c:1136:5: note: +1, nesting level increased to 4
                                else
                                ^
/datasets/git/graph.c:1141:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (col_commit == first_parent->item)
                ^
/datasets/git/graph.c:1148:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (graph_is_mapping_correct(graph))
        ^
/datasets/git/graph.c:1150:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/graph.c:1075:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, j;
        ^~~~~~~~~
/datasets/git/graph.c:269:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        int num_columns;
        ^
/datasets/git/graph.c:1075:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, j;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/graph.c:1075:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/graph.c:1075:9: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int i, j;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/graph.c:1075:9: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/graph.c:1083:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'num_columns' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i <= graph->num_columns; i++) {
                    ^
/datasets/git/graph.c:1085:18: warning: variable 'col_commit' is not initialized [cppcoreguidelines-init-variables]
                struct commit *col_commit;
                               ^
                                          = NULL
/datasets/git/graph.c:1087:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (seen_this)
                                      ^
                                       {
/datasets/git/graph.c:1102:8: warning: variable 'par_column' is not initialized [cppcoreguidelines-init-variables]
                        int par_column;
                            ^
                                       = 0
/datasets/git/graph.c:1104:9: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
                        char c;
                             ^
                               = 0
/datasets/git/graph.c:1104:9: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/graph.c:1107:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (j = 0; j < graph->num_parents; j++) {
                        ^
/datasets/git/graph.c:1114:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        if (graph->edges_added > 0 || j < graph->num_parents - 1)
                                                                                                 ^
                                                                                                  {
/datasets/git/graph.c:1121:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (graph->edges_added == 0)
                                                    ^
                                                     {
/datasets/git/graph.c:1125:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (graph->edges_added > 0)
                                                   ^
                                                    {
/datasets/git/graph.c:1127:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/graph.c:1133:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (parent_col)
                                               ^
                                                {
/datasets/git/graph.c:1136:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                else
                                    ^
                                     {
/datasets/git/graph.c:1141:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (col_commit == first_parent->item)
                                                     ^
                                                      {
/datasets/git/graph.c:1148:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (graph_is_mapping_correct(graph))
                                            ^
                                             {
/datasets/git/graph.c:1150:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/graph.c:1154:13: warning: function 'graph_output_collapsing_line' has cognitive complexity of 70 (threshold 25) [readability-function-cognitive-complexity]
static void graph_output_collapsing_line(struct git_graph *graph, struct graph_line *line)
            ^
/datasets/git/graph.c:1164:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        SWAP(graph->mapping, graph->old_mapping);
        ^
/datasets/git/./git-compat-util.h:759:20: note: expanded from macro 'SWAP'
#define SWAP(a, b) do {                                         \
                   ^
/datasets/git/graph.c:1169:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < graph->mapping_size; i++)
        ^
/datasets/git/graph.c:1172:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < graph->mapping_size; i++) {
        ^
/datasets/git/graph.c:1174:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (target < 0)
                ^
/datasets/git/graph.c:1187:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(target * 2 <= i);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/graph.c:1187:3: note: nesting level increased to 2
                assert(target * 2 <= i);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/graph.c:1187:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(target * 2 <= i);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/graph.c:1187:3: note: +1, nesting level increased to 3
                assert(target * 2 <= i);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/graph.c:1189:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (target * 2 == i) {
                ^
/datasets/git/graph.c:1194:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        assert(graph->mapping[i] == -1);
                        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/graph.c:1194:4: note: nesting level increased to 3
                        assert(graph->mapping[i] == -1);
                        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/graph.c:1194:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        assert(graph->mapping[i] == -1);
                        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/graph.c:1194:4: note: +1, nesting level increased to 4
                        assert(graph->mapping[i] == -1);
                        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/graph.c:1196:10: note: +1, nesting level increased to 2
                } else if (graph->mapping[i - 1] < 0) {
                       ^
/datasets/git/graph.c:1206:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (horizontal_edge == -1) {
                        ^
/datasets/git/graph.c:1216:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                for (j = (target * 2)+3; j < (i - 2); j += 2)
                                ^
/datasets/git/graph.c:1219:10: note: +1, nesting level increased to 2
                } else if (graph->mapping[i - 1] == target) {
                       ^
/datasets/git/graph.c:1231:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/graph.c:1240:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        assert(graph->mapping[i - 1] > target);
                        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/graph.c:1240:4: note: nesting level increased to 3
                        assert(graph->mapping[i - 1] > target);
                        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/graph.c:1240:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        assert(graph->mapping[i - 1] > target);
                        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/graph.c:1240:4: note: +1, nesting level increased to 4
                        assert(graph->mapping[i - 1] > target);
                        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/graph.c:1241:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        assert(graph->mapping[i - 2] < 0);
                        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/graph.c:1241:4: note: nesting level increased to 3
                        assert(graph->mapping[i - 2] < 0);
                        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/graph.c:1241:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        assert(graph->mapping[i - 2] < 0);
                        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/graph.c:1241:4: note: +1, nesting level increased to 4
                        assert(graph->mapping[i - 2] < 0);
                        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/graph.c:1248:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (horizontal_edge == -1) {
                        ^
/datasets/git/graph.c:1253:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                for (j = (target * 2) + 3; j < (i - 2); j += 2)
                                ^
/datasets/git/graph.c:1267:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (graph->mapping[graph->mapping_size - 1] < 0)
        ^
/datasets/git/graph.c:1273:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < graph->mapping_size; i++) {
        ^
/datasets/git/graph.c:1275:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (target < 0)
                ^
/datasets/git/graph.c:1277:8: note: +1, nesting level increased to 2
                else if (target * 2 == i)
                     ^
/datasets/git/graph.c:1279:8: note: +1, nesting level increased to 2
                else if (target == horizontal_edge_target &&
                     ^
/datasets/git/graph.c:1279:45: note: +1
                else if (target == horizontal_edge_target &&
                                                          ^
/datasets/git/graph.c:1286:5: note: +3, including nesting penalty of 2, nesting level increased to 3
                                if (i != (target * 2)+3)
                                ^
/datasets/git/graph.c:1290:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/graph.c:1291:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (used_horizontal && i < horizontal_edge)
                        ^
/datasets/git/graph.c:1291:24: note: +1
                        if (used_horizontal && i < horizontal_edge)
                                            ^
/datasets/git/graph.c:1303:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (graph_is_mapping_correct(graph))
        ^
/datasets/git/graph.c:1156:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/graph.c:1156:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/graph.c:1164:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        SWAP(graph->mapping, graph->old_mapping);
        ^
/datasets/git/./git-compat-util.h:759:20: note: expanded from macro 'SWAP'
#define SWAP(a, b) do {                                         \
                   ^
/datasets/git/graph.c:1164:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        SWAP(graph->mapping, graph->old_mapping);
        ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/graph.c:1164:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        SWAP(graph->mapping, graph->old_mapping);
        ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/graph.c:1169:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < graph->mapping_size; i++)
        ^
/datasets/git/graph.c:277:2: note: inferred assignment of ID-dependent member from ID-dependent variable max_new_columns [altera-id-dependent-backward-branch]
        int mapping_size;
        ^
/datasets/git/graph.c:1169:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'mapping_size' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < graph->mapping_size; i++)
                    ^
/datasets/git/graph.c:1169:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < graph->mapping_size; i++)
                                                 ^
                                                  {
/datasets/git/graph.c:1172:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'mapping_size' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < graph->mapping_size; i++) {
                    ^
/datasets/git/graph.c:1174:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (target < 0)
                               ^
                                {
/datasets/git/graph.c:1207:9: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
                                int j;
                                    ^
                                      = 0
/datasets/git/graph.c:1207:9: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/graph.c:1216:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                for (j = (target * 2)+3; j < (i - 2); j += 2)
                                ^
/datasets/git/graph.c:1216:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'j' and may cause performance degradation [altera-id-dependent-backward-branch]
                                for (j = (target * 2)+3; j < (i - 2); j += 2)
                                                         ^
/datasets/git/graph.c:1216:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                for (j = (target * 2)+3; j < (i - 2); j += 2)
                                                                             ^
                                                                              {
/datasets/git/graph.c:1249:9: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
                                int j;
                                    ^
                                      = 0
/datasets/git/graph.c:1249:9: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/graph.c:1253:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                for (j = (target * 2) + 3; j < (i - 2); j += 2)
                                ^
/datasets/git/graph.c:1253:32: warning: backward branch (for loop) is ID-dependent due to variable reference to 'j' and may cause performance degradation [altera-id-dependent-backward-branch]
                                for (j = (target * 2) + 3; j < (i - 2); j += 2)
                                                           ^
/datasets/git/graph.c:1253:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                for (j = (target * 2) + 3; j < (i - 2); j += 2)
                                                                               ^
                                                                                {
/datasets/git/graph.c:1267:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (graph->mapping[graph->mapping_size - 1] < 0)
                                                        ^
                                                         {
/datasets/git/graph.c:1273:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < graph->mapping_size; i++) {
        ^
/datasets/git/graph.c:1273:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'mapping_size' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < graph->mapping_size; i++) {
                    ^
/datasets/git/graph.c:1275:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (target < 0)
                               ^
                                {
/datasets/git/graph.c:1277:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (target * 2 == i)
                                         ^
                                          {
/datasets/git/graph.c:1286:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (i != (target * 2)+3)
                                                        ^
                                                         {
/datasets/git/graph.c:1291:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (used_horizontal && i < horizontal_edge)
                                                                   ^
                                                                    {
/datasets/git/graph.c:1303:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (graph_is_mapping_correct(graph))
                                            ^
                                             {
/datasets/git/graph.c:1307:61: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
int graph_next_line(struct git_graph *graph, struct strbuf *sb)
                                                            ^
/datasets/git/graph.c:1319:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!graph->commit)
                           ^
                            {
/datasets/git/graph.c:1348:72: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static void graph_padding_line(struct git_graph *graph, struct strbuf *sb)
                                                                       ^
/datasets/git/graph.c:269:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        int num_columns;
        ^
/datasets/git/graph.c:1350:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/graph.c:1350:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/graph.c:1365:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < graph->num_columns; i++) {
        ^
/datasets/git/graph.c:1365:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'num_columns' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < graph->num_columns; i++) {
                    ^
/datasets/git/graph.c:1398:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!graph)
                   ^
                    {
/datasets/git/graph.c:1411:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (!shown_commit_line && !graph_is_commit_finished(graph)) {
        ^
/datasets/git/graph.c:1411:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'shown_commit_line' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (!shown_commit_line && !graph_is_commit_finished(graph)) {
               ^
/datasets/git/graph.c:1413:3: warning: the value returned by this function should be used [cert-err33-c]
                fwrite(msgbuf.buf, sizeof(char), msgbuf.len,
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/graph.c:1413:3: note: cast the expression to void to silence this warning
/datasets/git/graph.c:1416:4: warning: the value returned by this function should be used [cert-err33-c]
                        putc('\n', graph->revs->diffopt.file);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/graph.c:1416:4: note: cast the expression to void to silence this warning
/datasets/git/graph.c:1431:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!graph)
                   ^
                    {
/datasets/git/graph.c:1435:2: warning: the value returned by this function should be used [cert-err33-c]
        fwrite(msgbuf.buf, sizeof(char), msgbuf.len, graph->revs->diffopt.file);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/graph.c:1435:2: note: cast the expression to void to silence this warning
/datasets/git/graph.c:1445:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!graph)
                   ^
                    {
/datasets/git/graph.c:1449:2: warning: the value returned by this function should be used [cert-err33-c]
        fwrite(msgbuf.buf, sizeof(char), msgbuf.len, graph->revs->diffopt.file);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/graph.c:1449:2: note: cast the expression to void to silence this warning
/datasets/git/graph.c:1460:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!graph)
                   ^
                    {
/datasets/git/graph.c:1463:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (graph_is_commit_finished(graph))
                                            ^
                                             {
/datasets/git/graph.c:1466:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/graph.c:1468:3: warning: the value returned by this function should be used [cert-err33-c]
                fwrite(msgbuf.buf, sizeof(char), msgbuf.len,
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/graph.c:1468:3: note: cast the expression to void to silence this warning
/datasets/git/graph.c:1474:4: warning: the value returned by this function should be used [cert-err33-c]
                        putc('\n', graph->revs->diffopt.file);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/graph.c:1474:4: note: cast the expression to void to silence this warning
/datasets/git/graph.c:1487:31: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                              struct strbuf const *sb)
                                                   ^
/datasets/git/graph.c:1489:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        char *p;
        ^
/datasets/git/graph.c:1489:8: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        char *p;
              ^
                = NULL
/datasets/git/graph.c:1489:8: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/graph.c:1496:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (p) {
        ^
/datasets/git/graph.c:1496:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (p) {
               ^
/datasets/git/graph.c:1497:10: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
                size_t len;
                       ^
                           = 0
/datasets/git/graph.c:1505:3: warning: the value returned by this function should be used [cert-err33-c]
                fwrite(p, sizeof(char), len, file);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/graph.c:1505:3: note: cast the expression to void to silence this warning
/datasets/git/graph.c:1506:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (next_p && *next_p != '\0')
                                              ^
                                               {
/datasets/git/graph.c:1514:28: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                           struct strbuf const *sb)
                                                ^
/datasets/git/graph.c:1516:6: warning: variable 'newline_terminated' is not initialized [cppcoreguidelines-init-variables]
        int newline_terminated;
            ^
                               = 0
/datasets/git/graph.c:1523:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!graph)
                   ^
                    {
/datasets/git/graph.c:1537:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!newline_terminated)
                                        ^
                                         {
/datasets/git/graph.c:1538:4: warning: the value returned by this function should be used [cert-err33-c]
                        putc('\n', file);
                        ^~~~~~~~~~~~~~~~
/datasets/git/graph.c:1538:4: note: cast the expression to void to silence this warning
/datasets/git/graph.c:1545:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (newline_terminated)
                                       ^
                                        {
/datasets/git/graph.c:1546:4: warning: the value returned by this function should be used [cert-err33-c]
                        putc('\n', file);
                        ^~~~~~~~~~~~~~~~
/datasets/git/graph.c:1546:4: note: cast the expression to void to silence this warning
/datasets/git/grep.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "commit.h"
/datasets/git/grep.c:13:49: warning: parameter name 'gs' is too short, expected at least 3 characters [readability-identifier-length]
static int grep_source_load(struct grep_source *gs);
                                                ^
/datasets/git/grep.c:14:54: warning: parameter name 'gs' is too short, expected at least 3 characters [readability-identifier-length]
static int grep_source_is_binary(struct grep_source *gs,
                                                     ^
/datasets/git/grep.c:17:41: warning: parameter 'opt' is unused [misc-unused-parameters]
static void std_output(struct grep_opt *opt, const void *buf, size_t size)
                                        ^
/datasets/git/grep.c:19:2: warning: the value returned by this function should be used [cert-err33-c]
        fwrite(buf, size, 1, stdout);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/grep.c:19:2: note: cast the expression to void to silence this warning
/datasets/git/grep.c:22:20: warning: variable 'color_grep_slots' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *color_grep_slots[] = {
                   ^
/datasets/git/grep.c:36:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(arg, "default"))
                                    ^
                                     {
/datasets/git/grep.c:38:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (!strcmp(arg, "basic"))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/grep.c:38:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(arg, "basic"))
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/grep.c:40:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(arg, "extended"))
                                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/grep.c:42:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(arg, "fixed"))
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/grep.c:44:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(arg, "perl"))
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/grep.c:49:1: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
define_list_config_array_extra(color_grep_slots, {"match"});
^
/datasets/git/./help.h:73:2: note: expanded from macro 'define_list_config_array_extra'
        for (i = 0; i < ARRAY_SIZE(extra); i++)                         \
        ^
/datasets/git/grep.c:49:1: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
define_list_config_array_extra(color_grep_slots, {"match"});
^
/datasets/git/./help.h:71:6: note: expanded from macro 'define_list_config_array_extra'
        int i;                                                          \
            ^
/datasets/git/grep.c:55:5: warning: function 'grep_config' is within a recursive call chain [misc-no-recursion]
int grep_config(const char *var, const char *value, void *cb)
    ^
/datasets/git/grep.c:55:5: note: example recursive call chain, starting from function 'grep_config'
/datasets/git/grep.c:90:7: note: Frame #1: function 'grep_config' calls function 'grep_config' here:
                if (grep_config("color.grep.matchcontext", value, cb) < 0)
                    ^
/datasets/git/grep.c:90:7: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/grep.c:55:59: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
int grep_config(const char *var, const char *value, void *cb)
                                                          ^
/datasets/git/grep.c:58:14: warning: variable 'slot' is not initialized [cppcoreguidelines-init-variables]
        const char *slot;
                    ^
                         = NULL
/datasets/git/grep.c:60:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (userdiff_config(var, value) < 0)
                                            ^
                                             {
/datasets/git/grep.c:69:30: warning: 1st argument 'var' (passed to 'opt') looks like it might be swapped with the 2nd, 'value' (passed to 'arg') [readability-suspicious-call-argument]
                opt->pattern_type_option = parse_pattern_type_arg(var, value);
                                           ^                      ~~~  ~~~~~
/datasets/git/grep.c:34:12: note: in the call to 'parse_pattern_type_arg', declared here
static int parse_pattern_type_arg(const char *opt, const char *arg)
           ^                                  ~~~              ~~~
/datasets/git/grep.c:87:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(var, "color.grep"))
                                       ^
                                        {
/datasets/git/grep.c:90:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (grep_config("color.grep.matchcontext", value, cb) < 0)
                                                                          ^
                                                                           {
/datasets/git/grep.c:92:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (grep_config("color.grep.matchselected", value, cb) < 0)
                                                                           ^
                                                                            {
/datasets/git/grep.c:95:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
                int i = LOOKUP_CONFIG(color_grep_slots, slot);
                    ^
/datasets/git/grep.c:96:9: warning: variable 'color' is not initialized [cppcoreguidelines-init-variables]
                char *color;
                      ^
                            = NULL
/datasets/git/grep.c:98:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (i < 0)
                          ^
                           {
/datasets/git/grep.c:101:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
                            {
/datasets/git/grep.c:111:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(opt, &blank, sizeof(*opt));
        ^~~~~~
/datasets/git/grep.c:111:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(opt, &blank, sizeof(*opt));
        ^~~~~~
/datasets/git/grep.c:119:26: warning: 3 adjacent parameters of 'create_grep_pat' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                        const char *origin, int no,
                                                            ^~~~~~~
/datasets/git/grep.c:119:30: note: the first parameter in the range is 'no'
                                        const char *origin, int no,
                                                                ^~
/datasets/git/grep.c:121:29: note: the last parameter in the range is 'field'
                                        enum grep_header_field field)
                                                               ^~~~~
/datasets/git/grep.c:120:6: note: 'int' and 'enum grep_pat_token' may be implicitly converted
                                        enum grep_pat_token t,
                                        ^
/datasets/git/grep.c:121:6: note: 'int' and 'enum grep_header_field' may be implicitly converted
                                        enum grep_header_field field)
                                        ^
/datasets/git/grep.c:119:30: warning: parameter name 'no' is too short, expected at least 3 characters [readability-identifier-length]
                                        const char *origin, int no,
                                                                ^
/datasets/git/grep.c:120:26: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
                                        enum grep_pat_token t,
                                                            ^
/datasets/git/grep.c:123:19: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        struct grep_pat *p = xcalloc(1, sizeof(*p));
                         ^
/datasets/git/grep.c:133:74: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static void do_append_grep_pat(struct grep_pat ***tail, struct grep_pat *p)
                                                                         ^
/datasets/git/grep.c:144:21: warning: variable 'new_pat' is not initialized [cppcoreguidelines-init-variables]
                        struct grep_pat *new_pat;
                                         ^
                                                 = NULL
/datasets/git/grep.c:146:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        char *cp = p->pattern + p->patternlen, *nl = NULL;
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./grep.h:73:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        size_t patternlen;
        ^
/datasets/git/grep.c:146:10: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
                        char *cp = p->pattern + p->patternlen, *nl = NULL;
                              ^
/datasets/git/grep.c:146:44: warning: variable name 'nl' is too short, expected at least 3 characters [readability-identifier-length]
                        char *cp = p->pattern + p->patternlen, *nl = NULL;
                                                                ^
/datasets/git/grep.c:147:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (++len <= p->patternlen) {
                        ^
/datasets/git/grep.c:147:11: warning: backward branch (while loop) is ID-dependent due to member reference to 'patternlen' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (++len <= p->patternlen) {
                               ^
/datasets/git/grep.c:153:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!nl)
                                ^
                                 {
/datasets/git/grep.c:158:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!p->next)
                                     ^
                                      {
/datasets/git/grep.c:173:19: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        struct grep_pat *p = create_grep_pat(pat, strlen(pat), "header", 0,
                         ^
/datasets/git/grep.c:175:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (field == GREP_HEADER_REFLOG)
                                        ^
                                         {
/datasets/git/grep.c:181:29: warning: parameter name 'no' is too short, expected at least 3 characters [readability-identifier-length]
                         const char *origin, int no, enum grep_pat_token t)
                                                 ^
/datasets/git/grep.c:181:53: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
                         const char *origin, int no, enum grep_pat_token t)
                                                                         ^
/datasets/git/grep.c:187:32: warning: parameter name 'no' is too short, expected at least 3 characters [readability-identifier-length]
                     const char *origin, int no, enum grep_pat_token t)
                                             ^
/datasets/git/grep.c:187:56: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
                     const char *origin, int no, enum grep_pat_token t)
                                                                     ^
/datasets/git/grep.c:189:19: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        struct grep_pat *p = create_grep_pat(pat, patlen, origin, no, t, 0);
                         ^
/datasets/git/grep.c:195:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct grep_pat *pat;
        ^
/datasets/git/grep.c:195:19: warning: variable 'pat' is not initialized [cppcoreguidelines-init-variables]
        struct grep_pat *pat;
                         ^
                             = NULL
/datasets/git/grep.c:202:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for(pat = opt->pattern_list; pat != NULL; pat = pat->next)
        ^
/datasets/git/grep.c:202:31: warning: backward branch (for loop) is ID-dependent due to variable reference to 'pat' and may cause performance degradation [altera-id-dependent-backward-branch]
        for(pat = opt->pattern_list; pat != NULL; pat = pat->next)
                                     ^
/datasets/git/grep.c:204:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if(pat->token == GREP_PATTERN_HEAD)
                                                   ^
                                                    {
/datasets/git/grep.c:207:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/grep.c:215:67: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static NORETURN void compile_regexp_failed(const struct grep_pat *p,
                                                                  ^
/datasets/git/grep.c:218:13: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        char where[1024];
                   ^
/datasets/git/grep.c:220:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (p->no)
                  ^
                   {
/datasets/git/grep.c:222:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (p->origin)
                           ^
                            {
/datasets/git/grep.c:224:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/grep.c:230:33: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static int is_fixed(const char *s, size_t len)
                                ^
/datasets/git/grep.c:232:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i;
               ^
                 = 0
/datasets/git/grep.c:232:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/grep.c:234:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < len; i++) {
        ^
/datasets/git/grep.c:235:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (is_regex_special(s[i]))
                    ^
/datasets/git/./git-compat-util.h:1225:29: note: expanded from macro 'is_regex_special'
#define is_regex_special(x) sane_istest(x,GIT_GLOB_SPECIAL | GIT_REGEX_SPECIAL)
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/grep.c:235:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_regex_special(s[i]))
                                           ^
                                            {
/datasets/git/grep.c:396:52: warning: parameter 'p' is unused [misc-unused-parameters]
static void compile_pcre2_pattern(struct grep_pat *p, const struct grep_opt *opt)
                                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/grep.c:396:52: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/grep.c:396:78: warning: parameter 'opt' is unused [misc-unused-parameters]
static void compile_pcre2_pattern(struct grep_pat *p, const struct grep_opt *opt)
                                                                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/grep.c:401:40: warning: parameter 'p' is unused [misc-unused-parameters]
static int pcre2match(struct grep_pat *p, const char *line, const char *eol,
                      ~~~~~~~~~~~~~~~~~^~~
/datasets/git/grep.c:401:40: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/grep.c:401:43: warning: 2 adjacent parameters of 'pcre2match' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int pcre2match(struct grep_pat *p, const char *line, const char *eol,
                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/grep.c:401:55: note: the first parameter in the range is 'line'
static int pcre2match(struct grep_pat *p, const char *line, const char *eol,
                                                      ^~~~
/datasets/git/grep.c:401:73: note: the last parameter in the range is 'eol'
static int pcre2match(struct grep_pat *p, const char *line, const char *eol,
                                                                        ^~~
/datasets/git/grep.c:401:55: warning: parameter 'line' is unused [misc-unused-parameters]
static int pcre2match(struct grep_pat *p, const char *line, const char *eol,
                                          ~~~~~~~~~~~~^~~~~~
/datasets/git/grep.c:401:73: warning: parameter 'eol' is unused [misc-unused-parameters]
static int pcre2match(struct grep_pat *p, const char *line, const char *eol,
                                                            ~~~~~~~~~~~~^~~~
/datasets/git/grep.c:402:15: warning: parameter 'match' is unused [misc-unused-parameters]
                regmatch_t *match, int eflags)
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/grep.c:402:26: warning: parameter 'eflags' is unused [misc-unused-parameters]
                regmatch_t *match, int eflags)
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/grep.c:407:49: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static void free_pcre2_pattern(struct grep_pat *p)
                                                ^
/datasets/git/grep.c:411:51: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static void compile_fixed_regexp(struct grep_pat *p, struct grep_opt *opt)
                                                  ^
/datasets/git/grep.c:413:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/grep.c:414:6: warning: variable 'err' is not initialized [cppcoreguidelines-init-variables]
        int err;
            ^
                = 0
/datasets/git/grep.c:418:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->ignore_case)
                             ^
                              {
/datasets/git/grep.c:419:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                regflags |= REG_ICASE;
                ^~~~~~~~
/datasets/git/grep.c:423:15: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                char errbuf[1024];
                            ^
/datasets/git/grep.c:430:45: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static void compile_regexp(struct grep_pat *p, struct grep_opt *opt)
                                            ^
/datasets/git/grep.c:432:6: warning: variable 'err' is not initialized [cppcoreguidelines-init-variables]
        int err;
            ^
                = 0
/datasets/git/grep.c:435:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->pattern_type_option == GREP_PATTERN_TYPE_UNSPECIFIED)
                                                                      ^
                                                                       {
/datasets/git/grep.c:445:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            memchr(p->pattern, 0, p->patternlen))
                                                 ^
                                                  {
/datasets/git/grep.c:501:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (p->ignore_case)
                           ^
                            {
/datasets/git/grep.c:502:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                regflags |= REG_ICASE;
                ^~~~~~~~
/datasets/git/grep.c:503:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->pattern_type_option == GREP_PATTERN_TYPE_ERE)
                                                              ^
                                                               {
/datasets/git/grep.c:504:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                regflags |= REG_EXTENDED;
                ^~~~~~~~
/datasets/git/grep.c:507:15: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                char errbuf[1024];
                            ^
/datasets/git/grep.c:508:37: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                regerror(err, &p->regexp, errbuf, 1024);
                                                  ^
/datasets/git/grep.c:515:20: warning: variable name 'z' is too short, expected at least 3 characters [readability-identifier-length]
        struct grep_expr *z = xcalloc(1, sizeof(*z));
                          ^
/datasets/git/grep.c:522:10: warning: 2 adjacent parameters of 'grep_binexp' of similar type ('struct grep_expr *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                     struct grep_expr *left,
                                     ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/grep.c:522:28: note: the first parameter in the range is 'left'
                                     struct grep_expr *left,
                                                       ^~~~
/datasets/git/grep.c:523:28: note: the last parameter in the range is 'right'
                                     struct grep_expr *right)
                                                       ^~~~~
/datasets/git/grep.c:525:20: warning: variable name 'z' is too short, expected at least 3 characters [readability-identifier-length]
        struct grep_expr *z = xcalloc(1, sizeof(*z));
                          ^
/datasets/git/grep.c:542:63: warning: all parameters should be named in a function [hicpp-named-parameter,readability-named-parameter]
static struct grep_expr *compile_pattern_or(struct grep_pat **);
                                                              ^
                                                               /*list*/
/datasets/git/grep.c:543:26: warning: function 'compile_pattern_atom' is within a recursive call chain [misc-no-recursion]
static struct grep_expr *compile_pattern_atom(struct grep_pat **list)
                         ^
/datasets/git/grep.c:572:26: note: example recursive call chain, starting from function 'compile_pattern_not'
static struct grep_expr *compile_pattern_not(struct grep_pat **list)
                         ^
/datasets/git/grep.c:585:7: note: Frame #1: function 'compile_pattern_not' calls function 'compile_pattern_not' here:
                x = compile_pattern_not(list);
                    ^
/datasets/git/grep.c:585:7: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/grep.c:545:19: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct grep_pat *p;
                         ^
                           = NULL
/datasets/git/grep.c:545:19: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/grep.c:546:20: warning: variable 'x' is not initialized [cppcoreguidelines-init-variables]
        struct grep_expr *x;
                          ^
                            = NULL
/datasets/git/grep.c:546:20: warning: variable name 'x' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/grep.c:549:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!p)
               ^
                {
/datasets/git/grep.c:563:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!*list || (*list)->token != GREP_CLOSE_PAREN)
                                                                 ^
                                                                  {
/datasets/git/grep.c:572:26: warning: function 'compile_pattern_not' is within a recursive call chain [misc-no-recursion]
static struct grep_expr *compile_pattern_not(struct grep_pat **list)
                         ^
/datasets/git/grep.c:574:19: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct grep_pat *p;
                         ^
                           = NULL
/datasets/git/grep.c:574:19: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/grep.c:575:20: warning: variable 'x' is not initialized [cppcoreguidelines-init-variables]
        struct grep_expr *x;
                          ^
                            = NULL
/datasets/git/grep.c:575:20: warning: variable name 'x' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/grep.c:578:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!p)
               ^
                {
/datasets/git/grep.c:582:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!p->next)
                             ^
                              {
/datasets/git/grep.c:586:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!x)
                       ^
                        {
/datasets/git/grep.c:594:26: warning: function 'compile_pattern_and' is within a recursive call chain [misc-no-recursion]
static struct grep_expr *compile_pattern_and(struct grep_pat **list)
                         ^
/datasets/git/grep.c:596:19: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct grep_pat *p;
                         ^
                           = NULL
/datasets/git/grep.c:596:19: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/grep.c:597:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct grep_expr *x, *y;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/grep.c:597:20: warning: variable 'x' is not initialized [cppcoreguidelines-init-variables]
        struct grep_expr *x, *y;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/grep.c:597:20: warning: variable name 'x' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/grep.c:597:24: warning: variable 'y' is not initialized [cppcoreguidelines-init-variables]
        struct grep_expr *x, *y;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/grep.c:597:24: warning: variable name 'y' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/grep.c:602:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!x)
                       ^
                        {
/datasets/git/grep.c:604:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!p->next)
                             ^
                              {
/datasets/git/grep.c:608:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!y)
                       ^
                        {
/datasets/git/grep.c:615:26: warning: function 'compile_pattern_or' is within a recursive call chain [misc-no-recursion]
static struct grep_expr *compile_pattern_or(struct grep_pat **list)
                         ^
/datasets/git/grep.c:617:19: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct grep_pat *p;
                         ^
                           = NULL
/datasets/git/grep.c:617:19: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/grep.c:618:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct grep_expr *x, *y;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/grep.c:618:20: warning: variable 'x' is not initialized [cppcoreguidelines-init-variables]
        struct grep_expr *x, *y;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/grep.c:618:20: warning: variable name 'x' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/grep.c:618:24: warning: variable 'y' is not initialized [cppcoreguidelines-init-variables]
        struct grep_expr *x, *y;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/grep.c:618:24: warning: variable name 'y' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/grep.c:624:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!y)
                       ^
                        {
/datasets/git/grep.c:638:20: warning: variable name 'z' is too short, expected at least 3 characters [readability-identifier-length]
        struct grep_expr *z = xcalloc(1, sizeof(*z));
                          ^
/datasets/git/grep.c:645:19: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct grep_pat *p;
                         ^
                           = NULL
/datasets/git/grep.c:645:19: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/grep.c:646:20: warning: variable 'header_expr' is not initialized [cppcoreguidelines-init-variables]
        struct grep_expr *header_expr;
                          ^
                                      = NULL
/datasets/git/grep.c:648:25: warning: variable 'fld' is not initialized [cppcoreguidelines-init-variables]
        enum grep_header_field fld;
                               ^
/datasets/git/grep.c:650:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opt->header_list)
                              ^
                               {
/datasets/git/grep.c:653:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = opt->header_list; p; p = p->next) {
        ^
/datasets/git/grep.c:653:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = opt->header_list; p; p = p->next) {
                                   ^
/datasets/git/grep.c:654:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (p->token != GREP_PATTERN_HEAD)
                                                  ^
                                                   {
/datasets/git/grep.c:657:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    GREP_HEADER_FIELD_MAX <= p->field)
                                                      ^
                                                       {
/datasets/git/grep.c:662:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (fld = 0; fld < GREP_HEADER_FIELD_MAX; fld++)
        ^
/datasets/git/grep.c:645:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct grep_pat *p;
        ^
/datasets/git/grep.c:662:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (fld = 0; fld < GREP_HEADER_FIELD_MAX; fld++)
                                                         ^
                                                          {
/datasets/git/grep.c:665:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = opt->header_list; p; p = p->next) {
        ^
/datasets/git/grep.c:665:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = opt->header_list; p; p = p->next) {
                                   ^
/datasets/git/grep.c:666:21: warning: variable 'h' is not initialized [cppcoreguidelines-init-variables]
                struct grep_expr *h;
                                  ^
                                    = NULL
/datasets/git/grep.c:666:21: warning: variable name 'h' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/grep.c:667:20: warning: variable name 'pp' is too short, expected at least 3 characters [readability-identifier-length]
                struct grep_pat *pp = p;
                                 ^
/datasets/git/grep.c:670:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!h || pp != p->next)
                                        ^
                                         {
/datasets/git/grep.c:681:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (fld = 0; fld < GREP_HEADER_FIELD_MAX; fld++) {
        ^
/datasets/git/grep.c:682:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!header_group[fld])
                                       ^
                                        {
/datasets/git/grep.c:684:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!header_expr)
                                 ^
                                  {
/datasets/git/grep.c:691:59: warning: parameter name 'x' is too short, expected at least 3 characters [readability-identifier-length]
static struct grep_expr *grep_splice_or(struct grep_expr *x, struct grep_expr *y)
                                                          ^
/datasets/git/grep.c:691:80: warning: parameter name 'y' is too short, expected at least 3 characters [readability-identifier-length]
static struct grep_expr *grep_splice_or(struct grep_expr *x, struct grep_expr *y)
                                                                               ^
/datasets/git/grep.c:691:41: note: inferred assignment of ID-dependent value from ID-dependent member right [altera-id-dependent-backward-branch]
static struct grep_expr *grep_splice_or(struct grep_expr *x, struct grep_expr *y)
                                        ^
/datasets/git/grep.c:693:20: warning: variable name 'z' is too short, expected at least 3 characters [readability-identifier-length]
        struct grep_expr *z = x;
                          ^
/datasets/git/grep.c:709:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct grep_pat *p;
        ^
/datasets/git/grep.c:695:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (x) {
        ^
/datasets/git/grep.c:695:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'x' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (x) {
               ^
/datasets/git/grep.c:709:19: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct grep_pat *p;
                         ^
                           = NULL
/datasets/git/grep.c:709:19: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/grep.c:713:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = opt->pattern_list; p; p = p->next) {
        ^
/datasets/git/grep.c:713:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = opt->pattern_list; p; p = p->next) {
                                    ^
/datasets/git/grep.c:726:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->all_match || opt->no_body_match || header_expr)
                                                                ^
                                                                 {
/datasets/git/grep.c:727:3: warning: Value stored to 'extended' is never read [clang-analyzer-deadcode.DeadStores]
                extended = 1;
                ^          ~
/datasets/git/grep.c:727:3: note: Value stored to 'extended' is never read
                extended = 1;
                ^          ~
/datasets/git/grep.c:728:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!extended)
                           ^
                            {
/datasets/git/grep.c:732:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (p)
              ^
               {
/datasets/git/grep.c:734:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (p)
              ^
               {
/datasets/git/grep.c:737:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->no_body_match && opt->pattern_expression)
                                                          ^
                                                           {
/datasets/git/grep.c:740:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!header_expr)
                         ^
                          {
/datasets/git/grep.c:743:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opt->pattern_expression)
                                     ^
                                      {
/datasets/git/grep.c:745:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (opt->all_match)
                                ^
                                 {
/datasets/git/grep.c:748:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/grep.c:754:13: warning: function 'free_pattern_expr' is within a recursive call chain [misc-no-recursion]
static void free_pattern_expr(struct grep_expr *x)
            ^
/datasets/git/grep.c:754:13: note: example recursive call chain, starting from function 'free_pattern_expr'
/datasets/git/grep.c:761:3: note: Frame #1: function 'free_pattern_expr' calls function 'free_pattern_expr' here:
                free_pattern_expr(x->u.unary);
                ^
/datasets/git/grep.c:761:3: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/grep.c:754:49: warning: parameter name 'x' is too short, expected at least 3 characters [readability-identifier-length]
static void free_pattern_expr(struct grep_expr *x)
                                                ^
/datasets/git/grep.c:774:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct grep_pat *p, *n;
        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/grep.c:774:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/grep.c:774:19: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct grep_pat *p, *n;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/grep.c:774:19: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/grep.c:774:23: warning: variable 'n' is not initialized [cppcoreguidelines-init-variables]
        struct grep_pat *p, *n;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/grep.c:774:23: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/grep.c:776:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = opt->pattern_list; p; p = n) {
        ^
/datasets/git/grep.c:776:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = opt->pattern_list; p; p = n) {
                                    ^
/datasets/git/grep.c:782:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (p->pcre2_pattern)
                                             ^
                                              {
/datasets/git/grep.c:784:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/grep.c:794:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opt->pattern_expression)
                                     ^
                                      {
/datasets/git/grep.c:799:44: warning: parameter name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
static const char *end_of_line(const char *cp, unsigned long *left)
                                           ^
/datasets/git/grep.c:801:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        unsigned long l = *left;
        ^
/datasets/git/grep.c:801:16: warning: variable name 'l' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned long l = *left;
                      ^
/datasets/git/grep.c:802:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (l && *cp != '\n') {
        ^
/datasets/git/grep.c:802:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'l' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (l && *cp != '\n') {
               ^
/datasets/git/grep.c:810:27: warning: parameter name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
static int word_char(char ch)
                          ^
/datasets/git/grep.c:812:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return isalnum(ch) || ch == '_';
               ^
/datasets/git/./git-compat-util.h:1220:20: note: expanded from macro 'isalnum'
#define isalnum(x) sane_istest(x,GIT_ALPHA | GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/grep.c:822:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/grep.c:828:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->null_following_name)
                                     ^
                                      {
/datasets/git/grep.c:830:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/grep.c:840:38: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static int patmatch(struct grep_pat *p,
                                     ^
/datasets/git/grep.c:844:6: warning: variable 'hit' is not initialized [cppcoreguidelines-init-variables]
        int hit;
            ^
                = 0
/datasets/git/grep.c:857:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        const char *eol = *eol_p;
        ^
/datasets/git/grep.c:846:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (p->pcre2_pattern)
                             ^
                              {
/datasets/git/grep.c:848:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/grep.c:859:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (bol < --eol) {
        ^
/datasets/git/grep.c:859:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'eol' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (bol < --eol) {
               ^
/datasets/git/grep.c:860:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*eol != '>')
                                ^
                                 {
/datasets/git/grep.c:867:8: warning: accessing fields in struct '' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
static struct {
       ^
/datasets/git/grep.c:867:8: note: use "__attribute__((aligned(16)))" to align struct '' to 16 bytes
/datasets/git/grep.c:870:3: warning: variable 'header_field' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} header_field[] = {
  ^
/datasets/git/grep.c:871:15: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        { "author ", 7 },
                     ^
/datasets/git/grep.c:872:18: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        { "committer ", 10 },
                        ^
/datasets/git/grep.c:873:15: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        { "reflog ", 7 },
                     ^
/datasets/git/grep.c:876:12: warning: function 'headerless_match_one_pattern' has cognitive complexity of 26 (threshold 25) [readability-function-cognitive-complexity]
static int headerless_match_one_pattern(struct grep_pat *p,
           ^
/datasets/git/grep.c:884:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((p->token != GREP_PATTERN) &&
        ^
/datasets/git/grep.c:884:33: note: +1
        if ((p->token != GREP_PATTERN) &&
                                       ^
/datasets/git/grep.c:891:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (hit && p->word_regexp) {
        ^
/datasets/git/grep.c:891:10: note: +1
        if (hit && p->word_regexp) {
                ^
/datasets/git/grep.c:892:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((pmatch[0].rm_so < 0) ||
                ^
/datasets/git/grep.c:894:29: note: +1
                    (pmatch[0].rm_eo < 0) ||
                                          ^
/datasets/git/grep.c:904:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ( ((pmatch[0].rm_so == 0) ||
                ^
/datasets/git/grep.c:905:45: note: +1
                      !word_char(bol[pmatch[0].rm_so-1])) &&
                                                          ^
/datasets/git/grep.c:904:32: note: +1
                if ( ((pmatch[0].rm_so == 0) ||
                                             ^
/datasets/git/grep.c:906:40: note: +1
                     ((pmatch[0].rm_eo == (eol-bol)) ||
                                                     ^
/datasets/git/grep.c:909:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/grep.c:913:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (pmatch->rm_so == pmatch->rm_eo)
                ^
/datasets/git/grep.c:916:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!hit && pmatch[0].rm_so + bol + 1 < eol) {
                ^
/datasets/git/grep.c:916:12: note: +1
                if (!hit && pmatch[0].rm_so + bol + 1 < eol) {
                         ^
/datasets/git/grep.c:924:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (word_char(bol[-1]) && bol < eol)
                        ^
/datasets/git/grep.c:924:30: note: +1
                        while (word_char(bol[-1]) && bol < eol)
                                                  ^
/datasets/git/grep.c:927:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (bol < eol)
                        ^
/datasets/git/grep.c:931:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (hit) {
        ^
/datasets/git/grep.c:876:58: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static int headerless_match_one_pattern(struct grep_pat *p,
                                                         ^
/datasets/git/grep.c:885:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            ((p->token == GREP_PATTERN_HEAD) != (ctx == GREP_CONTEXT_HEAD)))
                                                                            ^
                                                                             {
/datasets/git/grep.c:895:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    (eol - bol) < pmatch[0].rm_eo)
                                                  ^
                                                   {
/datasets/git/grep.c:907:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                      !word_char(bol[pmatch[0].rm_eo])) )
                                                         ^
                                                          {
/datasets/git/grep.c:909:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/grep.c:913:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pmatch->rm_so == pmatch->rm_eo)
                                                   ^
                                                    {
/datasets/git/grep.c:924:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (word_char(bol[-1]) && bol < eol)
                        ^
/datasets/git/grep.c:924:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'bol' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (word_char(bol[-1]) && bol < eol)
                               ^
/datasets/git/grep.c:924:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        while (word_char(bol[-1]) && bol < eol)
                                                               ^
                                                                {
/datasets/git/grep.c:926:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        eflags |= REG_NOTBOL;
                        ^~~~~~
/datasets/git/grep.c:927:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (bol < eol)
                                      ^
                                       {
/datasets/git/grep.c:932:22: warning: narrowing conversion from 'long' to signed type 'regoff_t' (aka 'int') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                pmatch[0].rm_so += bol - start;
                                   ^
/datasets/git/grep.c:933:22: warning: narrowing conversion from 'long' to signed type 'regoff_t' (aka 'int') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                pmatch[0].rm_eo += bol - start;
                                   ^
/datasets/git/grep.c:938:47: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static int match_one_pattern(struct grep_pat *p,
                                              ^
/datasets/git/grep.c:943:14: warning: variable 'field' is not initialized [cppcoreguidelines-init-variables]
        const char *field;
                    ^
                          = NULL
/datasets/git/grep.c:944:9: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        size_t len;
               ^
                   = 0
/datasets/git/grep.c:950:7: warning: function 'strncmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (strncmp(bol, field, len))
                    ^
                                             != 0
/datasets/git/grep.c:950:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strncmp(bol, field, len))
                                             ^
                                              {
/datasets/git/grep.c:968:12: warning: function 'match_expr_eval' is within a recursive call chain [misc-no-recursion]
static int match_expr_eval(struct grep_opt *opt, struct grep_expr *x,
           ^
/datasets/git/grep.c:968:12: note: example recursive call chain, starting from function 'match_expr_eval'
/datasets/git/grep.c:994:8: note: Frame #1: function 'match_expr_eval' calls function 'match_expr_eval' here:
                h = !match_expr_eval(opt, x->u.unary, bol, eol, ctx, icol, col,
                     ^
/datasets/git/grep.c:994:8: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/grep.c:968:68: warning: parameter name 'x' is too short, expected at least 3 characters [readability-identifier-length]
static int match_expr_eval(struct grep_opt *opt, struct grep_expr *x,
                                                                   ^
/datasets/git/grep.c:973:6: warning: variable name 'h' is too short, expected at least 3 characters [readability-identifier-length]
        int h = 0;
            ^
/datasets/git/grep.c:984:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (h && (*col < 0 || tmp.rm_so < *col))
                                                                ^
                                                                 {
/datasets/git/grep.c:987:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (x->u.atom->token == GREP_PATTERN_BODY)
                                                          ^
                                                           {
/datasets/git/grep.c:988:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        opt->body_hit |= h;
                        ^~~~~~~~~~~~~
/datasets/git/grep.c:1006:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        h &= match_expr_eval(opt, x->u.binary.right, bol, eol,
                        ^
/datasets/git/grep.c:1024:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (collect_hits)
                                 ^
                                  {
/datasets/git/grep.c:1025:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        x->u.binary.left->hit |= h;
                        ^                        ~
/datasets/git/grep.c:1026:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                h |= match_expr_eval(opt, x->u.binary.right, bol, eol, ctx, col,
                ^
/datasets/git/grep.c:1032:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (collect_hits)
                         ^
                          {
/datasets/git/grep.c:1033:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                x->hit |= h;
                ^         ~
/datasets/git/grep.c:1042:20: warning: variable name 'x' is too short, expected at least 3 characters [readability-identifier-length]
        struct grep_expr *x = opt->pattern_expression;
                          ^
/datasets/git/grep.c:1051:19: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct grep_pat *p;
                         ^
                           = NULL
/datasets/git/grep.c:1051:19: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/grep.c:1054:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->pattern_expression)
                                    ^
                                     {
/datasets/git/grep.c:1059:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = opt->pattern_list; p; p = p->next) {
        ^
/datasets/git/grep.c:1059:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = opt->pattern_list; p; p = p->next) {
                                    ^
/datasets/git/grep.c:1062:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        hit |= 1;
                        ^~~
/datasets/git/grep.c:1072:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (*col < 0 || tmp.rm_so < *col)
                                                         ^
                                                          {
/datasets/git/grep.c:1079:48: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static int match_next_pattern(struct grep_pat *p,
                                               ^
/datasets/git/grep.c:1086:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!headerless_match_one_pattern(p, bol, eol, ctx, &match, eflags))
                                                                            ^
                                                                             {
/datasets/git/grep.c:1088:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (match.rm_so < 0 || match.rm_eo < 0)
                                               ^
                                                {
/datasets/git/grep.c:1091:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (match.rm_so > pmatch->rm_so)
                                                ^
                                                 {
/datasets/git/grep.c:1093:67: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (match.rm_so == pmatch->rm_so && match.rm_eo < pmatch->rm_eo)
                                                                                ^
                                                                                 {
/datasets/git/grep.c:1104:7: warning: 2 adjacent parameters of 'grep_next_match' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                    enum grep_header_field field, int eflags)
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/grep.c:1104:30: note: the first parameter in the range is 'field'
                    enum grep_header_field field, int eflags)
                                           ^~~~~
/datasets/git/grep.c:1104:41: note: the last parameter in the range is 'eflags'
                    enum grep_header_field field, int eflags)
                                                      ^~~~~~
/datasets/git/grep.c:1104:37: note: 'enum grep_header_field' and 'int' may be implicitly converted
                    enum grep_header_field field, int eflags)
                                                  ^
/datasets/git/grep.c:1106:19: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct grep_pat *p;
                         ^
                           = NULL
/datasets/git/grep.c:1106:19: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/grep.c:1106:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct grep_pat *p;
        ^
/datasets/git/grep.c:1111:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (p = ((ctx == GREP_CONTEXT_HEAD)
                ^
/datasets/git/grep.c:1113:6: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                          p; p = p->next) {
                          ^
/datasets/git/grep.c:1117:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                    (p->field != field))
                                                        ^
                                                         {
/datasets/git/grep.c:1122:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                hit |= match_next_pattern(p, bol, eol, ctx,
                                ^~~
/datasets/git/grep.c:1134:23: warning: 2 adjacent parameters of 'show_line_header' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                             unsigned lno, ssize_t cno, char sign)
                                           ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/grep.c:1134:31: note: the first parameter in the range is 'cno'
                             unsigned lno, ssize_t cno, char sign)
                                                   ^~~
/datasets/git/grep.c:1134:41: note: the last parameter in the range is 'sign'
                             unsigned lno, ssize_t cno, char sign)
                                                             ^~~~
/datasets/git/grep.c:1134:23: note: 
                             unsigned lno, ssize_t cno, char sign)
                                           ^
/datasets/git/grep.c:1134:36: note: 'ssize_t' and 'char' may be implicitly converted: 'ssize_t' (as 'long') -> 'char', 'char' -> 'ssize_t' (as 'long')
                             unsigned lno, ssize_t cno, char sign)
                                                        ^
/datasets/git/grep.c:1147:12: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                char buf[32];
                         ^
/datasets/git/grep.c:1158:12: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                char buf[32];
                         ^
/datasets/git/grep.c:1165:13: warning: function 'show_line' has cognitive complexity of 39 (threshold 25) [readability-function-cognitive-complexity]
static void show_line(struct grep_opt *opt,
            ^
/datasets/git/grep.c:1173:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt->file_break && opt->last_shown == 0) {
        ^
/datasets/git/grep.c:1173:22: note: +1
        if (opt->file_break && opt->last_shown == 0) {
                            ^
/datasets/git/grep.c:1174:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opt->show_hunk_mark)
                ^
/datasets/git/grep.c:1176:9: note: +1, nesting level increased to 1
        } else if (opt->pre_context || opt->post_context || opt->funcbody) {
               ^
/datasets/git/grep.c:1176:51: note: +1
        } else if (opt->pre_context || opt->post_context || opt->funcbody) {
                                                         ^
/datasets/git/grep.c:1177:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opt->last_shown == 0) {
                ^
/datasets/git/grep.c:1178:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (opt->show_hunk_mark) {
                        ^
/datasets/git/grep.c:1182:10: note: +1, nesting level increased to 2
                } else if (lno > opt->last_shown + 1) {
                       ^
/datasets/git/grep.c:1187:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!opt->only_matching) {
        ^
/datasets/git/grep.c:1194:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt->color || opt->only_matching) {
        ^
/datasets/git/grep.c:1194:17: note: +1
        if (opt->color || opt->only_matching) {
                       ^
/datasets/git/grep.c:1199:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opt->color) {
                ^
/datasets/git/grep.c:1200:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (sign == ':')
                        ^
/datasets/git/grep.c:1202:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/grep.c:1204:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (sign == ':')
                        ^
/datasets/git/grep.c:1206:9: note: +1, nesting level increased to 3
                        else if (sign == '-')
                             ^
/datasets/git/grep.c:1208:9: note: +1, nesting level increased to 3
                        else if (sign == '=')
                             ^
/datasets/git/grep.c:1211:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (grep_next_match(opt, bol, eol, ctx, &match,
                ^
/datasets/git/grep.c:1213:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (match.rm_so == match.rm_eo)
                        ^
/datasets/git/grep.c:1216:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (opt->only_matching)
                        ^
/datasets/git/grep.c:1218:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/grep.c:1222:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (opt->only_matching)
                        ^
/datasets/git/grep.c:1230:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!opt->only_matching) {
        ^
/datasets/git/grep.c:1166:26: warning: 2 adjacent parameters of 'show_line' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                      const char *bol, const char *eol,
                                       ^~~~~~~~~~~~~~~~
/datasets/git/grep.c:1166:38: note: the first parameter in the range is 'eol'
                      const char *bol, const char *eol,
                                                   ^~~
/datasets/git/grep.c:1167:21: note: the last parameter in the range is 'name'
                      const char *name, unsigned lno, ssize_t cno, char sign)
                                  ^~~~
/datasets/git/grep.c:1169:13: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int rest = eol - bol;
                   ^
/datasets/git/grep.c:1174:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opt->show_hunk_mark)
                                        ^
                                         {
/datasets/git/grep.c:1200:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (sign == ':')
                                        ^
                                         {
/datasets/git/grep.c:1202:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/grep.c:1204:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (sign == ':')
                                        ^
                                         {
/datasets/git/grep.c:1206:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (sign == '-')
                                             ^
                                              {
/datasets/git/grep.c:1208:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (sign == '=')
                                             ^
                                              {
/datasets/git/grep.c:1211:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (grep_next_match(opt, bol, eol, ctx, &match,
                ^
/datasets/git/grep.c:1211:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'bol' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (grep_next_match(opt, bol, eol, ctx, &match,
                       ^
/datasets/git/grep.c:1213:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (match.rm_so == match.rm_eo)
                                                       ^
                                                        {
/datasets/git/grep.c:1216:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (opt->only_matching)
                                               ^
                                                {
/datasets/git/grep.c:1218:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/grep.c:1222:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (opt->only_matching)
                                               ^
                                                {
/datasets/git/grep.c:1236:5: warning: variable 'grep_use_locks' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
int grep_use_locks;
    ^
/datasets/git/grep.c:1242:17: warning: variable 'grep_attr_mutex' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
pthread_mutex_t grep_attr_mutex;
                ^
/datasets/git/grep.c:1246:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (grep_use_locks)
                           ^
                            {
/datasets/git/grep.c:1252:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (grep_use_locks)
                           ^
                            {
/datasets/git/grep.c:1256:69: warning: parameter name 'gs' is too short, expected at least 3 characters [readability-identifier-length]
static int match_funcname(struct grep_opt *opt, struct grep_source *gs,
                                                                    ^
/datasets/git/grep.c:1263:36: warning: variable name 'pe' is too short, expected at least 3 characters [readability-identifier-length]
                        const struct userdiff_funcname *pe = &gs->driver->funcname;
                                                        ^
/datasets/git/grep.c:1276:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (bol == eol)
                       ^
                        {
/datasets/git/grep.c:1278:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (isalpha(*bol) || *bol == '_' || *bol == '$')
            ^
/datasets/git/./git-compat-util.h:1219:20: note: expanded from macro 'isalpha'
#define isalpha(x) sane_istest(x,GIT_ALPHA)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/grep.c:1278:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (isalpha(*bol) || *bol == '_' || *bol == '$')
                                                        ^
                                                         {
/datasets/git/grep.c:1283:74: warning: parameter name 'gs' is too short, expected at least 3 characters [readability-identifier-length]
static void show_funcname_line(struct grep_opt *opt, struct grep_source *gs,
                                                                         ^
/datasets/git/grep.c:1289:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (bol > gs->buf && bol[-1] != '\n')
                ^
/datasets/git/grep.c:1289:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (bol > gs->buf && bol[-1] != '\n')
                                                        ^
                                                         {
/datasets/git/grep.c:1293:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (lno <= opt->last_shown)
                                           ^
                                            {
/datasets/git/grep.c:1305:13: warning: function 'show_pre_context' has cognitive complexity of 32 (threshold 25) [readability-function-cognitive-complexity]
static void show_pre_context(struct grep_opt *opt, struct grep_source *gs,
            ^
/datasets/git/grep.c:1311:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt->pre_context < lno)
        ^
/datasets/git/grep.c:1313:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (from <= opt->last_shown)
        ^
/datasets/git/grep.c:1316:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt->funcbody) {
        ^
/datasets/git/grep.c:1317:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (match_funcname(opt, gs, bol, end))
                ^
/datasets/git/grep.c:1319:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/grep.c:1325:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (bol > gs->buf && cur > from) {
        ^
/datasets/git/grep.c:1325:23: note: +1
        while (bol > gs->buf && cur > from) {
                             ^
/datasets/git/grep.c:1329:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (bol > gs->buf && bol[-1] != '\n')
                ^
/datasets/git/grep.c:1329:24: note: +1
                while (bol > gs->buf && bol[-1] != '\n')
                                     ^
/datasets/git/grep.c:1332:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (comment_needed && (is_empty_line(bol, eol) ||
                ^
/datasets/git/grep.c:1332:22: note: +1
                if (comment_needed && (is_empty_line(bol, eol) ||
                                   ^
/datasets/git/grep.c:1332:50: note: +1
                if (comment_needed && (is_empty_line(bol, eol) ||
                                                               ^
/datasets/git/grep.c:1336:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (cur < from) {
                        ^
/datasets/git/grep.c:1342:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (funcname_needed && match_funcname(opt, gs, bol, eol)) {
                ^
/datasets/git/grep.c:1342:23: note: +1
                if (funcname_needed && match_funcname(opt, gs, bol, eol)) {
                                    ^
/datasets/git/grep.c:1345:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (opt->funcbody)
                        ^
/datasets/git/grep.c:1347:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/grep.c:1353:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt->funcname && funcname_needed)
        ^
/datasets/git/grep.c:1353:20: note: +1
        if (opt->funcname && funcname_needed)
                          ^
/datasets/git/grep.c:1357:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (cur < lno) {
        ^
/datasets/git/grep.c:1358:55: note: +2, including nesting penalty of 1, nesting level increased to 2
                const char *eol = bol, sign = (cur == funcname_lno) ? '=' : '-';
                                                                    ^
/datasets/git/grep.c:1360:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (*eol != '\n')
                ^
/datasets/git/grep.c:1305:72: warning: parameter name 'gs' is too short, expected at least 3 characters [readability-identifier-length]
static void show_pre_context(struct grep_opt *opt, struct grep_source *gs,
                                                                       ^
/datasets/git/grep.c:1308:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned cur = lno, from = 1, funcname_lno = 0, orig_from;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/grep.c:1308:50: warning: variable 'orig_from' is not initialized [cppcoreguidelines-init-variables]
        unsigned cur = lno, from = 1, funcname_lno = 0, orig_from;
                                                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/grep.c:1309:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int funcname_needed = !!opt->funcname, comment_needed = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/grep.c:1311:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->pre_context < lno)
                                   ^
                                    {
/datasets/git/grep.c:1313:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (from <= opt->last_shown)
                                    ^
                                     {
/datasets/git/grep.c:1317:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (match_funcname(opt, gs, bol, end))
                                                      ^
                                                       {
/datasets/git/grep.c:1319:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/grep.c:1325:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'bol' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (bol > gs->buf && cur > from) {
               ^
/datasets/git/grep.c:1329:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (bol > gs->buf && bol[-1] != '\n')
                ^
/datasets/git/grep.c:1329:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'bol' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (bol > gs->buf && bol[-1] != '\n')
                       ^
/datasets/git/grep.c:1329:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (bol > gs->buf && bol[-1] != '\n')
                                                        ^
                                                         {
/datasets/git/grep.c:1345:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (opt->funcbody)
                                          ^
                                           {
/datasets/git/grep.c:1347:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/grep.c:1353:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->funcname && funcname_needed)
                                             ^
                                              {
/datasets/git/grep.c:1357:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'cur' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (cur < lno) {
               ^
/datasets/git/grep.c:1358:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                const char *eol = bol, sign = (cur == funcname_lno) ? '=' : '-';
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/grep.c:1360:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (*eol != '\n')
                ^
/datasets/git/grep.c:1360:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'eol' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (*eol != '\n')
                       ^
/datasets/git/grep.c:1360:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (*eol != '\n')
                                    ^
                                     {
/datasets/git/grep.c:1370:19: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct grep_pat *p;
                         ^
                           = NULL
/datasets/git/grep.c:1370:19: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/grep.c:1372:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->pattern_expression)
                                    ^
                                     {
/datasets/git/grep.c:1374:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->invert)
                        ^
                         {
/datasets/git/grep.c:1376:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = opt->pattern_list; p; p = p->next) {
        ^
/datasets/git/grep.c:1376:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = opt->pattern_list; p; p = p->next) {
                                    ^
/datasets/git/grep.c:1377:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (p->token != GREP_PATTERN)
                                             ^
                                              {
/datasets/git/grep.c:1390:19: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct grep_pat *p;
                         ^
                           = NULL
/datasets/git/grep.c:1390:19: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/grep.c:1391:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *sp, *last_bol;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/grep.c:1390:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct grep_pat *p;
        ^
/datasets/git/grep.c:1391:14: warning: variable 'sp' is not initialized [cppcoreguidelines-init-variables]
        const char *sp, *last_bol;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/grep.c:1391:14: warning: variable name 'sp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/grep.c:1391:19: warning: variable 'last_bol' is not initialized [cppcoreguidelines-init-variables]
        const char *sp, *last_bol;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/grep.c:1394:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = opt->pattern_list; p; p = p->next) {
        ^
/datasets/git/grep.c:1394:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = opt->pattern_list; p; p = p->next) {
                                    ^
/datasets/git/grep.c:1395:7: warning: variable 'hit' is not initialized [cppcoreguidelines-init-variables]
                int hit;
                    ^
                        = 0
/datasets/git/grep.c:1396:14: warning: variable name 'm' is too short, expected at least 3 characters [readability-identifier-length]
                regmatch_t m;
                           ^
/datasets/git/grep.c:1399:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!hit || m.rm_so < 0 || m.rm_eo < 0)
                                                       ^
                                                        {
/datasets/git/grep.c:1401:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (earliest < 0 || m.rm_so < earliest)
                                                       ^
                                                        {
/datasets/git/grep.c:1410:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (sp = bol + earliest; bol < sp && sp[-1] != '\n'; sp--)
        ^
/datasets/git/grep.c:1391:2: note: inferred assignment of ID-dependent value from ID-dependent variable bol [altera-id-dependent-backward-branch]
        const char *sp, *last_bol;
        ^
/datasets/git/grep.c:1410:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'bol' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (sp = bol + earliest; bol < sp && sp[-1] != '\n'; sp--)
                                  ^
/datasets/git/grep.c:1410:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (sp = bol + earliest; bol < sp && sp[-1] != '\n'; sp--)
                                                                   ^
                                                                    {
/datasets/git/grep.c:1414:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (sp = bol; sp < last_bol; sp++) {
        ^
/datasets/git/grep.c:1414:17: warning: backward branch (for loop) is ID-dependent due to variable reference to 'sp' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (sp = bol; sp < last_bol; sp++) {
                       ^
/datasets/git/grep.c:1415:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*sp == '\n')
                                ^
                                 {
/datasets/git/grep.c:1424:50: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int fill_textconv_grep(struct repository *r,
                                                 ^
/datasets/git/grep.c:1426:30: warning: parameter name 'gs' is too short, expected at least 3 characters [readability-identifier-length]
                              struct grep_source *gs)
                                                  ^
/datasets/git/grep.c:1428:24: warning: variable 'df' is not initialized [cppcoreguidelines-init-variables]
        struct diff_filespec *df;
                              ^
                                 = NULL
/datasets/git/grep.c:1428:24: warning: variable name 'df' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/grep.c:1429:8: warning: variable 'buf' is not initialized [cppcoreguidelines-init-variables]
        char *buf;
              ^
                  = NULL
/datasets/git/grep.c:1430:9: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        size_t size;
               ^
                    = 0
/datasets/git/grep.c:1432:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!driver || !driver->textconv)
                                         ^
                                          {
/datasets/git/grep.c:1443:40: warning: 0100644 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                fill_filespec(df, gs->identifier, 1, 0100644);
                                                     ^
/datasets/git/grep.c:1446:36: warning: 0100644 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                fill_filespec(df, null_oid(), 0, 0100644);
                                                 ^
/datasets/git/grep.c:1486:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (bol < eol && isspace(*bol))
        ^
/datasets/git/grep.c:1486:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        while (bol < eol && isspace(*bol))
                            ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/grep.c:1486:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (bol < eol && isspace(*bol))
                                          ^
                                           {
/datasets/git/grep.c:1491:12: warning: function 'grep_source_1' has cognitive complexity of 92 (threshold 25) [readability-function-cognitive-complexity]
static int grep_source_1(struct grep_opt *opt, struct grep_source *gs, int collect_hits)
           ^
/datasets/git/grep.c:1506:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!opt->status_only && gs->name == NULL)
        ^
/datasets/git/grep.c:1506:24: note: +1
        if (!opt->status_only && gs->name == NULL)
                              ^
/datasets/git/grep.c:1510:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!opt->output)
        ^
/datasets/git/grep.c:1513:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt->pre_context || opt->post_context || opt->file_break ||
        ^
/datasets/git/grep.c:1513:63: note: +1
        if (opt->pre_context || opt->post_context || opt->file_break ||
                                                                     ^
/datasets/git/grep.c:1516:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opt->last_shown)
                ^
/datasets/git/grep.c:1523:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opt->output != std_output)
                ^
/datasets/git/grep.c:1528:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt->allow_textconv) {
        ^
/datasets/git/grep.c:1548:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!textconv) {
        ^
/datasets/git/grep.c:1549:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                switch (opt->binary) {
                ^
/datasets/git/grep.c:1551:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (grep_source_is_binary(gs, opt->repo->index))
                        ^
/datasets/git/grep.c:1555:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (grep_source_is_binary(gs, opt->repo->index))
                        ^
/datasets/git/grep.c:1570:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (fill_textconv_grep(opt->repo, textconv, gs) < 0)
        ^
/datasets/git/grep.c:1575:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (left) {
        ^
/datasets/git/grep.c:1590:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (try_lookahead
                ^
/datasets/git/grep.c:1594:7: note: +1
                    && look_ahead(opt, &left, &lno, &bol))
                    ^
/datasets/git/grep.c:1592:23: note: +1
                         && (show_function ||
                                           ^
/datasets/git/grep.c:1598:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((ctx == GREP_CONTEXT_HEAD) && (eol == bol))
                ^
/datasets/git/grep.c:1598:34: note: +1
                if ((ctx == GREP_CONTEXT_HEAD) && (eol == bol))
                                               ^
/datasets/git/grep.c:1603:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (collect_hits)
                ^
/datasets/git/grep.c:1610:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opt->invert)
                ^
/datasets/git/grep.c:1612:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opt->unmatch_name_only) {
                ^
/datasets/git/grep.c:1613:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (hit)
                        ^
/datasets/git/grep.c:1615:4: note: +1
                        goto next_line;
                        ^
/datasets/git/grep.c:1617:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (hit && (opt->max_count < 0 || count < opt->max_count)) {
                ^
/datasets/git/grep.c:1617:11: note: +1
                if (hit && (opt->max_count < 0 || count < opt->max_count)) {
                        ^
/datasets/git/grep.c:1617:34: note: +1
                if (hit && (opt->max_count < 0 || count < opt->max_count)) {
                                               ^
/datasets/git/grep.c:1619:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (opt->status_only)
                        ^
/datasets/git/grep.c:1621:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (opt->name_only) {
                        ^
/datasets/git/grep.c:1625:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (opt->count)
                        ^
/datasets/git/grep.c:1627:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (binary_match_only) {
                        ^
/datasets/git/grep.c:1637:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (opt->pre_context || opt->funcbody)
                        ^
/datasets/git/grep.c:1637:25: note: +1
                        if (opt->pre_context || opt->funcbody)
                                             ^
/datasets/git/grep.c:1639:9: note: +1, nesting level increased to 3
                        else if (opt->funcname)
                             ^
/datasets/git/grep.c:1641:22: note: +3, including nesting penalty of 2, nesting level increased to 3
                        cno = opt->invert ? icol : col;
                                          ^
/datasets/git/grep.c:1642:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (cno < 0) {
                        ^
/datasets/git/grep.c:1654:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (opt->funcbody)
                        ^
/datasets/git/grep.c:1656:4: note: +1
                        goto next_line;
                        ^
/datasets/git/grep.c:1658:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (show_function && (!peek_bol || peek_bol < bol)) {
                ^
/datasets/git/grep.c:1658:21: note: +1
                if (show_function && (!peek_bol || peek_bol < bol)) {
                                  ^
/datasets/git/grep.c:1658:35: note: +1
                if (show_function && (!peek_bol || peek_bol < bol)) {
                                                ^
/datasets/git/grep.c:1668:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (is_empty_line(peek_bol, peek_eol)) {
                        ^
/datasets/git/grep.c:1673:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (match_funcname(opt, gs, peek_bol, peek_eol))
                        ^
/datasets/git/grep.c:1676:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (show_function ||
                ^
/datasets/git/grep.c:1676:21: note: +1
                if (show_function ||
                                  ^
/datasets/git/grep.c:1677:17: note: +1
                    (last_hit && lno <= last_hit + opt->post_context)) {
                              ^
/datasets/git/grep.c:1686:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!left)
                ^
/datasets/git/grep.c:1692:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (collect_hits)
        ^
/datasets/git/grep.c:1695:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt->status_only)
        ^
/datasets/git/grep.c:1697:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt->unmatch_name_only) {
        ^
/datasets/git/grep.c:1711:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt->count && count) {
        ^
/datasets/git/grep.c:1711:17: note: +1
        if (opt->count && count) {
                       ^
/datasets/git/grep.c:1713:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opt->pathname) {
                ^
/datasets/git/grep.c:1491:68: warning: parameter name 'gs' is too short, expected at least 3 characters [readability-identifier-length]
static int grep_source_1(struct grep_opt *opt, struct grep_source *gs, int collect_hits)
                                                                   ^
/datasets/git/grep.c:1493:14: warning: variable 'bol' is not initialized [cppcoreguidelines-init-variables]
        const char *bol;
                    ^
                        = NULL
/datasets/git/grep.c:1495:16: warning: variable 'left' is not initialized [cppcoreguidelines-init-variables]
        unsigned long left;
                      ^
                           = 0
/datasets/git/grep.c:1506:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opt->status_only && gs->name == NULL)
                                                  ^
                                                   {
/datasets/git/grep.c:1510:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opt->output)
                         ^
                          {
/datasets/git/grep.c:1516:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opt->last_shown)
                                    ^
                                     {
/datasets/git/grep.c:1523:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opt->output != std_output)
                                              ^
                                               {
/datasets/git/grep.c:1551:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (grep_source_is_binary(gs, opt->repo->index))
                                                                        ^
                                                                         {
/datasets/git/grep.c:1555:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (grep_source_is_binary(gs, opt->repo->index))
                                                                        ^
                                                                         {
/datasets/git/grep.c:1565:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&xecfg, 0, sizeof(xecfg));
        ^~~~~~
/datasets/git/grep.c:1565:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&xecfg, 0, sizeof(xecfg));
        ^~~~~~
/datasets/git/grep.c:1570:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fill_textconv_grep(opt->repo, textconv, gs) < 0)
                                                            ^
                                                             {
/datasets/git/grep.c:1575:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'left' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (left) {
               ^
/datasets/git/grep.c:1576:15: warning: variable 'eol' is not initialized [cppcoreguidelines-init-variables]
                const char *eol;
                            ^
                                = NULL
/datasets/git/grep.c:1577:7: warning: variable 'hit' is not initialized [cppcoreguidelines-init-variables]
                int hit;
                    ^
                        = 0
/datasets/git/grep.c:1578:11: warning: variable 'cno' is not initialized [cppcoreguidelines-init-variables]
                ssize_t cno;
                        ^
                            = 0
/datasets/git/grep.c:1579:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                ssize_t col = -1, icol = -1;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/grep.c:1594:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    && look_ahead(opt, &left, &lno, &bol))
                                                          ^
                                                           {
/datasets/git/grep.c:1598:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((ctx == GREP_CONTEXT_HEAD) && (eol == bol))
                                                               ^
                                                                {
/datasets/git/grep.c:1603:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (collect_hits)
                                 ^
                                  {
/datasets/git/grep.c:1610:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opt->invert)
                                ^
                                 {
/datasets/git/grep.c:1613:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (hit)
                                ^
                                 {
/datasets/git/grep.c:1619:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (opt->status_only)
                                             ^
                                              {
/datasets/git/grep.c:1625:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (opt->count)
                                       ^
                                        {
/datasets/git/grep.c:1628:38: warning: 12 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                opt->output(opt, "Binary file ", 12);
                                                                 ^
/datasets/git/grep.c:1631:36: warning: 9 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                opt->output(opt, " matches\n", 9);
                                                               ^
/datasets/git/grep.c:1637:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (opt->pre_context || opt->funcbody)
                                                              ^
                                                               {
/datasets/git/grep.c:1639:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (opt->funcname)
                                               ^
                                                {
/datasets/git/grep.c:1654:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (opt->funcbody)
                                          ^
                                           {
/datasets/git/grep.c:1668:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (is_empty_line(peek_bol, peek_eol)) {
                        ^
/datasets/git/grep.c:1668:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'peek_bol' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (is_empty_line(peek_bol, peek_eol)) {
                               ^
/datasets/git/grep.c:1673:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (match_funcname(opt, gs, peek_bol, peek_eol))
                                                                        ^
                                                                         {
/datasets/git/grep.c:1686:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!left)
                          ^
                           {
/datasets/git/grep.c:1692:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (collect_hits)
                         ^
                          {
/datasets/git/grep.c:1695:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->status_only)
                             ^
                              {
/datasets/git/grep.c:1712:12: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                char buf[32];
                         ^
/datasets/git/grep.c:1725:46: warning: parameter name 'x' is too short, expected at least 3 characters [readability-identifier-length]
static void clr_hit_marker(struct grep_expr *x)
                                             ^
/datasets/git/grep.c:1730:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/grep.c:1732:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (x->node != GREP_NODE_OR)
                                            ^
                                             {
/datasets/git/grep.c:1739:45: warning: parameter name 'x' is too short, expected at least 3 characters [readability-identifier-length]
static int chk_hit_marker(struct grep_expr *x)
                                            ^
/datasets/git/grep.c:1742:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/grep.c:1743:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (x->node != GREP_NODE_OR)
                                            ^
                                             {
/datasets/git/grep.c:1744:11: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        return x->hit;
                               ^
/datasets/git/grep.c:1745:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!x->u.binary.left->hit)
                                           ^
                                            {
/datasets/git/grep.c:1751:59: warning: parameter name 'gs' is too short, expected at least 3 characters [readability-identifier-length]
int grep_source(struct grep_opt *opt, struct grep_source *gs)
                                                          ^
/datasets/git/grep.c:1757:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opt->all_match && !opt->no_body_match)
                                                   ^
                                                    {
/datasets/git/grep.c:1767:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->all_match && !chk_hit_marker(opt->pattern_expression))
                                                                       ^
                                                                        {
/datasets/git/grep.c:1769:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->no_body_match && opt->body_hit)
                                                ^
                                                 {
/datasets/git/grep.c:1775:54: warning: parameter name 'gs' is too short, expected at least 3 characters [readability-identifier-length]
static void grep_source_init_buf(struct grep_source *gs,
                                                     ^
/datasets/git/grep.c:1790:21: warning: variable name 'gs' is too short, expected at least 3 characters [readability-identifier-length]
        struct grep_source gs;
                           ^
/datasets/git/grep.c:1791:6: warning: variable 'r' is not initialized [cppcoreguidelines-init-variables]
        int r;
            ^
              = 0
/datasets/git/grep.c:1791:6: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/grep.c:1801:48: warning: parameter name 'gs' is too short, expected at least 3 characters [readability-identifier-length]
void grep_source_init_file(struct grep_source *gs, const char *name,
                                               ^
/datasets/git/grep.c:1813:47: warning: parameter name 'gs' is too short, expected at least 3 characters [readability-identifier-length]
void grep_source_init_oid(struct grep_source *gs, const char *name,
                                              ^
/datasets/git/grep.c:1827:44: warning: parameter name 'gs' is too short, expected at least 3 characters [readability-identifier-length]
void grep_source_clear(struct grep_source *gs)
                                           ^
/datasets/git/grep.c:1829:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(gs->name);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/grep.c:1830:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(gs->path);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/grep.c:1831:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(gs->identifier);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/grep.c:1835:49: warning: parameter name 'gs' is too short, expected at least 3 characters [readability-identifier-length]
void grep_source_clear_data(struct grep_source *gs)
                                                ^
/datasets/git/grep.c:1851:53: warning: parameter name 'gs' is too short, expected at least 3 characters [readability-identifier-length]
static int grep_source_load_oid(struct grep_source *gs)
                                                    ^
/datasets/git/grep.c:1853:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/grep.c:1857:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!gs->buf)
                     ^
                      {
/datasets/git/grep.c:1864:54: warning: parameter name 'gs' is too short, expected at least 3 characters [readability-identifier-length]
static int grep_source_load_file(struct grep_source *gs)
                                                     ^
/datasets/git/grep.c:1867:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/grep.c:1868:8: warning: variable 'data' is not initialized [cppcoreguidelines-init-variables]
        char *data;
              ^
                   = NULL
/datasets/git/grep.c:1869:9: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        size_t size;
               ^
                    = 0
/datasets/git/grep.c:1870:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/grep.c:1870:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/grep.c:1874:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (errno != ENOENT)
                                    ^
                                     {
/datasets/git/grep.c:1878:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!S_ISREG(st.st_mode))
                                 ^
                                  {
/datasets/git/grep.c:1881:29: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
        i = open(filename, O_RDONLY);
                                   ^
                                    | O_CLOEXEC
/datasets/git/grep.c:1882:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (i < 0)
                  ^
                   {
/datasets/git/grep.c:1898:49: warning: parameter name 'gs' is too short, expected at least 3 characters [readability-identifier-length]
static int grep_source_load(struct grep_source *gs)
                                                ^
/datasets/git/grep.c:1900:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (gs->buf)
                    ^
                     {
/datasets/git/grep.c:1914:50: warning: parameter name 'gs' is too short, expected at least 3 characters [readability-identifier-length]
void grep_source_load_driver(struct grep_source *gs,
                                                 ^
/datasets/git/grep.c:1917:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (gs->driver)
                       ^
                        {
/datasets/git/grep.c:1921:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (gs->path)
                     ^
                      {
/datasets/git/grep.c:1923:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!gs->driver)
                        ^
                         {
/datasets/git/grep.c:1928:54: warning: parameter name 'gs' is too short, expected at least 3 characters [readability-identifier-length]
static int grep_source_is_binary(struct grep_source *gs,
                                                     ^
/datasets/git/grep.c:1932:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (gs->driver->binary != -1)
                                     ^
                                      {
/datasets/git/grep.c:1935:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!grep_source_load(gs))
                                  ^
                                   {
/datasets/git/hash-lookup.c:6:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return ((oid->hash[ofs] << 8) | oid->hash[ofs + 1]);
                ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/hash-lookup.c:6:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return ((oid->hash[ofs] << 8) | oid->hash[ofs + 1]);
                 ^                 ~
/datasets/git/hash-lookup.c:6:29: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        return ((oid->hash[ofs] << 8) | oid->hash[ofs + 1]);
                                   ^
/datasets/git/hash-lookup.c:53:68: warning: parameter name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
int oid_pos(const struct object_id *oid, const void *table, size_t nr,
                                                                   ^
/datasets/git/hash-lookup.c:54:20: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
            oid_access_fn fn)
                          ^
/datasets/git/hash-lookup.c:56:9: warning: variable name 'hi' is too short, expected at least 3 characters [readability-identifier-length]
        size_t hi = nr;
               ^
/datasets/git/hash-lookup.c:57:9: warning: variable name 'lo' is too short, expected at least 3 characters [readability-identifier-length]
        size_t lo = 0;
               ^
/datasets/git/hash-lookup.c:58:9: warning: variable name 'mi' is too short, expected at least 3 characters [readability-identifier-length]
        size_t mi = 0;
               ^
/datasets/git/hash-lookup.c:60:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!nr)
                ^
                 {
/datasets/git/hash-lookup.c:64:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                size_t lov, hiv, miv, ofs;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/hash-lookup.c:64:10: warning: variable 'lov' is not initialized [cppcoreguidelines-init-variables]
                size_t lov, hiv, miv, ofs;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/hash-lookup.c:64:15: warning: variable 'hiv' is not initialized [cppcoreguidelines-init-variables]
                size_t lov, hiv, miv, ofs;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/hash-lookup.c:64:20: warning: variable 'miv' is not initialized [cppcoreguidelines-init-variables]
                size_t lov, hiv, miv, ofs;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/hash-lookup.c:64:25: warning: variable 'ofs' is not initialized [cppcoreguidelines-init-variables]
                size_t lov, hiv, miv, ofs;
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/hash-lookup.c:66:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (ofs = 0; ofs < the_hash_algo->rawsz - 2; ofs += 2) {
                ^
/datasets/git/hash-lookup.c:70:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (miv < lov)
                                      ^
                                       {
/datasets/git/hash-lookup.c:72:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (hiv < miv)
                                      ^
                                       {
/datasets/git/hash-lookup.c:82:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (lo <= mi && mi < hi)
                                                        ^
                                                         {
/datasets/git/hash-lookup.c:89:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        do {
        ^
/datasets/git/hash-lookup.c:90:7: warning: variable 'cmp' is not initialized [cppcoreguidelines-init-variables]
                int cmp;
                    ^
                        = 0
/datasets/git/hash-lookup.c:92:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!cmp)
                         ^
                          {
/datasets/git/hash-lookup.c:93:11: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        return mi;
                               ^
/datasets/git/hash-lookup.c:94:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cmp > 0)
                            ^
                             {
/datasets/git/hash-lookup.c:96:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/hash-lookup.c:99:11: warning: backward branch (do loop) is ID-dependent due to variable reference to 'lo' and may cause performance degradation [altera-id-dependent-backward-branch]
        } while (lo < hi);
                 ^
/datasets/git/hash-lookup.c:106:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        uint32_t hi, lo;
        ^~~~~~~~~~~~~~~~
/datasets/git/hash-lookup.c:106:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/hash-lookup.c:106:11: warning: variable 'hi' is not initialized [cppcoreguidelines-init-variables]
        uint32_t hi, lo;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/hash-lookup.c:106:11: warning: variable name 'hi' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/hash-lookup.c:106:15: warning: variable 'lo' is not initialized [cppcoreguidelines-init-variables]
        uint32_t hi, lo;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/hash-lookup.c:106:15: warning: variable name 'lo' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/hash-lookup.c:111:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (lo < hi) {
        ^
/datasets/git/hash-lookup.c:111:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'lo' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (lo < hi) {
               ^
/datasets/git/hash-lookup.c:112:12: warning: variable name 'mi' is too short, expected at least 3 characters [readability-identifier-length]
                unsigned mi = lo + (hi - lo) / 2;
                         ^
/datasets/git/hash-lookup.c:116:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (result)
                                   ^
                                    {
/datasets/git/hash-lookup.c:120:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cmp > 0)
                            ^
                             {
/datasets/git/hash-lookup.c:122:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/hash-lookup.c:126:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (result)
                   ^
                    {
/datasets/git/hashmap.c:12:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned int c, hash = FNV32_BASE;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/hashmap.c:12:15: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        unsigned int c, hash = FNV32_BASE;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/hashmap.c:12:15: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/hashmap.c:13:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((c = (unsigned char) *str++))
        ^
/datasets/git/hashmap.c:13:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'c' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((c = (unsigned char) *str++))
               ^
/datasets/git/hashmap.c:13:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while ((c = (unsigned char) *str++))
                                            ^
                                             {
/datasets/git/hashmap.c:20:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned int c, hash = FNV32_BASE;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/hashmap.c:20:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/hashmap.c:20:15: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        unsigned int c, hash = FNV32_BASE;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/hashmap.c:20:15: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/hashmap.c:21:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((c = (unsigned char) *str++)) {
        ^
/datasets/git/hashmap.c:21:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'c' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((c = (unsigned char) *str++)) {
               ^
/datasets/git/hashmap.c:22:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (c >= 'a' && c <= 'z')
                                         ^
                                          {
/datasets/git/hashmap.c:33:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (len--) {
        ^
/datasets/git/hashmap.c:34:16: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                unsigned int c = *ucbuf++;
                             ^
/datasets/git/hashmap.c:44:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (len--) {
        ^
/datasets/git/hashmap.c:45:16: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                unsigned int c = *ucbuf++;
                             ^
/datasets/git/hashmap.c:46:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (c >= 'a' && c <= 'z')
                                         ^
                                          {
/datasets/git/hashmap.c:61:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (len--) {
        ^
/datasets/git/hashmap.c:62:16: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                unsigned int c = *ucbuf++;
                             ^
/datasets/git/hashmap.c:63:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (c >= 'a' && c <= 'z')
                                         ^
                                          {
/datasets/git/hashmap.c:70:1: warning: replace macro with enum [modernize-macro-to-enum]
#define HASHMAP_INITIAL_SIZE 64
^~~~~~~~
                             = ,
/datasets/git/hashmap.c:70:9: warning: macro 'HASHMAP_INITIAL_SIZE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define HASHMAP_INITIAL_SIZE 64
        ^
/datasets/git/hashmap.c:72:9: warning: macro 'HASHMAP_RESIZE_BITS' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define HASHMAP_RESIZE_BITS 2
        ^
/datasets/git/hashmap.c:74:9: warning: macro 'HASHMAP_LOAD_FACTOR' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define HASHMAP_LOAD_FACTOR 80
        ^
/datasets/git/hashmap.c:79:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        CALLOC_ARRAY(map->table, size);
        ^
/datasets/git/./git-compat-util.h:1091:55: note: expanded from macro 'CALLOC_ARRAY'
#define CALLOC_ARRAY(x, alloc) (x) = xcalloc((alloc), sizeof(*(x)))
                                                      ^
/datasets/git/hashmap.c:82:73: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        map->grow_at = (unsigned int) ((uint64_t) size * HASHMAP_LOAD_FACTOR / 100);
                                                                               ^
/datasets/git/hashmap.c:83:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (size <= HASHMAP_INITIAL_SIZE)
                                         ^
                                          {
/datasets/git/hashmap.c:85:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/hashmap.c:91:37: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                map->shrink_at = map->grow_at / ((1 << HASHMAP_RESIZE_BITS) + 1);
                                                  ^
/datasets/git/hashmap.c:95:39: warning: parameter name 'e1' is too short, expected at least 3 characters [readability-identifier-length]
                               const struct hashmap_entry *e1,
                                                           ^
/datasets/git/hashmap.c:96:39: warning: parameter name 'e2' is too short, expected at least 3 characters [readability-identifier-length]
                               const struct hashmap_entry *e2,
                                                           ^
/datasets/git/hashmap.c:112:9: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return hash & (map->tablesize - 1);
               ^
/datasets/git/hashmap.c:118:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned int i, oldsize = map->tablesize;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/hashmap.c:118:2: note: inferred assignment of ID-dependent value from ID-dependent member tablesize [altera-id-dependent-backward-branch]
/datasets/git/hashmap.c:118:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i, oldsize = map->tablesize;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/hashmap.c:118:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/hashmap.c:123:3: note: inferred assignment of ID-dependent value from ID-dependent variable oldtable [altera-id-dependent-backward-branch]
                struct hashmap_entry *e = oldtable[i];
                ^
/datasets/git/hashmap.c:122:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'oldsize' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < oldsize; i++) {
                    ^
/datasets/git/hashmap.c:123:25: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                struct hashmap_entry *e = oldtable[i];
                                      ^
/datasets/git/hashmap.c:124:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (e) {
                ^
/datasets/git/hashmap.c:124:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'e' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (e) {
                       ^
/datasets/git/hashmap.c:126:17: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
                        unsigned int b = bucket(map, e);
                                     ^
/datasets/git/hashmap.c:139:25: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
        struct hashmap_entry **e = &map->table[bucket(map, key)];
                               ^
/datasets/git/hashmap.c:140:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*e && !entry_equals(map, *e, key, keydata))
        ^
/datasets/git/hashmap.c:140:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'e' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (*e && !entry_equals(map, *e, key, keydata))
               ^
/datasets/git/hashmap.c:140:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (*e && !entry_equals(map, *e, key, keydata))
                                                          ^
                                                           {
/datasets/git/hashmap.c:158:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(map, 0, sizeof(*map));
        ^~~~~~
/datasets/git/hashmap.c:158:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(map, 0, sizeof(*map));
        ^~~~~~
/datasets/git/hashmap.c:164:59: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        initial_size = (unsigned int) ((uint64_t) initial_size * 100
                                                                 ^
/datasets/git/hashmap.c:166:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (initial_size > size)
        ^
/datasets/git/hashmap.c:166:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'initial_size' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (initial_size > size)
               ^
/datasets/git/hashmap.c:166:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (initial_size > size)
                                   ^
                                    {
/datasets/git/hashmap.c:167:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                size <<= HASHMAP_RESIZE_BITS;
                ^
/datasets/git/hashmap.c:180:24: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct hashmap_entry *e;
                              ^
                                = NULL
/datasets/git/hashmap.c:180:24: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/hashmap.c:183:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((e = hashmap_iter_next(&iter)))
        ^
/datasets/git/hashmap.c:183:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'e' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((e = hashmap_iter_next(&iter)))
               ^
/datasets/git/hashmap.c:183:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while ((e = hashmap_iter_next(&iter)))
                                              ^
                                               {
/datasets/git/hashmap.c:193:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!map || !map->table)
                                ^
                                 {
/datasets/git/hashmap.c:195:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (entry_offset >= 0)  /* called by hashmap_clear_entries */
                              ^
                               {
/datasets/git/hashmap.c:197:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(map->table, 0, map->tablesize * sizeof(struct hashmap_entry *));
        ^~~~~~
/datasets/git/hashmap.c:197:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(map->table, 0, map->tablesize * sizeof(struct hashmap_entry *));
        ^~~~~~
/datasets/git/hashmap.c:204:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!map || !map->table)
                                ^
                                 {
/datasets/git/hashmap.c:206:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (entry_offset >= 0)  /* called by hashmap_clear_and_free */
                              ^
                               {
/datasets/git/hashmap.c:209:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(map, 0, sizeof(*map));
        ^~~~~~
/datasets/git/hashmap.c:209:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(map, 0, sizeof(*map));
        ^~~~~~
/datasets/git/hashmap.c:216:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!map->table)
                        ^
                         {
/datasets/git/hashmap.c:224:24: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
        struct hashmap_entry *e = entry->next;
                              ^
/datasets/git/hashmap.c:225:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; e; e = e->next)
        ^
/datasets/git/hashmap.c:225:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'e' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; e; e = e->next)
               ^
/datasets/git/hashmap.c:225:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (; e; e = e->next)
                              ^
                               {
/datasets/git/hashmap.c:226:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (entry_equals(map, entry, e, NULL))
                                                      ^
                                                       {
/datasets/git/hashmap.c:233:15: warning: variable 'b' is not initialized [cppcoreguidelines-init-variables]
        unsigned int b;
                     ^
                       = 0
/datasets/git/hashmap.c:233:15: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/hashmap.c:235:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!map->table)
                        ^
                         {
/datasets/git/hashmap.c:246:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (map->private_size > map->grow_at)
                                                     ^
                                                      {
/datasets/git/hashmap.c:247:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        rehash(map, map->tablesize << HASHMAP_RESIZE_BITS);
                                    ^
/datasets/git/hashmap.c:255:24: warning: variable 'old' is not initialized [cppcoreguidelines-init-variables]
        struct hashmap_entry *old;
                              ^
                                  = NULL
/datasets/git/hashmap.c:256:25: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct hashmap_entry **e;
                               ^
                                 = NULL
/datasets/git/hashmap.c:256:25: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/hashmap.c:258:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!map->table)
                        ^
                         {
/datasets/git/hashmap.c:261:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!*e)
                ^
                 {
/datasets/git/hashmap.c:272:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (map->private_size < map->shrink_at)
                                                       ^
                                                        {
/datasets/git/hashmap.c:273:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        rehash(map, map->tablesize >> HASHMAP_RESIZE_BITS);
                                    ^
/datasets/git/hashmap.c:297:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/hashmap.c:303:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (iter->tablepos >= iter->map->tablesize)
                                                           ^
                                                            {
/datasets/git/hashmap.c:317:6: warning: 2 adjacent parameters of 'pool_entry_cmp' of similar type ('const struct hashmap_entry *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                          const struct hashmap_entry *eptr,
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/hashmap.c:317:34: note: the first parameter in the range is 'eptr'
                          const struct hashmap_entry *eptr,
                                                      ^~~~
/datasets/git/hashmap.c:318:34: note: the last parameter in the range is 'entry_or_key'
                          const struct hashmap_entry *entry_or_key,
                                                      ^~~~~~~~~~~~
/datasets/git/hashmap.c:321:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const struct pool_entry *e1, *e2;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/hashmap.c:321:27: warning: variable 'e1' is not initialized [cppcoreguidelines-init-variables]
        const struct pool_entry *e1, *e2;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/hashmap.c:321:27: warning: variable name 'e1' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/hashmap.c:321:32: warning: variable 'e2' is not initialized [cppcoreguidelines-init-variables]
        const struct pool_entry *e1, *e2;
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/hashmap.c:321:32: warning: variable name 'e2' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/hashmap.c:327:32: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
               (e1->len != e2->len || memcmp(e1->data, keydata, e1->len));
                                      ^
                                                                         != 0
/datasets/git/hashmap.c:333:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct pool_entry key, *e;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/hashmap.c:333:26: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct pool_entry key, *e;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/hashmap.c:333:26: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/hashmap.c:336:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!map.tablesize)
                           ^
                            {
/datasets/git/hashmap.c:345:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FLEX_ALLOC_MEM(e, data, data, len);
                ^
/datasets/git/./git-compat-util.h:1151:47: note: expanded from macro 'FLEX_ALLOC_MEM'
#define FLEX_ALLOC_MEM(x, flexname, buf, len) do { \
                                              ^
/datasets/git/hashmap.c:345:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                FLEX_ALLOC_MEM(e, data, data, len);
                ^
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/hashmap.c:345:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                FLEX_ALLOC_MEM(e, data, data, len);
                ^
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/help.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "builtin.h"
/datasets/git/help.c:17:8: warning: accessing fields in struct 'category_description' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct category_description {
       ^
/datasets/git/help.c:17:8: note: use "__attribute__((aligned(16)))" to align struct 'category_description' to 16 bytes
/datasets/git/help.c:21:17: warning: variable 'common_mask' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static uint32_t common_mask =
                ^
/datasets/git/help.c:22:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        CAT_init | CAT_worktree | CAT_info |
        ^
/datasets/git/./command-list.h:18:19: note: expanded from macro 'CAT_init'
#define CAT_init (1UL << 8)
                  ^      ~
/datasets/git/help.c:22:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        CAT_init | CAT_worktree | CAT_info |
                   ^
/datasets/git/./command-list.h:27:23: note: expanded from macro 'CAT_worktree'
#define CAT_worktree (1UL << 17)
                      ^      ~~
/datasets/git/help.c:22:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        CAT_init | CAT_worktree | CAT_info |
                                  ^
/datasets/git/./command-list.h:17:19: note: expanded from macro 'CAT_info'
#define CAT_info (1UL << 7)
                  ^      ~
/datasets/git/help.c:23:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        CAT_history | CAT_remote;
        ^
/datasets/git/./command-list.h:16:22: note: expanded from macro 'CAT_history'
#define CAT_history (1UL << 6)
                     ^      ~
/datasets/git/help.c:23:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        CAT_history | CAT_remote;
                      ^
/datasets/git/./command-list.h:23:21: note: expanded from macro 'CAT_remote'
#define CAT_remote (1UL << 13)
                    ^      ~~
/datasets/git/help.c:24:36: warning: variable 'common_categories' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct category_description common_categories[] = {
                                   ^
/datasets/git/help.c:25:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { CAT_init, N_("start a working area (see also: git help tutorial)") },
          ^
/datasets/git/./command-list.h:18:19: note: expanded from macro 'CAT_init'
#define CAT_init (1UL << 8)
                  ^      ~
/datasets/git/help.c:26:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { CAT_worktree, N_("work on the current change (see also: git help everyday)") },
          ^
/datasets/git/./command-list.h:27:23: note: expanded from macro 'CAT_worktree'
#define CAT_worktree (1UL << 17)
                      ^      ~~
/datasets/git/help.c:27:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { CAT_info, N_("examine the history and state (see also: git help revisions)") },
          ^
/datasets/git/./command-list.h:17:19: note: expanded from macro 'CAT_info'
#define CAT_info (1UL << 7)
                  ^      ~
/datasets/git/help.c:28:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { CAT_history, N_("grow, mark and tweak your common history") },
          ^
/datasets/git/./command-list.h:16:22: note: expanded from macro 'CAT_history'
#define CAT_history (1UL << 6)
                     ^      ~
/datasets/git/help.c:29:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { CAT_remote, N_("collaborate (see also: git help workflows)") },
          ^
/datasets/git/./command-list.h:23:21: note: expanded from macro 'CAT_remote'
#define CAT_remote (1UL << 13)
                    ^      ~~
/datasets/git/help.c:32:36: warning: variable 'main_categories' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct category_description main_categories[] = {
                                   ^
/datasets/git/help.c:33:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { CAT_mainporcelain, N_("Main Porcelain Commands") },
          ^
/datasets/git/./command-list.h:19:28: note: expanded from macro 'CAT_mainporcelain'
#define CAT_mainporcelain (1UL << 9)
                           ^      ~
/datasets/git/help.c:34:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { CAT_ancillarymanipulators, N_("Ancillary Commands / Manipulators") },
          ^
/datasets/git/./command-list.h:11:36: note: expanded from macro 'CAT_ancillarymanipulators'
#define CAT_ancillarymanipulators (1UL << 1)
                                   ^      ~
/datasets/git/help.c:35:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { CAT_ancillaryinterrogators, N_("Ancillary Commands / Interrogators") },
          ^
/datasets/git/./command-list.h:10:37: note: expanded from macro 'CAT_ancillaryinterrogators'
#define CAT_ancillaryinterrogators (1UL << 0)
                                    ^      ~
/datasets/git/help.c:36:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { CAT_foreignscminterface, N_("Interacting with Others") },
          ^
/datasets/git/./command-list.h:14:34: note: expanded from macro 'CAT_foreignscminterface'
#define CAT_foreignscminterface (1UL << 4)
                                 ^      ~
/datasets/git/help.c:37:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { CAT_plumbingmanipulators, N_("Low-level Commands / Manipulators") },
          ^
/datasets/git/./command-list.h:21:35: note: expanded from macro 'CAT_plumbingmanipulators'
#define CAT_plumbingmanipulators (1UL << 11)
                                  ^      ~~
/datasets/git/help.c:38:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { CAT_plumbinginterrogators, N_("Low-level Commands / Interrogators") },
          ^
/datasets/git/./command-list.h:20:36: note: expanded from macro 'CAT_plumbinginterrogators'
#define CAT_plumbinginterrogators (1UL << 10)
                                   ^      ~~
/datasets/git/help.c:39:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { CAT_synchingrepositories, N_("Low-level Commands / Syncing Repositories") },
          ^
/datasets/git/./command-list.h:25:35: note: expanded from macro 'CAT_synchingrepositories'
#define CAT_synchingrepositories (1UL << 15)
                                  ^      ~~
/datasets/git/help.c:40:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { CAT_purehelpers, N_("Low-level Commands / Internal Helpers") },
          ^
/datasets/git/./command-list.h:22:26: note: expanded from macro 'CAT_purehelpers'
#define CAT_purehelpers (1UL << 12)
                         ^      ~~
/datasets/git/help.c:41:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { CAT_userinterfaces, N_("User-facing repository, command and file interfaces") },
          ^
/datasets/git/./command-list.h:26:29: note: expanded from macro 'CAT_userinterfaces'
#define CAT_userinterfaces (1UL << 16)
                            ^      ~~
/datasets/git/help.c:42:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { CAT_developerinterfaces, N_("Developer-facing file formats, protocols and other interfaces") },
          ^
/datasets/git/./command-list.h:13:34: note: expanded from macro 'CAT_developerinterfaces'
#define CAT_developerinterfaces (1UL << 3)
                                 ^      ~
/datasets/git/help.c:48:14: warning: variable 'new_name' is not initialized [cppcoreguidelines-init-variables]
        const char *new_name;
                    ^
                             = NULL
/datasets/git/help.c:49:14: warning: variable 'prefix' is not initialized [cppcoreguidelines-init-variables]
        const char *prefix;
                    ^
                           = NULL
/datasets/git/help.c:52:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        case CAT_guide:
             ^
/datasets/git/./command-list.h:15:20: note: expanded from macro 'CAT_guide'
#define CAT_guide (1UL << 5)
                   ^      ~
/datasets/git/help.c:53:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        case CAT_userinterfaces:
             ^
/datasets/git/./command-list.h:26:29: note: expanded from macro 'CAT_userinterfaces'
#define CAT_userinterfaces (1UL << 16)
                            ^      ~~
/datasets/git/help.c:54:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        case CAT_developerinterfaces:
             ^
/datasets/git/./command-list.h:13:34: note: expanded from macro 'CAT_developerinterfaces'
#define CAT_developerinterfaces (1UL << 3)
                                 ^      ~
/datasets/git/help.c:61:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (skip_prefix(name, prefix, &new_name))
                                                 ^
                                                  {
/datasets/git/help.c:69:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, nr = 0;
        ^~~~~~~~~~~~~~
/datasets/git/help.c:69:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, nr = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/help.c:69:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/help.c:69:9: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
        int i, nr = 0;
               ^
/datasets/git/help.c:70:23: warning: variable 'cmds' is not initialized [cppcoreguidelines-init-variables]
        struct cmdname_help *cmds;
                             ^
                                  = NULL
/datasets/git/help.c:72:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ARRAY_SIZE(command_list) == 0)
                                          ^
                                           {
/datasets/git/help.c:77:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ARRAY_SIZE(command_list); i++) {
        ^
/datasets/git/help.c:80:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(cmd->category & mask))
                                            ^
                                             {
/datasets/git/help.c:93:11: warning: 2 adjacent parameters of 'print_command_list' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                               uint32_t mask, int longest)
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/help.c:93:20: note: the first parameter in the range is 'mask'
                               uint32_t mask, int longest)
                                        ^~~~
/datasets/git/help.c:93:30: note: the last parameter in the range is 'longest'
                               uint32_t mask, int longest)
                                                  ^~~~~~~
/datasets/git/help.c:93:11: note: 
                               uint32_t mask, int longest)
                               ^
/datasets/git/help.c:93:26: note: 'uint32_t' and 'int' may be implicitly converted: 'uint32_t' (as 'unsigned int') -> 'int', 'int' -> 'uint32_t' (as 'unsigned int')
                               uint32_t mask, int longest)
                                              ^
/datasets/git/./command-list.h:3:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        const char *name;
        ^
/datasets/git/help.c:95:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/help.c:95:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/help.c:97:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; cmds[i].name; i++) {
        ^
/datasets/git/help.c:97:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'name' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; cmds[i].name; i++) {
                    ^
/datasets/git/help.c:101:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (longest > len)
                                          ^
                                           {
/datasets/git/help.c:110:29: warning: variable name 'e1' is too short, expected at least 3 characters [readability-identifier-length]
        const struct cmdname_help *e1 = elem1;
                                   ^
/datasets/git/help.c:111:29: warning: variable name 'e2' is too short, expected at least 3 characters [readability-identifier-length]
        const struct cmdname_help *e2 = elem2;
                                   ^
/datasets/git/help.c:119:23: warning: variable 'cmds' is not initialized [cppcoreguidelines-init-variables]
        struct cmdname_help *cmds;
                             ^
                                  = NULL
/datasets/git/help.c:121:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, nr = 0;
        ^~~~~~~~~~~~~~
/datasets/git/help.c:121:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, nr = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/help.c:121:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/help.c:121:9: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
        int i, nr = 0;
               ^
/datasets/git/help.c:124:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; catdesc[i].desc; i++)
        ^
/datasets/git/./command-list.h:3:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        const char *name;
        ^
/datasets/git/help.c:124:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; catdesc[i].desc; i++)
                                         ^
                                          {
/datasets/git/help.c:129:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; cmds[i].name; i++, nr++) {
        ^
/datasets/git/help.c:129:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'name' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; cmds[i].name; i++, nr++) {
                    ^
/datasets/git/help.c:130:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (longest < strlen(cmds[i].name))
                                                   ^
                                                    {
/datasets/git/help.c:131:14: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        longest = strlen(cmds[i].name);
                                  ^
/datasets/git/help.c:135:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; catdesc[i].desc; i++) {
        ^
/datasets/git/help.c:139:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (i)
                      ^
                       {
/datasets/git/help.c:145:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (longest_p)
                      ^
                       {
/datasets/git/help.c:151:18: warning: variable 'ent' is not initialized [cppcoreguidelines-init-variables]
        struct cmdname *ent;
                        ^
                            = NULL
/datasets/git/help.c:152:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FLEX_ALLOC_MEM(ent, name, name, len);
        ^
/datasets/git/./git-compat-util.h:1151:47: note: expanded from macro 'FLEX_ALLOC_MEM'
#define FLEX_ALLOC_MEM(x, flexname, buf, len) do { \
                                              ^
/datasets/git/help.c:152:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        FLEX_ALLOC_MEM(ent, name, name, len);
        ^
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/help.c:152:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        FLEX_ALLOC_MEM(ent, name, name, len);
        ^
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/help.c:155:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(cmds->names, cmds->cnt + 1, cmds->alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/help.c:155:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_GROW(cmds->names, cmds->cnt + 1, cmds->alloc);
        ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/help.c:161:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/help.c:161:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/help.c:162:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < cmds->cnt; ++i)
        ^
/datasets/git/help.c:162:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < cmds->cnt; ++i)
                                       ^
                                        {
/datasets/git/help.c:169:40: warning: parameter name 'a_' is too short, expected at least 3 characters [readability-identifier-length]
static int cmdname_compare(const void *a_, const void *b_)
                                       ^
/datasets/git/help.c:169:56: warning: parameter name 'b_' is too short, expected at least 3 characters [readability-identifier-length]
static int cmdname_compare(const void *a_, const void *b_)
                                                       ^
/datasets/git/help.c:171:18: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        struct cmdname *a = *(struct cmdname **)a_;
                        ^
/datasets/git/help.c:172:18: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        struct cmdname *b = *(struct cmdname **)b_;
                        ^
/datasets/git/help.c:178:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, j;
        ^~~~~~~~~
/datasets/git/help.c:178:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, j;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/help.c:178:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/help.c:178:9: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int i, j;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/help.c:178:9: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/help.c:180:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!cmds->cnt)
                       ^
                        {
/datasets/git/help.c:183:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = j = 1; i < cmds->cnt; i++) {
        ^
/datasets/git/help.c:183:18: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = j = 1; i < cmds->cnt; i++) {
                        ^
/datasets/git/help.c:184:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(cmds->names[i]->name, cmds->names[j-1]->name))
                                                                          ^
                                                                           {
/datasets/git/help.c:186:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/help.c:195:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int ci, cj, ei;
        ^~~~~~~~~~~~~~~
/datasets/git/help.c:195:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/help.c:195:6: warning: variable 'ci' is not initialized [cppcoreguidelines-init-variables]
        int ci, cj, ei;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/help.c:195:6: warning: variable name 'ci' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/help.c:195:10: warning: variable 'cj' is not initialized [cppcoreguidelines-init-variables]
        int ci, cj, ei;
                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/help.c:195:10: warning: variable name 'cj' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/help.c:195:14: warning: variable 'ei' is not initialized [cppcoreguidelines-init-variables]
        int ci, cj, ei;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/help.c:195:14: warning: variable name 'ei' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/help.c:196:6: warning: variable 'cmp' is not initialized [cppcoreguidelines-init-variables]
        int cmp;
            ^
                = 0
/datasets/git/help.c:199:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (ci < cmds->cnt && ei < excludes->cnt) {
        ^
/datasets/git/help.c:199:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'ci' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (ci < cmds->cnt && ei < excludes->cnt) {
               ^
/datasets/git/help.c:201:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cmp < 0)
                            ^
                             {
/datasets/git/help.c:206:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else if (cmp > 0)
                                   ^
                                    {
/datasets/git/help.c:210:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (ci < cmds->cnt)
        ^
/datasets/git/help.c:210:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'ci' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (ci < cmds->cnt)
               ^
/datasets/git/help.c:210:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (ci < cmds->cnt)
                              ^
                               {
/datasets/git/help.c:220:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/help.c:220:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/help.c:222:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < cmds->cnt; i++)
        ^
/datasets/git/help.c:222:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'cnt' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < cmds->cnt; i++)
                    ^
/datasets/git/help.c:222:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < cmds->cnt; i++)
                                       ^
                                        {
/datasets/git/help.c:228:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        colopts = (colopts & ~COL_ENABLE_MASK) | COL_ENABLED;
                  ^
/datasets/git/help.c:228:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        colopts = (colopts & ~COL_ENABLE_MASK) | COL_ENABLED;
                   ^         ~~~~~~~~~~~~~~~~
/datasets/git/help.c:228:23: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
        colopts = (colopts & ~COL_ENABLE_MASK) | COL_ENABLED;
                             ^
/datasets/git/help.c:229:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&copts, 0, sizeof(copts));
        ^~~~~~
/datasets/git/help.c:229:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&copts, 0, sizeof(copts));
        ^~~~~~
/datasets/git/help.c:237:7: warning: 2 adjacent parameters of 'list_commands_in_dir' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                         const char *path,
                                         ^~~~~~~~~~~~~~~~~
/datasets/git/help.c:237:19: note: the first parameter in the range is 'path'
                                         const char *path,
                                                     ^~~~
/datasets/git/help.c:238:19: note: the last parameter in the range is 'prefix'
                                         const char *prefix)
                                                     ^~~~~~
/datasets/git/help.c:241:17: warning: variable 'de' is not initialized [cppcoreguidelines-init-variables]
        struct dirent *de;
                       ^
                          = NULL
/datasets/git/help.c:241:17: warning: variable name 'de' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/help.c:243:6: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int len;
            ^
                = 0
/datasets/git/help.c:245:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!dir)
                 ^
                  {
/datasets/git/help.c:247:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!prefix)
                    ^
                     {
/datasets/git/help.c:251:8: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        len = buf.len;
              ^
/datasets/git/help.c:253:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((de = readdir(dir)) != NULL) {
        ^
/datasets/git/help.c:253:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'de' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((de = readdir(dir)) != NULL) {
               ^
/datasets/git/help.c:253:15: warning: function is not thread safe [concurrency-mt-unsafe]
        while ((de = readdir(dir)) != NULL) {
                     ^
/datasets/git/help.c:254:15: warning: variable 'ent' is not initialized [cppcoreguidelines-init-variables]
                const char *ent;
                            ^
                                = NULL
/datasets/git/help.c:255:10: warning: variable 'entlen' is not initialized [cppcoreguidelines-init-variables]
                size_t entlen;
                       ^
                              = 0
/datasets/git/help.c:257:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!skip_prefix(de->d_name, prefix, &ent))
                                                           ^
                                                            {
/datasets/git/help.c:262:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!is_executable(buf.buf))
                                            ^
                                             {
/datasets/git/help.c:268:26: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                add_cmdname(cmds, ent, entlen);
                                       ^
/datasets/git/help.c:278:25: warning: function is not thread safe [concurrency-mt-unsafe]
        const char *env_path = getenv("PATH");
                               ^
/datasets/git/help.c:285:3: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                QSORT(main_cmds->names, main_cmds->cnt, cmdname_compare);
                ^
/datasets/git/./git-compat-util.h:1304:56: note: expanded from macro 'QSORT'
#define QSORT(base, n, compar) sane_qsort((base), (n), sizeof(*(base)), compar)
                                                       ^
/datasets/git/help.c:290:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                char *paths, *path, *colon;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/help.c:290:9: warning: variable 'paths' is not initialized [cppcoreguidelines-init-variables]
                char *paths, *path, *colon;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/help.c:290:17: warning: variable 'path' is not initialized [cppcoreguidelines-init-variables]
                char *paths, *path, *colon;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/help.c:290:24: warning: variable 'colon' is not initialized [cppcoreguidelines-init-variables]
                char *paths, *path, *colon;
                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/help.c:292:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (1) {
                ^
/datasets/git/help.c:293:9: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                        if ((colon = strchr(path, PATH_SEP)))
                             ^
/datasets/git/help.c:293:9: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/help.c:293:9: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/help.c:293:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if ((colon = strchr(path, PATH_SEP)))
                                                             ^
                                                              {
/datasets/git/help.c:295:22: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                        if (!exec_path || strcmp(path, exec_path))
                                          ^
                                                                  != 0
/datasets/git/help.c:295:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!exec_path || strcmp(path, exec_path))
                                                                  ^
                                                                   {
/datasets/git/help.c:298:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!colon)
                                   ^
                                    {
/datasets/git/help.c:304:3: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                QSORT(other_cmds->names, other_cmds->cnt, cmdname_compare);
                ^
/datasets/git/./git-compat-util.h:1304:56: note: expanded from macro 'QSORT'
#define QSORT(base, n, compar) sane_qsort((base), (n), sizeof(*(base)), compar)
                                                       ^
/datasets/git/help.c:314:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (starts_with(var, "column."))
                                        ^
                                         {
/datasets/git/help.c:350:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct cmdnames main_cmds, other_cmds;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/help.c:351:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/help.c:351:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/help.c:353:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&main_cmds, 0, sizeof(main_cmds));
        ^~~~~~
/datasets/git/help.c:353:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&main_cmds, 0, sizeof(main_cmds));
        ^~~~~~
/datasets/git/help.c:354:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&other_cmds, 0, sizeof(other_cmds));
        ^~~~~~
/datasets/git/help.c:354:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&other_cmds, 0, sizeof(other_cmds));
        ^~~~~~
/datasets/git/help.c:357:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < main_cmds.cnt; i++)
        ^
/datasets/git/help.c:357:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'cnt' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < main_cmds.cnt; i++)
                    ^
/datasets/git/help.c:357:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < main_cmds.cnt; i++)
                                           ^
                                            {
/datasets/git/help.c:366:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct cmdnames main_cmds, other_cmds;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/help.c:367:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/help.c:367:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/help.c:369:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&main_cmds, 0, sizeof(main_cmds));
        ^~~~~~
/datasets/git/help.c:369:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&main_cmds, 0, sizeof(main_cmds));
        ^~~~~~
/datasets/git/help.c:370:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&other_cmds, 0, sizeof(other_cmds));
        ^~~~~~
/datasets/git/help.c:370:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&other_cmds, 0, sizeof(other_cmds));
        ^~~~~~
/datasets/git/help.c:373:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < other_cmds.cnt; i++)
        ^
/datasets/git/help.c:373:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'cnt' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < other_cmds.cnt; i++)
                    ^
/datasets/git/help.c:373:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < other_cmds.cnt; i++)
                                            ^
                                             {
/datasets/git/help.c:383:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, n = ARRAY_SIZE(command_list);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/help.c:383:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, n = ARRAY_SIZE(command_list);
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/help.c:383:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/help.c:383:9: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
        int i, n = ARRAY_SIZE(command_list);
               ^
/datasets/git/help.c:386:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; category_names[i]; i++) {
        ^
/datasets/git/help.c:388:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        cat_id = 1UL << i;
                                 ^      ~
/datasets/git/help.c:392:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!cat_id)
                    ^
                     {
/datasets/git/help.c:395:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < n; i++) {
        ^
/datasets/git/help.c:395:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'n' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < n; i++) {
                    ^
/datasets/git/help.c:398:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(cmd->category & cat_id))
                                              ^
                                               {
/datasets/git/help.c:406:14: warning: variable 'cmd_list' is not initialized [cppcoreguidelines-init-variables]
        const char *cmd_list;
                    ^
                             = NULL
/datasets/git/help.c:408:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (git_config_get_string_tmp("completion.commands", &cmd_list))
                                                                        ^
                                                                         {
/datasets/git/help.c:414:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'cmd_list' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (*cmd_list) {
               ^
/datasets/git/help.c:415:17: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                struct strbuf sb = STRBUF_INIT;
                              ^
/datasets/git/help.c:416:15: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                const char *p = strchrnul(cmd_list, ' ');
                            ^
/datasets/git/help.c:419:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (sb.buf[0] == '-')
                                     ^
                                      {
/datasets/git/help.c:421:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/help.c:424:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (*p == ' ')
                ^
/datasets/git/help.c:424:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (*p == ' ')
                       ^
/datasets/git/help.c:424:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (*p == ' ')
                                 ^
                                  {
/datasets/git/help.c:433:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                { CAT_guide, N_("The Git concept guides are:") },
                  ^
/datasets/git/./command-list.h:15:20: note: expanded from macro 'CAT_guide'
#define CAT_guide (1UL << 5)
                   ^      ~
/datasets/git/help.c:443:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                { CAT_userinterfaces, N_("User-facing repository, command and file interfaces:") },
                  ^
/datasets/git/./command-list.h:26:29: note: expanded from macro 'CAT_userinterfaces'
#define CAT_userinterfaces (1UL << 16)
                            ^      ~~
/datasets/git/help.c:453:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                { CAT_developerinterfaces, N_("File formats, protocols and other developer interfaces:") },
                  ^
/datasets/git/./command-list.h:13:34: note: expanded from macro 'CAT_developerinterfaces'
#define CAT_developerinterfaces (1UL << 3)
                                 ^      ~
/datasets/git/help.c:464:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (skip_prefix(var, "alias.", &var))
                                             ^
                                              {
/datasets/git/help.c:473:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/help.c:473:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/help.c:476:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (others.nr)
                      ^
                       {
/datasets/git/help.c:478:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < others.nr; i++)
        ^
/datasets/git/help.c:478:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < others.nr; i++)
                                       ^
                                        {
/datasets/git/help.c:486:23: warning: variable 'aliases' is not initialized [cppcoreguidelines-init-variables]
        struct cmdname_help *aliases;
                             ^
                                     = NULL
/datasets/git/help.c:487:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/help.c:487:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/help.c:492:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < alias_list.nr; i++) {
        ^
/datasets/git/help.c:494:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (longest < len)
                                  ^
                                   {
/datasets/git/help.c:495:14: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        longest = len;
                                  ^
/datasets/git/help.c:501:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < alias_list.nr; i++) {
                ^
/datasets/git/help.c:513:25: warning: 2 adjacent parameters of 'list_all_cmds_help' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
void list_all_cmds_help(int show_external_commands, int show_aliases)
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/help.c:513:29: note: the first parameter in the range is 'show_external_commands'
void list_all_cmds_help(int show_external_commands, int show_aliases)
                            ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/help.c:513:57: note: the last parameter in the range is 'show_aliases'
void list_all_cmds_help(int show_external_commands, int show_aliases)
                                                        ^~~~~~~~~~~~
/datasets/git/help.c:515:6: warning: variable 'longest' is not initialized [cppcoreguidelines-init-variables]
        int longest;
            ^
                    = 0
/datasets/git/help.c:521:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (show_external_commands)
                                   ^
                                    {
/datasets/git/help.c:523:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (show_aliases)
                         ^
                          {
/datasets/git/help.c:527:36: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
int is_in_cmdlist(struct cmdnames *c, const char *s)
                                   ^
/datasets/git/help.c:527:51: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
int is_in_cmdlist(struct cmdnames *c, const char *s)
                                                  ^
/datasets/git/help.c:529:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/help.c:529:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/help.c:530:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < c->cnt; i++)
        ^
/datasets/git/help.c:530:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'cnt' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < c->cnt; i++)
                    ^
/datasets/git/help.c:530:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < c->cnt; i++)
                                    ^
                                     {
/datasets/git/help.c:531:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(s, c->names[i]->name))
                                                  ^
                                                   {
/datasets/git/help.c:536:12: warning: variable 'autocorrect' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int autocorrect;
           ^
/datasets/git/help.c:537:24: warning: variable 'aliases' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct cmdnames aliases;
                       ^
/datasets/git/help.c:543:77: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int git_unknown_cmd_config(const char *var, const char *value, void *cb)
                                                                            ^
/datasets/git/help.c:545:14: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        const char *p;
                    ^
                      = NULL
/datasets/git/help.c:545:14: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/help.c:548:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
                            {
/datasets/git/help.c:557:8: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
                        int v = git_config_int(var, value);
                            ^
/datasets/git/help.c:563:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (skip_prefix(var, "alias.", &p))
                                           ^
                                            {
/datasets/git/help.c:564:28: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                add_cmdname(&aliases, p, strlen(p));
                                         ^
/datasets/git/help.c:569:44: warning: parameter name 'p1' is too short, expected at least 3 characters [readability-identifier-length]
static int levenshtein_compare(const void *p1, const void *p2)
                                           ^
/datasets/git/help.c:569:60: warning: parameter name 'p2' is too short, expected at least 3 characters [readability-identifier-length]
static int levenshtein_compare(const void *p1, const void *p2)
                                                           ^
/datasets/git/help.c:571:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const struct cmdname *const *c1 = p1, *const *c2 = p2;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/help.c:571:31: warning: variable name 'c1' is too short, expected at least 3 characters [readability-identifier-length]
        const struct cmdname *const *c1 = p1, *const *c2 = p2;
                                     ^
/datasets/git/help.c:571:48: warning: variable name 'c2' is too short, expected at least 3 characters [readability-identifier-length]
        const struct cmdname *const *c1 = p1, *const *c2 = p2;
                                                      ^
/datasets/git/help.c:572:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *s1 = (*c1)->name, *s2 = (*c2)->name;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/help.c:572:14: warning: variable name 's1' is too short, expected at least 3 characters [readability-identifier-length]
        const char *s1 = (*c1)->name, *s2 = (*c2)->name;
                    ^
/datasets/git/help.c:572:33: warning: variable name 's2' is too short, expected at least 3 characters [readability-identifier-length]
        const char *s1 = (*c1)->name, *s2 = (*c2)->name;
                                       ^
/datasets/git/help.c:573:6: warning: variable name 'l1' is too short, expected at least 3 characters [readability-identifier-length]
        int l1 = (*c1)->len;
            ^
/datasets/git/help.c:573:11: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int l1 = (*c1)->len;
                 ^
/datasets/git/help.c:574:6: warning: variable name 'l2' is too short, expected at least 3 characters [readability-identifier-length]
        int l2 = (*c2)->len;
            ^
/datasets/git/help.c:574:11: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int l2 = (*c2)->len;
                 ^
/datasets/git/help.c:580:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/help.c:580:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/help.c:581:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(cmds->names, cmds->cnt + old->cnt, cmds->alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/help.c:581:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_GROW(cmds->names, cmds->cnt + old->cnt, cmds->alloc);
        ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/help.c:583:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < old->cnt; i++)
        ^
/datasets/git/help.c:583:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'cnt' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < old->cnt; i++)
                    ^
/datasets/git/help.c:583:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < old->cnt; i++)
                                      ^
                                       {
/datasets/git/help.c:585:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(old->names);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/help.c:597:13: warning: function 'help_unknown_cmd' has cognitive complexity of 38 (threshold 25) [readability-function-cognitive-complexity]
const char *help_unknown_cmd(const char *cmd)
            ^
/datasets/git/help.c:612:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((autocorrect == AUTOCORRECT_PROMPT) && (!isatty(0) || !isatty(2)))
        ^
/datasets/git/help.c:612:42: note: +1
        if ((autocorrect == AUTOCORRECT_PROMPT) && (!isatty(0) || !isatty(2)))
                                                ^
/datasets/git/help.c:612:57: note: +1
        if ((autocorrect == AUTOCORRECT_PROMPT) && (!isatty(0) || !isatty(2)))
                                                               ^
/datasets/git/help.c:615:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (autocorrect == AUTOCORRECT_NEVER) {
        ^
/datasets/git/help.c:630:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0, n = 0; i < main_cmds.cnt; i++) {
        ^
/datasets/git/help.c:639:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(candidate, cmd))
                ^
/datasets/git/help.c:643:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (common_cmds[n].name &&
                ^
/datasets/git/help.c:643:30: note: +1
                while (common_cmds[n].name &&
                                           ^
/datasets/git/help.c:646:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (common_cmds[n].name && !cmp) {
                ^
/datasets/git/help.c:646:27: note: +1
                if (common_cmds[n].name && !cmp) {
                                        ^
/datasets/git/help.c:649:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (starts_with(candidate, cmd)) {
                        ^
/datasets/git/help.c:659:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        FREE_AND_NULL(common_cmds);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/help.c:663:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!main_cmds.cnt)
        ^
/datasets/git/help.c:667:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (n = 0; n < main_cmds.cnt && !main_cmds.names[n]->len; n++)
        ^
/datasets/git/help.c:667:32: note: +1
        for (n = 0; n < main_cmds.cnt && !main_cmds.names[n]->len; n++)
                                      ^
/datasets/git/help.c:670:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (main_cmds.cnt <= n) {
        ^
/datasets/git/help.c:673:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/help.c:675:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (best_similarity = main_cmds.names[n++]->len;
                ^
/datasets/git/help.c:676:27: note: +1
                     (n < main_cmds.cnt &&
                                        ^
/datasets/git/help.c:681:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (autocorrect && n == 1 && SIMILAR_ENOUGH(best_similarity)) {
        ^
/datasets/git/help.c:681:28: note: +1
        if (autocorrect && n == 1 && SIMILAR_ENOUGH(best_similarity)) {
                                  ^
/datasets/git/help.c:689:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (autocorrect == AUTOCORRECT_IMMEDIATELY)
                ^
/datasets/git/help.c:694:8: note: +1, nesting level increased to 2
                else if (autocorrect == AUTOCORRECT_PROMPT) {
                     ^
/datasets/git/help.c:700:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!(starts_with(answer, "y") ||
                        ^
/datasets/git/help.c:700:35: note: +1
                        if (!(starts_with(answer, "y") ||
                                                       ^
/datasets/git/help.c:703:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/help.c:715:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (SIMILAR_ENOUGH(best_similarity)) {
        ^
/datasets/git/help.c:721:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < n; i++)
                ^
/datasets/git/help.c:599:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, n, best_similarity = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/help.c:599:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, n, best_similarity = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/help.c:599:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/help.c:599:9: warning: variable 'n' is not initialized [cppcoreguidelines-init-variables]
        int i, n, best_similarity = 0;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/help.c:599:9: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/help.c:600:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct cmdnames main_cmds, other_cmds;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/help.c:601:23: warning: variable 'common_cmds' is not initialized [cppcoreguidelines-init-variables]
        struct cmdname_help *common_cmds;
                             ^
                                         = NULL
/datasets/git/help.c:603:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&main_cmds, 0, sizeof(main_cmds));
        ^~~~~~
/datasets/git/help.c:603:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&main_cmds, 0, sizeof(main_cmds));
        ^~~~~~
/datasets/git/help.c:604:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&other_cmds, 0, sizeof(other_cmds));
        ^~~~~~
/datasets/git/help.c:604:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&other_cmds, 0, sizeof(other_cmds));
        ^~~~~~
/datasets/git/help.c:605:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&aliases, 0, sizeof(aliases));
        ^~~~~~
/datasets/git/help.c:605:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&aliases, 0, sizeof(aliases));
        ^~~~~~
/datasets/git/help.c:612:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((autocorrect == AUTOCORRECT_PROMPT) && (!isatty(0) || !isatty(2)))
                                                                              ^
                                                                               {
/datasets/git/help.c:617:3: warning: function is not thread safe [concurrency-mt-unsafe]
                exit(1);
                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/help.c:624:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        QSORT(main_cmds.names, main_cmds.cnt, cmdname_compare);
        ^
/datasets/git/./git-compat-util.h:1304:56: note: expanded from macro 'QSORT'
#define QSORT(base, n, compar) sane_qsort((base), (n), sizeof(*(base)), compar)
                                                       ^
/datasets/git/help.c:630:21: warning: backward branch (for loop) is ID-dependent due to member reference to 'cnt' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0, n = 0; i < main_cmds.cnt; i++) {
                           ^
/datasets/git/help.c:639:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(candidate, cmd))
                                            ^
                                             {
/datasets/git/help.c:643:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (common_cmds[n].name &&
                ^
/datasets/git/help.c:643:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'cmp' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (common_cmds[n].name &&
                       ^
/datasets/git/help.c:644:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                       (cmp = strcmp(common_cmds[n].name, candidate)) < 0)
                                                                          ^
                                                                           {
/datasets/git/help.c:659:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(common_cmds);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/help.c:661:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        QSORT(main_cmds.names, main_cmds.cnt, levenshtein_compare);
        ^
/datasets/git/./git-compat-util.h:1304:56: note: expanded from macro 'QSORT'
#define QSORT(base, n, compar) sane_qsort((base), (n), sizeof(*(base)), compar)
                                                       ^
/datasets/git/help.c:663:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!main_cmds.cnt)
                           ^
                            {
/datasets/git/help.c:667:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (n = 0; n < main_cmds.cnt && !main_cmds.names[n]->len; n++)
        ^
/datasets/git/help.c:667:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'cnt' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (n = 0; n < main_cmds.cnt && !main_cmds.names[n]->len; n++)
                    ^
/datasets/git/help.c:667:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (n = 0; n < main_cmds.cnt && !main_cmds.names[n]->len; n++)
                                                                       ^
                                                                        {
/datasets/git/help.c:675:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (best_similarity = main_cmds.names[n++]->len;
                ^
/datasets/git/help.c:675:26: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                for (best_similarity = main_cmds.names[n++]->len;
                                       ^
/datasets/git/help.c:676:8: warning: backward branch (for loop) is ID-dependent due to variable reference to 'best_similarity' and may cause performance degradation [altera-id-dependent-backward-branch]
                     (n < main_cmds.cnt &&
                     ^
/datasets/git/help.c:678:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                     n++)
                         ^
                          {
/datasets/git/help.c:689:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (autocorrect == AUTOCORRECT_IMMEDIATELY)
                                                           ^
                                                            {
/datasets/git/help.c:695:10: warning: variable 'answer' is not initialized [cppcoreguidelines-init-variables]
                        char *answer;
                              ^
                                     = NULL
/datasets/git/help.c:698:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        answer = git_prompt(msg.buf, PROMPT_ECHO);
                                                     ^
/datasets/git/./prompt.h:5:25: note: expanded from macro 'PROMPT_ECHO'
#define PROMPT_ECHO    (1<<1)
                        ^
/datasets/git/help.c:701:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                              starts_with(answer, "Y")))
                                                        ^
                                                         {
/datasets/git/help.c:702:5: warning: function is not thread safe [concurrency-mt-unsafe]
                                exit(1);
                                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/help.c:707:27: warning: 10.0 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                   (float)autocorrect/10.0, assumed);
                                                      ^
/datasets/git/help.c:708:33: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        sleep_millisec(autocorrect * 100);
                                                     ^
/datasets/git/help.c:721:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < n; i++)
                ^
/datasets/git/help.c:721:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < n; i++)
                                       ^
                                        {
/datasets/git/help.c:722:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, "\t%s\n", main_cmds.names[i]->name);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/help.c:722:4: note: cast the expression to void to silence this warning
/datasets/git/help.c:725:2: warning: function is not thread safe [concurrency-mt-unsafe]
        exit(1);
        ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/help.c:740:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (git_built_from_commit_string[0])
                                                    ^
                                                     {
/datasets/git/help.c:743:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/help.c:750:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fsmonitor_ipc__is_supported())
                                                  ^
                                                   {
/datasets/git/help.c:764:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                OPT_BOOL(0, "build-options", &build_options,
                ^
/datasets/git/./parse-options.h:183:37: note: expanded from macro 'OPT_BOOL'
#define OPT_BOOL(s, l, v, h)        OPT_BOOL_F(s, l, v, h, 0)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:167:37: note: expanded from macro 'OPT_BOOL_F'
#define OPT_BOOL_F(s, l, v, h, f)   OPT_SET_INT_F(s, l, v, h, 1, f)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./parse-options.h:166:13: note: expanded from macro 'OPT_SET_INT_F'
                                          (h), PARSE_OPT_NOARG | (f), NULL, (i) }
                                               ^~~~~~~~~~~~~~~
/datasets/git/help.c:769:2: warning: Value stored to 'argc' is never read [clang-analyzer-deadcode.DeadStores]
        argc = parse_options(argc, argv, prefix, options, usage, 0);
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/help.c:769:2: note: Value stored to 'argc' is never read
        argc = parse_options(argc, argv, prefix, options, usage, 0);
        ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/help.c:779:8: warning: accessing fields in struct 'similar_ref_cb' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct similar_ref_cb {
       ^
/datasets/git/help.c:779:8: note: use "__attribute__((aligned(16)))" to align struct 'similar_ref_cb' to 16 bytes
/datasets/git/help.c:788:25: warning: variable name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
        struct similar_ref_cb *cb = (struct similar_ref_cb *)(cb_data);
                               ^
/datasets/git/help.c:793:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !strcmp(branch, cb->base_ref))
                                          ^
                                           {
/datasets/git/help.c:813:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/help.c:813:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/help.c:823:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < suggested_refs.nr; i++)
                ^
/datasets/git/help.c:823:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'suggested_refs' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < suggested_refs.nr; i++)
                            ^
/datasets/git/help.c:823:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < suggested_refs.nr; i++)
                                                       ^
                                                        {
/datasets/git/help.c:824:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, "\t%s\n", suggested_refs.items[i].string);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/help.c:824:4: note: cast the expression to void to silence this warning
/datasets/git/help.c:828:2: warning: function is not thread safe [concurrency-mt-unsafe]
        exit(1);
        ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
hex.c:40:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; len; len--, hex += 2) {
        ^
/datasets/git/hex.c:41:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                unsigned int val = (hexval(hex[0]) << 4) | hexval(hex[1]);
                                    ^                 ~
/datasets/git/hex.c:43:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (val & ~0xff)
                    ^     ~~~~~
/datasets/git/hex.c:43:13: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                if (val & ~0xff)
                          ^~~~~
/datasets/git/hex.c:43:14: warning: 0xff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (val & ~0xff)
                           ^
/datasets/git/hex.c:43:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (val & ~0xff)
                                ^
                                 {
/datasets/git/hex.c:53:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/hex.c:53:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/hex.c:54:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < algop->rawsz; i++) {
        ^
/datasets/git/hex.c:56:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (val < 0)
                            ^
                             {
/datasets/git/hex.c:73:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ret)
                 ^
                  {
/datasets/git/hex.c:84:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/hex.c:84:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/hex.c:85:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = GIT_HASH_NALGOS - 1; i > 0; i--) {
        ^
/datasets/git/hex.c:86:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!get_oid_hex_algop(hex, oid, &hash_algos[i]))
                                                                 ^
                                                                  {
/datasets/git/hex.c:102:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ret)
                 ^
                  {
/datasets/git/hex.c:110:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/hex.c:125:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/hex.c:125:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/hex.c:131:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (algop == &hash_algos[0])
                                    ^
                                     {
/datasets/git/hex.c:134:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < algop->rawsz; i++) {
        ^
/datasets/git/hex.c:134:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'algop' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < algop->rawsz; i++) {
                    ^
/datasets/git/hex.c:136:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                *buf++ = hex[val >> 4];
                             ^      ~
/datasets/git/hex.c:137:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                *buf++ = hex[val & 0xf];
                             ^     ~~~
/datasets/git/hex.c:137:22: warning: 0xf is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                *buf++ = hex[val & 0xf];
                                   ^
/datasets/git/hex.c:153:10: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        bufno = (bufno + 1) % ARRAY_SIZE(hexbuffer);
                ^
/datasets/git/hook.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "hook.h"
^        ~~~~~~~~
         "config.h"
/datasets/git/hook.c:45:49: warning: parameter name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
static int pick_next_hook(struct child_process *cp,
                                                ^
/datasets/git/hook.c:46:21: warning: parameter 'out' is unused [misc-unused-parameters]
                          struct strbuf *out,
                                         ^
/datasets/git/hook.c:48:13: warning: parameter 'pp_task_cb' is unused [misc-unused-parameters]
                          void **pp_task_cb)
                                 ^
/datasets/git/hook.c:53:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!hook_path)
                       ^
                        {
/datasets/git/hook.c:75:48: warning: parameter 'out' is unused [misc-unused-parameters]
static int notify_start_failure(struct strbuf *out,
                                               ^
/datasets/git/hook.c:76:5: warning: 2 adjacent parameters of 'notify_start_failure' of similar type ('void *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                void *pp_cb,
                                ^~~~~~~~~~~~
/datasets/git/hook.c:76:11: note: the first parameter in the range is 'pp_cb'
                                void *pp_cb,
                                      ^~~~~
/datasets/git/hook.c:77:11: note: the last parameter in the range is 'pp_task_cp'
                                void *pp_task_cp)
                                      ^~~~~~~~~~
/datasets/git/hook.c:77:11: warning: parameter 'pp_task_cp' is unused [misc-unused-parameters]
                                void *pp_task_cp)
                                      ^
/datasets/git/hook.c:81:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        hook_cb->rc |= 1;
        ^~~~~~~~~~~
/datasets/git/hook.c:87:20: warning: parameter 'out' is unused [misc-unused-parameters]
                                struct strbuf *out,
                                               ^
/datasets/git/hook.c:88:5: warning: 2 adjacent parameters of 'notify_hook_finished' of similar type ('void *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                void *pp_cb,
                                ^~~~~~~~~~~~
/datasets/git/hook.c:88:11: note: the first parameter in the range is 'pp_cb'
                                void *pp_cb,
                                      ^~~~~
/datasets/git/hook.c:89:11: note: the last parameter in the range is 'pp_task_cb'
                                void *pp_task_cb)
                                      ^~~~~~~~~~
/datasets/git/hook.c:89:11: warning: parameter 'pp_task_cb' is unused [misc-unused-parameters]
                                void *pp_task_cb)
                                      ^
/datasets/git/hook.c:94:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        hook_cb->rc |= result;
        ^~~~~~~~~~~
/datasets/git/hook.c:96:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->invoked_hook)
                              ^
                               {
/datasets/git/hook.c:132:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!options)
                     ^
                      {
/datasets/git/hook.c:135:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (options->invoked_hook)
                                  ^
                                   {
/datasets/git/hook.c:138:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!hook_path && !options->error_if_missing)
                                                     ^
                                                      {
/datasets/git/hook.c:170:10: warning: variable name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
        va_list ap;
                ^
/datasets/git/hook.c:171:14: warning: variable 'arg' is not initialized [cppcoreguidelines-init-variables]
        const char *arg;
                    ^
                        = NULL
/datasets/git/hook.c:174:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((arg = va_arg(ap, const char *)))
        ^
/datasets/git/hook.c:174:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'arg' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((arg = va_arg(ap, const char *)))
               ^
/datasets/git/hook.c:174:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while ((arg = va_arg(ap, const char *)))
                                                ^
                                                 {
ident.c:13:22: warning: variable 'git_default_name' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct strbuf git_default_name = STRBUF_INIT;
                     ^
ident.c:13:22: warning: initializing non-local variable with non-const expression depending on uninitialized non-local variable 'strbuf_slopbuf' [cppcoreguidelines-interfaces-global-init]
ident.c:14:22: warning: variable 'git_default_email' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct strbuf git_default_email = STRBUF_INIT;
                     ^
ident.c:14:22: warning: initializing non-local variable with non-const expression depending on uninitialized non-local variable 'strbuf_slopbuf' [cppcoreguidelines-interfaces-global-init]
ident.c:15:22: warning: variable 'git_default_date' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct strbuf git_default_date = STRBUF_INIT;
                     ^
ident.c:15:22: warning: initializing non-local variable with non-const expression depending on uninitialized non-local variable 'strbuf_slopbuf' [cppcoreguidelines-interfaces-global-init]
ident.c:16:22: warning: variable 'git_author_name' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct strbuf git_author_name = STRBUF_INIT;
                     ^
ident.c:16:22: warning: initializing non-local variable with non-const expression depending on uninitialized non-local variable 'strbuf_slopbuf' [cppcoreguidelines-interfaces-global-init]
ident.c:17:22: warning: variable 'git_author_email' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct strbuf git_author_email = STRBUF_INIT;
                     ^
ident.c:17:22: warning: initializing non-local variable with non-const expression depending on uninitialized non-local variable 'strbuf_slopbuf' [cppcoreguidelines-interfaces-global-init]
ident.c:18:22: warning: variable 'git_committer_name' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct strbuf git_committer_name = STRBUF_INIT;
                     ^
ident.c:18:22: warning: initializing non-local variable with non-const expression depending on uninitialized non-local variable 'strbuf_slopbuf' [cppcoreguidelines-interfaces-global-init]
ident.c:19:22: warning: variable 'git_committer_email' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct strbuf git_committer_email = STRBUF_INIT;
                     ^
ident.c:19:22: warning: initializing non-local variable with non-const expression depending on uninitialized non-local variable 'strbuf_slopbuf' [cppcoreguidelines-interfaces-global-init]
ident.c:20:12: warning: variable 'default_email_is_bogus' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int default_email_is_bogus;
           ^
ident.c:21:12: warning: variable 'default_name_is_bogus' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int default_name_is_bogus;
           ^
ident.c:23:12: warning: variable 'ident_use_config_only' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int ident_use_config_only;
           ^
ident.c:28:12: warning: variable 'committer_ident_explicitly_given' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int committer_ident_explicitly_given;
           ^
ident.c:29:12: warning: variable 'author_ident_explicitly_given' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int author_ident_explicitly_given;
           ^
ident.c:30:12: warning: variable 'ident_config_given' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int ident_config_given;
           ^
/datasets/git/ident.c:40:17: warning: variable 'pw' is not initialized [cppcoreguidelines-init-variables]
        struct passwd *pw;
                       ^
                          = NULL
/datasets/git/ident.c:40:17: warning: variable name 'pw' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ident.c:43:7: warning: function is not thread safe [concurrency-mt-unsafe]
        pw = getpwuid(getuid());
             ^
/datasets/git/ident.c:51:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_bogus)
                             ^
                              {
/datasets/git/ident.c:57:45: warning: parameter name 'w' is too short, expected at least 3 characters [readability-identifier-length]
static void copy_gecos(const struct passwd *w, struct strbuf *name)
                                            ^
/datasets/git/ident.c:59:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        char *src;
        ^
/datasets/git/ident.c:59:8: warning: variable 'src' is not initialized [cppcoreguidelines-init-variables]
        char *src;
              ^
                  = NULL
/datasets/git/ident.c:65:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (src = get_gecos(w); *src && *src != ','; src++) {
        ^
/datasets/git/ident.c:65:27: warning: backward branch (for loop) is ID-dependent due to variable reference to 'src' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (src = get_gecos(w); *src && *src != ','; src++) {
                                 ^
/datasets/git/ident.c:66:7: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
                int ch = *src;
                    ^
/datasets/git/ident.c:66:12: warning: 'signed char' to 'int' conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse,cert-str34-c]
                int ch = *src;
                         ^
/datasets/git/ident.c:67:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ch != '&')
                              ^
                               {
/datasets/git/ident.c:79:8: warning: variable 'mailname' is not initialized [cppcoreguidelines-init-variables]
        FILE *mailname;
              ^
                       = NULL
/datasets/git/ident.c:83:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!mailname)
                      ^
                       {
/datasets/git/ident.c:87:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ferror(mailname))
                                     ^
                                      {
/datasets/git/ident.c:90:3: warning: the value returned by this function should be used [cert-err33-c]
                fclose(mailname);
                ^~~~~~~~~~~~~~~~
/datasets/git/ident.c:90:3: note: cast the expression to void to silence this warning
/datasets/git/ident.c:96:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(mailname);
        ^~~~~~~~~~~~~~~~
/datasets/git/ident.c:96:2: note: cast the expression to void to silence this warning
/datasets/git/ident.c:105:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct addrinfo hints, *ai;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ident.c:105:26: warning: variable 'ai' is not initialized [cppcoreguidelines-init-variables]
        struct addrinfo hints, *ai;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ident.c:105:26: warning: variable name 'ai' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ident.c:106:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset (&hints, '\0', sizeof (hints));
        ^~~~~~
/datasets/git/ident.c:106:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset (&hints, '\0', sizeof (hints));
        ^~~~~~
/datasets/git/ident.c:136:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strchr(buf, '.'))
                             ^
                              {
/datasets/git/ident.c:144:45: warning: parameter name 'pw' is too short, expected at least 3 characters [readability-identifier-length]
static void copy_email(const struct passwd *pw, struct strbuf *email,
                                            ^
/datasets/git/ident.c:154:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!add_mailname_host(email))
                                      ^
                                       {
/datasets/git/ident.c:161:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(ident_config_given & IDENT_NAME_GIVEN) && !git_default_name.len) {
              ^~~~~~~~~~~~~~~~~~
/datasets/git/ident.c:170:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(ident_config_given & IDENT_MAIL_GIVEN) && !git_default_email.len) {
              ^~~~~~~~~~~~~~~~~~
/datasets/git/ident.c:171:23: warning: function is not thread safe [concurrency-mt-unsafe]
                const char *email = getenv("EMAIL");
                                    ^
/datasets/git/ident.c:175:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        committer_ident_explicitly_given |= IDENT_MAIL_GIVEN;
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ident.c:176:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        author_ident_explicitly_given |= IDENT_MAIL_GIVEN;
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ident.c:177:15: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                } else if ((email = query_user_email()) && email[0]) {
                            ^
/datasets/git/ident.c:177:15: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/ident.c:177:15: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/ident.c:180:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/ident.c:190:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!git_default_date.len)
                                  ^
                                   {
/datasets/git/ident.c:200:31: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static int crud(unsigned char c)
                              ^
/datasets/git/ident.c:202:15: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        return  c <= 32  ||
                     ^
/datasets/git/ident.c:216:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; *str; str++) {
        ^
/datasets/git/ident.c:217:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!crud(*str))
                                ^
                                 {
/datasets/git/ident.c:227:55: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static void strbuf_addstr_without_crud(struct strbuf *sb, const char *src)
                                                      ^
/datasets/git/ident.c:229:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t i, len;
        ^~~~~~~~~~~~~~
/datasets/git/ident.c:230:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        unsigned char c;
        ^
/datasets/git/ident.c:229:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i, len;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ident.c:229:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ident.c:229:12: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        size_t i, len;
                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ident.c:230:16: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        unsigned char c;
                      ^
                        = 0
/datasets/git/ident.c:230:16: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ident.c:233:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((c = *src) != 0) {
        ^
/datasets/git/ident.c:229:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        size_t i, len;
        ^
/datasets/git/ident.c:233:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'c' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((c = *src) != 0) {
               ^
/datasets/git/ident.c:234:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!crud(c))
                             ^
                              {
/datasets/git/ident.c:241:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (len > 0) {
        ^
/datasets/git/ident.c:229:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        size_t i, len;
        ^
/datasets/git/ident.c:241:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (len > 0) {
               ^
/datasets/git/ident.c:243:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!crud(c))
                             ^
                              {
/datasets/git/ident.c:255:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < len; i++) {
        ^
/datasets/git/ident.c:255:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < len; i++) {
                    ^
/datasets/git/ident.c:257:3: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
                switch (c) {
                ^
/datasets/git/ident.c:261:24: warning: narrowing conversion from 'unsigned char' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                sb->buf[sb->len++] = c;
                                     ^
/datasets/git/ident.c:275:14: warning: variable 'cp' is not initialized [cppcoreguidelines-init-variables]
        const char *cp;
                    ^
                       = NULL
/datasets/git/ident.c:275:14: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ident.c:276:9: warning: variable 'span' is not initialized [cppcoreguidelines-init-variables]
        size_t span;
               ^
                    = 0
/datasets/git/ident.c:279:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(split, 0, sizeof(*split));
        ^~~~~~
/datasets/git/ident.c:279:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(split, 0, sizeof(*split));
        ^~~~~~
/datasets/git/ident.c:282:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cp = line; *cp && cp < line + len; cp++)
        ^
/datasets/git/ident.c:282:18: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cp' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (cp = line; *cp && cp < line + len; cp++)
                        ^
/datasets/git/ident.c:282:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (cp = line; *cp && cp < line + len; cp++)
                                                     ^
                                                      {
/datasets/git/ident.c:287:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!split->mail_begin)
                               ^
                                {
/datasets/git/ident.c:290:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cp = split->mail_begin - 2; line <= cp; cp--)
        ^
/datasets/git/ident.c:290:35: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cp' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (cp = split->mail_begin - 2; line <= cp; cp--)
                                         ^
/datasets/git/ident.c:290:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (cp = split->mail_begin - 2; line <= cp; cp--)
                                                          ^
                                                           {
/datasets/git/ident.c:291:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!isspace(*cp)) {
                     ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/ident.c:300:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cp = split->mail_begin; cp < line + len; cp++)
        ^
/datasets/git/ident.c:300:31: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cp' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (cp = split->mail_begin; cp < line + len; cp++)
                                     ^
/datasets/git/ident.c:300:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (cp = split->mail_begin; cp < line + len; cp++)
                                                           ^
                                                            {
/datasets/git/ident.c:305:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!split->mail_end)
                             ^
                              {
/datasets/git/ident.c:319:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cp = line + len - 1; *cp != '>'; cp--)
        ^
/datasets/git/ident.c:319:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cp' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (cp = line + len - 1; *cp != '>'; cp--)
                                  ^
/datasets/git/ident.c:319:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (cp = line + len - 1; *cp != '>'; cp--)
                                                   ^
                                                    {
/datasets/git/ident.c:322:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cp = cp + 1; cp < line + len && isspace(*cp); cp++)
        ^
/datasets/git/ident.c:322:20: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cp' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (cp = cp + 1; cp < line + len && isspace(*cp); cp++)
                          ^
/datasets/git/ident.c:322:39: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        for (cp = cp + 1; cp < line + len && isspace(*cp); cp++)
                                             ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/ident.c:322:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (cp = cp + 1; cp < line + len && isspace(*cp); cp++)
                                                                ^
                                                                 {
/datasets/git/ident.c:324:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (line + len <= cp)
                             ^
                              {
/datasets/git/ident.c:328:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!span)
                  ^
                   {
/datasets/git/ident.c:331:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cp = split->date_end; cp < line + len && isspace(*cp); cp++)
        ^
/datasets/git/ident.c:331:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cp' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (cp = split->date_end; cp < line + len && isspace(*cp); cp++)
                                   ^
/datasets/git/ident.c:331:48: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        for (cp = split->date_end; cp < line + len && isspace(*cp); cp++)
                                                      ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/ident.c:331:67: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (cp = split->date_end; cp < line + len && isspace(*cp); cp++)
                                                                         ^
                                                                          {
/datasets/git/ident.c:333:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (line + len <= cp || (*cp != '+' && *cp != '-'))
                                                           ^
                                                            {
/datasets/git/ident.c:337:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!span)
                  ^
                   {
/datasets/git/ident.c:357:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t namelen, maillen;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ident.c:357:9: warning: variable 'namelen' is not initialized [cppcoreguidelines-init-variables]
        size_t namelen, maillen;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ident.c:357:18: warning: variable 'maillen' is not initialized [cppcoreguidelines-init-variables]
        size_t namelen, maillen;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ident.c:358:14: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
        const char *name;
                    ^
                         = NULL
/datasets/git/ident.c:359:14: warning: variable 'mail' is not initialized [cppcoreguidelines-init-variables]
        const char *mail;
                    ^
                         = NULL
/datasets/git/ident.c:362:39: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        if (split_ident_line(&ident, person, len))
                                             ^
/datasets/git/ident.c:362:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (split_ident_line(&ident, person, len))
                                                  ^
                                                   {
/datasets/git/ident.c:372:10: warning: variable 'newlen' is not initialized [cppcoreguidelines-init-variables]
                size_t newlen;
                       ^
                              = 0
/datasets/git/ident.c:384:10: warning: narrowing conversion from 'unsigned long' to signed type 'ssize_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                return newlen - (ident.mail_end - ident.name_begin);
                       ^
/datasets/git/ident.c:395:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!mailmap)
                     ^
                      {
/datasets/git/ident.c:399:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                const char *person, *line;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ident.c:399:15: warning: variable 'person' is not initialized [cppcoreguidelines-init-variables]
                const char *person, *line;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ident.c:399:24: warning: variable 'line' is not initialized [cppcoreguidelines-init-variables]
                const char *person, *line;
                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ident.c:400:10: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                size_t i;
                       ^
                         = 0
/datasets/git/ident.c:400:10: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ident.c:404:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!*line || *line == '\n')
                                            ^
                                             {
/datasets/git/ident.c:407:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; header[i]; i++)
                ^
/datasets/git/ident.c:407:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; header[i]; i++)
                                           ^
                                            {
/datasets/git/ident.c:418:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (buf->buf[buf_offset] == '\n')
                                                         ^
                                                          {
/datasets/git/ident.c:428:3: warning: the value returned by this function should be used [cert-err33-c]
                fputs(_("Author identity unknown\n"), stderr);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ident.c:428:3: note: cast the expression to void to silence this warning
/datasets/git/ident.c:431:3: warning: the value returned by this function should be used [cert-err33-c]
                fputs(_("Committer identity unknown\n"), stderr);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ident.c:431:3: note: cast the expression to void to silence this warning
/datasets/git/ident.c:437:2: warning: the value returned by this function should be used [cert-err33-c]
        fputs(_("\n"
        ^~~~~~~~~~~~
/datasets/git/ident.c:437:2: note: cast the expression to void to silence this warning
/datasets/git/ident.c:450:13: warning: function 'fmt_ident' has cognitive complexity of 54 (threshold 25) [readability-function-cognitive-complexity]
const char *fmt_ident(const char *name, const char *email,
            ^
/datasets/git/ident.c:462:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!email) {
        ^
/datasets/git/ident.c:463:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (whose_ident == WANT_AUTHOR_IDENT && git_author_email.len)
                ^
/datasets/git/ident.c:463:40: note: +1
                if (whose_ident == WANT_AUTHOR_IDENT && git_author_email.len)
                                                     ^
/datasets/git/ident.c:465:8: note: +1, nesting level increased to 2
                else if (whose_ident == WANT_COMMITTER_IDENT && git_committer_email.len)
                     ^
/datasets/git/ident.c:465:48: note: +1
                else if (whose_ident == WANT_COMMITTER_IDENT && git_committer_email.len)
                                                             ^
/datasets/git/ident.c:468:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!email) {
        ^
/datasets/git/ident.c:469:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (strict && ident_use_config_only
                ^
/datasets/git/ident.c:470:7: note: +1
                    && !(ident_config_given & IDENT_MAIL_GIVEN)) {
                    ^
/datasets/git/ident.c:475:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (strict && default_email_is_bogus) {
                ^
/datasets/git/ident.c:475:14: note: +1
                if (strict && default_email_is_bogus) {
                           ^
/datasets/git/ident.c:481:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (want_name) {
        ^
/datasets/git/ident.c:483:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!name) {
                ^
/datasets/git/ident.c:484:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (whose_ident == WANT_AUTHOR_IDENT && git_author_name.len)
                        ^
/datasets/git/ident.c:484:41: note: +1
                        if (whose_ident == WANT_AUTHOR_IDENT && git_author_name.len)
                                                             ^
/datasets/git/ident.c:486:9: note: +1, nesting level increased to 3
                        else if (whose_ident == WANT_COMMITTER_IDENT &&
                             ^
/datasets/git/ident.c:486:49: note: +1
                        else if (whose_ident == WANT_COMMITTER_IDENT &&
                                                                     ^
/datasets/git/ident.c:490:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!name) {
                ^
/datasets/git/ident.c:491:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (strict && ident_use_config_only
                        ^
/datasets/git/ident.c:492:8: note: +1
                            && !(ident_config_given & IDENT_NAME_GIVEN)) {
                            ^
/datasets/git/ident.c:498:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (strict && default_name_is_bogus) {
                        ^
/datasets/git/ident.c:498:15: note: +1
                        if (strict && default_name_is_bogus) {
                                   ^
/datasets/git/ident.c:503:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!*name) {
                ^
/datasets/git/ident.c:505:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (strict) {
                        ^
/datasets/git/ident.c:506:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (using_default)
                                ^
/datasets/git/ident.c:513:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (strict && !has_non_crud(name))
                ^
/datasets/git/ident.c:513:14: note: +1
                if (strict && !has_non_crud(name))
                           ^
/datasets/git/ident.c:518:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (want_name) {
        ^
/datasets/git/ident.c:523:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (want_name)
        ^
/datasets/git/ident.c:525:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (want_date) {
        ^
/datasets/git/ident.c:527:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (date_str && date_str[0]) {
                ^
/datasets/git/ident.c:527:16: note: +1
                if (date_str && date_str[0]) {
                             ^
/datasets/git/ident.c:528:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (parse_date(date_str, ident) < 0)
                        ^
/datasets/git/ident.c:531:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/ident.c:455:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int strict = (flag & IDENT_STRICT);
                      ^~~~
/datasets/git/ident.c:456:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int want_date = !(flag & IDENT_NO_DATE);
                          ^~~~
/datasets/git/ident.c:457:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int want_name = !(flag & IDENT_NO_NAME);
                          ^~~~
/datasets/git/ident.c:460:10: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        index = (index + 1) % ARRAY_SIZE(ident_pool);
                ^
/datasets/git/ident.c:463:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (whose_ident == WANT_AUTHOR_IDENT && git_author_email.len)
                                                                             ^
                                                                              {
/datasets/git/ident.c:465:75: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (whose_ident == WANT_COMMITTER_IDENT && git_committer_email.len)
                                                                                        ^
                                                                                         {
/datasets/git/ident.c:470:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    && !(ident_config_given & IDENT_MAIL_GIVEN)) {
                         ^~~~~~~~~~~~~~~~~~
/datasets/git/ident.c:484:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (whose_ident == WANT_AUTHOR_IDENT && git_author_name.len)
                                                                                    ^
                                                                                     {
/datasets/git/ident.c:487:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        git_committer_name.len)
                                                               ^
                                                                {
/datasets/git/ident.c:492:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            && !(ident_config_given & IDENT_NAME_GIVEN)) {
                                 ^~~~~~~~~~~~~~~~~~
/datasets/git/ident.c:504:19: warning: variable 'pw' is not initialized [cppcoreguidelines-init-variables]
                        struct passwd *pw;
                                       ^
                                          = NULL
/datasets/git/ident.c:504:19: warning: variable name 'pw' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ident.c:506:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (using_default)
                                                  ^
                                                   {
/datasets/git/ident.c:513:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strict && !has_non_crud(name))
                                                  ^
                                                   {
/datasets/git/ident.c:523:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (want_name)
                      ^
                       {
/datasets/git/ident.c:528:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (parse_date(date_str, ident) < 0)
                                                            ^
                                                             {
/datasets/git/ident.c:531:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/ident.c:543:2: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
        switch (whose_ident) {
        ^
/datasets/git/ident.c:547:10: warning: function is not thread safe [concurrency-mt-unsafe]
                name = getenv("GIT_AUTHOR_NAME");
                       ^
/datasets/git/ident.c:548:11: warning: function is not thread safe [concurrency-mt-unsafe]
                email = getenv("GIT_AUTHOR_EMAIL");
                        ^
/datasets/git/ident.c:551:10: warning: function is not thread safe [concurrency-mt-unsafe]
                name = getenv("GIT_COMMITTER_NAME");
                       ^
/datasets/git/ident.c:552:11: warning: function is not thread safe [concurrency-mt-unsafe]
                email = getenv("GIT_COMMITTER_EMAIL");
                        ^
/datasets/git/ident.c:556:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        IDENT_STRICT | IDENT_NO_DATE);
                        ^
/datasets/git/./refs/../cache.h:1629:29: note: expanded from macro 'IDENT_STRICT'
#define IDENT_STRICT           1
                               ^
/datasets/git/ident.c:561:6: warning: function is not thread safe [concurrency-mt-unsafe]
        if (getenv("GIT_AUTHOR_NAME"))
            ^
/datasets/git/ident.c:561:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (getenv("GIT_AUTHOR_NAME"))
                                      ^
                                       {
/datasets/git/ident.c:562:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                author_ident_explicitly_given |= IDENT_NAME_GIVEN;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ident.c:563:6: warning: function is not thread safe [concurrency-mt-unsafe]
        if (getenv("GIT_AUTHOR_EMAIL"))
            ^
/datasets/git/ident.c:563:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (getenv("GIT_AUTHOR_EMAIL"))
                                       ^
                                        {
/datasets/git/ident.c:564:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                author_ident_explicitly_given |= IDENT_MAIL_GIVEN;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ident.c:565:19: warning: function is not thread safe [concurrency-mt-unsafe]
        return fmt_ident(getenv("GIT_AUTHOR_NAME"),
                         ^
/datasets/git/ident.c:566:5: warning: function is not thread safe [concurrency-mt-unsafe]
                         getenv("GIT_AUTHOR_EMAIL"),
                         ^
/datasets/git/ident.c:568:5: warning: function is not thread safe [concurrency-mt-unsafe]
                         getenv("GIT_AUTHOR_DATE"),
                         ^
/datasets/git/ident.c:574:6: warning: function is not thread safe [concurrency-mt-unsafe]
        if (getenv("GIT_COMMITTER_NAME"))
            ^
/datasets/git/ident.c:574:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (getenv("GIT_COMMITTER_NAME"))
                                         ^
                                          {
/datasets/git/ident.c:575:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                committer_ident_explicitly_given |= IDENT_NAME_GIVEN;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ident.c:576:6: warning: function is not thread safe [concurrency-mt-unsafe]
        if (getenv("GIT_COMMITTER_EMAIL"))
            ^
/datasets/git/ident.c:576:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (getenv("GIT_COMMITTER_EMAIL"))
                                          ^
                                           {
/datasets/git/ident.c:577:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                committer_ident_explicitly_given |= IDENT_MAIL_GIVEN;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ident.c:578:19: warning: function is not thread safe [concurrency-mt-unsafe]
        return fmt_ident(getenv("GIT_COMMITTER_NAME"),
                         ^
/datasets/git/ident.c:579:5: warning: function is not thread safe [concurrency-mt-unsafe]
                         getenv("GIT_COMMITTER_EMAIL"),
                         ^
/datasets/git/ident.c:581:5: warning: function is not thread safe [concurrency-mt-unsafe]
                         getenv("GIT_COMMITTER_DATE"),
                         ^
/datasets/git/ident.c:588:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return (user_ident_explicitly_given & IDENT_MAIL_GIVEN);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ident.c:604:22: warning: 2 adjacent parameters of 'set_ident' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int set_ident(const char *var, const char *value)
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ident.c:604:34: note: the first parameter in the range is 'var'
static int set_ident(const char *var, const char *value)
                                 ^~~
/datasets/git/ident.c:604:51: note: the last parameter in the range is 'value'
static int set_ident(const char *var, const char *value)
                                                  ^~~~~
/datasets/git/ident.c:607:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
                            {
/datasets/git/ident.c:611:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                author_ident_explicitly_given |= IDENT_NAME_GIVEN;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ident.c:612:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ident_config_given |= IDENT_NAME_GIVEN;
                ^~~~~~~~~~~~~~~~~~
/datasets/git/ident.c:617:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
                            {
/datasets/git/ident.c:621:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                author_ident_explicitly_given |= IDENT_MAIL_GIVEN;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ident.c:622:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ident_config_given |= IDENT_MAIL_GIVEN;
                ^~~~~~~~~~~~~~~~~~
/datasets/git/ident.c:627:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
                            {
/datasets/git/ident.c:631:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                committer_ident_explicitly_given |= IDENT_NAME_GIVEN;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ident.c:632:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ident_config_given |= IDENT_NAME_GIVEN;
                ^~~~~~~~~~~~~~~~~~
/datasets/git/ident.c:637:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
                            {
/datasets/git/ident.c:641:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                committer_ident_explicitly_given |= IDENT_MAIL_GIVEN;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ident.c:642:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ident_config_given |= IDENT_MAIL_GIVEN;
                ^~~~~~~~~~~~~~~~~~
/datasets/git/ident.c:647:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
                            {
/datasets/git/ident.c:651:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                committer_ident_explicitly_given |= IDENT_NAME_GIVEN;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ident.c:652:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                author_ident_explicitly_given |= IDENT_NAME_GIVEN;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ident.c:653:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ident_config_given |= IDENT_NAME_GIVEN;
                ^~~~~~~~~~~~~~~~~~
/datasets/git/ident.c:658:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
                            {
/datasets/git/ident.c:662:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                committer_ident_explicitly_given |= IDENT_MAIL_GIVEN;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ident.c:663:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                author_ident_explicitly_given |= IDENT_MAIL_GIVEN;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ident.c:664:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ident_config_given |= IDENT_MAIL_GIVEN;
                ^~~~~~~~~~~~~~~~~~
/datasets/git/ident.c:683:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((*given & bit) || getenv(key))
             ^~~~~~
/datasets/git/ident.c:683:24: warning: function is not thread safe [concurrency-mt-unsafe]
        if ((*given & bit) || getenv(key))
                              ^
/datasets/git/ident.c:683:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((*given & bit) || getenv(key))
                                          ^
                                           {
/datasets/git/ident.c:685:2: warning: function is not thread safe [concurrency-mt-unsafe]
        setenv(key, value, 0);
        ^
/datasets/git/ident.c:686:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        *given |= bit;
        ^~~~~~
/datasets/git/ident.c:701:41: warning: 2 adjacent parameters of 'buf_cmp' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int buf_cmp(const char *a_begin, const char *a_end,
                                        ^~~~~~~~~~~~~~~~~~
/datasets/git/ident.c:701:53: note: the first parameter in the range is 'a_end'
static int buf_cmp(const char *a_begin, const char *a_end,
                                                    ^~~~~
/datasets/git/ident.c:702:18: note: the last parameter in the range is 'b_begin'
                   const char *b_begin, const char *b_end)
                               ^~~~~~~
/datasets/git/ident.c:704:14: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int a_len = a_end - a_begin;
                    ^
/datasets/git/ident.c:705:14: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int b_len = b_end - b_begin;
                    ^
/datasets/git/ident.c:707:6: warning: variable 'cmp' is not initialized [cppcoreguidelines-init-variables]
        int cmp;
            ^
                = 0
/datasets/git/ident.c:710:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cmp)
                ^
                 {
/datasets/git/ident.c:716:41: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
int ident_cmp(const struct ident_split *a,
                                        ^
/datasets/git/ident.c:717:34: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
              const struct ident_split *b)
                                        ^
/datasets/git/ident.c:719:6: warning: variable 'cmp' is not initialized [cppcoreguidelines-init-variables]
        int cmp;
            ^
                = 0
/datasets/git/ident.c:723:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cmp)
                ^
                 {
json-writer.c:4:34: warning: parameter name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
void jw_init(struct json_writer *jw)
                                 ^
/datasets/git/json-writer.c:7:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(jw, &blank, sizeof(*jw));;
        ^~~~~~
/datasets/git/json-writer.c:7:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(jw, &blank, sizeof(*jw));;
        ^~~~~~
/datasets/git/json-writer.c:10:37: warning: parameter name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
void jw_release(struct json_writer *jw)
                                    ^
/datasets/git/json-writer.c:19:66: warning: parameter name 'in' is too short, expected at least 3 characters [readability-identifier-length]
static void append_quoted_string(struct strbuf *out, const char *in)
                                                                 ^
/datasets/git/json-writer.c:21:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        unsigned char c;
        ^
/datasets/git/json-writer.c:21:16: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        unsigned char c;
                      ^
                        = 0
/datasets/git/json-writer.c:21:16: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/json-writer.c:24:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((c = *in++) != '\0') {
        ^
/datasets/git/json-writer.c:24:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'c' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((c = *in++) != '\0') {
               ^
/datasets/git/json-writer.c:25:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (c == '"')
                             ^
                              {
/datasets/git/json-writer.c:27:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (c == '\\')
                                   ^
                                    {
/datasets/git/json-writer.c:29:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (c == '\n')
                                   ^
                                    {
/datasets/git/json-writer.c:31:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (c == '\r')
                                   ^
                                    {
/datasets/git/json-writer.c:33:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (c == '\t')
                                   ^
                                    {
/datasets/git/json-writer.c:35:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (c == '\f')
                                   ^
                                    {
/datasets/git/json-writer.c:37:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (c == '\b')
                                   ^
                                    {
/datasets/git/json-writer.c:39:16: warning: 0x20 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                else if (c < 0x20)
                             ^
/datasets/git/json-writer.c:39:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (c < 0x20)
                                  ^
                                   {
/datasets/git/json-writer.c:41:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/json-writer.c:47:47: warning: parameter name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
static void indent_pretty(struct json_writer *jw)
                                              ^
/datasets/git/json-writer.c:49:6: warning: variable 'k' is not initialized [cppcoreguidelines-init-variables]
        int k;
            ^
              = 0
/datasets/git/json-writer.c:49:6: warning: variable name 'k' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/json-writer.c:51:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (k = 0; k < jw->open_stack.len; k++)
        ^
/datasets/git/json-writer.c:51:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (k = 0; k < jw->open_stack.len; k++)
                    ^
/datasets/git/json-writer.c:51:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (k = 0; k < jw->open_stack.len; k++)
                                                ^
                                                 {
/datasets/git/json-writer.c:59:39: warning: parameter name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
static void begin(struct json_writer *jw, char ch_open, int pretty)
                                      ^
/datasets/git/json-writer.c:59:43: warning: 2 adjacent parameters of 'begin' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void begin(struct json_writer *jw, char ch_open, int pretty)
                                          ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/json-writer.c:59:48: note: the first parameter in the range is 'ch_open'
static void begin(struct json_writer *jw, char ch_open, int pretty)
                                               ^~~~~~~
/datasets/git/json-writer.c:59:61: note: the last parameter in the range is 'pretty'
static void begin(struct json_writer *jw, char ch_open, int pretty)
                                                            ^~~~~~
/datasets/git/json-writer.c:59:57: note: 'char' and 'int' may be implicitly converted
static void begin(struct json_writer *jw, char ch_open, int pretty)
                                                        ^
/datasets/git/json-writer.c:72:56: warning: parameter name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
static void assert_in_object(const struct json_writer *jw, const char *key)
                                                       ^
/datasets/git/json-writer.c:74:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!jw->open_stack.len)
                                ^
                                 {
/datasets/git/json-writer.c:76:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (jw->open_stack.buf[jw->open_stack.len - 1] != '{')
                                                              ^
                                                               {
/datasets/git/json-writer.c:83:55: warning: parameter name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
static void assert_in_array(const struct json_writer *jw)
                                                      ^
/datasets/git/json-writer.c:85:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!jw->open_stack.len)
                                ^
                                 {
/datasets/git/json-writer.c:87:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (jw->open_stack.buf[jw->open_stack.len - 1] != '[')
                                                              ^
                                                               {
/datasets/git/json-writer.c:94:49: warning: parameter name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
static void maybe_add_comma(struct json_writer *jw)
                                                ^
/datasets/git/json-writer.c:96:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (jw->need_comma)
                           ^
                            {
/datasets/git/json-writer.c:98:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/json-writer.c:102:44: warning: parameter name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
static void fmt_double(struct json_writer *jw, int precision,
                                           ^
/datasets/git/json-writer.c:102:48: warning: 2 adjacent parameters of 'fmt_double' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void fmt_double(struct json_writer *jw, int precision,
                                               ^~~~~~~~~~~~~~
/datasets/git/json-writer.c:102:52: note: the first parameter in the range is 'precision'
static void fmt_double(struct json_writer *jw, int precision,
                                                   ^~~~~~~~~
/datasets/git/json-writer.c:103:17: note: the last parameter in the range is 'value'
                              double value)
                                     ^~~~~
/datasets/git/json-writer.c:103:10: note: 'int' and 'double' may be implicitly converted
                              double value)
                              ^
/datasets/git/json-writer.c:115:47: warning: parameter name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
static void object_common(struct json_writer *jw, const char *key)
                                              ^
/datasets/git/json-writer.c:127:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (jw->pretty)
                       ^
                        {
/datasets/git/json-writer.c:131:46: warning: parameter name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
static void array_common(struct json_writer *jw)
                                             ^
/datasets/git/json-writer.c:146:60: warning: parameter name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
static void assert_is_terminated(const struct json_writer *jw)
                                                           ^
/datasets/git/json-writer.c:148:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (jw->open_stack.len)
                               ^
                                {
/datasets/git/json-writer.c:153:42: warning: parameter name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
void jw_object_begin(struct json_writer *jw, int pretty)
                                         ^
/datasets/git/json-writer.c:158:43: warning: parameter name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
void jw_object_string(struct json_writer *jw, const char *key, const char *value)
                                          ^
/datasets/git/json-writer.c:158:47: warning: 2 adjacent parameters of 'jw_object_string' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
void jw_object_string(struct json_writer *jw, const char *key, const char *value)
                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/json-writer.c:158:59: note: the first parameter in the range is 'key'
void jw_object_string(struct json_writer *jw, const char *key, const char *value)
                                                          ^~~
/datasets/git/json-writer.c:158:76: note: the last parameter in the range is 'value'
void jw_object_string(struct json_writer *jw, const char *key, const char *value)
                                                                           ^~~~~
/datasets/git/json-writer.c:164:43: warning: parameter name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
void jw_object_intmax(struct json_writer *jw, const char *key, intmax_t value)
                                          ^
/datasets/git/json-writer.c:170:43: warning: parameter name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
void jw_object_double(struct json_writer *jw, const char *key, int precision,
                                          ^
/datasets/git/json-writer.c:177:41: warning: parameter name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
void jw_object_true(struct json_writer *jw, const char *key)
                                        ^
/datasets/git/json-writer.c:183:42: warning: parameter name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
void jw_object_false(struct json_writer *jw, const char *key)
                                         ^
/datasets/git/json-writer.c:189:41: warning: parameter name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
void jw_object_bool(struct json_writer *jw, const char *key, int value)
                                        ^
/datasets/git/json-writer.c:191:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (value)
                  ^
                   {
/datasets/git/json-writer.c:193:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/json-writer.c:197:41: warning: parameter name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
void jw_object_null(struct json_writer *jw, const char *key)
                                        ^
/datasets/git/json-writer.c:203:44: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static void increase_indent(struct strbuf *sb,
                                           ^
/datasets/git/json-writer.c:204:34: warning: parameter name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
                            const struct json_writer *jw,
                                                      ^
/datasets/git/./strbuf.h:68:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        size_t len;
        ^
/datasets/git/json-writer.c:207:6: warning: variable 'k' is not initialized [cppcoreguidelines-init-variables]
        int k;
            ^
              = 0
/datasets/git/json-writer.c:207:6: warning: variable name 'k' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/json-writer.c:210:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (k = 0; k < jw->json.len; k++) {
        ^
/datasets/git/json-writer.c:210:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (k = 0; k < jw->json.len; k++) {
                    ^
/datasets/git/json-writer.c:211:8: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
                char ch = jw->json.buf[k];
                     ^
/datasets/git/json-writer.c:213:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ch == '\n')
                               ^
                                {
/datasets/git/json-writer.c:218:40: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static void kill_indent(struct strbuf *sb,
                                       ^
/datasets/git/json-writer.c:219:30: warning: parameter name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
                        const struct json_writer *jw)
                                                  ^
/datasets/git/./strbuf.h:68:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        size_t len;
        ^
/datasets/git/json-writer.c:221:6: warning: variable 'k' is not initialized [cppcoreguidelines-init-variables]
        int k;
            ^
              = 0
/datasets/git/json-writer.c:221:6: warning: variable name 'k' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/json-writer.c:225:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (k = 0; k < jw->json.len; k++) {
        ^
/datasets/git/json-writer.c:225:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (k = 0; k < jw->json.len; k++) {
                    ^
/datasets/git/json-writer.c:226:8: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
                char ch = jw->json.buf[k];
                     ^
/datasets/git/json-writer.c:227:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (eat_it && ch == ' ')
                                        ^
                                         {
/datasets/git/json-writer.c:238:47: warning: parameter name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
static void append_sub_jw(struct json_writer *jw,
                                              ^
/datasets/git/json-writer.c:255:17: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                struct strbuf sb = STRBUF_INIT;
                              ^
/datasets/git/json-writer.c:256:31: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                increase_indent(&sb, value, jw->open_stack.len * 2);
                                            ^
/datasets/git/json-writer.c:262:17: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                struct strbuf sb = STRBUF_INIT;
                              ^
/datasets/git/json-writer.c:276:43: warning: parameter name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
void jw_object_sub_jw(struct json_writer *jw, const char *key,
                                          ^
/datasets/git/json-writer.c:285:56: warning: parameter name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
void jw_object_inline_begin_object(struct json_writer *jw, const char *key)
                                                       ^
/datasets/git/json-writer.c:292:55: warning: parameter name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
void jw_object_inline_begin_array(struct json_writer *jw, const char *key)
                                                      ^
/datasets/git/json-writer.c:299:41: warning: parameter name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
void jw_array_begin(struct json_writer *jw, int pretty)
                                        ^
/datasets/git/json-writer.c:304:42: warning: parameter name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
void jw_array_string(struct json_writer *jw, const char *value)
                                         ^
/datasets/git/json-writer.c:310:42: warning: parameter name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
void jw_array_intmax(struct json_writer *jw, intmax_t value)
                                         ^
/datasets/git/json-writer.c:316:42: warning: parameter name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
void jw_array_double(struct json_writer *jw, int precision, double value)
                                         ^
/datasets/git/json-writer.c:322:40: warning: parameter name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
void jw_array_true(struct json_writer *jw)
                                       ^
/datasets/git/json-writer.c:328:41: warning: parameter name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
void jw_array_false(struct json_writer *jw)
                                        ^
/datasets/git/json-writer.c:334:40: warning: parameter name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
void jw_array_bool(struct json_writer *jw, int value)
                                       ^
/datasets/git/json-writer.c:336:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (value)
                  ^
                   {
/datasets/git/json-writer.c:338:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/json-writer.c:342:40: warning: parameter name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
void jw_array_null(struct json_writer *jw)
                                       ^
/datasets/git/json-writer.c:348:42: warning: parameter name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
void jw_array_sub_jw(struct json_writer *jw, const struct json_writer *value)
                                         ^
/datasets/git/json-writer.c:356:45: warning: parameter name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
void jw_array_argc_argv(struct json_writer *jw, int argc, const char **argv)
                                            ^
/datasets/git/json-writer.c:358:6: warning: variable 'k' is not initialized [cppcoreguidelines-init-variables]
        int k;
            ^
              = 0
/datasets/git/json-writer.c:358:6: warning: variable name 'k' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/json-writer.c:360:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (k = 0; k < argc; k++)
        ^
/datasets/git/json-writer.c:360:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (k = 0; k < argc; k++)
                                  ^
                                   {
/datasets/git/json-writer.c:364:40: warning: parameter name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
void jw_array_argv(struct json_writer *jw, const char **argv)
                                       ^
/datasets/git/json-writer.c:366:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*argv)
        ^
/datasets/git/json-writer.c:366:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (*argv)
                     ^
                      {
/datasets/git/json-writer.c:370:55: warning: parameter name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
void jw_array_inline_begin_object(struct json_writer *jw)
                                                      ^
/datasets/git/json-writer.c:377:54: warning: parameter name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
void jw_array_inline_begin_array(struct json_writer *jw)
                                                     ^
/datasets/git/json-writer.c:384:48: warning: parameter name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
int jw_is_terminated(const struct json_writer *jw)
                                               ^
/datasets/git/json-writer.c:389:33: warning: parameter name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
void jw_end(struct json_writer *jw)
                                ^
/datasets/git/json-writer.c:391:7: warning: variable 'ch_open' is not initialized [cppcoreguidelines-init-variables]
        char ch_open;
             ^
                     = 0
/datasets/git/json-writer.c:392:6: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int len;
            ^
                = 0
/datasets/git/json-writer.c:394:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!jw->open_stack.len)
                                ^
                                 {
/datasets/git/json-writer.c:397:8: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        len = jw->open_stack.len - 1;
              ^
/datasets/git/json-writer.c:408:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ch_open == '{')
                           ^
                            {
/datasets/git/json-writer.c:410:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/kwset.c:37:1: warning: #includes are not sorted properly [llvm-include-order]
#include "kwset.h"
^        ~~~~~~~~~
         "compat/obstack.h"
/datasets/git/kwset.c:44:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (size < 0)
                     ^
                      {
/datasets/git/kwset.c:53:8: warning: accessing fields in struct 'tree' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct tree
       ^
/datasets/git/kwset.c:53:8: note: use "__attribute__((aligned(32)))" to align struct 'tree' to 32 bytes
/datasets/git/kwset.c:63:8: warning: accessing fields in struct 'trie' is inefficient due to padding; only needs 48 bytes but is using 56 bytes [altera-struct-pack-align]
struct trie
       ^
/datasets/git/kwset.c:63:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'trie'
/datasets/git/kwset.c:63:8: warning: accessing fields in struct 'trie' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct trie
       ^
/datasets/git/kwset.c:63:8: note: use "__attribute__((aligned(64)))" to align struct 'trie' to 64 bytes
/datasets/git/kwset.c:76:8: warning: accessing fields in struct 'kwset' is inefficient due to padding; only needs 2432 bytes but is using 2440 bytes [altera-struct-pack-align]
struct kwset
       ^
/datasets/git/kwset.c:76:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'kwset'
/datasets/git/kwset.c:76:8: warning: accessing fields in struct 'kwset' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct kwset
       ^
/datasets/git/kwset.c:76:8: note: use "__attribute__((aligned(128)))" to align struct 'kwset' to 128 bytes
/datasets/git/kwset.c:95:17: warning: variable 'kwset' is not initialized [cppcoreguidelines-init-variables]
  struct kwset *kwset;
                ^
                      = NULL
/datasets/git/kwset.c:102:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
    = (struct trie *) obstack_alloc(&kwset->obstack, sizeof (struct trie));
                      ^
/datasets/git/./compat/obstack.h:368:4: note: expanded from macro 'obstack_alloc'
   obstack_finish (__h); })
   ^~~~~~~~~~~~~~~~~~~~
/datasets/git/./compat/obstack.h:391:8: note: expanded from macro 'obstack_finish'
     = __PTR_ALIGN (__o1->object_base, __o1->next_free,                 \
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./compat/obstack.h:139:4: note: expanded from macro '__PTR_ALIGN'
   __BPTR_ALIGN((B), (P), (A)) :                                            \
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./compat/obstack.h:128:39: note: expanded from macro '__BPTR_ALIGN'
#define __BPTR_ALIGN(B, P, A) ((B) + (((P) - (B) + (A)) & ~(A)))
                                      ^~~~~~~~~~~~~~~~~
/datasets/git/kwset.c:102:23: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
    = (struct trie *) obstack_alloc(&kwset->obstack, sizeof (struct trie));
                      ^
/datasets/git/./compat/obstack.h:368:4: note: expanded from macro 'obstack_alloc'
   obstack_finish (__h); })
   ^~~~~~~~~~~~~~~~~~~~
/datasets/git/./compat/obstack.h:391:8: note: expanded from macro 'obstack_finish'
     = __PTR_ALIGN (__o1->object_base, __o1->next_free,                 \
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./compat/obstack.h:139:4: note: expanded from macro '__PTR_ALIGN'
   __BPTR_ALIGN((B), (P), (A)) :                                            \
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./compat/obstack.h:128:59: note: expanded from macro '__BPTR_ALIGN'
#define __BPTR_ALIGN(B, P, A) ((B) + (((P) - (B) + (A)) & ~(A)))
                                                          ^~~~
/datasets/git/kwset.c:102:23: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
    = (struct trie *) obstack_alloc(&kwset->obstack, sizeof (struct trie));
                      ^
/datasets/git/./compat/obstack.h:368:4: note: expanded from macro 'obstack_alloc'
   obstack_finish (__h); })
   ^
/datasets/git/./compat/obstack.h:391:8: note: expanded from macro 'obstack_finish'
     = __PTR_ALIGN (__o1->object_base, __o1->next_free,                 \
       ^
/datasets/git/./compat/obstack.h:140:4: note: expanded from macro '__PTR_ALIGN'
   (void *)__BPTR_ALIGN((PTR_INT_TYPE)(void *)0, (PTR_INT_TYPE)(P), (A))            \
   ^
/datasets/git/kwset.c:130:1: warning: function 'kwsincr' has cognitive complexity of 131 (threshold 25) [readability-function-cognitive-complexity]
kwsincr (kwset_t kws, char const *text, size_t len)
^
/datasets/git/kwset.c:147:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  while (len--)
  ^
/datasets/git/kwset.c:149:28: note: +2, including nesting penalty of 1, nesting level increased to 2
      label = kwset->trans ? kwset->trans[U(*--text)] : *--text;
                           ^
/datasets/git/kwset.c:159:7: note: +2, including nesting penalty of 1, nesting level increased to 2
      while (link && label != link->label)
      ^
/datasets/git/kwset.c:159:19: note: +1
      while (link && label != link->label)
                  ^
/datasets/git/kwset.c:162:4: note: +3, including nesting penalty of 2, nesting level increased to 3
          if (label < link->label)
          ^
/datasets/git/kwset.c:164:4: note: +1, nesting level increased to 3
          else
          ^
/datasets/git/kwset.c:171:7: note: +2, including nesting penalty of 1, nesting level increased to 2
      if (!link)
      ^
/datasets/git/kwset.c:173:27: note: nesting level increased to 3
          link = (struct tree *) obstack_alloc(&kwset->obstack,
                                 ^
/datasets/git/./compat/obstack.h:365:22: note: expanded from macro 'obstack_alloc'
__extension__                                                           \
                                                                        ^
/datasets/git/kwset.c:173:27: note: nesting level increased to 4
          link = (struct tree *) obstack_alloc(&kwset->obstack,
                                 ^
/datasets/git/./compat/obstack.h:367:4: note: expanded from macro 'obstack_alloc'
   obstack_blank (__h, (length));                                       \
   ^
/datasets/git/./compat/obstack.h:356:22: note: expanded from macro 'obstack_blank'
__extension__                                                           \
                                                                        ^
/datasets/git/kwset.c:173:27: note: +5, including nesting penalty of 4, nesting level increased to 5
          link = (struct tree *) obstack_alloc(&kwset->obstack,
                                 ^
/datasets/git/./compat/obstack.h:367:4: note: expanded from macro 'obstack_alloc'
   obstack_blank (__h, (length));                                       \
   ^
/datasets/git/./compat/obstack.h:359:4: note: expanded from macro 'obstack_blank'
   if (__o->chunk_limit - __o->next_free < __len)                       \
   ^
/datasets/git/kwset.c:173:27: note: nesting level increased to 4
          link = (struct tree *) obstack_alloc(&kwset->obstack,
                                 ^
/datasets/git/./compat/obstack.h:368:4: note: expanded from macro 'obstack_alloc'
   obstack_finish (__h); })
   ^
/datasets/git/./compat/obstack.h:385:22: note: expanded from macro 'obstack_finish'
__extension__                                                           \
                                                                        ^
/datasets/git/kwset.c:173:27: note: +5, including nesting penalty of 4, nesting level increased to 5
          link = (struct tree *) obstack_alloc(&kwset->obstack,
                                 ^
/datasets/git/./compat/obstack.h:368:4: note: expanded from macro 'obstack_alloc'
   obstack_finish (__h); })
   ^
/datasets/git/./compat/obstack.h:388:4: note: expanded from macro 'obstack_finish'
   if (__o1->next_free == __value)                                      \
   ^
/datasets/git/kwset.c:173:27: note: +5, including nesting penalty of 4, nesting level increased to 5
          link = (struct tree *) obstack_alloc(&kwset->obstack,
                                 ^
/datasets/git/./compat/obstack.h:368:4: note: expanded from macro 'obstack_alloc'
   obstack_finish (__h); })
   ^
/datasets/git/./compat/obstack.h:391:8: note: expanded from macro 'obstack_finish'
     = __PTR_ALIGN (__o1->object_base, __o1->next_free,                 \
       ^
/datasets/git/./compat/obstack.h:138:43: note: expanded from macro '__PTR_ALIGN'
  (sizeof (PTR_INT_TYPE) < sizeof(void *) ?                                 \
                                          ^
/datasets/git/kwset.c:173:27: note: +5, including nesting penalty of 4, nesting level increased to 5
          link = (struct tree *) obstack_alloc(&kwset->obstack,
                                 ^
/datasets/git/./compat/obstack.h:368:4: note: expanded from macro 'obstack_alloc'
   obstack_finish (__h); })
   ^
/datasets/git/./compat/obstack.h:393:4: note: expanded from macro 'obstack_finish'
   if (__o1->next_free - (char *)__o1->chunk                            \
   ^
/datasets/git/kwset.c:175:4: note: +3, including nesting penalty of 2, nesting level increased to 3
          if (!link)
          ^
/datasets/git/kwset.c:179:33: note: nesting level increased to 3
          link->trie = (struct trie *) obstack_alloc(&kwset->obstack,
                                       ^
/datasets/git/./compat/obstack.h:365:22: note: expanded from macro 'obstack_alloc'
__extension__                                                           \
                                                                        ^
/datasets/git/kwset.c:179:33: note: nesting level increased to 4
          link->trie = (struct trie *) obstack_alloc(&kwset->obstack,
                                       ^
/datasets/git/./compat/obstack.h:367:4: note: expanded from macro 'obstack_alloc'
   obstack_blank (__h, (length));                                       \
   ^
/datasets/git/./compat/obstack.h:356:22: note: expanded from macro 'obstack_blank'
__extension__                                                           \
                                                                        ^
/datasets/git/kwset.c:179:33: note: +5, including nesting penalty of 4, nesting level increased to 5
          link->trie = (struct trie *) obstack_alloc(&kwset->obstack,
                                       ^
/datasets/git/./compat/obstack.h:367:4: note: expanded from macro 'obstack_alloc'
   obstack_blank (__h, (length));                                       \
   ^
/datasets/git/./compat/obstack.h:359:4: note: expanded from macro 'obstack_blank'
   if (__o->chunk_limit - __o->next_free < __len)                       \
   ^
/datasets/git/kwset.c:179:33: note: nesting level increased to 4
          link->trie = (struct trie *) obstack_alloc(&kwset->obstack,
                                       ^
/datasets/git/./compat/obstack.h:368:4: note: expanded from macro 'obstack_alloc'
   obstack_finish (__h); })
   ^
/datasets/git/./compat/obstack.h:385:22: note: expanded from macro 'obstack_finish'
__extension__                                                           \
                                                                        ^
/datasets/git/kwset.c:179:33: note: +5, including nesting penalty of 4, nesting level increased to 5
          link->trie = (struct trie *) obstack_alloc(&kwset->obstack,
                                       ^
/datasets/git/./compat/obstack.h:368:4: note: expanded from macro 'obstack_alloc'
   obstack_finish (__h); })
   ^
/datasets/git/./compat/obstack.h:388:4: note: expanded from macro 'obstack_finish'
   if (__o1->next_free == __value)                                      \
   ^
/datasets/git/kwset.c:179:33: note: +5, including nesting penalty of 4, nesting level increased to 5
          link->trie = (struct trie *) obstack_alloc(&kwset->obstack,
                                       ^
/datasets/git/./compat/obstack.h:368:4: note: expanded from macro 'obstack_alloc'
   obstack_finish (__h); })
   ^
/datasets/git/./compat/obstack.h:391:8: note: expanded from macro 'obstack_finish'
     = __PTR_ALIGN (__o1->object_base, __o1->next_free,                 \
       ^
/datasets/git/./compat/obstack.h:138:43: note: expanded from macro '__PTR_ALIGN'
  (sizeof (PTR_INT_TYPE) < sizeof(void *) ?                                 \
                                          ^
/datasets/git/kwset.c:179:33: note: +5, including nesting penalty of 4, nesting level increased to 5
          link->trie = (struct trie *) obstack_alloc(&kwset->obstack,
                                       ^
/datasets/git/./compat/obstack.h:368:4: note: expanded from macro 'obstack_alloc'
   obstack_finish (__h); })
   ^
/datasets/git/./compat/obstack.h:393:4: note: expanded from macro 'obstack_finish'
   if (__o1->next_free - (char *)__o1->chunk                            \
   ^
/datasets/git/kwset.c:181:4: note: +3, including nesting penalty of 2, nesting level increased to 3
          if (!link->trie)
          ^
/datasets/git/kwset.c:183:8: note: nesting level increased to 4
              obstack_free(&kwset->obstack, link);
              ^
/datasets/git/./compat/obstack.h:400:22: note: expanded from macro 'obstack_free'
__extension__                                                           \
                                                                        ^
/datasets/git/kwset.c:183:8: note: +5, including nesting penalty of 4, nesting level increased to 5
              obstack_free(&kwset->obstack, link);
              ^
/datasets/git/./compat/obstack.h:403:4: note: expanded from macro 'obstack_free'
   if (__obj > (void *)__o->chunk && __obj < (void *)__o->chunk_limit)  \
   ^
/datasets/git/kwset.c:183:8: note: +1
              obstack_free(&kwset->obstack, link);
              ^
/datasets/git/./compat/obstack.h:403:35: note: expanded from macro 'obstack_free'
   if (__obj > (void *)__o->chunk && __obj < (void *)__o->chunk_limit)  \
                                  ^
/datasets/git/kwset.c:183:8: note: +1, nesting level increased to 5
              obstack_free(&kwset->obstack, link);
              ^
/datasets/git/./compat/obstack.h:405:4: note: expanded from macro 'obstack_free'
   else (obstack_free) (__o, __obj); })
   ^
/datasets/git/kwset.c:197:4: note: +3, including nesting penalty of 2, nesting level increased to 3
          if (dirs[--depth] == L)
          ^
/datasets/git/kwset.c:199:4: note: +1, nesting level increased to 3
          else
          ^
/datasets/git/kwset.c:203:4: note: +3, including nesting penalty of 2, nesting level increased to 3
          while (depth && !links[depth]->balance)
          ^
/datasets/git/kwset.c:203:17: note: +1
          while (depth && !links[depth]->balance)
                       ^
/datasets/git/kwset.c:205:8: note: +4, including nesting penalty of 3, nesting level increased to 4
              if (dirs[depth] == L)
              ^
/datasets/git/kwset.c:207:8: note: +1, nesting level increased to 4
              else
              ^
/datasets/git/kwset.c:213:4: note: +3, including nesting penalty of 2, nesting level increased to 3
          if (depth && ((dirs[depth] == L && --links[depth]->balance)
          ^
/datasets/git/kwset.c:213:14: note: +1
          if (depth && ((dirs[depth] == L && --links[depth]->balance)
                    ^
/datasets/git/kwset.c:214:4: note: +1
                        || (dirs[depth] == R && ++links[depth]->balance)))
                        ^
/datasets/git/kwset.c:213:36: note: +1
          if (depth && ((dirs[depth] == L && --links[depth]->balance)
                                          ^
/datasets/git/kwset.c:214:25: note: +1
                        || (dirs[depth] == R && ++links[depth]->balance)))
                                             ^
/datasets/git/kwset.c:216:8: note: +4, including nesting penalty of 3, nesting level increased to 4
              switch (links[depth]->balance)
              ^
/datasets/git/kwset.c:219:5: note: +5, including nesting penalty of 4, nesting level increased to 5
                  switch (dirs[depth + 1])
                  ^
/datasets/git/kwset.c:230:38: note: +6, including nesting penalty of 5, nesting level increased to 6
                      l->balance = t->balance != 1 ? 0 : -1;
                                                   ^
/datasets/git/kwset.c:231:46: note: +6, including nesting penalty of 5, nesting level increased to 6
                      r->balance = t->balance != (char) -1 ? 0 : 1;
                                                           ^
/datasets/git/kwset.c:239:5: note: +5, including nesting penalty of 4, nesting level increased to 5
                  switch (dirs[depth + 1])
                  ^
/datasets/git/kwset.c:250:38: note: +6, including nesting penalty of 5, nesting level increased to 6
                      l->balance = t->balance != 1 ? 0 : -1;
                                                   ^
/datasets/git/kwset.c:251:46: note: +6, including nesting penalty of 5, nesting level increased to 6
                      r->balance = t->balance != (char) -1 ? 0 : 1;
                                                           ^
/datasets/git/kwset.c:262:8: note: +4, including nesting penalty of 3, nesting level increased to 4
              if (dirs[depth - 1] == L)
              ^
/datasets/git/kwset.c:264:8: note: +1, nesting level increased to 4
              else
              ^
/datasets/git/kwset.c:274:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  if (!trie->accepting)
  ^
/datasets/git/kwset.c:279:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  if (trie->depth < kwset->mind)
  ^
/datasets/git/kwset.c:281:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  if (trie->depth > kwset->maxd)
  ^
/datasets/git/kwset.c:132:17: warning: variable 'kwset' is not initialized [cppcoreguidelines-init-variables]
  struct kwset *kwset;
                ^
                      = NULL
/datasets/git/kwset.c:133:25: warning: variable 'trie' is not initialized [cppcoreguidelines-init-variables]
  register struct trie *trie;
                        ^
                             = NULL
/datasets/git/kwset.c:134:26: warning: variable 'label' is not initialized [cppcoreguidelines-init-variables]
  register unsigned char label;
                         ^
                               = 0
/datasets/git/kwset.c:135:25: warning: variable 'link' is not initialized [cppcoreguidelines-init-variables]
  register struct tree *link;
                        ^
                             = NULL
/datasets/git/kwset.c:136:16: warning: variable 'depth' is not initialized [cppcoreguidelines-init-variables]
  register int depth;
               ^
                     = 0
/datasets/git/kwset.c:139:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
  struct tree *t, *r, *l, *rl, *lr;
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/kwset.c:139:16: warning: variable 't' is not initialized [cppcoreguidelines-init-variables]
  struct tree *t, *r, *l, *rl, *lr;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/kwset.c:139:16: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/kwset.c:139:20: warning: variable 'r' is not initialized [cppcoreguidelines-init-variables]
  struct tree *t, *r, *l, *rl, *lr;
                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/kwset.c:139:20: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/kwset.c:139:24: warning: variable 'l' is not initialized [cppcoreguidelines-init-variables]
  struct tree *t, *r, *l, *rl, *lr;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/kwset.c:139:24: warning: variable name 'l' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/kwset.c:139:28: warning: variable 'rl' is not initialized [cppcoreguidelines-init-variables]
  struct tree *t, *r, *l, *rl, *lr;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/kwset.c:139:28: warning: variable name 'rl' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/kwset.c:139:33: warning: variable 'lr' is not initialized [cppcoreguidelines-init-variables]
  struct tree *t, *r, *l, *rl, *lr;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/kwset.c:139:33: warning: variable name 'lr' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/kwset.c:135:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
  register struct tree *link;
  ^
/datasets/git/kwset.c:159:7: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
      while (link && label != link->label)
      ^
/datasets/git/kwset.c:159:14: warning: backward branch (while loop) is ID-dependent due to variable reference to 'link' and may cause performance degradation [altera-id-dependent-backward-branch]
      while (link && label != link->label)
             ^
/datasets/git/kwset.c:162:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
          if (label < link->label)
                                  ^
                                   {
/datasets/git/kwset.c:164:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
          else
              ^
               {
/datasets/git/kwset.c:173:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
          link = (struct tree *) obstack_alloc(&kwset->obstack,
                                 ^
/datasets/git/./compat/obstack.h:368:4: note: expanded from macro 'obstack_alloc'
   obstack_finish (__h); })
   ^~~~~~~~~~~~~~~~~~~~
/datasets/git/./compat/obstack.h:391:8: note: expanded from macro 'obstack_finish'
     = __PTR_ALIGN (__o1->object_base, __o1->next_free,                 \
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./compat/obstack.h:139:4: note: expanded from macro '__PTR_ALIGN'
   __BPTR_ALIGN((B), (P), (A)) :                                            \
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./compat/obstack.h:128:39: note: expanded from macro '__BPTR_ALIGN'
#define __BPTR_ALIGN(B, P, A) ((B) + (((P) - (B) + (A)) & ~(A)))
                                      ^~~~~~~~~~~~~~~~~
/datasets/git/kwset.c:173:27: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
          link = (struct tree *) obstack_alloc(&kwset->obstack,
                                 ^
/datasets/git/./compat/obstack.h:368:4: note: expanded from macro 'obstack_alloc'
   obstack_finish (__h); })
   ^~~~~~~~~~~~~~~~~~~~
/datasets/git/./compat/obstack.h:391:8: note: expanded from macro 'obstack_finish'
     = __PTR_ALIGN (__o1->object_base, __o1->next_free,                 \
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./compat/obstack.h:139:4: note: expanded from macro '__PTR_ALIGN'
   __BPTR_ALIGN((B), (P), (A)) :                                            \
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./compat/obstack.h:128:59: note: expanded from macro '__BPTR_ALIGN'
#define __BPTR_ALIGN(B, P, A) ((B) + (((P) - (B) + (A)) & ~(A)))
                                                          ^~~~
/datasets/git/kwset.c:173:27: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
          link = (struct tree *) obstack_alloc(&kwset->obstack,
                                 ^
/datasets/git/./compat/obstack.h:368:4: note: expanded from macro 'obstack_alloc'
   obstack_finish (__h); })
   ^
/datasets/git/./compat/obstack.h:391:8: note: expanded from macro 'obstack_finish'
     = __PTR_ALIGN (__o1->object_base, __o1->next_free,                 \
       ^
/datasets/git/./compat/obstack.h:140:4: note: expanded from macro '__PTR_ALIGN'
   (void *)__BPTR_ALIGN((PTR_INT_TYPE)(void *)0, (PTR_INT_TYPE)(P), (A))            \
   ^
/datasets/git/kwset.c:175:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
          if (!link)
                    ^
                     {
/datasets/git/kwset.c:179:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
          link->trie = (struct trie *) obstack_alloc(&kwset->obstack,
                                       ^
/datasets/git/./compat/obstack.h:368:4: note: expanded from macro 'obstack_alloc'
   obstack_finish (__h); })
   ^~~~~~~~~~~~~~~~~~~~
/datasets/git/./compat/obstack.h:391:8: note: expanded from macro 'obstack_finish'
     = __PTR_ALIGN (__o1->object_base, __o1->next_free,                 \
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./compat/obstack.h:139:4: note: expanded from macro '__PTR_ALIGN'
   __BPTR_ALIGN((B), (P), (A)) :                                            \
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./compat/obstack.h:128:39: note: expanded from macro '__BPTR_ALIGN'
#define __BPTR_ALIGN(B, P, A) ((B) + (((P) - (B) + (A)) & ~(A)))
                                      ^~~~~~~~~~~~~~~~~
/datasets/git/kwset.c:179:33: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
          link->trie = (struct trie *) obstack_alloc(&kwset->obstack,
                                       ^
/datasets/git/./compat/obstack.h:368:4: note: expanded from macro 'obstack_alloc'
   obstack_finish (__h); })
   ^~~~~~~~~~~~~~~~~~~~
/datasets/git/./compat/obstack.h:391:8: note: expanded from macro 'obstack_finish'
     = __PTR_ALIGN (__o1->object_base, __o1->next_free,                 \
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./compat/obstack.h:139:4: note: expanded from macro '__PTR_ALIGN'
   __BPTR_ALIGN((B), (P), (A)) :                                            \
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./compat/obstack.h:128:59: note: expanded from macro '__BPTR_ALIGN'
#define __BPTR_ALIGN(B, P, A) ((B) + (((P) - (B) + (A)) & ~(A)))
                                                          ^~~~
/datasets/git/kwset.c:179:33: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
          link->trie = (struct trie *) obstack_alloc(&kwset->obstack,
                                       ^
/datasets/git/./compat/obstack.h:368:4: note: expanded from macro 'obstack_alloc'
   obstack_finish (__h); })
   ^
/datasets/git/./compat/obstack.h:391:8: note: expanded from macro 'obstack_finish'
     = __PTR_ALIGN (__o1->object_base, __o1->next_free,                 \
       ^
/datasets/git/./compat/obstack.h:140:4: note: expanded from macro '__PTR_ALIGN'
   (void *)__BPTR_ALIGN((PTR_INT_TYPE)(void *)0, (PTR_INT_TYPE)(P), (A))            \
   ^
/datasets/git/kwset.c:197:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
          if (dirs[--depth] == L)
                                 ^
                                  {
/datasets/git/kwset.c:199:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
          else
              ^
               {
/datasets/git/kwset.c:203:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
          while (depth && !links[depth]->balance)
          ^
/datasets/git/kwset.c:203:11: warning: backward branch (while loop) is ID-dependent due to member reference to 'balance' and may cause performance degradation [altera-id-dependent-backward-branch]
          while (depth && !links[depth]->balance)
                 ^
/datasets/git/kwset.c:205:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
              if (dirs[depth] == L)
                                   ^
                                    {
/datasets/git/kwset.c:207:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
              else
                  ^
                   {
/datasets/git/kwset.c:262:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
              if (dirs[depth - 1] == L)
                                       ^
                                        {
/datasets/git/kwset.c:264:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
              else
                  ^
                   {
/datasets/git/kwset.c:274:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  if (!trie->accepting)
                       ^
                        {
/datasets/git/kwset.c:279:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  if (trie->depth < kwset->mind)
                                ^
                                 {
/datasets/git/kwset.c:281:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  if (trie->depth > kwset->maxd)
                                ^
                                 {
/datasets/git/kwset.c:290:1: warning: function 'enqueue' is within a recursive call chain [misc-no-recursion]
enqueue (struct tree *tree, struct trie **last)
^
/datasets/git/kwset.c:290:1: note: example recursive call chain, starting from function 'enqueue'
/datasets/git/kwset.c:294:3: note: Frame #1: function 'enqueue' calls function 'enqueue' here:
  enqueue(tree->llink, last);
  ^
/datasets/git/kwset.c:294:3: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/kwset.c:292:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  if (!tree)
            ^
             {
/datasets/git/kwset.c:303:1: warning: function 'treefails' is within a recursive call chain [misc-no-recursion]
treefails (register struct tree const *tree, struct trie const *fail,
^
/datasets/git/kwset.c:303:1: note: example recursive call chain, starting from function 'treefails'
/datasets/git/kwset.c:311:3: note: Frame #1: function 'treefails' calls function 'treefails' here:
  treefails(tree->llink, fail, recourse);
  ^
/datasets/git/kwset.c:311:3: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/kwset.c:306:25: warning: variable 'link' is not initialized [cppcoreguidelines-init-variables]
  register struct tree *link;
                        ^
                             = NULL
/datasets/git/kwset.c:308:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  if (!tree)
            ^
             {
/datasets/git/kwset.c:316:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'fail' and may cause performance degradation [altera-id-dependent-backward-branch]
  while (fail)
         ^
/datasets/git/kwset.c:319:7: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
      while (link && tree->label != link->label)
      ^
/datasets/git/kwset.c:319:14: warning: backward branch (while loop) is ID-dependent due to variable reference to 'link' and may cause performance degradation [altera-id-dependent-backward-branch]
      while (link && tree->label != link->label)
             ^
/datasets/git/kwset.c:319:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
      while (link && tree->label != link->label)
                                                ^
                                                 {
/datasets/git/kwset.c:320:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (tree->label < link->label)
                                      ^
                                       {
/datasets/git/kwset.c:322:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/kwset.c:338:1: warning: function 'treedelta' is within a recursive call chain [misc-no-recursion]
treedelta (register struct tree const *tree,
^
/datasets/git/kwset.c:338:1: note: example recursive call chain, starting from function 'treedelta'
/datasets/git/kwset.c:344:3: note: Frame #1: function 'treedelta' calls function 'treedelta' here:
  treedelta(tree->llink, depth, delta);
  ^
/datasets/git/kwset.c:344:3: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/kwset.c:342:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  if (!tree)
            ^
             {
/datasets/git/kwset.c:346:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  if (depth < delta[tree->label])
                                 ^
                                  {
/datasets/git/kwset.c:352:1: warning: function 'hasevery' is within a recursive call chain [misc-no-recursion]
hasevery (register struct tree const *a, register struct tree const *b)
^
/datasets/git/kwset.c:352:1: note: example recursive call chain, starting from function 'hasevery'
/datasets/git/kwset.c:356:8: note: Frame #1: function 'hasevery' calls function 'hasevery' here:
  if (!hasevery(a, b->llink))
       ^
/datasets/git/kwset.c:356:8: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/kwset.c:352:39: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
hasevery (register struct tree const *a, register struct tree const *b)
                                      ^
/datasets/git/kwset.c:352:70: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
hasevery (register struct tree const *a, register struct tree const *b)
                                                                     ^
/datasets/git/kwset.c:354:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  if (!b)
         ^
          {
/datasets/git/kwset.c:356:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  if (!hasevery(a, b->llink))
                             ^
                              {
/datasets/git/kwset.c:358:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  if (!hasevery(a, b->rlink))
                             ^
                              {
/datasets/git/kwset.c:360:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
  while (a && b->label != a->label)
  ^
/datasets/git/kwset.c:360:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'a' and may cause performance degradation [altera-id-dependent-backward-branch]
  while (a && b->label != a->label)
         ^
/datasets/git/kwset.c:360:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  while (a && b->label != a->label)
                                   ^
                                    {
/datasets/git/kwset.c:361:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
    if (b->label < a->label)
                            ^
                             {
/datasets/git/kwset.c:363:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
    else
        ^
         {
/datasets/git/kwset.c:371:1: warning: function 'treenext' is within a recursive call chain [misc-no-recursion]
treenext (struct tree const *tree, struct trie *next[])
^
/datasets/git/kwset.c:371:1: note: example recursive call chain, starting from function 'treenext'
/datasets/git/kwset.c:375:3: note: Frame #1: function 'treenext' calls function 'treenext' here:
  treenext(tree->llink, next);
  ^
/datasets/git/kwset.c:375:3: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/kwset.c:373:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  if (!tree)
            ^
             {
/datasets/git/kwset.c:383:1: warning: function 'kwsprep' has cognitive complexity of 65 (threshold 25) [readability-function-cognitive-complexity]
kwsprep (kwset_t kws)
^
/datasets/git/kwset.c:396:41: note: +1, including nesting penalty of 0, nesting level increased to 1
  memset(delta, kwset->mind < UCHAR_MAX ? kwset->mind : UCHAR_MAX, NCHAR);
                                        ^
/datasets/git/kwset.c:400:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  if (kwset->words == 1 && kwset->trans == NULL)
  ^
/datasets/git/kwset.c:400:25: note: +1
  if (kwset->words == 1 && kwset->trans == NULL)
                        ^
/datasets/git/kwset.c:405:23: note: nesting level increased to 2
      kwset->target = obstack_alloc(&kwset->obstack, kwset->mind);
                      ^
/datasets/git/./compat/obstack.h:365:22: note: expanded from macro 'obstack_alloc'
__extension__                                                           \
                                                                        ^
/datasets/git/kwset.c:405:23: note: nesting level increased to 3
      kwset->target = obstack_alloc(&kwset->obstack, kwset->mind);
                      ^
/datasets/git/./compat/obstack.h:367:4: note: expanded from macro 'obstack_alloc'
   obstack_blank (__h, (length));                                       \
   ^
/datasets/git/./compat/obstack.h:356:22: note: expanded from macro 'obstack_blank'
__extension__                                                           \
                                                                        ^
/datasets/git/kwset.c:405:23: note: +4, including nesting penalty of 3, nesting level increased to 4
      kwset->target = obstack_alloc(&kwset->obstack, kwset->mind);
                      ^
/datasets/git/./compat/obstack.h:367:4: note: expanded from macro 'obstack_alloc'
   obstack_blank (__h, (length));                                       \
   ^
/datasets/git/./compat/obstack.h:359:4: note: expanded from macro 'obstack_blank'
   if (__o->chunk_limit - __o->next_free < __len)                       \
   ^
/datasets/git/kwset.c:405:23: note: nesting level increased to 3
      kwset->target = obstack_alloc(&kwset->obstack, kwset->mind);
                      ^
/datasets/git/./compat/obstack.h:368:4: note: expanded from macro 'obstack_alloc'
   obstack_finish (__h); })
   ^
/datasets/git/./compat/obstack.h:385:22: note: expanded from macro 'obstack_finish'
__extension__                                                           \
                                                                        ^
/datasets/git/kwset.c:405:23: note: +4, including nesting penalty of 3, nesting level increased to 4
      kwset->target = obstack_alloc(&kwset->obstack, kwset->mind);
                      ^
/datasets/git/./compat/obstack.h:368:4: note: expanded from macro 'obstack_alloc'
   obstack_finish (__h); })
   ^
/datasets/git/./compat/obstack.h:388:4: note: expanded from macro 'obstack_finish'
   if (__o1->next_free == __value)                                      \
   ^
/datasets/git/kwset.c:405:23: note: +4, including nesting penalty of 3, nesting level increased to 4
      kwset->target = obstack_alloc(&kwset->obstack, kwset->mind);
                      ^
/datasets/git/./compat/obstack.h:368:4: note: expanded from macro 'obstack_alloc'
   obstack_finish (__h); })
   ^
/datasets/git/./compat/obstack.h:391:8: note: expanded from macro 'obstack_finish'
     = __PTR_ALIGN (__o1->object_base, __o1->next_free,                 \
       ^
/datasets/git/./compat/obstack.h:138:43: note: expanded from macro '__PTR_ALIGN'
  (sizeof (PTR_INT_TYPE) < sizeof(void *) ?                                 \
                                          ^
/datasets/git/kwset.c:405:23: note: +4, including nesting penalty of 3, nesting level increased to 4
      kwset->target = obstack_alloc(&kwset->obstack, kwset->mind);
                      ^
/datasets/git/./compat/obstack.h:368:4: note: expanded from macro 'obstack_alloc'
   obstack_finish (__h); })
   ^
/datasets/git/./compat/obstack.h:393:4: note: expanded from macro 'obstack_finish'
   if (__o1->next_free - (char *)__o1->chunk                            \
   ^
/datasets/git/kwset.c:406:7: note: +2, including nesting penalty of 1, nesting level increased to 2
      if (!kwset->target)
      ^
/datasets/git/kwset.c:408:7: note: +2, including nesting penalty of 1, nesting level increased to 2
      for (i = kwset->mind - 1, curr = kwset->trie; i >= 0; --i)
      ^
/datasets/git/kwset.c:414:7: note: +2, including nesting penalty of 1, nesting level increased to 2
      for (i = 0; i < kwset->mind; ++i)
      ^
/datasets/git/kwset.c:419:7: note: +2, including nesting penalty of 1, nesting level increased to 2
      for (i = kwset->mind - 2; i >= 0; --i)
      ^
/datasets/git/kwset.c:420:2: note: +3, including nesting penalty of 2, nesting level increased to 3
        if (kwset->target[i] == c)
        ^
/datasets/git/kwset.c:424:3: note: +1, nesting level increased to 1
  else
  ^
/datasets/git/kwset.c:431:7: note: +2, including nesting penalty of 1, nesting level increased to 2
      for (curr = last = kwset->trie; curr; curr = curr->next)
      ^
/datasets/git/kwset.c:447:4: note: +3, including nesting penalty of 2, nesting level increased to 3
          for (fail = curr->fail; fail; fail = fail->fail)
          ^
/datasets/git/kwset.c:452:8: note: +4, including nesting penalty of 3, nesting level increased to 4
              if (!hasevery(fail->links, curr->links))
              ^
/datasets/git/kwset.c:453:3: note: +5, including nesting penalty of 4, nesting level increased to 5
                if (curr->depth - fail->depth < fail->shift)
                ^
/datasets/git/kwset.c:459:8: note: +4, including nesting penalty of 3, nesting level increased to 4
              if (curr->accepting && fail->maxshift > curr->depth - fail->depth)
              ^
/datasets/git/kwset.c:459:28: note: +1
              if (curr->accepting && fail->maxshift > curr->depth - fail->depth)
                                  ^
/datasets/git/kwset.c:466:7: note: +2, including nesting penalty of 1, nesting level increased to 2
      for (curr = kwset->trie->next; curr; curr = curr->next)
      ^
/datasets/git/kwset.c:468:4: note: +3, including nesting penalty of 2, nesting level increased to 3
          if (curr->maxshift > curr->parent->maxshift)
          ^
/datasets/git/kwset.c:470:4: note: +3, including nesting penalty of 2, nesting level increased to 3
          if (curr->shift > curr->maxshift)
          ^
/datasets/git/kwset.c:476:7: note: +2, including nesting penalty of 1, nesting level increased to 2
      for (i = 0; i < NCHAR; ++i)
      ^
/datasets/git/kwset.c:480:7: note: +2, including nesting penalty of 1, nesting level increased to 2
      if ((trans = kwset->trans))
      ^
/datasets/git/kwset.c:483:7: note: +1, nesting level increased to 2
      else
      ^
/datasets/git/kwset.c:488:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  if ((trans = kwset->trans))
  ^
/datasets/git/kwset.c:491:3: note: +1, nesting level increased to 1
  else
  ^
/datasets/git/kwset.c:385:26: warning: variable 'kwset' is not initialized [cppcoreguidelines-init-variables]
  register struct kwset *kwset;
                         ^
                               = NULL
/datasets/git/kwset.c:386:16: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
  register int i;
               ^
                 = 0
/datasets/git/kwset.c:386:16: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/kwset.c:387:25: warning: variable 'curr' is not initialized [cppcoreguidelines-init-variables]
  register struct trie *curr;
                        ^
                             = NULL
/datasets/git/kwset.c:388:33: warning: variable 'trans' is not initialized [cppcoreguidelines-init-variables]
  register unsigned char const *trans;
                                ^
                                      = NULL
/datasets/git/kwset.c:396:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
  memset(delta, kwset->mind < UCHAR_MAX ? kwset->mind : UCHAR_MAX, NCHAR);
  ^~~~~~
/datasets/git/kwset.c:396:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
  memset(delta, kwset->mind < UCHAR_MAX ? kwset->mind : UCHAR_MAX, NCHAR);
  ^~~~~~
/datasets/git/kwset.c:402:12: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
      char c;
           ^
             = 0
/datasets/git/kwset.c:402:12: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/kwset.c:405:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
      kwset->target = obstack_alloc(&kwset->obstack, kwset->mind);
                      ^
/datasets/git/./compat/obstack.h:368:4: note: expanded from macro 'obstack_alloc'
   obstack_finish (__h); })
   ^~~~~~~~~~~~~~~~~~~~
/datasets/git/./compat/obstack.h:391:8: note: expanded from macro 'obstack_finish'
     = __PTR_ALIGN (__o1->object_base, __o1->next_free,                 \
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./compat/obstack.h:139:4: note: expanded from macro '__PTR_ALIGN'
   __BPTR_ALIGN((B), (P), (A)) :                                            \
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./compat/obstack.h:128:39: note: expanded from macro '__BPTR_ALIGN'
#define __BPTR_ALIGN(B, P, A) ((B) + (((P) - (B) + (A)) & ~(A)))
                                      ^~~~~~~~~~~~~~~~~
/datasets/git/kwset.c:405:23: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
      kwset->target = obstack_alloc(&kwset->obstack, kwset->mind);
                      ^
/datasets/git/./compat/obstack.h:368:4: note: expanded from macro 'obstack_alloc'
   obstack_finish (__h); })
   ^~~~~~~~~~~~~~~~~~~~
/datasets/git/./compat/obstack.h:391:8: note: expanded from macro 'obstack_finish'
     = __PTR_ALIGN (__o1->object_base, __o1->next_free,                 \
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./compat/obstack.h:139:4: note: expanded from macro '__PTR_ALIGN'
   __BPTR_ALIGN((B), (P), (A)) :                                            \
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./compat/obstack.h:128:59: note: expanded from macro '__BPTR_ALIGN'
#define __BPTR_ALIGN(B, P, A) ((B) + (((P) - (B) + (A)) & ~(A)))
                                                          ^~~~
/datasets/git/kwset.c:405:23: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
      kwset->target = obstack_alloc(&kwset->obstack, kwset->mind);
                      ^
/datasets/git/./compat/obstack.h:368:4: note: expanded from macro 'obstack_alloc'
   obstack_finish (__h); })
   ^
/datasets/git/./compat/obstack.h:391:8: note: expanded from macro 'obstack_finish'
     = __PTR_ALIGN (__o1->object_base, __o1->next_free,                 \
       ^
/datasets/git/./compat/obstack.h:140:4: note: expanded from macro '__PTR_ALIGN'
   (void *)__BPTR_ALIGN((PTR_INT_TYPE)(void *)0, (PTR_INT_TYPE)(P), (A))            \
   ^
/datasets/git/kwset.c:406:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
      if (!kwset->target)
                         ^
                          {
/datasets/git/kwset.c:408:7: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
      for (i = kwset->mind - 1, curr = kwset->trie; i >= 0; --i)
      ^
/datasets/git/kwset.c:408:53: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
      for (i = kwset->mind - 1, curr = kwset->trie; i >= 0; --i)
                                                    ^
/datasets/git/kwset.c:410:23: warning: narrowing conversion from 'unsigned char' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
          kwset->target[i] = curr->links->label;
                             ^
/datasets/git/kwset.c:414:7: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
      for (i = 0; i < kwset->mind; ++i)
      ^
/datasets/git/kwset.c:414:19: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
      for (i = 0; i < kwset->mind; ++i)
                  ^
/datasets/git/kwset.c:414:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
      for (i = 0; i < kwset->mind; ++i)
                                       ^
                                        {
/datasets/git/kwset.c:419:7: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
      for (i = kwset->mind - 2; i >= 0; --i)
      ^
/datasets/git/kwset.c:419:33: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
      for (i = kwset->mind - 2; i >= 0; --i)
                                ^
/datasets/git/kwset.c:419:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
      for (i = kwset->mind - 2; i >= 0; --i)
                                            ^
                                             {
/datasets/git/kwset.c:420:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (kwset->target[i] == c)
                                  ^
                                   {
/datasets/git/kwset.c:426:29: warning: variable 'fail' is not initialized [cppcoreguidelines-init-variables]
      register struct trie *fail;
                            ^
                                 = NULL
/datasets/git/kwset.c:427:7: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
      struct trie *last, *next[NCHAR];
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/kwset.c:387:3: note: inferred assignment of ID-dependent value from ID-dependent member trie [altera-id-dependent-backward-branch]
  register struct trie *curr;
  ^
/datasets/git/kwset.c:427:20: warning: variable 'last' is not initialized [cppcoreguidelines-init-variables]
      struct trie *last, *next[NCHAR];
                   ^
/datasets/git/kwset.c:426:7: note: inferred assignment of ID-dependent value from ID-dependent member fail [altera-id-dependent-backward-branch]
      register struct trie *fail;
      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/kwset.c:431:39: warning: backward branch (for loop) is ID-dependent due to variable reference to 'curr' and may cause performance degradation [altera-id-dependent-backward-branch]
      for (curr = last = kwset->trie; curr; curr = curr->next)
                                      ^
/datasets/git/kwset.c:387:3: note: inferred assignment of ID-dependent value from ID-dependent member trie
  register struct trie *curr;
  ^
/datasets/git/kwset.c:447:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
          for (fail = curr->fail; fail; fail = fail->fail)
          ^
/datasets/git/kwset.c:447:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'fail' and may cause performance degradation [altera-id-dependent-backward-branch]
          for (fail = curr->fail; fail; fail = fail->fail)
                                  ^
/datasets/git/kwset.c:452:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
              if (!hasevery(fail->links, curr->links))
                                                      ^
                                                       {
/datasets/git/kwset.c:453:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (curr->depth - fail->depth < fail->shift)
                                                            ^
                                                             {
/datasets/git/kwset.c:459:74: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
              if (curr->accepting && fail->maxshift > curr->depth - fail->depth)
                                                                                ^
                                                                                 {
/datasets/git/kwset.c:466:7: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
      for (curr = kwset->trie->next; curr; curr = curr->next)
      ^
/datasets/git/kwset.c:466:19: warning: Access to field 'next' results in a dereference of a null pointer (loaded from field 'trie') [clang-analyzer-core.NullDereference]
      for (curr = kwset->trie->next; curr; curr = curr->next)
                  ^      ~~~~
/datasets/git/kwset.c:396:17: note: Assuming the condition is false
  memset(delta, kwset->mind < UCHAR_MAX ? kwset->mind : UCHAR_MAX, NCHAR);
                ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/kwset.c:396:17: note: '?' condition is false
/datasets/git/kwset.c:400:7: note: Assuming field 'words' is not equal to 1
  if (kwset->words == 1 && kwset->trans == NULL)
      ^~~~~~~~~~~~~~~~~
/datasets/git/kwset.c:400:25: note: Left side of '&&' is false
  if (kwset->words == 1 && kwset->trans == NULL)
                        ^
/datasets/git/kwset.c:431:39: note: Assuming pointer value is null
      for (curr = last = kwset->trie; curr; curr = curr->next)
                                      ^~~~
/datasets/git/kwset.c:431:7: note: Loop condition is false. Execution continues on line 466
      for (curr = last = kwset->trie; curr; curr = curr->next)
      ^
/datasets/git/kwset.c:466:19: note: Access to field 'next' results in a dereference of a null pointer (loaded from field 'trie')
      for (curr = kwset->trie->next; curr; curr = curr->next)
                  ^      ~~~~
/datasets/git/kwset.c:466:38: warning: backward branch (for loop) is ID-dependent due to variable reference to 'curr' and may cause performance degradation [altera-id-dependent-backward-branch]
      for (curr = kwset->trie->next; curr; curr = curr->next)
                                     ^
/datasets/git/kwset.c:468:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
          if (curr->maxshift > curr->parent->maxshift)
                                                      ^
                                                       {
/datasets/git/kwset.c:470:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
          if (curr->shift > curr->maxshift)
                                           ^
                                            {
/datasets/git/kwset.c:476:7: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
      for (i = 0; i < NCHAR; ++i)
      ^
/datasets/git/kwset.c:476:19: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
      for (i = 0; i < NCHAR; ++i)
                  ^
/datasets/git/kwset.c:476:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
      for (i = 0; i < NCHAR; ++i)
                                 ^
                                  {
/datasets/git/kwset.c:480:12: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
      if ((trans = kwset->trans))
           ^
/datasets/git/kwset.c:480:12: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/kwset.c:480:12: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/kwset.c:480:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
      if ((trans = kwset->trans))
                                 ^
                                  {
/datasets/git/kwset.c:481:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < NCHAR; ++i)
        ^
/datasets/git/kwset.c:481:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < NCHAR; ++i)
                    ^
/datasets/git/kwset.c:481:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < NCHAR; ++i)
                                   ^
                                    {
/datasets/git/kwset.c:483:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
      else
          ^
           {
/datasets/git/kwset.c:484:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        COPY_ARRAY(kwset->next, next, NCHAR);
        ^
/datasets/git/./git-compat-util.h:1094:63: note: expanded from macro 'COPY_ARRAY'
#define COPY_ARRAY(dst, src, n) copy_array((dst), (src), (n), sizeof(*(dst)) + \
                                                              ^
/datasets/git/kwset.c:488:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
  if ((trans = kwset->trans))
       ^
/datasets/git/kwset.c:488:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/kwset.c:488:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/kwset.c:488:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  if ((trans = kwset->trans))
                             ^
                              {
/datasets/git/kwset.c:489:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
    for (i = 0; i < NCHAR; ++i)
    ^
/datasets/git/kwset.c:489:17: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
    for (i = 0; i < NCHAR; ++i)
                ^
/datasets/git/kwset.c:489:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
    for (i = 0; i < NCHAR; ++i)
                               ^
                                {
/datasets/git/kwset.c:491:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  else
      ^
       {
/datasets/git/kwset.c:492:5: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
    memcpy(kwset->delta, delta, NCHAR);
    ^~~~~~
/datasets/git/kwset.c:492:5: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
    memcpy(kwset->delta, delta, NCHAR);
    ^~~~~~
/datasets/git/kwset.c:499:1: warning: function 'bmexec' has cognitive complexity of 38 (threshold 25) [readability-function-cognitive-complexity]
bmexec (kwset_t kws, char const *text, size_t size)
^
/datasets/git/kwset.c:509:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  if (len == 0)
  ^
/datasets/git/kwset.c:511:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  if (len > size)
  ^
/datasets/git/kwset.c:513:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  if (len == 1)
  ^
/datasets/git/kwset.c:516:17: note: +2, including nesting penalty of 1, nesting level increased to 2
      return tp ? tp - text : -1;
                ^
/datasets/git/kwset.c:526:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  if (size > 12 * len)
  ^
/datasets/git/kwset.c:530:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        while (tp <= ep)
        ^
/datasets/git/kwset.c:534:6: note: +3, including nesting penalty of 2, nesting level increased to 3
            if (d == 0)
            ^
/datasets/git/kwset.c:539:6: note: +3, including nesting penalty of 2, nesting level increased to 3
            if (d == 0)
            ^
/datasets/git/kwset.c:544:6: note: +3, including nesting penalty of 2, nesting level increased to 3
            if (d == 0)
            ^
/datasets/git/kwset.c:551:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        if (U(tp[-2]) == gc)
        ^
/datasets/git/kwset.c:553:6: note: +3, including nesting penalty of 2, nesting level increased to 3
            for (i = 3; i <= len && U(tp[-i]) == U(sp[-i]); ++i)
            ^
/datasets/git/kwset.c:553:27: note: +1
            for (i = 3; i <= len && U(tp[-i]) == U(sp[-i]); ++i)
                                 ^
/datasets/git/kwset.c:555:6: note: +3, including nesting penalty of 2, nesting level increased to 3
            if (i > len)
            ^
/datasets/git/kwset.c:565:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  while (d <= ep - tp)
  ^
/datasets/git/kwset.c:568:7: note: +2, including nesting penalty of 1, nesting level increased to 2
      if (d != 0)
      ^
/datasets/git/kwset.c:570:7: note: +2, including nesting penalty of 1, nesting level increased to 2
      if (U(tp[-2]) == gc)
      ^
/datasets/git/kwset.c:572:4: note: +3, including nesting penalty of 2, nesting level increased to 3
          for (i = 3; i <= len && U(tp[-i]) == U(sp[-i]); ++i)
          ^
/datasets/git/kwset.c:572:25: note: +1
          for (i = 3; i <= len && U(tp[-i]) == U(sp[-i]); ++i)
                               ^
/datasets/git/kwset.c:574:4: note: +3, including nesting penalty of 2, nesting level increased to 3
          if (i > len)
          ^
/datasets/git/kwset.c:501:23: warning: variable 'kwset' is not initialized [cppcoreguidelines-init-variables]
  struct kwset const *kwset;
                      ^
                            = NULL
/datasets/git/kwset.c:502:33: warning: variable 'd1' is not initialized [cppcoreguidelines-init-variables]
  register unsigned char const *d1;
                                ^
                                   = NULL
/datasets/git/kwset.c:502:33: warning: variable name 'd1' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/kwset.c:503:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
  register char const *ep, *sp, *tp;
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/kwset.c:503:24: warning: variable 'ep' is not initialized [cppcoreguidelines-init-variables]
  register char const *ep, *sp, *tp;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/kwset.c:503:24: warning: variable name 'ep' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/kwset.c:503:29: warning: variable 'sp' is not initialized [cppcoreguidelines-init-variables]
  register char const *ep, *sp, *tp;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/kwset.c:503:29: warning: variable name 'sp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/kwset.c:503:34: warning: variable 'tp' is not initialized [cppcoreguidelines-init-variables]
  register char const *ep, *sp, *tp;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/kwset.c:503:34: warning: variable name 'tp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/kwset.c:504:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
  register int d, gc, i, len, md2;
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/kwset.c:504:16: warning: variable 'd' is not initialized [cppcoreguidelines-init-variables]
  register int d, gc, i, len, md2;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/kwset.c:504:16: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/kwset.c:504:19: warning: variable 'gc' is not initialized [cppcoreguidelines-init-variables]
  register int d, gc, i, len, md2;
                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/kwset.c:504:19: warning: variable name 'gc' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/kwset.c:504:23: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
  register int d, gc, i, len, md2;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/kwset.c:504:23: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/kwset.c:504:26: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
  register int d, gc, i, len, md2;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/kwset.c:504:31: warning: variable 'md2' is not initialized [cppcoreguidelines-init-variables]
  register int d, gc, i, len, md2;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/kwset.c:509:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  if (len == 0)
               ^
                {
/datasets/git/kwset.c:511:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  if (len > size)
                 ^
                  {
/datasets/git/kwset.c:526:14: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
  if (size > 12 * len)
             ^
/datasets/git/kwset.c:526:14: note: make conversion explicit to silence this warning
  if (size > 12 * len)
             ^~~~~~~~
             (unsigned long)( )
/datasets/git/kwset.c:526:14: note: perform multiplication in a wider type
  if (size > 12 * len)
             ^~
             (long)
/datasets/git/kwset.c:526:14: warning: 12 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  if (size > 12 * len)
             ^
/datasets/git/kwset.c:526:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  if (size > 12 * len)
                      ^
                       {
/datasets/git/kwset.c:528:15: warning: result of multiplication in type 'int' is used as a pointer offset after an implicit widening conversion to type 'ptrdiff_t' [bugprone-implicit-widening-of-multiplication-result]
    for (ep = text + size - 11 * len;;)
              ^
/datasets/git/kwset.c:528:29: note: make conversion explicit to silence this warning
    for (ep = text + size - 11 * len;;)
                            ^~~~~~~~
                            (ptrdiff_t)( )
/datasets/git/kwset.c:528:29: note: perform multiplication in a wider type
    for (ep = text + size - 11 * len;;)
                            ^~
                            (ptrdiff_t)
/datasets/git/kwset.c:528:29: warning: 11 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
    for (ep = text + size - 11 * len;;)
                            ^
/datasets/git/kwset.c:530:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (tp <= ep)
        ^
/datasets/git/kwset.c:530:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'tp' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (tp <= ep)
               ^
/datasets/git/kwset.c:534:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            if (d == 0)
                       ^
                        {
/datasets/git/kwset.c:539:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            if (d == 0)
                       ^
                        {
/datasets/git/kwset.c:544:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            if (d == 0)
                       ^
                        {
/datasets/git/kwset.c:553:6: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
            for (i = 3; i <= len && U(tp[-i]) == U(sp[-i]); ++i)
            ^
/datasets/git/kwset.c:553:18: warning: backward branch (for loop) is ID-dependent due to variable reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
            for (i = 3; i <= len && U(tp[-i]) == U(sp[-i]); ++i)
                        ^
/datasets/git/kwset.c:553:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            for (i = 3; i <= len && U(tp[-i]) == U(sp[-i]); ++i)
                                                                ^
                                                                 {
/datasets/git/kwset.c:555:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            if (i > len)
                        ^
                         {
/datasets/git/kwset.c:565:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'd' and may cause performance degradation [altera-id-dependent-backward-branch]
  while (d <= ep - tp)
         ^
/datasets/git/kwset.c:568:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
      if (d != 0)
                 ^
                  {
/datasets/git/kwset.c:572:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
          for (i = 3; i <= len && U(tp[-i]) == U(sp[-i]); ++i)
          ^
/datasets/git/kwset.c:572:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
          for (i = 3; i <= len && U(tp[-i]) == U(sp[-i]); ++i)
                      ^
/datasets/git/kwset.c:572:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
          for (i = 3; i <= len && U(tp[-i]) == U(sp[-i]); ++i)
                                                              ^
                                                               {
/datasets/git/kwset.c:574:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
          if (i > len)
                      ^
                       {
/datasets/git/kwset.c:585:1: warning: function 'cwexec' has cognitive complexity of 81 (threshold 25) [readability-function-cognitive-complexity]
cwexec (kwset_t kws, char const *text, size_t len, struct kwsmatch *kwsmatch)
^
/datasets/git/kwset.c:603:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  if (len < kwset->mind)
  ^
/datasets/git/kwset.c:610:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  if ((d = kwset->mind) != 0)
  ^
/datasets/git/kwset.c:612:3: note: +1, nesting level increased to 1
  else
  ^
/datasets/git/kwset.c:615:7: note: +1
      goto match;
      ^
/datasets/git/kwset.c:618:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  if (len >= 4 * kwset->mind)
  ^
/datasets/git/kwset.c:620:3: note: +1, nesting level increased to 1
  else
  ^
/datasets/git/kwset.c:623:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  while (lim - end >= d)
  ^
/datasets/git/kwset.c:625:7: note: +2, including nesting penalty of 1, nesting level increased to 2
      if (qlim && end <= qlim)
      ^
/datasets/git/kwset.c:625:16: note: +1
      if (qlim && end <= qlim)
               ^
/datasets/git/kwset.c:628:4: note: +3, including nesting penalty of 2, nesting level increased to 3
          while ((d = delta[c = *end]) && end < qlim)
          ^
/datasets/git/kwset.c:628:33: note: +1
          while ((d = delta[c = *end]) && end < qlim)
                                       ^
/datasets/git/kwset.c:636:7: note: +1, nesting level increased to 2
      else
      ^
/datasets/git/kwset.c:638:7: note: +2, including nesting penalty of 1, nesting level increased to 2
      if (d)
      ^
/datasets/git/kwset.c:642:7: note: +2, including nesting penalty of 1, nesting level increased to 2
      if (trie->accepting)
      ^
/datasets/git/kwset.c:648:7: note: +2, including nesting penalty of 1, nesting level increased to 2
      while (beg > text)
      ^
/datasets/git/kwset.c:650:14: note: +3, including nesting penalty of 2, nesting level increased to 3
          c = trans ? trans[U(*--beg)] : *--beg;
                    ^
/datasets/git/kwset.c:652:4: note: +3, including nesting penalty of 2, nesting level increased to 3
          while (tree && c != tree->label)
          ^
/datasets/git/kwset.c:652:16: note: +1
          while (tree && c != tree->label)
                      ^
/datasets/git/kwset.c:653:6: note: +4, including nesting penalty of 3, nesting level increased to 4
            if (c < tree->label)
            ^
/datasets/git/kwset.c:655:6: note: +1, nesting level increased to 4
            else
            ^
/datasets/git/kwset.c:657:4: note: +3, including nesting penalty of 2, nesting level increased to 3
          if (tree)
          ^
/datasets/git/kwset.c:660:8: note: +4, including nesting penalty of 3, nesting level increased to 4
              if (trie->accepting)
              ^
/datasets/git/kwset.c:666:4: note: +1, nesting level increased to 3
          else
          ^
/datasets/git/kwset.c:670:7: note: +2, including nesting penalty of 1, nesting level increased to 2
      if (mch)
      ^
/datasets/git/kwset.c:679:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  if (lim - mch > kwset->maxd)
  ^
/datasets/git/kwset.c:683:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  while (lim - end >= d)
  ^
/datasets/git/kwset.c:685:7: note: +2, including nesting penalty of 1, nesting level increased to 2
      if ((d = delta[c = (end += d)[-1]]) != 0)
      ^
/datasets/git/kwset.c:688:7: note: +2, including nesting penalty of 1, nesting level increased to 2
      if (!(trie = next[c]))
      ^
/datasets/git/kwset.c:693:7: note: +2, including nesting penalty of 1, nesting level increased to 2
      if (trie->accepting && beg <= mch)
      ^
/datasets/git/kwset.c:693:27: note: +1
      if (trie->accepting && beg <= mch)
                          ^
/datasets/git/kwset.c:699:7: note: +2, including nesting penalty of 1, nesting level increased to 2
      while (beg > text)
      ^
/datasets/git/kwset.c:701:14: note: +3, including nesting penalty of 2, nesting level increased to 3
          c = trans ? trans[U(*--beg)] : *--beg;
                    ^
/datasets/git/kwset.c:703:4: note: +3, including nesting penalty of 2, nesting level increased to 3
          while (tree && c != tree->label)
          ^
/datasets/git/kwset.c:703:16: note: +1
          while (tree && c != tree->label)
                      ^
/datasets/git/kwset.c:704:6: note: +4, including nesting penalty of 3, nesting level increased to 4
            if (c < tree->label)
            ^
/datasets/git/kwset.c:706:6: note: +1, nesting level increased to 4
            else
            ^
/datasets/git/kwset.c:708:4: note: +3, including nesting penalty of 2, nesting level increased to 3
          if (tree)
          ^
/datasets/git/kwset.c:711:8: note: +4, including nesting penalty of 3, nesting level increased to 4
              if (trie->accepting && beg <= mch)
              ^
/datasets/git/kwset.c:711:28: note: +1
              if (trie->accepting && beg <= mch)
                                  ^
/datasets/git/kwset.c:717:4: note: +1, nesting level increased to 3
          else
          ^
/datasets/git/kwset.c:721:7: note: +2, including nesting penalty of 1, nesting level increased to 2
      if (lmch)
      ^
/datasets/git/kwset.c:724:4: note: +1
          goto match;
          ^
/datasets/git/kwset.c:726:7: note: +2, including nesting penalty of 1, nesting level increased to 2
      if (!d)
      ^
/datasets/git/kwset.c:730:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  if (kwsmatch)
  ^
/datasets/git/kwset.c:587:23: warning: variable 'kwset' is not initialized [cppcoreguidelines-init-variables]
  struct kwset const *kwset;
                      ^
                            = NULL
/datasets/git/kwset.c:588:24: warning: variable 'next' is not initialized [cppcoreguidelines-init-variables]
  struct trie * const *next;
                       ^
                            = NULL
/datasets/git/kwset.c:589:22: warning: variable 'trie' is not initialized [cppcoreguidelines-init-variables]
  struct trie const *trie;
                     ^
                          = NULL
/datasets/git/kwset.c:590:22: warning: variable 'accept' is not initialized [cppcoreguidelines-init-variables]
  struct trie const *accept;
                     ^
                            = NULL
/datasets/git/kwset.c:591:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
  char const *beg, *lim, *mch, *lmch;
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/kwset.c:591:15: warning: variable 'beg' is not initialized [cppcoreguidelines-init-variables]
  char const *beg, *lim, *mch, *lmch;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/kwset.c:591:21: warning: variable 'lim' is not initialized [cppcoreguidelines-init-variables]
  char const *beg, *lim, *mch, *lmch;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/kwset.c:591:27: warning: variable 'mch' is not initialized [cppcoreguidelines-init-variables]
  char const *beg, *lim, *mch, *lmch;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/kwset.c:591:33: warning: variable 'lmch' is not initialized [cppcoreguidelines-init-variables]
  char const *beg, *lim, *mch, *lmch;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/kwset.c:592:26: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
  register unsigned char c;
                         ^
                           = 0
/datasets/git/kwset.c:592:26: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/kwset.c:593:33: warning: variable 'delta' is not initialized [cppcoreguidelines-init-variables]
  register unsigned char const *delta;
                                ^
                                      = NULL
/datasets/git/kwset.c:594:16: warning: variable 'd' is not initialized [cppcoreguidelines-init-variables]
  register int d;
               ^
                 = 0
/datasets/git/kwset.c:594:16: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/kwset.c:595:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
  register char const *end, *qlim;
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/kwset.c:595:24: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
  register char const *end, *qlim;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/kwset.c:595:30: warning: variable 'qlim' is not initialized [cppcoreguidelines-init-variables]
  register char const *end, *qlim;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/kwset.c:596:31: warning: variable 'tree' is not initialized [cppcoreguidelines-init-variables]
  register struct tree const *tree;
                              ^
                                   = NULL
/datasets/git/kwset.c:597:33: warning: variable 'trans' is not initialized [cppcoreguidelines-init-variables]
  register unsigned char const *trans;
                                ^
                                      = NULL
/datasets/git/kwset.c:603:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  if (len < kwset->mind)
                        ^
                         {
/datasets/git/kwset.c:610:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
  if ((d = kwset->mind) != 0)
       ^
/datasets/git/kwset.c:610:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/kwset.c:610:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/kwset.c:610:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  if ((d = kwset->mind) != 0)
                             ^
                              {
/datasets/git/kwset.c:618:14: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
  if (len >= 4 * kwset->mind)
             ^
/datasets/git/kwset.c:618:14: note: make conversion explicit to silence this warning
  if (len >= 4 * kwset->mind)
             ^~~~~~~~~~~~~~~
             (unsigned long)( )
/datasets/git/kwset.c:618:14: note: perform multiplication in a wider type
  if (len >= 4 * kwset->mind)
             ^
             (long)
/datasets/git/kwset.c:618:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  if (len >= 4 * kwset->mind)
                             ^
                              {
/datasets/git/kwset.c:619:12: warning: result of multiplication in type 'int' is used as a pointer offset after an implicit widening conversion to type 'ptrdiff_t' [bugprone-implicit-widening-of-multiplication-result]
    qlim = lim - 4 * kwset->mind;
           ^
/datasets/git/kwset.c:619:18: note: make conversion explicit to silence this warning
    qlim = lim - 4 * kwset->mind;
                 ^~~~~~~~~~~~~~~
                 (ptrdiff_t)( )
/datasets/git/kwset.c:619:18: note: perform multiplication in a wider type
    qlim = lim - 4 * kwset->mind;
                 ^
                 (ptrdiff_t)
/datasets/git/kwset.c:620:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  else
      ^
       {
/datasets/git/kwset.c:623:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'lim' and may cause performance degradation [altera-id-dependent-backward-branch]
  while (lim - end >= d)
         ^
/datasets/git/kwset.c:591:3: note: inferred assignment of ID-dependent value from ID-dependent 
  char const *beg, *lim, *mch, *lmch;
  ^
/datasets/git/kwset.c:628:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
          while ((d = delta[c = *end]) && end < qlim)
          ^
/datasets/git/kwset.c:628:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'd' and may cause performance degradation [altera-id-dependent-backward-branch]
          while ((d = delta[c = *end]) && end < qlim)
                 ^
/datasets/git/kwset.c:636:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
      else
          ^
           {
/datasets/git/kwset.c:637:16: warning: Array access results in a null pointer dereference [clang-analyzer-core.NullDereference]
        d = delta[c = (end += d)[-1]];
                      ^
/datasets/git/kwset.c:751:7: note: Assuming field 'words' is not equal to 1
  if (kwset->words == 1 && kwset->trans == NULL)
      ^~~~~~~~~~~~~~~~~
/datasets/git/kwset.c:751:25: note: Left side of '&&' is false
  if (kwset->words == 1 && kwset->trans == NULL)
                        ^
/datasets/git/kwset.c:763:12: note: Calling 'cwexec'
    return cwexec(kws, text, size, kwsmatch);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/kwset.c:603:7: note: Assuming 'len' is >= field 'mind'
  if (len < kwset->mind)
      ^~~~~~~~~~~~~~~~~
/datasets/git/kwset.c:603:3: note: Taking false branch
  if (len < kwset->mind)
  ^
/datasets/git/kwset.c:610:7: note: Assuming the condition is true
  if ((d = kwset->mind) != 0)
      ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/kwset.c:610:3: note: Taking true branch
  if ((d = kwset->mind) != 0)
  ^
/datasets/git/kwset.c:618:7: note: Assuming the condition is true
  if (len >= 4 * kwset->mind)
      ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/kwset.c:618:3: note: Taking true branch
  if (len >= 4 * kwset->mind)
  ^
/datasets/git/kwset.c:623:3: note: Loop condition is true.  Entering loop body
  while (lim - end >= d)
  ^
/datasets/git/kwset.c:625:11: note: Assuming 'qlim' is null
      if (qlim && end <= qlim)
          ^~~~
/datasets/git/kwset.c:625:16: note: Left side of '&&' is false
      if (qlim && end <= qlim)
               ^
/datasets/git/kwset.c:637:16: note: Array access results in a null pointer dereference
        d = delta[c = (end += d)[-1]];
                      ^~~~~~~~~~~~~~
/datasets/git/kwset.c:638:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
      if (d)
            ^
             {
/datasets/git/kwset.c:648:14: warning: backward branch (while loop) is ID-dependent due to variable reference to 'beg' and may cause performance degradation [altera-id-dependent-backward-branch]
      while (beg > text)
             ^
/datasets/git/kwset.c:652:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
          while (tree && c != tree->label)
          ^
/datasets/git/kwset.c:652:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'tree' and may cause performance degradation [altera-id-dependent-backward-branch]
          while (tree && c != tree->label)
                 ^
/datasets/git/kwset.c:652:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
          while (tree && c != tree->label)
                                          ^
                                           {
/datasets/git/kwset.c:653:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            if (c < tree->label)
                                ^
                                 {
/datasets/git/kwset.c:655:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            else
                ^
                 {
/datasets/git/kwset.c:666:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
          else
              ^
               {
/datasets/git/kwset.c:670:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
      if (mch)
              ^
               {
/datasets/git/kwset.c:679:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  if (lim - mch > kwset->maxd)
                              ^
                               {
/datasets/git/kwset.c:683:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'lim' and may cause performance degradation [altera-id-dependent-backward-branch]
  while (lim - end >= d)
         ^
/datasets/git/kwset.c:685:12: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
      if ((d = delta[c = (end += d)[-1]]) != 0)
           ^
/datasets/git/kwset.c:685:12: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/kwset.c:685:12: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/kwset.c:685:22: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
      if ((d = delta[c = (end += d)[-1]]) != 0)
                     ^
/datasets/git/kwset.c:685:22: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/kwset.c:685:22: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/kwset.c:685:27: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
      if ((d = delta[c = (end += d)[-1]]) != 0)
                          ^
/datasets/git/kwset.c:685:27: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/kwset.c:685:27: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/kwset.c:685:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
      if ((d = delta[c = (end += d)[-1]]) != 0)
                                               ^
                                                {
/datasets/git/kwset.c:688:13: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
      if (!(trie = next[c]))
            ^
/datasets/git/kwset.c:688:13: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/kwset.c:688:13: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/kwset.c:591:3: note: inferred assignment of ID-dependent value from ID-dependent variable end [altera-id-dependent-backward-branch]
  char const *beg, *lim, *mch, *lmch;
  ^
/datasets/git/kwset.c:699:14: warning: backward branch (while loop) is ID-dependent due to variable reference to 'beg' and may cause performance degradation [altera-id-dependent-backward-branch]
      while (beg > text)
             ^
/datasets/git/kwset.c:703:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
          while (tree && c != tree->label)
          ^
/datasets/git/kwset.c:703:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'tree' and may cause performance degradation [altera-id-dependent-backward-branch]
          while (tree && c != tree->label)
                 ^
/datasets/git/kwset.c:703:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
          while (tree && c != tree->label)
                                          ^
                                           {
/datasets/git/kwset.c:704:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            if (c < tree->label)
                                ^
                                 {
/datasets/git/kwset.c:706:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            else
                ^
                 {
/datasets/git/kwset.c:717:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
          else
              ^
               {
/datasets/git/kwset.c:726:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
      if (!d)
             ^
              {
/datasets/git/kwset.c:732:25: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
      kwsmatch->index = accept->accepting / 2;
                        ^
/datasets/git/kwset.c:762:3: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
  else
  ^~~~
      return cwexec(kws, text, size, kwsmatch)
/datasets/git/kwset.c:762:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
  else
      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/kwset.c:770:17: warning: variable 'kwset' is not initialized [cppcoreguidelines-init-variables]
  struct kwset *kwset;
                ^
                      = NULL
/datasets/git/levenshtein.c:42:3: warning: 4 adjacent parameters of 'levenshtein' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                int w, int s, int a, int d)
                ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/levenshtein.c:42:7: note: the first parameter in the range is 'w'
                int w, int s, int a, int d)
                    ^
/datasets/git/levenshtein.c:42:28: note: the last parameter in the range is 'd'
                int w, int s, int a, int d)
                                         ^
/datasets/git/levenshtein.c:42:7: warning: parameter name 'w' is too short, expected at least 3 characters [readability-identifier-length]
                int w, int s, int a, int d)
                    ^
/datasets/git/levenshtein.c:42:14: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
                int w, int s, int a, int d)
                           ^
/datasets/git/levenshtein.c:42:21: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
                int w, int s, int a, int d)
                                  ^
/datasets/git/levenshtein.c:42:28: warning: parameter name 'd' is too short, expected at least 3 characters [readability-identifier-length]
                int w, int s, int a, int d)
                                         ^
/datasets/git/levenshtein.c:44:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int len1 = strlen(string1), len2 = strlen(string2);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/levenshtein.c:44:13: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int len1 = strlen(string1), len2 = strlen(string2);
                   ^
/datasets/git/levenshtein.c:44:37: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int len1 = strlen(string1), len2 = strlen(string2);
                                           ^
/datasets/git/levenshtein.c:45:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int *row0, *row1, *row2;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/levenshtein.c:45:7: warning: variable 'row0' is not initialized [cppcoreguidelines-init-variables]
        int *row0, *row1, *row2;
             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/levenshtein.c:45:14: warning: variable 'row1' is not initialized [cppcoreguidelines-init-variables]
        int *row0, *row1, *row2;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/levenshtein.c:45:21: warning: variable 'row2' is not initialized [cppcoreguidelines-init-variables]
        int *row0, *row1, *row2;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/levenshtein.c:46:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, j;
        ^~~~~~~~~
/datasets/git/levenshtein.c:46:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, j;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/levenshtein.c:46:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/levenshtein.c:46:9: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int i, j;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/levenshtein.c:46:9: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/levenshtein.c:44:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int len1 = strlen(string1), len2 = strlen(string2);
        ^
/datasets/git/levenshtein.c:52:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (j = 0; j <= len2; j++)
        ^
/datasets/git/levenshtein.c:46:2: note: inferred assignment of ID-dependent value from ID-dependent variable row1 [altera-id-dependent-backward-branch]
        int i, j;
        ^
/datasets/git/levenshtein.c:52:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'len2' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (j = 0; j <= len2; j++)
                    ^
/datasets/git/levenshtein.c:52:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (j = 0; j <= len2; j++)
                                   ^
                                    {
/datasets/git/levenshtein.c:54:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < len1; i++) {
                    ^
/datasets/git/levenshtein.c:55:8: warning: variable 'dummy' is not initialized [cppcoreguidelines-init-variables]
                int *dummy;
                     ^
                           = NULL
/datasets/git/levenshtein.c:58:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (j = 0; j < len2; j++) {
                ^
/datasets/git/levenshtein.c:58:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'len2' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (j = 0; j < len2; j++) {
                            ^
/datasets/git/levenshtein.c:64:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        row2[j + 1] > row0[j - 1] + w)
                                                                      ^
                                                                       {
/datasets/git/levenshtein.c:67:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (row2[j + 1] > row1[j + 1] + d)
                                                          ^
                                                           {
/datasets/git/levenshtein.c:70:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (row2[j + 1] > row2[j] + a)
                                                      ^
                                                       {
/datasets/git/line-log.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "line-range.h"
^        ~~~~~~~~~~~~~~
         "blob.h"
/datasets/git/line-log.c:20:46: warning: parameter name 'rs' is too short, expected at least 3 characters [readability-identifier-length]
static void range_set_grow(struct range_set *rs, size_t extra)
                                             ^
/datasets/git/line-log.c:22:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(rs->ranges, rs->nr + extra, rs->alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/line-log.c:28:39: warning: parameter name 'rs' is too short, expected at least 3 characters [readability-identifier-length]
void range_set_init(struct range_set *rs, size_t prealloc)
                                      ^
/datasets/git/line-log.c:32:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prealloc)
                     ^
                      {
/datasets/git/line-log.c:36:42: warning: parameter name 'rs' is too short, expected at least 3 characters [readability-identifier-length]
void range_set_release(struct range_set *rs)
                                         ^
/datasets/git/line-log.c:38:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(rs->ranges);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/line-log.c:61:48: warning: parameter name 'rs' is too short, expected at least 3 characters [readability-identifier-length]
void range_set_append_unsafe(struct range_set *rs, long a, long b)
                                               ^
/datasets/git/line-log.c:61:57: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
void range_set_append_unsafe(struct range_set *rs, long a, long b)
                                                        ^
/datasets/git/line-log.c:61:65: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
void range_set_append_unsafe(struct range_set *rs, long a, long b)
                                                                ^
/datasets/git/line-log.c:70:41: warning: parameter name 'rs' is too short, expected at least 3 characters [readability-identifier-length]
void range_set_append(struct range_set *rs, long a, long b)
                                        ^
/datasets/git/line-log.c:70:50: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
void range_set_append(struct range_set *rs, long a, long b)
                                                 ^
/datasets/git/line-log.c:70:58: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
void range_set_append(struct range_set *rs, long a, long b)
                                                         ^
/datasets/git/line-log.c:76:34: warning: parameter name '_r' is too short, expected at least 3 characters [readability-identifier-length]
static int range_cmp(const void *_r, const void *_s)
                                 ^
/datasets/git/line-log.c:76:50: warning: parameter name '_s' is too short, expected at least 3 characters [readability-identifier-length]
static int range_cmp(const void *_r, const void *_s)
                                                 ^
/datasets/git/line-log.c:78:22: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        const struct range *r = _r;
                            ^
/datasets/git/line-log.c:79:22: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
        const struct range *s = _s;
                            ^
/datasets/git/line-log.c:82:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (r->start == s->start)
                                 ^
                                  {
/datasets/git/line-log.c:84:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (r->start < s->start)
                                ^
                                 {
/datasets/git/line-log.c:92:58: warning: parameter name 'rs' is too short, expected at least 3 characters [readability-identifier-length]
static void range_set_check_invariants(struct range_set *rs)
                                                         ^
/datasets/git/line-log.c:94:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i;
                     ^
                       = 0
/datasets/git/line-log.c:94:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/line-log.c:96:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!rs)
                ^
                 {
/datasets/git/line-log.c:99:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (rs->nr)
                   ^
                    {
/datasets/git/line-log.c:102:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 1; i < rs->nr; i++) {
        ^
/datasets/git/line-log.c:102:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 1; i < rs->nr; i++) {
                    ^
/datasets/git/line-log.c:112:49: warning: parameter name 'rs' is too short, expected at least 3 characters [readability-identifier-length]
void sort_and_merge_range_set(struct range_set *rs)
                                                ^
/datasets/git/./line-log.h:17:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        unsigned int alloc, nr;
        ^
/datasets/git/line-log.c:114:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i;
                     ^
                       = 0
/datasets/git/line-log.c:114:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/line-log.c:115:15: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned int o = 0; /* output cursor */
                     ^
/datasets/git/line-log.c:119:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < rs->nr; i++) {
        ^
/datasets/git/line-log.c:119:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < rs->nr; i++) {
                    ^
/datasets/git/line-log.c:120:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (rs->ranges[i].start == rs->ranges[i].end)
                                                             ^
                                                              {
/datasets/git/line-log.c:123:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (rs->ranges[o-1].end < rs->ranges[i].end)
                                                                    ^
                                                                     {
/datasets/git/line-log.c:146:27: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
                             struct range_set *a, struct range_set *b)
                                               ^
/datasets/git/line-log.c:146:48: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
                             struct range_set *a, struct range_set *b)
                                                                    ^
/datasets/git/line-log.c:148:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned int i = 0, j = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./line-log.h:17:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        unsigned int alloc, nr;
        ^
/datasets/git/line-log.c:148:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned int i = 0, j = 0;
                     ^
/datasets/git/line-log.c:148:22: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned int i = 0, j = 0;
                            ^
/datasets/git/line-log.c:149:16: warning: variable name 'ra' is too short, expected at least 3 characters [readability-identifier-length]
        struct range *ra = a->ranges;
                      ^
/datasets/git/line-log.c:150:16: warning: variable name 'rb' is too short, expected at least 3 characters [readability-identifier-length]
        struct range *rb = b->ranges;
                      ^
/datasets/git/line-log.c:154:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (i < a->nr || j < b->nr) {
        ^
/datasets/git/line-log.c:154:9: warning: backward branch (while loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (i < a->nr || j < b->nr) {
               ^
/datasets/git/line-log.c:155:17: warning: variable 'new_range' is not initialized [cppcoreguidelines-init-variables]
                struct range *new_range;
                              ^
                                        = NULL
/datasets/git/line-log.c:157:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ra[i].start < rb[j].start)
                                                      ^
                                                       {
/datasets/git/line-log.c:158:5: warning: repeated branch in conditional chain [bugprone-branch-clone]
                                new_range = &ra[i++];
                                ^
/datasets/git/line-log.c:158:25: note: end of the original
                                new_range = &ra[i++];
                                                    ^
/datasets/git/line-log.c:162:5: note: clone 1 starts here
                                new_range = &ra[i++];
                                ^
/datasets/git/line-log.c:159:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (ra[i].start > rb[j].start)
                                                           ^
                                                            {
/datasets/git/line-log.c:160:5: warning: repeated branch in conditional chain [bugprone-branch-clone]
                                new_range = &rb[j++];
                                ^
/datasets/git/line-log.c:160:25: note: end of the original
                                new_range = &rb[j++];
                                                    ^
/datasets/git/line-log.c:164:5: note: clone 1 starts here
                                new_range = &rb[j++];
                                ^
/datasets/git/line-log.c:161:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (ra[i].end < rb[j].end)
                                                       ^
                                                        {
/datasets/git/line-log.c:163:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/line-log.c:165:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else if (i < a->nr)      /* b exhausted */
                                     ^
                                      {
/datasets/git/line-log.c:167:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else                       /* a exhausted */
                    ^
                     {
/datasets/git/line-log.c:169:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (new_range->start == new_range->end)
                                                       ^
                                                        {
/datasets/git/line-log.c:187:34: warning: 2 adjacent parameters of 'range_set_difference' of similar type ('struct range_set *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void range_set_difference(struct range_set *out,
                                 ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/line-log.c:187:52: note: the first parameter in the range is 'out'
static void range_set_difference(struct range_set *out,
                                                   ^~~
/datasets/git/line-log.c:188:25: note: the last parameter in the range is 'a'
                                  struct range_set *a, struct range_set *b)
                                                    ^
/datasets/git/line-log.c:188:25: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
                                  struct range_set *a, struct range_set *b)
                                                    ^
/datasets/git/line-log.c:188:46: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
                                  struct range_set *a, struct range_set *b)
                                                                         ^
/datasets/git/line-log.c:190:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned int i, j =  0;
        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./line-log.h:17:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        unsigned int alloc, nr;
        ^
/datasets/git/line-log.c:190:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i, j =  0;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/line-log.c:190:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/line-log.c:190:18: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned int i, j =  0;
                        ^
/datasets/git/line-log.c:192:3: note: inferred assignment of ID-dependent value from ID-dependent member start [altera-id-dependent-backward-branch]
                long start = a->ranges[i].start;
                ^
/datasets/git/line-log.c:191:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < a->nr; i++) {
                    ^
/datasets/git/line-log.c:194:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'start' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (start < end) {
                       ^
/datasets/git/line-log.c:195:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (j < b->nr && start >= b->ranges[j].end)
                        ^
/datasets/git/line-log.c:195:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'start' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (j < b->nr && start >= b->ranges[j].end)
                               ^
/datasets/git/line-log.c:195:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        while (j < b->nr && start >= b->ranges[j].end)
                                                                      ^
                                                                       {
/datasets/git/line-log.c:221:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (start < b->ranges[j].start)
                                                               ^
                                                                {
/datasets/git/line-log.c:241:54: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void line_log_data_init(struct line_log_data *r)
                                                     ^
/datasets/git/line-log.c:243:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(r, 0, sizeof(struct line_log_data));
        ^~~~~~
/datasets/git/line-log.c:243:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(r, 0, sizeof(struct line_log_data));
        ^~~~~~
/datasets/git/line-log.c:247:55: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void line_log_data_clear(struct line_log_data *r)
                                                      ^
/datasets/git/line-log.c:250:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (r->pair)
                    ^
                     {
/datasets/git/line-log.c:254:54: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void free_line_log_data(struct line_log_data *r)
                                                     ^
/datasets/git/line-log.c:254:32: note: inferred assignment of ID-dependent value from ID-dependent variable next [altera-id-dependent-backward-branch]
static void free_line_log_data(struct line_log_data *r)
                               ^
/datasets/git/line-log.c:256:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (r) {
        ^
/datasets/git/line-log.c:256:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'r' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (r) {
               ^
/datasets/git/line-log.c:268:24: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        struct line_log_data *p = list;
                              ^
/datasets/git/line-log.c:269:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (insertion_point)
                            ^
                             {
/datasets/git/line-log.c:271:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (p) {
        ^
/datasets/git/line-log.c:271:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (p) {
               ^
/datasets/git/line-log.c:273:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!cmp)
                         ^
                          {
/datasets/git/line-log.c:275:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (insertion_point && cmp < 0)
                                               ^
                                                {
/datasets/git/line-log.c:290:24: warning: variable 'ip' is not initialized [cppcoreguidelines-init-variables]
        struct line_log_data *ip;
                              ^
                                 = NULL
/datasets/git/line-log.c:290:24: warning: variable name 'ip' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/line-log.c:291:24: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        struct line_log_data *p = search_line_log_data(*list, path, &ip);
                              ^
/datasets/git/line-log.c:315:42: warning: 2 adjacent parameters of 'collect_diff_cb' of similar type ('long') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int collect_diff_cb(long start_a, long count_a,
                                         ^~~~~~~~~~~~~
/datasets/git/line-log.c:315:47: note: the first parameter in the range is 'count_a'
static int collect_diff_cb(long start_a, long count_a,
                                              ^~~~~~~
/datasets/git/line-log.c:316:12: note: the last parameter in the range is 'start_b'
                           long start_b, long count_b,
                                ^~~~~~~
/datasets/git/line-log.c:319:30: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
        struct collect_diff_cbdata *d = data;
                                    ^
/datasets/git/line-log.c:321:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (count_a >= 0)
                         ^
                          {
/datasets/git/line-log.c:323:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (count_b >= 0)
                         ^
                          {
/datasets/git/line-log.c:336:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&xpp, 0, sizeof(xpp));
        ^~~~~~
/datasets/git/line-log.c:336:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&xpp, 0, sizeof(xpp));
        ^~~~~~
/datasets/git/line-log.c:337:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&xecfg, 0, sizeof(xecfg));
        ^~~~~~
/datasets/git/line-log.c:337:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&xecfg, 0, sizeof(xecfg));
        ^~~~~~
/datasets/git/line-log.c:342:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&ecb, 0, sizeof(ecb));
        ^~~~~~
/datasets/git/line-log.c:342:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&ecb, 0, sizeof(ecb));
        ^~~~~~
/datasets/git/line-log.c:387:41: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static int ranges_overlap(struct range *a, struct range *b)
                                        ^
/datasets/git/line-log.c:387:58: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static int ranges_overlap(struct range *a, struct range *b)
                                                         ^
/datasets/git/line-log.c:399:30: warning: parameter name 'rs' is too short, expected at least 3 characters [readability-identifier-length]
                                       struct range_set *rs)
                                                         ^
/datasets/git/line-log.c:401:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned int i, j = 0;
        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./line-log.h:17:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        unsigned int alloc, nr;
        ^
/datasets/git/line-log.c:401:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i, j = 0;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/line-log.c:401:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/line-log.c:401:18: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned int i, j = 0;
                        ^
/datasets/git/./line-log.h:12:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        long start, end;
        ^
/datasets/git/line-log.c:405:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < diff->target.nr; i++) {
                    ^
/datasets/git/line-log.c:406:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (diff->target.ranges[i].start > rs->ranges[j].end) {
                ^
/datasets/git/line-log.c:406:10: warning: backward branch (while loop) is ID-dependent due to member reference to 'start' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (diff->target.ranges[i].start > rs->ranges[j].end) {
                       ^
/datasets/git/line-log.c:408:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (j == rs->nr)
                                        ^
                                         {
/datasets/git/line-log.c:426:34: warning: 2 adjacent parameters of 'range_set_shift_diff' of similar type ('struct range_set *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void range_set_shift_diff(struct range_set *out,
                                 ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/line-log.c:426:52: note: the first parameter in the range is 'out'
static void range_set_shift_diff(struct range_set *out,
                                                   ^~~
/datasets/git/line-log.c:427:24: note: the last parameter in the range is 'rs'
                                 struct range_set *rs,
                                                   ^~
/datasets/git/line-log.c:427:24: warning: parameter name 'rs' is too short, expected at least 3 characters [readability-identifier-length]
                                 struct range_set *rs,
                                                   ^
/datasets/git/line-log.c:430:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned int i, j = 0;
        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./line-log.h:17:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        unsigned int alloc, nr;
        ^
/datasets/git/line-log.c:430:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i, j = 0;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/line-log.c:430:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/line-log.c:430:18: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned int i, j = 0;
                        ^
/datasets/git/line-log.c:432:2: note: inferred assignment of ID-dependent value from ID-dependent member ranges [altera-id-dependent-backward-branch]
        struct range *src = rs->ranges;
        ^
/datasets/git/line-log.c:436:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < rs->nr; i++) {
                    ^
/datasets/git/line-log.c:437:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (j < diff->target.nr && src[i].start >= target[j].start) {
                ^
/datasets/git/line-log.c:437:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'src' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (j < diff->target.nr && src[i].start >= target[j].start) {
                       ^
/datasets/git/line-log.c:453:39: warning: 2 adjacent parameters of 'range_set_map_across_diff' of similar type ('struct range_set *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void range_set_map_across_diff(struct range_set *out,
                                      ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/line-log.c:453:57: note: the first parameter in the range is 'out'
static void range_set_map_across_diff(struct range_set *out,
                                                        ^~~
/datasets/git/line-log.c:454:29: note: the last parameter in the range is 'rs'
                                      struct range_set *rs,
                                                        ^~
/datasets/git/line-log.c:454:29: warning: parameter name 'rs' is too short, expected at least 3 characters [readability-identifier-length]
                                      struct range_set *rs,
                                                        ^
/datasets/git/line-log.c:477:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/line-log.c:477:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/line-log.c:479:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < revs->pending.nr; i++) {
        ^
/datasets/git/line-log.c:481:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (obj->flags & UNINTERESTING)
                                 ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/line-log.c:481:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (obj->flags & UNINTERESTING)
                                               ^
                                                {
/datasets/git/line-log.c:484:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!obj || obj->type != OBJ_COMMIT)
                                                    ^
                                                     {
/datasets/git/line-log.c:486:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (commit)
                           ^
                            {
/datasets/git/line-log.c:494:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!commit)
                    ^
                     {
/datasets/git/line-log.c:500:47: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void fill_blob_sha1(struct repository *r, struct commit *commit,
                                              ^
/datasets/git/line-log.c:503:17: warning: variable 'mode' is not initialized [cppcoreguidelines-init-variables]
        unsigned short mode;
                       ^
                            = 0
/datasets/git/line-log.c:506:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_tree_entry(r, &commit->object.oid, spec->path, &oid, &mode))
                                                                            ^
                                                                             {
/datasets/git/line-log.c:510:2: warning: redundant return statement at the end of a function with a void return type [readability-redundant-control-flow]
        return;
~~~~~~~~^~~~~~~
/datasets/git/line-log.c:513:47: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void fill_line_ends(struct repository *r,
                                              ^
/datasets/git/line-log.c:518:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int num = 0, size = 50;
        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/line-log.c:518:22: warning: 50 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        int num = 0, size = 50;
                            ^
/datasets/git/line-log.c:523:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (diff_populate_filespec(r, spec, NULL))
                                                  ^
                                                   {
/datasets/git/line-log.c:531:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        ALLOC_GROW(ends, (cur + 1), size);
                        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/line-log.c:543:8: warning: accessing fields in struct 'nth_line_cb' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct nth_line_cb {
       ^
/datasets/git/line-log.c:543:8: note: use "__attribute__((aligned(32)))" to align struct 'nth_line_cb' to 32 bytes
/datasets/git/line-log.c:551:22: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
        struct nth_line_cb *d = data;
                            ^
/datasets/git/line-log.c:555:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (line == 0)
                      ^
                       {
/datasets/git/line-log.c:557:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else
        ^~~~
                        return (char *)d->spec->data + d->line_ends[line] + 1
/datasets/git/line-log.c:557:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/line-log.c:562:1: warning: function 'parse_lines' has cognitive complexity of 26 (threshold 25) [readability-function-cognitive-complexity]
parse_lines(struct repository *r, struct commit *commit,
^
/datasets/git/line-log.c:572:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for_each_string_list_item(item, args) {
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/line-log.c:572:2: note: +1
        for_each_string_list_item(item, args) {
        ^
/datasets/git/./string-list.h:152:12: note: expanded from macro 'for_each_string_list_item'
             item && item < (list)->items + (list)->nr; \
                  ^
/datasets/git/line-log.c:580:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!name_part || *name_part != ':' || !name_part[1])
                ^
/datasets/git/line-log.c:580:39: note: +1
                if (!name_part || *name_part != ':' || !name_part[1])
                                                    ^
/datasets/git/line-log.c:586:42: note: +2, including nesting penalty of 1, nesting level increased to 2
                full_name = prefix_path(prefix, prefix ? strlen(prefix) : 0,
                                                       ^
/datasets/git/line-log.c:597:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (p && p->ranges.nr)
                ^
/datasets/git/line-log.c:597:9: note: +1
                if (p && p->ranges.nr)
                      ^
/datasets/git/line-log.c:599:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/line-log.c:602:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (parse_range_arg(range_part, nth_line, &cb_data,
                ^
/datasets/git/line-log.c:606:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((!lines && (begin || end)) || lines < begin)
                ^
/datasets/git/line-log.c:606:34: note: +1
                if ((!lines && (begin || end)) || lines < begin)
                                               ^
/datasets/git/line-log.c:606:15: note: +1
                if ((!lines && (begin || end)) || lines < begin)
                            ^
/datasets/git/line-log.c:606:25: note: +1
                if ((!lines && (begin || end)) || lines < begin)
                                      ^
/datasets/git/line-log.c:608:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (begin < 1)
                ^
/datasets/git/line-log.c:610:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (end < 1 || lines < end)
                ^
/datasets/git/line-log.c:610:15: note: +1
                if (end < 1 || lines < end)
                            ^
/datasets/git/line-log.c:616:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                FREE_AND_NULL(ends);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/line-log.c:619:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (p = ranges; p; p = p->next)
        ^
/datasets/git/line-log.c:562:32: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
parse_lines(struct repository *r, struct commit *commit,
                               ^
/datasets/git/line-log.c:568:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct string_list_item *item;
        ^
/datasets/git/line-log.c:568:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/line-log.c:570:24: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct line_log_data *p;
                              ^
                                = NULL
/datasets/git/line-log.c:570:24: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/line-log.c:572:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(item, args) {
                                  ^
/datasets/git/line-log.c:573:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                const char *name_part, *range_part;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/line-log.c:573:15: warning: variable 'name_part' is not initialized [cppcoreguidelines-init-variables]
                const char *name_part, *range_part;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/line-log.c:573:27: warning: variable 'range_part' is not initialized [cppcoreguidelines-init-variables]
                const char *name_part, *range_part;
                                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/line-log.c:574:9: warning: variable 'full_name' is not initialized [cppcoreguidelines-init-variables]
                char *full_name;
                      ^
                                = NULL
/datasets/git/line-log.c:575:25: warning: variable 'spec' is not initialized [cppcoreguidelines-init-variables]
                struct diff_filespec *spec;
                                      ^
                                           = NULL
/datasets/git/line-log.c:576:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                long begin = 0, end = 0;
                ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/line-log.c:577:8: warning: variable 'anchor' is not initialized [cppcoreguidelines-init-variables]
                long anchor;
                     ^
                            = 0
/datasets/git/line-log.c:580:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!name_part || *name_part != ':' || !name_part[1])
                                                                     ^
                                                                      {
/datasets/git/line-log.c:586:44: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                full_name = prefix_path(prefix, prefix ? strlen(prefix) : 0,
                                                         ^
/datasets/git/line-log.c:597:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (p && p->ranges.nr)
                                      ^
                                       {
/datasets/git/line-log.c:599:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/line-log.c:604:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                    full_name, r->index))
                                                         ^
                                                          {
/datasets/git/line-log.c:606:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((!lines && (begin || end)) || lines < begin)
                                                                ^
                                                                 {
/datasets/git/line-log.c:608:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (begin < 1)
                              ^
                               {
/datasets/git/line-log.c:610:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (end < 1 || lines < end)
                                           ^
                                            {
/datasets/git/line-log.c:616:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FREE_AND_NULL(ends);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/line-log.c:619:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = ranges; p; p = p->next)
        ^
/datasets/git/line-log.c:619:19: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = ranges; p; p = p->next)
                         ^
/datasets/git/line-log.c:619:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (p = ranges; p; p = p->next)
                                        ^
                                         {
/datasets/git/line-log.c:625:75: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static struct line_log_data *line_log_data_copy_one(struct line_log_data *r)
                                                                          ^
/datasets/git/line-log.c:639:42: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
line_log_data_copy(struct line_log_data *r)
                                         ^
/datasets/git/line-log.c:642:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct line_log_data *tmp = NULL, *prev = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/line-log.c:639:20: note: inferred assignment of ID-dependent value from ID-dependent member next [altera-id-dependent-backward-branch]
line_log_data_copy(struct line_log_data *r)
                   ^
/datasets/git/line-log.c:645:8: warning: Although the value stored to 'tmp' is used in the enclosing expression, the value is never actually read from 'tmp' [clang-analyzer-deadcode.DeadStores]
        ret = tmp = prev = line_log_data_copy_one(r);
              ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/line-log.c:645:8: note: Although the value stored to 'tmp' is used in the enclosing expression, the value is never actually read from 'tmp'
        ret = tmp = prev = line_log_data_copy_one(r);
              ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/line-log.c:647:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (r) {
        ^
/datasets/git/line-log.c:647:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'r' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (r) {
               ^
/datasets/git/line-log.c:658:72: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static struct line_log_data *line_log_data_merge(struct line_log_data *a,
                                                                       ^
/datasets/git/line-log.c:659:30: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
                                                 struct line_log_data *b)
                                                                       ^
/datasets/git/line-log.c:661:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct line_log_data *head = NULL, **pp = &head;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/line-log.c:658:50: note: inferred assignment of ID-dependent value from ID-dependent member next [altera-id-dependent-backward-branch]
static struct line_log_data *line_log_data_merge(struct line_log_data *a,
                                                 ^
/datasets/git/line-log.c:661:39: warning: variable name 'pp' is too short, expected at least 3 characters [readability-identifier-length]
        struct line_log_data *head = NULL, **pp = &head;
                                             ^
/datasets/git/line-log.c:663:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (a || b) {
        ^
/datasets/git/line-log.c:663:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'a' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (a || b) {
               ^
/datasets/git/line-log.c:664:25: warning: variable 'src' is not initialized [cppcoreguidelines-init-variables]
                struct line_log_data *src;
                                      ^
                                          = NULL
/datasets/git/line-log.c:666:25: warning: variable 'd' is not initialized [cppcoreguidelines-init-variables]
                struct line_log_data *d;
                                      ^
                                        = NULL
/datasets/git/line-log.c:666:25: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/line-log.c:667:7: warning: variable 'cmp' is not initialized [cppcoreguidelines-init-variables]
                int cmp;
                    ^
                        = 0
/datasets/git/line-log.c:668:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!a)
                       ^
                        {
/datasets/git/line-log.c:670:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!b)
                            ^
                             {
/datasets/git/line-log.c:672:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/line-log.c:691:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (src2)
                         ^
                          {
/datasets/git/line-log.c:693:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/line-log.c:710:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else if (range)
                         ^
                          {
/datasets/git/line-log.c:713:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (new_line)
                     ^
                      {
/datasets/git/line-log.c:719:24: warning: variable 'r' is not initialized [cppcoreguidelines-init-variables]
        struct line_log_data *r;
                              ^
                                = NULL
/datasets/git/line-log.c:719:24: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/line-log.c:721:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!r)
               ^
                {
/datasets/git/line-log.c:731:24: warning: variable 'd' is not initialized [cppcoreguidelines-init-variables]
        struct line_log_data *d;
                              ^
                                = NULL
/datasets/git/line-log.c:731:24: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/line-log.c:735:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (d = ret; d; d = d->next)
        ^
/datasets/git/line-log.c:735:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'd' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (d = ret; d; d = d->next)
                      ^
/datasets/git/line-log.c:735:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (d = ret; d; d = d->next)
                                     ^
                                      {
/datasets/git/line-log.c:744:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/line-log.c:744:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/line-log.c:745:24: warning: variable 'r' is not initialized [cppcoreguidelines-init-variables]
        struct line_log_data *r;
                              ^
                                = NULL
/datasets/git/line-log.c:745:24: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/line-log.c:747:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0, r = range; i < pathspec->nr && r; i++, r = r->next)
        ^
/datasets/git/line-log.c:747:25: warning: backward branch (for loop) is ID-dependent due to variable reference to 'r' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0, r = range; i < pathspec->nr && r; i++, r = r->next)
                               ^
/datasets/git/line-log.c:747:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0, r = range; i < pathspec->nr && r; i++, r = r->next)
                                                                       ^
                                                                        {
/datasets/git/line-log.c:748:7: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (strcmp(pathspec->items[i].match, r->path))
                    ^
                                                              != 0
/datasets/git/line-log.c:748:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strcmp(pathspec->items[i].match, r->path))
                                                              ^
                                                               {
/datasets/git/line-log.c:750:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (i < pathspec->nr || r)
                                  ^
                                   {
/datasets/git/line-log.c:760:24: warning: variable 'r' is not initialized [cppcoreguidelines-init-variables]
        struct line_log_data *r;
                              ^
                                = NULL
/datasets/git/line-log.c:760:24: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/line-log.c:762:15: warning: variable 'paths' is not initialized [cppcoreguidelines-init-variables]
        const char **paths;
                     ^
                           = NULL
/datasets/git/line-log.c:764:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (r = range; r; r = r->next)
        ^
/datasets/git/line-log.c:764:18: warning: backward branch (for loop) is ID-dependent due to variable reference to 'r' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (r = range; r; r = r->next)
                        ^
/datasets/git/line-log.c:764:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (r = range; r; r = r->next)
                                       ^
                                        {
/datasets/git/line-log.c:768:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        parse_pathspec(pathspec, 0, PATHSPEC_PREFER_FULL, "", paths);
                                    ^
/datasets/git/./pathspec.h:66:31: note: expanded from macro 'PATHSPEC_PREFER_FULL'
#define PATHSPEC_PREFER_FULL (1<<1) /* No args means match everything */
                              ^
/datasets/git/line-log.c:776:24: warning: variable 'range' is not initialized [cppcoreguidelines-init-variables]
        struct line_log_data *range;
                              ^
                                    = NULL
/datasets/git/line-log.c:789:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(dst, src, sizeof(struct diff_queue_struct));
        ^~~~~~
/datasets/git/line-log.c:789:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(dst, src, sizeof(struct diff_queue_struct));
        ^~~~~~
/datasets/git/line-log.c:790:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        DIFF_QUEUE_CLEAR(src);
        ^
/datasets/git/./diffcore.h:155:2: note: expanded from macro 'DIFF_QUEUE_CLEAR'
        do { \
        ^
/datasets/git/line-log.c:795:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/line-log.c:795:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/line-log.c:801:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                struct line_log_data *rg = NULL;
                ^
/datasets/git/line-log.c:797:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        DIFF_QUEUE_CLEAR(&outq);
        ^
/datasets/git/./diffcore.h:155:2: note: expanded from macro 'DIFF_QUEUE_CLEAR'
        do { \
        ^
/datasets/git/./diffcore.h:160:1: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
extern struct diff_queue_struct diff_queued_diff;
^
/datasets/git/line-log.c:799:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'diff_queued_diff' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < diff_queued_diff.nr; i++) {
                    ^
/datasets/git/line-log.c:800:25: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct diff_filepair *p = diff_queued_diff.queue[i];
                                      ^
/datasets/git/line-log.c:801:25: warning: variable name 'rg' is too short, expected at least 3 characters [readability-identifier-length]
                struct line_log_data *rg = NULL;
                                      ^
/datasets/git/line-log.c:804:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (keep_deletions)
                                           ^
                                            {
/datasets/git/line-log.c:806:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/line-log.c:810:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (rg = range; rg; rg = rg->next) {
                ^
/datasets/git/line-log.c:810:20: warning: backward branch (for loop) is ID-dependent due to variable reference to 'rg' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (rg = range; rg; rg = rg->next) {
                                 ^
/datasets/git/line-log.c:811:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!strcmp(rg->path, p->two->path))
                                                            ^
                                                             {
/datasets/git/line-log.c:814:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (rg)
                       ^
                        {
/datasets/git/line-log.c:816:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/line-log.c:825:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/line-log.c:825:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/line-log.c:826:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < diff_queued_diff.nr; i++)
        ^
/datasets/git/line-log.c:826:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'diff_queued_diff' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < diff_queued_diff.nr; i++)
                    ^
/datasets/git/line-log.c:826:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < diff_queued_diff.nr; i++)
                                                 ^
                                                  {
/datasets/git/line-log.c:840:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct object_id *tree_oid, *parent_tree_oid;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/line-log.c:840:20: warning: variable 'tree_oid' is not initialized [cppcoreguidelines-init-variables]
        struct object_id *tree_oid, *parent_tree_oid;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/line-log.c:840:31: warning: variable 'parent_tree_oid' is not initialized [cppcoreguidelines-init-variables]
        struct object_id *tree_oid, *parent_tree_oid;
                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/line-log.c:852:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        DIFF_QUEUE_CLEAR(&diff_queued_diff);
        ^
/datasets/git/./diffcore.h:155:2: note: expanded from macro 'DIFF_QUEUE_CLEAR'
        do { \
        ^
/datasets/git/line-log.c:857:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                DIFF_QUEUE_CLEAR(&diff_queued_diff);
                ^
/datasets/git/./diffcore.h:155:2: note: expanded from macro 'DIFF_QUEUE_CLEAR'
        do { \
        ^
/datasets/git/line-log.c:870:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (line == 0)
                      ^
                       {
/datasets/git/line-log.c:872:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else
        ^~~~
                        return (char *)data + ends[line] + 1
/datasets/git/line-log.c:872:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/line-log.c:873:25: warning: Array access (from variable 'ends') results in a null pointer dereference [clang-analyzer-core.NullDereference]
                return (char *)data + ends[line] + 1;
                                      ^
/datasets/git/line-log.c:1141:6: note: Assuming the condition is true
        if (!(rev->diffopt.output_format & DIFF_FORMAT_NO_OUTPUT)) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/line-log.c:1141:2: note: Taking true branch
        if (!(rev->diffopt.output_format & DIFF_FORMAT_NO_OUTPUT)) {
        ^
/datasets/git/line-log.c:1143:3: note: Calling 'dump_diff_hacky'
                dump_diff_hacky(rev, range);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/line-log.c:1015:2: note: Loop condition is true.  Entering loop body
        while (range) {
        ^
/datasets/git/line-log.c:1016:3: note: Calling 'dump_diff_hacky_one'
                dump_diff_hacky_one(rev, range);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/line-log.c:915:17: note: 'p_ends' initialized to a null pointer value
        unsigned long *p_ends = NULL, *t_ends = NULL;
                       ^~~~~~
/datasets/git/line-log.c:928:6: note: Assuming 'pair' is non-null
        if (!pair || !diff)
            ^~~~~
/datasets/git/line-log.c:928:6: note: Left side of '||' is false
/datasets/git/line-log.c:928:16: note: 'diff' is non-null
        if (!pair || !diff)
                      ^~~~
/datasets/git/line-log.c:928:2: note: Taking false branch
        if (!pair || !diff)
        ^
/datasets/git/line-log.c:931:6: note: Assuming field 'oid_valid' is 0
        if (pair->one->oid_valid)
            ^~~~~~~~~~~~~~~~~~~~
/datasets/git/line-log.c:931:2: note: Taking false branch
        if (pair->one->oid_valid)
        ^
/datasets/git/line-log.c:937:20: note: Field 'oid_valid' is 0
               pair->one->oid_valid ? "a/" : "",
                          ^
/datasets/git/line-log.c:937:9: note: '?' condition is false
               pair->one->oid_valid ? "a/" : "",
               ^
/datasets/git/line-log.c:938:20: note: Field 'oid_valid' is 0
               pair->one->oid_valid ? pair->one->path : "/dev/null",
                          ^
/datasets/git/line-log.c:938:9: note: '?' condition is false
               pair->one->oid_valid ? pair->one->path : "/dev/null",
               ^
/datasets/git/line-log.c:941:14: note: Assuming 'i' is < field 'nr'
        for (i = 0; i < range->ranges.nr; i++) {
                    ^~~~~~~~~~~~~~~~~~~~
/datasets/git/line-log.c:941:2: note: Loop condition is true.  Entering loop body
        for (i = 0; i < range->ranges.nr; i++) {
        ^
/datasets/git/line-log.c:948:10: note: Assuming 'j' is < field 'nr'
                while (j < diff->target.nr && diff->target.ranges[j].end < t_start)
                       ^~~~~~~~~~~~~~~~~~~
/datasets/git/line-log.c:948:10: note: Left side of '&&' is true
/datasets/git/line-log.c:948:33: note: Assuming 't_start' is <= field 'end'
                while (j < diff->target.nr && diff->target.ranges[j].end < t_start)
                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/line-log.c:948:3: note: Loop condition is false. Execution continues on line 950
                while (j < diff->target.nr && diff->target.ranges[j].end < t_start)
                ^
/datasets/git/line-log.c:950:7: note: 'j' is not equal to field 'nr'
                if (j == diff->target.nr || diff->target.ranges[j].start > t_end)
                    ^
/datasets/git/line-log.c:950:7: note: Left side of '||' is false
/datasets/git/line-log.c:950:31: note: Assuming 't_end' is >= field 'start'
                if (j == diff->target.nr || diff->target.ranges[j].start > t_end)
                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/line-log.c:950:3: note: Taking false branch
                if (j == diff->target.nr || diff->target.ranges[j].start > t_end)
                ^
/datasets/git/line-log.c:955:10: note: 'j_last' is < field 'nr'
                while (j_last < diff->target.nr && diff->target.ranges[j_last].start < t_end)
                       ^~~~~~
/datasets/git/line-log.c:955:10: note: Left side of '&&' is true
/datasets/git/line-log.c:955:38: note: Assuming 't_end' is > field 'start'
                while (j_last < diff->target.nr && diff->target.ranges[j_last].start < t_end)
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/line-log.c:955:3: note: Loop condition is true.  Entering loop body
                while (j_last < diff->target.nr && diff->target.ranges[j_last].start < t_end)
                ^
/datasets/git/line-log.c:955:10: note: Assuming 'j_last' is >= field 'nr'
                while (j_last < diff->target.nr && diff->target.ranges[j_last].start < t_end)
                       ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/line-log.c:955:35: note: Left side of '&&' is false
                while (j_last < diff->target.nr && diff->target.ranges[j_last].start < t_end)
                                                ^
/datasets/git/line-log.c:957:7: note: 'j_last' is > 'j'
                if (j_last > j)
                    ^~~~~~
/datasets/git/line-log.c:957:3: note: Taking true branch
                if (j_last > j)
                ^
/datasets/git/line-log.c:967:7: note: Assuming 't_start' is >= field 'start'
                if (t_start < diff->target.ranges[j].start)
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/line-log.c:967:3: note: Taking false branch
                if (t_start < diff->target.ranges[j].start)
                ^
/datasets/git/line-log.c:971:7: note: Assuming 't_end' is <= field 'end'
                if (t_end > diff->target.ranges[j_last].end)
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/line-log.c:971:3: note: Taking false branch
                if (t_end > diff->target.ranges[j_last].end)
                ^
/datasets/git/line-log.c:976:7: note: Assuming 'p_start' is not equal to 0
                if (!p_start && !p_end) {
                    ^~~~~~~~
/datasets/git/line-log.c:976:16: note: Left side of '&&' is false
                if (!p_start && !p_end) {
                             ^
/datasets/git/line-log.c:986:10: note: 'j' is < field 'nr'
                while (j < diff->target.nr && diff->target.ranges[j].start < t_end) {
                       ^
/datasets/git/line-log.c:986:10: note: Left side of '&&' is true
/datasets/git/line-log.c:986:64: note: 't_end' is > field 'start'
                while (j < diff->target.nr && diff->target.ranges[j].start < t_end) {
                                                                             ^~~~~
/datasets/git/line-log.c:986:3: note: Loop condition is true.  Entering loop body
                while (j < diff->target.nr && diff->target.ranges[j].start < t_end) {
                ^
/datasets/git/line-log.c:988:11: note: 't_cur' is >= field 'start'
                        for (; t_cur < diff->target.ranges[j].start; t_cur++)
                               ^~~~~
/datasets/git/line-log.c:988:4: note: Loop condition is false. Execution continues on line 991
                        for (; t_cur < diff->target.ranges[j].start; t_cur++)
                        ^
/datasets/git/line-log.c:991:43: note: Assuming 'k' is < field 'end'
                        for (k = diff->parent.ranges[j].start; k < diff->parent.ranges[j].end; k++)
                                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/line-log.c:991:4: note: Loop condition is true.  Entering loop body
                        for (k = diff->parent.ranges[j].start; k < diff->parent.ranges[j].end; k++)
                        ^
/datasets/git/line-log.c:992:32: note: Passing null pointer value via 4th parameter 'ends'
                                print_line(prefix, '-', k, p_ends, pair->one->data,
                                                           ^~~~~~
/datasets/git/line-log.c:992:5: note: Calling 'print_line'
                                print_line(prefix, '-', k, p_ends, pair->one->data,
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/line-log.c:880:35: note: Passing null pointer value via 2nd parameter 'ends'
        char *begin = get_nth_line(line, ends, data);
                                         ^~~~
/datasets/git/line-log.c:880:16: note: Calling 'get_nth_line'
        char *begin = get_nth_line(line, ends, data);
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/line-log.c:870:6: note: 'line' is not equal to 0
        if (line == 0)
            ^~~~
/datasets/git/line-log.c:870:2: note: Taking false branch
        if (line == 0)
        ^
/datasets/git/line-log.c:873:25: note: Array access (from variable 'ends') results in a null pointer dereference
                return (char *)data + ends[line] + 1;
                                      ^~~~
/datasets/git/line-log.c:889:2: warning: the value returned by this function should be used [cert-err33-c]
        fputs(prefix, file);
        ^~~~~~~~~~~~~~~~~~~
/datasets/git/line-log.c:889:2: note: cast the expression to void to silence this warning
/datasets/git/line-log.c:890:2: warning: the value returned by this function should be used [cert-err33-c]
        fputs(color, file);
        ^~~~~~~~~~~~~~~~~~
/datasets/git/line-log.c:890:2: note: cast the expression to void to silence this warning
/datasets/git/line-log.c:891:2: warning: the value returned by this function should be used [cert-err33-c]
        putc(first, file);
        ^~~~~~~~~~~~~~~~~
/datasets/git/line-log.c:891:2: note: cast the expression to void to silence this warning
/datasets/git/line-log.c:892:2: warning: the value returned by this function should be used [cert-err33-c]
        fwrite(begin, 1, end-begin, file);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/line-log.c:892:2: note: cast the expression to void to silence this warning
/datasets/git/line-log.c:893:2: warning: the value returned by this function should be used [cert-err33-c]
        fputs(reset, file);
        ^~~~~~~~~~~~~~~~~~
/datasets/git/line-log.c:893:2: note: cast the expression to void to silence this warning
/datasets/git/line-log.c:894:2: warning: the value returned by this function should be used [cert-err33-c]
        putc('\n', file);
        ^~~~~~~~~~~~~~~~
/datasets/git/line-log.c:894:2: note: cast the expression to void to silence this warning
/datasets/git/line-log.c:895:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!had_nl)
                    ^
                     {
/datasets/git/line-log.c:896:3: warning: the value returned by this function should be used [cert-err33-c]
                fputs("\\ No newline at end of file\n", file);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/line-log.c:896:3: note: cast the expression to void to silence this warning
/datasets/git/line-log.c:904:18: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                struct strbuf *sb = opt->output_prefix(opt, opt->output_prefix_data);
                               ^
/datasets/git/line-log.c:911:13: warning: function 'dump_diff_hacky_one' has cognitive complexity of 41 (threshold 25) [readability-function-cognitive-complexity]
static void dump_diff_hacky_one(struct rev_info *rev, struct line_log_data *range)
            ^
/datasets/git/line-log.c:928:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!pair || !diff)
        ^
/datasets/git/line-log.c:928:12: note: +1
        if (!pair || !diff)
                  ^
/datasets/git/line-log.c:931:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (pair->one->oid_valid)
        ^
/datasets/git/line-log.c:937:30: note: +1, including nesting penalty of 0, nesting level increased to 1
               pair->one->oid_valid ? "a/" : "",
                                    ^
/datasets/git/line-log.c:938:30: note: +1, including nesting penalty of 0, nesting level increased to 1
               pair->one->oid_valid ? pair->one->path : "/dev/null",
                                    ^
/datasets/git/line-log.c:941:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < range->ranges.nr; i++) {
        ^
/datasets/git/line-log.c:948:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (j < diff->target.nr && diff->target.ranges[j].end < t_start)
                ^
/datasets/git/line-log.c:948:30: note: +1
                while (j < diff->target.nr && diff->target.ranges[j].end < t_start)
                                           ^
/datasets/git/line-log.c:950:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (j == diff->target.nr || diff->target.ranges[j].start > t_end)
                ^
/datasets/git/line-log.c:950:28: note: +1
                if (j == diff->target.nr || diff->target.ranges[j].start > t_end)
                                         ^
/datasets/git/line-log.c:955:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (j_last < diff->target.nr && diff->target.ranges[j_last].start < t_end)
                ^
/datasets/git/line-log.c:955:35: note: +1
                while (j_last < diff->target.nr && diff->target.ranges[j_last].start < t_end)
                                                ^
/datasets/git/line-log.c:957:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (j_last > j)
                ^
/datasets/git/line-log.c:967:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (t_start < diff->target.ranges[j].start)
                ^
/datasets/git/line-log.c:969:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/line-log.c:971:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (t_end > diff->target.ranges[j_last].end)
                ^
/datasets/git/line-log.c:973:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/line-log.c:976:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!p_start && !p_end) {
                ^
/datasets/git/line-log.c:976:16: note: +1
                if (!p_start && !p_end) {
                             ^
/datasets/git/line-log.c:986:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (j < diff->target.nr && diff->target.ranges[j].start < t_end) {
                ^
/datasets/git/line-log.c:986:30: note: +1
                while (j < diff->target.nr && diff->target.ranges[j].start < t_end) {
                                           ^
/datasets/git/line-log.c:988:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (; t_cur < diff->target.ranges[j].start; t_cur++)
                        ^
/datasets/git/line-log.c:991:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (k = diff->parent.ranges[j].start; k < diff->parent.ranges[j].end; k++)
                        ^
/datasets/git/line-log.c:994:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (; t_cur < diff->target.ranges[j].end && t_cur < t_end; t_cur++)
                        ^
/datasets/git/line-log.c:994:46: note: +1
                        for (; t_cur < diff->target.ranges[j].end && t_cur < t_end; t_cur++)
                                                                  ^
/datasets/git/line-log.c:999:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (; t_cur < t_end; t_cur++)
                ^
/datasets/git/line-log.c:913:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned int i, j = 0;
        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/line-log.c:913:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i, j = 0;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/line-log.c:913:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/line-log.c:913:18: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned int i, j = 0;
                        ^
/datasets/git/line-log.c:914:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        long p_lines, t_lines;
        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/line-log.c:914:7: warning: variable 'p_lines' is not initialized [cppcoreguidelines-init-variables]
        long p_lines, t_lines;
             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/line-log.c:914:16: warning: variable 't_lines' is not initialized [cppcoreguidelines-init-variables]
        long p_lines, t_lines;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/line-log.c:915:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned long *p_ends = NULL, *t_ends = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/line-log.c:928:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!pair || !diff)
                           ^
                            {
/datasets/git/line-log.c:931:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pair->one->oid_valid)
                                 ^
                                  {
/datasets/git/line-log.c:935:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(opt->file, "%s%sdiff --git a/%s b/%s%s\n", prefix, c_meta, pair->one->path, pair->two->path, c_reset);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/line-log.c:935:2: note: cast the expression to void to silence this warning
/datasets/git/line-log.c:936:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(opt->file, "%s%s--- %s%s%s\n", prefix, c_meta,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/line-log.c:936:2: note: cast the expression to void to silence this warning
/datasets/git/line-log.c:940:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(opt->file, "%s%s+++ b/%s%s\n", prefix, c_meta, pair->two->path, c_reset);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/line-log.c:940:2: note: cast the expression to void to silence this warning
/datasets/git/line-log.c:941:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < range->ranges.nr; i++) {
                    ^
/datasets/git/line-log.c:942:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                long p_start, p_end;
                ^~~~~~~~~~~~~~~~~~~~
/datasets/git/line-log.c:942:8: warning: variable 'p_start' is not initialized [cppcoreguidelines-init-variables]
                long p_start, p_end;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/line-log.c:942:17: warning: variable 'p_end' is not initialized [cppcoreguidelines-init-variables]
                long p_start, p_end;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/line-log.c:946:16: warning: variable 'j_last' is not initialized [cppcoreguidelines-init-variables]
                unsigned int j_last;
                             ^
                                    = 0
/datasets/git/line-log.c:948:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (j < diff->target.nr && diff->target.ranges[j].end < t_start)
                ^
/datasets/git/line-log.c:948:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'diff' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (j < diff->target.nr && diff->target.ranges[j].end < t_start)
                       ^
/datasets/git/line-log.c:948:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (j < diff->target.nr && diff->target.ranges[j].end < t_start)
                                                                                   ^
                                                                                    {
/datasets/git/line-log.c:950:68: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (j == diff->target.nr || diff->target.ranges[j].start > t_end)
                                                                                 ^
                                                                                  {
/datasets/git/line-log.c:955:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (j_last < diff->target.nr && diff->target.ranges[j_last].start < t_end)
                ^
/datasets/git/line-log.c:955:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'j_last' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (j_last < diff->target.nr && diff->target.ranges[j_last].start < t_end)
                       ^
/datasets/git/line-log.c:955:80: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (j_last < diff->target.nr && diff->target.ranges[j_last].start < t_end)
                                                                                             ^
                                                                                              {
/datasets/git/line-log.c:957:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (j_last > j)
                               ^
                                {
/datasets/git/line-log.c:967:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (t_start < diff->target.ranges[j].start)
                                                           ^
                                                            {
/datasets/git/line-log.c:969:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/line-log.c:971:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (t_end > diff->target.ranges[j_last].end)
                                                            ^
                                                             {
/datasets/git/line-log.c:973:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/line-log.c:982:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(opt->file, "%s%s@@ -%ld,%ld +%ld,%ld @@%s\n",
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/line-log.c:982:3: note: cast the expression to void to silence this warning
/datasets/git/line-log.c:986:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'diff' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (j < diff->target.nr && diff->target.ranges[j].start < t_end) {
                       ^
/datasets/git/line-log.c:987:8: warning: variable 'k' is not initialized [cppcoreguidelines-init-variables]
                        int k;
                            ^
                              = 0
/datasets/git/line-log.c:987:8: warning: variable name 'k' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/line-log.c:988:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (; t_cur < diff->target.ranges[j].start; t_cur++)
                        ^
/datasets/git/line-log.c:988:11: warning: backward branch (for loop) is ID-dependent due to variable reference to 't_cur' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (; t_cur < diff->target.ranges[j].start; t_cur++)
                               ^
/datasets/git/line-log.c:988:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (; t_cur < diff->target.ranges[j].start; t_cur++)
                                                                             ^
                                                                              {
/datasets/git/line-log.c:991:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (k = diff->parent.ranges[j].start; k < diff->parent.ranges[j].end; k++)
                        ^
/datasets/git/line-log.c:991:13: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        for (k = diff->parent.ranges[j].start; k < diff->parent.ranges[j].end; k++)
                                 ^
/datasets/git/line-log.c:991:43: warning: backward branch (for loop) is ID-dependent due to variable reference to 'k' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (k = diff->parent.ranges[j].start; k < diff->parent.ranges[j].end; k++)
                                                               ^
/datasets/git/line-log.c:991:79: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (k = diff->parent.ranges[j].start; k < diff->parent.ranges[j].end; k++)
                                                                                                   ^
                                                                                                    {
/datasets/git/line-log.c:994:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (; t_cur < diff->target.ranges[j].end && t_cur < t_end; t_cur++)
                        ^
/datasets/git/line-log.c:994:11: warning: backward branch (for loop) is ID-dependent due to variable reference to 't_cur' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (; t_cur < diff->target.ranges[j].end && t_cur < t_end; t_cur++)
                               ^
/datasets/git/line-log.c:994:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (; t_cur < diff->target.ranges[j].end && t_cur < t_end; t_cur++)
                                                                                            ^
                                                                                             {
/datasets/git/line-log.c:999:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (; t_cur < t_end; t_cur++)
                ^
/datasets/git/line-log.c:999:10: warning: backward branch (for loop) is ID-dependent due to variable reference to 't_cur' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (; t_cur < t_end; t_cur++)
                       ^
/datasets/git/line-log.c:999:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (; t_cur < t_end; t_cur++)
                                              ^
                                               {
/datasets/git/line-log.c:1014:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(rev->diffopt.file, "%s\n", output_prefix(&rev->diffopt));
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/line-log.c:1014:2: note: cast the expression to void to silence this warning
/datasets/git/line-log.c:1012:51: note: inferred assignment of ID-dependent value from ID-dependent member next [altera-id-dependent-backward-branch]
static void dump_diff_hacky(struct rev_info *rev, struct line_log_data *range)
                                                  ^
/datasets/git/line-log.c:1015:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (range) {
        ^
/datasets/git/line-log.c:1015:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'range' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (range) {
               ^
/datasets/git/line-log.c:1030:24: warning: variable name 'rg' is too short, expected at least 3 characters [readability-identifier-length]
        struct line_log_data *rg = range;
                              ^
/datasets/git/line-log.c:1033:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        mmfile_t file_parent, file_target;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/line-log.c:1030:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct line_log_data *rg = range;
        ^
/datasets/git/line-log.c:1036:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (rg) {
        ^
/datasets/git/line-log.c:1036:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'rg' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (rg) {
               ^
/datasets/git/line-log.c:1038:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(rg->path, pair->two->path))
                                                       ^
                                                        {
/datasets/git/line-log.c:1043:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!rg)
                ^
                 {
/datasets/git/line-log.c:1045:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (rg->ranges.nr == 0)
                               ^
                                {
/datasets/git/line-log.c:1051:21: warning: narrowing conversion from 'unsigned long' to signed type 'long' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        file_target.size = pair->two->size;
                           ^
/datasets/git/line-log.c:1056:22: warning: narrowing conversion from 'unsigned long' to signed type 'long' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                file_parent.size = pair->one->size;
                                   ^
/datasets/git/line-log.c:1063:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (collect_diff(&file_parent, &file_target, &diff))
                                                            ^
                                                             {
/datasets/git/line-log.c:1090:62: warning: parameter name 'dq' is too short, expected at least 3 characters [readability-identifier-length]
static void free_diffqueues(int n, struct diff_queue_struct *dq)
                                                             ^
/datasets/git/line-log.c:1092:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (int i = 0; i < n; i++)
        ^
/datasets/git/line-log.c:1092:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (int i = 0; i < n; i++)
                                   ^
                                    {
/datasets/git/line-log.c:1102:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, changed = 0;
        ^~~~~~~~~~~~~~~~~~~
/datasets/git/./diffcore.h:151:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        int nr;
        ^
/datasets/git/line-log.c:1102:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, changed = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/line-log.c:1102:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/line-log.c:1106:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < queue->nr; i++) {
                    ^
/datasets/git/line-log.c:1123:26: warning: variable name 'rg' is too short, expected at least 3 characters [readability-identifier-length]
                        struct line_log_data *rg = range;
                                              ^
/datasets/git/line-log.c:1125:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (rg && strcmp(rg->path, pair->two->path))
                        ^
/datasets/git/line-log.c:1125:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'rg' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (rg && strcmp(rg->path, pair->two->path))
                               ^
/datasets/git/line-log.c:1125:17: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                        while (rg && strcmp(rg->path, pair->two->path))
                                     ^
                                                                       != 0
/datasets/git/line-log.c:1125:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        while (rg && strcmp(rg->path, pair->two->path))
                                                                       ^
                                                                        {
/datasets/git/line-log.c:1129:4: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memcpy(&rg->diff, pairdiff, sizeof(struct diff_ranges));
                        ^~~~~~
/datasets/git/line-log.c:1129:4: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                        memcpy(&rg->diff, pairdiff, sizeof(struct diff_ranges));
                        ^~~~~~
/datasets/git/line-log.c:1141:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(rev->diffopt.output_format & DIFF_FORMAT_NO_OUTPUT)) {
              ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/line-log.c:1152:23: warning: variable 'filter' is not initialized [cppcoreguidelines-init-variables]
        struct bloom_filter *filter;
                             ^
                                    = NULL
/datasets/git/line-log.c:1156:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!commit->parents)
                             ^
                              {
/datasets/git/line-log.c:1160:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
            !(filter = get_bloom_filter(rev->repo, commit)))
              ^
/datasets/git/line-log.c:1160:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/line-log.c:1160:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/line-log.c:1160:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !(filter = get_bloom_filter(rev->repo, commit)))
                                                            ^
                                                             {
/datasets/git/line-log.c:1163:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!range)
                   ^
                    {
/datasets/git/line-log.c:1166:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (!result && range) {
        ^
/datasets/git/line-log.c:1166:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'range' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (!result && range) {
               ^
/datasets/git/line-log.c:1169:71: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (bloom_filter_contains(filter, &key, rev->bloom_filter_settings))
                                                                                    ^
                                                                                     {
/datasets/git/line-log.c:1184:24: warning: variable 'parent_range' is not initialized [cppcoreguidelines-init-variables]
        struct line_log_data *parent_range;
                              ^
                                           = NULL
/datasets/git/line-log.c:1185:6: warning: variable 'changed' is not initialized [cppcoreguidelines-init-variables]
        int changed;
            ^
                    = 0
/datasets/git/line-log.c:1187:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (commit->parents)
                            ^
                             {
/datasets/git/line-log.c:1193:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parent)
                   ^
                    {
/datasets/git/line-log.c:1203:28: warning: variable 'diffqueues' is not initialized [cppcoreguidelines-init-variables]
        struct diff_queue_struct *diffqueues;
                                  ^
                                             = NULL
/datasets/git/line-log.c:1204:25: warning: variable 'cand' is not initialized [cppcoreguidelines-init-variables]
        struct line_log_data **cand;
                               ^
                                    = NULL
/datasets/git/line-log.c:1205:18: warning: variable 'parents' is not initialized [cppcoreguidelines-init-variables]
        struct commit **parents;
                        ^
                                = NULL
/datasets/git/line-log.c:1206:22: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *p;
                            ^
                              = NULL
/datasets/git/line-log.c:1206:22: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/line-log.c:1207:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/line-log.c:1207:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/line-log.c:1208:17: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int nparents = commit_list_count(commit->parents);
                       ^
/datasets/git/line-log.c:1210:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (nparents > 1 && rev->first_parent_only)
                                                   ^
                                                    {
/datasets/git/line-log.c:1214:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_ARRAY(cand, nparents);
        ^
/datasets/git/./git-compat-util.h:1090:53: note: expanded from macro 'ALLOC_ARRAY'
#define ALLOC_ARRAY(x, alloc) (x) = xmalloc(st_mult(sizeof(*(x)), (alloc)))
                                                    ^
/datasets/git/line-log.c:1215:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_ARRAY(parents, nparents);
        ^
/datasets/git/./git-compat-util.h:1090:53: note: expanded from macro 'ALLOC_ARRAY'
#define ALLOC_ARRAY(x, alloc) (x) = xmalloc(st_mult(sizeof(*(x)), (alloc)))
                                                    ^
/datasets/git/line-log.c:1218:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nparents; i++) {
        ^
/datasets/git/line-log.c:1208:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int nparents = commit_list_count(commit->parents);
        ^
/datasets/git/line-log.c:1218:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'nparents' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < nparents; i++) {
                    ^
/datasets/git/line-log.c:1224:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nparents; i++) {
        ^
/datasets/git/line-log.c:1208:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int nparents = commit_list_count(commit->parents);
        ^
/datasets/git/line-log.c:1224:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'nparents' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < nparents; i++) {
                    ^
/datasets/git/line-log.c:1225:7: warning: variable 'changed' is not initialized [cppcoreguidelines-init-variables]
                int changed;
                    ^
                            = 0
/datasets/git/line-log.c:1248:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nparents; i++) {
        ^
/datasets/git/line-log.c:1248:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'nparents' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < nparents; i++) {
                    ^
/datasets/git/line-log.c:1272:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else if (!commit->parents || !commit->parents->next)
                                                                      ^
                                                                       {
/datasets/git/line-log.c:1274:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/line-log.c:1278:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!changed)
                     ^
                      {
/datasets/git/line-log.c:1279:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                commit->object.flags |= TREESAME;
                                        ^
/datasets/git/./revision.h:29:19: note: expanded from macro 'TREESAME'
#define TREESAME        (1u<<2)
                         ^   ~
/datasets/git/line-log.c:1284:66: warning: parameter 'rev' is unused [misc-unused-parameters]
static enum rewrite_result line_log_rewrite_one(struct rev_info *rev, struct commit **pp)
                                                                 ^
/datasets/git/line-log.c:1284:87: warning: parameter name 'pp' is too short, expected at least 3 characters [readability-identifier-length]
static enum rewrite_result line_log_rewrite_one(struct rev_info *rev, struct commit **pp)
                                                                                      ^
/datasets/git/line-log.c:1286:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/line-log.c:1287:18: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct commit *p = *pp;
                               ^
/datasets/git/line-log.c:1288:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (p->parents && p->parents->next)
                                                   ^
                                                    {
/datasets/git/line-log.c:1290:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (p->object.flags & UNINTERESTING)
                                      ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/line-log.c:1290:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (p->object.flags & UNINTERESTING)
                                                    ^
                                                     {
/datasets/git/line-log.c:1292:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(p->object.flags & TREESAME))
                                        ^
/datasets/git/./revision.h:29:19: note: expanded from macro 'TREESAME'
#define TREESAME        (1u<<2)
                         ^   ~
/datasets/git/line-log.c:1292:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(p->object.flags & TREESAME))
                                                  ^
                                                   {
/datasets/git/line-log.c:1294:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!p->parents)
                                ^
                                 {
/datasets/git/line-log.c:1302:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/line-log.c:1304:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit_list *out = NULL, **pp = &out;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/line-log.c:1303:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct commit_list *list = rev->commits;
        ^
/datasets/git/line-log.c:1304:36: warning: variable name 'pp' is too short, expected at least 3 characters [readability-identifier-length]
        struct commit_list *out = NULL, **pp = &out;
                                          ^
/datasets/git/line-log.c:1306:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (list) {
        ^
/datasets/git/line-log.c:1306:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'list' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (list) {
               ^
/datasets/git/line-log.c:1312:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/line-log.c:1319:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (list = out; list; list = list->next)
        ^
/datasets/git/line-log.c:1319:19: warning: backward branch (for loop) is ID-dependent due to variable reference to 'list' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (list = out; list; list = list->next)
                         ^
/datasets/git/line-log.c:1319:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (list = out; list; list = list->next)
                                                 ^
                                                  {
/datasets/git/line-range.c:3:1: warning: #includes are not sorted properly [llvm-include-order]
#include "xdiff-interface.h"
^        ~~~~~~~~~~~~~~~~~~~
         "strbuf.h"
/datasets/git/line-range.c:22:20: warning: function 'parse_loc' has cognitive complexity of 49 (threshold 25) [readability-function-cognitive-complexity]
static const char *parse_loc(const char *spec, nth_line_fn_t nth_line,
                   ^
/datasets/git/line-range.c:36:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (1 <= begin && (spec[0] == '+' || spec[0] == '-')) {
        ^
/datasets/git/line-range.c:36:17: note: +1
        if (1 <= begin && (spec[0] == '+' || spec[0] == '-')) {
                       ^
/datasets/git/line-range.c:36:36: note: +1
        if (1 <= begin && (spec[0] == '+' || spec[0] == '-')) {
                                          ^
/datasets/git/line-range.c:38:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (term != spec + 1) {
                ^
/datasets/git/line-range.c:39:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!ret)
                        ^
/datasets/git/line-range.c:41:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (num == 0)
                        ^
/datasets/git/line-range.c:43:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (spec[0] == '-')
                        ^
/datasets/git/line-range.c:45:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (0 < num)
                        ^
/datasets/git/line-range.c:47:9: note: +1, nesting level increased to 3
                        else if (!num)
                             ^
/datasets/git/line-range.c:49:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/line-range.c:50:28: note: +4, including nesting penalty of 3, nesting level increased to 4
                                *ret = begin + num > 0 ? begin + num : 1;
                                                       ^
/datasets/git/line-range.c:56:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (term != spec) {
        ^
/datasets/git/line-range.c:57:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ret) {
                ^
/datasets/git/line-range.c:58:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (num <= 0)
                        ^
/datasets/git/line-range.c:65:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (begin < 0) {
        ^
/datasets/git/line-range.c:66:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (spec[0] != '^')
                ^
/datasets/git/line-range.c:68:3: note: +1, nesting level increased to 2
                else {
                ^
/datasets/git/line-range.c:74:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (spec[0] != '/')
        ^
/datasets/git/line-range.c:78:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (term = (char *) spec + 1; *term && *term != '/'; term++) {
        ^
/datasets/git/line-range.c:78:39: note: +1
        for (term = (char *) spec + 1; *term && *term != '/'; term++) {
                                             ^
/datasets/git/line-range.c:79:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*term == '\\')
                ^
/datasets/git/line-range.c:82:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (*term != '/')
        ^
/datasets/git/line-range.c:86:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!ret)
        ^
/datasets/git/line-range.c:94:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!(reg_error = regcomp(&regexp, spec + 1, REG_NEWLINE)) &&
        ^
/datasets/git/line-range.c:94:61: note: +1
        if (!(reg_error = regcomp(&regexp, spec + 1, REG_NEWLINE)) &&
                                                                   ^
/datasets/git/line-range.c:99:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (begin++ < lines) {
                ^
/datasets/git/line-range.c:101:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (line <= cp && cp < nline)
                        ^
/datasets/git/line-range.c:101:19: note: +1
                        if (line <= cp && cp < nline)
                                       ^
/datasets/git/line-range.c:110:2: note: +1, nesting level increased to 1
        else {
        ^
/datasets/git/line-range.c:25:8: warning: variable 'term' is not initialized [cppcoreguidelines-init-variables]
        char *term;
              ^
                   = NULL
/datasets/git/line-range.c:26:14: warning: variable 'line' is not initialized [cppcoreguidelines-init-variables]
        const char *line;
                    ^
                         = NULL
/datasets/git/line-range.c:27:7: warning: variable 'num' is not initialized [cppcoreguidelines-init-variables]
        long num;
             ^
                 = 0
/datasets/git/line-range.c:28:6: warning: variable 'reg_error' is not initialized [cppcoreguidelines-init-variables]
        int reg_error;
            ^
                      = 0
/datasets/git/line-range.c:37:33: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                num = strtol(spec + 1, &term, 10);
                                              ^
/datasets/git/line-range.c:39:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!ret)
                                 ^
                                  {
/datasets/git/line-range.c:41:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (num == 0)
                                     ^
                                      {
/datasets/git/line-range.c:43:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (spec[0] == '-')
                                           ^
                                            {
/datasets/git/line-range.c:45:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (0 < num)
                                    ^
                                     {
/datasets/git/line-range.c:47:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (!num)
                                      ^
                                       {
/datasets/git/line-range.c:49:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/line-range.c:55:28: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        num = strtol(spec, &term, 10);
                                  ^
/datasets/git/line-range.c:58:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (num <= 0)
                                     ^
                                      {
/datasets/git/line-range.c:66:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (spec[0] != '^')
                                   ^
                                    {
/datasets/git/line-range.c:74:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (spec[0] != '/')
                           ^
                            {
/datasets/git/line-range.c:78:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (term = (char *) spec + 1; *term && *term != '/'; term++) {
        ^
/datasets/git/line-range.c:78:33: warning: backward branch (for loop) is ID-dependent due to variable reference to 'term' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (term = (char *) spec + 1; *term && *term != '/'; term++) {
                                       ^
/datasets/git/line-range.c:79:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*term == '\\')
                                  ^
                                   {
/datasets/git/line-range.c:82:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*term != '/')
                         ^
                          {
/datasets/git/line-range.c:86:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ret)
                 ^
                  {
/datasets/git/line-range.c:94:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if (!(reg_error = regcomp(&regexp, spec + 1, REG_NEWLINE)) &&
              ^
/datasets/git/line-range.c:94:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/line-range.c:94:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/line-range.c:94:47: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(reg_error = regcomp(&regexp, spec + 1, REG_NEWLINE)) &&
                                                     ^
/usr/include/regex.h:319:22: note: expanded from macro 'REG_NEWLINE'
#define REG_NEWLINE (1 << 2)
                     ^
/datasets/git/line-range.c:23:33: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                             void *data, long lines, long begin, long *ret)
                                                     ^
/datasets/git/line-range.c:95:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
            !(reg_error = regexec(&regexp, line, 1, match, 0))) {
              ^
/datasets/git/line-range.c:95:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/line-range.c:95:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/line-range.c:96:15: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
                const char *cp = line + match[0].rm_so;
                            ^
/datasets/git/line-range.c:97:15: warning: variable 'nline' is not initialized [cppcoreguidelines-init-variables]
                const char *nline;
                            ^
                                  = NULL
/datasets/git/line-range.c:99:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (begin++ < lines) {
                ^
/datasets/git/line-range.c:99:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'begin' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (begin++ < lines) {
                       ^
/datasets/git/line-range.c:101:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (line <= cp && cp < nline)
                                                     ^
                                                      {
/datasets/git/line-range.c:110:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else {
        ^~~~~~
/datasets/git/line-range.c:111:15: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                char errbuf[1024];
                            ^
/datasets/git/line-range.c:112:40: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                regerror(reg_error, &regexp, errbuf, 1024);
                                                     ^
/datasets/git/line-range.c:126:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (bol == eol)
                       ^
                        {
/datasets/git/line-range.c:128:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (isalpha(*bol) || *bol == '_' || *bol == '$')
            ^
/datasets/git/./git-compat-util.h:1219:20: note: expanded from macro 'isalpha'
#define isalpha(x) sane_istest(x,GIT_ALPHA)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/line-range.c:128:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (isalpha(*bol) || *bol == '_' || *bol == '$')
                                                        ^
                                                         {
/datasets/git/line-range.c:136:6: warning: variable 'reg_error' is not initialized [cppcoreguidelines-init-variables]
        int reg_error;
            ^
                      = 0
/datasets/git/line-range.c:139:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                const char *bol, *eol;
                ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/line-range.c:139:15: warning: variable 'bol' is not initialized [cppcoreguidelines-init-variables]
                const char *bol, *eol;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/line-range.c:139:21: warning: variable 'eol' is not initialized [cppcoreguidelines-init-variables]
                const char *bol, *eol;
                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/line-range.c:141:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (reg_error == REG_NOMATCH)
                                             ^
                                              {
/datasets/git/line-range.c:143:3: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                else if (reg_error) {
                ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/line-range.c:144:16: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        char errbuf[1024];
                                    ^
/datasets/git/line-range.c:145:40: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        regerror(reg_error, regexp, errbuf, 1024);
                                                            ^
/datasets/git/line-range.c:151:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (bol > start && *bol != '\n')
                ^
/datasets/git/line-range.c:151:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'bol' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (bol > start && *bol != '\n')
                       ^
/datasets/git/line-range.c:151:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (bol > start && *bol != '\n')
                                                   ^
                                                    {
/datasets/git/line-range.c:153:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*bol == '\n')
                                 ^
                                  {
/datasets/git/line-range.c:155:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (*eol && *eol != '\n')
                ^
/datasets/git/line-range.c:155:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'eol' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (*eol && *eol != '\n')
                       ^
/datasets/git/line-range.c:155:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (*eol && *eol != '\n')
                                            ^
                                             {
/datasets/git/line-range.c:157:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*eol == '\n')
                                 ^
                                  {
/datasets/git/line-range.c:160:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (match_funcname(xecfg, (char*) bol, (char*) eol))
                                                                    ^
                                                                     {
/datasets/git/line-range.c:168:17: warning: 2 adjacent parameters of 'parse_range_funcname' of similar type ('long') are easily swapped by mistake [bugprone-easily-swappable-parameters]
        void *cb_data, long lines, long anchor, long *begin, long *end,
                       ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/line-range.c:168:22: note: the first parameter in the range is 'lines'
        void *cb_data, long lines, long anchor, long *begin, long *end,
                            ^~~~~
/datasets/git/line-range.c:168:34: note: the last parameter in the range is 'anchor'
        void *cb_data, long lines, long anchor, long *begin, long *end,
                                        ^~~~~~
/datasets/git/line-range.c:172:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        const char *term;
        ^
/datasets/git/line-range.c:171:8: warning: variable 'pattern' is not initialized [cppcoreguidelines-init-variables]
        char *pattern;
              ^
                      = NULL
/datasets/git/line-range.c:172:14: warning: variable 'term' is not initialized [cppcoreguidelines-init-variables]
        const char *term;
                    ^
                         = NULL
/datasets/git/line-range.c:173:26: warning: variable 'drv' is not initialized [cppcoreguidelines-init-variables]
        struct userdiff_driver *drv;
                                ^
                                    = NULL
/datasets/git/line-range.c:175:14: warning: variable 'start' is not initialized [cppcoreguidelines-init-variables]
        const char *start;
                    ^
                          = NULL
/datasets/git/line-range.c:176:14: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        const char *p;
                    ^
                      = NULL
/datasets/git/line-range.c:176:14: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/line-range.c:177:6: warning: variable 'reg_error' is not initialized [cppcoreguidelines-init-variables]
        int reg_error;
            ^
                      = 0
/datasets/git/line-range.c:187:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*term && *term != ':') {
        ^
/datasets/git/line-range.c:187:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'term' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (*term && *term != ':') {
               ^
/datasets/git/line-range.c:188:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*term == '\\' && *(term+1))
                                               ^
                                                {
/datasets/git/line-range.c:192:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (term == arg+1)
                          ^
                           {
/datasets/git/line-range.c:194:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!begin) /* skip_range_arg case */
                   ^
                    {
/datasets/git/line-range.c:204:35: warning: variable name 'pe' is too short, expected at least 3 characters [readability-identifier-length]
                const struct userdiff_funcname *pe = &drv->funcname;
                                                ^
/datasets/git/line-range.c:211:15: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                char errbuf[1024];
                            ^
/datasets/git/line-range.c:212:40: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                regerror(reg_error, &regexp, errbuf, 1024);
                                                     ^
/datasets/git/line-range.c:217:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!p)
               ^
                {
/datasets/git/line-range.c:221:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (p > nth_line_cb(cb_data, *begin))
        ^
/datasets/git/line-range.c:221:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (p > nth_line_cb(cb_data, *begin))
               ^
/datasets/git/line-range.c:221:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (p > nth_line_cb(cb_data, *begin))
                                                ^
                                                 {
/datasets/git/line-range.c:224:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*begin >= lines)
                            ^
                             {
/datasets/git/line-range.c:228:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*end < lines) {
        ^
/datasets/git/line-range.c:231:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (match_funcname(xecfg, bol, eol))
                                                    ^
                                                     {
/datasets/git/line-range.c:253:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (anchor < 1)
                       ^
                        {
/datasets/git/line-range.c:255:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (anchor > lines)
                           ^
                            {
/datasets/git/line-range.c:262:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!arg || *arg)
                                 ^
                                  {
/datasets/git/line-range.c:269:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*arg == ',')
                        ^
                         {
/datasets/git/line-range.c:272:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*arg)
                 ^
                  {
/datasets/git/line-range.c:276:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                SWAP(*end, *begin);
                ^
/datasets/git/./git-compat-util.h:759:20: note: expanded from macro 'SWAP'
#define SWAP(a, b) do {                                         \
                   ^
/datasets/git/line-range.c:276:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                SWAP(*end, *begin);
                ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/line-range.c:276:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                SWAP(*end, *begin);
                ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/line-range.c:284:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*arg == ':' || (*arg == '^' && *(arg + 1) == ':'))
                                                              ^
                                                               {
/datasets/git/line-range.c:291:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*arg == ',')
                        ^
                         {
linear-assignment.c:15:6: warning: function 'compute_assignment' has cognitive complexity of 118 (threshold 25) [readability-function-cognitive-complexity]
void compute_assignment(int column_count, int row_count, int *cost,
     ^
linear-assignment.c:22:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (column_count < 2) {
        ^
linear-assignment.c:33:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (j = column_count - 1; j >= 0; j--) {
        ^
linear-assignment.c:36:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 1; i < row_count; i++)
                ^
linear-assignment.c:37:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (COST(j, i1) > COST(j, i))
                        ^
linear-assignment.c:40:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (row2column[i1] == -1) {
                ^
linear-assignment.c:44:5: note: +1, nesting level increased to 2
                } else {
                  ^
linear-assignment.c:45:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (row2column[i1] >= 0)
                        ^
linear-assignment.c:53:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < row_count; i++) {
        ^
linear-assignment.c:55:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (j1 == -1)
                ^
linear-assignment.c:57:8: note: +1, nesting level increased to 2
                else if (j1 < -1)
                     ^
linear-assignment.c:59:3: note: +1, nesting level increased to 2
                else {
                ^
linear-assignment.c:61:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (j = 1; j < column_count; j++)
                        ^
linear-assignment.c:62:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (j != j1 && min > COST(j, i) - v[j])
                                ^
linear-assignment.c:62:17: note: +1
                                if (j != j1 && min > COST(j, i) - v[j])
                                            ^
linear-assignment.c:68:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (free_count ==
        ^
linear-assignment.c:69:32: note: +1, including nesting penalty of 0, nesting level increased to 1
            (column_count < row_count ? row_count - column_count : 0)) {
                                      ^
linear-assignment.c:76:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (phase = 0; phase < 2; phase++) {
        ^
linear-assignment.c:81:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (k < saved_free_count) {
                ^
linear-assignment.c:89:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (j = 1; j < column_count; j++) {
                        ^
linear-assignment.c:91:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (u2 > c) {
                                ^
linear-assignment.c:92:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (u1 < c) {
                                        ^
linear-assignment.c:95:8: note: +1, nesting level increased to 5
                                        } else {
                                          ^
linear-assignment.c:103:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (j2 < 0) {
                        ^
linear-assignment.c:109:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (u1 < u2)
                        ^
linear-assignment.c:111:9: note: +1, nesting level increased to 3
                        else if (i0 >= 0) {
                             ^
linear-assignment.c:116:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (i0 >= 0) {
                        ^
linear-assignment.c:117:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (u1 < u2)
                                ^
linear-assignment.c:119:5: note: +1, nesting level increased to 4
                                else
                                ^
linear-assignment.c:132:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (free_count = 0; free_count < saved_free_count; free_count++) {
        ^
linear-assignment.c:136:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (j = 0; j < column_count; j++) {
                ^
linear-assignment.c:143:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                do {
                ^
linear-assignment.c:146:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (k = up; k < column_count; k++) {
                        ^
linear-assignment.c:149:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (c <= min) {
                                ^
linear-assignment.c:150:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (c < min) {
                                        ^
linear-assignment.c:158:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (k = low; k < up; k++)
                        ^
linear-assignment.c:159:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (column2row[col[k]] == -1)
                                ^
linear-assignment.c:163:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        do {
                        ^
linear-assignment.c:168:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                for (k = up; k < column_count; k++) {
                                ^
linear-assignment.c:171:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (c < d[j]) {
                                        ^
linear-assignment.c:174:7: note: +6, including nesting penalty of 5, nesting level increased to 6
                                                if (c == min) {
                                                ^
linear-assignment.c:175:8: note: +7, including nesting penalty of 6, nesting level increased to 7
                                                        if (column2row[j] == -1)
                                                        ^
linear-assignment.c:187:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (k = 0; k < last; k++) {
                ^
linear-assignment.c:193:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                do {
                ^
linear-assignment.c:194:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (j < 0)
                        ^
linear-assignment.c:198:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        SWAP(j, row2column[i]);
                        ^
/datasets/git/./git-compat-util.h:759:20: note: expanded from macro 'SWAP'
#define SWAP(a, b) do {                                         \
                   ^
/datasets/git/linear-assignment.c:15:58: warning: 2 adjacent parameters of 'compute_assignment' of similar type ('int *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
void compute_assignment(int column_count, int row_count, int *cost,
                                                         ^~~~~~~~~~
/datasets/git/linear-assignment.c:15:63: note: the first parameter in the range is 'cost'
void compute_assignment(int column_count, int row_count, int *cost,
                                                              ^~~~
/datasets/git/linear-assignment.c:16:9: note: the last parameter in the range is 'column2row'
                        int *column2row, int *row2column)
                             ^~~~~~~~~~
/datasets/git/linear-assignment.c:15:63: warning: pointer parameter 'cost' can be pointer to const [readability-non-const-parameter]
void compute_assignment(int column_count, int row_count, int *cost,
                                                              ^
                                                         const 
/datasets/git/linear-assignment.c:18:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int *v, *d;
        ^~~~~~~~~~~
/datasets/git/linear-assignment.c:18:7: warning: variable 'v' is not initialized [cppcoreguidelines-init-variables]
        int *v, *d;
             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/linear-assignment.c:18:7: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/linear-assignment.c:18:11: warning: variable 'd' is not initialized [cppcoreguidelines-init-variables]
        int *v, *d;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/linear-assignment.c:18:11: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/linear-assignment.c:19:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int *free_row, free_count = 0, saved_free_count, *pred, *col;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/linear-assignment.c:19:7: warning: variable 'free_row' is not initialized [cppcoreguidelines-init-variables]
        int *free_row, free_count = 0, saved_free_count, *pred, *col;
             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/linear-assignment.c:19:33: warning: variable 'saved_free_count' is not initialized [cppcoreguidelines-init-variables]
        int *free_row, free_count = 0, saved_free_count, *pred, *col;
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/linear-assignment.c:19:52: warning: variable 'pred' is not initialized [cppcoreguidelines-init-variables]
        int *free_row, free_count = 0, saved_free_count, *pred, *col;
                                                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/linear-assignment.c:19:59: warning: variable 'col' is not initialized [cppcoreguidelines-init-variables]
        int *free_row, free_count = 0, saved_free_count, *pred, *col;
                                                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/linear-assignment.c:20:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, j, phase;
        ^~~~~~~~~~~~~~~~
/datasets/git/linear-assignment.c:20:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/linear-assignment.c:20:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, j, phase;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/linear-assignment.c:20:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/linear-assignment.c:20:9: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int i, j, phase;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/linear-assignment.c:20:9: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/linear-assignment.c:20:12: warning: variable 'phase' is not initialized [cppcoreguidelines-init-variables]
        int i, j, phase;
                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/linear-assignment.c:23:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(column2row, 0, sizeof(int) * column_count);
                ^~~~~~
/datasets/git/linear-assignment.c:23:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(column2row, 0, sizeof(int) * column_count);
                ^~~~~~
/datasets/git/linear-assignment.c:24:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(row2column, 0, sizeof(int) * row_count);
                ^~~~~~
/datasets/git/linear-assignment.c:24:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(row2column, 0, sizeof(int) * row_count);
                ^~~~~~
/datasets/git/linear-assignment.c:28:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(column2row, -1, sizeof(int) * column_count);
        ^~~~~~
/datasets/git/linear-assignment.c:28:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(column2row, -1, sizeof(int) * column_count);
        ^~~~~~
/datasets/git/linear-assignment.c:29:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(row2column, -1, sizeof(int) * row_count);
        ^~~~~~
/datasets/git/linear-assignment.c:29:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(row2column, -1, sizeof(int) * row_count);
        ^~~~~~
/datasets/git/linear-assignment.c:33:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'j' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (j = column_count - 1; j >= 0; j--) {
                                   ^
/datasets/git/linear-assignment.c:20:2: note: inferred assignment of ID-dependent value from ID-dependent 
        int i, j, phase;
        ^
/datasets/git/linear-assignment.c:34:7: warning: variable name 'i1' is too short, expected at least 3 characters [readability-identifier-length]
                int i1 = 0;
                    ^
/datasets/git/linear-assignment.c:36:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 1; i < row_count; i++)
                ^
/datasets/git/linear-assignment.c:36:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 1; i < row_count; i++)
                            ^
/datasets/git/linear-assignment.c:36:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 1; i < row_count; i++)
                                               ^
                                                {
/datasets/git/linear-assignment.c:37:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (COST(j, i1) > COST(j, i))
                                                     ^
                                                      {
/datasets/git/linear-assignment.c:45:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (row2column[i1] >= 0)
                                                ^
                                                 {
/datasets/git/linear-assignment.c:53:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < row_count; i++) {
                    ^
/datasets/git/linear-assignment.c:19:2: note: inferred assignment of ID-dependent value from ID-dependent 
        int *free_row, free_count = 0, saved_free_count, *pred, *col;
        ^
/datasets/git/linear-assignment.c:54:7: warning: variable name 'j1' is too short, expected at least 3 characters [readability-identifier-length]
                int j1 = row2column[i];
                    ^
/datasets/git/linear-assignment.c:55:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (j1 == -1)
                             ^
                              {
/datasets/git/linear-assignment.c:57:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (j1 < -1)
                                 ^
                                  {
/datasets/git/linear-assignment.c:61:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (j = 1; j < column_count; j++)
                        ^
/datasets/git/linear-assignment.c:61:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'j' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (j = 1; j < column_count; j++)
                                    ^
/datasets/git/linear-assignment.c:61:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (j = 1; j < column_count; j++)
                                                          ^
                                                           {
/datasets/git/linear-assignment.c:62:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (j != j1 && min > COST(j, i) - v[j])
                                                                       ^
                                                                        {
/datasets/git/linear-assignment.c:77:7: warning: variable name 'k' is too short, expected at least 3 characters [readability-identifier-length]
                int k = 0;
                    ^
/datasets/git/linear-assignment.c:81:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'saved_free_count' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (k < saved_free_count) {
                       ^
/datasets/git/linear-assignment.c:82:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        int u1, u2;
                        ^~~~~~~~~~~
/datasets/git/linear-assignment.c:82:8: warning: variable 'u1' is not initialized [cppcoreguidelines-init-variables]
                        int u1, u2;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/linear-assignment.c:82:8: warning: variable name 'u1' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/linear-assignment.c:82:12: warning: variable 'u2' is not initialized [cppcoreguidelines-init-variables]
                        int u1, u2;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/linear-assignment.c:82:12: warning: variable name 'u2' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/linear-assignment.c:83:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        int j1 = 0, j2, i0;
                        ^~~~~~~~~~~~~~~~~~~
/datasets/git/linear-assignment.c:20:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int i, j, phase;
        ^
/datasets/git/linear-assignment.c:83:8: warning: variable name 'j1' is too short, expected at least 3 characters [readability-identifier-length]
                        int j1 = 0, j2, i0;
                            ^
/datasets/git/linear-assignment.c:83:16: warning: variable 'j2' is not initialized [cppcoreguidelines-init-variables]
                        int j1 = 0, j2, i0;
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/linear-assignment.c:83:16: warning: variable name 'j2' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/linear-assignment.c:83:20: warning: variable 'i0' is not initialized [cppcoreguidelines-init-variables]
                        int j1 = 0, j2, i0;
                                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/linear-assignment.c:83:20: warning: variable name 'i0' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/linear-assignment.c:89:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (j = 1; j < column_count; j++) {
                        ^
/datasets/git/linear-assignment.c:89:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'j' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (j = 1; j < column_count; j++) {
                                    ^
/datasets/git/linear-assignment.c:90:9: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                                int c = COST(j, i) - v[j];
                                    ^
/datasets/git/linear-assignment.c:109:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (u1 < u2)
                                    ^
                                     {
/datasets/git/linear-assignment.c:117:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (u1 < u2)
                                            ^
                                             {
/datasets/git/linear-assignment.c:119:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                else
                                    ^
                                     {
/datasets/git/linear-assignment.c:132:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 'saved_free_count' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (free_count = 0; free_count < saved_free_count; free_count++) {
                             ^
/datasets/git/linear-assignment.c:133:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int i1 = free_row[free_count], low = 0, up = 0, last, k;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/linear-assignment.c:133:7: warning: variable name 'i1' is too short, expected at least 3 characters [readability-identifier-length]
                int i1 = free_row[free_count], low = 0, up = 0, last, k;
                    ^
/datasets/git/linear-assignment.c:133:43: warning: variable name 'up' is too short, expected at least 3 characters [readability-identifier-length]
                int i1 = free_row[free_count], low = 0, up = 0, last, k;
                                                        ^
/datasets/git/linear-assignment.c:133:51: warning: variable 'last' is not initialized [cppcoreguidelines-init-variables]
                int i1 = free_row[free_count], low = 0, up = 0, last, k;
                                                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/linear-assignment.c:133:57: warning: variable 'k' is not initialized [cppcoreguidelines-init-variables]
                int i1 = free_row[free_count], low = 0, up = 0, last, k;
                                                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/linear-assignment.c:133:57: warning: variable name 'k' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/linear-assignment.c:134:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int min, c, u1;
                ^~~~~~~~~~~~~~~
/datasets/git/linear-assignment.c:20:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int i, j, phase;
        ^
/datasets/git/linear-assignment.c:134:7: warning: variable 'min' is not initialized [cppcoreguidelines-init-variables]
                int min, c, u1;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/linear-assignment.c:134:12: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
                int min, c, u1;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/linear-assignment.c:134:12: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/linear-assignment.c:134:15: warning: variable 'u1' is not initialized [cppcoreguidelines-init-variables]
                int min, c, u1;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/linear-assignment.c:134:15: warning: variable name 'u1' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/linear-assignment.c:133:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                int i1 = free_row[free_count], low = 0, up = 0, last, k;
                ^
/datasets/git/linear-assignment.c:136:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (j = 0; j < column_count; j++) {
                ^
/datasets/git/linear-assignment.c:133:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                int i1 = free_row[free_count], low = 0, up = 0, last, k;
                ^
/datasets/git/linear-assignment.c:136:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'j' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (j = 0; j < column_count; j++) {
                            ^
/datasets/git/linear-assignment.c:146:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (k = up; k < column_count; k++) {
                        ^
/datasets/git/linear-assignment.c:146:17: warning: backward branch (for loop) is ID-dependent due to variable reference to 'k' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (k = up; k < column_count; k++) {
                                     ^
/datasets/git/linear-assignment.c:158:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (k = low; k < up; k++)
                        ^
/datasets/git/linear-assignment.c:133:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                int i1 = free_row[free_count], low = 0, up = 0, last, k;
                ^
/datasets/git/linear-assignment.c:158:18: warning: backward branch (for loop) is ID-dependent due to variable reference to 'k' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (k = low; k < up; k++)
                                      ^
/datasets/git/linear-assignment.c:158:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (k = low; k < up; k++)
                                                  ^
                                                   {
/datasets/git/linear-assignment.c:159:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (column2row[col[k]] == -1)
                                                             ^
                                                              {
/datasets/git/linear-assignment.c:164:9: warning: variable name 'j1' is too short, expected at least 3 characters [readability-identifier-length]
                                int j1 = col[low++];
                                    ^
/datasets/git/linear-assignment.c:168:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                for (k = up; k < column_count; k++) {
                                ^
/datasets/git/linear-assignment.c:168:18: warning: backward branch (for loop) is ID-dependent due to variable reference to 'k' and may cause performance degradation [altera-id-dependent-backward-branch]
                                for (k = up; k < column_count; k++) {
                                             ^
/datasets/git/linear-assignment.c:175:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                        if (column2row[j] == -1)
                                                                                ^
                                                                                 {
/datasets/git/linear-assignment.c:182:13: warning: backward branch (do loop) is ID-dependent due to variable reference to 'up' and may cause performance degradation [altera-id-dependent-backward-branch]
                        } while (low != up);
                                 ^
/datasets/git/linear-assignment.c:183:12: warning: backward branch (do loop) is ID-dependent due to variable reference to 'up' and may cause performance degradation [altera-id-dependent-backward-branch]
                } while (low == up);
                         ^
/datasets/git/linear-assignment.c:133:3: note: inferred assignment of ID-dependent value from ID-dependent 
                int i1 = free_row[free_count], low = 0, up = 0, last, k;
                ^
/datasets/git/linear-assignment.c:187:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (k = 0; k < last; k++) {
                ^
/datasets/git/linear-assignment.c:187:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'k' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (k = 0; k < last; k++) {
                            ^
/datasets/git/linear-assignment.c:188:8: warning: variable name 'j1' is too short, expected at least 3 characters [readability-identifier-length]
                        int j1 = col[k];
                            ^
/datasets/git/linear-assignment.c:194:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (j < 0)
                                  ^
                                   {
/datasets/git/linear-assignment.c:198:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        SWAP(j, row2column[i]);
                        ^
/datasets/git/./git-compat-util.h:759:20: note: expanded from macro 'SWAP'
#define SWAP(a, b) do {                                         \
                   ^
/datasets/git/linear-assignment.c:198:4: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        SWAP(j, row2column[i]);
                        ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/linear-assignment.c:198:4: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                        SWAP(j, row2column[i]);
                        ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/linear-assignment.c:199:12: warning: backward branch (do loop) is ID-dependent due to variable reference to 'i1' and may cause performance degradation [altera-id-dependent-backward-branch]
                } while (i1 != i);
                         ^
/datasets/git/list-objects-filter-options.c:4:1: warning: #includes are not sorted properly [llvm-include-order]
#include "revision.h"
^        ~~~~~~~~~~~~
         "list-objects-filter-options.h"
/datasets/git/list-objects-filter-options.c:18:76: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
const char *list_object_filter_config_name(enum list_objects_filter_choice c)
                                                                           ^
/datasets/git/list-objects-filter-options.c:20:2: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
        switch (c) {
        ^
/datasets/git/list-objects-filter-options.c:43:5: warning: function 'gently_parse_list_objects_filter' is within a recursive call chain [misc-no-recursion]
int gently_parse_list_objects_filter(
    ^
/datasets/git/list-objects-filter-options.c:135:12: note: example recursive call chain, starting from function 'parse_combine_subfilter'
static int parse_combine_subfilter(
           ^
/datasets/git/list-objects-filter-options.c:151:3: note: Frame #1: function 'parse_combine_subfilter' calls function 'gently_parse_list_objects_filter' here:
                gently_parse_list_objects_filter(
                ^
/datasets/git/list-objects-filter-options.c:101:10: note: Frame #2: function 'gently_parse_list_objects_filter' calls function 'parse_combine_filter' here:
                return parse_combine_filter(filter_options, v0, errbuf);
                       ^
/datasets/git/list-objects-filter-options.c:183:12: note: Frame #3: function 'parse_combine_filter' calls function 'parse_combine_subfilter' here:
                result = parse_combine_subfilter(
                         ^
/datasets/git/list-objects-filter-options.c:183:12: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/list-objects-filter-options.c:48:14: warning: variable 'v0' is not initialized [cppcoreguidelines-init-variables]
        const char *v0;
                    ^
                       = NULL
/datasets/git/list-objects-filter-options.c:48:14: warning: variable name 'v0' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/list-objects-filter-options.c:50:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!arg)
                 ^
                  {
/datasets/git/list-objects-filter-options.c:53:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (filter_options->choice)
                                   ^
                                    {
/datasets/git/list-objects-filter-options.c:60:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else if (skip_prefix(arg, "blob:limit=", &v0)) {
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/list-objects-filter-options.c:88:42: warning: narrowing conversion from 'unsigned long' to signed type 'ssize_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int type = type_from_string_gently(v0, strlen(v0), 1);
                                                       ^
/datasets/git/list-objects-filter-options.c:115:20: warning: variable 'RESERVED_NON_WS' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *RESERVED_NON_WS = "~`!@#$^&*()[]{}\\;'\",<>?";
                   ^
/datasets/git/list-objects-filter-options.c:118:2: warning: 2 adjacent parameters of 'has_reserved_character' of similar type ('struct strbuf *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
        struct strbuf *sub_spec, struct strbuf *errbuf)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/list-objects-filter-options.c:118:17: note: the first parameter in the range is 'sub_spec'
        struct strbuf *sub_spec, struct strbuf *errbuf)
                       ^~~~~~~~
/datasets/git/list-objects-filter-options.c:118:42: note: the last parameter in the range is 'errbuf'
        struct strbuf *sub_spec, struct strbuf *errbuf)
                                                ^~~~~~
/datasets/git/list-objects-filter-options.c:120:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        const char *c = sub_spec->buf;
        ^
/datasets/git/list-objects-filter-options.c:120:14: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        const char *c = sub_spec->buf;
                    ^
/datasets/git/list-objects-filter-options.c:121:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*c) {
        ^
/datasets/git/list-objects-filter-options.c:121:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'c' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (*c) {
               ^
/datasets/git/list-objects-filter-options.c:135:12: warning: function 'parse_combine_subfilter' is within a recursive call chain [misc-no-recursion]
static int parse_combine_subfilter(
           ^
/datasets/git/list-objects-filter-options.c:141:8: warning: variable 'decoded' is not initialized [cppcoreguidelines-init-variables]
        char *decoded;
              ^
                      = NULL
/datasets/git/list-objects-filter-options.c:142:6: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        int result;
            ^
                   = 0
/datasets/git/list-objects-filter-options.c:144:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW_BY(filter_options->sub, filter_options->sub_nr, 1,
        ^
/datasets/git/./refs/../cache.h:724:4: note: expanded from macro 'ALLOC_GROW_BY'
                        ALLOC_GROW(x, new_nr, alloc); \
                        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/list-objects-filter-options.c:163:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct strbuf **subspecs = strbuf_split_str(arg, '+', 0);
        ^
/datasets/git/list-objects-filter-options.c:144:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        ALLOC_GROW_BY(filter_options->sub, filter_options->sub_nr, 1,
        ^
/datasets/git/./refs/../cache.h:725:4: note: expanded from macro 'ALLOC_GROW_BY'
                        memset((x) + nr, 0, sizeof(*(x)) * (increase)); \
                        ^~~~~~
/datasets/git/list-objects-filter-options.c:144:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        ALLOC_GROW_BY(filter_options->sub, filter_options->sub_nr, 1,
        ^
/datasets/git/./refs/../cache.h:725:4: note: expanded from macro 'ALLOC_GROW_BY'
                        memset((x) + nr, 0, sizeof(*(x)) * (increase)); \
                        ^~~~~~
/datasets/git/list-objects-filter-options.c:158:12: warning: function 'parse_combine_filter' is within a recursive call chain [misc-no-recursion]
static int parse_combine_filter(
           ^
/datasets/git/list-objects-filter-options.c:164:9: warning: variable 'sub' is not initialized [cppcoreguidelines-init-variables]
        size_t sub;
               ^
                   = 0
/datasets/git/list-objects-filter-options.c:173:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (sub = 0; subspecs[sub] && !result; sub++) {
        ^
/datasets/git/list-objects-filter-options.c:173:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'subspecs' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (sub = 0; subspecs[sub] && !result; sub++) {
                      ^
/datasets/git/list-objects-filter-options.c:191:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (result)
                   ^
                    {
/datasets/git/list-objects-filter-options.c:196:33: warning: parameter name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
static int allow_unencoded(char ch)
                                ^
/datasets/git/list-objects-filter-options.c:198:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ch <= ' ' || ch == '%' || ch == '+')
                                                ^
                                                 {
/datasets/git/list-objects-filter-options.c:208:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf("Add to combine filter-spec: %s\n",
        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/list-objects-filter-options.c:220:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (filter_options->choice == LOFC_COMBINE)
                                                   ^
                                                    {
/datasets/git/list-objects-filter-options.c:247:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (filter_options->choice)
                                   ^
                                    {
/datasets/git/list-objects-filter-options.c:251:6: warning: function 'parse_list_objects_filter' has cognitive complexity of 29 (threshold 25) [readability-function-cognitive-complexity]
void parse_list_objects_filter(
     ^
/datasets/git/list-objects-filter-options.c:258:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!filter_options->filter_spec.buf)
        ^
/datasets/git/list-objects-filter-options.c:261:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!filter_options->choice) {
        ^
/datasets/git/list-objects-filter-options.c:266:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/list-objects-filter-options.c:277:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                ALLOC_GROW_BY(filter_options->sub, filter_options->sub_nr, 1,
                ^
/datasets/git/./refs/../cache.h:719:2: note: expanded from macro 'ALLOC_GROW_BY'
        do { \
        ^
/datasets/git/list-objects-filter-options.c:277:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                ALLOC_GROW_BY(filter_options->sub, filter_options->sub_nr, 1,
                ^
/datasets/git/./refs/../cache.h:720:3: note: expanded from macro 'ALLOC_GROW_BY'
                if (increase) { \
                ^
/datasets/git/list-objects-filter-options.c:277:3: note: +4, including nesting penalty of 3, nesting level increased to 4
                ALLOC_GROW_BY(filter_options->sub, filter_options->sub_nr, 1,
                ^
/datasets/git/./refs/../cache.h:722:4: note: expanded from macro 'ALLOC_GROW_BY'
                        if (new_nr < nr) \
                        ^
/datasets/git/list-objects-filter-options.c:277:3: note: +4, including nesting penalty of 3, nesting level increased to 4
                ALLOC_GROW_BY(filter_options->sub, filter_options->sub_nr, 1,
                ^
/datasets/git/./refs/../cache.h:724:4: note: expanded from macro 'ALLOC_GROW_BY'
                        ALLOC_GROW(x, new_nr, alloc); \
                        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/list-objects-filter-options.c:277:3: note: +5, including nesting penalty of 4, nesting level increased to 5
                ALLOC_GROW_BY(filter_options->sub, filter_options->sub_nr, 1,
                ^
/datasets/git/./refs/../cache.h:724:4: note: expanded from macro 'ALLOC_GROW_BY'
                        ALLOC_GROW(x, new_nr, alloc); \
                        ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/list-objects-filter-options.c:277:3: note: +6, including nesting penalty of 5, nesting level increased to 6
                ALLOC_GROW_BY(filter_options->sub, filter_options->sub_nr, 1,
                ^
/datasets/git/./refs/../cache.h:724:4: note: expanded from macro 'ALLOC_GROW_BY'
                        ALLOC_GROW(x, new_nr, alloc); \
                        ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/list-objects-filter-options.c:277:3: note: +1, nesting level increased to 6
                ALLOC_GROW_BY(filter_options->sub, filter_options->sub_nr, 1,
                ^
/datasets/git/./refs/../cache.h:724:4: note: expanded from macro 'ALLOC_GROW_BY'
                        ALLOC_GROW(x, new_nr, alloc); \
                        ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/list-objects-filter-options.c:285:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (parse_error)
        ^
/datasets/git/list-objects-filter-options.c:256:6: warning: variable 'parse_error' is not initialized [cppcoreguidelines-init-variables]
        int parse_error;
            ^
                        = 0
/datasets/git/list-objects-filter-options.c:258:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!filter_options->filter_spec.buf)
                                             ^
                                              {
/datasets/git/list-objects-filter-options.c:267:39: warning: variable 'sub' is not initialized [cppcoreguidelines-init-variables]
                struct list_objects_filter_options *sub;
                                                    ^
                                                        = NULL
/datasets/git/list-objects-filter-options.c:277:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                ALLOC_GROW_BY(filter_options->sub, filter_options->sub_nr, 1,
                ^
/datasets/git/./refs/../cache.h:724:4: note: expanded from macro 'ALLOC_GROW_BY'
                        ALLOC_GROW(x, new_nr, alloc); \
                        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/list-objects-filter-options.c:277:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                ALLOC_GROW_BY(filter_options->sub, filter_options->sub_nr, 1,
                ^
/datasets/git/./refs/../cache.h:725:4: note: expanded from macro 'ALLOC_GROW_BY'
                        memset((x) + nr, 0, sizeof(*(x)) * (increase)); \
                        ^~~~~~
/datasets/git/list-objects-filter-options.c:277:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                ALLOC_GROW_BY(filter_options->sub, filter_options->sub_nr, 1,
                ^
/datasets/git/./refs/../cache.h:725:4: note: expanded from macro 'ALLOC_GROW_BY'
                        memset((x) + nr, 0, sizeof(*(x)) * (increase)); \
                        ^~~~~~
/datasets/git/list-objects-filter-options.c:285:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_error)
                        ^
                         {
/datasets/git/list-objects-filter-options.c:293:22: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
        opt_lof_init init = (opt_lof_init)opt->defval;
                            ^
/datasets/git/list-objects-filter-options.c:295:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (init)
                 ^
                  {
/datasets/git/list-objects-filter-options.c:298:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unset || !arg)
                          ^
                           {
/datasets/git/list-objects-filter-options.c:300:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/list-objects-filter-options.c:307:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!filter->filter_spec.len)
                                     ^
                                      {
/datasets/git/list-objects-filter-options.c:324:6: warning: function 'list_objects_filter_release' is within a recursive call chain [misc-no-recursion]
void list_objects_filter_release(
     ^
/datasets/git/list-objects-filter-options.c:324:6: note: example recursive call chain, starting from function 'list_objects_filter_release'
/datasets/git/list-objects-filter-options.c:334:3: note: Frame #1: function 'list_objects_filter_release' calls function 'list_objects_filter_release' here:
                list_objects_filter_release(&filter_options->sub[sub]);
                ^
/datasets/git/list-objects-filter-options.c:334:3: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/list-objects-filter-options.c:327:9: warning: variable 'sub' is not initialized [cppcoreguidelines-init-variables]
        size_t sub;
               ^
                   = 0
/datasets/git/list-objects-filter-options.c:329:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!filter_options)
                            ^
                             {
/datasets/git/list-objects-filter-options.c:333:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (sub = 0; sub < filter_options->sub_nr; sub++)
        ^
/datasets/git/list-objects-filter-options.c:333:16: warning: backward branch (for loop) is ID-dependent due to member reference to 'sub_nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (sub = 0; sub < filter_options->sub_nr; sub++)
                      ^
/datasets/git/list-objects-filter-options.c:333:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (sub = 0; sub < filter_options->sub_nr; sub++)
                                                          ^
                                                           {
/datasets/git/list-objects-filter-options.c:343:26: warning: variable 'promisor_remote' is not initialized [cppcoreguidelines-init-variables]
        struct promisor_remote *promisor_remote;
                                ^
                                                = NULL
/datasets/git/list-objects-filter-options.c:344:8: warning: variable 'cfg_name' is not initialized [cppcoreguidelines-init-variables]
        char *cfg_name;
              ^
                       = NULL
/datasets/git/list-objects-filter-options.c:345:8: warning: variable 'filter_name' is not initialized [cppcoreguidelines-init-variables]
        char *filter_name;
              ^
                          = NULL
/datasets/git/list-objects-filter-options.c:348:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if ((promisor_remote = promisor_remote_find(remote))) {
             ^
/datasets/git/list-objects-filter-options.c:348:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/list-objects-filter-options.c:348:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/list-objects-filter-options.c:349:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (promisor_remote->partial_clone_filter)
                                                          ^
                                                           {
/datasets/git/list-objects-filter-options.c:356:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (upgrade_repository_format(1) < 0)
                                                     ^
                                                      {
/datasets/git/list-objects-filter-options.c:389:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!promisor || !promisor->partial_clone_filter)
                                                         ^
                                                          {
/datasets/git/list-objects-filter-options.c:400:6: warning: function 'list_objects_filter_copy' is within a recursive call chain [misc-no-recursion]
void list_objects_filter_copy(
     ^
/datasets/git/list-objects-filter-options.c:400:6: note: example recursive call chain, starting from function 'list_objects_filter_copy'
/datasets/git/list-objects-filter-options.c:415:3: note: Frame #1: function 'list_objects_filter_copy' calls function 'list_objects_filter_copy' here:
                list_objects_filter_copy(&dest->sub[i], &src->sub[i]);
                ^
/datasets/git/list-objects-filter-options.c:415:3: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/list-objects-filter-options.c:404:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/list-objects-filter-options.c:404:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/list-objects-filter-options.c:407:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(dest, src, sizeof(struct list_objects_filter_options));
        ^~~~~~
/datasets/git/list-objects-filter-options.c:407:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(dest, src, sizeof(struct list_objects_filter_options));
        ^~~~~~
/datasets/git/list-objects-filter-options.c:414:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < src->sub_nr; i++)
        ^
/datasets/git/list-objects-filter-options.c:414:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'sub_nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < src->sub_nr; i++)
                    ^
/datasets/git/list-objects-filter-options.c:414:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < src->sub_nr; i++)
                                         ^
                                          {
/datasets/git/list-objects-filter-options.c:421:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(filter_options, &blank, sizeof(*filter_options));
        ^~~~~~
/datasets/git/list-objects-filter-options.c:421:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(filter_options, &blank, sizeof(*filter_options));
        ^~~~~~
/datasets/git/list-objects-filter.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "dir.h"
^        ~~~~~~~
         "blob.h"
/datasets/git/list-objects-filter.c:27:1: warning: replace macro with enum [modernize-macro-to-enum]
#define FILTER_SHOWN_BUT_REVISIT (1<<21)
^~~~~~~~
                                 =
/datasets/git/list-objects-filter.c:27:9: warning: macro 'FILTER_SHOWN_BUT_REVISIT' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define FILTER_SHOWN_BUT_REVISIT (1<<21)
        ^
/datasets/git/list-objects-filter.c:29:8: warning: accessing fields in struct 'subfilter' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct subfilter {
       ^
/datasets/git/list-objects-filter.c:29:8: note: use "__attribute__((aligned(128)))" to align struct 'subfilter' to 128 bytes
/datasets/git/list-objects-filter.c:37:8: warning: accessing fields in struct 'filter' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct filter {
       ^
/datasets/git/list-objects-filter.c:37:8: note: use "__attribute__((aligned(64)))" to align struct 'filter' to 64 bytes
/datasets/git/list-objects-filter.c:39:22: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
                struct repository *r,
                                   ^
/datasets/git/list-objects-filter.c:72:40: warning: function 'filter_blobs_none' has cognitive complexity of 39 (threshold 25) [readability-function-cognitive-complexity]
static enum list_objects_filter_result filter_blobs_none(
                                       ^
/datasets/git/list-objects-filter.c:81:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        switch (filter_situation) {
        ^
/datasets/git/list-objects-filter.c:86:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(obj->type == OBJ_TAG);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/list-objects-filter.c:86:3: note: nesting level increased to 2
                assert(obj->type == OBJ_TAG);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/list-objects-filter.c:86:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(obj->type == OBJ_TAG);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/list-objects-filter.c:86:3: note: +1, nesting level increased to 3
                assert(obj->type == OBJ_TAG);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/list-objects-filter.c:91:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(obj->type == OBJ_COMMIT);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/list-objects-filter.c:91:3: note: nesting level increased to 2
                assert(obj->type == OBJ_COMMIT);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/list-objects-filter.c:91:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(obj->type == OBJ_COMMIT);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/list-objects-filter.c:91:3: note: +1, nesting level increased to 3
                assert(obj->type == OBJ_COMMIT);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/list-objects-filter.c:96:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(obj->type == OBJ_TREE);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/list-objects-filter.c:96:3: note: nesting level increased to 2
                assert(obj->type == OBJ_TREE);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/list-objects-filter.c:96:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(obj->type == OBJ_TREE);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/list-objects-filter.c:96:3: note: +1, nesting level increased to 3
                assert(obj->type == OBJ_TREE);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/list-objects-filter.c:101:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(obj->type == OBJ_TREE);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/list-objects-filter.c:101:3: note: nesting level increased to 2
                assert(obj->type == OBJ_TREE);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/list-objects-filter.c:101:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(obj->type == OBJ_TREE);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/list-objects-filter.c:101:3: note: +1, nesting level increased to 3
                assert(obj->type == OBJ_TREE);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/list-objects-filter.c:105:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(obj->type == OBJ_BLOB);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/list-objects-filter.c:105:3: note: nesting level increased to 2
                assert(obj->type == OBJ_BLOB);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/list-objects-filter.c:105:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(obj->type == OBJ_BLOB);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/list-objects-filter.c:105:3: note: +1, nesting level increased to 3
                assert(obj->type == OBJ_BLOB);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/list-objects-filter.c:106:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert((obj->flags & SEEN) == 0);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/list-objects-filter.c:106:3: note: nesting level increased to 2
                assert((obj->flags & SEEN) == 0);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/list-objects-filter.c:106:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert((obj->flags & SEEN) == 0);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/list-objects-filter.c:106:3: note: +1, nesting level increased to 3
                assert((obj->flags & SEEN) == 0);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/list-objects-filter.c:108:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (omits)
                ^
/datasets/git/list-objects-filter.c:73:21: warning: parameter 'r' is unused [misc-unused-parameters]
        struct repository *r,
                           ^
/datasets/git/list-objects-filter.c:73:21: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/list-objects-filter.c:76:2: warning: 2 adjacent parameters of 'filter_blobs_none' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
        const char *pathname,
        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/list-objects-filter.c:76:14: note: the first parameter in the range is 'pathname'
        const char *pathname,
                    ^~~~~~~~
/datasets/git/list-objects-filter.c:77:14: note: the last parameter in the range is 'filename'
        const char *filename,
                    ^~~~~~~~
/datasets/git/list-objects-filter.c:76:14: warning: parameter 'pathname' is unused [misc-unused-parameters]
        const char *pathname,
                    ^
/datasets/git/list-objects-filter.c:77:14: warning: parameter 'filename' is unused [misc-unused-parameters]
        const char *filename,
                    ^
/datasets/git/list-objects-filter.c:79:8: warning: parameter 'filter_data_' is unused [misc-unused-parameters]
        void *filter_data_)
              ^
/datasets/git/list-objects-filter.c:88:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                return LOFR_MARK_SEEN | LOFR_DO_SHOW;
                       ^~~~~~~~~~~~~~
/datasets/git/list-objects-filter.c:93:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                return LOFR_MARK_SEEN | LOFR_DO_SHOW;
                       ^~~~~~~~~~~~~~
/datasets/git/list-objects-filter.c:98:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                return LOFR_MARK_SEEN | LOFR_DO_SHOW;
                       ^~~~~~~~~~~~~~
/datasets/git/list-objects-filter.c:106:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                assert((obj->flags & SEEN) == 0);
                                     ^
/datasets/git/./revision.h:27:16: note: expanded from macro 'SEEN'
#define SEEN            (1u<<0)
                         ^   ~
/usr/include/assert.h:108:20: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                   ^~~~
/datasets/git/list-objects-filter.c:108:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (omits)
                          ^
                           {
/datasets/git/list-objects-filter.c:115:38: warning: parameter 'filter_options' is unused [misc-unused-parameters]
        struct list_objects_filter_options *filter_options,
                                            ^
/datasets/git/list-objects-filter.c:126:8: warning: accessing fields in struct 'filter_trees_depth_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct filter_trees_depth_data {
       ^
/datasets/git/list-objects-filter.c:126:8: note: use "__attribute__((aligned(64)))" to align struct 'filter_trees_depth_data' to 64 bytes
/datasets/git/list-objects-filter.c:141:8: warning: accessing fields in struct 'seen_map_entry' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct seen_map_entry {
       ^
/datasets/git/list-objects-filter.c:141:8: note: use "__attribute__((aligned(64)))" to align struct 'seen_map_entry' to 64 bytes
/datasets/git/list-objects-filter.c:152:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!omits)
                   ^
                    {
/datasets/git/list-objects-filter.c:155:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (include_it)
                       ^
                        {
/datasets/git/list-objects-filter.c:157:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else
        ^~~~
                        return oidset_insert(omits, &obj->oid)
/datasets/git/list-objects-filter.c:157:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/list-objects-filter.c:161:40: warning: function 'filter_trees_depth' has cognitive complexity of 33 (threshold 25) [readability-function-cognitive-complexity]
static enum list_objects_filter_result filter_trees_depth(
                                       ^
/datasets/git/list-objects-filter.c:182:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        switch (filter_situation) {
        ^
/datasets/git/list-objects-filter.c:187:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(obj->type == OBJ_TAG);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/list-objects-filter.c:187:3: note: nesting level increased to 2
                assert(obj->type == OBJ_TAG);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/list-objects-filter.c:187:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(obj->type == OBJ_TAG);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/list-objects-filter.c:187:3: note: +1, nesting level increased to 3
                assert(obj->type == OBJ_TAG);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/list-objects-filter.c:192:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(obj->type == OBJ_COMMIT);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/list-objects-filter.c:192:3: note: nesting level increased to 2
                assert(obj->type == OBJ_COMMIT);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/list-objects-filter.c:192:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(obj->type == OBJ_COMMIT);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/list-objects-filter.c:192:3: note: +1, nesting level increased to 3
                assert(obj->type == OBJ_COMMIT);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/list-objects-filter.c:197:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(obj->type == OBJ_TREE);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/list-objects-filter.c:197:3: note: nesting level increased to 2
                assert(obj->type == OBJ_TREE);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/list-objects-filter.c:197:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(obj->type == OBJ_TREE);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/list-objects-filter.c:197:3: note: +1, nesting level increased to 3
                assert(obj->type == OBJ_TREE);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/list-objects-filter.c:203:21: note: +2, including nesting penalty of 1, nesting level increased to 2
                return include_it ? LOFR_MARK_SEEN | LOFR_DO_SHOW : LOFR_ZERO;
                                  ^
/datasets/git/list-objects-filter.c:208:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!seen_info) {
                ^
/datasets/git/list-objects-filter.c:214:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/list-objects-filter.c:219:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (already_seen) {
                ^
/datasets/git/list-objects-filter.c:221:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/list-objects-filter.c:226:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (include_it)
                        ^
/datasets/git/list-objects-filter.c:228:9: note: +1, nesting level increased to 3
                        else if (omits && !been_omitted)
                             ^
/datasets/git/list-objects-filter.c:228:19: note: +1
                        else if (omits && !been_omitted)
                                       ^
/datasets/git/list-objects-filter.c:234:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/list-objects-filter.c:162:21: warning: parameter 'r' is unused [misc-unused-parameters]
        struct repository *r,
                           ^
/datasets/git/list-objects-filter.c:162:21: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/list-objects-filter.c:165:2: warning: 2 adjacent parameters of 'filter_trees_depth' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
        const char *pathname,
        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/list-objects-filter.c:165:14: note: the first parameter in the range is 'pathname'
        const char *pathname,
                    ^~~~~~~~
/datasets/git/list-objects-filter.c:166:14: note: the last parameter in the range is 'filename'
        const char *filename,
                    ^~~~~~~~
/datasets/git/list-objects-filter.c:165:14: warning: parameter 'pathname' is unused [misc-unused-parameters]
        const char *pathname,
                    ^
/datasets/git/list-objects-filter.c:166:14: warning: parameter 'filename' is unused [misc-unused-parameters]
        const char *filename,
                    ^
/datasets/git/list-objects-filter.c:171:25: warning: variable 'seen_info' is not initialized [cppcoreguidelines-init-variables]
        struct seen_map_entry *seen_info;
                               ^
                                         = NULL
/datasets/git/list-objects-filter.c:174:6: warning: variable 'filter_res' is not initialized [cppcoreguidelines-init-variables]
        int filter_res;
            ^
                       = 0
/datasets/git/list-objects-filter.c:175:6: warning: variable 'already_seen' is not initialized [cppcoreguidelines-init-variables]
        int already_seen;
            ^
                         = 0
/datasets/git/list-objects-filter.c:189:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                return LOFR_MARK_SEEN | LOFR_DO_SHOW;
                       ^~~~~~~~~~~~~~
/datasets/git/list-objects-filter.c:194:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                return LOFR_MARK_SEEN | LOFR_DO_SHOW;
                       ^~~~~~~~~~~~~~
/datasets/git/list-objects-filter.c:203:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                return include_it ? LOFR_MARK_SEEN | LOFR_DO_SHOW : LOFR_ZERO;
                                    ^~~~~~~~~~~~~~
/datasets/git/list-objects-filter.c:226:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (include_it)
                                       ^
                                        {
/datasets/git/list-objects-filter.c:228:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (omits && !been_omitted)
                                                        ^
                                                         {
/datasets/git/list-objects-filter.c:234:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/list-objects-filter.c:244:34: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
        struct filter_trees_depth_data *d = filter_data;
                                        ^
/datasets/git/list-objects-filter.c:245:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!d)
               ^
                {
/datasets/git/list-objects-filter.c:255:34: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
        struct filter_trees_depth_data *d = xcalloc(1, sizeof(*d));
                                        ^
/datasets/git/list-objects-filter.c:273:40: warning: function 'filter_blobs_limit' has cognitive complexity of 45 (threshold 25) [readability-function-cognitive-complexity]
static enum list_objects_filter_result filter_blobs_limit(
                                       ^
/datasets/git/list-objects-filter.c:286:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        switch (filter_situation) {
        ^
/datasets/git/list-objects-filter.c:291:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(obj->type == OBJ_TAG);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/list-objects-filter.c:291:3: note: nesting level increased to 2
                assert(obj->type == OBJ_TAG);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/list-objects-filter.c:291:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(obj->type == OBJ_TAG);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/list-objects-filter.c:291:3: note: +1, nesting level increased to 3
                assert(obj->type == OBJ_TAG);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/list-objects-filter.c:296:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(obj->type == OBJ_COMMIT);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/list-objects-filter.c:296:3: note: nesting level increased to 2
                assert(obj->type == OBJ_COMMIT);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/list-objects-filter.c:296:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(obj->type == OBJ_COMMIT);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/list-objects-filter.c:296:3: note: +1, nesting level increased to 3
                assert(obj->type == OBJ_COMMIT);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/list-objects-filter.c:301:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(obj->type == OBJ_TREE);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/list-objects-filter.c:301:3: note: nesting level increased to 2
                assert(obj->type == OBJ_TREE);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/list-objects-filter.c:301:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(obj->type == OBJ_TREE);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/list-objects-filter.c:301:3: note: +1, nesting level increased to 3
                assert(obj->type == OBJ_TREE);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/list-objects-filter.c:306:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(obj->type == OBJ_TREE);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/list-objects-filter.c:306:3: note: nesting level increased to 2
                assert(obj->type == OBJ_TREE);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/list-objects-filter.c:306:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(obj->type == OBJ_TREE);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/list-objects-filter.c:306:3: note: +1, nesting level increased to 3
                assert(obj->type == OBJ_TREE);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/list-objects-filter.c:310:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(obj->type == OBJ_BLOB);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/list-objects-filter.c:310:3: note: nesting level increased to 2
                assert(obj->type == OBJ_BLOB);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/list-objects-filter.c:310:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(obj->type == OBJ_BLOB);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/list-objects-filter.c:310:3: note: +1, nesting level increased to 3
                assert(obj->type == OBJ_BLOB);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/list-objects-filter.c:311:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert((obj->flags & SEEN) == 0);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/list-objects-filter.c:311:3: note: nesting level increased to 2
                assert((obj->flags & SEEN) == 0);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/list-objects-filter.c:311:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert((obj->flags & SEEN) == 0);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/list-objects-filter.c:311:3: note: +1, nesting level increased to 3
                assert((obj->flags & SEEN) == 0);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/list-objects-filter.c:314:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (t != OBJ_BLOB) { /* probably OBJ_NONE */
                ^
/datasets/git/list-objects-filter.c:321:4: note: +1
                        goto include_it;
                        ^
/datasets/git/list-objects-filter.c:324:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (object_length < filter_data->max_bytes)
                ^
/datasets/git/list-objects-filter.c:327:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (omits)
                ^
/datasets/git/list-objects-filter.c:333:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (omits)
        ^
/datasets/git/list-objects-filter.c:274:21: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        struct repository *r,
                           ^
/datasets/git/list-objects-filter.c:277:2: warning: 2 adjacent parameters of 'filter_blobs_limit' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
        const char *pathname,
        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/list-objects-filter.c:277:14: note: the first parameter in the range is 'pathname'
        const char *pathname,
                    ^~~~~~~~
/datasets/git/list-objects-filter.c:278:14: note: the last parameter in the range is 'filename'
        const char *filename,
                    ^~~~~~~~
/datasets/git/list-objects-filter.c:277:14: warning: parameter 'pathname' is unused [misc-unused-parameters]
        const char *pathname,
                    ^
/datasets/git/list-objects-filter.c:278:14: warning: parameter 'filename' is unused [misc-unused-parameters]
        const char *filename,
                    ^
/datasets/git/list-objects-filter.c:283:16: warning: variable 'object_length' is not initialized [cppcoreguidelines-init-variables]
        unsigned long object_length;
                      ^
                                    = 0
/datasets/git/list-objects-filter.c:284:19: warning: variable 't' is not initialized [cppcoreguidelines-init-variables]
        enum object_type t;
                         ^
/datasets/git/list-objects-filter.c:284:19: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/list-objects-filter.c:293:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                return LOFR_MARK_SEEN | LOFR_DO_SHOW;
                       ^~~~~~~~~~~~~~
/datasets/git/list-objects-filter.c:298:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                return LOFR_MARK_SEEN | LOFR_DO_SHOW;
                       ^~~~~~~~~~~~~~
/datasets/git/list-objects-filter.c:303:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                return LOFR_MARK_SEEN | LOFR_DO_SHOW;
                       ^~~~~~~~~~~~~~
/datasets/git/list-objects-filter.c:311:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                assert((obj->flags & SEEN) == 0);
                                     ^
/datasets/git/./revision.h:27:16: note: expanded from macro 'SEEN'
#define SEEN            (1u<<0)
                         ^   ~
/usr/include/assert.h:108:20: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                   ^~~~
/datasets/git/list-objects-filter.c:324:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (object_length < filter_data->max_bytes)
                                                           ^
                                                            {
/datasets/git/list-objects-filter.c:327:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (omits)
                          ^
                           {
/datasets/git/list-objects-filter.c:333:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (omits)
                  ^
                   {
/datasets/git/list-objects-filter.c:335:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return LOFR_MARK_SEEN | LOFR_DO_SHOW;
               ^~~~~~~~~~~~~~
/datasets/git/list-objects-filter.c:342:34: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
        struct filter_blobs_limit_data *d = xcalloc(1, sizeof(*d));
                                        ^
/datasets/git/list-objects-filter.c:359:8: warning: accessing fields in struct 'frame' is inefficient due to poor alignment; currently aligned to 4 bytes, but recommended alignment is 8 bytes [altera-struct-pack-align]
struct frame {
       ^
/datasets/git/list-objects-filter.c:359:8: note: use "__attribute__((aligned(8)))" to align struct 'frame' to 8 bytes
/datasets/git/list-objects-filter.c:379:8: warning: accessing fields in struct 'filter_sparse_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct filter_sparse_data {
       ^
/datasets/git/list-objects-filter.c:379:8: note: use "__attribute__((aligned(128)))" to align struct 'filter_sparse_data' to 128 bytes
/datasets/git/list-objects-filter.c:386:40: warning: function 'filter_sparse' has cognitive complexity of 68 (threshold 25) [readability-function-cognitive-complexity]
static enum list_objects_filter_result filter_sparse(
                                       ^
/datasets/git/list-objects-filter.c:400:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        switch (filter_situation) {
        ^
/datasets/git/list-objects-filter.c:405:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(obj->type == OBJ_TAG);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/list-objects-filter.c:405:3: note: nesting level increased to 2
                assert(obj->type == OBJ_TAG);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/list-objects-filter.c:405:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(obj->type == OBJ_TAG);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/list-objects-filter.c:405:3: note: +1, nesting level increased to 3
                assert(obj->type == OBJ_TAG);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/list-objects-filter.c:410:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(obj->type == OBJ_COMMIT);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/list-objects-filter.c:410:3: note: nesting level increased to 2
                assert(obj->type == OBJ_COMMIT);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/list-objects-filter.c:410:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(obj->type == OBJ_COMMIT);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/list-objects-filter.c:410:3: note: +1, nesting level increased to 3
                assert(obj->type == OBJ_COMMIT);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/list-objects-filter.c:415:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(obj->type == OBJ_TREE);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/list-objects-filter.c:415:3: note: nesting level increased to 2
                assert(obj->type == OBJ_TREE);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/list-objects-filter.c:415:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(obj->type == OBJ_TREE);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/list-objects-filter.c:415:3: note: +1, nesting level increased to 3
                assert(obj->type == OBJ_TREE);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/list-objects-filter.c:420:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (match == UNDECIDED)
                ^
/datasets/git/list-objects-filter.c:423:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                ALLOC_GROW(filter_data->array_frame, filter_data->nr + 1,
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/list-objects-filter.c:423:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                ALLOC_GROW(filter_data->array_frame, filter_data->nr + 1,
                ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/list-objects-filter.c:423:3: note: +4, including nesting penalty of 3, nesting level increased to 4
                ALLOC_GROW(filter_data->array_frame, filter_data->nr + 1,
                ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/list-objects-filter.c:423:3: note: +1, nesting level increased to 4
                ALLOC_GROW(filter_data->array_frame, filter_data->nr + 1,
                ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/list-objects-filter.c:445:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (obj->flags & FILTER_SHOWN_BUT_REVISIT)
                ^
/datasets/git/list-objects-filter.c:451:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(obj->type == OBJ_TREE);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/list-objects-filter.c:451:3: note: nesting level increased to 2
                assert(obj->type == OBJ_TREE);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/list-objects-filter.c:451:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(obj->type == OBJ_TREE);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/list-objects-filter.c:451:3: note: +1, nesting level increased to 3
                assert(obj->type == OBJ_TREE);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/list-objects-filter.c:452:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(filter_data->nr > 1);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/list-objects-filter.c:452:3: note: nesting level increased to 2
                assert(filter_data->nr > 1);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/list-objects-filter.c:452:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(filter_data->nr > 1);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/list-objects-filter.c:452:3: note: +1, nesting level increased to 3
                assert(filter_data->nr > 1);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/list-objects-filter.c:468:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!frame->child_prov_omit)
                ^
/datasets/git/list-objects-filter.c:473:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(obj->type == OBJ_BLOB);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/list-objects-filter.c:473:3: note: nesting level increased to 2
                assert(obj->type == OBJ_BLOB);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/list-objects-filter.c:473:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(obj->type == OBJ_BLOB);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/list-objects-filter.c:473:3: note: +1, nesting level increased to 3
                assert(obj->type == OBJ_BLOB);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/list-objects-filter.c:474:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert((obj->flags & SEEN) == 0);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/list-objects-filter.c:474:3: note: nesting level increased to 2
                assert((obj->flags & SEEN) == 0);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/list-objects-filter.c:474:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert((obj->flags & SEEN) == 0);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/list-objects-filter.c:474:3: note: +1, nesting level increased to 3
                assert((obj->flags & SEEN) == 0);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/list-objects-filter.c:482:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (match == UNDECIDED)
                ^
/datasets/git/list-objects-filter.c:484:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (match == MATCHED) {
                ^
/datasets/git/list-objects-filter.c:485:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (omits)
                        ^
/datasets/git/list-objects-filter.c:500:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (omits)
                ^
/datasets/git/list-objects-filter.c:387:21: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        struct repository *r,
                           ^
/datasets/git/list-objects-filter.c:396:6: warning: variable 'dtype' is not initialized [cppcoreguidelines-init-variables]
        int dtype;
            ^
                  = 0
/datasets/git/list-objects-filter.c:397:16: warning: variable 'frame' is not initialized [cppcoreguidelines-init-variables]
        struct frame *frame;
                      ^
                            = NULL
/datasets/git/list-objects-filter.c:398:28: warning: variable 'match' is not initialized [cppcoreguidelines-init-variables]
        enum pattern_match_result match;
                                  ^
/datasets/git/list-objects-filter.c:407:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                return LOFR_MARK_SEEN | LOFR_DO_SHOW;
                       ^~~~~~~~~~~~~~
/datasets/git/list-objects-filter.c:412:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                return LOFR_MARK_SEEN | LOFR_DO_SHOW;
                       ^~~~~~~~~~~~~~
/datasets/git/list-objects-filter.c:417:47: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                match = path_matches_pattern_list(pathname, strlen(pathname),
                                                            ^
/datasets/git/list-objects-filter.c:420:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (match == UNDECIDED)
                                       ^
                                        {
/datasets/git/list-objects-filter.c:423:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                ALLOC_GROW(filter_data->array_frame, filter_data->nr + 1,
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/list-objects-filter.c:445:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (obj->flags & FILTER_SHOWN_BUT_REVISIT)
                    ^
/datasets/git/list-objects-filter.c:445:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (obj->flags & FILTER_SHOWN_BUT_REVISIT)
                                 ^
/datasets/git/list-objects-filter.c:27:35: note: expanded from macro 'FILTER_SHOWN_BUT_REVISIT'
#define FILTER_SHOWN_BUT_REVISIT (1<<21)
                                  ^
/datasets/git/list-objects-filter.c:445:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (obj->flags & FILTER_SHOWN_BUT_REVISIT)
                                                          ^
                                                           {
/datasets/git/list-objects-filter.c:447:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                obj->flags |= FILTER_SHOWN_BUT_REVISIT;
                ^
/datasets/git/list-objects-filter.c:447:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                obj->flags |= FILTER_SHOWN_BUT_REVISIT;
                              ^
/datasets/git/list-objects-filter.c:27:35: note: expanded from macro 'FILTER_SHOWN_BUT_REVISIT'
#define FILTER_SHOWN_BUT_REVISIT (1<<21)
                                  ^
/datasets/git/list-objects-filter.c:468:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!frame->child_prov_omit)
                                            ^
                                             {
/datasets/git/list-objects-filter.c:474:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                assert((obj->flags & SEEN) == 0);
                                     ^
/datasets/git/./revision.h:27:16: note: expanded from macro 'SEEN'
#define SEEN            (1u<<0)
                         ^   ~
/usr/include/assert.h:108:20: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                   ^~~~
/datasets/git/list-objects-filter.c:479:47: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                match = path_matches_pattern_list(pathname, strlen(pathname),
                                                            ^
/datasets/git/list-objects-filter.c:482:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (match == UNDECIDED)
                                       ^
                                        {
/datasets/git/list-objects-filter.c:485:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (omits)
                                  ^
                                   {
/datasets/git/list-objects-filter.c:487:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        return LOFR_MARK_SEEN | LOFR_DO_SHOW;
                               ^~~~~~~~~~~~~~
/datasets/git/list-objects-filter.c:500:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (omits)
                          ^
                           {
/datasets/git/list-objects-filter.c:516:29: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
        struct filter_sparse_data *d = filter_data;
                                   ^
/datasets/git/list-objects-filter.c:525:29: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
        struct filter_sparse_data *d = xcalloc(1, sizeof(*d));
                                   ^
/datasets/git/list-objects-filter.c:526:24: warning: variable name 'oc' is too short, expected at least 3 characters [readability-identifier-length]
        struct object_context oc;
                              ^
/datasets/git/list-objects-filter.c:531:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                 GET_OID_BLOB, &sparse_oid, &oc))
                                                                 ^
                                                                  {
/datasets/git/list-objects-filter.c:534:69: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (add_patterns_from_blob_to_list(&sparse_oid, "", 0, &d->pl) < 0)
                                                                           ^
                                                                            {
/datasets/git/list-objects-filter.c:538:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(d->array_frame, d->nr + 1, d->alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/list-objects-filter.c:556:40: warning: function 'filter_object_type' has cognitive complexity of 36 (threshold 25) [readability-function-cognitive-complexity]
static enum list_objects_filter_result filter_object_type(
                                       ^
/datasets/git/list-objects-filter.c:567:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        switch (filter_situation) {
        ^
/datasets/git/list-objects-filter.c:572:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(obj->type == OBJ_TAG);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/list-objects-filter.c:572:3: note: nesting level increased to 2
                assert(obj->type == OBJ_TAG);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/list-objects-filter.c:572:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(obj->type == OBJ_TAG);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/list-objects-filter.c:572:3: note: +1, nesting level increased to 3
                assert(obj->type == OBJ_TAG);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/list-objects-filter.c:573:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (filter_data->object_type == OBJ_TAG)
                ^
/datasets/git/list-objects-filter.c:578:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(obj->type == OBJ_COMMIT);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/list-objects-filter.c:578:3: note: nesting level increased to 2
                assert(obj->type == OBJ_COMMIT);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/list-objects-filter.c:578:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(obj->type == OBJ_COMMIT);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/list-objects-filter.c:578:3: note: +1, nesting level increased to 3
                assert(obj->type == OBJ_COMMIT);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/list-objects-filter.c:579:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (filter_data->object_type == OBJ_COMMIT)
                ^
/datasets/git/list-objects-filter.c:584:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(obj->type == OBJ_TREE);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/list-objects-filter.c:584:3: note: nesting level increased to 2
                assert(obj->type == OBJ_TREE);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/list-objects-filter.c:584:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(obj->type == OBJ_TREE);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/list-objects-filter.c:584:3: note: +1, nesting level increased to 3
                assert(obj->type == OBJ_TREE);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/list-objects-filter.c:590:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (filter_data->object_type == OBJ_COMMIT ||
                ^
/datasets/git/list-objects-filter.c:590:46: note: +1
                if (filter_data->object_type == OBJ_COMMIT ||
                                                           ^
/datasets/git/list-objects-filter.c:594:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (filter_data->object_type == OBJ_TREE)
                ^
/datasets/git/list-objects-filter.c:600:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(obj->type == OBJ_BLOB);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/list-objects-filter.c:600:3: note: nesting level increased to 2
                assert(obj->type == OBJ_BLOB);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/list-objects-filter.c:600:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(obj->type == OBJ_BLOB);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/list-objects-filter.c:600:3: note: +1, nesting level increased to 3
                assert(obj->type == OBJ_BLOB);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/list-objects-filter.c:602:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (filter_data->object_type == OBJ_BLOB)
                ^
/datasets/git/list-objects-filter.c:557:21: warning: parameter 'r' is unused [misc-unused-parameters]
        struct repository *r,
                           ^
/datasets/git/list-objects-filter.c:557:21: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/list-objects-filter.c:560:2: warning: 2 adjacent parameters of 'filter_object_type' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
        const char *pathname,
        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/list-objects-filter.c:560:14: note: the first parameter in the range is 'pathname'
        const char *pathname,
                    ^~~~~~~~
/datasets/git/list-objects-filter.c:561:14: note: the last parameter in the range is 'filename'
        const char *filename,
                    ^~~~~~~~
/datasets/git/list-objects-filter.c:560:14: warning: parameter 'pathname' is unused [misc-unused-parameters]
        const char *pathname,
                    ^
/datasets/git/list-objects-filter.c:561:14: warning: parameter 'filename' is unused [misc-unused-parameters]
        const char *filename,
                    ^
/datasets/git/list-objects-filter.c:562:17: warning: parameter 'omits' is unused [misc-unused-parameters]
        struct oidset *omits,
                       ^
/datasets/git/list-objects-filter.c:573:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (filter_data->object_type == OBJ_TAG)
                                                        ^
                                                         {
/datasets/git/list-objects-filter.c:574:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        return LOFR_MARK_SEEN | LOFR_DO_SHOW;
                               ^~~~~~~~~~~~~~
/datasets/git/list-objects-filter.c:579:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (filter_data->object_type == OBJ_COMMIT)
                                                           ^
                                                            {
/datasets/git/list-objects-filter.c:580:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        return LOFR_MARK_SEEN | LOFR_DO_SHOW;
                               ^~~~~~~~~~~~~~
/datasets/git/list-objects-filter.c:591:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    filter_data->object_type == OBJ_TAG)
                                                        ^
                                                         {
/datasets/git/list-objects-filter.c:594:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (filter_data->object_type == OBJ_TREE)
                                                         ^
                                                          {
/datasets/git/list-objects-filter.c:595:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        return LOFR_MARK_SEEN | LOFR_DO_SHOW;
                               ^~~~~~~~~~~~~~
/datasets/git/list-objects-filter.c:602:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (filter_data->object_type == OBJ_BLOB)
                                                         ^
                                                          {
/datasets/git/list-objects-filter.c:603:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        return LOFR_MARK_SEEN | LOFR_DO_SHOW;
                               ^~~~~~~~~~~~~~
/datasets/git/list-objects-filter.c:615:34: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
        struct filter_object_type_data *d = xcalloc(1, sizeof(*d));
                                        ^
/datasets/git/list-objects-filter.c:624:8: warning: accessing fields in struct 'combine_filter_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct combine_filter_data {
       ^
/datasets/git/list-objects-filter.c:624:8: note: use "__attribute__((aligned(16)))" to align struct 'combine_filter_data' to 16 bytes
/datasets/git/list-objects-filter.c:630:21: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        struct repository *r,
                           ^
/datasets/git/list-objects-filter.c:637:34: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        enum list_objects_filter_result result;
                                        ^
/datasets/git/list-objects-filter.c:650:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    oideq(&obj->oid, &sub->skip_tree))
                                                      ^
                                                       {
/datasets/git/list-objects-filter.c:652:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/list-objects-filter.c:655:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oidset_contains(&sub->seen, &obj->oid))
                                                   ^
                                                    {
/datasets/git/list-objects-filter.c:661:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (result & LOFR_MARK_SEEN)
            ^        ~~~~~~~~~~~~~~
/datasets/git/list-objects-filter.c:661:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (result & LOFR_MARK_SEEN)
                                    ^
                                     {
/datasets/git/list-objects-filter.c:664:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (result & LOFR_SKIP_TREE) {
            ^        ~~~~~~~~~~~~~~
/datasets/git/list-objects-filter.c:673:21: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        struct repository *r,
                           ^
/datasets/git/list-objects-filter.c:681:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct combine_filter_data *d = filter_data;
        ^
/datasets/git/list-objects-filter.c:678:17: warning: parameter 'omits' is unused [misc-unused-parameters]
        struct oidset *omits,
                       ^
/datasets/git/list-objects-filter.c:681:30: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
        struct combine_filter_data *d = filter_data;
                                    ^
/datasets/git/list-objects-filter.c:683:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                LOFR_DO_SHOW | LOFR_MARK_SEEN | LOFR_SKIP_TREE;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/list-objects-filter.c:684:9: warning: variable 'sub' is not initialized [cppcoreguidelines-init-variables]
        size_t sub;
               ^
                   = 0
/datasets/git/list-objects-filter.c:686:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (sub = 0; sub < d->nr; sub++) {
        ^
/datasets/git/list-objects-filter.c:686:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'd' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (sub = 0; sub < d->nr; sub++) {
                      ^
/datasets/git/list-objects-filter.c:690:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(sub_result & LOFR_DO_SHOW))
                      ^            ~~~~~~~~~~~~
/datasets/git/list-objects-filter.c:690:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(sub_result & LOFR_DO_SHOW))
                                                 ^
                                                  {
/datasets/git/list-objects-filter.c:691:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        combined_result &= ~LOFR_DO_SHOW;
                        ^                  ~~~~~~~~~~~~~
/datasets/git/list-objects-filter.c:691:23: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                        combined_result &= ~LOFR_DO_SHOW;
                                           ^~~~~~~~~~~~~
/datasets/git/list-objects-filter.c:692:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(sub_result & LOFR_MARK_SEEN))
                      ^            ~~~~~~~~~~~~~~
/datasets/git/list-objects-filter.c:692:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(sub_result & LOFR_MARK_SEEN))
                                                   ^
                                                    {
/datasets/git/list-objects-filter.c:693:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        combined_result &= ~LOFR_MARK_SEEN;
                        ^                  ~~~~~~~~~~~~~~~
/datasets/git/list-objects-filter.c:693:23: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                        combined_result &= ~LOFR_MARK_SEEN;
                                           ^~~~~~~~~~~~~~~
/datasets/git/list-objects-filter.c:694:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!d->sub[sub].is_skipping_tree)
                                                  ^
                                                   {
/datasets/git/list-objects-filter.c:695:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        combined_result &= ~LOFR_SKIP_TREE;
                        ^                  ~~~~~~~~~~~~~~~
/datasets/git/list-objects-filter.c:695:23: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                        combined_result &= ~LOFR_SKIP_TREE;
                                           ^~~~~~~~~~~~~~~
/datasets/git/list-objects-filter.c:703:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct combine_filter_data *d = filter_data;
        ^
/datasets/git/list-objects-filter.c:703:30: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
        struct combine_filter_data *d = filter_data;
                                    ^
/datasets/git/list-objects-filter.c:704:9: warning: variable 'sub' is not initialized [cppcoreguidelines-init-variables]
        size_t sub;
               ^
                   = 0
/datasets/git/list-objects-filter.c:705:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (sub = 0; sub < d->nr; sub++) {
        ^
/datasets/git/list-objects-filter.c:705:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'd' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (sub = 0; sub < d->nr; sub++) {
                      ^
/datasets/git/list-objects-filter.c:708:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (d->sub[sub].omits.set.size)
                                               ^
                                                {
/datasets/git/list-objects-filter.c:715:21: warning: 2 adjacent parameters of 'add_all' of similar type ('struct oidset *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void add_all(struct oidset *dest, struct oidset *src) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/list-objects-filter.c:715:36: note: the first parameter in the range is 'dest'
static void add_all(struct oidset *dest, struct oidset *src) {
                                   ^~~~
/datasets/git/list-objects-filter.c:715:57: note: the last parameter in the range is 'src'
static void add_all(struct oidset *dest, struct oidset *src) {
                                                        ^~~
/datasets/git/list-objects-filter.c:717:20: warning: variable 'src_oid' is not initialized [cppcoreguidelines-init-variables]
        struct object_id *src_oid;
                          ^
                                  = NULL
/datasets/git/list-objects-filter.c:728:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct combine_filter_data *d = filter_data;
        ^
/datasets/git/list-objects-filter.c:720:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((src_oid = oidset_iter_next(&iter)) != NULL)
        ^
/datasets/git/list-objects-filter.c:720:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'src_oid' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((src_oid = oidset_iter_next(&iter)) != NULL)
               ^
/datasets/git/list-objects-filter.c:720:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while ((src_oid = oidset_iter_next(&iter)) != NULL)
                                                           ^
                                                            {
/datasets/git/list-objects-filter.c:728:30: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
        struct combine_filter_data *d = filter_data;
                                    ^
/datasets/git/list-objects-filter.c:729:9: warning: variable 'sub' is not initialized [cppcoreguidelines-init-variables]
        size_t sub;
               ^
                   = 0
/datasets/git/list-objects-filter.c:731:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (sub = 0; sub < d->nr; sub++) {
        ^
/datasets/git/list-objects-filter.c:731:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'd' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (sub = 0; sub < d->nr; sub++) {
                      ^
/datasets/git/list-objects-filter.c:741:30: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
        struct combine_filter_data *d = xcalloc(1, sizeof(*d));
                                    ^
/datasets/git/list-objects-filter.c:742:9: warning: variable 'sub' is not initialized [cppcoreguidelines-init-variables]
        size_t sub;
               ^
                   = 0
/datasets/git/list-objects-filter.c:746:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (sub = 0; sub < d->nr; sub++)
        ^
/datasets/git/list-objects-filter.c:746:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'd' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (sub = 0; sub < d->nr; sub++)
                      ^
/datasets/git/list-objects-filter.c:746:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (sub = 0; sub < d->nr; sub++)
                                         ^
                                          {
/datasets/git/list-objects-filter.c:764:23: warning: variable 's_filters' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static filter_init_fn s_filters[] = {
                      ^
/datasets/git/list-objects-filter.c:778:17: warning: variable 'filter' is not initialized [cppcoreguidelines-init-variables]
        struct filter *filter;
                       ^
                              = NULL
/datasets/git/list-objects-filter.c:779:17: warning: variable 'init_fn' is not initialized [cppcoreguidelines-init-variables]
        filter_init_fn init_fn;
                       ^
                               = NULL
/datasets/git/list-objects-filter.c:781:2: warning: found assert() that could be replaced by static_assert() [cert-dcl03-c,hicpp-static-assert,misc-static-assert]
        assert((sizeof(s_filters) / sizeof(s_filters[0])) == LOFC__COUNT);
        ^~~~~~
        static_assert                                                   , ""
/datasets/git/list-objects-filter.c:783:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!filter_options)
                            ^
                             {
/datasets/git/list-objects-filter.c:786:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (filter_options->choice >= LOFC__COUNT)
                                                  ^
                                                   {
/datasets/git/list-objects-filter.c:791:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!init_fn)
                     ^
                      {
/datasets/git/list-objects-filter.c:801:21: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        struct repository *r,
                           ^
/datasets/git/list-objects-filter.c:808:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (filter && (obj->flags & NOT_USER_GIVEN))
                                    ^
/datasets/git/./revision.h:49:25: note: expanded from macro 'NOT_USER_GIVEN'
#define NOT_USER_GIVEN  (1u<<25)
                         ^   ~~
/datasets/git/list-objects-filter.c:808:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (filter && (obj->flags & NOT_USER_GIVEN))
                                                    ^
                                                     {
/datasets/git/list-objects-filter.c:818:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (filter_situation == LOFS_END_TREE)
                                              ^
                                               {
/datasets/git/list-objects-filter.c:820:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return LOFR_MARK_SEEN | LOFR_DO_SHOW;
               ^~~~~~~~~~~~~~
/datasets/git/list-objects-filter.c:825:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!filter)
                    ^
                     {
/datasets/git/list-objects-filter.c:827:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (filter->finalize_omits_fn && filter->omits)
                                                       ^
                                                        {
/datasets/git/list-objects.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "tag.h"
^        ~~~~~~~
         "blob.h"
/datasets/git/list-objects.c:16:8: warning: accessing fields in struct 'traversal_context' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct traversal_context {
       ^
/datasets/git/list-objects.c:16:8: note: use "__attribute__((aligned(64)))" to align struct 'traversal_context' to 64 bytes
/datasets/git/list-objects.c:27:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ctx->show_commit)
                              ^
                               {
/datasets/git/list-objects.c:36:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ctx->show_object)
                              ^
                               {
/datasets/git/list-objects.c:47:9: warning: variable 'pathlen' is not initialized [cppcoreguidelines-init-variables]
        size_t pathlen;
               ^
                       = 0
/datasets/git/list-objects.c:48:34: warning: variable 'r' is not initialized [cppcoreguidelines-init-variables]
        enum list_objects_filter_result r;
                                        ^
/datasets/git/list-objects.c:48:34: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/list-objects.c:50:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ctx->revs->blob_objects)
                                     ^
                                      {
/datasets/git/list-objects.c:52:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!obj)
                 ^
                  {
/datasets/git/list-objects.c:54:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (obj->flags & (UNINTERESTING | SEEN))
                          ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/list-objects.c:54:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (obj->flags & (UNINTERESTING | SEEN))
                                          ^
/datasets/git/./revision.h:27:16: note: expanded from macro 'SEEN'
#define SEEN            (1u<<0)
                         ^   ~
/datasets/git/list-objects.c:54:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (obj->flags & (UNINTERESTING | SEEN))
                                                ^
                                                 {
/datasets/git/list-objects.c:68:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            is_promisor_object(&obj->oid))
                                          ^
                                           {
/datasets/git/list-objects.c:77:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (r & LOFR_MARK_SEEN)
            ^   ~~~~~~~~~~~~~~
/datasets/git/list-objects.c:77:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (r & LOFR_MARK_SEEN)
                               ^
                                {
/datasets/git/list-objects.c:78:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                obj->flags |= SEEN;
                              ^
/datasets/git/./revision.h:27:16: note: expanded from macro 'SEEN'
#define SEEN            (1u<<0)
                         ^   ~
/datasets/git/list-objects.c:79:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (r & LOFR_DO_SHOW)
            ^   ~~~~~~~~~~~~
/datasets/git/list-objects.c:79:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (r & LOFR_DO_SHOW)
                             ^
                              {
/datasets/git/list-objects.c:119:13: warning: function 'process_tree_contents' is within a recursive call chain [misc-no-recursion]
static void process_tree_contents(struct traversal_context *ctx,
            ^
/datasets/git/list-objects.c:130:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (tree_entry(&desc, &entry)) {
        ^
/datasets/git/list-objects.c:135:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (match == all_entries_not_interesting)
                                                                 ^
                                                                  {
/datasets/git/list-objects.c:137:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (match == entry_not_interesting)
                                                           ^
                                                            {
/datasets/git/list-objects.c:142:17: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
                        struct tree *t = lookup_tree(ctx->revs->repo, &entry.oid);
                                     ^
/datasets/git/list-objects.c:148:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        t->object.flags |= NOT_USER_GIVEN;
                                           ^
/datasets/git/./revision.h:49:25: note: expanded from macro 'NOT_USER_GIVEN'
#define NOT_USER_GIVEN  (1u<<25)
                         ^   ~~
/datasets/git/list-objects.c:151:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                else if (S_ISGITLINK(entry.mode))
                         ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/list-objects.c:151:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (S_ISGITLINK(entry.mode))
                                                 ^
                                                  {
/datasets/git/list-objects.c:155:17: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
                        struct blob *b = lookup_blob(ctx->revs->repo, &entry.oid);
                                     ^
/datasets/git/list-objects.c:161:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        b->object.flags |= NOT_USER_GIVEN;
                                           ^
/datasets/git/./revision.h:49:25: note: expanded from macro 'NOT_USER_GIVEN'
#define NOT_USER_GIVEN  (1u<<25)
                         ^   ~~
/datasets/git/list-objects.c:167:13: warning: function 'process_tree' is within a recursive call chain [misc-no-recursion]
static void process_tree(struct traversal_context *ctx,
            ^
/datasets/git/list-objects.c:119:13: note: example recursive call chain, starting from function 'process_tree_contents'
static void process_tree_contents(struct traversal_context *ctx,
            ^
/datasets/git/list-objects.c:149:4: note: Frame #1: function 'process_tree_contents' calls function 'process_tree' here:
                        process_tree(ctx, t, base, entry.path);
                        ^
/datasets/git/list-objects.c:221:3: note: Frame #2: function 'process_tree' calls function 'process_tree_contents' here:
                process_tree_contents(ctx, tree, base);
                ^
/datasets/git/list-objects.c:221:3: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/list-objects.c:174:16: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int baselen = base->len;
                      ^
/datasets/git/list-objects.c:175:34: warning: variable 'r' is not initialized [cppcoreguidelines-init-variables]
        enum list_objects_filter_result r;
                                        ^
/datasets/git/list-objects.c:175:34: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/list-objects.c:176:6: warning: variable 'failed_parse' is not initialized [cppcoreguidelines-init-variables]
        int failed_parse;
            ^
                         = 0
/datasets/git/list-objects.c:178:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!revs->tree_objects)
                                ^
                                 {
/datasets/git/list-objects.c:180:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!obj)
                 ^
                  {
/datasets/git/list-objects.c:182:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (obj->flags & (UNINTERESTING | SEEN))
                          ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/list-objects.c:182:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (obj->flags & (UNINTERESTING | SEEN))
                                          ^
/datasets/git/./revision.h:27:16: note: expanded from macro 'SEEN'
#define SEEN            (1u<<0)
                         ^   ~
/datasets/git/list-objects.c:182:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (obj->flags & (UNINTERESTING | SEEN))
                                                ^
                                                 {
/datasets/git/list-objects.c:185:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !revs->include_check_obj(&tree->object, revs->include_check_data))
                                                                              ^
                                                                               {
/datasets/git/list-objects.c:190:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (revs->ignore_missing_links)
                                               ^
                                                {
/datasets/git/list-objects.c:199:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    is_promisor_object(&obj->oid))
                                                  ^
                                                   {
/datasets/git/list-objects.c:202:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!revs->do_not_die_on_missing_tree)
                                                      ^
                                                       {
/datasets/git/list-objects.c:211:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (r & LOFR_MARK_SEEN)
            ^   ~~~~~~~~~~~~~~
/datasets/git/list-objects.c:211:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (r & LOFR_MARK_SEEN)
                               ^
                                {
/datasets/git/list-objects.c:212:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                obj->flags |= SEEN;
                              ^
/datasets/git/./revision.h:27:16: note: expanded from macro 'SEEN'
#define SEEN            (1u<<0)
                         ^   ~
/datasets/git/list-objects.c:213:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (r & LOFR_DO_SHOW)
            ^   ~~~~~~~~~~~~
/datasets/git/list-objects.c:213:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (r & LOFR_DO_SHOW)
                             ^
                              {
/datasets/git/list-objects.c:215:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (base->len)
                      ^
                       {
/datasets/git/list-objects.c:218:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (r & LOFR_SKIP_TREE)
            ^   ~~~~~~~~~~~~~~
/datasets/git/list-objects.c:218:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (r & LOFR_SKIP_TREE)
                               ^
                                {
/datasets/git/list-objects.c:219:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                trace_printf("Skipping contents of tree %s...\n", base->buf);
                ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/list-objects.c:220:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!failed_parse)
                               ^
                                {
/datasets/git/list-objects.c:227:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (r & LOFR_MARK_SEEN)
            ^   ~~~~~~~~~~~~~~
/datasets/git/list-objects.c:227:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (r & LOFR_MARK_SEEN)
                               ^
                                {
/datasets/git/list-objects.c:228:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                obj->flags |= SEEN;
                              ^
/datasets/git/./revision.h:27:16: note: expanded from macro 'SEEN'
#define SEEN            (1u<<0)
                         ^   ~
/datasets/git/list-objects.c:229:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (r & LOFR_DO_SHOW)
            ^   ~~~~~~~~~~~~
/datasets/git/list-objects.c:229:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (r & LOFR_DO_SHOW)
                             ^
                              {
/datasets/git/list-objects.c:240:34: warning: variable 'r' is not initialized [cppcoreguidelines-init-variables]
        enum list_objects_filter_result r;
                                        ^
/datasets/git/list-objects.c:240:34: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/list-objects.c:245:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (r & LOFR_MARK_SEEN)
            ^   ~~~~~~~~~~~~~~
/datasets/git/list-objects.c:245:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (r & LOFR_MARK_SEEN)
                               ^
                                {
/datasets/git/list-objects.c:246:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                tag->object.flags |= SEEN;
                                     ^
/datasets/git/./revision.h:27:16: note: expanded from macro 'SEEN'
#define SEEN            (1u<<0)
                         ^   ~
/datasets/git/list-objects.c:247:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (r & LOFR_DO_SHOW)
            ^   ~~~~~~~~~~~~
/datasets/git/list-objects.c:255:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct commit_list *parents;
        ^
/datasets/git/list-objects.c:247:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (r & LOFR_DO_SHOW)
                             ^
                              {
/datasets/git/list-objects.c:255:22: warning: variable 'parents' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *parents;
                            ^
                                    = NULL
/datasets/git/list-objects.c:257:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (parents = commit->parents; parents; parents = parents->next) {
        ^
/datasets/git/list-objects.c:257:34: warning: backward branch (for loop) is ID-dependent due to variable reference to 'parents' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (parents = commit->parents; parents; parents = parents->next) {
                                        ^
/datasets/git/list-objects.c:259:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(parent->object.flags & UNINTERESTING))
                                             ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/list-objects.c:259:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(parent->object.flags & UNINTERESTING))
                                                            ^
                                                             {
/datasets/git/list-objects.c:262:51: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (revs->edge_hint && !(parent->object.flags & SHOWN)) {
                                                                ^
/datasets/git/./revision.h:30:17: note: expanded from macro 'SHOWN'
#define SHOWN           (1u<<3)
                         ^   ~
/datasets/git/list-objects.c:263:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        parent->object.flags |= SHOWN;
                                                ^
/datasets/git/./revision.h:30:17: note: expanded from macro 'SHOWN'
#define SHOWN           (1u<<3)
                         ^   ~
/datasets/git/list-objects.c:274:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct commit_list *parents;
        ^
/datasets/git/list-objects.c:274:22: warning: variable 'parents' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *parents;
                            ^
                                    = NULL
/datasets/git/list-objects.c:276:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (parents = commit->parents; parents; parents = parents->next) {
        ^
/datasets/git/list-objects.c:276:34: warning: backward branch (for loop) is ID-dependent due to variable reference to 'parents' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (parents = commit->parents; parents; parents = parents->next) {
                                        ^
/datasets/git/list-objects.c:280:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!tree)
                          ^
                           {
/datasets/git/list-objects.c:285:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(parent->object.flags & UNINTERESTING))
                                             ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/list-objects.c:285:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(parent->object.flags & UNINTERESTING))
                                                            ^
                                                             {
/datasets/git/list-objects.c:287:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                tree->object.flags |= UNINTERESTING;
                                      ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/list-objects.c:289:51: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (revs->edge_hint && !(parent->object.flags & SHOWN)) {
                                                                ^
/datasets/git/./revision.h:30:17: note: expanded from macro 'SHOWN'
#define SHOWN           (1u<<3)
                         ^   ~
/datasets/git/list-objects.c:290:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        parent->object.flags |= SHOWN;
                                                ^
/datasets/git/./revision.h:30:17: note: expanded from macro 'SHOWN'
#define SHOWN           (1u<<3)
                         ^   ~
/datasets/git/list-objects.c:296:6: warning: function 'mark_edges_uninteresting' has cognitive complexity of 27 (threshold 25) [readability-function-cognitive-complexity]
void mark_edges_uninteresting(struct rev_info *revs,
     ^
/datasets/git/list-objects.c:303:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (sparse) {
        ^
/datasets/git/list-objects.c:307:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (list = revs->commits; list; list = list->next) {
                ^
/datasets/git/list-objects.c:311:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (commit->object.flags & UNINTERESTING)
                        ^
/datasets/git/list-objects.c:320:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/list-objects.c:321:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (list = revs->commits; list; list = list->next) {
                ^
/datasets/git/list-objects.c:323:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (commit->object.flags & UNINTERESTING) {
                        ^
/datasets/git/list-objects.c:326:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (revs->edge_hint_aggressive && !(commit->object.flags & SHOWN)) {
                                ^
/datasets/git/list-objects.c:326:36: note: +1
                                if (revs->edge_hint_aggressive && !(commit->object.flags & SHOWN)) {
                                                               ^
/datasets/git/list-objects.c:336:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (revs->edge_hint_aggressive) {
        ^
/datasets/git/list-objects.c:337:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < revs->cmdline.nr; i++) {
                ^
/datasets/git/list-objects.c:340:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (obj->type != OBJ_COMMIT || !(obj->flags & UNINTERESTING))
                        ^
/datasets/git/list-objects.c:340:32: note: +1
                        if (obj->type != OBJ_COMMIT || !(obj->flags & UNINTERESTING))
                                                    ^
/datasets/git/list-objects.c:344:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!(obj->flags & SHOWN)) {
                        ^
/datasets/git/list-objects.c:300:22: warning: variable 'list' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *list;
                            ^
                                 = NULL
/datasets/git/list-objects.c:301:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/list-objects.c:301:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/list-objects.c:300:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct commit_list *list;
        ^
/datasets/git/list-objects.c:305:21: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                oidset_init(&set, 16);
                                  ^
/datasets/git/list-objects.c:307:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (list = revs->commits; list; list = list->next) {
                ^
/datasets/git/list-objects.c:307:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'list' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (list = revs->commits; list; list = list->next) {
                                           ^
/datasets/git/list-objects.c:311:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (commit->object.flags & UNINTERESTING)
                                                   ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/list-objects.c:311:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (commit->object.flags & UNINTERESTING)
                                                                 ^
                                                                  {
/datasets/git/list-objects.c:312:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                tree->object.flags |= UNINTERESTING;
                                                      ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/list-objects.c:300:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct commit_list *list;
        ^
/datasets/git/list-objects.c:321:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (list = revs->commits; list; list = list->next) {
                ^
/datasets/git/list-objects.c:321:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'list' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (list = revs->commits; list; list = list->next) {
                                           ^
/datasets/git/list-objects.c:323:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (commit->object.flags & UNINTERESTING) {
                                                   ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/list-objects.c:326:64: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (revs->edge_hint_aggressive && !(commit->object.flags & SHOWN)) {
                                                                                           ^
/datasets/git/./revision.h:30:17: note: expanded from macro 'SHOWN'
#define SHOWN           (1u<<3)
                         ^   ~
/datasets/git/list-objects.c:327:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        commit->object.flags |= SHOWN;
                                                                ^
/datasets/git/./revision.h:30:17: note: expanded from macro 'SHOWN'
#define SHOWN           (1u<<3)
                         ^   ~
/datasets/git/list-objects.c:337:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < revs->cmdline.nr; i++) {
                ^
/datasets/git/list-objects.c:340:50: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (obj->type != OBJ_COMMIT || !(obj->flags & UNINTERESTING))
                                                                      ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/list-objects.c:340:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (obj->type != OBJ_COMMIT || !(obj->flags & UNINTERESTING))
                                                                                     ^
                                                                                      {
/datasets/git/list-objects.c:344:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!(obj->flags & SHOWN)) {
                                           ^
/datasets/git/./revision.h:30:17: note: expanded from macro 'SHOWN'
#define SHOWN           (1u<<3)
                         ^   ~
/datasets/git/list-objects.c:345:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                obj->flags |= SHOWN;
                                              ^
/datasets/git/./revision.h:30:17: note: expanded from macro 'SHOWN'
#define SHOWN           (1u<<3)
                         ^   ~
/datasets/git/list-objects.c:360:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/list-objects.c:360:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/list-objects.c:364:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ctx->revs->pending.nr; i++) {
        ^
/datasets/git/list-objects.c:369:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (obj->flags & (UNINTERESTING | SEEN))
                                  ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/list-objects.c:369:37: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (obj->flags & (UNINTERESTING | SEEN))
                                                  ^
/datasets/git/./revision.h:27:16: note: expanded from macro 'SEEN'
#define SEEN            (1u<<0)
                         ^   ~
/datasets/git/list-objects.c:393:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct commit *commit;
        ^
/datasets/git/list-objects.c:369:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (obj->flags & (UNINTERESTING | SEEN))
                                                        ^
                                                         {
/datasets/git/list-objects.c:375:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!path)
                          ^
                           {
/datasets/git/list-objects.c:393:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/list-objects.c:397:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((commit = get_revision(ctx->revs)) != NULL) {
        ^
/datasets/git/list-objects.c:397:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'commit' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((commit = get_revision(ctx->revs)) != NULL) {
               ^
/datasets/git/list-objects.c:398:35: warning: variable 'r' is not initialized [cppcoreguidelines-init-variables]
                enum list_objects_filter_result r;
                                                ^
/datasets/git/list-objects.c:398:35: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/list-objects.c:408:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ctx->revs->tree_objects)
                                             ^
                                              {
/datasets/git/list-objects.c:412:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        tree->object.flags |= NOT_USER_GIVEN;
                                              ^
/datasets/git/./revision.h:49:25: note: expanded from macro 'NOT_USER_GIVEN'
#define NOT_USER_GIVEN  (1u<<25)
                         ^   ~~
/datasets/git/list-objects.c:419:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (r & LOFR_MARK_SEEN)
                    ^   ~~~~~~~~~~~~~~
/datasets/git/list-objects.c:419:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (r & LOFR_MARK_SEEN)
                                       ^
                                        {
/datasets/git/list-objects.c:420:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        commit->object.flags |= SEEN;
                                                ^
/datasets/git/./revision.h:27:16: note: expanded from macro 'SEEN'
#define SEEN            (1u<<0)
                         ^   ~
/datasets/git/list-objects.c:421:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (r & LOFR_DO_SHOW)
                    ^   ~~~~~~~~~~~~
/datasets/git/list-objects.c:421:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (r & LOFR_DO_SHOW)
                                     ^
                                      {
/datasets/git/list-objects.c:424:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ctx->revs->tree_blobs_in_commit_order)
                                                          ^
                                                           {
/datasets/git/list-objects.c:450:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->filter.choice)
                                ^
                                 {
/datasets/git/list-objects.c:455:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ctx.filter)
                       ^
                        {
/datasets/git/ll-merge.c:8:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "attr.h"
/datasets/git/ll-merge.c:26:8: warning: accessing fields in struct 'll_merge_driver' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct ll_merge_driver {
       ^
/datasets/git/ll-merge.c:26:8: note: use "__attribute__((aligned(64)))" to align struct 'll_merge_driver' to 64 bytes
/datasets/git/ll-merge.c:35:27: warning: variable 'merge_attributes' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct attr_check *merge_attributes;
                          ^
/datasets/git/ll-merge.c:35:27: warning: variable 'merge_attributes' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/ll-merge.c:38:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!merge_attributes)
                              ^
                               {
/datasets/git/ll-merge.c:61:23: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        enum ll_merge_result ret;
                             ^
/datasets/git/ll-merge.c:62:12: warning: variable 'stolen' is not initialized [cppcoreguidelines-init-variables]
        mmfile_t *stolen;
                  ^
                         = NULL
/datasets/git/ll-merge.c:106:23: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        enum ll_merge_result ret;
                             ^
/datasets/git/ll-merge.c:108:6: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int status;
            ^
                   = 0
/datasets/git/ll-merge.c:125:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&xmp, 0, sizeof(xmp));
        ^~~~~~
/datasets/git/ll-merge.c:125:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&xmp, 0, sizeof(xmp));
        ^~~~~~
/datasets/git/ll-merge.c:129:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (git_xmerge_style >= 0)
                                  ^
                                   {
/datasets/git/ll-merge.c:131:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (marker_size > 0)
                            ^
                             {
/datasets/git/ll-merge.c:151:26: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
        struct ll_merge_options o;
                                ^
/datasets/git/ll-merge.c:160:1: warning: replace macro with enum [modernize-macro-to-enum]
#define LL_BINARY_MERGE 0
^~~~~~~~
                        =,
/datasets/git/ll-merge.c:160:9: warning: macro 'LL_BINARY_MERGE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define LL_BINARY_MERGE 0
        ^
/datasets/git/ll-merge.c:161:9: warning: macro 'LL_TEXT_MERGE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define LL_TEXT_MERGE 1
        ^
/datasets/git/ll-merge.c:162:9: warning: macro 'LL_UNION_MERGE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define LL_UNION_MERGE 2
        ^
/datasets/git/ll-merge.c:163:31: warning: variable 'll_merge_drv' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct ll_merge_driver ll_merge_drv[] = {
                              ^
/datasets/git/ll-merge.c:171:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/ll-merge.c:171:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ll-merge.c:175:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_in_full(fd, src->ptr, src->size) < 0)
                                                       ^
                                                        {
/datasets/git/ll-merge.c:183:72: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
static enum ll_merge_result ll_ext_merge(const struct ll_merge_driver *fn,
                                                                       ^
/datasets/git/ll-merge.c:192:15: warning: 50 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        char temp[4][50];
                     ^
/datasets/git/ll-merge.c:194:39: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        struct strbuf_expand_dict_entry dict[6];
                                             ^
/datasets/git/ll-merge.c:197:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int status, fd, i;
        ^~~~~~~~~~~~~~~~~~
/datasets/git/ll-merge.c:197:6: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int status, fd, i;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ll-merge.c:197:14: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int status, fd, i;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ll-merge.c:197:14: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ll-merge.c:197:18: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int status, fd, i;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ll-merge.c:197:18: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ll-merge.c:198:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/ll-merge.c:199:23: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        enum ll_merge_result ret;
                             ^
/datasets/git/ll-merge.c:208:7: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        dict[5].placeholder = NULL; dict[5].value = NULL;
             ^
/datasets/git/ll-merge.c:208:35: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        dict[5].placeholder = NULL; dict[5].value = NULL;
                                         ^
/datasets/git/ll-merge.c:210:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!fn->cmdline)
                         ^
                          {
/datasets/git/ll-merge.c:225:29: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
        fd = open(temp[1], O_RDONLY);
                                   ^
                                    | O_CLOEXEC
/datasets/git/ll-merge.c:226:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fd < 0)
                   ^
                    {
/datasets/git/ll-merge.c:228:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fstat(fd, &st))
                           ^
                            {
/datasets/git/ll-merge.c:233:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FREE_AND_NULL(result->ptr);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/ll-merge.c:239:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < 3; i++)
        ^
/datasets/git/ll-merge.c:239:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < 3; i++)
                               ^
                                {
/datasets/git/ll-merge.c:250:32: warning: variable 'll_user_merge' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct ll_merge_driver *ll_user_merge, **ll_user_merge_tail;
                               ^
/datasets/git/ll-merge.c:250:32: warning: variable 'll_user_merge' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/ll-merge.c:250:49: warning: variable 'll_user_merge_tail' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct ll_merge_driver *ll_user_merge, **ll_user_merge_tail;
                                                ^
/datasets/git/ll-merge.c:250:49: warning: variable 'll_user_merge_tail' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/ll-merge.c:251:20: warning: variable 'default_ll_merge' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *default_ll_merge;
                   ^
/datasets/git/ll-merge.c:254:15: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
                             void *cb UNUSED)
                                   ^
/datasets/git/ll-merge.c:256:26: warning: variable 'fn' is not initialized [cppcoreguidelines-init-variables]
        struct ll_merge_driver *fn;
                                ^
                                   = NULL
/datasets/git/ll-merge.c:256:26: warning: variable name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ll-merge.c:257:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *key, *name;
        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ll-merge.c:257:14: warning: variable 'key' is not initialized [cppcoreguidelines-init-variables]
        const char *key, *name;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ll-merge.c:257:20: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
        const char *key, *name;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ll-merge.c:258:9: warning: variable 'namelen' is not initialized [cppcoreguidelines-init-variables]
        size_t namelen;
               ^
                       = 0
/datasets/git/ll-merge.c:260:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(var, "merge.default"))
                                          ^
                                           {
/datasets/git/ll-merge.c:268:73: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_config_key(var, "merge", &name, &namelen, &key) < 0 || !name)
                                                                               ^
                                                                                {
/datasets/git/ll-merge.c:275:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (fn = ll_user_merge; fn; fn = fn->next)
        ^
/datasets/git/ll-merge.c:275:27: warning: backward branch (for loop) is ID-dependent due to variable reference to 'fn' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (fn = ll_user_merge; fn; fn = fn->next)
                                 ^
/datasets/git/ll-merge.c:275:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (fn = ll_user_merge; fn; fn = fn->next)
                                                   ^
                                                    {
/datasets/git/ll-merge.c:276:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strncmp(fn->name, name, namelen) && !fn->name[namelen])
                                                                            ^
                                                                             {
/datasets/git/ll-merge.c:286:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp("name", key))
                                 ^
                                  {
/datasets/git/ll-merge.c:290:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
                            {
/datasets/git/ll-merge.c:314:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp("recursive", key))
                                      ^
                                       {
/datasets/git/ll-merge.c:322:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ll_user_merge_tail)
                               ^
                                {
/datasets/git/ll-merge.c:330:26: warning: variable 'fn' is not initialized [cppcoreguidelines-init-variables]
        struct ll_merge_driver *fn;
                                ^
                                   = NULL
/datasets/git/ll-merge.c:330:26: warning: variable name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ll-merge.c:331:14: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
        const char *name;
                    ^
                         = NULL
/datasets/git/ll-merge.c:332:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/ll-merge.c:332:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ll-merge.c:336:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ATTR_TRUE(merge_attr))
                                  ^
                                   {
/datasets/git/ll-merge.c:338:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (ATTR_FALSE(merge_attr))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ll-merge.c:338:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (ATTR_FALSE(merge_attr))
                                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ll-merge.c:341:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!default_ll_merge)
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ll-merge.c:343:3: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                else
                ^~~~
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ll-merge.c:343:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ll-merge.c:346:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ll-merge.c:349:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (fn = ll_user_merge; fn; fn = fn->next)
        ^
/datasets/git/ll-merge.c:349:27: warning: backward branch (for loop) is ID-dependent due to variable reference to 'fn' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (fn = ll_user_merge; fn; fn = fn->next)
                                 ^
/datasets/git/ll-merge.c:349:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (fn = ll_user_merge; fn; fn = fn->next)
                                                   ^
                                                    {
/datasets/git/ll-merge.c:350:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(fn->name, name))
                                            ^
                                             {
/datasets/git/ll-merge.c:353:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ARRAY_SIZE(ll_merge_drv); i++)
        ^
/datasets/git/ll-merge.c:353:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < ARRAY_SIZE(ll_merge_drv); i++)
                                                      ^
                                                       {
/datasets/git/ll-merge.c:354:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(ll_merge_drv[i].name, name))
                                                        ^
                                                         {
/datasets/git/ll-merge.c:361:38: warning: parameter name 'mm' is too short, expected at least 3 characters [readability-identifier-length]
static void normalize_file(mmfile_t *mm, const char *path, struct index_state *istate)
                                     ^
/datasets/git/ll-merge.c:366:14: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'long' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                mm->size = strbuf.len;
                           ^
/datasets/git/ll-merge.c:383:32: warning: variable 'driver' is not initialized [cppcoreguidelines-init-variables]
        const struct ll_merge_driver *driver;
                                      ^
                                             = NULL
/datasets/git/ll-merge.c:385:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opts)
                  ^
                   {
/datasets/git/ll-merge.c:397:17: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c]
                marker_size = atoi(check->items[1].value);
                              ^
/datasets/git/ll-merge.c:398:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (marker_size <= 0)
                                     ^
                                      {
/datasets/git/ll-merge.c:404:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (driver->recursive)
                                      ^
                                       {
/datasets/git/ll-merge.c:408:18: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                marker_size += opts->extra_marker_size;
                               ^
/datasets/git/ll-merge.c:417:28: warning: variable 'check' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
        static struct attr_check *check;
                                  ^
/datasets/git/ll-merge.c:420:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!check)
                   ^
                    {
/datasets/git/ll-merge.c:424:17: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c]
                marker_size = atoi(check->items[0].value);
                              ^
/datasets/git/ll-merge.c:425:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (marker_size <= 0)
                                     ^
                                      {
lockfile.c:17:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = path->len;
            ^
lockfile.c:17:10: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int i = path->len;
                ^
lockfile.c:20:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (i && path->buf[i - 1] == '/')
        ^
lockfile.c:20:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (i && path->buf[i - 1] == '/')
               ^
/datasets/git/lockfile.c:20:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (i && path->buf[i - 1] == '/')
                                            ^
                                             {
/datasets/git/lockfile.c:27:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (i && path->buf[i - 1] != '/')
        ^
/datasets/git/lockfile.c:27:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (i && path->buf[i - 1] != '/')
               ^
/datasets/git/lockfile.c:27:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (i && path->buf[i - 1] != '/')
                                            ^
                                             {
/datasets/git/lockfile.c:35:1: warning: replace macro with enum [modernize-macro-to-enum]
#define MAXDEPTH 5
^~~~~~~~
                 =
/datasets/git/lockfile.c:35:9: warning: macro 'MAXDEPTH' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define MAXDEPTH 5
        ^
/datasets/git/lockfile.c:53:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (depth--) {
        ^
/datasets/git/lockfile.c:54:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strbuf_readlink(&link, path->buf, path->len) < 0)
                                                                     ^
                                                                      {
/datasets/git/lockfile.c:57:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_absolute_path(link.buf))
                                               ^
                                                {
/datasets/git/lockfile.c:60:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/lockfile.c:73:40: warning: parameter name 'lk' is too short, expected at least 3 characters [readability-identifier-length]
static int lock_file(struct lock_file *lk, const char *path, int flags,
                                       ^
/datasets/git/lockfile.c:73:62: warning: 2 adjacent parameters of 'lock_file' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int lock_file(struct lock_file *lk, const char *path, int flags,
                                                             ^~~~~~~~~~
/datasets/git/lockfile.c:73:66: note: the first parameter in the range is 'flags'
static int lock_file(struct lock_file *lk, const char *path, int flags,
                                                                 ^~~~~
/datasets/git/lockfile.c:74:12: note: the last parameter in the range is 'mode'
                     int mode)
                         ^~~~
/datasets/git/lockfile.c:79:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & LOCK_NO_DEREF))
              ^~~~~
/datasets/git/lockfile.c:79:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(flags & LOCK_NO_DEREF))
                                     ^
                                      {
/datasets/git/lockfile.c:95:1: warning: replace macro with enum [modernize-macro-to-enum]
#define BACKOFF_MAX_MULTIPLIER 1000
^~~~~~~~
                               =
/datasets/git/lockfile.c:95:9: warning: macro 'BACKOFF_MAX_MULTIPLIER' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define BACKOFF_MAX_MULTIPLIER 1000
        ^
/datasets/git/lockfile.c:102:48: warning: parameter name 'lk' is too short, expected at least 3 characters [readability-identifier-length]
static int lock_file_timeout(struct lock_file *lk, const char *path,
                                               ^
/datasets/git/lockfile.c:103:9: warning: 2 adjacent parameters of 'lock_file_timeout' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                             int flags, long timeout_ms, int mode)
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/lockfile.c:103:13: note: the first parameter in the range is 'flags'
                             int flags, long timeout_ms, int mode)
                                 ^~~~~
/datasets/git/lockfile.c:103:25: note: the last parameter in the range is 'timeout_ms'
                             int flags, long timeout_ms, int mode)
                                             ^~~~~~~~~~
/datasets/git/lockfile.c:103:20: note: 'int' and 'long' may be implicitly converted
                             int flags, long timeout_ms, int mode)
                                        ^
/datasets/git/lockfile.c:105:6: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
        int n = 1;
            ^
/datasets/git/lockfile.c:110:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (timeout_ms == 0)
                            ^
                             {
/datasets/git/lockfile.c:118:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (timeout_ms > 0)
                           ^
                            {
/datasets/git/lockfile.c:121:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/lockfile.c:122:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                long backoff_ms, wait_ms;
                ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/lockfile.c:122:8: warning: variable 'backoff_ms' is not initialized [cppcoreguidelines-init-variables]
                long backoff_ms, wait_ms;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/lockfile.c:122:20: warning: variable 'wait_ms' is not initialized [cppcoreguidelines-init-variables]
                long backoff_ms, wait_ms;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/lockfile.c:123:7: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
                int fd;
                    ^
                       = 0
/datasets/git/lockfile.c:123:7: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/lockfile.c:127:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fd >= 0)
                            ^
                             {
/datasets/git/lockfile.c:129:3: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                else if (errno != EEXIST)
                ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/lockfile.c:129:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (errno != EEXIST)
                                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/lockfile.c:130:4: warning: repeated branch in conditional chain [bugprone-branch-clone]
                        return -1; /* failure other than lock held */
                        ^
/datasets/git/lockfile.c:130:13: note: end of the original
                        return -1; /* failure other than lock held */
                                 ^
/datasets/git/lockfile.c:132:4: note: clone 1 starts here
                        return -1; /* failure due to timeout */
                        ^
/datasets/git/lockfile.c:131:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (timeout_ms > 0 && remaining_ms <= 0)
                                                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/lockfile.c:136:14: warning: 750 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                wait_ms = (750 + rand() % 500) * backoff_ms / 1000;
                           ^
/datasets/git/lockfile.c:136:20: warning: rand() has limited randomness [cert-msc30-c,cert-msc50-cpp]
                wait_ms = (750 + rand() % 500) * backoff_ms / 1000;
                                 ^
/datasets/git/lockfile.c:136:20: warning: function is not thread safe [concurrency-mt-unsafe]
/datasets/git/lockfile.c:136:29: warning: 500 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                wait_ms = (750 + rand() % 500) * backoff_ms / 1000;
                                          ^
/datasets/git/lockfile.c:136:49: warning: 1000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                wait_ms = (750 + rand() % 500) * backoff_ms / 1000;
                                                              ^
/datasets/git/lockfile.c:137:18: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                sleep_millisec(wait_ms);
                               ^
/datasets/git/lockfile.c:142:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (multiplier > BACKOFF_MAX_MULTIPLIER)
                                                        ^
                                                         {
/datasets/git/lockfile.c:144:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/lockfile.c:158:29: warning: function is not thread safe [concurrency-mt-unsafe]
                            absolute_path(path), strerror(err));
                                                 ^
/datasets/git/lockfile.c:159:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/lockfile.c:161:29: warning: function is not thread safe [concurrency-mt-unsafe]
                            absolute_path(path), strerror(err));
                                                 ^
/datasets/git/lockfile.c:173:62: warning: parameter name 'lk' is too short, expected at least 3 characters [readability-identifier-length]
int hold_lock_file_for_update_timeout_mode(struct lock_file *lk,
                                                             ^
/datasets/git/lockfile.c:177:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
        int fd = lock_file_timeout(lk, path, flags, timeout_ms, mode);
            ^
/datasets/git/lockfile.c:179:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flags & LOCK_DIE_ON_ERROR)
                    ^~~~~
/datasets/git/lockfile.c:179:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (flags & LOCK_DIE_ON_ERROR)
                                              ^
                                               {
/datasets/git/lockfile.c:181:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flags & LOCK_REPORT_ON_ERROR) {
                    ^~~~~
/datasets/git/lockfile.c:191:46: warning: parameter name 'lk' is too short, expected at least 3 characters [readability-identifier-length]
char *get_locked_file_path(struct lock_file *lk)
                                             ^
/datasets/git/lockfile.c:197:6: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
            strcmp(ret.buf + ret.len - LOCK_SUFFIX_LEN, LOCK_SUFFIX))
            ^
                                                                     != 0
/datasets/git/lockfile.c:197:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            strcmp(ret.buf + ret.len - LOCK_SUFFIX_LEN, LOCK_SUFFIX))
                                                                     ^
                                                                      {
/datasets/git/lockfile.c:204:40: warning: parameter name 'lk' is too short, expected at least 3 characters [readability-identifier-length]
int commit_lock_file(struct lock_file *lk)
                                       ^
/datasets/git/log-tree.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "commit-reach.h"
^        ~~~~~~~~~~~~~~~~
         "color.h"
/datasets/git/log-tree.c:24:26: warning: variable 'name_decoration' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct decoration name_decoration = { "object names" };
                         ^
/datasets/git/log-tree.c:25:12: warning: variable 'decoration_loaded' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int decoration_loaded;
           ^
/datasets/git/log-tree.c:26:12: warning: variable 'decoration_flags' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int decoration_flags;
           ^
/datasets/git/log-tree.c:28:13: warning: variable 'decoration_colors' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char decoration_colors[][COLOR_MAXLEN] = {
            ^
/datasets/git/log-tree.c:38:20: warning: variable 'color_decorate_slots' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *color_decorate_slots[] = {
                   ^
/datasets/git/log-tree.c:47:39: warning: 2 adjacent parameters of 'decorate_get_color' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static const char *decorate_get_color(int decorate_use_color, enum decoration_type ix)
                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/log-tree.c:47:43: note: the first parameter in the range is 'decorate_use_color'
static const char *decorate_get_color(int decorate_use_color, enum decoration_type ix)
                                          ^~~~~~~~~~~~~~~~~~
/datasets/git/log-tree.c:47:84: note: the last parameter in the range is 'ix'
static const char *decorate_get_color(int decorate_use_color, enum decoration_type ix)
                                                                                   ^~
/datasets/git/log-tree.c:47:63: note: 'int' and 'enum decoration_type' may be implicitly converted
static const char *decorate_get_color(int decorate_use_color, enum decoration_type ix)
                                                              ^
/datasets/git/log-tree.c:47:84: warning: parameter name 'ix' is too short, expected at least 3 characters [readability-identifier-length]
static const char *decorate_get_color(int decorate_use_color, enum decoration_type ix)
                                                                                   ^
/datasets/git/log-tree.c:49:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (want_color(decorate_use_color))
                                           ^
                                            {
/datasets/git/log-tree.c:54:1: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
define_list_config_array(color_decorate_slots);
^
/datasets/git/./help.h:62:2: note: expanded from macro 'define_list_config_array'
        for (i = 0; i < ARRAY_SIZE(array); i++)                         \
        ^
/datasets/git/log-tree.c:54:1: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
define_list_config_array(color_decorate_slots);
^
/datasets/git/./help.h:61:6: note: expanded from macro 'define_list_config_array'
        int i;                                                          \
            ^
/datasets/git/log-tree.c:56:33: warning: 3 adjacent parameters of 'parse_decorate_color_config' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
int parse_decorate_color_config(const char *var, const char *slot_name, const char *value)
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/log-tree.c:56:45: note: the first parameter in the range is 'var'
int parse_decorate_color_config(const char *var, const char *slot_name, const char *value)
                                            ^~~
/datasets/git/log-tree.c:56:85: note: the last parameter in the range is 'value'
int parse_decorate_color_config(const char *var, const char *slot_name, const char *value)
                                                                                    ^~~~~
/datasets/git/log-tree.c:59:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (slot < 0)
                     ^
                      {
/datasets/git/log-tree.c:61:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!value)
                   ^
                    {
/datasets/git/log-tree.c:75:26: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        struct name_decoration *res;
                                ^
                                    = NULL
/datasets/git/log-tree.c:76:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FLEX_ALLOC_STR(res, name, name);
        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^
/datasets/git/./git-compat-util.h:1151:47: note: expanded from macro 'FLEX_ALLOC_MEM'
#define FLEX_ALLOC_MEM(x, flexname, buf, len) do { \
                                              ^
/datasets/git/log-tree.c:76:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        FLEX_ALLOC_STR(res, name, name);
        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/log-tree.c:76:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        FLEX_ALLOC_STR(res, name, name);
        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/log-tree.c:92:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!wildmatch(item->string, refname, 0))
                                                         ^
                                                          {
/datasets/git/log-tree.c:95:15: warning: variable 'rest' is not initialized [cppcoreguidelines-init-variables]
                const char *rest;
                            ^
                                 = NULL
/datasets/git/log-tree.c:97:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    (!*rest || *rest == '/'))
                                             ^
                                              {
/datasets/git/log-tree.c:106:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/log-tree.c:106:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct string_list_item *item;
        ^
/datasets/git/log-tree.c:113:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for_each_string_list_item(item, exclude_patterns) {
                ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/log-tree.c:113:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
                for_each_string_list_item(item, exclude_patterns) {
                                          ^
/datasets/git/log-tree.c:114:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (match_ref_pattern(refname, item))
                                                             ^
                                                              {
/datasets/git/log-tree.c:120:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for_each_string_list_item(item, include_patterns) {
                ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/log-tree.c:120:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
                for_each_string_list_item(item, include_patterns) {
                                          ^
/datasets/git/log-tree.c:121:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (match_ref_pattern(refname, item))
                                                             ^
                                                              {
/datasets/git/log-tree.c:128:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for_each_string_list_item(item, exclude_patterns_config) {
                ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/log-tree.c:128:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
                for_each_string_list_item(item, exclude_patterns_config) {
                                          ^
/datasets/git/log-tree.c:129:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (match_ref_pattern(refname, item))
                                                             ^
                                                              {
/datasets/git/log-tree.c:141:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/log-tree.c:141:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/log-tree.c:142:17: warning: variable 'obj' is not initialized [cppcoreguidelines-init-variables]
        struct object *obj;
                       ^
                           = NULL
/datasets/git/log-tree.c:143:19: warning: variable 'objtype' is not initialized [cppcoreguidelines-init-variables]
        enum object_type objtype;
                         ^
/datasets/git/log-tree.c:148:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (filter && !ref_filter_match(refname, filter))
                                                         ^
                                                          {
/datasets/git/log-tree.c:153:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!read_replace_refs)
                                       ^
                                        {
/datasets/git/log-tree.c:161:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (obj)
                        ^
                         {
/datasets/git/log-tree.c:167:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (objtype < 0)
                        ^
                         {
/datasets/git/log-tree.c:171:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ARRAY_SIZE(ref_namespace); i++) {
        ^
/datasets/git/log-tree.c:142:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct object *obj;
        ^
/datasets/git/log-tree.c:174:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!info->decoration)
                                      ^
                                       {
/datasets/git/log-tree.c:188:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (obj->type == OBJ_TAG) {
        ^
/datasets/git/log-tree.c:188:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'obj' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (obj->type == OBJ_TAG) {
               ^
/datasets/git/log-tree.c:189:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!obj->parsed)
                                 ^
                                  {
/datasets/git/log-tree.c:192:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!obj)
                         ^
                          {
/datasets/git/log-tree.c:199:73: warning: parameter 'cb_data' is unused [misc-unused-parameters]
static int add_graft_decoration(const struct commit_graft *graft, void *cb_data)
                                                                        ^
/datasets/git/log-tree.c:202:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!commit)
                    ^
                     {
/datasets/git/log-tree.c:212:29: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
                        struct string_list_item *item;
                                                 ^
                                                      = NULL
/datasets/git/log-tree.c:233:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct commit_list *p;
        ^
/datasets/git/log-tree.c:213:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for_each_string_list_item(item, filter->exclude_ref_pattern) {
                        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/log-tree.c:212:4: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                        struct string_list_item *item;
                        ^
/datasets/git/log-tree.c:213:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for_each_string_list_item(item, filter->exclude_ref_pattern) {
                                                  ^
/datasets/git/log-tree.c:216:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for_each_string_list_item(item, filter->include_ref_pattern) {
                        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/log-tree.c:212:4: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                        struct string_list_item *item;
                        ^
/datasets/git/log-tree.c:216:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for_each_string_list_item(item, filter->include_ref_pattern) {
                                                  ^
/datasets/git/log-tree.c:219:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for_each_string_list_item(item, filter->exclude_ref_config_pattern) {
                        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/log-tree.c:219:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for_each_string_list_item(item, filter->exclude_ref_config_pattern) {
                                                  ^
/datasets/git/log-tree.c:233:22: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *p;
                            ^
                              = NULL
/datasets/git/log-tree.c:233:22: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/log-tree.c:234:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = commit->parents; p ; p = p->next) {
        ^
/datasets/git/log-tree.c:234:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = commit->parents; p ; p = p->next) {
                                  ^
/datasets/git/log-tree.c:236:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(file, " %s", find_unique_abbrev(&parent->object.oid, abbrev));
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/log-tree.c:236:3: note: cast the expression to void to silence this warning
/datasets/git/log-tree.c:242:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct commit_list *p = lookup_decoration(&opt->children, &commit->object);
        ^
/datasets/git/log-tree.c:242:22: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        struct commit_list *p = lookup_decoration(&opt->children, &commit->object);
                            ^
/datasets/git/log-tree.c:243:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for ( ; p; p = p->next) {
        ^
/datasets/git/log-tree.c:243:10: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for ( ; p; p = p->next) {
                ^
/datasets/git/log-tree.c:244:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(opt->diffopt.file, " %s", find_unique_abbrev(&p->item->object.oid, abbrev));
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/log-tree.c:244:3: note: cast the expression to void to silence this warning
/datasets/git/log-tree.c:254:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const struct name_decoration *list, *head = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/log-tree.c:254:32: warning: variable 'list' is not initialized [cppcoreguidelines-init-variables]
        const struct name_decoration *list, *head = NULL;
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/log-tree.c:256:6: warning: variable 'rru_flags' is not initialized [cppcoreguidelines-init-variables]
        int rru_flags;
            ^
                      = 0
/datasets/git/log-tree.c:259:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (list = decoration; list; list = list->next)
        ^
/datasets/git/log-tree.c:259:26: warning: backward branch (for loop) is ID-dependent due to variable reference to 'list' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (list = decoration; list; list = list->next)
                                ^
/datasets/git/log-tree.c:259:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (list = decoration; list; list = list->next)
                                                        ^
                                                         {
/datasets/git/log-tree.c:264:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!head)
                  ^
                   {
/datasets/git/log-tree.c:269:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!branch_name || !(rru_flags & REF_ISSYMREF))
                              ^~~~~~~~~
/datasets/git/log-tree.c:269:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!branch_name || !(rru_flags & REF_ISSYMREF))
                                                        ^
                                                         {
/datasets/git/log-tree.c:272:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!starts_with(branch_name, "refs/"))
                                               ^
                                                {
/datasets/git/log-tree.c:276:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (list = decoration; list; list = list->next)
        ^
/datasets/git/log-tree.c:276:26: warning: backward branch (for loop) is ID-dependent due to variable reference to 'list' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (list = decoration; list; list = list->next)
                                ^
/datasets/git/log-tree.c:276:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (list = decoration; list; list = list->next)
                                                        ^
                                                         {
/datasets/git/log-tree.c:285:38: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static void show_name(struct strbuf *sb, const struct name_decoration *decoration)
                                     ^
/datasets/git/log-tree.c:287:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (decoration_flags == DECORATE_SHORT_REFS)
                                                    ^
                                                     {
/datasets/git/log-tree.c:289:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/log-tree.c:297:49: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void format_decorations_extended(struct strbuf *sb,
                                                ^
/datasets/git/log-tree.c:301:4: warning: 2 adjacent parameters of 'format_decorations_extended' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                        const char *separator,
                        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/log-tree.c:301:16: note: the first parameter in the range is 'separator'
                        const char *separator,
                                    ^~~~~~~~~
/datasets/git/log-tree.c:302:16: note: the last parameter in the range is 'suffix'
                        const char *suffix)
                                    ^~~~~~
/datasets/git/log-tree.c:304:32: warning: variable 'decoration' is not initialized [cppcoreguidelines-init-variables]
        const struct name_decoration *decoration;
                                      ^
                                                 = NULL
/datasets/git/log-tree.c:305:32: warning: variable 'current_and_HEAD' is not initialized [cppcoreguidelines-init-variables]
        const struct name_decoration *current_and_HEAD;
                                      ^
                                                       = NULL
/datasets/git/log-tree.c:312:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!decoration)
                        ^
                         {
/datasets/git/log-tree.c:316:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (decoration) {
        ^
/datasets/git/log-tree.c:316:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'decoration' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (decoration) {
               ^
/datasets/git/log-tree.c:327:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (decoration->type == DECORATION_REF_TAG)
                                                                   ^
                                                                    {
/datasets/git/log-tree.c:352:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/log-tree.c:357:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (slot && *slot)
                                  ^
                                   {
/datasets/git/log-tree.c:358:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(opt->diffopt.file, "\t%s", *slot);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/log-tree.c:358:4: note: cast the expression to void to silence this warning
/datasets/git/log-tree.c:360:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opt->show_decorations)
                                   ^
                                    {
/datasets/git/log-tree.c:363:2: warning: the value returned by this function should be used [cert-err33-c]
        fputs(sb.buf, opt->diffopt.file);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/log-tree.c:363:2: note: cast the expression to void to silence this warning
/datasets/git/log-tree.c:369:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned int i = 10, result = 1;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/log-tree.c:369:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned int i = 10, result = 1;
                     ^
/datasets/git/log-tree.c:369:19: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        unsigned int i = 10, result = 1;
                         ^
/datasets/git/log-tree.c:370:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (i <= number) {
        ^
/datasets/git/log-tree.c:371:8: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                i *= 10;
                     ^
/datasets/git/log-tree.c:382:6: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
        int nr = info->nr;
            ^
/datasets/git/log-tree.c:383:18: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int start_len = filename->len;
                        ^
/datasets/git/log-tree.c:384:16: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int max_len = start_len + info->patch_name_max - (strlen(suffix) + 1);
                      ^
/datasets/git/log-tree.c:396:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (max_len < filename->len)
                                    ^
                                     {
/datasets/git/log-tree.c:413:46: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void fmt_output_email_subject(struct strbuf *sb, struct rev_info *opt)
                                             ^
/datasets/git/log-tree.c:440:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(opt->diffopt.file, "From %s Mon Sep 17 00:00:00 2001\n", name);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/log-tree.c:440:2: note: cast the expression to void to silence this warning
/datasets/git/log-tree.c:443:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(opt->diffopt.file, "Message-Id: <%s>\n", opt->message_id);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/log-tree.c:443:3: note: cast the expression to void to silence this warning
/datasets/git/log-tree.c:447:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int i, n;
                ^~~~~~~~~
/datasets/git/log-tree.c:447:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i, n;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/log-tree.c:447:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/log-tree.c:447:10: warning: variable 'n' is not initialized [cppcoreguidelines-init-variables]
                int i, n;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/log-tree.c:447:10: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/log-tree.c:448:7: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                n = opt->ref_message_ids->nr;
                    ^
/datasets/git/log-tree.c:449:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(opt->diffopt.file, "In-Reply-To: <%s>\n", opt->ref_message_ids->items[n-1].string);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/log-tree.c:449:3: note: cast the expression to void to silence this warning
/datasets/git/log-tree.c:450:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < n; i++)
                ^
/datasets/git/log-tree.c:450:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'n' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < n; i++)
                            ^
/datasets/git/log-tree.c:450:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < n; i++)
                                       ^
                                        {
/datasets/git/log-tree.c:451:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(opt->diffopt.file, "%s<%s>\n", (i > 0 ? "\t" : "References: "),
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/log-tree.c:451:4: note: cast the expression to void to silence this warning
/datasets/git/log-tree.c:481:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opt->numbered_files)
                                        ^
                                         {
/datasets/git/log-tree.c:483:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/log-tree.c:504:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *color, *reset, *eol;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/log-tree.c:502:62: note: inferred assignment of ID-dependent value from ID-dependent variable eol [altera-id-dependent-backward-branch]
static void show_sig_lines(struct rev_info *opt, int status, const char *bol)
                                                             ^
/datasets/git/log-tree.c:504:14: warning: variable 'color' is not initialized [cppcoreguidelines-init-variables]
        const char *color, *reset, *eol;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/log-tree.c:504:22: warning: variable 'reset' is not initialized [cppcoreguidelines-init-variables]
        const char *color, *reset, *eol;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/log-tree.c:504:30: warning: variable 'eol' is not initialized [cppcoreguidelines-init-variables]
        const char *color, *reset, *eol;
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/log-tree.c:509:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*bol) {
        ^
/datasets/git/log-tree.c:509:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'bol' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (*bol) {
               ^
/datasets/git/log-tree.c:511:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(opt->diffopt.file, "%s%.*s%s%s", color, (int)(eol - bol), bol, reset,
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/log-tree.c:511:3: note: cast the expression to void to silence this warning
/datasets/git/log-tree.c:523:6: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int status;
            ^
                   = 0
/datasets/git/log-tree.c:545:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        const struct commit_list *parent;
        ^
/datasets/git/log-tree.c:525:76: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_signed_commit(commit, &payload, &signature, the_hash_algo) <= 0)
                                                                                  ^
                                                                                   {
/datasets/git/log-tree.c:531:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (status && !sigc.output)
                                   ^
                                    {
/datasets/git/log-tree.c:533:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/log-tree.c:544:6: warning: variable 'nth' is not initialized [cppcoreguidelines-init-variables]
        int nth;
            ^
                = 0
/datasets/git/log-tree.c:545:28: warning: variable 'parent' is not initialized [cppcoreguidelines-init-variables]
        const struct commit_list *parent;
                                  ^
                                         = NULL
/datasets/git/log-tree.c:547:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (nth = 0, parent = commit->parents; parent; parent = parent->next) {
        ^
/datasets/git/log-tree.c:547:42: warning: backward branch (for loop) is ID-dependent due to variable reference to 'parent' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (nth = 0, parent = commit->parents; parent; parent = parent->next) {
                                                ^
/datasets/git/log-tree.c:548:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (oideq(&parent->item->object.oid, oid))
                                                          ^
                                                           {
/datasets/git/log-tree.c:568:14: warning: variable 'tag' is not initialized [cppcoreguidelines-init-variables]
        struct tag *tag;
                    ^
                        = NULL
/datasets/git/log-tree.c:571:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int status, nth;
        ^~~~~~~~~~~~~~~~
/datasets/git/log-tree.c:571:6: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int status, nth;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/log-tree.c:571:14: warning: variable 'nth' is not initialized [cppcoreguidelines-init-variables]
        int status, nth;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/log-tree.c:578:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!tag)
                 ^
                  {
/datasets/git/log-tree.c:581:31: warning: 256 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        strbuf_init(&verify_message, 256);
                                     ^
/datasets/git/log-tree.c:582:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_tag_buffer(the_repository, tag, extra->value, extra->len))
                                                                            ^
                                                                             {
/datasets/git/log-tree.c:586:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                       &commit->parents->next->item->object.oid))
                                                                 ^
                                                                  {
/datasets/git/log-tree.c:589:12: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        else if ((nth = which_parent(&tag->tagged->oid, commit)) < 0)
                  ^
/datasets/git/log-tree.c:589:12: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/log-tree.c:589:12: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/log-tree.c:589:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if ((nth = which_parent(&tag->tagged->oid, commit)) < 0)
                                                                     ^
                                                                      {
/datasets/git/log-tree.c:592:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/log-tree.c:602:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (sigc.output)
                                ^
                                 {
/datasets/git/log-tree.c:604:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/log-tree.c:622:72: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static void next_commentary_block(struct rev_info *opt, struct strbuf *sb)
                                                                       ^
/datasets/git/log-tree.c:624:14: warning: variable name 'x' is too short, expected at least 3 characters [readability-identifier-length]
        const char *x = opt->shown_dashes ? "\n" : "---\n";
                    ^
/datasets/git/log-tree.c:625:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (sb)
               ^
                {
/datasets/git/log-tree.c:627:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/log-tree.c:628:3: warning: the value returned by this function should be used [cert-err33-c]
                fputs(x, opt->diffopt.file);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/log-tree.c:628:3: note: cast the expression to void to silence this warning
/datasets/git/log-tree.c:632:6: warning: function 'show_log' has cognitive complexity of 64 (threshold 25) [readability-function-cognitive-complexity]
void show_log(struct rev_info *opt)
     ^
/datasets/git/log-tree.c:637:41: note: +1, including nesting penalty of 0, nesting level increased to 1
        int abbrev_commit = opt->abbrev_commit ? opt->abbrev : the_hash_algo->hexsz;
                                               ^
/datasets/git/log-tree.c:642:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!opt->verbose_header) {
        ^
/datasets/git/log-tree.c:645:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!opt->graph)
                ^
/datasets/git/log-tree.c:648:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opt->print_parents)
                ^
/datasets/git/log-tree.c:650:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opt->children.name)
                ^
/datasets/git/log-tree.c:653:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opt->graph && !graph_is_commit_finished(opt->graph)) {
                ^
/datasets/git/log-tree.c:653:18: note: +1
                if (opt->graph && !graph_is_commit_finished(opt->graph)) {
                               ^
/datasets/git/log-tree.c:667:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt->shown_one && !opt->use_terminator) {
        ^
/datasets/git/log-tree.c:667:21: note: +1
        if (opt->shown_one && !opt->use_terminator) {
                           ^
/datasets/git/log-tree.c:680:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opt->diffopt.line_termination == '\n' &&
                ^
/datasets/git/log-tree.c:680:45: note: +1
                if (opt->diffopt.line_termination == '\n' &&
                                                          ^
/datasets/git/log-tree.c:697:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (cmit_fmt_is_mail(opt->commit_format)) {
        ^
/datasets/git/log-tree.c:702:9: note: +1, nesting level increased to 1
        } else if (opt->commit_format != CMIT_FMT_USERFORMAT) {
               ^
/datasets/git/log-tree.c:704:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opt->commit_format != CMIT_FMT_ONELINE)
                ^
/datasets/git/log-tree.c:707:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!opt->graph)
                ^
/datasets/git/log-tree.c:712:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opt->print_parents)
                ^
/datasets/git/log-tree.c:714:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opt->children.name)
                ^
/datasets/git/log-tree.c:716:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (parent)
                ^
/datasets/git/log-tree.c:721:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opt->commit_format == CMIT_FMT_ONELINE) {
                ^
/datasets/git/log-tree.c:723:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/log-tree.c:727:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opt->reflog_info) {
                ^
/datasets/git/log-tree.c:738:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (opt->commit_format == CMIT_FMT_ONELINE)
                        ^
/datasets/git/log-tree.c:743:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt->show_signature) {
        ^
/datasets/git/log-tree.c:748:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt->show_notes) {
        ^
/datasets/git/log-tree.c:761:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ctx.need_8bit_cte >= 0 && opt->add_signoff)
        ^
/datasets/git/log-tree.c:761:29: note: +1
        if (ctx.need_8bit_cte >= 0 && opt->add_signoff)
                                   ^
/datasets/git/log-tree.c:777:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt->from_ident.mail_begin && opt->from_ident.name_begin)
        ^
/datasets/git/log-tree.c:777:33: note: +1
        if (opt->from_ident.mail_begin && opt->from_ident.name_begin)
                                       ^
/datasets/git/log-tree.c:779:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt->graph)
        ^
/datasets/git/log-tree.c:783:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt->add_signoff)
        ^
/datasets/git/log-tree.c:786:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((ctx.fmt != CMIT_FMT_USERFORMAT) &&
        ^
/datasets/git/log-tree.c:787:24: note: +1
            ctx.notes_message && *ctx.notes_message) {
                              ^
/datasets/git/log-tree.c:788:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (cmit_fmt_is_mail(ctx.fmt))
                ^
/datasets/git/log-tree.c:793:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt->show_log_size) {
        ^
/datasets/git/log-tree.c:802:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!msgbuf.len || msgbuf.buf[msgbuf.len - 1] != '\n')
        ^
/datasets/git/log-tree.c:802:18: note: +1
        if (!msgbuf.len || msgbuf.buf[msgbuf.len - 1] != '\n')
                        ^
/datasets/git/log-tree.c:804:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/log-tree.c:808:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt->use_terminator && !commit_format_is_empty(opt->commit_format)) {
        ^
/datasets/git/log-tree.c:808:26: note: +1
        if (opt->use_terminator && !commit_format_is_empty(opt->commit_format)) {
                                ^
/datasets/git/log-tree.c:809:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!opt->missing_newline)
                ^
/datasets/git/log-tree.c:817:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (cmit_fmt_is_mail(ctx.fmt) && opt->idiff_oid1) {
        ^
/datasets/git/log-tree.c:817:32: note: +1
        if (cmit_fmt_is_mail(ctx.fmt) && opt->idiff_oid1) {
                                      ^
/datasets/git/log-tree.c:821:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                DIFF_QUEUE_CLEAR(&diff_queued_diff);
                ^
/datasets/git/./diffcore.h:155:2: note: expanded from macro 'DIFF_QUEUE_CLEAR'
        do { \
        ^
/datasets/git/log-tree.c:831:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (cmit_fmt_is_mail(ctx.fmt) && opt->rdiff1) {
        ^
/datasets/git/log-tree.c:831:32: note: +1
        if (cmit_fmt_is_mail(ctx.fmt) && opt->rdiff1) {
                                      ^
/datasets/git/log-tree.c:841:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                DIFF_QUEUE_CLEAR(&diff_queued_diff);
                ^
/datasets/git/./diffcore.h:155:2: note: expanded from macro 'DIFF_QUEUE_CLEAR'
        do { \
        ^
/datasets/git/log-tree.c:636:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit *commit = log->commit, *parent = log->parent;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/log-tree.c:637:43: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int abbrev_commit = opt->abbrev_commit ? opt->abbrev : the_hash_algo->hexsz;
                                                 ^
/datasets/git/log-tree.c:637:57: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int abbrev_commit = opt->abbrev_commit ? opt->abbrev : the_hash_algo->hexsz;
                                                               ^
/datasets/git/./hash.h:200:23: note: expanded from macro 'the_hash_algo'
#define the_hash_algo the_repository->hash_algo
                      ^
/datasets/git/log-tree.c:645:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!opt->graph)
                                ^
                                 {
/datasets/git/log-tree.c:647:3: warning: the value returned by this function should be used [cert-err33-c]
                fputs(find_unique_abbrev(&commit->object.oid, abbrev_commit), opt->diffopt.file);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/log-tree.c:647:3: note: cast the expression to void to silence this warning
/datasets/git/log-tree.c:648:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opt->print_parents)
                                       ^
                                        {
/datasets/git/log-tree.c:650:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opt->children.name)
                                       ^
                                        {
/datasets/git/log-tree.c:654:4: warning: the value returned by this function should be used [cert-err33-c]
                        putc('\n', opt->diffopt.file);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/log-tree.c:654:4: note: cast the expression to void to silence this warning
/datasets/git/log-tree.c:657:3: warning: the value returned by this function should be used [cert-err33-c]
                putc(opt->diffopt.line_termination, opt->diffopt.file);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/log-tree.c:657:3: note: cast the expression to void to silence this warning
/datasets/git/log-tree.c:681:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !opt->missing_newline)
                                          ^
                                           {
/datasets/git/log-tree.c:683:3: warning: the value returned by this function should be used [cert-err33-c]
                putc(opt->diffopt.line_termination, opt->diffopt.file);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/log-tree.c:683:3: note: cast the expression to void to silence this warning
/datasets/git/log-tree.c:703:3: warning: the value returned by this function should be used [cert-err33-c]
                fputs(diff_get_color_opt(&opt->diffopt, DIFF_COMMIT), opt->diffopt.file);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/log-tree.c:703:3: note: cast the expression to void to silence this warning
/datasets/git/log-tree.c:704:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opt->commit_format != CMIT_FMT_ONELINE)
                                                           ^
                                                            {
/datasets/git/log-tree.c:705:4: warning: the value returned by this function should be used [cert-err33-c]
                        fputs("commit ", opt->diffopt.file);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/log-tree.c:705:4: note: cast the expression to void to silence this warning
/datasets/git/log-tree.c:707:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!opt->graph)
                                ^
                                 {
/datasets/git/log-tree.c:709:3: warning: the value returned by this function should be used [cert-err33-c]
                fputs(find_unique_abbrev(&commit->object.oid,
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/log-tree.c:709:3: note: cast the expression to void to silence this warning
/datasets/git/log-tree.c:712:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opt->print_parents)
                                       ^
                                        {
/datasets/git/log-tree.c:714:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opt->children.name)
                                       ^
                                        {
/datasets/git/log-tree.c:716:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (parent)
                           ^
                            {
/datasets/git/log-tree.c:717:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(opt->diffopt.file, " (from %s)",
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/log-tree.c:717:4: note: cast the expression to void to silence this warning
/datasets/git/log-tree.c:719:3: warning: the value returned by this function should be used [cert-err33-c]
                fputs(diff_get_color_opt(&opt->diffopt, DIFF_RESET), opt->diffopt.file);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/log-tree.c:719:3: note: cast the expression to void to silence this warning
/datasets/git/log-tree.c:722:4: warning: the value returned by this function should be used [cert-err33-c]
                        putc(' ', opt->diffopt.file);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/log-tree.c:722:4: note: cast the expression to void to silence this warning
/datasets/git/log-tree.c:724:4: warning: the value returned by this function should be used [cert-err33-c]
                        putc('\n', opt->diffopt.file);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/log-tree.c:724:4: note: cast the expression to void to silence this warning
/datasets/git/log-tree.c:738:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (opt->commit_format == CMIT_FMT_ONELINE)
                                                                   ^
                                                                    {
/datasets/git/log-tree.c:749:7: warning: variable 'raw' is not initialized [cppcoreguidelines-init-variables]
                int raw;
                    ^
                        = 0
/datasets/git/log-tree.c:761:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ctx.need_8bit_cte >= 0 && opt->add_signoff)
                                                       ^
                                                        {
/datasets/git/log-tree.c:777:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->from_ident.mail_begin && opt->from_ident.name_begin)
                                                                     ^
                                                                      {
/datasets/git/log-tree.c:779:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->graph)
                       ^
                        {
/datasets/git/log-tree.c:783:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->add_signoff)
                             ^
                              {
/datasets/git/log-tree.c:784:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                append_signoff(&msgbuf, 0, APPEND_SIGNOFF_DEDUP);
                                           ^
/datasets/git/./sequencer.h:16:31: note: expanded from macro 'APPEND_SIGNOFF_DEDUP'
#define APPEND_SIGNOFF_DEDUP (1u << 0)
                              ^     ~
/datasets/git/log-tree.c:788:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cmit_fmt_is_mail(ctx.fmt))
                                              ^
                                               {
/datasets/git/log-tree.c:794:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(opt->diffopt.file, "log size %i\n", (int)msgbuf.len);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/log-tree.c:794:3: note: cast the expression to void to silence this warning
/datasets/git/log-tree.c:802:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!msgbuf.len || msgbuf.buf[msgbuf.len - 1] != '\n')
                                                              ^
                                                               {
/datasets/git/log-tree.c:804:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/log-tree.c:809:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!opt->missing_newline)
                                          ^
                                           {
/datasets/git/log-tree.c:811:3: warning: the value returned by this function should be used [cert-err33-c]
                putc(opt->diffopt.line_termination, opt->diffopt.file);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/log-tree.c:811:3: note: cast the expression to void to silence this warning
/datasets/git/log-tree.c:818:28: warning: variable name 'dq' is too short, expected at least 3 characters [readability-identifier-length]
                struct diff_queue_struct dq;
                                         ^
/datasets/git/log-tree.c:820:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(&dq, &diff_queued_diff, sizeof(diff_queued_diff));
                ^~~~~~
/datasets/git/log-tree.c:820:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(&dq, &diff_queued_diff, sizeof(diff_queued_diff));
                ^~~~~~
/datasets/git/log-tree.c:821:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                DIFF_QUEUE_CLEAR(&diff_queued_diff);
                ^
/datasets/git/./diffcore.h:155:2: note: expanded from macro 'DIFF_QUEUE_CLEAR'
        do { \
        ^
/datasets/git/log-tree.c:828:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(&diff_queued_diff, &dq, sizeof(diff_queued_diff));
                ^~~~~~
/datasets/git/log-tree.c:828:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(&diff_queued_diff, &dq, sizeof(diff_queued_diff));
                ^~~~~~
/datasets/git/log-tree.c:832:28: warning: variable name 'dq' is too short, expected at least 3 characters [readability-identifier-length]
                struct diff_queue_struct dq;
                                         ^
/datasets/git/log-tree.c:840:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(&dq, &diff_queued_diff, sizeof(diff_queued_diff));
                ^~~~~~
/datasets/git/log-tree.c:840:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(&dq, &diff_queued_diff, sizeof(diff_queued_diff));
                ^~~~~~
/datasets/git/log-tree.c:841:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                DIFF_QUEUE_CLEAR(&diff_queued_diff);
                ^
/datasets/git/./diffcore.h:155:2: note: expanded from macro 'DIFF_QUEUE_CLEAR'
        do { \
        ^
/datasets/git/log-tree.c:855:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(&diff_queued_diff, &dq, sizeof(diff_queued_diff));
                ^~~~~~
/datasets/git/log-tree.c:855:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(&diff_queued_diff, &dq, sizeof(diff_queued_diff));
                ^~~~~~
/datasets/git/log-tree.c:874:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((opt->diffopt.output_format & ~DIFF_FORMAT_NO_OUTPUT) &&
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/log-tree.c:874:37: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                if ((opt->diffopt.output_format & ~DIFF_FORMAT_NO_OUTPUT) &&
                                                  ^
/datasets/git/log-tree.c:884:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        int pch = DIFF_FORMAT_DIFFSTAT | DIFF_FORMAT_PATCH;
                                  ^
/datasets/git/./diff.h:100:30: note: expanded from macro 'DIFF_FORMAT_DIFFSTAT'
#define DIFF_FORMAT_DIFFSTAT    0x0002
                                ^~~~~~
/datasets/git/log-tree.c:889:5: warning: the value returned by this function should be used [cert-err33-c]
                                fwrite(msg->buf, msg->len, 1, opt->diffopt.file);
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/log-tree.c:889:5: note: cast the expression to void to silence this warning
/datasets/git/log-tree.c:904:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            (pch & opt->diffopt.output_format) == pch)
                             ^~~
/datasets/git/log-tree.c:904:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            (pch & opt->diffopt.output_format) == pch)
                                                                      ^
                                                                       {
/datasets/git/log-tree.c:905:5: warning: the value returned by this function should be used [cert-err33-c]
                                fprintf(opt->diffopt.file, "---");
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/log-tree.c:905:5: note: cast the expression to void to silence this warning
/datasets/git/log-tree.c:906:4: warning: the value returned by this function should be used [cert-err33-c]
                        putc('\n', opt->diffopt.file);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/log-tree.c:906:4: note: cast the expression to void to silence this warning
/datasets/git/log-tree.c:919:59: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static void setup_additional_headers(struct diff_options *o,
                                                          ^
/datasets/git/log-tree.c:923:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct strmap_entry *entry;
        ^
/datasets/git/log-tree.c:923:23: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
        struct strmap_entry *entry;
                             ^
                                   = NULL
/datasets/git/log-tree.c:938:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        strmap_for_each_entry(all_headers, &iter, entry) {
        ^
/datasets/git/./strmap.h:112:2: note: expanded from macro 'strmap_for_each_entry'
        hashmap_for_each_entry(&(mystrmap)->map, iter, var, ent)
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/log-tree.c:938:44: warning: backward branch (for loop) is ID-dependent due to variable reference to 'entry' and may cause performance degradation [altera-id-dependent-backward-branch]
        strmap_for_each_entry(all_headers, &iter, entry) {
                                                  ^
/datasets/git/log-tree.c:940:20: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                   entry->key, strlen(entry->key),
                                               ^
/datasets/git/log-tree.c:942:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                   0 /* is_dir */))
                                                   ^
                                                    {
/datasets/git/log-tree.c:948:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FREE_AND_NULL(o->additional_path_headers);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/log-tree.c:952:61: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static void cleanup_additional_headers(struct diff_options *o)
                                                            ^
/datasets/git/log-tree.c:958:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!o->additional_path_headers)
                                        ^
                                         {
/datasets/git/log-tree.c:962:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(o->additional_path_headers);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/log-tree.c:969:23: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
        struct merge_options o;
                             ^
/datasets/git/log-tree.c:970:22: warning: variable 'bases' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *bases;
                            ^
                                  = NULL
/datasets/git/log-tree.c:1010:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->remerge_objdir)
                                ^
                                 {
/datasets/git/log-tree.c:1012:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/log-tree.c:1023:12: warning: function 'log_tree_diff' has cognitive complexity of 27 (threshold 25) [readability-function-cognitive-complexity]
static int log_tree_diff(struct rev_info *opt, struct commit *commit, struct log_info *log)
           ^
/datasets/git/log-tree.c:1029:32: note: +1
        int all_need_diff = opt->diff || opt->diffopt.flags.exit_with_status;
                                      ^
/datasets/git/log-tree.c:1031:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!all_need_diff && !opt->merges_need_diff)
        ^
/datasets/git/log-tree.c:1031:21: note: +1
        if (!all_need_diff && !opt->merges_need_diff)
                           ^
/datasets/git/log-tree.c:1038:21: note: +1
        is_merge = parents && parents->next;
                           ^
/datasets/git/log-tree.c:1039:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!is_merge && !all_need_diff)
        ^
/datasets/git/log-tree.c:1039:16: note: +1
        if (!is_merge && !all_need_diff)
                      ^
/datasets/git/log-tree.c:1043:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!parents) {
        ^
/datasets/git/log-tree.c:1044:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opt->show_root_diff) {
                ^
/datasets/git/log-tree.c:1051:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (is_merge) {
        ^
/datasets/git/log-tree.c:1054:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opt->remerge_diff) {
                ^
/datasets/git/log-tree.c:1055:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (octopus) {
                        ^
/datasets/git/log-tree.c:1064:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opt->combine_merges)
                ^
/datasets/git/log-tree.c:1066:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opt->separate_merges) {
                ^
/datasets/git/log-tree.c:1067:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!opt->first_parent_merges) {
                        ^
/datasets/git/log-tree.c:1071:5: note: +1, nesting level increased to 2
                } else
                  ^
/datasets/git/log-tree.c:1076:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (;;) {
        ^
/datasets/git/log-tree.c:1088:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!parents || opt->first_parent_merges)
                ^
/datasets/git/log-tree.c:1088:16: note: +1
                if (!parents || opt->first_parent_merges)
                             ^
/datasets/git/log-tree.c:1025:6: warning: variable 'showed_log' is not initialized [cppcoreguidelines-init-variables]
        int showed_log;
            ^
                       = 0
/datasets/git/log-tree.c:1026:22: warning: variable 'parents' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *parents;
                            ^
                                    = NULL
/datasets/git/log-tree.c:1027:20: warning: variable 'oid' is not initialized [cppcoreguidelines-init-variables]
        struct object_id *oid;
                          ^
                              = NULL
/datasets/git/log-tree.c:1028:6: warning: variable 'is_merge' is not initialized [cppcoreguidelines-init-variables]
        int is_merge;
            ^
                     = 0
/datasets/git/log-tree.c:1031:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!all_need_diff && !opt->merges_need_diff)
                                                     ^
                                                      {
/datasets/git/log-tree.c:1039:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_merge && !all_need_diff)
                                        ^
                                         {
/datasets/git/log-tree.c:1057:5: warning: the value returned by this function should be used [cert-err33-c]
                                fprintf(opt->diffopt.file,
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/log-tree.c:1057:5: note: cast the expression to void to silence this warning
/datasets/git/log-tree.c:1064:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opt->combine_merges)
                                        ^
                                         {
/datasets/git/log-tree.c:1071:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/log-tree.c:1076:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/log-tree.c:1084:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                showed_log |= !opt->loginfo;
                ^~~~~~~~~~
/datasets/git/log-tree.c:1088:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!parents || opt->first_parent_merges)
                                                         ^
                                                          {
/datasets/git/log-tree.c:1099:6: warning: variable 'shown' is not initialized [cppcoreguidelines-init-variables]
        int shown;
            ^
                  = 0
/datasets/git/log-tree.c:1109:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->line_level_traverse)
                                     ^
                                      {
/datasets/git/log-tree.c:1112:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->track_linear && !opt->linear && !opt->reverse_output_stage)
                                                                            ^
                                                                             {
/datasets/git/log-tree.c:1113:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(opt->diffopt.file, "\n%s\n", opt->break_bar);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/log-tree.c:1113:3: note: cast the expression to void to silence this warning
/datasets/git/log-tree.c:1120:69: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->track_linear && !opt->linear && opt->reverse_output_stage)
                                                                           ^
                                                                            {
/datasets/git/log-tree.c:1121:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(opt->diffopt.file, "\n%s\n", opt->break_bar);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/log-tree.c:1121:3: note: cast the expression to void to silence this warning
/datasets/git/ls-refs.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "repository.h"
^        ~~~~~~~~~~~~~~
         "config.h"
/datasets/git/ls-refs.c:11:12: warning: variable 'config_read' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int config_read;
           ^
/datasets/git/ls-refs.c:12:12: warning: variable 'advertise_unborn' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int advertise_unborn;
           ^
/datasets/git/ls-refs.c:13:12: warning: variable 'allow_unborn' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int allow_unborn;
           ^
/datasets/git/ls-refs.c:19:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (config_read)
                        ^
                         {
/datasets/git/ls-refs.c:49:1: warning: replace macro with enum [modernize-macro-to-enum]
#define TOO_MANY_PREFIXES 65536
^~~~~~~~
                          =
/datasets/git/ls-refs.c:49:9: warning: macro 'TOO_MANY_PREFIXES' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define TOO_MANY_PREFIXES 65536
        ^
/datasets/git/ls-refs.c:57:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/ls-refs.c:57:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ls-refs.c:59:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!prefixes->nr)
                          ^
                           {
/datasets/git/ls-refs.c:62:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < prefixes->nr; i++) {
        ^
/datasets/git/ls-refs.c:65:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (starts_with(refname, prefix))
                                                 ^
                                                  {
/datasets/git/ls-refs.c:72:8: warning: accessing fields in struct 'ls_refs_data' is inefficient due to padding; only needs 100 bytes but is using 104 bytes [altera-struct-pack-align]
struct ls_refs_data {
       ^
/datasets/git/ls-refs.c:72:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'ls_refs_data'
/datasets/git/ls-refs.c:72:8: warning: accessing fields in struct 'ls_refs_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct ls_refs_data {
       ^
/datasets/git/ls-refs.c:72:8: note: use "__attribute__((aligned(128)))" to align struct 'ls_refs_data' to 128 bytes
/datasets/git/ls-refs.c:89:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ref_is_hidden(refname_nons, refname, &data->hidden_refs))
                                                                     ^
                                                                      {
/datasets/git/ls-refs.c:92:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ref_match(&data->prefixes, refname_nons))
                                                      ^
                                                       {
/datasets/git/ls-refs.c:95:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oid)
                ^
                 {
/datasets/git/ls-refs.c:97:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/ls-refs.c:99:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (data->symrefs && flag & REF_ISSYMREF) {
                             ^~~~
/datasets/git/ls-refs.c:105:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!symref_target)
                                   ^
                                    {
/datasets/git/ls-refs.c:114:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!peel_iterated_oid(oid, &peeled))
                                                     ^
                                                      {
/datasets/git/ls-refs.c:128:6: warning: variable 'flag' is not initialized [cppcoreguidelines-init-variables]
        int flag;
            ^
                 = 0
/datasets/git/ls-refs.c:129:6: warning: variable 'oid_is_null' is not initialized [cppcoreguidelines-init-variables]
        int oid_is_null;
            ^
                        = 0
/datasets/git/ls-refs.c:132:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!resolve_ref_unsafe(namespaced.buf, 0, &oid, &flag))
                                                                ^
                                                                 {
/datasets/git/ls-refs.c:136:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            (data->unborn && data->symrefs && (flag & REF_ISSYMREF)))
                                               ^~~~
/datasets/git/ls-refs.c:136:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            (data->unborn && data->symrefs && (flag & REF_ISSYMREF)))
                                                                     ^
                                                                      {
/datasets/git/ls-refs.c:153:32: warning: parameter 'r' is unused [misc-unused-parameters]
int ls_refs(struct repository *r, struct packet_reader *request)
                               ^
/datasets/git/ls-refs.c:153:32: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ls-refs.c:157:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&data, 0, sizeof(data));
        ^~~~~~
/datasets/git/ls-refs.c:157:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&data, 0, sizeof(data));
        ^~~~~~
/datasets/git/ls-refs.c:165:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (packet_reader_read(request) == PACKET_READ_NORMAL) {
        ^
/datasets/git/ls-refs.c:167:15: warning: variable 'out' is not initialized [cppcoreguidelines-init-variables]
                const char *out;
                            ^
                                = NULL
/datasets/git/ls-refs.c:169:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp("peel", arg))
                                         ^
                                          {
/datasets/git/ls-refs.c:171:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp("symrefs", arg))
                                                 ^
                                                  {
/datasets/git/ls-refs.c:174:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (data.prefixes.nr < TOO_MANY_PREFIXES)
                                                                 ^
                                                                  {
/datasets/git/ls-refs.c:177:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp("unborn", arg))
                                                ^
                                                 {
/datasets/git/ls-refs.c:179:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/ls-refs.c:183:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (request->status != PACKET_READ_FLUSH)
                                                 ^
                                                  {
/datasets/git/ls-refs.c:191:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (data.prefixes.nr >= TOO_MANY_PREFIXES)
                                                  ^
                                                   {
/datasets/git/ls-refs.c:195:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!data.prefixes.nr)
                              ^
                               {
/datasets/git/ls-refs.c:206:42: warning: parameter 'r' is unused [misc-unused-parameters]
int ls_refs_advertise(struct repository *r, struct strbuf *value)
                                         ^
/datasets/git/ls-refs.c:206:42: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ls-refs.c:210:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (advertise_unborn)
                                     ^
                                      {
/datasets/git/mailinfo.c:3:1: warning: #includes are not sorted properly [llvm-include-order]
#include "utf8.h"
^        ~~~~~~~~
         "mailinfo.h"
/datasets/git/mailinfo.c:7:42: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static void cleanup_space(struct strbuf *sb)
                                         ^
/datasets/git/mailinfo.c:9:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t pos, cnt;
        ^~~~~~~~~~~~~~~~
/datasets/git/./strbuf.h:68:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        size_t len;
        ^
/datasets/git/mailinfo.c:9:9: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        size_t pos, cnt;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/mailinfo.c:9:14: warning: variable 'cnt' is not initialized [cppcoreguidelines-init-variables]
        size_t pos, cnt;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/mailinfo.c:10:16: warning: backward branch (for loop) is ID-dependent due to member reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (pos = 0; pos < sb->len; pos++) {
                      ^
/datasets/git/mailinfo.c:11:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (isspace(sb->buf[pos])) {
                    ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/mailinfo.c:13:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (cnt = 0; isspace(sb->buf[pos + cnt + 1]); cnt++);
                        ^
/datasets/git/mailinfo.c:13:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        for (cnt = 0; isspace(sb->buf[pos + cnt + 1]); cnt++);
                                      ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/mailinfo.c:13:57: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                        for (cnt = 0; isspace(sb->buf[pos + cnt + 1]); cnt++);
                                                                             ^
                                                                              {
/datasets/git/mailinfo.c:19:47: warning: 2 adjacent parameters of 'get_sane_name' of similar type ('struct strbuf *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void get_sane_name(struct strbuf *out, struct strbuf *name, struct strbuf *email)
                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/mailinfo.c:19:62: note: the first parameter in the range is 'name'
static void get_sane_name(struct strbuf *out, struct strbuf *name, struct strbuf *email)
                                                             ^~~~
/datasets/git/mailinfo.c:19:83: note: the last parameter in the range is 'email'
static void get_sane_name(struct strbuf *out, struct strbuf *name, struct strbuf *email)
                                                                                  ^~~~~
/datasets/git/mailinfo.c:22:20: warning: 60 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (!name->len || 60 < name->len || strpbrk(name->buf, "@<>"))
                          ^
/datasets/git/mailinfo.c:22:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!name->len || 60 < name->len || strpbrk(name->buf, "@<>"))
                                                                      ^
                                                                       {
/datasets/git/mailinfo.c:24:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (name == out)
                             ^
                              {
/datasets/git/mailinfo.c:30:47: warning: parameter name 'mi' is too short, expected at least 3 characters [readability-identifier-length]
static void parse_bogus_from(struct mailinfo *mi, const struct strbuf *line)
                                              ^
/datasets/git/mailinfo.c:34:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *bra, *ket;
        ^~~~~~~~~~~~~~~~
/datasets/git/mailinfo.c:34:8: warning: variable 'bra' is not initialized [cppcoreguidelines-init-variables]
        char *bra, *ket;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/mailinfo.c:34:14: warning: variable 'ket' is not initialized [cppcoreguidelines-init-variables]
        char *bra, *ket;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/mailinfo.c:38:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mi->email.len)
                          ^
                           {
/datasets/git/mailinfo.c:42:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!bra)
                 ^
                  {
/datasets/git/mailinfo.c:45:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ket)
                 ^
                  {
/datasets/git/mailinfo.c:57:20: warning: function 'unquote_comment' is within a recursive call chain [misc-no-recursion]
static const char *unquote_comment(struct strbuf *outbuf, const char *in)
                   ^
/datasets/git/mailinfo.c:57:20: note: example recursive call chain, starting from function 'unquote_comment'
/datasets/git/mailinfo.c:73:10: note: Frame #1: function 'unquote_comment' calls function 'unquote_comment' here:
                                in = unquote_comment(outbuf, in);
                                     ^
/datasets/git/mailinfo.c:73:10: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/mailinfo.c:57:71: warning: parameter name 'in' is too short, expected at least 3 characters [readability-identifier-length]
static const char *unquote_comment(struct strbuf *outbuf, const char *in)
                                                                      ^
/datasets/git/mailinfo.c:59:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int c;
        ^
/datasets/git/mailinfo.c:59:6: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        int c;
            ^
              = 0
/datasets/git/mailinfo.c:59:6: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/mailinfo.c:64:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((c = *in++) != 0) {
        ^
/datasets/git/mailinfo.c:64:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'c' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((c = *in++) != 0) {
               ^
/datasets/git/mailinfo.c:64:14: warning: 'signed char' to 'int' conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse,cert-str34-c]
        while ((c = *in++) != 0) {
                    ^
/datasets/git/mailinfo.c:68:4: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
                        switch (c) {
                        ^
/datasets/git/mailinfo.c:87:77: warning: parameter name 'in' is too short, expected at least 3 characters [readability-identifier-length]
static const char *unquote_quoted_string(struct strbuf *outbuf, const char *in)
                                                                            ^
/datasets/git/mailinfo.c:89:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int c;
        ^
/datasets/git/mailinfo.c:89:6: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        int c;
            ^
              = 0
/datasets/git/mailinfo.c:89:6: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/mailinfo.c:92:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((c = *in++) != 0) {
        ^
/datasets/git/mailinfo.c:92:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'c' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((c = *in++) != 0) {
               ^
/datasets/git/mailinfo.c:92:14: warning: 'signed char' to 'int' conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse,cert-str34-c]
        while ((c = *in++) != 0) {
                    ^
/datasets/git/mailinfo.c:96:4: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
                        switch (c) {
                        ^
/datasets/git/mailinfo.c:115:2: note: inferred assignment of ID-dependent value from ID-dependent variable in [altera-id-dependent-backward-branch]
        int c;
        ^
/datasets/git/mailinfo.c:114:14: warning: variable name 'in' is too short, expected at least 3 characters [readability-identifier-length]
        const char *in = line->buf;
                    ^
/datasets/git/mailinfo.c:115:6: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        int c;
            ^
              = 0
/datasets/git/mailinfo.c:115:6: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/mailinfo.c:119:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((c = *in++) != 0) {
        ^
/datasets/git/mailinfo.c:119:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'c' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((c = *in++) != 0) {
               ^
/datasets/git/mailinfo.c:119:14: warning: 'signed char' to 'int' conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse,cert-str34-c]
        while ((c = *in++) != 0) {
                    ^
/datasets/git/mailinfo.c:120:3: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
                switch (c) {
                ^
/datasets/git/mailinfo.c:137:42: warning: parameter name 'mi' is too short, expected at least 3 characters [readability-identifier-length]
static void handle_from(struct mailinfo *mi, const struct strbuf *from)
                                         ^
/datasets/git/mailinfo.c:139:8: warning: variable 'at' is not initialized [cppcoreguidelines-init-variables]
        char *at;
              ^
                 = NULL
/datasets/git/mailinfo.c:139:8: warning: variable name 'at' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/mailinfo.c:140:9: warning: variable 'el' is not initialized [cppcoreguidelines-init-variables]
        size_t el;
               ^
                  = 0
/datasets/git/mailinfo.c:140:9: warning: variable name 'el' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/mailinfo.c:141:16: warning: variable name 'f' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf f;
                      ^
/datasets/git/mailinfo.c:157:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mi->email.len && strchr(at + 1, '@'))
                                                 ^
                                                  {
/datasets/git/mailinfo.c:163:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (at > f.buf) {
        ^
/datasets/git/mailinfo.c:163:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'at' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (at > f.buf) {
               ^
/datasets/git/mailinfo.c:164:8: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                char c = at[-1];
                     ^
/datasets/git/mailinfo.c:165:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (isspace(c))
                    ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/mailinfo.c:165:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (isspace(c))
                               ^
                                {
/datasets/git/mailinfo.c:207:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/mailinfo.c:221:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *ends, *ap = strcasestr(line, name);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/mailinfo.c:221:14: warning: variable 'ends' is not initialized [cppcoreguidelines-init-variables]
        const char *ends, *ap = strcasestr(line, name);
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/mailinfo.c:221:21: warning: variable name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
        const char *ends, *ap = strcasestr(line, name);
                           ^
/datasets/git/mailinfo.c:222:9: warning: variable 'sz' is not initialized [cppcoreguidelines-init-variables]
        size_t sz;
               ^
                  = 0
/datasets/git/mailinfo.c:222:9: warning: variable name 'sz' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/mailinfo.c:225:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ap)
                ^
                 {
/datasets/git/mailinfo.c:232:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/mailinfo.c:241:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/mailinfo.c:242:6: warning: variable name 'rc' is too short, expected at least 3 characters [readability-identifier-length]
        int rc = slurp_attr(line, name, &sb) && !strcasecmp(sb.buf, value);
            ^
/datasets/git/mailinfo.c:247:50: warning: parameter name 'mi' is too short, expected at least 3 characters [readability-identifier-length]
static void handle_content_type(struct mailinfo *mi, struct strbuf *line)
                                                 ^
/datasets/git/mailinfo.c:274:63: warning: parameter name 'mi' is too short, expected at least 3 characters [readability-identifier-length]
static void handle_content_transfer_encoding(struct mailinfo *mi,
                                                              ^
/datasets/git/mailinfo.c:277:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strcasestr(line->buf, "base64"))
                                            ^
                                             {
/datasets/git/mailinfo.c:279:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (strcasestr(line->buf, "quoted-printable"))
                                                           ^
                                                            {
/datasets/git/mailinfo.c:281:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/mailinfo.c:285:51: warning: parameter name 'mi' is too short, expected at least 3 characters [readability-identifier-length]
static int is_multipart_boundary(struct mailinfo *mi, const struct strbuf *line)
                                                  ^
/datasets/git/mailinfo.c:293:46: warning: parameter name 'mi' is too short, expected at least 3 characters [readability-identifier-length]
static void cleanup_subject(struct mailinfo *mi, struct strbuf *subject)
                                             ^
/datasets/git/mailinfo.c:295:2: note: inferred assignment of ID-dependent value from ID-dependent variable remove [altera-id-dependent-backward-branch]
        size_t at = 0;
        ^
/datasets/git/mailinfo.c:295:9: warning: variable name 'at' is too short, expected at least 3 characters [readability-identifier-length]
        size_t at = 0;
               ^
/datasets/git/mailinfo.c:297:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (at < subject->len) {
        ^
/datasets/git/mailinfo.c:297:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'at' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (at < subject->len) {
               ^
/datasets/git/mailinfo.c:298:9: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
                char *pos;
                      ^
                          = NULL
/datasets/git/mailinfo.c:299:10: warning: variable 'remove' is not initialized [cppcoreguidelines-init-variables]
                size_t remove;
                       ^
                              = 0
/datasets/git/mailinfo.c:303:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (subject->len <= at + 3)
                                                   ^
                                                    {
/datasets/git/mailinfo.c:318:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!pos)
                                 ^
                                  {
/datasets/git/mailinfo.c:322:9: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            (7 <= remove &&
                             ^
/datasets/git/mailinfo.c:323:52: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                             memmem(subject->buf + at, remove, "PATCH", 5)))
                                                                        ^
/datasets/git/mailinfo.c:323:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                             memmem(subject->buf + at, remove, "PATCH", 5)))
                                                                            ^
                                                                             {
/datasets/git/mailinfo.c:333:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (isspace(subject->buf[at]))
                                    ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/mailinfo.c:333:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (isspace(subject->buf[at]))
                                                              ^
                                                               {
/datasets/git/mailinfo.c:343:1: warning: replace macro with enum [modernize-macro-to-enum]
#define MAX_HDR_PARSED 10
^~~~~~~~
                       =
/datasets/git/mailinfo.c:343:9: warning: macro 'MAX_HDR_PARSED' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define MAX_HDR_PARSED 10
        ^
/datasets/git/mailinfo.c:344:20: warning: variable 'header' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *header[MAX_HDR_PARSED] = {
                   ^
/datasets/git/mailinfo.c:351:14: warning: variable 'val' is not initialized [cppcoreguidelines-init-variables]
        const char *val;
                    ^
                        = NULL
/datasets/git/mailinfo.c:353:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            *val++ != ':')
                          ^
                           {
/datasets/git/mailinfo.c:355:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (isspace(*val))
        ^
/datasets/git/mailinfo.c:355:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        while (isspace(*val))
               ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/mailinfo.c:355:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (isspace(*val))
                             ^
                              {
/datasets/git/mailinfo.c:365:14: warning: variable 'cp' is not initialized [cppcoreguidelines-init-variables]
        const char *cp;
                    ^
                       = NULL
/datasets/git/mailinfo.c:365:14: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/mailinfo.c:367:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len != strlen(SAMPLE))
                                  ^
                                   {
/datasets/git/mailinfo.c:369:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!skip_prefix(line, "From ", &cp))
                                             ^
                                              {
/datasets/git/mailinfo.c:371:40: warning: 40 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (strspn(cp, "0123456789abcdef") != 40)
                                              ^
/datasets/git/mailinfo.c:371:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strspn(cp, "0123456789abcdef") != 40)
                                                 ^
                                                  {
/datasets/git/mailinfo.c:373:8: warning: 40 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        cp += 40;
              ^
/datasets/git/mailinfo.c:379:14: warning: variable name 'in' is too short, expected at least 3 characters [readability-identifier-length]
        const char *in = q_seg->buf;
                    ^
/datasets/git/mailinfo.c:380:6: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        int c;
            ^
              = 0
/datasets/git/mailinfo.c:380:6: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/mailinfo.c:384:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((c = *in++) != 0) {
        ^
/datasets/git/mailinfo.c:384:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'c' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((c = *in++) != 0) {
               ^
/datasets/git/mailinfo.c:384:14: warning: 'signed char' to 'int' conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse,cert-str34-c]
        while ((c = *in++) != 0) {
                    ^
/datasets/git/mailinfo.c:386:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        int ch, d = *in;
                        ^~~~~~~~~~~~~~~~
/datasets/git/mailinfo.c:386:8: warning: variable 'ch' is not initialized [cppcoreguidelines-init-variables]
                        int ch, d = *in;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/mailinfo.c:386:8: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/mailinfo.c:386:12: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
                        int ch, d = *in;
                                ^
/datasets/git/mailinfo.c:386:16: warning: 'signed char' to 'int' conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse,cert-str34-c]
                        int ch, d = *in;
                                    ^
/datasets/git/mailinfo.c:387:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (d == '\n' || !d)
                                            ^
                                             {
/datasets/git/mailinfo.c:397:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (rfc2047 && c == '_') /* rfc2047 4.2 (2) */
                                        ^
                                         {
/datasets/git/mailinfo.c:398:8: warning: 0x20 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        c = 0x20;
                            ^
/datasets/git/mailinfo.c:407:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int c, pos = 0, acc = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/mailinfo.c:407:2: note: inferred assignment of ID-dependent value from ID-dependent variable in [altera-id-dependent-backward-branch]
/datasets/git/mailinfo.c:407:6: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        int c, pos = 0, acc = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/mailinfo.c:407:6: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/mailinfo.c:408:14: warning: variable name 'in' is too short, expected at least 3 characters [readability-identifier-length]
        const char *in = b_seg->buf;
                    ^
/datasets/git/mailinfo.c:412:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((c = *in++) != 0) {
        ^
/datasets/git/mailinfo.c:412:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'c' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((c = *in++) != 0) {
               ^
/datasets/git/mailinfo.c:412:14: warning: 'signed char' to 'int' conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse,cert-str34-c]
        while ((c = *in++) != 0) {
                    ^
/datasets/git/mailinfo.c:413:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (c == '+')
                             ^
                              {
/datasets/git/mailinfo.c:414:8: warning: 62 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        c = 62;
                            ^
/datasets/git/mailinfo.c:415:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (c == '/')
                                  ^
                                   {
/datasets/git/mailinfo.c:416:8: warning: 63 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        c = 63;
                            ^
/datasets/git/mailinfo.c:417:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if ('A' <= c && c <= 'Z')
                                              ^
                                               {
/datasets/git/mailinfo.c:419:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if ('a' <= c && c <= 'z')
                                              ^
                                               {
/datasets/git/mailinfo.c:420:15: warning: 26 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        c -= 'a' - 26;
                                   ^
/datasets/git/mailinfo.c:421:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if ('0' <= c && c <= '9')
                                              ^
                                               {
/datasets/git/mailinfo.c:422:15: warning: 52 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        c -= '0' - 52;
                                   ^
/datasets/git/mailinfo.c:423:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/mailinfo.c:427:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        acc = (c << 2);
                               ^
/datasets/git/mailinfo.c:430:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        strbuf_addch(out, (acc | (c >> 4)));
                                           ^~~
/datasets/git/mailinfo.c:430:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        strbuf_addch(out, (acc | (c >> 4)));
                                                  ^
/datasets/git/mailinfo.c:431:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        acc = (c & 15) << 4;
                              ^~~~~~~~
/datasets/git/mailinfo.c:431:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        acc = (c & 15) << 4;
                               ^
/datasets/git/mailinfo.c:431:15: warning: 15 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        acc = (c & 15) << 4;
                                   ^
/datasets/git/mailinfo.c:434:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        strbuf_addch(out, (acc | (c >> 2)));
                                           ^~~
/datasets/git/mailinfo.c:434:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        strbuf_addch(out, (acc | (c >> 2)));
                                                  ^
/datasets/git/mailinfo.c:435:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        acc = (c & 3) << 6;
                              ^~~~~~~
/datasets/git/mailinfo.c:435:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        acc = (c & 3) << 6;
                               ^
/datasets/git/mailinfo.c:435:21: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        acc = (c & 3) << 6;
                                         ^
/datasets/git/mailinfo.c:438:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        strbuf_addch(out, (acc | c));
                                           ^~~
/datasets/git/mailinfo.c:446:45: warning: parameter name 'mi' is too short, expected at least 3 characters [readability-identifier-length]
static int convert_to_utf8(struct mailinfo *mi,
                                            ^
/datasets/git/mailinfo.c:449:8: warning: variable 'out' is not initialized [cppcoreguidelines-init-variables]
        char *out;
              ^
                  = NULL
/datasets/git/mailinfo.c:450:9: warning: variable 'out_len' is not initialized [cppcoreguidelines-init-variables]
        size_t out_len;
               ^
                       = 0
/datasets/git/mailinfo.c:452:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!mi->metainfo_charset || !charset || !*charset)
                                                           ^
                                                            {
/datasets/git/mailinfo.c:455:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (same_encoding(mi->metainfo_charset, charset))
                                                         ^
                                                          {
/datasets/git/mailinfo.c:468:13: warning: function 'decode_header' has cognitive complexity of 31 (threshold 25) [readability-function-cognitive-complexity]
static void decode_header(struct mailinfo *mi, struct strbuf *it)
            ^
/datasets/git/mailinfo.c:476:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (in - it->buf <= it->len && (ep = strstr(in, "=?")) != NULL) {
        ^
/datasets/git/mailinfo.c:476:33: note: +1
        while (in - it->buf <= it->len && (ep = strstr(in, "=?")) != NULL) {
                                       ^
/datasets/git/mailinfo.c:481:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (in != ep) {
                ^
/datasets/git/mailinfo.c:488:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (scan = in; scan < ep; scan++)
                        ^
/datasets/git/mailinfo.c:489:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!isspace(*scan))
                                ^
/datasets/git/mailinfo.c:492:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (scan != ep || in == it->buf) {
                        ^
/datasets/git/mailinfo.c:492:19: note: +1
                        if (scan != ep || in == it->buf) {
                                       ^
/datasets/git/mailinfo.c:508:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ep - it->buf >= it->len || !(cp = strchr(ep, '?')))
                ^
/datasets/git/mailinfo.c:508:31: note: +1
                if (ep - it->buf >= it->len || !(cp = strchr(ep, '?')))
                                            ^
/datasets/git/mailinfo.c:511:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (cp + 3 - it->buf > it->len)
                ^
/datasets/git/mailinfo.c:516:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!encoding || cp[2] != '?')
                ^
/datasets/git/mailinfo.c:516:17: note: +1
                if (!encoding || cp[2] != '?')
                              ^
/datasets/git/mailinfo.c:519:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!ep)
                ^
/datasets/git/mailinfo.c:522:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                switch (tolower(encoding)) {
                ^
/datasets/git/mailinfo.c:524:4: note: +1
                        goto release_return;
                        ^
/datasets/git/mailinfo.c:532:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (convert_to_utf8(mi, dec, charset_q.buf))
                ^
/datasets/git/mailinfo.c:549:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (found_error)
        ^
/datasets/git/mailinfo.c:468:44: warning: parameter name 'mi' is too short, expected at least 3 characters [readability-identifier-length]
static void decode_header(struct mailinfo *mi, struct strbuf *it)
                                           ^
/datasets/git/mailinfo.c:468:63: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
static void decode_header(struct mailinfo *mi, struct strbuf *it)
                                                              ^
/datasets/git/mailinfo.c:470:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *in, *ep, *cp;
        ^~~~~~~~~~~~~~~~~~~
/datasets/git/mailinfo.c:470:8: warning: variable 'in' is not initialized [cppcoreguidelines-init-variables]
        char *in, *ep, *cp;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/mailinfo.c:470:8: warning: variable name 'in' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/mailinfo.c:470:13: warning: variable 'ep' is not initialized [cppcoreguidelines-init-variables]
        char *in, *ep, *cp;
                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/mailinfo.c:470:13: warning: variable name 'ep' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/mailinfo.c:470:18: warning: variable 'cp' is not initialized [cppcoreguidelines-init-variables]
        char *in, *ep, *cp;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/mailinfo.c:470:18: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/mailinfo.c:471:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct strbuf outbuf = STRBUF_INIT, *dec;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/mailinfo.c:471:39: warning: variable 'dec' is not initialized [cppcoreguidelines-init-variables]
        struct strbuf outbuf = STRBUF_INIT, *dec;
                                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/mailinfo.c:472:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct strbuf charset_q = STRBUF_INIT, piecebuf = STRBUF_INIT;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/mailinfo.c:470:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        char *in, *ep, *cp;
        ^
/datasets/git/mailinfo.c:476:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'in' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (in - it->buf <= it->len && (ep = strstr(in, "=?")) != NULL) {
               ^
/datasets/git/mailinfo.c:477:7: warning: variable 'encoding' is not initialized [cppcoreguidelines-init-variables]
                int encoding;
                    ^
                             = 0
/datasets/git/mailinfo.c:487:10: warning: variable 'scan' is not initialized [cppcoreguidelines-init-variables]
                        char *scan;
                              ^
                                   = NULL
/datasets/git/mailinfo.c:488:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (scan = in; scan < ep; scan++)
                        ^
/datasets/git/mailinfo.c:488:20: warning: backward branch (for loop) is ID-dependent due to variable reference to 'scan' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (scan = in; scan < ep; scan++)
                                        ^
/datasets/git/mailinfo.c:488:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (scan = in; scan < ep; scan++)
                                                          ^
                                                           {
/datasets/git/mailinfo.c:489:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (!isspace(*scan))
                                     ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/mailinfo.c:489:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!isspace(*scan))
                                                    ^
                                                     {
/datasets/git/mailinfo.c:508:36: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                if (ep - it->buf >= it->len || !(cp = strchr(ep, '?')))
                                                 ^
/datasets/git/mailinfo.c:508:36: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/mailinfo.c:508:36: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/mailinfo.c:508:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ep - it->buf >= it->len || !(cp = strchr(ep, '?')))
                                                                       ^
                                                                        {
/datasets/git/mailinfo.c:511:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cp + 3 - it->buf > it->len)
                                               ^
                                                {
/datasets/git/mailinfo.c:515:14: warning: 'signed char' to 'int' conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse,cert-str34-c]
                encoding = cp[1];
                           ^
/datasets/git/mailinfo.c:516:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!encoding || cp[2] != '?')
                                              ^
                                               {
/datasets/git/mailinfo.c:519:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ep)
                        ^
                         {
/datasets/git/mailinfo.c:532:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (convert_to_utf8(mi, dec, charset_q.buf))
                                                            ^
                                                             {
/datasets/git/mailinfo.c:549:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (found_error)
                        ^
                         {
/datasets/git/mailinfo.c:560:21: warning: parameter name 'mi' is too short, expected at least 3 characters [readability-identifier-length]
                        struct mailinfo *mi,
                                         ^
/datasets/git/mailinfo.c:563:14: warning: variable 'val_str' is not initialized [cppcoreguidelines-init-variables]
        const char *val_str;
                    ^
                            = NULL
/datasets/git/mailinfo.c:565:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!skip_header(line, hdr, &val_str))
                                              ^
                                               {
/datasets/git/mailinfo.c:572:42: warning: parameter name 'mi' is too short, expected at least 3 characters [readability-identifier-length]
static int check_header(struct mailinfo *mi,
                                         ^
/datasets/git/mailinfo.c:576:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, ret = 0;
        ^~~~~~~~~~~~~~~
/datasets/git/mailinfo.c:576:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, ret = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/mailinfo.c:576:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/mailinfo.c:577:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/mailinfo.c:580:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; header[i]; i++) {
        ^
/datasets/git/mailinfo.c:601:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (mi->add_message_id)
                                       ^
                                        {
/datasets/git/mailinfo.c:617:52: warning: parameter name 'mi' is too short, expected at least 3 characters [readability-identifier-length]
static int is_inbody_header(const struct mailinfo *mi,
                                                   ^
/datasets/git/mailinfo.c:620:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/mailinfo.c:620:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/mailinfo.c:621:14: warning: variable 'val' is not initialized [cppcoreguidelines-init-variables]
        const char *val;
                    ^
                        = NULL
/datasets/git/mailinfo.c:622:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; header[i]; i++)
        ^
/datasets/git/mailinfo.c:622:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; header[i]; i++)
                                   ^
                                    {
/datasets/git/mailinfo.c:623:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!mi->s_hdr_data[i] && skip_header(line, header[i], &val))
                                                                             ^
                                                                              {
/datasets/git/mailinfo.c:628:55: warning: parameter name 'mi' is too short, expected at least 3 characters [readability-identifier-length]
static void decode_transfer_encoding(struct mailinfo *mi, struct strbuf *line)
                                                      ^
/datasets/git/mailinfo.c:630:17: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        struct strbuf *ret;
                       ^
                           = NULL
/datasets/git/mailinfo.c:651:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i;
               ^
                 = 0
/datasets/git/mailinfo.c:651:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/mailinfo.c:654:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (starts_with(line->buf, "diff -"))
                                             ^
                                              {
/datasets/git/mailinfo.c:658:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (starts_with(line->buf, "Index: "))
                                              ^
                                               {
/datasets/git/mailinfo.c:665:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (line->len < 4)
                          ^
                           {
/datasets/git/mailinfo.c:670:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (line->buf[3] == ' ' && !isspace(line->buf[4]))
                                            ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/mailinfo.c:670:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (line->buf[3] == ' ' && !isspace(line->buf[4]))
                                                                  ^
                                                                   {
/datasets/git/mailinfo.c:673:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 3; i < line->len; i++) {
                ^
/datasets/git/mailinfo.c:673:15: warning: backward branch (for loop) is ID-dependent due to member reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 3; i < line->len; i++) {
                            ^
/datasets/git/mailinfo.c:674:18: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                        unsigned char c = line->buf[i];
                                      ^
/datasets/git/mailinfo.c:675:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (c == '\n')
                                      ^
                                       {
/datasets/git/mailinfo.c:677:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!isspace(c))
                             ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/mailinfo.c:677:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!isspace(c))
                                        ^
                                         {
/datasets/git/mailinfo.c:687:14: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        const char *c;
                    ^
                      = NULL
/datasets/git/mailinfo.c:687:14: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/mailinfo.c:688:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int scissors = 0, gap = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/mailinfo.c:689:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *first_nonblank = NULL, *last_nonblank = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/mailinfo.c:690:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int visible, perforation = 0, in_perforation = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/mailinfo.c:687:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        const char *c;
        ^
/datasets/git/mailinfo.c:690:6: warning: variable 'visible' is not initialized [cppcoreguidelines-init-variables]
        int visible, perforation = 0, in_perforation = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/mailinfo.c:692:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (c = line; *c; c++) {
        ^
/datasets/git/mailinfo.c:692:17: warning: backward branch (for loop) is ID-dependent due to variable reference to 'c' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (c = line; *c; c++) {
                       ^
/datasets/git/mailinfo.c:693:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (isspace(*c)) {
                    ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/mailinfo.c:701:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!first_nonblank)
                                    ^
                                     {
/datasets/git/mailinfo.c:728:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (first_nonblank && last_nonblank)
                                            ^
                                             {
/datasets/git/mailinfo.c:729:13: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                visible = last_nonblank - first_nonblank + 1;
                          ^
/datasets/git/mailinfo.c:730:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/mailinfo.c:732:22: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        return (scissors && 8 <= visible &&
                            ^
/datasets/git/mailinfo.c:737:56: warning: parameter name 'mi' is too short, expected at least 3 characters [readability-identifier-length]
static void flush_inbody_header_accum(struct mailinfo *mi)
                                                       ^
/datasets/git/mailinfo.c:739:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!mi->inbody_header_accum.len)
                                         ^
                                          {
/datasets/git/mailinfo.c:741:69: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!check_header(mi, &mi->inbody_header_accum, mi->s_hdr_data, 0))
                                                                           ^
                                                                            {
/datasets/git/mailinfo.c:746:49: warning: parameter name 'mi' is too short, expected at least 3 characters [readability-identifier-length]
static int check_inbody_header(struct mailinfo *mi, const struct strbuf *line)
                                                ^
/datasets/git/mailinfo.c:765:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (starts_with(line->buf, ">From") && isspace(line->buf[5]))
                                               ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/mailinfo.c:765:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (starts_with(line->buf, ">From") && isspace(line->buf[5]))
                                                                     ^
                                                                      {
/datasets/git/mailinfo.c:766:51: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                return is_format_patch_separator(line->buf + 1, line->len - 1);
                                                                ^
/datasets/git/mailinfo.c:767:43: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (starts_with(line->buf, "[PATCH]") && isspace(line->buf[7])) {
                                                 ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/mailinfo.c:768:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/mailinfo.c:768:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/mailinfo.c:769:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; header[i]; i++)
                ^
/datasets/git/mailinfo.c:769:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; header[i]; i++)
                                           ^
                                            {
/datasets/git/mailinfo.c:783:12: warning: function 'handle_commit_msg' has cognitive complexity of 31 (threshold 25) [readability-function-cognitive-complexity]
static int handle_commit_msg(struct mailinfo *mi, struct strbuf *line)
           ^
/datasets/git/mailinfo.c:785:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(!mi->filter_stage);
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/mailinfo.c:785:2: note: nesting level increased to 1
        assert(!mi->filter_stage);
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/mailinfo.c:785:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(!mi->filter_stage);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/mailinfo.c:785:2: note: +1, nesting level increased to 2
        assert(!mi->filter_stage);
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/mailinfo.c:787:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mi->header_stage) {
        ^
/datasets/git/mailinfo.c:788:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!line->len || (line->len == 1 && line->buf[0] == '\n')) {
                ^
/datasets/git/mailinfo.c:788:18: note: +1
                if (!line->len || (line->len == 1 && line->buf[0] == '\n')) {
                               ^
/datasets/git/mailinfo.c:788:37: note: +1
                if (!line->len || (line->len == 1 && line->buf[0] == '\n')) {
                                                  ^
/datasets/git/mailinfo.c:789:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (mi->inbody_header_accum.len) {
                        ^
/datasets/git/mailinfo.c:797:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mi->use_inbody_headers && mi->header_stage) {
        ^
/datasets/git/mailinfo.c:797:29: note: +1
        if (mi->use_inbody_headers && mi->header_stage) {
                                   ^
/datasets/git/mailinfo.c:799:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (mi->header_stage)
                ^
/datasets/git/mailinfo.c:801:4: note: +1, nesting level increased to 1
        } else
          ^
/datasets/git/mailinfo.c:808:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (convert_to_utf8(mi, line, mi->charset.buf))
        ^
/datasets/git/mailinfo.c:811:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mi->use_scissors && is_scissors_line(line->buf)) {
        ^
/datasets/git/mailinfo.c:811:23: note: +1
        if (mi->use_scissors && is_scissors_line(line->buf)) {
                             ^
/datasets/git/mailinfo.c:821:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; header[i]; i++) {
                ^
/datasets/git/mailinfo.c:822:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (mi->s_hdr_data[i])
                        ^
/datasets/git/mailinfo.c:824:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        FREE_AND_NULL(mi->s_hdr_data[i]);
                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/mailinfo.c:829:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (patchbreak(line)) {
        ^
/datasets/git/mailinfo.c:830:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (mi->message_id)
                ^
/datasets/git/mailinfo.c:783:47: warning: parameter name 'mi' is too short, expected at least 3 characters [readability-identifier-length]
static int handle_commit_msg(struct mailinfo *mi, struct strbuf *line)
                                              ^
/datasets/git/mailinfo.c:799:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (mi->header_stage)
                                     ^
                                      {
/datasets/git/mailinfo.c:801:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/mailinfo.c:808:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (convert_to_utf8(mi, line, mi->charset.buf))
                                                       ^
                                                        {
/datasets/git/mailinfo.c:812:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/mailinfo.c:812:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/mailinfo.c:822:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (mi->s_hdr_data[i])
                                              ^
                                               {
/datasets/git/mailinfo.c:824:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        FREE_AND_NULL(mi->s_hdr_data[i]);
                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/mailinfo.c:830:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (mi->message_id)
                                   ^
                                    {
/datasets/git/mailinfo.c:840:43: warning: parameter name 'mi' is too short, expected at least 3 characters [readability-identifier-length]
static void handle_patch(struct mailinfo *mi, const struct strbuf *line)
                                          ^
/datasets/git/mailinfo.c:842:2: warning: the value returned by this function should be used [cert-err33-c]
        fwrite(line->buf, 1, line->len, mi->patchfile);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/mailinfo.c:842:2: note: cast the expression to void to silence this warning
/datasets/git/mailinfo.c:846:44: warning: parameter name 'mi' is too short, expected at least 3 characters [readability-identifier-length]
static void handle_filter(struct mailinfo *mi, struct strbuf *line)
                                           ^
/datasets/git/mailinfo.c:850:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!handle_commit_msg(mi, line))
                                                 ^
                                                  {
/datasets/git/mailinfo.c:870:6: warning: variable 'ch' is not initialized [cppcoreguidelines-init-variables]
        int ch;
            ^
               = 0
/datasets/git/mailinfo.c:870:6: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/mailinfo.c:871:8: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
        char *cp = line->buf;
              ^
/datasets/git/mailinfo.c:874:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (starts_with(cp, "From ") || starts_with(cp, ">From "))
                                                                  ^
                                                                   {
/datasets/git/mailinfo.c:877:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((ch = *cp++)) {
        ^
/datasets/git/mailinfo.c:877:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'ch' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((ch = *cp++)) {
               ^
/datasets/git/mailinfo.c:877:15: warning: 'signed char' to 'int' conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse,cert-str34-c]
        while ((ch = *cp++)) {
                     ^
/datasets/git/mailinfo.c:878:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ch == ':')
                              ^
                               {
/datasets/git/mailinfo.c:880:8: warning: 33 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if ((33 <= ch && ch <= 57) ||
                     ^
/datasets/git/mailinfo.c:880:26: warning: 57 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if ((33 <= ch && ch <= 57) ||
                                       ^
/datasets/git/mailinfo.c:881:8: warning: 59 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                    (59 <= ch && ch <= 126))
                     ^
/datasets/git/mailinfo.c:881:26: warning: 126 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                    (59 <= ch && ch <= 126))
                                       ^
/datasets/git/mailinfo.c:881:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    (59 <= ch && ch <= 126))
                                            ^
                                             {
/datasets/git/mailinfo.c:888:60: warning: parameter name 'in' is too short, expected at least 3 characters [readability-identifier-length]
static int read_one_header_line(struct strbuf *line, FILE *in)
                                                           ^
/datasets/git/mailinfo.c:893:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strbuf_getline_lf(line, in))
                                        ^
                                         {
/datasets/git/mailinfo.c:911:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/mailinfo.c:912:7: warning: variable 'peek' is not initialized [cppcoreguidelines-init-variables]
                int peek;
                    ^
                         = 0
/datasets/git/mailinfo.c:915:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (peek == EOF)
                                ^
                                 {
/datasets/git/mailinfo.c:917:3: warning: the value returned by this function should be used [cert-err33-c]
                ungetc(peek, in);
                ^~~~~~~~~~~~~~~~
/datasets/git/mailinfo.c:917:3: note: cast the expression to void to silence this warning
/datasets/git/mailinfo.c:918:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (peek != ' ' && peek != '\t')
                                                ^
                                                 {
/datasets/git/mailinfo.c:920:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strbuf_getline_lf(&continuation, in))
                                                         ^
                                                          {
/datasets/git/mailinfo.c:931:43: warning: parameter name 'mi' is too short, expected at least 3 characters [readability-identifier-length]
static int find_boundary(struct mailinfo *mi, struct strbuf *line)
                                          ^
/datasets/git/mailinfo.c:933:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (!strbuf_getline_lf(line, mi->input)) {
        ^
/datasets/git/mailinfo.c:934:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*(mi->content_top) && is_multipart_boundary(mi, line))
                                                                          ^
                                                                           {
/datasets/git/mailinfo.c:940:45: warning: parameter name 'mi' is too short, expected at least 3 characters [readability-identifier-length]
static int handle_boundary(struct mailinfo *mi, struct strbuf *line)
                                            ^
/datasets/git/mailinfo.c:951:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FREE_AND_NULL(*(mi->content_top));
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/mailinfo.c:965:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (mi->input_error)
                                    ^
                                     {
/datasets/git/mailinfo.c:969:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!find_boundary(mi, line))
                                             ^
                                              {
/datasets/git/mailinfo.c:979:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (read_one_header_line(line, mi->input))
        ^
/datasets/git/mailinfo.c:979:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (read_one_header_line(line, mi->input))
                                                     ^
                                                      {
/datasets/git/mailinfo.c:984:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strbuf_getline_lf(line, mi->input))
                                               ^
                                                {
/datasets/git/mailinfo.c:990:51: warning: parameter name 'mi' is too short, expected at least 3 characters [readability-identifier-length]
static void handle_filter_flowed(struct mailinfo *mi, struct strbuf *line,
                                                  ^
/datasets/git/mailinfo.c:994:14: warning: variable 'rest' is not initialized [cppcoreguidelines-init-variables]
        const char *rest;
                    ^
                         = NULL
/datasets/git/mailinfo.c:1013:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (len && line->buf[len - 1] == '\r')
                                                      ^
                                                       {
/datasets/git/mailinfo.c:1046:50: warning: parameter name 'mi' is too short, expected at least 3 characters [readability-identifier-length]
static void summarize_quoted_cr(struct mailinfo *mi)
                                                 ^
/datasets/git/mailinfo.c:1049:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            mi->quoted_cr == quoted_cr_warn)
                                            ^
                                             {
/datasets/git/mailinfo.c:1053:13: warning: function 'handle_body' has cognitive complexity of 30 (threshold 25) [readability-function-cognitive-complexity]
static void handle_body(struct mailinfo *mi, struct strbuf *line)
            ^
/datasets/git/mailinfo.c:1058:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (*(mi->content_top)) {
        ^
/datasets/git/mailinfo.c:1059:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!find_boundary(mi, line))
                ^
/datasets/git/mailinfo.c:1063:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        do {
        ^
/datasets/git/mailinfo.c:1065:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*(mi->content_top) && is_multipart_boundary(mi, line)) {
                ^
/datasets/git/mailinfo.c:1065:26: note: +1
                if (*(mi->content_top) && is_multipart_boundary(mi, line)) {
                                       ^
/datasets/git/mailinfo.c:1067:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (prev.len) {
                        ^
/datasets/git/mailinfo.c:1073:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!handle_boundary(mi, line))
                        ^
/datasets/git/mailinfo.c:1080:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                switch (mi->transfer_encoding) {
                ^
/datasets/git/mailinfo.c:1096:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (it = lines; (sb = *it); it++) {
                        ^
/datasets/git/mailinfo.c:1097:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!*(it + 1)) /* The last line */
                                ^
/datasets/git/mailinfo.c:1098:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (sb->buf[sb->len - 1] != '\n') {
                                        ^
/datasets/git/mailinfo.c:1116:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (mi->input_error)
                ^
/datasets/git/mailinfo.c:1120:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (prev.len)
        ^
/datasets/git/mailinfo.c:1053:42: warning: parameter name 'mi' is too short, expected at least 3 characters [readability-identifier-length]
static void handle_body(struct mailinfo *mi, struct strbuf *line)
                                         ^
/datasets/git/mailinfo.c:1059:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!find_boundary(mi, line))
                                             ^
                                              {
/datasets/git/mailinfo.c:1073:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!handle_boundary(mi, line))
                                                       ^
                                                        {
/datasets/git/mailinfo.c:1084:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        struct strbuf **lines, **it, *sb;
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/mailinfo.c:1084:4: note: inferred assignment of ID-dependent value from ID-dependent variable it [altera-id-dependent-backward-branch]
/datasets/git/mailinfo.c:1084:20: warning: variable 'lines' is not initialized [cppcoreguidelines-init-variables]
                        struct strbuf **lines, **it, *sb;
                                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/mailinfo.c:1084:29: warning: variable 'it' is not initialized [cppcoreguidelines-init-variables]
                        struct strbuf **lines, **it, *sb;
                                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/mailinfo.c:1084:29: warning: variable name 'it' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/mailinfo.c:1084:34: warning: variable 'sb' is not initialized [cppcoreguidelines-init-variables]
                        struct strbuf **lines, **it, *sb;
                                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/mailinfo.c:1084:34: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/mailinfo.c:1096:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (it = lines; (sb = *it); it++) {
                        ^
/datasets/git/mailinfo.c:1096:21: warning: backward branch (for loop) is ID-dependent due to variable reference to 'sb' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (it = lines; (sb = *it); it++) {
                                         ^
/datasets/git/mailinfo.c:1097:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!*(it + 1)) /* The last line */
                                               ^
                                                {
/datasets/git/mailinfo.c:1116:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (mi->input_error)
                                    ^
                                     {
/datasets/git/mailinfo.c:1120:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prev.len)
                     ^
                      {
/datasets/git/mailinfo.c:1132:14: warning: variable name 'sp' is too short, expected at least 3 characters [readability-identifier-length]
        const char *sp = data->buf;
                    ^
/datasets/git/mailinfo.c:1133:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/mailinfo.c:1134:9: warning: variable name 'ep' is too short, expected at least 3 characters [readability-identifier-length]
                char *ep = strchr(sp, '\n');
                      ^
/datasets/git/mailinfo.c:1135:7: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
                int len;
                    ^
                        = 0
/datasets/git/mailinfo.c:1136:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ep)
                        ^
                         {
/datasets/git/mailinfo.c:1137:10: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        len = strlen(sp);
                              ^
/datasets/git/mailinfo.c:1138:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/mailinfo.c:1139:10: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        len = ep - sp;
                              ^
/datasets/git/mailinfo.c:1140:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(fout, "%s: %.*s\n", hdr, len, sp);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/mailinfo.c:1140:3: note: cast the expression to void to silence this warning
/datasets/git/mailinfo.c:1141:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ep)
                        ^
                         {
/datasets/git/mailinfo.c:1147:42: warning: parameter name 'mi' is too short, expected at least 3 characters [readability-identifier-length]
static void handle_info(struct mailinfo *mi)
                                         ^
/datasets/git/mailinfo.c:1149:17: warning: variable 'hdr' is not initialized [cppcoreguidelines-init-variables]
        struct strbuf *hdr;
                       ^
                           = NULL
/datasets/git/mailinfo.c:1150:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/mailinfo.c:1150:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/mailinfo.c:1152:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; header[i]; i++) {
        ^
/datasets/git/mailinfo.c:1154:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (mi->patch_lines && mi->s_hdr_data[i])
                                                         ^
                                                          {
/datasets/git/mailinfo.c:1156:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (mi->p_hdr_data[i])
                                           ^
                                            {
/datasets/git/mailinfo.c:1158:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/mailinfo.c:1175:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(mi->output, "Author: %s\n", mi->name.buf);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/mailinfo.c:1175:4: note: cast the expression to void to silence this warning
/datasets/git/mailinfo.c:1176:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(mi->output, "Email: %s\n", mi->email.buf);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/mailinfo.c:1176:4: note: cast the expression to void to silence this warning
/datasets/git/mailinfo.c:1179:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(mi->output, "%s: %s\n", header[i], hdr->buf);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/mailinfo.c:1179:4: note: cast the expression to void to silence this warning
/datasets/git/mailinfo.c:1182:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(mi->output, "\n");
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/mailinfo.c:1182:2: note: cast the expression to void to silence this warning
/datasets/git/mailinfo.c:1185:31: warning: parameter name 'mi' is too short, expected at least 3 characters [readability-identifier-length]
int mailinfo(struct mailinfo *mi, const char *msg, const char *patch)
                              ^
/datasets/git/mailinfo.c:1187:8: warning: variable 'cmitmsg' is not initialized [cppcoreguidelines-init-variables]
        FILE *cmitmsg;
              ^
                      = NULL
/datasets/git/mailinfo.c:1188:6: warning: variable 'peek' is not initialized [cppcoreguidelines-init-variables]
        int peek;
            ^
                 = 0
/datasets/git/mailinfo.c:1199:3: warning: the value returned by this function should be used [cert-err33-c]
                fclose(cmitmsg);
                ^~~~~~~~~~~~~~~
/datasets/git/mailinfo.c:1199:3: note: cast the expression to void to silence this warning
/datasets/git/mailinfo.c:1203:43: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        mi->p_hdr_data = xcalloc(MAX_HDR_PARSED, sizeof(*(mi->p_hdr_data)));
                                                 ^
/datasets/git/mailinfo.c:1204:43: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        mi->s_hdr_data = xcalloc(MAX_HDR_PARSED, sizeof(*(mi->s_hdr_data)));
                                                 ^
/datasets/git/mailinfo.c:1206:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        do {
        ^
/datasets/git/mailinfo.c:1209:4: warning: the value returned by this function should be used [cert-err33-c]
                        fclose(cmitmsg);
                        ^~~~~~~~~~~~~~~
/datasets/git/mailinfo.c:1209:4: note: cast the expression to void to silence this warning
/datasets/git/mailinfo.c:1212:11: warning: backward branch (do loop) is ID-dependent due to variable reference to 'peek' and may cause performance degradation [altera-id-dependent-backward-branch]
        } while (isspace(peek));
                 ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^
/datasets/git/./git-compat-util.h:1215:29: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                            ^
/datasets/git/mailinfo.c:1212:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        } while (isspace(peek));
                 ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/mailinfo.c:1213:2: warning: the value returned by this function should be used [cert-err33-c]
        ungetc(peek, mi->input);
        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/mailinfo.c:1213:2: note: cast the expression to void to silence this warning
/datasets/git/mailinfo.c:1216:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (read_one_header_line(&line, mi->input))
        ^
/datasets/git/mailinfo.c:1216:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'line' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (read_one_header_line(&line, mi->input))
               ^
/datasets/git/mailinfo.c:1216:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (read_one_header_line(&line, mi->input))
                                                      ^
                                                       {
/datasets/git/mailinfo.c:1220:2: warning: the value returned by this function should be used [cert-err33-c]
        fwrite(mi->log_message.buf, 1, mi->log_message.len, cmitmsg);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/mailinfo.c:1220:2: note: cast the expression to void to silence this warning
/datasets/git/mailinfo.c:1221:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(cmitmsg);
        ^~~~~~~~~~~~~~~
/datasets/git/mailinfo.c:1221:2: note: cast the expression to void to silence this warning
/datasets/git/mailinfo.c:1222:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(mi->patchfile);
        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/mailinfo.c:1222:2: note: cast the expression to void to silence this warning
/datasets/git/mailinfo.c:1188:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int peek;
        ^
/datasets/git/mailinfo.c:1231:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(actionstr, "nowarn"))
                                         ^
                                          {
/datasets/git/mailinfo.c:1233:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(actionstr, "warn"))
                                            ^
                                             {
/datasets/git/mailinfo.c:1235:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(actionstr, "strip"))
                                             ^
                                              {
/datasets/git/mailinfo.c:1237:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/mailinfo.c:1244:19: warning: variable name 'mi' is too short, expected at least 3 characters [readability-identifier-length]
        struct mailinfo *mi = mi_;
                         ^
/datasets/git/mailinfo.c:1246:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!starts_with(var, "mailinfo."))
                                           ^
                                            {
/datasets/git/mailinfo.c:1253:67: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (mailinfo_parse_quoted_cr_action(value, &mi->quoted_cr) != 0)
                                                                                ^
                                                                                 {
/datasets/git/mailinfo.c:1261:38: warning: parameter name 'mi' is too short, expected at least 3 characters [readability-identifier-length]
void setup_mailinfo(struct mailinfo *mi)
                                     ^
/datasets/git/mailinfo.c:1263:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(mi, 0, sizeof(*mi));
        ^~~~~~
/datasets/git/mailinfo.c:1263:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(mi, 0, sizeof(*mi));
        ^~~~~~
/datasets/git/mailinfo.c:1276:38: warning: parameter name 'mi' is too short, expected at least 3 characters [readability-identifier-length]
void clear_mailinfo(struct mailinfo *mi)
                                     ^
./mailinfo.h:31:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        struct strbuf **content_top;
        ^
/datasets/git/mailinfo.c:1287:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (mi->content < mi->content_top) {
        ^
/datasets/git/mailinfo.c:1287:9: warning: backward branch (while loop) is ID-dependent due to member reference to 'content_top' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (mi->content < mi->content_top) {
               ^
/datasets/git/mailmap.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "string-list.h"
^        ~~~~~~~~~~~~~~~
         "mailmap.h"
/datasets/git/mailmap.c:13:49: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static inline const char *debug_str(const char *s) { return s; }
                                                ^
/datasets/git/mailmap.c:16:13: warning: variable 'git_mailmap_file' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
const char *git_mailmap_file;
            ^
/datasets/git/mailmap.c:17:13: warning: variable 'git_mailmap_blob' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
const char *git_mailmap_blob;
            ^
/datasets/git/mailmap.c:19:8: warning: accessing fields in struct 'mailmap_info' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct mailmap_info {
       ^
/datasets/git/mailmap.c:19:8: note: use "__attribute__((aligned(16)))" to align struct 'mailmap_info' to 16 bytes
/datasets/git/mailmap.c:24:8: warning: accessing fields in struct 'mailmap_entry' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct mailmap_entry {
       ^
/datasets/git/mailmap.c:24:8: note: use "__attribute__((aligned(64)))" to align struct 'mailmap_entry' to 64 bytes
/datasets/git/mailmap.c:33:37: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static void free_mailmap_info(void *p, const char *s)
                                    ^
/datasets/git/mailmap.c:33:52: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void free_mailmap_info(void *p, const char *s)
                                                   ^
/datasets/git/mailmap.c:35:23: warning: variable name 'mi' is too short, expected at least 3 characters [readability-identifier-length]
        struct mailmap_info *mi = (struct mailmap_info *)p;
                             ^
/datasets/git/mailmap.c:43:38: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static void free_mailmap_entry(void *p, const char *s)
                                     ^
/datasets/git/mailmap.c:43:53: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void free_mailmap_entry(void *p, const char *s)
                                                    ^
/datasets/git/mailmap.c:45:24: warning: variable name 'me' is too short, expected at least 3 characters [readability-identifier-length]
        struct mailmap_entry *me = (struct mailmap_entry *)p;
                              ^
/datasets/git/mailmap.c:68:36: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static int namemap_cmp(const char *a, const char *b)
                                   ^
/datasets/git/mailmap.c:68:51: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static int namemap_cmp(const char *a, const char *b)
                                                  ^
/datasets/git/mailmap.c:77:24: warning: variable 'me' is not initialized [cppcoreguidelines-init-variables]
        struct mailmap_entry *me;
                              ^
                                 = NULL
/datasets/git/mailmap.c:77:24: warning: variable name 'me' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/mailmap.c:78:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/mailmap.c:108:24: warning: variable name 'mi' is too short, expected at least 3 characters [readability-identifier-length]
                struct mailmap_info *mi = xcalloc(1, sizeof(struct mailmap_info));
                                     ^
/datasets/git/mailmap.c:123:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *left, *right, *nstart, *nend;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/mailmap.c:123:8: warning: variable 'left' is not initialized [cppcoreguidelines-init-variables]
        char *left, *right, *nstart, *nend;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/mailmap.c:123:15: warning: variable 'right' is not initialized [cppcoreguidelines-init-variables]
        char *left, *right, *nstart, *nend;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/mailmap.c:123:23: warning: variable 'nstart' is not initialized [cppcoreguidelines-init-variables]
        char *left, *right, *nstart, *nend;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/mailmap.c:123:32: warning: variable 'nend' is not initialized [cppcoreguidelines-init-variables]
        char *left, *right, *nstart, *nend;
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/mailmap.c:126:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if (!(left = strchr(buffer, '<')))
              ^
/datasets/git/mailmap.c:126:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/mailmap.c:126:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/mailmap.c:126:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(left = strchr(buffer, '<')))
                                          ^
                                           {
/datasets/git/mailmap.c:128:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if (!(right = strchr(left + 1, '>')))
              ^
/datasets/git/mailmap.c:128:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/mailmap.c:128:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/mailmap.c:128:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(right = strchr(left + 1, '>')))
                                             ^
                                              {
/datasets/git/mailmap.c:130:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!allow_empty_email && (left+1 == right))
                                                    ^
                                                     {
/datasets/git/mailmap.c:135:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (isspace(*nstart) && nstart < left)
        ^
/datasets/git/mailmap.c:135:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'nstart' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (isspace(*nstart) && nstart < left)
               ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^
/datasets/git/./git-compat-util.h:1215:29: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                            ^
/datasets/git/mailmap.c:135:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        while (isspace(*nstart) && nstart < left)
               ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/mailmap.c:135:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (isspace(*nstart) && nstart < left)
                                                 ^
                                                  {
/datasets/git/mailmap.c:138:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (nend > nstart && isspace(*nend))
        ^
/datasets/git/mailmap.c:138:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'nend' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (nend > nstart && isspace(*nend))
               ^
/datasets/git/mailmap.c:138:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        while (nend > nstart && isspace(*nend))
                                ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/mailmap.c:138:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (nend > nstart && isspace(*nend))
                                               ^
                                                {
/datasets/git/mailmap.c:151:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *name1 = NULL, *email1 = NULL, *name2 = NULL, *email2 = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/mailmap.c:153:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (buffer[0] == '#')
                             ^
                              {
/datasets/git/mailmap.c:156:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if ((name2 = parse_name_and_email(buffer, &name1, &email1, 0)))
             ^
/datasets/git/mailmap.c:156:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/mailmap.c:156:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/mailmap.c:156:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((name2 = parse_name_and_email(buffer, &name1, &email1, 0)))
                                                                       ^
                                                                        {
/datasets/git/mailmap.c:159:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (email1)
                   ^
                    {
/datasets/git/mailmap.c:164:1: warning: replace macro with enum [modernize-macro-to-enum]
#define MAILMAP_NOFOLLOW (1<<0)
^~~~~~~~
                         =
/datasets/git/mailmap.c:164:9: warning: macro 'MAILMAP_NOFOLLOW' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define MAILMAP_NOFOLLOW (1<<0)
        ^
/datasets/git/mailmap.c:169:14: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        char buffer[1024];
                    ^
/datasets/git/mailmap.c:170:8: warning: variable 'f' is not initialized [cppcoreguidelines-init-variables]
        FILE *f;
              ^
                = NULL
/datasets/git/mailmap.c:170:8: warning: variable name 'f' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/mailmap.c:171:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/mailmap.c:171:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/mailmap.c:173:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!filename)
                      ^
                       {
/datasets/git/mailmap.c:176:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & MAILMAP_NOFOLLOW)
            ^
/datasets/git/mailmap.c:176:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & MAILMAP_NOFOLLOW)
                    ^
/datasets/git/mailmap.c:164:27: note: expanded from macro 'MAILMAP_NOFOLLOW'
#define MAILMAP_NOFOLLOW (1<<0)
                          ^
/datasets/git/mailmap.c:176:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & MAILMAP_NOFOLLOW)
                                     ^
                                      {
/datasets/git/mailmap.c:178:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/mailmap.c:179:31: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
                fd = open(filename, O_RDONLY);
                                            ^
                                             | O_CLOEXEC
/datasets/git/mailmap.c:182:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (errno == ENOENT)
                                    ^
                                     {
/datasets/git/mailmap.c:188:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (fgets(buffer, sizeof(buffer), f) != NULL)
        ^
/datasets/git/mailmap.c:188:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'f' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (fgets(buffer, sizeof(buffer), f) != NULL)
               ^
/datasets/git/mailmap.c:188:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (fgets(buffer, sizeof(buffer), f) != NULL)
                                                        ^
                                                         {
/datasets/git/mailmap.c:190:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(f);
        ^~~~~~~~~
/datasets/git/mailmap.c:190:2: note: cast the expression to void to silence this warning
/datasets/git/mailmap.c:196:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*buf) {
        ^
/datasets/git/mailmap.c:196:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'buf' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (*buf) {
               ^
/datasets/git/mailmap.c:199:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*end)
                         ^
                          {
/datasets/git/mailmap.c:210:8: warning: variable 'buf' is not initialized [cppcoreguidelines-init-variables]
        char *buf;
              ^
                  = NULL
/datasets/git/mailmap.c:211:16: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size;
                      ^
                           = 0
/datasets/git/mailmap.c:212:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/mailmap.c:214:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!name)
                  ^
                   {
/datasets/git/mailmap.c:216:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid(name, &oid) < 0)
                                    ^
                                     {
/datasets/git/mailmap.c:220:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!buf)
                 ^
                  {
/datasets/git/mailmap.c:222:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (type != OBJ_BLOB)
                             ^
                              {
/datasets/git/mailmap.c:238:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!git_mailmap_blob && is_bare_repository())
                                                      ^
                                                       {
/datasets/git/mailmap.c:241:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!startup_info->have_repository || !is_bare_repository())
                                                                    ^
                                                                     {
/datasets/git/mailmap.c:242:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                err |= read_mailmap_file(map, ".mailmap",
                ^~~
/datasets/git/mailmap.c:244:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                         MAILMAP_NOFOLLOW : 0);
                                         ^
/datasets/git/mailmap.c:164:27: note: expanded from macro 'MAILMAP_NOFOLLOW'
#define MAILMAP_NOFOLLOW (1<<0)
                          ^
/datasets/git/mailmap.c:245:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (startup_info->have_repository)
                                          ^
                                           {
/datasets/git/mailmap.c:246:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                err |= read_mailmap_blob(map, git_mailmap_blob);
                ^~~
/datasets/git/mailmap.c:267:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int i = string_list_find_insert_index(map, string, 1);
        ^
/datasets/git/mailmap.c:247:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        err |= read_mailmap_file(map, git_mailmap_file, 0);
        ^~~
/datasets/git/mailmap.c:267:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = string_list_find_insert_index(map, string, 1);
            ^
/datasets/git/mailmap.c:271:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!string[len])
                                 ^
                                  {
/datasets/git/mailmap.c:291:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (0 <= --i && i < map->nr) {
        ^
/datasets/git/mailmap.c:291:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (0 <= --i && i < map->nr) {
               ^
/datasets/git/mailmap.c:293:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cmp < 0)
                            ^
                             {
/datasets/git/mailmap.c:299:3: warning: do not use 'else' after 'break' [llvm-else-after-return,readability-else-after-return]
                else if (!cmp && !map->items[i].string[len])
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/mailmap.c:299:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!cmp && !map->items[i].string[len])
                                                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/mailmap.c:315:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/mailmap.c:316:24: warning: variable 'me' is not initialized [cppcoreguidelines-init-variables]
        struct mailmap_entry *me;
                              ^
                                 = NULL
/datasets/git/mailmap.c:316:24: warning: variable name 'me' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/mailmap.c:331:29: warning: variable 'subitem' is not initialized [cppcoreguidelines-init-variables]
                        struct string_list_item *subitem;
                                                 ^
                                                         = NULL
/datasets/git/mailmap.c:333:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (subitem)
                                    ^
                                     {
/datasets/git/mailmap.c:338:24: warning: variable name 'mi' is too short, expected at least 3 characters [readability-identifier-length]
                struct mailmap_info *mi = (struct mailmap_info *)item->util;
                                     ^
/datasets/git/match-trees.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "tree.h"
^        ~~~~~~~~
         "object-store.h"
/datasets/git/match-trees.c:8:6: warning: variable 'score' is not initialized [cppcoreguidelines-init-variables]
        int score;
            ^
                  = 0
/datasets/git/match-trees.c:10:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (S_ISDIR(mode))
                          ^
                           {
/datasets/git/match-trees.c:11:12: warning: 1000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                score = -1000;
                         ^
/datasets/git/match-trees.c:12:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (S_ISLNK(mode))
                               ^
                                {
/datasets/git/match-trees.c:13:12: warning: 500 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                score = -500;
                         ^
/datasets/git/match-trees.c:14:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/match-trees.c:15:12: warning: 50 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                score = -50;
                         ^
/datasets/git/match-trees.c:21:6: warning: variable 'score' is not initialized [cppcoreguidelines-init-variables]
        int score;
            ^
                  = 0
/datasets/git/match-trees.c:23:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (S_ISDIR(mode1) != S_ISDIR(mode2))
                                             ^
                                              {
/datasets/git/match-trees.c:24:12: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                score = -100;
                         ^
/datasets/git/match-trees.c:25:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (S_ISLNK(mode1) != S_ISLNK(mode2))
                                                  ^
                                                   {
/datasets/git/match-trees.c:26:12: warning: 50 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                score = -50;
                         ^
/datasets/git/match-trees.c:27:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/match-trees.c:28:12: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                score = -5;
                         ^
/datasets/git/match-trees.c:34:6: warning: variable 'score' is not initialized [cppcoreguidelines-init-variables]
        int score;
            ^
                  = 0
/datasets/git/match-trees.c:37:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (S_ISDIR(mode1) != S_ISDIR(mode2))
                                             ^
                                              {
/datasets/git/match-trees.c:38:12: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                score = -100;
                         ^
/datasets/git/match-trees.c:39:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (S_ISLNK(mode1) != S_ISLNK(mode2))
                                                  ^
                                                   {
/datasets/git/match-trees.c:40:12: warning: 50 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                score = -50;
                         ^
/datasets/git/match-trees.c:42:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (S_ISDIR(mode1))
                                ^
                                 {
/datasets/git/match-trees.c:43:11: warning: 1000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                score = 1000;
                        ^
/datasets/git/match-trees.c:44:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (S_ISLNK(mode1))
                                ^
                                 {
/datasets/git/match-trees.c:45:11: warning: 500 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                score = 500;
                        ^
/datasets/git/match-trees.c:46:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/match-trees.c:47:11: warning: 250 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                score = 250;
                        ^
/datasets/git/match-trees.c:54:8: warning: variable 'buffer' is not initialized [cppcoreguidelines-init-variables]
        void *buffer;
              ^
                     = NULL
/datasets/git/match-trees.c:55:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/match-trees.c:56:16: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size;
                      ^
                           = 0
/datasets/git/match-trees.c:59:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!buffer)
                    ^
                     {
/datasets/git/match-trees.c:61:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (type != OBJ_TREE)
                             ^
                              {
/datasets/git/match-trees.c:67:63: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static int base_name_entries_compare(const struct name_entry *a,
                                                              ^
/datasets/git/match-trees.c:68:35: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
                                     const struct name_entry *b)
                                                              ^
/datasets/git/match-trees.c:70:55: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return base_name_compare(a->path, tree_entry_len(a), a->mode,
                                                             ^
/datasets/git/match-trees.c:71:34: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                 b->path, tree_entry_len(b), b->mode);
                                                             ^
/datasets/git/match-trees.c:85:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/match-trees.c:86:7: warning: variable 'cmp' is not initialized [cppcoreguidelines-init-variables]
                int cmp;
                    ^
                        = 0
/datasets/git/match-trees.c:88:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (one.size && two.size)
                                         ^
                                          {
/datasets/git/match-trees.c:90:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (one.size)
                                  ^
                                   {
/datasets/git/match-trees.c:93:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (two.size)
                                  ^
                                   {
/datasets/git/match-trees.c:96:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/match-trees.c:130:13: warning: function 'match_trees' is within a recursive call chain [misc-no-recursion]
static void match_trees(const struct object_id *hash1,
            ^
/datasets/git/match-trees.c:130:13: note: example recursive call chain, starting from function 'match_trees'
/datasets/git/match-trees.c:157:4: note: Frame #1: function 'match_trees' calls function 'match_trees' here:
                        match_trees(elem, hash2, best_score, best_match,
                        ^
/datasets/git/match-trees.c:157:4: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/match-trees.c:140:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (one.size) {
        ^
/datasets/git/match-trees.c:141:15: warning: variable 'path' is not initialized [cppcoreguidelines-init-variables]
                const char *path;
                            ^
                                 = NULL
/datasets/git/match-trees.c:142:27: warning: variable 'elem' is not initialized [cppcoreguidelines-init-variables]
                const struct object_id *elem;
                                        ^
                                             = NULL
/datasets/git/match-trees.c:143:18: warning: variable 'mode' is not initialized [cppcoreguidelines-init-variables]
                unsigned short mode;
                               ^
                                    = 0
/datasets/git/match-trees.c:144:7: warning: variable 'score' is not initialized [cppcoreguidelines-init-variables]
                int score;
                    ^
                          = 0
/datasets/git/match-trees.c:147:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!S_ISDIR(mode))
                                   ^
                                    {
/datasets/git/match-trees.c:172:12: warning: function 'splice_tree' is within a recursive call chain [misc-no-recursion]
static int splice_tree(const struct object_id *oid1, const char *prefix,
           ^
/datasets/git/match-trees.c:172:12: note: example recursive call chain, starting from function 'splice_tree'
/datasets/git/match-trees.c:230:12: note: Frame #1: function 'splice_tree' calls function 'splice_tree' here:
                status = splice_tree(&tree_oid, subpath, oid2, &subtree);
                         ^
/datasets/git/match-trees.c:230:12: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/match-trees.c:175:8: warning: variable 'subpath' is not initialized [cppcoreguidelines-init-variables]
        char *subpath;
              ^
                      = NULL
/datasets/git/match-trees.c:176:6: warning: variable 'toplen' is not initialized [cppcoreguidelines-init-variables]
        int toplen;
            ^
                   = 0
/datasets/git/match-trees.c:177:8: warning: variable 'buf' is not initialized [cppcoreguidelines-init-variables]
        char *buf;
              ^
                  = NULL
/datasets/git/match-trees.c:178:16: warning: variable 'sz' is not initialized [cppcoreguidelines-init-variables]
        unsigned long sz;
                      ^
                         = 0
/datasets/git/match-trees.c:178:16: warning: variable name 'sz' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/match-trees.c:180:17: warning: variable 'rewrite_here' is not initialized [cppcoreguidelines-init-variables]
        unsigned char *rewrite_here;
                       ^
                                    = NULL
/datasets/git/match-trees.c:181:26: warning: variable 'rewrite_with' is not initialized [cppcoreguidelines-init-variables]
        const struct object_id *rewrite_with;
                                ^
                                             = NULL
/datasets/git/match-trees.c:183:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/match-trees.c:184:6: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int status;
            ^
                   = 0
/datasets/git/match-trees.c:187:11: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        toplen = subpath - prefix;
                 ^
/datasets/git/match-trees.c:188:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*subpath)
                     ^
                      {
/datasets/git/match-trees.c:192:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!buf)
                 ^
                  {
/datasets/git/match-trees.c:197:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (desc.size) {
        ^
/datasets/git/match-trees.c:198:15: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
                const char *name;
                            ^
                                 = NULL
/datasets/git/match-trees.c:199:18: warning: variable 'mode' is not initialized [cppcoreguidelines-init-variables]
                unsigned short mode;
                               ^
                                    = 0
/datasets/git/match-trees.c:204:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!S_ISDIR(mode))
                                           ^
                                            {
/datasets/git/match-trees.c:224:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!rewrite_here)
                          ^
                           {
/datasets/git/match-trees.c:231:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (status)
                           ^
                            {
/datasets/git/match-trees.c:251:36: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void shift_tree(struct repository *r,
                                   ^
/datasets/git/match-trees.c:257:8: warning: variable 'add_prefix' is not initialized [cppcoreguidelines-init-variables]
        char *add_prefix;
              ^
                         = NULL
/datasets/git/match-trees.c:258:8: warning: variable 'del_prefix' is not initialized [cppcoreguidelines-init-variables]
        char *del_prefix;
              ^
                         = NULL
/datasets/git/match-trees.c:259:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int add_score, del_score;
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/match-trees.c:259:6: warning: variable 'add_score' is not initialized [cppcoreguidelines-init-variables]
        int add_score, del_score;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/match-trees.c:259:17: warning: variable 'del_score' is not initialized [cppcoreguidelines-init-variables]
        int add_score, del_score;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/match-trees.c:265:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!depth_limit)
                         ^
                          {
/datasets/git/match-trees.c:282:2: warning: 1st argument 'hash2' (passed to 'hash1') looks like it might be swapped with the 2nd, 'hash1' (passed to 'hash2') [readability-suspicious-call-argument]
        match_trees(hash2, hash1, &del_score, &del_prefix, "", depth_limit);
        ^           ~~~~~  ~~~~~
/datasets/git/match-trees.c:130:13: note: in the call to 'match_trees', declared here
static void match_trees(const struct object_id *hash1,
            ^                                   ~~~~~
/datasets/git/match-trees.c:289:18: warning: variable 'mode' is not initialized [cppcoreguidelines-init-variables]
                unsigned short mode;
                               ^
                                    = 0
/datasets/git/match-trees.c:291:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!*del_prefix)
                                 ^
                                  {
/datasets/git/match-trees.c:294:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (get_tree_entry(r, hash2, del_prefix, shifted, &mode))
                                                                         ^
                                                                          {
/datasets/git/match-trees.c:300:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!*add_prefix)
                         ^
                          {
/datasets/git/match-trees.c:311:39: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void shift_tree_by(struct repository *r,
                                      ^
/datasets/git/match-trees.c:317:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct object_id sub1, sub2;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/match-trees.c:318:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned short mode1, mode2;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/match-trees.c:318:17: warning: variable 'mode1' is not initialized [cppcoreguidelines-init-variables]
        unsigned short mode1, mode2;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/match-trees.c:318:24: warning: variable 'mode2' is not initialized [cppcoreguidelines-init-variables]
        unsigned short mode1, mode2;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/match-trees.c:323:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            S_ISDIR(mode1))
                           ^
                            {
/datasets/git/match-trees.c:324:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                candidate |= 1;
                ^            ~
/datasets/git/match-trees.c:328:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            S_ISDIR(mode2))
                           ^
                            {
/datasets/git/match-trees.c:329:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                candidate |= 2;
                ^            ~
/datasets/git/match-trees.c:334:7: warning: variable 'score' is not initialized [cppcoreguidelines-init-variables]
                int score;
                    ^
                          = 0
/datasets/git/match-trees.c:343:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (score > best_score)
                                       ^
                                        {
/datasets/git/match-trees.c:353:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (candidate == 1)
                           ^
                            {
/datasets/git/match-trees.c:359:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/mem-pool.c:21:8: warning: accessing fields in struct 'git_max_alignment' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct git_max_alignment {
       ^
/datasets/git/mem-pool.c:21:8: note: use "__attribute__((aligned(16)))" to align struct 'git_max_alignment' to 16 bytes
/datasets/git/mem-pool.c:39:19: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct mp_block *p;
                         ^
                           = NULL
/datasets/git/mem-pool.c:39:19: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/mem-pool.c:60:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(pool, 0, sizeof(*pool));
        ^~~~~~
/datasets/git/mem-pool.c:60:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(pool, 0, sizeof(*pool));
        ^~~~~~
/datasets/git/mem-pool.c:61:22: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        pool->block_alloc = BLOCK_GROWTH_SIZE;
                            ^
/datasets/git/mem-pool.c:8:28: note: expanded from macro 'BLOCK_GROWTH_SIZE'
#define BLOCK_GROWTH_SIZE (1024 * 1024 - sizeof(struct mp_block))
                           ^
/datasets/git/mem-pool.c:61:22: note: make conversion explicit to silence this warning
        pool->block_alloc = BLOCK_GROWTH_SIZE;
                            ^
/datasets/git/mem-pool.c:8:28: note: expanded from macro 'BLOCK_GROWTH_SIZE'
#define BLOCK_GROWTH_SIZE (1024 * 1024 - sizeof(struct mp_block))
                           ^~~~~~~~~~~
/datasets/git/mem-pool.c:61:22: note: perform multiplication in a wider type
        pool->block_alloc = BLOCK_GROWTH_SIZE;
                            ^
/datasets/git/mem-pool.c:8:28: note: expanded from macro 'BLOCK_GROWTH_SIZE'
#define BLOCK_GROWTH_SIZE (1024 * 1024 - sizeof(struct mp_block))
                           ^~~~
/datasets/git/mem-pool.c:63:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (initial_size > 0)
                             ^
                              {
/datasets/git/mem-pool.c:69:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct mp_block *block, *block_to_free;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/mem-pool.c:69:2: note: inferred assignment of ID-dependent value from ID-dependent member mp_block [altera-id-dependent-backward-branch]
/datasets/git/mem-pool.c:69:19: warning: variable 'block' is not initialized [cppcoreguidelines-init-variables]
        struct mp_block *block, *block_to_free;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/mem-pool.c:69:27: warning: variable 'block_to_free' is not initialized [cppcoreguidelines-init-variables]
        struct mp_block *block, *block_to_free;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/mem-pool.c:72:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (block)
        ^
/datasets/git/mem-pool.c:72:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'block' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (block)
               ^
/datasets/git/mem-pool.c:77:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (invalidate_memory)
                                      ^
                                       {
/datasets/git/mem-pool.c:78:4: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memset(block_to_free->space, 0xDD, ((char *)block_to_free->end) - ((char *)block_to_free->space));
                        ^~~~~~
/datasets/git/mem-pool.c:78:4: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                        memset(block_to_free->space, 0xDD, ((char *)block_to_free->end) - ((char *)block_to_free->space));
                        ^~~~~~
/datasets/git/mem-pool.c:78:33: warning: 0xDD is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        memset(block_to_free->space, 0xDD, ((char *)block_to_free->end) - ((char *)block_to_free->space));
                                                     ^
/datasets/git/mem-pool.c:78:40: warning: redundant cast to the same type [google-readability-casting]
                        memset(block_to_free->space, 0xDD, ((char *)block_to_free->end) - ((char *)block_to_free->space));
                                                            ^~~~~~~~
/datasets/git/mem-pool.c:89:19: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        struct mp_block *p = NULL;
                         ^
/datasets/git/mem-pool.c:90:8: warning: variable 'r' is not initialized [cppcoreguidelines-init-variables]
        void *r;
              ^
                = NULL
/datasets/git/mem-pool.c:90:8: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/mem-pool.c:93:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len & (GIT_MAX_ALIGNMENT - 1))
                                          ^
                                           {
/datasets/git/mem-pool.c:97:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            pool->mp_block->end - pool->mp_block->next_free >= len)
                                                                   ^
                                                                    {
/datasets/git/mem-pool.c:101:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (len >= (pool->block_alloc / 2))
                                                   ^
                                                    {
/datasets/git/mem-pool.c:115:8: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        void *r = mem_pool_alloc(pool, len);
              ^
/datasets/git/mem-pool.c:116:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(r, 0, len);
        ^~~~~~
/datasets/git/mem-pool.c:116:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(r, 0, len);
        ^~~~~~
/datasets/git/mem-pool.c:125:9: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        return memcpy(ret, str, len);
               ^~~~~~
/datasets/git/mem-pool.c:125:9: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        return memcpy(ret, str, len);
               ^~~~~~
/datasets/git/mem-pool.c:130:8: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        char *p = memchr(str, '\0', len);
              ^
/datasets/git/mem-pool.c:135:9: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        return memcpy(ret, str, actual_len);
               ^~~~~~
/datasets/git/mem-pool.c:135:9: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        return memcpy(ret, str, actual_len);
               ^~~~~~
/datasets/git/mem-pool.c:140:19: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct mp_block *p;
                         ^
                           = NULL
/datasets/git/mem-pool.c:140:19: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/mem-pool.c:143:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = pool->mp_block; p; p = p->next_block)
        ^
/datasets/git/mem-pool.c:143:27: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = pool->mp_block; p; p = p->next_block)
                                 ^
/datasets/git/mem-pool.c:143:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (p = pool->mp_block; p; p = p->next_block)
                                                      ^
                                                       {
/datasets/git/mem-pool.c:145:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    (mem < ((void *)p->end)))
                                             ^
                                              {
/datasets/git/mem-pool.c:153:19: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct mp_block *p;
                         ^
                           = NULL
/datasets/git/mem-pool.c:153:19: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/mem-pool.c:162:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (p->next_block)
                ^
/datasets/git/mem-pool.c:162:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (p->next_block)
                       ^
/datasets/git/mem-pool.c:162:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (p->next_block)
                                     ^
                                      {
/datasets/git/merge-blobs.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "run-command.h"
^        ~~~~~~~~~~~~~~~
         "blob.h"
/datasets/git/merge-blobs.c:9:39: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
static int fill_mmfile_blob(mmfile_t *f, struct blob *obj)
                                      ^
/datasets/git/merge-blobs.c:11:8: warning: variable 'buf' is not initialized [cppcoreguidelines-init-variables]
        void *buf;
              ^
                  = NULL
/datasets/git/merge-blobs.c:12:16: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size;
                      ^
                           = 0
/datasets/git/merge-blobs.c:13:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/merge-blobs.c:16:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!buf)
                 ^
                  {
/datasets/git/merge-blobs.c:23:12: warning: narrowing conversion from 'unsigned long' to signed type 'long' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        f->size = size;
                  ^
/datasets/git/merge-blobs.c:27:35: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
static void free_mmfile(mmfile_t *f)
                                  ^
/datasets/git/merge-blobs.c:39:23: warning: variable 'merge_status' is not initialized [cppcoreguidelines-init-variables]
        enum ll_merge_result merge_status;
                             ^
/datasets/git/merge-blobs.c:51:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (merge_status < 0)
                             ^
                              {
/datasets/git/merge-blobs.c:53:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (merge_status == LL_MERGE_BINARY_CONFLICT)
                                                     ^
                                                      {
/datasets/git/merge-blobs.c:66:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        mmfile_t f1, f2, common;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-blobs.c:66:11: warning: variable name 'f1' is too short, expected at least 3 characters [readability-identifier-length]
        mmfile_t f1, f2, common;
                 ^
/datasets/git/merge-blobs.c:66:15: warning: variable name 'f2' is too short, expected at least 3 characters [readability-identifier-length]
        mmfile_t f1, f2, common;
                     ^
/datasets/git/merge-blobs.c:76:20: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
                enum object_type type;
                                 ^
/datasets/git/merge-blobs.c:77:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (base)
                         ^
                          {
/datasets/git/merge-blobs.c:79:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!our)
                         ^
                          {
/datasets/git/merge-blobs.c:84:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fill_mmfile_blob(&f1, our) < 0)
                                           ^
                                            {
/datasets/git/merge-blobs.c:86:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fill_mmfile_blob(&f2, their) < 0)
                                             ^
                                              {
/datasets/git/merge-blobs.c:90:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fill_mmfile_blob(&common, base) < 0)
                                                        ^
                                                         {
/datasets/git/merge-ort-wrappers.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "merge-ort.h"
^        ~~~~~~~~~~~~~
         "merge-ort-wrappers.h"
/datasets/git/merge-ort-wrappers.c:10:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/merge-ort-wrappers.c:29:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unclean(opt, head))
                               ^
                                {
/datasets/git/merge-ort-wrappers.c:37:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&result, 0, sizeof(result));
        ^~~~~~
/datasets/git/merge-ort-wrappers.c:37:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&result, 0, sizeof(result));
        ^~~~~~
/datasets/git/merge-ort-wrappers.c:53:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unclean(opt, head))
                               ^
                                {
/datasets/git/merge-ort-wrappers.c:56:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&tmp, 0, sizeof(tmp));
        ^~~~~~
/datasets/git/merge-ort-wrappers.c:56:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&tmp, 0, sizeof(tmp));
        ^~~~~~
/datasets/git/merge-ort.c:24:1: warning: #includes are not sorted properly [llvm-include-order]
#include "commit.h"
^        ~~~~~~~~~~
         "commit-reach.h"
/datasets/git/merge-ort.c:58:17: warning: variable 'RESULT_INITIALIZED' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned RESULT_INITIALIZED = 0x1abe11ed; /* unlikely accidental value */
                ^
/datasets/git/merge-ort.c:58:38: warning: 0x1abe11ed is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
static unsigned RESULT_INITIALIZED = 0x1abe11ed; /* unlikely accidental value */
                                     ^
/datasets/git/merge-ort.c:60:8: warning: accessing fields in struct 'traversal_callback_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct traversal_callback_data {
       ^
/datasets/git/merge-ort.c:60:8: note: use "__attribute__((aligned(128)))" to align struct 'traversal_callback_data' to 128 bytes
/datasets/git/merge-ort.c:66:8: warning: accessing fields in struct 'deferred_traversal_data' is inefficient due to padding; only needs 140 bytes but is using 144 bytes [altera-struct-pack-align]
struct deferred_traversal_data {
       ^
/datasets/git/merge-ort.c:66:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'deferred_traversal_data'
/datasets/git/merge-ort.c:66:8: warning: accessing fields in struct 'deferred_traversal_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct deferred_traversal_data {
       ^
/datasets/git/merge-ort.c:66:8: note: use "__attribute__((aligned(128)))" to align struct 'deferred_traversal_data' to 128 bytes
/datasets/git/merge-ort.c:113:8: warning: accessing fields in struct 'rename_info' is inefficient due to padding; only needs 1936 bytes but is using 1944 bytes [altera-struct-pack-align]
struct rename_info {
       ^
/datasets/git/merge-ort.c:113:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'rename_info'
/datasets/git/merge-ort.c:113:8: warning: accessing fields in struct 'rename_info' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct rename_info {
       ^
/datasets/git/merge-ort.c:113:8: note: use "__attribute__((aligned(128)))" to align struct 'rename_info' to 128 bytes
/datasets/git/merge-ort.c:295:8: warning: accessing fields in struct 'merge_options_internal' is inefficient due to padding; only needs 2476 bytes but is using 2480 bytes [altera-struct-pack-align]
struct merge_options_internal {
       ^
/datasets/git/merge-ort.c:295:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'merge_options_internal'
/datasets/git/merge-ort.c:295:8: warning: accessing fields in struct 'merge_options_internal' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct merge_options_internal {
       ^
/datasets/git/merge-ort.c:295:8: note: use "__attribute__((aligned(128)))" to align struct 'merge_options_internal' to 128 bytes
/datasets/git/merge-ort.c:395:8: warning: accessing fields in struct 'conflicted_submodule_item' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct conflicted_submodule_item {
       ^
/datasets/git/merge-ort.c:395:8: note: use "__attribute__((aligned(16)))" to align struct 'conflicted_submodule_item' to 16 bytes
/datasets/git/merge-ort.c:408:8: warning: accessing fields in struct 'version_info' is inefficient due to padding; only needs 38 bytes but is using 40 bytes [altera-struct-pack-align]
struct version_info {
       ^
/datasets/git/merge-ort.c:408:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'version_info'
/datasets/git/merge-ort.c:408:8: warning: accessing fields in struct 'version_info' is inefficient due to poor alignment; currently aligned to 4 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct version_info {
       ^
/datasets/git/merge-ort.c:408:8: note: use "__attribute__((aligned(64)))" to align struct 'version_info' to 64 bytes
/datasets/git/merge-ort.c:413:8: warning: accessing fields in struct 'merged_info' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct merged_info {
       ^
/datasets/git/merge-ort.c:413:8: note: use "__attribute__((aligned(64)))" to align struct 'merged_info' to 64 bytes
/datasets/git/merge-ort.c:444:8: warning: accessing fields in struct 'conflict_info' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct conflict_info {
       ^
/datasets/git/merge-ort.c:444:8: note: use "__attribute__((aligned(128)))" to align struct 'conflict_info' to 128 bytes
/datasets/git/merge-ort.c:547:20: warning: variable 'type_short_descriptions' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *type_short_descriptions[] = {
                   ^
/datasets/git/merge-ort.c:591:8: warning: accessing fields in struct 'logical_conflict_info' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct logical_conflict_info {
       ^
/datasets/git/merge-ort.c:591:8: note: use "__attribute__((aligned(32)))" to align struct 'logical_conflict_info' to 32 bytes
/datasets/git/merge-ort.c:621:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct strmap_entry *entry;
        ^
/datasets/git/merge-ort.c:612:30: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                             ^
                             ( )
/datasets/git/merge-ort.c:612:37: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                                    ^
                                    ( )
/datasets/git/merge-ort.c:621:23: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
        struct strmap_entry *entry;
                             ^
                                   = NULL
/datasets/git/merge-ort.c:623:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        strmap_for_each_entry(map, &iter, entry) {
        ^
/datasets/git/./strmap.h:112:2: note: expanded from macro 'strmap_for_each_entry'
        hashmap_for_each_entry(&(mystrmap)->map, iter, var, ent)
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/merge-ort.c:623:36: warning: backward branch (for loop) is ID-dependent due to variable reference to 'entry' and may cause performance degradation [altera-id-dependent-backward-branch]
        strmap_for_each_entry(map, &iter, entry) {
                                          ^
/datasets/git/merge-ort.c:628:13: warning: function 'clear_or_reinit_internal_opts' has cognitive complexity of 29 (threshold 25) [readability-function-cognitive-complexity]
static void clear_or_reinit_internal_opts(struct merge_options_internal *opti,
            ^
/datasets/git/merge-ort.c:634:16: note: +1, including nesting penalty of 0, nesting level increased to 1
                reinitialize ? strmap_partial_clear : strmap_clear;
                             ^
/datasets/git/merge-ort.c:636:16: note: +1, including nesting penalty of 0, nesting level increased to 1
                reinitialize ? strintmap_partial_clear : strintmap_clear;
                             ^
/datasets/git/merge-ort.c:638:16: note: +1, including nesting penalty of 0, nesting level increased to 1
                reinitialize ? strset_partial_clear : strset_clear;
                             ^
/datasets/git/merge-ort.c:649:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opti->attr_index.cache_nr) /* true iff opt->renormalize */
        ^
/datasets/git/merge-ort.c:653:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = MERGE_SIDE1; i <= MERGE_SIDE2; ++i) {
        ^
/datasets/git/merge-ort.c:657:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!reinitialize)
                ^
/datasets/git/merge-ort.c:658:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        assert(renames->cached_pairs_valid_side == 0);
                        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:658:4: note: nesting level increased to 3
                        assert(renames->cached_pairs_valid_side == 0);
                        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:658:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        assert(renames->cached_pairs_valid_side == 0);
                        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:658:4: note: +1, nesting level increased to 4
                        assert(renames->cached_pairs_valid_side == 0);
                        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:659:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (i != renames->cached_pairs_valid_side &&
                ^
/datasets/git/merge-ort.c:659:45: note: +1
                if (i != renames->cached_pairs_valid_side &&
                                                          ^
/datasets/git/merge-ort.c:665:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!reinitialize)
                        ^
/datasets/git/merge-ort.c:669:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = MERGE_SIDE1; i <= MERGE_SIDE2; ++i) {
        ^
/datasets/git/merge-ort.c:677:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!reinitialize) {
        ^
/datasets/git/merge-ort.c:682:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                strmap_for_each_entry(&opti->conflicts, &iter, e) {
                ^
/datasets/git/./strmap.h:112:2: note: expanded from macro 'strmap_for_each_entry'
        hashmap_for_each_entry(&(mystrmap)->map, iter, var, ent)
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/merge-ort.c:684:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (int i = 0; i < list->nr; i++) {
                        ^
/datasets/git/merge-ort.c:709:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        FREE_AND_NULL(renames->callback_data);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/merge-ort.c:632:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/merge-ort.c:632:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:649:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opti->attr_index.cache_nr) /* true iff opt->renormalize */
                                      ^
                                       {
/datasets/git/merge-ort.c:653:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = MERGE_SIDE1; i <= MERGE_SIDE2; ++i) {
        ^
/datasets/git/merge-ort.c:657:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!reinitialize)
                                  ^
                                   {
/datasets/git/merge-ort.c:665:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!reinitialize)
                                          ^
                                           {
/datasets/git/merge-ort.c:669:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = MERGE_SIDE1; i <= MERGE_SIDE2; ++i) {
        ^
/datasets/git/merge-ort.c:679:24: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
                struct strmap_entry *e;
                                     ^
                                       = NULL
/datasets/git/merge-ort.c:679:24: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:683:4: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                        struct string_list *list = e->value;
                        ^
/datasets/git/merge-ort.c:682:50: warning: backward branch (for loop) is ID-dependent due to variable reference to 'e' and may cause performance degradation [altera-id-dependent-backward-branch]
                strmap_for_each_entry(&opti->conflicts, &iter, e) {
                                                               ^
/datasets/git/merge-ort.c:684:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (int i = 0; i < list->nr; i++) {
                        ^
/datasets/git/merge-ort.c:684:20: warning: backward branch (for loop) is ID-dependent due to variable reference to 'list' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (int i = 0; i < list->nr; i++) {
                                        ^
/datasets/git/merge-ort.c:709:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(renames->callback_data);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/merge-ort.c:714:38: warning: parameter 'opt' is unused [misc-unused-parameters]
static int err(struct merge_options *opt, const char *err, ...)
               ~~~~~~~~~~~~~~~~~~~~~~^~~~~
/datasets/git/merge-ort.c:717:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/merge-ort.c:730:42: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static void format_commit(struct strbuf *sb,
                                         ^
/datasets/git/merge-ort.c:735:28: warning: variable 'desc' is not initialized [cppcoreguidelines-init-variables]
        struct merge_remote_desc *desc;
                                  ^
                                       = NULL
/datasets/git/merge-ort.c:760:10: warning: variable name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
        va_list ap;
                ^
/datasets/git/merge-ort.c:761:22: warning: variable 'path_conflicts' is not initialized [cppcoreguidelines-init-variables]
        struct string_list *path_conflicts;
                            ^
                                           = NULL
/datasets/git/merge-ort.c:762:32: warning: variable 'info' is not initialized [cppcoreguidelines-init-variables]
        struct logical_conflict_info *info;
                                      ^
                                           = NULL
/datasets/git/merge-ort.c:764:17: warning: variable 'dest' is not initialized [cppcoreguidelines-init-variables]
        struct strbuf *dest;
                       ^
                            = NULL
/datasets/git/merge-ort.c:771:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->record_conflict_msgs_as_headers && omittable_hint)
                                                                   ^
                                                                    {
/datasets/git/merge-ort.c:773:48: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (opt->priv->call_depth && opt->verbosity < 5)
                                                      ^
/datasets/git/merge-ort.c:773:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->priv->call_depth && opt->verbosity < 5)
                                                        ^
                                                         {
/datasets/git/merge-ort.c:791:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (other_path_1)
                         ^
                          {
/datasets/git/merge-ort.c:793:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (other_path_2)
                         ^
                          {
/datasets/git/merge-ort.c:795:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (other_paths)
                        ^
                         {
/datasets/git/merge-ort.c:796:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (int i = 0; i < other_paths->nr; i++)
                ^
/datasets/git/merge-ort.c:796:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (int i = 0; i < other_paths->nr; i++)
                                                         ^
                                                          {
/datasets/git/merge-ort.c:806:30: warning: performing an implicit widening conversion to type 'size_t' (aka 'unsigned long') of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                strbuf_addchars(dest, ' ', opt->priv->call_depth * 2);
                                           ^
/datasets/git/merge-ort.c:806:30: note: make conversion explicit to silence this warning
                strbuf_addchars(dest, ' ', opt->priv->call_depth * 2);
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~
                                           (size_t)(               )
/datasets/git/merge-ort.c:806:30: note: perform multiplication in a wider type
                strbuf_addchars(dest, ' ', opt->priv->call_depth * 2);
                                           ^~~~~~~~~~~~~~~~~~~~~
                                           (long)
/datasets/git/merge-ort.c:813:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int i_sb = 0, i_tmp = 0;
                ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:816:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opt->msg_header_prefix)
                                           ^
                                            {
/datasets/git/merge-ort.c:821:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (; i_tmp < tmp.len; i_tmp++, i_sb++) {
                ^
/datasets/git/merge-ort.c:821:10: warning: backward branch (for loop) is ID-dependent due to variable reference to 'tmp' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (; i_tmp < tmp.len; i_tmp++, i_sb++) {
                       ^
/datasets/git/merge-ort.c:826:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (tmp.buf[i_tmp] == '\n')
                                                   ^
                                                    {
/datasets/git/merge-ort.c:843:24: warning: variable 'spec' is not initialized [cppcoreguidelines-init-variables]
        struct diff_filespec *spec;
                              ^
                                   = NULL
/datasets/git/merge-ort.c:855:11: warning: 2 adjacent parameters of 'pool_diff_queue' of similar type ('struct diff_filespec *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                             struct diff_filespec *one,
                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:855:33: note: the first parameter in the range is 'one'
                                             struct diff_filespec *one,
                                                                   ^~~
/datasets/git/merge-ort.c:856:33: note: the last parameter in the range is 'two'
                                             struct diff_filespec *two)
                                                                   ^~~
/datasets/git/merge-ort.c:859:24: warning: variable 'dp' is not initialized [cppcoreguidelines-init-variables]
        struct diff_filepair *dp;
                              ^
                                 = NULL
/datasets/git/merge-ort.c:859:24: warning: variable name 'dp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:864:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (queue)
                  ^
                   {
/datasets/git/merge-ort.c:870:64: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void add_flattened_path(struct strbuf *out, const char *s)
                                                               ^
/datasets/git/merge-ort.c:872:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        size_t i = out->len;
               ^
/datasets/git/merge-ort.c:874:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; i < out->len; i++)
        ^
/datasets/git/merge-ort.c:874:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; i < out->len; i++)
               ^
/datasets/git/merge-ort.c:874:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (; i < out->len; i++)
                                 ^
                                  {
/datasets/git/merge-ort.c:875:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (out->buf[i] == '/')
                                       ^
                                        {
/datasets/git/merge-ort.c:880:5: warning: 2 adjacent parameters of 'unique_path' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                         const char *path,
                         ^~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:880:17: note: the first parameter in the range is 'path'
                         const char *path,
                                     ^~~~
/datasets/git/merge-ort.c:881:17: note: the last parameter in the range is 'branch'
                         const char *branch)
                                     ^~~~~~
/datasets/git/merge-ort.c:887:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct strmap *existing_paths = &opt->priv->paths;
        ^
/datasets/git/merge-ort.c:886:9: warning: variable 'base_len' is not initialized [cppcoreguidelines-init-variables]
        size_t base_len;
               ^
                        = 0
/datasets/git/merge-ort.c:893:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (strmap_contains(existing_paths, newpath.buf)) {
        ^
/datasets/git/merge-ort.c:893:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'existing_paths' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (strmap_contains(existing_paths, newpath.buf)) {
               ^
/datasets/git/merge-ort.c:900:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(ret, newpath.buf, newpath.len + 1);
        ^~~~~~
/datasets/git/merge-ort.c:900:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(ret, newpath.buf, newpath.len + 1);
        ^~~~~~
/datasets/git/merge-ort.c:907:44: warning: 2 adjacent parameters of 'traverse_trees_wrapper_callback' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int traverse_trees_wrapper_callback(int n,
                                           ^~~~~~
/datasets/git/merge-ort.c:907:48: note: the first parameter in the range is 'n'
static int traverse_trees_wrapper_callback(int n,
                                               ^
/datasets/git/merge-ort.c:908:23: note: the last parameter in the range is 'mask'
                                           unsigned long mask,
                                                         ^~~~
/datasets/git/merge-ort.c:908:9: note: 'int' and 'unsigned long' may be implicitly converted
                                           unsigned long mask,
                                           ^
/datasets/git/merge-ort.c:919:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!renames->callback_data_traverse_path)
                                                  ^
                                                   {
/datasets/git/merge-ort.c:922:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (filemask && filemask == renames->dir_rename_mask)
                                                             ^
                                                              {
/datasets/git/merge-ort.c:923:30: warning: 0x07 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                renames->dir_rename_mask = 0x07;
                                           ^
/datasets/git/merge-ort.c:925:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(renames->callback_data, renames->callback_data_nr + 1,
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/merge-ort.c:933:9: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return mask;
               ^
/datasets/git/merge-ort.c:945:25: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
                                  struct tree_desc *t,
                                                    ^
/datasets/git/merge-ort.c:948:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int ret, i, old_offset;
        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:948:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret, i, old_offset;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:948:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int ret, i, old_offset;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:948:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:948:14: warning: variable 'old_offset' is not initialized [cppcoreguidelines-init-variables]
        int ret, i, old_offset;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:949:22: warning: variable 'old_fn' is not initialized [cppcoreguidelines-init-variables]
        traverse_callback_t old_fn;
                            ^
                                   = NULL
/datasets/git/merge-ort.c:950:8: warning: variable 'old_callback_data_traverse_path' is not initialized [cppcoreguidelines-init-variables]
        char *old_callback_data_traverse_path;
              ^
                                              = NULL
/datasets/git/merge-ort.c:963:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret < 0)
                    ^
                     {
/datasets/git/merge-ort.c:968:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = old_offset; i < renames->callback_data_nr; ++i) {
        ^
/datasets/git/merge-ort.c:968:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = old_offset; i < renames->callback_data_nr; ++i) {
                             ^
/datasets/git/merge-ort.c:983:13: warning: function 'setup_path_info' has cognitive complexity of 35 (threshold 25) [readability-function-cognitive-complexity]
static void setup_path_info(struct merge_options *opt,
            ^
/datasets/git/merge-ort.c:999:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(!is_null || resolved);
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:999:18: note: +1
        assert(!is_null || resolved);
                        ^
/datasets/git/merge-ort.c:999:2: note: nesting level increased to 1
        assert(!is_null || resolved);
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:999:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(!is_null || resolved);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:999:18: note: +1
        assert(!is_null || resolved);
                        ^
/datasets/git/merge-ort.c:999:2: note: +1, nesting level increased to 2
        assert(!is_null || resolved);
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:1000:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(!df_conflict || !resolved); /* df_conflict implies !resolved */
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:1000:22: note: +1
        assert(!df_conflict || !resolved); /* df_conflict implies !resolved */
                            ^
/datasets/git/merge-ort.c:1000:2: note: nesting level increased to 1
        assert(!df_conflict || !resolved); /* df_conflict implies !resolved */
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:1000:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(!df_conflict || !resolved); /* df_conflict implies !resolved */
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:1000:22: note: +1
        assert(!df_conflict || !resolved); /* df_conflict implies !resolved */
                            ^
/datasets/git/merge-ort.c:1000:2: note: +1, nesting level increased to 2
        assert(!df_conflict || !resolved); /* df_conflict implies !resolved */
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:1001:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(resolved == (merged_version != NULL));
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:1001:2: note: nesting level increased to 1
        assert(resolved == (merged_version != NULL));
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:1001:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(resolved == (merged_version != NULL));
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:1001:2: note: +1, nesting level increased to 2
        assert(resolved == (merged_version != NULL));
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:1004:18: note: +1, including nesting penalty of 0, nesting level increased to 1
                             resolved ? sizeof(struct merged_info) :
                                      ^
/datasets/git/merge-ort.c:1009:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (resolved) {
        ^
/datasets/git/merge-ort.c:1013:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/merge-ort.c:1017:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                ASSIGN_AND_VERIFY_CI(ci, mi);
                ^
/datasets/git/merge-ort.c:613:38: note: expanded from macro 'ASSIGN_AND_VERIFY_CI'
#define ASSIGN_AND_VERIFY_CI(ci, mi) do {    \
                                     ^
/datasets/git/merge-ort.c:1017:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                ASSIGN_AND_VERIFY_CI(ci, mi);
                ^
/datasets/git/merge-ort.c:615:2: note: expanded from macro 'ASSIGN_AND_VERIFY_CI'
        assert((ci) && !(mi)->clean);        \
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:1017:3: note: +1
                ASSIGN_AND_VERIFY_CI(ci, mi);
                ^
/datasets/git/merge-ort.c:615:14: note: expanded from macro 'ASSIGN_AND_VERIFY_CI'
        assert((ci) && !(mi)->clean);        \
                    ^
/datasets/git/merge-ort.c:1017:3: note: nesting level increased to 3
                ASSIGN_AND_VERIFY_CI(ci, mi);
                ^
/datasets/git/merge-ort.c:615:2: note: expanded from macro 'ASSIGN_AND_VERIFY_CI'
        assert((ci) && !(mi)->clean);        \
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:1017:3: note: +4, including nesting penalty of 3, nesting level increased to 4
                ASSIGN_AND_VERIFY_CI(ci, mi);
                ^
/datasets/git/merge-ort.c:615:2: note: expanded from macro 'ASSIGN_AND_VERIFY_CI'
        assert((ci) && !(mi)->clean);        \
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:1017:3: note: +1
                ASSIGN_AND_VERIFY_CI(ci, mi);
                ^
/datasets/git/merge-ort.c:615:14: note: expanded from macro 'ASSIGN_AND_VERIFY_CI'
        assert((ci) && !(mi)->clean);        \
                    ^
/datasets/git/merge-ort.c:1017:3: note: +1, nesting level increased to 4
                ASSIGN_AND_VERIFY_CI(ci, mi);
                ^
/datasets/git/merge-ort.c:615:2: note: expanded from macro 'ASSIGN_AND_VERIFY_CI'
        assert((ci) && !(mi)->clean);        \
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:1018:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = MERGE_BASE; i <= MERGE_SIDE2; i++) {
                ^
/datasets/git/merge-ort.c:1026:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (dirmask)
                ^
/datasets/git/merge-ort.c:988:8: warning: 2 adjacent parameters of 'setup_path_info' of similar type ('struct name_entry *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                            struct name_entry *names,
                            ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:988:27: note: the first parameter in the range is 'names'
                            struct name_entry *names,
                                               ^~~~~
/datasets/git/merge-ort.c:989:27: note: the last parameter in the range is 'merged_version'
                            struct name_entry *merged_version,
                                               ^~~~~~~~~~~~~~
/datasets/git/merge-ort.c:990:8: warning: 4 adjacent parameters of 'setup_path_info' of similar type ('unsigned int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                            unsigned is_null,     /* boolean */
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:990:17: note: the first parameter in the range is 'is_null'
                            unsigned is_null,     /* boolean */
                                     ^~~~~~~
/datasets/git/merge-ort.c:993:17: note: the last parameter in the range is 'dirmask'
                            unsigned dirmask,
                                     ^~~~~~~
/datasets/git/merge-ort.c:997:22: warning: variable 'mi' is not initialized [cppcoreguidelines-init-variables]
        struct merged_info *mi;
                            ^
                               = NULL
/datasets/git/merge-ort.c:997:22: warning: variable name 'mi' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:1014:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/merge-ort.c:1014:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:1015:25: warning: variable 'ci' is not initialized [cppcoreguidelines-init-variables]
                struct conflict_info *ci;
                                      ^
                                         = NULL
/datasets/git/merge-ort.c:1015:25: warning: variable name 'ci' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:1017:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                ASSIGN_AND_VERIFY_CI(ci, mi);
                ^
/datasets/git/merge-ort.c:613:38: note: expanded from macro 'ASSIGN_AND_VERIFY_CI'
#define ASSIGN_AND_VERIFY_CI(ci, mi) do {    \
                                     ^
/datasets/git/merge-ort.c:1018:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = MERGE_BASE; i <= MERGE_SIDE2; i++) {
                ^
/datasets/git/merge-ort.c:1026:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (dirmask)
                            ^
                             {
/datasets/git/merge-ort.c:1043:13: warning: function 'add_pair' has cognitive complexity of 33 (threshold 25) [readability-function-cognitive-complexity]
static void add_pair(struct merge_options *opt,
            ^
/datasets/git/merge-ort.c:1053:25: note: +1, including nesting penalty of 0, nesting level increased to 1
        int names_idx = is_add ? side : 0;
                               ^
/datasets/git/merge-ort.c:1055:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (is_add) {
        ^
/datasets/git/merge-ort.c:1056:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(match_mask == 0 || match_mask == 6);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:1056:26: note: +1
                assert(match_mask == 0 || match_mask == 6);
                                       ^
/datasets/git/merge-ort.c:1056:3: note: nesting level increased to 2
                assert(match_mask == 0 || match_mask == 6);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:1056:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(match_mask == 0 || match_mask == 6);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:1056:26: note: +1
                assert(match_mask == 0 || match_mask == 6);
                                       ^
/datasets/git/merge-ort.c:1056:3: note: +1, nesting level increased to 3
                assert(match_mask == 0 || match_mask == 6);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:1057:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (strset_contains(&renames->cached_target_names[side],
                ^
/datasets/git/merge-ort.c:1060:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/merge-ort.c:1064:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(match_mask == 0 || match_mask == 3 || match_mask == 5);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:1064:45: note: +1
                assert(match_mask == 0 || match_mask == 3 || match_mask == 5);
                                                          ^
/datasets/git/merge-ort.c:1064:3: note: nesting level increased to 2
                assert(match_mask == 0 || match_mask == 3 || match_mask == 5);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:1064:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(match_mask == 0 || match_mask == 3 || match_mask == 5);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:1064:45: note: +1
                assert(match_mask == 0 || match_mask == 3 || match_mask == 5);
                                                          ^
/datasets/git/merge-ort.c:1064:3: note: +1, nesting level increased to 3
                assert(match_mask == 0 || match_mask == 3 || match_mask == 5);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:1071:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (content_relevant)
                ^
/datasets/git/merge-ort.c:1086:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (content_relevant || location_relevant) {
                ^
/datasets/git/merge-ort.c:1086:24: note: +1
                if (content_relevant || location_relevant) {
                                     ^
/datasets/git/merge-ort.c:1089:28: note: +3, including nesting penalty of 2, nesting level increased to 3
                                      content_relevant ? RELEVANT_CONTENT : RELEVANT_LOCATION);
                                                       ^
/datasets/git/merge-ort.c:1097:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (strmap_contains(&renames->cached_pairs[side], pathname) ||
                ^
/datasets/git/merge-ort.c:1097:63: note: +1
                if (strmap_contains(&renames->cached_pairs[side], pathname) ||
                                                                            ^
/datasets/git/merge-ort.c:1104:23: note: +1, including nesting penalty of 0, nesting level increased to 1
        fill_filespec(is_add ? two : one,
                             ^
/datasets/git/merge-ort.c:1047:8: warning: 3 adjacent parameters of 'add_pair' of similar type ('unsigned int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                     unsigned is_add /* if false, is_delete */,
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:1047:17: note: the first parameter in the range is 'is_add'
                     unsigned is_add /* if false, is_delete */,
                              ^~~~~~
/datasets/git/merge-ort.c:1049:17: note: the last parameter in the range is 'dir_rename_mask'
                     unsigned dir_rename_mask)
                              ^~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:1051:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct diff_filespec *one, *two;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:1051:24: warning: variable 'one' is not initialized [cppcoreguidelines-init-variables]
        struct diff_filespec *one, *two;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:1051:30: warning: variable 'two' is not initialized [cppcoreguidelines-init-variables]
        struct diff_filespec *one, *two;
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:1053:27: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int names_idx = is_add ? side : 0;
                                 ^
/datasets/git/merge-ort.c:1058:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                    pathname))
                                              ^
                                               {
/datasets/git/merge-ort.c:1062:52: warning: 0x07 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                unsigned location_relevant = (dir_rename_mask == 0x07);
                                                                 ^
/datasets/git/merge-ort.c:1071:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (content_relevant)
                                     ^
                                      {
/datasets/git/merge-ort.c:1098:68: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    strset_contains(&renames->cached_irrelevant[side], pathname))
                                                                                 ^
                                                                                  {
/datasets/git/merge-ort.c:1109:13: warning: function 'collect_rename_info' has cognitive complexity of 31 (threshold 25) [readability-function-cognitive-complexity]
static void collect_rename_info(struct merge_options *opt,
            ^
/datasets/git/merge-ort.c:1141:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (renames->dir_rename_mask != 0x07 &&
        ^
/datasets/git/merge-ort.c:1141:39: note: +1
        if (renames->dir_rename_mask != 0x07 &&
                                             ^
/datasets/git/merge-ort.c:1142:20: note: +1
            (dirmask == 3 || dirmask == 5)) {
                          ^
/datasets/git/merge-ort.c:1144:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(renames->dir_rename_mask == 0 ||
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:1144:40: note: +1
                assert(renames->dir_rename_mask == 0 ||
                                                     ^
/datasets/git/merge-ort.c:1144:3: note: nesting level increased to 2
                assert(renames->dir_rename_mask == 0 ||
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:1144:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(renames->dir_rename_mask == 0 ||
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:1144:40: note: +1
                assert(renames->dir_rename_mask == 0 ||
                                                     ^
/datasets/git/merge-ort.c:1144:3: note: +1, nesting level increased to 3
                assert(renames->dir_rename_mask == 0 ||
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:1151:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (dirmask == 1 || dirmask == 3 || dirmask == 5) {
        ^
/datasets/git/merge-ort.c:1151:35: note: +1
        if (dirmask == 1 || dirmask == 3 || dirmask == 5) {
                                         ^
/datasets/git/merge-ort.c:1154:59: note: +2, including nesting penalty of 1, nesting level increased to 2
                unsigned relevance = (renames->dir_rename_mask == 0x07) ?
                                                                        ^
/datasets/git/merge-ort.c:1164:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (sides & 1)
                ^
/datasets/git/merge-ort.c:1167:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (sides & 2)
                ^
/datasets/git/merge-ort.c:1177:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (renames->dir_rename_mask == 0x07 &&
        ^
/datasets/git/merge-ort.c:1177:39: note: +1
        if (renames->dir_rename_mask == 0x07 &&
                                             ^
/datasets/git/merge-ort.c:1178:21: note: +1
            (filemask == 2 || filemask == 4)) {
                           ^
/datasets/git/merge-ort.c:1191:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (filemask == 0 || filemask == 7)
        ^
/datasets/git/merge-ort.c:1191:20: note: +1
        if (filemask == 0 || filemask == 7)
                          ^
/datasets/git/merge-ort.c:1194:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (side = MERGE_SIDE1; side <= MERGE_SIDE2; ++side) {
        ^
/datasets/git/merge-ort.c:1198:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((filemask & 1) && !(filemask & side_mask))
                ^
/datasets/git/merge-ort.c:1198:22: note: +1
                if ((filemask & 1) && !(filemask & side_mask))
                                   ^
/datasets/git/merge-ort.c:1204:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!(filemask & 1) && (filemask & side_mask))
                ^
/datasets/git/merge-ort.c:1204:23: note: +1
                if (!(filemask & 1) && (filemask & side_mask))
                                    ^
/datasets/git/merge-ort.c:1113:5: warning: 2 adjacent parameters of 'collect_rename_info' of similar type ('unsigned int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                unsigned filemask,
                                ^~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:1113:14: note: the first parameter in the range is 'filemask'
                                unsigned filemask,
                                         ^~~~~~~~
/datasets/git/merge-ort.c:1114:14: note: the last parameter in the range is 'dirmask'
                                unsigned dirmask,
                                         ^~~~~~~
/datasets/git/merge-ort.c:1118:11: warning: variable 'side' is not initialized [cppcoreguidelines-init-variables]
        unsigned side;
                 ^
                      = 0
/datasets/git/merge-ort.c:1141:34: warning: 0x07 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (renames->dir_rename_mask != 0x07 &&
                                        ^
/datasets/git/merge-ort.c:1142:34: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
            (dirmask == 3 || dirmask == 5)) {
                                        ^
/datasets/git/merge-ort.c:1145:39: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       renames->dir_rename_mask == (dirmask & ~1));
                                                    ^
/usr/include/assert.h:108:20: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                   ^~~~
/datasets/git/merge-ort.c:1145:49: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                       renames->dir_rename_mask == (dirmask & ~1));
                                                              ^
/usr/include/assert.h:108:20: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                   ^~~~
/datasets/git/merge-ort.c:1147:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                renames->dir_rename_mask = (dirmask & ~1);
                                            ^         ~~
/datasets/git/merge-ort.c:1147:41: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                renames->dir_rename_mask = (dirmask & ~1);
                                                      ^~
/datasets/git/merge-ort.c:1151:49: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (dirmask == 1 || dirmask == 3 || dirmask == 5) {
                                                       ^
/datasets/git/merge-ort.c:1153:21: warning: 0x07 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                unsigned sides = (0x07 - dirmask)/2;
                                  ^
/datasets/git/merge-ort.c:1154:53: warning: 0x07 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                unsigned relevance = (renames->dir_rename_mask == 0x07) ?
                                                                  ^
/datasets/git/merge-ort.c:1164:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (sides & 1)
                    ^       ~
/datasets/git/merge-ort.c:1164:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (sides & 1)
                              ^
                               {
/datasets/git/merge-ort.c:1167:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (sides & 2)
                    ^       ~
/datasets/git/merge-ort.c:1167:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (sides & 2)
                              ^
                               {
/datasets/git/merge-ort.c:1177:34: warning: 0x07 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (renames->dir_rename_mask == 0x07 &&
                                        ^
/datasets/git/merge-ort.c:1186:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                unsigned side = 3 - (filemask >> 1);
                                     ^           ~
/datasets/git/merge-ort.c:1191:35: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (filemask == 0 || filemask == 7)
                                         ^
/datasets/git/merge-ort.c:1191:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (filemask == 0 || filemask == 7)
                                           ^
                                            {
/datasets/git/merge-ort.c:1194:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (side = MERGE_SIDE1; side <= MERGE_SIDE2; ++side) {
        ^
/datasets/git/merge-ort.c:1195:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                unsigned side_mask = (1 << side);
                                      ^
/datasets/git/merge-ort.c:1198:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((filemask & 1) && !(filemask & side_mask))
                     ^          ~
/datasets/git/merge-ort.c:1198:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((filemask & 1) && !(filemask & side_mask))
                                                              ^
                                                               {
/datasets/git/merge-ort.c:1204:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(filemask & 1) && (filemask & side_mask))
                      ^          ~
/datasets/git/merge-ort.c:1204:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(filemask & 1) && (filemask & side_mask))
                                                              ^
                                                               {
/datasets/git/merge-ort.c:1211:12: warning: function 'collect_merge_info_callback' has cognitive complexity of 93 (threshold 25) [readability-function-cognitive-complexity]
static int collect_merge_info_callback(int n,
           ^
/datasets/git/merge-ort.c:1239:37: note: +1
                                        names[0].mode == names[1].mode &&
                                                                       ^
/datasets/git/merge-ort.c:1242:37: note: +1
                                        names[0].mode == names[2].mode &&
                                                                       ^
/datasets/git/merge-ort.c:1245:36: note: +1
                                names[1].mode == names[2].mode &&
                                                               ^
/datasets/git/merge-ort.c:1262:41: note: +1
        unsigned df_conflict = (filemask != 0) && (dirmask != 0);
                                               ^
/datasets/git/merge-ort.c:1265:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (n != 3)
        ^
/datasets/git/merge-ort.c:1273:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(mbase_null == is_null_oid(&names[0].oid));
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:1273:2: note: nesting level increased to 1
        assert(mbase_null == is_null_oid(&names[0].oid));
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:1273:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(mbase_null == is_null_oid(&names[0].oid));
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:1273:2: note: +1, nesting level increased to 2
        assert(mbase_null == is_null_oid(&names[0].oid));
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:1274:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(side1_null == is_null_oid(&names[1].oid));
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:1274:2: note: nesting level increased to 1
        assert(side1_null == is_null_oid(&names[1].oid));
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:1274:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(side1_null == is_null_oid(&names[1].oid));
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:1274:2: note: +1, nesting level increased to 2
        assert(side1_null == is_null_oid(&names[1].oid));
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:1275:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(side2_null == is_null_oid(&names[2].oid));
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:1275:2: note: nesting level increased to 1
        assert(side2_null == is_null_oid(&names[2].oid));
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:1275:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(side2_null == is_null_oid(&names[2].oid));
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:1275:2: note: +1, nesting level increased to 2
        assert(side2_null == is_null_oid(&names[2].oid));
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:1276:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(!mbase_null || !side1_null || !side2_null);
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:1276:36: note: +1
        assert(!mbase_null || !side1_null || !side2_null);
                                          ^
/datasets/git/merge-ort.c:1276:2: note: nesting level increased to 1
        assert(!mbase_null || !side1_null || !side2_null);
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:1276:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(!mbase_null || !side1_null || !side2_null);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:1276:36: note: +1
        assert(!mbase_null || !side1_null || !side2_null);
                                          ^
/datasets/git/merge-ort.c:1276:2: note: +1, nesting level increased to 2
        assert(!mbase_null || !side1_null || !side2_null);
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:1277:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(mask > 0 && mask < 8);
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:1277:18: note: +1
        assert(mask > 0 && mask < 8);
                        ^
/datasets/git/merge-ort.c:1277:2: note: nesting level increased to 1
        assert(mask > 0 && mask < 8);
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:1277:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(mask > 0 && mask < 8);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:1277:18: note: +1
        assert(mask > 0 && mask < 8);
                        ^
/datasets/git/merge-ort.c:1277:2: note: +1, nesting level increased to 2
        assert(mask > 0 && mask < 8);
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:1280:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (side1_matches_mbase)
        ^
/datasets/git/merge-ort.c:1281:37: note: +2, including nesting penalty of 1, nesting level increased to 2
                match_mask = (side2_matches_mbase ? 7 : 3);
                                                  ^
/datasets/git/merge-ort.c:1282:7: note: +1, nesting level increased to 1
        else if (side2_matches_mbase)
             ^
/datasets/git/merge-ort.c:1284:7: note: +1, nesting level increased to 1
        else if (sides_match)
             ^
/datasets/git/merge-ort.c:1292:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (!p->mode)
        ^
/datasets/git/merge-ort.c:1305:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (side1_matches_mbase && side2_matches_mbase) {
        ^
/datasets/git/merge-ort.c:1305:26: note: +1
        if (side1_matches_mbase && side2_matches_mbase) {
                                ^
/datasets/git/merge-ort.c:1319:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (sides_match && filemask == 0x07) {
        ^
/datasets/git/merge-ort.c:1319:18: note: +1
        if (sides_match && filemask == 0x07) {
                        ^
/datasets/git/merge-ort.c:1333:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (side1_matches_mbase && filemask == 0x07) {
        ^
/datasets/git/merge-ort.c:1333:26: note: +1
        if (side1_matches_mbase && filemask == 0x07) {
                                ^
/datasets/git/merge-ort.c:1342:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (side2_matches_mbase && filemask == 0x07) {
        ^
/datasets/git/merge-ort.c:1342:26: note: +1
        if (side2_matches_mbase && filemask == 0x07) {
                                ^
/datasets/git/merge-ort.c:1374:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        VERIFY_CI(ci);
        ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:1374:2: note: +1
        VERIFY_CI(ci);
        ^
/datasets/git/merge-ort.c:612:33: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                                ^
/datasets/git/merge-ort.c:1374:2: note: nesting level increased to 1
        VERIFY_CI(ci);
        ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:1374:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        VERIFY_CI(ci);
        ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:1374:2: note: +1
        VERIFY_CI(ci);
        ^
/datasets/git/merge-ort.c:612:33: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                                ^
/datasets/git/merge-ort.c:1374:2: note: +1, nesting level increased to 2
        VERIFY_CI(ci);
        ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:1378:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (dirmask) {
        ^
/datasets/git/merge-ort.c:1390:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(!side1_matches_mbase || !side2_matches_mbase);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:1390:31: note: +1
                assert(!side1_matches_mbase || !side2_matches_mbase);
                                            ^
/datasets/git/merge-ort.c:1390:3: note: nesting level increased to 2
                assert(!side1_matches_mbase || !side2_matches_mbase);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:1390:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(!side1_matches_mbase || !side2_matches_mbase);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:1390:31: note: +1
                assert(!side1_matches_mbase || !side2_matches_mbase);
                                            ^
/datasets/git/merge-ort.c:1390:3: note: +1, nesting level increased to 3
                assert(!side1_matches_mbase || !side2_matches_mbase);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:1391:30: note: +2, including nesting penalty of 1, nesting level increased to 2
                side = side1_matches_mbase ? MERGE_SIDE2 :
                                           ^
/datasets/git/merge-ort.c:1392:24: note: +3, including nesting penalty of 2, nesting level increased to 3
                        side2_matches_mbase ? MERGE_SIDE1 : MERGE_BASE;
                                            ^
/datasets/git/merge-ort.c:1393:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (filemask == 0 && (dirmask == 2 || dirmask == 4)) {
                ^
/datasets/git/merge-ort.c:1393:21: note: +1
                if (filemask == 0 && (dirmask == 2 || dirmask == 4)) {
                                  ^
/datasets/git/merge-ort.c:1393:38: note: +1
                if (filemask == 0 && (dirmask == 2 || dirmask == 4)) {
                                                   ^
/datasets/git/merge-ort.c:1401:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (renames->dir_rename_mask != 0x07 &&
                ^
/datasets/git/merge-ort.c:1403:51: note: +1
                    renames->deferred[side].trivial_merges_okay &&
                                                                ^
/datasets/git/merge-ort.c:1429:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = MERGE_BASE; i <= MERGE_SIDE2; i++) {
                ^
/datasets/git/merge-ort.c:1430:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (i == 1 && side1_matches_mbase)
                        ^
/datasets/git/merge-ort.c:1430:15: note: +1
                        if (i == 1 && side1_matches_mbase)
                                   ^
/datasets/git/merge-ort.c:1432:9: note: +1, nesting level increased to 3
                        else if (i == 2 && side2_matches_mbase)
                             ^
/datasets/git/merge-ort.c:1432:20: note: +1
                        else if (i == 2 && side2_matches_mbase)
                                        ^
/datasets/git/merge-ort.c:1434:9: note: +1, nesting level increased to 3
                        else if (i == 2 && sides_match)
                             ^
/datasets/git/merge-ort.c:1434:20: note: +1
                        else if (i == 2 && sides_match)
                                        ^
/datasets/git/merge-ort.c:1436:4: note: +1, nesting level increased to 3
                        else {
                        ^
/datasets/git/merge-ort.c:1438:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (dirmask & 1)
                                ^
/datasets/git/merge-ort.c:1448:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (renames->dir_rename_mask == 0 ||
                ^
/datasets/git/merge-ort.c:1448:37: note: +1
                if (renames->dir_rename_mask == 0 ||
                                                  ^
/datasets/git/merge-ort.c:1451:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/merge-ort.c:1456:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = MERGE_BASE; i <= MERGE_SIDE2; i++)
                ^
/datasets/git/merge-ort.c:1459:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ret < 0)
                ^
/datasets/git/merge-ort.c:1211:40: warning: 2 adjacent parameters of 'collect_merge_info_callback' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int collect_merge_info_callback(int n,
                                       ^~~~~~
/datasets/git/merge-ort.c:1211:44: note: the first parameter in the range is 'n'
static int collect_merge_info_callback(int n,
                                           ^
/datasets/git/merge-ort.c:1212:26: note: the last parameter in the range is 'mask'
                                       unsigned long mask,
                                                     ^~~~
/datasets/git/merge-ort.c:1212:12: note: 'int' and 'unsigned long' may be implicitly converted
                                       unsigned long mask,
                                       ^
/datasets/git/merge-ort.c:1226:26: warning: variable name 'pi' is too short, expected at least 3 characters [readability-identifier-length]
        struct string_list_item pi;  /* Path Info */
                                ^
/datasets/git/merge-ort.c:1227:24: warning: variable 'ci' is not initialized [cppcoreguidelines-init-variables]
        struct conflict_info *ci; /* typed alias to pi.util (which is void*) */
                              ^
                                 = NULL
/datasets/git/merge-ort.c:1227:24: warning: variable name 'ci' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:1228:21: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct name_entry *p;
                           ^
                             = NULL
/datasets/git/merge-ort.c:1228:21: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:1229:9: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        size_t len;
               ^
                   = 0
/datasets/git/merge-ort.c:1230:8: warning: variable 'fullpath' is not initialized [cppcoreguidelines-init-variables]
        char *fullpath;
              ^
                       = NULL
/datasets/git/merge-ort.c:1235:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned mbase_null = !(mask & 1);
                                ^      ~
/datasets/git/merge-ort.c:1236:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned side1_null = !(mask & 2);
                                ^      ~
/datasets/git/merge-ort.c:1237:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned side2_null = !(mask & 4);
                                ^      ~
/datasets/git/merge-ort.c:1265:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (n != 3)
                   ^
                    {
/datasets/git/merge-ort.c:1280:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (side1_matches_mbase)
                                ^
                                 {
/datasets/git/merge-ort.c:1281:39: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                match_mask = (side2_matches_mbase ? 7 : 3);
                                                    ^
/datasets/git/merge-ort.c:1282:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (side2_matches_mbase)
                                     ^
                                      {
/datasets/git/merge-ort.c:1283:16: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                match_mask = 5;
                             ^
/datasets/git/merge-ort.c:1284:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (sides_match)
                             ^
                              {
/datasets/git/merge-ort.c:1285:16: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                match_mask = 6;
                             ^
/datasets/git/merge-ort.c:1292:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (!p->mode)
        ^
/datasets/git/merge-ort.c:1292:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (!p->mode)
               ^
/datasets/git/merge-ort.c:1292:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (!p->mode)
                        ^
                         {
/datasets/git/merge-ort.c:1307:38: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                setup_path_info(opt, &pi, dirname, info->pathlen, fullpath,
                                                   ^
/datasets/git/merge-ort.c:1310:10: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                return mask;
                       ^
/datasets/git/merge-ort.c:1319:33: warning: 0x07 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (sides_match && filemask == 0x07) {
                                       ^
/datasets/git/merge-ort.c:1321:38: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                setup_path_info(opt, &pi, dirname, info->pathlen, fullpath,
                                                   ^
/datasets/git/merge-ort.c:1324:10: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                return mask;
                       ^
/datasets/git/merge-ort.c:1333:41: warning: 0x07 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (side1_matches_mbase && filemask == 0x07) {
                                               ^
/datasets/git/merge-ort.c:1335:38: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                setup_path_info(opt, &pi, dirname, info->pathlen, fullpath,
                                                   ^
/datasets/git/merge-ort.c:1338:10: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                return mask;
                       ^
/datasets/git/merge-ort.c:1342:41: warning: 0x07 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (side2_matches_mbase && filemask == 0x07) {
                                               ^
/datasets/git/merge-ort.c:1344:38: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                setup_path_info(opt, &pi, dirname, info->pathlen, fullpath,
                                                   ^
/datasets/git/merge-ort.c:1347:10: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                return mask;
                       ^
/datasets/git/merge-ort.c:1370:37: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        setup_path_info(opt, &pi, dirname, info->pathlen, fullpath,
                                           ^
/datasets/git/merge-ort.c:1380:20: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
                struct tree_desc t[3];
                                 ^
/datasets/git/merge-ort.c:1382:15: warning: variable 'original_dir_name' is not initialized [cppcoreguidelines-init-variables]
                const char *original_dir_name;
                            ^
                                              = NULL
/datasets/git/merge-ort.c:1383:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int i, ret, side;
                ^~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:1383:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i, ret, side;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:1383:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:1383:10: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
                int i, ret, side;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:1383:15: warning: variable 'side' is not initialized [cppcoreguidelines-init-variables]
                int i, ret, side;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:1398:22: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        ci->match_mask = (7 - dirmask);
                                          ^
/datasets/git/merge-ort.c:1399:11: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        side = dirmask / 2;
                               ^
/datasets/git/merge-ort.c:1401:35: warning: 0x07 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (renames->dir_rename_mask != 0x07 &&
                                                ^
/datasets/git/merge-ort.c:1409:11: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        return mask;
                               ^
/datasets/git/merge-ort.c:1429:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = MERGE_BASE; i <= MERGE_SIDE2; i++) {
                ^
/datasets/git/merge-ort.c:1430:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (i == 1 && side1_matches_mbase)
                                                          ^
                                                           {
/datasets/git/merge-ort.c:1432:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (i == 2 && side2_matches_mbase)
                                                               ^
                                                                {
/datasets/git/merge-ort.c:1434:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (i == 2 && sides_match)
                                                       ^
                                                        {
/datasets/git/merge-ort.c:1438:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (dirmask & 1)
                                    ^         ~
/datasets/git/merge-ort.c:1438:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (dirmask & 1)
                                                ^
                                                 {
/datasets/git/merge-ort.c:1443:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        dirmask >>= 1;
                        ^           ~
/datasets/git/merge-ort.c:1449:35: warning: 0x07 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                    renames->dir_rename_mask == 0x07)
                                                ^
/datasets/git/merge-ort.c:1449:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    renames->dir_rename_mask == 0x07)
                                                     ^
                                                      {
/datasets/git/merge-ort.c:1451:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/merge-ort.c:1456:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = MERGE_BASE; i <= MERGE_SIDE2; i++)
                ^
/datasets/git/merge-ort.c:1456:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = MERGE_BASE; i <= MERGE_SIDE2; i++)
                                                           ^
                                                            {
/datasets/git/merge-ort.c:1459:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret < 0)
                            ^
                             {
/datasets/git/merge-ort.c:1463:9: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return mask;
               ^
/datasets/git/merge-ort.c:1466:67: warning: parameter name 'ci' is too short, expected at least 3 characters [readability-identifier-length]
static void resolve_trivial_directory_merge(struct conflict_info *ci, int side)
                                                                  ^
/datasets/git/merge-ort.c:1478:12: warning: function 'handle_deferred_entries' has cognitive complexity of 102 (threshold 25) [readability-function-cognitive-complexity]
static int handle_deferred_entries(struct merge_options *opt,
           ^
/datasets/git/merge-ort.c:1488:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (side = MERGE_SIDE1; side <= MERGE_SIDE2; side++) {
        ^
/datasets/git/merge-ort.c:1493:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                strset_for_each_entry(&renames->relevant_sources[side],
                ^
/datasets/git/./strmap.h:221:2: note: expanded from macro 'strset_for_each_entry'
        strmap_for_each_entry(&(mystrset)->map, iter, var)
        ^
/datasets/git/./strmap.h:112:2: note: expanded from macro 'strmap_for_each_entry'
        hashmap_for_each_entry(&(mystrmap)->map, iter, var, ent)
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/merge-ort.c:1503:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (strset_contains(&renames->cached_irrelevant[side],
                        ^
/datasets/git/merge-ort.c:1508:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!e) {
                        ^
/datasets/git/merge-ort.c:1515:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!rename_target)
                        ^
/datasets/git/merge-ort.c:1519:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (strmap_contains(&opt->priv->paths, rename_target))
                        ^
/datasets/git/merge-ort.c:1528:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while ((dir_marker = strrchr(dir, '/'))) {
                        ^
/datasets/git/merge-ort.c:1530:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (strset_contains(&renames->deferred[side].target_dirs,
                                ^
/datasets/git/merge-ort.c:1554:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                strintmap_for_each_entry(&copy, &iter, entry) {
                ^
/datasets/git/./strmap.h:134:2: note: expanded from macro 'strintmap_for_each_entry'
        strmap_for_each_entry(&(mystrmap)->map, iter, var)
        ^
/datasets/git/./strmap.h:112:2: note: expanded from macro 'strmap_for_each_entry'
        hashmap_for_each_entry(&(mystrmap)->map, iter, var, ent)
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/merge-ort.c:1564:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        VERIFY_CI(ci);
                        ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:1564:4: note: +1
                        VERIFY_CI(ci);
                        ^
/datasets/git/merge-ort.c:612:33: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                                ^
/datasets/git/merge-ort.c:1564:4: note: nesting level increased to 3
                        VERIFY_CI(ci);
                        ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:1564:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        VERIFY_CI(ci);
                        ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:1564:4: note: +1
                        VERIFY_CI(ci);
                        ^
/datasets/git/merge-ort.c:612:33: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                                ^
/datasets/git/merge-ort.c:1564:4: note: +1, nesting level increased to 4
                        VERIFY_CI(ci);
                        ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:1567:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (optimization_okay &&
                        ^
/datasets/git/merge-ort.c:1567:26: note: +1
                        if (optimization_okay &&
                                              ^
/datasets/git/merge-ort.c:1578:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (i = 0; i < 3; i++, dirmask >>= 1) {
                        ^
/datasets/git/merge-ort.c:1579:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (i == 1 && ci->match_mask == 3)
                                ^
/datasets/git/merge-ort.c:1579:16: note: +1
                                if (i == 1 && ci->match_mask == 3)
                                           ^
/datasets/git/merge-ort.c:1581:10: note: +1, nesting level increased to 4
                                else if (i == 2 && ci->match_mask == 5)
                                     ^
/datasets/git/merge-ort.c:1581:21: note: +1
                                else if (i == 2 && ci->match_mask == 5)
                                                ^
/datasets/git/merge-ort.c:1583:10: note: +1, nesting level increased to 4
                                else if (i == 2 && ci->match_mask == 6)
                                     ^
/datasets/git/merge-ort.c:1583:21: note: +1
                                else if (i == 2 && ci->match_mask == 6)
                                                ^
/datasets/git/merge-ort.c:1585:5: note: +1, nesting level increased to 4
                                else {
                                ^
/datasets/git/merge-ort.c:1587:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (dirmask & 1)
                                        ^
/datasets/git/merge-ort.c:1597:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (renames->dir_rename_mask == 0 ||
                        ^
/datasets/git/merge-ort.c:1597:38: note: +1
                        if (renames->dir_rename_mask == 0 ||
                                                          ^
/datasets/git/merge-ort.c:1600:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/merge-ort.c:1603:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (i = MERGE_BASE; i <= MERGE_SIDE2; i++)
                        ^
/datasets/git/merge-ort.c:1606:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ret < 0)
                        ^
/datasets/git/merge-ort.c:1610:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                strintmap_for_each_entry(&renames->deferred[side].possible_trivial_merges,
                ^
/datasets/git/./strmap.h:134:2: note: expanded from macro 'strintmap_for_each_entry'
        strmap_for_each_entry(&(mystrmap)->map, iter, var)
        ^
/datasets/git/./strmap.h:112:2: note: expanded from macro 'strmap_for_each_entry'
        hashmap_for_each_entry(&(mystrmap)->map, iter, var, ent)
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/merge-ort.c:1616:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        VERIFY_CI(ci);
                        ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:1616:4: note: +1
                        VERIFY_CI(ci);
                        ^
/datasets/git/merge-ort.c:612:33: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                                ^
/datasets/git/merge-ort.c:1616:4: note: nesting level increased to 3
                        VERIFY_CI(ci);
                        ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:1616:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        VERIFY_CI(ci);
                        ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:1616:4: note: +1
                        VERIFY_CI(ci);
                        ^
/datasets/git/merge-ort.c:612:33: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                                ^
/datasets/git/merge-ort.c:1616:4: note: +1, nesting level increased to 4
                        VERIFY_CI(ci);
                        ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:1618:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        assert(renames->deferred[side].trivial_merges_okay &&
                        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:1618:55: note: +1
                        assert(renames->deferred[side].trivial_merges_okay &&
                                                                           ^
/datasets/git/merge-ort.c:1618:4: note: nesting level increased to 3
                        assert(renames->deferred[side].trivial_merges_okay &&
                        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:1618:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        assert(renames->deferred[side].trivial_merges_okay &&
                        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:1618:55: note: +1
                        assert(renames->deferred[side].trivial_merges_okay &&
                                                                           ^
/datasets/git/merge-ort.c:1618:4: note: +1, nesting level increased to 4
                        assert(renames->deferred[side].trivial_merges_okay &&
                        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:1623:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!optimization_okay || path_count_after)
                ^
/datasets/git/merge-ort.c:1623:26: note: +1
                if (!optimization_okay || path_count_after)
                                       ^
/datasets/git/merge-ort.c:1626:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (path_count_after) {
        ^
/datasets/git/merge-ort.c:1641:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(renames->redo_after_renames == 0);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:1641:3: note: nesting level increased to 2
                assert(renames->redo_after_renames == 0);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:1641:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(renames->redo_after_renames == 0);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:1641:3: note: +1, nesting level increased to 3
                assert(renames->redo_after_renames == 0);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:1643:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (path_count_after / path_count_before >= wanted_factor) {
                ^
/datasets/git/merge-ort.c:1647:9: note: +1, nesting level increased to 1
        } else if (renames->redo_after_renames == 2)
               ^
/datasets/git/merge-ort.c:1483:23: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
        struct strmap_entry *entry;
                             ^
                                   = NULL
/datasets/git/merge-ort.c:1484:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int side, ret = 0;
        ^~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:1484:6: warning: variable 'side' is not initialized [cppcoreguidelines-init-variables]
        int side, ret = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:1485:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int path_count_before, path_count_after = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:1485:6: warning: variable 'path_count_before' is not initialized [cppcoreguidelines-init-variables]
        int path_count_before, path_count_after = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:1487:22: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        path_count_before = strmap_get_size(&opt->priv->paths);
                            ^
/datasets/git/merge-ort.c:1494:18: warning: backward branch (for loop) is ID-dependent due to variable reference to 'entry' and may cause performance degradation [altera-id-dependent-backward-branch]
                                      &iter, entry) {
                                             ^
/datasets/git/merge-ort.c:1483:2: note: inferred assignment of ID-dependent value from ID-dependent 
        struct strmap_entry *entry;
        ^
/datasets/git/merge-ort.c:1495:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        char *rename_target, *dir, *dir_marker;
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:1495:10: warning: variable 'rename_target' is not initialized [cppcoreguidelines-init-variables]
                        char *rename_target, *dir, *dir_marker;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:1495:26: warning: variable 'dir' is not initialized [cppcoreguidelines-init-variables]
                        char *rename_target, *dir, *dir_marker;
                                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:1495:32: warning: variable 'dir_marker' is not initialized [cppcoreguidelines-init-variables]
                        char *rename_target, *dir, *dir_marker;
                                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:1496:25: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
                        struct strmap_entry *e;
                                             ^
                                               = NULL
/datasets/git/merge-ort.c:1496:25: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:1504:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                            entry->key))
                                                        ^
                                                         {
/datasets/git/merge-ort.c:1515:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!rename_target)
                                           ^
                                            {
/datasets/git/merge-ort.c:1519:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (strmap_contains(&opt->priv->paths, rename_target))
                                                                              ^
                                                                               {
/datasets/git/merge-ort.c:1528:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while ((dir_marker = strrchr(dir, '/'))) {
                        ^
/datasets/git/merge-ort.c:1528:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'dir_marker' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while ((dir_marker = strrchr(dir, '/'))) {
                               ^
/datasets/git/merge-ort.c:1531:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                    dir))
                                                         ^
                                                          {
/datasets/git/merge-ort.c:1554:42: warning: backward branch (for loop) is ID-dependent due to variable reference to 'entry' and may cause performance degradation [altera-id-dependent-backward-branch]
                strintmap_for_each_entry(&copy, &iter, entry) {
                                                       ^
/datasets/git/merge-ort.c:1483:2: note: inferred assignment of ID-dependent value from ID-dependent 
        struct strmap_entry *entry;
        ^
/datasets/git/merge-ort.c:1557:26: warning: variable 'ci' is not initialized [cppcoreguidelines-init-variables]
                        struct conflict_info *ci;
                                              ^
                                                 = NULL
/datasets/git/merge-ort.c:1557:26: warning: variable name 'ci' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:1558:13: warning: variable 'dirmask' is not initialized [cppcoreguidelines-init-variables]
                        unsigned dirmask;
                                 ^
                                         = 0
/datasets/git/merge-ort.c:1559:21: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
                        struct tree_desc t[3];
                                         ^
/datasets/git/merge-ort.c:1561:8: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                        int i;
                            ^
                              = 0
/datasets/git/merge-ort.c:1561:8: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:1578:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = 0; i < 3; i++, dirmask >>= 1) {
                        ^
/datasets/git/merge-ort.c:1578:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        for (i = 0; i < 3; i++, dirmask >>= 1) {
                                                ^           ~
/datasets/git/merge-ort.c:1579:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (i == 1 && ci->match_mask == 3)
                                                                  ^
                                                                   {
/datasets/git/merge-ort.c:1581:42: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                else if (i == 2 && ci->match_mask == 5)
                                                                     ^
/datasets/git/merge-ort.c:1581:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                else if (i == 2 && ci->match_mask == 5)
                                                                       ^
                                                                        {
/datasets/git/merge-ort.c:1583:42: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                else if (i == 2 && ci->match_mask == 6)
                                                                     ^
/datasets/git/merge-ort.c:1583:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                else if (i == 2 && ci->match_mask == 6)
                                                                       ^
                                                                        {
/datasets/git/merge-ort.c:1587:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        if (dirmask & 1)
                                            ^         ~
/datasets/git/merge-ort.c:1587:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        if (dirmask & 1)
                                                        ^
                                                         {
/datasets/git/merge-ort.c:1598:36: warning: 0x07 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            renames->dir_rename_mask == 0x07)
                                                        ^
/datasets/git/merge-ort.c:1598:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            renames->dir_rename_mask == 0x07)
                                                             ^
                                                              {
/datasets/git/merge-ort.c:1600:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/merge-ort.c:1603:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = MERGE_BASE; i <= MERGE_SIDE2; i++)
                        ^
/datasets/git/merge-ort.c:1603:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (i = MERGE_BASE; i <= MERGE_SIDE2; i++)
                                                                   ^
                                                                    {
/datasets/git/merge-ort.c:1606:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ret < 0)
                                    ^
                                     {
/datasets/git/merge-ort.c:1610:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                strintmap_for_each_entry(&renames->deferred[side].possible_trivial_merges,
                ^
/datasets/git/./strmap.h:134:2: note: expanded from macro 'strintmap_for_each_entry'
        strmap_for_each_entry(&(mystrmap)->map, iter, var)
        ^
/datasets/git/./strmap.h:112:2: note: expanded from macro 'strmap_for_each_entry'
        hashmap_for_each_entry(&(mystrmap)->map, iter, var, ent)
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/merge-ort.c:1611:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'entry' and may cause performance degradation [altera-id-dependent-backward-branch]
                                         &iter, entry) {
                                                ^
/datasets/git/merge-ort.c:1613:26: warning: variable 'ci' is not initialized [cppcoreguidelines-init-variables]
                        struct conflict_info *ci;
                                              ^
                                                 = NULL
/datasets/git/merge-ort.c:1613:26: warning: variable name 'ci' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:1623:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!optimization_okay || path_count_after)
                                                           ^
                                                            {
/datasets/git/merge-ort.c:1624:23: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        path_count_after = strmap_get_size(&opt->priv->paths);
                                           ^
/datasets/git/merge-ort.c:1647:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else if (renames->redo_after_renames == 2)
                                                    ^
                                                     {
/datasets/git/merge-ort.c:1657:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/merge-ort.c:1658:19: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
        struct tree_desc t[3];
                         ^
/datasets/git/merge-ort.c:1677:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret == 0)
                     ^
                      {
/datasets/git/merge-ort.c:1688:9: warning: 2 adjacent parameters of 'find_first_merges' of similar type ('struct commit *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                             struct commit *a,
                             ^~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:1688:24: note: the first parameter in the range is 'a'
                             struct commit *a,
                                            ^
/datasets/git/merge-ort.c:1689:24: note: the last parameter in the range is 'b'
                             struct commit *b,
                                            ^
/datasets/git/merge-ort.c:1688:24: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
                             struct commit *a,
                                            ^
/datasets/git/merge-ort.c:1689:24: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
                             struct commit *b,
                                            ^
/datasets/git/merge-ort.c:1692:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, j;
        ^~~~~~~~~
/datasets/git/merge-ort.c:1692:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, j;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:1692:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:1692:9: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int i, j;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:1692:9: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:1694:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/merge-ort.c:1695:6: warning: variable 'contains_another' is not initialized [cppcoreguidelines-init-variables]
        int contains_another;
            ^
                             = 0
/datasets/git/merge-ort.c:1703:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(result, 0, sizeof(struct object_array));
        ^~~~~~
/datasets/git/merge-ort.c:1703:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(result, 0, sizeof(struct object_array));
        ^~~~~~
/datasets/git/merge-ort.c:1704:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&rev_opts, 0, sizeof(rev_opts));
        ^~~~~~
/datasets/git/merge-ort.c:1704:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&rev_opts, 0, sizeof(rev_opts));
        ^~~~~~
/datasets/git/merge-ort.c:1715:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prepare_revision_walk(&revs))
                                         ^
                                          {
/datasets/git/merge-ort.c:1717:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((commit = get_revision(&revs)) != NULL) {
        ^
/datasets/git/merge-ort.c:1717:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'commit' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((commit = get_revision(&revs)) != NULL) {
               ^
/datasets/git/merge-ort.c:1718:18: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                struct object *o = &(commit->object);
                               ^
/datasets/git/merge-ort.c:1719:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (repo_in_merge_bases(repo, b, commit))
                                                         ^
                                                          {
/datasets/git/merge-ort.c:1729:18: warning: variable name 'm1' is too short, expected at least 3 characters [readability-identifier-length]
                struct commit *m1 = (struct commit *) merges.objects[i].item;
                               ^
/datasets/git/merge-ort.c:1732:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (j = 0; j < merges.nr; j++) {
                ^
/datasets/git/merge-ort.c:1733:19: warning: variable name 'm2' is too short, expected at least 3 characters [readability-identifier-length]
                        struct commit *m2 = (struct commit *) merges.objects[j].item;
                                       ^
/datasets/git/merge-ort.c:1740:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!contains_another)
                                      ^
                                       {
/datasets/git/merge-ort.c:1746:9: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return result->nr;
               ^
/datasets/git/merge-ort.c:1749:12: warning: function 'merge_submodule' has cognitive complexity of 26 (threshold 25) [readability-function-cognitive-complexity]
static int merge_submodule(struct merge_options *opt,
           ^
/datasets/git/merge-ort.c:1769:39: note: +1, including nesting penalty of 0, nesting level increased to 1
        oidcpy(result, opt->priv->call_depth ? o : a);
                                             ^
/datasets/git/merge-ort.c:1772:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (is_null_oid(a) || is_null_oid(b))
        ^
/datasets/git/merge-ort.c:1772:21: note: +1
        if (is_null_oid(a) || is_null_oid(b))
                           ^
/datasets/git/merge-ort.c:1775:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((sub_not_initialized = repo_submodule_init(&subrepo,
        ^
/datasets/git/merge-ort.c:1782:3: note: +1
                goto cleanup;
                ^
/datasets/git/merge-ort.c:1785:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (is_null_oid(o)) {
        ^
/datasets/git/merge-ort.c:1790:3: note: +1
                goto cleanup;
                ^
/datasets/git/merge-ort.c:1793:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!(commit_o = lookup_commit_reference(&subrepo, o)) ||
        ^
/datasets/git/merge-ort.c:1794:57: note: +1
            !(commit_a = lookup_commit_reference(&subrepo, a)) ||
                                                               ^
/datasets/git/merge-ort.c:1801:3: note: +1
                goto cleanup;
                ^
/datasets/git/merge-ort.c:1805:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!repo_in_merge_bases(&subrepo, commit_o, commit_a) ||
        ^
/datasets/git/merge-ort.c:1805:57: note: +1
        if (!repo_in_merge_bases(&subrepo, commit_o, commit_a) ||
                                                               ^
/datasets/git/merge-ort.c:1812:3: note: +1
                goto cleanup;
                ^
/datasets/git/merge-ort.c:1816:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (repo_in_merge_bases(&subrepo, commit_a, commit_b)) {
        ^
/datasets/git/merge-ort.c:1823:3: note: +1
                goto cleanup;
                ^
/datasets/git/merge-ort.c:1825:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (repo_in_merge_bases(&subrepo, commit_b, commit_a)) {
        ^
/datasets/git/merge-ort.c:1832:3: note: +1
                goto cleanup;
                ^
/datasets/git/merge-ort.c:1843:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!search)
        ^
/datasets/git/merge-ort.c:1849:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        switch (parent_count) {
        ^
/datasets/git/merge-ort.c:1867:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < merges.nr; i++)
                ^
/datasets/git/merge-ort.c:1879:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!opt->priv->call_depth && !ret) {
        ^
/datasets/git/merge-ort.c:1879:29: note: +1
        if (!opt->priv->call_depth && !ret) {
                                   ^
/datasets/git/merge-ort.c:1887:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!sub_not_initialized) {
                ^
/datasets/git/merge-ort.c:1894:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!sub_not_initialized)
        ^
/datasets/git/merge-ort.c:1751:31: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                           const struct object_id *o,
                                                   ^
/datasets/git/merge-ort.c:1752:31: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
                           const struct object_id *a,
                                                   ^
/datasets/git/merge-ort.c:1753:31: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
                           const struct object_id *b,
                                                   ^
/datasets/git/merge-ort.c:1757:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/merge-ort.c:1759:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit *commit_o, *commit_a, *commit_b;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:1759:17: warning: variable 'commit_o' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit_o, *commit_a, *commit_b;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:1759:28: warning: variable 'commit_a' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit_o, *commit_a, *commit_b;
                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:1759:39: warning: variable 'commit_b' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit_o, *commit_a, *commit_b;
                                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:1760:6: warning: variable 'parent_count' is not initialized [cppcoreguidelines-init-variables]
        int parent_count;
            ^
                         = 0
/datasets/git/merge-ort.c:1763:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/merge-ort.c:1763:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:1772:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_null_oid(a) || is_null_oid(b))
                                             ^
                                              {
/datasets/git/merge-ort.c:1775:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if ((sub_not_initialized = repo_submodule_init(&subrepo,
             ^
/datasets/git/merge-ort.c:1775:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/merge-ort.c:1775:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/merge-ort.c:1793:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if (!(commit_o = lookup_commit_reference(&subrepo, o)) ||
              ^
/datasets/git/merge-ort.c:1793:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/merge-ort.c:1793:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/merge-ort.c:1794:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
            !(commit_a = lookup_commit_reference(&subrepo, a)) ||
              ^
/datasets/git/merge-ort.c:1794:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/merge-ort.c:1794:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/merge-ort.c:1795:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
            !(commit_b = lookup_commit_reference(&subrepo, b))) {
              ^
/datasets/git/merge-ort.c:1795:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/merge-ort.c:1795:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/merge-ort.c:1843:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!search)
                    ^
                     {
/datasets/git/merge-ort.c:1867:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < merges.nr; i++)
                ^
/datasets/git/merge-ort.c:1867:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < merges.nr; i++)
                                               ^
                                                {
/datasets/git/merge-ort.c:1881:37: warning: variable 'util' is not initialized [cppcoreguidelines-init-variables]
                struct conflicted_submodule_item *util;
                                                  ^
                                                       = NULL
/datasets/git/merge-ort.c:1882:15: warning: variable 'abbrev' is not initialized [cppcoreguidelines-init-variables]
                const char *abbrev;
                            ^
                                   = NULL
/datasets/git/merge-ort.c:1894:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!sub_not_initialized)
                                 ^
                                  {
/datasets/git/merge-ort.c:1907:22: warning: variable 'mi' is not initialized [cppcoreguidelines-init-variables]
        struct merged_info *mi;
                            ^
                               = NULL
/datasets/git/merge-ort.c:1907:22: warning: variable name 'mi' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:1909:22: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
        struct cache_entry *ce;
                            ^
                               = NULL
/datasets/git/merge-ort.c:1909:22: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:1913:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opt->renormalize)
                              ^
                               {
/datasets/git/merge-ort.c:1917:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!mi)
                ^
                 {
/datasets/git/merge-ort.c:1927:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(ce->name, GITATTRIBUTES_FILE, len);
                ^~~~~~
/datasets/git/merge-ort.c:1927:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(ce->name, GITATTRIBUTES_FILE, len);
                ^~~~~~
/datasets/git/merge-ort.c:1929:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                ADD_CACHE_OK_TO_ADD | ADD_CACHE_OK_TO_REPLACE);
                                ^
/datasets/git/./refs/../cache.h:840:29: note: expanded from macro 'ADD_CACHE_OK_TO_ADD'
#define ADD_CACHE_OK_TO_ADD 1           /* Ok to add */
                            ^
/datasets/git/merge-ort.c:1932:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int stage, len;
                ^~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:1932:7: warning: variable 'stage' is not initialized [cppcoreguidelines-init-variables]
                int stage, len;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:1932:14: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
                int stage, len;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:1933:25: warning: variable 'ci' is not initialized [cppcoreguidelines-init-variables]
                struct conflict_info *ci;
                                      ^
                                         = NULL
/datasets/git/merge-ort.c:1933:25: warning: variable name 'ci' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:1935:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                ASSIGN_AND_VERIFY_CI(ci, mi);
                ^
/datasets/git/merge-ort.c:613:38: note: expanded from macro 'ASSIGN_AND_VERIFY_CI'
#define ASSIGN_AND_VERIFY_CI(ci, mi) do {    \
                                     ^
/datasets/git/merge-ort.c:1936:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (stage = 0; stage < 3; stage++) {
                ^
/datasets/git/merge-ort.c:1937:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        unsigned stage_mask = (1 << stage);
                                               ^
/datasets/git/merge-ort.c:1939:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!(ci->filemask & stage_mask))
                                                         ^
                                                          {
/datasets/git/merge-ort.c:1947:4: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memcpy(ce->name, GITATTRIBUTES_FILE, len);
                        ^~~~~~
/datasets/git/merge-ort.c:1947:4: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                        memcpy(ce->name, GITATTRIBUTES_FILE, len);
                        ^~~~~~
/datasets/git/merge-ort.c:1949:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        ADD_CACHE_OK_TO_ADD | ADD_CACHE_OK_TO_REPLACE);
                                        ^
/datasets/git/./refs/../cache.h:840:29: note: expanded from macro 'ADD_CACHE_OK_TO_ADD'
#define ADD_CACHE_OK_TO_ADD 1           /* Ok to add */
                            ^
/datasets/git/merge-ort.c:1958:33: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                      const struct object_id *o,
                                              ^
/datasets/git/merge-ort.c:1959:33: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
                      const struct object_id *a,
                                              ^
/datasets/git/merge-ort.c:1960:33: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
                      const struct object_id *b,
                                              ^
/datasets/git/merge-ort.c:1965:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        mmfile_t orig, src1, src2;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:1967:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *base, *name1, *name2;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:1967:8: warning: variable 'base' is not initialized [cppcoreguidelines-init-variables]
        char *base, *name1, *name2;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:1967:15: warning: variable 'name1' is not initialized [cppcoreguidelines-init-variables]
        char *base, *name1, *name2;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:1967:23: warning: variable 'name2' is not initialized [cppcoreguidelines-init-variables]
        char *base, *name1, *name2;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:1968:23: warning: variable 'merge_status' is not initialized [cppcoreguidelines-init-variables]
        enum ll_merge_result merge_status;
                             ^
/datasets/git/merge-ort.c:1970:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opt->priv->attr_index.initialized)
                                               ^
                                                {
/datasets/git/merge-ort.c:2012:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (merge_status == LL_MERGE_BINARY_CONFLICT)
                                                     ^
                                                      {
/datasets/git/merge-ort.c:2027:12: warning: function 'handle_content_merge' has cognitive complexity of 41 (threshold 25) [readability-function-cognitive-complexity]
static int handle_content_merge(struct merge_options *opt,
           ^
/datasets/git/merge-ort.c:2056:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert((S_IFMT & a->mode) == (S_IFMT & b->mode));
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:2056:2: note: nesting level increased to 1
        assert((S_IFMT & a->mode) == (S_IFMT & b->mode));
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:2056:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert((S_IFMT & a->mode) == (S_IFMT & b->mode));
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:2056:2: note: +1, nesting level increased to 2
        assert((S_IFMT & a->mode) == (S_IFMT & b->mode));
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:2059:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (a->mode == b->mode || a->mode == o->mode)
        ^
/datasets/git/merge-ort.c:2059:25: note: +1
        if (a->mode == b->mode || a->mode == o->mode)
                               ^
/datasets/git/merge-ort.c:2061:2: note: +1, nesting level increased to 1
        else {
        ^
/datasets/git/merge-ort.c:2063:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(S_ISREG(a->mode));
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:2063:3: note: nesting level increased to 2
                assert(S_ISREG(a->mode));
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:2063:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(S_ISREG(a->mode));
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:2063:3: note: +1, nesting level increased to 3
                assert(S_ISREG(a->mode));
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:2090:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (oideq(&a->oid, &b->oid) || oideq(&a->oid, &o->oid))
        ^
/datasets/git/merge-ort.c:2090:30: note: +1
        if (oideq(&a->oid, &b->oid) || oideq(&a->oid, &o->oid))
                                    ^
/datasets/git/merge-ort.c:2092:7: note: +1, nesting level increased to 1
        else if (oideq(&b->oid, &o->oid))
             ^
/datasets/git/merge-ort.c:2096:7: note: +1, nesting level increased to 1
        else if (S_ISREG(a->mode)) {
             ^
/datasets/git/merge-ort.c:2108:16: note: +2, including nesting penalty of 1, nesting level increased to 2
                                          two_way ? null_oid() : &o->oid,
                                                  ^
/datasets/git/merge-ort.c:2113:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((merge_status < 0) || !result_buf.ptr)
                ^
/datasets/git/merge-ort.c:2113:26: note: +1
                if ((merge_status < 0) || !result_buf.ptr)
                                       ^
/datasets/git/merge-ort.c:2116:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!ret &&
                ^
/datasets/git/merge-ort.c:2116:12: note: +1
                if (!ret &&
                         ^
/datasets/git/merge-ort.c:2123:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ret)
                ^
/datasets/git/merge-ort.c:2128:9: note: +1, nesting level increased to 1
        } else if (S_ISGITLINK(a->mode)) {
               ^
/datasets/git/merge-ort.c:2131:14: note: +2, including nesting penalty of 1, nesting level increased to 2
                                        two_way ? null_oid() : &o->oid,
                                                ^
/datasets/git/merge-ort.c:2133:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opt->priv->call_depth && two_way && !clean) {
                ^
/datasets/git/merge-ort.c:2133:40: note: +1
                if (opt->priv->call_depth && two_way && !clean) {
                                                     ^
/datasets/git/merge-ort.c:2137:9: note: +1, nesting level increased to 1
        } else if (S_ISLNK(a->mode)) {
               ^
/datasets/git/merge-ort.c:2138:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opt->priv->call_depth) {
                ^
/datasets/git/merge-ort.c:2142:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/merge-ort.c:2143:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        switch (opt->recursive_variant) {
                        ^
/datasets/git/merge-ort.c:2156:4: note: +1, nesting level increased to 1
        } else
          ^
/datasets/git/merge-ort.c:2029:32: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                                const struct version_info *o,
                                                           ^
/datasets/git/merge-ort.c:2030:32: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
                                const struct version_info *a,
                                                           ^
/datasets/git/merge-ort.c:2031:32: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
                                const struct version_info *b,
                                                           ^
/datasets/git/merge-ort.c:2059:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (a->mode == b->mode || a->mode == o->mode)
                                                     ^
                                                      {
/datasets/git/merge-ort.c:2090:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oideq(&a->oid, &b->oid) || oideq(&a->oid, &o->oid))
                                                               ^
                                                                {
/datasets/git/merge-ort.c:2092:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (oideq(&b->oid, &o->oid))
                                         ^
                                          {
/datasets/git/merge-ort.c:2098:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int ret = 0, merge_status;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:2098:16: warning: variable 'merge_status' is not initialized [cppcoreguidelines-init-variables]
                int ret = 0, merge_status;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:2099:7: warning: variable 'two_way' is not initialized [cppcoreguidelines-init-variables]
                int two_way;
                    ^
                            = 0
/datasets/git/merge-ort.c:2113:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((merge_status < 0) || !result_buf.ptr)
                                                          ^
                                                           {
/datasets/git/merge-ort.c:2118:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                      OBJ_BLOB, &result->oid))
                                                              ^
                                                               {
/datasets/git/merge-ort.c:2123:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret)
                        ^
                         {
/datasets/git/merge-ort.c:2125:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                clean &= (merge_status == 0);
                ^        ~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:2128:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        } else if (S_ISGITLINK(a->mode)) {
                   ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/merge-ort.c:2156:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/merge-ort.c:2160:9: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return clean;
               ^
/datasets/git/merge-ort.c:2168:8: warning: accessing fields in struct 'collision_info' is inefficient due to padding; only needs 44 bytes but is using 48 bytes [altera-struct-pack-align]
struct collision_info {
       ^
/datasets/git/merge-ort.c:2168:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'collision_info'
/datasets/git/merge-ort.c:2168:8: warning: accessing fields in struct 'collision_info' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct collision_info {
       ^
/datasets/git/merge-ort.c:2168:8: note: use "__attribute__((aligned(64)))" to align struct 'collision_info' to 64 bytes
/datasets/git/merge-ort.c:2186:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int oldlen, newlen, new_dir_len;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:2186:6: warning: variable 'oldlen' is not initialized [cppcoreguidelines-init-variables]
        int oldlen, newlen, new_dir_len;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:2186:14: warning: variable 'newlen' is not initialized [cppcoreguidelines-init-variables]
        int oldlen, newlen, new_dir_len;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:2186:22: warning: variable 'new_dir_len' is not initialized [cppcoreguidelines-init-variables]
        int oldlen, newlen, new_dir_len;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:2188:11: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        oldlen = strlen(old_dir);
                 ^
/datasets/git/merge-ort.c:2189:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*new_dir == '\0')
                             ^
                              {
/datasets/git/merge-ort.c:2199:16: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        new_dir_len = strlen(new_dir);
                      ^
/datasets/git/merge-ort.c:2200:11: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        newlen = new_dir_len + (strlen(old_path) - oldlen) + 1;
                 ^
/datasets/git/merge-ort.c:2210:22: warning: variable name 'mi' is too short, expected at least 3 characters [readability-identifier-length]
        struct merged_info *mi = strmap_get(paths, path);
                            ^
/datasets/git/merge-ort.c:2211:24: warning: variable 'ci' is not initialized [cppcoreguidelines-init-variables]
        struct conflict_info *ci;
                              ^
                                 = NULL
/datasets/git/merge-ort.c:2211:24: warning: variable name 'ci' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:2212:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!mi)
                ^
                 {
/datasets/git/merge-ort.c:2214:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        INITIALIZE_CI(ci, mi);
        ^
/datasets/git/merge-ort.c:609:31: note: expanded from macro 'INITIALIZE_CI'
#define INITIALIZE_CI(ci, mi) do {                                           \
                              ^
/datasets/git/merge-ort.c:2215:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return mi->clean || (side_mask & (ci->filemask | ci->dirmask));
                             ^           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:2231:25: warning: variable 'c_info' is not initialized [cppcoreguidelines-init-variables]
        struct collision_info *c_info;
                               ^
                                      = NULL
/datasets/git/merge-ort.c:2240:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!new_path)
                      ^
                       {
/datasets/git/merge-ort.c:2249:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!c_info)
                    ^
                     {
/datasets/git/merge-ort.c:2261:54: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        } else if (path_in_way(&opt->priv->paths, new_path, 1 << side_index)) {
                                                            ^
/datasets/git/merge-ort.c:2301:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct strmap_entry *entry;
        ^
/datasets/git/merge-ort.c:2301:23: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
        struct strmap_entry *entry;
                             ^
                                   = NULL
/datasets/git/merge-ort.c:2315:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                struct strmap_entry *count_entry;
                ^
/datasets/git/merge-ort.c:2311:65: warning: backward branch (for loop) is ID-dependent due to variable reference to 'entry' and may cause performance degradation [altera-id-dependent-backward-branch]
        strmap_for_each_entry(&renames->dir_rename_count[side], &iter, entry) {
                                                                       ^
/datasets/git/merge-ort.c:2315:24: warning: variable 'count_entry' is not initialized [cppcoreguidelines-init-variables]
                struct strmap_entry *count_entry;
                                     ^
                                                 = NULL
/datasets/git/merge-ort.c:2320:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                strintmap_for_each_entry(counts, &count_iter, count_entry) {
                ^
/datasets/git/./strmap.h:134:2: note: expanded from macro 'strintmap_for_each_entry'
        strmap_for_each_entry(&(mystrmap)->map, iter, var)
        ^
/datasets/git/./strmap.h:112:2: note: expanded from macro 'strmap_for_each_entry'
        hashmap_for_each_entry(&(mystrmap)->map, iter, var, ent)
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/merge-ort.c:2320:49: warning: backward branch (for loop) is ID-dependent due to variable reference to 'count_entry' and may cause performance degradation [altera-id-dependent-backward-branch]
                strintmap_for_each_entry(counts, &count_iter, count_entry) {
                                                              ^
/datasets/git/merge-ort.c:2324:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (count == max)
                                         ^
                                          {
/datasets/git/merge-ort.c:2327:11: warning: narrowing conversion from 'intptr_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                max = count;
                                      ^
/datasets/git/merge-ort.c:2332:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (max == 0)
                             ^
                              {
/datasets/git/merge-ort.c:2355:23: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
        struct strmap_entry *entry;
                             ^
                                   = NULL
/datasets/git/merge-ort.c:2360:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/merge-ort.c:2360:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:2362:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        strmap_for_each_entry(side1_dir_renames, &iter, entry) {
        ^
/datasets/git/./strmap.h:112:2: note: expanded from macro 'strmap_for_each_entry'
        hashmap_for_each_entry(&(mystrmap)->map, iter, var, ent)
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/merge-ort.c:2362:50: warning: backward branch (for loop) is ID-dependent due to variable reference to 'entry' and may cause performance degradation [altera-id-dependent-backward-branch]
        strmap_for_each_entry(side1_dir_renames, &iter, entry) {
                                                        ^
/datasets/git/merge-ort.c:2363:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strmap_contains(side2_dir_renames, entry->key))
                                                                   ^
                                                                    {
/datasets/git/merge-ort.c:2367:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < duplicated.nr; i++) {
        ^
/datasets/git/merge-ort.c:2378:8: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
        char *end;
              ^
                  = NULL
/datasets/git/merge-ort.c:2379:23: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
        struct strmap_entry *e = NULL;
                             ^
/datasets/git/merge-ort.c:2381:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((end = strrchr(temp, '/'))) {
        ^
/datasets/git/merge-ort.c:2381:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'end' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((end = strrchr(temp, '/'))) {
               ^
/datasets/git/merge-ort.c:2384:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (e)
                      ^
                       {
/datasets/git/merge-ort.c:2391:32: warning: 2 adjacent parameters of 'compute_collisions' of similar type ('struct strmap *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void compute_collisions(struct strmap *collisions,
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:2391:47: note: the first parameter in the range is 'collisions'
static void compute_collisions(struct strmap *collisions,
                                              ^~~~~~~~~~
/datasets/git/merge-ort.c:2392:26: note: the last parameter in the range is 'dir_renames'
                               struct strmap *dir_renames,
                                              ^~~~~~~~~~~
/datasets/git/merge-ort.c:2395:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/merge-ort.c:2395:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:2398:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strmap_empty(dir_renames))
                                      ^
                                       {
/datasets/git/merge-ort.c:2417:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < pairs->nr; ++i) {
        ^
/datasets/git/merge-ort.c:2418:24: warning: variable 'rename_info' is not initialized [cppcoreguidelines-init-variables]
                struct strmap_entry *rename_info;
                                     ^
                                                 = NULL
/datasets/git/merge-ort.c:2419:26: warning: variable 'collision_info' is not initialized [cppcoreguidelines-init-variables]
                struct collision_info *collision_info;
                                       ^
                                                      = NULL
/datasets/git/merge-ort.c:2420:9: warning: variable 'new_path' is not initialized [cppcoreguidelines-init-variables]
                char *new_path;
                      ^
                               = NULL
/datasets/git/merge-ort.c:2447:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct strmap_entry *entry;
        ^
/datasets/git/merge-ort.c:2423:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pair->status != 'A' && pair->status != 'R')
                                                               ^
                                                                {
/datasets/git/merge-ort.c:2426:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!rename_info)
                                 ^
                                  {
/datasets/git/merge-ort.c:2447:23: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
        struct strmap_entry *entry;
                             ^
                                   = NULL
/datasets/git/merge-ort.c:2450:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        strmap_for_each_entry(collisions, &iter, entry) {
        ^
/datasets/git/./strmap.h:112:2: note: expanded from macro 'strmap_for_each_entry'
        hashmap_for_each_entry(&(mystrmap)->map, iter, var, ent)
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/merge-ort.c:2450:43: warning: backward branch (for loop) is ID-dependent due to variable reference to 'entry' and may cause performance degradation [altera-id-dependent-backward-branch]
        strmap_for_each_entry(collisions, &iter, entry) {
                                                 ^
/datasets/git/merge-ort.c:2468:6: warning: 3 adjacent parameters of 'check_for_directory_rename' of similar type ('struct strmap *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                        struct strmap *dir_renames,
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:2468:21: note: the first parameter in the range is 'dir_renames'
                                        struct strmap *dir_renames,
                                                       ^~~~~~~~~~~
/datasets/git/merge-ort.c:2470:21: note: the last parameter in the range is 'collisions'
                                        struct strmap *collisions,
                                                       ^~~~~~~~~~
/datasets/git/merge-ort.c:2473:8: warning: variable 'new_path' is not initialized [cppcoreguidelines-init-variables]
        char *new_path;
              ^
                       = NULL
/datasets/git/merge-ort.c:2474:23: warning: variable 'rename_info' is not initialized [cppcoreguidelines-init-variables]
        struct strmap_entry *rename_info;
                             ^
                                         = NULL
/datasets/git/merge-ort.c:2475:23: warning: variable 'otherinfo' is not initialized [cppcoreguidelines-init-variables]
        struct strmap_entry *otherinfo;
                             ^
                                       = NULL
/datasets/git/merge-ort.c:2476:14: warning: variable 'new_dir' is not initialized [cppcoreguidelines-init-variables]
        const char *new_dir;
                    ^
                            = NULL
/datasets/git/merge-ort.c:2477:19: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int other_side = 3 - side_index;
                         ^
/datasets/git/merge-ort.c:2483:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strmap_empty(dir_renames))
                                      ^
                                       {
/datasets/git/merge-ort.c:2485:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strmap_get(&collisions[other_side], path))
                                                      ^
                                                       {
/datasets/git/merge-ort.c:2488:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!rename_info)
                         ^
                          {
/datasets/git/merge-ort.c:2529:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        *clean_merge &= (new_path != NULL);
        ^~~~~~~~~~~~
/datasets/git/merge-ort.c:2534:13: warning: function 'apply_directory_rename_modifications' has cognitive complexity of 83 (threshold 25) [readability-function-cognitive-complexity]
static void apply_directory_rename_modifications(struct merge_options *opt,
            ^
/datasets/git/merge-ort.c:2573:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        VERIFY_CI(ci);
        ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:2573:2: note: +1
        VERIFY_CI(ci);
        ^
/datasets/git/merge-ort.c:612:33: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                                ^
/datasets/git/merge-ort.c:2573:2: note: nesting level increased to 1
        VERIFY_CI(ci);
        ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:2573:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        VERIFY_CI(ci);
        ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:2573:2: note: +1
        VERIFY_CI(ci);
        ^
/datasets/git/merge-ort.c:612:33: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                                ^
/datasets/git/merge-ort.c:2573:2: note: +1, nesting level increased to 2
        VERIFY_CI(ci);
        ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:2580:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (1) {
        ^
/datasets/git/merge-ort.c:2583:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (last_slash) {
                ^
/datasets/git/merge-ort.c:2587:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/merge-ort.c:2594:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (entry) {
                ^
/datasets/git/merge-ort.c:2605:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = dirs_to_insert.nr-1; i >= 0; --i) {
        ^
/datasets/git/merge-ort.c:2614:45: note: +2, including nesting penalty of 1, nesting level increased to 2
                dir_ci->merged.basename_offset = (len > 0 ? len+1 : len);
                                                          ^
/datasets/git/merge-ort.c:2621:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(ci->filemask == 2 || ci->filemask == 4);
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:2621:27: note: +1
        assert(ci->filemask == 2 || ci->filemask == 4);
                                 ^
/datasets/git/merge-ort.c:2621:2: note: nesting level increased to 1
        assert(ci->filemask == 2 || ci->filemask == 4);
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:2621:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(ci->filemask == 2 || ci->filemask == 4);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:2621:27: note: +1
        assert(ci->filemask == 2 || ci->filemask == 4);
                                 ^
/datasets/git/merge-ort.c:2621:2: note: +1, nesting level increased to 2
        assert(ci->filemask == 2 || ci->filemask == 4);
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:2622:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(ci->dirmask == 0 || ci->dirmask == 1);
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:2622:26: note: +1
        assert(ci->dirmask == 0 || ci->dirmask == 1);
                                ^
/datasets/git/merge-ort.c:2622:2: note: nesting level increased to 1
        assert(ci->dirmask == 0 || ci->dirmask == 1);
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:2622:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(ci->dirmask == 0 || ci->dirmask == 1);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:2622:26: note: +1
        assert(ci->dirmask == 0 || ci->dirmask == 1);
                                ^
/datasets/git/merge-ort.c:2622:2: note: +1, nesting level increased to 2
        assert(ci->dirmask == 0 || ci->dirmask == 1);
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:2623:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ci->dirmask == 0)
        ^
/datasets/git/merge-ort.c:2625:2: note: +1, nesting level increased to 1
        else {
        ^
/datasets/git/merge-ort.c:2634:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(!new_ci->match_mask);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:2634:3: note: nesting level increased to 2
                assert(!new_ci->match_mask);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:2634:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(!new_ci->match_mask);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:2634:3: note: +1, nesting level increased to 3
                assert(!new_ci->match_mask);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:2645:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = MERGE_BASE; i <= MERGE_SIDE2; i++) {
                ^
/datasets/git/merge-ort.c:2646:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ci->dirmask & (1 << i))
                        ^
/datasets/git/merge-ort.c:2657:47: note: +1, including nesting penalty of 0, nesting level increased to 1
        branch_with_new_path   = (ci->filemask == 2) ? opt->branch1 : opt->branch2;
                                                     ^
/datasets/git/merge-ort.c:2658:47: note: +1, including nesting penalty of 0, nesting level increased to 1
        branch_with_dir_rename = (ci->filemask == 2) ? opt->branch2 : opt->branch1;
                                                     ^
/datasets/git/merge-ort.c:2663:40: note: +1, including nesting penalty of 0, nesting level increased to 1
        ci->merged.basename_offset = (len > 0 ? len+1 : len);
                                              ^
/datasets/git/merge-ort.c:2665:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!new_ci) {
        ^
/datasets/git/merge-ort.c:2668:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/merge-ort.c:2672:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                VERIFY_CI(new_ci);
                ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:2672:3: note: +1
                VERIFY_CI(new_ci);
                ^
/datasets/git/merge-ort.c:612:33: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                                ^
/datasets/git/merge-ort.c:2672:3: note: nesting level increased to 2
                VERIFY_CI(new_ci);
                ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:2672:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                VERIFY_CI(new_ci);
                ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:2672:3: note: +1
                VERIFY_CI(new_ci);
                ^
/datasets/git/merge-ort.c:612:33: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                                ^
/datasets/git/merge-ort.c:2672:3: note: +1, nesting level increased to 3
                VERIFY_CI(new_ci);
                ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:2673:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(ci->filemask == 2 || ci->filemask == 4);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:2673:28: note: +1
                assert(ci->filemask == 2 || ci->filemask == 4);
                                         ^
/datasets/git/merge-ort.c:2673:3: note: nesting level increased to 2
                assert(ci->filemask == 2 || ci->filemask == 4);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:2673:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(ci->filemask == 2 || ci->filemask == 4);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:2673:28: note: +1
                assert(ci->filemask == 2 || ci->filemask == 4);
                                         ^
/datasets/git/merge-ort.c:2673:3: note: +1, nesting level increased to 3
                assert(ci->filemask == 2 || ci->filemask == 4);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:2674:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert((new_ci->filemask & ci->filemask) == 0);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:2674:3: note: nesting level increased to 2
                assert((new_ci->filemask & ci->filemask) == 0);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:2674:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert((new_ci->filemask & ci->filemask) == 0);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:2674:3: note: +1, nesting level increased to 3
                assert((new_ci->filemask & ci->filemask) == 0);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:2675:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(!new_ci->merged.clean);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:2675:3: note: nesting level increased to 2
                assert(!new_ci->merged.clean);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:2675:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(!new_ci->merged.clean);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:2675:3: note: +1, nesting level increased to 3
                assert(!new_ci->merged.clean);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:2679:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (new_ci->dirmask)
                ^
/datasets/git/merge-ort.c:2689:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt->detect_directory_renames == MERGE_DIRECTORY_RENAMES_TRUE) {
        ^
/datasets/git/merge-ort.c:2691:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (pair->status == 'A')
                ^
/datasets/git/merge-ort.c:2699:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/merge-ort.c:2707:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/merge-ort.c:2713:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (pair->status == 'A')
                ^
/datasets/git/merge-ort.c:2722:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/merge-ort.c:2562:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct conflict_info *ci, *new_ci;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:2562:24: warning: variable 'ci' is not initialized [cppcoreguidelines-init-variables]
        struct conflict_info *ci, *new_ci;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:2562:24: warning: variable name 'ci' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:2562:29: warning: variable 'new_ci' is not initialized [cppcoreguidelines-init-variables]
        struct conflict_info *ci, *new_ci;
                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:2563:23: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
        struct strmap_entry *entry;
                             ^
                                   = NULL
/datasets/git/merge-ort.c:2564:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *branch_with_new_path, *branch_with_dir_rename;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:2564:14: warning: variable 'branch_with_new_path' is not initialized [cppcoreguidelines-init-variables]
        const char *branch_with_new_path, *branch_with_dir_rename;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:2564:37: warning: variable 'branch_with_dir_rename' is not initialized [cppcoreguidelines-init-variables]
        const char *branch_with_new_path, *branch_with_dir_rename;
                                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:2566:14: warning: variable 'parent_name' is not initialized [cppcoreguidelines-init-variables]
        const char *parent_name;
                    ^
                                = NULL
/datasets/git/merge-ort.c:2567:14: warning: variable 'cur_path' is not initialized [cppcoreguidelines-init-variables]
        const char *cur_path;
                    ^
                             = NULL
/datasets/git/merge-ort.c:2568:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, len;
        ^~~~~~~~~~~
/datasets/git/merge-ort.c:2568:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, len;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:2568:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:2568:9: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int i, len;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:2577:7: warning: redundant cast to the same type [google-readability-casting]
        free((char*)new_path);
             ^~~~~~~
/datasets/git/merge-ort.c:2580:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/merge-ort.c:2568:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int i, len;
        ^
/datasets/git/merge-ort.c:2605:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = dirs_to_insert.nr-1; i >= 0; --i) {
        ^
/datasets/git/merge-ort.c:2605:11: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        for (i = dirs_to_insert.nr-1; i >= 0; --i) {
                 ^
/datasets/git/merge-ort.c:2605:32: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = dirs_to_insert.nr-1; i >= 0; --i) {
                                      ^
/datasets/git/merge-ort.c:2606:25: warning: variable 'dir_ci' is not initialized [cppcoreguidelines-init-variables]
                struct conflict_info *dir_ci;
                                      ^
                                             = NULL
/datasets/git/merge-ort.c:2612:9: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                len = strlen(parent_name);
                      ^
/datasets/git/merge-ort.c:2623:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ci->dirmask == 0)
                             ^
                              {
/datasets/git/merge-ort.c:2633:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(new_ci, ci, sizeof(*ci));
                ^~~~~~
/datasets/git/merge-ort.c:2633:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(new_ci, ci, sizeof(*ci));
                ^~~~~~
/datasets/git/merge-ort.c:2645:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = MERGE_BASE; i <= MERGE_SIDE2; i++) {
                ^
/datasets/git/merge-ort.c:2645:24: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = MERGE_BASE; i <= MERGE_SIDE2; i++) {
                                     ^
/datasets/git/merge-ort.c:2646:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (ci->dirmask & (1 << i))
                            ^             ~~~~~~~~
/datasets/git/merge-ort.c:2646:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (ci->dirmask & (1 << i))
                                           ^
/datasets/git/merge-ort.c:2646:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ci->dirmask & (1 << i))
                                                   ^
                                                    {
/datasets/git/merge-ort.c:2662:8: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        len = strlen(parent_name);
              ^
/datasets/git/merge-ort.c:2669:7: warning: variable 'index' is not initialized [cppcoreguidelines-init-variables]
                int index;
                    ^
                          = 0
/datasets/git/merge-ort.c:2679:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (new_ci->dirmask)
                                    ^
                                     {
/datasets/git/merge-ort.c:2681:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                index = (ci->filemask >> 1);
                         ^               ~
/datasets/git/merge-ort.c:2691:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pair->status == 'A')
                                        ^
                                         {
/datasets/git/merge-ort.c:2699:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/merge-ort.c:2713:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pair->status == 'A')
                                        ^
                                         {
/datasets/git/merge-ort.c:2722:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/merge-ort.c:2741:12: warning: function 'process_renames' has cognitive complexity of 159 (threshold 25) [readability-function-cognitive-complexity]
static int process_renames(struct merge_options *opt,
           ^
/datasets/git/merge-ort.c:2746:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < renames->nr; ++i) {
        ^
/datasets/git/merge-ort.c:2758:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (old_ent) {
                ^
/datasets/git/merge-ort.c:2763:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (new_ent) {
                ^
/datasets/git/merge-ort.c:2777:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!oldinfo || oldinfo->merged.clean)
                ^
/datasets/git/merge-ort.c:2777:16: note: +1
                if (!oldinfo || oldinfo->merged.clean)
                             ^
/datasets/git/merge-ort.c:2784:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (i + 1 < renames->nr &&
                ^
/datasets/git/merge-ort.c:2784:27: note: +1
                if (i + 1 < renames->nr &&
                                        ^
/datasets/git/merge-ort.c:2800:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        VERIFY_CI(base);
                        ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:2800:4: note: +1
                        VERIFY_CI(base);
                        ^
/datasets/git/merge-ort.c:612:33: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                                ^
/datasets/git/merge-ort.c:2800:4: note: nesting level increased to 3
                        VERIFY_CI(base);
                        ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:2800:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        VERIFY_CI(base);
                        ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:2800:4: note: +1
                        VERIFY_CI(base);
                        ^
/datasets/git/merge-ort.c:612:33: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                                ^
/datasets/git/merge-ort.c:2800:4: note: +1, nesting level increased to 4
                        VERIFY_CI(base);
                        ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:2801:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        VERIFY_CI(side1);
                        ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:2801:4: note: +1
                        VERIFY_CI(side1);
                        ^
/datasets/git/merge-ort.c:612:33: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                                ^
/datasets/git/merge-ort.c:2801:4: note: nesting level increased to 3
                        VERIFY_CI(side1);
                        ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:2801:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        VERIFY_CI(side1);
                        ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:2801:4: note: +1
                        VERIFY_CI(side1);
                        ^
/datasets/git/merge-ort.c:612:33: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                                ^
/datasets/git/merge-ort.c:2801:4: note: +1, nesting level increased to 4
                        VERIFY_CI(side1);
                        ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:2802:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        VERIFY_CI(side2);
                        ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:2802:4: note: +1
                        VERIFY_CI(side2);
                        ^
/datasets/git/merge-ort.c:612:33: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                                ^
/datasets/git/merge-ort.c:2802:4: note: nesting level increased to 3
                        VERIFY_CI(side2);
                        ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:2802:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        VERIFY_CI(side2);
                        ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:2802:4: note: +1
                        VERIFY_CI(side2);
                        ^
/datasets/git/merge-ort.c:612:33: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                                ^
/datasets/git/merge-ort.c:2802:4: note: +1, nesting level increased to 4
                        VERIFY_CI(side2);
                        ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:2804:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!strcmp(pathnames[1], pathnames[2])) {
                        ^
/datasets/git/merge-ort.c:2809:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                assert(side1 == side2);
                                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:2809:5: note: nesting level increased to 4
                                assert(side1 == side2);
                                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:2809:5: note: +5, including nesting penalty of 4, nesting level increased to 5
                                assert(side1 == side2);
                                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:2809:5: note: +1, nesting level increased to 5
                                assert(side1 == side2);
                                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:2824:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                for (j = 0; j < 3; j++)
                                ^
/datasets/git/merge-ort.c:2842:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (clean_merge < 0)
                        ^
/datasets/git/merge-ort.c:2844:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!clean_merge &&
                        ^
/datasets/git/merge-ort.c:2845:45: note: +1
                            merged.mode == side1->stages[1].mode &&
                                                                 ^
/datasets/git/merge-ort.c:2849:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (was_binary_blob) {
                        ^
/datasets/git/merge-ort.c:2894:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                VERIFY_CI(oldinfo);
                ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:2894:3: note: +1
                VERIFY_CI(oldinfo);
                ^
/datasets/git/merge-ort.c:612:33: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                                ^
/datasets/git/merge-ort.c:2894:3: note: nesting level increased to 2
                VERIFY_CI(oldinfo);
                ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:2894:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                VERIFY_CI(oldinfo);
                ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:2894:3: note: +1
                VERIFY_CI(oldinfo);
                ^
/datasets/git/merge-ort.c:612:33: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                                ^
/datasets/git/merge-ort.c:2894:3: note: +1, nesting level increased to 3
                VERIFY_CI(oldinfo);
                ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:2895:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                VERIFY_CI(newinfo);
                ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:2895:3: note: +1
                VERIFY_CI(newinfo);
                ^
/datasets/git/merge-ort.c:612:33: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                                ^
/datasets/git/merge-ort.c:2895:3: note: nesting level increased to 2
                VERIFY_CI(newinfo);
                ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:2895:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                VERIFY_CI(newinfo);
                ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:2895:3: note: +1
                VERIFY_CI(newinfo);
                ^
/datasets/git/merge-ort.c:612:33: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                                ^
/datasets/git/merge-ort.c:2895:3: note: +1, nesting level increased to 3
                VERIFY_CI(newinfo);
                ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:2897:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(target_index == 1 || target_index == 2);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:2897:28: note: +1
                assert(target_index == 1 || target_index == 2);
                                         ^
/datasets/git/merge-ort.c:2897:3: note: nesting level increased to 2
                assert(target_index == 1 || target_index == 2);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:2897:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(target_index == 1 || target_index == 2);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:2897:28: note: +1
                assert(target_index == 1 || target_index == 2);
                                         ^
/datasets/git/merge-ort.c:2897:3: note: +1, nesting level increased to 3
                assert(target_index == 1 || target_index == 2);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:2902:34: note: +1
                type_changed = !source_deleted &&
                                               ^
/datasets/git/merge-ort.c:2905:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (type_changed && collision) {
                ^
/datasets/git/merge-ort.c:2905:20: note: +1
                if (type_changed && collision) {
                                 ^
/datasets/git/merge-ort.c:2934:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (source_deleted) {
                ^
/datasets/git/merge-ort.c:2935:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (target_index == 1) {
                        ^
/datasets/git/merge-ort.c:2938:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/merge-ort.c:2944:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(source_deleted || oldinfo->filemask & old_sidemask);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:2944:25: note: +1
                assert(source_deleted || oldinfo->filemask & old_sidemask);
                                      ^
/datasets/git/merge-ort.c:2944:3: note: nesting level increased to 2
                assert(source_deleted || oldinfo->filemask & old_sidemask);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:2944:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(source_deleted || oldinfo->filemask & old_sidemask);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:2944:25: note: +1
                assert(source_deleted || oldinfo->filemask & old_sidemask);
                                      ^
/datasets/git/merge-ort.c:2944:3: note: +1, nesting level increased to 3
                assert(source_deleted || oldinfo->filemask & old_sidemask);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:2947:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (collision && !source_deleted) {
                ^
/datasets/git/merge-ort.c:2947:17: note: +1
                if (collision && !source_deleted) {
                              ^
/datasets/git/merge-ort.c:2963:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        VERIFY_CI(base);
                        ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:2963:4: note: +1
                        VERIFY_CI(base);
                        ^
/datasets/git/merge-ort.c:612:33: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                                ^
/datasets/git/merge-ort.c:2963:4: note: nesting level increased to 3
                        VERIFY_CI(base);
                        ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:2963:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        VERIFY_CI(base);
                        ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:2963:4: note: +1
                        VERIFY_CI(base);
                        ^
/datasets/git/merge-ort.c:612:33: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                                ^
/datasets/git/merge-ort.c:2963:4: note: +1, nesting level increased to 4
                        VERIFY_CI(base);
                        ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:2964:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        VERIFY_CI(side1);
                        ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:2964:4: note: +1
                        VERIFY_CI(side1);
                        ^
/datasets/git/merge-ort.c:612:33: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                                ^
/datasets/git/merge-ort.c:2964:4: note: nesting level increased to 3
                        VERIFY_CI(side1);
                        ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:2964:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        VERIFY_CI(side1);
                        ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:2964:4: note: +1
                        VERIFY_CI(side1);
                        ^
/datasets/git/merge-ort.c:612:33: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                                ^
/datasets/git/merge-ort.c:2964:4: note: +1, nesting level increased to 4
                        VERIFY_CI(side1);
                        ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:2965:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        VERIFY_CI(side2);
                        ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:2965:4: note: +1
                        VERIFY_CI(side2);
                        ^
/datasets/git/merge-ort.c:612:33: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                                ^
/datasets/git/merge-ort.c:2965:4: note: nesting level increased to 3
                        VERIFY_CI(side2);
                        ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:2965:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        VERIFY_CI(side2);
                        ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:2965:4: note: +1
                        VERIFY_CI(side2);
                        ^
/datasets/git/merge-ort.c:612:33: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                                ^
/datasets/git/merge-ort.c:2965:4: note: +1, nesting level increased to 4
                        VERIFY_CI(side2);
                        ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:2974:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (clean < 0)
                        ^
/datasets/git/merge-ort.c:2979:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!clean) {
                        ^
/datasets/git/merge-ort.c:2989:10: note: +1, nesting level increased to 2
                } else if (collision && source_deleted) {
                       ^
/datasets/git/merge-ort.c:2989:24: note: +1
                } else if (collision && source_deleted) {
                                     ^
/datasets/git/merge-ort.c:3005:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/merge-ort.c:3015:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (type_changed) {
                        ^
/datasets/git/merge-ort.c:3022:11: note: +1, nesting level increased to 3
                        } else if (source_deleted) {
                               ^
/datasets/git/merge-ort.c:3031:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/merge-ort.c:3041:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!type_changed) {
                ^
/datasets/git/merge-ort.c:2744:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int clean_merge = 1, i;
        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:2744:23: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int clean_merge = 1, i;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:2744:23: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:2747:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                const char *oldpath = NULL, *newpath;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:2747:32: warning: variable 'newpath' is not initialized [cppcoreguidelines-init-variables]
                const char *oldpath = NULL, *newpath;
                                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:2749:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                struct conflict_info *oldinfo = NULL, *newinfo = NULL;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:2750:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                struct strmap_entry *old_ent, *new_ent;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:2750:24: warning: variable 'old_ent' is not initialized [cppcoreguidelines-init-variables]
                struct strmap_entry *old_ent, *new_ent;
                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:2750:34: warning: variable 'new_ent' is not initialized [cppcoreguidelines-init-variables]
                struct strmap_entry *old_ent, *new_ent;
                                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:2751:16: warning: variable 'old_sidemask' is not initialized [cppcoreguidelines-init-variables]
                unsigned int old_sidemask;
                             ^
                                          = 0
/datasets/git/merge-ort.c:2752:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int target_index, other_source_index;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:2752:7: warning: variable 'target_index' is not initialized [cppcoreguidelines-init-variables]
                int target_index, other_source_index;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:2752:21: warning: variable 'other_source_index' is not initialized [cppcoreguidelines-init-variables]
                int target_index, other_source_index;
                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:2753:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int source_deleted, collision, type_changed;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:2753:7: warning: variable 'source_deleted' is not initialized [cppcoreguidelines-init-variables]
                int source_deleted, collision, type_changed;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:2753:23: warning: variable 'collision' is not initialized [cppcoreguidelines-init-variables]
                int source_deleted, collision, type_changed;
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:2753:34: warning: variable 'type_changed' is not initialized [cppcoreguidelines-init-variables]
                int source_deleted, collision, type_changed;
                                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:2754:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                const char *rename_branch = NULL, *delete_branch = NULL;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:2777:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!oldinfo || oldinfo->merged.clean)
                                                      ^
                                                       {
/datasets/git/merge-ort.c:2789:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        struct conflict_info *base, *side1, *side2;
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:2789:26: warning: variable 'base' is not initialized [cppcoreguidelines-init-variables]
                        struct conflict_info *base, *side1, *side2;
                                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:2789:33: warning: variable 'side1' is not initialized [cppcoreguidelines-init-variables]
                        struct conflict_info *base, *side1, *side2;
                                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:2789:41: warning: variable 'side2' is not initialized [cppcoreguidelines-init-variables]
                        struct conflict_info *base, *side1, *side2;
                                                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:2805:25: warning: variable name 'ri' is too short, expected at least 3 characters [readability-identifier-length]
                                struct rename_info *ri = &opt->priv->renames;
                                                    ^
/datasets/git/merge-ort.c:2806:9: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
                                int j;
                                    ^
                                      = 0
/datasets/git/merge-ort.c:2806:9: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:2810:5: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                                memcpy(&side1->stages[0], &base->stages[0],
                                ^~~~~~
/datasets/git/merge-ort.c:2810:5: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                                memcpy(&side1->stages[0], &base->stages[0],
                                ^~~~~~
/datasets/git/merge-ort.c:2812:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                side1->filemask |= (1 << MERGE_BASE);
                                ^                  ~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:2812:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                side1->filemask |= (1 << MERGE_BASE);
                                                    ^
/datasets/git/merge-ort.c:2824:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                for (j = 0; j < 3; j++)
                                ^
/datasets/git/merge-ort.c:2824:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                for (j = 0; j < 3; j++)
                                                       ^
                                                        {
/datasets/git/merge-ort.c:2842:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (clean_merge < 0)
                                            ^
                                             {
/datasets/git/merge-ort.c:2846:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            oideq(&merged.oid, &side1->stages[1].oid))
                                                                      ^
                                                                       {
/datasets/git/merge-ort.c:2848:4: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memcpy(&side1->stages[1], &merged, sizeof(merged));
                        ^~~~~~
/datasets/git/merge-ort.c:2848:4: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                        memcpy(&side1->stages[1], &merged, sizeof(merged));
                        ^~~~~~
/datasets/git/merge-ort.c:2865:4: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memcpy(&side2->stages[2], &merged, sizeof(merged));
                        ^~~~~~
/datasets/git/merge-ort.c:2865:4: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                        memcpy(&side2->stages[2], &merged, sizeof(merged));
                        ^~~~~~
/datasets/git/merge-ort.c:2899:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                old_sidemask = (1 << other_source_index); /* 2 or 4 */
                                ^
/datasets/git/merge-ort.c:2952:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        struct conflict_info *base, *side1, *side2;
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:2952:26: warning: variable 'base' is not initialized [cppcoreguidelines-init-variables]
                        struct conflict_info *base, *side1, *side2;
                                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:2952:33: warning: variable 'side1' is not initialized [cppcoreguidelines-init-variables]
                        struct conflict_info *base, *side1, *side2;
                                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:2952:41: warning: variable 'side2' is not initialized [cppcoreguidelines-init-variables]
                        struct conflict_info *base, *side1, *side2;
                                                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:2953:8: warning: variable 'clean' is not initialized [cppcoreguidelines-init-variables]
                        int clean;
                            ^
                                  = 0
/datasets/git/merge-ort.c:2974:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (clean < 0)
                                      ^
                                       {
/datasets/git/merge-ort.c:2977:4: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memcpy(&newinfo->stages[target_index], &merged,
                        ^~~~~~
/datasets/git/merge-ort.c:2977:4: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                        memcpy(&newinfo->stages[target_index], &merged,
                        ^~~~~~
/datasets/git/merge-ort.c:3011:4: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memcpy(&newinfo->stages[0], &oldinfo->stages[0],
                        ^~~~~~
/datasets/git/merge-ort.c:3011:4: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                        memcpy(&newinfo->stages[0], &oldinfo->stages[0],
                        ^~~~~~
/datasets/git/merge-ort.c:3013:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        newinfo->filemask |= (1 << MERGE_BASE);
                        ^                    ~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:3013:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        newinfo->filemask |= (1 << MERGE_BASE);
                                              ^
/datasets/git/merge-ort.c:3018:5: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                                memcpy(&oldinfo->stages[0].oid, null_oid(),
                                ^~~~~~
/datasets/git/merge-ort.c:3018:5: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                                memcpy(&oldinfo->stages[0].oid, null_oid(),
                                ^~~~~~
/datasets/git/merge-ort.c:3021:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                oldinfo->filemask &= 0x06;
                                ^                    ~~~~
/datasets/git/merge-ort.c:3021:26: warning: 0x06 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                oldinfo->filemask &= 0x06;
                                                     ^
/datasets/git/merge-ort.c:3033:5: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                                memcpy(&newinfo->stages[other_source_index],
                                ^~~~~~
/datasets/git/merge-ort.c:3033:5: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                                memcpy(&newinfo->stages[other_source_index],
                                ^~~~~~
/datasets/git/merge-ort.c:3036:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                newinfo->filemask |= (1 << other_source_index);
                                ^                    ~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:3036:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                newinfo->filemask |= (1 << other_source_index);
                                                      ^
/datasets/git/merge-ort.c:3067:65: warning: parameter name 'q' is too short, expected at least 3 characters [readability-identifier-length]
static void resolve_diffpair_statuses(struct diff_queue_struct *q)
                                                                ^
/datasets/git/merge-ort.c:3073:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/merge-ort.c:3073:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:3074:24: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct diff_filepair *p;
                              ^
                                = NULL
/datasets/git/merge-ort.c:3074:24: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:3076:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < q->nr; ++i) {
        ^
/datasets/git/merge-ort.c:3079:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!DIFF_FILE_VALID(p->one))
                                             ^
                                              {
/datasets/git/merge-ort.c:3081:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!DIFF_FILE_VALID(p->two))
                                                  ^
                                                   {
/datasets/git/merge-ort.c:3083:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (DIFF_PAIR_RENAME(p))
                                             ^
                                              {
/datasets/git/merge-ort.c:3093:23: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
        struct strmap_entry *entry;
                             ^
                                   = NULL
/datasets/git/merge-ort.c:3112:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct strmap_entry *entry;
        ^
/datasets/git/merge-ort.c:3096:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        strmap_for_each_entry(&renames->cached_pairs[side], &iter, entry) {
        ^
/datasets/git/./strmap.h:112:2: note: expanded from macro 'strmap_for_each_entry'
        hashmap_for_each_entry(&(mystrmap)->map, iter, var, ent)
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/merge-ort.c:3093:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct strmap_entry *entry;
        ^
/datasets/git/merge-ort.c:3096:61: warning: backward branch (for loop) is ID-dependent due to variable reference to 'entry' and may cause performance degradation [altera-id-dependent-backward-branch]
        strmap_for_each_entry(&renames->cached_pairs[side], &iter, entry) {
                                                                   ^
/datasets/git/merge-ort.c:3101:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        strset_for_each_entry(&renames->cached_irrelevant[side], &iter, entry) {
        ^
/datasets/git/./strmap.h:221:2: note: expanded from macro 'strset_for_each_entry'
        strmap_for_each_entry(&(mystrset)->map, iter, var)
        ^
/datasets/git/./strmap.h:112:2: note: expanded from macro 'strmap_for_each_entry'
        hashmap_for_each_entry(&(mystrmap)->map, iter, var, ent)
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/merge-ort.c:3101:66: warning: backward branch (for loop) is ID-dependent due to variable reference to 'entry' and may cause performance degradation [altera-id-dependent-backward-branch]
        strset_for_each_entry(&renames->cached_irrelevant[side], &iter, entry) {
                                                                        ^
/datasets/git/merge-ort.c:3112:23: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
        struct strmap_entry *entry;
                             ^
                                   = NULL
/datasets/git/merge-ort.c:3118:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        strmap_for_each_entry(cached_pairs, &iter, entry) {
        ^
/datasets/git/./strmap.h:112:2: note: expanded from macro 'strmap_for_each_entry'
        hashmap_for_each_entry(&(mystrmap)->map, iter, var, ent)
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/merge-ort.c:3118:45: warning: backward branch (for loop) is ID-dependent due to variable reference to 'entry' and may cause performance degradation [altera-id-dependent-backward-branch]
        strmap_for_each_entry(cached_pairs, &iter, entry) {
                                                   ^
/datasets/git/merge-ort.c:3119:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                struct diff_filespec *one, *two;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:3119:25: warning: variable 'one' is not initialized [cppcoreguidelines-init-variables]
                struct diff_filespec *one, *two;
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:3119:31: warning: variable 'two' is not initialized [cppcoreguidelines-init-variables]
                struct diff_filespec *one, *two;
                                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:3122:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!new_name)
                              ^
                               {
/datasets/git/merge-ort.c:3152:8: warning: variable 'old_value' is not initialized [cppcoreguidelines-init-variables]
        char *old_value;
              ^
                        = NULL
/datasets/git/merge-ort.c:3157:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (free_old_value)
                           ^
                            {
/datasets/git/merge-ort.c:3159:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/merge-ort.c:3164:31: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                                    struct diff_filepair *p,
                                                          ^
/datasets/git/merge-ort.c:3175:22: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                dir_renamed_side = 3 - side;
                                   ^
/datasets/git/merge-ort.c:3184:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (val <= 0)
                             ^
                              {
/datasets/git/merge-ort.c:3195:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!new_path)
                              ^
                               {
/datasets/git/merge-ort.c:3197:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/merge-ort.c:3200:27: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                cache_new_pair(renames, side, p->one->path, new_path, 1);
                                        ^
/datasets/git/merge-ort.c:3207:38: warning: parameter name 'a_' is too short, expected at least 3 characters [readability-identifier-length]
static int compare_pairs(const void *a_, const void *b_)
                                     ^
/datasets/git/merge-ort.c:3207:54: warning: parameter name 'b_' is too short, expected at least 3 characters [readability-identifier-length]
static int compare_pairs(const void *a_, const void *b_)
                                                     ^
/datasets/git/merge-ort.c:3209:30: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        const struct diff_filepair *a = *((const struct diff_filepair **)a_);
                                    ^
/datasets/git/merge-ort.c:3210:30: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        const struct diff_filepair *b = *((const struct diff_filepair **)b_);
                                    ^
/datasets/git/merge-ort.c:3239:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->rename_limit <= 0)
                                   ^
                                    {
/datasets/git/merge-ort.c:3240:28: warning: 7000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                diff_opts.rename_limit = 7000;
                                         ^
/datasets/git/merge-ort.c:3257:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (diff_opts.needed_rename_limit > 0)
                                              ^
                                               {
/datasets/git/merge-ort.c:3259:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (diff_opts.needed_rename_limit > renames->needed_limit)
                                                                  ^
                                                                   {
/datasets/git/merge-ort.c:3285:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, clean = 1;
        ^~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:3286:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct diff_queue_struct *side_pairs;
        ^
/datasets/git/merge-ort.c:3285:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, clean = 1;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:3285:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:3286:28: warning: variable 'side_pairs' is not initialized [cppcoreguidelines-init-variables]
        struct diff_queue_struct *side_pairs;
                                  ^
                                             = NULL
/datasets/git/merge-ort.c:3291:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < side_pairs->nr; ++i) {
        ^
/datasets/git/merge-ort.c:3291:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'side_pairs' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < side_pairs->nr; ++i) {
                    ^
/datasets/git/merge-ort.c:3292:25: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct diff_filepair *p = side_pairs->queue[i];
                                      ^
/datasets/git/merge-ort.c:3293:9: warning: variable 'new_path' is not initialized [cppcoreguidelines-init-variables]
                char *new_path; /* non-NULL only with directory renames */
                      ^
                               = NULL
/datasets/git/merge-ort.c:3314:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (new_path)
                             ^
                              {
/datasets/git/merge-ort.c:3334:12: warning: function 'detect_and_process_renames' has cognitive complexity of 30 (threshold 25) [readability-function-cognitive-complexity]
static int detect_and_process_renames(struct merge_options *opt,
           ^
/datasets/git/merge-ort.c:3345:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!possible_renames(renames))
        ^
/datasets/git/merge-ort.c:3351:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (renames->needed_limit) {
        ^
/datasets/git/merge-ort.c:3355:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (renames->redo_after_renames && detection_run) {
        ^
/datasets/git/merge-ort.c:3355:34: note: +1
        if (renames->redo_after_renames && detection_run) {
                                        ^
/datasets/git/merge-ort.c:3360:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (side = MERGE_SIDE1; side <= MERGE_SIDE2; side++) {
                ^
/datasets/git/merge-ort.c:3361:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (i = 0; i < renames->pairs[side].nr; ++i) {
                        ^
/datasets/git/merge-ort.c:3370:3: note: +1
                goto cleanup;
                ^
/datasets/git/merge-ort.c:3378:27: note: +1
          !opt->priv->call_depth &&
                                 ^
/datasets/git/merge-ort.c:3379:67: note: +1
          (opt->detect_directory_renames == MERGE_DIRECTORY_RENAMES_TRUE ||
                                                                         ^
/datasets/git/merge-ort.c:3382:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (need_dir_renames) {
        ^
/datasets/git/merge-ort.c:3388:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        ALLOC_GROW(combined.queue,
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/merge-ort.c:3388:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        ALLOC_GROW(combined.queue,
        ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/merge-ort.c:3388:2: note: +3, including nesting penalty of 2, nesting level increased to 3
        ALLOC_GROW(combined.queue,
        ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/merge-ort.c:3388:2: note: +1, nesting level increased to 3
        ALLOC_GROW(combined.queue,
        ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/merge-ort.c:3391:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = MERGE_SIDE1; i <= MERGE_SIDE2; i++) {
        ^
/datasets/git/merge-ort.c:3405:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = MERGE_SIDE1; i <= MERGE_SIDE2; i++)
        ^
/datasets/git/merge-ort.c:3414:2: note: +1
        goto simple_cleanup; /* collect_renames() handles some of cleanup */
        ^
/datasets/git/merge-ort.c:3421:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (s = MERGE_SIDE1; s <= MERGE_SIDE2; s++) {
        ^
/datasets/git/merge-ort.c:3426:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < side_pairs->nr; ++i) {
                ^
/datasets/git/merge-ort.c:3434:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (s = MERGE_SIDE1; s <= MERGE_SIDE2; s++) {
        ^
/datasets/git/merge-ort.c:3436:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                DIFF_QUEUE_CLEAR(&renames->pairs[s]);
                ^
/datasets/git/./diffcore.h:155:2: note: expanded from macro 'DIFF_QUEUE_CLEAR'
        do { \
        ^
/datasets/git/merge-ort.c:3438:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < combined.nr; i++)
        ^
/datasets/git/merge-ort.c:3335:11: warning: 2 adjacent parameters of 'detect_and_process_renames' of similar type ('struct tree *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                      struct tree *merge_base,
                                      ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:3335:24: note: the first parameter in the range is 'merge_base'
                                      struct tree *merge_base,
                                                   ^~~~~~~~~~
/datasets/git/merge-ort.c:3336:24: note: the last parameter in the range is 'side1'
                                      struct tree *side1,
                                                   ^~~~~
/datasets/git/merge-ort.c:3335:24: warning: parameter 'merge_base' is unused [misc-unused-parameters]
                                      struct tree *merge_base,
                                      ~~~~~~~~~~~~~^~~~~~~~~~~
/datasets/git/merge-ort.c:3336:24: warning: parameter 'side1' is unused [misc-unused-parameters]
                                      struct tree *side1,
                                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:3337:24: warning: parameter 'side2' is unused [misc-unused-parameters]
                                      struct tree *side2)
                                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:3342:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int need_dir_renames, s, i, clean = 1;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:3342:6: warning: variable 'need_dir_renames' is not initialized [cppcoreguidelines-init-variables]
        int need_dir_renames, s, i, clean = 1;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:3342:24: warning: variable 's' is not initialized [cppcoreguidelines-init-variables]
        int need_dir_renames, s, i, clean = 1;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:3342:24: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:3342:27: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int need_dir_renames, s, i, clean = 1;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:3342:27: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:3345:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!possible_renames(renames))
                                       ^
                                        {
/datasets/git/merge-ort.c:3349:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        detection_run |= detect_regular_renames(opt, MERGE_SIDE1);
        ^                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:3350:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        detection_run |= detect_regular_renames(opt, MERGE_SIDE2);
        ^                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:3356:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int i, side;
                ^~~~~~~~~~~~
/datasets/git/merge-ort.c:3356:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i, side;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:3356:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:3356:10: warning: variable 'side' is not initialized [cppcoreguidelines-init-variables]
                int i, side;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:3357:25: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                struct diff_filepair *p;
                                      ^
                                        = NULL
/datasets/git/merge-ort.c:3357:25: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:3340:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct rename_info *renames = &opt->priv->renames;
        ^
/datasets/git/merge-ort.c:3361:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = 0; i < renames->pairs[side].nr; ++i) {
                        ^
/datasets/git/merge-ort.c:3361:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'renames' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (i = 0; i < renames->pairs[side].nr; ++i) {
                                    ^
/datasets/git/merge-ort.c:3388:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(combined.queue,
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/merge-ort.c:3388:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_GROW(combined.queue,
        ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/merge-ort.c:3391:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = MERGE_SIDE1; i <= MERGE_SIDE2; i++) {
        ^
/datasets/git/merge-ort.c:3397:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        clean &= collect_renames(opt, &combined, MERGE_SIDE1,
        ^~~~~
/datasets/git/merge-ort.c:3401:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        clean &= collect_renames(opt, &combined, MERGE_SIDE2,
        ^~~~~
/datasets/git/merge-ort.c:3405:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = MERGE_SIDE1; i <= MERGE_SIDE2; i++)
        ^
/datasets/git/merge-ort.c:3405:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = MERGE_SIDE1; i <= MERGE_SIDE2; i++)
                                                    ^
                                                     {
/datasets/git/merge-ort.c:3407:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        STABLE_QSORT(combined.queue, combined.nr, compare_pairs);
        ^
/datasets/git/./git-compat-util.h:1313:32: note: expanded from macro 'STABLE_QSORT'
        git_stable_qsort((base), (n), sizeof(*(base)), compar)
                                      ^
/datasets/git/merge-ort.c:3422:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                struct diff_queue_struct *side_pairs;
                ^
/datasets/git/merge-ort.c:3411:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        clean &= process_renames(opt, &combined);
        ^~~~~
/datasets/git/merge-ort.c:3422:29: warning: variable 'side_pairs' is not initialized [cppcoreguidelines-init-variables]
                struct diff_queue_struct *side_pairs;
                                          ^
                                                     = NULL
/datasets/git/merge-ort.c:3423:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/merge-ort.c:3423:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:3426:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < side_pairs->nr; ++i) {
                ^
/datasets/git/merge-ort.c:3426:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'side_pairs' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < side_pairs->nr; ++i) {
                            ^
/datasets/git/merge-ort.c:3427:26: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                        struct diff_filepair *p = side_pairs->queue[i];
                                              ^
/datasets/git/merge-ort.c:3436:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                DIFF_QUEUE_CLEAR(&renames->pairs[s]);
                ^
/datasets/git/./diffcore.h:155:2: note: expanded from macro 'DIFF_QUEUE_CLEAR'
        do { \
        ^
/datasets/git/merge-ort.c:3438:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < combined.nr; i++)
        ^
/datasets/git/merge-ort.c:3438:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < combined.nr; i++)
                    ^
/datasets/git/merge-ort.c:3438:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < combined.nr; i++)
                                         ^
                                          {
/datasets/git/merge-ort.c:3449:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned char c1, c2;
        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:3449:16: warning: variable 'c1' is not initialized [cppcoreguidelines-init-variables]
        unsigned char c1, c2;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:3449:16: warning: variable name 'c1' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:3449:20: warning: variable 'c2' is not initialized [cppcoreguidelines-init-variables]
        unsigned char c1, c2;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:3449:20: warning: variable name 'c2' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:3486:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*one && (*one == *two)) {
        ^
/datasets/git/merge-ort.c:3497:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else
          ^~~~
                        return c1 - c2
/datasets/git/merge-ort.c:3497:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:3505:8: warning: variable 'buf' is not initialized [cppcoreguidelines-init-variables]
        void *buf;
              ^
                  = NULL
/datasets/git/merge-ort.c:3506:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/merge-ort.c:3507:16: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size;
                      ^
                           = 0
/datasets/git/merge-ort.c:3509:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!buf)
                 ^
                  {
/datasets/git/merge-ort.c:3529:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!idx->initialized)
                              ^
                               {
/datasets/git/merge-ort.c:3532:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (base->mode != side->mode)
                                     ^
                                      {
/datasets/git/merge-ort.c:3534:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oideq(&base->oid, &side->oid))
                                          ^
                                           {
/datasets/git/merge-ort.c:3538:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            read_oid_strbuf(opt, &side->oid, &sidebuf))
                                                       ^
                                                        {
/datasets/git/merge-ort.c:3545:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (renormalize_buffer(idx, path, basebuf.buf, basebuf.len, &basebuf) |
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:3546:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            renormalize_buffer(idx, path, sidebuf.buf, sidebuf.len, &sidebuf))
                                                                              ^
                                                                               {
/datasets/git/merge-ort.c:3556:8: warning: accessing fields in struct 'directory_versions' is inefficient due to padding; only needs 92 bytes but is using 96 bytes [altera-struct-pack-align]
struct directory_versions {
       ^
/datasets/git/merge-ort.c:3556:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'directory_versions'
/datasets/git/merge-ort.c:3556:8: warning: accessing fields in struct 'directory_versions' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct directory_versions {
       ^
/datasets/git/merge-ort.c:3556:8: note: use "__attribute__((aligned(128)))" to align struct 'directory_versions' to 128 bytes
/datasets/git/merge-ort.c:3599:41: warning: parameter name 'a_' is too short, expected at least 3 characters [readability-identifier-length]
static int tree_entry_order(const void *a_, const void *b_)
                                        ^
/datasets/git/merge-ort.c:3599:57: warning: parameter name 'b_' is too short, expected at least 3 characters [readability-identifier-length]
static int tree_entry_order(const void *a_, const void *b_)
                                                        ^
/datasets/git/merge-ort.c:3601:33: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        const struct string_list_item *a = a_;
                                       ^
/datasets/git/merge-ort.c:3602:33: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        const struct string_list_item *b = b_;
                                       ^
/datasets/git/merge-ort.c:3606:38: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return base_name_compare(a->string, strlen(a->string), ami->result.mode,
                                            ^
/datasets/git/merge-ort.c:3607:17: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                 b->string, strlen(b->string), bmi->result.mode);
                                            ^
/datasets/git/merge-ort.c:3612:9: warning: 2 adjacent parameters of 'write_tree' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                      unsigned int offset,
                      ^~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:3612:22: note: the first parameter in the range is 'offset'
                      unsigned int offset,
                                   ^~~~~~
/datasets/git/merge-ort.c:3613:16: note: the last parameter in the range is 'hash_size'
                      size_t hash_size)
                             ^~~~~~~~~
/datasets/git/merge-ort.c:3612:9: note: 
                      unsigned int offset,
                      ^
/datasets/git/merge-ort.c:3613:9: note: 'unsigned int' and 'size_t' may be implicitly converted: 'unsigned int' -> 'size_t' (as 'unsigned long'), 'size_t' (as 'unsigned long') -> 'unsigned int'
                      size_t hash_size)
                      ^
/datasets/git/merge-ort.c:3615:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t maxlen = 0, extra;
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:3615:21: warning: variable 'extra' is not initialized [cppcoreguidelines-init-variables]
        size_t maxlen = 0, extra;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:3616:15: warning: variable 'nr' is not initialized [cppcoreguidelines-init-variables]
        unsigned int nr;
                     ^
                        = 0
/datasets/git/merge-ort.c:3616:15: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:3618:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, ret = 0;
        ^~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:3618:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, ret = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:3618:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:3622:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (versions->nr)
                         ^
                          {
/datasets/git/merge-ort.c:3627:22: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        extra = hash_size + 8; /* 8: 6 for mode, 1 for space, 1 for NUL char */
                            ^
/datasets/git/merge-ort.c:3628:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr; i++) {
        ^
/datasets/git/merge-ort.c:3616:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        unsigned int nr;
        ^
/datasets/git/merge-ort.c:3628:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < nr; i++) {
                    ^
/datasets/git/merge-ort.c:3634:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr; i++) {
        ^
/datasets/git/merge-ort.c:3634:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < nr; i++) {
                    ^
/datasets/git/merge-ort.c:3635:23: warning: variable name 'mi' is too short, expected at least 3 characters [readability-identifier-length]
                struct merged_info *mi = versions->items[offset+i].util;
                                    ^
/datasets/git/merge-ort.c:3636:24: warning: variable name 'ri' is too short, expected at least 3 characters [readability-identifier-length]
                struct version_info *ri = &mi->result;
                                     ^
/datasets/git/merge-ort.c:3644:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_object_file(buf.buf, buf.len, OBJ_TREE, result_oid))
                                                                      ^
                                                                       {
/datasets/git/merge-ort.c:3652:27: warning: parameter name 'mi' is too short, expected at least 3 characters [readability-identifier-length]
                                  struct merged_info *mi)
                                                      ^
/datasets/git/merge-ort.c:3656:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mi->is_null)
                        ^
                         {
/datasets/git/merge-ort.c:3670:14: warning: variable 'prev_dir' is not initialized [cppcoreguidelines-init-variables]
        const char *prev_dir;
                    ^
                             = NULL
/datasets/git/merge-ort.c:3672:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned int offset, ret = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:3672:15: warning: variable 'offset' is not initialized [cppcoreguidelines-init-variables]
        unsigned int offset, ret = 0;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:3757:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (new_directory_name == info->last_directory)
                                                       ^
                                                        {
/datasets/git/merge-ort.c:3779:38: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
                                   info->last_directory)->util = (void*)offset;
                                                                 ^
/datasets/git/merge-ort.c:3811:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                               opt->repo->hash_algo->rawsz) < 0)
                                                                ^
                                                                 {
/datasets/git/merge-ort.c:3832:13: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                uintptr_t c = info->versions.nr;
                          ^
/datasets/git/merge-ort.c:3834:36: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
                                   new_directory_name)->util = (void*)c;
                                                               ^
/datasets/git/merge-ort.c:3841:9: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return ret;
               ^
/datasets/git/merge-ort.c:3845:12: warning: function 'process_entry' has cognitive complexity of 200 (threshold 25) [readability-function-cognitive-complexity]
static int process_entry(struct merge_options *opt,
           ^
/datasets/git/merge-ort.c:3852:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        VERIFY_CI(ci);
        ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:3852:2: note: +1
        VERIFY_CI(ci);
        ^
/datasets/git/merge-ort.c:612:33: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                                ^
/datasets/git/merge-ort.c:3852:2: note: nesting level increased to 1
        VERIFY_CI(ci);
        ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:3852:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        VERIFY_CI(ci);
        ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:3852:2: note: +1
        VERIFY_CI(ci);
        ^
/datasets/git/merge-ort.c:612:33: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                                ^
/datasets/git/merge-ort.c:3852:2: note: +1, nesting level increased to 2
        VERIFY_CI(ci);
        ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:3853:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(ci->filemask >= 0 && ci->filemask <= 7);
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:3853:27: note: +1
        assert(ci->filemask >= 0 && ci->filemask <= 7);
                                 ^
/datasets/git/merge-ort.c:3853:2: note: nesting level increased to 1
        assert(ci->filemask >= 0 && ci->filemask <= 7);
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:3853:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(ci->filemask >= 0 && ci->filemask <= 7);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:3853:27: note: +1
        assert(ci->filemask >= 0 && ci->filemask <= 7);
                                 ^
/datasets/git/merge-ort.c:3853:2: note: +1, nesting level increased to 2
        assert(ci->filemask >= 0 && ci->filemask <= 7);
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:3855:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(ci->match_mask == 0 || ci->match_mask == 3 ||
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:3856:29: note: +1
               ci->match_mask == 5 || ci->match_mask == 6);
                                   ^
/datasets/git/merge-ort.c:3855:2: note: nesting level increased to 1
        assert(ci->match_mask == 0 || ci->match_mask == 3 ||
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:3855:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(ci->match_mask == 0 || ci->match_mask == 3 ||
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:3856:29: note: +1
               ci->match_mask == 5 || ci->match_mask == 6);
                                   ^
/datasets/git/merge-ort.c:3855:2: note: +1, nesting level increased to 2
        assert(ci->match_mask == 0 || ci->match_mask == 3 ||
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:3858:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ci->dirmask) {
        ^
/datasets/git/merge-ort.c:3860:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ci->filemask == 0)
                ^
/datasets/git/merge-ort.c:3863:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(ci->df_conflict);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:3863:3: note: nesting level increased to 2
                assert(ci->df_conflict);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:3863:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(ci->df_conflict);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:3863:3: note: +1, nesting level increased to 3
                assert(ci->df_conflict);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:3866:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ci->df_conflict && ci->merged.result.mode == 0) {
        ^
/datasets/git/merge-ort.c:3866:22: note: +1
        if (ci->df_conflict && ci->merged.result.mode == 0) {
                            ^
/datasets/git/merge-ort.c:3875:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(ci->filemask != 0);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:3875:3: note: nesting level increased to 2
                assert(ci->filemask != 0);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:3875:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(ci->filemask != 0);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:3875:3: note: +1, nesting level increased to 3
                assert(ci->filemask != 0);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:3881:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = MERGE_BASE; i <= MERGE_SIDE2; i++) {
                ^
/datasets/git/merge-ort.c:3882:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ci->filemask & (1 << i))
                        ^
/datasets/git/merge-ort.c:3887:9: note: +1, nesting level increased to 1
        } else if (ci->df_conflict && ci->merged.result.mode != 0) {
               ^
/datasets/git/merge-ort.c:3887:29: note: +1
        } else if (ci->df_conflict && ci->merged.result.mode != 0) {
                                   ^
/datasets/git/merge-ort.c:3899:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(ci->merged.result.mode == S_IFDIR);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:3899:3: note: nesting level increased to 2
                assert(ci->merged.result.mode == S_IFDIR);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:3899:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(ci->merged.result.mode == S_IFDIR);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:3899:3: note: +1, nesting level increased to 3
                assert(ci->merged.result.mode == S_IFDIR);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:3907:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ci->filemask == 1) {
                ^
/datasets/git/merge-ort.c:3927:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = MERGE_BASE; i <= MERGE_SIDE2; i++) {
                ^
/datasets/git/merge-ort.c:3928:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (new_ci->filemask & (1 << i))
                        ^
/datasets/git/merge-ort.c:3941:44: note: +2, including nesting penalty of 1, nesting level increased to 2
                df_file_index = (ci->dirmask & (1 << 1)) ? 2 : 1;
                                                         ^
/datasets/git/merge-ort.c:3942:33: note: +2, including nesting penalty of 1, nesting level increased to 2
                branch = (df_file_index == 1) ? opt->branch1 : opt->branch2;
                                              ^
/datasets/git/merge-ort.c:3971:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ci->match_mask) {
        ^
/datasets/git/merge-ort.c:3972:39: note: +1
                ci->merged.clean = !ci->df_conflict && !ci->path_conflict;
                                                    ^
/datasets/git/merge-ort.c:3973:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ci->match_mask == 6) {
                ^
/datasets/git/merge-ort.c:3977:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/merge-ort.c:3980:32: note: +3, including nesting penalty of 2, nesting level increased to 3
                        int side = (othermask == 4) ? 2 : 1;
                                                    ^
/datasets/git/merge-ort.c:3984:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ci->merged.is_null)
                        ^
/datasets/git/merge-ort.c:3988:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        assert(othermask == 2 || othermask == 4);
                        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:3988:26: note: +1
                        assert(othermask == 2 || othermask == 4);
                                              ^
/datasets/git/merge-ort.c:3988:4: note: nesting level increased to 3
                        assert(othermask == 2 || othermask == 4);
                        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:3988:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        assert(othermask == 2 || othermask == 4);
                        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:3988:26: note: +1
                        assert(othermask == 2 || othermask == 4);
                                              ^
/datasets/git/merge-ort.c:3988:4: note: +1, nesting level increased to 4
                        assert(othermask == 2 || othermask == 4);
                        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:3989:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        assert(ci->merged.is_null ==
                        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:3989:4: note: nesting level increased to 3
                        assert(ci->merged.is_null ==
                        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:3989:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        assert(ci->merged.is_null ==
                        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:3989:4: note: +1, nesting level increased to 4
                        assert(ci->merged.is_null ==
                        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:3992:9: note: +1, nesting level increased to 1
        } else if (ci->filemask >= 6 &&
               ^
/datasets/git/merge-ort.c:3992:31: note: +1
        } else if (ci->filemask >= 6 &&
                                     ^
/datasets/git/merge-ort.c:3996:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opt->priv->call_depth) {
                ^
/datasets/git/merge-ort.c:4002:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/merge-ort.c:4014:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (S_ISREG(a_mode))
                        ^
/datasets/git/merge-ort.c:4016:9: note: +1, nesting level increased to 3
                        else if (S_ISREG(b_mode))
                             ^
/datasets/git/merge-ort.c:4018:4: note: +1, nesting level increased to 3
                        else {
                        ^
/datasets/git/merge-ort.c:4023:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (rename_a)
                        ^
/datasets/git/merge-ort.c:4025:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (rename_b)
                        ^
/datasets/git/merge-ort.c:4028:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (rename_a && rename_b) {
                        ^
/datasets/git/merge-ort.c:4028:17: note: +1
                        if (rename_a && rename_b) {
                                     ^
/datasets/git/merge-ort.c:4036:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/merge-ort.c:4038:22: note: +4, including nesting penalty of 3, nesting level increased to 4
                                         path, rename_a ? a_path : b_path,
                                                        ^
/datasets/git/merge-ort.c:4056:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if ((S_IFMT & b_mode) != (S_IFMT & o_mode)) {
                        ^
/datasets/git/merge-ort.c:4068:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if ((S_IFMT & a_mode) != (S_IFMT & o_mode)) {
                        ^
/datasets/git/merge-ort.c:4075:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        assert(rename_a || rename_b);
                        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:4075:20: note: +1
                        assert(rename_a || rename_b);
                                        ^
/datasets/git/merge-ort.c:4075:4: note: nesting level increased to 3
                        assert(rename_a || rename_b);
                        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:4075:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        assert(rename_a || rename_b);
                        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:4075:20: note: +1
                        assert(rename_a || rename_b);
                                        ^
/datasets/git/merge-ort.c:4075:4: note: +1, nesting level increased to 4
                        assert(rename_a || rename_b);
                        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:4076:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (rename_a)
                        ^
/datasets/git/merge-ort.c:4079:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!rename_b)
                        ^
/datasets/git/merge-ort.c:4083:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (rename_a && rename_b)
                        ^
/datasets/git/merge-ort.c:4083:17: note: +1
                        if (rename_a && rename_b)
                                     ^
/datasets/git/merge-ort.c:4098:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (a_path)
                        ^
/datasets/git/merge-ort.c:4101:9: note: +1, nesting level increased to 1
        } else if (ci->filemask >= 6) {
               ^
/datasets/git/merge-ort.c:4113:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (clean_merge < 0)
                ^
/datasets/git/merge-ort.c:4116:25: note: +1
                                   !ci->df_conflict && !ci->path_conflict;
                                                    ^
/datasets/git/merge-ort.c:4120:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (clean_merge && ci->df_conflict) {
                ^
/datasets/git/merge-ort.c:4120:19: note: +1
                if (clean_merge && ci->df_conflict) {
                                ^
/datasets/git/merge-ort.c:4121:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        assert(df_file_index == 1 || df_file_index == 2);
                        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:4121:30: note: +1
                        assert(df_file_index == 1 || df_file_index == 2);
                                                  ^
/datasets/git/merge-ort.c:4121:4: note: nesting level increased to 3
                        assert(df_file_index == 1 || df_file_index == 2);
                        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:4121:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        assert(df_file_index == 1 || df_file_index == 2);
                        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:4121:30: note: +1
                        assert(df_file_index == 1 || df_file_index == 2);
                                                  ^
/datasets/git/merge-ort.c:4121:4: note: +1, nesting level increased to 4
                        assert(df_file_index == 1 || df_file_index == 2);
                        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:4126:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!clean_merge) {
                ^
/datasets/git/merge-ort.c:4128:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ci->filemask == 6)
                        ^
/datasets/git/merge-ort.c:4130:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (S_ISGITLINK(merged_file.mode))
                        ^
/datasets/git/merge-ort.c:4137:9: note: +1, nesting level increased to 1
        } else if (ci->filemask == 3 || ci->filemask == 5) {
               ^
/datasets/git/merge-ort.c:4137:31: note: +1
        } else if (ci->filemask == 3 || ci->filemask == 5) {
                                     ^
/datasets/git/merge-ort.c:4140:34: note: +2, including nesting penalty of 1, nesting level increased to 2
                int side = (ci->filemask == 5) ? 2 : 1;
                                               ^
/datasets/git/merge-ort.c:4141:37: note: +2, including nesting penalty of 1, nesting level increased to 2
                int index = opt->priv->call_depth ? 0 : side;
                                                  ^
/datasets/git/merge-ort.c:4147:31: note: +2, including nesting penalty of 1, nesting level increased to 2
                modify_branch = (side == 1) ? opt->branch1 : opt->branch2;
                                            ^
/datasets/git/merge-ort.c:4148:31: note: +2, including nesting penalty of 1, nesting level increased to 2
                delete_branch = (side == 1) ? opt->branch2 : opt->branch1;
                                            ^
/datasets/git/merge-ort.c:4150:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opt->renormalize &&
                ^
/datasets/git/merge-ort.c:4150:24: note: +1
                if (opt->renormalize &&
                                     ^
/datasets/git/merge-ort.c:4153:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!ci->path_conflict) {
                        ^
/datasets/git/merge-ort.c:4166:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/merge-ort.c:4169:10: note: +1, nesting level increased to 2
                } else if (ci->path_conflict &&
                       ^
/datasets/git/merge-ort.c:4169:32: note: +1
                } else if (ci->path_conflict &&
                                             ^
/datasets/git/merge-ort.c:4176:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/merge-ort.c:4185:9: note: +1, nesting level increased to 1
        } else if (ci->filemask == 2 || ci->filemask == 4) {
               ^
/datasets/git/merge-ort.c:4185:31: note: +1
        } else if (ci->filemask == 2 || ci->filemask == 4) {
                                     ^
/datasets/git/merge-ort.c:4187:34: note: +2, including nesting penalty of 1, nesting level increased to 2
                int side = (ci->filemask == 4) ? 2 : 1;
                                               ^
/datasets/git/merge-ort.c:4190:39: note: +1
                ci->merged.clean = !ci->df_conflict && !ci->path_conflict;
                                                    ^
/datasets/git/merge-ort.c:4191:9: note: +1, nesting level increased to 1
        } else if (ci->filemask == 1) {
               ^
/datasets/git/merge-ort.c:4196:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(!ci->df_conflict);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:4196:3: note: nesting level increased to 2
                assert(!ci->df_conflict);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:4196:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(!ci->df_conflict);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:4196:3: note: +1, nesting level increased to 3
                assert(!ci->df_conflict);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:4205:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!ci->merged.clean)
        ^
/datasets/git/merge-ort.c:3847:27: warning: parameter name 'ci' is too short, expected at least 3 characters [readability-identifier-length]
                         struct conflict_info *ci,
                                               ^
/datasets/git/merge-ort.c:3860:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ci->filemask == 0)
                                      ^
                                       {
/datasets/git/merge-ort.c:3867:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/merge-ort.c:3867:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:3879:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ci->match_mask = (ci->match_mask & ~ci->dirmask);
                                  ^                ~~~~~~~~~~~~
/datasets/git/merge-ort.c:3881:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = MERGE_BASE; i <= MERGE_SIDE2; i++) {
                ^
/datasets/git/merge-ort.c:3882:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (ci->filemask & (1 << i))
                            ^              ~~~~~~~~
/datasets/git/merge-ort.c:3882:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (ci->filemask & (1 << i))
                                            ^
/datasets/git/merge-ort.c:3882:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ci->filemask & (1 << i))
                                                    ^
                                                     {
/datasets/git/merge-ort.c:3894:25: warning: variable 'new_ci' is not initialized [cppcoreguidelines-init-variables]
                struct conflict_info *new_ci;
                                      ^
                                             = NULL
/datasets/git/merge-ort.c:3895:15: warning: variable 'branch' is not initialized [cppcoreguidelines-init-variables]
                const char *branch;
                            ^
                                   = NULL
/datasets/git/merge-ort.c:3897:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/merge-ort.c:3897:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:3924:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(new_ci, ci, sizeof(*ci));
                ^~~~~~
/datasets/git/merge-ort.c:3924:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(new_ci, ci, sizeof(*ci));
                ^~~~~~
/datasets/git/merge-ort.c:3925:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                new_ci->match_mask = (new_ci->match_mask & ~new_ci->dirmask);
                                      ^                    ~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:3927:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = MERGE_BASE; i <= MERGE_SIDE2; i++) {
                ^
/datasets/git/merge-ort.c:3928:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (new_ci->filemask & (1 << i))
                            ^                  ~~~~~~~~
/datasets/git/merge-ort.c:3928:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (new_ci->filemask & (1 << i))
                                                ^
/datasets/git/merge-ort.c:3928:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (new_ci->filemask & (1 << i))
                                                        ^
                                                         {
/datasets/git/merge-ort.c:3941:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                df_file_index = (ci->dirmask & (1 << 1)) ? 2 : 1;
                                 ^             ~~~~~~~~
/datasets/git/merge-ort.c:3941:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                df_file_index = (ci->dirmask & (1 << 1)) ? 2 : 1;
                                                ^
/datasets/git/merge-ort.c:3973:25: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (ci->match_mask == 6) {
                                      ^
/datasets/git/merge-ort.c:3979:29: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        unsigned int othermask = 7 & ~ci->match_mask;
                                                 ^
/datasets/git/merge-ort.c:3979:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        unsigned int othermask = 7 & ~ci->match_mask;
                                                 ^
/datasets/git/merge-ort.c:3984:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ci->merged.is_null)
                                               ^
                                                {
/datasets/git/merge-ort.c:3992:29: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        } else if (ci->filemask >= 6 &&
                                   ^
/datasets/git/merge-ort.c:4007:26: warning: variable 'new_ci' is not initialized [cppcoreguidelines-init-variables]
                        struct conflict_info *new_ci;
                                              ^
                                                     = NULL
/datasets/git/merge-ort.c:4008:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        const char *a_path = NULL, *b_path = NULL;
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:4009:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        int rename_a = 0, rename_b = 0;
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:4014:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (S_ISREG(a_mode))
                                            ^
                                             {
/datasets/git/merge-ort.c:4016:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (S_ISREG(b_mode))
                                                 ^
                                                  {
/datasets/git/merge-ort.c:4023:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (rename_a)
                                     ^
                                      {
/datasets/git/merge-ort.c:4025:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (rename_b)
                                     ^
                                      {
/datasets/git/merge-ort.c:4048:4: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memcpy(new_ci, ci, sizeof(*new_ci));
                        ^~~~~~
/datasets/git/merge-ort.c:4048:4: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                        memcpy(new_ci, ci, sizeof(*new_ci));
                        ^~~~~~
/datasets/git/merge-ort.c:4055:23: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        new_ci->filemask = 5;
                                           ^
/datasets/git/merge-ort.c:4076:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (rename_a)
                                     ^
                                      {
/datasets/git/merge-ort.c:4079:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!rename_b)
                                      ^
                                       {
/datasets/git/merge-ort.c:4083:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (rename_a && rename_b)
                                                 ^
                                                  {
/datasets/git/merge-ort.c:4098:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (a_path)
                                   ^
                                    {
/datasets/git/merge-ort.c:4101:29: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        } else if (ci->filemask >= 6) {
                                   ^
/datasets/git/merge-ort.c:4104:7: warning: variable 'clean_merge' is not initialized [cppcoreguidelines-init-variables]
                int clean_merge;
                    ^
                                = 0
/datasets/git/merge-ort.c:4105:24: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                struct version_info *o = &ci->stages[0];
                                     ^
/datasets/git/merge-ort.c:4106:24: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
                struct version_info *a = &ci->stages[1];
                                     ^
/datasets/git/merge-ort.c:4107:24: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
                struct version_info *b = &ci->stages[2];
                                     ^
/datasets/git/merge-ort.c:4113:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (clean_merge < 0)
                                    ^
                                     {
/datasets/git/merge-ort.c:4122:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ci->filemask = 1 << df_file_index;
                                       ^
/datasets/git/merge-ort.c:4128:24: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        if (ci->filemask == 6)
                                            ^
/datasets/git/merge-ort.c:4128:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ci->filemask == 6)
                                              ^
                                               {
/datasets/git/merge-ort.c:4130:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (S_ISGITLINK(merged_file.mode))
                            ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/merge-ort.c:4130:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (S_ISGITLINK(merged_file.mode))
                                                          ^
                                                           {
/datasets/git/merge-ort.c:4137:50: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        } else if (ci->filemask == 3 || ci->filemask == 5) {
                                                        ^
/datasets/git/merge-ort.c:4139:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                const char *modify_branch, *delete_branch;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:4139:15: warning: variable 'modify_branch' is not initialized [cppcoreguidelines-init-variables]
                const char *modify_branch, *delete_branch;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:4139:31: warning: variable 'delete_branch' is not initialized [cppcoreguidelines-init-variables]
                const char *modify_branch, *delete_branch;
                                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:4140:31: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                int side = (ci->filemask == 5) ? 2 : 1;
                                            ^
/datasets/git/merge-ort.c:4205:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ci->merged.clean)
                              ^
                               {
/datasets/git/merge-ort.c:4216:27: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *e;
                                 ^
                                   = NULL
/datasets/git/merge-ort.c:4216:27: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:4219:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->repo != the_repository || !has_promisor_remote())
                                                                  ^
                                                                   {
/datasets/git/merge-ort.c:4222:39: warning: backward branch (for loop) is ID-dependent due to variable reference to 'e' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (e = &plist->items[plist->nr-1]; e >= plist->items; --e) {
                                             ^
/datasets/git/merge-ort.c:4224:25: warning: variable name 'ci' is too short, expected at least 3 characters [readability-identifier-length]
                struct conflict_info *ci = e->util;
                                      ^
/datasets/git/merge-ort.c:4225:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/merge-ort.c:4225:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:4228:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ci->merged.clean)
                                     ^
                                      {
/datasets/git/merge-ort.c:4232:40: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (ci->match_mask || ci->filemask < 6 ||
                                                     ^
/datasets/git/merge-ort.c:4235:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    oideq(&ci->stages[1].oid, &ci->stages[2].oid))
                                                                  ^
                                                                   {
/datasets/git/merge-ort.c:4239:23: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (ci->filemask == 7 &&
                                    ^
/datasets/git/merge-ort.c:4242:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                     oideq(&ci->stages[0].oid, &ci->stages[2].oid)))
                                                                    ^
                                                                     {
/datasets/git/merge-ort.c:4245:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < 3; i++) {
                ^
/datasets/git/merge-ort.c:4246:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        unsigned side_mask = (1 << i);
                                              ^
/datasets/git/merge-ort.c:4247:25: warning: variable name 'vi' is too short, expected at least 3 characters [readability-identifier-length]
                        struct version_info *vi = &ci->stages[i];
                                             ^
/datasets/git/merge-ort.c:4252:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                                     OBJECT_INFO_FOR_PREFETCH))
                                                     ^
/datasets/git/./object-store.h:448:35: note: expanded from macro 'OBJECT_INFO_FOR_PREFETCH'
#define OBJECT_INFO_FOR_PREFETCH (OBJECT_INFO_SKIP_FETCH_OBJECT | OBJECT_INFO_QUICK)
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./object-store.h:443:39: note: expanded from macro 'OBJECT_INFO_SKIP_FETCH_OBJECT'
#define OBJECT_INFO_SKIP_FETCH_OBJECT 32
                                      ^~
/datasets/git/merge-ort.c:4252:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                     OBJECT_INFO_FOR_PREFETCH))
                                                                               ^
                                                                                {
/datasets/git/merge-ort.c:4257:54: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        promisor_remote_get_direct(opt->repo, to_fetch.oid, to_fetch.nr);
                                                            ^
/datasets/git/merge-ort.c:4265:23: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct strmap_entry *e;
                             ^
                               = NULL
/datasets/git/merge-ort.c:4265:23: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:4267:27: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *entry;
                                 ^
                                       = NULL
/datasets/git/merge-ort.c:4281:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(plist.items, strmap_get_size(&opt->priv->paths), plist.alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/merge-ort.c:4265:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct strmap_entry *e;
        ^
/datasets/git/merge-ort.c:4286:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        strmap_for_each_entry(&opt->priv->paths, &iter, e) {
        ^
/datasets/git/./strmap.h:112:2: note: expanded from macro 'strmap_for_each_entry'
        hashmap_for_each_entry(&(mystrmap)->map, iter, var, ent)
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/merge-ort.c:4267:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct string_list_item *entry;
        ^
/datasets/git/merge-ort.c:4286:50: warning: backward branch (for loop) is ID-dependent due to variable reference to 'e' and may cause performance degradation [altera-id-dependent-backward-branch]
        strmap_for_each_entry(&opt->priv->paths, &iter, e) {
                                                        ^
/datasets/git/merge-ort.c:4309:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (entry = &plist.items[plist.nr-1]; entry >= plist.items; --entry) {
        ^
/datasets/git/merge-ort.c:4309:41: warning: backward branch (for loop) is ID-dependent due to variable reference to 'entry' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (entry = &plist.items[plist.nr-1]; entry >= plist.items; --entry) {
                                               ^
/datasets/git/merge-ort.c:4316:23: warning: variable name 'mi' is too short, expected at least 3 characters [readability-identifier-length]
                struct merged_info *mi = entry->util;
                                    ^
/datasets/git/merge-ort.c:4323:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (mi->clean)
                              ^
                               {
/datasets/git/merge-ort.c:4326:26: warning: variable name 'ci' is too short, expected at least 3 characters [readability-identifier-length]
                        struct conflict_info *ci = (struct conflict_info *)mi;
                                              ^
/datasets/git/merge-ort.c:4341:31: warning: Dereference of null pointer [clang-analyzer-core.NullDereference]
                       (unsigned)(uintptr_t)dir_metadata.offsets.items[0].util);
                                            ^
/datasets/git/merge-ort.c:5123:9: note: Assuming field 'ancestor' is equal to null
        assert(opt->ancestor == NULL);
               ^
/usr/include/assert.h:109:11: note: expanded from macro 'assert'
      if (expr)                                                         \
          ^~~~
/datasets/git/merge-ort.c:5123:2: note: Taking true branch
        assert(opt->ancestor == NULL);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:5129:2: note: Calling 'merge_ort_internal'
        merge_ort_internal(opt, merge_bases, side1, side2, result);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:5019:6: note: Assuming 'merge_bases' is non-null
        if (!merge_bases) {
            ^~~~~~~~~~~~
/datasets/git/merge-ort.c:5019:2: note: Taking false branch
        if (!merge_bases) {
        ^
/datasets/git/merge-ort.c:5026:6: note: Assuming 'merged_merge_bases' is non-null
        if (!merged_merge_bases) {
            ^~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:5026:2: note: Taking false branch
        if (!merged_merge_bases) {
        ^
/datasets/git/merge-ort.c:5034:13: note: Assuming 'merge_bases' is null
        } else if (merge_bases) {
                   ^~~~~~~~~~~
/datasets/git/merge-ort.c:5034:9: note: Taking false branch
        } else if (merge_bases) {
               ^
/datasets/git/merge-ort.c:5043:2: note: Loop condition is true.  Entering loop body
        for (next = pop_commit(&merge_bases); next;
        ^
/datasets/git/merge-ort.c:5061:3: note: Calling 'merge_ort_internal'
                merge_ort_internal(opt, NULL, prev, next, result);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:5019:7: note: 'merge_bases' is null
        if (!merge_bases) {
             ^~~~~~~~~~~
/datasets/git/merge-ort.c:5019:2: note: Taking true branch
        if (!merge_bases) {
        ^
/datasets/git/merge-ort.c:5026:6: note: Assuming 'merged_merge_bases' is non-null
        if (!merged_merge_bases) {
            ^~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:5026:2: note: Taking false branch
        if (!merged_merge_bases) {
        ^
/datasets/git/merge-ort.c:5034:13: note: Assuming 'merge_bases' is null
        } else if (merge_bases) {
                   ^~~~~~~~~~~
/datasets/git/merge-ort.c:5034:9: note: Taking false branch
        } else if (merge_bases) {
               ^
/datasets/git/merge-ort.c:5043:2: note: Loop condition is false. Execution continues on line 5077
        for (next = pop_commit(&merge_bases); next;
        ^
/datasets/git/merge-ort.c:5078:2: note: Calling 'merge_ort_nonrecursive_internal'
        merge_ort_nonrecursive_internal(opt,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:4951:6: note: Assuming field 'subtree_shift' is null
        if (opt->subtree_shift) {
            ^~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:4951:2: note: Taking false branch
        if (opt->subtree_shift) {
        ^
/datasets/git/merge-ort.c:4960:6: note: Assuming the condition is false
        if (collect_merge_info(opt, merge_base, side1, side2) != 0) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:4960:2: note: Taking false branch
        if (collect_merge_info(opt, merge_base, side1, side2) != 0) {
        ^
/datasets/git/merge-ort.c:4978:6: note: Assuming field 'redo_after_renames' is not equal to 2
        if (opt->priv->renames.redo_after_renames == 2) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:4978:2: note: Taking false branch
        if (opt->priv->renames.redo_after_renames == 2) {
        ^
/datasets/git/merge-ort.c:4986:6: note: Calling 'process_entries'
        if (process_entries(opt, &working_tree_oid) < 0)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:4268:2: note: 'dir_metadata.offsets.items' initialized to a null pointer value
        struct directory_versions dir_metadata = { STRING_LIST_INIT_NODUP,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:4274:2: note: Taking false branch
        if (strmap_empty(&opt->priv->paths)) {
        ^
/datasets/git/merge-ort.c:4281:2: note: Assuming the condition is false
        ALLOC_GROW(plist.items, strmap_get_size(&opt->priv->paths), plist.alloc);
        ^
/datasets/git/./refs/../cache.h:702:7: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                    ^~~~~~~~~~~~
/datasets/git/merge-ort.c:4281:2: note: Taking false branch
        ALLOC_GROW(plist.items, strmap_get_size(&opt->priv->paths), plist.alloc);
        ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/merge-ort.c:4281:2: note: Loop condition is false.  Exiting loop
        ALLOC_GROW(plist.items, strmap_get_size(&opt->priv->paths), plist.alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/merge-ort.c:4286:2: note: Loop condition is false. Execution continues on line 4289
        strmap_for_each_entry(&opt->priv->paths, &iter, e) {
        ^
/datasets/git/./strmap.h:112:2: note: expanded from macro 'strmap_for_each_entry'
        hashmap_for_each_entry(&(mystrmap)->map, iter, var, ent)
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/merge-ort.c:4309:2: note: Loop condition is false. Execution continues on line 4333
        for (entry = &plist.items[plist.nr-1]; entry >= plist.items; --entry) {
        ^
/datasets/git/merge-ort.c:4336:27: note: Field 'nr' is not equal to 1
        if (dir_metadata.offsets.nr != 1 ||
                                 ^
/datasets/git/merge-ort.c:4336:35: note: Left side of '||' is true
        if (dir_metadata.offsets.nr != 1 ||
                                         ^
/datasets/git/merge-ort.c:4341:31: note: Dereference of null pointer
                       (unsigned)(uintptr_t)dir_metadata.offsets.items[0].util);
                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:4342:3: warning: the value returned by this function should be used [cert-err33-c]
                fflush(stdout);
                ^~~~~~~~~~~~~~
/datasets/git/merge-ort.c:4342:3: note: cast the expression to void to silence this warning
/datasets/git/merge-ort.c:4346:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                       opt->repo->hash_algo->rawsz) < 0)
                                                        ^
                                                         {
/datasets/git/merge-ort.c:4364:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/merge-ort.c:4368:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&unpack_opts, 0, sizeof(unpack_opts));
        ^~~~~~
/datasets/git/merge-ort.c:4368:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&unpack_opts, 0, sizeof(unpack_opts));
        ^~~~~~
/datasets/git/merge-ort.c:4401:12: warning: function 'record_conflicted_index_entries' has cognitive complexity of 31 (threshold 25) [readability-function-cognitive-complexity]
static int record_conflicted_index_entries(struct merge_options *opt)
           ^
/datasets/git/merge-ort.c:4410:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (strmap_empty(&opt->priv->conflicted))
        ^
/datasets/git/merge-ort.c:4421:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        strmap_for_each_entry(&opt->priv->conflicted, &iter, e) {
        ^
/datasets/git/./strmap.h:112:2: note: expanded from macro 'strmap_for_each_entry'
        hashmap_for_each_entry(&(mystrmap)->map, iter, var, ent)
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/merge-ort.c:4422:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!path_in_sparse_checkout(e->key, index)) {
                ^
/datasets/git/merge-ort.c:4436:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        strmap_for_each_entry(&opt->priv->conflicted, &iter, e) {
        ^
/datasets/git/./strmap.h:112:2: note: expanded from macro 'strmap_for_each_entry'
        hashmap_for_each_entry(&(mystrmap)->map, iter, var, ent)
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/merge-ort.c:4443:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                VERIFY_CI(ci);
                ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:4443:3: note: +1
                VERIFY_CI(ci);
                ^
/datasets/git/merge-ort.c:612:33: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                                ^
/datasets/git/merge-ort.c:4443:3: note: nesting level increased to 2
                VERIFY_CI(ci);
                ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:4443:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                VERIFY_CI(ci);
                ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:4443:3: note: +1
                VERIFY_CI(ci);
                ^
/datasets/git/merge-ort.c:612:33: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                                ^
/datasets/git/merge-ort.c:4443:3: note: +1, nesting level increased to 3
                VERIFY_CI(ci);
                ^
/datasets/git/merge-ort.c:612:23: note: expanded from macro 'VERIFY_CI'
#define VERIFY_CI(ci) assert(ci && !ci->merged.clean);
                      ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:4459:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                SWAP(index->cache_nr, original_cache_nr);
                ^
/datasets/git/./git-compat-util.h:759:20: note: expanded from macro 'SWAP'
#define SWAP(a, b) do {                                         \
                   ^
/datasets/git/merge-ort.c:4461:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                SWAP(index->cache_nr, original_cache_nr);
                ^
/datasets/git/./git-compat-util.h:759:20: note: expanded from macro 'SWAP'
#define SWAP(a, b) do {                                         \
                   ^
/datasets/git/merge-ort.c:4462:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (pos < 0) {
                ^
/datasets/git/merge-ort.c:4463:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ci->filemask != 1)
                        ^
/datasets/git/merge-ort.c:4466:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/merge-ort.c:4478:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ce_skip_worktree(ce))
                        ^
/datasets/git/merge-ort.c:4494:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = MERGE_BASE; i <= MERGE_SIDE2; i++) {
                ^
/datasets/git/merge-ort.c:4496:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!(ci->filemask & (1ul << i)))
                        ^
/datasets/git/merge-ort.c:4404:23: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct strmap_entry *e;
                             ^
                               = NULL
/datasets/git/merge-ort.c:4404:23: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:4408:6: warning: variable 'original_cache_nr' is not initialized [cppcoreguidelines-init-variables]
        int original_cache_nr;
            ^
                              = 0
/datasets/git/merge-ort.c:4410:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strmap_empty(&opt->priv->conflicted))
                                                 ^
                                                  {
/datasets/git/merge-ort.c:4421:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        strmap_for_each_entry(&opt->priv->conflicted, &iter, e) {
        ^
/datasets/git/./strmap.h:112:2: note: expanded from macro 'strmap_for_each_entry'
        hashmap_for_each_entry(&(mystrmap)->map, iter, var, ent)
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/merge-ort.c:4404:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct strmap_entry *e;
        ^
/datasets/git/merge-ort.c:4421:55: warning: backward branch (for loop) is ID-dependent due to variable reference to 'e' and may cause performance degradation [altera-id-dependent-backward-branch]
        strmap_for_each_entry(&opt->priv->conflicted, &iter, e) {
                                                             ^
/datasets/git/merge-ort.c:4433:22: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        original_cache_nr = index->cache_nr;
                            ^
/datasets/git/merge-ort.c:4436:55: warning: backward branch (for loop) is ID-dependent due to variable reference to 'e' and may cause performance degradation [altera-id-dependent-backward-branch]
        strmap_for_each_entry(&opt->priv->conflicted, &iter, e) {
                                                             ^
/datasets/git/merge-ort.c:4438:25: warning: variable name 'ci' is too short, expected at least 3 characters [readability-identifier-length]
                struct conflict_info *ci = e->value;
                                      ^
/datasets/git/merge-ort.c:4439:7: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
                int pos;
                    ^
                        = 0
/datasets/git/merge-ort.c:4440:23: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
                struct cache_entry *ce;
                                    ^
                                       = NULL
/datasets/git/merge-ort.c:4440:23: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:4441:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/merge-ort.c:4441:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:4459:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                SWAP(index->cache_nr, original_cache_nr);
                ^
/datasets/git/./git-compat-util.h:759:20: note: expanded from macro 'SWAP'
#define SWAP(a, b) do {                                         \
                   ^
/datasets/git/merge-ort.c:4459:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                SWAP(index->cache_nr, original_cache_nr);
                ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/merge-ort.c:4459:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                SWAP(index->cache_nr, original_cache_nr);
                ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/merge-ort.c:4460:37: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                pos = index_name_pos(index, path, strlen(path));
                                                  ^
/datasets/git/merge-ort.c:4461:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                SWAP(index->cache_nr, original_cache_nr);
                ^
/datasets/git/./git-compat-util.h:759:20: note: expanded from macro 'SWAP'
#define SWAP(a, b) do {                                         \
                   ^
/datasets/git/merge-ort.c:4461:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                SWAP(index->cache_nr, original_cache_nr);
                ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/merge-ort.c:4461:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                SWAP(index->cache_nr, original_cache_nr);
                ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/merge-ort.c:4463:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ci->filemask != 1)
                                              ^
                                               {
/datasets/git/merge-ort.c:4478:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (ce_skip_worktree(ce))
                            ^
/datasets/git/./refs/../cache.h:244:31: note: expanded from macro 'ce_skip_worktree'
#define ce_skip_worktree(ce) ((ce)->ce_flags & CE_SKIP_WORKTREE)
                              ^                ~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:4478:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ce_skip_worktree(ce))
                                                 ^
                                                  {
/datasets/git/merge-ort.c:4479:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                errs |= checkout_entry(ce, &state, NULL, NULL);
                                ^~~~
/datasets/git/merge-ort.c:4491:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ce->ce_flags |= CE_REMOVE;
                        ^
/datasets/git/merge-ort.c:4491:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ce->ce_flags |= CE_REMOVE;
                                        ^
/datasets/git/./refs/../cache.h:168:31: note: expanded from macro 'CE_REMOVE'
#define CE_REMOVE            (1 << 17)
                              ^
/datasets/git/merge-ort.c:4494:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = MERGE_BASE; i <= MERGE_SIDE2; i++) {
                ^
/datasets/git/merge-ort.c:4495:25: warning: variable 'vi' is not initialized [cppcoreguidelines-init-variables]
                        struct version_info *vi;
                                             ^
                                                = NULL
/datasets/git/merge-ort.c:4495:25: warning: variable name 'vi' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:4496:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!(ci->filemask & (1ul << i)))
                                              ^      ~
/datasets/git/merge-ort.c:4496:26: warning: integer literal has suffix 'ul', which is not uppercase [hicpp-uppercase-literal-suffix,readability-uppercase-literal-suffix]
                        if (!(ci->filemask & (1ul << i)))
                                              ^~~
                                               UL
/datasets/git/merge-ort.c:4496:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!(ci->filemask & (1ul << i)))
                                                         ^
                                                          {
/datasets/git/merge-ort.c:4516:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        QSORT(index->cache, index->cache_nr, cmp_cache_name_compare);
        ^
/datasets/git/./git-compat-util.h:1304:56: note: expanded from macro 'QSORT'
#define QSORT(base, n, compar) sane_qsort((base), (n), sizeof(*(base)), compar)
                                                       ^
/datasets/git/merge-ort.c:4522:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/merge-ort.c:4527:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!csub->nr)
                      ^
                       {
/datasets/git/merge-ort.c:4531:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(item, csub) {
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/merge-ort.c:4531:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(item, csub) {
                                  ^
/datasets/git/merge-ort.c:4539:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    util->flag == CONFLICT_SUBMODULE_HISTORY_NOT_AVAILABLE)
                                                                           ^
                                                                            {
/datasets/git/merge-ort.c:4584:23: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct strmap_entry *e;
                             ^
                               = NULL
/datasets/git/merge-ort.c:4584:23: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:4604:3: note: inferred assignment of ID-dependent value from ID-dependent member util [altera-id-dependent-backward-branch]
                struct string_list *conflicts = olist.items[path_nr].util;
                ^
/datasets/git/merge-ort.c:4587:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->record_conflict_msgs_as_headers)
                                                 ^
                                                  {
/datasets/git/merge-ort.c:4593:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(olist.items, strmap_get_size(&opti->conflicts),
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/merge-ort.c:4584:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct strmap_entry *e;
        ^
/datasets/git/merge-ort.c:4597:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        strmap_for_each_entry(&opti->conflicts, &iter, e) {
        ^
/datasets/git/./strmap.h:112:2: note: expanded from macro 'strmap_for_each_entry'
        hashmap_for_each_entry(&(mystrmap)->map, iter, var, ent)
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/./string-list.h:89:2: note: inferred assignment of ID-dependent member from ID-dependent variable offset [altera-id-dependent-backward-branch]
        size_t nr;
        ^
/datasets/git/merge-ort.c:4597:49: warning: backward branch (for loop) is ID-dependent due to variable reference to 'e' and may cause performance degradation [altera-id-dependent-backward-branch]
        strmap_for_each_entry(&opti->conflicts, &iter, e) {
                                                       ^
/datasets/git/merge-ort.c:4603:24: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (int path_nr = 0; path_nr < olist.nr; ++path_nr) {
                              ^
/datasets/git/merge-ort.c:4605:19: warning: backward branch (for loop) is ID-dependent due to variable reference to 'conflicts' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (int i = 0; i < conflicts->nr; i++) {
                                ^
/datasets/git/merge-ort.c:4612:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                for (int n = 0; n < info->paths.nr; n++) {
                                ^
/datasets/git/merge-ort.c:4612:14: warning: loop variable name 'n' is too short, expected at least 2 characters [readability-identifier-length]
                                for (int n = 0; n < info->paths.nr; n++) {
                                         ^
/datasets/git/merge-ort.c:4612:21: warning: backward branch (for loop) is ID-dependent due to variable reference to 'info' and may cause performance degradation [altera-id-dependent-backward-branch]
                                for (int n = 0; n < info->paths.nr; n++) {
                                                ^
/datasets/git/merge-ort.c:4613:6: warning: the value returned by this function should be used [cert-err33-c]
                                        fputs(info->paths.v[n], stdout);
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:4613:6: note: cast the expression to void to silence this warning
/datasets/git/merge-ort.c:4640:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct strmap_entry *e;
        ^
/datasets/git/merge-ort.c:4616:5: warning: the value returned by this function should be used [cert-err33-c]
                                fputs(type_short_descriptions[info->type],
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:4616:5: note: cast the expression to void to silence this warning
/datasets/git/merge-ort.c:4606:4: note: inferred assignment of ID-dependent value from ID-dependent member util [altera-id-dependent-backward-branch]
                        struct logical_conflict_info *info =
                        ^
/datasets/git/merge-ort.c:4621:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (detailed)
                                     ^
                                      {
/datasets/git/merge-ort.c:4640:23: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct strmap_entry *e;
                             ^
                               = NULL
/datasets/git/merge-ort.c:4640:23: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:4643:50: warning: backward branch (for loop) is ID-dependent due to variable reference to 'e' and may cause performance degradation [altera-id-dependent-backward-branch]
        strmap_for_each_entry(&opti->conflicted, &iter, e) {
                                                        ^
/datasets/git/merge-ort.c:4645:25: warning: variable name 'ci' is too short, expected at least 3 characters [readability-identifier-length]
                struct conflict_info *ci = e->value;
                                      ^
/datasets/git/merge-ort.c:4646:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/merge-ort.c:4646:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:4650:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = MERGE_BASE; i <= MERGE_SIDE2; i++) {
                ^
/datasets/git/merge-ort.c:4651:23: warning: variable 'si' is not initialized [cppcoreguidelines-init-variables]
                        struct stage_info *si;
                                           ^
                                              = NULL
/datasets/git/merge-ort.c:4651:23: warning: variable name 'si' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:4653:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!(ci->filemask & (1ul << i)))
                                              ^      ~
/datasets/git/merge-ort.c:4653:26: warning: integer literal has suffix 'ul', which is not uppercase [hicpp-uppercase-literal-suffix,readability-uppercase-literal-suffix]
                        if (!(ci->filemask & (1ul << i)))
                                              ^~~
                                               UL
/datasets/git/merge-ort.c:4653:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!(ci->filemask & (1ul << i)))
                                                         ^
                                                          {
/datasets/git/merge-ort.c:4670:8: warning: 2 adjacent parameters of 'merge_switch_to_result' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                            int update_worktree_and_index,
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:4670:12: note: the first parameter in the range is 'update_worktree_and_index'
                            int update_worktree_and_index,
                                ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:4671:12: note: the last parameter in the range is 'display_update_msgs'
                            int display_update_msgs)
                                ^~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:4675:15: warning: variable 'filename' is not initialized [cppcoreguidelines-init-variables]
                const char *filename;
                            ^
                                     = NULL
/datasets/git/merge-ort.c:4676:9: warning: variable 'fp' is not initialized [cppcoreguidelines-init-variables]
                FILE *fp;
                      ^
                         = NULL
/datasets/git/merge-ort.c:4676:9: warning: variable name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:4705:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(fp, "%s\n", oid_to_hex(&result->tree->object.oid));
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:4705:3: note: cast the expression to void to silence this warning
/datasets/git/merge-ort.c:4706:3: warning: the value returned by this function should be used [cert-err33-c]
                fclose(fp);
                ^~~~~~~~~~
/datasets/git/merge-ort.c:4706:3: note: cast the expression to void to silence this warning
/datasets/git/merge-ort.c:4709:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (display_update_msgs)
                                ^
                                 {
/datasets/git/merge-ort.c:4720:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->renormalize)
                             ^
                              {
/datasets/git/merge-ort.c:4725:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(opti);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/merge-ort.c:4742:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oideq(&two->object.oid, &shifted))
                                              ^
                                               {
/datasets/git/merge-ort.c:4747:51: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static inline void set_commit_tree(struct commit *c, struct tree *t)
                                                  ^
/datasets/git/merge-ort.c:4747:67: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
static inline void set_commit_tree(struct commit *c, struct tree *t)
                                                                  ^
/datasets/git/merge-ort.c:4764:13: warning: function 'merge_start' has cognitive complexity of 98 (threshold 25) [readability-function-cognitive-complexity]
static void merge_start(struct merge_options *opt, struct merge_result *result)
            ^
/datasets/git/merge-ort.c:4772:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(opt->repo);
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:4772:2: note: nesting level increased to 1
        assert(opt->repo);
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:4772:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(opt->repo);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:4772:2: note: +1, nesting level increased to 2
        assert(opt->repo);
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:4774:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(opt->branch1 && opt->branch2);
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:4774:22: note: +1
        assert(opt->branch1 && opt->branch2);
                            ^
/datasets/git/merge-ort.c:4774:2: note: nesting level increased to 1
        assert(opt->branch1 && opt->branch2);
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:4774:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(opt->branch1 && opt->branch2);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:4774:22: note: +1
        assert(opt->branch1 && opt->branch2);
                            ^
/datasets/git/merge-ort.c:4774:2: note: +1, nesting level increased to 2
        assert(opt->branch1 && opt->branch2);
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:4776:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(opt->detect_directory_renames >= MERGE_DIRECTORY_RENAMES_NONE &&
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:4776:71: note: +1
        assert(opt->detect_directory_renames >= MERGE_DIRECTORY_RENAMES_NONE &&
                                                                             ^
/datasets/git/merge-ort.c:4776:2: note: nesting level increased to 1
        assert(opt->detect_directory_renames >= MERGE_DIRECTORY_RENAMES_NONE &&
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:4776:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(opt->detect_directory_renames >= MERGE_DIRECTORY_RENAMES_NONE &&
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:4776:71: note: +1
        assert(opt->detect_directory_renames >= MERGE_DIRECTORY_RENAMES_NONE &&
                                                                             ^
/datasets/git/merge-ort.c:4776:2: note: +1, nesting level increased to 2
        assert(opt->detect_directory_renames >= MERGE_DIRECTORY_RENAMES_NONE &&
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:4778:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(opt->rename_limit >= -1);
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:4778:2: note: nesting level increased to 1
        assert(opt->rename_limit >= -1);
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:4778:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(opt->rename_limit >= -1);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:4778:2: note: +1, nesting level increased to 2
        assert(opt->rename_limit >= -1);
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:4779:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(opt->rename_score >= 0 && opt->rename_score <= MAX_SCORE);
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:4779:32: note: +1
        assert(opt->rename_score >= 0 && opt->rename_score <= MAX_SCORE);
                                      ^
/datasets/git/merge-ort.c:4779:2: note: nesting level increased to 1
        assert(opt->rename_score >= 0 && opt->rename_score <= MAX_SCORE);
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:4779:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(opt->rename_score >= 0 && opt->rename_score <= MAX_SCORE);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:4779:32: note: +1
        assert(opt->rename_score >= 0 && opt->rename_score <= MAX_SCORE);
                                      ^
/datasets/git/merge-ort.c:4779:2: note: +1, nesting level increased to 2
        assert(opt->rename_score >= 0 && opt->rename_score <= MAX_SCORE);
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:4780:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(opt->show_rename_progress >= 0 && opt->show_rename_progress <= 1);
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:4780:40: note: +1
        assert(opt->show_rename_progress >= 0 && opt->show_rename_progress <= 1);
                                              ^
/datasets/git/merge-ort.c:4780:2: note: nesting level increased to 1
        assert(opt->show_rename_progress >= 0 && opt->show_rename_progress <= 1);
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:4780:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(opt->show_rename_progress >= 0 && opt->show_rename_progress <= 1);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:4780:40: note: +1
        assert(opt->show_rename_progress >= 0 && opt->show_rename_progress <= 1);
                                              ^
/datasets/git/merge-ort.c:4780:2: note: +1, nesting level increased to 2
        assert(opt->show_rename_progress >= 0 && opt->show_rename_progress <= 1);
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:4782:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(opt->xdl_opts >= 0);
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:4782:2: note: nesting level increased to 1
        assert(opt->xdl_opts >= 0);
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:4782:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(opt->xdl_opts >= 0);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:4782:2: note: +1, nesting level increased to 2
        assert(opt->xdl_opts >= 0);
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:4783:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(opt->recursive_variant >= MERGE_VARIANT_NORMAL &&
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:4783:56: note: +1
        assert(opt->recursive_variant >= MERGE_VARIANT_NORMAL &&
                                                              ^
/datasets/git/merge-ort.c:4783:2: note: nesting level increased to 1
        assert(opt->recursive_variant >= MERGE_VARIANT_NORMAL &&
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:4783:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(opt->recursive_variant >= MERGE_VARIANT_NORMAL &&
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:4783:56: note: +1
        assert(opt->recursive_variant >= MERGE_VARIANT_NORMAL &&
                                                              ^
/datasets/git/merge-ort.c:4783:2: note: +1, nesting level increased to 2
        assert(opt->recursive_variant >= MERGE_VARIANT_NORMAL &&
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:4786:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt->msg_header_prefix)
        ^
/datasets/git/merge-ort.c:4787:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(opt->record_conflict_msgs_as_headers);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:4787:3: note: nesting level increased to 2
                assert(opt->record_conflict_msgs_as_headers);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:4787:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(opt->record_conflict_msgs_as_headers);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:4787:3: note: +1, nesting level increased to 3
                assert(opt->record_conflict_msgs_as_headers);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:4794:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(opt->detect_renames >= -1 &&
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:4794:35: note: +1
        assert(opt->detect_renames >= -1 &&
                                         ^
/datasets/git/merge-ort.c:4794:2: note: nesting level increased to 1
        assert(opt->detect_renames >= -1 &&
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:4794:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(opt->detect_renames >= -1 &&
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:4794:35: note: +1
        assert(opt->detect_renames >= -1 &&
                                         ^
/datasets/git/merge-ort.c:4794:2: note: +1, nesting level increased to 2
        assert(opt->detect_renames >= -1 &&
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:4796:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(opt->verbosity >= 0 && opt->verbosity <= 5);
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:4796:29: note: +1
        assert(opt->verbosity >= 0 && opt->verbosity <= 5);
                                   ^
/datasets/git/merge-ort.c:4796:2: note: nesting level increased to 1
        assert(opt->verbosity >= 0 && opt->verbosity <= 5);
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:4796:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(opt->verbosity >= 0 && opt->verbosity <= 5);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:4796:29: note: +1
        assert(opt->verbosity >= 0 && opt->verbosity <= 5);
                                   ^
/datasets/git/merge-ort.c:4796:2: note: +1, nesting level increased to 2
        assert(opt->verbosity >= 0 && opt->verbosity <= 5);
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:4797:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(opt->buffer_output <= 2);
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:4797:2: note: nesting level increased to 1
        assert(opt->buffer_output <= 2);
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:4797:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(opt->buffer_output <= 2);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:4797:2: note: +1, nesting level increased to 2
        assert(opt->buffer_output <= 2);
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:4798:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(opt->obuf.len == 0);
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:4798:2: note: nesting level increased to 1
        assert(opt->obuf.len == 0);
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:4798:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(opt->obuf.len == 0);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:4798:2: note: +1, nesting level increased to 2
        assert(opt->obuf.len == 0);
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:4800:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(opt->priv == NULL);
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:4800:2: note: nesting level increased to 1
        assert(opt->priv == NULL);
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:4800:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(opt->priv == NULL);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:4800:2: note: +1, nesting level increased to 2
        assert(opt->priv == NULL);
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:4801:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (result->_properly_initialized != 0 &&
        ^
/datasets/git/merge-ort.c:4801:41: note: +1
        if (result->_properly_initialized != 0 &&
                                               ^
/datasets/git/merge-ort.c:4804:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(!!result->priv == !!result->_properly_initialized);
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:4804:2: note: nesting level increased to 1
        assert(!!result->priv == !!result->_properly_initialized);
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:4804:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(!!result->priv == !!result->_properly_initialized);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:4804:2: note: +1, nesting level increased to 2
        assert(!!result->priv == !!result->_properly_initialized);
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:4805:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (result->priv) {
        ^
/datasets/git/merge-ort.c:4813:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(opt->priv->call_depth == 0);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:4813:3: note: nesting level increased to 2
                assert(opt->priv->call_depth == 0);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:4813:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(opt->priv->call_depth == 0);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:4813:3: note: +1, nesting level increased to 3
                assert(opt->priv->call_depth == 0);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:4814:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(!opt->priv->toplevel_dir ||
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-ort.c:4814:35: note: +1
                assert(!opt->priv->toplevel_dir ||
                                                ^
/datasets/git/merge-ort.c:4814:3: note: nesting level increased to 2
                assert(!opt->priv->toplevel_dir ||
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-ort.c:4814:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(!opt->priv->toplevel_dir ||
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:4814:35: note: +1
                assert(!opt->priv->toplevel_dir ||
                                                ^
/datasets/git/merge-ort.c:4814:3: note: +1, nesting level increased to 3
                assert(!opt->priv->toplevel_dir ||
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-ort.c:4823:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt->renormalize)
        ^
/datasets/git/merge-ort.c:4828:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt->priv) {
        ^
/datasets/git/merge-ort.c:4840:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = MERGE_SIDE1; i <= MERGE_SIDE2; i++) {
        ^
/datasets/git/merge-ort.c:4864:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = MERGE_SIDE1; i <= MERGE_SIDE2; i++) {
        ^
/datasets/git/merge-ort.c:4766:22: warning: variable 'renames' is not initialized [cppcoreguidelines-init-variables]
        struct rename_info *renames;
                            ^
                                    = NULL
/datasets/git/merge-ort.c:4767:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/merge-ort.c:4767:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-ort.c:4779:56: warning: MAX_SCORE is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        assert(opt->rename_score >= 0 && opt->rename_score <= MAX_SCORE);
                                                              ^
/datasets/git/./diffcore.h:26:19: note: expanded from macro 'MAX_SCORE'
#define MAX_SCORE 60000.0
                  ^
/datasets/git/merge-ort.c:4786:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->msg_header_prefix)
                                   ^
                                    {
/datasets/git/merge-ort.c:4802:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            result->_properly_initialized != RESULT_INITIALIZED)
                                                                ^
                                                                 {
/datasets/git/merge-ort.c:4820:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        opt->xdl_opts = DIFF_WITH_ALG(opt, HISTOGRAM_DIFF);
                        ^
/datasets/git/./diff.h:218:38: note: expanded from macro 'DIFF_WITH_ALG'
#define DIFF_WITH_ALG(opts, flag)   (((opts)->xdl_opts & ~XDF_DIFF_ALGORITHM_MASK) | XDF_##flag)
                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:4820:18: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
        opt->xdl_opts = DIFF_WITH_ALG(opt, HISTOGRAM_DIFF);
                        ^
/datasets/git/./diff.h:218:58: note: expanded from macro 'DIFF_WITH_ALG'
#define DIFF_WITH_ALG(opts, flag)   (((opts)->xdl_opts & ~XDF_DIFF_ALGORITHM_MASK) | XDF_##flag)
                                                         ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:4823:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->renormalize)
                             ^
                              {
/datasets/git/merge-ort.c:4840:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = MERGE_SIDE1; i <= MERGE_SIDE2; i++) {
        ^
/datasets/git/merge-ort.c:4864:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = MERGE_SIDE1; i <= MERGE_SIDE2; i++) {
        ^
/datasets/git/merge-ort.c:4894:64: warning: parameter 'opt' is unused [misc-unused-parameters]
static void merge_check_renames_reusable(struct merge_options *opt,
                                         ~~~~~~~~~~~~~~~~~~~~~~^~~~
/datasets/git/merge-ort.c:4900:22: warning: variable 'renames' is not initialized [cppcoreguidelines-init-variables]
        struct rename_info *renames;
                            ^
                                    = NULL
/datasets/git/merge-ort.c:4901:16: warning: variable 'merge_trees' is not initialized [cppcoreguidelines-init-variables]
        struct tree **merge_trees;
                      ^
                                  = NULL
/datasets/git/merge-ort.c:4904:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opti)
                  ^
                   {
/datasets/git/merge-ort.c:4929:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            oideq(&side1->object.oid, &result->tree->object.oid))
                                                                 ^
                                                                  {
/datasets/git/merge-ort.c:4932:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                 oideq(&side2->object.oid, &result->tree->object.oid))
                                                                      ^
                                                                       {
/datasets/git/merge-ort.c:4934:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/merge-ort.c:4986:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (process_entries(opt, &working_tree_oid) < 0)
                                                        ^
                                                         {
/datasets/git/merge-ort.c:4996:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                result->clean &= strmap_empty(&opt->priv->conflicted);
                ^~~~~~~~~~~~~
/datasets/git/merge-ort.c:5008:13: warning: function 'merge_ort_internal' is within a recursive call chain [misc-no-recursion]
static void merge_ort_internal(struct merge_options *opt,
            ^
/datasets/git/merge-ort.c:5008:13: note: example recursive call chain, starting from function 'merge_ort_internal'
/datasets/git/merge-ort.c:5061:3: note: Frame #1: function 'merge_ort_internal' calls function 'merge_ort_internal' here:
                merge_ort_internal(opt, NULL, prev, next, result);
                ^
/datasets/git/merge-ort.c:5061:3: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/merge-ort.c:5010:26: warning: parameter name 'h1' is too short, expected at least 3 characters [readability-identifier-length]
                               struct commit *h1,
                                              ^
/datasets/git/merge-ort.c:5011:26: warning: parameter name 'h2' is too short, expected at least 3 characters [readability-identifier-length]
                               struct commit *h2,
                                              ^
/datasets/git/merge-ort.c:5014:2: note: inferred assignment of ID-dependent value from ID-dependent variable merge_bases [altera-id-dependent-backward-branch]
        struct commit *next;
        ^
/datasets/git/merge-ort.c:5014:17: warning: variable 'next' is not initialized [cppcoreguidelines-init-variables]
        struct commit *next;
                       ^
                            = NULL
/datasets/git/merge-ort.c:5015:17: warning: variable 'merged_merge_bases' is not initialized [cppcoreguidelines-init-variables]
        struct commit *merged_merge_bases;
                       ^
                                          = NULL
/datasets/git/merge-ort.c:5016:14: warning: variable 'ancestor_name' is not initialized [cppcoreguidelines-init-variables]
        const char *ancestor_name;
                    ^
                                  = NULL
/datasets/git/merge-ort.c:5028:16: warning: variable 'tree' is not initialized [cppcoreguidelines-init-variables]
                struct tree *tree;
                             ^
                                  = NULL
/datasets/git/merge-ort.c:5043:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (next = pop_commit(&merge_bases); next;
        ^
/datasets/git/merge-ort.c:5043:40: warning: backward branch (for loop) is ID-dependent due to variable reference to 'next' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (next = pop_commit(&merge_bases); next;
                                              ^
/datasets/git/merge-ort.c:5045:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                const char *saved_b1, *saved_b2;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:5045:15: warning: variable 'saved_b1' is not initialized [cppcoreguidelines-init-variables]
                const char *saved_b1, *saved_b2;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:5045:26: warning: variable 'saved_b2' is not initialized [cppcoreguidelines-init-variables]
                const char *saved_b1, *saved_b2;
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-ort.c:5062:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (result->clean < 0)
                                      ^
                                       {
/datasets/git/merge-ort.c:5066:3: warning: Access to field 'call_depth' results in a dereference of a null pointer (loaded from field 'priv') [clang-analyzer-core.NullDereference]
                opt->priv->call_depth--;
                ^
/datasets/git/merge-ort.c:5123:9: note: Assuming field 'ancestor' is equal to null
        assert(opt->ancestor == NULL);
               ^
/usr/include/assert.h:109:11: note: expanded from macro 'assert'
      if (expr)                                                         \
          ^~~~
/datasets/git/merge-ort.c:5123:2: note: Taking true branch
        assert(opt->ancestor == NULL);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-ort.c:5129:2: note: Calling 'merge_ort_internal'
        merge_ort_internal(opt, merge_bases, side1, side2, result);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:5019:6: note: Assuming 'merge_bases' is non-null
        if (!merge_bases) {
            ^~~~~~~~~~~~
/datasets/git/merge-ort.c:5019:2: note: Taking false branch
        if (!merge_bases) {
        ^
/datasets/git/merge-ort.c:5026:6: note: Assuming 'merged_merge_bases' is non-null
        if (!merged_merge_bases) {
            ^~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:5026:2: note: Taking false branch
        if (!merged_merge_bases) {
        ^
/datasets/git/merge-ort.c:5034:13: note: Assuming 'merge_bases' is null
        } else if (merge_bases) {
                   ^~~~~~~~~~~
/datasets/git/merge-ort.c:5034:9: note: Taking false branch
        } else if (merge_bases) {
               ^
/datasets/git/merge-ort.c:5043:2: note: Loop condition is true.  Entering loop body
        for (next = pop_commit(&merge_bases); next;
        ^
/datasets/git/merge-ort.c:5061:3: note: Calling 'merge_ort_internal'
                merge_ort_internal(opt, NULL, prev, next, result);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:5019:7: note: 'merge_bases' is null
        if (!merge_bases) {
             ^~~~~~~~~~~
/datasets/git/merge-ort.c:5019:2: note: Taking true branch
        if (!merge_bases) {
        ^
/datasets/git/merge-ort.c:5026:6: note: Assuming 'merged_merge_bases' is non-null
        if (!merged_merge_bases) {
            ^~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:5026:2: note: Taking false branch
        if (!merged_merge_bases) {
        ^
/datasets/git/merge-ort.c:5034:13: note: Assuming 'merge_bases' is null
        } else if (merge_bases) {
                   ^~~~~~~~~~~
/datasets/git/merge-ort.c:5034:9: note: Taking false branch
        } else if (merge_bases) {
               ^
/datasets/git/merge-ort.c:5043:2: note: Loop condition is true.  Entering loop body
        for (next = pop_commit(&merge_bases); next;
        ^
/datasets/git/merge-ort.c:5061:3: note: Calling 'merge_ort_internal'
                merge_ort_internal(opt, NULL, prev, next, result);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:5019:7: note: 'merge_bases' is null
        if (!merge_bases) {
             ^~~~~~~~~~~
/datasets/git/merge-ort.c:5019:2: note: Taking true branch
        if (!merge_bases) {
        ^
/datasets/git/merge-ort.c:5026:6: note: Assuming 'merged_merge_bases' is non-null
        if (!merged_merge_bases) {
            ^~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:5026:2: note: Taking false branch
        if (!merged_merge_bases) {
        ^
/datasets/git/merge-ort.c:5034:13: note: Assuming 'merge_bases' is non-null
        } else if (merge_bases) {
                   ^~~~~~~~~~~
/datasets/git/merge-ort.c:5034:9: note: Taking true branch
        } else if (merge_bases) {
               ^
/datasets/git/merge-ort.c:5043:2: note: Loop condition is false. Execution continues on line 5077
        for (next = pop_commit(&merge_bases); next;
        ^
/datasets/git/merge-ort.c:5078:2: note: Calling 'merge_ort_nonrecursive_internal'
        merge_ort_nonrecursive_internal(opt,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:4951:6: note: Assuming field 'subtree_shift' is null
        if (opt->subtree_shift) {
            ^~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:4951:2: note: Taking false branch
        if (opt->subtree_shift) {
        ^
/datasets/git/merge-ort.c:4960:6: note: Assuming the condition is false
        if (collect_merge_info(opt, merge_base, side1, side2) != 0) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:4960:2: note: Taking false branch
        if (collect_merge_info(opt, merge_base, side1, side2) != 0) {
        ^
/datasets/git/merge-ort.c:4978:6: note: Assuming field 'redo_after_renames' is not equal to 2
        if (opt->priv->renames.redo_after_renames == 2) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:4978:2: note: Taking false branch
        if (opt->priv->renames.redo_after_renames == 2) {
        ^
/datasets/git/merge-ort.c:4986:6: note: Assuming the condition is false
        if (process_entries(opt, &working_tree_oid) < 0)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:4986:2: note: Taking false branch
        if (process_entries(opt, &working_tree_oid) < 0)
        ^
/datasets/git/merge-ort.c:4993:6: note: Assuming field 'clean' is >= 0
        if (result->clean >= 0) {
            ^~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:4993:2: note: Taking true branch
        if (result->clean >= 0) {
        ^
/datasets/git/merge-ort.c:4998:6: note: Assuming field 'call_depth' is 0
        if (!opt->priv->call_depth) {
            ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:4998:2: note: Taking true branch
        if (!opt->priv->call_depth) {
        ^
/datasets/git/merge-ort.c:5001:3: note: Null pointer value stored to field 'priv'
                opt->priv = NULL;
                ^~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:5078:2: note: Returning from 'merge_ort_nonrecursive_internal'
        merge_ort_nonrecursive_internal(opt,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:5061:3: note: Returning from 'merge_ort_internal'
                merge_ort_internal(opt, NULL, prev, next, result);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-ort.c:5062:15: note: Field 'clean' is >= 0
                if (result->clean < 0)
                            ^
/datasets/git/merge-ort.c:5062:3: note: Taking false branch
                if (result->clean < 0)
                ^
/datasets/git/merge-ort.c:5066:3: note: Access to field 'call_depth' results in a dereference of a null pointer (loaded from field 'priv')
                opt->priv->call_depth--;
                ^    ~~~~
/datasets/git/merge-recursive.c:15:1: warning: #includes are not sorted properly [llvm-include-order]
#include "commit.h"
^        ~~~~~~~~~~
         "commit-reach.h"
/datasets/git/merge-recursive.c:34:8: warning: accessing fields in struct 'merge_options_internal' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct merge_options_internal {
       ^
/datasets/git/merge-recursive.c:34:8: note: use "__attribute__((aligned(128)))" to align struct 'merge_options_internal' to 128 bytes
/datasets/git/merge-recursive.c:49:8: warning: 2 adjacent parameters of 'path_hashmap_cmp' of similar type ('const struct hashmap_entry *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                            const struct hashmap_entry *eptr,
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:49:36: note: the first parameter in the range is 'eptr'
                            const struct hashmap_entry *eptr,
                                                        ^~~~
/datasets/git/merge-recursive.c:50:36: note: the last parameter in the range is 'entry_or_key'
                            const struct hashmap_entry *entry_or_key,
                                                        ^~~~~~~~~~~~
/datasets/git/merge-recursive.c:53:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const struct path_hashmap_entry *a, *b;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:53:35: warning: variable 'a' is not initialized [cppcoreguidelines-init-variables]
        const struct path_hashmap_entry *a, *b;
                                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-recursive.c:53:35: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-recursive.c:53:39: warning: variable 'b' is not initialized [cppcoreguidelines-init-variables]
        const struct path_hashmap_entry *a, *b;
                                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-recursive.c:53:39: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-recursive.c:72:8: warning: accessing fields in struct 'dir_rename_entry' is inefficient due to padding; only needs 92 bytes but is using 96 bytes [altera-struct-pack-align]
struct dir_rename_entry {
       ^
/datasets/git/merge-recursive.c:72:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'dir_rename_entry'
/datasets/git/merge-recursive.c:72:8: warning: accessing fields in struct 'dir_rename_entry' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct dir_rename_entry {
       ^
/datasets/git/merge-recursive.c:72:8: note: use "__attribute__((aligned(128)))" to align struct 'dir_rename_entry' to 128 bytes
/datasets/git/merge-recursive.c:85:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!dir)
                 ^
                  {
/datasets/git/merge-recursive.c:93:6: warning: 2 adjacent parameters of 'dir_rename_cmp' of similar type ('const struct hashmap_entry *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                          const struct hashmap_entry *eptr,
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:93:34: note: the first parameter in the range is 'eptr'
                          const struct hashmap_entry *eptr,
                                                      ^~~~
/datasets/git/merge-recursive.c:94:34: note: the last parameter in the range is 'entry_or_key'
                          const struct hashmap_entry *entry_or_key,
                                                      ^~~~~~~~~~~~
/datasets/git/merge-recursive.c:97:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const struct dir_rename_entry *e1, *e2;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:97:33: warning: variable 'e1' is not initialized [cppcoreguidelines-init-variables]
        const struct dir_rename_entry *e1, *e2;
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-recursive.c:97:33: warning: variable name 'e1' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-recursive.c:97:38: warning: variable 'e2' is not initialized [cppcoreguidelines-init-variables]
        const struct dir_rename_entry *e1, *e2;
                                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-recursive.c:97:38: warning: variable name 'e2' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-recursive.c:120:8: warning: accessing fields in struct 'collision_entry' is inefficient due to padding; only needs 68 bytes but is using 72 bytes [altera-struct-pack-align]
struct collision_entry {
       ^
/datasets/git/merge-recursive.c:120:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'collision_entry'
/datasets/git/merge-recursive.c:120:8: warning: accessing fields in struct 'collision_entry' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct collision_entry {
       ^
/datasets/git/merge-recursive.c:120:8: note: use "__attribute__((aligned(128)))" to align struct 'collision_entry' to 128 bytes
/datasets/git/merge-recursive.c:138:5: warning: 2 adjacent parameters of 'collision_cmp' of similar type ('const struct hashmap_entry *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                         const struct hashmap_entry *eptr,
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:138:33: note: the first parameter in the range is 'eptr'
                         const struct hashmap_entry *eptr,
                                                     ^~~~
/datasets/git/merge-recursive.c:139:33: note: the last parameter in the range is 'entry_or_key'
                         const struct hashmap_entry *entry_or_key,
                                                     ^~~~~~~~~~~~
/datasets/git/merge-recursive.c:142:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const struct collision_entry *e1, *e2;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:142:32: warning: variable 'e1' is not initialized [cppcoreguidelines-init-variables]
        const struct collision_entry *e1, *e2;
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-recursive.c:142:32: warning: variable name 'e1' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-recursive.c:142:37: warning: variable 'e2' is not initialized [cppcoreguidelines-init-variables]
        const struct collision_entry *e1, *e2;
                                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-recursive.c:142:37: warning: variable name 'e2' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-recursive.c:158:3: warning: the value returned by this function should be used [cert-err33-c]
                fputs(opt->obuf.buf, stdout);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:158:3: note: cast the expression to void to silence this warning
/datasets/git/merge-recursive.c:168:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->buffer_output < 2)
                                   ^
                                    {
/datasets/git/merge-recursive.c:177:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->buffer_output > 1)
                                   ^
                                    {
/datasets/git/merge-recursive.c:199:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oideq(&two->object.oid, &shifted))
                                              ^
                                               {
/datasets/git/merge-recursive.c:204:51: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static inline void set_commit_tree(struct commit *c, struct tree *t)
                                                  ^
/datasets/git/merge-recursive.c:204:67: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
static inline void set_commit_tree(struct commit *c, struct tree *t)
                                                                  ^
/datasets/git/merge-recursive.c:235:8: warning: accessing fields in struct 'stage_data' is inefficient due to padding; only needs 396 bytes but is using 400 bytes [altera-struct-pack-align]
struct stage_data {
       ^
/datasets/git/merge-recursive.c:235:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'stage_data'
/datasets/git/merge-recursive.c:235:8: warning: accessing fields in struct 'stage_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct stage_data {
       ^
/datasets/git/merge-recursive.c:235:8: note: use "__attribute__((aligned(128)))" to align struct 'stage_data' to 128 bytes
/datasets/git/merge-recursive.c:241:8: warning: accessing fields in struct 'rename' is inefficient due to padding; only needs 45 bytes but is using 56 bytes [altera-struct-pack-align]
struct rename {
       ^
/datasets/git/merge-recursive.c:241:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'rename'
/datasets/git/merge-recursive.c:241:8: warning: accessing fields in struct 'rename' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct rename {
       ^
/datasets/git/merge-recursive.c:241:8: note: use "__attribute__((aligned(64)))" to align struct 'rename' to 64 bytes
/datasets/git/merge-recursive.c:275:8: warning: accessing fields in struct 'rename_conflict_info' is inefficient due to padding; only needs 20 bytes but is using 24 bytes [altera-struct-pack-align]
struct rename_conflict_info {
       ^
/datasets/git/merge-recursive.c:275:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'rename_conflict_info'
/datasets/git/merge-recursive.c:275:8: warning: accessing fields in struct 'rename_conflict_info' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct rename_conflict_info {
       ^
/datasets/git/merge-recursive.c:275:8: note: use "__attribute__((aligned(32)))" to align struct 'rename_conflict_info' to 32 bytes
/datasets/git/merge-recursive.c:281:20: warning: function 'setup_rename_conflict_info' is within a recursive call chain [misc-no-recursion]
static inline void setup_rename_conflict_info(enum rename_type rename_type,
                   ^
/datasets/git/merge-recursive.c:281:20: note: example recursive call chain, starting from function 'setup_rename_conflict_info'
/datasets/git/merge-recursive.c:296:3: note: Frame #1: function 'setup_rename_conflict_info' calls function 'setup_rename_conflict_info' here:
                setup_rename_conflict_info(rename_type, opt, ren2, ren1);
                ^
/datasets/git/merge-recursive.c:296:3: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/merge-recursive.c:286:31: warning: variable 'ci' is not initialized [cppcoreguidelines-init-variables]
        struct rename_conflict_info *ci;
                                     ^
                                        = NULL
/datasets/git/merge-recursive.c:286:31: warning: variable name 'ci' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-recursive.c:312:48: warning: parameter name 'v' is too short, expected at least 3 characters [readability-identifier-length]
static int show(struct merge_options *opt, int v)
                                               ^
/datasets/git/merge-recursive.c:315:21: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                opt->verbosity >= 5;
                                  ^
/datasets/git/merge-recursive.c:319:51: warning: parameter name 'v' is too short, expected at least 3 characters [readability-identifier-length]
static void output(struct merge_options *opt, int v, const char *fmt, ...)
                                                  ^
/datasets/git/merge-recursive.c:321:10: warning: variable name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
        va_list ap;
                ^
/datasets/git/merge-recursive.c:323:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!show(opt, v))
                          ^
                           {
/datasets/git/merge-recursive.c:326:35: warning: performing an implicit widening conversion to type 'size_t' (aka 'unsigned long') of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        strbuf_addchars(&opt->obuf, ' ', opt->priv->call_depth * 2);
                                         ^
/datasets/git/merge-recursive.c:326:35: note: make conversion explicit to silence this warning
        strbuf_addchars(&opt->obuf, ' ', opt->priv->call_depth * 2);
                                         ^~~~~~~~~~~~~~~~~~~~~~~~~
                                         (size_t)(               )
/datasets/git/merge-recursive.c:326:35: note: perform multiplication in a wider type
        strbuf_addchars(&opt->obuf, ' ', opt->priv->call_depth * 2);
                                         ^~~~~~~~~~~~~~~~~~~~~
                                         (long)
/datasets/git/merge-recursive.c:333:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opt->buffer_output)
                                ^
                                 {
/datasets/git/merge-recursive.c:341:28: warning: variable 'desc' is not initialized [cppcoreguidelines-init-variables]
        struct merge_remote_desc *desc;
                                  ^
                                       = NULL
/datasets/git/merge-recursive.c:343:35: warning: performing an implicit widening conversion to type 'size_t' (aka 'unsigned long') of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        strbuf_addchars(&opt->obuf, ' ', opt->priv->call_depth * 2);
                                         ^
/datasets/git/merge-recursive.c:343:35: note: make conversion explicit to silence this warning
        strbuf_addchars(&opt->obuf, ' ', opt->priv->call_depth * 2);
                                         ^~~~~~~~~~~~~~~~~~~~~~~~~
                                         (size_t)(               )
/datasets/git/merge-recursive.c:343:35: note: perform multiplication in a wider type
        strbuf_addchars(&opt->obuf, ' ', opt->priv->call_depth * 2);
                                         ^~~~~~~~~~~~~~~~~~~~~
                                         (long)
/datasets/git/merge-recursive.c:345:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (desc)
                 ^
                  {
/datasets/git/merge-recursive.c:352:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (repo_parse_commit(repo, commit) != 0)
                                                         ^
                                                          {
/datasets/git/merge-recursive.c:355:16: warning: variable 'title' is not initialized [cppcoreguidelines-init-variables]
                        const char *title;
                                    ^
                                          = NULL
/datasets/git/merge-recursive.c:358:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (len)
                                ^
                                 {
/datasets/git/merge-recursive.c:373:23: warning: 3 adjacent parameters of 'add_cacheinfo' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                         const char *path, int stage, int refresh, int options)
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:373:27: note: the first parameter in the range is 'stage'
                         const char *path, int stage, int refresh, int options)
                                               ^~~~~
/datasets/git/merge-recursive.c:373:51: note: the last parameter in the range is 'options'
                         const char *path, int stage, int refresh, int options)
                                                                       ^~~~~~~
/datasets/git/merge-recursive.c:376:22: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
        struct cache_entry *ce;
                            ^
                               = NULL
/datasets/git/merge-recursive.c:376:22: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-recursive.c:377:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/merge-recursive.c:380:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ce)
                ^
                 {
/datasets/git/merge-recursive.c:385:23: warning: variable 'nce' is not initialized [cppcoreguidelines-init-variables]
                struct cache_entry *nce;
                                    ^
                                        = NULL
/datasets/git/merge-recursive.c:388:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                          CE_MATCH_REFRESH | CE_MATCH_IGNORE_MISSING);
                                          ^
/datasets/git/./refs/../cache.h:887:27: note: expanded from macro 'CE_MATCH_REFRESH'
#define CE_MATCH_REFRESH                0x10
                                        ^~~~
/datasets/git/merge-recursive.c:389:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!nce)
                         ^
                          {
/datasets/git/merge-recursive.c:391:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (nce != ce)
                              ^
                               {
/datasets/git/merge-recursive.c:413:6: warning: variable 'rc' is not initialized [cppcoreguidelines-init-variables]
        int rc;
            ^
               = 0
/datasets/git/merge-recursive.c:413:6: warning: variable name 'rc' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-recursive.c:414:19: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
        struct tree_desc t[3];
                         ^
/datasets/git/merge-recursive.c:417:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&opt->priv->unpack_opts, 0, sizeof(opt->priv->unpack_opts));
        ^~~~~~
/datasets/git/merge-recursive.c:417:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&opt->priv->unpack_opts, 0, sizeof(opt->priv->unpack_opts));
        ^~~~~~
/datasets/git/merge-recursive.c:418:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->priv->call_depth)
                                  ^
                                   {
/datasets/git/merge-recursive.c:463:29: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
        struct path_hashmap_entry *entry;
                                   ^
                                         = NULL
/datasets/git/merge-recursive.c:464:16: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int baselen = base->len;
                      ^
/datasets/git/merge-recursive.c:469:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FLEX_ALLOC_MEM(entry, path, base->buf, base->len);
        ^
/datasets/git/./git-compat-util.h:1151:47: note: expanded from macro 'FLEX_ALLOC_MEM'
#define FLEX_ALLOC_MEM(x, flexname, buf, len) do { \
                                              ^
/datasets/git/merge-recursive.c:469:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        FLEX_ALLOC_MEM(entry, path, base->buf, base->len);
        ^
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/merge-recursive.c:469:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        FLEX_ALLOC_MEM(entry, path, base->buf, base->len);
        ^
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/merge-recursive.c:480:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&match_all, 0, sizeof(match_all));
        ^~~~~~
/datasets/git/merge-recursive.c:480:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&match_all, 0, sizeof(match_all));
        ^~~~~~
/datasets/git/merge-recursive.c:485:54: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int get_tree_entry_if_blob(struct repository *r,
                                                     ^
/datasets/git/merge-recursive.c:490:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/merge-recursive.c:504:64: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static struct stage_data *insert_stage_data(struct repository *r,
                                                               ^
/datasets/git/merge-recursive.c:506:16: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                struct tree *o, struct tree *a, struct tree *b,
                             ^
/datasets/git/merge-recursive.c:506:32: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
                struct tree *o, struct tree *a, struct tree *b,
                                             ^
/datasets/git/merge-recursive.c:506:48: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
                struct tree *o, struct tree *a, struct tree *b,
                                                             ^
/datasets/git/merge-recursive.c:509:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/merge-recursive.c:510:21: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
        struct stage_data *e = xcalloc(1, sizeof(struct stage_data));
                           ^
/datasets/git/merge-recursive.c:526:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/merge-recursive.c:526:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-recursive.c:532:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < istate->cache_nr; i++) {
        ^
/datasets/git/merge-recursive.c:533:28: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
                struct string_list_item *item;
                                         ^
                                              = NULL
/datasets/git/merge-recursive.c:534:22: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
                struct stage_data *e;
                                   ^
                                     = NULL
/datasets/git/merge-recursive.c:534:22: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-recursive.c:535:29: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                const struct cache_entry *ce = istate->cache[i];
                                          ^
/datasets/git/merge-recursive.c:536:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!ce_stage(ce))
                     ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:536:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ce_stage(ce))
                                  ^
                                   {
/datasets/git/merge-recursive.c:545:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                e->stages[ce_stage(ce)].mode = ce->ce_mode;
                          ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:546:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                oidcpy(&e->stages[ce_stage(ce)].oid, &ce->oid);
                                  ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:554:15: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int onelen = strlen(one);
                     ^
/datasets/git/merge-recursive.c:555:15: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int twolen = strlen(two);
                     ^
/datasets/git/merge-recursive.c:574:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cmp)
                ^
                 {
/datasets/git/merge-recursive.c:598:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/merge-recursive.c:598:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-recursive.c:604:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->priv->call_depth)
                                  ^
                                   {
/datasets/git/merge-recursive.c:608:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < entries->nr; i++) {
        ^
/datasets/git/merge-recursive.c:617:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < df_sorted_entries.nr; i++) {
        ^
/datasets/git/merge-recursive.c:619:13: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int len = strlen(path);
                          ^
/datasets/git/merge-recursive.c:620:22: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                struct stage_data *e = df_sorted_entries.items[i].util;
                                   ^
/datasets/git/merge-recursive.c:652:33: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                         const struct diff_filespec *o,
                                                     ^
/datasets/git/merge-recursive.c:653:33: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
                         const struct diff_filespec *a,
                                                     ^
/datasets/git/merge-recursive.c:654:33: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
                         const struct diff_filespec *b)
                                                     ^
/datasets/git/merge-recursive.c:666:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int options = ADD_CACHE_OK_TO_ADD | ADD_CACHE_SKIP_DFCHECK;
                      ^
/datasets/git/./refs/../cache.h:840:29: note: expanded from macro 'ADD_CACHE_OK_TO_ADD'
#define ADD_CACHE_OK_TO_ADD 1           /* Ok to add */
                            ^
/datasets/git/merge-recursive.c:667:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (clear)
                  ^
                   {
/datasets/git/merge-recursive.c:668:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (remove_file_from_index(opt->repo->index, path))
                                                                   ^
                                                                    {
/datasets/git/merge-recursive.c:670:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (o)
              ^
               {
/datasets/git/merge-recursive.c:671:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (add_cacheinfo(opt, o, path, 1, 0, options))
                                                               ^
                                                                {
/datasets/git/merge-recursive.c:673:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (a)
              ^
               {
/datasets/git/merge-recursive.c:674:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (add_cacheinfo(opt, a, path, 2, 0, options))
                                                               ^
                                                                {
/datasets/git/merge-recursive.c:676:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (b)
              ^
               {
/datasets/git/merge-recursive.c:677:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (add_cacheinfo(opt, b, path, 3, 0, options))
                                                               ^
                                                                {
/datasets/git/merge-recursive.c:683:27: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                         struct diff_filespec *o,
                                               ^
/datasets/git/merge-recursive.c:684:27: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
                         struct diff_filespec *a,
                                               ^
/datasets/git/merge-recursive.c:685:27: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
                         struct diff_filespec *b)
                                               ^
/datasets/git/merge-recursive.c:703:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (remove_file_from_index(opt->repo->index, path))
                                                                   ^
                                                                    {
/datasets/git/merge-recursive.c:708:24: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
                        struct cache_entry *ce;
                                            ^
                                               = NULL
/datasets/git/merge-recursive.c:708:24: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-recursive.c:709:51: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        ce = index_file_exists(opt->repo->index, path, strlen(path),
                                                                       ^
/datasets/git/merge-recursive.c:711:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (ce && ce_stage(ce) == 0 && strcmp(path, ce->name))
                                  ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:711:35: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                        if (ce && ce_stage(ce) == 0 && strcmp(path, ce->name))
                                                       ^
                                                                              != 0
/datasets/git/merge-recursive.c:711:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ce && ce_stage(ce) == 0 && strcmp(path, ce->name))
                                                                              ^
                                                                               {
/datasets/git/merge-recursive.c:714:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (remove_path(path))
                                      ^
                                       {
/datasets/git/merge-recursive.c:721:64: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void add_flattened_path(struct strbuf *out, const char *s)
                                                               ^
/datasets/git/merge-recursive.c:723:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        size_t i = out->len;
               ^
/datasets/git/merge-recursive.c:725:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; i < out->len; i++)
        ^
/datasets/git/merge-recursive.c:725:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; i < out->len; i++)
               ^
/datasets/git/merge-recursive.c:725:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (; i < out->len; i++)
                                 ^
                                  {
/datasets/git/merge-recursive.c:726:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (out->buf[i] == '/')
                                       ^
                                        {
/datasets/git/merge-recursive.c:731:5: warning: 2 adjacent parameters of 'unique_path' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                         const char *path,
                         ^~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:731:17: note: the first parameter in the range is 'path'
                         const char *path,
                                     ^~~~
/datasets/git/merge-recursive.c:732:17: note: the last parameter in the range is 'branch'
                         const char *branch)
                                     ^~~~~~
/datasets/git/merge-recursive.c:735:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct strbuf newpath = STRBUF_INIT;
        ^
/datasets/git/merge-recursive.c:734:29: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
        struct path_hashmap_entry *entry;
                                   ^
                                         = NULL
/datasets/git/merge-recursive.c:737:9: warning: variable 'base_len' is not initialized [cppcoreguidelines-init-variables]
        size_t base_len;
               ^
                        = 0
/datasets/git/merge-recursive.c:743:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (hashmap_get_from_hash(&opt->priv->current_file_dir_set,
        ^
/datasets/git/merge-recursive.c:743:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'newpath' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (hashmap_get_from_hash(&opt->priv->current_file_dir_set,
               ^
/datasets/git/merge-recursive.c:750:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FLEX_ALLOC_MEM(entry, path, newpath.buf, newpath.len);
        ^
/datasets/git/./git-compat-util.h:1151:47: note: expanded from macro 'FLEX_ALLOC_MEM'
#define FLEX_ALLOC_MEM(x, flexname, buf, len) do { \
                                              ^
/datasets/git/merge-recursive.c:750:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        FLEX_ALLOC_MEM(entry, path, newpath.buf, newpath.len);
        ^
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/merge-recursive.c:750:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        FLEX_ALLOC_MEM(entry, path, newpath.buf, newpath.len);
        ^
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/merge-recursive.c:765:6: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        int pos;
            ^
                = 0
/datasets/git/merge-recursive.c:767:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/merge-recursive.c:772:44: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        pos = index_name_pos(istate, dirpath.buf, dirpath.len);
                                                  ^
/datasets/git/merge-recursive.c:774:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pos < 0)
                    ^
                     {
/datasets/git/merge-recursive.c:785:35: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                !has_symlink_leading_path(path, strlen(path));
                                                ^
/datasets/git/merge-recursive.c:795:57: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int pos = index_name_pos(&opt->priv->orig_index, path, strlen(path));
                                                               ^
/datasets/git/merge-recursive.c:796:22: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
        struct cache_entry *ce;
                            ^
                               = NULL
/datasets/git/merge-recursive.c:796:22: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-recursive.c:798:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (0 > pos)
                    ^
                     {
/datasets/git/merge-recursive.c:812:57: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int pos = index_name_pos(&opt->priv->orig_index, path, strlen(path));
                                                               ^
/datasets/git/merge-recursive.c:814:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (0 <= pos)
                     ^
                      {
/datasets/git/merge-recursive.c:842:41: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int pos = index_name_pos(istate, path, strlen(path));
                                               ^
/datasets/git/merge-recursive.c:844:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pos < 0)
                    ^
                     {
/datasets/git/merge-recursive.c:846:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (pos < istate->cache_nr &&
        ^
/datasets/git/merge-recursive.c:846:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'pos' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (pos < istate->cache_nr &&
               ^
/datasets/git/merge-recursive.c:854:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                switch (ce_stage(istate->cache[pos])) {
                        ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:866:22: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
        struct cache_entry *ce;
                            ^
                               = NULL
/datasets/git/merge-recursive.c:866:22: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-recursive.c:869:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->priv->call_depth || !was_tracked(opt, path))
                                                             ^
                                                              {
/datasets/git/merge-recursive.c:873:17: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                               path, strlen(path), ignore_case);
                                     ^
/datasets/git/merge-recursive.c:880:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int status, i;
        ^~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:880:6: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int status, i;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-recursive.c:880:14: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int status, i;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-recursive.c:880:14: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-recursive.c:884:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < opt->priv->df_conflict_file_set.nr; i++) {
        ^
/datasets/git/merge-recursive.c:904:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (status == SCLD_EXISTS)
                                          ^
                                           {
/datasets/git/merge-recursive.c:914:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (would_lose_untracked(opt, path))
                                            ^
                                             {
/datasets/git/merge-recursive.c:919:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!unlink(path))
                          ^
                           {
/datasets/git/merge-recursive.c:922:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (errno == ENOENT)
                            ^
                             {
/datasets/git/merge-recursive.c:928:12: warning: function 'update_file_flags' has cognitive complexity of 40 (threshold 25) [readability-function-cognitive-complexity]
static int update_file_flags(struct merge_options *opt,
           ^
/datasets/git/merge-recursive.c:936:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt->priv->call_depth)
        ^
/datasets/git/merge-recursive.c:939:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (update_wd) {
        ^
/datasets/git/merge-recursive.c:944:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (S_ISGITLINK(contents->mode)) {
                ^
/datasets/git/merge-recursive.c:951:4: note: +1
                        goto update_index;
                        ^
/datasets/git/merge-recursive.c:955:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!buf) {
                ^
/datasets/git/merge-recursive.c:958:4: note: +1
                        goto free_buf;
                        ^
/datasets/git/merge-recursive.c:960:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (type != OBJ_BLOB) {
                ^
/datasets/git/merge-recursive.c:963:4: note: +1
                        goto free_buf;
                        ^
/datasets/git/merge-recursive.c:965:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (S_ISREG(contents->mode)) {
                ^
/datasets/git/merge-recursive.c:967:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (convert_to_working_tree(opt->repo->index,
                        ^
/datasets/git/merge-recursive.c:975:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (make_room_for_path(opt, path) < 0) {
                ^
/datasets/git/merge-recursive.c:977:4: note: +1
                        goto free_buf;
                        ^
/datasets/git/merge-recursive.c:979:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (S_ISREG(contents->mode) ||
                ^
/datasets/git/merge-recursive.c:979:31: note: +1
                if (S_ISREG(contents->mode) ||
                                            ^
/datasets/git/merge-recursive.c:980:22: note: +1
                    (!has_symlinks && S_ISLNK(contents->mode))) {
                                   ^
/datasets/git/merge-recursive.c:982:38: note: +3, including nesting penalty of 2, nesting level increased to 3
                        int mode = (contents->mode & 0100 ? 0777 : 0666);
                                                          ^
/datasets/git/merge-recursive.c:985:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (fd < 0) {
                        ^
/datasets/git/merge-recursive.c:988:5: note: +1
                                goto free_buf;
                                ^
/datasets/git/merge-recursive.c:992:10: note: +1, nesting level increased to 2
                } else if (S_ISLNK(contents->mode)) {
                       ^
/datasets/git/merge-recursive.c:996:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (symlink(lnk, path))
                        ^
/datasets/git/merge-recursive.c:1000:5: note: +1, nesting level increased to 2
                } else
                  ^
/datasets/git/merge-recursive.c:1008:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!ret && update_cache) {
        ^
/datasets/git/merge-recursive.c:1008:11: note: +1
        if (!ret && update_cache) {
                 ^
/datasets/git/merge-recursive.c:1009:41: note: +1
                int refresh = (!opt->priv->call_depth &&
                                                      ^
/datasets/git/merge-recursive.c:1011:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (add_cacheinfo(opt, contents, path, 0, refresh,
                ^
/datasets/git/merge-recursive.c:931:9: warning: 2 adjacent parameters of 'update_file_flags' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                             int update_cache,
                             ^~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:931:13: note: the first parameter in the range is 'update_cache'
                             int update_cache,
                                 ^~~~~~~~~~~~
/datasets/git/merge-recursive.c:932:13: note: the last parameter in the range is 'update_wd'
                             int update_wd)
                                 ^~~~~~~~~
/datasets/git/merge-recursive.c:936:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->priv->call_depth)
                                  ^
                                   {
/datasets/git/merge-recursive.c:940:20: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
                enum object_type type;
                                 ^
/datasets/git/merge-recursive.c:941:9: warning: variable 'buf' is not initialized [cppcoreguidelines-init-variables]
                void *buf;
                      ^
                          = NULL
/datasets/git/merge-recursive.c:942:17: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
                unsigned long size;
                              ^
                                   = 0
/datasets/git/merge-recursive.c:944:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (S_ISGITLINK(contents->mode)) {
                    ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/merge-recursive.c:950:4: warning: Value stored to 'update_wd' is never read [clang-analyzer-deadcode.DeadStores]
                        update_wd = 0;
                        ^           ~
/datasets/git/merge-recursive.c:950:4: note: Value stored to 'update_wd' is never read
                        update_wd = 0;
                        ^           ~
/datasets/git/merge-recursive.c:976:4: warning: Value stored to 'update_wd' is never read [clang-analyzer-deadcode.DeadStores]
                        update_wd = 0;
                        ^           ~
/datasets/git/merge-recursive.c:976:4: note: Value stored to 'update_wd' is never read
                        update_wd = 0;
                        ^           ~
/datasets/git/merge-recursive.c:981:8: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
                        int fd;
                            ^
                               = 0
/datasets/git/merge-recursive.c:981:8: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-recursive.c:982:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        int mode = (contents->mode & 0100 ? 0777 : 0666);
                                    ^                ~~~~
/datasets/git/merge-recursive.c:982:33: warning: 0100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        int mode = (contents->mode & 0100 ? 0777 : 0666);
                                                     ^
/datasets/git/merge-recursive.c:982:40: warning: 0777 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        int mode = (contents->mode & 0100 ? 0777 : 0666);
                                                            ^
/datasets/git/merge-recursive.c:982:47: warning: 0666 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        int mode = (contents->mode & 0100 ? 0777 : 0666);
                                                                   ^
/datasets/git/merge-recursive.c:984:48: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
                        fd = open(path, O_WRONLY | O_TRUNC | O_CREAT, mode);
                                                                    ^
                                                                     | O_CLOEXEC
/datasets/git/merge-recursive.c:987:14: warning: function is not thread safe [concurrency-mt-unsafe]
                                          path, strerror(errno));
                                                ^
/datasets/git/merge-recursive.c:996:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (symlink(lnk, path))
                                               ^
                                                {
/datasets/git/merge-recursive.c:998:14: warning: function is not thread safe [concurrency-mt-unsafe]
                                          path, strerror(errno));
                                                ^
/datasets/git/merge-recursive.c:1000:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/merge-recursive.c:1012:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                  ADD_CACHE_OK_TO_ADD))
                                                       ^
                                                        {
/datasets/git/merge-recursive.c:1029:8: warning: accessing fields in struct 'merge_file_info' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct merge_file_info {
       ^
/datasets/git/merge-recursive.c:1029:8: note: use "__attribute__((aligned(128)))" to align struct 'merge_file_info' to 128 bytes
/datasets/git/merge-recursive.c:1037:37: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                      const struct diff_filespec *o,
                                                  ^
/datasets/git/merge-recursive.c:1038:37: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
                      const struct diff_filespec *a,
                                                  ^
/datasets/git/merge-recursive.c:1039:37: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
                      const struct diff_filespec *b,
                                                  ^
/datasets/git/merge-recursive.c:1044:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        mmfile_t orig, src1, src2;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:1046:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *base, *name1, *name2;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:1046:8: warning: variable 'base' is not initialized [cppcoreguidelines-init-variables]
        char *base, *name1, *name2;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-recursive.c:1046:15: warning: variable 'name1' is not initialized [cppcoreguidelines-init-variables]
        char *base, *name1, *name2;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-recursive.c:1046:23: warning: variable 'name2' is not initialized [cppcoreguidelines-init-variables]
        char *base, *name1, *name2;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-recursive.c:1047:23: warning: variable 'merge_status' is not initialized [cppcoreguidelines-init-variables]
        enum ll_merge_result merge_status;
                             ^
/datasets/git/merge-recursive.c:1071:6: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (strcmp(a->path, b->path) || strcmp(a->path, o->path) != 0) {
            ^
                                     != 0
/datasets/git/merge-recursive.c:1093:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (merge_status == LL_MERGE_BINARY_CONFLICT)
                                                     ^
                                                      {
/datasets/git/merge-recursive.c:1108:9: warning: 2 adjacent parameters of 'find_first_merges' of similar type ('struct commit *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                             struct commit *a, struct commit *b)
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:1108:24: note: the first parameter in the range is 'a'
                             struct commit *a, struct commit *b)
                                            ^
/datasets/git/merge-recursive.c:1108:42: note: the last parameter in the range is 'b'
                             struct commit *a, struct commit *b)
                                                              ^
/datasets/git/merge-recursive.c:1108:24: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
                             struct commit *a, struct commit *b)
                                            ^
/datasets/git/merge-recursive.c:1108:42: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
                             struct commit *a, struct commit *b)
                                                              ^
/datasets/git/merge-recursive.c:1110:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, j;
        ^~~~~~~~~
/datasets/git/merge-recursive.c:1110:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, j;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-recursive.c:1110:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-recursive.c:1110:9: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int i, j;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-recursive.c:1110:9: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-recursive.c:1112:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/merge-recursive.c:1113:6: warning: variable 'contains_another' is not initialized [cppcoreguidelines-init-variables]
        int contains_another;
            ^
                             = 0
/datasets/git/merge-recursive.c:1121:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(result, 0, sizeof(struct object_array));
        ^~~~~~
/datasets/git/merge-recursive.c:1121:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(result, 0, sizeof(struct object_array));
        ^~~~~~
/datasets/git/merge-recursive.c:1122:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&rev_opts, 0, sizeof(rev_opts));
        ^~~~~~
/datasets/git/merge-recursive.c:1122:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&rev_opts, 0, sizeof(rev_opts));
        ^~~~~~
/datasets/git/merge-recursive.c:1133:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prepare_revision_walk(&revs))
                                         ^
                                          {
/datasets/git/merge-recursive.c:1135:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((commit = get_revision(&revs)) != NULL) {
        ^
/datasets/git/merge-recursive.c:1135:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'commit' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((commit = get_revision(&revs)) != NULL) {
               ^
/datasets/git/merge-recursive.c:1136:18: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                struct object *o = &(commit->object);
                               ^
/datasets/git/merge-recursive.c:1137:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (repo_in_merge_bases(repo, b, commit))
                                                         ^
                                                          {
/datasets/git/merge-recursive.c:1147:18: warning: variable name 'm1' is too short, expected at least 3 characters [readability-identifier-length]
                struct commit *m1 = (struct commit *) merges.objects[i].item;
                               ^
/datasets/git/merge-recursive.c:1150:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (j = 0; j < merges.nr; j++) {
                ^
/datasets/git/merge-recursive.c:1151:19: warning: variable name 'm2' is too short, expected at least 3 characters [readability-identifier-length]
                        struct commit *m2 = (struct commit *) merges.objects[j].item;
                                       ^
/datasets/git/merge-recursive.c:1158:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!contains_another)
                                      ^
                                       {
/datasets/git/merge-recursive.c:1164:9: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return result->nr;
               ^
/datasets/git/merge-recursive.c:1169:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/merge-recursive.c:1175:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(stderr, "%s\n", sb.buf);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:1175:2: note: cast the expression to void to silence this warning
/datasets/git/merge-recursive.c:1184:12: warning: function 'merge_submodule' has cognitive complexity of 26 (threshold 25) [readability-function-cognitive-complexity]
static int merge_submodule(struct merge_options *opt,
           ^
/datasets/git/merge-recursive.c:1207:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (is_null_oid(base))
        ^
/datasets/git/merge-recursive.c:1209:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (is_null_oid(a))
        ^
/datasets/git/merge-recursive.c:1211:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (is_null_oid(b))
        ^
/datasets/git/merge-recursive.c:1214:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (repo_submodule_init(&subrepo, opt->repo, path, null_oid())) {
        ^
/datasets/git/merge-recursive.c:1219:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!(commit_base = lookup_commit_reference(&subrepo, base)) ||
        ^
/datasets/git/merge-recursive.c:1220:57: note: +1
            !(commit_a = lookup_commit_reference(&subrepo, a)) ||
                                                               ^
/datasets/git/merge-recursive.c:1223:3: note: +1
                goto cleanup;
                ^
/datasets/git/merge-recursive.c:1227:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!repo_in_merge_bases(&subrepo, commit_base, commit_a) ||
        ^
/datasets/git/merge-recursive.c:1227:60: note: +1
        if (!repo_in_merge_bases(&subrepo, commit_base, commit_a) ||
                                                                  ^
/datasets/git/merge-recursive.c:1230:3: note: +1
                goto cleanup;
                ^
/datasets/git/merge-recursive.c:1234:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (repo_in_merge_bases(&subrepo, commit_a, commit_b)) {
        ^
/datasets/git/merge-recursive.c:1236:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (show(opt, 3)) {
                ^
/datasets/git/merge-recursive.c:1239:10: note: +1, nesting level increased to 2
                } else if (show(opt, 2))
                       ^
/datasets/git/merge-recursive.c:1241:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/merge-recursive.c:1245:3: note: +1
                goto cleanup;
                ^
/datasets/git/merge-recursive.c:1247:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (repo_in_merge_bases(&subrepo, commit_b, commit_a)) {
        ^
/datasets/git/merge-recursive.c:1249:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (show(opt, 3)) {
                ^
/datasets/git/merge-recursive.c:1252:10: note: +1, nesting level increased to 2
                } else if (show(opt, 2))
                       ^
/datasets/git/merge-recursive.c:1254:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/merge-recursive.c:1258:3: note: +1
                goto cleanup;
                ^
/datasets/git/merge-recursive.c:1269:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!search)
        ^
/datasets/git/merge-recursive.c:1275:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        switch (parent_count) {
        ^
/datasets/git/merge-recursive.c:1295:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < merges.nr; i++)
                ^
/datasets/git/merge-recursive.c:1186:61: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
                           const struct object_id *base, const struct object_id *a,
                                                                                 ^
/datasets/git/merge-recursive.c:1187:31: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
                           const struct object_id *b)
                                                   ^
/datasets/git/merge-recursive.c:1191:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit *commit_base, *commit_a, *commit_b;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:1191:17: warning: variable 'commit_base' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit_base, *commit_a, *commit_b;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-recursive.c:1191:31: warning: variable 'commit_a' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit_base, *commit_a, *commit_b;
                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-recursive.c:1191:42: warning: variable 'commit_b' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit_base, *commit_a, *commit_b;
                                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-recursive.c:1192:6: warning: variable 'parent_count' is not initialized [cppcoreguidelines-init-variables]
        int parent_count;
            ^
                         = 0
/datasets/git/merge-recursive.c:1195:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/merge-recursive.c:1195:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-recursive.c:1207:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_null_oid(base))
                              ^
                               {
/datasets/git/merge-recursive.c:1209:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_null_oid(a))
                           ^
                            {
/datasets/git/merge-recursive.c:1211:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_null_oid(b))
                           ^
                            {
/datasets/git/merge-recursive.c:1219:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if (!(commit_base = lookup_commit_reference(&subrepo, base)) ||
              ^
/datasets/git/merge-recursive.c:1219:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/merge-recursive.c:1219:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/merge-recursive.c:1220:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
            !(commit_a = lookup_commit_reference(&subrepo, a)) ||
              ^
/datasets/git/merge-recursive.c:1220:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/merge-recursive.c:1220:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/merge-recursive.c:1221:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
            !(commit_b = lookup_commit_reference(&subrepo, b))) {
              ^
/datasets/git/merge-recursive.c:1221:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/merge-recursive.c:1221:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/merge-recursive.c:1239:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else if (show(opt, 2))
                                        ^
                                         {
/datasets/git/merge-recursive.c:1241:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/merge-recursive.c:1252:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else if (show(opt, 2))
                                        ^
                                         {
/datasets/git/merge-recursive.c:1254:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/merge-recursive.c:1269:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!search)
                    ^
                     {
/datasets/git/merge-recursive.c:1295:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < merges.nr; i++)
                ^
/datasets/git/merge-recursive.c:1295:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < merges.nr; i++)
                                               ^
                                                {
/datasets/git/merge-recursive.c:1305:12: warning: function 'merge_mode_and_contents' is within a recursive call chain [misc-no-recursion]
static int merge_mode_and_contents(struct merge_options *opt,
           ^
/datasets/git/merge-recursive.c:1305:12: note: example recursive call chain, starting from function 'merge_mode_and_contents'
/datasets/git/merge-recursive.c:1321:10: note: Frame #1: function 'merge_mode_and_contents' calls function 'merge_mode_and_contents' here:
                return merge_mode_and_contents(opt, o, b, a,
                       ^
/datasets/git/merge-recursive.c:1321:10: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/merge-recursive.c:1305:12: warning: function 'merge_mode_and_contents' has cognitive complexity of 43 (threshold 25) [readability-function-cognitive-complexity]
static int merge_mode_and_contents(struct merge_options *opt,
           ^
/datasets/git/merge-recursive.c:1315:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt->branch1 != branch1) {
        ^
/datasets/git/merge-recursive.c:1330:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((S_IFMT & a->mode) != (S_IFMT & b->mode)) {
        ^
/datasets/git/merge-recursive.c:1339:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (S_ISREG(a->mode)) {
                ^
/datasets/git/merge-recursive.c:1342:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/merge-recursive.c:1346:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/merge-recursive.c:1347:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!oideq(&a->oid, &o->oid) && !oideq(&b->oid, &o->oid))
                ^
/datasets/git/merge-recursive.c:1347:32: note: +1
                if (!oideq(&a->oid, &o->oid) && !oideq(&b->oid, &o->oid))
                                             ^
/datasets/git/merge-recursive.c:1353:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (a->mode == b->mode || a->mode == o->mode)
                ^
/datasets/git/merge-recursive.c:1353:26: note: +1
                if (a->mode == b->mode || a->mode == o->mode)
                                       ^
/datasets/git/merge-recursive.c:1355:3: note: +1, nesting level increased to 2
                else {
                ^
/datasets/git/merge-recursive.c:1357:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (b->mode != o->mode) {
                        ^
/datasets/git/merge-recursive.c:1363:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (oideq(&a->oid, &b->oid) || oideq(&a->oid, &o->oid))
                ^
/datasets/git/merge-recursive.c:1363:31: note: +1
                if (oideq(&a->oid, &b->oid) || oideq(&a->oid, &o->oid))
                                            ^
/datasets/git/merge-recursive.c:1365:8: note: +1, nesting level increased to 2
                else if (oideq(&b->oid, &o->oid))
                     ^
/datasets/git/merge-recursive.c:1367:8: note: +1, nesting level increased to 2
                else if (S_ISREG(a->mode)) {
                     ^
/datasets/git/merge-recursive.c:1375:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if ((merge_status < 0) || !result_buf.ptr)
                        ^
/datasets/git/merge-recursive.c:1375:27: note: +1
                        if ((merge_status < 0) || !result_buf.ptr)
                                               ^
/datasets/git/merge-recursive.c:1378:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!ret &&
                        ^
/datasets/git/merge-recursive.c:1378:13: note: +1
                        if (!ret &&
                                 ^
/datasets/git/merge-recursive.c:1385:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ret)
                        ^
/datasets/git/merge-recursive.c:1389:10: note: +1, nesting level increased to 2
                } else if (S_ISGITLINK(a->mode)) {
                       ^
/datasets/git/merge-recursive.c:1395:10: note: +1, nesting level increased to 2
                } else if (S_ISLNK(a->mode)) {
                       ^
/datasets/git/merge-recursive.c:1396:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        switch (opt->recursive_variant) {
                        ^
/datasets/git/merge-recursive.c:1399:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!oideq(&a->oid, &b->oid))
                                ^
/datasets/git/merge-recursive.c:1409:5: note: +1, nesting level increased to 2
                } else
                  ^
/datasets/git/merge-recursive.c:1413:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (result->merge)
        ^
/datasets/git/merge-recursive.c:1306:36: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                                   const struct diff_filespec *o,
                                                               ^
/datasets/git/merge-recursive.c:1307:36: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
                                   const struct diff_filespec *a,
                                                               ^
/datasets/git/merge-recursive.c:1308:36: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
                                   const struct diff_filespec *b,
                                                               ^
/datasets/git/merge-recursive.c:1347:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!oideq(&a->oid, &o->oid) && !oideq(&b->oid, &o->oid))
                                                                         ^
                                                                          {
/datasets/git/merge-recursive.c:1353:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (a->mode == b->mode || a->mode == o->mode)
                                                             ^
                                                              {
/datasets/git/merge-recursive.c:1363:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (oideq(&a->oid, &b->oid) || oideq(&a->oid, &o->oid))
                                                                       ^
                                                                        {
/datasets/git/merge-recursive.c:1365:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (oideq(&b->oid, &o->oid))
                                                 ^
                                                  {
/datasets/git/merge-recursive.c:1369:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        int ret = 0, merge_status;
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:1369:17: warning: variable 'merge_status' is not initialized [cppcoreguidelines-init-variables]
                        int ret = 0, merge_status;
                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-recursive.c:1375:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if ((merge_status < 0) || !result_buf.ptr)
                                                                  ^
                                                                   {
/datasets/git/merge-recursive.c:1380:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                              OBJ_BLOB, &result->blob.oid))
                                                                           ^
                                                                            {
/datasets/git/merge-recursive.c:1385:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ret)
                                ^
                                 {
/datasets/git/merge-recursive.c:1389:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                } else if (S_ISGITLINK(a->mode)) {
                           ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/merge-recursive.c:1399:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!oideq(&a->oid, &b->oid))
                                                             ^
                                                              {
/datasets/git/merge-recursive.c:1409:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/merge-recursive.c:1413:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (result->merge)
                          ^
                           {
/datasets/git/merge-recursive.c:1420:35: warning: parameter name 'ci' is too short, expected at least 3 characters [readability-identifier-length]
                                 struct rename_conflict_info *ci)
                                                              ^
/datasets/git/merge-recursive.c:1449:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (update_file(opt, 0, dest, file_path))
                                                         ^
                                                          {
/datasets/git/merge-recursive.c:1451:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (file_path != dest->path)
                                            ^
                                             {
/datasets/git/merge-recursive.c:1455:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                  ren->branch == opt->branch1 ? NULL : dest))
                                                                             ^
                                                                              {
/datasets/git/merge-recursive.c:1458:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else {
          ^~~~~~
/datasets/git/merge-recursive.c:1460:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (update_file(opt, 1, dest, dest->path))
                                                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-recursive.c:1468:33: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                                const struct diff_filespec *o,
                                                            ^
/datasets/git/merge-recursive.c:1490:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ret)
                         ^
                          {
/datasets/git/merge-recursive.c:1539:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (change_branch != opt->branch1 || alt_path)
                                                              ^
                                                               {
/datasets/git/merge-recursive.c:1548:34: warning: parameter name 'ci' is too short, expected at least 3 characters [readability-identifier-length]
                                struct rename_conflict_info *ci)
                                                             ^
/datasets/git/merge-recursive.c:1562:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                 _("rename"), _("renamed")))
                                                            ^
                                                             {
/datasets/git/merge-recursive.c:1565:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->priv->call_depth)
                                  ^
                                   {
/datasets/git/merge-recursive.c:1567:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else
        ^~~~
/datasets/git/merge-recursive.c:1567:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-recursive.c:1573:12: warning: function 'handle_file_collision' is within a recursive call chain [misc-no-recursion]
static int handle_file_collision(struct merge_options *opt,
           ^
/datasets/git/merge-recursive.c:1573:12: note: example recursive call chain, starting from function 'handle_file_collision'
/datasets/git/merge-recursive.c:1593:10: note: Frame #1: function 'handle_file_collision' calls function 'handle_file_collision' here:
                return handle_file_collision(opt, collide_path,
                       ^
/datasets/git/merge-recursive.c:1593:10: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/merge-recursive.c:1578:28: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
                                 struct diff_filespec *a,
                                                       ^
/datasets/git/merge-recursive.c:1579:28: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
                                 struct diff_filespec *b)
                                                       ^
/datasets/git/merge-recursive.c:1600:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prev_path1)
                       ^
                        {
/datasets/git/merge-recursive.c:1603:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prev_path2)
                       ^
                        {
/datasets/git/merge-recursive.c:1647:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                    branch1, branch2, opt->priv->call_depth * 2, &mfi))
                                                                                       ^
                                                                                        {
/datasets/git/merge-recursive.c:1649:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mfi.clean &= !alt_path;
        ^            ~~~~~~~~~
/datasets/git/merge-recursive.c:1650:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (update_file(opt, mfi.clean, &mfi.blob, update_path))
                                                                ^
                                                                 {
/datasets/git/merge-recursive.c:1653:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            update_stages(opt, collide_path, NULL, a, b))
                                                         ^
                                                          {
/datasets/git/merge-recursive.c:1667:38: warning: parameter name 'ci' is too short, expected at least 3 characters [readability-identifier-length]
                             struct rename_conflict_info *ci)
                                                          ^
/datasets/git/merge-recursive.c:1670:24: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        struct diff_filespec *a = ci->ren1->pair->one;
                              ^
/datasets/git/merge-recursive.c:1671:24: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        struct diff_filespec *c = ci->ren1->pair->two;
                              ^
/datasets/git/merge-recursive.c:1673:8: warning: variable 'prev_path_desc' is not initialized [cppcoreguidelines-init-variables]
        char *prev_path_desc;
              ^
                             = NULL
/datasets/git/merge-recursive.c:1692:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                    1 + opt->priv->call_depth * 2, &mfi))
                                                                         ^
                                                                          {
/datasets/git/merge-recursive.c:1733:12: warning: function 'handle_rename_rename_1to2' has cognitive complexity of 27 (threshold 25) [readability-function-cognitive-complexity]
static int handle_rename_rename_1to2(struct merge_options *opt,
           ^
/datasets/git/merge-recursive.c:1749:31: note: +1, including nesting penalty of 0, nesting level increased to 1
               opt->priv->call_depth ? _(" (left unresolved)") : "");
                                     ^
/datasets/git/merge-recursive.c:1753:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (merge_mode_and_contents(opt, o, a, b, path_desc,
        ^
/datasets/git/merge-recursive.c:1759:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt->priv->call_depth)
        ^
/datasets/git/merge-recursive.c:1768:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (is_valid(add)) {
        ^
/datasets/git/merge-recursive.c:1770:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (handle_file_collision(opt, a->path,
                ^
/datasets/git/merge-recursive.c:1776:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/merge-recursive.c:1780:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (update_file(opt, 0, &mfi.blob,
                ^
/datasets/git/merge-recursive.c:1781:14: note: +2, including nesting penalty of 1, nesting level increased to 2
                                new_path ? new_path : a->path))
                                         ^
/datasets/git/merge-recursive.c:1784:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!opt->priv->call_depth &&
                ^
/datasets/git/merge-recursive.c:1784:30: note: +1
                if (!opt->priv->call_depth &&
                                           ^
/datasets/git/merge-recursive.c:1789:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!mfi.clean && mfi.blob.mode == a->mode &&
        ^
/datasets/git/merge-recursive.c:1789:45: note: +1
        if (!mfi.clean && mfi.blob.mode == a->mode &&
                                                   ^
/datasets/git/merge-recursive.c:1802:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (is_valid(add)) {
        ^
/datasets/git/merge-recursive.c:1804:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (handle_file_collision(opt, b->path,
                ^
/datasets/git/merge-recursive.c:1810:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/merge-recursive.c:1814:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (update_file(opt, 0, &mfi.blob,
                ^
/datasets/git/merge-recursive.c:1815:14: note: +2, including nesting penalty of 1, nesting level increased to 2
                                new_path ? new_path : b->path))
                                         ^
/datasets/git/merge-recursive.c:1818:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!opt->priv->call_depth &&
                ^
/datasets/git/merge-recursive.c:1818:30: note: +1
                if (!opt->priv->call_depth &&
                                           ^
/datasets/git/merge-recursive.c:1734:39: warning: parameter name 'ci' is too short, expected at least 3 characters [readability-identifier-length]
                                     struct rename_conflict_info *ci)
                                                                  ^
/datasets/git/merge-recursive.c:1738:24: warning: variable 'add' is not initialized [cppcoreguidelines-init-variables]
        struct diff_filespec *add;
                              ^
                                  = NULL
/datasets/git/merge-recursive.c:1739:24: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
        struct diff_filespec *o = ci->ren1->pair->one;
                              ^
/datasets/git/merge-recursive.c:1740:24: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        struct diff_filespec *a = ci->ren1->pair->two;
                              ^
/datasets/git/merge-recursive.c:1741:24: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        struct diff_filespec *b = ci->ren2->pair->two;
                              ^
/datasets/git/merge-recursive.c:1742:8: warning: variable 'path_desc' is not initialized [cppcoreguidelines-init-variables]
        char *path_desc;
              ^
                        = NULL
/datasets/git/merge-recursive.c:1755:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                    opt->priv->call_depth * 2, &mfi))
                                                                     ^
                                                                      {
/datasets/git/merge-recursive.c:1759:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->priv->call_depth)
                                  ^
                                   {
/datasets/git/merge-recursive.c:1774:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                          &mfi.blob, add) < 0)
                                                              ^
                                                               {
/datasets/git/merge-recursive.c:1781:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                new_path ? new_path : a->path))
                                                               ^
                                                                {
/datasets/git/merge-recursive.c:1785:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    update_stages(opt, a->path, NULL, a, NULL))
                                                               ^
                                                                {
/datasets/git/merge-recursive.c:1808:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                          add, &mfi.blob) < 0)
                                                              ^
                                                               {
/datasets/git/merge-recursive.c:1815:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                new_path ? new_path : b->path))
                                                               ^
                                                                {
/datasets/git/merge-recursive.c:1819:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    update_stages(opt, b->path, NULL, NULL, b))
                                                               ^
                                                                {
/datasets/git/merge-recursive.c:1827:39: warning: parameter name 'ci' is too short, expected at least 3 characters [readability-identifier-length]
                                     struct rename_conflict_info *ci)
                                                                  ^
/datasets/git/merge-recursive.c:1830:24: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        struct diff_filespec *a = ci->ren1->pair->one;
                              ^
/datasets/git/merge-recursive.c:1831:24: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        struct diff_filespec *b = ci->ren2->pair->one;
                              ^
/datasets/git/merge-recursive.c:1832:24: warning: variable name 'c1' is too short, expected at least 3 characters [readability-identifier-length]
        struct diff_filespec *c1 = ci->ren1->pair->two;
                              ^
/datasets/git/merge-recursive.c:1833:24: warning: variable name 'c2' is too short, expected at least 3 characters [readability-identifier-length]
        struct diff_filespec *c2 = ci->ren2->pair->two;
                              ^
/datasets/git/merge-recursive.c:1835:8: warning: variable 'path_side_1_desc' is not initialized [cppcoreguidelines-init-variables]
        char *path_side_1_desc;
              ^
                               = NULL
/datasets/git/merge-recursive.c:1836:8: warning: variable 'path_side_2_desc' is not initialized [cppcoreguidelines-init-variables]
        char *path_side_2_desc;
              ^
                               = NULL
/datasets/git/merge-recursive.c:1839:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int ostage1, ostage2;
        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:1839:6: warning: variable 'ostage1' is not initialized [cppcoreguidelines-init-variables]
        int ostage1, ostage2;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-recursive.c:1839:15: warning: variable 'ostage2' is not initialized [cppcoreguidelines-init-variables]
        int ostage1, ostage2;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-recursive.c:1862:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                    1 + opt->priv->call_depth * 2, &mfi_c2))
                                                                            ^
                                                                             {
/datasets/git/merge-recursive.c:1881:28: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        struct diff_queue_struct *ret;
                                  ^
                                      = NULL
/datasets/git/merge-recursive.c:1894:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts.detect_rename > DIFF_DETECT_RENAME)
                                                    ^
                                                     {
/datasets/git/merge-recursive.c:1896:69: warning: 7000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        opts.rename_limit = (opt->rename_limit >= 0) ? opt->rename_limit : 7000;
                                                                           ^
/datasets/git/merge-recursive.c:1903:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts.needed_rename_limit > opt->priv->needed_rename_limit)
                                                                      ^
                                                                       {
/datasets/git/merge-recursive.c:1916:45: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int tree_has_path(struct repository *r, struct tree *tree,
                                            ^
/datasets/git/merge-recursive.c:1920:17: warning: variable 'mode_o' is not initialized [cppcoreguidelines-init-variables]
        unsigned short mode_o;
                       ^
                              = 0
/datasets/git/merge-recursive.c:1938:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int oldlen, newlen;
        ^~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:1938:6: warning: variable 'oldlen' is not initialized [cppcoreguidelines-init-variables]
        int oldlen, newlen;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-recursive.c:1938:14: warning: variable 'newlen' is not initialized [cppcoreguidelines-init-variables]
        int oldlen, newlen;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-recursive.c:1940:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (entry->non_unique_new_dir)
                                      ^
                                       {
/datasets/git/merge-recursive.c:1943:11: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        oldlen = strlen(entry->dir);
                 ^
/datasets/git/merge-recursive.c:1944:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (entry->new_dir.len == 0)
                                    ^
                                     {
/datasets/git/merge-recursive.c:1954:11: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        newlen = entry->new_dir.len + (strlen(old_path) - oldlen) + 1;
                 ^
/datasets/git/merge-recursive.c:1963:9: warning: 2 adjacent parameters of 'get_renamed_dir_portion' of similar type ('char **') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                    char **old_dir, char **new_dir)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:1963:16: note: the first parameter in the range is 'old_dir'
                                    char **old_dir, char **new_dir)
                                           ^~~~~~~
/datasets/git/merge-recursive.c:1963:32: note: the last parameter in the range is 'new_dir'
                                    char **old_dir, char **new_dir)
                                                           ^~~~~~~
/datasets/git/merge-recursive.c:1965:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *end_of_old, *end_of_new;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:1965:8: warning: variable 'end_of_old' is not initialized [cppcoreguidelines-init-variables]
        char *end_of_old, *end_of_new;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-recursive.c:1965:21: warning: variable 'end_of_new' is not initialized [cppcoreguidelines-init-variables]
        char *end_of_old, *end_of_new;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-recursive.c:1994:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!end_of_old)
                        ^
                         {
/datasets/git/merge-recursive.c:2008:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*--end_of_new == *--end_of_old &&
        ^
/datasets/git/merge-recursive.c:2008:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'end_of_new' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (*--end_of_new == *--end_of_old &&
               ^
/datasets/git/merge-recursive.c:2010:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
               end_of_new != new_path)
                                      ^
                                       {
/datasets/git/merge-recursive.c:2018:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            *end_of_old == *end_of_new)
                                       ^
                                        {
/datasets/git/merge-recursive.c:2068:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/merge-recursive.c:2068:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-recursive.c:2069:27: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
        struct dir_rename_entry *entry;
                                 ^
                                       = NULL
/datasets/git/merge-recursive.c:2071:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < items_to_remove->nr; i++) {
        ^
/datasets/git/merge-recursive.c:2090:26: warning: variable 'collision_ent' is not initialized [cppcoreguidelines-init-variables]
        struct collision_entry *collision_ent;
                                ^
                                              = NULL
/datasets/git/merge-recursive.c:2102:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!entry->non_unique_new_dir)
                                               ^
                                                {
/datasets/git/merge-recursive.c:2110:3: warning: Value stored to 'clean' is never read [clang-analyzer-deadcode.DeadStores]
                clean = 0;
                ^       ~
/datasets/git/merge-recursive.c:2110:3: note: Value stored to 'clean' is never read
                clean = 0;
                ^       ~
/datasets/git/merge-recursive.c:2120:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!collision_ent)
                           ^
                            {
/datasets/git/merge-recursive.c:2190:27: warning: variable 'head_ent' is not initialized [cppcoreguidelines-init-variables]
        struct dir_rename_entry *head_ent;
                                 ^
                                          = NULL
/datasets/git/merge-recursive.c:2191:27: warning: variable 'merge_ent' is not initialized [cppcoreguidelines-init-variables]
        struct dir_rename_entry *merge_ent;
                                 ^
                                           = NULL
/datasets/git/merge-recursive.c:2196:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        hashmap_for_each_entry(dir_re_head, &iter, head_ent,
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/merge-recursive.c:2191:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct dir_rename_entry *merge_ent;
        ^
/datasets/git/merge-recursive.c:2196:45: warning: backward branch (for loop) is ID-dependent due to variable reference to 'head_ent' and may cause performance degradation [altera-id-dependent-backward-branch]
        hashmap_for_each_entry(dir_re_head, &iter, head_ent,
                                                   ^
/datasets/git/merge-recursive.c:2221:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        hashmap_for_each_entry(dir_re_merge, &iter, merge_ent,
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/merge-recursive.c:2221:46: warning: backward branch (for loop) is ID-dependent due to variable reference to 'merge_ent' and may cause performance degradation [altera-id-dependent-backward-branch]
        hashmap_for_each_entry(dir_re_merge, &iter, merge_ent,
                                                    ^
/datasets/git/merge-recursive.c:2256:24: warning: function 'get_directory_renames' has cognitive complexity of 29 (threshold 25) [readability-function-cognitive-complexity]
static struct hashmap *get_directory_renames(struct diff_queue_struct *pairs)
                       ^
/datasets/git/merge-recursive.c:2281:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < pairs->nr; ++i) {
        ^
/datasets/git/merge-recursive.c:2288:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (pair->status != 'R')
                ^
/datasets/git/merge-recursive.c:2293:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!old_dir)
                ^
/datasets/git/merge-recursive.c:2298:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!entry) {
                ^
/datasets/git/merge-recursive.c:2302:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/merge-recursive.c:2306:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!item) {
                ^
/datasets/git/merge-recursive.c:2310:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/merge-recursive.c:2326:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        hashmap_for_each_entry(dir_renames, &iter, entry,
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/merge-recursive.c:2332:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < entry->possible_new_dirs.nr; i++) {
                ^
/datasets/git/merge-recursive.c:2335:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (*count == max)
                        ^
/datasets/git/merge-recursive.c:2337:9: note: +1, nesting level increased to 3
                        else if (*count > max) {
                             ^
/datasets/git/merge-recursive.c:2342:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (bad_max == max)
                ^
/datasets/git/merge-recursive.c:2344:3: note: +1, nesting level increased to 2
                else {
                ^
/datasets/git/merge-recursive.c:2345:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        assert(entry->new_dir.len == 0);
                        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-recursive.c:2345:4: note: nesting level increased to 3
                        assert(entry->new_dir.len == 0);
                        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-recursive.c:2345:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        assert(entry->new_dir.len == 0);
                        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-recursive.c:2345:4: note: +1, nesting level increased to 4
                        assert(entry->new_dir.len == 0);
                        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-recursive.c:2258:18: warning: variable 'dir_renames' is not initialized [cppcoreguidelines-init-variables]
        struct hashmap *dir_renames;
                        ^
                                    = NULL
/datasets/git/merge-recursive.c:2260:27: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
        struct dir_rename_entry *entry;
                                 ^
                                       = NULL
/datasets/git/merge-recursive.c:2261:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/merge-recursive.c:2261:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-recursive.c:2281:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < pairs->nr; ++i) {
        ^
/datasets/git/merge-recursive.c:2260:2: note: inferred assignment of ID-dependent value from ID-dependent variable dir_renames [altera-id-dependent-backward-branch]
        struct dir_rename_entry *entry;
        ^
/datasets/git/merge-recursive.c:2282:28: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
                struct string_list_item *item;
                                         ^
                                              = NULL
/datasets/git/merge-recursive.c:2283:8: warning: variable 'count' is not initialized [cppcoreguidelines-init-variables]
                int *count;
                     ^
                           = NULL
/datasets/git/merge-recursive.c:2285:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                char *old_dir, *new_dir;
                ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:2285:9: warning: variable 'old_dir' is not initialized [cppcoreguidelines-init-variables]
                char *old_dir, *new_dir;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-recursive.c:2285:19: warning: variable 'new_dir' is not initialized [cppcoreguidelines-init-variables]
                char *old_dir, *new_dir;
                                ^
/datasets/git/merge-recursive.c:2260:2: note: inferred assignment of ID-dependent value from ID-dependent variable dir_renames [altera-id-dependent-backward-branch]
        struct dir_rename_entry *entry;
        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-recursive.c:2288:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pair->status != 'R')
                                        ^
                                         {
/datasets/git/merge-recursive.c:2293:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!old_dir)
                             ^
                              {
/datasets/git/merge-recursive.c:2326:45: warning: backward branch (for loop) is ID-dependent due to variable reference to 'entry' and may cause performance degradation [altera-id-dependent-backward-branch]
        hashmap_for_each_entry(dir_renames, &iter, entry,
                                                   ^
/datasets/git/merge-recursive.c:2332:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < entry->possible_new_dirs.nr; i++) {
                ^
/datasets/git/merge-recursive.c:2332:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'entry' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < entry->possible_new_dirs.nr; i++) {
                            ^
/datasets/git/merge-recursive.c:2335:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (*count == max)
                                          ^
                                           {
/datasets/git/merge-recursive.c:2342:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (bad_max == max)
                                   ^
                                    {
/datasets/git/merge-recursive.c:2367:8: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
        char *end;
              ^
                  = NULL
/datasets/git/merge-recursive.c:2370:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((end = strrchr(temp, '/'))) {
        ^
/datasets/git/merge-recursive.c:2370:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'end' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((end = strrchr(temp, '/'))) {
               ^
/datasets/git/merge-recursive.c:2373:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (entry)
                          ^
                           {
/datasets/git/merge-recursive.c:2380:32: warning: 2 adjacent parameters of 'compute_collisions' of similar type ('struct hashmap *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void compute_collisions(struct hashmap *collisions,
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:2380:48: note: the first parameter in the range is 'collisions'
static void compute_collisions(struct hashmap *collisions,
                                               ^~~~~~~~~~
/datasets/git/merge-recursive.c:2381:27: note: the last parameter in the range is 'dir_renames'
                               struct hashmap *dir_renames,
                                               ^~~~~~~~~~~
/datasets/git/merge-recursive.c:2384:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/merge-recursive.c:2384:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-recursive.c:2404:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < pairs->nr; ++i) {
        ^
/datasets/git/merge-recursive.c:2405:28: warning: variable 'dir_rename_ent' is not initialized [cppcoreguidelines-init-variables]
                struct dir_rename_entry *dir_rename_ent;
                                         ^
                                                        = NULL
/datasets/git/merge-recursive.c:2406:27: warning: variable 'collision_ent' is not initialized [cppcoreguidelines-init-variables]
                struct collision_entry *collision_ent;
                                        ^
                                                      = NULL
/datasets/git/merge-recursive.c:2407:9: warning: variable 'new_path' is not initialized [cppcoreguidelines-init-variables]
                char *new_path;
                      ^
                               = NULL
/datasets/git/merge-recursive.c:2410:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pair->status != 'A' && pair->status != 'R')
                                                               ^
                                                                {
/datasets/git/merge-recursive.c:2414:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!dir_rename_ent)
                                    ^
                                     {
/datasets/git/merge-recursive.c:2418:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!new_path)
                              ^
                               {
/datasets/git/merge-recursive.c:2444:6: warning: 3 adjacent parameters of 'check_for_directory_rename' of similar type ('struct hashmap *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                        struct hashmap *dir_renames,
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:2444:22: note: the first parameter in the range is 'dir_renames'
                                        struct hashmap *dir_renames,
                                                        ^~~~~~~~~~~
/datasets/git/merge-recursive.c:2446:22: note: the last parameter in the range is 'collisions'
                                        struct hashmap *collisions,
                                                        ^~~~~~~~~~
/datasets/git/merge-recursive.c:2453:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!entry)
                   ^
                    {
/datasets/git/merge-recursive.c:2488:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                *clean_merge &= (new_path != NULL);
                ^~~~~~~~~~~~
/datasets/git/merge-recursive.c:2497:23: warning: parameter name 're' is too short, expected at least 3 characters [readability-identifier-length]
                                                 struct rename *re,
                                                                ^
/datasets/git/merge-recursive.c:2498:8: warning: 2 adjacent parameters of 'apply_directory_rename_modifications' of similar type ('struct tree *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                                 struct tree *tree,
                                                 ^~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:2498:21: note: the first parameter in the range is 'tree'
                                                 struct tree *tree,
                                                              ^~~~
/datasets/git/merge-recursive.c:2499:21: note: the last parameter in the range is 'o_tree'
                                                 struct tree *o_tree,
                                                              ^~~~~~
/datasets/git/merge-recursive.c:2504:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/merge-recursive.c:2506:6: warning: variable 'update_wd' is not initialized [cppcoreguidelines-init-variables]
        int update_wd;
            ^
                      = 0
/datasets/git/merge-recursive.c:2518:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!update_wd)
                       ^
                        {
/datasets/git/merge-recursive.c:2550:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pair->status == 'R')
                                        ^
                                         {
/datasets/git/merge-recursive.c:2625:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/merge-recursive.c:2625:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-recursive.c:2628:26: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct collision_entry *e;
                                ^
                                  = NULL
/datasets/git/merge-recursive.c:2628:26: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-recursive.c:2629:22: warning: variable 'renames' is not initialized [cppcoreguidelines-init-variables]
        struct string_list *renames;
                            ^
                                    = NULL
/datasets/git/merge-recursive.c:2634:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < pairs->nr; ++i) {
        ^
/datasets/git/merge-recursive.c:2628:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct collision_entry *e;
        ^
/datasets/git/merge-recursive.c:2635:28: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
                struct string_list_item *item;
                                         ^
                                              = NULL
/datasets/git/merge-recursive.c:2636:18: warning: variable 're' is not initialized [cppcoreguidelines-init-variables]
                struct rename *re;
                               ^
                                  = NULL
/datasets/git/merge-recursive.c:2636:18: warning: variable name 're' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-recursive.c:2638:9: warning: variable 'new_path' is not initialized [cppcoreguidelines-init-variables]
                char *new_path; /* non-NULL only with directory renames */
                      ^
                               = NULL
/datasets/git/merge-recursive.c:2661:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!item)
                          ^
                           {
/datasets/git/merge-recursive.c:2665:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/merge-recursive.c:2669:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!item)
                          ^
                           {
/datasets/git/merge-recursive.c:2673:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/merge-recursive.c:2677:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (new_path)
                             ^
                              {
/datasets/git/merge-recursive.c:2684:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        hashmap_for_each_entry(&collisions, &iter, e,
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/merge-recursive.c:2684:45: warning: backward branch (for loop) is ID-dependent due to variable reference to 'e' and may cause performance degradation [altera-id-dependent-backward-branch]
        hashmap_for_each_entry(&collisions, &iter, e,
                                                   ^
/datasets/git/merge-recursive.c:2693:12: warning: function 'process_renames' has cognitive complexity of 71 (threshold 25) [readability-function-cognitive-complexity]
static int process_renames(struct merge_options *opt,
           ^
/datasets/git/merge-recursive.c:2710:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < a_renames->nr; i++) {
        ^
/datasets/git/merge-recursive.c:2715:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < b_renames->nr; i++) {
        ^
/datasets/git/merge-recursive.c:2721:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0, j = 0; i < a_renames->nr || j < b_renames->nr;) {
        ^
/datasets/git/merge-recursive.c:2721:39: note: +1
        for (i = 0, j = 0; i < a_renames->nr || j < b_renames->nr;) {
                                             ^
/datasets/git/merge-recursive.c:2727:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (i >= a_renames->nr) {
                ^
/datasets/git/merge-recursive.c:2729:10: note: +1, nesting level increased to 2
                } else if (j >= b_renames->nr) {
                       ^
/datasets/git/merge-recursive.c:2731:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/merge-recursive.c:2734:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (compare <= 0)
                        ^
/datasets/git/merge-recursive.c:2736:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (compare >= 0)
                        ^
/datasets/git/merge-recursive.c:2741:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ren1) {
                ^
/datasets/git/merge-recursive.c:2744:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/merge-recursive.c:2747:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        SWAP(ren2, ren1);
                        ^
/datasets/git/./git-compat-util.h:759:20: note: expanded from macro 'SWAP'
#define SWAP(a, b) do {                                         \
                   ^
/datasets/git/merge-recursive.c:2750:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ren1->processed)
                ^
/datasets/git/merge-recursive.c:2762:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ren2) {
                ^
/datasets/git/merge-recursive.c:2767:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (strcmp(ren1_src, ren2_src) != 0)
                        ^
/datasets/git/merge-recursive.c:2771:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (strcmp(ren1_dst, ren2_dst) != 0) {
                        ^
/datasets/git/merge-recursive.c:2774:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/merge-recursive.c:2787:10: note: +1, nesting level increased to 2
                } else if ((lookup = string_list_lookup(renames2Dst, ren1_dst))) {
                       ^
/datasets/git/merge-recursive.c:2792:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (strcmp(ren1_dst, ren2_dst) != 0)
                        ^
/datasets/git/merge-recursive.c:2806:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/merge-recursive.c:2818:46: note: +3, including nesting penalty of 2, nesting level increased to 3
                        int renamed_stage = a_renames == renames1 ? 2 : 3;
                                                                  ^
/datasets/git/merge-recursive.c:2819:46: note: +3, including nesting penalty of 2, nesting level increased to 3
                        int other_stage =   a_renames == renames1 ? 3 : 2;
                                                                  ^
/datasets/git/merge-recursive.c:2830:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!renamed_to_self)
                        ^
/datasets/git/merge-recursive.c:2832:29: note: +1
                                            renamed_stage == 2 ||
                                                               ^
/datasets/git/merge-recursive.c:2843:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (oideq(&src_other.oid, null_oid()) &&
                        ^
/datasets/git/merge-recursive.c:2843:42: note: +1
                        if (oideq(&src_other.oid, null_oid()) &&
                                                              ^
/datasets/git/merge-recursive.c:2847:11: note: +1, nesting level increased to 3
                        } else if (renamed_to_self) {
                               ^
/datasets/git/merge-recursive.c:2850:11: note: +1, nesting level increased to 3
                        } else if (oideq(&src_other.oid, null_oid())) {
                               ^
/datasets/git/merge-recursive.c:2853:11: note: +1, nesting level increased to 3
                        } else if ((dst_other.mode == ren1->pair->two->mode) &&
                               ^
/datasets/git/merge-recursive.c:2853:57: note: +1
                        } else if ((dst_other.mode == ren1->pair->two->mode) &&
                                                                             ^
/datasets/git/merge-recursive.c:2863:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (update_file_flags(opt,
                                ^
/datasets/git/merge-recursive.c:2869:11: note: +1, nesting level increased to 3
                        } else if (!oideq(&dst_other.oid, null_oid())) {
                               ^
/datasets/git/merge-recursive.c:2879:6: note: +1, nesting level increased to 3
                        } else
                          ^
/datasets/git/merge-recursive.c:2882:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (clean_merge < 0)
                        ^
/datasets/git/merge-recursive.c:2884:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (try_merge) {
                        ^
/datasets/git/merge-recursive.c:2889:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (a_renames == renames1) {
                                ^
/datasets/git/merge-recursive.c:2892:7: note: +1, nesting level increased to 4
                                } else {
                                  ^
/datasets/git/merge-recursive.c:2697:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int clean_merge = 1, i, j;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:2697:23: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int clean_merge = 1, i, j;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-recursive.c:2697:23: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-recursive.c:2697:26: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int clean_merge = 1, i, j;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-recursive.c:2697:26: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-recursive.c:2700:23: warning: variable 'sre' is not initialized [cppcoreguidelines-init-variables]
        const struct rename *sre;
                             ^
                                 = NULL
/datasets/git/merge-recursive.c:2710:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < a_renames->nr; i++) {
        ^
/datasets/git/merge-recursive.c:2715:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < b_renames->nr; i++) {
        ^
/datasets/git/merge-recursive.c:2722:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                struct string_list *renames1, *renames2Dst;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:2722:23: warning: variable 'renames1' is not initialized [cppcoreguidelines-init-variables]
                struct string_list *renames1, *renames2Dst;
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-recursive.c:2722:34: warning: variable 'renames2Dst' is not initialized [cppcoreguidelines-init-variables]
                struct string_list *renames1, *renames2Dst;
                                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-recursive.c:2723:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                struct rename *ren1 = NULL, *ren2 = NULL;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:2724:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                const char *ren1_src, *ren1_dst;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:2724:15: warning: variable 'ren1_src' is not initialized [cppcoreguidelines-init-variables]
                const char *ren1_src, *ren1_dst;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-recursive.c:2724:26: warning: variable 'ren1_dst' is not initialized [cppcoreguidelines-init-variables]
                const char *ren1_src, *ren1_dst;
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-recursive.c:2725:28: warning: variable 'lookup' is not initialized [cppcoreguidelines-init-variables]
                struct string_list_item *lookup;
                                         ^
                                                = NULL
/datasets/git/merge-recursive.c:2734:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (compare <= 0)
                                         ^
                                          {
/datasets/git/merge-recursive.c:2736:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (compare >= 0)
                                         ^
                                          {
/datasets/git/merge-recursive.c:2747:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        SWAP(ren2, ren1);
                        ^
/datasets/git/./git-compat-util.h:759:20: note: expanded from macro 'SWAP'
#define SWAP(a, b) do {                                         \
                   ^
/datasets/git/merge-recursive.c:2747:4: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                        SWAP(ren2, ren1);
                        ^
/datasets/git/./git-compat-util.h:762:29: note: expanded from macro 'SWAP'
        unsigned char _swap_buffer[sizeof(a)];                  \
                                   ^
/datasets/git/merge-recursive.c:2747:4: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        SWAP(ren2, ren1);
                        ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/merge-recursive.c:2747:4: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                        SWAP(ren2, ren1);
                        ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/merge-recursive.c:2750:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ren1->processed)
                                    ^
                                     {
/datasets/git/merge-recursive.c:2766:21: warning: variable 'rename_type' is not initialized [cppcoreguidelines-init-variables]
                        enum rename_type rename_type;
                                         ^
/datasets/git/merge-recursive.c:2767:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (strcmp(ren1_src, ren2_src) != 0)
                                                            ^
                                                             {
/datasets/git/merge-recursive.c:2787:15: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                } else if ((lookup = string_list_lookup(renames2Dst, ren1_dst))) {
                            ^
/datasets/git/merge-recursive.c:2787:15: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/merge-recursive.c:2787:15: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/merge-recursive.c:2789:10: warning: variable 'ren2_dst' is not initialized [cppcoreguidelines-init-variables]
                        char *ren2_dst;
                              ^
                                       = NULL
/datasets/git/merge-recursive.c:2792:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (strcmp(ren1_dst, ren2_dst) != 0)
                                                            ^
                                                             {
/datasets/git/merge-recursive.c:2809:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        struct diff_filespec src_other, dst_other;
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:2810:8: warning: variable 'try_merge' is not initialized [cppcoreguidelines-init-variables]
                        int try_merge;
                            ^
                                      = 0
/datasets/git/merge-recursive.c:2830:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!renamed_to_self)
                                             ^
                                              {
/datasets/git/merge-recursive.c:2867:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                      0  /* update_wd    */))
                                                                             ^
                                                                              {
/datasets/git/merge-recursive.c:2879:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        } else
                              ^
                               {
/datasets/git/merge-recursive.c:2882:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (clean_merge < 0)
                                            ^
                                             {
/datasets/git/merge-recursive.c:2885:5: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                                struct diff_filespec *o, *a, *b;
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:2885:27: warning: variable 'o' is not initialized [cppcoreguidelines-init-variables]
                                struct diff_filespec *o, *a, *b;
                                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-recursive.c:2885:27: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-recursive.c:2885:31: warning: variable 'a' is not initialized [cppcoreguidelines-init-variables]
                                struct diff_filespec *o, *a, *b;
                                                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-recursive.c:2885:31: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-recursive.c:2885:35: warning: variable 'b' is not initialized [cppcoreguidelines-init-variables]
                                struct diff_filespec *o, *a, *b;
                                                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-recursive.c:2885:35: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-recursive.c:2909:8: warning: accessing fields in struct 'rename_info' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct rename_info {
       ^
/datasets/git/merge-recursive.c:2909:8: note: use "__attribute__((aligned(16)))" to align struct 'rename_info' to 16 bytes
/datasets/git/merge-recursive.c:2918:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct dir_rename_entry *e;
        ^
/datasets/git/merge-recursive.c:2918:27: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct dir_rename_entry *e;
                                 ^
                                   = NULL
/datasets/git/merge-recursive.c:2918:27: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-recursive.c:2920:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        hashmap_for_each_entry(dir_renames, &iter, e,
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/merge-recursive.c:2920:45: warning: backward branch (for loop) is ID-dependent due to variable reference to 'e' and may cause performance degradation [altera-id-dependent-backward-branch]
        hashmap_for_each_entry(dir_renames, &iter, e,
                                                   ^
/datasets/git/merge-recursive.c:2938:31: warning: parameter name 'ri' is too short, expected at least 3 characters [readability-identifier-length]
                                      struct rename_info *ri)
                                                          ^
/datasets/git/merge-recursive.c:2940:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct diff_queue_struct *head_pairs, *merge_pairs;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:2940:28: warning: variable 'head_pairs' is not initialized [cppcoreguidelines-init-variables]
        struct diff_queue_struct *head_pairs, *merge_pairs;
                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-recursive.c:2940:41: warning: variable 'merge_pairs' is not initialized [cppcoreguidelines-init-variables]
        struct diff_queue_struct *head_pairs, *merge_pairs;
                                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-recursive.c:2941:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct hashmap *dir_re_head, *dir_re_merge;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:2941:18: warning: variable 'dir_re_head' is not initialized [cppcoreguidelines-init-variables]
        struct hashmap *dir_re_head, *dir_re_merge;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-recursive.c:2941:32: warning: variable 'dir_re_merge' is not initialized [cppcoreguidelines-init-variables]
        struct hashmap *dir_re_head, *dir_re_merge;
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-recursive.c:2947:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!merge_detect_rename(opt))
                                      ^
                                       {
/datasets/git/merge-recursive.c:2973:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (clean < 0)
                      ^
                       {
/datasets/git/merge-recursive.c:2979:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (clean < 0)
                      ^
                       {
/datasets/git/merge-recursive.c:2981:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        clean &= process_renames(opt, ri->head_renames, ri->merge_renames);
        ^~~~~
/datasets/git/merge-recursive.c:2997:23: warning: variable 're' is not initialized [cppcoreguidelines-init-variables]
        const struct rename *re;
                             ^
                                = NULL
/datasets/git/merge-recursive.c:2997:23: warning: variable name 're' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-recursive.c:2998:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/merge-recursive.c:2998:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-recursive.c:3000:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!rename)
                    ^
                     {
/datasets/git/merge-recursive.c:3003:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < rename->nr; i++) {
        ^
/datasets/git/merge-recursive.c:3021:8: warning: variable 'buf' is not initialized [cppcoreguidelines-init-variables]
        void *buf;
              ^
                  = NULL
/datasets/git/merge-recursive.c:3022:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/merge-recursive.c:3023:16: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size;
                      ^
                           = 0
/datasets/git/merge-recursive.c:3025:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!buf)
                 ^
                  {
/datasets/git/merge-recursive.c:3036:34: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                          const struct diff_filespec *o,
                                                      ^
/datasets/git/merge-recursive.c:3037:34: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
                          const struct diff_filespec *a,
                                                      ^
/datasets/git/merge-recursive.c:3045:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (a->mode != o->mode)
                               ^
                                {
/datasets/git/merge-recursive.c:3047:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oideq(&o->oid, &a->oid))
                                    ^
                                     {
/datasets/git/merge-recursive.c:3049:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!renormalize)
                         ^
                          {
/datasets/git/merge-recursive.c:3053:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            read_oid_strbuf(opt, &a->oid, &abuf))
                                                 ^
                                                  {
/datasets/git/merge-recursive.c:3060:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (renormalize_buffer(idx, path, obuf.buf, obuf.len, &obuf) |
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:3061:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            renormalize_buffer(idx, path, abuf.buf, abuf.len, &abuf))
                                                                     ^
                                                                      {
/datasets/git/merge-recursive.c:3072:5: warning: 3 adjacent parameters of 'handle_modify_delete' of similar type ('const struct diff_filespec *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                const struct diff_filespec *o,
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:3072:33: note: the first parameter in the range is 'o'
                                const struct diff_filespec *o,
                                                            ^
/datasets/git/merge-recursive.c:3074:33: note: the last parameter in the range is 'b'
                                const struct diff_filespec *b)
                                                            ^
/datasets/git/merge-recursive.c:3072:33: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                                const struct diff_filespec *o,
                                                            ^
/datasets/git/merge-recursive.c:3073:33: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
                                const struct diff_filespec *a,
                                                            ^
/datasets/git/merge-recursive.c:3074:33: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
                                const struct diff_filespec *b)
                                                            ^
/datasets/git/merge-recursive.c:3076:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *modify_branch, *delete_branch;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:3076:14: warning: variable 'modify_branch' is not initialized [cppcoreguidelines-init-variables]
        const char *modify_branch, *delete_branch;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-recursive.c:3076:30: warning: variable 'delete_branch' is not initialized [cppcoreguidelines-init-variables]
        const char *modify_branch, *delete_branch;
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-recursive.c:3077:30: warning: variable 'changed' is not initialized [cppcoreguidelines-init-variables]
        const struct diff_filespec *changed;
                                    ^
                                            = NULL
/datasets/git/merge-recursive.c:3096:12: warning: function 'handle_content_merge' has cognitive complexity of 57 (threshold 25) [readability-function-cognitive-complexity]
static int handle_content_merge(struct merge_file_info *mfi,
           ^
/datasets/git/merge-recursive.c:3108:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!is_valid(o))
        ^
/datasets/git/merge-recursive.c:3111:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(o->path && a->path && b->path);
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-recursive.c:3111:28: note: +1
        assert(o->path && a->path && b->path);
                                  ^
/datasets/git/merge-recursive.c:3111:2: note: nesting level increased to 1
        assert(o->path && a->path && b->path);
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-recursive.c:3111:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(o->path && a->path && b->path);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-recursive.c:3111:28: note: +1
        assert(o->path && a->path && b->path);
                                  ^
/datasets/git/merge-recursive.c:3111:2: note: +1, nesting level increased to 2
        assert(o->path && a->path && b->path);
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-recursive.c:3112:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ci && dir_in_way(opt->repo->index, path, !opt->priv->call_depth,
        ^
/datasets/git/merge-recursive.c:3112:9: note: +1
        if (ci && dir_in_way(opt->repo->index, path, !opt->priv->call_depth,
               ^
/datasets/git/merge-recursive.c:3116:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (merge_mode_and_contents(opt, o, a, b, path,
        ^
/datasets/git/merge-recursive.c:3127:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mfi->clean && was_tracked_and_matches(opt, path, &mfi->blob) &&
        ^
/datasets/git/merge-recursive.c:3127:67: note: +1
        if (mfi->clean && was_tracked_and_matches(opt, path, &mfi->blob) &&
                                                                         ^
/datasets/git/merge-recursive.c:3133:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (add_cacheinfo(opt, &mfi->blob, path,
                ^
/datasets/git/merge-recursive.c:3134:34: note: +1
                                  0, (!opt->priv->call_depth && !is_dirty), 0))
                                                             ^
/datasets/git/merge-recursive.c:3144:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ce_skip_worktree(ce)) {
                ^
/datasets/git/merge-recursive.c:3152:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!mfi->clean) {
        ^
/datasets/git/merge-recursive.c:3153:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (S_ISGITLINK(mfi->blob.mode))
                ^
/datasets/git/merge-recursive.c:3157:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ci && !df_conflict_remains)
                ^
/datasets/git/merge-recursive.c:3157:10: note: +1
                if (ci && !df_conflict_remains)
                       ^
/datasets/git/merge-recursive.c:3158:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (update_stages(opt, path, o, a, b))
                        ^
/datasets/git/merge-recursive.c:3162:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (df_conflict_remains || is_dirty) {
        ^
/datasets/git/merge-recursive.c:3162:26: note: +1
        if (df_conflict_remains || is_dirty) {
                                ^
/datasets/git/merge-recursive.c:3164:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opt->priv->call_depth) {
                ^
/datasets/git/merge-recursive.c:3166:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/merge-recursive.c:3167:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!mfi->clean) {
                        ^
/datasets/git/merge-recursive.c:3168:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (update_stages(opt, path, o, a, b))
                                ^
/datasets/git/merge-recursive.c:3170:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/merge-recursive.c:3173:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (update_stages(opt, path, NULL,
                                ^
/datasets/git/merge-recursive.c:3174:26: note: +4, including nesting penalty of 3, nesting level increased to 4
                                                  file_from_stage2 ? &mfi->blob : NULL,
                                                                   ^
/datasets/git/merge-recursive.c:3175:26: note: +4, including nesting penalty of 3, nesting level increased to 4
                                                  file_from_stage2 ? NULL : &mfi->blob))
                                                                   ^
/datasets/git/merge-recursive.c:3181:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (is_dirty) {
                ^
/datasets/git/merge-recursive.c:3186:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (update_file(opt, 0, &mfi->blob, new_path)) {
                ^
/datasets/git/merge-recursive.c:3192:9: note: +1, nesting level increased to 1
        } else if (update_file(opt, mfi->clean, &mfi->blob, path))
               ^
/datasets/git/merge-recursive.c:3194:19: note: +1
        return !is_dirty && mfi->clean;
                         ^
/datasets/git/merge-recursive.c:3100:33: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                                const struct diff_filespec *o,
                                                            ^
/datasets/git/merge-recursive.c:3101:33: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
                                const struct diff_filespec *a,
                                                            ^
/datasets/git/merge-recursive.c:3102:33: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
                                const struct diff_filespec *b,
                                                            ^
/datasets/git/merge-recursive.c:3103:34: warning: parameter name 'ci' is too short, expected at least 3 characters [readability-identifier-length]
                                struct rename_conflict_info *ci)
                                                             ^
/datasets/git/merge-recursive.c:3108:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_valid(o))
                         ^
                          {
/datasets/git/merge-recursive.c:3113:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                             S_ISGITLINK(ci->ren1->pair->two->mode)))
                             ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/merge-recursive.c:3113:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                             S_ISGITLINK(ci->ren1->pair->two->mode)))
                                                                     ^
                                                                      {
/datasets/git/merge-recursive.c:3118:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                    opt->priv->call_depth * 2, mfi))
                                                                    ^
                                                                     {
/datasets/git/merge-recursive.c:3129:7: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
                int pos;
                    ^
                        = 0
/datasets/git/merge-recursive.c:3130:23: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
                struct cache_entry *ce;
                                    ^
                                       = NULL
/datasets/git/merge-recursive.c:3130:23: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-recursive.c:3134:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                  0, (!opt->priv->call_depth && !is_dirty), 0))
                                                                               ^
                                                                                {
/datasets/git/merge-recursive.c:3142:54: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                pos = index_name_pos(&opt->priv->orig_index, path, strlen(path));
                                                                   ^
/datasets/git/merge-recursive.c:3144:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce_skip_worktree(ce)) {
                    ^
/datasets/git/./refs/../cache.h:244:31: note: expanded from macro 'ce_skip_worktree'
#define ce_skip_worktree(ce) ((ce)->ce_flags & CE_SKIP_WORKTREE)
                              ^                ~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:3145:49: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        pos = index_name_pos(opt->repo->index, path, strlen(path));
                                                                     ^
/datasets/git/merge-recursive.c:3147:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ce->ce_flags |= CE_SKIP_WORKTREE;
                        ^
/datasets/git/merge-recursive.c:3147:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ce->ce_flags |= CE_SKIP_WORKTREE;
                                        ^
/datasets/git/./refs/../cache.h:190:31: note: expanded from macro 'CE_SKIP_WORKTREE'
#define CE_SKIP_WORKTREE     (1 << 30)
                              ^
/datasets/git/merge-recursive.c:3153:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (S_ISGITLINK(mfi->blob.mode))
                    ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/merge-recursive.c:3153:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (S_ISGITLINK(mfi->blob.mode))
                                                ^
                                                 {
/datasets/git/merge-recursive.c:3157:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ci && !df_conflict_remains)
                                               ^
                                                {
/datasets/git/merge-recursive.c:3158:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (update_stages(opt, path, o, a, b))
                                                              ^
                                                               {
/datasets/git/merge-recursive.c:3163:9: warning: variable 'new_path' is not initialized [cppcoreguidelines-init-variables]
                char *new_path;
                      ^
                               = NULL
/datasets/git/merge-recursive.c:3168:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (update_stages(opt, path, o, a, b))
                                                                      ^
                                                                       {
/datasets/git/merge-recursive.c:3175:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                  file_from_stage2 ? NULL : &mfi->blob))
                                                                                        ^
                                                                                         {
/datasets/git/merge-recursive.c:3192:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else if (update_file(opt, mfi->clean, &mfi->blob, path))
                                                                  ^
                                                                   {
/datasets/git/merge-recursive.c:3199:33: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                                const struct diff_filespec *o,
                                                            ^
/datasets/git/merge-recursive.c:3200:33: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
                                const struct diff_filespec *a,
                                                            ^
/datasets/git/merge-recursive.c:3201:33: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
                                const struct diff_filespec *b,
                                                            ^
/datasets/git/merge-recursive.c:3202:34: warning: parameter name 'ci' is too short, expected at least 3 characters [readability-identifier-length]
                                struct rename_conflict_info *ci)
                                                             ^
/datasets/git/merge-recursive.c:3206:6: warning: variable 'clean' is not initialized [cppcoreguidelines-init-variables]
        int clean;
            ^
                  = 0
/datasets/git/merge-recursive.c:3216:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                  &mfi.blob, &mfi.blob, &mfi.blob))
                                                                   ^
                                                                    {
/datasets/git/merge-recursive.c:3224:11: warning: 2 adjacent parameters of 'dir_rename_warning' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                               int is_add,
                               ^~~~~~~~~~~
/datasets/git/merge-recursive.c:3224:15: note: the first parameter in the range is 'is_add'
                               int is_add,
                                   ^~~~~~
/datasets/git/merge-recursive.c:3225:15: note: the last parameter in the range is 'clean'
                               int clean,
                                   ^~~~~
/datasets/git/merge-recursive.c:3229:14: warning: variable 'other_branch' is not initialized [cppcoreguidelines-init-variables]
        const char *other_branch;
                    ^
                                 = NULL
/datasets/git/merge-recursive.c:3245:14: warning: variable 'msg' is not initialized [cppcoreguidelines-init-variables]
        const char *msg;
                    ^
                        = NULL
/datasets/git/merge-recursive.c:3246:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int clean = 1, is_add;
        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:3246:17: warning: variable 'is_add' is not initialized [cppcoreguidelines-init-variables]
        int clean = 1, is_add;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-recursive.c:3248:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ren)
                 ^
                  {
/datasets/git/merge-recursive.c:3252:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ren->dir_rename_original_dest)
                                           ^
                                            {
/datasets/git/merge-recursive.c:3287:12: warning: function 'process_entry' has cognitive complexity of 65 (threshold 25) [readability-function-cognitive-complexity]
static int process_entry(struct merge_options *opt,
           ^
/datasets/git/merge-recursive.c:3302:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (entry->rename_conflict_info) {
        ^
/datasets/git/merge-recursive.c:3316:45: note: +2, including nesting penalty of 1, nesting level increased to 2
                temp = (opt->branch1 == ci->ren1->branch) ? b : a;
                                                          ^
/datasets/git/merge-recursive.c:3318:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ci->ren2) {
                ^
/datasets/git/merge-recursive.c:3319:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        assert(opt->branch1 == ci->ren1->branch);
                        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-recursive.c:3319:4: note: nesting level increased to 3
                        assert(opt->branch1 == ci->ren1->branch);
                        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-recursive.c:3319:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        assert(opt->branch1 == ci->ren1->branch);
                        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-recursive.c:3319:4: note: +1, nesting level increased to 4
                        assert(opt->branch1 == ci->ren1->branch);
                        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-recursive.c:3322:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                switch (ci->rename_type) {
                ^
/datasets/git/merge-recursive.c:3342:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (handle_rename_delete(opt, ci))
                        ^
/datasets/git/merge-recursive.c:3355:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (handle_rename_rename_1to2(opt, ci))
                        ^
/datasets/git/merge-recursive.c:3379:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (path_clean < clean_merge)
                ^
/datasets/git/merge-recursive.c:3381:9: note: +1, nesting level increased to 1
        } else if (o_valid && (!a_valid || !b_valid)) {
               ^
/datasets/git/merge-recursive.c:3381:21: note: +1
        } else if (o_valid && (!a_valid || !b_valid)) {
                           ^
/datasets/git/merge-recursive.c:3381:34: note: +1
        } else if (o_valid && (!a_valid || !b_valid)) {
                                        ^
/datasets/git/merge-recursive.c:3383:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((!a_valid && !b_valid) ||
                ^
/datasets/git/merge-recursive.c:3384:64: note: +1
                    (!b_valid && blob_unchanged(opt, o, a, normalize, path)) ||
                                                                             ^
/datasets/git/merge-recursive.c:3383:17: note: +1
                if ((!a_valid && !b_valid) ||
                              ^
/datasets/git/merge-recursive.c:3384:17: note: +1
                    (!b_valid && blob_unchanged(opt, o, a, normalize, path)) ||
                              ^
/datasets/git/merge-recursive.c:3385:17: note: +1
                    (!a_valid && blob_unchanged(opt, o, b, normalize, path))) {
                              ^
/datasets/git/merge-recursive.c:3388:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (a_valid)
                        ^
/datasets/git/merge-recursive.c:3392:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/merge-recursive.c:3395:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (handle_modify_delete(opt, path, o, a, b))
                        ^
/datasets/git/merge-recursive.c:3398:9: note: +1, nesting level increased to 1
        } else if ((!o_valid && a_valid && !b_valid) ||
               ^
/datasets/git/merge-recursive.c:3398:47: note: +1
        } else if ((!o_valid && a_valid && !b_valid) ||
                                                     ^
/datasets/git/merge-recursive.c:3398:34: note: +1
        } else if ((!o_valid && a_valid && !b_valid) ||
                                        ^
/datasets/git/merge-recursive.c:3399:28: note: +1
                   (!o_valid && !a_valid && b_valid)) {
                                         ^
/datasets/git/merge-recursive.c:3408:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (a_valid) {
                ^
/datasets/git/merge-recursive.c:3413:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/merge-recursive.c:3419:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (dir_in_way(opt->repo->index, path,
                ^
/datasets/git/merge-recursive.c:3420:34: note: +1
                               !opt->priv->call_depth && !S_ISGITLINK(a->mode),
                                                      ^
/datasets/git/merge-recursive.c:3427:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (update_file(opt, 0, contents, new_path))
                        ^
/datasets/git/merge-recursive.c:3429:9: note: +1, nesting level increased to 3
                        else if (opt->priv->call_depth)
                             ^
/datasets/git/merge-recursive.c:3432:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/merge-recursive.c:3435:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (update_file_flags(opt, contents, path, 1, !a_valid))
                        ^
/datasets/git/merge-recursive.c:3438:9: note: +1, nesting level increased to 1
        } else if (a_valid && b_valid) {
               ^
/datasets/git/merge-recursive.c:3438:21: note: +1
        } else if (a_valid && b_valid) {
                           ^
/datasets/git/merge-recursive.c:3439:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!o_valid) {
                ^
/datasets/git/merge-recursive.c:3449:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/merge-recursive.c:3457:9: note: +1, nesting level increased to 1
        } else if (!o_valid && !a_valid && !b_valid) {
               ^
/datasets/git/merge-recursive.c:3457:34: note: +1
        } else if (!o_valid && !a_valid && !b_valid) {
                                        ^
/datasets/git/merge-recursive.c:3463:4: note: +1, nesting level increased to 1
        } else
          ^
/datasets/git/merge-recursive.c:3293:24: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
        struct diff_filespec *o = &entry->stages[1];
                              ^
/datasets/git/merge-recursive.c:3294:24: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        struct diff_filespec *a = &entry->stages[2];
                              ^
/datasets/git/merge-recursive.c:3295:24: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        struct diff_filespec *b = &entry->stages[3];
                              ^
/datasets/git/merge-recursive.c:3303:32: warning: variable name 'ci' is too short, expected at least 3 characters [readability-identifier-length]
                struct rename_conflict_info *ci = entry->rename_conflict_info;
                                             ^
/datasets/git/merge-recursive.c:3304:25: warning: variable 'temp' is not initialized [cppcoreguidelines-init-variables]
                struct diff_filespec *temp;
                                      ^
                                           = NULL
/datasets/git/merge-recursive.c:3305:7: warning: variable 'path_clean' is not initialized [cppcoreguidelines-init-variables]
                int path_clean;
                    ^
                               = 0
/datasets/git/merge-recursive.c:3308:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                path_clean &= warn_about_dir_renamed_entries(opt, ci->ren2);
                ^~~~~~~~~~
/datasets/git/merge-recursive.c:3342:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (handle_rename_delete(opt, ci))
                                                          ^
                                                           {
/datasets/git/merge-recursive.c:3352:14: warning: Access to field 'pair' results in a dereference of a null pointer (loaded from field 'ren2') [clang-analyzer-core.NullDereference]
                        b->path = ci->ren2->pair->two->path;
                                  ^
/datasets/git/merge-recursive.c:3818:6: note: Assuming 'merge_bases' is null
        if (merge_bases) {
            ^~~~~~~~~~~
/datasets/git/merge-recursive.c:3818:2: note: Taking false branch
        if (merge_bases) {
        ^
/datasets/git/merge-recursive.c:3833:10: note: Calling 'merge_recursive'
        clean = merge_recursive(opt, head_commit, next_commit, ca,
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:3772:9: note: Assuming field 'ancestor' is not equal to null
        assert(opt->ancestor == NULL ||
               ^
/usr/include/assert.h:109:11: note: expanded from macro 'assert'
      if (expr)                                                         \
          ^~~~
/datasets/git/merge-recursive.c:3772:9: note: Left side of '||' is false
        assert(opt->ancestor == NULL ||
               ^
/datasets/git/merge-recursive.c:3772:2: note: Taking true branch
        assert(opt->ancestor == NULL ||
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-recursive.c:3778:2: note: Taking false branch
        if (merge_start(opt, repo_get_commit_tree(opt->repo, h1)))
        ^
/datasets/git/merge-recursive.c:3780:10: note: Calling 'merge_recursive_internal'
        clean = merge_recursive_internal(opt, h1, h2, merge_bases, result);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:3588:2: note: Taking false branch
        if (show(opt, 4)) {
        ^
/datasets/git/merge-recursive.c:3594:7: note: 'merge_bases' is null
        if (!merge_bases) {
             ^~~~~~~~~~~
/datasets/git/merge-recursive.c:3594:2: note: Taking true branch
        if (!merge_bases) {
        ^
/datasets/git/merge-recursive.c:3599:2: note: Taking false branch
        if (show(opt, 5)) {
        ^
/datasets/git/merge-recursive.c:3609:6: note: Assuming 'merged_merge_bases' is non-null
        if (!merged_merge_bases) {
            ^~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:3609:2: note: Taking false branch
        if (!merged_merge_bases) {
        ^
/datasets/git/merge-recursive.c:3617:18: note: Field 'ancestor' is non-null
        } else if (opt->ancestor && !opt->priv->call_depth) {
                        ^
/datasets/git/merge-recursive.c:3617:13: note: Left side of '&&' is true
        } else if (opt->ancestor && !opt->priv->call_depth) {
                   ^
/datasets/git/merge-recursive.c:3617:42: note: Field 'call_depth' is not equal to 0
        } else if (opt->ancestor && !opt->priv->call_depth) {
                                                ^
/datasets/git/merge-recursive.c:3617:9: note: Taking false branch
        } else if (opt->ancestor && !opt->priv->call_depth) {
               ^
/datasets/git/merge-recursive.c:3619:13: note: Assuming 'merge_bases' is null
        } else if (merge_bases) {
                   ^~~~~~~~~~~
/datasets/git/merge-recursive.c:3619:9: note: Taking false branch
        } else if (merge_bases) {
               ^
/datasets/git/merge-recursive.c:3628:2: note: Loop condition is false. Execution continues on line 3664
        for (iter = merge_bases; iter; iter = iter->next) {
        ^
/datasets/git/merge-recursive.c:3665:18: note: Field 'call_depth' is not equal to 0
        if (!opt->priv->call_depth)
                        ^
/datasets/git/merge-recursive.c:3665:2: note: Taking false branch
        if (!opt->priv->call_depth)
        ^
/datasets/git/merge-recursive.c:3669:10: note: Calling 'merge_trees_internal'
        clean = merge_trees_internal(opt,
                ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:3478:6: note: Assuming field 'subtree_shift' is null
        if (opt->subtree_shift) {
            ^~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:3478:2: note: Taking false branch
        if (opt->subtree_shift) {
        ^
/datasets/git/merge-recursive.c:3485:6: note: Assuming the condition is false
        if (oideq(&merge_base->object.oid, &merge->object.oid)) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:3485:2: note: Taking false branch
        if (oideq(&merge_base->object.oid, &merge->object.oid)) {
        ^
/datasets/git/merge-recursive.c:3493:6: note: Assuming 'code' is equal to 0
        if (code != 0) {
            ^~~~~~~~~
/datasets/git/merge-recursive.c:3493:2: note: Taking false branch
        if (code != 0) {
        ^
/datasets/git/merge-recursive.c:3502:6: note: Assuming the condition is true
        if (unmerged_index(istate)) {
            ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:3502:2: note: Taking true branch
        if (unmerged_index(istate)) {
        ^
/datasets/git/merge-recursive.c:3522:7: note: 'clean' is >= 0
                if (clean < 0)
                    ^~~~~
/datasets/git/merge-recursive.c:3522:3: note: Taking false branch
                if (clean < 0)
                ^
/datasets/git/merge-recursive.c:3524:27: note: Assuming 'i' is >= 0
                for (i = entries->nr-1; 0 <= i; i--) {
                                        ^~~~~~
/datasets/git/merge-recursive.c:3524:3: note: Loop condition is true.  Entering loop body
                for (i = entries->nr-1; 0 <= i; i--) {
                ^
/datasets/git/merge-recursive.c:3527:8: note: Assuming field 'processed' is 0
                        if (!e->processed) {
                            ^~~~~~~~~~~~~
/datasets/git/merge-recursive.c:3527:4: note: Taking true branch
                        if (!e->processed) {
                        ^
/datasets/git/merge-recursive.c:3528:15: note: Calling 'process_entry'
                                int ret = process_entry(opt, path, e);
                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:3302:6: note: Assuming field 'rename_conflict_info' is non-null
        if (entry->rename_conflict_info) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:3302:2: note: Taking true branch
        if (entry->rename_conflict_info) {
        ^
/datasets/git/merge-recursive.c:3316:11: note: Assuming field 'branch1' is not equal to field 'branch'
                temp = (opt->branch1 == ci->ren1->branch) ? b : a;
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:3316:10: note: '?' condition is false
                temp = (opt->branch1 == ci->ren1->branch) ? b : a;
                       ^
/datasets/git/merge-recursive.c:3318:7: note: Assuming field 'ren2' is null
                if (ci->ren2) {
                    ^~~~~~~~
/datasets/git/merge-recursive.c:3318:3: note: Taking false branch
                if (ci->ren2) {
                ^
/datasets/git/merge-recursive.c:3322:3: note: Control jumps to 'case RENAME_ONE_FILE_TO_TWO:'  at line 3345
                switch (ci->rename_type) {
                ^
/datasets/git/merge-recursive.c:3352:14: note: Access to field 'pair' results in a dereference of a null pointer (loaded from field 'ren2')
                        b->path = ci->ren2->pair->two->path;
                                  ^   ~~~~
/datasets/git/merge-recursive.c:3355:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (handle_rename_rename_1to2(opt, ci))
                                                               ^
                                                                {
/datasets/git/merge-recursive.c:3365:14: warning: Access to field 'pair' results in a dereference of a null pointer (loaded from field 'ren2') [clang-analyzer-core.NullDereference]
                        b->path = ci->ren2->pair->two->path;
                                  ^
/datasets/git/merge-recursive.c:3818:6: note: Assuming 'merge_bases' is null
        if (merge_bases) {
            ^~~~~~~~~~~
/datasets/git/merge-recursive.c:3818:2: note: Taking false branch
        if (merge_bases) {
        ^
/datasets/git/merge-recursive.c:3833:10: note: Calling 'merge_recursive'
        clean = merge_recursive(opt, head_commit, next_commit, ca,
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:3772:9: note: Assuming field 'ancestor' is not equal to null
        assert(opt->ancestor == NULL ||
               ^
/usr/include/assert.h:109:11: note: expanded from macro 'assert'
      if (expr)                                                         \
          ^~~~
/datasets/git/merge-recursive.c:3772:9: note: Left side of '||' is false
        assert(opt->ancestor == NULL ||
               ^
/datasets/git/merge-recursive.c:3772:2: note: Taking true branch
        assert(opt->ancestor == NULL ||
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-recursive.c:3778:2: note: Taking false branch
        if (merge_start(opt, repo_get_commit_tree(opt->repo, h1)))
        ^
/datasets/git/merge-recursive.c:3780:10: note: Calling 'merge_recursive_internal'
        clean = merge_recursive_internal(opt, h1, h2, merge_bases, result);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:3588:2: note: Taking false branch
        if (show(opt, 4)) {
        ^
/datasets/git/merge-recursive.c:3594:7: note: 'merge_bases' is null
        if (!merge_bases) {
             ^~~~~~~~~~~
/datasets/git/merge-recursive.c:3594:2: note: Taking true branch
        if (!merge_bases) {
        ^
/datasets/git/merge-recursive.c:3599:2: note: Taking false branch
        if (show(opt, 5)) {
        ^
/datasets/git/merge-recursive.c:3609:6: note: Assuming 'merged_merge_bases' is non-null
        if (!merged_merge_bases) {
            ^~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:3609:2: note: Taking false branch
        if (!merged_merge_bases) {
        ^
/datasets/git/merge-recursive.c:3617:18: note: Field 'ancestor' is non-null
        } else if (opt->ancestor && !opt->priv->call_depth) {
                        ^
/datasets/git/merge-recursive.c:3617:13: note: Left side of '&&' is true
        } else if (opt->ancestor && !opt->priv->call_depth) {
                   ^
/datasets/git/merge-recursive.c:3617:42: note: Field 'call_depth' is not equal to 0
        } else if (opt->ancestor && !opt->priv->call_depth) {
                                                ^
/datasets/git/merge-recursive.c:3617:9: note: Taking false branch
        } else if (opt->ancestor && !opt->priv->call_depth) {
               ^
/datasets/git/merge-recursive.c:3619:13: note: Assuming 'merge_bases' is null
        } else if (merge_bases) {
                   ^~~~~~~~~~~
/datasets/git/merge-recursive.c:3619:9: note: Taking false branch
        } else if (merge_bases) {
               ^
/datasets/git/merge-recursive.c:3628:2: note: Loop condition is false. Execution continues on line 3664
        for (iter = merge_bases; iter; iter = iter->next) {
        ^
/datasets/git/merge-recursive.c:3665:18: note: Field 'call_depth' is not equal to 0
        if (!opt->priv->call_depth)
                        ^
/datasets/git/merge-recursive.c:3665:2: note: Taking false branch
        if (!opt->priv->call_depth)
        ^
/datasets/git/merge-recursive.c:3669:10: note: Calling 'merge_trees_internal'
        clean = merge_trees_internal(opt,
                ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:3478:6: note: Assuming field 'subtree_shift' is null
        if (opt->subtree_shift) {
            ^~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:3478:2: note: Taking false branch
        if (opt->subtree_shift) {
        ^
/datasets/git/merge-recursive.c:3485:6: note: Assuming the condition is false
        if (oideq(&merge_base->object.oid, &merge->object.oid)) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:3485:2: note: Taking false branch
        if (oideq(&merge_base->object.oid, &merge->object.oid)) {
        ^
/datasets/git/merge-recursive.c:3493:6: note: Assuming 'code' is equal to 0
        if (code != 0) {
            ^~~~~~~~~
/datasets/git/merge-recursive.c:3493:2: note: Taking false branch
        if (code != 0) {
        ^
/datasets/git/merge-recursive.c:3502:6: note: Assuming the condition is true
        if (unmerged_index(istate)) {
            ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:3502:2: note: Taking true branch
        if (unmerged_index(istate)) {
        ^
/datasets/git/merge-recursive.c:3522:7: note: 'clean' is >= 0
                if (clean < 0)
                    ^~~~~
/datasets/git/merge-recursive.c:3522:3: note: Taking false branch
                if (clean < 0)
                ^
/datasets/git/merge-recursive.c:3524:27: note: Assuming 'i' is >= 0
                for (i = entries->nr-1; 0 <= i; i--) {
                                        ^~~~~~
/datasets/git/merge-recursive.c:3524:3: note: Loop condition is true.  Entering loop body
                for (i = entries->nr-1; 0 <= i; i--) {
                ^
/datasets/git/merge-recursive.c:3527:8: note: Assuming field 'processed' is 0
                        if (!e->processed) {
                            ^~~~~~~~~~~~~
/datasets/git/merge-recursive.c:3527:4: note: Taking true branch
                        if (!e->processed) {
                        ^
/datasets/git/merge-recursive.c:3528:15: note: Calling 'process_entry'
                                int ret = process_entry(opt, path, e);
                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:3302:6: note: Assuming field 'rename_conflict_info' is non-null
        if (entry->rename_conflict_info) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:3302:2: note: Taking true branch
        if (entry->rename_conflict_info) {
        ^
/datasets/git/merge-recursive.c:3316:11: note: Assuming field 'branch1' is not equal to field 'branch'
                temp = (opt->branch1 == ci->ren1->branch) ? b : a;
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:3316:10: note: '?' condition is false
                temp = (opt->branch1 == ci->ren1->branch) ? b : a;
                       ^
/datasets/git/merge-recursive.c:3318:7: note: Assuming field 'ren2' is null
                if (ci->ren2) {
                    ^~~~~~~~
/datasets/git/merge-recursive.c:3318:3: note: Taking false branch
                if (ci->ren2) {
                ^
/datasets/git/merge-recursive.c:3322:3: note: Control jumps to 'case RENAME_TWO_FILES_TO_ONE:'  at line 3358
                switch (ci->rename_type) {
                ^
/datasets/git/merge-recursive.c:3365:14: note: Access to field 'pair' results in a dereference of a null pointer (loaded from field 'ren2')
                        b->path = ci->ren2->pair->two->path;
                                  ^   ~~~~
/datasets/git/merge-recursive.c:3379:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (path_clean < clean_merge)
                                             ^
                                              {
/datasets/git/merge-recursive.c:3388:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (a_valid)
                                    ^
                                     {
/datasets/git/merge-recursive.c:3395:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (handle_modify_delete(opt, path, o, a, b))
                                                                     ^
                                                                      {
/datasets/git/merge-recursive.c:3403:15: warning: variable 'add_branch' is not initialized [cppcoreguidelines-init-variables]
                const char *add_branch;
                            ^
                                       = NULL
/datasets/git/merge-recursive.c:3404:15: warning: variable 'other_branch' is not initialized [cppcoreguidelines-init-variables]
                const char *other_branch;
                            ^
                                         = NULL
/datasets/git/merge-recursive.c:3405:15: warning: variable 'conf' is not initialized [cppcoreguidelines-init-variables]
                const char *conf;
                            ^
                                 = NULL
/datasets/git/merge-recursive.c:3406:31: warning: variable 'contents' is not initialized [cppcoreguidelines-init-variables]
                const struct diff_filespec *contents;
                                            ^
                                                     = NULL
/datasets/git/merge-recursive.c:3420:38: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                               !opt->priv->call_depth && !S_ISGITLINK(a->mode),
                                                          ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/merge-recursive.c:3427:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (update_file(opt, 0, contents, new_path))
                                                                    ^
                                                                     {
/datasets/git/merge-recursive.c:3429:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (opt->priv->call_depth)
                                                       ^
                                                        {
/datasets/git/merge-recursive.c:3435:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (update_file_flags(opt, contents, path, 1, !a_valid))
                                                                                ^
                                                                                 {
/datasets/git/merge-recursive.c:3463:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/merge-recursive.c:3469:12: warning: function 'merge_trees_internal' has cognitive complexity of 30 (threshold 25) [readability-function-cognitive-complexity]
static int merge_trees_internal(struct merge_options *opt,
           ^
/datasets/git/merge-recursive.c:3478:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt->subtree_shift) {
        ^
/datasets/git/merge-recursive.c:3485:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (oideq(&merge_base->object.oid, &merge->object.oid)) {
        ^
/datasets/git/merge-recursive.c:3493:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (code != 0) {
        ^
/datasets/git/merge-recursive.c:3494:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (show(opt, 4) || opt->priv->call_depth)
                ^
/datasets/git/merge-recursive.c:3494:20: note: +1
                if (show(opt, 4) || opt->priv->call_depth)
                                 ^
/datasets/git/merge-recursive.c:3502:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (unmerged_index(istate)) {
        ^
/datasets/git/merge-recursive.c:3522:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (clean < 0)
                ^
/datasets/git/merge-recursive.c:3524:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = entries->nr-1; 0 <= i; i--) {
                ^
/datasets/git/merge-recursive.c:3527:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!e->processed) {
                        ^
/datasets/git/merge-recursive.c:3529:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!ret)
                                ^
/datasets/git/merge-recursive.c:3531:10: note: +1, nesting level increased to 4
                                else if (ret < 0) {
                                     ^
/datasets/git/merge-recursive.c:3533:6: note: +1
                                        goto cleanup;
                                        ^
/datasets/git/merge-recursive.c:3537:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < entries->nr; i++) {
                ^
/datasets/git/merge-recursive.c:3539:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!e->processed)
                        ^
/datasets/git/merge-recursive.c:3553:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (clean < 0) {
                ^
/datasets/git/merge-recursive.c:3558:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/merge-recursive.c:3563:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt->priv->call_depth &&
        ^
/datasets/git/merge-recursive.c:3563:28: note: +1
        if (opt->priv->call_depth &&
                                  ^
/datasets/git/merge-recursive.c:3476:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int code, clean;
        ^~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:3476:6: warning: variable 'code' is not initialized [cppcoreguidelines-init-variables]
        int code, clean;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-recursive.c:3476:12: warning: variable 'clean' is not initialized [cppcoreguidelines-init-variables]
        int code, clean;
                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-recursive.c:3494:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (show(opt, 4) || opt->priv->call_depth)
                                                          ^
                                                           {
/datasets/git/merge-recursive.c:3503:23: warning: variable 'entries' is not initialized [cppcoreguidelines-init-variables]
                struct string_list *entries;
                                    ^
                                            = NULL
/datasets/git/merge-recursive.c:3505:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/merge-recursive.c:3505:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-recursive.c:3514:15: warning: 512 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                             NULL, 512);
                                   ^
/datasets/git/merge-recursive.c:3522:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (clean < 0)
                              ^
                               {
/datasets/git/merge-recursive.c:3524:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = entries->nr-1; 0 <= i; i--) {
                ^
/datasets/git/merge-recursive.c:3505:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                int i;
                ^
/datasets/git/merge-recursive.c:3524:12: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                for (i = entries->nr-1; 0 <= i; i--) {
                         ^
/datasets/git/merge-recursive.c:3524:27: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = entries->nr-1; 0 <= i; i--) {
                                        ^
/datasets/git/merge-recursive.c:3526:23: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                        struct stage_data *e = entries->items[i].util;
                                           ^
/datasets/git/merge-recursive.c:3529:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!ret)
                                         ^
                                          {
/datasets/git/merge-recursive.c:3537:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < entries->nr; i++) {
                ^
/datasets/git/merge-recursive.c:3537:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < entries->nr; i++) {
                            ^
/datasets/git/merge-recursive.c:3538:23: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                        struct stage_data *e = entries->items[i].util;
                                           ^
/datasets/git/merge-recursive.c:3539:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!e->processed)
                                          ^
                                           {
/datasets/git/merge-recursive.c:3558:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/merge-recursive.c:3564:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
            !(*result = write_in_core_index_as_tree(opt->repo)))
              ^
/datasets/git/merge-recursive.c:3564:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/merge-recursive.c:3564:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/merge-recursive.c:3564:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !(*result = write_in_core_index_as_tree(opt->repo)))
                                                                ^
                                                                 {
/datasets/git/merge-recursive.c:3575:12: warning: function 'merge_recursive_internal' is within a recursive call chain [misc-no-recursion]
static int merge_recursive_internal(struct merge_options *opt,
           ^
/datasets/git/merge-recursive.c:3575:12: note: example recursive call chain, starting from function 'merge_recursive_internal'
/datasets/git/merge-recursive.c:3644:7: note: Frame #1: function 'merge_recursive_internal' calls function 'merge_recursive_internal' here:
                if (merge_recursive_internal(opt, merged_merge_bases, iter->item,
                    ^
/datasets/git/merge-recursive.c:3644:7: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/merge-recursive.c:3576:24: warning: parameter name 'h1' is too short, expected at least 3 characters [readability-identifier-length]
                                    struct commit *h1,
                                                   ^
/datasets/git/merge-recursive.c:3577:24: warning: parameter name 'h2' is too short, expected at least 3 characters [readability-identifier-length]
                                    struct commit *h2,
                                                   ^
/datasets/git/merge-recursive.c:3581:2: note: inferred assignment of ID-dependent value from ID-dependent variable merge_bases [altera-id-dependent-backward-branch]
        struct commit_list *iter;
        ^
/datasets/git/merge-recursive.c:3581:22: warning: variable 'iter' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *iter;
                            ^
                                 = NULL
/datasets/git/merge-recursive.c:3582:17: warning: variable 'merged_merge_bases' is not initialized [cppcoreguidelines-init-variables]
        struct commit *merged_merge_bases;
                       ^
                                          = NULL
/datasets/git/merge-recursive.c:3583:15: warning: variable 'result_tree' is not initialized [cppcoreguidelines-init-variables]
        struct tree *result_tree;
                     ^
                                 = NULL
/datasets/git/merge-recursive.c:3584:6: warning: variable 'clean' is not initialized [cppcoreguidelines-init-variables]
        int clean;
            ^
                  = 0
/datasets/git/merge-recursive.c:3585:14: warning: variable 'ancestor_name' is not initialized [cppcoreguidelines-init-variables]
        const char *ancestor_name;
                    ^
                                  = NULL
/datasets/git/merge-recursive.c:3599:16: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (show(opt, 5)) {
                      ^
/datasets/git/merge-recursive.c:3602:15: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                output(opt, 5, Q_("found %u common ancestor:",
                            ^
/datasets/git/merge-recursive.c:3604:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (iter = merge_bases; iter; iter = iter->next)
                ^
/datasets/git/merge-recursive.c:3604:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'iter' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (iter = merge_bases; iter; iter = iter->next)
                                         ^
/datasets/git/merge-recursive.c:3604:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (iter = merge_bases; iter; iter = iter->next)
                                                                 ^
                                                                  {
/datasets/git/merge-recursive.c:3611:16: warning: variable 'tree' is not initialized [cppcoreguidelines-init-variables]
                struct tree *tree;
                             ^
                                  = NULL
/datasets/git/merge-recursive.c:3628:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (iter = merge_bases; iter; iter = iter->next) {
        ^
/datasets/git/merge-recursive.c:3628:27: warning: backward branch (for loop) is ID-dependent due to variable reference to 'iter' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (iter = merge_bases; iter; iter = iter->next) {
                                 ^
/datasets/git/merge-recursive.c:3629:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                const char *saved_b1, *saved_b2;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:3629:15: warning: variable 'saved_b1' is not initialized [cppcoreguidelines-init-variables]
                const char *saved_b1, *saved_b2;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-recursive.c:3629:26: warning: variable 'saved_b2' is not initialized [cppcoreguidelines-init-variables]
                const char *saved_b1, *saved_b2;
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge-recursive.c:3645:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                             NULL, &merged_merge_bases) < 0)
                                                                            ^
                                                                             {
/datasets/git/merge-recursive.c:3651:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!merged_merge_bases)
                                        ^
                                         {
/datasets/git/merge-recursive.c:3665:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opt->priv->call_depth)
                                   ^
                                    {
/datasets/git/merge-recursive.c:3691:12: warning: function 'merge_start' has cognitive complexity of 75 (threshold 25) [readability-function-cognitive-complexity]
static int merge_start(struct merge_options *opt, struct tree *head)
           ^
/datasets/git/merge-recursive.c:3696:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(opt->repo);
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-recursive.c:3696:2: note: nesting level increased to 1
        assert(opt->repo);
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-recursive.c:3696:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(opt->repo);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-recursive.c:3696:2: note: +1, nesting level increased to 2
        assert(opt->repo);
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-recursive.c:3698:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(opt->branch1 && opt->branch2);
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-recursive.c:3698:22: note: +1
        assert(opt->branch1 && opt->branch2);
                            ^
/datasets/git/merge-recursive.c:3698:2: note: nesting level increased to 1
        assert(opt->branch1 && opt->branch2);
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-recursive.c:3698:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(opt->branch1 && opt->branch2);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-recursive.c:3698:22: note: +1
        assert(opt->branch1 && opt->branch2);
                            ^
/datasets/git/merge-recursive.c:3698:2: note: +1, nesting level increased to 2
        assert(opt->branch1 && opt->branch2);
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-recursive.c:3700:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(opt->detect_renames >= -1 &&
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-recursive.c:3700:35: note: +1
        assert(opt->detect_renames >= -1 &&
                                         ^
/datasets/git/merge-recursive.c:3700:2: note: nesting level increased to 1
        assert(opt->detect_renames >= -1 &&
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-recursive.c:3700:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(opt->detect_renames >= -1 &&
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-recursive.c:3700:35: note: +1
        assert(opt->detect_renames >= -1 &&
                                         ^
/datasets/git/merge-recursive.c:3700:2: note: +1, nesting level increased to 2
        assert(opt->detect_renames >= -1 &&
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-recursive.c:3702:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(opt->detect_directory_renames >= MERGE_DIRECTORY_RENAMES_NONE &&
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-recursive.c:3702:71: note: +1
        assert(opt->detect_directory_renames >= MERGE_DIRECTORY_RENAMES_NONE &&
                                                                             ^
/datasets/git/merge-recursive.c:3702:2: note: nesting level increased to 1
        assert(opt->detect_directory_renames >= MERGE_DIRECTORY_RENAMES_NONE &&
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-recursive.c:3702:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(opt->detect_directory_renames >= MERGE_DIRECTORY_RENAMES_NONE &&
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-recursive.c:3702:71: note: +1
        assert(opt->detect_directory_renames >= MERGE_DIRECTORY_RENAMES_NONE &&
                                                                             ^
/datasets/git/merge-recursive.c:3702:2: note: +1, nesting level increased to 2
        assert(opt->detect_directory_renames >= MERGE_DIRECTORY_RENAMES_NONE &&
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-recursive.c:3704:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(opt->rename_limit >= -1);
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-recursive.c:3704:2: note: nesting level increased to 1
        assert(opt->rename_limit >= -1);
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-recursive.c:3704:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(opt->rename_limit >= -1);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-recursive.c:3704:2: note: +1, nesting level increased to 2
        assert(opt->rename_limit >= -1);
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-recursive.c:3705:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(opt->rename_score >= 0 && opt->rename_score <= MAX_SCORE);
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-recursive.c:3705:32: note: +1
        assert(opt->rename_score >= 0 && opt->rename_score <= MAX_SCORE);
                                      ^
/datasets/git/merge-recursive.c:3705:2: note: nesting level increased to 1
        assert(opt->rename_score >= 0 && opt->rename_score <= MAX_SCORE);
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-recursive.c:3705:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(opt->rename_score >= 0 && opt->rename_score <= MAX_SCORE);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-recursive.c:3705:32: note: +1
        assert(opt->rename_score >= 0 && opt->rename_score <= MAX_SCORE);
                                      ^
/datasets/git/merge-recursive.c:3705:2: note: +1, nesting level increased to 2
        assert(opt->rename_score >= 0 && opt->rename_score <= MAX_SCORE);
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-recursive.c:3706:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(opt->show_rename_progress >= 0 && opt->show_rename_progress <= 1);
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-recursive.c:3706:40: note: +1
        assert(opt->show_rename_progress >= 0 && opt->show_rename_progress <= 1);
                                              ^
/datasets/git/merge-recursive.c:3706:2: note: nesting level increased to 1
        assert(opt->show_rename_progress >= 0 && opt->show_rename_progress <= 1);
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-recursive.c:3706:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(opt->show_rename_progress >= 0 && opt->show_rename_progress <= 1);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-recursive.c:3706:40: note: +1
        assert(opt->show_rename_progress >= 0 && opt->show_rename_progress <= 1);
                                              ^
/datasets/git/merge-recursive.c:3706:2: note: +1, nesting level increased to 2
        assert(opt->show_rename_progress >= 0 && opt->show_rename_progress <= 1);
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-recursive.c:3708:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(opt->xdl_opts >= 0);
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-recursive.c:3708:2: note: nesting level increased to 1
        assert(opt->xdl_opts >= 0);
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-recursive.c:3708:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(opt->xdl_opts >= 0);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-recursive.c:3708:2: note: +1, nesting level increased to 2
        assert(opt->xdl_opts >= 0);
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-recursive.c:3709:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(opt->recursive_variant >= MERGE_VARIANT_NORMAL &&
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-recursive.c:3709:56: note: +1
        assert(opt->recursive_variant >= MERGE_VARIANT_NORMAL &&
                                                              ^
/datasets/git/merge-recursive.c:3709:2: note: nesting level increased to 1
        assert(opt->recursive_variant >= MERGE_VARIANT_NORMAL &&
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-recursive.c:3709:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(opt->recursive_variant >= MERGE_VARIANT_NORMAL &&
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-recursive.c:3709:56: note: +1
        assert(opt->recursive_variant >= MERGE_VARIANT_NORMAL &&
                                                              ^
/datasets/git/merge-recursive.c:3709:2: note: +1, nesting level increased to 2
        assert(opt->recursive_variant >= MERGE_VARIANT_NORMAL &&
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-recursive.c:3712:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(opt->verbosity >= 0 && opt->verbosity <= 5);
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-recursive.c:3712:29: note: +1
        assert(opt->verbosity >= 0 && opt->verbosity <= 5);
                                   ^
/datasets/git/merge-recursive.c:3712:2: note: nesting level increased to 1
        assert(opt->verbosity >= 0 && opt->verbosity <= 5);
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-recursive.c:3712:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(opt->verbosity >= 0 && opt->verbosity <= 5);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-recursive.c:3712:29: note: +1
        assert(opt->verbosity >= 0 && opt->verbosity <= 5);
                                   ^
/datasets/git/merge-recursive.c:3712:2: note: +1, nesting level increased to 2
        assert(opt->verbosity >= 0 && opt->verbosity <= 5);
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-recursive.c:3713:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(opt->buffer_output <= 2);
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-recursive.c:3713:2: note: nesting level increased to 1
        assert(opt->buffer_output <= 2);
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-recursive.c:3713:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(opt->buffer_output <= 2);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-recursive.c:3713:2: note: +1, nesting level increased to 2
        assert(opt->buffer_output <= 2);
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-recursive.c:3714:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(opt->obuf.len == 0);
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-recursive.c:3714:2: note: nesting level increased to 1
        assert(opt->obuf.len == 0);
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-recursive.c:3714:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(opt->obuf.len == 0);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-recursive.c:3714:2: note: +1, nesting level increased to 2
        assert(opt->obuf.len == 0);
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-recursive.c:3716:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(opt->priv == NULL);
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-recursive.c:3716:2: note: nesting level increased to 1
        assert(opt->priv == NULL);
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-recursive.c:3716:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(opt->priv == NULL);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-recursive.c:3716:2: note: +1, nesting level increased to 2
        assert(opt->priv == NULL);
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-recursive.c:3719:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(!opt->record_conflict_msgs_as_headers);
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-recursive.c:3719:2: note: nesting level increased to 1
        assert(!opt->record_conflict_msgs_as_headers);
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-recursive.c:3719:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(!opt->record_conflict_msgs_as_headers);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-recursive.c:3719:2: note: +1, nesting level increased to 2
        assert(!opt->record_conflict_msgs_as_headers);
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-recursive.c:3720:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(!opt->msg_header_prefix);
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/merge-recursive.c:3720:2: note: nesting level increased to 1
        assert(!opt->msg_header_prefix);
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/merge-recursive.c:3720:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(!opt->msg_header_prefix);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/merge-recursive.c:3720:2: note: +1, nesting level increased to 2
        assert(!opt->msg_header_prefix);
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/merge-recursive.c:3723:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (repo_index_has_changes(opt->repo, head, &sb)) {
        ^
/datasets/git/merge-recursive.c:3693:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/merge-recursive.c:3705:56: warning: MAX_SCORE is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        assert(opt->rename_score >= 0 && opt->rename_score <= MAX_SCORE);
                                                              ^
/datasets/git/./diffcore.h:26:19: note: expanded from macro 'MAX_SCORE'
#define MAX_SCORE 60000.0
                  ^
/datasets/git/merge-recursive.c:3738:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opt->priv->call_depth && opt->buffer_output < 2)
                                                             ^
                                                              {
/datasets/git/merge-recursive.c:3740:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (show(opt, 2))
                         ^
                          {
/datasets/git/merge-recursive.c:3743:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(opt->priv);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/merge-recursive.c:3751:6: warning: variable 'clean' is not initialized [cppcoreguidelines-init-variables]
        int clean;
            ^
                  = 0
/datasets/git/merge-recursive.c:3752:15: warning: variable 'ignored' is not initialized [cppcoreguidelines-init-variables]
        struct tree *ignored;
                     ^
                             = NULL
/datasets/git/merge-recursive.c:3756:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (merge_start(opt, head))
                                   ^
                                    {
/datasets/git/merge-recursive.c:3765:22: warning: parameter name 'h1' is too short, expected at least 3 characters [readability-identifier-length]
                    struct commit *h1,
                                   ^
/datasets/git/merge-recursive.c:3766:22: warning: parameter name 'h2' is too short, expected at least 3 characters [readability-identifier-length]
                    struct commit *h2,
                                   ^
/datasets/git/merge-recursive.c:3770:6: warning: variable 'clean' is not initialized [cppcoreguidelines-init-variables]
        int clean;
            ^
                  = 0
/datasets/git/merge-recursive.c:3778:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (merge_start(opt, repo_get_commit_tree(opt->repo, h1)))
                                                                  ^
                                                                   {
/datasets/git/merge-recursive.c:3790:17: warning: variable 'object' is not initialized [cppcoreguidelines-init-variables]
        struct object *object;
                       ^
                              = NULL
/datasets/git/merge-recursive.c:3793:13: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                           name, strlen(name));
                                 ^
/datasets/git/merge-recursive.c:3794:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!object)
                    ^
                     {
/datasets/git/merge-recursive.c:3796:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (object->type == OBJ_TREE)
                                     ^
                                      {
/datasets/git/merge-recursive.c:3798:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (object->type != OBJ_COMMIT)
                                       ^
                                        {
/datasets/git/merge-recursive.c:3800:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_commit((struct commit *)object))
                                                  ^
                                                   {
/datasets/git/merge-recursive.c:3812:6: warning: variable 'clean' is not initialized [cppcoreguidelines-init-variables]
        int clean;
            ^
                  = 0
/datasets/git/merge-recursive.c:3816:22: warning: variable name 'ca' is too short, expected at least 3 characters [readability-identifier-length]
        struct commit_list *ca = NULL;
                            ^
/datasets/git/merge-recursive.c:3819:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/merge-recursive.c:3819:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge-recursive.c:3820:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < num_merge_bases; ++i) {
                ^
/datasets/git/merge-recursive.c:3821:19: warning: variable 'base' is not initialized [cppcoreguidelines-init-variables]
                        struct commit *base;
                                       ^
                                            = NULL
/datasets/git/merge-recursive.c:3822:10: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                        if (!(base = get_ref(opt->repo, merge_bases[i],
                              ^
/datasets/git/merge-recursive.c:3822:10: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/merge-recursive.c:3822:10: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/merge-recursive.c:3823:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                             oid_to_hex(merge_bases[i]))))
                                                                          ^
                                                                           {
/datasets/git/merge-recursive.c:3828:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (num_merge_bases == 1)
                                         ^
                                          {
/datasets/git/merge-recursive.c:3841:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                               COMMIT_LOCK | SKIP_IF_UNCHANGED))
                               ^
/datasets/git/./refs/../cache.h:744:22: note: expanded from macro 'COMMIT_LOCK'
#define COMMIT_LOCK             (1 << 0)
                                ^~~~~~~~
/datasets/git/merge-recursive.c:3841:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                               COMMIT_LOCK | SKIP_IF_UNCHANGED))
                                             ^
/datasets/git/./refs/../cache.h:745:28: note: expanded from macro 'SKIP_IF_UNCHANGED'
#define SKIP_IF_UNCHANGED       (1 << 1)
                                 ^
/datasets/git/merge-recursive.c:3841:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                               COMMIT_LOCK | SKIP_IF_UNCHANGED))
                                                                ^
                                                                 {
/datasets/git/merge-recursive.c:3882:14: warning: variable 'merge_verbosity' is not initialized [cppcoreguidelines-init-variables]
        const char *merge_verbosity;
                    ^
                                    = NULL
/datasets/git/merge-recursive.c:3883:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(opt, 0, sizeof(struct merge_options));
        ^~~~~~
/datasets/git/merge-recursive.c:3883:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(opt, 0, sizeof(struct merge_options));
        ^~~~~~
/datasets/git/merge-recursive.c:3898:20: warning: function is not thread safe [concurrency-mt-unsafe]
        merge_verbosity = getenv("GIT_MERGE_VERBOSITY");
                          ^
/datasets/git/merge-recursive.c:3899:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (merge_verbosity)
                            ^
                             {
/datasets/git/merge-recursive.c:3900:20: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                opt->verbosity = strtol(merge_verbosity, NULL, 10);
                                 ^
/datasets/git/merge-recursive.c:3900:50: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                opt->verbosity = strtol(merge_verbosity, NULL, 10);
                                                               ^
/datasets/git/merge-recursive.c:3901:24: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (opt->verbosity >= 5)
                              ^
/datasets/git/merge-recursive.c:3901:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->verbosity >= 5)
                                ^
                                 {
/datasets/git/merge-recursive.c:3905:60: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
int parse_merge_opt(struct merge_options *opt, const char *s)
                                                           ^
/datasets/git/merge-recursive.c:3907:14: warning: variable 'arg' is not initialized [cppcoreguidelines-init-variables]
        const char *arg;
                    ^
                        = NULL
/datasets/git/merge-recursive.c:3909:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!s || !*s)
                      ^
                       {
/datasets/git/merge-recursive.c:3911:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(s, "ours"))
                               ^
                                {
/datasets/git/merge-recursive.c:3913:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(s, "theirs"))
                                      ^
                                       {
/datasets/git/merge-recursive.c:3915:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(s, "subtree"))
                                       ^
                                        {
/datasets/git/merge-recursive.c:3917:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (skip_prefix(s, "subtree=", &arg))
                                                  ^
                                                   {
/datasets/git/merge-recursive.c:3919:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(s, "patience"))
                                        ^
                                         {
/datasets/git/merge-recursive.c:3920:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                opt->xdl_opts = DIFF_WITH_ALG(opt, PATIENCE_DIFF);
                                ^
/datasets/git/./diff.h:218:38: note: expanded from macro 'DIFF_WITH_ALG'
#define DIFF_WITH_ALG(opts, flag)   (((opts)->xdl_opts & ~XDF_DIFF_ALGORITHM_MASK) | XDF_##flag)
                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:3920:19: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                opt->xdl_opts = DIFF_WITH_ALG(opt, PATIENCE_DIFF);
                                ^
/datasets/git/./diff.h:218:58: note: expanded from macro 'DIFF_WITH_ALG'
#define DIFF_WITH_ALG(opts, flag)   (((opts)->xdl_opts & ~XDF_DIFF_ALGORITHM_MASK) | XDF_##flag)
                                                         ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:3921:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(s, "histogram"))
                                         ^
                                          {
/datasets/git/merge-recursive.c:3922:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                opt->xdl_opts = DIFF_WITH_ALG(opt, HISTOGRAM_DIFF);
                                ^
/datasets/git/./diff.h:218:38: note: expanded from macro 'DIFF_WITH_ALG'
#define DIFF_WITH_ALG(opts, flag)   (((opts)->xdl_opts & ~XDF_DIFF_ALGORITHM_MASK) | XDF_##flag)
                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:3922:19: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                opt->xdl_opts = DIFF_WITH_ALG(opt, HISTOGRAM_DIFF);
                                ^
/datasets/git/./diff.h:218:58: note: expanded from macro 'DIFF_WITH_ALG'
#define DIFF_WITH_ALG(opts, flag)   (((opts)->xdl_opts & ~XDF_DIFF_ALGORITHM_MASK) | XDF_##flag)
                                                         ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:3925:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (value < 0)
                              ^
                               {
/datasets/git/merge-recursive.c:3928:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                DIFF_XDL_CLR(opt, NEED_MINIMAL);
                ^
/datasets/git/./diff.h:216:38: note: expanded from macro 'DIFF_XDL_CLR'
#define DIFF_XDL_CLR(opts, flag)    ((opts)->xdl_opts &= ~XDF_##flag)
                                     ^~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:3928:3: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                DIFF_XDL_CLR(opt, NEED_MINIMAL);
                ^
/datasets/git/./diff.h:216:58: note: expanded from macro 'DIFF_XDL_CLR'
#define DIFF_XDL_CLR(opts, flag)    ((opts)->xdl_opts &= ~XDF_##flag)
                                                         ^~~~~~~~~~~
/datasets/git/merge-recursive.c:3929:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                opt->xdl_opts &= ~XDF_DIFF_ALGORITHM_MASK;
                ^~~~~~~~~~~~~
/datasets/git/merge-recursive.c:3929:20: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                opt->xdl_opts &= ~XDF_DIFF_ALGORITHM_MASK;
                                 ^
/datasets/git/merge-recursive.c:3929:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                opt->xdl_opts &= ~XDF_DIFF_ALGORITHM_MASK;
                                  ^
/datasets/git/./xdiff/xdiff.h:46:34: note: expanded from macro 'XDF_DIFF_ALGORITHM_MASK'
#define XDF_DIFF_ALGORITHM_MASK (XDF_PATIENCE_DIFF | XDF_HISTOGRAM_DIFF)
                                 ^~~~~~~~~~~~~~~~~
/datasets/git/./xdiff/xdiff.h:44:27: note: expanded from macro 'XDF_PATIENCE_DIFF'
#define XDF_PATIENCE_DIFF (1 << 14)
                          ^~~~~~~~~
/datasets/git/merge-recursive.c:3930:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                opt->xdl_opts |= value;
                ^~~~~~~~~~~~~
/datasets/git/merge-recursive.c:3932:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(s, "ignore-space-change"))
                                                   ^
                                                    {
/datasets/git/merge-recursive.c:3933:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                DIFF_XDL_SET(opt, IGNORE_WHITESPACE_CHANGE);
                ^
/datasets/git/./diff.h:215:38: note: expanded from macro 'DIFF_XDL_SET'
#define DIFF_XDL_SET(opts, flag)    ((opts)->xdl_opts |= XDF_##flag)
                                     ^~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:3934:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(s, "ignore-all-space"))
                                                ^
                                                 {
/datasets/git/merge-recursive.c:3935:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                DIFF_XDL_SET(opt, IGNORE_WHITESPACE);
                ^
/datasets/git/./diff.h:215:38: note: expanded from macro 'DIFF_XDL_SET'
#define DIFF_XDL_SET(opts, flag)    ((opts)->xdl_opts |= XDF_##flag)
                                     ^~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:3936:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(s, "ignore-space-at-eol"))
                                                   ^
                                                    {
/datasets/git/merge-recursive.c:3937:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                DIFF_XDL_SET(opt, IGNORE_WHITESPACE_AT_EOL);
                ^
/datasets/git/./diff.h:215:38: note: expanded from macro 'DIFF_XDL_SET'
#define DIFF_XDL_SET(opts, flag)    ((opts)->xdl_opts |= XDF_##flag)
                                     ^~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:3938:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(s, "ignore-cr-at-eol"))
                                                ^
                                                 {
/datasets/git/merge-recursive.c:3939:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                DIFF_XDL_SET(opt, IGNORE_CR_AT_EOL);
                ^
/datasets/git/./diff.h:215:38: note: expanded from macro 'DIFF_XDL_SET'
#define DIFF_XDL_SET(opts, flag)    ((opts)->xdl_opts |= XDF_##flag)
                                     ^~~~~~~~~~~~~~~~
/datasets/git/merge-recursive.c:3940:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(s, "renormalize"))
                                           ^
                                            {
/datasets/git/merge-recursive.c:3942:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(s, "no-renormalize"))
                                              ^
                                               {
/datasets/git/merge-recursive.c:3944:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(s, "no-renames"))
                                          ^
                                           {
/datasets/git/merge-recursive.c:3952:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                if ((opt->rename_score = parse_rename_score(&arg)) == -1 || *arg != 0)
                     ^
/datasets/git/merge-recursive.c:3952:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/merge-recursive.c:3952:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/merge-recursive.c:3952:73: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((opt->rename_score = parse_rename_score(&arg)) == -1 || *arg != 0)
                                                                                      ^
                                                                                       {
/datasets/git/merge-recursive.c:3960:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/merge.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "diff.h"
^        ~~~~~~~~
         "commit.h"
/datasets/git/merge.c:17:42: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int try_merge_command(struct repository *r,
                                         ^
/datasets/git/merge.c:23:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, ret;
        ^~~~~~~~~~~
/datasets/git/merge.c:23:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, ret;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge.c:23:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge.c:23:9: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int i, ret;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge.c:24:22: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *j;
                            ^
                              = NULL
/datasets/git/merge.c:24:22: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge.c:27:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < xopts_nr; i++)
        ^
/datasets/git/merge.c:27:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < xopts_nr; i++)
                                      ^
                                       {
/datasets/git/merge.c:29:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (j = common; j; j = j->next)
        ^
/datasets/git/merge.c:29:19: warning: backward branch (for loop) is ID-dependent due to variable reference to 'j' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (j = common; j; j = j->next)
                         ^
/datasets/git/merge.c:29:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (j = common; j; j = j->next)
                                        ^
                                         {
/datasets/git/merge.c:33:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (j = remotes; j; j = j->next)
        ^
/datasets/git/merge.c:33:20: warning: backward branch (for loop) is ID-dependent due to variable reference to 'j' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (j = remotes; j; j = j->next)
                          ^
/datasets/git/merge.c:33:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (j = remotes; j; j = j->next)
                                         ^
                                          {
/datasets/git/merge.c:40:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_read_index(r) < 0)
                                   ^
                                    {
/datasets/git/merge.c:47:46: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int checkout_fast_forward(struct repository *r,
                                             ^
/datasets/git/merge.c:54:19: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
        struct tree_desc t[MAX_UNPACK_TREES];
                         ^
/datasets/git/merge.c:55:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, nr_trees = 0;
        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/merge.c:55:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, nr_trees = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/merge.c:55:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/merge.c:58:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        refresh_index(r->index, REFRESH_QUIET, NULL, NULL, NULL);
                                ^
/datasets/git/./refs/../cache.h:923:43: note: expanded from macro 'REFRESH_QUIET'
#define REFRESH_QUIET                    (1 << 2) /* be quiet about it */
                                          ^
/datasets/git/merge.c:60:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_hold_locked_index(r, &lock_file, LOCK_REPORT_ON_ERROR) < 0)
                                                                            ^
                                                                             {
/datasets/git/merge.c:63:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&trees, 0, sizeof(trees));
        ^~~~~~
/datasets/git/merge.c:63:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&trees, 0, sizeof(trees));
        ^~~~~~
/datasets/git/merge.c:64:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&t, 0, sizeof(t));
        ^~~~~~
/datasets/git/merge.c:64:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&t, 0, sizeof(t));
        ^~~~~~
/datasets/git/merge.c:76:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr_trees; i++) {
        ^
/datasets/git/merge.c:81:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&opts, 0, sizeof(opts));
        ^~~~~~
/datasets/git/merge.c:81:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&opts, 0, sizeof(opts));
        ^~~~~~
/datasets/git/merge.c:101:47: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (write_locked_index(r->index, &lock_file, COMMIT_LOCK))
                                                     ^
/datasets/git/./refs/../cache.h:744:23: note: expanded from macro 'COMMIT_LOCK'
#define COMMIT_LOCK             (1 << 0)
                                 ^
/datasets/git/merge.c:101:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_locked_index(r->index, &lock_file, COMMIT_LOCK))
                                                                  ^
                                                                   {
/datasets/git/midx.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "chunk-format.h"
/datasets/git/midx.c:21:1: warning: replace macro with enum [modernize-macro-to-enum]
#define MIDX_SIGNATURE 0x4d494458 /* "MIDX" */
^~~~~~~~
                       =         ,
/datasets/git/midx.c:21:9: warning: macro 'MIDX_SIGNATURE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define MIDX_SIGNATURE 0x4d494458 /* "MIDX" */
        ^
/datasets/git/midx.c:22:9: warning: macro 'MIDX_VERSION' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define MIDX_VERSION 1
        ^
/datasets/git/midx.c:23:9: warning: macro 'MIDX_BYTE_FILE_VERSION' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define MIDX_BYTE_FILE_VERSION 4
        ^
/datasets/git/midx.c:24:9: warning: macro 'MIDX_BYTE_HASH_VERSION' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define MIDX_BYTE_HASH_VERSION 5
        ^
/datasets/git/midx.c:25:9: warning: macro 'MIDX_BYTE_NUM_CHUNKS' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define MIDX_BYTE_NUM_CHUNKS 6
        ^
/datasets/git/midx.c:26:9: warning: macro 'MIDX_BYTE_NUM_PACKS' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define MIDX_BYTE_NUM_PACKS 8
        ^
/datasets/git/midx.c:27:9: warning: macro 'MIDX_HEADER_SIZE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define MIDX_HEADER_SIZE 12
        ^
/datasets/git/midx.c:30:1: warning: replace macro with enum [modernize-macro-to-enum]
#define MIDX_CHUNK_ALIGNMENT 4
^~~~~~~~
                             =,
/datasets/git/midx.c:30:9: warning: macro 'MIDX_CHUNK_ALIGNMENT' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define MIDX_CHUNK_ALIGNMENT 4
        ^
/datasets/git/midx.c:31:9: warning: macro 'MIDX_CHUNKID_PACKNAMES' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define MIDX_CHUNKID_PACKNAMES 0x504e414d /* "PNAM" */
        ^
/datasets/git/midx.c:32:9: warning: macro 'MIDX_CHUNKID_OIDFANOUT' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define MIDX_CHUNKID_OIDFANOUT 0x4f494446 /* "OIDF" */
        ^
/datasets/git/midx.c:33:9: warning: macro 'MIDX_CHUNKID_OIDLOOKUP' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define MIDX_CHUNKID_OIDLOOKUP 0x4f49444c /* "OIDL" */
        ^
/datasets/git/midx.c:34:9: warning: macro 'MIDX_CHUNKID_OBJECTOFFSETS' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define MIDX_CHUNKID_OBJECTOFFSETS 0x4f4f4646 /* "OOFF" */
        ^
/datasets/git/midx.c:35:9: warning: macro 'MIDX_CHUNKID_LARGEOFFSETS' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define MIDX_CHUNKID_LARGEOFFSETS 0x4c4f4646 /* "LOFF" */
        ^
/datasets/git/midx.c:36:9: warning: macro 'MIDX_CHUNKID_REVINDEX' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define MIDX_CHUNKID_REVINDEX 0x52494458 /* "RIDX" */
        ^
/datasets/git/midx.c:40:1: warning: replace macro with enum [modernize-macro-to-enum]
#define MIDX_LARGE_OFFSET_NEEDED 0x80000000
^~~~~~~~
                                 =
/datasets/git/midx.c:40:9: warning: macro 'MIDX_LARGE_OFFSET_NEEDED' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define MIDX_LARGE_OFFSET_NEEDED 0x80000000
        ^
/datasets/git/midx.c:44:65: warning: parameter name 'm' is too short, expected at least 3 characters [readability-identifier-length]
const unsigned char *get_midx_checksum(struct multi_pack_index *m)
                                                                ^
/datasets/git/midx.c:54:73: warning: parameter name 'm' is too short, expected at least 3 characters [readability-identifier-length]
void get_midx_rev_filename(struct strbuf *out, struct multi_pack_index *m)
                                                                        ^
/datasets/git/midx.c:63:27: warning: variable name 'm' is too short, expected at least 3 characters [readability-identifier-length]
        struct multi_pack_index *m = data;
                                 ^
/datasets/git/midx.c:66:20: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        if (chunk_size != 4 * 256) {
                          ^
/datasets/git/midx.c:66:20: note: make conversion explicit to silence this warning
        if (chunk_size != 4 * 256) {
                          ^~~~~~~
                          (unsigned long)( )
/datasets/git/midx.c:66:20: note: perform multiplication in a wider type
        if (chunk_size != 4 * 256) {
                          ^
                          (long)
/datasets/git/midx.c:66:24: warning: 256 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (chunk_size != 4 * 256) {
                              ^
/datasets/git/midx.c:75:27: warning: variable name 'm' is too short, expected at least 3 characters [readability-identifier-length]
        struct multi_pack_index *m = NULL;
                                 ^
/datasets/git/midx.c:76:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/midx.c:76:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/midx.c:77:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/midx.c:78:9: warning: variable 'midx_size' is not initialized [cppcoreguidelines-init-variables]
        size_t midx_size;
               ^
                         = 0
/datasets/git/midx.c:80:11: warning: variable 'hash_version' is not initialized [cppcoreguidelines-init-variables]
        uint32_t hash_version;
                 ^
                              = 0
/datasets/git/midx.c:82:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i;
                 ^
                   = 0
/datasets/git/midx.c:82:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/midx.c:83:14: warning: variable 'cur_pack_name' is not initialized [cppcoreguidelines-init-variables]
        const char *cur_pack_name;
                    ^
                                  = NULL
/datasets/git/midx.c:84:20: warning: variable name 'cf' is too short, expected at least 3 characters [readability-identifier-length]
        struct chunkfile *cf = NULL;
                          ^
/datasets/git/midx.c:90:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fd < 0)
                   ^
                    {
/datasets/git/midx.c:109:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FLEX_ALLOC_STR(m, object_dir, object_dir);
        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^
/datasets/git/./git-compat-util.h:1151:47: note: expanded from macro 'FLEX_ALLOC_MEM'
#define FLEX_ALLOC_MEM(x, flexname, buf, len) do { \
                                              ^
/datasets/git/midx.c:109:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        FLEX_ALLOC_STR(m, object_dir, object_dir);
        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/midx.c:109:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        FLEX_ALLOC_STR(m, object_dir, object_dir);
        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/midx.c:115:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (m->signature != MIDX_SIGNATURE)
                                           ^
                                            {
/datasets/git/midx.c:120:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (m->version != MIDX_VERSION)
                                       ^
                                        {
/datasets/git/midx.c:139:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                   MIDX_HEADER_SIZE, m->num_chunks))
                                                                    ^
                                                                     {
/datasets/git/midx.c:142:86: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pair_chunk(cf, MIDX_CHUNKID_PACKNAMES, &m->chunk_pack_names) == CHUNK_NOT_FOUND)
                                                                                            ^
                                                                                             {
/datasets/git/midx.c:144:89: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (read_chunk(cf, MIDX_CHUNKID_OIDFANOUT, midx_read_oid_fanout, m) == CHUNK_NOT_FOUND)
                                                                                               ^
                                                                                                {
/datasets/git/midx.c:146:86: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pair_chunk(cf, MIDX_CHUNKID_OIDLOOKUP, &m->chunk_oid_lookup) == CHUNK_NOT_FOUND)
                                                                                            ^
                                                                                             {
/datasets/git/midx.c:148:94: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pair_chunk(cf, MIDX_CHUNKID_OBJECTOFFSETS, &m->chunk_object_offsets) == CHUNK_NOT_FOUND)
                                                                                                    ^
                                                                                                     {
/datasets/git/midx.c:153:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (git_env_bool("GIT_TEST_MIDX_READ_RIDX", 1))
                                                       ^
                                                        {
/datasets/git/midx.c:159:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        CALLOC_ARRAY(m->packs, m->num_packs);
        ^
/datasets/git/./git-compat-util.h:1091:55: note: expanded from macro 'CALLOC_ARRAY'
#define CALLOC_ARRAY(x, alloc) (x) = xcalloc((alloc), sizeof(*(x)))
                                                      ^
/datasets/git/midx.c:162:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < m->num_packs; i++) {
        ^
/datasets/git/midx.c:162:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'num_packs' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < m->num_packs; i++) {
                    ^
/datasets/git/midx.c:167:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (i && strcmp(m->pack_names[i], m->pack_names[i - 1]) <= 0)
                                                                             ^
                                                                              {
/datasets/git/midx.c:183:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (midx_map)
                     ^
                      {
/datasets/git/midx.c:185:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (0 <= fd)
                    ^
                     {
/datasets/git/midx.c:190:6: warning: function 'close_midx' is within a recursive call chain [misc-no-recursion]
void close_midx(struct multi_pack_index *m)
     ^
/datasets/git/midx.c:190:6: note: example recursive call chain, starting from function 'close_midx'
/datasets/git/midx.c:197:2: note: Frame #1: function 'close_midx' calls function 'close_midx' here:
        close_midx(m->next);
        ^
/datasets/git/midx.c:197:2: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/midx.c:190:42: warning: parameter name 'm' is too short, expected at least 3 characters [readability-identifier-length]
void close_midx(struct multi_pack_index *m)
                                         ^
/datasets/git/midx.c:192:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i;
                 ^
                   = 0
/datasets/git/midx.c:192:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/midx.c:194:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!m)
               ^
                {
/datasets/git/midx.c:201:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < m->num_packs; i++) {
        ^
/datasets/git/midx.c:201:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'num_packs' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < m->num_packs; i++) {
                    ^
/datasets/git/midx.c:202:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (m->packs[i])
                                ^
                                 {
/datasets/git/midx.c:205:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(m->packs);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/midx.c:206:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(m->pack_names);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/midx.c:210:42: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int prepare_midx_pack(struct repository *r, struct multi_pack_index *m, uint32_t pack_int_id)
                                         ^
/datasets/git/midx.c:210:70: warning: parameter name 'm' is too short, expected at least 3 characters [readability-identifier-length]
int prepare_midx_pack(struct repository *r, struct multi_pack_index *m, uint32_t pack_int_id)
                                                                     ^
/datasets/git/midx.c:213:21: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct packed_git *p;
                           ^
                             = NULL
/datasets/git/midx.c:213:21: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/midx.c:215:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pack_int_id >= m->num_packs)
                                        ^
                                         {
/datasets/git/midx.c:219:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (m->packs[pack_int_id])
                                  ^
                                   {
/datasets/git/midx.c:228:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!p)
               ^
                {
/datasets/git/midx.c:239:72: warning: parameter name 'm' is too short, expected at least 3 characters [readability-identifier-length]
int bsearch_midx(const struct object_id *oid, struct multi_pack_index *m, uint32_t *result)
                                                                       ^
/datasets/git/midx.c:246:31: warning: parameter name 'm' is too short, expected at least 3 characters [readability-identifier-length]
                                        struct multi_pack_index *m,
                                                                 ^
/datasets/git/midx.c:249:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (n >= m->num_objects)
                                ^
                                 {
/datasets/git/midx.c:252:15: warning: result of multiplication in type 'unsigned int' is used as a pointer offset after an implicit widening conversion to type 'size_t' [bugprone-implicit-widening-of-multiplication-result]
        oidread(oid, m->chunk_oid_lookup + m->hash_len * n);
                     ^
/datasets/git/midx.c:252:37: note: make conversion explicit to silence this warning
        oidread(oid, m->chunk_oid_lookup + m->hash_len * n);
                                           ^~~~~~~~~~~~~~~
                                           (size_t)(     )
/datasets/git/midx.c:252:37: note: perform multiplication in a wider type
        oidread(oid, m->chunk_oid_lookup + m->hash_len * n);
                                           ^~~~~~~~~~~
                                           (size_t)
/datasets/git/midx.c:256:50: warning: parameter name 'm' is too short, expected at least 3 characters [readability-identifier-length]
off_t nth_midxed_offset(struct multi_pack_index *m, uint32_t pos)
                                                 ^
/datasets/git/midx.c:258:23: warning: variable 'offset_data' is not initialized [cppcoreguidelines-init-variables]
        const unsigned char *offset_data;
                             ^
                                         = NULL
/datasets/git/midx.c:259:11: warning: variable 'offset32' is not initialized [cppcoreguidelines-init-variables]
        uint32_t offset32;
                 ^
                          = 0
/datasets/git/midx.c:265:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (sizeof(off_t) < sizeof(uint64_t))
                                                     ^
                                                      {
/datasets/git/midx.c:269:10: warning: narrowing conversion from 'uint64_t' (aka 'unsigned long') to signed type 'off_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                return get_be64(m->chunk_large_offsets + sizeof(uint64_t) * offset32);
                       ^
/datasets/git/midx.c:275:58: warning: parameter name 'm' is too short, expected at least 3 characters [readability-identifier-length]
uint32_t nth_midxed_pack_int_id(struct multi_pack_index *m, uint32_t pos)
                                                         ^
/datasets/git/midx.c:281:40: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int fill_midx_entry(struct repository *r,
                                       ^
/datasets/git/midx.c:283:26: warning: parameter name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                    struct pack_entry *e,
                                       ^
/datasets/git/midx.c:284:32: warning: parameter name 'm' is too short, expected at least 3 characters [readability-identifier-length]
                    struct multi_pack_index *m)
                                             ^
/datasets/git/midx.c:286:11: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        uint32_t pos;
                 ^
                     = 0
/datasets/git/midx.c:287:11: warning: variable 'pack_int_id' is not initialized [cppcoreguidelines-init-variables]
        uint32_t pack_int_id;
                 ^
                             = 0
/datasets/git/midx.c:288:21: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct packed_git *p;
                           ^
                             = NULL
/datasets/git/midx.c:288:21: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/midx.c:290:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!bsearch_midx(oid, m, &pos))
                                        ^
                                         {
/datasets/git/midx.c:293:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pos >= m->num_objects)
                                  ^
                                   {
/datasets/git/midx.c:298:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prepare_midx_pack(r, m, pack_int_id))
                                                 ^
                                                  {
/datasets/git/midx.c:309:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_pack_valid(p))
                              ^
                               {
/datasets/git/midx.c:313:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            oidset_contains(&p->bad_objects, oid))
                                                  ^
                                                   {
/datasets/git/midx.c:327:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*idx_name && *idx_name == *idx_or_pack_name) {
        ^
/datasets/git/midx.c:342:68: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(idx_name, "idx") && !strcmp(idx_or_pack_name, "pack"))
                                                                          ^
                                                                           {
/datasets/git/midx.c:354:49: warning: parameter name 'm' is too short, expected at least 3 characters [readability-identifier-length]
int midx_contains_pack(struct multi_pack_index *m, const char *idx_or_pack_name)
                                                ^
/datasets/git/midx.c:356:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        uint32_t first = 0, last = m->num_packs;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/midx.c:356:2: note: inferred assignment of ID-dependent value from ID-dependent variable mid [altera-id-dependent-backward-branch]
/datasets/git/midx.c:358:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (first < last) {
        ^
/datasets/git/midx.c:358:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'first' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (first < last) {
               ^
/datasets/git/midx.c:360:15: warning: variable 'current' is not initialized [cppcoreguidelines-init-variables]
                const char *current;
                            ^
                                    = NULL
/datasets/git/midx.c:361:7: warning: variable 'cmp' is not initialized [cppcoreguidelines-init-variables]
                int cmp;
                    ^
                        = 0
/datasets/git/midx.c:365:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!cmp)
                         ^
                          {
/datasets/git/midx.c:377:53: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int prepare_multi_pack_index_one(struct repository *r, const char *object_dir, int local)
                                                    ^
/datasets/git/midx.c:379:27: warning: variable 'm' is not initialized [cppcoreguidelines-init-variables]
        struct multi_pack_index *m;
                                 ^
                                   = NULL
/datasets/git/midx.c:379:27: warning: variable name 'm' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/midx.c:380:27: warning: variable 'm_search' is not initialized [cppcoreguidelines-init-variables]
        struct multi_pack_index *m_search;
                                 ^
                                          = NULL
/datasets/git/midx.c:383:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!r->settings.core_multi_pack_index)
                                               ^
                                                {
/datasets/git/midx.c:386:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (m_search = r->objects->multi_pack_index; m_search; m_search = m_search->next)
        ^
/datasets/git/midx.c:386:48: warning: backward branch (for loop) is ID-dependent due to variable reference to 'm_search' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (m_search = r->objects->multi_pack_index; m_search; m_search = m_search->next)
                                                      ^
/datasets/git/midx.c:386:84: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (m_search = r->objects->multi_pack_index; m_search; m_search = m_search->next)
                                                                                          ^
                                                                                           {
/datasets/git/midx.c:387:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(object_dir, m_search->object_dir))
                                                              ^
                                                               {
/datasets/git/midx.c:393:28: warning: variable name 'mp' is too short, expected at least 3 characters [readability-identifier-length]
                struct multi_pack_index *mp = r->objects->multi_pack_index;
                                         ^
/datasets/git/midx.c:397:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/midx.c:405:50: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
static size_t write_midx_header(struct hashfile *f,
                                                 ^
/datasets/git/midx.c:406:5: warning: 2 adjacent parameters of 'write_midx_header' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                unsigned char num_chunks,
                                ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/midx.c:406:19: note: the first parameter in the range is 'num_chunks'
                                unsigned char num_chunks,
                                              ^~~~~~~~~~
/datasets/git/midx.c:407:14: note: the last parameter in the range is 'num_packs'
                                uint32_t num_packs)
                                         ^~~~~~~~~
/datasets/git/midx.c:406:5: note: 
                                unsigned char num_chunks,
                                ^
/datasets/git/midx.c:407:5: note: 'unsigned char' and 'uint32_t' may be implicitly converted: 'unsigned char' -> 'uint32_t' (as 'unsigned int'), 'uint32_t' (as 'unsigned int') -> 'unsigned char'
                                uint32_t num_packs)
                                ^
/datasets/git/midx.c:419:8: warning: accessing fields in struct 'pack_info' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct pack_info {
       ^
/datasets/git/midx.c:419:8: note: use "__attribute__((aligned(32)))" to align struct 'pack_info' to 32 bytes
/datasets/git/midx.c:426:42: warning: parameter name '_a' is too short, expected at least 3 characters [readability-identifier-length]
static int pack_info_compare(const void *_a, const void *_b)
                                         ^
/datasets/git/midx.c:426:58: warning: parameter name '_b' is too short, expected at least 3 characters [readability-identifier-length]
static int pack_info_compare(const void *_a, const void *_b)
                                                         ^
/datasets/git/midx.c:428:20: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        struct pack_info *a = (struct pack_info *)_a;
                          ^
/datasets/git/midx.c:429:20: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        struct pack_info *b = (struct pack_info *)_b;
                          ^
/datasets/git/midx.c:441:8: warning: accessing fields in struct 'write_midx_context' is inefficient due to padding; only needs 84 bytes but is using 96 bytes [altera-struct-pack-align]
struct write_midx_context {
       ^
/datasets/git/midx.c:441:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'write_midx_context'
/datasets/git/midx.c:441:8: warning: accessing fields in struct 'write_midx_context' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct write_midx_context {
       ^
/datasets/git/midx.c:441:8: note: use "__attribute__((aligned(128)))" to align struct 'write_midx_context' to 128 bytes
/datasets/git/midx.c:484:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ctx->m && midx_contains_pack(ctx->m, file_name))
                                                                    ^
                                                                     {
/datasets/git/midx.c:485:4: warning: repeated branch in conditional chain [bugprone-branch-clone]
                        return;
                        ^
/datasets/git/midx.c:485:10: note: end of the original
                        return;
                              ^
/datasets/git/midx.c:488:4: note: clone 1 starts here
                        return;
                        ^
/datasets/git/midx.c:486:3: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                else if (ctx->to_include &&
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/midx.c:487:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                         !string_list_has_string(ctx->to_include, file_name))
                                                                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/midx.c:490:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                ALLOC_GROW(ctx->info, ctx->nr + 1, ctx->alloc);
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/midx.c:506:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        FREE_AND_NULL(ctx->info[ctx->nr].p);
                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/midx.c:517:8: warning: accessing fields in struct 'pack_midx_entry' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct pack_midx_entry {
       ^
/datasets/git/midx.c:517:8: note: use "__attribute__((aligned(64)))" to align struct 'pack_midx_entry' to 64 bytes
/datasets/git/midx.c:525:41: warning: parameter name '_a' is too short, expected at least 3 characters [readability-identifier-length]
static int midx_oid_compare(const void *_a, const void *_b)
                                        ^
/datasets/git/midx.c:525:57: warning: parameter name '_b' is too short, expected at least 3 characters [readability-identifier-length]
static int midx_oid_compare(const void *_a, const void *_b)
                                                        ^
/datasets/git/midx.c:527:32: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        const struct pack_midx_entry *a = (const struct pack_midx_entry *)_a;
                                      ^
/datasets/git/midx.c:528:32: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        const struct pack_midx_entry *b = (const struct pack_midx_entry *)_b;
                                      ^
/datasets/git/midx.c:531:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cmp)
                ^
                 {
/datasets/git/midx.c:535:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (a->preferred > b->preferred)
                                        ^
                                         {
/datasets/git/midx.c:537:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (a->preferred < b->preferred)
                                        ^
                                         {
/datasets/git/midx.c:540:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (a->pack_mtime > b->pack_mtime)
                                          ^
                                           {
/datasets/git/midx.c:542:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (a->pack_mtime < b->pack_mtime)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/midx.c:542:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (a->pack_mtime < b->pack_mtime)
                                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/midx.c:545:9: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return a->pack_int_id - b->pack_int_id;
               ^
/datasets/git/midx.c:548:64: warning: parameter name 'm' is too short, expected at least 3 characters [readability-identifier-length]
static int nth_midxed_pack_midx_entry(struct multi_pack_index *m,
                                                               ^
/datasets/git/midx.c:549:35: warning: parameter name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                                      struct pack_midx_entry *e,
                                                              ^
/datasets/git/midx.c:552:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pos >= m->num_objects)
                                  ^
                                   {
/datasets/git/midx.c:565:27: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                            struct packed_git *p,
                                               ^
/datasets/git/midx.c:570:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (nth_packed_object_id(&entry->oid, p, cur_object) < 0)
                                                                 ^
                                                                  {
/datasets/git/midx.c:580:8: warning: accessing fields in struct 'midx_fanout' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct midx_fanout {
       ^
/datasets/git/midx.c:580:8: note: use "__attribute__((aligned(16)))" to align struct 'midx_fanout' to 16 bytes
/datasets/git/midx.c:586:67: warning: parameter name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
static void midx_fanout_grow(struct midx_fanout *fanout, uint32_t nr)
                                                                  ^
/datasets/git/midx.c:588:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(fanout->entries, nr, fanout->alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/midx.c:597:31: warning: parameter name 'm' is too short, expected at least 3 characters [readability-identifier-length]
                                        struct multi_pack_index *m,
                                                                 ^
/datasets/git/midx.c:598:6: warning: 2 adjacent parameters of 'midx_fanout_add_midx_fanout' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                        uint32_t cur_fanout,
                                        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/midx.c:598:15: note: the first parameter in the range is 'cur_fanout'
                                        uint32_t cur_fanout,
                                                 ^~~~~~~~~~
/datasets/git/midx.c:599:10: note: the last parameter in the range is 'preferred_pack'
                                        int preferred_pack)
                                            ^~~~~~~~~~~~~~
/datasets/git/midx.c:598:6: note: 
                                        uint32_t cur_fanout,
                                        ^
/datasets/git/midx.c:599:6: note: 'uint32_t' and 'int' may be implicitly converted: 'uint32_t' (as 'unsigned int') -> 'int', 'int' -> 'uint32_t' (as 'unsigned int')
                                        int preferred_pack)
                                        ^
/datasets/git/midx.c:601:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        uint32_t start = 0, end;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/midx.c:601:22: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
        uint32_t start = 0, end;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/midx.c:602:11: warning: variable 'cur_object' is not initialized [cppcoreguidelines-init-variables]
        uint32_t cur_object;
                 ^
                            = 0
/datasets/git/midx.c:604:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cur_fanout)
                       ^
                        {
/datasets/git/midx.c:608:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cur_object = start; cur_object < end; cur_object++) {
        ^
/datasets/git/midx.c:608:27: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cur_object' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (cur_object = start; cur_object < end; cur_object++) {
                                 ^
/datasets/git/midx.c:630:6: warning: 2 adjacent parameters of 'midx_fanout_add_pack_fanout' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                        int preferred,
                                        ^~~~~~~~~~~~~~
/datasets/git/midx.c:630:10: note: the first parameter in the range is 'preferred'
                                        int preferred,
                                            ^~~~~~~~~
/datasets/git/midx.c:631:15: note: the last parameter in the range is 'cur_fanout'
                                        uint32_t cur_fanout)
                                                 ^~~~~~~~~~
/datasets/git/midx.c:630:6: note: 
                                        int preferred,
                                        ^
/datasets/git/midx.c:631:6: note: 'int' and 'uint32_t' may be implicitly converted: 'int' -> 'uint32_t' (as 'unsigned int'), 'uint32_t' (as 'unsigned int') -> 'int'
                                        uint32_t cur_fanout)
                                        ^
/datasets/git/midx.c:634:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        uint32_t start = 0, end;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/midx.c:634:22: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
        uint32_t start = 0, end;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/midx.c:635:11: warning: variable 'cur_object' is not initialized [cppcoreguidelines-init-variables]
        uint32_t cur_object;
                 ^
                            = 0
/datasets/git/midx.c:637:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cur_fanout)
                       ^
                        {
/datasets/git/midx.c:641:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cur_object = start; cur_object < end; cur_object++) {
        ^
/datasets/git/midx.c:641:27: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cur_object' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (cur_object = start; cur_object < end; cur_object++) {
                                 ^
/datasets/git/midx.c:663:32: warning: function 'get_sorted_entries' has cognitive complexity of 30 (threshold 25) [readability-function-cognitive-complexity]
static struct pack_midx_entry *get_sorted_entries(struct multi_pack_index *m,
                               ^
/datasets/git/midx.c:673:26: note: +1, including nesting penalty of 0, nesting level increased to 1
        uint32_t start_pack = m ? m->num_packs : 0;
                                ^
/datasets/git/midx.c:675:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (cur_pack = start_pack; cur_pack < nr_packs; cur_pack++)
        ^
/datasets/git/midx.c:683:54: note: +1, including nesting penalty of 0, nesting level increased to 1
        alloc_objects = fanout.alloc = total_objects > 3200 ? total_objects / 200 : 16;
                                                            ^
/datasets/git/midx.c:689:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (cur_fanout = 0; cur_fanout < 256; cur_fanout++) {
        ^
/datasets/git/midx.c:692:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (m)
                ^
/datasets/git/midx.c:696:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (cur_pack = start_pack; cur_pack < nr_packs; cur_pack++) {
                ^
/datasets/git/midx.c:703:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (-1 < preferred_pack && preferred_pack < start_pack)
                ^
/datasets/git/midx.c:703:27: note: +1
                if (-1 < preferred_pack && preferred_pack < start_pack)
                                        ^
/datasets/git/midx.c:714:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (cur_object = 0; cur_object < fanout.nr; cur_object++) {
                ^
/datasets/git/midx.c:715:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (cur_object && oideq(&fanout.entries[cur_object - 1].oid,
                        ^
/datasets/git/midx.c:715:19: note: +1
                        if (cur_object && oideq(&fanout.entries[cur_object - 1].oid,
                                       ^
/datasets/git/midx.c:719:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        ALLOC_GROW(deduplicated_entries, *nr_objects + 1, alloc_objects);
                        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/midx.c:719:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        ALLOC_GROW(deduplicated_entries, *nr_objects + 1, alloc_objects);
                        ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/midx.c:719:4: note: +5, including nesting penalty of 4, nesting level increased to 5
                        ALLOC_GROW(deduplicated_entries, *nr_objects + 1, alloc_objects);
                        ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/midx.c:719:4: note: +1, nesting level increased to 5
                        ALLOC_GROW(deduplicated_entries, *nr_objects + 1, alloc_objects);
                        ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/midx.c:663:76: warning: parameter name 'm' is too short, expected at least 3 characters [readability-identifier-length]
static struct pack_midx_entry *get_sorted_entries(struct multi_pack_index *m,
                                                                           ^
/datasets/git/midx.c:669:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        uint32_t cur_fanout, cur_pack, cur_object;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/midx.c:669:11: warning: variable 'cur_fanout' is not initialized [cppcoreguidelines-init-variables]
        uint32_t cur_fanout, cur_pack, cur_object;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/midx.c:669:23: warning: variable 'cur_pack' is not initialized [cppcoreguidelines-init-variables]
        uint32_t cur_fanout, cur_pack, cur_object;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/midx.c:669:33: warning: variable 'cur_object' is not initialized [cppcoreguidelines-init-variables]
        uint32_t cur_fanout, cur_pack, cur_object;
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/midx.c:670:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        uint32_t alloc_objects, total_objects = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/midx.c:670:11: warning: variable 'alloc_objects' is not initialized [cppcoreguidelines-init-variables]
        uint32_t alloc_objects, total_objects = 0;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/midx.c:675:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cur_pack = start_pack; cur_pack < nr_packs; cur_pack++)
        ^
/datasets/git/midx.c:675:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cur_pack' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (cur_pack = start_pack; cur_pack < nr_packs; cur_pack++)
                                    ^
/datasets/git/midx.c:675:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (cur_pack = start_pack; cur_pack < nr_packs; cur_pack++)
                                                                    ^
                                                                     {
/datasets/git/midx.c:683:49: warning: 3200 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        alloc_objects = fanout.alloc = total_objects > 3200 ? total_objects / 200 : 16;
                                                       ^
/datasets/git/midx.c:683:72: warning: 200 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        alloc_objects = fanout.alloc = total_objects > 3200 ? total_objects / 200 : 16;
                                                                              ^
/datasets/git/midx.c:683:78: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        alloc_objects = fanout.alloc = total_objects > 3200 ? total_objects / 200 : 16;
                                                                                    ^
/datasets/git/midx.c:689:36: warning: 256 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        for (cur_fanout = 0; cur_fanout < 256; cur_fanout++) {
                                          ^
/datasets/git/midx.c:692:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (m)
                      ^
                       {
/datasets/git/midx.c:696:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (cur_pack = start_pack; cur_pack < nr_packs; cur_pack++) {
                ^
/datasets/git/midx.c:696:31: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cur_pack' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (cur_pack = start_pack; cur_pack < nr_packs; cur_pack++) {
                                            ^
/datasets/git/midx.c:703:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (-1 < preferred_pack && preferred_pack < start_pack)
                                                                       ^
                                                                        {
/datasets/git/midx.c:716:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                &fanout.entries[cur_object].oid))
                                                                                 ^
                                                                                  {
/datasets/git/midx.c:719:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        ALLOC_GROW(deduplicated_entries, *nr_objects + 1, alloc_objects);
                        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/midx.c:720:4: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memcpy(&deduplicated_entries[*nr_objects],
                        ^~~~~~
/datasets/git/midx.c:720:4: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                        memcpy(&deduplicated_entries[*nr_objects],
                        ^~~~~~
/datasets/git/midx.c:731:51: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
static int write_midx_pack_names(struct hashfile *f, void *data)
                                                  ^
/datasets/git/midx.c:734:2: note: inferred assignment of ID-dependent value from ID-dependent variable written [altera-id-dependent-backward-branch]
        uint32_t i;
        ^
/datasets/git/midx.c:734:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i;
                 ^
                   = 0
/datasets/git/midx.c:734:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/midx.c:738:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ctx->nr; i++) {
        ^
/datasets/git/midx.c:738:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < ctx->nr; i++) {
                    ^
/datasets/git/midx.c:739:10: warning: variable 'writelen' is not initialized [cppcoreguidelines-init-variables]
                size_t writelen;
                       ^
                                = 0
/datasets/git/midx.c:741:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ctx->info[i].expired)
                                         ^
                                          {
/datasets/git/midx.c:744:76: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (i && strcmp(ctx->info[i].pack_name, ctx->info[i - 1].pack_name) <= 0)
                                                                                         ^
                                                                                          {
/datasets/git/midx.c:757:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(padding, 0, sizeof(padding));
                ^~~~~~
/datasets/git/midx.c:757:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(padding, 0, sizeof(padding));
                ^~~~~~
/datasets/git/midx.c:764:51: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
static int write_midx_oid_fanout(struct hashfile *f,
                                                  ^
/datasets/git/midx.c:771:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i;
                 ^
                   = 0
/datasets/git/midx.c:771:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/midx.c:778:18: warning: 256 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        for (i = 0; i < 256; i++) {
                        ^
/datasets/git/midx.c:781:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (next < last && next->oid.hash[0] == i) {
                ^
/datasets/git/midx.c:781:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'next' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (next < last && next->oid.hash[0] == i) {
                       ^
/datasets/git/midx.c:793:51: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
static int write_midx_oid_lookup(struct hashfile *f,
                                                  ^
/datasets/git/midx.c:796:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct write_midx_context *ctx = data;
        ^
/datasets/git/midx.c:799:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i;
                 ^
                   = 0
/datasets/git/midx.c:799:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/midx.c:801:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ctx->entries_nr; i++) {
        ^
/datasets/git/midx.c:801:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ctx' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < ctx->entries_nr; i++) {
                    ^
/datasets/git/midx.c:806:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (oidcmp(&obj->oid, &next->oid) >= 0)
                                                               ^
                                                                {
/datasets/git/midx.c:818:55: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
static int write_midx_object_offsets(struct hashfile *f,
                                                      ^
/datasets/git/midx.c:823:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        uint32_t i, nr_large_offset = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/midx.c:821:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct write_midx_context *ctx = data;
        ^
/datasets/git/midx.c:823:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i, nr_large_offset = 0;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/midx.c:823:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/midx.c:825:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ctx->entries_nr; i++) {
        ^
/datasets/git/midx.c:825:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ctx' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < ctx->entries_nr; i++) {
                    ^
/datasets/git/midx.c:828:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ctx->pack_perm[obj->pack_int_id] == PACK_EXPIRED)
                                                                     ^
                                                                      {
/datasets/git/midx.c:835:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ctx->large_offsets_needed && obj->offset >> 31)
                                                 ^              ~~
/datasets/git/midx.c:835:51: warning: 31 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (ctx->large_offsets_needed && obj->offset >> 31)
                                                                ^
/datasets/git/midx.c:835:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ctx->large_offsets_needed && obj->offset >> 31)
                                                                   ^
                                                                    {
/datasets/git/midx.c:837:42: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                else if (!ctx->large_offsets_needed && obj->offset >> 32)
                                                       ^              ~~
/datasets/git/midx.c:837:57: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                else if (!ctx->large_offsets_needed && obj->offset >> 32)
                                                                      ^
/datasets/git/midx.c:837:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!ctx->large_offsets_needed && obj->offset >> 32)
                                                                         ^
                                                                          {
/datasets/git/midx.c:841:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/midx.c:848:54: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
static int write_midx_large_offsets(struct hashfile *f,
                                                     ^
/datasets/git/midx.c:854:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        uint32_t nr_large_offset = ctx->num_large_offsets;
        ^
/datasets/git/midx.c:856:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (nr_large_offset) {
        ^
/datasets/git/midx.c:856:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'nr_large_offset' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (nr_large_offset) {
               ^
/datasets/git/midx.c:857:27: warning: variable 'obj' is not initialized [cppcoreguidelines-init-variables]
                struct pack_midx_entry *obj;
                                        ^
                                            = NULL
/datasets/git/midx.c:858:12: warning: variable 'offset' is not initialized [cppcoreguidelines-init-variables]
                uint64_t offset;
                         ^
                                = 0
/datasets/git/midx.c:860:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (list >= end)
                                ^
                                 {
/datasets/git/midx.c:866:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(offset >> 31))
                      ^         ~~
/datasets/git/midx.c:866:19: warning: 31 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (!(offset >> 31))
                                ^
/datasets/git/midx.c:866:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(offset >> 31))
                                    ^
                                     {
/datasets/git/midx.c:877:49: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
static int write_midx_revindex(struct hashfile *f,
                                                ^
/datasets/git/midx.c:881:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i;
                 ^
                   = 0
/datasets/git/midx.c:881:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/midx.c:883:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ctx->entries_nr; i++)
        ^
/datasets/git/midx.c:883:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ctx' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < ctx->entries_nr; i++)
                    ^
/datasets/git/midx.c:883:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < ctx->entries_nr; i++)
                                             ^
                                              {
/datasets/git/midx.c:889:8: warning: accessing fields in struct 'midx_pack_order_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct midx_pack_order_data {
       ^
/datasets/git/midx.c:889:8: note: use "__attribute__((aligned(16)))" to align struct 'midx_pack_order_data' to 16 bytes
/datasets/git/midx.c:895:44: warning: parameter name 'va' is too short, expected at least 3 characters [readability-identifier-length]
static int midx_pack_order_cmp(const void *va, const void *vb)
                                           ^
/datasets/git/midx.c:895:60: warning: parameter name 'vb' is too short, expected at least 3 characters [readability-identifier-length]
static int midx_pack_order_cmp(const void *va, const void *vb)
                                                           ^
/datasets/git/midx.c:897:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const struct midx_pack_order_data *a = va, *b = vb;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/midx.c:897:37: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        const struct midx_pack_order_data *a = va, *b = vb;
                                           ^
/datasets/git/midx.c:897:46: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        const struct midx_pack_order_data *a = va, *b = vb;
                                                    ^
/datasets/git/midx.c:898:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (a->pack < b->pack)
                              ^
                               {
/datasets/git/midx.c:899:3: warning: repeated branch in conditional chain [bugprone-branch-clone]
                return -1;
                ^
/datasets/git/midx.c:899:12: note: end of the original
                return -1;
                         ^
/datasets/git/midx.c:903:3: note: clone 1 starts here
                return -1;
                ^
/datasets/git/midx.c:900:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (a->pack > b->pack)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/midx.c:900:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (a->pack > b->pack)
                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/midx.c:901:3: warning: repeated branch in conditional chain [bugprone-branch-clone]
                return 1;
                ^
/datasets/git/midx.c:901:11: note: end of the original
                return 1;
                        ^
/datasets/git/midx.c:905:3: note: clone 1 starts here
                return 1;
                ^
/datasets/git/midx.c:902:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (a->offset < b->offset)
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/midx.c:904:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (a->offset > b->offset)
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/midx.c:906:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/midx.c:912:31: warning: variable 'data' is not initialized [cppcoreguidelines-init-variables]
        struct midx_pack_order_data *data;
                                     ^
                                          = NULL
/datasets/git/midx.c:913:12: warning: variable 'pack_order' is not initialized [cppcoreguidelines-init-variables]
        uint32_t *pack_order;
                  ^
                             = NULL
/datasets/git/midx.c:914:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i;
                 ^
                   = 0
/datasets/git/midx.c:914:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/midx.c:919:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ctx->entries_nr; i++) {
        ^
/datasets/git/midx.c:920:27: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                struct pack_midx_entry *e = &ctx->entries[i];
                                        ^
/datasets/git/midx.c:923:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!e->preferred)
                                  ^
                                   {
/datasets/git/midx.c:924:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        data[i].pack |= (1U << 31);
                                         ^     ~~
/datasets/git/midx.c:924:27: warning: 31 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        data[i].pack |= (1U << 31);
                                               ^
/datasets/git/midx.c:925:20: warning: narrowing conversion from 'uint64_t' (aka 'unsigned long') to signed type 'off_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                data[i].offset = e->offset;
                                 ^
/datasets/git/midx.c:931:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ctx->entries_nr; i++)
        ^
/datasets/git/midx.c:931:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < ctx->entries_nr; i++)
                                             ^
                                              {
/datasets/git/midx.c:944:14: warning: variable 'tmp_file' is not initialized [cppcoreguidelines-init-variables]
        const char *tmp_file;
                    ^
                             = NULL
/datasets/git/midx.c:953:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (finalize_object_file(tmp_file, buf.buf))
                                                    ^
                                                     {
/datasets/git/midx.c:964:57: warning: parameter name 'm' is too short, expected at least 3 characters [readability-identifier-length]
static int midx_checksum_valid(struct multi_pack_index *m)
                                                        ^
/datasets/git/midx.c:972:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i;
                 ^
                   = 0
/datasets/git/midx.c:972:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/midx.c:976:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(pdata, 0, sizeof(struct packing_data));
        ^~~~~~
/datasets/git/midx.c:976:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(pdata, 0, sizeof(struct packing_data));
        ^~~~~~
/datasets/git/midx.c:979:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ctx->entries_nr; i++) {
        ^
/datasets/git/midx.c:981:24: warning: variable name 'to' is too short, expected at least 3 characters [readability-identifier-length]
                struct object_entry *to = packlist_alloc(pdata, &from->oid);
                                     ^
/datasets/git/midx.c:996:17: warning: variable 'object' is not initialized [cppcoreguidelines-init-variables]
        struct object *object;
                       ^
                              = NULL
/datasets/git/midx.c:998:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((flag & REF_ISSYMREF) && (flag & REF_ISBROKEN)) {
             ^~~~
/datasets/git/midx.c:998:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((flag & REF_ISSYMREF) && (flag & REF_ISBROKEN)) {
                                      ^~~~
/datasets/git/midx.c:1003:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!peel_iterated_oid(oid, &peeled))
                                             ^
                                              {
/datasets/git/midx.c:1007:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (object->type != OBJ_COMMIT)
                                       ^
                                        {
/datasets/git/midx.c:1011:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (bitmap_is_preferred_refname(revs->repo, refname))
                                                             ^
                                                              {
/datasets/git/midx.c:1012:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                object->flags |= NEEDS_BITMAP;
                                 ^
/datasets/git/./pack-bitmap.h:24:23: note: expanded from macro 'NEEDS_BITMAP'
#define NEEDS_BITMAP (1u<<22)
                      ^   ~~
/datasets/git/midx.c:1016:8: warning: accessing fields in struct 'bitmap_commit_cb' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct bitmap_commit_cb {
       ^
/datasets/git/midx.c:1016:8: note: use "__attribute__((aligned(32)))" to align struct 'bitmap_commit_cb' to 32 bytes
/datasets/git/midx.c:1036:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pos < 0)
                    ^
                     {
/datasets/git/midx.c:1039:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(data->commits, data->commits_nr + 1, data->commits_alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/midx.c:1039:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_GROW(data->commits, data->commits_nr + 1, data->commits_alloc);
        ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/midx.c:1048:8: warning: variable name 'f' is too short, expected at least 3 characters [readability-identifier-length]
        FILE *f = xfopen(refs_snapshot, "r");
              ^
/datasets/git/midx.c:1050:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (strbuf_getline(&buf, f) != EOF) {
        ^
/datasets/git/midx.c:1050:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'buf' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (strbuf_getline(&buf, f) != EOF) {
               ^
/datasets/git/midx.c:1051:18: warning: variable 'object' is not initialized [cppcoreguidelines-init-variables]
                struct object *object;
                               ^
                                      = NULL
/datasets/git/midx.c:1061:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (parse_oid_hex(hex, &oid, &end) < 0)
                                                       ^
                                                        {
/datasets/git/midx.c:1063:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*end)
                         ^
                          {
/datasets/git/midx.c:1067:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (preferred)
                              ^
                               {
/datasets/git/midx.c:1068:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        object->flags |= NEEDS_BITMAP;
                                         ^
/datasets/git/./pack-bitmap.h:24:23: note: expanded from macro 'NEEDS_BITMAP'
#define NEEDS_BITMAP (1u<<22)
                      ^   ~~
/datasets/git/midx.c:1073:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(f);
        ^~~~~~~~~
/datasets/git/midx.c:1073:2: note: cast the expression to void to silence this warning
/datasets/git/midx.c:1046:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct strbuf buf = STRBUF_INIT;
        ^
/datasets/git/midx.c:1083:26: warning: variable name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
        struct bitmap_commit_cb cb = {0};
                                ^
/datasets/git/midx.c:1113:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prepare_revision_walk(&revs))
                                         ^
                                          {
/datasets/git/midx.c:1117:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (indexed_commits_nr_p)
                                 ^
                                  {
/datasets/git/midx.c:1133:19: warning: pointer parameter 'pack_order' can be pointer to const [readability-non-const-parameter]
                             uint32_t *pack_order,
                                       ^
                             const 
/datasets/git/midx.c:1136:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int ret, i;
        ^~~~~~~~~~~
/datasets/git/midx.c:1136:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret, i;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/midx.c:1136:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int ret, i;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/midx.c:1136:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/midx.c:1138:26: warning: variable 'index' is not initialized [cppcoreguidelines-init-variables]
        struct pack_idx_entry **index;
                                ^
                                      = NULL
/datasets/git/midx.c:1144:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & MIDX_WRITE_BITMAP_HASH_CACHE)
            ^
/datasets/git/midx.c:1144:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & MIDX_WRITE_BITMAP_HASH_CACHE)
                    ^
/datasets/git/./midx.h:49:39: note: expanded from macro 'MIDX_WRITE_BITMAP_HASH_CACHE'
#define MIDX_WRITE_BITMAP_HASH_CACHE (1 << 3)
                                      ^
/datasets/git/midx.c:1144:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & MIDX_WRITE_BITMAP_HASH_CACHE)
                                                 ^
                                                  {
/datasets/git/midx.c:1145:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                options |= BITMAP_OPT_HASH_CACHE;
                ^          ~~~~~~~~~~~~~~~~~~~~~
/datasets/git/midx.c:1147:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & MIDX_WRITE_BITMAP_LOOKUP_TABLE)
            ^
/datasets/git/midx.c:1147:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & MIDX_WRITE_BITMAP_LOOKUP_TABLE)
                    ^
/datasets/git/./midx.h:50:41: note: expanded from macro 'MIDX_WRITE_BITMAP_LOOKUP_TABLE'
#define MIDX_WRITE_BITMAP_LOOKUP_TABLE (1 << 4)
                                        ^
/datasets/git/midx.c:1147:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & MIDX_WRITE_BITMAP_LOOKUP_TABLE)
                                                   ^
                                                    {
/datasets/git/midx.c:1148:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                options |= BITMAP_OPT_LOOKUP_TABLE;
                ^          ~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/midx.c:1155:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_ARRAY(index, pdata->nr_objects);
        ^
/datasets/git/./git-compat-util.h:1090:53: note: expanded from macro 'ALLOC_ARRAY'
#define ALLOC_ARRAY(x, alloc) (x) = xmalloc(st_mult(sizeof(*(x)), (alloc)))
                                                    ^
/datasets/git/midx.c:1156:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < pdata->nr_objects; i++)
        ^
/datasets/git/midx.c:1156:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < pdata->nr_objects; i++)
                                               ^
                                                {
/datasets/git/midx.c:1159:30: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        bitmap_writer_show_progress(flags & MIDX_PROGRESS);
                                    ^
/datasets/git/midx.c:1159:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
/datasets/git/midx.c:1159:38: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        bitmap_writer_show_progress(flags & MIDX_PROGRESS);
                                            ^
/datasets/git/./midx.h:46:28: note: expanded from macro 'MIDX_PROGRESS'
#define MIDX_PROGRESS     (1 << 0)
                           ^
/datasets/git/midx.c:1175:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < pdata->nr_objects; i++)
        ^
/datasets/git/midx.c:1175:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < pdata->nr_objects; i++)
                                               ^
                                                {
/datasets/git/midx.c:1180:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret < 0)
                    ^
                     {
/datasets/git/midx.c:1195:76: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static struct multi_pack_index *lookup_multi_pack_index(struct repository *r,
                                                                           ^
/datasets/git/midx.c:1199:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct multi_pack_index *cur;
        ^
/datasets/git/midx.c:1199:27: warning: variable 'cur' is not initialized [cppcoreguidelines-init-variables]
        struct multi_pack_index *cur;
                                 ^
                                     = NULL
/datasets/git/midx.c:1206:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cur = get_multi_pack_index(r); cur; cur = cur->next) {
        ^
/datasets/git/midx.c:1206:38: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cur' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (cur = get_multi_pack_index(r); cur; cur = cur->next) {
                                            ^
/datasets/git/midx.c:1220:12: warning: function 'write_midx_internal' has cognitive complexity of 126 (threshold 25) [readability-function-cognitive-complexity]
static int write_midx_internal(const char *object_dir,
           ^
/datasets/git/midx.c:1241:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (safe_create_leading_directories(midx_name.buf))
        ^
/datasets/git/midx.c:1245:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!packs_to_include) {
        ^
/datasets/git/midx.c:1254:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ctx.m && !midx_checksum_valid(ctx.m)) {
        ^
/datasets/git/midx.c:1254:12: note: +1
        if (ctx.m && !midx_checksum_valid(ctx.m)) {
                  ^
/datasets/git/midx.c:1260:20: note: +1, including nesting penalty of 0, nesting level increased to 1
        ctx.alloc = ctx.m ? ctx.m->num_packs : 16;
                          ^
/datasets/git/midx.c:1264:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ctx.m) {
        ^
/datasets/git/midx.c:1265:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < ctx.m->num_packs; i++) {
                ^
/datasets/git/midx.c:1266:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        ALLOC_GROW(ctx.info, ctx.nr + 1, ctx.alloc);
                        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/midx.c:1266:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        ALLOC_GROW(ctx.info, ctx.nr + 1, ctx.alloc);
                        ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/midx.c:1266:4: note: +5, including nesting penalty of 4, nesting level increased to 5
                        ALLOC_GROW(ctx.info, ctx.nr + 1, ctx.alloc);
                        ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/midx.c:1266:4: note: +1, nesting level increased to 5
                        ALLOC_GROW(ctx.info, ctx.nr + 1, ctx.alloc);
                        ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/midx.c:1273:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (flags & MIDX_WRITE_REV_INDEX) {
                        ^
/datasets/git/midx.c:1279:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (prepare_midx_pack(the_repository, ctx.m, i)) {
                                ^
/datasets/git/midx.c:1282:6: note: +1
                                        goto cleanup;
                                        ^
/datasets/git/midx.c:1285:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (open_pack_index(ctx.m->packs[i]))
                                ^
/datasets/git/midx.c:1296:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (flags & MIDX_PROGRESS)
        ^
/datasets/git/midx.c:1298:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/midx.c:1306:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((ctx.m && ctx.nr == ctx.m->num_packs) &&
        ^
/datasets/git/midx.c:1306:44: note: +1
        if ((ctx.m && ctx.nr == ctx.m->num_packs) &&
                                                  ^
/datasets/git/midx.c:1307:25: note: +1
            !(packs_to_include || packs_to_drop)) {
                               ^
/datasets/git/midx.c:1313:30: note: +1
                bitmap_exists = bitmap_git && bitmap_is_midx(bitmap_git);
                                           ^
/datasets/git/midx.c:1316:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (bitmap_exists || !want_bitmap) {
                ^
/datasets/git/midx.c:1316:21: note: +1
                if (bitmap_exists || !want_bitmap) {
                                  ^
/datasets/git/midx.c:1321:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!want_bitmap)
                        ^
/datasets/git/midx.c:1324:4: note: +1
                        goto cleanup;
                        ^
/datasets/git/midx.c:1328:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (preferred_pack_name) {
        ^
/datasets/git/midx.c:1330:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < ctx.nr; i++) {
                ^
/datasets/git/midx.c:1331:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!cmp_idx_or_pack_name(preferred_pack_name,
                        ^
/datasets/git/midx.c:1339:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!found)
                ^
/datasets/git/midx.c:1342:9: note: +1, nesting level increased to 1
        } else if (ctx.nr &&
               ^
/datasets/git/midx.c:1342:20: note: +1
        } else if (ctx.nr &&
                          ^
/datasets/git/midx.c:1347:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (packs_to_drop && packs_to_drop->nr)
                ^
/datasets/git/midx.c:1347:21: note: +1
                if (packs_to_drop && packs_to_drop->nr)
                                  ^
/datasets/git/midx.c:1356:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 1; i < ctx.nr; i++) {
                ^
/datasets/git/midx.c:1359:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!oldest->num_objects || p->mtime < oldest->mtime) {
                        ^
/datasets/git/midx.c:1359:29: note: +1
                        if (!oldest->num_objects || p->mtime < oldest->mtime) {
                                                 ^
/datasets/git/midx.c:1365:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!oldest->num_objects) {
                ^
/datasets/git/midx.c:1374:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/midx.c:1382:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ctx.preferred_pack_idx > -1) {
        ^
/datasets/git/midx.c:1384:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!preferred->num_objects) {
                ^
/datasets/git/midx.c:1388:4: note: +1
                        goto cleanup;
                        ^
/datasets/git/midx.c:1396:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < ctx.entries_nr; i++) {
        ^
/datasets/git/midx.c:1397:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ctx.entries[i].offset > 0x7fffffff)
                ^
/datasets/git/midx.c:1399:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ctx.entries[i].offset > 0xffffffff)
                ^
/datasets/git/midx.c:1405:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (packs_to_drop && packs_to_drop->nr) {
        ^
/datasets/git/midx.c:1405:20: note: +1
        if (packs_to_drop && packs_to_drop->nr) {
                          ^
/datasets/git/midx.c:1409:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < ctx.nr && drop_index < packs_to_drop->nr; i++) {
                ^
/datasets/git/midx.c:1409:26: note: +1
                for (i = 0; i < ctx.nr && drop_index < packs_to_drop->nr; i++) {
                                       ^
/datasets/git/midx.c:1413:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!cmp) {
                        ^
/datasets/git/midx.c:1416:11: note: +1, nesting level increased to 3
                        } else if (cmp > 0) {
                               ^
/datasets/git/midx.c:1422:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/midx.c:1427:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (missing_drops) {
                ^
/datasets/git/midx.c:1429:4: note: +1
                        goto cleanup;
                        ^
/datasets/git/midx.c:1440:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < ctx.nr; i++) {
        ^
/datasets/git/midx.c:1441:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ctx.info[i].expired) {
                ^
/datasets/git/midx.c:1444:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/midx.c:1449:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < ctx.nr; i++) {
        ^
/datasets/git/midx.c:1450:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!ctx.info[i].expired)
                ^
/datasets/git/midx.c:1455:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (preferred_pack_name) {
        ^
/datasets/git/midx.c:1460:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (preferred) {
                ^
/datasets/git/midx.c:1462:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (perm == PACK_EXPIRED)
                        ^
/datasets/git/midx.c:1468:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (pack_name_concat_len % MIDX_CHUNK_ALIGNMENT)
        ^
/datasets/git/midx.c:1475:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ctx.nr - dropped_packs == 0) {
        ^
/datasets/git/midx.c:1478:3: note: +1
                goto cleanup;
                ^
/datasets/git/midx.c:1481:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!ctx.entries_nr) {
        ^
/datasets/git/midx.c:1482:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (flags & MIDX_WRITE_BITMAP)
                ^
/datasets/git/midx.c:1500:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ctx.large_offsets_needed)
        ^
/datasets/git/midx.c:1505:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (flags & (MIDX_WRITE_REV_INDEX | MIDX_WRITE_BITMAP)) {
        ^
/datasets/git/midx.c:1519:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (flags & MIDX_WRITE_REV_INDEX &&
        ^
/datasets/git/midx.c:1519:35: note: +1
        if (flags & MIDX_WRITE_REV_INDEX &&
                                         ^
/datasets/git/midx.c:1523:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (flags & MIDX_WRITE_BITMAP) {
        ^
/datasets/git/midx.c:1528:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!ctx.entries_nr)
                ^
/datasets/git/midx.c:1541:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                FREE_AND_NULL(ctx.entries);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/midx.c:1544:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (write_midx_bitmap(midx_name.buf, midx_hash, &pdata,
                ^
/datasets/git/midx.c:1549:4: note: +1
                        goto cleanup;
                        ^
/datasets/git/midx.c:1557:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ctx.m)
        ^
/datasets/git/midx.c:1560:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (commit_lock_file(&lk) < 0)
        ^
/datasets/git/midx.c:1567:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < ctx.nr; i++) {
        ^
/datasets/git/midx.c:1568:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ctx.info[i].p) {
                ^
/datasets/git/midx.c:1223:11: warning: 2 adjacent parameters of 'write_midx_internal' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                               const char *preferred_pack_name,
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/midx.c:1223:23: note: the first parameter in the range is 'preferred_pack_name'
                               const char *preferred_pack_name,
                                           ^~~~~~~~~~~~~~~~~~~
/datasets/git/midx.c:1224:23: note: the last parameter in the range is 'refs_snapshot'
                               const char *refs_snapshot,
                                           ^~~~~~~~~~~~~
/datasets/git/midx.c:1229:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i;
                 ^
                   = 0
/datasets/git/midx.c:1229:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/midx.c:1230:19: warning: variable name 'f' is too short, expected at least 3 characters [readability-identifier-length]
        struct hashfile *f = NULL;
                         ^
/datasets/git/midx.c:1231:19: warning: variable name 'lk' is too short, expected at least 3 characters [readability-identifier-length]
        struct lock_file lk;
                         ^
/datasets/git/midx.c:1236:20: warning: variable 'cf' is not initialized [cppcoreguidelines-init-variables]
        struct chunkfile *cf;
                          ^
                             = NULL
/datasets/git/midx.c:1236:20: warning: variable name 'cf' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/midx.c:1241:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (safe_create_leading_directories(midx_name.buf))
                                                           ^
                                                            {
/datasets/git/midx.c:1260:41: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        ctx.alloc = ctx.m ? ctx.m->num_packs : 16;
                                               ^
/datasets/git/midx.c:1265:15: warning: backward branch (for loop) is ID-dependent due to member reference to 'num_packs' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < ctx.m->num_packs; i++) {
                            ^
/datasets/git/midx.c:1266:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        ALLOC_GROW(ctx.info, ctx.nr + 1, ctx.alloc);
                        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/midx.c:1273:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (flags & MIDX_WRITE_REV_INDEX) {
                            ^
/datasets/git/midx.c:1273:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (flags & MIDX_WRITE_REV_INDEX) {
                                    ^
/datasets/git/./midx.h:47:31: note: expanded from macro 'MIDX_WRITE_REV_INDEX'
#define MIDX_WRITE_REV_INDEX (1 << 1)
                              ^
/datasets/git/midx.c:1285:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (open_pack_index(ctx.m->packs[i]))
                                                                     ^
                                                                      {
/datasets/git/midx.c:1296:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & MIDX_PROGRESS)
            ^
/datasets/git/midx.c:1296:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & MIDX_PROGRESS)
                    ^
/datasets/git/./midx.h:46:28: note: expanded from macro 'MIDX_PROGRESS'
#define MIDX_PROGRESS     (1 << 0)
                           ^
/datasets/git/midx.c:1296:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & MIDX_PROGRESS)
                                  ^
                                   {
/datasets/git/midx.c:1298:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/midx.c:1308:24: warning: variable 'bitmap_git' is not initialized [cppcoreguidelines-init-variables]
                struct bitmap_index *bitmap_git;
                                     ^
                                                = NULL
/datasets/git/midx.c:1309:7: warning: variable 'bitmap_exists' is not initialized [cppcoreguidelines-init-variables]
                int bitmap_exists;
                    ^
                                  = 0
/datasets/git/midx.c:1310:21: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int want_bitmap = flags & MIDX_WRITE_BITMAP;
                                  ^
/datasets/git/midx.c:1310:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
/datasets/git/midx.c:1310:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                int want_bitmap = flags & MIDX_WRITE_BITMAP;
                                          ^
/datasets/git/./midx.h:48:28: note: expanded from macro 'MIDX_WRITE_BITMAP'
#define MIDX_WRITE_BITMAP (1 << 2)
                           ^
/datasets/git/midx.c:1321:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!want_bitmap)
                                         ^
                                          {
/datasets/git/midx.c:1330:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < ctx.nr; i++) {
                ^
/datasets/git/midx.c:1333:30: warning: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                ctx.preferred_pack_idx = i;
                                                         ^
/datasets/git/midx.c:1339:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!found)
                           ^
                            {
/datasets/git/midx.c:1343:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                   (flags & (MIDX_WRITE_REV_INDEX | MIDX_WRITE_BITMAP))) {
                    ^       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/midx.c:1343:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                   (flags & (MIDX_WRITE_REV_INDEX | MIDX_WRITE_BITMAP))) {
                             ^
/datasets/git/./midx.h:47:30: note: expanded from macro 'MIDX_WRITE_REV_INDEX'
#define MIDX_WRITE_REV_INDEX (1 << 1)
                             ^~~~~~~~
/datasets/git/midx.c:1343:39: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                   (flags & (MIDX_WRITE_REV_INDEX | MIDX_WRITE_BITMAP))) {
                                                    ^
/datasets/git/./midx.h:48:28: note: expanded from macro 'MIDX_WRITE_BITMAP'
#define MIDX_WRITE_BITMAP (1 << 2)
                           ^
/datasets/git/midx.c:1347:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (packs_to_drop && packs_to_drop->nr)
                                                       ^
                                                        {
/datasets/git/midx.c:1356:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 1; i < ctx.nr; i++) {
                ^
/datasets/git/midx.c:1357:23: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                        struct packed_git *p = ctx.info[i].p;
                                           ^
/datasets/git/midx.c:1361:30: warning: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                ctx.preferred_pack_idx = i;
                                                         ^
/datasets/git/midx.c:1396:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ctx.entries_nr; i++) {
        ^
/datasets/git/midx.c:1397:31: warning: 0x7fffffff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (ctx.entries[i].offset > 0x7fffffff)
                                            ^
/datasets/git/midx.c:1397:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ctx.entries[i].offset > 0x7fffffff)
                                                       ^
                                                        {
/datasets/git/midx.c:1399:31: warning: 0xffffffff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (ctx.entries[i].offset > 0xffffffff)
                                            ^
/datasets/git/midx.c:1399:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ctx.entries[i].offset > 0xffffffff)
                                                       ^
                                                        {
/datasets/git/midx.c:1409:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < ctx.nr && drop_index < packs_to_drop->nr; i++) {
                ^
/datasets/git/midx.c:1440:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ctx.nr; i++) {
        ^
/datasets/git/midx.c:1449:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ctx.nr; i++) {
        ^
/datasets/git/midx.c:1450:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ctx.info[i].expired)
                                         ^
                                          {
/datasets/git/midx.c:1451:28: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        pack_name_concat_len += strlen(ctx.info[i].pack_name) + 1;
                                                ^
/datasets/git/midx.c:1462:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (perm == PACK_EXPIRED)
                                                 ^
                                                  {
/datasets/git/midx.c:1468:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pack_name_concat_len % MIDX_CHUNK_ALIGNMENT)
                                                        ^
                                                         {
/datasets/git/midx.c:1482:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flags & MIDX_WRITE_BITMAP)
                    ^
/datasets/git/midx.c:1482:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flags & MIDX_WRITE_BITMAP)
                            ^
/datasets/git/./midx.h:48:28: note: expanded from macro 'MIDX_WRITE_BITMAP'
#define MIDX_WRITE_BITMAP (1 << 2)
                           ^
/datasets/git/midx.c:1482:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (flags & MIDX_WRITE_BITMAP)
                                              ^
                                               {
/datasets/git/midx.c:1484:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags &= ~(MIDX_WRITE_REV_INDEX | MIDX_WRITE_BITMAP);
                ^        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/midx.c:1484:12: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                flags &= ~(MIDX_WRITE_REV_INDEX | MIDX_WRITE_BITMAP);
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/midx.c:1484:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags &= ~(MIDX_WRITE_REV_INDEX | MIDX_WRITE_BITMAP);
                           ^
/datasets/git/./midx.h:47:30: note: expanded from macro 'MIDX_WRITE_REV_INDEX'
#define MIDX_WRITE_REV_INDEX (1 << 1)
                             ^~~~~~~~
/datasets/git/midx.c:1484:37: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags &= ~(MIDX_WRITE_REV_INDEX | MIDX_WRITE_BITMAP);
                                                  ^
/datasets/git/./midx.h:48:28: note: expanded from macro 'MIDX_WRITE_BITMAP'
#define MIDX_WRITE_BITMAP (1 << 2)
                           ^
/datasets/git/midx.c:1500:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ctx.large_offsets_needed)
                                     ^
                                      {
/datasets/git/midx.c:1505:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & (MIDX_WRITE_REV_INDEX | MIDX_WRITE_BITMAP)) {
            ^       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/midx.c:1505:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & (MIDX_WRITE_REV_INDEX | MIDX_WRITE_BITMAP)) {
                     ^
/datasets/git/./midx.h:47:30: note: expanded from macro 'MIDX_WRITE_REV_INDEX'
#define MIDX_WRITE_REV_INDEX (1 << 1)
                             ^~~~~~~~
/datasets/git/midx.c:1505:38: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & (MIDX_WRITE_REV_INDEX | MIDX_WRITE_BITMAP)) {
                                            ^
/datasets/git/./midx.h:48:28: note: expanded from macro 'MIDX_WRITE_BITMAP'
#define MIDX_WRITE_BITMAP (1 << 2)
                           ^
/datasets/git/midx.c:1516:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                          CSUM_FSYNC | CSUM_HASH_IN_STREAM);
                          ^
/datasets/git/./csum-file.h:36:21: note: expanded from macro 'CSUM_FSYNC'
#define CSUM_FSYNC              2
                                ^
/datasets/git/midx.c:1519:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & MIDX_WRITE_REV_INDEX &&
            ^
/datasets/git/midx.c:1519:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & MIDX_WRITE_REV_INDEX &&
                    ^
/datasets/git/./midx.h:47:31: note: expanded from macro 'MIDX_WRITE_REV_INDEX'
#define MIDX_WRITE_REV_INDEX (1 << 1)
                              ^
/datasets/git/midx.c:1520:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            git_env_bool("GIT_TEST_MIDX_WRITE_REV", 0))
                                                       ^
                                                        {
/datasets/git/midx.c:1523:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & MIDX_WRITE_BITMAP) {
            ^
/datasets/git/midx.c:1523:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & MIDX_WRITE_BITMAP) {
                    ^
/datasets/git/./midx.h:48:28: note: expanded from macro 'MIDX_WRITE_BITMAP'
#define MIDX_WRITE_BITMAP (1 << 2)
                           ^
/datasets/git/midx.c:1525:19: warning: variable 'commits' is not initialized [cppcoreguidelines-init-variables]
                struct commit **commits;
                                ^
                                        = NULL
/datasets/git/midx.c:1526:12: warning: variable 'commits_nr' is not initialized [cppcoreguidelines-init-variables]
                uint32_t commits_nr;
                         ^
                                    = 0
/datasets/git/midx.c:1528:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ctx.entries_nr)
                                    ^
                                     {
/datasets/git/midx.c:1541:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FREE_AND_NULL(ctx.entries);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/midx.c:1557:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ctx.m)
                  ^
                   {
/datasets/git/midx.c:1560:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (commit_lock_file(&lk) < 0)
                                      ^
                                       {
/datasets/git/midx.c:1567:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ctx.nr; i++) {
        ^
/datasets/git/midx.c:1605:8: warning: accessing fields in struct 'clear_midx_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct clear_midx_data {
       ^
/datasets/git/midx.c:1605:8: note: use "__attribute__((aligned(16)))" to align struct 'clear_midx_data' to 16 bytes
/datasets/git/midx.c:1610:63: warning: parameter 'full_path_len' is unused [misc-unused-parameters]
static void clear_midx_file_ext(const char *full_path, size_t full_path_len,
                                                              ^
/datasets/git/midx.c:1616:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
              ends_with(file_name, data->ext)))
                                               ^
                                                {
/datasets/git/midx.c:1618:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (data->keep && !strcmp(data->keep, file_name))
                                                         ^
                                                          {
/datasets/git/midx.c:1621:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unlink(full_path))
                              ^
                               {
/datasets/git/midx.c:1625:34: warning: 2 adjacent parameters of 'clear_midx_files_ext' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void clear_midx_files_ext(const char *object_dir, const char *ext,
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/midx.c:1625:46: note: the first parameter in the range is 'object_dir'
static void clear_midx_files_ext(const char *object_dir, const char *ext,
                                             ^~~~~~~~~~
/datasets/git/midx.c:1625:70: note: the last parameter in the range is 'ext'
static void clear_midx_files_ext(const char *object_dir, const char *ext,
                                                                     ^~~
/datasets/git/midx.c:1629:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&data, 0, sizeof(struct clear_midx_data));
        ^~~~~~
/datasets/git/midx.c:1629:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&data, 0, sizeof(struct clear_midx_data));
        ^~~~~~
/datasets/git/midx.c:1631:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (keep_hash)
                      ^
                       {
/datasets/git/midx.c:1643:41: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void clear_midx_file(struct repository *r)
                                        ^
/datasets/git/midx.c:1654:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (remove_path(midx.buf))
                                  ^
                                   {
/datasets/git/midx.c:1663:12: warning: variable 'verify_midx_error' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int verify_midx_error;
           ^
/datasets/git/midx.c:1668:10: warning: variable name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
        va_list ap;
                ^
/datasets/git/midx.c:1671:2: warning: the value returned by this function should be used [cert-err33-c]
        vfprintf(stderr, fmt, ap);
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/midx.c:1671:2: note: cast the expression to void to silence this warning
/datasets/git/midx.c:1671:2: warning: Function 'vfprintf' is called with an uninitialized va_list argument [clang-analyzer-valist.Uninitialized]
        vfprintf(stderr, fmt, ap);
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/midx.c:1671:2: note: Function 'vfprintf' is called with an uninitialized va_list argument
        vfprintf(stderr, fmt, ap);
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/midx.c:1672:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(stderr, "\n");
        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/midx.c:1672:2: note: cast the expression to void to silence this warning
/datasets/git/midx.c:1676:8: warning: accessing fields in struct 'pair_pos_vs_id' is inefficient due to poor alignment; currently aligned to 4 bytes, but recommended alignment is 8 bytes [altera-struct-pack-align]
struct pair_pos_vs_id
       ^
/datasets/git/midx.c:1676:8: note: use "__attribute__((aligned(8)))" to align struct 'pair_pos_vs_id' to 8 bytes
/datasets/git/midx.c:1682:47: warning: parameter name '_a' is too short, expected at least 3 characters [readability-identifier-length]
static int compare_pair_pos_vs_id(const void *_a, const void *_b)
                                              ^
/datasets/git/midx.c:1682:63: warning: parameter name '_b' is too short, expected at least 3 characters [readability-identifier-length]
static int compare_pair_pos_vs_id(const void *_a, const void *_b)
                                                              ^
/datasets/git/midx.c:1684:25: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        struct pair_pos_vs_id *a = (struct pair_pos_vs_id *)_a;
                               ^
/datasets/git/midx.c:1685:25: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        struct pair_pos_vs_id *b = (struct pair_pos_vs_id *)_b;
                               ^
/datasets/git/midx.c:1687:9: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return b->pack_int_id - a->pack_int_id;
               ^
/datasets/git/midx.c:1702:5: warning: function 'verify_midx_file' has cognitive complexity of 40 (threshold 25) [readability-function-cognitive-complexity]
int verify_midx_file(struct repository *r, const char *object_dir, unsigned flags)
    ^
/datasets/git/midx.c:1710:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!m) {
        ^
/datasets/git/midx.c:1717:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!stat(filename.buf, &sb)) {
                ^
/datasets/git/midx.c:1725:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!midx_checksum_valid(m))
        ^
/datasets/git/midx.c:1728:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (flags & MIDX_PROGRESS)
        ^
/datasets/git/midx.c:1731:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < m->num_packs; i++) {
        ^
/datasets/git/midx.c:1732:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (prepare_midx_pack(r, m, i))
                ^
/datasets/git/midx.c:1739:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < 255; i++) {
        ^
/datasets/git/midx.c:1743:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (oid_fanout1 > oid_fanout2)
                ^
/datasets/git/midx.c:1748:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (m->num_objects == 0) {
        ^
/datasets/git/midx.c:1754:3: note: +1
                goto cleanup;
                ^
/datasets/git/midx.c:1757:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (flags & MIDX_PROGRESS)
        ^
/datasets/git/midx.c:1760:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < m->num_objects - 1; i++) {
        ^
/datasets/git/midx.c:1766:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (oidcmp(&oid1, &oid2) >= 0)
                ^
/datasets/git/midx.c:1770:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                midx_display_sparse_progress(progress, i + 1);
                ^
/datasets/git/midx.c:1696:2: note: expanded from macro 'midx_display_sparse_progress'
        do { \
        ^
/datasets/git/midx.c:1770:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                midx_display_sparse_progress(progress, i + 1);
                ^
/datasets/git/midx.c:1698:3: note: expanded from macro 'midx_display_sparse_progress'
                if ((_n & (SPARSE_PROGRESS_INTERVAL - 1)) == 0) \
                ^
/datasets/git/midx.c:1781:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < m->num_objects; i++) {
        ^
/datasets/git/midx.c:1786:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (flags & MIDX_PROGRESS)
        ^
/datasets/git/midx.c:1793:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (flags & MIDX_PROGRESS)
        ^
/datasets/git/midx.c:1795:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < m->num_objects; i++) {
        ^
/datasets/git/midx.c:1800:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (i > 0 && pairs[i-1].pack_int_id != pairs[i].pack_int_id &&
                ^
/datasets/git/midx.c:1800:63: note: +1
                if (i > 0 && pairs[i-1].pack_int_id != pairs[i].pack_int_id &&
                                                                            ^
/datasets/git/midx.c:1809:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!fill_midx_entry(r, &oid, &e, m)) {
                ^
/datasets/git/midx.c:1815:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (open_pack_index(e.p)) {
                ^
/datasets/git/midx.c:1824:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (m_offset != p_offset)
                ^
/datasets/git/midx.c:1828:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                midx_display_sparse_progress(progress, i + 1);
                ^
/datasets/git/midx.c:1696:2: note: expanded from macro 'midx_display_sparse_progress'
        do { \
        ^
/datasets/git/midx.c:1828:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                midx_display_sparse_progress(progress, i + 1);
                ^
/datasets/git/midx.c:1698:3: note: expanded from macro 'midx_display_sparse_progress'
                if ((_n & (SPARSE_PROGRESS_INTERVAL - 1)) == 0) \
                ^
/datasets/git/midx.c:1702:41: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int verify_midx_file(struct repository *r, const char *object_dir, unsigned flags)
                                        ^
/datasets/git/midx.c:1705:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i;
                 ^
                   = 0
/datasets/git/midx.c:1705:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/midx.c:1707:27: warning: variable name 'm' is too short, expected at least 3 characters [readability-identifier-length]
        struct multi_pack_index *m = load_multi_pack_index(object_dir, 1);
                                 ^
/datasets/git/midx.c:1712:15: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                struct stat sb;
                            ^
/datasets/git/midx.c:1725:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!midx_checksum_valid(m))
                                    ^
                                     {
/datasets/git/midx.c:1728:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & MIDX_PROGRESS)
            ^
/datasets/git/midx.c:1728:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & MIDX_PROGRESS)
                    ^
/datasets/git/./midx.h:46:28: note: expanded from macro 'MIDX_PROGRESS'
#define MIDX_PROGRESS     (1 << 0)
                           ^
/datasets/git/midx.c:1728:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & MIDX_PROGRESS)
                                  ^
                                   {
/datasets/git/midx.c:1731:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < m->num_packs; i++) {
        ^
/datasets/git/midx.c:1731:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'm' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < m->num_packs; i++) {
                    ^
/datasets/git/midx.c:1732:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (prepare_midx_pack(r, m, i))
                                               ^
                                                {
/datasets/git/midx.c:1739:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < 255; i++) {
        ^
/datasets/git/midx.c:1739:18: warning: 255 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        for (i = 0; i < 255; i++) {
                        ^
/datasets/git/midx.c:1743:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (oid_fanout1 > oid_fanout2)
                                              ^
                                               {
/datasets/git/midx.c:1757:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & MIDX_PROGRESS)
            ^
/datasets/git/midx.c:1757:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & MIDX_PROGRESS)
                    ^
/datasets/git/./midx.h:46:28: note: expanded from macro 'MIDX_PROGRESS'
#define MIDX_PROGRESS     (1 << 0)
                           ^
/datasets/git/midx.c:1757:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & MIDX_PROGRESS)
                                  ^
                                   {
/datasets/git/midx.c:1760:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'm' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < m->num_objects - 1; i++) {
                    ^
/datasets/git/midx.c:1707:2: note: inferred assignment of ID-dependent value from ID-dependent 
        struct multi_pack_index *m = load_multi_pack_index(object_dir, 1);
        ^
/datasets/git/midx.c:1761:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                struct object_id oid1, oid2;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/midx.c:1766:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (oidcmp(&oid1, &oid2) >= 0)
                                              ^
                                               {
/datasets/git/midx.c:1770:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                midx_display_sparse_progress(progress, i + 1);
                ^
/datasets/git/midx.c:1696:2: note: expanded from macro 'midx_display_sparse_progress'
        do { \
        ^
/datasets/git/midx.c:1770:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                midx_display_sparse_progress(progress, i + 1);
                ^
/datasets/git/midx.c:1698:8: note: expanded from macro 'midx_display_sparse_progress'
                if ((_n & (SPARSE_PROGRESS_INTERVAL - 1)) == 0) \
                     ^    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/midx.c:1770:3: warning: variable name '_n' is too short, expected at least 3 characters [readability-identifier-length]
                midx_display_sparse_progress(progress, i + 1);
                ^
/datasets/git/midx.c:1697:12: note: expanded from macro 'midx_display_sparse_progress'
                uint64_t _n = (n); \
                         ^
/datasets/git/midx.c:1781:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < m->num_objects; i++) {
        ^
/datasets/git/midx.c:1781:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'm' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < m->num_objects; i++) {
                    ^
/datasets/git/midx.c:1786:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & MIDX_PROGRESS)
            ^
/datasets/git/midx.c:1786:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & MIDX_PROGRESS)
                    ^
/datasets/git/./midx.h:46:28: note: expanded from macro 'MIDX_PROGRESS'
#define MIDX_PROGRESS     (1 << 0)
                           ^
/datasets/git/midx.c:1786:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & MIDX_PROGRESS)
                                  ^
                                   {
/datasets/git/midx.c:1793:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & MIDX_PROGRESS)
            ^
/datasets/git/midx.c:1793:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & MIDX_PROGRESS)
                    ^
/datasets/git/./midx.h:46:28: note: expanded from macro 'MIDX_PROGRESS'
#define MIDX_PROGRESS     (1 << 0)
                           ^
/datasets/git/midx.c:1793:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & MIDX_PROGRESS)
                                  ^
                                   {
/datasets/git/midx.c:1795:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'm' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < m->num_objects; i++) {
                    ^
/datasets/git/midx.c:1797:21: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                struct pack_entry e;
                                  ^
/datasets/git/midx.c:1798:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                off_t m_offset, p_offset;
                ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/midx.c:1798:9: warning: variable 'm_offset' is not initialized [cppcoreguidelines-init-variables]
                off_t m_offset, p_offset;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/midx.c:1798:19: warning: variable 'p_offset' is not initialized [cppcoreguidelines-init-variables]
                off_t m_offset, p_offset;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/midx.c:1824:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (m_offset != p_offset)
                                         ^
                                          {
/datasets/git/midx.c:1828:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                midx_display_sparse_progress(progress, i + 1);
                ^
/datasets/git/midx.c:1696:2: note: expanded from macro 'midx_display_sparse_progress'
        do { \
        ^
/datasets/git/midx.c:1828:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                midx_display_sparse_progress(progress, i + 1);
                ^
/datasets/git/midx.c:1698:8: note: expanded from macro 'midx_display_sparse_progress'
                if ((_n & (SPARSE_PROGRESS_INTERVAL - 1)) == 0) \
                     ^    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/midx.c:1828:3: warning: variable name '_n' is too short, expected at least 3 characters [readability-identifier-length]
                midx_display_sparse_progress(progress, i + 1);
                ^
/datasets/git/midx.c:1697:12: note: expanded from macro 'midx_display_sparse_progress'
                uint64_t _n = (n); \
                         ^
/datasets/git/midx.c:1839:42: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int expire_midx_packs(struct repository *r, const char *object_dir, unsigned flags)
                                         ^
/datasets/git/midx.c:1841:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        uint32_t i, *count, result = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/midx.c:1841:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i, *count, result = 0;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/midx.c:1841:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/midx.c:1841:15: warning: variable 'count' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i, *count, result = 0;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/midx.c:1843:27: warning: variable name 'm' is too short, expected at least 3 characters [readability-identifier-length]
        struct multi_pack_index *m = lookup_multi_pack_index(r, object_dir);
                                 ^
/datasets/git/midx.c:1846:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!m)
               ^
                {
/datasets/git/midx.c:1851:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & MIDX_PROGRESS)
            ^
/datasets/git/midx.c:1851:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & MIDX_PROGRESS)
                    ^
/datasets/git/./midx.h:46:28: note: expanded from macro 'MIDX_PROGRESS'
#define MIDX_PROGRESS     (1 << 0)
                           ^
/datasets/git/midx.c:1851:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & MIDX_PROGRESS)
                                  ^
                                   {
/datasets/git/midx.c:1854:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < m->num_objects; i++) {
        ^
/datasets/git/midx.c:1854:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'm' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < m->num_objects; i++) {
                    ^
/datasets/git/midx.c:1855:21: warning: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int pack_int_id = nth_midxed_pack_int_id(m, i);
                                  ^
/datasets/git/midx.c:1861:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & MIDX_PROGRESS)
            ^
/datasets/git/midx.c:1861:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & MIDX_PROGRESS)
                    ^
/datasets/git/./midx.h:46:28: note: expanded from macro 'MIDX_PROGRESS'
#define MIDX_PROGRESS     (1 << 0)
                           ^
/datasets/git/midx.c:1861:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & MIDX_PROGRESS)
                                  ^
                                   {
/datasets/git/midx.c:1864:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < m->num_packs; i++) {
        ^
/datasets/git/midx.c:1864:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'm' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < m->num_packs; i++) {
                    ^
/datasets/git/midx.c:1865:9: warning: variable 'pack_name' is not initialized [cppcoreguidelines-init-variables]
                char *pack_name;
                      ^
                                = NULL
/datasets/git/midx.c:1868:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (count[i])
                             ^
                              {
/datasets/git/midx.c:1871:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (prepare_midx_pack(r, m, i))
                                               ^
                                                {
/datasets/git/midx.c:1874:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (m->packs[i]->pack_keep || m->packs[i]->is_cruft)
                                                                    ^
                                                                     {
/datasets/git/midx.c:1888:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (packs_to_drop.nr)
                             ^
                              {
/datasets/git/midx.c:1893:9: warning: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return result;
               ^
/datasets/git/midx.c:1896:8: warning: accessing fields in struct 'repack_info' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct repack_info {
       ^
/datasets/git/midx.c:1896:8: note: use "__attribute__((aligned(16)))" to align struct 'repack_info' to 16 bytes
/datasets/git/midx.c:1902:41: warning: parameter name 'a_' is too short, expected at least 3 characters [readability-identifier-length]
static int compare_by_mtime(const void *a_, const void *b_)
                                        ^
/datasets/git/midx.c:1902:57: warning: parameter name 'b_' is too short, expected at least 3 characters [readability-identifier-length]
static int compare_by_mtime(const void *a_, const void *b_)
                                                        ^
/datasets/git/midx.c:1904:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const struct repack_info *a, *b;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/midx.c:1904:28: warning: variable 'a' is not initialized [cppcoreguidelines-init-variables]
        const struct repack_info *a, *b;
                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/midx.c:1904:28: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/midx.c:1904:32: warning: variable 'b' is not initialized [cppcoreguidelines-init-variables]
        const struct repack_info *a, *b;
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/midx.c:1904:32: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/midx.c:1909:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (a->mtime < b->mtime)
                                ^
                                 {
/datasets/git/midx.c:1911:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (a->mtime > b->mtime)
                                ^
                                 {
/datasets/git/midx.c:1916:55: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int fill_included_packs_all(struct repository *r,
                                                      ^
/datasets/git/midx.c:1917:33: warning: parameter name 'm' is too short, expected at least 3 characters [readability-identifier-length]
                                   struct multi_pack_index *m,
                                                            ^
/datasets/git/midx.c:1920:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        uint32_t i, count = 0;
        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./midx.h:29:2: note: inferred assignment of ID-dependent member from ID-dependent member data [altera-id-dependent-backward-branch]
        uint32_t num_packs;
        ^
/datasets/git/midx.c:1920:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i, count = 0;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/midx.c:1920:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/midx.c:1925:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < m->num_packs; i++) {
        ^
/datasets/git/midx.c:1925:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'num_packs' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < m->num_packs; i++) {
                    ^
/datasets/git/midx.c:1926:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (prepare_midx_pack(r, m, i))
                                               ^
                                                {
/datasets/git/midx.c:1928:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!pack_kept_objects && m->packs[i]->pack_keep)
                                                                 ^
                                                                  {
/datasets/git/midx.c:1930:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (m->packs[i]->is_cruft)
                                          ^
                                           {
/datasets/git/midx.c:1940:57: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int fill_included_packs_batch(struct repository *r,
                                                        ^
/datasets/git/midx.c:1941:35: warning: parameter name 'm' is too short, expected at least 3 characters [readability-identifier-length]
                                     struct multi_pack_index *m,
                                                              ^
/datasets/git/midx.c:1945:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        uint32_t i, packs_to_repack;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./midx.h:29:2: note: inferred assignment of ID-dependent member from ID-dependent member data [altera-id-dependent-backward-branch]
        uint32_t num_packs;
        ^
/datasets/git/midx.c:1945:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i, packs_to_repack;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/midx.c:1945:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/midx.c:1945:14: warning: variable 'packs_to_repack' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i, packs_to_repack;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/midx.c:1946:9: warning: variable 'total_size' is not initialized [cppcoreguidelines-init-variables]
        size_t total_size;
               ^
                          = 0
/datasets/git/midx.c:1947:22: warning: variable 'pack_info' is not initialized [cppcoreguidelines-init-variables]
        struct repack_info *pack_info;
                            ^
                                      = NULL
/datasets/git/midx.c:1954:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < m->num_packs; i++) {
        ^
/datasets/git/./midx.h:30:2: note: inferred assignment of ID-dependent member from ID-dependent member chunk_oid_fanout [altera-id-dependent-backward-branch]
        uint32_t num_objects;
        ^
/datasets/git/midx.c:1954:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'num_packs' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < m->num_packs; i++) {
                    ^
/datasets/git/midx.c:1957:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (prepare_midx_pack(r, m, i))
                                               ^
                                                {
/datasets/git/midx.c:1963:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < m->num_objects; i++) {
        ^
/datasets/git/midx.c:1946:2: note: inferred assignment of ID-dependent value from ID-dependent variable expected_size [altera-id-dependent-backward-branch]
        size_t total_size;
        ^
/datasets/git/midx.c:1963:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'num_objects' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < m->num_objects; i++) {
                    ^
/datasets/git/midx.c:1972:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; total_size < batch_size && i < m->num_packs; i++) {
        ^
/datasets/git/midx.c:1972:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'total_size' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; total_size < batch_size && i < m->num_packs; i++) {
                    ^
/datasets/git/midx.c:1973:21: warning: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int pack_int_id = pack_info[i].pack_int_id;
                                  ^
/datasets/git/midx.c:1974:22: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct packed_git *p = m->packs[pack_int_id];
                                   ^
/datasets/git/midx.c:1975:10: warning: variable 'expected_size' is not initialized [cppcoreguidelines-init-variables]
                size_t expected_size;
                       ^
                                     = 0
/datasets/git/midx.c:1977:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!p)
                       ^
                        {
/datasets/git/midx.c:1979:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!pack_kept_objects && p->pack_keep)
                                                       ^
                                                        {
/datasets/git/midx.c:1981:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (p->is_cruft)
                                ^
                                 {
/datasets/git/midx.c:1983:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (open_pack_index(p) || !p->num_objects)
                                                          ^
                                                           {
/datasets/git/midx.c:1990:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (expected_size >= batch_size)
                                                ^
                                                 {
/datasets/git/midx.c:2000:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (packs_to_repack < 2)
                                ^
                                 {
/datasets/git/midx.c:2006:36: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int midx_repack(struct repository *r, const char *object_dir, size_t batch_size, unsigned flags)
                                   ^
/datasets/git/midx.c:2006:63: warning: 2 adjacent parameters of 'midx_repack' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
int midx_repack(struct repository *r, const char *object_dir, size_t batch_size, unsigned flags)
                                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/midx.c:2006:70: note: the first parameter in the range is 'batch_size'
int midx_repack(struct repository *r, const char *object_dir, size_t batch_size, unsigned flags)
                                                                     ^~~~~~~~~~
/datasets/git/midx.c:2006:91: note: the last parameter in the range is 'flags'
int midx_repack(struct repository *r, const char *object_dir, size_t batch_size, unsigned flags)
                                                                                          ^~~~~
/datasets/git/midx.c:2006:63: note: 
int midx_repack(struct repository *r, const char *object_dir, size_t batch_size, unsigned flags)
                                                              ^
/datasets/git/midx.c:2006:82: note: 'size_t' and 'unsigned int' may be implicitly converted: 'size_t' (as 'unsigned long') -> 'unsigned int', 'unsigned int' -> 'size_t' (as 'unsigned long')
int midx_repack(struct repository *r, const char *object_dir, size_t batch_size, unsigned flags)
                                                                                 ^
/datasets/git/midx.c:2009:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i;
                 ^
                   = 0
/datasets/git/midx.c:2009:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/midx.c:2010:17: warning: variable 'include_pack' is not initialized [cppcoreguidelines-init-variables]
        unsigned char *include_pack;
                       ^
                                    = NULL
/datasets/git/midx.c:2012:8: warning: variable 'cmd_in' is not initialized [cppcoreguidelines-init-variables]
        FILE *cmd_in;
              ^
                     = NULL
/datasets/git/midx.c:2014:27: warning: variable name 'm' is too short, expected at least 3 characters [readability-identifier-length]
        struct multi_pack_index *m = lookup_multi_pack_index(r, object_dir);
                                 ^
/datasets/git/midx.c:2024:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!m)
               ^
                {
/datasets/git/midx.c:2030:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fill_included_packs_batch(r, m, include_pack, batch_size))
                                                                              ^
                                                                               {
/datasets/git/midx.c:2032:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else if (fill_included_packs_all(r, m, include_pack))
                                                               ^
                                                                {
/datasets/git/midx.c:2044:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (delta_base_offset)
                              ^
                               {
/datasets/git/midx.c:2046:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (use_delta_islands)
                              ^
                               {
/datasets/git/midx.c:2049:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & MIDX_PROGRESS)
            ^
/datasets/git/midx.c:2049:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & MIDX_PROGRESS)
                    ^
/datasets/git/./midx.h:46:28: note: expanded from macro 'MIDX_PROGRESS'
#define MIDX_PROGRESS     (1 << 0)
                           ^
/datasets/git/midx.c:2049:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & MIDX_PROGRESS)
                                  ^
                                   {
/datasets/git/midx.c:2051:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/midx.c:2067:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < m->num_objects; i++) {
        ^
/datasets/git/midx.c:2067:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'm' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < m->num_objects; i++) {
                    ^
/datasets/git/midx.c:2071:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!include_pack[pack_int_id])
                                               ^
                                                {
/datasets/git/midx.c:2075:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(cmd_in, "%s\n", oid_to_hex(&oid));
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/midx.c:2075:3: note: cast the expression to void to silence this warning
/datasets/git/midx.c:2077:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(cmd_in);
        ^~~~~~~~~~~~~~
/datasets/git/midx.c:2077:2: note: cast the expression to void to silence this warning
/datasets/git/name-hash.c:9:1: warning: #includes are not sorted properly [llvm-include-order]
#include "thread-utils.h"
^        ~~~~~~~~~~~~~~~~
         "sparse-index.h"
/datasets/git/name-hash.c:22:5: warning: 2 adjacent parameters of 'dir_entry_cmp' of similar type ('const struct hashmap_entry *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                         const struct hashmap_entry *eptr,
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/name-hash.c:22:33: note: the first parameter in the range is 'eptr'
                         const struct hashmap_entry *eptr,
                                                     ^~~~
/datasets/git/name-hash.c:23:33: note: the last parameter in the range is 'entry_or_key'
                         const struct hashmap_entry *entry_or_key,
                                                     ^~~~~~~~~~~~
/datasets/git/name-hash.c:26:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const struct dir_entry *e1, *e2;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/name-hash.c:26:26: warning: variable 'e1' is not initialized [cppcoreguidelines-init-variables]
        const struct dir_entry *e1, *e2;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/name-hash.c:26:26: warning: variable name 'e1' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/name-hash.c:26:31: warning: variable 'e2' is not initialized [cppcoreguidelines-init-variables]
        const struct dir_entry *e1, *e2;
                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/name-hash.c:26:31: warning: variable name 'e2' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/name-hash.c:32:39: warning: function 'strncasecmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        return e1->namelen != e2->namelen || strncasecmp(e1->name,
                                             ^
/datasets/git/name-hash.c:37:21: warning: 2 adjacent parameters of 'find_dir_entry__hash' of similar type ('unsigned int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                const char *name, unsigned int namelen, unsigned int hash)
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/name-hash.c:37:34: note: the first parameter in the range is 'namelen'
                const char *name, unsigned int namelen, unsigned int hash)
                                               ^~~~~~~
/datasets/git/name-hash.c:37:56: note: the last parameter in the range is 'hash'
                const char *name, unsigned int namelen, unsigned int hash)
                                                                     ^~~~
/datasets/git/name-hash.c:51:26: warning: function 'hash_dir_entry' is within a recursive call chain [misc-no-recursion]
static struct dir_entry *hash_dir_entry(struct index_state *istate,
                         ^
/datasets/git/name-hash.c:51:26: note: example recursive call chain, starting from function 'hash_dir_entry'
/datasets/git/name-hash.c:80:17: note: Frame #1: function 'hash_dir_entry' calls function 'hash_dir_entry' here:
                dir->parent = hash_dir_entry(istate, ce, namelen);
                              ^
/datasets/git/name-hash.c:80:17: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/name-hash.c:52:23: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                struct cache_entry *ce, int namelen)
                                    ^
/datasets/git/name-hash.c:61:20: warning: variable 'dir' is not initialized [cppcoreguidelines-init-variables]
        struct dir_entry *dir;
                          ^
                              = NULL
/datasets/git/name-hash.c:64:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (namelen > 0 && !is_dir_sep(ce->name[namelen - 1]))
        ^
/datasets/git/name-hash.c:64:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (namelen > 0 && !is_dir_sep(ce->name[namelen - 1]))
                                                                 ^
                                                                  {
/datasets/git/name-hash.c:66:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (namelen <= 0)
                         ^
                          {
/datasets/git/name-hash.c:74:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FLEX_ALLOC_MEM(dir, name, ce->name, namelen);
                ^
/datasets/git/./git-compat-util.h:1151:47: note: expanded from macro 'FLEX_ALLOC_MEM'
#define FLEX_ALLOC_MEM(x, flexname, buf, len) do { \
                                              ^
/datasets/git/name-hash.c:74:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                FLEX_ALLOC_MEM(dir, name, ce->name, namelen);
                ^
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/name-hash.c:74:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                FLEX_ALLOC_MEM(dir, name, ce->name, namelen);
                ^
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/name-hash.c:85:75: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static void add_dir_entry(struct index_state *istate, struct cache_entry *ce)
                                                                          ^
/datasets/git/name-hash.c:89:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (dir && !(dir->nr++))
        ^
/datasets/git/name-hash.c:89:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'dir' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (dir && !(dir->nr++))
               ^
/datasets/git/name-hash.c:89:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (dir && !(dir->nr++))
                                   ^
                                    {
/datasets/git/name-hash.c:93:78: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static void remove_dir_entry(struct index_state *istate, struct cache_entry *ce)
                                                                             ^
/datasets/git/name-hash.c:99:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct dir_entry *dir = hash_dir_entry(istate, ce, ce_namelen(ce));
        ^
/datasets/git/name-hash.c:100:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (dir && !(--dir->nr)) {
        ^
/datasets/git/name-hash.c:100:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'dir' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (dir && !(--dir->nr)) {
               ^
/datasets/git/name-hash.c:108:78: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static void hash_index_entry(struct index_state *istate, struct cache_entry *ce)
                                                                             ^
/datasets/git/name-hash.c:110:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (ce->ce_flags & CE_HASHED)
            ^
/datasets/git/name-hash.c:110:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (ce->ce_flags & CE_HASHED)
                           ^
/datasets/git/./refs/../cache.h:172:31: note: expanded from macro 'CE_HASHED'
#define CE_HASHED            (1 << 20)
                              ^
/datasets/git/name-hash.c:110:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ce->ce_flags & CE_HASHED)
                                     ^
                                      {
/datasets/git/name-hash.c:112:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ce->ce_flags |= CE_HASHED;
        ^
/datasets/git/name-hash.c:112:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ce->ce_flags |= CE_HASHED;
                        ^
/datasets/git/./refs/../cache.h:172:31: note: expanded from macro 'CE_HASHED'
#define CE_HASHED            (1 << 20)
                              ^
/datasets/git/name-hash.c:119:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ignore_case)
                        ^
                         {
/datasets/git/name-hash.c:124:7: warning: 2 adjacent parameters of 'cache_entry_cmp' of similar type ('const struct hashmap_entry *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                           const struct hashmap_entry *eptr,
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/name-hash.c:124:35: note: the first parameter in the range is 'eptr'
                           const struct hashmap_entry *eptr,
                                                       ^~~~
/datasets/git/name-hash.c:125:35: note: the last parameter in the range is 'entry_or_key'
                           const struct hashmap_entry *entry_or_key,
                                                       ^~~~~~~~~~~~
/datasets/git/name-hash.c:128:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const struct cache_entry *ce1, *ce2;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/name-hash.c:128:28: warning: variable 'ce1' is not initialized [cppcoreguidelines-init-variables]
        const struct cache_entry *ce1, *ce2;
                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/name-hash.c:128:34: warning: variable 'ce2' is not initialized [cppcoreguidelines-init-variables]
        const struct cache_entry *ce1, *ce2;
                                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/name-hash.c:141:12: warning: variable 'lazy_try_threaded' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int lazy_try_threaded = 1;
           ^
/datasets/git/name-hash.c:142:12: warning: variable 'lazy_nr_dir_threads' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int lazy_nr_dir_threads;
           ^
/datasets/git/name-hash.c:152:1: warning: replace macro with enum [modernize-macro-to-enum]
#define LAZY_THREAD_COST (2000)
^~~~~~~~
                         =
/datasets/git/name-hash.c:152:9: warning: macro 'LAZY_THREAD_COST' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define LAZY_THREAD_COST (2000)
        ^
/datasets/git/name-hash.c:165:1: warning: replace macro with enum [modernize-macro-to-enum]
#define LAZY_MAX_MUTEX   (32)
^~~~~~~~
                       =
/datasets/git/name-hash.c:165:9: warning: macro 'LAZY_MAX_MUTEX' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define LAZY_MAX_MUTEX   (32)
        ^
/datasets/git/name-hash.c:167:25: warning: variable 'lazy_dir_mutex_array' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static pthread_mutex_t *lazy_dir_mutex_array;
                        ^
/datasets/git/name-hash.c:167:25: warning: variable 'lazy_dir_mutex_array' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/name-hash.c:175:8: warning: accessing fields in struct 'lazy_entry' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct lazy_entry {
       ^
/datasets/git/name-hash.c:175:8: note: use "__attribute__((aligned(16)))" to align struct 'lazy_entry' to 16 bytes
/datasets/git/name-hash.c:188:6: warning: variable 'nr_cpus' is not initialized [cppcoreguidelines-init-variables]
        int nr_cpus;
            ^
                    = 0
/datasets/git/name-hash.c:192:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!lazy_try_threaded)
                               ^
                                {
/datasets/git/name-hash.c:200:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ignore_case)
                         ^
                          {
/datasets/git/name-hash.c:204:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (nr_cpus < 2)
                        ^
                         {
/datasets/git/name-hash.c:207:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (istate->cache_nr < 2 * LAZY_THREAD_COST)
                                                    ^
                                                     {
/datasets/git/name-hash.c:210:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (istate->cache_nr < nr_cpus * LAZY_THREAD_COST)
                                                          ^
                                                           {
/datasets/git/name-hash.c:211:13: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                nr_cpus = istate->cache_nr / LAZY_THREAD_COST;
                          ^
/datasets/git/name-hash.c:230:6: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int j;
            ^
              = 0
/datasets/git/name-hash.c:230:6: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/name-hash.c:232:2: warning: expression has opaque data structure type 'pthread_mutex_t'; type should only be used as a pointer and not dereferenced [cert-fio38-c,misc-non-copyable-objects]
        CALLOC_ARRAY(lazy_dir_mutex_array, LAZY_MAX_MUTEX);
        ^
/datasets/git/./git-compat-util.h:1091:62: note: expanded from macro 'CALLOC_ARRAY'
#define CALLOC_ARRAY(x, alloc) (x) = xcalloc((alloc), sizeof(*(x)))
                                                             ^
/datasets/git/name-hash.c:234:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (j = 0; j < LAZY_MAX_MUTEX; j++)
        ^
/datasets/git/name-hash.c:234:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (j = 0; j < LAZY_MAX_MUTEX; j++)
                                            ^
                                             {
/datasets/git/name-hash.c:240:6: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int j;
            ^
              = 0
/datasets/git/name-hash.c:240:6: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/name-hash.c:242:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (j = 0; j < LAZY_MAX_MUTEX; j++)
        ^
/datasets/git/name-hash.c:242:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (j = 0; j < LAZY_MAX_MUTEX; j++)
                                            ^
                                             {
/datasets/git/name-hash.c:248:32: warning: parameter name 'j' is too short, expected at least 3 characters [readability-identifier-length]
static void lock_dir_mutex(int j)
                               ^
/datasets/git/name-hash.c:253:34: warning: parameter name 'j' is too short, expected at least 3 characters [readability-identifier-length]
static void unlock_dir_mutex(int j)
                                 ^
/datasets/git/name-hash.c:270:20: warning: variable 'dir' is not initialized [cppcoreguidelines-init-variables]
        struct dir_entry *dir;
                          ^
                              = NULL
/datasets/git/name-hash.c:271:15: warning: variable 'hash' is not initialized [cppcoreguidelines-init-variables]
        unsigned int hash;
                     ^
                          = 0
/datasets/git/name-hash.c:272:6: warning: variable 'lock_nr' is not initialized [cppcoreguidelines-init-variables]
        int lock_nr;
            ^
                    = 0
/datasets/git/name-hash.c:278:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        assert((parent != NULL) ^ (strchr(prefix->buf, '/') == NULL));
               ^
/usr/include/assert.h:108:20: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                   ^~~~
/datasets/git/name-hash.c:280:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parent)
                   ^
                    {
/datasets/git/name-hash.c:284:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/name-hash.c:292:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FLEX_ALLOC_MEM(dir, name, prefix->buf, prefix->len);
                ^
/datasets/git/./git-compat-util.h:1151:47: note: expanded from macro 'FLEX_ALLOC_MEM'
#define FLEX_ALLOC_MEM(x, flexname, buf, len) do { \
                                              ^
/datasets/git/name-hash.c:292:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                FLEX_ALLOC_MEM(dir, name, prefix->buf, prefix->len);
                ^
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/name-hash.c:292:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                FLEX_ALLOC_MEM(dir, name, prefix->buf, prefix->len);
                ^
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/name-hash.c:328:12: warning: function 'handle_range_dir' is within a recursive call chain [misc-no-recursion]
static int handle_range_dir(
           ^
/datasets/git/name-hash.c:383:12: note: example recursive call chain, starting from function 'handle_range_1'
static int handle_range_1(
           ^
/datasets/git/name-hash.c:410:16: note: Frame #1: function 'handle_range_1' calls function 'handle_range_dir' here:
                        processed = handle_range_dir(istate, k, k_end, parent, prefix, lazy_entries, &dir_new);
                                    ^
/datasets/git/name-hash.c:375:7: note: Frame #2: function 'handle_range_dir' calls function 'handle_range_1' here:
        rc = handle_range_1(istate, k_start, k, dir_new, prefix, lazy_entries);
             ^
/datasets/git/name-hash.c:375:7: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/name-hash.c:337:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int rc, k;
        ^~~~~~~~~~
/datasets/git/name-hash.c:337:6: warning: variable 'rc' is not initialized [cppcoreguidelines-init-variables]
        int rc, k;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/name-hash.c:337:6: warning: variable name 'rc' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/name-hash.c:337:10: warning: variable 'k' is not initialized [cppcoreguidelines-init-variables]
        int rc, k;
                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/name-hash.c:337:10: warning: variable name 'k' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/name-hash.c:338:25: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int input_prefix_len = prefix->len;
                               ^
/datasets/git/name-hash.c:339:20: warning: variable 'dir_new' is not initialized [cppcoreguidelines-init-variables]
        struct dir_entry *dir_new;
                          ^
                                  = NULL
/datasets/git/name-hash.c:349:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (k_start + 1 >= k_end)
                                 ^
                                  {
/datasets/git/name-hash.c:350:3: warning: repeated branch in conditional chain [bugprone-branch-clone]
                k = k_end;
                ^
/datasets/git/name-hash.c:350:12: note: end of the original
                k = k_end;
                         ^
/datasets/git/name-hash.c:354:3: note: clone 1 starts here
                k = k_end;
                ^
/datasets/git/name-hash.c:351:83: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (strncmp(istate->cache[k_start + 1]->name, prefix->buf, prefix->len) > 0)
                                                                                         ^
                                                                                          {
/datasets/git/name-hash.c:353:82: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (strncmp(istate->cache[k_end - 1]->name, prefix->buf, prefix->len) == 0)
                                                                                        ^
                                                                                         {
/datasets/git/name-hash.c:359:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (begin < end) {
                ^
/datasets/git/name-hash.c:359:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'begin' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (begin < end) {
                       ^
/datasets/git/name-hash.c:360:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        int mid = begin + ((end - begin) >> 1);
                                           ^~~~~~~~~~~~~
/datasets/git/name-hash.c:362:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (cmp == 0) /* mid has same prefix; look in second part */
                                     ^
                                      {
/datasets/git/name-hash.c:364:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (cmp > 0) /* mid is past group; look in first part */
                                         ^
                                          {
/datasets/git/name-hash.c:366:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/name-hash.c:383:12: warning: function 'handle_range_1' is within a recursive call chain [misc-no-recursion]
static int handle_range_1(
           ^
/datasets/git/name-hash.c:385:2: warning: 2 adjacent parameters of 'handle_range_1' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
        int k_start,
        ^~~~~~~~~~~~
/datasets/git/name-hash.c:385:6: note: the first parameter in the range is 'k_start'
        int k_start,
            ^~~~~~~
/datasets/git/name-hash.c:386:6: note: the last parameter in the range is 'k_end'
        int k_end,
            ^~~~~
/datasets/git/name-hash.c:392:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int k = k_start;
        ^
/datasets/git/name-hash.c:391:25: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int input_prefix_len = prefix->len;
                               ^
/datasets/git/name-hash.c:392:6: warning: variable name 'k' is too short, expected at least 3 characters [readability-identifier-length]
        int k = k_start;
            ^
/datasets/git/name-hash.c:394:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (k < k_end) {
        ^
/datasets/git/name-hash.c:394:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'k' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (k < k_end) {
               ^
/datasets/git/name-hash.c:396:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                const char *name, *slash;
                ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/name-hash.c:396:15: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
                const char *name, *slash;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/name-hash.c:396:22: warning: variable 'slash' is not initialized [cppcoreguidelines-init-variables]
                const char *name, *slash;
                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/name-hash.c:398:22: warning: function 'strncmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (prefix->len && strncmp(ce_k->name, prefix->buf, prefix->len))
                                   ^
                                                                                 != 0
/datasets/git/name-hash.c:398:68: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (prefix->len && strncmp(ce_k->name, prefix->buf, prefix->len))
                                                                                 ^
                                                                                  {
/datasets/git/name-hash.c:405:14: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        int len = slash - name;
                                  ^
/datasets/git/name-hash.c:406:8: warning: variable 'processed' is not initialized [cppcoreguidelines-init-variables]
                        int processed;
                            ^
                                      = 0
/datasets/git/name-hash.c:407:22: warning: variable 'dir_new' is not initialized [cppcoreguidelines-init-variables]
                        struct dir_entry *dir_new;
                                          ^
                                                  = NULL
/datasets/git/name-hash.c:454:8: warning: accessing fields in struct 'lazy_dir_thread_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct lazy_dir_thread_data {
       ^
/datasets/git/name-hash.c:454:8: note: use "__attribute__((aligned(32)))" to align struct 'lazy_dir_thread_data' to 32 bytes
/datasets/git/name-hash.c:464:31: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
        struct lazy_dir_thread_data *d = _data;
                                     ^
/datasets/git/name-hash.c:471:8: warning: accessing fields in struct 'lazy_name_thread_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct lazy_name_thread_data {
       ^
/datasets/git/name-hash.c:471:8: note: use "__attribute__((aligned(32)))" to align struct 'lazy_name_thread_data' to 32 bytes
/datasets/git/name-hash.c:479:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct lazy_name_thread_data *d = _data;
        ^
/datasets/git/name-hash.c:479:32: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
        struct lazy_name_thread_data *d = _data;
                                      ^
/datasets/git/name-hash.c:480:6: warning: variable 'k' is not initialized [cppcoreguidelines-init-variables]
        int k;
            ^
              = 0
/datasets/git/name-hash.c:480:6: warning: variable name 'k' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/name-hash.c:482:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (k = 0; k < d->istate->cache_nr; k++) {
        ^
/datasets/git/name-hash.c:482:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'd' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (k = 0; k < d->istate->cache_nr; k++) {
                    ^
/datasets/git/name-hash.c:484:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ce_k->ce_flags |= CE_HASHED;
                ^
/datasets/git/name-hash.c:484:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ce_k->ce_flags |= CE_HASHED;
                                  ^
/datasets/git/./refs/../cache.h:172:31: note: expanded from macro 'CE_HASHED'
#define CE_HASHED            (1 << 20)
                              ^
/datasets/git/name-hash.c:496:6: warning: variable 'k' is not initialized [cppcoreguidelines-init-variables]
        int k;
            ^
              = 0
/datasets/git/name-hash.c:496:6: warning: variable name 'k' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/name-hash.c:498:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (k = 0; k < istate->cache_nr; k++) {
        ^
/datasets/git/name-hash.c:499:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (lazy_entries[k].dir)
                                        ^
                                         {
/datasets/git/name-hash.c:507:6: warning: variable 'err' is not initialized [cppcoreguidelines-init-variables]
        int err;
            ^
                = 0
/datasets/git/name-hash.c:508:6: warning: variable 'nr_each' is not initialized [cppcoreguidelines-init-variables]
        int nr_each;
            ^
                    = 0
/datasets/git/name-hash.c:509:6: warning: variable 'k_start' is not initialized [cppcoreguidelines-init-variables]
        int k_start;
            ^
                    = 0
/datasets/git/name-hash.c:510:6: warning: variable 't' is not initialized [cppcoreguidelines-init-variables]
        int t;
            ^
              = 0
/datasets/git/name-hash.c:510:6: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/name-hash.c:511:21: warning: variable 'lazy_entries' is not initialized [cppcoreguidelines-init-variables]
        struct lazy_entry *lazy_entries;
                           ^
                                        = NULL
/datasets/git/name-hash.c:512:31: warning: variable 'td_dir' is not initialized [cppcoreguidelines-init-variables]
        struct lazy_dir_thread_data *td_dir;
                                     ^
                                            = NULL
/datasets/git/name-hash.c:513:32: warning: variable 'td_name' is not initialized [cppcoreguidelines-init-variables]
        struct lazy_name_thread_data *td_name;
                                      ^
                                              = NULL
/datasets/git/name-hash.c:515:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!HAVE_THREADS)
                          ^
                           {
/datasets/git/name-hash.c:531:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (t = 0; t < lazy_nr_dir_threads; t++) {
        ^
/datasets/git/name-hash.c:142:1: note: inferred assignment of ID-dependent value from ID-dependent variable nr_cpus [altera-id-dependent-backward-branch]
static int lazy_nr_dir_threads;
^
/datasets/git/name-hash.c:531:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'lazy_nr_dir_threads' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (t = 0; t < lazy_nr_dir_threads; t++) {
                    ^
/datasets/git/name-hash.c:537:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (k_start > istate->cache_nr)
                                               ^
                                                {
/datasets/git/name-hash.c:538:14: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        k_start = istate->cache_nr;
                                  ^
/datasets/git/name-hash.c:541:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err)
                        ^
                         {
/datasets/git/name-hash.c:542:51: warning: function is not thread safe [concurrency-mt-unsafe]
                        die(_("unable to create lazy_dir thread: %s"), strerror(err));
                                                                       ^
/datasets/git/name-hash.c:544:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (t = 0; t < lazy_nr_dir_threads; t++) {
        ^
/datasets/git/name-hash.c:544:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'lazy_nr_dir_threads' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (t = 0; t < lazy_nr_dir_threads; t++) {
                    ^
/datasets/git/name-hash.c:546:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pthread_join(td_dir_t->pthread, NULL))
                                                          ^
                                                           {
/datasets/git/name-hash.c:563:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err)
                ^
                 {
/datasets/git/name-hash.c:564:51: warning: function is not thread safe [concurrency-mt-unsafe]
                die(_("unable to create lazy_name thread: %s"), strerror(err));
                                                                ^
/datasets/git/name-hash.c:569:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err)
                ^
                 {
/datasets/git/name-hash.c:570:49: warning: function is not thread safe [concurrency-mt-unsafe]
                die(_("unable to join lazy_name thread: %s"), strerror(err));
                                                              ^
/datasets/git/name-hash.c:582:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (istate->name_hash_initialized)
                                          ^
                                           {
/datasets/git/name-hash.c:600:7: warning: variable 'nr' is not initialized [cppcoreguidelines-init-variables]
                int nr;
                    ^
                       = 0
/datasets/git/name-hash.c:600:7: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/name-hash.c:601:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (nr = 0; nr < istate->cache_nr; nr++)
                ^
/datasets/git/name-hash.c:601:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (nr = 0; nr < istate->cache_nr; nr++)
                                                         ^
                                                          {
/datasets/git/name-hash.c:607:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_performance_leave("initialize name hash");
        ^
/datasets/git/./trace.h:251:2: note: expanded from macro 'trace_performance_leave'
        do {                                                                \
        ^
/datasets/git/name-hash.c:629:68: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
void add_name_hash(struct index_state *istate, struct cache_entry *ce)
                                                                   ^
/datasets/git/name-hash.c:631:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (istate->name_hash_initialized)
                                          ^
                                           {
/datasets/git/name-hash.c:635:71: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
void remove_name_hash(struct index_state *istate, struct cache_entry *ce)
                                                                      ^
/datasets/git/name-hash.c:637:42: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!istate->name_hash_initialized || !(ce->ce_flags & CE_HASHED))
                                                ^
/datasets/git/name-hash.c:637:57: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!istate->name_hash_initialized || !(ce->ce_flags & CE_HASHED))
                                                               ^
/datasets/git/./refs/../cache.h:172:31: note: expanded from macro 'CE_HASHED'
#define CE_HASHED            (1 << 20)
                              ^
/datasets/git/name-hash.c:637:68: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!istate->name_hash_initialized || !(ce->ce_flags & CE_HASHED))
                                                                          ^
                                                                           {
/datasets/git/name-hash.c:639:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ce->ce_flags &= ~CE_HASHED;
        ^               ~~~~~~~~~~
/datasets/git/name-hash.c:639:18: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
        ce->ce_flags &= ~CE_HASHED;
                        ^
/datasets/git/name-hash.c:639:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ce->ce_flags &= ~CE_HASHED;
                         ^
/datasets/git/./refs/../cache.h:172:31: note: expanded from macro 'CE_HASHED'
#define CE_HASHED            (1 << 20)
                              ^
/datasets/git/name-hash.c:642:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ignore_case)
                        ^
                         {
/datasets/git/name-hash.c:648:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len1 != len2)
                         ^
                          {
/datasets/git/name-hash.c:651:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (len1) {
        ^
/datasets/git/name-hash.c:652:17: warning: variable name 'c1' is too short, expected at least 3 characters [readability-identifier-length]
                unsigned char c1 = *name1++;
                              ^
/datasets/git/name-hash.c:653:17: warning: variable name 'c2' is too short, expected at least 3 characters [readability-identifier-length]
                unsigned char c2 = *name2++;
                              ^
/datasets/git/name-hash.c:658:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (c1 != c2)
                                     ^
                                      {
/datasets/git/name-hash.c:665:48: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static int same_name(const struct cache_entry *ce, const char *name, int namelen, int icase)
                                               ^
/datasets/git/name-hash.c:665:70: warning: 2 adjacent parameters of 'same_name' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int same_name(const struct cache_entry *ce, const char *name, int namelen, int icase)
                                                                     ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/name-hash.c:665:74: note: the first parameter in the range is 'namelen'
static int same_name(const struct cache_entry *ce, const char *name, int namelen, int icase)
                                                                         ^~~~~~~
/datasets/git/name-hash.c:665:87: note: the last parameter in the range is 'icase'
static int same_name(const struct cache_entry *ce, const char *name, int namelen, int icase)
                                                                                      ^~~~~
/datasets/git/name-hash.c:673:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len == namelen && !memcmp(name, ce->name, len))
                                                           ^
                                                            {
/datasets/git/name-hash.c:676:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!icase)
                   ^
                    {
/datasets/git/name-hash.c:684:20: warning: variable 'dir' is not initialized [cppcoreguidelines-init-variables]
        struct dir_entry *dir;
                          ^
                              = NULL
/datasets/git/name-hash.c:695:2: note: inferred assignment of ID-dependent value from ID-dependent variable startPtr [altera-id-dependent-backward-branch]
        const char *ptr = startPtr;
        ^
/datasets/git/name-hash.c:699:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'ptr' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (*ptr) {
               ^
/datasets/git/name-hash.c:700:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (*ptr && *ptr != '/')
                ^
/datasets/git/name-hash.c:700:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'ptr' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (*ptr && *ptr != '/')
                       ^
/datasets/git/name-hash.c:700:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (*ptr && *ptr != '/')
                                           ^
                                            {
/datasets/git/name-hash.c:704:22: warning: variable 'dir' is not initialized [cppcoreguidelines-init-variables]
                        struct dir_entry *dir;
                                          ^
                                              = NULL
/datasets/git/name-hash.c:718:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct cache_entry *ce;
        ^
/datasets/git/name-hash.c:708:5: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                                memcpy((void *)startPtr, dir->name + (startPtr - name), ptr - startPtr);
                                ^~~~~~
/datasets/git/name-hash.c:708:5: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                                memcpy((void *)startPtr, dir->name + (startPtr - name), ptr - startPtr);
                                ^~~~~~
/datasets/git/name-hash.c:718:22: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
        struct cache_entry *ce;
                            ^
                               = NULL
/datasets/git/name-hash.c:718:22: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/name-hash.c:726:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        hashmap_for_each_entry_from(&istate->name_hash, ce, ent) {
        ^
/datasets/git/./hashmap.h:537:2: note: expanded from macro 'hashmap_for_each_entry_from'
        for (; \
        ^
/datasets/git/name-hash.c:726:50: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ce' and may cause performance degradation [altera-id-dependent-backward-branch]
        hashmap_for_each_entry_from(&istate->name_hash, ce, ent) {
                                                        ^
/datasets/git/name-hash.c:727:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (same_name(ce, name, namelen, icase))
                                                        ^
                                                         {
/datasets/git/name-hash.c:735:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!istate->name_hash_initialized)
                                           ^
                                            {
/datasets/git/negotiator/default.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "default.h"
^        ~~~~~~~~~~~
         "../commit.h"
/datasets/git/negotiator/default.c:10:1: warning: replace macro with enum [modernize-macro-to-enum]
#define COMMON          (1U << 2)
^~~~~~~~
               =                 ,
/datasets/git/negotiator/default.c:10:9: warning: macro 'COMMON' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define COMMON          (1U << 2)
        ^
/datasets/git/negotiator/default.c:11:9: warning: macro 'COMMON_REF' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define COMMON_REF      (1U << 3)
        ^
/datasets/git/negotiator/default.c:12:9: warning: macro 'SEEN' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define SEEN            (1U << 4)
        ^
/datasets/git/negotiator/default.c:13:9: warning: macro 'POPPED' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define POPPED          (1U << 5)
        ^
/datasets/git/negotiator/default.c:15:12: warning: variable 'marked' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int marked;
           ^
/datasets/git/negotiator/default.c:17:8: warning: accessing fields in struct 'negotiation_state' is inefficient due to padding; only needs 44 bytes but is using 48 bytes [altera-struct-pack-align]
struct negotiation_state {
       ^
/datasets/git/negotiator/default.c:17:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'negotiation_state'
/datasets/git/negotiator/default.c:17:8: warning: accessing fields in struct 'negotiation_state' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct negotiation_state {
       ^
/datasets/git/negotiator/default.c:17:8: note: use "__attribute__((aligned(64)))" to align struct 'negotiation_state' to 64 bytes
/datasets/git/negotiator/default.c:22:53: warning: parameter name 'ns' is too short, expected at least 3 characters [readability-identifier-length]
static void rev_list_push(struct negotiation_state *ns,
                                                    ^
/datasets/git/negotiator/default.c:25:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(commit->object.flags & mark)) {
              ^                      ~~~~
/datasets/git/negotiator/default.c:26:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                commit->object.flags |= mark;
                ^                       ~~~~
/datasets/git/negotiator/default.c:28:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (parse_commit(commit))
                                         ^
                                          {
/datasets/git/negotiator/default.c:33:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(commit->object.flags & COMMON))
                                             ^
/datasets/git/negotiator/default.c:10:18: note: expanded from macro 'COMMON'
#define COMMON          (1U << 2)
                         ^     ~
/datasets/git/negotiator/default.c:33:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(commit->object.flags & COMMON))
                                                     ^
                                                      {
/datasets/git/negotiator/default.c:42:17: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
        struct object *o = deref_tag(the_repository, parse_object(the_repository, oid), refname, 0);
                       ^
/datasets/git/negotiator/default.c:44:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (o && o->type == OBJ_COMMIT)
                                       ^
                                        {
/datasets/git/negotiator/default.c:46:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                   COMMON | COMMON_REF | SEEN | POPPED);
                                   ^
/datasets/git/negotiator/default.c:10:18: note: expanded from macro 'COMMON'
#define COMMON          (1U << 2)
                         ^     ~
/datasets/git/negotiator/default.c:46:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                   COMMON | COMMON_REF | SEEN | POPPED);
                                            ^
/datasets/git/negotiator/default.c:11:21: note: expanded from macro 'COMMON_REF'
#define COMMON_REF      (1U << 3)
                         ^     ~
/datasets/git/negotiator/default.c:46:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                   COMMON | COMMON_REF | SEEN | POPPED);
                                                         ^
/datasets/git/negotiator/default.c:12:16: note: expanded from macro 'SEEN'
#define SEEN            (1U << 4)
                         ^     ~
/datasets/git/negotiator/default.c:46:37: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                   COMMON | COMMON_REF | SEEN | POPPED);
                                                                ^
/datasets/git/negotiator/default.c:13:18: note: expanded from macro 'POPPED'
#define POPPED          (1U << 5)
                         ^     ~
/datasets/git/negotiator/default.c:55:13: warning: function 'mark_common' is within a recursive call chain [misc-no-recursion]
static void mark_common(struct negotiation_state *ns, struct commit *commit,
            ^
/datasets/git/negotiator/default.c:55:13: note: example recursive call chain, starting from function 'mark_common'
/datasets/git/negotiator/default.c:78:5: note: Frame #1: function 'mark_common' calls function 'mark_common' here:
                                mark_common(ns, parents->item, 0,
                                ^
/datasets/git/negotiator/default.c:78:5: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/negotiator/default.c:55:51: warning: parameter name 'ns' is too short, expected at least 3 characters [readability-identifier-length]
static void mark_common(struct negotiation_state *ns, struct commit *commit,
                                                  ^
/datasets/git/negotiator/default.c:56:3: warning: 2 adjacent parameters of 'mark_common' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                int ancestors_only, int dont_parse)
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/negotiator/default.c:56:7: note: the first parameter in the range is 'ancestors_only'
                int ancestors_only, int dont_parse)
                    ^~~~~~~~~~~~~~
/datasets/git/negotiator/default.c:56:27: note: the last parameter in the range is 'dont_parse'
                int ancestors_only, int dont_parse)
                                        ^~~~~~~~~~
/datasets/git/negotiator/default.c:58:49: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (commit != NULL && !(commit->object.flags & COMMON)) {
                                                       ^
/datasets/git/negotiator/default.c:10:18: note: expanded from macro 'COMMON'
#define COMMON          (1U << 2)
                         ^     ~
/datasets/git/negotiator/default.c:59:18: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                struct object *o = (struct object *)commit;
                               ^
/datasets/git/negotiator/default.c:61:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ancestors_only)
                                    ^
                                     {
/datasets/git/negotiator/default.c:62:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        o->flags |= COMMON;
                                    ^
/datasets/git/negotiator/default.c:10:18: note: expanded from macro 'COMMON'
#define COMMON          (1U << 2)
                         ^     ~
/datasets/git/negotiator/default.c:64:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(o->flags & SEEN))
                                 ^
/datasets/git/negotiator/default.c:12:16: note: expanded from macro 'SEEN'
#define SEEN            (1U << 4)
                         ^     ~
/datasets/git/negotiator/default.c:64:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(o->flags & SEEN))
                                       ^
                                        {
/datasets/git/negotiator/default.c:65:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        rev_list_push(ns, commit, SEEN);
                                                  ^
/datasets/git/negotiator/default.c:12:16: note: expanded from macro 'SEEN'
#define SEEN            (1U << 4)
                         ^     ~
/datasets/git/negotiator/default.c:67:24: warning: variable 'parents' is not initialized [cppcoreguidelines-init-variables]
                        struct commit_list *parents;
                                            ^
                                                    = NULL
/datasets/git/negotiator/default.c:69:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!ancestors_only && !(o->flags & POPPED))
                                                            ^
/datasets/git/negotiator/default.c:13:18: note: expanded from macro 'POPPED'
#define POPPED          (1U << 5)
                         ^     ~
/datasets/git/negotiator/default.c:69:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!ancestors_only && !(o->flags & POPPED))
                                                                    ^
                                                                     {
/datasets/git/negotiator/default.c:71:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!o->parsed && !dont_parse)
                                                      ^
                                                       {
/datasets/git/negotiator/default.c:72:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (parse_commit(commit))
                                                         ^
                                                          {
/datasets/git/negotiator/default.c:75:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (parents = commit->parents;
                        ^
/datasets/git/negotiator/default.c:76:6: warning: backward branch (for loop) is ID-dependent due to variable reference to 'parents' and may cause performance degradation [altera-id-dependent-backward-branch]
                                        parents;
                                        ^
/datasets/git/negotiator/default.c:77:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        parents = parents->next)
                                                                ^
                                                                 {
/datasets/git/negotiator/default.c:87:66: warning: parameter name 'ns' is too short, expected at least 3 characters [readability-identifier-length]
static const struct object_id *get_rev(struct negotiation_state *ns)
                                                                 ^
/datasets/git/negotiator/default.c:89:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct commit *commit = NULL;
        ^
/datasets/git/negotiator/default.c:91:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'commit' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (commit == NULL) {
               ^
/datasets/git/negotiator/default.c:92:16: warning: variable 'mark' is not initialized [cppcoreguidelines-init-variables]
                unsigned int mark;
                             ^
                                  = 0
/datasets/git/negotiator/default.c:93:23: warning: variable 'parents' is not initialized [cppcoreguidelines-init-variables]
                struct commit_list *parents;
                                    ^
                                            = NULL
/datasets/git/negotiator/default.c:95:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ns->rev_list.nr == 0 || ns->non_common_revs == 0)
                                                                     ^
                                                                      {
/datasets/git/negotiator/default.c:102:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                commit->object.flags |= POPPED;
                                        ^
/datasets/git/negotiator/default.c:13:18: note: expanded from macro 'POPPED'
#define POPPED          (1U << 5)
                         ^     ~
/datasets/git/negotiator/default.c:103:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(commit->object.flags & COMMON))
                                             ^
/datasets/git/negotiator/default.c:10:18: note: expanded from macro 'COMMON'
#define COMMON          (1U << 2)
                         ^     ~
/datasets/git/negotiator/default.c:103:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(commit->object.flags & COMMON))
                                                     ^
                                                      {
/datasets/git/negotiator/default.c:106:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (commit->object.flags & COMMON) {
                                           ^
/datasets/git/negotiator/default.c:10:18: note: expanded from macro 'COMMON'
#define COMMON          (1U << 2)
                         ^     ~
/datasets/git/negotiator/default.c:109:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        mark = COMMON | SEEN;
                               ^
/datasets/git/negotiator/default.c:10:18: note: expanded from macro 'COMMON'
#define COMMON          (1U << 2)
                         ^     ~
/datasets/git/negotiator/default.c:109:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        mark = COMMON | SEEN;
                                        ^
/datasets/git/negotiator/default.c:12:16: note: expanded from macro 'SEEN'
#define SEEN            (1U << 4)
                         ^     ~
/datasets/git/negotiator/default.c:110:37: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                } else if (commit->object.flags & COMMON_REF)
                                                  ^
/datasets/git/negotiator/default.c:11:21: note: expanded from macro 'COMMON_REF'
#define COMMON_REF      (1U << 3)
                         ^     ~
/datasets/git/negotiator/default.c:110:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else if (commit->object.flags & COMMON_REF)
                                                             ^
                                                              {
/datasets/git/negotiator/default.c:112:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        mark = COMMON | SEEN;
                               ^
/datasets/git/negotiator/default.c:10:18: note: expanded from macro 'COMMON'
#define COMMON          (1U << 2)
                         ^     ~
/datasets/git/negotiator/default.c:112:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        mark = COMMON | SEEN;
                                        ^
/datasets/git/negotiator/default.c:12:16: note: expanded from macro 'SEEN'
#define SEEN            (1U << 4)
                         ^     ~
/datasets/git/negotiator/default.c:113:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/negotiator/default.c:115:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        mark = SEEN;
                               ^
/datasets/git/negotiator/default.c:12:16: note: expanded from macro 'SEEN'
#define SEEN            (1U << 4)
                         ^     ~
/datasets/git/negotiator/default.c:117:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (parents) {
                ^
/datasets/git/negotiator/default.c:117:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'parents' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (parents) {
                       ^
/datasets/git/negotiator/default.c:118:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!(parents->item->object.flags & SEEN))
                                                            ^
/datasets/git/negotiator/default.c:12:16: note: expanded from macro 'SEEN'
#define SEEN            (1U << 4)
                         ^     ~
/datasets/git/negotiator/default.c:118:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!(parents->item->object.flags & SEEN))
                                                                  ^
                                                                   {
/datasets/git/negotiator/default.c:119:38: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                rev_list_push(ns, parents->item, mark);
                                                                 ^
/datasets/git/negotiator/default.c:120:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (mark & COMMON)
                                   ^
/datasets/git/negotiator/default.c:10:18: note: expanded from macro 'COMMON'
#define COMMON          (1U << 2)
                         ^     ~
/datasets/git/negotiator/default.c:120:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (mark & COMMON)
                                          ^
                                           {
/datasets/git/negotiator/default.c:129:69: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static void known_common(struct fetch_negotiator *n, struct commit *c)
                                                                    ^
/datasets/git/negotiator/default.c:131:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(c->object.flags & SEEN)) {
                                ^
/datasets/git/negotiator/default.c:12:16: note: expanded from macro 'SEEN'
#define SEEN            (1U << 4)
                         ^     ~
/datasets/git/negotiator/default.c:132:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                rev_list_push(n->data, c, COMMON_REF | SEEN);
                                          ^
/datasets/git/negotiator/default.c:11:21: note: expanded from macro 'COMMON_REF'
#define COMMON_REF      (1U << 3)
                         ^     ~
/datasets/git/negotiator/default.c:132:42: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                rev_list_push(n->data, c, COMMON_REF | SEEN);
                                                       ^
/datasets/git/negotiator/default.c:12:16: note: expanded from macro 'SEEN'
#define SEEN            (1U << 4)
                         ^     ~
/datasets/git/negotiator/default.c:137:64: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static void add_tip(struct fetch_negotiator *n, struct commit *c)
                                                               ^
/datasets/git/negotiator/default.c:140:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        rev_list_push(n->data, c, SEEN);
                                  ^
/datasets/git/negotiator/default.c:12:16: note: expanded from macro 'SEEN'
#define SEEN            (1U << 4)
                         ^     ~
/datasets/git/negotiator/default.c:150:59: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static int ack(struct fetch_negotiator *n, struct commit *c)
                                                          ^
/datasets/git/negotiator/default.c:152:48: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int known_to_be_common = !!(c->object.flags & COMMON);
                                                      ^
/datasets/git/negotiator/default.c:10:18: note: expanded from macro 'COMMON'
#define COMMON          (1U << 2)
                         ^     ~
/datasets/git/negotiator/default.c:160:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(n->data);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/negotiator/default.c:165:28: warning: variable 'ns' is not initialized [cppcoreguidelines-init-variables]
        struct negotiation_state *ns;
                                  ^
                                     = NULL
/datasets/git/negotiator/default.c:165:28: warning: variable name 'ns' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/negotiator/default.c:174:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (marked)
                   ^
                    {
/datasets/git/negotiator/noop.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "noop.h"
^        ~~~~~~~~
         "../commit.h"
/datasets/git/negotiator/noop.c:6:69: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static void known_common(struct fetch_negotiator *n, struct commit *c)
                                                                    ^
/datasets/git/negotiator/noop.c:11:64: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static void add_tip(struct fetch_negotiator *n, struct commit *c)
                                                               ^
/datasets/git/negotiator/noop.c:16:62: warning: parameter 'n' is unused [misc-unused-parameters]
static const struct object_id *next(struct fetch_negotiator *n)
                                                             ^
/datasets/git/negotiator/noop.c:21:41: warning: parameter 'n' is unused [misc-unused-parameters]
static int ack(struct fetch_negotiator *n, struct commit *c)
                                        ^
/datasets/git/negotiator/noop.c:21:59: warning: parameter 'c' is unused [misc-unused-parameters]
static int ack(struct fetch_negotiator *n, struct commit *c)
                                                          ^
/datasets/git/negotiator/noop.c:21:59: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/negotiator/skipping.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "skipping.h"
^        ~~~~~~~~~~~~
         "../commit.h"
/datasets/git/negotiator/skipping.c:13:1: warning: replace macro with enum [modernize-macro-to-enum]
#define COMMON          (1U << 2)
^~~~~~~~
               =                 ,
/datasets/git/negotiator/skipping.c:13:9: warning: macro 'COMMON' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define COMMON          (1U << 2)
        ^
/datasets/git/negotiator/skipping.c:19:9: warning: macro 'ADVERTISED' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define ADVERTISED      (1U << 3)
        ^
/datasets/git/negotiator/skipping.c:23:9: warning: macro 'SEEN' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define SEEN            (1U << 4)
        ^
/datasets/git/negotiator/skipping.c:27:9: warning: macro 'POPPED' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define POPPED          (1U << 5)
        ^
/datasets/git/negotiator/skipping.c:29:12: warning: variable 'marked' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int marked;
           ^
/datasets/git/negotiator/skipping.c:34:8: warning: accessing fields in struct 'entry' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct entry {
       ^
/datasets/git/negotiator/skipping.c:34:8: note: use "__attribute__((aligned(16)))" to align struct 'entry' to 16 bytes
/datasets/git/negotiator/skipping.c:44:8: warning: accessing fields in struct 'data' is inefficient due to padding; only needs 44 bytes but is using 48 bytes [altera-struct-pack-align]
struct data {
       ^
/datasets/git/negotiator/skipping.c:44:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'data'
/datasets/git/negotiator/skipping.c:44:8: warning: accessing fields in struct 'data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct data {
       ^
/datasets/git/negotiator/skipping.c:44:8: note: use "__attribute__((aligned(64)))" to align struct 'data' to 64 bytes
/datasets/git/negotiator/skipping.c:53:32: warning: parameter name 'a_' is too short, expected at least 3 characters [readability-identifier-length]
static int compare(const void *a_, const void *b_, void *unused)
                               ^
/datasets/git/negotiator/skipping.c:53:36: warning: 2 adjacent parameters of 'compare' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int compare(const void *a_, const void *b_, void *unused)
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/negotiator/skipping.c:53:48: note: the first parameter in the range is 'b_'
static int compare(const void *a_, const void *b_, void *unused)
                                               ^~
/datasets/git/negotiator/skipping.c:53:58: note: the last parameter in the range is 'unused'
static int compare(const void *a_, const void *b_, void *unused)
                                                         ^~~~~~
/datasets/git/negotiator/skipping.c:53:52: note: 'const void *' and 'void *' may be implicitly converted
static int compare(const void *a_, const void *b_, void *unused)
                                                   ^
/datasets/git/negotiator/skipping.c:53:48: warning: parameter name 'b_' is too short, expected at least 3 characters [readability-identifier-length]
static int compare(const void *a_, const void *b_, void *unused)
                                               ^
/datasets/git/negotiator/skipping.c:53:58: warning: parameter 'unused' is unused [misc-unused-parameters]
static int compare(const void *a_, const void *b_, void *unused)
                                                         ^
/datasets/git/negotiator/skipping.c:55:22: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        const struct entry *a = a_;
                            ^
/datasets/git/negotiator/skipping.c:56:22: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        const struct entry *b = b_;
                            ^
/datasets/git/negotiator/skipping.c:62:16: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
        struct entry *entry;
                      ^
                            = NULL
/datasets/git/negotiator/skipping.c:63:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        commit->object.flags |= mark | SEEN;
                                ^~~~
/datasets/git/negotiator/skipping.c:63:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        commit->object.flags |= mark | SEEN;
                                       ^
/datasets/git/negotiator/skipping.c:23:16: note: expanded from macro 'SEEN'
#define SEEN            (1U << 4)
                         ^     ~
/datasets/git/negotiator/skipping.c:69:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(mark & COMMON))
              ^~~~
/datasets/git/negotiator/skipping.c:69:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(mark & COMMON))
                     ^
/datasets/git/negotiator/skipping.c:13:18: note: expanded from macro 'COMMON'
#define COMMON          (1U << 2)
                         ^     ~
/datasets/git/negotiator/skipping.c:69:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(mark & COMMON))
                             ^
                              {
/datasets/git/negotiator/skipping.c:78:17: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
        struct object *o = deref_tag(the_repository, parse_object(the_repository, oid), refname, 0);
                       ^
/datasets/git/negotiator/skipping.c:80:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (o && o->type == OBJ_COMMIT)
                                       ^
                                        {
/datasets/git/negotiator/skipping.c:82:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                   COMMON | ADVERTISED | SEEN | POPPED);
                                   ^
/datasets/git/negotiator/skipping.c:13:18: note: expanded from macro 'COMMON'
#define COMMON          (1U << 2)
                         ^     ~
/datasets/git/negotiator/skipping.c:82:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                   COMMON | ADVERTISED | SEEN | POPPED);
                                            ^
/datasets/git/negotiator/skipping.c:19:21: note: expanded from macro 'ADVERTISED'
#define ADVERTISED      (1U << 3)
                         ^     ~
/datasets/git/negotiator/skipping.c:82:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                   COMMON | ADVERTISED | SEEN | POPPED);
                                                         ^
/datasets/git/negotiator/skipping.c:23:16: note: expanded from macro 'SEEN'
#define SEEN            (1U << 4)
                         ^     ~
/datasets/git/negotiator/skipping.c:82:37: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                   COMMON | ADVERTISED | SEEN | POPPED);
                                                                ^
/datasets/git/negotiator/skipping.c:27:18: note: expanded from macro 'POPPED'
#define POPPED          (1U << 5)
                         ^     ~
/datasets/git/negotiator/skipping.c:92:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct commit *c;
        ^
/datasets/git/negotiator/skipping.c:92:17: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        struct commit *c;
                       ^
                         = NULL
/datasets/git/negotiator/skipping.c:92:17: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/negotiator/skipping.c:95:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'c' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((c = prio_queue_get(&queue))) {
               ^
/datasets/git/negotiator/skipping.c:96:23: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                struct commit_list *p;
                                    ^
                                      = NULL
/datasets/git/negotiator/skipping.c:96:23: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/negotiator/skipping.c:97:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (c->object.flags & COMMON)
                                      ^
/datasets/git/negotiator/skipping.c:13:18: note: expanded from macro 'COMMON'
#define COMMON          (1U << 2)
                         ^     ~
/datasets/git/negotiator/skipping.c:97:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (c->object.flags & COMMON)
                                             ^
                                              {
/datasets/git/negotiator/skipping.c:99:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                c->object.flags |= COMMON;
                                   ^
/datasets/git/negotiator/skipping.c:13:18: note: expanded from macro 'COMMON'
#define COMMON          (1U << 2)
                         ^     ~
/datasets/git/negotiator/skipping.c:100:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(c->object.flags & POPPED))
                                        ^
/datasets/git/negotiator/skipping.c:27:18: note: expanded from macro 'POPPED'
#define POPPED          (1U << 5)
                         ^     ~
/datasets/git/negotiator/skipping.c:100:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(c->object.flags & POPPED))
                                                ^
                                                 {
/datasets/git/negotiator/skipping.c:103:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!c->object.parsed)
                                      ^
                                       {
/datasets/git/negotiator/skipping.c:105:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (p = c->parents; p; p = p->next) {
                ^
/datasets/git/negotiator/skipping.c:105:24: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (p = c->parents; p; p = p->next) {
                                     ^
/datasets/git/negotiator/skipping.c:106:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (p->item->object.flags & SEEN)
                                                    ^
/datasets/git/negotiator/skipping.c:23:16: note: expanded from macro 'SEEN'
#define SEEN            (1U << 4)
                         ^     ~
/datasets/git/negotiator/skipping.c:106:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (p->item->object.flags & SEEN)
                                                         ^
                                                          {
/datasets/git/negotiator/skipping.c:122:16: warning: variable 'parent_entry' is not initialized [cppcoreguidelines-init-variables]
        struct entry *parent_entry;
                      ^
                                   = NULL
/datasets/git/negotiator/skipping.c:124:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (to_push->object.flags & SEEN) {
                                    ^
/datasets/git/negotiator/skipping.c:23:16: note: expanded from macro 'SEEN'
#define SEEN            (1U << 4)
                         ^     ~
/datasets/git/negotiator/skipping.c:125:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/negotiator/skipping.c:125:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/negotiator/skipping.c:126:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (to_push->object.flags & POPPED)
                                            ^
/datasets/git/negotiator/skipping.c:27:18: note: expanded from macro 'POPPED'
#define POPPED          (1U << 5)
                         ^     ~
/datasets/git/negotiator/skipping.c:126:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (to_push->object.flags & POPPED)
                                                   ^
                                                    {
/datasets/git/negotiator/skipping.c:136:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < data->rev_list.nr; i++) {
                ^
/datasets/git/negotiator/skipping.c:138:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (parent_entry->commit == to_push)
                                                            ^
                                                             {
/datasets/git/negotiator/skipping.c:148:37: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (entry->commit->object.flags & (COMMON | ADVERTISED)) {
                                           ^
/datasets/git/negotiator/skipping.c:13:18: note: expanded from macro 'COMMON'
#define COMMON          (1U << 2)
                         ^     ~
/datasets/git/negotiator/skipping.c:148:46: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (entry->commit->object.flags & (COMMON | ADVERTISED)) {
                                                    ^
/datasets/git/negotiator/skipping.c:19:21: note: expanded from macro 'ADVERTISED'
#define ADVERTISED      (1U << 3)
                         ^     ~
/datasets/git/negotiator/skipping.c:166:2: note: inferred assignment of ID-dependent value from ID-dependent variable commit [altera-id-dependent-backward-branch]
        struct commit *to_send = NULL;
        ^
/datasets/git/negotiator/skipping.c:168:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'to_send' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (to_send == NULL) {
               ^
/datasets/git/negotiator/skipping.c:169:17: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
                struct entry *entry;
                              ^
                                    = NULL
/datasets/git/negotiator/skipping.c:170:18: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
                struct commit *commit;
                               ^
                                      = NULL
/datasets/git/negotiator/skipping.c:171:23: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                struct commit_list *p;
                                    ^
                                      = NULL
/datasets/git/negotiator/skipping.c:171:23: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/negotiator/skipping.c:174:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (data->rev_list.nr == 0 || data->non_common_revs == 0)
                                                                         ^
                                                                          {
/datasets/git/negotiator/skipping.c:179:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                commit->object.flags |= POPPED;
                                        ^
/datasets/git/negotiator/skipping.c:27:18: note: expanded from macro 'POPPED'
#define POPPED          (1U << 5)
                         ^     ~
/datasets/git/negotiator/skipping.c:180:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(commit->object.flags & COMMON))
                                             ^
/datasets/git/negotiator/skipping.c:13:18: note: expanded from macro 'COMMON'
#define COMMON          (1U << 2)
                         ^     ~
/datasets/git/negotiator/skipping.c:180:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(commit->object.flags & COMMON))
                                                     ^
                                                      {
/datasets/git/negotiator/skipping.c:183:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(commit->object.flags & COMMON) && !entry->ttl)
                                             ^
/datasets/git/negotiator/skipping.c:13:18: note: expanded from macro 'COMMON'
#define COMMON          (1U << 2)
                         ^     ~
/datasets/git/negotiator/skipping.c:183:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(commit->object.flags & COMMON) && !entry->ttl)
                                                                    ^
                                                                     {
/datasets/git/negotiator/skipping.c:187:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (p = commit->parents; p; p = p->next)
                ^
/datasets/git/negotiator/skipping.c:187:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (p = commit->parents; p; p = p->next)
                                          ^
/datasets/git/negotiator/skipping.c:187:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (p = commit->parents; p; p = p->next)
                                                         ^
                                                          {
/datasets/git/negotiator/skipping.c:188:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        parent_pushed |= push_parent(data, entry, p->item);
                        ^~~~~~~~~~~~~
/datasets/git/negotiator/skipping.c:190:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(commit->object.flags & COMMON) && !parent_pushed)
                                             ^
/datasets/git/negotiator/skipping.c:13:18: note: expanded from macro 'COMMON'
#define COMMON          (1U << 2)
                         ^     ~
/datasets/git/negotiator/skipping.c:190:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(commit->object.flags & COMMON) && !parent_pushed)
                                                                       ^
                                                                        {
/datasets/git/negotiator/skipping.c:204:69: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static void known_common(struct fetch_negotiator *n, struct commit *c)
                                                                    ^
/datasets/git/negotiator/skipping.c:206:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (c->object.flags & SEEN)
                              ^
/datasets/git/negotiator/skipping.c:23:16: note: expanded from macro 'SEEN'
#define SEEN            (1U << 4)
                         ^     ~
/datasets/git/negotiator/skipping.c:206:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (c->object.flags & SEEN)
                                   ^
                                    {
/datasets/git/negotiator/skipping.c:208:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        rev_list_push(n->data, c, ADVERTISED);
                                  ^
/datasets/git/negotiator/skipping.c:19:21: note: expanded from macro 'ADVERTISED'
#define ADVERTISED      (1U << 3)
                         ^     ~
/datasets/git/negotiator/skipping.c:211:64: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static void add_tip(struct fetch_negotiator *n, struct commit *c)
                                                               ^
/datasets/git/negotiator/skipping.c:214:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (c->object.flags & SEEN)
                              ^
/datasets/git/negotiator/skipping.c:23:16: note: expanded from macro 'SEEN'
#define SEEN            (1U << 4)
                         ^     ~
/datasets/git/negotiator/skipping.c:214:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (c->object.flags & SEEN)
                                   ^
                                    {
/datasets/git/negotiator/skipping.c:226:59: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static int ack(struct fetch_negotiator *n, struct commit *c)
                                                          ^
/datasets/git/negotiator/skipping.c:228:48: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int known_to_be_common = !!(c->object.flags & COMMON);
                                                      ^
/datasets/git/negotiator/skipping.c:13:18: note: expanded from macro 'COMMON'
#define COMMON          (1U << 2)
                         ^     ~
/datasets/git/negotiator/skipping.c:229:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(c->object.flags & SEEN))
                                ^
/datasets/git/negotiator/skipping.c:23:16: note: expanded from macro 'SEEN'
#define SEEN            (1U << 4)
                         ^     ~
/datasets/git/negotiator/skipping.c:229:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(c->object.flags & SEEN))
                                      ^
                                       {
/datasets/git/negotiator/skipping.c:239:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(n->data);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/negotiator/skipping.c:244:15: warning: variable 'data' is not initialized [cppcoreguidelines-init-variables]
        struct data *data;
                     ^
                          = NULL
/datasets/git/negotiator/skipping.c:253:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (marked)
                   ^
                    {
/datasets/git/notes-cache.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "notes-cache.h"
^        ~~~~~~~~~~~~~~~
         "commit.h"
/datasets/git/notes-cache.c:8:58: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int notes_cache_match_validity(struct repository *r,
                                                         ^
/datasets/git/notes-cache.c:9:11: warning: 2 adjacent parameters of 'notes_cache_match_validity' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                      const char *ref,
                                      ^~~~~~~~~~~~~~~~
/datasets/git/notes-cache.c:9:23: note: the first parameter in the range is 'ref'
                                      const char *ref,
                                                  ^~~
/datasets/git/notes-cache.c:10:23: note: the last parameter in the range is 'validity'
                                      const char *validity)
                                                  ^~~~~~~~
/datasets/git/notes-cache.c:13:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/notes-cache.c:16:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/notes-cache.c:18:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (read_ref(ref, &oid) < 0)
                                    ^
                                     {
/datasets/git/notes-cache.c:22:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!commit)
                    ^
                     {
/datasets/git/notes-cache.c:25:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&pretty_ctx, 0, sizeof(pretty_ctx));
        ^~~~~~
/datasets/git/notes-cache.c:25:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&pretty_ctx, 0, sizeof(pretty_ctx));
        ^~~~~~
/datasets/git/notes-cache.c:35:42: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void notes_cache_init(struct repository *r, struct notes_cache *c,
                                         ^
/datasets/git/notes-cache.c:35:65: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
void notes_cache_init(struct repository *r, struct notes_cache *c,
                                                                ^
/datasets/git/notes-cache.c:36:9: warning: 2 adjacent parameters of 'notes_cache_init' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                      const char *name, const char *validity)
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/notes-cache.c:36:21: note: the first parameter in the range is 'name'
                      const char *name, const char *validity)
                                  ^~~~
/datasets/git/notes-cache.c:36:39: note: the last parameter in the range is 'validity'
                      const char *name, const char *validity)
                                                    ^~~~~~~~
/datasets/git/notes-cache.c:41:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(c, 0, sizeof(*c));
        ^~~~~~
/datasets/git/notes-cache.c:41:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(c, 0, sizeof(*c));
        ^~~~~~
/datasets/git/notes-cache.c:45:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!notes_cache_match_validity(r, ref.buf, validity))
                                                              ^
                                                               {
/datasets/git/notes-cache.c:46:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags |= NOTES_INIT_EMPTY;
                ^~~~~
/datasets/git/notes-cache.c:51:43: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
int notes_cache_write(struct notes_cache *c)
                                          ^
/datasets/git/notes-cache.c:53:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct object_id tree_oid, commit_oid;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/notes-cache.c:56:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !*c->tree.update_ref)
                                 ^
                                  {
/datasets/git/notes-cache.c:58:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!c->tree.dirty)
                           ^
                            {
/datasets/git/notes-cache.c:61:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_notes_tree(&c->tree, &tree_oid))
                                                  ^
                                                   {
/datasets/git/notes-cache.c:64:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        &commit_oid, NULL, NULL) < 0)
                                                     ^
                                                      {
/datasets/git/notes-cache.c:67:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                       NULL, 0, UPDATE_REFS_QUIET_ON_ERR) < 0)
                                                              ^
                                                               {
/datasets/git/notes-cache.c:73:43: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
char *notes_cache_get(struct notes_cache *c, struct object_id *key_oid,
                                          ^
/datasets/git/notes-cache.c:76:26: warning: variable 'value_oid' is not initialized [cppcoreguidelines-init-variables]
        const struct object_id *value_oid;
                                ^
                                          = NULL
/datasets/git/notes-cache.c:77:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/notes-cache.c:78:8: warning: variable 'value' is not initialized [cppcoreguidelines-init-variables]
        char *value;
              ^
                    = NULL
/datasets/git/notes-cache.c:79:16: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size;
                      ^
                           = 0
/datasets/git/notes-cache.c:82:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!value_oid)
                       ^
                        {
/datasets/git/notes-cache.c:90:41: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
int notes_cache_put(struct notes_cache *c, struct object_id *key_oid,
                                        ^
/datasets/git/notes-cache.c:95:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_object_file(data, size, OBJ_BLOB, &value_oid) < 0)
                                                                    ^
                                                                     {
/datasets/git/notes-merge.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "commit.h"
^        ~~~~~~~~~~
         "commit-reach.h"
/datasets/git/notes-merge.c:17:8: warning: accessing fields in struct 'notes_merge_pair' is inefficient due to poor alignment; currently aligned to 4 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct notes_merge_pair {
       ^
/datasets/git/notes-merge.c:17:8: note: use "__attribute__((aligned(128)))" to align struct 'notes_merge_pair' to 128 bytes
/datasets/git/notes-merge.c:21:50: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void init_notes_merge_options(struct repository *r,
                                                 ^
/datasets/git/notes-merge.c:22:38: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                              struct notes_merge_options *o)
                                                          ^
/datasets/git/notes-merge.c:24:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(o, 0, sizeof(struct notes_merge_options));
        ^~~~~~
/datasets/git/notes-merge.c:24:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(o, 0, sizeof(struct notes_merge_options));
        ^~~~~~
/datasets/git/notes-merge.c:33:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0;
            ^
/datasets/git/notes-merge.c:34:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*path && i < the_hash_algo->hexsz) {
        ^
/datasets/git/notes-merge.c:35:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*path != '/')
                                 ^
                                  {
/datasets/git/notes-merge.c:39:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*path || i != the_hash_algo->hexsz)
                                               ^
                                                {
/datasets/git/notes-merge.c:44:12: warning: function 'verify_notes_filepair' has cognitive complexity of 35 (threshold 25) [readability-function-cognitive-complexity]
static int verify_notes_filepair(struct diff_filepair *p, struct object_id *oid)
           ^
/datasets/git/notes-merge.c:46:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        switch (p->status) {
        ^
/datasets/git/notes-merge.c:48:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(p->one->mode == p->two->mode);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/notes-merge.c:48:3: note: nesting level increased to 2
                assert(p->one->mode == p->two->mode);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/notes-merge.c:48:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(p->one->mode == p->two->mode);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/notes-merge.c:48:3: note: +1, nesting level increased to 3
                assert(p->one->mode == p->two->mode);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/notes-merge.c:49:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(!is_null_oid(&p->one->oid));
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/notes-merge.c:49:3: note: nesting level increased to 2
                assert(!is_null_oid(&p->one->oid));
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/notes-merge.c:49:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(!is_null_oid(&p->one->oid));
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/notes-merge.c:49:3: note: +1, nesting level increased to 3
                assert(!is_null_oid(&p->one->oid));
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/notes-merge.c:50:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(!is_null_oid(&p->two->oid));
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/notes-merge.c:50:3: note: nesting level increased to 2
                assert(!is_null_oid(&p->two->oid));
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/notes-merge.c:50:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(!is_null_oid(&p->two->oid));
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/notes-merge.c:50:3: note: +1, nesting level increased to 3
                assert(!is_null_oid(&p->two->oid));
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/notes-merge.c:53:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(is_null_oid(&p->one->oid));
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/notes-merge.c:53:3: note: nesting level increased to 2
                assert(is_null_oid(&p->one->oid));
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/notes-merge.c:53:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(is_null_oid(&p->one->oid));
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/notes-merge.c:53:3: note: +1, nesting level increased to 3
                assert(is_null_oid(&p->one->oid));
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/notes-merge.c:56:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(is_null_oid(&p->two->oid));
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/notes-merge.c:56:3: note: nesting level increased to 2
                assert(is_null_oid(&p->two->oid));
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/notes-merge.c:56:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(is_null_oid(&p->two->oid));
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/notes-merge.c:56:3: note: +1, nesting level increased to 3
                assert(is_null_oid(&p->two->oid));
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/notes-merge.c:61:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(!strcmp(p->one->path, p->two->path));
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/notes-merge.c:61:2: note: nesting level increased to 1
        assert(!strcmp(p->one->path, p->two->path));
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/notes-merge.c:61:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(!strcmp(p->one->path, p->two->path));
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/notes-merge.c:61:2: note: +1, nesting level increased to 2
        assert(!strcmp(p->one->path, p->two->path));
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/notes-merge.c:44:56: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static int verify_notes_filepair(struct diff_filepair *p, struct object_id *oid)
                                                       ^
/datasets/git/notes-merge.c:80:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = last_index < len ? last_index : len - 1;
            ^
/datasets/git/notes-merge.c:81:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int prev_cmp = 0, cmp = -1;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/notes-merge.c:80:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int i = last_index < len ? last_index : len - 1;
        ^
/datasets/git/notes-merge.c:82:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (i >= 0 && i < len) {
        ^
/datasets/git/notes-merge.c:82:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (i >= 0 && i < len) {
               ^
/datasets/git/notes-merge.c:84:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!cmp) /* obj belongs @ i */
                         ^
                          {
/datasets/git/notes-merge.c:85:4: warning: repeated branch in conditional chain [bugprone-branch-clone]
                        break;
                        ^
/datasets/git/notes-merge.c:85:9: note: end of the original
                        break;
                             ^
/datasets/git/notes-merge.c:89:4: note: clone 1 starts here
                        break;
                        ^
/datasets/git/notes-merge.c:86:3: warning: do not use 'else' after 'break' [llvm-else-after-return,readability-else-after-return]
                else if (cmp < 0 && prev_cmp <= 0) /* obj belongs < i */
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/notes-merge.c:86:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (cmp < 0 && prev_cmp <= 0) /* obj belongs < i */
                                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/notes-merge.c:88:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (cmp < 0) /* obj belongs between i-1 and i */
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/notes-merge.c:90:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (cmp > 0 && prev_cmp >= 0) /* obj belongs > i */
                                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/notes-merge.c:98:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (i < 0)
                  ^
                   {
/datasets/git/notes-merge.c:102:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!cmp)
                 ^
                  {
/datasets/git/notes-merge.c:108:4: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memset(list + i, 0, sizeof(struct notes_merge_pair));
                        ^~~~~~
/datasets/git/notes-merge.c:108:4: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                        memset(list + i, 0, sizeof(struct notes_merge_pair));
                        ^~~~~~
/datasets/git/notes-merge.c:115:25: warning: variable 'uninitialized' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct object_id uninitialized = {
                        ^
/datasets/git/notes-merge.c:121:33: warning: function 'diff_tree_remote' has cognitive complexity of 64 (threshold 25) [readability-function-cognitive-complexity]
static struct notes_merge_pair *diff_tree_remote(struct notes_merge_options *o,
                                ^
/datasets/git/notes-merge.c:130:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        trace_printf("\tdiff_tree_remote(base = %.7s, remote = %.7s)\n",
        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/notes-merge.c:130:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        trace_printf("\tdiff_tree_remote(base = %.7s, remote = %.7s)\n",
        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:173:3: note: expanded from macro 'trace_printf_key'
                if (trace_pass_fl(key))                                     \
                ^
/datasets/git/notes-merge.c:142:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < diff_queued_diff.nr; i++) {
        ^
/datasets/git/notes-merge.c:148:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (verify_notes_filepair(p, &obj)) {
                ^
/datasets/git/notes-merge.c:149:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        trace_printf("\t\tCannot merge entry '%s' (%c): "
                        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/notes-merge.c:149:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        trace_printf("\t\tCannot merge entry '%s' (%c): "
                        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:173:3: note: expanded from macro 'trace_printf_key'
                if (trace_pass_fl(key))                                     \
                ^
/datasets/git/notes-merge.c:156:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (occupied) {
                ^
/datasets/git/notes-merge.c:158:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        assert(oideq(&mp->obj, &obj));
                        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/notes-merge.c:158:4: note: nesting level increased to 3
                        assert(oideq(&mp->obj, &obj));
                        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/notes-merge.c:158:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        assert(oideq(&mp->obj, &obj));
                        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/notes-merge.c:158:4: note: +1, nesting level increased to 4
                        assert(oideq(&mp->obj, &obj));
                        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/notes-merge.c:159:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (is_null_oid(&p->one->oid)) { /* addition */
                        ^
/datasets/git/notes-merge.c:160:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                assert(is_null_oid(&mp->remote));
                                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/notes-merge.c:160:5: note: nesting level increased to 4
                                assert(is_null_oid(&mp->remote));
                                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/notes-merge.c:160:5: note: +5, including nesting penalty of 4, nesting level increased to 5
                                assert(is_null_oid(&mp->remote));
                                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/notes-merge.c:160:5: note: +1, nesting level increased to 5
                                assert(is_null_oid(&mp->remote));
                                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/notes-merge.c:162:11: note: +1, nesting level increased to 3
                        } else if (is_null_oid(&p->two->oid)) { /* deletion */
                               ^
/datasets/git/notes-merge.c:163:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                assert(is_null_oid(&mp->base));
                                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/notes-merge.c:163:5: note: nesting level increased to 4
                                assert(is_null_oid(&mp->base));
                                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/notes-merge.c:163:5: note: +5, including nesting penalty of 4, nesting level increased to 5
                                assert(is_null_oid(&mp->base));
                                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/notes-merge.c:163:5: note: +1, nesting level increased to 5
                                assert(is_null_oid(&mp->base));
                                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/notes-merge.c:165:6: note: +1, nesting level increased to 3
                        } else
                          ^
/datasets/git/notes-merge.c:166:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                assert(!"Invalid existing change recorded");
                                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/notes-merge.c:166:5: note: nesting level increased to 4
                                assert(!"Invalid existing change recorded");
                                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/notes-merge.c:166:5: note: +5, including nesting penalty of 4, nesting level increased to 5
                                assert(!"Invalid existing change recorded");
                                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/notes-merge.c:166:5: note: +1, nesting level increased to 5
                                assert(!"Invalid existing change recorded");
                                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/notes-merge.c:167:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/notes-merge.c:174:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                trace_printf("\t\tStored remote change for %s: %.7s -> %.7s\n",
                ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/notes-merge.c:174:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                trace_printf("\t\tStored remote change for %s: %.7s -> %.7s\n",
                ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:173:3: note: expanded from macro 'trace_printf_key'
                if (trace_pass_fl(key))                                     \
                ^
/datasets/git/notes-merge.c:121:78: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static struct notes_merge_pair *diff_tree_remote(struct notes_merge_options *o,
                                                                             ^
/datasets/git/notes-merge.c:127:27: warning: variable 'changes' is not initialized [cppcoreguidelines-init-variables]
        struct notes_merge_pair *changes;
                                 ^
                                         = NULL
/datasets/git/notes-merge.c:128:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, len = 0;
        ^~~~~~~~~~~~~~~
/datasets/git/notes-merge.c:128:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, len = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/notes-merge.c:128:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/notes-merge.c:130:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf("\tdiff_tree_remote(base = %.7s, remote = %.7s)\n",
        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/notes-merge.c:143:25: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct diff_filepair *p = diff_queued_diff.queue[i];
                                      ^
/datasets/git/notes-merge.c:144:28: warning: variable 'mp' is not initialized [cppcoreguidelines-init-variables]
                struct notes_merge_pair *mp;
                                         ^
                                            = NULL
/datasets/git/notes-merge.c:144:28: warning: variable name 'mp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/notes-merge.c:145:7: warning: variable 'occupied' is not initialized [cppcoreguidelines-init-variables]
                int occupied;
                    ^
                             = 0
/datasets/git/notes-merge.c:149:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        trace_printf("\t\tCannot merge entry '%s' (%c): "
                        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/notes-merge.c:165:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        } else
                              ^
                               {
/datasets/git/notes-merge.c:174:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                trace_printf("\t\tStored remote change for %s: %.7s -> %.7s\n",
                ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/notes-merge.c:184:13: warning: function 'diff_tree_local' has cognitive complexity of 66 (threshold 25) [readability-function-cognitive-complexity]
static void diff_tree_local(struct notes_merge_options *o,
            ^
/datasets/git/notes-merge.c:192:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        trace_printf("\tdiff_tree_local(len = %i, base = %.7s, local = %.7s)\n",
        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/notes-merge.c:192:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        trace_printf("\tdiff_tree_local(len = %i, base = %.7s, local = %.7s)\n",
        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:173:3: note: expanded from macro 'trace_printf_key'
                if (trace_pass_fl(key))                                     \
                ^
/datasets/git/notes-merge.c:202:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < diff_queued_diff.nr; i++) {
        ^
/datasets/git/notes-merge.c:208:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (verify_notes_filepair(p, &obj)) {
                ^
/datasets/git/notes-merge.c:209:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        trace_printf("\t\tCannot merge entry '%s' (%c): "
                        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/notes-merge.c:209:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        trace_printf("\t\tCannot merge entry '%s' (%c): "
                        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:173:3: note: expanded from macro 'trace_printf_key'
                if (trace_pass_fl(key))                                     \
                ^
/datasets/git/notes-merge.c:216:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!match) {
                ^
/datasets/git/notes-merge.c:217:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        trace_printf("\t\tIgnoring local-only change for %s: "
                        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/notes-merge.c:217:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        trace_printf("\t\tIgnoring local-only change for %s: "
                        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:173:3: note: expanded from macro 'trace_printf_key'
                if (trace_pass_fl(key))                                     \
                ^
/datasets/git/notes-merge.c:224:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(oideq(&mp->obj, &obj));
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/notes-merge.c:224:3: note: nesting level increased to 2
                assert(oideq(&mp->obj, &obj));
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/notes-merge.c:224:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(oideq(&mp->obj, &obj));
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/notes-merge.c:224:3: note: +1, nesting level increased to 3
                assert(oideq(&mp->obj, &obj));
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/notes-merge.c:225:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (is_null_oid(&p->two->oid)) { /* deletion */
                ^
/datasets/git/notes-merge.c:235:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (oideq(&mp->local, &uninitialized))
                        ^
/datasets/git/notes-merge.c:237:10: note: +1, nesting level increased to 2
                } else if (is_null_oid(&p->one->oid)) { /* addition */
                       ^
/datasets/git/notes-merge.c:246:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        assert(is_null_oid(&mp->local) ||
                        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/notes-merge.c:246:35: note: +1
                        assert(is_null_oid(&mp->local) ||
                                                       ^
/datasets/git/notes-merge.c:246:4: note: nesting level increased to 3
                        assert(is_null_oid(&mp->local) ||
                        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/notes-merge.c:246:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        assert(is_null_oid(&mp->local) ||
                        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/notes-merge.c:246:35: note: +1
                        assert(is_null_oid(&mp->local) ||
                                                       ^
/datasets/git/notes-merge.c:246:4: note: +1, nesting level increased to 4
                        assert(is_null_oid(&mp->local) ||
                        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/notes-merge.c:249:5: note: +1, nesting level increased to 2
                } else { /* modification */
                  ^
/datasets/git/notes-merge.c:255:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        assert(oideq(&p->one->oid, &mp->base));
                        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/notes-merge.c:255:4: note: nesting level increased to 3
                        assert(oideq(&p->one->oid, &mp->base));
                        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/notes-merge.c:255:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        assert(oideq(&p->one->oid, &mp->base));
                        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/notes-merge.c:255:4: note: +1, nesting level increased to 4
                        assert(oideq(&p->one->oid, &mp->base));
                        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/notes-merge.c:256:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        assert(oideq(&mp->local, &uninitialized));
                        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/notes-merge.c:256:4: note: nesting level increased to 3
                        assert(oideq(&mp->local, &uninitialized));
                        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/notes-merge.c:256:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        assert(oideq(&mp->local, &uninitialized));
                        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/notes-merge.c:256:4: note: +1, nesting level increased to 4
                        assert(oideq(&mp->local, &uninitialized));
                        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/notes-merge.c:259:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                trace_printf("\t\tStored local change for %s: %.7s -> %.7s\n",
                ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/notes-merge.c:259:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                trace_printf("\t\tStored local change for %s: %.7s -> %.7s\n",
                ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:173:3: note: expanded from macro 'trace_printf_key'
                if (trace_pass_fl(key))                                     \
                ^
/datasets/git/notes-merge.c:184:57: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static void diff_tree_local(struct notes_merge_options *o,
                                                        ^
/datasets/git/notes-merge.c:190:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/notes-merge.c:190:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/notes-merge.c:192:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf("\tdiff_tree_local(len = %i, base = %.7s, local = %.7s)\n",
        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/notes-merge.c:203:25: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct diff_filepair *p = diff_queued_diff.queue[i];
                                      ^
/datasets/git/notes-merge.c:204:28: warning: variable 'mp' is not initialized [cppcoreguidelines-init-variables]
                struct notes_merge_pair *mp;
                                         ^
                                            = NULL
/datasets/git/notes-merge.c:204:28: warning: variable name 'mp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/notes-merge.c:205:7: warning: variable 'match' is not initialized [cppcoreguidelines-init-variables]
                int match;
                    ^
                          = 0
/datasets/git/notes-merge.c:209:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        trace_printf("\t\tCannot merge entry '%s' (%c): "
                        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/notes-merge.c:217:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        trace_printf("\t\tIgnoring local-only change for %s: "
                        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/notes-merge.c:235:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (oideq(&mp->local, &uninitialized))
                                                              ^
                                                               {
/datasets/git/notes-merge.c:259:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                trace_printf("\t\tStored local change for %s: %.7s -> %.7s\n",
                ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/notes-merge.c:266:68: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static void check_notes_merge_worktree(struct notes_merge_options *o)
                                                                   ^
/datasets/git/notes-merge.c:275:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (advice_enabled(ADVICE_RESOLVE_CONFLICT))
                                                                    ^
                                                                     {
/datasets/git/notes-merge.c:282:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/notes-merge.c:288:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                NOTES_MERGE_WORKTREE "/.test")))
                                                                ^
                                                                 {
/datasets/git/notes-merge.c:292:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else if (!file_exists(git_path(NOTES_MERGE_WORKTREE)))
                                                                ^
                                                                 {
/datasets/git/notes-merge.c:301:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/notes-merge.c:301:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/notes-merge.c:303:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (safe_create_leading_directories_const(path))
                                                        ^
                                                         {
/datasets/git/notes-merge.c:306:48: warning: 0666 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        fd = xopen(path, O_WRONLY | O_EXCL | O_CREAT, 0666);
                                                      ^
/datasets/git/notes-merge.c:308:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (size > 0) {
        ^
/datasets/git/notes-merge.c:308:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'size' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (size > 0) {
               ^
/datasets/git/notes-merge.c:312:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (errno == EPIPE)
                                           ^
                                            {
/datasets/git/notes-merge.c:327:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/notes-merge.c:328:16: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size;
                      ^
                           = 0
/datasets/git/notes-merge.c:331:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!buf)
                 ^
                  {
/datasets/git/notes-merge.c:334:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (type != OBJ_BLOB)
                             ^
                              {
/datasets/git/notes-merge.c:341:61: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static int ll_merge_in_worktree(struct notes_merge_options *o,
                                                            ^
/datasets/git/notes-merge.c:342:30: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                                struct notes_merge_pair *p)
                                                         ^
/datasets/git/notes-merge.c:345:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        mmfile_t base, local, remote;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/notes-merge.c:346:23: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        enum ll_merge_result status;
                             ^
/datasets/git/notes-merge.c:360:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (status == LL_MERGE_BINARY_CONFLICT)
                                               ^
                                                {
/datasets/git/notes-merge.c:363:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((status < 0) || !result_buf.ptr)
                                            ^
                                             {
/datasets/git/notes-merge.c:372:12: warning: function 'merge_one_change_manual' has cognitive complexity of 45 (threshold 25) [readability-function-cognitive-complexity]
static int merge_one_change_manual(struct notes_merge_options *o,
           ^
/datasets/git/notes-merge.c:376:34: note: +1, including nesting penalty of 0, nesting level increased to 1
        const char *lref = o->local_ref ? o->local_ref : "local version";
                                        ^
/datasets/git/notes-merge.c:377:35: note: +1, including nesting penalty of 0, nesting level increased to 1
        const char *rref = o->remote_ref ? o->remote_ref : "remote version";
                                         ^
/datasets/git/notes-merge.c:379:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        trace_printf("\t\t\tmerge_one_change_manual(obj = %.7s, base = %.7s, "
        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/notes-merge.c:379:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        trace_printf("\t\t\tmerge_one_change_manual(obj = %.7s, base = %.7s, "
        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:173:3: note: expanded from macro 'trace_printf_key'
                if (trace_pass_fl(key))                                     \
                ^
/datasets/git/notes-merge.c:385:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!o->has_worktree)
        ^
/datasets/git/notes-merge.c:390:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (o->verbosity >= 2)
        ^
/datasets/git/notes-merge.c:393:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (is_null_oid(&p->local)) {
        ^
/datasets/git/notes-merge.c:395:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(!is_null_oid(&p->remote));
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/notes-merge.c:395:3: note: nesting level increased to 2
                assert(!is_null_oid(&p->remote));
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/notes-merge.c:395:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(!is_null_oid(&p->remote));
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/notes-merge.c:395:3: note: +1, nesting level increased to 3
                assert(!is_null_oid(&p->remote));
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/notes-merge.c:396:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (o->verbosity >= 1)
                ^
/datasets/git/notes-merge.c:402:9: note: +1, nesting level increased to 1
        } else if (is_null_oid(&p->remote)) {
               ^
/datasets/git/notes-merge.c:404:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(!is_null_oid(&p->local));
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/notes-merge.c:404:3: note: nesting level increased to 2
                assert(!is_null_oid(&p->local));
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/notes-merge.c:404:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(!is_null_oid(&p->local));
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/notes-merge.c:404:3: note: +1, nesting level increased to 3
                assert(!is_null_oid(&p->local));
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/notes-merge.c:405:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (o->verbosity >= 1)
                ^
/datasets/git/notes-merge.c:411:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/notes-merge.c:414:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (is_null_oid(&p->base))
                ^
/datasets/git/notes-merge.c:416:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(!is_null_oid(&p->local));
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/notes-merge.c:416:3: note: nesting level increased to 2
                assert(!is_null_oid(&p->local));
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/notes-merge.c:416:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(!is_null_oid(&p->local));
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/notes-merge.c:416:3: note: +1, nesting level increased to 3
                assert(!is_null_oid(&p->local));
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/notes-merge.c:417:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(!is_null_oid(&p->remote));
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/notes-merge.c:417:3: note: nesting level increased to 2
                assert(!is_null_oid(&p->remote));
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/notes-merge.c:417:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(!is_null_oid(&p->remote));
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/notes-merge.c:417:3: note: +1, nesting level increased to 3
                assert(!is_null_oid(&p->remote));
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/notes-merge.c:418:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (o->verbosity >= 1)
                ^
/datasets/git/notes-merge.c:425:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        trace_printf("\t\t\tremoving from partial merge result\n");
        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/notes-merge.c:425:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        trace_printf("\t\t\tremoving from partial merge result\n");
        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:173:3: note: expanded from macro 'trace_printf_key'
                if (trace_pass_fl(key))                                     \
                ^
/datasets/git/notes-merge.c:372:64: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static int merge_one_change_manual(struct notes_merge_options *o,
                                                               ^
/datasets/git/notes-merge.c:373:33: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                                   struct notes_merge_pair *p,
                                                            ^
/datasets/git/notes-merge.c:374:27: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
                                   struct notes_tree *t)
                                                      ^
/datasets/git/notes-merge.c:379:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf("\t\t\tmerge_one_change_manual(obj = %.7s, base = %.7s, "
        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/notes-merge.c:385:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!o->has_worktree)
                             ^
                              {
/datasets/git/notes-merge.c:390:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (o->verbosity >= 2)
                              ^
                               {
/datasets/git/notes-merge.c:396:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (o->verbosity >= 1)
                                      ^
                                       {
/datasets/git/notes-merge.c:405:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (o->verbosity >= 1)
                                      ^
                                       {
/datasets/git/notes-merge.c:414:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_null_oid(&p->base))
                                          ^
                                           {
/datasets/git/notes-merge.c:418:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (o->verbosity >= 1)
                                      ^
                                       {
/datasets/git/notes-merge.c:425:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf("\t\t\tremoving from partial merge result\n");
        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/notes-merge.c:431:57: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static int merge_one_change(struct notes_merge_options *o,
                                                        ^
/datasets/git/notes-merge.c:432:33: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                            struct notes_merge_pair *p, struct notes_tree *t)
                                                     ^
/datasets/git/notes-merge.c:432:55: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
                            struct notes_merge_pair *p, struct notes_tree *t)
                                                                           ^
/datasets/git/notes-merge.c:443:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (o->verbosity >= 2)
                                      ^
                                       {
/datasets/git/notes-merge.c:449:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (o->verbosity >= 2)
                                      ^
                                       {
/datasets/git/notes-merge.c:452:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (add_note(t, &p->obj, &p->remote, combine_notes_overwrite))
                                                                              ^
                                                                               {
/datasets/git/notes-merge.c:456:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (o->verbosity >= 2)
                                      ^
                                       {
/datasets/git/notes-merge.c:459:67: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (add_note(t, &p->obj, &p->remote, combine_notes_concatenate))
                                                                                ^
                                                                                 {
/datasets/git/notes-merge.c:464:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (o->verbosity >= 2)
                                      ^
                                       {
/datasets/git/notes-merge.c:467:69: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (add_note(t, &p->obj, &p->remote, combine_notes_cat_sort_uniq))
                                                                                  ^
                                                                                   {
/datasets/git/notes-merge.c:475:12: warning: function 'merge_changes' has cognitive complexity of 46 (threshold 25) [readability-function-cognitive-complexity]
static int merge_changes(struct notes_merge_options *o,
           ^
/datasets/git/notes-merge.c:481:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        trace_printf("\tmerge_changes(num_changes = %i)\n", *num_changes);
        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/notes-merge.c:481:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        trace_printf("\tmerge_changes(num_changes = %i)\n", *num_changes);
        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:173:3: note: expanded from macro 'trace_printf_key'
                if (trace_pass_fl(key))                                     \
                ^
/datasets/git/notes-merge.c:482:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < *num_changes; i++) {
        ^
/datasets/git/notes-merge.c:484:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                trace_printf("\t\t%.7s: %.7s -> %.7s/%.7s\n",
                ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/notes-merge.c:484:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                trace_printf("\t\t%.7s: %.7s -> %.7s/%.7s\n",
                ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:173:3: note: expanded from macro 'trace_printf_key'
                if (trace_pass_fl(key))                                     \
                ^
/datasets/git/notes-merge.c:489:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (oideq(&p->base, &p->remote)) {
                ^
/datasets/git/notes-merge.c:491:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        trace_printf("\t\t\tskipping (no remote change)\n");
                        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/notes-merge.c:491:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        trace_printf("\t\t\tskipping (no remote change)\n");
                        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:173:3: note: expanded from macro 'trace_printf_key'
                if (trace_pass_fl(key))                                     \
                ^
/datasets/git/notes-merge.c:492:10: note: +1, nesting level increased to 2
                } else if (oideq(&p->local, &p->remote)) {
                       ^
/datasets/git/notes-merge.c:494:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        trace_printf("\t\t\tskipping (local == remote)\n");
                        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/notes-merge.c:494:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        trace_printf("\t\t\tskipping (local == remote)\n");
                        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:173:3: note: expanded from macro 'trace_printf_key'
                if (trace_pass_fl(key))                                     \
                ^
/datasets/git/notes-merge.c:495:10: note: +1, nesting level increased to 2
                } else if (oideq(&p->local, &uninitialized) ||
                       ^
/datasets/git/notes-merge.c:495:47: note: +1
                } else if (oideq(&p->local, &uninitialized) ||
                                                            ^
/datasets/git/notes-merge.c:498:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        trace_printf("\t\t\tno local change, adopted remote\n");
                        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/notes-merge.c:498:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        trace_printf("\t\t\tno local change, adopted remote\n");
                        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:173:3: note: expanded from macro 'trace_printf_key'
                if (trace_pass_fl(key))                                     \
                ^
/datasets/git/notes-merge.c:499:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (add_note(t, &p->obj, &p->remote,
                        ^
/datasets/git/notes-merge.c:502:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/notes-merge.c:504:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        trace_printf("\t\t\tneed content-level merge\n");
                        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/notes-merge.c:504:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        trace_printf("\t\t\tneed content-level merge\n");
                        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:173:3: note: expanded from macro 'trace_printf_key'
                if (trace_pass_fl(key))                                     \
                ^
/datasets/git/notes-merge.c:475:54: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static int merge_changes(struct notes_merge_options *o,
                                                     ^
/datasets/git/notes-merge.c:476:44: warning: pointer parameter 'num_changes' can be pointer to const [readability-non-const-parameter]
                         struct notes_merge_pair *changes, int *num_changes,
                                                                ^
                                                           const 
/datasets/git/notes-merge.c:477:24: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
                         struct notes_tree *t)
                                            ^
/datasets/git/notes-merge.c:479:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, conflicts = 0;
        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/notes-merge.c:479:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, conflicts = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/notes-merge.c:479:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/notes-merge.c:481:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf("\tmerge_changes(num_changes = %i)\n", *num_changes);
        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/notes-merge.c:483:28: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct notes_merge_pair *p = changes + i;
                                         ^
/datasets/git/notes-merge.c:484:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                trace_printf("\t\t%.7s: %.7s -> %.7s/%.7s\n",
                ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/notes-merge.c:491:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        trace_printf("\t\t\tskipping (no remote change)\n");
                        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/notes-merge.c:494:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        trace_printf("\t\t\tskipping (local == remote)\n");
                        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/notes-merge.c:498:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        trace_printf("\t\t\tno local change, adopted remote\n");
                        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/notes-merge.c:500:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                     combine_notes_overwrite))
                                                              ^
                                                               {
/datasets/git/notes-merge.c:504:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        trace_printf("\t\t\tneed content-level merge\n");
                        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/notes-merge.c:512:57: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static int merge_from_diffs(struct notes_merge_options *o,
                                                        ^
/datasets/git/notes-merge.c:516:27: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
                            struct notes_tree *t)
                                               ^
/datasets/git/notes-merge.c:518:27: warning: variable 'changes' is not initialized [cppcoreguidelines-init-variables]
        struct notes_merge_pair *changes;
                                 ^
                                         = NULL
/datasets/git/notes-merge.c:519:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int num_changes, conflicts;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/notes-merge.c:519:6: warning: variable 'num_changes' is not initialized [cppcoreguidelines-init-variables]
        int num_changes, conflicts;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/notes-merge.c:519:19: warning: variable 'conflicts' is not initialized [cppcoreguidelines-init-variables]
        int num_changes, conflicts;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/notes-merge.c:521:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf("\tmerge_from_diffs(base = %.7s, local = %.7s, "
        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/notes-merge.c:531:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (o->verbosity >= 4)
                              ^
                               {
/datasets/git/notes-merge.c:540:5: warning: function 'notes_merge' has cognitive complexity of 62 (threshold 25) [readability-function-cognitive-complexity]
int notes_merge(struct notes_merge_options *o,
    ^
/datasets/git/notes-merge.c:550:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(o->local_ref && o->remote_ref);
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/notes-merge.c:550:22: note: +1
        assert(o->local_ref && o->remote_ref);
                            ^
/datasets/git/notes-merge.c:550:2: note: nesting level increased to 1
        assert(o->local_ref && o->remote_ref);
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/notes-merge.c:550:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(o->local_ref && o->remote_ref);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/notes-merge.c:550:22: note: +1
        assert(o->local_ref && o->remote_ref);
                            ^
/datasets/git/notes-merge.c:550:2: note: +1, nesting level increased to 2
        assert(o->local_ref && o->remote_ref);
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/notes-merge.c:551:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(!strcmp(o->local_ref, local_tree->ref));
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/notes-merge.c:551:2: note: nesting level increased to 1
        assert(!strcmp(o->local_ref, local_tree->ref));
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/notes-merge.c:551:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(!strcmp(o->local_ref, local_tree->ref));
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/notes-merge.c:551:2: note: +1, nesting level increased to 2
        assert(!strcmp(o->local_ref, local_tree->ref));
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/notes-merge.c:554:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        trace_printf("notes_merge(o->local_ref = %s, o->remote_ref = %s)\n",
        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/notes-merge.c:554:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        trace_printf("notes_merge(o->local_ref = %s, o->remote_ref = %s)\n",
        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:173:3: note: expanded from macro 'trace_printf_key'
                if (trace_pass_fl(key))                                     \
                ^
/datasets/git/notes-merge.c:558:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (read_ref_full(o->local_ref, 0, &local_oid, NULL))
        ^
/datasets/git/notes-merge.c:560:7: note: +1, nesting level increased to 1
        else if (!check_refname_format(o->local_ref, 0) &&
             ^
/datasets/git/notes-merge.c:560:50: note: +1
        else if (!check_refname_format(o->local_ref, 0) &&
                                                        ^
/datasets/git/notes-merge.c:563:7: note: +1, nesting level increased to 1
        else if (!(local = lookup_commit_reference(o->repo, &local_oid)))
             ^
/datasets/git/notes-merge.c:566:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        trace_printf("\tlocal commit: %.7s\n", oid_to_hex(&local_oid));
        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/notes-merge.c:566:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        trace_printf("\tlocal commit: %.7s\n", oid_to_hex(&local_oid));
        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:173:3: note: expanded from macro 'trace_printf_key'
                if (trace_pass_fl(key))                                     \
                ^
/datasets/git/notes-merge.c:569:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (get_oid(o->remote_ref, &remote_oid)) {
        ^
/datasets/git/notes-merge.c:574:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!check_refname_format(o->remote_ref, 0)) {
                ^
/datasets/git/notes-merge.c:577:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/notes-merge.c:581:9: note: +1, nesting level increased to 1
        } else if (!(remote = lookup_commit_reference(o->repo, &remote_oid))) {
               ^
/datasets/git/notes-merge.c:585:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        trace_printf("\tremote commit: %.7s\n", oid_to_hex(&remote_oid));
        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/notes-merge.c:585:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        trace_printf("\tremote commit: %.7s\n", oid_to_hex(&remote_oid));
        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:173:3: note: expanded from macro 'trace_printf_key'
                if (trace_pass_fl(key))                                     \
                ^
/datasets/git/notes-merge.c:587:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!local && !remote)
        ^
/datasets/git/notes-merge.c:587:13: note: +1
        if (!local && !remote)
                   ^
/datasets/git/notes-merge.c:590:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!local) {
        ^
/datasets/git/notes-merge.c:593:3: note: +1
                goto found_result;
                ^
/datasets/git/notes-merge.c:595:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!remote) {
        ^
/datasets/git/notes-merge.c:598:3: note: +1
                goto found_result;
                ^
/datasets/git/notes-merge.c:600:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(local && remote);
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/notes-merge.c:600:15: note: +1
        assert(local && remote);
                     ^
/datasets/git/notes-merge.c:600:2: note: nesting level increased to 1
        assert(local && remote);
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/notes-merge.c:600:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(local && remote);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/notes-merge.c:600:15: note: +1
        assert(local && remote);
                     ^
/datasets/git/notes-merge.c:600:2: note: +1, nesting level increased to 2
        assert(local && remote);
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/notes-merge.c:604:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!bases) {
        ^
/datasets/git/notes-merge.c:607:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (o->verbosity >= 4)
                ^
/datasets/git/notes-merge.c:609:9: note: +1, nesting level increased to 1
        } else if (!bases->next) {
               ^
/datasets/git/notes-merge.c:612:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (o->verbosity >= 4)
                ^
/datasets/git/notes-merge.c:615:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/notes-merge.c:619:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (o->verbosity >= 3)
                ^
/datasets/git/notes-merge.c:624:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (o->verbosity >= 4)
        ^
/datasets/git/notes-merge.c:630:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (oideq(&remote->object.oid, base_oid)) {
        ^
/datasets/git/notes-merge.c:632:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (o->verbosity >= 2)
                ^
/datasets/git/notes-merge.c:635:3: note: +1
                goto found_result;
                ^
/datasets/git/notes-merge.c:637:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (oideq(&local->object.oid, base_oid)) {
        ^
/datasets/git/notes-merge.c:639:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (o->verbosity >= 2)
                ^
/datasets/git/notes-merge.c:642:3: note: +1
                goto found_result;
                ^
/datasets/git/notes-merge.c:649:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (result != 0) { /* non-trivial merge (with or without conflicts) */
        ^
/datasets/git/notes-merge.c:661:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        trace_printf("notes_merge(): result = %i, result_oid = %.7s\n",
        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/notes-merge.c:661:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        trace_printf("notes_merge(): result = %i, result_oid = %.7s\n",
        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:173:3: note: expanded from macro 'trace_printf_key'
                if (trace_pass_fl(key))                                     \
                ^
/datasets/git/notes-merge.c:540:45: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
int notes_merge(struct notes_merge_options *o,
                                            ^
/datasets/git/notes-merge.c:544:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct object_id local_oid, remote_oid;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/notes-merge.c:545:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit *local, *remote;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/notes-merge.c:545:17: warning: variable 'local' is not initialized [cppcoreguidelines-init-variables]
        struct commit *local, *remote;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/notes-merge.c:545:25: warning: variable 'remote' is not initialized [cppcoreguidelines-init-variables]
        struct commit *local, *remote;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/notes-merge.c:547:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const struct object_id *base_oid, *base_tree_oid;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/notes-merge.c:547:26: warning: variable 'base_oid' is not initialized [cppcoreguidelines-init-variables]
        const struct object_id *base_oid, *base_tree_oid;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/notes-merge.c:547:37: warning: variable 'base_tree_oid' is not initialized [cppcoreguidelines-init-variables]
        const struct object_id *base_oid, *base_tree_oid;
                                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/notes-merge.c:554:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf("notes_merge(o->local_ref = %s, o->remote_ref = %s)\n",
        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/notes-merge.c:558:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (read_ref_full(o->local_ref, 0, &local_oid, NULL))
                                                             ^
                                                              {
/datasets/git/notes-merge.c:561:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                is_null_oid(&local_oid))
                                        ^
                                         {
/datasets/git/notes-merge.c:563:13: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        else if (!(local = lookup_commit_reference(o->repo, &local_oid)))
                   ^
/datasets/git/notes-merge.c:563:13: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/notes-merge.c:563:13: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/notes-merge.c:563:67: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!(local = lookup_commit_reference(o->repo, &local_oid)))
                                                                         ^
                                                                          {
/datasets/git/notes-merge.c:566:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf("\tlocal commit: %.7s\n", oid_to_hex(&local_oid));
        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/notes-merge.c:581:15: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        } else if (!(remote = lookup_commit_reference(o->repo, &remote_oid))) {
                     ^
/datasets/git/notes-merge.c:581:15: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/notes-merge.c:581:15: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/notes-merge.c:585:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf("\tremote commit: %.7s\n", oid_to_hex(&remote_oid));
        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/notes-merge.c:587:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!local && !remote)
                              ^
                               {
/datasets/git/notes-merge.c:607:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (o->verbosity >= 4)
                                      ^
                                       {
/datasets/git/notes-merge.c:612:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (o->verbosity >= 4)
                                      ^
                                       {
/datasets/git/notes-merge.c:619:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (o->verbosity >= 3)
                                      ^
                                       {
/datasets/git/notes-merge.c:624:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (o->verbosity >= 4)
                              ^
                               {
/datasets/git/notes-merge.c:632:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (o->verbosity >= 2)
                                      ^
                                       {
/datasets/git/notes-merge.c:639:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (o->verbosity >= 2)
                                      ^
                                       {
/datasets/git/notes-merge.c:661:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf("notes_merge(): result = %i, result_oid = %.7s\n",
        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/notes-merge.c:666:52: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
int notes_merge_commit(struct notes_merge_options *o,
                                                   ^
/datasets/git/notes-merge.c:678:7: warning: variable 'dir' is not initialized [cppcoreguidelines-init-variables]
        DIR *dir;
             ^
                 = NULL
/datasets/git/notes-merge.c:679:17: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct dirent *e;
                       ^
                         = NULL
/datasets/git/notes-merge.c:679:17: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/notes-merge.c:683:6: warning: variable 'baselen' is not initialized [cppcoreguidelines-init-variables]
        int baselen;
            ^
                    = 0
/datasets/git/notes-merge.c:686:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (o->verbosity >= 3)
                              ^
                               {
/datasets/git/notes-merge.c:690:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!msg || msg[2] == '\0')
                                   ^
                                    {
/datasets/git/notes-merge.c:695:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!dir)
                 ^
                  {
/datasets/git/notes-merge.c:699:12: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        baselen = path.len;
                  ^
/datasets/git/notes-merge.c:700:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((e = readdir_skip_dot_and_dotdot(dir)) != NULL) {
        ^
/datasets/git/notes-merge.c:700:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'e' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((e = readdir_skip_dot_and_dotdot(dir)) != NULL) {
               ^
/datasets/git/notes-merge.c:701:15: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                struct stat st;
                            ^
/datasets/git/notes-merge.c:702:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                struct object_id obj_oid, blob_oid;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/notes-merge.c:705:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (o->verbosity >= 3)
                                              ^
                                               {
/datasets/git/notes-merge.c:713:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (stat(path.buf, &st))
                                        ^
                                         {
/datasets/git/notes-merge.c:715:79: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (index_path(o->repo->index, &blob_oid, path.buf, &st, HASH_WRITE_OBJECT))
                                                                                            ^
                                                                                             {
/datasets/git/notes-merge.c:717:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (add_note(partial_tree, &obj_oid, &blob_oid, NULL))
                                                                      ^
                                                                       {
/datasets/git/notes-merge.c:720:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (o->verbosity >= 4)
                                      ^
                                       {
/datasets/git/notes-merge.c:729:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (o->verbosity >= 4)
                              ^
                               {
/datasets/git/notes-merge.c:737:51: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
int notes_merge_abort(struct notes_merge_options *o)
                                                  ^
/datasets/git/notes-merge.c:745:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/notes-merge.c:748:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (o->verbosity >= 3)
                              ^
                               {
/datasets/git/notes-utils.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "commit.h"
/datasets/git/notes-utils.c:8:45: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void create_notes_commit(struct repository *r,
                                            ^
/datasets/git/notes-utils.c:9:24: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
                         struct notes_tree *t,
                                            ^
/datasets/git/notes-utils.c:18:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_notes_tree(t, &tree_oid))
                                           ^
                                            {
/datasets/git/notes-utils.c:26:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (parse_commit(parent))
                                                 ^
                                                  {
/datasets/git/notes-utils.c:34:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        NULL))
                              ^
                               {
/datasets/git/notes-utils.c:38:38: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void commit_notes(struct repository *r, struct notes_tree *t, const char *msg)
                                     ^
/datasets/git/notes-utils.c:38:60: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
void commit_notes(struct repository *r, struct notes_tree *t, const char *msg)
                                                           ^
/datasets/git/notes-utils.c:43:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!t)
               ^
                {
/datasets/git/notes-utils.c:45:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!t->initialized || !t->update_ref || !*t->update_ref)
                                                                 ^
                                                                  {
/datasets/git/notes-utils.c:47:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!t->dirty)
                      ^
                       {
/datasets/git/notes-utils.c:62:44: warning: parameter name 'v' is too short, expected at least 3 characters [readability-identifier-length]
int parse_notes_merge_strategy(const char *v, enum notes_merge_strategy *s)
                                           ^
/datasets/git/notes-utils.c:62:74: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
int parse_notes_merge_strategy(const char *v, enum notes_merge_strategy *s)
                                                                         ^
/datasets/git/notes-utils.c:64:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(v, "manual"))
                                 ^
                                  {
/datasets/git/notes-utils.c:66:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(v, "ours"))
                                    ^
                                     {
/datasets/git/notes-utils.c:68:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(v, "theirs"))
                                      ^
                                       {
/datasets/git/notes-utils.c:70:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(v, "union"))
                                     ^
                                      {
/datasets/git/notes-utils.c:72:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(v, "cat_sort_uniq"))
                                             ^
                                              {
/datasets/git/notes-utils.c:74:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/notes-utils.c:80:60: warning: parameter name 'v' is too short, expected at least 3 characters [readability-identifier-length]
static combine_notes_fn parse_combine_notes_fn(const char *v)
                                                           ^
/datasets/git/notes-utils.c:82:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcasecmp(v, "overwrite"))
                                        ^
                                         {
/datasets/git/notes-utils.c:84:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (!strcasecmp(v, "ignore"))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/notes-utils.c:84:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcasecmp(v, "ignore"))
                                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/notes-utils.c:86:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcasecmp(v, "concatenate"))
                                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/notes-utils.c:88:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcasecmp(v, "cat_sort_uniq"))
                                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/notes-utils.c:90:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/notes-utils.c:94:45: warning: parameter name 'k' is too short, expected at least 3 characters [readability-identifier-length]
static int notes_rewrite_config(const char *k, const char *v, void *cb)
                                            ^
/datasets/git/notes-utils.c:94:60: warning: parameter name 'v' is too short, expected at least 3 characters [readability-identifier-length]
static int notes_rewrite_config(const char *k, const char *v, void *cb)
                                                           ^
/datasets/git/notes-utils.c:94:69: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int notes_rewrite_config(const char *k, const char *v, void *cb)
                                                                    ^
/datasets/git/notes-utils.c:96:28: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        struct notes_rewrite_cfg *c = cb;
                                  ^
/datasets/git/notes-utils.c:97:52: warning: 14 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (starts_with(k, "notes.rewrite.") && !strcmp(k+14, c->cmd)) {
                                                          ^
/datasets/git/notes-utils.c:100:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else if (!c->mode_from_env && !strcmp(k, "notes.rewritemode")) {
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/notes-utils.c:101:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!v)
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/notes-utils.c:112:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (starts_with(v, "refs/notes/"))
                                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/notes-utils.c:114:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/notes-utils.c:126:28: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        struct notes_rewrite_cfg *c = xmalloc(sizeof(struct notes_rewrite_cfg));
                                  ^
/datasets/git/notes-utils.c:127:33: warning: function is not thread safe [concurrency-mt-unsafe]
        const char *rewrite_mode_env = getenv(GIT_NOTES_REWRITE_MODE_ENVIRONMENT);
                                       ^
/datasets/git/notes-utils.c:128:33: warning: function is not thread safe [concurrency-mt-unsafe]
        const char *rewrite_refs_env = getenv(GIT_NOTES_REWRITE_REF_ENVIRONMENT);
                                       ^
/datasets/git/notes-utils.c:139:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!c->combine)
                                ^
                                 {
/datasets/git/notes-utils.c:165:53: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
int copy_note_for_rewrite(struct notes_rewrite_cfg *c,
                                                    ^
/datasets/git/notes-utils.c:169:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/notes-utils.c:169:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/notes-utils.c:170:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; c->trees[i]; i++)
        ^
/datasets/git/notes-utils.c:170:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'trees' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; c->trees[i]; i++)
                    ^
/datasets/git/notes-utils.c:170:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; c->trees[i]; i++)
                                     ^
                                      {
/datasets/git/notes-utils.c:175:55: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void finish_copy_notes_for_rewrite(struct repository *r,
                                                      ^
/datasets/git/notes-utils.c:176:34: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                                   struct notes_rewrite_cfg *c,
                                                             ^
./notes-utils.h:38:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        struct notes_tree **trees;
        ^
/datasets/git/notes-utils.c:179:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/notes-utils.c:179:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/notes-utils.c:180:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; c->trees[i]; i++) {
        ^
/datasets/git/notes-utils.c:180:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'trees' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; c->trees[i]; i++) {
                    ^
/datasets/git/notes.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "blob.h"
/datasets/git/notes.c:25:8: warning: accessing fields in struct 'int_node' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct int_node {
       ^
/datasets/git/notes.c:25:8: note: use "__attribute__((aligned(128)))" to align struct 'int_node' to 128 bytes
/datasets/git/notes.c:26:10: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        void *a[16];
                ^
/datasets/git/notes.c:39:8: warning: accessing fields in struct 'leaf_node' is inefficient due to poor alignment; currently aligned to 4 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct leaf_node {
       ^
/datasets/git/notes.c:39:8: note: use "__attribute__((aligned(128)))" to align struct 'leaf_node' to 128 bytes
/datasets/git/notes.c:52:8: warning: accessing fields in struct 'non_note' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct non_note {
       ^
/datasets/git/notes.c:52:8: note: use "__attribute__((aligned(64)))" to align struct 'non_note' to 64 bytes
/datasets/git/notes.c:59:1: warning: replace macro with enum [modernize-macro-to-enum]
#define PTR_TYPE_NULL     0
^~~~~~~~
                      =    ,
/datasets/git/notes.c:59:9: warning: macro 'PTR_TYPE_NULL' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define PTR_TYPE_NULL     0
        ^
/datasets/git/notes.c:60:9: warning: macro 'PTR_TYPE_INTERNAL' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define PTR_TYPE_INTERNAL 1
        ^
/datasets/git/notes.c:61:9: warning: macro 'PTR_TYPE_NOTE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define PTR_TYPE_NOTE     2
        ^
/datasets/git/notes.c:62:9: warning: macro 'PTR_TYPE_SUBTREE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define PTR_TYPE_SUBTREE  3
        ^
/datasets/git/notes.c:74:34: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        (memcmp(key_sha1, subtree_sha1, subtree_sha1[KEY_INDEX]))
                                        ^
                                        (           )
/datasets/git/notes.c:76:19: warning: variable 'default_notes_tree' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
struct notes_tree default_notes_tree;
                  ^
/datasets/git/notes.c:78:27: warning: variable 'display_notes_refs' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct string_list display_notes_refs = STRING_LIST_INIT_NODUP;
                          ^
/datasets/git/notes.c:79:28: warning: variable 'display_notes_trees' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct notes_tree **display_notes_trees;
                           ^
/datasets/git/notes.c:79:28: warning: variable 'display_notes_trees' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/notes.c:81:45: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
static void load_subtree(struct notes_tree *t, struct leaf_node *subtree,
                                            ^
/datasets/git/notes.c:99:15: warning: function 'note_tree_search' is within a recursive call chain [misc-no-recursion]
static void **note_tree_search(struct notes_tree *t, struct int_node **tree,
              ^
/datasets/git/notes.c:99:15: note: example recursive call chain, starting from function 'note_tree_search'
/datasets/git/notes.c:111:4: note: Frame #1: function 'note_tree_search' calls function 'load_subtree' here:
                        load_subtree(t, l, *tree, *n);
                        ^
/datasets/git/notes.c:460:7: note: Frame #2: function 'load_subtree' calls function 'note_tree_insert' here:
                if (note_tree_insert(t, node, n, l, type,
                    ^
/datasets/git/notes.c:254:13: note: Frame #3: function 'note_tree_insert' calls function 'note_tree_search' here:
        void **p = note_tree_search(t, &tree, &n, entry->key_oid.hash);
                   ^
/datasets/git/notes.c:254:13: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/notes.c:99:51: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
static void **note_tree_search(struct notes_tree *t, struct int_node **tree,
                                                  ^
/datasets/git/notes.c:102:20: warning: variable 'l' is not initialized [cppcoreguidelines-init-variables]
        struct leaf_node *l;
                          ^
                            = NULL
/datasets/git/notes.c:102:20: warning: variable name 'l' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/notes.c:103:16: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned char i;
                      ^
                        = 0
/datasets/git/notes.c:103:16: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/notes.c:104:8: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        void *p = (*tree)->a[0];
              ^
/datasets/git/notes.c:106:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (GET_PTR_TYPE(p) == PTR_TYPE_SUBTREE) {
            ^
/datasets/git/notes.c:64:34: note: expanded from macro 'GET_PTR_TYPE'
#define GET_PTR_TYPE(ptr)       ((uintptr_t) (ptr) & 3)
                                 ^                   ~
/datasets/git/notes.c:107:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                l = (struct leaf_node *) CLR_PTR_TYPE(p);
                                         ^
/datasets/git/notes.c:65:44: note: expanded from macro 'CLR_PTR_TYPE'
#define CLR_PTR_TYPE(ptr)       ((void *) ((uintptr_t) (ptr) & ~3))
                                           ^                   ~~
/datasets/git/notes.c:107:28: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                l = (struct leaf_node *) CLR_PTR_TYPE(p);
                                         ^
/datasets/git/notes.c:65:64: note: expanded from macro 'CLR_PTR_TYPE'
#define CLR_PTR_TYPE(ptr)       ((void *) ((uintptr_t) (ptr) & ~3))
                                                               ^~
/datasets/git/notes.c:107:28: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
                l = (struct leaf_node *) CLR_PTR_TYPE(p);
                                         ^
/datasets/git/notes.c:65:34: note: expanded from macro 'CLR_PTR_TYPE'
#define CLR_PTR_TYPE(ptr)       ((void *) ((uintptr_t) (ptr) & ~3))
                                 ^
/datasets/git/notes.c:117:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        i = GET_NIBBLE(*n, key_sha1);
            ^
/datasets/git/notes.c:68:30: note: expanded from macro 'GET_NIBBLE'
#define GET_NIBBLE(n, sha1) ((((sha1)[(n) >> 1]) >> ((~(n) & 0x01) << 2)) & 0x0f)
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/notes.c:119:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        switch (GET_PTR_TYPE(p)) {
                ^
/datasets/git/notes.c:64:34: note: expanded from macro 'GET_PTR_TYPE'
#define GET_PTR_TYPE(ptr)       ((uintptr_t) (ptr) & 3)
                                 ^                   ~
/datasets/git/notes.c:121:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                *tree = CLR_PTR_TYPE(p);
                        ^
/datasets/git/notes.c:65:44: note: expanded from macro 'CLR_PTR_TYPE'
#define CLR_PTR_TYPE(ptr)       ((void *) ((uintptr_t) (ptr) & ~3))
                                           ^                   ~~
/datasets/git/notes.c:121:11: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                *tree = CLR_PTR_TYPE(p);
                        ^
/datasets/git/notes.c:65:64: note: expanded from macro 'CLR_PTR_TYPE'
#define CLR_PTR_TYPE(ptr)       ((void *) ((uintptr_t) (ptr) & ~3))
                                                               ^~
/datasets/git/notes.c:121:11: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
                *tree = CLR_PTR_TYPE(p);
                        ^
/datasets/git/notes.c:65:34: note: expanded from macro 'CLR_PTR_TYPE'
#define CLR_PTR_TYPE(ptr)       ((void *) ((uintptr_t) (ptr) & ~3))
                                 ^
/datasets/git/notes.c:125:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                l = (struct leaf_node *) CLR_PTR_TYPE(p);
                                         ^
/datasets/git/notes.c:65:44: note: expanded from macro 'CLR_PTR_TYPE'
#define CLR_PTR_TYPE(ptr)       ((void *) ((uintptr_t) (ptr) & ~3))
                                           ^                   ~~
/datasets/git/notes.c:125:28: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                l = (struct leaf_node *) CLR_PTR_TYPE(p);
                                         ^
/datasets/git/notes.c:65:64: note: expanded from macro 'CLR_PTR_TYPE'
#define CLR_PTR_TYPE(ptr)       ((void *) ((uintptr_t) (ptr) & ~3))
                                                               ^~
/datasets/git/notes.c:125:28: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
                l = (struct leaf_node *) CLR_PTR_TYPE(p);
                                         ^
/datasets/git/notes.c:65:34: note: expanded from macro 'CLR_PTR_TYPE'
#define CLR_PTR_TYPE(ptr)       ((void *) ((uintptr_t) (ptr) & ~3))
                                 ^
/datasets/git/notes.c:144:60: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
static struct leaf_node *note_tree_find(struct notes_tree *t,
                                                           ^
/datasets/git/notes.c:148:9: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        void **p = note_tree_search(t, &tree, &n, key_sha1);
               ^
/datasets/git/notes.c:149:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (GET_PTR_TYPE(*p) == PTR_TYPE_NOTE) {
            ^
/datasets/git/notes.c:64:34: note: expanded from macro 'GET_PTR_TYPE'
#define GET_PTR_TYPE(ptr)       ((uintptr_t) (ptr) & 3)
                                 ^                   ~
/datasets/git/notes.c:150:21: warning: variable name 'l' is too short, expected at least 3 characters [readability-identifier-length]
                struct leaf_node *l = (struct leaf_node *) CLR_PTR_TYPE(*p);
                                  ^
/datasets/git/notes.c:150:46: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                struct leaf_node *l = (struct leaf_node *) CLR_PTR_TYPE(*p);
                                                           ^
/datasets/git/notes.c:65:44: note: expanded from macro 'CLR_PTR_TYPE'
#define CLR_PTR_TYPE(ptr)       ((void *) ((uintptr_t) (ptr) & ~3))
                                           ^                   ~~
/datasets/git/notes.c:150:46: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                struct leaf_node *l = (struct leaf_node *) CLR_PTR_TYPE(*p);
                                                           ^
/datasets/git/notes.c:65:64: note: expanded from macro 'CLR_PTR_TYPE'
#define CLR_PTR_TYPE(ptr)       ((void *) ((uintptr_t) (ptr) & ~3))
                                                               ^~
/datasets/git/notes.c:150:46: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
                struct leaf_node *l = (struct leaf_node *) CLR_PTR_TYPE(*p);
                                                           ^
/datasets/git/notes.c:65:34: note: expanded from macro 'CLR_PTR_TYPE'
#define CLR_PTR_TYPE(ptr)       ((void *) ((uintptr_t) (ptr) & ~3))
                                 ^
/datasets/git/notes.c:151:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (hasheq(key_sha1, l->key_oid.hash))
                                                      ^
                                                       {
/datasets/git/notes.c:167:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i;
                     ^
                       = 0
/datasets/git/notes.c:167:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/notes.c:168:8: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        void *p = NULL;
              ^
/datasets/git/notes.c:171:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        assert(CLR_PTR_TYPE(parent->a[index]) == tree);
               ^
/datasets/git/notes.c:65:44: note: expanded from macro 'CLR_PTR_TYPE'
#define CLR_PTR_TYPE(ptr)       ((void *) ((uintptr_t) (ptr) & ~3))
                                           ^                   ~~
/usr/include/assert.h:108:20: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                   ^~~~
/datasets/git/notes.c:171:9: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
        assert(CLR_PTR_TYPE(parent->a[index]) == tree);
               ^
/datasets/git/notes.c:65:64: note: expanded from macro 'CLR_PTR_TYPE'
#define CLR_PTR_TYPE(ptr)       ((void *) ((uintptr_t) (ptr) & ~3))
                                                               ^~
/usr/include/assert.h:108:20: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                   ^~~~
/datasets/git/notes.c:171:9: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
        assert(CLR_PTR_TYPE(parent->a[index]) == tree);
               ^
/datasets/git/notes.c:65:34: note: expanded from macro 'CLR_PTR_TYPE'
#define CLR_PTR_TYPE(ptr)       ((void *) ((uintptr_t) (ptr) & ~3))
                                 ^
/datasets/git/notes.c:173:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < 16; i++) {
        ^
/datasets/git/notes.c:173:18: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        for (i = 0; i < 16; i++) {
                        ^
/datasets/git/notes.c:174:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (GET_PTR_TYPE(tree->a[i]) != PTR_TYPE_NULL) {
                    ^
/datasets/git/notes.c:64:34: note: expanded from macro 'GET_PTR_TYPE'
#define GET_PTR_TYPE(ptr)       ((uintptr_t) (ptr) & 3)
                                 ^                   ~
/datasets/git/notes.c:175:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (p) /* more than one entry */
                              ^
                               {
/datasets/git/notes.c:181:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (p && (GET_PTR_TYPE(p) != PTR_TYPE_NOTE))
                  ^
/datasets/git/notes.c:64:34: note: expanded from macro 'GET_PTR_TYPE'
#define GET_PTR_TYPE(ptr)       ((uintptr_t) (ptr) & 3)
                                 ^                   ~
/datasets/git/notes.c:181:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (p && (GET_PTR_TYPE(p) != PTR_TYPE_NOTE))
                                                    ^
                                                     {
/datasets/git/notes.c:197:13: warning: function 'note_tree_remove' is within a recursive call chain [misc-no-recursion]
static void note_tree_remove(struct notes_tree *t,
            ^
/datasets/git/notes.c:197:49: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
static void note_tree_remove(struct notes_tree *t,
                                                ^
/datasets/git/notes.c:201:20: warning: variable 'l' is not initialized [cppcoreguidelines-init-variables]
        struct leaf_node *l;
                          ^
                            = NULL
/datasets/git/notes.c:201:20: warning: variable name 'l' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/notes.c:203:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned char i, j;
        ^~~~~~~~~~~~~~~~~~~
/datasets/git/notes.c:203:16: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned char i, j;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/notes.c:203:16: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/notes.c:203:19: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        unsigned char i, j;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/notes.c:203:19: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/notes.c:204:9: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        void **p = note_tree_search(t, &tree, &n, entry->key_oid.hash);
               ^
/datasets/git/notes.c:206:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        assert(GET_PTR_TYPE(entry) == 0); /* no type bits set */
               ^
/datasets/git/notes.c:64:34: note: expanded from macro 'GET_PTR_TYPE'
#define GET_PTR_TYPE(ptr)       ((uintptr_t) (ptr) & 3)
                                 ^                   ~
/usr/include/assert.h:108:20: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                   ^~~~
/datasets/git/notes.c:207:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (GET_PTR_TYPE(*p) != PTR_TYPE_NOTE)
            ^
/datasets/git/notes.c:64:34: note: expanded from macro 'GET_PTR_TYPE'
#define GET_PTR_TYPE(ptr)       ((uintptr_t) (ptr) & 3)
                                 ^                   ~
/datasets/git/notes.c:207:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (GET_PTR_TYPE(*p) != PTR_TYPE_NOTE)
                                              ^
                                               {
/datasets/git/notes.c:209:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        l = (struct leaf_node *) CLR_PTR_TYPE(*p);
                                 ^
/datasets/git/notes.c:65:44: note: expanded from macro 'CLR_PTR_TYPE'
#define CLR_PTR_TYPE(ptr)       ((void *) ((uintptr_t) (ptr) & ~3))
                                           ^                   ~~
/datasets/git/notes.c:209:27: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
        l = (struct leaf_node *) CLR_PTR_TYPE(*p);
                                 ^
/datasets/git/notes.c:65:64: note: expanded from macro 'CLR_PTR_TYPE'
#define CLR_PTR_TYPE(ptr)       ((void *) ((uintptr_t) (ptr) & ~3))
                                                               ^~
/datasets/git/notes.c:209:27: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
        l = (struct leaf_node *) CLR_PTR_TYPE(*p);
                                 ^
/datasets/git/notes.c:65:34: note: expanded from macro 'CLR_PTR_TYPE'
#define CLR_PTR_TYPE(ptr)       ((void *) ((uintptr_t) (ptr) & ~3))
                                 ^
/datasets/git/notes.c:210:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!oideq(&l->key_oid, &entry->key_oid))
                                                 ^
                                                  {
/datasets/git/notes.c:216:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        *p = SET_PTR_TYPE(NULL, PTR_TYPE_NULL);
             ^
/datasets/git/notes.c:66:44: note: expanded from macro 'SET_PTR_TYPE'
#define SET_PTR_TYPE(ptr, type) ((void *) ((uintptr_t) (ptr) | (type)))
                                           ^                   ~~~~~~
/datasets/git/notes.c:216:7: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
        *p = SET_PTR_TYPE(NULL, PTR_TYPE_NULL);
             ^
/datasets/git/notes.c:66:34: note: expanded from macro 'SET_PTR_TYPE'
#define SET_PTR_TYPE(ptr, type) ((void *) ((uintptr_t) (ptr) | (type)))
                                 ^
/datasets/git/notes.c:219:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!n)
               ^
                {
/datasets/git/notes.c:223:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < n; i++) {
        ^
/datasets/git/notes.c:224:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                j = GET_NIBBLE(i, entry->key_oid.hash);
                    ^
/datasets/git/notes.c:68:30: note: expanded from macro 'GET_NIBBLE'
#define GET_NIBBLE(n, sha1) ((((sha1)[(n) >> 1]) >> ((~(n) & 0x01) << 2)) & 0x0f)
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/notes.c:225:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                parent_stack[i + 1] = CLR_PTR_TYPE(parent_stack[i]->a[j]);
                                      ^
/datasets/git/notes.c:65:44: note: expanded from macro 'CLR_PTR_TYPE'
#define CLR_PTR_TYPE(ptr)       ((void *) ((uintptr_t) (ptr) & ~3))
                                           ^                   ~~
/datasets/git/notes.c:225:25: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                parent_stack[i + 1] = CLR_PTR_TYPE(parent_stack[i]->a[j]);
                                      ^
/datasets/git/notes.c:65:64: note: expanded from macro 'CLR_PTR_TYPE'
#define CLR_PTR_TYPE(ptr)       ((void *) ((uintptr_t) (ptr) & ~3))
                                                               ^~
/datasets/git/notes.c:225:25: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
                parent_stack[i + 1] = CLR_PTR_TYPE(parent_stack[i]->a[j]);
                                      ^
/datasets/git/notes.c:65:34: note: expanded from macro 'CLR_PTR_TYPE'
#define CLR_PTR_TYPE(ptr)       ((void *) ((uintptr_t) (ptr) & ~3))
                                 ^
/datasets/git/notes.c:229:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (i > 0 &&
        ^
/datasets/git/notes.c:231:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                      GET_NIBBLE(i - 1, entry->key_oid.hash)))
                                      ^
/datasets/git/notes.c:68:30: note: expanded from macro 'GET_NIBBLE'
#define GET_NIBBLE(n, sha1) ((((sha1)[(n) >> 1]) >> ((~(n) & 0x01) << 2)) & 0x0f)
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/notes.c:231:11: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                                      GET_NIBBLE(i - 1, entry->key_oid.hash)))
                                      ^
/datasets/git/notes.c:68:55: note: expanded from macro 'GET_NIBBLE'
#define GET_NIBBLE(n, sha1) ((((sha1)[(n) >> 1]) >> ((~(n) & 0x01) << 2)) & 0x0f)
                                                      ^~~~
/datasets/git/notes.c:231:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                      GET_NIBBLE(i - 1, entry->key_oid.hash)))
                                                                              ^
                                                                               {
/datasets/git/notes.c:248:12: warning: function 'note_tree_insert' is within a recursive call chain [misc-no-recursion]
static int note_tree_insert(struct notes_tree *t, struct int_node *tree,
           ^
/datasets/git/notes.c:248:12: warning: function 'note_tree_insert' has cognitive complexity of 41 (threshold 25) [readability-function-cognitive-complexity]
/datasets/git/notes.c:257:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(GET_PTR_TYPE(entry) == 0); /* no type bits set */
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/notes.c:257:2: note: nesting level increased to 1
        assert(GET_PTR_TYPE(entry) == 0); /* no type bits set */
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/notes.c:257:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(GET_PTR_TYPE(entry) == 0); /* no type bits set */
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/notes.c:257:2: note: +1, nesting level increased to 2
        assert(GET_PTR_TYPE(entry) == 0); /* no type bits set */
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/notes.c:259:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        switch (GET_PTR_TYPE(*p)) {
        ^
/datasets/git/notes.c:261:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(!*p);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/notes.c:261:3: note: nesting level increased to 2
                assert(!*p);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/notes.c:261:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(!*p);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/notes.c:261:3: note: +1, nesting level increased to 3
                assert(!*p);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/notes.c:262:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (is_null_oid(&entry->val_oid))
                ^
/datasets/git/notes.c:264:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/notes.c:268:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                switch (type) {
                ^
/datasets/git/notes.c:270:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (oideq(&l->key_oid, &entry->key_oid)) {
                        ^
/datasets/git/notes.c:272:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (oideq(&l->val_oid, &entry->val_oid)) {
                                ^
/datasets/git/notes.c:279:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!ret && is_null_oid(&l->val_oid))
                                ^
/datasets/git/notes.c:279:14: note: +1
                                if (!ret && is_null_oid(&l->val_oid))
                                         ^
/datasets/git/notes.c:286:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!SUBTREE_SHA1_PREFIXCMP(l->key_oid.hash,
                        ^
/datasets/git/notes.c:297:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!SUBTREE_SHA1_PREFIXCMP(entry->key_oid.hash, l->key_oid.hash)) {
                ^
/datasets/git/notes.c:309:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(GET_PTR_TYPE(*p) == PTR_TYPE_NOTE ||
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/notes.c:309:43: note: +1
        assert(GET_PTR_TYPE(*p) == PTR_TYPE_NOTE ||
                                                 ^
/datasets/git/notes.c:309:2: note: nesting level increased to 1
        assert(GET_PTR_TYPE(*p) == PTR_TYPE_NOTE ||
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/notes.c:309:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(GET_PTR_TYPE(*p) == PTR_TYPE_NOTE ||
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/notes.c:309:43: note: +1
        assert(GET_PTR_TYPE(*p) == PTR_TYPE_NOTE ||
                                                 ^
/datasets/git/notes.c:309:2: note: +1, nesting level increased to 2
        assert(GET_PTR_TYPE(*p) == PTR_TYPE_NOTE ||
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/notes.c:311:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (is_null_oid(&entry->val_oid)) { /* skip insertion of empty note */
        ^
/datasets/git/notes.c:318:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ret)
        ^
/datasets/git/notes.c:248:48: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
static int note_tree_insert(struct notes_tree *t, struct int_node *tree,
                                               ^
/datasets/git/notes.c:252:19: warning: variable 'new_node' is not initialized [cppcoreguidelines-init-variables]
        struct int_node *new_node;
                         ^
                                  = NULL
/datasets/git/notes.c:253:20: warning: variable 'l' is not initialized [cppcoreguidelines-init-variables]
        struct leaf_node *l;
                          ^
                            = NULL
/datasets/git/notes.c:253:20: warning: variable name 'l' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/notes.c:254:9: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        void **p = note_tree_search(t, &tree, &n, entry->key_oid.hash);
               ^
/datasets/git/notes.c:257:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        assert(GET_PTR_TYPE(entry) == 0); /* no type bits set */
               ^
/datasets/git/notes.c:64:34: note: expanded from macro 'GET_PTR_TYPE'
#define GET_PTR_TYPE(ptr)       ((uintptr_t) (ptr) & 3)
                                 ^                   ~
/usr/include/assert.h:108:20: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                   ^~~~
/datasets/git/notes.c:258:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        l = (struct leaf_node *) CLR_PTR_TYPE(*p);
                                 ^
/datasets/git/notes.c:65:44: note: expanded from macro 'CLR_PTR_TYPE'
#define CLR_PTR_TYPE(ptr)       ((void *) ((uintptr_t) (ptr) & ~3))
                                           ^                   ~~
/datasets/git/notes.c:258:27: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
        l = (struct leaf_node *) CLR_PTR_TYPE(*p);
                                 ^
/datasets/git/notes.c:65:64: note: expanded from macro 'CLR_PTR_TYPE'
#define CLR_PTR_TYPE(ptr)       ((void *) ((uintptr_t) (ptr) & ~3))
                                                               ^~
/datasets/git/notes.c:258:27: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
        l = (struct leaf_node *) CLR_PTR_TYPE(*p);
                                 ^
/datasets/git/notes.c:65:34: note: expanded from macro 'CLR_PTR_TYPE'
#define CLR_PTR_TYPE(ptr)       ((void *) ((uintptr_t) (ptr) & ~3))
                                 ^
/datasets/git/notes.c:259:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        switch (GET_PTR_TYPE(*p)) {
                ^
/datasets/git/notes.c:64:34: note: expanded from macro 'GET_PTR_TYPE'
#define GET_PTR_TYPE(ptr)       ((uintptr_t) (ptr) & 3)
                                 ^                   ~
/datasets/git/notes.c:262:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_null_oid(&entry->val_oid))
                                                 ^
                                                  {
/datasets/git/notes.c:264:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/notes.c:265:9: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
                        *p = SET_PTR_TYPE(entry, type);
                             ^
/datasets/git/notes.c:66:34: note: expanded from macro 'SET_PTR_TYPE'
#define SET_PTR_TYPE(ptr, type) ((void *) ((uintptr_t) (ptr) | (type)))
                                 ^
/datasets/git/notes.c:268:3: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
                switch (type) {
                ^
/datasets/git/notes.c:279:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!ret && is_null_oid(&l->val_oid))
                                                                     ^
                                                                      {
/datasets/git/notes.c:309:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        assert(GET_PTR_TYPE(*p) == PTR_TYPE_NOTE ||
               ^
/datasets/git/notes.c:64:34: note: expanded from macro 'GET_PTR_TYPE'
#define GET_PTR_TYPE(ptr)       ((uintptr_t) (ptr) & 3)
                                 ^                   ~
/usr/include/assert.h:108:20: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                   ^~~~
/datasets/git/notes.c:310:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
               GET_PTR_TYPE(*p) == PTR_TYPE_SUBTREE);
               ^
/datasets/git/notes.c:64:34: note: expanded from macro 'GET_PTR_TYPE'
#define GET_PTR_TYPE(ptr)       ((uintptr_t) (ptr) & 3)
                                 ^                   ~
/usr/include/assert.h:108:20: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                   ^~~~
/datasets/git/notes.c:316:48: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ret = note_tree_insert(t, new_node, n + 1, l, GET_PTR_TYPE(*p),
                                                      ^
/datasets/git/notes.c:64:34: note: expanded from macro 'GET_PTR_TYPE'
#define GET_PTR_TYPE(ptr)       ((uintptr_t) (ptr) & 3)
                                 ^                   ~
/datasets/git/notes.c:318:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/notes.c:320:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        *p = SET_PTR_TYPE(new_node, PTR_TYPE_INTERNAL);
             ^
/datasets/git/notes.c:66:44: note: expanded from macro 'SET_PTR_TYPE'
#define SET_PTR_TYPE(ptr, type) ((void *) ((uintptr_t) (ptr) | (type)))
                                           ^                   ~~~~~~
/datasets/git/notes.c:320:7: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
        *p = SET_PTR_TYPE(new_node, PTR_TYPE_INTERNAL);
             ^
/datasets/git/notes.c:66:34: note: expanded from macro 'SET_PTR_TYPE'
#define SET_PTR_TYPE(ptr, type) ((void *) ((uintptr_t) (ptr) | (type)))
                                 ^
/datasets/git/notes.c:325:13: warning: function 'note_tree_free' is within a recursive call chain [misc-no-recursion]
static void note_tree_free(struct int_node *tree)
            ^
/datasets/git/notes.c:325:13: note: example recursive call chain, starting from function 'note_tree_free'
/datasets/git/notes.c:332:4: note: Frame #1: function 'note_tree_free' calls function 'note_tree_free' here:
                        note_tree_free(CLR_PTR_TYPE(p));
                        ^
/datasets/git/notes.c:332:4: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/notes.c:327:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i;
                     ^
                       = 0
/datasets/git/notes.c:327:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/notes.c:328:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < 16; i++) {
        ^
/datasets/git/notes.c:328:18: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        for (i = 0; i < 16; i++) {
                        ^
/datasets/git/notes.c:329:9: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                void *p = tree->a[i];
                      ^
/datasets/git/notes.c:330:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                switch (GET_PTR_TYPE(p)) {
                        ^
/datasets/git/notes.c:64:34: note: expanded from macro 'GET_PTR_TYPE'
#define GET_PTR_TYPE(ptr)       ((uintptr_t) (ptr) & 3)
                                 ^                   ~
/datasets/git/notes.c:332:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        note_tree_free(CLR_PTR_TYPE(p));
                                       ^
/datasets/git/notes.c:65:44: note: expanded from macro 'CLR_PTR_TYPE'
#define CLR_PTR_TYPE(ptr)       ((void *) ((uintptr_t) (ptr) & ~3))
                                           ^                   ~~
/datasets/git/notes.c:332:19: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                        note_tree_free(CLR_PTR_TYPE(p));
                                       ^
/datasets/git/notes.c:65:64: note: expanded from macro 'CLR_PTR_TYPE'
#define CLR_PTR_TYPE(ptr)       ((void *) ((uintptr_t) (ptr) & ~3))
                                                               ^~
/datasets/git/notes.c:332:19: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
                        note_tree_free(CLR_PTR_TYPE(p));
                                       ^
/datasets/git/notes.c:65:34: note: expanded from macro 'CLR_PTR_TYPE'
#define CLR_PTR_TYPE(ptr)       ((void *) ((uintptr_t) (ptr) & ~3))
                                 ^
/datasets/git/notes.c:336:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        free(CLR_PTR_TYPE(p));
                             ^
/datasets/git/notes.c:65:44: note: expanded from macro 'CLR_PTR_TYPE'
#define CLR_PTR_TYPE(ptr)       ((void *) ((uintptr_t) (ptr) & ~3))
                                           ^                   ~~
/datasets/git/notes.c:336:9: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                        free(CLR_PTR_TYPE(p));
                             ^
/datasets/git/notes.c:65:64: note: expanded from macro 'CLR_PTR_TYPE'
#define CLR_PTR_TYPE(ptr)       ((void *) ((uintptr_t) (ptr) & ~3))
                                                               ^~
/datasets/git/notes.c:336:9: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
                        free(CLR_PTR_TYPE(p));
                             ^
/datasets/git/notes.c:65:34: note: expanded from macro 'CLR_PTR_TYPE'
#define CLR_PTR_TYPE(ptr)       ((void *) ((uintptr_t) (ptr) & ~3))
                                 ^
/datasets/git/notes.c:341:48: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static int non_note_cmp(const struct non_note *a, const struct non_note *b)
                                               ^
/datasets/git/notes.c:341:74: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static int non_note_cmp(const struct non_note *a, const struct non_note *b)
                                                                         ^
/datasets/git/notes.c:347:45: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
static void add_non_note(struct notes_tree *t, char *path,
                                            ^
/datasets/git/notes.c:350:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct non_note *p = t->prev_non_note, *n;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/notes.c:350:19: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        struct non_note *p = t->prev_non_note, *n;
                         ^
/datasets/git/notes.c:350:42: warning: variable 'n' is not initialized [cppcoreguidelines-init-variables]
        struct non_note *p = t->prev_non_note, *n;
                                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/notes.c:350:42: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/notes.c:363:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (non_note_cmp(p, n) < 0)
                                   ^
                                    {
/datasets/git/notes.c:365:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (non_note_cmp(t->first_non_note, n) <= 0)
                                                         ^
                                                          {
/datasets/git/notes.c:375:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (p->next && non_note_cmp(p->next, n) <= 0)
        ^
/datasets/git/notes.c:375:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (p->next && non_note_cmp(p->next, n) <= 0)
               ^
/datasets/git/notes.c:375:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (p->next && non_note_cmp(p->next, n) <= 0)
                                                        ^
                                                         {
/datasets/git/notes.c:392:13: warning: function 'load_subtree' is within a recursive call chain [misc-no-recursion]
static void load_subtree(struct notes_tree *t, struct leaf_node *subtree,
            ^
/datasets/git/notes.c:392:13: warning: function 'load_subtree' has cognitive complexity of 28 (threshold 25) [readability-function-cognitive-complexity]
/datasets/git/notes.c:403:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!buf)
        ^
/datasets/git/notes.c:408:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (prefix_len >= hashsz)
        ^
/datasets/git/notes.c:410:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (prefix_len * 2 < n)
        ^
/datasets/git/notes.c:413:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (tree_entry(&desc, &entry)) {
        ^
/datasets/git/notes.c:418:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (path_len == 2 * (hashsz - prefix_len)) {
                ^
/datasets/git/notes.c:421:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!S_ISREG(entry.mode))
                        ^
/datasets/git/notes.c:425:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (hex_to_bytes(object_oid.hash + prefix_len, entry.path,
                        ^
/datasets/git/notes.c:430:10: note: +1, nesting level increased to 2
                } else if (path_len == 2) {
                       ^
/datasets/git/notes.c:434:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!S_ISDIR(entry.mode))
                        ^
/datasets/git/notes.c:438:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (hex_to_bytes(object_oid.hash + len++, entry.path, 1))
                        ^
/datasets/git/notes.c:450:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/notes.c:452:4: note: +1
                        goto handle_non_note;
                        ^
/datasets/git/notes.c:460:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (note_tree_insert(t, node, n, l, type,
                ^
/datasets/git/notes.c:464:30: note: +3, including nesting penalty of 2, nesting level increased to 3
                            type == PTR_TYPE_NOTE ? "note" : "subtree",
                                                  ^
/datasets/git/notes.c:483:4: note: +2, including nesting penalty of 1, nesting level increased to 2
                        for (i = 0; i < prefix_len; i++) {
                        ^
/datasets/git/notes.c:392:45: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
static void load_subtree(struct notes_tree *t, struct leaf_node *subtree,
                                            ^
/datasets/git/notes.c:396:9: warning: variable 'prefix_len' is not initialized [cppcoreguidelines-init-variables]
        size_t prefix_len;
               ^
                          = 0
/datasets/git/notes.c:397:8: warning: variable 'buf' is not initialized [cppcoreguidelines-init-variables]
        void *buf;
              ^
                  = NULL
/datasets/git/notes.c:403:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!buf)
                 ^
                  {
/datasets/git/notes.c:408:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prefix_len >= hashsz)
                                 ^
                                  {
/datasets/git/notes.c:410:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prefix_len * 2 < n)
                               ^
                                {
/datasets/git/notes.c:412:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(object_oid.hash, subtree->key_oid.hash, prefix_len);
        ^~~~~~
/datasets/git/notes.c:412:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(object_oid.hash, subtree->key_oid.hash, prefix_len);
        ^~~~~~
/datasets/git/notes.c:414:17: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
                unsigned char type;
                              ^
                                   = 0
/datasets/git/notes.c:415:21: warning: variable 'l' is not initialized [cppcoreguidelines-init-variables]
                struct leaf_node *l;
                                  ^
                                    = NULL
/datasets/git/notes.c:415:21: warning: variable name 'l' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/notes.c:421:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!S_ISREG(entry.mode))
                                                 ^
                                                  {
/datasets/git/notes.c:426:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                         hashsz - prefix_len))
                                                              ^
                                                               {
/datasets/git/notes.c:434:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!S_ISDIR(entry.mode))
                             ^
/usr/include/x86_64-linux-gnu/sys/stat.h:125:24: note: expanded from macro 'S_ISDIR'
#define S_ISDIR(mode)    __S_ISTYPE((mode), __S_IFDIR)
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/sys/stat.h:123:34: note: expanded from macro '__S_ISTYPE'
#define __S_ISTYPE(mode, mask)  (((mode) & __S_IFMT) == (mask))
                                  ^        ~~~~~~~~
/datasets/git/notes.c:396:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        size_t prefix_len;
        ^
/datasets/git/notes.c:434:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!S_ISDIR(entry.mode))
                                                 ^
                                                  {
/datasets/git/notes.c:438:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (hex_to_bytes(object_oid.hash + len++, entry.path, 1))
                                                                                 ^
                                                                                  {
/datasets/git/notes.c:446:4: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memset(object_oid.hash + len, 0, hashsz - len - 1);
                        ^~~~~~
/datasets/git/notes.c:446:4: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                        memset(object_oid.hash + len, 0, hashsz - len - 1);
                        ^~~~~~
/datasets/git/notes.c:461:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                     combine_notes_concatenate))
                                                                ^
                                                                 {
/datasets/git/notes.c:481:16: warning: variable name 'q' is too short, expected at least 3 characters [readability-identifier-length]
                        const char *q = oid_to_hex(&subtree->key_oid);
                                    ^
/datasets/git/notes.c:482:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                        size_t i;
                               ^
                                 = 0
/datasets/git/notes.c:482:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/notes.c:483:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = 0; i < prefix_len; i++) {
                        ^
/datasets/git/notes.c:483:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'prefix_len' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (i = 0; i < prefix_len; i++) {
                                    ^
/datasets/git/notes.c:522:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i;
                     ^
                       = 0
/datasets/git/notes.c:522:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/notes.c:523:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((n % 2) || (n > 2 * fanout))
                                        ^
                                         {
/datasets/git/notes.c:525:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < 16; i++) {
        ^
/datasets/git/notes.c:525:18: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        for (i = 0; i < 16; i++) {
                        ^
/datasets/git/notes.c:526:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                switch (GET_PTR_TYPE(tree->a[i])) {
                        ^
/datasets/git/notes.c:64:34: note: expanded from macro 'GET_PTR_TYPE'
#define GET_PTR_TYPE(ptr)       ((uintptr_t) (ptr) & 3)
                                 ^                   ~
/datasets/git/notes.c:538:68: warning: macro replacement list should be enclosed in parentheses [bugprone-macro-parentheses]
#define FANOUT_PATH_MAX GIT_MAX_HEXSZ + FANOUT_PATH_SEPARATORS_MAX + 1
                                                                   ^
                        (                                             )
/datasets/git/notes.c:543:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned int i = 0, j = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/notes.c:543:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned int i = 0, j = 0;
                     ^
/datasets/git/notes.c:543:22: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned int i = 0, j = 0;
                            ^
/datasets/git/notes.c:546:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (fanout) {
        ^
/datasets/git/notes.c:555:12: warning: function 'for_each_note_helper' is within a recursive call chain [misc-no-recursion]
static int for_each_note_helper(struct notes_tree *t, struct int_node *tree,
           ^
/datasets/git/notes.c:555:12: note: example recursive call chain, starting from function 'for_each_note_helper'
/datasets/git/notes.c:572:10: note: Frame #1: function 'for_each_note_helper' calls function 'for_each_note_helper' here:
                        ret = for_each_note_helper(t, CLR_PTR_TYPE(p), n + 1,
                              ^
/datasets/git/notes.c:572:10: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/notes.c:555:12: warning: function 'for_each_note_helper' has cognitive complexity of 28 (threshold 25) [readability-function-cognitive-complexity]
static int for_each_note_helper(struct notes_tree *t, struct int_node *tree,
           ^
/datasets/git/notes.c:566:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < 16; i++) {
        ^
/datasets/git/notes.c:569:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                switch (GET_PTR_TYPE(p)) {
                ^
/datasets/git/notes.c:591:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (n < 2 * fanout &&
                        ^
/datasets/git/notes.c:591:23: note: +1
                        if (n < 2 * fanout &&
                                           ^
/datasets/git/notes.c:596:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                assert(path_len < FANOUT_PATH_MAX - 1);
                                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/notes.c:596:5: note: nesting level increased to 4
                                assert(path_len < FANOUT_PATH_MAX - 1);
                                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/notes.c:596:5: note: +5, including nesting penalty of 4, nesting level increased to 5
                                assert(path_len < FANOUT_PATH_MAX - 1);
                                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/notes.c:596:5: note: +1, nesting level increased to 5
                                assert(path_len < FANOUT_PATH_MAX - 1);
                                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/notes.c:601:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (path[path_len - 1] != '/')
                                ^
/datasets/git/notes.c:608:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (n >= 2 * fanout ||
                        ^
/datasets/git/notes.c:608:24: note: +1
                        if (n >= 2 * fanout ||
                                            ^
/datasets/git/notes.c:614:5: note: +1
                                goto redo;
                                ^
/datasets/git/notes.c:625:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ret)
                ^
/datasets/git/notes.c:555:52: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
static int for_each_note_helper(struct notes_tree *t, struct int_node *tree,
                                                   ^
/datasets/git/notes.c:557:16: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
                each_note_fn fn, void *cb_data)
                             ^
/datasets/git/notes.c:559:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i;
                     ^
                       = 0
/datasets/git/notes.c:559:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/notes.c:560:8: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        void *p;
              ^
                = NULL
/datasets/git/notes.c:560:8: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/notes.c:562:20: warning: variable 'l' is not initialized [cppcoreguidelines-init-variables]
        struct leaf_node *l;
                          ^
                            = NULL
/datasets/git/notes.c:562:20: warning: variable name 'l' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/notes.c:566:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < 16; i++) {
        ^
/datasets/git/notes.c:566:18: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        for (i = 0; i < 16; i++) {
                        ^
/datasets/git/notes.c:569:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                switch (GET_PTR_TYPE(p)) {
                        ^
/datasets/git/notes.c:64:34: note: expanded from macro 'GET_PTR_TYPE'
#define GET_PTR_TYPE(ptr)       ((uintptr_t) (ptr) & 3)
                                 ^                   ~
/datasets/git/notes.c:572:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ret = for_each_note_helper(t, CLR_PTR_TYPE(p), n + 1,
                                                      ^
/datasets/git/notes.c:65:44: note: expanded from macro 'CLR_PTR_TYPE'
#define CLR_PTR_TYPE(ptr)       ((void *) ((uintptr_t) (ptr) & ~3))
                                           ^                   ~~
/datasets/git/notes.c:572:34: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                        ret = for_each_note_helper(t, CLR_PTR_TYPE(p), n + 1,
                                                      ^
/datasets/git/notes.c:65:64: note: expanded from macro 'CLR_PTR_TYPE'
#define CLR_PTR_TYPE(ptr)       ((void *) ((uintptr_t) (ptr) & ~3))
                                                               ^~
/datasets/git/notes.c:572:34: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
                        ret = for_each_note_helper(t, CLR_PTR_TYPE(p), n + 1,
                                                      ^
/datasets/git/notes.c:65:34: note: expanded from macro 'CLR_PTR_TYPE'
#define CLR_PTR_TYPE(ptr)       ((void *) ((uintptr_t) (ptr) & ~3))
                                 ^
/datasets/git/notes.c:576:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        l = (struct leaf_node *) CLR_PTR_TYPE(p);
                                                 ^
/datasets/git/notes.c:65:44: note: expanded from macro 'CLR_PTR_TYPE'
#define CLR_PTR_TYPE(ptr)       ((void *) ((uintptr_t) (ptr) & ~3))
                                           ^                   ~~
/datasets/git/notes.c:576:29: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                        l = (struct leaf_node *) CLR_PTR_TYPE(p);
                                                 ^
/datasets/git/notes.c:65:64: note: expanded from macro 'CLR_PTR_TYPE'
#define CLR_PTR_TYPE(ptr)       ((void *) ((uintptr_t) (ptr) & ~3))
                                                               ^~
/datasets/git/notes.c:576:29: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
                        l = (struct leaf_node *) CLR_PTR_TYPE(p);
                                                 ^
/datasets/git/notes.c:65:34: note: expanded from macro 'CLR_PTR_TYPE'
#define CLR_PTR_TYPE(ptr)       ((void *) ((uintptr_t) (ptr) & ~3))
                                 ^
/datasets/git/notes.c:592:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            flags & FOR_EACH_NOTE_YIELD_SUBTREES) {
                            ^~~~~
/datasets/git/notes.c:601:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (path[path_len - 1] != '/')
                                                              ^
                                                               {
/datasets/git/notes.c:609:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !(flags & FOR_EACH_NOTE_DONT_UNPACK_SUBTREES)) {
                              ^~~~~
/datasets/git/notes.c:618:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        l = (struct leaf_node *) CLR_PTR_TYPE(p);
                                                 ^
/datasets/git/notes.c:65:44: note: expanded from macro 'CLR_PTR_TYPE'
#define CLR_PTR_TYPE(ptr)       ((void *) ((uintptr_t) (ptr) & ~3))
                                           ^                   ~~
/datasets/git/notes.c:618:29: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                        l = (struct leaf_node *) CLR_PTR_TYPE(p);
                                                 ^
/datasets/git/notes.c:65:64: note: expanded from macro 'CLR_PTR_TYPE'
#define CLR_PTR_TYPE(ptr)       ((void *) ((uintptr_t) (ptr) & ~3))
                                                               ^~
/datasets/git/notes.c:618:29: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
                        l = (struct leaf_node *) CLR_PTR_TYPE(p);
                                                 ^
/datasets/git/notes.c:65:34: note: expanded from macro 'CLR_PTR_TYPE'
#define CLR_PTR_TYPE(ptr)       ((void *) ((uintptr_t) (ptr) & ~3))
                                 ^
/datasets/git/notes.c:625:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret)
                        ^
                         {
/datasets/git/notes.c:631:8: warning: accessing fields in struct 'tree_write_stack' is inefficient due to padding; only needs 34 bytes but is using 40 bytes [altera-struct-pack-align]
struct tree_write_stack {
       ^
/datasets/git/notes.c:631:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'tree_write_stack'
/datasets/git/notes.c:631:8: warning: accessing fields in struct 'tree_write_stack' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct tree_write_stack {
       ^
/datasets/git/notes.c:631:8: note: use "__attribute__((aligned(64)))" to align struct 'tree_write_stack' to 64 bytes
/datasets/git/notes.c:656:27: warning: variable 'n' is not initialized [cppcoreguidelines-init-variables]
        struct tree_write_stack *n;
                                 ^
                                   = NULL
/datasets/git/notes.c:656:27: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/notes.c:662:23: warning: 256 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        strbuf_init(&n->buf, 256 * (32 + the_hash_algo->hexsz)); /* assume 256 entries per tree */
                             ^
/datasets/git/notes.c:662:30: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        strbuf_init(&n->buf, 256 * (32 + the_hash_algo->hexsz)); /* assume 256 entries per tree */
                                    ^
/datasets/git/notes.c:669:12: warning: function 'tree_write_stack_finish_subtree' is within a recursive call chain [misc-no-recursion]
static int tree_write_stack_finish_subtree(struct tree_write_stack *tws)
           ^
/datasets/git/notes.c:669:12: note: example recursive call chain, starting from function 'tree_write_stack_finish_subtree'
/datasets/git/notes.c:675:9: note: Frame #1: function 'tree_write_stack_finish_subtree' calls function 'tree_write_stack_finish_subtree' here:
                ret = tree_write_stack_finish_subtree(n);
                      ^
/datasets/git/notes.c:675:9: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/notes.c:671:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/notes.c:672:27: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
        struct tree_write_stack *n = tws->next;
                                 ^
/datasets/git/notes.c:672:31: warning: Access to field 'next' results in a dereference of a null pointer (loaded from variable 'tws') [clang-analyzer-core.NullDereference]
        struct tree_write_stack *n = tws->next;
                                     ^
/datasets/git/notes.c:1179:6: note: Assuming 't' is non-null
        if (!t)
            ^~
/datasets/git/notes.c:1179:2: note: Taking false branch
        if (!t)
        ^
/datasets/git/notes.c:1181:9: note: Assuming field 'initialized' is not equal to 0
        assert(t->initialized);
               ^
/usr/include/assert.h:109:11: note: expanded from macro 'assert'
      if (expr)                                                         \
          ^~~~
/datasets/git/notes.c:1181:2: note: Taking true branch
        assert(t->initialized);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/notes.c:1194:8: note: Calling 'for_each_note'
        ret = for_each_note(t, flags, write_each_note, &cb_data) ||
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/notes.c:1166:7: note: 't' is non-null
        if (!t)
             ^
/datasets/git/notes.c:1166:2: note: Taking false branch
        if (!t)
        ^
/datasets/git/notes.c:1168:12: note: Field 'initialized' is not equal to 0
        assert(t->initialized);
                  ^
/datasets/git/notes.c:1168:2: note: Taking true branch
        assert(t->initialized);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/notes.c:1169:9: note: Value assigned to 'cb_data.root'
        return for_each_note_helper(t, t->root, 0, 0, flags, fn, cb_data);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/notes.c:1194:8: note: Returning from 'for_each_note'
        ret = for_each_note(t, flags, write_each_note, &cb_data) ||
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/notes.c:1194:8: note: Assuming the condition is false
        ret = for_each_note(t, flags, write_each_note, &cb_data) ||
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/notes.c:1194:8: note: Left side of '||' is false
/datasets/git/notes.c:1195:8: note: Calling 'write_each_non_note_until'
              write_each_non_note_until(NULL, &cb_data) ||
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/notes.c:737:23: note: Assuming 'p' is non-null
        struct non_note *n = p ? p->next : *d->nn_list;
                             ^
/datasets/git/notes.c:737:23: note: '?' condition is true
/datasets/git/notes.c:739:9: note: Assuming 'n' is non-null
        while (n && (!note_path || (cmp = strcmp(n->path, note_path)) <= 0)) {
               ^
/datasets/git/notes.c:739:9: note: Left side of '&&' is true
/datasets/git/notes.c:739:16: note: 'note_path' is null
        while (n && (!note_path || (cmp = strcmp(n->path, note_path)) <= 0)) {
                      ^~~~~~~~~
/datasets/git/notes.c:739:26: note: Left side of '||' is true
        while (n && (!note_path || (cmp = strcmp(n->path, note_path)) <= 0)) {
                                ^
/datasets/git/notes.c:740:7: note: 'note_path' is null
                if (note_path && cmp == 0)
                    ^~~~~~~~~
/datasets/git/notes.c:740:17: note: Left side of '&&' is false
                if (note_path && cmp == 0)
                              ^
/datasets/git/notes.c:743:33: note: Passing value via 1st parameter 'tws'
                        ret = write_each_note_helper(d->root, n->path, n->mode,
                                                     ^~~~~~~
/datasets/git/notes.c:743:10: note: Calling 'write_each_note_helper'
                        ret = write_each_note_helper(d->root, n->path, n->mode,
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/notes.c:699:9: note: Assuming 'tws' is null
        while (tws && 3 * n < path_len &&
               ^~~
/datasets/git/notes.c:699:13: note: Left side of '&&' is false
        while (tws && 3 * n < path_len &&
                   ^
/datasets/git/notes.c:706:40: note: Passing null pointer value via 1st parameter 'tws'
        ret = tree_write_stack_finish_subtree(tws);
                                              ^~~
/datasets/git/notes.c:706:8: note: Calling 'tree_write_stack_finish_subtree'
        ret = tree_write_stack_finish_subtree(tws);
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/notes.c:672:31: note: Access to field 'next' results in a dereference of a null pointer (loaded from variable 'tws')
        struct tree_write_stack *n = tws->next;
                                     ^~~
/datasets/git/notes.c:673:19: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
        struct object_id s;
                         ^
/datasets/git/notes.c:676:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret)
                        ^
                         {
/datasets/git/notes.c:679:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret)
                        ^
                         {
/datasets/git/notes.c:684:31: warning: 040000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                write_tree_entry(&tws->buf, 040000, tws->path, 2, s.hash);
                                            ^
/datasets/git/notes.c:695:15: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned int n = 0;
                     ^
/datasets/git/notes.c:696:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/notes.c:699:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (tws && 3 * n < path_len &&
        ^
/datasets/git/notes.c:699:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'tws' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (tws && 3 * n < path_len &&
               ^
/datasets/git/notes.c:699:16: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'unsigned int' [bugprone-implicit-widening-of-multiplication-result]
        while (tws && 3 * n < path_len &&
                      ^
/datasets/git/notes.c:699:16: note: make conversion explicit to silence this warning
        while (tws && 3 * n < path_len &&
                      ^~~~~
                      (unsigned long)( )
/datasets/git/notes.c:699:16: note: perform multiplication in a wider type
        while (tws && 3 * n < path_len &&
                      ^
                      (unsigned long)
/datasets/git/notes.c:700:39: warning: result of multiplication in type 'unsigned int' is used as a pointer offset after an implicit widening conversion to type 'size_t' [bugprone-implicit-widening-of-multiplication-result]
               matches_tree_write_stack(tws, path + 3 * n)) {
                                             ^
/datasets/git/notes.c:700:46: note: make conversion explicit to silence this warning
               matches_tree_write_stack(tws, path + 3 * n)) {
                                                    ^~~~~
                                                    (size_t)( )
/datasets/git/notes.c:700:46: note: perform multiplication in a wider type
               matches_tree_write_stack(tws, path + 3 * n)) {
                                                    ^
                                                    (size_t)
/datasets/git/notes.c:707:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/notes.c:711:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (3 * n + 2 < path_len && path[3 * n + 2] == '/') {
        ^
/datasets/git/notes.c:711:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'path_len' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (3 * n + 2 < path_len && path[3 * n + 2] == '/') {
               ^
/datasets/git/notes.c:712:38: warning: result of multiplication in type 'unsigned int' is used as a pointer offset after an implicit widening conversion to type 'size_t' [bugprone-implicit-widening-of-multiplication-result]
                tree_write_stack_init_subtree(tws, path + 3 * n);
                                                   ^
/datasets/git/notes.c:712:45: note: make conversion explicit to silence this warning
                tree_write_stack_init_subtree(tws, path + 3 * n);
                                                          ^~~~~
                                                          (size_t)( )
/datasets/git/notes.c:712:45: note: perform multiplication in a wider type
                tree_write_stack_init_subtree(tws, path + 3 * n);
                                                          ^
                                                          (size_t)
/datasets/git/notes.c:718:16: warning: result of multiplication in type 'unsigned int' is used as a pointer offset after an implicit widening conversion to type 'size_t' [bugprone-implicit-widening-of-multiplication-result]
        assert(memchr(path + 3 * n, '/', path_len - (3 * n)) == NULL);
                      ^
/datasets/git/notes.c:718:23: note: make conversion explicit to silence this warning
        assert(memchr(path + 3 * n, '/', path_len - (3 * n)) == NULL);
                             ^
                             (size_t)( )
/usr/include/assert.h:108:20: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                   ^~~~
/datasets/git/notes.c:718:23: note: perform multiplication in a wider type
        assert(memchr(path + 3 * n, '/', path_len - (3 * n)) == NULL);
                             ^
                             (size_t)
/usr/include/assert.h:108:20: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                   ^~~~
/datasets/git/notes.c:718:47: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'unsigned int' [bugprone-implicit-widening-of-multiplication-result]
        assert(memchr(path + 3 * n, '/', path_len - (3 * n)) == NULL);
                                                     ^
/datasets/git/notes.c:718:47: note: make conversion explicit to silence this warning
        assert(memchr(path + 3 * n, '/', path_len - (3 * n)) == NULL);
                                                     ^
                                                     (unsigned long)( )
/usr/include/assert.h:108:20: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                   ^~~~
/datasets/git/notes.c:718:47: note: perform multiplication in a wider type
        assert(memchr(path + 3 * n, '/', path_len - (3 * n)) == NULL);
                                                     ^
                                                     (unsigned long)
/usr/include/assert.h:108:20: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                   ^~~~
/datasets/git/notes.c:721:36: warning: result of multiplication in type 'unsigned int' is used as a pointer offset after an implicit widening conversion to type 'size_t' [bugprone-implicit-widening-of-multiplication-result]
        write_tree_entry(&tws->buf, mode, path + 3 * n, path_len - (3 * n),
                                          ^
/datasets/git/notes.c:721:43: note: make conversion explicit to silence this warning
        write_tree_entry(&tws->buf, mode, path + 3 * n, path_len - (3 * n),
                                                 ^~~~~
                                                 (size_t)( )
/datasets/git/notes.c:721:43: note: perform multiplication in a wider type
        write_tree_entry(&tws->buf, mode, path + 3 * n, path_len - (3 * n),
                                                 ^
                                                 (size_t)
/datasets/git/notes.c:721:62: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'unsigned int' [bugprone-implicit-widening-of-multiplication-result]
        write_tree_entry(&tws->buf, mode, path + 3 * n, path_len - (3 * n),
                                                                    ^
/datasets/git/notes.c:721:62: note: make conversion explicit to silence this warning
        write_tree_entry(&tws->buf, mode, path + 3 * n, path_len - (3 * n),
                                                                    ^~~~~
                                                                    (unsigned long)( )
/datasets/git/notes.c:721:62: note: perform multiplication in a wider type
        write_tree_entry(&tws->buf, mode, path + 3 * n, path_len - (3 * n),
                                                                    ^
                                                                    (unsigned long)
/datasets/git/notes.c:727:8: warning: accessing fields in struct 'write_each_note_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct write_each_note_data {
       ^
/datasets/git/notes.c:727:8: note: use "__attribute__((aligned(32)))" to align struct 'write_each_note_data' to 32 bytes
/datasets/git/notes.c:734:32: warning: parameter name 'd' is too short, expected at least 3 characters [readability-identifier-length]
                struct write_each_note_data *d)
                                             ^
/datasets/git/notes.c:736:19: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        struct non_note *p = d->nn_prev;
                         ^
/datasets/git/notes.c:737:19: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
        struct non_note *n = p ? p->next : *d->nn_list;
                         ^
/datasets/git/notes.c:738:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int cmp = 0, ret;
        ^~~~~~~~~~~~~~~~~
/datasets/git/notes.c:737:2: note: inferred assignment of ID-dependent value from ID-dependent variable p [altera-id-dependent-backward-branch]
        struct non_note *n = p ? p->next : *d->nn_list;
        ^
/datasets/git/notes.c:738:15: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int cmp = 0, ret;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/notes.c:739:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (n && (!note_path || (cmp = strcmp(n->path, note_path)) <= 0)) {
        ^
/datasets/git/notes.c:739:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'n' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (n && (!note_path || (cmp = strcmp(n->path, note_path)) <= 0)) {
               ^
/datasets/git/notes.c:740:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (note_path && cmp == 0)
                                          ^
                                           {
/datasets/git/notes.c:745:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ret)
                                ^
                                 {
/datasets/git/notes.c:755:28: warning: 2 adjacent parameters of 'write_each_note' of similar type ('const struct object_id *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int write_each_note(const struct object_id *object_oid,
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/notes.c:755:52: note: the first parameter in the range is 'object_oid'
static int write_each_note(const struct object_id *object_oid,
                                                   ^~~~~~~~~~
/datasets/git/notes.c:756:27: note: the last parameter in the range is 'note_oid'
                const struct object_id *note_oid, char *note_path,
                                        ^~~~~~~~
/datasets/git/notes.c:755:52: warning: parameter 'object_oid' is unused [misc-unused-parameters]
static int write_each_note(const struct object_id *object_oid,
                                                   ^
/datasets/git/notes.c:759:31: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
        struct write_each_note_data *d =
                                     ^
/datasets/git/notes.c:762:22: warning: 0100644 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        unsigned int mode = 0100644;
                            ^
/datasets/git/notes.c:768:10: warning: 040000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mode = 040000;
                       ^
/datasets/git/notes.c:770:26: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        assert(note_path_len <= GIT_MAX_HEXSZ + FANOUT_PATH_SEPARATORS);
                                ^
/datasets/git/./hash.h:118:23: note: expanded from macro 'GIT_MAX_HEXSZ'
#define GIT_MAX_HEXSZ GIT_SHA256_HEXSZ
                      ^
/datasets/git/./hash.h:112:27: note: expanded from macro 'GIT_SHA256_HEXSZ'
#define GIT_SHA256_HEXSZ (2 * GIT_SHA256_RAWSZ)
                          ^
/datasets/git/notes.c:770:26: note: make conversion explicit to silence this warning
        assert(note_path_len <= GIT_MAX_HEXSZ + FANOUT_PATH_SEPARATORS);
                                ^
/datasets/git/./hash.h:118:23: note: expanded from macro 'GIT_MAX_HEXSZ'
#define GIT_MAX_HEXSZ GIT_SHA256_HEXSZ
                      ^
/datasets/git/./hash.h:112:27: note: expanded from macro 'GIT_SHA256_HEXSZ'
#define GIT_SHA256_HEXSZ (2 * GIT_SHA256_RAWSZ)
                          ^
/usr/include/assert.h:108:20: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                   ^~~~
/datasets/git/notes.c:770:26: note: perform multiplication in a wider type
        assert(note_path_len <= GIT_MAX_HEXSZ + FANOUT_PATH_SEPARATORS);
                                ^
/datasets/git/./hash.h:118:23: note: expanded from macro 'GIT_MAX_HEXSZ'
#define GIT_MAX_HEXSZ GIT_SHA256_HEXSZ
                      ^~~~~~~~~~~~~~~~
/datasets/git/./hash.h:112:27: note: expanded from macro 'GIT_SHA256_HEXSZ'
#define GIT_SHA256_HEXSZ (2 * GIT_SHA256_RAWSZ)
                          ^
/usr/include/assert.h:108:20: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                   ^~~~
/datasets/git/notes.c:777:8: warning: accessing fields in struct 'note_delete_list' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct note_delete_list {
       ^
/datasets/git/notes.c:777:8: note: use "__attribute__((aligned(16)))" to align struct 'note_delete_list' to 16 bytes
/datasets/git/notes.c:782:31: warning: 2 adjacent parameters of 'prune_notes_helper' of similar type ('const struct object_id *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int prune_notes_helper(const struct object_id *object_oid,
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/notes.c:782:55: note: the first parameter in the range is 'object_oid'
static int prune_notes_helper(const struct object_id *object_oid,
                                                      ^~~~~~~~~~
/datasets/git/notes.c:783:27: note: the last parameter in the range is 'note_oid'
                const struct object_id *note_oid, char *note_path,
                                        ^~~~~~~~
/datasets/git/notes.c:783:27: warning: parameter 'note_oid' is unused [misc-unused-parameters]
                const struct object_id *note_oid, char *note_path,
                                        ^
/datasets/git/notes.c:783:43: warning: parameter 'note_path' is unused [misc-unused-parameters]
                const struct object_id *note_oid, char *note_path,
                                                        ^
/datasets/git/notes.c:786:28: warning: variable name 'l' is too short, expected at least 3 characters [readability-identifier-length]
        struct note_delete_list **l = (struct note_delete_list **) cb_data;
                                  ^
/datasets/git/notes.c:787:27: warning: variable 'n' is not initialized [cppcoreguidelines-init-variables]
        struct note_delete_list *n;
                                 ^
                                   = NULL
/datasets/git/notes.c:787:27: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/notes.c:789:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (has_object_file(object_oid))
                                        ^
                                         {
/datasets/git/notes.c:803:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *cur_msg = NULL, *new_msg = NULL, *buf;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/notes.c:803:42: warning: variable 'buf' is not initialized [cppcoreguidelines-init-variables]
        char *cur_msg = NULL, *new_msg = NULL, *buf;
                                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/notes.c:804:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned long cur_len, new_len, buf_len;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/notes.c:804:16: warning: variable 'cur_len' is not initialized [cppcoreguidelines-init-variables]
        unsigned long cur_len, new_len, buf_len;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/notes.c:804:25: warning: variable 'new_len' is not initialized [cppcoreguidelines-init-variables]
        unsigned long cur_len, new_len, buf_len;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/notes.c:804:34: warning: variable 'buf_len' is not initialized [cppcoreguidelines-init-variables]
        unsigned long cur_len, new_len, buf_len;
                                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/notes.c:805:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        enum object_type cur_type, new_type;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/notes.c:805:19: warning: variable 'cur_type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type cur_type, new_type;
                         ^
/datasets/git/notes.c:805:29: warning: variable 'new_type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type cur_type, new_type;
                                   ^
/datasets/git/notes.c:806:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/notes.c:809:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_null_oid(new_oid))
                                  ^
                                   {
/datasets/git/notes.c:815:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_null_oid(cur_oid))
                                  ^
                                   {
/datasets/git/notes.c:825:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cur_msg[cur_len - 1] == '\n')
                                         ^
                                          {
/datasets/git/notes.c:831:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(buf, cur_msg, cur_len);
        ^~~~~~
/datasets/git/notes.c:831:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(buf, cur_msg, cur_len);
        ^~~~~~
/datasets/git/notes.c:834:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(buf + cur_len + 2, new_msg, new_len);
        ^~~~~~
/datasets/git/notes.c:834:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(buf + cur_len + 2, new_msg, new_len);
        ^~~~~~
/datasets/git/notes.c:851:44: warning: parameter 'cur_oid' is unused [misc-unused-parameters]
int combine_notes_ignore(struct object_id *cur_oid,
                                           ^
/datasets/git/notes.c:852:29: warning: parameter 'new_oid' is unused [misc-unused-parameters]
                         const struct object_id *new_oid)
                                                 ^
/datasets/git/notes.c:864:8: warning: variable 'data' is not initialized [cppcoreguidelines-init-variables]
        char *data;
              ^
                   = NULL
/datasets/git/notes.c:865:16: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        unsigned long len;
                      ^
                          = 0
/datasets/git/notes.c:866:19: warning: variable 't' is not initialized [cppcoreguidelines-init-variables]
        enum object_type t;
                         ^
/datasets/git/notes.c:866:19: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/notes.c:868:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_null_oid(oid))
                             ^
                              {
/datasets/git/notes.c:906:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (string_list_add_note_lines(&sort_uniq_list, cur_oid))
                                                                 ^
                                                                  {
/datasets/git/notes.c:908:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (string_list_add_note_lines(&sort_uniq_list, new_oid))
                                                                 ^
                                                                  {
/datasets/git/notes.c:916:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                 string_list_join_lines_helper, &buf))
                                                                      ^
                                                                       {
/datasets/git/notes.c:929:31: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
                                   int flag UNUSED, void *cb)
                                                          ^
/datasets/git/notes.c:932:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!unsorted_string_list_has_string(refs, refname))
                                                            ^
                                                             {
/datasets/git/notes.c:947:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (get_oid(glob, &oid))
                                        ^
                                         {
/datasets/git/notes.c:949:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!unsorted_string_list_has_string(list, glob))
                                                                 ^
                                                                  {
/datasets/git/notes.c:959:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/notes.c:959:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/notes.c:964:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < split.nr; i++)
        ^
/datasets/git/notes.c:964:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < split.nr; i++)
                                      ^
                                       {
/datasets/git/notes.c:971:33: warning: 2 adjacent parameters of 'notes_display_config' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int notes_display_config(const char *k, const char *v, void *cb)
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/notes.c:971:45: note: the first parameter in the range is 'k'
static int notes_display_config(const char *k, const char *v, void *cb)
                                            ^
/datasets/git/notes.c:971:60: note: the last parameter in the range is 'v'
static int notes_display_config(const char *k, const char *v, void *cb)
                                                           ^
/datasets/git/notes.c:971:45: warning: parameter name 'k' is too short, expected at least 3 characters [readability-identifier-length]
static int notes_display_config(const char *k, const char *v, void *cb)
                                            ^
/datasets/git/notes.c:971:60: warning: parameter name 'v' is too short, expected at least 3 characters [readability-identifier-length]
static int notes_display_config(const char *k, const char *v, void *cb)
                                                           ^
/datasets/git/notes.c:971:69: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int notes_display_config(const char *k, const char *v, void *cb)
                                                                    ^
/datasets/git/notes.c:976:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!v)
                       ^
                        {
/datasets/git/notes.c:987:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!notes_ref)
                       ^
                        {
/datasets/git/notes.c:988:15: warning: function is not thread safe [concurrency-mt-unsafe]
                notes_ref = getenv(GIT_NOTES_REF_ENVIRONMENT);
                            ^
/datasets/git/notes.c:989:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!notes_ref)
                       ^
                        {
/datasets/git/notes.c:991:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!notes_ref)
                       ^
                        {
/datasets/git/notes.c:996:36: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
void init_notes(struct notes_tree *t, const char *notes_ref,
                                   ^
/datasets/git/notes.c:999:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct object_id oid, object_oid;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/notes.c:1000:17: warning: variable 'mode' is not initialized [cppcoreguidelines-init-variables]
        unsigned short mode;
                       ^
                            = 0
/datasets/git/notes.c:1003:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!t)
               ^
                {
/datasets/git/notes.c:1007:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!notes_ref)
                       ^
                        {
/datasets/git/notes.c:1011:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!combine_notes)
                           ^
                            {
/datasets/git/notes.c:1018:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        t->update_ref = (flags & NOTES_INIT_WRITABLE) ? t->ref : NULL;
                         ^~~~~
/datasets/git/notes.c:1023:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & NOTES_INIT_EMPTY || !notes_ref ||
            ^~~~~
/datasets/git/notes.c:1024:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            get_oid_treeish(notes_ref, &object_oid))
                                                    ^
                                                     {
/datasets/git/notes.c:1026:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & NOTES_INIT_WRITABLE && read_ref(notes_ref, &object_oid))
            ^~~~~
/datasets/git/notes.c:1039:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct string_list_item *item;
        ^
/datasets/git/notes.c:1026:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & NOTES_INIT_WRITABLE && read_ref(notes_ref, &object_oid))
                                                                            ^
                                                                             {
/datasets/git/notes.c:1028:67: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_tree_entry(the_repository, &object_oid, "", &oid, &mode))
                                                                         ^
                                                                          {
/datasets/git/notes.c:1039:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/notes.c:1041:22: warning: variable 'trees' is not initialized [cppcoreguidelines-init-variables]
        struct notes_tree **trees;
                            ^
                                  = NULL
/datasets/git/notes.c:1042:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_ARRAY(trees, refs->nr + 1);
        ^
/datasets/git/./git-compat-util.h:1090:53: note: expanded from macro 'ALLOC_ARRAY'
#define ALLOC_ARRAY(x, alloc) (x) = xmalloc(st_mult(sizeof(*(x)), (alloc)))
                                                    ^
/datasets/git/notes.c:1043:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(item, refs) {
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/notes.c:1043:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(item, refs) {
                                  ^
/datasets/git/notes.c:1044:22: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
                struct notes_tree *t = xcalloc(1, sizeof(struct notes_tree));
                                   ^
/datasets/git/notes.c:1054:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(opt, 0, sizeof(*opt));
        ^~~~~~
/datasets/git/notes.c:1054:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(opt, 0, sizeof(*opt));
        ^~~~~~
/datasets/git/notes.c:1087:8: warning: variable 'display_ref_env' is not initialized [cppcoreguidelines-init-variables]
        char *display_ref_env;
              ^
                              = NULL
/datasets/git/notes.c:1096:21: warning: function is not thread safe [concurrency-mt-unsafe]
                display_ref_env = getenv(GIT_NOTES_DISPLAY_REF_ENVIRONMENT);
                                  ^
/datasets/git/notes.c:1108:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                struct string_list_item *item;
                ^
/datasets/git/notes.c:1101:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/notes.c:1108:28: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
                struct string_list_item *item;
                                         ^
                                              = NULL
/datasets/git/notes.c:1109:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for_each_string_list_item(item, &opt->extra_notes_refs)
                ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/notes.c:1109:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
                for_each_string_list_item(item, &opt->extra_notes_refs)
                                          ^
/datasets/git/notes.c:1118:33: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
int add_note(struct notes_tree *t, const struct object_id *object_oid,
                                ^
/datasets/git/notes.c:1121:20: warning: variable 'l' is not initialized [cppcoreguidelines-init-variables]
        struct leaf_node *l;
                          ^
                            = NULL
/datasets/git/notes.c:1121:20: warning: variable name 'l' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/notes.c:1123:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!t)
               ^
                {
/datasets/git/notes.c:1127:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!combine_notes)
                           ^
                            {
/datasets/git/notes.c:1135:36: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
int remove_note(struct notes_tree *t, const unsigned char *object_sha1)
                                   ^
/datasets/git/notes.c:1137:19: warning: variable name 'l' is too short, expected at least 3 characters [readability-identifier-length]
        struct leaf_node l;
                         ^
/datasets/git/notes.c:1139:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!t)
               ^
                {
/datasets/git/notes.c:1145:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_null_oid(&l.val_oid)) /* no note was removed */
                                    ^
                                     {
/datasets/git/notes.c:1151:53: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
const struct object_id *get_note(struct notes_tree *t,
                                                    ^
/datasets/git/notes.c:1154:20: warning: variable 'found' is not initialized [cppcoreguidelines-init-variables]
        struct leaf_node *found;
                          ^
                                = NULL
/datasets/git/notes.c:1156:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!t)
               ^
                {
/datasets/git/notes.c:1163:38: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
int for_each_note(struct notes_tree *t, int flags, each_note_fn fn,
                                     ^
/datasets/git/notes.c:1163:65: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
int for_each_note(struct notes_tree *t, int flags, each_note_fn fn,
                                                                ^
/datasets/git/notes.c:1166:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!t)
               ^
                {
/datasets/git/notes.c:1172:41: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
int write_notes_tree(struct notes_tree *t, struct object_id *result)
                                        ^
/datasets/git/notes.c:1176:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/notes.c:1177:6: warning: variable 'flags' is not initialized [cppcoreguidelines-init-variables]
        int flags;
            ^
                  = 0
/datasets/git/notes.c:1179:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!t)
               ^
                {
/datasets/git/notes.c:1185:25: warning: 256 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        strbuf_init(&root.buf, 256 * (32 + the_hash_algo->hexsz)); /* assume 256 entries */
                               ^
/datasets/git/notes.c:1185:32: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        strbuf_init(&root.buf, 256 * (32 + the_hash_algo->hexsz)); /* assume 256 entries */
                                      ^
/datasets/git/notes.c:1192:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        flags = FOR_EACH_NOTE_DONT_UNPACK_SUBTREES |
                ^
/datasets/git/./notes.h:194:44: note: expanded from macro 'FOR_EACH_NOTE_DONT_UNPACK_SUBTREES'
#define FOR_EACH_NOTE_DONT_UNPACK_SUBTREES 1
                                           ^
/datasets/git/notes.c:1202:37: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
void prune_notes(struct notes_tree *t, int flags)
                                    ^
/datasets/git/notes.c:1204:27: warning: variable name 'l' is too short, expected at least 3 characters [readability-identifier-length]
        struct note_delete_list *l = NULL;
                                 ^
/datasets/git/notes.c:1206:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!t)
               ^
                {
/datasets/git/notes.c:1212:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (l) {
        ^
/datasets/git/notes.c:1212:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'l' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (l) {
               ^
/datasets/git/notes.c:1213:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flags & NOTES_PRUNE_VERBOSE)
                    ^~~~~
/datasets/git/notes.c:1213:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (flags & NOTES_PRUNE_VERBOSE)
                                                ^
                                                 {
/datasets/git/notes.c:1215:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(flags & NOTES_PRUNE_DRYRUN))
                      ^~~~~
/datasets/git/notes.c:1215:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(flags & NOTES_PRUNE_DRYRUN))
                                                  ^
                                                   {
/datasets/git/notes.c:1221:36: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
void free_notes(struct notes_tree *t)
                                   ^
/datasets/git/notes.c:1223:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!t)
               ^
                {
/datasets/git/notes.c:1225:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (t->root)
                    ^
                     {
/datasets/git/notes.c:1228:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (t->first_non_note) {
        ^
/datasets/git/notes.c:1228:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 't' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (t->first_non_note) {
               ^
/datasets/git/notes.c:1235:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(t, 0, sizeof(struct notes_tree));
        ^~~~~~
/datasets/git/notes.c:1235:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(t, 0, sizeof(struct notes_tree));
        ^~~~~~
/datasets/git/notes.c:1249:44: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
static void format_note(struct notes_tree *t, const struct object_id *object_oid,
                                           ^
/datasets/git/notes.c:1250:19: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                        struct strbuf *sb, const char *output_encoding, int raw)
                                       ^
/datasets/git/notes.c:1253:26: warning: variable 'oid' is not initialized [cppcoreguidelines-init-variables]
        const struct object_id *oid;
                                ^
                                    = NULL
/datasets/git/notes.c:1254:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *msg, *msg_p;
        ^~~~~~~~~~~~~~~~~~
/datasets/git/notes.c:1254:8: warning: variable 'msg' is not initialized [cppcoreguidelines-init-variables]
        char *msg, *msg_p;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/notes.c:1254:14: warning: variable 'msg_p' is not initialized [cppcoreguidelines-init-variables]
        char *msg, *msg_p;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/notes.c:1255:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned long linelen, msglen;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/notes.c:1255:16: warning: variable 'linelen' is not initialized [cppcoreguidelines-init-variables]
        unsigned long linelen, msglen;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/notes.c:1255:25: warning: variable 'msglen' is not initialized [cppcoreguidelines-init-variables]
        unsigned long linelen, msglen;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/notes.c:1256:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/notes.c:1258:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!t)
               ^
                {
/datasets/git/notes.c:1260:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!t->initialized)
                            ^
                             {
/datasets/git/notes.c:1264:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!oid)
                 ^
                  {
/datasets/git/notes.c:1267:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if (!(msg = read_object_file(oid, &type, &msglen)) || type != OBJ_BLOB) {
              ^
/datasets/git/notes.c:1267:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/notes.c:1267:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/notes.c:1283:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (msglen && msg[msglen - 1] == '\n')
                                              ^
                                               {
/datasets/git/notes.c:1297:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (msg_p = msg; msg_p < msg + msglen; msg_p += linelen + 1) {
        ^
/datasets/git/notes.c:1297:20: warning: backward branch (for loop) is ID-dependent due to variable reference to 'msg_p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (msg_p = msg; msg_p < msg + msglen; msg_p += linelen + 1) {
                          ^
/datasets/git/notes.c:1300:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!raw)
                         ^
                          {
/datasets/git/notes.c:1310:21: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                          struct strbuf *sb, const char *output_encoding, int raw)
                                         ^
/datasets/git/notes.c:1312:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/notes.c:1312:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/notes.c:1314:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; display_notes_trees[i]; i++)
        ^
/datasets/git/notes.c:1314:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'display_notes_trees' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; display_notes_trees[i]; i++)
                    ^
/datasets/git/notes.c:1314:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; display_notes_trees[i]; i++)
                                                ^
                                                 {
/datasets/git/notes.c:1319:34: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
int copy_note(struct notes_tree *t,
                                 ^
/datasets/git/notes.c:1326:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!force && existing_note)
                                    ^
                                     {
/datasets/git/notes.c:1329:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (note)
                 ^
                  {
/datasets/git/notes.c:1331:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (existing_note)
        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/notes.c:1331:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (existing_note)
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/notes.c:1337:38: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void expand_notes_ref(struct strbuf *sb)
                                     ^
/datasets/git/notes.c:1339:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (starts_with(sb->buf, "refs/notes/"))
                                                ^
                                                 {
/datasets/git/notes.c:1341:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (starts_with(sb->buf, "notes/"))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/notes.c:1341:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (starts_with(sb->buf, "notes/"))
                                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/notes.c:1343:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/notes.c:1347:44: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void expand_loose_notes_ref(struct strbuf *sb)
                                           ^
/datasets/git/object-file.c:10:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "blob.h"
/datasets/git/object-file.c:38:1: warning: replace macro with enum [modernize-macro-to-enum]
#define MAX_HEADER_LEN 32
^~~~~~~~
                       =
/datasets/git/object-file.c:38:9: warning: macro 'MAX_HEADER_LEN' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define MAX_HEADER_LEN 32
        ^
/datasets/git/object-file.c:107:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(oid->hash + GIT_SHA1_RAWSZ, 0, GIT_MAX_RAWSZ - GIT_SHA1_RAWSZ);
        ^~~~~~
/datasets/git/object-file.c:107:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(oid->hash + GIT_SHA1_RAWSZ, 0, GIT_MAX_RAWSZ - GIT_SHA1_RAWSZ);
        ^~~~~~
/datasets/git/object-file.c:139:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(oid->hash + GIT_SHA256_RAWSZ, 0, GIT_MAX_RAWSZ - GIT_SHA256_RAWSZ);
        ^~~~~~
/datasets/git/object-file.c:139:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(oid->hash + GIT_SHA256_RAWSZ, 0, GIT_MAX_RAWSZ - GIT_SHA256_RAWSZ);
        ^~~~~~
/datasets/git/object-file.c:193:12: warning: performing an implicit widening conversion to type 'size_t' (aka 'unsigned long') of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                .hexsz = GIT_SHA1_HEXSZ,
                         ^
/datasets/git/./hash.h:103:25: note: expanded from macro 'GIT_SHA1_HEXSZ'
#define GIT_SHA1_HEXSZ (2 * GIT_SHA1_RAWSZ)
                        ^
/datasets/git/object-file.c:193:12: note: make conversion explicit to silence this warning
                .hexsz = GIT_SHA1_HEXSZ,
                         ^
/datasets/git/./hash.h:103:25: note: expanded from macro 'GIT_SHA1_HEXSZ'
#define GIT_SHA1_HEXSZ (2 * GIT_SHA1_RAWSZ)
                        ^~~~~~~~~~~~~~~~~~
/datasets/git/object-file.c:193:12: note: perform multiplication in a wider type
                .hexsz = GIT_SHA1_HEXSZ,
                         ^
/datasets/git/./hash.h:103:25: note: expanded from macro 'GIT_SHA1_HEXSZ'
#define GIT_SHA1_HEXSZ (2 * GIT_SHA1_RAWSZ)
                        ^
/datasets/git/object-file.c:208:12: warning: performing an implicit widening conversion to type 'size_t' (aka 'unsigned long') of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                .hexsz = GIT_SHA256_HEXSZ,
                         ^
/datasets/git/./hash.h:112:27: note: expanded from macro 'GIT_SHA256_HEXSZ'
#define GIT_SHA256_HEXSZ (2 * GIT_SHA256_RAWSZ)
                          ^
/datasets/git/object-file.c:208:12: note: make conversion explicit to silence this warning
                .hexsz = GIT_SHA256_HEXSZ,
                         ^
/datasets/git/./hash.h:112:27: note: expanded from macro 'GIT_SHA256_HEXSZ'
#define GIT_SHA256_HEXSZ (2 * GIT_SHA256_RAWSZ)
                          ^~~~~~~~~~~~~~~~~~~~
/datasets/git/object-file.c:208:12: note: perform multiplication in a wider type
                .hexsz = GIT_SHA256_HEXSZ,
                         ^
/datasets/git/./hash.h:112:27: note: expanded from macro 'GIT_SHA256_HEXSZ'
#define GIT_SHA256_HEXSZ (2 * GIT_SHA256_RAWSZ)
                          ^
/datasets/git/object-file.c:240:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/object-file.c:240:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object-file.c:241:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!name)
                  ^
                   {
/datasets/git/object-file.c:243:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 1; i < GIT_HASH_NALGOS; i++)
        ^
/datasets/git/object-file.c:243:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 1; i < GIT_HASH_NALGOS; i++)
                                             ^
                                              {
/datasets/git/object-file.c:244:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(name, hash_algos[i].name))
                                                      ^
                                                       {
/datasets/git/object-file.c:251:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/object-file.c:251:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object-file.c:252:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 1; i < GIT_HASH_NALGOS; i++)
        ^
/datasets/git/object-file.c:252:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 1; i < GIT_HASH_NALGOS; i++)
                                             ^
                                              {
/datasets/git/object-file.c:253:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (format_id == hash_algos[i].format_id)
                                                         ^
                                                          {
/datasets/git/object-file.c:260:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/object-file.c:260:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object-file.c:261:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 1; i < GIT_HASH_NALGOS; i++)
        ^
/datasets/git/object-file.c:261:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 1; i < GIT_HASH_NALGOS; i++)
                                             ^
                                              {
/datasets/git/object-file.c:262:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (len == hash_algos[i].rawsz)
                                               ^
                                                {
/datasets/git/object-file.c:273:15: warning: accessing fields in struct 'cached_object' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
static struct cached_object {
              ^
/datasets/git/object-file.c:273:15: note: use "__attribute__((aligned(64)))" to align struct 'cached_object' to 64 bytes
/datasets/git/object-file.c:278:4: warning: variable 'cached_objects' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} *cached_objects;
   ^
/datasets/git/object-file.c:278:4: warning: variable 'cached_objects' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/object-file.c:279:12: warning: variable 'cached_object_nr' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int cached_object_nr, cached_object_alloc;
           ^
/datasets/git/object-file.c:279:30: warning: variable 'cached_object_alloc' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int cached_object_nr, cached_object_alloc;
                             ^
/datasets/git/object-file.c:281:29: warning: variable 'empty_tree' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct cached_object empty_tree = {
                            ^
/datasets/git/object-file.c:291:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/object-file.c:291:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object-file.c:292:24: warning: variable name 'co' is too short, expected at least 3 characters [readability-identifier-length]
        struct cached_object *co = cached_objects;
                              ^
/datasets/git/object-file.c:294:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < cached_object_nr; i++, co++) {
        ^
/datasets/git/object-file.c:295:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (oideq(&co->oid, oid))
                                         ^
                                          {
/datasets/git/object-file.c:298:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oideq(oid, the_hash_algo->empty_tree))
                                                  ^
                                                   {
/datasets/git/object-file.c:306:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & HASH_RENORMALIZE)
            ^
/datasets/git/object-file.c:306:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & HASH_RENORMALIZE)
                                     ^
                                      {
/datasets/git/object-file.c:307:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                return CONV_EOL_RENORMALIZE;
                       ^
/datasets/git/./convert.h:15:32: note: expanded from macro 'CONV_EOL_RENORMALIZE'
#define CONV_EOL_RENORMALIZE  (1<<2) /* Convert CRLF to LF */
                               ^
/datasets/git/object-file.c:308:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (flags & HASH_WRITE_OBJECT)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/object-file.c:308:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        else if (flags & HASH_WRITE_OBJECT)
                 ^
/datasets/git/object-file.c:308:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (flags & HASH_WRITE_OBJECT)
                                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/object-file.c:309:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                return global_conv_flags_eol | CONV_WRITE_OBJECT;
                       ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/object-file.c:309:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                return global_conv_flags_eol | CONV_WRITE_OBJECT;
                                               ^
/datasets/git/./convert.h:17:32: note: expanded from macro 'CONV_WRITE_OBJECT'
#define CONV_WRITE_OBJECT     (1<<4) /* Content is written to the index */
                               ^
/datasets/git/object-file.c:310:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/object-file.c:317:18: warning: 0777 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (mkdir(path, 0777)) {
                        ^
/datasets/git/object-file.c:319:15: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                struct stat st;
                            ^
/datasets/git/object-file.c:320:17: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                struct strbuf sb = STRBUF_INIT;
                              ^
/datasets/git/object-file.c:322:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (errno != EEXIST)
                                    ^
                                     {
/datasets/git/object-file.c:334:21: warning: 0777 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                    mkdir(sb.buf, 0777)) {
                                  ^
/datasets/git/object-file.c:349:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'next_component' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (ret == SCLD_OK && next_component) {
               ^
/datasets/git/object-file.c:350:15: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                struct stat st;
                            ^
/datasets/git/object-file.c:351:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                char *slash = next_component, slash_character;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/object-file.c:351:33: warning: variable 'slash_character' is not initialized [cppcoreguidelines-init-variables]
                char *slash = next_component, slash_character;
                                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/object-file.c:353:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (*slash && !is_dir_sep(*slash))
                ^
/datasets/git/object-file.c:353:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'slash' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (*slash && !is_dir_sep(*slash))
                       ^
/datasets/git/object-file.c:353:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (*slash && !is_dir_sep(*slash))
                                                     ^
                                                      {
/datasets/git/object-file.c:356:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!*slash)
                            ^
                             {
/datasets/git/object-file.c:360:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (is_dir_sep(*next_component))
                ^
/datasets/git/object-file.c:360:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'next_component' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (is_dir_sep(*next_component))
                       ^
/datasets/git/./git-compat-util.h:451:20: note: expanded from macro 'is_dir_sep'
#define is_dir_sep git_is_dir_sep
                   ^
/datasets/git/object-file.c:360:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (is_dir_sep(*next_component))
                                                   ^
                                                    {
/datasets/git/object-file.c:362:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!*next_component)
                                     ^
                                      {
/datasets/git/object-file.c:373:26: warning: 0777 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                } else if (mkdir(path, 0777)) {
                                       ^
/datasets/git/object-file.c:375:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            !stat(path, &st) && S_ISDIR(st.st_mode))
                                                                    ^
                                                                     {
/datasets/git/object-file.c:377:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (errno == ENOENT)
                                                 ^
                                                  {
/datasets/git/object-file.c:388:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/object-file.c:410:6: warning: variable 'save_errno' is not initialized [cppcoreguidelines-init-variables]
        int save_errno;
            ^
                       = 0
/datasets/git/object-file.c:423:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/object-file.c:423:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object-file.c:424:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < the_hash_algo->rawsz; i++) {
        ^
/datasets/git/object-file.c:426:22: warning: Array access (via field 'hash') results in a null pointer dereference [clang-analyzer-core.NullDereference]
                unsigned int val = oid->hash[i];
                                   ^
/datasets/git/object-file.c:2801:49: note: Passing null pointer value via 3rd parameter 'oid'
        map = map_loose_object_1(the_repository, path, NULL, &mapsize);
                                                       ^
/usr/lib/llvm-15/lib/clang/15.0.2/include/stddef.h:89:16: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
               ^~~~~~~~~~
/datasets/git/object-file.c:2801:8: note: Calling 'map_loose_object_1'
        map = map_loose_object_1(the_repository, path, NULL, &mapsize);
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/object-file.c:1223:6: note: Assuming 'path' is null
        if (path)
            ^~~~
/datasets/git/object-file.c:1223:2: note: Taking false branch
        if (path)
        ^
/datasets/git/object-file.c:1226:29: note: Passing null pointer value via 2nd parameter 'oid'
                fd = open_loose_object(r, oid, &path);
                                          ^~~
/datasets/git/object-file.c:1226:8: note: Calling 'open_loose_object'
                fd = open_loose_object(r, oid, &path);
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/object-file.c:1187:2: note: Loop condition is true.  Entering loop body
        for (odb = r->objects->odb; odb; odb = odb->next) {
        ^
/datasets/git/object-file.c:1188:37: note: Passing null pointer value via 3rd parameter 'oid'
                *path = odb_loose_path(odb, &buf, oid);
                                                  ^~~
/datasets/git/object-file.c:1188:11: note: Calling 'odb_loose_path'
                *path = odb_loose_path(odb, &buf, oid);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/object-file.c:441:23: note: Passing null pointer value via 2nd parameter 'oid'
        fill_loose_path(buf, oid);
                             ^~~
/datasets/git/object-file.c:441:2: note: Calling 'fill_loose_path'
        fill_loose_path(buf, oid);
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/object-file.c:424:14: note: Assuming 'i' is < field 'rawsz'
        for (i = 0; i < the_hash_algo->rawsz; i++) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/object-file.c:424:2: note: Loop condition is true.  Entering loop body
        for (i = 0; i < the_hash_algo->rawsz; i++) {
        ^
/datasets/git/object-file.c:426:22: note: Array access (via field 'hash') results in a null pointer dereference
                unsigned int val = oid->hash[i];
                                   ^    ~~~~
/datasets/git/object-file.c:427:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                strbuf_addch(buf, hex[val >> 4]);
                                      ^      ~
/datasets/git/object-file.c:428:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                strbuf_addch(buf, hex[val & 0xf]);
                                      ^     ~~~
/datasets/git/object-file.c:428:31: warning: 0xf is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                strbuf_addch(buf, hex[val & 0xf]);
                                            ^
/datasets/git/object-file.c:429:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!i)
                       ^
                        {
/datasets/git/object-file.c:445:50: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
const char *loose_object_path(struct repository *r, struct strbuf *buf,
                                                 ^
/datasets/git/object-file.c:454:52: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static int alt_odb_usable(struct raw_object_store *o,
                                                   ^
/datasets/git/object-file.c:458:6: warning: variable 'r' is not initialized [cppcoreguidelines-init-variables]
        int r;
            ^
              = 0
/datasets/git/object-file.c:458:6: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object-file.c:473:12: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                khiter_t p;
                         ^
                           = 0
/datasets/git/object-file.c:473:12: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object-file.c:481:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fspatheq(path->buf, normalized_objdir))
                                                   ^
                                                    {
/datasets/git/object-file.c:503:53: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void read_info_alternates(struct repository *r,
                                                    ^
/datasets/git/object-file.c:506:12: warning: function 'link_alt_odb_entry' is within a recursive call chain [misc-no-recursion]
static int link_alt_odb_entry(struct repository *r, const struct strbuf *entry,
           ^
/datasets/git/object-file.c:506:50: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int link_alt_odb_entry(struct repository *r, const struct strbuf *entry,
                                                 ^
/datasets/git/object-file.c:509:27: warning: variable 'ent' is not initialized [cppcoreguidelines-init-variables]
        struct object_directory *ent;
                                 ^
                                     = NULL
/datasets/git/object-file.c:512:11: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        khiter_t pos;
                 ^
                     = 0
/datasets/git/object-file.c:532:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (pathbuf.len && pathbuf.buf[pathbuf.len - 1] == '/')
        ^
/datasets/git/object-file.c:532:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'pathbuf' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (pathbuf.len && pathbuf.buf[pathbuf.len - 1] == '/')
               ^
/datasets/git/object-file.c:532:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (pathbuf.len && pathbuf.buf[pathbuf.len - 1] == '/')
                                                                  ^
                                                                   {
/datasets/git/object-file.c:535:69: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!alt_odb_usable(r->objects, &pathbuf, normalized_objdir, &pos))
                                                                           ^
                                                                            {
/datasets/git/object-file.c:562:14: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
        const char *end;
                    ^
                        = NULL
/datasets/git/object-file.c:582:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*end)
                 ^
                  {
/datasets/git/object-file.c:587:13: warning: function 'link_alt_odb_entries' is within a recursive call chain [misc-no-recursion]
static void link_alt_odb_entries(struct repository *r, const char *alt,
            ^
/datasets/git/object-file.c:615:13: note: example recursive call chain, starting from function 'read_info_alternates'
static void read_info_alternates(struct repository *r,
            ^
/datasets/git/object-file.c:629:2: note: Frame #1: function 'read_info_alternates' calls function 'link_alt_odb_entries' here:
        link_alt_odb_entries(r, buf.buf, '\n', relative_base, depth);
        ^
/datasets/git/object-file.c:608:3: note: Frame #2: function 'link_alt_odb_entries' calls function 'link_alt_odb_entry' here:
                link_alt_odb_entry(r, &entry,
                ^
/datasets/git/object-file.c:550:2: note: Frame #3: function 'link_alt_odb_entry' calls function 'read_info_alternates' here:
        read_info_alternates(r, ent->path, depth + 1);
        ^
/datasets/git/object-file.c:550:2: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/object-file.c:587:53: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void link_alt_odb_entries(struct repository *r, const char *alt,
                                                    ^
/datasets/git/object-file.c:593:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!alt || !*alt)
                          ^
                           {
/datasets/git/object-file.c:596:14: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (depth > 5) {
                    ^
/datasets/git/object-file.c:604:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*alt) {
        ^
/datasets/git/object-file.c:604:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'alt' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (*alt) {
               ^
/datasets/git/object-file.c:606:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!entry.len)
                               ^
                                {
/datasets/git/object-file.c:615:13: warning: function 'read_info_alternates' is within a recursive call chain [misc-no-recursion]
static void read_info_alternates(struct repository *r,
            ^
/datasets/git/object-file.c:615:53: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void read_info_alternates(struct repository *r,
                                                    ^
/datasets/git/object-file.c:619:8: warning: variable 'path' is not initialized [cppcoreguidelines-init-variables]
        char *path;
              ^
                   = NULL
/datasets/git/object-file.c:623:35: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (strbuf_read_file(&buf, path, 1024) < 0) {
                                         ^
/datasets/git/object-file.c:638:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        FILE *in, *out;
        ^~~~~~~~~~~~~~~
/datasets/git/object-file.c:638:8: warning: variable 'in' is not initialized [cppcoreguidelines-init-variables]
        FILE *in, *out;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/object-file.c:638:8: warning: variable name 'in' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object-file.c:638:13: warning: variable 'out' is not initialized [cppcoreguidelines-init-variables]
        FILE *in, *out;
                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/object-file.c:643:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!out)
                 ^
                  {
/datasets/git/object-file.c:650:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (strbuf_getline(&line, in) != EOF) {
                ^
/datasets/git/object-file.c:650:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'line' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (strbuf_getline(&line, in) != EOF) {
                       ^
/datasets/git/object-file.c:659:3: warning: the value returned by this function should be used [cert-err33-c]
                fclose(in);
                ^~~~~~~~~~
/datasets/git/object-file.c:659:3: note: cast the expression to void to silence this warning
/datasets/git/object-file.c:661:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (errno != ENOENT)
                                 ^
                                  {
/datasets/git/object-file.c:668:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (commit_lock_file(&lock))
                                            ^
                                             {
/datasets/git/object-file.c:670:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (the_repository->objects->loaded_alternates)
                                                               ^
                                                                {
/datasets/git/object-file.c:691:27: warning: variable 'new_odb' is not initialized [cppcoreguidelines-init-variables]
        struct object_directory *new_odb;
                                 ^
                                         = NULL
/datasets/git/object-file.c:721:6: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (strcmp(old_path, cur_odb->path))
            ^
                                            != 0
/datasets/git/object-file.c:721:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strcmp(old_path, cur_odb->path))
                                            ^
                                             {
/datasets/git/object-file.c:725:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cur_odb->next != restore_odb)
                                         ^
                                          {
/datasets/git/object-file.c:741:14: warning: variable 'repo' is not initialized [cppcoreguidelines-init-variables]
        const char *repo;
                    ^
                         = NULL
/datasets/git/object-file.c:752:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!repo)
                  ^
                   {
/datasets/git/object-file.c:764:17: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                struct strbuf sb = STRBUF_INIT;
                              ^
/datasets/git/object-file.c:796:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FREE_AND_NULL(ref_git);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/object-file.c:802:54: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
struct object_directory *find_odb(struct repository *r, const char *obj_dir)
                                                     ^
/datasets/git/object-file.c:804:2: note: inferred assignment of ID-dependent value from ID-dependent member odb [altera-id-dependent-backward-branch]
        struct object_directory *odb;
        ^
/datasets/git/object-file.c:804:27: warning: variable 'odb' is not initialized [cppcoreguidelines-init-variables]
        struct object_directory *odb;
                                 ^
                                     = NULL
/datasets/git/object-file.c:809:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (odb = r->objects->odb; odb; odb = odb->next) {
        ^
/datasets/git/object-file.c:809:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'odb' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (odb = r->objects->odb; odb; odb = odb->next) {
                                    ^
/datasets/git/object-file.c:811:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(obj_dir_real, odb_path_real.buf))
                                                             ^
                                                              {
/datasets/git/object-file.c:818:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!odb)
                 ^
                  {
/datasets/git/object-file.c:826:14: warning: variable 'value' is not initialized [cppcoreguidelines-init-variables]
        const char *value;
                    ^
                          = NULL
/datasets/git/object-file.c:851:23: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
                                alternate_ref_fn *cb,
                                                  ^
/datasets/git/object-file.c:856:8: warning: variable 'fh' is not initialized [cppcoreguidelines-init-variables]
        FILE *fh;
              ^
                 = NULL
/datasets/git/object-file.c:856:8: warning: variable name 'fh' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object-file.c:860:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (start_command(&cmd))
                                ^
                                 {
/datasets/git/object-file.c:864:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (strbuf_getline_lf(&line, fh) != EOF) {
        ^
/datasets/git/object-file.c:864:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'line' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (strbuf_getline_lf(&line, fh) != EOF) {
               ^
/datasets/git/object-file.c:866:15: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                const char *p;
                            ^
                              = NULL
/datasets/git/object-file.c:866:15: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object-file.c:877:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(fh);
        ^~~~~~~~~~
/datasets/git/object-file.c:877:2: note: cast the expression to void to silence this warning
/datasets/git/object-file.c:882:8: warning: accessing fields in struct 'alternate_refs_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct alternate_refs_data {
       ^
/datasets/git/object-file.c:882:8: note: use "__attribute__((aligned(16)))" to align struct 'alternate_refs_data' to 16 bytes
/datasets/git/object-file.c:887:60: warning: parameter name 'e' is too short, expected at least 3 characters [readability-identifier-length]
static int refs_from_alternate_cb(struct object_directory *e,
                                                           ^
/datasets/git/object-file.c:891:9: warning: variable 'base_len' is not initialized [cppcoreguidelines-init-variables]
        size_t base_len;
               ^
                        = 0
/datasets/git/object-file.c:892:30: warning: variable name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
        struct alternate_refs_data *cb = data;
                                    ^
/datasets/git/object-file.c:894:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strbuf_realpath(&path, e->path, 0))
                                                ^
                                                 {
/datasets/git/object-file.c:896:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strbuf_strip_suffix(&path, "/objects"))
                                                    ^
                                                     {
/datasets/git/object-file.c:902:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_directory(path.buf))
                                    ^
                                     {
/datasets/git/object-file.c:913:46: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
void for_each_alternate_ref(alternate_ref_fn fn, void *data)
                                             ^
/datasets/git/object-file.c:915:29: warning: variable name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
        struct alternate_refs_data cb;
                                   ^
/datasets/git/object-file.c:921:32: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
int foreach_alt_odb(alt_odb_fn fn, void *cb)
                               ^
/datasets/git/object-file.c:921:42: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
int foreach_alt_odb(alt_odb_fn fn, void *cb)
                                         ^
/datasets/git/object-file.c:923:2: note: inferred assignment of ID-dependent value from ID-dependent member next [altera-id-dependent-backward-branch]
        struct object_directory *ent;
        ^
/datasets/git/object-file.c:923:27: warning: variable 'ent' is not initialized [cppcoreguidelines-init-variables]
        struct object_directory *ent;
                                 ^
                                     = NULL
/datasets/git/object-file.c:924:6: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        int r = 0;
            ^
/datasets/git/object-file.c:927:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (ent = the_repository->objects->odb->next; ent; ent = ent->next) {
        ^
/datasets/git/object-file.c:927:49: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ent' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (ent = the_repository->objects->odb->next; ent; ent = ent->next) {
                                                       ^
/datasets/git/object-file.c:929:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (r)
                      ^
                       {
/datasets/git/object-file.c:935:41: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void prepare_alt_odb(struct repository *r)
                                        ^
/datasets/git/object-file.c:937:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (r->objects->loaded_alternates)
                                          ^
                                           {
/datasets/git/object-file.c:947:37: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
static int freshen_file(const char *fn)
                                    ^
/datasets/git/object-file.c:959:40: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
int check_and_freshen_file(const char *fn, int freshen)
                                       ^
/datasets/git/object-file.c:961:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (access(fn, F_OK))
                             ^
                              {
/datasets/git/object-file.c:963:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (freshen && !freshen_file(fn))
                                         ^
                                          {
/datasets/git/object-file.c:984:27: warning: variable 'odb' is not initialized [cppcoreguidelines-init-variables]
        struct object_directory *odb;
                                 ^
                                     = NULL
/datasets/git/object-file.c:987:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (odb = the_repository->objects->odb->next; odb; odb = odb->next) {
        ^
/datasets/git/object-file.c:987:49: warning: backward branch (for loop) is ID-dependent due to variable reference to 'odb' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (odb = the_repository->objects->odb->next; odb; odb = odb->next) {
                                                       ^
/datasets/git/object-file.c:988:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (check_and_freshen_odb(odb, oid, freshen))
                                                             ^
                                                              {
/datasets/git/object-file.c:1015:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!limit)
                           ^
                            {
/datasets/git/object-file.c:1018:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (length > limit)
                           ^
                            {
/datasets/git/object-file.c:1024:30: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
                  int prot, int flags, int fd, off_t offset)
                                           ^
/datasets/git/object-file.c:1026:8: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        void *ret;
              ^
                  = NULL
/datasets/git/object-file.c:1030:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret == MAP_FAILED && !length)
                                         ^
                                          {
/datasets/git/object-file.c:1050:27: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
        int prot, int flags, int fd, off_t offset)
                                 ^
/datasets/git/object-file.c:1053:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret == MAP_FAILED)
                              ^
                               {
/datasets/git/object-file.c:1064:37: warning: 2 adjacent parameters of 'format_object_header' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
int format_object_header(char *str, size_t size, enum object_type type,
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/object-file.c:1064:44: note: the first parameter in the range is 'size'
int format_object_header(char *str, size_t size, enum object_type type,
                                           ^~~~
/datasets/git/object-file.c:1064:67: note: the last parameter in the range is 'type'
int format_object_header(char *str, size_t size, enum object_type type,
                                                                  ^~~~
/datasets/git/object-file.c:1064:37: note: 
int format_object_header(char *str, size_t size, enum object_type type,
                                    ^
/datasets/git/object-file.c:1064:50: note: 'size_t' and 'enum object_type' may be implicitly converted: 'size_t' (as 'unsigned long') -> 'enum object_type', 'enum object_type' -> 'size_t' (as 'unsigned long')
int format_object_header(char *str, size_t size, enum object_type type,
                                                 ^
/datasets/git/object-file.c:1069:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!name)
                  ^
                   {
/datasets/git/object-file.c:1075:47: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int check_object_signature(struct repository *r, const struct object_id *oid,
                                              ^
/datasets/git/object-file.c:1086:48: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int stream_object_signature(struct repository *r, const struct object_id *oid)
                                               ^
/datasets/git/object-file.c:1089:16: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size;
                      ^
                           = 0
/datasets/git/object-file.c:1090:19: warning: variable 'obj_type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type obj_type;
                         ^
/datasets/git/object-file.c:1091:22: warning: variable 'st' is not initialized [cppcoreguidelines-init-variables]
        struct git_istream *st;
                            ^
                               = NULL
/datasets/git/object-file.c:1091:22: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object-file.c:1092:15: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        git_hash_ctx c;
                     ^
/datasets/git/object-file.c:1094:6: warning: variable 'hdrlen' is not initialized [cppcoreguidelines-init-variables]
        int hdrlen;
            ^
                   = 0
/datasets/git/object-file.c:1097:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!st)
                ^
                 {
/datasets/git/object-file.c:1106:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/object-file.c:1107:12: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                char buf[1024 * 16];
                         ^
/datasets/git/object-file.c:1107:19: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                char buf[1024 * 16];
                                ^
/datasets/git/object-file.c:1114:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!readlen)
                             ^
                              {
/datasets/git/object-file.c:1125:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/object-file.c:1125:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object-file.c:1128:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        fd = open(name, flags | o_cloexec);
                        ^~~~~
/datasets/git/object-file.c:1129:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((o_cloexec & O_CLOEXEC) && fd < 0 && errno == EINVAL) {
             ^~~~~~~~~
/datasets/git/object-file.c:1131:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                o_cloexec &= ~O_CLOEXEC;
                ^~~~~~~~~
/datasets/git/object-file.c:1131:16: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                o_cloexec &= ~O_CLOEXEC;
                             ^
/datasets/git/object-file.c:1132:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                fd = open(name, flags | o_cloexec);
                                ^~~~~
/datasets/git/object-file.c:1142:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (fcntl(fd, F_SETFD, flags | fd_cloexec))
                                               ^~~~~
/datasets/git/object-file.c:1142:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (fcntl(fd, F_SETFD, flags | fd_cloexec))
                                                                   ^
                                                                    {
/datasets/git/object-file.c:1158:49: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int stat_loose_object(struct repository *r, const struct object_id *oid,
                                                ^
/datasets/git/object-file.c:1159:22: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                             struct stat *st, const char **path)
                                          ^
/datasets/git/object-file.c:1161:2: note: inferred assignment of ID-dependent value from ID-dependent member odb [altera-id-dependent-backward-branch]
        struct object_directory *odb;
        ^
/datasets/git/object-file.c:1161:27: warning: variable 'odb' is not initialized [cppcoreguidelines-init-variables]
        struct object_directory *odb;
                                 ^
                                     = NULL
/datasets/git/object-file.c:1165:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (odb = r->objects->odb; odb; odb = odb->next) {
        ^
/datasets/git/object-file.c:1165:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'odb' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (odb = r->objects->odb; odb; odb = odb->next) {
                                    ^
/datasets/git/object-file.c:1167:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!lstat(*path, st))
                                      ^
                                       {
/datasets/git/object-file.c:1178:49: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int open_loose_object(struct repository *r,
                                                ^
/datasets/git/object-file.c:1182:2: note: inferred assignment of ID-dependent value from ID-dependent member odb [altera-id-dependent-backward-branch]
        struct object_directory *odb;
        ^
/datasets/git/object-file.c:1181:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/object-file.c:1181:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object-file.c:1182:27: warning: variable 'odb' is not initialized [cppcoreguidelines-init-variables]
        struct object_directory *odb;
                                 ^
                                     = NULL
/datasets/git/object-file.c:1187:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (odb = r->objects->odb; odb; odb = odb->next) {
        ^
/datasets/git/object-file.c:1187:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'odb' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (odb = r->objects->odb; odb; odb = odb->next) {
                                    ^
/datasets/git/object-file.c:1190:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fd >= 0)
                            ^
                             {
/datasets/git/object-file.c:1193:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (most_interesting_errno == ENOENT)
                                                     ^
                                                      {
/datasets/git/object-file.c:1200:47: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int quick_has_loose(struct repository *r,
                                              ^
/datasets/git/object-file.c:1203:2: note: inferred assignment of ID-dependent value from ID-dependent member odb [altera-id-dependent-backward-branch]
        struct object_directory *odb;
        ^
/datasets/git/object-file.c:1203:27: warning: variable 'odb' is not initialized [cppcoreguidelines-init-variables]
        struct object_directory *odb;
                                 ^
                                     = NULL
/datasets/git/object-file.c:1206:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (odb = r->objects->odb; odb; odb = odb->next) {
        ^
/datasets/git/object-file.c:1206:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'odb' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (odb = r->objects->odb; odb; odb = odb->next) {
                                    ^
/datasets/git/object-file.c:1207:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (oidtree_contains(odb_loose_cache(odb, oid), oid))
                                                                     ^
                                                                      {
/datasets/git/object-file.c:1217:52: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void *map_loose_object_1(struct repository *r, const char *path,
                                                   ^
/datasets/git/object-file.c:1220:8: warning: variable 'map' is not initialized [cppcoreguidelines-init-variables]
        void *map;
              ^
                  = NULL
/datasets/git/object-file.c:1221:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/object-file.c:1221:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object-file.c:1223:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (path)
                 ^
                  {
/datasets/git/object-file.c:1225:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/object-file.c:1229:15: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                struct stat st;
                            ^
/datasets/git/object-file.c:1246:43: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void *map_loose_object(struct repository *r,
                                          ^
/datasets/git/object-file.c:1260:6: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int status;
            ^
                   = 0
/datasets/git/object-file.c:1263:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(stream, 0, sizeof(*stream));
        ^~~~~~
/datasets/git/object-file.c:1263:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(stream, 0, sizeof(*stream));
        ^~~~~~
/datasets/git/object-file.c:1273:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (status < Z_OK)
                          ^
                           {
/datasets/git/object-file.c:1279:71: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (memchr(buffer, '\0', stream->next_out - (unsigned char *)buffer))
                                                                             ^
                                                                              {
/datasets/git/object-file.c:1287:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!header)
                    ^
                     {
/datasets/git/object-file.c:1299:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        do {
        ^
/datasets/git/object-file.c:1304:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (memchr(buffer, '\0', stream->next_out - (unsigned char *)buffer))
                                                                                     ^
                                                                                      {
/datasets/git/object-file.c:1308:11: warning: backward branch (do loop) is ID-dependent due to variable reference to 'status' and may cause performance degradation [altera-id-dependent-backward-branch]
        } while (status != Z_STREAM_END);
                 ^
/datasets/git/object-file.c:1316:14: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int bytes = strlen(buffer) + 1;
                    ^
/datasets/git/object-file.c:1318:16: warning: variable 'n' is not initialized [cppcoreguidelines-init-variables]
        unsigned long n;
                      ^
                        = 0
/datasets/git/object-file.c:1318:16: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object-file.c:1322:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (n > size)
                     ^
                      {
/datasets/git/object-file.c:1324:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(buf, (char *) buffer + bytes, n);
        ^~~~~~
/datasets/git/object-file.c:1324:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(buf, (char *) buffer + bytes, n);
        ^~~~~~
/datasets/git/object-file.c:1325:10: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        bytes = n;
                ^
/datasets/git/object-file.c:1342:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (status == Z_OK) {
                ^
/datasets/git/object-file.c:1342:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'status' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (status == Z_OK) {
                       ^
/datasets/git/object-file.c:1353:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (status < 0)
                       ^
                        {
/datasets/git/object-file.c:1355:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (stream->avail_in)
                                  ^
                                   {
/datasets/git/object-file.c:1367:61: warning: parameter name 'oi' is too short, expected at least 3 characters [readability-identifier-length]
int parse_loose_header(const char *hdr, struct object_info *oi)
                                                            ^
/datasets/git/object-file.c:1370:9: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        size_t size;
               ^
                    = 0
/datasets/git/object-file.c:1371:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int type, type_len = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/object-file.c:1371:6: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        int type, type_len = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/object-file.c:1377:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/object-file.c:1378:8: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                char c = *hdr++;
                     ^
/datasets/git/object-file.c:1379:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!c)
                       ^
                        {
/datasets/git/object-file.c:1381:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (c == ' ')
                             ^
                              {
/datasets/git/object-file.c:1387:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oi->type_name)
                          ^
                           {
/datasets/git/object-file.c:1389:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oi->typep)
                      ^
                       {
/datasets/git/object-file.c:1397:13: warning: 9 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (size > 9)
                   ^
/datasets/git/object-file.c:1397:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (size > 9)
                     ^
                      {
/datasets/git/object-file.c:1400:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (;;) {
                ^
/datasets/git/object-file.c:1401:18: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                        unsigned long c = *hdr - '0';
                                      ^
/datasets/git/object-file.c:1402:12: warning: 9 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        if (c > 9)
                                ^
/datasets/git/object-file.c:1402:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (c > 9)
                                  ^
                                   {
/datasets/git/object-file.c:1405:32: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        size = st_add(st_mult(size, 10), c);
                                                    ^
/datasets/git/object-file.c:1409:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oi->sizep)
                      ^
                       {
/datasets/git/object-file.c:1415:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*hdr)
                 ^
                  {
/datasets/git/object-file.c:1425:12: warning: function 'loose_object_info' has cognitive complexity of 32 (threshold 25) [readability-function-cognitive-complexity]
static int loose_object_info(struct repository *r,
           ^
/datasets/git/object-file.c:1439:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (oi->delta_base_oid)
        ^
/datasets/git/object-file.c:1450:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!oi->typep && !oi->type_name && !oi->sizep && !oi->contentp) {
        ^
/datasets/git/object-file.c:1450:49: note: +1
        if (!oi->typep && !oi->type_name && !oi->sizep && !oi->contentp) {
                                                       ^
/datasets/git/object-file.c:1453:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!oi->disk_sizep && (flags & OBJECT_INFO_QUICK))
                ^
/datasets/git/object-file.c:1453:23: note: +1
                if (!oi->disk_sizep && (flags & OBJECT_INFO_QUICK))
                                    ^
/datasets/git/object-file.c:1454:35: note: +3, including nesting penalty of 2, nesting level increased to 3
                        return quick_has_loose(r, oid) ? 0 : -1;
                                                       ^
/datasets/git/object-file.c:1455:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (stat_loose_object(r, oid, &st, &path) < 0)
                ^
/datasets/git/object-file.c:1457:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (oi->disk_sizep)
                ^
/datasets/git/object-file.c:1463:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!map)
        ^
/datasets/git/object-file.c:1466:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!oi->sizep)
        ^
/datasets/git/object-file.c:1468:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!oi->typep)
        ^
/datasets/git/object-file.c:1471:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (oi->disk_sizep)
        ^
/datasets/git/object-file.c:1474:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        switch (unpack_loose_header(&stream, map, mapsize, hdr, sizeof(hdr),
        ^
/datasets/git/object-file.c:1475:23: note: +2, including nesting penalty of 1, nesting level increased to 2
                                    allow_unknown ? &hdrbuf : NULL)) {
                                                  ^
/datasets/git/object-file.c:1477:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (parse_loose_header(hdrbuf.len ? hdrbuf.buf : hdr, oi) < 0)
                ^
/datasets/git/object-file.c:1477:37: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (parse_loose_header(hdrbuf.len ? hdrbuf.buf : hdr, oi) < 0)
                                                  ^
/datasets/git/object-file.c:1479:8: note: +1, nesting level increased to 2
                else if (!allow_unknown && *oi->typep < 0)
                     ^
/datasets/git/object-file.c:1479:27: note: +1
                else if (!allow_unknown && *oi->typep < 0)
                                        ^
/datasets/git/object-file.c:1482:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!oi->contentp)
                ^
/datasets/git/object-file.c:1485:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*oi->contentp)
                ^
/datasets/git/object-file.c:1503:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (oi->sizep == &size_scratch)
        ^
/datasets/git/object-file.c:1506:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (oi->typep == &type_scratch)
        ^
/datasets/git/object-file.c:1425:49: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int loose_object_info(struct repository *r,
                                                ^
/datasets/git/object-file.c:1427:29: warning: parameter name 'oi' is too short, expected at least 3 characters [readability-identifier-length]
                             struct object_info *oi, int flags)
                                                 ^
/datasets/git/object-file.c:1430:16: warning: variable 'mapsize' is not initialized [cppcoreguidelines-init-variables]
        unsigned long mapsize;
                      ^
                              = 0
/datasets/git/object-file.c:1431:8: warning: variable 'map' is not initialized [cppcoreguidelines-init-variables]
        void *map;
              ^
                  = NULL
/datasets/git/object-file.c:1435:16: warning: variable 'size_scratch' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size_scratch;
                      ^
                                   = 0
/datasets/git/object-file.c:1436:19: warning: variable 'type_scratch' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type_scratch;
                         ^
/datasets/git/object-file.c:1437:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int allow_unknown = flags & OBJECT_INFO_ALLOW_UNKNOWN_TYPE;
                            ^~~~~
/datasets/git/object-file.c:1439:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oi->delta_base_oid)
                               ^
                                {
/datasets/git/object-file.c:1451:15: warning: variable 'path' is not initialized [cppcoreguidelines-init-variables]
                const char *path;
                            ^
                                 = NULL
/datasets/git/object-file.c:1452:15: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                struct stat st;
                            ^
/datasets/git/object-file.c:1453:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!oi->disk_sizep && (flags & OBJECT_INFO_QUICK))
                                        ^~~~~
/datasets/git/object-file.c:1453:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!oi->disk_sizep && (flags & OBJECT_INFO_QUICK))
                                                                   ^
                                                                    {
/datasets/git/object-file.c:1455:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (stat_loose_object(r, oid, &st, &path) < 0)
                                                              ^
                                                               {
/datasets/git/object-file.c:1457:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (oi->disk_sizep)
                                   ^
                                    {
/datasets/git/object-file.c:1463:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!map)
                 ^
                  {
/datasets/git/object-file.c:1466:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!oi->sizep)
                       ^
                        {
/datasets/git/object-file.c:1468:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!oi->typep)
                       ^
                        {
/datasets/git/object-file.c:1471:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oi->disk_sizep)
                           ^
                            {
/datasets/git/object-file.c:1472:21: warning: narrowing conversion from 'unsigned long' to signed type 'off_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                *oi->disk_sizep = mapsize;
                                  ^
/datasets/git/object-file.c:1477:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (parse_loose_header(hdrbuf.len ? hdrbuf.buf : hdr, oi) < 0)
                                                                              ^
                                                                               {
/datasets/git/object-file.c:1479:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!allow_unknown && *oi->typep < 0)
                                                          ^
                                                           {
/datasets/git/object-file.c:1482:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!oi->contentp)
                                  ^
                                   {
/datasets/git/object-file.c:1485:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*oi->contentp)
                                  ^
                                   {
/datasets/git/object-file.c:1503:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oi->sizep == &size_scratch)
                                       ^
                                        {
/datasets/git/object-file.c:1506:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oi->typep == &type_scratch)
                                       ^
                                        {
/datasets/git/object-file.c:1512:5: warning: variable 'obj_read_use_lock' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
int obj_read_use_lock = 0;
    ^
/datasets/git/object-file.c:1513:17: warning: variable 'obj_read_mutex' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
pthread_mutex_t obj_read_mutex;
                ^
/datasets/git/object-file.c:1517:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (obj_read_use_lock)
                              ^
                               {
/datasets/git/object-file.c:1526:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!obj_read_use_lock)
                               ^
                                {
/datasets/git/object-file.c:1533:5: warning: variable 'fetch_if_missing' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
int fetch_if_missing = 1;
    ^
/datasets/git/object-file.c:1535:12: warning: function 'do_oid_object_info_extended' is within a recursive call chain [misc-no-recursion]
static int do_oid_object_info_extended(struct repository *r,
           ^
/datasets/git/object-file.c:1535:12: note: example recursive call chain, starting from function 'do_oid_object_info_extended'
/datasets/git/object-file.c:1624:10: note: Frame #1: function 'do_oid_object_info_extended' calls function 'do_oid_object_info_extended' here:
                return do_oid_object_info_extended(r, real, oi, 0);
                       ^
/datasets/git/object-file.c:1624:10: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/object-file.c:1535:12: warning: function 'do_oid_object_info_extended' has cognitive complexity of 38 (threshold 25) [readability-function-cognitive-complexity]
static int do_oid_object_info_extended(struct repository *r,
           ^
/datasets/git/object-file.c:1547:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (flags & OBJECT_INFO_LOOKUP_REPLACE)
        ^
/datasets/git/object-file.c:1550:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (is_null_oid(real))
        ^
/datasets/git/object-file.c:1553:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!oi)
        ^
/datasets/git/object-file.c:1557:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (co) {
        ^
/datasets/git/object-file.c:1558:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (oi->typep)
                ^
/datasets/git/object-file.c:1560:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (oi->sizep)
                ^
/datasets/git/object-file.c:1562:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (oi->disk_sizep)
                ^
/datasets/git/object-file.c:1564:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (oi->delta_base_oid)
                ^
/datasets/git/object-file.c:1566:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (oi->type_name)
                ^
/datasets/git/object-file.c:1568:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (oi->contentp)
                ^
/datasets/git/object-file.c:1574:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (1) {
        ^
/datasets/git/object-file.c:1575:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (find_pack_entry(r, real, &e))
                ^
/datasets/git/object-file.c:1578:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (flags & OBJECT_INFO_IGNORE_LOOSE)
                ^
/datasets/git/object-file.c:1582:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!loose_object_info(r, real, oi, flags))
                ^
/datasets/git/object-file.c:1586:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!(flags & OBJECT_INFO_QUICK)) {
                ^
/datasets/git/object-file.c:1588:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (find_pack_entry(r, real, &e))
                        ^
/datasets/git/object-file.c:1598:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (r == the_repository &&
                ^
/datasets/git/object-file.c:1598:27: note: +1
                if (r == the_repository &&
                                        ^
/datasets/git/object-file.c:1604:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (fetch_if_missing && repo_has_promisor_remote(r) &&
                ^
/datasets/git/object-file.c:1605:24: note: +1
                    !already_retried &&
                                     ^
/datasets/git/object-file.c:1615:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (oi == &blank_oi)
        ^
/datasets/git/object-file.c:1622:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (rtype < 0) {
        ^
/datasets/git/object-file.c:1625:9: note: +1, nesting level increased to 1
        } else if (oi->whence == OI_PACKED) {
               ^
/datasets/git/object-file.c:1628:51: note: +1
                oi->u.packed.is_delta = (rtype == OBJ_REF_DELTA ||
                                                                ^
/datasets/git/object-file.c:1535:59: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int do_oid_object_info_extended(struct repository *r,
                                                          ^
/datasets/git/object-file.c:1537:32: warning: parameter name 'oi' is too short, expected at least 3 characters [readability-identifier-length]
                                       struct object_info *oi, unsigned flags)
                                                           ^
/datasets/git/object-file.c:1540:24: warning: variable 'co' is not initialized [cppcoreguidelines-init-variables]
        struct cached_object *co;
                              ^
                                 = NULL
/datasets/git/object-file.c:1540:24: warning: variable name 'co' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object-file.c:1541:20: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
        struct pack_entry e;
                          ^
/datasets/git/object-file.c:1542:6: warning: variable 'rtype' is not initialized [cppcoreguidelines-init-variables]
        int rtype;
            ^
                  = 0
/datasets/git/object-file.c:1547:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & OBJECT_INFO_LOOKUP_REPLACE)
            ^
/datasets/git/object-file.c:1547:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & OBJECT_INFO_LOOKUP_REPLACE)
                                               ^
                                                {
/datasets/git/object-file.c:1550:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_null_oid(real))
                              ^
                               {
/datasets/git/object-file.c:1553:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!oi)
                ^
                 {
/datasets/git/object-file.c:1558:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (oi->typep)
                              ^
                               {
/datasets/git/object-file.c:1560:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (oi->sizep)
                              ^
                               {
/datasets/git/object-file.c:1562:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (oi->disk_sizep)
                                   ^
                                    {
/datasets/git/object-file.c:1564:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (oi->delta_base_oid)
                                       ^
                                        {
/datasets/git/object-file.c:1566:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (oi->type_name)
                                  ^
                                   {
/datasets/git/object-file.c:1568:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (oi->contentp)
                                 ^
                                  {
/datasets/git/object-file.c:1574:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/object-file.c:1575:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (find_pack_entry(r, real, &e))
                                                 ^
                                                  {
/datasets/git/object-file.c:1578:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flags & OBJECT_INFO_IGNORE_LOOSE)
                    ^
/datasets/git/object-file.c:1578:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (flags & OBJECT_INFO_IGNORE_LOOSE)
                                                     ^
                                                      {
/datasets/git/object-file.c:1582:39: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                if (!loose_object_info(r, real, oi, flags))
                                                    ^
/datasets/git/object-file.c:1582:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!loose_object_info(r, real, oi, flags))
                                                           ^
                                                            {
/datasets/git/object-file.c:1586:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(flags & OBJECT_INFO_QUICK)) {
                      ^
/datasets/git/object-file.c:1588:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (find_pack_entry(r, real, &e))
                                                         ^
                                                          {
/datasets/git/object-file.c:1599:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    register_all_submodule_odb_as_alternates())
                                                               ^
                                                                {
/datasets/git/object-file.c:1606:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    !(flags & OBJECT_INFO_SKIP_FETCH_OBJECT)) {
                      ^
/datasets/git/object-file.c:1615:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oi == &blank_oi)
                            ^
                             {
/datasets/git/object-file.c:1625:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else if (oi->whence == OI_PACKED) {
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/object-file.c:1635:49: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int oid_object_info_extended(struct repository *r, const struct object_id *oid,
                                                ^
/datasets/git/object-file.c:1636:29: warning: parameter name 'oi' is too short, expected at least 3 characters [readability-identifier-length]
                             struct object_info *oi, unsigned flags)
                                                 ^
/datasets/git/object-file.c:1638:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/object-file.c:1647:40: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int oid_object_info(struct repository *r,
                                       ^
/datasets/git/object-file.c:1651:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/object-file.c:1652:21: warning: variable name 'oi' is too short, expected at least 3 characters [readability-identifier-length]
        struct object_info oi = OBJECT_INFO_INIT;
                           ^
/datasets/git/object-file.c:1657:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                      OBJECT_INFO_LOOKUP_REPLACE) < 0)
                                                                      ^
                                                                       {
/datasets/git/object-file.c:1662:45: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void *read_object(struct repository *r,
                                            ^
/datasets/git/object-file.c:1666:21: warning: variable name 'oi' is too short, expected at least 3 characters [readability-identifier-length]
        struct object_info oi = OBJECT_INFO_INIT;
                           ^
/datasets/git/object-file.c:1667:8: warning: variable 'content' is not initialized [cppcoreguidelines-init-variables]
        void *content;
              ^
                      = NULL
/datasets/git/object-file.c:1672:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oid_object_info_extended(r, oid, &oi, 0) < 0)
                                                         ^
                                                          {
/datasets/git/object-file.c:1680:24: warning: variable 'co' is not initialized [cppcoreguidelines-init-variables]
        struct cached_object *co;
                              ^
                                 = NULL
/datasets/git/object-file.c:1680:24: warning: variable name 'co' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object-file.c:1683:38: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (has_object_file_with_flags(oid, OBJECT_INFO_QUICK | OBJECT_INFO_SKIP_FETCH_OBJECT) ||
                                            ^
/datasets/git/./object-store.h:436:27: note: expanded from macro 'OBJECT_INFO_QUICK'
#define OBJECT_INFO_QUICK 8
                          ^
/datasets/git/./object-store.h:336:101: note: expanded from macro 'has_object_file_with_flags'
#define has_object_file_with_flags(oid, flags) repo_has_object_file_with_flags(the_repository, oid, flags)
                                                                                                    ^~~~~
/datasets/git/object-file.c:1684:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            find_cached_object(oid))
                                    ^
                                     {
/datasets/git/object-file.c:1686:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(cached_objects, cached_object_nr + 1, cached_object_alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/object-file.c:1691:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(co->buf, buf, len);
        ^~~~~~
/datasets/git/object-file.c:1691:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(co->buf, buf, len);
        ^~~~~~
/datasets/git/object-file.c:1701:52: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void *read_object_file_extended(struct repository *r,
                                                   ^
/datasets/git/object-file.c:1707:8: warning: variable 'data' is not initialized [cppcoreguidelines-init-variables]
        void *data;
              ^
                   = NULL
/datasets/git/object-file.c:1708:27: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        const struct packed_git *p;
                                 ^
                                   = NULL
/datasets/git/object-file.c:1708:27: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object-file.c:1709:14: warning: variable 'path' is not initialized [cppcoreguidelines-init-variables]
        const char *path;
                    ^
                         = NULL
/datasets/git/object-file.c:1710:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/object-file.c:1716:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (data)
                 ^
                  {
/datasets/git/object-file.c:1720:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (errno && errno != ENOENT)
                                     ^
                                      {
/datasets/git/object-file.c:1724:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repl != oid)
                        ^
                         {
/datasets/git/object-file.c:1728:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!stat_loose_object(r, repl, &st, &path))
                                                    ^
                                                     {
/datasets/git/object-file.c:1732:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if ((p = has_packed_and_bad(r, repl)))
             ^
/datasets/git/object-file.c:1732:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/object-file.c:1732:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/object-file.c:1732:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((p = has_packed_and_bad(r, repl)))
                                              ^
                                               {
/datasets/git/object-file.c:1740:53: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void *read_object_with_reference(struct repository *r,
                                                    ^
/datasets/git/object-file.c:1746:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/object-file.c:1747:8: warning: variable 'buffer' is not initialized [cppcoreguidelines-init-variables]
        void *buffer;
              ^
                     = NULL
/datasets/git/object-file.c:1748:16: warning: variable 'isize' is not initialized [cppcoreguidelines-init-variables]
        unsigned long isize;
                      ^
                            = 0
/datasets/git/object-file.c:1752:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/object-file.c:1757:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!buffer)
                            ^
                             {
/datasets/git/object-file.c:1761:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (actual_oid_return)
                                              ^
                                               {
/datasets/git/object-file.c:1766:3: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                else if (type == OBJ_COMMIT)
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/object-file.c:1766:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (type == OBJ_COMMIT)
                                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/object-file.c:1768:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (type == OBJ_TAG)
                                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/object-file.c:1774:16: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                ref_length = strlen(ref_type);
                             ^
/datasets/git/object-file.c:1777:7: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                    memcmp(buffer, ref_type, ref_length) ||
                    ^
                                                         != 0
/datasets/git/object-file.c:1788:78: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static void hash_object_body(const struct git_hash_algo *algo, git_hash_ctx *c,
                                                                             ^
/datasets/git/object-file.c:1791:25: warning: pointer parameter 'hdrlen' can be pointer to const [readability-non-const-parameter]
                             char *hdr, int *hdrlen)
                                             ^
                                        const 
/datasets/git/object-file.c:1804:15: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        git_hash_ctx c;
                     ^
/datasets/git/object-file.c:1818:15: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        git_hash_ctx c;
                     ^
/datasets/git/object-file.c:1831:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (object_creation_mode == OBJECT_CREATION_USES_RENAMES)
                                                                 ^
                                                                  {
/datasets/git/object-file.c:1833:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (link(tmpfile, filename))
                                         ^
                                          {
/datasets/git/object-file.c:1849:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!rename(tmpfile, filename))
                                               ^
                                                {
/datasets/git/object-file.c:1862:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (adjust_shared_perm(filename))
                                         ^
                                          {
/datasets/git/object-file.c:1867:29: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
static int write_buffer(int fd, const void *buf, size_t len)
                            ^
/datasets/git/object-file.c:1869:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_in_full(fd, buf, len) < 0)
                                            ^
                                             {
/datasets/git/object-file.c:1892:36: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
static void close_loose_object(int fd, const char *filename)
                                   ^
/datasets/git/object-file.c:1894:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (the_repository->objects->odb->will_destroy)
                                                       ^
                                                        {
/datasets/git/object-file.c:1897:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (batch_fsync_enabled(FSYNC_COMPONENT_LOOSE_OBJECT))
                                                              ^
                                                               {
/datasets/git/object-file.c:1899:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (fsync_object_files > 0)
                                        ^
                                         {
/datasets/git/object-file.c:1901:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/object-file.c:1906:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (close(fd) != 0)
                           ^
                            {
/datasets/git/object-file.c:1913:14: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
        const char *s = strrchr(filename, '/');
                    ^
/datasets/git/object-file.c:1914:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!s)
               ^
                {
/datasets/git/object-file.c:1916:9: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return s - filename + 1;
               ^
/datasets/git/object-file.c:1928:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int fd, dirlen = directory_size(filename);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/object-file.c:1928:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd, dirlen = directory_size(filename);
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/object-file.c:1928:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object-file.c:1933:34: warning: 0444 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        fd = git_mkstemp_mode(tmp->buf, 0444);
                                        ^
/datasets/git/object-file.c:1943:23: warning: 0777 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (mkdir(tmp->buf, 0777) && errno != EEXIST)
                                    ^
/datasets/git/object-file.c:1943:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (mkdir(tmp->buf, 0777) && errno != EEXIST)
                                                             ^
                                                              {
/datasets/git/object-file.c:1945:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (adjust_shared_perm(tmp->buf))
                                                 ^
                                                  {
/datasets/git/object-file.c:1950:35: warning: 0444 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                fd = git_mkstemp_mode(tmp->buf, 0444);
                                                ^
/datasets/git/object-file.c:1970:24: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                                     git_hash_ctx *c,
                                                   ^
/datasets/git/object-file.c:1973:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/object-file.c:1973:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object-file.c:1977:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flags & HASH_SILENT)
                    ^
/datasets/git/object-file.c:1977:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (flags & HASH_SILENT)
                                        ^
                                         {
/datasets/git/object-file.c:1979:3: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                else if (errno == EACCES)
                ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/object-file.c:1979:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (errno == EACCES)
                                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/object-file.c:1983:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/object-file.c:1997:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (git_deflate(stream, 0) == Z_OK)
        ^
/datasets/git/object-file.c:1997:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (git_deflate(stream, 0) == Z_OK)
                                              ^
                                               {
/datasets/git/object-file.c:2008:52: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static int write_loose_object_common(git_hash_ctx *c,
                                                   ^
/datasets/git/object-file.c:2010:40: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
                                     unsigned char *in0, const int fd,
                                                                   ^
/datasets/git/object-file.c:2014:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/object-file.c:2018:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_buffer(fd, compressed, stream->next_out - compressed) < 0)
                                                                            ^
                                                                             {
/datasets/git/object-file.c:2032:50: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static int end_loose_object_common(git_hash_ctx *c, git_zstream *stream,
                                                 ^
/datasets/git/object-file.c:2035:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/object-file.c:2038:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret != Z_OK)
                        ^
                         {
/datasets/git/object-file.c:2046:39: warning: 3 adjacent parameters of 'write_loose_object' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                              int hdrlen, const void *buf, unsigned long len,
                                                           ^~~~~~~~~~~~~~~~~~
/datasets/git/object-file.c:2046:53: note: the first parameter in the range is 'len'
                              int hdrlen, const void *buf, unsigned long len,
                                                                         ^~~
/datasets/git/object-file.c:2047:33: note: the last parameter in the range is 'flags'
                              time_t mtime, unsigned flags)
                                                     ^~~~~
/datasets/git/object-file.c:2046:39: note: 
                              int hdrlen, const void *buf, unsigned long len,
                                                           ^
/datasets/git/object-file.c:2047:10: note: 'unsigned long' and 'time_t' may be implicitly converted: 'unsigned long' -> 'time_t' (as 'long'), 'time_t' (as 'long') -> 'unsigned long'
                              time_t mtime, unsigned flags)
                              ^
/datasets/git/object-file.c:2047:24: note: 'unsigned long' and 'unsigned int' may be implicitly converted
                              time_t mtime, unsigned flags)
                                            ^
/datasets/git/object-file.c:2047:10: note: 
                              time_t mtime, unsigned flags)
                              ^
/datasets/git/object-file.c:2047:24: note: 'time_t' and 'unsigned int' may be implicitly converted: 'time_t' (as 'long') -> 'unsigned int', 'unsigned int' -> 'time_t' (as 'long')
                              time_t mtime, unsigned flags)
                                            ^
/datasets/git/object-file.c:2049:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int fd, ret;
        ^~~~~~~~~~~~
/datasets/git/object-file.c:2049:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd, ret;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/object-file.c:2049:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object-file.c:2049:10: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int fd, ret;
                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/object-file.c:2050:27: warning: 4096 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        unsigned char compressed[4096];
                                 ^
/datasets/git/object-file.c:2052:15: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        git_hash_ctx c;
                     ^
/datasets/git/object-file.c:2057:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (batch_fsync_enabled(FSYNC_COMPONENT_LOOSE_OBJECT))
                                                              ^
                                                               {
/datasets/git/object-file.c:2065:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fd < 0)
                   ^
                    {
/datasets/git/object-file.c:2071:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        do {
        ^
/datasets/git/object-file.c:2076:11: warning: backward branch (do loop) is ID-dependent due to variable reference to 'ret' and may cause performance degradation [altera-id-dependent-backward-branch]
        } while (ret == Z_OK);
                 ^
/datasets/git/object-file.c:2078:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret != Z_STREAM_END)
                                ^
                                 {
/datasets/git/object-file.c:2082:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret != Z_OK)
                        ^
                         {
/datasets/git/object-file.c:2085:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!oideq(oid, &parano_oid))
                                     ^
                                      {
/datasets/git/object-file.c:2096:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    !(flags & HASH_SILENT))
                      ^
/datasets/git/object-file.c:2096:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !(flags & HASH_SILENT))
                                           ^
                                            {
/datasets/git/object-file.c:2110:20: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
        struct pack_entry e;
                          ^
/datasets/git/object-file.c:2111:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!find_pack_entry(the_repository, oid, &e))
                                                      ^
                                                       {
/datasets/git/object-file.c:2113:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (e.p->is_cruft)
                          ^
                           {
/datasets/git/object-file.c:2115:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (e.p->freshened)
                           ^
                            {
/datasets/git/object-file.c:2117:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!freshen_file(e.p->pack_name))
                                          ^
                                           {
/datasets/git/object-file.c:2126:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int fd, ret, err = 0, flush = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/object-file.c:2126:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd, ret, err = 0, flush = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/object-file.c:2126:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object-file.c:2126:10: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int fd, ret, err = 0, flush = 0;
                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/object-file.c:2127:27: warning: 4096 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        unsigned char compressed[4096];
                                 ^
/datasets/git/object-file.c:2129:15: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        git_hash_ctx c;
                     ^
/datasets/git/object-file.c:2132:6: warning: variable 'dirlen' is not initialized [cppcoreguidelines-init-variables]
        int dirlen;
            ^
                   = 0
/datasets/git/object-file.c:2134:6: warning: variable 'hdrlen' is not initialized [cppcoreguidelines-init-variables]
        int hdrlen;
            ^
                   = 0
/datasets/git/object-file.c:2136:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (batch_fsync_enabled(FSYNC_COMPONENT_LOOSE_OBJECT))
                                                              ^
                                                               {
/datasets/git/object-file.c:2160:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        do {
        ^
/datasets/git/object-file.c:2164:16: warning: variable name 'in' is too short, expected at least 3 characters [readability-identifier-length]
                        const void *in = in_stream->read(in_stream, &stream.avail_in);
                                    ^
/datasets/git/object-file.c:2168:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (in_stream->is_finished)
                                                   ^
                                                    {
/datasets/git/object-file.c:2179:11: warning: backward branch (do loop) is ID-dependent due to variable reference to 'ret' and may cause performance degradation [altera-id-dependent-backward-branch]
        } while (ret == Z_OK || ret == Z_BUF_ERROR);
                 ^
/datasets/git/object-file.c:2181:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (stream.total_in != len + hdrlen)
                                            ^
                                             {
/datasets/git/object-file.c:2192:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret != Z_STREAM_END)
                                ^
                                 {
/datasets/git/object-file.c:2195:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret != Z_OK)
                        ^
                         {
/datasets/git/object-file.c:2239:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (freshen_packed_object(oid) || freshen_loose_object(oid))
                                                                    ^
                                                                     {
/datasets/git/object-file.c:2248:8: warning: variable 'header' is not initialized [cppcoreguidelines-init-variables]
        char *header;
              ^
                     = NULL
/datasets/git/object-file.c:2249:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int hdrlen, status = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/object-file.c:2249:6: warning: variable 'hdrlen' is not initialized [cppcoreguidelines-init-variables]
        int hdrlen, status = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/object-file.c:2252:11: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        hdrlen = strlen(type) + MAX_HEADER_LEN;
                 ^
/datasets/git/object-file.c:2257:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & HASH_WRITE_OBJECT))
              ^
/datasets/git/object-file.c:2257:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(flags & HASH_WRITE_OBJECT))
                                         ^
                                          {
/datasets/git/object-file.c:2259:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (freshen_packed_object(oid) || freshen_loose_object(oid))
                                                                    ^
                                                                     {
/datasets/git/object-file.c:2270:8: warning: variable 'buf' is not initialized [cppcoreguidelines-init-variables]
        void *buf;
              ^
                  = NULL
/datasets/git/object-file.c:2271:16: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        unsigned long len;
                      ^
                          = 0
/datasets/git/object-file.c:2272:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/object-file.c:2274:6: warning: variable 'hdrlen' is not initialized [cppcoreguidelines-init-variables]
        int hdrlen;
            ^
                   = 0
/datasets/git/object-file.c:2275:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/object-file.c:2277:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (has_loose_object(oid))
                                  ^
                                   {
/datasets/git/object-file.c:2280:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!buf)
                 ^
                  {
/datasets/git/object-file.c:2289:35: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int has_object(struct repository *r, const struct object_id *oid,
                                  ^
/datasets/git/object-file.c:2292:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int quick = !(flags & HAS_OBJECT_RECHECK_PACKED);
                      ^
/datasets/git/object-file.c:2293:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned object_info_flags = OBJECT_INFO_SKIP_FETCH_OBJECT |
                                     ^
/datasets/git/./object-store.h:443:39: note: expanded from macro 'OBJECT_INFO_SKIP_FETCH_OBJECT'
#define OBJECT_INFO_SKIP_FETCH_OBJECT 32
                                      ^~
/datasets/git/object-file.c:2296:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!startup_info->have_repository)
                                           ^
                                            {
/datasets/git/object-file.c:2301:56: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int repo_has_object_file_with_flags(struct repository *r,
                                                       ^
/datasets/git/object-file.c:2304:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!startup_info->have_repository)
                                           ^
                                            {
/datasets/git/object-file.c:2309:45: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int repo_has_object_file(struct repository *r,
                                            ^
/datasets/git/object-file.c:2321:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (tree_entry(&desc, &entry))
        ^
/datasets/git/object-file.c:2321:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (tree_entry(&desc, &entry))
                                         ^
                                          {
/datasets/git/object-file.c:2329:16: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        struct commit c;
                      ^
/datasets/git/object-file.c:2330:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&c, 0, sizeof(c));
        ^~~~~~
/datasets/git/object-file.c:2330:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&c, 0, sizeof(c));
        ^~~~~~
/datasets/git/object-file.c:2331:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_commit_buffer(the_repository, &c, buf, size, 0))
                                                                  ^
                                                                   {
/datasets/git/object-file.c:2337:13: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
        struct tag t;
                   ^
/datasets/git/object-file.c:2338:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&t, 0, sizeof(t));
        ^~~~~~
/datasets/git/object-file.c:2338:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&t, 0, sizeof(t));
        ^~~~~~
/datasets/git/object-file.c:2339:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_tag_buffer(the_repository, &t, buf, size))
                                                            ^
                                                             {
/datasets/git/object-file.c:2350:21: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int write_object = flags & HASH_WRITE_OBJECT;
                           ^
/datasets/git/object-file.c:2350:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
/datasets/git/object-file.c:2352:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!type)
                  ^
                   {
/datasets/git/object-file.c:2366:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & HASH_FORMAT_CHECK) {
            ^
/datasets/git/object-file.c:2367:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (type == OBJ_TREE)
                                     ^
                                      {
/datasets/git/object-file.c:2369:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (type == OBJ_COMMIT)
                                       ^
                                        {
/datasets/git/object-file.c:2371:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (type == OBJ_TAG)
                                    ^
                                     {
/datasets/git/object-file.c:2375:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_object)
                         ^
                          {
/datasets/git/object-file.c:2377:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/object-file.c:2379:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (re_allocated)
                         ^
                          {
/datasets/git/object-file.c:2386:14: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
                                     int fd,
                                         ^
/datasets/git/object-file.c:2391:27: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        const int write_object = flags & HASH_WRITE_OBJECT;
                                 ^
/datasets/git/object-file.c:2391:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
/datasets/git/object-file.c:2400:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_object)
                         ^
                          {
/datasets/git/object-file.c:2403:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/object-file.c:2411:9: warning: 2 adjacent parameters of 'index_pipe' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                      int fd, enum object_type type,
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/object-file.c:2411:13: note: the first parameter in the range is 'fd'
                      int fd, enum object_type type,
                          ^~
/datasets/git/object-file.c:2411:34: note: the last parameter in the range is 'type'
                      int fd, enum object_type type,
                                               ^~~~
/datasets/git/object-file.c:2411:17: note: 'int' and 'enum object_type' may be implicitly converted
                      int fd, enum object_type type,
                              ^
/datasets/git/object-file.c:2411:13: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
                      int fd, enum object_type type,
                          ^
/datasets/git/object-file.c:2415:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/object-file.c:2417:29: warning: 4096 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (strbuf_read(&sbuf, fd, 4096) >= 0)
                                   ^
/datasets/git/object-file.c:2417:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strbuf_read(&sbuf, fd, 4096) >= 0)
                                              ^
                                               {
/datasets/git/object-file.c:2419:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/object-file.c:2425:1: warning: replace macro with enum [modernize-macro-to-enum]
#define SMALL_FILE_SIZE (32*1024)
^~~~~~~~
                        =
/datasets/git/object-file.c:2425:9: warning: macro 'SMALL_FILE_SIZE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define SMALL_FILE_SIZE (32*1024)
        ^
/datasets/git/object-file.c:2428:36: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
                      struct object_id *oid, int fd, size_t size,
                                                 ^
/datasets/git/object-file.c:2432:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/object-file.c:2436:21: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        } else if (size <= SMALL_FILE_SIZE) {
                           ^
/datasets/git/object-file.c:2425:26: note: expanded from macro 'SMALL_FILE_SIZE'
#define SMALL_FILE_SIZE (32*1024)
                         ^
/datasets/git/object-file.c:2436:21: note: make conversion explicit to silence this warning
        } else if (size <= SMALL_FILE_SIZE) {
                           ^
/datasets/git/object-file.c:2425:26: note: expanded from macro 'SMALL_FILE_SIZE'
#define SMALL_FILE_SIZE (32*1024)
                         ^~~~~~~
/datasets/git/object-file.c:2436:21: note: perform multiplication in a wider type
        } else if (size <= SMALL_FILE_SIZE) {
                           ^
/datasets/git/object-file.c:2425:26: note: expanded from macro 'SMALL_FILE_SIZE'
#define SMALL_FILE_SIZE (32*1024)
                         ^~
/datasets/git/object-file.c:2439:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (read_result < 0)
                                    ^
                                     {
/datasets/git/object-file.c:2442:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (read_result != size)
                                             ^
                                              {
/datasets/git/object-file.c:2445:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/object-file.c:2471:52: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
static int index_stream(struct object_id *oid, int fd, size_t size,
                                                   ^
/datasets/git/object-file.c:2479:11: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
             int fd, struct stat *st,
                 ^
/datasets/git/object-file.c:2479:28: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
             int fd, struct stat *st,
                                  ^
/datasets/git/object-file.c:2482:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/object-file.c:2488:79: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (type == OBJ_BLOB && path && would_convert_to_git_filter_fd(istate, path))
                                                                                     ^
                                                                                      {
/datasets/git/object-file.c:2490:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!S_ISREG(st->st_mode))
                                       ^
                                        {
/datasets/git/object-file.c:2493:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                 (path && would_convert_to_git(istate, path)))
                                                              ^
                                                               {
/datasets/git/object-file.c:2496:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/object-file.c:2504:40: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
               const char *path, struct stat *st, unsigned flags)
                                              ^
/datasets/git/object-file.c:2506:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/object-file.c:2506:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object-file.c:2507:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/object-file.c:2508:6: warning: variable name 'rc' is too short, expected at least 3 characters [readability-identifier-length]
        int rc = 0;
            ^
/datasets/git/object-file.c:2510:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        switch (st->st_mode & S_IFMT) {
                ^
/datasets/git/object-file.c:2512:27: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
                fd = open(path, O_RDONLY);
                                        ^
                                         | O_CLOEXEC
/datasets/git/object-file.c:2513:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fd < 0)
                           ^
                            {
/datasets/git/object-file.c:2515:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (index_fd(istate, oid, fd, st, OBJ_BLOB, path, flags) < 0)
                                                                             ^
                                                                              {
/datasets/git/object-file.c:2520:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strbuf_readlink(&sb, path, st->st_size))
                                                            ^
                                                             {
/datasets/git/object-file.c:2522:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(flags & HASH_WRITE_OBJECT))
                      ^
/datasets/git/object-file.c:2522:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(flags & HASH_WRITE_OBJECT))
                                                 ^
                                                  {
/datasets/git/object-file.c:2525:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (write_object_file(sb.buf, sb.len, OBJ_BLOB, oid))
                                                                          ^
                                                                           {
/datasets/git/object-file.c:2537:26: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
int read_pack_header(int fd, struct pack_header *header)
                         ^
/datasets/git/object-file.c:2539:67: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (read_in_full(fd, header, sizeof(*header)) != sizeof(*header))
                                                                         ^
                                                                          {
/datasets/git/object-file.c:2543:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (header->hdr_signature != htonl(PACK_SIGNATURE))
                                                           ^
                                                            {
/datasets/git/object-file.c:2546:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!pack_version_ok(header->hdr_version))
                                                  ^
                                                   {
/datasets/git/object-file.c:2555:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (type < 0)
                     ^
                      {
/datasets/git/object-file.c:2557:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (type != expect)
                           ^
                            {
/datasets/git/object-file.c:2569:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t origlen, baselen;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/object-file.c:2569:9: warning: variable 'origlen' is not initialized [cppcoreguidelines-init-variables]
        size_t origlen, baselen;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/object-file.c:2569:18: warning: variable 'baselen' is not initialized [cppcoreguidelines-init-variables]
        size_t origlen, baselen;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/object-file.c:2570:7: warning: variable 'dir' is not initialized [cppcoreguidelines-init-variables]
        DIR *dir;
             ^
                 = NULL
/datasets/git/object-file.c:2571:17: warning: variable 'de' is not initialized [cppcoreguidelines-init-variables]
        struct dirent *de;
                       ^
                          = NULL
/datasets/git/object-file.c:2571:17: warning: variable name 'de' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object-file.c:2572:6: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        int r = 0;
            ^
/datasets/git/object-file.c:2575:18: warning: 0xff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (subdir_nr > 0xff)
                        ^
/datasets/git/object-file.c:2575:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (subdir_nr > 0xff)
                             ^
                              {
/datasets/git/object-file.c:2584:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (errno != ENOENT)
                                    ^
                                     {
/datasets/git/object-file.c:2594:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((de = readdir_skip_dot_and_dotdot(dir))) {
        ^
/datasets/git/object-file.c:2594:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'de' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((de = readdir_skip_dot_and_dotdot(dir))) {
               ^
/datasets/git/object-file.c:2595:10: warning: variable 'namelen' is not initialized [cppcoreguidelines-init-variables]
                size_t namelen;
                       ^
                               = 0
/datasets/git/object-file.c:2606:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (r)
                                      ^
                                       {
/datasets/git/object-file.c:2614:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (r)
                              ^
                               {
/datasets/git/object-file.c:2621:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!r && subdir_cb)
                            ^
                             {
/datasets/git/object-file.c:2635:6: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        int r = 0;
            ^
/datasets/git/object-file.c:2636:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/object-file.c:2636:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object-file.c:2638:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < 256; i++) {
        ^
/datasets/git/object-file.c:2638:18: warning: 256 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        for (i = 0; i < 256; i++) {
                        ^
/datasets/git/object-file.c:2641:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (r)
                      ^
                       {
/datasets/git/object-file.c:2655:6: warning: variable 'r' is not initialized [cppcoreguidelines-init-variables]
        int r;
            ^
              = 0
/datasets/git/object-file.c:2655:6: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object-file.c:2665:48: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
int for_each_loose_object(each_loose_object_fn cb, void *data,
                                               ^
/datasets/git/object-file.c:2668:2: note: inferred assignment of ID-dependent value from ID-dependent member odb [altera-id-dependent-backward-branch]
        struct object_directory *odb;
        ^
/datasets/git/object-file.c:2668:27: warning: variable 'odb' is not initialized [cppcoreguidelines-init-variables]
        struct object_directory *odb;
                                 ^
                                     = NULL
/datasets/git/object-file.c:2671:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (odb = the_repository->objects->odb; odb; odb = odb->next) {
        ^
/datasets/git/object-file.c:2671:43: warning: backward branch (for loop) is ID-dependent due to variable reference to 'odb' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (odb = the_repository->objects->odb; odb; odb = odb->next) {
                                                 ^
/datasets/git/object-file.c:2672:7: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
                int r = for_each_loose_file_in_objdir(odb->path, cb, NULL,
                    ^
/datasets/git/object-file.c:2674:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (r)
                      ^
                       {
/datasets/git/object-file.c:2677:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flags & FOR_EACH_OBJECT_LOCAL_ONLY)
                    ^       ~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/object-file.c:2677:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (flags & FOR_EACH_OBJECT_LOCAL_ONLY)
                                                       ^
                                                        {
/datasets/git/object-file.c:2684:73: warning: parameter 'path' is unused [misc-unused-parameters]
static int append_loose_object(const struct object_id *oid, const char *path,
                                                                        ^
/datasets/git/object-file.c:2698:24: warning: integer literal has suffix 'u', which is not uppercase [hicpp-uppercase-literal-suffix,readability-uppercase-literal-suffix]
        size_t mask = (size_t)1u << (subdir_nr % word_bits);
                              ^~
                               U
/datasets/git/object-file.c:2699:12: warning: variable 'bitmap' is not initialized [cppcoreguidelines-init-variables]
        uint32_t *bitmap;
                  ^
                         = NULL
/datasets/git/object-file.c:2702:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            subdir_nr >= bitsizeof(odb->loose_objects_subdir_seen))
                                                                   ^
                                                                    {
/datasets/git/object-file.c:2706:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*bitmap & mask)
                           ^
                            {
/datasets/git/object-file.c:2725:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(odb->loose_objects_cache);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/object-file.c:2739:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        unsigned long total_read;
        ^
/datasets/git/object-file.c:2726:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&odb->loose_objects_subdir_seen, 0,
        ^~~~~~
/datasets/git/object-file.c:2726:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&odb->loose_objects_subdir_seen, 0,
        ^~~~~~
/datasets/git/object-file.c:2736:15: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        git_hash_ctx c;
                     ^
/datasets/git/object-file.c:2738:20: warning: 4096 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        unsigned char buf[4096];
                          ^
/datasets/git/object-file.c:2739:16: warning: variable 'total_read' is not initialized [cppcoreguidelines-init-variables]
        unsigned long total_read;
                      ^
                                 = 0
/datasets/git/object-file.c:2755:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (total_read <= size &&
        ^
/datasets/git/object-file.c:2755:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'total_read' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (total_read <= size &&
               ^
/datasets/git/object-file.c:2760:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (size - total_read < stream->avail_out)
                                                          ^
                                                           {
/datasets/git/object-file.c:2792:29: warning: parameter name 'oi' is too short, expected at least 3 characters [readability-identifier-length]
                      struct object_info *oi)
                                          ^
/datasets/git/object-file.c:2796:16: warning: variable 'mapsize' is not initialized [cppcoreguidelines-init-variables]
        unsigned long mapsize;
                      ^
                              = 0
/datasets/git/object-file.c:2820:69: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (check_stream_oid(&stream, hdr, *size, path, expected_oid) < 0)
                                                                                  ^
                                                                                   {
/datasets/git/object-file.c:2832:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!oideq(expected_oid, real_oid))
                                                   ^
                                                    {
/datasets/git/object-file.c:2839:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (map)
                ^
                 {
/datasets/git/object-name.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "blob.h"
/datasets/git/object-name.c:20:47: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int get_oid_oneline(struct repository *r, const char *, struct object_id *, struct commit_list *);
                                              ^
/datasets/git/object-name.c:20:62: warning: all parameters should be named in a function [hicpp-named-parameter,readability-named-parameter]
static int get_oid_oneline(struct repository *r, const char *, struct object_id *, struct commit_list *);
                                                             ^
                                                              /*prefix*/          /*oid*/               /*list*/
/datasets/git/object-name.c:24:8: warning: accessing fields in struct 'disambiguate_state' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct disambiguate_state {
       ^
/datasets/git/object-name.c:24:8: note: use "__attribute__((aligned(128)))" to align struct 'disambiguate_state' to 128 bytes
/datasets/git/object-name.c:41:58: warning: parameter name 'ds' is too short, expected at least 3 characters [readability-identifier-length]
static void update_candidates(struct disambiguate_state *ds, const struct object_id *current)
                                                         ^
/datasets/git/object-name.c:52:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else if (oideq(&ds->candidate, current)) {
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/object-name.c:89:31: warning: all parameters should be named in a function [hicpp-named-parameter,readability-named-parameter]
static int match_hash(unsigned, const unsigned char *, const unsigned char *);
                              ^
                               /*len*/                /*a*/                  /*b*/
/datasets/git/object-name.c:93:29: warning: variable name 'ds' is too short, expected at least 3 characters [readability-identifier-length]
        struct disambiguate_state *ds = arg;
                                   ^
/datasets/git/object-name.c:99:67: warning: parameter name 'ds' is too short, expected at least 3 characters [readability-identifier-length]
static void find_short_object_filename(struct disambiguate_state *ds)
                                                                  ^
/datasets/git/object-name.c:101:27: warning: variable 'odb' is not initialized [cppcoreguidelines-init-variables]
        struct object_directory *odb;
                                 ^
                                     = NULL
/datasets/git/object-name.c:103:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (odb = ds->repo->objects->odb; odb && !ds->ambiguous; odb = odb->next)
        ^
/datasets/git/object-name.c:103:37: warning: backward branch (for loop) is ID-dependent due to variable reference to 'odb' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (odb = ds->repo->objects->odb; odb && !ds->ambiguous; odb = odb->next)
                                           ^
/datasets/git/object-name.c:103:76: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (odb = ds->repo->objects->odb; odb && !ds->ambiguous; odb = odb->next)
                                                                                  ^
                                                                                   {
/datasets/git/object-name.c:108:58: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static int match_hash(unsigned len, const unsigned char *a, const unsigned char *b)
                                                         ^
/datasets/git/object-name.c:108:82: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static int match_hash(unsigned len, const unsigned char *a, const unsigned char *b)
                                                                                 ^
/datasets/git/object-name.c:110:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        do {
        ^
/datasets/git/object-name.c:111:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*a != *b)
                             ^
                              {
/datasets/git/object-name.c:117:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len)
                ^
                 {
/datasets/git/object-name.c:118:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((*a ^ *b) & 0xf0)
                    ^~~~~~~~~
/datasets/git/object-name.c:118:19: warning: 0xf0 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if ((*a ^ *b) & 0xf0)
                                ^
/datasets/git/object-name.c:118:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((*a ^ *b) & 0xf0)
                                     ^
                                      {
/datasets/git/object-name.c:123:53: warning: parameter name 'm' is too short, expected at least 3 characters [readability-identifier-length]
static void unique_in_midx(struct multi_pack_index *m,
                                                    ^
/datasets/git/object-name.c:124:34: warning: parameter name 'ds' is too short, expected at least 3 characters [readability-identifier-length]
                           struct disambiguate_state *ds)
                                                      ^
/datasets/git/object-name.c:126:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        uint32_t num, i, first = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/object-name.c:126:11: warning: variable 'num' is not initialized [cppcoreguidelines-init-variables]
        uint32_t num, i, first = 0;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/object-name.c:126:16: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t num, i, first = 0;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/object-name.c:126:16: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object-name.c:130:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!num)
                 ^
                  {
/datasets/git/object-name.c:140:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = first; i < num && !ds->ambiguous; i++) {
        ^
/datasets/git/object-name.c:140:18: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = first; i < num && !ds->ambiguous; i++) {
                        ^
/datasets/git/object-name.c:143:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!match_hash(ds->len, ds->bin_pfx.hash, current->hash))
                                                                          ^
                                                                           {
/datasets/git/object-name.c:149:47: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static void unique_in_pack(struct packed_git *p,
                                              ^
/datasets/git/object-name.c:150:34: warning: parameter name 'ds' is too short, expected at least 3 characters [readability-identifier-length]
                           struct disambiguate_state *ds)
                                                      ^
/datasets/git/object-name.c:152:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        uint32_t num, i, first = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/object-name.c:152:11: warning: variable 'num' is not initialized [cppcoreguidelines-init-variables]
        uint32_t num, i, first = 0;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/object-name.c:152:16: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t num, i, first = 0;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/object-name.c:152:16: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object-name.c:154:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (p->multi_pack_index)
                                ^
                                 {
/datasets/git/object-name.c:157:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (open_pack_index(p) || !p->num_objects)
                                                  ^
                                                   {
/datasets/git/object-name.c:168:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = first; i < num && !ds->ambiguous; i++) {
        ^
/datasets/git/object-name.c:168:18: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = first; i < num && !ds->ambiguous; i++) {
                        ^
/datasets/git/object-name.c:171:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!match_hash(ds->len, ds->bin_pfx.hash, oid.hash))
                                                                     ^
                                                                      {
/datasets/git/object-name.c:177:65: warning: parameter name 'ds' is too short, expected at least 3 characters [readability-identifier-length]
static void find_short_packed_object(struct disambiguate_state *ds)
                                                                ^
/datasets/git/object-name.c:179:27: warning: variable 'm' is not initialized [cppcoreguidelines-init-variables]
        struct multi_pack_index *m;
                                 ^
                                   = NULL
/datasets/git/object-name.c:179:27: warning: variable name 'm' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object-name.c:180:21: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct packed_git *p;
                           ^
                             = NULL
/datasets/git/object-name.c:180:21: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object-name.c:182:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (m = get_multi_pack_index(ds->repo); m && !ds->ambiguous;
        ^
/datasets/git/object-name.c:182:43: warning: backward branch (for loop) is ID-dependent due to variable reference to 'm' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (m = get_multi_pack_index(ds->repo); m && !ds->ambiguous;
                                                 ^
/datasets/git/object-name.c:183:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
             m = m->next)
                         ^
                          {
/datasets/git/object-name.c:185:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = get_packed_git(ds->repo); p && !ds->ambiguous;
        ^
/datasets/git/object-name.c:185:37: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = get_packed_git(ds->repo); p && !ds->ambiguous;
                                           ^
/datasets/git/object-name.c:186:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
             p = p->next)
                         ^
                          {
/datasets/git/object-name.c:190:68: warning: parameter name 'ds' is too short, expected at least 3 characters [readability-identifier-length]
static int finish_object_disambiguation(struct disambiguate_state *ds,
                                                                   ^
/datasets/git/object-name.c:193:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ds->ambiguous)
                          ^
                           {
/datasets/git/object-name.c:196:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ds->candidate_exists)
                                  ^
                                   {
/datasets/git/object-name.c:199:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ds->candidate_checked)
                                   ^
                                    {
/datasets/git/object-name.c:217:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ds->candidate_ok)
                              ^
                               {
/datasets/git/object-name.c:224:56: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int disambiguate_commit_only(struct repository *r,
                                                       ^
/datasets/git/object-name.c:226:15: warning: parameter 'cb_data_unused' is unused [misc-unused-parameters]
                                    void *cb_data_unused)
                                          ^
/datasets/git/object-name.c:232:60: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int disambiguate_committish_only(struct repository *r,
                                                           ^
/datasets/git/object-name.c:234:12: warning: parameter 'cb_data_unused' is unused [misc-unused-parameters]
                                        void *cb_data_unused)
                                              ^
/datasets/git/object-name.c:236:17: warning: variable 'obj' is not initialized [cppcoreguidelines-init-variables]
        struct object *obj;
                       ^
                           = NULL
/datasets/git/object-name.c:237:6: warning: variable 'kind' is not initialized [cppcoreguidelines-init-variables]
        int kind;
            ^
                 = 0
/datasets/git/object-name.c:240:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (kind == OBJ_COMMIT)
                               ^
                                {
/datasets/git/object-name.c:242:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (kind != OBJ_TAG)
                            ^
                             {
/datasets/git/object-name.c:247:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (obj && obj->type == OBJ_COMMIT)
                                           ^
                                            {
/datasets/git/object-name.c:252:54: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int disambiguate_tree_only(struct repository *r,
                                                     ^
/datasets/git/object-name.c:254:13: warning: parameter 'cb_data_unused' is unused [misc-unused-parameters]
                                  void *cb_data_unused)
                                        ^
/datasets/git/object-name.c:260:57: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int disambiguate_treeish_only(struct repository *r,
                                                        ^
/datasets/git/object-name.c:262:16: warning: parameter 'cb_data_unused' is unused [misc-unused-parameters]
                                     void *cb_data_unused)
                                           ^
/datasets/git/object-name.c:264:17: warning: variable 'obj' is not initialized [cppcoreguidelines-init-variables]
        struct object *obj;
                       ^
                           = NULL
/datasets/git/object-name.c:265:6: warning: variable 'kind' is not initialized [cppcoreguidelines-init-variables]
        int kind;
            ^
                 = 0
/datasets/git/object-name.c:268:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (kind == OBJ_TREE || kind == OBJ_COMMIT)
                                                   ^
                                                    {
/datasets/git/object-name.c:270:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (kind != OBJ_TAG)
                            ^
                             {
/datasets/git/object-name.c:275:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (obj && (obj->type == OBJ_TREE || obj->type == OBJ_COMMIT))
                                                                      ^
                                                                       {
/datasets/git/object-name.c:280:54: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int disambiguate_blob_only(struct repository *r,
                                                     ^
/datasets/git/object-name.c:282:13: warning: parameter 'cb_data_unused' is unused [misc-unused-parameters]
                                  void *cb_data_unused)
                                        ^
/datasets/git/object-name.c:288:29: warning: variable 'default_disambiguate_hint' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static disambiguate_hint_fn default_disambiguate_hint;
                            ^
/datasets/git/object-name.c:292:15: warning: accessing fields in struct '' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
        static const struct {
                     ^
/datasets/git/object-name.c:292:15: note: use "__attribute__((aligned(16)))" to align struct '' to 16 bytes
/datasets/git/object-name.c:303:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/object-name.c:303:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object-name.c:305:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!value)
                   ^
                    {
/datasets/git/object-name.c:308:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ARRAY_SIZE(hints); i++) {
        ^
/datasets/git/object-name.c:318:58: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int init_object_disambiguation(struct repository *r,
                                                         ^
/datasets/git/object-name.c:320:38: warning: parameter name 'ds' is too short, expected at least 3 characters [readability-identifier-length]
                                      struct disambiguate_state *ds)
                                                                 ^
/datasets/git/object-name.c:322:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/object-name.c:322:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object-name.c:324:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len < MINIMUM_ABBREV || len > the_hash_algo->hexsz)
                                                               ^
                                                                {
/datasets/git/object-name.c:327:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(ds, 0, sizeof(*ds));
        ^~~~~~
/datasets/git/object-name.c:327:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(ds, 0, sizeof(*ds));
        ^~~~~~
/datasets/git/object-name.c:329:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < len ;i++) {
        ^
/datasets/git/object-name.c:330:17: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                unsigned char c = name[i];
                              ^
/datasets/git/object-name.c:331:17: warning: variable 'val' is not initialized [cppcoreguidelines-init-variables]
                unsigned char val;
                              ^
                                  = 0
/datasets/git/object-name.c:332:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (c >= '0' && c <= '9')
                                         ^
                                          {
/datasets/git/object-name.c:334:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (c >= 'a' && c <= 'f')
                                              ^
                                               {
/datasets/git/object-name.c:335:20: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        val = c - 'a' + 10;
                                        ^
/datasets/git/object-name.c:337:20: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        val = c - 'A' + 10;
                                        ^
/datasets/git/object-name.c:340:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/object-name.c:342:20: warning: narrowing conversion from 'unsigned char' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                ds->hex_pfx[i] = c;
                                 ^
/datasets/git/object-name.c:343:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(i & 1))
                      ^
/datasets/git/object-name.c:343:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(i & 1))
                             ^
                              {
/datasets/git/object-name.c:344:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        val <<= 4;
                        ^       ~
/datasets/git/object-name.c:345:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ds->bin_pfx.hash[i >> 1] |= val;
                                 ^
/datasets/git/object-name.c:355:8: warning: accessing fields in struct 'ambiguous_output' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct ambiguous_output {
       ^
/datasets/git/object-name.c:355:8: note: use "__attribute__((aligned(64)))" to align struct 'ambiguous_output' to 64 bytes
/datasets/git/object-name.c:364:35: warning: variable name 'ds' is too short, expected at least 3 characters [readability-identifier-length]
        const struct disambiguate_state *ds = state->ds;
                                         ^
/datasets/git/object-name.c:366:17: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf *sb = &state->sb;
                       ^
/datasets/git/object-name.c:367:6: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        int type;
            ^
                 = 0
/datasets/git/object-name.c:368:14: warning: variable 'hash' is not initialized [cppcoreguidelines-init-variables]
        const char *hash;
                    ^
                         = NULL
/datasets/git/object-name.c:370:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ds->fn && !ds->fn(ds->repo, oid, ds->cb_data))
                                                          ^
                                                           {
/datasets/git/object-name.c:395:32: warning: variable name 'pp' is too short, expected at least 3 characters [readability-identifier-length]
                        struct pretty_print_context pp = {0};
                                                    ^
/datasets/git/object-name.c:476:54: warning: parameter 'r' is unused [misc-unused-parameters]
static int repo_collect_ambiguous(struct repository *r,
                                                     ^
/datasets/git/object-name.c:476:54: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object-name.c:483:39: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static int sort_ambiguous(const void *a, const void *b, void *ctx)
                                      ^
/datasets/git/object-name.c:483:42: warning: 2 adjacent parameters of 'sort_ambiguous' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int sort_ambiguous(const void *a, const void *b, void *ctx)
                                         ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/object-name.c:483:54: note: the first parameter in the range is 'b'
static int sort_ambiguous(const void *a, const void *b, void *ctx)
                                                     ^
/datasets/git/object-name.c:483:63: note: the last parameter in the range is 'ctx'
static int sort_ambiguous(const void *a, const void *b, void *ctx)
                                                              ^~~
/datasets/git/object-name.c:483:57: note: 'const void *' and 'void *' may be implicitly converted
static int sort_ambiguous(const void *a, const void *b, void *ctx)
                                                        ^
/datasets/git/object-name.c:483:54: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static int sort_ambiguous(const void *a, const void *b, void *ctx)
                                                     ^
/datasets/git/object-name.c:488:6: warning: variable 'a_type_sort' is not initialized [cppcoreguidelines-init-variables]
        int a_type_sort;
            ^
                        = 0
/datasets/git/object-name.c:489:6: warning: variable 'b_type_sort' is not initialized [cppcoreguidelines-init-variables]
        int b_type_sort;
            ^
                        = 0
/datasets/git/object-name.c:495:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (a_type == b_type)
                             ^
                              {
/datasets/git/object-name.c:512:57: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void sort_ambiguous_oid_array(struct repository *r, struct oid_array *a)
                                                        ^
/datasets/git/object-name.c:512:78: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static void sort_ambiguous_oid_array(struct repository *r, struct oid_array *a)
                                                                             ^
/datasets/git/object-name.c:514:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        QSORT_S(a->oid, a->nr, sort_ambiguous, r);
        ^
/datasets/git/./git-compat-util.h:1321:39: note: expanded from macro 'QSORT_S'
#define QSORT_S(base, n, compar, ctx) do {                      \
                                      ^
/datasets/git/object-name.c:517:61: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static enum get_oid_result get_short_oid(struct repository *r,
                                                            ^
/datasets/git/object-name.c:522:6: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int status;
            ^
                   = 0
/datasets/git/object-name.c:523:28: warning: variable name 'ds' is too short, expected at least 3 characters [readability-identifier-length]
        struct disambiguate_state ds;
                                  ^
/datasets/git/object-name.c:524:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int quietly = !!(flags & GET_OID_QUIETLY);
                         ^
/datasets/git/object-name.c:526:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (init_object_disambiguation(r, name, len, &ds) < 0)
                                                              ^
                                                               {
/datasets/git/object-name.c:529:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (HAS_MULTI_BITS(flags & GET_OID_DISAMBIGUATORS))
                           ^
/datasets/git/./git-compat-util.h:156:30: note: expanded from macro 'HAS_MULTI_BITS'
#define HAS_MULTI_BITS(i)  ((i) & ((i) - 1))  /* checks if an integer has more than 1 bit set */
                             ^
/datasets/git/object-name.c:529:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (HAS_MULTI_BITS(flags & GET_OID_DISAMBIGUATORS))
                                   ^
/datasets/git/./refs/../cache.h:1449:3: note: expanded from macro 'GET_OID_DISAMBIGUATORS'
        (GET_OID_COMMIT | GET_OID_COMMITTISH | \
         ^
/datasets/git/./refs/../cache.h:1438:35: note: expanded from macro 'GET_OID_COMMIT'
#define GET_OID_COMMIT            02
                                  ^
/datasets/git/./git-compat-util.h:156:30: note: expanded from macro 'HAS_MULTI_BITS'
#define HAS_MULTI_BITS(i)  ((i) & ((i) - 1))  /* checks if an integer has more than 1 bit set */
                             ^
/datasets/git/object-name.c:529:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (HAS_MULTI_BITS(flags & GET_OID_DISAMBIGUATORS))
                                                           ^
                                                            {
/datasets/git/object-name.c:532:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & GET_OID_COMMIT)
            ^
/datasets/git/object-name.c:532:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & GET_OID_COMMIT)
                                   ^
                                    {
/datasets/git/object-name.c:534:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        else if (flags & GET_OID_COMMITTISH)
                 ^
/datasets/git/object-name.c:534:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (flags & GET_OID_COMMITTISH)
                                            ^
                                             {
/datasets/git/object-name.c:536:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        else if (flags & GET_OID_TREE)
                 ^
/datasets/git/object-name.c:536:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (flags & GET_OID_TREE)
                                      ^
                                       {
/datasets/git/object-name.c:538:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        else if (flags & GET_OID_TREEISH)
                 ^
/datasets/git/object-name.c:538:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (flags & GET_OID_TREEISH)
                                         ^
                                          {
/datasets/git/object-name.c:540:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        else if (flags & GET_OID_BLOB)
                 ^
/datasets/git/object-name.c:540:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (flags & GET_OID_BLOB)
                                      ^
                                       {
/datasets/git/object-name.c:542:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/object-name.c:577:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ds.ambiguous)
                                  ^
                                   {
/datasets/git/object-name.c:583:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (oid_array_for_each(&collect, show_ambiguous_object, &out))
                                                                              ^
                                                                               {
/datasets/git/object-name.c:601:45: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int repo_for_each_abbrev(struct repository *r, const char *prefix,
                                            ^
/datasets/git/object-name.c:602:20: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
                         each_abbrev_fn fn, void *cb_data)
                                        ^
/datasets/git/object-name.c:605:28: warning: variable name 'ds' is too short, expected at least 3 characters [readability-identifier-length]
        struct disambiguate_state ds;
                                  ^
/datasets/git/object-name.c:606:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/object-name.c:608:44: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        if (init_object_disambiguation(r, prefix, strlen(prefix), &ds) < 0)
                                                  ^
/datasets/git/object-name.c:608:69: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (init_object_disambiguation(r, prefix, strlen(prefix), &ds) < 0)
                                                                           ^
                                                                            {
/datasets/git/object-name.c:629:11: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned r = 0;
                 ^
/datasets/git/object-name.c:630:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (val >>= 1)
        ^
/datasets/git/object-name.c:630:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        while (val >>= 1)
               ^       ~
/datasets/git/object-name.c:630:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (val >>= 1)
                         ^
                          {
/datasets/git/object-name.c:635:8: warning: accessing fields in struct 'min_abbrev_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct min_abbrev_data {
       ^
/datasets/git/object-name.c:635:8: note: use "__attribute__((aligned(32)))" to align struct 'min_abbrev_data' to 32 bytes
/datasets/git/object-name.c:648:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((pos & 1) == 0)
             ^     ~
/datasets/git/object-name.c:648:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((pos & 1) == 0)
                           ^
                            {
/datasets/git/object-name.c:649:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                return hex[oid->hash[pos >> 1] >> 4];
                           ^                      ~
/datasets/git/object-name.c:649:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                return hex[oid->hash[pos >> 1] >> 4];
                                     ^      ~
/datasets/git/object-name.c:650:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else
        ^~~~
                        return hex[oid->hash[pos >> 1] & 0xf]
/datasets/git/object-name.c:650:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/object-name.c:651:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                return hex[oid->hash[pos >> 1] & 0xf];
                           ^                     ~~~
/datasets/git/object-name.c:651:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                return hex[oid->hash[pos >> 1] & 0xf];
                                     ^      ~
/datasets/git/object-name.c:651:36: warning: 0xf is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                return hex[oid->hash[pos >> 1] & 0xf];
                                                 ^
/datasets/git/object-name.c:658:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned int i = mad->init_len;
                     ^
/datasets/git/object-name.c:659:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (mad->hex[i] && mad->hex[i] == get_hex_char_from_oid(oid, i))
        ^
/datasets/git/object-name.c:659:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'mad' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (mad->hex[i] && mad->hex[i] == get_hex_char_from_oid(oid, i))
               ^
/datasets/git/object-name.c:659:69: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (mad->hex[i] && mad->hex[i] == get_hex_char_from_oid(oid, i))
                                                                           ^
                                                                            {
/datasets/git/object-name.c:662:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (i < GIT_MAX_RAWSZ && i >= mad->cur_len)
                                                   ^
                                                    {
/datasets/git/object-name.c:668:54: warning: parameter 'r' is unused [misc-unused-parameters]
static int repo_extend_abbrev_len(struct repository *r,
                                                     ^
/datasets/git/object-name.c:668:54: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object-name.c:675:63: warning: parameter name 'm' is too short, expected at least 3 characters [readability-identifier-length]
static void find_abbrev_len_for_midx(struct multi_pack_index *m,
                                                              ^
/datasets/git/object-name.c:679:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        uint32_t num, first = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/object-name.c:679:11: warning: variable 'num' is not initialized [cppcoreguidelines-init-variables]
        uint32_t num, first = 0;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/object-name.c:681:26: warning: variable 'mad_oid' is not initialized [cppcoreguidelines-init-variables]
        const struct object_id *mad_oid;
                                ^
                                        = NULL
/datasets/git/object-name.c:683:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!m->num_objects)
                            ^
                             {
/datasets/git/object-name.c:698:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (nth_midxed_object_oid(&oid, m, first))
                                                          ^
                                                           {
/datasets/git/object-name.c:701:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (nth_midxed_object_oid(&oid, m, first + 1))
                                                              ^
                                                               {
/datasets/git/object-name.c:705:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (nth_midxed_object_oid(&oid, m, first - 1))
                                                              ^
                                                               {
/datasets/git/object-name.c:711:57: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static void find_abbrev_len_for_pack(struct packed_git *p,
                                                        ^
/datasets/git/object-name.c:715:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        uint32_t num, first = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/object-name.c:715:11: warning: variable 'num' is not initialized [cppcoreguidelines-init-variables]
        uint32_t num, first = 0;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/object-name.c:717:26: warning: variable 'mad_oid' is not initialized [cppcoreguidelines-init-variables]
        const struct object_id *mad_oid;
                                ^
                                        = NULL
/datasets/git/object-name.c:719:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (p->multi_pack_index)
                                ^
                                 {
/datasets/git/object-name.c:722:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (open_pack_index(p) || !p->num_objects)
                                                  ^
                                                   {
/datasets/git/object-name.c:737:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!nth_packed_object_id(&oid, p, first))
                                                          ^
                                                           {
/datasets/git/object-name.c:740:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!nth_packed_object_id(&oid, p, first + 1))
                                                              ^
                                                               {
/datasets/git/object-name.c:744:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!nth_packed_object_id(&oid, p, first - 1))
                                                              ^
                                                               {
/datasets/git/object-name.c:752:27: warning: variable 'm' is not initialized [cppcoreguidelines-init-variables]
        struct multi_pack_index *m;
                                 ^
                                   = NULL
/datasets/git/object-name.c:752:27: warning: variable name 'm' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object-name.c:753:21: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct packed_git *p;
                           ^
                             = NULL
/datasets/git/object-name.c:753:21: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object-name.c:755:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (m = get_multi_pack_index(mad->repo); m; m = m->next)
        ^
/datasets/git/object-name.c:755:44: warning: backward branch (for loop) is ID-dependent due to variable reference to 'm' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (m = get_multi_pack_index(mad->repo); m; m = m->next)
                                                  ^
/datasets/git/object-name.c:755:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (m = get_multi_pack_index(mad->repo); m; m = m->next)
                                                                 ^
                                                                  {
/datasets/git/object-name.c:757:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = get_packed_git(mad->repo); p; p = p->next)
        ^
/datasets/git/object-name.c:757:38: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = get_packed_git(mad->repo); p; p = p->next)
                                            ^
/datasets/git/object-name.c:757:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (p = get_packed_git(mad->repo); p; p = p->next)
                                                           ^
                                                            {
/datasets/git/object-name.c:761:50: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int repo_find_unique_abbrev_r(struct repository *r, char *hex,
                                                 ^
/datasets/git/object-name.c:764:28: warning: variable name 'ds' is too short, expected at least 3 characters [readability-identifier-length]
        struct disambiguate_state ds;
                                  ^
/datasets/git/object-name.c:776:9: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                len = msb(count) + 1;
                      ^
/datasets/git/object-name.c:787:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (len < FALLBACK_DEFAULT_ABBREV)
                                                  ^
                                                   {
/datasets/git/object-name.c:792:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len == hexsz || !len)
                                 ^
                                  {
/datasets/git/object-name.c:793:10: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                return hexsz;
                       ^
/datasets/git/object-name.c:803:41: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        if (init_object_disambiguation(r, hex, mad.cur_len, &ds) < 0)
                                               ^
/datasets/git/object-name.c:803:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (init_object_disambiguation(r, hex, mad.cur_len, &ds) < 0)
                                                                     ^
                                                                      {
/datasets/git/object-name.c:814:9: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return mad.cur_len;
               ^
/datasets/git/object-name.c:817:56: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
const char *repo_find_unique_abbrev(struct repository *r,
                                                       ^
/datasets/git/object-name.c:824:10: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        bufno = (bufno + 1) % ARRAY_SIZE(hexbuffer);
                ^
/datasets/git/object-name.c:832:6: warning: variable 'cnt' is not initialized [cppcoreguidelines-init-variables]
        int cnt;
            ^
                = 0
/datasets/git/object-name.c:834:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cnt = 0; cnt < len; cnt++) {
        ^
/datasets/git/object-name.c:839:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (slash)
                                  ^
                                   {
/datasets/git/object-name.c:855:31: warning: parameter name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
                          const char **suffix, int nr)
                                                   ^
/datasets/git/object-name.c:857:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/object-name.c:857:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object-name.c:859:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr; i++) {
        ^
/datasets/git/object-name.c:860:20: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int suffix_len = strlen(suffix[i]);
                                 ^
/datasets/git/object-name.c:862:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    && !strncasecmp(string, suffix[i], suffix_len))
                                                                   ^
                                                                    {
/datasets/git/object-name.c:880:57: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static enum get_oid_result get_oid_1(struct repository *r, const char *name, int len, struct object_id *oid, unsigned lookup_flags);
                                                        ^
/datasets/git/object-name.c:881:60: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int interpret_nth_prior_checkout(struct repository *r, const char *name, int namelen, struct strbuf *buf);
                                                           ^
/datasets/git/object-name.c:883:12: warning: function 'get_oid_basic' has cognitive complexity of 88 (threshold 25) [readability-function-cognitive-complexity]
static int get_oid_basic(struct repository *r, const char *str, int len,
           ^
/datasets/git/object-name.c:902:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (len == r->hash_algo->hexsz && !get_oid_hex(str, oid)) {
        ^
/datasets/git/object-name.c:902:33: note: +1
        if (len == r->hash_algo->hexsz && !get_oid_hex(str, oid)) {
                                       ^
/datasets/git/object-name.c:903:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (warn_ambiguous_refs && warn_on_object_refname_ambiguity) {
                ^
/datasets/git/object-name.c:903:27: note: +1
                if (warn_ambiguous_refs && warn_on_object_refname_ambiguity) {
                                        ^
/datasets/git/object-name.c:905:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (refs_found > 0) {
                        ^
/datasets/git/object-name.c:907:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (advice_enabled(ADVICE_OBJECT_NAME_WARNING))
                                ^
/datasets/git/object-name.c:917:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (len && str[len-1] == '}') {
        ^
/datasets/git/object-name.c:917:10: note: +1
        if (len && str[len-1] == '}') {
                ^
/datasets/git/object-name.c:918:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (at = len-4; at >= 0; at--) {
                ^
/datasets/git/object-name.c:919:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (str[at] == '@' && str[at+1] == '{') {
                        ^
/datasets/git/object-name.c:919:23: note: +1
                        if (str[at] == '@' && str[at+1] == '{') {
                                           ^
/datasets/git/object-name.c:920:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (str[at+2] == '-') {
                                ^
/datasets/git/object-name.c:921:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (at != 0)
                                        ^
/datasets/git/object-name.c:927:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!upstream_mark(str + at, len - at) &&
                                ^
/datasets/git/object-name.c:927:44: note: +1
                                if (!upstream_mark(str + at, len - at) &&
                                                                       ^
/datasets/git/object-name.c:938:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (len && ambiguous_path(str, len))
        ^
/datasets/git/object-name.c:938:10: note: +1
        if (len && ambiguous_path(str, len))
                ^
/datasets/git/object-name.c:941:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (nth_prior) {
        ^
/datasets/git/object-name.c:945:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (interpret_nth_prior_checkout(r, str, len, &buf) > 0) {
                ^
/datasets/git/object-name.c:946:47: note: +1
                        detached = (buf.len == r->hash_algo->hexsz && !get_oid_hex(buf.buf, oid));
                                                                   ^
/datasets/git/object-name.c:948:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (detached)
                        ^
/datasets/git/object-name.c:953:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!len && reflog_len)
        ^
/datasets/git/object-name.c:953:11: note: +1
        if (!len && reflog_len)
                 ^
/datasets/git/object-name.c:956:7: note: +1, nesting level increased to 1
        else if (reflog_len)
             ^
/datasets/git/object-name.c:958:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/object-name.c:961:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!refs_found)
        ^
/datasets/git/object-name.c:964:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (warn_ambiguous_refs && !(flags & GET_OID_QUIETLY) &&
        ^
/datasets/git/object-name.c:964:56: note: +1
        if (warn_ambiguous_refs && !(flags & GET_OID_QUIETLY) &&
                                                              ^
/datasets/git/object-name.c:965:22: note: +1
            (refs_found > 1 ||
                            ^
/datasets/git/object-name.c:969:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (reflog_len) {
        ^
/datasets/git/object-name.c:976:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = nth = 0; 0 <= nth && i < reflog_len; i++) {
                ^
/datasets/git/object-name.c:976:30: note: +1
                for (i = nth = 0; 0 <= nth && i < reflog_len; i++) {
                                           ^
/datasets/git/object-name.c:978:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if ('0' <= ch && ch <= '9')
                        ^
/datasets/git/object-name.c:978:18: note: +1
                        if ('0' <= ch && ch <= '9')
                                      ^
/datasets/git/object-name.c:980:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/object-name.c:983:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (100000000 <= nth) {
                ^
/datasets/git/object-name.c:986:10: note: +1, nesting level increased to 2
                } else if (0 <= nth)
                       ^
/datasets/git/object-name.c:988:3: note: +1, nesting level increased to 2
                else {
                ^
/datasets/git/object-name.c:993:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (errors) {
                        ^
/datasets/git/object-name.c:998:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (read_ref_at(get_main_ref_store(r),
                ^
/datasets/git/object-name.c:1001:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!len) {
                        ^
/datasets/git/object-name.c:1002:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!skip_prefix(real_ref, "refs/heads/", &str))
                                ^
/datasets/git/object-name.c:1006:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (at_time) {
                        ^
/datasets/git/object-name.c:1007:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!(flags & GET_OID_QUIETLY)) {
                                ^
/datasets/git/object-name.c:1012:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/object-name.c:1013:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (flags & GET_OID_QUIETLY) {
                                ^
/datasets/git/object-name.c:883:45: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int get_oid_basic(struct repository *r, const char *str, int len,
                                            ^
/datasets/git/object-name.c:900:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int at, reflog_len, nth_prior = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/object-name.c:900:6: warning: variable 'at' is not initialized [cppcoreguidelines-init-variables]
        int at, reflog_len, nth_prior = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/object-name.c:900:6: warning: variable name 'at' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object-name.c:900:10: warning: variable 'reflog_len' is not initialized [cppcoreguidelines-init-variables]
        int at, reflog_len, nth_prior = 0;
                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/object-name.c:907:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (advice_enabled(ADVICE_OBJECT_NAME_WARNING))
                                                                               ^
                                                                                {
/datasets/git/object-name.c:908:6: warning: the value returned by this function should be used [cert-err33-c]
                                        fprintf(stderr, "%s\n", _(object_name_msg));
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/object-name.c:908:6: note: cast the expression to void to silence this warning
/datasets/git/object-name.c:900:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int at, reflog_len, nth_prior = 0;
        ^
/datasets/git/object-name.c:918:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (at = len-4; at >= 0; at--) {
                ^
/datasets/git/object-name.c:918:20: warning: backward branch (for loop) is ID-dependent due to variable reference to 'at' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (at = len-4; at >= 0; at--) {
                                 ^
/datasets/git/object-name.c:921:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        if (at != 0)
                                                    ^
                                                     {
/datasets/git/object-name.c:938:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len && ambiguous_path(str, len))
                                            ^
                                             {
/datasets/git/object-name.c:943:7: warning: variable 'detached' is not initialized [cppcoreguidelines-init-variables]
                int detached;
                    ^
                             = 0
/datasets/git/object-name.c:948:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (detached)
                                     ^
                                      {
/datasets/git/object-name.c:953:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!len && reflog_len)
                               ^
                                {
/datasets/git/object-name.c:956:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (reflog_len)
                            ^
                             {
/datasets/git/object-name.c:958:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/object-name.c:961:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!refs_found)
                        ^
                         {
/datasets/git/object-name.c:964:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (warn_ambiguous_refs && !(flags & GET_OID_QUIETLY) &&
                                     ^
/datasets/git/object-name.c:966:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
             !get_short_oid(r, str, len, &tmp_oid, GET_OID_QUIETLY)))
                                                                     ^
                                                                      {
/datasets/git/object-name.c:970:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int nth, i;
                ^~~~~~~~~~~
/datasets/git/object-name.c:970:7: warning: variable 'nth' is not initialized [cppcoreguidelines-init-variables]
                int nth, i;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/object-name.c:970:12: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int nth, i;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/object-name.c:970:12: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object-name.c:971:15: warning: variable 'at_time' is not initialized [cppcoreguidelines-init-variables]
                timestamp_t at_time;
                            ^
                                    = 0
/datasets/git/object-name.c:972:15: warning: variable 'co_time' is not initialized [cppcoreguidelines-init-variables]
                timestamp_t co_time;
                            ^
                                    = 0
/datasets/git/object-name.c:973:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int co_tz, co_cnt;
                ^~~~~~~~~~~~~~~~~~
/datasets/git/object-name.c:970:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                int nth, i;
                ^
/datasets/git/object-name.c:973:7: warning: variable 'co_tz' is not initialized [cppcoreguidelines-init-variables]
                int co_tz, co_cnt;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/object-name.c:973:14: warning: variable 'co_cnt' is not initialized [cppcoreguidelines-init-variables]
                int co_tz, co_cnt;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/object-name.c:976:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = nth = 0; 0 <= nth && i < reflog_len; i++) {
                ^
/datasets/git/object-name.c:976:21: warning: backward branch (for loop) is ID-dependent due to variable reference to 'nth' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = nth = 0; 0 <= nth && i < reflog_len; i++) {
                                  ^
/datasets/git/object-name.c:977:9: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
                        char ch = str[at+2+i];
                             ^
/datasets/git/object-name.c:978:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if ('0' <= ch && ch <= '9')
                                                   ^
                                                    {
/datasets/git/object-name.c:979:17: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                nth = nth * 10 + ch - '0';
                                            ^
/datasets/git/object-name.c:980:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/object-name.c:983:7: warning: 100000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (100000000 <= nth) {
                    ^
/datasets/git/object-name.c:986:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else if (0 <= nth)
                                    ^
                                     {
/datasets/git/object-name.c:1002:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!skip_prefix(real_ref, "refs/heads/", &str))
                                                                                ^
                                                                                 {
/datasets/git/object-name.c:1004:11: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                len = strlen(str);
                                      ^
/datasets/git/object-name.c:1007:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (!(flags & GET_OID_QUIETLY)) {
                                      ^
/datasets/git/object-name.c:1013:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (flags & GET_OID_QUIETLY) {
                                    ^
/datasets/git/object-name.c:1014:6: warning: function is not thread safe [concurrency-mt-unsafe]
                                        exit(128);
                                        ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/object-name.c:1026:28: warning: function 'get_parent' is within a recursive call chain [misc-no-recursion]
static enum get_oid_result get_parent(struct repository *r,
                           ^
/datasets/git/object-name.c:1227:28: note: example recursive call chain, starting from function 'get_oid_1'
static enum get_oid_result get_oid_1(struct repository *r,
                           ^
/datasets/git/object-name.c:1266:11: note: Frame #1: function 'get_oid_1' calls function 'get_parent' here:
                        return get_parent(r, name, len1, oid, num);
                               ^
/datasets/git/object-name.c:1031:28: note: Frame #2: function 'get_parent' calls function 'get_oid_1' here:
        enum get_oid_result ret = get_oid_1(r, name, len, &oid,
                                  ^
/datasets/git/object-name.c:1031:28: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/object-name.c:1026:58: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static enum get_oid_result get_parent(struct repository *r,
                                                         ^
/datasets/git/object-name.c:1033:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/object-name.c:1034:22: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *p;
                            ^
                              = NULL
/datasets/git/object-name.c:1034:22: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object-name.c:1036:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/object-name.c:1039:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_commit(commit))
                                 ^
                                  {
/datasets/git/object-name.c:1046:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (p) {
        ^
/datasets/git/object-name.c:1046:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (p) {
               ^
/datasets/git/object-name.c:1056:28: warning: function 'get_nth_ancestor' is within a recursive call chain [misc-no-recursion]
static enum get_oid_result get_nth_ancestor(struct repository *r,
                           ^
/datasets/git/object-name.c:1056:64: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static enum get_oid_result get_nth_ancestor(struct repository *r,
                                                               ^
/datasets/git/object-name.c:1062:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/object-name.c:1063:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/object-name.c:1066:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/object-name.c:1069:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!commit)
                    ^
                     {
/datasets/git/object-name.c:1072:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (generation--) {
        ^
/datasets/git/object-name.c:1073:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (parse_commit(commit) || !commit->parents)
                                                             ^
                                                              {
/datasets/git/object-name.c:1081:53: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
struct object *repo_peel_to_type(struct repository *r, const char *name, int namelen,
                                                    ^
/datasets/git/object-name.c:1082:21: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                                 struct object *o, enum object_type expected_type)
                                                ^
/datasets/git/object-name.c:1084:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (name && !namelen)
                             ^
                              {
/datasets/git/object-name.c:1085:13: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                namelen = strlen(name);
                          ^
/datasets/git/object-name.c:1086:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/object-name.c:1087:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!o || (!o->parsed && !parse_object(r, &o->oid)))
                                                                    ^
                                                                     {
/datasets/git/object-name.c:1089:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (expected_type == OBJ_ANY || o->type == expected_type)
                                                                         ^
                                                                          {
/datasets/git/object-name.c:1091:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (o->type == OBJ_TAG)
                                       ^
                                        {
/datasets/git/object-name.c:1093:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (o->type == OBJ_COMMIT)
                                               ^
                                                {
/datasets/git/object-name.c:1096:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (name)
                                 ^
                                  {
/datasets/git/object-name.c:1106:12: warning: function 'peel_onion' is within a recursive call chain [misc-no-recursion]
static int peel_onion(struct repository *r, const char *name, int len,
           ^
/datasets/git/object-name.c:1106:12: warning: function 'peel_onion' has cognitive complexity of 28 (threshold 25) [readability-function-cognitive-complexity]
/datasets/git/object-name.c:1122:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (len < 4 || name[len-1] != '}')
        ^
/datasets/git/object-name.c:1122:14: note: +1
        if (len < 4 || name[len-1] != '}')
                    ^
/datasets/git/object-name.c:1125:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (sp = name + len - 1; name <= sp; sp--) {
        ^
/datasets/git/object-name.c:1127:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ch == '{' && name < sp && sp[-1] == '^')
                ^
/datasets/git/object-name.c:1127:30: note: +1
                if (ch == '{' && name < sp && sp[-1] == '^')
                                           ^
/datasets/git/object-name.c:1130:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (sp <= name)
        ^
/datasets/git/object-name.c:1134:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (starts_with(sp, "commit}"))
        ^
/datasets/git/object-name.c:1136:7: note: +1, nesting level increased to 1
        else if (starts_with(sp, "tag}"))
             ^
/datasets/git/object-name.c:1138:7: note: +1, nesting level increased to 1
        else if (starts_with(sp, "tree}"))
             ^
/datasets/git/object-name.c:1140:7: note: +1, nesting level increased to 1
        else if (starts_with(sp, "blob}"))
             ^
/datasets/git/object-name.c:1142:7: note: +1, nesting level increased to 1
        else if (starts_with(sp, "object}"))
             ^
/datasets/git/object-name.c:1144:7: note: +1, nesting level increased to 1
        else if (sp[0] == '}')
             ^
/datasets/git/object-name.c:1146:7: note: +1, nesting level increased to 1
        else if (sp[0] == '/')
             ^
/datasets/git/object-name.c:1148:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/object-name.c:1152:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (expected_type == OBJ_COMMIT)
        ^
/datasets/git/object-name.c:1154:7: note: +1, nesting level increased to 1
        else if (expected_type == OBJ_TREE)
             ^
/datasets/git/object-name.c:1157:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (get_oid_1(r, name, sp - name - 2, &outer, lookup_flags))
        ^
/datasets/git/object-name.c:1161:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!o)
        ^
/datasets/git/object-name.c:1163:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!expected_type) {
        ^
/datasets/git/object-name.c:1165:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!o || (!o->parsed && !parse_object(r, &o->oid)))
                ^
/datasets/git/object-name.c:1165:10: note: +1
                if (!o || (!o->parsed && !parse_object(r, &o->oid)))
                       ^
/datasets/git/object-name.c:1165:25: note: +1
                if (!o || (!o->parsed && !parse_object(r, &o->oid)))
                                      ^
/datasets/git/object-name.c:1177:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!o)
        ^
/datasets/git/object-name.c:1181:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (sp[0] == '/') {
        ^
/datasets/git/object-name.c:1191:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (sp[1] == '}')
                ^
/datasets/git/object-name.c:1106:42: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int peel_onion(struct repository *r, const char *name, int len,
                                         ^
/datasets/git/object-name.c:1110:14: warning: variable 'sp' is not initialized [cppcoreguidelines-init-variables]
        const char *sp;
                    ^
                       = NULL
/datasets/git/object-name.c:1110:14: warning: variable name 'sp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object-name.c:1112:17: warning: variable 'o' is not initialized [cppcoreguidelines-init-variables]
        struct object *o;
                       ^
                         = NULL
/datasets/git/object-name.c:1112:17: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object-name.c:1122:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len < 4 || name[len-1] != '}')
                                          ^
                                           {
/datasets/git/object-name.c:1125:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (sp = name + len - 1; name <= sp; sp--) {
        ^
/datasets/git/object-name.c:1125:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'sp' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (sp = name + len - 1; name <= sp; sp--) {
                                  ^
/datasets/git/object-name.c:1126:7: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
                int ch = *sp;
                    ^
/datasets/git/object-name.c:1126:12: warning: 'signed char' to 'int' conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse,cert-str34-c]
                int ch = *sp;
                         ^
/datasets/git/object-name.c:1127:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ch == '{' && name < sp && sp[-1] == '^')
                                                            ^
                                                             {
/datasets/git/object-name.c:1130:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (sp <= name)
                       ^
                        {
/datasets/git/object-name.c:1134:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (starts_with(sp, "commit}"))
                                       ^
                                        {
/datasets/git/object-name.c:1135:3: warning: repeated branch in conditional chain [bugprone-branch-clone]
                expected_type = OBJ_COMMIT;
                ^
/datasets/git/object-name.c:1135:29: note: end of the original
                expected_type = OBJ_COMMIT;
                                          ^
/datasets/git/object-name.c:1147:3: note: clone 1 starts here
                expected_type = OBJ_COMMIT;
                ^
/datasets/git/object-name.c:1136:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (starts_with(sp, "tag}"))
                                         ^
                                          {
/datasets/git/object-name.c:1138:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (starts_with(sp, "tree}"))
                                          ^
                                           {
/datasets/git/object-name.c:1140:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (starts_with(sp, "blob}"))
                                          ^
                                           {
/datasets/git/object-name.c:1142:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (starts_with(sp, "object}"))
                                            ^
                                             {
/datasets/git/object-name.c:1144:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (sp[0] == '}')
                              ^
                               {
/datasets/git/object-name.c:1146:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (sp[0] == '/')
                              ^
                               {
/datasets/git/object-name.c:1148:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/object-name.c:1151:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        lookup_flags &= ~GET_OID_DISAMBIGUATORS;
        ^               ~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/object-name.c:1151:18: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
        lookup_flags &= ~GET_OID_DISAMBIGUATORS;
                        ^
/datasets/git/object-name.c:1151:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        lookup_flags &= ~GET_OID_DISAMBIGUATORS;
                         ^
/datasets/git/./refs/../cache.h:1449:3: note: expanded from macro 'GET_OID_DISAMBIGUATORS'
        (GET_OID_COMMIT | GET_OID_COMMITTISH | \
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./refs/../cache.h:1438:35: note: expanded from macro 'GET_OID_COMMIT'
#define GET_OID_COMMIT            02
                                  ^
/datasets/git/object-name.c:1152:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (expected_type == OBJ_COMMIT)
                                        ^
                                         {
/datasets/git/object-name.c:1153:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                lookup_flags |= GET_OID_COMMITTISH;
                ^
/datasets/git/object-name.c:1154:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (expected_type == OBJ_TREE)
                                           ^
                                            {
/datasets/git/object-name.c:1155:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                lookup_flags |= GET_OID_TREEISH;
                ^
/datasets/git/object-name.c:1157:25: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        if (get_oid_1(r, name, sp - name - 2, &outer, lookup_flags))
                               ^
/datasets/git/object-name.c:1157:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid_1(r, name, sp - name - 2, &outer, lookup_flags))
                                                                    ^
                                                                     {
/datasets/git/object-name.c:1161:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!o)
               ^
                {
/datasets/git/object-name.c:1164:29: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                o = deref_tag(r, o, name, sp - name - 2);
                                          ^
/datasets/git/object-name.c:1165:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!o || (!o->parsed && !parse_object(r, &o->oid)))
                                                                    ^
                                                                     {
/datasets/git/object-name.c:1177:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!o)
               ^
                {
/datasets/git/object-name.c:1183:9: warning: variable 'prefix' is not initialized [cppcoreguidelines-init-variables]
                char *prefix;
                      ^
                             = NULL
/datasets/git/object-name.c:1184:7: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
                int ret;
                    ^
                        = 0
/datasets/git/object-name.c:1191:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (sp[1] == '}')
                                 ^
                                  {
/datasets/git/object-name.c:1203:49: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int get_describe_name(struct repository *r,
                                                ^
/datasets/git/object-name.c:1207:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        const char *cp;
        ^
/datasets/git/object-name.c:1207:14: warning: variable 'cp' is not initialized [cppcoreguidelines-init-variables]
        const char *cp;
                    ^
                       = NULL
/datasets/git/object-name.c:1207:14: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object-name.c:1208:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned flags = GET_OID_QUIETLY | GET_OID_COMMIT;
                         ^
/datasets/git/./refs/../cache.h:1437:35: note: expanded from macro 'GET_OID_QUIETLY'
#define GET_OID_QUIETLY           01
                                  ^~
/datasets/git/object-name.c:1210:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cp = name + len - 1; name + 2 <= cp; cp--) {
        ^
/datasets/git/object-name.c:1210:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cp' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (cp = name + len - 1; name + 2 <= cp; cp--) {
                                  ^
/datasets/git/object-name.c:1211:8: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
                char ch = *cp;
                     ^
/datasets/git/object-name.c:1218:12: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                len -= cp - name;
                                       ^
/datasets/git/object-name.c:1227:28: warning: function 'get_oid_1' is within a recursive call chain [misc-no-recursion]
static enum get_oid_result get_oid_1(struct repository *r,
                           ^
/datasets/git/object-name.c:1227:28: warning: function 'get_oid_1' has cognitive complexity of 26 (threshold 25) [readability-function-cognitive-complexity]
/datasets/git/object-name.c:1239:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (cp = name + len - 1; name <= cp; cp--) {
        ^
/datasets/git/object-name.c:1241:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ('0' <= ch && ch <= '9')
                ^
/datasets/git/object-name.c:1241:17: note: +1
                if ('0' <= ch && ch <= '9')
                              ^
/datasets/git/object-name.c:1243:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ch == '~' || ch == '^')
                ^
/datasets/git/object-name.c:1243:17: note: +1
                if (ch == '~' || ch == '^')
                              ^
/datasets/git/object-name.c:1248:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (has_suffix) {
        ^
/datasets/git/object-name.c:1252:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (cp < name + len) {
                ^
/datasets/git/object-name.c:1254:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (unsigned_mult_overflows(num, 10))
                        ^
/datasets/git/object-name.c:1254:8: note: +1
                        if (unsigned_mult_overflows(num, 10))
                            ^
/datasets/git/./git-compat-util.h:139:10: note: expanded from macro 'unsigned_mult_overflows'
    ((a) && (b) > maximum_unsigned_value_of_type(a) / (a))
         ^
/datasets/git/object-name.c:1257:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (unsigned_add_overflows(num, digit))
                        ^
/datasets/git/object-name.c:1261:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!num && len1 == len - 1)
                ^
/datasets/git/object-name.c:1261:12: note: +1
                if (!num && len1 == len - 1)
                         ^
/datasets/git/object-name.c:1263:8: note: +1, nesting level increased to 2
                else if (num > INT_MAX)
                     ^
/datasets/git/object-name.c:1265:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (has_suffix == '^')
                ^
/datasets/git/object-name.c:1272:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!ret)
        ^
/datasets/git/object-name.c:1276:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!ret)
        ^
/datasets/git/object-name.c:1281:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!ret)
        ^
/datasets/git/object-name.c:1227:57: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static enum get_oid_result get_oid_1(struct repository *r,
                                                        ^
/datasets/git/object-name.c:1232:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int ret, has_suffix;
        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/object-name.c:1233:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        const char *cp;
        ^
/datasets/git/object-name.c:1232:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret, has_suffix;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/object-name.c:1232:11: warning: variable 'has_suffix' is not initialized [cppcoreguidelines-init-variables]
        int ret, has_suffix;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/object-name.c:1233:14: warning: variable 'cp' is not initialized [cppcoreguidelines-init-variables]
        const char *cp;
                    ^
                       = NULL
/datasets/git/object-name.c:1233:14: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object-name.c:1239:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cp = name + len - 1; name <= cp; cp--) {
        ^
/datasets/git/object-name.c:1239:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cp' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (cp = name + len - 1; name <= cp; cp--) {
                                  ^
/datasets/git/object-name.c:1240:7: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
                int ch = *cp;
                    ^
/datasets/git/object-name.c:1240:12: warning: 'signed char' to 'int' conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse,cert-str34-c]
                int ch = *cp;
                         ^
/datasets/git/object-name.c:1241:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ('0' <= ch && ch <= '9')
                                           ^
                                            {
/datasets/git/object-name.c:1243:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ch == '~' || ch == '^')
                                           ^
                                            {
/datasets/git/object-name.c:1250:14: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int len1 = cp - name;
                           ^
/datasets/git/object-name.c:1252:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (cp < name + len) {
                ^
/datasets/git/object-name.c:1252:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'cp' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (cp < name + len) {
                       ^
/datasets/git/object-name.c:1254:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (unsigned_mult_overflows(num, 10))
                                                             ^
                                                              {
/datasets/git/object-name.c:1256:11: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        num *= 10;
                               ^
/datasets/git/object-name.c:1257:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (unsigned_add_overflows(num, digit))
                                                               ^
                                                                {
/datasets/git/object-name.c:1261:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!num && len1 == len - 1)
                                            ^
                                             {
/datasets/git/object-name.c:1263:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (num > INT_MAX)
                                       ^
                                        {
/datasets/git/object-name.c:1265:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (has_suffix == '^')
                                      ^
                                       {
/datasets/git/object-name.c:1266:42: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        return get_parent(r, name, len1, oid, num);
                                                              ^
/datasets/git/object-name.c:1268:47: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                return get_nth_ancestor(r, name, len1, oid, num);
                                                            ^
/datasets/git/object-name.c:1272:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ret)
                 ^
                  {
/datasets/git/object-name.c:1276:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ret)
                 ^
                  {
/datasets/git/object-name.c:1281:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ret)
                 ^
                  {
/datasets/git/object-name.c:1301:1: warning: replace macro with enum [modernize-macro-to-enum]
#define ONELINE_SEEN (1u<<20)
^~~~~~~~
                     =
/datasets/git/object-name.c:1301:9: warning: macro 'ONELINE_SEEN' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define ONELINE_SEEN (1u<<20)
        ^
/datasets/git/object-name.c:1303:8: warning: accessing fields in struct 'handle_one_ref_cb' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct handle_one_ref_cb {
       ^
/datasets/git/object-name.c:1303:8: note: use "__attribute__((aligned(16)))" to align struct 'handle_one_ref_cb' to 16 bytes
/datasets/git/object-name.c:1312:28: warning: variable name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
        struct handle_one_ref_cb *cb = cb_data;
                                  ^
/datasets/git/object-name.c:1315:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!object)
                    ^
                     {
/datasets/git/object-name.c:1319:8: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                   strlen(path));
                                   ^
/datasets/git/object-name.c:1320:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!object)
                            ^
                             {
/datasets/git/object-name.c:1323:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (object->type != OBJ_COMMIT)
                                       ^
                                        {
/datasets/git/object-name.c:1329:47: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int get_oid_oneline(struct repository *r,
                                              ^
/datasets/git/object-name.c:1333:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit_list *backup = NULL, *l;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/object-name.c:1333:38: warning: variable 'l' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *backup = NULL, *l;
                                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/object-name.c:1333:38: warning: variable name 'l' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object-name.c:1349:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (regcomp(&regex, prefix, REG_EXTENDED))
                                                  ^
                                                   {
/datasets/git/object-name.c:1352:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (l = list; l; l = l->next) {
        ^
/datasets/git/object-name.c:1352:17: warning: backward branch (for loop) is ID-dependent due to variable reference to 'l' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (l = list; l; l = l->next) {
                       ^
/datasets/git/object-name.c:1353:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                l->item->object.flags |= ONELINE_SEEN;
                                         ^
/datasets/git/object-name.c:1301:23: note: expanded from macro 'ONELINE_SEEN'
#define ONELINE_SEEN (1u<<20)
                      ^   ~~
/datasets/git/object-name.c:1356:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (list) {
        ^
/datasets/git/object-name.c:1357:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                const char *p, *buf;
                ^~~~~~~~~~~~~~~~~~~~
/datasets/git/object-name.c:1357:15: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                const char *p, *buf;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/object-name.c:1357:15: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object-name.c:1357:19: warning: variable 'buf' is not initialized [cppcoreguidelines-init-variables]
                const char *p, *buf;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/object-name.c:1358:18: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
                struct commit *commit;
                               ^
                                      = NULL
/datasets/git/object-name.c:1359:7: warning: variable 'matches' is not initialized [cppcoreguidelines-init-variables]
                int matches;
                    ^
                            = 0
/datasets/git/object-name.c:1361:42: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                commit = pop_most_recent_commit(&list, ONELINE_SEEN);
                                                       ^
/datasets/git/object-name.c:1301:23: note: expanded from macro 'ONELINE_SEEN'
#define ONELINE_SEEN (1u<<20)
                      ^   ~~
/datasets/git/object-name.c:1362:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!parse_object(r, &commit->object.oid))
                                                          ^
                                                           {
/datasets/git/object-name.c:1366:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                matches = negative ^ (p && !regexec(&regex, p + 2, 0, NULL, 0));
                          ^~~~~~~~
/datasets/git/object-name.c:1377:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (l = backup; l; l = l->next)
        ^
/datasets/git/object-name.c:1377:19: warning: backward branch (for loop) is ID-dependent due to variable reference to 'l' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (l = backup; l; l = l->next)
                         ^
/datasets/git/object-name.c:1377:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (l = backup; l; l = l->next)
                                        ^
                                         {
/datasets/git/object-name.c:1378:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                clear_commit_marks(l->item, ONELINE_SEEN);
                                            ^
/datasets/git/object-name.c:1301:23: note: expanded from macro 'ONELINE_SEEN'
#define ONELINE_SEEN (1u<<20)
                      ^   ~~
/datasets/git/object-name.c:1383:8: warning: accessing fields in struct 'grab_nth_branch_switch_cbdata' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct grab_nth_branch_switch_cbdata {
       ^
/datasets/git/object-name.c:1383:8: note: use "__attribute__((aligned(16)))" to align struct 'grab_nth_branch_switch_cbdata' to 16 bytes
/datasets/git/object-name.c:1391:7: warning: 2 adjacent parameters of 'grab_nth_branch_switch' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                  timestamp_t timestamp UNUSED,
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/object-name.c:1391:19: note: the first parameter in the range is 'timestamp'
                                  timestamp_t timestamp UNUSED,
                                              ^~~~~~~~~
/datasets/git/object-name.c:1392:11: note: the last parameter in the range is 'tz'
                                  int tz UNUSED,
                                      ^~
/datasets/git/object-name.c:1391:7: note: 
                                  timestamp_t timestamp UNUSED,
                                  ^
/datasets/git/object-name.c:1392:7: note: 'timestamp_t' and 'int' may be implicitly converted: 'timestamp_t' (as 'unsigned long') -> 'int', 'int' -> 'timestamp_t' (as 'unsigned long')
                                  int tz UNUSED,
                                  ^
/datasets/git/object-name.c:1392:11: warning: parameter name 'tz' is too short, expected at least 3 characters [readability-identifier-length]
                                  int tz UNUSED,
                                      ^
/datasets/git/object-name.c:1395:40: warning: variable name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
        struct grab_nth_branch_switch_cbdata *cb = cb_data;
                                              ^
/datasets/git/object-name.c:1396:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *match = NULL, *target = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/object-name.c:1397:9: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        size_t len;
               ^
                   = 0
/datasets/git/object-name.c:1399:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (skip_prefix(message, "checkout: moving from ", &match))
                                                                   ^
                                                                    {
/datasets/git/object-name.c:1402:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!match || !target)
                              ^
                               {
/datasets/git/object-name.c:1417:60: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int interpret_nth_prior_checkout(struct repository *r,
                                                           ^
/datasets/git/object-name.c:1421:7: warning: variable 'nth' is not initialized [cppcoreguidelines-init-variables]
        long nth;
             ^
                 = 0
/datasets/git/object-name.c:1422:6: warning: variable 'retval' is not initialized [cppcoreguidelines-init-variables]
        int retval;
            ^
                   = 0
/datasets/git/object-name.c:1423:39: warning: variable name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
        struct grab_nth_branch_switch_cbdata cb;
                                             ^
/datasets/git/object-name.c:1424:14: warning: variable 'brace' is not initialized [cppcoreguidelines-init-variables]
        const char *brace;
                    ^
                          = NULL
/datasets/git/object-name.c:1425:8: warning: variable 'num_end' is not initialized [cppcoreguidelines-init-variables]
        char *num_end;
              ^
                      = NULL
/datasets/git/object-name.c:1427:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (namelen < 4)
                        ^
                         {
/datasets/git/object-name.c:1429:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (name[0] != '@' || name[1] != '{' || name[2] != '-')
                                                               ^
                                                                {
/datasets/git/object-name.c:1432:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!brace)
                   ^
                    {
/datasets/git/object-name.c:1434:35: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        nth = strtol(name + 3, &num_end, 10);
                                         ^
/datasets/git/object-name.c:1435:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (num_end != brace)
                             ^
                              {
/datasets/git/object-name.c:1437:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (nth <= 0)
                     ^
                      {
/datasets/git/object-name.c:1439:17: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        cb.remaining = nth;
                       ^
/datasets/git/object-name.c:1445:12: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                retval = brace - name + 1;
                         ^
/datasets/git/object-name.c:1446:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/object-name.c:1452:40: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int repo_get_oid_mb(struct repository *r,
                                       ^
/datasets/git/object-name.c:1456:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit *one, *two;
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/object-name.c:1456:17: warning: variable 'one' is not initialized [cppcoreguidelines-init-variables]
        struct commit *one, *two;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/object-name.c:1456:23: warning: variable 'two' is not initialized [cppcoreguidelines-init-variables]
        struct commit *one, *two;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/object-name.c:1457:22: warning: variable 'mbs' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *mbs;
                            ^
                                = NULL
/datasets/git/object-name.c:1459:14: warning: variable 'dots' is not initialized [cppcoreguidelines-init-variables]
        const char *dots;
                    ^
                         = NULL
/datasets/git/object-name.c:1460:6: warning: variable 'st' is not initialized [cppcoreguidelines-init-variables]
        int st;
            ^
               = 0
/datasets/git/object-name.c:1460:6: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object-name.c:1463:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!dots)
                  ^
                   {
/datasets/git/object-name.c:1465:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (dots == name)
                         ^
                          {
/datasets/git/object-name.c:1468:17: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                struct strbuf sb;
                              ^
/datasets/git/object-name.c:1474:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (st)
               ^
                {
/datasets/git/object-name.c:1477:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!one)
                 ^
                  {
/datasets/git/object-name.c:1480:74: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_get_oid_committish(r, dots[3] ? (dots + 3) : "HEAD", &oid_tmp))
                                                                                ^
                                                                                 {
/datasets/git/object-name.c:1483:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!two)
                 ^
                  {
/datasets/git/object-name.c:1486:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!mbs || mbs->next)
                              ^
                               {
/datasets/git/object-name.c:1499:14: warning: variable 'next' is not initialized [cppcoreguidelines-init-variables]
        const char *next;
                    ^
                         = NULL
/datasets/git/object-name.c:1501:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len || name[1] == '{')
                                  ^
                                   {
/datasets/git/object-name.c:1506:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (next && next[1] != '{')
                                   ^
                                    {
/datasets/git/object-name.c:1508:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!next)
                  ^
                   {
/datasets/git/object-name.c:1510:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (next != name + 1)
                             ^
                              {
/datasets/git/object-name.c:1518:12: warning: function 'reinterpret' is within a recursive call chain [misc-no-recursion]
static int reinterpret(struct repository *r,
           ^
/datasets/git/object-name.c:1611:5: note: example recursive call chain, starting from function 'repo_interpret_branch_name'
int repo_interpret_branch_name(struct repository *r,
    ^
/datasets/git/object-name.c:1631:12: note: Frame #1: function 'repo_interpret_branch_name' calls function 'reinterpret' here:
                                return reinterpret(r, name, namelen, len, buf,
                                       ^
/datasets/git/object-name.c:1531:8: note: Frame #2: function 'reinterpret' calls function 'repo_interpret_branch_name' here:
        ret = repo_interpret_branch_name(r, buf->buf, buf->len, &tmp, &options);
              ^
/datasets/git/object-name.c:1531:8: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/object-name.c:1518:43: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int reinterpret(struct repository *r,
                                          ^
/datasets/git/object-name.c:1524:13: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int used = buf->len;
                   ^
/datasets/git/object-name.c:1525:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/object-name.c:1531:48: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        ret = repo_interpret_branch_name(r, buf->buf, buf->len, &tmp, &options);
                                                      ^
/datasets/git/object-name.c:1544:50: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void set_shortened_ref(struct repository *r, struct strbuf *buf, const char *ref)
                                                 ^
/datasets/git/object-name.c:1546:8: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
        char *s = refs_shorten_unambiguous_ref(get_main_ref_store(r), ref, 0);
              ^
/datasets/git/object-name.c:1554:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!allowed)
                     ^
                      {
/datasets/git/object-name.c:1557:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((allowed & INTERPRET_BRANCH_LOCAL) &&
             ^
/datasets/git/object-name.c:1557:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((allowed & INTERPRET_BRANCH_LOCAL) &&
                       ^
/datasets/git/./refs/../cache.h:1584:33: note: expanded from macro 'INTERPRET_BRANCH_LOCAL'
#define INTERPRET_BRANCH_LOCAL (1<<0)
                                ^
/datasets/git/object-name.c:1558:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            starts_with(refname, "refs/heads/"))
                                                ^
                                                 {
/datasets/git/object-name.c:1560:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((allowed & INTERPRET_BRANCH_REMOTE) &&
             ^
/datasets/git/object-name.c:1560:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((allowed & INTERPRET_BRANCH_REMOTE) &&
                       ^
/datasets/git/./refs/../cache.h:1585:34: note: expanded from macro 'INTERPRET_BRANCH_REMOTE'
#define INTERPRET_BRANCH_REMOTE (1<<1)
                                 ^
/datasets/git/object-name.c:1561:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            starts_with(refname, "refs/remotes/"))
                                                  ^
                                                   {
/datasets/git/object-name.c:1567:53: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int interpret_branch_mark(struct repository *r,
                                                    ^
/datasets/git/object-name.c:1569:10: warning: parameter name 'at' is too short, expected at least 3 characters [readability-identifier-length]
                                 int at, struct strbuf *buf,
                                     ^
/datasets/git/object-name.c:1575:6: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int len;
            ^
                = 0
/datasets/git/object-name.c:1576:17: warning: variable 'branch' is not initialized [cppcoreguidelines-init-variables]
        struct branch *branch;
                       ^
                              = NULL
/datasets/git/object-name.c:1578:14: warning: variable 'value' is not initialized [cppcoreguidelines-init-variables]
        const char *value;
                    ^
                          = NULL
/datasets/git/object-name.c:1581:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!len)
                 ^
                  {
/datasets/git/object-name.c:1584:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (memchr(name, ':', at))
                                  ^
                                   {
/datasets/git/object-name.c:1591:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/object-name.c:1599:5: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                } else {
                  ^~~~~~
/datasets/git/object-name.c:1604:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!branch_interpret_allowed(value, options->allowed))
                                                               ^
                                                                {
/datasets/git/object-name.c:1611:5: warning: function 'repo_interpret_branch_name' is within a recursive call chain [misc-no-recursion]
int repo_interpret_branch_name(struct repository *r,
    ^
/datasets/git/object-name.c:1611:51: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int repo_interpret_branch_name(struct repository *r,
                                                  ^
/datasets/git/object-name.c:1616:8: warning: variable 'at' is not initialized [cppcoreguidelines-init-variables]
        char *at;
              ^
                 = NULL
/datasets/git/object-name.c:1616:8: warning: variable name 'at' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object-name.c:1617:14: warning: variable 'start' is not initialized [cppcoreguidelines-init-variables]
        const char *start;
                    ^
                          = NULL
/datasets/git/object-name.c:1618:6: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int len;
            ^
                = 0
/datasets/git/object-name.c:1620:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!namelen)
                     ^
                      {
/datasets/git/object-name.c:1621:13: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                namelen = strlen(name);
                          ^
/datasets/git/object-name.c:1623:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!options->allowed || (options->allowed & INTERPRET_BRANCH_LOCAL)) {
                                  ^
/datasets/git/object-name.c:1623:47: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!options->allowed || (options->allowed & INTERPRET_BRANCH_LOCAL)) {
                                                     ^
/datasets/git/./refs/../cache.h:1584:33: note: expanded from macro 'INTERPRET_BRANCH_LOCAL'
#define INTERPRET_BRANCH_LOCAL (1<<0)
                                ^
/datasets/git/object-name.c:1627:5: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                } else if (len > 0) {
                  ^~~~~~~~~~~~~~~~~~~
/datasets/git/object-name.c:1628:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (len == namelen)
                                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/object-name.c:1630:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                        else
                        ^~~~
note: this fix will not be applied because it overlaps with another fix
/datasets/git/object-name.c:1630:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/object-name.c:1636:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (start = name;
        ^
/datasets/git/object-name.c:1637:7: warning: backward branch (for loop) is ID-dependent due to variable reference to 'at' and may cause performance degradation [altera-id-dependent-backward-branch]
             (at = memchr(start, '@', namelen - (start - name)));
             ^
/datasets/git/object-name.c:1640:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!options->allowed || (options->allowed & INTERPRET_BRANCH_HEAD)) {
                                          ^
/datasets/git/object-name.c:1640:48: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!options->allowed || (options->allowed & INTERPRET_BRANCH_HEAD)) {
                                                             ^
/datasets/git/./refs/../cache.h:1586:32: note: expanded from macro 'INTERPRET_BRANCH_HEAD'
#define INTERPRET_BRANCH_HEAD (1<<2)
                               ^
/datasets/git/object-name.c:1641:44: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        len = interpret_empty_at(name, namelen, at - name, buf);
                                                                ^
/datasets/git/object-name.c:1642:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (len > 0)
                                    ^
                                     {
/datasets/git/object-name.c:1647:49: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                len = interpret_branch_mark(r, name, namelen, at - name, buf,
                                                              ^
/datasets/git/object-name.c:1650:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (len > 0)
                            ^
                             {
/datasets/git/object-name.c:1653:49: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                len = interpret_branch_mark(r, name, namelen, at - name, buf,
                                                              ^
/datasets/git/object-name.c:1656:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (len > 0)
                            ^
                             {
/datasets/git/object-name.c:1663:39: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void strbuf_branchname(struct strbuf *sb, const char *name, unsigned allowed)
                                      ^
/datasets/git/object-name.c:1665:12: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int len = strlen(name);
                  ^
/datasets/git/object-name.c:1671:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (used < 0)
                     ^
                      {
/datasets/git/object-name.c:1676:44: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
int strbuf_check_branch_ref(struct strbuf *sb, const char *name)
                                           ^
/datasets/git/object-name.c:1678:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (startup_info->have_repository)
                                          ^
                                           {
/datasets/git/object-name.c:1679:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                strbuf_branchname(sb, name, INTERPRET_BRANCH_LOCAL);
                                            ^
/datasets/git/./refs/../cache.h:1584:33: note: expanded from macro 'INTERPRET_BRANCH_LOCAL'
#define INTERPRET_BRANCH_LOCAL (1<<0)
                                ^
/datasets/git/object-name.c:1680:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/object-name.c:1689:41: warning: 11 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        strbuf_splice(sb, 0, 0, "refs/heads/", 11);
                                               ^
/datasets/git/object-name.c:1692:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !strcmp(sb->buf, "refs/heads/HEAD"))
                                                ^
                                                 {
/datasets/git/object-name.c:1702:37: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int repo_get_oid(struct repository *r, const char *name, struct object_id *oid)
                                    ^
/datasets/git/object-name.c:1714:10: warning: variable name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
        va_list ap;
                ^
/datasets/git/object-name.c:1715:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/object-name.c:1716:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/object-name.c:1738:48: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int repo_get_oid_committish(struct repository *r,
                                               ^
/datasets/git/object-name.c:1747:45: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int repo_get_oid_treeish(struct repository *r,
                                            ^
/datasets/git/object-name.c:1756:44: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int repo_get_oid_commit(struct repository *r,
                                           ^
/datasets/git/object-name.c:1765:42: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int repo_get_oid_tree(struct repository *r,
                                         ^
/datasets/git/object-name.c:1774:42: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int repo_get_oid_blob(struct repository *r,
                                         ^
/datasets/git/object-name.c:1784:58: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void diagnose_invalid_oid_path(struct repository *r,
                                                         ^
/datasets/git/object-name.c:1792:17: warning: variable 'mode' is not initialized [cppcoreguidelines-init-variables]
        unsigned short mode;
                       ^
                            = 0
/datasets/git/object-name.c:1794:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!prefix)
                    ^
                     {
/datasets/git/object-name.c:1797:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (file_exists(filename))
                                  ^
                                   {
/datasets/git/object-name.c:1819:60: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void diagnose_invalid_index_path(struct repository *r,
                                                           ^
/datasets/git/object-name.c:1825:28: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
        const struct cache_entry *ce;
                                  ^
                                     = NULL
/datasets/git/object-name.c:1825:28: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object-name.c:1826:6: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        int pos;
            ^
                = 0
/datasets/git/object-name.c:1830:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!prefix)
                    ^
                     {
/datasets/git/object-name.c:1834:41: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        pos = index_name_pos(istate, filename, namelen);
                                               ^
/datasets/git/object-name.c:1835:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pos < 0)
                    ^
                     {
/datasets/git/object-name.c:1841:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !memcmp(ce->name, filename, namelen))
                                                         ^
                                                          {
/datasets/git/object-name.c:1845:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            ce_stage(ce), filename);
                            ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/object-name.c:1851:45: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        pos = index_name_pos(istate, fullname.buf, fullname.len);
                                                   ^
/datasets/git/object-name.c:1852:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pos < 0)
                    ^
                     {
/datasets/git/object-name.c:1858:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !memcmp(ce->name, fullname.buf, fullname.len))
                                                                  ^
                                                                   {
/datasets/git/object-name.c:1862:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            ce_stage(ce), fullname.buf,
                            ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/object-name.c:1863:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            ce_stage(ce), filename);
                            ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/object-name.c:1866:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_file_exists(r, filename))
                                          ^
                                           {
/datasets/git/object-name.c:1868:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_missing_file_error(errno))
                                         ^
                                          {
/datasets/git/object-name.c:1876:55: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static char *resolve_relative_path(struct repository *r, const char *rel)
                                                      ^
/datasets/git/object-name.c:1878:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!starts_with(rel, "./") && !starts_with(rel, "../"))
                                                                ^
                                                                 {
/datasets/git/object-name.c:1881:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (r != the_repository || !is_inside_work_tree())
                                                          ^
                                                           {
/datasets/git/object-name.c:1886:30: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                           startup_info->prefix ? strlen(startup_info->prefix) : 0,
                                                  ^
/datasets/git/object-name.c:1892:31: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                                const struct cache_entry *ce,
                                                          ^
/datasets/git/object-name.c:1895:17: warning: parameter name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
                                const char *cp)
                                            ^
/datasets/git/object-name.c:1897:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!S_ISSPARSEDIR(ce->ce_mode))
                                        ^
                                         {
/datasets/git/object-name.c:1899:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (only_to_die)
                        ^
                         {
/datasets/git/object-name.c:1904:28: warning: function 'get_oid_with_context_1' has cognitive complexity of 66 (threshold 25) [readability-function-cognitive-complexity]
static enum get_oid_result get_oid_with_context_1(struct repository *repo,
                           ^
/datasets/git/object-name.c:1920:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!ret && flags & GET_OID_REQUIRE_PATH)
        ^
/datasets/git/object-name.c:1920:11: note: +1
        if (!ret && flags & GET_OID_REQUIRE_PATH)
                 ^
/datasets/git/object-name.c:1923:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!ret)
        ^
/datasets/git/object-name.c:1932:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (name[0] == ':') {
        ^
/datasets/git/object-name.c:1937:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!only_to_die && namelen > 2 && name[1] == '/') {
                ^
/datasets/git/object-name.c:1937:35: note: +1
                if (!only_to_die && namelen > 2 && name[1] == '/') {
                                                ^
/datasets/git/object-name.c:1948:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (namelen < 3 ||
                ^
/datasets/git/object-name.c:1950:21: note: +1
                    name[1] < '0' || '3' < name[1])
                                  ^
/datasets/git/object-name.c:1952:3: note: +1, nesting level increased to 2
                else {
                ^
/datasets/git/object-name.c:1957:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!new_path) {
                ^
/datasets/git/object-name.c:1959:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/object-name.c:1964:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (flags & GET_OID_RECORD_PATH)
                ^
/datasets/git/object-name.c:1967:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!repo->index || !repo->index->cache)
                ^
/datasets/git/object-name.c:1967:20: note: +1
                if (!repo->index || !repo->index->cache)
                                 ^
/datasets/git/object-name.c:1970:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (pos < 0)
                ^
/datasets/git/object-name.c:1972:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (pos < repo->index->cache_nr) {
                ^
/datasets/git/object-name.c:1974:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ce_namelen(ce) != namelen ||
                        ^
/datasets/git/object-name.c:1974:34: note: +1
                        if (ce_namelen(ce) != namelen ||
                                                      ^
/datasets/git/object-name.c:1977:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ce_stage(ce) == stage) {
                        ^
/datasets/git/object-name.c:1979:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (reject_tree_in_index(repo, only_to_die, ce,
                                ^
/datasets/git/object-name.c:1988:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (only_to_die && name[1] && name[1] != '/')
                ^
/datasets/git/object-name.c:1988:30: note: +1
                if (only_to_die && name[1] && name[1] != '/')
                                           ^
/datasets/git/object-name.c:1993:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (cp = name, bracket_depth = 0; *cp; cp++) {
        ^
/datasets/git/object-name.c:1994:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*cp == '{')
                ^
/datasets/git/object-name.c:1996:8: note: +1, nesting level increased to 2
                else if (bracket_depth && *cp == '}')
                     ^
/datasets/git/object-name.c:1996:26: note: +1
                else if (bracket_depth && *cp == '}')
                                       ^
/datasets/git/object-name.c:1998:8: note: +1, nesting level increased to 2
                else if (!bracket_depth && *cp == ':')
                     ^
/datasets/git/object-name.c:1998:27: note: +1
                else if (!bracket_depth && *cp == ':')
                                        ^
/datasets/git/object-name.c:2001:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (*cp == ':') {
        ^
/datasets/git/object-name.c:2009:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!get_oid_1(repo, name, len, &tree_oid, sub_flags)) {
                ^
/datasets/git/object-name.c:2014:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (new_filename)
                        ^
/datasets/git/object-name.c:2016:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (flags & GET_OID_FOLLOW_SYMLINKS) {
                        ^
/datasets/git/object-name.c:2020:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/object-name.c:2023:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (ret && only_to_die) {
                                ^
/datasets/git/object-name.c:2023:13: note: +1
                                if (ret && only_to_die) {
                                        ^
/datasets/git/object-name.c:2030:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (flags & GET_OID_RECORD_PATH)
                        ^
/datasets/git/object-name.c:2035:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/object-name.c:2036:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (only_to_die)
                        ^
/datasets/git/object-name.c:1909:30: warning: parameter name 'oc' is too short, expected at least 3 characters [readability-identifier-length]
                                  struct object_context *oc)
                                                         ^
/datasets/git/object-name.c:1911:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int ret, bracket_depth;
        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/object-name.c:1911:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret, bracket_depth;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/object-name.c:1911:11: warning: variable 'bracket_depth' is not initialized [cppcoreguidelines-init-variables]
        int ret, bracket_depth;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/object-name.c:1912:16: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int namelen = strlen(name);
                      ^
/datasets/git/object-name.c:1913:14: warning: variable 'cp' is not initialized [cppcoreguidelines-init-variables]
        const char *cp;
                    ^
                       = NULL
/datasets/git/object-name.c:1913:14: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object-name.c:1914:20: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int only_to_die = flags & GET_OID_ONLY_TO_DIE;
                          ^
/datasets/git/object-name.c:1914:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
/datasets/git/object-name.c:1916:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(oc, 0, sizeof(*oc));
        ^~~~~~
/datasets/git/object-name.c:1916:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(oc, 0, sizeof(*oc));
        ^~~~~~
/datasets/git/object-name.c:1920:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!ret && flags & GET_OID_REQUIRE_PATH)
                    ^
/datasets/git/object-name.c:1920:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ret && flags & GET_OID_REQUIRE_PATH)
                                                 ^
                                                  {
/datasets/git/object-name.c:1923:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ret)
                 ^
                  {
/datasets/git/object-name.c:1934:29: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
                const struct cache_entry *ce;
                                          ^
                                             = NULL
/datasets/git/object-name.c:1934:29: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object-name.c:1936:7: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
                int pos;
                    ^
                        = 0
/datasets/git/object-name.c:1938:29: warning: variable name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
                        struct handle_one_ref_cb cb;
                                                 ^
/datasets/git/object-name.c:1950:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    name[1] < '0' || '3' < name[1])
                                                   ^
                                                    {
/datasets/git/object-name.c:1958:14: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        namelen = namelen - (cp - name);
                                  ^
/datasets/git/object-name.c:1961:14: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        namelen = strlen(cp);
                                  ^
/datasets/git/object-name.c:1964:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flags & GET_OID_RECORD_PATH)
                    ^
/datasets/git/object-name.c:1964:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (flags & GET_OID_RECORD_PATH)
                                                ^
                                                 {
/datasets/git/object-name.c:1967:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!repo->index || !repo->index->cache)
                                                        ^
                                                         {
/datasets/git/object-name.c:1970:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pos < 0)
                            ^
                             {
/datasets/git/object-name.c:1972:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (pos < repo->index->cache_nr) {
                ^
/datasets/git/object-name.c:1972:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'pos' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (pos < repo->index->cache_nr) {
                       ^
/datasets/git/object-name.c:1975:8: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                            memcmp(ce->name, cp, namelen))
                            ^
                                                          != 0
/datasets/git/object-name.c:1975:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            memcmp(ce->name, cp, namelen))
                                                          ^
                                                           {
/datasets/git/object-name.c:1977:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (ce_stage(ce) == stage) {
                            ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/object-name.c:1979:9: warning: Use of memory after it is freed [clang-analyzer-unix.Malloc]
                                if (reject_tree_in_index(repo, only_to_die, ce,
                                    ^
/datasets/git/object-name.c:2056:2: note: Calling 'get_oid_with_context_1'
        get_oid_with_context_1(r, name, GET_OID_ONLY_TO_DIE | GET_OID_QUIETLY,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/object-name.c:1920:6: note: Assuming 'ret' is not equal to 0
        if (!ret && flags & GET_OID_REQUIRE_PATH)
            ^~~~
/datasets/git/object-name.c:1920:11: note: Left side of '&&' is false
        if (!ret && flags & GET_OID_REQUIRE_PATH)
                 ^
/datasets/git/object-name.c:1923:7: note: 'ret' is not equal to 0
        if (!ret)
             ^~~
/datasets/git/object-name.c:1923:2: note: Taking false branch
        if (!ret)
        ^
/datasets/git/object-name.c:1932:6: note: Assuming the condition is true
        if (name[0] == ':') {
            ^~~~~~~~~~~~~~
/datasets/git/object-name.c:1932:2: note: Taking true branch
        if (name[0] == ':') {
        ^
/datasets/git/object-name.c:1937:8: note: 'only_to_die' is 2048
                if (!only_to_die && namelen > 2 && name[1] == '/') {
                     ^~~~~~~~~~~
/datasets/git/object-name.c:1937:20: note: Left side of '&&' is false
                if (!only_to_die && namelen > 2 && name[1] == '/') {
                                 ^
/datasets/git/object-name.c:1948:7: note: Assuming 'namelen' is >= 3
                if (namelen < 3 ||
                    ^~~~~~~~~~~
/datasets/git/object-name.c:1948:7: note: Left side of '||' is false
/datasets/git/object-name.c:1949:7: note: Assuming the condition is false
                    name[2] != ':' ||
                    ^~~~~~~~~~~~~~
/datasets/git/object-name.c:1948:7: note: Left side of '||' is false
                if (namelen < 3 ||
                    ^
/datasets/git/object-name.c:1950:7: note: Assuming the condition is false
                    name[1] < '0' || '3' < name[1])
                    ^~~~~~~~~~~~~
/datasets/git/object-name.c:1948:7: note: Left side of '||' is false
                if (namelen < 3 ||
                    ^
/datasets/git/object-name.c:1950:24: note: Assuming the condition is false
                    name[1] < '0' || '3' < name[1])
                                     ^~~~~~~~~~~~~
/datasets/git/object-name.c:1948:3: note: Taking false branch
                if (namelen < 3 ||
                ^
/datasets/git/object-name.c:1957:7: note: Assuming 'new_path' is non-null
                if (!new_path) {
                    ^~~~~~~~~
/datasets/git/object-name.c:1957:3: note: Taking false branch
                if (!new_path) {
                ^
/datasets/git/object-name.c:1964:3: note: Taking false branch
                if (flags & GET_OID_RECORD_PATH)
                ^
/datasets/git/object-name.c:1967:7: note: Assuming field 'index' is null
                if (!repo->index || !repo->index->cache)
                    ^~~~~~~~~~~~
/datasets/git/object-name.c:1967:20: note: Left side of '||' is true
                if (!repo->index || !repo->index->cache)
                                 ^
/datasets/git/object-name.c:1970:7: note: Assuming 'pos' is >= 0
                if (pos < 0)
                    ^~~~~~~
/datasets/git/object-name.c:1970:3: note: Taking false branch
                if (pos < 0)
                ^
/datasets/git/object-name.c:1972:10: note: Assuming 'pos' is < field 'cache_nr'
                while (pos < repo->index->cache_nr) {
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/object-name.c:1972:3: note: Loop condition is true.  Entering loop body
                while (pos < repo->index->cache_nr) {
                ^
/datasets/git/object-name.c:1974:8: note: Assuming 'namelen' is equal to field 'ce_namelen'
                        if (ce_namelen(ce) != namelen ||
                            ^
/datasets/git/./refs/../cache.h:240:24: note: expanded from macro 'ce_namelen'
#define ce_namelen(ce) ((ce)->ce_namelen)
                       ^
/datasets/git/object-name.c:1974:8: note: Left side of '||' is false
                        if (ce_namelen(ce) != namelen ||
                            ^
/datasets/git/./refs/../cache.h:240:24: note: expanded from macro 'ce_namelen'
#define ce_namelen(ce) ((ce)->ce_namelen)
                       ^
/datasets/git/object-name.c:1975:8: note: Assuming the condition is false
                            memcmp(ce->name, cp, namelen))
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/object-name.c:1974:4: note: Taking false branch
                        if (ce_namelen(ce) != namelen ||
                        ^
/datasets/git/object-name.c:1977:8: note: Assuming the condition is true
                        if (ce_stage(ce) == stage) {
                            ^
/datasets/git/./refs/../cache.h:242:22: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                     ^
/datasets/git/object-name.c:1977:4: note: Taking true branch
                        if (ce_stage(ce) == stage) {
                        ^
/datasets/git/object-name.c:1978:5: note: Memory is released
                                free(new_path);
                                ^~~~~~~~~~~~~~
/datasets/git/object-name.c:1979:9: note: Use of memory after it is freed
                                if (reject_tree_in_index(repo, only_to_die, ce,
                                    ^
/datasets/git/object-name.c:1980:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                         stage, prefix, cp))
                                                                            ^
                                                                             {
/datasets/git/object-name.c:1988:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (only_to_die && name[1] && name[1] != '/')
                                                             ^
                                                              {
/datasets/git/object-name.c:1993:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cp = name, bracket_depth = 0; *cp; cp++) {
        ^
/datasets/git/object-name.c:1993:37: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cp' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (cp = name, bracket_depth = 0; *cp; cp++) {
                                           ^
/datasets/git/object-name.c:1994:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*cp == '{')
                               ^
                                {
/datasets/git/object-name.c:1996:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (bracket_depth && *cp == '}')
                                                     ^
                                                      {
/datasets/git/object-name.c:1998:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!bracket_depth && *cp == ':')
                                                      ^
                                                       {
/datasets/git/object-name.c:2003:13: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int len = cp - name;
                          ^
/datasets/git/object-name.c:2006:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                sub_flags &= ~GET_OID_DISAMBIGUATORS;
                ^            ~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/object-name.c:2006:16: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                sub_flags &= ~GET_OID_DISAMBIGUATORS;
                             ^
/datasets/git/object-name.c:2006:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                sub_flags &= ~GET_OID_DISAMBIGUATORS;
                              ^
/datasets/git/./refs/../cache.h:1449:3: note: expanded from macro 'GET_OID_DISAMBIGUATORS'
        (GET_OID_COMMIT | GET_OID_COMMITTISH | \
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./refs/../cache.h:1438:35: note: expanded from macro 'GET_OID_COMMIT'
#define GET_OID_COMMIT            02
                                  ^
/datasets/git/object-name.c:2007:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                sub_flags |= GET_OID_TREEISH;
                ^
/datasets/git/object-name.c:2014:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (new_filename)
                                         ^
                                          {
/datasets/git/object-name.c:2016:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (flags & GET_OID_FOLLOW_SYMLINKS) {
                            ^
/datasets/git/object-name.c:2030:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (flags & GET_OID_RECORD_PATH)
                            ^
/datasets/git/object-name.c:2030:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (flags & GET_OID_RECORD_PATH)
                                                        ^
                                                         {
/datasets/git/object-name.c:2035:5: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                } else {
                  ^~~~~~
/datasets/git/object-name.c:2036:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (only_to_die)
                                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/object-name.c:2050:59: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void maybe_die_on_misspelt_object_name(struct repository *r,
                                                          ^
/datasets/git/object-name.c:2054:24: warning: variable name 'oc' is too short, expected at least 3 characters [readability-identifier-length]
        struct object_context oc;
                              ^
/datasets/git/object-name.c:2056:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        get_oid_with_context_1(r, name, GET_OID_ONLY_TO_DIE | GET_OID_QUIETLY,
                                        ^
/datasets/git/./refs/../cache.h:1445:32: note: expanded from macro 'GET_OID_ONLY_TO_DIE'
#define GET_OID_ONLY_TO_DIE    04000
                               ^~~~~
/datasets/git/object-name.c:2064:30: warning: parameter name 'oc' is too short, expected at least 3 characters [readability-identifier-length]
                                         struct object_context *oc)
                                                                ^
/datasets/git/object-name.c:2066:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & GET_OID_FOLLOW_SYMLINKS && flags & GET_OID_ONLY_TO_DIE)
            ^
/datasets/git/object-name.c:2066:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & GET_OID_FOLLOW_SYMLINKS && flags & GET_OID_ONLY_TO_DIE)
                                               ^
/datasets/git/object-name.c:2066:69: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & GET_OID_FOLLOW_SYMLINKS && flags & GET_OID_ONLY_TO_DIE)
                                                                           ^
                                                                            {
/datasets/git/object.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "object.h"
^        ~~~~~~~~~~
         "alloc.h"
/datasets/git/object.c:23:20: warning: variable 'object_type_strings' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *object_type_strings[] = {
                   ^
/datasets/git/object.c:33:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (type >= ARRAY_SIZE(object_type_strings))
                                                    ^
                                                     {
/datasets/git/object.c:38:46: warning: 2 adjacent parameters of 'type_from_string_gently' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
int type_from_string_gently(const char *str, ssize_t len, int gentle)
                                             ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/object.c:38:54: note: the first parameter in the range is 'len'
int type_from_string_gently(const char *str, ssize_t len, int gentle)
                                                     ^~~
/datasets/git/object.c:38:63: note: the last parameter in the range is 'gentle'
int type_from_string_gently(const char *str, ssize_t len, int gentle)
                                                              ^~~~~~
/datasets/git/object.c:38:46: note: 
int type_from_string_gently(const char *str, ssize_t len, int gentle)
                                             ^
/datasets/git/object.c:38:59: note: 'ssize_t' and 'int' may be implicitly converted: 'ssize_t' (as 'long') -> 'int', 'int' -> 'ssize_t' (as 'long')
int type_from_string_gently(const char *str, ssize_t len, int gentle)
                                                          ^
/datasets/git/object.c:40:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/object.c:40:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object.c:42:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len < 0)
                    ^
                     {
/datasets/git/object.c:43:9: warning: narrowing conversion from 'unsigned long' to signed type 'ssize_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                len = strlen(str);
                      ^
/datasets/git/object.c:45:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 1; i < ARRAY_SIZE(object_type_strings); i++)
        ^
/datasets/git/object.c:45:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 1; i < ARRAY_SIZE(object_type_strings); i++)
                                                             ^
                                                              {
/datasets/git/object.c:47:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    object_type_strings[i][len] == '\0')
                                                        ^
                                                         {
/datasets/git/object.c:50:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (gentle)
                   ^
                    {
/datasets/git/object.c:73:15: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned int j = hash_obj(&obj->oid, size);
                     ^
/datasets/git/object.c:75:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (hash[j]) {
        ^
/datasets/git/object.c:75:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'j' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (hash[j]) {
               ^
/datasets/git/object.c:77:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (j >= size)
                              ^
                               {
/datasets/git/object.c:87:49: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
struct object *lookup_object(struct repository *r, const struct object_id *oid)
                                                ^
/datasets/git/object.c:89:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned int i, first;
        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/object.c:89:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i, first;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/object.c:89:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object.c:89:18: warning: variable 'first' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i, first;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/object.c:90:17: warning: variable 'obj' is not initialized [cppcoreguidelines-init-variables]
        struct object *obj;
                       ^
                           = NULL
/datasets/git/object.c:92:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!r->parsed_objects->obj_hash)
                                         ^
                                          {
/datasets/git/object.c:96:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((obj = r->parsed_objects->obj_hash[i]) != NULL) {
        ^
/datasets/git/object.c:96:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'obj' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((obj = r->parsed_objects->obj_hash[i]) != NULL) {
               ^
/datasets/git/object.c:97:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (oideq(oid, &obj->oid))
                                          ^
                                           {
/datasets/git/object.c:100:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (i == r->parsed_objects->obj_hash_size)
                                                          ^
                                                           {
/datasets/git/object.c:109:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                SWAP(r->parsed_objects->obj_hash[i],
                ^
/datasets/git/./git-compat-util.h:759:20: note: expanded from macro 'SWAP'
#define SWAP(a, b) do {                                         \
                   ^
/datasets/git/object.c:109:3: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                SWAP(r->parsed_objects->obj_hash[i],
                ^
/datasets/git/./git-compat-util.h:762:29: note: expanded from macro 'SWAP'
        unsigned char _swap_buffer[sizeof(a)];                  \
                                   ^
/datasets/git/object.c:109:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                SWAP(r->parsed_objects->obj_hash[i],
                ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/object.c:109:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                SWAP(r->parsed_objects->obj_hash[i],
                ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/object.c:120:49: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void grow_object_hash(struct repository *r)
                                                ^
./object.h:10:2: note: inferred assignment of ID-dependent member from ID-dependent variable new_hash_size [altera-id-dependent-backward-branch]
        int nr_objs, obj_hash_size;
        ^
/datasets/git/object.c:122:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/object.c:122:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object.c:127:57: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        int new_hash_size = r->parsed_objects->obj_hash_size < 32 ? 32 : 2 * r->parsed_objects->obj_hash_size;
                                                               ^
/datasets/git/object.c:127:62: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        int new_hash_size = r->parsed_objects->obj_hash_size < 32 ? 32 : 2 * r->parsed_objects->obj_hash_size;
                                                                    ^
/datasets/git/object.c:128:18: warning: variable 'new_hash' is not initialized [cppcoreguidelines-init-variables]
        struct object **new_hash;
                        ^
                                 = NULL
/datasets/git/object.c:130:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        CALLOC_ARRAY(new_hash, new_hash_size);
        ^
/datasets/git/./git-compat-util.h:1091:55: note: expanded from macro 'CALLOC_ARRAY'
#define CALLOC_ARRAY(x, alloc) (x) = xcalloc((alloc), sizeof(*(x)))
                                                      ^
/datasets/git/object.c:131:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < r->parsed_objects->obj_hash_size; i++) {
        ^
/datasets/git/object.c:131:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'obj_hash_size' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < r->parsed_objects->obj_hash_size; i++) {
                    ^
/datasets/git/object.c:134:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!obj)
                         ^
                          {
/datasets/git/object.c:143:40: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void *create_object(struct repository *r, const struct object_id *oid, void *o)
                                       ^
/datasets/git/object.c:143:78: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
void *create_object(struct repository *r, const struct object_id *oid, void *o)
                                                                             ^
/datasets/git/object.c:151:77: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (r->parsed_objects->obj_hash_size - 1 <= r->parsed_objects->nr_objs * 2)
                                                                                   ^
                                                                                    {
/datasets/git/object.c:160:42: warning: 2 adjacent parameters of 'object_as_type' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
void *object_as_type(struct object *obj, enum object_type type, int quiet)
                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/object.c:160:59: note: the first parameter in the range is 'type'
void *object_as_type(struct object *obj, enum object_type type, int quiet)
                                                          ^~~~
/datasets/git/object.c:160:69: note: the last parameter in the range is 'quiet'
void *object_as_type(struct object *obj, enum object_type type, int quiet)
                                                                    ^~~~~
/datasets/git/object.c:160:65: note: 'enum object_type' and 'int' may be implicitly converted
void *object_as_type(struct object *obj, enum object_type type, int quiet)
                                                                ^
/datasets/git/object.c:162:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (obj->type == type)
                              ^
                               {
/datasets/git/object.c:164:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (obj->type == OBJ_NONE) {
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/object.c:165:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (type == OBJ_COMMIT)
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/object.c:167:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/object.c:172:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!quiet)
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/object.c:180:57: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
struct object *lookup_unknown_object(struct repository *r, const struct object_id *oid)
                                                        ^
/datasets/git/object.c:183:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!obj)
                 ^
                  {
/datasets/git/object.c:188:57: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
struct object *lookup_object_by_type(struct repository *r,
                                                        ^
/datasets/git/object.c:206:16: warning: function 'parse_object_buffer' has cognitive complexity of 36 (threshold 25) [readability-function-cognitive-complexity]
struct object *parse_object_buffer(struct repository *r, const struct object_id *oid, enum object_type type, unsigned long size, void *buffer, int *eaten_p)
               ^
/datasets/git/object.c:212:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (type == OBJ_BLOB) {
        ^
/datasets/git/object.c:214:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (blob) {
                ^
/datasets/git/object.c:215:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (parse_blob_buffer(blob, buffer, size))
                        ^
/datasets/git/object.c:219:9: note: +1, nesting level increased to 1
        } else if (type == OBJ_TREE) {
               ^
/datasets/git/object.c:221:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (tree) {
                ^
/datasets/git/object.c:223:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!tree->buffer)
                        ^
/datasets/git/object.c:225:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!tree->object.parsed) {
                        ^
/datasets/git/object.c:226:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (parse_tree_buffer(tree, buffer, size))
                                ^
/datasets/git/object.c:231:9: note: +1, nesting level increased to 1
        } else if (type == OBJ_COMMIT) {
               ^
/datasets/git/object.c:233:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (commit) {
                ^
/datasets/git/object.c:234:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (parse_commit_buffer(r, commit, buffer, size, 1))
                        ^
/datasets/git/object.c:236:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (save_commit_buffer &&
                        ^
/datasets/git/object.c:236:27: note: +1
                        if (save_commit_buffer &&
                                               ^
/datasets/git/object.c:243:9: note: +1, nesting level increased to 1
        } else if (type == OBJ_TAG) {
               ^
/datasets/git/object.c:245:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (tag) {
                ^
/datasets/git/object.c:246:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (parse_tag_buffer(r, tag, buffer, size))
                        ^
/datasets/git/object.c:250:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/object.c:206:55: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
struct object *parse_object_buffer(struct repository *r, const struct object_id *oid, enum object_type type, unsigned long size, void *buffer, int *eaten_p)
                                                      ^
/datasets/git/object.c:206:87: warning: 2 adjacent parameters of 'parse_object_buffer' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
struct object *parse_object_buffer(struct repository *r, const struct object_id *oid, enum object_type type, unsigned long size, void *buffer, int *eaten_p)
                                                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/object.c:206:104: note: the first parameter in the range is 'type'
struct object *parse_object_buffer(struct repository *r, const struct object_id *oid, enum object_type type, unsigned long size, void *buffer, int *eaten_p)
                                                                                                       ^~~~
/datasets/git/object.c:206:124: note: the last parameter in the range is 'size'
struct object *parse_object_buffer(struct repository *r, const struct object_id *oid, enum object_type type, unsigned long size, void *buffer, int *eaten_p)
                                                                                                                           ^~~~
/datasets/git/object.c:206:110: note: 'enum object_type' and 'unsigned long' may be implicitly converted
struct object *parse_object_buffer(struct repository *r, const struct object_id *oid, enum object_type type, unsigned long size, void *buffer, int *eaten_p)
                                                                                                             ^
/datasets/git/object.c:208:17: warning: variable 'obj' is not initialized [cppcoreguidelines-init-variables]
        struct object *obj;
                       ^
                           = NULL
/datasets/git/object.c:215:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (parse_blob_buffer(blob, buffer, size))
                                                                  ^
                                                                   {
/datasets/git/object.c:223:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!tree->buffer)
                                          ^
                                           {
/datasets/git/object.c:226:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (parse_tree_buffer(tree, buffer, size))
                                                                          ^
                                                                           {
/datasets/git/object.c:234:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (parse_commit_buffer(r, commit, buffer, size, 1))
                                                                            ^
                                                                             {
/datasets/git/object.c:246:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (parse_tag_buffer(r, tag, buffer, size))
                                                                   ^
                                                                    {
/datasets/git/object.c:260:17: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
        struct object *o = parse_object(the_repository, oid);
                       ^
/datasets/git/object.c:261:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (o)
              ^
               {
/datasets/git/object.c:267:59: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
struct object *parse_object_with_flags(struct repository *r,
                                                          ^
/datasets/git/object.c:271:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int skip_hash = !!(flags & PARSE_OBJECT_SKIP_HASH_CHECK);
                           ^       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/object.c:272:16: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size;
                      ^
                           = 0
/datasets/git/object.c:273:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/object.c:274:6: warning: variable 'eaten' is not initialized [cppcoreguidelines-init-variables]
        int eaten;
            ^
                  = 0
/datasets/git/object.c:276:8: warning: variable 'buffer' is not initialized [cppcoreguidelines-init-variables]
        void *buffer;
              ^
                     = NULL
/datasets/git/object.c:277:17: warning: variable 'obj' is not initialized [cppcoreguidelines-init-variables]
        struct object *obj;
                       ^
                           = NULL
/datasets/git/object.c:280:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (obj && obj->parsed)
                               ^
                                {
/datasets/git/object.c:285:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (commit)
                           ^
                            {
/datasets/git/object.c:310:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!eaten)
                           ^
                            {
/datasets/git/object.c:317:48: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
struct object *parse_object(struct repository *r, const struct object_id *oid)
                                               ^
/datasets/git/object.c:332:26: note: inferred assignment of ID-dependent value from ID-dependent member next [altera-id-dependent-backward-branch]
int object_list_contains(struct object_list *list, struct object *obj)
                         ^
/datasets/git/object.c:334:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (list) {
        ^
/datasets/git/object.c:334:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'list' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (list) {
               ^
/datasets/git/object.c:335:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (list->item == obj)
                                      ^
                                       {
/datasets/git/object.c:344:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*list) {
        ^
/datasets/git/object.c:345:23: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct object_list *p = *list;
                                    ^
/datasets/git/object.c:355:13: warning: variable 'object_array_slopbuf' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char object_array_slopbuf[1];
            ^
/datasets/git/object.c:361:11: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned nr = array->nr;
                 ^
/datasets/git/object.c:364:29: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
        struct object_array_entry *entry;
                                   ^
                                         = NULL
/datasets/git/object.c:367:20: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                alloc = (alloc + 32) * 2;
                                 ^
/datasets/git/object.c:374:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!name)
                  ^
                   {
/datasets/git/object.c:376:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!*name)
                        ^
                         {
/datasets/git/object.c:379:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/object.c:382:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (path)
                 ^
                  {
/datasets/git/object.c:384:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/object.c:400:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ent->name != object_array_slopbuf)
                                              ^
                                               {
/datasets/git/object.c:407:17: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        struct object *ret;
                       ^
                           = NULL
/datasets/git/object.c:409:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!array->nr)
                       ^
                        {
/datasets/git/object.c:421:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned nr = array->nr, src, dst;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/object.c:421:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/object.c:421:11: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned nr = array->nr, src, dst;
                 ^
/datasets/git/object.c:421:27: warning: variable 'src' is not initialized [cppcoreguidelines-init-variables]
        unsigned nr = array->nr, src, dst;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/object.c:421:32: warning: variable 'dst' is not initialized [cppcoreguidelines-init-variables]
        unsigned nr = array->nr, src, dst;
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/object.c:424:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (src = dst = 0; src < nr; src++) {
        ^
/datasets/git/object.c:424:22: warning: backward branch (for loop) is ID-dependent due to variable reference to 'src' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (src = dst = 0; src < nr; src++) {
                            ^
/datasets/git/object.c:426:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (src != dst)
                                       ^
                                        {
/datasets/git/object.c:438:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/object.c:438:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object.c:439:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < array->nr; i++)
        ^
/datasets/git/object.c:439:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < array->nr; i++)
                    ^
/datasets/git/object.c:439:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < array->nr; i++)
                                       ^
                                        {
/datasets/git/object.c:441:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(array->objects);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/object.c:451:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned nr = array->nr, i;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/object.c:451:11: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned nr = array->nr, i;
                 ^
/datasets/git/object.c:451:27: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned nr = array->nr, i;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/object.c:451:27: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object.c:454:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr; i++, object++)
        ^
/datasets/git/object.c:454:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < nr; i++, object++)
                    ^
/datasets/git/object.c:454:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < nr; i++, object++)
                                          ^
                                           {
/datasets/git/object.c:455:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (item == object->item && !strcmp(object->name, name))
                                                                        ^
                                                                         {
/datasets/git/object.c:462:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned nr = array->nr, src;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/object.c:462:2: note: inferred assignment of ID-dependent value from ID-dependent member nr [altera-id-dependent-backward-branch]
/datasets/git/object.c:462:11: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned nr = array->nr, src;
                 ^
/datasets/git/object.c:462:27: warning: variable 'src' is not initialized [cppcoreguidelines-init-variables]
        unsigned nr = array->nr, src;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/object.c:466:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (src = 0; src < nr; src++) {
        ^
/datasets/git/object.c:466:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (src = 0; src < nr; src++) {
                      ^
/datasets/git/object.c:469:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (src != array->nr)
                                             ^
                                              {
/datasets/git/object.c:480:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/object.c:480:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object.c:482:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i=0; i < the_repository->parsed_objects->obj_hash_size; i++) {
        ^
/datasets/git/object.c:482:12: warning: backward branch (for loop) is ID-dependent due to member reference to 'obj_hash_size' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i=0; i < the_repository->parsed_objects->obj_hash_size; i++) {
                  ^
/datasets/git/object.c:484:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (obj)
                        ^
                         {
/datasets/git/object.c:489:49: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void repo_clear_commit_marks(struct repository *r, unsigned int flags)
                                                ^
./object.h:10:2: note: inferred assignment of ID-dependent member from ID-dependent variable new_hash_size [altera-id-dependent-backward-branch]
        int nr_objs, obj_hash_size;
        ^
/datasets/git/object.c:491:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/object.c:491:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object.c:493:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < r->parsed_objects->obj_hash_size; i++) {
        ^
/datasets/git/object.c:493:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'obj_hash_size' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < r->parsed_objects->obj_hash_size; i++) {
                    ^
/datasets/git/object.c:495:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (obj && obj->type == OBJ_COMMIT)
                                                   ^
                                                    {
/datasets/git/object.c:502:29: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
        struct parsed_object_pool *o = xmalloc(sizeof(*o));
                                   ^
/datasets/git/object.c:503:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(o, 0, sizeof(*o));
        ^~~~~~
/datasets/git/object.c:503:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(o, 0, sizeof(*o));
        ^~~~~~
/datasets/git/object.c:521:27: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
        struct raw_object_store *o = xmalloc(sizeof(*o));
                                 ^
/datasets/git/object.c:523:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(o, 0, sizeof(*o));
        ^~~~~~
/datasets/git/object.c:523:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(o, 0, sizeof(*o));
        ^~~~~~
/datasets/git/object.c:537:62: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static void free_object_directories(struct raw_object_store *o)
                                                             ^
/datasets/git/./object-store.h:164:2: note: inferred assignment of ID-dependent member from ID-dependent variable next [altera-id-dependent-backward-branch]
        struct object_directory *odb;
        ^
/datasets/git/object.c:539:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (o->odb) {
        ^
/datasets/git/object.c:539:9: warning: backward branch (while loop) is ID-dependent due to member reference to 'odb' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (o->odb) {
               ^
/datasets/git/object.c:540:28: warning: variable 'next' is not initialized [cppcoreguidelines-init-variables]
                struct object_directory *next;
                                         ^
                                              = NULL
/datasets/git/object.c:550:54: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
void raw_object_store_clear(struct raw_object_store *o)
                                                     ^
/datasets/git/object.c:552:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(o->alternate_db);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/object.c:555:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(o->replace_map);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/object.c:573:58: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
void parsed_object_pool_clear(struct parsed_object_pool *o)
                                                         ^
./object.h:10:2: note: inferred assignment of ID-dependent member from ID-dependent variable new_hash_size [altera-id-dependent-backward-branch]
        int nr_objs, obj_hash_size;
        ^
/datasets/git/object.c:582:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned i;
                 ^
                   = 0
/datasets/git/object.c:582:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/object.c:584:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < o->obj_hash_size; i++) {
        ^
/datasets/git/object.c:584:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'obj_hash_size' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < o->obj_hash_size; i++) {
                    ^
/datasets/git/object.c:587:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!obj)
                         ^
                          {
/datasets/git/object.c:590:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (obj->type == OBJ_TREE)
                                          ^
                                           {
/datasets/git/object.c:592:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (obj->type == OBJ_COMMIT)
                                                 ^
                                                  {
/datasets/git/object.c:594:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (obj->type == OBJ_TAG)
                                              ^
                                               {
/datasets/git/object.c:598:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(o->obj_hash);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/object.c:610:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(o->blob_state);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/object.c:611:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(o->tree_state);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/object.c:612:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(o->commit_state);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/object.c:613:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(o->tag_state);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/object.c:614:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(o->object_state);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/object.c:615:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(o->shallow_stat);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/oid-array.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "oid-array.h"
^        ~~~~~~~~~~~~~
         "hash-lookup.h"
/datasets/git/oid-array.c:7:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(array->oid, array->nr + 1, array->alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/oid-array.c:12:37: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static int void_hashcmp(const void *a, const void *b)
                                    ^
/datasets/git/oid-array.c:12:52: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static int void_hashcmp(const void *a, const void *b)
                                                   ^
/datasets/git/oid-array.c:19:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (array->sorted)
                          ^
                           {
/datasets/git/oid-array.c:39:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(array->oid);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/oid-array.c:47:26: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
                       for_each_oid_fn fn,
                                       ^
/datasets/git/oid-array.c:50:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i;
               ^
                 = 0
/datasets/git/oid-array.c:50:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/oid-array.c:54:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < array->nr; i++) {
        ^
/datasets/git/oid-array.c:56:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret)
                        ^
                         {
/datasets/git/oid-array.c:63:26: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
                              for_each_oid_fn fn,
                                              ^
/datasets/git/oid-array.c:66:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        size_t i;
        ^
/datasets/git/oid-array.c:66:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i;
               ^
                 = 0
/datasets/git/oid-array.c:66:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/oid-array.c:70:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < array->nr; i = oid_array_next_unique(array, i)) {
        ^
/datasets/git/oid-array.c:70:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < array->nr; i = oid_array_next_unique(array, i)) {
                    ^
/datasets/git/oid-array.c:72:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret)
                        ^
                         {
/datasets/git/oid-array.c:82:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t nr = array->nr, src, dst;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/oid-array.c:82:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/oid-array.c:82:9: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
        size_t nr = array->nr, src, dst;
               ^
/datasets/git/oid-array.c:82:25: warning: variable 'src' is not initialized [cppcoreguidelines-init-variables]
        size_t nr = array->nr, src, dst;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/oid-array.c:82:30: warning: variable 'dst' is not initialized [cppcoreguidelines-init-variables]
        size_t nr = array->nr, src, dst;
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/oid-array.c:85:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (src = dst = 0; src < nr; src++) {
        ^
/datasets/git/oid-array.c:85:22: warning: backward branch (for loop) is ID-dependent due to variable reference to 'src' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (src = dst = 0; src < nr; src++) {
                            ^
/datasets/git/oid-array.c:87:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (src != dst)
                                       ^
                                        {
oidmap.c:5:37: warning: parameter name 'e1' is too short, expected at least 3 characters [readability-identifier-length]
                      const struct hashmap_entry *e1,
                                                  ^
oidmap.c:6:37: warning: parameter name 'e2' is too short, expected at least 3 characters [readability-identifier-length]
                      const struct hashmap_entry *e2,
                                                  ^
/datasets/git/oidmap.c:9:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const struct oidmap_entry *a, *b;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/oidmap.c:9:29: warning: variable 'a' is not initialized [cppcoreguidelines-init-variables]
        const struct oidmap_entry *a, *b;
                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/oidmap.c:9:29: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/oidmap.c:9:33: warning: variable 'b' is not initialized [cppcoreguidelines-init-variables]
        const struct oidmap_entry *a, *b;
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/oidmap.c:9:33: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/oidmap.c:14:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (keydata)
                    ^
                     {
/datasets/git/oidmap.c:26:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!map)
                 ^
                  {
/datasets/git/oidmap.c:35:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!map->map.cmpfn)
                            ^
                             {
/datasets/git/oidmap.c:45:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!map->map.cmpfn)
                            ^
                             {
/datasets/git/oidmap.c:56:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!map->map.cmpfn)
                            ^
                             {
/datasets/git/oidset.c:6:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&set->set, 0, sizeof(set->set));
        ^~~~~~
/datasets/git/oidset.c:6:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&set->set, 0, sizeof(set->set));
        ^~~~~~
/datasets/git/oidset.c:7:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (initial_size)
                         ^
                          {
/datasets/git/oidset.c:19:6: warning: variable 'added' is not initialized [cppcoreguidelines-init-variables]
        int added;
            ^
                  = 0
/datasets/git/oidset.c:27:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pos == kh_end(&set->set))
                                     ^
                                      {
/datasets/git/oidset.c:45:28: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
                                 oidset_parse_tweak_fn fn, void *cbdata)
                                                       ^
/datasets/git/oidset.c:47:8: warning: variable 'fp' is not initialized [cppcoreguidelines-init-variables]
        FILE *fp;
              ^
                 = NULL
/datasets/git/oidset.c:47:8: warning: variable name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/oidset.c:48:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/oidset.c:52:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!fp)
                ^
                 {
/datasets/git/oidset.c:54:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (!strbuf_getline(&sb, fp)) {
        ^
/datasets/git/oidset.c:54:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'sb' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (!strbuf_getline(&sb, fp)) {
               ^
/datasets/git/oidset.c:55:15: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                const char *p;
                            ^
                              = NULL
/datasets/git/oidset.c:55:15: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/oidset.c:56:15: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
                const char *name;
                            ^
                                 = NULL
/datasets/git/oidset.c:64:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (name)
                         ^
                          {
/datasets/git/oidset.c:67:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!sb.len)
                            ^
                             {
/datasets/git/oidset.c:70:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (parse_oid_hex(sb.buf, &oid, &p) || *p != '\0')
                                                                  ^
                                                                   {
/datasets/git/oidset.c:72:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fn && fn(&oid, cbdata))
                                           ^
                                            {
/datasets/git/oidset.c:76:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ferror(fp))
                       ^
                        {
/datasets/git/oidset.c:78:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(fp);
        ^~~~~~~~~~
/datasets/git/oidset.c:78:2: note: cast the expression to void to silence this warning
/datasets/git/oidtree.c:9:8: warning: accessing fields in struct 'oidtree_iter_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct oidtree_iter_data {
       ^
/datasets/git/oidtree.c:9:8: note: use "__attribute__((aligned(32)))" to align struct 'oidtree_iter_data' to 32 bytes
/datasets/git/oidtree.c:17:35: warning: parameter name 'ot' is too short, expected at least 3 characters [readability-identifier-length]
void oidtree_init(struct oidtree *ot)
                                  ^
/datasets/git/oidtree.c:23:36: warning: parameter name 'ot' is too short, expected at least 3 characters [readability-identifier-length]
void oidtree_clear(struct oidtree *ot)
                                   ^
/datasets/git/oidtree.c:31:37: warning: parameter name 'ot' is too short, expected at least 3 characters [readability-identifier-length]
void oidtree_insert(struct oidtree *ot, const struct object_id *oid)
                                    ^
/datasets/git/oidtree.c:33:18: warning: variable 'on' is not initialized [cppcoreguidelines-init-variables]
        struct cb_node *on;
                        ^
                           = NULL
/datasets/git/oidtree.c:33:18: warning: variable name 'on' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/oidtree.c:34:19: warning: variable name 'k' is too short, expected at least 3 characters [readability-identifier-length]
        struct object_id k;
                         ^
/datasets/git/oidtree.c:36:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!oid->algo)
                       ^
                        {
/datasets/git/oidtree.c:46:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(on->k, &k, sizeof(k));
        ^~~~~~
/datasets/git/oidtree.c:46:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(on->k, &k, sizeof(k));
        ^~~~~~
/datasets/git/oidtree.c:58:38: warning: parameter name 'ot' is too short, expected at least 3 characters [readability-identifier-length]
int oidtree_contains(struct oidtree *ot, const struct object_id *oid)
                                     ^
/datasets/git/oidtree.c:60:19: warning: variable name 'k' is too short, expected at least 3 characters [readability-identifier-length]
        struct object_id k;
                         ^
/datasets/git/oidtree.c:65:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oid->algo == GIT_HASH_UNKNOWN)
                                          ^
                                           {
/datasets/git/oidtree.c:77:28: warning: variable name 'x' is too short, expected at least 3 characters [readability-identifier-length]
        struct oidtree_iter_data *x = arg;
                                  ^
/datasets/git/oidtree.c:78:19: warning: variable name 'k' is too short, expected at least 3 characters [readability-identifier-length]
        struct object_id k;
                         ^
/datasets/git/oidtree.c:81:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(&k, n->k, sizeof(k));
        ^~~~~~
/datasets/git/oidtree.c:81:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(&k, n->k, sizeof(k));
        ^~~~~~
/datasets/git/oidtree.c:83:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (x->algo != GIT_HASH_UNKNOWN && x->algo != k.algo)
                                                             ^
                                                              {
/datasets/git/oidtree.c:87:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((k.hash[*x->last_nibble_at] ^ x->last_byte) & 0xf0)
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/oidtree.c:87:53: warning: 0xf0 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if ((k.hash[*x->last_nibble_at] ^ x->last_byte) & 0xf0)
                                                                  ^
/datasets/git/oidtree.c:87:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((k.hash[*x->last_nibble_at] ^ x->last_byte) & 0xf0)
                                                                       ^
                                                                        {
/datasets/git/oidtree.c:94:35: warning: parameter name 'ot' is too short, expected at least 3 characters [readability-identifier-length]
void oidtree_each(struct oidtree *ot, const struct object_id *oid,
                                  ^
/datasets/git/oidtree.c:95:34: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
                        size_t oidhexsz, oidtree_iter fn, void *arg)
                                                      ^
/datasets/git/oidtree.c:98:27: warning: variable name 'x' is too short, expected at least 3 characters [readability-identifier-length]
        struct oidtree_iter_data x = { 0 };
                                 ^
/datasets/git/oidtree.c:99:21: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        assert(oidhexsz <= GIT_MAX_HEXSZ);
                           ^
/datasets/git/./hash.h:118:23: note: expanded from macro 'GIT_MAX_HEXSZ'
#define GIT_MAX_HEXSZ GIT_SHA256_HEXSZ
                      ^
/datasets/git/./hash.h:112:27: note: expanded from macro 'GIT_SHA256_HEXSZ'
#define GIT_SHA256_HEXSZ (2 * GIT_SHA256_RAWSZ)
                          ^
/datasets/git/oidtree.c:99:21: note: make conversion explicit to silence this warning
        assert(oidhexsz <= GIT_MAX_HEXSZ);
                           ^
/datasets/git/./hash.h:118:23: note: expanded from macro 'GIT_MAX_HEXSZ'
#define GIT_MAX_HEXSZ GIT_SHA256_HEXSZ
                      ^
/datasets/git/./hash.h:112:27: note: expanded from macro 'GIT_SHA256_HEXSZ'
#define GIT_SHA256_HEXSZ (2 * GIT_SHA256_RAWSZ)
                          ^
/usr/include/assert.h:108:20: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                   ^~~~
/datasets/git/oidtree.c:99:21: note: perform multiplication in a wider type
        assert(oidhexsz <= GIT_MAX_HEXSZ);
                           ^
/datasets/git/./hash.h:118:23: note: expanded from macro 'GIT_MAX_HEXSZ'
#define GIT_MAX_HEXSZ GIT_SHA256_HEXSZ
                      ^~~~~~~~~~~~~~~~
/datasets/git/./hash.h:112:27: note: expanded from macro 'GIT_SHA256_HEXSZ'
#define GIT_SHA256_HEXSZ (2 * GIT_SHA256_RAWSZ)
                          ^
/usr/include/assert.h:108:20: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                   ^~~~
/datasets/git/oidtree.c:104:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (oidhexsz & 1) {
            ^          ~
/datasets/git/pack-bitmap-write.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "object-store.h"
^        ~~~~~~~~~~~~~~~~
         "commit-reach.h"
/datasets/git/pack-bitmap-write.c:17:8: warning: accessing fields in struct 'bitmapped_commit' is inefficient due to padding; only needs 36 bytes but is using 40 bytes [altera-struct-pack-align]
struct bitmapped_commit {
       ^
/datasets/git/pack-bitmap-write.c:17:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'bitmapped_commit'
/datasets/git/pack-bitmap-write.c:17:8: warning: accessing fields in struct 'bitmapped_commit' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct bitmapped_commit {
       ^
/datasets/git/pack-bitmap-write.c:17:8: note: use "__attribute__((aligned(64)))" to align struct 'bitmapped_commit' to 64 bytes
/datasets/git/pack-bitmap-write.c:26:8: warning: accessing fields in struct 'bitmap_writer' is inefficient due to padding; only needs 108 bytes but is using 112 bytes [altera-struct-pack-align]
struct bitmap_writer {
       ^
/datasets/git/pack-bitmap-write.c:26:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'bitmap_writer'
/datasets/git/pack-bitmap-write.c:26:8: warning: accessing fields in struct 'bitmap_writer' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct bitmap_writer {
       ^
/datasets/git/pack-bitmap-write.c:26:8: note: use "__attribute__((aligned(128)))" to align struct 'bitmap_writer' to 128 bytes
/datasets/git/pack-bitmap-write.c:43:29: warning: variable 'writer' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct bitmap_writer writer;
                            ^
/datasets/git/pack-bitmap-write.c:57:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i;
                 ^
                   = 0
/datasets/git/pack-bitmap-write.c:57:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-bitmap-write.c:65:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < index_nr; ++i) {
        ^
/datasets/git/pack-bitmap-write.c:67:20: warning: variable 'real_type' is not initialized [cppcoreguidelines-init-variables]
                enum object_type real_type;
                                 ^
/datasets/git/pack-bitmap-write.c:117:52: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                writer.selected_alloc = (writer.selected_alloc + 32) * 2;
                                                                 ^
/datasets/git/pack-bitmap-write.c:133:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (found)
                          ^
                           {
/datasets/git/pack-bitmap-write.c:140:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (found)
                  ^
                   {
/datasets/git/pack-bitmap-write.c:149:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, next = 0;
        ^~~~~~~~~~~~~~~~
/datasets/git/pack-bitmap-write.c:149:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, next = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-bitmap-write.c:149:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-bitmap-write.c:156:23: warning: variable 'test_xor' is not initialized [cppcoreguidelines-init-variables]
                struct ewah_bitmap *test_xor;
                                    ^
                                             = NULL
/datasets/git/pack-bitmap-write.c:158:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 1; i <= MAX_XOR_OFFSET_SEARCH; ++i) {
                ^
/datasets/git/pack-bitmap-write.c:161:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (curr < 0)
                                     ^
                                      {
/datasets/git/pack-bitmap-write.c:168:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (best_bitmap != stored->bitmap)
                                                                  ^
                                                                   {
/datasets/git/pack-bitmap-write.c:185:8: warning: accessing fields in struct 'bb_commit' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct bb_commit {
       ^
/datasets/git/pack-bitmap-write.c:185:8: note: use "__attribute__((aligned(64)))" to align struct 'bb_commit' to 64 bytes
/datasets/git/pack-bitmap-write.c:194:1: warning: backward branch (for loop) is ID-dependent due to member reference to 'slab_size' and may cause performance degradation [altera-id-dependent-backward-branch]
define_commit_slab(bb_data, struct bb_commit);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:48:15: note: expanded from macro 'implement_commit_slab'
                for (j = 0; j < s->slab_size; j++)                      \
                            ^
/datasets/git/pack-bitmap-write.c:194:1: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
define_commit_slab(bb_data, struct bb_commit);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:68:27: note: expanded from macro 'implement_commit_slab'
                for (i = s->slab_count; i <= nth_slab; i++)             \
                                        ^
/datasets/git/pack-bitmap-write.c:194:1: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
define_commit_slab(bb_data, struct bb_commit);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:35:2: note: expanded from macro 'implement_commit_slab'
        for (i = 0; i < s->slab_count; i++)                             \
        ^
/datasets/git/pack-bitmap-write.c:194:1: warning: result of multiplication in type 'unsigned int' is used as a pointer offset after an implicit widening conversion to type 'size_t' [bugprone-implicit-widening-of-multiplication-result]
define_commit_slab(bb_data, struct bb_commit);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:49:13: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                 ^
/datasets/git/pack-bitmap-write.c:194:1: note: make conversion explicit to silence this warning
define_commit_slab(bb_data, struct bb_commit);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:49:24: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                            ^~~~~~~~~~~~~
/datasets/git/pack-bitmap-write.c:194:1: note: perform multiplication in a wider type
define_commit_slab(bb_data, struct bb_commit);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:49:24: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                            ^
/datasets/git/pack-bitmap-write.c:194:1: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
define_commit_slab(bb_data, struct bb_commit);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:67:3: note: expanded from macro 'implement_commit_slab'
                REALLOC_ARRAY(s->slab, nth_slab + 1);                   \
                ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/pack-bitmap-write.c:194:1: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(bb_data, struct bb_commit);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:55:30: note: expanded from macro 'implement_commit_slab'
                                                  const struct commit *c, \
                                                                       ^
/datasets/git/pack-bitmap-write.c:194:1: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(bb_data, struct bb_commit);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:14:61: note: expanded from macro 'implement_commit_slab'
scope void init_ ##slabname## _with_stride(struct slabname *s,          \
                                                            ^
/datasets/git/pack-bitmap-write.c:194:1: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(bb_data, struct bb_commit);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:34:15: note: expanded from macro 'implement_commit_slab'
        unsigned int i;                                                 \
                     ^
/datasets/git/pack-bitmap-write.c:194:1: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(bb_data, struct bb_commit);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:45:16: note: expanded from macro 'implement_commit_slab'
                unsigned int j;                                         \
                             ^
/datasets/git/pack-bitmap-write.c:194:1: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
define_commit_slab(bb_data, struct bb_commit);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:58:2: note: expanded from macro 'implement_commit_slab'
        unsigned int nth_slab, nth_slot;                                \
        ^
/datasets/git/pack-bitmap-write.c:194:1: note: inferred assignment of ID-dependent value from ID-dependent member slab_count [altera-id-dependent-backward-branch]
define_commit_slab(bb_data, struct bb_commit);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:64:3: note: expanded from macro 'implement_commit_slab'
                unsigned int i;                                         \
                ^
/datasets/git/pack-bitmap-write.c:194:20: warning: accessing fields in struct 'bb_data' is inefficient due to padding; only needs 20 bytes but is using 24 bytes [altera-struct-pack-align]
define_commit_slab(bb_data, struct bb_commit);
                   ^
/datasets/git/pack-bitmap-write.c:194:20: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'bb_data'
/datasets/git/pack-bitmap-write.c:194:20: warning: accessing fields in struct 'bb_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
define_commit_slab(bb_data, struct bb_commit);
                   ^
/datasets/git/pack-bitmap-write.c:194:20: note: use "__attribute__((aligned(32)))" to align struct 'bb_data' to 32 bytes
/datasets/git/pack-bitmap-write.c:196:8: warning: accessing fields in struct 'bitmap_builder' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct bitmap_builder {
       ^
/datasets/git/pack-bitmap-write.c:196:8: note: use "__attribute__((aligned(64)))" to align struct 'bitmap_builder' to 64 bytes
/datasets/git/pack-bitmap-write.c:202:13: warning: function 'bitmap_builder_init' has cognitive complexity of 61 (threshold 25) [readability-function-cognitive-complexity]
static void bitmap_builder_init(struct bitmap_builder *bb,
            ^
/datasets/git/pack-bitmap-write.c:220:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < writer->selected_nr; i++) {
        ^
/datasets/git/pack-bitmap-write.c:234:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (prepare_revision_walk(&revs))
        ^
/datasets/git/pack-bitmap-write.c:237:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while ((commit = get_revision(&revs))) {
        ^
/datasets/git/pack-bitmap-write.c:253:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!c_ent->commit_mask)
                ^
/datasets/git/pack-bitmap-write.c:256:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (old_bitmap && bitmap_for_commit(old_bitmap, commit)) {
                ^
/datasets/git/pack-bitmap-write.c:256:18: note: +1
                if (old_bitmap && bitmap_for_commit(old_bitmap, commit)) {
                               ^
/datasets/git/pack-bitmap-write.c:267:4: note: +1
                        goto next;
                        ^
/datasets/git/pack-bitmap-write.c:270:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (c_ent->maximal) {
                ^
/datasets/git/pack-bitmap-write.c:272:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        ALLOC_GROW(bb->commits, bb->commits_nr + 1, bb->commits_alloc);
                        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/pack-bitmap-write.c:272:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        ALLOC_GROW(bb->commits, bb->commits_nr + 1, bb->commits_alloc);
                        ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/pack-bitmap-write.c:272:4: note: +5, including nesting penalty of 4, nesting level increased to 5
                        ALLOC_GROW(bb->commits, bb->commits_nr + 1, bb->commits_alloc);
                        ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/pack-bitmap-write.c:272:4: note: +1, nesting level increased to 5
                        ALLOC_GROW(bb->commits, bb->commits_nr + 1, bb->commits_alloc);
                        ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/pack-bitmap-write.c:276:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (p) {
                ^
/datasets/git/pack-bitmap-write.c:280:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!p_ent->commit_mask) {
                        ^
/datasets/git/pack-bitmap-write.c:284:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/pack-bitmap-write.c:289:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!c_not_p)
                        ^
/datasets/git/pack-bitmap-write.c:294:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (p_not_c)
                        ^
/datasets/git/pack-bitmap-write.c:296:4: note: +1, nesting level increased to 3
                        else {
                        ^
/datasets/git/pack-bitmap-write.c:302:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (c_ent->maximal) {
                        ^
/datasets/git/pack-bitmap-write.c:304:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/pack-bitmap-write.c:307:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                for (; cc; cc = cc->next) {
                                ^
/datasets/git/pack-bitmap-write.c:308:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (!commit_list_contains(cc->item, p_ent->reverse_edges))
                                        ^
/datasets/git/pack-bitmap-write.c:319:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (r = reusable; r; r = r->next) {
        ^
/datasets/git/pack-bitmap-write.c:320:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                ALLOC_GROW(bb->commits, bb->commits_nr + 1, bb->commits_alloc);
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/pack-bitmap-write.c:320:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                ALLOC_GROW(bb->commits, bb->commits_nr + 1, bb->commits_alloc);
                ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/pack-bitmap-write.c:320:3: note: +4, including nesting penalty of 3, nesting level increased to 4
                ALLOC_GROW(bb->commits, bb->commits_nr + 1, bb->commits_alloc);
                ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/pack-bitmap-write.c:320:3: note: +1, nesting level increased to 4
                ALLOC_GROW(bb->commits, bb->commits_nr + 1, bb->commits_alloc);
                ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/pack-bitmap-write.c:202:56: warning: parameter name 'bb' is too short, expected at least 3 characters [readability-identifier-length]
static void bitmap_builder_init(struct bitmap_builder *bb,
                                                       ^
/datasets/git/pack-bitmap-write.c:207:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/pack-bitmap-write.c:209:22: warning: variable 'r' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *r;
                            ^
                              = NULL
/datasets/git/pack-bitmap-write.c:209:22: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-bitmap-write.c:210:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned int i, num_maximal = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-bitmap-write.c:210:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i, num_maximal = 0;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-bitmap-write.c:210:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-bitmap-write.c:212:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(bb, 0, sizeof(*bb));
        ^~~~~~
/datasets/git/pack-bitmap-write.c:212:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(bb, 0, sizeof(*bb));
        ^~~~~~
/datasets/git/pack-bitmap-write.c:220:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < writer->selected_nr; i++) {
        ^
/datasets/git/pack-bitmap-write.c:221:18: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                struct commit *c = writer->selected[i].commit;
                               ^
/datasets/git/pack-bitmap-write.c:234:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prepare_revision_walk(&revs))
                                         ^
                                          {
/datasets/git/pack-bitmap-write.c:237:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'commit' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((commit = get_revision(&revs))) {
               ^
/datasets/git/pack-bitmap-write.c:209:2: note: inferred assignment of ID-dependent value from ID-dependent 
        struct commit_list *r;
        ^
/datasets/git/pack-bitmap-write.c:238:23: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct commit_list *p = commit->parents;
                                    ^
/datasets/git/pack-bitmap-write.c:239:21: warning: variable 'c_ent' is not initialized [cppcoreguidelines-init-variables]
                struct bb_commit *c_ent;
                                  ^
                                        = NULL
/datasets/git/pack-bitmap-write.c:253:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!c_ent->commit_mask)
                                        ^
                                         {
/datasets/git/pack-bitmap-write.c:272:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        ALLOC_GROW(bb->commits, bb->commits_nr + 1, bb->commits_alloc);
                        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/pack-bitmap-write.c:272:4: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                        ALLOC_GROW(bb->commits, bb->commits_nr + 1, bb->commits_alloc);
                        ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/pack-bitmap-write.c:278:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        int c_not_p, p_not_c;
                        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-bitmap-write.c:278:8: warning: variable 'c_not_p' is not initialized [cppcoreguidelines-init-variables]
                        int c_not_p, p_not_c;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-bitmap-write.c:278:17: warning: variable 'p_not_c' is not initialized [cppcoreguidelines-init-variables]
                        int c_not_p, p_not_c;
                                     ^
/datasets/git/pack-bitmap-write.c:305:5: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                                struct commit_list *cc = c_ent->reverse_edges;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-bitmap-write.c:289:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!c_not_p)
                                     ^
                                      {
/datasets/git/pack-bitmap-write.c:294:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (p_not_c)
                                    ^
                                     {
/datasets/git/pack-bitmap-write.c:305:25: warning: variable name 'cc' is too short, expected at least 3 characters [readability-identifier-length]
                                struct commit_list *cc = c_ent->reverse_edges;
                                                    ^
/datasets/git/pack-bitmap-write.c:307:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                for (; cc; cc = cc->next) {
                                ^
/datasets/git/pack-bitmap-write.c:307:12: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cc' and may cause performance degradation [altera-id-dependent-backward-branch]
                                for (; cc; cc = cc->next) {
                                       ^
/datasets/git/pack-bitmap-write.c:308:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        if (!commit_list_contains(cc->item, p_ent->reverse_edges))
                                                                                                  ^
                                                                                                   {
/datasets/git/pack-bitmap-write.c:319:21: warning: backward branch (for loop) is ID-dependent due to variable reference to 'r' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (r = reusable; r; r = r->next) {
                           ^
/datasets/git/pack-bitmap-write.c:320:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                ALLOC_GROW(bb->commits, bb->commits_nr + 1, bb->commits_alloc);
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/pack-bitmap-write.c:320:3: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                ALLOC_GROW(bb->commits, bb->commits_nr + 1, bb->commits_alloc);
                ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/pack-bitmap-write.c:333:57: warning: parameter name 'bb' is too short, expected at least 3 characters [readability-identifier-length]
static void bitmap_builder_clear(struct bitmap_builder *bb)
                                                        ^
/datasets/git/pack-bitmap-write.c:340:12: warning: function 'fill_bitmap_tree' is within a recursive call chain [misc-no-recursion]
static int fill_bitmap_tree(struct bitmap *bitmap,
           ^
/datasets/git/pack-bitmap-write.c:340:12: note: example recursive call chain, starting from function 'fill_bitmap_tree'
/datasets/git/pack-bitmap-write.c:367:8: note: Frame #1: function 'fill_bitmap_tree' calls function 'fill_bitmap_tree' here:
                        if (fill_bitmap_tree(bitmap,
                            ^
/datasets/git/pack-bitmap-write.c:367:8: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/pack-bitmap-write.c:343:6: warning: variable 'found' is not initialized [cppcoreguidelines-init-variables]
        int found;
            ^
                  = 0
/datasets/git/pack-bitmap-write.c:344:11: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        uint32_t pos;
                 ^
                     = 0
/datasets/git/pack-bitmap-write.c:353:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!found)
                   ^
                    {
/datasets/git/pack-bitmap-write.c:355:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (bitmap_get(bitmap, pos))
                                    ^
                                     {
/datasets/git/pack-bitmap-write.c:359:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_tree(tree) < 0)
                                 ^
                                  {
/datasets/git/pack-bitmap-write.c:364:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (tree_entry(&desc, &entry)) {
        ^
/datasets/git/pack-bitmap-write.c:368:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                             lookup_tree(the_repository, &entry.oid)) < 0)
                                                                                          ^
                                                                                           {
/datasets/git/pack-bitmap-write.c:373:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!found)
                                   ^
                                    {
/datasets/git/pack-bitmap-write.c:387:12: warning: variable 'reused_bitmaps_nr' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int reused_bitmaps_nr;
           ^
/datasets/git/pack-bitmap-write.c:396:6: warning: variable 'found' is not initialized [cppcoreguidelines-init-variables]
        int found;
            ^
                  = 0
/datasets/git/pack-bitmap-write.c:397:11: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        uint32_t pos;
                 ^
                     = 0
/datasets/git/pack-bitmap-write.c:398:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ent->bitmap)
                         ^
                          {
/datasets/git/pack-bitmap-write.c:404:23: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                struct commit_list *p;
                                    ^
                                      = NULL
/datasets/git/pack-bitmap-write.c:404:23: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-bitmap-write.c:405:18: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                struct commit *c = prio_queue_get(queue);
                               ^
/datasets/git/pack-bitmap-write.c:425:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!found)
                           ^
                            {
/datasets/git/pack-bitmap-write.c:430:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (p = c->parents; p; p = p->next) {
                ^
/datasets/git/pack-bitmap-write.c:430:24: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (p = c->parents; p; p = p->next) {
                                     ^
/datasets/git/pack-bitmap-write.c:432:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!found)
                                   ^
                                    {
/datasets/git/pack-bitmap-write.c:441:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (tree_queue->nr) {
        ^
/datasets/git/pack-bitmap-write.c:443:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                     prio_queue_get(tree_queue)) < 0)
                                                                     ^
                                                                      {
/datasets/git/pack-bitmap-write.c:452:11: warning: variable 'hash_pos' is not initialized [cppcoreguidelines-init-variables]
        khiter_t hash_pos;
                 ^
                          = 0
/datasets/git/pack-bitmap-write.c:453:6: warning: variable 'hash_ret' is not initialized [cppcoreguidelines-init-variables]
        int hash_ret;
            ^
                     = 0
/datasets/git/pack-bitmap-write.c:458:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (hash_ret == 0)
                          ^
                           {
/datasets/git/pack-bitmap-write.c:466:24: warning: variable name 'bb' is too short, expected at least 3 characters [readability-identifier-length]
        struct bitmap_builder bb;
                              ^
/datasets/git/pack-bitmap-write.c:467:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i;
               ^
                 = 0
/datasets/git/pack-bitmap-write.c:467:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-bitmap-write.c:471:23: warning: variable 'old_bitmap' is not initialized [cppcoreguidelines-init-variables]
        struct bitmap_index *old_bitmap;
                             ^
                                        = NULL
/datasets/git/pack-bitmap-write.c:472:12: warning: variable 'mapping' is not initialized [cppcoreguidelines-init-variables]
        uint32_t *mapping;
                  ^
                          = NULL
/datasets/git/pack-bitmap-write.c:493:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                struct commit *child;
                ^
/datasets/git/pack-bitmap-write.c:478:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (writer.show_progress)
                                 ^
                                  {
/datasets/git/pack-bitmap-write.c:484:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (old_bitmap)
                       ^
                        {
/datasets/git/pack-bitmap-write.c:486:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/pack-bitmap-write.c:490:26: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = bb.commits_nr; i > 0; i--) {
                                ^
/datasets/git/pack-bitmap-write.c:493:18: warning: variable 'child' is not initialized [cppcoreguidelines-init-variables]
                struct commit *child;
                               ^
                                     = NULL
/datasets/git/pack-bitmap-write.c:508:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while ((child = pop_commit(&ent->reverse_edges))) {
                ^
/datasets/git/pack-bitmap-write.c:508:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'child' and may cause performance degradation [altera-id-dependent-backward-branch]
                while ((child = pop_commit(&ent->reverse_edges))) {
                       ^
/datasets/git/pack-bitmap-write.c:512:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (child_ent->bitmap)
                                              ^
                                               {
/datasets/git/pack-bitmap-write.c:514:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (reused)
                                        ^
                                         {
/datasets/git/pack-bitmap-write.c:521:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!reused)
                            ^
                             {
/datasets/git/pack-bitmap-write.c:538:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (closed)
                   ^
                    {
/datasets/git/pack-bitmap-write.c:554:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned int offset, next;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-bitmap-write.c:554:15: warning: variable 'offset' is not initialized [cppcoreguidelines-init-variables]
        unsigned int offset, next;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-bitmap-write.c:554:23: warning: variable 'next' is not initialized [cppcoreguidelines-init-variables]
        unsigned int offset, next;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-bitmap-write.c:556:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (idx <= MUST_REGION)
                               ^
                                {
/datasets/git/pack-bitmap-write.c:570:37: warning: parameter name '_a' is too short, expected at least 3 characters [readability-identifier-length]
static int date_compare(const void *_a, const void *_b)
                                    ^
/datasets/git/pack-bitmap-write.c:570:53: warning: parameter name '_b' is too short, expected at least 3 characters [readability-identifier-length]
static int date_compare(const void *_a, const void *_b)
                                                    ^
/datasets/git/pack-bitmap-write.c:572:17: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        struct commit *a = *(struct commit **)_a;
                       ^
/datasets/git/pack-bitmap-write.c:573:17: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        struct commit *b = *(struct commit **)_b;
                       ^
/datasets/git/pack-bitmap-write.c:574:9: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return (long)b->date - (long)a->date;
               ^
/datasets/git/pack-bitmap-write.c:578:7: warning: 2 adjacent parameters of 'bitmap_writer_select_commits' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                  unsigned int indexed_commits_nr,
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-bitmap-write.c:578:20: note: the first parameter in the range is 'indexed_commits_nr'
                                  unsigned int indexed_commits_nr,
                                               ^~~~~~~~~~~~~~~~~~
/datasets/git/pack-bitmap-write.c:579:11: note: the last parameter in the range is 'max_bitmaps'
                                  int max_bitmaps)
                                      ^~~~~~~~~~~
/datasets/git/pack-bitmap-write.c:579:7: note: 'unsigned int' and 'int' may be implicitly converted
                                  int max_bitmaps)
                                  ^
/datasets/git/pack-bitmap-write.c:581:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned int i = 0, j, next;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-bitmap-write.c:581:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned int i = 0, j, next;
                     ^
/datasets/git/pack-bitmap-write.c:581:22: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i = 0, j, next;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-bitmap-write.c:581:22: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-bitmap-write.c:581:25: warning: variable 'next' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i = 0, j, next;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-bitmap-write.c:583:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        QSORT(indexed_commits, indexed_commits_nr, date_compare);
        ^
/datasets/git/./git-compat-util.h:1304:56: note: expanded from macro 'QSORT'
#define QSORT(base, n, compar) sane_qsort((base), (n), sizeof(*(base)), compar)
                                                       ^
/datasets/git/pack-bitmap-write.c:585:27: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (indexed_commits_nr < 100) {
                                 ^
/datasets/git/pack-bitmap-write.c:586:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < indexed_commits_nr; ++i)
                ^
/datasets/git/pack-bitmap-write.c:586:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < indexed_commits_nr; ++i)
                            ^
/datasets/git/pack-bitmap-write.c:586:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < indexed_commits_nr; ++i)
                                                        ^
                                                         {
/datasets/git/pack-bitmap-write.c:591:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (writer.show_progress)
                                 ^
                                  {
/datasets/git/pack-bitmap-write.c:599:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (i + next >= indexed_commits_nr)
                                                   ^
                                                    {
/datasets/git/pack-bitmap-write.c:612:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (j = 0; j <= next; ++j) {
                        ^
/datasets/git/pack-bitmap-write.c:612:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'next' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (j = 0; j <= next; ++j) {
                                    ^
/datasets/git/pack-bitmap-write.c:613:20: warning: variable name 'cm' is too short, expected at least 3 characters [readability-identifier-length]
                                struct commit *cm = indexed_commits[i + j];
                                               ^
/datasets/git/pack-bitmap-write.c:615:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if ((cm->object.flags & NEEDS_BITMAP) != 0) {
                                                        ^
/datasets/git/./pack-bitmap.h:24:23: note: expanded from macro 'NEEDS_BITMAP'
#define NEEDS_BITMAP (1u<<22)
                      ^   ~~
/datasets/git/pack-bitmap-write.c:620:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (cm->parents && cm->parents->next)
                                                                     ^
                                                                      {
/datasets/git/pack-bitmap-write.c:635:40: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
static int hashwrite_ewah_helper(void *f, const void *buf, size_t len)
                                       ^
/datasets/git/pack-bitmap-write.c:639:9: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return len;
               ^
/datasets/git/pack-bitmap-write.c:645:49: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
static inline void dump_bitmap(struct hashfile *f, struct ewah_bitmap *bitmap)
                                                ^
/datasets/git/pack-bitmap-write.c:647:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ewah_serialize_to(bitmap, hashwrite_ewah_helper, f) < 0)
                                                                    ^
                                                                     {
/datasets/git/pack-bitmap-write.c:657:56: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
static void write_selected_commits_v1(struct hashfile *f,
                                                       ^
/datasets/git/pack-bitmap-write.c:36:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        unsigned int selected_nr, selected_alloc;
        ^
/datasets/git/pack-bitmap-write.c:661:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/pack-bitmap-write.c:661:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-bitmap-write.c:663:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < writer.selected_nr; ++i) {
        ^
/datasets/git/pack-bitmap-write.c:663:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'selected_nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < writer.selected_nr; ++i) {
                    ^
/datasets/git/pack-bitmap-write.c:666:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (offsets)
                            ^
                             {
/datasets/git/pack-bitmap-write.c:677:39: warning: 2 adjacent parameters of 'table_cmp' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int table_cmp(const void *_va, const void *_vb, void *_data)
                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-bitmap-write.c:677:51: note: the first parameter in the range is '_vb'
static int table_cmp(const void *_va, const void *_vb, void *_data)
                                                  ^~~
/datasets/git/pack-bitmap-write.c:677:62: note: the last parameter in the range is '_data'
static int table_cmp(const void *_va, const void *_vb, void *_data)
                                                             ^~~~~
/datasets/git/pack-bitmap-write.c:677:56: note: 'const void *' and 'void *' may be implicitly converted
static int table_cmp(const void *_va, const void *_vb, void *_data)
                                                       ^
/datasets/git/pack-bitmap-write.c:680:11: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        uint32_t a = commit_positions[*(uint32_t *)_va];
                 ^
/datasets/git/pack-bitmap-write.c:681:11: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        uint32_t b = commit_positions[*(uint32_t *)_vb];
                 ^
/datasets/git/pack-bitmap-write.c:683:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (a > b)
                  ^
                   {
/datasets/git/pack-bitmap-write.c:685:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (a < b)
        ^~~~~~~~~~~~~~~
/datasets/git/pack-bitmap-write.c:685:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (a < b)
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-bitmap-write.c:691:49: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
static void write_lookup_table(struct hashfile *f,
                                                ^
/datasets/git/pack-bitmap-write.c:695:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i;
                 ^
                   = 0
/datasets/git/pack-bitmap-write.c:695:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-bitmap-write.c:696:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        uint32_t *table, *table_inv;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-bitmap-write.c:696:12: warning: variable 'table' is not initialized [cppcoreguidelines-init-variables]
        uint32_t *table, *table_inv;
                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-bitmap-write.c:696:20: warning: variable 'table_inv' is not initialized [cppcoreguidelines-init-variables]
        uint32_t *table, *table_inv;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-bitmap-write.c:701:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < writer.selected_nr; i++)
        ^
/datasets/git/pack-bitmap-write.c:701:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'selected_nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < writer.selected_nr; i++)
                    ^
/datasets/git/pack-bitmap-write.c:701:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < writer.selected_nr; i++)
                                                ^
                                                 {
/datasets/git/pack-bitmap-write.c:709:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        QSORT_S(table, writer.selected_nr, table_cmp, commit_positions);
        ^
/datasets/git/./git-compat-util.h:1321:39: note: expanded from macro 'QSORT_S'
#define QSORT_S(base, n, compar, ctx) do {                      \
                                      ^
/datasets/git/pack-bitmap-write.c:714:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < writer.selected_nr; i++)
        ^
/datasets/git/pack-bitmap-write.c:36:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        unsigned int selected_nr, selected_alloc;
        ^
/datasets/git/pack-bitmap-write.c:714:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'selected_nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < writer.selected_nr; i++)
                    ^
/datasets/git/pack-bitmap-write.c:714:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < writer.selected_nr; i++)
                                                ^
                                                 {
/datasets/git/pack-bitmap-write.c:718:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < writer.selected_nr; i++) {
        ^
/datasets/git/pack-bitmap-write.c:718:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'selected_nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < writer.selected_nr; i++) {
                    ^
/datasets/git/pack-bitmap-write.c:721:12: warning: variable 'xor_row' is not initialized [cppcoreguidelines-init-variables]
                uint32_t xor_row;
                         ^
                                 = 0
/datasets/git/pack-bitmap-write.c:737:14: warning: 0xffffffff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        xor_row = 0xffffffff;
                                  ^
/datasets/git/pack-bitmap-write.c:750:47: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
static void write_hash_cache(struct hashfile *f,
                                              ^
/datasets/git/pack-bitmap-write.c:754:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i;
                 ^
                   = 0
/datasets/git/pack-bitmap-write.c:754:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-bitmap-write.c:756:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < index_nr; ++i) {
        ^
/datasets/git/pack-bitmap-write.c:775:19: warning: variable 'f' is not initialized [cppcoreguidelines-init-variables]
        struct hashfile *f;
                         ^
                           = NULL
/datasets/git/pack-bitmap-write.c:775:19: warning: variable name 'f' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-bitmap-write.c:778:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i;
                 ^
                   = 0
/datasets/git/pack-bitmap-write.c:778:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-bitmap-write.c:782:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
        int fd = odb_mkstemp(&tmp_file, "pack/tmp_bitmap_XXXXXX");
            ^
/datasets/git/pack-bitmap-write.c:786:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(header.magic, BITMAP_IDX_SIGNATURE, sizeof(BITMAP_IDX_SIGNATURE));
        ^~~~~~
/datasets/git/pack-bitmap-write.c:786:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(header.magic, BITMAP_IDX_SIGNATURE, sizeof(BITMAP_IDX_SIGNATURE));
        ^~~~~~
/datasets/git/pack-bitmap-write.c:798:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (options & BITMAP_OPT_LOOKUP_TABLE)
            ^         ~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-bitmap-write.c:798:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (options & BITMAP_OPT_LOOKUP_TABLE)
                                              ^
                                               {
/datasets/git/pack-bitmap-write.c:803:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < writer.selected_nr; i++) {
        ^
/datasets/git/pack-bitmap-write.c:803:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'selected_nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < writer.selected_nr; i++) {
                    ^
/datasets/git/pack-bitmap-write.c:807:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (commit_pos < 0)
                                   ^
                                    {
/datasets/git/pack-bitmap-write.c:815:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (options & BITMAP_OPT_LOOKUP_TABLE)
            ^         ~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-bitmap-write.c:815:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (options & BITMAP_OPT_LOOKUP_TABLE)
                                              ^
                                               {
/datasets/git/pack-bitmap-write.c:818:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (options & BITMAP_OPT_HASH_CACHE)
            ^         ~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-bitmap-write.c:818:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (options & BITMAP_OPT_HASH_CACHE)
                                            ^
                                             {
/datasets/git/pack-bitmap-write.c:822:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                          CSUM_HASH_IN_STREAM | CSUM_FSYNC | CSUM_CLOSE);
                          ^
/datasets/git/./csum-file.h:37:29: note: expanded from macro 'CSUM_HASH_IN_STREAM'
#define CSUM_HASH_IN_STREAM     4
                                ^
/datasets/git/pack-bitmap-write.c:824:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (adjust_shared_perm(tmp_file.buf))
                                             ^
                                              {
/datasets/git/pack-bitmap-write.c:827:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (rename(tmp_file.buf, filename))
                                           ^
                                            {
/datasets/git/pack-bitmap.c:3:1: warning: #includes are not sorted properly [llvm-include-order]
#include "strbuf.h"
^        ~~~~~~~~~~
         "config.h"
/datasets/git/pack-bitmap.c:24:8: warning: accessing fields in struct 'stored_bitmap' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct stored_bitmap {
       ^
/datasets/git/pack-bitmap.c:24:8: note: use "__attribute__((aligned(64)))" to align struct 'stored_bitmap' to 64 bytes
/datasets/git/pack-bitmap.c:39:8: warning: accessing fields in struct 'bitmap_index' is inefficient due to padding; only needs 164 bytes but is using 176 bytes [altera-struct-pack-align]
struct bitmap_index {
       ^
/datasets/git/pack-bitmap.c:39:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'bitmap_index'
/datasets/git/pack-bitmap.c:39:8: warning: accessing fields in struct 'bitmap_index' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct bitmap_index {
       ^
/datasets/git/pack-bitmap.c:39:8: note: use "__attribute__((aligned(128)))" to align struct 'bitmap_index' to 128 bytes
/datasets/git/pack-bitmap.c:99:9: warning: accessing fields in struct 'eindex' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
        struct eindex {
               ^
/datasets/git/pack-bitmap.c:99:9: note: use "__attribute__((aligned(32)))" to align struct 'eindex' to 32 bytes
/datasets/git/pack-bitmap.c:116:28: warning: function 'lookup_stored_bitmap' is within a recursive call chain [misc-no-recursion]
static struct ewah_bitmap *lookup_stored_bitmap(struct stored_bitmap *st)
                           ^
/datasets/git/pack-bitmap.c:116:28: note: example recursive call chain, starting from function 'lookup_stored_bitmap'
/datasets/git/pack-bitmap.c:125:11: note: Frame #1: function 'lookup_stored_bitmap' calls function 'lookup_stored_bitmap' here:
        parent = lookup_stored_bitmap(st->xor);
                 ^
/datasets/git/pack-bitmap.c:125:11: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/pack-bitmap.c:116:71: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
static struct ewah_bitmap *lookup_stored_bitmap(struct stored_bitmap *st)
                                                                      ^
/datasets/git/pack-bitmap.c:118:22: warning: variable 'parent' is not initialized [cppcoreguidelines-init-variables]
        struct ewah_bitmap *parent;
                            ^
                                   = NULL
/datasets/git/pack-bitmap.c:119:22: warning: variable 'composed' is not initialized [cppcoreguidelines-init-variables]
        struct ewah_bitmap *composed;
                            ^
                                     = NULL
/datasets/git/pack-bitmap.c:121:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!st->xor)
                     ^
                      {
/datasets/git/pack-bitmap.c:141:22: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        struct ewah_bitmap *b = ewah_pool_new();
                            ^
/datasets/git/pack-bitmap.c:159:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (index->midx)
                        ^
                         {
/datasets/git/pack-bitmap.c:169:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (index->map_size < header_size + the_hash_algo->rawsz)
                                                                 ^
                                                                  {
/datasets/git/pack-bitmap.c:172:85: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (memcmp(header->magic, BITMAP_IDX_SIGNATURE, sizeof(BITMAP_IDX_SIGNATURE)) != 0)
                                                                                           ^
                                                                                            {
/datasets/git/pack-bitmap.c:176:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (index->version != 1)
                                ^
                                 {
/datasets/git/pack-bitmap.c:185:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((flags & BITMAP_OPT_FULL_DAG) == 0)
                     ^       ~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-bitmap.c:185:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((flags & BITMAP_OPT_FULL_DAG) == 0)
                                                       ^
                                                        {
/datasets/git/pack-bitmap.c:189:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flags & BITMAP_OPT_HASH_CACHE) {
                    ^       ~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-bitmap.c:190:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (cache_size > index_end - index->map - header_size)
                                                                              ^
                                                                               {
/datasets/git/pack-bitmap.c:196:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flags & BITMAP_OPT_LOOKUP_TABLE) {
                    ^       ~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-bitmap.c:199:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (table_size > index_end - index->map - header_size)
                                                                              ^
                                                                               {
/datasets/git/pack-bitmap.c:201:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (git_env_bool("GIT_TEST_READ_COMMIT_TABLE", 1))
                                                                          ^
                                                                           {
/datasets/git/pack-bitmap.c:203:4: warning: Value stored to 'index_end' is never read [clang-analyzer-deadcode.DeadStores]
                        index_end -= table_size;
                        ^            ~~~~~~~~~~
/datasets/git/pack-bitmap.c:203:4: note: Value stored to 'index_end' is never read
                        index_end -= table_size;
                        ^            ~~~~~~~~~~
/datasets/git/pack-bitmap.c:219:24: warning: variable 'stored' is not initialized [cppcoreguidelines-init-variables]
        struct stored_bitmap *stored;
                              ^
                                     = NULL
/datasets/git/pack-bitmap.c:220:11: warning: variable 'hash_pos' is not initialized [cppcoreguidelines-init-variables]
        khiter_t hash_pos;
                 ^
                          = 0
/datasets/git/pack-bitmap.c:221:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/pack-bitmap.c:257:1: warning: replace macro with enum [modernize-macro-to-enum]
#define MAX_XOR_OFFSET 160
^~~~~~~~
                       =
/datasets/git/pack-bitmap.c:257:9: warning: macro 'MAX_XOR_OFFSET' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define MAX_XOR_OFFSET 160
        ^
/datasets/git/pack-bitmap.c:263:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (index->midx)
                        ^
                         {
/datasets/git/pack-bitmap.c:270:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i;
                 ^
                   = 0
/datasets/git/pack-bitmap.c:270:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-bitmap.c:273:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < index->entry_count; ++i) {
        ^
/datasets/git/pack-bitmap.c:273:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'entry_count' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < index->entry_count; ++i) {
                    ^
/datasets/git/pack-bitmap.c:274:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int xor_offset, flags;
                ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-bitmap.c:274:7: warning: variable 'xor_offset' is not initialized [cppcoreguidelines-init-variables]
                int xor_offset, flags;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-bitmap.c:274:19: warning: variable 'flags' is not initialized [cppcoreguidelines-init-variables]
                int xor_offset, flags;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-bitmap.c:277:12: warning: variable 'commit_idx_pos' is not initialized [cppcoreguidelines-init-variables]
                uint32_t commit_idx_pos;
                         ^
                                        = 0
/datasets/git/pack-bitmap.c:280:42: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (index->map_size - index->map_pos < 6)
                                                       ^
/datasets/git/pack-bitmap.c:280:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (index->map_size - index->map_pos < 6)
                                                         ^
                                                          {
/datasets/git/pack-bitmap.c:287:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (nth_bitmap_object_oid(index, &oid, commit_idx_pos) < 0)
                                                                           ^
                                                                            {
/datasets/git/pack-bitmap.c:292:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!bitmap)
                            ^
                             {
/datasets/git/pack-bitmap.c:295:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (xor_offset > MAX_XOR_OFFSET || xor_offset > i)
                                                                  ^
                                                                   {
/datasets/git/pack-bitmap.c:301:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!xor_bitmap)
                                        ^
                                         {
/datasets/git/pack-bitmap.c:322:47: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
char *pack_bitmap_filename(struct packed_git *p)
                                              ^
/datasets/git/pack-bitmap.c:324:9: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        size_t len;
               ^
                   = 0
/datasets/git/pack-bitmap.c:326:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strip_suffix(p->pack_name, ".pack", &len))
                                                       ^
                                                        {
/datasets/git/pack-bitmap.c:334:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/pack-bitmap.c:336:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
        int fd = git_open(bitmap_name);
            ^
/datasets/git/pack-bitmap.c:337:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i;
                 ^
                   = 0
/datasets/git/pack-bitmap.c:337:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-bitmap.c:338:21: warning: variable 'preferred' is not initialized [cppcoreguidelines-init-variables]
        struct packed_git *preferred;
                           ^
                                     = NULL
/datasets/git/pack-bitmap.c:341:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (errno != ENOENT)
                                    ^
                                     {
/datasets/git/pack-bitmap.c:371:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (load_bitmap_header(bitmap_git) < 0)
                                               ^
                                                {
/datasets/git/pack-bitmap.c:384:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < bitmap_git->midx->num_packs; i++) {
        ^
/datasets/git/pack-bitmap.c:385:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (prepare_midx_pack(the_repository, bitmap_git->midx, i))
                                                                           ^
                                                                            {
/datasets/git/pack-bitmap.c:410:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/pack-bitmap.c:410:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-bitmap.c:411:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/pack-bitmap.c:412:8: warning: variable 'bitmap_name' is not initialized [cppcoreguidelines-init-variables]
        char *bitmap_name;
              ^
                          = NULL
/datasets/git/pack-bitmap.c:414:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (open_pack_index(packfile))
                                      ^
                                       {
/datasets/git/pack-bitmap.c:421:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (errno != ENOENT)
                                    ^
                                     {
/datasets/git/pack-bitmap.c:467:12: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                uint32_t i;
                         ^
                           = 0
/datasets/git/pack-bitmap.c:467:12: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-bitmap.c:468:7: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
                int ret;
                    ^
                        = 0
/datasets/git/pack-bitmap.c:477:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < bitmap_git->midx->num_packs; i++) {
                ^
/datasets/git/pack-bitmap.c:479:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ret)
                                ^
                                 {
/datasets/git/pack-bitmap.c:494:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (load_reverse_index(bitmap_git))
                                           ^
                                            {
/datasets/git/pack-bitmap.c:497:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if (!(bitmap_git->commits = read_bitmap_1(bitmap_git)) ||
              ^
/datasets/git/pack-bitmap.c:497:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/pack-bitmap.c:497:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/pack-bitmap.c:498:5: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                !(bitmap_git->trees = read_bitmap_1(bitmap_git)) ||
                  ^
/datasets/git/pack-bitmap.c:498:5: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/pack-bitmap.c:498:5: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/pack-bitmap.c:499:5: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                !(bitmap_git->blobs = read_bitmap_1(bitmap_git)) ||
                  ^
/datasets/git/pack-bitmap.c:499:5: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/pack-bitmap.c:499:5: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/pack-bitmap.c:500:5: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                !(bitmap_git->tags = read_bitmap_1(bitmap_git)))
                  ^
/datasets/git/pack-bitmap.c:500:5: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/pack-bitmap.c:500:5: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/pack-bitmap.c:500:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                !(bitmap_git->tags = read_bitmap_1(bitmap_git)))
                                                                ^
                                                                 {
/datasets/git/pack-bitmap.c:503:74: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!bitmap_git->table_lookup && load_bitmap_entries_v1(bitmap_git) < 0)
                                                                                ^
                                                                                 {
/datasets/git/pack-bitmap.c:522:48: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int open_pack_bitmap(struct repository *r,
                                               ^
/datasets/git/pack-bitmap.c:525:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct packed_git *p;
        ^
/datasets/git/pack-bitmap.c:525:21: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct packed_git *p;
                           ^
                             = NULL
/datasets/git/pack-bitmap.c:525:21: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-bitmap.c:530:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = get_all_packs(r); p; p = p->next) {
        ^
/datasets/git/pack-bitmap.c:530:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = get_all_packs(r); p; p = p->next) {
                                   ^
/datasets/git/pack-bitmap.c:531:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (open_pack_bitmap_1(bitmap_git, p) == 0)
                                                           ^
                                                            {
/datasets/git/pack-bitmap.c:538:48: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int open_midx_bitmap(struct repository *r,
                                               ^
/datasets/git/pack-bitmap.c:542:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct multi_pack_index *midx;
        ^
/datasets/git/pack-bitmap.c:542:27: warning: variable 'midx' is not initialized [cppcoreguidelines-init-variables]
        struct multi_pack_index *midx;
                                 ^
                                      = NULL
/datasets/git/pack-bitmap.c:546:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (midx = get_multi_pack_index(r); midx; midx = midx->next) {
        ^
/datasets/git/pack-bitmap.c:546:39: warning: backward branch (for loop) is ID-dependent due to variable reference to 'midx' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (midx = get_multi_pack_index(r); midx; midx = midx->next) {
                                             ^
/datasets/git/pack-bitmap.c:547:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!open_midx_bitmap_1(bitmap_git, midx))
                                                          ^
                                                           {
/datasets/git/pack-bitmap.c:553:43: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int open_bitmap(struct repository *r,
                                          ^
/datasets/git/pack-bitmap.c:558:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!open_midx_bitmap(r, bitmap_git))
                                             ^
                                              {
/datasets/git/pack-bitmap.c:563:60: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
struct bitmap_index *prepare_bitmap_git(struct repository *r)
                                                           ^
/datasets/git/pack-bitmap.c:567:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!open_bitmap(r, bitmap_git) && !load_bitmap(bitmap_git))
                                                                    ^
                                                                     {
/datasets/git/pack-bitmap.c:578:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!open_midx_bitmap_1(bitmap_git, midx) && !load_bitmap(bitmap_git))
                                                                              ^
                                                                               {
/datasets/git/pack-bitmap.c:585:8: warning: accessing fields in struct 'include_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct include_data {
       ^
/datasets/git/pack-bitmap.c:585:8: note: use "__attribute__((aligned(32)))" to align struct 'include_data' to 32 bytes
/datasets/git/pack-bitmap.c:591:8: warning: accessing fields in struct 'bitmap_lookup_table_triplet' is inefficient due to padding; only needs 16 bytes but is using 24 bytes [altera-struct-pack-align]
struct bitmap_lookup_table_triplet {
       ^
/datasets/git/pack-bitmap.c:591:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'bitmap_lookup_table_triplet'
/datasets/git/pack-bitmap.c:591:8: warning: accessing fields in struct 'bitmap_lookup_table_triplet' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct bitmap_lookup_table_triplet {
       ^
/datasets/git/pack-bitmap.c:591:8: note: use "__attribute__((aligned(16)))" to align struct 'bitmap_lookup_table_triplet' to 16 bytes
/datasets/git/pack-bitmap.c:597:8: warning: accessing fields in struct 'bitmap_lookup_table_xor_item' is inefficient due to padding; only needs 44 bytes but is using 48 bytes [altera-struct-pack-align]
struct bitmap_lookup_table_xor_item {
       ^
/datasets/git/pack-bitmap.c:597:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'bitmap_lookup_table_xor_item'
/datasets/git/pack-bitmap.c:597:8: warning: accessing fields in struct 'bitmap_lookup_table_xor_item' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct bitmap_lookup_table_xor_item {
       ^
/datasets/git/pack-bitmap.c:597:8: note: use "__attribute__((aligned(64)))" to align struct 'bitmap_lookup_table_xor_item' to 64 bytes
/datasets/git/pack-bitmap.c:609:34: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                                                      const unsigned char *p)
                                                                           ^
/datasets/git/pack-bitmap.c:611:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!triplet)
                     ^
                      {
/datasets/git/pack-bitmap.c:630:17: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned char *p = NULL;
                       ^
/datasets/git/pack-bitmap.c:631:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pos >= bitmap_git->entry_count)
                                           ^
                                            {
/datasets/git/pack-bitmap.c:645:24: warning: 2 adjacent parameters of 'triplet_cmp' of similar type ('const void *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int triplet_cmp(const void *commit_pos, const void *table_entry)
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-bitmap.c:645:36: note: the first parameter in the range is 'commit_pos'
static int triplet_cmp(const void *commit_pos, const void *table_entry)
                                   ^~~~~~~~~~
/datasets/git/pack-bitmap.c:645:60: note: the last parameter in the range is 'table_entry'
static int triplet_cmp(const void *commit_pos, const void *table_entry)
                                                           ^~~~~~~~~~~
/datasets/git/pack-bitmap.c:648:11: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        uint32_t a = *(uint32_t *)commit_pos;
                 ^
/datasets/git/pack-bitmap.c:649:11: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        uint32_t b = get_be32(table_entry);
                 ^
/datasets/git/pack-bitmap.c:650:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (a > b)
                  ^
                   {
/datasets/git/pack-bitmap.c:652:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (a < b)
        ^~~~~~~~~~~~~~~
/datasets/git/pack-bitmap.c:652:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (a < b)
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-bitmap.c:662:6: warning: variable 'found' is not initialized [cppcoreguidelines-init-variables]
        int found;
            ^
                  = 0
/datasets/git/pack-bitmap.c:664:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (bitmap_is_midx(bitmap_git))
                                       ^
                                        {
/datasets/git/pack-bitmap.c:666:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/pack-bitmap.c:682:17: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned char *p = bsearch(&commit_pos, bitmap_git->table_lookup, bitmap_git->entry_count,
                       ^
/datasets/git/pack-bitmap.c:685:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!p)
               ^
                {
/datasets/git/pack-bitmap.c:691:30: warning: function 'lazy_bitmap_for_commit' has cognitive complexity of 34 (threshold 25) [readability-function-cognitive-complexity]
static struct stored_bitmap *lazy_bitmap_for_commit(struct bitmap_index *bitmap_git,
                             ^
/datasets/git/pack-bitmap.c:709:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (is_corrupt)
        ^
/datasets/git/pack-bitmap.c:712:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!bitmap_bsearch_pos(bitmap_git, oid, &commit_pos))
        ^
/datasets/git/pack-bitmap.c:715:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (bitmap_bsearch_triplet_by_pos(commit_pos, bitmap_git, &triplet) < 0)
        ^
/datasets/git/pack-bitmap.c:722:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (xor_row != 0xffffffff) {
        ^
/datasets/git/pack-bitmap.c:723:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                ALLOC_GROW(xor_items, xor_items_nr + 1, xor_items_alloc);
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/pack-bitmap.c:723:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                ALLOC_GROW(xor_items, xor_items_nr + 1, xor_items_alloc);
                ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/pack-bitmap.c:723:3: note: +4, including nesting penalty of 3, nesting level increased to 4
                ALLOC_GROW(xor_items, xor_items_nr + 1, xor_items_alloc);
                ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/pack-bitmap.c:723:3: note: +1, nesting level increased to 4
                ALLOC_GROW(xor_items, xor_items_nr + 1, xor_items_alloc);
                ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/pack-bitmap.c:725:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (xor_items_nr + 1 >= bitmap_git->entry_count) {
                ^
/datasets/git/pack-bitmap.c:727:4: note: +1
                        goto corrupt;
                        ^
/datasets/git/pack-bitmap.c:730:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (bitmap_lookup_table_get_triplet(bitmap_git, xor_row, &triplet) < 0)
                ^
/datasets/git/pack-bitmap.c:736:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (nth_bitmap_object_oid(bitmap_git, &xor_item->oid, triplet.commit_pos) < 0) {
                ^
/datasets/git/pack-bitmap.c:739:4: note: +1
                        goto corrupt;
                        ^
/datasets/git/pack-bitmap.c:751:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (hash_pos < kh_end(bitmap_git->bitmaps) &&
                ^
/datasets/git/pack-bitmap.c:751:46: note: +1
                if (hash_pos < kh_end(bitmap_git->bitmaps) &&
                                                           ^
/datasets/git/pack-bitmap.c:758:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (xor_items_nr) {
        ^
/datasets/git/pack-bitmap.c:761:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (bitmap_git->map_size - bitmap_git->map_pos < bitmap_header_size) {
                ^
/datasets/git/pack-bitmap.c:764:4: note: +1
                        goto corrupt;
                        ^
/datasets/git/pack-bitmap.c:771:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!bitmap)
                ^
/datasets/git/pack-bitmap.c:779:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (bitmap_git->map_size - bitmap_git->map_pos < bitmap_header_size) {
        ^
/datasets/git/pack-bitmap.c:782:3: note: +1
                goto corrupt;
                ^
/datasets/git/pack-bitmap.c:812:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!bitmap)
        ^
/datasets/git/pack-bitmap.c:694:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        uint32_t commit_pos, xor_row;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-bitmap.c:694:11: warning: variable 'commit_pos' is not initialized [cppcoreguidelines-init-variables]
        uint32_t commit_pos, xor_row;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-bitmap.c:694:23: warning: variable 'xor_row' is not initialized [cppcoreguidelines-init-variables]
        uint32_t commit_pos, xor_row;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-bitmap.c:695:11: warning: variable 'offset' is not initialized [cppcoreguidelines-init-variables]
        uint64_t offset;
                 ^
                        = 0
/datasets/git/pack-bitmap.c:696:6: warning: variable 'flags' is not initialized [cppcoreguidelines-init-variables]
        int flags;
            ^
                  = 0
/datasets/git/pack-bitmap.c:699:22: warning: variable 'bitmap' is not initialized [cppcoreguidelines-init-variables]
        struct ewah_bitmap *bitmap;
                            ^
                                   = NULL
/datasets/git/pack-bitmap.c:702:46: warning: variable 'xor_items' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
        static struct bitmap_lookup_table_xor_item *xor_items = NULL;
                                                    ^
/datasets/git/pack-bitmap.c:703:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        static size_t xor_items_nr = 0, xor_items_alloc = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-bitmap.c:705:6: warning: variable 'xor_flags' is not initialized [cppcoreguidelines-init-variables]
        int xor_flags;
            ^
                      = 0
/datasets/git/pack-bitmap.c:706:11: warning: variable 'hash_pos' is not initialized [cppcoreguidelines-init-variables]
        khiter_t hash_pos;
                 ^
                          = 0
/datasets/git/pack-bitmap.c:707:39: warning: variable 'xor_item' is not initialized [cppcoreguidelines-init-variables]
        struct bitmap_lookup_table_xor_item *xor_item;
                                             ^
                                                      = NULL
/datasets/git/pack-bitmap.c:709:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_corrupt)
                       ^
                        {
/datasets/git/pack-bitmap.c:712:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!bitmap_bsearch_pos(bitmap_git, oid, &commit_pos))
                                                              ^
                                                               {
/datasets/git/pack-bitmap.c:715:74: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (bitmap_bsearch_triplet_by_pos(commit_pos, bitmap_git, &triplet) < 0)
                                                                                ^
                                                                                 {
/datasets/git/pack-bitmap.c:722:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'xor_row' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (xor_row != 0xffffffff) {
               ^
/datasets/git/pack-bitmap.c:722:20: warning: 0xffffffff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        while (xor_row != 0xffffffff) {
                          ^
/datasets/git/pack-bitmap.c:723:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                ALLOC_GROW(xor_items, xor_items_nr + 1, xor_items_alloc);
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/pack-bitmap.c:730:74: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (bitmap_lookup_table_get_triplet(bitmap_git, xor_row, &triplet) < 0)
                                                                                       ^
                                                                                        {
/datasets/git/pack-bitmap.c:752:5: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                        (xor_bitmap = kh_value(bitmap_git->bitmaps, hash_pos)))
                         ^
/datasets/git/pack-bitmap.c:752:5: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/pack-bitmap.c:752:5: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/pack-bitmap.c:752:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        (xor_bitmap = kh_value(bitmap_git->bitmaps, hash_pos)))
                                                                               ^
                                                                                {
/datasets/git/pack-bitmap.c:758:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (xor_items_nr) {
        ^
/datasets/git/pack-bitmap.c:771:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!bitmap)
                            ^
                             {
/datasets/git/pack-bitmap.c:812:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!bitmap)
                    ^
                     {
/datasets/git/pack-bitmap.c:830:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!bitmap_git->table_lookup)
                                              ^
                                               {
/datasets/git/pack-bitmap.c:836:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!bitmap)
                            ^
                             {
/datasets/git/pack-bitmap.c:851:10: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                return bitmap_pos + bitmap_num_objects(bitmap_git);
                       ^
/datasets/git/pack-bitmap.c:860:11: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        uint32_t pos;
                 ^
                     = 0
/datasets/git/pack-bitmap.c:862:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!offset)
                    ^
                     {
/datasets/git/pack-bitmap.c:865:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (offset_to_pack_pos(bitmap_git->pack, offset, &pos) < 0)
                                                                   ^
                                                                    {
/datasets/git/pack-bitmap.c:867:9: warning: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return pos;
               ^
/datasets/git/pack-bitmap.c:873:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        uint32_t want, got;
        ^~~~~~~~~~~~~~~~~~~
/datasets/git/pack-bitmap.c:873:11: warning: variable 'want' is not initialized [cppcoreguidelines-init-variables]
        uint32_t want, got;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-bitmap.c:873:17: warning: variable 'got' is not initialized [cppcoreguidelines-init-variables]
        uint32_t want, got;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-bitmap.c:874:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!bsearch_midx(oid, bitmap_git->midx, &want))
                                                        ^
                                                         {
/datasets/git/pack-bitmap.c:877:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (midx_to_pack_pos(bitmap_git->midx, want, &got) < 0)
                                                               ^
                                                                {
/datasets/git/pack-bitmap.c:879:9: warning: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return got;
               ^
/datasets/git/pack-bitmap.c:885:6: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        int pos;
            ^
                = 0
/datasets/git/pack-bitmap.c:886:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (bitmap_is_midx(bitmap_git))
                                       ^
                                        {
/datasets/git/pack-bitmap.c:888:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/pack-bitmap.c:898:11: warning: variable 'hash_pos' is not initialized [cppcoreguidelines-init-variables]
        khiter_t hash_pos;
                 ^
                          = 0
/datasets/git/pack-bitmap.c:899:6: warning: variable 'hash_ret' is not initialized [cppcoreguidelines-init-variables]
        int hash_ret;
            ^
                     = 0
/datasets/git/pack-bitmap.c:900:6: warning: variable 'bitmap_pos' is not initialized [cppcoreguidelines-init-variables]
        int bitmap_pos;
            ^
                       = 0
/datasets/git/pack-bitmap.c:905:37: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        eindex->alloc = (eindex->alloc + 16) * 3 / 2;
                                                         ^
/datasets/git/pack-bitmap.c:906:4: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                        REALLOC_ARRAY(eindex->objects, eindex->alloc);
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/pack-bitmap.c:910:16: warning: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                bitmap_pos = eindex->count;
                             ^
/datasets/git/pack-bitmap.c:919:9: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return bitmap_pos + bitmap_num_objects(bitmap_git);
               ^
/datasets/git/pack-bitmap.c:922:8: warning: accessing fields in struct 'bitmap_show_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct bitmap_show_data {
       ^
/datasets/git/pack-bitmap.c:922:8: note: use "__attribute__((aligned(16)))" to align struct 'bitmap_show_data' to 16 bytes
/datasets/git/pack-bitmap.c:930:6: warning: variable 'bitmap_pos' is not initialized [cppcoreguidelines-init-variables]
        int bitmap_pos;
            ^
                       = 0
/datasets/git/pack-bitmap.c:934:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (bitmap_pos < 0)
                           ^
                            {
/datasets/git/pack-bitmap.c:950:22: warning: variable 'partial' is not initialized [cppcoreguidelines-init-variables]
        struct ewah_bitmap *partial;
                            ^
                                    = NULL
/datasets/git/pack-bitmap.c:952:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (data->seen && bitmap_get(data->seen, bitmap_pos))
                                                             ^
                                                              {
/datasets/git/pack-bitmap.c:955:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (bitmap_get(data->base, bitmap_pos))
                                               ^
                                                {
/datasets/git/pack-bitmap.c:971:6: warning: variable 'bitmap_pos' is not initialized [cppcoreguidelines-init-variables]
        int bitmap_pos;
            ^
                       = 0
/datasets/git/pack-bitmap.c:980:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                struct commit_list *parent = commit->parents;
                ^
/datasets/git/pack-bitmap.c:974:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (bitmap_pos < 0)
                           ^
                            {
/datasets/git/pack-bitmap.c:982:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (parent) {
                ^
/datasets/git/pack-bitmap.c:982:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'parent' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (parent) {
                       ^
/datasets/git/pack-bitmap.c:983:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        parent->item->object.flags |= SEEN;
                                                      ^
/datasets/git/./revision.h:27:16: note: expanded from macro 'SEEN'
#define SEEN            (1u<<0)
                         ^   ~
/datasets/git/pack-bitmap.c:996:6: warning: variable 'bitmap_pos' is not initialized [cppcoreguidelines-init-variables]
        int bitmap_pos;
            ^
                       = 0
/datasets/git/pack-bitmap.c:999:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (bitmap_pos < 0)
                           ^
                            {
/datasets/git/pack-bitmap.c:1003:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                obj->flags |= SEEN;
                              ^
/datasets/git/./revision.h:27:16: note: expanded from macro 'SEEN'
#define SEEN            (1u<<0)
                         ^   ~
/datasets/git/pack-bitmap.c:1015:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!or_with)
                     ^
                      {
/datasets/git/pack-bitmap.c:1018:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!*base)
                   ^
                    {
/datasets/git/pack-bitmap.c:1020:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/pack-bitmap.c:1044:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (roots) {
        ^
/datasets/git/pack-bitmap.c:1044:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'roots' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (roots) {
               ^
/datasets/git/pack-bitmap.c:1050:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        object->flags |= SEEN;
                                         ^
/datasets/git/./revision.h:27:16: note: expanded from macro 'SEEN'
#define SEEN            (1u<<0)
                         ^   ~
/datasets/git/pack-bitmap.c:1061:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!not_mapped)
                        ^
                         {
/datasets/git/pack-bitmap.c:1075:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (roots) {
        ^
/datasets/git/pack-bitmap.c:1075:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'roots' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (roots) {
               ^
/datasets/git/pack-bitmap.c:1077:7: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
                int pos;
                    ^
                        = 0
/datasets/git/pack-bitmap.c:1083:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        object->flags &= ~UNINTERESTING;
                                          ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/pack-bitmap.c:1087:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        object->flags |= SEEN;
                                         ^
/datasets/git/./revision.h:27:16: note: expanded from macro 'SEEN'
#define SEEN            (1u<<0)
                         ^   ~
/datasets/git/pack-bitmap.c:1095:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!base)
                          ^
                           {
/datasets/git/pack-bitmap.c:1106:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (prepare_revision_walk(revs))
                                                ^
                                                 {
/datasets/git/pack-bitmap.c:1130:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i;
                 ^
                   = 0
/datasets/git/pack-bitmap.c:1130:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-bitmap.c:1132:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < eindex->count; ++i) {
        ^
/datasets/git/pack-bitmap.c:1132:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'eindex' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < eindex->count; ++i) {
                    ^
/datasets/git/pack-bitmap.c:1133:18: warning: variable 'obj' is not initialized [cppcoreguidelines-init-variables]
                struct object *obj;
                               ^
                                   = NULL
/datasets/git/pack-bitmap.c:1135:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!bitmap_get(objects, bitmap_num_objects(bitmap_git) + i))
                                                                             ^
                                                                              {
/datasets/git/pack-bitmap.c:1141:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    (obj->type == OBJ_TAG && !revs->tag_objects))
                                                                 ^
                                                                  {
/datasets/git/pack-bitmap.c:1148:54: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
static void init_type_iterator(struct ewah_iterator *it,
                                                     ^
/datasets/git/pack-bitmap.c:1186:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct bitmap *objects = bitmap_git->result;
        ^
/datasets/git/pack-bitmap.c:1180:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        size_t i = 0;
               ^
/datasets/git/pack-bitmap.c:1181:11: warning: variable 'offset' is not initialized [cppcoreguidelines-init-variables]
        uint32_t offset;
                 ^
                        = 0
/datasets/git/pack-bitmap.c:1183:23: warning: variable name 'it' is too short, expected at least 3 characters [readability-identifier-length]
        struct ewah_iterator it;
                             ^
/datasets/git/pack-bitmap.c:1184:10: warning: variable 'filter' is not initialized [cppcoreguidelines-init-variables]
        eword_t filter;
                ^
                       = 0
/datasets/git/pack-bitmap.c:1190:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'objects' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < objects->word_alloc &&
                    ^
/datasets/git/pack-bitmap.c:1195:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!word)
                          ^
                           {
/datasets/git/pack-bitmap.c:1198:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (offset = 0; offset < BITS_IN_EWORD; ++offset) {
                ^
/datasets/git/pack-bitmap.c:1198:20: warning: backward branch (for loop) is ID-dependent due to variable reference to 'offset' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (offset = 0; offset < BITS_IN_EWORD; ++offset) {
                                 ^
/datasets/git/pack-bitmap.c:1199:23: warning: variable 'pack' is not initialized [cppcoreguidelines-init-variables]
                        struct packed_git *pack;
                                           ^
                                                = NULL
/datasets/git/pack-bitmap.c:1201:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        uint32_t hash = 0, index_pos;
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-bitmap.c:1201:23: warning: variable 'index_pos' is not initialized [cppcoreguidelines-init-variables]
                        uint32_t hash = 0, index_pos;
                                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-bitmap.c:1202:10: warning: variable 'ofs' is not initialized [cppcoreguidelines-init-variables]
                        off_t ofs;
                              ^
                                  = 0
/datasets/git/pack-bitmap.c:1204:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if ((word >> offset) == 0)
                                                  ^
                                                   {
/datasets/git/pack-bitmap.c:1210:30: warning: variable name 'm' is too short, expected at least 3 characters [readability-identifier-length]
                                struct multi_pack_index *m = bitmap_git->midx;
                                                         ^
/datasets/git/pack-bitmap.c:1211:14: warning: variable 'pack_id' is not initialized [cppcoreguidelines-init-variables]
                                uint32_t pack_id;
                                         ^
                                                 = 0
/datasets/git/pack-bitmap.c:1236:9: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                             struct object_list *roots)
                             ^
/datasets/git/pack-bitmap.c:1227:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (bitmap_git->hashes)
                                               ^
                                                {
/datasets/git/pack-bitmap.c:1238:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (roots) {
        ^
/datasets/git/pack-bitmap.c:1238:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'roots' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (roots) {
               ^
/datasets/git/pack-bitmap.c:1243:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (bsearch_midx(&object->oid, bitmap_git->midx, NULL))
                                                                               ^
                                                                                {
/datasets/git/pack-bitmap.c:1246:68: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (find_pack_entry_one(object->oid.hash, bitmap_git->pack) > 0)
                                                                                        ^
                                                                                         {
/datasets/git/pack-bitmap.c:1259:22: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct object_list *p;
                            ^
                              = NULL
/datasets/git/pack-bitmap.c:1259:22: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-bitmap.c:1261:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = tip_objects; p; p = p->next) {
        ^
/datasets/git/pack-bitmap.c:1261:24: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = tip_objects; p; p = p->next) {
                              ^
/datasets/git/pack-bitmap.c:1262:7: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
                int pos;
                    ^
                        = 0
/datasets/git/pack-bitmap.c:1285:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        eword_t mask;
        ^
/datasets/git/pack-bitmap.c:1264:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (p->item->type != type)
                                          ^
                                           {
/datasets/git/pack-bitmap.c:1268:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pos < 0)
                            ^
                             {
/datasets/git/pack-bitmap.c:1283:17: warning: variable 'tips' is not initialized [cppcoreguidelines-init-variables]
        struct bitmap *tips;
                       ^
                            = NULL
/datasets/git/pack-bitmap.c:1284:23: warning: variable name 'it' is too short, expected at least 3 characters [readability-identifier-length]
        struct ewah_iterator it;
                             ^
/datasets/git/pack-bitmap.c:1285:10: warning: variable 'mask' is not initialized [cppcoreguidelines-init-variables]
        eword_t mask;
                ^
                     = 0
/datasets/git/pack-bitmap.c:1286:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i;
                 ^
                   = 0
/datasets/git/pack-bitmap.c:1286:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-bitmap.c:1300:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0, init_type_iterator(&it, bitmap_git, type);
        ^
/datasets/git/pack-bitmap.c:1282:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct eindex *eindex = &bitmap_git->ext_index;
        ^
/datasets/git/pack-bitmap.c:1301:7: warning: backward branch (for loop) is ID-dependent due to variable reference to 'mask' and may cause performance degradation [altera-id-dependent-backward-branch]
             i < to_filter->word_alloc && ewah_iterator_next(&mask, &it);
             ^
/datasets/git/pack-bitmap.c:1303:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (i < tips->word_alloc)
                                         ^
                                          {
/datasets/git/pack-bitmap.c:1313:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < eindex->count; i++) {
        ^
/datasets/git/pack-bitmap.c:1313:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'eindex' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < eindex->count; i++) {
                    ^
/datasets/git/pack-bitmap.c:1317:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !bitmap_get(tips, pos))
                                           ^
                                            {
/datasets/git/pack-bitmap.c:1335:16: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size;
                      ^
                           = 0
/datasets/git/pack-bitmap.c:1336:21: warning: variable name 'oi' is too short, expected at least 3 characters [readability-identifier-length]
        struct object_info oi = OBJECT_INFO_INIT;
                           ^
/datasets/git/pack-bitmap.c:1341:22: warning: variable 'pack' is not initialized [cppcoreguidelines-init-variables]
                struct packed_git *pack;
                                   ^
                                        = NULL
/datasets/git/pack-bitmap.c:1342:9: warning: variable 'ofs' is not initialized [cppcoreguidelines-init-variables]
                off_t ofs;
                      ^
                          = 0
/datasets/git/pack-bitmap.c:1364:71: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (oid_object_info_extended(the_repository, &obj->oid, &oi, 0) < 0)
                                                                                    ^
                                                                                     {
/datasets/git/pack-bitmap.c:1377:17: warning: variable 'tips' is not initialized [cppcoreguidelines-init-variables]
        struct bitmap *tips;
                       ^
                            = NULL
/datasets/git/pack-bitmap.c:1378:23: warning: variable name 'it' is too short, expected at least 3 characters [readability-identifier-length]
        struct ewah_iterator it;
                             ^
/datasets/git/pack-bitmap.c:1379:10: warning: variable 'mask' is not initialized [cppcoreguidelines-init-variables]
        eword_t mask;
                ^
                     = 0
/datasets/git/pack-bitmap.c:1380:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i;
                 ^
                   = 0
/datasets/git/pack-bitmap.c:1380:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-bitmap.c:1388:3: note: inferred assignment of ID-dependent value from ID-dependent variable word [altera-id-dependent-backward-branch]
                unsigned offset;
                ^
/datasets/git/pack-bitmap.c:1388:12: warning: variable 'offset' is not initialized [cppcoreguidelines-init-variables]
                unsigned offset;
                         ^
                                = 0
/datasets/git/pack-bitmap.c:1390:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (offset = 0; offset < BITS_IN_EWORD; offset++) {
                ^
/datasets/git/pack-bitmap.c:1390:20: warning: backward branch (for loop) is ID-dependent due to variable reference to 'offset' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (offset = 0; offset < BITS_IN_EWORD; offset++) {
                                 ^
/datasets/git/pack-bitmap.c:1391:13: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
                        uint32_t pos;
                                 ^
                                     = 0
/datasets/git/pack-bitmap.c:1393:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if ((word >> offset) == 0)
                                                  ^
                                                   {
/datasets/git/pack-bitmap.c:1399:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            get_size_by_pos(bitmap_git, pos) >= limit)
                                                                      ^
                                                                       {
/datasets/git/pack-bitmap.c:1404:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < eindex->count; i++) {
        ^
/datasets/git/pack-bitmap.c:1404:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'eindex' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < eindex->count; i++) {
                    ^
/datasets/git/pack-bitmap.c:1409:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    get_size_by_pos(bitmap_git, pos) >= limit)
                                                              ^
                                                               {
/datasets/git/pack-bitmap.c:1421:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (limit)
                  ^
                   {
/datasets/git/pack-bitmap.c:1435:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (object_type < OBJ_COMMIT || object_type > OBJ_TAG)
                                                              ^
                                                               {
/datasets/git/pack-bitmap.c:1438:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (object_type != OBJ_TAG)
                                   ^
                                    {
/datasets/git/pack-bitmap.c:1440:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (object_type != OBJ_COMMIT)
                                      ^
                                       {
/datasets/git/pack-bitmap.c:1442:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (object_type != OBJ_TREE)
                                    ^
                                     {
/datasets/git/pack-bitmap.c:1444:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (object_type != OBJ_BLOB)
                                    ^
                                     {
/datasets/git/pack-bitmap.c:1448:12: warning: function 'filter_bitmap' is within a recursive call chain [misc-no-recursion]
static int filter_bitmap(struct bitmap_index *bitmap_git,
           ^
/datasets/git/pack-bitmap.c:1448:12: note: example recursive call chain, starting from function 'filter_bitmap'
/datasets/git/pack-bitmap.c:1491:8: note: Frame #1: function 'filter_bitmap' calls function 'filter_bitmap' here:
                        if (filter_bitmap(bitmap_git, tip_objects, to_filter,
                            ^
/datasets/git/pack-bitmap.c:1491:8: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/pack-bitmap.c:1453:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!filter || filter->choice == LOFC_DISABLED)
                                                       ^
                                                        {
/datasets/git/pack-bitmap.c:1457:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (bitmap_git)
                               ^
                                {
/datasets/git/pack-bitmap.c:1464:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (bitmap_git)
                               ^
                                {
/datasets/git/pack-bitmap.c:1473:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (bitmap_git)
                               ^
                                {
/datasets/git/pack-bitmap.c:1481:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (bitmap_git)
                               ^
                                {
/datasets/git/pack-bitmap.c:1489:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/pack-bitmap.c:1489:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-bitmap.c:1490:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < filter->sub_nr; i++) {
                ^
/datasets/git/pack-bitmap.c:1492:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                          &filter->sub[i]) < 0)
                                                               ^
                                                                {
/datasets/git/pack-bitmap.c:1507:22: warning: function 'prepare_bitmap_walk' has cognitive complexity of 26 (threshold 25) [readability-function-cognitive-complexity]
struct bitmap_index *prepare_bitmap_walk(struct rev_info *revs,
                     ^
/datasets/git/pack-bitmap.c:1525:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (revs->prune)
        ^
/datasets/git/pack-bitmap.c:1528:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!can_filter_bitmap(&revs->filter))
        ^
/datasets/git/pack-bitmap.c:1534:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (open_bitmap(revs->repo, bitmap_git) < 0)
        ^
/datasets/git/pack-bitmap.c:1537:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < revs->pending.nr; ++i) {
        ^
/datasets/git/pack-bitmap.c:1540:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (object->type == OBJ_NONE)
                ^
/datasets/git/pack-bitmap.c:1543:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (object->type == OBJ_TAG) {
                ^
/datasets/git/pack-bitmap.c:1546:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (object->flags & UNINTERESTING)
                        ^
/datasets/git/pack-bitmap.c:1548:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/pack-bitmap.c:1555:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (object->flags & UNINTERESTING)
                ^
/datasets/git/pack-bitmap.c:1557:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/pack-bitmap.c:1566:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (haves && !in_bitmapped_pack(bitmap_git, haves))
        ^
/datasets/git/pack-bitmap.c:1566:12: note: +1
        if (haves && !in_bitmapped_pack(bitmap_git, haves))
                  ^
/datasets/git/pack-bitmap.c:1570:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!wants)
        ^
/datasets/git/pack-bitmap.c:1578:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (load_bitmap(bitmap_git) < 0)
        ^
/datasets/git/pack-bitmap.c:1583:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (haves) {
        ^
/datasets/git/pack-bitmap.c:1589:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!haves_bitmap)
                ^
/datasets/git/pack-bitmap.c:1595:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!wants_bitmap)
        ^
/datasets/git/pack-bitmap.c:1598:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (haves_bitmap)
        ^
/datasets/git/pack-bitmap.c:1602:58: note: +1, including nesting penalty of 0, nesting level increased to 1
                      (revs->filter.choice && filter_provided_objects) ? NULL : wants,
                                                                       ^
/datasets/git/pack-bitmap.c:1602:30: note: +1
                      (revs->filter.choice && filter_provided_objects) ? NULL : wants,
                                           ^
/datasets/git/pack-bitmap.c:1510:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i;
                     ^
                       = 0
/datasets/git/pack-bitmap.c:1510:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-bitmap.c:1518:23: warning: variable 'bitmap_git' is not initialized [cppcoreguidelines-init-variables]
        struct bitmap_index *bitmap_git;
                             ^
                                        = NULL
/datasets/git/pack-bitmap.c:1525:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->prune)
                        ^
                         {
/datasets/git/pack-bitmap.c:1528:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!can_filter_bitmap(&revs->filter))
                                              ^
                                               {
/datasets/git/pack-bitmap.c:1534:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (open_bitmap(revs->repo, bitmap_git) < 0)
                                                    ^
                                                     {
/datasets/git/pack-bitmap.c:1540:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (object->type == OBJ_NONE)
                                             ^
                                              {
/datasets/git/pack-bitmap.c:1543:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (object->type == OBJ_TAG) {
                ^
/datasets/git/pack-bitmap.c:1543:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'object' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (object->type == OBJ_TAG) {
                       ^
/datasets/git/pack-bitmap.c:1546:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (object->flags & UNINTERESTING)
                                            ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/pack-bitmap.c:1546:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (object->flags & UNINTERESTING)
                                                          ^
                                                           {
/datasets/git/pack-bitmap.c:1548:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/pack-bitmap.c:1552:42: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        object->flags |= (tag->object.flags & UNINTERESTING);
                                                              ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/pack-bitmap.c:1555:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (object->flags & UNINTERESTING)
                                    ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/pack-bitmap.c:1555:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (object->flags & UNINTERESTING)
                                                  ^
                                                   {
/datasets/git/pack-bitmap.c:1557:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/pack-bitmap.c:1566:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (haves && !in_bitmapped_pack(bitmap_git, haves))
                                                           ^
                                                            {
/datasets/git/pack-bitmap.c:1570:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!wants)
                   ^
                    {
/datasets/git/pack-bitmap.c:1578:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (load_bitmap(bitmap_git) < 0)
                                        ^
                                         {
/datasets/git/pack-bitmap.c:1589:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!haves_bitmap)
                                  ^
                                   {
/datasets/git/pack-bitmap.c:1595:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!wants_bitmap)
                          ^
                           {
/datasets/git/pack-bitmap.c:1598:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (haves_bitmap)
                         ^
                          {
/datasets/git/pack-bitmap.c:1630:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        off_t offset, delta_obj_offset;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-bitmap.c:1630:8: warning: variable 'offset' is not initialized [cppcoreguidelines-init-variables]
        off_t offset, delta_obj_offset;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-bitmap.c:1630:16: warning: variable 'delta_obj_offset' is not initialized [cppcoreguidelines-init-variables]
        off_t offset, delta_obj_offset;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-bitmap.c:1631:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/pack-bitmap.c:1632:16: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size;
                      ^
                           = 0
/datasets/git/pack-bitmap.c:1657:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pos >= pack->num_objects)
                                     ^
                                      {
/datasets/git/pack-bitmap.c:1662:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (type < 0)
                     ^
                      {
/datasets/git/pack-bitmap.c:1666:9: warning: variable 'base_offset' is not initialized [cppcoreguidelines-init-variables]
                off_t base_offset;
                      ^
                                  = 0
/datasets/git/pack-bitmap.c:1667:12: warning: variable 'base_pos' is not initialized [cppcoreguidelines-init-variables]
                uint32_t base_pos;
                         ^
                                  = 0
/datasets/git/pack-bitmap.c:1679:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!base_offset)
                                 ^
                                  {
/datasets/git/pack-bitmap.c:1681:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (offset_to_pack_pos(pack, base_offset, &base_pos) < 0)
                                                                         ^
                                                                          {
/datasets/git/pack-bitmap.c:1693:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (base_pos >= pos)
                                    ^
                                     {
/datasets/git/pack-bitmap.c:1704:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!bitmap_get(reuse, base_pos))
                                                 ^
                                                  {
/datasets/git/pack-bitmap.c:1717:27: warning: variable name 'm' is too short, expected at least 3 characters [readability-identifier-length]
        struct multi_pack_index *m = bitmap_git->midx;
                                 ^
/datasets/git/pack-bitmap.c:1718:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!m)
               ^
                {
/datasets/git/pack-bitmap.c:1728:21: warning: variable 'pack' is not initialized [cppcoreguidelines-init-variables]
        struct packed_git *pack;
                           ^
                                = NULL
/datasets/git/pack-bitmap.c:1730:17: warning: variable 'reuse' is not initialized [cppcoreguidelines-init-variables]
        struct bitmap *reuse;
                       ^
                             = NULL
/datasets/git/pack-bitmap.c:1732:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        size_t i = 0;
               ^
/datasets/git/pack-bitmap.c:1733:11: warning: variable 'offset' is not initialized [cppcoreguidelines-init-variables]
        uint32_t offset;
                 ^
                        = 0
/datasets/git/pack-bitmap.c:1734:11: warning: variable 'objects_nr' is not initialized [cppcoreguidelines-init-variables]
        uint32_t objects_nr;
                 ^
                            = 0
/datasets/git/pack-bitmap.c:1740:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (bitmap_is_midx(bitmap_git))
                                       ^
                                        {
/datasets/git/pack-bitmap.c:1742:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/pack-bitmap.c:1746:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (i < result->word_alloc && result->words[i] == (eword_t)~0)
        ^
/datasets/git/pack-bitmap.c:1746:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (i < result->word_alloc && result->words[i] == (eword_t)~0)
               ^
/datasets/git/pack-bitmap.c:1746:55: warning: either cast from 'int' to 'eword_t' (aka 'unsigned long') is ineffective, or there is loss of precision before the conversion [bugprone-misplaced-widening-cast]
        while (i < result->word_alloc && result->words[i] == (eword_t)~0)
                                                             ^
/datasets/git/pack-bitmap.c:1746:64: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
        while (i < result->word_alloc && result->words[i] == (eword_t)~0)
                                                                      ^~
/datasets/git/pack-bitmap.c:1746:67: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (i < result->word_alloc && result->words[i] == (eword_t)~0)
                                                                         ^
                                                                          {
/datasets/git/pack-bitmap.c:1757:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (i > objects_nr / BITS_IN_EWORD)
                                           ^
                                            {
/datasets/git/pack-bitmap.c:1761:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(reuse->words, 0xFF, i * sizeof(eword_t));
        ^~~~~~
/datasets/git/pack-bitmap.c:1761:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(reuse->words, 0xFF, i * sizeof(eword_t));
        ^~~~~~
/datasets/git/pack-bitmap.c:1761:23: warning: 0xFF is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        memset(reuse->words, 0xFF, i * sizeof(eword_t));
                             ^
/datasets/git/pack-bitmap.c:1763:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; i < result->word_alloc; ++i) {
               ^
/datasets/git/pack-bitmap.c:1767:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (offset = 0; offset < BITS_IN_EWORD; ++offset) {
                ^
/datasets/git/pack-bitmap.c:1767:20: warning: backward branch (for loop) is ID-dependent due to variable reference to 'offset' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (offset = 0; offset < BITS_IN_EWORD; ++offset) {
                                 ^
/datasets/git/pack-bitmap.c:1768:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if ((word >> offset) == 0)
                                                  ^
                                                   {
/datasets/git/pack-bitmap.c:1810:6: warning: variable 'idx' is not initialized [cppcoreguidelines-init-variables]
        int idx;
            ^
                = 0
/datasets/git/pack-bitmap.c:1812:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!bitmap)
                    ^
                     {
/datasets/git/pack-bitmap.c:1826:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->tree_objects)
                               ^
                                {
/datasets/git/pack-bitmap.c:1828:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->blob_objects)
                               ^
                                {
/datasets/git/pack-bitmap.c:1830:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->tag_objects)
                              ^
                               {
/datasets/git/pack-bitmap.c:1842:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        uint32_t i = 0, count = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-bitmap.c:1839:2: note: inferred assignment of ID-dependent value from ID-dependent member result [altera-id-dependent-backward-branch]
        struct bitmap *objects = bitmap_git->result;
        ^
/datasets/git/pack-bitmap.c:1842:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        uint32_t i = 0, count = 0;
                 ^
/datasets/git/pack-bitmap.c:1843:23: warning: variable name 'it' is too short, expected at least 3 characters [readability-identifier-length]
        struct ewah_iterator it;
                             ^
/datasets/git/pack-bitmap.c:1844:10: warning: variable 'filter' is not initialized [cppcoreguidelines-init-variables]
        eword_t filter;
                ^
                       = 0
/datasets/git/pack-bitmap.c:1848:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (i < objects->word_alloc && ewah_iterator_next(&filter, &it)) {
        ^
/datasets/git/pack-bitmap.c:1840:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct eindex *eindex = &bitmap_git->ext_index;
        ^
/datasets/git/pack-bitmap.c:1848:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'objects' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (i < objects->word_alloc && ewah_iterator_next(&filter, &it)) {
               ^
/datasets/git/pack-bitmap.c:1853:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < eindex->count; ++i) {
        ^
/datasets/git/pack-bitmap.c:1853:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'eindex' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < eindex->count; ++i) {
                    ^
/datasets/git/pack-bitmap.c:1855:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        bitmap_get(objects, bitmap_num_objects(bitmap_git) + i))
                                                                                ^
                                                                                 {
/datasets/git/pack-bitmap.c:1863:10: warning: 4 adjacent parameters of 'count_bitmap_commit_list' of similar type ('uint32_t *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                              uint32_t *commits, uint32_t *trees,
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-bitmap.c:1863:20: note: the first parameter in the range is 'commits'
                              uint32_t *commits, uint32_t *trees,
                                        ^~~~~~~
/datasets/git/pack-bitmap.c:1864:37: note: the last parameter in the range is 'tags'
                              uint32_t *blobs, uint32_t *tags)
                                                         ^~~~
/datasets/git/pack-bitmap.c:1868:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (commits)
                    ^
                     {
/datasets/git/pack-bitmap.c:1871:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (trees)
                  ^
                   {
/datasets/git/pack-bitmap.c:1874:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (blobs)
                  ^
                   {
/datasets/git/pack-bitmap.c:1877:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (tags)
                 ^
                  {
/datasets/git/pack-bitmap.c:1881:8: warning: accessing fields in struct 'bitmap_test_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct bitmap_test_data {
       ^
/datasets/git/pack-bitmap.c:1881:8: note: use "__attribute__((aligned(64)))" to align struct 'bitmap_test_data' to 64 bytes
/datasets/git/pack-bitmap.c:1915:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (bitmap_type == OBJ_NONE)
                                    ^
                                     {
/datasets/git/pack-bitmap.c:1919:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (bitmaps_nr > 1)
                           ^
                            {
/datasets/git/pack-bitmap.c:1923:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (bitmap_type != obj->type)
                                     ^
                                      {
/datasets/git/pack-bitmap.c:1930:65: warning: parameter 'name' is unused [misc-unused-parameters]
static void test_show_object(struct object *object, const char *name,
                                                                ^
/datasets/git/pack-bitmap.c:1934:6: warning: variable 'bitmap_pos' is not initialized [cppcoreguidelines-init-variables]
        int bitmap_pos;
            ^
                       = 0
/datasets/git/pack-bitmap.c:1937:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (bitmap_pos < 0)
                           ^
                            {
/datasets/git/pack-bitmap.c:1948:6: warning: variable 'bitmap_pos' is not initialized [cppcoreguidelines-init-variables]
        int bitmap_pos;
            ^
                       = 0
/datasets/git/pack-bitmap.c:1952:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (bitmap_pos < 0)
                           ^
                            {
/datasets/git/pack-bitmap.c:1962:17: warning: variable 'root' is not initialized [cppcoreguidelines-init-variables]
        struct object *root;
                       ^
                            = NULL
/datasets/git/pack-bitmap.c:1964:9: warning: variable 'result_popcnt' is not initialized [cppcoreguidelines-init-variables]
        size_t result_popcnt;
               ^
                             = 0
/datasets/git/pack-bitmap.c:1966:23: warning: variable 'bitmap_git' is not initialized [cppcoreguidelines-init-variables]
        struct bitmap_index *bitmap_git;
                             ^
                                        = NULL
/datasets/git/pack-bitmap.c:1967:22: warning: variable 'bm' is not initialized [cppcoreguidelines-init-variables]
        struct ewah_bitmap *bm;
                            ^
                               = NULL
/datasets/git/pack-bitmap.c:1967:22: warning: variable name 'bm' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-bitmap.c:1969:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if (!(bitmap_git = prepare_bitmap_git(revs->repo)))
              ^
/datasets/git/pack-bitmap.c:1969:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/pack-bitmap.c:1969:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/pack-bitmap.c:1969:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(bitmap_git = prepare_bitmap_git(revs->repo)))
                                                           ^
                                                            {
/datasets/git/pack-bitmap.c:1972:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->pending.nr != 1)
                                  ^
                                   {
/datasets/git/pack-bitmap.c:1990:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!result)
                    ^
                     {
/datasets/git/pack-bitmap.c:1999:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prepare_revision_walk(revs))
                                        ^
                                         {
/datasets/git/pack-bitmap.c:2015:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (bitmap_equals(result, tdata.base))
                                              ^
                                               {
/datasets/git/pack-bitmap.c:2017:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/pack-bitmap.c:2029:44: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int test_bitmap_commits(struct repository *r)
                                           ^
/datasets/git/pack-bitmap.c:2032:21: warning: variable 'value' is not initialized [cppcoreguidelines-init-variables]
        MAYBE_UNUSED void *value;
                           ^
                                 = NULL
/datasets/git/pack-bitmap.c:2035:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!bitmap_git)
                        ^
                         {
/datasets/git/pack-bitmap.c:2043:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (load_bitmap_entries_v1(bitmap_git) < 0)
                                                           ^
                                                            {
/datasets/git/pack-bitmap.c:2047:2: warning: backward branch (for loop) is ID-dependent due to variable reference to 'bitmap_git' and may cause performance degradation [altera-id-dependent-backward-branch]
        kh_foreach(bitmap_git->bitmaps, oid, value, {
        ^
/datasets/git/./khash.h:303:26: note: expanded from macro 'kh_foreach'
        for (__i = kh_begin(h); __i != kh_end(h); ++__i) {              \
                                ^
/datasets/git/pack-bitmap.c:2047:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        kh_foreach(bitmap_git->bitmaps, oid, value, {
        ^
/datasets/git/./khash.h:303:2: note: expanded from macro 'kh_foreach'
        for (__i = kh_begin(h); __i != kh_end(h); ++__i) {              \
        ^
/datasets/git/pack-bitmap.c:2047:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        kh_foreach(bitmap_git->bitmaps, oid, value, {
        ^
/datasets/git/./khash.h:304:8: note: expanded from macro 'kh_foreach'
                if (!kh_exist(h,__i)) continue;                                         \
                     ^~~~~~~~~~~~~~~
/datasets/git/./khash.h:243:26: note: expanded from macro 'kh_exist'
#define kh_exist(h, x) (!__ac_iseither((h)->flags, (x)))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./khash.h:42:33: note: expanded from macro '__ac_iseither'
#define __ac_iseither(flag, i) ((flag[i>>4]>>((i&0xfU)<<1))&3)
                                ^                           ~
/datasets/git/pack-bitmap.c:2056:43: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int test_bitmap_hashes(struct repository *r)
                                          ^
/datasets/git/pack-bitmap.c:2060:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        uint32_t i, index_pos;
        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-bitmap.c:2060:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i, index_pos;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-bitmap.c:2060:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-bitmap.c:2060:14: warning: variable 'index_pos' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i, index_pos;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-bitmap.c:2062:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!bitmap_git || !bitmap_git->hashes)
                                               ^
                                                {
/datasets/git/pack-bitmap.c:2065:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < bitmap_num_objects(bitmap_git); i++) {
        ^
/datasets/git/pack-bitmap.c:2065:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'bitmap_git' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < bitmap_num_objects(bitmap_git); i++) {
                    ^
/datasets/git/pack-bitmap.c:2066:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (bitmap_is_midx(bitmap_git))
                                               ^
                                                {
/datasets/git/pack-bitmap.c:2068:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/pack-bitmap.c:2088:23: warning: variable name 'it' is too short, expected at least 3 characters [readability-identifier-length]
        struct ewah_iterator it;
                             ^
/datasets/git/pack-bitmap.c:2089:10: warning: variable 'word' is not initialized [cppcoreguidelines-init-variables]
        eword_t word;
                ^
                     = 0
/datasets/git/pack-bitmap.c:2094:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                uint32_t offset, bit_pos;
                ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-bitmap.c:2094:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/pack-bitmap.c:2094:12: warning: variable 'offset' is not initialized [cppcoreguidelines-init-variables]
                uint32_t offset, bit_pos;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-bitmap.c:2094:20: warning: variable 'bit_pos' is not initialized [cppcoreguidelines-init-variables]
                uint32_t offset, bit_pos;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-bitmap.c:2096:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (offset = 0; offset < BITS_IN_EWORD; ++offset) {
                ^
/datasets/git/pack-bitmap.c:2096:20: warning: backward branch (for loop) is ID-dependent due to variable reference to 'offset' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (offset = 0; offset < BITS_IN_EWORD; ++offset) {
                                 ^
/datasets/git/pack-bitmap.c:2097:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if ((word >> offset) == 0)
                                                  ^
                                                   {
/datasets/git/pack-bitmap.c:2103:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (bit_pos > 0)
                                        ^
                                         {
/datasets/git/pack-bitmap.c:2105:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else /* can't reuse, we don't have the object */
                            ^
                             {
/datasets/git/pack-bitmap.c:2117:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        uint32_t i, num_objects;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-bitmap.c:2117:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i, num_objects;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-bitmap.c:2117:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-bitmap.c:2117:14: warning: variable 'num_objects' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i, num_objects;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-bitmap.c:2118:12: warning: variable 'reposition' is not initialized [cppcoreguidelines-init-variables]
        uint32_t *reposition;
                  ^
                             = NULL
/datasets/git/pack-bitmap.c:2120:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!bitmap_is_midx(bitmap_git))
                                        ^
                                         {
/datasets/git/pack-bitmap.c:2122:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (load_midx_revindex(bitmap_git->midx) < 0)
                                                          ^
                                                           {
/datasets/git/pack-bitmap.c:2129:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < num_objects; ++i) {
        ^
/datasets/git/pack-bitmap.c:2129:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'num_objects' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < num_objects; ++i) {
                    ^
/datasets/git/pack-bitmap.c:2131:24: warning: variable 'oe' is not initialized [cppcoreguidelines-init-variables]
                struct object_entry *oe;
                                     ^
                                        = NULL
/datasets/git/pack-bitmap.c:2131:24: warning: variable name 'oe' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-bitmap.c:2132:12: warning: variable 'index_pos' is not initialized [cppcoreguidelines-init-variables]
                uint32_t index_pos;
                         ^
                                   = 0
/datasets/git/pack-bitmap.c:2134:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (bitmap_is_midx(bitmap_git))
                                               ^
                                                {
/datasets/git/pack-bitmap.c:2136:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/pack-bitmap.c:2143:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (bitmap_git->hashes && !oe->hash)
                                                            ^
                                                             {
/datasets/git/pack-bitmap.c:2151:45: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
void free_bitmap_index(struct bitmap_index *b)
                                            ^
/datasets/git/pack-bitmap.c:2153:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!b)
               ^
                {
/datasets/git/pack-bitmap.c:2156:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (b->map)
                   ^
                    {
/datasets/git/pack-bitmap.c:2163:25: warning: variable 'sb' is not initialized [cppcoreguidelines-init-variables]
                struct stored_bitmap *sb;
                                      ^
                                         = NULL
/datasets/git/pack-bitmap.c:2163:25: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/./khash.h:335:1: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
KHASH_INIT(oid_map, struct object_id, void *, 1, oidhash_by_value, oideq_by_value)
^
/datasets/git/./khash.h:233:2: note: expanded from macro 'KHASH_INIT'
        KHASH_INIT2(name, MAYBE_UNUSED static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
        ^
/datasets/git/./khash.h:229:2: note: expanded from macro 'KHASH_INIT2'
        __KHASH_TYPE(name, khkey_t, khval_t)                                                            \
        ^
/datasets/git/./khash.h:66:3: note: expanded from macro '__KHASH_TYPE'
                khint_t n_buckets, size, n_occupied, upper_bound; \
                ^
/datasets/git/pack-bitmap.c:2164:3: warning: backward branch (for loop) is ID-dependent due to member reference to 'n_buckets' and may cause performance degradation [altera-id-dependent-backward-branch]
                kh_foreach_value(b->bitmaps, sb, {
                ^
/datasets/git/./khash.h:317:26: note: expanded from macro 'kh_foreach_value'
        for (__i = kh_begin(h); __i != kh_end(h); ++__i) {              \
                                ^
/datasets/git/pack-bitmap.c:2164:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                kh_foreach_value(b->bitmaps, sb, {
                ^
/datasets/git/./khash.h:317:2: note: expanded from macro 'kh_foreach_value'
        for (__i = kh_begin(h); __i != kh_end(h); ++__i) {              \
        ^
/datasets/git/pack-bitmap.c:2164:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                kh_foreach_value(b->bitmaps, sb, {
                ^
/datasets/git/./khash.h:318:8: note: expanded from macro 'kh_foreach_value'
                if (!kh_exist(h,__i)) continue;                                         \
                     ^~~~~~~~~~~~~~~
/datasets/git/./khash.h:243:26: note: expanded from macro 'kh_exist'
#define kh_exist(h, x) (!__ac_iseither((h)->flags, (x)))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./khash.h:42:33: note: expanded from macro '__ac_iseither'
#define __ac_iseither(flag, i) ((flag[i>>4]>>((i&0xfU)<<1))&3)
                                ^                           ~
/datasets/git/pack-bitmap.c:2203:23: warning: variable name 'it' is too short, expected at least 3 characters [readability-identifier-length]
        struct ewah_iterator it;
                             ^
/datasets/git/pack-bitmap.c:2204:10: warning: variable 'filter' is not initialized [cppcoreguidelines-init-variables]
        eword_t filter;
                ^
                       = 0
/datasets/git/pack-bitmap.c:2205:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i;
               ^
                 = 0
/datasets/git/pack-bitmap.c:2205:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-bitmap.c:2208:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'result' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < result->word_alloc &&
                    ^
/datasets/git/pack-bitmap.c:2212:12: warning: variable 'offset' is not initialized [cppcoreguidelines-init-variables]
                unsigned offset;
                         ^
                                = 0
/datasets/git/pack-bitmap.c:2214:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!word)
                          ^
                           {
/datasets/git/pack-bitmap.c:2217:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (offset = 0; offset < BITS_IN_EWORD; offset++) {
                ^
/datasets/git/pack-bitmap.c:2217:20: warning: backward branch (for loop) is ID-dependent due to variable reference to 'offset' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (offset = 0; offset < BITS_IN_EWORD; offset++) {
                                 ^
/datasets/git/pack-bitmap.c:2218:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if ((word >> offset) == 0)
                                                  ^
                                                   {
/datasets/git/pack-bitmap.c:2224:14: warning: variable 'pack_pos' is not initialized [cppcoreguidelines-init-variables]
                                uint32_t pack_pos;
                                         ^
                                                  = 0
/datasets/git/pack-bitmap.c:2256:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct eindex *eindex = &bitmap_git->ext_index;
        ^
/datasets/git/pack-bitmap.c:2258:21: warning: variable name 'oi' is too short, expected at least 3 characters [readability-identifier-length]
        struct object_info oi = OBJECT_INFO_INIT;
                           ^
/datasets/git/pack-bitmap.c:2259:8: warning: variable 'object_size' is not initialized [cppcoreguidelines-init-variables]
        off_t object_size;
              ^
                          = 0
/datasets/git/pack-bitmap.c:2260:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i;
               ^
                 = 0
/datasets/git/pack-bitmap.c:2260:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-bitmap.c:2264:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < eindex->count; i++) {
        ^
/datasets/git/pack-bitmap.c:2264:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'eindex' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < eindex->count; i++) {
                    ^
/datasets/git/pack-bitmap.c:2267:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!bitmap_get(result, bitmap_num_objects(bitmap_git) + i))
                                                                            ^
                                                                             {
/datasets/git/pack-bitmap.c:2270:71: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (oid_object_info_extended(the_repository, &obj->oid, &oi, 0) < 0)
                                                                                    ^
                                                                                     {
/datasets/git/pack-bitmap.c:2285:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->tree_objects)
                               ^
                                {
/datasets/git/pack-bitmap.c:2287:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->blob_objects)
                               ^
                                {
/datasets/git/pack-bitmap.c:2289:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->tag_objects)
                              ^
                               {
/datasets/git/pack-bitmap.c:2302:68: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
const struct string_list *bitmap_preferred_tips(struct repository *r)
                                                                   ^
/datasets/git/pack-bitmap.c:2307:52: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int bitmap_is_preferred_refname(struct repository *r, const char *refname)
                                                   ^
/datasets/git/pack-bitmap.c:2310:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/pack-bitmap.c:2312:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!preferred_tips)
                            ^
                             {
/datasets/git/pack-bitmap.c:2315:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(item, preferred_tips) {
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/pack-bitmap.c:2315:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(item, preferred_tips) {
                                  ^
/datasets/git/pack-bitmap.c:2316:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (starts_with(refname, item->string))
                                                       ^
                                                        {
/datasets/git/pack-check.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "repository.h"
^        ~~~~~~~~~~~~~~
         "object-store.h"
/datasets/git/pack-check.c:9:8: warning: accessing fields in struct 'idx_entry' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct idx_entry {
       ^
/datasets/git/pack-check.c:9:8: note: use "__attribute__((aligned(16)))" to align struct 'idx_entry' to 16 bytes
/datasets/git/pack-check.c:14:40: warning: parameter name 'e1' is too short, expected at least 3 characters [readability-identifier-length]
static int compare_entries(const void *e1, const void *e2)
                                       ^
/datasets/git/pack-check.c:14:56: warning: parameter name 'e2' is too short, expected at least 3 characters [readability-identifier-length]
static int compare_entries(const void *e1, const void *e2)
                                                       ^
/datasets/git/pack-check.c:18:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (entry1->offset < entry2->offset)
                                            ^
                                             {
/datasets/git/pack-check.c:20:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (entry1->offset > entry2->offset)
                                            ^
                                             {
/datasets/git/pack-check.c:25:39: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
int check_pack_crc(struct packed_git *p, struct pack_window **w_curs,
                                      ^
/datasets/git/pack-check.c:26:6: warning: 3 adjacent parameters of 'check_pack_crc' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                   off_t offset, off_t len, unsigned int nr)
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-check.c:26:12: note: the first parameter in the range is 'offset'
                   off_t offset, off_t len, unsigned int nr)
                         ^~~~~~
/datasets/git/pack-check.c:26:44: note: the last parameter in the range is 'nr'
                   off_t offset, off_t len, unsigned int nr)
                                                         ^~
/datasets/git/pack-check.c:26:6: note: 
                   off_t offset, off_t len, unsigned int nr)
                   ^
/datasets/git/pack-check.c:26:31: note: 'off_t' and 'unsigned int' may be implicitly converted: 'off_t' (as 'long') -> 'unsigned int', 'unsigned int' -> 'off_t' (as 'long')
                   off_t offset, off_t len, unsigned int nr)
                                            ^
/datasets/git/pack-check.c:26:44: warning: parameter name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
                   off_t offset, off_t len, unsigned int nr)
                                                         ^
/datasets/git/pack-check.c:26:20: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                   off_t offset, off_t len, unsigned int nr)
                                 ^
/datasets/git/pack-check.c:28:18: warning: variable 'index_crc' is not initialized [cppcoreguidelines-init-variables]
        const uint32_t *index_crc;
                        ^
                                  = NULL
/datasets/git/pack-check.c:31:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        do {
        ^
/datasets/git/pack-check.c:32:17: warning: variable 'avail' is not initialized [cppcoreguidelines-init-variables]
                unsigned long avail;
                              ^
                                    = 0
/datasets/git/pack-check.c:34:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (avail > len)
                                ^
                                 {
/datasets/git/pack-check.c:37:13: warning: narrowing conversion from 'unsigned long' to signed type 'off_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                offset += avail;
                          ^
/datasets/git/pack-check.c:38:10: warning: narrowing conversion from 'unsigned long' to signed type 'off_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                len -= avail;
                       ^
/datasets/git/pack-check.c:39:11: warning: backward branch (do loop) is ID-dependent due to variable reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
        } while (len);
                 ^
/datasets/git/pack-check.c:42:19: warning: 256 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        index_crc += 2 + 256 + (size_t)p->num_objects * (the_hash_algo->rawsz/4) + nr;
                         ^
/datasets/git/pack-check.c:47:12: warning: function 'verify_packfile' has cognitive complexity of 34 (threshold 25) [readability-function-cognitive-complexity]
static int verify_packfile(struct repository *r,
           ^
/datasets/git/pack-check.c:63:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!is_pack_valid(p))
        ^
/datasets/git/pack-check.c:67:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        do {
        ^
/datasets/git/pack-check.c:71:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!pack_sig_ofs)
                ^
/datasets/git/pack-check.c:73:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (offset > pack_sig_ofs)
                ^
/datasets/git/pack-check.c:79:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!hasheq(hash, pack_sig))
        ^
/datasets/git/pack-check.c:82:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!hasheq(index_base + index_size - r->hash_algo->hexsz, pack_sig))
        ^
/datasets/git/pack-check.c:95:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < nr_objects; i++) {
        ^
/datasets/git/pack-check.c:101:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < nr_objects; i++) {
        ^
/datasets/git/pack-check.c:109:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (nth_packed_object_id(&oid, p, entries[i].nr) < 0)
                ^
/datasets/git/pack-check.c:113:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (p->index_version > 1) {
                ^
/datasets/git/pack-check.c:117:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (check_pack_crc(p, w_curs, offset, len, nr))
                        ^
/datasets/git/pack-check.c:128:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (type == OBJ_BLOB && big_file_threshold <= size) {
                ^
/datasets/git/pack-check.c:128:24: note: +1
                if (type == OBJ_BLOB && big_file_threshold <= size) {
                                     ^
/datasets/git/pack-check.c:136:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/pack-check.c:141:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (data_valid && !data)
                ^
/datasets/git/pack-check.c:141:18: note: +1
                if (data_valid && !data)
                               ^
/datasets/git/pack-check.c:145:8: note: +1, nesting level increased to 2
                else if (data && check_object_signature(r, &oid, data, size,
                     ^
/datasets/git/pack-check.c:145:17: note: +1
                else if (data && check_object_signature(r, &oid, data, size,
                              ^
/datasets/git/pack-check.c:149:8: note: +1, nesting level increased to 2
                else if (!data && stream_object_signature(r, &oid) < 0)
                     ^
/datasets/git/pack-check.c:149:18: note: +1
                else if (!data && stream_object_signature(r, &oid) < 0)
                               ^
/datasets/git/pack-check.c:152:8: note: +1, nesting level increased to 2
                else if (fn) {
                     ^
/datasets/git/pack-check.c:155:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (eaten)
                        ^
/datasets/git/pack-check.c:158:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (((base_count + i) & 1023) == 0)
                ^
/datasets/git/pack-check.c:47:47: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int verify_packfile(struct repository *r,
                                              ^
/datasets/git/pack-check.c:48:26: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                           struct packed_git *p,
                                              ^
/datasets/git/pack-check.c:50:17: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
                           verify_fn fn,
                                     ^
/datasets/git/pack-check.c:54:21: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'off_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        off_t index_size = p->index_size;
                           ^
/datasets/git/pack-check.c:57:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned char hash[GIT_MAX_RAWSZ], *pack_sig;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-check.c:57:38: warning: variable 'pack_sig' is not initialized [cppcoreguidelines-init-variables]
        unsigned char hash[GIT_MAX_RAWSZ], *pack_sig;
                                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-check.c:58:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        off_t offset = 0, pack_sig_ofs = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-check.c:59:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        uint32_t nr_objects, i;
        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-check.c:59:11: warning: variable 'nr_objects' is not initialized [cppcoreguidelines-init-variables]
        uint32_t nr_objects, i;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-check.c:59:23: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t nr_objects, i;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-check.c:59:23: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-check.c:61:20: warning: variable 'entries' is not initialized [cppcoreguidelines-init-variables]
        struct idx_entry *entries;
                          ^
                                  = NULL
/datasets/git/pack-check.c:63:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_pack_valid(p))
                              ^
                               {
/datasets/git/pack-check.c:67:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        do {
        ^
/datasets/git/pack-check.c:68:17: warning: variable 'remaining' is not initialized [cppcoreguidelines-init-variables]
                unsigned long remaining;
                              ^
                                        = 0
/datasets/git/pack-check.c:69:18: warning: variable name 'in' is too short, expected at least 3 characters [readability-identifier-length]
                unsigned char *in = use_pack(p, w_curs, offset, &remaining);
                               ^
/datasets/git/pack-check.c:70:13: warning: narrowing conversion from 'unsigned long' to signed type 'off_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                offset += remaining;
                          ^
/datasets/git/pack-check.c:71:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!pack_sig_ofs)
                                  ^
                                   {
/datasets/git/pack-check.c:72:19: warning: narrowing conversion from 'unsigned long' to signed type 'off_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        pack_sig_ofs = p->pack_size - r->hash_algo->rawsz;
                                       ^
/datasets/git/pack-check.c:73:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (offset > pack_sig_ofs)
                                          ^
                                           {
/datasets/git/pack-check.c:76:11: warning: backward branch (do loop) is ID-dependent due to variable reference to 'offset' and may cause performance degradation [altera-id-dependent-backward-branch]
        } while (offset < pack_sig_ofs);
                 ^
/datasets/git/pack-check.c:79:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!hasheq(hash, pack_sig))
                                    ^
                                     {
/datasets/git/pack-check.c:82:71: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!hasheq(index_base + index_size - r->hash_algo->hexsz, pack_sig))
                                                                             ^
                                                                              {
/datasets/git/pack-check.c:95:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr_objects; i++) {
        ^
/datasets/git/pack-check.c:59:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        uint32_t nr_objects, i;
        ^
/datasets/git/pack-check.c:95:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'nr_objects' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < nr_objects; i++) {
                    ^
/datasets/git/pack-check.c:101:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr_objects; i++) {
        ^
/datasets/git/pack-check.c:101:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'nr_objects' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < nr_objects; i++) {
                    ^
/datasets/git/pack-check.c:102:9: warning: variable 'data' is not initialized [cppcoreguidelines-init-variables]
                void *data;
                      ^
                           = NULL
/datasets/git/pack-check.c:104:20: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
                enum object_type type;
                                 ^
/datasets/git/pack-check.c:105:17: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
                unsigned long size;
                              ^
                                   = 0
/datasets/git/pack-check.c:106:9: warning: variable 'curpos' is not initialized [cppcoreguidelines-init-variables]
                off_t curpos;
                      ^
                             = 0
/datasets/git/pack-check.c:107:7: warning: variable 'data_valid' is not initialized [cppcoreguidelines-init-variables]
                int data_valid;
                    ^
                               = 0
/datasets/git/pack-check.c:109:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (nth_packed_object_id(&oid, p, entries[i].nr) < 0)
                                                                     ^
                                                                      {
/datasets/git/pack-check.c:116:17: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
                        unsigned int nr = entries[i].nr;
                                     ^
/datasets/git/pack-check.c:117:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (check_pack_crc(p, w_curs, offset, len, nr))
                                                                       ^
                                                                        {
/datasets/git/pack-check.c:141:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (data_valid && !data)
                                        ^
                                         {
/datasets/git/pack-check.c:146:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                        type) < 0)
                                                                  ^
                                                                   {
/datasets/git/pack-check.c:147:4: warning: repeated branch in conditional chain [bugprone-branch-clone]
                        err = error("packed %s from %s is corrupt",
                        ^
/datasets/git/pack-check.c:148:40: note: end of the original
                                    oid_to_hex(&oid), p->pack_name);
                                                                   ^
/datasets/git/pack-check.c:150:4: note: clone 1 starts here
                        err = error("packed %s from %s is corrupt",
                        ^
/datasets/git/pack-check.c:149:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!data && stream_object_signature(r, &oid) < 0)
                                                                       ^
                                                                        {
/datasets/git/pack-check.c:154:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        err |= fn(&oid, type, size, data, &eaten);
                        ^~~
/datasets/git/pack-check.c:155:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (eaten)
                                  ^
                                   {
/datasets/git/pack-check.c:158:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (((base_count + i) & 1023) == 0)
                     ^                  ~~~~
/datasets/git/pack-check.c:158:27: warning: 1023 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (((base_count + i) & 1023) == 0)
                                        ^
/datasets/git/pack-check.c:158:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (((base_count + i) & 1023) == 0)
                                                   ^
                                                    {
/datasets/git/pack-check.c:169:42: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
int verify_pack_index(struct packed_git *p)
                                         ^
/datasets/git/pack-check.c:173:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (open_pack_index(p))
                               ^
                                {
/datasets/git/pack-check.c:177:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!hashfile_checksum_valid(p->index_data, p->index_size))
                                                                   ^
                                                                    {
/datasets/git/pack-check.c:183:36: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int verify_pack(struct repository *r, struct packed_git *p, verify_fn fn,
                                   ^
/datasets/git/pack-check.c:183:58: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
int verify_pack(struct repository *r, struct packed_git *p, verify_fn fn,
                                                         ^
/datasets/git/pack-check.c:183:71: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
int verify_pack(struct repository *r, struct packed_git *p, verify_fn fn,
                                                                      ^
/datasets/git/pack-check.c:189:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        err |= verify_pack_index(p);
        ^~~
/datasets/git/pack-check.c:190:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!p->index_data)
                           ^
                            {
/datasets/git/pack-check.c:193:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        err |= verify_packfile(r, p, &w_curs, fn, progress, base_count);
        ^~~
/datasets/git/pack-mtimes.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "pack-mtimes.h"
^        ~~~~~~~~~~~~~~~
         "object-store.h"
/datasets/git/pack-mtimes.c:6:54: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static char *pack_mtimes_filename(struct packed_git *p)
                                                     ^
/datasets/git/pack-mtimes.c:8:9: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        size_t len;
               ^
                   = 0
/datasets/git/pack-mtimes.c:9:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strip_suffix(p->pack_name, ".pack", &len))
                                                       ^
                                                        {
/datasets/git/pack-mtimes.c:14:1: warning: replace macro with enum [modernize-macro-to-enum]
#define MTIMES_HEADER_SIZE (12)
^~~~~~~~
                           =
/datasets/git/pack-mtimes.c:14:9: warning: macro 'MTIMES_HEADER_SIZE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define MTIMES_HEADER_SIZE (12)
        ^
/datasets/git/pack-mtimes.c:16:8: warning: accessing fields in struct 'mtimes_header' is inefficient due to poor alignment; currently aligned to 4 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct mtimes_header {
       ^
/datasets/git/pack-mtimes.c:16:8: note: use "__attribute__((aligned(16)))" to align struct 'mtimes_header' to 16 bytes
/datasets/git/pack-mtimes.c:26:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int fd, ret = 0;
        ^~~~~~~~~~~~~~~~
/datasets/git/pack-mtimes.c:26:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd, ret = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-mtimes.c:26:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-mtimes.c:27:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/pack-mtimes.c:29:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t mtimes_size, expected_size;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-mtimes.c:29:9: warning: variable 'mtimes_size' is not initialized [cppcoreguidelines-init-variables]
        size_t mtimes_size, expected_size;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-mtimes.c:29:22: warning: variable 'expected_size' is not initialized [cppcoreguidelines-init-variables]
        size_t mtimes_size, expected_size;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-mtimes.c:76:40: warning: performing an implicit widening conversion to type 'size_t' (aka 'unsigned long') of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        expected_size = st_add(expected_size, 2 * (header.hash_id == 1 ? GIT_SHA1_RAWSZ : GIT_SHA256_RAWSZ));
                                              ^
/datasets/git/pack-mtimes.c:76:40: note: make conversion explicit to silence this warning
        expected_size = st_add(expected_size, 2 * (header.hash_id == 1 ? GIT_SHA1_RAWSZ : GIT_SHA256_RAWSZ));
                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                              (size_t)(                                                   )
/datasets/git/pack-mtimes.c:76:40: note: perform multiplication in a wider type
        expected_size = st_add(expected_size, 2 * (header.hash_id == 1 ? GIT_SHA1_RAWSZ : GIT_SHA256_RAWSZ));
                                              ^
                                              (long)
/datasets/git/pack-mtimes.c:85:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (data)
                         ^
                          {
/datasets/git/pack-mtimes.c:92:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fd >= 0)
                    ^
                     {
/datasets/git/pack-mtimes.c:97:41: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
int load_pack_mtimes(struct packed_git *p)
                                        ^
/datasets/git/pack-mtimes.c:102:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!p->is_cruft)
                         ^
                          {
/datasets/git/pack-mtimes.c:104:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (p->mtimes_map)
                          ^
                           {
/datasets/git/pack-mtimes.c:108:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret < 0)
                    ^
                     {
/datasets/git/pack-mtimes.c:121:46: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
uint32_t nth_packed_mtime(struct packed_git *p, uint32_t pos)
                                             ^
/datasets/git/pack-mtimes.c:123:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!p->mtimes_map)
                           ^
                            {
/datasets/git/pack-mtimes.c:125:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (p->num_objects <= pos)
                                  ^
                                   {
/datasets/git/pack-objects.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "object.h"
^        ~~~~~~~~~~
         "config.h"
/datasets/git/pack-objects.c:12:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        uint32_t i, mask = (pdata->index_size - 1);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-objects.c:12:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/pack-objects.c:12:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i, mask = (pdata->index_size - 1);
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-objects.c:12:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-objects.c:16:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (pdata->index[i] > 0) {
        ^
/datasets/git/pack-objects.c:16:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (pdata->index[i] > 0) {
               ^
/datasets/git/pack-objects.c:31:46: warning: parameter name 'v' is too short, expected at least 3 characters [readability-identifier-length]
static inline uint32_t closest_pow2(uint32_t v)
                                             ^
/datasets/git/pack-objects.c:34:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        v |= v >> 1;
             ^    ~
/datasets/git/pack-objects.c:35:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        v |= v >> 2;
             ^    ~
/datasets/git/pack-objects.c:36:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        v |= v >> 4;
             ^    ~
/datasets/git/pack-objects.c:37:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        v |= v >> 8;
             ^    ~
/datasets/git/pack-objects.c:37:12: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        v |= v >> 8;
                  ^
/datasets/git/pack-objects.c:38:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        v |= v >> 16;
             ^    ~~
/datasets/git/pack-objects.c:38:12: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        v |= v >> 16;
                  ^
/datasets/git/pack-objects.c:44:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i;
                 ^
                   = 0
/datasets/git/pack-objects.c:44:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-objects.c:45:23: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
        struct object_entry *entry;
                             ^
                                   = NULL
/datasets/git/pack-objects.c:48:26: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (pdata->index_size < 1024)
                                ^
/datasets/git/pack-objects.c:48:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pdata->index_size < 1024)
                                     ^
                                      {
/datasets/git/pack-objects.c:49:23: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                pdata->index_size = 1024;
                                    ^
/datasets/git/pack-objects.c:56:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < pdata->nr_objects; i++) {
        ^
/datasets/git/pack-objects.c:57:7: warning: variable 'found' is not initialized [cppcoreguidelines-init-variables]
                int found;
                    ^
                          = 0
/datasets/git/pack-objects.c:58:12: warning: variable name 'ix' is too short, expected at least 3 characters [readability-identifier-length]
                uint32_t ix = locate_object_entry_hash(pdata,
                         ^
/datasets/git/pack-objects.c:62:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (found)
                          ^
                           {
/datasets/git/pack-objects.c:65:22: warning: narrowing conversion from 'unsigned int' to signed type 'int32_t' (aka 'int') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                pdata->index[ix] = i + 1;
                                   ^
/datasets/git/pack-objects.c:73:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i;
                 ^
                   = 0
/datasets/git/pack-objects.c:73:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-objects.c:74:6: warning: variable 'found' is not initialized [cppcoreguidelines-init-variables]
        int found;
            ^
                  = 0
/datasets/git/pack-objects.c:76:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!pdata->index_size)
                               ^
                                {
/datasets/git/pack-objects.c:81:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!found)
                   ^
                    {
/datasets/git/pack-objects.c:89:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct packed_git **mapping, *p;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-objects.c:89:22: warning: variable 'mapping' is not initialized [cppcoreguidelines-init-variables]
        struct packed_git **mapping, *p;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-objects.c:89:32: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct packed_git **mapping, *p;
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-objects.c:89:32: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-objects.c:90:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int cnt = 0, nr = 1U << OE_IN_PACK_BITS;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-objects.c:89:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct packed_git **mapping, *p;
        ^
/datasets/git/pack-objects.c:90:15: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
        int cnt = 0, nr = 1U << OE_IN_PACK_BITS;
                     ^
/datasets/git/pack-objects.c:90:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int cnt = 0, nr = 1U << OE_IN_PACK_BITS;
                          ^
/datasets/git/pack-objects.c:92:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_ARRAY(mapping, nr);
        ^
/datasets/git/./git-compat-util.h:1090:53: note: expanded from macro 'ALLOC_ARRAY'
#define ALLOC_ARRAY(x, alloc) (x) = xmalloc(st_mult(sizeof(*(x)), (alloc)))
                                                    ^
/datasets/git/pack-objects.c:98:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = get_all_packs(pdata->repo); p; p = p->next, cnt++) {
        ^
/datasets/git/pack-objects.c:98:39: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = get_all_packs(pdata->repo); p; p = p->next, cnt++) {
                                             ^
/datasets/git/pack-objects.c:120:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i;
                 ^
                   = 0
/datasets/git/pack-objects.c:120:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-objects.c:122:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pack->in_pack)
                          ^
                           {
/datasets/git/pack-objects.c:125:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_ARRAY(pack->in_pack, pack->nr_alloc);
        ^
/datasets/git/./git-compat-util.h:1090:53: note: expanded from macro 'ALLOC_ARRAY'
#define ALLOC_ARRAY(x, alloc) (x) = xmalloc(st_mult(sizeof(*(x)), (alloc)))
                                                    ^
/datasets/git/pack-objects.c:127:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < pack->nr_objects; i++)
        ^
/datasets/git/pack-objects.c:127:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < pack->nr_objects; i++)
                                              ^
                                               {
/datasets/git/pack-objects.c:130:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(pack->in_pack_by_idx);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/pack-objects.c:134:46: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void prepare_packing_data(struct repository *r, struct packing_data *pdata)
                                             ^
/datasets/git/pack-objects.c:148:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                             1U << OE_SIZE_BITS);
                                             ^
/datasets/git/pack-objects.c:150:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                                   1UL << OE_DELTA_SIZE_BITS);
                                                   ^
/datasets/git/pack-objects.c:157:23: warning: variable 'new_entry' is not initialized [cppcoreguidelines-init-variables]
        struct object_entry *new_entry;
                             ^
                                       = NULL
/datasets/git/pack-objects.c:160:41: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                pdata->nr_alloc = (pdata->nr_alloc  + 1024) * 3 / 2;
                                                      ^
/datasets/git/pack-objects.c:163:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!pdata->in_pack_by_idx)
                                           ^
                                            {
/datasets/git/pack-objects.c:164:4: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                        REALLOC_ARRAY(pdata->in_pack, pdata->nr_alloc);
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/pack-objects.c:165:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pdata->delta_size)
                                      ^
                                       {
/datasets/git/pack-objects.c:168:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pdata->tree_depth)
                                      ^
                                       {
/datasets/git/pack-objects.c:171:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pdata->layer)
                                 ^
                                  {
/datasets/git/pack-objects.c:174:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pdata->cruft_mtime)
                                       ^
                                        {
/datasets/git/pack-objects.c:180:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(new_entry, 0, sizeof(*new_entry));
        ^~~~~~
/datasets/git/pack-objects.c:180:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(new_entry, 0, sizeof(*new_entry));
        ^~~~~~
/datasets/git/pack-objects.c:183:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pdata->index_size * 3 <= pdata->nr_objects * 4)
                                                           ^
                                                            {
/datasets/git/pack-objects.c:186:7: warning: variable 'found' is not initialized [cppcoreguidelines-init-variables]
                int found;
                    ^
                          = 0
/datasets/git/pack-objects.c:190:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (found)
                          ^
                           {
/datasets/git/pack-objects.c:192:23: warning: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'int32_t' (aka 'int') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                pdata->index[pos] = pdata->nr_objects;
                                    ^
/datasets/git/pack-objects.c:195:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pdata->in_pack)
                           ^
                            {
/datasets/git/pack-objects.c:198:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pdata->tree_depth)
                              ^
                               {
/datasets/git/pack-objects.c:201:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pdata->layer)
                         ^
                          {
/datasets/git/pack-objects.c:204:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pdata->cruft_mtime)
                               ^
                                {
/datasets/git/pack-objects.c:214:23: warning: variable 'base' is not initialized [cppcoreguidelines-init-variables]
        struct object_entry *base;
                             ^
                                  = NULL
/datasets/git/pack-objects.c:216:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(pdata->ext_bases, pdata->nr_ext + 1, pdata->alloc_ext);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/pack-objects.c:218:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(base, 0, sizeof(*base));
        ^~~~~~
/datasets/git/pack-objects.c:218:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(base, 0, sizeof(*base));
        ^~~~~~
/datasets/git/pack-revindex.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "pack-revindex.h"
^        ~~~~~~~~~~~~~~~~~
         "config.h"
/datasets/git/pack-revindex.c:8:8: warning: accessing fields in struct 'revindex_entry' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct revindex_entry {
       ^
/datasets/git/pack-revindex.c:8:8: note: use "__attribute__((aligned(16)))" to align struct 'revindex_entry' to 16 bytes
/datasets/git/pack-revindex.c:34:59: warning: 2 adjacent parameters of 'sort_revindex' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void sort_revindex(struct revindex_entry *entries, unsigned n, off_t max)
                                                          ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-revindex.c:34:68: note: the first parameter in the range is 'n'
static void sort_revindex(struct revindex_entry *entries, unsigned n, off_t max)
                                                                   ^
/datasets/git/pack-revindex.c:34:77: note: the last parameter in the range is 'max'
static void sort_revindex(struct revindex_entry *entries, unsigned n, off_t max)
                                                                            ^~~
/datasets/git/pack-revindex.c:34:59: note: 
static void sort_revindex(struct revindex_entry *entries, unsigned n, off_t max)
                                                          ^
/datasets/git/pack-revindex.c:34:71: note: 'unsigned int' and 'off_t' may be implicitly converted: 'unsigned int' -> 'off_t' (as 'long'), 'off_t' (as 'long') -> 'unsigned int'
static void sort_revindex(struct revindex_entry *entries, unsigned n, off_t max)
                                                                      ^
/datasets/git/pack-revindex.c:56:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct revindex_entry *tmp, *from, *to;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-revindex.c:56:25: warning: variable 'tmp' is not initialized [cppcoreguidelines-init-variables]
        struct revindex_entry *tmp, *from, *to;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-revindex.c:56:31: warning: variable 'from' is not initialized [cppcoreguidelines-init-variables]
        struct revindex_entry *tmp, *from, *to;
                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-revindex.c:56:38: warning: variable 'to' is not initialized [cppcoreguidelines-init-variables]
        struct revindex_entry *tmp, *from, *to;
                                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-revindex.c:56:38: warning: variable name 'to' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-revindex.c:57:6: warning: variable 'bits' is not initialized [cppcoreguidelines-init-variables]
        int bits;
            ^
                 = 0
/datasets/git/pack-revindex.c:58:12: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        unsigned *pos;
                  ^
                      = NULL
/datasets/git/pack-revindex.c:60:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ALLOC_ARRAY(pos, BUCKETS);
                         ^
/datasets/git/pack-revindex.c:42:18: note: expanded from macro 'BUCKETS'
#define BUCKETS (1 << DIGIT_SIZE)
                 ^
/datasets/git/./git-compat-util.h:1090:68: note: expanded from macro 'ALLOC_ARRAY'
#define ALLOC_ARRAY(x, alloc) (x) = xmalloc(st_mult(sizeof(*(x)), (alloc)))
                                                                   ^~~~~
/datasets/git/pack-revindex.c:70:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        for (bits = 0; max >> bits; bits += DIGIT_SIZE) {
                       ^~~
/datasets/git/pack-revindex.c:71:12: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                unsigned i;
                         ^
                           = 0
/datasets/git/pack-revindex.c:71:12: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-revindex.c:73:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(pos, 0, BUCKETS * sizeof(*pos));
                ^~~~~~
/datasets/git/pack-revindex.c:73:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(pos, 0, BUCKETS * sizeof(*pos));
                ^~~~~~
/datasets/git/pack-revindex.c:73:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                memset(pos, 0, BUCKETS * sizeof(*pos));
                               ^
/datasets/git/pack-revindex.c:42:18: note: expanded from macro 'BUCKETS'
#define BUCKETS (1 << DIGIT_SIZE)
                 ^
/datasets/git/pack-revindex.c:83:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < n; i++)
                ^
/datasets/git/pack-revindex.c:83:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < n; i++)
                            ^
/datasets/git/pack-revindex.c:83:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < n; i++)
                                       ^
                                        {
/datasets/git/pack-revindex.c:84:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        pos[BUCKET_FOR(from, i, bits)]++;
                            ^
/datasets/git/pack-revindex.c:47:33: note: expanded from macro 'BUCKET_FOR'
#define BUCKET_FOR(a, i, bits) (((a)[(i)].offset >> (bits)) & (BUCKETS-1))
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-revindex.c:85:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 1; i < BUCKETS; i++)
                ^
/datasets/git/pack-revindex.c:85:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 1; i < BUCKETS; i++)
                            ^
/datasets/git/pack-revindex.c:85:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                for (i = 1; i < BUCKETS; i++)
                                ^
/datasets/git/pack-revindex.c:42:18: note: expanded from macro 'BUCKETS'
#define BUCKETS (1 << DIGIT_SIZE)
                 ^
/datasets/git/pack-revindex.c:85:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 1; i < BUCKETS; i++)
                                             ^
                                              {
/datasets/git/pack-revindex.c:101:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = n - 1; i != UINT_MAX; i--)
                ^
/datasets/git/pack-revindex.c:101:19: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = n - 1; i != UINT_MAX; i--)
                                ^
/datasets/git/pack-revindex.c:101:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = n - 1; i != UINT_MAX; i--)
                                                   ^
                                                    {
/datasets/git/pack-revindex.c:102:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        to[--pos[BUCKET_FOR(from, i, bits)]] = from[i];
                                 ^
/datasets/git/pack-revindex.c:47:33: note: expanded from macro 'BUCKET_FOR'
#define BUCKET_FOR(a, i, bits) (((a)[(i)].offset >> (bits)) & (BUCKETS-1))
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-revindex.c:108:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                SWAP(from, to);
                ^
/datasets/git/./git-compat-util.h:759:20: note: expanded from macro 'SWAP'
#define SWAP(a, b) do {                                         \
                   ^
/datasets/git/pack-revindex.c:108:3: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                SWAP(from, to);
                ^
/datasets/git/./git-compat-util.h:762:29: note: expanded from macro 'SWAP'
        unsigned char _swap_buffer[sizeof(a)];                  \
                                   ^
/datasets/git/pack-revindex.c:108:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                SWAP(from, to);
                ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/pack-revindex.c:108:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                SWAP(from, to);
                ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/pack-revindex.c:115:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (from != entries)
                            ^
                             {
/datasets/git/pack-revindex.c:128:53: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static void create_pack_revindex(struct packed_git *p)
                                                    ^
/datasets/git/pack-revindex.c:131:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned i;
                 ^
                   = 0
/datasets/git/pack-revindex.c:131:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-revindex.c:136:2: warning: result of multiplication in type 'int' is used as a pointer offset after an implicit widening conversion to type 'ptrdiff_t' [bugprone-implicit-widening-of-multiplication-result]
        index += 4 * 256;
        ^
/datasets/git/pack-revindex.c:136:11: note: make conversion explicit to silence this warning
        index += 4 * 256;
                 ^~~~~~~
                 (ptrdiff_t)( )
/datasets/git/pack-revindex.c:136:11: note: perform multiplication in a wider type
        index += 4 * 256;
                 ^
                 (ptrdiff_t)
/datasets/git/pack-revindex.c:136:15: warning: 256 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        index += 4 * 256;
                     ^
/datasets/git/pack-revindex.c:140:25: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        (uint32_t *)(index + 8 + (size_t)p->num_objects * (hashsz + 4));
                                             ^
/datasets/git/pack-revindex.c:142:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < num_ent; i++) {
                ^
/datasets/git/pack-revindex.c:142:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'num_ent' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < num_ent; i++) {
                            ^
/datasets/git/pack-revindex.c:144:16: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        if (!(off & 0x80000000)) {
                                    ^
/datasets/git/pack-revindex.c:147:29: warning: narrowing conversion from 'uint64_t' (aka 'unsigned long') to signed type 'off_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                p->revindex[i].offset = get_be64(off_64);
                                                        ^
/datasets/git/pack-revindex.c:153:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < num_ent; i++) {
                ^
/datasets/git/pack-revindex.c:153:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'num_ent' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < num_ent; i++) {
                            ^
/datasets/git/pack-revindex.c:154:19: warning: variable name 'hl' is too short, expected at least 3 characters [readability-identifier-length]
                        const uint32_t hl = *((uint32_t *)(index + (hashsz + 4) * i));
                                       ^
/datasets/git/pack-revindex.c:154:39: warning: result of multiplication in type 'unsigned int' is used as a pointer offset after an implicit widening conversion to type 'size_t' [bugprone-implicit-widening-of-multiplication-result]
                        const uint32_t hl = *((uint32_t *)(index + (hashsz + 4) * i));
                                                           ^
/datasets/git/pack-revindex.c:154:47: note: make conversion explicit to silence this warning
                        const uint32_t hl = *((uint32_t *)(index + (hashsz + 4) * i));
                                                                   ^~~~~~~~~~~~~~~~
                                                                   (size_t)(      )
/datasets/git/pack-revindex.c:154:47: note: perform multiplication in a wider type
                        const uint32_t hl = *((uint32_t *)(index + (hashsz + 4) * i));
                                                                   ^~~~~~~~~~~
                                                                    (size_t)
/datasets/git/pack-revindex.c:169:62: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static int create_pack_revindex_in_memory(struct packed_git *p)
                                                             ^
/datasets/git/pack-revindex.c:171:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (git_env_bool(GIT_TEST_REV_INDEX_DIE_IN_MEMORY, 0))
                                                              ^
                                                               {
/datasets/git/pack-revindex.c:174:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (open_pack_index(p))
                               ^
                                {
/datasets/git/pack-revindex.c:180:56: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static char *pack_revindex_filename(struct packed_git *p)
                                                       ^
/datasets/git/pack-revindex.c:182:9: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        size_t len;
               ^
                   = 0
/datasets/git/pack-revindex.c:183:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strip_suffix(p->pack_name, ".pack", &len))
                                                       ^
                                                        {
/datasets/git/pack-revindex.c:188:1: warning: replace macro with enum [modernize-macro-to-enum]
#define RIDX_HEADER_SIZE (12)
^~~~~~~~
                         =
/datasets/git/pack-revindex.c:188:9: warning: macro 'RIDX_HEADER_SIZE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define RIDX_HEADER_SIZE (12)
        ^
/datasets/git/pack-revindex.c:191:8: warning: accessing fields in struct 'revindex_header' is inefficient due to poor alignment; currently aligned to 4 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct revindex_header {
       ^
/datasets/git/pack-revindex.c:191:8: note: use "__attribute__((aligned(16)))" to align struct 'revindex_header' to 16 bytes
/datasets/git/pack-revindex.c:201:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int fd, ret = 0;
        ^~~~~~~~~~~~~~~~
/datasets/git/pack-revindex.c:201:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd, ret = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-revindex.c:201:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-revindex.c:202:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/pack-revindex.c:204:9: warning: variable 'revindex_size' is not initialized [cppcoreguidelines-init-variables]
        size_t revindex_size;
               ^
                             = 0
/datasets/git/pack-revindex.c:205:26: warning: variable 'hdr' is not initialized [cppcoreguidelines-init-variables]
        struct revindex_header *hdr;
                                ^
                                    = NULL
/datasets/git/pack-revindex.c:250:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (data)
                         ^
                          {
/datasets/git/pack-revindex.c:257:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fd >= 0)
                    ^
                     {
/datasets/git/pack-revindex.c:262:60: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static int load_pack_revindex_from_disk(struct packed_git *p)
                                                           ^
/datasets/git/pack-revindex.c:264:8: warning: variable 'revindex_name' is not initialized [cppcoreguidelines-init-variables]
        char *revindex_name;
              ^
                            = NULL
/datasets/git/pack-revindex.c:265:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/pack-revindex.c:266:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (open_pack_index(p))
                               ^
                                {
/datasets/git/pack-revindex.c:275:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/pack-revindex.c:285:43: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
int load_pack_revindex(struct packed_git *p)
                                          ^
/datasets/git/pack-revindex.c:287:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (p->revindex || p->revindex_data)
                                            ^
                                             {
/datasets/git/pack-revindex.c:290:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!load_pack_revindex_from_disk(p))
                                             ^
                                              {
/datasets/git/pack-revindex.c:291:3: warning: repeated branch in conditional chain [bugprone-branch-clone]
                return 0;
                ^
/datasets/git/pack-revindex.c:291:11: note: end of the original
                return 0;
                        ^
/datasets/git/pack-revindex.c:293:3: note: clone 1 starts here
                return 0;
                ^
/datasets/git/pack-revindex.c:292:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (!create_pack_revindex_in_memory(p))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-revindex.c:292:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!create_pack_revindex_in_memory(p))
                                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-revindex.c:297:49: warning: parameter name 'm' is too short, expected at least 3 characters [readability-identifier-length]
int load_midx_revindex(struct multi_pack_index *m)
                                                ^
/datasets/git/pack-revindex.c:300:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/pack-revindex.c:302:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (m->revindex_data)
                             ^
                              {
/datasets/git/pack-revindex.c:330:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/pack-revindex.c:340:50: warning: parameter name 'm' is too short, expected at least 3 characters [readability-identifier-length]
int close_midx_revindex(struct multi_pack_index *m)
                                                 ^
/datasets/git/pack-revindex.c:342:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!m || !m->revindex_map)
                                   ^
                                    {
/datasets/git/pack-revindex.c:354:43: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
int offset_to_pack_pos(struct packed_git *p, off_t ofs, uint32_t *pos)
                                          ^
/datasets/git/pack-revindex.c:356:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned lo, hi;
        ^~~~~~~~~~~~~~~~
/datasets/git/pack-revindex.c:356:11: warning: variable 'lo' is not initialized [cppcoreguidelines-init-variables]
        unsigned lo, hi;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-revindex.c:356:11: warning: variable name 'lo' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-revindex.c:356:15: warning: variable 'hi' is not initialized [cppcoreguidelines-init-variables]
        unsigned lo, hi;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-revindex.c:356:15: warning: variable name 'hi' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-revindex.c:358:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (load_pack_revindex(p) < 0)
                                      ^
                                       {
/datasets/git/pack-revindex.c:364:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        do {
        ^
/datasets/git/pack-revindex.c:365:18: warning: variable name 'mi' is too short, expected at least 3 characters [readability-identifier-length]
                const unsigned mi = lo + (hi - lo) / 2;
                               ^
/datasets/git/pack-revindex.c:371:5: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                } else if (ofs < got)
                  ^~~~~~~~~~~~~~~~~~~
/datasets/git/pack-revindex.c:371:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else if (ofs < got)
                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-revindex.c:373:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-revindex.c:375:11: warning: backward branch (do loop) is ID-dependent due to variable reference to 'lo' and may cause performance degradation [altera-id-dependent-backward-branch]
        } while (lo < hi);
                 ^
/datasets/git/pack-revindex.c:381:47: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
uint32_t pack_pos_to_index(struct packed_git *p, uint32_t pos)
                                              ^
/datasets/git/pack-revindex.c:383:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(p->revindex || p->revindex_data))
                                               ^
                                                {
/datasets/git/pack-revindex.c:385:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (p->num_objects <= pos)
                                  ^
                                   {
/datasets/git/pack-revindex.c:388:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (p->revindex)
                        ^
                         {
/datasets/git/pack-revindex.c:390:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else
        ^~~~
                        return get_be32(p->revindex_data + pos)
/datasets/git/pack-revindex.c:390:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-revindex.c:394:45: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
off_t pack_pos_to_offset(struct packed_git *p, uint32_t pos)
                                            ^
/datasets/git/pack-revindex.c:396:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(p->revindex || p->revindex_data))
                                               ^
                                                {
/datasets/git/pack-revindex.c:398:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (p->num_objects < pos)
                                 ^
                                  {
/datasets/git/pack-revindex.c:401:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (p->revindex)
                        ^
                         {
/datasets/git/pack-revindex.c:403:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (pos == p->num_objects)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-revindex.c:403:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (pos == p->num_objects)
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-revindex.c:404:10: warning: narrowing conversion from 'unsigned long' to signed type 'off_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                return p->pack_size - the_hash_algo->rawsz;
                       ^
/datasets/git/pack-revindex.c:405:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-revindex.c:409:52: warning: parameter name 'm' is too short, expected at least 3 characters [readability-identifier-length]
uint32_t pack_pos_to_midx(struct multi_pack_index *m, uint32_t pos)
                                                   ^
/datasets/git/pack-revindex.c:411:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!m->revindex_data)
                              ^
                               {
/datasets/git/pack-revindex.c:413:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (m->num_objects <= pos)
                                  ^
                                   {
/datasets/git/pack-revindex.c:418:8: warning: accessing fields in struct 'midx_pack_key' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct midx_pack_key {
       ^
/datasets/git/pack-revindex.c:418:8: note: use "__attribute__((aligned(32)))" to align struct 'midx_pack_key' to 32 bytes
/datasets/git/pack-revindex.c:426:44: warning: parameter name 'va' is too short, expected at least 3 characters [readability-identifier-length]
static int midx_pack_order_cmp(const void *va, const void *vb)
                                           ^
/datasets/git/pack-revindex.c:426:60: warning: parameter name 'vb' is too short, expected at least 3 characters [readability-identifier-length]
static int midx_pack_order_cmp(const void *va, const void *vb)
                                                           ^
/datasets/git/pack-revindex.c:431:59: warning: redundant cast to the same type [google-readability-casting]
        uint32_t versus = pack_pos_to_midx(midx, (uint32_t*)vb - (const uint32_t *)midx->revindex_data);
                                                                 ^~~~~~~~~~~~~~~~~~
/datasets/git/pack-revindex.c:433:8: warning: variable 'versus_offset' is not initialized [cppcoreguidelines-init-variables]
        off_t versus_offset;
              ^
                            = 0
/datasets/git/pack-revindex.c:442:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (key_preferred && !versus_preferred)
                                               ^
                                                {
/datasets/git/pack-revindex.c:444:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (!key_preferred && versus_preferred)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-revindex.c:444:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!key_preferred && versus_preferred)
                                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-revindex.c:448:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (key->pack < versus_pack)
                                    ^
                                     {
/datasets/git/pack-revindex.c:450:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (key->pack > versus_pack)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-revindex.c:450:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (key->pack > versus_pack)
                                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-revindex.c:455:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (key->offset < versus_offset)
                                        ^
                                         {
/datasets/git/pack-revindex.c:457:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (key->offset > versus_offset)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-revindex.c:457:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (key->offset > versus_offset)
                                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-revindex.c:463:47: warning: parameter name 'm' is too short, expected at least 3 characters [readability-identifier-length]
int midx_to_pack_pos(struct multi_pack_index *m, uint32_t at, uint32_t *pos)
                                              ^
/datasets/git/pack-revindex.c:463:59: warning: parameter name 'at' is too short, expected at least 3 characters [readability-identifier-length]
int midx_to_pack_pos(struct multi_pack_index *m, uint32_t at, uint32_t *pos)
                                                          ^
/datasets/git/pack-revindex.c:466:12: warning: variable 'found' is not initialized [cppcoreguidelines-init-variables]
        uint32_t *found;
                  ^
                        = NULL
/datasets/git/pack-revindex.c:468:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!m->revindex_data)
                              ^
                               {
/datasets/git/pack-revindex.c:470:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (m->num_objects <= at)
                                 ^
                                  {
/datasets/git/pack-revindex.c:490:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!found)
                   ^
                    {
pack-write.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "pack.h"
^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-write.c:8:1: warning: duplicate include [readability-duplicate-include]
#include "chunk-format.h"
^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-write.c:13:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(opts, 0, sizeof(*opts));
        ^~~~~~
/datasets/git/pack-write.c:13:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(opts, 0, sizeof(*opts));
        ^~~~~~
/datasets/git/pack-write.c:15:22: warning: 0x7fffffff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        opts->off32_limit = 0x7fffffff;
                            ^
/datasets/git/pack-write.c:18:37: warning: parameter name '_a' is too short, expected at least 3 characters [readability-identifier-length]
static int sha1_compare(const void *_a, const void *_b)
                                    ^
/datasets/git/pack-write.c:18:53: warning: parameter name '_b' is too short, expected at least 3 characters [readability-identifier-length]
static int sha1_compare(const void *_a, const void *_b)
                                                    ^
/datasets/git/pack-write.c:20:25: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        struct pack_idx_entry *a = *(struct pack_idx_entry **)_a;
                               ^
/datasets/git/pack-write.c:21:25: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        struct pack_idx_entry *b = *(struct pack_idx_entry **)_b;
                               ^
/datasets/git/pack-write.c:25:35: warning: parameter name 'a_' is too short, expected at least 3 characters [readability-identifier-length]
static int cmp_uint32(const void *a_, const void *b_)
                                  ^
/datasets/git/pack-write.c:25:51: warning: parameter name 'b_' is too short, expected at least 3 characters [readability-identifier-length]
static int cmp_uint32(const void *a_, const void *b_)
                                                  ^
/datasets/git/pack-write.c:27:11: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        uint32_t a = *((uint32_t *)a_);
                 ^
/datasets/git/pack-write.c:28:11: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        uint32_t b = *((uint32_t *)b_);
                 ^
/datasets/git/pack-write.c:35:11: warning: variable 'ofsval' is not initialized [cppcoreguidelines-init-variables]
        uint32_t ofsval;
                 ^
                        = 0
/datasets/git/pack-write.c:37:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((offset >> 31) || (opts->off32_limit < offset))
             ^~~~~~
/datasets/git/pack-write.c:37:17: warning: 31 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if ((offset >> 31) || (opts->off32_limit < offset))
                       ^
/datasets/git/pack-write.c:37:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((offset >> 31) || (opts->off32_limit < offset))
                                                           ^
                                                            {
/datasets/git/pack-write.c:39:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opts->anomaly_nr)
                              ^
                               {
/datasets/git/pack-write.c:50:13: warning: function 'write_idx_file' has cognitive complexity of 46 (threshold 25) [readability-function-cognitive-complexity]
const char *write_idx_file(const char *index_name, struct pack_idx_entry **objects,
            ^
/datasets/git/pack-write.c:60:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (nr_objects) {
        ^
/datasets/git/pack-write.c:64:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < nr_objects; ++i) {
                ^
/datasets/git/pack-write.c:65:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (objects[i]->offset > last_obj_offset)
                        ^
/datasets/git/pack-write.c:70:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/pack-write.c:73:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->flags & WRITE_IDX_VERIFY) {
        ^
/datasets/git/pack-write.c:74:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(index_name);
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/pack-write.c:74:3: note: nesting level increased to 2
                assert(index_name);
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/pack-write.c:74:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(index_name);
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/pack-write.c:74:3: note: +1, nesting level increased to 3
                assert(index_name);
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/pack-write.c:76:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/pack-write.c:77:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!index_name) {
                ^
/datasets/git/pack-write.c:81:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/pack-write.c:89:59: note: +1, including nesting penalty of 0, nesting level increased to 1
        index_version = need_large_offset(last_obj_offset, opts) ? 2 : opts->version;
                                                                 ^
/datasets/git/pack-write.c:92:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (index_version >= 2) {
        ^
/datasets/git/pack-write.c:104:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < 256; i++) {
        ^
/datasets/git/pack-write.c:106:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (next < last) {
                ^
/datasets/git/pack-write.c:108:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (obj->oid.hash[0] != i)
                        ^
/datasets/git/pack-write.c:120:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < nr_objects; i++) {
        ^
/datasets/git/pack-write.c:122:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (index_version < 2)
                ^
/datasets/git/pack-write.c:125:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((opts->flags & WRITE_IDX_STRICT) &&
                ^
/datasets/git/pack-write.c:125:40: note: +1
                if ((opts->flags & WRITE_IDX_STRICT) &&
                                                     ^
/datasets/git/pack-write.c:131:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (index_version >= 2) {
        ^
/datasets/git/pack-write.c:136:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < nr_objects; i++) {
                ^
/datasets/git/pack-write.c:143:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < nr_objects; i++) {
                ^
/datasets/git/pack-write.c:148:7: note: +3, including nesting penalty of 2, nesting level increased to 3
                                  ? (0x80000000 | nr_large_offset++)
                                  ^
/datasets/git/pack-write.c:155:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (nr_large_offset) {
                ^
/datasets/git/pack-write.c:159:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!need_large_offset(offset, opts))
                        ^
/datasets/git/pack-write.c:169:40: note: +1, including nesting penalty of 0, nesting level increased to 1
                          ((opts->flags & WRITE_IDX_VERIFY) ? 0 : CSUM_FSYNC));
                                                            ^
/datasets/git/pack-write.c:54:19: warning: variable 'f' is not initialized [cppcoreguidelines-init-variables]
        struct hashfile *f;
                         ^
                           = NULL
/datasets/git/pack-write.c:54:19: warning: variable name 'f' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-write.c:55:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct pack_idx_entry **sorted_by_sha, **list, **last;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-write.c:55:26: warning: variable 'sorted_by_sha' is not initialized [cppcoreguidelines-init-variables]
        struct pack_idx_entry **sorted_by_sha, **list, **last;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-write.c:55:43: warning: variable 'list' is not initialized [cppcoreguidelines-init-variables]
        struct pack_idx_entry **sorted_by_sha, **list, **last;
                                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-write.c:55:51: warning: variable 'last' is not initialized [cppcoreguidelines-init-variables]
        struct pack_idx_entry **sorted_by_sha, **list, **last;
                                                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-write.c:57:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, fd;
        ^~~~~~~~~~
/datasets/git/pack-write.c:57:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, fd;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-write.c:57:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-write.c:57:9: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int i, fd;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-write.c:57:9: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-write.c:58:11: warning: variable 'index_version' is not initialized [cppcoreguidelines-init-variables]
        uint32_t index_version;
                 ^
                               = 0
/datasets/git/pack-write.c:64:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < nr_objects; ++i) {
                ^
/datasets/git/pack-write.c:65:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (objects[i]->offset > last_obj_offset)
                                                                 ^
                                                                  {
/datasets/git/pack-write.c:68:3: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                QSORT(sorted_by_sha, nr_objects, sha1_compare);
                ^
/datasets/git/./git-compat-util.h:1304:56: note: expanded from macro 'QSORT'
#define QSORT(base, n, compar) sane_qsort((base), (n), sizeof(*(base)), compar)
                                                       ^
/datasets/git/pack-write.c:70:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/pack-write.c:73:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (opts->flags & WRITE_IDX_VERIFY) {
            ^
/datasets/git/pack-write.c:83:52: warning: 0600 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        fd = xopen(index_name, O_CREAT|O_EXCL|O_WRONLY, 0600);
                                                                        ^
/datasets/git/pack-write.c:104:18: warning: 256 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        for (i = 0; i < 256; i++) {
                        ^
/datasets/git/pack-write.c:106:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (next < last) {
                ^
/datasets/git/pack-write.c:106:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'next' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (next < last) {
                       ^
/datasets/git/pack-write.c:108:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (obj->oid.hash[0] != i)
                                                  ^
                                                   {
/datasets/git/pack-write.c:120:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr_objects; i++) {
        ^
/datasets/git/pack-write.c:122:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (index_version < 2)
                                      ^
                                       {
/datasets/git/pack-write.c:125:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((opts->flags & WRITE_IDX_STRICT) &&
                     ^
/datasets/git/pack-write.c:126:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    (i && oideq(&list[-2]->oid, &obj->oid)))
                                                            ^
                                                             {
/datasets/git/pack-write.c:136:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < nr_objects; i++) {
                ^
/datasets/git/pack-write.c:143:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < nr_objects; i++) {
                ^
/datasets/git/pack-write.c:145:13: warning: variable 'offset' is not initialized [cppcoreguidelines-init-variables]
                        uint32_t offset;
                                 ^
                                        = 0
/datasets/git/pack-write.c:148:10: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                  ? (0x80000000 | nr_large_offset++)
                                     ^
/datasets/git/pack-write.c:155:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (nr_large_offset) {
                ^
/datasets/git/pack-write.c:159:27: warning: narrowing conversion from 'uint64_t' (aka 'unsigned long') to signed type 'off_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        if (!need_large_offset(offset, opts))
                                               ^
/datasets/git/pack-write.c:159:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!need_large_offset(offset, opts))
                                                             ^
                                                              {
/datasets/git/pack-write.c:168:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                          CSUM_HASH_IN_STREAM | CSUM_CLOSE |
                          ^
/datasets/git/./csum-file.h:37:29: note: expanded from macro 'CSUM_HASH_IN_STREAM'
#define CSUM_HASH_IN_STREAM     4
                                ^
/datasets/git/pack-write.c:169:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                          ((opts->flags & WRITE_IDX_VERIFY) ? 0 : CSUM_FSYNC));
                            ^
/datasets/git/pack-write.c:173:39: warning: parameter name 'va' is too short, expected at least 3 characters [readability-identifier-length]
static int pack_order_cmp(const void *va, const void *vb, void *ctx)
                                      ^
/datasets/git/pack-write.c:173:43: warning: 2 adjacent parameters of 'pack_order_cmp' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int pack_order_cmp(const void *va, const void *vb, void *ctx)
                                          ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-write.c:173:55: note: the first parameter in the range is 'vb'
static int pack_order_cmp(const void *va, const void *vb, void *ctx)
                                                      ^~
/datasets/git/pack-write.c:173:65: note: the last parameter in the range is 'ctx'
static int pack_order_cmp(const void *va, const void *vb, void *ctx)
                                                                ^~~
/datasets/git/pack-write.c:173:59: note: 'const void *' and 'void *' may be implicitly converted
static int pack_order_cmp(const void *va, const void *vb, void *ctx)
                                                          ^
/datasets/git/pack-write.c:173:55: warning: parameter name 'vb' is too short, expected at least 3 characters [readability-identifier-length]
static int pack_order_cmp(const void *va, const void *vb, void *ctx)
                                                      ^
/datasets/git/pack-write.c:177:8: warning: variable name 'oa' is too short, expected at least 3 characters [readability-identifier-length]
        off_t oa = objects[*(uint32_t*)va]->offset;
              ^
/datasets/git/pack-write.c:178:8: warning: variable name 'ob' is too short, expected at least 3 characters [readability-identifier-length]
        off_t ob = objects[*(uint32_t*)vb]->offset;
              ^
/datasets/git/pack-write.c:180:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oa < ob)
                    ^
                     {
/datasets/git/pack-write.c:182:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oa > ob)
                    ^
                     {
/datasets/git/pack-write.c:187:47: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
static void write_rev_header(struct hashfile *f)
                                              ^
/datasets/git/pack-write.c:194:56: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
static void write_rev_index_positions(struct hashfile *f,
                                                       ^
/datasets/git/pack-write.c:198:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i;
                 ^
                   = 0
/datasets/git/pack-write.c:198:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-write.c:199:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr_objects; i++)
        ^
/datasets/git/pack-write.c:199:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < nr_objects; i++)
                                        ^
                                         {
/datasets/git/pack-write.c:203:48: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
static void write_rev_trailer(struct hashfile *f, const unsigned char *hash)
                                               ^
/datasets/git/pack-write.c:214:12: warning: variable 'pack_order' is not initialized [cppcoreguidelines-init-variables]
        uint32_t *pack_order;
                  ^
                             = NULL
/datasets/git/pack-write.c:215:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i;
                 ^
                   = 0
/datasets/git/pack-write.c:215:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-write.c:216:14: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        const char *ret;
                    ^
                        = NULL
/datasets/git/pack-write.c:218:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & WRITE_REV) && !(flags & WRITE_REV_VERIFY))
              ^
/datasets/git/pack-write.c:218:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & WRITE_REV) && !(flags & WRITE_REV_VERIFY))
                                      ^
/datasets/git/pack-write.c:218:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(flags & WRITE_REV) && !(flags & WRITE_REV_VERIFY))
                                                                ^
                                                                 {
/datasets/git/pack-write.c:222:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr_objects; i++)
        ^
/datasets/git/pack-write.c:222:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < nr_objects; i++)
                                        ^
                                         {
/datasets/git/pack-write.c:224:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        QSORT_S(pack_order, nr_objects, pack_order_cmp, objects);
        ^
/datasets/git/./git-compat-util.h:1321:39: note: expanded from macro 'QSORT_S'
#define QSORT_S(base, n, compar, ctx) do {                      \
                                      ^
/datasets/git/pack-write.c:240:19: warning: variable 'f' is not initialized [cppcoreguidelines-init-variables]
        struct hashfile *f;
                         ^
                           = NULL
/datasets/git/pack-write.c:240:19: warning: variable name 'f' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-write.c:241:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/pack-write.c:241:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-write.c:243:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((flags & WRITE_REV) && (flags & WRITE_REV_VERIFY))
             ^
/datasets/git/pack-write.c:243:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((flags & WRITE_REV) && (flags & WRITE_REV_VERIFY))
                                    ^
/datasets/git/pack-write.c:243:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((flags & WRITE_REV) && (flags & WRITE_REV_VERIFY))
                                                              ^
                                                               {
/datasets/git/pack-write.c:246:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & WRITE_REV) {
            ^
/datasets/git/pack-write.c:253:50: warning: 0600 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        fd = xopen(rev_name, O_CREAT|O_EXCL|O_WRONLY, 0600);
                                                                      ^
/datasets/git/pack-write.c:256:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        } else if (flags & WRITE_REV_VERIFY) {
                   ^
/datasets/git/pack-write.c:258:7: warning: Null pointer passed to 1st parameter expecting 'nonnull' [clang-analyzer-core.NonNullParamChecker]
                if (stat(rev_name, &statbuf)) {
                    ^
/datasets/git/pack-write.c:547:6: note: Assuming the condition is false
        if (adjust_shared_perm(pack_tmp_name))
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-write.c:547:2: note: Taking false branch
        if (adjust_shared_perm(pack_tmp_name))
        ^
/datasets/git/pack-write.c:552:6: note: Assuming the condition is false
        if (adjust_shared_perm(*idx_tmp_name))
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-write.c:552:2: note: Taking false branch
        if (adjust_shared_perm(*idx_tmp_name))
        ^
/datasets/git/pack-write.c:555:32: note: Passing null pointer value via 1st parameter 'rev_name'
        rev_tmp_name = write_rev_file(NULL, written_list, nr_written, hash,
                                      ^
/usr/lib/llvm-15/lib/clang/15.0.2/include/stddef.h:89:16: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
               ^~~~~~~~~~
/datasets/git/pack-write.c:555:17: note: Calling 'write_rev_file'
        rev_tmp_name = write_rev_file(NULL, written_list, nr_written, hash,
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-write.c:218:6: note: Assuming the condition is true
        if (!(flags & WRITE_REV) && !(flags & WRITE_REV_VERIFY))
            ^~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-write.c:218:6: note: Left side of '&&' is true
/datasets/git/pack-write.c:218:30: note: Assuming the condition is false
        if (!(flags & WRITE_REV) && !(flags & WRITE_REV_VERIFY))
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-write.c:218:2: note: Taking false branch
        if (!(flags & WRITE_REV) && !(flags & WRITE_REV_VERIFY))
        ^
/datasets/git/pack-write.c:222:14: note: Assuming 'i' is >= 'nr_objects'
        for (i = 0; i < nr_objects; i++)
                    ^~~~~~~~~~~~~~
/datasets/git/pack-write.c:222:2: note: Loop condition is false. Execution continues on line 224
        for (i = 0; i < nr_objects; i++)
        ^
/datasets/git/pack-write.c:224:2: note: Assuming the condition is false
        QSORT_S(pack_order, nr_objects, pack_order_cmp, objects);
        ^
/datasets/git/./git-compat-util.h:1322:6: note: expanded from macro 'QSORT_S'
        if (qsort_s((base), (n), sizeof(*(base)), compar, ctx)) \
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1318:17: note: expanded from macro 'qsort_s'
#define qsort_s git_qsort_s
                ^
/datasets/git/pack-write.c:224:2: note: Taking false branch
        QSORT_S(pack_order, nr_objects, pack_order_cmp, objects);
        ^
/datasets/git/./git-compat-util.h:1322:2: note: expanded from macro 'QSORT_S'
        if (qsort_s((base), (n), sizeof(*(base)), compar, ctx)) \
        ^
/datasets/git/pack-write.c:224:2: note: Loop condition is false.  Exiting loop
        QSORT_S(pack_order, nr_objects, pack_order_cmp, objects);
        ^
/datasets/git/./git-compat-util.h:1321:39: note: expanded from macro 'QSORT_S'
#define QSORT_S(base, n, compar, ctx) do {                      \
                                      ^
/datasets/git/pack-write.c:226:29: note: Passing null pointer value via 1st parameter 'rev_name'
        ret = write_rev_file_order(rev_name, pack_order, nr_objects, hash,
                                   ^~~~~~~~
/datasets/git/pack-write.c:226:8: note: Calling 'write_rev_file_order'
        ret = write_rev_file_order(rev_name, pack_order, nr_objects, hash,
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-write.c:243:26: note: Left side of '&&' is false
        if ((flags & WRITE_REV) && (flags & WRITE_REV_VERIFY))
                                ^
/datasets/git/pack-write.c:246:2: note: Taking false branch
        if (flags & WRITE_REV) {
        ^
/datasets/git/pack-write.c:256:9: note: Taking true branch
        } else if (flags & WRITE_REV_VERIFY) {
               ^
/datasets/git/pack-write.c:258:7: note: Null pointer passed to 1st parameter expecting 'nonnull'
                if (stat(rev_name, &statbuf)) {
                    ^    ~~~~~~~~
/datasets/git/pack-write.c:262:6: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                        } else
                          ^~~~
                                                        die_errno(_("could not stat: %s"), rev_name)
/datasets/git/pack-write.c:262:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        } else
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-write.c:266:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/pack-write.c:274:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (rev_name && adjust_shared_perm(rev_name) < 0)
                                                         ^
                                                          {
/datasets/git/pack-write.c:278:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                          CSUM_HASH_IN_STREAM | CSUM_CLOSE |
                          ^
/datasets/git/./csum-file.h:37:29: note: expanded from macro 'CSUM_HASH_IN_STREAM'
#define CSUM_HASH_IN_STREAM     4
                                ^
/datasets/git/pack-write.c:279:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                          ((flags & WRITE_IDX_VERIFY) ? 0 : CSUM_FSYNC));
                            ^
/datasets/git/pack-write.c:284:50: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
static void write_mtimes_header(struct hashfile *f)
                                                 ^
/datasets/git/pack-write.c:296:51: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
static void write_mtimes_objects(struct hashfile *f,
                                                  ^
/datasets/git/pack-write.c:301:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i;
                 ^
                   = 0
/datasets/git/pack-write.c:301:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-write.c:302:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr_objects; i++) {
        ^
/datasets/git/pack-write.c:303:24: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                struct object_entry *e = (struct object_entry*)objects[i];
                                     ^
/datasets/git/pack-write.c:308:51: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
static void write_mtimes_trailer(struct hashfile *f, const unsigned char *hash)
                                                  ^
/datasets/git/pack-write.c:319:14: warning: variable 'mtimes_name' is not initialized [cppcoreguidelines-init-variables]
        const char *mtimes_name;
                    ^
                                = NULL
/datasets/git/pack-write.c:320:19: warning: variable 'f' is not initialized [cppcoreguidelines-init-variables]
        struct hashfile *f;
                         ^
                           = NULL
/datasets/git/pack-write.c:320:19: warning: variable name 'f' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-write.c:321:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/pack-write.c:321:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-write.c:323:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!to_pack)
                     ^
                      {
/datasets/git/pack-write.c:334:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (adjust_shared_perm(mtimes_name) < 0)
                                                ^
                                                 {
/datasets/git/pack-write.c:338:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                          CSUM_HASH_IN_STREAM | CSUM_CLOSE | CSUM_FSYNC);
                          ^
/datasets/git/./csum-file.h:37:29: note: expanded from macro 'CSUM_HASH_IN_STREAM'
#define CSUM_HASH_IN_STREAM     4
                                ^
/datasets/git/pack-write.c:343:42: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
off_t write_pack_header(struct hashfile *f, uint32_t nr_entries)
                                         ^
/datasets/git/pack-write.c:377:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int aligned_sz, buf_sz = 8 * 1024;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-write.c:377:6: warning: variable 'aligned_sz' is not initialized [cppcoreguidelines-init-variables]
        int aligned_sz, buf_sz = 8 * 1024;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-write.c:377:27: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        int aligned_sz, buf_sz = 8 * 1024;
                                 ^
/datasets/git/pack-write.c:377:31: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        int aligned_sz, buf_sz = 8 * 1024;
                                     ^
/datasets/git/pack-write.c:378:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        git_hash_ctx old_hash_ctx, new_hash_ctx;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-write.c:380:8: warning: variable 'buf' is not initialized [cppcoreguidelines-init-variables]
        char *buf;
              ^
                  = NULL
/datasets/git/pack-write.c:381:10: warning: variable 'read_result' is not initialized [cppcoreguidelines-init-variables]
        ssize_t read_result;
                ^
                            = 0
/datasets/git/pack-write.c:386:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (lseek(pack_fd, 0, SEEK_SET) != 0)
                                             ^
                                              {
/datasets/git/pack-write.c:389:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (read_result < 0)
                            ^
                             {
/datasets/git/pack-write.c:391:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (read_result != sizeof(hdr))
                                            ^
                                             {
/datasets/git/pack-write.c:394:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (lseek(pack_fd, 0, SEEK_SET) != 0)
                                             ^
                                              {
/datasets/git/pack-write.c:403:15: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        aligned_sz = buf_sz - sizeof(hdr);
                     ^
/datasets/git/pack-write.c:404:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/pack-write.c:405:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                ssize_t m, n;
                ^~~~~~~~~~~~~
/datasets/git/pack-write.c:405:11: warning: variable 'm' is not initialized [cppcoreguidelines-init-variables]
                ssize_t m, n;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-write.c:405:11: warning: variable name 'm' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-write.c:405:14: warning: variable 'n' is not initialized [cppcoreguidelines-init-variables]
                ssize_t m, n;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-write.c:405:14: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-write.c:409:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!n)
                       ^
                        {
/datasets/git/pack-write.c:411:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (n < 0)
                          ^
                           {
/datasets/git/pack-write.c:415:17: warning: narrowing conversion from 'ssize_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                aligned_sz -= n;
                              ^
/datasets/git/pack-write.c:416:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!aligned_sz)
                                ^
                                 {
/datasets/git/pack-write.c:419:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!partial_pack_hash)
                                       ^
                                        {
/datasets/git/pack-write.c:427:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!hasheq(hash, partial_pack_hash))
                                                             ^
                                                              {
/datasets/git/pack-write.c:436:26: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                        partial_pack_offset = ~partial_pack_offset;
                                              ^~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-write.c:437:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        partial_pack_offset -= MSB(partial_pack_offset, 1);
                                               ^
/datasets/git/./git-compat-util.h:155:23: note: expanded from macro 'MSB'
#define MSB(x, bits) ((x) & TYPEOF(x)(~0ULL << (bitsizeof(x) - (bits))))
                      ^~~
/datasets/git/pack-write.c:442:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (partial_pack_hash)
                              ^
                               {
/datasets/git/pack-write.c:451:32: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        char packname[GIT_MAX_HEXSZ + 6];
                                      ^
/datasets/git/pack-write.c:462:15: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
                const char *name;
                            ^
                                 = NULL
/datasets/git/pack-write.c:464:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_well_formed)
                                   ^
                                    {
/datasets/git/pack-write.c:467:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (skip_prefix(packname, "keep\t", &name))
                                                           ^
                                                            {
/datasets/git/pack-write.c:472:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_well_formed)
                           ^
                            {
/datasets/git/pack-write.c:484:54: warning: 2 adjacent parameters of 'encode_in_pack_object_header' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
int encode_in_pack_object_header(unsigned char *hdr, int hdr_len,
                                                     ^~~~~~~~~~~~
/datasets/git/pack-write.c:484:58: note: the first parameter in the range is 'hdr_len'
int encode_in_pack_object_header(unsigned char *hdr, int hdr_len,
                                                         ^~~~~~~
/datasets/git/pack-write.c:485:23: note: the last parameter in the range is 'type'
                                 enum object_type type, uintmax_t size)
                                                  ^~~~
/datasets/git/pack-write.c:485:6: note: 'int' and 'enum object_type' may be implicitly converted
                                 enum object_type type, uintmax_t size)
                                 ^
/datasets/git/pack-write.c:487:6: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
        int n = 1;
            ^
/datasets/git/pack-write.c:488:16: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        unsigned char c;
                      ^
                        = 0
/datasets/git/pack-write.c:488:16: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-write.c:490:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (type < OBJ_COMMIT || type > OBJ_REF_DELTA)
                                                      ^
                                                       {
/datasets/git/pack-write.c:493:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        c = (type << 4) | (size & 15);
            ^~~~~~~~~~~
/datasets/git/pack-write.c:493:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        c = (type << 4) | (size & 15);
             ^~~~
/datasets/git/pack-write.c:493:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        c = (type << 4) | (size & 15);
                           ^      ~~
/datasets/git/pack-write.c:493:28: warning: 15 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        c = (type << 4) | (size & 15);
                                  ^
/datasets/git/pack-write.c:494:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        size >>= 4;
        ^        ~
/datasets/git/pack-write.c:495:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (size) {
        ^
/datasets/git/pack-write.c:496:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (n == hdr_len)
                                 ^
                                  {
/datasets/git/pack-write.c:498:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                *hdr++ = c | 0x80;
                         ^   ~~~~
/datasets/git/pack-write.c:498:16: warning: 0x80 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                *hdr++ = c | 0x80;
                             ^
/datasets/git/pack-write.c:499:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                c = size & 0x7f;
                    ^      ~~~~
/datasets/git/pack-write.c:499:14: warning: 0x7f is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                c = size & 0x7f;
                           ^
/datasets/git/pack-write.c:500:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                size >>= 7;
                ^        ~
/datasets/git/pack-write.c:500:12: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                size >>= 7;
                         ^
/datasets/git/pack-write.c:510:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/pack-write.c:510:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-write.c:517:61: warning: 2 adjacent parameters of 'rename_tmp_packfile' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void rename_tmp_packfile(struct strbuf *name_prefix, const char *source,
                                                            ^~~~~~~~~~~~~~~~~~~
/datasets/git/pack-write.c:517:73: note: the first parameter in the range is 'source'
static void rename_tmp_packfile(struct strbuf *name_prefix, const char *source,
                                                                        ^~~~~~
/datasets/git/pack-write.c:518:17: note: the last parameter in the range is 'ext'
                                const char *ext)
                                            ^~~
/datasets/git/pack-write.c:523:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (rename(source, name_prefix->buf))
                                             ^
                                              {
/datasets/git/pack-write.c:547:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (adjust_shared_perm(pack_tmp_name))
                                              ^
                                               {
/datasets/git/pack-write.c:550:61: warning: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        *idx_tmp_name = (char *)write_idx_file(NULL, written_list, nr_written,
                                                                   ^
/datasets/git/pack-write.c:552:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (adjust_shared_perm(*idx_tmp_name))
                                              ^
                                               {
/datasets/git/pack-write.c:558:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (pack_idx_opts->flags & WRITE_MTIMES) {
            ^
/datasets/git/pack-write.c:565:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (rev_tmp_name)
                         ^
                          {
/datasets/git/pack-write.c:567:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mtimes_tmp_name)
                            ^
                             {
/datasets/git/pack-write.c:573:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, err;
        ^~~~~~~~~~~
/datasets/git/pack-write.c:573:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, err;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-write.c:573:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pack-write.c:573:9: warning: variable 'err' is not initialized [cppcoreguidelines-init-variables]
        int i, err;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pack-write.c:576:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr_sought; i++)
        ^
/datasets/git/pack-write.c:576:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < nr_sought; i++)
                                       ^
                                        {
/datasets/git/pack-write.c:577:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(output, "%s %s\n", oid_to_hex(&sought[i]->old_oid),
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pack-write.c:577:3: note: cast the expression to void to silence this warning
/datasets/git/pack-write.c:581:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        err |= fclose(output);
        ^~~
/datasets/git/pack-write.c:582:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err)
                ^
                 {
/datasets/git/packfile.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "list.h"
^        ~~~~~~~~
         "commit-graph.h"
/datasets/git/packfile.c:43:21: warning: variable 'pack_used_ctr' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned int pack_used_ctr;
                    ^
/datasets/git/packfile.c:44:21: warning: variable 'pack_mmap_calls' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned int pack_mmap_calls;
                    ^
/datasets/git/packfile.c:45:21: warning: variable 'peak_pack_open_windows' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned int peak_pack_open_windows;
                    ^
/datasets/git/packfile.c:46:21: warning: variable 'pack_open_windows' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned int pack_open_windows;
                    ^
/datasets/git/packfile.c:47:21: warning: variable 'pack_open_fds' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned int pack_open_fds;
                    ^
/datasets/git/packfile.c:48:21: warning: variable 'pack_max_fds' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned int pack_max_fds;
                    ^
/datasets/git/packfile.c:49:15: warning: variable 'peak_pack_mapped' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static size_t peak_pack_mapped;
              ^
/datasets/git/packfile.c:50:15: warning: variable 'pack_mapped' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static size_t pack_mapped;
              ^
/datasets/git/packfile.c:53:39: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static inline uintmax_t sz_fmt(size_t s) { return s; }
                                      ^
/datasets/git/packfile.c:57:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(stderr,
        ^~~~~~~~~~~~~~~
/datasets/git/packfile.c:57:2: note: cast the expression to void to silence this warning
/datasets/git/packfile.c:64:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(stderr,
        ^~~~~~~~~~~~~~~
/datasets/git/packfile.c:64:2: note: cast the expression to void to silence this warning
/datasets/git/packfile.c:81:70: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static int check_packed_git_idx(const char *path, struct packed_git *p)
                                                                     ^
/datasets/git/packfile.c:83:8: warning: variable 'idx_map' is not initialized [cppcoreguidelines-init-variables]
        void *idx_map;
              ^
                      = NULL
/datasets/git/packfile.c:84:9: warning: variable 'idx_size' is not initialized [cppcoreguidelines-init-variables]
        size_t idx_size;
               ^
                        = 0
/datasets/git/packfile.c:85:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int fd = git_open(path), ret;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/packfile.c:85:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
        int fd = git_open(path), ret;
            ^
/datasets/git/packfile.c:85:27: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int fd = git_open(path), ret;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/packfile.c:86:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/packfile.c:89:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fd < 0)
                   ^
                    {
/datasets/git/packfile.c:96:21: warning: 256 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (idx_size < 4 * 256 + hashsz + hashsz) {
                           ^
/datasets/git/packfile.c:105:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/packfile.c:112:43: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
             size_t idx_size, struct packed_git *p)
                                                 ^
/datasets/git/packfile.c:115:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        uint32_t version, nr, i, *index;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/packfile.c:115:11: warning: variable 'version' is not initialized [cppcoreguidelines-init-variables]
        uint32_t version, nr, i, *index;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/packfile.c:115:20: warning: variable 'nr' is not initialized [cppcoreguidelines-init-variables]
        uint32_t version, nr, i, *index;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/packfile.c:115:20: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/packfile.c:115:24: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t version, nr, i, *index;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/packfile.c:115:24: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/packfile.c:115:28: warning: variable 'index' is not initialized [cppcoreguidelines-init-variables]
        uint32_t version, nr, i, *index;
                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/packfile.c:117:21: warning: 256 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (idx_size < 4 * 256 + hashsz + hashsz)
                           ^
/datasets/git/packfile.c:117:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (idx_size < 4 * 256 + hashsz + hashsz)
                                                 ^
                                                  {
/datasets/git/packfile.c:119:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!idx_map)
                     ^
                      {
/datasets/git/packfile.c:124:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (version < 2 || version > 2)
                                               ^
                                                {
/datasets/git/packfile.c:129:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/packfile.c:134:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (version > 1)
                        ^
                         {
/datasets/git/packfile.c:136:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < 256; i++) {
        ^
/datasets/git/packfile.c:136:18: warning: 256 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        for (i = 0; i < 256; i++) {
                        ^
/datasets/git/packfile.c:137:12: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
                uint32_t n = ntohl(index[i]);
                         ^
/datasets/git/packfile.c:138:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (n < nr)
                           ^
                            {
/datasets/git/packfile.c:151:30: warning: 256 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (idx_size != st_add(4 * 256 + hashsz + hashsz, st_mult(nr, hashsz + 4)))
                                           ^
/datasets/git/packfile.c:151:78: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (idx_size != st_add(4 * 256 + hashsz + hashsz, st_mult(nr, hashsz + 4)))
                                                                                           ^
                                                                                            {
/datasets/git/packfile.c:167:28: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                size_t min_size = st_add(8 + 4*256 + hashsz + hashsz, st_mult(nr, hashsz + 4 + 4));
                                         ^
/datasets/git/packfile.c:167:34: warning: 256 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                size_t min_size = st_add(8 + 4*256 + hashsz + hashsz, st_mult(nr, hashsz + 4 + 4));
                                               ^
/datasets/git/packfile.c:169:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (nr)
                       ^
                        {
/datasets/git/packfile.c:170:48: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        max_size = st_add(max_size, st_mult(nr - 1, 8));
                                                                    ^
/datasets/git/packfile.c:171:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (idx_size < min_size || idx_size > max_size)
                                                               ^
                                                                {
/datasets/git/packfile.c:179:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    (sizeof(off_t) <= 4))
                                         ^
                                          {
/datasets/git/packfile.c:181:19: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                p->crc_offset = 8 + 4 * 256 + nr * hashsz;
                                ^
/datasets/git/packfile.c:181:27: warning: 256 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                p->crc_offset = 8 + 4 * 256 + nr * hashsz;
                                        ^
/datasets/git/packfile.c:184:21: warning: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        p->index_version = version;
                           ^
/datasets/git/packfile.c:191:40: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
int open_pack_index(struct packed_git *p)
                                       ^
/datasets/git/packfile.c:193:8: warning: variable 'idx_name' is not initialized [cppcoreguidelines-init-variables]
        char *idx_name;
              ^
                       = NULL
/datasets/git/packfile.c:194:9: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        size_t len;
               ^
                   = 0
/datasets/git/packfile.c:195:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/packfile.c:197:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (p->index_data)
                          ^
                           {
/datasets/git/packfile.c:200:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strip_suffix(p->pack_name, ".pack", &len))
                                                       ^
                                                        {
/datasets/git/packfile.c:208:45: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
uint32_t get_pack_fanout(struct packed_git *p, uint32_t value)
                                            ^
/datasets/git/packfile.c:213:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (open_pack_index(p))
                                       ^
                                        {
/datasets/git/packfile.c:227:21: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        struct packed_git *p = xmalloc(st_add(sizeof(*p), extra));
                           ^
/datasets/git/packfile.c:228:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(p, 0, sizeof(*p));
        ^~~~~~
/datasets/git/packfile.c:228:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(p, 0, sizeof(*p));
        ^~~~~~
/datasets/git/packfile.c:237:21: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        struct packed_git *p = alloc_packed_git(alloc);
                           ^
/datasets/git/packfile.c:237:42: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        struct packed_git *p = alloc_packed_git(alloc);
                                                ^
/datasets/git/packfile.c:239:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(p->pack_name, path, alloc); /* includes NUL */
        ^~~~~~
/datasets/git/packfile.c:239:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(p->pack_name, path, alloc); /* includes NUL */
        ^~~~~~
/datasets/git/packfile.c:249:45: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static void scan_windows(struct packed_git *p,
                                            ^
/datasets/git/packfile.c:254:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct pack_window *w, *w_l;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/packfile.c:254:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/packfile.c:254:22: warning: variable 'w' is not initialized [cppcoreguidelines-init-variables]
        struct pack_window *w, *w_l;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/packfile.c:254:22: warning: variable name 'w' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/packfile.c:254:26: warning: variable 'w_l' is not initialized [cppcoreguidelines-init-variables]
        struct pack_window *w, *w_l;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/packfile.c:256:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (w_l = NULL, w = p->windows; w; w = w->next) {
        ^
/datasets/git/packfile.c:256:35: warning: backward branch (for loop) is ID-dependent due to variable reference to 'w' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (w_l = NULL, w = p->windows; w; w = w->next) {
                                         ^
/datasets/git/packfile.c:270:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct packed_git *p, *lru_p = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/packfile.c:270:21: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct packed_git *p, *lru_p = NULL;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/packfile.c:270:21: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/packfile.c:271:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct pack_window *lru_w = NULL, *lru_l = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/packfile.c:273:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (current)
                    ^
                     {
/datasets/git/packfile.c:275:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = the_repository->objects->packed_git; p; p = p->next)
        ^
/datasets/git/packfile.c:275:48: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = the_repository->objects->packed_git; p; p = p->next)
                                                      ^
/datasets/git/packfile.c:275:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (p = the_repository->objects->packed_git; p; p = p->next)
                                                                     ^
                                                                      {
/datasets/git/packfile.c:280:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (lru_l)
                          ^
                           {
/datasets/git/packfile.c:282:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/packfile.c:291:44: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
void close_pack_windows(struct packed_git *p)
                                           ^
/datasets/git/./object-store.h:107:2: note: inferred assignment of ID-dependent member from ID-dependent member next [altera-id-dependent-backward-branch]
        struct pack_window *windows;
        ^
/datasets/git/packfile.c:293:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (p->windows) {
        ^
/datasets/git/packfile.c:293:9: warning: backward branch (while loop) is ID-dependent due to member reference to 'windows' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (p->windows) {
               ^
/datasets/git/packfile.c:294:23: warning: variable name 'w' is too short, expected at least 3 characters [readability-identifier-length]
                struct pack_window *w = p->windows;
                                    ^
/datasets/git/packfile.c:296:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (w->inuse_cnt)
                                 ^
                                  {
/datasets/git/packfile.c:307:38: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
int close_pack_fd(struct packed_git *p)
                                     ^
/datasets/git/packfile.c:309:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (p->pack_fd < 0)
                           ^
                            {
/datasets/git/packfile.c:319:42: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
void close_pack_index(struct packed_git *p)
                                         ^
/datasets/git/packfile.c:327:52: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static void close_pack_revindex(struct packed_git *p)
                                                   ^
/datasets/git/packfile.c:329:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!p->revindex_map)
                             ^
                              {
/datasets/git/packfile.c:337:50: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static void close_pack_mtimes(struct packed_git *p)
                                                 ^
/datasets/git/packfile.c:339:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!p->mtimes_map)
                           ^
                            {
/datasets/git/packfile.c:346:36: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
void close_pack(struct packed_git *p)
                                   ^
/datasets/git/packfile.c:356:50: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
void close_object_store(struct raw_object_store *o)
                                                 ^
/datasets/git/packfile.c:358:21: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct packed_git *p;
                           ^
                             = NULL
/datasets/git/packfile.c:358:21: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/packfile.c:360:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = o->packed_git; p; p = p->next)
        ^
/datasets/git/packfile.c:360:26: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = o->packed_git; p; p = p->next)
                                ^
/datasets/git/packfile.c:360:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (p = o->packed_git; p; p = p->next)
                                               ^
                                                {
/datasets/git/packfile.c:361:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (p->do_not_close)
                                    ^
                                     {
/datasets/git/packfile.c:363:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/packfile.c:377:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/packfile.c:377:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/packfile.c:379:9: warning: variable 'plen' is not initialized [cppcoreguidelines-init-variables]
        size_t plen;
               ^
                    = 0
/datasets/git/packfile.c:393:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ARRAY_SIZE(exts); i++) {
        ^
/datasets/git/packfile.c:406:46: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static void find_lru_pack(struct packed_git *p, struct packed_git **lru_p, struct pack_window **mru_w, int *accept_windows_inuse)
                                             ^
/datasets/git/packfile.c:408:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct pack_window *w, *this_mru_w;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/packfile.c:408:22: warning: variable 'w' is not initialized [cppcoreguidelines-init-variables]
        struct pack_window *w, *this_mru_w;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/packfile.c:408:22: warning: variable name 'w' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/packfile.c:408:26: warning: variable 'this_mru_w' is not initialized [cppcoreguidelines-init-variables]
        struct pack_window *w, *this_mru_w;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/packfile.c:416:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*lru_p && !*mru_w && (p->windows || p->mtime > (*lru_p)->mtime))
                                                                            ^
                                                                             {
/datasets/git/packfile.c:419:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (w = this_mru_w = p->windows; w; w = w->next) {
        ^
/datasets/git/packfile.c:419:36: warning: backward branch (for loop) is ID-dependent due to variable reference to 'w' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (w = this_mru_w = p->windows; w; w = w->next) {
                                          ^
/datasets/git/packfile.c:427:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (*accept_windows_inuse)
                                                  ^
                                                   {
/datasets/git/packfile.c:429:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/packfile.c:433:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (w->last_used > this_mru_w->last_used)
                                                         ^
                                                          {
/datasets/git/packfile.c:445:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    this_mru_w->last_used > (*mru_w)->last_used)
                                                                ^
                                                                 {
/datasets/git/packfile.c:459:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct packed_git *p, *lru_p = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/packfile.c:459:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/packfile.c:459:21: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct packed_git *p, *lru_p = NULL;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/packfile.c:459:21: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/packfile.c:463:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = the_repository->objects->packed_git; p; p = p->next) {
        ^
/datasets/git/packfile.c:463:48: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = the_repository->objects->packed_git; p; p = p->next) {
                                                      ^
/datasets/git/packfile.c:464:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (p->pack_fd == -1)
                                     ^
                                      {
/datasets/git/packfile.c:469:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (lru_p)
                  ^
                   {
/datasets/git/packfile.c:481:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!getrlimit(RLIMIT_NOFILE, &lim))
                                                    ^
                                                     {
/datasets/git/packfile.c:489:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (0 < open_max)
                                 ^
                                  {
/datasets/git/packfile.c:516:46: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
const char *pack_basename(struct packed_git *p)
                                             ^
/datasets/git/packfile.c:519:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/packfile.c:521:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/packfile.c:530:49: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static int open_packed_git_1(struct packed_git *p)
                                                ^
/datasets/git/packfile.c:532:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/packfile.c:535:17: warning: variable 'idx_hash' is not initialized [cppcoreguidelines-init-variables]
        unsigned char *idx_hash;
                       ^
                                = NULL
/datasets/git/packfile.c:536:10: warning: variable 'read_result' is not initialized [cppcoreguidelines-init-variables]
        ssize_t read_result;
                ^
                            = 0
/datasets/git/packfile.c:539:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (open_pack_index(p))
                               ^
                                {
/datasets/git/packfile.c:546:7: warning: 25 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (25 < max_fds)
                    ^
/datasets/git/packfile.c:546:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (25 < max_fds)
                                 ^
                                  {
/datasets/git/packfile.c:547:29: warning: 25 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        pack_max_fds = max_fds - 25;
                                                 ^
/datasets/git/packfile.c:548:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/packfile.c:552:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (pack_max_fds <= pack_open_fds && close_one_pack())
        ^
/datasets/git/packfile.c:552:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'pack_max_fds' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (pack_max_fds <= pack_open_fds && close_one_pack())
               ^
/datasets/git/packfile.c:552:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (pack_max_fds <= pack_open_fds && close_one_pack())
                                                                 ^
                                                                  {
/datasets/git/packfile.c:556:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (p->pack_fd < 0 || fstat(p->pack_fd, &st))
                                                     ^
                                                      {
/datasets/git/packfile.c:562:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!S_ISREG(st.st_mode))
                                         ^
                                          {
/datasets/git/packfile.c:565:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else if (p->pack_size != st.st_size)
                                              ^
                                               {
/datasets/git/packfile.c:570:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (read_result < 0)
                            ^
                             {
/datasets/git/packfile.c:572:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (read_result != sizeof(hdr))
                                       ^
                                        {
/datasets/git/packfile.c:574:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (hdr.hdr_signature != htonl(PACK_SIGNATURE))
                                                       ^
                                                        {
/datasets/git/packfile.c:576:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!pack_version_ok(hdr.hdr_version))
                                              ^
                                               {
/datasets/git/packfile.c:582:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (p->num_objects != ntohl(hdr.hdr_entries))
                                                     ^
                                                      {
/datasets/git/packfile.c:589:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (read_result < 0)
                            ^
                             {
/datasets/git/packfile.c:591:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (read_result != hashsz)
                                  ^
                                   {
/datasets/git/packfile.c:593:13: warning: result of multiplication in type 'unsigned int' is used as a pointer offset after an implicit widening conversion to type 'size_t' [bugprone-implicit-widening-of-multiplication-result]
        idx_hash = ((unsigned char *)p->index_data) + p->index_size - hashsz * 2;
                   ^
/datasets/git/packfile.c:593:64: note: make conversion explicit to silence this warning
        idx_hash = ((unsigned char *)p->index_data) + p->index_size - hashsz * 2;
                                                                      ^~~~~~~~~~
                                                                      (size_t)()
/datasets/git/packfile.c:593:64: note: perform multiplication in a wider type
        idx_hash = ((unsigned char *)p->index_data) + p->index_size - hashsz * 2;
                                                                      ^~~~~~
                                                                      (size_t)
/datasets/git/packfile.c:594:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!hasheq(hash, idx_hash))
                                    ^
                                     {
/datasets/git/packfile.c:599:47: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static int open_packed_git(struct packed_git *p)
                                              ^
/datasets/git/packfile.c:601:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!open_packed_git_1(p))
                                  ^
                                   {
/datasets/git/packfile.c:620:16: warning: function 'use_pack' has cognitive complexity of 41 (threshold 25) [readability-function-cognitive-complexity]
unsigned char *use_pack(struct packed_git *p,
               ^
/datasets/git/packfile.c:632:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!p->pack_size && p->pack_fd == -1 && open_packed_git(p))
        ^
/datasets/git/packfile.c:632:40: note: +1
        if (!p->pack_size && p->pack_fd == -1 && open_packed_git(p))
                                              ^
/datasets/git/packfile.c:634:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (offset > (p->pack_size - the_hash_algo->rawsz))
        ^
/datasets/git/packfile.c:636:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (offset < 0)
        ^
/datasets/git/packfile.c:639:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!win || !in_window(win, offset)) {
        ^
/datasets/git/packfile.c:639:11: note: +1
        if (!win || !in_window(win, offset)) {
                 ^
/datasets/git/packfile.c:640:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (win)
                ^
/datasets/git/packfile.c:642:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (win = p->windows; win; win = win->next) {
                ^
/datasets/git/packfile.c:643:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (in_window(win, offset))
                        ^
/datasets/git/packfile.c:646:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!win) {
                ^
/datasets/git/packfile.c:650:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (p->pack_fd == -1 && open_packed_git(p))
                        ^
/datasets/git/packfile.c:650:25: note: +1
                        if (p->pack_fd == -1 && open_packed_git(p))
                                             ^
/datasets/git/packfile.c:656:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (len > packed_git_window_size)
                        ^
/datasets/git/packfile.c:660:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (packed_git_limit < pack_mapped
                        ^
/datasets/git/packfile.c:661:5: note: +1
                                && unuse_one_window(p))
                                ^
/datasets/git/packfile.c:666:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (win->base == MAP_FAILED)
                        ^
/datasets/git/packfile.c:669:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!win->offset && win->len == p->pack_size
                        ^
/datasets/git/packfile.c:670:5: note: +1
                                && !p->do_not_close)
                                ^
/datasets/git/packfile.c:674:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (pack_mapped > peak_pack_mapped)
                        ^
/datasets/git/packfile.c:676:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (pack_open_windows > peak_pack_open_windows)
                        ^
/datasets/git/packfile.c:682:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (win != *w_cursor) {
        ^
/datasets/git/packfile.c:688:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (left)
        ^
/datasets/git/packfile.c:620:44: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
unsigned char *use_pack(struct packed_git *p,
                                           ^
/datasets/git/packfile.c:632:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!p->pack_size && p->pack_fd == -1 && open_packed_git(p))
                                                                    ^
                                                                     {
/datasets/git/packfile.c:634:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (offset > (p->pack_size - the_hash_algo->rawsz))
                                                           ^
                                                            {
/datasets/git/packfile.c:636:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (offset < 0)
                       ^
                        {
/datasets/git/packfile.c:640:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (win)
                        ^
                         {
/datasets/git/packfile.c:642:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (win = p->windows; win; win = win->next) {
                ^
/datasets/git/packfile.c:642:26: warning: backward branch (for loop) is ID-dependent due to variable reference to 'win' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (win = p->windows; win; win = win->next) {
                                       ^
/datasets/git/packfile.c:643:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (in_window(win, offset))
                                                   ^
                                                    {
/datasets/git/packfile.c:648:10: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
                        off_t len;
                              ^
                                  = 0
/datasets/git/packfile.c:650:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (p->pack_fd == -1 && open_packed_git(p))
                                                                   ^
                                                                    {
/datasets/git/packfile.c:654:18: warning: narrowing conversion from 'unsigned long' to signed type 'off_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        win->offset = (offset / window_align) * window_align;
                                      ^
/datasets/git/packfile.c:656:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (len > packed_git_window_size)
                                                         ^
                                                          {
/datasets/git/packfile.c:657:11: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'off_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                len = packed_git_window_size;
                                      ^
/datasets/git/packfile.c:660:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (packed_git_limit < pack_mapped
                        ^
/datasets/git/packfile.c:660:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'pack_mapped' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (packed_git_limit < pack_mapped
                               ^
/datasets/git/packfile.c:661:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                && unuse_one_window(p))
                                                       ^
                                                        {
/datasets/git/packfile.c:666:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (win->base == MAP_FAILED)
                                                    ^
                                                     {
/datasets/git/packfile.c:670:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                && !p->do_not_close)
                                                    ^
                                                     {
/datasets/git/packfile.c:674:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (pack_mapped > peak_pack_mapped)
                                                           ^
                                                            {
/datasets/git/packfile.c:676:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (pack_open_windows > peak_pack_open_windows)
                                                                       ^
                                                                        {
/datasets/git/packfile.c:688:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (left)
                 ^
                  {
/datasets/git/packfile.c:695:22: warning: variable name 'w' is too short, expected at least 3 characters [readability-identifier-length]
        struct pack_window *w = *w_cursor;
                            ^
/datasets/git/packfile.c:702:53: warning: 2 adjacent parameters of 'add_packed_git' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
struct packed_git *add_packed_git(const char *path, size_t path_len, int local)
                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/packfile.c:702:60: note: the first parameter in the range is 'path_len'
struct packed_git *add_packed_git(const char *path, size_t path_len, int local)
                                                           ^~~~~~~~
/datasets/git/packfile.c:702:74: note: the last parameter in the range is 'local'
struct packed_git *add_packed_git(const char *path, size_t path_len, int local)
                                                                         ^~~~~
/datasets/git/packfile.c:702:53: note: 
struct packed_git *add_packed_git(const char *path, size_t path_len, int local)
                                                    ^
/datasets/git/packfile.c:702:70: note: 'size_t' and 'int' may be implicitly converted: 'size_t' (as 'unsigned long') -> 'int', 'int' -> 'size_t' (as 'unsigned long')
struct packed_git *add_packed_git(const char *path, size_t path_len, int local)
                                                                     ^
/datasets/git/packfile.c:704:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/packfile.c:705:9: warning: variable 'alloc' is not initialized [cppcoreguidelines-init-variables]
        size_t alloc;
               ^
                     = 0
/datasets/git/packfile.c:706:21: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct packed_git *p;
                           ^
                             = NULL
/datasets/git/packfile.c:706:21: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/packfile.c:712:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strip_suffix_mem(path, &path_len, ".idx"))
                                                       ^
                                                        {
/datasets/git/packfile.c:720:23: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        p = alloc_packed_git(alloc);
                             ^
/datasets/git/packfile.c:721:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(p->pack_name, path, path_len);
        ^~~~~~
/datasets/git/packfile.c:721:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(p->pack_name, path, path_len);
        ^~~~~~
/datasets/git/packfile.c:724:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!access(p->pack_name, F_OK))
                                        ^
                                         {
/datasets/git/packfile.c:728:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!access(p->pack_name, F_OK))
                                        ^
                                         {
/datasets/git/packfile.c:732:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!access(p->pack_name, F_OK))
                                        ^
                                         {
/datasets/git/packfile.c:748:68: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            get_sha1_hex(path + path_len - the_hash_algo->hexsz, p->hash))
                                                                          ^
                                                                           {
/datasets/git/packfile.c:753:44: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void install_packed_git(struct repository *r, struct packed_git *pack)
                                           ^
/datasets/git/packfile.c:755:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pack->pack_fd != -1)
                                ^
                                 {
/datasets/git/packfile.c:765:8: warning: variable 'report_garbage' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
void (*report_garbage)(unsigned seen_bits, const char *path);
       ^
/datasets/git/packfile.c:765:8: warning: variable 'report_garbage' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/packfile.c:770:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (seen_bits == (PACKDIR_FILE_PACK|PACKDIR_FILE_IDX))
                          ^
/datasets/git/./packfile.h:49:27: note: expanded from macro 'PACKDIR_FILE_PACK'
#define PACKDIR_FILE_PACK 1
                          ^
/datasets/git/packfile.c:770:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (seen_bits == (PACKDIR_FILE_PACK|PACKDIR_FILE_IDX))
                                                              ^
                                                               {
/datasets/git/packfile.c:773:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; first < last; first++)
        ^
/datasets/git/packfile.c:773:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (; first < last; first++)
                                     ^
                                      {
/datasets/git/packfile.c:779:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, baselen = -1, first = 0, seen_bits = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/packfile.c:779:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, baselen = -1, first = 0, seen_bits = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/packfile.c:779:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/packfile.c:781:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!report_garbage)
                            ^
                             {
/datasets/git/packfile.c:786:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < list->nr; i++) {
        ^
/datasets/git/packfile.c:789:7: warning: function 'strncmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                    strncmp(path, list->items[first].string, baselen)) {
                    ^
                                                                      != 0
/datasets/git/packfile.c:800:14: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        baselen = dot - path + 1;
                                  ^
/datasets/git/packfile.c:803:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(path + baselen, "pack"))
                                                    ^
                                                     {
/datasets/git/packfile.c:804:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        seen_bits |= 1;
                        ^~~~~~~~~
/datasets/git/packfile.c:805:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(path + baselen, "idx"))
                                                        ^
                                                         {
/datasets/git/packfile.c:806:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        seen_bits |= 2;
                        ^~~~~~~~~
/datasets/git/packfile.c:808:40: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        report_helper(list, seen_bits, first, list->nr);
                                              ^
/datasets/git/packfile.c:812:36: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
                               each_file_in_pack_dir_fn fn,
                                                        ^
/datasets/git/packfile.c:818:2: note: inferred assignment of ID-dependent value from ID-dependent variable dir [altera-id-dependent-backward-branch]
        struct dirent *de;
        ^
/datasets/git/packfile.c:816:9: warning: variable 'dirnamelen' is not initialized [cppcoreguidelines-init-variables]
        size_t dirnamelen;
               ^
                          = 0
/datasets/git/packfile.c:817:7: warning: variable 'dir' is not initialized [cppcoreguidelines-init-variables]
        DIR *dir;
             ^
                 = NULL
/datasets/git/packfile.c:818:17: warning: variable 'de' is not initialized [cppcoreguidelines-init-variables]
        struct dirent *de;
                       ^
                          = NULL
/datasets/git/packfile.c:818:17: warning: variable name 'de' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/packfile.c:824:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (errno != ENOENT)
                                    ^
                                     {
/datasets/git/packfile.c:832:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((de = readdir_skip_dot_and_dotdot(dir)) != NULL) {
        ^
/datasets/git/packfile.c:832:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'de' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((de = readdir_skip_dot_and_dotdot(dir)) != NULL) {
               ^
/datasets/git/packfile.c:843:8: warning: accessing fields in struct 'prepare_pack_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct prepare_pack_data {
       ^
/datasets/git/packfile.c:843:8: note: use "__attribute__((aligned(32)))" to align struct 'prepare_pack_data' to 32 bytes
/datasets/git/packfile.c:854:21: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct packed_git *p;
                           ^
                             = NULL
/datasets/git/packfile.c:854:21: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/packfile.c:867:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (p)
                              ^
                               {
/datasets/git/packfile.c:873:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!report_garbage)
                            ^
                             {
/datasets/git/packfile.c:876:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(file_name, "multi-pack-index"))
                                                   ^
                                                    {
/datasets/git/packfile.c:879:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            (ends_with(file_name, ".bitmap") || ends_with(file_name, ".rev")))
                                                                              ^
                                                                               {
/datasets/git/packfile.c:887:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            ends_with(file_name, ".mtimes"))
                                            ^
                                             {
/datasets/git/packfile.c:889:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/packfile.c:893:55: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void prepare_packed_git_one(struct repository *r, char *objdir, int local)
                                                      ^
/datasets/git/packfile.c:901:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (data.m && strcmp(data.m->object_dir, objdir))
        ^
/datasets/git/packfile.c:901:9: warning: backward branch (while loop) is ID-dependent due to member reference to 'm' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (data.m && strcmp(data.m->object_dir, objdir))
               ^
/datasets/git/packfile.c:901:19: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        while (data.m && strcmp(data.m->object_dir, objdir))
                         ^
                                                            != 0
/datasets/git/packfile.c:901:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (data.m && strcmp(data.m->object_dir, objdir))
                                                            ^
                                                             {
/datasets/git/packfile.c:914:51: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void prepare_packed_git(struct repository *r);
                                                  ^
/datasets/git/packfile.c:922:64: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
unsigned long repo_approximate_object_count(struct repository *r)
                                                               ^
/datasets/git/packfile.c:925:17: warning: variable 'count' is not initialized [cppcoreguidelines-init-variables]
                unsigned long count;
                              ^
                                    = 0
/datasets/git/packfile.c:926:28: warning: variable 'm' is not initialized [cppcoreguidelines-init-variables]
                struct multi_pack_index *m;
                                         ^
                                           = NULL
/datasets/git/packfile.c:926:28: warning: variable name 'm' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/packfile.c:927:22: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                struct packed_git *p;
                                   ^
                                     = NULL
/datasets/git/packfile.c:927:22: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/packfile.c:931:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (m = get_multi_pack_index(r); m; m = m->next)
                ^
/datasets/git/packfile.c:927:3: note: inferred assignment of ID-dependent value from ID-dependent member packed_git [altera-id-dependent-backward-branch]
                struct packed_git *p;
                ^
/datasets/git/packfile.c:931:37: warning: backward branch (for loop) is ID-dependent due to variable reference to 'm' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (m = get_multi_pack_index(r); m; m = m->next)
                                                  ^
/datasets/git/packfile.c:931:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (m = get_multi_pack_index(r); m; m = m->next)
                                                                 ^
                                                                  {
/datasets/git/packfile.c:933:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (p = r->objects->packed_git; p; p = p->next) {
                ^
/datasets/git/packfile.c:933:36: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (p = r->objects->packed_git; p; p = p->next) {
                                                 ^
/datasets/git/packfile.c:934:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (open_pack_index(p))
                                               ^
                                                {
/datasets/git/packfile.c:944:1: warning: backward branch (do loop) is ID-dependent due to variable reference to 'list' and may cause performance degradation [altera-id-dependent-backward-branch]
DEFINE_LIST_SORT(static, sort_packs, struct packed_git, next);
^
/datasets/git/./mergesort.h:102:58: note: expanded from macro 'DEFINE_LIST_SORT'
#define DEFINE_LIST_SORT(scope, name, type, next_member) \
                                                         ^
/datasets/git/./mergesort.h:97:9: note: expanded from macro '\
DEFINE_LIST_SORT_DEBUG'
                                                                \
                                                                ^
/datasets/git/./mergesort.h:24:12: note: expanded from macro '\
DEFINE_LIST_MERGE_INTERNAL'
                } while (compare_fn(list, other) < prefer_list);        \
                         ^
/datasets/git/packfile.c:944:1: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
DEFINE_LIST_SORT(static, sort_packs, struct packed_git, next);
^
/datasets/git/./mergesort.h:102:58: note: expanded from macro 'DEFINE_LIST_SORT'
#define DEFINE_LIST_SORT(scope, name, type, next_member) \
                                                         ^
/datasets/git/./mergesort.h:97:9: note: expanded from macro '\
DEFINE_LIST_SORT_DEBUG'
                                                                \
                                                                ^
/datasets/git/./mergesort.h:14:3: note: expanded from macro '\
DEFINE_LIST_MERGE_INTERNAL'
                SWAP(list, other);                                      \
                ^
/datasets/git/./git-compat-util.h:759:20: note: expanded from macro 'SWAP'
#define SWAP(a, b) do {                                         \
                   ^
/datasets/git/packfile.c:944:1: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
DEFINE_LIST_SORT(static, sort_packs, struct packed_git, next);
^
/datasets/git/./mergesort.h:102:58: note: expanded from macro 'DEFINE_LIST_SORT'
#define DEFINE_LIST_SORT(scope, name, type, next_member) \
                                                         ^
/datasets/git/./mergesort.h:97:9: note: expanded from macro '\
DEFINE_LIST_SORT_DEBUG'
                                                                \
                                                                ^
/datasets/git/./mergesort.h:14:3: note: expanded from macro '\
DEFINE_LIST_MERGE_INTERNAL'
                SWAP(list, other);                                      \
                ^
/datasets/git/./git-compat-util.h:762:29: note: expanded from macro 'SWAP'
        unsigned char _swap_buffer[sizeof(a)];                  \
                                   ^
/datasets/git/packfile.c:944:1: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
DEFINE_LIST_SORT(static, sort_packs, struct packed_git, next);
^
/datasets/git/./mergesort.h:102:58: note: expanded from macro 'DEFINE_LIST_SORT'
#define DEFINE_LIST_SORT(scope, name, type, next_member) \
                                                         ^
/datasets/git/./mergesort.h:97:9: note: expanded from macro '\
DEFINE_LIST_SORT_DEBUG'
                                                                \
                                                                ^
/datasets/git/./mergesort.h:14:3: note: expanded from macro '\
DEFINE_LIST_MERGE_INTERNAL'
                SWAP(list, other);                                      \
                ^~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/packfile.c:944:1: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
DEFINE_LIST_SORT(static, sort_packs, struct packed_git, next);
^
/datasets/git/./mergesort.h:102:58: note: expanded from macro 'DEFINE_LIST_SORT'
#define DEFINE_LIST_SORT(scope, name, type, next_member) \
                                                         ^
/datasets/git/./mergesort.h:97:9: note: expanded from macro '\
DEFINE_LIST_SORT_DEBUG'
                                                                \
                                                                ^
/datasets/git/./mergesort.h:14:3: note: expanded from macro '\
DEFINE_LIST_MERGE_INTERNAL'
                SWAP(list, other);                                      \
                ^~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/packfile.c:944:1: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
DEFINE_LIST_SORT(static, sort_packs, struct packed_git, next);
^
/datasets/git/./mergesort.h:102:58: note: expanded from macro 'DEFINE_LIST_SORT'
#define DEFINE_LIST_SORT(scope, name, type, next_member) \
                                                         ^
/datasets/git/./mergesort.h:97:9: note: expanded from macro '\
DEFINE_LIST_SORT_DEBUG'
                                                                \
                                                                ^
/datasets/git/./mergesort.h:26:3: note: expanded from macro '\
DEFINE_LIST_MERGE_INTERNAL'
                prefer_list ^= 1;                                       \
                ^~~~~~~~~~~
/datasets/git/packfile.c:944:1: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
DEFINE_LIST_SORT(static, sort_packs, struct packed_git, next);
^
/datasets/git/./mergesort.h:102:58: note: expanded from macro 'DEFINE_LIST_SORT'
#define DEFINE_LIST_SORT(scope, name, type, next_member) \
                                                         ^
/datasets/git/./mergesort.h:98:43: note: expanded from macro '\
DEFINE_LIST_SORT_DEBUG'
DEFINE_LIST_MERGE_INTERNAL(name, type)                          \
                                                                ^
/datasets/git/./mergesort.h:57:7: note: expanded from macro '\
DEFINE_LIST_SORT_INTERNAL'
                int i;                                                  \
                    ^
/datasets/git/packfile.c:944:1: warning: variable name 'm' is too short, expected at least 3 characters [readability-identifier-length]
DEFINE_LIST_SORT(static, sort_packs, struct packed_git, next);
^
/datasets/git/./mergesort.h:102:58: note: expanded from macro 'DEFINE_LIST_SORT'
#define DEFINE_LIST_SORT(scope, name, type, next_member) \
                                                         ^
/datasets/git/./mergesort.h:98:43: note: expanded from macro '\
DEFINE_LIST_SORT_DEBUG'
DEFINE_LIST_MERGE_INTERNAL(name, type)                          \
                                                                ^
/datasets/git/./mergesort.h:58:10: note: expanded from macro '\
DEFINE_LIST_SORT_INTERNAL'
                size_t m;                                               \
                       ^
/datasets/git/packfile.c:944:1: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
DEFINE_LIST_SORT(static, sort_packs, struct packed_git, next);
^
/datasets/git/./mergesort.h:102:58: note: expanded from macro 'DEFINE_LIST_SORT'
#define DEFINE_LIST_SORT(scope, name, type, next_member) \
                                                         ^
/datasets/git/./mergesort.h:98:43: note: expanded from macro '\
DEFINE_LIST_SORT_DEBUG'
DEFINE_LIST_MERGE_INTERNAL(name, type)                          \
                                                                ^
/datasets/git/./mergesort.h:51:9: note: expanded from macro '\
DEFINE_LIST_SORT_INTERNAL'
        size_t n = 0;                                                   \
               ^
/datasets/git/packfile.c:944:38: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
DEFINE_LIST_SORT(static, sort_packs, struct packed_git, next);
                                     ^
/datasets/git/packfile.c:946:47: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static int sort_pack(const struct packed_git *a, const struct packed_git *b)
                                              ^
/datasets/git/packfile.c:946:75: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static int sort_pack(const struct packed_git *a, const struct packed_git *b)
                                                                          ^
/datasets/git/packfile.c:948:6: warning: variable 'st' is not initialized [cppcoreguidelines-init-variables]
        int st;
            ^
               = 0
/datasets/git/packfile.c:948:6: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/packfile.c:957:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (st)
               ^
                {
/datasets/git/packfile.c:965:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (a->mtime < b->mtime)
                                ^
                                 {
/datasets/git/packfile.c:967:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (a->mtime == b->mtime)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/packfile.c:967:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (a->mtime == b->mtime)
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/packfile.c:972:53: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void rearrange_packed_git(struct repository *r)
                                                    ^
/datasets/git/packfile.c:977:55: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void prepare_packed_git_mru(struct repository *r)
                                                      ^
/datasets/git/packfile.c:979:21: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct packed_git *p;
                           ^
                             = NULL
/datasets/git/packfile.c:979:21: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/packfile.c:983:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = r->objects->packed_git; p; p = p->next)
        ^
/datasets/git/packfile.c:983:35: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = r->objects->packed_git; p; p = p->next)
                                         ^
/datasets/git/packfile.c:983:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (p = r->objects->packed_git; p; p = p->next)
                                                        ^
                                                         {
/datasets/git/packfile.c:987:51: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void prepare_packed_git(struct repository *r)
                                                  ^
/datasets/git/packfile.c:989:27: warning: variable 'odb' is not initialized [cppcoreguidelines-init-variables]
        struct object_directory *odb;
                                 ^
                                     = NULL
/datasets/git/packfile.c:991:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (r->objects->packed_git_initialized)
                                               ^
                                                {
/datasets/git/packfile.c:995:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (odb = r->objects->odb; odb; odb = odb->next) {
        ^
/datasets/git/packfile.c:995:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'odb' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (odb = r->objects->odb; odb; odb = odb->next) {
                                    ^
/datasets/git/packfile.c:1006:46: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void reprepare_packed_git(struct repository *r)
                                             ^
/datasets/git/packfile.c:1008:27: warning: variable 'odb' is not initialized [cppcoreguidelines-init-variables]
        struct object_directory *odb;
                                 ^
                                     = NULL
/datasets/git/packfile.c:1011:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (odb = r->objects->odb; odb; odb = odb->next)
        ^
/datasets/git/packfile.c:1011:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'odb' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (odb = r->objects->odb; odb; odb = odb->next)
                                    ^
/datasets/git/packfile.c:1011:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (odb = r->objects->odb; odb; odb = odb->next)
                                                         ^
                                                          {
/datasets/git/packfile.c:1020:54: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
struct packed_git *get_packed_git(struct repository *r)
                                                     ^
/datasets/git/packfile.c:1026:66: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
struct multi_pack_index *get_multi_pack_index(struct repository *r)
                                                                 ^
/datasets/git/packfile.c:1032:72: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
struct multi_pack_index *get_local_multi_pack_index(struct repository *r)
                                                                       ^
/datasets/git/packfile.c:1034:27: warning: variable name 'm' is too short, expected at least 3 characters [readability-identifier-length]
        struct multi_pack_index *m = get_multi_pack_index(r);
                                 ^
/datasets/git/packfile.c:1037:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (m && m->local)
                          ^
                           {
/datasets/git/packfile.c:1043:53: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
struct packed_git *get_all_packs(struct repository *r)
                                                    ^
/datasets/git/packfile.c:1045:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct multi_pack_index *m;
        ^
/datasets/git/packfile.c:1045:27: warning: variable 'm' is not initialized [cppcoreguidelines-init-variables]
        struct multi_pack_index *m;
                                 ^
                                   = NULL
/datasets/git/packfile.c:1045:27: warning: variable name 'm' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/packfile.c:1048:41: warning: backward branch (for loop) is ID-dependent due to variable reference to 'm' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (m = r->objects->multi_pack_index; m; m = m->next) {
                                               ^
/datasets/git/packfile.c:1049:12: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                uint32_t i;
                         ^
                           = 0
/datasets/git/packfile.c:1049:12: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/packfile.c:1050:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < m->num_packs; i++)
                ^
/datasets/git/packfile.c:1050:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'm' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < m->num_packs; i++)
                            ^
/datasets/git/packfile.c:1050:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < m->num_packs; i++)
                                                  ^
                                                   {
/datasets/git/packfile.c:1057:57: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
struct list_head *get_packed_git_mru(struct repository *r)
                                                        ^
/datasets/git/packfile.c:1066:11: warning: variable 'shift' is not initialized [cppcoreguidelines-init-variables]
        unsigned shift;
                 ^
                       = 0
/datasets/git/packfile.c:1067:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t size, c;
        ^~~~~~~~~~~~~~~
/datasets/git/packfile.c:1067:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/packfile.c:1067:9: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        size_t size, c;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/packfile.c:1067:15: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        size_t size, c;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/packfile.c:1067:15: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/packfile.c:1071:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        *type = (c >> 4) & 7;
                ^          ~
/datasets/git/packfile.c:1071:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        *type = (c >> 4) & 7;
                 ^    ~
/datasets/git/packfile.c:1071:21: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        *type = (c >> 4) & 7;
                           ^
/datasets/git/packfile.c:1072:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        size = c & 15;
               ^   ~~
/datasets/git/packfile.c:1072:13: warning: 15 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        size = c & 15;
                   ^
/datasets/git/packfile.c:1074:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (c & 0x80) {
        ^
/datasets/git/packfile.c:1074:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'c' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (c & 0x80) {
               ^
/datasets/git/packfile.c:1074:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        while (c & 0x80) {
               ^   ~~~~
/datasets/git/packfile.c:1074:13: warning: 0x80 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        while (c & 0x80) {
                   ^
/datasets/git/packfile.c:1075:41: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (len <= used || (bitsizeof(long) - 7) < shift) {
                                                      ^
/datasets/git/packfile.c:1081:37: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                size = st_add(size, st_left_shift(c & 0x7f, shift));
                                                  ^   ~~~~
/datasets/git/packfile.c:1081:41: warning: 0x7f is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                size = st_add(size, st_left_shift(c & 0x7f, shift));
                                                      ^
/datasets/git/packfile.c:1082:12: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                shift += 7;
                         ^
/datasets/git/packfile.c:1088:54: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
unsigned long get_size_from_delta(struct packed_git *p,
                                                     ^
/datasets/git/packfile.c:1092:23: warning: variable 'data' is not initialized [cppcoreguidelines-init-variables]
        const unsigned char *data;
                             ^
                                  = NULL
/datasets/git/packfile.c:1093:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned char delta_head[20], *in;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/packfile.c:1095:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int st;
        ^
/datasets/git/packfile.c:1093:27: warning: 20 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        unsigned char delta_head[20], *in;
                                 ^
/datasets/git/packfile.c:1093:33: warning: variable 'in' is not initialized [cppcoreguidelines-init-variables]
        unsigned char delta_head[20], *in;
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/packfile.c:1093:33: warning: variable name 'in' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/packfile.c:1095:6: warning: variable 'st' is not initialized [cppcoreguidelines-init-variables]
        int st;
            ^
               = 0
/datasets/git/packfile.c:1095:6: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/packfile.c:1097:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&stream, 0, sizeof(stream));
        ^~~~~~
/datasets/git/packfile.c:1097:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&stream, 0, sizeof(stream));
        ^~~~~~
/datasets/git/packfile.c:1102:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        do {
        ^
/datasets/git/packfile.c:1123:11: warning: backward branch (do loop) is ID-dependent due to variable reference to 'st' and may cause performance degradation [altera-id-dependent-backward-branch]
        } while ((st == Z_OK || st == Z_BUF_ERROR) &&
                 ^
/datasets/git/packfile.c:1143:45: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
int unpack_object_header(struct packed_git *p,
                                            ^
/datasets/git/packfile.c:1148:17: warning: variable 'base' is not initialized [cppcoreguidelines-init-variables]
        unsigned char *base;
                       ^
                            = NULL
/datasets/git/packfile.c:1149:16: warning: variable 'left' is not initialized [cppcoreguidelines-init-variables]
        unsigned long left;
                      ^
                           = 0
/datasets/git/packfile.c:1150:16: warning: variable 'used' is not initialized [cppcoreguidelines-init-variables]
        unsigned long used;
                      ^
                           = 0
/datasets/git/packfile.c:1151:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/packfile.c:1163:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/packfile.c:1164:14: warning: narrowing conversion from 'unsigned long' to signed type 'off_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                *curpos += used;
                           ^
/datasets/git/packfile.c:1169:48: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
void mark_bad_packed_object(struct packed_git *p, const struct object_id *oid)
                                               ^
/datasets/git/packfile.c:1174:64: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
const struct packed_git *has_packed_and_bad(struct repository *r,
                                                               ^
/datasets/git/packfile.c:1177:21: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct packed_git *p;
                           ^
                             = NULL
/datasets/git/packfile.c:1177:21: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/packfile.c:1179:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = r->objects->packed_git; p; p = p->next)
        ^
/datasets/git/packfile.c:1179:35: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = r->objects->packed_git; p; p = p->next)
                                         ^
/datasets/git/packfile.c:1179:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (p = r->objects->packed_git; p; p = p->next)
                                                        ^
                                                         {
/datasets/git/packfile.c:1180:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (oidset_contains(&p->bad_objects, oid))
                                                          ^
                                                           {
/datasets/git/packfile.c:1185:41: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
off_t get_delta_base(struct packed_git *p,
                                        ^
/datasets/git/packfile.c:1188:8: warning: 2 adjacent parameters of 'get_delta_base' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                     enum object_type type,
                     ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/packfile.c:1188:25: note: the first parameter in the range is 'type'
                     enum object_type type,
                                      ^~~~
/datasets/git/packfile.c:1189:14: note: the last parameter in the range is 'delta_obj_offset'
                     off_t delta_obj_offset)
                           ^~~~~~~~~~~~~~~~
/datasets/git/packfile.c:1188:8: note: 
                     enum object_type type,
                     ^
/datasets/git/packfile.c:1189:8: note: 'enum object_type' and 'off_t' may be implicitly converted: 'enum object_type' -> 'off_t' (as 'long'), 'off_t' (as 'long') -> 'enum object_type'
                     off_t delta_obj_offset)
                     ^
/datasets/git/packfile.c:1192:8: warning: variable 'base_offset' is not initialized [cppcoreguidelines-init-variables]
        off_t base_offset;
              ^
                          = 0
/datasets/git/packfile.c:1202:17: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                unsigned char c = base_info[used++];
                              ^
/datasets/git/packfile.c:1203:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                base_offset = c & 127;
                              ^   ~~~
/datasets/git/packfile.c:1203:21: warning: 127 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                base_offset = c & 127;
                                  ^
/datasets/git/packfile.c:1204:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (c & 128) {
                ^
/datasets/git/packfile.c:1204:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'c' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (c & 128) {
                       ^
/datasets/git/packfile.c:1204:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                while (c & 128) {
                       ^   ~~~
/datasets/git/packfile.c:1204:14: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                while (c & 128) {
                           ^
/datasets/git/packfile.c:1206:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!base_offset || MSB(base_offset, 7))
                                            ^
/datasets/git/./git-compat-util.h:155:23: note: expanded from macro 'MSB'
#define MSB(x, bits) ((x) & TYPEOF(x)(~0ULL << (bitsizeof(x) - (bits))))
                      ^~~
/datasets/git/packfile.c:1206:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!base_offset || MSB(base_offset, 7))
                                                                ^
                                                                 {
/datasets/git/packfile.c:1209:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        base_offset = (base_offset << 7) + (c & 127);
                                       ^~~~~~~~~~~
/datasets/git/packfile.c:1209:34: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        base_offset = (base_offset << 7) + (c & 127);
                                                      ^
/datasets/git/packfile.c:1209:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        base_offset = (base_offset << 7) + (c & 127);
                                                            ^   ~~~
/datasets/git/packfile.c:1209:44: warning: 127 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        base_offset = (base_offset << 7) + (c & 127);
                                                                ^
/datasets/git/packfile.c:1212:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (base_offset <= 0 || base_offset >= delta_obj_offset)
                                                                        ^
                                                                         {
/datasets/git/packfile.c:1218:14: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'off_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                *curpos += the_hash_algo->rawsz;
                           ^
/datasets/git/./hash.h:200:23: note: expanded from macro 'the_hash_algo'
#define the_hash_algo the_repository->hash_algo
                      ^
/datasets/git/packfile.c:1219:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/packfile.c:1230:50: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static int get_delta_base_oid(struct packed_git *p,
                                                 ^
/datasets/git/packfile.c:1241:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else if (type == OBJ_OFS_DELTA) {
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/packfile.c:1242:12: warning: variable 'base_pos' is not initialized [cppcoreguidelines-init-variables]
                uint32_t base_pos;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/packfile.c:1246:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!base_offset)
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/packfile.c:1249:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (offset_to_pack_pos(p, base_offset, &base_pos) < 0)
                                                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/packfile.c:1254:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/packfile.c:1258:55: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int retry_bad_packed_offset(struct repository *r,
                                                      ^
/datasets/git/packfile.c:1259:27: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                                   struct packed_git *p,
                                                      ^
/datasets/git/packfile.c:1262:6: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        int type;
            ^
                 = 0
/datasets/git/packfile.c:1263:11: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        uint32_t pos;
                 ^
                     = 0
/datasets/git/packfile.c:1265:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (offset_to_pack_pos(p, obj_offset, &pos) < 0)
                                                        ^
                                                         {
/datasets/git/packfile.c:1270:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (type <= OBJ_NONE)
                             ^
                              {
/datasets/git/packfile.c:1275:1: warning: replace macro with enum [modernize-macro-to-enum]
#define POI_STACK_PREALLOC 64
^~~~~~~~
                           =
/datasets/git/packfile.c:1275:9: warning: macro 'POI_STACK_PREALLOC' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define POI_STACK_PREALLOC 64
        ^
/datasets/git/packfile.c:1277:25: warning: function 'packed_to_object_type' has cognitive complexity of 33 (threshold 25) [readability-function-cognitive-complexity]
static enum object_type packed_to_object_type(struct repository *r,
                        ^
/datasets/git/packfile.c:1288:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (type == OBJ_OFS_DELTA || type == OBJ_REF_DELTA) {
        ^
/datasets/git/packfile.c:1288:31: note: +1
        while (type == OBJ_OFS_DELTA || type == OBJ_REF_DELTA) {
                                     ^
/datasets/git/packfile.c:1292:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (poi_stack_nr >= poi_stack_alloc && poi_stack == small_poi_stack) {
                ^
/datasets/git/packfile.c:1292:39: note: +1
                if (poi_stack_nr >= poi_stack_alloc && poi_stack == small_poi_stack) {
                                                    ^
/datasets/git/packfile.c:1296:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/packfile.c:1297:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        ALLOC_GROW(poi_stack, poi_stack_nr+1, poi_stack_alloc);
                        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/packfile.c:1297:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        ALLOC_GROW(poi_stack, poi_stack_nr+1, poi_stack_alloc);
                        ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/packfile.c:1297:4: note: +5, including nesting penalty of 4, nesting level increased to 5
                        ALLOC_GROW(poi_stack, poi_stack_nr+1, poi_stack_alloc);
                        ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/packfile.c:1297:4: note: +1, nesting level increased to 5
                        ALLOC_GROW(poi_stack, poi_stack_nr+1, poi_stack_alloc);
                        ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/packfile.c:1302:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!base_offset)
                ^
/datasets/git/packfile.c:1306:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (type <= OBJ_NONE) {
                ^
/datasets/git/packfile.c:1310:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (type > OBJ_NONE)
                        ^
/datasets/git/packfile.c:1312:4: note: +1
                        goto unwind;
                        ^
/datasets/git/packfile.c:1316:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        switch (type) {
        ^
/datasets/git/packfile.c:1330:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (poi_stack != small_poi_stack)
        ^
/datasets/git/packfile.c:1335:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (poi_stack_nr) {
        ^
/datasets/git/packfile.c:1338:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (type > OBJ_NONE)
                ^
/datasets/git/packfile.c:1342:2: note: +1
        goto out;
        ^
/datasets/git/packfile.c:1277:66: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static enum object_type packed_to_object_type(struct repository *r,
                                                                 ^
/datasets/git/packfile.c:1278:31: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                                              struct packed_git *p,
                                                                 ^
/datasets/git/packfile.c:1286:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int poi_stack_nr = 0, poi_stack_alloc = POI_STACK_PREALLOC;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/packfile.c:1280:12: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                                              enum object_type type,
                                              ^
/datasets/git/packfile.c:1288:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'type' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (type == OBJ_OFS_DELTA || type == OBJ_REF_DELTA) {
               ^
/datasets/git/packfile.c:1289:9: warning: variable 'base_offset' is not initialized [cppcoreguidelines-init-variables]
                off_t base_offset;
                      ^
                                  = 0
/datasets/git/packfile.c:1290:17: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
                unsigned long size;
                              ^
                                   = 0
/datasets/git/packfile.c:1297:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        ALLOC_GROW(poi_stack, poi_stack_nr+1, poi_stack_alloc);
                        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/packfile.c:1302:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!base_offset)
                                 ^
                                  {
/datasets/git/packfile.c:1310:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (type > OBJ_NONE)
                                            ^
                                             {
/datasets/git/packfile.c:1330:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (poi_stack != small_poi_stack)
                                         ^
                                          {
/datasets/git/packfile.c:1335:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (poi_stack_nr) {
        ^
/datasets/git/packfile.c:1338:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (type > OBJ_NONE)
                                    ^
                                     {
/datasets/git/packfile.c:1345:23: warning: variable 'delta_base_cache' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct hashmap delta_base_cache;
                      ^
/datasets/git/packfile.c:1346:15: warning: variable 'delta_base_cached' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static size_t delta_base_cached;
              ^
/datasets/git/packfile.c:1348:18: warning: variable 'delta_base_cache_lru' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static LIST_HEAD(delta_base_cache_lru);
                 ^
/datasets/git/packfile.c:1350:8: warning: accessing fields in struct 'delta_base_cache_key' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct delta_base_cache_key {
       ^
/datasets/git/packfile.c:1350:8: note: use "__attribute__((aligned(16)))" to align struct 'delta_base_cache_key' to 16 bytes
/datasets/git/packfile.c:1355:8: warning: accessing fields in struct 'delta_base_cache_entry' is inefficient due to padding; only needs 68 bytes but is using 72 bytes [altera-struct-pack-align]
struct delta_base_cache_entry {
       ^
/datasets/git/packfile.c:1355:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'delta_base_cache_entry'
/datasets/git/packfile.c:1355:8: warning: accessing fields in struct 'delta_base_cache_entry' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct delta_base_cache_entry {
       ^
/datasets/git/packfile.c:1355:8: note: use "__attribute__((aligned(128)))" to align struct 'delta_base_cache_entry' to 128 bytes
/datasets/git/packfile.c:1364:56: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static unsigned int pack_entry_hash(struct packed_git *p, off_t base_offset)
                                                       ^
/datasets/git/packfile.c:1366:15: warning: variable 'hash' is not initialized [cppcoreguidelines-init-variables]
        unsigned int hash;
                     ^
                          = 0
/datasets/git/packfile.c:1369:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        hash += (hash >> 8) + (hash >> 16);
                 ^       ~
/datasets/git/packfile.c:1369:19: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        hash += (hash >> 8) + (hash >> 16);
                         ^
/datasets/git/packfile.c:1369:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        hash += (hash >> 8) + (hash >> 16);
                               ^       ~~
/datasets/git/packfile.c:1369:33: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        hash += (hash >> 8) + (hash >> 16);
                                       ^
/datasets/git/packfile.c:1374:47: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
get_delta_base_cache_entry(struct packed_git *p, off_t base_offset)
                                              ^
/datasets/git/packfile.c:1376:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct hashmap_entry entry, *e;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/packfile.c:1376:31: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct hashmap_entry entry, *e;
                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/packfile.c:1376:31: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/packfile.c:1379:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!delta_base_cache.cmpfn)
                                    ^
                                     {
/datasets/git/packfile.c:1389:71: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static int delta_base_cache_key_eq(const struct delta_base_cache_key *a,
                                                                      ^
/datasets/git/packfile.c:1390:43: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
                                   const struct delta_base_cache_key *b)
                                                                      ^
/datasets/git/packfile.c:1396:38: warning: parameter name 'va' is too short, expected at least 3 characters [readability-identifier-length]
                                     const struct hashmap_entry *va,
                                                                 ^
/datasets/git/packfile.c:1397:38: warning: parameter name 'vb' is too short, expected at least 3 characters [readability-identifier-length]
                                     const struct hashmap_entry *vb,
                                                                 ^
/datasets/git/packfile.c:1400:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const struct delta_base_cache_entry *a, *b;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/packfile.c:1400:39: warning: variable 'a' is not initialized [cppcoreguidelines-init-variables]
        const struct delta_base_cache_entry *a, *b;
                                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/packfile.c:1400:39: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/packfile.c:1400:43: warning: variable 'b' is not initialized [cppcoreguidelines-init-variables]
        const struct delta_base_cache_entry *a, *b;
                                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/packfile.c:1400:43: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/packfile.c:1406:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (key)
                ^
                 {
/datasets/git/packfile.c:1408:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else
        ^~~~
                        return !delta_base_cache_key_eq(&a->key, &b->key)
/datasets/git/packfile.c:1408:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/packfile.c:1412:51: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static int in_delta_base_cache(struct packed_git *p, off_t base_offset)
                                                  ^
/datasets/git/packfile.c:1430:55: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void *cache_or_unpack_entry(struct repository *r, struct packed_git *p,
                                                      ^
/datasets/git/packfile.c:1430:77: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static void *cache_or_unpack_entry(struct repository *r, struct packed_git *p,
                                                                            ^
/datasets/git/packfile.c:1434:33: warning: variable 'ent' is not initialized [cppcoreguidelines-init-variables]
        struct delta_base_cache_entry *ent;
                                       ^
                                           = NULL
/datasets/git/packfile.c:1437:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ent)
                 ^
                  {
/datasets/git/packfile.c:1440:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (type)
                 ^
                  {
/datasets/git/packfile.c:1442:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (base_size)
                      ^
                       {
/datasets/git/packfile.c:1455:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct list_head *lru, *tmp;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/packfile.c:1455:2: note: inferred assignment of ID-dependent value from ID-dependent member next [altera-id-dependent-backward-branch]
/datasets/git/packfile.c:1455:20: warning: variable 'lru' is not initialized [cppcoreguidelines-init-variables]
        struct list_head *lru, *tmp;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/packfile.c:1455:26: warning: variable 'tmp' is not initialized [cppcoreguidelines-init-variables]
        struct list_head *lru, *tmp;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/packfile.c:1456:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        list_for_each_safe(lru, tmp, &delta_base_cache_lru) {
        ^
./list.h:137:2: note: expanded from macro 'list_for_each_safe'
        for (pos = (head)->next, p = pos->next; \
        ^
/datasets/git/packfile.c:1456:21: warning: backward branch (for loop) is ID-dependent due to variable reference to 'lru' and may cause performance degradation [altera-id-dependent-backward-branch]
        list_for_each_safe(lru, tmp, &delta_base_cache_lru) {
                           ^
/datasets/git/packfile.c:1463:53: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static void add_delta_base_cache(struct packed_git *p, off_t base_offset,
                                                    ^
/datasets/git/packfile.c:1464:14: warning: 2 adjacent parameters of 'add_delta_base_cache' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
        void *base, unsigned long base_size, enum object_type type)
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/packfile.c:1464:28: note: the first parameter in the range is 'base_size'
        void *base, unsigned long base_size, enum object_type type)
                                  ^~~~~~~~~
/datasets/git/packfile.c:1464:56: note: the last parameter in the range is 'type'
        void *base, unsigned long base_size, enum object_type type)
                                                              ^~~~
/datasets/git/packfile.c:1464:39: note: 'unsigned long' and 'enum object_type' may be implicitly converted
        void *base, unsigned long base_size, enum object_type type)
                                             ^
/datasets/git/packfile.c:1466:33: warning: variable 'ent' is not initialized [cppcoreguidelines-init-variables]
        struct delta_base_cache_entry *ent;
                                       ^
                                           = NULL
/datasets/git/packfile.c:1467:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct list_head *lru, *tmp;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/packfile.c:1467:2: note: inferred assignment of ID-dependent value from ID-dependent member next [altera-id-dependent-backward-branch]
/datasets/git/packfile.c:1467:20: warning: variable 'lru' is not initialized [cppcoreguidelines-init-variables]
        struct list_head *lru, *tmp;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/packfile.c:1467:26: warning: variable 'tmp' is not initialized [cppcoreguidelines-init-variables]
        struct list_head *lru, *tmp;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/packfile.c:1481:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        list_for_each_safe(lru, tmp, &delta_base_cache_lru) {
        ^
./list.h:137:2: note: expanded from macro 'list_for_each_safe'
        for (pos = (head)->next, p = pos->next; \
        ^
/datasets/git/packfile.c:1481:21: warning: backward branch (for loop) is ID-dependent due to variable reference to 'lru' and may cause performance degradation [altera-id-dependent-backward-branch]
        list_for_each_safe(lru, tmp, &delta_base_cache_lru) {
                           ^
/datasets/git/packfile.c:1482:34: warning: variable name 'f' is too short, expected at least 3 characters [readability-identifier-length]
                struct delta_base_cache_entry *f =
                                               ^
/datasets/git/packfile.c:1484:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (delta_base_cached <= delta_base_cache_limit)
                                                                ^
                                                                 {
/datasets/git/packfile.c:1497:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!delta_base_cache.cmpfn)
                                    ^
                                     {
/datasets/git/packfile.c:1503:5: warning: function 'packed_object_info' has cognitive complexity of 44 (threshold 25) [readability-function-cognitive-complexity]
int packed_object_info(struct repository *r, struct packed_git *p,
    ^
/datasets/git/packfile.c:1515:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (oi->contentp) {
        ^
/datasets/git/packfile.c:1518:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!*oi->contentp)
                ^
/datasets/git/packfile.c:1520:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/packfile.c:1524:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!oi->contentp && oi->sizep) {
        ^
/datasets/git/packfile.c:1524:20: note: +1
        if (!oi->contentp && oi->sizep) {
                          ^
/datasets/git/packfile.c:1525:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (type == OBJ_OFS_DELTA || type == OBJ_REF_DELTA) {
                ^
/datasets/git/packfile.c:1525:29: note: +1
                if (type == OBJ_OFS_DELTA || type == OBJ_REF_DELTA) {
                                          ^
/datasets/git/packfile.c:1529:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!base_offset) {
                        ^
/datasets/git/packfile.c:1531:5: note: +1
                                goto out;
                                ^
/datasets/git/packfile.c:1534:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (*oi->sizep == 0) {
                        ^
/datasets/git/packfile.c:1536:5: note: +1
                                goto out;
                                ^
/datasets/git/packfile.c:1538:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/packfile.c:1543:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (oi->disk_sizep) {
        ^
/datasets/git/packfile.c:1545:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (offset_to_pack_pos(p, obj_offset, &pos) < 0) {
                ^
/datasets/git/packfile.c:1549:4: note: +1
                        goto out;
                        ^
/datasets/git/packfile.c:1555:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (oi->typep || oi->type_name) {
        ^
/datasets/git/packfile.c:1555:16: note: +1
        if (oi->typep || oi->type_name) {
                      ^
/datasets/git/packfile.c:1559:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (oi->typep)
                ^
/datasets/git/packfile.c:1561:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (oi->type_name) {
                ^
/datasets/git/packfile.c:1563:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (tn)
                        ^
/datasets/git/packfile.c:1566:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ptot < 0) {
                ^
/datasets/git/packfile.c:1568:4: note: +1
                        goto out;
                        ^
/datasets/git/packfile.c:1572:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (oi->delta_base_oid) {
        ^
/datasets/git/packfile.c:1573:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (type == OBJ_OFS_DELTA || type == OBJ_REF_DELTA) {
                ^
/datasets/git/packfile.c:1573:29: note: +1
                if (type == OBJ_OFS_DELTA || type == OBJ_REF_DELTA) {
                                          ^
/datasets/git/packfile.c:1574:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (get_delta_base_oid(p, &w_curs, curpos,
                        ^
/datasets/git/packfile.c:1578:5: note: +1
                                goto out;
                                ^
/datasets/git/packfile.c:1580:5: note: +1, nesting level increased to 2
                } else
                  ^
/datasets/git/packfile.c:1584:50: note: +1, including nesting penalty of 0, nesting level increased to 1
        oi->whence = in_delta_base_cache(p, obj_offset) ? OI_DBCACHED :
                                                        ^
/datasets/git/packfile.c:1503:43: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int packed_object_info(struct repository *r, struct packed_git *p,
                                          ^
/datasets/git/packfile.c:1503:65: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
int packed_object_info(struct repository *r, struct packed_git *p,
                                                                ^
/datasets/git/packfile.c:1504:48: warning: parameter name 'oi' is too short, expected at least 3 characters [readability-identifier-length]
                       off_t obj_offset, struct object_info *oi)
                                                             ^
/datasets/git/packfile.c:1507:16: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size;
                      ^
                           = 0
/datasets/git/packfile.c:1509:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/packfile.c:1518:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!*oi->contentp)
                                   ^
                                    {
/datasets/git/packfile.c:1544:12: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
                uint32_t pos;
                         ^
                             = 0
/datasets/git/packfile.c:1556:20: warning: variable 'ptot' is not initialized [cppcoreguidelines-init-variables]
                enum object_type ptot;
                                 ^
/datasets/git/packfile.c:1559:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (oi->typep)
                              ^
                               {
/datasets/git/packfile.c:1562:16: warning: variable name 'tn' is too short, expected at least 3 characters [readability-identifier-length]
                        const char *tn = type_name(ptot);
                                    ^
/datasets/git/packfile.c:1563:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (tn)
                               ^
                                {
/datasets/git/packfile.c:1580:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/packfile.c:1592:57: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static void *unpack_compressed_entry(struct packed_git *p,
                                                        ^
/datasets/git/packfile.c:1594:9: warning: 2 adjacent parameters of 'unpack_compressed_entry' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                    off_t curpos,
                                    ^~~~~~~~~~~~~
/datasets/git/packfile.c:1594:15: note: the first parameter in the range is 'curpos'
                                    off_t curpos,
                                          ^~~~~~
/datasets/git/packfile.c:1595:23: note: the last parameter in the range is 'size'
                                    unsigned long size)
                                                  ^~~~
/datasets/git/packfile.c:1594:9: note: 
                                    off_t curpos,
                                    ^
/datasets/git/packfile.c:1595:9: note: 'off_t' and 'unsigned long' may be implicitly converted: 'off_t' (as 'long') -> 'unsigned long', 'unsigned long' -> 'off_t' (as 'long')
                                    unsigned long size)
                                    ^
/datasets/git/packfile.c:1597:6: warning: variable 'st' is not initialized [cppcoreguidelines-init-variables]
        int st;
            ^
               = 0
/datasets/git/packfile.c:1597:6: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/packfile.c:1599:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned char *buffer, *in;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/packfile.c:1599:17: warning: variable 'buffer' is not initialized [cppcoreguidelines-init-variables]
        unsigned char *buffer, *in;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/packfile.c:1599:26: warning: variable 'in' is not initialized [cppcoreguidelines-init-variables]
        unsigned char *buffer, *in;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/packfile.c:1599:26: warning: variable name 'in' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/packfile.c:1602:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!buffer)
                    ^
                     {
/datasets/git/packfile.c:1604:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&stream, 0, sizeof(stream));
        ^~~~~~
/datasets/git/packfile.c:1604:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&stream, 0, sizeof(stream));
        ^~~~~~
/datasets/git/packfile.c:1609:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        do {
        ^
/datasets/git/packfile.c:1621:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!stream.avail_out)
                                      ^
                                       {
/datasets/git/packfile.c:1624:11: warning: backward branch (do loop) is ID-dependent due to variable reference to 'st' and may cause performance degradation [altera-id-dependent-backward-branch]
        } while (st == Z_OK || st == Z_BUF_ERROR);
                 ^
/datasets/git/packfile.c:1637:54: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static void write_pack_access_log(struct packed_git *p, off_t obj_offset)
                                                     ^
/datasets/git/packfile.c:1640:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf_key(&pack_access, "%s %"PRIuMAX"\n",
        ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/packfile.c:1644:5: warning: variable 'do_check_packed_object_crc' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
int do_check_packed_object_crc;
    ^
/datasets/git/packfile.c:1647:8: warning: accessing fields in struct 'unpack_entry_stack_ent' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct unpack_entry_stack_ent {
       ^
/datasets/git/packfile.c:1647:8: note: use "__attribute__((aligned(32)))" to align struct 'unpack_entry_stack_ent' to 32 bytes
/datasets/git/packfile.c:1653:45: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void *read_object(struct repository *r,
                                            ^
/datasets/git/packfile.c:1658:21: warning: variable name 'oi' is too short, expected at least 3 characters [readability-identifier-length]
        struct object_info oi = OBJECT_INFO_INIT;
                           ^
/datasets/git/packfile.c:1659:8: warning: variable 'content' is not initialized [cppcoreguidelines-init-variables]
        void *content;
              ^
                      = NULL
/datasets/git/packfile.c:1664:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oid_object_info_extended(r, oid, &oi, 0) < 0)
                                                         ^
                                                          {
/datasets/git/packfile.c:1669:7: warning: function 'unpack_entry' has cognitive complexity of 60 (threshold 25) [readability-function-cognitive-complexity]
void *unpack_entry(struct repository *r, struct packed_git *p, off_t obj_offset,
      ^
/datasets/git/packfile.c:1685:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (;;) {
        ^
/datasets/git/packfile.c:1691:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ent) {
                ^
/datasets/git/packfile.c:1700:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (do_check_packed_object_crc && p->index_version > 1) {
                ^
/datasets/git/packfile.c:1700:34: note: +1
                if (do_check_packed_object_crc && p->index_version > 1) {
                                               ^
/datasets/git/packfile.c:1704:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (offset_to_pack_pos(p, obj_offset, &pack_pos) < 0) {
                        ^
/datasets/git/packfile.c:1708:5: note: +1
                                goto out;
                                ^
/datasets/git/packfile.c:1713:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (check_pack_crc(p, &w_curs, obj_offset, len, index_pos)) {
                        ^
/datasets/git/packfile.c:1720:5: note: +1
                                goto out;
                                ^
/datasets/git/packfile.c:1725:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (type != OBJ_OFS_DELTA && type != OBJ_REF_DELTA)
                ^
/datasets/git/packfile.c:1725:29: note: +1
                if (type != OBJ_OFS_DELTA && type != OBJ_REF_DELTA)
                                          ^
/datasets/git/packfile.c:1729:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!base_offset) {
                ^
/datasets/git/packfile.c:1739:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (delta_stack_nr >= delta_stack_alloc
                ^
/datasets/git/packfile.c:1740:7: note: +1
                    && delta_stack == small_delta_stack) {
                    ^
/datasets/git/packfile.c:1745:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/packfile.c:1746:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        ALLOC_GROW(delta_stack, delta_stack_nr+1, delta_stack_alloc);
                        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/packfile.c:1746:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        ALLOC_GROW(delta_stack, delta_stack_nr+1, delta_stack_alloc);
                        ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/packfile.c:1746:4: note: +5, including nesting penalty of 4, nesting level increased to 5
                        ALLOC_GROW(delta_stack, delta_stack_nr+1, delta_stack_alloc);
                        ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/packfile.c:1746:4: note: +1, nesting level increased to 5
                        ALLOC_GROW(delta_stack, delta_stack_nr+1, delta_stack_alloc);
                        ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/packfile.c:1757:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        switch (type) {
        ^
/datasets/git/packfile.c:1760:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (data)
                ^
/datasets/git/packfile.c:1767:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!base_from_cache)
                ^
/datasets/git/packfile.c:1781:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (delta_stack_nr) {
        ^
/datasets/git/packfile.c:1791:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!base) {
                ^
/datasets/git/packfile.c:1800:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!(offset_to_pack_pos(p, obj_offset, &pos))) {
                        ^
/datasets/git/packfile.c:1818:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!base)
                ^
/datasets/git/packfile.c:1823:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!delta_data) {
                ^
/datasets/git/packfile.c:1828:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/packfile.c:1841:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!data)
                        ^
/datasets/git/packfile.c:1853:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!external_base)
                ^
/datasets/git/packfile.c:1860:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (final_type)
        ^
/datasets/git/packfile.c:1862:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (final_size)
        ^
/datasets/git/packfile.c:1868:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (delta_stack != small_delta_stack)
        ^
/datasets/git/packfile.c:1669:39: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void *unpack_entry(struct repository *r, struct packed_git *p, off_t obj_offset,
                                      ^
/datasets/git/packfile.c:1669:61: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
void *unpack_entry(struct repository *r, struct packed_git *p, off_t obj_offset,
                                                            ^
/datasets/git/packfile.c:1675:16: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size;
                      ^
                           = 0
/datasets/git/packfile.c:1676:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/packfile.c:1679:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int delta_stack_nr = 0, delta_stack_alloc = UNPACK_ENTRY_STACK_PREALLOC;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/packfile.c:1686:9: warning: variable 'base_offset' is not initialized [cppcoreguidelines-init-variables]
                off_t base_offset;
                      ^
                                  = 0
/datasets/git/packfile.c:1687:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/packfile.c:1687:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/packfile.c:1688:34: warning: variable 'ent' is not initialized [cppcoreguidelines-init-variables]
                struct delta_base_cache_entry *ent;
                                               ^
                                                   = NULL
/datasets/git/packfile.c:1701:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        uint32_t pack_pos, index_pos;
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/packfile.c:1701:13: warning: variable 'pack_pos' is not initialized [cppcoreguidelines-init-variables]
                        uint32_t pack_pos, index_pos;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/packfile.c:1701:23: warning: variable 'index_pos' is not initialized [cppcoreguidelines-init-variables]
                        uint32_t pack_pos, index_pos;
                                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/packfile.c:1702:10: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
                        off_t len;
                              ^
                                  = 0
/datasets/git/packfile.c:1725:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (type != OBJ_OFS_DELTA && type != OBJ_REF_DELTA)
                                                                   ^
                                                                    {
/datasets/git/packfile.c:1746:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        ALLOC_GROW(delta_stack, delta_stack_nr+1, delta_stack_alloc);
                        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/packfile.c:1760:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (data)
                         ^
                          {
/datasets/git/packfile.c:1767:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!base_from_cache)
                                     ^
                                      {
/datasets/git/packfile.c:1781:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (delta_stack_nr) {
        ^
/datasets/git/packfile.c:1782:9: warning: variable 'delta_data' is not initialized [cppcoreguidelines-init-variables]
                void *delta_data;
                      ^
                                 = NULL
/datasets/git/packfile.c:1785:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                unsigned long delta_size, base_size = size;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/packfile.c:1785:17: warning: variable 'delta_size' is not initialized [cppcoreguidelines-init-variables]
                unsigned long delta_size, base_size = size;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/packfile.c:1786:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/packfile.c:1786:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/packfile.c:1798:13: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
                        uint32_t pos;
                                 ^
                                     = 0
/datasets/git/packfile.c:1818:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!base)
                          ^
                           {
/datasets/git/packfile.c:1841:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!data)
                                  ^
                                   {
/datasets/git/packfile.c:1853:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!external_base)
                                   ^
                                    {
/datasets/git/packfile.c:1860:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (final_type)
                       ^
                        {
/datasets/git/packfile.c:1862:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (final_size)
                       ^
                        {
/datasets/git/packfile.c:1868:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (delta_stack != small_delta_stack)
                                             ^
                                              {
/datasets/git/packfile.c:1874:72: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
int bsearch_pack(const struct object_id *oid, const struct packed_git *p, uint32_t *result)
                                                                       ^
/datasets/git/packfile.c:1877:23: warning: variable 'index_lookup' is not initialized [cppcoreguidelines-init-variables]
        const unsigned char *index_lookup;
                             ^
                                          = NULL
/datasets/git/packfile.c:1879:6: warning: variable 'index_lookup_width' is not initialized [cppcoreguidelines-init-variables]
        int index_lookup_width;
            ^
                               = 0
/datasets/git/packfile.c:1881:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!index_fanout)
                          ^
                           {
/datasets/git/packfile.c:1884:17: warning: result of multiplication in type 'int' is used as a pointer offset after an implicit widening conversion to type 'ptrdiff_t' [bugprone-implicit-widening-of-multiplication-result]
        index_lookup = index_fanout + 4 * 256;
                       ^
/datasets/git/packfile.c:1884:32: note: make conversion explicit to silence this warning
        index_lookup = index_fanout + 4 * 256;
                                      ^~~~~~~
                                      (ptrdiff_t)( )
/datasets/git/packfile.c:1884:32: note: perform multiplication in a wider type
        index_lookup = index_fanout + 4 * 256;
                                      ^
                                      (ptrdiff_t)
/datasets/git/packfile.c:1884:36: warning: 256 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        index_lookup = index_fanout + 4 * 256;
                                          ^
/datasets/git/packfile.c:1886:24: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                index_lookup_width = hashsz + 4;
                                     ^
/datasets/git/packfile.c:1889:24: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                index_lookup_width = hashsz;
                                     ^
/datasets/git/packfile.c:1890:19: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                index_fanout += 8;
                                ^
/datasets/git/packfile.c:1891:19: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                index_lookup += 8;
                                ^
/datasets/git/packfile.c:1899:24: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                         struct packed_git *p,
                                            ^
/datasets/git/packfile.c:1905:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (open_pack_index(p))
                                       ^
                                        {
/datasets/git/packfile.c:1909:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (n >= p->num_objects)
                                ^
                                 {
/datasets/git/packfile.c:1911:2: warning: result of multiplication in type 'int' is used as a pointer offset after an implicit widening conversion to type 'ptrdiff_t' [bugprone-implicit-widening-of-multiplication-result]
        index += 4 * 256;
        ^
/datasets/git/packfile.c:1911:11: note: make conversion explicit to silence this warning
        index += 4 * 256;
                 ^~~~~~~
                 (ptrdiff_t)( )
/datasets/git/packfile.c:1911:11: note: perform multiplication in a wider type
        index += 4 * 256;
                 ^
                 (ptrdiff_t)
/datasets/git/packfile.c:1911:15: warning: 256 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        index += 4 * 256;
                     ^
/datasets/git/packfile.c:1913:16: warning: result of multiplication in type 'unsigned int' is used as a pointer offset after an implicit widening conversion to type 'size_t' [bugprone-implicit-widening-of-multiplication-result]
                oidread(oid, index + (hashsz + 4) * n + 4);
                             ^
/datasets/git/packfile.c:1913:24: note: make conversion explicit to silence this warning
                oidread(oid, index + (hashsz + 4) * n + 4);
                                     ^~~~~~~~~~~~~~~~
                                     (size_t)(      )
/datasets/git/packfile.c:1913:24: note: perform multiplication in a wider type
                oidread(oid, index + (hashsz + 4) * n + 4);
                                     ^~~~~~~~~~~
                                      (size_t)
/datasets/git/packfile.c:1915:12: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                index += 8;
                         ^
/datasets/git/packfile.c:1916:16: warning: result of multiplication in type 'unsigned int' is used as a pointer offset after an implicit widening conversion to type 'size_t' [bugprone-implicit-widening-of-multiplication-result]
                oidread(oid, index + hashsz * n);
                             ^
/datasets/git/packfile.c:1916:24: note: make conversion explicit to silence this warning
                oidread(oid, index + hashsz * n);
                                     ^~~~~~~~~~
                                     (size_t)()
/datasets/git/packfile.c:1916:24: note: perform multiplication in a wider type
                oidread(oid, index + hashsz * n);
                                     ^~~~~~
                                     (size_t)
/datasets/git/packfile.c:1921:52: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
void check_pack_index_ptr(const struct packed_git *p, const void *vptr)
                                                   ^
/datasets/git/packfile.c:1926:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ptr < start)
                        ^
                         {
/datasets/git/packfile.c:1930:19: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (ptr >= end - 8)
                         ^
/datasets/git/packfile.c:1930:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ptr >= end - 8)
                           ^
                            {
/datasets/git/packfile.c:1935:57: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
off_t nth_packed_object_offset(const struct packed_git *p, uint32_t n)
                                                        ^
/datasets/git/packfile.c:1939:2: warning: result of multiplication in type 'int' is used as a pointer offset after an implicit widening conversion to type 'ptrdiff_t' [bugprone-implicit-widening-of-multiplication-result]
        index += 4 * 256;
        ^
/datasets/git/packfile.c:1939:11: note: make conversion explicit to silence this warning
        index += 4 * 256;
                 ^~~~~~~
                 (ptrdiff_t)( )
/datasets/git/packfile.c:1939:11: note: perform multiplication in a wider type
        index += 4 * 256;
                 ^
                 (ptrdiff_t)
/datasets/git/packfile.c:1939:15: warning: 256 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        index += 4 * 256;
                     ^
/datasets/git/packfile.c:1942:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else {
          ^~~~~~
/datasets/git/packfile.c:1943:12: warning: variable 'off' is not initialized [cppcoreguidelines-init-variables]
                uint32_t off;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/packfile.c:1944:12: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                index += 8 + (size_t)p->num_objects * (hashsz + 4);
                         ^
/datasets/git/packfile.c:1945:30: warning: result of multiplication in type 'unsigned int' is used as a pointer offset after an implicit widening conversion to type 'size_t' [bugprone-implicit-widening-of-multiplication-result]
                off = ntohl(*((uint32_t *)(index + 4 * n)));
                                           ^
/datasets/git/packfile.c:1945:38: note: make conversion explicit to silence this warning
                off = ntohl(*((uint32_t *)(index + 4 * n)));
                                                   ^
                                                   (size_t)( )
/datasets/git/./compat/bswap.h:90:26: note: expanded from macro 'ntohl'
#define ntohl(x) bswap32(x)
                         ^
/datasets/git/packfile.c:1945:38: note: perform multiplication in a wider type
                off = ntohl(*((uint32_t *)(index + 4 * n)));
                                                   ^
                                                   (size_t)
/datasets/git/./compat/bswap.h:90:26: note: expanded from macro 'ntohl'
#define ntohl(x) bswap32(x)
                         ^
/datasets/git/packfile.c:1946:15: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (!(off & 0x80000000))
                            ^
/datasets/git/packfile.c:1946:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(off & 0x80000000))
                                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/packfile.c:1948:41: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'unsigned int' [bugprone-implicit-widening-of-multiplication-result]
                index += (size_t)p->num_objects * 4 + (off & 0x7fffffff) * 8;
                                                      ^
/datasets/git/packfile.c:1948:41: note: make conversion explicit to silence this warning
                index += (size_t)p->num_objects * 4 + (off & 0x7fffffff) * 8;
                                                      ^~~~~~~~~~~~~~~~~~~~~~
                                                      (unsigned long)(     )
/datasets/git/packfile.c:1948:41: note: perform multiplication in a wider type
                index += (size_t)p->num_objects * 4 + (off & 0x7fffffff) * 8;
                                                      ^~~~~~~~~~~~~~~~~
                                                       (unsigned long)
/datasets/git/packfile.c:1948:42: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                index += (size_t)p->num_objects * 4 + (off & 0x7fffffff) * 8;
                                                       ^     ~~~~~~~~~~
/datasets/git/packfile.c:1948:48: warning: 0x7fffffff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                index += (size_t)p->num_objects * 4 + (off & 0x7fffffff) * 8;
                                                             ^
/datasets/git/packfile.c:1948:62: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                index += (size_t)p->num_objects * 4 + (off & 0x7fffffff) * 8;
                                                                           ^
/datasets/git/packfile.c:1950:10: warning: narrowing conversion from 'uint64_t' (aka 'unsigned long') to signed type 'off_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                return get_be64(index);
                       ^
/datasets/git/packfile.c:1955:26: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                                  struct packed_git *p)
                                                     ^
/datasets/git/packfile.c:1959:11: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        uint32_t result;
                 ^
                        = 0
/datasets/git/packfile.c:1962:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (open_pack_index(p))
                                       ^
                                        {
/datasets/git/packfile.c:1967:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (bsearch_pack(&oid, p, &result))
                                           ^
                                            {
/datasets/git/packfile.c:1972:38: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
int is_pack_valid(struct packed_git *p)
                                     ^
/datasets/git/packfile.c:1975:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (p->pack_fd != -1)
                             ^
                              {
/datasets/git/packfile.c:1983:23: warning: variable name 'w' is too short, expected at least 3 characters [readability-identifier-length]
                struct pack_window *w = p->windows;
                                    ^
/datasets/git/packfile.c:1996:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct packed_git *p;
        ^
/datasets/git/packfile.c:1985:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!w->offset && w->len == p->pack_size)
                                                         ^
                                                          {
/datasets/git/packfile.c:1996:21: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct packed_git *p;
                           ^
                             = NULL
/datasets/git/packfile.c:1996:21: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/packfile.c:1998:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = packs; p; p = p->next) {
        ^
/datasets/git/packfile.c:1998:18: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = packs; p; p = p->next) {
                        ^
/datasets/git/packfile.c:1999:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (find_pack_entry_one(sha1, p))
                                                 ^
                                                  {
/datasets/git/packfile.c:2007:26: warning: parameter name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                           struct pack_entry *e,
                                              ^
/datasets/git/packfile.c:2008:26: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                           struct packed_git *p)
                                              ^
/datasets/git/packfile.c:2010:8: warning: variable 'offset' is not initialized [cppcoreguidelines-init-variables]
        off_t offset;
              ^
                     = 0
/datasets/git/packfile.c:2013:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            oidset_contains(&p->bad_objects, oid))
                                                  ^
                                                   {
/datasets/git/packfile.c:2017:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!offset)
                    ^
                     {
/datasets/git/packfile.c:2027:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_pack_valid(p))
                              ^
                               {
/datasets/git/packfile.c:2034:40: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int find_pack_entry(struct repository *r, const struct object_id *oid, struct pack_entry *e)
                                       ^
/datasets/git/packfile.c:2034:91: warning: parameter name 'e' is too short, expected at least 3 characters [readability-identifier-length]
int find_pack_entry(struct repository *r, const struct object_id *oid, struct pack_entry *e)
                                                                                          ^
/datasets/git/packfile.c:2036:20: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        struct list_head *pos;
                          ^
                              = NULL
/datasets/git/packfile.c:2037:27: warning: variable 'm' is not initialized [cppcoreguidelines-init-variables]
        struct multi_pack_index *m;
                                 ^
                                   = NULL
/datasets/git/packfile.c:2037:27: warning: variable name 'm' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/packfile.c:2040:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!r->objects->packed_git && !r->objects->multi_pack_index)
                                                                     ^
                                                                      {
/datasets/git/packfile.c:2043:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (m = r->objects->multi_pack_index; m; m = m->next) {
        ^
/datasets/git/packfile.c:2036:2: note: inferred assignment of ID-dependent value from ID-dependent member next [altera-id-dependent-backward-branch]
        struct list_head *pos;
        ^
/datasets/git/packfile.c:2043:41: warning: backward branch (for loop) is ID-dependent due to variable reference to 'm' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (m = r->objects->multi_pack_index; m; m = m->next) {
                                               ^
/datasets/git/packfile.c:2044:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fill_midx_entry(r, oid, e, m))
                                                  ^
                                                   {
/datasets/git/packfile.c:2048:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        list_for_each(pos, &r->objects->packed_git_mru) {
        ^
./list.h:130:2: note: expanded from macro 'list_for_each'
        for (pos = (head)->next; pos != (head); pos = pos->next)
        ^
/datasets/git/packfile.c:2048:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'pos' and may cause performance degradation [altera-id-dependent-backward-branch]
        list_for_each(pos, &r->objects->packed_git_mru) {
                      ^
/datasets/git/packfile.c:2049:22: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct packed_git *p = list_entry(pos, struct packed_git, mru);
                                   ^
/datasets/git/packfile.c:2058:65: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void maybe_invalidate_kept_pack_cache(struct repository *r,
                                                                ^
/datasets/git/packfile.c:2061:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!r->objects->kept_pack_cache.packs)
                                               ^
                                                {
/datasets/git/packfile.c:2063:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (r->objects->kept_pack_cache.flags == flags)
                                                       ^
                                                        {
/datasets/git/packfile.c:2065:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(r->objects->kept_pack_cache.packs);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/packfile.c:2069:28: warning: function 'kept_pack_cache' has cognitive complexity of 35 (threshold 25) [readability-function-cognitive-complexity]
static struct packed_git **kept_pack_cache(struct repository *r, unsigned flags)
                           ^
/datasets/git/packfile.c:2073:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!r->objects->kept_pack_cache.packs) {
        ^
/datasets/git/packfile.c:2086:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (p = get_all_packs(r); p; p = p->next) {
                ^
/datasets/git/packfile.c:2087:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if ((p->pack_keep && (flags & ON_DISK_KEEP_PACKS)) ||
                        ^
/datasets/git/packfile.c:2087:55: note: +1
                        if ((p->pack_keep && (flags & ON_DISK_KEEP_PACKS)) ||
                                                                           ^
/datasets/git/packfile.c:2087:22: note: +1
                        if ((p->pack_keep && (flags & ON_DISK_KEEP_PACKS)) ||
                                          ^
/datasets/git/packfile.c:2088:30: note: +1
                            (p->pack_keep_in_core && (flags & IN_CORE_KEEP_PACKS))) {
                                                  ^
/datasets/git/packfile.c:2089:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                ALLOC_GROW(packs, nr + 1, alloc);
                                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/packfile.c:2089:5: note: +5, including nesting penalty of 4, nesting level increased to 5
                                ALLOC_GROW(packs, nr + 1, alloc);
                                ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/packfile.c:2089:5: note: +6, including nesting penalty of 5, nesting level increased to 6
                                ALLOC_GROW(packs, nr + 1, alloc);
                                ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/packfile.c:2089:5: note: +1, nesting level increased to 6
                                ALLOC_GROW(packs, nr + 1, alloc);
                                ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/packfile.c:2093:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                ALLOC_GROW(packs, nr + 1, alloc);
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/packfile.c:2093:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                ALLOC_GROW(packs, nr + 1, alloc);
                ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/packfile.c:2093:3: note: +4, including nesting penalty of 3, nesting level increased to 4
                ALLOC_GROW(packs, nr + 1, alloc);
                ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/packfile.c:2093:3: note: +1, nesting level increased to 4
                ALLOC_GROW(packs, nr + 1, alloc);
                ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/packfile.c:2069:63: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static struct packed_git **kept_pack_cache(struct repository *r, unsigned flags)
                                                              ^
/datasets/git/packfile.c:2075:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                size_t nr = 0, alloc = 0;
                ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/packfile.c:2076:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                struct packed_git *p;
                ^
/datasets/git/packfile.c:2075:10: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
                size_t nr = 0, alloc = 0;
                       ^
/datasets/git/packfile.c:2076:22: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                struct packed_git *p;
                                   ^
                                     = NULL
/datasets/git/packfile.c:2076:22: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/packfile.c:2086:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (p = get_all_packs(r); p; p = p->next) {
                                           ^
/datasets/git/packfile.c:2087:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if ((p->pack_keep && (flags & ON_DISK_KEEP_PACKS)) ||
                                              ^
/datasets/git/packfile.c:2088:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            (p->pack_keep_in_core && (flags & IN_CORE_KEEP_PACKS))) {
                                                      ^
/datasets/git/packfile.c:2089:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                ALLOC_GROW(packs, nr + 1, alloc);
                                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/packfile.c:2089:5: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                                ALLOC_GROW(packs, nr + 1, alloc);
                                ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/packfile.c:2093:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                ALLOC_GROW(packs, nr + 1, alloc);
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/packfile.c:2093:3: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                ALLOC_GROW(packs, nr + 1, alloc);
                ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/packfile.c:2103:45: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int find_kept_pack_entry(struct repository *r,
                                            ^
/datasets/git/packfile.c:2106:24: warning: parameter name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                         struct pack_entry *e)
                                            ^
/datasets/git/packfile.c:2108:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct packed_git **cache;
        ^
/datasets/git/packfile.c:2108:22: warning: variable 'cache' is not initialized [cppcoreguidelines-init-variables]
        struct packed_git **cache;
                            ^
                                  = NULL
/datasets/git/packfile.c:2110:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cache = kept_pack_cache(r, flags); *cache; cache++) {
        ^
/datasets/git/packfile.c:2110:42: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cache' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (cache = kept_pack_cache(r, flags); *cache; cache++) {
                                                ^
/datasets/git/packfile.c:2111:22: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct packed_git *p = *cache;
                                   ^
/datasets/git/packfile.c:2112:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fill_pack_entry(oid, e, p))
                                               ^
                                                {
/datasets/git/packfile.c:2121:20: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
        struct pack_entry e;
                          ^
/datasets/git/packfile.c:2127:20: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
        struct pack_entry e;
                          ^
/datasets/git/packfile.c:2133:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/packfile.c:2134:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (stat(sha1_pack_index_name(sha1), &st))
                                                  ^
                                                   {
/datasets/git/packfile.c:2139:48: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
int for_each_object_in_pack(struct packed_git *p,
                                               ^
/datasets/git/packfile.c:2140:30: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
                            each_packed_object_fn cb, void *data,
                                                  ^
/datasets/git/./object-store.h:111:2: note: inferred assignment of ID-dependent member from ID-dependent variable nr [altera-id-dependent-backward-branch]
        uint32_t num_objects;
        ^
/datasets/git/packfile.c:2143:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        uint32_t i;
                 ^
                   = 0
/datasets/git/packfile.c:2143:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/packfile.c:2144:6: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        int r = 0;
            ^
/datasets/git/packfile.c:2146:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & FOR_EACH_OBJECT_PACK_ORDER) {
            ^       ~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/packfile.c:2147:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (load_pack_revindex(p))
                                          ^
                                           {
/datasets/git/packfile.c:2151:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < p->num_objects; i++) {
        ^
/datasets/git/packfile.c:2151:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'num_objects' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < p->num_objects; i++) {
                    ^
/datasets/git/packfile.c:2152:12: warning: variable 'index_pos' is not initialized [cppcoreguidelines-init-variables]
                uint32_t index_pos;
                         ^
                                   = 0
/datasets/git/packfile.c:2167:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flags & FOR_EACH_OBJECT_PACK_ORDER)
                    ^       ~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/packfile.c:2167:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (flags & FOR_EACH_OBJECT_PACK_ORDER)
                                                       ^
                                                        {
/datasets/git/packfile.c:2169:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/packfile.c:2172:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (nth_packed_object_id(&oid, p, index_pos) < 0)
                                                                 ^
                                                                  {
/datasets/git/packfile.c:2177:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (r)
                      ^
                       {
/datasets/git/packfile.c:2183:50: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
int for_each_packed_object(each_packed_object_fn cb, void *data,
                                                 ^
/datasets/git/packfile.c:2186:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct packed_git *p;
        ^
/datasets/git/packfile.c:2186:21: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct packed_git *p;
                           ^
                             = NULL
/datasets/git/packfile.c:2186:21: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/packfile.c:2187:6: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        int r = 0;
            ^
/datasets/git/packfile.c:2191:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = get_all_packs(the_repository); p; p = p->next) {
        ^
/datasets/git/packfile.c:2191:42: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = get_all_packs(the_repository); p; p = p->next) {
                                                ^
/datasets/git/packfile.c:2192:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((flags & FOR_EACH_OBJECT_LOCAL_ONLY) && !p->pack_local)
                     ^       ~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/packfile.c:2192:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((flags & FOR_EACH_OBJECT_LOCAL_ONLY) && !p->pack_local)
                                                                           ^
                                                                            {
/datasets/git/packfile.c:2194:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((flags & FOR_EACH_OBJECT_PROMISOR_ONLY) &&
                     ^       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/packfile.c:2195:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !p->pack_promisor)
                                      ^
                                       {
/datasets/git/packfile.c:2197:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((flags & FOR_EACH_OBJECT_SKIP_IN_CORE_KEPT_PACKS) &&
                     ^       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/packfile.c:2198:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    p->pack_keep_in_core)
                                         ^
                                          {
/datasets/git/packfile.c:2200:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((flags & FOR_EACH_OBJECT_SKIP_ON_DISK_KEPT_PACKS) &&
                     ^       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/packfile.c:2201:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    p->pack_keep)
                                 ^
                                  {
/datasets/git/packfile.c:2208:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (r)
                      ^
                       {
/datasets/git/packfile.c:2215:30: warning: parameter 'pack' is unused [misc-unused-parameters]
                               struct packed_git *pack,
                                                  ^
/datasets/git/packfile.c:2216:20: warning: parameter 'pos' is unused [misc-unused-parameters]
                               uint32_t pos,
                                        ^
/datasets/git/packfile.c:2220:17: warning: variable 'obj' is not initialized [cppcoreguidelines-init-variables]
        struct object *obj;
                       ^
                           = NULL
/datasets/git/packfile.c:2221:6: warning: variable 'we_parsed_object' is not initialized [cppcoreguidelines-init-variables]
        int we_parsed_object;
            ^
                             = 0
/datasets/git/packfile.c:2231:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!obj)
                 ^
                  {
/datasets/git/packfile.c:2244:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (init_tree_desc_gently(&desc, tree->buffer, tree->size, 0))
                                                                              ^
                                                                               {
/datasets/git/packfile.c:2250:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (tree_entry_gently(&desc, &entry))
                ^
/datasets/git/packfile.c:2250:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (tree_entry_gently(&desc, &entry))
                                                        ^
                                                         {
/datasets/git/packfile.c:2252:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (we_parsed_object)
                                     ^
                                      {
/datasets/git/packfile.c:2259:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (; parents; parents = parents->next)
                ^
/datasets/git/packfile.c:2259:10: warning: backward branch (for loop) is ID-dependent due to variable reference to 'parents' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (; parents; parents = parents->next)
                       ^
/datasets/git/packfile.c:2259:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (; parents; parents = parents->next)
                                                        ^
                                                         {
/datasets/git/packfile.c:2277:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                               FOR_EACH_OBJECT_PROMISOR_ONLY |
                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pager.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "alias.h"
/datasets/git/pager.c:11:29: warning: variable 'pager_process' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct child_process pager_process;
                            ^
/datasets/git/pager.c:12:20: warning: variable 'pager_program' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *pager_program;
                   ^
/datasets/git/pager.c:15:12: warning: variable 'term_columns_guessed' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int term_columns_guessed;
           ^
/datasets/git/pager.c:27:2: warning: the value returned by this function should be used [cert-err33-c]
        fflush(stdout);
        ^~~~~~~~~~~~~~
/datasets/git/pager.c:27:2: note: cast the expression to void to silence this warning
/datasets/git/pager.c:28:2: warning: the value returned by this function should be used [cert-err33-c]
        fflush(stderr);
        ^~~~~~~~~~~~~~
/datasets/git/pager.c:28:2: note: cast the expression to void to silence this warning
/datasets/git/pager.c:38:2: warning: the value returned by this function should be used [cert-err33-c]
        raise(signo);
        ^~~~~~~~~~~~
/datasets/git/pager.c:38:2: note: cast the expression to void to silence this warning
/datasets/git/pager.c:44:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(var, "core.pager"))
                                       ^
                                        {
/datasets/git/pager.c:51:14: warning: variable 'pager' is not initialized [cppcoreguidelines-init-variables]
        const char *pager;
                    ^
                          = NULL
/datasets/git/pager.c:53:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!stdout_is_tty)
                           ^
                            {
/datasets/git/pager.c:56:10: warning: function is not thread safe [concurrency-mt-unsafe]
        pager = getenv("GIT_PAGER");
                ^
/datasets/git/pager.c:58:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!pager_program)
                                   ^
                                    {
/datasets/git/pager.c:62:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!pager)
                   ^
                    {
/datasets/git/pager.c:63:11: warning: function is not thread safe [concurrency-mt-unsafe]
                pager = getenv("PAGER");
                        ^
/datasets/git/pager.c:64:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!pager)
                   ^
                    {
/datasets/git/pager.c:66:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!*pager || !strcmp(pager, "cat"))
                                             ^
                                              {
/datasets/git/pager.c:74:15: warning: variable 'argv' is not initialized [cppcoreguidelines-init-variables]
        const char **argv;
                     ^
                          = NULL
/datasets/git/pager.c:75:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/pager.c:75:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pager.c:77:6: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
        int n = split_cmdline(pager_env, &argv);
            ^
/datasets/git/pager.c:79:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (n < 0)
                  ^
                   {
/datasets/git/pager.c:83:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < n; i++) {
        ^
/datasets/git/pager.c:83:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'n' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < n; i++) {
                    ^
/datasets/git/pager.c:84:9: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
                char *cp = strchr(argv[i], '=');
                      ^
/datasets/git/pager.c:86:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!cp)
                        ^
                         {
/datasets/git/pager.c:90:8: warning: function is not thread safe [concurrency-mt-unsafe]
                if (!getenv(argv[i])) {
                     ^
/datasets/git/pager.c:111:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!pager)
                   ^
                    {
/datasets/git/pager.c:120:12: warning: 64 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                char buf[64];
                         ^
/datasets/git/pager.c:122:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!term_columns_guessed)
                                          ^
                                           {
/datasets/git/pager.c:123:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        setenv("COLUMNS", buf, 0);
                        ^
/datasets/git/pager.c:126:2: warning: function is not thread safe [concurrency-mt-unsafe]
        setenv("GIT_PAGER_IN_USE", "true", 1);
        ^
/datasets/git/pager.c:134:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (start_command(&pager_process))
                                          ^
                                           {
/datasets/git/pager.c:139:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (isatty(2))
                      ^
                       {
/datasets/git/pager.c:145:2: warning: the value returned by this function should be used [cert-err33-c]
        atexit(wait_for_pager_atexit);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pager.c:145:2: note: cast the expression to void to silence this warning
/datasets/git/pager.c:162:8: warning: variable 'col_string' is not initialized [cppcoreguidelines-init-variables]
        char *col_string;
              ^
                         = NULL
/datasets/git/pager.c:163:6: warning: variable 'n_cols' is not initialized [cppcoreguidelines-init-variables]
        int n_cols;
            ^
                   = 0
/datasets/git/pager.c:165:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (term_columns_at_startup)
                                    ^
                                     {
/datasets/git/pager.c:168:28: warning: 80 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        term_columns_at_startup = 80;
                                  ^
/datasets/git/pager.c:171:15: warning: function is not thread safe [concurrency-mt-unsafe]
        col_string = getenv("COLUMNS");
                     ^
/datasets/git/pager.c:172:21: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if (col_string && (n_cols = atoi(col_string)) > 0) {
                           ^
/datasets/git/pager.c:172:21: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/pager.c:172:21: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/pager.c:172:30: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c]
        if (col_string && (n_cols = atoi(col_string)) > 0) {
                                    ^
/datasets/git/pager.c:178:18: warning: variable name 'ws' is too short, expected at least 3 characters [readability-identifier-length]
                struct winsize ws;
                               ^
/datasets/git/pager.c:194:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_terminal_dumb())
                               ^
                                {
/datasets/git/pager.c:200:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "\r%*s\r", term_columns(), "");
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pager.c:200:3: note: cast the expression to void to silence this warning
/datasets/git/pager.c:201:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/pager.c:206:3: warning: the value returned by this function should be used [cert-err33-c]
                fputs("\r\033[K", stderr);
                ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pager.c:206:3: note: cast the expression to void to silence this warning
/datasets/git/pager.c:214:6: warning: variable 'width' is not initialized [cppcoreguidelines-init-variables]
        int width;
            ^
                  = 0
/datasets/git/pager.c:216:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (width = 1; number >= 10; width++)
        ^
/datasets/git/pager.c:216:28: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        for (width = 1; number >= 10; width++)
                                  ^
/datasets/git/pager.c:216:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (width = 1; number >= 10; width++)
                                              ^
                                               {
/datasets/git/pager.c:217:13: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                number /= 10;
                          ^
/datasets/git/pager.c:221:8: warning: accessing fields in struct 'pager_command_config_data' is inefficient due to padding; only needs 20 bytes but is using 24 bytes [altera-struct-pack-align]
struct pager_command_config_data {
       ^
/datasets/git/pager.c:221:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'pager_command_config_data'
/datasets/git/pager.c:221:8: warning: accessing fields in struct 'pager_command_config_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct pager_command_config_data {
       ^
/datasets/git/pager.c:221:8: note: use "__attribute__((aligned(32)))" to align struct 'pager_command_config_data' to 32 bytes
/datasets/git/pager.c:227:33: warning: 2 adjacent parameters of 'pager_command_config' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int pager_command_config(const char *var, const char *value, void *vdata)
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pager.c:227:45: note: the first parameter in the range is 'var'
static int pager_command_config(const char *var, const char *value, void *vdata)
                                            ^~~
/datasets/git/pager.c:227:62: note: the last parameter in the range is 'value'
static int pager_command_config(const char *var, const char *value, void *vdata)
                                                             ^~~~~
/datasets/git/pager.c:230:14: warning: variable 'cmd' is not initialized [cppcoreguidelines-init-variables]
        const char *cmd;
                    ^
                        = NULL
/datasets/git/pager.c:233:7: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
                int b = git_parse_maybe_bool(value);
                    ^
/datasets/git/pager.c:234:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (b >= 0)
                           ^
                            {
/datasets/git/pager.c:256:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (data.value)
                       ^
                        {
/datasets/git/parallel-checkout.c:13:8: warning: accessing fields in struct 'pc_worker' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct pc_worker {
       ^
/datasets/git/parallel-checkout.c:13:8: note: use "__attribute__((aligned(128)))" to align struct 'pc_worker' to 128 bytes
/datasets/git/parallel-checkout.c:18:8: warning: accessing fields in struct 'parallel_checkout' is inefficient due to padding; only needs 44 bytes but is using 48 bytes [altera-struct-pack-align]
struct parallel_checkout {
       ^
/datasets/git/parallel-checkout.c:18:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'parallel_checkout'
/datasets/git/parallel-checkout.c:18:8: warning: accessing fields in struct 'parallel_checkout' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct parallel_checkout {
       ^
/datasets/git/parallel-checkout.c:18:8: note: use "__attribute__((aligned(64)))" to align struct 'parallel_checkout' to 64 bytes
/datasets/git/parallel-checkout.c:26:33: warning: variable 'parallel_checkout' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct parallel_checkout parallel_checkout;
                                ^
/datasets/git/parallel-checkout.c:38:22: warning: function is not thread safe [concurrency-mt-unsafe]
        char *env_workers = getenv("GIT_TEST_CHECKOUT_WORKERS");
                            ^
/datasets/git/parallel-checkout.c:41:29: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (strtol_i(env_workers, 10, num_workers)) {
                                          ^
/datasets/git/parallel-checkout.c:45:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*num_workers < 1)
                                     ^
                                      {
/datasets/git/parallel-checkout.c:52:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (git_config_get_int("checkout.workers", num_workers))
                                                                ^
                                                                 {
/datasets/git/parallel-checkout.c:54:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (*num_workers < 1)
                                  ^
                                   {
/datasets/git/parallel-checkout.c:57:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (git_config_get_int("checkout.thresholdForParallelism", threshold))
                                                                              ^
                                                                               {
/datasets/git/parallel-checkout.c:63:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parallel_checkout.status != PC_UNINITIALIZED)
                                                         ^
                                                          {
/datasets/git/parallel-checkout.c:71:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parallel_checkout.status == PC_UNINITIALIZED)
                                                         ^
                                                          {
/datasets/git/parallel-checkout.c:75:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&parallel_checkout, 0, sizeof(parallel_checkout));
        ^~~~~~
/datasets/git/parallel-checkout.c:75:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&parallel_checkout, 0, sizeof(parallel_checkout));
        ^~~~~~
/datasets/git/parallel-checkout.c:78:72: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static int is_eligible_for_parallel_checkout(const struct cache_entry *ce,
                                                                       ^
/datasets/git/parallel-checkout.c:79:36: warning: parameter name 'ca' is too short, expected at least 3 characters [readability-identifier-length]
                                             const struct conv_attrs *ca)
                                                                      ^
/datasets/git/parallel-checkout.c:81:33: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        enum conv_attrs_classification c;
                                       ^
/datasets/git/parallel-checkout.c:81:33: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/parallel-checkout.c:82:9: warning: variable 'packed_item_size' is not initialized [cppcoreguidelines-init-variables]
        size_t packed_item_size;
               ^
                                = 0
/datasets/git/parallel-checkout.c:90:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!S_ISREG(ce->ce_mode))
                                  ^
                                   {
/datasets/git/parallel-checkout.c:102:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (packed_item_size > LARGE_PACKET_DATA_MAX)
                                                     ^
                                                      {
/datasets/git/parallel-checkout.c:110:2: warning: switch has 2 consecutive identical branches [bugprone-branch-clone]
        case CA_CLASS_INCORE_FILTER:
        ^
/datasets/git/parallel-checkout.c:136:11: note: last of these clones ends here
                return 0;
                        ^
/datasets/git/parallel-checkout.c:146:42: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
int enqueue_checkout(struct cache_entry *ce, struct conv_attrs *ca,
                                         ^
/datasets/git/parallel-checkout.c:146:65: warning: parameter name 'ca' is too short, expected at least 3 characters [readability-identifier-length]
int enqueue_checkout(struct cache_entry *ce, struct conv_attrs *ca,
                                                                ^
/datasets/git/parallel-checkout.c:149:33: warning: variable 'pc_item' is not initialized [cppcoreguidelines-init-variables]
        struct parallel_checkout_item *pc_item;
                                       ^
                                               = NULL
/datasets/git/parallel-checkout.c:152:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !is_eligible_for_parallel_checkout(ce, ca))
                                                       ^
                                                        {
/datasets/git/parallel-checkout.c:155:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(parallel_checkout.items, parallel_checkout.nr + 1,
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/parallel-checkout.c:160:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(&pc_item->ca, ca, sizeof(pc_item->ca));
        ^~~~~~
/datasets/git/parallel-checkout.c:160:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(&pc_item->ca, ca, sizeof(pc_item->ca));
        ^~~~~~
/datasets/git/parallel-checkout.c:186:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i;
               ^
                 = 0
/datasets/git/parallel-checkout.c:186:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/parallel-checkout.c:194:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < parallel_checkout.nr; i++) {
        ^
/datasets/git/parallel-checkout.c:196:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pc_item->status == PC_ITEM_WRITTEN)
                                                       ^
                                                        {
/datasets/git/parallel-checkout.c:200:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < parallel_checkout.nr; i++) {
        ^
/datasets/git/parallel-checkout.c:205:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (pc_item->checkout_counter)
                                                      ^
                                                       {
/datasets/git/parallel-checkout.c:230:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ret |= checkout_entry_ca(pc_item->ce, &pc_item->ca,
                        ^~~
/datasets/git/parallel-checkout.c:246:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (have_pending)
                         ^
                          {
/datasets/git/parallel-checkout.c:252:25: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
static int reset_fd(int fd, const char *path)
                        ^
/datasets/git/parallel-checkout.c:254:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (lseek(fd, 0, SEEK_SET) != 0)
                                        ^
                                         {
/datasets/git/parallel-checkout.c:256:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ftruncate(fd, 0))
                             ^
                              {
/datasets/git/parallel-checkout.c:261:76: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
static int write_pc_item_to_fd(struct parallel_checkout_item *pc_item, int fd,
                                                                           ^
/datasets/git/parallel-checkout.c:264:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/parallel-checkout.c:265:24: warning: variable 'filter' is not initialized [cppcoreguidelines-init-variables]
        struct stream_filter *filter;
                              ^
                                     = NULL
/datasets/git/parallel-checkout.c:267:8: warning: variable 'blob' is not initialized [cppcoreguidelines-init-variables]
        char *blob;
              ^
                   = NULL
/datasets/git/parallel-checkout.c:268:9: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        size_t size;
               ^
                    = 0
/datasets/git/parallel-checkout.c:269:10: warning: variable 'wrote' is not initialized [cppcoreguidelines-init-variables]
        ssize_t wrote;
                ^
                      = 0
/datasets/git/parallel-checkout.c:278:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (reset_fd(fd, path))
                                               ^
                                                {
/datasets/git/parallel-checkout.c:286:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!blob)
                  ^
                   {
/datasets/git/parallel-checkout.c:300:10: warning: variable 'newsize' is not initialized [cppcoreguidelines-init-variables]
                size_t newsize;
                       ^
                               = 0
/datasets/git/parallel-checkout.c:308:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (wrote < 0)
                      ^
                       {
/datasets/git/parallel-checkout.c:314:33: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
static int close_and_clear(int *fd)
                                ^
/datasets/git/parallel-checkout.c:329:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned int mode = (pc_item->ce->ce_mode & 0100) ? 0777 : 0666;
                             ^                      ~~~~
/datasets/git/parallel-checkout.c:329:46: warning: 0100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        unsigned int mode = (pc_item->ce->ce_mode & 0100) ? 0777 : 0666;
                                                    ^
/datasets/git/parallel-checkout.c:329:54: warning: 0777 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        unsigned int mode = (pc_item->ce->ce_mode & 0100) ? 0777 : 0666;
                                                            ^
/datasets/git/parallel-checkout.c:329:61: warning: 0666 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        unsigned int mode = (pc_item->ce->ce_mode & 0100) ? 0777 : 0666;
                                                                   ^
/datasets/git/parallel-checkout.c:330:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int fd = -1, fstat_done = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parallel-checkout.c:330:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
        int fd = -1, fstat_done = 0;
            ^
/datasets/git/parallel-checkout.c:332:14: warning: variable 'dir_sep' is not initialized [cppcoreguidelines-init-variables]
        const char *dir_sep;
                    ^
                            = NULL
/datasets/git/parallel-checkout.c:345:47: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        if (dir_sep && !has_dirs_only_path(path.buf, dir_sep - path.buf,
                                                     ^
/datasets/git/parallel-checkout.c:352:49: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
        fd = open(path.buf, O_WRONLY | O_CREAT | O_EXCL, mode);
                                                       ^
                                                        | O_CLOEXEC
/datasets/git/parallel-checkout.c:401:31: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
static void send_one_item(int fd, struct parallel_checkout_item *pc_item)
                              ^
/datasets/git/parallel-checkout.c:403:9: warning: variable 'len_data' is not initialized [cppcoreguidelines-init-variables]
        size_t len_data;
               ^
                        = 0
/datasets/git/parallel-checkout.c:404:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *data, *variant;
        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/parallel-checkout.c:404:8: warning: variable 'data' is not initialized [cppcoreguidelines-init-variables]
        char *data, *variant;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/parallel-checkout.c:404:15: warning: variable 'variant' is not initialized [cppcoreguidelines-init-variables]
        char *data, *variant;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/parallel-checkout.c:405:32: warning: variable 'fixed_portion' is not initialized [cppcoreguidelines-init-variables]
        struct pc_item_fixed_portion *fixed_portion;
                                      ^
                                                    = NULL
/datasets/git/parallel-checkout.c:437:3: warning: the result from calling 'memcpy' is not null-terminated [bugprone-not-null-terminated-result]
                memcpy(variant, working_tree_encoding, working_tree_encoding_len);
                ^~~~~~                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~
                strcpy
/datasets/git/parallel-checkout.c:437:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(variant, working_tree_encoding, working_tree_encoding_len);
                ^~~~~~
/datasets/git/parallel-checkout.c:437:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(variant, working_tree_encoding, working_tree_encoding_len);
                ^~~~~~
/datasets/git/parallel-checkout.c:440:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(variant, pc_item->ce->name, name_len);
        ^~~~~~
/datasets/git/parallel-checkout.c:440:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(variant, pc_item->ce->name, name_len);
        ^~~~~~
/datasets/git/parallel-checkout.c:447:28: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
static void send_batch(int fd, size_t start, size_t nr)
                           ^
/datasets/git/parallel-checkout.c:447:32: warning: 2 adjacent parameters of 'send_batch' of similar type ('size_t') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void send_batch(int fd, size_t start, size_t nr)
                               ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parallel-checkout.c:447:39: note: the first parameter in the range is 'start'
static void send_batch(int fd, size_t start, size_t nr)
                                      ^~~~~
/datasets/git/parallel-checkout.c:447:53: note: the last parameter in the range is 'nr'
static void send_batch(int fd, size_t start, size_t nr)
                                                    ^~
/datasets/git/parallel-checkout.c:447:53: warning: parameter name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
static void send_batch(int fd, size_t start, size_t nr)
                                                    ^
/datasets/git/parallel-checkout.c:449:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i;
               ^
                 = 0
/datasets/git/parallel-checkout.c:449:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/parallel-checkout.c:451:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr; i++)
        ^
/datasets/git/parallel-checkout.c:451:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < nr; i++)
                                ^
                                 {
/datasets/git/parallel-checkout.c:459:20: warning: variable 'workers' is not initialized [cppcoreguidelines-init-variables]
        struct pc_worker *workers;
                          ^
                                  = NULL
/datasets/git/parallel-checkout.c:460:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, workers_with_one_extra_item;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parallel-checkout.c:460:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, workers_with_one_extra_item;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/parallel-checkout.c:460:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/parallel-checkout.c:460:9: warning: variable 'workers_with_one_extra_item' is not initialized [cppcoreguidelines-init-variables]
        int i, workers_with_one_extra_item;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/parallel-checkout.c:461:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t base_batch_size, batch_beginning = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parallel-checkout.c:461:9: warning: variable 'base_batch_size' is not initialized [cppcoreguidelines-init-variables]
        size_t base_batch_size, batch_beginning = 0;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/parallel-checkout.c:465:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < num_workers; i++) {
        ^
/datasets/git/parallel-checkout.c:466:25: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
                struct child_process *cp = &workers[i].cp;
                                      ^
/datasets/git/parallel-checkout.c:474:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (state->base_dir_len)
                                        ^
                                         {
/datasets/git/parallel-checkout.c:476:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (start_command(cp))
                                      ^
                                       {
/datasets/git/parallel-checkout.c:481:32: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        workers_with_one_extra_item = parallel_checkout.nr % num_workers;
                                      ^
/datasets/git/parallel-checkout.c:483:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < num_workers; i++) {
        ^
/datasets/git/parallel-checkout.c:488:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (i < workers_with_one_extra_item)
                                                    ^
                                                     {
/datasets/git/parallel-checkout.c:503:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/parallel-checkout.c:503:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/parallel-checkout.c:509:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < num_workers; i++) {
        ^
/datasets/git/parallel-checkout.c:510:25: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
                struct child_process *cp = &workers[i].cp;
                                      ^
/datasets/git/parallel-checkout.c:511:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cp->in >= 0)
                                ^
                                 {
/datasets/git/parallel-checkout.c:513:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cp->out >= 0)
                                 ^
                                  {
/datasets/git/parallel-checkout.c:517:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < num_workers; i++) {
        ^
/datasets/git/parallel-checkout.c:518:7: warning: variable name 'rc' is too short, expected at least 3 characters [readability-identifier-length]
                int rc = finish_command(&workers[i].cp);
                    ^
/datasets/git/parallel-checkout.c:519:12: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (rc > 128) {
                         ^
/datasets/git/parallel-checkout.c:534:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (got != exp)
                       ^
                        {
/datasets/git/parallel-checkout.c:542:25: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        struct pc_item_result *res;
                               ^
                                   = NULL
/datasets/git/parallel-checkout.c:543:33: warning: variable 'pc_item' is not initialized [cppcoreguidelines-init-variables]
        struct parallel_checkout_item *pc_item;
                                       ^
                                               = NULL
/datasets/git/parallel-checkout.c:544:15: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat *st = NULL;
                     ^
/datasets/git/parallel-checkout.c:546:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len < PC_ITEM_RESULT_BASE_SIZE)
                                           ^
                                            {
/datasets/git/parallel-checkout.c:563:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!worker->nr_items_to_complete)
                                          ^
                                           {
/datasets/git/parallel-checkout.c:565:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (res->id != worker->next_item_to_complete)
                                                     ^
                                                      {
/datasets/git/parallel-checkout.c:574:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (st)
               ^
                {
/datasets/git/parallel-checkout.c:577:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (res->status != PC_ITEM_COLLIDED)
                                            ^
                                             {
/datasets/git/parallel-checkout.c:584:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, active_workers = num_workers;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parallel-checkout.c:584:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, active_workers = num_workers;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/parallel-checkout.c:584:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/parallel-checkout.c:585:17: warning: variable 'pfds' is not initialized [cppcoreguidelines-init-variables]
        struct pollfd *pfds;
                       ^
                            = NULL
/datasets/git/parallel-checkout.c:594:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                int nr = poll(pfds, num_workers, -1);
                ^
/datasets/git/parallel-checkout.c:588:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < num_workers; i++) {
        ^
/datasets/git/parallel-checkout.c:584:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int i, active_workers = num_workers;
        ^
/datasets/git/parallel-checkout.c:593:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'active_workers' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (active_workers) {
               ^
/datasets/git/parallel-checkout.c:594:7: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
                int nr = poll(pfds, num_workers, -1);
                    ^
/datasets/git/parallel-checkout.c:597:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (errno == EINTR)
                                           ^
                                            {
/datasets/git/parallel-checkout.c:602:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < num_workers && nr > 0; i++) {
                ^
/datasets/git/parallel-checkout.c:602:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < num_workers && nr > 0; i++) {
                            ^
/datasets/git/parallel-checkout.c:606:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!pfd->revents)
                                          ^
                                           {
/datasets/git/parallel-checkout.c:609:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (pfd->revents & POLLIN) {
                            ^~~~~~~~~~~~
/datasets/git/parallel-checkout.c:622:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        } else if (pfd->revents & POLLHUP) {
                                   ^~~~~~~~~~~~
/datasets/git/parallel-checkout.c:625:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        } else if (pfd->revents & (POLLNVAL | POLLERR)) {
                                   ^~~~~~~~~~~~
/datasets/git/parallel-checkout.c:638:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i;
               ^
                 = 0
/datasets/git/parallel-checkout.c:638:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/parallel-checkout.c:640:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < parallel_checkout.nr; i++) {
        ^
/datasets/git/parallel-checkout.c:643:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pc_item->status != PC_ITEM_COLLIDED)
                                                        ^
                                                         {
/datasets/git/parallel-checkout.c:651:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/parallel-checkout.c:653:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parallel_checkout.status != PC_ACCEPTING_ENTRIES)
                                                             ^
                                                              {
/datasets/git/parallel-checkout.c:660:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parallel_checkout.nr < num_workers)
                                               ^
                                                {
/datasets/git/parallel-checkout.c:661:17: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                num_workers = parallel_checkout.nr;
                              ^
/datasets/git/parse-options-cb.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "parse-options.h"
^        ~~~~~~~~~~~~~~~~~
         "branch.h"
/datasets/git/parse-options-cb.c:15:6: warning: variable 'v' is not initialized [cppcoreguidelines-init-variables]
        int v;
            ^
              = 0
/datasets/git/parse-options-cb.c:15:6: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/parse-options-cb.c:20:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!*arg)
                          ^
                           {
/datasets/git/parse-options-cb.c:23:7: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                v = strtol(arg, (char **)&arg, 10);
                    ^
/datasets/git/parse-options-cb.c:23:34: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                v = strtol(arg, (char **)&arg, 10);
                                               ^
/datasets/git/parse-options-cb.c:24:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*arg)
                         ^
                          {
/datasets/git/parse-options-cb.c:27:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (v && v < MINIMUM_ABBREV)
                                            ^
                                             {
/datasets/git/parse-options-cb.c:29:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (v > the_hash_algo->hexsz)
                                                  ^
                                                   {
/datasets/git/parse-options-cb.c:39:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unset)
                  ^
                   {
/datasets/git/parse-options-cb.c:41:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_expiry_date(arg, (timestamp_t *)opt->value))
                                                              ^
                                                               {
/datasets/git/parse-options-cb.c:49:6: warning: variable 'value' is not initialized [cppcoreguidelines-init-variables]
        int value;
            ^
                  = 0
/datasets/git/parse-options-cb.c:51:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!arg)
                 ^
                  {
/datasets/git/parse-options-cb.c:52:27: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
                arg = unset ? "never" : (const char *)opt->defval;
                                        ^
/datasets/git/parse-options-cb.c:54:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (value < 0)
                      ^
                       {
/datasets/git/parse-options-cb.c:66:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_ARG(arg);
        ^
/datasets/git/./parse-options.h:288:29: note: expanded from macro 'BUG_ON_OPT_ARG'
#define BUG_ON_OPT_ARG(arg) do { \
                            ^
/datasets/git/parse-options-cb.c:68:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unset)
                  ^
                   {
/datasets/git/parse-options-cb.c:72:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*target >= 0)
                                 ^
                                  {
/datasets/git/parse-options-cb.c:74:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/parse-options-cb.c:77:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*target <= 0)
                                 ^
                                  {
/datasets/git/parse-options-cb.c:79:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/parse-options-cb.c:88:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/parse-options-cb.c:90:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/parse-options-cb.c:92:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!arg)
                 ^
                  {
/datasets/git/parse-options-cb.c:94:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid(arg, &oid))
                               ^
                                {
/datasets/git/parse-options-cb.c:97:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!commit)
                    ^
                     {
/datasets/git/parse-options-cb.c:106:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/parse-options-cb.c:109:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/parse-options-cb.c:111:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!arg)
                 ^
                  {
/datasets/git/parse-options-cb.c:113:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid(arg, &oid))
                               ^
                                {
/datasets/git/parse-options-cb.c:116:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!commit)
                    ^
                     {
/datasets/git/parse-options-cb.c:130:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!arg)
                 ^
                  {
/datasets/git/parse-options-cb.c:132:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid(arg, &oid))
                               ^
                                {
/datasets/git/parse-options-cb.c:147:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!arg)
                 ^
                  {
/datasets/git/parse-options-cb.c:149:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid(arg, &oid))
                               ^
                                {
/datasets/git/parse-options-cb.c:159:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_ARG(arg);
        ^
/datasets/git/./parse-options.h:288:29: note: expanded from macro 'BUG_ON_OPT_ARG'
#define BUG_ON_OPT_ARG(arg) do { \
                            ^
/datasets/git/parse-options-cb.c:167:9: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
        size_t n = 0;
               ^
/datasets/git/parse-options-cb.c:169:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; opt && opt->type != OPTION_END; opt++)
        ^
/datasets/git/parse-options-cb.c:169:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (; opt && opt->type != OPTION_END; opt++)
                                                     ^
                                                      {
/datasets/git/parse-options-cb.c:174:55: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
struct option *parse_options_dup(const struct option *o)
                                                      ^
/datasets/git/parse-options-cb.c:181:58: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
struct option *parse_options_concat(const struct option *a,
                                                         ^
/datasets/git/parse-options-cb.c:182:30: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
                                    const struct option *b)
                                                         ^
/datasets/git/parse-options-cb.c:184:17: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        struct option *ret;
                       ^
                           = NULL
/datasets/git/parse-options-cb.c:197:22: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
        struct string_list *v = opt->value;
                            ^
/datasets/git/parse-options-cb.c:204:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!arg)
                 ^
                  {
/datasets/git/parse-options-cb.c:211:44: warning: parameter 'opt' is unused [misc-unused-parameters]
int parse_opt_noop_cb(const struct option *opt, const char *arg, int unset)
                                           ^
/datasets/git/parse-options-cb.c:211:61: warning: parameter 'arg' is unused [misc-unused-parameters]
int parse_opt_noop_cb(const struct option *opt, const char *arg, int unset)
                                                            ^
/datasets/git/parse-options-cb.c:211:70: warning: parameter 'unset' is unused [misc-unused-parameters]
int parse_opt_noop_cb(const struct option *opt, const char *arg, int unset)
                                                                     ^
/datasets/git/parse-options-cb.c:223:68: warning: parameter 'ctx' is unused [misc-unused-parameters]
enum parse_opt_result parse_opt_unknown_cb(struct parse_opt_ctx_t *ctx,
                                                                   ^
/datasets/git/parse-options-cb.c:224:30: warning: parameter 'opt' is unused [misc-unused-parameters]
                                           const struct option *opt,
                                                                ^
/datasets/git/parse-options-cb.c:225:30: warning: parameter 'unset' is unused [misc-unused-parameters]
                                           const char *arg, int unset)
                                                                ^
/datasets/git/parse-options-cb.c:227:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_ARG(arg);
        ^
/datasets/git/./parse-options.h:288:29: note: expanded from macro 'BUG_ON_OPT_ARG'
#define BUG_ON_OPT_ARG(arg) do { \
                            ^
/datasets/git/parse-options-cb.c:234:40: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static int recreate_opt(struct strbuf *sb, const struct option *opt,
                                       ^
/datasets/git/parse-options-cb.c:249:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (arg)
                        ^
                         {
/datasets/git/parse-options-cb.c:251:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/parse-options-cb.c:266:23: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        static struct strbuf sb = STRBUF_INIT;
                             ^
/datasets/git/parse-options-cb.c:269:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (recreate_opt(&sb, opt, arg, unset) < 0)
                                                   ^
                                                    {
/datasets/git/parse-options-cb.c:287:23: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        static struct strbuf sb = STRBUF_INIT;
                             ^
/datasets/git/parse-options-cb.c:290:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (recreate_opt(&sb, opt, arg, unset) < 0)
                                                   ^
                                                    {
/datasets/git/parse-options-cb.c:300:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unset)
                  ^
                   {
/datasets/git/parse-options-cb.c:302:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!arg || !strcmp(arg, "direct"))
                                                ^
                                                 {
/datasets/git/parse-options-cb.c:304:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(arg, "inherit"))
                                         ^
                                          {
/datasets/git/parse-options-cb.c:306:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/parse-options.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "parse-options.h"
^        ~~~~~~~~~~~~~~~~~
         "cache.h"
/datasets/git/parse-options.c:9:12: warning: variable 'disallow_abbreviated_options' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int disallow_abbreviated_options;
           ^
/datasets/git/parse-options.c:13:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_SHORT = 1<<0,
                    ^
/datasets/git/parse-options.c:14:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        OPT_UNSET = 1<<1,
                    ^
/datasets/git/parse-options.c:19:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt->long_name && opt->short_name)
                                              ^
                                               {
/datasets/git/parse-options.c:22:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (opt->long_name)
                                ^
                                 {
/datasets/git/parse-options.c:24:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/parse-options.c:30:23: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        static struct strbuf sb = STRBUF_INIT;
                             ^
/datasets/git/parse-options.c:33:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & OPT_SHORT)
            ^       ~~~~~~~~~
/datasets/git/parse-options.c:33:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & OPT_SHORT)
                              ^
                               {
/datasets/git/parse-options.c:35:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        else if (flags & OPT_UNSET)
                 ^       ~~~~~~~~~
/datasets/git/parse-options.c:35:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (flags & OPT_UNSET)
                                   ^
                                    {
/datasets/git/parse-options.c:37:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (flags == OPT_LONG)
                                   ^
                                    {
/datasets/git/parse-options.c:39:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/parse-options.c:45:62: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static enum parse_opt_result get_arg(struct parse_opt_ctx_t *p,
                                                             ^
/datasets/git/parse-options.c:52:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        } else if (p->argc == 1 && (opt->flags & PARSE_OPT_LASTARG_DEFAULT)) {
                                    ^            ~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:53:10: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
                *arg = (const char *)opt->defval;
                       ^
/datasets/git/parse-options.c:57:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/parse-options.c:65:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            || !strcmp("-", *file))
                                   ^
                                    {
/datasets/git/parse-options.c:71:2: warning: 2 adjacent parameters of 'opt_command_mode_error' of similar type ('const struct option *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
        const struct option *opt,
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:71:23: note: the first parameter in the range is 'opt'
        const struct option *opt,
                             ^~~
/datasets/git/parse-options.c:72:23: note: the last parameter in the range is 'all_opts'
        const struct option *all_opts,
                             ^~~~~~~~
/datasets/git/parse-options.c:75:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        const struct option *that;
        ^
/datasets/git/parse-options.c:75:23: warning: variable 'that' is not initialized [cppcoreguidelines-init-variables]
        const struct option *that;
                             ^
                                  = NULL
/datasets/git/parse-options.c:82:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (that = all_opts; that->type != OPTION_END; that++) {
        ^
/datasets/git/parse-options.c:82:24: warning: backward branch (for loop) is ID-dependent due to variable reference to 'that' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (that = all_opts; that->type != OPTION_END; that++) {
                              ^
/datasets/git/parse-options.c:84:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    !(that->flags & PARSE_OPT_CMDMODE) ||
                      ^             ~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:86:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    that->defval != *(int *)opt->value)
                                                       ^
                                                        {
/datasets/git/parse-options.c:89:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (that->long_name)
                                    ^
                                     {
/datasets/git/parse-options.c:91:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/parse-options.c:102:30: warning: function 'get_value' has cognitive complexity of 68 (threshold 25) [readability-function-cognitive-complexity]
static enum parse_opt_result get_value(struct parse_opt_ctx_t *p,
                             ^
/datasets/git/parse-options.c:111:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (unset && p->opt)
        ^
/datasets/git/parse-options.c:111:12: note: +1
        if (unset && p->opt)
                  ^
/datasets/git/parse-options.c:113:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (unset && (opt->flags & PARSE_OPT_NONEG))
        ^
/datasets/git/parse-options.c:113:12: note: +1
        if (unset && (opt->flags & PARSE_OPT_NONEG))
                  ^
/datasets/git/parse-options.c:115:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!(flags & OPT_SHORT) && p->opt && (opt->flags & PARSE_OPT_NOARG))
        ^
/datasets/git/parse-options.c:115:37: note: +1
        if (!(flags & OPT_SHORT) && p->opt && (opt->flags & PARSE_OPT_NOARG))
                                           ^
/datasets/git/parse-options.c:122:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((opt->flags & PARSE_OPT_CMDMODE) &&
        ^
/datasets/git/parse-options.c:123:25: note: +1
            *(int *)opt->value && *(int *)opt->value != opt->defval)
                               ^
/datasets/git/parse-options.c:126:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        switch (opt->type) {
        ^
/datasets/git/parse-options.c:131:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (unset)
                ^
/datasets/git/parse-options.c:133:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/parse-options.c:138:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (unset)
                ^
/datasets/git/parse-options.c:140:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/parse-options.c:145:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (unset)
                ^
/datasets/git/parse-options.c:152:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*(int *)opt->value < 0)
                ^
/datasets/git/parse-options.c:154:30: note: +2, including nesting penalty of 1, nesting level increased to 2
                *(int *)opt->value = unset ? 0 : *(int *)opt->value + 1;
                                           ^
/datasets/git/parse-options.c:158:30: note: +2, including nesting penalty of 1, nesting level increased to 2
                *(int *)opt->value = unset ? 0 : opt->defval;
                                           ^
/datasets/git/parse-options.c:162:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (unset)
                ^
/datasets/git/parse-options.c:164:8: note: +1, nesting level increased to 2
                else if (opt->flags & PARSE_OPT_OPTARG && !p->opt)
                     ^
/datasets/git/parse-options.c:164:42: note: +1
                else if (opt->flags & PARSE_OPT_OPTARG && !p->opt)
                                                       ^
/datasets/git/parse-options.c:166:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/parse-options.c:172:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (unset)
                ^
/datasets/git/parse-options.c:174:8: note: +1, nesting level increased to 2
                else if (opt->flags & PARSE_OPT_OPTARG && !p->opt)
                     ^
/datasets/git/parse-options.c:174:42: note: +1
                else if (opt->flags & PARSE_OPT_OPTARG && !p->opt)
                                                       ^
/datasets/git/parse-options.c:176:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/parse-options.c:179:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!err)
                ^
/datasets/git/parse-options.c:188:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (unset)
                ^
/datasets/git/parse-options.c:190:8: note: +1, nesting level increased to 2
                else if (opt->flags & PARSE_OPT_NOARG)
                     ^
/datasets/git/parse-options.c:192:8: note: +1, nesting level increased to 2
                else if (opt->flags & PARSE_OPT_OPTARG && !p->opt)
                     ^
/datasets/git/parse-options.c:192:42: note: +1
                else if (opt->flags & PARSE_OPT_OPTARG && !p->opt)
                                                       ^
/datasets/git/parse-options.c:194:8: note: +1, nesting level increased to 2
                else if (get_arg(p, opt, flags, &arg))
                     ^
/datasets/git/parse-options.c:196:3: note: +1, nesting level increased to 2
                else {
                ^
/datasets/git/parse-options.c:200:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opt->callback)
                ^
/datasets/git/parse-options.c:201:49: note: +3, including nesting penalty of 2, nesting level increased to 3
                        return (*opt->callback)(opt, p_arg, p_unset) ? (-1) : 0;
                                                                     ^
/datasets/git/parse-options.c:202:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/parse-options.c:206:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (unset) {
                ^
/datasets/git/parse-options.c:210:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opt->flags & PARSE_OPT_OPTARG && !p->opt) {
                ^
/datasets/git/parse-options.c:210:37: note: +1
                if (opt->flags & PARSE_OPT_OPTARG && !p->opt) {
                                                  ^
/datasets/git/parse-options.c:214:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (get_arg(p, opt, flags, &arg))
                ^
/datasets/git/parse-options.c:216:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!*arg)
                ^
/datasets/git/parse-options.c:220:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*s)
                ^
/datasets/git/parse-options.c:226:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (unset) {
                ^
/datasets/git/parse-options.c:230:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opt->flags & PARSE_OPT_OPTARG && !p->opt) {
                ^
/datasets/git/parse-options.c:230:37: note: +1
                if (opt->flags & PARSE_OPT_OPTARG && !p->opt) {
                                                  ^
/datasets/git/parse-options.c:234:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (get_arg(p, opt, flags, &arg))
                ^
/datasets/git/parse-options.c:236:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!git_parse_ulong(arg, opt->value))
                ^
/datasets/git/parse-options.c:102:64: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static enum parse_opt_result get_value(struct parse_opt_ctx_t *p,
                                                               ^
/datasets/git/parse-options.c:107:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *s, *arg;
        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:107:14: warning: variable 's' is not initialized [cppcoreguidelines-init-variables]
        const char *s, *arg;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/parse-options.c:107:14: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/parse-options.c:107:18: warning: variable 'arg' is not initialized [cppcoreguidelines-init-variables]
        const char *s, *arg;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/parse-options.c:108:20: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        const int unset = flags & OPT_UNSET;
                          ^
/datasets/git/parse-options.c:108:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        const int unset = flags & OPT_UNSET;
                          ^       ~~~~~~~~~
/datasets/git/parse-options.c:109:6: warning: variable 'err' is not initialized [cppcoreguidelines-init-variables]
        int err;
            ^
                = 0
/datasets/git/parse-options.c:111:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unset && p->opt)
                            ^
                             {
/datasets/git/parse-options.c:113:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (unset && (opt->flags & PARSE_OPT_NONEG))
                      ^            ~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:113:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unset && (opt->flags & PARSE_OPT_NONEG))
                                                    ^
                                                     {
/datasets/git/parse-options.c:115:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & OPT_SHORT) && p->opt && (opt->flags & PARSE_OPT_NOARG))
              ^       ~~~~~~~~~
/datasets/git/parse-options.c:115:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & OPT_SHORT) && p->opt && (opt->flags & PARSE_OPT_NOARG))
                                               ^            ~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:115:71: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(flags & OPT_SHORT) && p->opt && (opt->flags & PARSE_OPT_NOARG))
                                                                             ^
                                                                              {
/datasets/git/parse-options.c:122:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((opt->flags & PARSE_OPT_CMDMODE) &&
             ^            ~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:123:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            *(int *)opt->value && *(int *)opt->value != opt->defval)
                                                                    ^
                                                                     {
/datasets/git/parse-options.c:131:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (unset)
                          ^
                           {
/datasets/git/parse-options.c:132:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        *(int *)opt->value &= ~opt->defval;
                        ^~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:132:26: warning: narrowing conversion from 'intptr_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        *(int *)opt->value &= ~opt->defval;
                                              ^
/datasets/git/parse-options.c:132:26: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                        *(int *)opt->value &= ~opt->defval;
                                              ^~~~~~~~~~~~
/datasets/git/parse-options.c:133:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/parse-options.c:134:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        *(int *)opt->value |= opt->defval;
                        ^~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:134:26: warning: narrowing conversion from 'intptr_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        *(int *)opt->value |= opt->defval;
                                              ^
/datasets/git/parse-options.c:138:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (unset)
                          ^
                           {
/datasets/git/parse-options.c:139:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        *(int *)opt->value |= opt->defval;
                        ^~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:139:26: warning: narrowing conversion from 'intptr_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        *(int *)opt->value |= opt->defval;
                                              ^
/datasets/git/parse-options.c:140:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/parse-options.c:141:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        *(int *)opt->value &= ~opt->defval;
                        ^~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:141:26: warning: narrowing conversion from 'intptr_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        *(int *)opt->value &= ~opt->defval;
                                              ^
/datasets/git/parse-options.c:141:26: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                        *(int *)opt->value &= ~opt->defval;
                                              ^~~~~~~~~~~~
/datasets/git/parse-options.c:145:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (unset)
                          ^
                           {
/datasets/git/parse-options.c:147:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                *(int *)opt->value &= ~opt->extra;
                ^~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:147:25: warning: narrowing conversion from 'intptr_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                *(int *)opt->value &= ~opt->extra;
                                      ^
/datasets/git/parse-options.c:147:25: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                *(int *)opt->value &= ~opt->extra;
                                      ^~~~~~~~~~~
/datasets/git/parse-options.c:148:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                *(int *)opt->value |= opt->defval;
                ^~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:148:25: warning: narrowing conversion from 'intptr_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                *(int *)opt->value |= opt->defval;
                                      ^
/datasets/git/parse-options.c:152:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*(int *)opt->value < 0)
                                           ^
                                            {
/datasets/git/parse-options.c:158:36: warning: narrowing conversion from 'intptr_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                *(int *)opt->value = unset ? 0 : opt->defval;
                                                 ^
/datasets/git/parse-options.c:162:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (unset)
                          ^
                           {
/datasets/git/parse-options.c:164:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                else if (opt->flags & PARSE_OPT_OPTARG && !p->opt)
                         ^            ~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:164:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (opt->flags & PARSE_OPT_OPTARG && !p->opt)
                                                                  ^
                                                                   {
/datasets/git/parse-options.c:165:33: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
                        *(const char **)opt->value = (const char *)opt->defval;
                                                     ^
/datasets/git/parse-options.c:166:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/parse-options.c:172:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (unset)
                          ^
                           {
/datasets/git/parse-options.c:174:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                else if (opt->flags & PARSE_OPT_OPTARG && !p->opt)
                         ^            ~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:174:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (opt->flags & PARSE_OPT_OPTARG && !p->opt)
                                                                  ^
                                                                   {
/datasets/git/parse-options.c:175:33: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
                        *(const char **)opt->value = (const char *)opt->defval;
                                                     ^
/datasets/git/parse-options.c:176:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/parse-options.c:179:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!err)
                         ^
                          {
/datasets/git/parse-options.c:186:7: warning: variable 'p_unset' is not initialized [cppcoreguidelines-init-variables]
                int p_unset;
                    ^
                            = 0
/datasets/git/parse-options.c:188:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (unset)
                          ^
                           {
/datasets/git/parse-options.c:190:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                else if (opt->flags & PARSE_OPT_NOARG)
                         ^            ~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:190:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (opt->flags & PARSE_OPT_NOARG)
                                                      ^
                                                       {
/datasets/git/parse-options.c:191:4: warning: repeated branch in conditional chain [bugprone-branch-clone]
                        p_unset = 0;
                        ^
/datasets/git/parse-options.c:191:15: note: end of the original
                        p_unset = 0;
                                   ^
/datasets/git/parse-options.c:193:4: note: clone 1 starts here
                        p_unset = 0;
                        ^
/datasets/git/parse-options.c:192:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                else if (opt->flags & PARSE_OPT_OPTARG && !p->opt)
                         ^            ~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:192:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (opt->flags & PARSE_OPT_OPTARG && !p->opt)
                                                                  ^
                                                                   {
/datasets/git/parse-options.c:194:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (get_arg(p, opt, flags, &arg))
                                                      ^
                                                       {
/datasets/git/parse-options.c:200:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opt->callback)
                                  ^
                                   {
/datasets/git/parse-options.c:202:3: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                else
                ^~~~
                                        return (*opt->ll_callback)(p, opt, p_arg, p_unset)
/datasets/git/parse-options.c:202:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/parse-options.c:210:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (opt->flags & PARSE_OPT_OPTARG && !p->opt) {
                    ^            ~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:211:25: warning: narrowing conversion from 'intptr_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        *(int *)opt->value = opt->defval;
                                             ^
/datasets/git/parse-options.c:214:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (get_arg(p, opt, flags, &arg))
                                                 ^
                                                  {
/datasets/git/parse-options.c:216:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!*arg)
                          ^
                           {
/datasets/git/parse-options.c:219:24: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                *(int *)opt->value = strtol(arg, (char **)&s, 10);
                                     ^
/datasets/git/parse-options.c:219:49: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                *(int *)opt->value = strtol(arg, (char **)&s, 10);
                                                              ^
/datasets/git/parse-options.c:220:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*s)
                       ^
                        {
/datasets/git/parse-options.c:230:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (opt->flags & PARSE_OPT_OPTARG && !p->opt) {
                    ^            ~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:234:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (get_arg(p, opt, flags, &arg))
                                                 ^
                                                  {
/datasets/git/parse-options.c:236:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!git_parse_ulong(arg, opt->value))
                                                      ^
                                                       {
/datasets/git/parse-options.c:247:70: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static enum parse_opt_result parse_short_opt(struct parse_opt_ctx_t *p,
                                                                     ^
/datasets/git/parse-options.c:253:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; options->type != OPTION_END; options++) {
        ^
/datasets/git/parse-options.c:263:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (options->type == OPTION_NUMBER)
                                                   ^
                                                    {
/datasets/git/parse-options.c:266:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (numopt && isdigit(*p->opt)) {
                      ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/parse-options.c:268:9: warning: variable 'arg' is not initialized [cppcoreguidelines-init-variables]
                char *arg;
                      ^
                          = NULL
/datasets/git/parse-options.c:269:7: warning: variable 'rc' is not initialized [cppcoreguidelines-init-variables]
                int rc;
                    ^
                       = 0
/datasets/git/parse-options.c:269:7: warning: variable name 'rc' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/parse-options.c:271:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (isdigit(p->opt[len]))
                ^
/datasets/git/parse-options.c:271:10: warning: backward branch (while loop) is ID-dependent due to member reference to 'opt' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (isdigit(p->opt[len]))
                       ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^
/datasets/git/./git-compat-util.h:1215:29: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                            ^
/datasets/git/parse-options.c:271:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                while (isdigit(p->opt[len]))
                       ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/parse-options.c:271:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (isdigit(p->opt[len]))
                                            ^
                                             {
/datasets/git/parse-options.c:275:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (numopt->callback)
                                     ^
                                      {
/datasets/git/parse-options.c:277:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/parse-options.c:285:35: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
static int has_string(const char *it, const char **array)
                                  ^
/datasets/git/parse-options.c:287:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*array)
        ^
/datasets/git/parse-options.c:287:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (*array)
                      ^
                       {
/datasets/git/parse-options.c:288:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(it, *(array++)))
                                            ^
                                             {
/datasets/git/parse-options.c:297:15: warning: variable 'group' is not initialized [cppcoreguidelines-init-variables]
        const char **group;
                     ^
                           = NULL
/datasets/git/parse-options.c:299:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ctx->alias_groups)
                               ^
                                {
/datasets/git/parse-options.c:302:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!one_opt->long_name || !another_opt->long_name)
                                                           ^
                                                            {
/datasets/git/parse-options.c:305:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (group = ctx->alias_groups; *group; group += 3) {
        ^
/datasets/git/parse-options.c:305:34: warning: backward branch (for loop) is ID-dependent due to variable reference to 'group' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (group = ctx->alias_groups; *group; group += 3) {
                                        ^
/datasets/git/parse-options.c:308:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    has_string(another_opt->long_name, group))
                                                              ^
                                                               {
/datasets/git/parse-options.c:314:30: warning: function 'parse_long_opt' has cognitive complexity of 60 (threshold 25) [readability-function-cognitive-complexity]
static enum parse_opt_result parse_long_opt(
                             ^
/datasets/git/parse-options.c:323:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (; options->type != OPTION_END; options++) {
        ^
/datasets/git/parse-options.c:327:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (options->type == OPTION_SUBCOMMAND)
                ^
/datasets/git/parse-options.c:329:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!long_name)
                ^
/datasets/git/parse-options.c:333:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!skip_prefix(arg, long_name, &rest))
                ^
/datasets/git/parse-options.c:335:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!rest) {
                ^
/datasets/git/parse-options.c:337:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!(p->flags & PARSE_OPT_KEEP_UNKNOWN_OPT) &&
                        ^
/datasets/git/parse-options.c:337:49: note: +1
                        if (!(p->flags & PARSE_OPT_KEEP_UNKNOWN_OPT) &&
                                                                     ^
/datasets/git/parse-options.c:340:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (abbrev_option &&
                                ^
/datasets/git/parse-options.c:340:23: note: +1
                                if (abbrev_option &&
                                                  ^
/datasets/git/parse-options.c:351:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!(flags & OPT_UNSET) && *arg_end)
                                ^
/datasets/git/parse-options.c:351:30: note: +1
                                if (!(flags & OPT_UNSET) && *arg_end)
                                                         ^
/datasets/git/parse-options.c:358:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (options->flags & PARSE_OPT_NONEG)
                        ^
/datasets/git/parse-options.c:361:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (starts_with("no-", arg)) {
                        ^
/datasets/git/parse-options.c:363:5: note: +1
                                goto is_abbreviated;
                                ^
/datasets/git/parse-options.c:366:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!starts_with(arg, "no-")) {
                        ^
/datasets/git/parse-options.c:367:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (skip_prefix(long_name, "no-", &long_name)) {
                                ^
/datasets/git/parse-options.c:369:6: note: +1
                                        goto again;
                                        ^
/datasets/git/parse-options.c:374:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!skip_prefix(arg + 3, long_name, &rest)) {
                        ^
/datasets/git/parse-options.c:376:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (starts_with(long_name, arg + 3))
                                ^
/datasets/git/parse-options.c:378:5: note: +1, nesting level increased to 4
                                else
                                ^
/datasets/git/parse-options.c:382:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*rest) {
                ^
/datasets/git/parse-options.c:383:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (*rest != '=')
                        ^
/datasets/git/parse-options.c:390:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (disallow_abbreviated_options && (ambiguous_option || abbrev_option))
        ^
/datasets/git/parse-options.c:390:35: note: +1
        if (disallow_abbreviated_options && (ambiguous_option || abbrev_option))
                                         ^
/datasets/git/parse-options.c:390:56: note: +1
        if (disallow_abbreviated_options && (ambiguous_option || abbrev_option))
                                                              ^
/datasets/git/parse-options.c:394:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ambiguous_option) {
        ^
/datasets/git/parse-options.c:398:34: note: +2, including nesting penalty of 1, nesting level increased to 2
                        (ambiguous_flags & OPT_UNSET) ?  "no-" : "",
                                                      ^
/datasets/git/parse-options.c:400:31: note: +2, including nesting penalty of 1, nesting level increased to 2
                        (abbrev_flags & OPT_UNSET) ?  "no-" : "",
                                                   ^
/datasets/git/parse-options.c:404:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (abbrev_option)
        ^
/datasets/git/parse-options.c:315:26: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        struct parse_opt_ctx_t *p, const char *arg,
                                ^
/datasets/git/parse-options.c:320:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const struct option *abbrev_option = NULL, *ambiguous_option = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:321:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        enum opt_parsed abbrev_flags = OPT_LONG, ambiguous_flags = OPT_LONG;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:323:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; options->type != OPTION_END; options++) {
        ^
/datasets/git/parse-options.c:324:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                const char *rest, *long_name = options->long_name;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:324:15: warning: variable 'rest' is not initialized [cppcoreguidelines-init-variables]
                const char *rest, *long_name = options->long_name;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/parse-options.c:325:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                enum opt_parsed flags = OPT_LONG, opt_flags = OPT_LONG;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:327:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (options->type == OPTION_SUBCOMMAND)
                                                       ^
                                                        {
/datasets/git/parse-options.c:329:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!long_name)
                               ^
                                {
/datasets/git/parse-options.c:333:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!skip_prefix(arg, long_name, &rest))
                                                        ^
                                                         {
/datasets/git/parse-options.c:337:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!(p->flags & PARSE_OPT_KEEP_UNKNOWN_OPT) &&
                              ^          ~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:351:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (!(flags & OPT_UNSET) && *arg_end)
                                      ^       ~~~~~~~~~
/datasets/git/parse-options.c:351:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!(flags & OPT_UNSET) && *arg_end)
                                                                     ^
                                                                      {
/datasets/git/parse-options.c:358:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (options->flags & PARSE_OPT_NONEG)
                            ^                ~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:358:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (options->flags & PARSE_OPT_NONEG)
                                                             ^
                                                              {
/datasets/git/parse-options.c:362:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                flags |= OPT_UNSET;
                                ^        ~~~~~~~~~
/datasets/git/parse-options.c:368:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        opt_flags |= OPT_UNSET;
                                        ^            ~~~~~~~~~
/datasets/git/parse-options.c:373:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        flags |= OPT_UNSET;
                        ^        ~~~~~~~~~
/datasets/git/parse-options.c:376:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (starts_with(long_name, arg + 3))
                                                                    ^
                                                                     {
/datasets/git/parse-options.c:378:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                else
                                    ^
                                     {
/datasets/git/parse-options.c:383:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (*rest != '=')
                                         ^
                                          {
/datasets/git/parse-options.c:390:74: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (disallow_abbreviated_options && (ambiguous_option || abbrev_option))
                                                                                ^
                                                                                 {
/datasets/git/parse-options.c:398:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        (ambiguous_flags & OPT_UNSET) ?  "no-" : "",
                         ^
/datasets/git/./git-compat-util.h:641:27: note: expanded from macro 'error'
#define error(...) (error(__VA_ARGS__), const_error())
                          ^~~~~~~~~~~
/datasets/git/parse-options.c:400:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        (abbrev_flags & OPT_UNSET) ?  "no-" : "",
                         ^
/datasets/git/./git-compat-util.h:641:27: note: expanded from macro 'error'
#define error(...) (error(__VA_ARGS__), const_error())
                          ^~~~~~~~~~~
/datasets/git/parse-options.c:404:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (abbrev_option)
                          ^
                           {
/datasets/git/parse-options.c:409:71: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static enum parse_opt_result parse_nodash_opt(struct parse_opt_ctx_t *p,
                                                                      ^
/datasets/git/parse-options.c:415:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; options->type != OPTION_END; options++) {
        ^
/datasets/git/parse-options.c:416:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(options->flags & PARSE_OPT_NODASH))
                      ^                ~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:416:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(options->flags & PARSE_OPT_NODASH))
                                                         ^
                                                          {
/datasets/git/parse-options.c:418:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (options->short_name == arg[0] && arg[1] == '\0')
                                                                    ^
                                                                     {
/datasets/git/parse-options.c:427:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; options->type != OPTION_END; options++)
        ^
/datasets/git/parse-options.c:427:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (; options->type != OPTION_END; options++)
                                                      ^
                                                       {
/datasets/git/parse-options.c:439:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strlen(arg) < 3)
                            ^
                             {
/datasets/git/parse-options.c:444:3: warning: function is not thread safe [concurrency-mt-unsafe]
                exit(129);
                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/parse-options.c:447:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; options->type != OPTION_END; options++) {
        ^
/datasets/git/parse-options.c:448:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!options->long_name)
                                        ^
                                         {
/datasets/git/parse-options.c:452:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        exit(129);
                        ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/parse-options.c:457:13: warning: function 'parse_options_check' has cognitive complexity of 46 (threshold 25) [readability-function-cognitive-complexity]
static void parse_options_check(const struct option *opts)
            ^
/datasets/git/parse-options.c:463:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (; opts->type != OPTION_END; opts++) {
        ^
/datasets/git/parse-options.c:464:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((opts->flags & PARSE_OPT_LASTARG_DEFAULT) &&
                ^
/datasets/git/parse-options.c:464:49: note: +1
                if ((opts->flags & PARSE_OPT_LASTARG_DEFAULT) &&
                                                              ^
/datasets/git/parse-options.c:468:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opts->short_name) {
                ^
/datasets/git/parse-options.c:469:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (0x7F <= opts->short_name)
                        ^
/datasets/git/parse-options.c:471:9: note: +1, nesting level increased to 3
                        else if (short_opts[opts->short_name]++)
                             ^
/datasets/git/parse-options.c:474:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opts->flags & PARSE_OPT_NODASH &&
                ^
/datasets/git/parse-options.c:474:38: note: +1
                if (opts->flags & PARSE_OPT_NODASH &&
                                                   ^
/datasets/git/parse-options.c:477:41: note: +1
                     !(opts->flags & PARSE_OPT_NONEG) ||
                                                      ^
/datasets/git/parse-options.c:481:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                switch (opts->type) {
                ^
/datasets/git/parse-options.c:487:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if ((opts->flags & PARSE_OPT_OPTARG) ||
                        ^
/datasets/git/parse-options.c:487:41: note: +1
                        if ((opts->flags & PARSE_OPT_OPTARG) ||
                                                             ^
/datasets/git/parse-options.c:492:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!opts->callback && !opts->ll_callback)
                        ^
/datasets/git/parse-options.c:492:24: note: +1
                        if (!opts->callback && !opts->ll_callback)
                                            ^
/datasets/git/parse-options.c:494:9: note: +1, nesting level increased to 3
                        else if (opts->callback && opts->ll_callback)
                             ^
/datasets/git/parse-options.c:494:28: note: +1
                        else if (opts->callback && opts->ll_callback)
                                                ^
/datasets/git/parse-options.c:498:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!opts->ll_callback)
                        ^
/datasets/git/parse-options.c:500:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (opts->callback)
                        ^
/datasets/git/parse-options.c:509:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!opts->value || !opts->subcommand_fn)
                        ^
/datasets/git/parse-options.c:509:21: note: +1
                        if (!opts->value || !opts->subcommand_fn)
                                         ^
/datasets/git/parse-options.c:511:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!subcommand_value)
                        ^
/datasets/git/parse-options.c:513:9: note: +1, nesting level increased to 3
                        else if (subcommand_value != opts->value)
                             ^
/datasets/git/parse-options.c:519:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opts->argh &&
                ^
/datasets/git/parse-options.c:519:18: note: +1
                if (opts->argh &&
                               ^
/datasets/git/parse-options.c:523:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        BUG_if_bug("invalid 'struct option'");
        ^
/datasets/git/./git-compat-util.h:1390:25: note: expanded from macro 'BUG_if_bug'
#define BUG_if_bug(...) do { \
                        ^
/datasets/git/parse-options.c:523:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        BUG_if_bug("invalid 'struct option'");
        ^
/datasets/git/./git-compat-util.h:1391:2: note: expanded from macro 'BUG_if_bug'
        if (bug_called_must_BUG) \
        ^
/datasets/git/parse-options.c:459:18: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        char short_opts[128];
                        ^
/datasets/git/parse-options.c:462:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(short_opts, '\0', sizeof(short_opts));
        ^~~~~~
/datasets/git/parse-options.c:462:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(short_opts, '\0', sizeof(short_opts));
        ^~~~~~
/datasets/git/parse-options.c:463:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; opts->type != OPTION_END; opts++) {
        ^
/datasets/git/parse-options.c:464:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((opts->flags & PARSE_OPT_LASTARG_DEFAULT) &&
                     ^             ~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:465:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (opts->flags & PARSE_OPT_OPTARG))
                     ^             ~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:465:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    (opts->flags & PARSE_OPT_OPTARG))
                                                     ^
                                                      {
/datasets/git/parse-options.c:469:8: warning: 0x7F is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        if (0x7F <= opts->short_name)
                            ^
/datasets/git/parse-options.c:469:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (0x7F <= opts->short_name)
                                                     ^
                                                      {
/datasets/git/parse-options.c:471:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (short_opts[opts->short_name]++)
                                                                ^
                                                                 {
/datasets/git/parse-options.c:474:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (opts->flags & PARSE_OPT_NODASH &&
                    ^             ~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:475:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    ((opts->flags & PARSE_OPT_OPTARG) ||
                      ^             ~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:476:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                     !(opts->flags & PARSE_OPT_NOARG) ||
                       ^             ~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:477:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                     !(opts->flags & PARSE_OPT_NONEG) ||
                       ^             ~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:478:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                     opts->long_name))
                                      ^
                                       {
/datasets/git/parse-options.c:487:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if ((opts->flags & PARSE_OPT_OPTARG) ||
                             ^             ~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:488:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !(opts->flags & PARSE_OPT_NOARG))
                              ^             ~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:488:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            !(opts->flags & PARSE_OPT_NOARG))
                                                             ^
                                                              {
/datasets/git/parse-options.c:492:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!opts->callback && !opts->ll_callback)
                                                                  ^
                                                                   {
/datasets/git/parse-options.c:494:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (opts->callback && opts->ll_callback)
                                                                     ^
                                                                      {
/datasets/git/parse-options.c:498:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!opts->ll_callback)
                                               ^
                                                {
/datasets/git/parse-options.c:500:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (opts->callback)
                                           ^
                                            {
/datasets/git/parse-options.c:509:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!opts->value || !opts->subcommand_fn)
                                                                 ^
                                                                  {
/datasets/git/parse-options.c:511:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!subcommand_value)
                                              ^
                                               {
/datasets/git/parse-options.c:513:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (subcommand_value != opts->value)
                                                                 ^
                                                                  {
/datasets/git/parse-options.c:520:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    strcspn(opts->argh, " _") != strlen(opts->argh))
                                                                    ^
                                                                     {
/datasets/git/parse-options.c:523:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_if_bug("invalid 'struct option'");
        ^
/datasets/git/./git-compat-util.h:1390:25: note: expanded from macro 'BUG_if_bug'
#define BUG_if_bug(...) do { \
                        ^
/datasets/git/parse-options.c:528:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; options->type != OPTION_END; options++)
        ^
/datasets/git/parse-options.c:528:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (; options->type != OPTION_END; options++)
                                                      ^
                                                       {
/datasets/git/parse-options.c:529:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (options->type == OPTION_SUBCOMMAND)
                                                       ^
                                                        {
/datasets/git/parse-options.c:541:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & PARSE_OPT_ONE_SHOT)) {
              ^       ~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:548:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ctx->cpidx = ((flags & PARSE_OPT_KEEP_ARGV0) != 0);
                       ^       ~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:551:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!ctx->has_subcommands && (flags & PARSE_OPT_SUBCOMMAND_OPTIONAL))
                                      ^       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:551:71: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ctx->has_subcommands && (flags & PARSE_OPT_SUBCOMMAND_OPTIONAL))
                                                                             ^
                                                                              {
/datasets/git/parse-options.c:554:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flags & PARSE_OPT_STOP_AT_NON_OPTION)
                    ^       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:554:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (flags & PARSE_OPT_STOP_AT_NON_OPTION)
                                                         ^
                                                          {
/datasets/git/parse-options.c:556:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(flags & PARSE_OPT_SUBCOMMAND_OPTIONAL)) {
                      ^       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:557:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (flags & PARSE_OPT_KEEP_UNKNOWN_OPT)
                            ^       ~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:557:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (flags & PARSE_OPT_KEEP_UNKNOWN_OPT)
                                                               ^
                                                                {
/datasets/git/parse-options.c:559:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (flags & PARSE_OPT_KEEP_DASHDASH)
                            ^       ~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:559:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (flags & PARSE_OPT_KEEP_DASHDASH)
                                                            ^
                                                             {
/datasets/git/parse-options.c:563:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((flags & PARSE_OPT_KEEP_UNKNOWN_OPT) &&
             ^       ~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:564:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            (flags & PARSE_OPT_STOP_AT_NON_OPTION) &&
             ^       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:565:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            !(flags & PARSE_OPT_ONE_SHOT))
              ^       ~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:565:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !(flags & PARSE_OPT_ONE_SHOT))
                                          ^
                                           {
/datasets/git/parse-options.c:567:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((flags & PARSE_OPT_ONE_SHOT) &&
             ^       ~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:568:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            (flags & PARSE_OPT_KEEP_ARGV0))
             ^       ~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:568:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            (flags & PARSE_OPT_KEEP_ARGV0))
                                           ^
                                            {
/datasets/git/parse-options.c:578:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(ctx, 0, sizeof(*ctx));
        ^~~~~~
/datasets/git/parse-options.c:578:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(ctx, 0, sizeof(*ctx));
        ^~~~~~
/datasets/git/parse-options.c:582:61: warning: 2 adjacent parameters of 'show_negated_gitcomp' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void show_negated_gitcomp(const struct option *opts, int show_all,
                                                            ^~~~~~~~~~~~~
/datasets/git/parse-options.c:582:65: note: the first parameter in the range is 'show_all'
static void show_negated_gitcomp(const struct option *opts, int show_all,
                                                                ^~~~~~~~
/datasets/git/parse-options.c:583:10: note: the last parameter in the range is 'nr_noopts'
                                 int nr_noopts)
                                     ^~~~~~~~~
/datasets/git/parse-options.c:587:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; opts->type != OPTION_END; opts++) {
        ^
/datasets/git/parse-options.c:589:15: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
                const char *name;
                            ^
                                 = NULL
/datasets/git/parse-options.c:591:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!opts->long_name)
                                     ^
                                      {
/datasets/git/parse-options.c:594:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        (opts->flags & (PARSE_OPT_HIDDEN | PARSE_OPT_NOCOMPLETE)))
                         ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:594:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        (opts->flags & (PARSE_OPT_HIDDEN | PARSE_OPT_NOCOMPLETE)))
                                        ^~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:594:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        (opts->flags & (PARSE_OPT_HIDDEN | PARSE_OPT_NOCOMPLETE)))
                                                                                  ^
                                                                                   {
/datasets/git/parse-options.c:596:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (opts->flags & PARSE_OPT_NONEG)
                    ^             ~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:596:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opts->flags & PARSE_OPT_NONEG)
                                                  ^
                                                   {
/datasets/git/parse-options.c:614:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!has_unset_form)
                                    ^
                                     {
/datasets/git/parse-options.c:618:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (nr_noopts < 0)
                                          ^
                                           {
/datasets/git/parse-options.c:636:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; opts->type != OPTION_END; opts++) {
        ^
/datasets/git/parse-options.c:640:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!opts->long_name)
                                     ^
                                      {
/datasets/git/parse-options.c:643:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        (opts->flags & (PARSE_OPT_HIDDEN | PARSE_OPT_NOCOMPLETE | PARSE_OPT_FROM_ALIAS)))
                         ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:643:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        (opts->flags & (PARSE_OPT_HIDDEN | PARSE_OPT_NOCOMPLETE | PARSE_OPT_FROM_ALIAS)))
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:643:85: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        (opts->flags & (PARSE_OPT_HIDDEN | PARSE_OPT_NOCOMPLETE | PARSE_OPT_FROM_ALIAS)))
                                                                                                         ^
                                                                                                          {
/datasets/git/parse-options.c:657:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (opts->flags & PARSE_OPT_NOARG)
                            ^             ~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:657:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (opts->flags & PARSE_OPT_NOARG)
                                                          ^
                                                           {
/datasets/git/parse-options.c:659:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (opts->flags & PARSE_OPT_OPTARG)
                            ^             ~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:659:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (opts->flags & PARSE_OPT_OPTARG)
                                                           ^
                                                            {
/datasets/git/parse-options.c:661:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (opts->flags & PARSE_OPT_LASTARG_DEFAULT)
                            ^             ~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:661:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (opts->flags & PARSE_OPT_LASTARG_DEFAULT)
                                                                    ^
                                                                     {
/datasets/git/parse-options.c:668:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (opts->flags & PARSE_OPT_COMP_ARG)
                    ^             ~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:668:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opts->flags & PARSE_OPT_COMP_ARG)
                                                     ^
                                                      {
/datasets/git/parse-options.c:670:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (starts_with(opts->long_name, "no-"))
                                                        ^
                                                         {
/datasets/git/parse-options.c:677:2: warning: the value returned by this function should be used [cert-err33-c]
        fputc('\n', stdout);
        ^~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:677:2: note: cast the expression to void to silence this warning
/datasets/git/parse-options.c:693:17: warning: variable 'newopt' is not initialized [cppcoreguidelines-init-variables]
        struct option *newopt;
                       ^
                              = NULL
/datasets/git/parse-options.c:694:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, nr, alias;
        ^~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:694:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, nr, alias;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/parse-options.c:694:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/parse-options.c:694:9: warning: variable 'nr' is not initialized [cppcoreguidelines-init-variables]
        int i, nr, alias;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/parse-options.c:694:9: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/parse-options.c:694:13: warning: variable 'alias' is not initialized [cppcoreguidelines-init-variables]
        int i, nr, alias;
                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/parse-options.c:697:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (nr = 0; options[nr].type != OPTION_END; nr++) {
        ^
/datasets/git/parse-options.c:698:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (options[nr].type == OPTION_ALIAS)
                                                     ^
                                                      {
/datasets/git/parse-options.c:702:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!nr_aliases)
                        ^
                         {
/datasets/git/parse-options.c:709:34: warning: performing an implicit widening conversion to type 'size_t' (aka 'unsigned long') of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        CALLOC_ARRAY(ctx->alias_groups, 3 * (nr_aliases + 1));
                                        ^
/datasets/git/parse-options.c:709:34: note: make conversion explicit to silence this warning
        CALLOC_ARRAY(ctx->alias_groups, 3 * (nr_aliases + 1));
                                        ^
                                        (size_t)(          )
/datasets/git/./git-compat-util.h:1091:47: note: expanded from macro 'CALLOC_ARRAY'
#define CALLOC_ARRAY(x, alloc) (x) = xcalloc((alloc), sizeof(*(x)))
                                              ^~~~~
/datasets/git/parse-options.c:709:34: note: perform multiplication in a wider type
        CALLOC_ARRAY(ctx->alias_groups, 3 * (nr_aliases + 1));
                                        ^
                                        (long)
/datasets/git/./git-compat-util.h:1091:47: note: expanded from macro 'CALLOC_ARRAY'
#define CALLOC_ARRAY(x, alloc) (x) = xcalloc((alloc), sizeof(*(x)))
                                              ^~~~~
/datasets/git/parse-options.c:712:7: warning: variable 'short_name' is not initialized [cppcoreguidelines-init-variables]
                int short_name;
                    ^
                               = 0
/datasets/git/parse-options.c:713:15: warning: variable 'long_name' is not initialized [cppcoreguidelines-init-variables]
                const char *long_name;
                            ^
                                      = NULL
/datasets/git/parse-options.c:714:15: warning: variable 'source' is not initialized [cppcoreguidelines-init-variables]
                const char *source;
                            ^
                                   = NULL
/datasets/git/parse-options.c:716:7: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
                int j;
                    ^
                      = 0
/datasets/git/parse-options.c:716:7: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/parse-options.c:718:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (newopt[i].type != OPTION_ALIAS)
                                                   ^
                                                    {
/datasets/git/parse-options.c:725:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!long_name)
                               ^
                                {
/datasets/git/parse-options.c:729:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (j = 0; j < nr; j++) {
                ^
/datasets/git/parse-options.c:732:17: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                        if (!name || strcmp(name, source))
                                     ^
                                                          != 0
/datasets/git/parse-options.c:732:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!name || strcmp(name, source))
                                                          ^
                                                           {
/datasets/git/parse-options.c:735:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (options[j].type == OPTION_ALIAS)
                                                            ^
                                                             {
/datasets/git/parse-options.c:738:4: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memcpy(newopt + i, options + j, sizeof(*newopt));
                        ^~~~~~
/datasets/git/parse-options.c:738:4: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                        memcpy(newopt + i, options + j, sizeof(*newopt));
                        ^~~~~~
/datasets/git/parse-options.c:742:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        newopt[i].flags |= PARSE_OPT_FROM_ALIAS;
                        ^                  ~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:746:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (j == nr)
                            ^
                             {
/datasets/git/parse-options.c:760:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/parse-options.c:760:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/parse-options.c:762:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!options)
                     ^
                      {
/datasets/git/parse-options.c:765:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; options[i].type != OPTION_END; i++) {
        ^
/datasets/git/parse-options.c:766:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (options[i].flags & PARSE_OPT_FROM_ALIAS)
                    ^                  ~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:766:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (options[i].flags & PARSE_OPT_FROM_ALIAS)
                                                            ^
                                                             {
/datasets/git/parse-options.c:772:82: warning: all parameters should be named in a function [hicpp-named-parameter,readability-named-parameter]
static enum parse_opt_result usage_with_options_internal(struct parse_opt_ctx_t *,
                                                                                 ^
                                                                                  /*ctx*/
/datasets/git/parse-options.c:777:23: warning: function 'parse_options_step' has cognitive complexity of 88 (threshold 25) [readability-function-cognitive-complexity]
enum parse_opt_result parse_options_step(struct parse_opt_ctx_t *ctx,
                      ^
/datasets/git/parse-options.c:786:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (; ctx->argc; ctx->argc--, ctx->argv++) {
        ^
/datasets/git/parse-options.c:789:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ctx->flags & PARSE_OPT_ONE_SHOT &&
                ^
/datasets/git/parse-options.c:789:39: note: +1
                if (ctx->flags & PARSE_OPT_ONE_SHOT &&
                                                    ^
/datasets/git/parse-options.c:793:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*arg != '-' || !arg[1]) {
                ^
/datasets/git/parse-options.c:793:19: note: +1
                if (*arg != '-' || !arg[1]) {
                                ^
/datasets/git/parse-options.c:794:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (parse_nodash_opt(ctx, arg, options) == 0)
                        ^
/datasets/git/parse-options.c:796:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!ctx->has_subcommands) {
                        ^
/datasets/git/parse-options.c:797:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (ctx->flags & PARSE_OPT_STOP_AT_NON_OPTION)
                                ^
/datasets/git/parse-options.c:802:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        switch (parse_subcommand(arg, options)) {
                        ^
/datasets/git/parse-options.c:806:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (ctx->flags & PARSE_OPT_SUBCOMMAND_OPTIONAL)
                                ^
/datasets/git/parse-options.c:831:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (internal_help && ctx->total == 1 && !strcmp(arg + 1, "h"))
                ^
/datasets/git/parse-options.c:831:40: note: +1
                if (internal_help && ctx->total == 1 && !strcmp(arg + 1, "h"))
                                                     ^
/datasets/git/parse-options.c:838:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ctx->total == 1 && !strcmp(arg, "--git-completion-helper"))
                ^
/datasets/git/parse-options.c:838:23: note: +1
                if (ctx->total == 1 && !strcmp(arg, "--git-completion-helper"))
                                    ^
/datasets/git/parse-options.c:840:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ctx->total == 1 && !strcmp(arg, "--git-completion-helper-all"))
                ^
/datasets/git/parse-options.c:840:23: note: +1
                if (ctx->total == 1 && !strcmp(arg, "--git-completion-helper-all"))
                                    ^
/datasets/git/parse-options.c:843:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (arg[1] != '-') {
                ^
/datasets/git/parse-options.c:845:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        switch (parse_short_opt(ctx, options)) {
                        ^
/datasets/git/parse-options.c:849:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (ctx->opt)
                                ^
/datasets/git/parse-options.c:851:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (internal_help && *ctx->opt == 'h')
                                ^
/datasets/git/parse-options.c:851:23: note: +1
                                if (internal_help && *ctx->opt == 'h')
                                                  ^
/datasets/git/parse-options.c:853:5: note: +1
                                goto unknown;
                                ^
/datasets/git/parse-options.c:862:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ctx->opt)
                        ^
/datasets/git/parse-options.c:864:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (ctx->opt) {
                        ^
/datasets/git/parse-options.c:865:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                switch (parse_short_opt(ctx, options)) {
                                ^
/datasets/git/parse-options.c:869:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (internal_help && *ctx->opt == 'h')
                                        ^
/datasets/git/parse-options.c:869:24: note: +1
                                        if (internal_help && *ctx->opt == 'h')
                                                          ^
/datasets/git/parse-options.c:879:6: note: +1
                                        goto unknown;
                                        ^
/datasets/git/parse-options.c:892:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!arg[2] /* "--" */ ||
                ^
/datasets/git/parse-options.c:892:26: note: +1
                if (!arg[2] /* "--" */ ||
                                       ^
/datasets/git/parse-options.c:894:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!(ctx->flags & PARSE_OPT_KEEP_DASHDASH)) {
                        ^
/datasets/git/parse-options.c:901:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (internal_help && !strcmp(arg + 2, "help-all"))
                ^
/datasets/git/parse-options.c:901:21: note: +1
                if (internal_help && !strcmp(arg + 2, "help-all"))
                                  ^
/datasets/git/parse-options.c:903:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (internal_help && !strcmp(arg + 2, "help"))
                ^
/datasets/git/parse-options.c:903:21: note: +1
                if (internal_help && !strcmp(arg + 2, "help"))
                                  ^
/datasets/git/parse-options.c:905:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                switch (parse_long_opt(ctx, arg + 2, options)) {
                ^
/datasets/git/parse-options.c:909:4: note: +1
                        goto unknown;
                        ^
/datasets/git/parse-options.c:911:4: note: +1
                        goto show_usage;
                        ^
/datasets/git/parse-options.c:921:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ctx->flags & PARSE_OPT_ONE_SHOT)
                ^
/datasets/git/parse-options.c:923:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ctx->has_subcommands &&
                ^
/datasets/git/parse-options.c:924:52: note: +1
                    (ctx->flags & PARSE_OPT_SUBCOMMAND_OPTIONAL) &&
                                                                 ^
/datasets/git/parse-options.c:935:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!(ctx->flags & PARSE_OPT_KEEP_UNKNOWN_OPT))
                ^
/datasets/git/./parse-options.h:314:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        int argc, cpidx, total;
        ^
/datasets/git/parse-options.c:781:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int internal_help = !(ctx->flags & PARSE_OPT_NO_INTERNAL_HELP);
                              ^            ~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:786:9: warning: backward branch (for loop) is ID-dependent due to member reference to 'argc' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; ctx->argc; ctx->argc--, ctx->argv++) {
               ^
/datasets/git/parse-options.c:789:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ctx->flags & PARSE_OPT_ONE_SHOT &&
                    ^            ~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:790:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    ctx->argc != ctx->total)
                                            ^
                                             {
/datasets/git/parse-options.c:794:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (parse_nodash_opt(ctx, arg, options) == 0)
                                                                     ^
                                                                      {
/datasets/git/parse-options.c:797:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (ctx->flags & PARSE_OPT_STOP_AT_NON_OPTION)
                                    ^            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:797:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (ctx->flags & PARSE_OPT_STOP_AT_NON_OPTION)
                                                                              ^
                                                                               {
/datasets/git/parse-options.c:806:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (ctx->flags & PARSE_OPT_SUBCOMMAND_OPTIONAL)
                                    ^            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:806:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (ctx->flags & PARSE_OPT_SUBCOMMAND_OPTIONAL)
                                                                               ^
                                                                                {
/datasets/git/parse-options.c:831:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (internal_help && ctx->total == 1 && !strcmp(arg + 1, "h"))
                                                                              ^
                                                                               {
/datasets/git/parse-options.c:838:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ctx->total == 1 && !strcmp(arg, "--git-completion-helper"))
                                                                               ^
                                                                                {
/datasets/git/parse-options.c:840:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ctx->total == 1 && !strcmp(arg, "--git-completion-helper-all"))
                                                                                   ^
                                                                                    {
/datasets/git/parse-options.c:849:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (ctx->opt)
                                             ^
                                              {
/datasets/git/parse-options.c:851:26: warning: Dereference of null pointer (loaded from field 'opt') [clang-analyzer-core.NullDereference]
                                if (internal_help && *ctx->opt == 'h')
                                                     ^
/datasets/git/parse-options.c:969:17: note: Calling 'preprocess_options'
        real_options = preprocess_options(&ctx, options);
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:697:15: note: Assuming field 'type' is equal to OPTION_END
        for (nr = 0; options[nr].type != OPTION_END; nr++) {
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:697:2: note: Loop condition is false. Execution continues on line 702
        for (nr = 0; options[nr].type != OPTION_END; nr++) {
        ^
/datasets/git/parse-options.c:702:7: note: 'nr_aliases' is 0
        if (!nr_aliases)
             ^~~~~~~~~~
/datasets/git/parse-options.c:702:2: note: Taking true branch
        if (!nr_aliases)
        ^
/datasets/git/parse-options.c:703:3: note: Returning without writing to 'ctx->argc', which participates in a condition later
                return NULL;
                ^
/datasets/git/parse-options.c:703:3: note: Returning without writing to 'ctx->opt'
/datasets/git/parse-options.c:969:17: note: Returning from 'preprocess_options'
        real_options = preprocess_options(&ctx, options);
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:970:6: note: 'real_options' is null
        if (real_options)
            ^~~~~~~~~~~~
/datasets/git/parse-options.c:970:2: note: Taking false branch
        if (real_options)
        ^
/datasets/git/parse-options.c:972:2: note: Calling 'parse_options_start_1'
        parse_options_start_1(&ctx, argc, argv, prefix, options, flags);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:541:6: note: Assuming the condition is true
        if (!(flags & PARSE_OPT_ONE_SHOT)) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:541:2: note: Taking true branch
        if (!(flags & PARSE_OPT_ONE_SHOT)) {
        ^
/datasets/git/parse-options.c:548:16: note: Assuming the condition is true
        ctx->cpidx = ((flags & PARSE_OPT_KEEP_ARGV0) != 0);
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:551:12: note: Field 'has_subcommands' is 0
        if (!ctx->has_subcommands && (flags & PARSE_OPT_SUBCOMMAND_OPTIONAL))
                  ^
/datasets/git/parse-options.c:551:6: note: Left side of '&&' is true
        if (!ctx->has_subcommands && (flags & PARSE_OPT_SUBCOMMAND_OPTIONAL))
            ^
/datasets/git/parse-options.c:551:32: note: Assuming the condition is false
        if (!ctx->has_subcommands && (flags & PARSE_OPT_SUBCOMMAND_OPTIONAL))
                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:551:2: note: Taking false branch
        if (!ctx->has_subcommands && (flags & PARSE_OPT_SUBCOMMAND_OPTIONAL))
        ^
/datasets/git/parse-options.c:553:11: note: Field 'has_subcommands' is 0
        if (ctx->has_subcommands) {
                 ^
/datasets/git/parse-options.c:553:2: note: Taking false branch
        if (ctx->has_subcommands) {
        ^
/datasets/git/parse-options.c:563:7: note: Assuming the condition is true
        if ((flags & PARSE_OPT_KEEP_UNKNOWN_OPT) &&
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:563:6: note: Left side of '&&' is true
        if ((flags & PARSE_OPT_KEEP_UNKNOWN_OPT) &&
            ^
/datasets/git/parse-options.c:564:7: note: Assuming the condition is false
            (flags & PARSE_OPT_STOP_AT_NON_OPTION) &&
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:564:45: note: Left side of '&&' is false
            (flags & PARSE_OPT_STOP_AT_NON_OPTION) &&
                                                   ^
/datasets/git/parse-options.c:567:35: note: Left side of '&&' is false
        if ((flags & PARSE_OPT_ONE_SHOT) &&
                                         ^
/datasets/git/parse-options.c:571:1: note: Returning without writing to 'ctx->opt'
}
^
/datasets/git/parse-options.c:972:2: note: Returning from 'parse_options_start_1'
        parse_options_start_1(&ctx, argc, argv, prefix, options, flags);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:973:10: note: Calling 'parse_options_step'
        switch (parse_options_step(&ctx, options, usagestr)) {
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:781:22: note: Assuming the condition is true
        int internal_help = !(ctx->flags & PARSE_OPT_NO_INTERNAL_HELP);
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:786:2: note: Loop condition is true.  Entering loop body
        for (; ctx->argc; ctx->argc--, ctx->argv++) {
        ^
/datasets/git/parse-options.c:789:39: note: Left side of '&&' is false
                if (ctx->flags & PARSE_OPT_ONE_SHOT &&
                                                    ^
/datasets/git/parse-options.c:793:7: note: Assuming the condition is false
                if (*arg != '-' || !arg[1]) {
                    ^~~~~~~~~~~
/datasets/git/parse-options.c:793:7: note: Left side of '||' is false
/datasets/git/parse-options.c:793:22: note: Assuming the condition is false
                if (*arg != '-' || !arg[1]) {
                                   ^~~~~~~
/datasets/git/parse-options.c:793:3: note: Taking false branch
                if (*arg != '-' || !arg[1]) {
                ^
/datasets/git/parse-options.c:831:7: note: 'internal_help' is 1
                if (internal_help && ctx->total == 1 && !strcmp(arg + 1, "h"))
                    ^~~~~~~~~~~~~
/datasets/git/parse-options.c:831:7: note: Left side of '&&' is true
/datasets/git/parse-options.c:831:24: note: Assuming field 'total' is not equal to 1
                if (internal_help && ctx->total == 1 && !strcmp(arg + 1, "h"))
                                     ^~~~~~~~~~~~~~~
/datasets/git/parse-options.c:831:40: note: Left side of '&&' is false
                if (internal_help && ctx->total == 1 && !strcmp(arg + 1, "h"))
                                                     ^
/datasets/git/parse-options.c:838:12: note: Field 'total' is not equal to 1
                if (ctx->total == 1 && !strcmp(arg, "--git-completion-helper"))
                         ^
/datasets/git/parse-options.c:838:23: note: Left side of '&&' is false
                if (ctx->total == 1 && !strcmp(arg, "--git-completion-helper"))
                                    ^
/datasets/git/parse-options.c:840:12: note: Field 'total' is not equal to 1
                if (ctx->total == 1 && !strcmp(arg, "--git-completion-helper-all"))
                         ^
/datasets/git/parse-options.c:840:23: note: Left side of '&&' is false
                if (ctx->total == 1 && !strcmp(arg, "--git-completion-helper-all"))
                                    ^
/datasets/git/parse-options.c:843:7: note: Assuming the condition is true
                if (arg[1] != '-') {
                    ^~~~~~~~~~~~~
/datasets/git/parse-options.c:843:3: note: Taking true branch
                if (arg[1] != '-') {
                ^
/datasets/git/parse-options.c:845:12: note: Value assigned to 'ctx.opt'
                        switch (parse_short_opt(ctx, options)) {
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:845:4: note: Control jumps to 'case PARSE_OPT_UNKNOWN:'  at line 848
                        switch (parse_short_opt(ctx, options)) {
                        ^
/datasets/git/parse-options.c:849:9: note: Assuming field 'opt' is null
                                if (ctx->opt)
                                    ^~~~~~~~
/datasets/git/parse-options.c:849:5: note: Taking false branch
                                if (ctx->opt)
                                ^
/datasets/git/parse-options.c:851:9: note: 'internal_help' is 1
                                if (internal_help && *ctx->opt == 'h')
                                    ^~~~~~~~~~~~~
/datasets/git/parse-options.c:851:9: note: Left side of '&&' is true
/datasets/git/parse-options.c:851:26: note: Dereference of null pointer (loaded from field 'opt')
                                if (internal_help && *ctx->opt == 'h')
                                                     ^     ~~~
/datasets/git/parse-options.c:851:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (internal_help && *ctx->opt == 'h')
                                                                      ^
                                                                       {
/datasets/git/parse-options.c:862:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ctx->opt)
                                     ^
                                      {
/datasets/git/parse-options.c:864:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (ctx->opt) {
                        ^
/datasets/git/parse-options.c:864:11: warning: backward branch (while loop) is ID-dependent due to member reference to 'opt' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (ctx->opt) {
                               ^
/datasets/git/parse-options.c:869:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        if (internal_help && *ctx->opt == 'h')
                                                                              ^
                                                                               {
/datasets/git/parse-options.c:894:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!(ctx->flags & PARSE_OPT_KEEP_DASHDASH)) {
                              ^            ~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:901:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (internal_help && !strcmp(arg + 2, "help-all"))
                                                                  ^
                                                                   {
/datasets/git/parse-options.c:903:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (internal_help && !strcmp(arg + 2, "help"))
                                                              ^
                                                               {
/datasets/git/parse-options.c:921:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ctx->flags & PARSE_OPT_ONE_SHOT)
                    ^            ~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:921:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ctx->flags & PARSE_OPT_ONE_SHOT)
                                                    ^
                                                     {
/datasets/git/parse-options.c:924:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (ctx->flags & PARSE_OPT_SUBCOMMAND_OPTIONAL) &&
                     ^            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:925:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (ctx->flags & PARSE_OPT_KEEP_UNKNOWN_OPT)) {
                     ^            ~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:935:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(ctx->flags & PARSE_OPT_KEEP_UNKNOWN_OPT))
                      ^            ~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:935:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(ctx->flags & PARSE_OPT_KEEP_UNKNOWN_OPT))
                                                               ^
                                                                {
/datasets/git/parse-options.c:948:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (ctx->flags & PARSE_OPT_ONE_SHOT)
            ^            ~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:948:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ctx->flags & PARSE_OPT_ONE_SHOT)
                                            ^
                                             {
/datasets/git/parse-options.c:963:17: warning: variable 'real_options' is not initialized [cppcoreguidelines-init-variables]
        struct option *real_options;
                       ^
                                    = NULL
/datasets/git/parse-options.c:968:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&ctx, 0, sizeof(ctx));
        ^~~~~~
/datasets/git/parse-options.c:968:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&ctx, 0, sizeof(ctx));
        ^~~~~~
/datasets/git/parse-options.c:970:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (real_options)
                         ^
                          {
/datasets/git/parse-options.c:976:3: warning: function is not thread safe [concurrency-mt-unsafe]
                exit(129);
                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/parse-options.c:978:3: warning: function is not thread safe [concurrency-mt-unsafe]
                exit(0);
                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/parse-options.c:984:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    !(flags & PARSE_OPT_SUBCOMMAND_OPTIONAL)) {
                      ^       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:992:14: warning: Dereference of null pointer (loaded from field 'opt') [clang-analyzer-core.NullDereference]
                } else if (isascii(*ctx.opt)) {
                           ^
/datasets/git/./git-compat-util.h:1216:22: note: expanded from macro 'isascii'
#define isascii(x) (((x) & ~0x7f) == 0)
                     ^~
/datasets/git/parse-options.c:969:17: note: Calling 'preprocess_options'
        real_options = preprocess_options(&ctx, options);
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:697:15: note: Assuming field 'type' is not equal to OPTION_END
        for (nr = 0; options[nr].type != OPTION_END; nr++) {
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:697:2: note: Loop condition is true.  Entering loop body
        for (nr = 0; options[nr].type != OPTION_END; nr++) {
        ^
/datasets/git/parse-options.c:698:7: note: Assuming field 'type' is not equal to OPTION_ALIAS
                if (options[nr].type == OPTION_ALIAS)
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:698:3: note: Taking false branch
                if (options[nr].type == OPTION_ALIAS)
                ^
/datasets/git/parse-options.c:697:15: note: Assuming field 'type' is equal to OPTION_END
        for (nr = 0; options[nr].type != OPTION_END; nr++) {
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:697:2: note: Loop condition is false. Execution continues on line 702
        for (nr = 0; options[nr].type != OPTION_END; nr++) {
        ^
/datasets/git/parse-options.c:702:7: note: 'nr_aliases' is 0
        if (!nr_aliases)
             ^~~~~~~~~~
/datasets/git/parse-options.c:702:2: note: Taking true branch
        if (!nr_aliases)
        ^
/datasets/git/parse-options.c:703:3: note: Returning without writing to 'ctx->opt'
                return NULL;
                ^
/datasets/git/parse-options.c:969:17: note: Returning from 'preprocess_options'
        real_options = preprocess_options(&ctx, options);
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:970:6: note: 'real_options' is null
        if (real_options)
            ^~~~~~~~~~~~
/datasets/git/parse-options.c:970:2: note: Taking false branch
        if (real_options)
        ^
/datasets/git/parse-options.c:972:2: note: Calling 'parse_options_start_1'
        parse_options_start_1(&ctx, argc, argv, prefix, options, flags);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:541:6: note: Assuming the condition is false
        if (!(flags & PARSE_OPT_ONE_SHOT)) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:541:2: note: Taking false branch
        if (!(flags & PARSE_OPT_ONE_SHOT)) {
        ^
/datasets/git/parse-options.c:548:16: note: Assuming the condition is false
        ctx->cpidx = ((flags & PARSE_OPT_KEEP_ARGV0) != 0);
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:551:12: note: Field 'has_subcommands' is 1
        if (!ctx->has_subcommands && (flags & PARSE_OPT_SUBCOMMAND_OPTIONAL))
                  ^
/datasets/git/parse-options.c:551:28: note: Left side of '&&' is false
        if (!ctx->has_subcommands && (flags & PARSE_OPT_SUBCOMMAND_OPTIONAL))
                                  ^
/datasets/git/parse-options.c:553:11: note: Field 'has_subcommands' is 1
        if (ctx->has_subcommands) {
                 ^
/datasets/git/parse-options.c:553:2: note: Taking true branch
        if (ctx->has_subcommands) {
        ^
/datasets/git/parse-options.c:554:7: note: Assuming the condition is false
                if (flags & PARSE_OPT_STOP_AT_NON_OPTION)
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:554:3: note: Taking false branch
                if (flags & PARSE_OPT_STOP_AT_NON_OPTION)
                ^
/datasets/git/parse-options.c:556:7: note: Assuming the condition is false
                if (!(flags & PARSE_OPT_SUBCOMMAND_OPTIONAL)) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:556:3: note: Taking false branch
                if (!(flags & PARSE_OPT_SUBCOMMAND_OPTIONAL)) {
                ^
/datasets/git/parse-options.c:563:7: note: Assuming the condition is false
        if ((flags & PARSE_OPT_KEEP_UNKNOWN_OPT) &&
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:563:43: note: Left side of '&&' is false
        if ((flags & PARSE_OPT_KEEP_UNKNOWN_OPT) &&
                                                 ^
/datasets/git/parse-options.c:567:6: note: Left side of '&&' is true
        if ((flags & PARSE_OPT_ONE_SHOT) &&
            ^
/datasets/git/parse-options.c:567:2: note: Taking false branch
        if ((flags & PARSE_OPT_ONE_SHOT) &&
        ^
/datasets/git/parse-options.c:571:1: note: Returning without writing to 'ctx->opt'
}
^
/datasets/git/parse-options.c:972:2: note: Returning from 'parse_options_start_1'
        parse_options_start_1(&ctx, argc, argv, prefix, options, flags);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:973:10: note: Calling 'parse_options_step'
        switch (parse_options_step(&ctx, options, usagestr)) {
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:781:22: note: Assuming the condition is false
        int internal_help = !(ctx->flags & PARSE_OPT_NO_INTERNAL_HELP);
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:784:2: note: Null pointer value stored to 'ctx.opt'
        ctx->opt = NULL;
        ^~~~~~~~~~~~~~~
/datasets/git/parse-options.c:786:2: note: Loop condition is true.  Entering loop body
        for (; ctx->argc; ctx->argc--, ctx->argv++) {
        ^
/datasets/git/parse-options.c:789:7: note: Left side of '&&' is true
                if (ctx->flags & PARSE_OPT_ONE_SHOT &&
                    ^
/datasets/git/parse-options.c:790:12: note: Field 'argc' is equal to field 'total'
                    ctx->argc != ctx->total)
                         ^
/datasets/git/parse-options.c:789:3: note: Taking false branch
                if (ctx->flags & PARSE_OPT_ONE_SHOT &&
                ^
/datasets/git/parse-options.c:793:7: note: Assuming the condition is false
                if (*arg != '-' || !arg[1]) {
                    ^~~~~~~~~~~
/datasets/git/parse-options.c:793:7: note: Left side of '||' is false
/datasets/git/parse-options.c:793:22: note: Assuming the condition is false
                if (*arg != '-' || !arg[1]) {
                                   ^~~~~~~
/datasets/git/parse-options.c:793:3: note: Taking false branch
                if (*arg != '-' || !arg[1]) {
                ^
/datasets/git/parse-options.c:831:7: note: 'internal_help' is 0
                if (internal_help && ctx->total == 1 && !strcmp(arg + 1, "h"))
                    ^~~~~~~~~~~~~
/datasets/git/parse-options.c:831:21: note: Left side of '&&' is false
                if (internal_help && ctx->total == 1 && !strcmp(arg + 1, "h"))
                                  ^
/datasets/git/parse-options.c:838:7: note: Assuming field 'total' is equal to 1
                if (ctx->total == 1 && !strcmp(arg, "--git-completion-helper"))
                    ^~~~~~~~~~~~~~~
/datasets/git/parse-options.c:838:7: note: Left side of '&&' is true
/datasets/git/parse-options.c:838:26: note: Assuming the condition is false
                if (ctx->total == 1 && !strcmp(arg, "--git-completion-helper"))
                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:838:3: note: Taking false branch
                if (ctx->total == 1 && !strcmp(arg, "--git-completion-helper"))
                ^
/datasets/git/parse-options.c:840:12: note: Field 'total' is equal to 1
                if (ctx->total == 1 && !strcmp(arg, "--git-completion-helper-all"))
                         ^
/datasets/git/parse-options.c:840:7: note: Left side of '&&' is true
                if (ctx->total == 1 && !strcmp(arg, "--git-completion-helper-all"))
                    ^
/datasets/git/parse-options.c:840:3: note: Taking true branch
                if (ctx->total == 1 && !strcmp(arg, "--git-completion-helper-all"))
                ^
/datasets/git/parse-options.c:973:10: note: Returning from 'parse_options_step'
        switch (parse_options_step(&ctx, options, usagestr)) {
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:973:2: note: Control jumps to 'case PARSE_OPT_UNKNOWN:'  at line 989
        switch (parse_options_step(&ctx, options, usagestr)) {
        ^
/datasets/git/parse-options.c:990:7: note: Assuming the condition is false
                if (ctx.argv[0][1] == '-') {
                    ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:990:3: note: Taking false branch
                if (ctx.argv[0][1] == '-') {
                ^
/datasets/git/parse-options.c:992:14: note: Dereference of null pointer (loaded from field 'opt')
                } else if (isascii(*ctx.opt)) {
                           ^
/datasets/git/./git-compat-util.h:1216:22: note: expanded from macro 'isascii'
#define isascii(x) (((x) & ~0x7f) == 0)
                     ^~
/datasets/git/parse-options.c:992:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                } else if (isascii(*ctx.opt)) {
                           ^
/datasets/git/./git-compat-util.h:1216:22: note: expanded from macro 'isascii'
#define isascii(x) (((x) & ~0x7f) == 0)
                     ^~~
/datasets/git/parse-options.c:992:14: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                } else if (isascii(*ctx.opt)) {
                           ^
/datasets/git/./git-compat-util.h:1216:28: note: expanded from macro 'isascii'
#define isascii(x) (((x) & ~0x7f) == 0)
                           ^~~~~
/datasets/git/parse-options.c:1009:14: warning: variable 's' is not initialized [cppcoreguidelines-init-variables]
        const char *s;
                    ^
                      = NULL
/datasets/git/parse-options.c:1009:14: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/parse-options.c:1010:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int literal = (opts->flags & PARSE_OPT_LITERAL_ARGHELP) ||
                       ^             ~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:1012:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (opts->flags & PARSE_OPT_OPTARG)
            ^             ~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:1012:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->flags & PARSE_OPT_OPTARG)
                                           ^
                                            {
/datasets/git/parse-options.c:1013:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opts->long_name)
                                    ^
                                     {
/datasets/git/parse-options.c:1015:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/parse-options.c:1017:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/parse-options.c:1022:1: warning: replace macro with enum [modernize-macro-to-enum]
#define USAGE_OPTS_WIDTH 24
^~~~~~~~
                         = ,
/datasets/git/parse-options.c:1022:9: warning: macro 'USAGE_OPTS_WIDTH' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define USAGE_OPTS_WIDTH 24
        ^
/datasets/git/parse-options.c:1023:9: warning: macro 'USAGE_GAP' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define USAGE_GAP         2
        ^
/datasets/git/parse-options.c:1025:30: warning: function 'usage_with_options_internal' has cognitive complexity of 53 (threshold 25) [readability-function-cognitive-complexity]
static enum parse_opt_result usage_with_options_internal(struct parse_opt_ctx_t *ctx,
                             ^
/datasets/git/parse-options.c:1030:22: note: +1, including nesting penalty of 0, nesting level increased to 1
        FILE *outfile = err ? stderr : stdout;
                            ^
/datasets/git/parse-options.c:1073:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!usagestr)
        ^
/datasets/git/parse-options.c:1076:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!err && ctx && ctx->flags & PARSE_OPT_SHELL_EVAL)
        ^
/datasets/git/parse-options.c:1076:18: note: +1
        if (!err && ctx && ctx->flags & PARSE_OPT_SHELL_EVAL)
                        ^
/datasets/git/parse-options.c:1079:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (*usagestr) {
        ^
/datasets/git/parse-options.c:1084:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!saw_empty_line && !*str)
                ^
/datasets/git/parse-options.c:1084:23: note: +1
                if (!saw_empty_line && !*str)
                                    ^
/datasets/git/parse-options.c:1088:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (j = 0; j < list.nr; j++) {
                ^
/datasets/git/parse-options.c:1091:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (saw_empty_line && *line)
                        ^
/datasets/git/parse-options.c:1091:23: note: +1
                        if (saw_empty_line && *line)
                                           ^
/datasets/git/parse-options.c:1093:9: note: +1, nesting level increased to 3
                        else if (saw_empty_line)
                             ^
/datasets/git/parse-options.c:1095:9: note: +1, nesting level increased to 3
                        else if (!j)
                             ^
/datasets/git/parse-options.c:1097:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/parse-options.c:1108:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (; opts->type != OPTION_END; opts++) {
        ^
/datasets/git/parse-options.c:1112:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opts->type == OPTION_SUBCOMMAND)
                ^
/datasets/git/parse-options.c:1114:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opts->type == OPTION_GROUP) {
                ^
/datasets/git/parse-options.c:1117:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (*opts->help)
                        ^
/datasets/git/parse-options.c:1121:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!full && (opts->flags & PARSE_OPT_HIDDEN))
                ^
/datasets/git/parse-options.c:1121:13: note: +1
                if (!full && (opts->flags & PARSE_OPT_HIDDEN))
                          ^
/datasets/git/parse-options.c:1124:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (need_newline) {
                ^
/datasets/git/parse-options.c:1130:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opts->short_name) {
                ^
/datasets/git/parse-options.c:1131:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (opts->flags & PARSE_OPT_NODASH)
                        ^
/datasets/git/parse-options.c:1133:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/parse-options.c:1136:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opts->long_name && opts->short_name)
                ^
/datasets/git/parse-options.c:1136:23: note: +1
                if (opts->long_name && opts->short_name)
                                    ^
/datasets/git/parse-options.c:1138:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opts->long_name)
                ^
/datasets/git/parse-options.c:1140:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opts->type == OPTION_NUMBER)
                ^
/datasets/git/parse-options.c:1143:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((opts->flags & PARSE_OPT_LITERAL_ARGHELP) ||
                ^
/datasets/git/parse-options.c:1143:49: note: +1
                if ((opts->flags & PARSE_OPT_LITERAL_ARGHELP) ||
                                                              ^
/datasets/git/parse-options.c:1147:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (pos <= USAGE_OPTS_WIDTH)
                ^
/datasets/git/parse-options.c:1149:3: note: +1, nesting level increased to 2
                else {
                ^
/datasets/git/parse-options.c:1153:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opts->type == OPTION_ALIAS) {
                ^
/datasets/git/parse-options.c:1163:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!err && ctx && ctx->flags & PARSE_OPT_SHELL_EVAL)
        ^
/datasets/git/parse-options.c:1163:18: note: +1
        if (!err && ctx && ctx->flags & PARSE_OPT_SHELL_EVAL)
                        ^
/datasets/git/parse-options.c:1028:9: warning: 2 adjacent parameters of 'usage_with_options_internal' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                                         int full, int err)
                                                         ^~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:1028:13: note: the first parameter in the range is 'full'
                                                         int full, int err)
                                                             ^~~~
/datasets/git/parse-options.c:1028:23: note: the last parameter in the range is 'err'
                                                         int full, int err)
                                                                       ^~~
/datasets/git/parse-options.c:1031:6: warning: variable 'need_newline' is not initialized [cppcoreguidelines-init-variables]
        int need_newline;
            ^
                         = 0
/datasets/git/parse-options.c:1073:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!usagestr)
                      ^
                       {
/datasets/git/parse-options.c:1076:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!err && ctx && ctx->flags & PARSE_OPT_SHELL_EVAL)
                           ^            ~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:1076:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!err && ctx && ctx->flags & PARSE_OPT_SHELL_EVAL)
                                                             ^
                                                              {
/datasets/git/parse-options.c:1077:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(outfile, "cat <<\\EOF\n");
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:1077:3: note: cast the expression to void to silence this warning
/datasets/git/parse-options.c:1082:16: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
                unsigned int j;
                             ^
                               = 0
/datasets/git/parse-options.c:1082:16: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/parse-options.c:1084:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!saw_empty_line && !*str)
                                             ^
                                              {
/datasets/git/parse-options.c:1088:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (j = 0; j < list.nr; j++) {
                ^
/datasets/git/parse-options.c:1091:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (saw_empty_line && *line)
                                                    ^
                                                     {
/datasets/git/parse-options.c:1093:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (saw_empty_line)
                                                ^
                                                 {
/datasets/git/parse-options.c:1094:5: warning: the value returned by this function should be used [cert-err33-c]
                                fputc('\n', outfile);
                                ^~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:1094:5: note: cast the expression to void to silence this warning
/datasets/git/parse-options.c:1095:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (!j)
                                    ^
                                     {
/datasets/git/parse-options.c:1097:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/parse-options.c:1108:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; opts->type != OPTION_END; opts++) {
        ^
/datasets/git/parse-options.c:1109:10: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
                size_t pos;
                       ^
                           = 0
/datasets/git/parse-options.c:1110:7: warning: variable 'pad' is not initialized [cppcoreguidelines-init-variables]
                int pad;
                    ^
                        = 0
/datasets/git/parse-options.c:1112:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opts->type == OPTION_SUBCOMMAND)
                                                    ^
                                                     {
/datasets/git/parse-options.c:1115:4: warning: the value returned by this function should be used [cert-err33-c]
                        fputc('\n', outfile);
                        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:1115:4: note: cast the expression to void to silence this warning
/datasets/git/parse-options.c:1117:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (*opts->help)
                                        ^
                                         {
/datasets/git/parse-options.c:1118:5: warning: the value returned by this function should be used [cert-err33-c]
                                fprintf(outfile, "%s\n", _(opts->help));
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:1118:5: note: cast the expression to void to silence this warning
/datasets/git/parse-options.c:1121:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!full && (opts->flags & PARSE_OPT_HIDDEN))
                              ^             ~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:1121:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!full && (opts->flags & PARSE_OPT_HIDDEN))
                                                              ^
                                                               {
/datasets/git/parse-options.c:1125:4: warning: the value returned by this function should be used [cert-err33-c]
                        fputc('\n', outfile);
                        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:1125:4: note: cast the expression to void to silence this warning
/datasets/git/parse-options.c:1131:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (opts->flags & PARSE_OPT_NODASH)
                            ^             ~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:1131:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (opts->flags & PARSE_OPT_NODASH)
                                                           ^
                                                            {
/datasets/git/parse-options.c:1133:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/parse-options.c:1136:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opts->long_name && opts->short_name)
                                                        ^
                                                         {
/datasets/git/parse-options.c:1138:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opts->long_name)
                                    ^
                                     {
/datasets/git/parse-options.c:1140:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opts->type == OPTION_NUMBER)
                                                ^
                                                 {
/datasets/git/parse-options.c:1143:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((opts->flags & PARSE_OPT_LITERAL_ARGHELP) ||
                     ^             ~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:1144:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    !(opts->flags & PARSE_OPT_NOARG))
                      ^             ~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:1144:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !(opts->flags & PARSE_OPT_NOARG))
                                                     ^
                                                      {
/datasets/git/parse-options.c:1147:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pos <= USAGE_OPTS_WIDTH)
                                            ^
                                             {
/datasets/git/parse-options.c:1150:4: warning: the value returned by this function should be used [cert-err33-c]
                        fputc('\n', outfile);
                        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:1150:4: note: cast the expression to void to silence this warning
/datasets/git/parse-options.c:1154:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(outfile, "%*s", pad + USAGE_GAP, "");
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:1154:4: note: cast the expression to void to silence this warning
/datasets/git/parse-options.c:1159:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(outfile, "%*s%s\n", pad + USAGE_GAP, "", _(opts->help));
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:1159:3: note: cast the expression to void to silence this warning
/datasets/git/parse-options.c:1161:2: warning: the value returned by this function should be used [cert-err33-c]
        fputc('\n', outfile);
        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:1161:2: note: cast the expression to void to silence this warning
/datasets/git/parse-options.c:1163:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!err && ctx && ctx->flags & PARSE_OPT_SHELL_EVAL)
                           ^            ~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:1163:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!err && ctx && ctx->flags & PARSE_OPT_SHELL_EVAL)
                                                             ^
                                                              {
/datasets/git/parse-options.c:1164:3: warning: the value returned by this function should be used [cert-err33-c]
                fputs("EOF\n", outfile);
                ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/parse-options.c:1164:3: note: cast the expression to void to silence this warning
/datasets/git/parse-options.c:1173:2: warning: function is not thread safe [concurrency-mt-unsafe]
        exit(129);
        ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/parse-options.c:1189:10: warning: variable name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
        va_list ap;
                ^
/datasets/git/parse-options.c:1205:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt1)
                 ^
                  {
/datasets/git/parse-options.c:1207:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt2)
                 ^
                  {
/datasets/git/parse-options.c:1209:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt3)
                 ^
                  {
/datasets/git/parse-options.c:1211:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt4)
                 ^
                  {
patch-delta.c:15:7: warning: function 'patch_delta' has cognitive complexity of 105 (threshold 25) [readability-function-cognitive-complexity]
void *patch_delta(const void *src_buf, unsigned long src_size,
      ^
patch-delta.c:23:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (delta_size < DELTA_SIZE_MIN)
        ^
patch-delta.c:31:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (size != src_size)
        ^
patch-delta.c:39:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (data < top) {
        ^
patch-delta.c:41:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (cmd & 0x80) {
                ^
patch-delta.c:49:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        PARSE_CP_PARAM(0x01, cp_off, 0);
                        ^
patch-delta.c:43:41: note: expanded from macro 'PARSE_CP_PARAM'
#define PARSE_CP_PARAM(bit, var, shift) do { \
                                        ^
patch-delta.c:49:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        PARSE_CP_PARAM(0x01, cp_off, 0);
                        ^
patch-delta.c:44:4: note: expanded from macro 'PARSE_CP_PARAM'
                        if (cmd & (bit)) { \
                        ^
patch-delta.c:49:4: note: +5, including nesting penalty of 4, nesting level increased to 5
                        PARSE_CP_PARAM(0x01, cp_off, 0);
                        ^
patch-delta.c:45:5: note: expanded from macro 'PARSE_CP_PARAM'
                                if (data >= top) \
                                ^
patch-delta.c:50:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        PARSE_CP_PARAM(0x02, cp_off, 8);
                        ^
patch-delta.c:43:41: note: expanded from macro 'PARSE_CP_PARAM'
#define PARSE_CP_PARAM(bit, var, shift) do { \
                                        ^
patch-delta.c:50:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        PARSE_CP_PARAM(0x02, cp_off, 8);
                        ^
patch-delta.c:44:4: note: expanded from macro 'PARSE_CP_PARAM'
                        if (cmd & (bit)) { \
                        ^
patch-delta.c:50:4: note: +5, including nesting penalty of 4, nesting level increased to 5
                        PARSE_CP_PARAM(0x02, cp_off, 8);
                        ^
patch-delta.c:45:5: note: expanded from macro 'PARSE_CP_PARAM'
                                if (data >= top) \
                                ^
patch-delta.c:51:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        PARSE_CP_PARAM(0x04, cp_off, 16);
                        ^
patch-delta.c:43:41: note: expanded from macro 'PARSE_CP_PARAM'
#define PARSE_CP_PARAM(bit, var, shift) do { \
                                        ^
patch-delta.c:51:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        PARSE_CP_PARAM(0x04, cp_off, 16);
                        ^
patch-delta.c:44:4: note: expanded from macro 'PARSE_CP_PARAM'
                        if (cmd & (bit)) { \
                        ^
patch-delta.c:51:4: note: +5, including nesting penalty of 4, nesting level increased to 5
                        PARSE_CP_PARAM(0x04, cp_off, 16);
                        ^
patch-delta.c:45:5: note: expanded from macro 'PARSE_CP_PARAM'
                                if (data >= top) \
                                ^
patch-delta.c:52:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        PARSE_CP_PARAM(0x08, cp_off, 24);
                        ^
patch-delta.c:43:41: note: expanded from macro 'PARSE_CP_PARAM'
#define PARSE_CP_PARAM(bit, var, shift) do { \
                                        ^
patch-delta.c:52:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        PARSE_CP_PARAM(0x08, cp_off, 24);
                        ^
patch-delta.c:44:4: note: expanded from macro 'PARSE_CP_PARAM'
                        if (cmd & (bit)) { \
                        ^
patch-delta.c:52:4: note: +5, including nesting penalty of 4, nesting level increased to 5
                        PARSE_CP_PARAM(0x08, cp_off, 24);
                        ^
patch-delta.c:45:5: note: expanded from macro 'PARSE_CP_PARAM'
                                if (data >= top) \
                                ^
patch-delta.c:53:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        PARSE_CP_PARAM(0x10, cp_size, 0);
                        ^
patch-delta.c:43:41: note: expanded from macro 'PARSE_CP_PARAM'
#define PARSE_CP_PARAM(bit, var, shift) do { \
                                        ^
patch-delta.c:53:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        PARSE_CP_PARAM(0x10, cp_size, 0);
                        ^
patch-delta.c:44:4: note: expanded from macro 'PARSE_CP_PARAM'
                        if (cmd & (bit)) { \
                        ^
patch-delta.c:53:4: note: +5, including nesting penalty of 4, nesting level increased to 5
                        PARSE_CP_PARAM(0x10, cp_size, 0);
                        ^
patch-delta.c:45:5: note: expanded from macro 'PARSE_CP_PARAM'
                                if (data >= top) \
                                ^
patch-delta.c:54:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        PARSE_CP_PARAM(0x20, cp_size, 8);
                        ^
patch-delta.c:43:41: note: expanded from macro 'PARSE_CP_PARAM'
#define PARSE_CP_PARAM(bit, var, shift) do { \
                                        ^
patch-delta.c:54:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        PARSE_CP_PARAM(0x20, cp_size, 8);
                        ^
patch-delta.c:44:4: note: expanded from macro 'PARSE_CP_PARAM'
                        if (cmd & (bit)) { \
                        ^
patch-delta.c:54:4: note: +5, including nesting penalty of 4, nesting level increased to 5
                        PARSE_CP_PARAM(0x20, cp_size, 8);
                        ^
patch-delta.c:45:5: note: expanded from macro 'PARSE_CP_PARAM'
                                if (data >= top) \
                                ^
patch-delta.c:55:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        PARSE_CP_PARAM(0x40, cp_size, 16);
                        ^
patch-delta.c:43:41: note: expanded from macro 'PARSE_CP_PARAM'
#define PARSE_CP_PARAM(bit, var, shift) do { \
                                        ^
patch-delta.c:55:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        PARSE_CP_PARAM(0x40, cp_size, 16);
                        ^
patch-delta.c:44:4: note: expanded from macro 'PARSE_CP_PARAM'
                        if (cmd & (bit)) { \
                        ^
patch-delta.c:55:4: note: +5, including nesting penalty of 4, nesting level increased to 5
                        PARSE_CP_PARAM(0x40, cp_size, 16);
                        ^
patch-delta.c:45:5: note: expanded from macro 'PARSE_CP_PARAM'
                                if (data >= top) \
                                ^
patch-delta.c:57:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (cp_size == 0) cp_size = 0x10000;
                        ^
patch-delta.c:58:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (unsigned_add_overflows(cp_off, cp_size) ||
                        ^
patch-delta.c:59:36: note: +1
                            cp_off + cp_size > src_size ||
                                                        ^
patch-delta.c:65:10: note: +1, nesting level increased to 2
                } else if (cmd) {
                       ^
patch-delta.c:66:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (cmd > size || cmd > top - data)
                        ^
patch-delta.c:66:19: note: +1
                        if (cmd > size || cmd > top - data)
                                       ^
patch-delta.c:72:5: note: +1, nesting level increased to 2
                } else {
                  ^
patch-delta.c:79:4: note: +1
                        goto bad;
                        ^
patch-delta.c:84:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (data != top || size != 0) {
        ^
patch-delta.c:84:18: note: +1
        if (data != top || size != 0) {
                        ^
/datasets/git/patch-delta.c:19:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const unsigned char *data, *top;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/patch-delta.c:19:23: warning: variable 'data' is not initialized [cppcoreguidelines-init-variables]
        const unsigned char *data, *top;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/patch-delta.c:19:30: warning: variable 'top' is not initialized [cppcoreguidelines-init-variables]
        const unsigned char *data, *top;
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/patch-delta.c:20:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned char *dst_buf, *out, cmd;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/patch-delta.c:20:17: warning: variable 'dst_buf' is not initialized [cppcoreguidelines-init-variables]
        unsigned char *dst_buf, *out, cmd;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/patch-delta.c:20:27: warning: variable 'out' is not initialized [cppcoreguidelines-init-variables]
        unsigned char *dst_buf, *out, cmd;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/patch-delta.c:20:32: warning: variable 'cmd' is not initialized [cppcoreguidelines-init-variables]
        unsigned char *dst_buf, *out, cmd;
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/patch-delta.c:21:16: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size;
                      ^
                           = 0
/datasets/git/patch-delta.c:23:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (delta_size < DELTA_SIZE_MIN)
                                        ^
                                         {
/datasets/git/patch-delta.c:31:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (size != src_size)
                             ^
                              {
/datasets/git/patch-delta.c:39:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'data' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (data < top) {
               ^
/datasets/git/patch-delta.c:41:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (cmd & 0x80) {
                    ^     ~~~~
/datasets/git/patch-delta.c:41:13: warning: 0x80 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (cmd & 0x80) {
                          ^
/datasets/git/patch-delta.c:42:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        unsigned long cp_off = 0, cp_size = 0;
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/patch-delta.c:47:5: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
                                var |= ((unsigned) *data++ << (shift)); \
                                ^
                                (  )
/datasets/git/patch-delta.c:49:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        PARSE_CP_PARAM(0x01, cp_off, 0);
                        ^
/datasets/git/patch-delta.c:43:41: note: expanded from macro 'PARSE_CP_PARAM'
#define PARSE_CP_PARAM(bit, var, shift) do { \
                                        ^
/datasets/git/patch-delta.c:49:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        PARSE_CP_PARAM(0x01, cp_off, 0);
                        ^
/datasets/git/patch-delta.c:44:8: note: expanded from macro 'PARSE_CP_PARAM'
                        if (cmd & (bit)) { \
                            ^     ~~~~~
/datasets/git/patch-delta.c:50:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        PARSE_CP_PARAM(0x02, cp_off, 8);
                        ^
/datasets/git/patch-delta.c:43:41: note: expanded from macro 'PARSE_CP_PARAM'
#define PARSE_CP_PARAM(bit, var, shift) do { \
                                        ^
/datasets/git/patch-delta.c:50:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        PARSE_CP_PARAM(0x02, cp_off, 8);
                        ^
/datasets/git/patch-delta.c:44:8: note: expanded from macro 'PARSE_CP_PARAM'
                        if (cmd & (bit)) { \
                            ^     ~~~~~
/datasets/git/patch-delta.c:51:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        PARSE_CP_PARAM(0x04, cp_off, 16);
                        ^
/datasets/git/patch-delta.c:43:41: note: expanded from macro 'PARSE_CP_PARAM'
#define PARSE_CP_PARAM(bit, var, shift) do { \
                                        ^
/datasets/git/patch-delta.c:51:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        PARSE_CP_PARAM(0x04, cp_off, 16);
                        ^
/datasets/git/patch-delta.c:44:8: note: expanded from macro 'PARSE_CP_PARAM'
                        if (cmd & (bit)) { \
                            ^     ~~~~~
/datasets/git/patch-delta.c:52:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        PARSE_CP_PARAM(0x08, cp_off, 24);
                        ^
/datasets/git/patch-delta.c:43:41: note: expanded from macro 'PARSE_CP_PARAM'
#define PARSE_CP_PARAM(bit, var, shift) do { \
                                        ^
/datasets/git/patch-delta.c:52:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        PARSE_CP_PARAM(0x08, cp_off, 24);
                        ^
/datasets/git/patch-delta.c:44:8: note: expanded from macro 'PARSE_CP_PARAM'
                        if (cmd & (bit)) { \
                            ^     ~~~~~
/datasets/git/patch-delta.c:53:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        PARSE_CP_PARAM(0x10, cp_size, 0);
                        ^
/datasets/git/patch-delta.c:43:41: note: expanded from macro 'PARSE_CP_PARAM'
#define PARSE_CP_PARAM(bit, var, shift) do { \
                                        ^
/datasets/git/patch-delta.c:53:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        PARSE_CP_PARAM(0x10, cp_size, 0);
                        ^
/datasets/git/patch-delta.c:44:8: note: expanded from macro 'PARSE_CP_PARAM'
                        if (cmd & (bit)) { \
                            ^     ~~~~~
/datasets/git/patch-delta.c:54:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        PARSE_CP_PARAM(0x20, cp_size, 8);
                        ^
/datasets/git/patch-delta.c:43:41: note: expanded from macro 'PARSE_CP_PARAM'
#define PARSE_CP_PARAM(bit, var, shift) do { \
                                        ^
/datasets/git/patch-delta.c:54:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        PARSE_CP_PARAM(0x20, cp_size, 8);
                        ^
/datasets/git/patch-delta.c:44:8: note: expanded from macro 'PARSE_CP_PARAM'
                        if (cmd & (bit)) { \
                            ^     ~~~~~
/datasets/git/patch-delta.c:55:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        PARSE_CP_PARAM(0x40, cp_size, 16);
                        ^
/datasets/git/patch-delta.c:43:41: note: expanded from macro 'PARSE_CP_PARAM'
#define PARSE_CP_PARAM(bit, var, shift) do { \
                                        ^
/datasets/git/patch-delta.c:55:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        PARSE_CP_PARAM(0x40, cp_size, 16);
                        ^
/datasets/git/patch-delta.c:44:8: note: expanded from macro 'PARSE_CP_PARAM'
                        if (cmd & (bit)) { \
                            ^     ~~~~~
/datasets/git/patch-delta.c:57:21: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                        if (cp_size == 0) cp_size = 0x10000;
                                         ^
                                          {
/datasets/git/patch-delta.c:57:32: warning: 0x10000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        if (cp_size == 0) cp_size = 0x10000;
                                                    ^
/datasets/git/patch-delta.c:60:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            cp_size > size)
                                           ^
                                            {
/datasets/git/patch-delta.c:62:4: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memcpy(out, (char *) src_buf + cp_off, cp_size);
                        ^~~~~~
/datasets/git/patch-delta.c:62:4: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                        memcpy(out, (char *) src_buf + cp_off, cp_size);
                        ^~~~~~
/datasets/git/patch-delta.c:66:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (cmd > size || cmd > top - data)
                                                           ^
                                                            {
/datasets/git/patch-delta.c:68:4: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memcpy(out, data, cmd);
                        ^~~~~~
/datasets/git/patch-delta.c:68:4: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                        memcpy(out, data, cmd);
                        ^~~~~~
/datasets/git/patch-ids.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "diff.h"
^        ~~~~~~~~
         "commit.h"
/datasets/git/patch-ids.c:16:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!patch_id_defined(commit))
                                      ^
                                       {
/datasets/git/patch-ids.c:19:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (commit->parents)
                            ^
                             {
/datasets/git/patch-ids.c:22:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/patch-ids.c:39:4: warning: 2 adjacent parameters of 'patch_id_neq' of similar type ('const struct hashmap_entry *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                        const struct hashmap_entry *eptr,
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/patch-ids.c:39:32: note: the first parameter in the range is 'eptr'
                        const struct hashmap_entry *eptr,
                                                    ^~~~
/datasets/git/patch-ids.c:40:32: note: the last parameter in the range is 'entry_or_key'
                        const struct hashmap_entry *entry_or_key,
                                                    ^~~~~~~~~~~~
/datasets/git/patch-ids.c:45:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct patch_id *a, *b;
        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/patch-ids.c:45:19: warning: variable 'a' is not initialized [cppcoreguidelines-init-variables]
        struct patch_id *a, *b;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/patch-ids.c:45:19: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/patch-ids.c:45:23: warning: variable 'b' is not initialized [cppcoreguidelines-init-variables]
        struct patch_id *a, *b;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/patch-ids.c:45:23: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/patch-ids.c:51:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            commit_patch_id(a->commit, opt, &a->patch_id, 0))
                                                             ^
                                                              {
/datasets/git/patch-ids.c:55:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            commit_patch_id(b->commit, opt, &b->patch_id, 0))
                                                             ^
                                                              {
/datasets/git/patch-ids.c:61:39: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int init_patch_ids(struct repository *r, struct patch_ids *ids)
                                      ^
/datasets/git/patch-ids.c:63:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(ids, 0, sizeof(*ids));
        ^~~~~~
/datasets/git/patch-ids.c:63:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(ids, 0, sizeof(*ids));
        ^~~~~~
/datasets/git/patch-ids.c:68:60: warning: 256 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        hashmap_init(&ids->patches, patch_id_neq, &ids->diffopts, 256);
                                                                  ^
/datasets/git/patch-ids.c:85:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (commit_patch_id(commit, &ids->diffopts, &header_only_patch_id, 1))
                                                                              ^
                                                                               {
/datasets/git/patch-ids.c:97:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!patch_id_defined(commit))
                                      ^
                                       {
/datasets/git/patch-ids.c:100:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&patch, 0, sizeof(patch));
        ^~~~~~
/datasets/git/patch-ids.c:100:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&patch, 0, sizeof(patch));
        ^~~~~~
/datasets/git/patch-ids.c:101:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (init_patch_id_entry(&patch, commit, ids))
                                                     ^
                                                      {
/datasets/git/patch-ids.c:122:19: warning: variable 'key' is not initialized [cppcoreguidelines-init-variables]
        struct patch_id *key;
                         ^
                             = NULL
/datasets/git/patch-ids.c:124:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!patch_id_defined(commit))
                                      ^
                                       {
/datasets/git/path.c:5:1: warning: #includes are not sorted properly [llvm-include-order]
#include "repository.h"
^        ~~~~~~~~~~~~~~
         "dir.h"
/datasets/git/path.c:19:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/path.c:20:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (lstat(path, &st) < 0)
                                 ^
                                  {
/datasets/git/path.c:22:10: warning: narrowing conversion from '__mode_t' (aka 'unsigned int') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        *mode = st.st_mode;
                ^
/datasets/git/path.c:26:13: warning: variable 'bad_path' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char bad_path[] = "/bad-path/";
            ^
/datasets/git/path.c:34:17: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf *sb = &pathname_array[index];
                       ^
/datasets/git/path.c:35:10: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        index = (index + 1) % ARRAY_SIZE(pathname_array);
                ^
/datasets/git/path.c:44:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (*path == '/')
                ^
/datasets/git/path.c:44:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (*path == '/')
                                    ^
                                     {
/datasets/git/path.c:50:48: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static void strbuf_cleanup_path(struct strbuf *sb)
                                               ^
/datasets/git/path.c:53:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (path > sb->buf)
                           ^
                            {
/datasets/git/path.c:60:11: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        unsigned len;
                 ^
                     = 0
/datasets/git/path.c:63:8: warning: Call to function 'vsnprintf' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'vsnprintf_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        len = vsnprintf(buf, n, fmt, args);
              ^~~~~~~~~
/datasets/git/path.c:63:8: note: Call to function 'vsnprintf' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'vsnprintf_s' in case of C11
        len = vsnprintf(buf, n, fmt, args);
              ^~~~~~~~~
/datasets/git/path.c:63:8: warning: Function 'vsnprintf' is called with an uninitialized va_list argument [clang-analyzer-valist.Uninitialized]
        len = vsnprintf(buf, n, fmt, args);
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/path.c:63:8: note: Function 'vsnprintf' is called with an uninitialized va_list argument
        len = vsnprintf(buf, n, fmt, args);
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/path.c:74:12: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int len = strlen(dir);
                  ^
/datasets/git/path.c:80:41: warning: 2 adjacent parameters of 'is_dir_file' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int is_dir_file(const char *buf, const char *dir, const char *file)
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/path.c:80:53: note: the first parameter in the range is 'dir'
static int is_dir_file(const char *buf, const char *dir, const char *file)
                                                    ^~~
/datasets/git/path.c:80:70: note: the last parameter in the range is 'file'
static int is_dir_file(const char *buf, const char *dir, const char *file)
                                                                     ^~~~
/datasets/git/path.c:82:12: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int len = strlen(dir);
                  ^
/datasets/git/path.c:83:6: warning: function 'strncmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (strncmp(buf, dir, len) || !is_dir_sep(buf[len]))
            ^
                                   != 0
/datasets/git/path.c:83:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strncmp(buf, dir, len) || !is_dir_sep(buf[len]))
                                                            ^
                                                             {
/datasets/git/path.c:85:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (is_dir_sep(buf[len]))
        ^
/datasets/git/path.c:85:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (is_dir_sep(buf[len]))
               ^
/datasets/git/./git-compat-util.h:451:20: note: expanded from macro 'is_dir_sep'
#define is_dir_sep git_is_dir_sep
                   ^
/datasets/git/path.c:85:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (is_dir_sep(buf[len]))
                                    ^
                                     {
/datasets/git/path.c:92:15: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int newlen = strlen(newdir);
                     ^
/datasets/git/path.c:95:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (need_sep)
                     ^
                      {
/datasets/git/path.c:98:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (need_sep)
                     ^
                      {
/datasets/git/path.c:102:8: warning: accessing fields in struct 'common_dir' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct common_dir {
       ^
/datasets/git/path.c:102:8: note: use "__attribute__((aligned(32)))" to align struct 'common_dir' to 32 bytes
/datasets/git/path.c:111:26: warning: variable 'common_list' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct common_dir common_list[] = {
                         ^
/datasets/git/path.c:159:8: warning: accessing fields in struct 'trie' is inefficient due to padding; only needs 2068 bytes but is using 2072 bytes [altera-struct-pack-align]
struct trie {
       ^
/datasets/git/path.c:159:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'trie'
/datasets/git/path.c:159:8: warning: accessing fields in struct 'trie' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct trie {
       ^
/datasets/git/path.c:159:8: note: use "__attribute__((aligned(128)))" to align struct 'trie' to 128 bytes
/datasets/git/path.c:160:24: warning: 256 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        struct trie *children[256];
                              ^
/datasets/git/path.c:169:18: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        new_node->len = strlen(key);
                        ^
/datasets/git/path.c:172:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(new_node->contents, key, new_node->len);
                ^~~~~~
/datasets/git/path.c:172:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(new_node->contents, key, new_node->len);
                ^~~~~~
/datasets/git/path.c:182:14: warning: function 'add_to_trie' is within a recursive call chain [misc-no-recursion]
static void *add_to_trie(struct trie *root, const char *key, void *value)
             ^
/datasets/git/path.c:182:14: note: example recursive call chain, starting from function 'add_to_trie'
/datasets/git/path.c:228:11: note: Frame #1: function 'add_to_trie' calls function 'add_to_trie' here:
                        return add_to_trie(child, key + root->len + 1, value);
                               ^
/datasets/git/path.c:228:11: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/path.c:184:15: warning: variable 'child' is not initialized [cppcoreguidelines-init-variables]
        struct trie *child;
                     ^
                           = NULL
/datasets/git/path.c:185:8: warning: variable 'old' is not initialized [cppcoreguidelines-init-variables]
        void *old;
              ^
                  = NULL
/datasets/git/path.c:186:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/path.c:186:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/path.c:195:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < root->len; i++) {
        ^
/datasets/git/path.c:195:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < root->len; i++) {
                    ^
/datasets/git/path.c:196:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (root->contents[i] == key[i])
                                                ^
                                                 {
/datasets/git/path.c:204:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(child->children, root->children, sizeof(root->children));
                ^~~~~~
/datasets/git/path.c:204:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(child->children, root->children, sizeof(root->children));
                ^~~~~~
/datasets/git/path.c:215:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(root->children, 0, sizeof(root->children));
                ^~~~~~
/datasets/git/path.c:215:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(root->children, 0, sizeof(root->children));
                ^~~~~~
/datasets/git/path.c:229:5: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                } else {
                  ^~~~~~
/datasets/git/path.c:277:12: warning: function 'trie_find' is within a recursive call chain [misc-no-recursion]
static int trie_find(struct trie *root, const char *key, match_fn fn,
           ^
/datasets/git/path.c:277:12: note: example recursive call chain, starting from function 'trie_find'
/datasets/git/path.c:318:12: note: Frame #1: function 'trie_find' calls function 'trie_find' here:
                result = trie_find(child, key + 1, fn, baton);
                         ^
/datasets/git/path.c:318:12: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/path.c:277:67: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
static int trie_find(struct trie *root, const char *key, match_fn fn,
                                                                  ^
/datasets/git/path.c:280:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/path.c:280:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/path.c:281:6: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        int result;
            ^
                   = 0
/datasets/git/path.c:282:15: warning: variable 'child' is not initialized [cppcoreguidelines-init-variables]
        struct trie *child;
                     ^
                           = NULL
/datasets/git/path.c:286:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (root->value && !root->len)
                                              ^
                                               {
/datasets/git/path.c:288:3: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                else
                ^~~~
                                        return -1
/datasets/git/path.c:288:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/path.c:292:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < root->len; i++) {
        ^
/datasets/git/path.c:292:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < root->len; i++) {
                    ^
/datasets/git/path.c:298:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (root->contents[i] != key[i])
                                                ^
                                                 {
/datasets/git/path.c:306:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (root->value)
                                ^
                                 {
/datasets/git/path.c:308:3: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                else
                ^~~~
                                        return -1
/datasets/git/path.c:308:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/path.c:313:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (key[0] == '/' && key[1] == '/')
        ^
/datasets/git/path.c:313:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'key' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (key[0] == '/' && key[1] == '/')
               ^
/datasets/git/path.c:313:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (key[0] == '/' && key[1] == '/')
                                              ^
                                               {
/datasets/git/path.c:317:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (child)
                  ^
                   {
/datasets/git/path.c:319:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/path.c:322:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (result >= 0 || (*key != '/' && *key != 0))
                                                      ^
                                                       {
/datasets/git/path.c:324:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (root->value)
                        ^
                         {
/datasets/git/path.c:326:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else
        ^~~~
                        return -1
/datasets/git/path.c:161:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        int len;
        ^
/datasets/git/path.c:326:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/path.c:330:20: warning: variable 'common_trie' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct trie common_trie;
                   ^
/datasets/git/path.c:331:12: warning: variable 'common_trie_done_setup' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int common_trie_done_setup;
           ^
/datasets/git/path.c:335:21: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct common_dir *p;
                           ^
                             = NULL
/datasets/git/path.c:335:21: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/path.c:337:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (common_trie_done_setup)
                                   ^
                                    {
/datasets/git/path.c:340:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = common_list; p->path; p++)
        ^
/datasets/git/path.c:340:24: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = common_list; p->path; p++)
                              ^
/datasets/git/path.c:340:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (p = common_list; p->path; p++)
                                           ^
                                            {
/datasets/git/path.c:350:48: warning: 2 adjacent parameters of 'check_common' of similar type ('void *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int check_common(const char *unmatched, void *value, void *baton)
                                               ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/path.c:350:54: note: the first parameter in the range is 'value'
static int check_common(const char *unmatched, void *value, void *baton)
                                                     ^~~~~
/datasets/git/path.c:350:67: note: the last parameter in the range is 'baton'
static int check_common(const char *unmatched, void *value, void *baton)
                                                                  ^~~~~
/datasets/git/path.c:350:67: warning: parameter 'baton' is unused [misc-unused-parameters]
static int check_common(const char *unmatched, void *value, void *baton)
                                                                  ^
/datasets/git/path.c:354:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (dir->is_dir && (unmatched[0] == 0 || unmatched[0] == '/'))
                                                                      ^
                                                                       {
/datasets/git/path.c:357:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!dir->is_dir && unmatched[0] == 0)
                                              ^
                                               {
/datasets/git/path.c:370:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (trie_find(&common_trie, base, check_common, NULL) > 0)
                                                                  ^
                                                                   {
/datasets/git/path.c:373:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (has_lock_suffix)
                            ^
                             {
/datasets/git/path.c:379:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/path.c:380:27: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        const struct common_dir *p;
                                 ^
                                   = NULL
/datasets/git/path.c:380:27: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/path.c:381:6: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int len;
            ^
                = 0
/datasets/git/path.c:383:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!the_repository->different_commondir)
                                                 ^
                                                  {
/datasets/git/path.c:386:8: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        len = sb.len;
              ^
/datasets/git/path.c:387:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = common_list; p->path; p++) {
        ^
/datasets/git/path.c:387:24: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = common_list; p->path; p++) {
                              ^
/datasets/git/path.c:389:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (p->ignore_garbage)
                                      ^
                                       {
/datasets/git/path.c:393:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (file_exists(sb.buf))
                                        ^
                                         {
/datasets/git/path.c:403:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_dir_file(base, "info", "grafts"))
                                                ^
                                                 {
/datasets/git/path.c:406:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(base, "index"))
                                        ^
                                         {
/datasets/git/path.c:409:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (dir_prefix(base, "objects"))
                                             ^
                                              {
/datasets/git/path.c:410:34: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                replace_dir(buf, git_dir_len + 7, repo->objects->odb->path);
                                               ^
/datasets/git/path.c:411:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (git_hooks_path && dir_prefix(base, "hooks"))
                                                             ^
                                                              {
/datasets/git/path.c:412:34: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                replace_dir(buf, git_dir_len + 5, git_hooks_path);
                                               ^
/datasets/git/path.c:413:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (repo->different_commondir)
                                           ^
                                            {
/datasets/git/path.c:419:31: warning: parameter name 'wt' is too short, expected at least 3 characters [readability-identifier-length]
                                   const struct worktree *wt)
                                                          ^
/datasets/git/path.c:421:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!wt)
                ^
                 {
/datasets/git/path.c:423:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!wt->id)
                         ^
                          {
/datasets/git/path.c:425:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/path.c:430:27: warning: parameter name 'wt' is too short, expected at least 3 characters [readability-identifier-length]
                        const struct worktree *wt, struct strbuf *buf,
                                               ^
/datasets/git/path.c:433:6: warning: variable 'gitdir_len' is not initialized [cppcoreguidelines-init-variables]
        int gitdir_len;
            ^
                       = 0
/datasets/git/path.c:435:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (buf->len && !is_dir_sep(buf->buf[buf->len - 1]))
                                                            ^
                                                             {
/datasets/git/path.c:437:15: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        gitdir_len = buf->len;
                     ^
/datasets/git/path.c:439:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!wt)
                ^
                 {
/datasets/git/path.c:455:42: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void strbuf_repo_git_path(struct strbuf *sb,
                                         ^
/datasets/git/path.c:475:37: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void strbuf_git_path(struct strbuf *sb, const char *fmt, ...)
                                    ^
/datasets/git/path.c:505:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/path.c:524:54: warning: parameter name 'wt' is too short, expected at least 3 characters [readability-identifier-length]
const char *worktree_git_path(const struct worktree *wt, const char *fmt, ...)
                                                     ^
/datasets/git/path.c:539:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if(buf->len && !is_dir_sep(buf->buf[buf->len - 1]))
                                                           ^
                                                            {
/datasets/git/path.c:551:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!repo->worktree)
                            ^
                             {
/datasets/git/path.c:561:47: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void strbuf_repo_worktree_path(struct strbuf *sb,
                                              ^
/datasets/git/path.c:567:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!repo->worktree)
                            ^
                             {
/datasets/git/path.c:576:50: warning: 2 adjacent parameters of 'do_submodule_path' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int do_submodule_path(struct strbuf *buf, const char *path,
                                                 ^~~~~~~~~~~~~~~~~
/datasets/git/path.c:576:62: note: the first parameter in the range is 'path'
static int do_submodule_path(struct strbuf *buf, const char *path,
                                                             ^~~~
/datasets/git/path.c:577:21: note: the last parameter in the range is 'fmt'
                             const char *fmt, va_list args)
                                         ^~~
/datasets/git/path.c:581:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/path.c:584:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/path.c:591:77: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_common_dir_noenv(&git_submodule_common_dir, git_submodule_dir.buf))
                                                                                   ^
                                                                                    {
/datasets/git/path.c:592:26: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                update_common_dir(buf, git_submodule_dir.len, git_submodule_common_dir.buf);
                                       ^
/datasets/git/path.c:604:6: warning: variable 'err' is not initialized [cppcoreguidelines-init-variables]
        int err;
            ^
                = 0
/datasets/git/path.c:620:6: warning: variable 'err' is not initialized [cppcoreguidelines-init-variables]
        int err;
            ^
                = 0
/datasets/git/path.c:635:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (buf->len && !is_dir_sep(buf->buf[buf->len - 1]))
                                                            ^
                                                             {
/datasets/git/path.c:651:44: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void strbuf_git_common_path(struct strbuf *sb,
                                           ^
/datasets/git/path.c:663:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/path.c:664:14: warning: 256 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        char buffer[256];
                    ^
/datasets/git/path.c:665:14: warning: variable 'refname' is not initialized [cppcoreguidelines-init-variables]
        const char *refname;
                    ^
                            = NULL
/datasets/git/path.c:667:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/path.c:667:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/path.c:668:10: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        ssize_t len;
                ^
                    = 0
/datasets/git/path.c:670:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (lstat(path, &st) < 0)
                                 ^
                                  {
/datasets/git/path.c:676:14: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (len >= 5 && !memcmp("refs/", buffer, 5))
                           ^
/datasets/git/path.c:676:44: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (len >= 5 && !memcmp("refs/", buffer, 5))
                                                         ^
/datasets/git/path.c:676:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (len >= 5 && !memcmp("refs/", buffer, 5))
                                                            ^
                                                             {
/datasets/git/path.c:684:26: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
        fd = open(path, O_RDONLY);
                                ^
                                 | O_CLOEXEC
/datasets/git/path.c:685:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fd < 0)
                   ^
                    {
/datasets/git/path.c:690:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len < 0)
                    ^
                     {
/datasets/git/path.c:698:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (isspace(*refname))
                ^
/datasets/git/path.c:698:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                while (isspace(*refname))
                       ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/path.c:698:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (isspace(*refname))
                                         ^
                                          {
/datasets/git/path.c:700:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (starts_with(refname, "refs/"))
                                                  ^
                                                   {
/datasets/git/path.c:707:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!get_oid_hex(buffer, &oid))
                                       ^
                                        {
/datasets/git/path.c:715:17: warning: variable 'pw' is not initialized [cppcoreguidelines-init-variables]
        struct passwd *pw;
                       ^
                          = NULL
/datasets/git/path.c:715:17: warning: variable name 'pw' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/path.c:717:7: warning: function is not thread safe [concurrency-mt-unsafe]
        pw = getpwnam(username_z);
             ^
/datasets/git/path.c:736:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!path)
                  ^
                   {
/datasets/git/path.c:739:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (skip_prefix(path, "%(prefix)/", &path))
                                                   ^
                                                    {
/datasets/git/path.c:747:23: warning: function is not thread safe [concurrency-mt-unsafe]
                        const char *home = getenv("HOME");
                                           ^
/datasets/git/path.c:748:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!home)
                                  ^
                                   {
/datasets/git/path.c:750:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (real_home)
                                      ^
                                       {
/datasets/git/path.c:752:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/path.c:758:19: warning: variable name 'pw' is too short, expected at least 3 characters [readability-identifier-length]
                        struct passwd *pw = getpw_str(username, username_len);
                                       ^
/datasets/git/path.c:759:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!pw)
                                ^
                                 {
/datasets/git/path.c:791:13: warning: function 'enter_repo' has cognitive complexity of 32 (threshold 25) [readability-function-cognitive-complexity]
const char *enter_repo(const char *path, int strict)
            ^
/datasets/git/path.c:796:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!path)
        ^
/datasets/git/path.c:799:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strict) {
        ^
/datasets/git/path.c:806:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while ((1 < len) && (path[len-1] == '/'))
                ^
/datasets/git/path.c:806:20: note: +1
                while ((1 < len) && (path[len-1] == '/'))
                                 ^
/datasets/git/path.c:813:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (PATH_MAX <= len)
                ^
/datasets/git/path.c:821:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (used_path.buf[0] == '~') {
                ^
/datasets/git/path.c:823:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!newpath)
                        ^
/datasets/git/path.c:828:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; suffix[i]; i++) {
                ^
/datasets/git/path.c:832:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!stat(used_path.buf, &st) &&
                        ^
/datasets/git/path.c:832:34: note: +1
                        if (!stat(used_path.buf, &st) &&
                                                      ^
/datasets/git/path.c:833:29: note: +1
                            (S_ISREG(st.st_mode) ||
                                                 ^
/datasets/git/path.c:834:29: note: +1
                            (S_ISDIR(st.st_mode) && is_git_directory(used_path.buf)))) {
                                                 ^
/datasets/git/path.c:840:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!suffix[i])
                ^
/datasets/git/path.c:843:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (gitfile) {
                ^
/datasets/git/path.c:847:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (chdir(used_path.buf))
                ^
/datasets/git/path.c:851:2: note: +1, nesting level increased to 1
        else {
        ^
/datasets/git/path.c:853:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (gitfile)
                ^
/datasets/git/path.c:855:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (chdir(path))
                ^
/datasets/git/path.c:859:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (is_git_directory(".")) {
        ^
/datasets/git/path.c:796:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!path)
                  ^
                   {
/datasets/git/path.c:803:15: warning: variable 'gitfile' is not initialized [cppcoreguidelines-init-variables]
                const char *gitfile;
                            ^
                                    = NULL
/datasets/git/path.c:804:13: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int len = strlen(path);
                          ^
/datasets/git/path.c:805:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/path.c:805:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/path.c:806:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while ((1 < len) && (path[len-1] == '/'))
                ^
/datasets/git/path.c:806:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
                while ((1 < len) && (path[len-1] == '/'))
                       ^
/datasets/git/path.c:806:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while ((1 < len) && (path[len-1] == '/'))
                                                         ^
                                                          {
/datasets/git/path.c:813:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (PATH_MAX <= len)
                                    ^
                                     {
/datasets/git/path.c:823:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!newpath)
                                     ^
                                      {
/datasets/git/path.c:828:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; suffix[i]; i++) {
                ^
/datasets/git/path.c:829:16: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                        struct stat st;
                                    ^
/datasets/git/path.c:840:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!suffix[i])
                               ^
                                {
/datasets/git/path.c:847:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (chdir(used_path.buf))
                                         ^
                                          {
/datasets/git/path.c:853:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (gitfile)
                            ^
                             {
/datasets/git/path.c:855:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (chdir(path))
                                ^
                                 {
/datasets/git/path.c:870:6: warning: variable 'tweak' is not initialized [cppcoreguidelines-init-variables]
        int tweak;
            ^
                  = 0
/datasets/git/path.c:872:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_shared_repository() < 0)
                                        ^
                                         {
/datasets/git/path.c:874:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/path.c:877:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(mode & S_IWUSR))
              ^~~~
/datasets/git/path.c:877:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(mode & S_IWUSR))
                              ^
                               {
/datasets/git/path.c:878:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                tweak &= ~0222;
                ^~~~~
/datasets/git/path.c:878:12: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                tweak &= ~0222;
                         ^~~~~
/datasets/git/path.c:878:13: warning: 0222 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                tweak &= ~0222;
                          ^
/datasets/git/path.c:879:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (mode & S_IXUSR)
            ^~~~
/datasets/git/path.c:879:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mode & S_IXUSR)
                           ^
                            {
/datasets/git/path.c:881:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                tweak |= (tweak & 0444) >> 2;
                ^~~~~
/datasets/git/path.c:881:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                tweak |= (tweak & 0444) >> 2;
                         ^~~~~~~~~~~~~~
/datasets/git/path.c:881:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                tweak |= (tweak & 0444) >> 2;
                          ^~~~~
/datasets/git/path.c:881:21: warning: 0444 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                tweak |= (tweak & 0444) >> 2;
                                  ^
/datasets/git/path.c:882:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_shared_repository() < 0)
                                        ^
                                         {
/datasets/git/path.c:883:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mode = (mode & ~0777) | tweak;
                       ^~~~~~~~~~~~~~
/datasets/git/path.c:883:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mode = (mode & ~0777) | tweak;
                        ^~~~
/datasets/git/path.c:883:18: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                mode = (mode & ~0777) | tweak;
                               ^~~~~
/datasets/git/path.c:883:19: warning: 0777 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mode = (mode & ~0777) | tweak;
                                ^
/datasets/git/path.c:884:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/path.c:885:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mode |= tweak;
                ^~~~
/datasets/git/path.c:893:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int old_mode, new_mode;
        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/path.c:893:6: warning: variable 'old_mode' is not initialized [cppcoreguidelines-init-variables]
        int old_mode, new_mode;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/path.c:893:16: warning: variable 'new_mode' is not initialized [cppcoreguidelines-init-variables]
        int old_mode, new_mode;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/path.c:895:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!get_shared_repository())
                                     ^
                                      {
/datasets/git/path.c:897:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_st_mode_bits(path, &old_mode) < 0)
                                                  ^
                                                   {
/datasets/git/path.c:903:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                new_mode |= (new_mode & 0444) >> 2;
                ^~~~~~~~
/datasets/git/path.c:903:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                new_mode |= (new_mode & 0444) >> 2;
                            ^~~~~~~~~~~~~~~~~
/datasets/git/path.c:903:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                new_mode |= (new_mode & 0444) >> 2;
                             ^~~~~~~~
/datasets/git/path.c:903:27: warning: 0444 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                new_mode |= (new_mode & 0444) >> 2;
                                        ^
/datasets/git/path.c:909:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (FORCE_DIR_SET_GID && (new_mode & 060))
                                          ^~~~~~~~
/datasets/git/path.c:909:40: warning: 060 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (FORCE_DIR_SET_GID && (new_mode & 060))
                                                     ^
/datasets/git/path.c:909:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (FORCE_DIR_SET_GID && (new_mode & 060))
                                                          ^
                                                           {
/datasets/git/path.c:910:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        new_mode |= FORCE_DIR_SET_GID;
                        ^~~~~~~~
/datasets/git/path.c:913:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (((old_mode ^ new_mode) & ~S_IFMT) &&
             ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/path.c:913:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (((old_mode ^ new_mode) & ~S_IFMT) &&
              ^~~~~~~~
/datasets/git/path.c:913:31: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
        if (((old_mode ^ new_mode) & ~S_IFMT) &&
                                     ^
/datasets/git/path.c:914:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        chmod(path, (new_mode & ~S_IFMT)) < 0)
                                     ^~~~~~~~
/datasets/git/path.c:914:28: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                        chmod(path, (new_mode & ~S_IFMT)) < 0)
                                                ^
/datasets/git/path.c:914:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        chmod(path, (new_mode & ~S_IFMT)) < 0)
                                                              ^
                                                               {
/datasets/git/path.c:921:17: warning: 0777 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (mkdir(dir, 0777) < 0) {
                       ^
/datasets/git/path.c:924:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        exit(1);
                        ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/path.c:927:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (share && adjust_shared_perm(dir))
                                                  ^
                                                   {
/datasets/git/path.c:933:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int is_abs1, is_abs2;
        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/path.c:933:6: warning: variable 'is_abs1' is not initialized [cppcoreguidelines-init-variables]
        int is_abs1, is_abs2;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/path.c:933:15: warning: variable 'is_abs2' is not initialized [cppcoreguidelines-init-variables]
        int is_abs1, is_abs2;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/path.c:947:13: warning: function 'relative_path' has cognitive complexity of 44 (threshold 25) [readability-function-cognitive-complexity]
const char *relative_path(const char *in, const char *prefix,
            ^
/datasets/git/path.c:950:18: note: +1, including nesting penalty of 0, nesting level increased to 1
        int in_len = in ? strlen(in) : 0;
                        ^
/datasets/git/path.c:951:26: note: +1, including nesting penalty of 0, nesting level increased to 1
        int prefix_len = prefix ? strlen(prefix) : 0;
                                ^
/datasets/git/path.c:956:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!in_len)
        ^
/datasets/git/path.c:958:7: note: +1, nesting level increased to 1
        else if (!prefix_len)
             ^
/datasets/git/path.c:961:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (have_same_root(in, prefix))
        ^
/datasets/git/path.c:964:2: note: +1, nesting level increased to 1
        else {
        ^
/datasets/git/path.c:968:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (i < prefix_len && j < in_len && prefix[i] == in[j]) {
        ^
/datasets/git/path.c:968:38: note: +1
        while (i < prefix_len && j < in_len && prefix[i] == in[j]) {
                                            ^
/datasets/git/path.c:969:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (is_dir_sep(prefix[i])) {
                ^
/datasets/git/path.c:970:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (is_dir_sep(prefix[i]))
                        ^
/datasets/git/path.c:972:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (is_dir_sep(in[j]))
                        ^
/datasets/git/path.c:976:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/path.c:982:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (
        ^
/datasets/git/path.c:984:22: note: +1
            i >= prefix_len &&
                            ^
/datasets/git/path.c:990:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (j >= in_len) {
                ^
/datasets/git/path.c:993:10: note: +1, nesting level increased to 2
                } else if (is_dir_sep(in[j])) {
                       ^
/datasets/git/path.c:995:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (is_dir_sep(in[j]))
                        ^
/datasets/git/path.c:998:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/path.c:1002:9: note: +1, nesting level increased to 1
        } else if (
               ^
/datasets/git/path.c:1004:18: note: +1
                   j >= in_len &&
                               ^
/datasets/git/path.c:1007:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (is_dir_sep(prefix[i])) {
                ^
/datasets/git/path.c:1009:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (is_dir_sep(prefix[i]))
                        ^
/datasets/git/path.c:1017:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (i >= prefix_len) {
        ^
/datasets/git/path.c:1018:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!in_len)
                ^
/datasets/git/path.c:1020:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/path.c:1027:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (i < prefix_len) {
        ^
/datasets/git/path.c:1028:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (is_dir_sep(prefix[i])) {
                ^
/datasets/git/path.c:1030:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (is_dir_sep(prefix[i]))
                        ^
/datasets/git/path.c:1036:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!is_dir_sep(prefix[prefix_len - 1]))
        ^
/datasets/git/path.c:947:39: warning: parameter name 'in' is too short, expected at least 3 characters [readability-identifier-length]
const char *relative_path(const char *in, const char *prefix,
                                      ^
/datasets/git/path.c:948:21: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                          struct strbuf *sb)
                                         ^
/datasets/git/path.c:950:20: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int in_len = in ? strlen(in) : 0;
                          ^
/datasets/git/path.c:951:28: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int prefix_len = prefix ? strlen(prefix) : 0;
                                  ^
/datasets/git/path.c:954:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i = 0, j = 0;
        ^~~~~~~~~~~~~~~~~
/datasets/git/path.c:954:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0, j = 0;
            ^
/datasets/git/path.c:954:13: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0, j = 0;
                   ^
/datasets/git/path.c:956:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!in_len)
                    ^
                     {
/datasets/git/path.c:958:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (!prefix_len)
        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/path.c:958:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!prefix_len)
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/path.c:961:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (have_same_root(in, prefix))
                                       ^
                                        {
/datasets/git/path.c:968:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (i < prefix_len && j < in_len && prefix[i] == in[j]) {
               ^
/datasets/git/path.c:954:2: note: inferred assignment of ID-dependent value from ID-dependent 
        int i = 0, j = 0;
        ^
/datasets/git/path.c:970:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (is_dir_sep(prefix[i]))
                        ^
/datasets/git/path.c:970:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (is_dir_sep(prefix[i]))
                               ^
/datasets/git/./git-compat-util.h:451:20: note: expanded from macro 'is_dir_sep'
#define is_dir_sep git_is_dir_sep
                   ^
/datasets/git/path.c:970:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        while (is_dir_sep(prefix[i]))
                                                     ^
                                                      {
/datasets/git/path.c:972:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (is_dir_sep(in[j]))
                        ^
/datasets/git/path.c:972:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'in' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (is_dir_sep(in[j]))
                               ^
/datasets/git/./git-compat-util.h:451:20: note: expanded from macro 'is_dir_sep'
#define is_dir_sep git_is_dir_sep
                   ^
/datasets/git/path.c:972:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        while (is_dir_sep(in[j]))
                                                 ^
                                                  {
/datasets/git/path.c:995:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (is_dir_sep(in[j]))
                        ^
/datasets/git/path.c:995:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'in' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (is_dir_sep(in[j]))
                               ^
/datasets/git/./git-compat-util.h:451:20: note: expanded from macro 'is_dir_sep'
#define is_dir_sep git_is_dir_sep
                   ^
/datasets/git/path.c:995:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        while (is_dir_sep(in[j]))
                                                 ^
                                                  {
/datasets/git/path.c:1009:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (is_dir_sep(prefix[i]))
                        ^
/datasets/git/path.c:1009:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (is_dir_sep(prefix[i]))
                               ^
/datasets/git/./git-compat-util.h:451:20: note: expanded from macro 'is_dir_sep'
#define is_dir_sep git_is_dir_sep
                   ^
/datasets/git/path.c:1009:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        while (is_dir_sep(prefix[i]))
                                                     ^
                                                      {
/datasets/git/path.c:1018:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!in_len)
                            ^
                             {
/datasets/git/path.c:1020:3: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                else
                ^~~~
                                        return in
/datasets/git/path.c:1020:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/path.c:1027:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (i < prefix_len) {
               ^
/datasets/git/path.c:1030:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (is_dir_sep(prefix[i]))
                        ^
/datasets/git/path.c:1030:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (is_dir_sep(prefix[i]))
                               ^
/datasets/git/./git-compat-util.h:451:20: note: expanded from macro 'is_dir_sep'
#define is_dir_sep git_is_dir_sep
                   ^
/datasets/git/path.c:1030:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        while (is_dir_sep(prefix[i]))
                                                     ^
                                                      {
/datasets/git/path.c:1036:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_dir_sep(prefix[prefix_len - 1]))
                                                ^
                                                 {
/datasets/git/path.c:1051:45: warning: parameter name 'in' is too short, expected at least 3 characters [readability-identifier-length]
const char *remove_leading_path(const char *in, const char *prefix)
                                            ^
/datasets/git/path.c:1054:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i = 0, j = 0;
        ^~~~~~~~~~~~~~~~~
/datasets/git/path.c:1054:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0, j = 0;
            ^
/datasets/git/path.c:1054:13: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0, j = 0;
                   ^
/datasets/git/path.c:1056:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!prefix || !prefix[0])
                                  ^
                                   {
/datasets/git/path.c:1060:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!is_dir_sep(in[j]))
                                               ^
                                                {
/datasets/git/path.c:1062:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (is_dir_sep(prefix[i]))
                        ^
/datasets/git/path.c:1062:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        while (is_dir_sep(prefix[i]))
                                                     ^
                                                      {
/datasets/git/path.c:1064:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (is_dir_sep(in[j]))
                        ^
/datasets/git/path.c:1064:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        while (is_dir_sep(in[j]))
                                                 ^
                                                  {
/datasets/git/path.c:1067:5: warning: do not use 'else' after 'continue' [llvm-else-after-return,readability-else-after-return]
                } else if (in[j] != prefix[i]) {
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/path.c:1078:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
           )
            ^
             {
/datasets/git/path.c:1080:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (is_dir_sep(in[j]))
        ^
/datasets/git/path.c:1080:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (is_dir_sep(in[j]))
                                 ^
                                  {
/datasets/git/path.c:1084:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!in[j])
                   ^
                    {
/datasets/git/path.c:1086:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/path.c:1118:5: warning: function 'normalize_path_copy_len' has cognitive complexity of 45 (threshold 25) [readability-function-cognitive-complexity]
int normalize_path_copy_len(char *dst, const char *src, int *prefix_len)
    ^
/datasets/git/path.c:1127:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (src < end) {
        ^
/datasets/git/path.c:1129:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (is_dir_sep(c))
                ^
/datasets/git/path.c:1135:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (is_dir_sep(*src))
        ^
/datasets/git/path.c:1138:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (;;) {
        ^
/datasets/git/path.c:1149:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (c == '.') {
                ^
/datasets/git/path.c:1150:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!src[1]) {
                        ^
/datasets/git/path.c:1153:11: note: +1, nesting level increased to 3
                        } else if (is_dir_sep(src[1])) {
                               ^
/datasets/git/path.c:1156:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                while (is_dir_sep(*src))
                                ^
/datasets/git/path.c:1159:11: note: +1, nesting level increased to 3
                        } else if (src[1] == '.') {
                               ^
/datasets/git/path.c:1160:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!src[2]) {
                                ^
/datasets/git/path.c:1163:6: note: +1
                                        goto up_one;
                                        ^
/datasets/git/path.c:1164:12: note: +1, nesting level increased to 4
                                } else if (is_dir_sep(src[2])) {
                                       ^
/datasets/git/path.c:1167:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        while (is_dir_sep(*src))
                                        ^
/datasets/git/path.c:1169:6: note: +1
                                        goto up_one;
                                        ^
/datasets/git/path.c:1175:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while ((c = *src++) != '\0' && !is_dir_sep(c))
                ^
/datasets/git/path.c:1175:31: note: +1
                while ((c = *src++) != '\0' && !is_dir_sep(c))
                                            ^
/datasets/git/path.c:1177:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (is_dir_sep(c)) {
                ^
/datasets/git/path.c:1179:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (is_dir_sep(c))
                        ^
/datasets/git/path.c:1182:10: note: +1, nesting level increased to 2
                } else if (!c)
                       ^
/datasets/git/path.c:1192:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (dst <= dst0)
                ^
/datasets/git/path.c:1195:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (dst0 < dst && dst[-1] != '/')
                ^
/datasets/git/path.c:1195:21: note: +1
                while (dst0 < dst && dst[-1] != '/')
                                  ^
/datasets/git/path.c:1197:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (prefix_len && *prefix_len > dst - dst0)
                ^
/datasets/git/path.c:1197:18: note: +1
                if (prefix_len && *prefix_len > dst - dst0)
                               ^
/datasets/git/path.c:1121:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        const char *end;
        ^
/datasets/git/path.c:1120:8: warning: variable 'dst0' is not initialized [cppcoreguidelines-init-variables]
        char *dst0;
              ^
                   = NULL
/datasets/git/path.c:1121:14: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
        const char *end;
                    ^
                        = NULL
/datasets/git/path.c:1127:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (src < end) {
        ^
/datasets/git/path.c:1127:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'end' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (src < end) {
               ^
/datasets/git/path.c:1128:8: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                char c = *src++;
                     ^
/datasets/git/path.c:1129:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_dir_sep(c))
                                  ^
                                   {
/datasets/git/path.c:1135:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (is_dir_sep(*src))
        ^
/datasets/git/path.c:1135:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (is_dir_sep(*src))
                                ^
                                 {
/datasets/git/path.c:1139:8: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                char c = *src;
                     ^
/datasets/git/path.c:1156:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                while (is_dir_sep(*src))
                                ^
/datasets/git/path.c:1156:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                while (is_dir_sep(*src))
                                                        ^
                                                         {
/datasets/git/path.c:1167:6: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                        while (is_dir_sep(*src))
                                        ^
/datasets/git/path.c:1167:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        while (is_dir_sep(*src))
                                                                ^
                                                                 {
/datasets/git/path.c:1175:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while ((c = *src++) != '\0' && !is_dir_sep(c))
                ^
/datasets/git/path.c:1175:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'c' and may cause performance degradation [altera-id-dependent-backward-branch]
                while ((c = *src++) != '\0' && !is_dir_sep(c))
                       ^
/datasets/git/path.c:1175:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while ((c = *src++) != '\0' && !is_dir_sep(c))
                                                              ^
                                                               {
/datasets/git/path.c:1179:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (is_dir_sep(c))
                        ^
/datasets/git/path.c:1179:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'c' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (is_dir_sep(c))
                               ^
/datasets/git/./git-compat-util.h:451:20: note: expanded from macro 'is_dir_sep'
#define is_dir_sep git_is_dir_sep
                   ^
/datasets/git/path.c:1179:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        while (is_dir_sep(c))
                                             ^
                                              {
/datasets/git/path.c:1182:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else if (!c)
                              ^
                               {
/datasets/git/path.c:1192:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (dst <= dst0)
                                ^
                                 {
/datasets/git/path.c:1195:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (dst0 < dst && dst[-1] != '/')
                ^
/datasets/git/path.c:1195:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'dst0' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (dst0 < dst && dst[-1] != '/')
                       ^
/datasets/git/path.c:1195:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (dst0 < dst && dst[-1] != '/')
                                                    ^
                                                     {
/datasets/git/path.c:1197:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (prefix_len && *prefix_len > dst - dst0)
                                                           ^
                                                            {
/datasets/git/path.c:1198:18: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        *prefix_len = dst - dst0;
                                      ^
/datasets/git/path.c:1225:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, max_len = -1;
        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/path.c:1225:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, max_len = -1;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/path.c:1225:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/path.c:1227:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(path, "/"))
                               ^
                                {
/datasets/git/path.c:1230:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < prefixes->nr; i++) {
        ^
/datasets/git/path.c:1232:13: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int len = strlen(ceil);
                          ^
/datasets/git/path.c:1238:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (len > 0 && ceil[len - 1] == '/')
                                                    ^
                                                     {
/datasets/git/path.c:1241:7: warning: function 'strncmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (strncmp(path, ceil, len) ||
                    ^
                                             != 0
/datasets/git/path.c:1242:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    path[len] != '/' || !path[len + 1])
                                                       ^
                                                        {
/datasets/git/path.c:1245:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (len > max_len)
                                  ^
                                   {
/datasets/git/path.c:1255:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (len && is_dir_sep(path[len - 1]))
        ^
/datasets/git/path.c:1255:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (len && is_dir_sep(path[len - 1]))
                                                ^
                                                 {
/datasets/git/path.c:1267:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int path_len = strlen(path), suffix_len = strlen(suffix);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/path.c:1267:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/path.c:1267:17: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int path_len = strlen(path), suffix_len = strlen(suffix);
                       ^
/datasets/git/path.c:1267:44: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int path_len = strlen(path), suffix_len = strlen(suffix);
                                                  ^
/datasets/git/path.c:1269:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (suffix_len) {
        ^
/datasets/git/path.c:1269:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'suffix_len' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (suffix_len) {
               ^
/datasets/git/path.c:1270:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!path_len)
                              ^
                               {
/datasets/git/path.c:1274:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!is_dir_sep(suffix[suffix_len - 1]))
                                                                ^
                                                                 {
/datasets/git/path.c:1279:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (path[--path_len] != suffix[--suffix_len])
                                                                  ^
                                                                   {
/datasets/git/path.c:1283:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (path_len && !is_dir_sep(path[path_len - 1]))
                                                        ^
                                                         {
/datasets/git/path.c:1309:36: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
int daemon_avoid_alias(const char *p)
                                   ^
/datasets/git/path.c:1311:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int sl, ndot;
        ^~~~~~~~~~~~~
/datasets/git/path.c:1311:6: warning: variable 'sl' is not initialized [cppcoreguidelines-init-variables]
        int sl, ndot;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/path.c:1311:6: warning: variable name 'sl' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/path.c:1311:10: warning: variable 'ndot' is not initialized [cppcoreguidelines-init-variables]
        int sl, ndot;
                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/path.c:1322:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!p || (*p != '/' && *p != '~'))
                                           ^
                                            {
/datasets/git/path.c:1327:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/path.c:1328:8: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
                char ch = *p++;
                     ^
/datasets/git/path.c:1330:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ch == '.')
                                      ^
                                       {
/datasets/git/path.c:1333:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (ndot < 3)
                                             ^
                                              {
/datasets/git/path.c:1339:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (0 < ndot && ndot < 3)
                                                         ^
                                                          {
/datasets/git/path.c:1344:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/path.c:1347:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (ch == 0)
                                 ^
                                  {
/datasets/git/path.c:1395:7: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        char c;
             ^
               = 0
/datasets/git/path.c:1395:7: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/path.c:1406:9: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                if (((c = *(name++)) != 'g' && c != 'G') ||
                      ^
/datasets/git/path.c:1406:9: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/path.c:1406:9: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/path.c:1407:9: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                    ((c = *(name++)) != 'i' && c != 'I') ||
                      ^
/datasets/git/path.c:1407:9: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/path.c:1407:9: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/path.c:1408:9: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                    ((c = *(name++)) != 't' && c != 'T'))
                      ^
/datasets/git/path.c:1408:9: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/path.c:1408:9: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/path.c:1408:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    ((c = *(name++)) != 't' && c != 'T'))
                                                         ^
                                                          {
/datasets/git/path.c:1412:9: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                if (((c = *(name++)) != 'i' && c != 'I') ||
                      ^
/datasets/git/path.c:1412:9: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/path.c:1412:9: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/path.c:1413:9: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                    ((c = *(name++)) != 't' && c != 'T') ||
                      ^
/datasets/git/path.c:1413:9: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/path.c:1413:9: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/path.c:1415:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    *(name++) != '1')
                                     ^
                                      {
/datasets/git/path.c:1417:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/path.c:1420:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/path.c:1422:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!c || is_xplatform_dir_sep(c) || c == ':')
                                                              ^
                                                               {
/datasets/git/path.c:1424:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (c != '.' && c != ' ')
                                         ^
                                          {
/datasets/git/path.c:1429:12: warning: function 'is_ntfs_dot_generic' has cognitive complexity of 32 (threshold 25) [readability-function-cognitive-complexity]
static int is_ntfs_dot_generic(const char *name,
           ^
/datasets/git/path.c:1437:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((name[0] == '.' && !strncasecmp(name + 1, dotgit_name, len))) {
        ^
/datasets/git/path.c:1437:22: note: +1
        if ((name[0] == '.' && !strncasecmp(name + 1, dotgit_name, len))) {
                            ^
/datasets/git/path.c:1440:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (;;) {
                ^
/datasets/git/path.c:1442:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!c || c == ':')
                        ^
/datasets/git/path.c:1442:11: note: +1
                        if (!c || c == ':')
                               ^
/datasets/git/path.c:1444:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (c != ' ' && c != '.')
                        ^
/datasets/git/path.c:1444:17: note: +1
                        if (c != ' ' && c != '.')
                                     ^
/datasets/git/path.c:1453:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strncasecmp(name, dotgit_name, 6) && name[6] == '~' &&
        ^
/datasets/git/path.c:1454:21: note: +1
            name[7] >= '1' && name[7] <= '4') {
                           ^
/datasets/git/path.c:1456:3: note: +1
                goto only_spaces_and_periods;
                ^
/datasets/git/path.c:1463:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0, saw_tilde = 0; i < 8; i++)
        ^
/datasets/git/path.c:1464:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (name[i] == '\0')
                ^
/datasets/git/path.c:1466:8: note: +1, nesting level increased to 2
                else if (saw_tilde) {
                     ^
/datasets/git/path.c:1467:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (name[i] < '0' || name[i] > '9')
                        ^
/datasets/git/path.c:1467:22: note: +1
                        if (name[i] < '0' || name[i] > '9')
                                          ^
/datasets/git/path.c:1469:10: note: +1, nesting level increased to 2
                } else if (name[i] == '~') {
                       ^
/datasets/git/path.c:1470:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (name[++i] < '1' || name[i] > '9')
                        ^
/datasets/git/path.c:1470:24: note: +1
                        if (name[++i] < '1' || name[i] > '9')
                                            ^
/datasets/git/path.c:1473:10: note: +1, nesting level increased to 2
                } else if (i >= 6)
                       ^
/datasets/git/path.c:1475:8: note: +1, nesting level increased to 2
                else if (name[i] & 0x80) {
                     ^
/datasets/git/path.c:1481:10: note: +1, nesting level increased to 2
                } else if (tolower(name[i]) != dotgit_ntfs_shortname_prefix[i])
                       ^
/datasets/git/path.c:1484:2: note: +1
        goto only_spaces_and_periods;
        ^
/datasets/git/path.c:1434:6: warning: variable 'saw_tilde' is not initialized [cppcoreguidelines-init-variables]
        int saw_tilde;
            ^
                      = 0
/datasets/git/path.c:1435:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i;
               ^
                 = 0
/datasets/git/path.c:1435:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/path.c:1440:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (;;) {
                ^
/datasets/git/path.c:1441:9: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                        char c = name[i++];
                             ^
/datasets/git/path.c:1442:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!c || c == ':')
                                           ^
                                            {
/datasets/git/path.c:1444:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (c != ' ' && c != '.')
                                                 ^
                                                  {
/datasets/git/path.c:1453:38: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (!strncasecmp(name, dotgit_name, 6) && name[6] == '~' &&
                                            ^
/datasets/git/path.c:1453:49: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (!strncasecmp(name, dotgit_name, 6) && name[6] == '~' &&
                                                       ^
/datasets/git/path.c:1454:11: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
            name[7] >= '1' && name[7] <= '4') {
                 ^
/datasets/git/path.c:1454:29: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
            name[7] >= '1' && name[7] <= '4') {
                                   ^
/datasets/git/path.c:1455:7: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                i = 8;
                    ^
/datasets/git/path.c:1463:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0, saw_tilde = 0; i < 8; i++)
        ^
/datasets/git/path.c:1463:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0, saw_tilde = 0; i < 8; i++)
                                   ^
/datasets/git/path.c:1463:33: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        for (i = 0, saw_tilde = 0; i < 8; i++)
                                       ^
/datasets/git/path.c:1463:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0, saw_tilde = 0; i < 8; i++)
                                              ^
                                               {
/datasets/git/path.c:1464:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (name[i] == '\0')
                                    ^
                                     {
/datasets/git/path.c:1465:4: warning: repeated branch in conditional chain [bugprone-branch-clone]
                        return 0;
                        ^
/datasets/git/path.c:1465:12: note: end of the original
                        return 0;
                                ^
/datasets/git/path.c:1474:4: note: clone 1 starts here
                        return 0;
                        ^
/datasets/git/path.c:1475:28: note: clone 2 starts here
                else if (name[i] & 0x80) {
                                         ^
/datasets/git/path.c:1482:4: note: clone 3 starts here
                        return 0;
                        ^
/datasets/git/path.c:1467:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (name[i] < '0' || name[i] > '9')
                                                           ^
                                                            {
/datasets/git/path.c:1470:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (name[++i] < '1' || name[i] > '9')
                                                             ^
                                                              {
/datasets/git/path.c:1473:19: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                } else if (i >= 6)
                                ^
/datasets/git/path.c:1473:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else if (i >= 6)
                                  ^
                                   {
/datasets/git/path.c:1475:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                else if (name[i] & 0x80) {
                         ^~~~~~~
/datasets/git/path.c:1475:22: warning: 0x80 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                else if (name[i] & 0x80) {
                                   ^
/datasets/git/path.c:1481:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else if (tolower(name[i]) != dotgit_ntfs_shortname_prefix[i])
                                                                               ^
                                                                                {
/datasets/git/path.c:1525:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *home, *config_home;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/path.c:1525:14: warning: variable 'home' is not initialized [cppcoreguidelines-init-variables]
        const char *home, *config_home;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/path.c:1525:21: warning: variable 'config_home' is not initialized [cppcoreguidelines-init-variables]
        const char *home, *config_home;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/path.c:1529:16: warning: function is not thread safe [concurrency-mt-unsafe]
        config_home = getenv("XDG_CONFIG_HOME");
                      ^
/datasets/git/path.c:1530:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (config_home && *config_home)
                                        ^
                                         {
/datasets/git/path.c:1533:9: warning: function is not thread safe [concurrency-mt-unsafe]
        home = getenv("HOME");
               ^
/datasets/git/path.c:1534:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (home)
                 ^
                  {
/datasets/git/path.c:1547:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *home, *cache_home;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/path.c:1547:14: warning: variable 'home' is not initialized [cppcoreguidelines-init-variables]
        const char *home, *cache_home;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/path.c:1547:21: warning: variable 'cache_home' is not initialized [cppcoreguidelines-init-variables]
        const char *home, *cache_home;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/path.c:1550:15: warning: function is not thread safe [concurrency-mt-unsafe]
        cache_home = getenv("XDG_CACHE_HOME");
                     ^
/datasets/git/path.c:1551:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cache_home && *cache_home)
                                      ^
                                       {
/datasets/git/path.c:1554:9: warning: function is not thread safe [concurrency-mt-unsafe]
        home = getenv("HOME");
               ^
/datasets/git/path.c:1555:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (home)
                 ^
                  {
/datasets/git/path.c:1560:1: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
REPO_GIT_PATH_FUNC(squash_msg, "SQUASH_MSG")
^
/datasets/git/./path.h:165:48: note: expanded from macro 'REPO_GIT_PATH_FUNC'
        const char *git_path_##var(struct repository *r) \
                                                      ^
/datasets/git/path.c:1561:1: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
REPO_GIT_PATH_FUNC(merge_msg, "MERGE_MSG")
^
/datasets/git/./path.h:165:48: note: expanded from macro 'REPO_GIT_PATH_FUNC'
        const char *git_path_##var(struct repository *r) \
                                                      ^
/datasets/git/path.c:1562:1: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
REPO_GIT_PATH_FUNC(merge_rr, "MERGE_RR")
^
/datasets/git/./path.h:165:48: note: expanded from macro 'REPO_GIT_PATH_FUNC'
        const char *git_path_##var(struct repository *r) \
                                                      ^
/datasets/git/path.c:1563:1: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
REPO_GIT_PATH_FUNC(merge_mode, "MERGE_MODE")
^
/datasets/git/./path.h:165:48: note: expanded from macro 'REPO_GIT_PATH_FUNC'
        const char *git_path_##var(struct repository *r) \
                                                      ^
/datasets/git/path.c:1564:1: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
REPO_GIT_PATH_FUNC(merge_head, "MERGE_HEAD")
^
/datasets/git/./path.h:165:48: note: expanded from macro 'REPO_GIT_PATH_FUNC'
        const char *git_path_##var(struct repository *r) \
                                                      ^
/datasets/git/path.c:1565:1: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
REPO_GIT_PATH_FUNC(merge_autostash, "MERGE_AUTOSTASH")
^
/datasets/git/./path.h:165:48: note: expanded from macro 'REPO_GIT_PATH_FUNC'
        const char *git_path_##var(struct repository *r) \
                                                      ^
/datasets/git/path.c:1566:1: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
REPO_GIT_PATH_FUNC(auto_merge, "AUTO_MERGE")
^
/datasets/git/./path.h:165:48: note: expanded from macro 'REPO_GIT_PATH_FUNC'
        const char *git_path_##var(struct repository *r) \
                                                      ^
/datasets/git/path.c:1567:1: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
REPO_GIT_PATH_FUNC(fetch_head, "FETCH_HEAD")
^
/datasets/git/./path.h:165:48: note: expanded from macro 'REPO_GIT_PATH_FUNC'
        const char *git_path_##var(struct repository *r) \
                                                      ^
/datasets/git/path.c:1568:1: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
REPO_GIT_PATH_FUNC(shallow, "shallow")
^
/datasets/git/./path.h:165:48: note: expanded from macro 'REPO_GIT_PATH_FUNC'
        const char *git_path_##var(struct repository *r) \
                                                      ^
/datasets/git/pathspec.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "attr.h"
/datasets/git/pathspec.c:27:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int num_unmatched = 0, i;
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pathspec.c:27:25: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int num_unmatched = 0, i;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pathspec.c:27:25: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pathspec.c:35:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < pathspec->nr; i++)
        ^
/datasets/git/pathspec.c:35:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < pathspec->nr; i++)
                                          ^
                                           {
/datasets/git/pathspec.c:36:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!seen[i])
                             ^
                              {
/datasets/git/pathspec.c:38:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!num_unmatched)
                           ^
                            {
/datasets/git/pathspec.c:40:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < istate->cache_nr; i++) {
        ^
/datasets/git/pathspec.c:41:29: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                const struct cache_entry *ce = istate->cache[i];
                                          ^
/datasets/git/pathspec.c:43:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (ce_skip_worktree(ce) || !path_in_sparse_checkout(ce->name, istate)))
                     ^
/datasets/git/./refs/../cache.h:244:31: note: expanded from macro 'ce_skip_worktree'
#define ce_skip_worktree(ce) ((ce)->ce_flags & CE_SKIP_WORKTREE)
                              ^                ~~~~~~~~~~~~~~~~
/datasets/git/pathspec.c:43:76: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    (ce_skip_worktree(ce) || !path_in_sparse_checkout(ce->name, istate)))
                                                                                         ^
                                                                                          {
/datasets/git/pathspec.c:70:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/pathspec.c:70:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pathspec.c:72:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < istate->cache_nr; i++) {
        ^
/datasets/git/pathspec.c:72:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'istate' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < istate->cache_nr; i++) {
                    ^
/datasets/git/pathspec.c:73:23: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                struct cache_entry *ce = istate->cache[i];
                                    ^
/datasets/git/pathspec.c:74:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce_skip_worktree(ce) || !path_in_sparse_checkout(ce->name, istate))
                    ^
/datasets/git/./refs/../cache.h:244:31: note: expanded from macro 'ce_skip_worktree'
#define ce_skip_worktree(ce) ((ce)->ce_flags & CE_SKIP_WORKTREE)
                              ^                ~~~~~~~~~~~~~~~~
/datasets/git/pathspec.c:74:74: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ce_skip_worktree(ce) || !path_in_sparse_checkout(ce->name, istate))
                                                                                       ^
                                                                                        {
/datasets/git/pathspec.c:91:15: warning: accessing fields in struct 'pathspec_magic' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
static struct pathspec_magic {
              ^
/datasets/git/pathspec.c:91:15: note: use "__attribute__((aligned(16)))" to align struct 'pathspec_magic' to 16 bytes
/datasets/git/pathspec.c:95:3: warning: variable 'pathspec_magic' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} pathspec_magic[] = {
  ^
/datasets/git/pathspec.c:96:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { PATHSPEC_FROMTOP,  '/', "top" },
          ^
/datasets/git/./pathspec.h:7:27: note: expanded from macro 'PATHSPEC_FROMTOP'
#define PATHSPEC_FROMTOP        (1<<0)
                                 ^
/datasets/git/pathspec.c:97:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { PATHSPEC_LITERAL, '\0', "literal" },
          ^
/datasets/git/./pathspec.h:9:27: note: expanded from macro 'PATHSPEC_LITERAL'
#define PATHSPEC_LITERAL        (1<<2)
                                 ^
/datasets/git/pathspec.c:98:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { PATHSPEC_GLOB,    '\0', "glob" },
          ^
/datasets/git/./pathspec.h:10:25: note: expanded from macro 'PATHSPEC_GLOB'
#define PATHSPEC_GLOB           (1<<3)
                                 ^
/datasets/git/pathspec.c:99:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { PATHSPEC_ICASE,   '\0', "icase" },
          ^
/datasets/git/./pathspec.h:11:26: note: expanded from macro 'PATHSPEC_ICASE'
#define PATHSPEC_ICASE          (1<<4)
                                 ^
/datasets/git/pathspec.c:100:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { PATHSPEC_EXCLUDE,  '!', "exclude" },
          ^
/datasets/git/./pathspec.h:12:27: note: expanded from macro 'PATHSPEC_EXCLUDE'
#define PATHSPEC_EXCLUDE        (1<<5)
                                 ^
/datasets/git/pathspec.c:101:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { PATHSPEC_ATTR,    '\0', "attr" },
          ^
/datasets/git/./pathspec.h:13:25: note: expanded from macro 'PATHSPEC_ATTR'
#define PATHSPEC_ATTR           (1<<6)
                                 ^
/datasets/git/pathspec.c:104:41: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static void prefix_magic(struct strbuf *sb, int prefixlen, unsigned magic)
                                        ^
/datasets/git/pathspec.c:104:45: warning: 2 adjacent parameters of 'prefix_magic' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void prefix_magic(struct strbuf *sb, int prefixlen, unsigned magic)
                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pathspec.c:104:49: note: the first parameter in the range is 'prefixlen'
static void prefix_magic(struct strbuf *sb, int prefixlen, unsigned magic)
                                                ^~~~~~~~~
/datasets/git/pathspec.c:104:69: note: the last parameter in the range is 'magic'
static void prefix_magic(struct strbuf *sb, int prefixlen, unsigned magic)
                                                                    ^~~~~
/datasets/git/pathspec.c:104:60: note: 'int' and 'unsigned int' may be implicitly converted
static void prefix_magic(struct strbuf *sb, int prefixlen, unsigned magic)
                                                           ^
/datasets/git/pathspec.c:106:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/pathspec.c:106:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pathspec.c:108:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ARRAY_SIZE(pathspec_magic); i++)
        ^
/datasets/git/pathspec.c:108:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < ARRAY_SIZE(pathspec_magic); i++)
                                                        ^
                                                         {
/datasets/git/pathspec.c:110:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (sb->buf[sb->len - 1] != '(')
                                                        ^
                                                         {
/datasets/git/pathspec.c:117:31: warning: 2 adjacent parameters of 'strcspn_escaped' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static size_t strcspn_escaped(const char *s, const char *stop)
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pathspec.c:117:43: note: the first parameter in the range is 's'
static size_t strcspn_escaped(const char *s, const char *stop)
                                          ^
/datasets/git/pathspec.c:117:58: note: the last parameter in the range is 'stop'
static size_t strcspn_escaped(const char *s, const char *stop)
                                                         ^~~~
/datasets/git/pathspec.c:117:43: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static size_t strcspn_escaped(const char *s, const char *stop)
                                          ^
/datasets/git/pathspec.c:119:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        const char *i;
        ^
/datasets/git/pathspec.c:119:14: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        const char *i;
                    ^
                      = NULL
/datasets/git/pathspec.c:119:14: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pathspec.c:121:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = s; *i; i++) {
        ^
/datasets/git/pathspec.c:121:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = s; *i; i++) {
                    ^
/datasets/git/pathspec.c:128:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strchr(stop, *i))
                                     ^
                                      {
/datasets/git/pathspec.c:134:49: warning: parameter name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
static inline int invalid_value_char(const char ch)
                                                ^
/datasets/git/pathspec.c:136:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (isalnum(ch) || strchr(",-_", ch))
            ^
/datasets/git/./git-compat-util.h:1220:20: note: expanded from macro 'isalnum'
#define isalnum(x) sane_istest(x,GIT_ALPHA | GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/pathspec.c:136:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (isalnum(ch) || strchr(",-_", ch))
                                             ^
                                              {
/datasets/git/pathspec.c:143:14: warning: variable 'src' is not initialized [cppcoreguidelines-init-variables]
        const char *src;
                    ^
                        = NULL
/datasets/git/pathspec.c:144:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *dst, *ret;
        ^~~~~~~~~~~~~~~~
/datasets/git/pathspec.c:143:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        const char *src;
        ^
/datasets/git/pathspec.c:144:8: warning: variable 'dst' is not initialized [cppcoreguidelines-init-variables]
        char *dst, *ret;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pathspec.c:144:14: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        char *dst, *ret;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pathspec.c:147:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (src = value, dst = ret; *src; src++, dst++) {
        ^
/datasets/git/pathspec.c:147:31: warning: backward branch (for loop) is ID-dependent due to variable reference to 'src' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (src = value, dst = ret; *src; src++, dst++) {
                                     ^
/datasets/git/pathspec.c:149:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!src[1])
                                    ^
                                     {
/datasets/git/pathspec.c:154:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (invalid_value_char(*src))
                                             ^
                                              {
/datasets/git/pathspec.c:164:27: warning: variable 'si' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *si;
                                 ^
                                    = NULL
/datasets/git/pathspec.c:164:27: warning: variable name 'si' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pathspec.c:167:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (item->attr_check || item->attr_match)
                                                 ^
                                                  {
/datasets/git/pathspec.c:170:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!value || !*value)
                              ^
                               {
/datasets/git/pathspec.c:179:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(si, &list) {
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/pathspec.c:179:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'si' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(si, &list) {
                                  ^
/datasets/git/pathspec.c:180:10: warning: variable 'attr_len' is not initialized [cppcoreguidelines-init-variables]
                size_t attr_len;
                       ^
                                = 0
/datasets/git/pathspec.c:181:9: warning: variable 'attr_name' is not initialized [cppcoreguidelines-init-variables]
                char *attr_name;
                      ^
                                = NULL
/datasets/git/pathspec.c:182:26: warning: variable 'a' is not initialized [cppcoreguidelines-init-variables]
                const struct git_attr *a;
                                       ^
                                         = NULL
/datasets/git/pathspec.c:182:26: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pathspec.c:184:7: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
                int j = item->attr_match_nr++;
                    ^
/datasets/git/pathspec.c:186:22: warning: variable name 'am' is too short, expected at least 3 characters [readability-identifier-length]
                struct attr_match *am = &item->attr_match[j];
                                   ^
/datasets/git/pathspec.c:201:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (attr[attr_len] != '=')
                                                  ^
                                                   {
/datasets/git/pathspec.c:204:17: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
                                const char *v = &attr[attr_len + 1];
                                            ^
/datasets/git/pathspec.c:213:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!a)
                       ^
                        {
/datasets/git/pathspec.c:221:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (item->attr_check->nr != item->attr_match_nr)
                                                        ^
                                                         {
/datasets/git/pathspec.c:231:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (literal < 0)
                        ^
                         {
/datasets/git/pathspec.c:241:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (glob < 0)
                     ^
                      {
/datasets/git/pathspec.c:251:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (noglob < 0)
                       ^
                        {
/datasets/git/pathspec.c:261:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (icase < 0)
                      ^
                       {
/datasets/git/pathspec.c:271:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_literal_global())
                                 ^
                                  {
/datasets/git/pathspec.c:272:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                global_magic |= PATHSPEC_LITERAL;
                ^~~~~~~~~~~~
/datasets/git/pathspec.c:272:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                global_magic |= PATHSPEC_LITERAL;
                                ^
/datasets/git/./pathspec.h:9:27: note: expanded from macro 'PATHSPEC_LITERAL'
#define PATHSPEC_LITERAL        (1<<2)
                                 ^
/datasets/git/pathspec.c:275:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (get_glob_global() && !(element_magic & PATHSPEC_LITERAL))
                                   ^~~~~~~~~~~~~
/datasets/git/pathspec.c:275:45: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (get_glob_global() && !(element_magic & PATHSPEC_LITERAL))
                                                   ^
/datasets/git/./pathspec.h:9:27: note: expanded from macro 'PATHSPEC_LITERAL'
#define PATHSPEC_LITERAL        (1<<2)
                                 ^
/datasets/git/pathspec.c:275:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_glob_global() && !(element_magic & PATHSPEC_LITERAL))
                                                                     ^
                                                                      {
/datasets/git/pathspec.c:276:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                global_magic |= PATHSPEC_GLOB;
                ^~~~~~~~~~~~
/datasets/git/pathspec.c:276:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                global_magic |= PATHSPEC_GLOB;
                                ^
/datasets/git/./pathspec.h:10:25: note: expanded from macro 'PATHSPEC_GLOB'
#define PATHSPEC_GLOB           (1<<3)
                                 ^
/datasets/git/pathspec.c:278:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_glob_global() && get_noglob_global())
                                                     ^
                                                      {
/datasets/git/pathspec.c:281:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_icase_global())
                               ^
                                {
/datasets/git/pathspec.c:282:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                global_magic |= PATHSPEC_ICASE;
                ^~~~~~~~~~~~
/datasets/git/pathspec.c:282:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                global_magic |= PATHSPEC_ICASE;
                                ^
/datasets/git/./pathspec.h:11:26: note: expanded from macro 'PATHSPEC_ICASE'
#define PATHSPEC_ICASE          (1<<4)
                                 ^
/datasets/git/pathspec.c:284:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((global_magic & PATHSPEC_LITERAL) &&
             ^~~~~~~~~~~~
/datasets/git/pathspec.c:284:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((global_magic & PATHSPEC_LITERAL) &&
                            ^
/datasets/git/./pathspec.h:9:27: note: expanded from macro 'PATHSPEC_LITERAL'
#define PATHSPEC_LITERAL        (1<<2)
                                 ^
/datasets/git/pathspec.c:285:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            (global_magic & ~PATHSPEC_LITERAL))
             ^~~~~~~~~~~~
/datasets/git/pathspec.c:285:22: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
            (global_magic & ~PATHSPEC_LITERAL))
                            ^
/datasets/git/pathspec.c:285:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            (global_magic & ~PATHSPEC_LITERAL))
                             ^
/datasets/git/./pathspec.h:9:27: note: expanded from macro 'PATHSPEC_LITERAL'
#define PATHSPEC_LITERAL        (1<<2)
                                 ^
/datasets/git/pathspec.c:285:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            (global_magic & ~PATHSPEC_LITERAL))
                                               ^
                                                {
/datasets/git/pathspec.c:290:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (get_noglob_global() && !(element_magic & PATHSPEC_GLOB))
                                     ^~~~~~~~~~~~~
/datasets/git/pathspec.c:290:47: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (get_noglob_global() && !(element_magic & PATHSPEC_GLOB))
                                                     ^
/datasets/git/./pathspec.h:10:25: note: expanded from macro 'PATHSPEC_GLOB'
#define PATHSPEC_GLOB           (1<<3)
                                 ^
/datasets/git/pathspec.c:290:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_noglob_global() && !(element_magic & PATHSPEC_GLOB))
                                                                    ^
                                                                     {
/datasets/git/pathspec.c:291:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                global_magic |= PATHSPEC_LITERAL;
                ^~~~~~~~~~~~
/datasets/git/pathspec.c:291:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                global_magic |= PATHSPEC_LITERAL;
                                ^
/datasets/git/./pathspec.h:9:27: note: expanded from macro 'PATHSPEC_LITERAL'
#define PATHSPEC_LITERAL        (1<<2)
                                 ^
/datasets/git/pathspec.c:307:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        const char *pos;
        ^
/datasets/git/pathspec.c:307:14: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        const char *pos;
                    ^
                        = NULL
/datasets/git/pathspec.c:308:14: warning: variable 'nextat' is not initialized [cppcoreguidelines-init-variables]
        const char *nextat;
                    ^
                           = NULL
/datasets/git/pathspec.c:310:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 'pos' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (pos = elem + 2; *pos && *pos != ')'; pos = nextat) {
                             ^
/datasets/git/pathspec.c:312:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/pathspec.c:312:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pathspec.c:314:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pos[len] == ',')
                                    ^
                                     {
/datasets/git/pathspec.c:316:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/pathspec.c:319:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!len)
                         ^
                          {
/datasets/git/pathspec.c:323:10: warning: variable 'endptr' is not initialized [cppcoreguidelines-init-variables]
                        char *endptr;
                              ^
                                     = NULL
/datasets/git/pathspec.c:324:18: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        *prefix_len = strtol(pos + 7, &endptr, 10);
                                      ^
/datasets/git/pathspec.c:324:31: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        *prefix_len = strtol(pos + 7, &endptr, 10);
                                                   ^
/datasets/git/pathspec.c:324:43: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        *prefix_len = strtol(pos + 7, &endptr, 10);
                                                               ^
/datasets/git/pathspec.c:325:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (endptr - pos != len)
                                                ^
                                                 {
/datasets/git/pathspec.c:331:37: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        char *attr_body = xmemdupz(pos + 5, len - 5);
                                                         ^
/datasets/git/pathspec.c:331:46: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        char *attr_body = xmemdupz(pos + 5, len - 5);
                                                                  ^
/datasets/git/pathspec.c:333:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        *magic |= PATHSPEC_ATTR;
                        ^
/datasets/git/pathspec.c:333:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        *magic |= PATHSPEC_ATTR;
                                  ^
/datasets/git/./pathspec.h:13:25: note: expanded from macro 'PATHSPEC_ATTR'
#define PATHSPEC_ATTR           (1<<6)
                                 ^
/datasets/git/pathspec.c:367:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        const char *pos;
        ^
/datasets/git/pathspec.c:338:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < ARRAY_SIZE(pathspec_magic); i++) {
                ^
/datasets/git/pathspec.c:346:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ARRAY_SIZE(pathspec_magic) <= i)
                                                    ^
                                                     {
/datasets/git/pathspec.c:351:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*pos != ')')
                        ^
                         {
/datasets/git/pathspec.c:367:14: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        const char *pos;
                    ^
                        = NULL
/datasets/git/pathspec.c:369:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 'pos' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (pos = elem + 1; *pos && *pos != ':'; pos++) {
                             ^
/datasets/git/pathspec.c:370:8: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
                char ch = *pos;
                     ^
/datasets/git/pathspec.c:371:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/pathspec.c:371:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pathspec.c:375:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        *magic |= PATHSPEC_EXCLUDE;
                        ^
/datasets/git/pathspec.c:375:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        *magic |= PATHSPEC_EXCLUDE;
                                  ^
/datasets/git/./pathspec.h:12:27: note: expanded from macro 'PATHSPEC_EXCLUDE'
#define PATHSPEC_EXCLUDE        (1<<5)
                                 ^
/datasets/git/pathspec.c:379:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!is_pathspec_magic(ch))
                     ^
/datasets/git/./git-compat-util.h:1232:30: note: expanded from macro 'is_pathspec_magic'
#define is_pathspec_magic(x) sane_istest(x,GIT_PATHSPEC_MAGIC)
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/pathspec.c:379:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!is_pathspec_magic(ch))
                                           ^
                                            {
/datasets/git/pathspec.c:382:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < ARRAY_SIZE(pathspec_magic); i++) {
                ^
/datasets/git/pathspec.c:389:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ARRAY_SIZE(pathspec_magic) <= i)
                                                    ^
                                                     {
/datasets/git/pathspec.c:394:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*pos == ':')
                        ^
                         {
/datasets/git/pathspec.c:404:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (elem[0] != ':' || get_literal_global())
                                                   ^
                                                    {
/datasets/git/pathspec.c:406:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (elem[1] == '(')
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pathspec.c:406:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (elem[1] == '(')
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pathspec.c:409:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pathspec.c:417:13: warning: function 'init_pathspec_item' has cognitive complexity of 30 (threshold 25) [readability-function-cognitive-complexity]
static void init_pathspec_item(struct pathspec_item *item, unsigned flags,
            ^
/datasets/git/pathspec.c:431:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (flags & PATHSPEC_LITERAL_PATH) {
        ^
/datasets/git/pathspec.c:433:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/pathspec.c:444:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (pathspec_prefix >= 0 &&
        ^
/datasets/git/pathspec.c:444:27: note: +1
        if (pathspec_prefix >= 0 &&
                                 ^
/datasets/git/pathspec.c:445:17: note: +1
            (prefixlen || (prefix && *prefix)))
                       ^
/datasets/git/pathspec.c:445:28: note: +1
            (prefixlen || (prefix && *prefix)))
                                  ^
/datasets/git/pathspec.c:448:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((magic & PATHSPEC_LITERAL) && (magic & PATHSPEC_GLOB))
        ^
/datasets/git/pathspec.c:448:33: note: +1
        if ((magic & PATHSPEC_LITERAL) && (magic & PATHSPEC_GLOB))
                                       ^
/datasets/git/pathspec.c:452:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (pathspec_prefix >= 0) {
        ^
/datasets/git/pathspec.c:455:9: note: +1, nesting level increased to 1
        } else if (magic & PATHSPEC_FROMTOP) {
               ^
/datasets/git/pathspec.c:458:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/pathspec.c:461:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!match) {
                ^
/datasets/git/pathspec.c:463:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!hint_path)
                        ^
/datasets/git/pathspec.c:478:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((flags & PATHSPEC_PREFIX_ORIGIN) &&
        ^
/datasets/git/pathspec.c:478:39: note: +1
        if ((flags & PATHSPEC_PREFIX_ORIGIN) &&
                                             ^
/datasets/git/pathspec.c:487:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/pathspec.c:491:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (magic & PATHSPEC_LITERAL) {
        ^
/datasets/git/pathspec.c:493:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/pathspec.c:495:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (item->nowildcard_len < prefixlen)
                ^
/datasets/git/pathspec.c:500:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (magic & PATHSPEC_GLOB) {
        ^
/datasets/git/pathspec.c:505:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/pathspec.c:506:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (item->nowildcard_len < item->len &&
                ^
/datasets/git/pathspec.c:507:48: note: +1
                    item->match[item->nowildcard_len] == '*' &&
                                                             ^
/datasets/git/pathspec.c:513:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (item->nowildcard_len > item->len ||
        ^
/datasets/git/pathspec.c:513:39: note: +1
        if (item->nowildcard_len > item->len ||
                                             ^
/datasets/git/pathspec.c:421:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned magic = 0, element_magic = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pathspec.c:423:8: warning: variable 'match' is not initialized [cppcoreguidelines-init-variables]
        char *match;
              ^
                    = NULL
/datasets/git/pathspec.c:431:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & PATHSPEC_LITERAL_PATH) {
            ^
/datasets/git/pathspec.c:431:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & PATHSPEC_LITERAL_PATH) {
                    ^
/datasets/git/./pathspec.h:78:32: note: expanded from macro 'PATHSPEC_LITERAL_PATH'
#define PATHSPEC_LITERAL_PATH (1<<6)
                               ^
/datasets/git/pathspec.c:432:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                magic = PATHSPEC_LITERAL;
                        ^
/datasets/git/./pathspec.h:9:27: note: expanded from macro 'PATHSPEC_LITERAL'
#define PATHSPEC_LITERAL        (1<<2)
                                 ^
/datasets/git/pathspec.c:439:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                magic |= get_global_magic(element_magic);
                ^        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pathspec.c:439:29: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                magic |= get_global_magic(element_magic);
                                          ^
/datasets/git/pathspec.c:445:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            (prefixlen || (prefix && *prefix)))
                                               ^
                                                {
/datasets/git/pathspec.c:448:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((magic & PATHSPEC_LITERAL) && (magic & PATHSPEC_GLOB))
             ^
/datasets/git/pathspec.c:448:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((magic & PATHSPEC_LITERAL) && (magic & PATHSPEC_GLOB))
                     ^
/datasets/git/./pathspec.h:9:27: note: expanded from macro 'PATHSPEC_LITERAL'
#define PATHSPEC_LITERAL        (1<<2)
                                 ^
/datasets/git/pathspec.c:448:37: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((magic & PATHSPEC_LITERAL) && (magic & PATHSPEC_GLOB))
                                           ^
/datasets/git/pathspec.c:448:45: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((magic & PATHSPEC_LITERAL) && (magic & PATHSPEC_GLOB))
                                                   ^
/datasets/git/./pathspec.h:10:25: note: expanded from macro 'PATHSPEC_GLOB'
#define PATHSPEC_GLOB           (1<<3)
                                 ^
/datasets/git/pathspec.c:448:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((magic & PATHSPEC_LITERAL) && (magic & PATHSPEC_GLOB))
                                                                  ^
                                                                   {
/datasets/git/pathspec.c:455:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        } else if (magic & PATHSPEC_FROMTOP) {
                   ^
/datasets/git/pathspec.c:455:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        } else if (magic & PATHSPEC_FROMTOP) {
                           ^
/datasets/git/./pathspec.h:7:27: note: expanded from macro 'PATHSPEC_FROMTOP'
#define PATHSPEC_FROMTOP        (1<<0)
                                 ^
/datasets/git/pathspec.c:463:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!hint_path)
                                       ^
                                        {
/datasets/git/pathspec.c:471:14: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        item->len = strlen(item->match);
                    ^
/datasets/git/pathspec.c:478:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((flags & PATHSPEC_PREFIX_ORIGIN) &&
             ^
/datasets/git/pathspec.c:478:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((flags & PATHSPEC_PREFIX_ORIGIN) &&
                     ^
/datasets/git/./pathspec.h:70:33: note: expanded from macro 'PATHSPEC_PREFIX_ORIGIN'
#define PATHSPEC_PREFIX_ORIGIN (1<<4)
                                ^
/datasets/git/pathspec.c:480:17: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                struct strbuf sb = STRBUF_INIT;
                              ^
/datasets/git/pathspec.c:491:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (magic & PATHSPEC_LITERAL) {
            ^
/datasets/git/pathspec.c:491:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (magic & PATHSPEC_LITERAL) {
                    ^
/datasets/git/./pathspec.h:9:27: note: expanded from macro 'PATHSPEC_LITERAL'
#define PATHSPEC_LITERAL        (1<<2)
                                 ^
/datasets/git/pathspec.c:495:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (item->nowildcard_len < prefixlen)
                                                     ^
                                                      {
/datasets/git/pathspec.c:500:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (magic & PATHSPEC_GLOB) {
            ^
/datasets/git/pathspec.c:500:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (magic & PATHSPEC_GLOB) {
                    ^
/datasets/git/./pathspec.h:10:25: note: expanded from macro 'PATHSPEC_GLOB'
#define PATHSPEC_GLOB           (1<<3)
                                 ^
/datasets/git/pathspec.c:508:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    no_wildcard(item->match + item->nowildcard_len + 1))
                                                                        ^
                                                                         {
/datasets/git/pathspec.c:509:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        item->flags |= PATHSPEC_ONESTAR;
                        ^~~~~~~~~~~
/datasets/git/pathspec.c:519:42: warning: parameter name 'a_' is too short, expected at least 3 characters [readability-identifier-length]
static int pathspec_item_cmp(const void *a_, const void *b_)
                                         ^
/datasets/git/pathspec.c:519:58: warning: parameter name 'b_' is too short, expected at least 3 characters [readability-identifier-length]
static int pathspec_item_cmp(const void *a_, const void *b_)
                                                         ^
/datasets/git/pathspec.c:521:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct pathspec_item *a, *b;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pathspec.c:521:24: warning: variable 'a' is not initialized [cppcoreguidelines-init-variables]
        struct pathspec_item *a, *b;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pathspec.c:521:24: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pathspec.c:521:28: warning: variable 'b' is not initialized [cppcoreguidelines-init-variables]
        struct pathspec_item *a, *b;
                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pathspec.c:521:28: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pathspec.c:531:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/pathspec.c:532:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/pathspec.c:532:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pathspec.c:533:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ARRAY_SIZE(pathspec_magic); i++) {
        ^
/datasets/git/pathspec.c:534:32: warning: variable name 'm' is too short, expected at least 3 characters [readability-identifier-length]
                const struct pathspec_magic *m = pathspec_magic + i;
                                             ^
/datasets/git/pathspec.c:535:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(magic & m->bit))
                                      ^
                                       {
/datasets/git/pathspec.c:537:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (sb.len)
                           ^
                            {
/datasets/git/pathspec.c:540:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (m->mnemonic)
                                ^
                                 {
/datasets/git/pathspec.c:543:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/pathspec.c:555:6: warning: function 'parse_pathspec' has cognitive complexity of 31 (threshold 25) [readability-function-cognitive-complexity]
void parse_pathspec(struct pathspec *pathspec,
     ^
/datasets/git/pathspec.c:560:27: note: +1, including nesting penalty of 0, nesting level increased to 1
        const char *entry = argv ? *argv : NULL;
                                 ^
/datasets/git/pathspec.c:565:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (flags & PATHSPEC_MAXDEPTH_VALID)
        ^
/datasets/git/pathspec.c:569:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!entry && !prefix)
        ^
/datasets/git/pathspec.c:569:13: note: +1
        if (!entry && !prefix)
                   ^
/datasets/git/pathspec.c:572:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((flags & PATHSPEC_PREFER_CWD) &&
        ^
/datasets/git/pathspec.c:572:36: note: +1
        if ((flags & PATHSPEC_PREFER_CWD) &&
                                          ^
/datasets/git/pathspec.c:577:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!entry) {
        ^
/datasets/git/pathspec.c:578:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (flags & PATHSPEC_PREFER_FULL)
                ^
/datasets/git/pathspec.c:581:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!(flags & PATHSPEC_PREFER_CWD))
                ^
/datasets/git/pathspec.c:594:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (argv[n]) {
        ^
/datasets/git/pathspec.c:595:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*argv[n] == '\0')
                ^
/datasets/git/pathspec.c:604:21: note: +1, including nesting penalty of 0, nesting level increased to 1
        prefixlen = prefix ? strlen(prefix) : 0;
                           ^
/datasets/git/pathspec.c:606:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < n; i++) {
        ^
/datasets/git/pathspec.c:611:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (item[i].magic & PATHSPEC_EXCLUDE)
                ^
/datasets/git/pathspec.c:613:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (item[i].magic & magic_mask)
                ^
/datasets/git/pathspec.c:616:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((flags & PATHSPEC_SYMLINK_LEADING_PATH) &&
                ^
/datasets/git/pathspec.c:616:47: note: +1
                if ((flags & PATHSPEC_SYMLINK_LEADING_PATH) &&
                                                            ^
/datasets/git/pathspec.c:621:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (item[i].nowildcard_len < item[i].len)
                ^
/datasets/git/pathspec.c:630:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (nr_exclude == n) {
        ^
/datasets/git/pathspec.c:631:47: note: +2, including nesting penalty of 1, nesting level increased to 2
                int plen = (!(flags & PATHSPEC_PREFER_CWD)) ? 0 : prefixlen;
                                                            ^
/datasets/git/pathspec.c:636:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (pathspec->magic & PATHSPEC_MAXDEPTH) {
        ^
/datasets/git/pathspec.c:637:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (flags & PATHSPEC_KEEP_ORDER)
                ^
/datasets/git/pathspec.c:556:7: warning: 2 adjacent parameters of 'parse_pathspec' of similar type ('unsigned int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                    unsigned magic_mask, unsigned flags,
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pathspec.c:556:16: note: the first parameter in the range is 'magic_mask'
                    unsigned magic_mask, unsigned flags,
                             ^~~~~~~~~~
/datasets/git/pathspec.c:556:37: note: the last parameter in the range is 'flags'
                    unsigned magic_mask, unsigned flags,
                                                  ^~~~~
/datasets/git/pathspec.c:559:24: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct pathspec_item *item;
                              ^
                                   = NULL
/datasets/git/pathspec.c:561:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, n, prefixlen, nr_exclude = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pathspec.c:561:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, n, prefixlen, nr_exclude = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pathspec.c:561:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pathspec.c:561:9: warning: variable 'n' is not initialized [cppcoreguidelines-init-variables]
        int i, n, prefixlen, nr_exclude = 0;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pathspec.c:561:9: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pathspec.c:561:12: warning: variable 'prefixlen' is not initialized [cppcoreguidelines-init-variables]
        int i, n, prefixlen, nr_exclude = 0;
                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pathspec.c:563:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(pathspec, 0, sizeof(*pathspec));
        ^~~~~~
/datasets/git/pathspec.c:563:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(pathspec, 0, sizeof(*pathspec));
        ^~~~~~
/datasets/git/pathspec.c:565:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & PATHSPEC_MAXDEPTH_VALID)
            ^
/datasets/git/pathspec.c:565:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & PATHSPEC_MAXDEPTH_VALID)
                    ^
/datasets/git/./pathspec.h:67:34: note: expanded from macro 'PATHSPEC_MAXDEPTH_VALID'
#define PATHSPEC_MAXDEPTH_VALID (1<<2) /* max_depth field is valid */
                                 ^
/datasets/git/pathspec.c:565:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & PATHSPEC_MAXDEPTH_VALID)
                                            ^
                                             {
/datasets/git/pathspec.c:566:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                pathspec->magic |= PATHSPEC_MAXDEPTH;
                ^
/datasets/git/pathspec.c:566:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                pathspec->magic |= PATHSPEC_MAXDEPTH;
                                   ^
/datasets/git/./pathspec.h:8:28: note: expanded from macro 'PATHSPEC_MAXDEPTH'
#define PATHSPEC_MAXDEPTH       (1<<1)
                                 ^
/datasets/git/pathspec.c:569:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!entry && !prefix)
                              ^
                               {
/datasets/git/pathspec.c:572:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((flags & PATHSPEC_PREFER_CWD) &&
             ^
/datasets/git/pathspec.c:572:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((flags & PATHSPEC_PREFER_CWD) &&
                     ^
/datasets/git/./pathspec.h:65:30: note: expanded from macro 'PATHSPEC_PREFER_CWD'
#define PATHSPEC_PREFER_CWD (1<<0) /* No args means match cwd */
                             ^
/datasets/git/pathspec.c:573:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            (flags & PATHSPEC_PREFER_FULL))
             ^
/datasets/git/pathspec.c:573:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            (flags & PATHSPEC_PREFER_FULL))
                     ^
/datasets/git/./pathspec.h:66:31: note: expanded from macro 'PATHSPEC_PREFER_FULL'
#define PATHSPEC_PREFER_FULL (1<<1) /* No args means match everything */
                              ^
/datasets/git/pathspec.c:573:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            (flags & PATHSPEC_PREFER_FULL))
                                           ^
                                            {
/datasets/git/pathspec.c:578:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flags & PATHSPEC_PREFER_FULL)
                    ^
/datasets/git/pathspec.c:578:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flags & PATHSPEC_PREFER_FULL)
                            ^
/datasets/git/./pathspec.h:66:31: note: expanded from macro 'PATHSPEC_PREFER_FULL'
#define PATHSPEC_PREFER_FULL (1<<1) /* No args means match everything */
                              ^
/datasets/git/pathspec.c:578:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (flags & PATHSPEC_PREFER_FULL)
                                                 ^
                                                  {
/datasets/git/pathspec.c:581:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(flags & PATHSPEC_PREFER_CWD))
                      ^
/datasets/git/pathspec.c:581:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(flags & PATHSPEC_PREFER_CWD))
                              ^
/datasets/git/./pathspec.h:65:30: note: expanded from macro 'PATHSPEC_PREFER_CWD'
#define PATHSPEC_PREFER_CWD (1<<0) /* No args means match cwd */
                             ^
/datasets/git/pathspec.c:581:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(flags & PATHSPEC_PREFER_CWD))
                                                   ^
                                                    {
/datasets/git/pathspec.c:587:38: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                item->nowildcard_len = item->len = strlen(prefix);
                                                   ^
/datasets/git/pathspec.c:594:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (argv[n]) {
        ^
/datasets/git/pathspec.c:595:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*argv[n] == '\0')
                                     ^
                                      {
/datasets/git/pathspec.c:604:23: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        prefixlen = prefix ? strlen(prefix) : 0;
                             ^
/datasets/git/pathspec.c:606:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < n; i++) {
        ^
/datasets/git/pathspec.c:611:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (item[i].magic & PATHSPEC_EXCLUDE)
                    ^
/datasets/git/pathspec.c:611:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (item[i].magic & PATHSPEC_EXCLUDE)
                                    ^
/datasets/git/./pathspec.h:12:27: note: expanded from macro 'PATHSPEC_EXCLUDE'
#define PATHSPEC_EXCLUDE        (1<<5)
                                 ^
/datasets/git/pathspec.c:611:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (item[i].magic & PATHSPEC_EXCLUDE)
                                                     ^
                                                      {
/datasets/git/pathspec.c:613:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (item[i].magic & magic_mask)
                                               ^
                                                {
/datasets/git/pathspec.c:616:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((flags & PATHSPEC_SYMLINK_LEADING_PATH) &&
                     ^
/datasets/git/pathspec.c:616:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((flags & PATHSPEC_SYMLINK_LEADING_PATH) &&
                             ^
/datasets/git/./pathspec.h:69:40: note: expanded from macro 'PATHSPEC_SYMLINK_LEADING_PATH'
#define PATHSPEC_SYMLINK_LEADING_PATH (1<<3)
                                       ^
/datasets/git/pathspec.c:621:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (item[i].nowildcard_len < item[i].len)
                                                         ^
                                                          {
/datasets/git/pathspec.c:631:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                int plen = (!(flags & PATHSPEC_PREFER_CWD)) ? 0 : prefixlen;
                              ^
/datasets/git/pathspec.c:631:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                int plen = (!(flags & PATHSPEC_PREFER_CWD)) ? 0 : prefixlen;
                                      ^
/datasets/git/./pathspec.h:65:30: note: expanded from macro 'PATHSPEC_PREFER_CWD'
#define PATHSPEC_PREFER_CWD (1<<0) /* No args means match cwd */
                             ^
/datasets/git/pathspec.c:636:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (pathspec->magic & PATHSPEC_MAXDEPTH) {
            ^
/datasets/git/pathspec.c:636:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (pathspec->magic & PATHSPEC_MAXDEPTH) {
                              ^
/datasets/git/./pathspec.h:8:28: note: expanded from macro 'PATHSPEC_MAXDEPTH'
#define PATHSPEC_MAXDEPTH       (1<<1)
                                 ^
/datasets/git/pathspec.c:637:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flags & PATHSPEC_KEEP_ORDER)
                    ^
/datasets/git/pathspec.c:637:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flags & PATHSPEC_KEEP_ORDER)
                            ^
/datasets/git/./pathspec.h:71:30: note: expanded from macro 'PATHSPEC_KEEP_ORDER'
#define PATHSPEC_KEEP_ORDER (1<<5)
                             ^
/datasets/git/pathspec.c:637:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (flags & PATHSPEC_KEEP_ORDER)
                                                ^
                                                 {
/datasets/git/pathspec.c:644:21: warning: 2 adjacent parameters of 'parse_pathspec_file' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                         unsigned flags, const char *prefix,
                                         ^~~~~~~~~~~~~~~~~~~
/datasets/git/pathspec.c:644:33: note: the first parameter in the range is 'prefix'
                         unsigned flags, const char *prefix,
                                                     ^~~~~~
/datasets/git/pathspec.c:645:17: note: the last parameter in the range is 'file'
                         const char *file, int nul_term_line)
                                     ^~~~
/datasets/git/pathspec.c:652:8: warning: variable 'in' is not initialized [cppcoreguidelines-init-variables]
        FILE *in;
              ^
                 = NULL
/datasets/git/pathspec.c:652:8: warning: variable name 'in' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pathspec.c:654:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(file, "-"))
                               ^
                                {
/datasets/git/pathspec.c:656:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/pathspec.c:659:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (getline_fn(&buf, in) != EOF) {
        ^
/datasets/git/pathspec.c:659:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'getline_fn' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (getline_fn(&buf, in) != EOF) {
               ^
/datasets/git/pathspec.c:662:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (unquote_c_style(&unquoted, buf.buf, NULL))
                                                                      ^
                                                                       {
/datasets/git/pathspec.c:672:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (in != stdin)
                        ^
                         {
/datasets/git/pathspec.c:673:3: warning: the value returned by this function should be used [cert-err33-c]
                fclose(in);
                ^~~~~~~~~~
/datasets/git/pathspec.c:673:3: note: cast the expression to void to silence this warning
/datasets/git/pathspec.c:681:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, j;
        ^~~~~~~~~
/datasets/git/./pathspec.h:31:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        int nr;
        ^
/datasets/git/pathspec.c:681:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, j;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pathspec.c:681:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pathspec.c:681:9: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int i, j;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pathspec.c:681:9: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pathspec.c:688:3: note: inferred assignment of ID-dependent value from ID-dependent member items [altera-id-dependent-backward-branch]
                struct pathspec_item *d = &dst->items[i];
                ^
/datasets/git/pathspec.c:687:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < dst->nr; i++) {
                    ^
/datasets/git/pathspec.c:688:25: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
                struct pathspec_item *d = &dst->items[i];
                                      ^
/datasets/git/pathspec.c:689:25: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
                struct pathspec_item *s = &src->items[i];
                                      ^
/datasets/git/pathspec.c:696:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (j = 0; j < d->attr_match_nr; j++) {
                ^
/datasets/git/pathspec.c:696:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'd' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (j = 0; j < d->attr_match_nr; j++) {
                            ^
/datasets/git/pathspec.c:707:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, j;
        ^~~~~~~~~
/datasets/git/./pathspec.h:31:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        int nr;
        ^
/datasets/git/pathspec.c:707:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, j;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pathspec.c:707:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pathspec.c:707:9: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int i, j;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pathspec.c:707:9: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pathspec.c:709:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < pathspec->nr; i++) {
                    ^
/datasets/git/pathspec.c:713:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (j = 0; j < pathspec->items[i].attr_match_nr; j++)
                ^
/datasets/git/pathspec.c:713:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (j = 0; j < pathspec->items[i].attr_match_nr; j++)
                                                                      ^
                                                                       {
/datasets/git/pathspec.c:717:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pathspec->items[i].attr_check)
                                                  ^
                                                   {
/datasets/git/pathspec.c:721:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(pathspec->items);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/pathspec.c:729:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/pathspec.c:729:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pathspec.c:732:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (name[namelen])
                          ^
                           {
/datasets/git/pathspec.c:739:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < item->attr_match_nr; i++) {
        ^
/datasets/git/pathspec.c:740:15: warning: variable 'value' is not initialized [cppcoreguidelines-init-variables]
                const char *value;
                            ^
                                  = NULL
/datasets/git/pathspec.c:741:7: warning: variable 'matched' is not initialized [cppcoreguidelines-init-variables]
                int matched;
                    ^
                            = 0
/datasets/git/pathspec.c:742:24: warning: variable 'match_mode' is not initialized [cppcoreguidelines-init-variables]
                enum attr_match_mode match_mode;
                                     ^
/datasets/git/pathspec.c:747:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ATTR_TRUE(value))
                                     ^
                                      {
/datasets/git/pathspec.c:749:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (ATTR_FALSE(value))
                                           ^
                                            {
/datasets/git/pathspec.c:751:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (ATTR_UNSET(value))
                                           ^
                                            {
/datasets/git/pathspec.c:753:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/pathspec.c:756:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!matched)
                             ^
                              {
/datasets/git/pathspec.c:763:5: warning: function 'pathspec_needs_expanded_index' has cognitive complexity of 30 (threshold 25) [readability-function-cognitive-complexity]
int pathspec_needs_expanded_index(struct index_state *istate,
    ^
/datasets/git/pathspec.c:773:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!istate->sparse_index)
        ^
/datasets/git/pathspec.c:780:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (pathspec->magic)
        ^
/datasets/git/pathspec.c:783:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < pathspec->nr; i++) {
        ^
/datasets/git/pathspec.c:796:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (item.nowildcard_len < item.len) {
                ^
/datasets/git/pathspec.c:808:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (strspn(item.original + item.nowildcard_len, "*") == item.len - item.nowildcard_len &&
                        ^
/datasets/git/pathspec.c:808:91: note: +1
                        if (strspn(item.original + item.nowildcard_len, "*") == item.len - item.nowildcard_len &&
                                                                                                               ^
/datasets/git/pathspec.c:812:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (pos = 0; pos < istate->cache_nr; pos++) {
                        ^
/datasets/git/pathspec.c:815:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!S_ISSPARSEDIR(ce->ce_mode))
                                ^
/datasets/git/pathspec.c:823:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (item.nowildcard_len > ce_namelen(ce) &&
                                ^
/datasets/git/pathspec.c:823:46: note: +1
                                if (item.nowildcard_len > ce_namelen(ce) &&
                                                                         ^
/datasets/git/pathspec.c:834:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!strncmp(item.original, ce->name, item.nowildcard_len) &&
                                ^
/datasets/git/pathspec.c:834:64: note: +1
                                if (!strncmp(item.original, ce->name, item.nowildcard_len) &&
                                                                                           ^
/datasets/git/pathspec.c:840:10: note: +1, nesting level increased to 2
                } else if (!path_in_cone_mode_sparse_checkout(item.original, istate) &&
                       ^
/datasets/git/pathspec.c:840:72: note: +1
                } else if (!path_in_cone_mode_sparse_checkout(item.original, istate) &&
                                                                                     ^
/datasets/git/pathspec.c:844:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (res > 0)
                ^
/datasets/git/pathspec.c:766:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned int i, pos;
        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/pathspec.c:766:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i, pos;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pathspec.c:766:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pathspec.c:766:18: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i, pos;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pathspec.c:773:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!istate->sparse_index)
                                  ^
                                   {
/datasets/git/pathspec.c:780:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pathspec->magic)
                            ^
                             {
/datasets/git/pathspec.c:783:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < pathspec->nr; i++) {
                    ^
/datasets/git/pathspec.c:809:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            path_in_cone_mode_sparse_checkout(item.original, istate))
                                                                                     ^
                                                                                      {
/datasets/git/pathspec.c:812:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (pos = 0; pos < istate->cache_nr; pos++) {
                        ^
/datasets/git/pathspec.c:813:25: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                                struct cache_entry *ce = istate->cache[pos];
                                                    ^
/datasets/git/pathspec.c:815:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!S_ISSPARSEDIR(ce->ce_mode))
                                                                ^
                                                                 {
/datasets/git/pathspec.c:841:40: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                           !matches_skip_worktree(pathspec, i, &skip_worktree_seen))
                                                            ^
/datasets/git/pathspec.c:841:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                           !matches_skip_worktree(pathspec, i, &skip_worktree_seen))
                                                                                    ^
                                                                                     {
/datasets/git/pathspec.c:844:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (res > 0)
                            ^
                             {
pkt-line.c:5:6: warning: variable 'packet_buffer' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
char packet_buffer[LARGE_PACKET_MAX];
     ^
pkt-line.c:6:20: warning: variable 'packet_trace_prefix' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *packet_trace_prefix = "git";
                   ^
pkt-line.c:7:25: warning: variable 'trace_packet' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct trace_key trace_packet = TRACE_KEY_INIT(PACKET);
                        ^
pkt-line.c:8:25: warning: variable 'trace_pack' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct trace_key trace_pack = TRACE_KEY_INIT(PACKFILE);
                        ^
/datasets/git/pkt-line.c:20:47: warning: 2 adjacent parameters of 'packet_trace_pack' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int packet_trace_pack(const char *buf, unsigned int len, int sideband)
                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pkt-line.c:20:60: note: the first parameter in the range is 'len'
static int packet_trace_pack(const char *buf, unsigned int len, int sideband)
                                                           ^~~
/datasets/git/pkt-line.c:20:69: note: the last parameter in the range is 'sideband'
static int packet_trace_pack(const char *buf, unsigned int len, int sideband)
                                                                    ^~~~~~~~
/datasets/git/pkt-line.c:20:65: note: 'unsigned int' and 'int' may be implicitly converted
static int packet_trace_pack(const char *buf, unsigned int len, int sideband)
                                                                ^
/datasets/git/pkt-line.c:25:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else if (len && *buf == '\1') {
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pkt-line.c:34:43: warning: 2 adjacent parameters of 'packet_trace' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void packet_trace(const char *buf, unsigned int len, int write)
                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pkt-line.c:34:56: note: the first parameter in the range is 'len'
static void packet_trace(const char *buf, unsigned int len, int write)
                                                       ^~~
/datasets/git/pkt-line.c:34:65: note: the last parameter in the range is 'write'
static void packet_trace(const char *buf, unsigned int len, int write)
                                                                ^~~~~
/datasets/git/pkt-line.c:34:61: note: 'unsigned int' and 'int' may be implicitly converted
static void packet_trace(const char *buf, unsigned int len, int write)
                                                            ^
/datasets/git/pkt-line.c:36:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/pkt-line.c:36:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pkt-line.c:38:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        static int in_pack, sideband;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pkt-line.c:40:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!trace_want(&trace_packet) && !trace_want(&trace_pack))
                                                                   ^
                                                                    {
/datasets/git/pkt-line.c:44:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (packet_trace_pack(buf, len, sideband))
                                                          ^
                                                           {
/datasets/git/pkt-line.c:59:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!trace_want(&trace_packet))
                                       ^
                                        {
/datasets/git/pkt-line.c:63:24: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        strbuf_init(&out, len+32);
                              ^
/datasets/git/pkt-line.c:69:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < len; i++) {
        ^
/datasets/git/pkt-line.c:69:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < len; i++) {
                    ^
/datasets/git/pkt-line.c:71:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (buf[i] == '\n')
                                   ^
                                    {
/datasets/git/pkt-line.c:73:17: warning: 0x20 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (buf[i] >= 0x20 && buf[i] <= 0x7e)
                              ^
/datasets/git/pkt-line.c:73:35: warning: 0x7e is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (buf[i] >= 0x20 && buf[i] <= 0x7e)
                                                ^
/datasets/git/pkt-line.c:73:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (buf[i] >= 0x20 && buf[i] <= 0x7e)
                                                     ^
                                                      {
/datasets/git/pkt-line.c:75:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/pkt-line.c:80:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_strbuf(&trace_packet, &out);
        ^
/datasets/git/./trace.h:197:2: note: expanded from macro 'trace_strbuf'
        do {                                                                \
        ^
/datasets/git/pkt-line.c:88:23: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
void packet_flush(int fd)
                      ^
/datasets/git/pkt-line.c:91:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_in_full(fd, "0000", 4) < 0)
                                             ^
                                              {
/datasets/git/pkt-line.c:95:23: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
void packet_delim(int fd)
                      ^
/datasets/git/pkt-line.c:98:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_in_full(fd, "0001", 4) < 0)
                                             ^
                                              {
/datasets/git/pkt-line.c:102:30: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
void packet_response_end(int fd)
                             ^
/datasets/git/pkt-line.c:105:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_in_full(fd, "0002", 4) < 0)
                                             ^
                                              {
/datasets/git/pkt-line.c:109:29: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
int packet_flush_gently(int fd)
                            ^
/datasets/git/pkt-line.c:112:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_in_full(fd, "0000", 4) < 0)
                                             ^
                                              {
/datasets/git/pkt-line.c:134:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        buf[0] = hex(size >> 12);
                 ^
/datasets/git/pkt-line.c:133:26: note: expanded from macro 'hex'
        #define hex(a) (hexchar[(a) & 15])
                                ^~~
/datasets/git/pkt-line.c:134:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        buf[0] = hex(size >> 12);
                     ^
/datasets/git/pkt-line.c:133:27: note: expanded from macro 'hex'
        #define hex(a) (hexchar[(a) & 15])
                                 ^
/datasets/git/pkt-line.c:135:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        buf[1] = hex(size >> 8);
                 ^
/datasets/git/pkt-line.c:133:26: note: expanded from macro 'hex'
        #define hex(a) (hexchar[(a) & 15])
                                ^~~
/datasets/git/pkt-line.c:135:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        buf[1] = hex(size >> 8);
                     ^
/datasets/git/pkt-line.c:133:27: note: expanded from macro 'hex'
        #define hex(a) (hexchar[(a) & 15])
                                 ^
/datasets/git/pkt-line.c:136:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        buf[2] = hex(size >> 4);
                 ^
/datasets/git/pkt-line.c:133:26: note: expanded from macro 'hex'
        #define hex(a) (hexchar[(a) & 15])
                                ^~~
/datasets/git/pkt-line.c:136:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        buf[2] = hex(size >> 4);
                     ^
/datasets/git/pkt-line.c:133:27: note: expanded from macro 'hex'
        #define hex(a) (hexchar[(a) & 15])
                                 ^
/datasets/git/pkt-line.c:137:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        buf[3] = hex(size);
                 ^
/datasets/git/pkt-line.c:133:26: note: expanded from macro 'hex'
        #define hex(a) (hexchar[(a) & 15])
                                ^~~
/datasets/git/pkt-line.c:141:47: warning: 2 adjacent parameters of 'format_packet' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void format_packet(struct strbuf *out, const char *prefix,
                                              ^~~~~~~~~~~~~~~~~~~
/datasets/git/pkt-line.c:141:59: note: the first parameter in the range is 'prefix'
static void format_packet(struct strbuf *out, const char *prefix,
                                                          ^~~~~~
/datasets/git/pkt-line.c:142:18: note: the last parameter in the range is 'fmt'
                          const char *fmt, va_list args)
                                      ^~~
/datasets/git/pkt-line.c:144:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t orig_len, n;
        ^~~~~~~~~~~~~~~~~~~
/datasets/git/pkt-line.c:144:9: warning: variable 'orig_len' is not initialized [cppcoreguidelines-init-variables]
        size_t orig_len, n;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pkt-line.c:144:19: warning: variable 'n' is not initialized [cppcoreguidelines-init-variables]
        size_t orig_len, n;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pkt-line.c:144:19: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pkt-line.c:152:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (n > LARGE_PACKET_MAX)
                                 ^
                                  {
/datasets/git/pkt-line.c:155:41: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        set_packet_header(&out->buf[orig_len], n);
                                               ^
/datasets/git/pkt-line.c:159:31: warning: 2 adjacent parameters of 'packet_write_fmt_1' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int packet_write_fmt_1(int fd, int gently, const char *prefix,
                              ^~~~~~~~~~~~~~~~~~
/datasets/git/pkt-line.c:159:35: note: the first parameter in the range is 'fd'
static int packet_write_fmt_1(int fd, int gently, const char *prefix,
                                  ^~
/datasets/git/pkt-line.c:159:43: note: the last parameter in the range is 'gently'
static int packet_write_fmt_1(int fd, int gently, const char *prefix,
                                          ^~~~~~
/datasets/git/pkt-line.c:159:35: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
static int packet_write_fmt_1(int fd, int gently, const char *prefix,
                                  ^
/datasets/git/pkt-line.c:177:27: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
void packet_write_fmt(int fd, const char *fmt, ...)
                          ^
/datasets/git/pkt-line.c:186:33: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
int packet_write_fmt_gently(int fd, const char *fmt, ...)
                                ^
/datasets/git/pkt-line.c:188:6: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int status;
            ^
                   = 0
/datasets/git/pkt-line.c:201:9: warning: variable 'packet_size' is not initialized [cppcoreguidelines-init-variables]
        size_t packet_size;
               ^
                           = 0
/datasets/git/pkt-line.c:211:28: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        set_packet_header(header, packet_size);
                                  ^
/datasets/git/pkt-line.c:222:50: warning: function is not thread safe [concurrency-mt-unsafe]
                strbuf_addf(err, _("packet write failed: %s"), strerror(errno));
                                                               ^
/datasets/git/pkt-line.c:242:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (do_packet_write(fd_out, buf, size, &err))
                                                     ^
                                                      {
/datasets/git/pkt-line.c:246:26: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
void packet_fwrite(FILE *f, const char *buf, size_t size)
                         ^
/datasets/git/pkt-line.c:248:9: warning: variable 'packet_size' is not initialized [cppcoreguidelines-init-variables]
        size_t packet_size;
               ^
                           = 0
/datasets/git/pkt-line.c:251:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (size > LARGE_PACKET_DATA_MAX)
                                         ^
                                          {
/datasets/git/pkt-line.c:257:28: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        set_packet_header(header, packet_size);
                                  ^
/datasets/git/pkt-line.c:262:30: warning: parameter name 'fh' is too short, expected at least 3 characters [readability-identifier-length]
void packet_fwrite_fmt(FILE *fh, const char *fmt, ...)
                             ^
/datasets/git/pkt-line.c:276:26: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
void packet_fflush(FILE *f)
                         ^
/datasets/git/pkt-line.c:292:39: warning: 2 adjacent parameters of 'write_packetized_from_fd_no_flush' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
int write_packetized_from_fd_no_flush(int fd_in, int fd_out)
                                      ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/pkt-line.c:292:43: note: the first parameter in the range is 'fd_in'
int write_packetized_from_fd_no_flush(int fd_in, int fd_out)
                                          ^~~~~
/datasets/git/pkt-line.c:292:54: note: the last parameter in the range is 'fd_out'
int write_packetized_from_fd_no_flush(int fd_in, int fd_out)
                                                     ^~~~~~
/datasets/git/pkt-line.c:295:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int err = 0;
        ^
/datasets/git/pkt-line.c:296:10: warning: variable 'bytes_to_write' is not initialized [cppcoreguidelines-init-variables]
        ssize_t bytes_to_write;
                ^
                               = 0
/datasets/git/pkt-line.c:298:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (!err) {
        ^
/datasets/git/pkt-line.c:298:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'err' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (!err) {
               ^
/datasets/git/pkt-line.c:304:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (bytes_to_write == 0)
                                        ^
                                         {
/datasets/git/pkt-line.c:312:66: warning: 2 adjacent parameters of 'write_packetized_from_buf_no_flush_count' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
int write_packetized_from_buf_no_flush_count(const char *src_in, size_t len,
                                                                 ^~~~~~~~~~~
/datasets/git/pkt-line.c:312:73: note: the first parameter in the range is 'len'
int write_packetized_from_buf_no_flush_count(const char *src_in, size_t len,
                                                                        ^~~
/datasets/git/pkt-line.c:313:15: note: the last parameter in the range is 'fd_out'
                                             int fd_out, int *packet_counter)
                                                 ^~~~~~
/datasets/git/pkt-line.c:312:66: note: 
int write_packetized_from_buf_no_flush_count(const char *src_in, size_t len,
                                                                 ^
/datasets/git/pkt-line.c:313:11: note: 'size_t' and 'int' may be implicitly converted: 'size_t' (as 'unsigned long') -> 'int', 'int' -> 'size_t' (as 'unsigned long')
                                             int fd_out, int *packet_counter)
                                             ^
/datasets/git/pkt-line.c:315:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int err = 0;
        ^
/datasets/git/pkt-line.c:317:9: warning: variable 'bytes_to_write' is not initialized [cppcoreguidelines-init-variables]
        size_t bytes_to_write;
               ^
                              = 0
/datasets/git/pkt-line.c:319:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (!err) {
        ^
/datasets/git/pkt-line.c:319:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'err' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (!err) {
               ^
/datasets/git/pkt-line.c:320:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((len - bytes_written) > LARGE_PACKET_DATA_MAX)
                                                                  ^
                                                                   {
/datasets/git/pkt-line.c:322:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/pkt-line.c:324:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (bytes_to_write == 0)
                                        ^
                                         {
/datasets/git/pkt-line.c:328:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (packet_counter)
                                   ^
                                    {
/datasets/git/pkt-line.c:334:32: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
static int get_packet_data(int fd, char **src_buf, size_t *src_size,
                               ^
/datasets/git/pkt-line.c:335:18: warning: 2 adjacent parameters of 'get_packet_data' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                           void *dst, unsigned size, int options)
                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pkt-line.c:335:27: note: the first parameter in the range is 'size'
                           void *dst, unsigned size, int options)
                                               ^~~~
/datasets/git/pkt-line.c:335:37: note: the last parameter in the range is 'options'
                           void *dst, unsigned size, int options)
                                                         ^~~~~~~
/datasets/git/pkt-line.c:335:33: note: 'unsigned int' and 'int' may be implicitly converted
                           void *dst, unsigned size, int options)
                                                     ^
/datasets/git/pkt-line.c:337:10: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        ssize_t ret;
                ^
                    = 0
/datasets/git/pkt-line.c:339:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fd >= 0 && src_buf && *src_buf)
                                           ^
                                            {
/datasets/git/pkt-line.c:344:28: warning: narrowing conversion from 'unsigned long' to signed type 'ssize_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                ret = size < *src_size ? size : *src_size;
                                         ^
/datasets/git/pkt-line.c:344:35: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'ssize_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                ret = size < *src_size ? size : *src_size;
                                                ^
/datasets/git/pkt-line.c:345:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(dst, *src_buf, ret);
                ^~~~~~
/datasets/git/pkt-line.c:345:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(dst, *src_buf, ret);
                ^~~~~~
/datasets/git/pkt-line.c:351:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (options & PACKET_READ_GENTLE_ON_READ_ERROR)
                            ^~~~~~~
/datasets/git/pkt-line.c:351:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (options & PACKET_READ_GENTLE_ON_READ_ERROR)
                                      ^
/datasets/git/./pkt-line.h:87:43: note: expanded from macro 'PACKET_READ_GENTLE_ON_READ_ERROR'
#define PACKET_READ_GENTLE_ON_READ_ERROR (1u<<3)
                                          ^   ~
/datasets/git/pkt-line.c:351:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (options & PACKET_READ_GENTLE_ON_READ_ERROR)
                                                                       ^
                                                                        {
/datasets/git/pkt-line.c:359:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (options & PACKET_READ_GENTLE_ON_EOF)
                    ^~~~~~~
/datasets/git/pkt-line.c:359:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (options & PACKET_READ_GENTLE_ON_EOF)
                              ^
/datasets/git/./pkt-line.h:84:43: note: expanded from macro 'PACKET_READ_GENTLE_ON_EOF'
#define PACKET_READ_GENTLE_ON_EOF        (1u<<0)
                                          ^   ~
/datasets/git/pkt-line.c:359:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (options & PACKET_READ_GENTLE_ON_EOF)
                                                        ^
                                                         {
/datasets/git/pkt-line.c:362:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (options & PACKET_READ_GENTLE_ON_READ_ERROR)
                    ^~~~~~~
/datasets/git/pkt-line.c:362:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (options & PACKET_READ_GENTLE_ON_READ_ERROR)
                              ^
/datasets/git/./pkt-line.h:87:43: note: expanded from macro 'PACKET_READ_GENTLE_ON_READ_ERROR'
#define PACKET_READ_GENTLE_ON_READ_ERROR (1u<<3)
                                          ^   ~
/datasets/git/pkt-line.c:362:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (options & PACKET_READ_GENTLE_ON_READ_ERROR)
                                                               ^
                                                                {
/datasets/git/pkt-line.c:367:9: warning: narrowing conversion from 'ssize_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return ret;
               ^
/datasets/git/pkt-line.c:373:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return (val < 0) ? val : (val << 8) | hex2chr(lenbuf_hex + 2);
                                 ^~~~~~~~~~
/datasets/git/pkt-line.c:373:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return (val < 0) ? val : (val << 8) | hex2chr(lenbuf_hex + 2);
                                  ^~~
/datasets/git/pkt-line.c:373:35: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        return (val < 0) ? val : (val << 8) | hex2chr(lenbuf_hex + 2);
                                         ^
/datasets/git/pkt-line.c:379:8: warning: variable 'path' is not initialized [cppcoreguidelines-init-variables]
        char *path;
              ^
                   = NULL
/datasets/git/pkt-line.c:380:6: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int len;
            ^
                = 0
/datasets/git/pkt-line.c:385:8: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        len = strspn(buffer, "0123456789abcdefABCDEF");
              ^
/datasets/git/pkt-line.c:387:15: warning: 40 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (!(len == 40 || len == 64) || buffer[len] != ' ')
                     ^
/datasets/git/pkt-line.c:387:28: warning: 64 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (!(len == 40 || len == 64) || buffer[len] != ' ')
                                  ^
/datasets/git/pkt-line.c:387:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(len == 40 || len == 64) || buffer[len] != ' ')
                                                            ^
                                                             {
/datasets/git/pkt-line.c:391:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!path)
                  ^
                   {
/datasets/git/pkt-line.c:395:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!path || !*(path + 1))
                                  ^
                                   {
/datasets/git/pkt-line.c:402:53: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
enum packet_read_status packet_read_with_status(int fd, char **src_buffer,
                                                    ^
/datasets/git/pkt-line.c:407:6: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int len;
            ^
                = 0
/datasets/git/pkt-line.c:409:8: warning: variable 'uri_path_start' is not initialized [cppcoreguidelines-init-variables]
        char *uri_path_start;
              ^
                             = NULL
/datasets/git/pkt-line.c:419:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (options & PACKET_READ_GENTLE_ON_READ_ERROR)
                    ^~~~~~~
/datasets/git/pkt-line.c:419:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (options & PACKET_READ_GENTLE_ON_READ_ERROR)
                              ^
/datasets/git/./pkt-line.h:87:43: note: expanded from macro 'PACKET_READ_GENTLE_ON_READ_ERROR'
#define PACKET_READ_GENTLE_ON_READ_ERROR (1u<<3)
                                          ^   ~
/datasets/git/pkt-line.c:419:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (options & PACKET_READ_GENTLE_ON_READ_ERROR)
                                                               ^
                                                                {
/datasets/git/pkt-line.c:436:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (options & PACKET_READ_GENTLE_ON_READ_ERROR)
                    ^~~~~~~
/datasets/git/pkt-line.c:436:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (options & PACKET_READ_GENTLE_ON_READ_ERROR)
                              ^
/datasets/git/./pkt-line.h:87:43: note: expanded from macro 'PACKET_READ_GENTLE_ON_READ_ERROR'
#define PACKET_READ_GENTLE_ON_READ_ERROR (1u<<3)
                                          ^   ~
/datasets/git/pkt-line.c:436:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (options & PACKET_READ_GENTLE_ON_READ_ERROR)
                                                               ^
                                                                {
/datasets/git/pkt-line.c:444:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (options & PACKET_READ_GENTLE_ON_READ_ERROR)
                    ^~~~~~~
/datasets/git/pkt-line.c:444:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (options & PACKET_READ_GENTLE_ON_READ_ERROR)
                              ^
/datasets/git/./pkt-line.h:87:43: note: expanded from macro 'PACKET_READ_GENTLE_ON_READ_ERROR'
#define PACKET_READ_GENTLE_ON_READ_ERROR (1u<<3)
                                          ^   ~
/datasets/git/pkt-line.c:444:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (options & PACKET_READ_GENTLE_ON_READ_ERROR)
                                                               ^
                                                                {
/datasets/git/pkt-line.c:455:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((options & PACKET_READ_CHOMP_NEWLINE) &&
             ^~~~~~~
/datasets/git/pkt-line.c:455:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((options & PACKET_READ_CHOMP_NEWLINE) &&
                       ^
/datasets/git/./pkt-line.h:85:43: note: expanded from macro 'PACKET_READ_CHOMP_NEWLINE'
#define PACKET_READ_CHOMP_NEWLINE        (1u<<1)
                                          ^   ~
/datasets/git/pkt-line.c:456:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            len && buffer[len-1] == '\n')
                                         ^
                                          {
/datasets/git/pkt-line.c:460:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (options & PACKET_READ_REDACT_URI_PATH &&
            ^~~~~~~
/datasets/git/pkt-line.c:460:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (options & PACKET_READ_REDACT_URI_PATH &&
                      ^
/datasets/git/./pkt-line.h:88:43: note: expanded from macro 'PACKET_READ_REDACT_URI_PATH'
#define PACKET_READ_REDACT_URI_PATH      (1u<<4)
                                          ^   ~
/datasets/git/pkt-line.c:461:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
            (uri_path_start = find_packfile_uri_path(buffer))) {
             ^
/datasets/git/pkt-line.c:461:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/pkt-line.c:461:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/pkt-line.c:473:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((options & PACKET_READ_DIE_ON_ERR_PACKET) &&
             ^~~~~~~
/datasets/git/pkt-line.c:473:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((options & PACKET_READ_DIE_ON_ERR_PACKET) &&
                       ^
/datasets/git/./pkt-line.h:86:43: note: expanded from macro 'PACKET_READ_DIE_ON_ERR_PACKET'
#define PACKET_READ_DIE_ON_ERR_PACKET    (1u<<2)
                                          ^   ~
/datasets/git/pkt-line.c:474:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            starts_with(buffer, "ERR "))
                                        ^
                                         {
/datasets/git/pkt-line.c:481:21: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
int packet_read(int fd, char *buffer, unsigned size, int options)
                    ^
/datasets/git/pkt-line.c:491:28: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
char *packet_read_line(int fd, int *dst_len)
                           ^
/datasets/git/pkt-line.c:494:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                              PACKET_READ_CHOMP_NEWLINE);
                              ^
/datasets/git/./pkt-line.h:85:43: note: expanded from macro 'PACKET_READ_CHOMP_NEWLINE'
#define PACKET_READ_CHOMP_NEWLINE        (1u<<1)
                                          ^   ~
/datasets/git/pkt-line.c:495:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (dst_len)
                    ^
                     {
/datasets/git/pkt-line.c:500:33: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
int packet_read_line_gently(int fd, int *dst_len, char **dst_line)
                                ^
/datasets/git/pkt-line.c:503:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                              PACKET_READ_CHOMP_NEWLINE|PACKET_READ_GENTLE_ON_EOF);
                              ^
/datasets/git/./pkt-line.h:85:43: note: expanded from macro 'PACKET_READ_CHOMP_NEWLINE'
#define PACKET_READ_CHOMP_NEWLINE        (1u<<1)
                                          ^   ~
/datasets/git/pkt-line.c:503:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                              PACKET_READ_CHOMP_NEWLINE|PACKET_READ_GENTLE_ON_EOF);
                                                        ^
/datasets/git/./pkt-line.h:84:43: note: expanded from macro 'PACKET_READ_GENTLE_ON_EOF'
#define PACKET_READ_GENTLE_ON_EOF        (1u<<0)
                                          ^   ~
/datasets/git/pkt-line.c:504:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (dst_len)
                    ^
                     {
/datasets/git/pkt-line.c:506:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (dst_line)
                     ^
                      {
/datasets/git/pkt-line.c:513:6: warning: variable 'packet_len' is not initialized [cppcoreguidelines-init-variables]
        int packet_len;
            ^
                       = 0
/datasets/git/pkt-line.c:518:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/pkt-line.c:528:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (packet_len <= 0)
                                    ^
                                     {
/datasets/git/pkt-line.c:534:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (orig_alloc == 0)
                                    ^
                                     {
/datasets/git/pkt-line.c:536:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/pkt-line.c:540:9: warning: narrowing conversion from 'unsigned long' to signed type 'ssize_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return sb_out->len - orig_len;
               ^
/datasets/git/pkt-line.c:543:31: warning: parameter name 'me' is too short, expected at least 3 characters [readability-identifier-length]
int recv_sideband(const char *me, int in_stream, int out)
                              ^
/datasets/git/pkt-line.c:543:35: warning: 2 adjacent parameters of 'recv_sideband' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
int recv_sideband(const char *me, int in_stream, int out)
                                  ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pkt-line.c:543:39: note: the first parameter in the range is 'in_stream'
int recv_sideband(const char *me, int in_stream, int out)
                                      ^~~~~~~~~
/datasets/git/pkt-line.c:543:54: note: the last parameter in the range is 'out'
int recv_sideband(const char *me, int in_stream, int out)
                                                     ^~~
/datasets/git/pkt-line.c:546:6: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int len;
            ^
                = 0
/datasets/git/pkt-line.c:548:21: warning: variable 'sideband_type' is not initialized [cppcoreguidelines-init-variables]
        enum sideband_type sideband_type;
                           ^
/datasets/git/pkt-line.c:550:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/pkt-line.c:554:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                                     PACKET_READ_GENTLE_ON_EOF);
                                                     ^
/datasets/git/./pkt-line.h:84:43: note: expanded from macro 'PACKET_READ_GENTLE_ON_EOF'
#define PACKET_READ_GENTLE_ON_EOF        (1u<<0)
                                          ^   ~
/datasets/git/pkt-line.c:556:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                          &sideband_type))
                                                          ^
                                                           {
/datasets/git/pkt-line.c:558:3: warning: switch could be better written as an if/else statement [hicpp-multiway-paths-covered]
                switch (sideband_type) {
                ^
/datasets/git/pkt-line.c:563:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (scratch.len > 0)
                                            ^
                                             {
/datasets/git/pkt-line.c:572:59: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
void packet_reader_init(struct packet_reader *reader, int fd,
                                                          ^
/datasets/git/pkt-line.c:573:22: warning: 2 adjacent parameters of 'packet_reader_init' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                        char *src_buffer, size_t src_len,
                                          ^~~~~~~~~~~~~~~
/datasets/git/pkt-line.c:573:29: note: the first parameter in the range is 'src_len'
                        char *src_buffer, size_t src_len,
                                                 ^~~~~~~
/datasets/git/pkt-line.c:574:8: note: the last parameter in the range is 'options'
                        int options)
                            ^~~~~~~
/datasets/git/pkt-line.c:573:22: note: 
                        char *src_buffer, size_t src_len,
                                          ^
/datasets/git/pkt-line.c:574:4: note: 'size_t' and 'int' may be implicitly converted: 'size_t' (as 'unsigned long') -> 'int', 'int' -> 'size_t' (as 'unsigned long')
                        int options)
                        ^
/datasets/git/pkt-line.c:576:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(reader, 0, sizeof(*reader));
        ^~~~~~
/datasets/git/pkt-line.c:576:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(reader, 0, sizeof(*reader));
        ^~~~~~
/datasets/git/pkt-line.c:601:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/pkt-line.c:602:22: warning: variable 'sideband_type' is not initialized [cppcoreguidelines-init-variables]
                enum sideband_type sideband_type;
                                   ^
/datasets/git/pkt-line.c:610:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!reader->use_sideband)
                                          ^
                                           {
/datasets/git/pkt-line.c:614:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                         &scratch, &sideband_type))
                                                                   ^
                                                                    {
/datasets/git/pkt-line.c:618:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (reader->status == PACKET_READ_NORMAL)
                                                 ^
                                                  {
/datasets/git/pkt-line.c:622:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/pkt-line.c:631:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (reader->line_peeked)
                                ^
                                 {
/datasets/git/preload-index.c:5:1: warning: #includes are not sorted properly [llvm-include-order]
#include "pathspec.h"
^        ~~~~~~~~~~~~
         "config.h"
/datasets/git/preload-index.c:19:1: warning: replace macro with enum [modernize-macro-to-enum]
#define MAX_PARALLEL (20)
^~~~~~~~
                     =   ,
/datasets/git/preload-index.c:19:9: warning: macro 'MAX_PARALLEL' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define MAX_PARALLEL (20)
        ^
/datasets/git/preload-index.c:20:9: warning: macro 'THREAD_COST' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define THREAD_COST (500)
        ^
/datasets/git/preload-index.c:22:8: warning: accessing fields in struct 'progress_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct progress_data {
       ^
/datasets/git/preload-index.c:22:8: note: use "__attribute__((aligned(64)))" to align struct 'progress_data' to 64 bytes
/datasets/git/preload-index.c:28:8: warning: accessing fields in struct 'thread_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct thread_data {
       ^
/datasets/git/preload-index.c:28:8: note: use "__attribute__((aligned(64)))" to align struct 'thread_data' to 64 bytes
/datasets/git/preload-index.c:39:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int nr, last_nr;
        ^~~~~~~~~~~~~~~~
/datasets/git/preload-index.c:39:6: warning: variable 'nr' is not initialized [cppcoreguidelines-init-variables]
        int nr, last_nr;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/preload-index.c:39:6: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/preload-index.c:39:10: warning: variable 'last_nr' is not initialized [cppcoreguidelines-init-variables]
        int nr, last_nr;
                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/preload-index.c:40:22: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        struct thread_data *p = _data;
                            ^
/datasets/git/preload-index.c:46:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (nr + p->offset > index->cache_nr)
                                             ^
                                              {
/datasets/git/preload-index.c:47:8: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                nr = index->cache_nr - p->offset;
                     ^
/datasets/git/preload-index.c:50:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        do {
        ^
/datasets/git/preload-index.c:51:23: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                struct cache_entry *ce = *cep++;
                                    ^
/datasets/git/preload-index.c:52:15: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                struct stat st;
                            ^
/datasets/git/preload-index.c:54:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce_stage(ce))
                    ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/preload-index.c:54:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ce_stage(ce))
                                 ^
                                  {
/datasets/git/preload-index.c:56:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (S_ISGITLINK(ce->ce_mode))
                    ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/preload-index.c:56:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (S_ISGITLINK(ce->ce_mode))
                                             ^
                                              {
/datasets/git/preload-index.c:58:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce_uptodate(ce))
                    ^
/datasets/git/./refs/../cache.h:243:26: note: expanded from macro 'ce_uptodate'
#define ce_uptodate(ce) ((ce)->ce_flags & CE_UPTODATE)
                         ^                ~~~~~~~~~~~
/datasets/git/preload-index.c:58:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ce_uptodate(ce))
                                    ^
                                     {
/datasets/git/preload-index.c:60:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce_skip_worktree(ce))
                    ^
/datasets/git/./refs/../cache.h:244:31: note: expanded from macro 'ce_skip_worktree'
#define ce_skip_worktree(ce) ((ce)->ce_flags & CE_SKIP_WORKTREE)
                              ^                ~~~~~~~~~~~~~~~~
/datasets/git/preload-index.c:60:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ce_skip_worktree(ce))
                                         ^
                                          {
/datasets/git/preload-index.c:62:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce->ce_flags & CE_FSMONITOR_VALID)
                    ^
/datasets/git/preload-index.c:62:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce->ce_flags & CE_FSMONITOR_VALID)
                                   ^
/datasets/git/./refs/../cache.h:173:31: note: expanded from macro 'CE_FSMONITOR_VALID'
#define CE_FSMONITOR_VALID   (1 << 21)
                              ^
/datasets/git/preload-index.c:62:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ce->ce_flags & CE_FSMONITOR_VALID)
                                                      ^
                                                       {
/datasets/git/preload-index.c:64:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (p->progress && !(nr & 31)) {
                                     ^~
/datasets/git/preload-index.c:64:29: warning: 31 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (p->progress && !(nr & 31)) {
                                          ^
/datasets/git/preload-index.c:65:26: warning: variable name 'pd' is too short, expected at least 3 characters [readability-identifier-length]
                        struct progress_data *pd = p->progress;
                                              ^
/datasets/git/preload-index.c:73:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ce_path_match(index, ce, &p->pathspec, NULL))
                                                                  ^
                                                                   {
/datasets/git/preload-index.c:75:75: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (threaded_has_symlink_leading_path(&cache, ce->name, ce_namelen(ce)))
                                                                                        ^
                                                                                         {
/datasets/git/preload-index.c:78:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (lstat(ce->name, &st))
                                         ^
                                          {
/datasets/git/preload-index.c:80:37: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ie_match_stat(index, ce, &st, CE_MATCH_RACY_IS_DIRTY|CE_MATCH_IGNORE_FSMONITOR))
                                                  ^
/datasets/git/./refs/../cache.h:881:33: note: expanded from macro 'CE_MATCH_RACY_IS_DIRTY'
#define CE_MATCH_RACY_IS_DIRTY          02
                                        ^~
/datasets/git/preload-index.c:80:87: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ie_match_stat(index, ce, &st, CE_MATCH_RACY_IS_DIRTY|CE_MATCH_IGNORE_FSMONITOR))
                                                                                                    ^
                                                                                                     {
/datasets/git/preload-index.c:82:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ce_mark_uptodate(ce);
                ^
/datasets/git/./refs/../cache.h:245:31: note: expanded from macro 'ce_mark_uptodate'
#define ce_mark_uptodate(ce) ((ce)->ce_flags |= CE_UPTODATE)
                              ^                 ~~~~~~~~~~~
/datasets/git/preload-index.c:84:11: warning: backward branch (do loop) is ID-dependent due to variable reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        } while (--nr > 0);
                 ^
/datasets/git/preload-index.c:86:25: warning: variable name 'pd' is too short, expected at least 3 characters [readability-identifier-length]
                struct progress_data *pd = p->progress;
                                      ^
/datasets/git/preload-index.c:100:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int threads, i, work, offset;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/preload-index.c:100:6: warning: variable 'threads' is not initialized [cppcoreguidelines-init-variables]
        int threads, i, work, offset;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/preload-index.c:100:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int threads, i, work, offset;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/preload-index.c:100:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/preload-index.c:100:18: warning: variable 'work' is not initialized [cppcoreguidelines-init-variables]
        int threads, i, work, offset;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/preload-index.c:100:24: warning: variable 'offset' is not initialized [cppcoreguidelines-init-variables]
        int threads, i, work, offset;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/preload-index.c:102:23: warning: variable name 'pd' is too short, expected at least 3 characters [readability-identifier-length]
        struct progress_data pd;
                             ^
/datasets/git/preload-index.c:105:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!HAVE_THREADS || !core_preload_index)
                                                 ^
                                                  {
/datasets/git/preload-index.c:108:12: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        threads = index->cache_nr / THREAD_COST;
                  ^
/datasets/git/preload-index.c:109:90: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((index->cache_nr > 1) && (threads < 2) && git_env_bool("GIT_TEST_PRELOAD_INDEX", 0))
                                                                                                ^
                                                                                                 {
/datasets/git/preload-index.c:111:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (threads < 2)
                        ^
                         {
/datasets/git/preload-index.c:117:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (threads > MAX_PARALLEL)
                                   ^
                                    {
/datasets/git/preload-index.c:121:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&data, 0, sizeof(data));
        ^~~~~~
/datasets/git/preload-index.c:121:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&data, 0, sizeof(data));
        ^~~~~~
/datasets/git/preload-index.c:123:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&pd, 0, sizeof(pd));
        ^~~~~~
/datasets/git/preload-index.c:123:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&pd, 0, sizeof(pd));
        ^~~~~~
/datasets/git/preload-index.c:124:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (refresh_flags & REFRESH_PROGRESS && isatty(2)) {
            ^
/datasets/git/preload-index.c:124:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (refresh_flags & REFRESH_PROGRESS && isatty(2)) {
                            ^
/datasets/git/./refs/../cache.h:927:43: note: expanded from macro 'REFRESH_PROGRESS'
#define REFRESH_PROGRESS                 (1 << 6) /* show progress bar if stderr is tty */
                                          ^
/datasets/git/preload-index.c:129:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < threads; i++) {
        ^
/datasets/git/preload-index.c:100:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int threads, i, work, offset;
        ^
/datasets/git/preload-index.c:129:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'threads' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < threads; i++) {
                    ^
/datasets/git/preload-index.c:130:23: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct thread_data *p = data+i;
                                    ^
/datasets/git/preload-index.c:131:7: warning: variable 'err' is not initialized [cppcoreguidelines-init-variables]
                int err;
                    ^
                        = 0
/datasets/git/preload-index.c:134:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pathspec)
                             ^
                              {
/datasets/git/preload-index.c:138:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pd.progress)
                                ^
                                 {
/datasets/git/preload-index.c:143:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err)
                        ^
                         {
/datasets/git/preload-index.c:144:50: warning: function is not thread safe [concurrency-mt-unsafe]
                        die(_("unable to create threaded lstat: %s"), strerror(err));
                                                                      ^
/datasets/git/preload-index.c:146:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < threads; i++) {
        ^
/datasets/git/preload-index.c:146:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'threads' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < threads; i++) {
                    ^
/datasets/git/preload-index.c:147:23: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct thread_data *p = data+i;
                                    ^
/datasets/git/preload-index.c:148:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pthread_join(p->pthread, NULL))
                                                   ^
                                                    {
/datasets/git/preload-index.c:156:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < threads; i++)
                ^
/datasets/git/preload-index.c:156:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'threads' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < threads; i++)
                            ^
/datasets/git/preload-index.c:156:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < threads; i++)
                                             ^
                                              {
/datasets/git/preload-index.c:160:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_performance_leave("preload index");
        ^
/datasets/git/./trace.h:251:2: note: expanded from macro 'trace_performance_leave'
        do {                                                                \
        ^
/datasets/git/pretty.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "color.h"
/datasets/git/pretty.c:17:14: warning: variable 'user_format' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *user_format;
             ^
/datasets/git/pretty.c:17:14: warning: variable 'user_format' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/pretty.c:18:15: warning: accessing fields in struct 'cmt_fmt_map' is inefficient due to padding; only needs 36 bytes but is using 40 bytes [altera-struct-pack-align]
static struct cmt_fmt_map {
              ^
/datasets/git/pretty.c:18:15: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'cmt_fmt_map'
/datasets/git/pretty.c:18:15: warning: accessing fields in struct 'cmt_fmt_map' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
static struct cmt_fmt_map {
              ^
/datasets/git/pretty.c:18:15: note: use "__attribute__((aligned(64)))" to align struct 'cmt_fmt_map' to 64 bytes
/datasets/git/pretty.c:26:4: warning: variable 'commit_formats' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} *commit_formats;
   ^
/datasets/git/pretty.c:26:4: warning: variable 'commit_formats' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/pretty.c:27:15: warning: variable 'builtin_formats_len' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static size_t builtin_formats_len;
              ^
/datasets/git/pretty.c:28:15: warning: variable 'commit_formats_len' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static size_t commit_formats_len;
              ^
/datasets/git/pretty.c:29:15: warning: variable 'commit_formats_alloc' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static size_t commit_formats_alloc;
              ^
/datasets/git/pretty.c:37:64: warning: parameter name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
static void save_user_format(struct rev_info *rev, const char *cp, int is_tformat)
                                                               ^
/datasets/git/pretty.c:41:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_tformat)
                       ^
                        {
/datasets/git/pretty.c:47:16: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
                                     void *cb UNUSED)
                                           ^
/datasets/git/pretty.c:50:14: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
        const char *name;
                    ^
                         = NULL
/datasets/git/pretty.c:51:14: warning: variable 'fmt' is not initialized [cppcoreguidelines-init-variables]
        const char *fmt;
                    ^
                        = NULL
/datasets/git/pretty.c:52:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/pretty.c:52:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pretty.c:54:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!skip_prefix(var, "pretty.", &name))
                                                ^
                                                 {
/datasets/git/pretty.c:57:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < builtin_formats_len; i++) {
        ^
/datasets/git/pretty.c:52:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int i;
        ^
/datasets/git/pretty.c:57:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < builtin_formats_len; i++) {
                    ^
/datasets/git/pretty.c:58:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(commit_formats[i].name, name))
                                                          ^
                                                           {
/datasets/git/pretty.c:62:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = builtin_formats_len; i < commit_formats_len; i++) {
        ^
/datasets/git/pretty.c:62:11: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        for (i = builtin_formats_len; i < commit_formats_len; i++) {
                 ^
/datasets/git/pretty.c:62:32: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = builtin_formats_len; i < commit_formats_len; i++) {
                                      ^
/datasets/git/pretty.c:70:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                ALLOC_GROW(commit_formats, commit_formats_len+1,
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/pretty.c:73:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(commit_format, 0, sizeof(*commit_format));
                ^~~~~~
/datasets/git/pretty.c:73:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(commit_format, 0, sizeof(*commit_format));
                ^~~~~~
/datasets/git/pretty.c:79:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (git_config_string(&fmt, var, value))
                                                ^
                                                 {
/datasets/git/pretty.c:82:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (skip_prefix(fmt, "format:", &fmt))
                                              ^
                                               {
/datasets/git/pretty.c:84:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (skip_prefix(fmt, "tformat:", &fmt) || strchr(fmt, '%'))
                                                                        ^
                                                                         {
/datasets/git/pretty.c:86:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/pretty.c:97:35: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                { "medium",     CMIT_FMT_MEDIUM,        0,      8 },
                                                                ^
/datasets/git/pretty.c:101:35: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                { "fuller",     CMIT_FMT_FULLER,        0,      8 },
                                                                ^
/datasets/git/pretty.c:102:32: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                { "full",       CMIT_FMT_FULL,          0,      8 },
                                                                ^
/datasets/git/pretty.c:113:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(commit_formats, commit_formats_len, commit_formats_alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/pretty.c:120:28: warning: function 'find_commit_format_recursive' is within a recursive call chain [misc-no-recursion]
static struct cmt_fmt_map *find_commit_format_recursive(const char *sought,
                           ^
/datasets/git/pretty.c:120:28: note: example recursive call chain, starting from function 'find_commit_format_recursive'
/datasets/git/pretty.c:147:11: note: Frame #1: function 'find_commit_format_recursive' calls function 'find_commit_format_recursive' here:
                found = find_commit_format_recursive(found->user_format,
                        ^
/datasets/git/pretty.c:147:11: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/pretty.c:120:57: warning: 2 adjacent parameters of 'find_commit_format_recursive' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static struct cmt_fmt_map *find_commit_format_recursive(const char *sought,
                                                        ^~~~~~~~~~~~~~~~~~~
/datasets/git/pretty.c:120:69: note: the first parameter in the range is 'sought'
static struct cmt_fmt_map *find_commit_format_recursive(const char *sought,
                                                                    ^~~~~~
/datasets/git/pretty.c:121:20: note: the last parameter in the range is 'original'
                                                        const char *original,
                                                                    ^~~~~~~~
/datasets/git/pretty.c:126:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/pretty.c:126:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pretty.c:128:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (num_redirections >= commit_formats_len)
                                                   ^
                                                    {
/datasets/git/pretty.c:133:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < commit_formats_len; i++) {
        ^
/datasets/git/pretty.c:133:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'commit_formats_len' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < commit_formats_len; i++) {
                    ^
/datasets/git/pretty.c:134:10: warning: variable 'match_len' is not initialized [cppcoreguidelines-init-variables]
                size_t match_len;
                       ^
                                 = 0
/datasets/git/pretty.c:136:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!starts_with(commit_formats[i].name, sought))
                                                                 ^
                                                                  {
/datasets/git/pretty.c:157:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!commit_formats)
                            ^
                             {
/datasets/git/pretty.c:165:22: warning: variable 'commit_format' is not initialized [cppcoreguidelines-init-variables]
        struct cmt_fmt_map *commit_format;
                            ^
                                          = NULL
/datasets/git/pretty.c:183:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!commit_format)
                           ^
                            {
/datasets/git/pretty.c:189:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!rev->date_mode_explicit && commit_format->default_date_mode_type)
                                                                              ^
                                                                               {
/datasets/git/pretty.c:204:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/pretty.c:205:8: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                char c = *msg++;
                     ^
/datasets/git/pretty.c:206:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!c)
                       ^
                        {
/datasets/git/pretty.c:209:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (c == '\n')
                              ^
                               {
/datasets/git/pretty.c:216:26: warning: parameter name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
static int non_ascii(int ch)
                         ^
/datasets/git/pretty.c:218:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return !isascii(ch) || ch == '\033';
                ^
/datasets/git/./git-compat-util.h:1216:22: note: expanded from macro 'isascii'
#define isascii(x) (((x) & ~0x7f) == 0)
                     ^~~
/datasets/git/pretty.c:218:10: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
        return !isascii(ch) || ch == '\033';
                ^
/datasets/git/./git-compat-util.h:1216:28: note: expanded from macro 'isascii'
#define isascii(x) (((x) & ~0x7f) == 0)
                           ^~~~~
/datasets/git/pretty.c:221:31: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
int has_non_ascii(const char *s)
                              ^
/datasets/git/pretty.c:223:6: warning: variable 'ch' is not initialized [cppcoreguidelines-init-variables]
        int ch;
            ^
               = 0
/datasets/git/pretty.c:223:6: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pretty.c:224:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!s)
               ^
                {
/datasets/git/pretty.c:226:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((ch = *s++) != '\0') {
        ^
/datasets/git/pretty.c:226:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'ch' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((ch = *s++) != '\0') {
               ^
/datasets/git/pretty.c:226:15: warning: 'signed char' to 'int' conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse,cert-str34-c]
        while ((ch = *s++) != '\0') {
                     ^
/datasets/git/pretty.c:227:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (non_ascii(ch))
                                  ^
                                   {
/datasets/git/pretty.c:233:35: warning: parameter name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
static int is_rfc822_special(char ch)
                                  ^
/datasets/git/pretty.c:255:45: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static int needs_rfc822_quoting(const char *s, int len)
                                            ^
/datasets/git/pretty.c:257:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/pretty.c:257:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pretty.c:258:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < len; i++)
        ^
/datasets/git/pretty.c:258:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < len; i++)
                                 ^
                                  {
/datasets/git/pretty.c:259:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_rfc822_special(s[i]))
                                            ^
                                             {
/datasets/git/pretty.c:264:44: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static int last_line_length(struct strbuf *sb)
                                           ^
/datasets/git/pretty.c:266:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/pretty.c:266:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pretty.c:269:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = sb->len - 1; i >= 0; i--)
        ^
/datasets/git/pretty.c:269:11: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        for (i = sb->len - 1; i >= 0; i--)
                 ^
/datasets/git/pretty.c:269:24: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = sb->len - 1; i >= 0; i--)
                              ^
/datasets/git/pretty.c:269:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = sb->len - 1; i >= 0; i--)
                                          ^
                                           {
/datasets/git/pretty.c:270:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (sb->buf[i] == '\n')
                                       ^
                                        {
/datasets/git/pretty.c:272:9: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return sb->len - (i + 1);
               ^
/datasets/git/pretty.c:275:63: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void add_rfc822_quoted(struct strbuf *out, const char *s, int len)
                                                              ^
/datasets/git/pretty.c:277:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/pretty.c:277:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pretty.c:283:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < len; i++) {
        ^
/datasets/git/pretty.c:301:31: warning: 2 adjacent parameters of 'is_rfc2047_special' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int is_rfc2047_special(char ch, enum rfc2047_type type)
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pretty.c:301:36: note: the first parameter in the range is 'ch'
static int is_rfc2047_special(char ch, enum rfc2047_type type)
                                   ^~
/datasets/git/pretty.c:301:58: note: the last parameter in the range is 'type'
static int is_rfc2047_special(char ch, enum rfc2047_type type)
                                                         ^~~~
/datasets/git/pretty.c:301:40: note: 'char' and 'enum rfc2047_type' may be implicitly converted
static int is_rfc2047_special(char ch, enum rfc2047_type type)
                                       ^
/datasets/git/pretty.c:301:36: warning: parameter name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
static int is_rfc2047_special(char ch, enum rfc2047_type type)
                                   ^
/datasets/git/pretty.c:318:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (non_ascii(ch) || !isprint(ch))
                                          ^
                                           {
/datasets/git/pretty.c:326:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (isspace(ch) || ch == '=' || ch == '?' || ch == '_')
            ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/pretty.c:326:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (isspace(ch) || ch == '=' || ch == '?' || ch == '_')
                                                               ^
                                                                {
/datasets/git/pretty.c:346:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (type != RFC2047_ADDRESS)
                                    ^
                                     {
/datasets/git/pretty.c:350:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return !(isalnum(ch) || ch == '!' || ch == '*' || ch == '+' || ch == '-' || ch == '/');
                 ^
/datasets/git/./git-compat-util.h:1220:20: note: expanded from macro 'isalnum'
#define isalnum(x) sane_istest(x,GIT_ALPHA | GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/pretty.c:355:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/pretty.c:355:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pretty.c:357:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < len; i++) {
        ^
/datasets/git/pretty.c:358:7: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
                int ch = line[i];
                    ^
/datasets/git/pretty.c:358:12: warning: 'signed char' to 'int' conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse,cert-str34-c]
                int ch = line[i];
                         ^
/datasets/git/pretty.c:359:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (non_ascii(ch) || ch == '\n')
                                                ^
                                                 {
/datasets/git/pretty.c:361:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((i + 1 < len) && (ch == '=' && line[i+1] == '?'))
                                                                     ^
                                                                      {
/datasets/git/pretty.c:368:40: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static void add_rfc2047(struct strbuf *sb, const char *line, size_t len,
                                       ^
/datasets/git/pretty.c:372:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/pretty.c:372:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pretty.c:375:47: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        strbuf_grow(sb, len * 3 + strlen(encoding) + 100);
                                                     ^
/datasets/git/pretty.c:377:14: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        line_len += strlen(encoding) + 5; /* 5 for =??q? */
                    ^
/datasets/git/pretty.c:377:33: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        line_len += strlen(encoding) + 5; /* 5 for =??q? */
                                       ^
/datasets/git/pretty.c:387:24: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                const unsigned char *p = (const unsigned char *)line;
                                     ^
/datasets/git/pretty.c:389:55: warning: narrowing conversion from 'unsigned char' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int is_special = (chrlen > 1) || is_rfc2047_special(*p, type);
                                                                    ^
/datasets/git/pretty.c:406:15: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        line_len = strlen(encoding) + 5 + 1; /* =??q? plus SP */
                                   ^
/datasets/git/pretty.c:406:34: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        line_len = strlen(encoding) + 5 + 1; /* =??q? plus SP */
                                                      ^
/datasets/git/pretty.c:409:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < chrlen; i++)
                ^
/datasets/git/pretty.c:409:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'chrlen' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < chrlen; i++)
                            ^
/datasets/git/pretty.c:409:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < chrlen; i++)
                                            ^
                                             {
/datasets/git/pretty.c:420:7: warning: variable name 'tz' is too short, expected at least 3 characters [readability-identifier-length]
        long tz = 0;
             ^
/datasets/git/pretty.c:422:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ident->date_begin && ident->date_end)
                                                 ^
                                                  {
/datasets/git/pretty.c:423:51: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                date = parse_timestamp(ident->date_begin, NULL, 10);
                                                                ^
/datasets/git/pretty.c:424:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (date_overflows(date))
                                 ^
                                  {
/datasets/git/pretty.c:427:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ident->tz_begin && ident->tz_end)
                                                     ^
                                                      {
/datasets/git/pretty.c:428:39: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        tz = strtol(ident->tz_begin, NULL, 10);
                                                           ^
/datasets/git/pretty.c:429:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (tz >= INT_MAX || tz <= INT_MIN)
                                                   ^
                                                    {
/datasets/git/pretty.c:432:25: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return show_date(date, tz, mode);
                               ^
/datasets/git/pretty.c:435:57: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static inline void strbuf_add_with_color(struct strbuf *sb, const char *color,
                                                        ^
/datasets/git/pretty.c:435:61: warning: 2 adjacent parameters of 'strbuf_add_with_color' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static inline void strbuf_add_with_color(struct strbuf *sb, const char *color,
                                                            ^~~~~~~~~~~~~~~~~~
/datasets/git/pretty.c:435:73: note: the first parameter in the range is 'color'
static inline void strbuf_add_with_color(struct strbuf *sb, const char *color,
                                                                        ^~~~~
/datasets/git/pretty.c:436:19: note: the last parameter in the range is 'buf'
                                         const char *buf, size_t buflen)
                                                     ^~~
/datasets/git/pretty.c:440:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*color)
                   ^
                    {
/datasets/git/pretty.c:444:51: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static void append_line_with_color(struct strbuf *sb, struct grep_opt *opt,
                                                  ^
/datasets/git/pretty.c:445:26: warning: 3 adjacent parameters of 'append_line_with_color' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                   const char *line, size_t linelen,
                                                     ^~~~~~~~~~~~~~~
/datasets/git/pretty.c:445:33: note: the first parameter in the range is 'linelen'
                                   const char *line, size_t linelen,
                                                            ^~~~~~~
/datasets/git/pretty.c:446:37: note: the last parameter in the range is 'ctx'
                                   int color, enum grep_context ctx,
                                                                ^~~
/datasets/git/pretty.c:445:26: note: 
                                   const char *line, size_t linelen,
                                                     ^
/datasets/git/pretty.c:446:8: note: 'size_t' and 'int' may be implicitly converted: 'size_t' (as 'unsigned long') -> 'int', 'int' -> 'size_t' (as 'unsigned long')
                                   int color, enum grep_context ctx,
                                   ^
/datasets/git/pretty.c:445:26: note: 
                                   const char *line, size_t linelen,
                                                     ^
/datasets/git/pretty.c:446:19: note: 'size_t' and 'enum grep_context' may be implicitly converted: 'size_t' (as 'unsigned long') -> 'enum grep_context', 'enum grep_context' -> 'size_t' (as 'unsigned long')
                                   int color, enum grep_context ctx,
                                              ^
/datasets/git/pretty.c:446:19: note: 'int' and 'enum grep_context' may be implicitly converted
/datasets/git/pretty.c:449:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *buf, *eol, *line_color, *match_color;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pretty.c:449:14: warning: variable 'buf' is not initialized [cppcoreguidelines-init-variables]
        const char *buf, *eol, *line_color, *match_color;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pretty.c:449:20: warning: variable 'eol' is not initialized [cppcoreguidelines-init-variables]
        const char *buf, *eol, *line_color, *match_color;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pretty.c:449:26: warning: variable 'line_color' is not initialized [cppcoreguidelines-init-variables]
        const char *buf, *eol, *line_color, *match_color;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pretty.c:449:39: warning: variable 'match_color' is not initialized [cppcoreguidelines-init-variables]
        const char *buf, *eol, *line_color, *match_color;
                                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pretty.c:456:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opt || !want_color(color) || opt->invert)
                                                      ^
                                                       {
/datasets/git/pretty.c:462:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (grep_next_match(opt, buf, eol, ctx, &match, field, eflags)) {
        ^
/datasets/git/pretty.c:462:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'buf' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (grep_next_match(opt, buf, eol, ctx, &match, field, eflags)) {
               ^
/datasets/git/pretty.c:463:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (match.rm_so == match.rm_eo)
                                               ^
                                                {
/datasets/git/pretty.c:473:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (eflags)
                   ^
                    {
/datasets/git/pretty.c:481:64: warning: parameter name 'pp' is too short, expected at least 3 characters [readability-identifier-length]
static int use_in_body_from(const struct pretty_print_context *pp,
                                                               ^
/datasets/git/pretty.c:484:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pp->rev && pp->rev->force_in_body_from)
                                                   ^
                                                    {
/datasets/git/pretty.c:486:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ident_cmp(pp->from_ident, ident))
                                             ^
                                              {
/datasets/git/pretty.c:491:48: warning: parameter name 'pp' is too short, expected at least 3 characters [readability-identifier-length]
void pp_user_info(struct pretty_print_context *pp,
                                               ^
/datasets/git/pretty.c:492:38: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                  const char *what, struct strbuf *sb,
                                                   ^
/datasets/git/pretty.c:493:5: warning: 2 adjacent parameters of 'pp_user_info' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                  const char *line, const char *encoding)
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pretty.c:493:17: note: the first parameter in the range is 'line'
                  const char *line, const char *encoding)
                              ^~~~
/datasets/git/pretty.c:493:35: note: the last parameter in the range is 'encoding'
                  const char *line, const char *encoding)
                                                ^~~~~~~~
/datasets/git/pretty.c:496:8: warning: variable 'line_end' is not initialized [cppcoreguidelines-init-variables]
        char *line_end;
              ^
                       = NULL
/datasets/git/pretty.c:497:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *mailbuf, *namebuf;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pretty.c:497:14: warning: variable 'mailbuf' is not initialized [cppcoreguidelines-init-variables]
        const char *mailbuf, *namebuf;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pretty.c:497:24: warning: variable 'namebuf' is not initialized [cppcoreguidelines-init-variables]
        const char *mailbuf, *namebuf;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pretty.c:498:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t namelen, maillen;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pretty.c:498:9: warning: variable 'namelen' is not initialized [cppcoreguidelines-init-variables]
        size_t namelen, maillen;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pretty.c:498:18: warning: variable 'maillen' is not initialized [cppcoreguidelines-init-variables]
        size_t namelen, maillen;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pretty.c:499:19: warning: 78 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        int max_length = 78; /* per rfc2822 */
                         ^
/datasets/git/pretty.c:501:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pp->fmt == CMIT_FMT_ONELINE)
                                        ^
                                         {
/datasets/git/pretty.c:505:37: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        if (split_ident_line(&ident, line, line_end - line))
                                           ^
/datasets/git/pretty.c:505:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (split_ident_line(&ident, line, line_end - line))
                                                            ^
                                                             {
/datasets/git/pretty.c:513:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pp->mailmap)
                        ^
                         {
/datasets/git/pretty.c:536:39: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                    needs_rfc2047_encoding(namebuf, namelen)) {
                                                    ^
/datasets/git/pretty.c:539:17: warning: 76 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        max_length = 76; /* per rfc2047 */
                                     ^
/datasets/git/pretty.c:540:44: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                } else if (needs_rfc822_quoting(namebuf, namelen)) {
                                                         ^
/datasets/git/pretty.c:542:40: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        add_rfc822_quoted(&quoted, namebuf, namelen);
                                                            ^
/datasets/git/pretty.c:543:45: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        strbuf_add_wrapped_bytes(sb, quoted.buf, quoted.len,
                                                                 ^
/datasets/git/pretty.c:544:9: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                                        -6, 1, max_length);
                                                         ^
/datasets/git/pretty.c:547:42: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        strbuf_add_wrapped_bytes(sb, namebuf, namelen,
                                                              ^
/datasets/git/pretty.c:548:9: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                                 -6, 1, max_length);
                                                  ^
/datasets/git/pretty.c:552:67: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    last_line_length(sb) + strlen(" <") + maillen + strlen(">"))
                                                                                ^
                                                                                 {
/datasets/git/pretty.c:556:17: warning: variable name 'id' is too short, expected at least 3 characters [readability-identifier-length]
                struct strbuf id = STRBUF_INIT;
                              ^
/datasets/git/pretty.c:560:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(what, "Author"))
                                            ^
                                             {
/datasets/git/pretty.c:562:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(what, "Commit"))
                                                 ^
                                                  {
/datasets/git/pretty.c:566:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pp->fmt == CMIT_FMT_FULLER)
                                               ^
                                                {
/datasets/git/pretty.c:601:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (len && isspace(line[len - 1]))
        ^
/datasets/git/pretty.c:601:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (len && isspace(line[len - 1]))
               ^
/datasets/git/pretty.c:601:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        while (len && isspace(line[len - 1]))
                      ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/pretty.c:601:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (len && isspace(line[len - 1]))
                                             ^
                                              {
/datasets/git/pretty.c:609:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/pretty.c:611:7: warning: variable name 'll' is too short, expected at least 3 characters [readability-identifier-length]
                int ll = linelen;
                    ^
/datasets/git/pretty.c:612:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!linelen)
                             ^
                              {
/datasets/git/pretty.c:614:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!is_blank_line(msg, &ll))
                                             ^
                                              {
/datasets/git/pretty.c:621:63: warning: parameter name 'pp' is too short, expected at least 3 characters [readability-identifier-length]
static void add_merge_info(const struct pretty_print_context *pp,
                                                              ^
/datasets/git/pretty.c:622:22: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                           struct strbuf *sb, const struct commit *commit)
                                          ^
/datasets/git/pretty.c:627:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !parent || !parent->next)
                                     ^
                                      {
/datasets/git/pretty.c:632:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (parent) {
        ^
/datasets/git/pretty.c:632:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'parent' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (parent) {
               ^
/datasets/git/pretty.c:635:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pp->abbrev)
                               ^
                                {
/datasets/git/pretty.c:637:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/pretty.c:646:9: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        size_t len;
               ^
                   = 0
/datasets/git/pretty.c:647:14: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
        const char *v = find_commit_header(msg, key, &len);
                    ^
/datasets/git/pretty.c:654:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t start, len;
        ^~~~~~~~~~~~~~~~~~
/datasets/git/pretty.c:655:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        char *cp = buf;
        ^
/datasets/git/pretty.c:654:9: warning: variable 'start' is not initialized [cppcoreguidelines-init-variables]
        size_t start, len;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pretty.c:654:16: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        size_t start, len;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pretty.c:655:8: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
        char *cp = buf;
              ^
/datasets/git/pretty.c:658:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (!starts_with(cp, "encoding ")) {
        ^
/datasets/git/pretty.c:658:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'cp' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (!starts_with(cp, "encoding ")) {
               ^
/datasets/git/pretty.c:660:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!cp || *++cp == '\n')
                                         ^
                                          {
/datasets/git/pretty.c:665:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!cp)
                ^
                 {
/datasets/git/pretty.c:682:53: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
const char *repo_logmsg_reencode(struct repository *r,
                                                    ^
/datasets/git/pretty.c:688:14: warning: variable 'use_encoding' is not initialized [cppcoreguidelines-init-variables]
        const char *use_encoding;
                    ^
                                 = NULL
/datasets/git/pretty.c:689:8: warning: variable 'encoding' is not initialized [cppcoreguidelines-init-variables]
        char *encoding;
              ^
                       = NULL
/datasets/git/pretty.c:691:8: warning: variable 'out' is not initialized [cppcoreguidelines-init-variables]
        char *out;
              ^
                  = NULL
/datasets/git/pretty.c:694:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (commit_encoding)
                                    ^
                                     {
/datasets/git/pretty.c:699:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (commit_encoding)
                            ^
                             {
/datasets/git/pretty.c:708:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!encoding)
                              ^
                               {
/datasets/git/pretty.c:718:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (msg == get_cached_commit_buffer(r, commit, NULL))
                                                                     ^
                                                                      {
/datasets/git/pretty.c:720:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/pretty.c:731:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (out)
                        ^
                         {
/datasets/git/pretty.c:739:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (out)
                ^
                 {
/datasets/git/pretty.c:742:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!commit_encoding)
                             ^
                              {
/datasets/git/pretty.c:754:29: warning: variable 'mail_map' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
        static struct string_list *mail_map;
                                   ^
/datasets/git/pretty.c:762:49: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static size_t format_person_part(struct strbuf *sb, char part,
                                                ^
/datasets/git/pretty.c:768:21: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
        struct ident_split s;
                           ^
/datasets/git/pretty.c:769:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *name, *mail;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pretty.c:769:14: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
        const char *name, *mail;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pretty.c:769:21: warning: variable 'mail' is not initialized [cppcoreguidelines-init-variables]
        const char *name, *mail;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pretty.c:770:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t maillen, namelen;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pretty.c:770:9: warning: variable 'maillen' is not initialized [cppcoreguidelines-init-variables]
        size_t maillen, namelen;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pretty.c:770:18: warning: variable 'namelen' is not initialized [cppcoreguidelines-init-variables]
        size_t maillen, namelen;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pretty.c:772:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (split_ident_line(&s, msg, len) < 0)
                                               ^
                                                {
/datasets/git/pretty.c:780:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (part == 'N' || part == 'E' || part == 'L') /* mailmap lookup */
                                                      ^
                                                       {
/datasets/git/pretty.c:791:15: warning: variable name 'at' is too short, expected at least 3 characters [readability-identifier-length]
                const char *at = memchr(mail, '@', maillen);
                            ^
/datasets/git/pretty.c:792:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (at)
                       ^
                        {
/datasets/git/pretty.c:798:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!s.date_begin)
                          ^
                           {
/datasets/git/pretty.c:806:2: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
        switch (part) {
        ^
/datasets/git/pretty.c:837:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            || part == 'D' || part == 'r' || part == 'i')
                                                         ^
                                                          {
/datasets/git/pretty.c:843:8: warning: accessing fields in struct 'chunk' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct chunk {
       ^
/datasets/git/pretty.c:843:8: note: use "__attribute__((aligned(16)))" to align struct 'chunk' to 16 bytes
/datasets/git/pretty.c:863:8: warning: accessing fields in struct 'format_commit_context' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct format_commit_context {
       ^
/datasets/git/pretty.c:863:8: note: use "__attribute__((aligned(128)))" to align struct 'format_commit_context' to 128 bytes
/datasets/git/pretty.c:891:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        const char *msg = context->message;
        ^
/datasets/git/pretty.c:892:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/pretty.c:892:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pretty.c:894:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'msg' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; msg[i]; i++) {
                    ^
/datasets/git/pretty.c:895:15: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
                const char *name;
                            ^
                                 = NULL
/datasets/git/pretty.c:896:7: warning: variable 'eol' is not initialized [cppcoreguidelines-init-variables]
                int eol;
                    ^
                        = 0
/datasets/git/pretty.c:897:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (eol = i; msg[eol] && msg[eol] != '\n'; eol++)
                ^
/datasets/git/pretty.c:897:17: warning: backward branch (for loop) is ID-dependent due to variable reference to 'msg' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (eol = i; msg[eol] && msg[eol] != '\n'; eol++)
                              ^
/datasets/git/pretty.c:897:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (eol = i; msg[eol] && msg[eol] != '\n'; eol++)
                                                                  ^
                                                                   {
/datasets/git/pretty.c:902:5: warning: do not use 'else' after 'break' [llvm-else-after-return,readability-else-after-return]
                } else if (skip_prefix(msg + i, "author ", &name)) {
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pretty.c:915:29: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static int istitlechar(char c)
                            ^
/datasets/git/pretty.c:921:46: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void format_sanitized_subject(struct strbuf *sb, const char *msg, size_t len)
                                             ^
/datasets/git/pretty.c:923:9: warning: variable 'trimlen' is not initialized [cppcoreguidelines-init-variables]
        size_t trimlen;
               ^
                       = 0
/datasets/git/pretty.c:926:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/pretty.c:926:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pretty.c:930:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (space == 1)
                                       ^
                                        {
/datasets/git/pretty.c:934:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (msg[i] == '.')
                                          ^
                                           {
/datasets/git/pretty.c:935:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                while (msg[i+1] == '.')
                                ^
/datasets/git/pretty.c:935:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                while (msg[i+1] == '.')
                                                       ^
                                                        {
/datasets/git/pretty.c:937:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/pretty.c:938:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        space |= 1;
                        ^~~~~
/datasets/git/pretty.c:943:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (sb->len - trimlen > start_len &&
        ^
/datasets/git/pretty.c:943:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'start_len' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (sb->len - trimlen > start_len &&
               ^
/datasets/git/pretty.c:945:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                || sb->buf[sb->len - 1 - trimlen] == '-'))
                                                          ^
                                                           {
/datasets/git/pretty.c:950:43: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
const char *format_subject(struct strbuf *sb, const char *msg,
                                          ^
/datasets/git/pretty.c:950:47: warning: 2 adjacent parameters of 'format_subject' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
const char *format_subject(struct strbuf *sb, const char *msg,
                                              ^~~~~~~~~~~~~~~~
/datasets/git/pretty.c:950:59: note: the first parameter in the range is 'msg'
const char *format_subject(struct strbuf *sb, const char *msg,
                                                          ^~~
/datasets/git/pretty.c:951:19: note: the last parameter in the range is 'line_separator'
                           const char *line_separator)
                                       ^~~~~~~~~~~~~~
/datasets/git/pretty.c:955:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/pretty.c:960:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!linelen || is_blank_line(line, &linelen))
                                                              ^
                                                               {
/datasets/git/pretty.c:963:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!sb)
                        ^
                         {
/datasets/git/pretty.c:966:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!first)
                           ^
                            {
/datasets/git/pretty.c:974:64: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static void parse_commit_message(struct format_commit_context *c)
                                                               ^
/datasets/git/pretty.c:989:40: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static void strbuf_wrap(struct strbuf *sb, size_t pos,
                                       ^
/datasets/git/pretty.c:994:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pos)
                ^
                 {
/datasets/git/pretty.c:1002:48: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static void rewrap_message_tail(struct strbuf *sb,
                                               ^
/datasets/git/pretty.c:1003:35: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                                struct format_commit_context *c,
                                                              ^
/datasets/git/pretty.c:1008:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            c->indent2 == new_indent2)
                                      ^
                                       {
/datasets/git/pretty.c:1010:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (c->wrap_start < sb->len)
                                    ^
                                     {
/datasets/git/pretty.c:1018:48: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static int format_reflog_person(struct strbuf *sb,
                                               ^
/datasets/git/pretty.c:1023:14: warning: variable 'ident' is not initialized [cppcoreguidelines-init-variables]
        const char *ident;
                    ^
                          = NULL
/datasets/git/pretty.c:1025:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!log)
                 ^
                  {
/datasets/git/pretty.c:1029:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ident)
                   ^
                    {
/datasets/git/pretty.c:1032:9: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return format_person_part(sb, part, ident, strlen(ident), dmode);
               ^
/datasets/git/pretty.c:1032:45: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return format_person_part(sb, part, ident, strlen(ident), dmode);
                                                   ^
/datasets/git/pretty.c:1035:42: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static size_t parse_color(struct strbuf *sb, /* in UTF-8 */
                                         ^
/datasets/git/pretty.c:1037:36: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                          struct format_commit_context *c)
                                                        ^
/datasets/git/pretty.c:1047:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!end)
                         ^
                          {
/datasets/git/pretty.c:1050:44: warning: repeated branch in conditional chain [bugprone-branch-clone]
                if (skip_prefix(begin, "auto,", &begin)) {
                                                         ^
/datasets/git/pretty.c:1053:4: note: end of the original
                } else if (skip_prefix(begin, "always,", &begin)) {
                 ^
/datasets/git/pretty.c:1055:10: note: clone 1 starts here
                } else {
                       ^
/datasets/git/pretty.c:1051:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!want_color(c->pretty_ctx->color))
                                                              ^
                                                               {
/datasets/git/pretty.c:1057:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!want_color(c->pretty_ctx->color))
                                                              ^
                                                               {
/datasets/git/pretty.c:1061:30: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                if (color_parse_mem(begin, end - begin, color) < 0)
                                           ^
/datasets/git/pretty.c:1061:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (color_parse_mem(begin, end - begin, color) < 0)
                                                                   ^
                                                                    {
/datasets/git/pretty.c:1072:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (skip_prefix(placeholder + 1, "red", &rest))
                                                       ^
                                                        {
/datasets/git/pretty.c:1074:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (skip_prefix(placeholder + 1, "green", &rest))
                                                              ^
                                                               {
/datasets/git/pretty.c:1076:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (skip_prefix(placeholder + 1, "blue", &rest))
                                                             ^
                                                              {
/datasets/git/pretty.c:1078:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (skip_prefix(placeholder + 1, "reset", &rest))
                                                              ^
                                                               {
/datasets/git/pretty.c:1081:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (basic_color && want_color(c->pretty_ctx->color))
                                                            ^
                                                             {
/datasets/git/pretty.c:1087:15: warning: function 'parse_padding_placeholder' has cognitive complexity of 36 (threshold 25) [readability-function-cognitive-complexity]
static size_t parse_padding_placeholder(const char *placeholder,
              ^
/datasets/git/pretty.c:1094:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        switch (*ch++) {
        ^
/datasets/git/pretty.c:1099:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*ch == '<') {
                ^
/datasets/git/pretty.c:1102:10: note: +1, nesting level increased to 2
                } else if (*ch == '>') {
                       ^
/datasets/git/pretty.c:1105:5: note: +1, nesting level increased to 2
                } else
                  ^
/datasets/git/pretty.c:1113:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (*ch == '|') {
        ^
/datasets/git/pretty.c:1118:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (*ch == '(') {
        ^
/datasets/git/pretty.c:1123:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!end || end == start)
                ^
/datasets/git/pretty.c:1123:12: note: +1
                if (!end || end == start)
                         ^
/datasets/git/pretty.c:1126:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (next == start || width == 0)
                ^
/datasets/git/pretty.c:1126:21: note: +1
                if (next == start || width == 0)
                                  ^
/datasets/git/pretty.c:1128:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (width < 0) {
                ^
/datasets/git/pretty.c:1129:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (to_column)
                        ^
/datasets/git/pretty.c:1131:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (width < 0)
                        ^
/datasets/git/pretty.c:1134:26: note: +2, including nesting penalty of 1, nesting level increased to 2
                c->padding = to_column ? -width : width;
                                       ^
/datasets/git/pretty.c:1137:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*end == ',') {
                ^
/datasets/git/pretty.c:1140:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!end || end == start)
                        ^
/datasets/git/pretty.c:1140:13: note: +1
                        if (!end || end == start)
                                 ^
/datasets/git/pretty.c:1142:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (starts_with(start, "trunc)"))
                        ^
/datasets/git/pretty.c:1144:9: note: +1, nesting level increased to 3
                        else if (starts_with(start, "ltrunc)"))
                             ^
/datasets/git/pretty.c:1146:9: note: +1, nesting level increased to 3
                        else if (starts_with(start, "mtrunc)"))
                             ^
/datasets/git/pretty.c:1148:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/pretty.c:1150:5: note: +1, nesting level increased to 2
                } else
                  ^
/datasets/git/pretty.c:1088:36: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                                        struct format_commit_context *c)
                                                                      ^
/datasets/git/pretty.c:1090:14: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
        const char *ch = placeholder;
                    ^
/datasets/git/pretty.c:1091:18: warning: variable 'flush_type' is not initialized [cppcoreguidelines-init-variables]
        enum flush_type flush_type;
                        ^
/datasets/git/pretty.c:1105:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/pretty.c:1121:9: warning: variable 'next' is not initialized [cppcoreguidelines-init-variables]
                char *next;
                      ^
                           = NULL
/datasets/git/pretty.c:1122:7: warning: variable 'width' is not initialized [cppcoreguidelines-init-variables]
                int width;
                    ^
                          = 0
/datasets/git/pretty.c:1123:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!end || end == start)
                                         ^
                                          {
/datasets/git/pretty.c:1125:11: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                width = strtol(start, &next, 10);
                        ^
/datasets/git/pretty.c:1125:32: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                width = strtol(start, &next, 10);
                                             ^
/datasets/git/pretty.c:1126:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (next == start || width == 0)
                                                ^
                                                 {
/datasets/git/pretty.c:1129:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (to_column)
                                      ^
                                       {
/datasets/git/pretty.c:1131:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (width < 0)
                                      ^
                                       {
/datasets/git/pretty.c:1140:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!end || end == start)
                                                 ^
                                                  {
/datasets/git/pretty.c:1142:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (starts_with(start, "trunc)"))
                                                         ^
                                                          {
/datasets/git/pretty.c:1144:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (starts_with(start, "ltrunc)"))
                                                               ^
                                                                {
/datasets/git/pretty.c:1146:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (starts_with(start, "mtrunc)"))
                                                               ^
                                                                {
/datasets/git/pretty.c:1148:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/pretty.c:1150:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/pretty.c:1162:14: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        const char *p;
                    ^
                      = NULL
/datasets/git/pretty.c:1162:14: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pretty.c:1164:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(skip_prefix(to_parse, candidate, &p)))
                                                    ^
                                                     {
/datasets/git/pretty.c:1172:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (*p != ',' && *p != ')')
                                                   ^
                                                    {
/datasets/git/pretty.c:1192:14: warning: variable 'argval' is not initialized [cppcoreguidelines-init-variables]
        const char *argval;
                    ^
                           = NULL
/datasets/git/pretty.c:1193:8: warning: variable 'strval' is not initialized [cppcoreguidelines-init-variables]
        char *strval;
              ^
                     = NULL
/datasets/git/pretty.c:1194:9: warning: variable 'arglen' is not initialized [cppcoreguidelines-init-variables]
        size_t arglen;
               ^
                      = 0
/datasets/git/pretty.c:1195:6: warning: variable 'v' is not initialized [cppcoreguidelines-init-variables]
        int v;
            ^
              = 0
/datasets/git/pretty.c:1195:6: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pretty.c:1197:79: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!match_placeholder_arg_value(to_parse, candidate, end, &argval, &arglen))
                                                                                     ^
                                                                                      {
/datasets/git/pretty.c:1209:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (v == -1)
                    ^
                     {
/datasets/git/pretty.c:1217:68: warning: parameter name 'ud' is too short, expected at least 3 characters [readability-identifier-length]
static int format_trailer_match_cb(const struct strbuf *key, void *ud)
                                                                   ^
/datasets/git/pretty.c:1220:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        const struct string_list_item *item;
        ^
/datasets/git/pretty.c:1220:33: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        const struct string_list_item *item;
                                       ^
                                            = NULL
/datasets/git/pretty.c:1222:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item (item, list) {
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/pretty.c:1222:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item (item, list) {
                                   ^
/datasets/git/pretty.c:1224:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !strncasecmp(item->string, key->buf, key->len))
                                                                   ^
                                                                    {
/datasets/git/pretty.c:1237:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/pretty.c:1238:15: warning: variable 'argval' is not initialized [cppcoreguidelines-init-variables]
                const char *argval;
                            ^
                                   = NULL
/datasets/git/pretty.c:1239:10: warning: variable 'arglen' is not initialized [cppcoreguidelines-init-variables]
                size_t arglen;
                       ^
                              = 0
/datasets/git/pretty.c:1241:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (**arg == ')')
                                 ^
                                  {
/datasets/git/pretty.c:1247:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!argval)
                                    ^
                                     {
/datasets/git/pretty.c:1250:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (len && argval[len - 1] == ':')
                                                          ^
                                                           {
/datasets/git/pretty.c:1252:52: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
                        string_list_append(filter_list, argval)->util = (char *)len;
                                                                        ^
/datasets/git/pretty.c:1258:10: warning: variable 'fmt' is not initialized [cppcoreguidelines-init-variables]
                        char *fmt;
                              ^
                                  = NULL
/datasets/git/pretty.c:1266:10: warning: variable 'fmt' is not initialized [cppcoreguidelines-init-variables]
                        char *fmt;
                              ^
                                  = NULL
/datasets/git/pretty.c:1287:15: warning: function 'parse_describe_args' has cognitive complexity of 42 (threshold 25) [readability-function-cognitive-complexity]
static size_t parse_describe_args(const char *start, struct strvec *args)
              ^
/datasets/git/pretty.c:1304:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (;;) {
        ^
/datasets/git/pretty.c:1311:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; !found && i < ARRAY_SIZE(option); i++) {
                ^
/datasets/git/pretty.c:1311:22: note: +1
                for (i = 0; !found && i < ARRAY_SIZE(option); i++) {
                                   ^
/datasets/git/pretty.c:1312:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        switch (option[i].type) {
                        ^
/datasets/git/pretty.c:1314:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (match_placeholder_bool_arg(arg, option[i].name, &arg, &optval)) {
                                ^
/datasets/git/pretty.c:1315:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (optval)
                                        ^
/datasets/git/pretty.c:1317:6: note: +1, nesting level increased to 5
                                        else
                                        ^
/datasets/git/pretty.c:1323:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (match_placeholder_arg_value(arg, option[i].name, &arg,
                                ^
/datasets/git/pretty.c:1326:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (!arglen)
                                        ^
/datasets/git/pretty.c:1329:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (endptr - argval != arglen)
                                        ^
/datasets/git/pretty.c:1336:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (match_placeholder_arg_value(arg, option[i].name, &arg,
                                ^
/datasets/git/pretty.c:1338:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (!arglen)
                                        ^
/datasets/git/pretty.c:1346:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!found)
                ^
/datasets/git/pretty.c:1289:2: warning: accessing fields in struct '' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
        struct {
        ^
/datasets/git/pretty.c:1289:2: note: use "__attribute__((aligned(16)))" to align struct '' to 16 bytes
/datasets/git/pretty.c:1306:15: warning: variable 'argval' is not initialized [cppcoreguidelines-init-variables]
                const char *argval;
                            ^
                                   = NULL
/datasets/git/pretty.c:1309:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/pretty.c:1309:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pretty.c:1311:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; !found && i < ARRAY_SIZE(option); i++) {
                ^
/datasets/git/pretty.c:1315:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        if (optval)
                                                   ^
                                                    {
/datasets/git/pretty.c:1317:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        else
                                            ^
                                             {
/datasets/git/pretty.c:1325:12: warning: variable 'endptr' is not initialized [cppcoreguidelines-init-variables]
                                        char *endptr;
                                              ^
                                                     = NULL
/datasets/git/pretty.c:1326:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        if (!arglen)
                                                    ^
                                                     {
/datasets/git/pretty.c:1328:6: warning: the value returned by this function should be used [cert-err33-c]
                                        strtol(argval, &endptr, 10);
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pretty.c:1328:6: note: cast the expression to void to silence this warning
/datasets/git/pretty.c:1328:30: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                        strtol(argval, &endptr, 10);
                                                                ^
/datasets/git/pretty.c:1329:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        if (endptr - argval != arglen)
                                                                      ^
                                                                       {
/datasets/git/pretty.c:1338:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        if (!arglen)
                                                    ^
                                                     {
/datasets/git/pretty.c:1346:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!found)
                           ^
                            {
/datasets/git/pretty.c:1353:15: warning: function 'format_commit_one' has cognitive complexity of 113 (threshold 25) [readability-function-cognitive-complexity]
static size_t format_commit_one(struct strbuf *sb, /* in UTF-8 */
              ^
/datasets/git/pretty.c:1367:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (res)
        ^
/datasets/git/pretty.c:1370:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        switch (placeholder[0]) {
        ^
/datasets/git/pretty.c:1372:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (starts_with(placeholder + 1, "(auto)")) {
                ^
/datasets/git/pretty.c:1374:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (c->auto_color && sb->len)
                        ^
/datasets/git/pretty.c:1374:22: note: +1
                        if (c->auto_color && sb->len)
                                          ^
/datasets/git/pretty.c:1377:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/pretty.c:1379:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ret)
                        ^
/datasets/git/pretty.c:1389:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (placeholder[1] == '(') {
                ^
/datasets/git/pretty.c:1394:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!end)
                        ^
/datasets/git/pretty.c:1396:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (end > start) {
                        ^
/datasets/git/pretty.c:1398:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (*next == ',') {
                                ^
/datasets/git/pretty.c:1400:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (*next == ',') {
                                        ^
/datasets/git/pretty.c:1405:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (*next != ')')
                                ^
/datasets/git/pretty.c:1410:5: note: +1, nesting level increased to 2
                } else
                  ^
/datasets/git/pretty.c:1418:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (skip_prefix(placeholder, "(describe", &arg)) {
        ^
/datasets/git/pretty.c:1425:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (describe_status) {
                ^
/datasets/git/pretty.c:1426:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!describe_status->max_invocations)
                        ^
/datasets/git/pretty.c:1434:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*arg == ':') {
                ^
/datasets/git/pretty.c:1439:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*arg != ')') {
                ^
/datasets/git/pretty.c:1454:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!commit->object.parsed)
        ^
/datasets/git/pretty.c:1457:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        switch (placeholder[0]) {
        ^
/datasets/git/pretty.c:1478:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (p = commit->parents; p; p = p->next) {
                ^
/datasets/git/pretty.c:1479:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (p != commit->parents)
                        ^
/datasets/git/pretty.c:1485:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (p = commit->parents; p; p = p->next) {
                ^
/datasets/git/pretty.c:1486:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (p != commit->parents)
                        ^
/datasets/git/pretty.c:1502:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!(c->pretty_ctx->rev && c->pretty_ctx->rev->sources))
                ^
/datasets/git/pretty.c:1502:28: note: +1
                if (!(c->pretty_ctx->rev && c->pretty_ctx->rev->sources))
                                         ^
/datasets/git/pretty.c:1505:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!(slot && *slot))
                ^
/datasets/git/pretty.c:1505:14: note: +1
                if (!(slot && *slot))
                           ^
/datasets/git/pretty.c:1510:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                switch(placeholder[1]) {
                ^
/datasets/git/pretty.c:1513:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (c->pretty_ctx->reflog_info)
                        ^
/datasets/git/pretty.c:1521:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (c->pretty_ctx->reflog_info)
                        ^
/datasets/git/pretty.c:1535:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (c->pretty_ctx->notes_message) {
                ^
/datasets/git/pretty.c:1542:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (placeholder[0] == 'G') {
        ^
/datasets/git/pretty.c:1543:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!c->signature_check.result)
                ^
/datasets/git/pretty.c:1545:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                switch (placeholder[1]) {
                ^
/datasets/git/pretty.c:1547:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (c->signature_check.output)
                        ^
/datasets/git/pretty.c:1551:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        switch (c->signature_check.result) {
                        ^
/datasets/git/pretty.c:1553:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                switch (c->signature_check.trust_level) {
                                ^
/datasets/git/pretty.c:1573:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (c->signature_check.signer)
                        ^
/datasets/git/pretty.c:1577:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (c->signature_check.key)
                        ^
/datasets/git/pretty.c:1581:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (c->signature_check.fingerprint)
                        ^
/datasets/git/pretty.c:1585:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (c->signature_check.primary_key_fingerprint)
                        ^
/datasets/git/pretty.c:1598:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!c->commit_header_parsed) {
        ^
/datasets/git/pretty.c:1605:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        switch (placeholder[0]) {
        ^
/datasets/git/pretty.c:1615:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (c->commit_encoding)
                ^
/datasets/git/pretty.c:1625:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!c->commit_message_parsed)
        ^
/datasets/git/pretty.c:1628:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        switch (placeholder[0]) {
        ^
/datasets/git/pretty.c:1641:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (skip_prefix(placeholder, "(trailers", &arg)) {
        ^
/datasets/git/pretty.c:1650:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*arg == ':') {
                ^
/datasets/git/pretty.c:1652:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (format_set_trailers_options(&opts, &filter_list, &sepbuf, &kvsepbuf, &arg, NULL))
                        ^
/datasets/git/pretty.c:1655:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*arg == ')') {
                ^
/datasets/git/pretty.c:1353:48: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static size_t format_commit_one(struct strbuf *sb, /* in UTF-8 */
                                               ^
/datasets/git/pretty.c:1357:32: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        struct format_commit_context *c = context;
                                      ^
/datasets/git/pretty.c:1360:22: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *p;
                            ^
                              = NULL
/datasets/git/pretty.c:1360:22: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pretty.c:1361:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *arg, *eol;
        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pretty.c:1361:14: warning: variable 'arg' is not initialized [cppcoreguidelines-init-variables]
        const char *arg, *eol;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pretty.c:1361:20: warning: variable 'eol' is not initialized [cppcoreguidelines-init-variables]
        const char *arg, *eol;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pretty.c:1362:9: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        size_t res;
               ^
                   = 0
/datasets/git/pretty.c:1363:9: warning: variable 'slot' is not initialized [cppcoreguidelines-init-variables]
        char **slot;
               ^
                    = NULL
/datasets/git/pretty.c:1367:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (res)
                ^
                 {
/datasets/git/pretty.c:1374:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (c->auto_color && sb->len)
                                                     ^
                                                      {
/datasets/git/pretty.c:1376:11: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        return 7; /* consumed 7 bytes, "C(auto)" */
                               ^
/datasets/git/pretty.c:1378:14: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        int ret = parse_color(sb, placeholder, c);
                                  ^
/datasets/git/pretty.c:1379:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ret)
                                ^
                                 {
/datasets/git/pretty.c:1390:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        unsigned long width = 0, indent1 = 0, indent2 = 0;
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pretty.c:1391:10: warning: variable 'next' is not initialized [cppcoreguidelines-init-variables]
                        char *next;
                              ^
                                   = NULL
/datasets/git/pretty.c:1394:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!end)
                                 ^
                                  {
/datasets/git/pretty.c:1397:35: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                width = strtoul(start, &next, 10);
                                                              ^
/datasets/git/pretty.c:1399:41: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                        indent1 = strtoul(next + 1, &next, 10);
                                                                           ^
/datasets/git/pretty.c:1402:17: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                                                 &next, 10);
                                                                        ^
/datasets/git/pretty.c:1405:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (*next != ')')
                                                 ^
                                                  {
/datasets/git/pretty.c:1410:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/pretty.c:1422:40: warning: variable 'describe_status' is not initialized [cppcoreguidelines-init-variables]
                struct pretty_print_describe_status *describe_status;
                                                     ^
                                                                     = NULL
/datasets/git/pretty.c:1426:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!describe_status->max_invocations)
                                                              ^
                                                               {
/datasets/git/pretty.c:1454:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!commit->object.parsed)
                                   ^
                                    {
/datasets/git/pretty.c:1478:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (p = commit->parents; p; p = p->next) {
                ^
/datasets/git/pretty.c:1478:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (p = commit->parents; p; p = p->next) {
                                          ^
/datasets/git/pretty.c:1479:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (p != commit->parents)
                                                 ^
                                                  {
/datasets/git/pretty.c:1485:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (p = commit->parents; p; p = p->next) {
                ^
/datasets/git/pretty.c:1485:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (p = commit->parents; p; p = p->next) {
                                          ^
/datasets/git/pretty.c:1486:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (p != commit->parents)
                                                 ^
                                                  {
/datasets/git/pretty.c:1502:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(c->pretty_ctx->rev && c->pretty_ctx->rev->sources))
                                                                         ^
                                                                          {
/datasets/git/pretty.c:1505:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(slot && *slot))
                                     ^
                                      {
/datasets/git/pretty.c:1513:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (c->pretty_ctx->reflog_info)
                                                       ^
                                                        {
/datasets/git/pretty.c:1521:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (c->pretty_ctx->reflog_info)
                                                       ^
                                                        {
/datasets/git/pretty.c:1543:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!c->signature_check.result)
                                               ^
                                                {
/datasets/git/pretty.c:1547:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (c->signature_check.output)
                                                      ^
                                                       {
/datasets/git/pretty.c:1573:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (c->signature_check.signer)
                                                      ^
                                                       {
/datasets/git/pretty.c:1577:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (c->signature_check.key)
                                                   ^
                                                    {
/datasets/git/pretty.c:1581:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (c->signature_check.fingerprint)
                                                           ^
                                                            {
/datasets/git/pretty.c:1585:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (c->signature_check.primary_key_fingerprint)
                                                                       ^
                                                                        {
/datasets/git/pretty.c:1608:29: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                   msg + c->author.off, c->author.len,
                                                        ^
/datasets/git/pretty.c:1612:32: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                   msg + c->committer.off, c->committer.len,
                                                           ^
/datasets/git/pretty.c:1615:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (c->commit_encoding)
                                       ^
                                        {
/datasets/git/pretty.c:1625:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!c->commit_message_parsed)
                                      ^
                                       {
/datasets/git/pretty.c:1633:9: warning: Null pointer passed to 1st parameter expecting 'nonnull' [clang-analyzer-core.NonNullParamChecker]
                eol = strchrnul(msg + c->subject_off, '\n');
                      ^         ~~~~~~~~~~~~~~~~~~~~
/datasets/git/pretty.c:1367:6: note: Assuming 'res' is 0
        if (res)
            ^~~
/datasets/git/pretty.c:1367:2: note: Taking false branch
        if (res)
        ^
/datasets/git/pretty.c:1370:2: note: 'Default' branch taken. Execution continues on line 1418
        switch (placeholder[0]) {
        ^
/datasets/git/pretty.c:1418:6: note: Assuming the condition is false
        if (skip_prefix(placeholder, "(describe", &arg)) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pretty.c:1418:2: note: Taking false branch
        if (skip_prefix(placeholder, "(describe", &arg)) {
        ^
/datasets/git/pretty.c:1454:6: note: Assuming field 'parsed' is 0
        if (!commit->object.parsed)
            ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pretty.c:1454:2: note: Taking true branch
        if (!commit->object.parsed)
        ^
/datasets/git/pretty.c:1457:2: note: 'Default' branch taken. Execution continues on line 1542
        switch (placeholder[0]) {
        ^
/datasets/git/pretty.c:1542:6: note: Assuming the condition is false
        if (placeholder[0] == 'G') {
            ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/pretty.c:1542:2: note: Taking false branch
        if (placeholder[0] == 'G') {
        ^
/datasets/git/pretty.c:1598:6: note: Assuming field 'commit_header_parsed' is 0
        if (!c->commit_header_parsed) {
            ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pretty.c:1598:2: note: Taking true branch
        if (!c->commit_header_parsed) {
        ^
/datasets/git/pretty.c:1599:3: note: Null pointer value stored to 'msg'
                msg = c->message =
                ^~~~~~~~~~~~~~~~~~
/datasets/git/pretty.c:1605:2: note: 'Default' branch taken. Execution continues on line 1625
        switch (placeholder[0]) {
        ^
/datasets/git/pretty.c:1625:6: note: Assuming field 'commit_message_parsed' is not equal to 0
        if (!c->commit_message_parsed)
            ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pretty.c:1625:2: note: Taking false branch
        if (!c->commit_message_parsed)
        ^
/datasets/git/pretty.c:1628:2: note: Control jumps to 'case 102:'  at line 1632
        switch (placeholder[0]) {
        ^
/datasets/git/pretty.c:1633:9: note: Null pointer passed to 1st parameter expecting 'nonnull'
                eol = strchrnul(msg + c->subject_off, '\n');
                      ^         ~~~~~~~~~~~~~~~~~~~~
/datasets/git/pretty.c:1652:89: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (format_set_trailers_options(&opts, &filter_list, &sepbuf, &kvsepbuf, &arg, NULL))
                                                                                                             ^
                                                                                                              {
/datasets/git/pretty.c:1668:15: warning: function 'format_and_pad_commit' has cognitive complexity of 33 (threshold 25) [readability-function-cognitive-complexity]
static size_t format_and_pad_commit(struct strbuf *sb, /* in UTF-8 */
              ^
/datasets/git/pretty.c:1674:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (padding < 0) {
        ^
/datasets/git/pretty.c:1677:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!start)
                ^
/datasets/git/pretty.c:1683:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (1) {
        ^
/datasets/git/pretty.c:1688:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!modifier)
                ^
/datasets/git/pretty.c:1692:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*placeholder != '%')
                ^
/datasets/git/pretty.c:1699:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (c->flush_type == flush_left_and_steal) {
        ^
/datasets/git/pretty.c:1701:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (len > padding && ch > sb->buf) {
                ^
/datasets/git/pretty.c:1701:24: note: +1
                while (len > padding && ch > sb->buf) {
                                     ^
/datasets/git/pretty.c:1703:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (*ch == ' ') {
                        ^
/datasets/git/pretty.c:1709:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (*ch != 'm')
                        ^
/datasets/git/pretty.c:1712:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (ch - p < 10 && *p != '\033')
                        ^
/datasets/git/pretty.c:1712:23: note: +1
                        while (ch - p < 10 && *p != '\033')
                                           ^
/datasets/git/pretty.c:1714:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (*p != '\033' ||
                        ^
/datasets/git/pretty.c:1714:21: note: +1
                        if (*p != '\033' ||
                                         ^
/datasets/git/pretty.c:1728:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (len > padding) {
        ^
/datasets/git/pretty.c:1729:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                switch (c->truncate) {
                ^
/datasets/git/pretty.c:1750:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/pretty.c:1752:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (c->flush_type == flush_left)
                ^
/datasets/git/pretty.c:1754:8: note: +1, nesting level increased to 2
                else if (c->flush_type == flush_both)
                     ^
/datasets/git/pretty.c:1668:52: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static size_t format_and_pad_commit(struct strbuf *sb, /* in UTF-8 */
                                                   ^
/datasets/git/pretty.c:1670:39: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                                    struct format_commit_context *c)
                                                                  ^
/datasets/git/pretty.c:1673:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int total_consumed = 0, len, padding = c->padding;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pretty.c:1673:26: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int total_consumed = 0, len, padding = c->padding;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pretty.c:1676:7: warning: variable 'occupied' is not initialized [cppcoreguidelines-init-variables]
                int occupied;
                    ^
                             = 0
/datasets/git/pretty.c:1677:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!start)
                           ^
                            {
/datasets/git/pretty.c:1683:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/pretty.c:1685:18: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int consumed = format_commit_one(&local_sb, placeholder, c);
                               ^
/datasets/git/pretty.c:1688:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!modifier)
                              ^
                               {
/datasets/git/pretty.c:1692:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*placeholder != '%')
                                        ^
                                         {
/datasets/git/pretty.c:1700:15: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
                const char *ch = sb->buf + sb->len - 1;
                            ^
/datasets/git/pretty.c:1701:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (len > padding && ch > sb->buf) {
                       ^
/datasets/git/pretty.c:1702:16: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                        const char *p;
                                    ^
                                      = NULL
/datasets/git/pretty.c:1702:16: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pretty.c:1709:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (*ch != 'm')
                                       ^
                                        {
/datasets/git/pretty.c:1712:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (ch - p < 10 && *p != '\033')
                        ^
/datasets/git/pretty.c:1712:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'ch' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (ch - p < 10 && *p != '\033')
                               ^
/datasets/git/pretty.c:1712:20: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        while (ch - p < 10 && *p != '\033')
                                        ^
/datasets/git/pretty.c:1712:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        while (ch - p < 10 && *p != '\033')
                                                           ^
                                                            {
/datasets/git/pretty.c:1715:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            ch + 1 - p != display_mode_esc_sequence_len(p))
                                                                           ^
                                                                            {
/datasets/git/pretty.c:1751:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int sb_len = sb->len, offset = 0;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pretty.c:1751:16: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int sb_len = sb->len, offset = 0;
                             ^
/datasets/git/pretty.c:1752:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (c->flush_type == flush_left)
                                                ^
                                                 {
/datasets/git/pretty.c:1754:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (c->flush_type == flush_both)
                                                     ^
                                                      {
/datasets/git/pretty.c:1760:13: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                padding = padding - len + local_sb.len;
                          ^
/datasets/git/pretty.c:1762:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(sb->buf + sb_len + offset, local_sb.buf,
                ^~~~~~
/datasets/git/pretty.c:1762:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(sb->buf + sb_len + offset, local_sb.buf,
                ^~~~~~
/datasets/git/pretty.c:1770:49: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static size_t format_commit_item(struct strbuf *sb, /* in UTF-8 */
                                                ^
/datasets/git/pretty.c:1774:6: warning: variable 'consumed' is not initialized [cppcoreguidelines-init-variables]
        int consumed;
            ^
                     = 0
/datasets/git/pretty.c:1775:9: warning: variable 'orig_len' is not initialized [cppcoreguidelines-init-variables]
        size_t orig_len;
               ^
                        = 0
/datasets/git/pretty.c:1796:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (magic != NO_MAGIC)
                              ^
                               {
/datasets/git/pretty.c:1800:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (((struct format_commit_context *)context)->flush_type != no_flush)
                                                                              ^
                                                                               {
/datasets/git/pretty.c:1801:14: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                consumed = format_and_pad_commit(sb, placeholder, context);
                           ^
/datasets/git/pretty.c:1802:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/pretty.c:1803:14: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                consumed = format_commit_one(sb, placeholder, context);
                           ^
/datasets/git/pretty.c:1804:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (magic == NO_MAGIC)
                              ^
                               {
/datasets/git/pretty.c:1808:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (sb->len && sb->buf[sb->len - 1] == '\n')
                ^
/datasets/git/pretty.c:1808:10: warning: backward branch (while loop) is ID-dependent due to member reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (sb->len && sb->buf[sb->len - 1] == '\n')
                       ^
/datasets/git/pretty.c:1808:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (sb->len && sb->buf[sb->len - 1] == '\n')
                                                               ^
                                                                {
/datasets/git/pretty.c:1811:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (magic == ADD_LF_BEFORE_NON_EMPTY)
                                                     ^
                                                      {
/datasets/git/pretty.c:1813:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (magic == ADD_SP_BEFORE_NON_EMPTY)
                                                          ^
                                                           {
/datasets/git/pretty.c:1819:51: warning: parameter 'sb' is unused [misc-unused-parameters]
static size_t userformat_want_item(struct strbuf *sb, const char *placeholder,
                                                  ^
/datasets/git/pretty.c:1819:51: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pretty.c:1822:26: warning: variable name 'w' is too short, expected at least 3 characters [readability-identifier-length]
        struct userformat_want *w = context;
                                ^
/datasets/git/pretty.c:1824:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*placeholder == '+' || *placeholder == '-' || *placeholder == ' ')
                                                                              ^
                                                                               {
/datasets/git/pretty.c:1842:76: warning: parameter name 'w' is too short, expected at least 3 characters [readability-identifier-length]
void userformat_find_requirements(const char *fmt, struct userformat_want *w)
                                                                           ^
/datasets/git/pretty.c:1847:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!user_format)
                                 ^
                                  {
/datasets/git/pretty.c:1855:52: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void repo_format_commit_message(struct repository *r,
                                                   ^
/datasets/git/pretty.c:1857:40: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                                const char *format, struct strbuf *sb,
                                                                   ^
/datasets/git/pretty.c:1878:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (same_encoding(utf8, output_enc))
                                                    ^
                                                     {
/datasets/git/pretty.c:1882:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !same_encoding(context.commit_encoding, utf8))
                                                                  ^
                                                                   {
/datasets/git/pretty.c:1887:10: warning: variable 'outsz' is not initialized [cppcoreguidelines-init-variables]
                size_t outsz;
                       ^
                             = 0
/datasets/git/pretty.c:1890:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (out)
                        ^
                         {
/datasets/git/pretty.c:1898:52: warning: parameter name 'pp' is too short, expected at least 3 characters [readability-identifier-length]
static void pp_header(struct pretty_print_context *pp,
                                                   ^
/datasets/git/pretty.c:1902:24: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                      struct strbuf *sb)
                                     ^
/datasets/git/pretty.c:1906:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/pretty.c:1907:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                const char *name, *line = *msg_p;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pretty.c:1907:15: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
                const char *name, *line = *msg_p;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pretty.c:1910:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!linelen)
                             ^
                              {
/datasets/git/pretty.c:1914:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (linelen == 1)
                                 ^
                                  {
/datasets/git/pretty.c:1924:42: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        if (linelen != the_hash_algo->hexsz + 8)
                                                              ^
/datasets/git/pretty.c:1924:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (linelen != the_hash_algo->hexsz + 8)
                                                                ^
                                                                 {
/datasets/git/pretty.c:1932:43: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        strbuf_grow(sb, num * (GIT_MAX_HEXSZ + 10) + 20);
                                                               ^
/datasets/git/pretty.c:1932:49: warning: 20 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        strbuf_grow(sb, num * (GIT_MAX_HEXSZ + 10) + 20);
                                                                     ^
/datasets/git/pretty.c:1943:30: warning: 80 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        strbuf_grow(sb, linelen + 80);
                                                  ^
/datasets/git/pretty.c:1948:30: warning: 80 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        strbuf_grow(sb, linelen + 80);
                                                  ^
/datasets/git/pretty.c:1954:49: warning: parameter name 'pp' is too short, expected at least 3 characters [readability-identifier-length]
void pp_title_line(struct pretty_print_context *pp,
                                                ^
/datasets/git/pretty.c:1956:21: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                   struct strbuf *sb,
                                  ^
/datasets/git/pretty.c:1963:22: warning: 80 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        strbuf_init(&title, 80);
                            ^
/datasets/git/pretty.c:1967:30: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        strbuf_grow(sb, title.len + 1024);
                                    ^
/datasets/git/pretty.c:1969:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pp->rev)
                            ^
                             {
/datasets/git/pretty.c:1972:41: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                    needs_rfc2047_encoding(title.buf, title.len))
                                                      ^
/datasets/git/pretty.c:1972:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    needs_rfc2047_encoding(title.buf, title.len))
                                                                 ^
                                                                  {
/datasets/git/pretty.c:1975:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/pretty.c:1976:44: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        strbuf_add_wrapped_bytes(sb, title.buf, title.len,
                                                                ^
/datasets/git/pretty.c:1984:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/pretty.c:1984:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pretty.c:1985:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < pp->in_body_headers.nr; i++) {
                ^
/datasets/git/pretty.c:2008:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/pretty.c:2008:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pretty.c:2023:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        size_t remain = end - start;
        ^
/datasets/git/pretty.c:2009:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < pp->in_body_headers.nr; i++) {
                ^
/datasets/git/pretty.c:2025:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (remain) {
        ^
/datasets/git/pretty.c:2025:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'remain' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (remain) {
               ^
/datasets/git/pretty.c:2026:7: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
                int n = utf8_width(&start, &remain);
                    ^
/datasets/git/pretty.c:2027:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (n < 0 || !start)
                                    ^
                                     {
/datasets/git/pretty.c:2034:49: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static void strbuf_add_tabexpand(struct strbuf *sb, struct grep_opt *opt,
                                                ^
/datasets/git/pretty.c:2038:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        const char *tab;
        ^
/datasets/git/pretty.c:2035:6: warning: 2 adjacent parameters of 'strbuf_add_tabexpand' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                 int color, int tabwidth, const char *line,
                                 ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pretty.c:2035:10: note: the first parameter in the range is 'color'
                                 int color, int tabwidth, const char *line,
                                     ^~~~~
/datasets/git/pretty.c:2035:21: note: the last parameter in the range is 'tabwidth'
                                 int color, int tabwidth, const char *line,
                                                ^~~~~~~~
/datasets/git/pretty.c:2038:14: warning: variable 'tab' is not initialized [cppcoreguidelines-init-variables]
        const char *tab;
                    ^
                        = NULL
/datasets/git/pretty.c:2040:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((tab = memchr(line, '\t', linelen)) != NULL) {
        ^
/datasets/git/pretty.c:2040:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'tab' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((tab = memchr(line, '\t', linelen)) != NULL) {
               ^
/datasets/git/pretty.c:2049:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (width < 0)
                              ^
                               {
/datasets/git/pretty.c:2061:14: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                linelen -= tab + 1 - line;
                           ^
/datasets/git/pretty.c:2079:59: warning: parameter name 'pp' is too short, expected at least 3 characters [readability-identifier-length]
static void pp_handle_indent(struct pretty_print_context *pp,
                                                          ^
/datasets/git/pretty.c:2080:24: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                             struct strbuf *sb, int indent,
                                            ^
/datasets/git/pretty.c:2086:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pp->expand_tabs_in_log)
                                   ^
                                    {
/datasets/git/pretty.c:2089:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/pretty.c:2105:48: warning: parameter name 'pp' is too short, expected at least 3 characters [readability-identifier-length]
void pp_remainder(struct pretty_print_context *pp,
                                               ^
/datasets/git/pretty.c:2107:20: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                  struct strbuf *sb,
                                 ^
/datasets/git/pretty.c:2113:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/pretty.c:2118:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!linelen)
                             ^
                              {
/datasets/git/pretty.c:2122:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (first)
                                  ^
                                   {
/datasets/git/pretty.c:2124:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (pp->fmt == CMIT_FMT_SHORT)
                                                      ^
                                                       {
/datasets/git/pretty.c:2129:38: warning: 20 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                strbuf_grow(sb, linelen + indent + 20);
                                                   ^
/datasets/git/pretty.c:2130:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (indent)
                           ^
                            {
/datasets/git/pretty.c:2132:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (pp->expand_tabs_in_log)
                                                ^
                                                 {
/datasets/git/pretty.c:2138:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        is_mboxrd_from(line, linelen))
                                                                      ^
                                                                       {
/datasets/git/pretty.c:2149:55: warning: parameter name 'pp' is too short, expected at least 3 characters [readability-identifier-length]
void pretty_print_commit(struct pretty_print_context *pp,
                                                      ^
/datasets/git/pretty.c:2151:20: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                         struct strbuf *sb)
                                        ^
/datasets/git/pretty.c:2153:16: warning: variable 'beginning_of_body' is not initialized [cppcoreguidelines-init-variables]
        unsigned long beginning_of_body;
                      ^
                                        = 0
/datasets/git/pretty.c:2155:14: warning: variable 'msg' is not initialized [cppcoreguidelines-init-variables]
        const char *msg;
                    ^
                        = NULL
/datasets/git/pretty.c:2156:14: warning: variable 'reencoded' is not initialized [cppcoreguidelines-init-variables]
        const char *reencoded;
                    ^
                              = NULL
/datasets/git/pretty.c:2157:14: warning: variable 'encoding' is not initialized [cppcoreguidelines-init-variables]
        const char *encoding;
                    ^
                             = NULL
/datasets/git/pretty.c:2168:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pp->fmt == CMIT_FMT_ONELINE || cmit_fmt_is_mail(pp->fmt))
                                                                     ^
                                                                      {
/datasets/git/pretty.c:2176:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int i, ch, in_body;
                ^~~~~~~~~~~~~~~~~~~
/datasets/git/pretty.c:2176:3: note: inferred assignment of ID-dependent value from ID-dependent variable msg [altera-id-dependent-backward-branch]
/datasets/git/pretty.c:2176:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i, ch, in_body;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pretty.c:2176:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pretty.c:2176:10: warning: variable 'ch' is not initialized [cppcoreguidelines-init-variables]
                int i, ch, in_body;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pretty.c:2176:10: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/pretty.c:2176:14: warning: variable 'in_body' is not initialized [cppcoreguidelines-init-variables]
                int i, ch, in_body;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/pretty.c:2178:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (in_body = i = 0; (ch = msg[i]); i++) {
                ^
/datasets/git/pretty.c:2178:25: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ch' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (in_body = i = 0; (ch = msg[i]); i++) {
                                      ^
/datasets/git/pretty.c:2178:31: warning: 'signed char' to 'int' conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse,cert-str34-c]
                for (in_body = i = 0; (ch = msg[i]); i++) {
                                            ^
/datasets/git/pretty.c:2178:31: warning: Array access (from variable 'msg') results in a null pointer dereference [clang-analyzer-core.NullDereference]
/datasets/git/pretty.c:2231:2: note: Calling 'pretty_print_commit'
        pretty_print_commit(&pp, commit, sb);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pretty.c:2160:6: note: Assuming field 'fmt' is not equal to CMIT_FMT_USERFORMAT
        if (pp->fmt == CMIT_FMT_USERFORMAT) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pretty.c:2160:2: note: Taking false branch
        if (pp->fmt == CMIT_FMT_USERFORMAT) {
        ^
/datasets/git/pretty.c:2166:2: note: Null pointer value stored to 'msg'
        msg = reencoded = logmsg_reencode(commit, NULL, encoding);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pretty.c:2168:6: note: Assuming field 'fmt' is not equal to CMIT_FMT_ONELINE
        if (pp->fmt == CMIT_FMT_ONELINE || cmit_fmt_is_mail(pp->fmt))
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/pretty.c:2168:6: note: Left side of '||' is false
/datasets/git/pretty.c:2168:2: note: Taking true branch
        if (pp->fmt == CMIT_FMT_ONELINE || cmit_fmt_is_mail(pp->fmt))
        ^
/datasets/git/pretty.c:2175:6: note: Left side of '&&' is true
        if (cmit_fmt_is_mail(pp->fmt) && need_8bit_cte == 0) {
            ^
/datasets/git/pretty.c:2175:35: note: 'need_8bit_cte' is equal to 0
        if (cmit_fmt_is_mail(pp->fmt) && need_8bit_cte == 0) {
                                         ^~~~~~~~~~~~~
/datasets/git/pretty.c:2175:2: note: Taking true branch
        if (cmit_fmt_is_mail(pp->fmt) && need_8bit_cte == 0) {
        ^
/datasets/git/pretty.c:2178:31: note: Array access (from variable 'msg') results in a null pointer dereference
                for (in_body = i = 0; (ch = msg[i]); i++) {
                                            ^~~
/datasets/git/pretty.c:2184:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (ch == '\n' && msg[i+1] == '\n')
                                                                   ^
                                                                    {
/datasets/git/pretty.c:2203:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pp->fmt == CMIT_FMT_ONELINE || cmit_fmt_is_mail(pp->fmt))
                                                                     ^
                                                                      {
/datasets/git/pretty.c:2207:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pp->fmt != CMIT_FMT_ONELINE)
                                        ^
                                         {
/datasets/git/pretty.c:2212:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pp->fmt != CMIT_FMT_ONELINE)
                                        ^
                                         {
/datasets/git/pretty.c:2220:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cmit_fmt_is_mail(pp->fmt) && sb->len <= beginning_of_body)
                                                                      ^
                                                                       {
/datasets/git/pretty.c:2227:22: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                    struct strbuf *sb)
                                   ^
/datasets/git/pretty.c:2229:30: warning: variable name 'pp' is too short, expected at least 3 characters [readability-identifier-length]
        struct pretty_print_context pp = {0};
                                    ^
prio-queue.c:4:57: warning: parameter name 'i' is too short, expected at least 3 characters [readability-identifier-length]
static inline int compare(struct prio_queue *queue, int i, int j)
                                                        ^
prio-queue.c:4:64: warning: parameter name 'j' is too short, expected at least 3 characters [readability-identifier-length]
static inline int compare(struct prio_queue *queue, int i, int j)
                                                               ^
/datasets/git/prio-queue.c:8:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!cmp)
                 ^
                  {
/datasets/git/prio-queue.c:9:9: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                cmp = queue->array[i].ctr - queue->array[j].ctr;
                      ^
/datasets/git/prio-queue.c:13:55: warning: parameter name 'i' is too short, expected at least 3 characters [readability-identifier-length]
static inline void swap(struct prio_queue *queue, int i, int j)
                                                      ^
/datasets/git/prio-queue.c:13:62: warning: parameter name 'j' is too short, expected at least 3 characters [readability-identifier-length]
static inline void swap(struct prio_queue *queue, int i, int j)
                                                             ^
/datasets/git/prio-queue.c:15:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        SWAP(queue->array[i], queue->array[j]);
        ^
/datasets/git/./git-compat-util.h:759:20: note: expanded from macro 'SWAP'
#define SWAP(a, b) do {                                         \
                   ^
/datasets/git/prio-queue.c:15:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        SWAP(queue->array[i], queue->array[j]);
        ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/prio-queue.c:15:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        SWAP(queue->array[i], queue->array[j]);
        ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/prio-queue.c:20:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, j;
        ^~~~~~~~~
/datasets/git/prio-queue.c:20:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, j;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/prio-queue.c:20:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/prio-queue.c:20:9: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int i, j;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/prio-queue.c:20:9: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/prio-queue.c:22:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (queue->compare)
                           ^
                            {
/datasets/git/prio-queue.c:24:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < (j = (queue->nr - 1) - i); i++)
        ^
/datasets/git/prio-queue.c:24:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'j' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < (j = (queue->nr - 1) - i); i++)
                    ^
/datasets/git/prio-queue.c:24:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < (j = (queue->nr - 1) - i); i++)
                                                       ^
                                                        {
/datasets/git/prio-queue.c:30:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(queue->array);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/prio-queue.c:38:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int ix, parent;
        ^~~~~~~~~~~~~~~
/datasets/git/prio-queue.c:38:6: warning: variable 'ix' is not initialized [cppcoreguidelines-init-variables]
        int ix, parent;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/prio-queue.c:38:6: warning: variable name 'ix' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/prio-queue.c:38:10: warning: variable 'parent' is not initialized [cppcoreguidelines-init-variables]
        int ix, parent;
                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/prio-queue.c:41:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(queue->array, queue->nr + 1, queue->alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/prio-queue.c:45:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!queue->compare)
                            ^
                             {
/datasets/git/prio-queue.c:49:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (ix = queue->nr - 1; ix; ix = parent) {
        ^
/datasets/git/prio-queue.c:49:27: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ix' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (ix = queue->nr - 1; ix; ix = parent) {
                                 ^
/datasets/git/prio-queue.c:51:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (compare(queue, parent, ix) <= 0)
                                                    ^
                                                     {
/datasets/git/prio-queue.c:60:8: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        void *result;
              ^
                     = NULL
/datasets/git/prio-queue.c:61:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int ix, child;
        ^~~~~~~~~~~~~~
/datasets/git/prio-queue.c:61:6: warning: variable 'ix' is not initialized [cppcoreguidelines-init-variables]
        int ix, child;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/prio-queue.c:61:6: warning: variable name 'ix' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/prio-queue.c:61:10: warning: variable 'child' is not initialized [cppcoreguidelines-init-variables]
        int ix, child;
                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/prio-queue.c:63:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!queue->nr)
                       ^
                        {
/datasets/git/prio-queue.c:65:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!queue->compare)
                            ^
                             {
/datasets/git/prio-queue.c:69:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!--queue->nr)
                         ^
                          {
/datasets/git/prio-queue.c:75:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (ix = 0; ix * 2 + 1 < queue->nr; ix = child) {
        ^
/datasets/git/prio-queue.c:75:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ix' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (ix = 0; ix * 2 + 1 < queue->nr; ix = child) {
                     ^
/datasets/git/prio-queue.c:78:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    compare(queue, child, child + 1) >= 0)
                                                          ^
                                                           {
/datasets/git/prio-queue.c:81:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (compare(queue, ix, child) <= 0)
                                                   ^
                                                    {
/datasets/git/prio-queue.c:91:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!queue->nr)
                       ^
                        {
/datasets/git/prio-queue.c:93:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!queue->compare)
                            ^
                             {
/datasets/git/progress.c:13:1: warning: #includes are not sorted properly [llvm-include-order]
#include "gettext.h"
^        ~~~~~~~~~~~
         "config.h"
/datasets/git/progress.c:20:1: warning: replace macro with enum [modernize-macro-to-enum]
#define TP_IDX_MAX      8
^~~~~~~~
                   =
/datasets/git/progress.c:20:9: warning: macro 'TP_IDX_MAX' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define TP_IDX_MAX      8
        ^
/datasets/git/progress.c:22:8: warning: accessing fields in struct 'throughput' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct throughput {
       ^
/datasets/git/progress.c:22:8: note: use "__attribute__((aligned(128)))" to align struct 'throughput' to 128 bytes
/datasets/git/progress.c:34:8: warning: accessing fields in struct 'progress' is inefficient due to padding; only needs 84 bytes but is using 88 bytes [altera-struct-pack-align]
struct progress {
       ^
/datasets/git/progress.c:34:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'progress'
/datasets/git/progress.c:34:8: warning: accessing fields in struct 'progress' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct progress {
       ^
/datasets/git/progress.c:34:8: note: use "__attribute__((aligned(128)))" to align struct 'progress' to 128 bytes
/datasets/git/progress.c:48:30: warning: variable 'progress_update' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static volatile sig_atomic_t progress_update;
                             ^
/datasets/git/progress.c:54:5: warning: variable 'progress_testing' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
int progress_testing;
    ^
/datasets/git/progress.c:55:10: warning: variable 'progress_test_ns' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
uint64_t progress_test_ns = 0;
         ^
/datasets/git/progress.c:62:35: warning: parameter 'signum' is unused [misc-unused-parameters]
static void progress_interval(int signum)
                                  ^
/datasets/git/progress.c:69:19: warning: variable name 'sa' is too short, expected at least 3 characters [readability-identifier-length]
        struct sigaction sa;
                         ^
/datasets/git/progress.c:70:19: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
        struct itimerval v;
                         ^
/datasets/git/progress.c:72:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (progress_testing)
                             ^
                              {
/datasets/git/progress.c:77:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&sa, 0, sizeof(sa));
        ^~~~~~
/datasets/git/progress.c:77:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&sa, 0, sizeof(sa));
        ^~~~~~
/datasets/git/progress.c:91:19: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
        struct itimerval v = {{0,},};
                         ^
/datasets/git/progress.c:93:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (progress_testing)
                             ^
                              {
/datasets/git/progress.c:97:2: warning: the value returned by this function should be used [cert-err33-c]
        signal(SIGALRM, SIG_IGN);
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/progress.c:97:2: note: cast the expression to void to silence this warning
/datasets/git/progress.c:101:33: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
static int is_foreground_fd(int fd)
                                ^
/datasets/git/progress.c:107:13: warning: function 'display' has cognitive complexity of 29 (threshold 25) [readability-function-cognitive-complexity]
static void display(struct progress *progress, uint64_t n, const char *done)
            ^
/datasets/git/progress.c:114:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (progress->delay && (!progress_update || --progress->delay))
        ^
/datasets/git/progress.c:114:22: note: +1
        if (progress->delay && (!progress_update || --progress->delay))
                            ^
/datasets/git/progress.c:114:43: note: +1
        if (progress->delay && (!progress_update || --progress->delay))
                                                 ^
/datasets/git/progress.c:118:30: note: +1, including nesting penalty of 0, nesting level increased to 1
        tp = (progress->throughput) ? progress->throughput->display.buf : "";
                                    ^
/datasets/git/progress.c:119:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (progress->total) {
        ^
/datasets/git/progress.c:121:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (percent != progress->last_percent || progress_update) {
                ^
/datasets/git/progress.c:121:41: note: +1
                if (percent != progress->last_percent || progress_update) {
                                                      ^
/datasets/git/progress.c:131:9: note: +1, nesting level increased to 1
        } else if (progress_update) {
               ^
/datasets/git/progress.c:137:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (show_update) {
        ^
/datasets/git/progress.c:138:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (is_foreground_fd(fileno(stderr)) || done) {
                ^
/datasets/git/progress.c:138:40: note: +1
                if (is_foreground_fd(fileno(stderr)) || done) {
                                                     ^
/datasets/git/progress.c:139:27: note: +3, including nesting penalty of 2, nesting level increased to 3
                        const char *eol = done ? done : "\r";
                                               ^
/datasets/git/progress.c:140:57: note: +3, including nesting penalty of 2, nesting level increased to 3
                        size_t clear_len = counters_sb->len < last_count_len ?
                                                                             ^
/datasets/git/progress.c:148:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (progress->split) {
                        ^
/datasets/git/progress.c:151:11: note: +1, nesting level increased to 3
                        } else if (!done && cols < progress_line_len) {
                               ^
/datasets/git/progress.c:151:21: note: +1
                        } else if (!done && cols < progress_line_len) {
                                         ^
/datasets/git/progress.c:152:48: note: +4, including nesting penalty of 3, nesting level increased to 4
                                clear_len = progress->title_len + 1 < cols ?
                                                                           ^
/datasets/git/progress.c:158:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/progress.c:109:14: warning: variable 'tp' is not initialized [cppcoreguidelines-init-variables]
        const char *tp;
                    ^
                       = NULL
/datasets/git/progress.c:109:14: warning: variable name 'tp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/progress.c:112:23: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int last_count_len = counters_sb->len;
                             ^
/datasets/git/progress.c:114:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (progress->delay && (!progress_update || --progress->delay))
                                                                       ^
                                                                        {
/datasets/git/progress.c:120:26: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                unsigned percent = n * 100 / progress->total;
                                       ^
/datasets/git/progress.c:149:5: warning: the value returned by this function should be used [cert-err33-c]
                                fprintf(stderr, "  %s%*s", counters_sb->buf,
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/progress.c:149:5: note: cast the expression to void to silence this warning
/datasets/git/progress.c:154:5: warning: the value returned by this function should be used [cert-err33-c]
                                fprintf(stderr, "%s:%*s\n  %s%s",
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/progress.c:154:5: note: cast the expression to void to silence this warning
/datasets/git/progress.c:159:5: warning: the value returned by this function should be used [cert-err33-c]
                                fprintf(stderr, "%s: %s%*s", progress->title,
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/progress.c:159:5: note: cast the expression to void to silence this warning
/datasets/git/progress.c:162:4: warning: the value returned by this function should be used [cert-err33-c]
                        fflush(stderr);
                        ^~~~~~~~~~~~~~
/datasets/git/progress.c:162:4: note: cast the expression to void to silence this warning
/datasets/git/progress.c:168:51: warning: 2 adjacent parameters of 'throughput_string' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void throughput_string(struct strbuf *buf, uint64_t total,
                                                  ^~~~~~~~~~~~~~~
/datasets/git/progress.c:168:60: note: the first parameter in the range is 'total'
static void throughput_string(struct strbuf *buf, uint64_t total,
                                                           ^~~~~
/datasets/git/progress.c:169:23: note: the last parameter in the range is 'rate'
                              unsigned int rate)
                                           ^~~~
/datasets/git/progress.c:168:51: note: 
static void throughput_string(struct strbuf *buf, uint64_t total,
                                                  ^
/datasets/git/progress.c:169:10: note: 'uint64_t' and 'unsigned int' may be implicitly converted: 'uint64_t' (as 'unsigned long') -> 'unsigned int', 'unsigned int' -> 'uint64_t' (as 'unsigned long')
                              unsigned int rate)
                              ^
/datasets/git/progress.c:173:29: warning: narrowing conversion from 'uint64_t' (aka 'unsigned long') to signed type 'off_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        strbuf_humanise_bytes(buf, total);
                                   ^
/datasets/git/progress.c:175:28: warning: performing an implicit widening conversion to type 'off_t' (aka 'long') of a multiplication performed in type 'unsigned int' [bugprone-implicit-widening-of-multiplication-result]
        strbuf_humanise_rate(buf, rate * 1024);
                                  ^
/datasets/git/progress.c:175:28: note: make conversion explicit to silence this warning
        strbuf_humanise_rate(buf, rate * 1024);
                                  ^~~~~~~~~~~
                                  (off_t)( )
/datasets/git/progress.c:175:28: note: perform multiplication in a wider type
        strbuf_humanise_rate(buf, rate * 1024);
                                  ^~~~
                                  (unsigned long)
/datasets/git/progress.c:175:35: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        strbuf_humanise_rate(buf, rate * 1024);
                                         ^
/datasets/git/progress.c:180:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (progress_testing)
                             ^
                              {
/datasets/git/progress.c:182:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else
        ^~~~
                        return getnanotime()
/datasets/git/progress.c:182:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/progress.c:188:21: warning: variable 'tp' is not initialized [cppcoreguidelines-init-variables]
        struct throughput *tp;
                           ^
                              = NULL
/datasets/git/progress.c:188:21: warning: variable name 'tp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/progress.c:189:11: warning: variable 'now_ns' is not initialized [cppcoreguidelines-init-variables]
        uint64_t now_ns;
                 ^
                        = 0
/datasets/git/progress.c:190:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned int misecs, count, rate;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/progress.c:190:15: warning: variable 'misecs' is not initialized [cppcoreguidelines-init-variables]
        unsigned int misecs, count, rate;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/progress.c:190:23: warning: variable 'count' is not initialized [cppcoreguidelines-init-variables]
        unsigned int misecs, count, rate;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/progress.c:190:30: warning: variable 'rate' is not initialized [cppcoreguidelines-init-variables]
        unsigned int misecs, count, rate;
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/progress.c:192:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!progress)
                      ^
                       {
/datasets/git/progress.c:200:37: warning: narrowing conversion from 'uint64_t' (aka 'unsigned long') to signed type 'off_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                tp->prev_total = tp->curr_total = total;
                                                  ^
/datasets/git/progress.c:205:19: warning: narrowing conversion from 'uint64_t' (aka 'unsigned long') to signed type 'off_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        tp->curr_total = total;
                         ^
/datasets/git/progress.c:208:30: warning: 500000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (now_ns - tp->prev_ns <= 500000000)
                                    ^
/datasets/git/progress.c:208:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (now_ns - tp->prev_ns <= 500000000)
                                              ^
                                               {
/datasets/git/progress.c:227:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        misecs = ((now_ns - tp->prev_ns) * 4398) >> 32;
                 ^                                  ~~
/datasets/git/progress.c:227:37: warning: 4398 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        misecs = ((now_ns - tp->prev_ns) * 4398) >> 32;
                                           ^
/datasets/git/progress.c:227:46: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        misecs = ((now_ns - tp->prev_ns) * 4398) >> 32;
                                                    ^
/datasets/git/progress.c:230:19: warning: narrowing conversion from 'uint64_t' (aka 'unsigned long') to signed type 'off_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        tp->prev_total = total;
                         ^
/datasets/git/progress.c:242:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (progress->last_value != -1 && progress_update)
                                                          ^
                                                           {
/datasets/git/progress.c:248:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (progress)
                     ^
                      {
/datasets/git/progress.c:252:65: warning: 3 adjacent parameters of 'start_progress_delay' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static struct progress *start_progress_delay(const char *title, uint64_t total,
                                                                ^~~~~~~~~~~~~~~
/datasets/git/progress.c:252:74: note: the first parameter in the range is 'total'
static struct progress *start_progress_delay(const char *title, uint64_t total,
                                                                         ^~~~~
/datasets/git/progress.c:253:36: note: the last parameter in the range is 'sparse'
                                             unsigned delay, unsigned sparse)
                                                                      ^~~~~~
/datasets/git/progress.c:252:65: note: 
static struct progress *start_progress_delay(const char *title, uint64_t total,
                                                                ^
/datasets/git/progress.c:253:11: note: 'uint64_t' and 'unsigned int' may be implicitly converted: 'uint64_t' (as 'unsigned long') -> 'unsigned int', 'unsigned int' -> 'uint64_t' (as 'unsigned long')
                                             unsigned delay, unsigned sparse)
                                             ^
/datasets/git/progress.c:276:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (delay_in_secs < 0)
                              ^
                               {
/datasets/git/progress.c:277:19: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                delay_in_secs = git_env_ulong("GIT_PROGRESS_DELAY", 2);
                                ^
/datasets/git/progress.c:315:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            progress->last_value != progress->total)
                                                    ^
                                                     {
/datasets/git/progress.c:321:8: warning: variable 'buf' is not initialized [cppcoreguidelines-init-variables]
        char *buf;
              ^
                  = NULL
/datasets/git/progress.c:322:21: warning: variable name 'tp' is too short, expected at least 3 characters [readability-identifier-length]
        struct throughput *tp = progress->throughput;
                           ^
/datasets/git/progress.c:326:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                unsigned int misecs, rate;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/progress.c:326:16: warning: variable 'misecs' is not initialized [cppcoreguidelines-init-variables]
                unsigned int misecs, rate;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/progress.c:326:24: warning: variable 'rate' is not initialized [cppcoreguidelines-init-variables]
                unsigned int misecs, rate;
                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/progress.c:327:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                misecs = ((now_ns - progress->start_ns) * 4398) >> 32;
                         ^                                         ~~
/datasets/git/progress.c:327:45: warning: 4398 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                misecs = ((now_ns - progress->start_ns) * 4398) >> 32;
                                                          ^
/datasets/git/progress.c:327:54: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                misecs = ((now_ns - progress->start_ns) * 4398) >> 32;
                                                                   ^
/datasets/git/progress.c:342:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (progress->throughput)
                                 ^
                                  {
/datasets/git/progress.c:351:19: warning: variable 'progress' is not initialized [cppcoreguidelines-init-variables]
        struct progress *progress;
                         ^
                                  = NULL
/datasets/git/progress.c:353:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!p_progress)
                        ^
                         {
/datasets/git/progress.c:357:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!progress)
                      ^
                       {
/datasets/git/progress.c:362:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (progress->last_value != -1)
                                       ^
                                        {
/datasets/git/progress.c:368:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (progress->throughput)
                                 ^
                                  {
/datasets/git/promisor-remote.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "object-store.h"
^        ~~~~~~~~~~~~~~~~
         "config.h"
/datasets/git/promisor-remote.c:9:8: warning: accessing fields in struct 'promisor_remote_config' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct promisor_remote_config {
       ^
/datasets/git/promisor-remote.c:9:8: note: use "__attribute__((aligned(16)))" to align struct 'promisor_remote_config' to 16 bytes
/datasets/git/promisor-remote.c:20:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/promisor-remote.c:20:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/promisor-remote.c:21:8: warning: variable 'child_in' is not initialized [cppcoreguidelines-init-variables]
        FILE *child_in;
              ^
                       = NULL
/datasets/git/promisor-remote.c:25:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo != the_repository)
                                   ^
                                    {
/datasets/git/promisor-remote.c:31:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (start_command(&child))
                                  ^
                                   {
/datasets/git/promisor-remote.c:37:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < oid_nr; i++) {
        ^
/datasets/git/promisor-remote.c:38:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fputs(oid_to_hex(&oids[i]), child_in) < 0)
                                                              ^
                                                               {
/datasets/git/promisor-remote.c:40:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fputc('\n', child_in) < 0)
                                              ^
                                               {
/datasets/git/promisor-remote.c:44:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fclose(child_in) < 0)
                                 ^
                                  {
/datasets/git/promisor-remote.c:52:26: warning: variable 'r' is not initialized [cppcoreguidelines-init-variables]
        struct promisor_remote *r;
                                ^
                                  = NULL
/datasets/git/promisor-remote.c:52:26: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/promisor-remote.c:60:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FLEX_ALLOC_STR(r, name, remote_name);
        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^
/datasets/git/./git-compat-util.h:1151:47: note: expanded from macro 'FLEX_ALLOC_MEM'
#define FLEX_ALLOC_MEM(x, flexname, buf, len) do { \
                                              ^
/datasets/git/promisor-remote.c:60:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        FLEX_ALLOC_STR(r, name, remote_name);
        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/promisor-remote.c:60:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        FLEX_ALLOC_STR(r, name, remote_name);
        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/promisor-remote.c:72:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct promisor_remote *r, *p;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/promisor-remote.c:72:26: warning: variable 'r' is not initialized [cppcoreguidelines-init-variables]
        struct promisor_remote *r, *p;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/promisor-remote.c:72:26: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/promisor-remote.c:72:30: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct promisor_remote *r, *p;
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/promisor-remote.c:72:30: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/promisor-remote.c:74:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = NULL, r = config->promisors; r; p = r, r = r->next)
        ^
/datasets/git/promisor-remote.c:74:40: warning: backward branch (for loop) is ID-dependent due to variable reference to 'r' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = NULL, r = config->promisors; r; p = r, r = r->next)
                                              ^
/datasets/git/promisor-remote.c:74:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (p = NULL, r = config->promisors; r; p = r, r = r->next)
                                                                    ^
                                                                     {
/datasets/git/promisor-remote.c:76:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (previous)
                                     ^
                                      {
/datasets/git/promisor-remote.c:85:31: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
                                         struct promisor_remote *r,
                                                                 ^
/datasets/git/promisor-remote.c:88:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!r->next)
                     ^
                      {
/datasets/git/promisor-remote.c:91:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (previous)
                     ^
                      {
/datasets/git/promisor-remote.c:93:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/promisor-remote.c:103:14: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
        const char *name;
                    ^
                         = NULL
/datasets/git/promisor-remote.c:104:9: warning: variable 'namelen' is not initialized [cppcoreguidelines-init-variables]
        size_t namelen;
               ^
                       = 0
/datasets/git/promisor-remote.c:105:14: warning: variable 'subkey' is not initialized [cppcoreguidelines-init-variables]
        const char *subkey;
                    ^
                           = NULL
/datasets/git/promisor-remote.c:107:68: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_config_key(var, "remote", &name, &namelen, &subkey) < 0)
                                                                          ^
                                                                           {
/datasets/git/promisor-remote.c:111:9: warning: variable 'remote_name' is not initialized [cppcoreguidelines-init-variables]
                char *remote_name;
                      ^
                                  = NULL
/datasets/git/promisor-remote.c:113:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!git_config_bool(var, value))
                                                 ^
                                                  {
/datasets/git/promisor-remote.c:118:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!promisor_remote_lookup(config, remote_name, NULL))
                                                                       ^
                                                                        {
/datasets/git/promisor-remote.c:125:27: warning: variable 'r' is not initialized [cppcoreguidelines-init-variables]
                struct promisor_remote *r;
                                        ^
                                          = NULL
/datasets/git/promisor-remote.c:125:27: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/promisor-remote.c:129:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!r)
                       ^
                        {
/datasets/git/promisor-remote.c:134:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!r)
                       ^
                        {
/datasets/git/promisor-remote.c:143:53: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void promisor_remote_init(struct repository *r)
                                                    ^
/datasets/git/promisor-remote.c:145:33: warning: variable 'config' is not initialized [cppcoreguidelines-init-variables]
        struct promisor_remote_config *config;
                                       ^
                                              = NULL
/datasets/git/promisor-remote.c:147:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (r->promisor_remote_config)
                                      ^
                                       {
/datasets/git/promisor-remote.c:156:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                struct promisor_remote *o, *previous;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/promisor-remote.c:156:27: warning: variable 'o' is not initialized [cppcoreguidelines-init-variables]
                struct promisor_remote *o, *previous;
                                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/promisor-remote.c:156:27: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/promisor-remote.c:156:31: warning: variable 'previous' is not initialized [cppcoreguidelines-init-variables]
                struct promisor_remote *o, *previous;
                                            ^
/datasets/git/promisor-remote.c:10:2: note: inferred assignment of ID-dependent member from ID-dependent member next [altera-id-dependent-backward-branch]
        struct promisor_remote *promisors;
        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/promisor-remote.c:161:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (o)
                      ^
                       {
/datasets/git/promisor-remote.c:163:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/promisor-remote.c:170:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (config->promisors) {
        ^
/datasets/git/promisor-remote.c:170:9: warning: backward branch (while loop) is ID-dependent due to member reference to 'promisors' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (config->promisors) {
               ^
/datasets/git/promisor-remote.c:171:27: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
                struct promisor_remote *r = config->promisors;
                                        ^
/datasets/git/promisor-remote.c:179:53: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void repo_promisor_remote_reinit(struct repository *r)
                                                    ^
/datasets/git/promisor-remote.c:182:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(r->promisor_remote_config);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/promisor-remote.c:186:70: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
struct promisor_remote *repo_promisor_remote_find(struct repository *r,
                                                                     ^
/datasets/git/promisor-remote.c:191:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!remote_name)
                         ^
                          {
/datasets/git/promisor-remote.c:197:49: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int repo_has_promisor_remote(struct repository *r)
                                                ^
/datasets/git/promisor-remote.c:204:11: warning: 2 adjacent parameters of 'remove_fetched_oids' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                               int oid_nr, int to_free)
                               ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/promisor-remote.c:204:15: note: the first parameter in the range is 'oid_nr'
                               int oid_nr, int to_free)
                                   ^~~~~~
/datasets/git/promisor-remote.c:204:27: note: the last parameter in the range is 'to_free'
                               int oid_nr, int to_free)
                                               ^~~~~~~
/datasets/git/promisor-remote.c:206:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, remaining_nr = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/promisor-remote.c:206:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, remaining_nr = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/promisor-remote.c:206:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/promisor-remote.c:209:20: warning: variable 'new_oids' is not initialized [cppcoreguidelines-init-variables]
        struct object_id *new_oids;
                          ^
                                   = NULL
/datasets/git/promisor-remote.c:211:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < oid_nr; i++)
        ^
/datasets/git/promisor-remote.c:211:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < oid_nr; i++)
                                    ^
                                     {
/datasets/git/promisor-remote.c:219:7: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
                int j = 0;
                    ^
/datasets/git/promisor-remote.c:221:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < oid_nr; i++)
                ^
/datasets/git/promisor-remote.c:221:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < oid_nr; i++)
                                            ^
                                             {
/datasets/git/promisor-remote.c:222:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (remaining[i])
                                         ^
                                          {
/datasets/git/promisor-remote.c:225:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (to_free)
                            ^
                             {
/datasets/git/promisor-remote.c:238:26: warning: variable 'r' is not initialized [cppcoreguidelines-init-variables]
        struct promisor_remote *r;
                                ^
                                  = NULL
/datasets/git/promisor-remote.c:238:26: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/promisor-remote.c:242:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/promisor-remote.c:242:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/promisor-remote.c:244:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oid_nr == 0)
                        ^
                         {
/datasets/git/promisor-remote.c:249:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (r = repo->promisor_remote_config->promisors; r; r = r->next) {
        ^
/datasets/git/promisor-remote.c:240:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int remaining_nr = oid_nr;
        ^
/datasets/git/promisor-remote.c:249:52: warning: backward branch (for loop) is ID-dependent due to variable reference to 'r' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (r = repo->promisor_remote_config->promisors; r; r = r->next) {
                                                          ^
/datasets/git/promisor-remote.c:251:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (remaining_nr == 1)
                                              ^
                                               {
/datasets/git/promisor-remote.c:263:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < remaining_nr; i++) {
        ^
/datasets/git/promisor-remote.c:263:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'remaining_nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < remaining_nr; i++) {
                    ^
/datasets/git/promisor-remote.c:264:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_promisor_object(&remaining_oids[i]))
                                                           ^
                                                            {
/datasets/git/promisor-remote.c:270:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (to_free)
                    ^
                     {
/datasets/git/prompt.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "compat/terminal.h"
/datasets/git/prompt.c:19:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (start_command(&pass))
                                 ^
                                  {
/datasets/git/prompt.c:23:37: warning: 20 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (strbuf_read(&buffer, pass.out, 20) < 0)
                                           ^
/datasets/git/prompt.c:23:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strbuf_read(&buffer, pass.out, 20) < 0)
                                                   ^
                                                    {
/datasets/git/prompt.c:28:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (finish_command(&pass))
                                  ^
                                   {
/datasets/git/prompt.c:44:8: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        char *r = NULL;
              ^
/datasets/git/prompt.c:46:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & PROMPT_ASKPASS) {
            ^~~~~
/datasets/git/prompt.c:46:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & PROMPT_ASKPASS) {
                    ^
/datasets/git/./prompt.h:4:25: note: expanded from macro 'PROMPT_ASKPASS'
#define PROMPT_ASKPASS (1<<0)
                        ^
/datasets/git/prompt.c:47:15: warning: variable 'askpass' is not initialized [cppcoreguidelines-init-variables]
                const char *askpass;
                            ^
                                    = NULL
/datasets/git/prompt.c:49:13: warning: function is not thread safe [concurrency-mt-unsafe]
                askpass = getenv("GIT_ASKPASS");
                          ^
/datasets/git/prompt.c:50:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!askpass)
                             ^
                              {
/datasets/git/prompt.c:52:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!askpass)
                             ^
                              {
/datasets/git/prompt.c:53:14: warning: function is not thread safe [concurrency-mt-unsafe]
                        askpass = getenv("SSH_ASKPASS");
                                  ^
/datasets/git/prompt.c:54:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (askpass && *askpass)
                                        ^
                                         {
/datasets/git/prompt.c:59:15: warning: variable 'err' is not initialized [cppcoreguidelines-init-variables]
                const char *err;
                            ^
                                = NULL
/datasets/git/prompt.c:62:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        r = git_terminal_prompt(prompt, flags & PROMPT_ECHO);
                                                        ^~~~~
/datasets/git/prompt.c:62:44: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        r = git_terminal_prompt(prompt, flags & PROMPT_ECHO);
                                                                ^
/datasets/git/./prompt.h:5:25: note: expanded from macro 'PROMPT_ECHO'
#define PROMPT_ECHO    (1<<1)
                        ^
/datasets/git/prompt.c:63:10: warning: function is not thread safe [concurrency-mt-unsafe]
                        err = strerror(errno);
                              ^
/datasets/git/prompt.c:77:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/prompt.c:79:2: warning: the value returned by this function should be used [cert-err33-c]
        fflush(stdout);
        ^~~~~~~~~~~~~~
/datasets/git/prompt.c:79:2: note: cast the expression to void to silence this warning
/datasets/git/prompt.c:81:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret != EOF)
                       ^
                        {
/datasets/git/protocol-caps.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "protocol-caps.h"
^        ~~~~~~~~~~~~~~~~~
         "gettext.h"
/datasets/git/protocol-caps.c:22:14: warning: variable 'arg' is not initialized [cppcoreguidelines-init-variables]
        const char *arg;
                    ^
                        = NULL
/datasets/git/protocol-caps.c:24:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!skip_prefix(line, "oid ", &arg))
                                             ^
                                              {
/datasets/git/protocol-caps.c:36:42: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void send_info(struct repository *r, struct packet_writer *writer,
                                         ^
/datasets/git/protocol-caps.c:40:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/protocol-caps.c:43:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!oid_str_list->nr)
                              ^
                               {
/datasets/git/protocol-caps.c:46:6: warning: Branch condition evaluates to a garbage value [clang-analyzer-core.uninitialized.Branch]
        if (info->size)
            ^
/datasets/git/protocol-caps.c:86:9: note: Assuming the condition is true
        while (packet_reader_read(request) == PACKET_READ_NORMAL) {
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/protocol-caps.c:86:2: note: Loop condition is true.  Entering loop body
        while (packet_reader_read(request) == PACKET_READ_NORMAL) {
        ^
/datasets/git/protocol-caps.c:87:7: note: Assuming the condition is false
                if (!strcmp("size", request->line)) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/protocol-caps.c:87:3: note: Taking false branch
                if (!strcmp("size", request->line)) {
                ^
/datasets/git/protocol-caps.c:92:7: note: Calling 'parse_oid'
                if (parse_oid(request->line, &oid_str_list))
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/protocol-caps.c:24:6: note: Assuming the condition is false
        if (!skip_prefix(line, "oid ", &arg))
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/protocol-caps.c:24:2: note: Taking false branch
        if (!skip_prefix(line, "oid ", &arg))
        ^
/datasets/git/protocol-caps.c:92:7: note: Returning from 'parse_oid'
                if (parse_oid(request->line, &oid_str_list))
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/protocol-caps.c:92:3: note: Taking true branch
                if (parse_oid(request->line, &oid_str_list))
                ^
/datasets/git/protocol-caps.c:93:4: note:  Execution continues on line 86
                        continue;
                        ^
/datasets/git/protocol-caps.c:86:9: note: Assuming the condition is false
        while (packet_reader_read(request) == PACKET_READ_NORMAL) {
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/protocol-caps.c:86:2: note: Loop condition is false. Execution continues on line 100
        while (packet_reader_read(request) == PACKET_READ_NORMAL) {
        ^
/datasets/git/protocol-caps.c:100:6: note: Assuming field 'status' is equal to PACKET_READ_FLUSH
        if (request->status != PACKET_READ_FLUSH) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/protocol-caps.c:100:2: note: Taking false branch
        if (request->status != PACKET_READ_FLUSH) {
        ^
/datasets/git/protocol-caps.c:106:2: note: Calling 'send_info'
        send_info(r, &writer, &oid_str_list, &info);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/protocol-caps.c:43:6: note: Assuming field 'nr' is not equal to 0
        if (!oid_str_list->nr)
            ^~~~~~~~~~~~~~~~~
/datasets/git/protocol-caps.c:43:2: note: Taking false branch
        if (!oid_str_list->nr)
        ^
/datasets/git/protocol-caps.c:46:6: note: Branch condition evaluates to a garbage value
        if (info->size)
            ^~~~~~~~~~
/datasets/git/protocol-caps.c:46:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (info->size)
                       ^
                        {
/datasets/git/protocol-caps.c:49:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item (item, oid_str_list) {
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/protocol-caps.c:49:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item (item, oid_str_list) {
                                   ^
/datasets/git/protocol-caps.c:52:17: warning: variable 'object_size' is not initialized [cppcoreguidelines-init-variables]
                unsigned long object_size;
                              ^
                                          = 0
/datasets/git/protocol-caps.c:78:40: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int cap_object_info(struct repository *r, struct packet_reader *request)
                                       ^
/datasets/git/protocol-caps.c:86:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (packet_reader_read(request) == PACKET_READ_NORMAL) {
        ^
/datasets/git/protocol-caps.c:92:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (parse_oid(request->line, &oid_str_list))
                                                            ^
                                                             {
/datasets/git/protocol.c:7:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(value, "0"))
                                ^
                                 {
/datasets/git/protocol.c:9:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (!strcmp(value, "1"))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/protocol.c:9:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(value, "1"))
                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/protocol.c:11:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(value, "2"))
                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/protocol.c:13:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/protocol.c:19:14: warning: variable 'value' is not initialized [cppcoreguidelines-init-variables]
        const char *value;
                    ^
                          = NULL
/datasets/git/protocol.c:21:14: warning: variable 'git_test_v' is not initialized [cppcoreguidelines-init-variables]
        const char *git_test_v;
                    ^
                               = NULL
/datasets/git/protocol.c:26:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (version == protocol_unknown_version)
                                                        ^
                                                         {
/datasets/git/protocol.c:33:15: warning: function is not thread safe [concurrency-mt-unsafe]
        git_test_v = getenv(git_test_k);
                     ^
/datasets/git/protocol.c:37:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (env == protocol_unknown_version)
                                                    ^
                                                     {
/datasets/git/protocol.c:47:29: warning: function is not thread safe [concurrency-mt-unsafe]
        const char *git_protocol = getenv(GIT_PROTOCOL_ENVIRONMENT);
                                   ^
/datasets/git/protocol.c:59:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                const struct string_list_item *item;
                ^
/datasets/git/protocol.c:59:34: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
                const struct string_list_item *item;
                                               ^
                                                    = NULL
/datasets/git/protocol.c:62:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for_each_string_list_item(item, &list) {
                ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/protocol.c:62:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
                for_each_string_list_item(item, &list) {
                                          ^
/datasets/git/protocol.c:63:16: warning: variable 'value' is not initialized [cppcoreguidelines-init-variables]
                        const char *value;
                                    ^
                                          = NULL
/datasets/git/protocol.c:64:26: warning: variable 'v' is not initialized [cppcoreguidelines-init-variables]
                        enum protocol_version v;
                                              ^
/datasets/git/protocol.c:64:26: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/protocol.c:68:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (v > version)
                                                ^
                                                 {
/datasets/git/protocol.c:88:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (version == protocol_unknown_version)
                                                        ^
                                                         {
/datasets/git/protocol.c:90:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (version == protocol_v0)
                                           ^
                                            {
prune-packed.c:6:25: warning: variable 'progress' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct progress *progress;
                        ^
prune-packed.c:6:25: warning: variable 'progress' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
prune-packed.c:8:38: warning: parameter name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
static int prune_subdir(unsigned int nr, const char *path, void *data)
                                     ^
/datasets/git/prune-packed.c:12:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(*opts & PRUNE_PACKED_DRY_RUN))
              ^~~~~
/datasets/git/prune-packed.c:12:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(*opts & PRUNE_PACKED_DRY_RUN))
                                            ^
                                             {
/datasets/git/prune-packed.c:22:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!has_object_pack(oid))
                                  ^
                                   {
/datasets/git/prune-packed.c:25:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (*opts & PRUNE_PACKED_DRY_RUN)
            ^~~~~
/datasets/git/prune-packed.c:25:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*opts & PRUNE_PACKED_DRY_RUN)
                                         ^
                                          {
/datasets/git/prune-packed.c:27:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/prune-packed.c:34:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (opts & PRUNE_PACKED_VERBOSE)
            ^~~~
/datasets/git/prune-packed.c:34:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts & PRUNE_PACKED_VERBOSE)
                                        ^
                                         {
/datasets/git/prune-packed.c:35:70: warning: 256 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                progress = start_delayed_progress(_("Removing duplicate objects"), 256);
                                                                                   ^
/datasets/git/prune-packed.c:41:29: warning: 256 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        display_progress(progress, 256);
                                   ^
quote.c:5:5: warning: variable 'quote_path_fully' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
int quote_path_fully = 1;
    ^
quote.c:7:38: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static inline int need_bs_quote(char c)
                                     ^
/datasets/git/quote.c:28:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (dst->buf == src)
                            ^
                             {
/datasets/git/quote.c:32:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'src' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (*src) {
               ^
/datasets/git/quote.c:24:39: note: inferred assignment of ID-dependent value from ID-dependent variable len
void sq_quote_buf(struct strbuf *dst, const char *src)
                                      ^
/datasets/git/quote.c:36:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (need_bs_quote(*src)) {
                ^
/datasets/git/quote.c:49:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        const char *p;
        ^
/datasets/git/quote.c:36:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'src' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (need_bs_quote(*src)) {
                       ^
/datasets/git/quote.c:49:14: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        const char *p;
                    ^
                      = NULL
/datasets/git/quote.c:49:14: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/quote.c:57:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = src; *p; p++) {
        ^
/datasets/git/quote.c:57:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = src; *p; p++) {
                      ^
/datasets/git/quote.c:58:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!isalnum(*p) && !strchr(ok_punct, *p)) {
                     ^
/datasets/git/./git-compat-util.h:1220:20: note: expanded from macro 'isalnum'
#define isalnum(x) sane_istest(x,GIT_ALPHA | GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/quote.c:72:10: warning: variable name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
        va_list ap;
                ^
/datasets/git/quote.c:83:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/quote.c:83:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/quote.c:86:19: warning: 255 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        strbuf_grow(dst, 255);
                         ^
/datasets/git/quote.c:87:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; argv[i]; ++i) {
        ^
/datasets/git/quote.c:100:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (argv[0])
                    ^
                     {
/datasets/git/quote.c:110:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/quote.c:110:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/quote.c:112:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; argv[i]; i++) {
        ^
/datasets/git/quote.c:113:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (i > 0)
                          ^
                           {
/datasets/git/quote.c:123:7: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        char c;
             ^
               = 0
/datasets/git/quote.c:123:7: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/quote.c:125:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*src != '\'')
                         ^
                          {
/datasets/git/quote.c:127:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/quote.c:129:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!c)
                       ^
                        {
/datasets/git/quote.c:139:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (next)
                                 ^
                                  {
/datasets/git/quote.c:156:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!next)
                                  ^
                                   {
/datasets/git/quote.c:170:12: warning: function 'sq_dequote_to_argv_internal' has cognitive complexity of 29 (threshold 25) [readability-function-cognitive-complexity]
static int sq_dequote_to_argv_internal(char *arg,
           ^
/datasets/git/quote.c:176:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!*arg)
        ^
/datasets/git/quote.c:178:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        do {
        ^
/datasets/git/quote.c:180:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!dequoted)
                ^
/datasets/git/quote.c:182:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (next) {
                ^
/datasets/git/quote.c:184:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!isspace(*next))
                        ^
/datasets/git/quote.c:186:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        do {
                        ^
/datasets/git/quote.c:190:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (argv) {
                ^
/datasets/git/quote.c:191:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        ALLOC_GROW(*argv, *nr + 1, *alloc);
                        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/quote.c:191:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        ALLOC_GROW(*argv, *nr + 1, *alloc);
                        ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/quote.c:191:4: note: +5, including nesting penalty of 4, nesting level increased to 5
                        ALLOC_GROW(*argv, *nr + 1, *alloc);
                        ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/quote.c:191:4: note: +1, nesting level increased to 5
                        ALLOC_GROW(*argv, *nr + 1, *alloc);
                        ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/quote.c:194:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (array)
                ^
/datasets/git/quote.c:171:37: warning: parameter name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
                                       const char ***argv, int *nr, int *alloc,
                                                                ^
/datasets/git/quote.c:176:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!*arg)
                  ^
                   {
/datasets/git/quote.c:180:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!dequoted)
                              ^
                               {
/datasets/git/quote.c:183:9: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
                        char c;
                             ^
                               = 0
/datasets/git/quote.c:183:9: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/quote.c:184:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!isspace(*next))
                             ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/quote.c:184:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!isspace(*next))
                                            ^
                                             {
/datasets/git/quote.c:186:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        do {
                        ^
/datasets/git/quote.c:188:13: warning: backward branch (do loop) is ID-dependent due to variable reference to 'c' and may cause performance degradation [altera-id-dependent-backward-branch]
                        } while (isspace(c));
                                 ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^
/datasets/git/./git-compat-util.h:1215:29: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                            ^
/datasets/git/quote.c:188:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        } while (isspace(c));
                                 ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/quote.c:191:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        ALLOC_GROW(*argv, *nr + 1, *alloc);
                        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/quote.c:194:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (array)
                          ^
                           {
/datasets/git/quote.c:196:11: warning: backward branch (do loop) is ID-dependent due to variable reference to 'next' and may cause performance degradation [altera-id-dependent-backward-branch]
        } while (next);
                 ^
/datasets/git/quote.c:201:60: warning: parameter name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
int sq_dequote_to_argv(char *arg, const char ***argv, int *nr, int *alloc)
                                                           ^
/datasets/git/quote.c:231:38: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static inline int cq_must_quote(char c)
                                     ^
/datasets/git/quote.c:239:42: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static size_t next_quote_pos(const char *s, ssize_t maxlen)
                                         ^
/datasets/git/quote.c:241:9: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        size_t len;
               ^
                   = 0
/datasets/git/quote.c:243:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (len = 0; !cq_must_quote(s[len]); len++);
                ^
/datasets/git/quote.c:243:47: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                for (len = 0; !cq_must_quote(s[len]); len++);
                                                            ^
                                                             {
/datasets/git/quote.c:245:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (len = 0; len < maxlen && !cq_must_quote(s[len]); len++);
                ^
/datasets/git/quote.c:245:63: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                for (len = 0; len < maxlen && !cq_must_quote(s[len]); len++);
                                                                            ^
                                                                             {
/datasets/git/quote.c:263:15: warning: function 'quote_c_style_counted' has cognitive complexity of 90 (threshold 25) [readability-function-cognitive-complexity]
static size_t quote_c_style_counted(const char *name, ssize_t maxlen,
              ^
/datasets/git/quote.c:284:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (;;) {
        ^
/datasets/git/quote.c:288:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (len == maxlen || (maxlen < 0 && !p[len]))
                ^
/datasets/git/quote.c:288:21: note: +1
                if (len == maxlen || (maxlen < 0 && !p[len]))
                                  ^
/datasets/git/quote.c:288:36: note: +1
                if (len == maxlen || (maxlen < 0 && !p[len]))
                                                 ^
/datasets/git/quote.c:291:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!no_dq && p == name)
                ^
/datasets/git/quote.c:291:14: note: +1
                if (!no_dq && p == name)
                           ^
/datasets/git/quote.c:292:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        EMIT('"');
                        ^
/datasets/git/quote.c:269:3: note: expanded from macro 'EMIT'
                if (sb) strbuf_addch(sb, (c));          \
                ^
/datasets/git/quote.c:292:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        EMIT('"');
                        ^
/datasets/git/quote.c:270:3: note: expanded from macro 'EMIT'
                if (fp) fputc((c), fp);                 \
                ^
/datasets/git/quote.c:294:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                EMITBUF(p, len);
                ^
/datasets/git/quote.c:274:2: note: expanded from macro 'EMITBUF'
        do {                                        \
        ^
/datasets/git/quote.c:294:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                EMITBUF(p, len);
                ^
/datasets/git/quote.c:275:3: note: expanded from macro 'EMITBUF'
                if (sb) strbuf_add(sb, (s), (l));       \
                ^
/datasets/git/quote.c:294:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                EMITBUF(p, len);
                ^
/datasets/git/quote.c:276:3: note: expanded from macro 'EMITBUF'
                if (fp) fwrite((s), (l), 1, fp);        \
                ^
/datasets/git/quote.c:295:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                EMIT('\\');
                ^
/datasets/git/quote.c:268:2: note: expanded from macro 'EMIT'
        do {                                        \
        ^
/datasets/git/quote.c:295:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                EMIT('\\');
                ^
/datasets/git/quote.c:269:3: note: expanded from macro 'EMIT'
                if (sb) strbuf_addch(sb, (c));          \
                ^
/datasets/git/quote.c:295:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                EMIT('\\');
                ^
/datasets/git/quote.c:270:3: note: expanded from macro 'EMIT'
                if (fp) fputc((c), fp);                 \
                ^
/datasets/git/quote.c:298:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (maxlen >= 0)
                ^
/datasets/git/quote.c:300:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (cq_lookup[ch] >= ' ') {
                ^
/datasets/git/quote.c:301:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        EMIT(cq_lookup[ch]);
                        ^
/datasets/git/quote.c:268:2: note: expanded from macro 'EMIT'
        do {                                        \
        ^
/datasets/git/quote.c:301:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        EMIT(cq_lookup[ch]);
                        ^
/datasets/git/quote.c:269:3: note: expanded from macro 'EMIT'
                if (sb) strbuf_addch(sb, (c));          \
                ^
/datasets/git/quote.c:301:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        EMIT(cq_lookup[ch]);
                        ^
/datasets/git/quote.c:270:3: note: expanded from macro 'EMIT'
                if (fp) fputc((c), fp);                 \
                ^
/datasets/git/quote.c:302:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/quote.c:303:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        EMIT(((ch >> 6) & 03) + '0');
                        ^
/datasets/git/quote.c:268:2: note: expanded from macro 'EMIT'
        do {                                        \
        ^
/datasets/git/quote.c:303:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        EMIT(((ch >> 6) & 03) + '0');
                        ^
/datasets/git/quote.c:269:3: note: expanded from macro 'EMIT'
                if (sb) strbuf_addch(sb, (c));          \
                ^
/datasets/git/quote.c:303:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        EMIT(((ch >> 6) & 03) + '0');
                        ^
/datasets/git/quote.c:270:3: note: expanded from macro 'EMIT'
                if (fp) fputc((c), fp);                 \
                ^
/datasets/git/quote.c:304:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        EMIT(((ch >> 3) & 07) + '0');
                        ^
/datasets/git/quote.c:268:2: note: expanded from macro 'EMIT'
        do {                                        \
        ^
/datasets/git/quote.c:304:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        EMIT(((ch >> 3) & 07) + '0');
                        ^
/datasets/git/quote.c:269:3: note: expanded from macro 'EMIT'
                if (sb) strbuf_addch(sb, (c));          \
                ^
/datasets/git/quote.c:304:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        EMIT(((ch >> 3) & 07) + '0');
                        ^
/datasets/git/quote.c:270:3: note: expanded from macro 'EMIT'
                if (fp) fputc((c), fp);                 \
                ^
/datasets/git/quote.c:305:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        EMIT(((ch >> 0) & 07) + '0');
                        ^
/datasets/git/quote.c:268:2: note: expanded from macro 'EMIT'
        do {                                        \
        ^
/datasets/git/quote.c:305:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        EMIT(((ch >> 0) & 07) + '0');
                        ^
/datasets/git/quote.c:269:3: note: expanded from macro 'EMIT'
                if (sb) strbuf_addch(sb, (c));          \
                ^
/datasets/git/quote.c:305:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        EMIT(((ch >> 0) & 07) + '0');
                        ^
/datasets/git/quote.c:270:3: note: expanded from macro 'EMIT'
                if (fp) fputc((c), fp);                 \
                ^
/datasets/git/quote.c:309:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        EMITBUF(p, len);
        ^
/datasets/git/quote.c:274:2: note: expanded from macro 'EMITBUF'
        do {                                        \
        ^
/datasets/git/quote.c:309:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        EMITBUF(p, len);
        ^
/datasets/git/quote.c:275:3: note: expanded from macro 'EMITBUF'
                if (sb) strbuf_add(sb, (s), (l));       \
                ^
/datasets/git/quote.c:309:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        EMITBUF(p, len);
        ^
/datasets/git/quote.c:276:3: note: expanded from macro 'EMITBUF'
                if (fp) fwrite((s), (l), 1, fp);        \
                ^
/datasets/git/quote.c:310:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (p == name)   /* no ending quote needed */
        ^
/datasets/git/quote.c:313:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!no_dq)
        ^
/datasets/git/quote.c:314:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                EMIT('"');
                ^
/datasets/git/quote.c:269:3: note: expanded from macro 'EMIT'
                if (sb) strbuf_addch(sb, (c));          \
                ^
/datasets/git/quote.c:314:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                EMIT('"');
                ^
/datasets/git/quote.c:270:3: note: expanded from macro 'EMIT'
                if (fp) fputc((c), fp);                 \
                ^
/datasets/git/quote.c:264:24: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                                    struct strbuf *sb, FILE *fp, unsigned flags)
                                                   ^
/datasets/git/quote.c:264:34: warning: parameter name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
                                    struct strbuf *sb, FILE *fp, unsigned flags)
                                                             ^
/datasets/git/quote.c:280:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int no_dq = !!(flags & CQUOTE_NODQ);
                       ^
/datasets/git/quote.c:281:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t len, count = 0;
        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/quote.c:281:9: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        size_t len, count = 0;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/quote.c:282:14: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        const char *p = name;
                    ^
/datasets/git/quote.c:285:7: warning: variable 'ch' is not initialized [cppcoreguidelines-init-variables]
                int ch;
                    ^
                       = 0
/datasets/git/quote.c:285:7: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/quote.c:288:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (len == maxlen || (maxlen < 0 && !p[len]))
                                                             ^
                                                              {
/datasets/git/quote.c:291:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!no_dq && p == name)
                                        ^
                                         {
/datasets/git/quote.c:292:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        EMIT('"');
                        ^
/datasets/git/quote.c:268:2: note: expanded from macro 'EMIT'
        do {                                        \
        ^
/datasets/git/quote.c:292:4: warning: the value returned by this function should be used [cert-err33-c]
                        EMIT('"');
                        ^
/datasets/git/quote.c:270:11: note: expanded from macro 'EMIT'
                if (fp) fputc((c), fp);                 \
                        ^~~~~~~~~~~~~~
/datasets/git/quote.c:292:4: note: cast the expression to void to silence this warning
                        EMIT('"');
                        ^
/datasets/git/quote.c:270:11: note: expanded from macro 'EMIT'
                if (fp) fputc((c), fp);                 \
                        ^
/datasets/git/quote.c:294:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                EMITBUF(p, len);
                ^
/datasets/git/quote.c:274:2: note: expanded from macro 'EMITBUF'
        do {                                        \
        ^
/datasets/git/quote.c:294:3: warning: the value returned by this function should be used [cert-err33-c]
                EMITBUF(p, len);
                ^
/datasets/git/quote.c:276:11: note: expanded from macro 'EMITBUF'
                if (fp) fwrite((s), (l), 1, fp);        \
                        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/quote.c:294:3: note: cast the expression to void to silence this warning
                EMITBUF(p, len);
                ^
/datasets/git/quote.c:276:11: note: expanded from macro 'EMITBUF'
                if (fp) fwrite((s), (l), 1, fp);        \
                        ^
/datasets/git/quote.c:295:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                EMIT('\\');
                ^
/datasets/git/quote.c:268:2: note: expanded from macro 'EMIT'
        do {                                        \
        ^
/datasets/git/quote.c:295:3: warning: the value returned by this function should be used [cert-err33-c]
                EMIT('\\');
                ^
/datasets/git/quote.c:270:11: note: expanded from macro 'EMIT'
                if (fp) fputc((c), fp);                 \
                        ^~~~~~~~~~~~~~
/datasets/git/quote.c:295:3: note: cast the expression to void to silence this warning
                EMIT('\\');
                ^
/datasets/git/quote.c:270:11: note: expanded from macro 'EMIT'
                if (fp) fputc((c), fp);                 \
                        ^
/datasets/git/quote.c:298:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (maxlen >= 0)
                                ^
                                 {
/datasets/git/quote.c:299:14: warning: narrowing conversion from 'unsigned long' to signed type 'ssize_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        maxlen -= len + 1;
                                  ^
/datasets/git/quote.c:301:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        EMIT(cq_lookup[ch]);
                        ^
/datasets/git/quote.c:268:2: note: expanded from macro 'EMIT'
        do {                                        \
        ^
/datasets/git/quote.c:301:4: warning: the value returned by this function should be used [cert-err33-c]
                        EMIT(cq_lookup[ch]);
                        ^
/datasets/git/quote.c:270:11: note: expanded from macro 'EMIT'
                if (fp) fputc((c), fp);                 \
                        ^~~~~~~~~~~~~~
/datasets/git/quote.c:301:4: note: cast the expression to void to silence this warning
                        EMIT(cq_lookup[ch]);
                        ^
/datasets/git/quote.c:270:11: note: expanded from macro 'EMIT'
                if (fp) fputc((c), fp);                 \
                        ^
/datasets/git/quote.c:303:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        EMIT(((ch >> 6) & 03) + '0');
                        ^
/datasets/git/quote.c:268:2: note: expanded from macro 'EMIT'
        do {                                        \
        ^
/datasets/git/quote.c:303:4: warning: the value returned by this function should be used [cert-err33-c]
                        EMIT(((ch >> 6) & 03) + '0');
                        ^
/datasets/git/quote.c:270:11: note: expanded from macro 'EMIT'
                if (fp) fputc((c), fp);                 \
                        ^~~~~~~~~~~~~~
/datasets/git/quote.c:303:4: note: cast the expression to void to silence this warning
                        EMIT(((ch >> 6) & 03) + '0');
                        ^
/datasets/git/quote.c:270:11: note: expanded from macro 'EMIT'
                if (fp) fputc((c), fp);                 \
                        ^
/datasets/git/quote.c:303:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        EMIT(((ch >> 6) & 03) + '0');
                              ^
/datasets/git/quote.c:269:29: note: expanded from macro 'EMIT'
                if (sb) strbuf_addch(sb, (c));          \
                                          ^
/datasets/git/quote.c:303:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        EMIT(((ch >> 6) & 03) + '0');
                               ^
/datasets/git/quote.c:269:29: note: expanded from macro 'EMIT'
                if (sb) strbuf_addch(sb, (c));          \
                                          ^
/datasets/git/quote.c:304:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        EMIT(((ch >> 3) & 07) + '0');
                        ^
/datasets/git/quote.c:268:2: note: expanded from macro 'EMIT'
        do {                                        \
        ^
/datasets/git/quote.c:304:4: warning: the value returned by this function should be used [cert-err33-c]
                        EMIT(((ch >> 3) & 07) + '0');
                        ^
/datasets/git/quote.c:270:11: note: expanded from macro 'EMIT'
                if (fp) fputc((c), fp);                 \
                        ^~~~~~~~~~~~~~
/datasets/git/quote.c:304:4: note: cast the expression to void to silence this warning
                        EMIT(((ch >> 3) & 07) + '0');
                        ^
/datasets/git/quote.c:270:11: note: expanded from macro 'EMIT'
                if (fp) fputc((c), fp);                 \
                        ^
/datasets/git/quote.c:304:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        EMIT(((ch >> 3) & 07) + '0');
                              ^
/datasets/git/quote.c:269:29: note: expanded from macro 'EMIT'
                if (sb) strbuf_addch(sb, (c));          \
                                          ^
/datasets/git/quote.c:304:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        EMIT(((ch >> 3) & 07) + '0');
                               ^
/datasets/git/quote.c:269:29: note: expanded from macro 'EMIT'
                if (sb) strbuf_addch(sb, (c));          \
                                          ^
/datasets/git/quote.c:305:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        EMIT(((ch >> 0) & 07) + '0');
                        ^
/datasets/git/quote.c:268:2: note: expanded from macro 'EMIT'
        do {                                        \
        ^
/datasets/git/quote.c:305:4: warning: the value returned by this function should be used [cert-err33-c]
                        EMIT(((ch >> 0) & 07) + '0');
                        ^
/datasets/git/quote.c:270:11: note: expanded from macro 'EMIT'
                if (fp) fputc((c), fp);                 \
                        ^~~~~~~~~~~~~~
/datasets/git/quote.c:305:4: note: cast the expression to void to silence this warning
                        EMIT(((ch >> 0) & 07) + '0');
                        ^
/datasets/git/quote.c:270:11: note: expanded from macro 'EMIT'
                if (fp) fputc((c), fp);                 \
                        ^
/datasets/git/quote.c:305:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        EMIT(((ch >> 0) & 07) + '0');
                              ^
/datasets/git/quote.c:269:29: note: expanded from macro 'EMIT'
                if (sb) strbuf_addch(sb, (c));          \
                                          ^
/datasets/git/quote.c:305:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        EMIT(((ch >> 0) & 07) + '0');
                               ^
/datasets/git/quote.c:269:29: note: expanded from macro 'EMIT'
                if (sb) strbuf_addch(sb, (c));          \
                                          ^
/datasets/git/quote.c:309:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        EMITBUF(p, len);
        ^
/datasets/git/quote.c:274:2: note: expanded from macro 'EMITBUF'
        do {                                        \
        ^
/datasets/git/quote.c:309:2: warning: the value returned by this function should be used [cert-err33-c]
        EMITBUF(p, len);
        ^
/datasets/git/quote.c:276:11: note: expanded from macro 'EMITBUF'
                if (fp) fwrite((s), (l), 1, fp);        \
                        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/quote.c:309:2: note: cast the expression to void to silence this warning
        EMITBUF(p, len);
        ^
/datasets/git/quote.c:276:11: note: expanded from macro 'EMITBUF'
                if (fp) fwrite((s), (l), 1, fp);        \
                        ^
/datasets/git/quote.c:310:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (p == name)   /* no ending quote needed */
                      ^
                       {
/datasets/git/quote.c:313:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!no_dq)
                   ^
                    {
/datasets/git/quote.c:314:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                EMIT('"');
                ^
/datasets/git/quote.c:268:2: note: expanded from macro 'EMIT'
        do {                                        \
        ^
/datasets/git/quote.c:314:3: warning: the value returned by this function should be used [cert-err33-c]
                EMIT('"');
                ^
/datasets/git/quote.c:270:11: note: expanded from macro 'EMIT'
                if (fp) fputc((c), fp);                 \
                        ^~~~~~~~~~~~~~
/datasets/git/quote.c:314:3: note: cast the expression to void to silence this warning
                EMIT('"');
                ^
/datasets/git/quote.c:270:11: note: expanded from macro 'EMIT'
                if (fp) fputc((c), fp);                 \
                        ^
/datasets/git/quote.c:318:55: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
size_t quote_c_style(const char *name, struct strbuf *sb, FILE *fp, unsigned flags)
                                                      ^
/datasets/git/quote.c:318:65: warning: parameter name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
size_t quote_c_style(const char *name, struct strbuf *sb, FILE *fp, unsigned flags)
                                                                ^
/datasets/git/quote.c:323:39: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void quote_two_c_style(struct strbuf *sb, const char *prefix, const char *path,
                                      ^
/datasets/git/quote.c:326:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int nodq = !!(flags & CQUOTE_NODQ);
                      ^
/datasets/git/quote.c:329:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!nodq)
                          ^
                           {
/datasets/git/quote.c:333:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!nodq)
                          ^
                           {
/datasets/git/quote.c:341:48: warning: parameter name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
void write_name_quoted(const char *name, FILE *fp, int terminator)
                                               ^
/datasets/git/quote.c:346:3: warning: the value returned by this function should be used [cert-err33-c]
                fputs(name, fp);
                ^~~~~~~~~~~~~~~
/datasets/git/quote.c:346:3: note: cast the expression to void to silence this warning
/datasets/git/quote.c:348:2: warning: the value returned by this function should be used [cert-err33-c]
        fputc(terminator, fp);
        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/quote.c:348:2: note: cast the expression to void to silence this warning
/datasets/git/quote.c:352:11: warning: parameter name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
                                FILE *fp, int terminator)
                                      ^
/datasets/git/quote.c:354:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/quote.c:363:30: warning: parameter name 'in' is too short, expected at least 3 characters [readability-identifier-length]
char *quote_path(const char *in, const char *prefix, struct strbuf *out, unsigned flags)
                             ^
/datasets/git/quote.c:365:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/quote.c:367:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int force_dq = ((flags & QUOTE_PATH_QUOTE_SP) && strchr(rel, ' '));
                         ^
/datasets/git/quote.c:376:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (force_dq)
                     ^
                      {
/datasets/git/quote.c:378:29: warning: narrowing conversion from 'unsigned long' to signed type 'ssize_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        quote_c_style_counted(rel, strlen(rel), out, NULL,
                                   ^
/datasets/git/quote.c:380:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (force_dq)
                     ^
                      {
/datasets/git/quote.c:399:36: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
int unquote_c_style(struct strbuf *sb, const char *quoted, const char **endp)
                                   ^
/datasets/git/quote.c:401:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t oldlen = sb->len, len;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/quote.c:401:27: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        size_t oldlen = sb->len, len;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/quote.c:402:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int ch, ac;
        ^~~~~~~~~~~
/datasets/git/quote.c:402:6: warning: variable 'ch' is not initialized [cppcoreguidelines-init-variables]
        int ch, ac;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/quote.c:402:6: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/quote.c:402:10: warning: variable 'ac' is not initialized [cppcoreguidelines-init-variables]
        int ch, ac;
                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/quote.c:402:10: warning: variable name 'ac' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/quote.c:404:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*quoted++ != '"')
                             ^
                              {
/datasets/git/quote.c:407:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/quote.c:414:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (endp)
                                 ^
                                  {
/datasets/git/quote.c:423:17: warning: 'signed char' to 'int' conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse,cert-str34-c]
                switch ((ch = *quoted++)) {
                              ^
/datasets/git/quote.c:437:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        ac = ((ch - '0') << 6);
                                              ^~~~~~~~~~
/datasets/git/quote.c:437:26: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                        ac = ((ch - '0') << 6);
                                                            ^
/datasets/git/quote.c:438:9: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                        if ((ch = *quoted++) < '0' || '7' < ch)
                             ^
/datasets/git/quote.c:438:9: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/quote.c:438:9: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/quote.c:438:14: warning: 'signed char' to 'int' conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse,cert-str34-c]
                        if ((ch = *quoted++) < '0' || '7' < ch)
                                  ^
/datasets/git/quote.c:438:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if ((ch = *quoted++) < '0' || '7' < ch)
                                                               ^
                                                                {
/datasets/git/quote.c:440:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        ac |= ((ch - '0') << 3);
                                        ^~
/datasets/git/quote.c:440:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        ac |= ((ch - '0') << 3);
                                               ^~~~~~~~~~
/datasets/git/quote.c:441:9: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                        if ((ch = *quoted++) < '0' || '7' < ch)
                             ^
/datasets/git/quote.c:441:9: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/quote.c:441:9: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/quote.c:441:14: warning: 'signed char' to 'int' conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse,cert-str34-c]
                        if ((ch = *quoted++) < '0' || '7' < ch)
                                  ^
/datasets/git/quote.c:441:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if ((ch = *quoted++) < '0' || '7' < ch)
                                                               ^
                                                                {
/datasets/git/quote.c:443:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        ac |= (ch - '0');
                                        ^~
/datasets/git/quote.c:459:36: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void perl_quote_buf(struct strbuf *sb, const char *src)
                                   ^
/datasets/git/quote.c:463:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        char c;
        ^
/datasets/git/quote.c:461:13: warning: variable name 'sq' is too short, expected at least 3 characters [readability-identifier-length]
        const char sq = '\'';
                   ^
/datasets/git/quote.c:462:13: warning: variable name 'bq' is too short, expected at least 3 characters [readability-identifier-length]
        const char bq = '\\';
                   ^
/datasets/git/quote.c:463:7: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        char c;
             ^
               = 0
/datasets/git/quote.c:463:7: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/quote.c:466:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((c = *src++)) {
        ^
/datasets/git/quote.c:466:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'c' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((c = *src++)) {
               ^
/datasets/git/quote.c:467:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (c == sq || c == bq)
                                       ^
                                        {
/datasets/git/quote.c:474:45: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void perl_quote_buf_with_len(struct strbuf *sb, const char *src, size_t len)
                                            ^
/datasets/git/quote.c:478:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        const char *c = src;
        ^
/datasets/git/quote.c:476:13: warning: variable name 'sq' is too short, expected at least 3 characters [readability-identifier-length]
        const char sq = '\'';
                   ^
/datasets/git/quote.c:477:13: warning: variable name 'bq' is too short, expected at least 3 characters [readability-identifier-length]
        const char bq = '\\';
                   ^
/datasets/git/quote.c:478:14: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        const char *c = src;
                    ^
/datasets/git/quote.c:482:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (c != end) {
        ^
/datasets/git/quote.c:482:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'c' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (c != end) {
               ^
/datasets/git/quote.c:483:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*c == sq || *c == bq)
                                         ^
                                          {
/datasets/git/quote.c:491:38: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void python_quote_buf(struct strbuf *sb, const char *src)
                                     ^
/datasets/git/quote.c:496:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        char c;
        ^
/datasets/git/quote.c:493:13: warning: variable name 'sq' is too short, expected at least 3 characters [readability-identifier-length]
        const char sq = '\'';
                   ^
/datasets/git/quote.c:494:13: warning: variable name 'bq' is too short, expected at least 3 characters [readability-identifier-length]
        const char bq = '\\';
                   ^
/datasets/git/quote.c:495:13: warning: variable name 'nl' is too short, expected at least 3 characters [readability-identifier-length]
        const char nl = '\n';
                   ^
/datasets/git/quote.c:496:7: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        char c;
             ^
               = 0
/datasets/git/quote.c:496:7: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/quote.c:499:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((c = *src++)) {
        ^
/datasets/git/quote.c:499:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'c' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((c = *src++)) {
               ^
/datasets/git/quote.c:505:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (c == sq || c == bq)
                                       ^
                                        {
/datasets/git/quote.c:512:35: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void tcl_quote_buf(struct strbuf *sb, const char *src)
                                  ^
/datasets/git/quote.c:514:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        char c;
        ^
/datasets/git/quote.c:514:7: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        char c;
             ^
               = 0
/datasets/git/quote.c:514:7: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/quote.c:517:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((c = *src++)) {
        ^
/datasets/git/quote.c:517:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'c' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((c = *src++)) {
               ^
/datasets/git/quote.c:547:43: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void basic_regex_quote_buf(struct strbuf *sb, const char *src)
                                          ^
/datasets/git/quote.c:549:7: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        char c;
             ^
               = 0
/datasets/git/quote.c:549:7: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/quote.c:556:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*src == '*')
                        ^
                         {
/datasets/git/quote.c:560:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((c = *src++)) {
        ^
/datasets/git/quote.c:560:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'c' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((c = *src++)) {
               ^
/datasets/git/quote.c:572:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (*src == '\0')
                                         ^
                                          {
/datasets/git/range-diff.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "range-diff.h"
^        ~~~~~~~~~~~~~~
         "apply.h"
/datasets/git/range-diff.c:16:8: warning: accessing fields in struct 'patch_util' is inefficient due to padding; only needs 92 bytes but is using 96 bytes [altera-struct-pack-align]
struct patch_util {
       ^
/datasets/git/range-diff.c:16:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'patch_util'
/datasets/git/range-diff.c:16:8: warning: accessing fields in struct 'patch_util' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct patch_util {
       ^
/datasets/git/range-diff.c:16:8: note: use "__attribute__((aligned(128)))" to align struct 'patch_util' to 128 bytes
/datasets/git/range-diff.c:33:12: warning: function 'read_patches' has cognitive complexity of 81 (threshold 25) [readability-function-cognitive-complexity]
static int read_patches(const char *range, struct string_list *list,
           ^
/datasets/git/range-diff.c:61:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (other_arg)
        ^
/datasets/git/range-diff.c:67:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (start_command(&cp))
        ^
/datasets/git/range-diff.c:69:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (strbuf_read(&contents, cp.out, 0) < 0) {
        ^
/datasets/git/range-diff.c:72:3: note: +1
                goto cleanup;
                ^
/datasets/git/range-diff.c:74:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (finish_command(&cp))
        ^
/datasets/git/range-diff.c:79:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (; size > 0; size -= len, line += len) {
        ^
/datasets/git/range-diff.c:84:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (eol) {
                ^
/datasets/git/range-diff.c:87:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/range-diff.c:91:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (skip_prefix(line, "commit ", &p)) {
                ^
/datasets/git/range-diff.c:92:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (util) {
                        ^
/datasets/git/range-diff.c:97:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (get_oid(p, &util->oid)) {
                        ^
/datasets/git/range-diff.c:99:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                FREE_AND_NULL(util);
                                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/range-diff.c:101:5: note: +1
                                goto cleanup;
                                ^
/datasets/git/range-diff.c:108:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!util) {
                ^
/datasets/git/range-diff.c:113:4: note: +1
                        goto cleanup;
                        ^
/datasets/git/range-diff.c:116:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (starts_with(line, "diff --git")) {
                ^
/datasets/git/range-diff.c:124:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!util->diff_offset)
                        ^
/datasets/git/range-diff.c:126:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (eol)
                        ^
/datasets/git/range-diff.c:131:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (len < 0) {
                        ^
/datasets/git/range-diff.c:134:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                FREE_AND_NULL(util);
                                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/range-diff.c:136:5: note: +1
                                goto cleanup;
                                ^
/datasets/git/range-diff.c:139:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (patch.is_new > 0)
                        ^
/datasets/git/range-diff.c:141:9: note: +1, nesting level increased to 3
                        else if (patch.is_delete > 0)
                             ^
/datasets/git/range-diff.c:143:9: note: +1, nesting level increased to 3
                        else if (patch.is_rename)
                             ^
/datasets/git/range-diff.c:145:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/range-diff.c:149:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (patch.is_delete > 0)
                        ^
/datasets/git/range-diff.c:151:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/range-diff.c:154:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (patch.new_mode && patch.old_mode &&
                        ^
/datasets/git/range-diff.c:154:41: note: +1
                        if (patch.new_mode && patch.old_mode &&
                                                             ^
/datasets/git/range-diff.c:161:10: note: +1, nesting level increased to 2
                } else if (in_header) {
                       ^
/datasets/git/range-diff.c:162:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (starts_with(line, "Author: ")) {
                        ^
/datasets/git/range-diff.c:167:11: note: +1, nesting level increased to 3
                        } else if (starts_with(line, "Notes") &&
                               ^
/datasets/git/range-diff.c:167:42: note: +1
                        } else if (starts_with(line, "Notes") &&
                                                              ^
/datasets/git/range-diff.c:173:11: note: +1, nesting level increased to 3
                        } else if (starts_with(line, "    ")) {
                               ^
/datasets/git/range-diff.c:175:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                while (isspace(*p) && p >= line)
                                ^
/datasets/git/range-diff.c:175:24: note: +1
                                while (isspace(*p) && p >= line)
                                                   ^
/datasets/git/range-diff.c:181:10: note: +1, nesting level increased to 2
                } else if (skip_prefix(line, "@@ ", &p)) {
                       ^
/datasets/git/range-diff.c:184:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (current_filename && p[2])
                        ^
/datasets/git/range-diff.c:184:25: note: +1
                        if (current_filename && p[2])
                                             ^
/datasets/git/range-diff.c:186:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (p)
                        ^
/datasets/git/range-diff.c:188:10: note: +1, nesting level increased to 2
                } else if (!line[0])
                       ^
/datasets/git/range-diff.c:197:8: note: +1, nesting level increased to 2
                else if (line[0] == '>') {
                     ^
/datasets/git/range-diff.c:200:10: note: +1, nesting level increased to 2
                } else if (line[0] == '<') {
                       ^
/datasets/git/range-diff.c:203:10: note: +1, nesting level increased to 2
                } else if (line[0] == '#') {
                       ^
/datasets/git/range-diff.c:206:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/range-diff.c:219:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (util)
        ^
/datasets/git/range-diff.c:36:23: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
        struct child_process cp = CHILD_PROCESS_INIT;
                             ^
/datasets/git/range-diff.c:37:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct strbuf buf = STRBUF_INIT, contents = STRBUF_INIT;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/range-diff.c:40:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *line, *current_filename = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/range-diff.c:40:8: warning: variable 'line' is not initialized [cppcoreguidelines-init-variables]
        char *line, *current_filename = NULL;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/range-diff.c:41:10: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        ssize_t len;
                ^
                    = 0
/datasets/git/range-diff.c:42:9: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        size_t size;
               ^
                    = 0
/datasets/git/range-diff.c:61:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (other_arg)
                      ^
                       {
/datasets/git/range-diff.c:67:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (start_command(&cp))
                               ^
                                {
/datasets/git/range-diff.c:74:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (finish_command(&cp))
                                ^
                                 {
/datasets/git/range-diff.c:79:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'size' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; size > 0; size -= len, line += len) {
               ^
/datasets/git/range-diff.c:80:15: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                const char *p;
                            ^
                              = NULL
/datasets/git/range-diff.c:80:15: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/range-diff.c:81:9: warning: variable 'eol' is not initialized [cppcoreguidelines-init-variables]
                char *eol;
                      ^
                          = NULL
/datasets/git/range-diff.c:88:10: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'ssize_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        len = size;
                              ^
/datasets/git/range-diff.c:99:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                FREE_AND_NULL(util);
                                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/range-diff.c:120:8: warning: variable 'orig_len' is not initialized [cppcoreguidelines-init-variables]
                        int orig_len;
                            ^
                                     = 0
/datasets/git/range-diff.c:124:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!util->diff_offset)
                                               ^
                                                {
/datasets/git/range-diff.c:126:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (eol)
                                ^
                                 {
/datasets/git/range-diff.c:128:15: warning: narrowing conversion from 'ssize_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        orig_len = len;
                                   ^
/datasets/git/range-diff.c:130:11: warning: narrowing conversion from 'ssize_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                                    len, size, &patch);
                                                    ^
/datasets/git/range-diff.c:134:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                FREE_AND_NULL(util);
                                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/range-diff.c:139:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (patch.is_new > 0)
                                             ^
                                              {
/datasets/git/range-diff.c:141:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (patch.is_delete > 0)
                                                     ^
                                                      {
/datasets/git/range-diff.c:143:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (patch.is_rename)
                                                 ^
                                                  {
/datasets/git/range-diff.c:145:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/range-diff.c:149:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (patch.is_delete > 0)
                                                ^
                                                 {
/datasets/git/range-diff.c:151:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/range-diff.c:155:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            patch.old_mode != patch.new_mode)
                                                             ^
                                                              {
/datasets/git/range-diff.c:175:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                while (isspace(*p) && p >= line)
                                ^
/datasets/git/range-diff.c:175:12: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                                while (isspace(*p) && p >= line)
                                       ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^
/datasets/git/./git-compat-util.h:1215:29: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                            ^
/datasets/git/range-diff.c:175:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                while (isspace(*p) && p >= line)
                                       ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/range-diff.c:175:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                while (isspace(*p) && p >= line)
                                                                ^
                                                                 {
/datasets/git/range-diff.c:184:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (current_filename && p[2])
                                                     ^
                                                      {
/datasets/git/range-diff.c:186:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (p)
                              ^
                               {
/datasets/git/range-diff.c:188:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else if (!line[0])
                                    ^
                                     {
/datasets/git/range-diff.c:219:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (util)
                 ^
                  {
/datasets/git/range-diff.c:228:31: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
                          const struct patch_util *a,
                                                   ^
/datasets/git/range-diff.c:229:31: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
                          const struct patch_util *b,
                                                   ^
/datasets/git/range-diff.c:235:52: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static void find_exact_matches(struct string_list *a, struct string_list *b)
                                                   ^
/datasets/git/range-diff.c:235:75: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static void find_exact_matches(struct string_list *a, struct string_list *b)
                                                                          ^
/datasets/git/range-diff.c:238:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/range-diff.c:238:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/range-diff.c:241:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < a->nr; i++) {
        ^
/datasets/git/range-diff.c:252:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < b->nr; i++) {
        ^
/datasets/git/range-diff.c:253:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                struct patch_util *util = b->items[i].util, *other;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/range-diff.c:253:48: warning: variable 'other' is not initialized [cppcoreguidelines-init-variables]
                struct patch_util *util = b->items[i].util, *other;
                                                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/range-diff.c:261:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (other->matching >= 0)
                                                 ^
                                                  {
/datasets/git/range-diff.c:272:47: warning: parameter 'line' is unused [misc-unused-parameters]
static int diffsize_consume(void *data, char *line, unsigned long len)
                                              ^
/datasets/git/range-diff.c:272:67: warning: parameter 'len' is unused [misc-unused-parameters]
static int diffsize_consume(void *data, char *line, unsigned long len)
                                                                  ^
/datasets/git/range-diff.c:278:44: warning: parameter 'ob' is unused [misc-unused-parameters]
static void diffsize_hunk(void *data, long ob, long on, long nb, long nn,
                                           ^
/datasets/git/range-diff.c:278:44: warning: parameter name 'ob' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/range-diff.c:278:48: warning: 2 adjacent parameters of 'diffsize_hunk' of similar type ('long') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void diffsize_hunk(void *data, long ob, long on, long nb, long nn,
                                               ^~~~~~~~~~~~~~~~
/datasets/git/range-diff.c:278:53: note: the first parameter in the range is 'on'
static void diffsize_hunk(void *data, long ob, long on, long nb, long nn,
                                                    ^~
/datasets/git/range-diff.c:278:62: note: the last parameter in the range is 'nb'
static void diffsize_hunk(void *data, long ob, long on, long nb, long nn,
                                                             ^~
/datasets/git/range-diff.c:278:53: warning: parameter 'on' is unused [misc-unused-parameters]
static void diffsize_hunk(void *data, long ob, long on, long nb, long nn,
                                                    ^
/datasets/git/range-diff.c:278:53: warning: parameter name 'on' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/range-diff.c:278:62: warning: parameter 'nb' is unused [misc-unused-parameters]
static void diffsize_hunk(void *data, long ob, long on, long nb, long nn,
                                                             ^
/datasets/git/range-diff.c:278:62: warning: parameter name 'nb' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/range-diff.c:278:71: warning: parameter 'nn' is unused [misc-unused-parameters]
static void diffsize_hunk(void *data, long ob, long on, long nb, long nn,
                                                                      ^
/datasets/git/range-diff.c:278:71: warning: parameter name 'nn' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/range-diff.c:279:18: warning: parameter 'funcline' is unused [misc-unused-parameters]
                          const char *funcline, long funclen)
                                      ^
/datasets/git/range-diff.c:279:33: warning: parameter 'funclen' is unused [misc-unused-parameters]
                          const char *funcline, long funclen)
                                                     ^
/datasets/git/range-diff.c:284:33: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static int diffsize(const char *a, const char *b)
                                ^
/datasets/git/range-diff.c:284:48: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static int diffsize(const char *a, const char *b)
                                               ^
/datasets/git/range-diff.c:286:12: warning: variable name 'pp' is too short, expected at least 3 characters [readability-identifier-length]
        xpparam_t pp = { 0 };
                  ^
/datasets/git/range-diff.c:288:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        mmfile_t mf1, mf2;
        ^~~~~~~~~~~~~~~~~~
/datasets/git/range-diff.c:292:13: warning: narrowing conversion from 'unsigned long' to signed type 'long' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        mf1.size = strlen(a);
                   ^
/datasets/git/range-diff.c:294:13: warning: narrowing conversion from 'unsigned long' to signed type 'long' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        mf2.size = strlen(b);
                   ^
/datasets/git/range-diff.c:299:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                           &pp, &cfg))
                                      ^
                                       {
/datasets/git/range-diff.c:303:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return COST_MAX;
               ^
./linear-assignment.h:20:19: note: expanded from macro 'COST_MAX'
#define COST_MAX (1<<16)
                  ^
/datasets/git/range-diff.c:306:53: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static void get_correspondences(struct string_list *a, struct string_list *b,
                                                    ^
/datasets/git/range-diff.c:306:76: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static void get_correspondences(struct string_list *a, struct string_list *b,
                                                                           ^
/datasets/git/range-diff.c:309:6: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
        int n = a->nr + b->nr;
            ^
/datasets/git/range-diff.c:309:10: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int n = a->nr + b->nr;
                ^
/datasets/git/range-diff.c:310:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int *cost, c, *a2b, *b2a;
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/range-diff.c:310:7: warning: variable 'cost' is not initialized [cppcoreguidelines-init-variables]
        int *cost, c, *a2b, *b2a;
             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/range-diff.c:310:13: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        int *cost, c, *a2b, *b2a;
                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/range-diff.c:310:13: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/range-diff.c:310:17: warning: variable 'a2b' is not initialized [cppcoreguidelines-init-variables]
        int *cost, c, *a2b, *b2a;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/range-diff.c:310:23: warning: variable 'b2a' is not initialized [cppcoreguidelines-init-variables]
        int *cost, c, *a2b, *b2a;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/range-diff.c:311:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, j;
        ^~~~~~~~~
/datasets/git/range-diff.c:311:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/range-diff.c:311:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, j;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/range-diff.c:311:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/range-diff.c:311:9: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int i, j;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/range-diff.c:311:9: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/range-diff.c:311:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int i, j;
        ^
/datasets/git/range-diff.c:317:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < a->nr; i++) {
                    ^
/datasets/git/range-diff.c:311:2: note: inferred assignment of ID-dependent value from ID-dependent 
        int i, j;
        ^
/datasets/git/range-diff.c:320:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (j = 0; j < b->nr; j++) {
                ^
/datasets/git/range-diff.c:320:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'j' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (j = 0; j < b->nr; j++) {
                            ^
/datasets/git/range-diff.c:323:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (a_util->matching == j)
                                                  ^
                                                   {
/datasets/git/range-diff.c:325:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (a_util->matching < 0 && b_util->matching < 0)
                                                                              ^
                                                                               {
/datasets/git/range-diff.c:327:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/range-diff.c:328:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                c = COST_MAX;
                                    ^
./linear-assignment.h:20:19: note: expanded from macro 'COST_MAX'
#define COST_MAX (1<<16)
                  ^
/datasets/git/range-diff.c:333:41: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        a_util->diffsize * creation_factor / 100 : COST_MAX;
                                                             ^
/datasets/git/range-diff.c:333:47: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        a_util->diffsize * creation_factor / 100 : COST_MAX;
                                                                   ^
./linear-assignment.h:20:19: note: expanded from macro 'COST_MAX'
#define COST_MAX (1<<16)
                  ^
/datasets/git/range-diff.c:334:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (j = b->nr; j < n; j++)
                ^
/datasets/git/range-diff.c:334:12: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                for (j = b->nr; j < n; j++)
                         ^
/datasets/git/range-diff.c:334:19: warning: backward branch (for loop) is ID-dependent due to variable reference to 'j' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (j = b->nr; j < n; j++)
                                ^
/datasets/git/range-diff.c:334:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (j = b->nr; j < n; j++)
                                           ^
                                            {
/datasets/git/range-diff.c:338:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'j' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (j = 0; j < b->nr; j++) {
                    ^
/datasets/git/range-diff.c:342:39: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        util->diffsize * creation_factor / 100 : COST_MAX;
                                                           ^
/datasets/git/range-diff.c:342:45: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        util->diffsize * creation_factor / 100 : COST_MAX;
                                                                 ^
./linear-assignment.h:20:19: note: expanded from macro 'COST_MAX'
#define COST_MAX (1<<16)
                  ^
/datasets/git/range-diff.c:343:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = a->nr; i < n; i++)
                ^
/datasets/git/range-diff.c:343:12: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                for (i = a->nr; i < n; i++)
                         ^
/datasets/git/range-diff.c:343:19: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = a->nr; i < n; i++)
                                ^
/datasets/git/range-diff.c:343:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = a->nr; i < n; i++)
                                           ^
                                            {
/datasets/git/range-diff.c:347:11: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        for (i = a->nr; i < n; i++)
                 ^
/datasets/git/range-diff.c:347:18: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = a->nr; i < n; i++)
                        ^
/datasets/git/range-diff.c:347:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = a->nr; i < n; i++)
                                   ^
                                    {
/datasets/git/range-diff.c:348:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (j = b->nr; j < n; j++)
                ^
/datasets/git/range-diff.c:348:12: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                for (j = b->nr; j < n; j++)
                         ^
/datasets/git/range-diff.c:348:19: warning: backward branch (for loop) is ID-dependent due to variable reference to 'j' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (j = b->nr; j < n; j++)
                                ^
/datasets/git/range-diff.c:348:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (j = b->nr; j < n; j++)
                                           ^
                                            {
/datasets/git/range-diff.c:353:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < a->nr; i++)
        ^
/datasets/git/range-diff.c:353:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < a->nr; i++)
                    ^
/datasets/git/range-diff.c:353:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < a->nr; i++)
                                   ^
                                    {
/datasets/git/range-diff.c:375:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/range-diff.c:376:7: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        char status;
             ^
                    = 0
/datasets/git/range-diff.c:381:14: warning: variable 'color' is not initialized [cppcoreguidelines-init-variables]
        const char *color;
                    ^
                          = NULL
/datasets/git/range-diff.c:383:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!dashes->len)
                         ^
                          {
/datasets/git/range-diff.c:394:13: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        } else if (strcmp(a_util->patch, b_util->patch)) {
                   ^
                                                        != 0
/datasets/git/range-diff.c:404:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!a_util)
                    ^
                     {
/datasets/git/range-diff.c:406:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/range-diff.c:410:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (status == '!')
                          ^
                           {
/datasets/git/range-diff.c:413:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (status == '!')
                          ^
                           {
/datasets/git/range-diff.c:416:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!b_util)
                    ^
                     {
/datasets/git/range-diff.c:418:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/range-diff.c:424:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (status == '!')
                                  ^
                                   {
/datasets/git/range-diff.c:432:2: warning: the value returned by this function should be used [cert-err33-c]
        fwrite(buf->buf, buf->len, 1, diffopt->file);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/range-diff.c:432:2: note: cast the expression to void to silence this warning
/datasets/git/range-diff.c:435:31: warning: variable 'section_headers' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct userdiff_driver section_headers = {
                              ^
/datasets/git/range-diff.c:440:43: warning: 2 adjacent parameters of 'get_filespec' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static struct diff_filespec *get_filespec(const char *name, const char *p)
                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/range-diff.c:440:55: note: the first parameter in the range is 'name'
static struct diff_filespec *get_filespec(const char *name, const char *p)
                                                      ^~~~
/datasets/git/range-diff.c:440:73: note: the last parameter in the range is 'p'
static struct diff_filespec *get_filespec(const char *name, const char *p)
                                                                        ^
/datasets/git/range-diff.c:440:73: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static struct diff_filespec *get_filespec(const char *name, const char *p)
                                                                        ^
/datasets/git/range-diff.c:444:37: warning: 0100644 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        fill_filespec(spec, null_oid(), 0, 0100644);
                                           ^
/datasets/git/range-diff.c:454:36: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static void patch_diff(const char *a, const char *b,
                                   ^
/datasets/git/range-diff.c:454:51: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static void patch_diff(const char *a, const char *b,
                                                  ^
/datasets/git/range-diff.c:464:61: warning: parameter 'opt' is unused [misc-unused-parameters]
static struct strbuf *output_prefix_cb(struct diff_options *opt, void *data)
                                                            ^
/datasets/git/range-diff.c:469:13: warning: function 'output' has cognitive complexity of 36 (threshold 25) [readability-function-cognitive-complexity]
static void output(struct string_list *a, struct string_list *b,
            ^
/datasets/git/range-diff.c:473:56: note: +1, including nesting penalty of 0, nesting level increased to 1
        int patch_no_width = decimal_width(1 + (a->nr > b->nr ? a->nr : b->nr));
                                                              ^
/datasets/git/range-diff.c:478:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (range_diff_opts->diffopt)
        ^
/datasets/git/range-diff.c:480:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/range-diff.c:484:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!opts.output_format)
        ^
/datasets/git/range-diff.c:503:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (i < a->nr || j < b->nr) {
        ^
/datasets/git/range-diff.c:503:19: note: +1
        while (i < a->nr || j < b->nr) {
                         ^
/datasets/git/range-diff.c:505:22: note: +2, including nesting penalty of 1, nesting level increased to 2
                a_util = i < a->nr ? a->items[i].util : NULL;
                                   ^
/datasets/git/range-diff.c:506:22: note: +2, including nesting penalty of 1, nesting level increased to 2
                b_util = j < b->nr ? b->items[j].util : NULL;
                                   ^
/datasets/git/range-diff.c:509:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (i < a->nr && a_util->shown)
                ^
/datasets/git/range-diff.c:509:20: note: +1
                while (i < a->nr && a_util->shown)
                                 ^
/datasets/git/range-diff.c:510:25: note: +3, including nesting penalty of 2, nesting level increased to 3
                        a_util = ++i < a->nr ? a->items[i].util : NULL;
                                             ^
/datasets/git/range-diff.c:513:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (i < a->nr && a_util->matching < 0) {
                ^
/datasets/git/range-diff.c:513:17: note: +1
                if (i < a->nr && a_util->matching < 0) {
                              ^
/datasets/git/range-diff.c:514:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!range_diff_opts->right_only)
                        ^
/datasets/git/range-diff.c:522:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (j < b->nr && b_util->matching < 0) {
                ^
/datasets/git/range-diff.c:522:20: note: +1
                while (j < b->nr && b_util->matching < 0) {
                                 ^
/datasets/git/range-diff.c:523:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!range_diff_opts->left_only)
                        ^
/datasets/git/range-diff.c:526:25: note: +3, including nesting penalty of 2, nesting level increased to 3
                        b_util = ++j < b->nr ? b->items[j].util : NULL;
                                             ^
/datasets/git/range-diff.c:530:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (j < b->nr) {
                ^
/datasets/git/range-diff.c:534:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!(opts.output_format & DIFF_FORMAT_NO_OUTPUT))
                        ^
/datasets/git/range-diff.c:469:40: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static void output(struct string_list *a, struct string_list *b,
                                       ^
/datasets/git/range-diff.c:469:63: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static void output(struct string_list *a, struct string_list *b,
                                                              ^
/datasets/git/range-diff.c:472:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct strbuf buf = STRBUF_INIT, dashes = STRBUF_INIT;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/range-diff.c:474:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i = 0, j = 0;
        ^~~~~~~~~~~~~~~~~
/datasets/git/range-diff.c:474:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0, j = 0;
            ^
/datasets/git/range-diff.c:474:13: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0, j = 0;
                   ^
/datasets/git/range-diff.c:478:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (range_diff_opts->diffopt)
                                     ^
                                      {
/datasets/git/range-diff.c:479:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(&opts, range_diff_opts->diffopt, sizeof(opts));
                ^~~~~~
/datasets/git/range-diff.c:479:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(&opts, range_diff_opts->diffopt, sizeof(opts));
                ^~~~~~
/datasets/git/range-diff.c:480:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/range-diff.c:484:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opts.output_format)
                                ^
                                 {
/datasets/git/range-diff.c:504:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                struct patch_util *a_util, *b_util;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/range-diff.c:504:22: warning: variable 'a_util' is not initialized [cppcoreguidelines-init-variables]
                struct patch_util *a_util, *b_util;
                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/range-diff.c:504:31: warning: variable 'b_util' is not initialized [cppcoreguidelines-init-variables]
                struct patch_util *a_util, *b_util;
                                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/range-diff.c:509:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (i < a->nr && a_util->shown)
                ^
/datasets/git/range-diff.c:504:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                struct patch_util *a_util, *b_util;
                ^
/datasets/git/range-diff.c:509:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'a_util' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (i < a->nr && a_util->shown)
                       ^
/datasets/git/range-diff.c:509:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (i < a->nr && a_util->shown)
                                                  ^
                                                   {
/datasets/git/range-diff.c:514:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!range_diff_opts->right_only)
                                                         ^
                                                          {
/datasets/git/range-diff.c:522:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (j < b->nr && b_util->matching < 0) {
                ^
/datasets/git/range-diff.c:522:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'b_util' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (j < b->nr && b_util->matching < 0) {
                       ^
/datasets/git/range-diff.c:523:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!range_diff_opts->left_only)
                                                        ^
                                                         {
/datasets/git/range-diff.c:531:13: warning: Dereference of null pointer [clang-analyzer-core.NullDereference]
                        a_util = a->items[b_util->matching].util;
                                 ^
/datasets/git/range-diff.c:553:2: note: 'branch1.items' initialized to a null pointer value
        struct string_list branch1 = STRING_LIST_INIT_DUP;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/range-diff.c:556:6: note: Assuming field 'left_only' is 0
        if (range_diff_opts->left_only && range_diff_opts->right_only)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/range-diff.c:556:33: note: Left side of '&&' is false
        if (range_diff_opts->left_only && range_diff_opts->right_only)
                                       ^
/datasets/git/range-diff.c:559:7: note: 'res' is 0
        if (!res && read_patches(range1, &branch1, range_diff_opts->other_arg))
             ^~~
/datasets/git/range-diff.c:559:6: note: Left side of '&&' is true
        if (!res && read_patches(range1, &branch1, range_diff_opts->other_arg))
            ^
/datasets/git/range-diff.c:559:14: note: Calling 'read_patches'
        if (!res && read_patches(range1, &branch1, range_diff_opts->other_arg))
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/range-diff.c:61:6: note: Assuming 'other_arg' is null
        if (other_arg)
            ^~~~~~~~~
/datasets/git/range-diff.c:61:2: note: Taking false branch
        if (other_arg)
        ^
/datasets/git/range-diff.c:67:6: note: Assuming the condition is false
        if (start_command(&cp))
            ^~~~~~~~~~~~~~~~~~
/datasets/git/range-diff.c:67:2: note: Taking false branch
        if (start_command(&cp))
        ^
/datasets/git/range-diff.c:69:6: note: Assuming the condition is false
        if (strbuf_read(&contents, cp.out, 0) < 0) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/range-diff.c:69:2: note: Taking false branch
        if (strbuf_read(&contents, cp.out, 0) < 0) {
        ^
/datasets/git/range-diff.c:74:6: note: Assuming the condition is false
        if (finish_command(&cp))
            ^~~~~~~~~~~~~~~~~~~
/datasets/git/range-diff.c:74:2: note: Taking false branch
        if (finish_command(&cp))
        ^
/datasets/git/range-diff.c:79:9: note: Assuming 'size' is <= 0
        for (; size > 0; size -= len, line += len) {
               ^~~~~~~~
/datasets/git/range-diff.c:79:2: note: Loop condition is false. Execution continues on line 215
        for (; size > 0; size -= len, line += len) {
        ^
/datasets/git/range-diff.c:219:6: note: 'util' is null
        if (util)
            ^~~~
/datasets/git/range-diff.c:219:2: note: Taking false branch
        if (util)
        ^
/datasets/git/range-diff.c:224:2: note: Returning without writing to 'list->items'
        return ret;
        ^
/datasets/git/range-diff.c:559:14: note: Returning from 'read_patches'
        if (!res && read_patches(range1, &branch1, range_diff_opts->other_arg))
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/range-diff.c:559:2: note: Taking false branch
        if (!res && read_patches(range1, &branch1, range_diff_opts->other_arg))
        ^
/datasets/git/range-diff.c:561:7: note: 'res' is 0
        if (!res && read_patches(range2, &branch2, range_diff_opts->other_arg))
             ^~~
/datasets/git/range-diff.c:561:6: note: Left side of '&&' is true
        if (!res && read_patches(range2, &branch2, range_diff_opts->other_arg))
            ^
/datasets/git/range-diff.c:561:2: note: Taking false branch
        if (!res && read_patches(range2, &branch2, range_diff_opts->other_arg))
        ^
/datasets/git/range-diff.c:564:7: note: 'res' is 0
        if (!res) {
             ^~~
/datasets/git/range-diff.c:564:2: note: Taking true branch
        if (!res) {
        ^
/datasets/git/range-diff.c:565:3: note: Calling 'find_exact_matches'
                find_exact_matches(&branch1, &branch2);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/range-diff.c:241:2: note: Loop condition is false. Execution continues on line 252
        for (i = 0; i < a->nr; i++) {
        ^
/datasets/git/range-diff.c:252:14: note: Assuming 'i' is < field 'nr'
        for (i = 0; i < b->nr; i++) {
                    ^~~~~~~~~
/datasets/git/range-diff.c:252:2: note: Loop condition is true.  Entering loop body
        for (i = 0; i < b->nr; i++) {
        ^
/datasets/git/range-diff.c:260:7: note: 'other' is null
                if (other) {
                    ^~~~~
/datasets/git/range-diff.c:260:3: note: Taking false branch
                if (other) {
                ^
/datasets/git/range-diff.c:252:14: note: Assuming 'i' is >= field 'nr'
        for (i = 0; i < b->nr; i++) {
                    ^~~~~~~~~
/datasets/git/range-diff.c:252:2: note: Loop condition is false. Execution continues on line 269
        for (i = 0; i < b->nr; i++) {
        ^
/datasets/git/range-diff.c:270:1: note: Returning without writing to 'a->items'
}
^
/datasets/git/range-diff.c:565:3: note: Returning from 'find_exact_matches'
                find_exact_matches(&branch1, &branch2);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/range-diff.c:566:3: note: Calling 'get_correspondences'
                get_correspondences(&branch1, &branch2,
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/range-diff.c:317:2: note: Loop condition is false. Execution continues on line 338
        for (i = 0; i < a->nr; i++) {
        ^
/datasets/git/range-diff.c:338:2: note: Loop condition is true.  Entering loop body
        for (j = 0; j < b->nr; j++) {
        ^
/datasets/git/range-diff.c:341:7: note: Assuming field 'matching' is >= 0
                c = util->matching < 0 ?
                    ^~~~~~~~~~~~~~~~~~
/datasets/git/range-diff.c:341:7: note: '?' condition is false
/datasets/git/range-diff.c:343:3: note: Loop condition is true.  Entering loop body
                for (i = a->nr; i < n; i++)
                ^
/datasets/git/range-diff.c:343:3: note: Loop condition is false. Execution continues on line 338
/datasets/git/range-diff.c:338:2: note: Loop condition is false. Execution continues on line 347
        for (j = 0; j < b->nr; j++) {
        ^
/datasets/git/range-diff.c:347:2: note: Loop condition is true.  Entering loop body
        for (i = a->nr; i < n; i++)
        ^
/datasets/git/range-diff.c:348:3: note: Loop condition is false. Execution continues on line 347
                for (j = b->nr; j < n; j++)
                ^
/datasets/git/range-diff.c:347:2: note: Loop condition is false. Execution continues on line 351
        for (i = a->nr; i < n; i++)
        ^
/datasets/git/range-diff.c:353:2: note: Loop condition is false. Execution continues on line 362
        for (i = 0; i < a->nr; i++)
        ^
/datasets/git/range-diff.c:365:1: note: Returning without writing to 'a->items'
}
^
/datasets/git/range-diff.c:566:3: note: Returning from 'get_correspondences'
                get_correspondences(&branch1, &branch2,
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/range-diff.c:568:3: note: Calling 'output'
                output(&branch1, &branch2, range_diff_opts);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/range-diff.c:473:45: note: 'a->nr' is <= 'b->nr'
        int patch_no_width = decimal_width(1 + (a->nr > b->nr ? a->nr : b->nr));
                                                   ^
/datasets/git/range-diff.c:473:42: note: '?' condition is false
        int patch_no_width = decimal_width(1 + (a->nr > b->nr ? a->nr : b->nr));
                                                ^
/datasets/git/range-diff.c:478:6: note: Assuming field 'diffopt' is null
        if (range_diff_opts->diffopt)
            ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/range-diff.c:478:2: note: Taking false branch
        if (range_diff_opts->diffopt)
        ^
/datasets/git/range-diff.c:484:6: note: Assuming field 'output_format' is not equal to 0
        if (!opts.output_format)
            ^~~~~~~~~~~~~~~~~~~
/datasets/git/range-diff.c:484:2: note: Taking false branch
        if (!opts.output_format)
        ^
/datasets/git/range-diff.c:503:9: note: 'i' is >= field 'nr'
        while (i < a->nr || j < b->nr) {
               ^
/datasets/git/range-diff.c:503:9: note: Left side of '||' is false
/datasets/git/range-diff.c:503:2: note: Loop condition is true.  Entering loop body
        while (i < a->nr || j < b->nr) {
        ^
/datasets/git/range-diff.c:505:12: note: 'i' is >= field 'nr'
                a_util = i < a->nr ? a->items[i].util : NULL;
                         ^
/datasets/git/range-diff.c:505:12: note: '?' condition is false
/datasets/git/range-diff.c:506:12: note: 'j' is < field 'nr'
                b_util = j < b->nr ? b->items[j].util : NULL;
                         ^
/datasets/git/range-diff.c:506:12: note: '?' condition is true
/datasets/git/range-diff.c:509:10: note: 'i' is >= field 'nr'
                while (i < a->nr && a_util->shown)
                       ^
/datasets/git/range-diff.c:509:20: note: Left side of '&&' is false
                while (i < a->nr && a_util->shown)
                                 ^
/datasets/git/range-diff.c:513:7: note: 'i' is >= field 'nr'
                if (i < a->nr && a_util->matching < 0) {
                    ^
/datasets/git/range-diff.c:513:17: note: Left side of '&&' is false
                if (i < a->nr && a_util->matching < 0) {
                              ^
/datasets/git/range-diff.c:522:10: note: 'j' is < field 'nr'
                while (j < b->nr && b_util->matching < 0) {
                       ^
/datasets/git/range-diff.c:522:10: note: Left side of '&&' is true
/datasets/git/range-diff.c:522:31: note: Field 'matching' is >= 0
                while (j < b->nr && b_util->matching < 0) {
                                            ^
/datasets/git/range-diff.c:522:3: note: Loop condition is false. Execution continues on line 530
                while (j < b->nr && b_util->matching < 0) {
                ^
/datasets/git/range-diff.c:530:7: note: 'j' is < field 'nr'
                if (j < b->nr) {
                    ^
/datasets/git/range-diff.c:530:3: note: Taking true branch
                if (j < b->nr) {
                ^
/datasets/git/range-diff.c:531:13: note: Dereference of null pointer
                        a_util = a->items[b_util->matching].util;
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/range-diff.c:534:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!(opts.output_format & DIFF_FORMAT_NO_OUTPUT))
                              ^~~~~~~~~~~~~~~~~~
/datasets/git/range-diff.c:534:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!(opts.output_format & DIFF_FORMAT_NO_OUTPUT))
                                                                          ^
                                                                           {
/datasets/git/range-diff.c:556:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (range_diff_opts->left_only && range_diff_opts->right_only)
                                                                      ^
                                                                       {
/datasets/git/range-diff.c:559:73: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!res && read_patches(range1, &branch1, range_diff_opts->other_arg))
                                                                               ^
                                                                                {
/datasets/git/range-diff.c:561:73: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!res && read_patches(range2, &branch2, range_diff_opts->other_arg))
                                                                               ^
                                                                                {
/datasets/git/range-diff.c:581:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, positive = 0, negative = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/range-diff.c:581:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, positive = 0, negative = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/range-diff.c:581:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/range-diff.c:586:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < revs.pending.nr; i++)
                ^
/datasets/git/range-diff.c:586:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < revs.pending.nr; i++)
                                                     ^
                                                      {
/datasets/git/range-diff.c:587:46: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (revs.pending.objects[i].item->flags & UNINTERESTING)
                                                                  ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/range-diff.c:587:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (revs.pending.objects[i].item->flags & UNINTERESTING)
                                                                                ^
                                                                                 {
/datasets/git/range-diff.c:589:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/range-diff.c:591:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < revs.pending.nr; i++) {
                ^
/datasets/git/range-diff.c:594:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (obj->type == OBJ_COMMIT)
                                                    ^
                                                     {
/datasets/git/range-diff.c:596:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                                   ALL_REV_FLAGS);
                                                   ^
/datasets/git/./revision.h:52:26: note: expanded from macro 'ALL_REV_FLAGS'
#define ALL_REV_FLAGS   (((1u<<11)-1) | NOT_USER_GIVEN | TRACK_LINEAR | PULL_MERGE)
                           ^   ~~
/datasets/git/reachable.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "refs.h"
^        ~~~~~~~~
         "blob.h"
/datasets/git/reachable.c:18:8: warning: accessing fields in struct 'connectivity_progress' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct connectivity_progress {
       ^
/datasets/git/reachable.c:18:8: note: use "__attribute__((aligned(16)))" to align struct 'connectivity_progress' to 16 bytes
/datasets/git/reachable.c:23:59: warning: parameter name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
static void update_progress(struct connectivity_progress *cp)
                                                          ^
/datasets/git/reachable.c:26:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((cp->count & 1023) == 0)
             ^           ~~~~
/datasets/git/reachable.c:26:19: warning: 1023 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if ((cp->count & 1023) == 0)
                         ^
/datasets/git/reachable.c:26:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((cp->count & 1023) == 0)
                                    ^
                                     {
/datasets/git/reachable.c:34:17: warning: variable 'object' is not initialized [cppcoreguidelines-init-variables]
        struct object *object;
                       ^
                              = NULL
/datasets/git/reachable.c:36:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((flag & REF_ISSYMREF) && (flag & REF_ISBROKEN)) {
             ^~~~
/datasets/git/reachable.c:36:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((flag & REF_ISSYMREF) && (flag & REF_ISBROKEN)) {
                                      ^~~~
/datasets/git/reachable.c:51:40: warning: parameter 'obj' is unused [misc-unused-parameters]
static void mark_object(struct object *obj, const char *name, void *data)
                                       ^
/datasets/git/reachable.c:51:57: warning: parameter 'name' is unused [misc-unused-parameters]
static void mark_object(struct object *obj, const char *name, void *data)
                                                        ^
/datasets/git/reachable.c:56:40: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static void mark_commit(struct commit *c, void *data)
                                       ^
/datasets/git/reachable.c:61:8: warning: accessing fields in struct 'recent_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct recent_data {
       ^
/datasets/git/reachable.c:61:8: note: use "__attribute__((aligned(32)))" to align struct 'recent_data' to 32 bytes
/datasets/git/reachable.c:74:17: warning: variable 'obj' is not initialized [cppcoreguidelines-init-variables]
        struct object *obj;
                       ^
                           = NULL
/datasets/git/reachable.c:75:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/reachable.c:77:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mtime <= data->timestamp)
                                     ^
                                      {
/datasets/git/reachable.c:88:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (type < 0)
                     ^
                      {
/datasets/git/reachable.c:107:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!obj)
                 ^
                  {
/datasets/git/reachable.c:111:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (data->cb)
                     ^
                      {
/datasets/git/reachable.c:112:31: warning: narrowing conversion from 'timestamp_t' (aka 'unsigned long') to signed type 'time_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                data->cb(obj, pack, offset, mtime);
                                            ^
/datasets/git/reachable.c:119:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            has_object_kept_pack(oid, IN_CORE_KEEP_PACKS))
                                                          ^
                                                           {
/datasets/git/reachable.c:127:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/reachable.c:128:17: warning: variable 'obj' is not initialized [cppcoreguidelines-init-variables]
        struct object *obj;
                       ^
                           = NULL
/datasets/git/reachable.c:130:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!want_recent_object(data, oid))
                                           ^
                                            {
/datasets/git/reachable.c:135:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (obj && obj->flags & SEEN)
                                ^
/datasets/git/./revision.h:27:16: note: expanded from macro 'SEEN'
#define SEEN            (1u<<0)
                         ^   ~
/datasets/git/reachable.c:135:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (obj && obj->flags & SEEN)
                                     ^
                                      {
/datasets/git/reachable.c:145:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (errno == ENOENT)
                                    ^
                                     {
/datasets/git/reachable.c:155:28: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                             struct packed_git *p, uint32_t pos,
                                                ^
/datasets/git/reachable.c:158:17: warning: variable 'obj' is not initialized [cppcoreguidelines-init-variables]
        struct object *obj;
                       ^
                           = NULL
/datasets/git/reachable.c:161:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!want_recent_object(data, oid))
                                           ^
                                            {
/datasets/git/reachable.c:166:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (obj && obj->flags & SEEN)
                                ^
/datasets/git/./revision.h:27:16: note: expanded from macro 'SEEN'
#define SEEN            (1u<<0)
                         ^   ~
/datasets/git/reachable.c:166:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (obj && obj->flags & SEEN)
                                     ^
                                      {
/datasets/git/reachable.c:169:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (load_pack_mtimes(p) < 0)
                                            ^
                                             {
/datasets/git/reachable.c:179:34: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
                                           report_recent_object_fn *cb,
                                                                    ^
/datasets/git/reachable.c:183:29: warning: variable 'flags' is not initialized [cppcoreguidelines-init-variables]
        enum for_each_object_flags flags;
                                   ^
/datasets/git/reachable.c:184:6: warning: variable 'r' is not initialized [cppcoreguidelines-init-variables]
        int r;
            ^
              = 0
/datasets/git/reachable.c:184:6: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/reachable.c:193:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (r)
              ^
               {
/datasets/git/reachable.c:196:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        flags = FOR_EACH_OBJECT_LOCAL_ONLY | FOR_EACH_OBJECT_PACK_ORDER;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/reachable.c:197:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ignore_in_core_kept_packs)
                                      ^
                                       {
/datasets/git/reachable.c:198:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags |= FOR_EACH_OBJECT_SKIP_IN_CORE_KEPT_PACKS;
                ^        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/reachable.c:204:9: warning: 3 adjacent parameters of 'mark_object_seen' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                             enum object_type type,
                             ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/reachable.c:204:26: note: the first parameter in the range is 'type'
                             enum object_type type,
                                              ^~~~
/datasets/git/reachable.c:206:18: note: the last parameter in the range is 'name_hash'
                             uint32_t name_hash,
                                      ^~~~~~~~~
/datasets/git/reachable.c:205:9: note: 'enum object_type' and 'int' may be implicitly converted
                             int exclude,
                             ^
/datasets/git/reachable.c:204:9: note: 
                             enum object_type type,
                             ^
/datasets/git/reachable.c:206:9: note: 'enum object_type' and 'uint32_t' may be implicitly converted: 'enum object_type' -> 'uint32_t' (as 'unsigned int'), 'uint32_t' (as 'unsigned int') -> 'enum object_type'
                             uint32_t name_hash,
                             ^
/datasets/git/reachable.c:205:9: note: 
                             int exclude,
                             ^
/datasets/git/reachable.c:206:9: note: 'int' and 'uint32_t' may be implicitly converted: 'int' -> 'uint32_t' (as 'unsigned int'), 'uint32_t' (as 'unsigned int') -> 'int'
                             uint32_t name_hash,
                             ^
/datasets/git/reachable.c:205:13: warning: parameter 'exclude' is unused [misc-unused-parameters]
                             int exclude,
                                 ^
/datasets/git/reachable.c:206:18: warning: parameter 'name_hash' is unused [misc-unused-parameters]
                             uint32_t name_hash,
                                      ^
/datasets/git/reachable.c:207:28: warning: parameter 'found_pack' is unused [misc-unused-parameters]
                             struct packed_git *found_pack,
                                                ^
/datasets/git/reachable.c:208:15: warning: parameter 'found_offset' is unused [misc-unused-parameters]
                             off_t found_offset)
                                   ^
/datasets/git/reachable.c:211:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!obj)
                 ^
                  {
/datasets/git/reachable.c:214:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        obj->flags |= SEEN;
                      ^
/datasets/git/./revision.h:27:16: note: expanded from macro 'SEEN'
#define SEEN            (1u<<0)
                         ^   ~
/datasets/git/reachable.c:218:52: warning: 2 adjacent parameters of 'mark_reachable_objects' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
void mark_reachable_objects(struct rev_info *revs, int mark_reflog,
                                                   ^~~~~~~~~~~~~~~~
/datasets/git/reachable.c:218:56: note: the first parameter in the range is 'mark_reflog'
void mark_reachable_objects(struct rev_info *revs, int mark_reflog,
                                                       ^~~~~~~~~~~
/datasets/git/reachable.c:219:20: note: the last parameter in the range is 'mark_recent'
                            timestamp_t mark_recent, struct progress *progress)
                                        ^~~~~~~~~~~
/datasets/git/reachable.c:218:52: note: 
void mark_reachable_objects(struct rev_info *revs, int mark_reflog,
                                                   ^
/datasets/git/reachable.c:219:8: note: 'int' and 'timestamp_t' may be implicitly converted: 'int' -> 'timestamp_t' (as 'unsigned long'), 'timestamp_t' (as 'unsigned long') -> 'int'
                            timestamp_t mark_recent, struct progress *progress)
                            ^
/datasets/git/reachable.c:221:31: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
        struct connectivity_progress cp;
                                     ^
/datasets/git/reachable.c:222:23: warning: variable 'bitmap_git' is not initialized [cppcoreguidelines-init-variables]
        struct bitmap_index *bitmap_git;
                             ^
                                        = NULL
/datasets/git/reachable.c:243:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mark_reflog)
                        ^
                         {
/datasets/git/reachable.c:254:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (prepare_revision_walk(revs))
                                                ^
                                                 {
/datasets/git/reachable.c:262:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                           NULL, 0))
                                                                    ^
                                                                     {
/datasets/git/reachable.c:264:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (prepare_revision_walk(revs))
                                                ^
                                                 {
/datasets/git/read-cache.c:7:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "blob.h"
/datasets/git/read-cache.c:35:1: warning: replace macro with enum [modernize-macro-to-enum]
#define CE_NAMEMASK  (0x0fff)
^~~~~~~~
                    =
/datasets/git/read-cache.c:35:9: warning: macro 'CE_NAMEMASK' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define CE_NAMEMASK  (0x0fff)
        ^
/datasets/git/read-cache.c:46:25: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
#define CACHE_EXT(s) ( (s[0]<<24)|(s[1]<<16)|(s[2]<<8)|(s[3]) )
                        ^
                        ()
/datasets/git/read-cache.c:46:36: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
#define CACHE_EXT(s) ( (s[0]<<24)|(s[1]<<16)|(s[2]<<8)|(s[3]) )
                                   ^
                                   ()
/datasets/git/read-cache.c:46:47: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
#define CACHE_EXT(s) ( (s[0]<<24)|(s[1]<<16)|(s[2]<<8)|(s[3]) )
                                              ^
                                              ()
/datasets/git/read-cache.c:46:57: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
#define CACHE_EXT(s) ( (s[0]<<24)|(s[1]<<16)|(s[2]<<8)|(s[3]) )
                                                        ^
                                                        ()
/datasets/git/read-cache.c:47:1: warning: replace macro with enum [modernize-macro-to-enum]
#define CACHE_EXT_TREE 0x54524545       /* "TREE" */
^~~~~~~~
                       =         ,
/datasets/git/read-cache.c:47:9: warning: macro 'CACHE_EXT_TREE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define CACHE_EXT_TREE 0x54524545       /* "TREE" */
        ^
/datasets/git/read-cache.c:48:9: warning: macro 'CACHE_EXT_RESOLVE_UNDO' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define CACHE_EXT_RESOLVE_UNDO 0x52455543 /* "REUC" */
        ^
/datasets/git/read-cache.c:49:9: warning: macro 'CACHE_EXT_LINK' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define CACHE_EXT_LINK 0x6c696e6b         /* "link" */
        ^
/datasets/git/read-cache.c:50:9: warning: macro 'CACHE_EXT_UNTRACKED' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define CACHE_EXT_UNTRACKED 0x554E5452    /* "UNTR" */
        ^
/datasets/git/read-cache.c:51:9: warning: macro 'CACHE_EXT_FSMONITOR' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define CACHE_EXT_FSMONITOR 0x46534D4E    /* "FSMN" */
        ^
/datasets/git/read-cache.c:52:9: warning: macro 'CACHE_EXT_ENDOFINDEXENTRIES' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define CACHE_EXT_ENDOFINDEXENTRIES 0x454F4945  /* "EOIE" */
        ^
/datasets/git/read-cache.c:53:9: warning: macro 'CACHE_EXT_INDEXENTRYOFFSETTABLE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define CACHE_EXT_INDEXENTRYOFFSETTABLE 0x49454F54 /* "IEOT" */
        ^
/datasets/git/read-cache.c:54:9: warning: macro 'CACHE_EXT_SPARSE_DIRECTORIES' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define CACHE_EXT_SPARSE_DIRECTORIES 0x73646972 /* "sdir" */
        ^
/datasets/git/read-cache.c:70:1: warning: replace macro with enum [modernize-macro-to-enum]
#define CACHE_ENTRY_PATH_LENGTH 80
^~~~~~~~
                                =
/datasets/git/read-cache.c:70:9: warning: macro 'CACHE_ENTRY_PATH_LENGTH' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define CACHE_ENTRY_PATH_LENGTH 80
        ^
/datasets/git/read-cache.c:79:22: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
        struct cache_entry *ce;
                            ^
                               = NULL
/datasets/git/read-cache.c:79:22: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/read-cache.c:87:23: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
        struct cache_entry * ce;
                             ^
                                = NULL
/datasets/git/read-cache.c:87:23: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/read-cache.c:95:20: warning: variable 'pool_ptr' is not initialized [cppcoreguidelines-init-variables]
        struct mem_pool **pool_ptr;
                          ^
                                   = NULL
/datasets/git/read-cache.c:97:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (istate->split_index && istate->split_index->base)
                                                             ^
                                                              {
/datasets/git/read-cache.c:99:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/read-cache.c:110:20: warning: variable 'alternate_index_output' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *alternate_index_output;
                   ^
/datasets/git/read-cache.c:112:61: warning: parameter name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
static void set_index_entry(struct index_state *istate, int nr, struct cache_entry *ce)
                                                            ^
/datasets/git/read-cache.c:112:85: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static void set_index_entry(struct index_state *istate, int nr, struct cache_entry *ce)
                                                                                    ^
/datasets/git/read-cache.c:114:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (S_ISSPARSEDIR(ce->ce_mode))
                                       ^
                                        {
/datasets/git/read-cache.c:121:65: warning: parameter name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
static void replace_index_entry(struct index_state *istate, int nr, struct cache_entry *ce)
                                                                ^
/datasets/git/read-cache.c:121:89: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static void replace_index_entry(struct index_state *istate, int nr, struct cache_entry *ce)
                                                                                        ^
/datasets/git/read-cache.c:128:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ce->ce_flags &= ~CE_HASHED;
        ^               ~~~~~~~~~~
/datasets/git/read-cache.c:128:18: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
        ce->ce_flags &= ~CE_HASHED;
                        ^
/datasets/git/read-cache.c:128:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ce->ce_flags &= ~CE_HASHED;
                         ^
/datasets/git/./refs/../cache.h:172:31: note: expanded from macro 'CE_HASHED'
#define CE_HASHED            (1 << 20)
                              ^
/datasets/git/read-cache.c:130:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ce->ce_flags |= CE_UPDATE_IN_BASE;
        ^
/datasets/git/read-cache.c:130:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ce->ce_flags |= CE_UPDATE_IN_BASE;
                        ^
/datasets/git/./refs/../cache.h:183:31: note: expanded from macro 'CE_UPDATE_IN_BASE'
#define CE_UPDATE_IN_BASE    (1 << 27)
                              ^
/datasets/git/read-cache.c:132:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        istate->cache_changed |= CE_ENTRY_CHANGED;
        ^
/datasets/git/read-cache.c:132:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        istate->cache_changed |= CE_ENTRY_CHANGED;
                                 ^
/datasets/git/./refs/../cache.h:299:27: note: expanded from macro 'CE_ENTRY_CHANGED'
#define CE_ENTRY_CHANGED        (1 << 1)
                                 ^
/datasets/git/read-cache.c:135:60: warning: parameter name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
void rename_index_entry_at(struct index_state *istate, int nr, const char *new_name)
                                                           ^
/datasets/git/read-cache.c:137:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct cache_entry *old_entry = istate->cache[nr], *new_entry, *refreshed;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:137:54: warning: variable 'new_entry' is not initialized [cppcoreguidelines-init-variables]
        struct cache_entry *old_entry = istate->cache[nr], *new_entry, *refreshed;
                                                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:137:66: warning: variable 'refreshed' is not initialized [cppcoreguidelines-init-variables]
        struct cache_entry *old_entry = istate->cache[nr], *new_entry, *refreshed;
                                                                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:138:16: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int namelen = strlen(new_name);
                      ^
/datasets/git/read-cache.c:142:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        new_entry->ce_flags &= ~CE_HASHED;
        ^                      ~~~~~~~~~~
/datasets/git/read-cache.c:142:25: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
        new_entry->ce_flags &= ~CE_HASHED;
                               ^
/datasets/git/read-cache.c:142:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        new_entry->ce_flags &= ~CE_HASHED;
                                ^
/datasets/git/./refs/../cache.h:172:31: note: expanded from macro 'CE_HASHED'
#define CE_HASHED            (1 << 20)
                              ^
/datasets/git/read-cache.c:145:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(new_entry->name, new_name, namelen + 1);
        ^~~~~~
/datasets/git/read-cache.c:145:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(new_entry->name, new_name, namelen + 1);
        ^~~~~~
/datasets/git/read-cache.c:160:38: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                add_index_entry(istate, refreshed, ADD_CACHE_OK_TO_ADD|ADD_CACHE_OK_TO_REPLACE);
                                                   ^
/datasets/git/./refs/../cache.h:840:29: note: expanded from macro 'ADD_CACHE_OK_TO_ADD'
#define ADD_CACHE_OK_TO_ADD 1           /* Ok to add */
                            ^
/datasets/git/read-cache.c:162:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/read-cache.c:163:38: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                add_index_entry(istate, new_entry, ADD_CACHE_OK_TO_ADD|ADD_CACHE_OK_TO_REPLACE);
                                                   ^
/datasets/git/./refs/../cache.h:840:29: note: expanded from macro 'ADD_CACHE_OK_TO_ADD'
#define ADD_CACHE_OK_TO_ADD 1           /* Ok to add */
                            ^
/datasets/git/read-cache.c:166:39: warning: parameter name 'sd' is too short, expected at least 3 characters [readability-identifier-length]
void fill_stat_data(struct stat_data *sd, struct stat *st)
                                      ^
/datasets/git/read-cache.c:166:56: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
void fill_stat_data(struct stat_data *sd, struct stat *st)
                                                       ^
/datasets/git/read-cache.c:179:45: warning: parameter name 'sd' is too short, expected at least 3 characters [readability-identifier-length]
int match_stat_data(const struct stat_data *sd, struct stat *st)
                                            ^
/datasets/git/read-cache.c:179:62: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
int match_stat_data(const struct stat_data *sd, struct stat *st)
                                                             ^
/datasets/git/read-cache.c:183:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (sd->sd_mtime.sec != (unsigned int)st->st_mtime)
                                                           ^
                                                            {
/datasets/git/read-cache.c:184:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                changed |= MTIME_CHANGED;
                ^~~~~~~
/datasets/git/read-cache.c:186:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            sd->sd_ctime.sec != (unsigned int)st->st_ctime)
                                                           ^
                                                            {
/datasets/git/read-cache.c:187:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                changed |= CTIME_CHANGED;
                ^~~~~~~
/datasets/git/read-cache.c:199:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        sd->sd_gid != (unsigned int) st->st_gid)
                                                                ^
                                                                 {
/datasets/git/read-cache.c:200:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        changed |= OWNER_CHANGED;
                        ^~~~~~~
/datasets/git/read-cache.c:201:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (sd->sd_ino != (unsigned int) st->st_ino)
                                                            ^
                                                             {
/datasets/git/read-cache.c:202:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        changed |= INODE_CHANGED;
                        ^~~~~~~
/datasets/git/read-cache.c:215:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (sd->sd_size != (unsigned int) st->st_size)
                                                      ^
                                                       {
/datasets/git/read-cache.c:216:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                changed |= DATA_CHANGED;
                ^~~~~~~
/datasets/git/read-cache.c:226:75: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
void fill_stat_cache_info(struct index_state *istate, struct cache_entry *ce, struct stat *st)
                                                                          ^
/datasets/git/read-cache.c:226:92: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
void fill_stat_cache_info(struct index_state *istate, struct cache_entry *ce, struct stat *st)
                                                                                           ^
/datasets/git/read-cache.c:230:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (assume_unchanged)
                             ^
                              {
/datasets/git/read-cache.c:231:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ce->ce_flags |= CE_VALID;
                ^
/datasets/git/read-cache.c:234:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ce_mark_uptodate(ce);
                ^
/datasets/git/./refs/../cache.h:245:31: note: expanded from macro 'ce_mark_uptodate'
#define ce_mark_uptodate(ce) ((ce)->ce_flags |= CE_UPTODATE)
                              ^                 ~~~~~~~~~~~
/datasets/git/read-cache.c:240:33: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                           const struct cache_entry *ce,
                                                     ^
/datasets/git/read-cache.c:241:20: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                           struct stat *st)
                                        ^
/datasets/git/read-cache.c:244:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
        int fd = git_open_cloexec(ce->name, O_RDONLY);
            ^
/datasets/git/read-cache.c:248:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!index_fd(istate, &oid, fd, st, OBJ_BLOB, ce->name, 0))
                                                                           ^
                                                                            {
/datasets/git/read-cache.c:255:54: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static int ce_compare_link(const struct cache_entry *ce, size_t expected_size)
                                                     ^
/datasets/git/read-cache.c:258:8: warning: variable 'buffer' is not initialized [cppcoreguidelines-init-variables]
        void *buffer;
              ^
                     = NULL
/datasets/git/read-cache.c:259:16: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size;
                      ^
                           = 0
/datasets/git/read-cache.c:260:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/read-cache.c:261:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/read-cache.c:263:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strbuf_readlink(&sb, ce->name, expected_size))
                                                          ^
                                                           {
/datasets/git/read-cache.c:268:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (size == sb.len)
                                   ^
                                    {
/datasets/git/read-cache.c:276:57: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static int ce_compare_gitlink(const struct cache_entry *ce)
                                                        ^
/datasets/git/read-cache.c:288:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (resolve_gitlink_ref(ce->name, "HEAD", &oid) < 0)
                                                            ^
                                                             {
/datasets/git/read-cache.c:294:31: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                                const struct cache_entry *ce,
                                                          ^
/datasets/git/read-cache.c:295:18: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                                struct stat *st)
                                             ^
/datasets/git/read-cache.c:297:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        switch (st->st_mode & S_IFMT) {
                ^
/datasets/git/read-cache.c:299:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ce_compare_data(istate, ce, st))
                                                    ^
                                                     {
/datasets/git/read-cache.c:303:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ce_compare_link(ce, xsize_t(st->st_size)))
                                                              ^
                                                               {
/datasets/git/read-cache.c:307:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (S_ISGITLINK(ce->ce_mode))
                    ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/read-cache.c:307:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (S_ISGITLINK(ce->ce_mode))
                                             ^
                                              {
/datasets/git/read-cache.c:316:58: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static int ce_match_stat_basic(const struct cache_entry *ce, struct stat *st)
                                                         ^
/datasets/git/read-cache.c:316:75: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
static int ce_match_stat_basic(const struct cache_entry *ce, struct stat *st)
                                                                          ^
/datasets/git/read-cache.c:320:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (ce->ce_flags & CE_REMOVE)
            ^
/datasets/git/read-cache.c:320:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (ce->ce_flags & CE_REMOVE)
                           ^
/datasets/git/./refs/../cache.h:168:31: note: expanded from macro 'CE_REMOVE'
#define CE_REMOVE            (1 << 17)
                              ^
/datasets/git/read-cache.c:320:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ce->ce_flags & CE_REMOVE)
                                     ^
                                      {
/datasets/git/read-cache.c:321:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                return MODE_CHANGED | DATA_CHANGED | TYPE_CHANGED;
                       ^
/datasets/git/./refs/../cache.h:1189:25: note: expanded from macro 'MODE_CHANGED'
#define MODE_CHANGED    0x0008
                        ^
/datasets/git/read-cache.c:323:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        switch (ce->ce_mode & S_IFMT) {
                ^
/datasets/git/read-cache.c:325:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                changed |= !S_ISREG(st->st_mode) ? TYPE_CHANGED : 0;
                ^          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:330:8: warning: 0100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                    (0100 & (ce->ce_mode ^ st->st_mode)))
                     ^
/datasets/git/read-cache.c:330:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (0100 & (ce->ce_mode ^ st->st_mode)))
                     ^~~~
/datasets/git/read-cache.c:330:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    (0100 & (ce->ce_mode ^ st->st_mode)))
                                                         ^
                                                          {
/datasets/git/read-cache.c:331:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        changed |= MODE_CHANGED;
                        ^
/datasets/git/read-cache.c:335:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    (has_symlinks || !S_ISREG(st->st_mode)))
                                                            ^
                                                             {
/datasets/git/read-cache.c:336:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        changed |= TYPE_CHANGED;
                        ^
/datasets/git/read-cache.c:340:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!S_ISDIR(st->st_mode))
                                          ^
                                           {
/datasets/git/read-cache.c:341:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        changed |= TYPE_CHANGED;
                        ^
/datasets/git/read-cache.c:342:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (ce_compare_gitlink(ce))
                                                ^
                                                 {
/datasets/git/read-cache.c:343:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        changed |= DATA_CHANGED;
                        ^
/datasets/git/read-cache.c:344:10: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                return changed;
                       ^
/datasets/git/read-cache.c:349:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        changed |= match_stat_data(&ce->ce_stat_data, st);
        ^          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:353:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!is_empty_blob_sha1(ce->oid.hash))
                                                      ^
                                                       {
/datasets/git/read-cache.c:354:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        changed |= DATA_CHANGED;
                        ^
/datasets/git/read-cache.c:357:9: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return changed;
               ^
/datasets/git/read-cache.c:361:28: warning: parameter name 'sd' is too short, expected at least 3 characters [readability-identifier-length]
                        const struct stat_data *sd)
                                                ^
/datasets/git/read-cache.c:376:35: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                             const struct cache_entry *ce)
                                                       ^
/datasets/git/read-cache.c:378:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return (!S_ISGITLINK(ce->ce_mode) &&
                 ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/read-cache.c:383:29: warning: parameter name 'sd' is too short, expected at least 3 characters [readability-identifier-length]
                         const struct stat_data *sd, struct stat *st)
                                                 ^
/datasets/git/read-cache.c:383:46: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                         const struct stat_data *sd, struct stat *st)
                                                                  ^
/datasets/git/read-cache.c:385:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_racy_stat(istate, sd))
                                     ^
                                      {
/datasets/git/read-cache.c:391:31: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                  const struct cache_entry *ce, struct stat *st,
                                            ^
/datasets/git/read-cache.c:391:48: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                  const struct cache_entry *ce, struct stat *st,
                                                             ^
/datasets/git/read-cache.c:394:15: warning: variable 'changed' is not initialized [cppcoreguidelines-init-variables]
        unsigned int changed;
                     ^
                             = 0
/datasets/git/read-cache.c:395:21: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int ignore_valid = options & CE_MATCH_IGNORE_VALID;
                           ^
/datasets/git/read-cache.c:395:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
/datasets/git/read-cache.c:396:29: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int ignore_skip_worktree = options & CE_MATCH_IGNORE_SKIP_WORKTREE;
                                   ^
/datasets/git/read-cache.c:396:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
/datasets/git/read-cache.c:397:32: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int assume_racy_is_modified = options & CE_MATCH_RACY_IS_DIRTY;
                                      ^
/datasets/git/read-cache.c:397:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
/datasets/git/read-cache.c:398:25: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int ignore_fsmonitor = options & CE_MATCH_IGNORE_FSMONITOR;
                               ^
/datasets/git/read-cache.c:398:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
/datasets/git/read-cache.c:400:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ignore_fsmonitor)
                              ^
                               {
/datasets/git/read-cache.c:408:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!ignore_skip_worktree && ce_skip_worktree(ce))
                                     ^
/datasets/git/./refs/../cache.h:244:31: note: expanded from macro 'ce_skip_worktree'
#define ce_skip_worktree(ce) ((ce)->ce_flags & CE_SKIP_WORKTREE)
                              ^                ~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:408:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ignore_skip_worktree && ce_skip_worktree(ce))
                                                          ^
                                                           {
/datasets/git/read-cache.c:410:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!ignore_valid && (ce->ce_flags & CE_VALID))
                              ^
/datasets/git/read-cache.c:410:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ignore_valid && (ce->ce_flags & CE_VALID))
                                                       ^
                                                        {
/datasets/git/read-cache.c:412:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!ignore_fsmonitor && (ce->ce_flags & CE_FSMONITOR_VALID))
                                  ^
/datasets/git/read-cache.c:412:43: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!ignore_fsmonitor && (ce->ce_flags & CE_FSMONITOR_VALID))
                                                 ^
/datasets/git/./refs/../cache.h:173:31: note: expanded from macro 'CE_FSMONITOR_VALID'
#define CE_FSMONITOR_VALID   (1 << 21)
                              ^
/datasets/git/read-cache.c:412:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ignore_fsmonitor && (ce->ce_flags & CE_FSMONITOR_VALID))
                                                                     ^
                                                                      {
/datasets/git/read-cache.c:420:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (ce_intent_to_add(ce))
            ^
/datasets/git/./refs/../cache.h:246:31: note: expanded from macro 'ce_intent_to_add'
#define ce_intent_to_add(ce) ((ce)->ce_flags & CE_INTENT_TO_ADD)
                              ^                ~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:420:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ce_intent_to_add(ce))
                                 ^
                                  {
/datasets/git/read-cache.c:421:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                return DATA_CHANGED | TYPE_CHANGED | MODE_CHANGED;
                       ^
/datasets/git/./refs/../cache.h:1191:25: note: expanded from macro 'DATA_CHANGED'
#define DATA_CHANGED    0x0020
                        ^
/datasets/git/read-cache.c:442:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (assume_racy_is_modified)
                                            ^
                                             {
/datasets/git/read-cache.c:443:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        changed |= DATA_CHANGED;
                        ^
/datasets/git/read-cache.c:444:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/read-cache.c:445:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        changed |= ce_modified_check_fs(istate, ce, st);
                        ^          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:448:9: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return changed;
               ^
/datasets/git/read-cache.c:452:29: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                const struct cache_entry *ce,
                                          ^
/datasets/git/read-cache.c:453:16: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                struct stat *st, unsigned int options)
                             ^
/datasets/git/read-cache.c:455:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int changed, changed_fs;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:455:6: warning: variable 'changed' is not initialized [cppcoreguidelines-init-variables]
        int changed, changed_fs;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:455:15: warning: variable 'changed_fs' is not initialized [cppcoreguidelines-init-variables]
        int changed, changed_fs;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:458:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!changed)
                     ^
                      {
/datasets/git/read-cache.c:464:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (changed & (MODE_CHANGED | TYPE_CHANGED))
            ^~~~~~~
/datasets/git/read-cache.c:464:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (changed & (MODE_CHANGED | TYPE_CHANGED))
                       ^
/datasets/git/./refs/../cache.h:1189:25: note: expanded from macro 'MODE_CHANGED'
#define MODE_CHANGED    0x0008
                        ^~~~~~
/datasets/git/read-cache.c:464:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (changed & (MODE_CHANGED | TYPE_CHANGED))
                                                    ^
                                                     {
/datasets/git/read-cache.c:481:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((changed & DATA_CHANGED) &&
             ^~~~~~~
/datasets/git/read-cache.c:482:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            (S_ISGITLINK(ce->ce_mode) || ce->ce_stat_data.sd_size != 0))
             ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/read-cache.c:482:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            (S_ISGITLINK(ce->ce_mode) || ce->ce_stat_data.sd_size != 0))
                                                                        ^
                                                                         {
/datasets/git/read-cache.c:486:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (changed_fs)
                       ^
                        {
/datasets/git/read-cache.c:487:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                return changed | changed_fs;
                       ^~~~~~~
/datasets/git/read-cache.c:491:42: warning: 2 adjacent parameters of 'base_name_compare' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
int base_name_compare(const char *name1, int len1, int mode1,
                                         ^~~~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:491:46: note: the first parameter in the range is 'len1'
int base_name_compare(const char *name1, int len1, int mode1,
                                             ^~~~
/datasets/git/read-cache.c:491:56: note: the last parameter in the range is 'mode1'
int base_name_compare(const char *name1, int len1, int mode1,
                                                       ^~~~~
/datasets/git/read-cache.c:492:28: warning: 2 adjacent parameters of 'base_name_compare' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                      const char *name2, int len2, int mode2)
                                         ^~~~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:492:32: note: the first parameter in the range is 'len2'
                      const char *name2, int len2, int mode2)
                                             ^~~~
/datasets/git/read-cache.c:492:42: note: the last parameter in the range is 'mode2'
                      const char *name2, int len2, int mode2)
                                                       ^~~~~
/datasets/git/read-cache.c:494:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned char c1, c2;
        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:494:16: warning: variable 'c1' is not initialized [cppcoreguidelines-init-variables]
        unsigned char c1, c2;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:494:16: warning: variable name 'c1' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/read-cache.c:494:20: warning: variable 'c2' is not initialized [cppcoreguidelines-init-variables]
        unsigned char c1, c2;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:494:20: warning: variable name 'c2' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/read-cache.c:496:6: warning: variable 'cmp' is not initialized [cppcoreguidelines-init-variables]
        int cmp;
            ^
                = 0
/datasets/git/read-cache.c:499:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cmp)
                ^
                 {
/datasets/git/read-cache.c:503:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!c1 && S_ISDIR(mode1))
                                  ^
                                   {
/datasets/git/read-cache.c:505:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!c2 && S_ISDIR(mode2))
                                  ^
                                   {
/datasets/git/read-cache.c:520:40: warning: 2 adjacent parameters of 'df_name_compare' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
int df_name_compare(const char *name1, int len1, int mode1,
                                       ^~~~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:520:44: note: the first parameter in the range is 'len1'
int df_name_compare(const char *name1, int len1, int mode1,
                                           ^~~~
/datasets/git/read-cache.c:520:54: note: the last parameter in the range is 'mode1'
int df_name_compare(const char *name1, int len1, int mode1,
                                                     ^~~~~
/datasets/git/read-cache.c:521:26: warning: 2 adjacent parameters of 'df_name_compare' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                    const char *name2, int len2, int mode2)
                                       ^~~~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:521:30: note: the first parameter in the range is 'len2'
                    const char *name2, int len2, int mode2)
                                           ^~~~
/datasets/git/read-cache.c:521:40: note: the last parameter in the range is 'mode2'
                    const char *name2, int len2, int mode2)
                                                     ^~~~~
/datasets/git/read-cache.c:523:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int len = len1 < len2 ? len1 : len2, cmp;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:523:39: warning: variable 'cmp' is not initialized [cppcoreguidelines-init-variables]
        int len = len1 < len2 ? len1 : len2, cmp;
                                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:524:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned char c1, c2;
        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:524:16: warning: variable 'c1' is not initialized [cppcoreguidelines-init-variables]
        unsigned char c1, c2;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:524:16: warning: variable name 'c1' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/read-cache.c:524:20: warning: variable 'c2' is not initialized [cppcoreguidelines-init-variables]
        unsigned char c1, c2;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:524:20: warning: variable name 'c2' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/read-cache.c:527:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cmp)
                ^
                 {
/datasets/git/read-cache.c:530:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len1 == len2)
                         ^
                          {
/datasets/git/read-cache.c:533:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!c1 && S_ISDIR(mode1))
                                  ^
                                   {
/datasets/git/read-cache.c:536:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!c2 && S_ISDIR(mode2))
                                  ^
                                   {
/datasets/git/read-cache.c:538:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (c1 == '/' && !c2)
                             ^
                              {
/datasets/git/read-cache.c:540:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (c2 == '/' && !c1)
                             ^
                              {
/datasets/git/read-cache.c:549:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cmp)
                ^
                 {
/datasets/git/read-cache.c:551:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len1 < len2)
                        ^
                         {
/datasets/git/read-cache.c:553:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len1 > len2)
                        ^
                         {
/datasets/git/read-cache.c:558:49: warning: 2 adjacent parameters of 'cache_name_stage_compare' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
int cache_name_stage_compare(const char *name1, int len1, int stage1, const char *name2, int len2, int stage2)
                                                ^~~~~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:558:53: note: the first parameter in the range is 'len1'
int cache_name_stage_compare(const char *name1, int len1, int stage1, const char *name2, int len2, int stage2)
                                                    ^~~~
/datasets/git/read-cache.c:558:63: note: the last parameter in the range is 'stage1'
int cache_name_stage_compare(const char *name1, int len1, int stage1, const char *name2, int len2, int stage2)
                                                              ^~~~~~
/datasets/git/read-cache.c:558:90: warning: 2 adjacent parameters of 'cache_name_stage_compare' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
int cache_name_stage_compare(const char *name1, int len1, int stage1, const char *name2, int len2, int stage2)
                                                                                         ^~~~~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:558:94: note: the first parameter in the range is 'len2'
int cache_name_stage_compare(const char *name1, int len1, int stage1, const char *name2, int len2, int stage2)
                                                                                             ^~~~
/datasets/git/read-cache.c:558:104: note: the last parameter in the range is 'stage2'
int cache_name_stage_compare(const char *name1, int len1, int stage1, const char *name2, int len2, int stage2)
                                                                                                       ^~~~~~
/datasets/git/read-cache.c:560:6: warning: variable 'cmp' is not initialized [cppcoreguidelines-init-variables]
        int cmp;
            ^
                = 0
/datasets/git/read-cache.c:563:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cmp)
                ^
                 {
/datasets/git/read-cache.c:566:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (stage1 < stage2)
                            ^
                             {
/datasets/git/read-cache.c:568:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (stage1 > stage2)
                            ^
                             {
/datasets/git/read-cache.c:573:12: warning: function 'index_name_stage_pos' is within a recursive call chain [misc-no-recursion]
static int index_name_stage_pos(struct index_state *istate,
           ^
/datasets/git/read-cache.c:573:12: note: example recursive call chain, starting from function 'index_name_stage_pos'
/datasets/git/read-cache.c:611:11: note: Frame #1: function 'index_name_stage_pos' calls function 'index_name_stage_pos' here:
                        return index_name_stage_pos(istate, name, namelen, stage, search_mode);
                               ^
/datasets/git/read-cache.c:611:11: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/read-cache.c:578:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int first, last;
        ^~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:578:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/read-cache.c:578:6: warning: variable 'first' is not initialized [cppcoreguidelines-init-variables]
        int first, last;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:578:13: warning: variable 'last' is not initialized [cppcoreguidelines-init-variables]
        int first, last;
                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:581:9: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        last = istate->cache_nr;
               ^
/datasets/git/read-cache.c:582:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (last > first) {
        ^
/datasets/git/read-cache.c:582:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'last' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (last > first) {
               ^
/datasets/git/read-cache.c:583:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                int next = first + ((last - first) >> 1);
                                    ^~~~~~~~~~~~~~
/datasets/git/read-cache.c:584:23: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                struct cache_entry *ce = istate->cache[next];
                                    ^
/datasets/git/read-cache.c:585:86: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                int cmp = cache_name_stage_compare(name, namelen, stage, ce->name, ce_namelen(ce), ce_stage(ce));
                                                                                                   ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/read-cache.c:586:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!cmp)
                         ^
                          {
/datasets/git/read-cache.c:598:23: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                struct cache_entry *ce = istate->cache[first - 1];
                                    ^
/datasets/git/read-cache.c:635:22: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
        struct cache_entry *ce = istate->cache[pos];
                            ^
/datasets/git/read-cache.c:640:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        istate->cache_changed |= CE_ENTRY_REMOVED;
        ^
/datasets/git/read-cache.c:640:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        istate->cache_changed |= CE_ENTRY_REMOVED;
                                 ^
/datasets/git/./refs/../cache.h:300:27: note: expanded from macro 'CE_ENTRY_REMOVED'
#define CE_ENTRY_REMOVED        (1 << 2)
                                 ^
/datasets/git/read-cache.c:642:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pos >= istate->cache_nr)
                                    ^
                                     {
/datasets/git/read-cache.c:644:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        MOVE_ARRAY(istate->cache + pos, istate->cache + pos + 1,
        ^
/datasets/git/./git-compat-util.h:1102:63: note: expanded from macro 'MOVE_ARRAY'
#define MOVE_ARRAY(dst, src, n) move_array((dst), (src), (n), sizeof(*(dst)) + \
                                                              ^
/datasets/git/read-cache.c:657:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned int i, j;
        ^~~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:657:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/read-cache.c:657:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i, j;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:657:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/read-cache.c:657:18: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i, j;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:657:18: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/read-cache.c:659:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = j = 0; i < istate->cache_nr; i++) {
        ^
/datasets/git/read-cache.c:659:18: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = j = 0; i < istate->cache_nr; i++) {
                        ^
/datasets/git/read-cache.c:660:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce_array[i]->ce_flags & CE_REMOVE) {
                    ^
/datasets/git/read-cache.c:660:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce_array[i]->ce_flags & CE_REMOVE) {
                                            ^
/datasets/git/./refs/../cache.h:168:31: note: expanded from macro 'CE_REMOVE'
#define CE_REMOVE            (1 << 17)
                              ^
/datasets/git/read-cache.c:670:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/read-cache.c:673:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (j == istate->cache_nr)
                                  ^
                                   {
/datasets/git/read-cache.c:675:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        istate->cache_changed |= CE_ENTRY_REMOVED;
        ^
/datasets/git/read-cache.c:675:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        istate->cache_changed |= CE_ENTRY_REMOVED;
                                 ^
/datasets/git/./refs/../cache.h:300:27: note: expanded from macro 'CE_ENTRY_REMOVED'
#define CE_ENTRY_REMOVED        (1 << 2)
                                 ^
/datasets/git/read-cache.c:681:41: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int pos = index_name_pos(istate, path, strlen(path));
                                               ^
/datasets/git/read-cache.c:682:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pos < 0)
                    ^
                     {
/datasets/git/read-cache.c:686:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (pos < istate->cache_nr && !strcmp(istate->cache[pos]->name, path))
        ^
/datasets/git/read-cache.c:686:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'pos' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (pos < istate->cache_nr && !strcmp(istate->cache[pos]->name, path))
               ^
/datasets/git/read-cache.c:686:75: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (pos < istate->cache_nr && !strcmp(istate->cache[pos]->name, path))
                                                                                 ^
                                                                                  {
/datasets/git/read-cache.c:691:45: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static int compare_name(struct cache_entry *ce, const char *path, int namelen)
                                            ^
/datasets/git/read-cache.c:693:38: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        return namelen != ce_namelen(ce) || memcmp(path, ce->name, namelen);
                                            ^
                                                                            != 0
/datasets/git/read-cache.c:700:22: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
        struct cache_entry *ce;
                            ^
                               = NULL
/datasets/git/read-cache.c:700:22: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/read-cache.c:702:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pos >= 0)
                     ^
                      {
/datasets/git/read-cache.c:708:18: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                        compare_name((ce = istate->cache[pos]), path, namelen))
                                      ^
/datasets/git/read-cache.c:708:18: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/read-cache.c:708:18: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/read-cache.c:708:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        compare_name((ce = istate->cache[pos]), path, namelen))
                                                                               ^
                                                                                {
/datasets/git/read-cache.c:712:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (ce_stage(ce) == 1 && pos + 1 < istate->cache_nr &&
            ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/read-cache.c:713:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ce_stage((ce = istate->cache[pos + 1])) == 2 &&
                        ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/read-cache.c:713:14: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                        ce_stage((ce = istate->cache[pos + 1])) == 2 &&
                                  ^
/datasets/git/read-cache.c:713:14: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/read-cache.c:713:14: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/read-cache.c:714:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        !compare_name(ce, path, namelen))
                                                         ^
                                                          {
/datasets/git/read-cache.c:719:47: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static int different_name(struct cache_entry *ce, struct cache_entry *alias)
                                              ^
/datasets/git/read-cache.c:722:37: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        return ce_namelen(alias) != len || memcmp(ce->name, alias->name, len);
                                           ^
                                                                              != 0
/datasets/git/read-cache.c:735:29: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                                           struct cache_entry *ce,
                                                               ^
/datasets/git/read-cache.c:738:6: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int len;
            ^
                = 0
/datasets/git/read-cache.c:739:22: warning: variable 'new_entry' is not initialized [cppcoreguidelines-init-variables]
        struct cache_entry *new_entry;
                            ^
                                      = NULL
/datasets/git/read-cache.c:741:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (alias->ce_flags & CE_ADDED)
            ^
/datasets/git/read-cache.c:741:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (alias->ce_flags & CE_ADDED)
                              ^
/datasets/git/./refs/../cache.h:170:31: note: expanded from macro 'CE_ADDED'
#define CE_ADDED             (1 << 19)
                              ^
/datasets/git/read-cache.c:741:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (alias->ce_flags & CE_ADDED)
                                       ^
                                        {
/datasets/git/read-cache.c:748:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(new_entry->name, alias->name, len);
        ^~~~~~
/datasets/git/read-cache.c:748:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(new_entry->name, alias->name, len);
        ^~~~~~
/datasets/git/read-cache.c:754:66: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
void set_object_name_for_intent_to_add_entry(struct cache_entry *ce)
                                                                 ^
/datasets/git/read-cache.c:757:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_object_file("", 0, OBJ_BLOB, &oid))
                                                     ^
                                                      {
/datasets/git/read-cache.c:762:5: warning: function 'add_to_index' has cognitive complexity of 37 (threshold 25) [readability-function-cognitive-complexity]
int add_to_index(struct index_state *istate, const char *path, struct stat *st, int flags)
    ^
/datasets/git/read-cache.c:772:19: note: +1, including nesting penalty of 0, nesting level increased to 1
                          (intent_only ? ADD_CACHE_NEW_ONLY : 0));
                                       ^
/datasets/git/read-cache.c:773:32: note: +1, including nesting penalty of 0, nesting level increased to 1
        unsigned hash_flags = pretend ? 0 : HASH_WRITE_OBJECT;
                                      ^
/datasets/git/read-cache.c:776:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (flags & ADD_CACHE_RENORMALIZE)
        ^
/datasets/git/read-cache.c:779:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!S_ISREG(st_mode) && !S_ISLNK(st_mode) && !S_ISDIR(st_mode))
        ^
/datasets/git/read-cache.c:779:45: note: +1
        if (!S_ISREG(st_mode) && !S_ISLNK(st_mode) && !S_ISDIR(st_mode))
                                                   ^
/datasets/git/read-cache.c:783:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (S_ISDIR(st_mode)) {
        ^
/datasets/git/read-cache.c:784:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (resolve_gitlink_ref(path, "HEAD", &oid) < 0)
                ^
/datasets/git/read-cache.c:786:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (namelen && path[namelen-1] == '/')
                ^
/datasets/git/read-cache.c:786:18: note: +1
                while (namelen && path[namelen-1] == '/')
                               ^
/datasets/git/read-cache.c:792:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!intent_only)
        ^
/datasets/git/read-cache.c:794:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/read-cache.c:798:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (trust_executable_bit && has_symlinks) {
        ^
/datasets/git/read-cache.c:798:27: note: +1
        if (trust_executable_bit && has_symlinks) {
                                 ^
/datasets/git/read-cache.c:800:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/read-cache.c:807:20: note: +2, including nesting penalty of 1, nesting level increased to 2
                ent = (0 <= pos) ? istate->cache[pos] : NULL;
                                 ^
/datasets/git/read-cache.c:816:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ignore_case) {
        ^
/datasets/git/read-cache.c:819:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!(flags & ADD_CACHE_RENORMALIZE)) {
        ^
/datasets/git/read-cache.c:822:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (alias &&
                ^
/datasets/git/read-cache.c:823:24: note: +1
                    !ce_stage(alias) &&
                                     ^
/datasets/git/read-cache.c:826:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!S_ISGITLINK(alias->ce_mode))
                        ^
/datasets/git/read-cache.c:834:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!intent_only) {
        ^
/datasets/git/read-cache.c:835:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (index_path(istate, &ce->oid, path, st, hash_flags)) {
                ^
/datasets/git/read-cache.c:839:4: note: +1, nesting level increased to 1
        } else
          ^
/datasets/git/read-cache.c:842:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ignore_case && alias && different_name(ce, alias))
        ^
/datasets/git/read-cache.c:842:27: note: +1
        if (ignore_case && alias && different_name(ce, alias))
                                 ^
/datasets/git/read-cache.c:849:36: note: +1
                    oideq(&alias->oid, &ce->oid) &&
                                                 ^
/datasets/git/read-cache.c:852:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (pretend)
        ^
/datasets/git/read-cache.c:854:7: note: +1, nesting level increased to 1
        else if (add_index_entry(istate, ce, add_option)) {
             ^
/datasets/git/read-cache.c:858:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (verbose && !was_same)
        ^
/datasets/git/read-cache.c:858:14: note: +1
        if (verbose && !was_same)
                    ^
/datasets/git/read-cache.c:762:77: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
int add_to_index(struct index_state *istate, const char *path, struct stat *st, int flags)
                                                                            ^
/datasets/git/read-cache.c:764:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int namelen, was_same;
        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:764:6: warning: variable 'namelen' is not initialized [cppcoreguidelines-init-variables]
        int namelen, was_same;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:764:15: warning: variable 'was_same' is not initialized [cppcoreguidelines-init-variables]
        int namelen, was_same;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:766:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct cache_entry *ce, *alias = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:766:22: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
        struct cache_entry *ce, *alias = NULL;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:766:22: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/read-cache.c:767:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned ce_option = CE_MATCH_IGNORE_VALID|CE_MATCH_IGNORE_SKIP_WORKTREE|CE_MATCH_RACY_IS_DIRTY;
                             ^
/datasets/git/./refs/../cache.h:879:32: note: expanded from macro 'CE_MATCH_IGNORE_VALID'
#define CE_MATCH_IGNORE_VALID           01
                                        ^
/datasets/git/read-cache.c:768:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int verbose = flags & (ADD_CACHE_VERBOSE | ADD_CACHE_PRETEND);
                      ^~~~~
/datasets/git/read-cache.c:768:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int verbose = flags & (ADD_CACHE_VERBOSE | ADD_CACHE_PRETEND);
                               ^
/datasets/git/./refs/../cache.h:855:27: note: expanded from macro 'ADD_CACHE_VERBOSE'
#define ADD_CACHE_VERBOSE 1
                          ^
/datasets/git/read-cache.c:769:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int pretend = flags & ADD_CACHE_PRETEND;
                      ^~~~~
/datasets/git/read-cache.c:770:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int intent_only = flags & ADD_CACHE_INTENT;
                          ^~~~~
/datasets/git/read-cache.c:771:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int add_option = (ADD_CACHE_OK_TO_ADD|ADD_CACHE_OK_TO_REPLACE|
                          ^
/datasets/git/./refs/../cache.h:840:29: note: expanded from macro 'ADD_CACHE_OK_TO_ADD'
#define ADD_CACHE_OK_TO_ADD 1           /* Ok to add */
                            ^
/datasets/git/read-cache.c:776:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & ADD_CACHE_RENORMALIZE)
            ^~~~~
/datasets/git/read-cache.c:776:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & ADD_CACHE_RENORMALIZE)
                                          ^
                                           {
/datasets/git/read-cache.c:777:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                hash_flags |= HASH_RENORMALIZE;
                ^
/datasets/git/read-cache.c:779:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!S_ISREG(st_mode) && !S_ISLNK(st_mode) && !S_ISDIR(st_mode))
                                                                        ^
                                                                         {
/datasets/git/read-cache.c:782:12: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        namelen = strlen(path);
                  ^
/datasets/git/read-cache.c:784:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (resolve_gitlink_ref(path, "HEAD", &oid) < 0)
                                                                ^
                                                                 {
/datasets/git/read-cache.c:786:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (namelen && path[namelen-1] == '/')
                ^
/datasets/git/read-cache.c:786:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'namelen' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (namelen && path[namelen-1] == '/')
                       ^
/datasets/git/read-cache.c:786:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (namelen && path[namelen-1] == '/')
                                                         ^
                                                          {
/datasets/git/read-cache.c:790:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(ce->name, path, namelen);
        ^~~~~~
/datasets/git/read-cache.c:790:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(ce->name, path, namelen);
        ^~~~~~
/datasets/git/read-cache.c:792:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!intent_only)
                         ^
                          {
/datasets/git/read-cache.c:794:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/read-cache.c:795:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ce->ce_flags |= CE_INTENT_TO_ADD;
                ^
/datasets/git/read-cache.c:795:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ce->ce_flags |= CE_INTENT_TO_ADD;
                                ^
/datasets/git/./refs/../cache.h:189:31: note: expanded from macro 'CE_INTENT_TO_ADD'
#define CE_INTENT_TO_ADD     (1 << 29)
                              ^
/datasets/git/read-cache.c:804:23: warning: variable 'ent' is not initialized [cppcoreguidelines-init-variables]
                struct cache_entry *ent;
                                    ^
                                        = NULL
/datasets/git/read-cache.c:819:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & ADD_CACHE_RENORMALIZE)) {
              ^~~~~
/datasets/git/read-cache.c:823:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    !ce_stage(alias) &&
                     ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/read-cache.c:826:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!S_ISGITLINK(alias->ce_mode))
                             ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/read-cache.c:826:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!S_ISGITLINK(alias->ce_mode))
                                                         ^
                                                          {
/datasets/git/read-cache.c:827:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                ce_mark_uptodate(alias);
                                ^
/datasets/git/./refs/../cache.h:245:31: note: expanded from macro 'ce_mark_uptodate'
#define ce_mark_uptodate(ce) ((ce)->ce_flags |= CE_UPTODATE)
                              ^                 ~~~~~~~~~~~
/datasets/git/read-cache.c:828:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        alias->ce_flags |= CE_ADDED;
                        ^
/datasets/git/read-cache.c:828:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        alias->ce_flags |= CE_ADDED;
                                           ^
/datasets/git/./refs/../cache.h:170:31: note: expanded from macro 'CE_ADDED'
#define CE_ADDED             (1 << 19)
                              ^
/datasets/git/read-cache.c:839:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/read-cache.c:842:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ignore_case && alias && different_name(ce, alias))
                                                              ^
                                                               {
/datasets/git/read-cache.c:844:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ce->ce_flags |= CE_ADDED;
        ^
/datasets/git/read-cache.c:844:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ce->ce_flags |= CE_ADDED;
                        ^
/datasets/git/./refs/../cache.h:170:31: note: expanded from macro 'CE_ADDED'
#define CE_ADDED             (1 << 19)
                              ^
/datasets/git/read-cache.c:848:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    !ce_stage(alias) &&
                     ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/read-cache.c:852:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pretend)
                    ^
                     {
/datasets/git/read-cache.c:858:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (verbose && !was_same)
                                 ^
                                  {
/datasets/git/read-cache.c:865:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/read-cache.c:866:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (lstat(path, &st))
                             ^
                              {
/datasets/git/read-cache.c:879:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ce_mem_pool)
                        ^
                         {
/datasets/git/read-cache.c:890:65: warning: all parameters should be named in a function [hicpp-named-parameter,readability-named-parameter]
static enum verify_path_result verify_path_internal(const char *, unsigned);
                                                                ^
                                                                 /*path*/  /*mode*/
/datasets/git/read-cache.c:901:10: warning: 2 adjacent parameters of 'make_cache_entry' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                     int stage,
                                     ^~~~~~~~~~
/datasets/git/read-cache.c:901:14: note: the first parameter in the range is 'stage'
                                     int stage,
                                         ^~~~~
/datasets/git/read-cache.c:902:23: note: the last parameter in the range is 'refresh_options'
                                     unsigned int refresh_options)
                                                  ^~~~~~~~~~~~~~~
/datasets/git/read-cache.c:902:10: note: 'int' and 'unsigned int' may be implicitly converted
                                     unsigned int refresh_options)
                                     ^
/datasets/git/read-cache.c:904:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct cache_entry *ce, *ret;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:904:22: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
        struct cache_entry *ce, *ret;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:904:22: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/read-cache.c:904:27: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        struct cache_entry *ce, *ret;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:905:6: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int len;
            ^
                = 0
/datasets/git/read-cache.c:912:8: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        len = strlen(path);
              ^
/datasets/git/read-cache.c:916:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(ce->name, path, len);
        ^~~~~~
/datasets/git/read-cache.c:916:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(ce->name, path, len);
        ^~~~~~
/datasets/git/read-cache.c:922:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret != ce)
                      ^
                       {
/datasets/git/read-cache.c:933:22: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
        struct cache_entry *ce;
                            ^
                               = NULL
/datasets/git/read-cache.c:933:22: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/read-cache.c:934:6: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int len;
            ^
                = 0
/datasets/git/read-cache.c:941:8: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        len = strlen(path);
              ^
/datasets/git/read-cache.c:945:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(ce->name, path, len);
        ^~~~~~
/datasets/git/read-cache.c:945:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(ce->name, path, len);
        ^~~~~~
/datasets/git/read-cache.c:960:71: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
int chmod_index_entry(struct index_state *istate, struct cache_entry *ce,
                                                                      ^
/datasets/git/read-cache.c:963:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!S_ISREG(ce->ce_mode))
                                  ^
                                   {
/datasets/git/read-cache.c:967:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ce->ce_mode |= 0111;
                ^              ~~~~
/datasets/git/read-cache.c:967:18: warning: 0111 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                ce->ce_mode |= 0111;
                               ^
/datasets/git/read-cache.c:970:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ce->ce_mode &= ~0111;
                ^              ~~~~~
/datasets/git/read-cache.c:970:18: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                ce->ce_mode &= ~0111;
                               ^~~~~
/datasets/git/read-cache.c:970:19: warning: 0111 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                ce->ce_mode &= ~0111;
                                ^
/datasets/git/read-cache.c:976:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ce->ce_flags |= CE_UPDATE_IN_BASE;
        ^
/datasets/git/read-cache.c:976:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ce->ce_flags |= CE_UPDATE_IN_BASE;
                        ^
/datasets/git/./refs/../cache.h:183:31: note: expanded from macro 'CE_UPDATE_IN_BASE'
#define CE_UPDATE_IN_BASE    (1 << 27)
                              ^
/datasets/git/read-cache.c:978:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        istate->cache_changed |= CE_ENTRY_CHANGED;
        ^
/datasets/git/read-cache.c:978:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        istate->cache_changed |= CE_ENTRY_CHANGED;
                                 ^
/datasets/git/./refs/../cache.h:299:27: note: expanded from macro 'CE_ENTRY_CHANGED'
#define CE_ENTRY_CHANGED        (1 << 1)
                                 ^
/datasets/git/read-cache.c:983:44: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
int ce_same_name(const struct cache_entry *a, const struct cache_entry *b)
                                           ^
/datasets/git/read-cache.c:983:73: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
int ce_same_name(const struct cache_entry *a, const struct cache_entry *b)
                                                                        ^
/datasets/git/read-cache.c:1006:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*rest == '\0' || is_dir_sep(*rest))
                                               ^
                                                {
/datasets/git/read-cache.c:1021:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (rest[1] != 'i' && rest[1] != 'I')
                                                     ^
                                                      {
/datasets/git/read-cache.c:1023:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (rest[2] != 't' && rest[2] != 'T')
                                                     ^
                                                      {
/datasets/git/read-cache.c:1025:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (rest[3] == '\0' || is_dir_sep(rest[3]))
                                                           ^
                                                            {
/datasets/git/read-cache.c:1030:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            (*rest == '\0' || is_dir_sep(*rest)))
                                                                 ^
                                                                  {
/datasets/git/read-cache.c:1035:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (rest[1] == '\0' || is_dir_sep(rest[1]))
                                                           ^
                                                            {
/datasets/git/read-cache.c:1041:32: warning: function 'verify_path_internal' has cognitive complexity of 64 (threshold 25) [readability-function-cognitive-complexity]
static enum verify_path_result verify_path_internal(const char *path,
                               ^
/datasets/git/read-cache.c:1046:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (has_dos_drive_prefix(path))
        ^
/datasets/git/read-cache.c:1049:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!is_valid_path(path))
        ^
/datasets/git/read-cache.c:1052:2: note: +1
        goto inside;
        ^
/datasets/git/read-cache.c:1053:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (;;) {
        ^
/datasets/git/read-cache.c:1054:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!c)
                ^
/datasets/git/read-cache.c:1056:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (is_dir_sep(c)) {
                ^
/datasets/git/read-cache.c:1058:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (protect_hfs) {
                        ^
/datasets/git/read-cache.c:1060:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (is_hfs_dotgit(path))
                                ^
/datasets/git/read-cache.c:1062:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (S_ISLNK(mode)) {
                                ^
/datasets/git/read-cache.c:1063:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (is_hfs_dotgitmodules(path))
                                        ^
/datasets/git/read-cache.c:1067:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (protect_ntfs) {
                        ^
/datasets/git/read-cache.c:1072:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (is_ntfs_dotgit(path))
                                ^
/datasets/git/read-cache.c:1074:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (S_ISLNK(mode)) {
                                ^
/datasets/git/read-cache.c:1075:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (is_ntfs_dotgitmodules(path))
                                        ^
/datasets/git/read-cache.c:1081:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if ((c == '.' && !verify_dotfile(path, mode)) ||
                        ^
/datasets/git/read-cache.c:1081:50: note: +1
                        if ((c == '.' && !verify_dotfile(path, mode)) ||
                                                                      ^
/datasets/git/read-cache.c:1081:18: note: +1
                        if ((c == '.' && !verify_dotfile(path, mode)) ||
                                      ^
/datasets/git/read-cache.c:1088:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (c == '\0')
                        ^
/datasets/git/read-cache.c:1089:26: note: +4, including nesting penalty of 3, nesting level increased to 4
                                return S_ISDIR(mode) ? PATH_DIR_WITH_SEP :
                                                     ^
/datasets/git/read-cache.c:1091:10: note: +1, nesting level increased to 2
                } else if (c == '\\' && protect_ntfs) {
                       ^
/datasets/git/read-cache.c:1091:24: note: +1
                } else if (c == '\\' && protect_ntfs) {
                                     ^
/datasets/git/read-cache.c:1092:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (is_ntfs_dotgit(path))
                        ^
/datasets/git/read-cache.c:1094:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (S_ISLNK(mode)) {
                        ^
/datasets/git/read-cache.c:1095:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (is_ntfs_dotgitmodules(path))
                                ^
/datasets/git/read-cache.c:1044:7: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        char c = 0;
             ^
/datasets/git/read-cache.c:1046:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (has_dos_drive_prefix(path))
                                       ^
                                        {
/datasets/git/read-cache.c:1049:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_valid_path(path))
                                 ^
                                  {
/datasets/git/read-cache.c:1053:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/read-cache.c:1054:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!c)
                       ^
                        {
/datasets/git/read-cache.c:1060:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (is_hfs_dotgit(path))
                                                        ^
                                                         {
/datasets/git/read-cache.c:1063:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        if (is_hfs_dotgitmodules(path))
                                                                       ^
                                                                        {
/datasets/git/read-cache.c:1072:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (is_ntfs_dotgit(path))
                                                         ^
                                                          {
/datasets/git/read-cache.c:1075:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        if (is_ntfs_dotgitmodules(path))
                                                                        ^
                                                                         {
/datasets/git/read-cache.c:1082:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            is_dir_sep(c))
                                          ^
                                           {
/datasets/git/read-cache.c:1088:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (c == '\0')
                                      ^
                                       {
/datasets/git/read-cache.c:1092:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (is_ntfs_dotgit(path))
                                                 ^
                                                  {
/datasets/git/read-cache.c:1095:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (is_ntfs_dotgitmodules(path))
                                                                ^
                                                                 {
/datasets/git/read-cache.c:1109:31: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                         const struct cache_entry *ce, int pos, int ok_to_replace)
                                                   ^
/datasets/git/./refs/../cache.h:339:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        unsigned int cache_nr, cache_alloc, cache_changed;
        ^
/datasets/git/read-cache.c:1109:35: warning: 2 adjacent parameters of 'has_file_name' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                         const struct cache_entry *ce, int pos, int ok_to_replace)
                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:1109:39: note: the first parameter in the range is 'pos'
                         const struct cache_entry *ce, int pos, int ok_to_replace)
                                                           ^~~
/datasets/git/read-cache.c:1109:48: note: the last parameter in the range is 'ok_to_replace'
                         const struct cache_entry *ce, int pos, int ok_to_replace)
                                                                    ^~~~~~~~~~~~~
/datasets/git/read-cache.c:1113:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int stage = ce_stage(ce);
                    ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/read-cache.c:1116:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (pos < istate->cache_nr) {
        ^
/datasets/git/read-cache.c:1116:9: warning: backward branch (while loop) is ID-dependent due to member reference to 'cache_nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (pos < istate->cache_nr) {
               ^
/datasets/git/read-cache.c:1117:23: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct cache_entry *p = istate->cache[pos++];
                                    ^
/datasets/git/read-cache.c:1119:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (len >= ce_namelen(p))
                                         ^
                                          {
/datasets/git/read-cache.c:1121:7: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (memcmp(name, p->name, len))
                    ^
                                               != 0
/datasets/git/read-cache.c:1121:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (memcmp(name, p->name, len))
                                               ^
                                                {
/datasets/git/read-cache.c:1123:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce_stage(p) != stage)
                    ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/read-cache.c:1123:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ce_stage(p) != stage)
                                         ^
                                          {
/datasets/git/read-cache.c:1125:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (p->name[len] != '/')
                                        ^
                                         {
/datasets/git/read-cache.c:1127:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (p->ce_flags & CE_REMOVE)
                    ^
/datasets/git/read-cache.c:1127:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (p->ce_flags & CE_REMOVE)
                                  ^
/datasets/git/./refs/../cache.h:168:31: note: expanded from macro 'CE_REMOVE'
#define CE_REMOVE            (1 << 17)
                              ^
/datasets/git/read-cache.c:1127:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (p->ce_flags & CE_REMOVE)
                                            ^
                                             {
/datasets/git/read-cache.c:1130:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ok_to_replace)
                                   ^
                                    {
/datasets/git/read-cache.c:1142:31: warning: parameter name 's1' is too short, expected at least 3 characters [readability-identifier-length]
int strcmp_offset(const char *s1, const char *s2, size_t *first_change)
                              ^
/datasets/git/read-cache.c:1142:47: warning: parameter name 's2' is too short, expected at least 3 characters [readability-identifier-length]
int strcmp_offset(const char *s1, const char *s2, size_t *first_change)
                                              ^
/datasets/git/read-cache.c:1144:9: warning: variable 'k' is not initialized [cppcoreguidelines-init-variables]
        size_t k;
               ^
                 = 0
/datasets/git/read-cache.c:1144:9: warning: variable name 'k' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/read-cache.c:1146:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!first_change)
                          ^
                           {
/datasets/git/read-cache.c:1149:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (k = 0; s1[k] == s2[k]; k++)
        ^
/datasets/git/read-cache.c:1149:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (k = 0; s1[k] == s2[k]; k++)
                                        ^
                                         {
/datasets/git/read-cache.c:1150:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (s1[k] == '\0')
                                  ^
                                   {
/datasets/git/read-cache.c:1164:12: warning: function 'has_dir_name' has cognitive complexity of 45 (threshold 25) [readability-function-cognitive-complexity]
static int has_dir_name(struct index_state *istate,
           ^
/datasets/git/read-cache.c:1184:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (istate->cache_nr > 0) {
        ^
/datasets/git/read-cache.c:1188:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (cmp_last > 0) {
                ^
/datasets/git/read-cache.c:1189:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (len_eq_last == 0) {
                        ^
/datasets/git/read-cache.c:1196:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/read-cache.c:1204:10: note: +1, nesting level increased to 2
                } else if (cmp_last == 0) {
                       ^
/datasets/git/read-cache.c:1214:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (;;) {
        ^
/datasets/git/read-cache.c:1217:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (;;) {
                ^
/datasets/git/read-cache.c:1218:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (*--slash == '/')
                        ^
/datasets/git/read-cache.c:1220:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (slash <= ce->name)
                        ^
/datasets/git/read-cache.c:1225:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (cmp_last > 0) {
                ^
/datasets/git/read-cache.c:1234:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (len + 1 <= len_eq_last) {
                        ^
/datasets/git/read-cache.c:1250:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (len > len_eq_last) {
                        ^
/datasets/git/read-cache.c:1273:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (pos >= 0) {
                ^
/datasets/git/read-cache.c:1282:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!(istate->cache[pos]->ce_flags & CE_REMOVE)) {
                        ^
/datasets/git/read-cache.c:1284:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!ok_to_replace)
                                ^
/datasets/git/read-cache.c:1290:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/read-cache.c:1298:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (pos < istate->cache_nr) {
                ^
/datasets/git/read-cache.c:1300:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if ((ce_namelen(p) <= len) ||
                        ^
/datasets/git/read-cache.c:1301:30: note: +1
                            (p->name[len] != '/') ||
                                                  ^
/datasets/git/read-cache.c:1304:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ce_stage(p) == stage && !(p->ce_flags & CE_REMOVE))
                        ^
/datasets/git/read-cache.c:1304:29: note: +1
                        if (ce_stage(p) == stage && !(p->ce_flags & CE_REMOVE))
                                                 ^
/datasets/git/read-cache.c:1165:30: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                        const struct cache_entry *ce, int pos, int ok_to_replace)
                                                  ^
/datasets/git/read-cache.c:1165:34: warning: 2 adjacent parameters of 'has_dir_name' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                        const struct cache_entry *ce, int pos, int ok_to_replace)
                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:1165:38: note: the first parameter in the range is 'pos'
                        const struct cache_entry *ce, int pos, int ok_to_replace)
                                                          ^~~
/datasets/git/read-cache.c:1165:47: note: the last parameter in the range is 'ok_to_replace'
                        const struct cache_entry *ce, int pos, int ok_to_replace)
                                                                   ^~~~~~~~~~~~~
/datasets/git/read-cache.c:1168:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int stage = ce_stage(ce);
                    ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/read-cache.c:1171:9: warning: variable 'len_eq_last' is not initialized [cppcoreguidelines-init-variables]
        size_t len_eq_last;
               ^
                           = 0
/datasets/git/read-cache.c:1196:6: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                        } else {
                          ^~~~~~
/datasets/git/read-cache.c:1215:10: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
                size_t len;
                       ^
                           = 0
/datasets/git/read-cache.c:1217:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (;;) {
                ^
/datasets/git/read-cache.c:1218:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (*--slash == '/')
                                            ^
                                             {
/datasets/git/read-cache.c:1220:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (slash <= ce->name)
                                              ^
                                               {
/datasets/git/read-cache.c:1272:44: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                pos = index_name_stage_pos(istate, name, len, stage, EXPAND_SPARSE);
                                                         ^
/datasets/git/read-cache.c:1282:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!(istate->cache[pos]->ce_flags & CE_REMOVE)) {
                              ^
/datasets/git/read-cache.c:1282:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!(istate->cache[pos]->ce_flags & CE_REMOVE)) {
                                                             ^
/datasets/git/./refs/../cache.h:168:31: note: expanded from macro 'CE_REMOVE'
#define CE_REMOVE            (1 << 17)
                              ^
/datasets/git/read-cache.c:1284:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!ok_to_replace)
                                                   ^
                                                    {
/datasets/git/read-cache.c:1290:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/read-cache.c:1298:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (pos < istate->cache_nr) {
                ^
/datasets/git/read-cache.c:1298:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'pos' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (pos < istate->cache_nr) {
                       ^
/datasets/git/read-cache.c:1299:24: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                        struct cache_entry *p = istate->cache[pos];
                                            ^
/datasets/git/read-cache.c:1302:8: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                            memcmp(p->name, name, len))
                            ^
                                                       != 0
/datasets/git/read-cache.c:1302:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            memcmp(p->name, name, len))
                                                       ^
                                                        {
/datasets/git/read-cache.c:1304:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (ce_stage(p) == stage && !(p->ce_flags & CE_REMOVE))
                            ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/read-cache.c:1304:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (ce_stage(p) == stage && !(p->ce_flags & CE_REMOVE))
                                                      ^
/datasets/git/read-cache.c:1304:48: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (ce_stage(p) == stage && !(p->ce_flags & CE_REMOVE))
                                                                    ^
/datasets/git/./refs/../cache.h:168:31: note: expanded from macro 'CE_REMOVE'
#define CE_REMOVE            (1 << 17)
                              ^
/datasets/git/read-cache.c:1304:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ce_stage(p) == stage && !(p->ce_flags & CE_REMOVE))
                                                                               ^
                                                                                {
/datasets/git/read-cache.c:1328:33: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                                         const struct cache_entry *ce,
                                                                   ^
/datasets/git/read-cache.c:1331:6: warning: variable 'retval' is not initialized [cppcoreguidelines-init-variables]
        int retval;
            ^
                   = 0
/datasets/git/read-cache.c:1336:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (ce->ce_flags & CE_REMOVE)
            ^
/datasets/git/read-cache.c:1336:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (ce->ce_flags & CE_REMOVE)
                           ^
/datasets/git/./refs/../cache.h:168:31: note: expanded from macro 'CE_REMOVE'
#define CE_REMOVE            (1 << 17)
                              ^
/datasets/git/read-cache.c:1336:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ce->ce_flags & CE_REMOVE)
                                     ^
                                      {
/datasets/git/read-cache.c:1353:87: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static int add_index_entry_with_check(struct index_state *istate, struct cache_entry *ce, int option)
                                                                                      ^
/datasets/git/read-cache.c:1355:6: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        int pos;
            ^
                = 0
/datasets/git/read-cache.c:1356:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int ok_to_add = option & ADD_CACHE_OK_TO_ADD;
                        ^~~~~~
/datasets/git/read-cache.c:1357:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int ok_to_replace = option & ADD_CACHE_OK_TO_REPLACE;
                            ^~~~~~
/datasets/git/read-cache.c:1358:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int skip_df_check = option & ADD_CACHE_SKIP_DFCHECK;
                            ^~~~~~
/datasets/git/read-cache.c:1359:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int new_only = option & ADD_CACHE_NEW_ONLY;
                       ^~~~~~
/datasets/git/read-cache.c:1366:67: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                strcmp(ce->name, istate->cache[istate->cache_nr - 1]->name) > 0)
                                                                                ^
                                                                                 {
/datasets/git/read-cache.c:1368:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/read-cache.c:1369:64: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                pos = index_name_stage_pos(istate, ce->name, ce_namelen(ce), ce_stage(ce), EXPAND_SPARSE);
                                                                             ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/read-cache.c:1375:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(option & ADD_CACHE_KEEP_CACHE_TREE))
              ^~~~~~
/datasets/git/read-cache.c:1375:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(option & ADD_CACHE_KEEP_CACHE_TREE))
                                                  ^
                                                   {
/datasets/git/read-cache.c:1380:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!new_only)
                              ^
                               {
/datasets/git/read-cache.c:1386:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(option & ADD_CACHE_KEEP_CACHE_TREE))
              ^~~~~~
/datasets/git/read-cache.c:1386:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(option & ADD_CACHE_KEEP_CACHE_TREE))
                                                  ^
                                                   {
/datasets/git/read-cache.c:1393:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (pos < istate->cache_nr && ce_stage(ce) == 0) {
                                      ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/read-cache.c:1394:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (ce_same_name(istate->cache[pos], ce)) {
                ^
/datasets/git/read-cache.c:1394:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'pos' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (ce_same_name(istate->cache[pos], ce)) {
                       ^
/datasets/git/read-cache.c:1396:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!remove_index_entry_at(istate, pos))
                                                                ^
                                                                 {
/datasets/git/read-cache.c:1401:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ok_to_add)
                       ^
                        {
/datasets/git/read-cache.c:1403:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (verify_path_internal(ce->name, ce->ce_mode) == PATH_INVALID)
                                                                        ^
                                                                         {
/datasets/git/read-cache.c:1408:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ok_to_replace)
                                   ^
                                    {
/datasets/git/read-cache.c:1411:64: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                pos = index_name_stage_pos(istate, ce->name, ce_namelen(ce), ce_stage(ce), EXPAND_SPARSE);
                                                                             ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/read-cache.c:1417:69: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
int add_index_entry(struct index_state *istate, struct cache_entry *ce, int option)
                                                                    ^
/datasets/git/read-cache.c:1419:6: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        int pos;
            ^
                = 0
/datasets/git/read-cache.c:1421:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (option & ADD_CACHE_JUST_APPEND)
            ^~~~~~
/datasets/git/read-cache.c:1421:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (option & ADD_CACHE_JUST_APPEND)
                                           ^
                                            {
/datasets/git/read-cache.c:1422:9: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                pos = istate->cache_nr;
                      ^
/datasets/git/read-cache.c:1424:7: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
                int ret;
                    ^
                        = 0
/datasets/git/read-cache.c:1426:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret <= 0)
                             ^
                              {
/datasets/git/read-cache.c:1432:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(istate->cache, istate->cache_nr + 1, istate->cache_alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/read-cache.c:1432:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_GROW(istate->cache, istate->cache_nr + 1, istate->cache_alloc);
        ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/read-cache.c:1436:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (istate->cache_nr > pos + 1)
                                       ^
                                        {
/datasets/git/read-cache.c:1437:3: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                MOVE_ARRAY(istate->cache + pos + 1, istate->cache + pos,
                ^
/datasets/git/./git-compat-util.h:1102:63: note: expanded from macro 'MOVE_ARRAY'
#define MOVE_ARRAY(dst, src, n) move_array((dst), (src), (n), sizeof(*(dst)) + \
                                                              ^
/datasets/git/read-cache.c:1440:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        istate->cache_changed |= CE_ENTRY_ADDED;
        ^
/datasets/git/read-cache.c:1440:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        istate->cache_changed |= CE_ENTRY_ADDED;
                                 ^
/datasets/git/./refs/../cache.h:301:26: note: expanded from macro 'CE_ENTRY_ADDED'
#define CE_ENTRY_ADDED          (1 << 3)
                                 ^
/datasets/git/read-cache.c:1455:28: warning: function 'refresh_cache_ent' has cognitive complexity of 36 (threshold 25) [readability-function-cognitive-complexity]
static struct cache_entry *refresh_cache_ent(struct index_state *istate,
                           ^
/datasets/git/read-cache.c:1471:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!refresh || ce_uptodate(ce))
        ^
/datasets/git/read-cache.c:1471:15: note: +1
        if (!refresh || ce_uptodate(ce))
                     ^
/datasets/git/read-cache.c:1474:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!ignore_fsmonitor)
        ^
/datasets/git/read-cache.c:1481:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!ignore_skip_worktree && ce_skip_worktree(ce)) {
        ^
/datasets/git/read-cache.c:1481:28: note: +1
        if (!ignore_skip_worktree && ce_skip_worktree(ce)) {
                                  ^
/datasets/git/read-cache.c:1485:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!ignore_valid && (ce->ce_flags & CE_VALID)) {
        ^
/datasets/git/read-cache.c:1485:20: note: +1
        if (!ignore_valid && (ce->ce_flags & CE_VALID)) {
                          ^
/datasets/git/read-cache.c:1489:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!ignore_fsmonitor && (ce->ce_flags & CE_FSMONITOR_VALID)) {
        ^
/datasets/git/read-cache.c:1489:24: note: +1
        if (!ignore_fsmonitor && (ce->ce_flags & CE_FSMONITOR_VALID)) {
                              ^
/datasets/git/read-cache.c:1494:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (has_symlink_leading_path(ce->name, ce_namelen(ce))) {
        ^
/datasets/git/read-cache.c:1495:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ignore_missing)
                ^
/datasets/git/read-cache.c:1497:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (err)
                ^
/datasets/git/read-cache.c:1502:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (t2_did_lstat)
        ^
/datasets/git/read-cache.c:1504:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (lstat(ce->name, &st) < 0) {
        ^
/datasets/git/read-cache.c:1505:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ignore_missing && errno == ENOENT)
                ^
/datasets/git/read-cache.c:1505:22: note: +1
                if (ignore_missing && errno == ENOENT)
                                   ^
/datasets/git/read-cache.c:1507:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (err)
                ^
/datasets/git/read-cache.c:1513:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (changed_ret)
        ^
/datasets/git/read-cache.c:1515:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!changed) {
        ^
/datasets/git/read-cache.c:1523:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ignore_valid && assume_unchanged &&
                ^
/datasets/git/read-cache.c:1523:40: note: +1
                if (ignore_valid && assume_unchanged &&
                                                     ^
/datasets/git/read-cache.c:1526:3: note: +1, nesting level increased to 2
                else {
                ^
/datasets/git/read-cache.c:1532:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!S_ISGITLINK(ce->ce_mode)) {
                        ^
/datasets/git/read-cache.c:1540:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (t2_did_scan)
        ^
/datasets/git/read-cache.c:1542:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ie_modified(istate, ce, &st, options)) {
        ^
/datasets/git/read-cache.c:1543:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (err)
                ^
/datasets/git/read-cache.c:1558:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!ignore_valid && assume_unchanged &&
        ^
/datasets/git/read-cache.c:1558:40: note: +1
        if (!ignore_valid && assume_unchanged &&
                                              ^
/datasets/git/read-cache.c:1456:31: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                                             struct cache_entry *ce,
                                                                 ^
/datasets/git/read-cache.c:1457:33: warning: 4 adjacent parameters of 'refresh_cache_ent' of similar type ('int *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                             unsigned int options, int *err,
                                                                   ^~~~~~~~~
/datasets/git/read-cache.c:1457:38: note: the first parameter in the range is 'err'
                                             unsigned int options, int *err,
                                                                        ^~~
/datasets/git/read-cache.c:1460:16: note: the last parameter in the range is 't2_did_scan'
                                             int *t2_did_scan)
                                                  ^~~~~~~~~~~
/datasets/git/read-cache.c:1462:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/read-cache.c:1463:22: warning: variable 'updated' is not initialized [cppcoreguidelines-init-variables]
        struct cache_entry *updated;
                            ^
                                    = NULL
/datasets/git/read-cache.c:1464:6: warning: variable 'changed' is not initialized [cppcoreguidelines-init-variables]
        int changed;
            ^
                    = 0
/datasets/git/read-cache.c:1465:16: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int refresh = options & CE_MATCH_REFRESH;
                      ^
/datasets/git/read-cache.c:1465:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
/datasets/git/read-cache.c:1466:21: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int ignore_valid = options & CE_MATCH_IGNORE_VALID;
                           ^
/datasets/git/read-cache.c:1466:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
/datasets/git/read-cache.c:1467:29: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int ignore_skip_worktree = options & CE_MATCH_IGNORE_SKIP_WORKTREE;
                                   ^
/datasets/git/read-cache.c:1467:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
/datasets/git/read-cache.c:1468:23: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int ignore_missing = options & CE_MATCH_IGNORE_MISSING;
                             ^
/datasets/git/read-cache.c:1468:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
/datasets/git/read-cache.c:1469:25: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int ignore_fsmonitor = options & CE_MATCH_IGNORE_FSMONITOR;
                               ^
/datasets/git/read-cache.c:1469:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
/datasets/git/read-cache.c:1471:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!refresh || ce_uptodate(ce))
                        ^
/datasets/git/./refs/../cache.h:243:26: note: expanded from macro 'ce_uptodate'
#define ce_uptodate(ce) ((ce)->ce_flags & CE_UPTODATE)
                         ^                ~~~~~~~~~~~
/datasets/git/read-cache.c:1471:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!refresh || ce_uptodate(ce))
                                        ^
                                         {
/datasets/git/read-cache.c:1474:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ignore_fsmonitor)
                              ^
                               {
/datasets/git/read-cache.c:1481:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!ignore_skip_worktree && ce_skip_worktree(ce)) {
                                     ^
/datasets/git/./refs/../cache.h:244:31: note: expanded from macro 'ce_skip_worktree'
#define ce_skip_worktree(ce) ((ce)->ce_flags & CE_SKIP_WORKTREE)
                              ^                ~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:1482:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ce_mark_uptodate(ce);
                ^
/datasets/git/./refs/../cache.h:245:31: note: expanded from macro 'ce_mark_uptodate'
#define ce_mark_uptodate(ce) ((ce)->ce_flags |= CE_UPTODATE)
                              ^                 ~~~~~~~~~~~
/datasets/git/read-cache.c:1485:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!ignore_valid && (ce->ce_flags & CE_VALID)) {
                              ^
/datasets/git/read-cache.c:1486:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ce_mark_uptodate(ce);
                ^
/datasets/git/./refs/../cache.h:245:31: note: expanded from macro 'ce_mark_uptodate'
#define ce_mark_uptodate(ce) ((ce)->ce_flags |= CE_UPTODATE)
                              ^                 ~~~~~~~~~~~
/datasets/git/read-cache.c:1489:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!ignore_fsmonitor && (ce->ce_flags & CE_FSMONITOR_VALID)) {
                                  ^
/datasets/git/read-cache.c:1489:43: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!ignore_fsmonitor && (ce->ce_flags & CE_FSMONITOR_VALID)) {
                                                 ^
/datasets/git/./refs/../cache.h:173:31: note: expanded from macro 'CE_FSMONITOR_VALID'
#define CE_FSMONITOR_VALID   (1 << 21)
                              ^
/datasets/git/read-cache.c:1490:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ce_mark_uptodate(ce);
                ^
/datasets/git/./refs/../cache.h:245:31: note: expanded from macro 'ce_mark_uptodate'
#define ce_mark_uptodate(ce) ((ce)->ce_flags |= CE_UPTODATE)
                              ^                 ~~~~~~~~~~~
/datasets/git/read-cache.c:1495:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ignore_missing)
                                   ^
                                    {
/datasets/git/read-cache.c:1497:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err)
                        ^
                         {
/datasets/git/read-cache.c:1502:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (t2_did_lstat)
                         ^
                          {
/datasets/git/read-cache.c:1505:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ignore_missing && errno == ENOENT)
                                                      ^
                                                       {
/datasets/git/read-cache.c:1507:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err)
                        ^
                         {
/datasets/git/read-cache.c:1513:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (changed_ret)
                        ^
                         {
/datasets/git/read-cache.c:1524:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    !(ce->ce_flags & CE_VALID))
                      ^
/datasets/git/read-cache.c:1524:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !(ce->ce_flags & CE_VALID))
                                               ^
                                                {
/datasets/git/read-cache.c:1532:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!S_ISGITLINK(ce->ce_mode)) {
                             ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/read-cache.c:1533:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                ce_mark_uptodate(ce);
                                ^
/datasets/git/./refs/../cache.h:245:31: note: expanded from macro 'ce_mark_uptodate'
#define ce_mark_uptodate(ce) ((ce)->ce_flags |= CE_UPTODATE)
                              ^                 ~~~~~~~~~~~
/datasets/git/read-cache.c:1540:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (t2_did_scan)
                        ^
                         {
/datasets/git/read-cache.c:1543:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err)
                        ^
                         {
/datasets/git/read-cache.c:1550:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(updated->name, ce->name, ce->ce_namelen + 1);
        ^~~~~~
/datasets/git/read-cache.c:1550:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(updated->name, ce->name, ce->ce_namelen + 1);
        ^~~~~~
/datasets/git/read-cache.c:1559:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            !(ce->ce_flags & CE_VALID))
              ^
/datasets/git/read-cache.c:1559:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !(ce->ce_flags & CE_VALID))
                                       ^
                                        {
/datasets/git/read-cache.c:1560:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                updated->ce_flags &= ~CE_VALID;
                ^                    ~~~~~~~~~
/datasets/git/read-cache.c:1560:24: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                updated->ce_flags &= ~CE_VALID;
                                     ^
/datasets/git/read-cache.c:1577:6: warning: 3 adjacent parameters of 'repo_refresh_and_write_index' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                 unsigned int refresh_flags,
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:1577:19: note: the first parameter in the range is 'refresh_flags'
                                 unsigned int refresh_flags,
                                              ^~~~~~~~~~~~~
/datasets/git/read-cache.c:1579:10: note: the last parameter in the range is 'gentle'
                                 int gentle,
                                     ^~~~~~
/datasets/git/read-cache.c:1579:6: note: 'unsigned int' and 'int' may be implicitly converted
                                 int gentle,
                                 ^
/datasets/git/read-cache.c:1584:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int fd, ret = 0;
        ^~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:1584:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd, ret = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:1584:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/read-cache.c:1587:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!gentle && fd < 0)
                              ^
                               {
/datasets/git/read-cache.c:1589:76: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (refresh_index(repo->index, refresh_flags, pathspec, seen, header_msg))
                                                                                  ^
                                                                                   {
/datasets/git/read-cache.c:1591:61: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (0 <= fd && write_locked_index(repo->index, &lock_file, COMMIT_LOCK | write_flags))
                                                                   ^
/datasets/git/./refs/../cache.h:744:22: note: expanded from macro 'COMMIT_LOCK'
#define COMMIT_LOCK             (1 << 0)
                                ^~~~~~~~
/datasets/git/read-cache.c:1591:88: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (0 <= fd && write_locked_index(repo->index, &lock_file, COMMIT_LOCK | write_flags))
                                                                                              ^
                                                                                               {
/datasets/git/read-cache.c:1597:5: warning: function 'refresh_index' has cognitive complexity of 55 (threshold 25) [readability-function-cognitive-complexity]
int refresh_index(struct index_state *istate, unsigned int flags,
    ^
/datasets/git/read-cache.c:1612:13: note: +1, including nesting penalty of 0, nesting level increased to 1
                                (really ? CE_MATCH_IGNORE_VALID : 0) |
                                        ^
/datasets/git/read-cache.c:1613:14: note: +1, including nesting penalty of 0, nesting level increased to 1
                                (not_new ? CE_MATCH_IGNORE_MISSING : 0));
                                         ^
/datasets/git/read-cache.c:1623:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (flags & REFRESH_PROGRESS && isatty(2))
        ^
/datasets/git/read-cache.c:1623:31: note: +1
        if (flags & REFRESH_PROGRESS && isatty(2))
                                     ^
/datasets/git/read-cache.c:1628:32: note: +1, including nesting penalty of 0, nesting level increased to 1
        modified_fmt   = in_porcelain ? "M\t%s\n" : "%s: needs update\n";
                                      ^
/datasets/git/read-cache.c:1629:32: note: +1, including nesting penalty of 0, nesting level increased to 1
        deleted_fmt    = in_porcelain ? "D\t%s\n" : "%s: needs update\n";
                                      ^
/datasets/git/read-cache.c:1630:32: note: +1, including nesting penalty of 0, nesting level increased to 1
        typechange_fmt = in_porcelain ? "T\t%s\n" : "%s: needs update\n";
                                      ^
/datasets/git/read-cache.c:1631:32: note: +1, including nesting penalty of 0, nesting level increased to 1
        added_fmt      = in_porcelain ? "A\t%s\n" : "%s: needs update\n";
                                      ^
/datasets/git/read-cache.c:1632:32: note: +1, including nesting penalty of 0, nesting level increased to 1
        unmerged_fmt   = in_porcelain ? "U\t%s\n" : "%s: needs merge\n";
                                      ^
/datasets/git/read-cache.c:1641:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < istate->cache_nr; i++) {
        ^
/datasets/git/read-cache.c:1650:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ignore_submodules && S_ISGITLINK(ce->ce_mode))
                ^
/datasets/git/read-cache.c:1650:25: note: +1
                if (ignore_submodules && S_ISGITLINK(ce->ce_mode))
                                      ^
/datasets/git/read-cache.c:1652:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ignore_skip_worktree && ce_skip_worktree(ce))
                ^
/datasets/git/read-cache.c:1652:28: note: +1
                if (ignore_skip_worktree && ce_skip_worktree(ce))
                                         ^
/datasets/git/read-cache.c:1659:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (S_ISSPARSEDIR(ce->ce_mode))
                ^
/datasets/git/read-cache.c:1662:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (pathspec && !ce_path_match(istate, ce, pathspec, seen))
                ^
/datasets/git/read-cache.c:1662:16: note: +1
                if (pathspec && !ce_path_match(istate, ce, pathspec, seen))
                             ^
/datasets/git/read-cache.c:1665:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ce_stage(ce)) {
                ^
/datasets/git/read-cache.c:1666:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while ((i < istate->cache_nr) &&
                        ^
/datasets/git/read-cache.c:1666:34: note: +1
                        while ((i < istate->cache_nr) &&
                                                      ^
/datasets/git/read-cache.c:1670:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (allow_unmerged)
                        ^
/datasets/git/read-cache.c:1672:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!filtered)
                        ^
/datasets/git/read-cache.c:1679:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (filtered)
                ^
/datasets/git/read-cache.c:1687:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (new_entry == ce)
                ^
/datasets/git/read-cache.c:1690:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!new_entry) {
                ^
/datasets/git/read-cache.c:1693:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (really && cache_errno == EINVAL) {
                        ^
/datasets/git/read-cache.c:1693:15: note: +1
                        if (really && cache_errno == EINVAL) {
                                   ^
/datasets/git/read-cache.c:1702:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (quiet)
                        ^
/datasets/git/read-cache.c:1705:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (cache_errno == ENOENT)
                        ^
/datasets/git/read-cache.c:1707:9: note: +1, nesting level increased to 3
                        else if (ce_intent_to_add(ce))
                             ^
/datasets/git/read-cache.c:1709:9: note: +1, nesting level increased to 3
                        else if (changed & TYPE_CHANGED)
                             ^
/datasets/git/read-cache.c:1711:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/read-cache.c:1726:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        trace_performance_leave("refresh index");
        ^
/datasets/git/./trace.h:251:2: note: expanded from macro 'trace_performance_leave'
        do {                                                                \
        ^
/datasets/git/read-cache.c:1726:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        trace_performance_leave("refresh index");
        ^
/datasets/git/./trace.h:252:3: note: expanded from macro 'trace_performance_leave'
                if (trace_pass_fl(&trace_perf_key))                         \
                ^
/datasets/git/read-cache.c:1601:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/read-cache.c:1601:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/read-cache.c:1603:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int really = (flags & REFRESH_REALLY) != 0;
                      ^
/datasets/git/read-cache.c:1603:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int really = (flags & REFRESH_REALLY) != 0;
                              ^
/datasets/git/./refs/../cache.h:921:43: note: expanded from macro 'REFRESH_REALLY'
#define REFRESH_REALLY                   (1 << 0) /* ignore_valid */
                                          ^
/datasets/git/read-cache.c:1604:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int allow_unmerged = (flags & REFRESH_UNMERGED) != 0;
                              ^
/datasets/git/read-cache.c:1604:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int allow_unmerged = (flags & REFRESH_UNMERGED) != 0;
                                      ^
/datasets/git/./refs/../cache.h:922:43: note: expanded from macro 'REFRESH_UNMERGED'
#define REFRESH_UNMERGED                 (1 << 1) /* allow unmerged */
                                          ^
/datasets/git/read-cache.c:1605:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int quiet = (flags & REFRESH_QUIET) != 0;
                     ^
/datasets/git/read-cache.c:1605:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int quiet = (flags & REFRESH_QUIET) != 0;
                             ^
/datasets/git/./refs/../cache.h:923:43: note: expanded from macro 'REFRESH_QUIET'
#define REFRESH_QUIET                    (1 << 2) /* be quiet about it */
                                          ^
/datasets/git/read-cache.c:1606:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int not_new = (flags & REFRESH_IGNORE_MISSING) != 0;
                       ^
/datasets/git/read-cache.c:1606:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int not_new = (flags & REFRESH_IGNORE_MISSING) != 0;
                               ^
/datasets/git/./refs/../cache.h:924:43: note: expanded from macro 'REFRESH_IGNORE_MISSING'
#define REFRESH_IGNORE_MISSING           (1 << 3) /* ignore non-existent */
                                          ^
/datasets/git/read-cache.c:1607:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int ignore_submodules = (flags & REFRESH_IGNORE_SUBMODULES) != 0;
                                 ^
/datasets/git/read-cache.c:1607:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int ignore_submodules = (flags & REFRESH_IGNORE_SUBMODULES) != 0;
                                         ^
/datasets/git/./refs/../cache.h:925:43: note: expanded from macro 'REFRESH_IGNORE_SUBMODULES'
#define REFRESH_IGNORE_SUBMODULES        (1 << 4) /* ignore submodules */
                                          ^
/datasets/git/read-cache.c:1608:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int ignore_skip_worktree = (flags & REFRESH_IGNORE_SKIP_WORKTREE) != 0;
                                    ^
/datasets/git/read-cache.c:1608:38: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int ignore_skip_worktree = (flags & REFRESH_IGNORE_SKIP_WORKTREE) != 0;
                                            ^
/datasets/git/./refs/../cache.h:928:43: note: expanded from macro 'REFRESH_IGNORE_SKIP_WORKTREE'
#define REFRESH_IGNORE_SKIP_WORKTREE     (1 << 7) /* ignore skip_worktree entries */
                                          ^
/datasets/git/read-cache.c:1610:21: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int in_porcelain = (flags & REFRESH_IN_PORCELAIN);
                           ^
/datasets/git/read-cache.c:1610:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int in_porcelain = (flags & REFRESH_IN_PORCELAIN);
                            ^
/datasets/git/read-cache.c:1610:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int in_porcelain = (flags & REFRESH_IN_PORCELAIN);
                                    ^
/datasets/git/./refs/../cache.h:926:43: note: expanded from macro 'REFRESH_IN_PORCELAIN'
#define REFRESH_IN_PORCELAIN             (1 << 5) /* user friendly output, not "needs update" */
                                          ^
/datasets/git/read-cache.c:1611:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned int options = (CE_MATCH_REFRESH |
                                ^
/datasets/git/./refs/../cache.h:887:27: note: expanded from macro 'CE_MATCH_REFRESH'
#define CE_MATCH_REFRESH                0x10
                                        ^
/datasets/git/read-cache.c:1614:14: warning: variable 'modified_fmt' is not initialized [cppcoreguidelines-init-variables]
        const char *modified_fmt;
                    ^
                                 = NULL
/datasets/git/read-cache.c:1615:14: warning: variable 'deleted_fmt' is not initialized [cppcoreguidelines-init-variables]
        const char *deleted_fmt;
                    ^
                                = NULL
/datasets/git/read-cache.c:1616:14: warning: variable 'typechange_fmt' is not initialized [cppcoreguidelines-init-variables]
        const char *typechange_fmt;
                    ^
                                   = NULL
/datasets/git/read-cache.c:1617:14: warning: variable 'added_fmt' is not initialized [cppcoreguidelines-init-variables]
        const char *added_fmt;
                    ^
                              = NULL
/datasets/git/read-cache.c:1618:14: warning: variable 'unmerged_fmt' is not initialized [cppcoreguidelines-init-variables]
        const char *unmerged_fmt;
                    ^
                                 = NULL
/datasets/git/read-cache.c:1623:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & REFRESH_PROGRESS && isatty(2))
            ^
/datasets/git/read-cache.c:1623:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & REFRESH_PROGRESS && isatty(2))
                    ^
/datasets/git/./refs/../cache.h:927:43: note: expanded from macro 'REFRESH_PROGRESS'
#define REFRESH_PROGRESS                 (1 << 6) /* show progress bar if stderr is tty */
                                          ^
/datasets/git/read-cache.c:1623:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & REFRESH_PROGRESS && isatty(2))
                                                  ^
                                                   {
/datasets/git/read-cache.c:1641:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'cache_nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < istate->cache_nr; i++) {
                    ^
/datasets/git/read-cache.c:1642:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                struct cache_entry *ce, *new_entry;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:1642:23: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
                struct cache_entry *ce, *new_entry;
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:1642:23: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/read-cache.c:1642:28: warning: variable 'new_entry' is not initialized [cppcoreguidelines-init-variables]
                struct cache_entry *ce, *new_entry;
                                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:1650:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ignore_submodules && S_ISGITLINK(ce->ce_mode))
                                         ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/read-cache.c:1650:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ignore_submodules && S_ISGITLINK(ce->ce_mode))
                                                                  ^
                                                                   {
/datasets/git/read-cache.c:1652:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ignore_skip_worktree && ce_skip_worktree(ce))
                                            ^
/datasets/git/./refs/../cache.h:244:31: note: expanded from macro 'ce_skip_worktree'
#define ce_skip_worktree(ce) ((ce)->ce_flags & CE_SKIP_WORKTREE)
                              ^                ~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:1652:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ignore_skip_worktree && ce_skip_worktree(ce))
                                                                 ^
                                                                  {
/datasets/git/read-cache.c:1659:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (S_ISSPARSEDIR(ce->ce_mode))
                                               ^
                                                {
/datasets/git/read-cache.c:1662:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pathspec && !ce_path_match(istate, ce, pathspec, seen))
                                                                           ^
                                                                            {
/datasets/git/read-cache.c:1665:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce_stage(ce)) {
                    ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/read-cache.c:1666:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while ((i < istate->cache_nr) &&
                        ^
/datasets/git/read-cache.c:1666:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'ce' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while ((i < istate->cache_nr) &&
                               ^
/datasets/git/read-cache.c:1667:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                               ! strcmp(istate->cache[i]->name, ce->name))
                                                                          ^
                                                                           {
/datasets/git/read-cache.c:1670:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (allow_unmerged)
                                           ^
                                            {
/datasets/git/read-cache.c:1672:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!filtered)
                                      ^
                                       {
/datasets/git/read-cache.c:1679:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (filtered)
                             ^
                              {
/datasets/git/read-cache.c:1687:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (new_entry == ce)
                                    ^
                                     {
/datasets/git/read-cache.c:1691:16: warning: variable 'fmt' is not initialized [cppcoreguidelines-init-variables]
                        const char *fmt;
                                    ^
                                        = NULL
/datasets/git/read-cache.c:1697:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                ce->ce_flags &= ~CE_VALID;
                                ^               ~~~~~~~~~
/datasets/git/read-cache.c:1697:21: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                                ce->ce_flags &= ~CE_VALID;
                                                ^
/datasets/git/read-cache.c:1698:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                ce->ce_flags |= CE_UPDATE_IN_BASE;
                                ^
/datasets/git/read-cache.c:1698:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                ce->ce_flags |= CE_UPDATE_IN_BASE;
                                                ^
/datasets/git/./refs/../cache.h:183:31: note: expanded from macro 'CE_UPDATE_IN_BASE'
#define CE_UPDATE_IN_BASE    (1 << 27)
                              ^
/datasets/git/read-cache.c:1700:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                istate->cache_changed |= CE_ENTRY_CHANGED;
                                ^
/datasets/git/read-cache.c:1700:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                istate->cache_changed |= CE_ENTRY_CHANGED;
                                                         ^
/datasets/git/./refs/../cache.h:299:27: note: expanded from macro 'CE_ENTRY_CHANGED'
#define CE_ENTRY_CHANGED        (1 << 1)
                                 ^
/datasets/git/read-cache.c:1702:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (quiet)
                                  ^
                                   {
/datasets/git/read-cache.c:1705:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (cache_errno == ENOENT)
                                                  ^
                                                   {
/datasets/git/read-cache.c:1707:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        else if (ce_intent_to_add(ce))
                                 ^
/datasets/git/./refs/../cache.h:246:31: note: expanded from macro 'ce_intent_to_add'
#define ce_intent_to_add(ce) ((ce)->ce_flags & CE_INTENT_TO_ADD)
                              ^                ~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:1707:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (ce_intent_to_add(ce))
                                                      ^
                                                       {
/datasets/git/read-cache.c:1709:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        else if (changed & TYPE_CHANGED)
                                 ^~~~~~~
/datasets/git/read-cache.c:1709:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (changed & TYPE_CHANGED)
                                                        ^
                                                         {
/datasets/git/read-cache.c:1711:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/read-cache.c:1726:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_performance_leave("refresh index");
        ^
/datasets/git/./trace.h:251:2: note: expanded from macro 'trace_performance_leave'
        do {                                                                \
        ^
/datasets/git/read-cache.c:1731:26: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                                        struct cache_entry *ce,
                                                            ^
/datasets/git/read-cache.c:1742:1: warning: replace macro with enum [modernize-macro-to-enum]
#define INDEX_FORMAT_DEFAULT 3
^~~~~~~~
                             =
/datasets/git/read-cache.c:1742:9: warning: macro 'INDEX_FORMAT_DEFAULT' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define INDEX_FORMAT_DEFAULT 3
        ^
/datasets/git/read-cache.c:1744:65: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static unsigned int get_index_format_default(struct repository *r)
                                                                ^
/datasets/git/read-cache.c:1746:21: warning: function is not thread safe [concurrency-mt-unsafe]
        char *envversion = getenv("GIT_INDEX_VERSION");
                           ^
/datasets/git/read-cache.c:1747:8: warning: variable 'endp' is not initialized [cppcoreguidelines-init-variables]
        char *endp;
              ^
                   = NULL
/datasets/git/read-cache.c:1753:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (r->settings.index_version >= 0)
                                                   ^
                                                    {
/datasets/git/read-cache.c:1763:39: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        version = strtoul(envversion, &endp, 10);
                                             ^
/datasets/git/read-cache.c:1801:41: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
#define align_padding_size(size, len) ((size + (len) + 8) & ~7) - (size + len)
                                        ^
                                        (   )
/datasets/git/read-cache.c:1801:65: warning: macro replacement list should be enclosed in parentheses [bugprone-macro-parentheses]
#define align_padding_size(size, len) ((size + (len) + 8) & ~7) - (size + len)
                                                                ^
                                      (                                       )
/datasets/git/read-cache.c:1801:68: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
#define align_padding_size(size, len) ((size + (len) + 8) & ~7) - (size + len)
                                                                   ^
                                                                   (   )
/datasets/git/read-cache.c:1801:75: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
#define align_padding_size(size, len) ((size + (len) + 8) & ~7) - (size + len)
                                                                          ^
                                                                          (  )
/datasets/git/read-cache.c:1805:12: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
                                     ((flags & CE_EXTENDED) ? 2 : 1) * sizeof(uint16_t) + len)
                                       ^
                                       (    )
/datasets/git/read-cache.c:1805:63: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
                                     ((flags & CE_EXTENDED) ? 2 : 1) * sizeof(uint16_t) + len)
                                                                                          ^
                                                                                          (  )
/datasets/git/read-cache.c:1810:5: warning: variable 'verify_index_checksum' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
int verify_index_checksum;
    ^
/datasets/git/read-cache.c:1813:5: warning: variable 'verify_ce_order' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
int verify_ce_order;
    ^
/datasets/git/read-cache.c:1817:15: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        git_hash_ctx c;
                     ^
/datasets/git/read-cache.c:1819:6: warning: variable 'hdr_version' is not initialized [cppcoreguidelines-init-variables]
        int hdr_version;
            ^
                        = 0
/datasets/git/read-cache.c:1821:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (hdr->hdr_signature != htonl(CACHE_SIGNATURE))
                                                         ^
                                                          {
/datasets/git/read-cache.c:1824:69: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (hdr_version < INDEX_FORMAT_LB || INDEX_FORMAT_UB < hdr_version)
                                                                           ^
                                                                            {
/datasets/git/read-cache.c:1827:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!verify_index_checksum)
                                   ^
                                    {
/datasets/git/read-cache.c:1833:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!hasheq(hash, (unsigned char *)hdr + size - the_hash_algo->rawsz))
                                                                              ^
                                                                               {
/datasets/git/read-cache.c:1839:5: warning: 2 adjacent parameters of 'read_index_extension' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                const char *ext, const char *data, unsigned long sz)
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:1839:17: note: the first parameter in the range is 'ext'
                                const char *ext, const char *data, unsigned long sz)
                                            ^~~
/datasets/git/read-cache.c:1839:34: note: the last parameter in the range is 'data'
                                const char *ext, const char *data, unsigned long sz)
                                                             ^~~~
/datasets/git/read-cache.c:1839:54: warning: parameter name 'sz' is too short, expected at least 3 characters [readability-identifier-length]
                                const char *ext, const char *data, unsigned long sz)
                                                                                 ^
/datasets/git/read-cache.c:1841:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        switch (CACHE_EXT(ext)) {
                ^
/datasets/git/read-cache.c:46:24: note: expanded from macro 'CACHE_EXT'
#define CACHE_EXT(s) ( (s[0]<<24)|(s[1]<<16)|(s[2]<<8)|(s[3]) )
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:1841:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        switch (CACHE_EXT(ext)) {
                          ^
/datasets/git/read-cache.c:46:25: note: expanded from macro 'CACHE_EXT'
#define CACHE_EXT(s) ( (s[0]<<24)|(s[1]<<16)|(s[2]<<8)|(s[3]) )
                        ^~~~
/datasets/git/read-cache.c:1849:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (read_link_extension(istate, data, sz))
                                                          ^
                                                           {
/datasets/git/read-cache.c:1867:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*ext < 'A' || 'Z' < *ext)
                                             ^
                                              {
/datasets/git/read-cache.c:1893:22: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
        struct cache_entry *ce;
                            ^
                               = NULL
/datasets/git/read-cache.c:1893:22: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/read-cache.c:1894:9: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        size_t len;
               ^
                   = 0
/datasets/git/read-cache.c:1895:14: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
        const char *name;
                    ^
                         = NULL
/datasets/git/read-cache.c:1898:15: warning: variable 'flags' is not initialized [cppcoreguidelines-init-variables]
        unsigned int flags;
                     ^
                           = 0
/datasets/git/read-cache.c:1911:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        len = flags & CE_NAMEMASK;
              ^
/datasets/git/read-cache.c:1913:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & CE_EXTENDED) {
            ^
/datasets/git/read-cache.c:1914:7: warning: variable 'extended_flags' is not initialized [cppcoreguidelines-init-variables]
                int extended_flags;
                    ^
                                   = 0
/datasets/git/read-cache.c:1915:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                extended_flags = get_be16(flagsp + sizeof(uint16_t)) << 16;
                                 ^                                      ~~
/datasets/git/read-cache.c:1915:59: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                extended_flags = get_be16(flagsp + sizeof(uint16_t)) << 16;
                                                                        ^
/datasets/git/read-cache.c:1917:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (extended_flags & ~CE_EXTENDED_FLAGS)
                    ^~~~~~~~~~~~~~
/datasets/git/read-cache.c:1917:24: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                if (extended_flags & ~CE_EXTENDED_FLAGS)
                                     ^
/datasets/git/read-cache.c:1917:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (extended_flags & ~CE_EXTENDED_FLAGS)
                                      ^
/datasets/git/./refs/../cache.h:194:28: note: expanded from macro 'CE_EXTENDED_FLAGS'
#define CE_EXTENDED_FLAGS (CE_INTENT_TO_ADD | CE_SKIP_WORKTREE)
                           ^~~~~~~~~~~~~~~~
/datasets/git/./refs/../cache.h:189:30: note: expanded from macro 'CE_INTENT_TO_ADD'
#define CE_INTENT_TO_ADD     (1 << 29)
                             ^~~~~~~~~
/datasets/git/read-cache.c:1917:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (extended_flags & ~CE_EXTENDED_FLAGS)
                                                        ^
                                                         {
/datasets/git/read-cache.c:1919:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags |= extended_flags;
                ^        ~~~~~~~~~~~~~~
/datasets/git/read-cache.c:1920:10: warning: redundant cast to the same type [google-readability-casting]
                name = (const char *)(flagsp + 2 * sizeof(uint16_t));
                       ^~~~~~~~~~~~~~
/datasets/git/read-cache.c:1922:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/read-cache.c:1923:10: warning: redundant cast to the same type [google-readability-casting]
                name = (const char *)(flagsp + sizeof(uint16_t));
                       ^~~~~~~~~~~~~~
/datasets/git/read-cache.c:1926:24: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
                const unsigned char *cp = (const unsigned char *)name;
                                     ^
/datasets/git/read-cache.c:1927:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                size_t strip_len, previous_len;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:1927:10: warning: variable 'strip_len' is not initialized [cppcoreguidelines-init-variables]
                size_t strip_len, previous_len;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:1927:21: warning: variable 'previous_len' is not initialized [cppcoreguidelines-init-variables]
                size_t strip_len, previous_len;
                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:1933:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (previous_len < strip_len)
                                                     ^
                                                      {
/datasets/git/read-cache.c:1943:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (expand_name_field)
                                      ^
                                       {
/datasets/git/read-cache.c:1971:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ce->ce_flags = flags & ~CE_NAMEMASK;
                       ^       ~~~~~~~~~~~~
/datasets/git/read-cache.c:1971:25: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
        ce->ce_flags = flags & ~CE_NAMEMASK;
                               ^
/datasets/git/read-cache.c:1977:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (copy_len)
                             ^
                              {
/datasets/git/read-cache.c:1978:4: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memcpy(ce->name, previous_ce->name, copy_len);
                        ^~~~~~
/datasets/git/read-cache.c:1978:4: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                        memcpy(ce->name, previous_ce->name, copy_len);
                        ^~~~~~
/datasets/git/read-cache.c:1979:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(ce->name + copy_len, name, len + 1 - copy_len);
                ^~~~~~
/datasets/git/read-cache.c:1979:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(ce->name + copy_len, name, len + 1 - copy_len);
                ^~~~~~
/datasets/git/read-cache.c:1982:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(ce->name, name, len + 1);
                ^~~~~~
/datasets/git/read-cache.c:1982:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(ce->name, name, len + 1);
                ^~~~~~
/datasets/git/read-cache.c:1983:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                *ent_size = ondisk_ce_size(ce);
                            ^
/datasets/git/read-cache.c:1807:29: note: expanded from macro 'ondisk_ce_size'
#define ondisk_ce_size(ce) (ondisk_cache_entry_size(ondisk_data_size((ce)->ce_flags, ce_namelen(ce))))
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:1803:38: note: expanded from macro 'ondisk_cache_entry_size'
#define ondisk_cache_entry_size(len) align_flex_name(ondisk_cache_entry,len)
                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:1802:38: note: expanded from macro 'align_flex_name'
#define align_flex_name(STRUCT,len) ((offsetof(struct STRUCT,data) + (len) + 8) & ~7)
                                     ^                                            ~~
/datasets/git/read-cache.c:1983:15: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                *ent_size = ondisk_ce_size(ce);
                            ^
/datasets/git/read-cache.c:1807:29: note: expanded from macro 'ondisk_ce_size'
#define ondisk_ce_size(ce) (ondisk_cache_entry_size(ondisk_data_size((ce)->ce_flags, ce_namelen(ce))))
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:1803:38: note: expanded from macro 'ondisk_cache_entry_size'
#define ondisk_cache_entry_size(len) align_flex_name(ondisk_cache_entry,len)
                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:1802:83: note: expanded from macro 'align_flex_name'
#define align_flex_name(STRUCT,len) ((offsetof(struct STRUCT,data) + (len) + 8) & ~7)
                                                                                  ^~
/datasets/git/read-cache.c:1990:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i;
                     ^
                       = 0
/datasets/git/read-cache.c:1990:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/read-cache.c:1992:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!verify_ce_order)
                             ^
                              {
/datasets/git/read-cache.c:1995:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 1; i < istate->cache_nr; i++) {
        ^
/datasets/git/read-cache.c:1995:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'cache_nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 1; i < istate->cache_nr; i++) {
                    ^
/datasets/git/read-cache.c:1996:23: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                struct cache_entry *ce = istate->cache[i - 1];
                                    ^
/datasets/git/read-cache.c:2000:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (0 < name_compare)
                                     ^
                                      {
/datasets/git/read-cache.c:2003:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!ce_stage(ce))
                             ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/read-cache.c:2003:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!ce_stage(ce))
                                          ^
                                           {
/datasets/git/read-cache.c:2006:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (ce_stage(ce) > ce_stage(next_ce))
                            ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/read-cache.c:2006:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (ce_stage(ce) > ce_stage(next_ce))
                                           ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/read-cache.c:2006:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ce_stage(ce) > ce_stage(next_ce))
                                                             ^
                                                              {
/datasets/git/read-cache.c:2015:21: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        struct repository *r = the_repository;
                           ^
/datasets/git/read-cache.c:2073:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        per_entry += align_padding_size(per_entry, 0);
                     ^
/datasets/git/read-cache.c:1801:40: note: expanded from macro 'align_padding_size'
#define align_padding_size(size, len) ((size + (len) + 8) & ~7) - (size + len)
                                       ^~~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:2073:15: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
        per_entry += align_padding_size(per_entry, 0);
                     ^
/datasets/git/read-cache.c:1801:61: note: expanded from macro 'align_padding_size'
#define align_padding_size(size, len) ((size + (len) + 8) & ~7) - (size + len)
                                                            ^~
/datasets/git/read-cache.c:2077:8: warning: accessing fields in struct 'index_entry_offset' is inefficient due to poor alignment; currently aligned to 4 bytes, but recommended alignment is 8 bytes [altera-struct-pack-align]
struct index_entry_offset
       ^
/datasets/git/read-cache.c:2077:8: note: use "__attribute__((aligned(8)))" to align struct 'index_entry_offset' to 8 bytes
/datasets/git/read-cache.c:2090:49: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static void write_ieot_extension(struct strbuf *sb, struct index_entry_offset_table *ieot);
                                                ^
/datasets/git/read-cache.c:2093:49: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static void write_eoie_extension(struct strbuf *sb, git_hash_ctx *eoie_context, size_t offset);
                                                ^
/datasets/git/read-cache.c:2095:8: warning: accessing fields in struct 'load_index_extensions' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct load_index_extensions
       ^
/datasets/git/read-cache.c:2095:8: note: use "__attribute__((aligned(64)))" to align struct 'load_index_extensions' to 64 bytes
/datasets/git/read-cache.c:2107:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        unsigned long src_offset = p->src_offset;
        ^
/datasets/git/read-cache.c:2106:32: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        struct load_index_extensions *p = _data;
                                      ^
/datasets/git/read-cache.c:2109:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (src_offset <= p->mmap_size - the_hash_algo->rawsz - 8) {
        ^
/datasets/git/read-cache.c:2109:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'src_offset' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (src_offset <= p->mmap_size - the_hash_algo->rawsz - 8) {
               ^
/datasets/git/read-cache.c:2109:61: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        while (src_offset <= p->mmap_size - the_hash_algo->rawsz - 8) {
                                                                   ^
/datasets/git/read-cache.c:2119:30: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                         p->mmap + src_offset + 8,
                                                                ^
/datasets/git/read-cache.c:2124:17: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                src_offset += 8;
                              ^
/datasets/git/read-cache.c:2136:50: warning: parameter name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
                        struct mem_pool *ce_mem_pool, int offset, int nr, const char *mmap,
                                                                      ^
/datasets/git/read-cache.c:2139:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int i;
        ^
/datasets/git/read-cache.c:2139:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/read-cache.c:2139:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/read-cache.c:2142:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = offset; i < offset + nr; i++) {
        ^
/datasets/git/read-cache.c:2142:19: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = offset; i < offset + nr; i++) {
                         ^
/datasets/git/read-cache.c:2143:23: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
                struct cache_entry *ce;
                                    ^
                                       = NULL
/datasets/git/read-cache.c:2143:23: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/read-cache.c:2144:17: warning: variable 'consumed' is not initialized [cppcoreguidelines-init-variables]
                unsigned long consumed;
                              ^
                                       = 0
/datasets/git/read-cache.c:2158:22: warning: 2 adjacent parameters of 'load_all_cache_entries' of similar type are easily swapped by mistake [bugprone-easily-swappable-parameters]
                        const char *mmap, size_t mmap_size, unsigned long src_offset)
                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:2158:29: note: the first parameter in the range is 'mmap_size'
                        const char *mmap, size_t mmap_size, unsigned long src_offset)
                                                 ^~~~~~~~~
/datasets/git/read-cache.c:2158:54: note: the last parameter in the range is 'src_offset'
                        const char *mmap, size_t mmap_size, unsigned long src_offset)
                                                                          ^~~~~~~~~~
/datasets/git/read-cache.c:2158:22: note: after resolving type aliases, 'size_t' and 'unsigned long' are the same
                        const char *mmap, size_t mmap_size, unsigned long src_offset)
                                          ^
/datasets/git/read-cache.c:2160:16: warning: variable 'consumed' is not initialized [cppcoreguidelines-init-variables]
        unsigned long consumed;
                      ^
                               = 0
/datasets/git/read-cache.c:2172:9: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                        0, istate->cache_nr, mmap, src_offset, NULL);
                                           ^
/datasets/git/read-cache.c:2183:1: warning: replace macro with enum [modernize-macro-to-enum]
#define THREAD_COST             (10000)
^~~~~~~~
                    =
/datasets/git/read-cache.c:2183:9: warning: macro 'THREAD_COST' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define THREAD_COST             (10000)
        ^
/datasets/git/read-cache.c:2185:8: warning: accessing fields in struct 'load_cache_entries_thread_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct load_cache_entries_thread_data
       ^
/datasets/git/read-cache.c:2185:8: note: use "__attribute__((aligned(64)))" to align struct 'load_cache_entries_thread_data' to 64 bytes
/datasets/git/read-cache.c:2205:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int i;
        ^
/datasets/git/read-cache.c:2204:41: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        struct load_cache_entries_thread_data *p = _data;
                                               ^
/datasets/git/read-cache.c:2205:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/read-cache.c:2205:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/read-cache.c:2208:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = p->ieot_start; i < p->ieot_start + p->ieot_blocks; i++) {
        ^
/datasets/git/read-cache.c:2208:26: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = p->ieot_start; i < p->ieot_start + p->ieot_blocks; i++) {
                                ^
/datasets/git/read-cache.c:2216:96: warning: 2 adjacent parameters of 'load_cache_entries_threaded' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static unsigned long load_cache_entries_threaded(struct index_state *istate, const char *mmap, size_t mmap_size,
                                                                                               ^~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:2216:103: note: the first parameter in the range is 'mmap_size'
static unsigned long load_cache_entries_threaded(struct index_state *istate, const char *mmap, size_t mmap_size,
                                                                                                      ^~~~~~~~~
/datasets/git/read-cache.c:2217:12: note: the last parameter in the range is 'nr_threads'
                                                 int nr_threads, struct index_entry_offset_table *ieot)
                                                     ^~~~~~~~~~
/datasets/git/read-cache.c:2216:96: note: 
static unsigned long load_cache_entries_threaded(struct index_state *istate, const char *mmap, size_t mmap_size,
                                                                                               ^
/datasets/git/read-cache.c:2217:8: note: 'size_t' and 'int' may be implicitly converted: 'size_t' (as 'unsigned long') -> 'int', 'int' -> 'size_t' (as 'unsigned long')
                                                 int nr_threads, struct index_entry_offset_table *ieot)
                                                 ^
/datasets/git/read-cache.c:2219:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, offset, ieot_blocks, ieot_start, err;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:2219:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, offset, ieot_blocks, ieot_start, err;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:2219:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/read-cache.c:2219:9: warning: variable 'offset' is not initialized [cppcoreguidelines-init-variables]
        int i, offset, ieot_blocks, ieot_start, err;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:2219:17: warning: variable 'ieot_blocks' is not initialized [cppcoreguidelines-init-variables]
        int i, offset, ieot_blocks, ieot_start, err;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:2219:30: warning: variable 'ieot_start' is not initialized [cppcoreguidelines-init-variables]
        int i, offset, ieot_blocks, ieot_start, err;
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:2219:42: warning: variable 'err' is not initialized [cppcoreguidelines-init-variables]
        int i, offset, ieot_blocks, ieot_start, err;
                                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:2220:41: warning: variable 'data' is not initialized [cppcoreguidelines-init-variables]
        struct load_cache_entries_thread_data *data;
                                               ^
                                                    = NULL
/datasets/git/read-cache.c:2224:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (istate->name_hash_initialized)
                                          ^
                                           {
/datasets/git/read-cache.c:2231:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (nr_threads > ieot->nr)
                                  ^
                                   {
/datasets/git/read-cache.c:2237:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'nr_threads' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < nr_threads; i++) {
                    ^
/datasets/git/read-cache.c:2217:8: note: inferred assignment of ID-dependent value from ID-dependent 
                                                 int nr_threads, struct index_entry_offset_table *ieot)
                                                 ^
/datasets/git/read-cache.c:2238:42: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct load_cache_entries_thread_data *p = &data[i];
                                                       ^
/datasets/git/read-cache.c:2239:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int nr, j;
                ^~~~~~~~~~
/datasets/git/read-cache.c:2239:7: warning: variable 'nr' is not initialized [cppcoreguidelines-init-variables]
                int nr, j;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:2239:7: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/read-cache.c:2239:11: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
                int nr, j;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:2239:11: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/read-cache.c:2241:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ieot_start + ieot_blocks > ieot->nr)
                                                        ^
                                                         {
/datasets/git/read-cache.c:2253:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (j = p->ieot_start; j < p->ieot_start + p->ieot_blocks; j++)
                ^
/datasets/git/read-cache.c:2253:27: warning: backward branch (for loop) is ID-dependent due to variable reference to 'j' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (j = p->ieot_start; j < p->ieot_start + p->ieot_blocks; j++)
                                        ^
/datasets/git/read-cache.c:2253:67: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (j = p->ieot_start; j < p->ieot_start + p->ieot_blocks; j++)
                                                                                ^
                                                                                 {
/datasets/git/read-cache.c:2265:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err)
                        ^
                         {
/datasets/git/read-cache.c:2266:61: warning: function is not thread safe [concurrency-mt-unsafe]
                        die(_("unable to create load_cache_entries thread: %s"), strerror(err));
                                                                                 ^
/datasets/git/read-cache.c:2269:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (j = 0; j < ieot_blocks; j++)
                ^
/datasets/git/read-cache.c:2269:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'j' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (j = 0; j < ieot_blocks; j++)
                            ^
/datasets/git/read-cache.c:2269:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (j = 0; j < ieot_blocks; j++)
                                                 ^
                                                  {
/datasets/git/read-cache.c:2274:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr_threads; i++) {
        ^
/datasets/git/read-cache.c:2274:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'nr_threads' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < nr_threads; i++) {
                    ^
/datasets/git/read-cache.c:2275:42: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct load_cache_entries_thread_data *p = &data[i];
                                                       ^
/datasets/git/read-cache.c:2278:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err)
                        ^
                         {
/datasets/git/read-cache.c:2279:59: warning: function is not thread safe [concurrency-mt-unsafe]
                        die(_("unable to join load_cache_entries thread: %s"), strerror(err));
                                                                               ^
/datasets/git/read-cache.c:2298:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    is_sparse_index_allowed(istate, 0))
                                                       ^
                                                        {
/datasets/git/read-cache.c:2304:5: warning: function 'do_read_index' has cognitive complexity of 34 (threshold 25) [readability-function-cognitive-complexity]
int do_read_index(struct index_state *istate, const char *path, int must_exist)
    ^
/datasets/git/read-cache.c:2317:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (istate->initialized)
        ^
/datasets/git/read-cache.c:2323:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (fd < 0) {
        ^
/datasets/git/read-cache.c:2324:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!must_exist && errno == ENOENT) {
                ^
/datasets/git/read-cache.c:2324:19: note: +1
                if (!must_exist && errno == ENOENT) {
                                ^
/datasets/git/read-cache.c:2325:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!istate->repo)
                        ^
/datasets/git/read-cache.c:2333:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (fstat(fd, &st))
        ^
/datasets/git/read-cache.c:2337:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mmap_size < sizeof(struct cache_header) + the_hash_algo->rawsz)
        ^
/datasets/git/read-cache.c:2341:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mmap == MAP_FAILED)
        ^
/datasets/git/read-cache.c:2347:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (verify_hdr(hdr, mmap_size) < 0)
        ^
/datasets/git/read-cache.c:2363:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (git_config_get_index_threads(&nr_threads))
        ^
/datasets/git/read-cache.c:2367:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!nr_threads) {
        ^
/datasets/git/read-cache.c:2370:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (nr_threads > cpus)
                ^
/datasets/git/read-cache.c:2374:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!HAVE_THREADS)
        ^
/datasets/git/read-cache.c:2377:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (nr_threads > 1) {
        ^
/datasets/git/read-cache.c:2379:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (extension_offset) {
                ^
/datasets/git/read-cache.c:2384:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (err)
                        ^
/datasets/git/read-cache.c:2395:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (extension_offset && nr_threads > 1)
        ^
/datasets/git/read-cache.c:2395:23: note: +1
        if (extension_offset && nr_threads > 1)
                             ^
/datasets/git/read-cache.c:2398:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ieot) {
        ^
/datasets/git/read-cache.c:2401:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/read-cache.c:2409:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (extension_offset) {
        ^
/datasets/git/read-cache.c:2411:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ret)
                ^
/datasets/git/read-cache.c:2413:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/read-cache.c:2428:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!istate->repo)
        ^
/datasets/git/read-cache.c:2437:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (istate->repo->settings.command_requires_full_index)
        ^
/datasets/git/read-cache.c:2439:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/read-cache.c:2306:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/read-cache.c:2306:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/read-cache.c:2307:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/read-cache.c:2308:16: warning: variable 'src_offset' is not initialized [cppcoreguidelines-init-variables]
        unsigned long src_offset;
                      ^
                                 = 0
/datasets/git/read-cache.c:2309:29: warning: variable 'hdr' is not initialized [cppcoreguidelines-init-variables]
        const struct cache_header *hdr;
                                   ^
                                       = NULL
/datasets/git/read-cache.c:2310:14: warning: variable 'mmap' is not initialized [cppcoreguidelines-init-variables]
        const char *mmap;
                    ^
                         = NULL
/datasets/git/read-cache.c:2311:9: warning: variable 'mmap_size' is not initialized [cppcoreguidelines-init-variables]
        size_t mmap_size;
               ^
                         = 0
/datasets/git/read-cache.c:2312:31: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        struct load_index_extensions p;
                                     ^
/datasets/git/read-cache.c:2314:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int nr_threads, cpus;
        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:2314:6: warning: variable 'nr_threads' is not initialized [cppcoreguidelines-init-variables]
        int nr_threads, cpus;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:2314:18: warning: variable 'cpus' is not initialized [cppcoreguidelines-init-variables]
        int nr_threads, cpus;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:2317:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (istate->initialized)
                                ^
                                 {
/datasets/git/read-cache.c:2318:10: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                return istate->cache_nr;
                       ^
/datasets/git/read-cache.c:2322:26: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
        fd = open(path, O_RDONLY);
                                ^
                                 | O_CLOEXEC
/datasets/git/read-cache.c:2325:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!istate->repo)
                                          ^
                                           {
/datasets/git/read-cache.c:2333:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fstat(fd, &st))
                           ^
                            {
/datasets/git/read-cache.c:2337:69: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mmap_size < sizeof(struct cache_header) + the_hash_algo->rawsz)
                                                                           ^
                                                                            {
/datasets/git/read-cache.c:2341:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mmap == MAP_FAILED)
                               ^
                                {
/datasets/git/read-cache.c:2347:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (verify_hdr(hdr, mmap_size) < 0)
                                           ^
                                            {
/datasets/git/read-cache.c:2354:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        CALLOC_ARRAY(istate->cache, istate->cache_alloc);
        ^
/datasets/git/./git-compat-util.h:1091:55: note: expanded from macro 'CALLOC_ARRAY'
#define CALLOC_ARRAY(x, alloc) (x) = xcalloc((alloc), sizeof(*(x)))
                                                      ^
/datasets/git/read-cache.c:2363:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (git_config_get_index_threads(&nr_threads))
                                                      ^
                                                       {
/datasets/git/read-cache.c:2368:16: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                nr_threads = istate->cache_nr / THREAD_COST;
                             ^
/datasets/git/read-cache.c:2370:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (nr_threads > cpus)
                                      ^
                                       {
/datasets/git/read-cache.c:2374:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!HAVE_THREADS)
                          ^
                           {
/datasets/git/read-cache.c:2380:8: warning: variable 'err' is not initialized [cppcoreguidelines-init-variables]
                        int err;
                            ^
                                = 0
/datasets/git/read-cache.c:2384:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (err)
                                ^
                                 {
/datasets/git/read-cache.c:2385:65: warning: function is not thread safe [concurrency-mt-unsafe]
                                die(_("unable to create load_index_extensions thread: %s"), strerror(err));
                                                                                            ^
/datasets/git/read-cache.c:2395:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (extension_offset && nr_threads > 1)
                                               ^
                                                {
/datasets/git/read-cache.c:2411:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret)
                        ^
                         {
/datasets/git/read-cache.c:2412:62: warning: function is not thread safe [concurrency-mt-unsafe]
                        die(_("unable to join load_index_extensions thread: %s"), strerror(ret));
                                                                                  ^
/datasets/git/read-cache.c:2428:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!istate->repo)
                          ^
                           {
/datasets/git/read-cache.c:2437:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (istate->repo->settings.command_requires_full_index)
                                                               ^
                                                                {
/datasets/git/read-cache.c:2439:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/read-cache.c:2442:9: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return istate->cache_nr;
               ^
/datasets/git/read-cache.c:2457:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!check_and_freshen_file(shared_index, 1) && warn)
                                                             ^
                                                              {
/datasets/git/read-cache.c:2461:49: warning: 2 adjacent parameters of 'read_index_from' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
int read_index_from(struct index_state *istate, const char *path,
                                                ^~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:2461:61: note: the first parameter in the range is 'path'
int read_index_from(struct index_state *istate, const char *path,
                                                            ^~~~
/datasets/git/read-cache.c:2462:19: note: the last parameter in the range is 'gitdir'
                    const char *gitdir)
                                ^~~~~~
/datasets/git/read-cache.c:2464:22: warning: variable 'split_index' is not initialized [cppcoreguidelines-init-variables]
        struct split_index *split_index;
                            ^
                                        = NULL
/datasets/git/read-cache.c:2465:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/read-cache.c:2466:8: warning: variable 'base_oid_hex' is not initialized [cppcoreguidelines-init-variables]
        char *base_oid_hex;
              ^
                           = NULL
/datasets/git/read-cache.c:2467:8: warning: variable 'base_path' is not initialized [cppcoreguidelines-init-variables]
        char *base_path;
              ^
                        = NULL
/datasets/git/read-cache.c:2470:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (istate->initialized)
                                ^
                                 {
/datasets/git/read-cache.c:2471:10: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                return istate->cache_nr;
                       ^
/datasets/git/read-cache.c:2481:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_performance_leave("read cache %s", path);
        ^
/datasets/git/./trace.h:251:2: note: expanded from macro 'trace_performance_leave'
        do {                                                                \
        ^
/datasets/git/read-cache.c:2492:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (split_index->base)
                              ^
                               {
/datasets/git/read-cache.c:2494:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/read-cache.c:2507:9: warning: function is not thread safe [concurrency-mt-unsafe]
                                           dirname(path_copy), base_oid_hex);
                                           ^
/datasets/git/read-cache.c:2516:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!oideq(&split_index->base_oid, &split_index->base->oid))
                                                                    ^
                                                                     {
/datasets/git/read-cache.c:2524:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_performance_leave("read cache %s", base_path);
        ^
/datasets/git/./trace.h:251:2: note: expanded from macro 'trace_performance_leave'
        do {                                                                \
        ^
/datasets/git/read-cache.c:2554:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(istate->fsmonitor_last_update);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/read-cache.c:2555:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(istate->cache);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/read-cache.c:2563:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FREE_AND_NULL(istate->ce_mem_pool);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/read-cache.c:2574:6: warning: function 'validate_cache_entries' is within a recursive call chain [misc-no-recursion]
void validate_cache_entries(const struct index_state *istate)
     ^
/datasets/git/read-cache.c:2574:6: note: example recursive call chain, starting from function 'validate_cache_entries'
/datasets/git/read-cache.c:2596:3: note: Frame #1: function 'validate_cache_entries' calls function 'validate_cache_entries' here:
                validate_cache_entries(istate->split_index->base);
                ^
/datasets/git/read-cache.c:2596:3: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/read-cache.c:2576:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/read-cache.c:2576:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/./refs/../cache.h:339:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        unsigned int cache_nr, cache_alloc, cache_changed;
        ^
/datasets/git/read-cache.c:2578:73: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!should_validate_cache_entries() ||!istate || !istate->initialized)
                                                                               ^
                                                                                {
/datasets/git/read-cache.c:2581:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < istate->cache_nr; i++) {
        ^
/datasets/git/read-cache.c:2581:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'cache_nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < istate->cache_nr; i++) {
                    ^
/datasets/git/read-cache.c:2595:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (istate->split_index)
                                ^
                                 {
/datasets/git/read-cache.c:2601:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/read-cache.c:2601:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/read-cache.c:2602:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < istate->cache_nr; i++) {
        ^
/datasets/git/read-cache.c:2602:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'cache_nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < istate->cache_nr; i++) {
                    ^
/datasets/git/read-cache.c:2603:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce_stage(istate->cache[i]))
                    ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/read-cache.c:2603:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ce_stage(istate->cache[i]))
                                               ^
                                                {
/datasets/git/read-cache.c:2611:22: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                           struct strbuf *sb)
                                          ^
/datasets/git/read-cache.c:2615:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/read-cache.c:2615:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/read-cache.c:2617:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (tree)
                 ^
                  {
/datasets/git/read-cache.c:2624:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!sb)
                        ^
                         {
/datasets/git/read-cache.c:2629:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; sb && i < diff_queued_diff.nr; i++) {
                ^
/datasets/git/read-cache.c:2630:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (i)
                              ^
                               {
/datasets/git/read-cache.c:2636:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else {
          ^~~~~~
/datasets/git/read-cache.c:2639:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; sb && i < istate->cache_nr; i++) {
                ^
/datasets/git/read-cache.c:2639:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'istate' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; sb && i < istate->cache_nr; i++) {
                            ^
/datasets/git/read-cache.c:2640:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (i)
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:2648:52: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
static int write_index_ext_header(struct hashfile *f,
                                                   ^
/datasets/git/read-cache.c:2651:20: warning: parameter name 'sz' is too short, expected at least 3 characters [readability-identifier-length]
                                  unsigned int sz)
                                               ^
/datasets/git/read-cache.c:2666:27: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                                         struct cache_entry *ce)
                                                             ^
/datasets/git/read-cache.c:2679:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/read-cache.c:2681:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (lstat(ce->name, &st) < 0)
                                     ^
                                      {
/datasets/git/read-cache.c:2683:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ce_match_stat_basic(ce, &st))
                                         ^
                                          {
/datasets/git/read-cache.c:2717:32: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                                       struct cache_entry *ce)
                                                           ^
/datasets/git/read-cache.c:2719:8: warning: variable 'flags' is not initialized [cppcoreguidelines-init-variables]
        short flags;
              ^
                    = 0
/datasets/git/read-cache.c:2735:10: warning: narrowing conversion from 'unsigned int' to signed type 'short' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        flags = ce->ce_flags & ~CE_NAMEMASK;
                ^
/datasets/git/read-cache.c:2735:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        flags = ce->ce_flags & ~CE_NAMEMASK;
                ^              ~~~~~~~~~~~~
/datasets/git/read-cache.c:2735:25: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
        flags = ce->ce_flags & ~CE_NAMEMASK;
                               ^
/datasets/git/read-cache.c:2736:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        flags |= (ce_namelen(ce) >= CE_NAMEMASK ? CE_NAMEMASK : ce_namelen(ce));
        ^~~~~
/datasets/git/read-cache.c:2736:11: warning: narrowing conversion from 'unsigned int' to signed type 'short' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        flags |= (ce_namelen(ce) >= CE_NAMEMASK ? CE_NAMEMASK : ce_namelen(ce));
                 ^
/datasets/git/read-cache.c:2738:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (ce->ce_flags & CE_EXTENDED) {
            ^
/datasets/git/read-cache.c:2739:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flagsp[1] = htons((ce->ce_flags & CE_EXTENDED_FLAGS) >> 16);
                                  ^
/usr/include/netinet/in.h:412:33: note: expanded from macro 'htons'
#   define htons(x)     __bswap_16 (x)
                                    ^
/datasets/git/read-cache.c:2739:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flagsp[1] = htons((ce->ce_flags & CE_EXTENDED_FLAGS) >> 16);
                                   ^
/usr/include/netinet/in.h:412:33: note: expanded from macro 'htons'
#   define htons(x)     __bswap_16 (x)
                                    ^
/datasets/git/read-cache.c:2739:37: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flagsp[1] = htons((ce->ce_flags & CE_EXTENDED_FLAGS) >> 16);
                                                  ^
/datasets/git/./refs/../cache.h:194:28: note: expanded from macro 'CE_EXTENDED_FLAGS'
#define CE_EXTENDED_FLAGS (CE_INTENT_TO_ADD | CE_SKIP_WORKTREE)
                           ^~~~~~~~~~~~~~~~
/datasets/git/./refs/../cache.h:189:30: note: expanded from macro 'CE_INTENT_TO_ADD'
#define CE_INTENT_TO_ADD     (1 << 29)
                             ^~~~~~~~~
/usr/include/netinet/in.h:412:33: note: expanded from macro 'htons'
#   define htons(x)     __bswap_16 (x)
                                    ^
/datasets/git/read-cache.c:2743:44: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
static int ce_write_entry(struct hashfile *f, struct cache_entry *ce,
                                           ^
/datasets/git/read-cache.c:2743:67: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static int ce_write_entry(struct hashfile *f, struct cache_entry *ce,
                                                                  ^
/datasets/git/read-cache.c:2746:6: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        int size;
            ^
                 = 0
/datasets/git/read-cache.c:2747:15: warning: variable 'saved_namelen' is not initialized [cppcoreguidelines-init-variables]
        unsigned int saved_namelen;
                     ^
                                   = 0
/datasets/git/read-cache.c:2749:31: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        static unsigned char padding[8] = { 0x00 };
                                     ^
/datasets/git/read-cache.c:2751:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (ce->ce_flags & CE_STRIP_NAME) {
            ^
/datasets/git/read-cache.c:2751:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (ce->ce_flags & CE_STRIP_NAME) {
                           ^
/datasets/git/./refs/../cache.h:184:31: note: expanded from macro 'CE_STRIP_NAME'
#define CE_STRIP_NAME        (1 << 28)
                              ^
/datasets/git/read-cache.c:2757:69: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        size = offsetof(struct ondisk_cache_entry,data) + ondisk_data_size(ce->ce_flags, 0);
                                                                           ^
/datasets/git/read-cache.c:1805:12: note: expanded from macro 'ondisk_data_size'
                                     ((flags & CE_EXTENDED) ? 2 : 1) * sizeof(uint16_t) + len)
                                       ^       ~~~~~~~~~~~
/datasets/git/read-cache.c:2764:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                hashwrite(f, padding, align_padding_size(size, len));
                                      ^
/datasets/git/read-cache.c:1801:40: note: expanded from macro 'align_padding_size'
#define align_padding_size(size, len) ((size + (len) + 8) & ~7) - (size + len)
                                       ^~~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:2764:25: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                hashwrite(f, padding, align_padding_size(size, len));
                                      ^
/datasets/git/read-cache.c:1801:61: note: expanded from macro 'align_padding_size'
#define align_padding_size(size, len) ((size + (len) + 8) & ~7) - (size + len)
                                                            ^~
/datasets/git/read-cache.c:2766:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int common, to_remove, prefix_size;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:2766:7: warning: variable 'common' is not initialized [cppcoreguidelines-init-variables]
                int common, to_remove, prefix_size;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:2766:15: warning: variable 'to_remove' is not initialized [cppcoreguidelines-init-variables]
                int common, to_remove, prefix_size;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:2766:26: warning: variable 'prefix_size' is not initialized [cppcoreguidelines-init-variables]
                int common, to_remove, prefix_size;
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:2767:30: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                unsigned char to_remove_vi[16];
                                           ^
/datasets/git/read-cache.c:2768:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (common = 0;
                ^
/datasets/git/read-cache.c:2769:8: warning: backward branch (for loop) is ID-dependent due to member reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
                     (ce->name[common] &&
                     ^
/datasets/git/read-cache.c:2772:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                     common++)
                              ^
                               {
/datasets/git/read-cache.c:2774:15: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                to_remove = previous_name->len - common;
                            ^
/datasets/git/read-cache.c:2788:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ce->ce_flags &= ~CE_STRIP_NAME;
                ^               ~~~~~~~~~~~~~~
/datasets/git/read-cache.c:2788:19: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                ce->ce_flags &= ~CE_STRIP_NAME;
                                ^
/datasets/git/read-cache.c:2788:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ce->ce_flags &= ~CE_STRIP_NAME;
                                 ^
/datasets/git/./refs/../cache.h:184:31: note: expanded from macro 'CE_STRIP_NAME'
#define CE_STRIP_NAME        (1 << 28)
                              ^
/datasets/git/read-cache.c:2800:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/read-cache.c:2800:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/read-cache.c:2801:10: warning: variable 'n' is not initialized [cppcoreguidelines-init-variables]
        ssize_t n;
                ^
                  = 0
/datasets/git/read-cache.c:2801:10: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/read-cache.c:2802:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/read-cache.c:2805:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!istate->initialized)
                                 ^
                                  {
/datasets/git/read-cache.c:2808:26: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
        fd = open(path, O_RDONLY);
                                ^
                                 | O_CLOEXEC
/datasets/git/read-cache.c:2809:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fd < 0)
                   ^
                    {
/datasets/git/read-cache.c:2812:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fstat(fd, &st))
                           ^
                            {
/datasets/git/read-cache.c:2815:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (st.st_size < sizeof(struct cache_header) + the_hash_algo->rawsz)
                                                                            ^
                                                                             {
/datasets/git/read-cache.c:2818:52: warning: narrowing conversion from 'unsigned long' to signed type 'off_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        n = pread_in_full(fd, hash, the_hash_algo->rawsz, st.st_size - the_hash_algo->rawsz);
                                                          ^
/datasets/git/read-cache.c:2819:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (n != the_hash_algo->rawsz)
                                      ^
                                       {
/datasets/git/read-cache.c:2822:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!hasheq(istate->oid.hash, hash))
                                            ^
                                             {
/datasets/git/read-cache.c:2840:16: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int entries = istate->cache_nr;
                      ^
/datasets/git/read-cache.c:2841:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/read-cache.c:2841:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/read-cache.c:2843:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < entries; i++) {
        ^
/datasets/git/read-cache.c:2843:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'entries' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < entries; i++) {
                    ^
/datasets/git/read-cache.c:2844:23: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                struct cache_entry *ce = istate->cache[i];
                                    ^
/datasets/git/read-cache.c:2845:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_racy_timestamp(istate, ce))
                                                  ^
                                                   {
/datasets/git/read-cache.c:2856:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            repo_verify_index(repo))
                                    ^
                                     {
/datasets/git/read-cache.c:2857:45: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                write_locked_index(repo->index, lockfile, COMMIT_LOCK);
                                                          ^
/datasets/git/./refs/../cache.h:744:23: note: expanded from macro 'COMMIT_LOCK'
#define COMMIT_LOCK             (1 << 0)
                                 ^
/datasets/git/read-cache.c:2858:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/read-cache.c:2864:6: warning: variable 'val' is not initialized [cppcoreguidelines-init-variables]
        int val;
            ^
                = 0
/datasets/git/read-cache.c:2866:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!git_config_get_bool("index.recordendofindexentries", &val))
                                                                        ^
                                                                         {
/datasets/git/read-cache.c:2879:6: warning: variable 'val' is not initialized [cppcoreguidelines-init-variables]
        int val;
            ^
                = 0
/datasets/git/read-cache.c:2881:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!git_config_get_bool("index.recordoffsettable", &val))
                                                                  ^
                                                                   {
/datasets/git/read-cache.c:2899:12: warning: function 'do_write_index' has cognitive complexity of 95 (threshold 25) [readability-function-cognitive-complexity]
static int do_write_index(struct index_state *istate, struct tempfile *tempfile,
           ^
/datasets/git/read-cache.c:2921:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = removed = extended = 0; i < entries; i++) {
        ^
/datasets/git/read-cache.c:2922:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (cache[i]->ce_flags & CE_REMOVE)
                ^
/datasets/git/read-cache.c:2927:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (cache[i]->ce_flags & CE_EXTENDED_FLAGS) {
                ^
/datasets/git/read-cache.c:2933:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!istate->version)
        ^
/datasets/git/read-cache.c:2937:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (istate->version == 3 || istate->version == 2)
        ^
/datasets/git/read-cache.c:2937:27: note: +1
        if (istate->version == 3 || istate->version == 2)
                                 ^
/datasets/git/read-cache.c:2938:30: note: +2, including nesting penalty of 1, nesting level increased to 2
                istate->version = extended ? 3 : 2;
                                           ^
/datasets/git/read-cache.c:2948:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!HAVE_THREADS || git_config_get_index_threads(&nr_threads))
        ^
/datasets/git/read-cache.c:2948:20: note: +1
        if (!HAVE_THREADS || git_config_get_index_threads(&nr_threads))
                          ^
/datasets/git/read-cache.c:2951:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (nr_threads != 1 && record_ieot()) {
        ^
/datasets/git/read-cache.c:2951:22: note: +1
        if (nr_threads != 1 && record_ieot()) {
                            ^
/datasets/git/read-cache.c:2959:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!nr_threads) {
                ^
/datasets/git/read-cache.c:2962:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ieot_blocks > cpus - 1)
                        ^
/datasets/git/read-cache.c:2964:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/read-cache.c:2966:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ieot_blocks > istate->cache_nr)
                        ^
/datasets/git/read-cache.c:2974:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ieot_blocks > 1) {
                ^
/datasets/git/read-cache.c:2984:37: note: +1, including nesting penalty of 0, nesting level increased to 1
        previous_name = (hdr_version == 4) ? &previous_name_buf : NULL;
                                           ^
/datasets/git/read-cache.c:2986:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < entries; i++) {
        ^
/datasets/git/read-cache.c:2988:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ce->ce_flags & CE_REMOVE)
                ^
/datasets/git/read-cache.c:2990:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!ce_uptodate(ce) && is_racy_timestamp(istate, ce))
                ^
/datasets/git/read-cache.c:2990:24: note: +1
                if (!ce_uptodate(ce) && is_racy_timestamp(istate, ce))
                                     ^
/datasets/git/read-cache.c:2992:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (is_null_oid(&ce->oid)) {
                ^
/datasets/git/read-cache.c:2996:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (allow < 0)
                        ^
/datasets/git/read-cache.c:2998:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (allow)
                        ^
/datasets/git/read-cache.c:3000:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/read-cache.c:3005:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ieot && i && (i % ieot_entries == 0)) {
                ^
/datasets/git/read-cache.c:3005:17: note: +1
                if (ieot && i && (i % ieot_entries == 0)) {
                              ^
/datasets/git/read-cache.c:3014:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (previous_name)
                        ^
/datasets/git/read-cache.c:3020:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ce_write_entry(f, ce, previous_name, (struct ondisk_cache_entry *)&ondisk) < 0)
                ^
/datasets/git/read-cache.c:3023:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (err)
                ^
/datasets/git/read-cache.c:3027:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ieot && nr) {
        ^
/datasets/git/read-cache.c:3027:11: note: +1
        if (ieot && nr) {
                 ^
/datasets/git/read-cache.c:3034:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (err) {
        ^
/datasets/git/read-cache.c:3045:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (offset && record_eoie()) {
        ^
/datasets/git/read-cache.c:3045:13: note: +1
        if (offset && record_eoie()) {
                   ^
/datasets/git/read-cache.c:3057:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ieot) {
        ^
/datasets/git/read-cache.c:3065:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (err)
                ^
/datasets/git/read-cache.c:3069:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strip_extensions && istate->split_index &&
        ^
/datasets/git/read-cache.c:3069:47: note: +1
        if (!strip_extensions && istate->split_index &&
                                                     ^
/datasets/git/read-cache.c:3073:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (istate->sparse_index)
                ^
/datasets/git/read-cache.c:3076:47: note: +1
                err = write_link_extension(&sb, istate) < 0 ||
                                                            ^
/datasets/git/read-cache.c:3081:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (err)
                ^
/datasets/git/read-cache.c:3084:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strip_extensions && !drop_cache_tree && istate->cache_tree) {
        ^
/datasets/git/read-cache.c:3084:44: note: +1
        if (!strip_extensions && !drop_cache_tree && istate->cache_tree) {
                                                  ^
/datasets/git/read-cache.c:3091:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (err)
                ^
/datasets/git/read-cache.c:3094:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strip_extensions && istate->resolve_undo) {
        ^
/datasets/git/read-cache.c:3094:24: note: +1
        if (!strip_extensions && istate->resolve_undo) {
                              ^
/datasets/git/read-cache.c:3102:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (err)
                ^
/datasets/git/read-cache.c:3105:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strip_extensions && istate->untracked) {
        ^
/datasets/git/read-cache.c:3105:24: note: +1
        if (!strip_extensions && istate->untracked) {
                              ^
/datasets/git/read-cache.c:3113:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (err)
                ^
/datasets/git/read-cache.c:3116:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strip_extensions && istate->fsmonitor_last_update) {
        ^
/datasets/git/read-cache.c:3116:24: note: +1
        if (!strip_extensions && istate->fsmonitor_last_update) {
                              ^
/datasets/git/read-cache.c:3123:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (err)
                ^
/datasets/git/read-cache.c:3126:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (istate->sparse_index) {
        ^
/datasets/git/read-cache.c:3127:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (write_index_ext_header(f, eoie_c, CACHE_EXT_SPARSE_DIRECTORIES, 0) < 0)
                ^
/datasets/git/read-cache.c:3137:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (eoie_c) {
        ^
/datasets/git/read-cache.c:3144:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (err)
                ^
/datasets/git/read-cache.c:3149:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!alternate_index_output && (flags & COMMIT_LOCK))
        ^
/datasets/git/read-cache.c:3149:30: note: +1
        if (!alternate_index_output && (flags & COMMIT_LOCK))
                                    ^
/datasets/git/read-cache.c:3155:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (close_tempfile_gently(tempfile)) {
        ^
/datasets/git/read-cache.c:3159:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (stat(get_tempfile_path(tempfile), &st))
        ^
/datasets/git/read-cache.c:3163:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        trace_performance_since(start, "write index, changed mask = %x", istate->cache_changed);
        ^
/datasets/git/./trace.h:240:2: note: expanded from macro 'trace_performance_since'
        do {                                                                \
        ^
/datasets/git/read-cache.c:3163:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        trace_performance_since(start, "write index, changed mask = %x", istate->cache_changed);
        ^
/datasets/git/./trace.h:241:3: note: expanded from macro 'trace_performance_since'
                if (trace_pass_fl(&trace_perf_key))                         \
                ^
/datasets/git/read-cache.c:2900:6: warning: 2 adjacent parameters of 'do_write_index' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                          int strip_extensions, unsigned flags)
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:2900:10: note: the first parameter in the range is 'strip_extensions'
                          int strip_extensions, unsigned flags)
                              ^~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:2900:37: note: the last parameter in the range is 'flags'
                          int strip_extensions, unsigned flags)
                                                         ^~~~~
/datasets/git/read-cache.c:2900:28: note: 'int' and 'unsigned int' may be implicitly converted
                          int strip_extensions, unsigned flags)
                                                ^
/datasets/git/read-cache.c:2903:19: warning: variable 'f' is not initialized [cppcoreguidelines-init-variables]
        struct hashfile *f;
                         ^
                           = NULL
/datasets/git/read-cache.c:2903:19: warning: variable name 'f' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/read-cache.c:2906:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, err = 0, removed, extended, hdr_version;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:2906:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, err = 0, removed, extended, hdr_version;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:2906:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/read-cache.c:2906:18: warning: variable 'removed' is not initialized [cppcoreguidelines-init-variables]
        int i, err = 0, removed, extended, hdr_version;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:2906:27: warning: variable 'extended' is not initialized [cppcoreguidelines-init-variables]
        int i, err = 0, removed, extended, hdr_version;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:2906:37: warning: variable 'hdr_version' is not initialized [cppcoreguidelines-init-variables]
        int i, err = 0, removed, extended, hdr_version;
                                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:2908:16: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int entries = istate->cache_nr;
                      ^
/datasets/git/read-cache.c:2909:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/read-cache.c:2911:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct strbuf previous_name_buf = STRBUF_INIT, *previous_name;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:2911:50: warning: variable 'previous_name' is not initialized [cppcoreguidelines-init-variables]
        struct strbuf previous_name_buf = STRBUF_INIT, *previous_name;
                                                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:2913:8: warning: variable 'offset' is not initialized [cppcoreguidelines-init-variables]
        off_t offset;
              ^
                     = 0
/datasets/git/read-cache.c:2914:6: warning: variable 'csum_fsync_flag' is not initialized [cppcoreguidelines-init-variables]
        int csum_fsync_flag;
            ^
                            = 0
/datasets/git/read-cache.c:2917:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int nr, nr_threads;
        ^~~~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:2906:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int i, err = 0, removed, extended, hdr_version;
        ^
/datasets/git/read-cache.c:2917:6: warning: variable 'nr' is not initialized [cppcoreguidelines-init-variables]
        int nr, nr_threads;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:2917:6: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/read-cache.c:2917:10: warning: variable 'nr_threads' is not initialized [cppcoreguidelines-init-variables]
        int nr, nr_threads;
                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:2921:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = removed = extended = 0; i < entries; i++) {
        ^
/datasets/git/read-cache.c:2921:35: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = removed = extended = 0; i < entries; i++) {
                                         ^
/datasets/git/read-cache.c:2922:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (cache[i]->ce_flags & CE_REMOVE)
                    ^
/datasets/git/read-cache.c:2922:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (cache[i]->ce_flags & CE_REMOVE)
                                         ^
/datasets/git/./refs/../cache.h:168:31: note: expanded from macro 'CE_REMOVE'
#define CE_REMOVE            (1 << 17)
                              ^
/datasets/git/read-cache.c:2922:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cache[i]->ce_flags & CE_REMOVE)
                                                   ^
                                                    {
/datasets/git/read-cache.c:2926:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                cache[i]->ce_flags &= ~CE_EXTENDED;
                ^                     ~~~~~~~~~~~~
/datasets/git/read-cache.c:2926:25: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                cache[i]->ce_flags &= ~CE_EXTENDED;
                                      ^
/datasets/git/read-cache.c:2927:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (cache[i]->ce_flags & CE_EXTENDED_FLAGS) {
                    ^
/datasets/git/read-cache.c:2927:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (cache[i]->ce_flags & CE_EXTENDED_FLAGS) {
                                         ^
/datasets/git/./refs/../cache.h:194:28: note: expanded from macro 'CE_EXTENDED_FLAGS'
#define CE_EXTENDED_FLAGS (CE_INTENT_TO_ADD | CE_SKIP_WORKTREE)
                           ^~~~~~~~~~~~~~~~
/datasets/git/./refs/../cache.h:189:30: note: expanded from macro 'CE_INTENT_TO_ADD'
#define CE_INTENT_TO_ADD     (1 << 29)
                             ^~~~~~~~~
/datasets/git/read-cache.c:2929:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        cache[i]->ce_flags |= CE_EXTENDED;
                        ^
/datasets/git/read-cache.c:2933:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!istate->version)
                             ^
                              {
/datasets/git/read-cache.c:2937:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (istate->version == 3 || istate->version == 2)
                                                         ^
                                                          {
/datasets/git/read-cache.c:2940:16: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        hdr_version = istate->version;
                      ^
/datasets/git/read-cache.c:2948:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!HAVE_THREADS || git_config_get_index_threads(&nr_threads))
                                                                       ^
                                                                        {
/datasets/git/read-cache.c:2952:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int ieot_blocks, cpus;
                ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:2952:7: warning: variable 'ieot_blocks' is not initialized [cppcoreguidelines-init-variables]
                int ieot_blocks, cpus;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:2952:20: warning: variable 'cpus' is not initialized [cppcoreguidelines-init-variables]
                int ieot_blocks, cpus;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:2960:18: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        ieot_blocks = istate->cache_nr / THREAD_COST;
                                      ^
/datasets/git/read-cache.c:2962:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ieot_blocks > cpus - 1)
                                                   ^
                                                    {
/datasets/git/read-cache.c:2966:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ieot_blocks > istate->cache_nr)
                                                           ^
                                                            {
/datasets/git/read-cache.c:2967:19: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                ieot_blocks = istate->cache_nr;
                                              ^
/datasets/git/read-cache.c:2986:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < entries; i++) {
        ^
/datasets/git/read-cache.c:2986:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < entries; i++) {
                    ^
/datasets/git/read-cache.c:2987:23: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                struct cache_entry *ce = cache[i];
                                    ^
/datasets/git/read-cache.c:2988:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce->ce_flags & CE_REMOVE)
                    ^
/datasets/git/read-cache.c:2988:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce->ce_flags & CE_REMOVE)
                                   ^
/datasets/git/./refs/../cache.h:168:31: note: expanded from macro 'CE_REMOVE'
#define CE_REMOVE            (1 << 17)
                              ^
/datasets/git/read-cache.c:2988:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ce->ce_flags & CE_REMOVE)
                                             ^
                                              {
/datasets/git/read-cache.c:2990:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!ce_uptodate(ce) && is_racy_timestamp(istate, ce))
                     ^
/datasets/git/./refs/../cache.h:243:26: note: expanded from macro 'ce_uptodate'
#define ce_uptodate(ce) ((ce)->ce_flags & CE_UPTODATE)
                         ^                ~~~~~~~~~~~
/datasets/git/read-cache.c:2990:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ce_uptodate(ce) && is_racy_timestamp(istate, ce))
                                                                      ^
                                                                       {
/datasets/git/read-cache.c:2996:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (allow < 0)
                                      ^
                                       {
/datasets/git/read-cache.c:2998:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (allow)
                                  ^
                                   {
/datasets/git/read-cache.c:3000:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/read-cache.c:3007:37: warning: narrowing conversion from 'off_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        ieot->entries[ieot->nr].offset = offset;
                                                         ^
/datasets/git/read-cache.c:3014:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (previous_name)
                                          ^
                                           {
/datasets/git/read-cache.c:3020:44: warning: redundant cast to the same type [google-readability-casting]
                if (ce_write_entry(f, ce, previous_name, (struct ondisk_cache_entry *)&ondisk) < 0)
                                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:3020:86: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ce_write_entry(f, ce, previous_name, (struct ondisk_cache_entry *)&ondisk) < 0)
                                                                                                   ^
                                                                                                    {
/datasets/git/read-cache.c:3023:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err)
                        ^
                         {
/datasets/git/read-cache.c:3029:36: warning: narrowing conversion from 'off_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                ieot->entries[ieot->nr].offset = offset;
                                                 ^
/datasets/git/read-cache.c:3058:17: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                struct strbuf sb = STRBUF_INIT;
                              ^
/datasets/git/read-cache.c:3065:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err)
                        ^
                         {
/datasets/git/read-cache.c:3071:17: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                struct strbuf sb = STRBUF_INIT;
                              ^
/datasets/git/read-cache.c:3073:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (istate->sparse_index)
                                         ^
                                          {
/datasets/git/read-cache.c:3081:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err)
                        ^
                         {
/datasets/git/read-cache.c:3085:17: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                struct strbuf sb = STRBUF_INIT;
                              ^
/datasets/git/read-cache.c:3091:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err)
                        ^
                         {
/datasets/git/read-cache.c:3095:17: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                struct strbuf sb = STRBUF_INIT;
                              ^
/datasets/git/read-cache.c:3102:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err)
                        ^
                         {
/datasets/git/read-cache.c:3106:17: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                struct strbuf sb = STRBUF_INIT;
                              ^
/datasets/git/read-cache.c:3113:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err)
                        ^
                         {
/datasets/git/read-cache.c:3117:17: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                struct strbuf sb = STRBUF_INIT;
                              ^
/datasets/git/read-cache.c:3123:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err)
                        ^
                         {
/datasets/git/read-cache.c:3127:78: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (write_index_ext_header(f, eoie_c, CACHE_EXT_SPARSE_DIRECTORIES, 0) < 0)
                                                                                           ^
                                                                                            {
/datasets/git/read-cache.c:3138:17: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                struct strbuf sb = STRBUF_INIT;
                              ^
/datasets/git/read-cache.c:3144:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err)
                        ^
                         {
/datasets/git/read-cache.c:3149:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!alternate_index_output && (flags & COMMIT_LOCK))
                                        ^
/datasets/git/read-cache.c:3149:42: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!alternate_index_output && (flags & COMMIT_LOCK))
                                                ^
/datasets/git/./refs/../cache.h:744:23: note: expanded from macro 'COMMIT_LOCK'
#define COMMIT_LOCK             (1 << 0)
                                 ^
/datasets/git/read-cache.c:3149:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!alternate_index_output && (flags & COMMIT_LOCK))
                                                             ^
                                                              {
/datasets/git/read-cache.c:3153:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                          CSUM_HASH_IN_STREAM | csum_fsync_flag);
                          ^
/datasets/git/./csum-file.h:37:29: note: expanded from macro 'CSUM_HASH_IN_STREAM'
#define CSUM_HASH_IN_STREAM     4
                                ^
/datasets/git/read-cache.c:3159:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (stat(get_tempfile_path(tempfile), &st))
                                                   ^
                                                    {
/datasets/git/read-cache.c:3163:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_performance_since(start, "write index, changed mask = %x", istate->cache_changed);
        ^
/datasets/git/./trace.h:240:2: note: expanded from macro 'trace_performance_since'
        do {                                                                \
        ^
/datasets/git/read-cache.c:3182:50: warning: parameter name 'lk' is too short, expected at least 3 characters [readability-identifier-length]
static int commit_locked_index(struct lock_file *lk)
                                                 ^
/datasets/git/read-cache.c:3184:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (alternate_index_output)
                                   ^
                                    {
/datasets/git/read-cache.c:3186:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else
        ^~~~
                        return commit_lock_file(lk)
/datasets/git/read-cache.c:3186:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:3193:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/read-cache.c:3213:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (was_full)
                     ^
                      {
/datasets/git/read-cache.c:3216:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/read-cache.c:3218:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & COMMIT_LOCK)
            ^
/datasets/git/read-cache.c:3218:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & COMMIT_LOCK)
                    ^
/datasets/git/./refs/../cache.h:744:23: note: expanded from macro 'COMMIT_LOCK'
#define COMMIT_LOCK             (1 << 0)
                                 ^
/datasets/git/read-cache.c:3218:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & COMMIT_LOCK)
                                ^
                                 {
/datasets/git/read-cache.c:3220:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/read-cache.c:3236:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/read-cache.c:3243:20: warning: variable 'shared_index_expire' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *shared_index_expire = "2.weeks.ago";
                   ^
/datasets/git/read-cache.c:3262:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/read-cache.c:3263:16: warning: variable 'expiration' is not initialized [cppcoreguidelines-init-variables]
        unsigned long expiration;
                      ^
                                 = 0
/datasets/git/read-cache.c:3267:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!expiration)
                        ^
                         {
/datasets/git/read-cache.c:3269:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (stat(shared_index_path, &st))
                                         ^
                                          {
/datasets/git/read-cache.c:3271:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (st.st_mtime > expiration)
                                     ^
                                      {
/datasets/git/read-cache.c:3279:17: warning: variable 'de' is not initialized [cppcoreguidelines-init-variables]
        struct dirent *de;
                       ^
                          = NULL
/datasets/git/read-cache.c:3279:17: warning: variable name 'de' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/read-cache.c:3282:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!dir)
                 ^
                  {
/datasets/git/read-cache.c:3285:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((de = readdir(dir)) != NULL) {
        ^
/datasets/git/read-cache.c:3285:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'de' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((de = readdir(dir)) != NULL) {
               ^
/datasets/git/read-cache.c:3285:15: warning: function is not thread safe [concurrency-mt-unsafe]
        while ((de = readdir(dir)) != NULL) {
                     ^
/datasets/git/read-cache.c:3286:15: warning: variable 'sha1_hex' is not initialized [cppcoreguidelines-init-variables]
                const char *sha1_hex;
                            ^
                                     = NULL
/datasets/git/read-cache.c:3287:15: warning: variable 'shared_index_path' is not initialized [cppcoreguidelines-init-variables]
                const char *shared_index_path;
                            ^
                                              = NULL
/datasets/git/read-cache.c:3288:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!skip_prefix(de->d_name, "sharedindex.", &sha1_hex))
                                                                        ^
                                                                         {
/datasets/git/read-cache.c:3290:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(sha1_hex, current_hex))
                                                   ^
                                                    {
/datasets/git/read-cache.c:3294:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    unlink(shared_index_path))
                                              ^
                                               {
/datasets/git/read-cache.c:3305:22: warning: variable name 'si' is too short, expected at least 3 characters [readability-identifier-length]
        struct split_index *si = istate->split_index;
                            ^
/datasets/git/read-cache.c:3306:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int ret, was_full = !istate->sparse_index;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:3306:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret, was_full = !istate->sparse_index;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:3317:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (was_full)
                     ^
                      {
/datasets/git/read-cache.c:3320:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/read-cache.c:3341:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, not_shared = 0;
        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./refs/../cache.h:339:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        unsigned int cache_nr, cache_alloc, cache_changed;
        ^
/datasets/git/read-cache.c:3341:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, not_shared = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:3341:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/read-cache.c:3351:7: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        case 100:
             ^
/datasets/git/read-cache.c:3358:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < istate->cache_nr; i++) {
        ^
/datasets/git/read-cache.c:3358:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'cache_nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < istate->cache_nr; i++) {
                    ^
/datasets/git/read-cache.c:3359:23: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                struct cache_entry *ce = istate->cache[i];
                                    ^
/datasets/git/read-cache.c:3360:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ce->index)
                               ^
                                {
/datasets/git/read-cache.c:3364:71: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        return (int64_t)istate->cache_nr * max_split < (int64_t)not_shared * 100;
                                                                             ^
/datasets/git/read-cache.c:3367:5: warning: function 'write_locked_index' has cognitive complexity of 31 (threshold 25) [readability-function-cognitive-complexity]
int write_locked_index(struct index_state *istate, struct lock_file *lock,
    ^
/datasets/git/read-cache.c:3373:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (git_env_bool("GIT_TEST_CHECK_CACHE_TREE", 0))
        ^
/datasets/git/read-cache.c:3376:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((flags & SKIP_IF_UNCHANGED) && !istate->cache_changed) {
        ^
/datasets/git/read-cache.c:3376:34: note: +1
        if ((flags & SKIP_IF_UNCHANGED) && !istate->cache_changed) {
                                        ^
/datasets/git/read-cache.c:3377:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (flags & COMMIT_LOCK)
                ^
/datasets/git/read-cache.c:3382:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (istate->fsmonitor_last_update)
        ^
/datasets/git/read-cache.c:3387:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((!si && !test_split_index_env) ||
        ^
/datasets/git/read-cache.c:3388:29: note: +1
            alternate_index_output ||
                                   ^
/datasets/git/read-cache.c:3387:11: note: +1
        if ((!si && !test_split_index_env) ||
                 ^
/datasets/git/read-cache.c:3390:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (si)
                ^
/datasets/git/read-cache.c:3393:3: note: +1
                goto out;
                ^
/datasets/git/read-cache.c:3396:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (test_split_index_env) {
        ^
/datasets/git/read-cache.c:3397:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!si) {
                ^
/datasets/git/read-cache.c:3400:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/read-cache.c:3402:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if ((v & 15) < 6)
                        ^
/datasets/git/read-cache.c:3406:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (too_many_not_shared_entries(istate))
        ^
/datasets/git/read-cache.c:3411:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (new_shared_index) {
        ^
/datasets/git/read-cache.c:3417:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!temp) {
                ^
/datasets/git/read-cache.c:3420:4: note: +1
                        goto out;
                        ^
/datasets/git/read-cache.c:3425:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (is_tempfile_active(temp))
                ^
/datasets/git/read-cache.c:3429:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ret)
                ^
/datasets/git/read-cache.c:3436:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!ret && !new_shared_index && !is_null_oid(&si->base_oid)) {
        ^
/datasets/git/read-cache.c:3436:32: note: +1
        if (!ret && !new_shared_index && !is_null_oid(&si->base_oid)) {
                                      ^
/datasets/git/read-cache.c:3443:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (flags & COMMIT_LOCK)
        ^
/datasets/git/read-cache.c:3370:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int new_shared_index, ret, test_split_index_env;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:3370:6: warning: variable 'new_shared_index' is not initialized [cppcoreguidelines-init-variables]
        int new_shared_index, ret, test_split_index_env;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:3370:24: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int new_shared_index, ret, test_split_index_env;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:3370:29: warning: variable 'test_split_index_env' is not initialized [cppcoreguidelines-init-variables]
        int new_shared_index, ret, test_split_index_env;
                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:3371:22: warning: variable name 'si' is too short, expected at least 3 characters [readability-identifier-length]
        struct split_index *si = istate->split_index;
                            ^
/datasets/git/read-cache.c:3373:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (git_env_bool("GIT_TEST_CHECK_CACHE_TREE", 0))
                                                         ^
                                                          {
/datasets/git/read-cache.c:3376:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((flags & SKIP_IF_UNCHANGED) && !istate->cache_changed) {
             ^
/datasets/git/read-cache.c:3376:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((flags & SKIP_IF_UNCHANGED) && !istate->cache_changed) {
                     ^
/datasets/git/./refs/../cache.h:745:28: note: expanded from macro 'SKIP_IF_UNCHANGED'
#define SKIP_IF_UNCHANGED       (1 << 1)
                                 ^
/datasets/git/read-cache.c:3377:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flags & COMMIT_LOCK)
                    ^
/datasets/git/read-cache.c:3377:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flags & COMMIT_LOCK)
                            ^
/datasets/git/./refs/../cache.h:744:23: note: expanded from macro 'COMMIT_LOCK'
#define COMMIT_LOCK             (1 << 0)
                                 ^
/datasets/git/read-cache.c:3377:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (flags & COMMIT_LOCK)
                                        ^
                                         {
/datasets/git/read-cache.c:3382:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (istate->fsmonitor_last_update)
                                          ^
                                           {
/datasets/git/read-cache.c:3389:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            (istate->cache_changed & ~EXTMASK)) {
             ^                       ~~~~~~~~
/datasets/git/read-cache.c:3389:31: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
            (istate->cache_changed & ~EXTMASK)) {
                                     ^
/datasets/git/read-cache.c:3389:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            (istate->cache_changed & ~EXTMASK)) {
                                      ^
/datasets/git/read-cache.c:57:18: note: expanded from macro 'EXTMASK'
#define EXTMASK (RESOLVE_UNDO_CHANGED | CACHE_TREE_CHANGED | \
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./refs/../cache.h:302:30: note: expanded from macro 'RESOLVE_UNDO_CHANGED'
#define RESOLVE_UNDO_CHANGED    (1 << 4)
                                ^
/datasets/git/read-cache.c:3390:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (si)
                       ^
                        {
/datasets/git/read-cache.c:3399:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        istate->cache_changed |= SPLIT_INDEX_ORDERED;
                        ^
/datasets/git/read-cache.c:3399:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        istate->cache_changed |= SPLIT_INDEX_ORDERED;
                                                 ^
/datasets/git/./refs/../cache.h:304:30: note: expanded from macro 'SPLIT_INDEX_ORDERED'
#define SPLIT_INDEX_ORDERED     (1 << 6)
                                 ^
/datasets/git/read-cache.c:3401:8: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
                        int v = si->base_oid.hash[0];
                            ^
/datasets/git/read-cache.c:3402:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if ((v & 15) < 6)
                             ^
/datasets/git/read-cache.c:3402:13: warning: 15 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        if ((v & 15) < 6)
                                 ^
/datasets/git/read-cache.c:3402:19: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        if ((v & 15) < 6)
                                       ^
/datasets/git/read-cache.c:3402:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if ((v & 15) < 6)
                                         ^
                                          {
/datasets/git/read-cache.c:3403:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                istate->cache_changed |= SPLIT_INDEX_ORDERED;
                                ^
/datasets/git/read-cache.c:3403:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                istate->cache_changed |= SPLIT_INDEX_ORDERED;
                                                         ^
/datasets/git/./refs/../cache.h:304:30: note: expanded from macro 'SPLIT_INDEX_ORDERED'
#define SPLIT_INDEX_ORDERED     (1 << 6)
                                 ^
/datasets/git/read-cache.c:3406:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (too_many_not_shared_entries(istate))
                                                ^
                                                 {
/datasets/git/read-cache.c:3407:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                istate->cache_changed |= SPLIT_INDEX_ORDERED;
                ^
/datasets/git/read-cache.c:3407:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                istate->cache_changed |= SPLIT_INDEX_ORDERED;
                                         ^
/datasets/git/./refs/../cache.h:304:30: note: expanded from macro 'SPLIT_INDEX_ORDERED'
#define SPLIT_INDEX_ORDERED     (1 << 6)
                                 ^
/datasets/git/read-cache.c:3409:21: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        new_shared_index = istate->cache_changed & SPLIT_INDEX_ORDERED;
                           ^
/datasets/git/read-cache.c:3409:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
/datasets/git/read-cache.c:3409:45: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        new_shared_index = istate->cache_changed & SPLIT_INDEX_ORDERED;
                                                   ^
/datasets/git/./refs/../cache.h:304:30: note: expanded from macro 'SPLIT_INDEX_ORDERED'
#define SPLIT_INDEX_ORDERED     (1 << 6)
                                 ^
/datasets/git/read-cache.c:3412:20: warning: variable 'temp' is not initialized [cppcoreguidelines-init-variables]
                struct tempfile *temp;
                                 ^
                                      = NULL
/datasets/git/read-cache.c:3413:7: warning: variable 'saved_errno' is not initialized [cppcoreguidelines-init-variables]
                int saved_errno;
                    ^
                                = 0
/datasets/git/read-cache.c:3416:61: warning: 0666 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                temp = mks_tempfile_sm(git_path("sharedindex_XXXXXX"), 0, 0666);
                                                                          ^
/datasets/git/read-cache.c:3425:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_tempfile_active(temp))
                                             ^
                                              {
/datasets/git/read-cache.c:3429:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret)
                        ^
                         {
/datasets/git/read-cache.c:3443:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & COMMIT_LOCK)
            ^
/datasets/git/read-cache.c:3443:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & COMMIT_LOCK)
                    ^
/datasets/git/./refs/../cache.h:744:23: note: expanded from macro 'COMMIT_LOCK'
#define COMMIT_LOCK             (1 << 0)
                                 ^
/datasets/git/read-cache.c:3460:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct index_state *istate;
        ^
/datasets/git/read-cache.c:3443:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & COMMIT_LOCK)
                                ^
                                 {
/datasets/git/read-cache.c:3460:22: warning: variable 'istate' is not initialized [cppcoreguidelines-init-variables]
        struct index_state *istate;
                            ^
                                   = NULL
/datasets/git/read-cache.c:3461:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/read-cache.c:3461:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/read-cache.c:3466:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < istate->cache_nr; i++) {
        ^
/datasets/git/read-cache.c:3466:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'istate' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < istate->cache_nr; i++) {
                    ^
/datasets/git/read-cache.c:3467:23: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                struct cache_entry *ce = istate->cache[i];
                                    ^
/datasets/git/read-cache.c:3468:23: warning: variable 'new_ce' is not initialized [cppcoreguidelines-init-variables]
                struct cache_entry *new_ce;
                                    ^
                                           = NULL
/datasets/git/read-cache.c:3469:7: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
                int len;
                    ^
                        = 0
/datasets/git/read-cache.c:3471:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!ce_stage(ce))
                     ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/read-cache.c:3471:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ce_stage(ce))
                                  ^
                                   {
/datasets/git/read-cache.c:3476:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(new_ce->name, ce->name, len);
                ^~~~~~
/datasets/git/read-cache.c:3476:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(new_ce->name, ce->name, len);
                ^~~~~~
/datasets/git/read-cache.c:3477:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                new_ce->ce_flags = create_ce_flags(0) | CE_CONFLICTED;
                                   ^
/datasets/git/read-cache.c:3477:43: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                new_ce->ce_flags = create_ce_flags(0) | CE_CONFLICTED;
                                                        ^
/datasets/git/./refs/../cache.h:175:31: note: expanded from macro 'CE_CONFLICTED'
#define CE_CONFLICTED        (1 << 23)
                              ^
/datasets/git/read-cache.c:3480:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (add_index_entry(istate, new_ce, ADD_CACHE_SKIP_DFCHECK))
                                                                            ^
                                                                             {
/datasets/git/read-cache.c:3499:6: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        int pos;
            ^
                = 0
/datasets/git/read-cache.c:3500:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (namelen && name[namelen - 1] == '/')
                                                ^
                                                 {
/datasets/git/read-cache.c:3503:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (0 <= pos)
                     ^
                      {
/datasets/git/read-cache.c:3507:23: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                struct cache_entry *ce = istate->cache[pos];
                                    ^
/datasets/git/read-cache.c:3509:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !memcmp(ce->name, name, namelen))
                                                     ^
                                                      {
/datasets/git/read-cache.c:3518:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int pos, len;
        ^~~~~~~~~~~~~
/datasets/git/read-cache.c:3518:6: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        int pos, len;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:3518:11: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int pos, len;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:3519:16: warning: variable 'sz' is not initialized [cppcoreguidelines-init-variables]
        unsigned long sz;
                      ^
                         = 0
/datasets/git/read-cache.c:3519:16: warning: variable name 'sz' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/read-cache.c:3520:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/read-cache.c:3521:8: warning: variable 'data' is not initialized [cppcoreguidelines-init-variables]
        void *data;
              ^
                   = NULL
/datasets/git/read-cache.c:3523:8: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        len = strlen(path);
              ^
/datasets/git/read-cache.c:3530:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/read-cache.c:3530:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/read-cache.c:3531:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = -pos - 1;
                ^
/datasets/git/read-cache.c:3532:8: warning: backward branch (for loop) is ID-dependent due to variable reference to 'pos' and may cause performance degradation [altera-id-dependent-backward-branch]
                     (pos < 0 && i < istate->cache_nr &&
                     ^
/datasets/git/read-cache.c:3534:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                     i++)
                         ^
                          {
/datasets/git/read-cache.c:3535:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (ce_stage(istate->cache[i]) == 2)
                            ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/read-cache.c:3535:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ce_stage(istate->cache[i]) == 2)
                                                            ^
                                                             {
/datasets/git/read-cache.c:3538:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pos < 0)
                    ^
                     {
/datasets/git/read-cache.c:3545:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (size)
                 ^
                  {
/datasets/git/read-cache.c:3550:48: warning: parameter name 'sv' is too short, expected at least 3 characters [readability-identifier-length]
void stat_validity_clear(struct stat_validity *sv)
                                               ^
/datasets/git/read-cache.c:3552:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(sv->sd);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/read-cache.c:3555:47: warning: parameter name 'sv' is too short, expected at least 3 characters [readability-identifier-length]
int stat_validity_check(struct stat_validity *sv, const char *path)
                                              ^
/datasets/git/read-cache.c:3557:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/read-cache.c:3559:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (stat(path, &st) < 0)
                                ^
                                 {
/datasets/git/read-cache.c:3561:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!sv->sd)
                    ^
                     {
/datasets/git/read-cache.c:3566:49: warning: parameter name 'sv' is too short, expected at least 3 characters [readability-identifier-length]
void stat_validity_update(struct stat_validity *sv, int fd)
                                                ^
/datasets/git/read-cache.c:3566:57: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
void stat_validity_update(struct stat_validity *sv, int fd)
                                                        ^
/datasets/git/read-cache.c:3568:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/read-cache.c:3570:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fstat(fd, &st) < 0 || !S_ISREG(st.st_mode))
                                                       ^
                                                        {
/datasets/git/read-cache.c:3573:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!sv->sd)
                            ^
                             {
/datasets/git/read-cache.c:3587:63: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
struct cache_entry *dup_cache_entry(const struct cache_entry *ce,
                                                              ^
/datasets/git/read-cache.c:3591:6: warning: variable 'mem_pool_allocated' is not initialized [cppcoreguidelines-init-variables]
        int mem_pool_allocated;
            ^
                               = 0
/datasets/git/read-cache.c:3593:23: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        mem_pool_allocated = new_entry->mem_pool_allocated;
                             ^
/datasets/git/read-cache.c:3595:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(new_entry, ce, size);
        ^~~~~~
/datasets/git/read-cache.c:3595:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(new_entry, ce, size);
        ^~~~~~
/datasets/git/read-cache.c:3600:46: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
void discard_cache_entry(struct cache_entry *ce)
                                             ^
/datasets/git/read-cache.c:3602:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ce && should_validate_cache_entries())
                                                  ^
                                                   {
/datasets/git/read-cache.c:3603:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(ce, 0xCD, cache_entry_size(ce->ce_namelen));
                ^~~~~~
/datasets/git/read-cache.c:3603:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(ce, 0xCD, cache_entry_size(ce->ce_namelen));
                ^~~~~~
/datasets/git/read-cache.c:3603:14: warning: 0xCD is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                memset(ce, 0xCD, cache_entry_size(ce->ce_namelen));
                           ^
/datasets/git/read-cache.c:3605:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ce && ce->mem_pool_allocated)
                                         ^
                                          {
/datasets/git/read-cache.c:3616:7: warning: function is not thread safe [concurrency-mt-unsafe]
                if (getenv("GIT_TEST_VALIDATE_INDEX_CACHE_ENTRIES"))
                    ^
/datasets/git/read-cache.c:3616:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (getenv("GIT_TEST_VALIDATE_INDEX_CACHE_ENTRIES"))
                                                                    ^
                                                                     {
/datasets/git/read-cache.c:3618:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/read-cache.c:3639:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *index, *eoie;
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:3639:14: warning: variable 'index' is not initialized [cppcoreguidelines-init-variables]
        const char *index, *eoie;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:3639:22: warning: variable 'eoie' is not initialized [cppcoreguidelines-init-variables]
        const char *index, *eoie;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:3640:11: warning: variable 'extsize' is not initialized [cppcoreguidelines-init-variables]
        uint32_t extsize;
                 ^
                         = 0
/datasets/git/read-cache.c:3641:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t offset, src_offset;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:3641:9: warning: variable 'offset' is not initialized [cppcoreguidelines-init-variables]
        size_t offset, src_offset;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:3641:17: warning: variable 'src_offset' is not initialized [cppcoreguidelines-init-variables]
        size_t offset, src_offset;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:3643:15: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        git_hash_ctx c;
                     ^
/datasets/git/read-cache.c:3646:93: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mmap_size < sizeof(struct cache_header) + EOIE_SIZE_WITH_HEADER + the_hash_algo->rawsz)
                                                                                                   ^
                                                                                                    {
/datasets/git/read-cache.c:3651:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (CACHE_EXT(index) != CACHE_EXT_ENDOFINDEXENTRIES)
            ^
/datasets/git/read-cache.c:46:24: note: expanded from macro 'CACHE_EXT'
#define CACHE_EXT(s) ( (s[0]<<24)|(s[1]<<16)|(s[2]<<8)|(s[3]) )
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:3651:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (CACHE_EXT(index) != CACHE_EXT_ENDOFINDEXENTRIES)
                      ^
/datasets/git/read-cache.c:46:25: note: expanded from macro 'CACHE_EXT'
#define CACHE_EXT(s) ( (s[0]<<24)|(s[1]<<16)|(s[2]<<8)|(s[3]) )
                        ^~~~
/datasets/git/read-cache.c:3651:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (CACHE_EXT(index) != CACHE_EXT_ENDOFINDEXENTRIES)
                                                            ^
                                                             {
/datasets/git/read-cache.c:3657:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (extsize != EOIE_SIZE)
                                 ^
                                  {
/datasets/git/read-cache.c:3666:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mmap + offset < mmap + sizeof(struct cache_header))
                                                               ^
                                                                {
/datasets/git/read-cache.c:3668:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mmap + offset >= eoie)
                                  ^
                                   {
/datasets/git/read-cache.c:3683:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (src_offset < mmap_size - the_hash_algo->rawsz - EOIE_SIZE_WITH_HEADER) {
        ^
/datasets/git/read-cache.c:3683:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'src_offset' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (src_offset < mmap_size - the_hash_algo->rawsz - EOIE_SIZE_WITH_HEADER) {
               ^
/datasets/git/read-cache.c:3690:12: warning: variable 'extsize' is not initialized [cppcoreguidelines-init-variables]
                uint32_t extsize;
                         ^
                                 = 0
/datasets/git/read-cache.c:3691:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(&extsize, mmap + src_offset + 4, 4);
                ^~~~~~
/datasets/git/read-cache.c:3691:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(&extsize, mmap + src_offset + 4, 4);
                ^~~~~~
/datasets/git/read-cache.c:3695:20: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (src_offset + 8 + extsize < src_offset)
                                 ^
/datasets/git/read-cache.c:3695:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (src_offset + 8 + extsize < src_offset)
                                                          ^
                                                           {
/datasets/git/read-cache.c:3698:51: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                the_hash_algo->update_fn(&c, mmap + src_offset, 8);
                                                                ^
/datasets/git/read-cache.c:3700:17: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                src_offset += 8;
                              ^
/datasets/git/read-cache.c:3704:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!hasheq(hash, (const unsigned char *)index))
                                                        ^
                                                         {
/datasets/git/read-cache.c:3708:77: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (src_offset != mmap_size - the_hash_algo->rawsz - EOIE_SIZE_WITH_HEADER)
                                                                                   ^
                                                                                    {
/datasets/git/read-cache.c:3714:49: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static void write_eoie_extension(struct strbuf *sb, git_hash_ctx *eoie_context, size_t offset)
                                                ^
/datasets/git/read-cache.c:3716:11: warning: variable 'buffer' is not initialized [cppcoreguidelines-init-variables]
        uint32_t buffer;
                 ^
                        = 0
/datasets/git/read-cache.c:3728:1: warning: replace macro with enum [modernize-macro-to-enum]
#define IEOT_VERSION    (1)
^~~~~~~~
                     =
/datasets/git/read-cache.c:3728:9: warning: macro 'IEOT_VERSION' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define IEOT_VERSION    (1)
        ^
/datasets/git/read-cache.c:3733:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        uint32_t extsize, ext_version;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:3733:11: warning: variable 'extsize' is not initialized [cppcoreguidelines-init-variables]
        uint32_t extsize, ext_version;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:3733:20: warning: variable 'ext_version' is not initialized [cppcoreguidelines-init-variables]
        uint32_t extsize, ext_version;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:3734:35: warning: variable 'ieot' is not initialized [cppcoreguidelines-init-variables]
        struct index_entry_offset_table *ieot;
                                         ^
                                              = NULL
/datasets/git/read-cache.c:3735:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, nr;
        ^~~~~~~~~~
/datasets/git/read-cache.c:3735:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, nr;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:3735:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/read-cache.c:3735:9: warning: variable 'nr' is not initialized [cppcoreguidelines-init-variables]
        int i, nr;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/read-cache.c:3735:9: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/read-cache.c:3738:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!offset)
                    ^
                     {
/datasets/git/read-cache.c:3740:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (offset <= mmap_size - the_hash_algo->rawsz - 8) {
        ^
/datasets/git/read-cache.c:3740:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'offset' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (offset <= mmap_size - the_hash_algo->rawsz - 8) {
               ^
/datasets/git/read-cache.c:3740:54: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        while (offset <= mmap_size - the_hash_algo->rawsz - 8) {
                                                            ^
/datasets/git/read-cache.c:3742:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (CACHE_EXT((mmap + offset)) == CACHE_EXT_INDEXENTRYOFFSETTABLE) {
                    ^
/datasets/git/read-cache.c:46:24: note: expanded from macro 'CACHE_EXT'
#define CACHE_EXT(s) ( (s[0]<<24)|(s[1]<<16)|(s[2]<<8)|(s[3]) )
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/read-cache.c:3742:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (CACHE_EXT((mmap + offset)) == CACHE_EXT_INDEXENTRYOFFSETTABLE) {
                              ^
/datasets/git/read-cache.c:46:25: note: expanded from macro 'CACHE_EXT'
#define CACHE_EXT(s) ( (s[0]<<24)|(s[1]<<16)|(s[2]<<8)|(s[3]) )
                        ^~~~
/datasets/git/read-cache.c:3746:13: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                offset += 8;
                          ^
/datasets/git/read-cache.c:3749:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!index)
                   ^
                    {
/datasets/git/read-cache.c:3761:7: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        nr = (extsize - sizeof(uint32_t)) / (sizeof(uint32_t) + sizeof(uint32_t));
             ^
/datasets/git/read-cache.c:3769:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr; i++) {
        ^
/datasets/git/read-cache.c:3769:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < nr; i++) {
                    ^
/datasets/git/read-cache.c:3770:29: warning: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                ieot->entries[i].offset = get_be32(index);
                                          ^
/datasets/git/read-cache.c:3772:25: warning: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                ieot->entries[i].nr = get_be32(index);
                                      ^
/datasets/git/read-cache.c:3779:49: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static void write_ieot_extension(struct strbuf *sb, struct index_entry_offset_table *ieot)
                                                ^
/datasets/git/read-cache.c:2085:2: note: inferred assignment of ID-dependent member from ID-dependent variable nr [altera-id-dependent-backward-branch]
        int nr;
        ^
/datasets/git/read-cache.c:3781:11: warning: variable 'buffer' is not initialized [cppcoreguidelines-init-variables]
        uint32_t buffer;
                 ^
                        = 0
/datasets/git/read-cache.c:3782:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/read-cache.c:3782:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/./refs/../cache.h:339:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        unsigned int cache_nr, cache_alloc, cache_changed;
        ^
/datasets/git/read-cache.c:3789:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ieot->nr; i++) {
        ^
/datasets/git/read-cache.c:3789:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < ieot->nr; i++) {
                    ^
/datasets/git/read-cache.c:3804:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/read-cache.c:3804:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/read-cache.c:3807:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < istate->cache_nr; i++) {
        ^
/datasets/git/read-cache.c:3807:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'cache_nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < istate->cache_nr; i++) {
                    ^
/datasets/git/read-cache.c:3808:23: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                struct cache_entry *ce = istate->cache[i];
                                    ^
/datasets/git/read-cache.c:3810:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (S_ISGITLINK(ce->ce_mode) || !must_prefetch(ce))
                    ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/read-cache.c:3810:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (S_ISGITLINK(ce->ce_mode) || !must_prefetch(ce))
                                                                   ^
                                                                    {
/datasets/git/read-cache.c:3814:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                              OBJECT_INFO_FOR_PREFETCH))
                                              ^
/datasets/git/./object-store.h:448:35: note: expanded from macro 'OBJECT_INFO_FOR_PREFETCH'
#define OBJECT_INFO_FOR_PREFETCH (OBJECT_INFO_SKIP_FETCH_OBJECT | OBJECT_INFO_QUICK)
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./object-store.h:443:39: note: expanded from macro 'OBJECT_INFO_SKIP_FETCH_OBJECT'
#define OBJECT_INFO_SKIP_FETCH_OBJECT 32
                                      ^~
/datasets/git/read-cache.c:3814:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                              OBJECT_INFO_FOR_PREFETCH))
                                                                        ^
                                                                         {
/datasets/git/read-cache.c:3819:22: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                   to_fetch.oid, to_fetch.nr);
                                                 ^
/datasets/git/rebase-interactive.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "commit.h"
^        ~~~~~~~~~~
         "commit-slab.h"
/datasets/git/rebase-interactive.c:24:14: warning: variable 'value' is not initialized [cppcoreguidelines-init-variables]
        const char *value;
                    ^
                          = NULL
/datasets/git/rebase-interactive.c:27:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        !strcasecmp("ignore", value))
                                                     ^
                                                      {
/datasets/git/rebase-interactive.c:29:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcasecmp("warn", value))
                                       ^
                                        {
/datasets/git/rebase-interactive.c:31:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcasecmp("error", value))
                                        ^
                                         {
/datasets/git/rebase-interactive.c:77:69: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_missing_commit_check_level() == MISSING_COMMIT_CHECK_ERROR)
                                                                           ^
                                                                            {
/datasets/git/rebase-interactive.c:80:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/rebase-interactive.c:86:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (edit_todo)
                      ^
                       {
/datasets/git/rebase-interactive.c:91:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/rebase-interactive.c:98:39: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int edit_todo_list(struct repository *r, struct todo_list *todo_list,
                                      ^
/datasets/git/rebase-interactive.c:102:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *todo_file = rebase_path_todo(),
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/rebase-interactive.c:110:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!initial)
                     ^
                      {
/datasets/git/rebase-interactive.c:111:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                incorrect = todo_list_parse_insn_buffer(r, todo_list->buf.buf, todo_list) |
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/rebase-interactive.c:115:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                    -1, flags | TODO_LIST_SHORTEN_IDS | TODO_LIST_APPEND_TODO_HELP))
                                                ^
/datasets/git/./sequencer.h:164:32: note: expanded from macro 'TODO_LIST_SHORTEN_IDS'
#define TODO_LIST_SHORTEN_IDS (1U << 1)
                               ^     ~
/datasets/git/rebase-interactive.c:115:45: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                    -1, flags | TODO_LIST_SHORTEN_IDS | TODO_LIST_APPEND_TODO_HELP))
                                                                        ^
/datasets/git/./sequencer.h:173:37: note: expanded from macro 'TODO_LIST_APPEND_TODO_HELP'
#define TODO_LIST_APPEND_TODO_HELP (1U << 5)
                                    ^     ~
/datasets/git/rebase-interactive.c:115:73: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                    -1, flags | TODO_LIST_SHORTEN_IDS | TODO_LIST_APPEND_TODO_HELP))
                                                                                                    ^
                                                                                                     {
/datasets/git/rebase-interactive.c:121:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                    (flags | TODO_LIST_APPEND_TODO_HELP) & ~TODO_LIST_SHORTEN_IDS) < 0)
                                             ^
/datasets/git/./sequencer.h:173:37: note: expanded from macro 'TODO_LIST_APPEND_TODO_HELP'
#define TODO_LIST_APPEND_TODO_HELP (1U << 5)
                                    ^     ~
/datasets/git/rebase-interactive.c:121:49: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                    (flags | TODO_LIST_APPEND_TODO_HELP) & ~TODO_LIST_SHORTEN_IDS) < 0)
                                                                            ^
/datasets/git/./sequencer.h:164:32: note: expanded from macro 'TODO_LIST_SHORTEN_IDS'
#define TODO_LIST_SHORTEN_IDS (1U << 1)
                               ^     ~
/datasets/git/rebase-interactive.c:121:76: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                    (flags | TODO_LIST_APPEND_TODO_HELP) & ~TODO_LIST_SHORTEN_IDS) < 0)
                                                                                                       ^
                                                                                                        {
/datasets/git/rebase-interactive.c:124:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (launch_sequence_editor(todo_file, &new_todo->buf, NULL))
                                                                    ^
                                                                     {
/datasets/git/rebase-interactive.c:128:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (initial && new_todo->buf.len == 0)
                                              ^
                                               {
/datasets/git/rebase-interactive.c:132:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, _(edit_todo_list_advice));
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/rebase-interactive.c:132:3: note: cast the expression to void to silence this warning
/datasets/git/rebase-interactive.c:142:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (incorrect > 0)
                                  ^
                                   {
/datasets/git/rebase-interactive.c:158:1: warning: backward branch (for loop) is ID-dependent due to member reference to 'slab_size' and may cause performance degradation [altera-id-dependent-backward-branch]
define_commit_slab(commit_seen, unsigned char);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:48:15: note: expanded from macro 'implement_commit_slab'
                for (j = 0; j < s->slab_size; j++)                      \
                            ^
/datasets/git/rebase-interactive.c:158:1: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
define_commit_slab(commit_seen, unsigned char);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:68:27: note: expanded from macro 'implement_commit_slab'
                for (i = s->slab_count; i <= nth_slab; i++)             \
                                        ^
/datasets/git/rebase-interactive.c:158:1: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
define_commit_slab(commit_seen, unsigned char);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:35:2: note: expanded from macro 'implement_commit_slab'
        for (i = 0; i < s->slab_count; i++)                             \
        ^
/datasets/git/rebase-interactive.c:158:1: warning: result of multiplication in type 'unsigned int' is used as a pointer offset after an implicit widening conversion to type 'size_t' [bugprone-implicit-widening-of-multiplication-result]
define_commit_slab(commit_seen, unsigned char);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:49:13: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                 ^
/datasets/git/rebase-interactive.c:158:1: note: make conversion explicit to silence this warning
define_commit_slab(commit_seen, unsigned char);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:49:24: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                            ^~~~~~~~~~~~~
/datasets/git/rebase-interactive.c:158:1: note: perform multiplication in a wider type
define_commit_slab(commit_seen, unsigned char);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:49:24: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                            ^
/datasets/git/rebase-interactive.c:158:1: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(commit_seen, unsigned char);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:55:30: note: expanded from macro 'implement_commit_slab'
                                                  const struct commit *c, \
                                                                       ^
/datasets/git/rebase-interactive.c:158:1: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(commit_seen, unsigned char);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:14:61: note: expanded from macro 'implement_commit_slab'
scope void init_ ##slabname## _with_stride(struct slabname *s,          \
                                                            ^
/datasets/git/rebase-interactive.c:158:1: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(commit_seen, unsigned char);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:34:15: note: expanded from macro 'implement_commit_slab'
        unsigned int i;                                                 \
                     ^
/datasets/git/rebase-interactive.c:158:1: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(commit_seen, unsigned char);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:45:16: note: expanded from macro 'implement_commit_slab'
                unsigned int j;                                         \
                             ^
/datasets/git/rebase-interactive.c:158:1: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
define_commit_slab(commit_seen, unsigned char);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:58:2: note: expanded from macro 'implement_commit_slab'
        unsigned int nth_slab, nth_slot;                                \
        ^
/datasets/git/rebase-interactive.c:158:1: note: inferred assignment of ID-dependent value from ID-dependent member slab_count [altera-id-dependent-backward-branch]
define_commit_slab(commit_seen, unsigned char);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:64:3: note: expanded from macro 'implement_commit_slab'
                unsigned int i;                                         \
                ^
/datasets/git/rebase-interactive.c:158:20: warning: accessing fields in struct 'commit_seen' is inefficient due to padding; only needs 20 bytes but is using 24 bytes [altera-struct-pack-align]
define_commit_slab(commit_seen, unsigned char);
                   ^
/datasets/git/rebase-interactive.c:158:20: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'commit_seen'
/datasets/git/rebase-interactive.c:158:20: warning: accessing fields in struct 'commit_seen' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
define_commit_slab(commit_seen, unsigned char);
                   ^
/datasets/git/rebase-interactive.c:158:20: note: use "__attribute__((aligned(32)))" to align struct 'commit_seen' to 32 bytes
/datasets/git/rebase-interactive.c:169:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int res = 0, i;
        ^~~~~~~~~~~~~~~
/datasets/git/rebase-interactive.c:169:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int res = 0, i;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/rebase-interactive.c:169:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/rebase-interactive.c:174:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (check_level == MISSING_COMMIT_CHECK_IGNORE)
                                                       ^
                                                        {
/datasets/git/rebase-interactive.c:178:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < new_todo->nr; i++) {
        ^
/datasets/git/rebase-interactive.c:169:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int res = 0, i;
        ^
/datasets/git/rebase-interactive.c:178:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < new_todo->nr; i++) {
                    ^
/datasets/git/rebase-interactive.c:180:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (commit)
                           ^
                            {
/datasets/git/rebase-interactive.c:185:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = old_todo->nr - 1; i >= 0; i--) {
        ^
/datasets/git/rebase-interactive.c:185:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = old_todo->nr - 1; i >= 0; i--) {
                                   ^
/datasets/git/rebase-interactive.c:198:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!missing.len)
                         ^
                          {
/datasets/git/rebase-interactive.c:201:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (check_level == MISSING_COMMIT_CHECK_ERROR)
                                                      ^
                                                       {
/datasets/git/rebase-interactive.c:204:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(stderr,
        ^~~~~~~~~~~~~~~
/datasets/git/rebase-interactive.c:204:2: note: cast the expression to void to silence this warning
/datasets/git/rebase-interactive.c:209:2: warning: the value returned by this function should be used [cert-err33-c]
        fputs(missing.buf, stderr);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/rebase-interactive.c:209:2: note: cast the expression to void to silence this warning
/datasets/git/rebase-interactive.c:212:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(stderr, _("To avoid this message, use \"drop\" to "
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/rebase-interactive.c:212:2: note: cast the expression to void to silence this warning
/datasets/git/rebase-interactive.c:218:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(stderr, _(edit_todo_list_advice));
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/rebase-interactive.c:218:2: note: cast the expression to void to silence this warning
/datasets/git/rebase-interactive.c:225:55: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int todo_list_check_against_backup(struct repository *r, struct todo_list *todo_list)
                                                      ^
rebase.c:18:6: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
        int v = git_parse_maybe_bool(value);
            ^
/datasets/git/rebase.c:20:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!v)
               ^
                {
/datasets/git/rebase.c:22:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (v > 0)
        ^~~~~~~~~~~~~~~
/datasets/git/rebase.c:22:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (v > 0)
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/rebase.c:24:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(value, "merges") || !strcmp(value, "m"))
                                                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/rebase.c:26:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(value, "interactive") || !strcmp(value, "i"))
                                                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/rebase.c:28:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(value, "preserve") || !strcmp(value, "p"))
                                                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ref-filter.c:3:1: warning: #includes are not sorted properly [llvm-include-order]
#include "parse-options.h"
^        ~~~~~~~~~~~~~~~~~
         "color.h"
/datasets/git/ref-filter.c:27:15: warning: accessing fields in struct 'ref_msg' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
static struct ref_msg {
              ^
/datasets/git/ref-filter.c:27:15: note: use "__attribute__((aligned(32)))" to align struct 'ref_msg' to 32 bytes
/datasets/git/ref-filter.c:32:3: warning: variable 'msgs' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} msgs = {
  ^
/datasets/git/ref-filter.c:52:8: warning: accessing fields in struct 'align' is inefficient due to poor alignment; currently aligned to 4 bytes, but recommended alignment is 8 bytes [altera-struct-pack-align]
struct align {
       ^
/datasets/git/ref-filter.c:52:8: note: use "__attribute__((aligned(8)))" to align struct 'align' to 8 bytes
/datasets/git/ref-filter.c:57:8: warning: accessing fields in struct 'if_then_else' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct if_then_else {
       ^
/datasets/git/ref-filter.c:57:8: note: use "__attribute__((aligned(32)))" to align struct 'if_then_else' to 32 bytes
/datasets/git/ref-filter.c:65:8: warning: accessing fields in struct 'refname_atom' is inefficient due to poor alignment; currently aligned to 4 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct refname_atom {
       ^
/datasets/git/ref-filter.c:65:8: note: use "__attribute__((aligned(16)))" to align struct 'refname_atom' to 16 bytes
/datasets/git/ref-filter.c:70:15: warning: accessing fields in struct 'ref_trailer_buf' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
static struct ref_trailer_buf {
              ^
/datasets/git/ref-filter.c:70:15: note: use "__attribute__((aligned(128)))" to align struct 'ref_trailer_buf' to 128 bytes
/datasets/git/ref-filter.c:74:3: warning: variable 'ref_trailer_buf' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} ref_trailer_buf = {STRING_LIST_INIT_NODUP, STRBUF_INIT, STRBUF_INIT};
  ^
/datasets/git/ref-filter.c:74:3: warning: initializing non-local variable with non-const expression depending on uninitialized non-local variable 'strbuf_slopbuf' [cppcoreguidelines-interfaces-global-init]
/datasets/git/ref-filter.c:76:15: warning: accessing fields in struct 'expand_data' is inefficient due to padding; only needs 180 bytes but is using 184 bytes [altera-struct-pack-align]
static struct expand_data {
              ^
/datasets/git/ref-filter.c:76:15: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'expand_data'
/datasets/git/ref-filter.c:76:15: warning: accessing fields in struct 'expand_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
static struct expand_data {
              ^
/datasets/git/ref-filter.c:76:15: note: use "__attribute__((aligned(128)))" to align struct 'expand_data' to 128 bytes
/datasets/git/ref-filter.c:85:3: warning: variable 'oi' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} oi, oi_deref;
  ^
/datasets/git/ref-filter.c:85:3: warning: variable name 'oi' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ref-filter.c:85:7: warning: variable 'oi_deref' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} oi, oi_deref;
      ^
/datasets/git/ref-filter.c:87:8: warning: accessing fields in struct 'ref_to_worktree_entry' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct ref_to_worktree_entry {
       ^
/datasets/git/ref-filter.c:87:8: note: use "__attribute__((aligned(32)))" to align struct 'ref_to_worktree_entry' to 32 bytes
/datasets/git/ref-filter.c:97:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const struct ref_to_worktree_entry *e, *k;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:97:38: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        const struct ref_to_worktree_entry *e, *k;
                                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ref-filter.c:97:38: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ref-filter.c:97:42: warning: variable 'k' is not initialized [cppcoreguidelines-init-variables]
        const struct ref_to_worktree_entry *e, *k;
                                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ref-filter.c:97:42: warning: variable name 'k' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ref-filter.c:106:15: warning: accessing fields in struct 'ref_to_worktree_map' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
static struct ref_to_worktree_map {
              ^
/datasets/git/ref-filter.c:106:15: note: use "__attribute__((aligned(64)))" to align struct 'ref_to_worktree_map' to 64 bytes
/datasets/git/ref-filter.c:109:3: warning: variable 'ref_to_worktree_map' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} ref_to_worktree_map;
  ^
/datasets/git/ref-filter.c:173:15: warning: accessing fields in struct 'used_atom' is inefficient due to padding; only needs 100 bytes but is using 104 bytes [altera-struct-pack-align]
static struct used_atom {
              ^
/datasets/git/ref-filter.c:173:15: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'used_atom'
/datasets/git/ref-filter.c:173:15: warning: accessing fields in struct 'used_atom' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
static struct used_atom {
              ^
/datasets/git/ref-filter.c:173:15: note: use "__attribute__((aligned(128)))" to align struct 'used_atom' to 128 bytes
/datasets/git/ref-filter.c:181:3: warning: accessing fields in struct '' is inefficient due to poor alignment; currently aligned to 4 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
                struct {
                ^
/datasets/git/ref-filter.c:181:3: note: use "__attribute__((aligned(32)))" to align struct '' to 32 bytes
/datasets/git/ref-filter.c:188:3: warning: accessing fields in struct '' is inefficient due to padding; only needs 72 bytes but is using 80 bytes [altera-struct-pack-align]
                struct {
                ^
/datasets/git/ref-filter.c:188:3: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct ''
/datasets/git/ref-filter.c:188:3: warning: accessing fields in struct '' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
                struct {
                ^
/datasets/git/ref-filter.c:188:3: note: use "__attribute__((aligned(128)))" to align struct '' to 128 bytes
/datasets/git/ref-filter.c:197:3: warning: accessing fields in struct '' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
                struct {
                ^
/datasets/git/ref-filter.c:197:3: note: use "__attribute__((aligned(16)))" to align struct '' to 16 bytes
/datasets/git/ref-filter.c:201:3: warning: accessing fields in struct '' is inefficient due to poor alignment; currently aligned to 4 bytes, but recommended alignment is 8 bytes [altera-struct-pack-align]
                struct {
                ^
/datasets/git/ref-filter.c:201:3: note: use "__attribute__((aligned(8)))" to align struct '' to 8 bytes
/datasets/git/ref-filter.c:214:4: warning: variable 'used_atom' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} *used_atom;
   ^
/datasets/git/ref-filter.c:214:4: warning: variable 'used_atom' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/ref-filter.c:215:12: warning: variable 'used_atom_cnt' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int used_atom_cnt, need_tagged, need_symref;
           ^
/datasets/git/ref-filter.c:215:27: warning: variable 'need_tagged' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int used_atom_cnt, need_tagged, need_symref;
                          ^
/datasets/git/ref-filter.c:215:40: warning: variable 'need_symref' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int used_atom_cnt, need_tagged, need_symref;
                                       ^
/datasets/git/ref-filter.c:222:43: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static int strbuf_addf_ret(struct strbuf *sb, int ret, const char *fmt, ...)
                                          ^
/datasets/git/ref-filter.c:224:10: warning: variable name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
        va_list ap;
                ^
/datasets/git/ref-filter.c:234:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!color_value)
                         ^
                          {
/datasets/git/ref-filter.c:236:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (color_parse(color_value, atom->u.color) < 0)
                                                        ^
                                                         {
/datasets/git/ref-filter.c:243:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!want_color(format->use_color))
                                           ^
                                            {
/datasets/git/ref-filter.c:251:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!arg)
                 ^
                  {
/datasets/git/ref-filter.c:253:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(arg, "short"))
                                       ^
                                        {
/datasets/git/ref-filter.c:258:21: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (strtol_i(arg, 10, &atom->lstrip))
                                  ^
/datasets/git/ref-filter.c:258:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strtol_i(arg, 10, &atom->lstrip))
                                                     ^
                                                      {
/datasets/git/ref-filter.c:262:21: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (strtol_i(arg, 10, &atom->rstrip))
                                  ^
/datasets/git/ref-filter.c:262:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strtol_i(arg, 10, &atom->rstrip))
                                                     ^
                                                      {
/datasets/git/ref-filter.c:264:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/ref-filter.c:269:54: warning: parameter 'format' is unused [misc-unused-parameters]
static int remote_ref_atom_parser(struct ref_format *format, struct used_atom *atom,
                                                     ^
/datasets/git/ref-filter.c:273:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/ref-filter.c:273:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ref-filter.c:275:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(atom->name, "push") || starts_with(atom->name, "push:"))
                                                                            ^
                                                                             {
/datasets/git/ref-filter.c:287:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < params.nr; i++) {
        ^
/datasets/git/ref-filter.c:288:15: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
                const char *s = params.items[i].string;
                            ^
/datasets/git/ref-filter.c:290:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(s, "track"))
                                        ^
                                         {
/datasets/git/ref-filter.c:292:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(s, "trackshort"))
                                                  ^
                                                   {
/datasets/git/ref-filter.c:294:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(s, "nobracket"))
                                                 ^
                                                  {
/datasets/git/ref-filter.c:316:54: warning: parameter 'format' is unused [misc-unused-parameters]
static int objecttype_atom_parser(struct ref_format *format, struct used_atom *atom,
                                                     ^
/datasets/git/ref-filter.c:319:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (arg)
                ^
                 {
/datasets/git/ref-filter.c:321:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*atom->name == '*')
                               ^
                                {
/datasets/git/ref-filter.c:323:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/ref-filter.c:328:54: warning: parameter 'format' is unused [misc-unused-parameters]
static int objectsize_atom_parser(struct ref_format *format, struct used_atom *atom,
                                                     ^
/datasets/git/ref-filter.c:333:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*atom->name == '*')
                                       ^
                                        {
/datasets/git/ref-filter.c:335:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/ref-filter.c:339:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*atom->name == '*')
                                       ^
                                        {
/datasets/git/ref-filter.c:341:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/ref-filter.c:343:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/ref-filter.c:348:53: warning: parameter 'format' is unused [misc-unused-parameters]
static int deltabase_atom_parser(struct ref_format *format, struct used_atom *atom,
                                                    ^
/datasets/git/ref-filter.c:351:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (arg)
                ^
                 {
/datasets/git/ref-filter.c:353:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*atom->name == '*')
                               ^
                                {
/datasets/git/ref-filter.c:355:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/ref-filter.c:360:48: warning: parameter 'format' is unused [misc-unused-parameters]
static int body_atom_parser(struct ref_format *format, struct used_atom *atom,
                                               ^
/datasets/git/ref-filter.c:363:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (arg)
                ^
                 {
/datasets/git/ref-filter.c:369:51: warning: parameter 'format' is unused [misc-unused-parameters]
static int subject_atom_parser(struct ref_format *format, struct used_atom *atom,
                                                  ^
/datasets/git/ref-filter.c:372:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!arg)
                 ^
                  {
/datasets/git/ref-filter.c:374:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(arg, "sanitize"))
                                          ^
                                           {
/datasets/git/ref-filter.c:376:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/ref-filter.c:381:52: warning: parameter 'format' is unused [misc-unused-parameters]
static int trailers_atom_parser(struct ref_format *format, struct used_atom *atom,
                                                   ^
/datasets/git/ref-filter.c:395:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!invalid_arg)
                                         ^
                                          {
/datasets/git/ref-filter.c:397:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/ref-filter.c:399:9: warning: redundant cast to the same type [google-readability-casting]
                        free((char *)invalid_arg);
                             ^~~~~~~~
/datasets/git/ref-filter.c:410:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!arg)
                 ^
                  {
/datasets/git/ref-filter.c:412:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(arg, "body"))
                                      ^
                                       {
/datasets/git/ref-filter.c:414:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(arg, "size"))
                                      ^
                                       {
/datasets/git/ref-filter.c:416:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(arg, "signature"))
                                           ^
                                            {
/datasets/git/ref-filter.c:418:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(arg, "subject"))
                                         ^
                                          {
/datasets/git/ref-filter.c:421:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (trailers_atom_parser(format, atom, NULL, err))
                                                                  ^
                                                                   {
/datasets/git/ref-filter.c:424:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (trailers_atom_parser(format, atom, arg, err))
                                                                 ^
                                                                  {
/datasets/git/ref-filter.c:428:23: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (strtoul_ui(arg, 10, &atom->u.contents.nlines))
                                    ^
/datasets/git/ref-filter.c:428:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strtoul_ui(arg, 10, &atom->u.contents.nlines))
                                                                  ^
                                                                   {
/datasets/git/ref-filter.c:430:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/ref-filter.c:435:47: warning: parameter 'format' is unused [misc-unused-parameters]
static int raw_atom_parser(struct ref_format *format, struct used_atom *atom,
                                              ^
/datasets/git/ref-filter.c:438:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!arg)
                 ^
                  {
/datasets/git/ref-filter.c:440:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(arg, "size"))
                                      ^
                                       {
/datasets/git/ref-filter.c:442:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/ref-filter.c:447:47: warning: parameter 'format' is unused [misc-unused-parameters]
static int oid_atom_parser(struct ref_format *format, struct used_atom *atom,
                                              ^
/datasets/git/ref-filter.c:450:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!arg)
                 ^
                  {
/datasets/git/ref-filter.c:452:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(arg, "short"))
                                       ^
                                        {
/datasets/git/ref-filter.c:456:23: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (strtoul_ui(arg, 10, &atom->u.oid.length) ||
                                    ^
/datasets/git/ref-filter.c:457:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    atom->u.oid.length == 0)
                                            ^
                                             {
/datasets/git/ref-filter.c:459:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (atom->u.oid.length < MINIMUM_ABBREV)
                                                        ^
                                                         {
/datasets/git/ref-filter.c:461:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/ref-filter.c:466:56: warning: parameter 'format' is unused [misc-unused-parameters]
static int person_email_atom_parser(struct ref_format *format, struct used_atom *atom,
                                                       ^
/datasets/git/ref-filter.c:469:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!arg)
                 ^
                  {
/datasets/git/ref-filter.c:471:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(arg, "trim"))
                                      ^
                                       {
/datasets/git/ref-filter.c:473:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(arg, "localpart"))
                                           ^
                                            {
/datasets/git/ref-filter.c:475:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/ref-filter.c:480:51: warning: parameter 'format' is unused [misc-unused-parameters]
static int refname_atom_parser(struct ref_format *format, struct used_atom *atom,
                                                  ^
/datasets/git/ref-filter.c:486:52: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static align_type parse_align_position(const char *s)
                                                   ^
/datasets/git/ref-filter.c:488:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(s, "right"))
                                ^
                                 {
/datasets/git/ref-filter.c:490:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (!strcmp(s, "middle"))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:490:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(s, "middle"))
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ref-filter.c:492:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(s, "left"))
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ref-filter.c:497:49: warning: parameter 'format' is unused [misc-unused-parameters]
static int align_atom_parser(struct ref_format *format, struct used_atom *atom,
                                                ^
/datasets/git/ref-filter.c:502:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/ref-filter.c:502:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ref-filter.c:505:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!arg)
                 ^
                  {
/datasets/git/ref-filter.c:511:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < params.nr; i++) {
        ^
/datasets/git/ref-filter.c:512:15: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
                const char *s = params.items[i].string;
                            ^
/datasets/git/ref-filter.c:513:7: warning: variable 'position' is not initialized [cppcoreguidelines-init-variables]
                int position;
                    ^
                             = 0
/datasets/git/ref-filter.c:524:22: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        if (strtoul_ui(s, 10, &width)) {
                                          ^
/datasets/git/ref-filter.c:529:29: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                } else if (!strtoul_ui(s, 10, &width))
                                          ^
/datasets/git/ref-filter.c:529:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else if (!strtoul_ui(s, 10, &width))
                                                      ^
                                                       {
/datasets/git/ref-filter.c:531:13: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                else if ((position = parse_align_position(s)) >= 0)
                          ^
/datasets/git/ref-filter.c:531:13: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/ref-filter.c:531:13: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/ref-filter.c:531:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if ((position = parse_align_position(s)) >= 0)
                                                                   ^
                                                                    {
/datasets/git/ref-filter.c:549:46: warning: parameter 'format' is unused [misc-unused-parameters]
static int if_atom_parser(struct ref_format *format, struct used_atom *atom,
                                             ^
/datasets/git/ref-filter.c:555:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else if (skip_prefix(arg, "equals=", &atom->u.if_then_else.str)) {
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:559:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ref-filter.c:564:74: warning: parameter 'atom' is unused [misc-unused-parameters]
static int rest_atom_parser(struct ref_format *format, struct used_atom *atom,
                                                                         ^
/datasets/git/ref-filter.c:567:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (arg)
                ^
                 {
/datasets/git/ref-filter.c:573:48: warning: parameter 'format' is unused [misc-unused-parameters]
static int head_atom_parser(struct ref_format *format, struct used_atom *atom,
                                               ^
/datasets/git/ref-filter.c:574:20: warning: parameter 'arg' is unused [misc-unused-parameters]
                            const char *arg, struct strbuf *unused_err)
                                        ^
/datasets/git/ref-filter.c:574:40: warning: parameter 'unused_err' is unused [misc-unused-parameters]
                            const char *arg, struct strbuf *unused_err)
                                                            ^
/datasets/git/ref-filter.c:580:8: warning: accessing fields in struct '' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
static struct {
       ^
/datasets/git/ref-filter.c:580:8: note: use "__attribute__((aligned(32)))" to align struct '' to 32 bytes
/datasets/git/ref-filter.c:586:3: warning: variable 'valid_atom' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} valid_atom[] = {
  ^
/datasets/git/ref-filter.c:638:8: warning: accessing fields in struct 'ref_formatting_stack' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct ref_formatting_stack {
       ^
/datasets/git/ref-filter.c:638:8: note: use "__attribute__((aligned(64)))" to align struct 'ref_formatting_stack' to 64 bytes
/datasets/git/ref-filter.c:645:8: warning: accessing fields in struct 'ref_formatting_state' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct ref_formatting_state {
       ^
/datasets/git/ref-filter.c:645:8: note: use "__attribute__((aligned(16)))" to align struct 'ref_formatting_state' to 16 bytes
/datasets/git/ref-filter.c:650:8: warning: accessing fields in struct 'atom_value' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct atom_value {
       ^
/datasets/git/ref-filter.c:650:8: note: use "__attribute__((aligned(64)))" to align struct 'atom_value' to 64 bytes
/datasets/git/ref-filter.c:659:1: warning: replace macro with enum [modernize-macro-to-enum]
#define ATOM_SIZE_UNSPECIFIED (-1)
^~~~~~~~
                              =
/datasets/git/ref-filter.c:659:9: warning: macro 'ATOM_SIZE_UNSPECIFIED' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define ATOM_SIZE_UNSPECIFIED (-1)
        ^
/datasets/git/ref-filter.c:668:12: warning: function 'parse_ref_filter_atom' has cognitive complexity of 26 (threshold 25) [readability-function-cognitive-complexity]
static int parse_ref_filter_atom(struct ref_format *format,
           ^
/datasets/git/ref-filter.c:677:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (*sp == '*' && sp < ep)
        ^
/datasets/git/ref-filter.c:677:17: note: +1
        if (*sp == '*' && sp < ep)
                       ^
/datasets/git/ref-filter.c:679:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ep <= sp)
        ^
/datasets/git/ref-filter.c:690:18: note: +1, including nesting penalty of 0, nesting level increased to 1
        atom_len = (arg ? arg : ep) - sp;
                        ^
/datasets/git/ref-filter.c:693:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < used_atom_cnt; i++) {
        ^
/datasets/git/ref-filter.c:695:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (len == ep - atom && !memcmp(used_atom[i].name, atom, len))
                ^
/datasets/git/ref-filter.c:695:24: note: +1
                if (len == ep - atom && !memcmp(used_atom[i].name, atom, len))
                                     ^
/datasets/git/ref-filter.c:700:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < ARRAY_SIZE(valid_atom); i++) {
        ^
/datasets/git/ref-filter.c:702:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (len == atom_len && !memcmp(valid_atom[i].name, sp, len))
                ^
/datasets/git/ref-filter.c:702:23: note: +1
                if (len == atom_len && !memcmp(valid_atom[i].name, sp, len))
                                    ^
/datasets/git/ref-filter.c:706:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ARRAY_SIZE(valid_atom) <= i)
        ^
/datasets/git/ref-filter.c:709:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (valid_atom[i].source != SOURCE_NONE && !have_git_dir())
        ^
/datasets/git/ref-filter.c:709:42: note: +1
        if (valid_atom[i].source != SOURCE_NONE && !have_git_dir())
                                                ^
/datasets/git/ref-filter.c:722:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (used_atom[at].source == SOURCE_OBJ) {
        ^
/datasets/git/ref-filter.c:723:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*atom == '*')
                ^
/datasets/git/ref-filter.c:725:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/ref-filter.c:728:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (arg) {
        ^
/datasets/git/ref-filter.c:730:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!*arg) {
                ^
/datasets/git/ref-filter.c:739:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (valid_atom[i].parser && valid_atom[i].parser(format, &used_atom[at], arg, err))
        ^
/datasets/git/ref-filter.c:739:27: note: +1
        if (valid_atom[i].parser && valid_atom[i].parser(format, &used_atom[at], arg, err))
                                 ^
/datasets/git/ref-filter.c:741:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (*atom == '*')
        ^
/datasets/git/ref-filter.c:743:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (i == ATOM_SYMREF)
        ^
/datasets/git/ref-filter.c:669:36: warning: parameter name 'ep' is too short, expected at least 3 characters [readability-identifier-length]
                                 const char *atom, const char *ep,
                                                               ^
/datasets/git/ref-filter.c:672:14: warning: variable 'sp' is not initialized [cppcoreguidelines-init-variables]
        const char *sp;
                    ^
                       = NULL
/datasets/git/ref-filter.c:672:14: warning: variable name 'sp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ref-filter.c:673:14: warning: variable 'arg' is not initialized [cppcoreguidelines-init-variables]
        const char *arg;
                    ^
                        = NULL
/datasets/git/ref-filter.c:674:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, at, atom_len;
        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:674:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, at, atom_len;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ref-filter.c:674:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ref-filter.c:674:9: warning: variable 'at' is not initialized [cppcoreguidelines-init-variables]
        int i, at, atom_len;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ref-filter.c:674:9: warning: variable name 'at' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ref-filter.c:674:13: warning: variable 'atom_len' is not initialized [cppcoreguidelines-init-variables]
        int i, at, atom_len;
                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ref-filter.c:677:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*sp == '*' && sp < ep)
                                  ^
                                   {
/datasets/git/ref-filter.c:679:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ep <= sp)
                     ^
                      {
/datasets/git/ref-filter.c:690:13: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        atom_len = (arg ? arg : ep) - sp;
                   ^
/datasets/git/ref-filter.c:693:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < used_atom_cnt; i++) {
        ^
/datasets/git/ref-filter.c:694:13: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int len = strlen(used_atom[i].name);
                          ^
/datasets/git/ref-filter.c:695:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (len == ep - atom && !memcmp(used_atom[i].name, atom, len))
                                                                              ^
                                                                               {
/datasets/git/ref-filter.c:700:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ARRAY_SIZE(valid_atom); i++) {
        ^
/datasets/git/ref-filter.c:701:13: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int len = strlen(valid_atom[i].name);
                          ^
/datasets/git/ref-filter.c:702:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (len == atom_len && !memcmp(valid_atom[i].name, sp, len))
                                                                            ^
                                                                             {
/datasets/git/ref-filter.c:706:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ARRAY_SIZE(valid_atom) <= i)
                                        ^
                                         {
/datasets/git/ref-filter.c:709:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (valid_atom[i].source != SOURCE_NONE && !have_git_dir())
                                                                   ^
                                                                    {
/datasets/git/ref-filter.c:723:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*atom == '*')
                                 ^
                                  {
/datasets/git/ref-filter.c:725:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/ref-filter.c:738:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&used_atom[at].u, 0, sizeof(used_atom[at].u));
        ^~~~~~
/datasets/git/ref-filter.c:738:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&used_atom[at].u, 0, sizeof(used_atom[at].u));
        ^~~~~~
/datasets/git/ref-filter.c:739:85: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (valid_atom[i].parser && valid_atom[i].parser(format, &used_atom[at], arg, err))
                                                                                           ^
                                                                                            {
/datasets/git/ref-filter.c:741:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*atom == '*')
                         ^
                          {
/datasets/git/ref-filter.c:743:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (i == ATOM_SYMREF)
                             ^
                              {
/datasets/git/ref-filter.c:748:45: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void quote_formatting(struct strbuf *s, const char *str, ssize_t len, int quote_style)
                                            ^
/datasets/git/ref-filter.c:748:65: warning: 2 adjacent parameters of 'quote_formatting' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void quote_formatting(struct strbuf *s, const char *str, ssize_t len, int quote_style)
                                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:748:73: note: the first parameter in the range is 'len'
static void quote_formatting(struct strbuf *s, const char *str, ssize_t len, int quote_style)
                                                                        ^~~
/datasets/git/ref-filter.c:748:82: note: the last parameter in the range is 'quote_style'
static void quote_formatting(struct strbuf *s, const char *str, ssize_t len, int quote_style)
                                                                                 ^~~~~~~~~~~
/datasets/git/ref-filter.c:748:65: note: 
static void quote_formatting(struct strbuf *s, const char *str, ssize_t len, int quote_style)
                                                                ^
/datasets/git/ref-filter.c:748:78: note: 'ssize_t' and 'int' may be implicitly converted: 'ssize_t' (as 'long') -> 'int', 'int' -> 'ssize_t' (as 'long')
static void quote_formatting(struct strbuf *s, const char *str, ssize_t len, int quote_style)
                                                                             ^
/datasets/git/ref-filter.c:750:2: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
        switch (quote_style) {
        ^
/datasets/git/ref-filter.c:752:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (len < 0)
                            ^
                             {
/datasets/git/ref-filter.c:754:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/ref-filter.c:761:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (len < 0)
                            ^
                             {
/datasets/git/ref-filter.c:763:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/ref-filter.c:775:43: warning: parameter name 'v' is too short, expected at least 3 characters [readability-identifier-length]
static int append_atom(struct atom_value *v, struct ref_formatting_state *state,
                                          ^
/datasets/git/ref-filter.c:776:25: warning: parameter 'unused_err' is unused [misc-unused-parameters]
                       struct strbuf *unused_err)
                                      ^
/datasets/git/ref-filter.c:784:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!state->stack->prev)
                                ^
                                 {
/datasets/git/ref-filter.c:786:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (v->s_size < 0)
                               ^
                                {
/datasets/git/ref-filter.c:788:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/ref-filter.c:795:31: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
        struct ref_formatting_stack *s = xcalloc(1, sizeof(struct ref_formatting_stack));
                                     ^
/datasets/git/ref-filter.c:807:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prev)
                 ^
                  {
/datasets/git/ref-filter.c:818:16: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf s = STRBUF_INIT;
                      ^
/datasets/git/ref-filter.c:826:25: warning: parameter 'unused_err' is unused [misc-unused-parameters]
                              struct strbuf *unused_err)
                                             ^
/datasets/git/ref-filter.c:828:31: warning: variable 'new_stack' is not initialized [cppcoreguidelines-init-variables]
        struct ref_formatting_stack *new_stack;
                                     ^
                                               = NULL
/datasets/git/ref-filter.c:843:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!if_then_else->then_atom_seen)
                                          ^
                                           {
/datasets/git/ref-filter.c:873:22: warning: parameter 'unused_err' is unused [misc-unused-parameters]
                           struct strbuf *unused_err)
                                          ^
/datasets/git/ref-filter.c:875:31: warning: variable 'new_stack' is not initialized [cppcoreguidelines-init-variables]
        struct ref_formatting_stack *new_stack;
                                     ^
                                               = NULL
/datasets/git/ref-filter.c:894:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (cur != end && (isspace(*cur)))
        ^
/datasets/git/ref-filter.c:894:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'cur' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (cur != end && (isspace(*cur)))
               ^
/datasets/git/ref-filter.c:894:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        while (cur != end && (isspace(*cur)))
                              ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/ref-filter.c:894:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (cur != end && (isspace(*cur)))
                                             ^
                                              {
/datasets/git/ref-filter.c:900:49: warning: parameter 'atomv' is unused [misc-unused-parameters]
static int then_atom_handler(struct atom_value *atomv, struct ref_formatting_state *state,
                                                ^
/datasets/git/ref-filter.c:907:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cur->at_end == if_then_else_handler)
                                                ^
                                                 {
/datasets/git/ref-filter.c:909:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!if_then_else)
                          ^
                           {
/datasets/git/ref-filter.c:911:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (if_then_else->then_atom_seen)
                                         ^
                                          {
/datasets/git/ref-filter.c:913:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (if_then_else->else_atom_seen)
                                         ^
                                          {
/datasets/git/ref-filter.c:916:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (if_then_else->str)
                              ^
                               {
/datasets/git/ref-filter.c:925:8: warning: Null pointer passed to 1st parameter expecting 'nonnull' [clang-analyzer-core.NonNullParamChecker]
                    !memcmp(if_then_else->str, cur->output.buf, cur->output.len))
                     ^      ~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:907:6: note: Assuming field 'at_end' is equal to if_then_else_handler
        if (cur->at_end == if_then_else_handler)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:907:2: note: Taking true branch
        if (cur->at_end == if_then_else_handler)
        ^
/datasets/git/ref-filter.c:909:6: note: Assuming 'if_then_else' is non-null
        if (!if_then_else)
            ^~~~~~~~~~~~~
/datasets/git/ref-filter.c:909:2: note: Taking false branch
        if (!if_then_else)
        ^
/datasets/git/ref-filter.c:911:6: note: Assuming field 'then_atom_seen' is 0
        if (if_then_else->then_atom_seen)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:911:2: note: Taking false branch
        if (if_then_else->then_atom_seen)
        ^
/datasets/git/ref-filter.c:913:6: note: Assuming field 'else_atom_seen' is 0
        if (if_then_else->else_atom_seen)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:913:2: note: Taking false branch
        if (if_then_else->else_atom_seen)
        ^
/datasets/git/ref-filter.c:916:6: note: Assuming field 'str' is null
        if (if_then_else->str)
            ^~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:916:2: note: Taking false branch
        if (if_then_else->str)
        ^
/datasets/git/ref-filter.c:923:6: note: Assuming field 'cmp_status' is equal to COMPARE_EQUAL
        if (if_then_else->cmp_status == COMPARE_EQUAL) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:923:2: note: Taking true branch
        if (if_then_else->cmp_status == COMPARE_EQUAL) {
        ^
/datasets/git/ref-filter.c:924:7: note: Assuming 'str_len' is equal to field 'len'
                if (str_len == cur->output.len &&
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:924:7: note: Left side of '&&' is true
/datasets/git/ref-filter.c:925:8: note: Null pointer passed to 1st parameter expecting 'nonnull'
                    !memcmp(if_then_else->str, cur->output.buf, cur->output.len))
                     ^      ~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:925:68: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !memcmp(if_then_else->str, cur->output.buf, cur->output.len))
                                                                                 ^
                                                                                  {
/datasets/git/ref-filter.c:929:7: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                    memcmp(if_then_else->str, cur->output.buf, cur->output.len))
                    ^
                                                                                != 0
/datasets/git/ref-filter.c:929:7: warning: Null pointer passed to 1st parameter expecting 'nonnull' [clang-analyzer-core.NonNullParamChecker]
                    memcmp(if_then_else->str, cur->output.buf, cur->output.len))
                    ^      ~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:907:6: note: Assuming field 'at_end' is equal to if_then_else_handler
        if (cur->at_end == if_then_else_handler)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:907:2: note: Taking true branch
        if (cur->at_end == if_then_else_handler)
        ^
/datasets/git/ref-filter.c:909:6: note: Assuming 'if_then_else' is non-null
        if (!if_then_else)
            ^~~~~~~~~~~~~
/datasets/git/ref-filter.c:909:2: note: Taking false branch
        if (!if_then_else)
        ^
/datasets/git/ref-filter.c:911:6: note: Assuming field 'then_atom_seen' is 0
        if (if_then_else->then_atom_seen)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:911:2: note: Taking false branch
        if (if_then_else->then_atom_seen)
        ^
/datasets/git/ref-filter.c:913:6: note: Assuming field 'else_atom_seen' is 0
        if (if_then_else->else_atom_seen)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:913:2: note: Taking false branch
        if (if_then_else->else_atom_seen)
        ^
/datasets/git/ref-filter.c:916:6: note: Assuming field 'str' is null
        if (if_then_else->str)
            ^~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:916:2: note: Taking false branch
        if (if_then_else->str)
        ^
/datasets/git/ref-filter.c:923:6: note: Assuming field 'cmp_status' is not equal to COMPARE_EQUAL
        if (if_then_else->cmp_status == COMPARE_EQUAL) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:923:2: note: Taking false branch
        if (if_then_else->cmp_status == COMPARE_EQUAL) {
        ^
/datasets/git/ref-filter.c:927:13: note: Assuming field 'cmp_status' is equal to COMPARE_UNEQUAL
        } else if (if_then_else->cmp_status == COMPARE_UNEQUAL) {
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:927:9: note: Taking true branch
        } else if (if_then_else->cmp_status == COMPARE_UNEQUAL) {
               ^
/datasets/git/ref-filter.c:928:7: note: Assuming 'str_len' is equal to field 'len'
                if (str_len != cur->output.len ||
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:928:7: note: Left side of '||' is false
/datasets/git/ref-filter.c:929:7: note: Null pointer passed to 1st parameter expecting 'nonnull'
                    memcmp(if_then_else->str, cur->output.buf, cur->output.len))
                    ^      ~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:929:67: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    memcmp(if_then_else->str, cur->output.buf, cur->output.len))
                                                                                ^
                                                                                 {
/datasets/git/ref-filter.c:931:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else if (cur->output.len && !is_empty(&cur->output))
                                                              ^
                                                               {
/datasets/git/ref-filter.c:937:49: warning: parameter 'atomv' is unused [misc-unused-parameters]
static int else_atom_handler(struct atom_value *atomv, struct ref_formatting_state *state,
                                                ^
/datasets/git/ref-filter.c:943:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prev->at_end == if_then_else_handler)
                                                 ^
                                                  {
/datasets/git/ref-filter.c:945:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!if_then_else)
                          ^
                           {
/datasets/git/ref-filter.c:947:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!if_then_else->then_atom_seen)
                                          ^
                                           {
/datasets/git/ref-filter.c:949:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (if_then_else->else_atom_seen)
                                         ^
                                          {
/datasets/git/ref-filter.c:958:48: warning: parameter 'atomv' is unused [misc-unused-parameters]
static int end_atom_handler(struct atom_value *atomv, struct ref_formatting_state *state,
                                               ^
/datasets/git/ref-filter.c:962:16: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf s = STRBUF_INIT;
                      ^
/datasets/git/ref-filter.c:964:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!current->at_end)
                             ^
                              {
/datasets/git/ref-filter.c:977:45: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'ssize_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                quote_formatting(&s, current->output.buf, current->output.len, state->quote_style);
                                                          ^
/datasets/git/ref-filter.c:988:42: warning: parameter name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
static const char *find_next(const char *cp)
                                         ^
/datasets/git/ref-filter.c:990:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*cp) {
        ^
/datasets/git/ref-filter.c:996:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (cp[1] == '(')
                                         ^
                                          {
/datasets/git/ref-filter.c:998:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                        else if (cp[1] == '%')
                        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:998:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (cp[1] == '%')
                                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ref-filter.c:1018:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *cp, *sp;
        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:1018:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/ref-filter.c:1018:14: warning: variable 'cp' is not initialized [cppcoreguidelines-init-variables]
        const char *cp, *sp;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ref-filter.c:1018:14: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ref-filter.c:1018:19: warning: variable 'sp' is not initialized [cppcoreguidelines-init-variables]
        const char *cp, *sp;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ref-filter.c:1018:19: warning: variable name 'sp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ref-filter.c:1021:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cp = format->format; *cp && (sp = find_next(cp)); ) {
        ^
/datasets/git/ref-filter.c:1021:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cp' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (cp = format->format; *cp && (sp = find_next(cp)); ) {
                                  ^
/datasets/git/ref-filter.c:1023:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                const char *color, *ep = strchr(sp, ')');
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:1023:15: warning: variable 'color' is not initialized [cppcoreguidelines-init-variables]
                const char *color, *ep = strchr(sp, ')');
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ref-filter.c:1023:23: warning: variable name 'ep' is too short, expected at least 3 characters [readability-identifier-length]
                const char *color, *ep = strchr(sp, ')');
                                    ^
/datasets/git/ref-filter.c:1024:7: warning: variable 'at' is not initialized [cppcoreguidelines-init-variables]
                int at;
                    ^
                       = 0
/datasets/git/ref-filter.c:1024:7: warning: variable name 'at' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ref-filter.c:1026:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ep)
                        ^
                         {
/datasets/git/ref-filter.c:1030:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (at < 0)
                           ^
                            {
/datasets/git/ref-filter.c:1032:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (reject_atom(used_atom[at].atom_type))
                                                         ^
                                                          {
/datasets/git/ref-filter.c:1039:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                     used_atom[at].u.raw_data.option == RAW_BARE)
                                                                 ^
                                                                  {
/datasets/git/ref-filter.c:1044:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (skip_prefix(used_atom[at].name, "color:", &color))
                                                                      ^
                                                                       {
/datasets/git/ref-filter.c:1048:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (format->need_color_reset_at_eol && !want_color(format->use_color))
                                                                              ^
                                                                               {
/datasets/git/ref-filter.c:1069:26: warning: parameter name 'v' is too short, expected at least 3 characters [readability-identifier-length]
                    struct atom_value *v, struct used_atom *atom)
                                       ^
/datasets/git/ref-filter.c:1079:87: warning: parameter name 'oi' is too short, expected at least 3 characters [readability-identifier-length]
static void grab_common_values(struct atom_value *val, int deref, struct expand_data *oi)
                                                                                      ^
/datasets/git/ref-filter.c:1081:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/ref-filter.c:1081:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ref-filter.c:1083:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < used_atom_cnt; i++) {
        ^
/datasets/git/ref-filter.c:1086:22: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
                struct atom_value *v = &val[i];
                                   ^
/datasets/git/ref-filter.c:1087:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!!deref != (*name == '*'))
                                              ^
                                               {
/datasets/git/ref-filter.c:1089:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (deref)
                          ^
                           {
/datasets/git/ref-filter.c:1091:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (atom_type == ATOM_OBJECTTYPE)
                                                 ^
                                                  {
/datasets/git/ref-filter.c:1101:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else if (atom_type == ATOM_DELTABASE)
                                                       ^
                                                        {
/datasets/git/ref-filter.c:1103:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (atom_type == ATOM_OBJECTNAME && deref)
                                                               ^
                                                                {
/datasets/git/ref-filter.c:1111:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/ref-filter.c:1111:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ref-filter.c:1114:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < used_atom_cnt; i++) {
        ^
/datasets/git/ref-filter.c:1117:22: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
                struct atom_value *v = &val[i];
                                   ^
/datasets/git/ref-filter.c:1118:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!!deref != (*name == '*'))
                                              ^
                                               {
/datasets/git/ref-filter.c:1120:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (deref)
                          ^
                           {
/datasets/git/ref-filter.c:1122:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (atom_type == ATOM_TAG)
                                          ^
                                           {
/datasets/git/ref-filter.c:1124:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (atom_type == ATOM_TYPE && tag->tagged)
                                                               ^
                                                                {
/datasets/git/ref-filter.c:1126:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (atom_type == ATOM_OBJECT && tag->tagged)
                                                                 ^
                                                                  {
/datasets/git/ref-filter.c:1134:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/ref-filter.c:1134:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ref-filter.c:1140:22: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
                struct atom_value *v = &val[i];
                                   ^
/datasets/git/ref-filter.c:1153:4: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                        struct commit_list *parents;
                        ^
/datasets/git/ref-filter.c:1141:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!!deref != (*name == '*'))
                                              ^
                                               {
/datasets/git/ref-filter.c:1143:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (deref)
                          ^
                           {
/datasets/git/ref-filter.c:1146:77: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    grab_oid(name, "tree", get_commit_tree_oid(commit), v, &used_atom[i]))
                                                                                          ^
                                                                                           {
/datasets/git/ref-filter.c:1153:24: warning: variable 'parents' is not initialized [cppcoreguidelines-init-variables]
                        struct commit_list *parents;
                                            ^
                                                    = NULL
/datasets/git/ref-filter.c:1154:18: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
                        struct strbuf s = STRBUF_INIT;
                                      ^
/datasets/git/ref-filter.c:1155:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (parents = commit->parents; parents; parents = parents->next) {
                        ^
/datasets/git/ref-filter.c:1155:36: warning: backward branch (for loop) is ID-dependent due to variable reference to 'parents' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (parents = commit->parents; parents; parents = parents->next) {
                                                        ^
/datasets/git/ref-filter.c:1157:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (parents != commit->parents)
                                                               ^
                                                                {
/datasets/git/ref-filter.c:1168:14: warning: variable 'eol' is not initialized [cppcoreguidelines-init-variables]
        const char *eol;
                    ^
                        = NULL
/datasets/git/ref-filter.c:1169:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*buf) {
        ^
/datasets/git/ref-filter.c:1169:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'buf' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (*buf) {
               ^
/datasets/git/ref-filter.c:1171:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    buf[wholen] == ' ')
                                       ^
                                        {
/datasets/git/ref-filter.c:1174:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!eol)
                         ^
                          {
/datasets/git/ref-filter.c:1177:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*eol == '\n')
                                 ^
                                  {
/datasets/git/ref-filter.c:1192:14: warning: variable 'cp' is not initialized [cppcoreguidelines-init-variables]
        const char *cp;
                    ^
                       = NULL
/datasets/git/ref-filter.c:1192:14: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ref-filter.c:1193:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cp = buf; *cp && *cp != '\n'; cp++) {
        ^
/datasets/git/ref-filter.c:1193:17: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cp' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (cp = buf; *cp && *cp != '\n'; cp++) {
                       ^
/datasets/git/ref-filter.c:1194:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strncmp(cp, " <", 2))
                                          ^
                                           {
/datasets/git/ref-filter.c:1203:14: warning: variable 'eoemail' is not initialized [cppcoreguidelines-init-variables]
        const char *eoemail;
                    ^
                            = NULL
/datasets/git/ref-filter.c:1204:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!email)
                   ^
                    {
/datasets/git/ref-filter.c:1209:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (eoemail)
                            ^
                             {
/datasets/git/ref-filter.c:1219:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!eoemail)
                             ^
                              {
/datasets/git/ref-filter.c:1226:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!eoemail)
                     ^
                      {
/datasets/git/ref-filter.c:1233:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/ref-filter.c:1234:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/ref-filter.c:1234:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ref-filter.c:1236:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < len; i++) {
        ^
/datasets/git/ref-filter.c:1237:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (buf[i] == '\r' && i + 1 < len && buf[i + 1] == '\n')
                                                                        ^
                                                                         {
/datasets/git/ref-filter.c:1240:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (buf[i] == '\n')
                                   ^
                                    {
/datasets/git/ref-filter.c:1242:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/ref-filter.c:1248:59: warning: parameter name 'v' is too short, expected at least 3 characters [readability-identifier-length]
static void grab_date(const char *buf, struct atom_value *v, const char *atomname)
                                                          ^
/datasets/git/ref-filter.c:1251:8: warning: variable 'zone' is not initialized [cppcoreguidelines-init-variables]
        char *zone;
              ^
                   = NULL
/datasets/git/ref-filter.c:1252:14: warning: variable 'timestamp' is not initialized [cppcoreguidelines-init-variables]
        timestamp_t timestamp;
                    ^
                              = 0
/datasets/git/ref-filter.c:1253:7: warning: variable 'tz' is not initialized [cppcoreguidelines-init-variables]
        long tz;
             ^
                = 0
/datasets/git/ref-filter.c:1253:7: warning: variable name 'tz' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ref-filter.c:1255:14: warning: variable 'formatp' is not initialized [cppcoreguidelines-init-variables]
        const char *formatp;
                    ^
                            = NULL
/datasets/git/ref-filter.c:1269:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!eoemail)
                     ^
                      {
/datasets/git/ref-filter.c:1271:50: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        timestamp = parse_timestamp(eoemail + 2, &zone, 10);
                                                        ^
/datasets/git/ref-filter.c:1272:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (timestamp == TIME_MAX)
                                  ^
                                   {
/datasets/git/ref-filter.c:1274:26: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        tz = strtol(zone, NULL, 10);
                                ^
/datasets/git/ref-filter.c:1275:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((tz == LONG_MIN || tz == LONG_MAX) && errno == ERANGE)
                                                                  ^
                                                                   {
/datasets/git/ref-filter.c:1277:38: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        v->s = xstrdup(show_date(timestamp, tz, &date_mode));
                                            ^
/datasets/git/ref-filter.c:1287:13: warning: function 'grab_person' has cognitive complexity of 31 (threshold 25) [readability-function-cognitive-complexity]
static void grab_person(const char *who, struct atom_value *val, int deref, void *buf)
            ^
/datasets/git/ref-filter.c:1293:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < used_atom_cnt; i++) {
        ^
/datasets/git/ref-filter.c:1296:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!!deref != (*name == '*'))
                ^
/datasets/git/ref-filter.c:1298:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (deref)
                ^
/datasets/git/ref-filter.c:1300:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (strncmp(who, name, wholen))
                ^
/datasets/git/ref-filter.c:1302:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (name[wholen] != 0 &&
                ^
/datasets/git/ref-filter.c:1304:44: note: +1
                    !starts_with(name + wholen, "email") &&
                                                         ^
/datasets/git/ref-filter.c:1307:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!wholine)
                ^
/datasets/git/ref-filter.c:1309:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!wholine)
                ^
/datasets/git/ref-filter.c:1311:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (name[wholen] == 0)
                ^
/datasets/git/ref-filter.c:1313:8: note: +1, nesting level increased to 2
                else if (!strcmp(name + wholen, "name"))
                     ^
/datasets/git/ref-filter.c:1315:8: note: +1, nesting level increased to 2
                else if (starts_with(name + wholen, "email"))
                     ^
/datasets/git/ref-filter.c:1317:8: note: +1, nesting level increased to 2
                else if (starts_with(name + wholen, "date"))
                     ^
/datasets/git/ref-filter.c:1325:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (strcmp(who, "tagger") && strcmp(who, "committer"))
        ^
/datasets/git/ref-filter.c:1325:28: note: +1
        if (strcmp(who, "tagger") && strcmp(who, "committer"))
                                  ^
/datasets/git/ref-filter.c:1327:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!wholine)
        ^
/datasets/git/ref-filter.c:1329:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!wholine)
        ^
/datasets/git/ref-filter.c:1331:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < used_atom_cnt; i++) {
        ^
/datasets/git/ref-filter.c:1335:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!!deref != (*name == '*'))
                ^
/datasets/git/ref-filter.c:1337:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (deref)
                ^
/datasets/git/ref-filter.c:1340:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (atom_type == ATOM_CREATORDATE)
                ^
/datasets/git/ref-filter.c:1342:8: note: +1, nesting level increased to 2
                else if (atom_type == ATOM_CREATOR)
                     ^
/datasets/git/ref-filter.c:1289:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/ref-filter.c:1289:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ref-filter.c:1290:15: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int wholen = strlen(who);
                     ^
/datasets/git/ref-filter.c:1293:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < used_atom_cnt; i++) {
        ^
/datasets/git/ref-filter.c:1295:22: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
                struct atom_value *v = &val[i];
                                   ^
/datasets/git/ref-filter.c:1296:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!!deref != (*name == '*'))
                                              ^
                                               {
/datasets/git/ref-filter.c:1298:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (deref)
                          ^
                           {
/datasets/git/ref-filter.c:1300:7: warning: function 'strncmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (strncmp(who, name, wholen))
                    ^
                                               != 0
/datasets/git/ref-filter.c:1300:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strncmp(who, name, wholen))
                                               ^
                                                {
/datasets/git/ref-filter.c:1303:7: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                    strcmp(name + wholen, "name") &&
                    ^
                                                  != 0
/datasets/git/ref-filter.c:1305:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !starts_with(name + wholen, "date"))
                                                        ^
                                                         {
/datasets/git/ref-filter.c:1307:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!wholine)
                             ^
                              {
/datasets/git/ref-filter.c:1309:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!wholine)
                             ^
                              {
/datasets/git/ref-filter.c:1311:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (name[wholen] == 0)
                                      ^
                                       {
/datasets/git/ref-filter.c:1313:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(name + wholen, "name"))
                                                        ^
                                                         {
/datasets/git/ref-filter.c:1315:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (starts_with(name + wholen, "email"))
                                                             ^
                                                              {
/datasets/git/ref-filter.c:1317:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (starts_with(name + wholen, "date"))
                                                            ^
                                                             {
/datasets/git/ref-filter.c:1325:6: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (strcmp(who, "tagger") && strcmp(who, "committer"))
            ^
                                  != 0
/datasets/git/ref-filter.c:1325:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strcmp(who, "tagger") && strcmp(who, "committer"))
                                                              ^
                                                               {
/datasets/git/ref-filter.c:1327:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!wholine)
                     ^
                      {
/datasets/git/ref-filter.c:1329:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!wholine)
                     ^
                      {
/datasets/git/ref-filter.c:1331:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < used_atom_cnt; i++) {
        ^
/datasets/git/ref-filter.c:1334:22: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
                struct atom_value *v = &val[i];
                                   ^
/datasets/git/ref-filter.c:1335:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!!deref != (*name == '*'))
                                              ^
                                               {
/datasets/git/ref-filter.c:1337:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (deref)
                          ^
                           {
/datasets/git/ref-filter.c:1340:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (atom_type == ATOM_CREATORDATE)
                                                  ^
                                                   {
/datasets/git/ref-filter.c:1342:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (atom_type == ATOM_CREATOR)
                                                   ^
                                                    {
/datasets/git/ref-filter.c:1349:23: warning: 2 adjacent parameters of 'find_subpos' of similar type ('size_t *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                        const char **body, size_t *bodylen,
                                           ^~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:1349:31: note: the first parameter in the range is 'bodylen'
                        const char **body, size_t *bodylen,
                                                   ^~~~~~~
/datasets/git/ref-filter.c:1350:12: note: the last parameter in the range is 'nonsiglen'
                        size_t *nonsiglen,
                                ^~~~~~~~~
/datasets/git/ref-filter.c:1347:25: note: inferred assignment of ID-dependent value from ID-dependent variable eol [altera-id-dependent-backward-branch]
static void find_subpos(const char *buf,
                        ^
/datasets/git/ref-filter.c:1355:14: warning: variable 'eol' is not initialized [cppcoreguidelines-init-variables]
        const char *eol;
                    ^
                        = NULL
/datasets/git/ref-filter.c:1357:14: warning: variable 'sigstart' is not initialized [cppcoreguidelines-init-variables]
        const char *sigstart;
                    ^
                             = NULL
/datasets/git/ref-filter.c:1363:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*buf && *buf != '\n') {
        ^
/datasets/git/ref-filter.c:1363:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'buf' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (*buf && *buf != '\n') {
               ^
/datasets/git/ref-filter.c:1365:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*eol)
                         ^
                          {
/datasets/git/ref-filter.c:1370:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*buf == '\n')
        ^
/datasets/git/ref-filter.c:1370:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'buf' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (*buf == '\n')
               ^
/datasets/git/ref-filter.c:1370:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (*buf == '\n')
                            ^
                             {
/datasets/git/ref-filter.c:1378:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if ((eol = strstr(*sub, "\n\n")) ||
             ^
/datasets/git/ref-filter.c:1378:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/ref-filter.c:1378:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/ref-filter.c:1379:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
            (eol = strstr(*sub, "\r\n\r\n"))) {
             ^
/datasets/git/ref-filter.c:1379:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/ref-filter.c:1379:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/ref-filter.c:1388:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*sublen && ((*sub)[*sublen - 1] == '\n' ||
        ^
/datasets/git/ref-filter.c:1389:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                           (*sub)[*sublen - 1] == '\r'))
                                                        ^
                                                         {
/datasets/git/ref-filter.c:1393:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*buf == '\n' || *buf == '\r')
        ^
/datasets/git/ref-filter.c:1393:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'buf' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (*buf == '\n' || *buf == '\r')
               ^
/datasets/git/ref-filter.c:1393:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (*buf == '\n' || *buf == '\r')
                                            ^
                                             {
/datasets/git/ref-filter.c:1406:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/ref-filter.c:1406:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ref-filter.c:1407:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *sp, *eol;
        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:1407:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/ref-filter.c:1407:14: warning: variable 'sp' is not initialized [cppcoreguidelines-init-variables]
        const char *sp, *eol;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ref-filter.c:1407:14: warning: variable name 'sp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ref-filter.c:1407:19: warning: variable 'eol' is not initialized [cppcoreguidelines-init-variables]
        const char *sp, *eol;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ref-filter.c:1408:9: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        size_t len;
               ^
                   = 0
/datasets/git/ref-filter.c:1412:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < lines && sp < buf + size; i++) {
        ^
/datasets/git/ref-filter.c:1412:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'sp' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < lines && sp < buf + size; i++) {
                    ^
/datasets/git/ref-filter.c:1413:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (i)
                      ^
                       {
/datasets/git/ref-filter.c:1418:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!eol)
                         ^
                          {
/datasets/git/ref-filter.c:1425:13: warning: function 'grab_sub_body_contents' has cognitive complexity of 28 (threshold 25) [readability-function-cognitive-complexity]
static void grab_sub_body_contents(struct atom_value *val, int deref, struct expand_data *data)
            ^
/datasets/git/ref-filter.c:1432:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < used_atom_cnt; i++) {
        ^
/datasets/git/ref-filter.c:1438:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!!deref != (*name == '*'))
                ^
/datasets/git/ref-filter.c:1440:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (deref)
                ^
/datasets/git/ref-filter.c:1443:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (atom_type == ATOM_RAW) {
                ^
/datasets/git/ref-filter.c:1446:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (atom->u.raw_data.option == RAW_BARE) {
                        ^
/datasets/git/ref-filter.c:1449:11: note: +1, nesting level increased to 3
                        } else if (atom->u.raw_data.option == RAW_LENGTH) {
                               ^
/datasets/git/ref-filter.c:1455:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((data->type != OBJ_TAG &&
                ^
/datasets/git/ref-filter.c:1456:34: note: +1
                     data->type != OBJ_COMMIT) ||
                                               ^
/datasets/git/ref-filter.c:1455:30: note: +1
                if ((data->type != OBJ_TAG &&
                                           ^
/datasets/git/ref-filter.c:1459:39: note: +1
                     !starts_with(name, "trailers") &&
                                                    ^
/datasets/git/ref-filter.c:1462:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!subpos)
                ^
/datasets/git/ref-filter.c:1468:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (atom->u.contents.option == C_SUB)
                ^
/datasets/git/ref-filter.c:1470:8: note: +1, nesting level increased to 2
                else if (atom->u.contents.option == C_SUB_SANITIZE) {
                     ^
/datasets/git/ref-filter.c:1474:10: note: +1, nesting level increased to 2
                } else if (atom->u.contents.option == C_BODY_DEP)
                       ^
/datasets/git/ref-filter.c:1476:8: note: +1, nesting level increased to 2
                else if (atom->u.contents.option == C_LENGTH)
                     ^
/datasets/git/ref-filter.c:1478:8: note: +1, nesting level increased to 2
                else if (atom->u.contents.option == C_BODY)
                     ^
/datasets/git/ref-filter.c:1480:8: note: +1, nesting level increased to 2
                else if (atom->u.contents.option == C_SIG)
                     ^
/datasets/git/ref-filter.c:1482:8: note: +1, nesting level increased to 2
                else if (atom->u.contents.option == C_LINES) {
                     ^
/datasets/git/ref-filter.c:1489:10: note: +1, nesting level increased to 2
                } else if (atom->u.contents.option == C_TRAILERS) {
                       ^
/datasets/git/ref-filter.c:1496:10: note: +1, nesting level increased to 2
                } else if (atom->u.contents.option == C_BARE)
                       ^
/datasets/git/ref-filter.c:1427:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/ref-filter.c:1427:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ref-filter.c:1428:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *subpos = NULL, *bodypos = NULL, *sigpos = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:1429:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t sublen = 0, bodylen = 0, nonsiglen = 0, siglen = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:1432:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < used_atom_cnt; i++) {
        ^
/datasets/git/ref-filter.c:1435:22: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
                struct atom_value *v = &val[i];
                                   ^
/datasets/git/ref-filter.c:1438:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!!deref != (*name == '*'))
                                              ^
                                               {
/datasets/git/ref-filter.c:1440:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (deref)
                          ^
                           {
/datasets/git/ref-filter.c:1448:17: warning: narrowing conversion from 'unsigned long' to signed type 'ssize_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                v->s_size = buf_size;
                                            ^
/datasets/git/ref-filter.c:1457:8: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                    (strcmp(name, "body") &&
                     ^
                                          != 0
/datasets/git/ref-filter.c:1460:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                     !starts_with(name, "contents")))
                                                     ^
                                                      {
/datasets/git/ref-filter.c:1462:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!subpos)
                            ^
                             {
/datasets/git/ref-filter.c:1468:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (atom->u.contents.option == C_SUB)
                                                     ^
                                                      {
/datasets/git/ref-filter.c:1471:18: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                        struct strbuf sb = STRBUF_INIT;
                                      ^
/datasets/git/ref-filter.c:1474:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else if (atom->u.contents.option == C_BODY_DEP)
                                                                 ^
                                                                  {
/datasets/git/ref-filter.c:1476:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (atom->u.contents.option == C_LENGTH)
                                                             ^
                                                              {
/datasets/git/ref-filter.c:1478:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (atom->u.contents.option == C_BODY)
                                                           ^
                                                            {
/datasets/git/ref-filter.c:1480:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (atom->u.contents.option == C_SIG)
                                                          ^
                                                           {
/datasets/git/ref-filter.c:1483:18: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
                        struct strbuf s = STRBUF_INIT;
                                      ^
/datasets/git/ref-filter.c:1487:52: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        append_lines(&s, subpos, contents_end - subpos, atom->u.contents.nlines);
                                                                        ^
/datasets/git/ref-filter.c:1490:18: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
                        struct strbuf s = STRBUF_INIT;
                                      ^
/datasets/git/ref-filter.c:1496:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else if (atom->u.contents.option == C_BARE)
                                                             ^
                                                              {
/datasets/git/ref-filter.c:1509:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/ref-filter.c:1509:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ref-filter.c:1510:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < used_atom_cnt; i++) {
        ^
/datasets/git/ref-filter.c:1511:22: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
                struct atom_value *v = &val[i];
                                   ^
/datasets/git/ref-filter.c:1512:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!v->s)
                          ^
                           {
/datasets/git/ref-filter.c:1540:2: warning: switch has 2 consecutive identical branches [bugprone-branch-clone]
        case OBJ_TREE:
        ^
/datasets/git/ref-filter.c:1547:8: note: last of these clones ends here
                break;
                     ^
/datasets/git/ref-filter.c:1555:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*src)
        ^
/datasets/git/ref-filter.c:1562:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        long remaining = len;
        ^
/datasets/git/ref-filter.c:1555:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (*src)
                    ^
                     {
/datasets/git/ref-filter.c:1567:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/ref-filter.c:1567:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ref-filter.c:1568:15: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                const char *p = refname;
                            ^
/datasets/git/ref-filter.c:1600:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        long remaining = len;
        ^
/datasets/git/ref-filter.c:1571:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; p[i]; p[i] == '/' ? i++ : *p++)
                ^
/datasets/git/ref-filter.c:1571:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; p[i]; p[i] == '/' ? i++ : *p++)
                            ^
/datasets/git/ref-filter.c:1571:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; p[i]; p[i] == '/' ? i++ : *p++)
                                                           ^
                                                            {
/datasets/git/ref-filter.c:1582:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (remaining > 0) {
        ^
/datasets/git/ref-filter.c:1582:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'remaining' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (remaining > 0) {
               ^
/datasets/git/ref-filter.c:1605:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/ref-filter.c:1605:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ref-filter.c:1606:15: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                const char *p = refname;
                            ^
/datasets/git/ref-filter.c:1609:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; p[i]; p[i] == '/' ? i++ : *p++)
                ^
/datasets/git/ref-filter.c:1609:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; p[i]; p[i] == '/' ? i++ : *p++)
                            ^
/datasets/git/ref-filter.c:1609:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; p[i]; p[i] == '/' ? i++ : *p++)
                                                           ^
                                                            {
/datasets/git/ref-filter.c:1620:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (remaining-- > 0) {
        ^
/datasets/git/ref-filter.c:1620:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'remaining' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (remaining-- > 0) {
               ^
/datasets/git/ref-filter.c:1621:9: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                char *p = strrchr(start, '/');
                      ^
/datasets/git/ref-filter.c:1625:5: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                } else
                  ^~~~
                                        p[0] = '\0'
/datasets/git/ref-filter.c:1625:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ref-filter.c:1633:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (atom->option == R_SHORT)
                                    ^
                                     {
/datasets/git/ref-filter.c:1635:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (atom->option == R_LSTRIP)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:1635:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (atom->option == R_LSTRIP)
                                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ref-filter.c:1637:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (atom->option == R_RSTRIP)
                                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ref-filter.c:1639:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ref-filter.c:1643:13: warning: function 'fill_remote_ref_details' has cognitive complexity of 30 (threshold 25) [readability-function-cognitive-complexity]
static void fill_remote_ref_details(struct used_atom *atom, const char *refname,
            ^
/datasets/git/ref-filter.c:1647:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (atom->u.remote_ref.option == RR_REF)
        ^
/datasets/git/ref-filter.c:1649:7: note: +1, nesting level increased to 1
        else if (atom->u.remote_ref.option == RR_TRACK) {
             ^
/datasets/git/ref-filter.c:1650:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (stat_tracking_info(branch, &num_ours, &num_theirs,
                ^
/datasets/git/ref-filter.c:1654:10: note: +1, nesting level increased to 2
                } else if (!num_ours && !num_theirs)
                       ^
/datasets/git/ref-filter.c:1654:24: note: +1
                } else if (!num_ours && !num_theirs)
                                     ^
/datasets/git/ref-filter.c:1656:8: note: +1, nesting level increased to 2
                else if (!num_ours)
                     ^
/datasets/git/ref-filter.c:1658:8: note: +1, nesting level increased to 2
                else if (!num_theirs)
                     ^
/datasets/git/ref-filter.c:1660:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/ref-filter.c:1663:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!atom->u.remote_ref.nobracket && *s[0]) {
                ^
/datasets/git/ref-filter.c:1663:37: note: +1
                if (!atom->u.remote_ref.nobracket && *s[0]) {
                                                  ^
/datasets/git/ref-filter.c:1668:9: note: +1, nesting level increased to 1
        } else if (atom->u.remote_ref.option == RR_TRACKSHORT) {
               ^
/datasets/git/ref-filter.c:1669:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (stat_tracking_info(branch, &num_ours, &num_theirs,
                ^
/datasets/git/ref-filter.c:1675:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!num_ours && !num_theirs)
                ^
/datasets/git/ref-filter.c:1675:17: note: +1
                if (!num_ours && !num_theirs)
                              ^
/datasets/git/ref-filter.c:1677:8: note: +1, nesting level increased to 2
                else if (!num_ours)
                     ^
/datasets/git/ref-filter.c:1679:8: note: +1, nesting level increased to 2
                else if (!num_theirs)
                     ^
/datasets/git/ref-filter.c:1681:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/ref-filter.c:1683:9: note: +1, nesting level increased to 1
        } else if (atom->u.remote_ref.option == RR_REMOTE_NAME) {
               ^
/datasets/git/ref-filter.c:1685:48: note: +2, including nesting penalty of 1, nesting level increased to 2
                const char *remote = atom->u.remote_ref.push ?
                                                             ^
/datasets/git/ref-filter.c:1688:25: note: +2, including nesting penalty of 1, nesting level increased to 2
                *s = xstrdup(explicit ? remote : "");
                                      ^
/datasets/git/ref-filter.c:1689:9: note: +1, nesting level increased to 1
        } else if (atom->u.remote_ref.option == RR_REMOTE_REF) {
               ^
/datasets/git/ref-filter.c:1693:22: note: +2, including nesting penalty of 1, nesting level increased to 2
                *s = xstrdup(merge ? merge : "");
                                   ^
/datasets/git/ref-filter.c:1694:4: note: +1, nesting level increased to 1
        } else
          ^
/datasets/git/ref-filter.c:1644:45: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
                                    struct branch *branch, const char **s)
                                                                        ^
/datasets/git/ref-filter.c:1646:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int num_ours, num_theirs;
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:1646:6: warning: variable 'num_ours' is not initialized [cppcoreguidelines-init-variables]
        int num_ours, num_theirs;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ref-filter.c:1646:16: warning: variable 'num_theirs' is not initialized [cppcoreguidelines-init-variables]
        int num_ours, num_theirs;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ref-filter.c:1647:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (atom->u.remote_ref.option == RR_REF)
                                                ^
                                                 {
/datasets/git/ref-filter.c:1654:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else if (!num_ours && !num_theirs)
                                                    ^
                                                     {
/datasets/git/ref-filter.c:1656:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!num_ours)
                                   ^
                                    {
/datasets/git/ref-filter.c:1658:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!num_theirs)
                                     ^
                                      {
/datasets/git/ref-filter.c:1660:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/ref-filter.c:1675:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!num_ours && !num_theirs)
                                             ^
                                              {
/datasets/git/ref-filter.c:1677:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!num_ours)
                                   ^
                                    {
/datasets/git/ref-filter.c:1679:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!num_theirs)
                                     ^
                                      {
/datasets/git/ref-filter.c:1681:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/ref-filter.c:1684:7: warning: variable 'explicit' is not initialized [cppcoreguidelines-init-variables]
                int explicit;
                    ^
                             = 0
/datasets/git/ref-filter.c:1690:15: warning: variable 'merge' is not initialized [cppcoreguidelines-init-variables]
                const char *merge;
                            ^
                                  = NULL
/datasets/git/ref-filter.c:1694:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/ref-filter.c:1702:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&state, 0, sizeof(state));
        ^~~~~~
/datasets/git/ref-filter.c:1702:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&state, 0, sizeof(state));
        ^~~~~~
/datasets/git/ref-filter.c:1706:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (state.branch)
                                 ^
                                  {
/datasets/git/ref-filter.c:1709:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/ref-filter.c:1712:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else if (state.bisect_in_progress)
                                            ^
                                             {
/datasets/git/ref-filter.c:1716:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (state.detached_at)
                                      ^
                                       {
/datasets/git/ref-filter.c:1719:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/ref-filter.c:1722:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/ref-filter.c:1732:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ref->symref)
                         ^
                          {
/datasets/git/ref-filter.c:1734:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else
        ^~~~
                        return show_ref(&atom->u.refname, ref->symref)
/datasets/git/ref-filter.c:1734:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ref-filter.c:1740:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (ref->kind & FILTER_REFS_DETACHED_HEAD)
            ^
/datasets/git/ref-filter.c:1740:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ref->kind & FILTER_REFS_DETACHED_HEAD)
                                                  ^
                                                   {
/datasets/git/ref-filter.c:1746:29: warning: parameter name 'oi' is too short, expected at least 3 characters [readability-identifier-length]
                      struct expand_data *oi, struct strbuf *err)
                                          ^
/datasets/git/ref-filter.c:1756:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                     OBJECT_INFO_LOOKUP_REPLACE))
                                                                 ^
                                                                  {
/datasets/git/ref-filter.c:1759:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oi->info.disk_sizep && oi->disk_size < 0)
                                                     ^
                                                      {
/datasets/git/ref-filter.c:1765:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!eaten)
                                   ^
                                    {
/datasets/git/ref-filter.c:1774:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!eaten)
                   ^
                    {
/datasets/git/ref-filter.c:1781:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/ref-filter.c:1781:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ref-filter.c:1783:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; worktrees[i]; i++) {
        ^
/datasets/git/ref-filter.c:1785:34: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
                        struct ref_to_worktree_entry *entry;
                                                      ^
                                                            = NULL
/datasets/git/ref-filter.c:1798:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ref_to_worktree_map.worktrees)
                                          ^
                                           {
/datasets/git/ref-filter.c:1806:56: warning: parameter 'atom' is unused [misc-unused-parameters]
static char *get_worktree_path(const struct used_atom *atom, const struct ref_array_item *ref)
                               ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
/datasets/git/ref-filter.c:1808:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct hashmap_entry entry, *e;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:1808:31: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct hashmap_entry entry, *e;
                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ref-filter.c:1808:31: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ref-filter.c:1809:32: warning: variable 'lookup_result' is not initialized [cppcoreguidelines-init-variables]
        struct ref_to_worktree_entry *lookup_result;
                                      ^
                                                    = NULL
/datasets/git/ref-filter.c:1816:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!e)
               ^
                {
/datasets/git/ref-filter.c:1827:12: warning: function 'populate_value' has cognitive complexity of 84 (threshold 25) [readability-function-cognitive-complexity]
static int populate_value(struct ref_array_item *ref, struct strbuf *err)
           ^
/datasets/git/ref-filter.c:1835:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (need_symref && (ref->flag & REF_ISSYMREF) && !ref->symref) {
        ^
/datasets/git/ref-filter.c:1835:48: note: +1
        if (need_symref && (ref->flag & REF_ISSYMREF) && !ref->symref) {
                                                      ^
/datasets/git/ref-filter.c:1838:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!ref->symref)
                ^
/datasets/git/ref-filter.c:1843:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < used_atom_cnt; i++) {
        ^
/datasets/git/ref-filter.c:1856:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*name == '*') {
                ^
/datasets/git/ref-filter.c:1861:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (atom_type == ATOM_REFNAME)
                ^
/datasets/git/ref-filter.c:1863:8: note: +1, nesting level increased to 2
                else if (atom_type == ATOM_WORKTREEPATH) {
                     ^
/datasets/git/ref-filter.c:1864:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ref->kind == FILTER_REFS_BRANCHES)
                        ^
/datasets/git/ref-filter.c:1866:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/ref-filter.c:1870:8: note: +1, nesting level increased to 2
                else if (atom_type == ATOM_SYMREF)
                     ^
/datasets/git/ref-filter.c:1872:8: note: +1, nesting level increased to 2
                else if (atom_type == ATOM_UPSTREAM) {
                     ^
/datasets/git/ref-filter.c:1875:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!skip_prefix(ref->refname, "refs/heads/",
                        ^
/datasets/git/ref-filter.c:1883:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (refname)
                        ^
/datasets/git/ref-filter.c:1885:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/ref-filter.c:1888:10: note: +1, nesting level increased to 2
                } else if (atom_type == ATOM_PUSH && atom->u.remote_ref.push) {
                       ^
/datasets/git/ref-filter.c:1888:37: note: +1
                } else if (atom_type == ATOM_PUSH && atom->u.remote_ref.push) {
                                                  ^
/datasets/git/ref-filter.c:1891:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!skip_prefix(ref->refname, "refs/heads/",
                        ^
/datasets/git/ref-filter.c:1896:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (atom->u.remote_ref.push_remote)
                        ^
/datasets/git/ref-filter.c:1898:4: note: +1, nesting level increased to 3
                        else {
                        ^
/datasets/git/ref-filter.c:1900:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!refname)
                                ^
/datasets/git/ref-filter.c:1907:10: note: +1, nesting level increased to 2
                } else if (atom_type == ATOM_COLOR) {
                       ^
/datasets/git/ref-filter.c:1910:10: note: +1, nesting level increased to 2
                } else if (atom_type == ATOM_FLAG) {
                       ^
/datasets/git/ref-filter.c:1912:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ref->flag & REF_ISSYMREF)
                        ^
/datasets/git/ref-filter.c:1914:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ref->flag & REF_ISPACKED)
                        ^
/datasets/git/ref-filter.c:1916:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (cp == buf)
                        ^
/datasets/git/ref-filter.c:1918:4: note: +1, nesting level increased to 3
                        else {
                        ^
/datasets/git/ref-filter.c:1923:10: note: +1, nesting level increased to 2
                } else if (!deref && atom_type == ATOM_OBJECTNAME &&
                       ^
/datasets/git/ref-filter.c:1923:53: note: +1
                } else if (!deref && atom_type == ATOM_OBJECTNAME &&
                                                                  ^
/datasets/git/ref-filter.c:1926:10: note: +1, nesting level increased to 2
                } else if (atom_type == ATOM_HEAD) {
                       ^
/datasets/git/ref-filter.c:1927:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (atom->u.head && !strcmp(ref->refname, atom->u.head))
                        ^
/datasets/git/ref-filter.c:1927:21: note: +1
                        if (atom->u.head && !strcmp(ref->refname, atom->u.head))
                                         ^
/datasets/git/ref-filter.c:1929:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/ref-filter.c:1932:10: note: +1, nesting level increased to 2
                } else if (atom_type == ATOM_ALIGN) {
                       ^
/datasets/git/ref-filter.c:1936:10: note: +1, nesting level increased to 2
                } else if (atom_type == ATOM_END) {
                       ^
/datasets/git/ref-filter.c:1940:10: note: +1, nesting level increased to 2
                } else if (atom_type == ATOM_IF) {
                       ^
/datasets/git/ref-filter.c:1942:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (skip_prefix(name, "if:", &s))
                        ^
/datasets/git/ref-filter.c:1944:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/ref-filter.c:1948:10: note: +1, nesting level increased to 2
                } else if (atom_type == ATOM_THEN) {
                       ^
/datasets/git/ref-filter.c:1952:10: note: +1, nesting level increased to 2
                } else if (atom_type == ATOM_ELSE) {
                       ^
/datasets/git/ref-filter.c:1956:10: note: +1, nesting level increased to 2
                } else if (atom_type == ATOM_REST) {
                       ^
/datasets/git/ref-filter.c:1957:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ref->rest)
                        ^
/datasets/git/ref-filter.c:1959:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/ref-filter.c:1962:5: note: +1, nesting level increased to 2
                } else
                  ^
/datasets/git/ref-filter.c:1965:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!deref)
                ^
/datasets/git/ref-filter.c:1967:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/ref-filter.c:1972:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < used_atom_cnt; i++) {
        ^
/datasets/git/ref-filter.c:1974:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (v->s == NULL && used_atom[i].source == SOURCE_NONE)
                ^
/datasets/git/ref-filter.c:1974:20: note: +1
                if (v->s == NULL && used_atom[i].source == SOURCE_NONE)
                                 ^
/datasets/git/ref-filter.c:1979:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (need_tagged)
        ^
/datasets/git/ref-filter.c:1981:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!memcmp(&oi.info, &empty, sizeof(empty)) &&
        ^
/datasets/git/ref-filter.c:1981:47: note: +1
        if (!memcmp(&oi.info, &empty, sizeof(empty)) &&
                                                     ^
/datasets/git/ref-filter.c:1987:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (get_object(ref, 0, &obj, &oi, err))
        ^
/datasets/git/ref-filter.c:1994:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!need_tagged || (obj->type != OBJ_TAG))
        ^
/datasets/git/ref-filter.c:1994:19: note: +1
        if (!need_tagged || (obj->type != OBJ_TAG))
                         ^
/datasets/git/ref-filter.c:1829:17: warning: variable 'obj' is not initialized [cppcoreguidelines-init-variables]
        struct object *obj;
                       ^
                           = NULL
/datasets/git/ref-filter.c:1830:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/ref-filter.c:1830:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ref-filter.c:1835:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (need_symref && (ref->flag & REF_ISSYMREF) && !ref->symref) {
                            ^~~~~~~~~
/datasets/git/ref-filter.c:1838:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ref->symref)
                                 ^
                                  {
/datasets/git/ref-filter.c:1843:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < used_atom_cnt; i++) {
        ^
/datasets/git/ref-filter.c:1847:22: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
                struct atom_value *v = &ref->value[i];
                                   ^
/datasets/git/ref-filter.c:1849:15: warning: variable 'refname' is not initialized [cppcoreguidelines-init-variables]
                const char *refname;
                            ^
                                    = NULL
/datasets/git/ref-filter.c:1861:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (atom_type == ATOM_REFNAME)
                                              ^
                                               {
/datasets/git/ref-filter.c:1864:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ref->kind == FILTER_REFS_BRANCHES)
                                                              ^
                                                               {
/datasets/git/ref-filter.c:1866:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/ref-filter.c:1870:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (atom_type == ATOM_SYMREF)
                                                  ^
                                                   {
/datasets/git/ref-filter.c:1873:16: warning: variable 'branch_name' is not initialized [cppcoreguidelines-init-variables]
                        const char *branch_name;
                                    ^
                                                = NULL
/datasets/git/ref-filter.c:1883:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (refname)
                                    ^
                                     {
/datasets/git/ref-filter.c:1885:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/ref-filter.c:1889:16: warning: variable 'branch_name' is not initialized [cppcoreguidelines-init-variables]
                        const char *branch_name;
                                    ^
                                                = NULL
/datasets/git/ref-filter.c:1892:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                         &branch_name))
                                                       ^
                                                        {
/datasets/git/ref-filter.c:1896:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (atom->u.remote_ref.push_remote)
                                                           ^
                                                            {
/datasets/git/ref-filter.c:1900:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!refname)
                                             ^
                                              {
/datasets/git/ref-filter.c:1911:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        char buf[256], *cp = buf;
                        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:1911:13: warning: 256 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        char buf[256], *cp = buf;
                                 ^
/datasets/git/ref-filter.c:1911:20: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
                        char buf[256], *cp = buf;
                                        ^
/datasets/git/ref-filter.c:1912:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (ref->flag & REF_ISSYMREF)
                            ^~~~~~~~~
/datasets/git/ref-filter.c:1912:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ref->flag & REF_ISSYMREF)
                                                     ^
                                                      {
/datasets/git/ref-filter.c:1914:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (ref->flag & REF_ISPACKED)
                            ^~~~~~~~~
/datasets/git/ref-filter.c:1914:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ref->flag & REF_ISPACKED)
                                                     ^
                                                      {
/datasets/git/ref-filter.c:1916:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (cp == buf)
                                      ^
                                       {
/datasets/git/ref-filter.c:1924:64: warning: repeated branch in conditional chain [bugprone-branch-clone]
                           grab_oid(name, "objectname", &ref->objectname, v, atom)) {
                                                                                    ^
/datasets/git/ref-filter.c:1926:4: note: end of the original
                } else if (atom_type == ATOM_HEAD) {
                 ^
/datasets/git/ref-filter.c:1963:4: note: clone 1 starts here
                        continue;
                        ^
/datasets/git/ref-filter.c:1927:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (atom->u.head && !strcmp(ref->refname, atom->u.head))
                                                                                ^
                                                                                 {
/datasets/git/ref-filter.c:1929:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/ref-filter.c:1941:16: warning: variable 's' is not initialized [cppcoreguidelines-init-variables]
                        const char *s;
                                    ^
                                      = NULL
/datasets/git/ref-filter.c:1941:16: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ref-filter.c:1942:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (skip_prefix(name, "if:", &s))
                                                         ^
                                                          {
/datasets/git/ref-filter.c:1944:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/ref-filter.c:1957:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ref->rest)
                                      ^
                                       {
/datasets/git/ref-filter.c:1959:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/ref-filter.c:1962:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/ref-filter.c:1965:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!deref)
                           ^
                            {
/datasets/git/ref-filter.c:1967:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/ref-filter.c:1972:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < used_atom_cnt; i++) {
        ^
/datasets/git/ref-filter.c:1973:22: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
                struct atom_value *v = &ref->value[i];
                                   ^
/datasets/git/ref-filter.c:1974:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (v->s == NULL && used_atom[i].source == SOURCE_NONE)
                                                                       ^
                                                                        {
/datasets/git/ref-filter.c:1979:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (need_tagged)
                        ^
                         {
/datasets/git/ref-filter.c:1981:7: warning: comparing object representation of type 'struct object_info' which does not have a unique object representation; consider comparing the members of the object manually [bugprone-suspicious-memory-comparison,cert-exp42-c,cert-flp37-c]
        if (!memcmp(&oi.info, &empty, sizeof(empty)) &&
             ^
/datasets/git/ref-filter.c:1982:7: warning: comparing object representation of type 'struct object_info' which does not have a unique object representation; consider comparing the members of the object manually [bugprone-suspicious-memory-comparison,cert-exp42-c,cert-flp37-c]
            !memcmp(&oi_deref.info, &empty, sizeof(empty)))
             ^
/datasets/git/ref-filter.c:1982:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !memcmp(&oi_deref.info, &empty, sizeof(empty)))
                                                           ^
                                                            {
/datasets/git/ref-filter.c:1987:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_object(ref, 0, &obj, &oi, err))
                                               ^
                                                {
/datasets/git/ref-filter.c:1994:23: warning: Access to field 'type' results in a dereference of an undefined pointer value (loaded from variable 'obj') [clang-analyzer-core.NullDereference]
        if (!need_tagged || (obj->type != OBJ_TAG))
                             ^
/datasets/git/ref-filter.c:2654:6: note: Calling 'format_ref_array_item'
        if (format_ref_array_item(ref_item, format, &output, &err))
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:2610:28: note: Assuming the condition is true
        for (cp = format->format; *cp && (sp = find_next(cp)); cp = ep + 1) {
                                  ^~~
/datasets/git/ref-filter.c:2610:28: note: Left side of '&&' is true
/datasets/git/ref-filter.c:2610:2: note: Loop condition is true.  Entering loop body
        for (cp = format->format; *cp && (sp = find_next(cp)); cp = ep + 1) {
        ^
/datasets/git/ref-filter.c:2615:7: note: 'cp' is >= 'sp'
                if (cp < sp)
                    ^~
/datasets/git/ref-filter.c:2615:3: note: Taking false branch
                if (cp < sp)
                ^
/datasets/git/ref-filter.c:2618:7: note: Assuming 'pos' is >= 0
                if (pos < 0 || get_ref_atom_value(info, pos, &atomv, error_buf) ||
                    ^~~~~~~
/datasets/git/ref-filter.c:2618:7: note: Left side of '||' is false
/datasets/git/ref-filter.c:2618:18: note: Calling 'get_ref_atom_value'
                if (pos < 0 || get_ref_atom_value(info, pos, &atomv, error_buf) ||
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:2019:6: note: Assuming field 'value' is null
        if (!ref->value) {
            ^~~~~~~~~~~
/datasets/git/ref-filter.c:2019:2: note: Taking true branch
        if (!ref->value) {
        ^
/datasets/git/ref-filter.c:2020:7: note: Calling 'populate_value'
                if (populate_value(ref, err))
                    ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:1829:2: note: 'obj' declared without an initial value
        struct object *obj;
        ^~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:1835:6: note: Assuming 'need_symref' is 0
        if (need_symref && (ref->flag & REF_ISSYMREF) && !ref->symref) {
            ^~~~~~~~~~~
/datasets/git/ref-filter.c:1835:18: note: Left side of '&&' is false
        if (need_symref && (ref->flag & REF_ISSYMREF) && !ref->symref) {
                        ^
/datasets/git/ref-filter.c:1843:14: note: Assuming 'i' is >= 'used_atom_cnt'
        for (i = 0; i < used_atom_cnt; i++) {
                    ^~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:1843:2: note: Loop condition is false. Execution continues on line 1972
        for (i = 0; i < used_atom_cnt; i++) {
        ^
/datasets/git/ref-filter.c:1972:14: note: 'i' is >= 'used_atom_cnt'
        for (i = 0; i < used_atom_cnt; i++) {
                    ^
/datasets/git/ref-filter.c:1972:2: note: Loop condition is false. Execution continues on line 1979
        for (i = 0; i < used_atom_cnt; i++) {
        ^
/datasets/git/ref-filter.c:1979:6: note: Assuming 'need_tagged' is 0
        if (need_tagged)
            ^~~~~~~~~~~
/datasets/git/ref-filter.c:1979:2: note: Taking false branch
        if (need_tagged)
        ^
/datasets/git/ref-filter.c:1981:6: note: Assuming the condition is false
        if (!memcmp(&oi.info, &empty, sizeof(empty)) &&
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:1981:47: note: Left side of '&&' is false
        if (!memcmp(&oi.info, &empty, sizeof(empty)) &&
                                                     ^
/datasets/git/ref-filter.c:1987:6: note: Calling 'get_object'
        if (get_object(ref, 0, &obj, &oi, err))
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:1750:6: note: Assuming field 'contentp' is null
        if (oi->info.contentp) {
            ^~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:1750:2: note: Taking false branch
        if (oi->info.contentp) {
        ^
/datasets/git/ref-filter.c:1755:6: note: Assuming the condition is true
        if (oid_object_info_extended(the_repository, &oi->oid, &oi->info,
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:1755:2: note: Taking true branch
        if (oid_object_info_extended(the_repository, &oi->oid, &oi->info,
        ^
/datasets/git/ref-filter.c:1757:10: note: Value assigned to 'need_tagged', which participates in a condition later
                return strbuf_addf_ret(err, -1, _("missing object %s for %s"),
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:1757:3: note: Returning without writing to '*obj'
                return strbuf_addf_ret(err, -1, _("missing object %s for %s"),
                ^
/datasets/git/ref-filter.c:1987:6: note: Returning from 'get_object'
        if (get_object(ref, 0, &obj, &oi, err))
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:1987:6: note: Assuming the condition is false
        if (get_object(ref, 0, &obj, &oi, err))
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:1987:2: note: Taking false branch
        if (get_object(ref, 0, &obj, &oi, err))
        ^
/datasets/git/ref-filter.c:1994:6: note: Assuming 'need_tagged' is not equal to 0
        if (!need_tagged || (obj->type != OBJ_TAG))
            ^~~~~~~~~~~~
/datasets/git/ref-filter.c:1994:6: note: Left side of '||' is false
/datasets/git/ref-filter.c:1994:23: note: Access to field 'type' results in a dereference of an undefined pointer value (loaded from variable 'obj')
        if (!need_tagged || (obj->type != OBJ_TAG))
                             ^~~
/datasets/git/ref-filter.c:1994:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!need_tagged || (obj->type != OBJ_TAG))
                                                   ^
                                                    {
/datasets/git/ref-filter.c:2017:30: warning: parameter name 'v' is too short, expected at least 3 characters [readability-identifier-length]
                              struct atom_value **v, struct strbuf *err)
                                                  ^
/datasets/git/ref-filter.c:2020:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (populate_value(ref, err))
                                             ^
                                              {
/datasets/git/ref-filter.c:2039:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (filter->ignore_case)
                                ^
                                 {
/datasets/git/ref-filter.c:2040:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags |= WM_CASEFOLD;
                ^
/datasets/git/ref-filter.c:2051:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; *patterns; patterns++) {
        ^
/datasets/git/ref-filter.c:2051:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'patterns' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; *patterns; patterns++) {
               ^
/datasets/git/ref-filter.c:2052:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!wildmatch(*patterns, refname, flags))
                                                          ^
                                                           {
/datasets/git/ref-filter.c:2067:16: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int namelen = strlen(refname);
                      ^
/datasets/git/ref-filter.c:2070:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (filter->ignore_case)
                                ^
                                 {
/datasets/git/ref-filter.c:2071:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags |= WM_CASEFOLD;
                ^
/datasets/git/ref-filter.c:2073:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; *pattern; pattern++) {
        ^
/datasets/git/ref-filter.c:2073:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'pattern' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; *pattern; pattern++) {
               ^
/datasets/git/ref-filter.c:2074:15: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                const char *p = *pattern;
                            ^
/datasets/git/ref-filter.c:2075:14: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int plen = strlen(p);
                           ^
/datasets/git/ref-filter.c:2081:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                     p[plen-1] == '/'))
                                       ^
                                        {
/datasets/git/ref-filter.c:2083:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!wildmatch(p, refname, flags))
                                                  ^
                                                   {
/datasets/git/ref-filter.c:2092:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!*filter->name_patterns)
                                    ^
                                     {
/datasets/git/ref-filter.c:2094:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (filter->match_as_path)
                                  ^
                                   {
/datasets/git/ref-filter.c:2105:24: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
                                       each_ref_fn cb,
                                                   ^
/datasets/git/ref-filter.c:2152:17: warning: variable 'obj' is not initialized [cppcoreguidelines-init-variables]
        struct object *obj;
                       ^
                           = NULL
/datasets/git/ref-filter.c:2154:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oid_array_lookup(points_at, oid) >= 0)
                                                  ^
                                                   {
/datasets/git/ref-filter.c:2157:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!obj)
                 ^
                  {
/datasets/git/ref-filter.c:2159:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (obj->type == OBJ_TAG)
                                 ^
                                  {
/datasets/git/ref-filter.c:2161:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (tagged_oid && oid_array_lookup(points_at, tagged_oid) >= 0)
                                                                       ^
                                                                        {
/datasets/git/ref-filter.c:2174:25: warning: variable 'ref' is not initialized [cppcoreguidelines-init-variables]
        struct ref_array_item *ref;
                               ^
                                   = NULL
/datasets/git/ref-filter.c:2176:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FLEX_ALLOC_STR(ref, refname, refname);
        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^
/datasets/git/./git-compat-util.h:1151:47: note: expanded from macro 'FLEX_ALLOC_MEM'
#define FLEX_ALLOC_MEM(x, flexname, buf, len) do { \
                                              ^
/datasets/git/ref-filter.c:2176:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        FLEX_ALLOC_STR(ref, refname, refname);
        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/ref-filter.c:2176:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        FLEX_ALLOC_STR(ref, refname, refname);
        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/ref-filter.c:2189:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(array->items, array->nr + 1, array->alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/ref-filter.c:2189:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_GROW(array->items, array->nr + 1, array->alloc);
        ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/ref-filter.c:2197:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i;
                     ^
                       = 0
/datasets/git/ref-filter.c:2197:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ref-filter.c:2199:9: warning: accessing fields in struct '' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
        static struct {
               ^
/datasets/git/ref-filter.c:2199:9: note: use "__attribute__((aligned(16)))" to align struct '' to 16 bytes
/datasets/git/ref-filter.c:2208:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(refname, "HEAD"))
                                     ^
                                      {
/datasets/git/ref-filter.c:2211:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ARRAY_SIZE(ref_kind); i++) {
        ^
/datasets/git/ref-filter.c:2212:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (starts_with(refname, ref_kind[i].prefix))
                                                             ^
                                                              {
/datasets/git/ref-filter.c:2213:11: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        return ref_kind[i].kind;
                               ^
/datasets/git/ref-filter.c:2223:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            filter->kind == FILTER_REFS_TAGS)
                                             ^
                                              {
/datasets/git/ref-filter.c:2224:10: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                return filter->kind;
                       ^
/datasets/git/ref-filter.c:2228:8: warning: accessing fields in struct 'ref_filter_cbdata' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct ref_filter_cbdata {
       ^
/datasets/git/ref-filter.c:2228:8: note: use "__attribute__((aligned(64)))" to align struct 'ref_filter_cbdata' to 64 bytes
/datasets/git/ref-filter.c:2243:25: warning: variable 'ref' is not initialized [cppcoreguidelines-init-variables]
        struct ref_array_item *ref;
                               ^
                                   = NULL
/datasets/git/ref-filter.c:2245:15: warning: variable 'kind' is not initialized [cppcoreguidelines-init-variables]
        unsigned int kind;
                     ^
                          = 0
/datasets/git/ref-filter.c:2247:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flag & REF_BAD_NAME) {
            ^~~~
/datasets/git/ref-filter.c:2252:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flag & REF_ISBROKEN) {
            ^~~~
/datasets/git/ref-filter.c:2259:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(kind & filter->kind))
                                   ^
                                    {
/datasets/git/ref-filter.c:2262:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!filter_pattern_match(filter, refname))
                                                   ^
                                                    {
/datasets/git/ref-filter.c:2265:81: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (filter->points_at.nr && !match_points_at(&filter->points_at, oid, refname))
                                                                                       ^
                                                                                        {
/datasets/git/ref-filter.c:2276:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!commit)
                            ^
                             {
/datasets/git/ref-filter.c:2280:90: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !commit_contains(filter, commit, filter->with_commit, &ref_cbdata->contains_cache))
                                                                                                       ^
                                                                                                        {
/datasets/git/ref-filter.c:2284:90: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    commit_contains(filter, commit, filter->no_commit, &ref_cbdata->no_contains_cache))
                                                                                                       ^
                                                                                                        {
/datasets/git/ref-filter.c:2306:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/ref-filter.c:2306:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ref-filter.c:2307:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < used_atom_cnt; i++)
                ^
/datasets/git/ref-filter.c:2307:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < used_atom_cnt; i++)
                                                   ^
                                                    {
/datasets/git/ref-filter.c:2317:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/ref-filter.c:2317:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ref-filter.c:2319:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < array->nr; i++)
        ^
/datasets/git/ref-filter.c:2319:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < array->nr; i++)
                    ^
/datasets/git/ref-filter.c:2319:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < array->nr; i++)
                                       ^
                                        {
/datasets/git/ref-filter.c:2321:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(array->items);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/ref-filter.c:2324:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < used_atom_cnt; i++) {
        ^
/datasets/git/ref-filter.c:2326:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (atom->atom_type == ATOM_HEAD)
                                                 ^
                                                  {
/datasets/git/ref-filter.c:2330:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(used_atom);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/ref-filter.c:2341:1: warning: replace macro with enum [modernize-macro-to-enum]
#define EXCLUDE_REACHED 0
^~~~~~~~
                        =,
/datasets/git/ref-filter.c:2341:9: warning: macro 'EXCLUDE_REACHED' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define EXCLUDE_REACHED 0
        ^
/datasets/git/ref-filter.c:2342:9: warning: macro 'INCLUDE_REACHED' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define INCLUDE_REACHED 1
        ^
/datasets/git/ref-filter.c:2348:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, old_nr;
        ^~~~~~~~~~~~~~
/datasets/git/ref-filter.c:2348:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, old_nr;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ref-filter.c:2348:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ref-filter.c:2348:9: warning: variable 'old_nr' is not initialized [cppcoreguidelines-init-variables]
        int i, old_nr;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ref-filter.c:2349:18: warning: variable 'to_clear' is not initialized [cppcoreguidelines-init-variables]
        struct commit **to_clear;
                        ^
                                 = NULL
/datasets/git/ref-filter.c:2350:22: warning: variable 'cr' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *cr;
                            ^
                               = NULL
/datasets/git/ref-filter.c:2350:22: warning: variable name 'cr' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ref-filter.c:2352:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!check_reachable)
                             ^
                              {
/datasets/git/ref-filter.c:2355:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        CALLOC_ARRAY(to_clear, array->nr);
        ^
/datasets/git/./git-compat-util.h:1091:55: note: expanded from macro 'CALLOC_ARRAY'
#define CALLOC_ARRAY(x, alloc) (x) = xcalloc((alloc), sizeof(*(x)))
                                                      ^
/datasets/git/ref-filter.c:2359:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < array->nr; i++) {
        ^
/datasets/git/ref-filter.c:2350:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct commit_list *cr;
        ^
/datasets/git/ref-filter.c:2359:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < array->nr; i++) {
                    ^
/datasets/git/ref-filter.c:2365:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cr = check_reachable; cr; cr = cr->next) {
        ^
/datasets/git/ref-filter.c:2365:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (cr = check_reachable; cr; cr = cr->next) {
                                   ^
/datasets/git/ref-filter.c:2367:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                merge_commit->object.flags |= UNINTERESTING;
                                              ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/ref-filter.c:2372:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prepare_revision_walk(&revs))
                                         ^
                                          {
/datasets/git/ref-filter.c:2378:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < old_nr; i++) {
        ^
/datasets/git/ref-filter.c:2378:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'old_nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < old_nr; i++) {
                    ^
/datasets/git/ref-filter.c:2382:45: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                int is_merged = !!(commit->object.flags & UNINTERESTING);
                                                          ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/ref-filter.c:2384:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_merged == include_reached)
                                                 ^
                                                  {
/datasets/git/ref-filter.c:2386:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/ref-filter.c:2390:44: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        clear_commit_marks_many(old_nr, to_clear, ALL_REV_FLAGS);
                                                  ^
/datasets/git/./revision.h:52:26: note: expanded from macro 'ALL_REV_FLAGS'
#define ALL_REV_FLAGS   (((1u<<11)-1) | NOT_USER_GIVEN | TRACK_LINEAR | PULL_MERGE)
                           ^   ~~
/datasets/git/ref-filter.c:2392:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (check_reachable) {
        ^
/datasets/git/ref-filter.c:2394:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                clear_commit_marks(merge_commit, ALL_REV_FLAGS);
                                                 ^
/datasets/git/./revision.h:52:26: note: expanded from macro 'ALL_REV_FLAGS'
#define ALL_REV_FLAGS   (((1u<<11)-1) | NOT_USER_GIVEN | TRACK_LINEAR | PULL_MERGE)
                           ^   ~~
/datasets/git/ref-filter.c:2410:6: warning: variable 'save_commit_buffer_orig' is not initialized [cppcoreguidelines-init-variables]
        int save_commit_buffer_orig;
            ^
                                    = 0
/datasets/git/ref-filter.c:2416:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        filter->kind = type & FILTER_REFS_KIND_MASK;
                       ^
/datasets/git/ref-filter.c:2416:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        filter->kind = type & FILTER_REFS_KIND_MASK;
                              ^
/datasets/git/./ref-filter.h:23:37: note: expanded from macro 'FILTER_REFS_KIND_MASK'
#define FILTER_REFS_KIND_MASK      (FILTER_REFS_ALL | FILTER_REFS_DETACHED_HEAD)
                                    ^~~~~~~~~~~~~~~
/datasets/git/./ref-filter.h:20:36: note: expanded from macro 'FILTER_REFS_ALL'
#define FILTER_REFS_ALL            (FILTER_REFS_TAGS | FILTER_REFS_BRANCHES | \
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:2425:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!filter->kind)
                          ^
                           {
/datasets/git/ref-filter.c:2434:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (filter->kind == FILTER_REFS_BRANCHES)
                                                         ^
                                                          {
/datasets/git/ref-filter.c:2436:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (filter->kind == FILTER_REFS_REMOTES)
                                                             ^
                                                              {
/datasets/git/ref-filter.c:2438:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (filter->kind == FILTER_REFS_TAGS)
                                                          ^
                                                           {
/datasets/git/ref-filter.c:2440:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                else if (filter->kind & FILTER_REFS_ALL)
                         ^
/datasets/git/ref-filter.c:2440:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                else if (filter->kind & FILTER_REFS_ALL)
                                        ^
/datasets/git/./ref-filter.h:20:37: note: expanded from macro 'FILTER_REFS_ALL'
#define FILTER_REFS_ALL            (FILTER_REFS_TAGS | FILTER_REFS_BRANCHES | \
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./ref-filter.h:16:36: note: expanded from macro 'FILTER_REFS_TAGS'
#define FILTER_REFS_TAGS           0x0002
                                   ^
/datasets/git/ref-filter.c:2440:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (filter->kind & FILTER_REFS_ALL)
                                                        ^
                                                         {
/datasets/git/ref-filter.c:2442:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!ret && (filter->kind & FILTER_REFS_DETACHED_HEAD))
                             ^
/datasets/git/ref-filter.c:2442:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ret && (filter->kind & FILTER_REFS_DETACHED_HEAD))
                                                                       ^
                                                                        {
/datasets/git/ref-filter.c:2457:57: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static int compare_detached_head(struct ref_array_item *a, struct ref_array_item *b)
                                                        ^
/datasets/git/ref-filter.c:2457:83: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static int compare_detached_head(struct ref_array_item *a, struct ref_array_item *b)
                                                                                  ^
/datasets/git/ref-filter.c:2459:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(a->kind ^ b->kind))
                                 ^
                                  {
/datasets/git/ref-filter.c:2461:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (a->kind & FILTER_REFS_DETACHED_HEAD)
            ^
/datasets/git/ref-filter.c:2461:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (a->kind & FILTER_REFS_DETACHED_HEAD)
                                                ^
                                                 {
/datasets/git/ref-filter.c:2463:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (b->kind & FILTER_REFS_DETACHED_HEAD)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:2463:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        else if (b->kind & FILTER_REFS_DETACHED_HEAD)
                 ^
/datasets/git/ref-filter.c:2463:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (b->kind & FILTER_REFS_DETACHED_HEAD)
                                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ref-filter.c:2471:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *s1 = vs1, *s2 = vs2;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:2471:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/ref-filter.c:2471:14: warning: variable name 's1' is too short, expected at least 3 characters [readability-identifier-length]
        const char *s1 = vs1, *s2 = vs2;
                    ^
/datasets/git/ref-filter.c:2471:25: warning: variable name 's2' is too short, expected at least 3 characters [readability-identifier-length]
        const char *s1 = vs1, *s2 = vs2;
                               ^
/datasets/git/ref-filter.c:2474:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; s1 < end; s1++, s2++) {
        ^
/datasets/git/ref-filter.c:2474:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 's1' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; s1 < end; s1++, s2++) {
               ^
/datasets/git/ref-filter.c:2476:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (diff)
                         ^
                          {
/datasets/git/ref-filter.c:2482:8: warning: accessing fields in struct 'ref_sorting' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct ref_sorting {
       ^
/datasets/git/ref-filter.c:2482:8: note: use "__attribute__((aligned(16)))" to align struct 'ref_sorting' to 16 bytes
/datasets/git/ref-filter.c:2488:12: warning: function 'cmp_ref_sorting' has cognitive complexity of 40 (threshold 25) [readability-function-cognitive-complexity]
static int cmp_ref_sorting(struct ref_sorting *s, struct ref_array_item *a, struct ref_array_item *b)
           ^
/datasets/git/ref-filter.c:2496:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (get_ref_atom_value(a, s->atom, &va, &err))
        ^
/datasets/git/ref-filter.c:2498:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (get_ref_atom_value(b, s->atom, &vb, &err))
        ^
/datasets/git/ref-filter.c:2501:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (s->sort_flags & REF_SORTING_DETACHED_HEAD_FIRST &&
        ^
/datasets/git/ref-filter.c:2501:54: note: +1
        if (s->sort_flags & REF_SORTING_DETACHED_HEAD_FIRST &&
                                                            ^
/datasets/git/ref-filter.c:2505:9: note: +1, nesting level increased to 1
        } else if (s->sort_flags & REF_SORTING_VERSION) {
               ^
/datasets/git/ref-filter.c:2507:9: note: +1, nesting level increased to 1
        } else if (cmp_type == FIELD_STR) {
               ^
/datasets/git/ref-filter.c:2508:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (va->s_size < 0 && vb->s_size < 0) {
                ^
/datasets/git/ref-filter.c:2508:22: note: +1
                if (va->s_size < 0 && vb->s_size < 0) {
                                   ^
/datasets/git/ref-filter.c:2511:5: note: +3, including nesting penalty of 2, nesting level increased to 3
                                ? strcasecmp : strcmp;
                                ^
/datasets/git/ref-filter.c:2513:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/ref-filter.c:2514:35: note: +3, including nesting penalty of 2, nesting level increased to 3
                        size_t a_size = va->s_size < 0 ?
                                                       ^
/datasets/git/ref-filter.c:2516:35: note: +3, including nesting penalty of 2, nesting level increased to 3
                        size_t b_size = vb->s_size < 0 ?
                                                       ^
/datasets/git/ref-filter.c:2520:5: note: +3, including nesting penalty of 2, nesting level increased to 3
                                ? memcasecmp : memcmp;
                                ^
/datasets/git/ref-filter.c:2522:47: note: +3, including nesting penalty of 2, nesting level increased to 3
                        cmp = cmp_fn(va->s, vb->s, b_size > a_size ?
                                                                   ^
/datasets/git/ref-filter.c:2524:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!cmp) {
                        ^
/datasets/git/ref-filter.c:2525:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (a_size > b_size)
                                ^
/datasets/git/ref-filter.c:2527:10: note: +1, nesting level increased to 4
                                else if (a_size < b_size)
                                     ^
/datasets/git/ref-filter.c:2531:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/ref-filter.c:2532:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (va->value < vb->value)
                ^
/datasets/git/ref-filter.c:2534:8: note: +1, nesting level increased to 2
                else if (va->value == vb->value)
                     ^
/datasets/git/ref-filter.c:2536:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/ref-filter.c:2541:3: note: +1, including nesting penalty of 0, nesting level increased to 1
                ? -cmp : cmp;
                ^
/datasets/git/ref-filter.c:2540:46: note: +1
        return (s->sort_flags & REF_SORTING_REVERSE && !cmp_detached_head)
                                                    ^
/datasets/git/ref-filter.c:2488:48: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static int cmp_ref_sorting(struct ref_sorting *s, struct ref_array_item *a, struct ref_array_item *b)
                                               ^
/datasets/git/ref-filter.c:2488:74: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static int cmp_ref_sorting(struct ref_sorting *s, struct ref_array_item *a, struct ref_array_item *b)
                                                                         ^
/datasets/git/ref-filter.c:2488:100: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static int cmp_ref_sorting(struct ref_sorting *s, struct ref_array_item *a, struct ref_array_item *b)
                                                                                                   ^
/datasets/git/ref-filter.c:2490:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct atom_value *va, *vb;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:2490:21: warning: variable 'va' is not initialized [cppcoreguidelines-init-variables]
        struct atom_value *va, *vb;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ref-filter.c:2490:21: warning: variable name 'va' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ref-filter.c:2490:26: warning: variable 'vb' is not initialized [cppcoreguidelines-init-variables]
        struct atom_value *va, *vb;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ref-filter.c:2490:26: warning: variable name 'vb' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ref-filter.c:2491:6: warning: variable 'cmp' is not initialized [cppcoreguidelines-init-variables]
        int cmp;
            ^
                = 0
/datasets/git/ref-filter.c:2496:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_ref_atom_value(a, s->atom, &va, &err))
                                                      ^
                                                       {
/datasets/git/ref-filter.c:2498:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_ref_atom_value(b, s->atom, &vb, &err))
                                                      ^
                                                       {
/datasets/git/ref-filter.c:2501:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (s->sort_flags & REF_SORTING_DETACHED_HEAD_FIRST &&
            ^               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:2502:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            ((a->kind | b->kind) & FILTER_REFS_DETACHED_HEAD)) {
             ^
/datasets/git/ref-filter.c:2505:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        } else if (s->sort_flags & REF_SORTING_VERSION) {
                   ^               ~~~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:2509:10: warning: variable 'cmp_fn' is not initialized [cppcoreguidelines-init-variables]
                        int (*cmp_fn)(const char *, const char *);
                              ^
                                     = NULL
/datasets/git/ref-filter.c:2510:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        cmp_fn = s->sort_flags & REF_SORTING_ICASE
                                 ^               ~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:2518:10: warning: variable 'cmp_fn' is not initialized [cppcoreguidelines-init-variables]
                        int (*cmp_fn)(const void *, const void *, size_t);
                              ^
                                     = NULL
/datasets/git/ref-filter.c:2519:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        cmp_fn = s->sort_flags & REF_SORTING_ICASE
                                 ^               ~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:2525:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (a_size > b_size)
                                                    ^
                                                     {
/datasets/git/ref-filter.c:2527:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                else if (a_size < b_size)
                                                         ^
                                                          {
/datasets/git/ref-filter.c:2532:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (va->value < vb->value)
                                          ^
                                           {
/datasets/git/ref-filter.c:2534:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (va->value == vb->value)
                                                ^
                                                 {
/datasets/git/ref-filter.c:2536:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/ref-filter.c:2540:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return (s->sort_flags & REF_SORTING_REVERSE && !cmp_detached_head)
                ^               ~~~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:2544:37: warning: parameter name 'a_' is too short, expected at least 3 characters [readability-identifier-length]
static int compare_refs(const void *a_, const void *b_, void *ref_sorting)
                                    ^
/datasets/git/ref-filter.c:2544:41: warning: 2 adjacent parameters of 'compare_refs' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int compare_refs(const void *a_, const void *b_, void *ref_sorting)
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:2544:53: note: the first parameter in the range is 'b_'
static int compare_refs(const void *a_, const void *b_, void *ref_sorting)
                                                    ^~
/datasets/git/ref-filter.c:2544:63: note: the last parameter in the range is 'ref_sorting'
static int compare_refs(const void *a_, const void *b_, void *ref_sorting)
                                                              ^~~~~~~~~~~
/datasets/git/ref-filter.c:2544:57: note: 'const void *' and 'void *' may be implicitly converted
static int compare_refs(const void *a_, const void *b_, void *ref_sorting)
                                                        ^
/datasets/git/ref-filter.c:2544:53: warning: parameter name 'b_' is too short, expected at least 3 characters [readability-identifier-length]
static int compare_refs(const void *a_, const void *b_, void *ref_sorting)
                                                    ^
/datasets/git/ref-filter.c:2548:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct ref_sorting *s;
        ^
/datasets/git/ref-filter.c:2546:25: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        struct ref_array_item *a = *((struct ref_array_item **)a_);
                               ^
/datasets/git/ref-filter.c:2547:25: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        struct ref_array_item *b = *((struct ref_array_item **)b_);
                               ^
/datasets/git/ref-filter.c:2548:22: warning: variable 's' is not initialized [cppcoreguidelines-init-variables]
        struct ref_sorting *s;
                            ^
                              = NULL
/datasets/git/ref-filter.c:2548:22: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ref-filter.c:2550:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (s = ref_sorting; s; s = s->next) {
        ^
/datasets/git/ref-filter.c:2550:24: warning: backward branch (for loop) is ID-dependent due to variable reference to 's' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (s = ref_sorting; s; s = s->next) {
                              ^
/datasets/git/ref-filter.c:2552:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cmp)
                        ^
                         {
/datasets/git/ref-filter.c:2556:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return s && s->sort_flags & REF_SORTING_ICASE ?
                    ^               ~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:2562:9: warning: 2 adjacent parameters of 'ref_sorting_set_sort_flags_all' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                    unsigned int mask, int on)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:2562:22: note: the first parameter in the range is 'mask'
                                    unsigned int mask, int on)
                                                 ^~~~
/datasets/git/ref-filter.c:2562:32: note: the last parameter in the range is 'on'
                                    unsigned int mask, int on)
                                                           ^~
/datasets/git/ref-filter.c:2562:28: note: 'unsigned int' and 'int' may be implicitly converted
                                    unsigned int mask, int on)
                                                       ^
/datasets/git/ref-filter.c:2562:32: warning: parameter name 'on' is too short, expected at least 3 characters [readability-identifier-length]
                                    unsigned int mask, int on)
                                                           ^
/datasets/git/ref-filter.c:2561:37: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
void ref_sorting_set_sort_flags_all(struct ref_sorting *sorting,
                                    ^
/datasets/git/ref-filter.c:2564:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; sorting; sorting = sorting->next) {
        ^
/datasets/git/ref-filter.c:2564:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'sorting' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; sorting; sorting = sorting->next) {
               ^
/datasets/git/ref-filter.c:2565:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (on)
                       ^
                        {
/datasets/git/ref-filter.c:2567:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/ref-filter.c:2574:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        QSORT_S(array->items, array->nr, compare_refs, sorting);
        ^
/datasets/git/./git-compat-util.h:1321:39: note: expanded from macro 'QSORT_S'
#define QSORT_S(base, n, compar, ctx) do {                      \
                                      ^
/datasets/git/ref-filter.c:2574:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        QSORT_S(array->items, array->nr, compare_refs, sorting);
        ^
/datasets/git/./git-compat-util.h:1322:27: note: expanded from macro 'QSORT_S'
        if (qsort_s((base), (n), sizeof(*(base)), compar, ctx)) \
                                 ^
/datasets/git/ref-filter.c:2577:40: warning: parameter name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
static void append_literal(const char *cp, const char *ep, struct ref_formatting_state *state)
                                       ^
/datasets/git/ref-filter.c:2577:56: warning: parameter name 'ep' is too short, expected at least 3 characters [readability-identifier-length]
static void append_literal(const char *cp, const char *ep, struct ref_formatting_state *state)
                                                       ^
/datasets/git/ref-filter.c:2579:17: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf *s = &state->stack->output;
                       ^
/datasets/git/ref-filter.c:2581:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*cp && (!ep || cp < ep)) {
        ^
/datasets/git/ref-filter.c:2583:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (cp[1] == '%')
                                         ^
                                          {
/datasets/git/ref-filter.c:2586:9: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
                                int ch = hex2chr(cp + 1);
                                    ^
/datasets/git/ref-filter.c:2601:6: warning: 2 adjacent parameters of 'format_ref_array_item' of similar type ('struct strbuf *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                          struct strbuf *final_buf,
                          ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:2601:21: note: the first parameter in the range is 'final_buf'
                          struct strbuf *final_buf,
                                         ^~~~~~~~~
/datasets/git/ref-filter.c:2602:21: note: the last parameter in the range is 'error_buf'
                          struct strbuf *error_buf)
                                         ^~~~~~~~~
/datasets/git/ref-filter.c:2604:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *cp, *sp, *ep;
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:2604:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/ref-filter.c:2604:14: warning: variable 'cp' is not initialized [cppcoreguidelines-init-variables]
        const char *cp, *sp, *ep;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ref-filter.c:2604:14: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ref-filter.c:2604:19: warning: variable 'sp' is not initialized [cppcoreguidelines-init-variables]
        const char *cp, *sp, *ep;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ref-filter.c:2604:19: warning: variable name 'sp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ref-filter.c:2604:24: warning: variable 'ep' is not initialized [cppcoreguidelines-init-variables]
        const char *cp, *sp, *ep;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/ref-filter.c:2604:24: warning: variable name 'ep' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ref-filter.c:2610:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cp = format->format; *cp && (sp = find_next(cp)); cp = ep + 1) {
        ^
/datasets/git/ref-filter.c:2610:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cp' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (cp = format->format; *cp && (sp = find_next(cp)); cp = ep + 1) {
                                  ^
/datasets/git/ref-filter.c:2611:22: warning: variable 'atomv' is not initialized [cppcoreguidelines-init-variables]
                struct atom_value *atomv;
                                   ^
                                         = NULL
/datasets/git/ref-filter.c:2612:7: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
                int pos;
                    ^
                        = 0
/datasets/git/ref-filter.c:2615:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cp < sp)
                            ^
                             {
/datasets/git/ref-filter.c:2648:25: warning: variable 'ref_item' is not initialized [cppcoreguidelines-init-variables]
        struct ref_array_item *ref_item;
                               ^
                                        = NULL
/datasets/git/ref-filter.c:2654:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (format_ref_array_item(ref_item, format, &output, &err))
                                                                   ^
                                                                    {
/datasets/git/ref-filter.c:2656:2: warning: the value returned by this function should be used [cert-err33-c]
        fwrite(output.buf, 1, output.len, stdout);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:2656:2: note: cast the expression to void to silence this warning
/datasets/git/ref-filter.c:2674:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (res < 0)
                    ^
                     {
/datasets/git/ref-filter.c:2694:22: warning: variable 's' is not initialized [cppcoreguidelines-init-variables]
        struct ref_sorting *s;
                            ^
                              = NULL
/datasets/git/ref-filter.c:2694:22: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ref-filter.c:2701:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                s->sort_flags |= REF_SORTING_REVERSE;
                ^                ~~~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:2705:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            skip_prefix(arg, "v:", &arg))
                                         ^
                                          {
/datasets/git/ref-filter.c:2706:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                s->sort_flags |= REF_SORTING_VERSION;
                ^                ~~~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:2712:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/ref-filter.c:2712:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct string_list_item *item;
        ^
/datasets/git/ref-filter.c:2713:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct ref_sorting *sorting = NULL, **tail = &sorting;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ref-filter.c:2718:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for_each_string_list_item(item, options)
                ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/ref-filter.c:2731:26: note: inferred assignment of ID-dependent value from ID-dependent variable next [altera-id-dependent-backward-branch]
void ref_sorting_release(struct ref_sorting *sorting)
                         ^
/datasets/git/ref-filter.c:2718:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
                for_each_string_list_item(item, options)
                                          ^
/datasets/git/ref-filter.c:2733:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (sorting) {
        ^
/datasets/git/ref-filter.c:2733:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'sorting' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (sorting) {
               ^
/datasets/git/ref-filter.c:2742:21: warning: variable name 'rf' is too short, expected at least 3 characters [readability-identifier-length]
        struct ref_filter *rf = opt->value;
                           ^
/datasets/git/ref-filter.c:2744:17: warning: variable 'merge_commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *merge_commit;
                       ^
                                    = NULL
/datasets/git/ref-filter.c:2746:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        BUG_ON_OPT_NEG(unset);
        ^
/datasets/git/./parse-options.h:284:31: note: expanded from macro 'BUG_ON_OPT_NEG'
#define BUG_ON_OPT_NEG(unset) do { \
                              ^
/datasets/git/ref-filter.c:2748:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid(arg, &oid))
                               ^
                                {
/datasets/git/ref-filter.c:2753:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!merge_commit)
                          ^
                           {
/datasets/git/ref-filter.c:2756:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (starts_with(opt->long_name, "no"))
                                              ^
                                               {
/datasets/git/ref-filter.c:2758:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/reflog-walk.c:3:1: warning: #includes are not sorted properly [llvm-include-order]
#include "refs.h"
^        ~~~~~~~~
         "diff.h"
/datasets/git/reflog-walk.c:9:8: warning: accessing fields in struct 'complete_reflogs' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct complete_reflogs {
       ^
/datasets/git/reflog-walk.c:9:8: note: use "__attribute__((aligned(32)))" to align struct 'complete_reflogs' to 32 bytes
/datasets/git/reflog-walk.c:12:9: warning: accessing fields in struct 'reflog_info' is inefficient due to padding; only needs 100 bytes but is using 104 bytes [altera-struct-pack-align]
        struct reflog_info {
               ^
/datasets/git/reflog-walk.c:12:9: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'reflog_info'
/datasets/git/reflog-walk.c:12:9: warning: accessing fields in struct 'reflog_info' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
        struct reflog_info {
               ^
/datasets/git/reflog-walk.c:12:9: note: use "__attribute__((aligned(128)))" to align struct 'reflog_info' to 128 bytes
/datasets/git/reflog-walk.c:23:22: warning: 2 adjacent parameters of 'read_one_reflog' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                const char *email, timestamp_t timestamp, int tz,
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/reflog-walk.c:23:34: note: the first parameter in the range is 'timestamp'
                const char *email, timestamp_t timestamp, int tz,
                                               ^~~~~~~~~
/datasets/git/reflog-walk.c:23:49: note: the last parameter in the range is 'tz'
                const char *email, timestamp_t timestamp, int tz,
                                                              ^~
/datasets/git/reflog-walk.c:23:22: note: 
                const char *email, timestamp_t timestamp, int tz,
                                   ^
/datasets/git/reflog-walk.c:23:45: note: 'timestamp_t' and 'int' may be implicitly converted: 'timestamp_t' (as 'unsigned long') -> 'int', 'int' -> 'timestamp_t' (as 'unsigned long')
                const char *email, timestamp_t timestamp, int tz,
                                                          ^
/datasets/git/reflog-walk.c:23:49: warning: parameter name 'tz' is too short, expected at least 3 characters [readability-identifier-length]
                const char *email, timestamp_t timestamp, int tz,
                                                              ^
/datasets/git/reflog-walk.c:27:22: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct reflog_info *item;
                            ^
                                 = NULL
/datasets/git/reflog-walk.c:29:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(array->items, array->nr + 1, array->alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/reflog-walk.c:43:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/reflog-walk.c:43:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/reflog-walk.c:45:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!array)
                   ^
                    {
/datasets/git/reflog-walk.c:48:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < array->nr; i++) {
        ^
/datasets/git/reflog-walk.c:71:15: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
                const char *name;
                            ^
                                 = NULL
/datasets/git/reflog-walk.c:72:9: warning: variable 'name_to_free' is not initialized [cppcoreguidelines-init-variables]
                void *name_to_free;
                      ^
                                   = NULL
/datasets/git/reflog-walk.c:96:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/reflog-walk.c:96:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/reflog-walk.c:97:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = array->nr - 1; i >= 0; i--)
        ^
/datasets/git/reflog-walk.c:97:26: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = array->nr - 1; i >= 0; i--)
                                ^
/datasets/git/reflog-walk.c:97:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = array->nr - 1; i >= 0; i--)
                                            ^
                                             {
/datasets/git/reflog-walk.c:98:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (timestamp >= array->items[i].timestamp)
                                                           ^
                                                            {
/datasets/git/reflog-walk.c:103:8: warning: accessing fields in struct 'commit_reflog' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct commit_reflog {
       ^
/datasets/git/reflog-walk.c:103:8: note: use "__attribute__((aligned(16)))" to align struct 'commit_reflog' to 16 bytes
/datasets/git/reflog-walk.c:113:8: warning: accessing fields in struct 'reflog_walk_info' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct reflog_walk_info {
       ^
/datasets/git/reflog-walk.c:113:8: note: use "__attribute__((aligned(128)))" to align struct 'reflog_walk_info' to 128 bytes
/datasets/git/reflog-walk.c:128:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i;
               ^
                 = 0
/datasets/git/reflog-walk.c:128:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/reflog-walk.c:130:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!info)
                  ^
                   {
/datasets/git/reflog-walk.c:133:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < info->nr; i++)
        ^
/datasets/git/reflog-walk.c:133:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < info->nr; i++)
                                      ^
                                       {
/datasets/git/reflog-walk.c:141:5: warning: function 'add_reflog_for_walk' has cognitive complexity of 35 (threshold 25) [readability-function-cognitive-complexity]
int add_reflog_for_walk(struct reflog_walk_info *info,
    ^
/datasets/git/reflog-walk.c:152:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (commit->object.flags & UNINTERESTING)
        ^
/datasets/git/reflog-walk.c:156:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (at && at[1] == '{') {
        ^
/datasets/git/reflog-walk.c:156:9: note: +1
        if (at && at[1] == '{') {
               ^
/datasets/git/reflog-walk.c:160:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*ep != '}') {
                ^
/datasets/git/reflog-walk.c:165:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/reflog-walk.c:167:4: note: +1, nesting level increased to 1
        } else
          ^
/datasets/git/reflog-walk.c:171:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (item)
        ^
/datasets/git/reflog-walk.c:173:2: note: +1, nesting level increased to 1
        else {
        ^
/datasets/git/reflog-walk.c:174:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*branch == '\0') {
                ^
/datasets/git/reflog-walk.c:177:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!branch)
                        ^
/datasets/git/reflog-walk.c:182:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!reflogs || reflogs->nr == 0) {
                ^
/datasets/git/reflog-walk.c:182:16: note: +1
                if (!reflogs || reflogs->nr == 0) {
                             ^
/datasets/git/reflog-walk.c:186:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ret > 1)
                        ^
/datasets/git/reflog-walk.c:188:9: note: +1, nesting level increased to 3
                        else if (ret == 1) {
                             ^
/datasets/git/reflog-walk.c:195:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!reflogs || reflogs->nr == 0) {
                ^
/datasets/git/reflog-walk.c:195:16: note: +1
                if (!reflogs || reflogs->nr == 0) {
                             ^
/datasets/git/reflog-walk.c:206:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (recno < 0) {
        ^
/datasets/git/reflog-walk.c:208:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (commit_reflog->recno < 0) {
                ^
/datasets/git/reflog-walk.c:212:4: note: +1, nesting level increased to 1
        } else
          ^
/datasets/git/reflog-walk.c:217:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        ALLOC_GROW(info->logs, info->nr + 1, info->alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/reflog-walk.c:217:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        ALLOC_GROW(info->logs, info->nr + 1, info->alloc);
        ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/reflog-walk.c:217:2: note: +3, including nesting penalty of 2, nesting level increased to 3
        ALLOC_GROW(info->logs, info->nr + 1, info->alloc);
        ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/reflog-walk.c:217:2: note: +1, nesting level increased to 3
        ALLOC_GROW(info->logs, info->nr + 1, info->alloc);
        ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/reflog-walk.c:146:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/reflog-walk.c:147:27: warning: variable 'reflogs' is not initialized [cppcoreguidelines-init-variables]
        struct complete_reflogs *reflogs;
                                 ^
                                         = NULL
/datasets/git/reflog-walk.c:148:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *branch, *at = strchr(name, '@');
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/reflog-walk.c:148:8: warning: variable 'branch' is not initialized [cppcoreguidelines-init-variables]
        char *branch, *at = strchr(name, '@');
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/reflog-walk.c:148:17: warning: variable name 'at' is too short, expected at least 3 characters [readability-identifier-length]
        char *branch, *at = strchr(name, '@');
                       ^
/datasets/git/reflog-walk.c:149:24: warning: variable 'commit_reflog' is not initialized [cppcoreguidelines-init-variables]
        struct commit_reflog *commit_reflog;
                              ^
                                            = NULL
/datasets/git/reflog-walk.c:152:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (commit->object.flags & UNINTERESTING)
                                   ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/reflog-walk.c:152:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (commit->object.flags & UNINTERESTING)
                                                 ^
                                                  {
/datasets/git/reflog-walk.c:157:9: warning: variable 'ep' is not initialized [cppcoreguidelines-init-variables]
                char *ep;
                      ^
                         = NULL
/datasets/git/reflog-walk.c:157:9: warning: variable name 'ep' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/reflog-walk.c:159:11: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                recno = strtoul(at + 2, &ep, 10);
                        ^
/datasets/git/reflog-walk.c:159:32: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                recno = strtoul(at + 2, &ep, 10);
                                             ^
/datasets/git/reflog-walk.c:165:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/reflog-walk.c:167:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/reflog-walk.c:171:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (item)
                 ^
                  {
/datasets/git/reflog-walk.c:177:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!branch)
                                    ^
                                     {
/datasets/git/reflog-walk.c:183:10: warning: variable 'b' is not initialized [cppcoreguidelines-init-variables]
                        char *b;
                              ^
                                = NULL
/datasets/git/reflog-walk.c:183:10: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/reflog-walk.c:184:31: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        int ret = dwim_log(branch, strlen(branch),
                                                   ^
/datasets/git/reflog-walk.c:186:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ret > 1)
                                    ^
                                     {
/datasets/git/reflog-walk.c:212:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/reflog-walk.c:217:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(info->logs, info->nr + 1, info->alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/reflog-walk.c:217:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_GROW(info->logs, info->nr + 1, info->alloc);
        ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/reflog-walk.c:223:41: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void get_reflog_selector(struct strbuf *sb,
                                        ^
/datasets/git/reflog-walk.c:225:36: warning: 2 adjacent parameters of 'get_reflog_selector' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                         const struct date_mode *dmode, int force_date,
                                                        ^~~~~~~~~~~~~~~
/datasets/git/reflog-walk.c:225:40: note: the first parameter in the range is 'force_date'
                         const struct date_mode *dmode, int force_date,
                                                            ^~~~~~~~~~
/datasets/git/reflog-walk.c:226:9: note: the last parameter in the range is 'shorten'
                         int shorten)
                             ^~~~~~~
/datasets/git/reflog-walk.c:229:22: warning: variable 'info' is not initialized [cppcoreguidelines-init-variables]
        struct reflog_info *info;
                            ^
                                 = NULL
/datasets/git/reflog-walk.c:230:14: warning: variable 'printed_ref' is not initialized [cppcoreguidelines-init-variables]
        const char *printed_ref;
                    ^
                                = NULL
/datasets/git/reflog-walk.c:232:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!commit_reflog)
                           ^
                            {
/datasets/git/reflog-walk.c:236:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!commit_reflog->reflogs->short_ref)
                                                       ^
                                                        {
/datasets/git/reflog-walk.c:257:40: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void get_reflog_message(struct strbuf *sb,
                                       ^
/datasets/git/reflog-walk.c:261:22: warning: variable 'info' is not initialized [cppcoreguidelines-init-variables]
        struct reflog_info *info;
                            ^
                                 = NULL
/datasets/git/reflog-walk.c:262:9: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        size_t len;
               ^
                   = 0
/datasets/git/reflog-walk.c:264:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!commit_reflog)
                           ^
                            {
/datasets/git/reflog-walk.c:269:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len > 0)
                    ^
                     {
/datasets/git/reflog-walk.c:277:22: warning: variable 'info' is not initialized [cppcoreguidelines-init-variables]
        struct reflog_info *info;
                            ^
                                 = NULL
/datasets/git/reflog-walk.c:279:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!commit_reflog)
                           ^
                            {
/datasets/git/reflog-walk.c:289:22: warning: variable 'info' is not initialized [cppcoreguidelines-init-variables]
        struct reflog_info *info;
                            ^
                                 = NULL
/datasets/git/reflog-walk.c:291:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!commit_reflog)
                           ^
                            {
/datasets/git/reflog-walk.c:303:23: warning: variable 'info' is not initialized [cppcoreguidelines-init-variables]
                struct reflog_info *info;
                                    ^
                                         = NULL
/datasets/git/reflog-walk.c:104:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        int recno;
        ^
/datasets/git/reflog-walk.c:327:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; log->recno >= 0; log->recno--) {
        ^
/datasets/git/reflog-walk.c:327:9: warning: backward branch (for loop) is ID-dependent due to member reference to 'recno' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; log->recno >= 0; log->recno--) {
               ^
/datasets/git/reflog-walk.c:332:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (obj && obj->type == OBJ_COMMIT)
                                                   ^
                                                    {
/datasets/git/reflog-walk.c:347:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i;
               ^
                 = 0
/datasets/git/reflog-walk.c:347:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/reflog-walk.c:349:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < walk->nr; i++) {
        ^
/datasets/git/reflog-walk.c:353:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!commit)
                            ^
                             {
/datasets/git/reflog.c:9:1: warning: replace macro with enum [modernize-macro-to-enum]
#define INCOMPLETE      (1u<<10)
^~~~~~~~
                   =            ,
/datasets/git/reflog.c:9:9: warning: macro 'INCOMPLETE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define INCOMPLETE      (1u<<10)
        ^
/datasets/git/reflog.c:10:9: warning: macro 'STUDYING' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define STUDYING        (1u<<11)
        ^
/datasets/git/reflog.c:11:9: warning: macro 'REACHABLE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define REACHABLE       (1u<<12)
        ^
/datasets/git/reflog.c:13:12: warning: function 'tree_is_complete' is within a recursive call chain [misc-no-recursion]
static int tree_is_complete(const struct object_id *oid)
           ^
/datasets/git/reflog.c:13:12: note: example recursive call chain, starting from function 'tree_is_complete'
/datasets/git/reflog.c:43:32: note: Frame #1: function 'tree_is_complete' calls function 'tree_is_complete' here:
                    (S_ISDIR(entry.mode) && !tree_is_complete(&entry.oid))) {
                                             ^
/datasets/git/reflog.c:43:32: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/reflog.c:17:6: warning: variable 'complete' is not initialized [cppcoreguidelines-init-variables]
        int complete;
            ^
                     = 0
/datasets/git/reflog.c:18:15: warning: variable 'tree' is not initialized [cppcoreguidelines-init-variables]
        struct tree *tree;
                     ^
                          = NULL
/datasets/git/reflog.c:21:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!tree)
                  ^
                   {
/datasets/git/reflog.c:23:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (tree->object.flags & SEEN)
                                 ^
/datasets/git/./revision.h:27:16: note: expanded from macro 'SEEN'
#define SEEN            (1u<<0)
                         ^   ~
/datasets/git/reflog.c:23:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (tree->object.flags & SEEN)
                                      ^
                                       {
/datasets/git/reflog.c:25:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (tree->object.flags & INCOMPLETE)
                                 ^
/datasets/git/reflog.c:9:21: note: expanded from macro 'INCOMPLETE'
#define INCOMPLETE      (1u<<10)
                         ^   ~~
/datasets/git/reflog.c:25:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (tree->object.flags & INCOMPLETE)
                                            ^
                                             {
/datasets/git/reflog.c:29:20: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
                enum object_type type;
                                 ^
/datasets/git/reflog.c:30:17: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
                unsigned long size;
                              ^
                                   = 0
/datasets/git/reflog.c:33:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        tree->object.flags |= INCOMPLETE;
                                              ^
/datasets/git/reflog.c:9:21: note: expanded from macro 'INCOMPLETE'
#define INCOMPLETE      (1u<<10)
                         ^   ~~
/datasets/git/reflog.c:41:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (tree_entry(&desc, &entry)) {
        ^
/datasets/git/reflog.c:44:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        tree->object.flags |= INCOMPLETE;
                                              ^
/datasets/git/reflog.c:9:21: note: expanded from macro 'INCOMPLETE'
#define INCOMPLETE      (1u<<10)
                         ^   ~~
/datasets/git/reflog.c:50:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (complete)
                     ^
                      {
/datasets/git/reflog.c:51:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                tree->object.flags |= SEEN;
                                      ^
/datasets/git/./revision.h:27:16: note: expanded from macro 'SEEN'
#define SEEN            (1u<<0)
                         ^   ~
/datasets/git/reflog.c:55:12: warning: function 'commit_is_complete' has cognitive complexity of 30 (threshold 25) [readability-function-cognitive-complexity]
static int commit_is_complete(struct commit *commit)
           ^
/datasets/git/reflog.c:63:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (commit->object.flags & SEEN)
        ^
/datasets/git/reflog.c:65:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (commit->object.flags & INCOMPLETE)
        ^
/datasets/git/reflog.c:79:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (study.nr) {
        ^
/datasets/git/reflog.c:84:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!c->object.parsed && !parse_object(the_repository, &c->object.oid))
                ^
/datasets/git/reflog.c:84:25: note: +1
                if (!c->object.parsed && !parse_object(the_repository, &c->object.oid))
                                      ^
/datasets/git/reflog.c:87:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (c->object.flags & INCOMPLETE) {
                ^
/datasets/git/reflog.c:91:8: note: +1, nesting level increased to 2
                else if (c->object.flags & SEEN)
                     ^
/datasets/git/reflog.c:93:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (parent = c->parents; parent; parent = parent->next) {
                ^
/datasets/git/reflog.c:95:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (p->object.flags & STUDYING)
                        ^
/datasets/git/reflog.c:102:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!is_incomplete) {
        ^
/datasets/git/reflog.c:107:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < found.nr; i++) {
                ^
/datasets/git/reflog.c:110:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!tree_is_complete(get_commit_tree_oid(c))) {
                        ^
/datasets/git/reflog.c:115:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!is_incomplete) {
                ^
/datasets/git/reflog.c:117:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (i = 0; i < found.nr; i++)
                        ^
/datasets/git/reflog.c:122:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < found.nr; i++)
        ^
/datasets/git/reflog.c:124:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (is_incomplete)
        ^
/datasets/git/reflog.c:126:2: note: +1, nesting level increased to 1
        else {
        ^
/datasets/git/reflog.c:135:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < found.nr; i++)
                ^
/datasets/git/reflog.c:60:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/reflog.c:60:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/reflog.c:63:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (commit->object.flags & SEEN)
                                   ^
/datasets/git/./revision.h:27:16: note: expanded from macro 'SEEN'
#define SEEN            (1u<<0)
                         ^   ~
/datasets/git/reflog.c:63:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (commit->object.flags & SEEN)
                                        ^
                                         {
/datasets/git/reflog.c:65:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (commit->object.flags & INCOMPLETE)
                                   ^
/datasets/git/reflog.c:9:21: note: expanded from macro 'INCOMPLETE'
#define INCOMPLETE      (1u<<10)
                         ^   ~~
/datasets/git/reflog.c:65:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (commit->object.flags & INCOMPLETE)
                                              ^
                                               {
/datasets/git/reflog.c:74:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&study, 0, sizeof(study));
        ^~~~~~
/datasets/git/reflog.c:74:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&study, 0, sizeof(study));
        ^~~~~~
/datasets/git/reflog.c:75:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&found, 0, sizeof(found));
        ^~~~~~
/datasets/git/reflog.c:75:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&found, 0, sizeof(found));
        ^~~~~~
/datasets/git/reflog.c:78:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        commit->object.flags |= STUDYING;
                                ^
/datasets/git/reflog.c:10:19: note: expanded from macro 'STUDYING'
#define STUDYING        (1u<<11)
                         ^   ~~
/datasets/git/reflog.c:80:18: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
                struct commit *c;
                               ^
                                 = NULL
/datasets/git/reflog.c:80:18: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/reflog.c:81:23: warning: variable 'parent' is not initialized [cppcoreguidelines-init-variables]
                struct commit_list *parent;
                                    ^
                                           = NULL
/datasets/git/reflog.c:84:74: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!c->object.parsed && !parse_object(the_repository, &c->object.oid))
                                                                                       ^
                                                                                        {
/datasets/git/reflog.c:85:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        c->object.flags |= INCOMPLETE;
                                           ^
/datasets/git/reflog.c:9:21: note: expanded from macro 'INCOMPLETE'
#define INCOMPLETE      (1u<<10)
                         ^   ~~
/datasets/git/reflog.c:87:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (c->object.flags & INCOMPLETE) {
                                      ^
/datasets/git/reflog.c:9:21: note: expanded from macro 'INCOMPLETE'
#define INCOMPLETE      (1u<<10)
                         ^   ~~
/datasets/git/reflog.c:91:3: warning: do not use 'else' after 'break' [llvm-else-after-return,readability-else-after-return]
                else if (c->object.flags & SEEN)
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/reflog.c:91:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                else if (c->object.flags & SEEN)
                                           ^
/datasets/git/./revision.h:27:16: note: expanded from macro 'SEEN'
#define SEEN            (1u<<0)
                         ^   ~
/datasets/git/reflog.c:91:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (c->object.flags & SEEN)
                                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/reflog.c:93:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (parent = c->parents; parent; parent = parent->next) {
                ^
/datasets/git/reflog.c:93:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'parent' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (parent = c->parents; parent; parent = parent->next) {
                                          ^
/datasets/git/reflog.c:94:19: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                        struct commit *p = parent->item;
                                       ^
/datasets/git/reflog.c:95:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (p->object.flags & STUDYING)
                                              ^
/datasets/git/reflog.c:10:19: note: expanded from macro 'STUDYING'
#define STUDYING        (1u<<11)
                         ^   ~~
/datasets/git/reflog.c:95:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (p->object.flags & STUDYING)
                                                       ^
                                                        {
/datasets/git/reflog.c:97:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        p->object.flags |= STUDYING;
                                           ^
/datasets/git/reflog.c:10:19: note: expanded from macro 'STUDYING'
#define STUDYING        (1u<<11)
                         ^   ~~
/datasets/git/reflog.c:107:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < found.nr; i++) {
                ^
/datasets/git/reflog.c:108:19: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                        struct commit *c =
                                       ^
/datasets/git/reflog.c:112:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                c->object.flags |= INCOMPLETE;
                                                   ^
/datasets/git/reflog.c:9:21: note: expanded from macro 'INCOMPLETE'
#define INCOMPLETE      (1u<<10)
                         ^   ~~
/datasets/git/reflog.c:117:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = 0; i < found.nr; i++)
                        ^
/datasets/git/reflog.c:117:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (i = 0; i < found.nr; i++)
                                                      ^
                                                       {
/datasets/git/reflog.c:118:37: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                found.objects[i].item->flags |= SEEN;
                                                                ^
/datasets/git/./revision.h:27:16: note: expanded from macro 'SEEN'
#define SEEN            (1u<<0)
                         ^   ~
/datasets/git/reflog.c:122:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < found.nr; i++)
        ^
/datasets/git/reflog.c:122:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < found.nr; i++)
                                      ^
                                       {
/datasets/git/reflog.c:123:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                found.objects[i].item->flags &= ~STUDYING;
                                                 ^
/datasets/git/reflog.c:10:19: note: expanded from macro 'STUDYING'
#define STUDYING        (1u<<11)
                         ^   ~~
/datasets/git/reflog.c:124:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_incomplete)
                          ^
                           {
/datasets/git/reflog.c:125:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                commit->object.flags |= INCOMPLETE;
                                        ^
/datasets/git/reflog.c:9:21: note: expanded from macro 'INCOMPLETE'
#define INCOMPLETE      (1u<<10)
                         ^   ~~
/datasets/git/reflog.c:135:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < found.nr; i++)
                ^
/datasets/git/reflog.c:135:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < found.nr; i++)
                                              ^
                                               {
/datasets/git/reflog.c:136:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        found.objects[i].item->flags |= SEEN;
                                                        ^
/datasets/git/./revision.h:27:16: note: expanded from macro 'SEEN'
#define SEEN            (1u<<0)
                         ^   ~
/datasets/git/reflog.c:144:39: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
static int keep_entry(struct commit **it, struct object_id *oid)
                                      ^
/datasets/git/reflog.c:146:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/reflog.c:148:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_null_oid(oid))
                             ^
                              {
/datasets/git/reflog.c:151:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!commit)
                    ^
                     {
/datasets/git/reflog.c:162:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!commit_is_complete(commit))
                                        ^
                                         {
/datasets/git/reflog.c:174:60: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static void mark_reachable(struct expire_reflog_policy_cb *cb)
                                                           ^
/datasets/git/reflog.c:176:22: warning: variable 'pending' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *pending;
                            ^
                                    = NULL
/datasets/git/reflog.c:180:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (pending = cb->mark_list; pending; pending = pending->next)
        ^
/datasets/git/reflog.c:176:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct commit_list *pending;
        ^
/datasets/git/reflog.c:180:32: warning: backward branch (for loop) is ID-dependent due to variable reference to 'pending' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (pending = cb->mark_list; pending; pending = pending->next)
                                      ^
/datasets/git/reflog.c:180:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (pending = cb->mark_list; pending; pending = pending->next)
                                                                       ^
                                                                        {
/datasets/git/reflog.c:181:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                pending->item->object.flags &= ~REACHABLE;
                                                ^
/datasets/git/reflog.c:11:20: note: expanded from macro 'REACHABLE'
#define REACHABLE       (1u<<12)
                         ^   ~~
/datasets/git/reflog.c:184:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'pending' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (pending) {
               ^
/datasets/git/reflog.c:185:23: warning: variable 'parent' is not initialized [cppcoreguidelines-init-variables]
                struct commit_list *parent;
                                    ^
                                           = NULL
/datasets/git/reflog.c:187:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (commit->object.flags & REACHABLE)
                                           ^
/datasets/git/reflog.c:11:20: note: expanded from macro 'REACHABLE'
#define REACHABLE       (1u<<12)
                         ^   ~~
/datasets/git/reflog.c:187:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (commit->object.flags & REACHABLE)
                                                     ^
                                                      {
/datasets/git/reflog.c:189:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (parse_commit(commit))
                                         ^
                                          {
/datasets/git/reflog.c:191:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                commit->object.flags |= REACHABLE;
                                        ^
/datasets/git/reflog.c:11:20: note: expanded from macro 'REACHABLE'
#define REACHABLE       (1u<<12)
                         ^   ~~
/datasets/git/reflog.c:196:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                commit->object.flags |= REACHABLE;
                                        ^
/datasets/git/reflog.c:11:20: note: expanded from macro 'REACHABLE'
#define REACHABLE       (1u<<12)
                         ^   ~~
/datasets/git/reflog.c:198:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (parent) {
                ^
/datasets/git/reflog.c:198:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'parent' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (parent) {
                       ^
/datasets/git/reflog.c:201:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (commit->object.flags & REACHABLE)
                                                   ^
/datasets/git/reflog.c:11:20: note: expanded from macro 'REACHABLE'
#define REACHABLE       (1u<<12)
                         ^   ~~
/datasets/git/reflog.c:201:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (commit->object.flags & REACHABLE)
                                                             ^
                                                              {
/datasets/git/reflog.c:209:56: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int unreachable(struct expire_reflog_policy_cb *cb, struct commit *commit, struct object_id *oid)
                                                       ^
/datasets/git/reflog.c:216:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_null_oid(oid))
                                     ^
                                      {
/datasets/git/reflog.c:223:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!commit)
                            ^
                             {
/datasets/git/reflog.c:228:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (commit->object.flags & REACHABLE)
                                   ^
/datasets/git/reflog.c:11:20: note: expanded from macro 'REACHABLE'
#define REACHABLE       (1u<<12)
                         ^   ~~
/datasets/git/reflog.c:228:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (commit->object.flags & REACHABLE)
                                             ^
                                              {
/datasets/git/reflog.c:236:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return !(commit->object.flags & REACHABLE);
                                        ^
/datasets/git/reflog.c:11:20: note: expanded from macro 'REACHABLE'
#define REACHABLE       (1u<<12)
                         ^   ~~
/datasets/git/reflog.c:244:9: warning: 2 adjacent parameters of 'should_expire_reflog_ent' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                             timestamp_t timestamp, int tz UNUSED,
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/reflog.c:244:21: note: the first parameter in the range is 'timestamp'
                             timestamp_t timestamp, int tz UNUSED,
                                         ^~~~~~~~~
/datasets/git/reflog.c:244:36: note: the last parameter in the range is 'tz'
                             timestamp_t timestamp, int tz UNUSED,
                                                        ^~
/datasets/git/reflog.c:244:9: note: 
                             timestamp_t timestamp, int tz UNUSED,
                             ^
/datasets/git/reflog.c:244:32: note: 'timestamp_t' and 'int' may be implicitly converted: 'timestamp_t' (as 'unsigned long') -> 'int', 'int' -> 'timestamp_t' (as 'unsigned long')
                             timestamp_t timestamp, int tz UNUSED,
                                                    ^
/datasets/git/reflog.c:244:36: warning: parameter name 'tz' is too short, expected at least 3 characters [readability-identifier-length]
                             timestamp_t timestamp, int tz UNUSED,
                                                        ^
/datasets/git/reflog.c:247:34: warning: variable name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
        struct expire_reflog_policy_cb *cb = cb_data;
                                        ^
/datasets/git/reflog.c:248:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit *old_commit, *new_commit;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/reflog.c:248:17: warning: variable 'old_commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *old_commit, *new_commit;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/reflog.c:248:30: warning: variable 'new_commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *old_commit, *new_commit;
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/reflog.c:250:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (timestamp < cb->cmd.expire_total)
                                             ^
                                              {
/datasets/git/reflog.c:255:73: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            (!keep_entry(&old_commit, ooid) || !keep_entry(&new_commit, noid)))
                                                                               ^
                                                                                {
/datasets/git/reflog.c:264:79: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (unreachable(cb, old_commit, ooid) || unreachable(cb, new_commit, noid))
                                                                                                   ^
                                                                                                    {
/datasets/git/reflog.c:270:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cb->cmd.recno && --(cb->cmd.recno) == 0)
                                                    ^
                                                     {
/datasets/git/reflog.c:279:37: warning: parameter name 'tz' is too short, expected at least 3 characters [readability-identifier-length]
                                     timestamp_t timestamp, int tz,
                                                                ^
/datasets/git/reflog.c:282:34: warning: variable name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
        struct expire_reflog_policy_cb *cb = cb_data;
                                        ^
/datasets/git/reflog.c:283:6: warning: variable 'expire' is not initialized [cppcoreguidelines-init-variables]
        int expire;
            ^
                   = 0
/datasets/git/reflog.c:288:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!expire)
                    ^
                     {
/datasets/git/reflog.c:290:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (cb->dry_run)
                             ^
                              {
/datasets/git/reflog.c:292:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/reflog.c:303:17: warning: variable 'tip_commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *tip_commit;
                       ^
                                  = NULL
/datasets/git/reflog.c:304:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & REF_ISSYMREF)
            ^~~~~
/datasets/git/reflog.c:304:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & REF_ISSYMREF)
                                 ^
                                  {
/datasets/git/reflog.c:307:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!tip_commit)
                        ^
                         {
/datasets/git/reflog.c:315:14: warning: variable 'stripped_refname' is not initialized [cppcoreguidelines-init-variables]
        const char *stripped_refname;
                    ^
                                     = NULL
/datasets/git/reflog.c:324:34: warning: variable name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
        struct expire_reflog_policy_cb *cb = cb_data;
                                        ^
/datasets/git/reflog.c:325:22: warning: variable 'elem' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *elem;
                            ^
                                 = NULL
/datasets/git/reflog.c:332:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (commit && is_null_oid(&commit->object.oid))
                                                               ^
                                                                {
/datasets/git/reflog.c:337:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cb->cmd.expire_unreachable <= cb->cmd.expire_total)
                                                               ^
                                                                {
/datasets/git/reflog.c:345:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (elem = cb->tips; elem; elem = elem->next)
                ^
/datasets/git/reflog.c:345:25: warning: backward branch (for loop) is ID-dependent due to variable reference to 'elem' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (elem = cb->tips; elem; elem = elem->next)
                                      ^
/datasets/git/reflog.c:345:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (elem = cb->tips; elem; elem = elem->next)
                                                              ^
                                                               {
/datasets/git/reflog.c:359:34: warning: variable name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
        struct expire_reflog_policy_cb *cb = cb_data;
                                        ^
/datasets/git/reflog.c:360:22: warning: variable 'elem' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *elem;
                            ^
                                 = NULL
/datasets/git/reflog.c:366:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (elem = cb->tips; elem; elem = elem->next)
                ^
/datasets/git/reflog.c:366:25: warning: backward branch (for loop) is ID-dependent due to variable reference to 'elem' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (elem = cb->tips; elem; elem = elem->next)
                                      ^
/datasets/git/reflog.c:366:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (elem = cb->tips; elem; elem = elem->next)
                                                              ^
                                                               {
/datasets/git/reflog.c:367:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        clear_commit_marks(elem->item, REACHABLE);
                                                       ^
/datasets/git/reflog.c:11:20: note: expanded from macro 'REACHABLE'
#define REACHABLE       (1u<<12)
                         ^   ~~
/datasets/git/reflog.c:371:38: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                clear_commit_marks(cb->tip_commit, REACHABLE);
                                                   ^
/datasets/git/reflog.c:11:20: note: expanded from macro 'REACHABLE'
#define REACHABLE       (1u<<12)
                         ^   ~~
/datasets/git/reflog.c:379:8: warning: 2 adjacent parameters of 'count_reflog_ent' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                     timestamp_t timestamp, int tz UNUSED,
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/reflog.c:379:20: note: the first parameter in the range is 'timestamp'
                     timestamp_t timestamp, int tz UNUSED,
                                 ^~~~~~~~~
/datasets/git/reflog.c:379:35: note: the last parameter in the range is 'tz'
                     timestamp_t timestamp, int tz UNUSED,
                                                ^~
/datasets/git/reflog.c:379:8: note: 
                     timestamp_t timestamp, int tz UNUSED,
                     ^
/datasets/git/reflog.c:379:31: note: 'timestamp_t' and 'int' may be implicitly converted: 'timestamp_t' (as 'unsigned long') -> 'int', 'int' -> 'timestamp_t' (as 'unsigned long')
                     timestamp_t timestamp, int tz UNUSED,
                                            ^
/datasets/git/reflog.c:379:35: warning: parameter name 'tz' is too short, expected at least 3 characters [readability-identifier-length]
                     timestamp_t timestamp, int tz UNUSED,
                                                ^
/datasets/git/reflog.c:382:31: warning: variable name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
        struct cmd_reflog_expire_cb *cb = cb_data;
                                     ^
/datasets/git/reflog.c:383:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!cb->expire_total || timestamp < cb->expire_total)
                                                              ^
                                                               {
/datasets/git/reflog.c:388:36: warning: 2 adjacent parameters of 'reflog_delete' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
int reflog_delete(const char *rev, enum expire_reflog_flags flags, int verbose)
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/reflog.c:388:61: note: the first parameter in the range is 'flags'
int reflog_delete(const char *rev, enum expire_reflog_flags flags, int verbose)
                                                            ^~~~~
/datasets/git/reflog.c:388:72: note: the last parameter in the range is 'verbose'
int reflog_delete(const char *rev, enum expire_reflog_flags flags, int verbose)
                                                                       ^~~~~~~
/datasets/git/reflog.c:388:68: note: 'enum expire_reflog_flags' and 'int' may be implicitly converted
int reflog_delete(const char *rev, enum expire_reflog_flags flags, int verbose)
                                                                   ^
/datasets/git/reflog.c:394:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *ep, *ref;
        ^~~~~~~~~~~~~~~
/datasets/git/reflog.c:394:8: warning: variable 'ep' is not initialized [cppcoreguidelines-init-variables]
        char *ep, *ref;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/reflog.c:394:8: warning: variable name 'ep' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/reflog.c:394:13: warning: variable 'ref' is not initialized [cppcoreguidelines-init-variables]
        char *ep, *ref;
                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/reflog.c:395:6: warning: variable 'recno' is not initialized [cppcoreguidelines-init-variables]
        int recno;
            ^
                  = 0
/datasets/git/reflog.c:396:33: warning: variable name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
        struct expire_reflog_policy_cb cb = {
                                       ^
/datasets/git/reflog.c:397:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                .dry_run = !!(flags & EXPIRE_REFLOGS_DRY_RUN),
                              ^       ~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/reflog.c:400:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (verbose)
                    ^
                     {
/datasets/git/reflog.c:403:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!spec)
                  ^
                   {
/datasets/git/reflog.c:406:21: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        if (!dwim_log(rev, spec - rev, NULL, &ref)) {
                           ^
/datasets/git/reflog.c:407:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                status |= error(_("no reflog for '%s'"), rev);
                ^~~~~~
/datasets/git/reflog.c:411:10: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        recno = strtoul(spec + 2, &ep, 10);
                ^
/datasets/git/reflog.c:411:33: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        recno = strtoul(spec + 2, &ep, 10);
                                       ^
/datasets/git/reflog.c:422:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        status |= reflog_expire(ref, flags,
        ^~~~~~
/datasets/git/refs.c:6:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "commit.h"
/datasets/git/refs.c:28:31: warning: variable 'refs_backends' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct ref_storage_be *refs_backends = &refs_be_files;
                              ^
/datasets/git/refs.c:28:31: warning: variable 'refs_backends' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/refs.c:28:31: warning: initializing non-local variable with non-const expression depending on uninitialized non-local variable 'refs_be_files' [cppcoreguidelines-interfaces-global-init]
/datasets/git/refs.c:32:25: warning: variable 'be' is not initialized [cppcoreguidelines-init-variables]
        struct ref_storage_be *be;
                               ^
                                  = NULL
/datasets/git/refs.c:32:25: warning: variable name 'be' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs.c:33:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (be = refs_backends; be; be = be->next)
        ^
/datasets/git/refs.c:33:27: warning: backward branch (for loop) is ID-dependent due to variable reference to 'be' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (be = refs_backends; be; be = be->next)
                                 ^
/datasets/git/refs.c:33:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (be = refs_backends; be; be = be->next)
                                                   ^
                                                    {
/datasets/git/refs.c:34:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(be->name, name))
                                            ^
                                             {
/datasets/git/refs.c:49:22: warning: variable 'refname_disposition' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned char refname_disposition[256] = {
                     ^
/datasets/git/refs.c:49:42: warning: 256 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
static unsigned char refname_disposition[256] = {
                                         ^
/datasets/git/refs.c:52:32: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 2, 1,
                                      ^
/datasets/git/refs.c:60:27: warning: variable 'ref_namespace' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
struct ref_namespace_info ref_namespace[] = {
                          ^
/datasets/git/refs.c:136:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (info->ref_updated)
                              ^
                               {
/datasets/git/refs.c:161:12: warning: function 'check_refname_component' has cognitive complexity of 47 (threshold 25) [readability-function-cognitive-complexity]
static int check_refname_component(const char *refname, int *flags,
           ^
/datasets/git/refs.c:168:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (sanitized)
        ^
/datasets/git/refs.c:171:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (cp = refname; ; cp++) {
        ^
/datasets/git/refs.c:175:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (sanitized && disp != 1)
                ^
/datasets/git/refs.c:175:17: note: +1
                if (sanitized && disp != 1)
                              ^
/datasets/git/refs.c:178:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                switch (disp) {
                ^
/datasets/git/refs.c:180:4: note: +1
                        goto out;
                        ^
/datasets/git/refs.c:182:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (last == '.') { /* Refname contains "..". */
                        ^
/datasets/git/refs.c:183:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (sanitized)
                                ^
/datasets/git/refs.c:186:5: note: +1, nesting level increased to 4
                                else
                                ^
/datasets/git/refs.c:191:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (last == '@') { /* Refname contains "@{". */
                        ^
/datasets/git/refs.c:192:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (sanitized)
                                ^
/datasets/git/refs.c:194:5: note: +1, nesting level increased to 4
                                else
                                ^
/datasets/git/refs.c:200:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (sanitized)
                        ^
/datasets/git/refs.c:202:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/refs.c:206:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!(*flags & REFNAME_REFSPEC_PATTERN)) {
                        ^
/datasets/git/refs.c:208:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (sanitized)
                                ^
/datasets/git/refs.c:210:5: note: +1, nesting level increased to 4
                                else
                                ^
/datasets/git/refs.c:224:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (cp == refname)
        ^
/datasets/git/refs.c:227:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (refname[0] == '.') { /* Component starts with '.'. */
        ^
/datasets/git/refs.c:228:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (sanitized)
                ^
/datasets/git/refs.c:230:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/refs.c:233:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (cp - refname >= LOCK_SUFFIX_LEN &&
        ^
/datasets/git/refs.c:233:38: note: +1
        if (cp - refname >= LOCK_SUFFIX_LEN &&
                                            ^
/datasets/git/refs.c:235:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!sanitized)
                ^
/datasets/git/refs.c:238:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (strbuf_strip_suffix(sanitized, LOCK_SUFFIX)) {
                ^
/datasets/git/refs.c:164:14: warning: variable 'cp' is not initialized [cppcoreguidelines-init-variables]
        const char *cp;
                    ^
                       = NULL
/datasets/git/refs.c:164:14: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs.c:168:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (sanitized)
                      ^
                       {
/datasets/git/refs.c:171:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cp = refname; ; cp++) {
        ^
/datasets/git/refs.c:172:7: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
                int ch = *cp & 255;
                    ^
/datasets/git/refs.c:172:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                int ch = *cp & 255;
                         ^~~
/datasets/git/refs.c:172:18: warning: 255 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                int ch = *cp & 255;
                               ^
/datasets/git/refs.c:175:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (sanitized && disp != 1)
                                           ^
                                            {
/datasets/git/refs.c:178:3: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
                switch (disp) {
                ^
/datasets/git/refs.c:183:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (sanitized)
                                              ^
                                               {
/datasets/git/refs.c:186:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                else
                                    ^
                                     {
/datasets/git/refs.c:192:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (sanitized)
                                              ^
                                               {
/datasets/git/refs.c:194:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                else
                                    ^
                                     {
/datasets/git/refs.c:200:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (sanitized)
                                      ^
                                       {
/datasets/git/refs.c:202:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/refs.c:205:8: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                case 5:
                     ^
/datasets/git/refs.c:206:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!(*flags & REFNAME_REFSPEC_PATTERN)) {
                              ^~~~~~
/datasets/git/refs.c:208:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (sanitized)
                                              ^
                                               {
/datasets/git/refs.c:210:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                else
                                    ^
                                     {
/datasets/git/refs.c:218:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        *flags &= ~ REFNAME_REFSPEC_PATTERN;
                        ^~~~~~
/datasets/git/refs.c:218:14: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                        *flags &= ~ REFNAME_REFSPEC_PATTERN;
                                  ^
/datasets/git/refs.c:221:10: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                last = ch;
                       ^
/datasets/git/refs.c:224:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cp == refname)
                          ^
                           {
/datasets/git/refs.c:228:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (sanitized)
                              ^
                               {
/datasets/git/refs.c:230:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/refs.c:235:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!sanitized)
                               ^
                                {
/datasets/git/refs.c:238:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (strbuf_strip_suffix(sanitized, LOCK_SUFFIX)) {
                ^
/datasets/git/refs.c:242:9: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return cp - refname;
               ^
/datasets/git/refs.c:248:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int component_len, component_count = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs.c:248:6: warning: variable 'component_len' is not initialized [cppcoreguidelines-init-variables]
        int component_len, component_count = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs.c:252:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (sanitized)
                              ^
                               {
/datasets/git/refs.c:254:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/refs.c:258:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/refs.c:259:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (sanitized && sanitized->len)
                                                ^
                                                 {
/datasets/git/refs.c:265:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (sanitized && component_len == 0)
                                                    ^
                                                     {
/datasets/git/refs.c:267:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (component_len <= 0)
                                            ^
                                             {
/datasets/git/refs.c:271:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (refname[component_len] == '\0')
                                                   ^
                                                    {
/datasets/git/refs.c:279:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (sanitized)
                              ^
                               {
/datasets/git/refs.c:281:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/refs.c:284:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & REFNAME_ALLOW_ONELEVEL) && component_count < 2)
              ^~~~~
/datasets/git/refs.c:284:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(flags & REFNAME_ALLOW_ONELEVEL) && component_count < 2)
                                                                     ^
                                                                      {
/datasets/git/refs.c:296:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (check_or_sanitize_refname(refname, REFNAME_ALLOW_ONELEVEL, out))
                                                                            ^
                                                                             {
/datasets/git/refs.c:302:14: warning: variable 'rest' is not initialized [cppcoreguidelines-init-variables]
        const char *rest;
                    ^
                         = NULL
/datasets/git/refs.c:305:9: warning: variable 'buf' is not initialized [cppcoreguidelines-init-variables]
                char *buf;
                      ^
                          = NULL
/datasets/git/refs.c:306:7: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
                int result;
                    ^
                           = 0
/datasets/git/refs.c:310:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!restlen || *rest == '/' || rest[restlen - 1] == '/')
                                                                         ^
                                                                          {
/datasets/git/refs.c:324:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        do {
        ^
/datasets/git/refs.c:325:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!isupper(*refname) && *refname != '_')
                                                          ^
                                                           {
/datasets/git/refs.c:342:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & REF_ISBROKEN)
            ^
/datasets/git/refs.c:342:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & REF_ISBROKEN)
                                 ^
                                  {
/datasets/git/refs.c:355:14: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        const char *result;
                    ^
                           = NULL
/datasets/git/refs.c:371:8: warning: accessing fields in struct 'ref_filter' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct ref_filter {
       ^
/datasets/git/refs.c:371:8: note: use "__attribute__((aligned(32)))" to align struct 'ref_filter' to 32 bytes
/datasets/git/refs.c:383:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                    oid, flags))
                                                ^
                                                 {
/datasets/git/refs.c:409:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (wildmatch(filter->pattern, refname, 0))
                                                   ^
                                                    {
/datasets/git/refs.c:411:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (filter->prefix)
                           ^
                            {
/datasets/git/refs.c:418:17: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
        struct object *o = lookup_unknown_object(the_repository, name);
                       ^
/datasets/git/refs.c:422:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (type < 0 || !object_as_type(o, type, 0))
                                                            ^
                                                             {
/datasets/git/refs.c:426:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (o->type != OBJ_TAG)
                               ^
                                {
/datasets/git/refs.c:430:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!o)
               ^
                {
/datasets/git/refs.c:437:8: warning: accessing fields in struct 'warn_if_dangling_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct warn_if_dangling_data {
       ^
/datasets/git/refs.c:437:8: note: use "__attribute__((aligned(32)))" to align struct 'warn_if_dangling_data' to 32 bytes
/datasets/git/refs.c:448:32: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
        struct warn_if_dangling_data *d = cb_data;
                                      ^
/datasets/git/refs.c:449:14: warning: variable 'resolves_to' is not initialized [cppcoreguidelines-init-variables]
        const char *resolves_to;
                    ^
                                = NULL
/datasets/git/refs.c:451:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & REF_ISSYMREF))
              ^~~~~
/datasets/git/refs.c:451:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(flags & REF_ISSYMREF))
                                    ^
                                     {
/datasets/git/refs.c:457:5: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                ? strcmp(resolves_to, d->refname)
                  ^
                                                  != 0
/datasets/git/refs.c:462:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(d->fp, d->msg_fmt, refname);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs.c:462:2: note: cast the expression to void to silence this warning
/datasets/git/refs.c:463:2: warning: the value returned by this function should be used [cert-err33-c]
        fputc('\n', d->fp);
        ^~~~~~~~~~~~~~~~~~
/datasets/git/refs.c:463:2: note: cast the expression to void to silence this warning
/datasets/git/refs.c:467:33: warning: parameter name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
void warn_dangling_symref(FILE *fp, const char *msg_fmt, const char *refname)
                                ^
/datasets/git/refs.c:467:37: warning: 2 adjacent parameters of 'warn_dangling_symref' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
void warn_dangling_symref(FILE *fp, const char *msg_fmt, const char *refname)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs.c:467:49: note: the first parameter in the range is 'msg_fmt'
void warn_dangling_symref(FILE *fp, const char *msg_fmt, const char *refname)
                                                ^~~~~~~
/datasets/git/refs.c:467:70: note: the last parameter in the range is 'refname'
void warn_dangling_symref(FILE *fp, const char *msg_fmt, const char *refname)
                                                                     ^~~~~~~
/datasets/git/refs.c:478:34: warning: parameter name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
void warn_dangling_symrefs(FILE *fp, const char *msg_fmt, const struct string_list *refnames)
                                 ^
/datasets/git/refs.c:489:63: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
int refs_for_each_tag_ref(struct ref_store *refs, each_ref_fn fn, void *cb_data)
                                                              ^
/datasets/git/refs.c:494:34: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
int for_each_tag_ref(each_ref_fn fn, void *cb_data)
                                 ^
/datasets/git/refs.c:499:66: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
int refs_for_each_branch_ref(struct ref_store *refs, each_ref_fn fn, void *cb_data)
                                                                 ^
/datasets/git/refs.c:504:37: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
int for_each_branch_ref(each_ref_fn fn, void *cb_data)
                                    ^
/datasets/git/refs.c:509:66: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
int refs_for_each_remote_ref(struct ref_store *refs, each_ref_fn fn, void *cb_data)
                                                                 ^
/datasets/git/refs.c:514:37: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
int for_each_remote_ref(each_ref_fn fn, void *cb_data)
                                    ^
/datasets/git/refs.c:519:37: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
int head_ref_namespaced(each_ref_fn fn, void *cb_data)
                                    ^
/datasets/git/refs.c:524:6: warning: variable 'flag' is not initialized [cppcoreguidelines-init-variables]
        int flag;
            ^
                 = 0
/datasets/git/refs.c:527:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!read_ref_full(buf.buf, RESOLVE_REF_READING, &oid, &flag))
                                                                      ^
                                                                       {
/datasets/git/refs.c:539:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*pattern == '/')
                            ^
                             {
/datasets/git/refs.c:542:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prefix)
                   ^
                    {
/datasets/git/refs.c:545:6: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                   strcmp(pattern, "HEAD"))
                   ^
                                           != 0
/datasets/git/refs.c:545:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                   strcmp(pattern, "HEAD"))
                                           ^
                                            {
/datasets/git/refs.c:560:38: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
int for_each_glob_ref_in(each_ref_fn fn, const char *pattern,
                                     ^
/datasets/git/refs.c:565:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/refs.c:567:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!prefix && !starts_with(pattern, "refs/"))
                                                      ^
                                                       {
/datasets/git/refs.c:569:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (prefix)
                        ^
                         {
/datasets/git/refs.c:590:35: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
int for_each_glob_ref(each_ref_fn fn, const char *pattern, void *cb_data)
                                  ^
/datasets/git/refs.c:599:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            skip_prefix(name, "refs/remotes/", &name))
                                                      ^
                                                       {
/datasets/git/refs.c:600:3: warning: potentially unintended semicolon [bugprone-suspicious-semicolon]
                ; /* nothing */
                ^~
/datasets/git/refs.c:604:20: warning: variable 'ref_rev_parse_rules' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *ref_rev_parse_rules[] = {
                   ^
/datasets/git/refs.c:625:15: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        const char **p;
                     ^
                       = NULL
/datasets/git/refs.c:625:15: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs.c:626:30: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        const int abbrev_name_len = strlen(abbrev_name);
                                    ^
/datasets/git/refs.c:629:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = ref_rev_parse_rules; *p; p++)
        ^
/datasets/git/refs.c:629:32: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = ref_rev_parse_rules; *p; p++)
                                      ^
/datasets/git/refs.c:629:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (p = ref_rev_parse_rules; *p; p++)
                                              ^
                                               {
/datasets/git/refs.c:630:68: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(full_name, mkpath(*p, abbrev_name_len, abbrev_name)))
                                                                                 ^
                                                                                  {
/datasets/git/refs.c:631:11: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        return &ref_rev_parse_rules[num_rules] - p;
                               ^
/datasets/git/refs.c:642:15: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        const char **p;
                     ^
                       = NULL
/datasets/git/refs.c:642:15: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs.c:643:12: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int len = strlen(prefix);
                  ^
/datasets/git/refs.c:645:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = ref_rev_parse_rules; *p; p++)
        ^
/datasets/git/refs.c:645:32: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = ref_rev_parse_rules; *p; p++)
                                      ^
/datasets/git/refs.c:645:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (p = ref_rev_parse_rules; *p; p++)
                                              ^
                                               {
/datasets/git/refs.c:662:51: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
char *repo_default_branch_name(struct repository *r, int quiet)
                                                  ^
/datasets/git/refs.c:666:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *ret = NULL, *full_ref;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs.c:666:21: warning: variable 'full_ref' is not initialized [cppcoreguidelines-init-variables]
        char *ret = NULL, *full_ref;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs.c:667:20: warning: function is not thread safe [concurrency-mt-unsafe]
        const char *env = getenv("GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME");
                          ^
/datasets/git/refs.c:669:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (env && *env)
                        ^
                         {
/datasets/git/refs.c:671:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (repo_config_get_string(r, config_key, &ret) < 0)
                                                                 ^
                                                                  {
/datasets/git/refs.c:676:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!quiet)
                           ^
                            {
/datasets/git/refs.c:681:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (check_refname_format(full_ref, 0))
                                              ^
                                               {
/datasets/git/refs.c:690:15: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
        static char *ret;
                     ^
/datasets/git/refs.c:692:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ret)
                 ^
                  {
/datasets/git/refs.c:703:56: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static char *substitute_branch_name(struct repository *r,
                                                       ^
/datasets/git/refs.c:714:10: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
                size_t size;
                       ^
                            = 0
/datasets/git/refs.c:716:10: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                *len = size;
                       ^
/datasets/git/refs.c:723:38: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int repo_dwim_ref(struct repository *r, const char *str, int len,
                                     ^
/datasets/git/refs.c:736:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char **p, *r;
        ^~~~~~~~~~~~~~~~~~~
/datasets/git/refs.c:736:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/refs.c:736:15: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        const char **p, *r;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs.c:736:15: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs.c:736:19: warning: variable 'r' is not initialized [cppcoreguidelines-init-variables]
        const char **p, *r;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs.c:736:19: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs.c:741:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = ref_rev_parse_rules; *p; p++) {
        ^
/datasets/git/refs.c:741:32: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = ref_rev_parse_rules; *p; p++) {
                                      ^
/datasets/git/refs.c:743:21: warning: variable 'this_result' is not initialized [cppcoreguidelines-init-variables]
                struct object_id *this_result;
                                  ^
                                              = NULL
/datasets/git/refs.c:744:7: warning: variable 'flag' is not initialized [cppcoreguidelines-init-variables]
                int flag;
                    ^
                         = 0
/datasets/git/refs.c:754:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!refs_found++)
                                          ^
                                           {
/datasets/git/refs.c:756:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!warn_ambiguous_refs)
                                                 ^
                                                  {
/datasets/git/refs.c:758:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                } else if ((flag & REF_ISSYMREF) && strcmp(fullref.buf, "HEAD")) {
                            ^~~~
/datasets/git/refs.c:758:39: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                } else if ((flag & REF_ISSYMREF) && strcmp(fullref.buf, "HEAD")) {
                                                    ^
                                                                                != 0
/datasets/git/refs.c:760:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                } else if ((flag & REF_ISBROKEN) && strchr(fullref.buf, '/')) {
                            ^~~~
/datasets/git/refs.c:768:38: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int repo_dwim_log(struct repository *r, const char *str, int len,
                                     ^
/datasets/git/refs.c:773:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        const char **p;
        ^
/datasets/git/refs.c:773:15: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        const char **p;
                     ^
                       = NULL
/datasets/git/refs.c:773:15: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs.c:778:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = ref_rev_parse_rules; *p; p++) {
        ^
/datasets/git/refs.c:778:32: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = ref_rev_parse_rules; *p; p++) {
                                      ^
/datasets/git/refs.c:780:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                const char *ref, *it;
                ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs.c:780:15: warning: variable 'ref' is not initialized [cppcoreguidelines-init-variables]
                const char *ref, *it;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs.c:780:21: warning: variable 'it' is not initialized [cppcoreguidelines-init-variables]
                const char *ref, *it;
                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs.c:780:21: warning: variable name 'it' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs.c:787:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ref)
                         ^
                          {
/datasets/git/refs.c:789:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (refs_reflog_exists(refs, path.buf))
                                                       ^
                                                        {
/datasets/git/refs.c:791:12: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                else if (strcmp(ref, path.buf) &&
                         ^
                                               != 0
/datasets/git/refs.c:792:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                         refs_reflog_exists(refs, ref))
                                                       ^
                                                        {
/datasets/git/refs.c:794:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/refs.c:798:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (oid)
                                ^
                                 {
/datasets/git/refs.c:801:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!warn_ambiguous_refs)
                                         ^
                                          {
/datasets/git/refs.c:823:14: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        const char *c;
                    ^
                      = NULL
/datasets/git/refs.c:823:14: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs.c:825:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (c = refname; *c; c++) {
        ^
/datasets/git/refs.c:825:20: warning: backward branch (for loop) is ID-dependent due to variable reference to 'c' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (c = refname; *c; c++) {
                          ^
/datasets/git/refs.c:826:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!isupper(*c) && *c != '-' && *c != '_')
                                                           ^
                                                            {
/datasets/git/refs.c:845:14: warning: variable 'name_dummy' is not initialized [cppcoreguidelines-init-variables]
        const char *name_dummy;
                    ^
                               = NULL
/datasets/git/refs.c:846:6: warning: variable 'name_length_dummy' is not initialized [cppcoreguidelines-init-variables]
        int name_length_dummy;
            ^
                              = 0
/datasets/git/refs.c:847:14: warning: variable 'ref_dummy' is not initialized [cppcoreguidelines-init-variables]
        const char *ref_dummy;
                    ^
                              = NULL
/datasets/git/refs.c:849:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!worktree_name)
                           ^
                            {
/datasets/git/refs.c:851:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!worktree_name_length)
                                  ^
                                   {
/datasets/git/refs.c:853:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!bare_refname)
                          ^
                           {
/datasets/git/refs.c:861:28: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        *worktree_name_length = strlen(*worktree_name);
                                                ^
/datasets/git/refs.c:868:27: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                *worktree_name_length = slash - *bare_refname;
                                        ^
/datasets/git/refs.c:871:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_current_worktree_ref(*bare_refname))
                                                           ^
                                                            {
/datasets/git/refs.c:879:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            && is_current_worktree_ref(*bare_refname))
                                                      ^
                                                       {
/datasets/git/refs.c:883:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_current_worktree_ref(maybe_worktree_ref))
                                                        ^
                                                         {
/datasets/git/refs.c:894:26: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        static int timeout_ms = 100;
                                ^
/datasets/git/refs.c:909:26: warning: variable 'transaction' is not initialized [cppcoreguidelines-init-variables]
        struct ref_transaction *transaction;
                                ^
                                            = NULL
/datasets/git/refs.c:934:44: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static void copy_reflog_msg(struct strbuf *sb, const char *msg)
                                           ^
/datasets/git/refs.c:936:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        char c;
        ^
/datasets/git/refs.c:936:7: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        char c;
             ^
               = 0
/datasets/git/refs.c:936:7: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs.c:939:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((c = *msg++)) {
        ^
/datasets/git/refs.c:939:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'c' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((c = *msg++)) {
               ^
/datasets/git/refs.c:940:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (wasspace && isspace(c))
                                ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/refs.c:940:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (wasspace && isspace(c))
                                           ^
                                            {
/datasets/git/refs.c:942:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                wasspace = isspace(c);
                           ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/refs.c:943:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (wasspace)
                             ^
                              {
/datasets/git/refs.c:952:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/refs.c:954:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (msg && *msg)
                        ^
                         {
/datasets/git/refs.c:979:8: warning: accessing fields in struct 'read_ref_at_cb' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct read_ref_at_cb {
       ^
/datasets/git/refs.c:979:8: note: use "__attribute__((aligned(128)))" to align struct 'read_ref_at_cb' to 128 bytes
/datasets/git/refs.c:997:57: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static void set_read_ref_cutoffs(struct read_ref_at_cb *cb,
                                                        ^
/datasets/git/refs.c:998:3: warning: 2 adjacent parameters of 'set_read_ref_cutoffs' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                timestamp_t timestamp, int tz, const char *message)
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs.c:998:15: note: the first parameter in the range is 'timestamp'
                timestamp_t timestamp, int tz, const char *message)
                            ^~~~~~~~~
/datasets/git/refs.c:998:30: note: the last parameter in the range is 'tz'
                timestamp_t timestamp, int tz, const char *message)
                                           ^~
/datasets/git/refs.c:998:3: note: 
                timestamp_t timestamp, int tz, const char *message)
                ^
/datasets/git/refs.c:998:26: note: 'timestamp_t' and 'int' may be implicitly converted: 'timestamp_t' (as 'unsigned long') -> 'int', 'int' -> 'timestamp_t' (as 'unsigned long')
                timestamp_t timestamp, int tz, const char *message)
                                       ^
/datasets/git/refs.c:998:30: warning: parameter name 'tz' is too short, expected at least 3 characters [readability-identifier-length]
                timestamp_t timestamp, int tz, const char *message)
                                           ^
/datasets/git/refs.c:1000:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cb->msg)
                    ^
                     {
/datasets/git/refs.c:1002:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cb->cutoff_time)
                            ^
                             {
/datasets/git/refs.c:1004:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cb->cutoff_tz)
                          ^
                           {
/datasets/git/refs.c:1006:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cb->cutoff_cnt)
                           ^
                            {
/datasets/git/refs.c:1012:34: warning: parameter name 'tz' is too short, expected at least 3 characters [readability-identifier-length]
                           timestamp_t timestamp, int tz,
                                                      ^
/datasets/git/refs.c:1015:25: warning: variable name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
        struct read_ref_at_cb *cb = cb_data;
                               ^
/datasets/git/refs.c:1016:6: warning: variable 'reached_count' is not initialized [cppcoreguidelines-init-variables]
        int reached_count;
            ^
                          = 0
/datasets/git/refs.c:1025:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cb->cnt > 0)
                        ^
                         {
/datasets/git/refs.c:1034:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!is_null_oid(&cb->ooid) && !oideq(&cb->ooid, noid))
                                                                       ^
                                                                        {
/datasets/git/refs.c:1037:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (reached_count)
                                  ^
                                   {
/datasets/git/refs.c:1039:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!is_null_oid(&cb->ooid) || cb->date == cb->at_time)
                                                                            ^
                                                                             {
/datasets/git/refs.c:1041:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!oideq(noid, cb->oid))
                                               ^
                                                {
/datasets/git/refs.c:1056:34: warning: parameter name 'tz' is too short, expected at least 3 characters [readability-identifier-length]
                                  timestamp_t timestamp, int tz,
                                                             ^
/datasets/git/refs.c:1059:25: warning: variable name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
        struct read_ref_at_cb *cb = cb_data;
                               ^
/datasets/git/refs.c:1069:34: warning: parameter name 'tz' is too short, expected at least 3 characters [readability-identifier-length]
                                  timestamp_t timestamp, int tz,
                                                             ^
/datasets/git/refs.c:1072:25: warning: variable name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
        struct read_ref_at_cb *cb = cb_data;
                               ^
/datasets/git/refs.c:1076:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_null_oid(cb->oid))
                                 ^
                                  {
/datasets/git/refs.c:1083:3: warning: 3 adjacent parameters of 'read_ref_at' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                unsigned int flags, timestamp_t at_time, int cnt,
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs.c:1083:16: note: the first parameter in the range is 'flags'
                unsigned int flags, timestamp_t at_time, int cnt,
                             ^~~~~
/datasets/git/refs.c:1083:48: note: the last parameter in the range is 'cnt'
                unsigned int flags, timestamp_t at_time, int cnt,
                                                             ^~~
/datasets/git/refs.c:1083:3: note: 
                unsigned int flags, timestamp_t at_time, int cnt,
                ^
/datasets/git/refs.c:1083:23: note: 'unsigned int' and 'timestamp_t' may be implicitly converted: 'unsigned int' -> 'timestamp_t' (as 'unsigned long'), 'timestamp_t' (as 'unsigned long') -> 'unsigned int'
                unsigned int flags, timestamp_t at_time, int cnt,
                                    ^
/datasets/git/refs.c:1083:44: note: 'unsigned int' and 'int' may be implicitly converted
                unsigned int flags, timestamp_t at_time, int cnt,
                                                         ^
/datasets/git/refs.c:1083:23: note: 
                unsigned int flags, timestamp_t at_time, int cnt,
                                    ^
/datasets/git/refs.c:1083:44: note: 'timestamp_t' and 'int' may be implicitly converted: 'timestamp_t' (as 'unsigned long') -> 'int', 'int' -> 'timestamp_t' (as 'unsigned long')
                unsigned int flags, timestamp_t at_time, int cnt,
                                                         ^
/datasets/git/refs.c:1085:29: warning: 2 adjacent parameters of 'read_ref_at' of similar type ('int *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                timestamp_t *cutoff_time, int *cutoff_tz, int *cutoff_cnt)
                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs.c:1085:34: note: the first parameter in the range is 'cutoff_tz'
                timestamp_t *cutoff_time, int *cutoff_tz, int *cutoff_cnt)
                                               ^~~~~~~~~
/datasets/git/refs.c:1085:50: note: the last parameter in the range is 'cutoff_cnt'
                timestamp_t *cutoff_time, int *cutoff_tz, int *cutoff_cnt)
                                                               ^~~~~~~~~~
/datasets/git/refs.c:1087:24: warning: variable name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
        struct read_ref_at_cb cb;
                              ^
/datasets/git/refs.c:1089:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&cb, 0, sizeof(cb));
        ^~~~~~
/datasets/git/refs.c:1089:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&cb, 0, sizeof(cb));
        ^~~~~~
/datasets/git/refs.c:1107:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flags & GET_OID_QUIETLY)
                    ^
/datasets/git/refs.c:1107:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (flags & GET_OID_QUIETLY)
                                            ^
                                             {
/datasets/git/refs.c:1108:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        exit(128);
                        ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/refs.c:1109:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/refs.c:1112:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cb.found_it)
                        ^
                         {
/datasets/git/refs.c:1123:26: warning: variable 'tr' is not initialized [cppcoreguidelines-init-variables]
        struct ref_transaction *tr;
                                ^
                                   = NULL
/datasets/git/refs.c:1123:26: warning: variable name 'tr' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs.c:1138:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i;
               ^
                 = 0
/datasets/git/refs.c:1138:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs.c:1140:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!transaction)
                         ^
                          {
/datasets/git/refs.c:1156:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < transaction->nr; i++) {
        ^
/datasets/git/refs.c:1171:21: warning: variable 'update' is not initialized [cppcoreguidelines-init-variables]
        struct ref_update *update;
                           ^
                                  = NULL
/datasets/git/refs.c:1173:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (transaction->state != REF_TRANSACTION_OPEN)
                                                       ^
                                                        {
/datasets/git/refs.c:1176:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FLEX_ALLOC_STR(update, refname, refname);
        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^
/datasets/git/./git-compat-util.h:1151:47: note: expanded from macro 'FLEX_ALLOC_MEM'
#define FLEX_ALLOC_MEM(x, flexname, buf, len) do { \
                                              ^
/datasets/git/refs.c:1176:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        FLEX_ALLOC_STR(update, refname, refname);
        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/refs.c:1176:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        FLEX_ALLOC_STR(update, refname, refname);
        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/refs.c:1177:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(transaction->updates, transaction->nr + 1, transaction->alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/refs.c:1177:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_GROW(transaction->updates, transaction->nr + 1, transaction->alloc);
        ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/refs.c:1182:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & REF_HAVE_NEW)
            ^
/datasets/git/refs.c:1182:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & REF_HAVE_NEW)
                    ^
/datasets/git/./refs/refs-internal.h:26:23: note: expanded from macro 'REF_HAVE_NEW'
#define REF_HAVE_NEW (1 << 2)
                      ^
/datasets/git/refs.c:1182:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & REF_HAVE_NEW)
                                 ^
                                  {
/datasets/git/refs.c:1184:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & REF_HAVE_OLD)
            ^
/datasets/git/refs.c:1184:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & REF_HAVE_OLD)
                    ^
/datasets/git/./refs/refs-internal.h:32:23: note: expanded from macro 'REF_HAVE_OLD'
#define REF_HAVE_OLD (1 << 3)
                      ^
/datasets/git/refs.c:1184:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & REF_HAVE_OLD)
                                 ^
                                  {
/datasets/git/refs.c:1199:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & REF_SKIP_REFNAME_VERIFICATION) &&
              ^
/datasets/git/refs.c:1199:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & REF_SKIP_REFNAME_VERIFICATION) &&
                      ^
/datasets/git/./refs.h:648:40: note: expanded from macro 'REF_SKIP_REFNAME_VERIFICATION'
#define REF_SKIP_REFNAME_VERIFICATION (1 << 11)
                                       ^
/datasets/git/refs.c:1208:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & ~REF_TRANSACTION_UPDATE_ALLOWED_FLAGS)
            ^       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs.c:1208:14: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
        if (flags & ~REF_TRANSACTION_UPDATE_ALLOWED_FLAGS)
                    ^
/datasets/git/refs.c:1208:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & ~REF_TRANSACTION_UPDATE_ALLOWED_FLAGS)
                     ^
/datasets/git/./refs.h:655:3: note: expanded from macro 'REF_TRANSACTION_UPDATE_ALLOWED_FLAGS'
        (REF_NO_DEREF | REF_FORCE_CREATE_REFLOG | REF_SKIP_OID_VERIFICATION | \
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./refs.h:631:22: note: expanded from macro 'REF_NO_DEREF'
#define REF_NO_DEREF (1 << 0)
                     ^
/datasets/git/refs.c:1208:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & ~REF_TRANSACTION_UPDATE_ALLOWED_FLAGS)
                                                          ^
                                                           {
/datasets/git/refs.c:1216:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        flags &= REF_TRANSACTION_UPDATE_ALLOWED_FLAGS;
        ^
/datasets/git/refs.c:1216:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        flags &= REF_TRANSACTION_UPDATE_ALLOWED_FLAGS;
                 ^
/datasets/git/./refs.h:655:3: note: expanded from macro 'REF_TRANSACTION_UPDATE_ALLOWED_FLAGS'
        (REF_NO_DEREF | REF_FORCE_CREATE_REFLOG | REF_SKIP_OID_VERIFICATION | \
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./refs.h:631:22: note: expanded from macro 'REF_NO_DEREF'
#define REF_NO_DEREF (1 << 0)
                     ^
/datasets/git/refs.c:1218:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        flags |= (new_oid ? REF_HAVE_NEW : 0) | (old_oid ? REF_HAVE_OLD : 0);
        ^        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs.c:1218:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        flags |= (new_oid ? REF_HAVE_NEW : 0) | (old_oid ? REF_HAVE_OLD : 0);
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs.c:1218:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        flags |= (new_oid ? REF_HAVE_NEW : 0) | (old_oid ? REF_HAVE_OLD : 0);
                            ^
/datasets/git/./refs/refs-internal.h:26:23: note: expanded from macro 'REF_HAVE_NEW'
#define REF_HAVE_NEW (1 << 2)
                      ^
/datasets/git/refs.c:1218:53: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        flags |= (new_oid ? REF_HAVE_NEW : 0) | (old_oid ? REF_HAVE_OLD : 0);
                                                           ^
/datasets/git/./refs/refs-internal.h:32:23: note: expanded from macro 'REF_HAVE_OLD'
#define REF_HAVE_OLD (1 << 3)
                      ^
/datasets/git/refs.c:1245:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (old_oid && is_null_oid(old_oid))
                                            ^
                                             {
/datasets/git/refs.c:1258:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!old_oid)
                     ^
                      {
/datasets/git/refs.c:1267:40: warning: 2 adjacent parameters of 'refs_update_ref' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                    const struct object_id *old_oid, unsigned int flags,
                                                     ^~~~~~~~~~~~~~~~~~~
/datasets/git/refs.c:1267:53: note: the first parameter in the range is 'flags'
                    const struct object_id *old_oid, unsigned int flags,
                                                                  ^~~~~
/datasets/git/refs.c:1268:26: note: the last parameter in the range is 'onerr'
                    enum action_on_err onerr)
                                       ^~~~~
/datasets/git/refs.c:1268:7: note: 'unsigned int' and 'enum action_on_err' may be implicitly converted
                    enum action_on_err onerr)
                    ^
/datasets/git/refs.c:1270:26: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
        struct ref_transaction *t = NULL;
                                ^
/datasets/git/refs.c:1285:3: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
                switch (onerr) {
                ^
/datasets/git/refs.c:1299:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (t)
              ^
               {
/datasets/git/refs.c:1313:7: warning: function 'refs_shorten_unambiguous_ref' has cognitive complexity of 29 (threshold 25) [readability-function-cognitive-complexity]
char *refs_shorten_unambiguous_ref(struct ref_store *refs,
      ^
/datasets/git/refs.c:1322:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!nr_rules) {
        ^
/datasets/git/refs.c:1333:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (nr_rules = 0; ref_rev_parse_rules[nr_rules]; nr_rules++)
                ^
/datasets/git/refs.c:1340:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < nr_rules; i++) {
                ^
/datasets/git/refs.c:1341:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        assert(offset < total_len);
                        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/refs.c:1341:4: note: nesting level increased to 3
                        assert(offset < total_len);
                        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/refs.c:1341:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        assert(offset < total_len);
                        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/refs.c:1341:4: note: +1, nesting level increased to 4
                        assert(offset < total_len);
                        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/refs.c:1349:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!nr_rules)
        ^
/datasets/git/refs.c:1356:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = nr_rules - 1; i > 0 ; --i) {
        ^
/datasets/git/refs.c:1361:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (1 != sscanf(refname, scanf_fmts[i], short_name))
                ^
/datasets/git/refs.c:1370:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (strict)
                ^
/datasets/git/refs.c:1377:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (j = 0; j < rules_to_fail; j++) {
                ^
/datasets/git/refs.c:1381:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (i == j)
                        ^
/datasets/git/refs.c:1392:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (refs_ref_exists(refs, resolved_buf.buf))
                        ^
/datasets/git/refs.c:1400:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (j == rules_to_fail) {
                ^
/datasets/git/refs.c:1316:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/refs.c:1316:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs.c:1317:16: warning: variable 'scanf_fmts' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
        static char **scanf_fmts;
                      ^
/datasets/git/refs.c:1319:8: warning: variable 'short_name' is not initialized [cppcoreguidelines-init-variables]
        char *short_name;
              ^
                         = NULL
/datasets/git/refs.c:1333:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (nr_rules = 0; ref_rev_parse_rules[nr_rules]; nr_rules++)
                ^
/datasets/git/refs.c:1316:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int i;
        ^
/datasets/git/refs.c:1333:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (nr_rules = 0; ref_rev_parse_rules[nr_rules]; nr_rules++)
                                                                             ^
                                                                              {
/datasets/git/refs.c:1340:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < nr_rules; i++) {
                ^
/datasets/git/refs.c:1340:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < nr_rules; i++) {
                            ^
/datasets/git/refs.c:1349:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!nr_rules)
                      ^
                       {
/datasets/git/refs.c:1356:25: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = nr_rules - 1; i > 0 ; --i) {
                               ^
/datasets/git/refs.c:1357:7: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
                int j;
                    ^
                      = 0
/datasets/git/refs.c:1357:7: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs.c:1359:7: warning: variable 'short_name_len' is not initialized [cppcoreguidelines-init-variables]
                int short_name_len;
                    ^
                                   = 0
/datasets/git/refs.c:1361:12: warning: Call to function 'sscanf' is insecure as it does not provide bounding of the memory buffer or security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'sscanf_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                if (1 != sscanf(refname, scanf_fmts[i], short_name))
                         ^~~~~~
/datasets/git/refs.c:1361:12: note: Call to function 'sscanf' is insecure as it does not provide bounding of the memory buffer or security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'sscanf_s' in case of C11
                if (1 != sscanf(refname, scanf_fmts[i], short_name))
                         ^~~~~~
/datasets/git/refs.c:1361:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (1 != sscanf(refname, scanf_fmts[i], short_name))
                                                                    ^
                                                                     {
/datasets/git/refs.c:1364:20: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                short_name_len = strlen(short_name);
                                 ^
/datasets/git/refs.c:1370:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strict)
                           ^
                            {
/datasets/git/refs.c:1377:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (j = 0; j < rules_to_fail; j++) {
                ^
/datasets/git/refs.c:1377:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'rules_to_fail' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (j = 0; j < rules_to_fail; j++) {
                            ^
/datasets/git/refs.c:1381:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (i == j)
                                   ^
                                    {
/datasets/git/refs.c:1392:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (refs_ref_exists(refs, resolved_buf.buf))
                                                                    ^
                                                                     {
/datasets/git/refs.c:1417:28: warning: 2 adjacent parameters of 'parse_hide_refs_config' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
int parse_hide_refs_config(const char *var, const char *value, const char *section,
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs.c:1417:40: note: the first parameter in the range is 'var'
int parse_hide_refs_config(const char *var, const char *value, const char *section,
                                       ^~~
/datasets/git/refs.c:1417:57: note: the last parameter in the range is 'value'
int parse_hide_refs_config(const char *var, const char *value, const char *section,
                                                        ^~~~~
/datasets/git/refs.c:1420:14: warning: variable 'key' is not initialized [cppcoreguidelines-init-variables]
        const char *key;
                    ^
                        = NULL
/datasets/git/refs.c:1424:9: warning: variable 'ref' is not initialized [cppcoreguidelines-init-variables]
                char *ref;
                      ^
                          = NULL
/datasets/git/refs.c:1425:7: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
                int len;
                    ^
                        = 0
/datasets/git/refs.c:1427:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
                            {
/datasets/git/refs.c:1430:9: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                len = strlen(ref);
                      ^
/datasets/git/refs.c:1431:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (len && ref[len - 1] == '/')
                ^
/datasets/git/refs.c:1431:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (len && ref[len - 1] == '/')
                       ^
/datasets/git/refs.c:1431:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (len && ref[len - 1] == '/')
                                                  ^
                                                   {
/datasets/git/refs.c:1438:19: warning: 2 adjacent parameters of 'ref_is_hidden' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
int ref_is_hidden(const char *refname, const char *refname_full,
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs.c:1438:31: note: the first parameter in the range is 'refname'
int ref_is_hidden(const char *refname, const char *refname_full,
                              ^~~~~~~
/datasets/git/refs.c:1438:52: note: the last parameter in the range is 'refname_full'
int ref_is_hidden(const char *refname, const char *refname_full,
                                                   ^~~~~~~~~~~~
/datasets/git/refs.c:1441:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int i;
        ^
/datasets/git/refs.c:1441:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/refs.c:1441:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs.c:1443:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = hide_refs->nr - 1; i >= 0; i--) {
        ^
/datasets/git/refs.c:1443:11: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        for (i = hide_refs->nr - 1; i >= 0; i--) {
                 ^
/datasets/git/refs.c:1443:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = hide_refs->nr - 1; i >= 0; i--) {
                                    ^
/datasets/git/refs.c:1445:15: warning: variable 'subject' is not initialized [cppcoreguidelines-init-variables]
                const char *subject;
                            ^
                                    = NULL
/datasets/git/refs.c:1447:15: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                const char *p;
                            ^
                              = NULL
/datasets/git/refs.c:1447:15: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs.c:1464:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    (!*p || *p == '/'))
                                       ^
                                        {
/datasets/git/refs.c:1471:5: warning: 2 adjacent parameters of 'find_descendant_ref' of similar type ('const struct string_list *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                const struct string_list *extras,
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs.c:1471:31: note: the first parameter in the range is 'extras'
                                const struct string_list *extras,
                                                          ^~~~~~
/datasets/git/refs.c:1472:31: note: the last parameter in the range is 'skip'
                                const struct string_list *skip)
                                                          ^~~~
/datasets/git/refs.c:1474:6: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        int pos;
            ^
                = 0
/datasets/git/refs.c:1476:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!extras)
                    ^
                     {
/datasets/git/refs.c:1485:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (pos = string_list_find_insert_index(extras, dirname, 0);
        ^
/datasets/git/refs.c:1486:7: warning: backward branch (for loop) is ID-dependent due to variable reference to 'pos' and may cause performance degradation [altera-id-dependent-backward-branch]
             pos < extras->nr; pos++) {
             ^
/datasets/git/refs.c:1489:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!starts_with(extra_refname, dirname))
                                                         ^
                                                          {
/datasets/git/refs.c:1492:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!skip || !string_list_has_string(skip, extra_refname))
                                                                          ^
                                                                           {
/datasets/git/refs.c:1498:55: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
int refs_head_ref(struct ref_store *refs, each_ref_fn fn, void *cb_data)
                                                      ^
/datasets/git/refs.c:1501:6: warning: variable 'flag' is not initialized [cppcoreguidelines-init-variables]
        int flag;
            ^
                 = 0
/datasets/git/refs.c:1504:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                    &oid, &flag))
                                                 ^
                                                  {
/datasets/git/refs.c:1510:26: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
int head_ref(each_ref_fn fn, void *cb_data)
                         ^
/datasets/git/refs.c:1517:23: warning: 2 adjacent parameters of 'refs_ref_iterator_begin' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                const char *prefix, int trim,
                                    ^~~~~~~~~
/datasets/git/refs.c:1517:27: note: the first parameter in the range is 'trim'
                const char *prefix, int trim,
                                        ^~~~
/datasets/git/refs.c:1518:30: note: the last parameter in the range is 'flags'
                enum do_for_each_ref_flags flags)
                                           ^~~~~
/datasets/git/refs.c:1518:3: note: 'int' and 'enum do_for_each_ref_flags' may be implicitly converted
                enum do_for_each_ref_flags flags)
                ^
/datasets/git/refs.c:1520:23: warning: variable 'iter' is not initialized [cppcoreguidelines-init-variables]
        struct ref_iterator *iter;
                             ^
                                  = NULL
/datasets/git/refs.c:1522:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & DO_FOR_EACH_INCLUDE_BROKEN)) {
              ^       ~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs.c:1525:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ref_paranoia < 0)
                                     ^
                                      {
/datasets/git/refs.c:1528:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        flags |= DO_FOR_EACH_INCLUDE_BROKEN;
                        ^        ~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs.c:1529:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        flags |= DO_FOR_EACH_OMIT_DANGLING_SYMREFS;
                        ^        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs.c:1539:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (trim)
                 ^
                  {
/datasets/git/refs.c:1543:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!iter->ordered)
                           ^
                            {
/datasets/git/refs.c:1558:52: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int do_for_each_repo_ref(struct repository *r, const char *prefix,
                                                   ^
/datasets/git/refs.c:1559:22: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
                                each_repo_ref_fn fn, int trim, int flags,
                                                 ^
/datasets/git/refs.c:1562:23: warning: variable 'iter' is not initialized [cppcoreguidelines-init-variables]
        struct ref_iterator *iter;
                             ^
                                  = NULL
/datasets/git/refs.c:1565:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!refs)
                  ^
                   {
/datasets/git/refs.c:1573:8: warning: accessing fields in struct 'do_for_each_ref_help' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct do_for_each_ref_help {
       ^
/datasets/git/refs.c:1573:8: note: use "__attribute__((aligned(16)))" to align struct 'do_for_each_ref_help' to 16 bytes
/datasets/git/refs.c:1578:54: warning: parameter 'r' is unused [misc-unused-parameters]
static int do_for_each_ref_helper(struct repository *r,
                                                     ^
/datasets/git/refs.c:1578:54: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs.c:1584:31: warning: variable name 'hp' is too short, expected at least 3 characters [readability-identifier-length]
        struct do_for_each_ref_help *hp = cb_data;
                                     ^
/datasets/git/refs.c:1590:19: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
                           each_ref_fn fn, int trim,
                                       ^
/datasets/git/refs.c:1593:23: warning: variable 'iter' is not initialized [cppcoreguidelines-init-variables]
        struct ref_iterator *iter;
                             ^
                                  = NULL
/datasets/git/refs.c:1594:30: warning: variable name 'hp' is too short, expected at least 3 characters [readability-identifier-length]
        struct do_for_each_ref_help hp = { fn, cb_data };
                                    ^
/datasets/git/refs.c:1596:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!refs)
                  ^
                   {
/datasets/git/refs.c:1605:59: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
int refs_for_each_ref(struct ref_store *refs, each_ref_fn fn, void *cb_data)
                                                          ^
/datasets/git/refs.c:1610:30: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
int for_each_ref(each_ref_fn fn, void *cb_data)
                             ^
/datasets/git/refs.c:1616:17: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
                         each_ref_fn fn, void *cb_data)
                                     ^
/datasets/git/refs.c:1618:43: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return do_for_each_ref(refs, prefix, fn, strlen(prefix), 0, cb_data);
                                                 ^
/datasets/git/refs.c:1621:53: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
int for_each_ref_in(const char *prefix, each_ref_fn fn, void *cb_data)
                                                    ^
/datasets/git/refs.c:1626:57: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
int for_each_fullref_in(const char *prefix, each_ref_fn fn, void *cb_data)
                                                        ^
/datasets/git/refs.c:1633:21: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
                             each_ref_fn fn, void *cb_data)
                                         ^
/datasets/git/refs.c:1638:45: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int for_each_replace_ref(struct repository *r, each_repo_ref_fn fn, void *cb_data)
                                            ^
/datasets/git/refs.c:1638:65: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
int for_each_replace_ref(struct repository *r, each_repo_ref_fn fn, void *cb_data)
                                                                ^
/datasets/git/refs.c:1642:9: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                    strlen(git_replace_ref_base),
                                    ^
/datasets/git/refs.c:1646:41: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
int for_each_namespaced_ref(each_ref_fn fn, void *cb_data)
                                        ^
/datasets/git/refs.c:1649:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/refs.c:1657:62: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
int refs_for_each_rawref(struct ref_store *refs, each_ref_fn fn, void *cb_data)
                                                             ^
/datasets/git/refs.c:1663:33: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
int for_each_rawref(each_ref_fn fn, void *cb_data)
                                ^
/datasets/git/refs.c:1668:37: warning: parameter name 'va' is too short, expected at least 3 characters [readability-identifier-length]
static int qsort_strcmp(const void *va, const void *vb)
                                    ^
/datasets/git/refs.c:1668:53: warning: parameter name 'vb' is too short, expected at least 3 characters [readability-identifier-length]
static int qsort_strcmp(const void *va, const void *vb)
                                                    ^
/datasets/git/refs.c:1670:14: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        const char *a = *(const char **)va;
                    ^
/datasets/git/refs.c:1671:14: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        const char *b = *(const char **)vb;
                    ^
/datasets/git/refs.c:1676:13: warning: function 'find_longest_prefixes_1' is within a recursive call chain [misc-no-recursion]
static void find_longest_prefixes_1(struct string_list *out,
            ^
/datasets/git/refs.c:1676:13: note: example recursive call chain, starting from function 'find_longest_prefixes_1'
/datasets/git/refs.c:1704:3: note: Frame #1: function 'find_longest_prefixes_1' calls function 'find_longest_prefixes_1' here:
                find_longest_prefixes_1(out, prefix, patterns + i, end - i);
                ^
/datasets/git/refs.c:1704:3: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/refs.c:1678:37: warning: parameter name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
                                  const char **patterns, size_t nr)
                                                                ^
/datasets/git/refs.c:1680:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        size_t i;
        ^
/datasets/git/refs.c:1680:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i;
               ^
                 = 0
/datasets/git/refs.c:1680:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs.c:1682:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr; i++) {
        ^
/datasets/git/refs.c:1680:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        size_t i;
        ^
/datasets/git/refs.c:1682:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < nr; i++) {
                    ^
/datasets/git/refs.c:1683:8: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                char c = patterns[i][prefix->len];
                     ^
/datasets/git/refs.c:1684:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!c || is_glob_special(c)) {
                          ^
/datasets/git/./git-compat-util.h:1224:28: note: expanded from macro 'is_glob_special'
#define is_glob_special(x) sane_istest(x,GIT_GLOB_SPECIAL)
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/refs.c:1692:3: note: inferred assignment of ID-dependent value from ID-dependent variable i [altera-id-dependent-backward-branch]
                size_t end;
                ^
/datasets/git/refs.c:1691:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (i < nr) {
               ^
/datasets/git/refs.c:1692:10: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
                size_t end;
                       ^
                           = 0
/datasets/git/refs.c:1698:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (end = i + 1; end < nr; end++) {
                ^
/datasets/git/refs.c:1698:21: warning: backward branch (for loop) is ID-dependent due to variable reference to 'end' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (end = i + 1; end < nr; end++) {
                                  ^
/datasets/git/refs.c:1699:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (patterns[i][prefix->len] != patterns[end][prefix->len])
                                                                                   ^
                                                                                    {
/datasets/git/refs.c:1728:18: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
                                 each_ref_fn fn, void *cb_data)
                                             ^
/datasets/git/refs.c:1731:27: warning: variable 'prefix' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *prefix;
                                 ^
                                        = NULL
/datasets/git/refs.c:1733:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int ret = 0, namespace_len;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs.c:1733:15: warning: variable 'namespace_len' is not initialized [cppcoreguidelines-init-variables]
        int ret = 0, namespace_len;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs.c:1737:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (namespace)
                      ^
                       {
/datasets/git/refs.c:1739:18: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        namespace_len = buf.len;
                        ^
/datasets/git/refs.c:1741:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(prefix, &prefixes) {
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/refs.c:1741:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'prefix' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(prefix, &prefixes) {
                                  ^
/datasets/git/refs.c:1744:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret)
                        ^
                         {
/datasets/git/refs.c:1764:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strbuf_read_file(&content, full_path.buf, 0) < 0)
                                                             ^
                                                              {
/datasets/git/refs.c:1796:13: warning: function 'refs_resolve_ref_unsafe' has cognitive complexity of 32 (threshold 25) [readability-function-cognitive-complexity]
const char *refs_resolve_ref_unsafe(struct ref_store *refs,
            ^
/datasets/git/refs.c:1807:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!oid)
        ^
/datasets/git/refs.c:1809:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!flags)
        ^
/datasets/git/refs.c:1814:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (check_refname_format(refname, REFNAME_ALLOW_ONELEVEL)) {
        ^
/datasets/git/refs.c:1815:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!(resolve_flags & RESOLVE_REF_ALLOW_BAD_NAME) ||
                ^
/datasets/git/refs.c:1815:53: note: +1
                if (!(resolve_flags & RESOLVE_REF_ALLOW_BAD_NAME) ||
                                                                  ^
/datasets/git/refs.c:1830:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (symref_count = 0; symref_count < SYMREF_MAXDEPTH; symref_count++) {
        ^
/datasets/git/refs.c:1834:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (refs_read_raw_ref(refs, refname, oid, &sb_refname,
                ^
/datasets/git/refs.c:1839:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (resolve_flags & RESOLVE_REF_READING)
                        ^
/datasets/git/refs.c:1847:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (failure_errno != ENOENT &&
                        ^
/datasets/git/refs.c:1848:32: note: +1
                            failure_errno != EISDIR &&
                                                    ^
/datasets/git/refs.c:1853:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (*flags & REF_BAD_NAME)
                        ^
/datasets/git/refs.c:1860:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!(read_flags & REF_ISSYMREF)) {
                ^
/datasets/git/refs.c:1861:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (*flags & REF_BAD_NAME) {
                        ^
/datasets/git/refs.c:1869:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (resolve_flags & RESOLVE_REF_NO_RECURSE) {
                ^
/datasets/git/refs.c:1873:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (check_refname_format(refname, REFNAME_ALLOW_ONELEVEL)) {
                ^
/datasets/git/refs.c:1874:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!(resolve_flags & RESOLVE_REF_ALLOW_BAD_NAME) ||
                        ^
/datasets/git/refs.c:1874:54: note: +1
                        if (!(resolve_flags & RESOLVE_REF_ALLOW_BAD_NAME) ||
                                                                          ^
/datasets/git/refs.c:1804:6: warning: variable 'unused_flags' is not initialized [cppcoreguidelines-init-variables]
        int unused_flags;
            ^
                         = 0
/datasets/git/refs.c:1805:6: warning: variable 'symref_count' is not initialized [cppcoreguidelines-init-variables]
        int symref_count;
            ^
                         = 0
/datasets/git/refs.c:1807:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!oid)
                 ^
                  {
/datasets/git/refs.c:1809:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!flags)
                   ^
                    {
/datasets/git/refs.c:1815:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(resolve_flags & RESOLVE_REF_ALLOW_BAD_NAME) ||
                      ^~~~~~~~~~~~~
/datasets/git/refs.c:1816:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !refname_is_safe(refname))
                                              ^
                                               {
/datasets/git/refs.c:1827:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                *flags |= REF_BAD_NAME;
                ^~~~~~
/datasets/git/refs.c:1830:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (symref_count = 0; symref_count < SYMREF_MAXDEPTH; symref_count++) {
        ^
/datasets/git/refs.c:1832:7: warning: variable 'failure_errno' is not initialized [cppcoreguidelines-init-variables]
                int failure_errno;
                    ^
                                  = 0
/datasets/git/refs.c:1836:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        *flags |= read_flags;
                        ^~~~~~
/datasets/git/refs.c:1836:14: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        *flags |= read_flags;
                                  ^
/datasets/git/refs.c:1839:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (resolve_flags & RESOLVE_REF_READING)
                            ^~~~~~~~~~~~~
/datasets/git/refs.c:1839:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (resolve_flags & RESOLVE_REF_READING)
                                                                ^
                                                                 {
/datasets/git/refs.c:1847:22: warning: The left operand of '!=' is a garbage value [clang-analyzer-core.UndefinedBinaryOperatorResult]
                        if (failure_errno != ENOENT &&
                                          ^
/datasets/git/refs.c:1908:6: note: Assuming 'refs' is non-null
        if (!refs)
            ^~~~~
/datasets/git/refs.c:1908:2: note: Taking false branch
        if (!refs)
        ^
/datasets/git/refs.c:1911:7: note: Calling 'refs_resolve_ref_unsafe'
        if (!refs_resolve_ref_unsafe(refs, refname, 0, oid, &flags) ||
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs.c:1807:6: note: Assuming 'oid' is non-null
        if (!oid)
            ^~~~
/datasets/git/refs.c:1807:2: note: Taking false branch
        if (!oid)
        ^
/datasets/git/refs.c:1809:7: note: 'flags' is non-null
        if (!flags)
             ^~~~~
/datasets/git/refs.c:1809:2: note: Taking false branch
        if (!flags)
        ^
/datasets/git/refs.c:1814:2: note: Taking false branch
        if (check_refname_format(refname, REFNAME_ALLOW_ONELEVEL)) {
        ^
/datasets/git/refs.c:1830:2: note: Loop condition is true.  Entering loop body
        for (symref_count = 0; symref_count < SYMREF_MAXDEPTH; symref_count++) {
        ^
/datasets/git/refs.c:1832:3: note: 'failure_errno' declared without an initial value
                int failure_errno;
                ^~~~~~~~~~~~~~~~~
/datasets/git/refs.c:1834:7: note: Calling 'refs_read_raw_ref'
                if (refs_read_raw_ref(refs, refname, oid, &sb_refname,
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs.c:1780:9: note: 'failure_errno' is non-null
        assert(failure_errno);
               ^
/usr/include/assert.h:109:11: note: expanded from macro 'assert'
      if (expr)                                                         \
          ^~~~
/datasets/git/refs.c:1780:2: note: Taking true branch
        assert(failure_errno);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/refs.c:1781:37: note: Left side of '||' is true
        if (!strcmp(refname, "FETCH_HEAD") || !strcmp(refname, "MERGE_HEAD")) {
                                           ^
/datasets/git/refs.c:1782:10: note: Calling 'refs_read_special_head'
                return refs_read_special_head(ref_store, refname, oid, referent,
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs.c:1764:6: note: Assuming the condition is true
        if (strbuf_read_file(&content, full_path.buf, 0) < 0)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs.c:1764:2: note: Taking true branch
        if (strbuf_read_file(&content, full_path.buf, 0) < 0)
        ^
/datasets/git/refs.c:1765:3: note: Control jumps to line 1771
                goto done;
                ^
/datasets/git/refs.c:1773:2: note: Returning without writing to '*failure_errno'
        return result;
        ^
/datasets/git/refs.c:1782:10: note: Returning from 'refs_read_special_head'
                return refs_read_special_head(ref_store, refname, oid, referent,
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs.c:1782:3: note: Returning without writing to '*failure_errno'
                return refs_read_special_head(ref_store, refname, oid, referent,
                ^
/datasets/git/refs.c:1834:7: note: Returning from 'refs_read_raw_ref'
                if (refs_read_raw_ref(refs, refname, oid, &sb_refname,
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs.c:1834:3: note: Taking true branch
                if (refs_read_raw_ref(refs, refname, oid, &sb_refname,
                ^
/datasets/git/refs.c:1839:4: note: Taking false branch
                        if (resolve_flags & RESOLVE_REF_READING)
                        ^
/datasets/git/refs.c:1847:22: note: The left operand of '!=' is a garbage value
                        if (failure_errno != ENOENT &&
                            ~~~~~~~~~~~~~ ^
/datasets/git/refs.c:1849:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            failure_errno != ENOTDIR)
                                                     ^
                                                      {
/datasets/git/refs.c:1853:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (*flags & REF_BAD_NAME)
                            ^~~~~~
/datasets/git/refs.c:1853:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (*flags & REF_BAD_NAME)
                                                  ^
                                                   {
/datasets/git/refs.c:1854:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                *flags |= REF_ISBROKEN;
                                ^~~~~~
/datasets/git/refs.c:1858:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                *flags |= read_flags;
                ^~~~~~
/datasets/git/refs.c:1858:13: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                *flags |= read_flags;
                          ^
/datasets/git/refs.c:1860:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(read_flags & REF_ISSYMREF)) {
                      ^
/datasets/git/refs.c:1861:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (*flags & REF_BAD_NAME) {
                            ^~~~~~
/datasets/git/refs.c:1863:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                *flags |= REF_ISBROKEN;
                                ^~~~~~
/datasets/git/refs.c:1869:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (resolve_flags & RESOLVE_REF_NO_RECURSE) {
                    ^~~~~~~~~~~~~
/datasets/git/refs.c:1874:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!(resolve_flags & RESOLVE_REF_ALLOW_BAD_NAME) ||
                              ^~~~~~~~~~~~~
/datasets/git/refs.c:1875:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            !refname_is_safe(refname))
                                                      ^
                                                       {
/datasets/git/refs.c:1878:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        *flags |= REF_ISBROKEN | REF_BAD_NAME;
                        ^~~~~~
/datasets/git/refs.c:1878:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        *flags |= REF_ISBROKEN | REF_BAD_NAME;
                                  ^
/datasets/git/./refs.h:285:22: note: expanded from macro 'REF_ISBROKEN'
#define REF_ISBROKEN 0x04
                     ^~~~
/datasets/git/refs.c:1900:25: warning: 2 adjacent parameters of 'resolve_gitlink_ref' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
int resolve_gitlink_ref(const char *submodule, const char *refname,
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs.c:1900:37: note: the first parameter in the range is 'submodule'
int resolve_gitlink_ref(const char *submodule, const char *refname,
                                    ^~~~~~~~~
/datasets/git/refs.c:1900:60: note: the last parameter in the range is 'refname'
int resolve_gitlink_ref(const char *submodule, const char *refname,
                                                           ^~~~~~~
/datasets/git/refs.c:1903:20: warning: variable 'refs' is not initialized [cppcoreguidelines-init-variables]
        struct ref_store *refs;
                          ^
                               = NULL
/datasets/git/refs.c:1904:6: warning: variable 'flags' is not initialized [cppcoreguidelines-init-variables]
        int flags;
            ^
                  = 0
/datasets/git/refs.c:1908:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!refs)
                  ^
                   {
/datasets/git/refs.c:1912:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            is_null_oid(oid))
                             ^
                              {
/datasets/git/refs.c:1928:10: warning: 2 adjacent parameters of 'ref_store_hash_cmp' of similar type ('const struct hashmap_entry *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                              const struct hashmap_entry *eptr,
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs.c:1928:38: note: the first parameter in the range is 'eptr'
                              const struct hashmap_entry *eptr,
                                                          ^~~~
/datasets/git/refs.c:1929:38: note: the last parameter in the range is 'entry_or_key'
                              const struct hashmap_entry *entry_or_key,
                                                          ^~~~~~~~~~~~
/datasets/git/refs.c:1932:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const struct ref_store_hash_entry *e1, *e2;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs.c:1932:37: warning: variable 'e1' is not initialized [cppcoreguidelines-init-variables]
        const struct ref_store_hash_entry *e1, *e2;
                                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs.c:1932:37: warning: variable name 'e1' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs.c:1932:42: warning: variable 'e2' is not initialized [cppcoreguidelines-init-variables]
        const struct ref_store_hash_entry *e1, *e2;
                                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs.c:1932:42: warning: variable name 'e2' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs.c:1933:14: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
        const char *name;
                    ^
                         = NULL
/datasets/git/refs.c:1945:31: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
        struct ref_store_hash_entry *entry;
                                     ^
                                           = NULL
/datasets/git/refs.c:1947:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FLEX_ALLOC_STR(entry, name, name);
        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^
/datasets/git/./git-compat-util.h:1151:47: note: expanded from macro 'FLEX_ALLOC_MEM'
#define FLEX_ALLOC_MEM(x, flexname, buf, len) do { \
                                              ^
/datasets/git/refs.c:1947:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        FLEX_ALLOC_STR(entry, name, name);
        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/refs.c:1947:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        FLEX_ALLOC_STR(entry, name, name);
        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/refs.c:1954:23: warning: variable 'submodule_ref_stores' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct hashmap submodule_ref_stores;
                      ^
/datasets/git/refs.c:1957:23: warning: variable 'worktree_ref_stores' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct hashmap worktree_ref_stores;
                      ^
/datasets/git/refs.c:1966:31: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
        struct ref_store_hash_entry *entry;
                                     ^
                                           = NULL
/datasets/git/refs.c:1967:15: warning: variable 'hash' is not initialized [cppcoreguidelines-init-variables]
        unsigned int hash;
                     ^
                          = 0
/datasets/git/refs.c:1969:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!map->tablesize)
                            ^
                             {
/datasets/git/refs.c:1988:25: warning: variable name 'be' is too short, expected at least 3 characters [readability-identifier-length]
        struct ref_storage_be *be = find_ref_storage_backend(be_name);
                               ^
/datasets/git/refs.c:1989:20: warning: variable 'refs' is not initialized [cppcoreguidelines-init-variables]
        struct ref_store *refs;
                          ^
                               = NULL
/datasets/git/refs.c:1991:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!be)
                ^
                 {
/datasets/git/refs.c:1998:57: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
struct ref_store *get_main_ref_store(struct repository *r)
                                                        ^
/datasets/git/refs.c:2000:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (r->refs_private)
                            ^
                             {
/datasets/git/refs.c:2003:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!r->gitdir)
                       ^
                        {
/datasets/git/refs.c:2006:49: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        r->refs_private = ref_store_init(r, r->gitdir, REF_STORE_ALL_CAPS);
                                                       ^
/datasets/git/./refs/refs-internal.h:519:29: note: expanded from macro 'REF_STORE_ALL_CAPS'
#define REF_STORE_ALL_CAPS      (REF_STORE_READ | \
                                 ^~~~~~~~~~~~~~~~~~
/datasets/git/./refs/refs-internal.h:515:25: note: expanded from macro 'REF_STORE_READ'
#define REF_STORE_READ          (1 << 0)
                                ^
/datasets/git/refs.c:2020:31: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
        struct ref_store_hash_entry *entry;
                                     ^
                                           = NULL
/datasets/git/refs.c:2022:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!map->tablesize)
                            ^
                             {
/datasets/git/refs.c:2026:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (hashmap_put(map, &entry->ent))
                                          ^
                                           {
/datasets/git/refs.c:2033:20: warning: variable 'refs' is not initialized [cppcoreguidelines-init-variables]
        struct ref_store *refs;
                          ^
                               = NULL
/datasets/git/refs.c:2035:9: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        size_t len;
               ^
                   = 0
/datasets/git/refs.c:2036:21: warning: variable 'subrepo' is not initialized [cppcoreguidelines-init-variables]
        struct repository *subrepo;
                           ^
                                   = NULL
/datasets/git/refs.c:2038:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!submodule)
                       ^
                        {
/datasets/git/refs.c:2042:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (len && is_dir_sep(submodule[len - 1]))
        ^
/datasets/git/refs.c:2042:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (len && is_dir_sep(submodule[len - 1]))
               ^
/datasets/git/refs.c:2042:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (len && is_dir_sep(submodule[len - 1]))
                                                     ^
                                                      {
/datasets/git/refs.c:2044:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!len)
                 ^
                  {
/datasets/git/refs.c:2047:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (submodule[len])
                           ^
                            {
/datasets/git/refs.c:2052:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (refs)
                 ^
                  {
/datasets/git/refs.c:2056:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_nonbare_repository_dir(&submodule_sb))
                                                      ^
                                                       {
/datasets/git/refs.c:2059:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (submodule_to_gitdir(&submodule_sb, submodule))
                                                          ^
                                                           {
/datasets/git/refs.c:2075:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                              REF_STORE_READ | REF_STORE_ODB);
                              ^
/datasets/git/./refs/refs-internal.h:515:25: note: expanded from macro 'REF_STORE_READ'
#define REF_STORE_READ          (1 << 0)
                                ^~~~~~~~
/datasets/git/refs.c:2075:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                              REF_STORE_READ | REF_STORE_ODB);
                                               ^
/datasets/git/./refs/refs-internal.h:517:25: note: expanded from macro 'REF_STORE_ODB'
#define REF_STORE_ODB           (1 << 2) /* has access to object database */
                                 ^
/datasets/git/refs.c:2086:65: warning: parameter name 'wt' is too short, expected at least 3 characters [readability-identifier-length]
struct ref_store *get_worktree_ref_store(const struct worktree *wt)
                                                                ^
/datasets/git/refs.c:2088:20: warning: variable 'refs' is not initialized [cppcoreguidelines-init-variables]
        struct ref_store *refs;
                          ^
                               = NULL
/datasets/git/refs.c:2089:14: warning: variable 'id' is not initialized [cppcoreguidelines-init-variables]
        const char *id;
                    ^
                       = NULL
/datasets/git/refs.c:2089:14: warning: variable name 'id' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs.c:2091:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (wt->is_current)
                           ^
                            {
/datasets/git/refs.c:2096:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (refs)
                 ^
                  {
/datasets/git/refs.c:2099:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (wt->id)
                   ^
                    {
/datasets/git/refs.c:2102:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                      REF_STORE_ALL_CAPS);
                                      ^
/datasets/git/./refs/refs-internal.h:519:29: note: expanded from macro 'REF_STORE_ALL_CAPS'
#define REF_STORE_ALL_CAPS      (REF_STORE_READ | \
                                 ^~~~~~~~~~~~~~~~~~
/datasets/git/./refs/refs-internal.h:515:25: note: expanded from macro 'REF_STORE_READ'
#define REF_STORE_READ          (1 << 0)
                                ^
/datasets/git/refs.c:2103:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/refs.c:2106:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                      REF_STORE_ALL_CAPS);
                                      ^
/datasets/git/./refs/refs-internal.h:519:29: note: expanded from macro 'REF_STORE_ALL_CAPS'
#define REF_STORE_ALL_CAPS      (REF_STORE_READ | \
                                 ^~~~~~~~~~~~~~~~~~
/datasets/git/./refs/refs-internal.h:515:25: note: expanded from macro 'REF_STORE_READ'
#define REF_STORE_READ          (1 << 0)
                                ^
/datasets/git/refs.c:2108:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (refs)
                 ^
                  {
/datasets/git/refs.c:2115:52: warning: parameter name 'be' is too short, expected at least 3 characters [readability-identifier-length]
                         const char *path, const struct ref_storage_be *be)
                                                                        ^
/datasets/git/refs.c:2132:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
             oideq(current_ref_iter->oid, base)))
                                                 ^
                                                  {
/datasets/git/refs.c:2140:10: warning: 2 adjacent parameters of 'refs_create_symref' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                       const char *refs_heads_master,
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs.c:2140:22: note: the first parameter in the range is 'refs_heads_master'
                       const char *refs_heads_master,
                                   ^~~~~~~~~~~~~~~~~
/datasets/git/refs.c:2141:22: note: the last parameter in the range is 'logmsg'
                       const char *logmsg)
                                   ^~~~~~
/datasets/git/refs.c:2143:8: warning: variable 'msg' is not initialized [cppcoreguidelines-init-variables]
        char *msg;
              ^
                  = NULL
/datasets/git/refs.c:2144:6: warning: variable 'retval' is not initialized [cppcoreguidelines-init-variables]
        int retval;
            ^
                   = 0
/datasets/git/refs.c:2163:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t i, n = refnames->nr;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs.c:2163:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/refs.c:2163:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i, n = refnames->nr;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs.c:2163:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs.c:2163:12: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
        size_t i, n = refnames->nr;
                  ^
/datasets/git/refs.c:2167:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 1; i < n; i++) {
        ^
/datasets/git/refs.c:2167:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'n' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 1; i < n; i++) {
                    ^
/datasets/git/refs.c:2176:5: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                } else if (cmp > 0) {
                  ^~~~~~~~~~~~~~~~~~~
/datasets/git/refs.c:2188:14: warning: variable 'hook' is not initialized [cppcoreguidelines-init-variables]
        const char *hook;
                    ^
                         = NULL
/datasets/git/refs.c:2189:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int ret = 0, i;
        ^~~~~~~~~~~~~~~
/datasets/git/refs.c:2189:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int ret = 0, i;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs.c:2189:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs.c:2192:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!hook)
                  ^
                   {
/datasets/git/refs.c:2201:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/refs.c:2206:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < transaction->nr; i++) {
        ^
/datasets/git/refs.c:2229:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ret |= finish_command(&proc);
        ^~~
/datasets/git/refs.c:2237:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/refs.c:2261:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/refs.c:2304:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/refs.c:2310:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret)
                        ^
                         {
/datasets/git/refs.c:2325:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ret)
                 ^
                  {
/datasets/git/refs.c:2336:14: warning: variable 'slash' is not initialized [cppcoreguidelines-init-variables]
        const char *slash;
                    ^
                          = NULL
/datasets/git/refs.c:2337:14: warning: variable 'extra_refname' is not initialized [cppcoreguidelines-init-variables]
        const char *extra_refname;
                    ^
                                  = NULL
/datasets/git/refs.c:2341:15: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        unsigned int type;
                     ^
                          = 0
/datasets/git/refs.c:2342:23: warning: variable 'iter' is not initialized [cppcoreguidelines-init-variables]
        struct ref_iterator *iter;
                             ^
                                  = NULL
/datasets/git/refs.c:2343:6: warning: variable 'ok' is not initialized [cppcoreguidelines-init-variables]
        int ok;
            ^
               = 0
/datasets/git/refs.c:2343:6: warning: variable name 'ok' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs.c:2354:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (slash = strchr(refname, '/'); slash; slash = strchr(slash + 1, '/')) {
        ^
/datasets/git/refs.c:2343:2: note: inferred assignment of ID-dependent value from ID-dependent variable iter [altera-id-dependent-backward-branch]
        int ok;
        ^
/datasets/git/refs.c:2354:37: warning: backward branch (for loop) is ID-dependent due to variable reference to 'slash' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (slash = strchr(refname, '/'); slash; slash = strchr(slash + 1, '/')) {
                                           ^
/datasets/git/refs.c:2361:7: warning: variable 'ignore_errno' is not initialized [cppcoreguidelines-init-variables]
                int ignore_errno;
                    ^
                                 = 0
/datasets/git/refs.c:2370:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (skip && string_list_has_string(skip, dirname.buf))
                                                                      ^
                                                                       {
/datasets/git/refs.c:2400:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((ok = ref_iterator_advance(iter)) == ITER_OK) {
        ^
/datasets/git/refs.c:2400:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'ok' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((ok = ref_iterator_advance(iter)) == ITER_OK) {
               ^
/datasets/git/refs.c:2402:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    string_list_has_string(skip, iter->refname))
                                                                ^
                                                                 {
/datasets/git/refs.c:2411:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ok != ITER_DONE)
                            ^
                             {
/datasets/git/refs.c:2415:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (extra_refname)
                          ^
                           {
/datasets/git/refs.c:2418:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/refs.c:2427:62: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
int refs_for_each_reflog(struct ref_store *refs, each_ref_fn fn, void *cb_data)
                                                             ^
/datasets/git/refs.c:2429:23: warning: variable 'iter' is not initialized [cppcoreguidelines-init-variables]
        struct ref_iterator *iter;
                             ^
                                  = NULL
/datasets/git/refs.c:2430:30: warning: variable name 'hp' is too short, expected at least 3 characters [readability-identifier-length]
        struct do_for_each_ref_help hp = { fn, cb_data };
                                    ^
/datasets/git/refs.c:2438:33: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
int for_each_reflog(each_ref_fn fn, void *cb_data)
                                ^
/datasets/git/refs.c:2445:29: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
                                     each_reflog_ent_fn fn,
                                                        ^
/datasets/git/refs.c:2452:73: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
int for_each_reflog_ent_reverse(const char *refname, each_reflog_ent_fn fn,
                                                                        ^
/datasets/git/refs.c:2460:28: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
                             each_reflog_ent_fn fn, void *cb_data)
                                                ^
/datasets/git/refs.c:2465:65: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
int for_each_reflog_ent(const char *refname, each_reflog_ent_fn fn,
                                                                ^
/datasets/git/refs.c:2539:52: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
                                            ref_transaction_for_each_queued_update_fn cb,
                                                                                      ^
/datasets/git/refs.c:2542:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/refs.c:2542:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs.c:2544:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < transaction->nr; i++) {
        ^
/datasets/git/refs.c:2548:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                   (update->flags & REF_HAVE_OLD) ? &update->old_oid : NULL,
                    ^
/datasets/git/refs.c:2548:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                   (update->flags & REF_HAVE_OLD) ? &update->old_oid : NULL,
                                    ^
/datasets/git/./refs/refs-internal.h:32:23: note: expanded from macro 'REF_HAVE_OLD'
#define REF_HAVE_OLD (1 << 3)
                      ^
/datasets/git/refs.c:2549:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                   (update->flags & REF_HAVE_NEW) ? &update->new_oid : NULL,
                    ^
/datasets/git/refs.c:2549:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                   (update->flags & REF_HAVE_NEW) ? &update->new_oid : NULL,
                                    ^
/datasets/git/./refs/refs-internal.h:26:23: note: expanded from macro 'REF_HAVE_NEW'
#define REF_HAVE_NEW (1 << 2)
                      ^
/datasets/git/refs.c:2557:8: warning: variable 'msg' is not initialized [cppcoreguidelines-init-variables]
        char *msg;
              ^
                  = NULL
/datasets/git/refs.c:2558:6: warning: variable 'retval' is not initialized [cppcoreguidelines-init-variables]
        int retval;
            ^
                   = 0
/datasets/git/refs.c:2573:7: warning: 2 adjacent parameters of 'refs_rename_ref' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                    const char *newref, const char *logmsg)
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs.c:2573:19: note: the first parameter in the range is 'newref'
                    const char *newref, const char *logmsg)
                                ^~~~~~
/datasets/git/refs.c:2573:39: note: the last parameter in the range is 'logmsg'
                    const char *newref, const char *logmsg)
                                                    ^~~~~~
/datasets/git/refs.c:2575:8: warning: variable 'msg' is not initialized [cppcoreguidelines-init-variables]
        char *msg;
              ^
                  = NULL
/datasets/git/refs.c:2576:6: warning: variable 'retval' is not initialized [cppcoreguidelines-init-variables]
        int retval;
            ^
                   = 0
/datasets/git/refs.c:2590:7: warning: 2 adjacent parameters of 'refs_copy_existing_ref' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                    const char *newref, const char *logmsg)
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs.c:2590:19: note: the first parameter in the range is 'newref'
                    const char *newref, const char *logmsg)
                                ^~~~~~
/datasets/git/refs.c:2590:39: note: the last parameter in the range is 'logmsg'
                    const char *newref, const char *logmsg)
                                                    ^~~~~~
/datasets/git/refs.c:2592:8: warning: variable 'msg' is not initialized [cppcoreguidelines-init-variables]
        char *msg;
              ^
                  = NULL
/datasets/git/refs.c:2593:6: warning: variable 'retval' is not initialized [cppcoreguidelines-init-variables]
        int retval;
            ^
                   = 0
refs/debug.c:5:25: warning: variable 'trace_refs' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct trace_key trace_refs = TRACE_KEY_INIT(REFS);
                        ^
/datasets/git/refs/debug.c:7:8: warning: accessing fields in struct 'debug_ref_store' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct debug_ref_store {
       ^
/datasets/git/refs/debug.c:7:8: note: use "__attribute__((aligned(32)))" to align struct 'debug_ref_store' to 32 bytes
/datasets/git/refs/debug.c:12:30: warning: variable 'refs_be_debug' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
extern struct ref_storage_be refs_be_debug;
                             ^
/datasets/git/refs/debug.c:16:26: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        struct debug_ref_store *res;
                                ^
                                    = NULL
/datasets/git/refs/debug.c:17:25: warning: variable 'be_copy' is not initialized [cppcoreguidelines-init-variables]
        struct ref_storage_be *be_copy;
                               ^
                                       = NULL
/datasets/git/refs/debug.c:27:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf_key(&trace_refs, "ref_store for %s\n", gitdir);
        ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/refs/debug.c:38:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf_key(&trace_refs, "init_db: %d\n", res);
        ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/refs/debug.c:47:6: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        int res;
            ^
                = 0
/datasets/git/refs/debug.c:51:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf_key(&trace_refs, "transaction_prepare: %d \"%s\"\n", res,
        ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/refs/debug.c:56:30: warning: parameter name 'i' is too short, expected at least 3 characters [readability-identifier-length]
static void print_update(int i, const char *refname,
                             ^
/datasets/git/refs/debug.c:61:7: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
        char o[GIT_MAX_HEXSZ + 1] = "null";
             ^
/datasets/git/refs/debug.c:62:7: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
        char n[GIT_MAX_HEXSZ + 1] = "null";
             ^
/datasets/git/refs/debug.c:63:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (old_oid)
                    ^
                     {
/datasets/git/refs/debug.c:65:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (new_oid)
                    ^
                     {
/datasets/git/refs/debug.c:68:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        type &= 0xf; /* see refs.h REF_* */
        ^       ~~~
/datasets/git/refs/debug.c:68:10: warning: 0xf is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        type &= 0xf; /* see refs.h REF_* */
                ^
/datasets/git/refs/debug.c:69:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        flags &= REF_HAVE_NEW | REF_HAVE_OLD | REF_NO_DEREF |
        ^
/datasets/git/refs/debug.c:69:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        flags &= REF_HAVE_NEW | REF_HAVE_OLD | REF_NO_DEREF |
                 ^
/datasets/git/./refs/refs-internal.h:26:22: note: expanded from macro 'REF_HAVE_NEW'
#define REF_HAVE_NEW (1 << 2)
                     ^
/datasets/git/refs/debug.c:69:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        flags &= REF_HAVE_NEW | REF_HAVE_OLD | REF_NO_DEREF |
                                ^
/datasets/git/./refs/refs-internal.h:32:23: note: expanded from macro 'REF_HAVE_OLD'
#define REF_HAVE_OLD (1 << 3)
                      ^
/datasets/git/refs/debug.c:69:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        flags &= REF_HAVE_NEW | REF_HAVE_OLD | REF_NO_DEREF |
                                               ^
/datasets/git/./refs.h:631:23: note: expanded from macro 'REF_NO_DEREF'
#define REF_NO_DEREF (1 << 0)
                      ^
/datasets/git/refs/debug.c:70:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                REF_FORCE_CREATE_REFLOG;
                ^
/datasets/git/./refs.h:637:34: note: expanded from macro 'REF_FORCE_CREATE_REFLOG'
#define REF_FORCE_CREATE_REFLOG (1 << 1)
                                 ^
/datasets/git/refs/debug.c:71:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf_key(&trace_refs, "%d: %s %s -> %s (F=0x%x, T=0x%x) \"%s\"\n", i, refname,
        ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/refs/debug.c:77:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/refs/debug.c:77:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs/debug.c:78:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf_key(&trace_refs, "transaction {\n");
        ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/refs/debug.c:79:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < transaction->nr; i++) {
        ^
/datasets/git/refs/debug.c:80:22: warning: variable name 'u' is too short, expected at least 3 characters [readability-identifier-length]
                struct ref_update *u = transaction->updates[i];
                                   ^
/datasets/git/refs/debug.c:84:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf_key(&trace_refs, "}\n");
        ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/refs/debug.c:92:6: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        int res;
            ^
                = 0
/datasets/git/refs/debug.c:97:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf_key(&trace_refs, "finish: %d\n", res);
        ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/refs/debug.c:106:6: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        int res;
            ^
                = 0
/datasets/git/refs/debug.c:117:6: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        int res;
            ^
                = 0
/datasets/git/refs/debug.c:128:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf_key(&trace_refs, "pack_refs: %d\n", res);
        ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/refs/debug.c:139:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf_key(&trace_refs, "create_symref: %s -> %s \"%s\": %d\n", ref_name,
        ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/refs/debug.c:150:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/refs/debug.c:150:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs/debug.c:151:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf_key(&trace_refs, "delete_refs {\n");
        ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/refs/debug.c:152:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < refnames->nr; i++)
                                          ^
                                           {
/datasets/git/refs/debug.c:153:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                trace_printf_key(&trace_refs, "%s\n", refnames->items[i].string);
                ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/refs/debug.c:154:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf_key(&trace_refs, "}: %d\n", res);
        ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/refs/debug.c:164:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf_key(&trace_refs, "rename_ref: %s -> %s \"%s\": %d\n", oldref, newref,
        ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/refs/debug.c:175:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf_key(&trace_refs, "copy_ref: %s -> %s \"%s\": %d\n", oldref, newref,
        ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/refs/debug.c:180:8: warning: accessing fields in struct 'debug_ref_iterator' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct debug_ref_iterator {
       ^
/datasets/git/refs/debug.c:180:8: note: use "__attribute__((aligned(64)))" to align struct 'debug_ref_iterator' to 64 bytes
/datasets/git/refs/debug.c:190:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (res)
                ^
                 {
/datasets/git/refs/debug.c:191:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                trace_printf_key(&trace_refs, "iterator_advance: (%d)\n", res);
                ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/refs/debug.c:192:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/refs/debug.c:193:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                trace_printf_key(&trace_refs, "iterator_advance: %s (0)\n",
                ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/refs/debug.c:209:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf_key(&trace_refs, "iterator_peel: %s: %d\n", diter->iter->refname, res);
        ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/refs/debug.c:218:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf_key(&trace_refs, "iterator_abort: %d\n", res);
        ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/refs/debug.c:222:35: warning: variable 'debug_ref_iterator_vtable' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct ref_iterator_vtable debug_ref_iterator_vtable = {
                                  ^
/datasets/git/refs/debug.c:238:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf_key(&trace_refs, "ref_iterator_begin: \"%s\" (0x%x)\n",
        ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/refs/debug.c:255:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                trace_printf_key(&trace_refs, "read_raw_ref: %s: %s (=> %s) type %x: %d\n",
                ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/refs/debug.c:258:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                trace_printf_key(&trace_refs,
                ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/refs/debug.c:270:6: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        int res;
            ^
                = 0
/datasets/git/refs/debug.c:273:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!res)
                 ^
                  {
/datasets/git/refs/debug.c:274:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                trace_printf_key(&trace_refs, "read_symbolic_ref: %s: (%s)\n",
                ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/refs/debug.c:276:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/refs/debug.c:277:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                trace_printf_key(&trace_refs,
                ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/refs/debug.c:289:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf_key(&trace_refs, "for_each_reflog_iterator_begin\n");
        ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/refs/debug.c:293:8: warning: accessing fields in struct 'debug_reflog' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct debug_reflog {
       ^
/datasets/git/refs/debug.c:293:8: note: use "__attribute__((aligned(32)))" to align struct 'debug_reflog' to 32 bytes
/datasets/git/refs/debug.c:302:11: warning: parameter name 'tz' is too short, expected at least 3 characters [readability-identifier-length]
                                  int tz, const char *msg, void *cb_data)
                                      ^
/datasets/git/refs/debug.c:305:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/refs/debug.c:306:7: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
        char o[GIT_MAX_HEXSZ + 1] = "null";
             ^
/datasets/git/refs/debug.c:307:7: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
        char n[GIT_MAX_HEXSZ + 1] = "null";
             ^
/datasets/git/refs/debug.c:309:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (old_oid)
                    ^
                     {
/datasets/git/refs/debug.c:311:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (new_oid)
                    ^
                     {
/datasets/git/refs/debug.c:316:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf_key(&trace_refs,
        ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/refs/debug.c:324:50: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
                                     const char *refname, each_reflog_ent_fn fn,
                                                                             ^
/datasets/git/refs/debug.c:336:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf_key(&trace_refs, "for_each_reflog: %s: %d\n", refname, res);
        ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/refs/debug.c:342:30: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
                                             each_reflog_ent_fn fn,
                                                                ^
/datasets/git/refs/debug.c:353:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf_key(&trace_refs, "for_each_reflog_reverse: %s: %d\n", refname, res);
        ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/refs/debug.c:361:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf_key(&trace_refs, "reflog_exists: %s: %d\n", refname, res);
        ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/refs/debug.c:370:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf_key(&trace_refs, "create_reflog: %s: %d\n", refname, res);
        ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/refs/debug.c:378:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf_key(&trace_refs, "delete_reflog: %s: %d\n", refname, res);
        ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/refs/debug.c:382:8: warning: accessing fields in struct 'debug_reflog_expiry_should_prune' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct debug_reflog_expiry_should_prune {
       ^
/datasets/git/refs/debug.c:382:8: note: use "__attribute__((aligned(32)))" to align struct 'debug_reflog_expiry_should_prune' to 32 bytes
/datasets/git/refs/debug.c:394:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf_key(&trace_refs, "reflog_expire_prepare: %s\n", refname);
        ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/refs/debug.c:401:40: warning: parameter name 'tz' is too short, expected at least 3 characters [readability-identifier-length]
                                               timestamp_t timestamp, int tz,
                                                                          ^
/datasets/git/refs/debug.c:406:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf_key(&trace_refs, "reflog_expire_should_prune: %s %ld: %d\n", message, (long int) timestamp, result);
        ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/refs/debug.c:435:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf_key(&trace_refs, "reflog_expire: %s: %d\n", refname, res);
        ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/refs/debug.c:439:23: warning: variable 'refs_be_debug' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
struct ref_storage_be refs_be_debug = {
                      ^
/datasets/git/refs/files-backend.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "../config.h"
^        ~~~~~~~~~~~~~
         "../chdir-notify.h"
/datasets/git/refs/files-backend.c:26:1: warning: replace macro with enum [modernize-macro-to-enum]
#define REF_IS_PRUNING (1 << 4)
^~~~~~~~
                       =
/datasets/git/refs/files-backend.c:26:9: warning: macro 'REF_IS_PRUNING' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define REF_IS_PRUNING (1 << 4)
        ^
/datasets/git/refs/files-backend.c:32:1: warning: replace macro with enum [modernize-macro-to-enum]
#define REF_DELETING (1 << 5)
^~~~~~~~
                     =
/datasets/git/refs/files-backend.c:32:9: warning: macro 'REF_DELETING' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define REF_DELETING (1 << 5)
        ^
/datasets/git/refs/files-backend.c:38:1: warning: replace macro with enum [modernize-macro-to-enum]
#define REF_NEEDS_COMMIT (1 << 6)
^~~~~~~~
                         =
/datasets/git/refs/files-backend.c:38:9: warning: macro 'REF_NEEDS_COMMIT' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define REF_NEEDS_COMMIT (1 << 6)
        ^
/datasets/git/refs/files-backend.c:44:1: warning: replace macro with enum [modernize-macro-to-enum]
#define REF_UPDATE_VIA_HEAD (1 << 8)
^~~~~~~~
                            =
/datasets/git/refs/files-backend.c:44:9: warning: macro 'REF_UPDATE_VIA_HEAD' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define REF_UPDATE_VIA_HEAD (1 << 8)
        ^
/datasets/git/refs/files-backend.c:50:1: warning: replace macro with enum [modernize-macro-to-enum]
#define REF_DELETED_RMDIR (1 << 9)
^~~~~~~~
                          =
/datasets/git/refs/files-backend.c:50:9: warning: macro 'REF_DELETED_RMDIR' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define REF_DELETED_RMDIR (1 << 9)
        ^
/datasets/git/refs/files-backend.c:52:8: warning: accessing fields in struct 'ref_lock' is inefficient due to padding; only needs 52 bytes but is using 56 bytes [altera-struct-pack-align]
struct ref_lock {
       ^
/datasets/git/refs/files-backend.c:52:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'ref_lock'
/datasets/git/refs/files-backend.c:52:8: warning: accessing fields in struct 'ref_lock' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct ref_lock {
       ^
/datasets/git/refs/files-backend.c:52:8: note: use "__attribute__((aligned(64)))" to align struct 'ref_lock' to 64 bytes
/datasets/git/refs/files-backend.c:58:8: warning: accessing fields in struct 'files_ref_store' is inefficient due to padding; only needs 52 bytes but is using 56 bytes [altera-struct-pack-align]
struct files_ref_store {
       ^
/datasets/git/refs/files-backend.c:58:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'files_ref_store'
/datasets/git/refs/files-backend.c:58:8: warning: accessing fields in struct 'files_ref_store' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct files_ref_store {
       ^
/datasets/git/refs/files-backend.c:58:8: note: use "__attribute__((aligned(64)))" to align struct 'files_ref_store' to 64 bytes
/datasets/git/refs/files-backend.c:87:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/refs/files-backend.c:110:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (refs->store_flags & REF_STORE_MAIN)
            ^
/datasets/git/refs/files-backend.c:110:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (refs->store_flags & REF_STORE_MAIN)
                                ^
/datasets/git/./refs/refs-internal.h:518:26: note: expanded from macro 'REF_STORE_MAIN'
#define REF_STORE_MAIN          (1 << 3)
                                 ^
/datasets/git/refs/files-backend.c:110:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (refs->store_flags & REF_STORE_MAIN)
                                               ^
                                                {
/datasets/git/refs/files-backend.c:126:26: warning: variable 'refs' is not initialized [cppcoreguidelines-init-variables]
        struct files_ref_store *refs;
                                ^
                                     = NULL
/datasets/git/refs/files-backend.c:128:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ref_store->be != &refs_be_files)
                                            ^
                                             {
/datasets/git/refs/files-backend.c:134:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((refs->store_flags & required_flags) != required_flags)
                                                                   ^
                                                                    {
/datasets/git/refs/files-backend.c:142:25: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                              struct strbuf *sb,
                                             ^
/datasets/git/refs/files-backend.c:145:14: warning: variable 'bare_refname' is not initialized [cppcoreguidelines-init-variables]
        const char *bare_refname;
                    ^
                                 = NULL
/datasets/git/refs/files-backend.c:146:14: warning: variable 'wtname' is not initialized [cppcoreguidelines-init-variables]
        const char *wtname;
                    ^
                           = NULL
/datasets/git/refs/files-backend.c:147:6: warning: variable 'wtname_len' is not initialized [cppcoreguidelines-init-variables]
        int wtname_len;
            ^
                       = 0
/datasets/git/refs/files-backend.c:169:22: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                           struct strbuf *sb,
                                          ^
/datasets/git/refs/files-backend.c:172:14: warning: variable 'bare_refname' is not initialized [cppcoreguidelines-init-variables]
        const char *bare_refname;
                    ^
                                 = NULL
/datasets/git/refs/files-backend.c:173:14: warning: variable 'wtname' is not initialized [cppcoreguidelines-init-variables]
        const char *wtname;
                    ^
                           = NULL
/datasets/git/refs/files-backend.c:174:6: warning: variable 'wtname_len' is not initialized [cppcoreguidelines-init-variables]
        int wtname_len;
            ^
                       = 0
/datasets/git/refs/files-backend.c:202:6: warning: variable 'ip' is not initialized [cppcoreguidelines-init-variables]
        int ip;
            ^
               = 0
/datasets/git/refs/files-backend.c:202:6: warning: variable name 'ip' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs/files-backend.c:204:6: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (strcmp(dirname, "refs/"))
            ^
                                     != 0
/datasets/git/refs/files-backend.c:204:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strcmp(dirname, "refs/"))
                                     ^
                                      {
/datasets/git/refs/files-backend.c:207:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (ip = 0; ip < ARRAY_SIZE(prefixes); ip++) {
        ^
/datasets/git/refs/files-backend.c:209:20: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int prefix_len = strlen(prefix);
                                 ^
/datasets/git/refs/files-backend.c:210:21: warning: variable 'child_entry' is not initialized [cppcoreguidelines-init-variables]
                struct ref_entry *child_entry;
                                  ^
                                              = NULL
/datasets/git/refs/files-backend.c:211:7: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
                int pos;
                    ^
                        = 0
/datasets/git/refs/files-backend.c:232:2: note: inferred assignment of ID-dependent value from ID-dependent variable d [altera-id-dependent-backward-branch]
        struct dirent *de;
        ^
/datasets/git/refs/files-backend.c:214:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pos >= 0)
                             ^
                              {
/datasets/git/refs/files-backend.c:230:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                files_downcast(ref_store, REF_STORE_READ, "fill_ref_dir");
                                          ^
/datasets/git/./refs/refs-internal.h:515:26: note: expanded from macro 'REF_STORE_READ'
#define REF_STORE_READ          (1 << 0)
                                 ^
/datasets/git/refs/files-backend.c:231:7: warning: variable 'd' is not initialized [cppcoreguidelines-init-variables]
        DIR *d;
             ^
               = NULL
/datasets/git/refs/files-backend.c:231:7: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs/files-backend.c:232:17: warning: variable 'de' is not initialized [cppcoreguidelines-init-variables]
        struct dirent *de;
                       ^
                          = NULL
/datasets/git/refs/files-backend.c:232:17: warning: variable name 'de' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs/files-backend.c:233:19: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int dirnamelen = strlen(dirname);
                         ^
/datasets/git/refs/files-backend.c:236:9: warning: variable 'path_baselen' is not initialized [cppcoreguidelines-init-variables]
        size_t path_baselen;
               ^
                            = 0
/datasets/git/refs/files-backend.c:247:37: warning: 257 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        strbuf_init(&refname, dirnamelen + 257);
                                           ^
/datasets/git/refs/files-backend.c:250:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((de = readdir(d)) != NULL) {
        ^
/datasets/git/refs/files-backend.c:250:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'de' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((de = readdir(d)) != NULL) {
               ^
/datasets/git/refs/files-backend.c:250:15: warning: function is not thread safe [concurrency-mt-unsafe]
        while ((de = readdir(d)) != NULL) {
                     ^
/datasets/git/refs/files-backend.c:252:15: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                struct stat st;
                            ^
/datasets/git/refs/files-backend.c:253:7: warning: variable 'flag' is not initialized [cppcoreguidelines-init-variables]
                int flag;
                    ^
                         = 0
/datasets/git/refs/files-backend.c:255:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (de->d_name[0] == '.')
                                         ^
                                          {
/datasets/git/refs/files-backend.c:257:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ends_with(de->d_name, ".lock"))
                                                   ^
                                                    {
/datasets/git/refs/files-backend.c:274:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                flag |= REF_ISBROKEN;
                                ^~~~
/datasets/git/refs/files-backend.c:284:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                flag |= REF_ISBROKEN;
                                ^~~~
/datasets/git/refs/files-backend.c:289:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!refname_is_safe(refname.buf))
                                                                  ^
                                                                   {
/datasets/git/refs/files-backend.c:292:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                flag |= REF_BAD_NAME | REF_ISBROKEN;
                                ^~~~
/datasets/git/refs/files-backend.c:292:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                flag |= REF_BAD_NAME | REF_ISBROKEN;
                                        ^
/datasets/git/./refs/../refs.h:292:22: note: expanded from macro 'REF_BAD_NAME'
#define REF_BAD_NAME 0x08
                     ^~~~
/datasets/git/refs/files-backend.c:318:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                refs->loose->root->flag &= ~REF_INCOMPLETE;
                ^                          ~~~~~~~~~~~~~~~
/datasets/git/refs/files-backend.c:318:30: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                refs->loose->root->flag &= ~REF_INCOMPLETE;
                                           ^
/datasets/git/refs/files-backend.c:325:45: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                 create_dir_entry(refs->loose, "refs/", 5));
                                                                        ^
/datasets/git/refs/files-backend.c:330:12: warning: function 'read_ref_internal' has cognitive complexity of 36 (threshold 25) [readability-function-cognitive-complexity]
static int read_ref_internal(struct ref_store *ref_store, const char *refname,
           ^
/datasets/git/refs/files-backend.c:367:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (remaining_retries-- <= 0)
        ^
/datasets/git/refs/files-backend.c:370:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (lstat(path, &st) < 0) {
        ^
/datasets/git/refs/files-backend.c:373:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (myerr != ENOENT || skip_packed_refs)
                ^
/datasets/git/refs/files-backend.c:373:23: note: +1
                if (myerr != ENOENT || skip_packed_refs)
                                    ^
/datasets/git/refs/files-backend.c:375:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (refs_read_raw_ref(refs->packed_ref_store, refname, oid,
                ^
/datasets/git/refs/files-backend.c:378:4: note: +1
                        goto out;
                        ^
/datasets/git/refs/files-backend.c:381:3: note: +1
                goto out;
                ^
/datasets/git/refs/files-backend.c:385:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (S_ISLNK(st.st_mode)) {
        ^
/datasets/git/refs/files-backend.c:387:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (strbuf_readlink(&sb_contents, path, st.st_size) < 0) {
                ^
/datasets/git/refs/files-backend.c:389:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (myerr == ENOENT || myerr == EINVAL)
                        ^
/datasets/git/refs/files-backend.c:389:24: note: +1
                        if (myerr == ENOENT || myerr == EINVAL)
                                            ^
/datasets/git/refs/files-backend.c:392:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/refs/files-backend.c:395:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (starts_with(sb_contents.buf, "refs/") &&
                ^
/datasets/git/refs/files-backend.c:395:45: note: +1
                if (starts_with(sb_contents.buf, "refs/") &&
                                                          ^
/datasets/git/refs/files-backend.c:400:4: note: +1
                        goto out;
                        ^
/datasets/git/refs/files-backend.c:410:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (S_ISDIR(st.st_mode)) {
        ^
/datasets/git/refs/files-backend.c:417:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (skip_packed_refs ||
                ^
/datasets/git/refs/files-backend.c:417:24: note: +1
                if (skip_packed_refs ||
                                     ^
/datasets/git/refs/files-backend.c:421:4: note: +1
                        goto out;
                        ^
/datasets/git/refs/files-backend.c:424:3: note: +1
                goto out;
                ^
/datasets/git/refs/files-backend.c:432:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (fd < 0) {
        ^
/datasets/git/refs/files-backend.c:434:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (myerr == ENOENT && !S_ISLNK(st.st_mode))
                ^
/datasets/git/refs/files-backend.c:434:23: note: +1
                if (myerr == ENOENT && !S_ISLNK(st.st_mode))
                                    ^
/datasets/git/refs/files-backend.c:437:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/refs/files-backend.c:441:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (strbuf_read(&sb_contents, fd, 256) < 0) {
        ^
/datasets/git/refs/files-backend.c:444:3: note: +1
                goto out;
                ^
/datasets/git/refs/files-backend.c:453:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ret && !myerr)
        ^
/datasets/git/refs/files-backend.c:453:10: note: +1
        if (ret && !myerr)
                ^
/datasets/git/refs/files-backend.c:335:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                files_downcast(ref_store, REF_STORE_READ, "read_raw_ref");
                                          ^
/datasets/git/./refs/refs-internal.h:515:26: note: expanded from macro 'REF_STORE_READ'
#define REF_STORE_READ          (1 << 0)
                                 ^
/datasets/git/refs/files-backend.c:338:14: warning: variable 'path' is not initialized [cppcoreguidelines-init-variables]
        const char *path;
                    ^
                         = NULL
/datasets/git/refs/files-backend.c:339:14: warning: variable 'buf' is not initialized [cppcoreguidelines-init-variables]
        const char *buf;
                    ^
                        = NULL
/datasets/git/refs/files-backend.c:340:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/refs/files-backend.c:341:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/refs/files-backend.c:341:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs/files-backend.c:367:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (remaining_retries-- <= 0)
                                     ^
                                      {
/datasets/git/refs/files-backend.c:371:7: warning: variable 'ignore_errno' is not initialized [cppcoreguidelines-init-variables]
                int ignore_errno;
                    ^
                                 = 0
/datasets/git/refs/files-backend.c:373:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (myerr != ENOENT || skip_packed_refs)
                                                        ^
                                                         {
/datasets/git/refs/files-backend.c:389:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (myerr == ENOENT || myerr == EINVAL)
                                                               ^
                                                                {
/datasets/git/refs/files-backend.c:392:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/refs/files-backend.c:398:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        *type |= REF_ISSYMREF;
                        ^
/datasets/git/refs/files-backend.c:411:7: warning: variable 'ignore_errno' is not initialized [cppcoreguidelines-init-variables]
                int ignore_errno;
                    ^
                                 = 0
/datasets/git/refs/files-backend.c:431:26: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
        fd = open(path, O_RDONLY);
                                ^
                                 | O_CLOEXEC
/datasets/git/refs/files-backend.c:434:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (myerr == ENOENT && !S_ISLNK(st.st_mode))
                                                            ^
                                                             {
/datasets/git/refs/files-backend.c:437:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/refs/files-backend.c:441:36: warning: 256 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (strbuf_read(&sb_contents, fd, 256) < 0) {
                                          ^
/datasets/git/refs/files-backend.c:453:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret && !myerr)
                          ^
                           {
/datasets/git/refs/files-backend.c:474:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int failure_errno, ret;
        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/files-backend.c:474:6: warning: variable 'failure_errno' is not initialized [cppcoreguidelines-init-variables]
        int failure_errno, ret;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs/files-backend.c:474:21: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int failure_errno, ret;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs/files-backend.c:475:15: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        unsigned int type;
                     ^
                          = 0
/datasets/git/refs/files-backend.c:478:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/refs/files-backend.c:481:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return !(type & REF_ISSYMREF);
                 ^
/datasets/git/refs/files-backend.c:488:14: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        const char *p;
                    ^
                      = NULL
/datasets/git/refs/files-backend.c:488:14: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs/files-backend.c:490:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (isspace(*buf))
                ^
/datasets/git/refs/files-backend.c:490:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                while (isspace(*buf))
                       ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/refs/files-backend.c:490:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (isspace(*buf))
                                     ^
                                      {
/datasets/git/refs/files-backend.c:495:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                *type |= REF_ISSYMREF;
                ^
/datasets/git/refs/files-backend.c:503:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            (*p != '\0' && !isspace(*p))) {
                            ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/refs/files-backend.c:504:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                *type |= REF_ISBROKEN;
                ^
/datasets/git/refs/files-backend.c:547:12: warning: function 'lock_raw_ref' has cognitive complexity of 52 (threshold 25) [readability-function-cognitive-complexity]
static int lock_raw_ref(struct files_ref_store *refs,
           ^
/datasets/git/refs/files-backend.c:561:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(err);
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/refs/files-backend.c:561:2: note: nesting level increased to 1
        assert(err);
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/refs/files-backend.c:561:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(err);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/refs/files-backend.c:561:2: note: +1, nesting level increased to 2
        assert(err);
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/refs/files-backend.c:574:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        switch (safe_create_leading_directories(ref_file.buf)) {
        ^
/datasets/git/refs/files-backend.c:586:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (refs_verify_refname_available(&refs->base, refname,
                ^
/datasets/git/refs/files-backend.c:588:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (mustexist) {
                        ^
/datasets/git/refs/files-backend.c:597:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/refs/files-backend.c:605:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/refs/files-backend.c:615:3: note: +1
                goto error_return;
                ^
/datasets/git/refs/files-backend.c:618:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (--attempts_remaining > 0)
                ^
/datasets/git/refs/files-backend.c:624:3: note: +1
                goto error_return;
                ^
/datasets/git/refs/files-backend.c:627:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (hold_lock_file_for_update_timeout(
        ^
/datasets/git/refs/files-backend.c:632:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (myerr == ENOENT && --attempts_remaining > 0) {
                ^
/datasets/git/refs/files-backend.c:632:23: note: +1
                if (myerr == ENOENT && --attempts_remaining > 0) {
                                    ^
/datasets/git/refs/files-backend.c:638:4: note: +1
                        goto retry;
                        ^
/datasets/git/refs/files-backend.c:639:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/refs/files-backend.c:641:4: note: +1
                        goto error_return;
                        ^
/datasets/git/refs/files-backend.c:650:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (files_read_raw_ref(&refs->base, refname, &lock->old_oid, referent,
        ^
/datasets/git/refs/files-backend.c:652:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (failure_errno == ENOENT) {
                ^
/datasets/git/refs/files-backend.c:653:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (mustexist) {
                        ^
/datasets/git/refs/files-backend.c:657:5: note: +1
                                goto error_return;
                                ^
/datasets/git/refs/files-backend.c:658:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/refs/files-backend.c:676:10: note: +1, nesting level increased to 2
                } else if (failure_errno == EISDIR) {
                       ^
/datasets/git/refs/files-backend.c:685:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (mustexist) {
                        ^
/datasets/git/refs/files-backend.c:689:5: note: +1
                                goto error_return;
                                ^
/datasets/git/refs/files-backend.c:690:11: note: +1, nesting level increased to 3
                        } else if (remove_dir_recursively(&ref_file,
                               ^
/datasets/git/refs/files-backend.c:692:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (refs_verify_refname_available(
                                ^
/datasets/git/refs/files-backend.c:700:6: note: +1
                                        goto error_return;
                                        ^
/datasets/git/refs/files-backend.c:701:7: note: +1, nesting level increased to 4
                                } else {
                                  ^
/datasets/git/refs/files-backend.c:711:6: note: +1
                                        goto error_return;
                                        ^
/datasets/git/refs/files-backend.c:714:10: note: +1, nesting level increased to 2
                } else if (failure_errno == EINVAL && (*type & REF_ISBROKEN)) {
                       ^
/datasets/git/refs/files-backend.c:714:38: note: +1
                } else if (failure_errno == EINVAL && (*type & REF_ISBROKEN)) {
                                                   ^
/datasets/git/refs/files-backend.c:717:4: note: +1
                        goto error_return;
                        ^
/datasets/git/refs/files-backend.c:718:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/refs/files-backend.c:721:4: note: +1
                        goto error_return;
                        ^
/datasets/git/refs/files-backend.c:729:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (refs_verify_refname_available(
                ^
/datasets/git/refs/files-backend.c:736:2: note: +1
        goto out;
        ^
/datasets/git/refs/files-backend.c:555:19: warning: variable 'lock' is not initialized [cppcoreguidelines-init-variables]
        struct ref_lock *lock;
                         ^
                              = NULL
/datasets/git/refs/files-backend.c:559:6: warning: variable 'failure_errno' is not initialized [cppcoreguidelines-init-variables]
        int failure_errno;
            ^
                          = 0
/datasets/git/refs/files-backend.c:618:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (--attempts_remaining > 0)
                                             ^
                                              {
/datasets/git/refs/files-backend.c:714:42: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                } else if (failure_errno == EINVAL && (*type & REF_ISBROKEN)) {
                                                       ^
/datasets/git/refs/files-backend.c:720:18: warning: function is not thread safe [concurrency-mt-unsafe]
                                    refname, strerror(failure_errno));
                                             ^
/datasets/git/refs/files-backend.c:731:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                    extras, NULL, err))
                                                       ^
                                                        {
/datasets/git/refs/files-backend.c:747:8: warning: accessing fields in struct 'files_ref_iterator' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct files_ref_iterator {
       ^
/datasets/git/refs/files-backend.c:747:8: note: use "__attribute__((aligned(64)))" to align struct 'files_ref_iterator' to 64 bytes
/datasets/git/refs/files-backend.c:759:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int ok;
        ^
/datasets/git/refs/files-backend.c:759:6: warning: variable 'ok' is not initialized [cppcoreguidelines-init-variables]
        int ok;
            ^
               = 0
/datasets/git/refs/files-backend.c:759:6: warning: variable name 'ok' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs/files-backend.c:761:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((ok = ref_iterator_advance(iter->iter0)) == ITER_OK) {
        ^
/datasets/git/refs/files-backend.c:761:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'ok' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((ok = ref_iterator_advance(iter->iter0)) == ITER_OK) {
               ^
/datasets/git/refs/files-backend.c:762:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (iter->flags & DO_FOR_EACH_PER_WORKTREE_ONLY &&
                    ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/files-backend.c:764:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                       NULL) != REF_WORKTREE_CURRENT)
                                                                     ^
                                                                      {
/datasets/git/refs/files-backend.c:767:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((iter->flags & DO_FOR_EACH_OMIT_DANGLING_SYMREFS) &&
                     ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/files-backend.c:768:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (iter->iter0->flags & REF_ISSYMREF) &&
                     ^
/datasets/git/refs/files-backend.c:769:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (iter->iter0->flags & REF_ISBROKEN))
                     ^
/datasets/git/refs/files-backend.c:769:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    (iter->iter0->flags & REF_ISBROKEN))
                                                        ^
                                                         {
/datasets/git/refs/files-backend.c:772:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(iter->flags & DO_FOR_EACH_INCLUDE_BROKEN) &&
                      ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/files-backend.c:776:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                            iter->iter0->flags))
                                                                ^
                                                                 {
/datasets/git/refs/files-backend.c:786:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ref_iterator_abort(ref_iterator) != ITER_DONE)
                                                          ^
                                                           {
/datasets/git/refs/files-backend.c:805:6: warning: variable name 'ok' is too short, expected at least 3 characters [readability-identifier-length]
        int ok = ITER_DONE;
            ^
/datasets/git/refs/files-backend.c:807:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (iter->iter0)
                        ^
                         {
/datasets/git/refs/files-backend.c:814:35: warning: variable 'files_ref_iterator_vtable' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct ref_iterator_vtable files_ref_iterator_vtable = {
                                  ^
/datasets/git/refs/files-backend.c:824:26: warning: variable 'refs' is not initialized [cppcoreguidelines-init-variables]
        struct files_ref_store *refs;
                                ^
                                     = NULL
/datasets/git/refs/files-backend.c:825:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct ref_iterator *loose_iter, *packed_iter, *overlay_iter;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/files-backend.c:825:23: warning: variable 'loose_iter' is not initialized [cppcoreguidelines-init-variables]
        struct ref_iterator *loose_iter, *packed_iter, *overlay_iter;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs/files-backend.c:825:36: warning: variable 'packed_iter' is not initialized [cppcoreguidelines-init-variables]
        struct ref_iterator *loose_iter, *packed_iter, *overlay_iter;
                                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs/files-backend.c:825:50: warning: variable 'overlay_iter' is not initialized [cppcoreguidelines-init-variables]
        struct ref_iterator *loose_iter, *packed_iter, *overlay_iter;
                                                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs/files-backend.c:826:29: warning: variable 'iter' is not initialized [cppcoreguidelines-init-variables]
        struct files_ref_iterator *iter;
                                   ^
                                        = NULL
/datasets/git/refs/files-backend.c:827:23: warning: variable 'ref_iterator' is not initialized [cppcoreguidelines-init-variables]
        struct ref_iterator *ref_iterator;
                             ^
                                          = NULL
/datasets/git/refs/files-backend.c:828:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned int required_flags = REF_STORE_READ;
                                      ^
/datasets/git/./refs/refs-internal.h:515:26: note: expanded from macro 'REF_STORE_READ'
#define REF_STORE_READ          (1 << 0)
                                 ^
/datasets/git/refs/files-backend.c:830:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & DO_FOR_EACH_INCLUDE_BROKEN))
              ^       ~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/files-backend.c:830:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(flags & DO_FOR_EACH_INCLUDE_BROKEN))
                                                  ^
                                                   {
/datasets/git/refs/files-backend.c:831:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                required_flags |= REF_STORE_ODB;
                ^
/datasets/git/refs/files-backend.c:831:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                required_flags |= REF_STORE_ODB;
                                  ^
/datasets/git/./refs/refs-internal.h:517:25: note: expanded from macro 'REF_STORE_ODB'
#define REF_STORE_ODB           (1 << 2) /* has access to object database */
                                 ^
/datasets/git/refs/files-backend.c:911:52: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
typedef int create_file_fn(const char *path, void *cb);
                                                   ^
/datasets/git/refs/files-backend.c:924:67: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
static int raceproof_create_file(const char *path, create_file_fn fn, void *cb)
                                                                  ^
/datasets/git/refs/files-backend.c:924:77: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int raceproof_create_file(const char *path, create_file_fn fn, void *cb)
                                                                            ^
/datasets/git/refs/files-backend.c:946:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int ret, save_errno;
        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/files-backend.c:946:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret, save_errno;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs/files-backend.c:946:11: warning: variable 'save_errno' is not initialized [cppcoreguidelines-init-variables]
        int ret, save_errno;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs/files-backend.c:954:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ret)
                 ^
                  {
/datasets/git/refs/files-backend.c:962:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!path_copy.len)
                                   ^
                                    {
/datasets/git/refs/files-backend.c:965:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!remove_dir_recursively(&path_copy, REMOVE_DIR_EMPTY_ONLY))
                                                                               ^
                                                                                {
/datasets/git/refs/files-backend.c:974:19: warning: variable 'scld_result' is not initialized [cppcoreguidelines-init-variables]
                enum scld_error scld_result;
                                ^
/datasets/git/refs/files-backend.c:976:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!path_copy.len)
                                   ^
                                    {
/datasets/git/refs/files-backend.c:979:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                do {
                ^
/datasets/git/refs/files-backend.c:981:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (scld_result == SCLD_OK)
                                                   ^
                                                    {
/datasets/git/refs/files-backend.c:983:12: warning: backward branch (do loop) is ID-dependent due to variable reference to 'scld_result' and may cause performance degradation [altera-id-dependent-backward-branch]
                } while (scld_result == SCLD_VANISHED && create_directories_remaining-- > 0);
                         ^
/datasets/git/refs/files-backend.c:1002:51: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int create_reflock(const char *path, void *cb)
                                                  ^
/datasets/git/refs/files-backend.c:1004:20: warning: variable name 'lk' is too short, expected at least 3 characters [readability-identifier-length]
        struct lock_file *lk = cb;
                          ^
/datasets/git/refs/files-backend.c:1019:19: warning: variable 'lock' is not initialized [cppcoreguidelines-init-variables]
        struct ref_lock *lock;
                         ^
                              = NULL
/datasets/git/refs/files-backend.c:1036:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                          NULL, NULL, err))
                                                           ^
                                                            {
/datasets/git/refs/files-backend.c:1047:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                     &lock->old_oid, NULL))
                                                           ^
                                                            {
/datasets/git/refs/files-backend.c:1082:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/refs/files-backend.c:1083:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *p, *q;
        ^~~~~~~~~~~~
/datasets/git/refs/files-backend.c:1083:8: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        char *p, *q;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs/files-backend.c:1083:8: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs/files-backend.c:1083:12: warning: variable 'q' is not initialized [cppcoreguidelines-init-variables]
        char *p, *q;
                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs/files-backend.c:1083:12: warning: variable name 'q' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs/files-backend.c:1084:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/refs/files-backend.c:1084:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs/files-backend.c:1089:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (*p && *p != '/')
                ^
/datasets/git/refs/files-backend.c:1089:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (*p && *p != '/')
                       ^
/datasets/git/refs/files-backend.c:1089:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (*p && *p != '/')
                                       ^
                                        {
/datasets/git/refs/files-backend.c:1092:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (*p == '/')
                ^
/datasets/git/refs/files-backend.c:1092:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (*p == '/')
                       ^
/datasets/git/refs/files-backend.c:1092:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (*p == '/')
                                 ^
                                  {
/datasets/git/refs/files-backend.c:1096:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        while (flags & (REMOVE_EMPTY_PARENTS_REF | REMOVE_EMPTY_PARENTS_REFLOG)) {
               ^       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/files-backend.c:1096:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        while (flags & (REMOVE_EMPTY_PARENTS_REF | REMOVE_EMPTY_PARENTS_REFLOG)) {
                        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/files-backend.c:1097:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (q > p && *q != '/')
                ^
/datasets/git/refs/files-backend.c:1097:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'q' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (q > p && *q != '/')
                       ^
/datasets/git/refs/files-backend.c:1097:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (q > p && *q != '/')
                                          ^
                                           {
/datasets/git/refs/files-backend.c:1099:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (q > p && *(q-1) == '/')
                ^
/datasets/git/refs/files-backend.c:1099:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'q' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (q > p && *(q-1) == '/')
                       ^
/datasets/git/refs/files-backend.c:1099:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (q > p && *(q-1) == '/')
                                              ^
                                               {
/datasets/git/refs/files-backend.c:1101:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (q == p)
                           ^
                            {
/datasets/git/refs/files-backend.c:1107:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((flags & REMOVE_EMPTY_PARENTS_REF) && rmdir(sb.buf))
                     ^       ~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/files-backend.c:1107:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((flags & REMOVE_EMPTY_PARENTS_REF) && rmdir(sb.buf))
                                                                        ^
                                                                         {
/datasets/git/refs/files-backend.c:1108:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        flags &= ~REMOVE_EMPTY_PARENTS_REF;
                        ^        ~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/files-backend.c:1108:13: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                        flags &= ~REMOVE_EMPTY_PARENTS_REF;
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/files-backend.c:1112:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((flags & REMOVE_EMPTY_PARENTS_REFLOG) && rmdir(sb.buf))
                     ^       ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/files-backend.c:1112:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((flags & REMOVE_EMPTY_PARENTS_REFLOG) && rmdir(sb.buf))
                                                                           ^
                                                                            {
/datasets/git/refs/files-backend.c:1113:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        flags &= ~REMOVE_EMPTY_PARENTS_REFLOG;
                        ^        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/files-backend.c:1113:13: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                        flags &= ~REMOVE_EMPTY_PARENTS_REFLOG;
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/files-backend.c:1120:74: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void prune_ref(struct files_ref_store *refs, struct ref_to_prune *r)
                                                                         ^
/datasets/git/refs/files-backend.c:1122:26: warning: variable 'transaction' is not initialized [cppcoreguidelines-init-variables]
        struct ref_transaction *transaction;
                                ^
                                            = NULL
/datasets/git/refs/files-backend.c:1126:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (check_refname_format(r->name, 0))
                                             ^
                                              {
/datasets/git/refs/files-backend.c:1130:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!transaction)
                         ^
                          {
/datasets/git/refs/files-backend.c:1134:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        REF_NO_DEREF | REF_HAVE_NEW | REF_HAVE_OLD | REF_IS_PRUNING,
                        ^
/datasets/git/./refs/../refs.h:631:22: note: expanded from macro 'REF_NO_DEREF'
#define REF_NO_DEREF (1 << 0)
                     ^
/datasets/git/refs/files-backend.c:1134:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        REF_NO_DEREF | REF_HAVE_NEW | REF_HAVE_OLD | REF_IS_PRUNING,
                                       ^
/datasets/git/./refs/refs-internal.h:26:23: note: expanded from macro 'REF_HAVE_NEW'
#define REF_HAVE_NEW (1 << 2)
                      ^
/datasets/git/refs/files-backend.c:1134:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        REF_NO_DEREF | REF_HAVE_NEW | REF_HAVE_OLD | REF_IS_PRUNING,
                                                      ^
/datasets/git/./refs/refs-internal.h:32:23: note: expanded from macro 'REF_HAVE_OLD'
#define REF_HAVE_OLD (1 << 3)
                      ^
/datasets/git/refs/files-backend.c:1134:49: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        REF_NO_DEREF | REF_HAVE_NEW | REF_HAVE_OLD | REF_IS_PRUNING,
                                                                     ^
/datasets/git/refs/files-backend.c:26:25: note: expanded from macro 'REF_IS_PRUNING'
#define REF_IS_PRUNING (1 << 4)
                        ^
/datasets/git/refs/files-backend.c:1136:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ref_transaction_commit(transaction, &err))
                                                      ^
                                                       {
/datasets/git/refs/files-backend.c:1142:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/refs/files-backend.c:1146:2: warning: redundant return statement at the end of a function with a void return type [readability-redundant-control-flow]
        return;
~~~~~~~~^~~~~~~
/datasets/git/refs/files-backend.c:1155:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*refs_to_prune) {
        ^
/datasets/git/refs/files-backend.c:1156:24: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
                struct ref_to_prune *r = *refs_to_prune;
                                     ^
/datasets/git/refs/files-backend.c:1167:36: warning: 2 adjacent parameters of 'should_pack_ref' of similar type ('unsigned int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                           const struct object_id *oid, unsigned int ref_flags,
                                                        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/files-backend.c:1167:49: note: the first parameter in the range is 'ref_flags'
                           const struct object_id *oid, unsigned int ref_flags,
                                                                     ^~~~~~~~~
/datasets/git/refs/files-backend.c:1168:20: note: the last parameter in the range is 'pack_flags'
                           unsigned int pack_flags)
                                        ^~~~~~~~~~
/datasets/git/refs/files-backend.c:1172:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            REF_WORKTREE_SHARED)
                                ^
                                 {
/datasets/git/refs/files-backend.c:1176:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(pack_flags & PACK_REFS_ALL) && !starts_with(refname, "refs/tags/"))
              ^
/datasets/git/refs/files-backend.c:1176:75: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(pack_flags & PACK_REFS_ALL) && !starts_with(refname, "refs/tags/"))
                                                                                 ^
                                                                                  {
/datasets/git/refs/files-backend.c:1180:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (ref_flags & REF_ISSYMREF)
            ^
/datasets/git/refs/files-backend.c:1180:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ref_flags & REF_ISSYMREF)
                                     ^
                                      {
/datasets/git/refs/files-backend.c:1184:71: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ref_resolves_to_object(refname, the_repository, oid, ref_flags))
                                                                             ^
                                                                              {
/datasets/git/refs/files-backend.c:1193:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                files_downcast(ref_store, REF_STORE_WRITE | REF_STORE_ODB,
                                          ^
/datasets/git/./refs/refs-internal.h:516:26: note: expanded from macro 'REF_STORE_WRITE'
#define REF_STORE_WRITE         (1 << 1) /* can perform update operations */
                                ^~~~~~~~
/datasets/git/refs/files-backend.c:1193:47: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                files_downcast(ref_store, REF_STORE_WRITE | REF_STORE_ODB,
                                                            ^
/datasets/git/./refs/refs-internal.h:517:25: note: expanded from macro 'REF_STORE_ODB'
#define REF_STORE_ODB           (1 << 2) /* has access to object database */
                                 ^
/datasets/git/refs/files-backend.c:1195:23: warning: variable 'iter' is not initialized [cppcoreguidelines-init-variables]
        struct ref_iterator *iter;
                             ^
                                  = NULL
/datasets/git/refs/files-backend.c:1196:6: warning: variable 'ok' is not initialized [cppcoreguidelines-init-variables]
        int ok;
            ^
               = 0
/datasets/git/refs/files-backend.c:1196:6: warning: variable name 'ok' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs/files-backend.c:1199:26: warning: variable 'transaction' is not initialized [cppcoreguidelines-init-variables]
        struct ref_transaction *transaction;
                                ^
                                            = NULL
/datasets/git/refs/files-backend.c:1202:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!transaction)
                         ^
                          {
/datasets/git/refs/files-backend.c:1209:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'ok' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((ok = ref_iterator_advance(iter)) == ITER_OK) {
               ^
/datasets/git/refs/files-backend.c:1216:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                     flags))
                                            ^
                                             {
/datasets/git/refs/files-backend.c:1225:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                           REF_NO_DEREF, NULL, &err))
                                           ^
/datasets/git/./refs/../refs.h:631:23: note: expanded from macro 'REF_NO_DEREF'
#define REF_NO_DEREF (1 << 0)
                      ^
/datasets/git/refs/files-backend.c:1225:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                           REF_NO_DEREF, NULL, &err))
                                                                     ^
                                                                      {
/datasets/git/refs/files-backend.c:1230:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((flags & PACK_REFS_PRUNE)) {
                     ^
/datasets/git/refs/files-backend.c:1231:25: warning: variable 'n' is not initialized [cppcoreguidelines-init-variables]
                        struct ref_to_prune *n;
                                             ^
                                               = NULL
/datasets/git/refs/files-backend.c:1231:25: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs/files-backend.c:1232:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        FLEX_ALLOC_STR(n, name, iter->refname);
                        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^
/datasets/git/./git-compat-util.h:1151:47: note: expanded from macro 'FLEX_ALLOC_MEM'
#define FLEX_ALLOC_MEM(x, flexname, buf, len) do { \
                                              ^
/datasets/git/refs/files-backend.c:1232:4: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        FLEX_ALLOC_STR(n, name, iter->refname);
                        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/refs/files-backend.c:1232:4: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                        FLEX_ALLOC_STR(n, name, iter->refname);
                        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/refs/files-backend.c:1238:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ok != ITER_DONE)
                            ^
                             {
/datasets/git/refs/files-backend.c:1241:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ref_transaction_commit(transaction, &err))
                                                      ^
                                                       {
/datasets/git/refs/files-backend.c:1257:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                files_downcast(ref_store, REF_STORE_WRITE, "delete_refs");
                                          ^
/datasets/git/./refs/refs-internal.h:516:27: note: expanded from macro 'REF_STORE_WRITE'
#define REF_STORE_WRITE         (1 << 1) /* can perform update operations */
                                 ^
/datasets/git/refs/files-backend.c:1259:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, result = 0;
        ^~~~~~~~~~~~~~~~~~
/datasets/git/refs/files-backend.c:1259:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, result = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs/files-backend.c:1259:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs/files-backend.c:1261:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!refnames->nr)
                          ^
                           {
/datasets/git/refs/files-backend.c:1264:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (packed_refs_lock(refs->packed_ref_store, 0, &err))
                                                              ^
                                                               {
/datasets/git/refs/files-backend.c:1274:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < refnames->nr; i++) {
        ^
/datasets/git/refs/files-backend.c:1277:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (refs_delete_ref(&refs->base, msg, refname, NULL, flags))
                                                                            ^
                                                                             {
/datasets/git/refs/files-backend.c:1278:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        result |= error(_("could not remove reference %s"), refname);
                        ^~~~~~
/datasets/git/refs/files-backend.c:1291:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (refnames->nr == 1)
                              ^
                               {
/datasets/git/refs/files-backend.c:1294:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/refs/files-backend.c:1310:8: warning: accessing fields in struct 'rename_cb' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct rename_cb {
       ^
/datasets/git/refs/files-backend.c:1310:8: note: use "__attribute__((aligned(16)))" to align struct 'rename_cb' to 16 bytes
/datasets/git/refs/files-backend.c:1317:20: warning: variable name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
        struct rename_cb *cb = cb_data;
                          ^
/datasets/git/refs/files-backend.c:1328:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (errno == ENOTDIR)
                                     ^
                                      {
/datasets/git/refs/files-backend.c:1331:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else {
          ^~~~~~
/datasets/git/refs/files-backend.c:1340:19: warning: variable name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
        struct rename_cb cb;
                         ^
/datasets/git/refs/files-backend.c:1341:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/refs/files-backend.c:1348:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (errno == EISDIR)
                                    ^
                                     {
/datasets/git/refs/files-backend.c:1350:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/refs/files-backend.c:1353:10: warning: function is not thread safe [concurrency-mt-unsafe]
                              strerror(cb.true_errno));
                              ^
/datasets/git/refs/files-backend.c:1380:10: warning: 2 adjacent parameters of 'refs_rename_ref_available' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                              const char *old_refname,
                              ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/files-backend.c:1380:22: note: the first parameter in the range is 'old_refname'
                              const char *old_refname,
                                          ^~~~~~~~~~~
/datasets/git/refs/files-backend.c:1381:22: note: the last parameter in the range is 'new_refname'
                              const char *new_refname)
                                          ^~~~~~~~~~~
/datasets/git/refs/files-backend.c:1385:6: warning: variable 'ok' is not initialized [cppcoreguidelines-init-variables]
        int ok;
            ^
               = 0
/datasets/git/refs/files-backend.c:1385:6: warning: variable name 'ok' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs/files-backend.c:1390:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ok)
                ^
                 {
/datasets/git/refs/files-backend.c:1398:12: warning: function 'files_copy_or_rename_ref' has cognitive complexity of 50 (threshold 25) [readability-function-cognitive-complexity]
static int files_copy_or_rename_ref(struct ref_store *ref_store,
           ^
/datasets/git/refs/files-backend.c:1419:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (log && S_ISLNK(loginfo.st_mode)) {
        ^
/datasets/git/refs/files-backend.c:1419:10: note: +1
        if (log && S_ISLNK(loginfo.st_mode)) {
                ^
/datasets/git/refs/files-backend.c:1421:3: note: +1
                goto out;
                ^
/datasets/git/refs/files-backend.c:1424:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!refs_resolve_ref_unsafe(&refs->base, oldrefname,
        ^
/datasets/git/refs/files-backend.c:1428:3: note: +1
                goto out;
                ^
/datasets/git/refs/files-backend.c:1431:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (flag & REF_ISSYMREF) {
        ^
/datasets/git/refs/files-backend.c:1432:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (copy)
                ^
/datasets/git/refs/files-backend.c:1435:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/refs/files-backend.c:1438:3: note: +1
                goto out;
                ^
/datasets/git/refs/files-backend.c:1440:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!refs_rename_ref_available(&refs->base, oldrefname, newrefname)) {
        ^
/datasets/git/refs/files-backend.c:1442:3: note: +1
                goto out;
                ^
/datasets/git/refs/files-backend.c:1445:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!copy && log && rename(sb_oldref.buf, tmp_renamed_log.buf)) {
        ^
/datasets/git/refs/files-backend.c:1445:19: note: +1
        if (!copy && log && rename(sb_oldref.buf, tmp_renamed_log.buf)) {
                         ^
/datasets/git/refs/files-backend.c:1448:3: note: +1
                goto out;
                ^
/datasets/git/refs/files-backend.c:1451:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (copy && log && copy_file(tmp_renamed_log.buf, sb_oldref.buf, 0644)) {
        ^
/datasets/git/refs/files-backend.c:1451:18: note: +1
        if (copy && log && copy_file(tmp_renamed_log.buf, sb_oldref.buf, 0644)) {
                        ^
/datasets/git/refs/files-backend.c:1454:3: note: +1
                goto out;
                ^
/datasets/git/refs/files-backend.c:1457:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!copy && refs_delete_ref(&refs->base, logmsg, oldrefname,
        ^
/datasets/git/refs/files-backend.c:1457:12: note: +1
        if (!copy && refs_delete_ref(&refs->base, logmsg, oldrefname,
                  ^
/datasets/git/refs/files-backend.c:1460:3: note: +1
                goto rollback;
                ^
/datasets/git/refs/files-backend.c:1470:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!copy && refs_resolve_ref_unsafe(&refs->base, newrefname,
        ^
/datasets/git/refs/files-backend.c:1472:23: note: +1
                                             NULL, NULL) &&
                                                         ^
/datasets/git/refs/files-backend.c:1475:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (errno == EISDIR) {
                ^
/datasets/git/refs/files-backend.c:1483:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (result) {
                        ^
/datasets/git/refs/files-backend.c:1485:5: note: +1
                                goto rollback;
                                ^
/datasets/git/refs/files-backend.c:1487:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/refs/files-backend.c:1489:4: note: +1
                        goto rollback;
                        ^
/datasets/git/refs/files-backend.c:1493:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (log && rename_tmp_log(refs, newrefname))
        ^
/datasets/git/refs/files-backend.c:1493:10: note: +1
        if (log && rename_tmp_log(refs, newrefname))
                ^
/datasets/git/refs/files-backend.c:1499:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!lock) {
        ^
/datasets/git/refs/files-backend.c:1500:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (copy)
                ^
/datasets/git/refs/files-backend.c:1502:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/refs/files-backend.c:1505:3: note: +1
                goto rollback;
                ^
/datasets/git/refs/files-backend.c:1509:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (write_ref_to_lockfile(lock, &orig_oid, 0, &err) ||
        ^
/datasets/git/refs/files-backend.c:1509:54: note: +1
        if (write_ref_to_lockfile(lock, &orig_oid, 0, &err) ||
                                                            ^
/datasets/git/refs/files-backend.c:1513:3: note: +1
                goto rollback;
                ^
/datasets/git/refs/files-backend.c:1517:2: note: +1
        goto out;
        ^
/datasets/git/refs/files-backend.c:1521:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!lock) {
        ^
/datasets/git/refs/files-backend.c:1524:3: note: +1
                goto rollbacklog;
                ^
/datasets/git/refs/files-backend.c:1529:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (write_ref_to_lockfile(lock, &orig_oid, 0, &err) ||
        ^
/datasets/git/refs/files-backend.c:1529:54: note: +1
        if (write_ref_to_lockfile(lock, &orig_oid, 0, &err) ||
                                                            ^
/datasets/git/refs/files-backend.c:1537:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (logmoved && rename(sb_newref.buf, sb_oldref.buf))
        ^
/datasets/git/refs/files-backend.c:1537:15: note: +1
        if (logmoved && rename(sb_newref.buf, sb_oldref.buf))
                     ^
/datasets/git/refs/files-backend.c:1540:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!logmoved && log &&
        ^
/datasets/git/refs/files-backend.c:1540:23: note: +1
        if (!logmoved && log &&
                             ^
/datasets/git/refs/files-backend.c:1399:32: warning: 2 adjacent parameters of 'files_copy_or_rename_ref' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                            const char *oldrefname, const char *newrefname,
                                                    ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/files-backend.c:1399:44: note: the first parameter in the range is 'newrefname'
                            const char *oldrefname, const char *newrefname,
                                                                ^~~~~~~~~~
/datasets/git/refs/files-backend.c:1400:20: note: the last parameter in the range is 'logmsg'
                            const char *logmsg, int copy)
                                        ^~~~~~
/datasets/git/refs/files-backend.c:1403:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                files_downcast(ref_store, REF_STORE_WRITE, "rename_ref");
                                          ^
/datasets/git/./refs/refs-internal.h:516:27: note: expanded from macro 'REF_STORE_WRITE'
#define REF_STORE_WRITE         (1 << 1) /* can perform update operations */
                                 ^
/datasets/git/refs/files-backend.c:1405:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int flag = 0, logmoved = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/files-backend.c:1406:19: warning: variable 'lock' is not initialized [cppcoreguidelines-init-variables]
        struct ref_lock *lock;
                         ^
                              = NULL
/datasets/git/refs/files-backend.c:1411:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int log, ret;
        ^~~~~~~~~~~~~
/datasets/git/refs/files-backend.c:1411:6: warning: variable 'log' is not initialized [cppcoreguidelines-init-variables]
        int log, ret;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs/files-backend.c:1411:11: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int log, ret;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs/files-backend.c:1425:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                     RESOLVE_REF_READING | RESOLVE_REF_NO_RECURSE,
                                     ^
/datasets/git/./refs/../refs.h:63:29: note: expanded from macro 'RESOLVE_REF_READING'
#define RESOLVE_REF_READING 0x01
                            ^~~~
/datasets/git/refs/files-backend.c:1431:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flag & REF_ISSYMREF) {
            ^~~~
/datasets/git/refs/files-backend.c:1432:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (copy)
                         ^
                          {
/datasets/git/refs/files-backend.c:1435:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/refs/files-backend.c:1447:20: warning: function is not thread safe [concurrency-mt-unsafe]
                            oldrefname, strerror(errno));
                                        ^
/datasets/git/refs/files-backend.c:1451:67: warning: 0644 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (copy && log && copy_file(tmp_renamed_log.buf, sb_oldref.buf, 0644)) {
                                                                         ^
/datasets/git/refs/files-backend.c:1453:20: warning: function is not thread safe [concurrency-mt-unsafe]
                            oldrefname, strerror(errno));
                                        ^
/datasets/git/refs/files-backend.c:1458:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            &orig_oid, REF_NO_DEREF)) {
                                       ^
/datasets/git/./refs/../refs.h:631:23: note: expanded from macro 'REF_NO_DEREF'
#define REF_NO_DEREF (1 << 0)
                      ^
/datasets/git/refs/files-backend.c:1471:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                             RESOLVE_REF_READING | RESOLVE_REF_NO_RECURSE,
                                             ^
/datasets/git/./refs/../refs.h:63:29: note: expanded from macro 'RESOLVE_REF_READING'
#define RESOLVE_REF_READING 0x01
                            ^~~~
/datasets/git/refs/files-backend.c:1474:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            NULL, REF_NO_DEREF)) {
                                  ^
/datasets/git/./refs/../refs.h:631:23: note: expanded from macro 'REF_NO_DEREF'
#define REF_NO_DEREF (1 << 0)
                      ^
/datasets/git/refs/files-backend.c:1477:8: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
                        int result;
                            ^
                                   = 0
/datasets/git/refs/files-backend.c:1493:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (log && rename_tmp_log(refs, newrefname))
                                                    ^
                                                     {
/datasets/git/refs/files-backend.c:1500:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (copy)
                         ^
                          {
/datasets/git/refs/files-backend.c:1502:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/refs/files-backend.c:1537:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (logmoved && rename(sb_newref.buf, sb_oldref.buf))
                                                             ^
                                                              {
/datasets/git/refs/files-backend.c:1539:28: warning: function is not thread safe [concurrency-mt-unsafe]
                        oldrefname, newrefname, strerror(errno));
                                                ^
/datasets/git/refs/files-backend.c:1541:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            rename(tmp_renamed_log.buf, sb_oldref.buf))
                                                       ^
                                                        {
/datasets/git/refs/files-backend.c:1543:16: warning: function is not thread safe [concurrency-mt-unsafe]
                        oldrefname, strerror(errno));
                                    ^
/datasets/git/refs/files-backend.c:1571:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (close_lock_file_gently(&lock->lk))
                                              ^
                                               {
/datasets/git/refs/files-backend.c:1579:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/refs/files-backend.c:1602:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (commit_lock_file(&lock->lk))
                                        ^
                                         {
/datasets/git/refs/files-backend.c:1607:59: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int open_or_create_logfile(const char *path, void *cb)
                                                          ^
/datasets/git/refs/files-backend.c:1609:7: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
        int *fd = cb;
             ^
/datasets/git/refs/files-backend.c:1611:48: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
        *fd = open(path, O_APPEND | O_WRONLY | O_CREAT, 0666);
                                                      ^
                                                       | O_CLOEXEC
/datasets/git/refs/files-backend.c:1611:50: warning: 0666 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        *fd = open(path, O_APPEND | O_WRONLY | O_CREAT, 0666);
                                                        ^
/datasets/git/refs/files-backend.c:1630:8: warning: variable 'logfile' is not initialized [cppcoreguidelines-init-variables]
        char *logfile;
              ^
                      = NULL
/datasets/git/refs/files-backend.c:1637:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (errno == ENOENT)
                                            ^
                                             {
/datasets/git/refs/files-backend.c:1639:25: warning: function is not thread safe [concurrency-mt-unsafe]
                                            "%s", logfile, strerror(errno));
                                                           ^
/datasets/git/refs/files-backend.c:1640:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (errno == EISDIR)
                                                 ^
                                                  {
/datasets/git/refs/files-backend.c:1643:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/refs/files-backend.c:1645:19: warning: function is not thread safe [concurrency-mt-unsafe]
                                            logfile, strerror(errno));
                                                     ^
/datasets/git/refs/files-backend.c:1650:45: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
                *logfd = open(logfile, O_APPEND | O_WRONLY);
                                                          ^
                                                           | O_CLOEXEC
/datasets/git/refs/files-backend.c:1662:19: warning: function is not thread safe [concurrency-mt-unsafe]
                                            logfile, strerror(errno));
                                                     ^
/datasets/git/refs/files-backend.c:1668:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*logfd >= 0)
                        ^
                         {
/datasets/git/refs/files-backend.c:1683:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                files_downcast(ref_store, REF_STORE_WRITE, "create_reflog");
                                          ^
/datasets/git/./refs/refs-internal.h:516:27: note: expanded from macro 'REF_STORE_WRITE'
#define REF_STORE_WRITE         (1 << 1) /* can perform update operations */
                                 ^
/datasets/git/refs/files-backend.c:1684:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/refs/files-backend.c:1684:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs/files-backend.c:1686:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (log_ref_setup(refs, refname, 1, &fd, err))
                                                      ^
                                                       {
/datasets/git/refs/files-backend.c:1689:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fd >= 0)
                    ^
                     {
/datasets/git/refs/files-backend.c:1695:33: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
static int log_ref_write_fd(int fd, const struct object_id *old_oid,
                                ^
/datasets/git/refs/files-backend.c:1697:8: warning: 2 adjacent parameters of 'log_ref_write_fd' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                            const char *committer, const char *msg)
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/files-backend.c:1697:20: note: the first parameter in the range is 'committer'
                            const char *committer, const char *msg)
                                        ^~~~~~~~~
/datasets/git/refs/files-backend.c:1697:43: note: the last parameter in the range is 'msg'
                            const char *committer, const char *msg)
                                                               ^~~
/datasets/git/refs/files-backend.c:1699:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/refs/files-backend.c:1708:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_in_full(fd, sb.buf, sb.len) < 0)
                                                  ^
                                                   {
/datasets/git/refs/files-backend.c:1719:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int logfd, result;
        ^~~~~~~~~~~~~~~~~~
/datasets/git/refs/files-backend.c:1719:6: warning: variable 'logfd' is not initialized [cppcoreguidelines-init-variables]
        int logfd, result;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs/files-backend.c:1719:13: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        int logfd, result;
                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs/files-backend.c:1721:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (log_all_ref_updates == LOG_REFS_UNSET)
                                                  ^
                                                   {
/datasets/git/refs/files-backend.c:1725:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                               flags & REF_FORCE_CREATE_REFLOG,
                               ^~~~~
/datasets/git/refs/files-backend.c:1725:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                               flags & REF_FORCE_CREATE_REFLOG,
                                       ^
/datasets/git/./refs/../refs.h:637:34: note: expanded from macro 'REF_FORCE_CREATE_REFLOG'
#define REF_FORCE_CREATE_REFLOG (1 << 1)
                                 ^
/datasets/git/refs/files-backend.c:1728:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (result)
                   ^
                    {
/datasets/git/refs/files-backend.c:1731:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (logfd < 0)
                      ^
                       {
/datasets/git/refs/files-backend.c:1736:17: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                struct strbuf sb = STRBUF_INIT;
                              ^
/datasets/git/refs/files-backend.c:1741:16: warning: function is not thread safe [concurrency-mt-unsafe]
                            sb.buf, strerror(save_errno));
                                    ^
/datasets/git/refs/files-backend.c:1747:17: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                struct strbuf sb = STRBUF_INIT;
                              ^
/datasets/git/refs/files-backend.c:1752:16: warning: function is not thread safe [concurrency-mt-unsafe]
                            sb.buf, strerror(save_errno));
                                    ^
/datasets/git/refs/files-backend.c:1768:17: warning: variable 'o' is not initialized [cppcoreguidelines-init-variables]
        struct object *o;
                       ^
                         = NULL
/datasets/git/refs/files-backend.c:1768:17: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs/files-backend.c:1769:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/refs/files-backend.c:1769:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs/files-backend.c:1840:7: warning: variable 'head_flag' is not initialized [cppcoreguidelines-init-variables]
                int head_flag;
                    ^
                              = 0
/datasets/git/refs/files-backend.c:1841:15: warning: variable 'head_ref' is not initialized [cppcoreguidelines-init-variables]
                const char *head_ref;
                            ^
                                     = NULL
/datasets/git/refs/files-backend.c:1846:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (head_ref && (head_flag & REF_ISSYMREF) &&
                                 ^~~~~~~~~
/datasets/git/refs/files-backend.c:1877:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/refs/files-backend.c:1878:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "no symlink - falling back to symbolic ref\n");
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/files-backend.c:1878:3: note: cast the expression to void to silence this warning
/datasets/git/refs/files-backend.c:1909:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!fdopen_lock_file(&lock->lk, "w"))
                                              ^
                                               {
/datasets/git/refs/files-backend.c:1911:40: warning: function is not thread safe [concurrency-mt-unsafe]
                             get_lock_file_path(&lock->lk), strerror(errno));
                                                            ^
/datasets/git/refs/files-backend.c:1916:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(get_lock_file_fp(&lock->lk), "ref: %s\n", target);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/files-backend.c:1916:2: note: cast the expression to void to silence this warning
/datasets/git/refs/files-backend.c:1917:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (commit_ref(lock) < 0)
                                 ^
                                  {
/datasets/git/refs/files-backend.c:1919:9: warning: function is not thread safe [concurrency-mt-unsafe]
                             strerror(errno));
                             ^
/datasets/git/refs/files-backend.c:1928:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                files_downcast(ref_store, REF_STORE_WRITE, "create_symref");
                                          ^
/datasets/git/./refs/refs-internal.h:516:27: note: expanded from macro 'REF_STORE_WRITE'
#define REF_STORE_WRITE         (1 << 1) /* can perform update operations */
                                 ^
/datasets/git/refs/files-backend.c:1930:19: warning: variable 'lock' is not initialized [cppcoreguidelines-init-variables]
        struct ref_lock *lock;
                         ^
                              = NULL
/datasets/git/refs/files-backend.c:1931:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/refs/files-backend.c:1949:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                files_downcast(ref_store, REF_STORE_READ, "reflog_exists");
                                          ^
/datasets/git/./refs/refs-internal.h:515:26: note: expanded from macro 'REF_STORE_READ'
#define REF_STORE_READ          (1 << 0)
                                 ^
/datasets/git/refs/files-backend.c:1950:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/refs/files-backend.c:1951:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/refs/files-backend.c:1952:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/refs/files-backend.c:1964:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                files_downcast(ref_store, REF_STORE_WRITE, "delete_reflog");
                                          ^
/datasets/git/./refs/refs-internal.h:516:27: note: expanded from macro 'REF_STORE_WRITE'
#define REF_STORE_WRITE         (1 << 1) /* can perform update operations */
                                 ^
/datasets/git/refs/files-backend.c:1965:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/refs/files-backend.c:1966:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/refs/files-backend.c:1974:47: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static int show_one_reflog_ent(struct strbuf *sb, each_reflog_ent_fn fn, void *cb_data)
                                              ^
/datasets/git/refs/files-backend.c:1974:70: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
static int show_one_reflog_ent(struct strbuf *sb, each_reflog_ent_fn fn, void *cb_data)
                                                                     ^
/datasets/git/refs/files-backend.c:1976:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct object_id ooid, noid;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/files-backend.c:1977:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *email_end, *message;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/files-backend.c:1977:8: warning: variable 'email_end' is not initialized [cppcoreguidelines-init-variables]
        char *email_end, *message;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs/files-backend.c:1977:20: warning: variable 'message' is not initialized [cppcoreguidelines-init-variables]
        char *email_end, *message;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs/files-backend.c:1978:14: warning: variable 'timestamp' is not initialized [cppcoreguidelines-init-variables]
        timestamp_t timestamp;
                    ^
                              = 0
/datasets/git/refs/files-backend.c:1979:6: warning: variable 'tz' is not initialized [cppcoreguidelines-init-variables]
        int tz;
            ^
               = 0
/datasets/git/refs/files-backend.c:1979:6: warning: variable name 'tz' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs/files-backend.c:1980:14: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        const char *p = sb->buf;
                    ^
/datasets/git/refs/files-backend.c:1986:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
            !(email_end = strchr(p, '>')) ||
              ^
/datasets/git/refs/files-backend.c:1986:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/refs/files-backend.c:1986:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/refs/files-backend.c:1988:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
            !(timestamp = parse_timestamp(email_end + 2, &message, 10)) ||
              ^
/datasets/git/refs/files-backend.c:1988:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/refs/files-backend.c:1988:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/refs/files-backend.c:1988:61: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
            !(timestamp = parse_timestamp(email_end + 2, &message, 10)) ||
                                                                   ^
/datasets/git/refs/files-backend.c:1991:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            !isdigit(message[2]) || !isdigit(message[3]) ||
             ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/refs/files-backend.c:1991:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            !isdigit(message[2]) || !isdigit(message[3]) ||
                                     ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/refs/files-backend.c:1992:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            !isdigit(message[4]) || !isdigit(message[5]))
             ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/refs/files-backend.c:1992:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            !isdigit(message[4]) || !isdigit(message[5]))
                                     ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/refs/files-backend.c:1992:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !isdigit(message[4]) || !isdigit(message[5]))
                                                         ^
                                                          {
/datasets/git/refs/files-backend.c:1995:7: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        tz = strtol(message + 1, NULL, 10);
             ^
/datasets/git/refs/files-backend.c:1995:33: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        tz = strtol(message + 1, NULL, 10);
                                       ^
/datasets/git/refs/files-backend.c:1996:14: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (message[6] != '\t')
                    ^
/datasets/git/refs/files-backend.c:1996:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (message[6] != '\t')
                               ^
                                {
/datasets/git/refs/files-backend.c:1997:14: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                message += 6;
                           ^
/datasets/git/refs/files-backend.c:1998:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/refs/files-backend.c:1999:14: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                message += 7;
                           ^
/datasets/git/refs/files-backend.c:2003:43: warning: pointer parameter 'bob' can be pointer to const [readability-non-const-parameter]
static char *find_beginning_of_line(char *bob, char *scan)
                                          ^
                                    const 
/datasets/git/refs/files-backend.c:2005:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (bob < scan && *(--scan) != '\n')
        ^
/datasets/git/refs/files-backend.c:2005:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (bob < scan && *(--scan) != '\n')
                                               ^
                                                {
/datasets/git/refs/files-backend.c:2014:12: warning: function 'files_for_each_reflog_ent_reverse' has cognitive complexity of 28 (threshold 25) [readability-function-cognitive-complexity]
static int files_for_each_reflog_ent_reverse(struct ref_store *ref_store,
           ^
/datasets/git/refs/files-backend.c:2030:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!logfp)
        ^
/datasets/git/refs/files-backend.c:2034:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (fseek(logfp, 0, SEEK_END) < 0)
        ^
/datasets/git/refs/files-backend.c:2038:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (!ret && 0 < pos) {
        ^
/datasets/git/refs/files-backend.c:2038:14: note: +1
        while (!ret && 0 < pos) {
                    ^
/datasets/git/refs/files-backend.c:2045:29: note: +2, including nesting penalty of 1, nesting level increased to 2
                cnt = (sizeof(buf) < pos) ? sizeof(buf) : pos;
                                          ^
/datasets/git/refs/files-backend.c:2046:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (fseek(logfp, pos - cnt, SEEK_SET)) {
                ^
/datasets/git/refs/files-backend.c:2052:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (nread != 1) {
                ^
/datasets/git/refs/files-backend.c:2060:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (at_tail && scanp[-1] == '\n')
                ^
/datasets/git/refs/files-backend.c:2060:15: note: +1
                if (at_tail && scanp[-1] == '\n')
                            ^
/datasets/git/refs/files-backend.c:2065:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (buf < scanp) {
                ^
/datasets/git/refs/files-backend.c:2074:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (*bp == '\n') {
                        ^
/datasets/git/refs/files-backend.c:2086:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (ret)
                                ^
/datasets/git/refs/files-backend.c:2088:11: note: +1, nesting level increased to 3
                        } else if (!pos) {
                               ^
/datasets/git/refs/files-backend.c:2101:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (bp == buf) {
                        ^
/datasets/git/refs/files-backend.c:2120:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!ret && sb.len)
        ^
/datasets/git/refs/files-backend.c:2120:11: note: +1
        if (!ret && sb.len)
                 ^
/datasets/git/refs/files-backend.c:2016:30: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
                                             each_reflog_ent_fn fn,
                                                                ^
/datasets/git/refs/files-backend.c:2020:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                files_downcast(ref_store, REF_STORE_READ,
                                          ^
/datasets/git/./refs/refs-internal.h:515:26: note: expanded from macro 'REF_STORE_READ'
#define REF_STORE_READ          (1 << 0)
                                 ^
/datasets/git/refs/files-backend.c:2022:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/refs/files-backend.c:2023:8: warning: variable 'logfp' is not initialized [cppcoreguidelines-init-variables]
        FILE *logfp;
              ^
                    = NULL
/datasets/git/refs/files-backend.c:2024:7: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        long pos;
             ^
                 = 0
/datasets/git/refs/files-backend.c:2025:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int ret = 0, at_tail = 1;
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/files-backend.c:2030:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!logfp)
                   ^
                    {
/datasets/git/refs/files-backend.c:2034:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fseek(logfp, 0, SEEK_END) < 0)
                                          ^
                                           {
/datasets/git/refs/files-backend.c:2036:17: warning: function is not thread safe [concurrency-mt-unsafe]
                            refname, strerror(errno));
                                     ^
/datasets/git/refs/files-backend.c:2038:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'ret' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (!ret && 0 < pos) {
               ^
/datasets/git/refs/files-backend.c:2039:7: warning: variable 'cnt' is not initialized [cppcoreguidelines-init-variables]
                int cnt;
                    ^
                        = 0
/datasets/git/refs/files-backend.c:2040:10: warning: variable 'nread' is not initialized [cppcoreguidelines-init-variables]
                size_t nread;
                       ^
                             = 0
/datasets/git/refs/files-backend.c:2042:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                char *endp, *scanp;
                ^~~~~~~~~~~~~~~~~~~
/datasets/git/refs/files-backend.c:2042:9: warning: variable 'endp' is not initialized [cppcoreguidelines-init-variables]
                char *endp, *scanp;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs/files-backend.c:2042:16: warning: variable 'scanp' is not initialized [cppcoreguidelines-init-variables]
                char *endp, *scanp;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs/files-backend.c:2045:45: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                cnt = (sizeof(buf) < pos) ? sizeof(buf) : pos;
                                                          ^
/datasets/git/refs/files-backend.c:2048:18: warning: function is not thread safe [concurrency-mt-unsafe]
                                    refname, strerror(errno));
                                             ^
/datasets/git/refs/files-backend.c:2054:23: warning: function is not thread safe [concurrency-mt-unsafe]
                                    cnt, refname, strerror(errno));
                                                  ^
/datasets/git/refs/files-backend.c:2060:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (at_tail && scanp[-1] == '\n')
                                                 ^
                                                  {
/datasets/git/refs/files-backend.c:2065:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (buf < scanp) {
                ^
/datasets/git/refs/files-backend.c:2065:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'scanp' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (buf < scanp) {
                       ^
/datasets/git/refs/files-backend.c:2070:10: warning: variable 'bp' is not initialized [cppcoreguidelines-init-variables]
                        char *bp;
                              ^
                                 = NULL
/datasets/git/refs/files-backend.c:2070:10: warning: variable name 'bp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs/files-backend.c:2086:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (ret)
                                        ^
                                         {
/datasets/git/refs/files-backend.c:2120:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ret && sb.len)
                           ^
                            {
/datasets/git/refs/files-backend.c:2123:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(logfp);
        ^~~~~~~~~~~~~
/datasets/git/refs/files-backend.c:2123:2: note: cast the expression to void to silence this warning
/datasets/git/refs/files-backend.c:2130:29: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
                                     each_reflog_ent_fn fn, void *cb_data)
                                                        ^
/datasets/git/refs/files-backend.c:2133:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                files_downcast(ref_store, REF_STORE_READ,
                                          ^
/datasets/git/./refs/refs-internal.h:515:26: note: expanded from macro 'REF_STORE_READ'
#define REF_STORE_READ          (1 << 0)
                                 ^
/datasets/git/refs/files-backend.c:2135:8: warning: variable 'logfp' is not initialized [cppcoreguidelines-init-variables]
        FILE *logfp;
              ^
                    = NULL
/datasets/git/refs/files-backend.c:2136:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/refs/files-backend.c:2142:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!logfp)
                   ^
                    {
/datasets/git/refs/files-backend.c:2145:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (!ret && !strbuf_getwholeline(&sb, logfp, '\n'))
        ^
/datasets/git/refs/files-backend.c:2145:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'ret' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (!ret && !strbuf_getwholeline(&sb, logfp, '\n'))
               ^
/datasets/git/refs/files-backend.c:2145:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (!ret && !strbuf_getwholeline(&sb, logfp, '\n'))
                                                              ^
                                                               {
/datasets/git/refs/files-backend.c:2147:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(logfp);
        ^~~~~~~~~~~~~
/datasets/git/refs/files-backend.c:2147:2: note: cast the expression to void to silence this warning
/datasets/git/refs/files-backend.c:2152:8: warning: accessing fields in struct 'files_reflog_iterator' is inefficient due to padding; only needs 92 bytes but is using 96 bytes [altera-struct-pack-align]
struct files_reflog_iterator {
       ^
/datasets/git/refs/files-backend.c:2152:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'files_reflog_iterator'
/datasets/git/refs/files-backend.c:2152:8: warning: accessing fields in struct 'files_reflog_iterator' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct files_reflog_iterator {
       ^
/datasets/git/refs/files-backend.c:2152:8: note: use "__attribute__((aligned(128)))" to align struct 'files_reflog_iterator' to 128 bytes
/datasets/git/refs/files-backend.c:2165:2: note: inferred assignment of ID-dependent value from ID-dependent variable diter [altera-id-dependent-backward-branch]
        int ok;
        ^
/datasets/git/refs/files-backend.c:2165:6: warning: variable 'ok' is not initialized [cppcoreguidelines-init-variables]
        int ok;
            ^
               = 0
/datasets/git/refs/files-backend.c:2165:6: warning: variable name 'ok' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs/files-backend.c:2167:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((ok = dir_iterator_advance(diter)) == ITER_OK) {
        ^
/datasets/git/refs/files-backend.c:2167:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'ok' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((ok = dir_iterator_advance(diter)) == ITER_OK) {
               ^
/datasets/git/refs/files-backend.c:2168:7: warning: variable 'flags' is not initialized [cppcoreguidelines-init-variables]
                int flags;
                    ^
                          = 0
/datasets/git/refs/files-backend.c:2170:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!S_ISREG(diter->st.st_mode))
                                                ^
                                                 {
/datasets/git/refs/files-backend.c:2172:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (diter->basename[0] == '.')
                                              ^
                                               {
/datasets/git/refs/files-backend.c:2174:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ends_with(diter->basename, ".lock"))
                                                        ^
                                                         {
/datasets/git/refs/files-backend.c:2191:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ref_iterator_abort(ref_iterator) == ITER_ERROR)
                                                           ^
                                                            {
/datasets/git/refs/files-backend.c:2206:6: warning: variable name 'ok' is too short, expected at least 3 characters [readability-identifier-length]
        int ok = ITER_DONE;
            ^
/datasets/git/refs/files-backend.c:2208:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (iter->dir_iterator)
                               ^
                                {
/datasets/git/refs/files-backend.c:2215:35: warning: variable 'files_reflog_iterator_vtable' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct ref_iterator_vtable files_reflog_iterator_vtable = {
                                  ^
/datasets/git/refs/files-backend.c:2224:23: warning: variable 'diter' is not initialized [cppcoreguidelines-init-variables]
        struct dir_iterator *diter;
                             ^
                                   = NULL
/datasets/git/refs/files-backend.c:2225:32: warning: variable 'iter' is not initialized [cppcoreguidelines-init-variables]
        struct files_reflog_iterator *iter;
                                      ^
                                           = NULL
/datasets/git/refs/files-backend.c:2226:23: warning: variable 'ref_iterator' is not initialized [cppcoreguidelines-init-variables]
        struct ref_iterator *ref_iterator;
                             ^
                                          = NULL
/datasets/git/refs/files-backend.c:2227:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/refs/files-backend.c:2249:2: warning: 2 adjacent parameters of 'reflog_iterator_select' of similar type ('struct ref_iterator *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
        struct ref_iterator *iter_worktree,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/files-backend.c:2249:23: note: the first parameter in the range is 'iter_worktree'
        struct ref_iterator *iter_worktree,
                             ^~~~~~~~~~~~~
/datasets/git/refs/files-backend.c:2250:23: note: the last parameter in the range is 'iter_common'
        struct ref_iterator *iter_common,
                             ^~~~~~~~~~~
/datasets/git/refs/files-backend.c:2260:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else if (iter_common) {
          ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/files-backend.c:2262:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                       NULL) == REF_WORKTREE_SHARED)
                                                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs/files-backend.c:2270:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs/files-backend.c:2277:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                files_downcast(ref_store, REF_STORE_READ,
                                          ^
/datasets/git/./refs/refs-internal.h:515:26: note: expanded from macro 'REF_STORE_READ'
#define REF_STORE_READ          (1 << 0)
                                 ^
/datasets/git/refs/files-backend.c:2282:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else {
          ^~~~~~
/datasets/git/refs/files-backend.c:2300:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/refs/files-backend.c:2301:21: warning: variable 'new_update' is not initialized [cppcoreguidelines-init-variables]
        struct ref_update *new_update;
                           ^
                                      = NULL
/datasets/git/refs/files-backend.c:2303:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((update->flags & REF_LOG_ONLY) ||
             ^
/datasets/git/refs/files-backend.c:2303:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((update->flags & REF_LOG_ONLY) ||
                             ^
/datasets/git/./refs/refs-internal.h:39:23: note: expanded from macro 'REF_LOG_ONLY'
#define REF_LOG_ONLY (1 << 7)
                      ^
/datasets/git/refs/files-backend.c:2304:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            (update->flags & REF_IS_PRUNING) ||
             ^
/datasets/git/refs/files-backend.c:2304:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            (update->flags & REF_IS_PRUNING) ||
                             ^
/datasets/git/refs/files-backend.c:26:25: note: expanded from macro 'REF_IS_PRUNING'
#define REF_IS_PRUNING (1 << 4)
                        ^
/datasets/git/refs/files-backend.c:2305:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            (update->flags & REF_UPDATE_VIA_HEAD))
             ^
/datasets/git/refs/files-backend.c:2305:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            (update->flags & REF_UPDATE_VIA_HEAD))
                             ^
/datasets/git/refs/files-backend.c:44:30: note: expanded from macro 'REF_UPDATE_VIA_HEAD'
#define REF_UPDATE_VIA_HEAD (1 << 8)
                             ^
/datasets/git/refs/files-backend.c:2305:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            (update->flags & REF_UPDATE_VIA_HEAD))
                                                  ^
                                                   {
/datasets/git/refs/files-backend.c:2308:6: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (strcmp(update->refname, head_ref))
            ^
                                              != 0
/datasets/git/refs/files-backend.c:2308:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strcmp(update->refname, head_ref))
                                              ^
                                               {
/datasets/git/refs/files-backend.c:2327:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        update->flags | REF_LOG_ONLY | REF_NO_DEREF,
                        ^
/datasets/git/refs/files-backend.c:2327:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        update->flags | REF_LOG_ONLY | REF_NO_DEREF,
                                        ^
/datasets/git/./refs/refs-internal.h:39:23: note: expanded from macro 'REF_LOG_ONLY'
#define REF_LOG_ONLY (1 << 7)
                      ^
/datasets/git/refs/files-backend.c:2327:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        update->flags | REF_LOG_ONLY | REF_NO_DEREF,
                                                       ^
/datasets/git/./refs/../refs.h:631:23: note: expanded from macro 'REF_NO_DEREF'
#define REF_NO_DEREF (1 << 0)
                      ^
/datasets/git/refs/files-backend.c:2336:6: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (strcmp(new_update->refname, "HEAD"))
            ^
                                                != 0
/datasets/git/refs/files-backend.c:2336:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strcmp(new_update->refname, "HEAD"))
                                                ^
                                                 {
/datasets/git/refs/files-backend.c:2358:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/refs/files-backend.c:2359:21: warning: variable 'new_update' is not initialized [cppcoreguidelines-init-variables]
        struct ref_update *new_update;
                           ^
                                      = NULL
/datasets/git/refs/files-backend.c:2360:15: warning: variable 'new_flags' is not initialized [cppcoreguidelines-init-variables]
        unsigned int new_flags;
                     ^
                               = 0
/datasets/git/refs/files-backend.c:2386:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                new_flags |= REF_UPDATE_VIA_HEAD;
                ^
/datasets/git/refs/files-backend.c:2386:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                new_flags |= REF_UPDATE_VIA_HEAD;
                             ^
/datasets/git/refs/files-backend.c:44:30: note: expanded from macro 'REF_UPDATE_VIA_HEAD'
#define REF_UPDATE_VIA_HEAD (1 << 8)
                             ^
/datasets/git/refs/files-backend.c:2401:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        update->flags |= REF_LOG_ONLY | REF_NO_DEREF;
        ^
/datasets/git/refs/files-backend.c:2401:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        update->flags |= REF_LOG_ONLY | REF_NO_DEREF;
                         ^
/datasets/git/./refs/refs-internal.h:39:22: note: expanded from macro 'REF_LOG_ONLY'
#define REF_LOG_ONLY (1 << 7)
                     ^~~~~~~~
/datasets/git/refs/files-backend.c:2401:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        update->flags |= REF_LOG_ONLY | REF_NO_DEREF;
                                        ^
/datasets/git/./refs/../refs.h:631:23: note: expanded from macro 'REF_NO_DEREF'
#define REF_NO_DEREF (1 << 0)
                      ^
/datasets/git/refs/files-backend.c:2402:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        update->flags &= ~REF_HAVE_OLD;
        ^                ~~~~~~~~~~~~~
/datasets/git/refs/files-backend.c:2402:19: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
        update->flags &= ~REF_HAVE_OLD;
                         ^
/datasets/git/refs/files-backend.c:2402:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        update->flags &= ~REF_HAVE_OLD;
                          ^
/datasets/git/./refs/refs-internal.h:32:23: note: expanded from macro 'REF_HAVE_OLD'
#define REF_HAVE_OLD (1 << 3)
                      ^
/datasets/git/refs/files-backend.c:2412:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (item->util)
                       ^
                        {
/datasets/git/refs/files-backend.c:2425:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (update->parent_update)
        ^
/datasets/git/refs/files-backend.c:2425:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'update' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (update->parent_update)
               ^
/datasets/git/refs/files-backend.c:2425:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (update->parent_update)
                                     ^
                                      {
/datasets/git/refs/files-backend.c:2440:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(update->flags & REF_HAVE_OLD) ||
              ^
/datasets/git/refs/files-backend.c:2440:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(update->flags & REF_HAVE_OLD) ||
                              ^
/datasets/git/./refs/refs-internal.h:32:23: note: expanded from macro 'REF_HAVE_OLD'
#define REF_HAVE_OLD (1 << 3)
                      ^
/datasets/git/refs/files-backend.c:2441:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                   oideq(oid, &update->old_oid))
                                                ^
                                                 {
/datasets/git/refs/files-backend.c:2444:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_null_oid(&update->old_oid))
                                          ^
                                           {
/datasets/git/refs/files-backend.c:2448:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (is_null_oid(oid))
                                  ^
                                   {
/datasets/git/refs/files-backend.c:2453:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/refs/files-backend.c:2476:12: warning: function 'lock_ref_for_update' has cognitive complexity of 43 (threshold 25) [readability-function-cognitive-complexity]
static int lock_ref_for_update(struct files_ref_store *refs,
           ^
/datasets/git/refs/files-backend.c:2484:49: note: +1
        int mustexist = (update->flags & REF_HAVE_OLD) &&
                                                       ^
/datasets/git/refs/files-backend.c:2491:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((update->flags & REF_HAVE_NEW) && is_null_oid(&update->new_oid))
        ^
/datasets/git/refs/files-backend.c:2491:37: note: +1
        if ((update->flags & REF_HAVE_NEW) && is_null_oid(&update->new_oid))
                                           ^
/datasets/git/refs/files-backend.c:2494:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (head_ref) {
        ^
/datasets/git/refs/files-backend.c:2497:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ret)
                ^
/datasets/git/refs/files-backend.c:2505:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ret) {
        ^
/datasets/git/refs/files-backend.c:2512:3: note: +1
                goto out;
                ^
/datasets/git/refs/files-backend.c:2517:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (update->type & REF_ISSYMREF) {
        ^
/datasets/git/refs/files-backend.c:2518:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (update->flags & REF_NO_DEREF) {
                ^
/datasets/git/refs/files-backend.c:2524:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!refs_resolve_ref_unsafe(&refs->base,
                        ^
/datasets/git/refs/files-backend.c:2527:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (update->flags & REF_HAVE_OLD) {
                                ^
/datasets/git/refs/files-backend.c:2532:6: note: +1
                                        goto out;
                                        ^
/datasets/git/refs/files-backend.c:2534:11: note: +1, nesting level increased to 3
                        } else if (check_old_oid(update, &lock->old_oid, err)) {
                               ^
/datasets/git/refs/files-backend.c:2536:5: note: +1
                                goto out;
                                ^
/datasets/git/refs/files-backend.c:2538:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/refs/files-backend.c:2549:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ret)
                        ^
/datasets/git/refs/files-backend.c:2552:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/refs/files-backend.c:2555:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (check_old_oid(update, &lock->old_oid, err)) {
                ^
/datasets/git/refs/files-backend.c:2557:4: note: +1
                        goto out;
                        ^
/datasets/git/refs/files-backend.c:2565:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (parent_update = update->parent_update;
                ^
/datasets/git/refs/files-backend.c:2573:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((update->flags & REF_HAVE_NEW) &&
        ^
/datasets/git/refs/files-backend.c:2574:38: note: +1
            !(update->flags & REF_DELETING) &&
                                            ^
/datasets/git/refs/files-backend.c:2576:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!(update->type & REF_ISSYMREF) &&
                ^
/datasets/git/refs/files-backend.c:2576:38: note: +1
                if (!(update->type & REF_ISSYMREF) &&
                                                   ^
/datasets/git/refs/files-backend.c:2582:10: note: +1, nesting level increased to 2
                } else if (write_ref_to_lockfile(
                       ^
/datasets/git/refs/files-backend.c:2598:4: note: +1
                        goto out;
                        ^
/datasets/git/refs/files-backend.c:2599:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/refs/files-backend.c:2603:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!(update->flags & REF_NEEDS_COMMIT)) {
        ^
/datasets/git/refs/files-backend.c:2609:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (close_ref_gently(lock)) {
                ^
/datasets/git/refs/files-backend.c:2613:4: note: +1
                        goto out;
                        ^
/datasets/git/refs/files-backend.c:2484:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int mustexist = (update->flags & REF_HAVE_OLD) &&
                         ^
/datasets/git/refs/files-backend.c:2484:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int mustexist = (update->flags & REF_HAVE_OLD) &&
                                         ^
/datasets/git/./refs/refs-internal.h:32:23: note: expanded from macro 'REF_HAVE_OLD'
#define REF_HAVE_OLD (1 << 3)
                      ^
/datasets/git/refs/files-backend.c:2487:19: warning: variable 'lock' is not initialized [cppcoreguidelines-init-variables]
        struct ref_lock *lock;
                         ^
                              = NULL
/datasets/git/refs/files-backend.c:2491:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((update->flags & REF_HAVE_NEW) && is_null_oid(&update->new_oid))
             ^
/datasets/git/refs/files-backend.c:2491:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((update->flags & REF_HAVE_NEW) && is_null_oid(&update->new_oid))
                             ^
/datasets/git/./refs/refs-internal.h:26:23: note: expanded from macro 'REF_HAVE_NEW'
#define REF_HAVE_NEW (1 << 2)
                      ^
/datasets/git/refs/files-backend.c:2491:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((update->flags & REF_HAVE_NEW) && is_null_oid(&update->new_oid))
                                                                            ^
                                                                             {
/datasets/git/refs/files-backend.c:2492:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                update->flags |= REF_DELETING;
                ^
/datasets/git/refs/files-backend.c:2492:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                update->flags |= REF_DELETING;
                                 ^
/datasets/git/refs/files-backend.c:32:23: note: expanded from macro 'REF_DELETING'
#define REF_DELETING (1 << 5)
                      ^
/datasets/git/refs/files-backend.c:2497:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret)
                        ^
                         {
/datasets/git/refs/files-backend.c:2506:9: warning: variable 'reason' is not initialized [cppcoreguidelines-init-variables]
                char *reason;
                      ^
                             = NULL
/datasets/git/refs/files-backend.c:2517:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (update->type & REF_ISSYMREF) {
            ^
/datasets/git/refs/files-backend.c:2518:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (update->flags & REF_NO_DEREF) {
                    ^
/datasets/git/refs/files-backend.c:2518:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (update->flags & REF_NO_DEREF) {
                                    ^
/datasets/git/./refs/../refs.h:631:23: note: expanded from macro 'REF_NO_DEREF'
#define REF_NO_DEREF (1 << 0)
                      ^
/datasets/git/refs/files-backend.c:2527:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (update->flags & REF_HAVE_OLD) {
                                    ^
/datasets/git/refs/files-backend.c:2527:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (update->flags & REF_HAVE_OLD) {
                                                    ^
/datasets/git/./refs/refs-internal.h:32:23: note: expanded from macro 'REF_HAVE_OLD'
#define REF_HAVE_OLD (1 << 3)
                      ^
/datasets/git/refs/files-backend.c:2549:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ret)
                                ^
                                 {
/datasets/git/refs/files-backend.c:2553:22: warning: variable 'parent_update' is not initialized [cppcoreguidelines-init-variables]
                struct ref_update *parent_update;
                                   ^
                                                 = NULL
/datasets/git/refs/files-backend.c:2565:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (parent_update = update->parent_update;
                ^
/datasets/git/refs/files-backend.c:2566:8: warning: backward branch (for loop) is ID-dependent due to variable reference to 'parent_update' and may cause performance degradation [altera-id-dependent-backward-branch]
                     parent_update;
                     ^
/datasets/git/refs/files-backend.c:2573:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((update->flags & REF_HAVE_NEW) &&
             ^
/datasets/git/refs/files-backend.c:2573:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((update->flags & REF_HAVE_NEW) &&
                             ^
/datasets/git/./refs/refs-internal.h:26:23: note: expanded from macro 'REF_HAVE_NEW'
#define REF_HAVE_NEW (1 << 2)
                      ^
/datasets/git/refs/files-backend.c:2574:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            !(update->flags & REF_DELETING) &&
              ^
/datasets/git/refs/files-backend.c:2574:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            !(update->flags & REF_DELETING) &&
                              ^
/datasets/git/refs/files-backend.c:32:23: note: expanded from macro 'REF_DELETING'
#define REF_DELETING (1 << 5)
                      ^
/datasets/git/refs/files-backend.c:2575:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            !(update->flags & REF_LOG_ONLY)) {
              ^
/datasets/git/refs/files-backend.c:2575:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            !(update->flags & REF_LOG_ONLY)) {
                              ^
/datasets/git/./refs/refs-internal.h:39:23: note: expanded from macro 'REF_LOG_ONLY'
#define REF_LOG_ONLY (1 << 7)
                      ^
/datasets/git/refs/files-backend.c:2576:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(update->type & REF_ISSYMREF) &&
                      ^
/datasets/git/refs/files-backend.c:2584:8: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                   update->flags & REF_SKIP_OID_VERIFICATION,
                                   ^
/datasets/git/refs/files-backend.c:2584:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
/datasets/git/refs/files-backend.c:2584:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                   update->flags & REF_SKIP_OID_VERIFICATION,
                                                   ^
/datasets/git/./refs/../refs.h:643:36: note: expanded from macro 'REF_SKIP_OID_VERIFICATION'
#define REF_SKIP_OID_VERIFICATION (1 << 10)
                                   ^
/datasets/git/refs/files-backend.c:2600:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        update->flags |= REF_NEEDS_COMMIT;
                        ^
/datasets/git/refs/files-backend.c:2600:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        update->flags |= REF_NEEDS_COMMIT;
                                         ^
/datasets/git/refs/files-backend.c:38:27: note: expanded from macro 'REF_NEEDS_COMMIT'
#define REF_NEEDS_COMMIT (1 << 6)
                          ^
/datasets/git/refs/files-backend.c:2603:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(update->flags & REF_NEEDS_COMMIT)) {
              ^
/datasets/git/refs/files-backend.c:2603:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(update->flags & REF_NEEDS_COMMIT)) {
                              ^
/datasets/git/refs/files-backend.c:38:27: note: expanded from macro 'REF_NEEDS_COMMIT'
#define REF_NEEDS_COMMIT (1 << 6)
                          ^
/datasets/git/refs/files-backend.c:2622:8: warning: accessing fields in struct 'files_transaction_backend_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct files_transaction_backend_data {
       ^
/datasets/git/refs/files-backend.c:2622:8: note: use "__attribute__((aligned(16)))" to align struct 'files_transaction_backend_data' to 16 bytes
/datasets/git/refs/files-backend.c:2634:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i;
               ^
                 = 0
/datasets/git/refs/files-backend.c:2634:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs/files-backend.c:2639:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < transaction->nr; i++) {
        ^
/datasets/git/refs/files-backend.c:2656:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (backend_data->packed_refs_locked)
                                                     ^
                                                      {
/datasets/git/refs/files-backend.c:2665:12: warning: function 'files_transaction_prepare' has cognitive complexity of 45 (threshold 25) [readability-function-cognitive-complexity]
static int files_transaction_prepare(struct ref_store *ref_store,
           ^
/datasets/git/refs/files-backend.c:2680:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(err);
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/refs/files-backend.c:2680:2: note: nesting level increased to 1
        assert(err);
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/refs/files-backend.c:2680:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(err);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/refs/files-backend.c:2680:2: note: +1, nesting level increased to 2
        assert(err);
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/refs/files-backend.c:2682:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!transaction->nr)
        ^
/datasets/git/refs/files-backend.c:2696:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < transaction->nr; i++) {
        ^
/datasets/git/refs/files-backend.c:2701:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((update->flags & REF_IS_PRUNING) &&
                ^
/datasets/git/refs/files-backend.c:2701:40: note: +1
                if ((update->flags & REF_IS_PRUNING) &&
                                                     ^
/datasets/git/refs/files-backend.c:2713:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ref_update_reject_duplicates(&affected_refnames, err)) {
        ^
/datasets/git/refs/files-backend.c:2715:3: note: +1
                goto cleanup;
                ^
/datasets/git/refs/files-backend.c:2740:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (head_ref && !(head_type & REF_ISSYMREF)) {
        ^
/datasets/git/refs/files-backend.c:2740:15: note: +1
        if (head_ref && !(head_type & REF_ISSYMREF)) {
                     ^
/datasets/git/refs/files-backend.c:2741:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                FREE_AND_NULL(head_ref);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/refs/files-backend.c:2752:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < transaction->nr; i++) {
        ^
/datasets/git/refs/files-backend.c:2757:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ret)
                ^
/datasets/git/refs/files-backend.c:2760:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (update->flags & REF_DELETING &&
                ^
/datasets/git/refs/files-backend.c:2761:39: note: +1
                    !(update->flags & REF_LOG_ONLY) &&
                                                    ^
/datasets/git/refs/files-backend.c:2767:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!packed_transaction) {
                        ^
/datasets/git/refs/files-backend.c:2770:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!packed_transaction) {
                                ^
/datasets/git/refs/files-backend.c:2772:6: note: +1
                                        goto cleanup;
                                        ^
/datasets/git/refs/files-backend.c:2787:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (packed_transaction) {
        ^
/datasets/git/refs/files-backend.c:2788:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (packed_refs_lock(refs->packed_ref_store, 0, err)) {
                ^
/datasets/git/refs/files-backend.c:2790:4: note: +1
                        goto cleanup;
                        ^
/datasets/git/refs/files-backend.c:2794:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (is_packed_transaction_needed(refs->packed_ref_store,
                ^
/datasets/git/refs/files-backend.c:2803:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ret) {
                        ^
/datasets/git/refs/files-backend.c:2807:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/refs/files-backend.c:2819:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ref_transaction_abort(packed_transaction, err)) {
                        ^
/datasets/git/refs/files-backend.c:2821:5: note: +1
                                goto cleanup;
                                ^
/datasets/git/refs/files-backend.c:2830:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ret)
        ^
/datasets/git/refs/files-backend.c:2832:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/refs/files-backend.c:2670:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                files_downcast(ref_store, REF_STORE_WRITE,
                                          ^
/datasets/git/./refs/refs-internal.h:516:27: note: expanded from macro 'REF_STORE_WRITE'
#define REF_STORE_WRITE         (1 << 1) /* can perform update operations */
                                 ^
/datasets/git/refs/files-backend.c:2672:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i;
               ^
                 = 0
/datasets/git/refs/files-backend.c:2672:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs/files-backend.c:2676:6: warning: variable 'head_type' is not initialized [cppcoreguidelines-init-variables]
        int head_type;
            ^
                      = 0
/datasets/git/refs/files-backend.c:2677:41: warning: variable 'backend_data' is not initialized [cppcoreguidelines-init-variables]
        struct files_transaction_backend_data *backend_data;
                                               ^
                                                            = NULL
/datasets/git/refs/files-backend.c:2682:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!transaction->nr)
                             ^
                              {
/datasets/git/refs/files-backend.c:2696:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < transaction->nr; i++) {
        ^
/datasets/git/refs/files-backend.c:2701:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((update->flags & REF_IS_PRUNING) &&
                     ^
/datasets/git/refs/files-backend.c:2701:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((update->flags & REF_IS_PRUNING) &&
                                     ^
/datasets/git/refs/files-backend.c:26:25: note: expanded from macro 'REF_IS_PRUNING'
#define REF_IS_PRUNING (1 << 4)
                        ^
/datasets/git/refs/files-backend.c:2702:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    !(update->flags & REF_NO_DEREF))
                      ^
/datasets/git/refs/files-backend.c:2702:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    !(update->flags & REF_NO_DEREF))
                                      ^
/datasets/git/./refs/../refs.h:631:23: note: expanded from macro 'REF_NO_DEREF'
#define REF_NO_DEREF (1 << 0)
                      ^
/datasets/git/refs/files-backend.c:2702:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !(update->flags & REF_NO_DEREF))
                                                    ^
                                                     {
/datasets/git/refs/files-backend.c:2740:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (head_ref && !(head_type & REF_ISSYMREF)) {
                          ^~~~~~~~~
/datasets/git/refs/files-backend.c:2741:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FREE_AND_NULL(head_ref);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/refs/files-backend.c:2752:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < transaction->nr; i++) {
        ^
/datasets/git/refs/files-backend.c:2757:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret)
                        ^
                         {
/datasets/git/refs/files-backend.c:2760:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (update->flags & REF_DELETING &&
                    ^
/datasets/git/refs/files-backend.c:2760:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (update->flags & REF_DELETING &&
                                    ^
/datasets/git/refs/files-backend.c:32:23: note: expanded from macro 'REF_DELETING'
#define REF_DELETING (1 << 5)
                      ^
/datasets/git/refs/files-backend.c:2761:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    !(update->flags & REF_LOG_ONLY) &&
                      ^
/datasets/git/refs/files-backend.c:2761:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    !(update->flags & REF_LOG_ONLY) &&
                                      ^
/datasets/git/./refs/refs-internal.h:39:23: note: expanded from macro 'REF_LOG_ONLY'
#define REF_LOG_ONLY (1 << 7)
                      ^
/datasets/git/refs/files-backend.c:2762:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    !(update->flags & REF_IS_PRUNING)) {
                      ^
/datasets/git/refs/files-backend.c:2762:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    !(update->flags & REF_IS_PRUNING)) {
                                      ^
/datasets/git/refs/files-backend.c:26:25: note: expanded from macro 'REF_IS_PRUNING'
#define REF_IS_PRUNING (1 << 4)
                        ^
/datasets/git/refs/files-backend.c:2781:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        REF_HAVE_NEW | REF_NO_DEREF,
                                        ^
/datasets/git/./refs/refs-internal.h:26:22: note: expanded from macro 'REF_HAVE_NEW'
#define REF_HAVE_NEW (1 << 2)
                     ^~~~~~~~
/datasets/git/refs/files-backend.c:2781:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        REF_HAVE_NEW | REF_NO_DEREF,
                                                       ^
/datasets/git/./refs/../refs.h:631:23: note: expanded from macro 'REF_NO_DEREF'
#define REF_NO_DEREF (1 << 0)
                      ^
/datasets/git/refs/files-backend.c:2830:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/refs/files-backend.c:2832:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/refs/files-backend.c:2838:12: warning: function 'files_transaction_finish' has cognitive complexity of 45 (threshold 25) [readability-function-cognitive-complexity]
static int files_transaction_finish(struct ref_store *ref_store,
           ^
/datasets/git/refs/files-backend.c:2851:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(err);
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/refs/files-backend.c:2851:2: note: nesting level increased to 1
        assert(err);
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/refs/files-backend.c:2851:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(err);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/refs/files-backend.c:2851:2: note: +1, nesting level increased to 2
        assert(err);
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/refs/files-backend.c:2853:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!transaction->nr) {
        ^
/datasets/git/refs/files-backend.c:2862:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < transaction->nr; i++) {
        ^
/datasets/git/refs/files-backend.c:2866:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (update->flags & REF_NEEDS_COMMIT ||
                ^
/datasets/git/refs/files-backend.c:2866:40: note: +1
                if (update->flags & REF_NEEDS_COMMIT ||
                                                     ^
/datasets/git/refs/files-backend.c:2868:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (files_log_ref_write(refs,
                        ^
/datasets/git/refs/files-backend.c:2882:5: note: +1
                                goto cleanup;
                                ^
/datasets/git/refs/files-backend.c:2885:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (update->flags & REF_NEEDS_COMMIT) {
                ^
/datasets/git/refs/files-backend.c:2887:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (commit_ref(lock)) {
                        ^
/datasets/git/refs/files-backend.c:2892:5: note: +1
                                goto cleanup;
                                ^
/datasets/git/refs/files-backend.c:2905:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < transaction->nr; i++) {
        ^
/datasets/git/refs/files-backend.c:2907:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (update->flags & REF_DELETING &&
                ^
/datasets/git/refs/files-backend.c:2908:39: note: +1
                    !(update->flags & REF_LOG_ONLY) &&
                                                    ^
/datasets/git/refs/files-backend.c:2912:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!unlink_or_warn(sb.buf))
                        ^
/datasets/git/refs/files-backend.c:2924:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (packed_transaction) {
        ^
/datasets/git/refs/files-backend.c:2929:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ret)
                ^
/datasets/git/refs/files-backend.c:2934:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < transaction->nr; i++) {
        ^
/datasets/git/refs/files-backend.c:2938:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (update->flags & REF_DELETING &&
                ^
/datasets/git/refs/files-backend.c:2938:36: note: +1
                if (update->flags & REF_DELETING &&
                                                 ^
/datasets/git/refs/files-backend.c:2941:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!(update->type & REF_ISPACKED) ||
                        ^
/datasets/git/refs/files-backend.c:2941:39: note: +1
                        if (!(update->type & REF_ISPACKED) ||
                                                           ^
/datasets/git/refs/files-backend.c:2946:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (unlink_or_msg(sb.buf, err)) {
                                ^
/datasets/git/refs/files-backend.c:2948:6: note: +1
                                        goto cleanup;
                                        ^
/datasets/git/refs/files-backend.c:2959:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < transaction->nr; i++) {
        ^
/datasets/git/refs/files-backend.c:2962:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (update->flags & REF_DELETED_RMDIR) {
                ^
/datasets/git/refs/files-backend.c:2844:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i;
               ^
                 = 0
/datasets/git/refs/files-backend.c:2844:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs/files-backend.c:2846:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/refs/files-backend.c:2847:41: warning: variable 'backend_data' is not initialized [cppcoreguidelines-init-variables]
        struct files_transaction_backend_data *backend_data;
                                               ^
                                                            = NULL
/datasets/git/refs/files-backend.c:2848:26: warning: variable 'packed_transaction' is not initialized [cppcoreguidelines-init-variables]
        struct ref_transaction *packed_transaction;
                                ^
                                                   = NULL
/datasets/git/refs/files-backend.c:2862:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < transaction->nr; i++) {
        ^
/datasets/git/refs/files-backend.c:2866:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (update->flags & REF_NEEDS_COMMIT ||
                    ^
/datasets/git/refs/files-backend.c:2866:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (update->flags & REF_NEEDS_COMMIT ||
                                    ^
/datasets/git/refs/files-backend.c:38:27: note: expanded from macro 'REF_NEEDS_COMMIT'
#define REF_NEEDS_COMMIT (1 << 6)
                          ^
/datasets/git/refs/files-backend.c:2867:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    update->flags & REF_LOG_ONLY) {
                    ^
/datasets/git/refs/files-backend.c:2867:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    update->flags & REF_LOG_ONLY) {
                                    ^
/datasets/git/./refs/refs-internal.h:39:23: note: expanded from macro 'REF_LOG_ONLY'
#define REF_LOG_ONLY (1 << 7)
                      ^
/datasets/git/refs/files-backend.c:2872:20: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                                update->msg, update->flags,
                                                             ^
/datasets/git/refs/files-backend.c:2885:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (update->flags & REF_NEEDS_COMMIT) {
                    ^
/datasets/git/refs/files-backend.c:2885:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (update->flags & REF_NEEDS_COMMIT) {
                                    ^
/datasets/git/refs/files-backend.c:38:27: note: expanded from macro 'REF_NEEDS_COMMIT'
#define REF_NEEDS_COMMIT (1 << 6)
                          ^
/datasets/git/refs/files-backend.c:2905:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < transaction->nr; i++) {
        ^
/datasets/git/refs/files-backend.c:2907:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (update->flags & REF_DELETING &&
                    ^
/datasets/git/refs/files-backend.c:2907:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (update->flags & REF_DELETING &&
                                    ^
/datasets/git/refs/files-backend.c:32:23: note: expanded from macro 'REF_DELETING'
#define REF_DELETING (1 << 5)
                      ^
/datasets/git/refs/files-backend.c:2908:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    !(update->flags & REF_LOG_ONLY) &&
                      ^
/datasets/git/refs/files-backend.c:2908:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    !(update->flags & REF_LOG_ONLY) &&
                                      ^
/datasets/git/./refs/refs-internal.h:39:23: note: expanded from macro 'REF_LOG_ONLY'
#define REF_LOG_ONLY (1 << 7)
                      ^
/datasets/git/refs/files-backend.c:2909:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    !(update->flags & REF_IS_PRUNING)) {
                      ^
/datasets/git/refs/files-backend.c:2909:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    !(update->flags & REF_IS_PRUNING)) {
                                      ^
/datasets/git/refs/files-backend.c:26:25: note: expanded from macro 'REF_IS_PRUNING'
#define REF_IS_PRUNING (1 << 4)
                        ^
/datasets/git/refs/files-backend.c:2912:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!unlink_or_warn(sb.buf))
                                                    ^
                                                     {
/datasets/git/refs/files-backend.c:2929:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret)
                        ^
                         {
/datasets/git/refs/files-backend.c:2934:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < transaction->nr; i++) {
        ^
/datasets/git/refs/files-backend.c:2938:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (update->flags & REF_DELETING &&
                    ^
/datasets/git/refs/files-backend.c:2938:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (update->flags & REF_DELETING &&
                                    ^
/datasets/git/refs/files-backend.c:32:23: note: expanded from macro 'REF_DELETING'
#define REF_DELETING (1 << 5)
                      ^
/datasets/git/refs/files-backend.c:2939:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    !(update->flags & REF_LOG_ONLY)) {
                      ^
/datasets/git/refs/files-backend.c:2939:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    !(update->flags & REF_LOG_ONLY)) {
                                      ^
/datasets/git/./refs/refs-internal.h:39:23: note: expanded from macro 'REF_LOG_ONLY'
#define REF_LOG_ONLY (1 << 7)
                      ^
/datasets/git/refs/files-backend.c:2940:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        update->flags |= REF_DELETED_RMDIR;
                        ^
/datasets/git/refs/files-backend.c:2940:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        update->flags |= REF_DELETED_RMDIR;
                                         ^
/datasets/git/refs/files-backend.c:50:28: note: expanded from macro 'REF_DELETED_RMDIR'
#define REF_DELETED_RMDIR (1 << 9)
                           ^
/datasets/git/refs/files-backend.c:2941:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!(update->type & REF_ISPACKED) ||
                              ^
/datasets/git/refs/files-backend.c:2942:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            update->type & REF_ISSYMREF) {
                            ^
/datasets/git/refs/files-backend.c:2959:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < transaction->nr; i++) {
        ^
/datasets/git/refs/files-backend.c:2962:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (update->flags & REF_DELETED_RMDIR) {
                    ^
/datasets/git/refs/files-backend.c:2962:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (update->flags & REF_DELETED_RMDIR) {
                                    ^
/datasets/git/refs/files-backend.c:50:28: note: expanded from macro 'REF_DELETED_RMDIR'
#define REF_DELETED_RMDIR (1 << 9)
                           ^
/datasets/git/refs/files-backend.c:3004:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                files_downcast(ref_store, REF_STORE_WRITE,
                                          ^
/datasets/git/./refs/refs-internal.h:516:27: note: expanded from macro 'REF_STORE_WRITE'
#define REF_STORE_WRITE         (1 << 1) /* can perform update operations */
                                 ^
/datasets/git/refs/files-backend.c:3006:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i;
               ^
                 = 0
/datasets/git/refs/files-backend.c:3006:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs/files-backend.c:3013:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (transaction->state != REF_TRANSACTION_OPEN)
                                                       ^
                                                        {
/datasets/git/refs/files-backend.c:3017:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < transaction->nr; i++)
        ^
/datasets/git/refs/files-backend.c:3017:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < transaction->nr; i++)
                                             ^
                                              {
/datasets/git/refs/files-backend.c:3039:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                 &affected_refnames))
                                                     ^
                                                      {
/datasets/git/refs/files-backend.c:3048:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < transaction->nr; i++) {
        ^
/datasets/git/refs/files-backend.c:3051:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((update->flags & REF_HAVE_OLD) &&
                     ^
/datasets/git/refs/files-backend.c:3051:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((update->flags & REF_HAVE_OLD) &&
                                     ^
/datasets/git/./refs/refs-internal.h:32:23: note: expanded from macro 'REF_HAVE_OLD'
#define REF_HAVE_OLD (1 << 3)
                      ^
/datasets/git/refs/files-backend.c:3052:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !is_null_oid(&update->old_oid))
                                                   ^
                                                    {
/datasets/git/refs/files-backend.c:3066:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                           update->flags & ~REF_HAVE_OLD,
                                           ^               ~~~~~~~~~~~~~
/datasets/git/refs/files-backend.c:3066:25: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                                           update->flags & ~REF_HAVE_OLD,
                                                           ^
/datasets/git/refs/files-backend.c:3066:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                           update->flags & ~REF_HAVE_OLD,
                                                            ^
/datasets/git/./refs/refs-internal.h:32:23: note: expanded from macro 'REF_HAVE_OLD'
#define REF_HAVE_OLD (1 << 3)
                      ^
/datasets/git/refs/files-backend.c:3082:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (packed_transaction)
                               ^
                                {
/datasets/git/refs/files-backend.c:3089:8: warning: accessing fields in struct 'expire_reflog_cb' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct expire_reflog_cb {
       ^
/datasets/git/refs/files-backend.c:3089:8: note: use "__attribute__((aligned(128)))" to align struct 'expire_reflog_cb' to 128 bytes
/datasets/git/refs/files-backend.c:3099:55: warning: parameter name 'tz' is too short, expected at least 3 characters [readability-identifier-length]
                             const char *email, timestamp_t timestamp, int tz,
                                                                           ^
/datasets/git/refs/files-backend.c:3102:27: warning: variable name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
        struct expire_reflog_cb *cb = cb_data;
                                 ^
/datasets/git/refs/files-backend.c:3103:33: warning: variable name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
        reflog_expiry_should_prune_fn *fn = cb->should_prune_fn;
                                       ^
/datasets/git/refs/files-backend.c:3105:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cb->rewrite)
                        ^
                         {
/datasets/git/refs/files-backend.c:3108:67: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fn(ooid, noid, email, timestamp, tz, message, cb->policy_cb))
                                                                         ^
                                                                          {
/datasets/git/refs/files-backend.c:3111:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cb->dry_run)
                        ^
                         {
/datasets/git/refs/files-backend.c:3114:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(cb->newlog, "%s %s %s %"PRItime" %+05d\t%s", oid_to_hex(ooid),
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/files-backend.c:3114:2: note: cast the expression to void to silence this warning
/datasets/git/refs/files-backend.c:3130:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                files_downcast(ref_store, REF_STORE_WRITE, "reflog_expire");
                                          ^
/datasets/git/./refs/refs-internal.h:516:27: note: expanded from macro 'REF_STORE_WRITE'
#define REF_STORE_WRITE         (1 << 1) /* can perform update operations */
                                 ^
/datasets/git/refs/files-backend.c:3132:26: warning: variable name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
        struct expire_reflog_cb cb;
                                ^
/datasets/git/refs/files-backend.c:3133:19: warning: variable 'lock' is not initialized [cppcoreguidelines-init-variables]
        struct ref_lock *lock;
                         ^
                              = NULL
/datasets/git/refs/files-backend.c:3135:8: warning: variable 'log_file' is not initialized [cppcoreguidelines-init-variables]
        char *log_file;
              ^
                       = NULL
/datasets/git/refs/files-backend.c:3138:26: warning: variable 'oid' is not initialized [cppcoreguidelines-init-variables]
        const struct object_id *oid;
                                ^
                                    = NULL
/datasets/git/refs/files-backend.c:3140:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&cb, 0, sizeof(cb));
        ^~~~~~
/datasets/git/refs/files-backend.c:3140:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&cb, 0, sizeof(cb));
        ^~~~~~
/datasets/git/refs/files-backend.c:3141:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        cb.rewrite = !!(expire_flags & EXPIRE_REFLOGS_REWRITE);
                        ^              ~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/files-backend.c:3142:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        cb.dry_run = !!(expire_flags & EXPIRE_REFLOGS_DRY_RUN);
                        ^              ~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/files-backend.c:3196:44: warning: function is not thread safe [concurrency-mt-unsafe]
                              get_lock_file_path(&reflog_lock), strerror(errno));
                                                                ^
/datasets/git/refs/files-backend.c:3215:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((expire_flags & EXPIRE_REFLOGS_UPDATE_REF) &&
                     ^              ~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/files-backend.c:3217:8: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
                        int type;
                            ^
                                 = 0
/datasets/git/refs/files-backend.c:3218:16: warning: variable 'ref' is not initialized [cppcoreguidelines-init-variables]
                        const char *ref;
                                    ^
                                        = NULL
/datasets/git/refs/files-backend.c:3223:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        update = !!(ref && !(type & REF_ISSYMREF));
                                             ^~~~
/datasets/git/refs/files-backend.c:3227:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        status |= error("couldn't write %s: %s", log_file,
                        ^~~~~~
/datasets/git/refs/files-backend.c:3228:6: warning: function is not thread safe [concurrency-mt-unsafe]
                                        strerror(errno));
                                        ^
/datasets/git/refs/files-backend.c:3235:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        status |= error("couldn't write %s",
                        ^~~~~~
/datasets/git/refs/files-backend.c:3239:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        status |= error("unable to write reflog '%s' (%s)",
                        ^~~~~~
/datasets/git/refs/files-backend.c:3240:16: warning: function is not thread safe [concurrency-mt-unsafe]
                                        log_file, strerror(errno));
                                                  ^
/datasets/git/refs/files-backend.c:3242:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        status |= error("couldn't set %s", lock->ref_name);
                        ^~~~~~
/datasets/git/refs/files-backend.c:3259:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                files_downcast(ref_store, REF_STORE_WRITE, "init_db");
                                          ^
/datasets/git/./refs/refs-internal.h:516:27: note: expanded from macro 'REF_STORE_WRITE'
#define REF_STORE_WRITE         (1 << 1) /* can perform update operations */
                                 ^
/datasets/git/refs/files-backend.c:3260:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/refs/files-backend.c:3276:23: warning: variable 'refs_be_files' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
struct ref_storage_be refs_be_files = {
                      ^
/datasets/git/refs/iterator.c:7:1: warning: #includes are not sorted properly [llvm-include-order]
#include "refs.h"
^        ~~~~~~~~
         "iterator.h"
/datasets/git/refs/iterator.c:13:9: warning: Access to field 'vtable' results in a dereference of a null pointer (loaded from variable 'ref_iterator') [clang-analyzer-core.NullDereference]
        return ref_iterator->vtable->advance(ref_iterator);
               ^
/datasets/git/refs/iterator.c:107:6: note: Assuming field 'current' is null
        if (!iter->current) {
            ^~~~~~~~~~~~~~
/datasets/git/refs/iterator.c:107:2: note: Taking true branch
        if (!iter->current) {
        ^
/datasets/git/refs/iterator.c:109:7: note: Assuming the condition is false
                if ((ok = ref_iterator_advance(iter->iter0)) != ITER_OK) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/iterator.c:109:3: note: Taking false branch
                if ((ok = ref_iterator_advance(iter->iter0)) != ITER_OK) {
                ^
/datasets/git/refs/iterator.c:114:7: note: Assuming the condition is true
                if ((ok = ref_iterator_advance(iter->iter1)) != ITER_OK) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/iterator.c:114:3: note: Taking true branch
                if ((ok = ref_iterator_advance(iter->iter1)) != ITER_OK) {
                ^
/datasets/git/refs/iterator.c:116:8: note: Assuming the condition is false
                        if (ok == ITER_ERROR)
                            ^~~~~~~~~~~~~~~~
/datasets/git/refs/iterator.c:116:4: note: Taking false branch
                        if (ok == ITER_ERROR)
                        ^
/datasets/git/refs/iterator.c:132:2: note: Loop condition is true.  Entering loop body
        while (1) {
        ^
/datasets/git/refs/iterator.c:137:7: note: Assuming 'selection' is not equal to ITER_SELECT_DONE
                if (selection == ITER_SELECT_DONE) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/iterator.c:137:3: note: Taking false branch
                if (selection == ITER_SELECT_DONE) {
                ^
/datasets/git/refs/iterator.c:139:14: note: Assuming 'selection' is not equal to ITER_SELECT_ERROR
                } else if (selection == ITER_SELECT_ERROR) {
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/iterator.c:139:10: note: Taking false branch
                } else if (selection == ITER_SELECT_ERROR) {
                       ^
/datasets/git/refs/iterator.c:144:7: note: Assuming the condition is true
                if ((selection & ITER_CURRENT_SELECTION_MASK) == 0) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/iterator.c:144:3: note: Taking true branch
                if ((selection & ITER_CURRENT_SELECTION_MASK) == 0) {
                ^
/datasets/git/refs/iterator.c:152:7: note: Assuming the condition is true
                if (selection & ITER_SKIP_SECONDARY) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/iterator.c:152:3: note: Taking true branch
                if (selection & ITER_SKIP_SECONDARY) {
                ^
/datasets/git/refs/iterator.c:153:35: note: Passing null pointer value via 1st parameter 'ref_iterator'
                        if ((ok = ref_iterator_advance(*secondary)) != ITER_OK) {
                                                       ^~~~~~~~~~
/datasets/git/refs/iterator.c:153:14: note: Calling 'ref_iterator_advance'
                        if ((ok = ref_iterator_advance(*secondary)) != ITER_OK) {
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/iterator.c:13:9: note: Access to field 'vtable' results in a dereference of a null pointer (loaded from variable 'ref_iterator')
        return ref_iterator->vtable->advance(ref_iterator);
               ^~~~~~~~~~~~
/datasets/git/refs/iterator.c:45:8: warning: accessing fields in struct 'empty_ref_iterator' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct empty_ref_iterator {
       ^
/datasets/git/refs/iterator.c:45:8: note: use "__attribute__((aligned(64)))" to align struct 'empty_ref_iterator' to 64 bytes
/datasets/git/refs/iterator.c:66:35: warning: variable 'empty_ref_iterator_vtable' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct ref_iterator_vtable empty_ref_iterator_vtable = {
                                  ^
/datasets/git/refs/iterator.c:86:8: warning: accessing fields in struct 'merge_ref_iterator' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct merge_ref_iterator {
       ^
/datasets/git/refs/iterator.c:86:8: note: use "__attribute__((aligned(128)))" to align struct 'merge_ref_iterator' to 128 bytes
/datasets/git/refs/iterator.c:101:12: warning: function 'merge_ref_iterator_advance' has cognitive complexity of 35 (threshold 25) [readability-function-cognitive-complexity]
static int merge_ref_iterator_advance(struct ref_iterator *ref_iterator)
           ^
/datasets/git/refs/iterator.c:107:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!iter->current) {
        ^
/datasets/git/refs/iterator.c:109:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((ok = ref_iterator_advance(iter->iter0)) != ITER_OK) {
                ^
/datasets/git/refs/iterator.c:111:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ok == ITER_ERROR)
                        ^
/datasets/git/refs/iterator.c:114:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((ok = ref_iterator_advance(iter->iter1)) != ITER_OK) {
                ^
/datasets/git/refs/iterator.c:116:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ok == ITER_ERROR)
                        ^
/datasets/git/refs/iterator.c:119:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/refs/iterator.c:124:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((ok = ref_iterator_advance(*iter->current)) != ITER_OK) {
                ^
/datasets/git/refs/iterator.c:126:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ok == ITER_ERROR)
                        ^
/datasets/git/refs/iterator.c:132:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (1) {
        ^
/datasets/git/refs/iterator.c:137:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (selection == ITER_SELECT_DONE) {
                ^
/datasets/git/refs/iterator.c:139:10: note: +1, nesting level increased to 2
                } else if (selection == ITER_SELECT_ERROR) {
                       ^
/datasets/git/refs/iterator.c:144:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((selection & ITER_CURRENT_SELECTION_MASK) == 0) {
                ^
/datasets/git/refs/iterator.c:147:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/refs/iterator.c:152:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (selection & ITER_SKIP_SECONDARY) {
                ^
/datasets/git/refs/iterator.c:153:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if ((ok = ref_iterator_advance(*secondary)) != ITER_OK) {
                        ^
/datasets/git/refs/iterator.c:155:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (ok == ITER_ERROR)
                                ^
/datasets/git/refs/iterator.c:160:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (selection & ITER_YIELD_CURRENT) {
                ^
/datasets/git/refs/iterator.c:105:6: warning: variable 'ok' is not initialized [cppcoreguidelines-init-variables]
        int ok;
            ^
               = 0
/datasets/git/refs/iterator.c:105:6: warning: variable name 'ok' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs/iterator.c:109:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                if ((ok = ref_iterator_advance(iter->iter0)) != ITER_OK) {
                     ^
/datasets/git/refs/iterator.c:109:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/refs/iterator.c:109:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/refs/iterator.c:111:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ok == ITER_ERROR)
                                             ^
                                              {
/datasets/git/refs/iterator.c:114:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                if ((ok = ref_iterator_advance(iter->iter1)) != ITER_OK) {
                     ^
/datasets/git/refs/iterator.c:114:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/refs/iterator.c:114:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/refs/iterator.c:116:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ok == ITER_ERROR)
                                             ^
                                              {
/datasets/git/refs/iterator.c:124:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                if ((ok = ref_iterator_advance(*iter->current)) != ITER_OK) {
                     ^
/datasets/git/refs/iterator.c:124:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/refs/iterator.c:124:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/refs/iterator.c:126:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ok == ITER_ERROR)
                                             ^
                                              {
/datasets/git/refs/iterator.c:132:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/refs/iterator.c:133:25: warning: variable 'secondary' is not initialized [cppcoreguidelines-init-variables]
                struct ref_iterator **secondary;
                                      ^
                                                = NULL
/datasets/git/refs/iterator.c:139:5: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                } else if (selection == ITER_SELECT_ERROR) {
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/iterator.c:144:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((selection & ITER_CURRENT_SELECTION_MASK) == 0) {
                     ^~~~~~~~~
/datasets/git/refs/iterator.c:152:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (selection & ITER_SKIP_SECONDARY) {
                    ^~~~~~~~~
/datasets/git/refs/iterator.c:153:9: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                        if ((ok = ref_iterator_advance(*secondary)) != ITER_OK) {
                             ^
/datasets/git/refs/iterator.c:153:9: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/refs/iterator.c:153:9: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/refs/iterator.c:155:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (ok == ITER_ERROR)
                                                     ^
                                                      {
/datasets/git/refs/iterator.c:160:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (selection & ITER_YIELD_CURRENT) {
                    ^~~~~~~~~
/datasets/git/refs/iterator.c:161:25: warning: Access to field 'refname' results in a dereference of a null pointer [clang-analyzer-core.NullDereference]
                        iter->base.refname = (*iter->current)->refname;
                                             ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/iterator.c:107:6: note: Assuming field 'current' is null
        if (!iter->current) {
            ^~~~~~~~~~~~~~
/datasets/git/refs/iterator.c:107:2: note: Taking true branch
        if (!iter->current) {
        ^
/datasets/git/refs/iterator.c:109:7: note: Assuming the condition is false
                if ((ok = ref_iterator_advance(iter->iter0)) != ITER_OK) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/iterator.c:109:3: note: Taking false branch
                if ((ok = ref_iterator_advance(iter->iter0)) != ITER_OK) {
                ^
/datasets/git/refs/iterator.c:114:7: note: Assuming the condition is true
                if ((ok = ref_iterator_advance(iter->iter1)) != ITER_OK) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/iterator.c:114:3: note: Taking true branch
                if ((ok = ref_iterator_advance(iter->iter1)) != ITER_OK) {
                ^
/datasets/git/refs/iterator.c:115:4: note: Null pointer value stored to field 'iter1'
                        iter->iter1 = NULL;
                        ^~~~~~~~~~~~~~~~~~
/datasets/git/refs/iterator.c:116:8: note: Assuming the condition is false
                        if (ok == ITER_ERROR)
                            ^~~~~~~~~~~~~~~~
/datasets/git/refs/iterator.c:116:4: note: Taking false branch
                        if (ok == ITER_ERROR)
                        ^
/datasets/git/refs/iterator.c:132:2: note: Loop condition is true.  Entering loop body
        while (1) {
        ^
/datasets/git/refs/iterator.c:137:7: note: Assuming 'selection' is not equal to ITER_SELECT_DONE
                if (selection == ITER_SELECT_DONE) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/iterator.c:137:3: note: Taking false branch
                if (selection == ITER_SELECT_DONE) {
                ^
/datasets/git/refs/iterator.c:139:14: note: Assuming 'selection' is not equal to ITER_SELECT_ERROR
                } else if (selection == ITER_SELECT_ERROR) {
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/iterator.c:139:10: note: Taking false branch
                } else if (selection == ITER_SELECT_ERROR) {
                       ^
/datasets/git/refs/iterator.c:144:7: note: Assuming the condition is false
                if ((selection & ITER_CURRENT_SELECTION_MASK) == 0) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/iterator.c:144:3: note: Taking false branch
                if ((selection & ITER_CURRENT_SELECTION_MASK) == 0) {
                ^
/datasets/git/refs/iterator.c:152:7: note: Assuming the condition is false
                if (selection & ITER_SKIP_SECONDARY) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/iterator.c:152:3: note: Taking false branch
                if (selection & ITER_SKIP_SECONDARY) {
                ^
/datasets/git/refs/iterator.c:160:7: note: Assuming the condition is true
                if (selection & ITER_YIELD_CURRENT) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/iterator.c:160:3: note: Taking true branch
                if (selection & ITER_YIELD_CURRENT) {
                ^
/datasets/git/refs/iterator.c:161:25: note: Access to field 'refname' results in a dereference of a null pointer
                        iter->base.refname = (*iter->current)->refname;
                                             ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/iterator.c:189:6: warning: variable name 'ok' is too short, expected at least 3 characters [readability-identifier-length]
        int ok = ITER_DONE;
            ^
/datasets/git/refs/iterator.c:192:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ref_iterator_abort(iter->iter0) != ITER_DONE)
                                                                 ^
                                                                  {
/datasets/git/refs/iterator.c:196:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ref_iterator_abort(iter->iter1) != ITER_DONE)
                                                                 ^
                                                                  {
/datasets/git/refs/iterator.c:203:35: warning: variable 'merge_ref_iterator_vtable' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct ref_iterator_vtable merge_ref_iterator_vtable = {
                                  ^
/datasets/git/refs/iterator.c:243:6: warning: variable 'cmp' is not initialized [cppcoreguidelines-init-variables]
        int cmp;
            ^
                = 0
/datasets/git/refs/iterator.c:245:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!back)
                  ^
                   {
/datasets/git/refs/iterator.c:247:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (!front)
        ^~~~~~~~~~~~~~~~
/datasets/git/refs/iterator.c:247:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!front)
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs/iterator.c:252:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cmp < 0)
                    ^
                     {
/datasets/git/refs/iterator.c:254:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (cmp > 0)
        ^~~~~~~~~~~~~~~~~
/datasets/git/refs/iterator.c:254:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (cmp > 0)
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs/iterator.c:256:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs/iterator.c:271:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else if (is_empty_ref_iterator(back)) {
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/iterator.c:282:8: warning: accessing fields in struct 'prefix_ref_iterator' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct prefix_ref_iterator {
       ^
/datasets/git/refs/iterator.c:282:8: note: use "__attribute__((aligned(64)))" to align struct 'prefix_ref_iterator' to 64 bytes
/datasets/git/refs/iterator.c:293:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*prefix) {
        ^
/datasets/git/refs/iterator.c:294:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*refname != *prefix)
                                        ^
                                         {
/datasets/git/refs/iterator.c:308:6: warning: variable 'ok' is not initialized [cppcoreguidelines-init-variables]
        int ok;
            ^
               = 0
/datasets/git/refs/iterator.c:308:6: warning: variable name 'ok' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs/iterator.c:310:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((ok = ref_iterator_advance(iter->iter0)) == ITER_OK) {
        ^
/datasets/git/refs/iterator.c:310:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'ok' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((ok = ref_iterator_advance(iter->iter0)) == ITER_OK) {
               ^
/datasets/git/refs/iterator.c:313:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cmp < 0)
                            ^
                             {
/datasets/git/refs/iterator.c:325:6: warning: do not use 'else' after 'break' [llvm-else-after-return,readability-else-after-return]
                        } else {
                          ^~~~~~
/datasets/git/refs/iterator.c:340:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (strlen(iter->iter0->refname) <= iter->trim)
                                                                       ^
                                                                        {
/datasets/git/refs/iterator.c:353:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ref_iterator_abort(ref_iterator) != ITER_DONE)
                                                          ^
                                                           {
/datasets/git/refs/iterator.c:371:6: warning: variable name 'ok' is too short, expected at least 3 characters [readability-identifier-length]
        int ok = ITER_DONE;
            ^
/datasets/git/refs/iterator.c:373:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (iter->iter0)
                        ^
                         {
/datasets/git/refs/iterator.c:380:35: warning: variable 'prefix_ref_iterator_vtable' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct ref_iterator_vtable prefix_ref_iterator_vtable = {
                                  ^
/datasets/git/refs/iterator.c:390:30: warning: variable 'iter' is not initialized [cppcoreguidelines-init-variables]
        struct prefix_ref_iterator *iter;
                                    ^
                                         = NULL
/datasets/git/refs/iterator.c:391:23: warning: variable 'ref_iterator' is not initialized [cppcoreguidelines-init-variables]
        struct ref_iterator *ref_iterator;
                             ^
                                          = NULL
/datasets/git/refs/iterator.c:393:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!*prefix && !trim)
                              ^
                               {
/datasets/git/refs/iterator.c:408:22: warning: variable 'current_ref_iter' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
struct ref_iterator *current_ref_iter = NULL;
                     ^
/datasets/git/refs/iterator.c:408:22: warning: variable 'current_ref_iter' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/refs/iterator.c:410:54: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int do_for_each_repo_ref_iterator(struct repository *r, struct ref_iterator *iter,
                                                     ^
/datasets/git/refs/iterator.c:411:24: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
                                  each_repo_ref_fn fn, void *cb_data)
                                                   ^
/datasets/git/refs/iterator.c:413:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int retval = 0, ok;
        ^~~~~~~~~~~~~~~~~~~
/datasets/git/refs/iterator.c:413:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/refs/iterator.c:413:18: warning: variable 'ok' is not initialized [cppcoreguidelines-init-variables]
        int retval = 0, ok;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs/iterator.c:413:18: warning: variable name 'ok' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs/iterator.c:417:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((ok = ref_iterator_advance(iter)) == ITER_OK) {
        ^
/datasets/git/refs/iterator.c:417:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'ok' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((ok = ref_iterator_advance(iter)) == ITER_OK) {
               ^
/datasets/git/refs/iterator.c:418:44: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                retval = fn(r, iter->refname, iter->oid, iter->flags, cb_data);
                                                         ^
/datasets/git/refs/iterator.c:432:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ok == ITER_ERROR)
                             ^
                              {
/datasets/git/refs/packed-backend.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "../config.h"
^        ~~~~~~~~~~~~~
         "../chdir-notify.h"
/datasets/git/refs/packed-backend.c:36:27: warning: variable 'mmap_strategy' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static enum mmap_strategy mmap_strategy = MMAP_OK;
                          ^
/datasets/git/refs/packed-backend.c:61:8: warning: accessing fields in struct 'snapshot' is inefficient due to padding; only needs 52 bytes but is using 56 bytes [altera-struct-pack-align]
struct snapshot {
       ^
/datasets/git/refs/packed-backend.c:61:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'snapshot'
/datasets/git/refs/packed-backend.c:61:8: warning: accessing fields in struct 'snapshot' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct snapshot {
       ^
/datasets/git/refs/packed-backend.c:61:8: note: use "__attribute__((aligned(64)))" to align struct 'snapshot' to 64 bytes
/datasets/git/refs/packed-backend.c:126:8: warning: accessing fields in struct 'packed_ref_store' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct packed_ref_store {
       ^
/datasets/git/refs/packed-backend.c:126:8: note: use "__attribute__((aligned(64)))" to align struct 'packed_ref_store' to 64 bytes
/datasets/git/refs/packed-backend.c:170:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (munmap(snapshot->buf, snapshot->eof - snapshot->buf))
                                                                         ^
                                                                          {
/datasets/git/refs/packed-backend.c:191:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else {
          ^~~~~~
/datasets/git/refs/packed-backend.c:202:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/refs/packed-backend.c:223:27: warning: variable 'refs' is not initialized [cppcoreguidelines-init-variables]
        struct packed_ref_store *refs;
                                 ^
                                      = NULL
/datasets/git/refs/packed-backend.c:225:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ref_store->be != &refs_be_packed)
                                             ^
                                              {
/datasets/git/refs/packed-backend.c:231:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((refs->store_flags & required_flags) != required_flags)
                                                                   ^
                                                                    {
/datasets/git/refs/packed-backend.c:249:21: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                                           const char *p, size_t len)
                                                       ^
/datasets/git/refs/packed-backend.c:251:12: warning: 80 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (len < 80)
                  ^
/datasets/git/refs/packed-backend.c:251:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len < 80)
                     ^
                      {
/datasets/git/refs/packed-backend.c:253:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/refs/packed-backend.c:258:23: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                                      const char *p, size_t len)
                                                  ^
/datasets/git/refs/packed-backend.c:262:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!eol)
                 ^
                  {
/datasets/git/refs/packed-backend.c:264:21: warning: 80 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        else if (eol - p < 80)
                           ^
/datasets/git/refs/packed-backend.c:264:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (eol - p < 80)
                              ^
                               {
/datasets/git/refs/packed-backend.c:266:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/refs/packed-backend.c:271:8: warning: accessing fields in struct 'snapshot_record' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct snapshot_record {
       ^
/datasets/git/refs/packed-backend.c:271:8: note: use "__attribute__((aligned(16)))" to align struct 'snapshot_record' to 16 bytes
/datasets/git/refs/packed-backend.c:276:47: warning: parameter name 'v1' is too short, expected at least 3 characters [readability-identifier-length]
static int cmp_packed_ref_records(const void *v1, const void *v2)
                                              ^
/datasets/git/refs/packed-backend.c:276:63: warning: parameter name 'v2' is too short, expected at least 3 characters [readability-identifier-length]
static int cmp_packed_ref_records(const void *v1, const void *v2)
                                                              ^
/datasets/git/refs/packed-backend.c:278:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const struct snapshot_record *e1 = v1, *e2 = v2;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/packed-backend.c:278:32: warning: variable name 'e1' is too short, expected at least 3 characters [readability-identifier-length]
        const struct snapshot_record *e1 = v1, *e2 = v2;
                                      ^
/datasets/git/refs/packed-backend.c:278:42: warning: variable name 'e2' is too short, expected at least 3 characters [readability-identifier-length]
        const struct snapshot_record *e1 = v1, *e2 = v2;
                                                ^
/datasets/git/refs/packed-backend.c:279:14: warning: variable name 'r1' is too short, expected at least 3 characters [readability-identifier-length]
        const char *r1 = e1->start + the_hash_algo->hexsz + 1;
                    ^
/datasets/git/refs/packed-backend.c:280:14: warning: variable name 'r2' is too short, expected at least 3 characters [readability-identifier-length]
        const char *r2 = e2->start + the_hash_algo->hexsz + 1;
                    ^
/datasets/git/refs/packed-backend.c:282:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/refs/packed-backend.c:283:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*r1 == '\n')
                                ^
                                 {
/datasets/git/refs/packed-backend.c:286:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (*r2 == '\n')
                                        ^
                                         {
/datasets/git/refs/packed-backend.c:288:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                        else
                        ^~~~
                                                        return (unsigned char)*r1 < (unsigned char)*r2 ? -1 : +1
/datasets/git/refs/packed-backend.c:288:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs/packed-backend.c:300:34: warning: 2 adjacent parameters of 'cmp_record_to_refname' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int cmp_record_to_refname(const char *rec, const char *refname)
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/packed-backend.c:300:46: note: the first parameter in the range is 'rec'
static int cmp_record_to_refname(const char *rec, const char *refname)
                                             ^~~
/datasets/git/refs/packed-backend.c:300:63: note: the last parameter in the range is 'refname'
static int cmp_record_to_refname(const char *rec, const char *refname)
                                                              ^~~~~~~
/datasets/git/refs/packed-backend.c:302:14: warning: variable name 'r1' is too short, expected at least 3 characters [readability-identifier-length]
        const char *r1 = rec + the_hash_algo->hexsz + 1;
                    ^
/datasets/git/refs/packed-backend.c:303:14: warning: variable name 'r2' is too short, expected at least 3 characters [readability-identifier-length]
        const char *r2 = refname;
                    ^
/datasets/git/refs/packed-backend.c:305:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/refs/packed-backend.c:306:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*r1 == '\n')
                                ^
                                 {
/datasets/git/refs/packed-backend.c:308:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!*r2)
                         ^
                          {
/datasets/git/refs/packed-backend.c:310:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*r1 != *r2)
                               ^
                                {
/datasets/git/refs/packed-backend.c:321:13: warning: function 'sort_snapshot' has cognitive complexity of 34 (threshold 25) [readability-function-cognitive-complexity]
static void sort_snapshot(struct snapshot *snapshot)
            ^
/datasets/git/refs/packed-backend.c:333:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (pos == eof)
        ^
/datasets/git/refs/packed-backend.c:342:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        ALLOC_GROW(records, len / 80 + 20, alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/refs/packed-backend.c:342:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        ALLOC_GROW(records, len / 80 + 20, alloc);
        ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/refs/packed-backend.c:342:2: note: +3, including nesting penalty of 2, nesting level increased to 3
        ALLOC_GROW(records, len / 80 + 20, alloc);
        ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/refs/packed-backend.c:342:2: note: +1, nesting level increased to 3
        ALLOC_GROW(records, len / 80 + 20, alloc);
        ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/refs/packed-backend.c:344:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (pos < eof) {
        ^
/datasets/git/refs/packed-backend.c:346:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!eol)
                ^
/datasets/git/refs/packed-backend.c:349:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (eol - pos < the_hash_algo->hexsz + 2)
                ^
/datasets/git/refs/packed-backend.c:353:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (eol < eof && *eol == '^') {
                ^
/datasets/git/refs/packed-backend.c:353:17: note: +1
                if (eol < eof && *eol == '^') {
                              ^
/datasets/git/refs/packed-backend.c:361:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!eol)
                        ^
/datasets/git/refs/packed-backend.c:367:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                ALLOC_GROW(records, nr + 1, alloc);
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/refs/packed-backend.c:367:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                ALLOC_GROW(records, nr + 1, alloc);
                ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/refs/packed-backend.c:367:3: note: +4, including nesting penalty of 3, nesting level increased to 4
                ALLOC_GROW(records, nr + 1, alloc);
                ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/refs/packed-backend.c:367:3: note: +1, nesting level increased to 4
                ALLOC_GROW(records, nr + 1, alloc);
                ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/refs/packed-backend.c:372:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (sorted &&
                ^
/datasets/git/refs/packed-backend.c:373:14: note: +1
                    nr > 1 &&
                           ^
/datasets/git/refs/packed-backend.c:381:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (sorted)
        ^
/datasets/git/refs/packed-backend.c:393:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (dst = new_buffer, i = 0; i < nr; i++) {
        ^
/datasets/git/refs/packed-backend.c:324:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t alloc = 0, nr = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/packed-backend.c:324:20: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
        size_t alloc = 0, nr = 0;
                          ^
/datasets/git/refs/packed-backend.c:326:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *pos, *eof, *eol;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/packed-backend.c:326:14: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        const char *pos, *eof, *eol;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs/packed-backend.c:326:20: warning: variable 'eof' is not initialized [cppcoreguidelines-init-variables]
        const char *pos, *eof, *eol;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs/packed-backend.c:326:26: warning: variable 'eol' is not initialized [cppcoreguidelines-init-variables]
        const char *pos, *eof, *eol;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs/packed-backend.c:327:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t len, i;
        ^~~~~~~~~~~~~~
/datasets/git/refs/packed-backend.c:327:9: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        size_t len, i;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs/packed-backend.c:327:14: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t len, i;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs/packed-backend.c:327:14: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs/packed-backend.c:328:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *new_buffer, *dst;
        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/packed-backend.c:328:8: warning: variable 'new_buffer' is not initialized [cppcoreguidelines-init-variables]
        char *new_buffer, *dst;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs/packed-backend.c:328:21: warning: variable 'dst' is not initialized [cppcoreguidelines-init-variables]
        char *new_buffer, *dst;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs/packed-backend.c:333:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pos == eof)
                       ^
                        {
/datasets/git/refs/packed-backend.c:342:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(records, len / 80 + 20, alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/refs/packed-backend.c:326:2: note: inferred assignment of ID-dependent value from ID-dependent member start [altera-id-dependent-backward-branch]
        const char *pos, *eof, *eol;
        ^
/datasets/git/refs/packed-backend.c:344:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'pos' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (pos < eof) {
               ^
/datasets/git/refs/packed-backend.c:346:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!eol)
                         ^
                          {
/datasets/git/refs/packed-backend.c:349:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (eol - pos < the_hash_algo->hexsz + 2)
                                                         ^
                                                          {
/datasets/git/refs/packed-backend.c:361:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!eol)
                                 ^
                                  {
/datasets/git/refs/packed-backend.c:367:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                ALLOC_GROW(records, nr + 1, alloc);
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/refs/packed-backend.c:375:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                           &records[nr - 1]) >= 0)
                                                                  ^
                                                                   {
/datasets/git/refs/packed-backend.c:381:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (sorted)
                   ^
                    {
/datasets/git/refs/packed-backend.c:393:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (dst = new_buffer, i = 0; i < nr; i++) {
        ^
/datasets/git/refs/packed-backend.c:394:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(dst, records[i].start, records[i].len);
                ^~~~~~
/datasets/git/refs/packed-backend.c:394:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(dst, records[i].start, records[i].len);
                ^~~~~~
/datasets/git/refs/packed-backend.c:415:70: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static const char *find_start_of_record(const char *buf, const char *p)
                                                                     ^
/datasets/git/refs/packed-backend.c:417:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (p > buf && (p[-1] != '\n' || p[0] == '^'))
        ^
/datasets/git/refs/packed-backend.c:417:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (p > buf && (p[-1] != '\n' || p[0] == '^'))
                                                         ^
                                                          {
/datasets/git/refs/packed-backend.c:426:51: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static const char *find_end_of_record(const char *p, const char *end)
                                                  ^
/datasets/git/refs/packed-backend.c:428:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (++p < end && (p[-1] != '\n' || p[0] == '^'))
        ^
/datasets/git/refs/packed-backend.c:428:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (++p < end && (p[-1] != '\n' || p[0] == '^'))
                                                           ^
                                                            {
/datasets/git/refs/packed-backend.c:455:14: warning: variable 'last_line' is not initialized [cppcoreguidelines-init-variables]
        const char *last_line;
                    ^
                              = NULL
/datasets/git/refs/packed-backend.c:457:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (start == eof)
                         ^
                          {
/datasets/git/refs/packed-backend.c:461:71: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*(eof - 1) != '\n' || eof - last_line < the_hash_algo->hexsz + 2)
                                                                             ^
                                                                              {
/datasets/git/refs/packed-backend.c:466:1: warning: replace macro with enum [modernize-macro-to-enum]
#define SMALL_FILE_SIZE (32*1024)
^~~~~~~~
                        =
/datasets/git/refs/packed-backend.c:466:9: warning: macro 'SMALL_FILE_SIZE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define SMALL_FILE_SIZE (32*1024)
        ^
/datasets/git/refs/packed-backend.c:476:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/refs/packed-backend.c:476:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs/packed-backend.c:477:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/refs/packed-backend.c:478:9: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        size_t size;
               ^
                    = 0
/datasets/git/refs/packed-backend.c:479:10: warning: variable 'bytes_read' is not initialized [cppcoreguidelines-init-variables]
        ssize_t bytes_read;
                ^
                           = 0
/datasets/git/refs/packed-backend.c:481:42: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
        fd = open(snapshot->refs->path, O_RDONLY);
                                                ^
                                                 | O_CLOEXEC
/datasets/git/refs/packed-backend.c:492:5: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                } else {
                  ^~~~~~
/datasets/git/refs/packed-backend.c:499:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fstat(fd, &st) < 0)
                               ^
                                {
/datasets/git/refs/packed-backend.c:506:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else if (mmap_strategy == MMAP_NONE || size <= SMALL_FILE_SIZE) {
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/packed-backend.c:506:51: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        } else if (mmap_strategy == MMAP_NONE || size <= SMALL_FILE_SIZE) {
                                                         ^
/datasets/git/refs/packed-backend.c:466:26: note: expanded from macro 'SMALL_FILE_SIZE'
#define SMALL_FILE_SIZE (32*1024)
                         ^
/datasets/git/refs/packed-backend.c:506:51: note: make conversion explicit to silence this warning
        } else if (mmap_strategy == MMAP_NONE || size <= SMALL_FILE_SIZE) {
                                                         ^
/datasets/git/refs/packed-backend.c:466:26: note: expanded from macro 'SMALL_FILE_SIZE'
#define SMALL_FILE_SIZE (32*1024)
                         ^~~~~~~
/datasets/git/refs/packed-backend.c:506:51: note: perform multiplication in a wider type
        } else if (mmap_strategy == MMAP_NONE || size <= SMALL_FILE_SIZE) {
                                                         ^
/datasets/git/refs/packed-backend.c:466:26: note: expanded from macro 'SMALL_FILE_SIZE'
#define SMALL_FILE_SIZE (32*1024)
                         ^~
/datasets/git/refs/packed-backend.c:509:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (bytes_read < 0 || bytes_read != size)
                                                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs/packed-backend.c:555:14: warning: variable name 'lo' is too short, expected at least 3 characters [readability-identifier-length]
        const char *lo = snapshot->start;
                    ^
/datasets/git/refs/packed-backend.c:561:14: warning: variable name 'hi' is too short, expected at least 3 characters [readability-identifier-length]
        const char *hi = snapshot->eof;
                    ^
/datasets/git/refs/packed-backend.c:563:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (lo != hi) {
        ^
/datasets/git/refs/packed-backend.c:563:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'lo' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (lo != hi) {
               ^
/datasets/git/refs/packed-backend.c:564:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                const char *mid, *rec;
                ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/packed-backend.c:564:15: warning: variable 'mid' is not initialized [cppcoreguidelines-init-variables]
                const char *mid, *rec;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs/packed-backend.c:564:21: warning: variable 'rec' is not initialized [cppcoreguidelines-init-variables]
                const char *mid, *rec;
                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs/packed-backend.c:565:7: warning: variable 'cmp' is not initialized [cppcoreguidelines-init-variables]
                int cmp;
                    ^
                        = 0
/datasets/git/refs/packed-backend.c:579:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mustexist)
                      ^
                       {
/datasets/git/refs/packed-backend.c:581:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else
        ^~~~
                        return lo
/datasets/git/refs/packed-backend.c:555:2: note: inferred assignment of ID-dependent value from ID-dependent member start [altera-id-dependent-backward-branch]
        const char *lo = snapshot->start;
        ^
/datasets/git/refs/packed-backend.c:581:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs/packed-backend.c:627:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!load_contents(snapshot))
                                     ^
                                      {
/datasets/git/refs/packed-backend.c:632:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                char *tmp, *p, *eol;
                ^~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/packed-backend.c:632:9: warning: variable 'tmp' is not initialized [cppcoreguidelines-init-variables]
                char *tmp, *p, *eol;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs/packed-backend.c:632:15: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                char *tmp, *p, *eol;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs/packed-backend.c:632:15: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs/packed-backend.c:632:19: warning: variable 'eol' is not initialized [cppcoreguidelines-init-variables]
                char *tmp, *p, *eol;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs/packed-backend.c:637:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!eol)
                         ^
                          {
/datasets/git/refs/packed-backend.c:644:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!skip_prefix(tmp, "# pack-refs with:", (const char **)&p))
                                                                              ^
                                                                               {
/datasets/git/refs/packed-backend.c:651:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (unsorted_string_list_has_string(&traits, "fully-peeled"))
                                                                             ^
                                                                              {
/datasets/git/refs/packed-backend.c:653:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (unsorted_string_list_has_string(&traits, "peeled"))
                                                                            ^
                                                                             {
/datasets/git/refs/packed-backend.c:688:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(buf_copy, snapshot->start, size);
                ^~~~~~
/datasets/git/refs/packed-backend.c:688:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(buf_copy, snapshot->start, size);
                ^~~~~~
/datasets/git/refs/packed-backend.c:704:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !stat_validity_check(&refs->snapshot->validity, refs->path))
                                                                        ^
                                                                         {
/datasets/git/refs/packed-backend.c:719:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_lock_file_locked(&refs->lock))
                                              ^
                                               {
/datasets/git/refs/packed-backend.c:722:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!refs->snapshot)
                            ^
                             {
/datasets/git/refs/packed-backend.c:733:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                packed_downcast(ref_store, REF_STORE_READ, "read_raw_ref");
                                           ^
/datasets/git/./refs/refs-internal.h:515:26: note: expanded from macro 'REF_STORE_READ'
#define REF_STORE_READ          (1 << 0)
                                 ^
/datasets/git/refs/packed-backend.c:735:14: warning: variable 'rec' is not initialized [cppcoreguidelines-init-variables]
        const char *rec;
                    ^
                        = NULL
/datasets/git/refs/packed-backend.c:747:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid_hex(rec, oid))
                                  ^
                                   {
/datasets/git/refs/packed-backend.c:760:1: warning: replace macro with enum [modernize-macro-to-enum]
#define REF_KNOWS_PEELED 0x40
^~~~~~~~
                         =
/datasets/git/refs/packed-backend.c:760:9: warning: macro 'REF_KNOWS_PEELED' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define REF_KNOWS_PEELED 0x40
        ^
/datasets/git/refs/packed-backend.c:765:8: warning: accessing fields in struct 'packed_ref_iterator' is inefficient due to padding; only needs 172 bytes but is using 176 bytes [altera-struct-pack-align]
struct packed_ref_iterator {
       ^
/datasets/git/refs/packed-backend.c:765:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'packed_ref_iterator'
/datasets/git/refs/packed-backend.c:765:8: warning: accessing fields in struct 'packed_ref_iterator' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct packed_ref_iterator {
       ^
/datasets/git/refs/packed-backend.c:765:8: note: use "__attribute__((aligned(128)))" to align struct 'packed_ref_iterator' to 128 bytes
/datasets/git/refs/packed-backend.c:793:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *p = iter->pos, *eol;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/packed-backend.c:793:14: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        const char *p = iter->pos, *eol;
                    ^
/datasets/git/refs/packed-backend.c:793:30: warning: variable 'eol' is not initialized [cppcoreguidelines-init-variables]
        const char *p = iter->pos, *eol;
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs/packed-backend.c:797:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (iter->pos == iter->eof)
                                   ^
                                    {
/datasets/git/refs/packed-backend.c:804:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            !isspace(*p++))
             ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/refs/packed-backend.c:804:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !isspace(*p++))
                           ^
                            {
/datasets/git/refs/packed-backend.c:809:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!eol)
                 ^
                  {
/datasets/git/refs/packed-backend.c:817:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!refname_is_safe(iter->base.refname))
                                                         ^
                                                          {
/datasets/git/refs/packed-backend.c:821:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                iter->base.flags |= REF_BAD_NAME | REF_ISBROKEN;
                ^
/datasets/git/refs/packed-backend.c:821:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                iter->base.flags |= REF_BAD_NAME | REF_ISBROKEN;
                                    ^
/datasets/git/./refs/../refs.h:292:22: note: expanded from macro 'REF_BAD_NAME'
#define REF_BAD_NAME 0x08
                     ^~~~
/datasets/git/refs/packed-backend.c:825:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
             starts_with(iter->base.refname, "refs/tags/")))
                                                            ^
                                                             {
/datasets/git/refs/packed-backend.c:826:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                iter->base.flags |= REF_KNOWS_PEELED;
                ^
/datasets/git/refs/packed-backend.c:834:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    *p++ != '\n')
                                 ^
                                  {
/datasets/git/refs/packed-backend.c:844:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((iter->base.flags & REF_ISBROKEN)) {
                     ^
/datasets/git/refs/packed-backend.c:846:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        iter->base.flags &= ~REF_KNOWS_PEELED;
                        ^                   ~~~~~~~~~~~~~~~~~
/datasets/git/refs/packed-backend.c:846:24: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                        iter->base.flags &= ~REF_KNOWS_PEELED;
                                            ^
/datasets/git/refs/packed-backend.c:848:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        iter->base.flags |= REF_KNOWS_PEELED;
                        ^
/datasets/git/refs/packed-backend.c:861:2: note: inferred assignment of ID-dependent value from ID-dependent variable iter [altera-id-dependent-backward-branch]
        int ok;
        ^
/datasets/git/refs/packed-backend.c:861:6: warning: variable 'ok' is not initialized [cppcoreguidelines-init-variables]
        int ok;
            ^
               = 0
/datasets/git/refs/packed-backend.c:861:6: warning: variable name 'ok' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs/packed-backend.c:863:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((ok = next_record(iter)) == ITER_OK) {
        ^
/datasets/git/refs/packed-backend.c:863:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'ok' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((ok = next_record(iter)) == ITER_OK) {
               ^
/datasets/git/refs/packed-backend.c:864:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (iter->flags & DO_FOR_EACH_PER_WORKTREE_ONLY &&
                    ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/packed-backend.c:865:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !is_per_worktree_ref(iter->base.refname))
                                                             ^
                                                              {
/datasets/git/refs/packed-backend.c:868:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(iter->flags & DO_FOR_EACH_INCLUDE_BROKEN) &&
                      ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/packed-backend.c:870:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                            &iter->oid, iter->flags))
                                                                     ^
                                                                      {
/datasets/git/refs/packed-backend.c:876:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ref_iterator_abort(ref_iterator) != ITER_DONE)
                                                          ^
                                                           {
/datasets/git/refs/packed-backend.c:888:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (iter->repo != the_repository)
                                         ^
                                          {
/datasets/git/refs/packed-backend.c:891:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((iter->base.flags & REF_KNOWS_PEELED)) {
             ^
/datasets/git/refs/packed-backend.c:894:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else if ((iter->base.flags & (REF_ISBROKEN | REF_ISSYMREF))) {
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/packed-backend.c:894:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        } else if ((iter->base.flags & (REF_ISBROKEN | REF_ISSYMREF))) {
                    ^                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/packed-backend.c:894:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        } else if ((iter->base.flags & (REF_ISBROKEN | REF_ISSYMREF))) {
                                        ^
/datasets/git/./refs/../refs.h:285:22: note: expanded from macro 'REF_ISBROKEN'
#define REF_ISBROKEN 0x04
                     ^~~~
/datasets/git/refs/packed-backend.c:905:6: warning: variable name 'ok' is too short, expected at least 3 characters [readability-identifier-length]
        int ok = ITER_DONE;
            ^
/datasets/git/refs/packed-backend.c:913:35: warning: variable 'packed_ref_iterator_vtable' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct ref_iterator_vtable packed_ref_iterator_vtable = {
                                  ^
/datasets/git/refs/packed-backend.c:923:27: warning: variable 'refs' is not initialized [cppcoreguidelines-init-variables]
        struct packed_ref_store *refs;
                                 ^
                                      = NULL
/datasets/git/refs/packed-backend.c:924:19: warning: variable 'snapshot' is not initialized [cppcoreguidelines-init-variables]
        struct snapshot *snapshot;
                         ^
                                  = NULL
/datasets/git/refs/packed-backend.c:925:14: warning: variable 'start' is not initialized [cppcoreguidelines-init-variables]
        const char *start;
                    ^
                          = NULL
/datasets/git/refs/packed-backend.c:926:30: warning: variable 'iter' is not initialized [cppcoreguidelines-init-variables]
        struct packed_ref_iterator *iter;
                                    ^
                                         = NULL
/datasets/git/refs/packed-backend.c:927:23: warning: variable 'ref_iterator' is not initialized [cppcoreguidelines-init-variables]
        struct ref_iterator *ref_iterator;
                             ^
                                          = NULL
/datasets/git/refs/packed-backend.c:928:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned int required_flags = REF_STORE_READ;
                                      ^
/datasets/git/./refs/refs-internal.h:515:26: note: expanded from macro 'REF_STORE_READ'
#define REF_STORE_READ          (1 << 0)
                                 ^
/datasets/git/refs/packed-backend.c:930:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & DO_FOR_EACH_INCLUDE_BROKEN))
              ^       ~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/packed-backend.c:930:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(flags & DO_FOR_EACH_INCLUDE_BROKEN))
                                                  ^
                                                   {
/datasets/git/refs/packed-backend.c:931:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                required_flags |= REF_STORE_ODB;
                ^
/datasets/git/refs/packed-backend.c:931:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                required_flags |= REF_STORE_ODB;
                                  ^
/datasets/git/./refs/refs-internal.h:517:25: note: expanded from macro 'REF_STORE_ODB'
#define REF_STORE_ODB           (1 << 2) /* has access to object database */
                                 ^
/datasets/git/refs/packed-backend.c:941:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prefix && *prefix)
                              ^
                               {
/datasets/git/refs/packed-backend.c:943:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/refs/packed-backend.c:946:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (start == snapshot->eof)
                                   ^
                                    {
/datasets/git/refs/packed-backend.c:965:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prefix && *prefix)
                              ^
                               {
/datasets/git/refs/packed-backend.c:978:37: warning: parameter name 'fh' is too short, expected at least 3 characters [readability-identifier-length]
static int write_packed_entry(FILE *fh, const char *refname,
                                    ^
/datasets/git/refs/packed-backend.c:983:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            (peeled && fprintf(fh, "^%s\n", oid_to_hex(peeled)) < 0))
                                                                     ^
                                                                      {
/datasets/git/refs/packed-backend.c:992:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                packed_downcast(ref_store, REF_STORE_WRITE | REF_STORE_MAIN,
                                           ^
/datasets/git/./refs/refs-internal.h:516:26: note: expanded from macro 'REF_STORE_WRITE'
#define REF_STORE_WRITE         (1 << 1) /* can perform update operations */
                                ^~~~~~~~
/datasets/git/refs/packed-backend.c:992:48: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                packed_downcast(ref_store, REF_STORE_WRITE | REF_STORE_MAIN,
                                                             ^
/datasets/git/./refs/refs-internal.h:518:26: note: expanded from macro 'REF_STORE_MAIN'
#define REF_STORE_MAIN          (1 << 3)
                                 ^
/datasets/git/refs/packed-backend.c:995:29: warning: 1000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        static int timeout_value = 1000;
                                   ^
/datasets/git/refs/packed-backend.c:1016:58: warning: function is not thread safe [concurrency-mt-unsafe]
                strbuf_addf(err, "unable to close %s: %s", refs->path, strerror(errno));
                                                                       ^
/datasets/git/refs/packed-backend.c:1052:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        REF_STORE_READ | REF_STORE_WRITE,
                        ^
/datasets/git/./refs/refs-internal.h:515:25: note: expanded from macro 'REF_STORE_READ'
#define REF_STORE_READ          (1 << 0)
                                ^~~~~~~~
/datasets/git/refs/packed-backend.c:1052:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        REF_STORE_READ | REF_STORE_WRITE,
                                         ^
/datasets/git/./refs/refs-internal.h:516:27: note: expanded from macro 'REF_STORE_WRITE'
#define REF_STORE_WRITE         (1 << 1) /* can perform update operations */
                                 ^
/datasets/git/refs/packed-backend.c:1055:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_lock_file_locked(&refs->lock))
                                              ^
                                               {
/datasets/git/refs/packed-backend.c:1064:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        REF_STORE_READ | REF_STORE_WRITE,
                        ^
/datasets/git/./refs/refs-internal.h:515:25: note: expanded from macro 'REF_STORE_READ'
#define REF_STORE_READ          (1 << 0)
                                ^~~~~~~~
/datasets/git/refs/packed-backend.c:1064:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        REF_STORE_READ | REF_STORE_WRITE,
                                         ^
/datasets/git/./refs/refs-internal.h:516:27: note: expanded from macro 'REF_STORE_WRITE'
#define REF_STORE_WRITE         (1 << 1) /* can perform update operations */
                                 ^
/datasets/git/refs/packed-backend.c:1098:12: warning: function 'write_with_updates' has cognitive complexity of 65 (threshold 25) [readability-function-cognitive-complexity]
static int write_with_updates(struct packed_ref_store *refs,
           ^
/datasets/git/refs/packed-backend.c:1109:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!is_lock_file_locked(&refs->lock))
        ^
/datasets/git/refs/packed-backend.c:1121:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!refs->tempfile) {
        ^
/datasets/git/refs/packed-backend.c:1130:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!out) {
        ^
/datasets/git/refs/packed-backend.c:1133:3: note: +1
                goto error;
                ^
/datasets/git/refs/packed-backend.c:1136:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (fprintf(out, "%s", PACKED_REFS_HEADER) < 0)
        ^
/datasets/git/refs/packed-backend.c:1148:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((ok = ref_iterator_advance(iter)) != ITER_OK)
        ^
/datasets/git/refs/packed-backend.c:1153:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (iter || i < updates->nr) {
        ^
/datasets/git/refs/packed-backend.c:1153:14: note: +1
        while (iter || i < updates->nr) {
                    ^
/datasets/git/refs/packed-backend.c:1157:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (i >= updates->nr) {
                ^
/datasets/git/refs/packed-backend.c:1159:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/refs/packed-backend.c:1162:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!iter)
                        ^
/datasets/git/refs/packed-backend.c:1164:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/refs/packed-backend.c:1168:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!cmp) {
                ^
/datasets/git/refs/packed-backend.c:1174:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if ((update->flags & REF_HAVE_OLD)) {
                        ^
/datasets/git/refs/packed-backend.c:1175:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (is_null_oid(&update->old_oid)) {
                                ^
/datasets/git/refs/packed-backend.c:1179:6: note: +1
                                        goto error;
                                        ^
/datasets/git/refs/packed-backend.c:1180:12: note: +1, nesting level increased to 4
                                } else if (!oideq(&update->old_oid, iter->oid)) {
                                       ^
/datasets/git/refs/packed-backend.c:1186:6: note: +1
                                        goto error;
                                        ^
/datasets/git/refs/packed-backend.c:1191:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if ((update->flags & REF_HAVE_NEW)) {
                        ^
/datasets/git/refs/packed-backend.c:1197:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if ((ok = ref_iterator_advance(iter)) != ITER_OK)
                                ^
/datasets/git/refs/packed-backend.c:1200:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/refs/packed-backend.c:1208:10: note: +1, nesting level increased to 2
                } else if (cmp > 0) {
                       ^
/datasets/git/refs/packed-backend.c:1214:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if ((update->flags & REF_HAVE_OLD) &&
                        ^
/datasets/git/refs/packed-backend.c:1214:39: note: +1
                        if ((update->flags & REF_HAVE_OLD) &&
                                                           ^
/datasets/git/refs/packed-backend.c:1220:5: note: +1
                                goto error;
                                ^
/datasets/git/refs/packed-backend.c:1224:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (cmp < 0) {
                ^
/datasets/git/refs/packed-backend.c:1230:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (write_packed_entry(out, iter->refname,
                        ^
/datasets/git/refs/packed-backend.c:1232:24: note: +3, including nesting penalty of 2, nesting level increased to 3
                                               peel_error ? NULL : &peeled))
                                                          ^
/datasets/git/refs/packed-backend.c:1235:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if ((ok = ref_iterator_advance(iter)) != ITER_OK)
                        ^
/datasets/git/refs/packed-backend.c:1237:10: note: +1, nesting level increased to 2
                } else if (is_null_oid(&update->new_oid)) {
                       ^
/datasets/git/refs/packed-backend.c:1246:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/refs/packed-backend.c:1251:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (write_packed_entry(out, update->refname,
                        ^
/datasets/git/refs/packed-backend.c:1253:24: note: +3, including nesting penalty of 2, nesting level increased to 3
                                               peel_error ? NULL : &peeled))
                                                          ^
/datasets/git/refs/packed-backend.c:1260:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ok != ITER_DONE) {
        ^
/datasets/git/refs/packed-backend.c:1263:3: note: +1
                goto error;
                ^
/datasets/git/refs/packed-backend.c:1266:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (fsync_component(FSYNC_COMPONENT_REFERENCE, get_tempfile_fd(refs->tempfile)) ||
        ^
/datasets/git/refs/packed-backend.c:1266:82: note: +1
        if (fsync_component(FSYNC_COMPONENT_REFERENCE, get_tempfile_fd(refs->tempfile)) ||
                                                                                        ^
/datasets/git/refs/packed-backend.c:1283:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (iter)
        ^
/datasets/git/refs/packed-backend.c:1103:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i;
               ^
                 = 0
/datasets/git/refs/packed-backend.c:1103:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs/packed-backend.c:1104:6: warning: variable 'ok' is not initialized [cppcoreguidelines-init-variables]
        int ok;
            ^
               = 0
/datasets/git/refs/packed-backend.c:1104:6: warning: variable name 'ok' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs/packed-backend.c:1105:8: warning: variable 'out' is not initialized [cppcoreguidelines-init-variables]
        FILE *out;
              ^
                  = NULL
/datasets/git/refs/packed-backend.c:1106:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/refs/packed-backend.c:1107:8: warning: variable 'packed_refs_path' is not initialized [cppcoreguidelines-init-variables]
        char *packed_refs_path;
              ^
                               = NULL
/datasets/git/refs/packed-backend.c:1109:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_lock_file_locked(&refs->lock))
                                              ^
                                               {
/datasets/git/refs/packed-backend.c:1123:16: warning: function is not thread safe [concurrency-mt-unsafe]
                            sb.buf, strerror(errno));
                                    ^
/datasets/git/refs/packed-backend.c:1132:8: warning: function is not thread safe [concurrency-mt-unsafe]
                            strerror(errno));
                            ^
/datasets/git/refs/packed-backend.c:1136:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fprintf(out, "%s", PACKED_REFS_HEADER) < 0)
                                                       ^
                                                        {
/datasets/git/refs/packed-backend.c:1148:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if ((ok = ref_iterator_advance(iter)) != ITER_OK)
             ^
/datasets/git/refs/packed-backend.c:1148:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/refs/packed-backend.c:1148:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/refs/packed-backend.c:1102:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct ref_iterator *iter = NULL;
        ^
/datasets/git/refs/packed-backend.c:1148:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((ok = ref_iterator_advance(iter)) != ITER_OK)
                                                         ^
                                                          {
/datasets/git/refs/packed-backend.c:1153:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (iter || i < updates->nr) {
        ^
/datasets/git/refs/packed-backend.c:1153:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'iter' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (iter || i < updates->nr) {
               ^
/datasets/git/refs/packed-backend.c:1155:7: warning: variable 'cmp' is not initialized [cppcoreguidelines-init-variables]
                int cmp;
                    ^
                        = 0
/datasets/git/refs/packed-backend.c:1162:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!iter)
                                  ^
                                   {
/datasets/git/refs/packed-backend.c:1164:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/refs/packed-backend.c:1174:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if ((update->flags & REF_HAVE_OLD)) {
                             ^
/datasets/git/refs/packed-backend.c:1174:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if ((update->flags & REF_HAVE_OLD)) {
                                             ^
/datasets/git/./refs/refs-internal.h:32:23: note: expanded from macro 'REF_HAVE_OLD'
#define REF_HAVE_OLD (1 << 3)
                      ^
/datasets/git/refs/packed-backend.c:1191:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if ((update->flags & REF_HAVE_NEW)) {
                             ^
/datasets/git/refs/packed-backend.c:1191:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if ((update->flags & REF_HAVE_NEW)) {
                                             ^
/datasets/git/./refs/refs-internal.h:26:23: note: expanded from macro 'REF_HAVE_NEW'
#define REF_HAVE_NEW (1 << 2)
                      ^
/datasets/git/refs/packed-backend.c:1197:10: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                                if ((ok = ref_iterator_advance(iter)) != ITER_OK)
                                     ^
/datasets/git/refs/packed-backend.c:1197:10: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/refs/packed-backend.c:1197:10: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/refs/packed-backend.c:1197:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if ((ok = ref_iterator_advance(iter)) != ITER_OK)
                                                                                 ^
                                                                                  {
/datasets/git/refs/packed-backend.c:1214:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if ((update->flags & REF_HAVE_OLD) &&
                             ^
/datasets/git/refs/packed-backend.c:1214:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if ((update->flags & REF_HAVE_OLD) &&
                                             ^
/datasets/git/./refs/refs-internal.h:32:23: note: expanded from macro 'REF_HAVE_OLD'
#define REF_HAVE_OLD (1 << 3)
                      ^
/datasets/git/refs/packed-backend.c:1232:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                               peel_error ? NULL : &peeled))
                                                                            ^
                                                                             {
/datasets/git/refs/packed-backend.c:1235:9: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                        if ((ok = ref_iterator_advance(iter)) != ITER_OK)
                             ^
/datasets/git/refs/packed-backend.c:1235:9: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/refs/packed-backend.c:1235:9: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/refs/packed-backend.c:1235:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if ((ok = ref_iterator_advance(iter)) != ITER_OK)
                                                                         ^
                                                                          {
/datasets/git/refs/packed-backend.c:1253:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                               peel_error ? NULL : &peeled))
                                                                            ^
                                                                             {
/datasets/git/refs/packed-backend.c:1270:8: warning: function is not thread safe [concurrency-mt-unsafe]
                            strerror(errno));
                            ^
/datasets/git/refs/packed-backend.c:1280:42: warning: function is not thread safe [concurrency-mt-unsafe]
                    get_tempfile_path(refs->tempfile), strerror(errno));
                                                       ^
/datasets/git/refs/packed-backend.c:1283:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (iter)
                 ^
                  {
/datasets/git/refs/packed-backend.c:1295:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        REF_STORE_READ,
                        ^
/datasets/git/./refs/refs-internal.h:515:26: note: expanded from macro 'REF_STORE_READ'
#define REF_STORE_READ          (1 << 0)
                                 ^
/datasets/git/refs/packed-backend.c:1298:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i;
               ^
                 = 0
/datasets/git/refs/packed-backend.c:1298:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs/packed-backend.c:1299:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/refs/packed-backend.c:1301:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_lock_file_locked(&refs->lock))
                                              ^
                                               {
/datasets/git/refs/packed-backend.c:1336:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < transaction->nr; i++) {
        ^
/datasets/git/refs/packed-backend.c:1339:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (update->flags & REF_HAVE_OLD)
                    ^
/datasets/git/refs/packed-backend.c:1339:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (update->flags & REF_HAVE_OLD)
                                    ^
/datasets/git/./refs/refs-internal.h:32:23: note: expanded from macro 'REF_HAVE_OLD'
#define REF_HAVE_OLD (1 << 3)
                      ^
/datasets/git/refs/packed-backend.c:1339:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (update->flags & REF_HAVE_OLD)
                                                 ^
                                                  {
/datasets/git/refs/packed-backend.c:1343:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((update->flags & REF_HAVE_NEW) && !is_null_oid(&update->new_oid))
                     ^
/datasets/git/refs/packed-backend.c:1343:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((update->flags & REF_HAVE_NEW) && !is_null_oid(&update->new_oid))
                                     ^
/datasets/git/./refs/refs-internal.h:26:23: note: expanded from macro 'REF_HAVE_NEW'
#define REF_HAVE_NEW (1 << 2)
                      ^
/datasets/git/refs/packed-backend.c:1343:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((update->flags & REF_HAVE_NEW) && !is_null_oid(&update->new_oid))
                                                                                     ^
                                                                                      {
/datasets/git/refs/packed-backend.c:1356:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < transaction->nr; i++) {
        ^
/datasets/git/refs/packed-backend.c:1358:7: warning: variable 'failure_errno' is not initialized [cppcoreguidelines-init-variables]
                int failure_errno;
                    ^
                                  = 0
/datasets/git/refs/packed-backend.c:1359:16: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
                unsigned int type;
                             ^
                                  = 0
/datasets/git/refs/packed-backend.c:1362:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(update->flags & REF_HAVE_NEW))
                      ^
/datasets/git/refs/packed-backend.c:1362:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(update->flags & REF_HAVE_NEW))
                                      ^
/datasets/git/./refs/refs-internal.h:26:23: note: expanded from macro 'REF_HAVE_NEW'
#define REF_HAVE_NEW (1 << 2)
                      ^
/datasets/git/refs/packed-backend.c:1362:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(update->flags & REF_HAVE_NEW))
                                                    ^
                                                     {
/datasets/git/refs/packed-backend.c:1385:8: warning: accessing fields in struct 'packed_transaction_backend_data' is inefficient due to padding; only needs 44 bytes but is using 48 bytes [altera-struct-pack-align]
struct packed_transaction_backend_data {
       ^
/datasets/git/refs/packed-backend.c:1385:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'packed_transaction_backend_data'
/datasets/git/refs/packed-backend.c:1385:8: warning: accessing fields in struct 'packed_transaction_backend_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct packed_transaction_backend_data {
       ^
/datasets/git/refs/packed-backend.c:1385:8: note: use "__attribute__((aligned(64)))" to align struct 'packed_transaction_backend_data' to 64 bytes
/datasets/git/refs/packed-backend.c:1400:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_tempfile_active(refs->tempfile))
                                                       ^
                                                        {
/datasets/git/refs/packed-backend.c:1421:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        REF_STORE_READ | REF_STORE_WRITE | REF_STORE_ODB,
                        ^
/datasets/git/./refs/refs-internal.h:515:25: note: expanded from macro 'REF_STORE_READ'
#define REF_STORE_READ          (1 << 0)
                                ^
/datasets/git/refs/packed-backend.c:1421:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        REF_STORE_READ | REF_STORE_WRITE | REF_STORE_ODB,
                                         ^
/datasets/git/./refs/refs-internal.h:516:27: note: expanded from macro 'REF_STORE_WRITE'
#define REF_STORE_WRITE         (1 << 1) /* can perform update operations */
                                 ^
/datasets/git/refs/packed-backend.c:1421:39: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        REF_STORE_READ | REF_STORE_WRITE | REF_STORE_ODB,
                                                           ^
/datasets/git/./refs/refs-internal.h:517:25: note: expanded from macro 'REF_STORE_ODB'
#define REF_STORE_ODB           (1 << 2) /* has access to object database */
                                 ^
/datasets/git/refs/packed-backend.c:1423:42: warning: variable 'data' is not initialized [cppcoreguidelines-init-variables]
        struct packed_transaction_backend_data *data;
                                                ^
                                                     = NULL
/datasets/git/refs/packed-backend.c:1424:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i;
               ^
                 = 0
/datasets/git/refs/packed-backend.c:1424:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs/packed-backend.c:1445:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < transaction->nr; i++) {
        ^
/datasets/git/refs/packed-backend.c:1455:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ref_update_reject_duplicates(&data->updates, err))
                                                              ^
                                                               {
/datasets/git/refs/packed-backend.c:1459:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (packed_refs_lock(ref_store, 0, err))
                                                        ^
                                                         {
/datasets/git/refs/packed-backend.c:1464:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_with_updates(refs, &data->updates, err))
                                                          ^
                                                           {
/datasets/git/refs/packed-backend.c:1481:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        REF_STORE_READ | REF_STORE_WRITE | REF_STORE_ODB,
                        ^
/datasets/git/./refs/refs-internal.h:515:25: note: expanded from macro 'REF_STORE_READ'
#define REF_STORE_READ          (1 << 0)
                                ^
/datasets/git/refs/packed-backend.c:1481:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        REF_STORE_READ | REF_STORE_WRITE | REF_STORE_ODB,
                                         ^
/datasets/git/./refs/refs-internal.h:516:27: note: expanded from macro 'REF_STORE_WRITE'
#define REF_STORE_WRITE         (1 << 1) /* can perform update operations */
                                 ^
/datasets/git/refs/packed-backend.c:1481:39: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        REF_STORE_READ | REF_STORE_WRITE | REF_STORE_ODB,
                                                           ^
/datasets/git/./refs/refs-internal.h:517:25: note: expanded from macro 'REF_STORE_ODB'
#define REF_STORE_ODB           (1 << 2) /* has access to object database */
                                 ^
/datasets/git/refs/packed-backend.c:1494:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        REF_STORE_READ | REF_STORE_WRITE | REF_STORE_ODB,
                        ^
/datasets/git/./refs/refs-internal.h:515:25: note: expanded from macro 'REF_STORE_READ'
#define REF_STORE_READ          (1 << 0)
                                ^
/datasets/git/refs/packed-backend.c:1494:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        REF_STORE_READ | REF_STORE_WRITE | REF_STORE_ODB,
                                         ^
/datasets/git/./refs/refs-internal.h:516:27: note: expanded from macro 'REF_STORE_WRITE'
#define REF_STORE_WRITE         (1 << 1) /* can perform update operations */
                                 ^
/datasets/git/refs/packed-backend.c:1494:39: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        REF_STORE_READ | REF_STORE_WRITE | REF_STORE_ODB,
                                                           ^
/datasets/git/./refs/refs-internal.h:517:25: note: expanded from macro 'REF_STORE_ODB'
#define REF_STORE_ODB           (1 << 2) /* has access to object database */
                                 ^
/datasets/git/refs/packed-backend.c:1497:8: warning: variable 'packed_refs_path' is not initialized [cppcoreguidelines-init-variables]
        char *packed_refs_path;
              ^
                               = NULL
/datasets/git/refs/packed-backend.c:1504:20: warning: function is not thread safe [concurrency-mt-unsafe]
                            refs->path, strerror(errno));
                                        ^
/datasets/git/refs/packed-backend.c:1527:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                packed_downcast(ref_store, REF_STORE_WRITE, "delete_refs");
                                           ^
/datasets/git/./refs/refs-internal.h:516:27: note: expanded from macro 'REF_STORE_WRITE'
#define REF_STORE_WRITE         (1 << 1) /* can perform update operations */
                                 ^
/datasets/git/refs/packed-backend.c:1529:26: warning: variable 'transaction' is not initialized [cppcoreguidelines-init-variables]
        struct ref_transaction *transaction;
                                ^
                                            = NULL
/datasets/git/refs/packed-backend.c:1530:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/refs/packed-backend.c:1531:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/refs/packed-backend.c:1535:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!refnames->nr)
                          ^
                           {
/datasets/git/refs/packed-backend.c:1545:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!transaction)
                         ^
                          {
/datasets/git/refs/packed-backend.c:1548:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(item, refnames) {
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/refs/packed-backend.c:1548:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(item, refnames) {
                                  ^
/datasets/git/refs/packed-backend.c:1560:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (refnames->nr == 1)
                                      ^
                                       {
/datasets/git/refs/packed-backend.c:1563:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/refs/packed-backend.c:1588:23: warning: variable 'refs_be_packed' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
struct ref_storage_be refs_be_packed = {
                      ^
/datasets/git/refs/ref-cache.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "../refs.h"
^        ~~~~~~~~~~~
         "../iterator.h"
/datasets/git/refs/ref-cache.c:9:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(dir->entries, dir->nr + 1, dir->alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/refs/ref-cache.c:9:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_GROW(dir->entries, dir->nr + 1, dir->alloc);
        ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/refs/ref-cache.c:15:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    dir->entries[dir->nr - 1]->name) < 0))
                                                          ^
                                                           {
/datasets/git/refs/ref-cache.c:21:18: warning: variable 'dir' is not initialized [cppcoreguidelines-init-variables]
        struct ref_dir *dir;
                        ^
                            = NULL
/datasets/git/refs/ref-cache.c:22:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        assert(entry->flag & REF_DIR);
               ^
/usr/include/assert.h:108:20: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                   ^~~~
/datasets/git/refs/ref-cache.c:24:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (entry->flag & REF_INCOMPLETE) {
            ^
/datasets/git/refs/ref-cache.c:25:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!dir->cache->fill_ref_dir)
                                              ^
                                               {
/datasets/git/refs/ref-cache.c:29:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                entry->flag &= ~REF_INCOMPLETE;
                ^              ~~~~~~~~~~~~~~~
/datasets/git/refs/ref-cache.c:29:18: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                entry->flag &= ~REF_INCOMPLETE;
                               ^
/datasets/git/refs/ref-cache.c:37:20: warning: variable 'ref' is not initialized [cppcoreguidelines-init-variables]
        struct ref_entry *ref;
                          ^
                              = NULL
/datasets/git/refs/ref-cache.c:39:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FLEX_ALLOC_STR(ref, name, refname);
        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^
/datasets/git/./git-compat-util.h:1151:47: note: expanded from macro 'FLEX_ALLOC_MEM'
#define FLEX_ALLOC_MEM(x, flexname, buf, len) do { \
                                              ^
/datasets/git/refs/ref-cache.c:39:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        FLEX_ALLOC_STR(ref, name, refname);
        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/refs/ref-cache.c:39:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        FLEX_ALLOC_STR(ref, name, refname);
        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/refs/ref-cache.c:58:13: warning: function 'free_ref_entry' is within a recursive call chain [misc-no-recursion]
static void free_ref_entry(struct ref_entry *entry)
            ^
/datasets/git/refs/ref-cache.c:79:13: note: example recursive call chain, starting from function 'clear_ref_dir'
static void clear_ref_dir(struct ref_dir *dir)
            ^
/datasets/git/refs/ref-cache.c:83:3: note: Frame #1: function 'clear_ref_dir' calls function 'free_ref_entry' here:
                free_ref_entry(dir->entries[i]);
                ^
/datasets/git/refs/ref-cache.c:65:3: note: Frame #2: function 'free_ref_entry' calls function 'clear_ref_dir' here:
                clear_ref_dir(&entry->u.subdir);
                ^
/datasets/git/refs/ref-cache.c:65:3: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/refs/ref-cache.c:60:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (entry->flag & REF_DIR) {
            ^
/datasets/git/refs/ref-cache.c:79:13: warning: function 'clear_ref_dir' is within a recursive call chain [misc-no-recursion]
static void clear_ref_dir(struct ref_dir *dir)
            ^
/datasets/git/refs/ref-cache.c:81:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/refs/ref-cache.c:81:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs/ref-cache.c:82:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < dir->nr; i++)
        ^
/datasets/git/refs/ref-cache.c:82:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < dir->nr; i++)
                    ^
/datasets/git/refs/ref-cache.c:82:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < dir->nr; i++)
                                     ^
                                      {
/datasets/git/refs/ref-cache.c:84:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(dir->entries);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/refs/ref-cache.c:91:20: warning: variable 'direntry' is not initialized [cppcoreguidelines-init-variables]
        struct ref_entry *direntry;
                          ^
                                   = NULL
/datasets/git/refs/ref-cache.c:93:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FLEX_ALLOC_MEM(direntry, name, dirname, len);
        ^
/datasets/git/./git-compat-util.h:1151:47: note: expanded from macro 'FLEX_ALLOC_MEM'
#define FLEX_ALLOC_MEM(x, flexname, buf, len) do { \
                                              ^
/datasets/git/refs/ref-cache.c:93:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        FLEX_ALLOC_MEM(direntry, name, dirname, len);
        ^
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/refs/ref-cache.c:93:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        FLEX_ALLOC_MEM(direntry, name, dirname, len);
        ^
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/refs/ref-cache.c:95:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        direntry->flag = REF_DIR | REF_INCOMPLETE;
                         ^
/datasets/git/./refs/ref-cache.h:96:17: note: expanded from macro 'REF_DIR'
#define REF_DIR 0x10
                ^~~~
/datasets/git/refs/ref-cache.c:99:26: warning: 2 adjacent parameters of 'ref_entry_cmp' of similar type ('const void *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int ref_entry_cmp(const void *a, const void *b)
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/ref-cache.c:99:38: note: the first parameter in the range is 'a'
static int ref_entry_cmp(const void *a, const void *b)
                                     ^
/datasets/git/refs/ref-cache.c:99:53: note: the last parameter in the range is 'b'
static int ref_entry_cmp(const void *a, const void *b)
                                                    ^
/datasets/git/refs/ref-cache.c:99:38: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static int ref_entry_cmp(const void *a, const void *b)
                                     ^
/datasets/git/refs/ref-cache.c:99:53: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static int ref_entry_cmp(const void *a, const void *b)
                                                    ^
/datasets/git/refs/ref-cache.c:108:8: warning: accessing fields in struct 'string_slice' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct string_slice {
       ^
/datasets/git/refs/ref-cache.c:108:8: note: use "__attribute__((aligned(16)))" to align struct 'string_slice' to 16 bytes
/datasets/git/refs/ref-cache.c:113:33: warning: 2 adjacent parameters of 'ref_entry_cmp_sslice' of similar type ('const void *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int ref_entry_cmp_sslice(const void *key_, const void *ent_)
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refs/ref-cache.c:113:45: note: the first parameter in the range is 'key_'
static int ref_entry_cmp_sslice(const void *key_, const void *ent_)
                                            ^~~~
/datasets/git/refs/ref-cache.c:113:63: note: the last parameter in the range is 'ent_'
static int ref_entry_cmp_sslice(const void *key_, const void *ent_)
                                                              ^~~~
/datasets/git/refs/ref-cache.c:118:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cmp)
                ^
                 {
/datasets/git/refs/ref-cache.c:125:21: warning: variable 'r' is not initialized [cppcoreguidelines-init-variables]
        struct ref_entry **r;
                           ^
                             = NULL
/datasets/git/refs/ref-cache.c:125:21: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs/ref-cache.c:128:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (refname == NULL || !dir->nr)
                                        ^
                                         {
/datasets/git/refs/ref-cache.c:134:43: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        r = bsearch(&key, dir->entries, dir->nr, sizeof(*dir->entries),
                                                 ^
/datasets/git/refs/ref-cache.c:137:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!r)
               ^
                {
/datasets/git/refs/ref-cache.c:140:9: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return r - dir->entries;
               ^
/datasets/git/refs/ref-cache.c:153:20: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
        struct ref_entry *entry;
                          ^
                                = NULL
/datasets/git/refs/ref-cache.c:173:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        const char *slash;
        ^
/datasets/git/refs/ref-cache.c:155:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (entry_index == -1)
                              ^
                               {
/datasets/git/refs/ref-cache.c:173:14: warning: variable 'slash' is not initialized [cppcoreguidelines-init-variables]
        const char *slash;
                    ^
                          = NULL
/datasets/git/refs/ref-cache.c:174:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (slash = strchr(refname, '/'); slash; slash = strchr(slash + 1, '/')) {
        ^
/datasets/git/refs/ref-cache.c:174:37: warning: backward branch (for loop) is ID-dependent due to variable reference to 'slash' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (slash = strchr(refname, '/'); slash; slash = strchr(slash + 1, '/')) {
                                           ^
/datasets/git/refs/ref-cache.c:176:19: warning: variable 'subdir' is not initialized [cppcoreguidelines-init-variables]
                struct ref_dir *subdir;
                                ^
                                       = NULL
/datasets/git/refs/ref-cache.c:190:6: warning: variable 'entry_index' is not initialized [cppcoreguidelines-init-variables]
        int entry_index;
            ^
                        = 0
/datasets/git/refs/ref-cache.c:191:20: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
        struct ref_entry *entry;
                          ^
                                = NULL
/datasets/git/refs/ref-cache.c:193:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!dir)
                 ^
                  {
/datasets/git/refs/ref-cache.c:196:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (entry_index == -1)
                              ^
                               {
/datasets/git/refs/ref-cache.c:199:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return (entry->flag & REF_DIR) ? NULL : entry;
                ^
/datasets/git/refs/ref-cache.c:209:6: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (strcmp(ref1->name, ref2->name))
            ^
                                           != 0
/datasets/git/refs/ref-cache.c:209:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strcmp(ref1->name, ref2->name))
                                           ^
                                            {
/datasets/git/refs/ref-cache.c:214:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((ref1->flag & REF_DIR) || (ref2->flag & REF_DIR))
             ^
/datasets/git/refs/ref-cache.c:214:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((ref1->flag & REF_DIR) || (ref2->flag & REF_DIR))
                                       ^
/datasets/git/refs/ref-cache.c:214:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((ref1->flag & REF_DIR) || (ref2->flag & REF_DIR))
                                                             ^
                                                              {
/datasets/git/refs/ref-cache.c:218:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!oideq(&ref1->u.value.oid, &ref2->u.value.oid))
                                                           ^
                                                            {
/datasets/git/refs/ref-cache.c:231:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, j;
        ^~~~~~~~~
/datasets/git/refs/ref-cache.c:231:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, j;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs/ref-cache.c:231:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs/ref-cache.c:231:9: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int i, j;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs/ref-cache.c:231:9: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs/ref-cache.c:238:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (dir->sorted == dir->nr)
                                   ^
                                    {
/datasets/git/refs/ref-cache.c:241:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        QSORT(dir->entries, dir->nr, ref_entry_cmp);
        ^
/datasets/git/./git-compat-util.h:1304:56: note: expanded from macro 'QSORT'
#define QSORT(base, n, compar) sane_qsort((base), (n), sizeof(*(base)), compar)
                                                       ^
/datasets/git/refs/ref-cache.c:244:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0, j = 0; j < dir->nr; j++) {
        ^
/datasets/git/refs/ref-cache.c:244:21: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0, j = 0; j < dir->nr; j++) {
                           ^
/datasets/git/refs/ref-cache.c:246:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (last && is_dup_ref(last, entry))
                                                    ^
                                                     {
/datasets/git/refs/ref-cache.c:248:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/refs/ref-cache.c:272:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*prefix && *dirname == *prefix) {
        ^
/datasets/git/refs/ref-cache.c:276:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!*prefix)
                     ^
                      {
/datasets/git/refs/ref-cache.c:278:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (!*dirname)
        ^~~~~~~~~~~~~~~~~~~
/datasets/git/refs/ref-cache.c:278:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!*dirname)
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs/ref-cache.c:280:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refs/ref-cache.c:289:13: warning: function 'prime_ref_dir' is within a recursive call chain [misc-no-recursion]
static void prime_ref_dir(struct ref_dir *dir, const char *prefix)
            ^
/datasets/git/refs/ref-cache.c:289:13: note: example recursive call chain, starting from function 'prime_ref_dir'
/datasets/git/refs/ref-cache.c:304:4: note: Frame #1: function 'prime_ref_dir' calls function 'prime_ref_dir' here:
                        prime_ref_dir(get_ref_dir(entry), NULL);
                        ^
/datasets/git/refs/ref-cache.c:304:4: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/refs/ref-cache.c:297:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/refs/ref-cache.c:297:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refs/ref-cache.c:298:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < dir->nr; i++) {
        ^
/datasets/git/refs/ref-cache.c:298:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < dir->nr; i++) {
                    ^
/datasets/git/refs/ref-cache.c:300:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(entry->flag & REF_DIR)) {
                      ^
/datasets/git/refs/ref-cache.c:330:8: warning: accessing fields in struct 'cache_ref_iterator_level' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct cache_ref_iterator_level {
       ^
/datasets/git/refs/ref-cache.c:330:8: note: use "__attribute__((aligned(16)))" to align struct 'cache_ref_iterator_level' to 16 bytes
/datasets/git/refs/ref-cache.c:352:8: warning: accessing fields in struct 'cache_ref_iterator' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct cache_ref_iterator {
       ^
/datasets/git/refs/ref-cache.c:352:8: note: use "__attribute__((aligned(128)))" to align struct 'cache_ref_iterator' to 128 bytes
/datasets/git/refs/ref-cache.c:385:12: warning: function 'cache_ref_iterator_advance' has cognitive complexity of 30 (threshold 25) [readability-function-cognitive-complexity]
static int cache_ref_iterator_advance(struct ref_iterator *ref_iterator)
           ^
/datasets/git/refs/ref-cache.c:390:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (1) {
        ^
/datasets/git/refs/ref-cache.c:397:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (level->index == -1)
                ^
/datasets/git/refs/ref-cache.c:400:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (++level->index == level->dir->nr) {
                ^
/datasets/git/refs/ref-cache.c:402:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (--iter->levels_nr == 0)
                        ^
/datasets/git/refs/ref-cache.c:410:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (level->prefix_state == PREFIX_WITHIN_DIR) {
                ^
/datasets/git/refs/ref-cache.c:412:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (entry_prefix_state == PREFIX_EXCLUDES_DIR)
                        ^
/datasets/git/refs/ref-cache.c:414:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/refs/ref-cache.c:418:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (entry->flag & REF_DIR) {
                ^
/datasets/git/refs/ref-cache.c:420:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        ALLOC_GROW(iter->levels, iter->levels_nr + 1,
                        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/refs/ref-cache.c:420:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        ALLOC_GROW(iter->levels, iter->levels_nr + 1,
                        ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/refs/ref-cache.c:420:4: note: +5, including nesting penalty of 4, nesting level increased to 5
                        ALLOC_GROW(iter->levels, iter->levels_nr + 1,
                        ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/refs/ref-cache.c:420:4: note: +1, nesting level increased to 5
                        ALLOC_GROW(iter->levels, iter->levels_nr + 1,
                        ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/refs/ref-cache.c:427:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/refs/ref-cache.c:394:21: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
                struct ref_entry *entry;
                                  ^
                                        = NULL
/datasets/git/refs/ref-cache.c:395:21: warning: variable 'entry_prefix_state' is not initialized [cppcoreguidelines-init-variables]
                enum prefix_state entry_prefix_state;
                                  ^
/datasets/git/refs/ref-cache.c:397:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (level->index == -1)
                                       ^
                                        {
/datasets/git/refs/ref-cache.c:402:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (--iter->levels_nr == 0)
                                                   ^
                                                    {
/datasets/git/refs/ref-cache.c:412:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (entry_prefix_state == PREFIX_EXCLUDES_DIR)
                                                                      ^
                                                                       {
/datasets/git/refs/ref-cache.c:418:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (entry->flag & REF_DIR) {
                    ^
/datasets/git/refs/ref-cache.c:420:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        ALLOC_GROW(iter->levels, iter->levels_nr + 1,
                        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/refs/ref-cache.c:442:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (iter->repo != the_repository)
                                         ^
                                          {
/datasets/git/refs/ref-cache.c:458:35: warning: variable 'cache_ref_iterator_vtable' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct ref_iterator_vtable cache_ref_iterator_vtable = {
                                  ^
/datasets/git/refs/ref-cache.c:469:18: warning: variable 'dir' is not initialized [cppcoreguidelines-init-variables]
        struct ref_dir *dir;
                        ^
                            = NULL
/datasets/git/refs/ref-cache.c:470:29: warning: variable 'iter' is not initialized [cppcoreguidelines-init-variables]
        struct cache_ref_iterator *iter;
                                   ^
                                        = NULL
/datasets/git/refs/ref-cache.c:471:23: warning: variable 'ref_iterator' is not initialized [cppcoreguidelines-init-variables]
        struct ref_iterator *ref_iterator;
                             ^
                                          = NULL
/datasets/git/refs/ref-cache.c:472:35: warning: variable 'level' is not initialized [cppcoreguidelines-init-variables]
        struct cache_ref_iterator_level *level;
                                         ^
                                               = NULL
/datasets/git/refs/ref-cache.c:475:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prefix && *prefix)
                              ^
                               {
/datasets/git/refs/ref-cache.c:477:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!dir)
                 ^
                  {
/datasets/git/refs/ref-cache.c:481:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prime_dir)
                      ^
                       {
/datasets/git/refs/ref-cache.c:487:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(iter->levels, 10, iter->levels_alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/refspec.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "strvec.h"
^        ~~~~~~~~~~
         "refs.h"
/datasets/git/refspec.c:6:28: warning: variable 's_tag_refspec' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct refspec_item s_tag_refspec = {
                           ^
/datasets/git/refspec.c:17:28: warning: variable 'tag_refspec' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
const struct refspec_item *tag_refspec = &s_tag_refspec;
                           ^
/datasets/git/refspec.c:23:12: warning: function 'parse_refspec' has cognitive complexity of 60 (threshold 25) [readability-function-cognitive-complexity]
static int parse_refspec(struct refspec_item *item, const char *refspec, int fetch)
           ^
/datasets/git/refspec.c:33:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (*lhs == '+') {
        ^
/datasets/git/refspec.c:36:9: note: +1, nesting level increased to 1
        } else if (*lhs == '^') {
               ^
/datasets/git/refspec.c:44:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (item->negative && rhs)
        ^
/datasets/git/refspec.c:44:21: note: +1
        if (item->negative && rhs)
                           ^
/datasets/git/refspec.c:51:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!fetch && rhs == lhs && rhs[1] == '\0') {
        ^
/datasets/git/refspec.c:51:27: note: +1
        if (!fetch && rhs == lhs && rhs[1] == '\0') {
                                 ^
/datasets/git/refspec.c:56:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (rhs) {
        ^
/datasets/git/refspec.c:58:24: note: +1
                is_glob = (1 <= rlen && strchr(rhs, '*'));
                                     ^
/datasets/git/refspec.c:60:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/refspec.c:64:14: note: +1, including nesting penalty of 0, nesting level increased to 1
        llen = (rhs ? (rhs - lhs - 1) : strlen(lhs));
                    ^
/datasets/git/refspec.c:65:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (1 <= llen && memchr(lhs, '*', llen)) {
        ^
/datasets/git/refspec.c:65:16: note: +1
        if (1 <= llen && memchr(lhs, '*', llen)) {
                      ^
/datasets/git/refspec.c:66:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((rhs && !is_glob) || (!rhs && !item->negative && fetch))
                ^
/datasets/git/refspec.c:66:25: note: +1
                if ((rhs && !is_glob) || (!rhs && !item->negative && fetch))
                                      ^
/datasets/git/refspec.c:66:12: note: +1
                if ((rhs && !is_glob) || (!rhs && !item->negative && fetch))
                         ^
/datasets/git/refspec.c:66:53: note: +1
                if ((rhs && !is_glob) || (!rhs && !item->negative && fetch))
                                                                  ^
/datasets/git/refspec.c:69:9: note: +1, nesting level increased to 1
        } else if (rhs && is_glob) {
               ^
/datasets/git/refspec.c:69:17: note: +1
        } else if (rhs && is_glob) {
                       ^
/datasets/git/refspec.c:74:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (llen == 1 && *lhs == '@')
        ^
/datasets/git/refspec.c:74:16: note: +1
        if (llen == 1 && *lhs == '@')
                      ^
/datasets/git/refspec.c:76:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/refspec.c:78:44: note: +1, including nesting penalty of 0, nesting level increased to 1
        flags = REFNAME_ALLOW_ONELEVEL | (is_glob ? REFNAME_REFSPEC_PATTERN : 0);
                                                  ^
/datasets/git/refspec.c:80:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (item->negative) {
        ^
/datasets/git/refspec.c:89:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!*item->src)
                ^
/datasets/git/refspec.c:91:8: note: +1, nesting level increased to 2
                else if (llen == the_hash_algo->hexsz && !get_oid_hex(item->src, &unused))
                     ^
/datasets/git/refspec.c:91:41: note: +1
                else if (llen == the_hash_algo->hexsz && !get_oid_hex(item->src, &unused))
                                                      ^
/datasets/git/refspec.c:93:8: note: +1, nesting level increased to 2
                else if (!check_refname_format(item->src, flags))
                     ^
/datasets/git/refspec.c:95:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/refspec.c:102:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (fetch) {
        ^
/datasets/git/refspec.c:106:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!*item->src)
                ^
/datasets/git/refspec.c:108:8: note: +1, nesting level increased to 2
                else if (llen == the_hash_algo->hexsz && !get_oid_hex(item->src, &unused))
                     ^
/datasets/git/refspec.c:108:41: note: +1
                else if (llen == the_hash_algo->hexsz && !get_oid_hex(item->src, &unused))
                                                      ^
/datasets/git/refspec.c:110:8: note: +1, nesting level increased to 2
                else if (!check_refname_format(item->src, flags))
                     ^
/datasets/git/refspec.c:112:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/refspec.c:115:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!item->dst)
                ^
/datasets/git/refspec.c:117:8: note: +1, nesting level increased to 2
                else if (!*item->dst)
                     ^
/datasets/git/refspec.c:119:8: note: +1, nesting level increased to 2
                else if (!check_refname_format(item->dst, flags))
                     ^
/datasets/git/refspec.c:121:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/refspec.c:123:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/refspec.c:131:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!*item->src)
                ^
/datasets/git/refspec.c:133:8: note: +1, nesting level increased to 2
                else if (is_glob) {
                     ^
/datasets/git/refspec.c:134:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (check_refname_format(item->src, flags))
                        ^
/datasets/git/refspec.c:137:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/refspec.c:146:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!item->dst) {
                ^
/datasets/git/refspec.c:147:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (check_refname_format(item->src, flags))
                        ^
/datasets/git/refspec.c:149:10: note: +1, nesting level increased to 2
                } else if (!*item->dst) {
                       ^
/datasets/git/refspec.c:151:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/refspec.c:152:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (check_refname_format(item->dst, flags))
                        ^
/datasets/git/refspec.c:25:9: warning: variable 'llen' is not initialized [cppcoreguidelines-init-variables]
        size_t llen;
               ^
                    = 0
/datasets/git/refspec.c:26:6: warning: variable 'is_glob' is not initialized [cppcoreguidelines-init-variables]
        int is_glob;
            ^
                    = 0
/datasets/git/refspec.c:27:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *lhs, *rhs;
        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refspec.c:27:14: warning: variable 'lhs' is not initialized [cppcoreguidelines-init-variables]
        const char *lhs, *rhs;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refspec.c:27:20: warning: variable 'rhs' is not initialized [cppcoreguidelines-init-variables]
        const char *lhs, *rhs;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refspec.c:28:6: warning: variable 'flags' is not initialized [cppcoreguidelines-init-variables]
        int flags;
            ^
                  = 0
/datasets/git/refspec.c:44:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (item->negative && rhs)
                                  ^
                                   {
/datasets/git/refspec.c:66:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((rhs && !is_glob) || (!rhs && !item->negative && fetch))
                                                                            ^
                                                                             {
/datasets/git/refspec.c:74:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (llen == 1 && *lhs == '@')
                                     ^
                                      {
/datasets/git/refspec.c:76:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/refspec.c:78:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        flags = REFNAME_ALLOW_ONELEVEL | (is_glob ? REFNAME_REFSPEC_PATTERN : 0);
                ^
/datasets/git/./refs/../refs.h:523:32: note: expanded from macro 'REFNAME_ALLOW_ONELEVEL'
#define REFNAME_ALLOW_ONELEVEL 1
                               ^
/datasets/git/refspec.c:89:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!*item->src)
                                ^
                                 {
/datasets/git/refspec.c:90:4: warning: repeated branch in conditional chain [bugprone-branch-clone]
                        return 0; /* negative refspecs must not be empty */
                        ^
/datasets/git/refspec.c:90:12: note: end of the original
                        return 0; /* negative refspecs must not be empty */
                                ^
/datasets/git/refspec.c:92:4: note: clone 1 starts here
                        return 0; /* negative refpsecs cannot be exact sha1 */
                        ^
/datasets/git/refspec.c:96:4: note: clone 2 starts here
                        return 0;
                        ^
/datasets/git/refspec.c:91:3: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                else if (llen == the_hash_algo->hexsz && !get_oid_hex(item->src, &unused))
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/refspec.c:91:77: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (llen == the_hash_algo->hexsz && !get_oid_hex(item->src, &unused))
                                                                                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refspec.c:93:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!check_refname_format(item->src, flags))
                                                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refspec.c:95:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/refspec.c:106:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!*item->src)
                                ^
                                 {
/datasets/git/refspec.c:107:4: warning: repeated branch in conditional chain [bugprone-branch-clone]
                        ; /* empty is ok; it means "HEAD" */
                        ^
/datasets/git/refspec.c:107:5: note: end of the original
                        ; /* empty is ok; it means "HEAD" */
                         ^
/datasets/git/refspec.c:111:4: note: clone 1 starts here
                        ; /* valid looking ref is ok */
                        ^
/datasets/git/refspec.c:108:77: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (llen == the_hash_algo->hexsz && !get_oid_hex(item->src, &unused))
                                                                                          ^
                                                                                           {
/datasets/git/refspec.c:110:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!check_refname_format(item->src, flags))
                                                                 ^
                                                                  {
/datasets/git/refspec.c:112:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/refspec.c:115:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!item->dst)
                               ^
                                {
/datasets/git/refspec.c:116:4: warning: repeated branch in conditional chain [bugprone-branch-clone]
                        ; /* missing is ok; it is the same as empty */
                        ^
/datasets/git/refspec.c:116:5: note: end of the original
                        ; /* missing is ok; it is the same as empty */
                         ^
/datasets/git/refspec.c:118:4: note: clone 1 starts here
                        ; /* empty is ok; it means "do not store" */
                        ^
/datasets/git/refspec.c:120:4: note: clone 2 starts here
                        ; /* valid looking ref is ok */
                        ^
/datasets/git/refspec.c:117:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!*item->dst)
                                     ^
                                      {
/datasets/git/refspec.c:119:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!check_refname_format(item->dst, flags))
                                                                 ^
                                                                  {
/datasets/git/refspec.c:121:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/refspec.c:131:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!*item->src)
                                ^
                                 {
/datasets/git/refspec.c:132:4: warning: repeated branch in conditional chain [bugprone-branch-clone]
                        ; /* empty is ok */
                        ^
/datasets/git/refspec.c:132:5: note: end of the original
                        ; /* empty is ok */
                         ^
/datasets/git/refspec.c:138:4: note: clone 1 starts here
                        ; /* anything goes, for now */
                        ^
/datasets/git/refspec.c:134:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (check_refname_format(item->src, flags))
                                                                   ^
                                                                    {
/datasets/git/refspec.c:137:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/refspec.c:147:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (check_refname_format(item->src, flags))
                                                                   ^
                                                                    {
/datasets/git/refspec.c:152:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (check_refname_format(item->dst, flags))
                                                                   ^
                                                                    {
/datasets/git/refspec.c:162:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(item, 0, sizeof(*item));
        ^~~~~~
/datasets/git/refspec.c:162:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(item, 0, sizeof(*item));
        ^~~~~~
/datasets/git/refspec.c:169:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!refspec_item_init(item, refspec, fetch))
                                                     ^
                                                      {
/datasets/git/refspec.c:175:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(item->src);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/refspec.c:176:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(item->dst);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/refspec.c:183:35: warning: parameter name 'rs' is too short, expected at least 3 characters [readability-identifier-length]
void refspec_init(struct refspec *rs, int fetch)
                                  ^
/datasets/git/refspec.c:185:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(rs, 0, sizeof(*rs));
        ^~~~~~
/datasets/git/refspec.c:185:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(rs, 0, sizeof(*rs));
        ^~~~~~
/datasets/git/refspec.c:189:50: warning: parameter name 'rs' is too short, expected at least 3 characters [readability-identifier-length]
static void refspec_append_nodup(struct refspec *rs, char *refspec)
                                                 ^
/datasets/git/refspec.c:195:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(rs->items, rs->nr + 1, rs->alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/refspec.c:198:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(rs->raw, rs->raw_nr + 1, rs->raw_alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/refspec.c:202:37: warning: parameter name 'rs' is too short, expected at least 3 characters [readability-identifier-length]
void refspec_append(struct refspec *rs, const char *refspec)
                                    ^
/datasets/git/refspec.c:207:38: warning: parameter name 'rs' is too short, expected at least 3 characters [readability-identifier-length]
void refspec_appendf(struct refspec *rs, const char *fmt, ...)
                                     ^
/datasets/git/refspec.c:209:10: warning: variable name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
        va_list ap;
                ^
/datasets/git/refspec.c:216:38: warning: parameter name 'rs' is too short, expected at least 3 characters [readability-identifier-length]
void refspec_appendn(struct refspec *rs, const char **refspecs, int nr)
                                     ^
/datasets/git/refspec.c:216:69: warning: parameter name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
void refspec_appendn(struct refspec *rs, const char **refspecs, int nr)
                                                                    ^
/datasets/git/refspec.c:218:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/refspec.c:218:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refspec.c:219:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr; i++)
        ^
/datasets/git/refspec.c:219:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < nr; i++)
                                ^
                                 {
/datasets/git/refspec.c:223:36: warning: parameter name 'rs' is too short, expected at least 3 characters [readability-identifier-length]
void refspec_clear(struct refspec *rs)
                                   ^
/datasets/git/refspec.c:225:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/refspec.c:225:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refspec.c:227:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < rs->nr; i++)
        ^
/datasets/git/refspec.c:227:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < rs->nr; i++)
                                    ^
                                     {
/datasets/git/refspec.c:230:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(rs->items);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/refspec.c:234:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < rs->raw_nr; i++)
        ^
/datasets/git/refspec.c:234:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < rs->raw_nr; i++)
                                        ^
                                         {
/datasets/git/refspec.c:236:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(rs->raw);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/refspec.c:253:6: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        int result;
            ^
                   = 0
/datasets/git/refspec.c:261:49: warning: parameter name 'rs' is too short, expected at least 3 characters [readability-identifier-length]
void refspec_ref_prefixes(const struct refspec *rs,
                                                ^
/datasets/git/refspec.c:264:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/refspec.c:264:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/refspec.c:265:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < rs->nr; i++) {
        ^
/datasets/git/refspec.c:269:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (item->exact_sha1 || item->negative)
                                                       ^
                                                        {
/datasets/git/refspec.c:271:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (rs->fetch == REFSPEC_FETCH)
                                               ^
                                                {
/datasets/git/refspec.c:272:4: warning: repeated branch in conditional chain [bugprone-branch-clone]
                        prefix = item->src;
                        ^
/datasets/git/refspec.c:272:22: note: end of the original
                        prefix = item->src;
                                          ^
/datasets/git/refspec.c:276:4: note: clone 1 starts here
                        prefix = item->src;
                        ^
/datasets/git/refspec.c:273:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (item->dst)
                                   ^
                                    {
/datasets/git/refspec.c:275:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (item->src && !item->exact_sha1)
                                                        ^
                                                         {
/datasets/git/refspec.c:278:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!prefix)
                            ^
                             {
reftable/basics.c:11:38: warning: parameter name 'i' is too short, expected at least 3 characters [readability-identifier-length]
void put_be24(uint8_t *out, uint32_t i)
                                     ^
/datasets/git/reftable/basics.c:13:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        out[0] = (uint8_t)((i >> 16) & 0xff);
                           ^           ~~~~
/datasets/git/reftable/basics.c:13:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        out[0] = (uint8_t)((i >> 16) & 0xff);
                            ^    ~~
/datasets/git/reftable/basics.c:13:27: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        out[0] = (uint8_t)((i >> 16) & 0xff);
                                 ^
/datasets/git/reftable/basics.c:13:33: warning: 0xff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        out[0] = (uint8_t)((i >> 16) & 0xff);
                                       ^
/datasets/git/reftable/basics.c:14:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        out[1] = (uint8_t)((i >> 8) & 0xff);
                           ^          ~~~~
/datasets/git/reftable/basics.c:14:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        out[1] = (uint8_t)((i >> 8) & 0xff);
                            ^    ~
/datasets/git/reftable/basics.c:14:27: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        out[1] = (uint8_t)((i >> 8) & 0xff);
                                 ^
/datasets/git/reftable/basics.c:14:32: warning: 0xff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        out[1] = (uint8_t)((i >> 8) & 0xff);
                                      ^
/datasets/git/reftable/basics.c:15:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        out[2] = (uint8_t)(i & 0xff);
                           ^   ~~~~
/datasets/git/reftable/basics.c:15:25: warning: 0xff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        out[2] = (uint8_t)(i & 0xff);
                               ^
/datasets/git/reftable/basics.c:18:28: warning: parameter name 'in' is too short, expected at least 3 characters [readability-identifier-length]
uint32_t get_be24(uint8_t *in)
                           ^
/datasets/git/reftable/basics.c:18:28: warning: pointer parameter 'in' can be pointer to const [readability-non-const-parameter]
uint32_t get_be24(uint8_t *in)
                           ^
                  const 
/datasets/git/reftable/basics.c:20:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return (uint32_t)(in[0]) << 16 | (uint32_t)(in[1]) << 8 |
               ^                    ~~
/datasets/git/reftable/basics.c:20:30: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        return (uint32_t)(in[0]) << 16 | (uint32_t)(in[1]) << 8 |
                                    ^
/datasets/git/reftable/basics.c:20:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return (uint32_t)(in[0]) << 16 | (uint32_t)(in[1]) << 8 |
                                         ^                    ~
/datasets/git/reftable/basics.c:20:56: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        return (uint32_t)(in[0]) << 16 | (uint32_t)(in[1]) << 8 |
                                                              ^
/datasets/git/reftable/basics.c:24:38: warning: parameter name 'i' is too short, expected at least 3 characters [readability-identifier-length]
void put_be16(uint8_t *out, uint16_t i)
                                     ^
/datasets/git/reftable/basics.c:26:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        out[0] = (uint8_t)((i >> 8) & 0xff);
                           ^~~~~~~~
/datasets/git/reftable/basics.c:26:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        out[0] = (uint8_t)((i >> 8) & 0xff);
                            ^    ~
/datasets/git/reftable/basics.c:26:27: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        out[0] = (uint8_t)((i >> 8) & 0xff);
                                 ^
/datasets/git/reftable/basics.c:26:32: warning: 0xff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        out[0] = (uint8_t)((i >> 8) & 0xff);
                                      ^
/datasets/git/reftable/basics.c:27:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        out[1] = (uint8_t)(i & 0xff);
                           ^   ~~~~
/datasets/git/reftable/basics.c:27:25: warning: 0xff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        out[1] = (uint8_t)(i & 0xff);
                               ^
/datasets/git/reftable/basics.c:30:22: warning: parameter name 'sz' is too short, expected at least 3 characters [readability-identifier-length]
int binsearch(size_t sz, int (*f)(size_t k, void *args), void *args)
                     ^
/datasets/git/reftable/basics.c:30:32: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
int binsearch(size_t sz, int (*f)(size_t k, void *args), void *args)
                               ^
/datasets/git/reftable/basics.c:30:42: warning: parameter name 'k' is too short, expected at least 3 characters [readability-identifier-length]
int binsearch(size_t sz, int (*f)(size_t k, void *args), void *args)
                                         ^
/datasets/git/reftable/basics.c:33:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        size_t hi = sz;
        ^
/datasets/git/reftable/basics.c:32:9: warning: variable name 'lo' is too short, expected at least 3 characters [readability-identifier-length]
        size_t lo = 0;
               ^
/datasets/git/reftable/basics.c:33:9: warning: variable name 'hi' is too short, expected at least 3 characters [readability-identifier-length]
        size_t hi = sz;
               ^
/datasets/git/reftable/basics.c:40:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (hi - lo > 1) {
        ^
/datasets/git/reftable/basics.c:40:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'hi' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (hi - lo > 1) {
               ^
/datasets/git/reftable/basics.c:43:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (f(mid, args))
                                 ^
                                  {
/datasets/git/reftable/basics.c:45:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/reftable/basics.c:49:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (lo)
               ^
                {
/datasets/git/reftable/basics.c:50:10: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                return hi;
                       ^
/datasets/git/reftable/basics.c:55:24: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
void free_names(char **a)
                       ^
/datasets/git/reftable/basics.c:57:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        char **p;
        ^
/datasets/git/reftable/basics.c:57:9: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        char **p;
               ^
                 = NULL
/datasets/git/reftable/basics.c:57:9: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/reftable/basics.c:69:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        char **p = names;
        ^
/datasets/git/reftable/basics.c:61:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = a; *p; p++) {
        ^
/datasets/git/reftable/basics.c:61:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = a; *p; p++) {
                    ^
/datasets/git/reftable/basics.c:69:9: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        char **p = names;
               ^
/datasets/git/reftable/basics.c:70:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; *p; p++) {
        ^
/datasets/git/reftable/basics.c:70:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; *p; p++) {
               ^
/datasets/git/reftable/basics.c:73:9: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return p - names;
               ^
/datasets/git/reftable/basics.c:82:8: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        char *p = buf;
              ^
/datasets/git/reftable/basics.c:84:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (p < end) {
        ^
/datasets/git/reftable/basics.c:84:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (p < end) {
               ^
/datasets/git/reftable/basics.c:107:24: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
int names_equal(char **a, char **b)
                       ^
/datasets/git/reftable/basics.c:107:34: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
int names_equal(char **a, char **b)
                                 ^
/datasets/git/reftable/basics.c:109:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0;
            ^
/datasets/git/reftable/basics.c:110:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; a[i] && b[i]; i++) {
        ^
/datasets/git/reftable/basics.c:111:7: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (strcmp(a[i], b[i])) {
                    ^
                                       != 0
/datasets/git/reftable/basics.c:119:39: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
int common_prefix_size(struct strbuf *a, struct strbuf *b)
                                      ^
/datasets/git/reftable/basics.c:119:57: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
int common_prefix_size(struct strbuf *a, struct strbuf *b)
                                                        ^
/datasets/git/./strbuf.h:68:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        size_t len;
        ^
/datasets/git/reftable/basics.c:121:6: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        int p = 0;
            ^
/datasets/git/reftable/basics.c:122:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; p < a->len && p < b->len; p++) {
        ^
/datasets/git/reftable/basics.c:122:9: warning: backward branch (for loop) is ID-dependent due to member reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; p < a->len && p < b->len; p++) {
               ^
/datasets/git/reftable/basics.c:123:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (a->buf[p] != b->buf[p])
                                           ^
                                            {
/datasets/git/reftable/block.c:16:1: warning: system include zlib.h not allowed [llvmlibc-restrict-system-libc-headers]
#include <zlib.h>
^~~~~~~~~~~~~~~~~
/datasets/git/reftable/block.c:20:2: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
        switch (version) {
        ^
/datasets/git/reftable/block.c:22:10: warning: 24 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                return 24;
                       ^
/datasets/git/reftable/block.c:24:10: warning: 28 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                return 28;
                       ^
/datasets/git/reftable/block.c:31:2: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
        switch (version) {
        ^
/datasets/git/reftable/block.c:33:10: warning: 68 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                return 68;
                       ^
/datasets/git/reftable/block.c:35:10: warning: 72 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                return 72;
                       ^
/datasets/git/reftable/block.c:40:63: warning: parameter name 'w' is too short, expected at least 3 characters [readability-identifier-length]
static int block_writer_register_restart(struct block_writer *w, int n,
                                                              ^
/datasets/git/reftable/block.c:40:66: warning: 2 adjacent parameters of 'block_writer_register_restart' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int block_writer_register_restart(struct block_writer *w, int n,
                                                                 ^~~~~~
/datasets/git/reftable/block.c:40:70: note: the first parameter in the range is 'n'
static int block_writer_register_restart(struct block_writer *w, int n,
                                                                     ^
/datasets/git/reftable/block.c:41:11: note: the last parameter in the range is 'is_restart'
                                         int is_restart, struct strbuf *key)
                                             ^~~~~~~~~~
/datasets/git/reftable/block.c:43:13: warning: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int rlen = w->restart_len;
                   ^
/datasets/git/reftable/block.c:44:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (rlen >= MAX_RESTARTS) {
                    ^
/datasets/git/reftable/constants.h:18:24: note: expanded from macro 'MAX_RESTARTS'
#define MAX_RESTARTS ((1 << 16) - 1)
                       ^
/datasets/git/reftable/block.c:51:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (2 + 3 * rlen + n > w->block_size - w->next)
                                                       ^
                                                        {
/datasets/git/reftable/block.c:71:45: warning: parameter name 'bw' is too short, expected at least 3 characters [readability-identifier-length]
void block_writer_init(struct block_writer *bw, uint8_t typ, uint8_t *buf,
                                            ^
/datasets/git/reftable/block.c:72:10: warning: 3 adjacent parameters of 'block_writer_init' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                       uint32_t block_size, uint32_t header_off, int hash_size)
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/reftable/block.c:72:19: note: the first parameter in the range is 'block_size'
                       uint32_t block_size, uint32_t header_off, int hash_size)
                                ^~~~~~~~~~
/datasets/git/reftable/block.c:72:56: note: the last parameter in the range is 'hash_size'
                       uint32_t block_size, uint32_t header_off, int hash_size)
                                                                     ^~~~~~~~~
/datasets/git/reftable/block.c:72:10: note: 
                       uint32_t block_size, uint32_t header_off, int hash_size)
                       ^
/datasets/git/reftable/block.c:72:52: note: 'uint32_t' and 'int' may be implicitly converted: 'uint32_t' (as 'unsigned int') -> 'int', 'int' -> 'uint32_t' (as 'unsigned int')
                       uint32_t block_size, uint32_t header_off, int hash_size)
                                                                 ^
/datasets/git/reftable/block.c:80:25: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        bw->restart_interval = 16;
                               ^
/datasets/git/reftable/block.c:86:48: warning: parameter name 'bw' is too short, expected at least 3 characters [readability-identifier-length]
uint8_t block_writer_type(struct block_writer *bw)
                                               ^
/datasets/git/reftable/block.c:94:43: warning: parameter name 'w' is too short, expected at least 3 characters [readability-identifier-length]
int block_writer_add(struct block_writer *w, struct reftable_record *rec)
                                          ^
/datasets/git/reftable/block.c:108:6: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
        int n = 0;
            ^
/datasets/git/reftable/block.c:119:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (n < 0)
                  ^
                   {
/datasets/git/reftable/block.c:124:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (n < 0)
                  ^
                   {
/datasets/git/reftable/block.c:128:41: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        err = block_writer_register_restart(w, start.len - out.len, is_restart,
                                               ^
/datasets/git/reftable/block.c:135:46: warning: parameter name 'w' is too short, expected at least 3 characters [readability-identifier-length]
int block_writer_finish(struct block_writer *w)
                                             ^
/datasets/git/reftable/block.c:137:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/reftable/block.c:137:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/reftable/block.c:138:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < w->restart_len; i++) {
        ^
/datasets/git/reftable/block.c:148:27: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int block_header_skip = 4 + w->header_off;
                                        ^
/datasets/git/reftable/block.c:150:21: warning: narrowing conversion from 'double' to 'uLongf' (aka 'unsigned long') [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                uLongf dest_cap = src_len * 1.001 + 12;
                                  ^
/datasets/git/reftable/block.c:150:21: warning: narrowing conversion from 'uLongf' (aka 'unsigned long') to 'double' [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
/datasets/git/reftable/block.c:150:31: warning: 1.001 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                uLongf dest_cap = src_len * 1.001 + 12;
                                            ^
/datasets/git/reftable/block.c:150:39: warning: 12 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                uLongf dest_cap = src_len * 1.001 + 12;
                                                    ^
/datasets/git/reftable/block.c:153:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (1) {
                ^
/datasets/git/reftable/block.c:157:16: warning: 9 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                                src_len, 9);
                                                         ^
/datasets/git/reftable/block.c:162:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (compressed)
                                               ^
                                                {
/datasets/git/reftable/block.c:171:4: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memcpy(w->buf + block_header_skip, compressed,
                        ^~~~~~
/datasets/git/reftable/block.c:171:4: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                        memcpy(w->buf + block_header_skip, compressed,
                        ^~~~~~
/datasets/git/reftable/block.c:178:9: warning: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return w->next;
               ^
/datasets/git/reftable/block.c:181:48: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
uint8_t block_reader_type(struct block_reader *r)
                                               ^
/datasets/git/reftable/block.c:186:44: warning: parameter name 'br' is too short, expected at least 3 characters [readability-identifier-length]
int block_reader_init(struct block_reader *br, struct reftable_block *block,
                                           ^
/datasets/git/reftable/block.c:187:9: warning: 3 adjacent parameters of 'block_reader_init' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                      uint32_t header_off, uint32_t table_block_size,
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/reftable/block.c:187:18: note: the first parameter in the range is 'header_off'
                      uint32_t header_off, uint32_t table_block_size,
                               ^~~~~~~~~~
/datasets/git/reftable/block.c:188:13: note: the last parameter in the range is 'hash_size'
                      int hash_size)
                          ^~~~~~~~~
/datasets/git/reftable/block.c:187:9: note: 
                      uint32_t header_off, uint32_t table_block_size,
                      ^
/datasets/git/reftable/block.c:188:9: note: 'uint32_t' and 'int' may be implicitly converted: 'uint32_t' (as 'unsigned int') -> 'int', 'int' -> 'uint32_t' (as 'unsigned int')
                      int hash_size)
                      ^
/datasets/git/reftable/block.c:192:11: warning: variable name 'sz' is too short, expected at least 3 characters [readability-identifier-length]
        uint32_t sz = get_be24(block->data + header_off + 1);
                 ^
/datasets/git/reftable/block.c:205:27: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int block_header_skip = 4 + header_off;
                                        ^
/datasets/git/reftable/block.c:214:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(uncompressed, block->data, block_header_skip);
                ^~~~~~
/datasets/git/reftable/block.c:214:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(uncompressed, block->data, block_header_skip);
                ^~~~~~
/datasets/git/reftable/block.c:233:16: warning: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                block->len = sz;
                             ^
/datasets/git/reftable/block.c:236:35: warning: repeated branch in conditional chain [bugprone-branch-clone]
        } else if (full_block_size == 0) {
                                         ^
/datasets/git/reftable/block.c:238:3: note: end of the original
        } else if (sz < full_block_size && sz < block->len &&
         ^
/datasets/git/reftable/block.c:239:28: note: clone 1 starts here
                   block->data[sz] != 0) {
                                         ^
/datasets/git/reftable/block.c:267:66: warning: parameter name 'br' is too short, expected at least 3 characters [readability-identifier-length]
static uint32_t block_reader_restart_offset(struct block_reader *br, int i)
                                                                 ^
/datasets/git/reftable/block.c:267:74: warning: parameter name 'i' is too short, expected at least 3 characters [readability-identifier-length]
static uint32_t block_reader_restart_offset(struct block_reader *br, int i)
                                                                         ^
/datasets/git/reftable/block.c:269:18: warning: result of multiplication in type 'int' is used as a pointer offset after an implicit widening conversion to type 'ptrdiff_t' [bugprone-implicit-widening-of-multiplication-result]
        return get_be24(br->restart_bytes + 3 * i);
                        ^
/datasets/git/reftable/block.c:269:38: note: make conversion explicit to silence this warning
        return get_be24(br->restart_bytes + 3 * i);
                                            ^~~~~
                                            (ptrdiff_t)( )
/datasets/git/reftable/block.c:269:38: note: perform multiplication in a wider type
        return get_be24(br->restart_bytes + 3 * i);
                                            ^
                                            (ptrdiff_t)
/datasets/git/reftable/block.c:272:46: warning: parameter name 'br' is too short, expected at least 3 characters [readability-identifier-length]
void block_reader_start(struct block_reader *br, struct block_iter *it)
                                             ^
/datasets/git/reftable/block.c:272:69: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
void block_reader_start(struct block_reader *br, struct block_iter *it)
                                                                    ^
/datasets/git/reftable/block.c:279:8: warning: accessing fields in struct 'restart_find_args' is inefficient due to padding; only needs 36 bytes but is using 40 bytes [altera-struct-pack-align]
struct restart_find_args {
       ^
/datasets/git/reftable/block.c:279:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'restart_find_args'
/datasets/git/reftable/block.c:279:8: warning: accessing fields in struct 'restart_find_args' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct restart_find_args {
       ^
/datasets/git/reftable/block.c:279:8: note: use "__attribute__((aligned(64)))" to align struct 'restart_find_args' to 64 bytes
/datasets/git/reftable/block.c:287:28: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        struct restart_find_args *a = args;
                                  ^
/datasets/git/reftable/block.c:288:51: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        uint32_t off = block_reader_restart_offset(a->r, idx);
                                                         ^
/datasets/git/reftable/block.c:289:21: warning: variable name 'in' is too short, expected at least 3 characters [readability-identifier-length]
        struct string_view in = {
                           ^
/datasets/git/reftable/block.c:298:10: warning: variable 'unused_extra' is not initialized [cppcoreguidelines-init-variables]
        uint8_t unused_extra;
                ^
                             = 0
/datasets/git/reftable/block.c:299:6: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
        int n = reftable_decode_key(&rkey, &unused_extra, last_key, in);
            ^
/datasets/git/reftable/block.c:300:6: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        int result;
            ^
                   = 0
/datasets/git/reftable/block.c:319:40: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
int block_iter_next(struct block_iter *it, struct reftable_record *rec)
                                       ^
/datasets/git/reftable/block.c:321:21: warning: variable name 'in' is too short, expected at least 3 characters [readability-identifier-length]
        struct string_view in = {
                           ^
/datasets/git/reftable/block.c:328:6: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
        int n = 0;
            ^
/datasets/git/reftable/block.c:330:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (it->next_off >= it->br->block_len)
                                              ^
                                               {
/datasets/git/reftable/block.c:334:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (n < 0)
                  ^
                   {
/datasets/git/reftable/block.c:337:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!key.len)
                     ^
                      {
/datasets/git/reftable/block.c:342:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (n < 0)
                  ^
                   {
/datasets/git/reftable/block.c:353:49: warning: parameter name 'br' is too short, expected at least 3 characters [readability-identifier-length]
int block_reader_first_key(struct block_reader *br, struct strbuf *key)
                                                ^
/datasets/git/reftable/block.c:356:12: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int off = br->header_off + 4;
                  ^
/datasets/git/reftable/block.c:357:21: warning: variable name 'in' is too short, expected at least 3 characters [readability-identifier-length]
        struct string_view in = {
                           ^
/datasets/git/reftable/block.c:363:6: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
        int n = reftable_decode_key(key, &extra, empty, in);
            ^
/datasets/git/reftable/block.c:364:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (n < 0)
                  ^
                   {
/datasets/git/reftable/block.c:366:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!key->len)
                      ^
                       {
/datasets/git/reftable/block.c:372:40: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
int block_iter_seek(struct block_iter *it, struct strbuf *want)
                                       ^
/datasets/git/reftable/block.c:377:42: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
void block_iter_close(struct block_iter *it)
                                         ^
/datasets/git/reftable/block.c:382:44: warning: parameter name 'br' is too short, expected at least 3 characters [readability-identifier-length]
int block_reader_seek(struct block_reader *br, struct block_iter *it,
                                           ^
/datasets/git/reftable/block.c:382:67: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
int block_reader_seek(struct block_reader *br, struct block_iter *it,
                                                                  ^
/datasets/git/reftable/block.c:396:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = binsearch(br->restart_count, &restart_key_less, &args);
            ^
/datasets/git/reftable/block.c:413:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/reftable/block.c:416:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err < 0)
                            ^
                             {
/datasets/git/reftable/block.c:436:48: warning: parameter name 'bw' is too short, expected at least 3 characters [readability-identifier-length]
void block_writer_release(struct block_writer *bw)
                                               ^
/datasets/git/reftable/block.c:438:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(bw->restarts);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/reftable/block.c:446:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (blockp && source.ops)
                                 ^
                                  {
reftable/block.h:125:6: warning: function 'reftable_block_done' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
void reftable_block_done(struct reftable_block *ret);
     ^
/datasets/git/reftable/block.c:443:6: note: the definition seen here
void reftable_block_done(struct reftable_block *blockp)
     ^
/datasets/git/reftable/block.h:125:6: note: differing parameters are named here: ('ret'), in definition: ('blockp')
void reftable_block_done(struct reftable_block *ret);
     ^                                          ~~~
                                                blockp
reftable/blocksource.c:16:39: warning: parameter 'b' is unused [misc-unused-parameters]
static void strbuf_return_block(void *b, struct reftable_block *dest)
                                      ^
reftable/blocksource.c:16:39: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/reftable/blocksource.c:18:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (dest->len)
                      ^
                       {
/datasets/git/reftable/blocksource.c:19:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(dest->data, 0xff, dest->len);
                ^~~~~~
/datasets/git/reftable/blocksource.c:19:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(dest->data, 0xff, dest->len);
                ^~~~~~
/datasets/git/reftable/blocksource.c:19:22: warning: 0xff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                memset(dest->data, 0xff, dest->len);
                                   ^
/datasets/git/reftable/blocksource.c:23:32: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static void strbuf_close(void *b)
                               ^
/datasets/git/reftable/blocksource.c:27:36: warning: parameter name 'v' is too short, expected at least 3 characters [readability-identifier-length]
static int strbuf_read_block(void *v, struct reftable_block *dest, uint64_t off,
                                   ^
/datasets/git/reftable/blocksource.c:30:17: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf *b = v;
                       ^
/datasets/git/reftable/blocksource.c:33:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(dest->data, b->buf + off, size);
        ^~~~~~
/datasets/git/reftable/blocksource.c:33:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(dest->data, b->buf + off, size);
        ^~~~~~
/datasets/git/reftable/blocksource.c:34:14: warning: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        dest->len = size;
                    ^
/datasets/git/reftable/blocksource.c:35:9: warning: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return size;
               ^
/datasets/git/reftable/blocksource.c:38:35: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static uint64_t strbuf_size(void *b)
                                  ^
/datasets/git/reftable/blocksource.c:43:44: warning: variable 'strbuf_vtable' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct reftable_block_source_vtable strbuf_vtable = {
                                           ^
/datasets/git/reftable/blocksource.c:50:61: warning: parameter name 'bs' is too short, expected at least 3 characters [readability-identifier-length]
void block_source_from_strbuf(struct reftable_block_source *bs,
                                                            ^
/datasets/git/reftable/blocksource.c:58:39: warning: parameter 'b' is unused [misc-unused-parameters]
static void malloc_return_block(void *b, struct reftable_block *dest)
                                      ^
/datasets/git/reftable/blocksource.c:58:39: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/reftable/blocksource.c:60:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (dest->len)
                      ^
                       {
/datasets/git/reftable/blocksource.c:61:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(dest->data, 0xff, dest->len);
                ^~~~~~
/datasets/git/reftable/blocksource.c:61:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(dest->data, 0xff, dest->len);
                ^~~~~~
/datasets/git/reftable/blocksource.c:61:22: warning: 0xff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                memset(dest->data, 0xff, dest->len);
                                   ^
/datasets/git/reftable/blocksource.c:65:44: warning: variable 'malloc_vtable' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct reftable_block_source_vtable malloc_vtable = {
                                           ^
/datasets/git/reftable/blocksource.c:69:37: warning: variable 'malloc_block_source_instance' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct reftable_block_source malloc_block_source_instance = {
                                    ^
/datasets/git/reftable/blocksource.c:78:8: warning: accessing fields in struct 'file_block_source' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct file_block_source {
       ^
/datasets/git/reftable/blocksource.c:78:8: note: use "__attribute__((aligned(16)))" to align struct 'file_block_source' to 16 bytes
/datasets/git/reftable/blocksource.c:83:33: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static uint64_t file_size(void *b)
                                ^
/datasets/git/reftable/blocksource.c:88:37: warning: parameter 'b' is unused [misc-unused-parameters]
static void file_return_block(void *b, struct reftable_block *dest)
                                    ^
/datasets/git/reftable/blocksource.c:88:37: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/reftable/blocksource.c:90:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (dest->len)
                      ^
                       {
/datasets/git/reftable/blocksource.c:91:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(dest->data, 0xff, dest->len);
                ^~~~~~
/datasets/git/reftable/blocksource.c:91:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(dest->data, 0xff, dest->len);
                ^~~~~~
/datasets/git/reftable/blocksource.c:91:22: warning: 0xff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                memset(dest->data, 0xff, dest->len);
                                   ^
/datasets/git/reftable/blocksource.c:95:30: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static void file_close(void *b)
                             ^
/datasets/git/reftable/blocksource.c:97:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
        int fd = ((struct file_block_source *)b)->fd;
            ^
/datasets/git/reftable/blocksource.c:106:34: warning: parameter name 'v' is too short, expected at least 3 characters [readability-identifier-length]
static int file_read_block(void *v, struct reftable_block *dest, uint64_t off,
                                 ^
/datasets/git/reftable/blocksource.c:109:28: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        struct file_block_source *b = v;
                                  ^
/datasets/git/reftable/blocksource.c:112:37: warning: narrowing conversion from 'uint64_t' (aka 'unsigned long') to signed type '__off64_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        if (pread(b->fd, dest->data, size, off) != size)
                                           ^
/datasets/git/reftable/blocksource.c:112:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pread(b->fd, dest->data, size, off) != size)
                                                        ^
                                                         {
/datasets/git/reftable/blocksource.c:114:14: warning: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        dest->len = size;
                    ^
/datasets/git/reftable/blocksource.c:115:9: warning: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return size;
               ^
/datasets/git/reftable/blocksource.c:118:44: warning: variable 'file_vtable' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct reftable_block_source_vtable file_vtable = {
                                           ^
/datasets/git/reftable/blocksource.c:125:67: warning: parameter name 'bs' is too short, expected at least 3 characters [readability-identifier-length]
int reftable_block_source_from_file(struct reftable_block_source *bs,
                                                                  ^
/datasets/git/reftable/blocksource.c:128:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st = { 0 };
                    ^
/datasets/git/reftable/blocksource.c:130:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
        int fd = open(name, O_RDONLY);
            ^
/datasets/git/reftable/blocksource.c:130:30: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
        int fd = open(name, O_RDONLY);
                                    ^
                                     | O_CLOEXEC
/datasets/git/reftable/blocksource.c:131:28: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        struct file_block_source *p = NULL;
                                  ^
/datasets/git/reftable/error.c:11:1: warning: system include stdio.h not allowed [llvmlibc-restrict-system-libc-headers]
#include <stdio.h>
^~~~~~~~~~~~~~~~~~
/datasets/git/reftable/error.c:15:18: warning: 250 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        static char buf[250];
                        ^
/datasets/git/reftable/error.c:40:3: warning: the value returned by this function should be used [cert-err33-c]
                snprintf(buf, sizeof(buf), "unknown error code %d", err);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/reftable/error.c:40:3: note: cast the expression to void to silence this warning
/datasets/git/reftable/error.c:40:3: warning: Call to function 'snprintf' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                snprintf(buf, sizeof(buf), "unknown error code %d", err);
                ^~~~~~~~
/datasets/git/reftable/error.c:40:3: note: Call to function 'snprintf' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'snprintf_s' in case of C11
                snprintf(buf, sizeof(buf), "unknown error code %d", err);
                ^~~~~~~~
/datasets/git/reftable/generic.c:11:1: warning: #includes are not sorted properly [llvm-include-order]
#include "record.h"
^        ~~~~~~~~~~
         "generic.h"
/datasets/git/reftable/generic.c:17:34: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
                            struct reftable_iterator *it, const char *name)
                                                      ^
/datasets/git/reftable/generic.c:27:34: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
                            struct reftable_iterator *it, const char *name)
                                                      ^
/datasets/git/reftable/generic.c:40:27: warning: variable name 'it' is too short, expected at least 3 characters [readability-identifier-length]
        struct reftable_iterator it = { NULL };
                                 ^
/datasets/git/reftable/generic.c:42:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err)
                ^
                 {
/datasets/git/reftable/generic.c:46:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err)
                ^
                 {
/datasets/git/reftable/generic.c:49:6: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (strcmp(ref->refname, name) ||
            ^
                                       != 0
/datasets/git/reftable/generic.c:62:27: warning: variable name 'it' is too short, expected at least 3 characters [readability-identifier-length]
        struct reftable_iterator it = { NULL };
                                 ^
/datasets/git/reftable/generic.c:71:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/reftable/generic.c:88:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/reftable/generic.c:118:58: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
void reftable_iterator_destroy(struct reftable_iterator *it)
                                                         ^
/datasets/git/reftable/generic.c:125:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(it->iter_arg);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/reftable/generic.c:128:58: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
int reftable_iterator_next_ref(struct reftable_iterator *it,
                                                         ^
/datasets/git/reftable/generic.c:142:58: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
int reftable_iterator_next_log(struct reftable_iterator *it,
                                                         ^
/datasets/git/reftable/generic.c:156:45: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
int iterator_next(struct reftable_iterator *it, struct reftable_record *rec)
                                            ^
/datasets/git/reftable/generic.c:161:38: warning: parameter 'arg' is unused [misc-unused-parameters]
static int empty_iterator_next(void *arg, struct reftable_record *rec)
                                     ^
/datasets/git/reftable/generic.c:161:67: warning: parameter 'rec' is unused [misc-unused-parameters]
static int empty_iterator_next(void *arg, struct reftable_record *rec)
                                                                  ^
/datasets/git/reftable/generic.c:170:40: warning: variable 'empty_vtable' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct reftable_iterator_vtable empty_vtable = {
                                       ^
/datasets/git/reftable/generic.c:175:51: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
void iterator_set_empty(struct reftable_iterator *it)
                                                  ^
/datasets/git/reftable/iter.c:14:1: warning: #includes are not sorted properly [llvm-include-order]
#include "generic.h"
^        ~~~~~~~~~~~
         "constants.h"
/datasets/git/reftable/iter.c:19:48: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
int iterator_is_null(struct reftable_iterator *it)
                                               ^
/datasets/git/reftable/iter.c:37:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/reftable/iter.c:44:29: warning: variable name 'it' is too short, expected at least 3 characters [readability-identifier-length]
                        struct reftable_iterator it = { NULL };
                                                 ^
/datasets/git/reftable/iter.c:67:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                             fri->oid.len)))
                                            ^
                                             {
/datasets/git/reftable/iter.c:80:40: warning: variable 'filtering_ref_iterator_vtable' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct reftable_iterator_vtable filtering_ref_iterator_vtable = {
                                       ^
/datasets/git/reftable/iter.c:85:69: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
void iterator_from_filtering_ref_iterator(struct reftable_iterator *it,
                                                                    ^
/datasets/git/reftable/iter.c:93:48: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static void indexed_table_ref_iter_close(void *p)
                                               ^
/datasets/git/reftable/iter.c:95:33: warning: variable name 'it' is too short, expected at least 3 characters [readability-identifier-length]
        struct indexed_table_ref_iter *it = p;
                                       ^
/datasets/git/reftable/iter.c:102:77: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
static int indexed_table_ref_iter_next_block(struct indexed_table_ref_iter *it)
                                                                            ^
/datasets/git/reftable/iter.c:104:11: warning: variable 'off' is not initialized [cppcoreguidelines-init-variables]
        uint64_t off;
                 ^
                     = 0
/datasets/git/reftable/iter.c:127:46: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static int indexed_table_ref_iter_next(void *p, struct reftable_record *rec)
                                             ^
/datasets/git/reftable/iter.c:129:33: warning: variable name 'it' is too short, expected at least 3 characters [readability-identifier-length]
        struct indexed_table_ref_iter *it = p;
                                       ^
/datasets/git/reftable/iter.c:132:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/reftable/iter.c:159:35: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
                               struct reftable_reader *r, uint8_t *oid,
                                                       ^
/datasets/git/reftable/iter.c:183:40: warning: variable 'indexed_table_ref_iter_vtable' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct reftable_iterator_vtable indexed_table_ref_iter_vtable = {
                                       ^
/datasets/git/reftable/iter.c:188:69: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
void iterator_from_indexed_table_ref_iter(struct reftable_iterator *it,
                                                                    ^
/datasets/git/reftable/merged.c:12:1: warning: #includes are not sorted properly [llvm-include-order]
#include "iter.h"
^        ~~~~~~~~
         "generic.h"
/datasets/git/reftable/merged.c:21:49: warning: parameter name 'mi' is too short, expected at least 3 characters [readability-identifier-length]
static int merged_iter_init(struct merged_iter *mi)
                                                ^
/datasets/git/reftable/merged.c:23:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0;
            ^
/datasets/git/reftable/merged.c:24:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < mi->stack_len; i++) {
        ^
/datasets/git/reftable/merged.c:35:20: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                        struct pq_entry e = {
                                        ^
/datasets/git/reftable/merged.c:46:37: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static void merged_iter_close(void *p)
                                    ^
/datasets/git/reftable/merged.c:48:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct merged_iter *mi = p;
        ^
/datasets/git/reftable/merged.c:48:22: warning: variable name 'mi' is too short, expected at least 3 characters [readability-identifier-length]
        struct merged_iter *mi = p;
                            ^
/datasets/git/reftable/merged.c:49:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0;
            ^
/datasets/git/reftable/merged.c:51:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < mi->stack_len; i++) {
        ^
/datasets/git/reftable/merged.c:51:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'mi' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < mi->stack_len; i++) {
                    ^
/datasets/git/reftable/merged.c:57:68: warning: parameter name 'mi' is too short, expected at least 3 characters [readability-identifier-length]
static int merged_iter_advance_nonnull_subiter(struct merged_iter *mi,
                                                                   ^
/datasets/git/reftable/merged.c:60:18: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
        struct pq_entry e = {
                        ^
/datasets/git/reftable/merged.c:62:12: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                .index = idx,
                         ^
/datasets/git/reftable/merged.c:65:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err < 0)
                    ^
                     {
/datasets/git/reftable/merged.c:78:60: warning: parameter name 'mi' is too short, expected at least 3 characters [readability-identifier-length]
static int merged_iter_advance_subiter(struct merged_iter *mi, size_t idx)
                                                           ^
/datasets/git/reftable/merged.c:80:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (iterator_is_null(&mi->stack[idx]))
                                              ^
                                               {
/datasets/git/reftable/merged.c:85:55: warning: parameter name 'mi' is too short, expected at least 3 characters [readability-identifier-length]
static int merged_iter_next_entry(struct merged_iter *mi,
                                                      ^
/datasets/git/reftable/merged.c:89:18: warning: Value stored to 'entry' during its initialization is never read [clang-analyzer-deadcode.DeadStores]
        struct pq_entry entry = { 0 };
                        ^~~~~   ~~~~~
/datasets/git/reftable/merged.c:89:18: note: Value stored to 'entry' during its initialization is never read
        struct pq_entry entry = { 0 };
                        ^~~~~   ~~~~~
/datasets/git/reftable/merged.c:92:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (merged_iter_pqueue_is_empty(mi->pq))
                                                ^
                                                 {
/datasets/git/reftable/merged.c:97:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err < 0)
                    ^
                     {
/datasets/git/reftable/merged.c:109:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (!merged_iter_pqueue_is_empty(mi->pq)) {
        ^
/datasets/git/reftable/merged.c:111:17: warning: variable name 'k' is too short, expected at least 3 characters [readability-identifier-length]
                struct strbuf k = STRBUF_INIT;
                              ^
/datasets/git/reftable/merged.c:112:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int err = 0, cmp = 0;
                ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/reftable/merged.c:137:49: warning: parameter name 'mi' is too short, expected at least 3 characters [readability-identifier-length]
static int merged_iter_next(struct merged_iter *mi, struct reftable_record *rec)
                                                ^
/datasets/git/reftable/merged.c:139:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/reftable/merged.c:150:40: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static int merged_iter_next_void(void *p, struct reftable_record *rec)
                                       ^
/datasets/git/reftable/merged.c:152:22: warning: variable name 'mi' is too short, expected at least 3 characters [readability-identifier-length]
        struct merged_iter *mi = p;
                            ^
/datasets/git/reftable/merged.c:153:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (merged_iter_pqueue_is_empty(mi->pq))
                                                ^
                                                 {
/datasets/git/reftable/merged.c:159:40: warning: variable 'merged_iter_vtable' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct reftable_iterator_vtable merged_iter_vtable = {
                                       ^
/datasets/git/reftable/merged.c:164:65: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
static void iterator_from_merged_iter(struct reftable_iterator *it,
                                                                ^
/datasets/git/reftable/merged.c:165:31: warning: parameter name 'mi' is too short, expected at least 3 characters [readability-identifier-length]
                                      struct merged_iter *mi)
                                                          ^
/datasets/git/reftable/merged.c:173:40: warning: 2 adjacent parameters of 'reftable_new_merged_table' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                              struct reftable_table *stack, int n,
                                                            ^~~~~~
/datasets/git/reftable/merged.c:173:44: note: the first parameter in the range is 'n'
                              struct reftable_table *stack, int n,
                                                                ^
/datasets/git/reftable/merged.c:174:19: note: the last parameter in the range is 'hash_id'
                              uint32_t hash_id)
                                       ^~~~~~~
/datasets/git/reftable/merged.c:173:40: note: 
                              struct reftable_table *stack, int n,
                                                            ^
/datasets/git/reftable/merged.c:174:10: note: 'int' and 'uint32_t' may be implicitly converted: 'int' -> 'uint32_t' (as 'unsigned int'), 'uint32_t' (as 'unsigned int') -> 'int'
                              uint32_t hash_id)
                              ^
/datasets/git/reftable/merged.c:176:32: warning: variable name 'm' is too short, expected at least 3 characters [readability-identifier-length]
        struct reftable_merged_table *m = NULL;
                                      ^
/datasets/git/reftable/merged.c:179:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0;
            ^
/datasets/git/reftable/merged.c:180:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < n; i++) {
        ^
/datasets/git/reftable/merged.c:206:57: warning: parameter name 'mt' is too short, expected at least 3 characters [readability-identifier-length]
void merged_table_release(struct reftable_merged_table *mt)
                                                        ^
/datasets/git/reftable/merged.c:208:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(mt->stack);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/reftable/merged.c:212:63: warning: parameter name 'mt' is too short, expected at least 3 characters [readability-identifier-length]
void reftable_merged_table_free(struct reftable_merged_table *mt)
                                                              ^
/datasets/git/reftable/merged.c:222:70: warning: parameter name 'mt' is too short, expected at least 3 characters [readability-identifier-length]
reftable_merged_table_max_update_index(struct reftable_merged_table *mt)
                                                                     ^
/datasets/git/reftable/merged.c:228:70: warning: parameter name 'mt' is too short, expected at least 3 characters [readability-identifier-length]
reftable_merged_table_min_update_index(struct reftable_merged_table *mt)
                                                                     ^
/datasets/git/reftable/merged.c:234:37: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
                                      struct reftable_iterator *it,
                                                                ^
/datasets/git/reftable/merged.c:240:67: warning: parameter name 'mt' is too short, expected at least 3 characters [readability-identifier-length]
static int merged_table_seek_record(struct reftable_merged_table *mt,
                                                                  ^
/datasets/git/reftable/merged.c:241:35: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
                                    struct reftable_iterator *it,
                                                              ^
/datasets/git/reftable/merged.c:252:6: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
        int n = 0;
            ^
/datasets/git/reftable/merged.c:254:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0;
            ^
/datasets/git/reftable/merged.c:255:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < mt->stack_len && err == 0; i++) {
        ^
/datasets/git/reftable/merged.c:255:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'err' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < mt->stack_len && err == 0; i++) {
                    ^
/datasets/git/reftable/merged.c:256:7: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                int e = reftable_table_seek_record(&mt->stack[i], &iters[n],
                    ^
/datasets/git/reftable/merged.c:266:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
                int i = 0;
                    ^
/datasets/git/reftable/merged.c:267:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < n; i++) {
                ^
/datasets/git/reftable/merged.c:279:4: warning: do not use 'else' after 'return' [readability-else-after-return]
        } else {
          ^
/datasets/git/reftable/merged.c:253:2: note: inferred assignment of ID-dependent value from ID-dependent variable e [altera-id-dependent-backward-branch]
        int err = 0;
        ^
/datasets/git/reftable/merged.c:280:23: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct merged_iter *p =
                                    ^
/datasets/git/reftable/merged.c:288:66: warning: parameter name 'mt' is too short, expected at least 3 characters [readability-identifier-length]
int reftable_merged_table_seek_ref(struct reftable_merged_table *mt,
                                                                 ^
/datasets/git/reftable/merged.c:289:34: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
                                   struct reftable_iterator *it,
                                                             ^
/datasets/git/reftable/merged.c:301:69: warning: parameter name 'mt' is too short, expected at least 3 characters [readability-identifier-length]
int reftable_merged_table_seek_log_at(struct reftable_merged_table *mt,
                                                                    ^
/datasets/git/reftable/merged.c:302:37: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
                                      struct reftable_iterator *it,
                                                                ^
/datasets/git/reftable/merged.c:313:66: warning: parameter name 'mt' is too short, expected at least 3 characters [readability-identifier-length]
int reftable_merged_table_seek_log(struct reftable_merged_table *mt,
                                                                 ^
/datasets/git/reftable/merged.c:314:34: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
                                   struct reftable_iterator *it,
                                                             ^
/datasets/git/reftable/merged.c:321:70: warning: parameter name 'mt' is too short, expected at least 3 characters [readability-identifier-length]
uint32_t reftable_merged_table_hash_id(struct reftable_merged_table *mt)
                                                                     ^
/datasets/git/reftable/merged.c:327:35: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
                                           struct reftable_iterator *it,
                                                                     ^
/datasets/git/reftable/merged.c:348:37: warning: variable 'merged_table_vtable' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct reftable_table_vtable merged_table_vtable = {
                                    ^
/datasets/git/reftable/pq.c:11:1: warning: #includes are not sorted properly [llvm-include-order]
#include "reftable-record.h"
^        ~~~~~~~~~~~~~~~~~~~
         "basics.h"
/datasets/git/reftable/pq.c:15:30: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
int pq_less(struct pq_entry *a, struct pq_entry *b)
                             ^
/datasets/git/reftable/pq.c:15:50: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
int pq_less(struct pq_entry *a, struct pq_entry *b)
                                                 ^
/datasets/git/reftable/pq.c:17:16: warning: variable name 'ak' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf ak = STRBUF_INIT;
                      ^
/datasets/git/reftable/pq.c:18:16: warning: variable name 'bk' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf bk = STRBUF_INIT;
                      ^
/datasets/git/reftable/pq.c:28:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cmp == 0)
                     ^
                      {
/datasets/git/reftable/pq.c:34:66: warning: parameter name 'pq' is too short, expected at least 3 characters [readability-identifier-length]
struct pq_entry merged_iter_pqueue_top(struct merged_iter_pqueue pq)
                                                                 ^
/datasets/git/reftable/pq.c:39:59: warning: parameter name 'pq' is too short, expected at least 3 characters [readability-identifier-length]
int merged_iter_pqueue_is_empty(struct merged_iter_pqueue pq)
                                                          ^
/datasets/git/reftable/pq.c:44:70: warning: parameter name 'pq' is too short, expected at least 3 characters [readability-identifier-length]
struct pq_entry merged_iter_pqueue_remove(struct merged_iter_pqueue *pq)
                                                                     ^
/datasets/git/reftable/pq.c:46:2: note: inferred assignment of ID-dependent value from ID-dependent variable min [altera-id-dependent-backward-branch]
        int i = 0;
        ^
/datasets/git/reftable/pq.c:46:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0;
            ^
/datasets/git/reftable/pq.c:47:18: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
        struct pq_entry e = pq->heap[0];
                        ^
/datasets/git/reftable/pq.c:52:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (i < pq->len) {
               ^
/datasets/git/reftable/pq.c:54:7: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
                int j = 2 * i + 1;
                    ^
/datasets/git/reftable/pq.c:55:7: warning: variable name 'k' is too short, expected at least 3 characters [readability-identifier-length]
                int k = 2 * i + 2;
                    ^
/datasets/git/reftable/pq.c:67:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                SWAP(pq->heap[i], pq->heap[min]);
                ^
/datasets/git/./git-compat-util.h:759:20: note: expanded from macro 'SWAP'
#define SWAP(a, b) do {                                         \
                   ^
/datasets/git/reftable/pq.c:67:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                SWAP(pq->heap[i], pq->heap[min]);
                ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/reftable/pq.c:67:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                SWAP(pq->heap[i], pq->heap[min]);
                ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/reftable/pq.c:74:56: warning: parameter name 'pq' is too short, expected at least 3 characters [readability-identifier-length]
void merged_iter_pqueue_add(struct merged_iter_pqueue *pq, const struct pq_entry *e)
                                                       ^
/datasets/git/reftable/pq.c:74:83: warning: parameter name 'e' is too short, expected at least 3 characters [readability-identifier-length]
void merged_iter_pqueue_add(struct merged_iter_pqueue *pq, const struct pq_entry *e)
                                                                                  ^
/datasets/git/reftable/pq.c:76:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int i = 0;
        ^
/datasets/git/reftable/pq.c:76:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0;
            ^
/datasets/git/reftable/pq.c:85:6: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        i = pq->len - 1;
            ^
/datasets/git/reftable/pq.c:86:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (i > 0) {
               ^
/datasets/git/reftable/pq.c:87:7: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
                int j = (i - 1) / 2;
                    ^
/datasets/git/reftable/pq.c:92:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                SWAP(pq->heap[j], pq->heap[i]);
                ^
/datasets/git/./git-compat-util.h:759:20: note: expanded from macro 'SWAP'
#define SWAP(a, b) do {                                         \
                   ^
/datasets/git/reftable/pq.c:92:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                SWAP(pq->heap[j], pq->heap[i]);
                ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/reftable/pq.c:92:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                SWAP(pq->heap[j], pq->heap[i]);
                ^
/datasets/git/./git-compat-util.h:763:2: note: expanded from macro 'SWAP'
        memcpy(_swap_buffer, _swap_a_ptr, sizeof(a));           \
        ^~~~~~
/datasets/git/reftable/pq.c:98:60: warning: parameter name 'pq' is too short, expected at least 3 characters [readability-identifier-length]
void merged_iter_pqueue_release(struct merged_iter_pqueue *pq)
                                                           ^
reftable/pq.h:21:2: note: inferred assignment of ID-dependent member from ID-dependent member cap [altera-id-dependent-backward-branch]
        size_t len;
        ^
/datasets/git/reftable/pq.c:100:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0;
            ^
/datasets/git/reftable/pq.c:101:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < pq->len; i++) {
        ^
/datasets/git/reftable/pq.c:101:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < pq->len; i++) {
                    ^
/datasets/git/reftable/pq.c:104:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(pq->heap);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
reftable/publicbasics.c:14:16: warning: variable 'reftable_malloc_ptr' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static void *(*reftable_malloc_ptr)(size_t sz);
               ^
reftable/publicbasics.c:14:16: warning: variable 'reftable_malloc_ptr' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
reftable/publicbasics.c:14:44: warning: parameter name 'sz' is too short, expected at least 3 characters [readability-identifier-length]
static void *(*reftable_malloc_ptr)(size_t sz);
                                           ^
reftable/publicbasics.c:15:16: warning: variable 'reftable_realloc_ptr' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static void *(*reftable_realloc_ptr)(void *, size_t);
               ^
reftable/publicbasics.c:15:16: warning: variable 'reftable_realloc_ptr' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
reftable/publicbasics.c:16:15: warning: variable 'reftable_free_ptr' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static void (*reftable_free_ptr)(void *);
              ^
reftable/publicbasics.c:16:15: warning: variable 'reftable_free_ptr' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
reftable/publicbasics.c:18:30: warning: parameter name 'sz' is too short, expected at least 3 characters [readability-identifier-length]
void *reftable_malloc(size_t sz)
                             ^
/datasets/git/reftable/publicbasics.c:20:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (reftable_malloc_ptr)
                                ^
                                 {
/datasets/git/reftable/publicbasics.c:25:30: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
void *reftable_realloc(void *p, size_t sz)
                             ^
/datasets/git/reftable/publicbasics.c:25:40: warning: parameter name 'sz' is too short, expected at least 3 characters [readability-identifier-length]
void *reftable_realloc(void *p, size_t sz)
                                       ^
/datasets/git/reftable/publicbasics.c:27:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (reftable_realloc_ptr)
                                 ^
                                  {
/datasets/git/reftable/publicbasics.c:32:26: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
void reftable_free(void *p)
                         ^
/datasets/git/reftable/publicbasics.c:34:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (reftable_free_ptr)
                              ^
                               {
/datasets/git/reftable/publicbasics.c:36:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/reftable/publicbasics.c:40:30: warning: parameter name 'sz' is too short, expected at least 3 characters [readability-identifier-length]
void *reftable_calloc(size_t sz)
                             ^
/datasets/git/reftable/publicbasics.c:42:8: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        void *p = reftable_malloc(sz);
              ^
/datasets/git/reftable/publicbasics.c:43:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(p, 0, sz);
        ^~~~~~
/datasets/git/reftable/publicbasics.c:43:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(p, 0, sz);
        ^~~~~~
/datasets/git/reftable/publicbasics.c:55:24: warning: parameter name 'id' is too short, expected at least 3 characters [readability-identifier-length]
int hash_size(uint32_t id)
                       ^
/datasets/git/reftable/publicbasics.c:57:2: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
        switch (id) {
        ^
/datasets/git/reftable/reader.c:11:1: warning: #includes are not sorted properly [llvm-include-order]
#include "system.h"
^        ~~~~~~~~~~
         "block.h"
/datasets/git/reftable/reader.c:46:44: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
reader_offsets_for(struct reftable_reader *r, uint8_t typ)
                                           ^
/datasets/git/reftable/reader.c:48:2: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
        switch (typ) {
        ^
/datasets/git/reftable/reader.c:59:53: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int reader_get_block(struct reftable_reader *r,
                                                    ^
/datasets/git/reftable/reader.c:61:17: warning: parameter name 'sz' is too short, expected at least 3 characters [readability-identifier-length]
                            uint32_t sz)
                                     ^
/datasets/git/reftable/reader.c:63:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (off >= r->size)
                           ^
                            {
/datasets/git/reftable/reader.c:73:58: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
uint32_t reftable_reader_hash_id(struct reftable_reader *r)
                                                         ^
/datasets/git/reftable/reader.c:78:49: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
const char *reader_name(struct reftable_reader *r)
                                                ^
/datasets/git/reftable/reader.c:83:49: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int parse_footer(struct reftable_reader *r, uint8_t *footer,
                                                ^
/datasets/git/reftable/reader.c:86:11: warning: variable name 'f' is too short, expected at least 3 characters [readability-identifier-length]
        uint8_t *f = footer;
                 ^
/datasets/git/reftable/reader.c:87:10: warning: variable 'first_block_typ' is not initialized [cppcoreguidelines-init-variables]
        uint8_t first_block_typ;
                ^
                                = 0
/datasets/git/reftable/reader.c:89:11: warning: variable 'computed_crc' is not initialized [cppcoreguidelines-init-variables]
        uint32_t computed_crc;
                 ^
                              = 0
/datasets/git/reftable/reader.c:90:11: warning: variable 'file_crc' is not initialized [cppcoreguidelines-init-variables]
        uint32_t file_crc;
                 ^
                          = 0
/datasets/git/reftable/reader.c:92:6: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (memcmp(f, "REFT", 4)) {
            ^
                                 != 0
/datasets/git/reftable/reader.c:98:6: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (memcmp(footer, header, header_size(r->version))) {
            ^
                                                            != 0
/datasets/git/reftable/reader.c:108:7: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        f += 8;
             ^
/datasets/git/reftable/reader.c:110:7: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        f += 8;
             ^
/datasets/git/reftable/reader.c:117:3: warning: switch has 2 consecutive identical branches [bugprone-branch-clone]
                case GIT_SHA1_FORMAT_ID:
                ^
/datasets/git/reftable/reader.c:120:9: note: last of these clones ends here
                        break;
                             ^
/datasets/git/reftable/reader.c:129:7: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        f += 8;
             ^
/datasets/git/reftable/reader.c:132:7: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        f += 8;
             ^
/datasets/git/reftable/reader.c:134:21: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        r->object_id_len = r->obj_offsets.offset & ((1 << 5) - 1);
                           ^
/datasets/git/reftable/reader.c:134:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        r->object_id_len = r->obj_offsets.offset & ((1 << 5) - 1);
                           ^                       ~~~~~~~~~~~~~~
/datasets/git/reftable/reader.c:134:47: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        r->object_id_len = r->obj_offsets.offset & ((1 << 5) - 1);
                                                     ^
/datasets/git/reftable/reader.c:134:52: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        r->object_id_len = r->obj_offsets.offset & ((1 << 5) - 1);
                                                          ^
/datasets/git/reftable/reader.c:135:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        r->obj_offsets.offset >>= 5;
        ^                         ~
/datasets/git/reftable/reader.c:135:28: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        r->obj_offsets.offset >>= 5;
                                  ^
/datasets/git/reftable/reader.c:138:7: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        f += 8;
             ^
/datasets/git/reftable/reader.c:140:7: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        f += 8;
             ^
/datasets/git/reftable/reader.c:142:7: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        f += 8;
             ^
/datasets/git/reftable/reader.c:146:2: warning: Value stored to 'f' is never read [clang-analyzer-deadcode.DeadStores]
        f += 4;
        ^    ~
/datasets/git/reftable/reader.c:146:2: note: Value stored to 'f' is never read
        f += 4;
        ^    ~
/datasets/git/reftable/reader.c:168:41: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int init_reader(struct reftable_reader *r, struct reftable_block_source *source,
                                        ^
/datasets/git/reftable/reader.c:178:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(r, 0, sizeof(struct reftable_reader));
        ^~~~~~
/datasets/git/reftable/reader.c:178:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(r, 0, sizeof(struct reftable_reader));
        ^~~~~~
/datasets/git/reftable/reader.c:191:6: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (memcmp(header.data, "REFT", 4)) {
            ^
                                           != 0
/datasets/git/reftable/reader.c:220:8: warning: accessing fields in struct 'table_iter' is inefficient due to padding; only needs 61 bytes but is using 72 bytes [altera-struct-pack-align]
struct table_iter {
       ^
/datasets/git/reftable/reader.c:220:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'table_iter'
/datasets/git/reftable/reader.c:220:8: warning: accessing fields in struct 'table_iter' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct table_iter {
       ^
/datasets/git/reftable/reader.c:220:8: note: use "__attribute__((aligned(64)))" to align struct 'table_iter' to 64 bytes
/datasets/git/reftable/reader.c:242:56: warning: parameter name 'ti' is too short, expected at least 3 characters [readability-identifier-length]
static int table_iter_next_in_block(struct table_iter *ti,
                                                       ^
/datasets/git/reftable/reader.c:253:54: warning: parameter name 'ti' is too short, expected at least 3 characters [readability-identifier-length]
static void table_iter_block_done(struct table_iter *ti)
                                                     ^
/datasets/git/reftable/reader.c:259:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(ti->bi.br);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/reftable/reader.c:265:64: warning: 2 adjacent parameters of 'extract_block_size' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int32_t extract_block_size(uint8_t *data, uint8_t *typ, uint64_t off,
                                                               ^~~~~~~~~~~~~
/datasets/git/reftable/reader.c:265:73: note: the first parameter in the range is 'off'
static int32_t extract_block_size(uint8_t *data, uint8_t *typ, uint64_t off,
                                                                        ^~~
/datasets/git/reftable/reader.c:266:11: note: the last parameter in the range is 'version'
                                  int version)
                                      ^~~~~~~
/datasets/git/reftable/reader.c:265:64: note: 
static int32_t extract_block_size(uint8_t *data, uint8_t *typ, uint64_t off,
                                                               ^
/datasets/git/reftable/reader.c:266:7: note: 'uint64_t' and 'int' may be implicitly converted: 'uint64_t' (as 'unsigned long') -> 'int', 'int' -> 'uint64_t' (as 'unsigned long')
                                  int version)
                                  ^
/datasets/git/reftable/reader.c:276:12: warning: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'int32_t' (aka 'int') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                result = get_be24(data + 1);
                         ^
/datasets/git/reftable/reader.c:281:54: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int reader_init_block_reader(struct reftable_reader *r, struct block_reader *br,
                                                     ^
/datasets/git/reftable/reader.c:281:78: warning: parameter name 'br' is too short, expected at least 3 characters [readability-identifier-length]
int reader_init_block_reader(struct reftable_reader *r, struct block_reader *br,
                                                                             ^
/datasets/git/reftable/reader.c:282:9: warning: 2 adjacent parameters of 'reader_init_block_reader' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                             uint64_t next_off, uint8_t want_typ)
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/reftable/reader.c:282:18: note: the first parameter in the range is 'next_off'
                             uint64_t next_off, uint8_t want_typ)
                                      ^~~~~~~~
/datasets/git/reftable/reader.c:282:36: note: the last parameter in the range is 'want_typ'
                             uint64_t next_off, uint8_t want_typ)
                                                        ^~~~~~~~
/datasets/git/reftable/reader.c:282:9: note: 
                             uint64_t next_off, uint8_t want_typ)
                             ^
/datasets/git/reftable/reader.c:282:28: note: 'uint64_t' and 'uint8_t' may be implicitly converted: 'uint64_t' (as 'unsigned long') -> 'uint8_t' (as 'unsigned char'), 'uint8_t' (as 'unsigned char') -> 'uint64_t' (as 'unsigned long')
                             uint64_t next_off, uint8_t want_typ)
                                                ^
/datasets/git/reftable/reader.c:284:45: warning: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'int32_t' (aka 'int') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int32_t guess_block_size = r->block_size ? r->block_size :
                                                   ^
/datasets/git/reftable/reader.c:292:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (next_off >= r->size)
                                ^
                                 {
/datasets/git/reftable/reader.c:296:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err < 0)
                    ^
                     {
/datasets/git/reftable/reader.c:329:45: warning: Access to field 'full_block_size' results in a dereference of a null pointer (loaded from field 'br') [clang-analyzer-core.NullDereference]
        uint64_t next_block_off = src->block_off + src->bi.br->full_block_size;
                                                   ^
/datasets/git/reftable/reader.c:764:9: note: Calling 'reader_seek'
        return reader_seek(tab, it, rec);
               ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/reftable/reader.c:592:6: note: Assuming field 'is_present' is not equal to 0
        if (!offs->is_present) {
            ^~~~~~~~~~~~~~~~~
/datasets/git/reftable/reader.c:592:2: note: Taking false branch
        if (!offs->is_present) {
        ^
/datasets/git/reftable/reader.c:597:9: note: Calling 'reader_seek_internal'
        return reader_seek_internal(r, it, rec);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/reftable/reader.c:567:6: note: Assuming 'idx' is > 0
        if (idx > 0)
            ^~~~~~~
/datasets/git/reftable/reader.c:567:2: note: Taking true branch
        if (idx > 0)
        ^
/datasets/git/reftable/reader.c:568:10: note: Calling 'reader_seek_indexed'
                return reader_seek_indexed(r, it, rec);
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/reftable/reader.c:504:2: note: 'index_iter.bi.br' initialized to a null pointer value
        struct table_iter index_iter = TABLE_ITER_INIT;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/reftable/reader.c:509:8: note: Calling 'reader_start'
        err = reader_start(r, &index_iter, reftable_record_type(rec), 1);
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/reftable/reader.c:435:6: note: 'index' is 1
        if (index) {
            ^~~~~
/datasets/git/reftable/reader.c:435:2: note: Taking true branch
        if (index) {
        ^
/datasets/git/reftable/reader.c:437:7: note: Assuming 'off' is equal to 0
                if (off == 0) {
                    ^~~~~~~~
/datasets/git/reftable/reader.c:437:3: note: Taking true branch
                if (off == 0) {
                ^
/datasets/git/reftable/reader.c:438:4: note: Returning without writing to 'ti->bi.br'
                        return 1;
                        ^
/datasets/git/reftable/reader.c:509:8: note: Returning from 'reader_start'
        err = reader_start(r, &index_iter, reftable_record_type(rec), 1);
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/reftable/reader.c:510:6: note: 'err' is >= 0
        if (err < 0)
            ^~~
/datasets/git/reftable/reader.c:510:2: note: Taking false branch
        if (err < 0)
        ^
/datasets/git/reftable/reader.c:513:8: note: Calling 'reader_seek_linear'
        err = reader_seek_linear(&index_iter, &want_index);
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/reftable/reader.c:458:2: note: Loop condition is true.  Entering loop body
        while (1) {
        ^
/datasets/git/reftable/reader.c:459:9: note: Calling 'table_iter_next_block'
                err = table_iter_next_block(&next, ti);
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/reftable/reader.c:329:45: note: Access to field 'full_block_size' results in a dereference of a null pointer (loaded from field 'br')
        uint64_t next_block_off = src->block_off + src->bi.br->full_block_size;
                                                   ^       ~~
/datasets/git/reftable/reader.c:330:22: warning: variable name 'br' is too short, expected at least 3 characters [readability-identifier-length]
        struct block_reader br = { 0 };
                            ^
/datasets/git/reftable/reader.c:342:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err != 0)
                     ^
                      {
/datasets/git/reftable/reader.c:344:2: warning: do not use 'else' after 'return' [readability-else-after-return]
        else {
        ^
/datasets/git/reftable/reader.c:355:47: warning: parameter name 'ti' is too short, expected at least 3 characters [readability-identifier-length]
static int table_iter_next(struct table_iter *ti, struct reftable_record *rec)
                                              ^
/datasets/git/reftable/reader.c:357:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (reftable_record_type(rec) != ti->typ)
                                                 ^
                                                  {
/datasets/git/reftable/reader.c:360:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/reftable/reader.c:385:39: warning: parameter name 'ti' is too short, expected at least 3 characters [readability-identifier-length]
static int table_iter_next_void(void *ti, struct reftable_record *rec)
                                      ^
/datasets/git/reftable/reader.c:390:36: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static void table_iter_close(void *p)
                                   ^
/datasets/git/reftable/reader.c:392:21: warning: variable name 'ti' is too short, expected at least 3 characters [readability-identifier-length]
        struct table_iter *ti = p;
                           ^
/datasets/git/reftable/reader.c:397:40: warning: variable 'table_iter_vtable' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct reftable_iterator_vtable table_iter_vtable = {
                                       ^
/datasets/git/reftable/reader.c:402:64: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
static void iterator_from_table_iter(struct reftable_iterator *it,
                                                               ^
/datasets/git/reftable/reader.c:403:29: warning: parameter name 'ti' is too short, expected at least 3 characters [readability-identifier-length]
                                     struct table_iter *ti)
                                                        ^
/datasets/git/reftable/reader.c:410:57: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int reader_table_iter_at(struct reftable_reader *r,
                                                        ^
/datasets/git/reftable/reader.c:411:24: warning: parameter name 'ti' is too short, expected at least 3 characters [readability-identifier-length]
                                struct table_iter *ti, uint64_t off,
                                                   ^
/datasets/git/reftable/reader.c:414:22: warning: variable name 'br' is too short, expected at least 3 characters [readability-identifier-length]
        struct block_reader br = { 0 };
                            ^
/datasets/git/reftable/reader.c:418:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err != 0)
                     ^
                      {
/datasets/git/reftable/reader.c:430:49: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int reader_start(struct reftable_reader *r, struct table_iter *ti,
                                                ^
/datasets/git/reftable/reader.c:430:71: warning: parameter name 'ti' is too short, expected at least 3 characters [readability-identifier-length]
static int reader_start(struct reftable_reader *r, struct table_iter *ti,
                                                                      ^
/datasets/git/reftable/reader.c:431:4: warning: 2 adjacent parameters of 'reader_start' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                        uint8_t typ, int index)
                        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/reftable/reader.c:431:12: note: the first parameter in the range is 'typ'
                        uint8_t typ, int index)
                                ^~~
/datasets/git/reftable/reader.c:431:21: note: the last parameter in the range is 'index'
                        uint8_t typ, int index)
                                         ^~~~~
/datasets/git/reftable/reader.c:431:4: note: 
                        uint8_t typ, int index)
                        ^
/datasets/git/reftable/reader.c:431:17: note: 'uint8_t' and 'int' may be implicitly converted: 'uint8_t' (as 'unsigned char') -> 'int', 'int' -> 'uint8_t' (as 'unsigned char')
                        uint8_t typ, int index)
                                     ^
/datasets/git/reftable/reader.c:446:50: warning: parameter name 'ti' is too short, expected at least 3 characters [readability-identifier-length]
static int reader_seek_linear(struct table_iter *ti,
                                                 ^
/datasets/git/reftable/reader.c:458:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/reftable/reader.c:460:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err < 0)
                            ^
                             {
/datasets/git/reftable/reader.c:468:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err < 0)
                            ^
                             {
/datasets/git/reftable/reader.c:481:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err < 0)
                    ^
                     {
/datasets/git/reftable/reader.c:493:56: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int reader_seek_indexed(struct reftable_reader *r,
                                                       ^
/datasets/git/reftable/reader.c:494:37: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
                               struct reftable_iterator *it,
                                                         ^
/datasets/git/reftable/reader.c:510:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err < 0)
                    ^
                     {
/datasets/git/reftable/reader.c:513:2: warning: Value stored to 'err' is never read [clang-analyzer-deadcode.DeadStores]
        err = reader_seek_linear(&index_iter, &want_index);
        ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/reftable/reader.c:513:2: note: Value stored to 'err' is never read
        err = reader_seek_linear(&index_iter, &want_index);
        ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/reftable/reader.c:514:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/reftable/reader.c:517:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err != 0)
                             ^
                              {
/datasets/git/reftable/reader.c:522:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err != 0)
                             ^
                              {
/datasets/git/reftable/reader.c:526:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err < 0)
                            ^
                             {
/datasets/git/reftable/reader.c:558:57: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int reader_seek_internal(struct reftable_reader *r,
                                                        ^
/datasets/git/reftable/reader.c:559:31: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
                                struct reftable_iterator *it,
                                                          ^
/datasets/git/reftable/reader.c:565:20: warning: variable name 'ti' is too short, expected at least 3 characters [readability-identifier-length]
        struct table_iter ti = TABLE_ITER_INIT;
                          ^
/datasets/git/reftable/reader.c:567:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (idx > 0)
                    ^
                     {
/datasets/git/reftable/reader.c:571:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err < 0)
                    ^
                     {
/datasets/git/reftable/reader.c:574:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err < 0)
                    ^
                     {
/datasets/git/reftable/reader.c:576:2: warning: do not use 'else' after 'return' [readability-else-after-return]
        else {
        ^
/datasets/git/reftable/reader.c:577:22: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct table_iter *p =
                                   ^
/datasets/git/reftable/reader.c:586:48: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int reader_seek(struct reftable_reader *r, struct reftable_iterator *it,
                                               ^
/datasets/git/reftable/reader.c:586:77: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
static int reader_seek(struct reftable_reader *r, struct reftable_iterator *it,
                                                                            ^
/datasets/git/reftable/reader.c:600:54: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int reftable_reader_seek_ref(struct reftable_reader *r,
                                                     ^
/datasets/git/reftable/reader.c:601:35: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
                             struct reftable_iterator *it, const char *name)
                                                       ^
/datasets/git/reftable/reader.c:612:57: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int reftable_reader_seek_log_at(struct reftable_reader *r,
                                                        ^
/datasets/git/reftable/reader.c:613:31: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
                                struct reftable_iterator *it, const char *name,
                                                          ^
/datasets/git/reftable/reader.c:624:54: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int reftable_reader_seek_log(struct reftable_reader *r,
                                                     ^
/datasets/git/reftable/reader.c:625:35: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
                             struct reftable_iterator *it, const char *name)
                                                       ^
/datasets/git/reftable/reader.c:631:43: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void reader_close(struct reftable_reader *r)
                                          ^
/datasets/git/reftable/reader.c:634:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(r->name);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/reftable/reader.c:637:50: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
int reftable_new_reader(struct reftable_reader **p,
                                                 ^
/datasets/git/reftable/reader.c:640:26: warning: variable name 'rd' is too short, expected at least 3 characters [readability-identifier-length]
        struct reftable_reader *rd =
                                ^
/datasets/git/reftable/reader.c:652:51: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void reftable_reader_free(struct reftable_reader *r)
                                                  ^
/datasets/git/reftable/reader.c:654:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!r)
               ^
                {
/datasets/git/reftable/reader.c:660:69: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int reftable_reader_refs_for_indexed(struct reftable_reader *r,
                                                                    ^
/datasets/git/reftable/reader.c:661:36: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
                                            struct reftable_iterator *it,
                                                                      ^
/datasets/git/reftable/reader.c:681:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err != 0)
                     ^
                      {
/datasets/git/reftable/reader.c:686:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err < 0)
                    ^
                     {
/datasets/git/reftable/reader.c:689:17: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (err > 0 || memcmp(want.u.obj.hash_prefix, got.u.obj.hash_prefix,
                       ^
/datasets/git/reftable/reader.c:700:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err < 0)
                    ^
                     {
/datasets/git/reftable/reader.c:711:71: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int reftable_reader_refs_for_unindexed(struct reftable_reader *r,
                                                                      ^
/datasets/git/reftable/reader.c:712:38: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
                                              struct reftable_iterator *it,
                                                                        ^
/datasets/git/reftable/reader.c:716:21: warning: variable name 'ti' is too short, expected at least 3 characters [readability-identifier-length]
        struct table_iter *ti = reftable_calloc(sizeof(struct table_iter));
                           ^
/datasets/git/reftable/reader.c:720:6: warning: variable 'err' is not initialized [cppcoreguidelines-init-variables]
        int err;
            ^
                = 0
/datasets/git/reftable/reader.c:741:54: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int reftable_reader_refs_for(struct reftable_reader *r,
                                                     ^
/datasets/git/reftable/reader.c:742:35: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
                             struct reftable_iterator *it, uint8_t *oid)
                                                       ^
/datasets/git/reftable/reader.c:744:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (r->obj_offsets.is_present)
                                      ^
                                       {
/datasets/git/reftable/reader.c:749:67: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
uint64_t reftable_reader_max_update_index(struct reftable_reader *r)
                                                                  ^
/datasets/git/reftable/reader.c:754:67: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
uint64_t reftable_reader_min_update_index(struct reftable_reader *r)
                                                                  ^
/datasets/git/reftable/reader.c:761:75: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
static int reftable_reader_seek_void(void *tab, struct reftable_iterator *it,
                                                                          ^
/datasets/git/reftable/reader.c:782:37: warning: variable 'reader_vtable' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct reftable_table_vtable reader_vtable = {
                                    ^
/datasets/git/reftable/reader.c:802:26: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        struct reftable_reader *r = NULL;
                                ^
/datasets/git/reftable/reader.c:804:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err < 0)
                    ^
                     {
/datasets/git/reftable/reader.c:808:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err < 0)
                    ^
                     {
/datasets/git/reftable/record.c:13:1: warning: #includes are not sorted properly [llvm-include-order]
#include "system.h"
^        ~~~~~~~~~~
         "basics.h"
/datasets/git/reftable/record.c:22:53: warning: parameter name 'in' is too short, expected at least 3 characters [readability-identifier-length]
int get_var_int(uint64_t *dest, struct string_view *in)
                                                    ^
/datasets/git/reftable/record.c:25:11: warning: variable 'val' is not initialized [cppcoreguidelines-init-variables]
        uint64_t val;
                 ^
                     = 0
/datasets/git/reftable/record.c:27:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (in->len == 0)
                         ^
                          {
/datasets/git/reftable/record.c:29:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        val = in->buf[ptr] & 0x7f;
              ^              ~~~~
/datasets/git/reftable/record.c:29:23: warning: 0x7f is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        val = in->buf[ptr] & 0x7f;
                             ^
/datasets/git/reftable/record.c:31:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (in->buf[ptr] & 0x80) {
        ^
/datasets/git/reftable/record.c:31:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        while (in->buf[ptr] & 0x80) {
               ^              ~~~~
/datasets/git/reftable/record.c:31:24: warning: 0x80 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        while (in->buf[ptr] & 0x80) {
                              ^
/datasets/git/reftable/record.c:36:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                val = (val + 1) << 7 | (uint64_t)(in->buf[ptr] & 0x7f);
                      ^            ~
/datasets/git/reftable/record.c:36:22: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                val = (val + 1) << 7 | (uint64_t)(in->buf[ptr] & 0x7f);
                                   ^
/datasets/git/reftable/record.c:36:37: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                val = (val + 1) << 7 | (uint64_t)(in->buf[ptr] & 0x7f);
                                                  ^              ~~~~
/datasets/git/reftable/record.c:36:52: warning: 0x7f is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                val = (val + 1) << 7 | (uint64_t)(in->buf[ptr] & 0x7f);
                                                                 ^
/datasets/git/reftable/record.c:45:14: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        uint8_t buf[10] = { 0 };
                    ^
/datasets/git/reftable/record.c:46:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 9;
            ^
/datasets/git/reftable/record.c:46:10: warning: 9 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        int i = 9;
                ^
/datasets/git/reftable/record.c:47:6: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
        int n = 0;
            ^
/datasets/git/reftable/record.c:48:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        buf[i] = (uint8_t)(val & 0x7f);
                           ^     ~~~~
/datasets/git/reftable/record.c:48:27: warning: 0x7f is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        buf[i] = (uint8_t)(val & 0x7f);
                                 ^
/datasets/git/reftable/record.c:50:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/reftable/record.c:51:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                val >>= 7;
                ^       ~
/datasets/git/reftable/record.c:51:11: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                val >>= 7;
                        ^
/datasets/git/reftable/record.c:56:12: warning: 0x80 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                buf[i] = 0x80 | (uint8_t)(val & 0x7f);
                         ^
/datasets/git/reftable/record.c:56:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                buf[i] = 0x80 | (uint8_t)(val & 0x7f);
                         ^~~~
/datasets/git/reftable/record.c:56:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                buf[i] = 0x80 | (uint8_t)(val & 0x7f);
                                          ^     ~~~~
/datasets/git/reftable/record.c:56:35: warning: 0x7f is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                buf[i] = 0x80 | (uint8_t)(val & 0x7f);
                                                ^
/datasets/git/reftable/record.c:60:6: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        n = sizeof(buf) - i - 1;
            ^
/datasets/git/reftable/record.c:61:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (dest->len < n)
                          ^
                           {
/datasets/git/reftable/record.c:63:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(dest->buf, &buf[i + 1], n);
        ^~~~~~
/datasets/git/reftable/record.c:63:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(dest->buf, &buf[i + 1], n);
        ^~~~~~
/datasets/git/reftable/record.c:69:2: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
        switch (typ) {
        ^
/datasets/git/reftable/record.c:101:66: warning: parameter name 'in' is too short, expected at least 3 characters [readability-identifier-length]
static int decode_string(struct strbuf *dest, struct string_view in)
                                                                 ^
/datasets/git/reftable/record.c:103:18: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int start_len = in.len;
                        ^
/datasets/git/reftable/record.c:105:6: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
        int n = get_var_int(&tsize, &in);
            ^
/datasets/git/reftable/record.c:106:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (n <= 0)
                   ^
                    {
/datasets/git/reftable/record.c:109:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (in.len < tsize)
                           ^
                            {
/datasets/git/reftable/record.c:114:27: warning: narrowing conversion from 'uint64_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        string_view_consume(&in, tsize);
                                 ^
/datasets/git/reftable/record.c:116:9: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return start_len - in.len;
               ^
/datasets/git/reftable/record.c:119:56: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static int encode_string(char *str, struct string_view s)
                                                       ^
/datasets/git/reftable/record.c:122:6: warning: variable name 'l' is too short, expected at least 3 characters [readability-identifier-length]
        int l = strlen(str);
            ^
/datasets/git/reftable/record.c:122:10: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int l = strlen(str);
                ^
/datasets/git/reftable/record.c:123:6: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
        int n = put_var_int(&s, l);
            ^
/datasets/git/reftable/record.c:124:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (n < 0)
                  ^
                   {
/datasets/git/reftable/record.c:127:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (s.len < l)
                      ^
                       {
/datasets/git/reftable/record.c:129:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(s.buf, str, l);
        ^~~~~~
/datasets/git/reftable/record.c:129:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(s.buf, str, l);
        ^~~~~~
/datasets/git/reftable/record.c:132:9: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return start.len - s.len;
               ^
/datasets/git/reftable/record.c:142:6: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
        int n = put_var_int(&dest, (uint64_t)prefix_len);
            ^
/datasets/git/reftable/record.c:143:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (n < 0)
                  ^
                   {
/datasets/git/reftable/record.c:149:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        n = put_var_int(&dest, suffix_len << 3 | (uint64_t)extra);
                               ^             ~
/datasets/git/reftable/record.c:150:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (n < 0)
                  ^
                   {
/datasets/git/reftable/record.c:154:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (dest.len < suffix_len)
                                  ^
                                   {
/datasets/git/reftable/record.c:156:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(dest.buf, key.buf + prefix_len, suffix_len);
        ^~~~~~
/datasets/git/reftable/record.c:156:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(dest.buf, key.buf + prefix_len, suffix_len);
        ^~~~~~
/datasets/git/reftable/record.c:157:29: warning: narrowing conversion from 'uint64_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        string_view_consume(&dest, suffix_len);
                                   ^
/datasets/git/reftable/record.c:159:9: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return start.len - dest.len;
               ^
/datasets/git/reftable/record.c:163:47: warning: parameter name 'in' is too short, expected at least 3 characters [readability-identifier-length]
                        struct strbuf last_key, struct string_view in)
                                                                   ^
/datasets/git/reftable/record.c:165:18: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int start_len = in.len;
                        ^
/datasets/git/reftable/record.c:168:6: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
        int n = get_var_int(&prefix_len, &in);
            ^
/datasets/git/reftable/record.c:169:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (n < 0)
                  ^
                   {
/datasets/git/reftable/record.c:173:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prefix_len > last_key.len)
                                      ^
                                       {
/datasets/git/reftable/record.c:177:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (n <= 0)
                   ^
                    {
/datasets/git/reftable/record.c:181:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        *extra = (uint8_t)(suffix_len & 0x7);
                           ^            ~~~
/datasets/git/reftable/record.c:181:34: warning: 0x7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        *extra = (uint8_t)(suffix_len & 0x7);
                                        ^
/datasets/git/reftable/record.c:182:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        suffix_len >>= 3;
        ^              ~
/datasets/git/reftable/record.c:184:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (in.len < suffix_len)
                                ^
                                 {
/datasets/git/reftable/record.c:190:27: warning: narrowing conversion from 'uint64_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        string_view_consume(&in, suffix_len);
                                 ^
/datasets/git/reftable/record.c:192:9: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return start_len - in.len;
               ^
/datasets/git/reftable/record.c:195:49: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void reftable_ref_record_key(const void *r, struct strbuf *dest)
                                                ^
/datasets/git/reftable/record.c:203:43: warning: 2 adjacent parameters of 'reftable_ref_record_copy_from' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void reftable_ref_record_copy_from(void *rec, const void *src_rec,
                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/reftable/record.c:203:49: note: the first parameter in the range is 'rec'
static void reftable_ref_record_copy_from(void *rec, const void *src_rec,
                                                ^~~
/datasets/git/reftable/record.c:203:66: note: the last parameter in the range is 'src_rec'
static void reftable_ref_record_copy_from(void *rec, const void *src_rec,
                                                                 ^~~~~~~
/datasets/git/reftable/record.c:203:54: note: 'void *' and 'const void *' may be implicitly converted
static void reftable_ref_record_copy_from(void *rec, const void *src_rec,
                                                     ^
/datasets/git/reftable/record.c:223:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(ref->value.val1, src->value.val1, hash_size);
                ^~~~~~
/datasets/git/reftable/record.c:223:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(ref->value.val1, src->value.val1, hash_size);
                ^~~~~~
/datasets/git/reftable/record.c:227:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(ref->value.val2.value, src->value.val2.value, hash_size);
                ^~~~~~
/datasets/git/reftable/record.c:227:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(ref->value.val2.value, src->value.val2.value, hash_size);
                ^~~~~~
/datasets/git/reftable/record.c:229:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(ref->value.val2.target_value,
                ^~~~~~
/datasets/git/reftable/record.c:229:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(ref->value.val2.target_value,
                ^~~~~~
/datasets/git/reftable/record.c:238:26: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static char hexdigit(int c)
                         ^
/datasets/git/reftable/record.c:240:11: warning: 9 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (c <= 9)
                 ^
/datasets/git/reftable/record.c:240:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (c <= 9)
                   ^
                    {
/datasets/git/reftable/record.c:241:10: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                return '0' + c;
                       ^
/datasets/git/reftable/record.c:242:9: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return 'a' + (c - 10);
               ^
/datasets/git/reftable/record.c:242:20: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        return 'a' + (c - 10);
                          ^
/datasets/git/reftable/record.c:245:45: warning: pointer parameter 'src' can be pointer to const [readability-non-const-parameter]
static void hex_format(char *dest, uint8_t *src, int hash_size)
                                            ^
                                   const 
/datasets/git/reftable/record.c:249:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
                int i = 0;
                    ^
/datasets/git/reftable/record.c:250:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < hash_size; i++) {
                ^
/datasets/git/reftable/record.c:251:4: warning: result of multiplication in type 'int' is used as a pointer offset after an implicit widening conversion to type 'ptrdiff_t' [bugprone-implicit-widening-of-multiplication-result]
                        dest[2 * i] = hexdigit(src[i] >> 4);
                        ^
/datasets/git/reftable/record.c:251:9: note: make conversion explicit to silence this warning
                        dest[2 * i] = hexdigit(src[i] >> 4);
                             ^~~~~
                             (ptrdiff_t)( )
/datasets/git/reftable/record.c:251:9: note: perform multiplication in a wider type
                        dest[2 * i] = hexdigit(src[i] >> 4);
                             ^
                             (ptrdiff_t)
/datasets/git/reftable/record.c:251:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        dest[2 * i] = hexdigit(src[i] >> 4);
                                               ^         ~
/datasets/git/reftable/record.c:252:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        dest[2 * i + 1] = hexdigit(src[i] & 0xf);
                                                   ^        ~~~
/datasets/git/reftable/record.c:252:40: warning: 0xf is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        dest[2 * i + 1] = hexdigit(src[i] & 0xf);
                                                            ^
/datasets/git/reftable/record.c:254:3: warning: result of multiplication in type 'int' is used as a pointer offset after an implicit widening conversion to type 'ptrdiff_t' [bugprone-implicit-widening-of-multiplication-result]
                dest[2 * hash_size] = 0;
                ^
/datasets/git/reftable/record.c:254:8: note: make conversion explicit to silence this warning
                dest[2 * hash_size] = 0;
                     ^~~~~~~~~~~~~
                     (ptrdiff_t)( )
/datasets/git/reftable/record.c:254:8: note: perform multiplication in a wider type
                dest[2 * hash_size] = 0;
                     ^
                     (ptrdiff_t)
/datasets/git/reftable/record.c:315:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(ref, 0, sizeof(struct reftable_ref_record));
        ^~~~~~
/datasets/git/reftable/record.c:315:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(ref, 0, sizeof(struct reftable_ref_record));
        ^~~~~~
/datasets/git/reftable/record.c:320:36: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        const struct reftable_ref_record *r =
                                          ^
/datasets/git/reftable/record.c:325:75: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static int reftable_ref_record_encode(const void *rec, struct string_view s,
                                                                          ^
/datasets/git/reftable/record.c:328:36: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        const struct reftable_ref_record *r =
                                          ^
/datasets/git/reftable/record.c:331:6: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
        int n = put_var_int(&s, r->update_index);
            ^
/datasets/git/reftable/record.c:333:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (n < 0)
                  ^
                   {
/datasets/git/reftable/record.c:346:15: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                if (s.len < 2 * hash_size) {
                            ^
/datasets/git/reftable/record.c:346:15: note: make conversion explicit to silence this warning
                if (s.len < 2 * hash_size) {
                            ^~~~~~~~~~~~~
                            (unsigned long)( )
/datasets/git/reftable/record.c:346:15: note: perform multiplication in a wider type
                if (s.len < 2 * hash_size) {
                            ^
                            (long)
/datasets/git/reftable/record.c:349:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(s.buf, r->value.val2.value, hash_size);
                ^~~~~~
/datasets/git/reftable/record.c:349:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(s.buf, r->value.val2.value, hash_size);
                ^~~~~~
/datasets/git/reftable/record.c:351:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(s.buf, r->value.val2.target_value, hash_size);
                ^~~~~~
/datasets/git/reftable/record.c:351:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(s.buf, r->value.val2.target_value, hash_size);
                ^~~~~~
/datasets/git/reftable/record.c:358:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(s.buf, r->value.val1, hash_size);
                ^~~~~~
/datasets/git/reftable/record.c:358:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(s.buf, r->value.val1, hash_size);
                ^~~~~~
/datasets/git/reftable/record.c:367:9: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return start.len - s.len;
               ^
/datasets/git/reftable/record.c:371:48: warning: parameter name 'in' is too short, expected at least 3 characters [readability-identifier-length]
                                      uint8_t val_type, struct string_view in,
                                                                           ^
/datasets/git/reftable/record.c:374:30: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        struct reftable_ref_record *r = rec;
                                    ^
/datasets/git/reftable/record.c:377:6: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
        int n = get_var_int(&update_index, &in);
            ^
/datasets/git/reftable/record.c:378:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (n < 0)
                  ^
                   {
/datasets/git/reftable/record.c:387:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(r->refname, key.buf, key.len);
        ^~~~~~
/datasets/git/reftable/record.c:387:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(r->refname, key.buf, key.len);
        ^~~~~~
/datasets/git/reftable/record.c:398:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(r->value.val1, in.buf, hash_size);
                ^~~~~~
/datasets/git/reftable/record.c:398:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(r->value.val1, in.buf, hash_size);
                ^~~~~~
/datasets/git/reftable/record.c:403:16: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                if (in.len < 2 * hash_size) {
                             ^
/datasets/git/reftable/record.c:403:16: note: make conversion explicit to silence this warning
                if (in.len < 2 * hash_size) {
                             ^~~~~~~~~~~~~
                             (unsigned long)( )
/datasets/git/reftable/record.c:403:16: note: perform multiplication in a wider type
                if (in.len < 2 * hash_size) {
                             ^
                             (long)
/datasets/git/reftable/record.c:408:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(r->value.val2.value, in.buf, hash_size);
                ^~~~~~
/datasets/git/reftable/record.c:408:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(r->value.val2.value, in.buf, hash_size);
                ^~~~~~
/datasets/git/reftable/record.c:412:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(r->value.val2.target_value, in.buf, hash_size);
                ^~~~~~
/datasets/git/reftable/record.c:412:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(r->value.val2.target_value, in.buf, hash_size);
                ^~~~~~
/datasets/git/reftable/record.c:418:7: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
                int n = decode_string(&dest, in);
                    ^
/datasets/git/reftable/record.c:433:9: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return start.len - in.len;
               ^
/datasets/git/reftable/record.c:436:61: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static int reftable_ref_record_is_deletion_void(const void *p)
                                                            ^
/datasets/git/reftable/record.c:443:43: warning: 2 adjacent parameters of 'reftable_ref_record_equal_void' of similar type ('const void *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int reftable_ref_record_equal_void(const void *a,
                                          ^~~~~~~~~~~~~~
/datasets/git/reftable/record.c:443:55: note: the first parameter in the range is 'a'
static int reftable_ref_record_equal_void(const void *a,
                                                      ^
/datasets/git/reftable/record.c:444:20: note: the last parameter in the range is 'b'
                                          const void *b, int hash_size)
                                                      ^
/datasets/git/reftable/record.c:443:55: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static int reftable_ref_record_equal_void(const void *a,
                                                      ^
/datasets/git/reftable/record.c:444:20: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
                                          const void *b, int hash_size)
                                                      ^
/datasets/git/reftable/record.c:446:30: warning: variable name 'ra' is too short, expected at least 3 characters [readability-identifier-length]
        struct reftable_ref_record *ra = (struct reftable_ref_record *) a;
                                    ^
/datasets/git/reftable/record.c:447:30: warning: variable name 'rb' is too short, expected at least 3 characters [readability-identifier-length]
        struct reftable_ref_record *rb = (struct reftable_ref_record *) b;
                                    ^
/datasets/git/reftable/record.c:457:38: warning: variable 'reftable_ref_record_vtable' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct reftable_record_vtable reftable_ref_record_vtable = {
                                     ^
/datasets/git/reftable/record.c:470:49: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void reftable_obj_record_key(const void *r, struct strbuf *dest)
                                                ^
/datasets/git/reftable/record.c:481:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(obj->hash_prefix);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/reftable/record.c:482:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(obj->offsets);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/reftable/record.c:483:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(obj, 0, sizeof(struct reftable_obj_record));
        ^~~~~~
/datasets/git/reftable/record.c:483:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(obj, 0, sizeof(struct reftable_obj_record));
        ^~~~~~
/datasets/git/reftable/record.c:486:60: warning: parameter 'hash_size' is unused [misc-unused-parameters]
static void reftable_obj_record_print(const void *rec, int hash_size)
                                                           ^
/datasets/git/reftable/record.c:491:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/reftable/record.c:491:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/reftable/record.c:493:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < obj->offset_len; i++)
        ^
/datasets/git/reftable/record.c:493:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'obj' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < obj->offset_len; i++)
                    ^
/datasets/git/reftable/record.c:493:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < obj->offset_len; i++)
                                             ^
                                              {
/datasets/git/reftable/record.c:501:43: warning: 2 adjacent parameters of 'reftable_obj_record_copy_from' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void reftable_obj_record_copy_from(void *rec, const void *src_rec,
                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/reftable/record.c:501:49: note: the first parameter in the range is 'rec'
static void reftable_obj_record_copy_from(void *rec, const void *src_rec,
                                                ^~~
/datasets/git/reftable/record.c:501:66: note: the last parameter in the range is 'src_rec'
static void reftable_obj_record_copy_from(void *rec, const void *src_rec,
                                                                 ^~~~~~~
/datasets/git/reftable/record.c:501:54: note: 'void *' and 'const void *' may be implicitly converted
static void reftable_obj_record_copy_from(void *rec, const void *src_rec,
                                                     ^
/datasets/git/reftable/record.c:502:12: warning: parameter 'hash_size' is unused [misc-unused-parameters]
                                          int hash_size)
                                              ^
/datasets/git/reftable/record.c:511:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (src->hash_prefix_len)
                                 ^
                                  {
/datasets/git/reftable/record.c:512:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(obj->hash_prefix, src->hash_prefix, obj->hash_prefix_len);
                ^~~~~~
/datasets/git/reftable/record.c:512:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(obj->hash_prefix, src->hash_prefix, obj->hash_prefix_len);
                ^~~~~~
/datasets/git/reftable/record.c:521:36: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        const struct reftable_obj_record *r = rec;
                                          ^
/datasets/git/reftable/record.c:522:43: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (r->offset_len > 0 && r->offset_len < 8)
                                                 ^
/datasets/git/reftable/record.c:522:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (r->offset_len > 0 && r->offset_len < 8)
                                                   ^
                                                    {
/datasets/git/reftable/record.c:527:75: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static int reftable_obj_record_encode(const void *rec, struct string_view s,
                                                                          ^
/datasets/git/reftable/record.c:528:15: warning: parameter 'hash_size' is unused [misc-unused-parameters]
                                      int hash_size)
                                          ^
/datasets/git/reftable/record.c:530:36: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        const struct reftable_obj_record *r = rec;
                                          ^
/datasets/git/reftable/record.c:532:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0;
            ^
/datasets/git/reftable/record.c:533:6: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
        int n = 0;
            ^
/datasets/git/reftable/record.c:535:45: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (r->offset_len == 0 || r->offset_len >= 8) {
                                                   ^
/datasets/git/reftable/record.c:542:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (r->offset_len == 0)
                               ^
                                {
/datasets/git/reftable/record.c:543:10: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                return start.len - s.len;
                       ^
/datasets/git/reftable/record.c:545:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (n < 0)
                  ^
                   {
/datasets/git/reftable/record.c:550:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 1; i < r->offset_len; i++) {
        ^
/datasets/git/reftable/record.c:550:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'r' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 1; i < r->offset_len; i++) {
                    ^
/datasets/git/reftable/record.c:551:7: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
                int n = put_var_int(&s, r->offsets[i] - last);
                    ^
/datasets/git/reftable/record.c:558:9: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return start.len - s.len;
               ^
/datasets/git/reftable/record.c:562:48: warning: parameter name 'in' is too short, expected at least 3 characters [readability-identifier-length]
                                      uint8_t val_type, struct string_view in,
                                                                           ^
/datasets/git/reftable/record.c:563:15: warning: parameter 'hash_size' is unused [misc-unused-parameters]
                                      int hash_size)
                                          ^
/datasets/git/reftable/record.c:566:30: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        struct reftable_obj_record *r = rec;
                                    ^
/datasets/git/reftable/record.c:568:6: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
        int n = 0;
            ^
/datasets/git/reftable/record.c:569:11: warning: variable 'last' is not initialized [cppcoreguidelines-init-variables]
        uint64_t last;
                 ^
                      = 0
/datasets/git/reftable/record.c:570:6: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int j;
            ^
              = 0
/datasets/git/reftable/record.c:570:6: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/reftable/record.c:572:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(r->hash_prefix, key.buf, key.len);
        ^~~~~~
/datasets/git/reftable/record.c:572:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(r->hash_prefix, key.buf, key.len);
        ^~~~~~
/datasets/git/reftable/record.c:573:23: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        r->hash_prefix_len = key.len;
                             ^
/datasets/git/reftable/record.c:586:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (count == 0)
                       ^
                        {
/datasets/git/reftable/record.c:587:10: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                return start.len - in.len;
                       ^
/datasets/git/reftable/record.c:590:18: warning: narrowing conversion from 'uint64_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        r->offset_len = count;
                        ^
/datasets/git/reftable/record.c:593:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (n < 0)
                  ^
                   {
/datasets/git/reftable/record.c:599:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (j < count) {
        ^
/datasets/git/reftable/record.c:599:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'count' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (j < count) {
               ^
/datasets/git/reftable/record.c:601:7: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
                int n = get_var_int(&delta, &in);
                    ^
/datasets/git/reftable/record.c:610:9: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return start.len - in.len;
               ^
/datasets/git/reftable/record.c:613:39: warning: parameter 'p' is unused [misc-unused-parameters]
static int not_a_deletion(const void *p)
                                      ^
/datasets/git/reftable/record.c:613:39: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/reftable/record.c:618:43: warning: 2 adjacent parameters of 'reftable_obj_record_equal_void' of similar type ('const void *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int reftable_obj_record_equal_void(const void *a, const void *b, int hash_size)
                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/reftable/record.c:618:55: note: the first parameter in the range is 'a'
static int reftable_obj_record_equal_void(const void *a, const void *b, int hash_size)
                                                      ^
/datasets/git/reftable/record.c:618:70: note: the last parameter in the range is 'b'
static int reftable_obj_record_equal_void(const void *a, const void *b, int hash_size)
                                                                     ^
/datasets/git/reftable/record.c:618:55: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static int reftable_obj_record_equal_void(const void *a, const void *b, int hash_size)
                                                      ^
/datasets/git/reftable/record.c:618:70: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static int reftable_obj_record_equal_void(const void *a, const void *b, int hash_size)
                                                                     ^
/datasets/git/reftable/record.c:618:77: warning: parameter 'hash_size' is unused [misc-unused-parameters]
static int reftable_obj_record_equal_void(const void *a, const void *b, int hash_size)
                                                                            ^
/datasets/git/reftable/record.c:620:30: warning: variable name 'ra' is too short, expected at least 3 characters [readability-identifier-length]
        struct reftable_obj_record *ra = (struct reftable_obj_record *) a;
                                    ^
/datasets/git/reftable/record.c:621:30: warning: variable name 'rb' is too short, expected at least 3 characters [readability-identifier-length]
        struct reftable_obj_record *rb = (struct reftable_obj_record *) b;
                                    ^
/datasets/git/reftable/record.c:624:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            || ra->offset_len != rb->offset_len)
                                                ^
                                                 {
/datasets/git/reftable/record.c:628:6: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
            memcmp(ra->hash_prefix, rb->hash_prefix, ra->hash_prefix_len))
            ^
                                                                          != 0
/datasets/git/reftable/record.c:628:68: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            memcmp(ra->hash_prefix, rb->hash_prefix, ra->hash_prefix_len))
                                                                          ^
                                                                           {
/datasets/git/reftable/record.c:631:6: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
            memcmp(ra->offsets, rb->offsets, ra->offset_len * sizeof(uint64_t)))
            ^
                                                                                != 0
/datasets/git/reftable/record.c:631:74: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            memcmp(ra->offsets, rb->offsets, ra->offset_len * sizeof(uint64_t)))
                                                                                ^
                                                                                 {
/datasets/git/reftable/record.c:637:38: warning: variable 'reftable_obj_record_vtable' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct reftable_record_vtable reftable_obj_record_vtable = {
                                     ^
/datasets/git/reftable/record.c:682:49: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void reftable_log_record_key(const void *r, struct strbuf *dest)
                                                ^
/datasets/git/reftable/record.c:686:12: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int len = strlen(rec->refname);
                  ^
/datasets/git/reftable/record.c:687:14: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        uint8_t i64[8];
                    ^
/datasets/git/reftable/record.c:688:11: warning: variable name 'ts' is too short, expected at least 3 characters [readability-identifier-length]
        uint64_t ts = 0;
                 ^
/datasets/git/reftable/record.c:697:43: warning: 2 adjacent parameters of 'reftable_log_record_copy_from' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void reftable_log_record_copy_from(void *rec, const void *src_rec,
                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/reftable/record.c:697:49: note: the first parameter in the range is 'rec'
static void reftable_log_record_copy_from(void *rec, const void *src_rec,
                                                ^~~
/datasets/git/reftable/record.c:697:66: note: the last parameter in the range is 'src_rec'
static void reftable_log_record_copy_from(void *rec, const void *src_rec,
                                                                 ^~~~~~~
/datasets/git/reftable/record.c:697:54: note: 'void *' and 'const void *' may be implicitly converted
static void reftable_log_record_copy_from(void *rec, const void *src_rec,
                                                     ^
/datasets/git/reftable/record.c:728:4: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memcpy(dst->value.update.new_hash,
                        ^~~~~~
/datasets/git/reftable/record.c:728:4: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                        memcpy(dst->value.update.new_hash,
                        ^~~~~~
/datasets/git/reftable/record.c:733:4: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memcpy(dst->value.update.old_hash,
                        ^~~~~~
/datasets/git/reftable/record.c:733:4: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                        memcpy(dst->value.update.old_hash,
                        ^~~~~~
/datasets/git/reftable/record.c:742:30: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        struct reftable_log_record *r = rec;
                                    ^
/datasets/git/reftable/record.c:746:62: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void reftable_log_record_release(struct reftable_log_record *r)
                                                             ^
/datasets/git/reftable/record.c:760:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(r, 0, sizeof(struct reftable_log_record));
        ^~~~~~
/datasets/git/reftable/record.c:760:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(r, 0, sizeof(struct reftable_log_record));
        ^~~~~~
/datasets/git/reftable/record.c:771:16: warning: variable 'zero' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static uint8_t zero[GIT_SHA256_RAWSZ] = { 0 };
               ^
/datasets/git/reftable/record.c:773:75: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static int reftable_log_record_encode(const void *rec, struct string_view s,
                                                                          ^
/datasets/git/reftable/record.c:776:36: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        const struct reftable_log_record *r = rec;
                                          ^
/datasets/git/reftable/record.c:778:6: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
        int n = 0;
            ^
/datasets/git/reftable/record.c:781:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (reftable_log_record_is_deletion(r))
                                               ^
                                                {
/datasets/git/reftable/record.c:793:14: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        if (s.len < 2 * hash_size)
                    ^
/datasets/git/reftable/record.c:793:14: note: make conversion explicit to silence this warning
        if (s.len < 2 * hash_size)
                    ^~~~~~~~~~~~~
                    (unsigned long)( )
/datasets/git/reftable/record.c:793:14: note: perform multiplication in a wider type
        if (s.len < 2 * hash_size)
                    ^
                    (long)
/datasets/git/reftable/record.c:793:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (s.len < 2 * hash_size)
                                  ^
                                   {
/datasets/git/reftable/record.c:796:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(s.buf, oldh, hash_size);
        ^~~~~~
/datasets/git/reftable/record.c:796:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(s.buf, oldh, hash_size);
        ^~~~~~
/datasets/git/reftable/record.c:797:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(s.buf + hash_size, newh, hash_size);
        ^~~~~~
/datasets/git/reftable/record.c:797:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(s.buf + hash_size, newh, hash_size);
        ^~~~~~
/datasets/git/reftable/record.c:801:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (n < 0)
                  ^
                   {
/datasets/git/reftable/record.c:807:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (n < 0)
                  ^
                   {
/datasets/git/reftable/record.c:812:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (n < 0)
                  ^
                   {
/datasets/git/reftable/record.c:816:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (s.len < 2)
                      ^
                       {
/datasets/git/reftable/record.c:824:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (n < 0)
                  ^
                   {
/datasets/git/reftable/record.c:828:9: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return start.len - s.len;
               ^
/datasets/git/reftable/record.c:831:12: warning: function 'reftable_log_record_decode' has cognitive complexity of 27 (threshold 25) [readability-function-cognitive-complexity]
static int reftable_log_record_decode(void *rec, struct strbuf key,
           ^
/datasets/git/reftable/record.c:842:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (key.len <= 9 || key.buf[key.len - 9] != 0)
        ^
/datasets/git/reftable/record.c:842:19: note: +1
        if (key.len <= 9 || key.buf[key.len - 9] != 0)
                         ^
/datasets/git/reftable/record.c:851:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (val_type != r->value_type) {
        ^
/datasets/git/reftable/record.c:852:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                switch (r->value_type) {
                ^
/datasets/git/reftable/record.c:854:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        FREE_AND_NULL(r->value.update.old_hash);
                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/reftable/record.c:855:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        FREE_AND_NULL(r->value.update.new_hash);
                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/reftable/record.c:856:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        FREE_AND_NULL(r->value.update.message);
                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/reftable/record.c:857:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        FREE_AND_NULL(r->value.update.email);
                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/reftable/record.c:858:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        FREE_AND_NULL(r->value.update.name);
                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/reftable/record.c:866:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (val_type == REFTABLE_LOG_DELETION)
        ^
/datasets/git/reftable/record.c:869:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (in.len < 2 * hash_size)
        ^
/datasets/git/reftable/record.c:883:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (n < 0)
        ^
/datasets/git/reftable/record.c:894:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (n < 0)
        ^
/datasets/git/reftable/record.c:905:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (n < 0)
        ^
/datasets/git/reftable/record.c:909:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (in.len < 2)
        ^
/datasets/git/reftable/record.c:917:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (n < 0)
        ^
/datasets/git/reftable/record.c:832:48: warning: parameter name 'in' is too short, expected at least 3 characters [readability-identifier-length]
                                      uint8_t val_type, struct string_view in,
                                                                           ^
/datasets/git/reftable/record.c:836:30: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        struct reftable_log_record *r = rec;
                                    ^
/datasets/git/reftable/record.c:838:11: warning: variable name 'ts' is too short, expected at least 3 characters [readability-identifier-length]
        uint64_t ts = 0;
                 ^
/datasets/git/reftable/record.c:840:6: warning: variable 'n' is not initialized [cppcoreguidelines-init-variables]
        int n;
            ^
              = 0
/datasets/git/reftable/record.c:840:6: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/reftable/record.c:842:17: warning: 9 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (key.len <= 9 || key.buf[key.len - 9] != 0)
                       ^
/datasets/git/reftable/record.c:842:40: warning: 9 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (key.len <= 9 || key.buf[key.len - 9] != 0)
                                              ^
/datasets/git/reftable/record.c:842:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (key.len <= 9 || key.buf[key.len - 9] != 0)
                                                      ^
                                                       {
/datasets/git/reftable/record.c:845:54: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        r->refname = reftable_realloc(r->refname, key.len - 8);
                                                            ^
/datasets/git/reftable/record.c:846:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(r->refname, key.buf, key.len - 8);
        ^~~~~~
/datasets/git/reftable/record.c:846:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(r->refname, key.buf, key.len - 8);
        ^~~~~~
/datasets/git/reftable/record.c:846:40: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        memcpy(r->refname, key.buf, key.len - 8);
                                              ^
/datasets/git/reftable/record.c:847:36: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        ts = get_be64(key.buf + key.len - 8);
                                          ^
/datasets/git/reftable/record.c:854:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        FREE_AND_NULL(r->value.update.old_hash);
                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/reftable/record.c:855:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        FREE_AND_NULL(r->value.update.new_hash);
                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/reftable/record.c:856:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        FREE_AND_NULL(r->value.update.message);
                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/reftable/record.c:857:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        FREE_AND_NULL(r->value.update.email);
                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/reftable/record.c:858:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        FREE_AND_NULL(r->value.update.name);
                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/reftable/record.c:866:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (val_type == REFTABLE_LOG_DELETION)
                                              ^
                                               {
/datasets/git/reftable/record.c:869:15: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        if (in.len < 2 * hash_size)
                     ^
/datasets/git/reftable/record.c:869:15: note: make conversion explicit to silence this warning
        if (in.len < 2 * hash_size)
                     ^~~~~~~~~~~~~
                     (unsigned long)( )
/datasets/git/reftable/record.c:869:15: note: perform multiplication in a wider type
        if (in.len < 2 * hash_size)
                     ^
                     (long)
/datasets/git/reftable/record.c:869:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (in.len < 2 * hash_size)
                                   ^
                                    {
/datasets/git/reftable/record.c:877:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(r->value.update.old_hash, in.buf, hash_size);
        ^~~~~~
/datasets/git/reftable/record.c:877:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(r->value.update.old_hash, in.buf, hash_size);
        ^~~~~~
/datasets/git/reftable/record.c:878:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(r->value.update.new_hash, in.buf + hash_size, hash_size);
        ^~~~~~
/datasets/git/reftable/record.c:878:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(r->value.update.new_hash, in.buf + hash_size, hash_size);
        ^~~~~~
/datasets/git/reftable/record.c:883:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (n < 0)
                  ^
                   {
/datasets/git/reftable/record.c:889:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(r->value.update.name, dest.buf, dest.len);
        ^~~~~~
/datasets/git/reftable/record.c:889:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(r->value.update.name, dest.buf, dest.len);
        ^~~~~~
/datasets/git/reftable/record.c:894:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (n < 0)
                  ^
                   {
/datasets/git/reftable/record.c:900:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(r->value.update.email, dest.buf, dest.len);
        ^~~~~~
/datasets/git/reftable/record.c:900:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(r->value.update.email, dest.buf, dest.len);
        ^~~~~~
/datasets/git/reftable/record.c:905:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (n < 0)
                  ^
                   {
/datasets/git/reftable/record.c:909:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (in.len < 2)
                       ^
                        {
/datasets/git/reftable/record.c:912:30: warning: narrowing conversion from 'uint16_t' (aka 'unsigned short') to signed type 'int16_t' (aka 'short') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        r->value.update.tz_offset = get_be16(in.buf);
                                    ^
/datasets/git/reftable/record.c:917:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (n < 0)
                  ^
                   {
/datasets/git/reftable/record.c:923:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(r->value.update.message, dest.buf, dest.len);
        ^~~~~~
/datasets/git/reftable/record.c:923:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(r->value.update.message, dest.buf, dest.len);
        ^~~~~~
/datasets/git/reftable/record.c:927:9: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return start.len - in.len;
               ^
/datasets/git/reftable/record.c:934:29: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static int null_streq(char *a, char *b)
                            ^
/datasets/git/reftable/record.c:934:38: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static int null_streq(char *a, char *b)
                                     ^
/datasets/git/reftable/record.c:937:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!a)
               ^
                {
/datasets/git/reftable/record.c:940:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!b)
               ^
                {
/datasets/git/reftable/record.c:946:34: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static int zero_hash_eq(uint8_t *a, uint8_t *b, int sz)
                                 ^
/datasets/git/reftable/record.c:946:46: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static int zero_hash_eq(uint8_t *a, uint8_t *b, int sz)
                                             ^
/datasets/git/reftable/record.c:946:53: warning: parameter name 'sz' is too short, expected at least 3 characters [readability-identifier-length]
static int zero_hash_eq(uint8_t *a, uint8_t *b, int sz)
                                                    ^
/datasets/git/reftable/record.c:948:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!a)
               ^
                {
/datasets/git/reftable/record.c:951:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!b)
               ^
                {
/datasets/git/reftable/record.c:957:55: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static int reftable_log_record_equal_void(const void *a,
                                                      ^
/datasets/git/reftable/record.c:958:20: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
                                          const void *b, int hash_size)
                                                      ^
/datasets/git/reftable/record.c:965:65: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
int reftable_log_record_equal(const struct reftable_log_record *a,
                                                                ^
/datasets/git/reftable/record.c:966:44: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
                              const struct reftable_log_record *b, int hash_size)
                                                                ^
/datasets/git/reftable/record.c:970:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
              a->value_type == b->value_type))
                                              ^
                                               {
/datasets/git/reftable/record.c:993:61: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static int reftable_log_record_is_deletion_void(const void *p)
                                                            ^
/datasets/git/reftable/record.c:1004:38: warning: variable 'reftable_log_record_vtable' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct reftable_record_vtable reftable_log_record_vtable = {
                                     ^
/datasets/git/reftable/record.c:1017:51: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void reftable_index_record_key(const void *r, struct strbuf *dest)
                                                  ^
/datasets/git/reftable/record.c:1024:45: warning: 2 adjacent parameters of 'reftable_index_record_copy_from' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void reftable_index_record_copy_from(void *rec, const void *src_rec,
                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/reftable/record.c:1024:51: note: the first parameter in the range is 'rec'
static void reftable_index_record_copy_from(void *rec, const void *src_rec,
                                                  ^~~
/datasets/git/reftable/record.c:1024:68: note: the last parameter in the range is 'src_rec'
static void reftable_index_record_copy_from(void *rec, const void *src_rec,
                                                                   ^~~~~~~
/datasets/git/reftable/record.c:1024:56: note: 'void *' and 'const void *' may be implicitly converted
static void reftable_index_record_copy_from(void *rec, const void *src_rec,
                                                       ^
/datasets/git/reftable/record.c:1025:14: warning: parameter 'hash_size' is unused [misc-unused-parameters]
                                            int hash_size)
                                                ^
/datasets/git/reftable/record.c:1041:59: warning: parameter 'rec' is unused [misc-unused-parameters]
static uint8_t reftable_index_record_val_type(const void *rec)
                                                          ^
/datasets/git/reftable/record.c:1047:10: warning: parameter 'hash_size' is unused [misc-unused-parameters]
                                        int hash_size)
                                            ^
/datasets/git/reftable/record.c:1049:38: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        const struct reftable_index_record *r =
                                            ^
/datasets/git/reftable/record.c:1053:6: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
        int n = put_var_int(&out, r->offset);
            ^
/datasets/git/reftable/record.c:1054:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (n < 0)
                  ^
                   {
/datasets/git/reftable/record.c:1059:9: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return start.len - out.len;
               ^
/datasets/git/reftable/record.c:1063:14: warning: parameter 'val_type' is unused [misc-unused-parameters]
                                        uint8_t val_type, struct string_view in,
                                                ^
/datasets/git/reftable/record.c:1063:43: warning: parameter name 'in' is too short, expected at least 3 characters [readability-identifier-length]
                                        uint8_t val_type, struct string_view in,
                                                                             ^
/datasets/git/reftable/record.c:1064:10: warning: parameter 'hash_size' is unused [misc-unused-parameters]
                                        int hash_size)
                                            ^
/datasets/git/reftable/record.c:1067:32: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        struct reftable_index_record *r = rec;
                                      ^
/datasets/git/reftable/record.c:1068:6: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
        int n = 0;
            ^
/datasets/git/reftable/record.c:1074:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (n < 0)
                  ^
                   {
/datasets/git/reftable/record.c:1078:9: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return start.len - in.len;
               ^
/datasets/git/reftable/record.c:1081:40: warning: 2 adjacent parameters of 'reftable_index_record_equal' of similar type ('const void *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int reftable_index_record_equal(const void *a, const void *b, int hash_size)
                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/reftable/record.c:1081:52: note: the first parameter in the range is 'a'
static int reftable_index_record_equal(const void *a, const void *b, int hash_size)
                                                   ^
/datasets/git/reftable/record.c:1081:67: note: the last parameter in the range is 'b'
static int reftable_index_record_equal(const void *a, const void *b, int hash_size)
                                                                  ^
/datasets/git/reftable/record.c:1081:52: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static int reftable_index_record_equal(const void *a, const void *b, int hash_size)
                                                   ^
/datasets/git/reftable/record.c:1081:67: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static int reftable_index_record_equal(const void *a, const void *b, int hash_size)
                                                                  ^
/datasets/git/reftable/record.c:1081:74: warning: parameter 'hash_size' is unused [misc-unused-parameters]
static int reftable_index_record_equal(const void *a, const void *b, int hash_size)
                                                                         ^
/datasets/git/reftable/record.c:1083:32: warning: variable name 'ia' is too short, expected at least 3 characters [readability-identifier-length]
        struct reftable_index_record *ia = (struct reftable_index_record *) a;
                                      ^
/datasets/git/reftable/record.c:1084:32: warning: variable name 'ib' is too short, expected at least 3 characters [readability-identifier-length]
        struct reftable_index_record *ib = (struct reftable_index_record *) b;
                                      ^
/datasets/git/reftable/record.c:1089:62: warning: parameter 'hash_size' is unused [misc-unused-parameters]
static void reftable_index_record_print(const void *rec, int hash_size)
                                                             ^
/datasets/git/reftable/record.c:1096:38: warning: variable 'reftable_index_record_vtable' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct reftable_record_vtable reftable_index_record_vtable = {
                                     ^
/datasets/git/reftable/record.c:1159:51: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
int reftable_record_equal(struct reftable_record *a, struct reftable_record *b, int hash_size)
                                                  ^
/datasets/git/reftable/record.c:1159:78: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
int reftable_record_equal(struct reftable_record *a, struct reftable_record *b, int hash_size)
                                                                             ^
/datasets/git/reftable/record.c:1161:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (a->type != b->type)
                               ^
                                {
/datasets/git/reftable/record.c:1167:32: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static int hash_equal(uint8_t *a, uint8_t *b, int hash_size)
                               ^
/datasets/git/reftable/record.c:1167:44: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static int hash_equal(uint8_t *a, uint8_t *b, int hash_size)
                                           ^
/datasets/git/reftable/record.c:1169:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (a && b)
                   ^
                    {
/datasets/git/reftable/record.c:1175:65: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
int reftable_ref_record_equal(const struct reftable_ref_record *a,
                                                                ^
/datasets/git/reftable/record.c:1176:44: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
                              const struct reftable_ref_record *b, int hash_size)
                                                                ^
/datasets/git/reftable/record.c:1179:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!null_streq(a->refname, b->refname))
                                                ^
                                                 {
/datasets/git/reftable/record.c:1183:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            a->value_type != b->value_type)
                                           ^
                                            {
/datasets/git/reftable/record.c:1203:50: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
int reftable_ref_record_compare_name(const void *a, const void *b)
                                                 ^
/datasets/git/reftable/record.c:1203:65: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
int reftable_ref_record_compare_name(const void *a, const void *b)
                                                                ^
/datasets/git/reftable/record.c:1214:37: warning: 2 adjacent parameters of 'reftable_log_record_compare_key' of similar type ('const void *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
int reftable_log_record_compare_key(const void *a, const void *b)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/reftable/record.c:1214:49: note: the first parameter in the range is 'a'
int reftable_log_record_compare_key(const void *a, const void *b)
                                                ^
/datasets/git/reftable/record.c:1214:64: note: the last parameter in the range is 'b'
int reftable_log_record_compare_key(const void *a, const void *b)
                                                               ^
/datasets/git/reftable/record.c:1214:49: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
int reftable_log_record_compare_key(const void *a, const void *b)
                                                ^
/datasets/git/reftable/record.c:1214:64: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
int reftable_log_record_compare_key(const void *a, const void *b)
                                                               ^
/datasets/git/reftable/record.c:1216:36: warning: variable name 'la' is too short, expected at least 3 characters [readability-identifier-length]
        const struct reftable_log_record *la = a;
                                          ^
/datasets/git/reftable/record.c:1217:36: warning: variable name 'lb' is too short, expected at least 3 characters [readability-identifier-length]
        const struct reftable_log_record *lb = b;
                                          ^
/datasets/git/reftable/record.c:1220:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cmp)
                ^
                 {
/datasets/git/reftable/record.c:1222:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (la->update_index > lb->update_index)
                                                ^
                                                 {
/datasets/git/reftable/record.c:1232:46: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
void string_view_consume(struct string_view *s, int n)
                                             ^
/datasets/git/reftable/record.c:1279:2: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
        switch (typ) {
        ^
/datasets/git/reftable/refname.c:10:1: warning: #includes are not sorted properly [llvm-include-order]
#include "reftable-error.h"
^        ~~~~~~~~~~~~~~~~~~
         "basics.h"
/datasets/git/reftable/refname.c:15:8: warning: accessing fields in struct 'find_arg' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct find_arg {
       ^
/datasets/git/reftable/refname.c:15:8: note: use "__attribute__((aligned(16)))" to align struct 'find_arg' to 16 bytes
/datasets/git/reftable/refname.c:20:29: warning: parameter name 'k' is too short, expected at least 3 characters [readability-identifier-length]
static int find_name(size_t k, void *arg)
                            ^
/datasets/git/reftable/refname.c:62:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(mod->add);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/reftable/refname.c:63:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(mod->del);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/reftable/refname.c:71:27: warning: variable name 'it' is too short, expected at least 3 characters [readability-identifier-length]
        struct reftable_iterator it = { NULL };
                                 ^
/datasets/git/reftable/refname.c:82:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !strncmp(prefix, mod->add[idx], strlen(prefix)))
                                                                    ^
                                                                     {
/datasets/git/reftable/refname.c:86:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err)
                ^
                 {
/datasets/git/reftable/refname.c:89:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/reftable/refname.c:91:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err)
                        ^
                         {
/datasets/git/reftable/refname.c:106:7: warning: function 'strncmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (strncmp(ref.refname, prefix, strlen(prefix))) {
                    ^
                                                                 != 0
/datasets/git/reftable/refname.c:122:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/reftable/refname.c:131:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    (next - name == 2 && name[0] == '.' && name[1] == '.'))
                                                                           ^
                                                                            {
/datasets/git/reftable/refname.c:139:47: warning: parameter name 'sz' is too short, expected at least 3 characters [readability-identifier-length]
                                 struct reftable_ref_record *recs, size_t sz)
                                                                          ^
/datasets/git/reftable/refname.c:146:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0;
            ^
/datasets/git/reftable/refname.c:148:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; i < sz; i++) {
        ^
/datasets/git/reftable/refname.c:161:50: warning: parameter name 'sl' is too short, expected at least 3 characters [readability-identifier-length]
static void strbuf_trim_component(struct strbuf *sl)
                                                 ^
/datasets/git/./strbuf.h:68:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        size_t len;
        ^
/datasets/git/reftable/refname.c:163:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (sl->len > 0) {
        ^
/datasets/git/reftable/refname.c:163:9: warning: backward branch (while loop) is ID-dependent due to member reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (sl->len > 0) {
               ^
/datasets/git/reftable/refname.c:166:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_slash)
                             ^
                              {
/datasets/git/reftable/refname.c:175:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0;
            ^
/datasets/git/reftable/refname.c:178:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err)
                        ^
                         {
/datasets/git/reftable/refname.c:189:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err < 0)
                            ^
                             {
/datasets/git/reftable/refname.c:194:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (slashed.len) {
                ^
/datasets/git/reftable/refname.c:194:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'slashed' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (slashed.len) {
                       ^
/datasets/git/reftable/refname.c:201:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (err < 0)
                                    ^
                                     {
reftable/reftable-blocksource.h:46:5: warning: function 'reftable_block_source_from_file' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int reftable_block_source_from_file(struct reftable_block_source *block_src,
    ^
/datasets/git/reftable/blocksource.c:125:5: note: the definition seen here
int reftable_block_source_from_file(struct reftable_block_source *bs,
    ^
/datasets/git/reftable/reftable-blocksource.h:46:5: note: differing parameters are named here: ('block_src'), in definition: ('bs')
int reftable_block_source_from_file(struct reftable_block_source *block_src,
    ^                                                             ~~~~~~~~~
                                                                  bs
reftable/reftable-merged.h:69:6: warning: function 'reftable_table_from_merged_table' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
void reftable_table_from_merged_table(struct reftable_table *tab,
     ^
/datasets/git/reftable/merged.c:355:6: note: the definition seen here
void reftable_table_from_merged_table(struct reftable_table *tab,
     ^
/datasets/git/reftable/reftable-merged.h:69:6: note: differing parameters are named here: ('table'), in definition: ('merged')
void reftable_table_from_merged_table(struct reftable_table *tab,
     ^
reftable/reftable-record.h:104:6: warning: function 'reftable_log_record_release' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
void reftable_log_record_release(struct reftable_log_record *log);
     ^
/datasets/git/reftable/record.c:746:6: note: the definition seen here
void reftable_log_record_release(struct reftable_log_record *r)
     ^
/datasets/git/reftable/reftable-record.h:104:6: note: differing parameters are named here: ('log'), in definition: ('r')
void reftable_log_record_release(struct reftable_log_record *log);
     ^                                                       ~~~
                                                             r
/datasets/git/reftable/stack.c:11:1: warning: #includes are not sorted properly [llvm-include-order]
#include "system.h"
^        ~~~~~~~~~~
         "merged.h"
/datasets/git/reftable/stack.c:20:49: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
static int stack_try_add(struct reftable_stack *st,
                                                ^
/datasets/git/reftable/stack.c:21:48: warning: parameter name 'wr' is too short, expected at least 3 characters [readability-identifier-length]
                         int (*write_table)(struct reftable_writer *wr,
                                                                    ^
/datasets/git/reftable/stack.c:24:55: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
static int stack_write_compact(struct reftable_stack *st,
                                                      ^
/datasets/git/reftable/stack.c:25:35: warning: parameter name 'wr' is too short, expected at least 3 characters [readability-identifier-length]
                               struct reftable_writer *wr, int first, int last,
                                                       ^
/datasets/git/reftable/stack.c:27:56: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
static int stack_check_addition(struct reftable_stack *st,
                                                       ^
/datasets/git/reftable/stack.c:30:69: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
static int reftable_stack_reload_maybe_reuse(struct reftable_stack *st,
                                                                    ^
/datasets/git/reftable/stack.c:33:72: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
static void stack_filename(struct strbuf *dest, struct reftable_stack *st,
                                                                       ^
/datasets/git/reftable/stack.c:42:34: warning: 2 adjacent parameters of 'reftable_fd_write' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static ssize_t reftable_fd_write(void *arg, const void *data, size_t sz)
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/reftable/stack.c:42:40: note: the first parameter in the range is 'arg'
static ssize_t reftable_fd_write(void *arg, const void *data, size_t sz)
                                       ^~~
/datasets/git/reftable/stack.c:42:57: note: the last parameter in the range is 'data'
static ssize_t reftable_fd_write(void *arg, const void *data, size_t sz)
                                                        ^~~~
/datasets/git/reftable/stack.c:42:45: note: 'void *' and 'const void *' may be implicitly converted
static ssize_t reftable_fd_write(void *arg, const void *data, size_t sz)
                                            ^
/datasets/git/reftable/stack.c:42:70: warning: parameter name 'sz' is too short, expected at least 3 characters [readability-identifier-length]
static ssize_t reftable_fd_write(void *arg, const void *data, size_t sz)
                                                                     ^
/datasets/git/reftable/stack.c:51:25: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        struct reftable_stack *p =
                               ^
/datasets/git/reftable/stack.c:79:30: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
static int fd_read_lines(int fd, char ***namesp)
                             ^
/datasets/git/reftable/stack.c:88:8: warning: narrowing conversion from '__off64_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        err = lseek(fd, 0, SEEK_SET);
              ^
/datasets/git/reftable/stack.c:101:19: warning: narrowing conversion from 'off_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        parse_names(buf, size, namesp);
                         ^
/datasets/git/reftable/stack.c:110:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
        int fd = open(filename, O_RDONLY);
            ^
/datasets/git/reftable/stack.c:110:34: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
        int fd = open(filename, O_RDONLY);
                                        ^
                                         | O_CLOEXEC
/datasets/git/reftable/stack.c:126:52: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
reftable_stack_merged_table(struct reftable_stack *st)
                                                   ^
/datasets/git/reftable/stack.c:133:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*names) {
        ^
/datasets/git/reftable/stack.c:134:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(*names, name))
                                          ^
                                           {
/datasets/git/reftable/stack.c:142:52: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
void reftable_stack_destroy(struct reftable_stack *st)
                                                   ^
/datasets/git/reftable/stack.c:153:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FREE_AND_NULL(names);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/reftable/stack.c:157:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
                int i = 0;
                    ^
/datasets/git/reftable/stack.c:159:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < st->readers_len; i++) {
                ^
/datasets/git/reftable/stack.c:174:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FREE_AND_NULL(st->readers);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/reftable/stack.c:176:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(st->list_file);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/reftable/stack.c:177:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(st->reftable_dir);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/reftable/stack.c:182:75: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
static struct reftable_reader **stack_copy_readers(struct reftable_stack *st,
                                                                          ^
/datasets/git/reftable/stack.c:187:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0;
            ^
/datasets/git/reftable/stack.c:188:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < cur_len; i++) {
        ^
/datasets/git/reftable/stack.c:194:62: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
static int reftable_stack_reload_once(struct reftable_stack *st, char **names,
                                                             ^
/datasets/git/reftable/stack.c:197:34: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int cur_len = !st->merged ? 0 : st->merged->stack_len;
                                        ^
/datasets/git/reftable/stack.c:207:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/reftable/stack.c:207:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/reftable/stack.c:197:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int cur_len = !st->merged ? 0 : st->merged->stack_len;
        ^
/datasets/git/reftable/stack.c:210:27: warning: variable name 'rd' is too short, expected at least 3 characters [readability-identifier-length]
                struct reftable_reader *rd = NULL;
                                        ^
/datasets/git/reftable/stack.c:215:7: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
                int j = 0;
                    ^
/datasets/git/reftable/stack.c:216:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (j = 0; reuse_open && j < cur_len; j++) {
                ^
/datasets/git/reftable/stack.c:216:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cur_len' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (j = 0; reuse_open && j < cur_len; j++) {
                            ^
/datasets/git/reftable/stack.c:233:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (err < 0)
                                    ^
                                     {
/datasets/git/reftable/stack.c:237:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (err < 0)
                                    ^
                                     {
/datasets/git/reftable/stack.c:249:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err < 0)
                    ^
                     {
/datasets/git/reftable/stack.c:267:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < cur_len; i++) {
        ^
/datasets/git/reftable/stack.c:267:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cur_len' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < cur_len; i++) {
                    ^
/datasets/git/reftable/stack.c:284:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < new_readers_len; i++) {
        ^
/datasets/git/reftable/stack.c:295:35: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static int tv_cmp(struct timeval *a, struct timeval *b)
                                  ^
/datasets/git/reftable/stack.c:295:54: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static int tv_cmp(struct timeval *a, struct timeval *b)
                                                     ^
/datasets/git/reftable/stack.c:298:14: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int udiff = a->tv_usec - b->tv_usec;
                    ^
/datasets/git/reftable/stack.c:300:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (diff != 0)
                      ^
                       {
/datasets/git/reftable/stack.c:301:10: warning: narrowing conversion from 'time_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                return diff;
                       ^
/datasets/git/reftable/stack.c:306:69: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
static int reftable_stack_reload_maybe_reuse(struct reftable_stack *st,
                                                                    ^
/datasets/git/reftable/stack.c:313:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err < 0)
                    ^
                     {
/datasets/git/reftable/stack.c:317:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/reftable/stack.c:367:28: warning: rand() has limited randomness [cert-msc30-c,cert-msc50-cpp]
                delay = delay + (delay * rand()) / RAND_MAX + 1;
                                         ^
/datasets/git/reftable/stack.c:367:28: warning: function is not thread safe [concurrency-mt-unsafe]
/datasets/git/reftable/stack.c:368:18: warning: narrowing conversion from 'int64_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                sleep_millisec(delay);
                               ^
/datasets/git/reftable/stack.c:377:50: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
static int stack_uptodate(struct reftable_stack *st)
                                                 ^
/datasets/git/reftable/stack.c:381:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0;
            ^
/datasets/git/reftable/stack.c:382:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err < 0)
                    ^
                     {
/datasets/git/reftable/stack.c:385:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < st->readers_len; i++) {
        ^
/datasets/git/reftable/stack.c:385:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'readers_len' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < st->readers_len; i++) {
                    ^
/datasets/git/reftable/stack.c:391:7: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (strcmp(st->readers[i]->name, names[i])) {
                    ^
                                                           != 0
/datasets/git/reftable/stack.c:407:50: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
int reftable_stack_reload(struct reftable_stack *st)
                                                 ^
/datasets/git/reftable/stack.c:410:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err > 0)
                    ^
                     {
/datasets/git/reftable/stack.c:415:47: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
int reftable_stack_add(struct reftable_stack *st,
                                              ^
/datasets/git/reftable/stack.c:416:47: warning: parameter name 'wr' is too short, expected at least 3 characters [readability-identifier-length]
                       int (*write)(struct reftable_writer *wr, void *arg),
                                                            ^
/datasets/git/reftable/stack.c:430:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!st->disable_auto_compact)
                                      ^
                                       {
/datasets/git/reftable/stack.c:438:11: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        char buf[100];
                 ^
/datasets/git/reftable/stack.c:439:27: warning: rand() has limited randomness [cert-msc30-c,cert-msc50-cpp]
        uint32_t rnd = (uint32_t)rand();
                                 ^
/datasets/git/reftable/stack.c:439:27: warning: function is not thread safe [concurrency-mt-unsafe]
/datasets/git/reftable/stack.c:440:2: warning: the value returned by this function should be used [cert-err33-c]
        snprintf(buf, sizeof(buf), "0x%012" PRIx64 "-0x%012" PRIx64 "-%08x",
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/reftable/stack.c:440:2: note: cast the expression to void to silence this warning
/datasets/git/reftable/stack.c:440:2: warning: Call to function 'snprintf' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        snprintf(buf, sizeof(buf), "0x%012" PRIx64 "-0x%012" PRIx64 "-%08x",
        ^~~~~~~~
/datasets/git/reftable/stack.c:440:2: note: Call to function 'snprintf' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'snprintf_s' in case of C11
        snprintf(buf, sizeof(buf), "0x%012" PRIx64 "-0x%012" PRIx64 "-%08x",
        ^~~~~~~~
/datasets/git/reftable/stack.c:446:8: warning: accessing fields in struct 'reftable_addition' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct reftable_addition {
       ^
/datasets/git/reftable/stack.c:446:8: note: use "__attribute__((aligned(64)))" to align struct 'reftable_addition' to 64 bytes
/datasets/git/reftable/stack.c:462:29: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                                        struct reftable_stack *st)
                                                               ^
/datasets/git/reftable/stack.c:472:33: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
                                 O_EXCL | O_CREAT | O_WRONLY, 0666);
                                                            ^
                                                             | O_CLOEXEC
/datasets/git/reftable/stack.c:472:35: warning: 0666 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                 O_EXCL | O_CREAT | O_WRONLY, 0666);
                                                              ^
/datasets/git/reftable/stack.c:489:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err < 0)
                    ^
                     {
/datasets/git/reftable/stack.c:507:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0;
            ^
/datasets/git/reftable/stack.c:508:16: warning: variable name 'nm' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf nm = STRBUF_INIT;
                      ^
/datasets/git/reftable/stack.c:509:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < add->new_tables_len; i++) {
        ^
/datasets/git/reftable/stack.c:543:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0;
            ^
/datasets/git/reftable/stack.c:545:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (add->new_tables_len == 0)
                                     ^
                                      {
/datasets/git/reftable/stack.c:548:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < add->stack->merged->stack_len; i++) {
        ^
/datasets/git/reftable/stack.c:552:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < add->new_tables_len; i++) {
        ^
/datasets/git/reftable/stack.c:557:8: warning: narrowing conversion from 'ssize_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        err = write(add->lock_file_fd, table_list.buf, table_list.len);
              ^
/datasets/git/reftable/stack.c:579:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < add->new_tables_len; i++) {
        ^
/datasets/git/reftable/stack.c:593:28: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                                struct reftable_stack *st)
                                                       ^
/datasets/git/reftable/stack.c:607:49: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
static int stack_try_add(struct reftable_stack *st,
                                                ^
/datasets/git/reftable/stack.c:608:48: warning: parameter name 'wr' is too short, expected at least 3 characters [readability-identifier-length]
                         int (*write_table)(struct reftable_writer *wr,
                                                                    ^
/datasets/git/reftable/stack.c:614:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err < 0)
                    ^
                     {
/datasets/git/reftable/stack.c:622:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err < 0)
                    ^
                     {
/datasets/git/reftable/stack.c:632:49: warning: parameter name 'wr' is too short, expected at least 3 characters [readability-identifier-length]
                          int (*write_table)(struct reftable_writer *wr,
                                                                     ^
/datasets/git/reftable/stack.c:639:26: warning: variable name 'wr' is too short, expected at least 3 characters [readability-identifier-length]
        struct reftable_writer *wr = NULL;
                                ^
/datasets/git/reftable/stack.c:663:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err < 0)
                    ^
                     {
/datasets/git/reftable/stack.c:671:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err < 0)
                    ^
                     {
/datasets/git/reftable/stack.c:682:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err < 0)
                    ^
                     {
/datasets/git/reftable/stack.c:726:66: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
uint64_t reftable_stack_next_update_index(struct reftable_stack *st)
                                                                 ^
/datasets/git/reftable/stack.c:728:6: warning: variable name 'sz' is too short, expected at least 3 characters [readability-identifier-length]
        int sz = st->merged->stack_len;
            ^
/datasets/git/reftable/stack.c:728:11: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int sz = st->merged->stack_len;
                 ^
/datasets/git/reftable/stack.c:729:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (sz > 0)
                   ^
                    {
/datasets/git/reftable/stack.c:735:56: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
static int stack_compact_locked(struct reftable_stack *st, int first, int last,
                                                       ^
/datasets/git/reftable/stack.c:741:26: warning: variable name 'wr' is too short, expected at least 3 characters [readability-identifier-length]
        struct reftable_writer *wr = NULL;
                                ^
/datasets/git/reftable/stack.c:755:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err < 0)
                    ^
                     {
/datasets/git/reftable/stack.c:758:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err < 0)
                    ^
                     {
/datasets/git/reftable/stack.c:778:12: warning: function 'stack_write_compact' has cognitive complexity of 32 (threshold 25) [readability-function-cognitive-complexity]
static int stack_write_compact(struct reftable_stack *st,
           ^
/datasets/git/reftable/stack.c:794:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = first, j = 0; i <= last; i++) {
        ^
/datasets/git/reftable/stack.c:804:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (err < 0) {
        ^
/datasets/git/reftable/stack.c:806:3: note: +1
                goto done;
                ^
/datasets/git/reftable/stack.c:810:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (err < 0)
        ^
/datasets/git/reftable/stack.c:813:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (1) {
        ^
/datasets/git/reftable/stack.c:815:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (err > 0) {
                ^
/datasets/git/reftable/stack.c:819:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (err < 0) {
                ^
/datasets/git/reftable/stack.c:823:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (first == 0 && reftable_ref_record_is_deletion(&ref)) {
                ^
/datasets/git/reftable/stack.c:823:18: note: +1
                if (first == 0 && reftable_ref_record_is_deletion(&ref)) {
                               ^
/datasets/git/reftable/stack.c:828:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (err < 0) {
                ^
/datasets/git/reftable/stack.c:836:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (err < 0)
        ^
/datasets/git/reftable/stack.c:839:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (1) {
        ^
/datasets/git/reftable/stack.c:841:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (err > 0) {
                ^
/datasets/git/reftable/stack.c:845:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (err < 0) {
                ^
/datasets/git/reftable/stack.c:848:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (first == 0 && reftable_log_record_is_deletion(&log)) {
                ^
/datasets/git/reftable/stack.c:848:18: note: +1
                if (first == 0 && reftable_log_record_is_deletion(&log)) {
                               ^
/datasets/git/reftable/stack.c:852:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (config && config->min_update_index > 0 &&
                ^
/datasets/git/reftable/stack.c:852:46: note: +1
                if (config && config->min_update_index > 0 &&
                                                           ^
/datasets/git/reftable/stack.c:857:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (config && config->time > 0 &&
                ^
/datasets/git/reftable/stack.c:857:34: note: +1
                if (config && config->time > 0 &&
                                               ^
/datasets/git/reftable/stack.c:863:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (err < 0) {
                ^
/datasets/git/reftable/stack.c:871:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mt) {
        ^
/datasets/git/reftable/stack.c:778:55: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
static int stack_write_compact(struct reftable_stack *st,
                                                      ^
/datasets/git/reftable/stack.c:779:35: warning: parameter name 'wr' is too short, expected at least 3 characters [readability-identifier-length]
                               struct reftable_writer *wr, int first, int last,
                                                       ^
/datasets/git/reftable/stack.c:785:32: warning: variable name 'mt' is too short, expected at least 3 characters [readability-identifier-length]
        struct reftable_merged_table *mt = NULL;
                                      ^
/datasets/git/reftable/stack.c:787:27: warning: variable name 'it' is too short, expected at least 3 characters [readability-identifier-length]
        struct reftable_iterator it = { NULL };
                                 ^
/datasets/git/reftable/stack.c:793:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i = 0, j = 0;
        ^~~~~~~~~~~~~~~~~
/datasets/git/reftable/stack.c:793:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/reftable/stack.c:793:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0, j = 0;
            ^
/datasets/git/reftable/stack.c:793:13: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0, j = 0;
                   ^
/datasets/git/reftable/stack.c:794:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = first, j = 0; i <= last; i++) {
        ^
/datasets/git/reftable/stack.c:794:25: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = first, j = 0; i <= last; i++) {
                               ^
/datasets/git/reftable/stack.c:795:27: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
                struct reftable_reader *t = st->readers[i];
                                        ^
/datasets/git/reftable/stack.c:810:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err < 0)
                    ^
                     {
/datasets/git/reftable/stack.c:813:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/reftable/stack.c:816:4: warning: Value stored to 'err' is never read [clang-analyzer-deadcode.DeadStores]
                        err = 0;
                        ^     ~
/datasets/git/reftable/stack.c:816:4: note: Value stored to 'err' is never read
                        err = 0;
                        ^     ~
/datasets/git/reftable/stack.c:836:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err < 0)
                    ^
                     {
/datasets/git/reftable/stack.c:839:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/reftable/stack.c:882:12: warning: function 'stack_compact_range' has cognitive complexity of 51 (threshold 25) [readability-function-cognitive-complexity]
static int stack_compact_range(struct reftable_stack *st, int first, int last,
           ^
/datasets/git/reftable/stack.c:903:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (first > last || (!expiry && first == last)) {
        ^
/datasets/git/reftable/stack.c:903:19: note: +1
        if (first > last || (!expiry && first == last)) {
                         ^
/datasets/git/reftable/stack.c:903:31: note: +1
        if (first > last || (!expiry && first == last)) {
                                     ^
/datasets/git/reftable/stack.c:905:3: note: +1
                goto done;
                ^
/datasets/git/reftable/stack.c:916:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (lock_file_fd < 0) {
        ^
/datasets/git/reftable/stack.c:917:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (errno == EEXIST) {
                ^
/datasets/git/reftable/stack.c:919:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/reftable/stack.c:922:3: note: +1
                goto done;
                ^
/datasets/git/reftable/stack.c:930:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (err != 0)
        ^
/datasets/git/reftable/stack.c:933:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = first, j = 0; i <= last; i++) {
        ^
/datasets/git/reftable/stack.c:947:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (sublock_file_fd >= 0) {
                ^
/datasets/git/reftable/stack.c:949:10: note: +1, nesting level increased to 2
                } else if (sublock_file_fd < 0) {
                       ^
/datasets/git/reftable/stack.c:950:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (errno == EEXIST) {
                        ^
/datasets/git/reftable/stack.c:952:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/reftable/stack.c:961:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (err != 0)
                ^
/datasets/git/reftable/stack.c:966:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (err < 0)
        ^
/datasets/git/reftable/stack.c:975:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (is_empty_table) {
        ^
/datasets/git/reftable/stack.c:978:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (err < 0)
        ^
/datasets/git/reftable/stack.c:983:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (lock_file_fd < 0) {
        ^
/datasets/git/reftable/stack.c:984:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (errno == EEXIST) {
                ^
/datasets/git/reftable/stack.c:986:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/reftable/stack.c:989:3: note: +1
                goto done;
                ^
/datasets/git/reftable/stack.c:992:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (st->config.default_permissions) {
        ^
/datasets/git/reftable/stack.c:993:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (chmod(lock_file_name.buf, st->config.default_permissions) < 0) {
                ^
/datasets/git/reftable/stack.c:995:4: note: +1
                        goto done;
                        ^
/datasets/git/reftable/stack.c:1005:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!is_empty_table) {
        ^
/datasets/git/reftable/stack.c:1008:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (err < 0) {
                ^
/datasets/git/reftable/stack.c:1010:4: note: +1
                        goto done;
                        ^
/datasets/git/reftable/stack.c:1014:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < first; i++) {
        ^
/datasets/git/reftable/stack.c:1018:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!is_empty_table) {
        ^
/datasets/git/reftable/stack.c:1022:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = last + 1; i < st->merged->stack_len; i++) {
        ^
/datasets/git/reftable/stack.c:1028:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (err < 0) {
        ^
/datasets/git/reftable/stack.c:1031:3: note: +1
                goto done;
                ^
/datasets/git/reftable/stack.c:1035:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (err < 0) {
        ^
/datasets/git/reftable/stack.c:1038:3: note: +1
                goto done;
                ^
/datasets/git/reftable/stack.c:1042:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (err < 0) {
        ^
/datasets/git/reftable/stack.c:1045:3: note: +1
                goto done;
                ^
/datasets/git/reftable/stack.c:1055:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (*listp) {
        ^
/datasets/git/reftable/stack.c:1056:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (strcmp(*listp, new_table_path.buf)) {
                ^
/datasets/git/reftable/stack.c:1066:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (*listp) {
        ^
/datasets/git/reftable/stack.c:1071:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (lock_file_fd >= 0) {
        ^
/datasets/git/reftable/stack.c:1075:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (have_lock) {
        ^
/datasets/git/reftable/stack.c:882:55: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
static int stack_compact_range(struct reftable_stack *st, int first, int last,
                                                      ^
/datasets/git/reftable/stack.c:899:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0;
            ^
/datasets/git/reftable/stack.c:900:6: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
        int j = 0;
            ^
/datasets/git/reftable/stack.c:915:55: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
                open(lock_file_name.buf, O_EXCL | O_CREAT | O_WRONLY, 0666);
                                                                    ^
                                                                     | O_CLOEXEC
/datasets/git/reftable/stack.c:915:57: warning: 0666 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                open(lock_file_name.buf, O_EXCL | O_CREAT | O_WRONLY, 0666);
                                                                      ^
/datasets/git/reftable/stack.c:930:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err != 0)
                     ^
                      {
/datasets/git/reftable/stack.c:933:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = first, j = 0; i <= last; i++) {
        ^
/datasets/git/reftable/stack.c:933:25: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = first, j = 0; i <= last; i++) {
                               ^
/datasets/git/reftable/stack.c:946:39: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
                                       O_EXCL | O_CREAT | O_WRONLY, 0666);
                                                                  ^
                                                                   | O_CLOEXEC
/datasets/git/reftable/stack.c:946:41: warning: 0666 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                       O_EXCL | O_CREAT | O_WRONLY, 0666);
                                                                    ^
/datasets/git/reftable/stack.c:961:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err != 0)
                             ^
                              {
/datasets/git/reftable/stack.c:966:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err < 0)
                    ^
                     {
/datasets/git/reftable/stack.c:978:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err < 0)
                    ^
                     {
/datasets/git/reftable/stack.c:982:55: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
                open(lock_file_name.buf, O_EXCL | O_CREAT | O_WRONLY, 0666);
                                                                    ^
                                                                     | O_CLOEXEC
/datasets/git/reftable/stack.c:982:57: warning: 0666 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                open(lock_file_name.buf, O_EXCL | O_CREAT | O_WRONLY, 0666);
                                                                      ^
/datasets/git/reftable/stack.c:1014:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < first; i++) {
        ^
/datasets/git/reftable/stack.c:899:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int i = 0;
        ^
/datasets/git/reftable/stack.c:1014:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < first; i++) {
                    ^
/datasets/git/reftable/stack.c:1022:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = last + 1; i < st->merged->stack_len; i++) {
        ^
/datasets/git/reftable/stack.c:894:2: note: inferred assignment of ID-dependent value from ID-dependent variable delete_on_success [altera-id-dependent-backward-branch]
        char **listp = NULL;
        ^
/datasets/git/reftable/stack.c:1022:21: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = last + 1; i < st->merged->stack_len; i++) {
                           ^
/datasets/git/reftable/stack.c:1027:8: warning: narrowing conversion from 'ssize_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        err = write(lock_file_fd, ref_list_contents.buf, ref_list_contents.len);
              ^
/datasets/git/reftable/stack.c:1055:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*listp) {
        ^
/datasets/git/reftable/stack.c:894:2: note: inferred assignment of ID-dependent value from ID-dependent variable delete_on_success [altera-id-dependent-backward-branch]
        char **listp = NULL;
        ^
/datasets/git/reftable/stack.c:1055:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'listp' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (*listp) {
               ^
/datasets/git/reftable/stack.c:1056:7: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (strcmp(*listp, new_table_path.buf)) {
                    ^
                                                       != 0
/datasets/git/reftable/stack.c:1066:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*listp) {
        ^
/datasets/git/reftable/stack.c:1066:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'listp' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (*listp) {
               ^
/datasets/git/reftable/stack.c:1073:3: warning: Value stored to 'lock_file_fd' is never read [clang-analyzer-deadcode.DeadStores]
                lock_file_fd = -1;
                ^              ~~
/datasets/git/reftable/stack.c:1073:3: note: Value stored to 'lock_file_fd' is never read
                lock_file_fd = -1;
                ^              ~~
/datasets/git/reftable/stack.c:1086:55: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
int reftable_stack_compact_all(struct reftable_stack *st,
                                                      ^
/datasets/git/reftable/stack.c:1089:36: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return stack_compact_range(st, 0, st->merged->stack_len - 1, config);
                                          ^
/datasets/git/reftable/stack.c:1092:61: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
static int stack_compact_range_stats(struct reftable_stack *st, int first,
                                                            ^
/datasets/git/reftable/stack.c:1103:41: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static int segment_size(struct segment *s)
                                        ^
/datasets/git/reftable/stack.c:1108:23: warning: parameter name 'sz' is too short, expected at least 3 characters [readability-identifier-length]
int fastlog2(uint64_t sz)
                      ^
/datasets/git/reftable/stack.c:1110:6: warning: variable name 'l' is too short, expected at least 3 characters [readability-identifier-length]
        int l = 0;
            ^
/datasets/git/reftable/stack.c:1111:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (sz == 0)
                    ^
                     {
/datasets/git/reftable/stack.c:1113:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; sz; sz /= 2) {
        ^
/datasets/git/reftable/stack.c:1124:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0;
            ^
/datasets/git/reftable/stack.c:1130:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < n; i++) {
        ^
/datasets/git/reftable/stack.c:1155:10: warning: 64 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                .log = 64,
                       ^
/datasets/git/reftable/stack.c:1157:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0;
            ^
/datasets/git/reftable/stack.c:1158:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < seglen; i++) {
        ^
/datasets/git/reftable/stack.c:1154:2: note: inferred assignment of ID-dependent value from ID-dependent variable segs [altera-id-dependent-backward-branch]
        struct segment min_seg = {
        ^
/datasets/git/reftable/stack.c:1168:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (min_seg.start > 0) {
        ^
/datasets/git/reftable/stack.c:1168:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'min_seg' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (min_seg.start > 0) {
               ^
/datasets/git/reftable/stack.c:1182:74: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
static uint64_t *stack_table_sizes_for_compaction(struct reftable_stack *st)
                                                                         ^
/datasets/git/reftable/stack.c:1188:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0;
            ^
/datasets/git/reftable/stack.c:1189:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < st->merged->stack_len; i++) {
        ^
/datasets/git/reftable/stack.c:1195:56: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
int reftable_stack_auto_compact(struct reftable_stack *st)
                                                       ^
/datasets/git/reftable/stack.c:1199:37: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                suggest_compaction_segment(sizes, st->merged->stack_len);
                                                  ^
/datasets/git/reftable/stack.c:1201:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (segment_size(&seg) > 0)
                                   ^
                                    {
/datasets/git/reftable/stack.c:1209:56: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
reftable_stack_compaction_stats(struct reftable_stack *st)
                                                       ^
/datasets/git/reftable/stack.c:1214:52: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
int reftable_stack_read_ref(struct reftable_stack *st, const char *refname,
                                                   ^
/datasets/git/reftable/stack.c:1222:52: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
int reftable_stack_read_log(struct reftable_stack *st, const char *refname,
                                                   ^
/datasets/git/reftable/stack.c:1225:27: warning: variable name 'it' is too short, expected at least 3 characters [readability-identifier-length]
        struct reftable_iterator it = { NULL };
                                 ^
/datasets/git/reftable/stack.c:1226:32: warning: variable name 'mt' is too short, expected at least 3 characters [readability-identifier-length]
        struct reftable_merged_table *mt = reftable_stack_merged_table(st);
                                      ^
/datasets/git/reftable/stack.c:1228:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err)
                ^
                 {
/datasets/git/reftable/stack.c:1232:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err)
                ^
                 {
/datasets/git/reftable/stack.c:1235:6: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (strcmp(log->refname, refname) ||
            ^
                                          != 0
/datasets/git/reftable/stack.c:1249:56: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
static int stack_check_addition(struct reftable_stack *st,
                                                       ^
/datasets/git/reftable/stack.c:1254:26: warning: variable name 'rd' is too short, expected at least 3 characters [readability-identifier-length]
        struct reftable_reader *rd = NULL;
                                ^
/datasets/git/reftable/stack.c:1257:27: warning: variable name 'it' is too short, expected at least 3 characters [readability-identifier-length]
        struct reftable_iterator it = { NULL };
                                 ^
/datasets/git/reftable/stack.c:1260:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0;
            ^
/datasets/git/reftable/stack.c:1262:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (st->config.skip_name_check)
                                       ^
                                        {
/datasets/git/reftable/stack.c:1266:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err < 0)
                    ^
                     {
/datasets/git/reftable/stack.c:1270:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err < 0)
                    ^
                     {
/datasets/git/reftable/stack.c:1278:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err < 0)
                    ^
                     {
/datasets/git/reftable/stack.c:1281:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/reftable/stack.c:1287:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err < 0)
                            ^
                             {
/datasets/git/reftable/stack.c:1303:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < len; i++) {
        ^
/datasets/git/reftable/stack.c:1313:38: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static int is_table_name(const char *s)
                                     ^
/datasets/git/reftable/stack.c:1319:61: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
static void remove_maybe_stale_table(struct reftable_stack *st, uint64_t max,
                                                            ^
/datasets/git/reftable/stack.c:1325:26: warning: variable name 'rd' is too short, expected at least 3 characters [readability-identifier-length]
        struct reftable_reader *rd = NULL;
                                ^
/datasets/git/reftable/stack.c:1330:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err < 0)
                    ^
                     {
/datasets/git/reftable/stack.c:1334:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err < 0)
                    ^
                     {
/datasets/git/reftable/stack.c:1347:63: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
static int reftable_stack_clean_locked(struct reftable_stack *st)
                                                              ^
/datasets/git/reftable/stack.c:1352:2: note: inferred assignment of ID-dependent value from ID-dependent variable dir [altera-id-dependent-backward-branch]
        struct dirent *d = NULL;
        ^
/datasets/git/reftable/stack.c:1352:17: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
        struct dirent *d = NULL;
                       ^
/datasets/git/reftable/stack.c:1357:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'd' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((d = readdir(dir))) {
               ^
/datasets/git/reftable/stack.c:1357:14: warning: function is not thread safe [concurrency-mt-unsafe]
        while ((d = readdir(dir))) {
                    ^
/datasets/git/reftable/stack.c:1358:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
                int i = 0;
                    ^
/datasets/git/reftable/stack.c:1360:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!is_table_name(d->d_name))
                                              ^
                                               {
/datasets/git/reftable/stack.c:1363:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; !found && i < st->readers_len; i++) {
                ^
/datasets/git/reftable/stack.c:1363:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'found' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; !found && i < st->readers_len; i++) {
                            ^
/datasets/git/reftable/stack.c:1366:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (found)
                          ^
                           {
/datasets/git/reftable/stack.c:1376:49: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
int reftable_stack_clean(struct reftable_stack *st)
                                                ^
/datasets/git/reftable/stack.c:1404:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err < 0)
                    ^
                     {
/datasets/git/reftable/stack.c:1411:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (stack)
                  ^
                   {
reftable/stack.h:29:5: warning: function 'read_lines' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
int read_lines(const char *filename, char ***lines);
    ^
/datasets/git/reftable/stack.c:108:5: note: the definition seen here
int read_lines(const char *filename, char ***namesp)
    ^
/datasets/git/reftable/stack.h:29:5: note: differing parameters are named here: ('lines'), in definition: ('namesp')
int read_lines(const char *filename, char ***lines);
    ^                                        ~~~~~
                                             namesp
reftable/tree.c:14:19: warning: function 'tree_search' is within a recursive call chain [misc-no-recursion]
struct tree_node *tree_search(void *key, struct tree_node **rootp,
                  ^
reftable/tree.c:14:19: note: example recursive call chain, starting from function 'tree_search'
reftable/tree.c:33:10: note: Frame #1: function 'tree_search' calls function 'tree_search' here:
                return tree_search(key, &(*rootp)->left, compare, insert);
                       ^
reftable/tree.c:33:10: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/reftable/tree.c:18:6: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        int res;
            ^
                = 0
/datasets/git/reftable/tree.c:22:5: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                } else {
                  ^~~~~~
/datasets/git/reftable/tree.c:23:22: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
                        struct tree_node *n =
                                          ^
/datasets/git/reftable/tree.c:32:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (res < 0)
                    ^
                     {
/datasets/git/reftable/tree.c:34:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (res > 0)
        ^~~~~~~~~~~~~~~~~
/datasets/git/reftable/tree.c:34:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (res > 0)
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/reftable/tree.c:39:6: warning: function 'infix_walk' is within a recursive call chain [misc-no-recursion]
void infix_walk(struct tree_node *t, void (*action)(void *arg, void *key),
     ^
/datasets/git/reftable/tree.c:39:6: note: example recursive call chain, starting from function 'infix_walk'
/datasets/git/reftable/tree.c:43:3: note: Frame #1: function 'infix_walk' calls function 'infix_walk' here:
                infix_walk(t->left, action, arg);
                ^
/datasets/git/reftable/tree.c:43:3: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/reftable/tree.c:39:35: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
void infix_walk(struct tree_node *t, void (*action)(void *arg, void *key),
                                  ^
/datasets/git/reftable/tree.c:51:6: warning: function 'tree_free' is within a recursive call chain [misc-no-recursion]
void tree_free(struct tree_node *t)
     ^
/datasets/git/reftable/tree.c:51:6: note: example recursive call chain, starting from function 'tree_free'
/datasets/git/reftable/tree.c:57:3: note: Frame #1: function 'tree_free' calls function 'tree_free' here:
                tree_free(t->left);
                ^
/datasets/git/reftable/tree.c:57:3: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/reftable/tree.c:51:34: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
void tree_free(struct tree_node *t)
                                 ^
/datasets/git/reftable/writer.c:16:1: warning: #includes are not sorted properly [llvm-include-order]
#include "tree.h"
^        ~~~~~~~~
         "reftable-error.h"
/datasets/git/reftable/writer.c:20:55: warning: parameter name 'w' is too short, expected at least 3 characters [readability-identifier-length]
static int writer_flush_block(struct reftable_writer *w);
                                                      ^
/datasets/git/reftable/writer.c:23:56: warning: parameter name 'w' is too short, expected at least 3 characters [readability-identifier-length]
static void writer_clear_index(struct reftable_writer *w);
                                                       ^
/datasets/git/reftable/writer.c:26:65: warning: parameter name 'w' is too short, expected at least 3 characters [readability-identifier-length]
static int writer_finish_public_section(struct reftable_writer *w);
                                                                ^
/datasets/git/reftable/writer.c:29:53: warning: parameter name 'w' is too short, expected at least 3 characters [readability-identifier-length]
writer_reftable_block_stats(struct reftable_writer *w, uint8_t typ)
                                                    ^
/datasets/git/reftable/writer.c:31:2: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
        switch (typ) {
        ^
/datasets/git/reftable/writer.c:47:49: warning: parameter name 'w' is too short, expected at least 3 characters [readability-identifier-length]
static int padded_write(struct reftable_writer *w, uint8_t *data, size_t len,
                                                ^
/datasets/git/reftable/writer.c:47:67: warning: 2 adjacent parameters of 'padded_write' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int padded_write(struct reftable_writer *w, uint8_t *data, size_t len,
                                                                  ^~~~~~~~~~~
/datasets/git/reftable/writer.c:47:74: note: the first parameter in the range is 'len'
static int padded_write(struct reftable_writer *w, uint8_t *data, size_t len,
                                                                         ^~~
/datasets/git/reftable/writer.c:48:8: note: the last parameter in the range is 'padding'
                        int padding)
                            ^~~~~~~
/datasets/git/reftable/writer.c:47:67: note: 
static int padded_write(struct reftable_writer *w, uint8_t *data, size_t len,
                                                                  ^
/datasets/git/reftable/writer.c:48:4: note: 'size_t' and 'int' may be implicitly converted: 'size_t' (as 'unsigned long') -> 'int', 'int' -> 'size_t' (as 'unsigned long')
                        int padding)
                        ^
/datasets/git/reftable/writer.c:50:6: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
        int n = 0;
            ^
/datasets/git/reftable/writer.c:53:7: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
                int n = w->write(w->write_arg, zeroed, w->pending_padding);
                    ^
/datasets/git/reftable/writer.c:53:11: warning: narrowing conversion from 'ssize_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int n = w->write(w->write_arg, zeroed, w->pending_padding);
                        ^
/datasets/git/reftable/writer.c:54:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (n < 0)
                          ^
                           {
/datasets/git/reftable/writer.c:62:6: warning: narrowing conversion from 'ssize_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        n = w->write(w->write_arg, data, len);
            ^
/datasets/git/reftable/writer.c:63:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (n < 0)
                  ^
                   {
/datasets/git/reftable/writer.c:65:2: warning: Value stored to 'n' is never read [clang-analyzer-deadcode.DeadStores]
        n += padding;
        ^    ~~~~~~~
/datasets/git/reftable/writer.c:65:2: note: Value stored to 'n' is never read
        n += padding;
        ^    ~~~~~~~
/datasets/git/reftable/writer.c:72:28: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                opts->restart_interval = 16;
                                         ^
/datasets/git/reftable/writer.c:83:51: warning: parameter name 'w' is too short, expected at least 3 characters [readability-identifier-length]
static int writer_version(struct reftable_writer *w)
                                                  ^
/datasets/git/reftable/writer.c:90:56: warning: parameter name 'w' is too short, expected at least 3 characters [readability-identifier-length]
static int writer_write_header(struct reftable_writer *w, uint8_t *dest)
                                                       ^
/datasets/git/reftable/writer.c:92:2: warning: the result from calling 'memcpy' is not null-terminated [bugprone-not-null-terminated-result]
        memcpy(dest, "REFT", 4);
        ^~~~~~             ~~~
        strcpy (char *)
/datasets/git/reftable/writer.c:92:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(dest, "REFT", 4);
        ^~~~~~
/datasets/git/reftable/writer.c:92:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(dest, "REFT", 4);
        ^~~~~~
/datasets/git/reftable/writer.c:96:18: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        put_be24(dest + 5, w->opts.block_size);
                        ^
/datasets/git/reftable/writer.c:97:18: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        put_be64(dest + 8, w->min_update_index);
                        ^
/datasets/git/reftable/writer.c:98:18: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        put_be64(dest + 16, w->max_update_index);
                        ^
/datasets/git/reftable/writer.c:100:19: warning: 24 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                put_be32(dest + 24, w->opts.hash_id);
                                ^
/datasets/git/reftable/writer.c:105:64: warning: parameter name 'w' is too short, expected at least 3 characters [readability-identifier-length]
static void writer_reinit_block_writer(struct reftable_writer *w, uint8_t typ)
                                                               ^
/datasets/git/reftable/writer.c:120:22: warning: variable 'reftable_empty_strbuf' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct strbuf reftable_empty_strbuf = STRBUF_INIT;
                     ^
/datasets/git/reftable/writer.c:120:22: warning: initializing non-local variable with non-const expression depending on uninitialized non-local variable 'strbuf_slopbuf' [cppcoreguidelines-interfaces-global-init]
/datasets/git/reftable/writer.c:126:26: warning: variable name 'wp' is too short, expected at least 3 characters [readability-identifier-length]
        struct reftable_writer *wp =
                                ^
/datasets/git/reftable/writer.c:130:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (opts->block_size >= (1 << 24)) {
                                 ^
/datasets/git/reftable/writer.c:130:32: warning: 24 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (opts->block_size >= (1 << 24)) {
                                      ^
/datasets/git/reftable/writer.c:144:57: warning: parameter name 'w' is too short, expected at least 3 characters [readability-identifier-length]
void reftable_writer_set_limits(struct reftable_writer *w, uint64_t min,
                                                        ^
/datasets/git/reftable/writer.c:144:60: warning: 2 adjacent parameters of 'reftable_writer_set_limits' of similar type ('uint64_t') are easily swapped by mistake [bugprone-easily-swappable-parameters]
void reftable_writer_set_limits(struct reftable_writer *w, uint64_t min,
                                                           ^~~~~~~~~~~~~
/datasets/git/reftable/writer.c:144:69: note: the first parameter in the range is 'min'
void reftable_writer_set_limits(struct reftable_writer *w, uint64_t min,
                                                                    ^~~
/datasets/git/reftable/writer.c:145:14: note: the last parameter in the range is 'max'
                                uint64_t max)
                                         ^~~
/datasets/git/reftable/writer.c:151:51: warning: parameter name 'w' is too short, expected at least 3 characters [readability-identifier-length]
void reftable_writer_free(struct reftable_writer *w)
                                                  ^
/datasets/git/reftable/writer.c:153:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!w)
               ^
                {
/datasets/git/reftable/writer.c:159:8: warning: accessing fields in struct 'obj_index_tree_node' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct obj_index_tree_node {
       ^
/datasets/git/reftable/writer.c:159:8: note: use "__attribute__((aligned(64)))" to align struct 'obj_index_tree_node' to 64 bytes
/datasets/git/reftable/writer.c:171:52: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static int obj_index_tree_node_compare(const void *a, const void *b)
                                                   ^
/datasets/git/reftable/writer.c:171:67: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static int obj_index_tree_node_compare(const void *a, const void *b)
                                                                  ^
/datasets/git/reftable/writer.c:177:55: warning: parameter name 'w' is too short, expected at least 3 characters [readability-identifier-length]
static void writer_index_hash(struct reftable_writer *w, struct strbuf *hash)
                                                      ^
/datasets/git/reftable/writer.c:212:54: warning: parameter name 'w' is too short, expected at least 3 characters [readability-identifier-length]
static int writer_add_record(struct reftable_writer *w,
                                                     ^
/datasets/git/reftable/writer.c:255:53: warning: parameter name 'w' is too short, expected at least 3 characters [readability-identifier-length]
int reftable_writer_add_ref(struct reftable_writer *w,
                                                    ^
/datasets/git/reftable/writer.c:266:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ref->refname)
                          ^
                           {
/datasets/git/reftable/writer.c:269:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            ref->update_index > w->max_update_index)
                                                    ^
                                                     {
/datasets/git/reftable/writer.c:275:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err < 0)
                    ^
                     {
/datasets/git/reftable/writer.c:279:17: warning: variable name 'h' is too short, expected at least 3 characters [readability-identifier-length]
                struct strbuf h = STRBUF_INIT;
                              ^
/datasets/git/reftable/writer.c:287:17: warning: variable name 'h' is too short, expected at least 3 characters [readability-identifier-length]
                struct strbuf h = STRBUF_INIT;
                              ^
/datasets/git/reftable/writer.c:296:54: warning: parameter name 'w' is too short, expected at least 3 characters [readability-identifier-length]
int reftable_writer_add_refs(struct reftable_writer *w,
                                                     ^
/datasets/git/reftable/writer.c:299:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int err = 0;
        ^
/datasets/git/reftable/writer.c:300:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0;
            ^
/datasets/git/reftable/writer.c:302:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; err == 0 && i < n; i++) {
        ^
/datasets/git/reftable/writer.c:302:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'err' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; err == 0 && i < n; i++) {
                    ^
/datasets/git/reftable/writer.c:308:69: warning: parameter name 'w' is too short, expected at least 3 characters [readability-identifier-length]
static int reftable_writer_add_log_verbatim(struct reftable_writer *w,
                                                                    ^
/datasets/git/reftable/writer.c:320:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err < 0)
                            ^
                             {
/datasets/git/reftable/writer.c:329:53: warning: parameter name 'w' is too short, expected at least 3 characters [readability-identifier-length]
int reftable_writer_add_log(struct reftable_writer *w,
                                                    ^
/datasets/git/reftable/writer.c:336:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (log->value_type == REFTABLE_LOG_DELETION)
                                                     ^
                                                      {
/datasets/git/reftable/writer.c:339:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!log->refname)
                          ^
                           {
/datasets/git/reftable/writer.c:345:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (cleaned_message.len &&
                ^
/datasets/git/reftable/writer.c:345:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'cleaned_message' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (cleaned_message.len &&
                       ^
/datasets/git/reftable/writer.c:346:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                       cleaned_message.buf[cleaned_message.len - 1] == '\n')
                                                                            ^
                                                                             {
/datasets/git/reftable/writer.c:365:54: warning: parameter name 'w' is too short, expected at least 3 characters [readability-identifier-length]
int reftable_writer_add_logs(struct reftable_writer *w,
                                                     ^
/datasets/git/reftable/writer.c:368:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int err = 0;
        ^
/datasets/git/reftable/writer.c:369:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0;
            ^
/datasets/git/reftable/writer.c:372:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; err == 0 && i < n; i++) {
        ^
/datasets/git/reftable/writer.c:372:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'err' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; err == 0 && i < n; i++) {
                    ^
/datasets/git/reftable/writer.c:378:58: warning: parameter name 'w' is too short, expected at least 3 characters [readability-identifier-length]
static int writer_finish_section(struct reftable_writer *w)
                                                         ^
/datasets/git/reftable/writer.c:386:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0;
            ^
/datasets/git/reftable/writer.c:393:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                int idx_len = 0;
                ^
/datasets/git/reftable/writer.c:388:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err < 0)
                    ^
                     {
/datasets/git/reftable/writer.c:391:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'threshold' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (w->index_len > threshold) {
               ^
/datasets/git/reftable/writer.c:400:13: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                idx_len = w->index_len;
                          ^
/datasets/git/reftable/writer.c:405:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < idx_len; i++) {
                ^
/datasets/git/reftable/writer.c:393:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                int idx_len = 0;
                ^
/datasets/git/reftable/writer.c:405:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'idx_len' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < idx_len; i++) {
                            ^
/datasets/git/reftable/writer.c:417:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (err < 0)
                                    ^
                                     {
/datasets/git/reftable/writer.c:429:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < idx_len; i++) {
                ^
/datasets/git/reftable/writer.c:429:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'idx_len' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < idx_len; i++) {
                            ^
/datasets/git/reftable/writer.c:438:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err < 0)
                    ^
                     {
/datasets/git/reftable/writer.c:452:8: warning: accessing fields in struct 'common_prefix_arg' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct common_prefix_arg {
       ^
/datasets/git/reftable/writer.c:452:8: note: use "__attribute__((aligned(16)))" to align struct 'common_prefix_arg' to 16 bytes
/datasets/git/reftable/writer.c:457:27: warning: 2 adjacent parameters of 'update_common' of similar type ('void *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void update_common(void *void_arg, void *key)
                          ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/reftable/writer.c:457:33: note: the first parameter in the range is 'void_arg'
static void update_common(void *void_arg, void *key)
                                ^~~~~~~~
/datasets/git/reftable/writer.c:457:49: note: the last parameter in the range is 'key'
static void update_common(void *void_arg, void *key)
                                                ^~~
/datasets/git/reftable/writer.c:462:7: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
                int n = common_prefix_size(&entry->hash, arg->last);
                    ^
/datasets/git/reftable/writer.c:470:8: warning: accessing fields in struct 'write_record_arg' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct write_record_arg {
       ^
/datasets/git/reftable/writer.c:470:8: note: use "__attribute__((aligned(16)))" to align struct 'write_record_arg' to 16 bytes
/datasets/git/reftable/writer.c:475:33: warning: 2 adjacent parameters of 'write_object_record' of similar type ('void *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void write_object_record(void *void_arg, void *key)
                                ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/reftable/writer.c:475:39: note: the first parameter in the range is 'void_arg'
static void write_object_record(void *void_arg, void *key)
                                      ^~~~~~~~
/datasets/git/reftable/writer.c:475:55: note: the last parameter in the range is 'key'
static void write_object_record(void *void_arg, void *key)
                                                      ^~~
/datasets/git/reftable/writer.c:485:19: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                .offset_len = entry->offset_len,
                                              ^
/datasets/git/reftable/writer.c:487:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (arg->err < 0)
                         ^
                          {
/datasets/git/reftable/writer.c:491:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (arg->err == 0)
                          ^
                           {
/datasets/git/reftable/writer.c:495:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (arg->err < 0)
                         ^
                          {
/datasets/git/reftable/writer.c:500:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (arg->err == 0)
                          ^
                           {
/datasets/git/reftable/writer.c:512:32: warning: 2 adjacent parameters of 'object_record_free' of similar type ('void *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void object_record_free(void *void_arg, void *key)
                               ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/reftable/writer.c:512:38: note: the first parameter in the range is 'void_arg'
static void object_record_free(void *void_arg, void *key)
                                     ^~~~~~~~
/datasets/git/reftable/writer.c:512:54: note: the last parameter in the range is 'key'
static void object_record_free(void *void_arg, void *key)
                                                     ^~~
/datasets/git/reftable/writer.c:512:38: warning: parameter 'void_arg' is unused [misc-unused-parameters]
static void object_record_free(void *void_arg, void *key)
                                     ^
/datasets/git/reftable/writer.c:516:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(entry->offsets);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/reftable/writer.c:521:61: warning: parameter name 'w' is too short, expected at least 3 characters [readability-identifier-length]
static int writer_dump_object_index(struct reftable_writer *w)
                                                            ^
/datasets/git/reftable/writer.c:538:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (closure.err < 0)
                            ^
                             {
/datasets/git/reftable/writer.c:543:65: warning: parameter name 'w' is too short, expected at least 3 characters [readability-identifier-length]
static int writer_finish_public_section(struct reftable_writer *w)
                                                                ^
/datasets/git/reftable/writer.c:548:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!w->block_writer)
                             ^
                              {
/datasets/git/reftable/writer.c:553:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err < 0)
                    ^
                     {
/datasets/git/reftable/writer.c:558:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err < 0)
                            ^
                             {
/datasets/git/reftable/writer.c:572:51: warning: parameter name 'w' is too short, expected at least 3 characters [readability-identifier-length]
int reftable_writer_close(struct reftable_writer *w)
                                                  ^
/datasets/git/reftable/writer.c:574:17: warning: 72 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        uint8_t footer[72];
                       ^
/datasets/git/reftable/writer.c:575:11: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        uint8_t *p = footer;
                 ^
/datasets/git/reftable/writer.c:578:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err != 0)
                     ^
                      {
/datasets/git/reftable/writer.c:583:18: warning: 28 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                uint8_t header[28];
                               ^
/datasets/git/reftable/writer.c:584:7: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
                int n = writer_write_header(w, header);
                    ^
/datasets/git/reftable/writer.c:586:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err < 0)
                            ^
                             {
/datasets/git/reftable/writer.c:592:7: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        p += 8;
             ^
/datasets/git/reftable/writer.c:593:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        put_be64(p, (w->stats.obj_stats.offset) << 5 | w->stats.object_id_len);
                    ^                                  ~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/reftable/writer.c:593:45: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        put_be64(p, (w->stats.obj_stats.offset) << 5 | w->stats.object_id_len);
                                                   ^
/datasets/git/reftable/writer.c:594:7: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        p += 8;
             ^
/datasets/git/reftable/writer.c:596:7: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        p += 8;
             ^
/datasets/git/reftable/writer.c:599:7: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        p += 8;
             ^
/datasets/git/reftable/writer.c:601:7: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        p += 8;
             ^
/datasets/git/reftable/writer.c:604:2: warning: Value stored to 'p' is never read [clang-analyzer-deadcode.DeadStores]
        p += 4;
        ^    ~
/datasets/git/reftable/writer.c:604:2: note: Value stored to 'p' is never read
        p += 4;
        ^    ~
/datasets/git/reftable/writer.c:607:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err < 0)
                    ^
                     {
/datasets/git/reftable/writer.c:623:56: warning: parameter name 'w' is too short, expected at least 3 characters [readability-identifier-length]
static void writer_clear_index(struct reftable_writer *w)
                                                       ^
/datasets/git/reftable/writer.c:625:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0;
            ^
/datasets/git/reftable/writer.c:626:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < w->index_len; i++) {
        ^
/datasets/git/reftable/writer.c:630:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(w->index);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/reftable/writer.c:637:64: warning: parameter name 'w' is too short, expected at least 3 characters [readability-identifier-length]
static int writer_flush_nonempty_block(struct reftable_writer *w)
                                                               ^
/datasets/git/reftable/writer.c:646:31: warning: variable name 'ir' is too short, expected at least 3 characters [readability-identifier-length]
        struct reftable_index_record ir = { .last_key = STRBUF_INIT };
                                     ^
/datasets/git/reftable/writer.c:647:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (raw_bytes < 0)
                          ^
                           {
/datasets/git/reftable/writer.c:651:13: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                padding = w->opts.block_size - raw_bytes;
                          ^
/datasets/git/reftable/writer.c:659:22: warning: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        bstats->restarts += w->block_writer->restart_len;
                            ^
/datasets/git/reftable/writer.c:664:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "block %c off %" PRIu64 " sz %d (%d)\n", typ,
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/reftable/writer.c:664:3: note: cast the expression to void to silence this warning
/datasets/git/reftable/writer.c:674:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err < 0)
                    ^
                     {
/datasets/git/reftable/writer.c:695:55: warning: parameter name 'w' is too short, expected at least 3 characters [readability-identifier-length]
static int writer_flush_block(struct reftable_writer *w)
                                                      ^
/datasets/git/reftable/writer.c:697:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!w->block_writer)
                             ^
                              {
/datasets/git/reftable/writer.c:699:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (w->block_writer->entries == 0)
                                          ^
                                           {
/datasets/git/reftable/writer.c:704:76: warning: parameter name 'w' is too short, expected at least 3 characters [readability-identifier-length]
const struct reftable_stats *reftable_writer_stats(struct reftable_writer *w)
                                                                           ^
/datasets/git/remote.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "advice.h"
/datasets/git/remote.c:21:8: warning: accessing fields in struct 'counted_string' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct counted_string {
       ^
/datasets/git/remote.c:21:8: note: use "__attribute__((aligned(16)))" to align struct 'counted_string' to 16 bytes
/datasets/git/remote.c:31:64: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static const char *alias_url(const char *url, struct rewrites *r)
                                                               ^
/datasets/git/remote.c:33:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, j;
        ^~~~~~~~~
/datasets/git/remote.c:33:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, j;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/remote.c:33:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/remote.c:33:9: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int i, j;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/remote.c:33:9: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/remote.c:34:25: warning: variable 'longest' is not initialized [cppcoreguidelines-init-variables]
        struct counted_string *longest;
                               ^
                                       = NULL
/datasets/git/remote.c:35:6: warning: variable 'longest_i' is not initialized [cppcoreguidelines-init-variables]
        int longest_i;
            ^
                      = 0
/datasets/git/remote.c:40:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!r->rewrite[i])
                                   ^
                                    {
/datasets/git/remote.c:42:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (j = 0; j < r->rewrite[i]->instead_of_nr; j++) {
                ^
/datasets/git/remote.c:51:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!longest)
                     ^
                      {
/datasets/git/remote.c:59:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(remote->url, remote->url_nr + 1, remote->url_alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/remote.c:65:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(remote->pushurl, remote->pushurl_nr + 1, remote->pushurl_alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/remote.c:73:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pushurl != url)
                           ^
                            {
/datasets/git/remote.c:84:8: warning: accessing fields in struct 'remotes_hash_key' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct remotes_hash_key {
       ^
/datasets/git/remote.c:84:8: note: use "__attribute__((aligned(16)))" to align struct 'remotes_hash_key' to 16 bytes
/datasets/git/remote.c:90:8: warning: 2 adjacent parameters of 'remotes_hash_cmp' of similar type ('const struct hashmap_entry *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                            const struct hashmap_entry *eptr,
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/remote.c:90:36: note: the first parameter in the range is 'eptr'
                            const struct hashmap_entry *eptr,
                                                        ^~~~
/datasets/git/remote.c:91:36: note: the last parameter in the range is 'entry_or_key'
                            const struct hashmap_entry *entry_or_key,
                                                        ^~~~~~~~~~~~
/datasets/git/remote.c:94:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const struct remote *a, *b;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/remote.c:94:23: warning: variable 'a' is not initialized [cppcoreguidelines-init-variables]
        const struct remote *a, *b;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/remote.c:94:23: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/remote.c:94:27: warning: variable 'b' is not initialized [cppcoreguidelines-init-variables]
        const struct remote *a, *b;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/remote.c:94:27: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/remote.c:100:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (key)
                ^
                 {
/datasets/git/remote.c:101:10: warning: function 'strncmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                return strncmp(a->name, key->str, key->len) || a->name[key->len];
                       ^
                                                            != 0
/datasets/git/remote.c:102:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else
        ^~~~
                        return strcmp(a->name, b->name)
/datasets/git/remote.c:102:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/remote.c:109:17: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        struct remote *ret;
                       ^
                           = NULL
/datasets/git/remote.c:111:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct hashmap_entry lookup_entry, *e;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/remote.c:111:38: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct hashmap_entry lookup_entry, *e;
                                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/remote.c:111:38: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/remote.c:113:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!len)
                 ^
                  {
/datasets/git/remote.c:114:9: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                len = strlen(name);
                      ^
/datasets/git/remote.c:121:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (e)
              ^
               {
/datasets/git/remote.c:131:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(remote_state->remotes, remote_state->remotes_nr + 1,
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/remote.c:131:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_GROW(remote_state->remotes, remote_state->remotes_nr + 1,
        ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/remote.c:136:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (hashmap_put_entry(&remote_state->remotes_hash, ret, ent))
                                                                     ^
                                                                      {
/datasets/git/remote.c:143:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/remote.c:143:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/remote.c:148:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < remote->url_nr; i++)
        ^
/datasets/git/remote.c:148:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < remote->url_nr; i++)
                                            ^
                                             {
/datasets/git/remote.c:150:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(remote->url);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/remote.c:152:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < remote->pushurl_nr; i++)
        ^
/datasets/git/remote.c:152:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < remote->pushurl_nr; i++)
                                                ^
                                                 {
/datasets/git/remote.c:154:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(remote->pushurl);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/remote.c:157:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(remote->http_proxy);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/remote.c:158:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(remote->http_proxy_authmethod);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/remote.c:163:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(branch->merge_name, branch->merge_nr + 1,
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/remote.c:168:8: warning: accessing fields in struct 'branches_hash_key' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct branches_hash_key {
       ^
/datasets/git/remote.c:168:8: note: use "__attribute__((aligned(16)))" to align struct 'branches_hash_key' to 16 bytes
/datasets/git/remote.c:174:9: warning: 2 adjacent parameters of 'branches_hash_cmp' of similar type ('const struct hashmap_entry *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                             const struct hashmap_entry *eptr,
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/remote.c:174:37: note: the first parameter in the range is 'eptr'
                             const struct hashmap_entry *eptr,
                                                         ^~~~
/datasets/git/remote.c:175:37: note: the last parameter in the range is 'entry_or_key'
                             const struct hashmap_entry *entry_or_key,
                                                         ^~~~~~~~~~~~
/datasets/git/remote.c:178:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const struct branch *a, *b;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/remote.c:178:23: warning: variable 'a' is not initialized [cppcoreguidelines-init-variables]
        const struct branch *a, *b;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/remote.c:178:23: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/remote.c:178:27: warning: variable 'b' is not initialized [cppcoreguidelines-init-variables]
        const struct branch *a, *b;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/remote.c:178:27: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/remote.c:184:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (key)
                ^
                 {
/datasets/git/remote.c:185:10: warning: function 'strncmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                return strncmp(a->name, key->str, key->len) ||
                       ^
                                                            != 0
/datasets/git/remote.c:187:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else
        ^~~~
                        return strcmp(a->name, b->name)
/datasets/git/remote.c:187:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/remote.c:195:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct hashmap_entry lookup_entry, *e;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/remote.c:195:38: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct hashmap_entry lookup_entry, *e;
                                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/remote.c:195:38: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/remote.c:198:15: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        lookup.len = len;
                     ^
/datasets/git/remote.c:202:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (e)
              ^
               {
/datasets/git/remote.c:214:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                  strlen(branch->name)))
                                                        ^
                                                         {
/datasets/git/remote.c:221:17: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        struct branch *ret;
                       ^
                           = NULL
/datasets/git/remote.c:224:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/remote.c:232:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (hashmap_put_entry(&remote_state->branches_hash, ret, ent))
                                                                      ^
                                                                       {
/datasets/git/remote.c:237:54: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static struct rewrite *make_rewrite(struct rewrites *r,
                                                     ^
/datasets/git/remote.c:240:18: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        struct rewrite *ret;
                        ^
                            = NULL
/datasets/git/remote.c:241:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/remote.c:241:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/remote.c:243:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < r->rewrite_nr; i++) {
        ^
/datasets/git/remote.c:245:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !strncmp(base, r->rewrite[i]->base, len))
                                                             ^
                                                              {
/datasets/git/remote.c:249:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(r->rewrite, r->rewrite_nr + 1, r->rewrite_alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/remote.c:249:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_GROW(r->rewrite, r->rewrite_nr + 1, r->rewrite_alloc);
        ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/remote.c:259:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(rewrite->instead_of, rewrite->instead_of_nr + 1, rewrite->instead_of_alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/remote.c:265:44: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static const char *skip_spaces(const char *s)
                                           ^
/datasets/git/remote.c:267:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (isspace(*s))
        ^
/datasets/git/remote.c:267:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        while (isspace(*s))
               ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/remote.c:267:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (isspace(*s))
                           ^
                            {
/datasets/git/remote.c:276:8: warning: variable name 'f' is too short, expected at least 3 characters [readability-identifier-length]
        FILE *f = fopen_or_warn(git_path("remotes/%s", remote->name), "r");
              ^
/datasets/git/remote.c:278:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!f)
               ^
                {
/datasets/git/remote.c:282:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (strbuf_getline(&buf, f) != EOF) {
        ^
/datasets/git/remote.c:282:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'buf' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (strbuf_getline(&buf, f) != EOF) {
               ^
/datasets/git/remote.c:283:15: warning: variable 'v' is not initialized [cppcoreguidelines-init-variables]
                const char *v;
                            ^
                              = NULL
/datasets/git/remote.c:283:15: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/remote.c:287:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (skip_prefix(buf.buf, "URL:", &v))
                                                     ^
                                                      {
/datasets/git/remote.c:290:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (skip_prefix(buf.buf, "Push:", &v))
                                                           ^
                                                            {
/datasets/git/remote.c:292:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (skip_prefix(buf.buf, "Pull:", &v))
                                                           ^
                                                            {
/datasets/git/remote.c:296:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(f);
        ^~~~~~~~~
/datasets/git/remote.c:296:2: note: cast the expression to void to silence this warning
/datasets/git/remote.c:302:8: warning: variable 'frag' is not initialized [cppcoreguidelines-init-variables]
        char *frag;
              ^
                   = NULL
/datasets/git/remote.c:304:8: warning: variable name 'f' is too short, expected at least 3 characters [readability-identifier-length]
        FILE *f = fopen_or_warn(git_path("branches/%s", remote->name), "r");
              ^
/datasets/git/remote.c:306:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!f)
               ^
                {
/datasets/git/remote.c:310:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(f);
        ^~~~~~~~~
/datasets/git/remote.c:310:2: note: cast the expression to void to silence this warning
/datasets/git/remote.c:327:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (frag)
                 ^
                  {
/datasets/git/remote.c:329:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/remote.c:344:12: warning: function 'handle_config' has cognitive complexity of 67 (threshold 25) [readability-function-cognitive-complexity]
static int handle_config(const char *key, const char *value, void *cb)
           ^
/datasets/git/remote.c:353:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (parse_config_key(key, "branch", &name, &namelen, &subkey) >= 0) {
        ^
/datasets/git/remote.c:355:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!name)
                ^
/datasets/git/remote.c:358:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!namelen)
                ^
/datasets/git/remote.c:361:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(subkey, "remote")) {
                ^
/datasets/git/remote.c:363:10: note: +1, nesting level increased to 2
                } else if (!strcmp(subkey, "pushremote")) {
                       ^
/datasets/git/remote.c:365:10: note: +1, nesting level increased to 2
                } else if (!strcmp(subkey, "merge")) {
                       ^
/datasets/git/remote.c:366:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!value)
                        ^
/datasets/git/remote.c:372:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (parse_config_key(key, "url", &name, &namelen, &subkey) >= 0) {
        ^
/datasets/git/remote.c:374:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!name)
                ^
/datasets/git/remote.c:376:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(subkey, "insteadof")) {
                ^
/datasets/git/remote.c:377:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!value)
                        ^
/datasets/git/remote.c:382:10: note: +1, nesting level increased to 2
                } else if (!strcmp(subkey, "pushinsteadof")) {
                       ^
/datasets/git/remote.c:383:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!value)
                        ^
/datasets/git/remote.c:391:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (parse_config_key(key, "remote", &name, &namelen, &subkey) < 0)
        ^
/datasets/git/remote.c:395:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!name && !strcmp(subkey, "pushdefault"))
        ^
/datasets/git/remote.c:395:12: note: +1
        if (!name && !strcmp(subkey, "pushdefault"))
                  ^
/datasets/git/remote.c:399:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!name)
        ^
/datasets/git/remote.c:402:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (*name == '/') {
        ^
/datasets/git/remote.c:409:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (current_config_scope() == CONFIG_SCOPE_LOCAL ||
        ^
/datasets/git/remote.c:409:51: note: +1
        if (current_config_scope() == CONFIG_SCOPE_LOCAL ||
                                                         ^
/datasets/git/remote.c:412:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(subkey, "mirror"))
        ^
/datasets/git/remote.c:414:7: note: +1, nesting level increased to 1
        else if (!strcmp(subkey, "skipdefaultupdate"))
             ^
/datasets/git/remote.c:416:7: note: +1, nesting level increased to 1
        else if (!strcmp(subkey, "skipfetchall"))
             ^
/datasets/git/remote.c:418:7: note: +1, nesting level increased to 1
        else if (!strcmp(subkey, "prune"))
             ^
/datasets/git/remote.c:420:7: note: +1, nesting level increased to 1
        else if (!strcmp(subkey, "prunetags"))
             ^
/datasets/git/remote.c:422:7: note: +1, nesting level increased to 1
        else if (!strcmp(subkey, "url")) {
             ^
/datasets/git/remote.c:424:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (git_config_string(&v, key, value))
                ^
/datasets/git/remote.c:427:9: note: +1, nesting level increased to 1
        } else if (!strcmp(subkey, "pushurl")) {
               ^
/datasets/git/remote.c:429:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (git_config_string(&v, key, value))
                ^
/datasets/git/remote.c:432:9: note: +1, nesting level increased to 1
        } else if (!strcmp(subkey, "push")) {
               ^
/datasets/git/remote.c:434:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (git_config_string(&v, key, value))
                ^
/datasets/git/remote.c:438:9: note: +1, nesting level increased to 1
        } else if (!strcmp(subkey, "fetch")) {
               ^
/datasets/git/remote.c:440:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (git_config_string(&v, key, value))
                ^
/datasets/git/remote.c:444:9: note: +1, nesting level increased to 1
        } else if (!strcmp(subkey, "receivepack")) {
               ^
/datasets/git/remote.c:446:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (git_config_string(&v, key, value))
                ^
/datasets/git/remote.c:448:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!remote->receivepack)
                ^
/datasets/git/remote.c:450:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/remote.c:452:9: note: +1, nesting level increased to 1
        } else if (!strcmp(subkey, "uploadpack")) {
               ^
/datasets/git/remote.c:454:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (git_config_string(&v, key, value))
                ^
/datasets/git/remote.c:456:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!remote->uploadpack)
                ^
/datasets/git/remote.c:458:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/remote.c:460:9: note: +1, nesting level increased to 1
        } else if (!strcmp(subkey, "tagopt")) {
               ^
/datasets/git/remote.c:461:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(value, "--no-tags"))
                ^
/datasets/git/remote.c:463:8: note: +1, nesting level increased to 2
                else if (!strcmp(value, "--tags"))
                     ^
/datasets/git/remote.c:465:9: note: +1, nesting level increased to 1
        } else if (!strcmp(subkey, "proxy")) {
               ^
/datasets/git/remote.c:468:9: note: +1, nesting level increased to 1
        } else if (!strcmp(subkey, "proxyauthmethod")) {
               ^
/datasets/git/remote.c:471:9: note: +1, nesting level increased to 1
        } else if (!strcmp(subkey, "vcs")) {
               ^
/datasets/git/remote.c:344:68: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int handle_config(const char *key, const char *value, void *cb)
                                                                   ^
/datasets/git/remote.c:346:14: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
        const char *name;
                    ^
                         = NULL
/datasets/git/remote.c:347:9: warning: variable 'namelen' is not initialized [cppcoreguidelines-init-variables]
        size_t namelen;
               ^
                       = 0
/datasets/git/remote.c:348:14: warning: variable 'subkey' is not initialized [cppcoreguidelines-init-variables]
        const char *subkey;
                    ^
                           = NULL
/datasets/git/remote.c:349:17: warning: variable 'remote' is not initialized [cppcoreguidelines-init-variables]
        struct remote *remote;
                       ^
                              = NULL
/datasets/git/remote.c:350:17: warning: variable 'branch' is not initialized [cppcoreguidelines-init-variables]
        struct branch *branch;
                       ^
                              = NULL
/datasets/git/remote.c:355:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!name)
                          ^
                           {
/datasets/git/remote.c:358:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!namelen)
                             ^
                              {
/datasets/git/remote.c:363:5: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                } else if (!strcmp(subkey, "pushremote")) {
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/remote.c:366:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!value)
                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/remote.c:373:19: warning: variable 'rewrite' is not initialized [cppcoreguidelines-init-variables]
                struct rewrite *rewrite;
                                ^
                                        = NULL
/datasets/git/remote.c:374:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!name)
                          ^
                           {
/datasets/git/remote.c:377:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!value)
                                   ^
                                    {
/datasets/git/remote.c:383:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!value)
                                   ^
                                    {
/datasets/git/remote.c:391:68: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_config_key(key, "remote", &name, &namelen, &subkey) < 0)
                                                                          ^
                                                                           {
/datasets/git/remote.c:395:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!name && !strcmp(subkey, "pushdefault"))
                                                    ^
                                                     {
/datasets/git/remote.c:399:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!name)
                  ^
                   {
/datasets/git/remote.c:407:43: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        remote = make_remote(remote_state, name, namelen);
                                                 ^
/datasets/git/remote.c:410:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            current_config_scope() == CONFIG_SCOPE_WORKTREE)
                                                            ^
                                                             {
/datasets/git/remote.c:412:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(subkey, "mirror"))
                                      ^
                                       {
/datasets/git/remote.c:414:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(subkey, "skipdefaultupdate"))
                                                      ^
                                                       {
/datasets/git/remote.c:415:3: warning: repeated branch in conditional chain [bugprone-branch-clone]
                remote->skip_default_update = git_config_bool(key, value);
                ^
/datasets/git/remote.c:415:60: note: end of the original
                remote->skip_default_update = git_config_bool(key, value);
                                                                         ^
/datasets/git/remote.c:417:3: note: clone 1 starts here
                remote->skip_default_update = git_config_bool(key, value);
                ^
/datasets/git/remote.c:416:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(subkey, "skipfetchall"))
                                                 ^
                                                  {
/datasets/git/remote.c:418:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(subkey, "prune"))
                                          ^
                                           {
/datasets/git/remote.c:420:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(subkey, "prunetags"))
                                              ^
                                               {
/datasets/git/remote.c:423:15: warning: variable 'v' is not initialized [cppcoreguidelines-init-variables]
                const char *v;
                            ^
                              = NULL
/datasets/git/remote.c:423:15: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/remote.c:424:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (git_config_string(&v, key, value))
                                                      ^
                                                       {
/datasets/git/remote.c:428:15: warning: variable 'v' is not initialized [cppcoreguidelines-init-variables]
                const char *v;
                            ^
                              = NULL
/datasets/git/remote.c:428:15: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/remote.c:429:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (git_config_string(&v, key, value))
                                                      ^
                                                       {
/datasets/git/remote.c:433:15: warning: variable 'v' is not initialized [cppcoreguidelines-init-variables]
                const char *v;
                            ^
                              = NULL
/datasets/git/remote.c:433:15: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/remote.c:434:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (git_config_string(&v, key, value))
                                                      ^
                                                       {
/datasets/git/remote.c:439:15: warning: variable 'v' is not initialized [cppcoreguidelines-init-variables]
                const char *v;
                            ^
                              = NULL
/datasets/git/remote.c:439:15: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/remote.c:440:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (git_config_string(&v, key, value))
                                                      ^
                                                       {
/datasets/git/remote.c:445:15: warning: variable 'v' is not initialized [cppcoreguidelines-init-variables]
                const char *v;
                            ^
                              = NULL
/datasets/git/remote.c:445:15: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/remote.c:446:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (git_config_string(&v, key, value))
                                                      ^
                                                       {
/datasets/git/remote.c:448:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!remote->receivepack)
                                         ^
                                          {
/datasets/git/remote.c:450:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/remote.c:453:15: warning: variable 'v' is not initialized [cppcoreguidelines-init-variables]
                const char *v;
                            ^
                              = NULL
/datasets/git/remote.c:453:15: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/remote.c:454:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (git_config_string(&v, key, value))
                                                      ^
                                                       {
/datasets/git/remote.c:456:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!remote->uploadpack)
                                        ^
                                         {
/datasets/git/remote.c:458:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/remote.c:461:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(value, "--no-tags"))
                                                ^
                                                 {
/datasets/git/remote.c:463:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(value, "--tags"))
                                                  ^
                                                   {
/datasets/git/remote.c:479:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, j;
        ^~~~~~~~~
/datasets/git/remote.c:479:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, j;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/remote.c:479:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/remote.c:479:9: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int i, j;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/remote.c:479:9: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/remote.c:481:7: warning: variable 'add_pushurl_aliases' is not initialized [cppcoreguidelines-init-variables]
                int add_pushurl_aliases;
                    ^
                                        = 0
/datasets/git/remote.c:482:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!remote_state->remotes[i])
                                              ^
                                               {
/datasets/git/remote.c:484:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (j = 0; j < remote_state->remotes[i]->pushurl_nr; j++) {
                ^
/datasets/git/remote.c:490:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (j = 0; j < remote_state->remotes[i]->url_nr; j++) {
                ^
/datasets/git/remote.c:491:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (add_pushurl_aliases)
                                                ^
                                                 {
/datasets/git/remote.c:504:6: warning: variable 'flag' is not initialized [cppcoreguidelines-init-variables]
        int flag;
            ^
                 = 0
/datasets/git/remote.c:506:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo->remote_state->initialized)
                                            ^
                                             {
/datasets/git/remote.c:514:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (head_ref && (flag & REF_ISSYMREF) &&
                                 ^~~~
/datasets/git/remote.c:526:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!name[0] || is_dot_or_dotdot(name))
                                               ^
                                                {
/datasets/git/remote.c:530:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*name)
        ^
/datasets/git/remote.c:530:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (*name)
                     ^
                      {
/datasets/git/remote.c:531:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_dir_sep(*name++))
                                        ^
                                         {
/datasets/git/remote.c:541:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (explicit)
                             ^
                              {
/datasets/git/remote.c:545:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (explicit)
                     ^
                      {
/datasets/git/remote.c:547:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (remote_state->remotes_nr == 1)
                                          ^
                                           {
/datasets/git/remote.c:566:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (explicit)
                             ^
                              {
/datasets/git/remote.c:571:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (explicit)
                             ^
                              {
/datasets/git/remote.c:601:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        const char *dst,
                        ^~~~~~~~~~~~~~~~
/datasets/git/remote.c:601:16: warning: variable 'dst' is not initialized [cppcoreguidelines-init-variables]
                        const char *dst,
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/remote.c:609:9: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                            (dst = apply_refspecs(&remote->push,
                             ^
/datasets/git/remote.c:609:9: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/remote.c:609:9: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/remote.c:620:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/remote.c:620:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/remote.c:621:14: warning: variable 'value' is not initialized [cppcoreguidelines-init-variables]
        const char *value;
                    ^
                          = NULL
/datasets/git/remote.c:623:6: warning: variable 'warn_not_die' is not initialized [cppcoreguidelines-init-variables]
        int warn_not_die;
            ^
                         = 0
/datasets/git/remote.c:625:69: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (git_config_get_string_tmp("transfer.credentialsinurl", &value))
                                                                           ^
                                                                            {
/datasets/git/remote.c:628:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp("warn", value))
                                   ^
                                    {
/datasets/git/remote.c:630:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp("die", value))
                                       ^
                                        {
/datasets/git/remote.c:632:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp("allow", value))
                                         ^
                                          {
/datasets/git/remote.c:634:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/remote.c:637:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < remote->url_nr; i++) {
        ^
/datasets/git/remote.c:641:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !url_info.passwd_off)
                                         ^
                                          {
/datasets/git/remote.c:650:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (warn_not_die)
                                 ^
                                  {
/datasets/git/remote.c:652:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/remote.c:667:17: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        struct remote *ret;
                       ^
                           = NULL
/datasets/git/remote.c:670:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (name)
                 ^
                  {
/datasets/git/remote.c:672:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/remote.c:678:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!valid_remote(ret))
                                       ^
                                        {
/datasets/git/remote.c:680:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!valid_remote(ret))
                                       ^
                                        {
/datasets/git/remote.c:683:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (name_given && !valid_remote(ret))
                                             ^
                                              {
/datasets/git/remote.c:685:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!valid_remote(ret))
                               ^
                                {
/datasets/git/remote.c:721:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!remote)
                    ^
                     {
/datasets/git/remote.c:723:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (in_repo)
                    ^
                     {
/datasets/git/remote.c:728:36: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
int for_each_remote(each_remote_fn fn, void *priv)
                                   ^
/datasets/git/remote.c:730:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, result = 0;
        ^~~~~~~~~~~~~~~~~~
/datasets/git/remote.c:730:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/remote.c:730:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, result = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/remote.c:730:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/remote.c:732:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < the_repository->remote_state->remotes_nr && !result;
        ^
/datasets/git/remote.c:732:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'result' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < the_repository->remote_state->remotes_nr && !result;
                    ^
/datasets/git/remote.c:736:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!remote)
                            ^
                             {
/datasets/git/remote.c:745:6: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (strcmp(ref1->name, ref2->name)) {
            ^
                                           != 0
/datasets/git/remote.c:771:35: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
struct ref *ref_remove_duplicates(struct ref *ref_map)
                                  ^
/datasets/git/remote.c:775:15: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        struct ref **p = &retval;
                     ^
/datasets/git/remote.c:777:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (ref_map) {
        ^
/datasets/git/remote.c:777:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'ref_map' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (ref_map) {
               ^
/datasets/git/remote.c:807:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/remote.c:807:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/remote.c:808:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < remote->url_nr; i++) {
        ^
/datasets/git/remote.c:809:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(remote->url[i], url))
                                                 ^
                                                  {
/datasets/git/remote.c:815:53: warning: 2 adjacent parameters of 'match_name_with_pattern' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int match_name_with_pattern(const char *key, const char *name,
                                                    ^~~~~~~~~~~~~~~~~
/datasets/git/remote.c:815:65: note: the first parameter in the range is 'name'
static int match_name_with_pattern(const char *key, const char *name,
                                                                ^~~~
/datasets/git/remote.c:816:20: note: the last parameter in the range is 'value'
                                   const char *value, char **result)
                                               ^~~~~
/datasets/git/remote.c:819:9: warning: variable 'klen' is not initialized [cppcoreguidelines-init-variables]
        size_t klen;
               ^
                    = 0
/datasets/git/remote.c:820:9: warning: variable 'ksuffixlen' is not initialized [cppcoreguidelines-init-variables]
        size_t ksuffixlen;
               ^
                          = 0
/datasets/git/remote.c:821:9: warning: variable 'namelen' is not initialized [cppcoreguidelines-init-variables]
        size_t namelen;
               ^
                       = 0
/datasets/git/remote.c:822:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/remote.c:823:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!kstar)
                   ^
                    {
/datasets/git/remote.c:831:17: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                struct strbuf sb = STRBUF_INIT;
                              ^
/datasets/git/remote.c:833:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!vstar)
                           ^
                            {
/datasets/git/remote.c:846:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (refspec->pattern)
                             ^
                              {
/datasets/git/remote.c:852:60: warning: parameter name 'rs' is too short, expected at least 3 characters [readability-identifier-length]
int omit_name_by_refspec(const char *name, struct refspec *rs)
                                                           ^
/datasets/git/remote.c:854:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/remote.c:854:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/remote.c:856:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < rs->nr; i++) {
        ^
/datasets/git/remote.c:857:67: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (rs->items[i].negative && refspec_match(&rs->items[i], name))
                                                                                ^
                                                                                 {
/datasets/git/remote.c:863:74: warning: parameter name 'rs' is too short, expected at least 3 characters [readability-identifier-length]
struct ref *apply_negative_refspecs(struct ref *ref_map, struct refspec *rs)
                                                                         ^
/datasets/git/remote.c:865:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct ref **tail;
        ^
/datasets/git/remote.c:865:15: warning: variable 'tail' is not initialized [cppcoreguidelines-init-variables]
        struct ref **tail;
                     ^
                          = NULL
/datasets/git/remote.c:867:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (tail = &ref_map; *tail; ) {
        ^
/datasets/git/remote.c:867:24: warning: backward branch (for loop) is ID-dependent due to variable reference to 'tail' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (tail = &ref_map; *tail; ) {
                              ^
/datasets/git/remote.c:874:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/remote.c:881:59: warning: parameter name 'rs' is too short, expected at least 3 characters [readability-identifier-length]
static int query_matches_negative_refspec(struct refspec *rs, struct refspec_item *query)
                                                          ^
/datasets/git/remote.c:883:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, matched_negative = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/remote.c:883:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, matched_negative = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/remote.c:883:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/remote.c:904:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < rs->nr; i++) {
        ^
/datasets/git/remote.c:906:9: warning: variable 'expn_name' is not initialized [cppcoreguidelines-init-variables]
                char *expn_name;
                      ^
                                = NULL
/datasets/git/remote.c:908:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (refspec->negative)
                                      ^
                                       {
/datasets/git/remote.c:916:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (match_name_with_pattern(key, needle, value, &expn_name))
                                                                                    ^
                                                                                     {
/datasets/git/remote.c:917:5: warning: 2nd function call argument is an uninitialized value [clang-analyzer-core.CallAndMessage]
                                string_list_append_nodup(&reversed, expn_name);
                                ^
/datasets/git/remote.c:2414:2: note: Calling 'query_refspecs_multiple'
        query_refspecs_multiple(info->rs, &query, &matches);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/remote.c:945:6: note: 'find_src' is 1
        if (find_src && !query->dst)
            ^~~~~~~~
/datasets/git/remote.c:945:6: note: Left side of '&&' is true
/datasets/git/remote.c:945:18: note: Assuming field 'dst' is non-null
        if (find_src && !query->dst)
                        ^~~~~~~~~~~
/datasets/git/remote.c:945:2: note: Taking false branch
        if (find_src && !query->dst)
        ^
/datasets/git/remote.c:948:6: note: Calling 'query_matches_negative_refspec'
        if (query_matches_negative_refspec(rs, query))
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/remote.c:886:23: note: 'find_src' is 1
        const char *needle = find_src ? query->dst : query->src;
                             ^~~~~~~~
/datasets/git/remote.c:886:23: note: '?' condition is true
/datasets/git/remote.c:904:14: note: Assuming 'i' is < field 'nr'
        for (i = 0; i < rs->nr; i++) {
                    ^~~~~~~~~~
/datasets/git/remote.c:904:2: note: Loop condition is true.  Entering loop body
        for (i = 0; i < rs->nr; i++) {
        ^
/datasets/git/remote.c:906:3: note: 'expn_name' declared without an initial value
                char *expn_name;
                ^~~~~~~~~~~~~~~
/datasets/git/remote.c:908:7: note: Assuming field 'negative' is 0
                if (refspec->negative)
                    ^~~~~~~~~~~~~~~~~
/datasets/git/remote.c:908:3: note: Taking false branch
                if (refspec->negative)
                ^
/datasets/git/remote.c:912:7: note: Assuming field 'pattern' is not equal to 0
                if (refspec->pattern) {
                    ^~~~~~~~~~~~~~~~
/datasets/git/remote.c:912:3: note: Taking true branch
                if (refspec->pattern) {
                ^
/datasets/git/remote.c:913:22: note: Assuming field 'dst' is non-null
                        const char *key = refspec->dst ? refspec->dst : refspec->src;
                                          ^~~~~~~~~~~~
/datasets/git/remote.c:913:22: note: '?' condition is true
/datasets/git/remote.c:916:8: note: Calling 'match_name_with_pattern'
                        if (match_name_with_pattern(key, needle, value, &expn_name))
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/remote.c:823:6: note: Assuming 'kstar' is non-null
        if (!kstar)
            ^~~~~~
/datasets/git/remote.c:823:2: note: Taking false branch
        if (!kstar)
        ^
/datasets/git/remote.c:828:8: note: Left side of '&&' is true
        ret = !strncmp(name, key, klen) && namelen >= klen + ksuffixlen &&
              ^
/datasets/git/remote.c:828:37: note: Assuming the condition is true
        ret = !strncmp(name, key, klen) && namelen >= klen + ksuffixlen &&
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/remote.c:828:8: note: Left side of '&&' is true
        ret = !strncmp(name, key, klen) && namelen >= klen + ksuffixlen &&
              ^
/datasets/git/remote.c:830:6: note: 'ret' is 1
        if (ret && value) {
            ^~~
/datasets/git/remote.c:830:6: note: Left side of '&&' is true
/datasets/git/remote.c:830:13: note: Assuming 'value' is null
        if (ret && value) {
                   ^~~~~
/datasets/git/remote.c:830:2: note: Taking false branch
        if (ret && value) {
        ^
/datasets/git/remote.c:840:2: note: Returning without writing to '*result'
        return ret;
        ^
/datasets/git/remote.c:916:8: note: Returning from 'match_name_with_pattern'
                        if (match_name_with_pattern(key, needle, value, &expn_name))
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/remote.c:916:4: note: Taking true branch
                        if (match_name_with_pattern(key, needle, value, &expn_name))
                        ^
/datasets/git/remote.c:917:5: note: 2nd function call argument is an uninitialized value
                                string_list_append_nodup(&reversed, expn_name);
                                ^                                   ~~~~~~~~~
/datasets/git/remote.c:928:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; !matched_negative && i < reversed.nr; i++) {
        ^
/datasets/git/remote.c:929:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (omit_name_by_refspec(reversed.items[i].string, rs))
                                                                       ^
                                                                        {
/datasets/git/remote.c:938:53: warning: parameter name 'rs' is too short, expected at least 3 characters [readability-identifier-length]
static void query_refspecs_multiple(struct refspec *rs,
                                                    ^
/datasets/git/remote.c:942:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/remote.c:942:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/remote.c:945:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (find_src && !query->dst)
                                    ^
                                     {
/datasets/git/remote.c:948:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (query_matches_negative_refspec(rs, query))
                                                      ^
                                                       {
/datasets/git/remote.c:951:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < rs->nr; i++) {
        ^
/datasets/git/remote.c:958:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!refspec->dst || refspec->negative)
                                                       ^
                                                        {
/datasets/git/remote.c:961:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (match_name_with_pattern(key, needle, value, result))
                                                                                ^
                                                                                 {
/datasets/git/remote.c:969:36: warning: parameter name 'rs' is too short, expected at least 3 characters [readability-identifier-length]
int query_refspecs(struct refspec *rs, struct refspec_item *query)
                                   ^
/datasets/git/remote.c:971:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/remote.c:971:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/remote.c:976:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (find_src && !query->dst)
                                    ^
                                     {
/datasets/git/remote.c:979:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (query_matches_negative_refspec(rs, query))
                                                      ^
                                                       {
/datasets/git/remote.c:982:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < rs->nr; i++) {
        ^
/datasets/git/remote.c:987:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!refspec->dst || refspec->negative)
                                                       ^
                                                        {
/datasets/git/remote.c:1003:38: warning: parameter name 'rs' is too short, expected at least 3 characters [readability-identifier-length]
char *apply_refspecs(struct refspec *rs, const char *name)
                                     ^
/datasets/git/remote.c:1007:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&query, 0, sizeof(struct refspec_item));
        ^~~~~~
/datasets/git/remote.c:1007:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&query, 0, sizeof(struct refspec_item));
        ^~~~~~
/datasets/git/remote.c:1010:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (query_refspecs(rs, &query))
                                       ^
                                        {
/datasets/git/remote.c:1024:15: warning: Null pointer passed to 1st parameter expecting 'nonnull' [clang-analyzer-core.NonNullParamChecker]
        size_t len = strlen(name);
                     ^
/datasets/git/remote.c:2072:6: note: Assuming field 'negative' is 0
        if (refspec->negative)
            ^~~~~~~~~~~~~~~~~
/datasets/git/remote.c:2072:2: note: Taking false branch
        if (refspec->negative)
        ^
/datasets/git/remote.c:2075:6: note: Assuming field 'pattern' is not equal to 0
        if (refspec->pattern) {
            ^~~~~~~~~~~~~~~~
/datasets/git/remote.c:2075:2: note: Taking true branch
        if (refspec->pattern) {
        ^
/datasets/git/remote.c:2076:13: note: Calling 'get_expanded_map'
                ref_map = get_expanded_map(remote_refs, refspec);
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/remote.c:1997:2: note: Loop condition is true.  Entering loop body
        for (ref = remote_refs; ref; ref = ref->next) {
        ^
/datasets/git/remote.c:1998:3: note: 'expn_name' initialized to a null pointer value
                char *expn_name = NULL;
                ^~~~~~~~~~~~~~~
/datasets/git/remote.c:2002:7: note: Assuming the condition is false
                if (strchr(ref->name, '^'))
                    ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/remote.c:2002:3: note: Taking false branch
                if (strchr(ref->name, '^'))
                ^
/datasets/git/remote.c:2004:7: note: Calling 'match_name_with_pattern'
                if (match_name_with_pattern(refspec->src, ref->name,
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/remote.c:823:6: note: Assuming 'kstar' is non-null
        if (!kstar)
            ^~~~~~
/datasets/git/remote.c:823:2: note: Taking false branch
        if (!kstar)
        ^
/datasets/git/remote.c:828:8: note: Left side of '&&' is true
        ret = !strncmp(name, key, klen) && namelen >= klen + ksuffixlen &&
              ^
/datasets/git/remote.c:828:37: note: Assuming the condition is true
        ret = !strncmp(name, key, klen) && namelen >= klen + ksuffixlen &&
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/remote.c:828:8: note: Left side of '&&' is true
        ret = !strncmp(name, key, klen) && namelen >= klen + ksuffixlen &&
              ^
/datasets/git/remote.c:830:6: note: 'ret' is 1
        if (ret && value) {
            ^~~
/datasets/git/remote.c:830:6: note: Left side of '&&' is true
/datasets/git/remote.c:830:13: note: Assuming 'value' is null
        if (ret && value) {
                   ^~~~~
/datasets/git/remote.c:830:2: note: Taking false branch
        if (ret && value) {
        ^
/datasets/git/remote.c:840:2: note: Returning without writing to '*result'
        return ret;
        ^
/datasets/git/remote.c:2004:7: note: Returning from 'match_name_with_pattern'
                if (match_name_with_pattern(refspec->src, ref->name,
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/remote.c:2004:7: note: Left side of '&&' is true
/datasets/git/remote.c:2004:3: note: Taking true branch
                if (match_name_with_pattern(refspec->src, ref->name,
                ^
/datasets/git/remote.c:2009:30: note: Passing null pointer value via 1st parameter 'name'
                        cpy->peer_ref = alloc_ref(expn_name);
                                                  ^~~~~~~~~
/datasets/git/remote.c:2009:20: note: Calling 'alloc_ref'
                        cpy->peer_ref = alloc_ref(expn_name);
                                        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/remote.c:1033:38: note: Passing null pointer value via 3rd parameter 'name'
        return alloc_ref_with_prefix("", 0, name);
                                            ^~~~
/datasets/git/remote.c:1033:9: note: Calling 'alloc_ref_with_prefix'
        return alloc_ref_with_prefix("", 0, name);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/remote.c:1024:15: note: Null pointer passed to 1st parameter expecting 'nonnull'
        size_t len = strlen(name);
                     ^      ~~~~
/datasets/git/remote.c:1026:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(ref->name, prefix, prefixlen);
        ^~~~~~
/datasets/git/remote.c:1026:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(ref->name, prefix, prefixlen);
        ^~~~~~
/datasets/git/remote.c:1027:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(ref->name + prefixlen, name, len);
        ^~~~~~
/datasets/git/remote.c:1027:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(ref->name + prefixlen, name, len);
        ^~~~~~
/datasets/git/remote.c:1036:13: warning: function 'copy_ref' is within a recursive call chain [misc-no-recursion]
struct ref *copy_ref(const struct ref *ref)
            ^
/datasets/git/remote.c:1036:13: note: example recursive call chain, starting from function 'copy_ref'
/datasets/git/remote.c:1048:18: note: Frame #1: function 'copy_ref' calls function 'copy_ref' here:
        cpy->peer_ref = copy_ref(ref->peer_ref);
                        ^
/datasets/git/remote.c:1048:18: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/remote.c:1038:14: warning: variable 'cpy' is not initialized [cppcoreguidelines-init-variables]
        struct ref *cpy;
                    ^
                        = NULL
/datasets/git/remote.c:1039:9: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        size_t len;
               ^
                   = 0
/datasets/git/remote.c:1052:27: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
struct ref *copy_ref_list(const struct ref *ref)
                          ^
/datasets/git/remote.c:1040:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ref)
                 ^
                  {
/datasets/git/remote.c:1044:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(cpy, ref, len);
        ^~~~~~
/datasets/git/remote.c:1044:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(cpy, ref, len);
        ^~~~~~
/datasets/git/remote.c:1056:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (ref) {
        ^
/datasets/git/remote.c:1056:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (ref) {
               ^
/datasets/git/remote.c:1064:6: warning: function 'free_one_ref' is within a recursive call chain [misc-no-recursion]
void free_one_ref(struct ref *ref)
     ^
/datasets/git/remote.c:1064:6: note: example recursive call chain, starting from function 'free_one_ref'
/datasets/git/remote.c:1068:2: note: Frame #1: function 'free_one_ref' calls function 'free_one_ref' here:
        free_one_ref(ref->peer_ref);
        ^
/datasets/git/remote.c:1068:2: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/remote.c:1066:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ref)
                 ^
                  {
/datasets/git/remote.c:1076:14: warning: variable 'next' is not initialized [cppcoreguidelines-init-variables]
        struct ref *next;
                    ^
                         = NULL
/datasets/git/remote.c:1077:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (ref) {
        ^
/datasets/git/remote.c:1077:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (ref) {
               ^
/datasets/git/remote.c:1088:15: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int patlen = strlen(pattern);
                     ^
/datasets/git/remote.c:1094:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (weak_match = match = 0; refs; refs = refs->next) {
        ^
/datasets/git/remote.c:1094:31: warning: backward branch (for loop) is ID-dependent due to variable reference to 'refs' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (weak_match = match = 0; refs; refs = refs->next) {
                                     ^
/datasets/git/remote.c:1096:17: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int namelen = strlen(name);
                              ^
/datasets/git/remote.c:1098:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!refname_match(pattern, name))
                                                  ^
                                                   {
/datasets/git/remote.c:1110:27: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                    patlen != namelen - 5 &&
                                        ^
/datasets/git/remote.c:1129:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (matched_ref)
                                ^
                                 {
/datasets/git/remote.c:1133:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else {
        ^~~~~~
/datasets/git/remote.c:1085:4: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                        struct ref *refs,
                        ^
/datasets/git/remote.c:1134:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (matched_ref)
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/remote.c:1143:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (ref->next)
        ^
/datasets/git/remote.c:1143:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (ref->next)
               ^
/datasets/git/remote.c:1143:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (ref->next)
                         ^
                          {
/datasets/git/remote.c:1161:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (match)
                          ^
                           {
/datasets/git/remote.c:1166:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid(name, &oid))
                                ^
                                 {
/datasets/git/remote.c:1187:14: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        const char *r = resolve_ref_unsafe(peer->name, RESOLVE_REF_READING,
                    ^
/datasets/git/remote.c:1189:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!r)
               ^
                {
/datasets/git/remote.c:1205:31: warning: parameter name 'rs' is too short, expected at least 3 characters [readability-identifier-length]
                              struct refspec_item *rs,
                                                   ^
/datasets/git/remote.c:1211:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (allocated_match)
                                    ^
                                     {
/datasets/git/remote.c:1219:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (try_explicit_object_name(rs->src, match) < 0)
                                                                 ^
                                                                  {
/datasets/git/remote.c:1221:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (allocated_match)
                                    ^
                                     {
/datasets/git/remote.c:1233:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/remote.c:1251:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!advice_enabled(ADVICE_PUSH_UNQUALIFIED_REF_NAME))
                                                              ^
                                                               {
/datasets/git/remote.c:1254:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid(matched_src_name, &oid))
                                            ^
                                             {
/datasets/git/remote.c:1285:27: warning: 2 adjacent parameters of 'match_explicit' of similar type ('struct ref *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int match_explicit(struct ref *src, struct ref *dst,
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/remote.c:1285:39: note: the first parameter in the range is 'src'
static int match_explicit(struct ref *src, struct ref *dst,
                                      ^~~
/datasets/git/remote.c:1285:56: note: the last parameter in the range is 'dst'
static int match_explicit(struct ref *src, struct ref *dst,
                                                       ^~~
/datasets/git/remote.c:1287:27: warning: parameter name 'rs' is too short, expected at least 3 characters [readability-identifier-length]
                          struct refspec_item *rs)
                                               ^
/datasets/git/remote.c:1289:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct ref *matched_src, *matched_dst;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/remote.c:1289:14: warning: variable 'matched_src' is not initialized [cppcoreguidelines-init-variables]
        struct ref *matched_src, *matched_dst;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/remote.c:1289:28: warning: variable 'matched_dst' is not initialized [cppcoreguidelines-init-variables]
        struct ref *matched_src, *matched_dst;
                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/remote.c:1290:6: warning: variable 'allocated_src' is not initialized [cppcoreguidelines-init-variables]
        int allocated_src;
            ^
                          = 0
/datasets/git/remote.c:1293:8: warning: variable 'dst_guess' is not initialized [cppcoreguidelines-init-variables]
        char *dst_guess;
              ^
                        = NULL
/datasets/git/remote.c:1295:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (rs->pattern || rs->matching || rs->negative)
                                                        ^
                                                         {
/datasets/git/remote.c:1299:68: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (match_explicit_lhs(src, rs, &matched_src, &allocated_src) < 0)
                                                                          ^
                                                                           {
/datasets/git/remote.c:1303:7: warning: variable 'flag' is not initialized [cppcoreguidelines-init-variables]
                int flag;
                    ^
                         = 0
/datasets/git/remote.c:1309:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    ((flag & REF_ISSYMREF) &&
                      ^~~~
/datasets/git/remote.c:1310:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                     !starts_with(dst_value, "refs/heads/")))
                                                             ^
                                                              {
/datasets/git/remote.c:1324:15: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                } else if ((dst_guess = guess_ref(dst_value, matched_src))) {
                            ^
/datasets/git/remote.c:1324:15: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/remote.c:1324:15: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/remote.c:1338:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!matched_dst)
                         ^
                          {
/datasets/git/remote.c:1340:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (matched_dst->peer_ref)
                                  ^
                                   {
/datasets/git/remote.c:1343:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else {
        ^~~~~~
/datasets/git/remote.c:1353:51: warning: parameter name 'rs' is too short, expected at least 3 characters [readability-identifier-length]
                               struct ref ***dst_tail, struct refspec *rs)
                                                                       ^
/datasets/git/remote.c:1355:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, errs;
        ^~~~~~~~~~~~
/datasets/git/remote.c:1355:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, errs;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/remote.c:1355:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/remote.c:1355:9: warning: variable 'errs' is not initialized [cppcoreguidelines-init-variables]
        int i, errs;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/remote.c:1356:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = errs = 0; i < rs->nr; i++)
        ^
/datasets/git/remote.c:1356:21: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = errs = 0; i < rs->nr; i++)
                           ^
/datasets/git/remote.c:1356:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = errs = 0; i < rs->nr; i++)
                                           ^
                                            {
/datasets/git/remote.c:1361:50: warning: parameter name 'rs' is too short, expected at least 3 characters [readability-identifier-length]
static char *get_ref_match(const struct refspec *rs, const struct ref *ref,
                                                 ^
/datasets/git/remote.c:1362:7: warning: 2 adjacent parameters of 'get_ref_match' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                           int send_mirror, int direction,
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/remote.c:1362:11: note: the first parameter in the range is 'send_mirror'
                           int send_mirror, int direction,
                               ^~~~~~~~~~~
/datasets/git/remote.c:1362:28: note: the last parameter in the range is 'direction'
                           int send_mirror, int direction,
                                                ^~~~~~~~~
/datasets/git/remote.c:1365:29: warning: variable 'pat' is not initialized [cppcoreguidelines-init-variables]
        const struct refspec_item *pat;
                                   ^
                                       = NULL
/datasets/git/remote.c:1366:8: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
        char *name;
              ^
                   = NULL
/datasets/git/remote.c:1367:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/remote.c:1367:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/remote.c:1369:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < rs->nr; i++) {
        ^
/datasets/git/remote.c:1372:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (item->negative)
                                   ^
                                    {
/datasets/git/remote.c:1383:8: warning: variable 'match' is not initialized [cppcoreguidelines-init-variables]
                        int match;
                            ^
                                  = 0
/datasets/git/remote.c:1384:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (direction == FROM_SRC)
                                                  ^
                                                   {
/datasets/git/remote.c:1386:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/remote.c:1394:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (matching_refs == -1)
                                ^
                                 {
/datasets/git/remote.c:1404:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!send_mirror && !starts_with(ref->name, "refs/heads/"))
                                                                           ^
                                                                            {
/datasets/git/remote.c:1408:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret_pat)
                    ^
                     {
/datasets/git/remote.c:1416:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*tail)
        ^
/datasets/git/remote.c:1416:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'tail' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (*tail)
               ^
/datasets/git/remote.c:1416:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (*tail)
                     ^
                      {
/datasets/git/remote.c:1421:8: warning: accessing fields in struct 'tips' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct tips {
       ^
/datasets/git/remote.c:1421:8: note: use "__attribute__((aligned(16)))" to align struct 'tips' to 16 bytes
/datasets/git/remote.c:1428:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/remote.c:1430:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_null_oid(oid))
                             ^
                              {
/datasets/git/remote.c:1433:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!commit || (commit->object.flags & TMP_MARK))
                                               ^
/datasets/git/./revision.h:31:19: note: expanded from macro 'TMP_MARK'
#define TMP_MARK        (1u<<4) /* for isolated cases; clean after use */
                         ^   ~
/datasets/git/remote.c:1433:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!commit || (commit->object.flags & TMP_MARK))
                                                         ^
                                                          {
/datasets/git/remote.c:1435:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        commit->object.flags |= TMP_MARK;
                                ^
/datasets/git/./revision.h:31:19: note: expanded from macro 'TMP_MARK'
#define TMP_MARK        (1u<<4) /* for isolated cases; clean after use */
                         ^   ~
/datasets/git/remote.c:1436:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(tips->tip, tips->nr + 1, tips->alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/remote.c:1436:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_GROW(tips->tip, tips->nr + 1, tips->alloc);
        ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/remote.c:1440:13: warning: function 'add_missing_tags' has cognitive complexity of 49 (threshold 25) [readability-function-cognitive-complexity]
static void add_missing_tags(struct ref *src, struct ref **dst, struct ref ***dst_tail)
            ^
/datasets/git/remote.c:1453:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (ref = *dst; ref; ref = ref->next) {
        ^
/datasets/git/remote.c:1454:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ref->peer_ref &&
                ^
/datasets/git/remote.c:1454:21: note: +1
                if (ref->peer_ref &&
                                  ^
/datasets/git/remote.c:1457:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/remote.c:1459:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (starts_with(ref->name, "refs/tags/"))
                ^
/datasets/git/remote.c:1467:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (ref = src; ref; ref = ref->next) {
        ^
/datasets/git/remote.c:1468:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!starts_with(ref->name, "refs/tags/"))
                ^
/datasets/git/remote.c:1470:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (string_list_has_string(&dst_tag, ref->name))
                ^
/datasets/git/remote.c:1472:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (oid_object_info(the_repository, &ref->new_oid, NULL) != OBJ_TAG)
                ^
/datasets/git/remote.c:1486:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (sent_tips.nr) {
        ^
/datasets/git/remote.c:1493:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for_each_string_list_item(item, &src_tag) {
                ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/remote.c:1493:3: note: +1
                for_each_string_list_item(item, &src_tag) {
                ^
/datasets/git/./string-list.h:152:12: note: expanded from macro 'for_each_string_list_item'
             item && item < (list)->items + (list)->nr; \
                  ^
/datasets/git/remote.c:1497:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (is_null_oid(&ref->new_oid))
                        ^
/datasets/git/remote.c:1502:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!commit)
                        ^
/datasets/git/remote.c:1506:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        ALLOC_GROW(src_commits, nr_src_commits + 1, alloc_src_commits);
                        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/remote.c:1506:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        ALLOC_GROW(src_commits, nr_src_commits + 1, alloc_src_commits);
                        ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/remote.c:1506:4: note: +5, including nesting penalty of 4, nesting level increased to 5
                        ALLOC_GROW(src_commits, nr_src_commits + 1, alloc_src_commits);
                        ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/remote.c:1506:4: note: +1, nesting level increased to 5
                        ALLOC_GROW(src_commits, nr_src_commits + 1, alloc_src_commits);
                        ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/remote.c:1514:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for_each_string_list_item(item, &src_tag) {
                ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/remote.c:1514:3: note: +1
                for_each_string_list_item(item, &src_tag) {
                ^
/datasets/git/./string-list.h:152:12: note: expanded from macro 'for_each_string_list_item'
             item && item < (list)->items + (list)->nr; \
                  ^
/datasets/git/remote.c:1519:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (is_null_oid(&ref->new_oid))
                        ^
/datasets/git/remote.c:1524:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!commit)
                        ^
/datasets/git/remote.c:1532:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!(commit->object.flags & reachable_flag))
                        ^
/datasets/git/remote.c:1445:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct ref *ref;
        ^
/datasets/git/remote.c:1444:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/remote.c:1445:14: warning: variable 'ref' is not initialized [cppcoreguidelines-init-variables]
        struct ref *ref;
                    ^
                        = NULL
/datasets/git/remote.c:1452:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&sent_tips, 0, sizeof(sent_tips));
        ^~~~~~
/datasets/git/remote.c:1452:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&sent_tips, 0, sizeof(sent_tips));
        ^~~~~~
/datasets/git/remote.c:1453:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (ref = *dst; ref; ref = ref->next) {
        ^
/datasets/git/remote.c:1445:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct ref *ref;
        ^
/datasets/git/remote.c:1453:19: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (ref = *dst; ref; ref = ref->next) {
                         ^
/datasets/git/remote.c:1455:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !is_null_oid(&ref->peer_ref->new_oid))
                                                          ^
                                                           {
/datasets/git/remote.c:1457:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/remote.c:1459:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (starts_with(ref->name, "refs/tags/"))
                                                         ^
                                                          {
/datasets/git/remote.c:1462:55: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        clear_commit_marks_many(sent_tips.nr, sent_tips.tip, TMP_MARK);
                                                             ^
/datasets/git/./revision.h:31:19: note: expanded from macro 'TMP_MARK'
#define TMP_MARK        (1u<<4) /* for isolated cases; clean after use */
                         ^   ~
/datasets/git/remote.c:1467:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (ref = src; ref; ref = ref->next) {
        ^
/datasets/git/remote.c:1467:18: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (ref = src; ref; ref = ref->next) {
                        ^
/datasets/git/remote.c:1468:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!starts_with(ref->name, "refs/tags/"))
                                                          ^
                                                           {
/datasets/git/remote.c:1470:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (string_list_has_string(&dst_tag, ref->name))
                                                                ^
                                                                 {
/datasets/git/remote.c:1472:71: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (oid_object_info(the_repository, &ref->new_oid, NULL) != OBJ_TAG)
                                                                                    ^
                                                                                     {
/datasets/git/remote.c:1488:23: warning: variable 'found_commits' is not initialized [cppcoreguidelines-init-variables]
                struct commit_list *found_commits;
                                    ^
                                                  = NULL
/datasets/git/remote.c:1489:19: warning: variable 'src_commits' is not initialized [cppcoreguidelines-init-variables]
                struct commit **src_commits;
                                ^
                                            = NULL
/datasets/git/remote.c:1490:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int nr_src_commits = 0, alloc_src_commits = 16;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/remote.c:1444:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct string_list_item *item;
        ^
/datasets/git/remote.c:1490:47: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                int nr_src_commits = 0, alloc_src_commits = 16;
                                                            ^
/datasets/git/remote.c:1491:3: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                ALLOC_ARRAY(src_commits, alloc_src_commits);
                ^
/datasets/git/./git-compat-util.h:1090:53: note: expanded from macro 'ALLOC_ARRAY'
#define ALLOC_ARRAY(x, alloc) (x) = xmalloc(st_mult(sizeof(*(x)), (alloc)))
                                                    ^
/datasets/git/remote.c:1493:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
                for_each_string_list_item(item, &src_tag) {
                                          ^
/datasets/git/remote.c:1444:2: note: inferred assignment of ID-dependent value from ID-dependent 
        struct string_list_item *item;
        ^
/datasets/git/remote.c:1495:19: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
                        struct commit *commit;
                                       ^
                                              = NULL
/datasets/git/remote.c:1497:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (is_null_oid(&ref->new_oid))
                                                       ^
                                                        {
/datasets/git/remote.c:1502:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!commit)
                                    ^
                                     {
/datasets/git/remote.c:1506:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        ALLOC_GROW(src_commits, nr_src_commits + 1, alloc_src_commits);
                        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/remote.c:1506:4: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                        ALLOC_GROW(src_commits, nr_src_commits + 1, alloc_src_commits);
                        ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/remote.c:1514:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for_each_string_list_item(item, &src_tag) {
                ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/remote.c:1514:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
                for_each_string_list_item(item, &src_tag) {
                                          ^
/datasets/git/remote.c:1515:16: warning: variable 'dst_ref' is not initialized [cppcoreguidelines-init-variables]
                        struct ref *dst_ref;
                                    ^
                                            = NULL
/datasets/git/remote.c:1517:19: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
                        struct commit *commit;
                                       ^
                                              = NULL
/datasets/git/remote.c:1519:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (is_null_oid(&ref->new_oid))
                                                       ^
                                                        {
/datasets/git/remote.c:1524:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!commit)
                                    ^
                                     {
/datasets/git/remote.c:1532:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!(commit->object.flags & reachable_flag))
                              ^                      ~~~~~~~~~~~~~~
/datasets/git/remote.c:1532:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!(commit->object.flags & reachable_flag))
                                                                     ^
                                                                      {
/datasets/git/remote.c:1552:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for ( ; list; list = list->next)
        ^
/datasets/git/remote.c:1552:10: warning: backward branch (for loop) is ID-dependent due to variable reference to 'list' and may cause performance degradation [altera-id-dependent-backward-branch]
        for ( ; list; list = list->next)
                ^
/datasets/git/remote.c:1552:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for ( ; list; list = list->next)
                                        ^
                                         {
/datasets/git/remote.c:1553:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(list->name, name))
                                              ^
                                               {
/datasets/git/remote.c:1560:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for ( ; ref; ref = ref->next)
        ^
/datasets/git/remote.c:1560:10: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
        for ( ; ref; ref = ref->next)
                ^
/datasets/git/remote.c:1560:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for ( ; ref; ref = ref->next)
                                     ^
                                      {
/datasets/git/remote.c:1572:54: warning: parameter name 'rs' is too short, expected at least 3 characters [readability-identifier-length]
int check_push_refs(struct ref *src, struct refspec *rs)
                                                     ^
/datasets/git/remote.c:1575:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/remote.c:1575:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/remote.c:1577:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < rs->nr; i++) {
        ^
/datasets/git/remote.c:1580:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (item->pattern || item->matching || item->negative)
                                                                      ^
                                                                       {
/datasets/git/remote.c:1583:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ret |= match_explicit_lhs(src, item, NULL, NULL);
                ^~~
/datasets/git/remote.c:1597:5: warning: function 'match_push_refs' has cognitive complexity of 38 (threshold 25) [readability-function-cognitive-complexity]
int match_push_refs(struct ref *src, struct ref **dst,
    ^
/datasets/git/remote.c:1608:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!rs->nr)
        ^
/datasets/git/remote.c:1614:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (ref = src; ref; ref = ref->next) {
        ^
/datasets/git/remote.c:1621:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!dst_name)
                ^
/datasets/git/remote.c:1624:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!dst_ref_index.nr)
                ^
/datasets/git/remote.c:1628:23: note: +2, including nesting penalty of 1, nesting level increased to 2
                dst_peer = dst_item ? dst_item->util : NULL;
                                    ^
/datasets/git/remote.c:1629:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (dst_peer) {
                ^
/datasets/git/remote.c:1630:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (dst_peer->peer_ref)
                        ^
/datasets/git/remote.c:1633:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/remote.c:1634:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (pat->matching && !(send_all || send_mirror))
                        ^
/datasets/git/remote.c:1634:22: note: +1
                        if (pat->matching && !(send_all || send_mirror))
                                          ^
/datasets/git/remote.c:1634:36: note: +1
                        if (pat->matching && !(send_all || send_mirror))
                                                        ^
/datasets/git/remote.c:1656:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (flags & MATCH_REFS_FOLLOW_TAGS)
        ^
/datasets/git/remote.c:1659:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (send_prune) {
        ^
/datasets/git/remote.c:1662:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (ref = *dst; ref; ref = ref->next) {
                ^
/datasets/git/remote.c:1665:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ref->peer_ref)
                        ^
/datasets/git/remote.c:1670:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (src_name) {
                        ^
/datasets/git/remote.c:1671:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!src_ref_index.nr)
                                ^
/datasets/git/remote.c:1673:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!string_list_has_string(&src_ref_index,
                                ^
/datasets/git/remote.c:1684:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (errs)
        ^
/datasets/git/remote.c:1598:23: warning: parameter name 'rs' is too short, expected at least 3 characters [readability-identifier-length]
                    struct refspec *rs, int flags)
                                    ^
/datasets/git/remote.c:1600:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int send_all = flags & MATCH_REFS_ALL;
                       ^~~~~
/datasets/git/remote.c:1601:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int send_mirror = flags & MATCH_REFS_MIRROR;
                          ^~~~~
/datasets/git/remote.c:1602:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int send_prune = flags & MATCH_REFS_PRUNE;
                         ^~~~~
/datasets/git/remote.c:1603:6: warning: variable 'errs' is not initialized [cppcoreguidelines-init-variables]
        int errs;
            ^
                 = 0
/datasets/git/remote.c:1604:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct ref *ref, **dst_tail = tail_ref(dst);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/remote.c:1604:14: warning: variable 'ref' is not initialized [cppcoreguidelines-init-variables]
        struct ref *ref, **dst_tail = tail_ref(dst);
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/remote.c:1608:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!rs->nr)
                    ^
                     {
/datasets/git/remote.c:1614:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (ref = src; ref; ref = ref->next) {
        ^
/datasets/git/remote.c:1614:18: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (ref = src; ref; ref = ref->next) {
                        ^
/datasets/git/remote.c:1615:28: warning: variable 'dst_item' is not initialized [cppcoreguidelines-init-variables]
                struct string_list_item *dst_item;
                                         ^
                                                  = NULL
/datasets/git/remote.c:1616:15: warning: variable 'dst_peer' is not initialized [cppcoreguidelines-init-variables]
                struct ref *dst_peer;
                            ^
                                     = NULL
/datasets/git/remote.c:1618:9: warning: variable 'dst_name' is not initialized [cppcoreguidelines-init-variables]
                char *dst_name;
                      ^
                               = NULL
/datasets/git/remote.c:1621:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!dst_name)
                              ^
                               {
/datasets/git/remote.c:1624:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!dst_ref_index.nr)
                                      ^
                                       {
/datasets/git/remote.c:1630:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (dst_peer->peer_ref)
                                               ^
                                                {
/datasets/git/remote.c:1634:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (pat->matching && !(send_all || send_mirror))
                                                                        ^
                                                                         {
/datasets/git/remote.c:1656:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & MATCH_REFS_FOLLOW_TAGS)
            ^~~~~
/datasets/git/remote.c:1604:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct ref *ref, **dst_tail = tail_ref(dst);
        ^
/datasets/git/remote.c:1656:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & MATCH_REFS_FOLLOW_TAGS)
                                           ^
                                            {
/datasets/git/remote.c:1662:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (ref = *dst; ref; ref = ref->next) {
                ^
/datasets/git/remote.c:1662:20: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (ref = *dst; ref; ref = ref->next) {
                                 ^
/datasets/git/remote.c:1663:10: warning: variable 'src_name' is not initialized [cppcoreguidelines-init-variables]
                        char *src_name;
                              ^
                                       = NULL
/datasets/git/remote.c:1665:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ref->peer_ref)
                                          ^
                                           {
/datasets/git/remote.c:1671:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!src_ref_index.nr)
                                                      ^
                                                       {
/datasets/git/remote.c:1674:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                            src_name))
                                                      ^
                                                       {
/datasets/git/remote.c:1684:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (errs)
                 ^
                  {
/datasets/git/remote.c:1689:6: warning: function 'set_ref_status_for_push' has cognitive complexity of 29 (threshold 25) [readability-function-cognitive-complexity]
void set_ref_status_for_push(struct ref *remote_refs, int send_mirror,
     ^
/datasets/git/remote.c:1694:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (ref = remote_refs; ref; ref = ref->next) {
        ^
/datasets/git/remote.c:1695:37: note: +1
                int force_ref_update = ref->force || force_update;
                                                  ^
/datasets/git/remote.c:1698:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ref->peer_ref)
                ^
/datasets/git/remote.c:1700:8: note: +1, nesting level increased to 2
                else if (!send_mirror)
                     ^
/datasets/git/remote.c:1704:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!ref->deletion &&
                ^
/datasets/git/remote.c:1704:22: note: +1
                if (!ref->deletion &&
                                   ^
/datasets/git/remote.c:1723:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ref->expect_old_sha1) {
                ^
/datasets/git/remote.c:1724:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!oideq(&ref->old_oid, &ref->old_oid_expect))
                        ^
/datasets/git/remote.c:1726:9: note: +1, nesting level increased to 3
                        else if (ref->check_reachable && ref->unreachable)
                             ^
/datasets/git/remote.c:1726:34: note: +1
                        else if (ref->check_reachable && ref->unreachable)
                                                      ^
/datasets/git/remote.c:1729:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/remote.c:1759:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!reject_reason && !ref->deletion && !is_null_oid(&ref->old_oid)) {
                ^
/datasets/git/remote.c:1759:40: note: +1
                if (!reject_reason && !ref->deletion && !is_null_oid(&ref->old_oid)) {
                                                     ^
/datasets/git/remote.c:1760:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (starts_with(ref->name, "refs/tags/"))
                        ^
/datasets/git/remote.c:1762:9: note: +1, nesting level increased to 3
                        else if (!has_object_file(&ref->old_oid))
                             ^
/datasets/git/remote.c:1764:9: note: +1, nesting level increased to 3
                        else if (!lookup_commit_reference_gently(the_repository, &ref->old_oid, 1) ||
                             ^
/datasets/git/remote.c:1764:79: note: +1
                        else if (!lookup_commit_reference_gently(the_repository, &ref->old_oid, 1) ||
                                                                                                   ^
/datasets/git/remote.c:1767:9: note: +1, nesting level increased to 3
                        else if (!ref_newer(&ref->new_oid, &ref->old_oid))
                             ^
/datasets/git/remote.c:1775:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!force_ref_update)
                ^
/datasets/git/remote.c:1777:8: note: +1, nesting level increased to 2
                else if (reject_reason)
                     ^
/datasets/git/remote.c:1689:55: warning: 2 adjacent parameters of 'set_ref_status_for_push' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
void set_ref_status_for_push(struct ref *remote_refs, int send_mirror,
                                                      ^~~~~~~~~~~~~~~~
/datasets/git/remote.c:1689:59: note: the first parameter in the range is 'send_mirror'
void set_ref_status_for_push(struct ref *remote_refs, int send_mirror,
                                                          ^~~~~~~~~~~
/datasets/git/remote.c:1690:13: note: the last parameter in the range is 'force_update'
                             int force_update)
                                 ^~~~~~~~~~~~
/datasets/git/remote.c:1692:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct ref *ref;
        ^
/datasets/git/remote.c:1692:14: warning: variable 'ref' is not initialized [cppcoreguidelines-init-variables]
        struct ref *ref;
                    ^
                        = NULL
/datasets/git/remote.c:1694:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (ref = remote_refs; ref; ref = ref->next) {
        ^
/datasets/git/remote.c:1694:26: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (ref = remote_refs; ref; ref = ref->next) {
                                ^
/datasets/git/remote.c:1698:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ref->peer_ref)
                                  ^
                                   {
/datasets/git/remote.c:1700:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!send_mirror)
                                      ^
                                       {
/datasets/git/remote.c:1724:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!oideq(&ref->old_oid, &ref->old_oid_expect))
                                                                        ^
                                                                         {
/datasets/git/remote.c:1726:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (ref->check_reachable && ref->unreachable)
                                                                          ^
                                                                           {
/datasets/git/remote.c:1729:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/remote.c:1760:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (starts_with(ref->name, "refs/tags/"))
                                                                 ^
                                                                  {
/datasets/git/remote.c:1762:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (!has_object_file(&ref->old_oid))
                                                                 ^
                                                                  {
/datasets/git/remote.c:1765:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                 !lookup_commit_reference_gently(the_repository, &ref->new_oid, 1))
                                                                                                   ^
                                                                                                    {
/datasets/git/remote.c:1767:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (!ref_newer(&ref->new_oid, &ref->old_oid))
                                                                          ^
                                                                           {
/datasets/git/remote.c:1775:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!force_ref_update)
                                      ^
                                       {
/datasets/git/remote.c:1777:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (reject_reason)
                                       ^
                                        {
/datasets/git/remote.c:1784:17: warning: variable 'remote' is not initialized [cppcoreguidelines-init-variables]
        struct remote *remote;
                       ^
                              = NULL
/datasets/git/remote.c:1785:8: warning: variable 'ref' is not initialized [cppcoreguidelines-init-variables]
        char *ref;
              ^
                  = NULL
/datasets/git/remote.c:1787:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/remote.c:1787:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/remote.c:1789:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ret)
                 ^
                  {
/datasets/git/remote.c:1791:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret->merge)
                       ^
                        {
/datasets/git/remote.c:1804:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        CALLOC_ARRAY(ret->merge, ret->merge_nr);
        ^
/datasets/git/./git-compat-util.h:1091:55: note: expanded from macro 'CALLOC_ARRAY'
#define CALLOC_ARRAY(x, alloc) (x) = xcalloc((alloc), sizeof(*(x)))
                                                      ^
/datasets/git/remote.c:1805:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ret->merge_nr; i++) {
        ^
/datasets/git/remote.c:1809:7: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                    strcmp(ret->remote_name, "."))
                    ^
                                                  != 0
/datasets/git/remote.c:1809:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    strcmp(ret->remote_name, "."))
                                                  ^
                                                   {
/datasets/git/remote.c:1811:36: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                if (dwim_ref(ret->merge_name[i], strlen(ret->merge_name[i]),
                                                 ^
/datasets/git/remote.c:1812:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                             &oid, &ref, 0) == 1)
                                                 ^
                                                  {
/datasets/git/remote.c:1814:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/remote.c:1821:17: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        struct branch *ret;
                       ^
                           = NULL
/datasets/git/remote.c:1824:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!name || !*name || !strcmp(name, "HEAD"))
                                                     ^
                                                      {
/datasets/git/remote.c:1826:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/remote.c:1839:24: warning: parameter name 'i' is too short, expected at least 3 characters [readability-identifier-length]
                                 int i,
                                     ^
/datasets/git/remote.c:1842:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!branch || i < 0 || i >= branch->merge_nr)
                                                      ^
                                                       {
/datasets/git/remote.c:1851:11: warning: variable name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
                va_list ap;
                        ^
/datasets/git/remote.c:1861:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!branch)
                    ^
                     {
/datasets/git/remote.c:1870:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ref_exists(branch->refname))
                                                 ^
                                                  {
/datasets/git/remote.c:1878:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!branch->merge[0]->dst)
                                   ^
                                    {
/datasets/git/remote.c:1890:8: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        char *ret;
              ^
                  = NULL
/datasets/git/remote.c:1893:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ret)
                 ^
                  {
/datasets/git/remote.c:1903:17: warning: variable 'remote' is not initialized [cppcoreguidelines-init-variables]
        struct remote *remote;
                       ^
                              = NULL
/datasets/git/remote.c:1908:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!remote)
                    ^
                     {
/datasets/git/remote.c:1914:9: warning: variable 'dst' is not initialized [cppcoreguidelines-init-variables]
                char *dst;
                      ^
                          = NULL
/datasets/git/remote.c:1915:15: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
                const char *ret;
                            ^
                                = NULL
/datasets/git/remote.c:1918:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!dst)
                         ^
                          {
/datasets/git/remote.c:1928:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (remote->mirror)
                           ^
                            {
/datasets/git/remote.c:1931:2: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
        switch (push_default) {
        ^
/datasets/git/remote.c:1945:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        const char *up, *cur;
                        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/remote.c:1945:16: warning: variable 'up' is not initialized [cppcoreguidelines-init-variables]
                        const char *up, *cur;
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/remote.c:1945:16: warning: variable name 'up' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/remote.c:1945:21: warning: variable 'cur' is not initialized [cppcoreguidelines-init-variables]
                        const char *up, *cur;
                                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/remote.c:1948:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!up)
                                ^
                                 {
/datasets/git/remote.c:1951:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!cur)
                                 ^
                                  {
/datasets/git/remote.c:1953:8: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                        if (strcmp(cur, up))
                            ^
                                            != 0
/datasets/git/remote.c:1953:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (strcmp(cur, up))
                                            ^
                                             {
/datasets/git/remote.c:1968:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!branch)
                    ^
                     {
/datasets/git/remote.c:1971:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!branch->push_tracking_ref)
                                       ^
                                        {
/datasets/git/remote.c:1993:20: warning: variable 'ref' is not initialized [cppcoreguidelines-init-variables]
        const struct ref *ref;
                          ^
                              = NULL
/datasets/git/remote.c:1997:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (ref = remote_refs; ref; ref = ref->next) {
        ^
/datasets/git/remote.c:1997:26: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (ref = remote_refs; ref; ref = ref->next) {
                                ^
/datasets/git/remote.c:2002:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strchr(ref->name, '^'))
                                           ^
                                            {
/datasets/git/remote.c:2010:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (refspec->force)
                                           ^
                                            {
/datasets/git/remote.c:2024:20: warning: variable 'ref' is not initialized [cppcoreguidelines-init-variables]
        const struct ref *ref;
                          ^
                              = NULL
/datasets/git/remote.c:2028:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (ref = refs; ref; ref = ref->next) {
        ^
/datasets/git/remote.c:2028:19: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (ref = refs; ref; ref = ref->next) {
                         ^
/datasets/git/remote.c:2043:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ref)
                 ^
                  {
/datasets/git/remote.c:2051:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!name || name[0] == '\0')
                                     ^
                                      {
/datasets/git/remote.c:2054:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (starts_with(name, "refs/"))
                                       ^
                                        {
/datasets/git/remote.c:2059:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            starts_with(name, "remotes/"))
                                          ^
                                           {
/datasets/git/remote.c:2060:41: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                return alloc_ref_with_prefix("refs/", 5, name);
                                                      ^
/datasets/git/remote.c:2062:46: warning: 11 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        return alloc_ref_with_prefix("refs/heads/", 11, name);
                                                    ^
/datasets/git/remote.c:2070:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct ref *ref_map, **rmp;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/remote.c:2070:14: warning: variable 'ref_map' is not initialized [cppcoreguidelines-init-variables]
        struct ref *ref_map, **rmp;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/remote.c:2070:25: warning: variable 'rmp' is not initialized [cppcoreguidelines-init-variables]
        struct ref *ref_map, **rmp;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/remote.c:2072:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (refspec->negative)
                              ^
                               {
/datasets/git/remote.c:2087:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!missing_ok && !ref_map)
                                            ^
                                             {
/datasets/git/remote.c:2091:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ref_map->peer_ref && refspec->force)
                                                                ^
                                                                 {
/datasets/git/remote.c:2096:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (rmp = &ref_map; *rmp; ) {
        ^
/datasets/git/remote.c:2096:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 'rmp' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (rmp = &ref_map; *rmp; ) {
                             ^
/datasets/git/remote.c:2112:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ref_map)
                    ^
                     {
/datasets/git/remote.c:2120:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ref->symref)
                         ^
                          {
/datasets/git/remote.c:2122:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; list; list = list->next)
        ^
/datasets/git/remote.c:2122:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'list' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; list; list = list->next)
               ^
/datasets/git/remote.c:2122:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (; list; list = list->next)
                                       ^
                                        {
/datasets/git/remote.c:2148:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit *ours, *theirs;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/remote.c:2148:17: warning: variable 'ours' is not initialized [cppcoreguidelines-init-variables]
        struct commit *ours, *theirs;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/remote.c:2148:24: warning: variable 'theirs' is not initialized [cppcoreguidelines-init-variables]
        struct commit *ours, *theirs;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/remote.c:2156:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (read_ref(base, &oid))
                                 ^
                                  {
/datasets/git/remote.c:2159:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!theirs)
                    ^
                     {
/datasets/git/remote.c:2162:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (read_ref(branch_name, &oid))
                                        ^
                                         {
/datasets/git/remote.c:2165:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ours)
                  ^
                   {
/datasets/git/remote.c:2171:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (theirs == ours)
                           ^
                            {
/datasets/git/remote.c:2173:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (abf == AHEAD_BEHIND_QUICK)
                                      ^
                                       {
/datasets/git/remote.c:2175:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (abf != AHEAD_BEHIND_FULL)
                                     ^
                                      {
/datasets/git/remote.c:2187:18: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        setup_revisions(argv.nr, argv.v, &revs, &opt);
                        ^
/datasets/git/remote.c:2188:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prepare_revision_walk(&revs))
                                         ^
                                          {
/datasets/git/remote.c:2192:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/remote.c:2193:18: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                struct commit *c = get_revision(&revs);
                               ^
/datasets/git/remote.c:2194:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!c)
                       ^
                        {
/datasets/git/remote.c:2196:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (c->object.flags & SYMMETRIC_LEFT)
                                      ^
/datasets/git/./revision.h:35:25: note: expanded from macro 'SYMMETRIC_LEFT'
#define SYMMETRIC_LEFT  (1u<<8)
                         ^   ~
/datasets/git/remote.c:2196:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (c->object.flags & SYMMETRIC_LEFT)
                                                     ^
                                                      {
/datasets/git/remote.c:2198:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/remote.c:2203:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        clear_commit_marks(ours, ALL_REV_FLAGS);
                                 ^
/datasets/git/./revision.h:52:26: note: expanded from macro 'ALL_REV_FLAGS'
#define ALL_REV_FLAGS   (((1u<<11)-1) | NOT_USER_GIVEN | TRACK_LINEAR | PULL_MERGE)
                           ^   ~~
/datasets/git/remote.c:2204:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        clear_commit_marks(theirs, ALL_REV_FLAGS);
                                   ^
/datasets/git/./revision.h:52:26: note: expanded from macro 'ALL_REV_FLAGS'
#define ALL_REV_FLAGS   (((1u<<11)-1) | NOT_USER_GIVEN | TRACK_LINEAR | PULL_MERGE)
                           ^   ~~
/datasets/git/remote.c:2231:38: warning: 2 adjacent parameters of 'stat_tracking_info' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                       const char **tracking_name, int for_push,
                                                   ^~~~~~~~~~~~~
/datasets/git/remote.c:2231:42: note: the first parameter in the range is 'for_push'
                       const char **tracking_name, int for_push,
                                                       ^~~~~~~~
/datasets/git/remote.c:2232:34: note: the last parameter in the range is 'abf'
                       enum ahead_behind_flags abf)
                                               ^~~
/datasets/git/remote.c:2232:10: note: 'int' and 'enum ahead_behind_flags' may be implicitly converted
                       enum ahead_behind_flags abf)
                       ^
/datasets/git/remote.c:2234:14: warning: variable 'base' is not initialized [cppcoreguidelines-init-variables]
        const char *base;
                    ^
                         = NULL
/datasets/git/remote.c:2239:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (tracking_name)
                          ^
                           {
/datasets/git/remote.c:2241:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!base)
                  ^
                   {
/datasets/git/remote.c:2250:64: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
int format_tracking_info(struct branch *branch, struct strbuf *sb,
                                                               ^
/datasets/git/remote.c:2253:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int ours, theirs, sti;
        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/remote.c:2253:6: warning: variable 'ours' is not initialized [cppcoreguidelines-init-variables]
        int ours, theirs, sti;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/remote.c:2253:12: warning: variable 'theirs' is not initialized [cppcoreguidelines-init-variables]
        int ours, theirs, sti;
                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/remote.c:2253:20: warning: variable 'sti' is not initialized [cppcoreguidelines-init-variables]
        int ours, theirs, sti;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/remote.c:2254:14: warning: variable 'full_base' is not initialized [cppcoreguidelines-init-variables]
        const char *full_base;
                    ^
                              = NULL
/datasets/git/remote.c:2255:8: warning: variable 'base' is not initialized [cppcoreguidelines-init-variables]
        char *base;
              ^
                   = NULL
/datasets/git/remote.c:2260:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!full_base)
                               ^
                                {
/datasets/git/remote.c:2270:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (advice_enabled(ADVICE_STATUS_HINTS))
                                                        ^
                                                         {
/datasets/git/remote.c:2281:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (advice_enabled(ADVICE_STATUS_HINTS))
                                                        ^
                                                         {
/datasets/git/remote.c:2290:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (advice_enabled(ADVICE_STATUS_HINTS))
                                                        ^
                                                         {
/datasets/git/remote.c:2301:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (advice_enabled(ADVICE_STATUS_HINTS))
                                                        ^
                                                         {
/datasets/git/remote.c:2314:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (advice_enabled(ADVICE_STATUS_HINTS))
                                                        ^
                                                         {
/datasets/git/remote.c:2327:14: warning: variable 'ref' is not initialized [cppcoreguidelines-init-variables]
        struct ref *ref;
                    ^
                        = NULL
/datasets/git/remote.c:2330:37: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (check_refname_format(refname + 5, 0))
                                           ^
/datasets/git/remote.c:2330:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (check_refname_format(refname + 5, 0))
                                                 ^
                                                  {
/datasets/git/remote.c:2342:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct ref *local_refs = NULL, **local_tail = &local_refs;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/remote.c:2352:20: warning: variable 'r' is not initialized [cppcoreguidelines-init-variables]
        const struct ref *r;
                          ^
                            = NULL
/datasets/git/remote.c:2352:20: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/remote.c:2356:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!head)
                  ^
                   {
/datasets/git/remote.c:2364:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (head->symref)
                         ^
                          {
/datasets/git/remote.c:2374:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (r && oideq(&r->old_oid, &head->old_oid))
                                                            ^
                                                             {
/datasets/git/remote.c:2379:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (r && oideq(&r->old_oid, &head->old_oid))
                                                            ^
                                                             {
/datasets/git/remote.c:2384:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (r = refs; r; r = r->next) {
        ^
/datasets/git/remote.c:2384:17: warning: backward branch (for loop) is ID-dependent due to variable reference to 'r' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (r = refs; r; r = r->next) {
                       ^
/datasets/git/remote.c:2390:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!all)
                                 ^
                                  {
/datasets/git/remote.c:2398:8: warning: accessing fields in struct 'stale_heads_info' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct stale_heads_info {
       ^
/datasets/git/remote.c:2398:8: note: use "__attribute__((aligned(32)))" to align struct 'stale_heads_info' to 32 bytes
/datasets/git/remote.c:2410:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, stale = 1;
        ^~~~~~~~~~~~~~~~~
/datasets/git/remote.c:2410:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, stale = 1;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/remote.c:2410:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/remote.c:2411:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&query, 0, sizeof(struct refspec_item));
        ^~~~~~
/datasets/git/remote.c:2411:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&query, 0, sizeof(struct refspec_item));
        ^~~~~~
/datasets/git/remote.c:2415:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (matches.nr == 0)
                            ^
                             {
/datasets/git/remote.c:2425:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & REF_ISSYMREF)
            ^~~~~
/datasets/git/remote.c:2425:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & REF_ISSYMREF)
                                 ^
                                  {
/datasets/git/remote.c:2428:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; stale && i < matches.nr; i++)
        ^
/datasets/git/remote.c:2428:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; stale && i < matches.nr; i++)
                                                 ^
                                                  {
/datasets/git/remote.c:2429:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (string_list_has_string(info->ref_names, matches.items[i].string))
                                                                                     ^
                                                                                      {
/datasets/git/remote.c:2442:45: warning: parameter name 'rs' is too short, expected at least 3 characters [readability-identifier-length]
struct ref *get_stale_heads(struct refspec *rs, struct ref *fetch_map)
                                            ^
/datasets/git/remote.c:2444:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct ref *ref, *stale_refs = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/remote.c:2444:14: warning: variable 'ref' is not initialized [cppcoreguidelines-init-variables]
        struct ref *ref, *stale_refs = NULL;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/remote.c:2451:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (ref = fetch_map; ref; ref = ref->next)
        ^
/datasets/git/remote.c:2451:24: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (ref = fetch_map; ref; ref = ref->next)
                              ^
/datasets/git/remote.c:2451:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (ref = fetch_map; ref; ref = ref->next)
                                                   ^
                                                    {
/datasets/git/remote.c:2464:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/remote.c:2464:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/remote.c:2466:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < cas->nr; i++)
        ^
/datasets/git/remote.c:2466:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < cas->nr; i++)
                                     ^
                                      {
/datasets/git/remote.c:2469:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(cas, 0, sizeof(*cas));
        ^~~~~~
/datasets/git/remote.c:2469:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(cas, 0, sizeof(*cas));
        ^~~~~~
/datasets/git/remote.c:2476:19: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
        struct push_cas *entry;
                         ^
                               = NULL
/datasets/git/remote.c:2477:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(cas->entry, cas->nr + 1, cas->alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/remote.c:2479:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(entry, 0, sizeof(*entry));
        ^~~~~~
/datasets/git/remote.c:2479:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(entry, 0, sizeof(*entry));
        ^~~~~~
/datasets/git/remote.c:2486:14: warning: variable 'colon' is not initialized [cppcoreguidelines-init-variables]
        const char *colon;
                    ^
                          = NULL
/datasets/git/remote.c:2487:19: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
        struct push_cas *entry;
                         ^
                               = NULL
/datasets/git/remote.c:2504:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!*colon)
                    ^
                     {
/datasets/git/remote.c:2506:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!colon[1])
                           ^
                            {
/datasets/git/remote.c:2508:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (get_oid(colon + 1, &entry->expect))
                                                    ^
                                                     {
/datasets/git/remote.c:2534:8: warning: variable 'dst' is not initialized [cppcoreguidelines-init-variables]
        char *dst;
              ^
                  = NULL
/datasets/git/remote.c:2537:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!dst)
                 ^
                  {
/datasets/git/remote.c:2539:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (read_ref(dst, oid))
                               ^
                                {
/datasets/git/remote.c:2551:8: warning: accessing fields in struct 'reflog_commit_array' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct reflog_commit_array {
       ^
/datasets/git/remote.c:2551:8: note: use "__attribute__((aligned(32)))" to align struct 'reflog_commit_array' to 32 bytes
/datasets/git/remote.c:2562:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(arr->item, arr->nr + 1, arr->alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/remote.c:2562:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_GROW(arr->item, arr->nr + 1, arr->alloc);
        ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/remote.c:2569:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(arr->item);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/remote.c:2573:8: warning: accessing fields in struct 'check_and_collect_until_cb_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct check_and_collect_until_cb_data {
       ^
/datasets/git/remote.c:2573:8: note: use "__attribute__((aligned(32)))" to align struct 'check_and_collect_until_cb_data' to 32 bytes
/datasets/git/remote.c:2583:10: warning: 2 adjacent parameters of 'peek_reflog' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                       timestamp_t timestamp, int tz UNUSED,
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/remote.c:2583:22: note: the first parameter in the range is 'timestamp'
                       timestamp_t timestamp, int tz UNUSED,
                                   ^~~~~~~~~
/datasets/git/remote.c:2583:37: note: the last parameter in the range is 'tz'
                       timestamp_t timestamp, int tz UNUSED,
                                                  ^~
/datasets/git/remote.c:2583:10: note: 
                       timestamp_t timestamp, int tz UNUSED,
                       ^
/datasets/git/remote.c:2583:33: note: 'timestamp_t' and 'int' may be implicitly converted: 'timestamp_t' (as 'unsigned long') -> 'int', 'int' -> 'timestamp_t' (as 'unsigned long')
                       timestamp_t timestamp, int tz UNUSED,
                                              ^
/datasets/git/remote.c:2583:37: warning: parameter name 'tz' is too short, expected at least 3 characters [readability-identifier-length]
                       timestamp_t timestamp, int tz UNUSED,
                                                  ^
/datasets/git/remote.c:2586:15: warning: variable name 'ts' is too short, expected at least 3 characters [readability-identifier-length]
        timestamp_t *ts = cb_data;
                     ^
/datasets/git/remote.c:2594:8: warning: 2 adjacent parameters of 'check_and_collect_until' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                   timestamp_t timestamp, int tz UNUSED,
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/remote.c:2594:20: note: the first parameter in the range is 'timestamp'
                                   timestamp_t timestamp, int tz UNUSED,
                                               ^~~~~~~~~
/datasets/git/remote.c:2594:35: note: the last parameter in the range is 'tz'
                                   timestamp_t timestamp, int tz UNUSED,
                                                              ^~
/datasets/git/remote.c:2594:8: note: 
                                   timestamp_t timestamp, int tz UNUSED,
                                   ^
/datasets/git/remote.c:2594:31: note: 'timestamp_t' and 'int' may be implicitly converted: 'timestamp_t' (as 'unsigned long') -> 'int', 'int' -> 'timestamp_t' (as 'unsigned long')
                                   timestamp_t timestamp, int tz UNUSED,
                                                          ^
/datasets/git/remote.c:2594:35: warning: parameter name 'tz' is too short, expected at least 3 characters [readability-identifier-length]
                                   timestamp_t timestamp, int tz UNUSED,
                                                              ^
/datasets/git/remote.c:2597:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/remote.c:2598:42: warning: variable name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
        struct check_and_collect_until_cb_data *cb = cb_data;
                                                ^
/datasets/git/remote.c:2601:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oideq(n_oid, &cb->remote_commit->object.oid))
                                                         ^
                                                          {
/datasets/git/remote.c:2604:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if ((commit = lookup_commit_reference(the_repository, n_oid)))
             ^
/datasets/git/remote.c:2604:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/remote.c:2604:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/remote.c:2604:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((commit = lookup_commit_reference(the_repository, n_oid)))
                                                                      ^
                                                                       {
/datasets/git/remote.c:2612:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (timestamp < cb->remote_reflog_timestamp)
                                                    ^
                                                     {
/datasets/git/remote.c:2618:1: warning: replace macro with enum [modernize-macro-to-enum]
#define MERGE_BASES_BATCH_SIZE 8
^~~~~~~~
                               =
/datasets/git/remote.c:2618:9: warning: macro 'MERGE_BASES_BATCH_SIZE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define MERGE_BASES_BATCH_SIZE 8
        ^
/datasets/git/remote.c:2629:14: warning: variable 'date' is not initialized [cppcoreguidelines-init-variables]
        timestamp_t date;
                    ^
                         = 0
/datasets/git/remote.c:2630:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/remote.c:2631:18: warning: variable 'chunk' is not initialized [cppcoreguidelines-init-variables]
        struct commit **chunk;
                        ^
                              = NULL
/datasets/git/remote.c:2632:41: warning: variable name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
        struct check_and_collect_until_cb_data cb;
                                               ^
/datasets/git/remote.c:2638:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!commit)
                    ^
                     {
/datasets/git/remote.c:2653:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret > 0)
                    ^
                     {
/datasets/git/remote.c:2660:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (chunk = arr.item; chunk < arr.item + arr.nr; chunk += size) {
        ^
/datasets/git/remote.c:2660:25: warning: backward branch (for loop) is ID-dependent due to variable reference to 'chunk' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (chunk = arr.item; chunk < arr.item + arr.nr; chunk += size) {
                               ^
/datasets/git/remote.c:2662:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (MERGE_BASES_BATCH_SIZE < size)
                                                  ^
                                                   {
/datasets/git/remote.c:2665:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                if ((ret = in_merge_bases_many(commit, size, chunk)))
                     ^
/datasets/git/remote.c:2665:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/remote.c:2665:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/remote.c:2665:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((ret = in_merge_bases_many(commit, size, chunk)))
                                                                     ^
                                                                      {
/datasets/git/remote.c:2681:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!local)
                   ^
                    {
/datasets/git/remote.c:2684:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_reachable_in_reflog(local->name, remote) <= 0)
                                                             ^
                                                              {
/datasets/git/remote.c:2692:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/remote.c:2692:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/remote.c:2695:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < cas->nr; i++) {
        ^
/datasets/git/remote.c:2697:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!refname_match(entry->refname, ref->name))
                                                              ^
                                                               {
/datasets/git/remote.c:2700:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!entry->use_tracking)
                                         ^
                                          {
/datasets/git/remote.c:2704:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                         &ref->tracking_ref))
                                                             ^
                                                              {
/datasets/git/remote.c:2706:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/remote.c:2712:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!cas->use_tracking_for_rest)
                                        ^
                                         {
/datasets/git/remote.c:2718:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            &ref->tracking_ref))
                                                ^
                                                 {
/datasets/git/remote.c:2720:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/remote.c:2728:14: warning: variable 'ref' is not initialized [cppcoreguidelines-init-variables]
        struct ref *ref;
                    ^
                        = NULL
/datasets/git/remote.c:2729:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (ref = remote_refs; ref; ref = ref->next) {
        ^
/datasets/git/remote.c:2729:26: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (ref = remote_refs; ref; ref = ref->next) {
                                ^
/datasets/git/remote.c:2737:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ref->check_reachable)
                                         ^
                                          {
/datasets/git/remote.c:2744:23: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        struct remote_state *r = xmalloc(sizeof(*r));
                             ^
/datasets/git/remote.c:2746:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(r, 0, sizeof(*r));
        ^~~~~~
/datasets/git/remote.c:2746:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(r, 0, sizeof(*r));
        ^~~~~~
/datasets/git/remote.c:2755:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/remote.c:2755:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/remote.c:2757:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < remote_state->remotes_nr; i++)
        ^
/datasets/git/remote.c:2757:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < remote_state->remotes_nr; i++)
                                                      ^
                                                       {
/datasets/git/remote.c:2759:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(remote_state->remotes);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/remote.c:2784:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_relative || !strcmp(".", *remoteurl))
                                                    ^
                                                     {
/datasets/git/remote.c:2793:44: warning: 2 adjacent parameters of 'relative_url' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
char *relative_url(const char *remote_url, const char *url,
                                           ^~~~~~~~~~~~~~~~
/datasets/git/remote.c:2793:56: note: the first parameter in the range is 'url'
char *relative_url(const char *remote_url, const char *url,
                                                       ^~~
/datasets/git/remote.c:2794:18: note: the last parameter in the range is 'up_path'
                   const char *up_path)
                               ^~~~~~~
/datasets/git/remote.c:2798:8: warning: variable 'out' is not initialized [cppcoreguidelines-init-variables]
        char *out;
              ^
                  = NULL
/datasets/git/remote.c:2799:8: warning: variable 'remoteurl' is not initialized [cppcoreguidelines-init-variables]
        char *remoteurl;
              ^
                        = NULL
/datasets/git/remote.c:2800:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/remote.c:2801:9: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        size_t len;
               ^
                   = 0
/datasets/git/remote.c:2803:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!url_is_local_not_ssh(url) || is_absolute_path(url))
                                                                ^
                                                                 {
/datasets/git/remote.c:2807:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!len)
                 ^
                  {
/datasets/git/remote.c:2811:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_dir_sep(remoteurl[len-1]))
                                         ^
                                          {
/datasets/git/remote.c:2814:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!url_is_local_not_ssh(remoteurl) || is_absolute_path(remoteurl))
                                                                            ^
                                                                             {
/datasets/git/remote.c:2834:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*url) {
        ^
/datasets/git/remote.c:2837:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        colonsep |= chop_last_dir(&remoteurl, is_relative);
                        ^~~~~~~~
/datasets/git/remote.c:2838:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else if (starts_with_dot_slash_native(url))
                                                             ^
                                                              {
/datasets/git/remote.c:2840:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/remote.c:2845:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ends_with(url, "/"))
                                ^
                                 {
/datasets/git/remote.c:2849:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (starts_with_dot_slash_native(sb.buf))
                                                 ^
                                                  {
/datasets/git/remote.c:2851:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/replace-object.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "oidmap.h"
^        ~~~~~~~~~~
         "commit.h"
/datasets/git/replace-object.c:9:52: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int register_replace_ref(struct repository *r,
                                                   ^
/datasets/git/replace-object.c:30:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oidmap_put(r->objects->replace_map, repl_obj))
                                                          ^
                                                           {
/datasets/git/replace-object.c:36:48: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void prepare_replace_object(struct repository *r)
                                               ^
/datasets/git/replace-object.c:38:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (r->objects->replace_map_initialized)
                                                ^
                                                 {
/datasets/git/replace-object.c:58:1: warning: replace macro with enum [modernize-macro-to-enum]
#define MAXREPLACEDEPTH 5
^~~~~~~~
                        =
/datasets/git/replace-object.c:58:9: warning: macro 'MAXREPLACEDEPTH' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define MAXREPLACEDEPTH 5
        ^
/datasets/git/replace-object.c:67:69: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
const struct object_id *do_lookup_replace_object(struct repository *r,
                                                                    ^
/datasets/git/replace-object.c:76:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (depth-- > 0) {
        ^
/datasets/git/replace-object.c:79:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!repl_obj)
                              ^
                               {
/datasets/git/repo-settings.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "compat/fsmonitor/fsm-listen.h"
/datasets/git/repo-settings.c:7:46: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void repo_cfg_bool(struct repository *r, const char *key, int *dest,
                                             ^
/datasets/git/repo-settings.c:10:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_config_get_bool(r, key, dest))
                                               ^
                                                {
/datasets/git/repo-settings.c:14:45: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void repo_cfg_int(struct repository *r, const char *key, int *dest,
                                            ^
/datasets/git/repo-settings.c:17:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_config_get_int(r, key, dest))
                                              ^
                                               {
/datasets/git/repo-settings.c:21:47: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void prepare_repo_settings(struct repository *r)
                                              ^
/datasets/git/repo-settings.c:23:6: warning: variable 'experimental' is not initialized [cppcoreguidelines-init-variables]
        int experimental;
            ^
                         = 0
/datasets/git/repo-settings.c:24:6: warning: variable 'value' is not initialized [cppcoreguidelines-init-variables]
        int value;
            ^
                  = 0
/datasets/git/repo-settings.c:25:14: warning: variable 'strval' is not initialized [cppcoreguidelines-init-variables]
        const char *strval;
                    ^
                           = NULL
/datasets/git/repo-settings.c:26:6: warning: variable 'manyfiles' is not initialized [cppcoreguidelines-init-variables]
        int manyfiles;
            ^
                      = 0
/datasets/git/repo-settings.c:28:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!r->gitdir)
                       ^
                        {
/datasets/git/repo-settings.c:31:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (r->settings.initialized++)
                                      ^
                                       {
/datasets/git/repo-settings.c:72:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (git_env_bool(GIT_TEST_MULTI_PACK_INDEX, 0))
                                                       ^
                                                        {
/datasets/git/repo-settings.c:78:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!repo_config_get_int(r, "index.version", &value))
                                                             ^
                                                              {
/datasets/git/repo-settings.c:82:7: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
                int v = git_parse_maybe_bool(strval);
                    ^
/datasets/git/repo-settings.c:89:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (v >= 0)
                           ^
                            {
/datasets/git/repo-settings.c:96:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcasecmp(strval, "skipping"))
                                                    ^
                                                     {
/datasets/git/repo-settings.c:98:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcasecmp(strval, "noop"))
                                                     ^
                                                      {
/datasets/git/repo-settings.c:100:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcasecmp(strval, "consecutive"))
                                                            ^
                                                             {
/datasets/git/repo-settings.c:102:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcasecmp(strval, "default"))
                                                        ^
                                                         {
/datasets/git/repo-settings.c:104:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/repository.c:7:1: warning: #includes are not sorted properly [llvm-include-order]
#include "repository.h"
^        ~~~~~~~~~~~~~~
         "config.h"
/datasets/git/repository.c:18:26: warning: variable 'the_repo' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct repository the_repo;
                         ^
/datasets/git/repository.c:19:20: warning: variable 'the_repository' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
struct repository *the_repository;
                   ^
/datasets/git/repository.c:19:20: warning: variable 'the_repository' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/repository.c:20:20: warning: variable 'the_index' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
struct index_state the_index;
                   ^
/datasets/git/repository.c:34:41: warning: 2 adjacent parameters of 'expand_base_dir' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void expand_base_dir(char **out, const char *in,
                                        ^~~~~~~~~~~~~~~
/datasets/git/repository.c:34:53: note: the first parameter in the range is 'in'
static void expand_base_dir(char **out, const char *in,
                                                    ^~
/datasets/git/repository.c:35:20: note: the last parameter in the range is 'base_dir'
                            const char *base_dir, const char *def_in)
                                        ^~~~~~~~
/datasets/git/repository.c:34:53: warning: parameter name 'in' is too short, expected at least 3 characters [readability-identifier-length]
static void expand_base_dir(char **out, const char *in,
                                                    ^
/datasets/git/repository.c:38:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (in)
               ^
                {
/datasets/git/repository.c:40:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/repository.c:47:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/repository.c:63:38: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                     const struct set_gitdir_args *o)
                                                   ^
/datasets/git/repository.c:109:14: warning: variable 'resolved_gitdir' is not initialized [cppcoreguidelines-init-variables]
        const char *resolved_gitdir;
                    ^
                                    = NULL
/datasets/git/repository.c:143:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/repository.c:163:8: warning: 2 adjacent parameters of 'repo_init' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
              const char *gitdir,
              ^~~~~~~~~~~~~~~~~~~
/datasets/git/repository.c:163:20: note: the first parameter in the range is 'gitdir'
              const char *gitdir,
                          ^~~~~~
/datasets/git/repository.c:164:20: note: the last parameter in the range is 'worktree'
              const char *worktree)
                          ^~~~~~~~
/datasets/git/repository.c:167:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(repo, 0, sizeof(*repo));
        ^~~~~~
/datasets/git/repository.c:167:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(repo, 0, sizeof(*repo));
        ^~~~~~
/datasets/git/repository.c:173:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_init_gitdir(repo, gitdir))
                                           ^
                                            {
/datasets/git/repository.c:176:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (read_and_verify_repository_format(&format, repo->commondir))
                                                                        ^
                                                                         {
/datasets/git/repository.c:185:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (worktree)
                     ^
                      {
/datasets/git/repository.c:245:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(cache->squash_msg);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/repository.c:246:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(cache->squash_msg);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/repository.c:247:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(cache->merge_msg);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/repository.c:248:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(cache->merge_rr);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/repository.c:249:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(cache->merge_mode);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/repository.c:250:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(cache->merge_head);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/repository.c:251:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(cache->merge_autostash);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/repository.c:252:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(cache->auto_merge);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/repository.c:253:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(cache->fetch_head);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/repository.c:254:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(cache->shallow);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/repository.c:259:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(repo->gitdir);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/repository.c:260:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(repo->commondir);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/repository.c:261:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(repo->graft_file);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/repository.c:262:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(repo->index_file);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/repository.c:263:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(repo->worktree);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/repository.c:264:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(repo->submodule_prefix);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/repository.c:267:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(repo->objects);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/repository.c:270:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(repo->parsed_objects);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/repository.c:274:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FREE_AND_NULL(repo->config);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/repository.c:284:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (repo->index != &the_index)
                                              ^
                                               {
/datasets/git/repository.c:285:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        FREE_AND_NULL(repo->index);
                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/repository.c:290:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FREE_AND_NULL(repo->promisor_remote_config);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/repository.c:295:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FREE_AND_NULL(repo->remote_state);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/repository.c:303:6: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        int res;
            ^
                = 0
/datasets/git/repository.c:305:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!repo->index)
                         ^
                          {
/datasets/git/repository.c:309:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!repo->index->repo)
                               ^
                                {
/datasets/git/repository.c:311:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (repo->index->repo != repo)
                                           ^
                                            {
/datasets/git/repository.c:317:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo->settings.command_requires_full_index)
                                                       ^
                                                        {
/datasets/git/repository.c:331:25: warning: parameter name 'lf' is too short, expected at least 3 characters [readability-identifier-length]
                           struct lock_file *lf,
                                             ^
/datasets/git/repository.c:334:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!repo->index_file)
                              ^
                               {
/datasets/git/rerere.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "attr.h"
/datasets/git/rerere.c:16:1: warning: replace macro with enum [modernize-macro-to-enum]
#define RESOLVED 0
^~~~~~~~
                 =,
/datasets/git/rerere.c:16:9: warning: macro 'RESOLVED' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define RESOLVED 0
        ^
/datasets/git/rerere.c:17:9: warning: macro 'PUNTED' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define PUNTED 1
        ^
/datasets/git/rerere.c:18:9: warning: macro 'THREE_STAGED' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define THREE_STAGED 2
        ^
/datasets/git/rerere.c:19:7: warning: variable 'RERERE_RESOLVED' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
void *RERERE_RESOLVED = &RERERE_RESOLVED;
      ^
/datasets/git/rerere.c:19:7: warning: variable 'RERERE_RESOLVED' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/rerere.c:22:12: warning: variable 'rerere_enabled' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int rerere_enabled = -1;
           ^
/datasets/git/rerere.c:25:12: warning: variable 'rerere_autoupdate' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int rerere_autoupdate;
           ^
/datasets/git/rerere.c:27:1: warning: replace macro with enum [modernize-macro-to-enum]
#define RR_HAS_POSTIMAGE 1
^~~~~~~~
                         =,
/datasets/git/rerere.c:27:9: warning: macro 'RR_HAS_POSTIMAGE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define RR_HAS_POSTIMAGE 1
        ^
/datasets/git/rerere.c:28:9: warning: macro 'RR_HAS_PREIMAGE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define RR_HAS_PREIMAGE 2
        ^
/datasets/git/rerere.c:35:22: warning: variable 'rerere_dirs' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct strmap rerere_dirs = STRMAP_INIT;
                     ^
/datasets/git/rerere.c:40:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct strmap_entry *ent;
        ^
/datasets/git/rerere.c:40:23: warning: variable 'ent' is not initialized [cppcoreguidelines-init-variables]
        struct strmap_entry *ent;
                             ^
                                 = NULL
/datasets/git/rerere.c:42:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        strmap_for_each_entry(&rerere_dirs, &iter, ent) {
        ^
/datasets/git/./strmap.h:112:2: note: expanded from macro 'strmap_for_each_entry'
        hashmap_for_each_entry(&(mystrmap)->map, iter, var, ent)
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/rerere.c:42:45: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ent' and may cause performance degradation [altera-id-dependent-backward-branch]
        strmap_for_each_entry(&rerere_dirs, &iter, ent) {
                                                   ^
/datasets/git/rerere.c:55:58: warning: parameter name 'id' is too short, expected at least 3 characters [readability-identifier-length]
static const char *rerere_id_hex(const struct rerere_id *id)
                                                         ^
/datasets/git/rerere.c:63:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(rr_dir->status, variant, rr_dir->status_alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/rerere.c:65:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(rr_dir->status + rr_dir->status_nr,
                ^~~~~~
/datasets/git/rerere.c:65:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(rr_dir->status + rr_dir->status_nr,
                ^~~~~~
/datasets/git/rerere.c:71:46: warning: parameter name 'id' is too short, expected at least 3 characters [readability-identifier-length]
static void assign_variant(struct rerere_id *id)
                                             ^
/datasets/git/rerere.c:73:6: warning: variable 'variant' is not initialized [cppcoreguidelines-init-variables]
        int variant;
            ^
                    = 0
/datasets/git/rerere.c:78:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (variant = 0; variant < rr_dir->status_nr; variant++)
                ^
/datasets/git/rerere.c:78:21: warning: backward branch (for loop) is ID-dependent due to variable reference to 'variant' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (variant = 0; variant < rr_dir->status_nr; variant++)
                                  ^
/datasets/git/rerere.c:78:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (variant = 0; variant < rr_dir->status_nr; variant++)
                                                                         ^
                                                                          {
/datasets/git/rerere.c:79:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!rr_dir->status[variant])
                                                     ^
                                                      {
/datasets/git/rerere.c:86:49: warning: parameter name 'id' is too short, expected at least 3 characters [readability-identifier-length]
const char *rerere_path(const struct rerere_id *id, const char *file)
                                                ^
/datasets/git/rerere.c:88:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!file)
                  ^
                   {
/datasets/git/rerere.c:91:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (id->variant <= 0)
                             ^
                              {
/datasets/git/rerere.c:100:14: warning: variable 'suffix' is not initialized [cppcoreguidelines-init-variables]
        const char *suffix;
                    ^
                           = NULL
/datasets/git/rerere.c:101:8: warning: variable 'ep' is not initialized [cppcoreguidelines-init-variables]
        char *ep;
              ^
                 = NULL
/datasets/git/rerere.c:101:8: warning: variable name 'ep' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/rerere.c:107:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!skip_prefix(name, filename, &suffix) || *suffix != '.')
                                                                    ^
                                                                     {
/datasets/git/rerere.c:111:13: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        *variant = strtol(suffix + 1, &ep, 10);
                   ^
/datasets/git/rerere.c:111:37: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        *variant = strtol(suffix + 1, &ep, 10);
                                           ^
/datasets/git/rerere.c:112:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (errno || *ep)
                         ^
                          {
/datasets/git/rerere.c:119:17: warning: variable 'de' is not initialized [cppcoreguidelines-init-variables]
        struct dirent *de;
                       ^
                          = NULL
/datasets/git/rerere.c:119:17: warning: variable name 'de' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/rerere.c:122:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!dir)
                 ^
                  {
/datasets/git/rerere.c:124:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((de = readdir(dir)) != NULL) {
        ^
/datasets/git/rerere.c:124:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'de' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((de = readdir(dir)) != NULL) {
               ^
/datasets/git/rerere.c:124:15: warning: function is not thread safe [concurrency-mt-unsafe]
        while ((de = readdir(dir)) != NULL) {
                     ^
/datasets/git/rerere.c:125:7: warning: variable 'variant' is not initialized [cppcoreguidelines-init-variables]
                int variant;
                    ^
                            = 0
/datasets/git/rerere.c:129:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        rr_dir->status[variant] |= RR_HAS_POSTIMAGE;
                        ^
/datasets/git/rerere.c:132:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        rr_dir->status[variant] |= RR_HAS_PREIMAGE;
                        ^
/datasets/git/rerere.c:140:21: warning: variable 'rr_dir' is not initialized [cppcoreguidelines-init-variables]
        struct rerere_dir *rr_dir;
                           ^
                                  = NULL
/datasets/git/rerere.c:144:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FLEX_ALLOC_STR(rr_dir, name, hex);
                ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^
/datasets/git/./git-compat-util.h:1151:47: note: expanded from macro 'FLEX_ALLOC_MEM'
#define FLEX_ALLOC_MEM(x, flexname, buf, len) do { \
                                              ^
/datasets/git/rerere.c:144:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                FLEX_ALLOC_STR(rr_dir, name, hex);
                ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/rerere.c:144:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                FLEX_ALLOC_STR(rr_dir, name, hex);
                ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/rerere.c:155:58: warning: parameter name 'id' is too short, expected at least 3 characters [readability-identifier-length]
static int has_rerere_resolution(const struct rerere_id *id)
                                                         ^
/datasets/git/rerere.c:157:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        const int both = RR_HAS_POSTIMAGE|RR_HAS_PREIMAGE;
                         ^
/datasets/git/rerere.c:27:26: note: expanded from macro 'RR_HAS_POSTIMAGE'
#define RR_HAS_POSTIMAGE 1
                         ^
/datasets/git/rerere.c:160:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (variant < 0)
                        ^
                         {
/datasets/git/rerere.c:162:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return ((id->collection->status[variant] & both) == both);
                 ^                                 ~~~~
/datasets/git/rerere.c:167:20: warning: variable name 'id' is too short, expected at least 3 characters [readability-identifier-length]
        struct rerere_id *id = xmalloc(sizeof(*id));
                          ^
/datasets/git/rerere.c:185:40: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void read_rr(struct repository *r, struct string_list *rr)
                                       ^
/datasets/git/rerere.c:185:63: warning: parameter name 'rr' is too short, expected at least 3 characters [readability-identifier-length]
static void read_rr(struct repository *r, struct string_list *rr)
                                                              ^
/datasets/git/rerere.c:188:8: warning: variable name 'in' is too short, expected at least 3 characters [readability-identifier-length]
        FILE *in = fopen_or_warn(git_path_merge_rr(r), "r");
              ^
/datasets/git/rerere.c:190:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!in)
                ^
                 {
/datasets/git/rerere.c:192:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (!strbuf_getwholeline(&buf, in, '\0')) {
        ^
/datasets/git/rerere.c:192:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'buf' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (!strbuf_getwholeline(&buf, in, '\0')) {
               ^
/datasets/git/rerere.c:193:9: warning: variable 'path' is not initialized [cppcoreguidelines-init-variables]
                char *path;
                      ^
                           = NULL
/datasets/git/rerere.c:195:21: warning: variable 'id' is not initialized [cppcoreguidelines-init-variables]
                struct rerere_id *id;
                                  ^
                                     = NULL
/datasets/git/rerere.c:195:21: warning: variable name 'id' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/rerere.c:196:7: warning: variable 'variant' is not initialized [cppcoreguidelines-init-variables]
                int variant;
                    ^
                            = 0
/datasets/git/rerere.c:200:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (buf.len < hexsz + 2 || get_sha1_hex(buf.buf, hash))
                                                                       ^
                                                                        {
/datasets/git/rerere.c:208:14: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        variant = strtol(buf.buf + hexsz + 1, &path, 10);
                                  ^
/datasets/git/rerere.c:208:49: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        variant = strtol(buf.buf + hexsz + 1, &path, 10);
                                                                     ^
/datasets/git/rerere.c:209:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (errno)
                                  ^
                                   {
/datasets/git/rerere.c:212:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*(path++) != '\t')
                                      ^
                                       {
/datasets/git/rerere.c:220:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(in);
        ^~~~~~~~~~
/datasets/git/rerere.c:220:2: note: cast the expression to void to silence this warning
/datasets/git/rerere.c:223:25: warning: variable 'write_lock' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct lock_file write_lock;
                        ^
/datasets/git/rerere.c:225:41: warning: parameter name 'rr' is too short, expected at least 3 characters [readability-identifier-length]
static int write_rr(struct string_list *rr, int out_fd)
                                        ^
/datasets/git/rerere.c:227:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/rerere.c:227:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/rerere.c:228:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < rr->nr; i++) {
        ^
/datasets/git/rerere.c:230:21: warning: variable 'id' is not initialized [cppcoreguidelines-init-variables]
                struct rerere_id *id;
                                  ^
                                     = NULL
/datasets/git/rerere.c:230:21: warning: variable name 'id' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/rerere.c:235:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!id)
                        ^
                         {
/datasets/git/rerere.c:238:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (0 < id->variant)
                                    ^
                                     {
/datasets/git/rerere.c:242:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/rerere.c:247:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (write_in_full(out_fd, buf.buf, buf.len) < 0)
                                                                ^
                                                                 {
/datasets/git/rerere.c:252:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (commit_lock_file(&write_lock) != 0)
                                               ^
                                                {
/datasets/git/rerere.c:265:8: warning: accessing fields in struct 'rerere_io' is inefficient due to padding; only needs 20 bytes but is using 24 bytes [altera-struct-pack-align]
struct rerere_io {
       ^
/datasets/git/rerere.c:265:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'rerere_io'
/datasets/git/rerere.c:265:8: warning: accessing fields in struct 'rerere_io' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct rerere_io {
       ^
/datasets/git/rerere.c:265:8: note: use "__attribute__((aligned(32)))" to align struct 'rerere_io' to 32 bytes
/datasets/git/rerere.c:272:36: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static void ferr_write(const void *p, size_t count, FILE *fp, int *err)
                                   ^
/datasets/git/rerere.c:272:59: warning: parameter name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
static void ferr_write(const void *p, size_t count, FILE *fp, int *err)
                                                          ^
/datasets/git/rerere.c:274:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!count || *err)
                           ^
                            {
/datasets/git/rerere.c:276:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fwrite(p, count, 1, fp) != 1)
                                         ^
                                          {
/datasets/git/rerere.c:280:42: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static inline void ferr_puts(const char *s, FILE *fp, int *err)
                                         ^
/datasets/git/rerere.c:280:51: warning: parameter name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
static inline void ferr_puts(const char *s, FILE *fp, int *err)
                                                  ^
/datasets/git/rerere.c:285:65: warning: parameter name 'io' is too short, expected at least 3 characters [readability-identifier-length]
static void rerere_io_putstr(const char *str, struct rerere_io *io)
                                                                ^
/datasets/git/rerere.c:287:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (io->output)
                       ^
                        {
/datasets/git/rerere.c:291:54: warning: parameter name 'sz' is too short, expected at least 3 characters [readability-identifier-length]
static void rerere_io_putmem(const char *mem, size_t sz, struct rerere_io *io)
                                                     ^
/datasets/git/rerere.c:291:76: warning: parameter name 'io' is too short, expected at least 3 characters [readability-identifier-length]
static void rerere_io_putmem(const char *mem, size_t sz, struct rerere_io *io)
                                                                           ^
/datasets/git/rerere.c:293:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (io->output)
                       ^
                        {
/datasets/git/rerere.c:300:8: warning: accessing fields in struct 'rerere_io_file' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct rerere_io_file {
       ^
/datasets/git/rerere.c:300:8: note: use "__attribute__((aligned(32)))" to align struct 'rerere_io_file' to 32 bytes
/datasets/git/rerere.c:308:47: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static int rerere_file_getline(struct strbuf *sb, struct rerere_io *io_)
                                              ^
/datasets/git/rerere.c:310:25: warning: variable name 'io' is too short, expected at least 3 characters [readability-identifier-length]
        struct rerere_io_file *io = (struct rerere_io_file *)io_;
                               ^
/datasets/git/rerere.c:319:34: warning: 2 adjacent parameters of 'is_cmarker' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int is_cmarker(char *buf, int marker_char, int marker_size)
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/rerere.c:319:38: note: the first parameter in the range is 'marker_char'
static int is_cmarker(char *buf, int marker_char, int marker_size)
                                     ^~~~~~~~~~~
/datasets/git/rerere.c:319:55: note: the last parameter in the range is 'marker_size'
static int is_cmarker(char *buf, int marker_char, int marker_size)
                                                      ^~~~~~~~~~~
/datasets/git/rerere.c:321:6: warning: variable 'want_sp' is not initialized [cppcoreguidelines-init-variables]
        int want_sp;
            ^
                    = 0
/datasets/git/rerere.c:333:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (marker_size--)
        ^
/datasets/git/rerere.c:333:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (marker_size--)
                             ^
                              {
/datasets/git/rerere.c:334:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*buf++ != marker_char)
                                          ^
                                           {
/datasets/git/rerere.c:336:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (want_sp && *buf != ' ')
                                   ^
                                    {
/datasets/git/rerere.c:338:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return isspace(*buf);
               ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/rerere.c:341:63: warning: parameter name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
static void rerere_strbuf_putconflict(struct strbuf *buf, int ch, size_t size)
                                                              ^
/datasets/git/rerere.c:347:12: warning: function 'handle_conflict' is within a recursive call chain [misc-no-recursion]
static int handle_conflict(struct strbuf *out, struct rerere_io *io,
           ^
/datasets/git/rerere.c:347:12: note: example recursive call chain, starting from function 'handle_conflict'
/datasets/git/rerere.c:359:8: note: Frame #1: function 'handle_conflict' calls function 'handle_conflict' here:
                        if (handle_conflict(&conflict, io, marker_size, NULL) < 0)
                            ^
/datasets/git/rerere.c:359:8: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/rerere.c:347:12: warning: function 'handle_conflict' has cognitive complexity of 40 (threshold 25) [readability-function-cognitive-complexity]
static int handle_conflict(struct strbuf *out, struct rerere_io *io,
           ^
/datasets/git/rerere.c:357:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (!io->getline(&buf, io)) {
        ^
/datasets/git/rerere.c:358:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (is_cmarker(buf.buf, '<', marker_size)) {
                ^
/datasets/git/rerere.c:359:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (handle_conflict(&conflict, io, marker_size, NULL) < 0)
                        ^
/datasets/git/rerere.c:361:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (hunk == RR_SIDE_1)
                        ^
/datasets/git/rerere.c:363:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/rerere.c:366:10: note: +1, nesting level increased to 2
                } else if (is_cmarker(buf.buf, '|', marker_size)) {
                       ^
/datasets/git/rerere.c:367:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (hunk != RR_SIDE_1)
                        ^
/datasets/git/rerere.c:370:10: note: +1, nesting level increased to 2
                } else if (is_cmarker(buf.buf, '=', marker_size)) {
                       ^
/datasets/git/rerere.c:371:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (hunk != RR_SIDE_1 && hunk != RR_ORIGINAL)
                        ^
/datasets/git/rerere.c:371:26: note: +1
                        if (hunk != RR_SIDE_1 && hunk != RR_ORIGINAL)
                                              ^
/datasets/git/rerere.c:374:10: note: +1, nesting level increased to 2
                } else if (is_cmarker(buf.buf, '>', marker_size)) {
                       ^
/datasets/git/rerere.c:375:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (hunk != RR_SIDE_2)
                        ^
/datasets/git/rerere.c:377:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (strbuf_cmp(&one, &two) > 0)
                        ^
/datasets/git/rerere.c:385:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ctx) {
                        ^
/datasets/git/rerere.c:386:43: note: +4, including nesting penalty of 3, nesting level increased to 4
                                the_hash_algo->update_fn(ctx, one.buf ?
                                                                      ^
/datasets/git/rerere.c:389:43: note: +4, including nesting penalty of 3, nesting level increased to 4
                                the_hash_algo->update_fn(ctx, two.buf ?
                                                                      ^
/datasets/git/rerere.c:394:10: note: +1, nesting level increased to 2
                } else if (hunk == RR_SIDE_1)
                       ^
/datasets/git/rerere.c:396:8: note: +1, nesting level increased to 2
                else if (hunk == RR_ORIGINAL)
                     ^
/datasets/git/rerere.c:398:8: note: +1, nesting level increased to 2
                else if (hunk == RR_SIDE_2)
                     ^
/datasets/git/rerere.c:347:66: warning: parameter name 'io' is too short, expected at least 3 characters [readability-identifier-length]
static int handle_conflict(struct strbuf *out, struct rerere_io *io,
                                                                 ^
/datasets/git/rerere.c:353:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct strbuf one = STRBUF_INIT, two = STRBUF_INIT;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/rerere.c:354:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct strbuf buf = STRBUF_INIT, conflict = STRBUF_INIT;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/rerere.c:354:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/rerere.c:357:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (!io->getline(&buf, io)) {
        ^
/datasets/git/rerere.c:357:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'buf' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (!io->getline(&buf, io)) {
               ^
/datasets/git/rerere.c:359:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (handle_conflict(&conflict, io, marker_size, NULL) < 0)
                                                                                  ^
                                                                                   {
/datasets/git/rerere.c:361:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (hunk == RR_SIDE_1)
                                              ^
                                               {
/datasets/git/rerere.c:363:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/rerere.c:367:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (hunk != RR_SIDE_1)
                                              ^
                                               {
/datasets/git/rerere.c:371:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (hunk != RR_SIDE_1 && hunk != RR_ORIGINAL)
                                                                     ^
                                                                      {
/datasets/git/rerere.c:375:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (hunk != RR_SIDE_2)
                                              ^
                                               {
/datasets/git/rerere.c:377:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (strbuf_cmp(&one, &two) > 0)
                                                       ^
                                                        {
/datasets/git/rerere.c:394:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else if (hunk == RR_SIDE_1)
                                             ^
                                              {
/datasets/git/rerere.c:396:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (hunk == RR_ORIGINAL)
                                             ^
                                              {
/datasets/git/rerere.c:398:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (hunk == RR_SIDE_2)
                                           ^
                                            {
/datasets/git/rerere.c:420:63: warning: parameter name 'io' is too short, expected at least 3 characters [readability-identifier-length]
static int handle_path(unsigned char *hash, struct rerere_io *io, int marker_size)
                                                              ^
/datasets/git/rerere.c:423:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct strbuf buf = STRBUF_INIT, out = STRBUF_INIT;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/rerere.c:425:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (hash)
                 ^
                  {
/datasets/git/rerere.c:428:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (!io->getline(&buf, io)) {
        ^
/datasets/git/rerere.c:428:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'buf' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (!io->getline(&buf, io)) {
               ^
/datasets/git/rerere.c:432:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (has_conflicts < 0)
                                              ^
                                               {
/datasets/git/rerere.c:436:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/rerere.c:442:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (hash)
                 ^
                  {
/datasets/git/rerere.c:456:24: warning: variable name 'io' is too short, expected at least 3 characters [readability-identifier-length]
        struct rerere_io_file io;
                              ^
/datasets/git/rerere.c:459:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&io, 0, sizeof(io));
        ^~~~~~
/datasets/git/rerere.c:459:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&io, 0, sizeof(io));
        ^~~~~~
/datasets/git/rerere.c:463:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!io.input)
                      ^
                       {
/datasets/git/rerere.c:470:4: warning: the value returned by this function should be used [cert-err33-c]
                        fclose(io.input);
                        ^~~~~~~~~~~~~~~~
/datasets/git/rerere.c:470:4: note: cast the expression to void to silence this warning
/datasets/git/rerere.c:477:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(io.input);
        ^~~~~~~~~~~~~~~~
/datasets/git/rerere.c:477:2: note: cast the expression to void to silence this warning
/datasets/git/rerere.c:478:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (io.io.wrerror)
                          ^
                           {
/datasets/git/rerere.c:480:15: warning: function is not thread safe [concurrency-mt-unsafe]
                      path, strerror(io.io.wrerror));
                            ^
/datasets/git/rerere.c:481:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (io.io.output && fclose(io.io.output))
                                                 ^
                                                  {
/datasets/git/rerere.c:485:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (output)
                           ^
                            {
/datasets/git/rerere.c:489:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (io.io.wrerror)
                          ^
                           {
/datasets/git/rerere.c:502:63: warning: parameter name 'i' is too short, expected at least 3 characters [readability-identifier-length]
static int check_one_conflict(struct index_state *istate, int i, int *type)
                                                              ^
/datasets/git/rerere.c:504:28: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
        const struct cache_entry *e = istate->cache[i];
                                  ^
/datasets/git/rerere.c:506:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!ce_stage(e)) {
             ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/rerere.c:512:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (i < istate->cache_nr && ce_stage(istate->cache[i]) == 1)
        ^
/datasets/git/rerere.c:512:9: warning: backward branch (while loop) is ID-dependent due to member reference to 'ce_flags' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (i < istate->cache_nr && ce_stage(istate->cache[i]) == 1)
               ^
/datasets/git/rerere.c:512:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        while (i < istate->cache_nr && ce_stage(istate->cache[i]) == 1)
                                       ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/rerere.c:512:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (i < istate->cache_nr && ce_stage(istate->cache[i]) == 1)
                                                                       ^
                                                                        {
/datasets/git/rerere.c:517:29: warning: variable name 'e2' is too short, expected at least 3 characters [readability-identifier-length]
                const struct cache_entry *e2 = istate->cache[i];
                                          ^
/datasets/git/rerere.c:518:29: warning: variable name 'e3' is too short, expected at least 3 characters [readability-identifier-length]
                const struct cache_entry *e3 = istate->cache[i + 1];
                                          ^
/datasets/git/rerere.c:519:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce_stage(e2) == 2 &&
                    ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/rerere.c:520:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    ce_stage(e3) == 3 &&
                    ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/rerere.c:523:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    S_ISREG(e3->ce_mode))
                                         ^
                                          {
/datasets/git/rerere.c:528:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (i < istate->cache_nr && ce_same_name(e, istate->cache[i]))
        ^
/datasets/git/rerere.c:528:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'e' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (i < istate->cache_nr && ce_same_name(e, istate->cache[i]))
               ^
/datasets/git/rerere.c:528:67: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (i < istate->cache_nr && ce_same_name(e, istate->cache[i]))
                                                                         ^
                                                                          {
/datasets/git/rerere.c:544:45: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int find_conflict(struct repository *r, struct string_list *conflict)
                                            ^
/datasets/git/rerere.c:546:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/rerere.c:546:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/rerere.c:548:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_read_index(r) < 0)
                                   ^
                                    {
/datasets/git/rerere.c:551:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < r->index->cache_nr;) {
        ^
/datasets/git/rerere.c:551:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < r->index->cache_nr;) {
                    ^
/datasets/git/rerere.c:552:7: warning: variable 'conflict_type' is not initialized [cppcoreguidelines-init-variables]
                int conflict_type;
                    ^
                                  = 0
/datasets/git/rerere.c:553:29: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                const struct cache_entry *e = r->index->cache[i];
                                          ^
/datasets/git/rerere.c:555:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (conflict_type == THREE_STAGED)
                                                  ^
                                                   {
/datasets/git/rerere.c:576:41: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int rerere_remaining(struct repository *r, struct string_list *merge_rr)
                                        ^
/datasets/git/rerere.c:578:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/rerere.c:578:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/rerere.c:580:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (setup_rerere(r, merge_rr, RERERE_READONLY))
                                                       ^
                                                        {
/datasets/git/rerere.c:582:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_read_index(r) < 0)
                                   ^
                                    {
/datasets/git/rerere.c:585:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < r->index->cache_nr;) {
        ^
/datasets/git/rerere.c:585:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < r->index->cache_nr;) {
                    ^
/datasets/git/rerere.c:586:7: warning: variable 'conflict_type' is not initialized [cppcoreguidelines-init-variables]
                int conflict_type;
                    ^
                                  = 0
/datasets/git/rerere.c:587:29: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                const struct cache_entry *e = r->index->cache[i];
                                          ^
/datasets/git/rerere.c:589:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (conflict_type == PUNTED)
                                            ^
                                             {
/datasets/git/rerere.c:592:29: warning: variable 'it' is not initialized [cppcoreguidelines-init-variables]
                        struct string_list_item *it;
                                                 ^
                                                    = NULL
/datasets/git/rerere.c:592:29: warning: variable name 'it' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/rerere.c:609:32: warning: parameter name 'id' is too short, expected at least 3 characters [readability-identifier-length]
                     const struct rerere_id *id, const char *path,
                                             ^
/datasets/git/rerere.c:612:23: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        enum ll_merge_result ret;
                             ^
/datasets/git/rerere.c:613:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        mmfile_t base = {NULL, 0}, other = {NULL, 0};
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/rerere.c:643:70: warning: parameter name 'id' is too short, expected at least 3 characters [readability-identifier-length]
static int merge(struct index_state *istate, const struct rerere_id *id, const char *path)
                                                                     ^
/datasets/git/rerere.c:645:8: warning: variable 'f' is not initialized [cppcoreguidelines-init-variables]
        FILE *f;
              ^
                = NULL
/datasets/git/rerere.c:645:8: warning: variable name 'f' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/rerere.c:646:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/rerere.c:661:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/rerere.c:668:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (utime(rerere_path(id, "postimage"), NULL) < 0)
                                                          ^
                                                           {
/datasets/git/rerere.c:674:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!f)
               ^
                {
/datasets/git/rerere.c:676:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fwrite(result.ptr, result.size, 1, f) != 1)
                                                       ^
                                                        {
/datasets/git/rerere.c:678:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fclose(f))
                      ^
                       {
/datasets/git/rerere.c:688:45: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void update_paths(struct repository *r, struct string_list *update)
                                            ^
/datasets/git/rerere.c:691:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/rerere.c:691:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/rerere.c:695:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < update->nr; i++) {
        ^
/datasets/git/rerere.c:697:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (add_file_to_index(r->index, item->string, 0))
                                                                 ^
                                                                  {
/datasets/git/rerere.c:698:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        exit(128);
                        ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/rerere.c:704:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                               COMMIT_LOCK | SKIP_IF_UNCHANGED))
                               ^
/datasets/git/./refs/../cache.h:744:22: note: expanded from macro 'COMMIT_LOCK'
#define COMMIT_LOCK             (1 << 0)
                                ^~~~~~~~
/datasets/git/rerere.c:704:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                               COMMIT_LOCK | SKIP_IF_UNCHANGED))
                                             ^
/datasets/git/./refs/../cache.h:745:28: note: expanded from macro 'SKIP_IF_UNCHANGED'
#define SKIP_IF_UNCHANGED       (1 << 1)
                                 ^
/datasets/git/rerere.c:704:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                               COMMIT_LOCK | SKIP_IF_UNCHANGED))
                                                                ^
                                                                 {
/datasets/git/rerere.c:708:46: warning: parameter name 'id' is too short, expected at least 3 characters [readability-identifier-length]
static void remove_variant(struct rerere_id *id)
                                             ^
/datasets/git/rerere.c:729:2: note: inferred assignment of ID-dependent value from ID-dependent member variant [altera-id-dependent-backward-branch]
        int variant;
        ^
/datasets/git/rerere.c:727:20: warning: variable name 'id' is too short, expected at least 3 characters [readability-identifier-length]
        struct rerere_id *id = rr_item->util;
                          ^
/datasets/git/rerere.c:729:6: warning: variable 'variant' is not initialized [cppcoreguidelines-init-variables]
        int variant;
            ^
                    = 0
/datasets/git/rerere.c:736:50: warning: 0666 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        copy_file(rerere_path(id, "postimage"), path, 0666);
                                                                      ^
/datasets/git/rerere.c:737:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        id->collection->status[variant] |= RR_HAS_POSTIMAGE;
                        ^
/datasets/git/rerere.c:751:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (variant = 0; variant < rr_dir->status_nr; variant++) {
        ^
/datasets/git/rerere.c:751:20: warning: backward branch (for loop) is ID-dependent due to variable reference to 'variant' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (variant = 0; variant < rr_dir->status_nr; variant++) {
                          ^
/datasets/git/rerere.c:752:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                const int both = RR_HAS_PREIMAGE | RR_HAS_POSTIMAGE;
                                 ^
/datasets/git/rerere.c:28:25: note: expanded from macro 'RR_HAS_PREIMAGE'
#define RR_HAS_PREIMAGE 2
                        ^
/datasets/git/rerere.c:755:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((rr_dir->status[variant] & both) != both)
                     ^                         ~~~~
/datasets/git/rerere.c:755:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((rr_dir->status[variant] & both) != both)
                                                             ^
                                                              {
/datasets/git/rerere.c:759:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (merge(istate, &vid, path))
                                              ^
                                               {
/datasets/git/rerere.c:766:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (0 <= id->variant && id->variant != variant)
                                                               ^
                                                                {
/datasets/git/rerere.c:769:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (rerere_autoupdate)
                                      ^
                                       {
/datasets/git/rerere.c:771:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/rerere.c:785:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (id->collection->status[variant] & RR_HAS_POSTIMAGE) {
            ^
/datasets/git/rerere.c:787:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (unlink(path))
                                 ^
                                  {
/datasets/git/rerere.c:789:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                id->collection->status[variant] &= ~RR_HAS_POSTIMAGE;
                ^                                  ~~~~~~~~~~~~~~~~~
/datasets/git/rerere.c:789:38: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                id->collection->status[variant] &= ~RR_HAS_POSTIMAGE;
                                                   ^
/datasets/git/rerere.c:791:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        id->collection->status[variant] |= RR_HAS_PREIMAGE;
        ^
/datasets/git/rerere.c:795:47: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int do_plain_rerere(struct repository *r,
                                              ^
/datasets/git/rerere.c:796:27: warning: parameter name 'rr' is too short, expected at least 3 characters [readability-identifier-length]
                           struct string_list *rr, int fd)
                                               ^
/datasets/git/rerere.c:796:35: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
                           struct string_list *rr, int fd)
                                                       ^
/datasets/git/rerere.c:800:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/rerere.c:800:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/rerere.c:810:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < conflict.nr; i++) {
        ^
/datasets/git/rerere.c:811:21: warning: variable 'id' is not initialized [cppcoreguidelines-init-variables]
                struct rerere_id *id;
                                  ^
                                     = NULL
/datasets/git/rerere.c:811:21: warning: variable name 'id' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/rerere.c:814:7: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
                int ret;
                    ^
                        = 0
/datasets/git/rerere.c:826:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret < 1)
                            ^
                             {
/datasets/git/rerere.c:836:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < rr->nr; i++)
        ^
/datasets/git/rerere.c:836:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < rr->nr; i++)
                                    ^
                                     {
/datasets/git/rerere.c:839:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (update.nr)
                      ^
                       {
/datasets/git/rerere.c:852:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(git_path_rr_cache, "rr-cache")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/rerere.c:856:6: warning: variable 'rr_cache_exists' is not initialized [cppcoreguidelines-init-variables]
        int rr_cache_exists;
            ^
                            = 0
/datasets/git/rerere.c:858:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!rerere_enabled)
                            ^
                             {
/datasets/git/rerere.c:862:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (rerere_enabled < 0)
                               ^
                                {
/datasets/git/rerere.c:865:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!rr_cache_exists && mkdir_in_gitdir(git_path_rr_cache()))
                                                                     ^
                                                                      {
/datasets/git/rerere.c:870:37: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int setup_rerere(struct repository *r, struct string_list *merge_rr, int flags)
                                    ^
/datasets/git/rerere.c:872:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/rerere.c:872:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/rerere.c:875:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_rerere_enabled())
                                 ^
                                  {
/datasets/git/rerere.c:878:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & (RERERE_AUTOUPDATE|RERERE_NOAUTOUPDATE))
            ^~~~~
/datasets/git/rerere.c:878:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & (RERERE_AUTOUPDATE|RERERE_NOAUTOUPDATE))
                     ^
/datasets/git/./rerere.h:9:29: note: expanded from macro 'RERERE_AUTOUPDATE'
#define RERERE_AUTOUPDATE   01
                            ^~
/datasets/git/rerere.c:878:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & (RERERE_AUTOUPDATE|RERERE_NOAUTOUPDATE))
                                                            ^
                                                             {
/datasets/git/rerere.c:879:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                rerere_autoupdate = !!(flags & RERERE_AUTOUPDATE);
                                       ^~~~~
/datasets/git/rerere.c:880:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & RERERE_READONLY)
            ^~~~~
/datasets/git/rerere.c:880:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & RERERE_READONLY)
                                    ^
                                     {
/datasets/git/rerere.c:882:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/rerere.c:895:36: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int repo_rerere(struct repository *r, int flags)
                                   ^
/datasets/git/rerere.c:898:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int fd, status;
        ^~~~~~~~~~~~~~~
/datasets/git/rerere.c:898:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd, status;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/rerere.c:898:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/rerere.c:898:10: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int fd, status;
                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/rerere.c:901:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fd < 0)
                   ^
                    {
/datasets/git/rerere.c:912:8: warning: accessing fields in struct 'rerere_io_mem' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct rerere_io_mem {
       ^
/datasets/git/rerere.c:912:8: note: use "__attribute__((aligned(64)))" to align struct 'rerere_io_mem' to 64 bytes
/datasets/git/rerere.c:920:46: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static int rerere_mem_getline(struct strbuf *sb, struct rerere_io *io_)
                                             ^
/datasets/git/rerere.c:922:24: warning: variable name 'io' is too short, expected at least 3 characters [readability-identifier-length]
        struct rerere_io_mem *io = (struct rerere_io_mem *)io_;
                              ^
/datasets/git/rerere.c:923:8: warning: variable 'ep' is not initialized [cppcoreguidelines-init-variables]
        char *ep;
              ^
                 = NULL
/datasets/git/rerere.c:923:8: warning: variable name 'ep' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/rerere.c:924:9: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        size_t len;
               ^
                   = 0
/datasets/git/rerere.c:927:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!io->input.len)
                           ^
                            {
/datasets/git/rerere.c:930:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ep)
                ^
                 {
/datasets/git/rerere.c:932:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (*ep == '\n')
                             ^
                              {
/datasets/git/rerere.c:945:28: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
        const struct cache_entry *ce;
                                  ^
                                     = NULL
/datasets/git/rerere.c:945:28: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/rerere.c:946:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int pos, len, i, has_conflicts;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/rerere.c:946:6: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        int pos, len, i, has_conflicts;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/rerere.c:946:11: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int pos, len, i, has_conflicts;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/rerere.c:946:16: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int pos, len, i, has_conflicts;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/rerere.c:946:16: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/rerere.c:946:19: warning: variable 'has_conflicts' is not initialized [cppcoreguidelines-init-variables]
        int pos, len, i, has_conflicts;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/rerere.c:947:23: warning: variable name 'io' is too short, expected at least 3 characters [readability-identifier-length]
        struct rerere_io_mem io;
                             ^
/datasets/git/rerere.c:953:8: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        len = strlen(path);
              ^
/datasets/git/rerere.c:955:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (0 <= pos)
                     ^
                      {
/datasets/git/rerere.c:959:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (pos < istate->cache_nr) {
        ^
/datasets/git/rerere.c:959:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'pos' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (pos < istate->cache_nr) {
               ^
/datasets/git/rerere.c:960:20: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
                enum object_type type;
                                 ^
/datasets/git/rerere.c:961:17: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
                unsigned long size;
                              ^
                                   = 0
/datasets/git/rerere.c:964:32: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (ce_namelen(ce) != len || memcmp(ce->name, path, len))
                                             ^
                                                                         != 0
/datasets/git/rerere.c:964:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ce_namelen(ce) != len || memcmp(ce->name, path, len))
                                                                         ^
                                                                          {
/datasets/git/rerere.c:966:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                i = ce_stage(ce) - 1;
                    ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/rerere.c:970:21: warning: narrowing conversion from 'unsigned long' to signed type 'long' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        mmfile[i].size = size;
                                         ^
/datasets/git/rerere.c:973:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < 3; i++)
        ^
/datasets/git/rerere.c:973:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < 3; i++)
                    ^
/datasets/git/rerere.c:973:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < 3; i++)
                               ^
                                {
/datasets/git/rerere.c:974:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!mmfile[i].ptr && !mmfile[i].size)
                                                      ^
                                                       {
/datasets/git/rerere.c:985:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < 3; i++)
        ^
/datasets/git/rerere.c:985:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < 3; i++)
                    ^
/datasets/git/rerere.c:985:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < 3; i++)
                               ^
                                {
/datasets/git/rerere.c:988:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&io, 0, sizeof(io));
        ^~~~~~
/datasets/git/rerere.c:988:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&io, 0, sizeof(io));
        ^~~~~~
/datasets/git/rerere.c:990:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (output)
                   ^
                    {
/datasets/git/rerere.c:992:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/rerere.c:1003:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (io.io.output)
                         ^
                          {
/datasets/git/rerere.c:1004:3: warning: the value returned by this function should be used [cert-err33-c]
                fclose(io.io.output);
                ^~~~~~~~~~~~~~~~~~~~
/datasets/git/rerere.c:1004:3: note: cast the expression to void to silence this warning
/datasets/git/rerere.c:1010:27: warning: parameter name 'rr' is too short, expected at least 3 characters [readability-identifier-length]
                                  struct string_list *rr)
                                                      ^
/datasets/git/rerere.c:1012:14: warning: variable 'filename' is not initialized [cppcoreguidelines-init-variables]
        const char *filename;
                    ^
                             = NULL
/datasets/git/rerere.c:1013:20: warning: variable 'id' is not initialized [cppcoreguidelines-init-variables]
        struct rerere_id *id;
                          ^
                             = NULL
/datasets/git/rerere.c:1013:20: warning: variable name 'id' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/rerere.c:1015:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/rerere.c:1016:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/rerere.c:1023:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret < 1)
                    ^
                     {
/datasets/git/rerere.c:1029:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (id->variant = 0;
        ^
/datasets/git/rerere.c:1030:7: warning: backward branch (for loop) is ID-dependent due to variable reference to 'id' and may cause performance degradation [altera-id-dependent-backward-branch]
             id->variant < id->collection->status_nr;
             ^
/datasets/git/rerere.c:1034:7: warning: variable 'cleanly_resolved' is not initialized [cppcoreguidelines-init-variables]
                int cleanly_resolved;
                    ^
                                     = 0
/datasets/git/rerere.c:1036:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!has_rerere_resolution(id))
                                               ^
                                                {
/datasets/git/rerere.c:1048:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cleanly_resolved)
                                     ^
                                      {
/datasets/git/rerere.c:1059:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (errno == ENOENT)
                                    ^
                                     {
/datasets/git/rerere.c:1061:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/rerere.c:1081:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(stderr, _("Forgot resolution for '%s'\n"), path);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/rerere.c:1081:2: note: cast the expression to void to silence this warning
/datasets/git/rerere.c:1089:38: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int rerere_forget(struct repository *r, struct pathspec *pathspec)
                                     ^
/datasets/git/rerere.c:1091:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, fd;
        ^~~~~~~~~~
/datasets/git/rerere.c:1091:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, fd;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/rerere.c:1091:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/rerere.c:1091:9: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int i, fd;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/rerere.c:1091:9: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/rerere.c:1095:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_read_index(r) < 0)
                                   ^
                                    {
/datasets/git/rerere.c:1099:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fd < 0)
                   ^
                    {
/datasets/git/rerere.c:1109:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < conflict.nr; i++) {
        ^
/datasets/git/rerere.c:1110:28: warning: variable name 'it' is too short, expected at least 3 characters [readability-identifier-length]
                struct string_list_item *it = &conflict.items[i];
                                         ^
/datasets/git/rerere.c:1112:9: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                    strlen(it->string), 0, NULL, 0))
                                    ^
/datasets/git/rerere.c:1112:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                    strlen(it->string), 0, NULL, 0))
                                                                    ^
                                                                     {
/datasets/git/rerere.c:1123:56: warning: parameter name 'id' is too short, expected at least 3 characters [readability-identifier-length]
static timestamp_t rerere_created_at(struct rerere_id *id)
                                                       ^
/datasets/git/rerere.c:1125:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/rerere.c:1130:58: warning: parameter name 'id' is too short, expected at least 3 characters [readability-identifier-length]
static timestamp_t rerere_last_used_at(struct rerere_id *id)
                                                         ^
/datasets/git/rerere.c:1132:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/rerere.c:1140:46: warning: parameter name 'id' is too short, expected at least 3 characters [readability-identifier-length]
static void unlink_rr_item(struct rerere_id *id)
                                             ^
/datasets/git/rerere.c:1147:41: warning: parameter name 'id' is too short, expected at least 3 characters [readability-identifier-length]
static void prune_one(struct rerere_id *id,
                                        ^
/datasets/git/rerere.c:1148:9: warning: 2 adjacent parameters of 'prune_one' of similar type ('timestamp_t') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                      timestamp_t cutoff_resolve, timestamp_t cutoff_noresolve)
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/rerere.c:1148:21: note: the first parameter in the range is 'cutoff_resolve'
                      timestamp_t cutoff_resolve, timestamp_t cutoff_noresolve)
                                  ^~~~~~~~~~~~~~
/datasets/git/rerere.c:1148:49: note: the last parameter in the range is 'cutoff_noresolve'
                      timestamp_t cutoff_resolve, timestamp_t cutoff_noresolve)
                                                              ^~~~~~~~~~~~~~~~
/datasets/git/rerere.c:1150:14: warning: variable 'then' is not initialized [cppcoreguidelines-init-variables]
        timestamp_t then;
                    ^
                         = 0
/datasets/git/rerere.c:1151:14: warning: variable 'cutoff' is not initialized [cppcoreguidelines-init-variables]
        timestamp_t cutoff;
                    ^
                           = 0
/datasets/git/rerere.c:1154:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (then)
                 ^
                  {
/datasets/git/rerere.c:1158:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!then)
                          ^
                           {
/datasets/git/rerere.c:1162:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (then < cutoff)
                          ^
                           {
/datasets/git/rerere.c:1170:14: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
        const char *end;
                    ^
                        = NULL
/datasets/git/rerere.c:1174:35: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void rerere_gc(struct repository *r, struct string_list *rr)
                                  ^
/datasets/git/rerere.c:1174:58: warning: parameter name 'rr' is too short, expected at least 3 characters [readability-identifier-length]
void rerere_gc(struct repository *r, struct string_list *rr)
                                                         ^
/datasets/git/rerere.c:1177:7: warning: variable 'dir' is not initialized [cppcoreguidelines-init-variables]
        DIR *dir;
             ^
                 = NULL
/datasets/git/rerere.c:1178:17: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct dirent *e;
                       ^
                         = NULL
/datasets/git/rerere.c:1178:17: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/rerere.c:1179:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/rerere.c:1179:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/rerere.c:1181:39: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        timestamp_t cutoff_noresolve = now - 15 * 86400;
                                             ^
/datasets/git/rerere.c:1181:39: note: make conversion explicit to silence this warning
        timestamp_t cutoff_noresolve = now - 15 * 86400;
                                             ^~~~~~~~~~
                                             (unsigned long)( )
/datasets/git/rerere.c:1181:39: note: perform multiplication in a wider type
        timestamp_t cutoff_noresolve = now - 15 * 86400;
                                             ^~
                                             (long)
/datasets/git/rerere.c:1181:39: warning: 15 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        timestamp_t cutoff_noresolve = now - 15 * 86400;
                                             ^
/datasets/git/rerere.c:1181:44: warning: 86400 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        timestamp_t cutoff_noresolve = now - 15 * 86400;
                                                  ^
/datasets/git/rerere.c:1182:37: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        timestamp_t cutoff_resolve = now - 60 * 86400;
                                           ^
/datasets/git/rerere.c:1182:37: note: make conversion explicit to silence this warning
        timestamp_t cutoff_resolve = now - 60 * 86400;
                                           ^~~~~~~~~~
                                           (unsigned long)( )
/datasets/git/rerere.c:1182:37: note: perform multiplication in a wider type
        timestamp_t cutoff_resolve = now - 60 * 86400;
                                           ^~
                                           (long)
/datasets/git/rerere.c:1182:37: warning: 60 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        timestamp_t cutoff_resolve = now - 60 * 86400;
                                           ^
/datasets/git/rerere.c:1182:42: warning: 86400 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        timestamp_t cutoff_resolve = now - 60 * 86400;
                                                ^
/datasets/git/rerere.c:1184:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (setup_rerere(r, rr, 0) < 0)
                                       ^
                                        {
/datasets/git/rerere.c:1191:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!dir)
                 ^
                  {
/datasets/git/rerere.c:1194:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'e' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((e = readdir_skip_dot_and_dotdot(dir))) {
               ^
/datasets/git/rerere.c:1195:22: warning: variable 'rr_dir' is not initialized [cppcoreguidelines-init-variables]
                struct rerere_dir *rr_dir;
                                   ^
                                          = NULL
/datasets/git/rerere.c:1196:20: warning: variable name 'id' is too short, expected at least 3 characters [readability-identifier-length]
                struct rerere_id id;
                                 ^
/datasets/git/rerere.c:1197:7: warning: variable 'now_empty' is not initialized [cppcoreguidelines-init-variables]
                int now_empty;
                    ^
                              = 0
/datasets/git/rerere.c:1199:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!is_rr_cache_dirname(e->d_name))
                                                    ^
                                                     {
/datasets/git/rerere.c:1205:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (id.variant = 0, id.collection = rr_dir;
                ^
/datasets/git/rerere.c:1206:8: warning: backward branch (for loop) is ID-dependent due to member reference to 'variant' and may cause performance degradation [altera-id-dependent-backward-branch]
                     id.variant < id.collection->status_nr;
                     ^
/datasets/git/rerere.c:1209:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (id.collection->status[id.variant])
                                                              ^
                                                               {
/datasets/git/rerere.c:1212:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (now_empty)
                              ^
                               {
/datasets/git/rerere.c:1218:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < to_remove.nr; i++)
        ^
/datasets/git/rerere.c:1218:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < to_remove.nr; i++)
                                          ^
                                           {
/datasets/git/rerere.c:1231:38: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void rerere_clear(struct repository *r, struct string_list *merge_rr)
                                     ^
/datasets/git/rerere.c:1233:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/rerere.c:1233:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/rerere.c:1235:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (setup_rerere(r, merge_rr, 0) < 0)
                                             ^
                                              {
/datasets/git/rerere.c:1238:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < merge_rr->nr; i++) {
        ^
/datasets/git/rerere.c:1239:21: warning: variable name 'id' is too short, expected at least 3 characters [readability-identifier-length]
                struct rerere_id *id = merge_rr->items[i].util;
                                  ^
/datasets/git/reset.c:3:1: warning: #includes are not sorted properly [llvm-include-order]
#include "lockfile.h"
^        ~~~~~~~~~~~~
         "hook.h"
/datasets/git/reset.c:12:12: warning: function 'update_refs' has cognitive complexity of 32 (threshold 25) [readability-function-cognitive-complexity]
static int update_refs(const struct reset_head_opts *opts,
           ^
/datasets/git/reset.c:31:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((update_orig_head && !reflog_orig_head) || !reflog_head) {
        ^
/datasets/git/reset.c:31:46: note: +1
        if ((update_orig_head && !reflog_orig_head) || !reflog_head) {
                                                    ^
/datasets/git/reset.c:31:24: note: +1
        if ((update_orig_head && !reflog_orig_head) || !reflog_head) {
                              ^
/datasets/git/reset.c:32:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!default_reflog_action)
                ^
/datasets/git/reset.c:35:43: note: +2, including nesting penalty of 1, nesting level increased to 2
                strbuf_addf(&msg, "%s: ", reflog_action ? reflog_action :
                                                        ^
/datasets/git/reset.c:40:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (update_orig_head) {
        ^
/datasets/git/reset.c:41:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!get_oid("ORIG_HEAD", &oid_old_orig))
                ^
/datasets/git/reset.c:43:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (head) {
                ^
/datasets/git/reset.c:44:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!reflog_orig_head) {
                        ^
/datasets/git/reset.c:49:18: note: +3, including nesting penalty of 2, nesting level increased to 3
                                   orig_head ? orig_head : head,
                                             ^
/datasets/git/reset.c:51:10: note: +1, nesting level increased to 2
                } else if (old_orig)
                       ^
/datasets/git/reset.c:55:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!reflog_head) {
        ^
/datasets/git/reset.c:60:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!switch_to_branch)
        ^
/datasets/git/reset.c:62:18: note: +2, including nesting penalty of 1, nesting level increased to 2
                                 detach_head ? REF_NO_DEREF : 0,
                                             ^
/datasets/git/reset.c:64:2: note: +1, nesting level increased to 1
        else {
        ^
/datasets/git/reset.c:65:34: note: +2, including nesting penalty of 1, nesting level increased to 2
                ret = update_ref(reflog_branch ? reflog_branch : reflog_head,
                                               ^
/datasets/git/reset.c:68:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!ret)
                ^
/datasets/git/reset.c:72:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!ret && run_hook)
        ^
/datasets/git/reset.c:72:11: note: +1
        if (!ret && run_hook)
                 ^
/datasets/git/reset.c:74:24: note: +2, including nesting penalty of 1, nesting level increased to 2
                            oid_to_hex(head ? head : null_oid()),
                                            ^
/datasets/git/reset.c:16:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned detach_head = opts->flags & RESET_HEAD_DETACH;
                               ^
/datasets/git/reset.c:16:39: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned detach_head = opts->flags & RESET_HEAD_DETACH;
                                             ^
/datasets/git/./reset.h:10:28: note: expanded from macro 'RESET_HEAD_DETACH'
#define RESET_HEAD_DETACH (1<<0)
                           ^
/datasets/git/reset.c:17:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned run_hook = opts->flags & RESET_HEAD_RUN_POST_CHECKOUT_HOOK;
                            ^
/datasets/git/reset.c:17:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned run_hook = opts->flags & RESET_HEAD_RUN_POST_CHECKOUT_HOOK;
                                          ^
/datasets/git/./reset.h:14:44: note: expanded from macro 'RESET_HEAD_RUN_POST_CHECKOUT_HOOK'
#define RESET_HEAD_RUN_POST_CHECKOUT_HOOK (1<<2)
                                           ^
/datasets/git/reset.c:18:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned update_orig_head = opts->flags & RESET_ORIG_HEAD;
                                    ^
/datasets/git/reset.c:18:44: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned update_orig_head = opts->flags & RESET_ORIG_HEAD;
                                                  ^
/datasets/git/./reset.h:18:26: note: expanded from macro 'RESET_ORIG_HEAD'
#define RESET_ORIG_HEAD (1<<4)
                         ^
/datasets/git/reset.c:25:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct object_id *old_orig = NULL, oid_old_orig;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/reset.c:27:14: warning: variable 'reflog_action' is not initialized [cppcoreguidelines-init-variables]
        const char *reflog_action;
                    ^
                                  = NULL
/datasets/git/reset.c:28:9: warning: variable 'prefix_len' is not initialized [cppcoreguidelines-init-variables]
        size_t prefix_len;
               ^
                          = 0
/datasets/git/reset.c:29:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/reset.c:32:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!default_reflog_action)
                                           ^
                                            {
/datasets/git/reset.c:34:19: warning: function is not thread safe [concurrency-mt-unsafe]
                reflog_action = getenv(GIT_REFLOG_ACTION_ENVIRONMENT);
                                ^
/datasets/git/reset.c:41:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!get_oid("ORIG_HEAD", &oid_old_orig))
                                                         ^
                                                          {
/datasets/git/reset.c:51:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else if (old_orig)
                                    ^
                                     {
/datasets/git/reset.c:60:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!switch_to_branch)
                              ^
                               {
/datasets/git/reset.c:62:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                 detach_head ? REF_NO_DEREF : 0,
                                               ^
/datasets/git/./refs/../refs.h:631:23: note: expanded from macro 'REF_NO_DEREF'
#define REF_NO_DEREF (1 << 0)
                      ^
/datasets/git/reset.c:68:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ret)
                         ^
                          {
/datasets/git/reset.c:72:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ret && run_hook)
                             ^
                              {
/datasets/git/reset.c:80:5: warning: function 'reset_head' has cognitive complexity of 32 (threshold 25) [readability-function-cognitive-complexity]
int reset_head(struct repository *r, const struct reset_head_opts *opts)
    ^
/datasets/git/reset.c:95:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (switch_to_branch && !starts_with(switch_to_branch, "refs/"))
        ^
/datasets/git/reset.c:95:23: note: +1
        if (switch_to_branch && !starts_with(switch_to_branch, "refs/"))
                             ^
/datasets/git/reset.c:98:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->orig_head_msg && !update_orig_head)
        ^
/datasets/git/reset.c:98:26: note: +1
        if (opts->orig_head_msg && !update_orig_head)
                                ^
/datasets/git/reset.c:101:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->branch_msg && !opts->branch)
        ^
/datasets/git/reset.c:101:23: note: +1
        if (opts->branch_msg && !opts->branch)
                             ^
/datasets/git/reset.c:104:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!refs_only && repo_hold_locked_index(r, &lock, LOCK_REPORT_ON_ERROR) < 0) {
        ^
/datasets/git/reset.c:104:17: note: +1
        if (!refs_only && repo_hold_locked_index(r, &lock, LOCK_REPORT_ON_ERROR) < 0) {
                       ^
/datasets/git/reset.c:106:3: note: +1
                goto leave_reset_head;
                ^
/datasets/git/reset.c:109:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!get_oid("HEAD", &head_oid)) {
        ^
/datasets/git/reset.c:111:9: note: +1, nesting level increased to 1
        } else if (!oid || !reset_hard) {
               ^
/datasets/git/reset.c:111:18: note: +1
        } else if (!oid || !reset_hard) {
                        ^
/datasets/git/reset.c:113:3: note: +1
                goto leave_reset_head;
                ^
/datasets/git/reset.c:116:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!oid)
        ^
/datasets/git/reset.c:119:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (refs_only)
        ^
/datasets/git/reset.c:122:22: note: +1, including nesting penalty of 0, nesting level increased to 1
        action = reset_hard ? "reset" : "checkout";
                            ^
/datasets/git/reset.c:127:35: note: +1, including nesting penalty of 0, nesting level increased to 1
        unpack_tree_opts.fn = reset_hard ? oneway_merge : twoway_merge;
                                         ^
/datasets/git/reset.c:133:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (reset_hard)
        ^
/datasets/git/reset.c:136:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (repo_read_index_unmerged(r) < 0) {
        ^
/datasets/git/reset.c:138:3: note: +1
                goto leave_reset_head;
                ^
/datasets/git/reset.c:141:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!reset_hard && !fill_tree_descriptor(r, &desc[nr++], &head_oid)) {
        ^
/datasets/git/reset.c:141:18: note: +1
        if (!reset_hard && !fill_tree_descriptor(r, &desc[nr++], &head_oid)) {
                        ^
/datasets/git/reset.c:144:3: note: +1
                goto leave_reset_head;
                ^
/datasets/git/reset.c:147:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!fill_tree_descriptor(r, &desc[nr++], oid)) {
        ^
/datasets/git/reset.c:149:3: note: +1
                goto leave_reset_head;
                ^
/datasets/git/reset.c:152:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (unpack_trees(nr, desc, &unpack_tree_opts)) {
        ^
/datasets/git/reset.c:154:3: note: +1
                goto leave_reset_head;
                ^
/datasets/git/reset.c:160:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (write_locked_index(r->index, &lock, COMMIT_LOCK) < 0) {
        ^
/datasets/git/reset.c:162:3: note: +1
                goto leave_reset_head;
                ^
/datasets/git/reset.c:165:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (oid != &head_oid || update_orig_head || switch_to_branch)
        ^
/datasets/git/reset.c:165:43: note: +1
        if (oid != &head_oid || update_orig_head || switch_to_branch)
                                                 ^
/datasets/git/reset.c:171:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (nr)
        ^
/datasets/git/reset.c:80:35: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int reset_head(struct repository *r, const struct reset_head_opts *opts)
                                  ^
/datasets/git/reset.c:84:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned reset_hard = opts->flags & RESET_HEAD_HARD;
                              ^
/datasets/git/reset.c:84:38: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned reset_hard = opts->flags & RESET_HEAD_HARD;
                                            ^
/datasets/git/./reset.h:12:26: note: expanded from macro 'RESET_HEAD_HARD'
#define RESET_HEAD_HARD (1<<1)
                         ^
/datasets/git/reset.c:85:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned refs_only = opts->flags & RESET_HEAD_REFS_ONLY;
                             ^
/datasets/git/reset.c:85:37: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned refs_only = opts->flags & RESET_HEAD_REFS_ONLY;
                                           ^
/datasets/git/./reset.h:16:31: note: expanded from macro 'RESET_HEAD_REFS_ONLY'
#define RESET_HEAD_REFS_ONLY (1<<3)
                              ^
/datasets/git/reset.c:86:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned update_orig_head = opts->flags & RESET_ORIG_HEAD;
                                    ^
/datasets/git/reset.c:86:44: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned update_orig_head = opts->flags & RESET_ORIG_HEAD;
                                                  ^
/datasets/git/./reset.h:18:26: note: expanded from macro 'RESET_ORIG_HEAD'
#define RESET_ORIG_HEAD (1<<4)
                         ^
/datasets/git/reset.c:87:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct object_id *head = NULL, head_oid;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/reset.c:91:15: warning: variable 'tree' is not initialized [cppcoreguidelines-init-variables]
        struct tree *tree;
                     ^
                          = NULL
/datasets/git/reset.c:92:14: warning: variable 'action' is not initialized [cppcoreguidelines-init-variables]
        const char *action;
                    ^
                           = NULL
/datasets/git/reset.c:93:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int ret = 0, nr = 0;
        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/reset.c:93:15: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
        int ret = 0, nr = 0;
                     ^
/datasets/git/reset.c:95:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (switch_to_branch && !starts_with(switch_to_branch, "refs/"))
                                                                        ^
                                                                         {
/datasets/git/reset.c:98:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->orig_head_msg && !update_orig_head)
                                                     ^
                                                      {
/datasets/git/reset.c:101:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->branch_msg && !opts->branch)
                                              ^
                                               {
/datasets/git/reset.c:116:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!oid)
                 ^
                  {
/datasets/git/reset.c:119:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (refs_only)
                      ^
                       {
/datasets/git/reset.c:133:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (reset_hard)
                       ^
                        {
/datasets/git/reset.c:160:42: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (write_locked_index(r->index, &lock, COMMIT_LOCK) < 0) {
                                                ^
/datasets/git/./refs/../cache.h:744:23: note: expanded from macro 'COMMIT_LOCK'
#define COMMIT_LOCK             (1 << 0)
                                 ^
/datasets/git/reset.c:165:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oid != &head_oid || update_orig_head || switch_to_branch)
                                                                     ^
                                                                      {
/datasets/git/reset.c:171:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (nr)
        ^
/datasets/git/reset.c:171:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (nr)
                  ^
                   {
resolve-undo.c:7:74: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
void record_resolve_undo(struct index_state *istate, struct cache_entry *ce)
                                                                         ^
/datasets/git/resolve-undo.c:9:27: warning: variable 'lost' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *lost;
                                 ^
                                      = NULL
/datasets/git/resolve-undo.c:10:28: warning: variable 'ui' is not initialized [cppcoreguidelines-init-variables]
        struct resolve_undo_info *ui;
                                  ^
                                     = NULL
/datasets/git/resolve-undo.c:10:28: warning: variable name 'ui' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/resolve-undo.c:11:22: warning: variable 'resolve_undo' is not initialized [cppcoreguidelines-init-variables]
        struct string_list *resolve_undo;
                            ^
                                         = NULL
/datasets/git/resolve-undo.c:12:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int stage = ce_stage(ce);
                    ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/resolve-undo.c:14:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!stage)
                   ^
                    {
/datasets/git/resolve-undo.c:24:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!lost->util)
                        ^
                         {
/datasets/git/resolve-undo.c:31:40: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void resolve_undo_write(struct strbuf *sb, struct string_list *resolve_undo)
                                       ^
/datasets/git/resolve-undo.c:33:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct string_list_item *item;
        ^
/datasets/git/resolve-undo.c:33:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/resolve-undo.c:34:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(item, resolve_undo) {
                                  ^
/datasets/git/resolve-undo.c:35:29: warning: variable name 'ui' is too short, expected at least 3 characters [readability-identifier-length]
                struct resolve_undo_info *ui = item->util;
                                          ^
/datasets/git/resolve-undo.c:36:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/resolve-undo.c:36:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/resolve-undo.c:38:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ui)
                        ^
                         {
/datasets/git/resolve-undo.c:42:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < 3; i++)
                ^
/datasets/git/resolve-undo.c:42:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < 3; i++)
                                       ^
                                        {
/datasets/git/resolve-undo.c:44:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < 3; i++) {
                ^
/datasets/git/resolve-undo.c:45:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!ui->mode[i])
                                         ^
                                          {
/datasets/git/resolve-undo.c:54:22: warning: variable 'resolve_undo' is not initialized [cppcoreguidelines-init-variables]
        struct string_list *resolve_undo;
                            ^
                                         = NULL
/datasets/git/resolve-undo.c:55:9: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        size_t len;
               ^
                   = 0
/datasets/git/resolve-undo.c:56:8: warning: variable 'endptr' is not initialized [cppcoreguidelines-init-variables]
        char *endptr;
              ^
                     = NULL
/datasets/git/resolve-undo.c:57:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/resolve-undo.c:57:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/resolve-undo.c:63:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'size' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (size) {
               ^
/datasets/git/resolve-undo.c:64:28: warning: variable 'lost' is not initialized [cppcoreguidelines-init-variables]
                struct string_list_item *lost;
                                         ^
                                              = NULL
/datasets/git/resolve-undo.c:65:29: warning: variable 'ui' is not initialized [cppcoreguidelines-init-variables]
                struct resolve_undo_info *ui;
                                          ^
                                             = NULL
/datasets/git/resolve-undo.c:65:29: warning: variable name 'ui' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/resolve-undo.c:68:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (size <= len)
                                ^
                                 {
/datasets/git/resolve-undo.c:71:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!lost->util)
                                ^
                                 {
/datasets/git/resolve-undo.c:77:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < 3; i++) {
                ^
/datasets/git/resolve-undo.c:78:41: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        ui->mode[i] = strtoul(data, &endptr, 8);
                                                             ^
/datasets/git/resolve-undo.c:79:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!endptr || endptr == data || *endptr)
                                                                 ^
                                                                  {
/datasets/git/resolve-undo.c:82:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (size <= len)
                                        ^
                                         {
/datasets/git/resolve-undo.c:88:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < 3; i++) {
                ^
/datasets/git/resolve-undo.c:89:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!ui->mode[i])
                                         ^
                                          {
/datasets/git/resolve-undo.c:91:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (size < rawsz)
                                         ^
                                          {
/datasets/git/resolve-undo.c:109:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!resolve_undo)
                          ^
                           {
/datasets/git/resolve-undo.c:114:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        istate->cache_changed |= RESOLVE_UNDO_CHANGED;
        ^
/datasets/git/resolve-undo.c:114:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        istate->cache_changed |= RESOLVE_UNDO_CHANGED;
                                 ^
/datasets/git/./refs/../cache.h:302:31: note: expanded from macro 'RESOLVE_UNDO_CHANGED'
#define RESOLVE_UNDO_CHANGED    (1 << 4)
                                 ^
/datasets/git/resolve-undo.c:117:5: warning: function 'unmerge_index_entry_at' is within a recursive call chain [misc-no-recursion]
int unmerge_index_entry_at(struct index_state *istate, int pos)
    ^
/datasets/git/resolve-undo.c:117:5: note: example recursive call chain, starting from function 'unmerge_index_entry_at'
/datasets/git/resolve-undo.c:165:9: note: Frame #1: function 'unmerge_index_entry_at' calls function 'unmerge_index_entry_at' here:
        return unmerge_index_entry_at(istate, pos);
               ^
/datasets/git/resolve-undo.c:165:9: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/resolve-undo.c:119:28: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
        const struct cache_entry *ce;
                                  ^
                                     = NULL
/datasets/git/resolve-undo.c:119:28: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/resolve-undo.c:120:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/resolve-undo.c:121:28: warning: variable 'ru' is not initialized [cppcoreguidelines-init-variables]
        struct resolve_undo_info *ru;
                                  ^
                                     = NULL
/datasets/git/resolve-undo.c:121:28: warning: variable name 'ru' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/resolve-undo.c:122:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, err = 0, matched;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/resolve-undo.c:122:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, err = 0, matched;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/resolve-undo.c:122:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/resolve-undo.c:122:18: warning: variable 'matched' is not initialized [cppcoreguidelines-init-variables]
        int i, err = 0, matched;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/resolve-undo.c:123:8: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
        char *name;
              ^
                   = NULL
/datasets/git/resolve-undo.c:125:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!istate->resolve_undo)
                                  ^
                                   {
/datasets/git/resolve-undo.c:129:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (ce_stage(ce)) {
            ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/resolve-undo.c:131:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while ((pos < istate->cache_nr) &&
                ^
/datasets/git/resolve-undo.c:131:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'ce' and may cause performance degradation [altera-id-dependent-backward-branch]
                while ((pos < istate->cache_nr) &&
                       ^
/datasets/git/resolve-undo.c:132:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                       ! strcmp(istate->cache[pos]->name, ce->name))
                                                                    ^
                                                                     {
/datasets/git/resolve-undo.c:137:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!item)
                  ^
                   {
/datasets/git/resolve-undo.c:140:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ru)
                ^
                 {
/datasets/git/resolve-undo.c:142:12: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        matched = ce->ce_flags & CE_MATCHED;
                  ^
/datasets/git/resolve-undo.c:142:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
/datasets/git/resolve-undo.c:142:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        matched = ce->ce_flags & CE_MATCHED;
                                 ^
/datasets/git/./refs/../cache.h:181:31: note: expanded from macro 'CE_MATCHED'
#define CE_MATCHED           (1 << 26)
                              ^
/datasets/git/resolve-undo.c:145:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < 3; i++) {
        ^
/datasets/git/resolve-undo.c:146:23: warning: variable 'nce' is not initialized [cppcoreguidelines-init-variables]
                struct cache_entry *nce;
                                    ^
                                        = NULL
/datasets/git/resolve-undo.c:147:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ru->mode[i])
                                 ^
                                  {
/datasets/git/resolve-undo.c:153:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (matched)
                            ^
                             {
/datasets/git/resolve-undo.c:154:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        nce->ce_flags |= CE_MATCHED;
                        ^
/datasets/git/resolve-undo.c:154:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        nce->ce_flags |= CE_MATCHED;
                                         ^
/datasets/git/./refs/../cache.h:181:31: note: expanded from macro 'CE_MATCHED'
#define CE_MATCHED           (1 << 26)
                              ^
/datasets/git/resolve-undo.c:161:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err)
                ^
                 {
/datasets/git/resolve-undo.c:170:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/resolve-undo.c:170:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/resolve-undo.c:172:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!istate->resolve_undo)
                                  ^
                                   {
/datasets/git/resolve-undo.c:177:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < istate->cache_nr; i++) {
        ^
/datasets/git/resolve-undo.c:177:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < istate->cache_nr; i++) {
                    ^
/datasets/git/resolve-undo.c:178:29: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                const struct cache_entry *ce = istate->cache[i];
                                          ^
/datasets/git/resolve-undo.c:179:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce->ce_flags & CE_MATCHED)
                    ^
/datasets/git/resolve-undo.c:179:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce->ce_flags & CE_MATCHED)
                                   ^
/datasets/git/./refs/../cache.h:181:31: note: expanded from macro 'CE_MATCHED'
#define CE_MATCHED           (1 << 26)
                              ^
/datasets/git/resolve-undo.c:179:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ce->ce_flags & CE_MATCHED)
                                              ^
                                               {
/datasets/git/resolve-undo.c:186:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/resolve-undo.c:186:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/resolve-undo.c:188:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!istate->resolve_undo)
                                  ^
                                   {
/datasets/git/resolve-undo.c:193:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < istate->cache_nr; i++) {
        ^
/datasets/git/resolve-undo.c:193:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < istate->cache_nr; i++) {
                    ^
/datasets/git/resolve-undo.c:194:29: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                const struct cache_entry *ce = istate->cache[i];
                                          ^
/datasets/git/resolve-undo.c:195:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ce_path_match(istate, ce, pathspec, NULL))
                                                               ^
                                                                {
/datasets/git/revision.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "bisect.h"
/datasets/git/revision.c:39:33: warning: variable 'show_early_output' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
volatile show_early_output_fn_t show_early_output;
                                ^
/datasets/git/revision.c:41:20: warning: variable 'term_bad' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *term_bad;
                   ^
/datasets/git/revision.c:42:20: warning: variable 'term_good' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *term_good;
                   ^
/datasets/git/revision.c:44:1: warning: backward branch (for loop) is ID-dependent due to member reference to 'slab_size' and may cause performance degradation [altera-id-dependent-backward-branch]
implement_shared_commit_slab(revision_sources, char *);
^
/datasets/git/./commit-slab-impl.h:10:2: note: expanded from macro 'implement_shared_commit_slab'
        implement_commit_slab(slabname, elemtype, )
        ^
/datasets/git/./commit-slab-impl.h:48:15: note: expanded from macro 'implement_commit_slab'
                for (j = 0; j < s->slab_size; j++)                      \
                            ^
/datasets/git/revision.c:44:1: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
implement_shared_commit_slab(revision_sources, char *);
^
/datasets/git/./commit-slab-impl.h:10:2: note: expanded from macro 'implement_shared_commit_slab'
        implement_commit_slab(slabname, elemtype, )
        ^
/datasets/git/./commit-slab-impl.h:68:27: note: expanded from macro 'implement_commit_slab'
                for (i = s->slab_count; i <= nth_slab; i++)             \
                                        ^
/datasets/git/revision.c:44:1: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
implement_shared_commit_slab(revision_sources, char *);
^
/datasets/git/./commit-slab-impl.h:10:2: note: expanded from macro 'implement_shared_commit_slab'
        implement_commit_slab(slabname, elemtype, )
        ^
/datasets/git/./commit-slab-impl.h:35:2: note: expanded from macro 'implement_commit_slab'
        for (i = 0; i < s->slab_count; i++)                             \
        ^
/datasets/git/revision.c:44:1: warning: result of multiplication in type 'unsigned int' is used as a pointer offset after an implicit widening conversion to type 'size_t' [bugprone-implicit-widening-of-multiplication-result]
implement_shared_commit_slab(revision_sources, char *);
^
/datasets/git/./commit-slab-impl.h:10:2: note: expanded from macro 'implement_shared_commit_slab'
        implement_commit_slab(slabname, elemtype, )
        ^
/datasets/git/./commit-slab-impl.h:49:13: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                 ^
/datasets/git/revision.c:44:1: note: make conversion explicit to silence this warning
implement_shared_commit_slab(revision_sources, char *);
^
/datasets/git/./commit-slab-impl.h:10:2: note: expanded from macro 'implement_shared_commit_slab'
        implement_commit_slab(slabname, elemtype, )
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:49:24: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                            ^~~~~~~~~~~~~
/datasets/git/revision.c:44:1: note: perform multiplication in a wider type
implement_shared_commit_slab(revision_sources, char *);
^
/datasets/git/./commit-slab-impl.h:10:2: note: expanded from macro 'implement_shared_commit_slab'
        implement_commit_slab(slabname, elemtype, )
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:49:24: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                            ^
/datasets/git/revision.c:44:1: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
implement_shared_commit_slab(revision_sources, char *);
^
/datasets/git/./commit-slab-impl.h:10:2: note: expanded from macro 'implement_shared_commit_slab'
        implement_commit_slab(slabname, elemtype, )
        ^
/datasets/git/./commit-slab-impl.h:55:30: note: expanded from macro 'implement_commit_slab'
                                                  const struct commit *c, \
                                                                       ^
/datasets/git/revision.c:44:1: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
implement_shared_commit_slab(revision_sources, char *);
^
/datasets/git/./commit-slab-impl.h:10:2: note: expanded from macro 'implement_shared_commit_slab'
        implement_commit_slab(slabname, elemtype, )
        ^
/datasets/git/./commit-slab-impl.h:14:61: note: expanded from macro 'implement_commit_slab'
scope void init_ ##slabname## _with_stride(struct slabname *s,          \
                                                            ^
/datasets/git/revision.c:44:1: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
implement_shared_commit_slab(revision_sources, char *);
^
/datasets/git/./commit-slab-impl.h:10:2: note: expanded from macro 'implement_shared_commit_slab'
        implement_commit_slab(slabname, elemtype, )
        ^
/datasets/git/./commit-slab-impl.h:34:15: note: expanded from macro 'implement_commit_slab'
        unsigned int i;                                                 \
                     ^
/datasets/git/revision.c:44:1: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
implement_shared_commit_slab(revision_sources, char *);
^
/datasets/git/./commit-slab-impl.h:10:2: note: expanded from macro 'implement_shared_commit_slab'
        implement_commit_slab(slabname, elemtype, )
        ^
/datasets/git/./commit-slab-impl.h:45:16: note: expanded from macro 'implement_commit_slab'
                unsigned int j;                                         \
                             ^
/datasets/git/revision.c:44:1: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
implement_shared_commit_slab(revision_sources, char *);
^
/datasets/git/./commit-slab-impl.h:10:2: note: expanded from macro 'implement_shared_commit_slab'
        implement_commit_slab(slabname, elemtype, )
        ^
/datasets/git/./commit-slab-impl.h:58:2: note: expanded from macro 'implement_commit_slab'
        unsigned int nth_slab, nth_slot;                                \
        ^
/datasets/git/revision.c:44:1: note: inferred assignment of ID-dependent value from ID-dependent member slab_count [altera-id-dependent-backward-branch]
implement_shared_commit_slab(revision_sources, char *);
^
/datasets/git/./commit-slab-impl.h:10:2: note: expanded from macro 'implement_shared_commit_slab'
        implement_commit_slab(slabname, elemtype, )
        ^
/datasets/git/./commit-slab-impl.h:64:3: note: expanded from macro 'implement_commit_slab'
                unsigned int i;                                         \
                ^
/datasets/git/revision.c:50:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(out, "%s ", oid_to_hex(&obj->oid));
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:50:2: note: cast the expression to void to silence this warning
/datasets/git/revision.c:51:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (const char *p = name; *p && *p != '\n'; p++)
        ^
/datasets/git/revision.c:51:19: warning: loop variable name 'p' is too short, expected at least 2 characters [readability-identifier-length]
        for (const char *p = name; *p && *p != '\n'; p++)
                         ^
/datasets/git/revision.c:51:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (const char *p = name; *p && *p != '\n'; p++)
                                   ^
/datasets/git/revision.c:51:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (const char *p = name; *p && *p != '\n'; p++)
                                                         ^
                                                          {
/datasets/git/revision.c:52:3: warning: the value returned by this function should be used [cert-err33-c]
                fputc(*p, out);
                ^~~~~~~~~~~~~~
/datasets/git/revision.c:52:3: note: cast the expression to void to silence this warning
/datasets/git/revision.c:53:2: warning: the value returned by this function should be used [cert-err33-c]
        fputc('\n', out);
        ^~~~~~~~~~~~~~~~
/datasets/git/revision.c:53:2: note: cast the expression to void to silence this warning
/datasets/git/revision.c:58:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!blob)
                  ^
                   {
/datasets/git/revision.c:60:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (blob->object.flags & UNINTERESTING)
                                 ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/revision.c:60:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (blob->object.flags & UNINTERESTING)
                                               ^
                                                {
/datasets/git/revision.c:62:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        blob->object.flags |= UNINTERESTING;
                              ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/revision.c:65:13: warning: function 'mark_tree_contents_uninteresting' is within a recursive call chain [misc-no-recursion]
static void mark_tree_contents_uninteresting(struct repository *r,
            ^
/datasets/git/revision.c:96:6: note: example recursive call chain, starting from function 'mark_tree_uninteresting'
void mark_tree_uninteresting(struct repository *r, struct tree *tree)
     ^
/datasets/git/revision.c:107:2: note: Frame #1: function 'mark_tree_uninteresting' calls function 'mark_tree_contents_uninteresting' here:
        mark_tree_contents_uninteresting(r, tree);
        ^
/datasets/git/revision.c:78:4: note: Frame #2: function 'mark_tree_contents_uninteresting' calls function 'mark_tree_uninteresting' here:
                        mark_tree_uninteresting(r, lookup_tree(r, &entry.oid));
                        ^
/datasets/git/revision.c:78:4: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/revision.c:65:65: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void mark_tree_contents_uninteresting(struct repository *r,
                                                                ^
/datasets/git/revision.c:71:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_tree_gently(tree, 1) < 0)
                                           ^
                                            {
/datasets/git/revision.c:75:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (tree_entry(&desc, &entry)) {
        ^
/datasets/git/revision.c:96:6: warning: function 'mark_tree_uninteresting' is within a recursive call chain [misc-no-recursion]
void mark_tree_uninteresting(struct repository *r, struct tree *tree)
     ^
/datasets/git/revision.c:96:49: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void mark_tree_uninteresting(struct repository *r, struct tree *tree)
                                                ^
/datasets/git/revision.c:98:17: warning: variable 'obj' is not initialized [cppcoreguidelines-init-variables]
        struct object *obj;
                       ^
                           = NULL
/datasets/git/revision.c:100:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!tree)
                  ^
                   {
/datasets/git/revision.c:104:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (obj->flags & UNINTERESTING)
                         ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/revision.c:104:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (obj->flags & UNINTERESTING)
                                       ^
                                        {
/datasets/git/revision.c:106:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        obj->flags |= UNINTERESTING;
                      ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/revision.c:110:8: warning: accessing fields in struct 'path_and_oids_entry' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct path_and_oids_entry {
       ^
/datasets/git/revision.c:110:8: note: use "__attribute__((aligned(64)))" to align struct 'path_and_oids_entry' to 64 bytes
/datasets/git/revision.c:117:9: warning: 2 adjacent parameters of 'path_and_oids_cmp' of similar type ('const struct hashmap_entry *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                             const struct hashmap_entry *eptr,
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:117:37: note: the first parameter in the range is 'eptr'
                             const struct hashmap_entry *eptr,
                                                         ^~~~
/datasets/git/revision.c:118:37: note: the last parameter in the range is 'entry_or_key'
                             const struct hashmap_entry *entry_or_key,
                                                         ^~~~~~~~~~~~
/datasets/git/revision.c:121:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const struct path_and_oids_entry *e1, *e2;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:121:36: warning: variable 'e1' is not initialized [cppcoreguidelines-init-variables]
        const struct path_and_oids_entry *e1, *e2;
                                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:121:36: warning: variable name 'e1' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:121:41: warning: variable 'e2' is not initialized [cppcoreguidelines-init-variables]
        const struct path_and_oids_entry *e1, *e2;
                                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:121:41: warning: variable name 'e2' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:132:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct path_and_oids_entry *entry;
        ^
/datasets/git/revision.c:132:30: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
        struct path_and_oids_entry *entry;
                                    ^
                                          = NULL
/datasets/git/revision.c:134:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        hashmap_for_each_entry(map, &iter, entry, ent /* member name */) {
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/revision.c:134:37: warning: backward branch (for loop) is ID-dependent due to variable reference to 'entry' and may cause performance degradation [altera-id-dependent-backward-branch]
        hashmap_for_each_entry(map, &iter, entry, ent /* member name */) {
                                           ^
/datasets/git/revision.c:146:13: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int hash = strhash(path);
                   ^
/datasets/git/revision.c:148:30: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
        struct path_and_oids_entry *entry;
                                    ^
                                          = NULL
/datasets/git/revision.c:161:30: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                oidset_init(&entry->trees, 16);
                                           ^
/datasets/git/revision.c:168:53: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void add_children_by_path(struct repository *r,
                                                    ^
/datasets/git/revision.c:175:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!tree)
                  ^
                   {
/datasets/git/revision.c:178:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_tree_gently(tree, 1) < 0)
                                           ^
                                            {
/datasets/git/revision.c:182:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (tree_entry(&desc, &entry)) {
        ^
/datasets/git/revision.c:187:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (tree->object.flags & UNINTERESTING) {
                                                 ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/revision.c:189:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (child)
                                          ^
                                           {
/datasets/git/revision.c:190:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        child->object.flags |= UNINTERESTING;
                                                               ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/revision.c:194:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (tree->object.flags & UNINTERESTING) {
                                                 ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/revision.c:196:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (child)
                                          ^
                                           {
/datasets/git/revision.c:197:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        child->object.flags |= UNINTERESTING;
                                                               ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/revision.c:209:6: warning: function 'mark_trees_uninteresting_sparse' is within a recursive call chain [misc-no-recursion]
void mark_trees_uninteresting_sparse(struct repository *r,
     ^
/datasets/git/revision.c:209:6: note: example recursive call chain, starting from function 'mark_trees_uninteresting_sparse'
/datasets/git/revision.c:244:3: note: Frame #1: function 'mark_trees_uninteresting_sparse' calls function 'mark_trees_uninteresting_sparse' here:
                mark_trees_uninteresting_sparse(r, &entry->trees);
                ^
/datasets/git/revision.c:244:3: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/revision.c:209:57: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void mark_trees_uninteresting_sparse(struct repository *r,
                                                        ^
/datasets/git/revision.c:212:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned has_interesting = 0, has_uninteresting = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:216:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct object_id *oid;
        ^
/datasets/git/revision.c:215:30: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
        struct path_and_oids_entry *entry;
                                    ^
                                          = NULL
/datasets/git/revision.c:216:20: warning: variable 'oid' is not initialized [cppcoreguidelines-init-variables]
        struct object_id *oid;
                          ^
                              = NULL
/datasets/git/revision.c:220:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((!has_interesting || !has_uninteresting) &&
        ^
/datasets/git/revision.c:220:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'oid' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((!has_interesting || !has_uninteresting) &&
               ^
/datasets/git/revision.c:224:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!tree)
                          ^
                           {
/datasets/git/revision.c:227:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (tree->object.flags & UNINTERESTING)
                                         ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/revision.c:227:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (tree->object.flags & UNINTERESTING)
                                                       ^
                                                        {
/datasets/git/revision.c:229:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/revision.c:234:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!has_uninteresting || !has_interesting)
                                                   ^
                                                    {
/datasets/git/revision.c:238:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((oid = oidset_iter_next(&iter))) {
        ^
/datasets/git/revision.c:215:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct path_and_oids_entry *entry;
        ^
/datasets/git/revision.c:238:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'oid' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((oid = oidset_iter_next(&iter))) {
               ^
/datasets/git/revision.c:243:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        hashmap_for_each_entry(&map, &map_iter, entry, ent /* member name */)
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/revision.c:243:42: warning: backward branch (for loop) is ID-dependent due to variable reference to 'entry' and may cause performance degradation [altera-id-dependent-backward-branch]
        hashmap_for_each_entry(&map, &map_iter, entry, ent /* member name */)
                                                ^
/datasets/git/revision.c:249:8: warning: accessing fields in struct 'commit_stack' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct commit_stack {
       ^
/datasets/git/revision.c:249:8: note: use "__attribute__((aligned(32)))" to align struct 'commit_stack' to 32 bytes
/datasets/git/revision.c:257:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(stack->items, stack->nr + 1, stack->alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/revision.c:257:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_GROW(stack->items, stack->nr + 1, stack->alloc);
        ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/revision.c:268:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(stack->items);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/revision.c:275:22: warning: variable 'l' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *l;
                            ^
                              = NULL
/datasets/git/revision.c:275:22: warning: variable name 'l' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:277:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (commit->object.flags & UNINTERESTING)
                                   ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/revision.c:277:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (commit->object.flags & UNINTERESTING)
                                                 ^
                                                  {
/datasets/git/revision.c:279:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        commit->object.flags |= UNINTERESTING;
                                ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/revision.c:289:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (l = commit->parents; l; l = l->next) {
        ^
/datasets/git/revision.c:289:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'l' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (l = commit->parents; l; l = l->next) {
                                  ^
/datasets/git/revision.c:291:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (revs && revs->exclude_first_parent_only)
                                                            ^
                                                             {
/datasets/git/revision.c:299:22: warning: variable 'l' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *l;
                            ^
                              = NULL
/datasets/git/revision.c:299:22: warning: variable name 'l' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:301:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (l = commit->parents; l; l = l->next) {
        ^
/datasets/git/revision.c:301:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'l' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (l = commit->parents; l; l = l->next) {
                                  ^
/datasets/git/revision.c:303:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (revs && revs->exclude_first_parent_only)
                                                            ^
                                                             {
/datasets/git/revision.c:307:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (pending.nr > 0)
        ^
/datasets/git/revision.c:307:9: warning: backward branch (while loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (pending.nr > 0)
               ^
/datasets/git/revision.c:307:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (pending.nr > 0)
                              ^
                               {
/datasets/git/revision.c:320:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!obj)
                 ^
                  {
/datasets/git/revision.c:322:37: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (revs->no_walk && (obj->flags & UNINTERESTING))
                                           ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/revision.c:322:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->no_walk && (obj->flags & UNINTERESTING))
                                                          ^
                                                           {
/datasets/git/revision.c:329:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (0 < len && len < namelen && buf.len)
                                                        ^
                                                         {
/datasets/git/revision.c:356:17: warning: variable 'obj' is not initialized [cppcoreguidelines-init-variables]
        struct object *obj;
                       ^
                           = NULL
/datasets/git/revision.c:357:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid("HEAD", &oid))
                                  ^
                                   {
/datasets/git/revision.c:360:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!obj)
                 ^
                  {
/datasets/git/revision.c:369:17: warning: variable 'object' is not initialized [cppcoreguidelines-init-variables]
        struct object *object;
                       ^
                              = NULL
/datasets/git/revision.c:376:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (revs->ignore_missing)
                                         ^
                                          {
/datasets/git/revision.c:378:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (revs->exclude_promisor_objects && is_promisor_object(oid))
                                                                              ^
                                                                               {
/datasets/git/revision.c:393:23: warning: function 'handle_commit' has cognitive complexity of 38 (threshold 25) [readability-function-cognitive-complexity]
static struct commit *handle_commit(struct rev_info *revs,
                      ^
/datasets/git/revision.c:405:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (object->type == OBJ_TAG) {
        ^
/datasets/git/revision.c:407:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (revs->tag_objects && !(flags & UNINTERESTING))
                ^
/datasets/git/revision.c:407:25: note: +1
                if (revs->tag_objects && !(flags & UNINTERESTING))
                                      ^
/datasets/git/revision.c:410:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!object) {
                ^
/datasets/git/revision.c:411:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (revs->ignore_missing_links || (flags & UNINTERESTING))
                        ^
/datasets/git/revision.c:411:35: note: +1
                        if (revs->ignore_missing_links || (flags & UNINTERESTING))
                                                       ^
/datasets/git/revision.c:413:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (revs->exclude_promisor_objects &&
                        ^
/datasets/git/revision.c:413:39: note: +1
                        if (revs->exclude_promisor_objects &&
                                                           ^
/datasets/git/revision.c:432:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (object->type == OBJ_COMMIT) {
        ^
/datasets/git/revision.c:435:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (repo_parse_commit(revs->repo, commit) < 0)
                ^
/datasets/git/revision.c:437:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (flags & UNINTERESTING) {
                ^
/datasets/git/revision.c:440:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!revs->topo_order || !generation_numbers_enabled(the_repository))
                        ^
/datasets/git/revision.c:440:26: note: +1
                        if (!revs->topo_order || !generation_numbers_enabled(the_repository))
                                              ^
/datasets/git/revision.c:443:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (revs->sources) {
                ^
/datasets/git/revision.c:446:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!*slot)
                        ^
/datasets/git/revision.c:456:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (object->type == OBJ_TREE) {
        ^
/datasets/git/revision.c:458:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!revs->tree_objects)
                ^
/datasets/git/revision.c:460:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (flags & UNINTERESTING) {
                ^
/datasets/git/revision.c:471:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (object->type == OBJ_BLOB) {
        ^
/datasets/git/revision.c:472:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!revs->blob_objects)
                ^
/datasets/git/revision.c:474:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (flags & UNINTERESTING)
                ^
/datasets/git/revision.c:396:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct object *object = entry->item;
        ^
/datasets/git/revision.c:405:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (object->type == OBJ_TAG) {
        ^
/datasets/git/revision.c:405:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'object' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (object->type == OBJ_TAG) {
               ^
/datasets/git/revision.c:407:38: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (revs->tag_objects && !(flags & UNINTERESTING))
                                                   ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/revision.c:407:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (revs->tag_objects && !(flags & UNINTERESTING))
                                                                  ^
                                                                   {
/datasets/git/revision.c:411:47: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (revs->ignore_missing_links || (flags & UNINTERESTING))
                                                                   ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/revision.c:411:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (revs->ignore_missing_links || (flags & UNINTERESTING))
                                                                                  ^
                                                                                   {
/datasets/git/revision.c:414:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            is_promisor_object(&tag->tagged->oid))
                                                                  ^
                                                                   {
/datasets/git/revision.c:435:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (repo_parse_commit(revs->repo, commit) < 0)
                                                              ^
                                                               {
/datasets/git/revision.c:437:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flags & UNINTERESTING) {
                            ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/revision.c:440:73: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!revs->topo_order || !generation_numbers_enabled(the_repository))
                                                                                             ^
                                                                                              {
/datasets/git/revision.c:446:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!*slot)
                                   ^
                                    {
/datasets/git/revision.c:458:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!revs->tree_objects)
                                        ^
                                         {
/datasets/git/revision.c:460:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flags & UNINTERESTING) {
                            ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/revision.c:472:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!revs->blob_objects)
                                        ^
                                         {
/datasets/git/revision.c:474:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flags & UNINTERESTING)
                            ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/revision.c:485:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct commit_list *list = orig;
        ^
/datasets/git/revision.c:474:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (flags & UNINTERESTING)
                                          ^
                                           {
/datasets/git/revision.c:489:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(commit->object.flags & UNINTERESTING))
                                             ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/revision.c:489:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(commit->object.flags & UNINTERESTING))
                                                            ^
                                                             {
/datasets/git/revision.c:493:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (list) {
        ^
/datasets/git/revision.c:493:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'list' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (list) {
               ^
/datasets/git/revision.c:496:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (commit->object.flags & UNINTERESTING)
                                           ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/revision.c:496:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (commit->object.flags & UNINTERESTING)
                                                         ^
                                                          {
/datasets/git/revision.c:533:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return (commit->object.flags & (UNINTERESTING | BOTTOM)) != UNINTERESTING;
                                        ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/revision.c:533:50: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return (commit->object.flags & (UNINTERESTING | BOTTOM)) != UNINTERESTING;
                                                        ^
/datasets/git/./revision.h:37:18: note: expanded from macro 'BOTTOM'
#define BOTTOM          (1u<<10)
                         ^   ~~
/datasets/git/revision.c:533:62: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return (commit->object.flags & (UNINTERESTING | BOTTOM)) != UNINTERESTING;
                                                                    ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/revision.c:547:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!orig)
                  ^
                   {
/datasets/git/revision.c:555:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->first_parent_only || !orig->next)
                                                   ^
                                                    {
/datasets/git/revision.c:567:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (list) {
        ^
/datasets/git/revision.c:567:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'list' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (list) {
               ^
/datasets/git/revision.c:571:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (relevant)
                                     ^
                                      {
/datasets/git/revision.c:596:1: warning: replace macro with enum [modernize-macro-to-enum]
#define REV_TREE_SAME           0
^~~~~~~~
                      =          ,
/datasets/git/revision.c:596:9: warning: macro 'REV_TREE_SAME' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define REV_TREE_SAME           0
        ^
/datasets/git/revision.c:597:9: warning: macro 'REV_TREE_NEW' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define REV_TREE_NEW            1       /* Only new files */
        ^
/datasets/git/revision.c:598:9: warning: macro 'REV_TREE_OLD' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define REV_TREE_OLD            2       /* Only files removed */
        ^
/datasets/git/revision.c:599:9: warning: macro 'REV_TREE_DIFFERENT' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define REV_TREE_DIFFERENT      3       /* Mixed changes */
        ^
/datasets/git/revision.c:600:12: warning: variable 'tree_difference' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int tree_difference = REV_TREE_SAME;
           ^
/datasets/git/revision.c:603:7: warning: 2 adjacent parameters of 'file_add_remove' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                    int addremove, unsigned mode,
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:603:11: note: the first parameter in the range is 'addremove'
                    int addremove, unsigned mode,
                        ^~~~~~~~~
/datasets/git/revision.c:603:31: note: the last parameter in the range is 'mode'
                    int addremove, unsigned mode,
                                            ^~~~
/datasets/git/revision.c:603:22: note: 'int' and 'unsigned int' may be implicitly converted
                    int addremove, unsigned mode,
                                   ^
/datasets/git/revision.c:603:31: warning: parameter 'mode' is unused [misc-unused-parameters]
                    int addremove, unsigned mode,
                                            ^
/datasets/git/revision.c:604:31: warning: parameter 'oid' is unused [misc-unused-parameters]
                    const struct object_id *oid,
                                            ^
/datasets/git/revision.c:605:11: warning: parameter 'oid_valid' is unused [misc-unused-parameters]
                    int oid_valid,
                        ^
/datasets/git/revision.c:606:19: warning: parameter 'fullpath' is unused [misc-unused-parameters]
                    const char *fullpath, unsigned dirty_submodule)
                                ^
/datasets/git/revision.c:606:38: warning: parameter 'dirty_submodule' is unused [misc-unused-parameters]
                    const char *fullpath, unsigned dirty_submodule)
                                                   ^
/datasets/git/revision.c:611:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        tree_difference |= diff;
        ^~~~~~~~~~~~~~~
/datasets/git/revision.c:612:67: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!revs->remove_empty_trees || tree_difference != REV_TREE_NEW)
                                                                         ^
                                                                          {
/datasets/git/revision.c:617:4: warning: 2 adjacent parameters of 'file_change' of similar type ('unsigned int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                 unsigned old_mode, unsigned new_mode,
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:617:13: note: the first parameter in the range is 'old_mode'
                 unsigned old_mode, unsigned new_mode,
                          ^~~~~~~~
/datasets/git/revision.c:617:32: note: the last parameter in the range is 'new_mode'
                 unsigned old_mode, unsigned new_mode,
                                             ^~~~~~~~
/datasets/git/revision.c:617:13: warning: parameter 'old_mode' is unused [misc-unused-parameters]
                 unsigned old_mode, unsigned new_mode,
                          ^
/datasets/git/revision.c:617:32: warning: parameter 'new_mode' is unused [misc-unused-parameters]
                 unsigned old_mode, unsigned new_mode,
                                             ^
/datasets/git/revision.c:618:4: warning: 2 adjacent parameters of 'file_change' of similar type ('const struct object_id *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                 const struct object_id *old_oid,
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:618:28: note: the first parameter in the range is 'old_oid'
                 const struct object_id *old_oid,
                                         ^~~~~~~
/datasets/git/revision.c:619:28: note: the last parameter in the range is 'new_oid'
                 const struct object_id *new_oid,
                                         ^~~~~~~
/datasets/git/revision.c:618:28: warning: parameter 'old_oid' is unused [misc-unused-parameters]
                 const struct object_id *old_oid,
                                         ^
/datasets/git/revision.c:619:28: warning: parameter 'new_oid' is unused [misc-unused-parameters]
                 const struct object_id *new_oid,
                                         ^
/datasets/git/revision.c:620:4: warning: 2 adjacent parameters of 'file_change' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                 int old_oid_valid, int new_oid_valid,
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:620:8: note: the first parameter in the range is 'old_oid_valid'
                 int old_oid_valid, int new_oid_valid,
                     ^~~~~~~~~~~~~
/datasets/git/revision.c:620:27: note: the last parameter in the range is 'new_oid_valid'
                 int old_oid_valid, int new_oid_valid,
                                        ^~~~~~~~~~~~~
/datasets/git/revision.c:620:8: warning: parameter 'old_oid_valid' is unused [misc-unused-parameters]
                 int old_oid_valid, int new_oid_valid,
                     ^
/datasets/git/revision.c:620:27: warning: parameter 'new_oid_valid' is unused [misc-unused-parameters]
                 int old_oid_valid, int new_oid_valid,
                                        ^
/datasets/git/revision.c:621:16: warning: parameter 'fullpath' is unused [misc-unused-parameters]
                 const char *fullpath,
                             ^
/datasets/git/revision.c:622:4: warning: 2 adjacent parameters of 'file_change' of similar type ('unsigned int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                 unsigned old_dirty_submodule, unsigned new_dirty_submodule)
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:622:13: note: the first parameter in the range is 'old_dirty_submodule'
                 unsigned old_dirty_submodule, unsigned new_dirty_submodule)
                          ^~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:622:43: note: the last parameter in the range is 'new_dirty_submodule'
                 unsigned old_dirty_submodule, unsigned new_dirty_submodule)
                                                        ^~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:622:13: warning: parameter 'old_dirty_submodule' is unused [misc-unused-parameters]
                 unsigned old_dirty_submodule, unsigned new_dirty_submodule)
                          ^
/datasets/git/revision.c:622:43: warning: parameter 'new_dirty_submodule' is unused [misc-unused-parameters]
                 unsigned old_dirty_submodule, unsigned new_dirty_submodule)
                                                        ^
/datasets/git/revision.c:628:12: warning: variable 'bloom_filter_atexit_registered' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int bloom_filter_atexit_registered;
           ^
/datasets/git/revision.c:629:21: warning: variable 'count_bloom_filter_maybe' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned int count_bloom_filter_maybe;
                    ^
/datasets/git/revision.c:630:21: warning: variable 'count_bloom_filter_definitely_not' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned int count_bloom_filter_definitely_not;
                    ^
/datasets/git/revision.c:631:21: warning: variable 'count_bloom_filter_false_positive' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned int count_bloom_filter_false_positive;
                    ^
/datasets/git/revision.c:632:21: warning: variable 'count_bloom_filter_not_present' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned int count_bloom_filter_not_present;
                    ^
/datasets/git/revision.c:636:21: warning: variable name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
        struct json_writer jw = JSON_WRITER_INIT;
                           ^
/datasets/git/revision.c:652:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (spec->has_wildcard)
                               ^
                                {
/datasets/git/revision.c:654:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (spec->nr > 1)
                         ^
                          {
/datasets/git/revision.c:656:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (spec->magic & ~PATHSPEC_LITERAL)
            ^             ~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:656:20: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
        if (spec->magic & ~PATHSPEC_LITERAL)
                          ^
/datasets/git/revision.c:656:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (spec->magic & ~PATHSPEC_LITERAL)
                           ^
/datasets/git/./pathspec.h:9:27: note: expanded from macro 'PATHSPEC_LITERAL'
#define PATHSPEC_LITERAL        (1<<2)
                                 ^
/datasets/git/revision.c:656:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (spec->magic & ~PATHSPEC_LITERAL)
                                            ^
                                             {
/datasets/git/revision.c:658:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (spec->nr && (spec->items[0].magic & ~PATHSPEC_LITERAL))
                         ^                      ~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:658:42: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
        if (spec->nr && (spec->items[0].magic & ~PATHSPEC_LITERAL))
                                                ^
/datasets/git/revision.c:658:43: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (spec->nr && (spec->items[0].magic & ~PATHSPEC_LITERAL))
                                                 ^
/datasets/git/./pathspec.h:9:27: note: expanded from macro 'PATHSPEC_LITERAL'
#define PATHSPEC_LITERAL        (1<<2)
                                 ^
/datasets/git/revision.c:658:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (spec->nr && (spec->items[0].magic & ~PATHSPEC_LITERAL))
                                                                   ^
                                                                    {
/datasets/git/revision.c:666:24: warning: variable 'pi' is not initialized [cppcoreguidelines-init-variables]
        struct pathspec_item *pi;
                              ^
                                 = NULL
/datasets/git/revision.c:666:24: warning: variable name 'pi' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:668:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *path, *p;
        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:668:14: warning: variable 'path' is not initialized [cppcoreguidelines-init-variables]
        const char *path, *p;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:668:21: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        const char *path, *p;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:668:21: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:669:9: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        size_t len;
               ^
                   = 0
/datasets/git/revision.c:672:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!revs->commits)
                           ^
                            {
/datasets/git/revision.c:675:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (forbid_bloom_filters(&revs->prune_data))
                                                    ^
                                                     {
/datasets/git/revision.c:681:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!revs->bloom_filter_settings)
                                         ^
                                          {
/datasets/git/revision.c:684:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!revs->pruning.pathspec.nr)
                                       ^
                                        {
/datasets/git/revision.c:693:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/revision.c:704:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*p) {
        ^
/datasets/git/revision.c:668:2: note: inferred assignment of ID-dependent value from ID-dependent variable path [altera-id-dependent-backward-branch]
        const char *path, *p;
        ^
/datasets/git/revision.c:704:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (*p) {
               ^
/datasets/git/revision.c:710:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*p == '/')
                              ^
                               {
/datasets/git/revision.c:723:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (p > path) {
        ^
/datasets/git/revision.c:723:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (p > path) {
               ^
/datasets/git/revision.c:724:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*p == '/')
                              ^
                               {
/datasets/git/revision.c:732:3: warning: the value returned by this function should be used [cert-err33-c]
                atexit(trace2_bloom_filter_statistics_atexit);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:732:3: note: cast the expression to void to silence this warning
/datasets/git/revision.c:742:23: warning: variable 'filter' is not initialized [cppcoreguidelines-init-variables]
        struct bloom_filter *filter;
                             ^
                                    = NULL
/datasets/git/revision.c:743:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int result = 1, j;
        ^~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:743:18: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int result = 1, j;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:743:18: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:745:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!revs->repo->objects->commit_graph)
                                               ^
                                                {
/datasets/git/revision.c:748:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (commit_graph_generation(commit) == GENERATION_NUMBER_INFINITY)
                                               ^
/datasets/git/./negotiator/../commit.h:14:38: note: expanded from macro 'GENERATION_NUMBER_INFINITY'
#define GENERATION_NUMBER_INFINITY ((1ULL << 63) - 1)
                                     ^       ~~
/datasets/git/revision.c:748:68: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (commit_graph_generation(commit) == GENERATION_NUMBER_INFINITY)
                                                                          ^
                                                                           {
/datasets/git/revision.c:758:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (j = 0; result && j < revs->bloom_keys_nr; j++) {
        ^
/datasets/git/revision.c:758:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'result' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (j = 0; result && j < revs->bloom_keys_nr; j++) {
                    ^
/datasets/git/revision.c:764:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (result)
                   ^
                    {
/datasets/git/revision.c:766:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/revision.c:775:15: warning: variable name 't1' is too short, expected at least 3 characters [readability-identifier-length]
        struct tree *t1 = get_commit_tree(parent);
                     ^
/datasets/git/revision.c:776:15: warning: variable name 't2' is too short, expected at least 3 characters [readability-identifier-length]
        struct tree *t2 = get_commit_tree(commit);
                     ^
/datasets/git/revision.c:779:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!t1)
                ^
                 {
/datasets/git/revision.c:781:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!t2)
                ^
                 {
/datasets/git/revision.c:789:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (get_name_decoration(&commit->object))
                                                         ^
                                                          {
/datasets/git/revision.c:798:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!revs->prune_data.nr)
                                         ^
                                          {
/datasets/git/revision.c:805:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (bloom_ret == 0)
                                   ^
                                    {
/datasets/git/revision.c:813:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!nth_parent)
                        ^
                         {
/datasets/git/revision.c:814:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (bloom_ret == 1 && tree_difference == REV_TREE_SAME)
                                                                       ^
                                                                        {
/datasets/git/revision.c:822:15: warning: variable name 't1' is too short, expected at least 3 characters [readability-identifier-length]
        struct tree *t1 = get_commit_tree(commit);
                     ^
/datasets/git/revision.c:824:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!t1)
                ^
                 {
/datasets/git/revision.c:841:11: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned n = commit_list_count(commit->parents);
                 ^
/datasets/git/revision.c:842:25: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct treesame_state *st = xcalloc(1, st_add(sizeof(*st), n));
                               ^
/datasets/git/revision.c:857:25: warning: variable 'st' is not initialized [cppcoreguidelines-init-variables]
        struct treesame_state *st;
                               ^
                                  = NULL
/datasets/git/revision.c:857:25: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:858:6: warning: variable 'old_same' is not initialized [cppcoreguidelines-init-variables]
        int old_same;
            ^
                     = 0
/datasets/git/revision.c:865:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (nth_parent != 0)
                                    ^
                                     {
/datasets/git/revision.c:867:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                old_same = !!(commit->object.flags & TREESAME);
                                                     ^
/datasets/git/./revision.h:29:19: note: expanded from macro 'TREESAME'
#define TREESAME        (1u<<2)
                         ^   ~
/datasets/git/revision.c:868:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (rev_same_tree_as_empty(revs, commit))
                                                         ^
                                                          {
/datasets/git/revision.c:869:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        commit->object.flags |= TREESAME;
                                                ^
/datasets/git/./revision.h:29:19: note: expanded from macro 'TREESAME'
#define TREESAME        (1u<<2)
                         ^   ~
/datasets/git/revision.c:870:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/revision.c:871:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        commit->object.flags &= ~TREESAME;
                                                 ^
/datasets/git/./revision.h:29:19: note: expanded from macro 'TREESAME'
#define TREESAME        (1u<<2)
                         ^   ~
/datasets/git/revision.c:876:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!st || nth_parent >= st->nparents)
                                              ^
                                               {
/datasets/git/revision.c:880:2: warning: Call to function 'memmove' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memmove_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memmove(st->treesame + nth_parent,
        ^~~~~~~
/datasets/git/revision.c:880:2: note: Call to function 'memmove' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memmove_s' in case of C11
        memmove(st->treesame + nth_parent,
        ^~~~~~~
/datasets/git/revision.c:890:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (commit->parents->next)
                                          ^
                                           {
/datasets/git/revision.c:892:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (st->treesame[0] && revs->dense)
                                                   ^
                                                    {
/datasets/git/revision.c:893:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        commit->object.flags |= TREESAME;
                                                ^
/datasets/git/./revision.h:29:19: note: expanded from macro 'TREESAME'
#define TREESAME        (1u<<2)
                         ^   ~
/datasets/git/revision.c:894:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/revision.c:895:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        commit->object.flags &= ~TREESAME;
                                                 ^
/datasets/git/./revision.h:29:19: note: expanded from macro 'TREESAME'
#define TREESAME        (1u<<2)
                         ^   ~
/datasets/git/revision.c:905:12: warning: variable 'n' is not initialized [cppcoreguidelines-init-variables]
                unsigned n;
                         ^
                           = 0
/datasets/git/revision.c:905:12: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:906:26: warning: variable 'st' is not initialized [cppcoreguidelines-init-variables]
                struct treesame_state *st;
                                       ^
                                          = NULL
/datasets/git/revision.c:906:26: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:907:23: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                struct commit_list *p;
                                    ^
                                      = NULL
/datasets/git/revision.c:907:23: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:908:12: warning: variable 'relevant_parents' is not initialized [cppcoreguidelines-init-variables]
                unsigned relevant_parents;
                         ^
                                          = 0
/datasets/git/revision.c:909:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                unsigned relevant_change, irrelevant_change;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:909:12: warning: variable 'relevant_change' is not initialized [cppcoreguidelines-init-variables]
                unsigned relevant_change, irrelevant_change;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:909:29: warning: variable 'irrelevant_change' is not initialized [cppcoreguidelines-init-variables]
                unsigned relevant_change, irrelevant_change;
                                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:912:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!st)
                        ^
                         {
/datasets/git/revision.c:916:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (p = commit->parents, n = 0; p; n++, p = p->next) {
                ^
/datasets/git/revision.c:916:36: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (p = commit->parents, n = 0; p; n++, p = p->next) {
                                                 ^
/datasets/git/revision.c:918:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                relevant_change |= !st->treesame[n];
                                ^                  ~~~~~~~~~~~~~~~~
/datasets/git/revision.c:920:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        } else
                              ^
                               {
/datasets/git/revision.c:921:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                irrelevant_change |= !st->treesame[n];
                                ^                    ~~~~~~~~~~~~~~~~
/datasets/git/revision.c:923:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (relevant_parents ? relevant_change : irrelevant_change)
                                                                           ^
                                                                            {
/datasets/git/revision.c:924:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        commit->object.flags &= ~TREESAME;
                                                 ^
/datasets/git/./revision.h:29:19: note: expanded from macro 'TREESAME'
#define TREESAME        (1u<<2)
                         ^   ~
/datasets/git/revision.c:925:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/revision.c:926:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        commit->object.flags |= TREESAME;
                                                ^
/datasets/git/./revision.h:29:19: note: expanded from macro 'TREESAME'
#define TREESAME        (1u<<2)
                         ^   ~
/datasets/git/revision.c:929:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return commit->object.flags & TREESAME;
                                      ^
/datasets/git/./revision.h:29:19: note: expanded from macro 'TREESAME'
#define TREESAME        (1u<<2)
                         ^   ~
/datasets/git/revision.c:947:13: warning: function 'try_to_simplify_commit' has cognitive complexity of 57 (threshold 25) [readability-function-cognitive-complexity]
static void try_to_simplify_commit(struct rev_info *revs, struct commit *commit)
            ^
/datasets/git/revision.c:957:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!revs->prune)
        ^
/datasets/git/revision.c:960:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!get_commit_tree(commit))
        ^
/datasets/git/revision.c:963:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!commit->parents) {
        ^
/datasets/git/revision.c:964:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (rev_same_tree_as_empty(revs, commit))
                ^
/datasets/git/revision.c:973:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!revs->dense && !commit->parents->next)
        ^
/datasets/git/revision.c:973:19: note: +1
        if (!revs->dense && !commit->parents->next)
                         ^
/datasets/git/revision.c:976:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (pp = &commit->parents, nth_parent = 0, relevant_parents = 0;
        ^
/datasets/git/revision.c:980:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (relevant_commit(p))
                ^
/datasets/git/revision.c:983:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (nth_parent == 1) {
                ^
/datasets/git/revision.c:993:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (revs->first_parent_only)
                        ^
/datasets/git/revision.c:1001:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (revs->treesame.name &&
                        ^
/datasets/git/revision.c:1002:32: note: +1
                            !revs->simplify_history &&
                                                    ^
/datasets/git/revision.c:1005:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!(irrelevant_change || relevant_change))
                                ^
/datasets/git/revision.c:1005:29: note: +1
                                if (!(irrelevant_change || relevant_change))
                                                        ^
/datasets/git/revision.c:1009:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (repo_parse_commit(revs->repo, p) < 0)
                ^
/datasets/git/revision.c:1013:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                switch (rev_compare_tree(revs, p, commit, nth_parent)) {
                ^
/datasets/git/revision.c:1015:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!revs->simplify_history || !relevant_commit(p)) {
                        ^
/datasets/git/revision.c:1015:32: note: +1
                        if (!revs->simplify_history || !relevant_commit(p)) {
                                                    ^
/datasets/git/revision.c:1022:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (ts)
                                ^
/datasets/git/revision.c:1038:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!revs->show_pulls || !nth_parent)
                        ^
/datasets/git/revision.c:1038:26: note: +1
                        if (!revs->show_pulls || !nth_parent)
                                              ^
/datasets/git/revision.c:1044:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (revs->remove_empty_trees &&
                        ^
/datasets/git/revision.c:1044:33: note: +1
                        if (revs->remove_empty_trees &&
                                                     ^
/datasets/git/revision.c:1054:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (repo_parse_commit(revs->repo, p) < 0)
                                ^
/datasets/git/revision.c:1063:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (relevant_commit(p))
                        ^
/datasets/git/revision.c:1065:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/revision.c:1068:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!nth_parent)
                        ^
/datasets/git/revision.c:1086:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (relevant_parents ? !relevant_change : !irrelevant_change)
        ^
/datasets/git/revision.c:1086:23: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (relevant_parents ? !relevant_change : !irrelevant_change)
                             ^
/datasets/git/revision.c:949:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit_list **pp, *parent;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:949:23: warning: variable 'pp' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list **pp, *parent;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:949:23: warning: variable name 'pp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:949:28: warning: variable 'parent' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list **pp, *parent;
                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:950:25: warning: variable name 'ts' is too short, expected at least 3 characters [readability-identifier-length]
        struct treesame_state *ts = NULL;
                               ^
/datasets/git/revision.c:951:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int relevant_change = 0, irrelevant_change = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:952:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int relevant_parents, nth_parent;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:952:6: warning: variable 'relevant_parents' is not initialized [cppcoreguidelines-init-variables]
        int relevant_parents, nth_parent;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:952:24: warning: variable 'nth_parent' is not initialized [cppcoreguidelines-init-variables]
        int relevant_parents, nth_parent;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:957:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!revs->prune)
                         ^
                          {
/datasets/git/revision.c:960:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!get_commit_tree(commit))
                                     ^
                                      {
/datasets/git/revision.c:964:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (rev_same_tree_as_empty(revs, commit))
                                                         ^
                                                          {
/datasets/git/revision.c:965:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        commit->object.flags |= TREESAME;
                                                ^
/datasets/git/./revision.h:29:19: note: expanded from macro 'TREESAME'
#define TREESAME        (1u<<2)
                         ^   ~
/datasets/git/revision.c:973:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!revs->dense && !commit->parents->next)
                                                   ^
                                                    {
/datasets/git/revision.c:976:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (pp = &commit->parents, nth_parent = 0, relevant_parents = 0;
        ^
/datasets/git/revision.c:977:7: warning: backward branch (for loop) is ID-dependent due to variable reference to 'parent' and may cause performance degradation [altera-id-dependent-backward-branch]
             (parent = *pp) != NULL;
             ^
/datasets/git/revision.c:979:18: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct commit *p = parent->item;
                               ^
/datasets/git/revision.c:980:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (relevant_commit(p))
                                       ^
                                        {
/datasets/git/revision.c:993:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (revs->first_parent_only)
                                                    ^
                                                     {
/datasets/git/revision.c:1003:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !(commit->object.flags & UNINTERESTING)) {
                                                     ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/revision.c:1005:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!(irrelevant_change || relevant_change))
                                                                            ^
                                                                             {
/datasets/git/revision.c:1009:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (repo_parse_commit(revs->repo, p) < 0)
                                                         ^
                                                          {
/datasets/git/revision.c:1022:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (ts)
                                       ^
                                        {
/datasets/git/revision.c:1038:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!revs->show_pulls || !nth_parent)
                                                             ^
                                                              {
/datasets/git/revision.c:1039:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                commit->object.flags |= TREESAME;
                                                        ^
/datasets/git/./revision.h:29:19: note: expanded from macro 'TREESAME'
#define TREESAME        (1u<<2)
                         ^   ~
/datasets/git/revision.c:1054:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (repo_parse_commit(revs->repo, p) < 0)
                                                                         ^
                                                                          {
/datasets/git/revision.c:1063:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (relevant_commit(p))
                                               ^
                                                {
/datasets/git/revision.c:1065:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/revision.c:1068:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!nth_parent)
                                        ^
                                         {
/datasets/git/revision.c:1069:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                commit->object.flags |= PULL_MERGE;
                                                        ^
/datasets/git/./revision.h:40:21: note: expanded from macro 'PULL_MERGE'
#define PULL_MERGE      (1u<<15)
                         ^   ~~
/datasets/git/revision.c:1086:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (relevant_parents ? !relevant_change : !irrelevant_change)
                                                                     ^
                                                                      {
/datasets/git/revision.c:1087:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                commit->object.flags |= TREESAME;
                                        ^
/datasets/git/./revision.h:29:19: note: expanded from macro 'TREESAME'
#define TREESAME        (1u<<2)
                         ^   ~
/datasets/git/revision.c:1090:12: warning: function 'process_parents' has cognitive complexity of 55 (threshold 25) [readability-function-cognitive-complexity]
static int process_parents(struct rev_info *revs, struct commit *commit,
           ^
/datasets/git/revision.c:1096:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (commit->object.flags & ADDED)
        ^
/datasets/git/revision.c:1100:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (revs->include_check &&
        ^
/datasets/git/revision.c:1100:26: note: +1
        if (revs->include_check &&
                                ^
/datasets/git/revision.c:1116:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (commit->object.flags & UNINTERESTING) {
        ^
/datasets/git/revision.c:1117:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (parent) {
                ^
/datasets/git/revision.c:1120:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (p)
                        ^
/datasets/git/revision.c:1122:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (repo_parse_commit_gently(revs->repo, p, 1) < 0)
                        ^
/datasets/git/revision.c:1124:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (p->parents)
                        ^
/datasets/git/revision.c:1126:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (p->object.flags & SEEN)
                        ^
/datasets/git/revision.c:1129:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (list)
                        ^
/datasets/git/revision.c:1131:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (queue)
                        ^
/datasets/git/revision.c:1133:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (revs->exclude_first_parent_only)
                        ^
/datasets/git/revision.c:1146:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (revs->no_walk)
        ^
/datasets/git/revision.c:1151:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (parent = commit->parents; parent; parent = parent->next) {
        ^
/datasets/git/revision.c:1153:43: note: +1
                int gently = revs->ignore_missing_links ||
                                                        ^
/datasets/git/revision.c:1155:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (repo_parse_commit_gently(revs->repo, p, gently) < 0) {
                ^
/datasets/git/revision.c:1156:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (revs->exclude_promisor_objects &&
                        ^
/datasets/git/revision.c:1156:39: note: +1
                        if (revs->exclude_promisor_objects &&
                                                           ^
/datasets/git/revision.c:1158:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (revs->first_parent_only)
                                ^
/datasets/git/revision.c:1164:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (revs->sources) {
                ^
/datasets/git/revision.c:1167:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!*slot)
                        ^
/datasets/git/revision.c:1171:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!(p->object.flags & SEEN)) {
                ^
/datasets/git/revision.c:1173:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (list)
                        ^
/datasets/git/revision.c:1175:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (queue)
                        ^
/datasets/git/revision.c:1178:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (revs->first_parent_only)
                ^
/datasets/git/revision.c:1094:11: warning: variable 'pass_flags' is not initialized [cppcoreguidelines-init-variables]
        unsigned pass_flags;
                 ^
                            = 0
/datasets/git/revision.c:1096:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (commit->object.flags & ADDED)
                                   ^
/datasets/git/./revision.h:34:17: note: expanded from macro 'ADDED'
#define ADDED           (1u<<7) /* Parents already parsed and added? */
                         ^   ~
/datasets/git/revision.c:1096:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (commit->object.flags & ADDED)
                                         ^
                                          {
/datasets/git/revision.c:1098:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        commit->object.flags |= ADDED;
                                ^
/datasets/git/./revision.h:34:17: note: expanded from macro 'ADDED'
#define ADDED           (1u<<7) /* Parents already parsed and added? */
                         ^   ~
/datasets/git/revision.c:1101:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !revs->include_check(commit, revs->include_check_data))
                                                                   ^
                                                                    {
/datasets/git/revision.c:1116:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (commit->object.flags & UNINTERESTING) {
                                   ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/revision.c:1093:2: note: inferred assignment of ID-dependent value from ID-dependent member parents [altera-id-dependent-backward-branch]
        struct commit_list *parent = commit->parents;
        ^
/datasets/git/revision.c:1117:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (parent) {
                ^
/datasets/git/revision.c:1117:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'parent' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (parent) {
                       ^
/datasets/git/revision.c:1118:19: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                        struct commit *p = parent->item;
                                       ^
/datasets/git/revision.c:1120:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (p)
                              ^
                               {
/datasets/git/revision.c:1121:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                p->object.flags |= UNINTERESTING;
                                                   ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/revision.c:1122:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (repo_parse_commit_gently(revs->repo, p, 1) < 0)
                                                                           ^
                                                                            {
/datasets/git/revision.c:1124:8: warning: Access to field 'parents' results in a dereference of a null pointer (loaded from variable 'p') [clang-analyzer-core.NullDereference]
                        if (p->parents)
                            ^
/datasets/git/revision.c:4301:6: note: Assuming field 'reverse' is 0
        if (revs->reverse) {
            ^~~~~~~~~~~~~
/datasets/git/revision.c:4301:2: note: Taking false branch
        if (revs->reverse) {
        ^
/datasets/git/revision.c:4310:6: note: Assuming field 'reverse_output_stage' is 0
        if (revs->reverse_output_stage) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:4310:2: note: Taking false branch
        if (revs->reverse_output_stage) {
        ^
/datasets/git/revision.c:4317:6: note: Calling 'get_revision_internal'
        c = get_revision_internal(revs);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:4215:6: note: Assuming field 'boundary' is not equal to 2
        if (revs->boundary == 2) {
            ^~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:4215:2: note: Taking false branch
        if (revs->boundary == 2) {
        ^
/datasets/git/revision.c:4238:6: note: Assuming field 'max_count' is not equal to 0
        if (revs->max_count) {
            ^~~~~~~~~~~~~~~
/datasets/git/revision.c:4238:2: note: Taking true branch
        if (revs->max_count) {
        ^
/datasets/git/revision.c:4239:7: note: Calling 'get_revision_1'
                c = get_revision_1(revs);
                    ^~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:4101:2: note: Loop condition is true.  Entering loop body
        while (1) {
        ^
/datasets/git/revision.c:4104:7: note: Assuming field 'reflog_info' is null
                if (revs->reflog_info)
                    ^~~~~~~~~~~~~~~~~
/datasets/git/revision.c:4104:3: note: Taking false branch
                if (revs->reflog_info)
                ^
/datasets/git/revision.c:4106:12: note: Assuming field 'topo_walk_info' is null
                else if (revs->topo_walk_info)
                         ^~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:4106:8: note: Taking false branch
                else if (revs->topo_walk_info)
                     ^
/datasets/git/revision.c:4111:7: note: Assuming 'commit' is non-null
                if (!commit)
                    ^~~~~~~
/datasets/git/revision.c:4111:3: note: Taking false branch
                if (!commit)
                ^
/datasets/git/revision.c:4114:7: note: Assuming field 'reflog_info' is null
                if (revs->reflog_info)
                    ^~~~~~~~~~~~~~~~~
/datasets/git/revision.c:4114:3: note: Taking false branch
                if (revs->reflog_info)
                ^
/datasets/git/revision.c:4122:7: note: Assuming field 'limited' is 0
                if (!revs->limited) {
                    ^~~~~~~~~~~~~~
/datasets/git/revision.c:4122:3: note: Taking true branch
                if (!revs->limited) {
                ^
/datasets/git/revision.c:4123:8: note: Assuming the condition is false
                        if (revs->max_age != -1 &&
                            ^~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:4123:28: note: Left side of '&&' is false
                        if (revs->max_age != -1 &&
                                                ^
/datasets/git/revision.c:4127:14: note: Field 'reflog_info' is null
                        if (revs->reflog_info)
                                  ^
/datasets/git/revision.c:4127:4: note: Taking false branch
                        if (revs->reflog_info)
                        ^
/datasets/git/revision.c:4129:13: note: Assuming field 'topo_walk_info' is null
                        else if (revs->topo_walk_info)
                                 ^~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:4129:9: note: Taking false branch
                        else if (revs->topo_walk_info)
                             ^
/datasets/git/revision.c:4131:13: note: Calling 'process_parents'
                        else if (process_parents(revs, commit, &revs->commits, NULL) < 0) {
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:1096:6: note: Assuming the condition is false
        if (commit->object.flags & ADDED)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:1096:2: note: Taking false branch
        if (commit->object.flags & ADDED)
        ^
/datasets/git/revision.c:1100:6: note: Assuming field 'include_check' is null
        if (revs->include_check &&
            ^~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:1100:26: note: Left side of '&&' is false
        if (revs->include_check &&
                                ^
/datasets/git/revision.c:1116:6: note: Assuming the condition is true
        if (commit->object.flags & UNINTERESTING) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:1116:2: note: Taking true branch
        if (commit->object.flags & UNINTERESTING) {
        ^
/datasets/git/revision.c:1117:3: note: Loop condition is true.  Entering loop body
                while (parent) {
                ^
/datasets/git/revision.c:1118:4: note: 'p' initialized here
                        struct commit *p = parent->item;
                        ^~~~~~~~~~~~~~~~
/datasets/git/revision.c:1120:8: note: Assuming 'p' is null
                        if (p)
                            ^
/datasets/git/revision.c:1120:4: note: Taking false branch
                        if (p)
                        ^
/datasets/git/revision.c:1122:8: note: Assuming the condition is false
                        if (repo_parse_commit_gently(revs->repo, p, 1) < 0)
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:1122:4: note: Taking false branch
                        if (repo_parse_commit_gently(revs->repo, p, 1) < 0)
                        ^
/datasets/git/revision.c:1124:8: note: Access to field 'parents' results in a dereference of a null pointer (loaded from variable 'p')
                        if (p->parents)
                            ^
/datasets/git/revision.c:1124:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (p->parents)
                                       ^
                                        {
/datasets/git/revision.c:1126:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (p->object.flags & SEEN)
                                              ^
/datasets/git/./revision.h:27:16: note: expanded from macro 'SEEN'
#define SEEN            (1u<<0)
                         ^   ~
/datasets/git/revision.c:1126:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (p->object.flags & SEEN)
                                                   ^
                                                    {
/datasets/git/revision.c:1128:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        p->object.flags |= (SEEN | NOT_USER_GIVEN);
                                            ^
/datasets/git/./revision.h:27:16: note: expanded from macro 'SEEN'
#define SEEN            (1u<<0)
                         ^   ~
/datasets/git/revision.c:1128:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        p->object.flags |= (SEEN | NOT_USER_GIVEN);
                                                   ^
/datasets/git/./revision.h:49:25: note: expanded from macro 'NOT_USER_GIVEN'
#define NOT_USER_GIVEN  (1u<<25)
                         ^   ~~
/datasets/git/revision.c:1129:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (list)
                                 ^
                                  {
/datasets/git/revision.c:1131:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (queue)
                                  ^
                                   {
/datasets/git/revision.c:1133:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (revs->exclude_first_parent_only)
                                                            ^
                                                             {
/datasets/git/revision.c:1146:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->no_walk)
                          ^
                           {
/datasets/git/revision.c:1149:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        pass_flags = (commit->object.flags & (SYMMETRIC_LEFT | ANCESTRY_PATH));
                                              ^
/datasets/git/./revision.h:35:25: note: expanded from macro 'SYMMETRIC_LEFT'
#define SYMMETRIC_LEFT  (1u<<8)
                         ^   ~
/datasets/git/revision.c:1149:57: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        pass_flags = (commit->object.flags & (SYMMETRIC_LEFT | ANCESTRY_PATH));
                                                               ^
/datasets/git/./revision.h:51:24: note: expanded from macro 'ANCESTRY_PATH'
#define ANCESTRY_PATH   (1u<<27)
                         ^   ~~
/datasets/git/revision.c:1151:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (parent = commit->parents; parent; parent = parent->next) {
        ^
/datasets/git/revision.c:1151:33: warning: backward branch (for loop) is ID-dependent due to variable reference to 'parent' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (parent = commit->parents; parent; parent = parent->next) {
                                       ^
/datasets/git/revision.c:1152:18: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct commit *p = parent->item;
                               ^
/datasets/git/revision.c:1158:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (revs->first_parent_only)
                                                            ^
                                                             {
/datasets/git/revision.c:1167:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!*slot)
                                   ^
                                    {
/datasets/git/revision.c:1171:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(p->object.flags & SEEN)) {
                                        ^
/datasets/git/./revision.h:27:16: note: expanded from macro 'SEEN'
#define SEEN            (1u<<0)
                         ^   ~
/datasets/git/revision.c:1172:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        p->object.flags |= (SEEN | NOT_USER_GIVEN);
                                            ^
/datasets/git/./revision.h:27:16: note: expanded from macro 'SEEN'
#define SEEN            (1u<<0)
                         ^   ~
/datasets/git/revision.c:1172:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        p->object.flags |= (SEEN | NOT_USER_GIVEN);
                                                   ^
/datasets/git/./revision.h:49:25: note: expanded from macro 'NOT_USER_GIVEN'
#define NOT_USER_GIVEN  (1u<<25)
                         ^   ~~
/datasets/git/revision.c:1173:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (list)
                                 ^
                                  {
/datasets/git/revision.c:1175:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (queue)
                                  ^
                                   {
/datasets/git/revision.c:1178:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (revs->first_parent_only)
                                            ^
                                             {
/datasets/git/revision.c:1186:22: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *p;
                            ^
                              = NULL
/datasets/git/revision.c:1186:22: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:1187:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int left_count = 0, right_count = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:1186:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct commit_list *p;
        ^
/datasets/git/revision.c:1188:6: warning: variable 'left_first' is not initialized [cppcoreguidelines-init-variables]
        int left_first;
            ^
                       = 0
/datasets/git/revision.c:1190:11: warning: variable 'cherry_flag' is not initialized [cppcoreguidelines-init-variables]
        unsigned cherry_flag;
                 ^
                             = 0
/datasets/git/revision.c:1193:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = list; p; p = p->next) {
        ^
/datasets/git/revision.c:1193:17: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = list; p; p = p->next) {
                       ^
/datasets/git/revision.c:1196:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flags & BOUNDARY)
                            ^
/datasets/git/./revision.h:32:19: note: expanded from macro 'BOUNDARY'
#define BOUNDARY        (1u<<5)
                         ^   ~
/datasets/git/revision.c:1196:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (flags & BOUNDARY)
                                     ^
                                      {
/datasets/git/revision.c:1198:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                else if (flags & SYMMETRIC_LEFT)
                                 ^
/datasets/git/./revision.h:35:25: note: expanded from macro 'SYMMETRIC_LEFT'
#define SYMMETRIC_LEFT  (1u<<8)
                         ^   ~
/datasets/git/revision.c:1198:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (flags & SYMMETRIC_LEFT)
                                                ^
                                                 {
/datasets/git/revision.c:1200:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/revision.c:1204:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!left_count || !right_count)
                                        ^
                                         {
/datasets/git/revision.c:1212:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = list; p; p = p->next) {
        ^
/datasets/git/revision.c:1186:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct commit_list *p;
        ^
/datasets/git/revision.c:1212:17: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = list; p; p = p->next) {
                       ^
/datasets/git/revision.c:1216:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flags & BOUNDARY)
                            ^
/datasets/git/./revision.h:32:19: note: expanded from macro 'BOUNDARY'
#define BOUNDARY        (1u<<5)
                         ^   ~
/datasets/git/revision.c:1216:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (flags & BOUNDARY)
                                     ^
                                      {
/datasets/git/revision.c:1223:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (left_first != !!(flags & SYMMETRIC_LEFT))
                                             ^
/datasets/git/./revision.h:35:25: note: expanded from macro 'SYMMETRIC_LEFT'
#define SYMMETRIC_LEFT  (1u<<8)
                         ^   ~
/datasets/git/revision.c:1223:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (left_first != !!(flags & SYMMETRIC_LEFT))
                                                             ^
                                                              {
/datasets/git/revision.c:1229:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        cherry_flag = revs->cherry_mark ? PATCHSAME : SHOWN;
                                          ^
/datasets/git/./revision.h:36:20: note: expanded from macro 'PATCHSAME'
#define PATCHSAME       (1u<<9)
                         ^   ~
/datasets/git/revision.c:1229:48: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        cherry_flag = revs->cherry_mark ? PATCHSAME : SHOWN;
                                                      ^
/datasets/git/./revision.h:30:17: note: expanded from macro 'SHOWN'
#define SHOWN           (1u<<3)
                         ^   ~
/datasets/git/revision.c:1232:17: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = list; p; p = p->next) {
                       ^
/datasets/git/revision.c:1234:20: warning: variable 'id' is not initialized [cppcoreguidelines-init-variables]
                struct patch_id *id;
                                 ^
                                    = NULL
/datasets/git/revision.c:1234:20: warning: variable name 'id' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:1237:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flags & BOUNDARY)
                            ^
/datasets/git/./revision.h:32:19: note: expanded from macro 'BOUNDARY'
#define BOUNDARY        (1u<<5)
                         ^   ~
/datasets/git/revision.c:1237:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (flags & BOUNDARY)
                                     ^
                                      {
/datasets/git/revision.c:1243:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (left_first == !!(flags & SYMMETRIC_LEFT))
                                             ^
/datasets/git/./revision.h:35:25: note: expanded from macro 'SYMMETRIC_LEFT'
#define SYMMETRIC_LEFT  (1u<<8)
                         ^   ~
/datasets/git/revision.c:1243:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (left_first == !!(flags & SYMMETRIC_LEFT))
                                                             ^
                                                              {
/datasets/git/revision.c:1250:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!id)
                        ^
                         {
/datasets/git/revision.c:1254:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                do {
                ^
/datasets/git/revision.c:1256:12: warning: backward branch (do loop) is ID-dependent due to variable reference to 'id' and may cause performance degradation [altera-id-dependent-backward-branch]
                } while ((id = patch_id_iter_next(id, &ids)));
                         ^
/datasets/git/revision.c:1265:55: warning: 2 adjacent parameters of 'still_interesting' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int still_interesting(struct commit_list *src, timestamp_t date, int slop,
                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:1265:67: note: the first parameter in the range is 'date'
static int still_interesting(struct commit_list *src, timestamp_t date, int slop,
                                                                  ^~~~
/datasets/git/revision.c:1265:77: note: the last parameter in the range is 'slop'
static int still_interesting(struct commit_list *src, timestamp_t date, int slop,
                                                                            ^~~~
/datasets/git/revision.c:1265:55: note: 
static int still_interesting(struct commit_list *src, timestamp_t date, int slop,
                                                      ^
/datasets/git/revision.c:1265:73: note: 'timestamp_t' and 'int' may be implicitly converted: 'timestamp_t' (as 'unsigned long') -> 'int', 'int' -> 'timestamp_t' (as 'unsigned long')
static int still_interesting(struct commit_list *src, timestamp_t date, int slop,
                                                                        ^
/datasets/git/revision.c:1271:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!src)
                 ^
                  {
/datasets/git/revision.c:1278:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (date <= src->item->date)
                                    ^
                                     {
/datasets/git/revision.c:1285:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!everybody_uninteresting(src, interesting_cache))
                                                             ^
                                                              {
/datasets/git/revision.c:1310:31: warning: 2 adjacent parameters of 'limit_to_ancestry' of similar type ('struct commit_list *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void limit_to_ancestry(struct commit_list *bottoms, struct commit_list *list)
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:1310:51: note: the first parameter in the range is 'bottoms'
static void limit_to_ancestry(struct commit_list *bottoms, struct commit_list *list)
                                                  ^~~~~~~
/datasets/git/revision.c:1310:80: note: the last parameter in the range is 'list'
static void limit_to_ancestry(struct commit_list *bottoms, struct commit_list *list)
                                                                               ^~~~
/datasets/git/revision.c:1312:22: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *p;
                            ^
                              = NULL
/datasets/git/revision.c:1312:22: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:1314:6: warning: variable 'made_progress' is not initialized [cppcoreguidelines-init-variables]
        int made_progress;
            ^
                          = 0
/datasets/git/revision.c:1320:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = list; p; p = p->next)
        ^
/datasets/git/revision.c:1320:17: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = list; p; p = p->next)
                       ^
/datasets/git/revision.c:1320:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (p = list; p; p = p->next)
                                      ^
                                       {
/datasets/git/revision.c:1323:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = bottoms; p; p = p->next)
        ^
/datasets/git/revision.c:1312:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct commit_list *p;
        ^
/datasets/git/revision.c:1323:20: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = bottoms; p; p = p->next)
                          ^
/datasets/git/revision.c:1323:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (p = bottoms; p; p = p->next)
                                         ^
                                          {
/datasets/git/revision.c:1324:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                p->item->object.flags |= TMP_MARK;
                                         ^
/datasets/git/./revision.h:31:19: note: expanded from macro 'TMP_MARK'
#define TMP_MARK        (1u<<4) /* for isolated cases; clean after use */
                         ^   ~
/datasets/git/revision.c:1312:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct commit_list *p;
        ^
/datasets/git/revision.c:1332:19: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (p = rlist; p; p = p->next) {
                                ^
/datasets/git/revision.c:1333:19: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                        struct commit *c = p->item;
                                       ^
/datasets/git/revision.c:1334:24: warning: variable 'parents' is not initialized [cppcoreguidelines-init-variables]
                        struct commit_list *parents;
                                            ^
                                                    = NULL
/datasets/git/revision.c:1335:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (c->object.flags & (TMP_MARK | UNINTERESTING))
                                               ^
/datasets/git/./revision.h:31:19: note: expanded from macro 'TMP_MARK'
#define TMP_MARK        (1u<<4) /* for isolated cases; clean after use */
                         ^   ~
/datasets/git/revision.c:1335:38: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (c->object.flags & (TMP_MARK | UNINTERESTING))
                                                          ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/revision.c:1335:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (c->object.flags & (TMP_MARK | UNINTERESTING))
                                                                         ^
                                                                          {
/datasets/git/revision.c:1337:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (parents = c->parents;
                        ^
/datasets/git/revision.c:1338:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'parents' and may cause performance degradation [altera-id-dependent-backward-branch]
                             parents;
                             ^
/datasets/git/revision.c:1340:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (!(parents->item->object.flags & TMP_MARK))
                                                                    ^
/datasets/git/./revision.h:31:19: note: expanded from macro 'TMP_MARK'
#define TMP_MARK        (1u<<4) /* for isolated cases; clean after use */
                         ^   ~
/datasets/git/revision.c:1340:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!(parents->item->object.flags & TMP_MARK))
                                                                              ^
                                                                               {
/datasets/git/revision.c:1342:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                c->object.flags |= TMP_MARK;
                                                   ^
/datasets/git/./revision.h:31:19: note: expanded from macro 'TMP_MARK'
#define TMP_MARK        (1u<<4) /* for isolated cases; clean after use */
                         ^   ~
/datasets/git/revision.c:1359:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = list; p; p = p->next) {
        ^
/datasets/git/revision.c:1359:17: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = list; p; p = p->next) {
                       ^
/datasets/git/revision.c:1360:18: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                struct commit *c = p->item;
                               ^
/datasets/git/revision.c:1361:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (c->object.flags & (TMP_MARK | ANCESTRY_PATH))
                                       ^
/datasets/git/./revision.h:31:19: note: expanded from macro 'TMP_MARK'
#define TMP_MARK        (1u<<4) /* for isolated cases; clean after use */
                         ^   ~
/datasets/git/revision.c:1361:37: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (c->object.flags & (TMP_MARK | ANCESTRY_PATH))
                                                  ^
/datasets/git/./revision.h:51:24: note: expanded from macro 'ANCESTRY_PATH'
#define ANCESTRY_PATH   (1u<<27)
                         ^   ~~
/datasets/git/revision.c:1361:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (c->object.flags & (TMP_MARK | ANCESTRY_PATH))
                                                                 ^
                                                                  {
/datasets/git/revision.c:1363:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                c->object.flags |= UNINTERESTING;
                                   ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/revision.c:1367:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = list; p; p = p->next)
        ^
/datasets/git/revision.c:1367:17: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = list; p; p = p->next)
                       ^
/datasets/git/revision.c:1367:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (p = list; p; p = p->next)
                                      ^
                                       {
/datasets/git/revision.c:1368:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                p->item->object.flags &= ~(TMP_MARK | ANCESTRY_PATH);
                                           ^
/datasets/git/./revision.h:31:19: note: expanded from macro 'TMP_MARK'
#define TMP_MARK        (1u<<4) /* for isolated cases; clean after use */
                         ^   ~
/datasets/git/revision.c:1368:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                p->item->object.flags &= ~(TMP_MARK | ANCESTRY_PATH);
                                                      ^
/datasets/git/./revision.h:51:24: note: expanded from macro 'ANCESTRY_PATH'
#define ANCESTRY_PATH   (1u<<27)
                         ^   ~~
/datasets/git/revision.c:1369:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = bottoms; p; p = p->next)
        ^
/datasets/git/revision.c:1369:20: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = bottoms; p; p = p->next)
                          ^
/datasets/git/revision.c:1369:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (p = bottoms; p; p = p->next)
                                         ^
                                          {
/datasets/git/revision.c:1370:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                p->item->object.flags &= ~(TMP_MARK | ANCESTRY_PATH);
                                           ^
/datasets/git/./revision.h:31:19: note: expanded from macro 'TMP_MARK'
#define TMP_MARK        (1u<<4) /* for isolated cases; clean after use */
                         ^   ~
/datasets/git/revision.c:1370:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                p->item->object.flags &= ~(TMP_MARK | ANCESTRY_PATH);
                                                      ^
/datasets/git/./revision.h:51:24: note: expanded from macro 'ANCESTRY_PATH'
#define ANCESTRY_PATH   (1u<<27)
                         ^   ~~
/datasets/git/revision.c:1385:22: warning: variable 'elem' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *elem;
                            ^
                                 = NULL
/datasets/git/revision.c:1386:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (elem = list; elem; elem = elem->next)
        ^
/datasets/git/revision.c:1386:20: warning: backward branch (for loop) is ID-dependent due to variable reference to 'elem' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (elem = list; elem; elem = elem->next)
                          ^
/datasets/git/revision.c:1386:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (elem = list; elem; elem = elem->next)
                                                  ^
                                                   {
/datasets/git/revision.c:1387:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (elem->item->object.flags & BOTTOM)
                                               ^
/datasets/git/./revision.h:37:18: note: expanded from macro 'BOTTOM'
#define BOTTOM          (1u<<10)
                         ^   ~~
/datasets/git/revision.c:1394:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct commit_list *p;
        ^
/datasets/git/revision.c:1387:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (elem->item->object.flags & BOTTOM)
                                                      ^
                                                       {
/datasets/git/revision.c:1394:22: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *p;
                            ^
                              = NULL
/datasets/git/revision.c:1394:22: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:1396:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = list; p; p = p->next) {
        ^
/datasets/git/revision.c:1396:17: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = list; p; p = p->next) {
                       ^
/datasets/git/revision.c:1400:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (commit->object.flags & SYMMETRIC_LEFT)
                                                   ^
/datasets/git/./revision.h:35:25: note: expanded from macro 'SYMMETRIC_LEFT'
#define SYMMETRIC_LEFT  (1u<<8)
                         ^   ~
/datasets/git/revision.c:1400:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (commit->object.flags & SYMMETRIC_LEFT)
                                                                  ^
                                                                   {
/datasets/git/revision.c:1401:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                commit->object.flags |= SHOWN;
                                                        ^
/datasets/git/./revision.h:30:17: note: expanded from macro 'SHOWN'
#define SHOWN           (1u<<3)
                         ^   ~
/datasets/git/revision.c:1403:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!(commit->object.flags & SYMMETRIC_LEFT))
                                                     ^
/datasets/git/./revision.h:35:25: note: expanded from macro 'SYMMETRIC_LEFT'
#define SYMMETRIC_LEFT  (1u<<8)
                         ^   ~
/datasets/git/revision.c:1403:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!(commit->object.flags & SYMMETRIC_LEFT))
                                                                     ^
                                                                      {
/datasets/git/revision.c:1404:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                commit->object.flags |= SHOWN;
                                                        ^
/datasets/git/./revision.h:30:17: note: expanded from macro 'SHOWN'
#define SHOWN           (1u<<3)
                         ^   ~
/datasets/git/revision.c:1408:12: warning: function 'limit_list' has cognitive complexity of 35 (threshold 25) [readability-function-cognitive-complexity]
static int limit_list(struct rev_info *revs)
           ^
/datasets/git/revision.c:1417:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (revs->ancestry_path_implicit_bottoms) {
        ^
/datasets/git/revision.c:1420:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!revs->ancestry_path_bottoms)
                ^
/datasets/git/revision.c:1424:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (original_list) {
        ^
/datasets/git/revision.c:1429:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (commit == interesting_cache)
                ^
/datasets/git/revision.c:1432:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (revs->max_age != -1 && (commit->date < revs->max_age))
                ^
/datasets/git/revision.c:1432:27: note: +1
                if (revs->max_age != -1 && (commit->date < revs->max_age))
                                        ^
/datasets/git/revision.c:1434:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (process_parents(revs, commit, &original_list, NULL) < 0)
                ^
/datasets/git/revision.c:1436:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (obj->flags & UNINTERESTING) {
                ^
/datasets/git/revision.c:1439:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (slop)
                        ^
/datasets/git/revision.c:1443:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (revs->min_age != -1 && (commit->date > revs->min_age) &&
                ^
/datasets/git/revision.c:1443:61: note: +1
                if (revs->min_age != -1 && (commit->date > revs->min_age) &&
                                                                          ^
/datasets/git/revision.c:1446:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (revs->max_age_as_filter != -1 &&
                ^
/datasets/git/revision.c:1447:45: note: +1
                        (commit->date < revs->max_age_as_filter) && !revs->line_level_traverse)
                                                                 ^
/datasets/git/revision.c:1453:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!show)
                ^
/datasets/git/revision.c:1459:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (revs->cherry_pick || revs->cherry_mark)
        ^
/datasets/git/revision.c:1459:24: note: +1
        if (revs->cherry_pick || revs->cherry_mark)
                              ^
/datasets/git/revision.c:1462:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (revs->left_only || revs->right_only)
        ^
/datasets/git/revision.c:1462:22: note: +1
        if (revs->left_only || revs->right_only)
                            ^
/datasets/git/revision.c:1465:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (revs->ancestry_path)
        ^
/datasets/git/revision.c:1472:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (limiting_can_increase_treesame(revs)) {
        ^
/datasets/git/revision.c:1474:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (list = newlist; list; list = list->next) {
                ^
/datasets/git/revision.c:1476:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (c->object.flags & (UNINTERESTING | TREESAME))
                        ^
/datasets/git/revision.c:1412:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct commit_list *original_list = revs->commits;
        ^
/datasets/git/revision.c:1414:23: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        struct commit_list **p = &newlist;
                             ^
/datasets/git/revision.c:1420:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!revs->ancestry_path_bottoms)
                                                 ^
                                                  {
/datasets/git/revision.c:1424:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (original_list) {
        ^
/datasets/git/revision.c:1424:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'original_list' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (original_list) {
               ^
/datasets/git/revision.c:1427:26: warning: variable 'show' is not initialized [cppcoreguidelines-init-variables]
                show_early_output_fn_t show;
                                       ^
                                            = NULL
/datasets/git/revision.c:1429:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (commit == interesting_cache)
                                                ^
                                                 {
/datasets/git/revision.c:1432:31: warning: Access to field 'date' results in a dereference of a null pointer (loaded from variable 'commit') [clang-analyzer-core.NullDereference]
                if (revs->max_age != -1 && (commit->date < revs->max_age))
                                            ^
/datasets/git/revision.c:3730:14: note: Assuming 'i' is >= field 'nr'
        for (i = 0; i < old_pending.nr; i++) {
                    ^~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:3730:2: note: Loop condition is false. Execution continues on line 3740
        for (i = 0; i < old_pending.nr; i++) {
        ^
/datasets/git/revision.c:3743:6: note: Assuming field 'simplify_merges' is 0
        if (revs->simplify_merges ||
            ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:3743:6: note: Left side of '||' is false
/datasets/git/revision.c:3744:7: note: Assuming field 'limited' is 0
            (revs->limited && limiting_can_increase_treesame(revs)))
             ^~~~~~~~~~~~~
/datasets/git/revision.c:3744:21: note: Left side of '&&' is false
            (revs->limited && limiting_can_increase_treesame(revs)))
                           ^
/datasets/git/revision.c:3747:6: note: Assuming field 'exclude_promisor_objects' is 0
        if (revs->exclude_promisor_objects) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:3747:2: note: Taking false branch
        if (revs->exclude_promisor_objects) {
        ^
/datasets/git/revision.c:3752:6: note: Assuming field 'reflog_info' is non-null
        if (!revs->reflog_info)
            ^~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:3752:2: note: Taking false branch
        if (!revs->reflog_info)
        ^
/datasets/git/revision.c:3754:6: note: Assuming field 'unsorted_input' is 0
        if (!revs->unsorted_input)
            ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:3754:2: note: Taking true branch
        if (!revs->unsorted_input)
        ^
/datasets/git/revision.c:3756:6: note: Assuming field 'no_walk' is 0
        if (revs->no_walk)
            ^~~~~~~~~~~~~
/datasets/git/revision.c:3756:2: note: Taking false branch
        if (revs->no_walk)
        ^
/datasets/git/revision.c:3758:6: note: Assuming field 'limited' is not equal to 0
        if (revs->limited) {
            ^~~~~~~~~~~~~
/datasets/git/revision.c:3758:2: note: Taking true branch
        if (revs->limited) {
        ^
/datasets/git/revision.c:3759:7: note: Calling 'limit_list'
                if (limit_list(revs) < 0)
                    ^~~~~~~~~~~~~~~~
/datasets/git/revision.c:1417:6: note: Assuming field 'ancestry_path_implicit_bottoms' is 0
        if (revs->ancestry_path_implicit_bottoms) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:1417:2: note: Taking false branch
        if (revs->ancestry_path_implicit_bottoms) {
        ^
/datasets/git/revision.c:1424:2: note: Loop condition is true.  Entering loop body
        while (original_list) {
        ^
/datasets/git/revision.c:1425:3: note: 'commit' initialized here
                struct commit *commit = pop_commit(&original_list);
                ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:1429:7: note: Assuming 'commit' is equal to 'interesting_cache'
                if (commit == interesting_cache)
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:1429:3: note: Taking true branch
                if (commit == interesting_cache)
                ^
/datasets/git/revision.c:1432:7: note: Assuming the condition is true
                if (revs->max_age != -1 && (commit->date < revs->max_age))
                    ^~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:1432:7: note: Left side of '&&' is true
/datasets/git/revision.c:1432:31: note: Access to field 'date' results in a dereference of a null pointer (loaded from variable 'commit')
                if (revs->max_age != -1 && (commit->date < revs->max_age))
                                            ^~~~~~
/datasets/git/revision.c:1432:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (revs->max_age != -1 && (commit->date < revs->max_age))
                                                                          ^
                                                                           {
/datasets/git/revision.c:1433:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        obj->flags |= UNINTERESTING;
                                      ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/revision.c:1434:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (process_parents(revs, commit, &original_list, NULL) < 0)
                                                                            ^
                                                                             {
/datasets/git/revision.c:1436:7: warning: Access to field 'flags' results in a dereference of a null pointer (loaded from variable 'obj') [clang-analyzer-core.NullDereference]
                if (obj->flags & UNINTERESTING) {
                    ^
/datasets/git/revision.c:3730:14: note: Assuming 'i' is >= field 'nr'
        for (i = 0; i < old_pending.nr; i++) {
                    ^~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:3730:2: note: Loop condition is false. Execution continues on line 3740
        for (i = 0; i < old_pending.nr; i++) {
        ^
/datasets/git/revision.c:3743:6: note: Assuming field 'simplify_merges' is 0
        if (revs->simplify_merges ||
            ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:3743:6: note: Left side of '||' is false
/datasets/git/revision.c:3744:7: note: Assuming field 'limited' is 0
            (revs->limited && limiting_can_increase_treesame(revs)))
             ^~~~~~~~~~~~~
/datasets/git/revision.c:3744:21: note: Left side of '&&' is false
            (revs->limited && limiting_can_increase_treesame(revs)))
                           ^
/datasets/git/revision.c:3747:6: note: Assuming field 'exclude_promisor_objects' is 0
        if (revs->exclude_promisor_objects) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:3747:2: note: Taking false branch
        if (revs->exclude_promisor_objects) {
        ^
/datasets/git/revision.c:3752:6: note: Assuming field 'reflog_info' is non-null
        if (!revs->reflog_info)
            ^~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:3752:2: note: Taking false branch
        if (!revs->reflog_info)
        ^
/datasets/git/revision.c:3754:6: note: Assuming field 'unsorted_input' is 0
        if (!revs->unsorted_input)
            ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:3754:2: note: Taking true branch
        if (!revs->unsorted_input)
        ^
/datasets/git/revision.c:3756:6: note: Assuming field 'no_walk' is 0
        if (revs->no_walk)
            ^~~~~~~~~~~~~
/datasets/git/revision.c:3756:2: note: Taking false branch
        if (revs->no_walk)
        ^
/datasets/git/revision.c:3758:6: note: Assuming field 'limited' is not equal to 0
        if (revs->limited) {
            ^~~~~~~~~~~~~
/datasets/git/revision.c:3758:2: note: Taking true branch
        if (revs->limited) {
        ^
/datasets/git/revision.c:3759:7: note: Calling 'limit_list'
                if (limit_list(revs) < 0)
                    ^~~~~~~~~~~~~~~~
/datasets/git/revision.c:1417:6: note: Assuming field 'ancestry_path_implicit_bottoms' is 0
        if (revs->ancestry_path_implicit_bottoms) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:1417:2: note: Taking false branch
        if (revs->ancestry_path_implicit_bottoms) {
        ^
/datasets/git/revision.c:1424:2: note: Loop condition is true.  Entering loop body
        while (original_list) {
        ^
/datasets/git/revision.c:1425:3: note: 'commit' initialized here
                struct commit *commit = pop_commit(&original_list);
                ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:1426:3: note: 'obj' initialized here
                struct object *obj = &commit->object;
                ^~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:1429:7: note: Assuming 'commit' is equal to 'interesting_cache'
                if (commit == interesting_cache)
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:1429:3: note: Taking true branch
                if (commit == interesting_cache)
                ^
/datasets/git/revision.c:1432:7: note: Assuming the condition is false
                if (revs->max_age != -1 && (commit->date < revs->max_age))
                    ^~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:1432:27: note: Left side of '&&' is false
                if (revs->max_age != -1 && (commit->date < revs->max_age))
                                        ^
/datasets/git/revision.c:1434:7: note: Assuming the condition is false
                if (process_parents(revs, commit, &original_list, NULL) < 0)
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:1434:3: note: Taking false branch
                if (process_parents(revs, commit, &original_list, NULL) < 0)
                ^
/datasets/git/revision.c:1436:7: note: Access to field 'flags' results in a dereference of a null pointer (loaded from variable 'obj')
                if (obj->flags & UNINTERESTING) {
                    ^~~
/datasets/git/revision.c:1436:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (obj->flags & UNINTERESTING) {
                                 ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/revision.c:1439:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (slop)
                                 ^
                                  {
/datasets/git/revision.c:1444:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !revs->line_level_traverse)
                                               ^
                                                {
/datasets/git/revision.c:1447:75: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        (commit->date < revs->max_age_as_filter) && !revs->line_level_traverse)
                                                                                               ^
                                                                                                {
/datasets/git/revision.c:1453:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!show)
                          ^
                           {
/datasets/git/revision.c:1459:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->cherry_pick || revs->cherry_mark)
                                                   ^
                                                    {
/datasets/git/revision.c:1462:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->left_only || revs->right_only)
                                                ^
                                                 {
/datasets/git/revision.c:1465:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->ancestry_path)
                                ^
                                 {
/datasets/git/revision.c:1474:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (list = newlist; list; list = list->next) {
                ^
/datasets/git/revision.c:1474:24: warning: backward branch (for loop) is ID-dependent due to variable reference to 'list' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (list = newlist; list; list = list->next) {
                                     ^
/datasets/git/revision.c:1475:19: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                        struct commit *c = list->item;
                                       ^
/datasets/git/revision.c:1476:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (c->object.flags & (UNINTERESTING | TREESAME))
                                               ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/revision.c:1476:43: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (c->object.flags & (UNINTERESTING | TREESAME))
                                                               ^
/datasets/git/./revision.h:29:19: note: expanded from macro 'TREESAME'
#define TREESAME        (1u<<2)
                         ^   ~
/datasets/git/revision.c:1476:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (c->object.flags & (UNINTERESTING | TREESAME))
                                                                         ^
                                                                          {
/datasets/git/revision.c:1494:8: warning: 2 adjacent parameters of 'add_rev_cmdline' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                            int whence,
                            ^~~~~~~~~~~
/datasets/git/revision.c:1494:12: note: the first parameter in the range is 'whence'
                            int whence,
                                ^~~~~~
/datasets/git/revision.c:1495:17: note: the last parameter in the range is 'flags'
                            unsigned flags)
                                     ^~~~~
/datasets/git/revision.c:1495:8: note: 'int' and 'unsigned int' may be implicitly converted
                            unsigned flags)
                            ^
/datasets/git/revision.c:1498:15: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned int nr = info->nr;
                     ^
/datasets/git/revision.c:1509:6: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                                 struct commit_list *commit_list,
                                 ^
/datasets/git/revision.c:1500:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(info->rev, nr + 1, info->alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/revision.c:1513:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (commit_list) {
        ^
/datasets/git/revision.c:1524:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct string_list_item *item;
        ^
/datasets/git/revision.c:1513:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'commit_list' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (commit_list) {
               ^
/datasets/git/revision.c:1524:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/revision.c:1526:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(item, &exclusions->excluded_refs) {
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/revision.c:1526:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(item, &exclusions->excluded_refs) {
                                  ^
/datasets/git/revision.c:1527:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!wildmatch(item->string, path, 0))
                                                      ^
                                                       {
/datasets/git/revision.c:1531:67: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ref_is_hidden(stripped_path, path, &exclusions->hidden_refs))
                                                                         ^
                                                                          {
/datasets/git/revision.c:1540:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(exclusions, &blank, sizeof(*exclusions));
        ^~~~~~
/datasets/git/revision.c:1540:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(exclusions, &blank, sizeof(*exclusions));
        ^~~~~~
/datasets/git/revision.c:1555:8: warning: accessing fields in struct 'exclude_hidden_refs_cb' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct exclude_hidden_refs_cb {
       ^
/datasets/git/revision.c:1555:8: note: use "__attribute__((aligned(16)))" to align struct 'exclude_hidden_refs_cb' to 16 bytes
/datasets/git/revision.c:1562:33: warning: variable name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
        struct exclude_hidden_refs_cb *cb = cb_data;
                                       ^
/datasets/git/revision.c:1570:32: warning: variable name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
        struct exclude_hidden_refs_cb cb;
                                      ^
/datasets/git/revision.c:1572:6: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (strcmp(section, "receive") && strcmp(section, "uploadpack"))
            ^
                                       != 0
/datasets/git/revision.c:1572:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strcmp(section, "receive") && strcmp(section, "uploadpack"))
                                                                        ^
                                                                         {
/datasets/git/revision.c:1575:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (exclusions->hidden_refs_configured)
                                               ^
                                                {
/datasets/git/revision.c:1584:8: warning: accessing fields in struct 'all_refs_cb' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct all_refs_cb {
       ^
/datasets/git/revision.c:1584:8: note: use "__attribute__((aligned(32)))" to align struct 'all_refs_cb' to 32 bytes
/datasets/git/revision.c:1596:22: warning: variable name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
        struct all_refs_cb *cb = cb_data;
                            ^
/datasets/git/revision.c:1597:17: warning: variable 'object' is not initialized [cppcoreguidelines-init-variables]
        struct object *object;
                       ^
                              = NULL
/datasets/git/revision.c:1599:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ref_excluded(&cb->all_revs->ref_excludes, path))
                                                            ^
                                                             {
/datasets/git/revision.c:1608:50: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static void init_all_refs_cb(struct all_refs_cb *cb, struct rev_info *revs,
                                                 ^
/datasets/git/revision.c:1612:18: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        cb->all_flags = flags;
                        ^
/datasets/git/revision.c:1621:21: warning: variable name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
        struct all_refs_cb cb;
                           ^
/datasets/git/revision.c:1634:22: warning: variable name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
        struct all_refs_cb *cb = cb_data;
                            ^
/datasets/git/revision.c:1636:18: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                struct object *o = parse_object(cb->all_revs->repo, oid);
                               ^
/datasets/git/revision.c:1638:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        o->flags |= cb->all_flags;
                        ^           ~~~~~~~~~~~~~
/datasets/git/revision.c:1652:6: warning: 2 adjacent parameters of 'handle_one_reflog_ent' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                 timestamp_t timestamp UNUSED,
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:1652:18: note: the first parameter in the range is 'timestamp'
                                 timestamp_t timestamp UNUSED,
                                             ^~~~~~~~~
/datasets/git/revision.c:1653:10: note: the last parameter in the range is 'tz'
                                 int tz UNUSED,
                                     ^~
/datasets/git/revision.c:1652:6: note: 
                                 timestamp_t timestamp UNUSED,
                                 ^
/datasets/git/revision.c:1653:6: note: 'timestamp_t' and 'int' may be implicitly converted: 'timestamp_t' (as 'unsigned long') -> 'int', 'int' -> 'timestamp_t' (as 'unsigned long')
                                 int tz UNUSED,
                                 ^
/datasets/git/revision.c:1653:10: warning: parameter name 'tz' is too short, expected at least 3 characters [readability-identifier-length]
                                 int tz UNUSED,
                                     ^
/datasets/git/revision.c:1666:22: warning: variable name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
        struct all_refs_cb *cb = cb_data;
                            ^
/datasets/git/revision.c:1679:62: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static void add_other_reflogs_to_pending(struct all_refs_cb *cb)
                                                             ^
/datasets/git/revision.c:1681:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct worktree **worktrees, **p;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:1681:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/revision.c:1681:20: warning: variable 'worktrees' is not initialized [cppcoreguidelines-init-variables]
        struct worktree **worktrees, **p;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:1681:33: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct worktree **worktrees, **p;
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:1681:33: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:1684:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = worktrees; *p; p++) {
        ^
/datasets/git/revision.c:1684:22: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = worktrees; *p; p++) {
                            ^
/datasets/git/revision.c:1685:20: warning: variable name 'wt' is too short, expected at least 3 characters [readability-identifier-length]
                struct worktree *wt = *p;
                                 ^
/datasets/git/revision.c:1687:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (wt->is_current)
                                   ^
                                    {
/datasets/git/revision.c:1700:21: warning: variable name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
        struct all_refs_cb cb;
                           ^
/datasets/git/revision.c:1703:17: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        cb.all_flags = flags;
                       ^
/datasets/git/revision.c:1707:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!revs->single_worktree)
                                   ^
                                    {
/datasets/git/revision.c:1711:13: warning: function 'add_cache_tree' is within a recursive call chain [misc-no-recursion]
static void add_cache_tree(struct cache_tree *it, struct rev_info *revs,
            ^
/datasets/git/revision.c:1711:13: note: example recursive call chain, starting from function 'add_cache_tree'
/datasets/git/revision.c:1727:3: note: Frame #1: function 'add_cache_tree' calls function 'add_cache_tree' here:
                add_cache_tree(sub->cache_tree, revs, path, flags);
                ^
/datasets/git/revision.c:1727:3: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/revision.c:1711:47: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
static void add_cache_tree(struct cache_tree *it, struct rev_info *revs,
                                              ^
/datasets/git/revision.c:1715:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/revision.c:1715:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:1721:11: warning: 040000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                             040000, path->buf);
                                             ^
/datasets/git/revision.c:1724:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < it->subtree_nr; i++) {
        ^
/datasets/git/revision.c:1735:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/revision.c:1738:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!resolve_undo)
                          ^
                           {
/datasets/git/revision.c:1741:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(item, resolve_undo) {
                                  ^
/datasets/git/revision.c:1743:29: warning: variable name 'ru' is too short, expected at least 3 characters [readability-identifier-length]
                struct resolve_undo_info *ru = item->util;
                                          ^
/datasets/git/revision.c:1744:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/revision.c:1744:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:1746:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ru)
                        ^
                         {
/datasets/git/revision.c:1748:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < 3; i++) {
                ^
/datasets/git/revision.c:1749:17: warning: variable 'blob' is not initialized [cppcoreguidelines-init-variables]
                        struct blob *blob;
                                     ^
                                          = NULL
/datasets/git/revision.c:1751:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!ru->mode[i] || !S_ISREG(ru->mode[i]))
                                                                  ^
                                                                   {
/datasets/git/revision.c:1770:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/revision.c:1770:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:1774:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < istate->cache_nr; i++) {
        ^
/datasets/git/revision.c:1775:23: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                struct cache_entry *ce = istate->cache[i];
                                    ^
/datasets/git/revision.c:1776:16: warning: variable 'blob' is not initialized [cppcoreguidelines-init-variables]
                struct blob *blob;
                             ^
                                  = NULL
/datasets/git/revision.c:1778:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (S_ISGITLINK(ce->ce_mode))
                    ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/revision.c:1778:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (S_ISGITLINK(ce->ce_mode))
                                             ^
                                              {
/datasets/git/revision.c:1782:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!blob)
                          ^
                           {
/datasets/git/revision.c:1800:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct worktree **worktrees, **p;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:1800:20: warning: variable 'worktrees' is not initialized [cppcoreguidelines-init-variables]
        struct worktree **worktrees, **p;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:1800:33: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct worktree **worktrees, **p;
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:1800:33: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:1805:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->single_worktree)
                                  ^
                                   {
/datasets/git/revision.c:1809:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = worktrees; *p; p++) {
        ^
/datasets/git/revision.c:1809:22: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = worktrees; *p; p++) {
                            ^
/datasets/git/revision.c:1810:20: warning: variable name 'wt' is too short, expected at least 3 characters [readability-identifier-length]
                struct worktree *wt = *p;
                                 ^
/datasets/git/revision.c:1813:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (wt->is_current)
                                   ^
                                    {
/datasets/git/revision.c:1818:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                    get_worktree_git_dir(wt)) > 0)
                                                                  ^
                                                                   {
/datasets/git/revision.c:1825:8: warning: accessing fields in struct 'add_alternate_refs_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct add_alternate_refs_data {
       ^
/datasets/git/revision.c:1825:8: note: use "__attribute__((aligned(16)))" to align struct 'add_alternate_refs_data' to 16 bytes
/datasets/git/revision.c:1835:17: warning: variable 'obj' is not initialized [cppcoreguidelines-init-variables]
        struct object *obj;
                       ^
                           = NULL
/datasets/git/revision.c:1851:70: warning: 2 adjacent parameters of 'add_parents_only' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int add_parents_only(struct rev_info *revs, const char *arg_, int flags,
                                                                     ^~~~~~~~~~
/datasets/git/revision.c:1851:74: note: the first parameter in the range is 'flags'
static int add_parents_only(struct rev_info *revs, const char *arg_, int flags,
                                                                         ^~~~~
/datasets/git/revision.c:1852:12: note: the last parameter in the range is 'exclude_parent'
                            int exclude_parent)
                                ^~~~~~~~~~~~~~
/datasets/git/revision.c:1855:17: warning: variable 'it' is not initialized [cppcoreguidelines-init-variables]
        struct object *it;
                       ^
                          = NULL
/datasets/git/revision.c:1855:17: warning: variable name 'it' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:1856:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/revision.c:1857:22: warning: variable 'parents' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *parents;
                            ^
                                    = NULL
/datasets/git/revision.c:1858:6: warning: variable 'parent_number' is not initialized [cppcoreguidelines-init-variables]
        int parent_number;
            ^
                          = 0
/datasets/git/revision.c:1862:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags ^= UNINTERESTING | BOTTOM;
                ^~~~~
/datasets/git/revision.c:1862:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags ^= UNINTERESTING | BOTTOM;
                         ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/revision.c:1862:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags ^= UNINTERESTING | BOTTOM;
                                         ^
/datasets/git/./revision.h:37:18: note: expanded from macro 'BOTTOM'
#define BOTTOM          (1u<<10)
                         ^   ~~
/datasets/git/revision.c:1865:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid_committish(arg, &oid))
                                          ^
                                           {
/datasets/git/revision.c:1867:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/revision.c:1869:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!it && revs->ignore_missing)
                                                ^
                                                 {
/datasets/git/revision.c:1871:7: warning: Access to field 'type' results in a dereference of a null pointer (loaded from variable 'it') [clang-analyzer-core.NullDereference]
                if (it->type != OBJ_TAG)
                    ^
/datasets/git/revision.c:2831:6: note: Assuming 'opt' is non-null
        if (opt && opt->assume_dashdash) {
            ^~~
/datasets/git/revision.c:2831:6: note: Left side of '&&' is true
/datasets/git/revision.c:2831:13: note: Assuming field 'assume_dashdash' is not equal to 0
        if (opt && opt->assume_dashdash) {
                   ^~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:2831:2: note: Taking true branch
        if (opt && opt->assume_dashdash) {
        ^
/datasets/git/revision.c:2852:15: note: 'opt' is non-null
        revarg_opt = opt ? opt->revarg_opt : 0;
                     ^~~
/datasets/git/revision.c:2852:15: note: '?' condition is true
/datasets/git/revision.c:2853:6: note: 'seen_dashdash' is 1
        if (seen_dashdash)
            ^~~~~~~~~~~~~
/datasets/git/revision.c:2853:2: note: Taking true branch
        if (seen_dashdash)
        ^
/datasets/git/revision.c:2855:21: note: Assuming 'i' is < 'argc'
        for (left = i = 1; i < argc; i++) {
                           ^~~~~~~~
/datasets/git/revision.c:2855:2: note: Loop condition is true.  Entering loop body
        for (left = i = 1; i < argc; i++) {
        ^
/datasets/git/revision.c:2857:8: note: 'seen_end_of_options' is 0
                if (!seen_end_of_options && *arg == '-') {
                     ^~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:2857:7: note: Left side of '&&' is true
                if (!seen_end_of_options && *arg == '-') {
                    ^
/datasets/git/revision.c:2857:31: note: Assuming the condition is true
                if (!seen_end_of_options && *arg == '-') {
                                            ^~~~~~~~~~~
/datasets/git/revision.c:2857:3: note: Taking true branch
                if (!seen_end_of_options && *arg == '-') {
                ^
/datasets/git/revision.c:2863:8: note: Assuming 'opts' is <= 0
                        if (opts > 0) {
                            ^~~~~~~~
/datasets/git/revision.c:2863:4: note: Taking false branch
                        if (opts > 0) {
                        ^
/datasets/git/revision.c:2868:4: note: Taking true branch
                        if (!strcmp(arg, "--stdin")) {
                        ^
/datasets/git/revision.c:2869:9: note: Assuming field 'disable_stdin' is 0
                                if (revs->disable_stdin) {
                                    ^~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:2869:5: note: Taking false branch
                                if (revs->disable_stdin) {
                                ^
/datasets/git/revision.c:2873:9: note: Assuming the condition is false
                                if (revs->read_from_stdin++)
                                    ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:2873:5: note: Taking false branch
                                if (revs->read_from_stdin++)
                                ^
/datasets/git/revision.c:2875:5: note: Calling 'read_revisions_from_stdin'
                                read_revisions_from_stdin(revs, &prune_data);
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:2193:9: note: Assuming the condition is true
        while (strbuf_getline(&sb, stdin) != EOF) {
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:2193:2: note: Loop condition is true.  Entering loop body
        while (strbuf_getline(&sb, stdin) != EOF) {
        ^
/datasets/git/revision.c:2195:7: note: Assuming 'len' is not equal to 0
                if (!len)
                    ^~~~
/datasets/git/revision.c:2195:3: note: Taking false branch
                if (!len)
                ^
/datasets/git/revision.c:2197:7: note: Assuming the condition is false
                if (sb.buf[0] == '-') {
                    ^~~~~~~~~~~~~~~~
/datasets/git/revision.c:2197:3: note: Taking false branch
                if (sb.buf[0] == '-') {
                ^
/datasets/git/revision.c:2204:7: note: Calling 'handle_revision_arg'
                if (handle_revision_arg(sb.buf, revs, 0,
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:2169:12: note: Calling 'handle_revision_arg_1'
        int ret = handle_revision_arg_1(arg, revs, flags, revarg_opt);
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:2104:10: note: '?' condition is false
        flags = flags & UNINTERESTING ? flags | BOTTOM : flags & ~BOTTOM;
                ^
/datasets/git/revision.c:2106:7: note: 'cant_be_filename' is 1
        if (!cant_be_filename && !strcmp(arg, "..")) {
             ^~~~~~~~~~~~~~~~
/datasets/git/revision.c:2106:24: note: Left side of '&&' is false
        if (!cant_be_filename && !strcmp(arg, "..")) {
                              ^
/datasets/git/revision.c:2114:7: note: Calling 'handle_dotdot'
        if (!handle_dotdot(arg, revs, flags, revarg_opt))
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:2076:6: note: Assuming 'dotdot' is null
        if (!dotdot)
            ^~~~~~~
/datasets/git/revision.c:2076:2: note: Taking true branch
        if (!dotdot)
        ^
/datasets/git/revision.c:2077:3: note: Returning without writing to 'revs->ignore_missing', which participates in a condition later
                return -1;
                ^
/datasets/git/revision.c:2114:7: note: Returning from 'handle_dotdot'
        if (!handle_dotdot(arg, revs, flags, revarg_opt))
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:2114:2: note: Taking false branch
        if (!handle_dotdot(arg, revs, flags, revarg_opt))
        ^
/datasets/git/revision.c:2118:6: note: Assuming 'mark' is non-null
        if (mark && !mark[2]) {
            ^~~~
/datasets/git/revision.c:2118:6: note: Left side of '&&' is true
/datasets/git/revision.c:2118:14: note: Assuming the condition is true
        if (mark && !mark[2]) {
                    ^~~~~~~~
/datasets/git/revision.c:2118:2: note: Taking true branch
        if (mark && !mark[2]) {
        ^
/datasets/git/revision.c:2120:7: note: Calling 'add_parents_only'
                if (add_parents_only(revs, arg, flags, 0))
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:1861:6: note: Assuming the condition is false
        if (*arg == '^') {
            ^~~~~~~~~~~
/datasets/git/revision.c:1861:2: note: Taking false branch
        if (*arg == '^') {
        ^
/datasets/git/revision.c:1865:6: note: Assuming the condition is false
        if (get_oid_committish(arg, &oid))
            ^
/datasets/git/./refs/../cache.h:1489:38: note: expanded from macro 'get_oid_committish'
#define get_oid_committish(str, oid)    repo_get_oid_committish(the_repository, str, oid)
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:1865:2: note: Taking false branch
        if (get_oid_committish(arg, &oid))
        ^
/datasets/git/revision.c:1867:2: note: Loop condition is true.  Entering loop body
        while (1) {
        ^
/datasets/git/revision.c:1868:3: note: Value assigned to 'it'
                it = get_reference(revs, arg, &oid, 0);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:1869:7: note: Assuming 'it' is null
                if (!it && revs->ignore_missing)
                    ^~~
/datasets/git/revision.c:1869:7: note: Assuming pointer value is null
                if (!it && revs->ignore_missing)
                    ^~~
/datasets/git/revision.c:1869:7: note: Left side of '&&' is true
/datasets/git/revision.c:1869:14: note: Assuming field 'ignore_missing' is 0
                if (!it && revs->ignore_missing)
                           ^~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:1869:3: note: Taking false branch
                if (!it && revs->ignore_missing)
                ^
/datasets/git/revision.c:1871:7: note: Access to field 'type' results in a dereference of a null pointer (loaded from variable 'it')
                if (it->type != OBJ_TAG)
                    ^~
/datasets/git/revision.c:1871:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (it->type != OBJ_TAG)
                                        ^
                                         {
/datasets/git/revision.c:1873:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!((struct tag*)it)->tagged)
                                               ^
                                                {
/datasets/git/revision.c:1877:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (it->type != OBJ_COMMIT)
                                   ^
                                    {
/datasets/git/revision.c:1881:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            exclude_parent > commit_list_count(commit->parents))
                                                                ^
                                                                 {
/datasets/git/revision.c:1883:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (parents = commit->parents, parent_number = 1;
        ^
/datasets/git/revision.c:1884:7: warning: backward branch (for loop) is ID-dependent due to variable reference to 'parents' and may cause performance degradation [altera-id-dependent-backward-branch]
             parents;
             ^
/datasets/git/revision.c:1886:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (exclude_parent && parent_number != exclude_parent)
                                                                      ^
                                                                       {
/datasets/git/revision.c:1890:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                it->flags |= flags;
                ^            ~~~~~
/datasets/git/revision.c:1897:45: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void repo_init_revisions(struct repository *r,
                                            ^
/datasets/git/revision.c:1902:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(revs, &blank, sizeof(*revs));
        ^~~~~~
/datasets/git/revision.c:1902:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(revs, &blank, sizeof(*revs));
        ^~~~~~
/datasets/git/revision.c:1917:33: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                revs->diffopt.prefix_length = strlen(prefix);
                                              ^
/datasets/git/revision.c:1929:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (commit_list) {
        ^
/datasets/git/revision.c:1929:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'commit_list' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (commit_list) {
               ^
/datasets/git/revision.c:1939:22: warning: variable 'bases' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *bases;
                            ^
                                  = NULL
/datasets/git/revision.c:1940:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit *head, *other;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:1940:17: warning: variable 'head' is not initialized [cppcoreguidelines-init-variables]
        struct commit *head, *other;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:1940:24: warning: variable 'other' is not initialized [cppcoreguidelines-init-variables]
        struct commit *head, *other;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:1943:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, prune_num = 1; /* counting terminating NULL */
        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:1943:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, prune_num = 1; /* counting terminating NULL */
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:1943:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:1946:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid("HEAD", &oid))
                                  ^
                                   {
/datasets/git/revision.c:1949:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid("MERGE_HEAD", &oid))
                                        ^
                                         {
/datasets/git/revision.c:1955:56: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        add_rev_cmdline_list(revs, bases, REV_CMD_MERGE_BASE, UNINTERESTING | BOTTOM);
                                                              ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/revision.c:1955:72: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        add_rev_cmdline_list(revs, bases, REV_CMD_MERGE_BASE, UNINTERESTING | BOTTOM);
                                                                              ^
/datasets/git/./revision.h:37:18: note: expanded from macro 'BOTTOM'
#define BOTTOM          (1u<<10)
                         ^   ~~
/datasets/git/revision.c:1956:39: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        add_pending_commit_list(revs, bases, UNINTERESTING | BOTTOM);
                                             ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/revision.c:1956:55: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        add_pending_commit_list(revs, bases, UNINTERESTING | BOTTOM);
                                                             ^
/datasets/git/./revision.h:37:18: note: expanded from macro 'BOTTOM'
#define BOTTOM          (1u<<10)
                         ^   ~~
/datasets/git/revision.c:1958:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        head->object.flags |= SYMMETRIC_LEFT;
                              ^
/datasets/git/./revision.h:35:25: note: expanded from macro 'SYMMETRIC_LEFT'
#define SYMMETRIC_LEFT  (1u<<8)
                         ^   ~
/datasets/git/revision.c:1960:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!istate->cache_nr)
                              ^
                               {
/datasets/git/revision.c:1962:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'istate' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < istate->cache_nr; i++) {
                    ^
/datasets/git/revision.c:1963:29: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                const struct cache_entry *ce = istate->cache[i];
                                          ^
/datasets/git/revision.c:1964:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!ce_stage(ce))
                     ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/revision.c:1964:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ce_stage(ce))
                                  ^
                                   {
/datasets/git/revision.c:1972:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while ((i+1 < istate->cache_nr) &&
                ^
/datasets/git/revision.c:1972:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'istate' and may cause performance degradation [altera-id-dependent-backward-branch]
                while ((i+1 < istate->cache_nr) &&
                       ^
/datasets/git/revision.c:1973:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                       ce_same_name(ce, istate->cache[i+1]))
                                                            ^
                                                             {
/datasets/git/revision.c:1977:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        parse_pathspec(&revs->prune_data, PATHSPEC_ALL_MAGIC & ~PATHSPEC_LITERAL,
                                          ^
/datasets/git/./pathspec.h:15:2: note: expanded from macro 'PATHSPEC_ALL_MAGIC'
        (PATHSPEC_FROMTOP       | \
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:1977:57: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
        parse_pathspec(&revs->prune_data, PATHSPEC_ALL_MAGIC & ~PATHSPEC_LITERAL,
                                                               ^
/datasets/git/revision.c:1977:58: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        parse_pathspec(&revs->prune_data, PATHSPEC_ALL_MAGIC & ~PATHSPEC_LITERAL,
                                                                ^
/datasets/git/./pathspec.h:9:27: note: expanded from macro 'PATHSPEC_LITERAL'
#define PATHSPEC_LITERAL        (1<<2)
                                 ^
/datasets/git/revision.c:1978:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_PREFER_FULL | PATHSPEC_LITERAL_PATH, "", prune);
                       ^
/datasets/git/./pathspec.h:66:30: note: expanded from macro 'PATHSPEC_PREFER_FULL'
#define PATHSPEC_PREFER_FULL (1<<1) /* No args means match everything */
                             ^~~~~~
/datasets/git/revision.c:1978:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_PREFER_FULL | PATHSPEC_LITERAL_PATH, "", prune);
                                              ^
/datasets/git/./pathspec.h:78:32: note: expanded from macro 'PATHSPEC_LITERAL_PATH'
#define PATHSPEC_LITERAL_PATH (1<<6)
                               ^
/datasets/git/revision.c:1985:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->ignore_missing)
                                 ^
                                  {
/datasets/git/revision.c:1995:30: warning: 2 adjacent parameters of 'handle_dotdot_1' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                           struct rev_info *revs, int flags,
                                                  ^~~~~~~~~~
/datasets/git/revision.c:1995:34: note: the first parameter in the range is 'flags'
                           struct rev_info *revs, int flags,
                                                      ^~~~~
/datasets/git/revision.c:1996:11: note: the last parameter in the range is 'cant_be_filename'
                           int cant_be_filename,
                               ^~~~~~~~~~~~~~~~
/datasets/git/revision.c:2000:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *a_name, *b_name;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:2000:14: warning: variable 'a_name' is not initialized [cppcoreguidelines-init-variables]
        const char *a_name, *b_name;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:2000:23: warning: variable 'b_name' is not initialized [cppcoreguidelines-init-variables]
        const char *a_name, *b_name;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:2001:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct object_id a_oid, b_oid;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:2002:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct object *a_obj, *b_obj;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:2002:17: warning: variable 'a_obj' is not initialized [cppcoreguidelines-init-variables]
        struct object *a_obj, *b_obj;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:2002:25: warning: variable 'b_obj' is not initialized [cppcoreguidelines-init-variables]
        struct object *a_obj, *b_obj;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:2003:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned int a_flags, b_flags;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:2003:15: warning: variable 'a_flags' is not initialized [cppcoreguidelines-init-variables]
        unsigned int a_flags, b_flags;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:2003:24: warning: variable 'b_flags' is not initialized [cppcoreguidelines-init-variables]
        unsigned int a_flags, b_flags;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:2005:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned int flags_exclude = flags ^ (UNINTERESTING | BOTTOM);
                                     ^~~~~
/datasets/git/revision.c:2005:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned int flags_exclude = flags ^ (UNINTERESTING | BOTTOM);
                                              ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/revision.c:2005:56: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned int flags_exclude = flags ^ (UNINTERESTING | BOTTOM);
                                                              ^
/datasets/git/./revision.h:37:18: note: expanded from macro 'BOTTOM'
#define BOTTOM          (1u<<10)
                         ^   ~~
/datasets/git/revision.c:2006:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned int oc_flags = GET_OID_COMMITTISH | GET_OID_RECORD_PATH;
                                ^
/datasets/git/./refs/../cache.h:1439:35: note: expanded from macro 'GET_OID_COMMITTISH'
#define GET_OID_COMMITTISH        04
                                  ^~
/datasets/git/revision.c:2009:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!*a_name)
                     ^
                      {
/datasets/git/revision.c:2017:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!*b_name)
                     ^
                      {
/datasets/git/revision.c:2021:71: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            get_oid_with_context(revs->repo, b_name, oc_flags, &b_oid, b_oc))
                                                                             ^
                                                                              {
/datasets/git/revision.c:2032:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!a_obj || !b_obj)
                             ^
                              {
/datasets/git/revision.c:2041:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                struct commit *a, *b;
                ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:2041:18: warning: variable 'a' is not initialized [cppcoreguidelines-init-variables]
                struct commit *a, *b;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:2041:18: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:2041:22: warning: variable 'b' is not initialized [cppcoreguidelines-init-variables]
                struct commit *a, *b;
                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:2041:22: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:2042:23: warning: variable 'exclude' is not initialized [cppcoreguidelines-init-variables]
                struct commit_list *exclude;
                                    ^
                                            = NULL
/datasets/git/revision.c:2046:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!a || !b)
                             ^
                              {
/datasets/git/revision.c:2056:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                a_flags = flags | SYMMETRIC_LEFT;
                          ^~~~~
/datasets/git/revision.c:2056:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                a_flags = flags | SYMMETRIC_LEFT;
                                  ^
/datasets/git/./revision.h:35:25: note: expanded from macro 'SYMMETRIC_LEFT'
#define SYMMETRIC_LEFT  (1u<<8)
                         ^   ~
/datasets/git/revision.c:2072:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct object_context a_oc, b_oc;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:2074:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/revision.c:2076:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!dotdot)
                    ^
                     {
/datasets/git/revision.c:2079:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&a_oc, 0, sizeof(a_oc));
        ^~~~~~
/datasets/git/revision.c:2079:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&a_oc, 0, sizeof(a_oc));
        ^~~~~~
/datasets/git/revision.c:2080:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&b_oc, 0, sizeof(b_oc));
        ^~~~~~
/datasets/git/revision.c:2080:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&b_oc, 0, sizeof(b_oc));
        ^~~~~~
/datasets/git/revision.c:2093:12: warning: function 'handle_revision_arg_1' has cognitive complexity of 30 (threshold 25) [readability-function-cognitive-complexity]
static int handle_revision_arg_1(const char *arg_, struct rev_info *revs, int flags, unsigned revarg_opt)
           ^
/datasets/git/revision.c:2104:32: note: +1, including nesting penalty of 0, nesting level increased to 1
        flags = flags & UNINTERESTING ? flags | BOTTOM : flags & ~BOTTOM;
                                      ^
/datasets/git/revision.c:2106:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!cant_be_filename && !strcmp(arg, "..")) {
        ^
/datasets/git/revision.c:2106:24: note: +1
        if (!cant_be_filename && !strcmp(arg, "..")) {
                              ^
/datasets/git/revision.c:2114:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!handle_dotdot(arg, revs, flags, revarg_opt))
        ^
/datasets/git/revision.c:2118:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mark && !mark[2]) {
        ^
/datasets/git/revision.c:2118:11: note: +1
        if (mark && !mark[2]) {
                 ^
/datasets/git/revision.c:2120:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (add_parents_only(revs, arg, flags, 0))
                ^
/datasets/git/revision.c:2125:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mark && !mark[2]) {
        ^
/datasets/git/revision.c:2125:11: note: +1
        if (mark && !mark[2]) {
                 ^
/datasets/git/revision.c:2127:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!add_parents_only(revs, arg, flags ^ (UNINTERESTING | BOTTOM), 0))
                ^
/datasets/git/revision.c:2131:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mark) {
        ^
/datasets/git/revision.c:2134:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (mark[2]) {
                ^
/datasets/git/revision.c:2135:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (strtol_i(mark + 2, 10, &exclude_parent) ||
                        ^
/datasets/git/revision.c:2135:48: note: +1
                        if (strtol_i(mark + 2, 10, &exclude_parent) ||
                                                                    ^
/datasets/git/revision.c:2141:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!add_parents_only(revs, arg, flags ^ (UNINTERESTING | BOTTOM), exclude_parent))
                ^
/datasets/git/revision.c:2146:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (*arg == '^') {
        ^
/datasets/git/revision.c:2151:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (revarg_opt & REVARG_COMMITTISH)
        ^
/datasets/git/revision.c:2154:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (get_oid_with_context(revs->repo, arg, get_sha1_flags, &oid, &oc))
        ^
/datasets/git/revision.c:2155:31: note: +2, including nesting penalty of 1, nesting level increased to 2
                return revs->ignore_missing ? 0 : -1;
                                            ^
/datasets/git/revision.c:2156:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!cant_be_filename)
        ^
/datasets/git/revision.c:2159:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!object)
        ^
/datasets/git/revision.c:2160:31: note: +2, including nesting penalty of 1, nesting level increased to 2
                return revs->ignore_missing ? 0 : -1;
                                            ^
/datasets/git/revision.c:2095:24: warning: variable name 'oc' is too short, expected at least 3 characters [readability-identifier-length]
        struct object_context oc;
                              ^
/datasets/git/revision.c:2096:8: warning: variable 'mark' is not initialized [cppcoreguidelines-init-variables]
        char *mark;
              ^
                   = NULL
/datasets/git/revision.c:2097:17: warning: variable 'object' is not initialized [cppcoreguidelines-init-variables]
        struct object *object;
                       ^
                              = NULL
/datasets/git/revision.c:2099:6: warning: variable 'local_flags' is not initialized [cppcoreguidelines-init-variables]
        int local_flags;
            ^
                        = 0
/datasets/git/revision.c:2101:25: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int cant_be_filename = revarg_opt & REVARG_CANNOT_BE_FILENAME;
                               ^
/datasets/git/revision.c:2101:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
/datasets/git/revision.c:2104:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        flags = flags & UNINTERESTING ? flags | BOTTOM : flags & ~BOTTOM;
                ^~~~~
/datasets/git/revision.c:2104:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        flags = flags & UNINTERESTING ? flags | BOTTOM : flags & ~BOTTOM;
                        ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/revision.c:2104:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        flags = flags & UNINTERESTING ? flags | BOTTOM : flags & ~BOTTOM;
                                        ^~~~~
/datasets/git/revision.c:2104:40: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        flags = flags & UNINTERESTING ? flags | BOTTOM : flags & ~BOTTOM;
                                              ^
/datasets/git/revision.c:2104:42: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        flags = flags & UNINTERESTING ? flags | BOTTOM : flags & ~BOTTOM;
                                                ^
/datasets/git/./revision.h:37:18: note: expanded from macro 'BOTTOM'
#define BOTTOM          (1u<<10)
                         ^   ~~
/datasets/git/revision.c:2104:51: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        flags = flags & UNINTERESTING ? flags | BOTTOM : flags & ~BOTTOM;
                                                         ^~~~~
/datasets/git/revision.c:2104:57: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        flags = flags & UNINTERESTING ? flags | BOTTOM : flags & ~BOTTOM;
                                                               ^
/datasets/git/revision.c:2104:60: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        flags = flags & UNINTERESTING ? flags | BOTTOM : flags & ~BOTTOM;
                                                                  ^
/datasets/git/./revision.h:37:18: note: expanded from macro 'BOTTOM'
#define BOTTOM          (1u<<10)
                         ^   ~~
/datasets/git/revision.c:2114:39: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        if (!handle_dotdot(arg, revs, flags, revarg_opt))
                                             ^
/datasets/git/revision.c:2114:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!handle_dotdot(arg, revs, flags, revarg_opt))
                                                         ^
                                                          {
/datasets/git/revision.c:2120:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (add_parents_only(revs, arg, flags, 0))
                                                          ^
                                                           {
/datasets/git/revision.c:2127:36: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                if (!add_parents_only(revs, arg, flags ^ (UNINTERESTING | BOTTOM), 0))
                                                 ^
/datasets/git/revision.c:2127:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!add_parents_only(revs, arg, flags ^ (UNINTERESTING | BOTTOM), 0))
                                                 ^~~~~
/datasets/git/revision.c:2127:45: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!add_parents_only(revs, arg, flags ^ (UNINTERESTING | BOTTOM), 0))
                                                          ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/revision.c:2127:61: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!add_parents_only(revs, arg, flags ^ (UNINTERESTING | BOTTOM), 0))
                                                                          ^
/datasets/git/./revision.h:37:18: note: expanded from macro 'BOTTOM'
#define BOTTOM          (1u<<10)
                         ^   ~~
/datasets/git/revision.c:2127:73: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!add_parents_only(revs, arg, flags ^ (UNINTERESTING | BOTTOM), 0))
                                                                                      ^
                                                                                       {
/datasets/git/revision.c:2135:27: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        if (strtol_i(mark + 2, 10, &exclude_parent) ||
                                               ^
/datasets/git/revision.c:2136:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            exclude_parent < 1)
                                               ^
                                                {
/datasets/git/revision.c:2141:36: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                if (!add_parents_only(revs, arg, flags ^ (UNINTERESTING | BOTTOM), exclude_parent))
                                                 ^
/datasets/git/revision.c:2141:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!add_parents_only(revs, arg, flags ^ (UNINTERESTING | BOTTOM), exclude_parent))
                                                 ^~~~~
/datasets/git/revision.c:2141:45: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!add_parents_only(revs, arg, flags ^ (UNINTERESTING | BOTTOM), exclude_parent))
                                                          ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/revision.c:2141:61: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!add_parents_only(revs, arg, flags ^ (UNINTERESTING | BOTTOM), exclude_parent))
                                                                          ^
/datasets/git/./revision.h:37:18: note: expanded from macro 'BOTTOM'
#define BOTTOM          (1u<<10)
                         ^   ~~
/datasets/git/revision.c:2141:86: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!add_parents_only(revs, arg, flags ^ (UNINTERESTING | BOTTOM), exclude_parent))
                                                                                                   ^
                                                                                                    {
/datasets/git/revision.c:2147:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                local_flags = UNINTERESTING | BOTTOM;
                              ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/revision.c:2147:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                local_flags = UNINTERESTING | BOTTOM;
                                              ^
/datasets/git/./revision.h:37:18: note: expanded from macro 'BOTTOM'
#define BOTTOM          (1u<<10)
                         ^   ~~
/datasets/git/revision.c:2151:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (revarg_opt & REVARG_COMMITTISH)
            ^
/datasets/git/revision.c:2151:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revarg_opt & REVARG_COMMITTISH)
                                           ^
                                            {
/datasets/git/revision.c:2152:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                get_sha1_flags |= GET_OID_COMMITTISH;
                ^
/datasets/git/revision.c:2154:71: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid_with_context(revs->repo, arg, get_sha1_flags, &oid, &oc))
                                                                             ^
                                                                              {
/datasets/git/revision.c:2156:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!cant_be_filename)
                              ^
                               {
/datasets/git/revision.c:2158:42: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        object = get_reference(revs, arg, &oid, flags ^ local_flags);
                                                ^~~~~
/datasets/git/revision.c:2159:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!object)
                    ^
                     {
/datasets/git/revision.c:2161:51: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        add_rev_cmdline(revs, object, arg_, REV_CMD_REV, flags ^ local_flags);
                                                         ^~~~~
/datasets/git/revision.c:2170:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ret)
                 ^
                  {
/datasets/git/revision.c:2175:53: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static void read_pathspec_from_stdin(struct strbuf *sb,
                                                    ^
/datasets/git/revision.c:2178:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (strbuf_getline(sb, stdin) != EOF)
        ^
/datasets/git/revision.c:2178:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (strbuf_getline(sb, stdin) != EOF)
                                                ^
                                                 {
/datasets/git/revision.c:2185:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb;
                      ^
/datasets/git/revision.c:2187:6: warning: variable 'save_warning' is not initialized [cppcoreguidelines-init-variables]
        int save_warning;
            ^
                         = 0
/datasets/git/revision.c:2192:19: warning: 1000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        strbuf_init(&sb, 1000);
                         ^
/datasets/git/revision.c:2193:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (strbuf_getline(&sb, stdin) != EOF) {
        ^
/datasets/git/revision.c:2194:13: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int len = sb.len;
                          ^
/datasets/git/revision.c:2195:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!len)
                         ^
                          {
/datasets/git/revision.c:2205:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        REVARG_CANNOT_BE_FILENAME))
                                                                   ^
                                                                    {
/datasets/git/revision.c:2208:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (seen_dashdash)
                          ^
                           {
/datasets/git/revision.c:2230:12: warning: function 'handle_revision_opt' has cognitive complexity of 162 (threshold 25) [readability-function-cognitive-complexity]
static int handle_revision_opt(struct rev_info *revs, int argc, const char **argv,
           ^
/datasets/git/revision.c:2240:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(arg, "--all") || !strcmp(arg, "--branches") ||
        ^
/datasets/git/revision.c:2249:37: note: +1
            starts_with(arg, "--remotes=") || starts_with(arg, "--no-walk="))
                                           ^
/datasets/git/revision.c:2255:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((argcount = parse_long_opt("max-count", argv, &optarg))) {
        ^
/datasets/git/revision.c:2259:9: note: +1, nesting level increased to 1
        } else if ((argcount = parse_long_opt("skip", argv, &optarg))) {
               ^
/datasets/git/revision.c:2262:9: note: +1, nesting level increased to 1
        } else if ((*arg == '-') && isdigit(arg[1])) {
               ^
/datasets/git/revision.c:2262:27: note: +1
        } else if ((*arg == '-') && isdigit(arg[1])) {
                                 ^
/datasets/git/revision.c:2264:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (strtol_i(arg + 1, 10, &revs->max_count) < 0 ||
                ^
/datasets/git/revision.c:2264:51: note: +1
                if (strtol_i(arg + 1, 10, &revs->max_count) < 0 ||
                                                                ^
/datasets/git/revision.c:2268:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "-n")) {
               ^
/datasets/git/revision.c:2269:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (argc <= 1)
                ^
/datasets/git/revision.c:2274:9: note: +1, nesting level increased to 1
        } else if (skip_prefix(arg, "-n", &optarg)) {
               ^
/datasets/git/revision.c:2277:9: note: +1, nesting level increased to 1
        } else if ((argcount = parse_long_opt("max-age", argv, &optarg))) {
               ^
/datasets/git/revision.c:2280:9: note: +1, nesting level increased to 1
        } else if ((argcount = parse_long_opt("since", argv, &optarg))) {
               ^
/datasets/git/revision.c:2283:9: note: +1, nesting level increased to 1
        } else if ((argcount = parse_long_opt("since-as-filter", argv, &optarg))) {
               ^
/datasets/git/revision.c:2286:9: note: +1, nesting level increased to 1
        } else if ((argcount = parse_long_opt("after", argv, &optarg))) {
               ^
/datasets/git/revision.c:2289:9: note: +1, nesting level increased to 1
        } else if ((argcount = parse_long_opt("min-age", argv, &optarg))) {
               ^
/datasets/git/revision.c:2292:9: note: +1, nesting level increased to 1
        } else if ((argcount = parse_long_opt("before", argv, &optarg))) {
               ^
/datasets/git/revision.c:2295:9: note: +1, nesting level increased to 1
        } else if ((argcount = parse_long_opt("until", argv, &optarg))) {
               ^
/datasets/git/revision.c:2298:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--first-parent")) {
               ^
/datasets/git/revision.c:2300:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--exclude-first-parent-only")) {
               ^
/datasets/git/revision.c:2302:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--ancestry-path")) {
               ^
/datasets/git/revision.c:2307:9: note: +1, nesting level increased to 1
        } else if (skip_prefix(arg, "--ancestry-path=", &optarg)) {
               ^
/datasets/git/revision.c:2316:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (repo_get_oid_committish(revs->repo, optarg, &oid))
                ^
/datasets/git/revision.c:2320:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!c)
                ^
/datasets/git/revision.c:2323:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "-g") || !strcmp(arg, "--walk-reflogs")) {
               ^
/datasets/git/revision.c:2323:32: note: +1
        } else if (!strcmp(arg, "-g") || !strcmp(arg, "--walk-reflogs")) {
                                      ^
/datasets/git/revision.c:2325:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--default")) {
               ^
/datasets/git/revision.c:2326:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (argc <= 1)
                ^
/datasets/git/revision.c:2330:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--merge")) {
               ^
/datasets/git/revision.c:2332:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--topo-order")) {
               ^
/datasets/git/revision.c:2335:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--simplify-merges")) {
               ^
/datasets/git/revision.c:2341:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--simplify-by-decoration")) {
               ^
/datasets/git/revision.c:2349:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--date-order")) {
               ^
/datasets/git/revision.c:2352:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--author-date-order")) {
               ^
/datasets/git/revision.c:2355:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--early-output")) {
               ^
/datasets/git/revision.c:2358:9: note: +1, nesting level increased to 1
        } else if (skip_prefix(arg, "--early-output=", &optarg)) {
               ^
/datasets/git/revision.c:2359:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (strtoul_ui(optarg, 10, &revs->early_output) < 0)
                ^
/datasets/git/revision.c:2362:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--parents")) {
               ^
/datasets/git/revision.c:2365:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--dense")) {
               ^
/datasets/git/revision.c:2367:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--sparse")) {
               ^
/datasets/git/revision.c:2369:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--in-commit-order")) {
               ^
/datasets/git/revision.c:2371:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--remove-empty")) {
               ^
/datasets/git/revision.c:2373:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--merges")) {
               ^
/datasets/git/revision.c:2375:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--no-merges")) {
               ^
/datasets/git/revision.c:2377:9: note: +1, nesting level increased to 1
        } else if (skip_prefix(arg, "--min-parents=", &optarg)) {
               ^
/datasets/git/revision.c:2379:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--no-min-parents")) {
               ^
/datasets/git/revision.c:2381:9: note: +1, nesting level increased to 1
        } else if (skip_prefix(arg, "--max-parents=", &optarg)) {
               ^
/datasets/git/revision.c:2383:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--no-max-parents")) {
               ^
/datasets/git/revision.c:2385:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--boundary")) {
               ^
/datasets/git/revision.c:2387:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--left-right")) {
               ^
/datasets/git/revision.c:2389:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--left-only")) {
               ^
/datasets/git/revision.c:2390:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (revs->right_only)
                ^
/datasets/git/revision.c:2394:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--right-only")) {
               ^
/datasets/git/revision.c:2395:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (revs->left_only)
                ^
/datasets/git/revision.c:2398:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--cherry")) {
               ^
/datasets/git/revision.c:2399:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (revs->left_only)
                ^
/datasets/git/revision.c:2405:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--count")) {
               ^
/datasets/git/revision.c:2407:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--cherry-mark")) {
               ^
/datasets/git/revision.c:2408:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (revs->cherry_pick)
                ^
/datasets/git/revision.c:2412:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--cherry-pick")) {
               ^
/datasets/git/revision.c:2413:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (revs->cherry_mark)
                ^
/datasets/git/revision.c:2417:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--objects")) {
               ^
/datasets/git/revision.c:2421:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--objects-edge")) {
               ^
/datasets/git/revision.c:2426:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--objects-edge-aggressive")) {
               ^
/datasets/git/revision.c:2432:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--verify-objects")) {
               ^
/datasets/git/revision.c:2438:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--unpacked")) {
               ^
/datasets/git/revision.c:2440:9: note: +1, nesting level increased to 1
        } else if (starts_with(arg, "--unpacked=")) {
               ^
/datasets/git/revision.c:2442:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--no-kept-objects")) {
               ^
/datasets/git/revision.c:2446:9: note: +1, nesting level increased to 1
        } else if (skip_prefix(arg, "--no-kept-objects=", &optarg)) {
               ^
/datasets/git/revision.c:2448:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(optarg, "in-core"))
                ^
/datasets/git/revision.c:2450:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(optarg, "on-disk"))
                ^
/datasets/git/revision.c:2452:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "-r")) {
               ^
/datasets/git/revision.c:2455:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "-t")) {
               ^
/datasets/git/revision.c:2459:9: note: +1, nesting level increased to 1
        } else if ((argcount = diff_merges_parse_opts(revs, argv))) {
               ^
/datasets/git/revision.c:2461:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "-v")) {
               ^
/datasets/git/revision.c:2463:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--pretty")) {
               ^
/datasets/git/revision.c:2467:9: note: +1, nesting level increased to 1
        } else if (skip_prefix(arg, "--pretty=", &optarg) ||
               ^
/datasets/git/revision.c:2467:52: note: +1
        } else if (skip_prefix(arg, "--pretty=", &optarg) ||
                                                          ^
/datasets/git/revision.c:2476:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--expand-tabs")) {
               ^
/datasets/git/revision.c:2478:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--no-expand-tabs")) {
               ^
/datasets/git/revision.c:2480:9: note: +1, nesting level increased to 1
        } else if (skip_prefix(arg, "--expand-tabs=", &arg)) {
               ^
/datasets/git/revision.c:2482:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (strtol_i(arg, 10, &val) < 0 || val < 0)
                ^
/datasets/git/revision.c:2482:35: note: +1
                if (strtol_i(arg, 10, &val) < 0 || val < 0)
                                                ^
/datasets/git/revision.c:2485:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--show-notes") || !strcmp(arg, "--notes")) {
               ^
/datasets/git/revision.c:2485:42: note: +1
        } else if (!strcmp(arg, "--show-notes") || !strcmp(arg, "--notes")) {
                                                ^
/datasets/git/revision.c:2488:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--show-signature")) {
               ^
/datasets/git/revision.c:2490:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--no-show-signature")) {
               ^
/datasets/git/revision.c:2492:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--show-linear-break")) {
               ^
/datasets/git/revision.c:2496:9: note: +1, nesting level increased to 1
        } else if (skip_prefix(arg, "--show-linear-break=", &optarg)) {
               ^
/datasets/git/revision.c:2500:9: note: +1, nesting level increased to 1
        } else if (skip_prefix(arg, "--show-notes=", &optarg) ||
               ^
/datasets/git/revision.c:2500:56: note: +1
        } else if (skip_prefix(arg, "--show-notes=", &optarg) ||
                                                              ^
/datasets/git/revision.c:2502:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (starts_with(arg, "--show-notes=") &&
                ^
/datasets/git/revision.c:2502:41: note: +1
                if (starts_with(arg, "--show-notes=") &&
                                                      ^
/datasets/git/revision.c:2507:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--no-notes")) {
               ^
/datasets/git/revision.c:2510:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--standard-notes")) {
               ^
/datasets/git/revision.c:2513:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--no-standard-notes")) {
               ^
/datasets/git/revision.c:2515:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--oneline")) {
               ^
/datasets/git/revision.c:2520:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--graph")) {
               ^
/datasets/git/revision.c:2523:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--no-graph")) {
               ^
/datasets/git/revision.c:2526:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--encode-email-headers")) {
               ^
/datasets/git/revision.c:2528:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--no-encode-email-headers")) {
               ^
/datasets/git/revision.c:2530:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--root")) {
               ^
/datasets/git/revision.c:2532:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--no-commit-id")) {
               ^
/datasets/git/revision.c:2534:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--always")) {
               ^
/datasets/git/revision.c:2536:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--no-abbrev")) {
               ^
/datasets/git/revision.c:2538:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--abbrev")) {
               ^
/datasets/git/revision.c:2540:9: note: +1, nesting level increased to 1
        } else if (skip_prefix(arg, "--abbrev=", &optarg)) {
               ^
/datasets/git/revision.c:2542:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (revs->abbrev < MINIMUM_ABBREV)
                ^
/datasets/git/revision.c:2544:8: note: +1, nesting level increased to 2
                else if (revs->abbrev > hexsz)
                     ^
/datasets/git/revision.c:2546:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--abbrev-commit")) {
               ^
/datasets/git/revision.c:2549:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--no-abbrev-commit")) {
               ^
/datasets/git/revision.c:2551:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--full-diff")) {
               ^
/datasets/git/revision.c:2554:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--show-pulls")) {
               ^
/datasets/git/revision.c:2556:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--full-history")) {
               ^
/datasets/git/revision.c:2558:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--relative-date")) {
               ^
/datasets/git/revision.c:2561:9: note: +1, nesting level increased to 1
        } else if ((argcount = parse_long_opt("date", argv, &optarg))) {
               ^
/datasets/git/revision.c:2565:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--log-size")) {
               ^
/datasets/git/revision.c:2571:7: note: +1, nesting level increased to 1
        else if ((argcount = parse_long_opt("author", argv, &optarg))) {
             ^
/datasets/git/revision.c:2574:9: note: +1, nesting level increased to 1
        } else if ((argcount = parse_long_opt("committer", argv, &optarg))) {
               ^
/datasets/git/revision.c:2577:9: note: +1, nesting level increased to 1
        } else if ((argcount = parse_long_opt("grep-reflog", argv, &optarg))) {
               ^
/datasets/git/revision.c:2580:9: note: +1, nesting level increased to 1
        } else if ((argcount = parse_long_opt("grep", argv, &optarg))) {
               ^
/datasets/git/revision.c:2583:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--basic-regexp")) {
               ^
/datasets/git/revision.c:2585:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--extended-regexp") || !strcmp(arg, "-E")) {
               ^
/datasets/git/revision.c:2585:47: note: +1
        } else if (!strcmp(arg, "--extended-regexp") || !strcmp(arg, "-E")) {
                                                     ^
/datasets/git/revision.c:2587:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--regexp-ignore-case") || !strcmp(arg, "-i")) {
               ^
/datasets/git/revision.c:2587:50: note: +1
        } else if (!strcmp(arg, "--regexp-ignore-case") || !strcmp(arg, "-i")) {
                                                        ^
/datasets/git/revision.c:2590:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--fixed-strings") || !strcmp(arg, "-F")) {
               ^
/datasets/git/revision.c:2590:45: note: +1
        } else if (!strcmp(arg, "--fixed-strings") || !strcmp(arg, "-F")) {
                                                   ^
/datasets/git/revision.c:2592:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--perl-regexp") || !strcmp(arg, "-P")) {
               ^
/datasets/git/revision.c:2592:43: note: +1
        } else if (!strcmp(arg, "--perl-regexp") || !strcmp(arg, "-P")) {
                                                 ^
/datasets/git/revision.c:2594:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--all-match")) {
               ^
/datasets/git/revision.c:2596:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--invert-grep")) {
               ^
/datasets/git/revision.c:2598:9: note: +1, nesting level increased to 1
        } else if ((argcount = parse_long_opt("encoding", argv, &optarg))) {
               ^
/datasets/git/revision.c:2599:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (strcmp(optarg, "none"))
                ^
/datasets/git/revision.c:2601:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/revision.c:2604:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--reverse")) {
               ^
/datasets/git/revision.c:2606:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--children")) {
               ^
/datasets/git/revision.c:2609:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--ignore-missing")) {
               ^
/datasets/git/revision.c:2611:9: note: +1, nesting level increased to 1
        } else if (opt && opt->allow_exclude_promisor_objects &&
               ^
/datasets/git/revision.c:2611:56: note: +1
        } else if (opt && opt->allow_exclude_promisor_objects &&
                                                              ^
/datasets/git/revision.c:2613:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (fetch_if_missing)
                ^
/datasets/git/revision.c:2616:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/revision.c:2618:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!opts)
                ^
/datasets/git/revision.c:2236:6: warning: variable 'argcount' is not initialized [cppcoreguidelines-init-variables]
        int argcount;
            ^
                     = 0
/datasets/git/revision.c:2255:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if ((argcount = parse_long_opt("max-count", argv, &optarg))) {
             ^
/datasets/git/revision.c:2255:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/revision.c:2255:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/revision.c:2256:21: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c]
                revs->max_count = atoi(optarg);
                                  ^
/datasets/git/revision.c:2259:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else if ((argcount = parse_long_opt("skip", argv, &optarg))) {
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:2259:14: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        } else if ((argcount = parse_long_opt("skip", argv, &optarg))) {
                    ^
/datasets/git/revision.c:2259:14: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/revision.c:2259:14: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/revision.c:2260:22: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c]
                revs->skip_count = atoi(optarg);
                                   ^
/datasets/git/revision.c:2262:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        } else if ((*arg == '-') && isdigit(arg[1])) {
                                    ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/revision.c:2264:25: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (strtol_i(arg + 1, 10, &revs->max_count) < 0 ||
                                      ^
/datasets/git/revision.c:2265:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    revs->max_count < 0)
                                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:2269:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (argc <= 1)
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:2271:21: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c]
                revs->max_count = atoi(argv[1]);
                                  ^
/datasets/git/revision.c:2275:21: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c]
                revs->max_count = atoi(optarg);
                                  ^
/datasets/git/revision.c:2277:14: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        } else if ((argcount = parse_long_opt("max-age", argv, &optarg))) {
                    ^
/datasets/git/revision.c:2277:14: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/revision.c:2277:14: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/revision.c:2278:19: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c]
                revs->max_age = atoi(optarg);
                                ^
/datasets/git/revision.c:2280:14: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        } else if ((argcount = parse_long_opt("since", argv, &optarg))) {
                    ^
/datasets/git/revision.c:2280:14: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/revision.c:2280:14: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/revision.c:2280:66: warning: repeated branch in conditional chain [bugprone-branch-clone]
        } else if ((argcount = parse_long_opt("since", argv, &optarg))) {
                                                                        ^
/datasets/git/revision.c:2283:3: note: end of the original
        } else if ((argcount = parse_long_opt("since-as-filter", argv, &optarg))) {
         ^
/datasets/git/revision.c:2286:66: note: clone 1 starts here
        } else if ((argcount = parse_long_opt("after", argv, &optarg))) {
                                                                        ^
/datasets/git/revision.c:2283:14: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        } else if ((argcount = parse_long_opt("since-as-filter", argv, &optarg))) {
                    ^
/datasets/git/revision.c:2283:14: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/revision.c:2283:14: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/revision.c:2286:14: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        } else if ((argcount = parse_long_opt("after", argv, &optarg))) {
                    ^
/datasets/git/revision.c:2286:14: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/revision.c:2286:14: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/revision.c:2289:14: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        } else if ((argcount = parse_long_opt("min-age", argv, &optarg))) {
                    ^
/datasets/git/revision.c:2289:14: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/revision.c:2289:14: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/revision.c:2290:19: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c]
                revs->min_age = atoi(optarg);
                                ^
/datasets/git/revision.c:2292:14: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        } else if ((argcount = parse_long_opt("before", argv, &optarg))) {
                    ^
/datasets/git/revision.c:2292:14: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/revision.c:2292:14: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/revision.c:2292:67: warning: repeated branch in conditional chain [bugprone-branch-clone]
        } else if ((argcount = parse_long_opt("before", argv, &optarg))) {
                                                                         ^
/datasets/git/revision.c:2295:3: note: end of the original
        } else if ((argcount = parse_long_opt("until", argv, &optarg))) {
         ^
/datasets/git/revision.c:2295:66: note: clone 1 starts here
        } else if ((argcount = parse_long_opt("until", argv, &optarg))) {
                                                                        ^
/datasets/git/revision.c:2295:14: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        } else if ((argcount = parse_long_opt("until", argv, &optarg))) {
                    ^
/datasets/git/revision.c:2295:14: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/revision.c:2295:14: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/revision.c:2308:18: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
                struct commit *c;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:2308:18: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:2316:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (repo_get_oid_committish(revs->repo, optarg, &oid))
                                                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:2318:37: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                get_reference(revs, optarg, &oid, ANCESTRY_PATH);
                                                  ^
/datasets/git/./revision.h:51:24: note: expanded from macro 'ANCESTRY_PATH'
#define ANCESTRY_PATH   (1u<<27)
                         ^   ~~
/datasets/git/revision.c:2320:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!c)
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:2326:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (argc <= 1)
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:2356:24: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                revs->early_output = 100;
                                     ^
/datasets/git/revision.c:2359:26: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (strtoul_ui(optarg, 10, &revs->early_output) < 0)
                                       ^
/datasets/git/revision.c:2359:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strtoul_ui(optarg, 10, &revs->early_output) < 0)
                                                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:2378:23: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c]
                revs->min_parents = atoi(optarg);
                                    ^
/datasets/git/revision.c:2382:23: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c]
                revs->max_parents = atoi(optarg);
                                    ^
/datasets/git/revision.c:2390:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (revs->right_only)
                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:2395:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (revs->left_only)
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:2399:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (revs->left_only)
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:2408:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (revs->cherry_pick)
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:2413:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (revs->cherry_mark)
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:2444:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                revs->keep_pack_cache_flags |= IN_CORE_KEEP_PACKS;
                ^
/datasets/git/revision.c:2445:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                revs->keep_pack_cache_flags |= ON_DISK_KEEP_PACKS;
                ^
/datasets/git/revision.c:2448:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(optarg, "in-core"))
                                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:2449:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        revs->keep_pack_cache_flags |= IN_CORE_KEEP_PACKS;
                        ^
/datasets/git/revision.c:2450:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(optarg, "on-disk"))
                                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:2451:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        revs->keep_pack_cache_flags |= ON_DISK_KEEP_PACKS;
                        ^
/datasets/git/revision.c:2459:14: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        } else if ((argcount = diff_merges_parse_opts(revs, argv))) {
                    ^
/datasets/git/revision.c:2459:14: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/revision.c:2459:14: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/revision.c:2477:30: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                revs->expand_tabs_in_log = 8;
                                           ^
/datasets/git/revision.c:2481:7: warning: variable 'val' is not initialized [cppcoreguidelines-init-variables]
                int val;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:2482:21: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (strtol_i(arg, 10, &val) < 0 || val < 0)
                                  ^
/datasets/git/revision.c:2482:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strtol_i(arg, 10, &val) < 0 || val < 0)
                                                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:2503:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    revs->notes_opt.use_default_notes < 0)
                                                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:2541:40: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                revs->abbrev = strtoul(optarg, NULL, 10);
                                                     ^
/datasets/git/revision.c:2542:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (revs->abbrev < MINIMUM_ABBREV)
                                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:2544:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (revs->abbrev > hexsz)
                                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:2561:14: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        } else if ((argcount = parse_long_opt("date", argv, &optarg))) {
                    ^
/datasets/git/revision.c:2561:14: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/revision.c:2561:14: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/revision.c:2571:12: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        else if ((argcount = parse_long_opt("author", argv, &optarg))) {
                  ^
/datasets/git/revision.c:2571:12: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/revision.c:2571:12: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/revision.c:2574:14: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        } else if ((argcount = parse_long_opt("committer", argv, &optarg))) {
                    ^
/datasets/git/revision.c:2574:14: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/revision.c:2574:14: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/revision.c:2577:14: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        } else if ((argcount = parse_long_opt("grep-reflog", argv, &optarg))) {
                    ^
/datasets/git/revision.c:2577:14: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/revision.c:2577:14: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/revision.c:2580:14: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        } else if ((argcount = parse_long_opt("grep", argv, &optarg))) {
                    ^
/datasets/git/revision.c:2580:14: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/revision.c:2580:14: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/revision.c:2589:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                revs->diffopt.pickaxe_opts |= DIFF_PICKAXE_IGNORE_CASE;
                ^
/datasets/git/revision.c:2598:14: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        } else if ((argcount = parse_long_opt("encoding", argv, &optarg))) {
                    ^
/datasets/git/revision.c:2598:14: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/revision.c:2598:14: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/revision.c:2599:7: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (strcmp(optarg, "none"))
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:2599:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strcmp(optarg, "none"))
                                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:2601:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:2605:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                revs->reverse ^= 1;
                ^                ~
/datasets/git/revision.c:2613:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fetch_if_missing)
                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:2618:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!opts)
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:2630:6: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
        int n = handle_revision_opt(revs, ctx->argc, ctx->argv,
            ^
/datasets/git/revision.c:2642:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->graph && revs->track_linear)
                                              ^
                                               {
/datasets/git/revision.c:2651:68: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
static int for_each_bisect_ref(struct ref_store *refs, each_ref_fn fn,
                                                                   ^
/datasets/git/revision.c:2655:6: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int status;
            ^
                   = 0
/datasets/git/revision.c:2662:72: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
static int for_each_bad_bisect_ref(struct ref_store *refs, each_ref_fn fn, void *cb_data)
                                                                       ^
/datasets/git/revision.c:2667:73: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
static int for_each_good_bisect_ref(struct ref_store *refs, each_ref_fn fn, void *cb_data)
                                                                        ^
/datasets/git/revision.c:2672:12: warning: function 'handle_revision_pseudo_opt' has cognitive complexity of 43 (threshold 25) [readability-function-cognitive-complexity]
static int handle_revision_pseudo_opt(struct rev_info *revs,
           ^
/datasets/git/revision.c:2680:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (revs->repo != the_repository) {
        ^
/datasets/git/revision.c:2687:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!revs->single_worktree)
                ^
/datasets/git/revision.c:2702:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(arg, "--all")) {
        ^
/datasets/git/revision.c:2705:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!revs->single_worktree) {
                ^
/datasets/git/revision.c:2712:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--branches")) {
               ^
/datasets/git/revision.c:2713:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (revs->ref_excludes.hidden_refs_configured)
                ^
/datasets/git/revision.c:2717:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--bisect")) {
               ^
/datasets/git/revision.c:2723:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--tags")) {
               ^
/datasets/git/revision.c:2724:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (revs->ref_excludes.hidden_refs_configured)
                ^
/datasets/git/revision.c:2728:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--remotes")) {
               ^
/datasets/git/revision.c:2729:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (revs->ref_excludes.hidden_refs_configured)
                ^
/datasets/git/revision.c:2733:9: note: +1, nesting level increased to 1
        } else if ((argcount = parse_long_opt("glob", argv, &optarg))) {
               ^
/datasets/git/revision.c:2739:9: note: +1, nesting level increased to 1
        } else if ((argcount = parse_long_opt("exclude", argv, &optarg))) {
               ^
/datasets/git/revision.c:2742:9: note: +1, nesting level increased to 1
        } else if ((argcount = parse_long_opt("exclude-hidden", argv, &optarg))) {
               ^
/datasets/git/revision.c:2745:9: note: +1, nesting level increased to 1
        } else if (skip_prefix(arg, "--branches=", &optarg)) {
               ^
/datasets/git/revision.c:2747:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (revs->ref_excludes.hidden_refs_configured)
                ^
/datasets/git/revision.c:2752:9: note: +1, nesting level increased to 1
        } else if (skip_prefix(arg, "--tags=", &optarg)) {
               ^
/datasets/git/revision.c:2754:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (revs->ref_excludes.hidden_refs_configured)
                ^
/datasets/git/revision.c:2759:9: note: +1, nesting level increased to 1
        } else if (skip_prefix(arg, "--remotes=", &optarg)) {
               ^
/datasets/git/revision.c:2761:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (revs->ref_excludes.hidden_refs_configured)
                ^
/datasets/git/revision.c:2766:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--reflog")) {
               ^
/datasets/git/revision.c:2768:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--indexed-objects")) {
               ^
/datasets/git/revision.c:2770:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--alternate-refs")) {
               ^
/datasets/git/revision.c:2772:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--not")) {
               ^
/datasets/git/revision.c:2774:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--no-walk")) {
               ^
/datasets/git/revision.c:2776:9: note: +1, nesting level increased to 1
        } else if (skip_prefix(arg, "--no-walk=", &optarg)) {
               ^
/datasets/git/revision.c:2782:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(optarg, "sorted"))
                ^
/datasets/git/revision.c:2784:8: note: +1, nesting level increased to 2
                else if (!strcmp(optarg, "unsorted"))
                     ^
/datasets/git/revision.c:2786:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/revision.c:2788:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--do-walk")) {
               ^
/datasets/git/revision.c:2790:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, "--single-worktree")) {
               ^
/datasets/git/revision.c:2792:9: note: +1, nesting level increased to 1
        } else if (skip_prefix(arg, ("--filter="), &arg)) {
               ^
/datasets/git/revision.c:2794:9: note: +1, nesting level increased to 1
        } else if (!strcmp(arg, ("--no-filter"))) {
               ^
/datasets/git/revision.c:2796:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/revision.c:2676:14: warning: variable 'optarg' is not initialized [cppcoreguidelines-init-variables]
        const char *optarg;
                    ^
                           = NULL
/datasets/git/revision.c:2677:20: warning: variable 'refs' is not initialized [cppcoreguidelines-init-variables]
        struct ref_store *refs;
                          ^
                               = NULL
/datasets/git/revision.c:2678:6: warning: variable 'argcount' is not initialized [cppcoreguidelines-init-variables]
        int argcount;
            ^
                     = 0
/datasets/git/revision.c:2687:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!revs->single_worktree)
                                           ^
                                            {
/datasets/git/revision.c:2706:23: warning: variable name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
                        struct all_refs_cb cb;
                                           ^
/datasets/git/revision.c:2713:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (revs->ref_excludes.hidden_refs_configured)
                                                              ^
                                                               {
/datasets/git/revision.c:2720:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                handle_refs(refs, revs, *flags ^ (UNINTERESTING | BOTTOM),
                                        ^~~~~~
/datasets/git/revision.c:2720:37: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                handle_refs(refs, revs, *flags ^ (UNINTERESTING | BOTTOM),
                                                  ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/revision.c:2720:53: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                handle_refs(refs, revs, *flags ^ (UNINTERESTING | BOTTOM),
                                                                  ^
/datasets/git/./revision.h:37:18: note: expanded from macro 'BOTTOM'
#define BOTTOM          (1u<<10)
                         ^   ~~
/datasets/git/revision.c:2724:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (revs->ref_excludes.hidden_refs_configured)
                                                              ^
                                                               {
/datasets/git/revision.c:2729:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (revs->ref_excludes.hidden_refs_configured)
                                                              ^
                                                               {
/datasets/git/revision.c:2733:14: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        } else if ((argcount = parse_long_opt("glob", argv, &optarg))) {
                    ^
/datasets/git/revision.c:2733:14: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/revision.c:2733:14: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/revision.c:2734:22: warning: variable name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
                struct all_refs_cb cb;
                                   ^
/datasets/git/revision.c:2739:14: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        } else if ((argcount = parse_long_opt("exclude", argv, &optarg))) {
                    ^
/datasets/git/revision.c:2739:14: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/revision.c:2739:14: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/revision.c:2742:14: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        } else if ((argcount = parse_long_opt("exclude-hidden", argv, &optarg))) {
                    ^
/datasets/git/revision.c:2742:14: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/revision.c:2742:14: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/revision.c:2746:22: warning: variable name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
                struct all_refs_cb cb;
                                   ^
/datasets/git/revision.c:2747:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (revs->ref_excludes.hidden_refs_configured)
                                                              ^
                                                               {
/datasets/git/revision.c:2753:22: warning: variable name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
                struct all_refs_cb cb;
                                   ^
/datasets/git/revision.c:2754:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (revs->ref_excludes.hidden_refs_configured)
                                                              ^
                                                               {
/datasets/git/revision.c:2760:22: warning: variable name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
                struct all_refs_cb cb;
                                   ^
/datasets/git/revision.c:2761:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (revs->ref_excludes.hidden_refs_configured)
                                                              ^
                                                               {
/datasets/git/revision.c:2773:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                *flags ^= UNINTERESTING | BOTTOM;
                ^~~~~~
/datasets/git/revision.c:2773:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                *flags ^= UNINTERESTING | BOTTOM;
                          ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/revision.c:2773:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                *flags ^= UNINTERESTING | BOTTOM;
                                          ^
/datasets/git/./revision.h:37:18: note: expanded from macro 'BOTTOM'
#define BOTTOM          (1u<<10)
                         ^   ~~
/datasets/git/revision.c:2782:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(optarg, "sorted"))
                                              ^
                                               {
/datasets/git/revision.c:2784:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(optarg, "unsorted"))
                                                     ^
                                                      {
/datasets/git/revision.c:2786:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/revision.c:2805:6: warning: variable 'flags' is not initialized [cppcoreguidelines-init-variables]
        int flags;
            ^
                  = 0
/datasets/git/revision.c:2806:14: warning: variable 'refname' is not initialized [cppcoreguidelines-init-variables]
        const char *refname;
                    ^
                            = NULL
/datasets/git/revision.c:2809:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!refname || !(flags & REF_ISSYMREF) || (flags & REF_ISBROKEN))
                          ^~~~~
/datasets/git/revision.c:2809:46: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!refname || !(flags & REF_ISSYMREF) || (flags & REF_ISBROKEN))
                                                    ^~~~~
/datasets/git/revision.c:2809:68: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!refname || !(flags & REF_ISSYMREF) || (flags & REF_ISBROKEN))
                                                                          ^
                                                                           {
/datasets/git/revision.c:2824:5: warning: function 'setup_revisions' has cognitive complexity of 98 (threshold 25) [readability-function-cognitive-complexity]
int setup_revisions(int argc, const char **argv, struct rev_info *revs, struct setup_revision_opt *opt)
    ^
/datasets/git/revision.c:2831:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt && opt->assume_dashdash) {
        ^
/datasets/git/revision.c:2831:10: note: +1
        if (opt && opt->assume_dashdash) {
                ^
/datasets/git/revision.c:2833:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/revision.c:2835:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 1; i < argc; i++) {
                ^
/datasets/git/revision.c:2837:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (strcmp(arg, "--"))
                        ^
/datasets/git/revision.c:2839:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (opt && opt->free_removed_argv_elements)
                        ^
/datasets/git/revision.c:2839:12: note: +1
                        if (opt && opt->free_removed_argv_elements)
                                ^
/datasets/git/revision.c:2843:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (argv[i + 1])
                        ^
/datasets/git/revision.c:2852:19: note: +1, including nesting penalty of 0, nesting level increased to 1
        revarg_opt = opt ? opt->revarg_opt : 0;
                         ^
/datasets/git/revision.c:2853:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (seen_dashdash)
        ^
/datasets/git/revision.c:2855:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (left = i = 1; i < argc; i++) {
        ^
/datasets/git/revision.c:2857:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!seen_end_of_options && *arg == '-') {
                ^
/datasets/git/revision.c:2857:28: note: +1
                if (!seen_end_of_options && *arg == '-') {
                                         ^
/datasets/git/revision.c:2863:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (opts > 0) {
                        ^
/datasets/git/revision.c:2868:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!strcmp(arg, "--stdin")) {
                        ^
/datasets/git/revision.c:2869:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (revs->disable_stdin) {
                                ^
/datasets/git/revision.c:2873:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (revs->read_from_stdin++)
                                ^
/datasets/git/revision.c:2879:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!strcmp(arg, "--end-of-options")) {
                        ^
/datasets/git/revision.c:2886:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (opts > 0) {
                        ^
/datasets/git/revision.c:2890:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (opts < 0)
                        ^
/datasets/git/revision.c:2896:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (handle_revision_arg(arg, revs, flags, revarg_opt)) {
                ^
/datasets/git/revision.c:2898:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (seen_dashdash || *arg == '^')
                        ^
/datasets/git/revision.c:2898:22: note: +1
                        if (seen_dashdash || *arg == '^')
                                          ^
/datasets/git/revision.c:2907:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (j = i; j < argc; j++)
                        ^
/datasets/git/revision.c:2916:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (prune_data.nr) {
        ^
/datasets/git/revision.c:2936:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!revs->def)
        ^
/datasets/git/revision.c:2937:19: note: +2, including nesting penalty of 1, nesting level increased to 2
                revs->def = opt ? opt->def : NULL;
                                ^
/datasets/git/revision.c:2938:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt && opt->tweak)
        ^
/datasets/git/revision.c:2938:10: note: +1
        if (opt && opt->tweak)
                ^
/datasets/git/revision.c:2940:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (revs->show_merge)
        ^
/datasets/git/revision.c:2942:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (revs->def && !revs->pending.nr && !revs->rev_input_given) {
        ^
/datasets/git/revision.c:2942:37: note: +1
        if (revs->def && !revs->pending.nr && !revs->rev_input_given) {
                                           ^
/datasets/git/revision.c:2946:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (get_oid_with_context(revs->repo, revs->def, 0, &oid, &oc))
                ^
/datasets/git/revision.c:2953:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (revs->diffopt.output_format & ~DIFF_FORMAT_NO_OUTPUT)
        ^
/datasets/git/revision.c:2957:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((revs->diffopt.pickaxe_opts & DIFF_PICKAXE_KINDS_MASK) ||
        ^
/datasets/git/revision.c:2958:27: note: +1
            revs->diffopt.filter ||
                                 ^
/datasets/git/revision.c:2962:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (revs->diffopt.objfind)
        ^
/datasets/git/revision.c:2965:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (revs->line_level_traverse) {
        ^
/datasets/git/revision.c:2966:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (want_ancestry(revs))
                ^
/datasets/git/revision.c:2971:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (revs->topo_order && !generation_numbers_enabled(the_repository))
        ^
/datasets/git/revision.c:2971:23: note: +1
        if (revs->topo_order && !generation_numbers_enabled(the_repository))
                             ^
/datasets/git/revision.c:2974:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (revs->prune_data.nr) {
        ^
/datasets/git/revision.c:2977:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!revs->diffopt.flags.follow_renames)
                ^
/datasets/git/revision.c:2979:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!revs->full_diff)
                ^
/datasets/git/revision.c:2990:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!is_encoding_utf8(get_log_output_encoding()))
        ^
/datasets/git/revision.c:2994:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (revs->reverse && revs->reflog_info)
        ^
/datasets/git/revision.c:2994:20: note: +1
        if (revs->reverse && revs->reflog_info)
                          ^
/datasets/git/revision.c:2996:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (revs->reflog_info && revs->limited)
        ^
/datasets/git/revision.c:2996:24: note: +1
        if (revs->reflog_info && revs->limited)
                              ^
/datasets/git/revision.c:2998:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (revs->rewrite_parents && revs->children.name)
        ^
/datasets/git/revision.c:2998:28: note: +1
        if (revs->rewrite_parents && revs->children.name)
                                  ^
/datasets/git/revision.c:3000:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (revs->filter.choice && !revs->blob_objects)
        ^
/datasets/git/revision.c:3000:26: note: +1
        if (revs->filter.choice && !revs->blob_objects)
                                ^
/datasets/git/revision.c:3006:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (revs->reverse && revs->graph)
        ^
/datasets/git/revision.c:3006:20: note: +1
        if (revs->reverse && revs->graph)
                          ^
/datasets/git/revision.c:3009:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (revs->reflog_info && revs->graph)
        ^
/datasets/git/revision.c:3009:24: note: +1
        if (revs->reflog_info && revs->graph)
                              ^
/datasets/git/revision.c:3011:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (revs->no_walk && revs->graph)
        ^
/datasets/git/revision.c:3011:20: note: +1
        if (revs->no_walk && revs->graph)
                          ^
/datasets/git/revision.c:3013:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!revs->reflog_info && revs->grep_filter.use_reflog_filter)
        ^
/datasets/git/revision.c:3013:25: note: +1
        if (!revs->reflog_info && revs->grep_filter.use_reflog_filter)
                               ^
/datasets/git/revision.c:3016:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (revs->line_level_traverse &&
        ^
/datasets/git/revision.c:3016:32: note: +1
        if (revs->line_level_traverse &&
                                      ^
/datasets/git/revision.c:3020:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (revs->expand_tabs_in_log < 0)
        ^
/datasets/git/revision.c:2826:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, flags, left, seen_dashdash, revarg_opt;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:2826:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, flags, left, seen_dashdash, revarg_opt;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:2826:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:2826:9: warning: variable 'flags' is not initialized [cppcoreguidelines-init-variables]
        int i, flags, left, seen_dashdash, revarg_opt;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:2826:16: warning: variable 'left' is not initialized [cppcoreguidelines-init-variables]
        int i, flags, left, seen_dashdash, revarg_opt;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:2826:22: warning: variable 'seen_dashdash' is not initialized [cppcoreguidelines-init-variables]
        int i, flags, left, seen_dashdash, revarg_opt;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:2826:37: warning: variable 'revarg_opt' is not initialized [cppcoreguidelines-init-variables]
        int i, flags, left, seen_dashdash, revarg_opt;
                                           ^
/datasets/git/revision.c:2826:2: note: inferred assignment of ID-dependent value from ID-dependent variable opts [altera-id-dependent-backward-branch]
        int i, flags, left, seen_dashdash, revarg_opt;
        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:2835:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 1; i < argc; i++) {
                ^
/datasets/git/revision.c:2835:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 1; i < argc; i++) {
                            ^
/datasets/git/revision.c:2837:8: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                        if (strcmp(arg, "--"))
                            ^
                                              != 0
/datasets/git/revision.c:2837:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (strcmp(arg, "--"))
                                              ^
                                               {
/datasets/git/revision.c:2839:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (opt && opt->free_removed_argv_elements)
                                                                   ^
                                                                    {
/datasets/git/revision.c:2843:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (argv[i + 1])
                                        ^
                                         {
/datasets/git/revision.c:2852:21: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        revarg_opt = opt ? opt->revarg_opt : 0;
                           ^
/datasets/git/revision.c:2853:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (seen_dashdash)
                          ^
                           {
/datasets/git/revision.c:2854:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                revarg_opt |= REVARG_CANNOT_BE_FILENAME;
                ^~~~~~~~~~
/datasets/git/revision.c:2855:21: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (left = i = 1; i < argc; i++) {
                           ^
/datasets/git/revision.c:2858:8: warning: variable 'opts' is not initialized [cppcoreguidelines-init-variables]
                        int opts;
                            ^
                                 = 0
/datasets/git/revision.c:2873:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (revs->read_from_stdin++)
                                                            ^
                                                             {
/datasets/git/revision.c:2890:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (opts < 0)
                                     ^
                                      {
/datasets/git/revision.c:2891:5: warning: function is not thread safe [concurrency-mt-unsafe]
                                exit(128);
                                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/revision.c:2897:8: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
                        int j;
                            ^
                              = 0
/datasets/git/revision.c:2897:8: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:2898:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (seen_dashdash || *arg == '^')
                                                         ^
                                                          {
/datasets/git/revision.c:2907:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (j = i; j < argc; j++)
                        ^
/datasets/git/revision.c:2907:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'j' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (j = i; j < argc; j++)
                                    ^
/datasets/git/revision.c:2907:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (j = i; j < argc; j++)
                                                  ^
                                                   {
/datasets/git/revision.c:2936:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!revs->def)
                       ^
                        {
/datasets/git/revision.c:2938:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opt && opt->tweak)
                              ^
                               {
/datasets/git/revision.c:2940:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->show_merge)
                             ^
                              {
/datasets/git/revision.c:2944:18: warning: variable 'object' is not initialized [cppcoreguidelines-init-variables]
                struct object *object;
                               ^
                                      = NULL
/datasets/git/revision.c:2945:25: warning: variable name 'oc' is too short, expected at least 3 characters [readability-identifier-length]
                struct object_context oc;
                                      ^
/datasets/git/revision.c:2946:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (get_oid_with_context(revs->repo, revs->def, 0, &oid, &oc))
                                                                              ^
                                                                               {
/datasets/git/revision.c:2953:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (revs->diffopt.output_format & ~DIFF_FORMAT_NO_OUTPUT)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:2953:36: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
        if (revs->diffopt.output_format & ~DIFF_FORMAT_NO_OUTPUT)
                                          ^
/datasets/git/revision.c:2953:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->diffopt.output_format & ~DIFF_FORMAT_NO_OUTPUT)
                                                                 ^
                                                                  {
/datasets/git/revision.c:2957:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((revs->diffopt.pickaxe_opts & DIFF_PICKAXE_KINDS_MASK) ||
             ^
/datasets/git/revision.c:2957:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((revs->diffopt.pickaxe_opts & DIFF_PICKAXE_KINDS_MASK) ||
                                          ^
/datasets/git/./diff.h:556:34: note: expanded from macro 'DIFF_PICKAXE_KINDS_MASK'
#define DIFF_PICKAXE_KINDS_MASK (DIFF_PICKAXE_KIND_S | \
                                 ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./diff.h:552:29: note: expanded from macro 'DIFF_PICKAXE_KIND_S'
#define DIFF_PICKAXE_KIND_S     4 /* traditional plumbing counter */
                                ^
/datasets/git/revision.c:2959:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            revs->diffopt.flags.follow_renames)
                                               ^
                                                {
/datasets/git/revision.c:2962:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->diffopt.objfind)
                                  ^
                                   {
/datasets/git/revision.c:2966:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (want_ancestry(revs))
                                        ^
                                         {
/datasets/git/revision.c:2971:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->topo_order && !generation_numbers_enabled(the_repository))
                                                                            ^
                                                                             {
/datasets/git/revision.c:2977:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!revs->diffopt.flags.follow_renames)
                                                        ^
                                                         {
/datasets/git/revision.c:2979:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!revs->full_diff)
                                     ^
                                      {
/datasets/git/revision.c:2986:25: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        revs->diffopt.abbrev = revs->abbrev;
                               ^
/datasets/git/revision.c:2990:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_encoding_utf8(get_log_output_encoding()))
                                                         ^
                                                          {
/datasets/git/revision.c:2994:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->reverse && revs->reflog_info)
                                               ^
                                                {
/datasets/git/revision.c:2996:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->reflog_info && revs->limited)
                                               ^
                                                {
/datasets/git/revision.c:2998:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->rewrite_parents && revs->children.name)
                                                         ^
                                                          {
/datasets/git/revision.c:3000:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->filter.choice && !revs->blob_objects)
                                                       ^
                                                        {
/datasets/git/revision.c:3006:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->reverse && revs->graph)
                                         ^
                                          {
/datasets/git/revision.c:3009:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->reflog_info && revs->graph)
                                             ^
                                              {
/datasets/git/revision.c:3011:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->no_walk && revs->graph)
                                         ^
                                          {
/datasets/git/revision.c:3013:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!revs->reflog_info && revs->grep_filter.use_reflog_filter)
                                                                      ^
                                                                       {
/datasets/git/revision.c:3017:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            (revs->diffopt.output_format & ~(DIFF_FORMAT_PATCH | DIFF_FORMAT_NO_OUTPUT)))
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:3017:37: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
            (revs->diffopt.output_format & ~(DIFF_FORMAT_PATCH | DIFF_FORMAT_NO_OUTPUT)))
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:3017:39: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            (revs->diffopt.output_format & ~(DIFF_FORMAT_PATCH | DIFF_FORMAT_NO_OUTPUT)))
                                             ^
/datasets/git/./diff.h:103:27: note: expanded from macro 'DIFF_FORMAT_PATCH'
#define DIFF_FORMAT_PATCH       0x0010
                                ^~~~~~
/datasets/git/revision.c:3017:83: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            (revs->diffopt.output_format & ~(DIFF_FORMAT_PATCH | DIFF_FORMAT_NO_OUTPUT)))
                                                                                         ^
                                                                                          {
/datasets/git/revision.c:3020:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->expand_tabs_in_log < 0)
                                         ^
                                          {
/datasets/git/revision.c:3028:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i;
                     ^
                       = 0
/datasets/git/revision.c:3028:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:3030:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < cmdline->nr; i++)
        ^
/datasets/git/revision.c:3030:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < cmdline->nr; i++)
                                         ^
                                          {
/datasets/git/revision.c:3037:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!mailmap)
                     ^
                      {
/datasets/git/revision.c:3063:46: warning: 2 adjacent parameters of 'add_child' of similar type ('struct commit *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void add_child(struct rev_info *revs, struct commit *parent, struct commit *child)
                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:3063:61: note: the first parameter in the range is 'parent'
static void add_child(struct rev_info *revs, struct commit *parent, struct commit *child)
                                                            ^~~~~~
/datasets/git/revision.c:3063:84: note: the last parameter in the range is 'child'
static void add_child(struct rev_info *revs, struct commit *parent, struct commit *child)
                                                                                   ^~~~~
/datasets/git/revision.c:3065:22: warning: variable name 'l' is too short, expected at least 3 characters [readability-identifier-length]
        struct commit_list *l = xcalloc(1, sizeof(*l));
                            ^
/datasets/git/revision.c:3073:25: warning: variable name 'ts' is too short, expected at least 3 characters [readability-identifier-length]
        struct treesame_state *ts = lookup_decoration(&revs->treesame, &commit->object);
                               ^
/datasets/git/revision.c:3074:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit_list **pp, *p;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:3074:2: note: inferred assignment of ID-dependent value from ID-dependent variable pp [altera-id-dependent-backward-branch]
/datasets/git/revision.c:3074:23: warning: variable 'pp' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list **pp, *p;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:3074:23: warning: variable name 'pp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:3074:28: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list **pp, *p;
                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:3074:28: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:3075:6: warning: variable 'surviving_parents' is not initialized [cppcoreguidelines-init-variables]
        int surviving_parents;
            ^
                              = 0
/datasets/git/revision.c:3080:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((p = *pp) != NULL) {
        ^
/datasets/git/revision.c:3074:2: note: inferred assignment of ID-dependent value from ID-dependent variable pp [altera-id-dependent-backward-branch]
        struct commit_list **pp, *p;
        ^
/datasets/git/revision.c:3080:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((p = *pp) != NULL) {
               ^
/datasets/git/revision.c:3082:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (parent->object.flags & TMP_MARK) {
                                           ^
/datasets/git/./revision.h:31:19: note: expanded from macro 'TMP_MARK'
#define TMP_MARK        (1u<<4) /* for isolated cases; clean after use */
                         ^   ~
/datasets/git/revision.c:3084:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ts)
                               ^
                                {
/datasets/git/revision.c:3088:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                parent->object.flags |= TMP_MARK;
                                        ^
/datasets/git/./revision.h:31:19: note: expanded from macro 'TMP_MARK'
#define TMP_MARK        (1u<<4) /* for isolated cases; clean after use */
                         ^   ~
/datasets/git/revision.c:3093:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = commit->parents; p; p = p->next) {
        ^
/datasets/git/revision.c:3093:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = commit->parents; p; p = p->next) {
                                  ^
/datasets/git/revision.c:3094:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                p->item->object.flags &= ~TMP_MARK;
                                          ^
/datasets/git/./revision.h:31:19: note: expanded from macro 'TMP_MARK'
#define TMP_MARK        (1u<<4) /* for isolated cases; clean after use */
                         ^   ~
/datasets/git/revision.c:3106:31: warning: variable 'st' is not initialized [cppcoreguidelines-init-variables]
        struct merge_simplify_state *st;
                                     ^
                                        = NULL
/datasets/git/revision.c:3106:31: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:3118:22: warning: variable name 'h' is too short, expected at least 3 characters [readability-identifier-length]
        struct commit_list *h = reduce_heads(commit->parents);
                            ^
/datasets/git/revision.c:3119:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i = 0, marked = 0;
        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:3119:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0, marked = 0;
            ^
/datasets/git/revision.c:3120:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit_list *po, *pn;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:3120:2: note: inferred assignment of ID-dependent value from ID-dependent member parents [altera-id-dependent-backward-branch]
/datasets/git/revision.c:3120:22: warning: variable 'po' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *po, *pn;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:3120:22: warning: variable name 'po' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:3120:27: warning: variable 'pn' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *po, *pn;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:3120:27: warning: variable name 'pn' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:3123:17: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int orig_cnt = commit_list_count(commit->parents);
                       ^
/datasets/git/revision.c:3124:12: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int cnt = commit_list_count(h);
                  ^
/datasets/git/revision.c:3133:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (po) {
        ^
/datasets/git/revision.c:3133:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'po' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (po) {
               ^
/datasets/git/revision.c:3138:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        po->item->object.flags |= TMP_MARK;
                                                  ^
/datasets/git/./revision.h:31:19: note: expanded from macro 'TMP_MARK'
#define TMP_MARK        (1u<<4) /* for isolated cases; clean after use */
                         ^   ~
/datasets/git/revision.c:3154:2: note: inferred assignment of ID-dependent value from ID-dependent member parents [altera-id-dependent-backward-branch]
        struct commit_list *p;
        ^
/datasets/git/revision.c:3144:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (i != cnt || cnt+marked != orig_cnt)
                                               ^
                                                {
/datasets/git/revision.c:3154:22: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *p;
                            ^
                              = NULL
/datasets/git/revision.c:3154:22: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:3157:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = commit->parents; p; p = p->next) {
        ^
/datasets/git/revision.c:3157:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = commit->parents; p; p = p->next) {
                                  ^
/datasets/git/revision.c:3159:51: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!parent->parents && (parent->object.flags & TREESAME)) {
                                                                ^
/datasets/git/./revision.h:29:19: note: expanded from macro 'TREESAME'
#define TREESAME        (1u<<2)
                         ^   ~
/datasets/git/revision.c:3160:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        parent->object.flags |= TMP_MARK;
                                                ^
/datasets/git/./revision.h:31:19: note: expanded from macro 'TMP_MARK'
#define TMP_MARK        (1u<<4) /* for isolated cases; clean after use */
                         ^   ~
/datasets/git/revision.c:3175:25: warning: variable name 'ts' is too short, expected at least 3 characters [readability-identifier-length]
        struct treesame_state *ts = lookup_decoration(&revs->treesame, &commit->object);
                               ^
/datasets/git/revision.c:3176:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit *unmarked = NULL, *marked = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:3177:2: note: inferred assignment of ID-dependent value from ID-dependent member parents [altera-id-dependent-backward-branch]
        struct commit_list *p;
        ^
/datasets/git/revision.c:3177:22: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *p;
                            ^
                              = NULL
/datasets/git/revision.c:3177:22: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:3178:11: warning: variable 'n' is not initialized [cppcoreguidelines-init-variables]
        unsigned n;
                 ^
                   = 0
/datasets/git/revision.c:3178:11: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:3180:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = commit->parents, n = 0; p; p = p->next, n++) {
        ^
/datasets/git/revision.c:3180:35: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = commit->parents, n = 0; p; p = p->next, n++) {
                                         ^
/datasets/git/revision.c:3182:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (p->item->object.flags & TMP_MARK) {
                                                    ^
/datasets/git/./revision.h:31:19: note: expanded from macro 'TMP_MARK'
#define TMP_MARK        (1u<<4) /* for isolated cases; clean after use */
                         ^   ~
/datasets/git/revision.c:3183:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!marked)
                                            ^
                                             {
/datasets/git/revision.c:3228:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                marked->object.flags &= ~TMP_MARK;
                                         ^
/datasets/git/./revision.h:31:19: note: expanded from macro 'TMP_MARK'
#define TMP_MARK        (1u<<4) /* for isolated cases; clean after use */
                         ^   ~
/datasets/git/revision.c:3237:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit_list **pp, *p;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:3237:23: warning: variable 'pp' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list **pp, *p;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:3237:23: warning: variable name 'pp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:3237:28: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list **pp, *p;
                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:3237:28: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:3238:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int nth_parent, removed = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:3237:2: note: inferred assignment of ID-dependent value from ID-dependent variable pp [altera-id-dependent-backward-branch]
        struct commit_list **pp, *p;
        ^
/datasets/git/revision.c:3238:6: warning: variable 'nth_parent' is not initialized [cppcoreguidelines-init-variables]
        int nth_parent, removed = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:3242:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((p = *pp) != NULL) {
        ^
/datasets/git/revision.c:3242:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((p = *pp) != NULL) {
               ^
/datasets/git/revision.c:3244:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (parent->object.flags & TMP_MARK) {
                                           ^
/datasets/git/./revision.h:31:19: note: expanded from macro 'TMP_MARK'
#define TMP_MARK        (1u<<4) /* for isolated cases; clean after use */
                         ^   ~
/datasets/git/revision.c:3245:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        parent->object.flags &= ~TMP_MARK;
                                                 ^
/datasets/git/./revision.h:31:19: note: expanded from macro 'TMP_MARK'
#define TMP_MARK        (1u<<4) /* for isolated cases; clean after use */
                         ^   ~
/datasets/git/revision.c:3257:42: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (removed && !(commit->object.flags & TREESAME))
                                                ^
/datasets/git/./revision.h:29:19: note: expanded from macro 'TREESAME'
#define TREESAME        (1u<<2)
                         ^   ~
/datasets/git/revision.c:3257:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (removed && !(commit->object.flags & TREESAME))
                                                          ^
                                                           {
/datasets/git/revision.c:3265:22: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *p;
                            ^
                              = NULL
/datasets/git/revision.c:3265:22: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:3266:17: warning: variable 'parent' is not initialized [cppcoreguidelines-init-variables]
        struct commit *parent;
                       ^
                              = NULL
/datasets/git/revision.c:3267:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct merge_simplify_state *st, *pst;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:3267:31: warning: variable 'st' is not initialized [cppcoreguidelines-init-variables]
        struct merge_simplify_state *st, *pst;
                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:3267:31: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:3267:36: warning: variable 'pst' is not initialized [cppcoreguidelines-init-variables]
        struct merge_simplify_state *st, *pst;
                                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:3268:6: warning: variable 'cnt' is not initialized [cppcoreguidelines-init-variables]
        int cnt;
            ^
                = 0
/datasets/git/revision.c:3275:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (st->simplified)
                           ^
                            {
/datasets/git/revision.c:3283:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((commit->object.flags & UNINTERESTING) || !commit->parents) {
                                    ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/revision.c:3293:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cnt = 0, p = commit->parents; p; p = p->next) {
        ^
/datasets/git/revision.c:3265:2: note: inferred assignment of ID-dependent value from ID-dependent member next [altera-id-dependent-backward-branch]
        struct commit_list *p;
        ^
/datasets/git/revision.c:3293:37: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (cnt = 0, p = commit->parents; p; p = p->next) {
                                           ^
/datasets/git/revision.c:3299:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (revs->first_parent_only)
                                            ^
                                             {
/datasets/git/revision.c:3312:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = commit->parents; p; p = p->next) {
        ^
/datasets/git/revision.c:3312:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = commit->parents; p; p = p->next) {
                                  ^
/datasets/git/revision.c:3315:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (revs->first_parent_only)
                                            ^
                                             {
/datasets/git/revision.c:3319:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->first_parent_only)
                                    ^
                                     {
/datasets/git/revision.c:3321:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/revision.c:3346:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (marked)
                           ^
                            {
/datasets/git/revision.c:3348:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (marked)
                           ^
                            {
/datasets/git/revision.c:3363:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            (commit->object.flags & UNINTERESTING) ||
                                    ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/revision.c:3364:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            !(commit->object.flags & TREESAME) ||
                                     ^
/datasets/git/./revision.h:29:19: note: expanded from macro 'TREESAME'
#define TREESAME        (1u<<2)
                         ^   ~
/datasets/git/revision.c:3365:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
            (parent = one_relevant_parent(revs, commit->parents)) == NULL ||
             ^
/datasets/git/revision.c:3365:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/revision.c:3365:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/revision.c:3366:51: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            (revs->show_pulls && (commit->object.flags & PULL_MERGE)))
                                                         ^
/datasets/git/./revision.h:40:21: note: expanded from macro 'PULL_MERGE'
#define PULL_MERGE      (1u<<15)
                         ^   ~~
/datasets/git/revision.c:3366:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            (revs->show_pulls && (commit->object.flags & PULL_MERGE)))
                                                                      ^
                                                                       {
/datasets/git/revision.c:3377:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit_list *list, *next;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:3377:22: warning: variable 'list' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *list, *next;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:3377:29: warning: variable 'next' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *list, *next;
                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:3378:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit_list *yet_to_do, **tail;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:3378:22: warning: variable 'yet_to_do' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *yet_to_do, **tail;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:3378:35: warning: variable 'tail' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *yet_to_do, **tail;
                                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:3379:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/revision.c:3377:2: note: inferred assignment of ID-dependent value from ID-dependent member commits [altera-id-dependent-backward-branch]
        struct commit_list *list, *next;
        ^
/datasets/git/revision.c:3381:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!revs->prune)
                         ^
                          {
/datasets/git/revision.c:3386:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (list = revs->commits; list; list = next) {
        ^
/datasets/git/revision.c:3377:2: note: inferred assignment of ID-dependent value from ID-dependent member commits [altera-id-dependent-backward-branch]
        struct commit_list *list, *next;
        ^
/datasets/git/revision.c:3386:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'list' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (list = revs->commits; list; list = next) {
                                   ^
/datasets/git/revision.c:3399:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (list) {
                ^
/datasets/git/revision.c:3399:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'list' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (list) {
                       ^
/datasets/git/revision.c:3409:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (list) {
        ^
/datasets/git/revision.c:3409:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'list' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (list) {
               ^
/datasets/git/revision.c:3410:32: warning: variable 'st' is not initialized [cppcoreguidelines-init-variables]
                struct merge_simplify_state *st;
                                             ^
                                                = NULL
/datasets/git/revision.c:3410:32: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:3421:2: note: inferred assignment of ID-dependent value from ID-dependent member commits [altera-id-dependent-backward-branch]
        struct commit_list *l;
        ^
/datasets/git/revision.c:3414:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (st->simplified == commit)
                                             ^
                                              {
/datasets/git/revision.c:3421:22: warning: variable 'l' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *l;
                            ^
                              = NULL
/datasets/git/revision.c:3421:22: warning: variable name 'l' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:3422:26: warning: backward branch (for loop) is ID-dependent due to variable reference to 'l' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (l = revs->commits; l; l = l->next) {
                                ^
/datasets/git/revision.c:3424:23: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                struct commit_list *p;
                                    ^
                                      = NULL
/datasets/git/revision.c:3424:23: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:3426:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (p = commit->parents; p; p = p->next)
                ^
/datasets/git/revision.c:3426:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (p = commit->parents; p; p = p->next)
                                          ^
/datasets/git/revision.c:3426:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (p = commit->parents; p; p = p->next)
                                                         ^
                                                          {
/datasets/git/revision.c:3433:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        clear_object_flags(SEEN | ADDED | SHOWN | TOPO_WALK_EXPLORED | TOPO_WALK_INDEGREE);
                           ^
/datasets/git/./revision.h:27:16: note: expanded from macro 'SEEN'
#define SEEN            (1u<<0)
                         ^   ~
/datasets/git/revision.c:3433:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        clear_object_flags(SEEN | ADDED | SHOWN | TOPO_WALK_EXPLORED | TOPO_WALK_INDEGREE);
                                  ^
/datasets/git/./revision.h:34:17: note: expanded from macro 'ADDED'
#define ADDED           (1u<<7) /* Parents already parsed and added? */
                         ^   ~
/datasets/git/revision.c:3433:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        clear_object_flags(SEEN | ADDED | SHOWN | TOPO_WALK_EXPLORED | TOPO_WALK_INDEGREE);
                                          ^
/datasets/git/./revision.h:30:17: note: expanded from macro 'SHOWN'
#define SHOWN           (1u<<3)
                         ^   ~
/datasets/git/revision.c:3433:44: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        clear_object_flags(SEEN | ADDED | SHOWN | TOPO_WALK_EXPLORED | TOPO_WALK_INDEGREE);
                                                  ^
/datasets/git/./revision.h:42:29: note: expanded from macro 'TOPO_WALK_EXPLORED'
#define TOPO_WALK_EXPLORED      (1u<<23)
                                 ^   ~~
/datasets/git/revision.c:3433:65: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        clear_object_flags(SEEN | ADDED | SHOWN | TOPO_WALK_EXPLORED | TOPO_WALK_INDEGREE);
                                                                       ^
/datasets/git/./revision.h:43:29: note: expanded from macro 'TOPO_WALK_INDEGREE'
#define TOPO_WALK_INDEGREE      (1u<<24)
                                 ^   ~~
/datasets/git/revision.c:3437:29: warning: parameter 'pack' is unused [misc-unused-parameters]
                              struct packed_git *pack,
                                                 ^
/datasets/git/revision.c:3438:19: warning: parameter 'pos' is unused [misc-unused-parameters]
                              uint32_t pos,
                                       ^
/datasets/git/revision.c:3439:16: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
                              void *cb)
                                    ^
/datasets/git/revision.c:3442:17: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
        struct object *o = lookup_unknown_object(revs->repo, oid);
                       ^
/datasets/git/revision.c:3443:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        o->flags |= UNINTERESTING | SEEN;
                    ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/revision.c:3443:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        o->flags |= UNINTERESTING | SEEN;
                                    ^
/datasets/git/./revision.h:27:16: note: expanded from macro 'SEEN'
#define SEEN            (1u<<0)
                         ^   ~
/datasets/git/revision.c:3447:1: warning: backward branch (for loop) is ID-dependent due to member reference to 'slab_size' and may cause performance degradation [altera-id-dependent-backward-branch]
define_commit_slab(indegree_slab, int);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:48:15: note: expanded from macro 'implement_commit_slab'
                for (j = 0; j < s->slab_size; j++)                      \
                            ^
/datasets/git/revision.c:3447:1: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
define_commit_slab(indegree_slab, int);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:68:27: note: expanded from macro 'implement_commit_slab'
                for (i = s->slab_count; i <= nth_slab; i++)             \
                                        ^
/datasets/git/revision.c:3447:1: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
define_commit_slab(indegree_slab, int);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:35:2: note: expanded from macro 'implement_commit_slab'
        for (i = 0; i < s->slab_count; i++)                             \
        ^
/datasets/git/revision.c:3447:1: warning: result of multiplication in type 'unsigned int' is used as a pointer offset after an implicit widening conversion to type 'size_t' [bugprone-implicit-widening-of-multiplication-result]
define_commit_slab(indegree_slab, int);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:49:13: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                 ^
/datasets/git/revision.c:3447:1: note: make conversion explicit to silence this warning
define_commit_slab(indegree_slab, int);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:49:24: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                            ^~~~~~~~~~~~~
/datasets/git/revision.c:3447:1: note: perform multiplication in a wider type
define_commit_slab(indegree_slab, int);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:49:24: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                            ^
/datasets/git/revision.c:3447:1: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(indegree_slab, int);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:55:30: note: expanded from macro 'implement_commit_slab'
                                                  const struct commit *c, \
                                                                       ^
/datasets/git/revision.c:3447:1: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(indegree_slab, int);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:14:61: note: expanded from macro 'implement_commit_slab'
scope void init_ ##slabname## _with_stride(struct slabname *s,          \
                                                            ^
/datasets/git/revision.c:3447:1: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(indegree_slab, int);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:34:15: note: expanded from macro 'implement_commit_slab'
        unsigned int i;                                                 \
                     ^
/datasets/git/revision.c:3447:1: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(indegree_slab, int);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:45:16: note: expanded from macro 'implement_commit_slab'
                unsigned int j;                                         \
                             ^
/datasets/git/revision.c:3447:1: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
define_commit_slab(indegree_slab, int);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:58:2: note: expanded from macro 'implement_commit_slab'
        unsigned int nth_slab, nth_slot;                                \
        ^
/datasets/git/revision.c:3447:1: note: inferred assignment of ID-dependent value from ID-dependent member slab_count [altera-id-dependent-backward-branch]
define_commit_slab(indegree_slab, int);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:64:3: note: expanded from macro 'implement_commit_slab'
                unsigned int i;                                         \
                ^
/datasets/git/revision.c:3447:20: warning: accessing fields in struct 'indegree_slab' is inefficient due to padding; only needs 20 bytes but is using 24 bytes [altera-struct-pack-align]
define_commit_slab(indegree_slab, int);
                   ^
/datasets/git/revision.c:3447:20: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'indegree_slab'
/datasets/git/revision.c:3447:20: warning: accessing fields in struct 'indegree_slab' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
define_commit_slab(indegree_slab, int);
                   ^
/datasets/git/revision.c:3447:20: note: use "__attribute__((aligned(32)))" to align struct 'indegree_slab' to 32 bytes
/datasets/git/revision.c:3448:1: warning: backward branch (for loop) is ID-dependent due to member reference to 'slab_size' and may cause performance degradation [altera-id-dependent-backward-branch]
define_commit_slab(author_date_slab, timestamp_t);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:48:15: note: expanded from macro 'implement_commit_slab'
                for (j = 0; j < s->slab_size; j++)                      \
                            ^
/datasets/git/revision.c:3448:1: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
define_commit_slab(author_date_slab, timestamp_t);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:68:27: note: expanded from macro 'implement_commit_slab'
                for (i = s->slab_count; i <= nth_slab; i++)             \
                                        ^
/datasets/git/revision.c:3448:1: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
define_commit_slab(author_date_slab, timestamp_t);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:35:2: note: expanded from macro 'implement_commit_slab'
        for (i = 0; i < s->slab_count; i++)                             \
        ^
/datasets/git/revision.c:3448:1: warning: result of multiplication in type 'unsigned int' is used as a pointer offset after an implicit widening conversion to type 'size_t' [bugprone-implicit-widening-of-multiplication-result]
define_commit_slab(author_date_slab, timestamp_t);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:49:13: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                 ^
/datasets/git/revision.c:3448:1: note: make conversion explicit to silence this warning
define_commit_slab(author_date_slab, timestamp_t);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:49:24: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                            ^~~~~~~~~~~~~
/datasets/git/revision.c:3448:1: note: perform multiplication in a wider type
define_commit_slab(author_date_slab, timestamp_t);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:49:24: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                            ^
/datasets/git/revision.c:3448:1: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(author_date_slab, timestamp_t);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:55:30: note: expanded from macro 'implement_commit_slab'
                                                  const struct commit *c, \
                                                                       ^
/datasets/git/revision.c:3448:1: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(author_date_slab, timestamp_t);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:14:61: note: expanded from macro 'implement_commit_slab'
scope void init_ ##slabname## _with_stride(struct slabname *s,          \
                                                            ^
/datasets/git/revision.c:3448:1: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(author_date_slab, timestamp_t);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:34:15: note: expanded from macro 'implement_commit_slab'
        unsigned int i;                                                 \
                     ^
/datasets/git/revision.c:3448:1: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(author_date_slab, timestamp_t);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:45:16: note: expanded from macro 'implement_commit_slab'
                unsigned int j;                                         \
                             ^
/datasets/git/revision.c:3448:1: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
define_commit_slab(author_date_slab, timestamp_t);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:58:2: note: expanded from macro 'implement_commit_slab'
        unsigned int nth_slab, nth_slot;                                \
        ^
/datasets/git/revision.c:3448:1: note: inferred assignment of ID-dependent value from ID-dependent member slab_count [altera-id-dependent-backward-branch]
define_commit_slab(author_date_slab, timestamp_t);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:64:3: note: expanded from macro 'implement_commit_slab'
                unsigned int i;                                         \
                ^
/datasets/git/revision.c:3448:20: warning: accessing fields in struct 'author_date_slab' is inefficient due to padding; only needs 20 bytes but is using 24 bytes [altera-struct-pack-align]
define_commit_slab(author_date_slab, timestamp_t);
                   ^
/datasets/git/revision.c:3448:20: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'author_date_slab'
/datasets/git/revision.c:3448:20: warning: accessing fields in struct 'author_date_slab' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
define_commit_slab(author_date_slab, timestamp_t);
                   ^
/datasets/git/revision.c:3448:20: note: use "__attribute__((aligned(32)))" to align struct 'author_date_slab' to 32 bytes
/datasets/git/revision.c:3450:8: warning: accessing fields in struct 'topo_walk_info' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct topo_walk_info {
       ^
/datasets/git/revision.c:3450:8: note: use "__attribute__((aligned(128)))" to align struct 'topo_walk_info' to 128 bytes
/datasets/git/revision.c:3459:12: warning: variable 'topo_walk_atexit_registered' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int topo_walk_atexit_registered;
           ^
/datasets/git/revision.c:3460:21: warning: variable 'count_explore_walked' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned int count_explore_walked;
                    ^
/datasets/git/revision.c:3461:21: warning: variable 'count_indegree_walked' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned int count_indegree_walked;
                    ^
/datasets/git/revision.c:3462:21: warning: variable 'count_topo_walked' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static unsigned int count_topo_walked;
                    ^
/datasets/git/revision.c:3466:21: warning: variable name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
        struct json_writer jw = JSON_WRITER_INIT;
                           ^
/datasets/git/revision.c:3479:60: warning: parameter name 'q' is too short, expected at least 3 characters [readability-identifier-length]
static inline void test_flag_and_insert(struct prio_queue *q, struct commit *c, int flag)
                                                           ^
/datasets/git/revision.c:3479:78: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static inline void test_flag_and_insert(struct prio_queue *q, struct commit *c, int flag)
                                                                             ^
/datasets/git/revision.c:3481:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (c->object.flags & flag)
            ^                 ~~~~
/datasets/git/revision.c:3481:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (c->object.flags & flag)
                                   ^
                                    {
/datasets/git/revision.c:3484:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        c->object.flags |= flag;
        ^                  ~~~~
/datasets/git/revision.c:3491:22: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *p;
                            ^
                              = NULL
/datasets/git/revision.c:3491:22: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:3492:17: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        struct commit *c = prio_queue_get(&info->explore_queue);
                       ^
/datasets/git/revision.c:3494:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!c)
               ^
                {
/datasets/git/revision.c:3497:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_parse_commit_gently(revs->repo, c, 1) < 0)
                                                           ^
                                                            {
/datasets/git/revision.c:3502:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->sort_order == REV_SORT_BY_AUTHOR_DATE)
                                                        ^
                                                         {
/datasets/git/revision.c:3505:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->max_age != -1 && (c->date < revs->max_age))
                                                             ^
                                                              {
/datasets/git/revision.c:3506:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                c->object.flags |= UNINTERESTING;
                                   ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/revision.c:3508:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (process_parents(revs, c, NULL, NULL) < 0)
                                                     ^
                                                      {
/datasets/git/revision.c:3511:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (c->object.flags & UNINTERESTING)
                              ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/revision.c:3511:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (c->object.flags & UNINTERESTING)
                                            ^
                                             {
/datasets/git/revision.c:3514:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = c->parents; p; p = p->next)
        ^
/datasets/git/revision.c:3514:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = c->parents; p; p = p->next)
                             ^
/datasets/git/revision.c:3514:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (p = c->parents; p; p = p->next)
                                            ^
                                             {
/datasets/git/revision.c:3515:55: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                test_flag_and_insert(&info->explore_queue, p->item, TOPO_WALK_EXPLORED);
                                                                    ^
/datasets/git/./revision.h:42:29: note: expanded from macro 'TOPO_WALK_EXPLORED'
#define TOPO_WALK_EXPLORED      (1u<<23)
                                 ^   ~~
/datasets/git/revision.c:3522:17: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        struct commit *c;
                       ^
                         = NULL
/datasets/git/revision.c:3522:17: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:3523:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((c = prio_queue_peek(&info->explore_queue)) &&
        ^
/datasets/git/revision.c:3523:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'c' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((c = prio_queue_peek(&info->explore_queue)) &&
               ^
/datasets/git/revision.c:3524:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
               commit_graph_generation(c) >= gen_cutoff)
                                                        ^
                                                         {
/datasets/git/revision.c:3530:22: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *p;
                            ^
                              = NULL
/datasets/git/revision.c:3530:22: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:3532:17: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        struct commit *c = prio_queue_get(&info->indegree_queue);
                       ^
/datasets/git/revision.c:3534:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!c)
               ^
                {
/datasets/git/revision.c:3537:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_parse_commit_gently(revs->repo, c, 1) < 0)
                                                           ^
                                                            {
/datasets/git/revision.c:3544:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = c->parents; p; p = p->next) {
        ^
/datasets/git/revision.c:3544:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = c->parents; p; p = p->next) {
                             ^
/datasets/git/revision.c:3546:8: warning: variable name 'pi' is too short, expected at least 3 characters [readability-identifier-length]
                int *pi = indegree_slab_at(&info->indegree, parent);
                     ^
/datasets/git/revision.c:3548:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (repo_parse_commit_gently(revs->repo, parent, 1) < 0)
                                                                        ^
                                                                         {
/datasets/git/revision.c:3551:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*pi)
                        ^
                         {
/datasets/git/revision.c:3553:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/revision.c:3556:55: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                test_flag_and_insert(&info->indegree_queue, parent, TOPO_WALK_INDEGREE);
                                                                    ^
/datasets/git/./revision.h:43:29: note: expanded from macro 'TOPO_WALK_INDEGREE'
#define TOPO_WALK_INDEGREE      (1u<<24)
                                 ^   ~~
/datasets/git/revision.c:3558:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (revs->first_parent_only)
                                            ^
                                             {
/datasets/git/revision.c:3567:17: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        struct commit *c;
                       ^
                         = NULL
/datasets/git/revision.c:3567:17: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:3568:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((c = prio_queue_peek(&info->indegree_queue)) &&
        ^
/datasets/git/revision.c:3568:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'c' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((c = prio_queue_peek(&info->indegree_queue)) &&
               ^
/datasets/git/revision.c:3569:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
               commit_graph_generation(c) >= gen_cutoff)
                                                        ^
                                                         {
/datasets/git/revision.c:3575:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!info)
                  ^
                   {
/datasets/git/revision.c:3593:25: warning: variable 'info' is not initialized [cppcoreguidelines-init-variables]
        struct topo_walk_info *info;
                               ^
                                    = NULL
/datasets/git/revision.c:3594:22: warning: variable 'list' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *list;
                            ^
                                 = NULL
/datasets/git/revision.c:3595:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->topo_walk_info)
                                 ^
                                  {
/datasets/git/revision.c:3600:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(info, 0, sizeof(struct topo_walk_info));
        ^~~~~~
/datasets/git/revision.c:3600:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(info, 0, sizeof(struct topo_walk_info));
        ^~~~~~
/datasets/git/revision.c:3603:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&info->explore_queue, 0, sizeof(info->explore_queue));
        ^~~~~~
/datasets/git/revision.c:3603:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&info->explore_queue, 0, sizeof(info->explore_queue));
        ^~~~~~
/datasets/git/revision.c:3604:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&info->indegree_queue, 0, sizeof(info->indegree_queue));
        ^~~~~~
/datasets/git/revision.c:3604:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&info->indegree_queue, 0, sizeof(info->indegree_queue));
        ^~~~~~
/datasets/git/revision.c:3605:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&info->topo_queue, 0, sizeof(info->topo_queue));
        ^~~~~~
/datasets/git/revision.c:3605:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&info->topo_queue, 0, sizeof(info->topo_queue));
        ^~~~~~
/datasets/git/revision.c:3624:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        info->min_generation = GENERATION_NUMBER_INFINITY;
                               ^
/datasets/git/./negotiator/../commit.h:14:38: note: expanded from macro 'GENERATION_NUMBER_INFINITY'
#define GENERATION_NUMBER_INFINITY ((1ULL << 63) - 1)
                                     ^       ~~
/datasets/git/revision.c:3625:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (list = revs->commits; list; list = list->next) {
        ^
/datasets/git/revision.c:3594:2: note: inferred assignment of ID-dependent value from ID-dependent member commits [altera-id-dependent-backward-branch]
        struct commit_list *list;
        ^
/datasets/git/revision.c:3625:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'list' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (list = revs->commits; list; list = list->next) {
                                   ^
/datasets/git/revision.c:3626:18: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                struct commit *c = list->item;
                               ^
/datasets/git/revision.c:3627:15: warning: variable 'generation' is not initialized [cppcoreguidelines-init-variables]
                timestamp_t generation;
                            ^
                                       = 0
/datasets/git/revision.c:3629:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (repo_parse_commit_gently(revs->repo, c, 1))
                                                               ^
                                                                {
/datasets/git/revision.c:3632:49: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                test_flag_and_insert(&info->explore_queue, c, TOPO_WALK_EXPLORED);
                                                              ^
/datasets/git/./revision.h:42:29: note: expanded from macro 'TOPO_WALK_EXPLORED'
#define TOPO_WALK_EXPLORED      (1u<<23)
                                 ^   ~~
/datasets/git/revision.c:3633:50: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                test_flag_and_insert(&info->indegree_queue, c, TOPO_WALK_INDEGREE);
                                                               ^
/datasets/git/./revision.h:43:29: note: expanded from macro 'TOPO_WALK_INDEGREE'
#define TOPO_WALK_INDEGREE      (1u<<24)
                                 ^   ~~
/datasets/git/revision.c:3636:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (generation < info->min_generation)
                                                      ^
                                                       {
/datasets/git/revision.c:3641:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (revs->sort_order == REV_SORT_BY_AUTHOR_DATE)
                                                                ^
                                                                 {
/datasets/git/revision.c:3646:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (list = revs->commits; list; list = list->next) {
        ^
/datasets/git/revision.c:3646:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'list' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (list = revs->commits; list; list = list->next) {
                                   ^
/datasets/git/revision.c:3647:18: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                struct commit *c = list->item;
                               ^
/datasets/git/revision.c:3649:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*(indegree_slab_at(&info->indegree, c)) == 1)
                                                                 ^
                                                                  {
/datasets/git/revision.c:3657:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->sort_order == REV_SORT_IN_GRAPH_ORDER)
                                                        ^
                                                         {
/datasets/git/revision.c:3661:3: warning: the value returned by this function should be used [cert-err33-c]
                atexit(trace2_topo_walk_statistics_atexit);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:3661:3: note: cast the expression to void to silence this warning
/datasets/git/revision.c:3668:17: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        struct commit *c;
                       ^
                         = NULL
/datasets/git/revision.c:3668:17: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:3682:2: note: inferred assignment of ID-dependent value from ID-dependent member parents [altera-id-dependent-backward-branch]
        struct commit_list *p;
        ^
/datasets/git/revision.c:3674:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (c)
              ^
               {
/datasets/git/revision.c:3682:22: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *p;
                            ^
                              = NULL
/datasets/git/revision.c:3682:22: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:3685:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!revs->ignore_missing_links)
                                                ^
                                                 {
/datasets/git/revision.c:3692:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = commit->parents; p; p = p->next) {
        ^
/datasets/git/revision.c:3692:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = commit->parents; p; p = p->next) {
                                  ^
/datasets/git/revision.c:3694:8: warning: variable 'pi' is not initialized [cppcoreguidelines-init-variables]
                int *pi;
                     ^
                        = NULL
/datasets/git/revision.c:3694:8: warning: variable name 'pi' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:3695:15: warning: variable 'generation' is not initialized [cppcoreguidelines-init-variables]
                timestamp_t generation;
                            ^
                                       = 0
/datasets/git/revision.c:3697:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (parent->object.flags & UNINTERESTING)
                                           ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/revision.c:3697:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (parent->object.flags & UNINTERESTING)
                                                         ^
                                                          {
/datasets/git/revision.c:3700:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (repo_parse_commit_gently(revs->repo, parent, 1) < 0)
                                                                        ^
                                                                         {
/datasets/git/revision.c:3712:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*pi == 1)
                             ^
                              {
/datasets/git/revision.c:3715:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (revs->first_parent_only)
                                            ^
                                             {
/datasets/git/revision.c:3722:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/revision.c:3722:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:3726:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(&old_pending, &revs->pending, sizeof(old_pending));
        ^~~~~~
/datasets/git/revision.c:3726:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(&old_pending, &revs->pending, sizeof(old_pending));
        ^~~~~~
/datasets/git/revision.c:3730:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < old_pending.nr; i++) {
        ^
/datasets/git/revision.c:3731:30: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                struct object_array_entry *e = old_pending.objects + i;
                                           ^
/datasets/git/revision.c:3734:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!(commit->object.flags & SEEN)) {
                                                     ^
/datasets/git/./revision.h:27:16: note: expanded from macro 'SEEN'
#define SEEN            (1u<<0)
                         ^   ~
/datasets/git/revision.c:3735:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                commit->object.flags |= SEEN;
                                                        ^
/datasets/git/./revision.h:27:16: note: expanded from macro 'SEEN'
#define SEEN            (1u<<0)
                         ^   ~
/datasets/git/revision.c:3744:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            (revs->limited && limiting_can_increase_treesame(revs)))
                                                                    ^
                                                                     {
/datasets/git/revision.c:3752:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!revs->reflog_info)
                               ^
                                {
/datasets/git/revision.c:3754:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!revs->unsorted_input)
                                  ^
                                   {
/datasets/git/revision.c:3756:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->no_walk)
                          ^
                           {
/datasets/git/revision.c:3759:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (limit_list(revs) < 0)
                                         ^
                                          {
/datasets/git/revision.c:3761:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (revs->topo_order)
                                     ^
                                      {
/datasets/git/revision.c:3763:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else if (revs->topo_order)
                                    ^
                                     {
/datasets/git/revision.c:3765:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->line_level_traverse && want_ancestry(revs))
                                                             ^
                                                              {
/datasets/git/revision.c:3774:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->simplify_merges)
                                  ^
                                   {
/datasets/git/revision.c:3776:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->children.name)
                                ^
                                 {
/datasets/git/revision.c:3783:23: warning: parameter name 'pp' is too short, expected at least 3 characters [readability-identifier-length]
                                         struct commit **pp,
                                                         ^
/datasets/git/revision.c:3786:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/revision.c:3787:18: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct commit *p = *pp;
                               ^
/datasets/git/revision.c:3788:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!revs->limited)
                                   ^
                                    {
/datasets/git/revision.c:3789:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (process_parents(revs, p, NULL, queue) < 0)
                                                                      ^
                                                                       {
/datasets/git/revision.c:3791:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (p->object.flags & UNINTERESTING)
                                      ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/revision.c:3791:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (p->object.flags & UNINTERESTING)
                                                    ^
                                                     {
/datasets/git/revision.c:3793:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(p->object.flags & TREESAME))
                                        ^
/datasets/git/./revision.h:29:19: note: expanded from macro 'TREESAME'
#define TREESAME        (1u<<2)
                         ^   ~
/datasets/git/revision.c:3793:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(p->object.flags & TREESAME))
                                                  ^
                                                   {
/datasets/git/revision.c:3795:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!p->parents)
                                ^
                                 {
/datasets/git/revision.c:3797:9: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                if (!(p = one_relevant_parent(revs, p->parents)))
                      ^
/datasets/git/revision.c:3797:9: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/revision.c:3797:9: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/revision.c:3797:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(p = one_relevant_parent(revs, p->parents)))
                                                                 ^
                                                                  {
/datasets/git/revision.c:3803:54: warning: parameter name 'q' is too short, expected at least 3 characters [readability-identifier-length]
static void merge_queue_into_list(struct prio_queue *q, struct commit_list **list)
                                                     ^
/datasets/git/revision.c:3805:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (q->nr) {
        ^
/datasets/git/revision.c:3807:23: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct commit_list *p = *list;
                                    ^
/datasets/git/revision.c:3809:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (p && p->item->date >= item->date)
                                                     ^
                                                      {
/datasets/git/revision.c:3819:79: warning: parameter name 'pp' is too short, expected at least 3 characters [readability-identifier-length]
static enum rewrite_result rewrite_one(struct rev_info *revs, struct commit **pp)
                                                                              ^
/datasets/git/revision.c:3831:2: note: inferred assignment of ID-dependent value from ID-dependent member parents [altera-id-dependent-backward-branch]
        struct commit_list **pp = &commit->parents;
        ^
/datasets/git/revision.c:3831:23: warning: variable name 'pp' is too short, expected at least 3 characters [readability-identifier-length]
        struct commit_list **pp = &commit->parents;
                             ^
/datasets/git/revision.c:3832:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*pp) {
        ^
/datasets/git/revision.c:3832:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'pp' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (*pp) {
               ^
/datasets/git/revision.c:3851:6: warning: variable 'retval' is not initialized [cppcoreguidelines-init-variables]
        int retval;
            ^
                   = 0
/datasets/git/revision.c:3852:14: warning: variable 'encoding' is not initialized [cppcoreguidelines-init-variables]
        const char *encoding;
                    ^
                             = NULL
/datasets/git/revision.c:3853:14: warning: variable 'message' is not initialized [cppcoreguidelines-init-variables]
        const char *message;
                    ^
                            = NULL
/datasets/git/revision.c:3856:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opt->grep_filter.pattern_list && !opt->grep_filter.header_list)
                                                                            ^
                                                                             {
/datasets/git/revision.c:3877:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (buf.len)
                    ^
                     {
/datasets/git/revision.c:3883:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!buf.len)
                             ^
                              {
/datasets/git/revision.c:3891:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!buf.len)
                             ^
                              {
/datasets/git/revision.c:3904:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (buf.len)
                    ^
                     {
/datasets/git/revision.c:3906:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/revision.c:3931:20: warning: function 'get_commit_action' has cognitive complexity of 45 (threshold 25) [readability-function-cognitive-complexity]
enum commit_action get_commit_action(struct rev_info *revs, struct commit *commit)
                   ^
/datasets/git/revision.c:3933:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (commit->object.flags & SHOWN)
        ^
/datasets/git/revision.c:3935:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (revs->unpacked && has_object_pack(&commit->object.oid))
        ^
/datasets/git/revision.c:3935:21: note: +1
        if (revs->unpacked && has_object_pack(&commit->object.oid))
                           ^
/datasets/git/revision.c:3937:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (revs->no_kept_objects) {
        ^
/datasets/git/revision.c:3938:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (has_object_kept_pack(&commit->object.oid,
                ^
/datasets/git/revision.c:3942:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (commit->object.flags & UNINTERESTING)
        ^
/datasets/git/revision.c:3944:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (revs->line_level_traverse && !want_ancestry(revs)) {
        ^
/datasets/git/revision.c:3944:32: note: +1
        if (revs->line_level_traverse && !want_ancestry(revs)) {
                                      ^
/datasets/git/revision.c:3957:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!line_log_process_ranges_arbitrary_commit(revs, commit))
                ^
/datasets/git/revision.c:3960:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (revs->min_age != -1 &&
        ^
/datasets/git/revision.c:3960:26: note: +1
        if (revs->min_age != -1 &&
                                ^
/datasets/git/revision.c:3963:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (revs->max_age_as_filter != -1 &&
        ^
/datasets/git/revision.c:3963:36: note: +1
        if (revs->max_age_as_filter != -1 &&
                                          ^
/datasets/git/revision.c:3966:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (revs->min_parents || (revs->max_parents >= 0)) {
        ^
/datasets/git/revision.c:3966:24: note: +1
        if (revs->min_parents || (revs->max_parents >= 0)) {
                              ^
/datasets/git/revision.c:3968:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((n < revs->min_parents) ||
                ^
/datasets/git/revision.c:3968:31: note: +1
                if ((n < revs->min_parents) ||
                                            ^
/datasets/git/revision.c:3969:33: note: +1
                    ((revs->max_parents >= 0) && (n > revs->max_parents)))
                                              ^
/datasets/git/revision.c:3972:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!commit_match(commit, revs))
        ^
/datasets/git/revision.c:3974:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (revs->prune && revs->dense) {
        ^
/datasets/git/revision.c:3974:18: note: +1
        if (revs->prune && revs->dense) {
                        ^
/datasets/git/revision.c:3976:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (commit->object.flags & TREESAME) {
                ^
/datasets/git/revision.c:3980:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!want_ancestry(revs))
                        ^
/datasets/git/revision.c:3983:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (revs->show_pulls && (commit->object.flags & PULL_MERGE))
                        ^
/datasets/git/revision.c:3983:25: note: +1
                        if (revs->show_pulls && (commit->object.flags & PULL_MERGE))
                                             ^
/datasets/git/revision.c:3993:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (n = 0, p = commit->parents; p; p = p->next)
                        ^
/datasets/git/revision.c:3994:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (relevant_commit(p->item))
                                ^
/datasets/git/revision.c:3995:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (++n >= 2)
                                        ^
/datasets/git/revision.c:3933:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (commit->object.flags & SHOWN)
                                   ^
/datasets/git/./revision.h:30:17: note: expanded from macro 'SHOWN'
#define SHOWN           (1u<<3)
                         ^   ~
/datasets/git/revision.c:3933:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (commit->object.flags & SHOWN)
                                         ^
                                          {
/datasets/git/revision.c:3935:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->unpacked && has_object_pack(&commit->object.oid))
                                                                   ^
                                                                    {
/datasets/git/revision.c:3939:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                         revs->keep_pack_cache_flags))
                                                                      ^
                                                                       {
/datasets/git/revision.c:3942:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (commit->object.flags & UNINTERESTING)
                                   ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/revision.c:3942:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (commit->object.flags & UNINTERESTING)
                                                 ^
                                                  {
/datasets/git/revision.c:3957:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!line_log_process_ranges_arbitrary_commit(revs, commit))
                                                                            ^
                                                                             {
/datasets/git/revision.c:3961:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            comparison_date(revs, commit) > revs->min_age)
                                                          ^
                                                           {
/datasets/git/revision.c:3964:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            comparison_date(revs, commit) < revs->max_age_as_filter)
                                                                    ^
                                                                     {
/datasets/git/revision.c:3967:7: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
                int n = commit_list_count(commit->parents);
                    ^
/datasets/git/revision.c:3967:11: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int n = commit_list_count(commit->parents);
                        ^
/datasets/git/revision.c:3969:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    ((revs->max_parents >= 0) && (n > revs->max_parents)))
                                                                          ^
                                                                           {
/datasets/git/revision.c:3972:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!commit_match(commit, revs))
                                        ^
                                         {
/datasets/git/revision.c:3976:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (commit->object.flags & TREESAME) {
                                           ^
/datasets/git/./revision.h:29:19: note: expanded from macro 'TREESAME'
#define TREESAME        (1u<<2)
                         ^   ~
/datasets/git/revision.c:3977:8: warning: variable 'n' is not initialized [cppcoreguidelines-init-variables]
                        int n;
                            ^
                              = 0
/datasets/git/revision.c:3977:8: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:3978:24: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                        struct commit_list *p;
                                            ^
                                              = NULL
/datasets/git/revision.c:3978:24: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:3980:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!want_ancestry(revs))
                                                 ^
                                                  {
/datasets/git/revision.c:3983:52: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (revs->show_pulls && (commit->object.flags & PULL_MERGE))
                                                                        ^
/datasets/git/./revision.h:40:21: note: expanded from macro 'PULL_MERGE'
#define PULL_MERGE      (1u<<15)
                         ^   ~~
/datasets/git/revision.c:3983:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (revs->show_pulls && (commit->object.flags & PULL_MERGE))
                                                                                    ^
                                                                                     {
/datasets/git/revision.c:3993:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (n = 0, p = commit->parents; p; p = p->next)
                        ^
/datasets/git/revision.c:3993:37: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (n = 0, p = commit->parents; p; p = p->next)
                                                         ^
/datasets/git/revision.c:3993:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (n = 0, p = commit->parents; p; p = p->next)
                                                                        ^
                                                                         {
/datasets/git/revision.c:3994:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (relevant_commit(p->item))
                                                             ^
                                                              {
/datasets/git/revision.c:3995:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        if (++n >= 2)
                                                     ^
                                                      {
/datasets/git/revision.c:4003:1: warning: backward branch (for loop) is ID-dependent due to member reference to 'slab_size' and may cause performance degradation [altera-id-dependent-backward-branch]
define_commit_slab(saved_parents, struct commit_list *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:48:15: note: expanded from macro 'implement_commit_slab'
                for (j = 0; j < s->slab_size; j++)                      \
                            ^
/datasets/git/revision.c:4003:1: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
define_commit_slab(saved_parents, struct commit_list *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:68:27: note: expanded from macro 'implement_commit_slab'
                for (i = s->slab_count; i <= nth_slab; i++)             \
                                        ^
/datasets/git/revision.c:4003:1: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
define_commit_slab(saved_parents, struct commit_list *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:35:2: note: expanded from macro 'implement_commit_slab'
        for (i = 0; i < s->slab_count; i++)                             \
        ^
/datasets/git/revision.c:4003:1: warning: result of multiplication in type 'unsigned int' is used as a pointer offset after an implicit widening conversion to type 'size_t' [bugprone-implicit-widening-of-multiplication-result]
define_commit_slab(saved_parents, struct commit_list *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:49:13: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                 ^
/datasets/git/revision.c:4003:1: note: make conversion explicit to silence this warning
define_commit_slab(saved_parents, struct commit_list *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:49:24: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                            ^~~~~~~~~~~~~
/datasets/git/revision.c:4003:1: note: perform multiplication in a wider type
define_commit_slab(saved_parents, struct commit_list *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:49:24: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                            ^
/datasets/git/revision.c:4003:1: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
define_commit_slab(saved_parents, struct commit_list *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:76:10: note: expanded from macro 'implement_commit_slab'
                                            sizeof(**s->slab) * s->stride);             \
                                            ^
/datasets/git/revision.c:4003:1: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(saved_parents, struct commit_list *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:55:30: note: expanded from macro 'implement_commit_slab'
                                                  const struct commit *c, \
                                                                       ^
/datasets/git/revision.c:4003:1: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(saved_parents, struct commit_list *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:14:61: note: expanded from macro 'implement_commit_slab'
scope void init_ ##slabname## _with_stride(struct slabname *s,          \
                                                            ^
/datasets/git/revision.c:4003:1: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(saved_parents, struct commit_list *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:34:15: note: expanded from macro 'implement_commit_slab'
        unsigned int i;                                                 \
                     ^
/datasets/git/revision.c:4003:1: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(saved_parents, struct commit_list *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:45:16: note: expanded from macro 'implement_commit_slab'
                unsigned int j;                                         \
                             ^
/datasets/git/revision.c:4003:1: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
define_commit_slab(saved_parents, struct commit_list *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:58:2: note: expanded from macro 'implement_commit_slab'
        unsigned int nth_slab, nth_slot;                                \
        ^
/datasets/git/revision.c:4003:1: note: inferred assignment of ID-dependent value from ID-dependent member slab_count [altera-id-dependent-backward-branch]
define_commit_slab(saved_parents, struct commit_list *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:64:3: note: expanded from macro 'implement_commit_slab'
                unsigned int i;                                         \
                ^
/datasets/git/revision.c:4003:20: warning: accessing fields in struct 'saved_parents' is inefficient due to padding; only needs 20 bytes but is using 24 bytes [altera-struct-pack-align]
define_commit_slab(saved_parents, struct commit_list *);
                   ^
/datasets/git/revision.c:4003:20: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'saved_parents'
/datasets/git/revision.c:4003:20: warning: accessing fields in struct 'saved_parents' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
define_commit_slab(saved_parents, struct commit_list *);
                   ^
/datasets/git/revision.c:4003:20: note: use "__attribute__((aligned(32)))" to align struct 'saved_parents' to 32 bytes
/datasets/git/revision.c:4013:23: warning: variable 'pp' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list **pp;
                             ^
                                = NULL
/datasets/git/revision.c:4013:23: warning: variable name 'pp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:4031:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*pp)
                ^
                 {
/datasets/git/revision.c:4033:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (commit->parents)
                            ^
                             {
/datasets/git/revision.c:4035:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/revision.c:4036:9: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
                *pp = EMPTY_PARENT_LIST;
                      ^
/datasets/git/revision.c:4005:28: note: expanded from macro 'EMPTY_PARENT_LIST'
#define EMPTY_PARENT_LIST ((struct commit_list *)-1)
                           ^
/datasets/git/revision.c:4041:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (revs->saved_parents_slab)
                                     ^
                                      {
/datasets/git/revision.c:4047:22: warning: variable 'parents' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *parents;
                            ^
                                    = NULL
/datasets/git/revision.c:4049:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!revs->saved_parents_slab)
                                      ^
                                       {
/datasets/git/revision.c:4053:17: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
        if (parents == EMPTY_PARENT_LIST)
                       ^
/datasets/git/revision.c:4005:28: note: expanded from macro 'EMPTY_PARENT_LIST'
#define EMPTY_PARENT_LIST ((struct commit_list *)-1)
                           ^
/datasets/git/revision.c:4053:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parents == EMPTY_PARENT_LIST)
                                         ^
                                          {
/datasets/git/revision.c:4070:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (revs->full_diff)
                                    ^
                                     {
/datasets/git/revision.c:4072:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (rewrite_parents(revs, commit, rewrite_one) < 0)
                                                                   ^
                                                                    {
/datasets/git/revision.c:4084:23: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                struct commit_list *p;
                                    ^
                                      = NULL
/datasets/git/revision.c:4084:23: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:4085:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (p = revs->previous_parents; p; p = p->next)
                ^
/datasets/git/revision.c:4085:36: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (p = revs->previous_parents; p; p = p->next)
                                                 ^
/datasets/git/revision.c:4085:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (p = revs->previous_parents; p; p = p->next)
                                                                ^
                                                                 {
/datasets/git/revision.c:4087:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            oideq(&p->item->object.oid, &commit->object.oid))
                                                                             ^
                                                                              {
/datasets/git/revision.c:4092:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (revs->linear)
                                 ^
                                  {
/datasets/git/revision.c:4093:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        commit->object.flags |= TRACK_LINEAR;
                                                ^
/datasets/git/./revision.h:50:23: note: expanded from macro 'TRACK_LINEAR'
#define TRACK_LINEAR    (1u<<26)
                         ^   ~~
/datasets/git/revision.c:4099:23: warning: function 'get_revision_1' has cognitive complexity of 29 (threshold 25) [readability-function-cognitive-complexity]
static struct commit *get_revision_1(struct rev_info *revs)
                      ^
/datasets/git/revision.c:4101:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (1) {
        ^
/datasets/git/revision.c:4104:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (revs->reflog_info)
                ^
/datasets/git/revision.c:4106:8: note: +1, nesting level increased to 2
                else if (revs->topo_walk_info)
                     ^
/datasets/git/revision.c:4108:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/revision.c:4111:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!commit)
                ^
/datasets/git/revision.c:4114:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (revs->reflog_info)
                ^
/datasets/git/revision.c:4122:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!revs->limited) {
                ^
/datasets/git/revision.c:4123:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (revs->max_age != -1 &&
                        ^
/datasets/git/revision.c:4123:28: note: +1
                        if (revs->max_age != -1 &&
                                                ^
/datasets/git/revision.c:4127:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (revs->reflog_info)
                        ^
/datasets/git/revision.c:4129:9: note: +1, nesting level increased to 3
                        else if (revs->topo_walk_info)
                             ^
/datasets/git/revision.c:4131:9: note: +1, nesting level increased to 3
                        else if (process_parents(revs, commit, &revs->commits, NULL) < 0) {
                             ^
/datasets/git/revision.c:4132:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!revs->ignore_missing_links)
                                ^
/datasets/git/revision.c:4138:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                switch (simplify_commit(revs, commit)) {
                ^
/datasets/git/revision.c:4145:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (revs->track_linear)
                        ^
/datasets/git/revision.c:4101:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/revision.c:4102:18: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
                struct commit *commit;
                               ^
                                      = NULL
/datasets/git/revision.c:4104:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (revs->reflog_info)
                                      ^
                                       {
/datasets/git/revision.c:4106:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (revs->topo_walk_info)
                                              ^
                                               {
/datasets/git/revision.c:4108:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/revision.c:4111:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!commit)
                            ^
                             {
/datasets/git/revision.c:4114:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (revs->reflog_info)
                                      ^
                                       {
/datasets/git/revision.c:4115:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        commit->object.flags &= ~(ADDED | SEEN | SHOWN);
                                                  ^
/datasets/git/./revision.h:34:17: note: expanded from macro 'ADDED'
#define ADDED           (1u<<7) /* Parents already parsed and added? */
                         ^   ~
/datasets/git/revision.c:4115:38: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        commit->object.flags &= ~(ADDED | SEEN | SHOWN);
                                                          ^
/datasets/git/./revision.h:27:16: note: expanded from macro 'SEEN'
#define SEEN            (1u<<0)
                         ^   ~
/datasets/git/revision.c:4115:45: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        commit->object.flags &= ~(ADDED | SEEN | SHOWN);
                                                                 ^
/datasets/git/./revision.h:30:17: note: expanded from macro 'SHOWN'
#define SHOWN           (1u<<3)
                         ^   ~
/datasets/git/revision.c:4124:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            comparison_date(revs, commit) < revs->max_age)
                                                                          ^
                                                                           {
/datasets/git/revision.c:4127:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (revs->reflog_info)
                                              ^
                                               {
/datasets/git/revision.c:4129:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (revs->topo_walk_info)
                                                      ^
                                                       {
/datasets/git/revision.c:4132:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!revs->ignore_missing_links)
                                                                ^
                                                                 {
/datasets/git/revision.c:4145:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (revs->track_linear)
                                               ^
                                                {
/datasets/git/revision.c:4156:66: warning: parameter 'cb_data_unused' is unused [misc-unused-parameters]
static int entry_unshown(struct object_array_entry *entry, void *cb_data_unused)
                                                                 ^
/datasets/git/revision.c:4158:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return !(entry->item->flags & SHOWN);
                                      ^
/datasets/git/./revision.h:30:17: note: expanded from macro 'SHOWN'
#define SHOWN           (1u<<3)
                         ^   ~
/datasets/git/revision.c:4167:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (array->nr == array->alloc)
                                      ^
                                       {
/datasets/git/revision.c:4173:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned i;
                 ^
                   = 0
/datasets/git/revision.c:4173:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:4174:17: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        struct commit *c;
                       ^
                         = NULL
/datasets/git/revision.c:4174:17: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:4191:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < array->nr; i++) {
        ^
/datasets/git/revision.c:4191:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'array' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < array->nr; i++) {
                    ^
/datasets/git/revision.c:4193:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!c)
                       ^
                        {
/datasets/git/revision.c:4195:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(c->object.flags & CHILD_SHOWN))
                                        ^
/datasets/git/./revision.h:33:22: note: expanded from macro 'CHILD_SHOWN'
#define CHILD_SHOWN     (1u<<6)
                         ^   ~
/datasets/git/revision.c:4195:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(c->object.flags & CHILD_SHOWN))
                                                     ^
                                                      {
/datasets/git/revision.c:4197:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (c->object.flags & (SHOWN | BOUNDARY))
                                       ^
/datasets/git/./revision.h:30:17: note: expanded from macro 'SHOWN'
#define SHOWN           (1u<<3)
                         ^   ~
/datasets/git/revision.c:4197:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (c->object.flags & (SHOWN | BOUNDARY))
                                               ^
/datasets/git/./revision.h:32:19: note: expanded from macro 'BOUNDARY'
#define BOUNDARY        (1u<<5)
                         ^   ~
/datasets/git/revision.c:4197:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (c->object.flags & (SHOWN | BOUNDARY))
                                                         ^
                                                          {
/datasets/git/revision.c:4199:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                c->object.flags |= BOUNDARY;
                                   ^
/datasets/git/./revision.h:32:19: note: expanded from macro 'BOUNDARY'
#define BOUNDARY        (1u<<5)
                         ^   ~
/datasets/git/revision.c:4210:23: warning: function 'get_revision_internal' is within a recursive call chain [misc-no-recursion]
static struct commit *get_revision_internal(struct rev_info *revs)
                      ^
/datasets/git/revision.c:4210:23: note: example recursive call chain, starting from function 'get_revision_internal'
/datasets/git/revision.c:4273:10: note: Frame #1: function 'get_revision_internal' calls function 'get_revision_internal' here:
                return get_revision_internal(revs);
                       ^
/datasets/git/revision.c:4273:10: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/revision.c:4212:17: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        struct commit *c = NULL;
                       ^
/datasets/git/revision.c:4213:22: warning: variable 'l' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *l;
                            ^
                              = NULL
/datasets/git/revision.c:4213:22: warning: variable name 'l' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:4223:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (c)
                      ^
                       {
/datasets/git/revision.c:4224:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        c->object.flags |= SHOWN;
                                           ^
/datasets/git/./revision.h:30:17: note: expanded from macro 'SHOWN'
#define SHOWN           (1u<<3)
                         ^   ~
/datasets/git/revision.c:4241:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (revs->skip_count > 0) {
                        ^
/datasets/git/revision.c:4241:11: warning: backward branch (while loop) is ID-dependent due to member reference to 'skip_count' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (revs->skip_count > 0) {
                               ^
/datasets/git/revision.c:4244:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!c)
                                       ^
                                        {
/datasets/git/revision.c:4249:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (revs->max_count > 0)
                                        ^
                                         {
/datasets/git/revision.c:4253:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (c)
              ^
               {
/datasets/git/revision.c:4254:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                c->object.flags |= SHOWN;
                                   ^
/datasets/git/./revision.h:30:17: note: expanded from macro 'SHOWN'
#define SHOWN           (1u<<3)
                         ^   ~
/datasets/git/revision.c:4256:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!revs->boundary)
                            ^
                             {
/datasets/git/revision.c:4283:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (l = c->parents; l; l = l->next) {
        ^
/datasets/git/revision.c:4283:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 'l' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (l = c->parents; l; l = l->next) {
                             ^
/datasets/git/revision.c:4284:18: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                struct object *p;
                               ^
                                 = NULL
/datasets/git/revision.c:4284:18: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:4286:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (p->flags & (CHILD_SHOWN | SHOWN))
                                ^
/datasets/git/./revision.h:33:22: note: expanded from macro 'CHILD_SHOWN'
#define CHILD_SHOWN     (1u<<6)
                         ^   ~
/datasets/git/revision.c:4286:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (p->flags & (CHILD_SHOWN | SHOWN))
                                              ^
/datasets/git/./revision.h:30:17: note: expanded from macro 'SHOWN'
#define SHOWN           (1u<<3)
                         ^   ~
/datasets/git/revision.c:4286:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (p->flags & (CHILD_SHOWN | SHOWN))
                                                     ^
                                                      {
/datasets/git/revision.c:4288:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                p->flags |= CHILD_SHOWN;
                            ^
/datasets/git/./revision.h:33:22: note: expanded from macro 'CHILD_SHOWN'
#define CHILD_SHOWN     (1u<<6)
                         ^   ~
/datasets/git/revision.c:4298:17: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        struct commit *c;
                       ^
                         = NULL
/datasets/git/revision.c:4298:17: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/revision.c:4299:22: warning: variable 'reversed' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *reversed;
                            ^
                                     = NULL
/datasets/git/revision.c:4303:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while ((c = get_revision_internal(revs)))
                ^
/datasets/git/revision.c:4303:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'c' and may cause performance degradation [altera-id-dependent-backward-branch]
                while ((c = get_revision_internal(revs)))
                       ^
/datasets/git/revision.c:4303:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while ((c = get_revision_internal(revs)))
                                                         ^
                                                          {
/datasets/git/revision.c:4312:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (revs->track_linear)
                                       ^
                                        {
/datasets/git/revision.c:4313:45: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        revs->linear = !!(c && c->object.flags & TRACK_LINEAR);
                                                                 ^
/datasets/git/./revision.h:50:23: note: expanded from macro 'TRACK_LINEAR'
#define TRACK_LINEAR    (1u<<26)
                         ^   ~~
/datasets/git/revision.c:4318:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (c && revs->graph)
                             ^
                              {
/datasets/git/revision.c:4330:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (commit->object.flags & BOUNDARY)
                                   ^
/datasets/git/./revision.h:32:19: note: expanded from macro 'BOUNDARY'
#define BOUNDARY        (1u<<5)
                         ^   ~
/datasets/git/revision.c:4330:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (commit->object.flags & BOUNDARY)
                                            ^
                                             {
/datasets/git/revision.c:4332:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (commit->object.flags & UNINTERESTING)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:4332:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        else if (commit->object.flags & UNINTERESTING)
                                        ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/revision.c:4332:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (commit->object.flags & UNINTERESTING)
                                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:4334:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        else if (commit->object.flags & PATCHSAME)
                                        ^
/datasets/git/./revision.h:36:20: note: expanded from macro 'PATCHSAME'
#define PATCHSAME       (1u<<9)
                         ^   ~
/datasets/git/revision.c:4334:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (commit->object.flags & PATCHSAME)
                                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:4337:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (commit->object.flags & SYMMETRIC_LEFT)
                                           ^
/datasets/git/./revision.h:35:25: note: expanded from macro 'SYMMETRIC_LEFT'
#define SYMMETRIC_LEFT  (1u<<8)
                         ^   ~
/datasets/git/revision.c:4337:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (commit->object.flags & SYMMETRIC_LEFT)
                                                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:4339:3: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                else
                ^~~~
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:4339:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:4341:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else if (revs->graph)
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:4343:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (revs->cherry_mark)
                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/revision.c:4351:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strlen(mark))
                          ^
                           {
/datasets/git/revision.c:4353:2: warning: the value returned by this function should be used [cert-err33-c]
        fputs(mark, stdout);
        ^~~~~~~~~~~~~~~~~~~
/datasets/git/revision.c:4353:2: note: cast the expression to void to silence this warning
/datasets/git/run-command.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "run-command.h"
^        ~~~~~~~~~~~~~~~
         "compat/nonblock.h"
/datasets/git/run-command.c:18:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(child, &blank, sizeof(*child));
        ^~~~~~
/datasets/git/run-command.c:18:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(child, &blank, sizeof(*child));
        ^~~~~~
/datasets/git/run-command.c:27:8: warning: accessing fields in struct 'child_to_clean' is inefficient due to padding; only needs 20 bytes but is using 24 bytes [altera-struct-pack-align]
struct child_to_clean {
       ^
/datasets/git/run-command.c:27:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'child_to_clean'
/datasets/git/run-command.c:27:8: warning: accessing fields in struct 'child_to_clean' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct child_to_clean {
       ^
/datasets/git/run-command.c:27:8: note: use "__attribute__((aligned(32)))" to align struct 'child_to_clean' to 32 bytes
/datasets/git/run-command.c:32:31: warning: variable 'children_to_clean' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct child_to_clean *children_to_clean;
                              ^
/datasets/git/run-command.c:32:31: warning: variable 'children_to_clean' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/run-command.c:33:12: warning: variable 'installed_child_cleanup_handler' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int installed_child_cleanup_handler;
           ^
/datasets/git/run-command.c:35:13: warning: function 'cleanup_children' has cognitive complexity of 29 (threshold 25) [readability-function-cognitive-complexity]
static void cleanup_children(int sig, int in_signal)
            ^
/datasets/git/run-command.c:39:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (children_to_clean) {
        ^
/datasets/git/run-command.c:43:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (p->process && !in_signal) {
                ^
/datasets/git/run-command.c:43:18: note: +1
                if (p->process && !in_signal) {
                               ^
/datasets/git/run-command.c:45:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (process->clean_on_exit_handler) {
                        ^
/datasets/git/run-command.c:46:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                trace_printf(
                                ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/run-command.c:46:5: note: +5, including nesting penalty of 4, nesting level increased to 5
                                trace_printf(
                                ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:173:3: note: expanded from macro 'trace_printf_key'
                if (trace_pass_fl(key))                                     \
                ^
/datasets/git/run-command.c:56:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (p->process && p->process->wait_after_clean) {
                ^
/datasets/git/run-command.c:56:18: note: +1
                if (p->process && p->process->wait_after_clean) {
                               ^
/datasets/git/run-command.c:59:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/run-command.c:60:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!in_signal)
                        ^
/datasets/git/run-command.c:65:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (children_to_wait_for) {
        ^
/datasets/git/run-command.c:69:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (waitpid(p->pid, NULL, 0) < 0 && errno == EINTR)
                ^
/datasets/git/run-command.c:69:39: note: +1
                while (waitpid(p->pid, NULL, 0) < 0 && errno == EINTR)
                                                    ^
/datasets/git/run-command.c:72:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!in_signal)
                ^
/datasets/git/run-command.c:35:30: warning: 2 adjacent parameters of 'cleanup_children' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void cleanup_children(int sig, int in_signal)
                             ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/run-command.c:35:34: note: the first parameter in the range is 'sig'
static void cleanup_children(int sig, int in_signal)
                                 ^~~
/datasets/git/run-command.c:35:43: note: the last parameter in the range is 'in_signal'
static void cleanup_children(int sig, int in_signal)
                                          ^~~~~~~~~
/datasets/git/run-command.c:32:1: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
static struct child_to_clean *children_to_clean;
^
/datasets/git/run-command.c:39:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'children_to_clean' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (children_to_clean) {
               ^
/datasets/git/run-command.c:37:2: note: inferred assignment of ID-dependent value from ID-dependent variable p
        struct child_to_clean *children_to_wait_for = NULL;
        ^
/datasets/git/run-command.c:40:26: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct child_to_clean *p = children_to_clean;
                                       ^
/datasets/git/run-command.c:46:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                trace_printf(
                                ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/run-command.c:60:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!in_signal)
                                       ^
                                        {
/datasets/git/run-command.c:65:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'children_to_wait_for' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (children_to_wait_for) {
               ^
/datasets/git/run-command.c:66:26: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct child_to_clean *p = children_to_wait_for;
                                       ^
/datasets/git/run-command.c:69:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (waitpid(p->pid, NULL, 0) < 0 && errno == EINTR)
                ^
/datasets/git/run-command.c:69:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (waitpid(p->pid, NULL, 0) < 0 && errno == EINTR)
                       ^
/datasets/git/run-command.c:69:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (waitpid(p->pid, NULL, 0) < 0 && errno == EINTR)
                                                                      ^
                                                                       {
/datasets/git/run-command.c:72:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!in_signal)
                               ^
                                {
/datasets/git/run-command.c:81:2: warning: the value returned by this function should be used [cert-err33-c]
        raise(sig);
        ^~~~~~~~~~
/datasets/git/run-command.c:81:2: note: cast the expression to void to silence this warning
/datasets/git/run-command.c:91:25: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        struct child_to_clean *p = xmalloc(sizeof(*p));
                               ^
/datasets/git/run-command.c:98:3: warning: the value returned by this function should be used [cert-err33-c]
                atexit(cleanup_children_on_exit);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/run-command.c:98:3: note: cast the expression to void to silence this warning
/datasets/git/run-command.c:106:2: note: inferred assignment of ID-dependent value from ID-dependent variable children_to_clean [altera-id-dependent-backward-branch]
        struct child_to_clean **pp;
        ^
/datasets/git/run-command.c:106:26: warning: variable 'pp' is not initialized [cppcoreguidelines-init-variables]
        struct child_to_clean **pp;
                                ^
                                   = NULL
/datasets/git/run-command.c:106:26: warning: variable name 'pp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/run-command.c:108:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (pp = &children_to_clean; *pp; pp = &(*pp)->next) {
        ^
/datasets/git/run-command.c:108:32: warning: backward branch (for loop) is ID-dependent due to variable reference to 'pp' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (pp = &children_to_clean; *pp; pp = &(*pp)->next) {
                                      ^
/datasets/git/run-command.c:119:35: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
static inline void close_pair(int fd[2])
                                  ^
/datasets/git/run-command.c:127:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/run-command.c:130:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !S_ISREG(st.st_mode))
                                 ^
                                  {
/datasets/git/run-command.c:164:9: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return st.st_mode & S_IXUSR;
               ^
/datasets/git/run-command.c:164:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
/datasets/git/run-command.c:186:14: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        const char *p = getenv("PATH");
                    ^
/datasets/git/run-command.c:186:18: warning: function is not thread safe [concurrency-mt-unsafe]
        const char *p = getenv("PATH");
                        ^
/datasets/git/run-command.c:189:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!p || !*p)
                      ^
                       {
/datasets/git/run-command.c:192:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/run-command.c:204:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_executable(buf.buf))
                                           ^
                                            {
/datasets/git/run-command.c:207:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!*end)
                          ^
                           {
/datasets/git/run-command.c:218:8: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        char *r = locate_in_PATH(command);
              ^
/datasets/git/run-command.c:238:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!execvp(file, argv))
                                ^
                                 {
/datasets/git/run-command.c:243:7: warning: variable name 'ec' is too short, expected at least 3 characters [readability-identifier-length]
                int ec = errno;
                    ^
/datasets/git/run-command.c:262:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (errno == EACCES && !strchr(file, '/'))
                                                  ^
                                                   {
/datasets/git/run-command.c:264:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (errno == ENOTDIR && !strchr(file, '/'))
                                                        ^
                                                         {
/datasets/git/run-command.c:271:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!argv[0])
                     ^
                      {
/datasets/git/run-command.c:286:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!argv[1])
                             ^
                              {
/datasets/git/run-command.c:288:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/run-command.c:297:12: warning: variable 'child_notifier' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int child_notifier = -1;
           ^
/datasets/git/run-command.c:309:8: warning: accessing fields in struct 'child_err' is inefficient due to poor alignment; currently aligned to 4 bytes, but recommended alignment is 8 bytes [altera-struct-pack-align]
struct child_err {
       ^
/datasets/git/run-command.c:309:8: note: use "__attribute__((aligned(8)))" to align struct 'child_err' to 8 bytes
/datasets/git/run-command.c:326:28: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
static void child_dup2(int fd, int to)
                           ^
/datasets/git/run-command.c:326:36: warning: parameter name 'to' is too short, expected at least 3 characters [readability-identifier-length]
static void child_dup2(int fd, int to)
                                   ^
/datasets/git/run-command.c:328:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (dup2(fd, to) < 0)
                             ^
                              {
/datasets/git/run-command.c:332:29: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
static void child_close(int fd)
                            ^
/datasets/git/run-command.c:334:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (close(fd))
                      ^
                       {
/datasets/git/run-command.c:338:34: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
static void child_close_pair(int fd[2])
                                 ^
/datasets/git/run-command.c:344:40: warning: parameter 'err' is unused [misc-unused-parameters]
static void child_error_fn(const char *err, va_list params)
                                       ^
/datasets/git/run-command.c:344:53: warning: parameter 'params' is unused [misc-unused-parameters]
static void child_error_fn(const char *err, va_list params)
                                                    ^
/datasets/git/run-command.c:350:39: warning: parameter 'err' is unused [misc-unused-parameters]
static void child_warn_fn(const char *err, va_list params)
                                      ^
/datasets/git/run-command.c:350:52: warning: parameter 'params' is unused [misc-unused-parameters]
static void child_warn_fn(const char *err, va_list params)
                                                   ^
/datasets/git/run-command.c:356:47: warning: parameter 'err' is unused [misc-unused-parameters]
static void NORETURN child_die_fn(const char *err, va_list params)
                                              ^
/datasets/git/run-command.c:356:60: warning: parameter 'params' is unused [misc-unused-parameters]
static void NORETURN child_die_fn(const char *err, va_list params)
                                                           ^
/datasets/git/run-command.c:366:16: warning: variable 'old_errfn' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
        static void (*old_errfn)(const char *err, va_list params);
                      ^
/datasets/git/run-command.c:401:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!cmd->args.v[0])
                            ^
                             {
/datasets/git/run-command.c:441:16: warning: variable 'environ' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
        extern char **environ;
                      ^
/datasets/git/run-command.c:441:16: warning: redundant 'environ' declaration [readability-redundant-declaration]
        extern char **environ;
        ~~~~~~~~~~~~~~^~~~~~~~
/usr/include/unistd.h:566:15: note: previously declared here
extern char **environ;
              ^
/datasets/git/run-command.c:442:9: warning: variable 'childenv' is not initialized [cppcoreguidelines-init-variables]
        char **childenv;
               ^
                        = NULL
/datasets/git/run-command.c:445:21: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        const char *const *p;
                           ^
                             = NULL
/datasets/git/run-command.c:445:21: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/run-command.c:446:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/run-command.c:446:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/run-command.c:449:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = (const char *const *) environ; p && *p; p++) {
        ^
/datasets/git/run-command.c:445:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        const char *const *p;
        ^
/datasets/git/run-command.c:449:42: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = (const char *const *) environ; p && *p; p++) {
                                                ^
/datasets/git/run-command.c:463:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = deltaenv; p && *p; p++) {
        ^
/datasets/git/run-command.c:463:21: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = deltaenv; p && *p; p++) {
                           ^
/datasets/git/run-command.c:479:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < env.nr; i++)
        ^
/datasets/git/run-command.c:479:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < env.nr; i++)
                                    ^
                                     {
/datasets/git/run-command.c:488:8: warning: accessing fields in struct 'atfork_state' is inefficient due to padding; only needs 132 bytes but is using 136 bytes [altera-struct-pack-align]
struct atfork_state {
       ^
/datasets/git/run-command.c:488:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'atfork_state'
/datasets/git/run-command.c:488:8: warning: accessing fields in struct 'atfork_state' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct atfork_state {
       ^
/datasets/git/run-command.c:488:8: note: use "__attribute__((aligned(128)))" to align struct 'atfork_state' to 128 bytes
/datasets/git/run-command.c:502:49: warning: parameter name 'as' is too short, expected at least 3 characters [readability-identifier-length]
static void atfork_prepare(struct atfork_state *as)
                                                ^
/datasets/git/run-command.c:506:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (sigfillset(&all))
                             ^
                              {
/datasets/git/run-command.c:512:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        CHECK_BUG(pthread_sigmask(SIG_SETMASK, &all, &as->old),
        ^
/datasets/git/run-command.c:496:2: note: expanded from macro 'CHECK_BUG'
        do { \
        ^
/datasets/git/run-command.c:512:2: warning: function is not thread safe [concurrency-mt-unsafe]
        CHECK_BUG(pthread_sigmask(SIG_SETMASK, &all, &as->old),
        ^
/datasets/git/run-command.c:499:23: note: expanded from macro 'CHECK_BUG'
                        BUG("%s: %s", msg, strerror(e)); \
                                           ^
/datasets/git/run-command.c:512:2: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
        CHECK_BUG(pthread_sigmask(SIG_SETMASK, &all, &as->old),
        ^
/datasets/git/run-command.c:497:7: note: expanded from macro 'CHECK_BUG'
                int e = (err); \
                    ^
/datasets/git/run-command.c:514:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        CHECK_BUG(pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &as->cs),
        ^
/datasets/git/run-command.c:496:2: note: expanded from macro 'CHECK_BUG'
        do { \
        ^
/datasets/git/run-command.c:514:2: warning: function is not thread safe [concurrency-mt-unsafe]
        CHECK_BUG(pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &as->cs),
        ^
/datasets/git/run-command.c:499:23: note: expanded from macro 'CHECK_BUG'
                        BUG("%s: %s", msg, strerror(e)); \
                                           ^
/datasets/git/run-command.c:514:2: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
        CHECK_BUG(pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &as->cs),
        ^
/datasets/git/run-command.c:497:7: note: expanded from macro 'CHECK_BUG'
                int e = (err); \
                    ^
/datasets/git/run-command.c:519:48: warning: parameter name 'as' is too short, expected at least 3 characters [readability-identifier-length]
static void atfork_parent(struct atfork_state *as)
                                               ^
/datasets/git/run-command.c:525:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        CHECK_BUG(pthread_setcancelstate(as->cs, NULL),
        ^
/datasets/git/run-command.c:496:2: note: expanded from macro 'CHECK_BUG'
        do { \
        ^
/datasets/git/run-command.c:525:2: warning: function is not thread safe [concurrency-mt-unsafe]
        CHECK_BUG(pthread_setcancelstate(as->cs, NULL),
        ^
/datasets/git/run-command.c:499:23: note: expanded from macro 'CHECK_BUG'
                        BUG("%s: %s", msg, strerror(e)); \
                                           ^
/datasets/git/run-command.c:525:2: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
        CHECK_BUG(pthread_setcancelstate(as->cs, NULL),
        ^
/datasets/git/run-command.c:497:7: note: expanded from macro 'CHECK_BUG'
                int e = (err); \
                    ^
/datasets/git/run-command.c:527:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        CHECK_BUG(pthread_sigmask(SIG_SETMASK, &as->old, NULL),
        ^
/datasets/git/run-command.c:496:2: note: expanded from macro 'CHECK_BUG'
        do { \
        ^
/datasets/git/run-command.c:527:2: warning: function is not thread safe [concurrency-mt-unsafe]
        CHECK_BUG(pthread_sigmask(SIG_SETMASK, &as->old, NULL),
        ^
/datasets/git/run-command.c:499:23: note: expanded from macro 'CHECK_BUG'
                        BUG("%s: %s", msg, strerror(e)); \
                                           ^
/datasets/git/run-command.c:527:2: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
        CHECK_BUG(pthread_sigmask(SIG_SETMASK, &as->old, NULL),
        ^
/datasets/git/run-command.c:497:7: note: expanded from macro 'CHECK_BUG'
                int e = (err); \
                    ^
/datasets/git/run-command.c:533:36: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
static inline void set_cloexec(int fd)
                                   ^
/datasets/git/run-command.c:536:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags >= 0)
                       ^
                        {
/datasets/git/run-command.c:537:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                fcntl(fd, F_SETFD, flags | FD_CLOEXEC);
                                   ^~~~~
/datasets/git/run-command.c:542:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int status, code = -1;
        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/run-command.c:542:6: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int status, code = -1;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/run-command.c:543:8: warning: variable 'waiting' is not initialized [cppcoreguidelines-init-variables]
        pid_t waiting;
              ^
                      = 0
/datasets/git/run-command.c:546:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((waiting = waitpid(pid, &status, 0)) < 0 && errno == EINTR)
        ^
/datasets/git/run-command.c:546:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'waiting' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((waiting = waitpid(pid, &status, 0)) < 0 && errno == EINTR)
               ^
/datasets/git/run-command.c:546:68: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while ((waiting = waitpid(pid, &status, 0)) < 0 && errno == EINTR)
                                                                          ^
                                                                           {
/datasets/git/run-command.c:551:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!in_signal)
                               ^
                                {
/datasets/git/run-command.c:553:29: warning: repeated branch in conditional chain [bugprone-branch-clone]
        } else if (waiting != pid) {
                                   ^
/datasets/git/run-command.c:556:3: note: end of the original
        } else if (WIFSIGNALED(status)) {
         ^
/datasets/git/run-command.c:568:9: note: clone 1 starts here
        } else {
               ^
/datasets/git/run-command.c:554:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!in_signal)
                               ^
                                {
/datasets/git/run-command.c:558:74: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!in_signal && code != SIGINT && code != SIGQUIT && code != SIGPIPE)
                                                                                       ^
                                                                                        {
/datasets/git/run-command.c:565:11: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                code += 128;
                        ^
/datasets/git/run-command.c:569:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!in_signal)
                               ^
                                {
/datasets/git/run-command.c:573:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!in_signal)
                       ^
                        {
/datasets/git/run-command.c:583:21: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        const char *const *e;
                           ^
                             = NULL
/datasets/git/run-command.c:583:21: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/run-command.c:584:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/run-command.c:584:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/run-command.c:588:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (e = deltaenv; e && *e; e++) {
        ^
/datasets/git/run-command.c:588:21: warning: backward branch (for loop) is ID-dependent due to variable reference to 'e' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (e = deltaenv; e && *e; e++) {
                           ^
/datasets/git/run-command.c:602:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < envs.nr; i++) {
        ^
/datasets/git/run-command.c:606:15: warning: function is not thread safe [concurrency-mt-unsafe]
                if (val || !getenv(var))
                            ^
/datasets/git/run-command.c:606:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (val || !getenv(var))
                                        ^
                                         {
/datasets/git/run-command.c:615:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (printed_unset)
                          ^
                           {
/datasets/git/run-command.c:619:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < envs.nr; i++) {
        ^
/datasets/git/run-command.c:622:15: warning: variable 'oldval' is not initialized [cppcoreguidelines-init-variables]
                const char *oldval;
                            ^
                                   = NULL
/datasets/git/run-command.c:624:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!val)
                         ^
                          {
/datasets/git/run-command.c:627:12: warning: function is not thread safe [concurrency-mt-unsafe]
                oldval = getenv(var);
                         ^
/datasets/git/run-command.c:628:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (oldval && !strcmp(val, oldval))
                                                   ^
                                                    {
/datasets/git/run-command.c:637:59: warning: parameter name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
static void trace_run_command(const struct child_process *cp)
                                                          ^
/datasets/git/run-command.c:641:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!trace_want(&trace_default_key))
                                            ^
                                             {
/datasets/git/run-command.c:651:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cp->git_cmd)
                        ^
                         {
/datasets/git/run-command.c:655:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf("%s", buf.buf);
        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/run-command.c:659:5: warning: function 'start_command' has cognitive complexity of 89 (threshold 25) [readability-function-cognitive-complexity]
int start_command(struct child_process *cmd)
    ^
/datasets/git/run-command.c:671:27: note: +1
        need_in = !cmd->no_stdin && cmd->in < 0;
                                 ^
/datasets/git/run-command.c:672:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (need_in) {
        ^
/datasets/git/run-command.c:673:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (pipe(fdin) < 0) {
                ^
/datasets/git/run-command.c:675:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (cmd->out > 0)
                        ^
/datasets/git/run-command.c:678:4: note: +1
                        goto fail_pipe;
                        ^
/datasets/git/run-command.c:685:3: note: +1
                && cmd->out < 0;
                ^
/datasets/git/run-command.c:686:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (need_out) {
        ^
/datasets/git/run-command.c:687:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (pipe(fdout) < 0) {
                ^
/datasets/git/run-command.c:689:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (need_in)
                        ^
/datasets/git/run-command.c:691:9: note: +1, nesting level increased to 3
                        else if (cmd->in)
                             ^
/datasets/git/run-command.c:694:4: note: +1
                        goto fail_pipe;
                        ^
/datasets/git/run-command.c:699:29: note: +1
        need_err = !cmd->no_stderr && cmd->err < 0;
                                   ^
/datasets/git/run-command.c:700:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (need_err) {
        ^
/datasets/git/run-command.c:701:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (pipe(fderr) < 0) {
                ^
/datasets/git/run-command.c:703:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (need_in)
                        ^
/datasets/git/run-command.c:705:9: note: +1, nesting level increased to 3
                        else if (cmd->in)
                             ^
/datasets/git/run-command.c:707:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (need_out)
                        ^
/datasets/git/run-command.c:709:9: note: +1, nesting level increased to 3
                        else if (cmd->out)
                             ^
/datasets/git/run-command.c:727:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (cmd->close_object_store)
        ^
/datasets/git/run-command.c:739:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (prepare_cmd(&argv, cmd) < 0) {
        ^
/datasets/git/run-command.c:742:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!cmd->silent_exec_failure)
                ^
/datasets/git/run-command.c:744:3: note: +1
                goto end_of_spawn;
                ^
/datasets/git/run-command.c:747:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (pipe(notify_pipe))
        ^
/datasets/git/run-command.c:750:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (cmd->no_stdin || cmd->no_stdout || cmd->no_stderr) {
        ^
/datasets/git/run-command.c:750:38: note: +1
        if (cmd->no_stdin || cmd->no_stdout || cmd->no_stderr) {
                                            ^
/datasets/git/run-command.c:769:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!cmd->pid) {
        ^
/datasets/git/run-command.c:783:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (cmd->no_stdin)
                ^
/datasets/git/run-command.c:785:8: note: +1, nesting level increased to 2
                else if (need_in) {
                     ^
/datasets/git/run-command.c:788:10: note: +1, nesting level increased to 2
                } else if (cmd->in) {
                       ^
/datasets/git/run-command.c:793:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (cmd->no_stderr)
                ^
/datasets/git/run-command.c:795:8: note: +1, nesting level increased to 2
                else if (need_err) {
                     ^
/datasets/git/run-command.c:798:10: note: +1, nesting level increased to 2
                } else if (cmd->err > 1) {
                       ^
/datasets/git/run-command.c:803:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (cmd->no_stdout)
                ^
/datasets/git/run-command.c:805:8: note: +1, nesting level increased to 2
                else if (cmd->stdout_to_stderr)
                     ^
/datasets/git/run-command.c:807:8: note: +1, nesting level increased to 2
                else if (need_out) {
                     ^
/datasets/git/run-command.c:810:10: note: +1, nesting level increased to 2
                } else if (cmd->out > 1) {
                       ^
/datasets/git/run-command.c:815:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (cmd->dir && chdir(cmd->dir))
                ^
/datasets/git/run-command.c:815:16: note: +1
                if (cmd->dir && chdir(cmd->dir))
                             ^
/datasets/git/run-command.c:822:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (sig = 1; sig < NSIG; sig++) {
                ^
/datasets/git/run-command.c:824:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (signal(sig, SIG_DFL) == SIG_IGN)
                        ^
/datasets/git/run-command.c:828:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (sigprocmask(SIG_SETMASK, &as.old, NULL) != 0)
                ^
/datasets/git/run-command.c:839:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (errno == ENOEXEC)
                ^
/datasets/git/run-command.c:843:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (errno == ENOENT) {
                ^
/datasets/git/run-command.c:844:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (cmd->silent_exec_failure)
                        ^
/datasets/git/run-command.c:847:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/run-command.c:852:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (cmd->pid < 0)
        ^
/datasets/git/run-command.c:854:7: note: +1, nesting level increased to 1
        else if (cmd->clean_on_exit)
             ^
/datasets/git/run-command.c:865:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (xread(notify_pipe[0], &cerr, sizeof(cerr)) == sizeof(cerr)) {
        ^
/datasets/git/run-command.c:877:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (null_fd >= 0)
        ^
/datasets/git/run-command.c:938:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (cmd->pid < 0) {
        ^
/datasets/git/run-command.c:941:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (need_in)
                ^
/datasets/git/run-command.c:943:8: note: +1, nesting level increased to 2
                else if (cmd->in)
                     ^
/datasets/git/run-command.c:945:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (need_out)
                ^
/datasets/git/run-command.c:947:8: note: +1, nesting level increased to 2
                else if (cmd->out)
                     ^
/datasets/git/run-command.c:949:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (need_err)
                ^
/datasets/git/run-command.c:951:8: note: +1, nesting level increased to 2
                else if (cmd->err)
                     ^
/datasets/git/run-command.c:958:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (need_in)
        ^
/datasets/git/run-command.c:960:7: note: +1, nesting level increased to 1
        else if (cmd->in)
             ^
/datasets/git/run-command.c:963:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (need_out)
        ^
/datasets/git/run-command.c:965:7: note: +1, nesting level increased to 1
        else if (cmd->out)
             ^
/datasets/git/run-command.c:968:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (need_err)
        ^
/datasets/git/run-command.c:970:7: note: +1, nesting level increased to 1
        else if (cmd->err)
             ^
/datasets/git/run-command.c:661:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int need_in, need_out, need_err;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/run-command.c:661:6: warning: variable 'need_in' is not initialized [cppcoreguidelines-init-variables]
        int need_in, need_out, need_err;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/run-command.c:661:15: warning: variable 'need_out' is not initialized [cppcoreguidelines-init-variables]
        int need_in, need_out, need_err;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/run-command.c:661:25: warning: variable 'need_err' is not initialized [cppcoreguidelines-init-variables]
        int need_in, need_out, need_err;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/run-command.c:662:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int fdin[2], fdout[2], fderr[2];
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/run-command.c:663:6: warning: variable 'failed_errno' is not initialized [cppcoreguidelines-init-variables]
        int failed_errno;
            ^
                         = 0
/datasets/git/run-command.c:664:8: warning: variable 'str' is not initialized [cppcoreguidelines-init-variables]
        char *str;
              ^
                  = NULL
/datasets/git/run-command.c:673:7: warning: prefer pipe2() with O_CLOEXEC to avoid leaking file descriptors to child processes [android-cloexec-pipe]
                if (pipe(fdin) < 0) {
                    ^~~~~~~~~~
                    pipe2(fdin, O_CLOEXEC)
/datasets/git/run-command.c:675:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (cmd->out > 0)
                                         ^
                                          {
/datasets/git/run-command.c:687:7: warning: prefer pipe2() with O_CLOEXEC to avoid leaking file descriptors to child processes [android-cloexec-pipe]
                if (pipe(fdout) < 0) {
                    ^~~~~~~~~~~
                    pipe2(fdout, O_CLOEXEC)
/datasets/git/run-command.c:689:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (need_in)
                                    ^
                                     {
/datasets/git/run-command.c:691:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (cmd->in)
                                         ^
                                          {
/datasets/git/run-command.c:701:7: warning: prefer pipe2() with O_CLOEXEC to avoid leaking file descriptors to child processes [android-cloexec-pipe]
                if (pipe(fderr) < 0) {
                    ^~~~~~~~~~~
                    pipe2(fderr, O_CLOEXEC)
/datasets/git/run-command.c:703:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (need_in)
                                    ^
                                     {
/datasets/git/run-command.c:705:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (cmd->in)
                                         ^
                                          {
/datasets/git/run-command.c:707:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (need_out)
                                     ^
                                      {
/datasets/git/run-command.c:709:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (cmd->out)
                                          ^
                                           {
/datasets/git/run-command.c:714:26: warning: function is not thread safe [concurrency-mt-unsafe]
                                str, cmd->args.v[0], strerror(failed_errno));
                                                     ^
/datasets/git/run-command.c:725:2: warning: the value returned by this function should be used [cert-err33-c]
        fflush(NULL);
        ^~~~~~~~~~~~
/datasets/git/run-command.c:725:2: note: cast the expression to void to silence this warning
/datasets/git/run-command.c:727:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cmd->close_object_store)
                                    ^
                                     {
/datasets/git/run-command.c:734:9: warning: variable 'childenv' is not initialized [cppcoreguidelines-init-variables]
        char **childenv;
               ^
                        = NULL
/datasets/git/run-command.c:737:22: warning: variable name 'as' is too short, expected at least 3 characters [readability-identifier-length]
        struct atfork_state as;
                            ^
/datasets/git/run-command.c:742:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!cmd->silent_exec_failure)
                                              ^
                                               {
/datasets/git/run-command.c:747:6: warning: prefer pipe2() with O_CLOEXEC to avoid leaking file descriptors to child processes [android-cloexec-pipe]
        if (pipe(notify_pipe))
            ^~~~~~~~~~~~~~~~~
            pipe2(notify_pipe, O_CLOEXEC)
/datasets/git/run-command.c:747:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pipe(notify_pipe))
                              ^
                               {
/datasets/git/run-command.c:770:7: warning: variable 'sig' is not initialized [cppcoreguidelines-init-variables]
                int sig;
                    ^
                        = 0
/datasets/git/run-command.c:783:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cmd->no_stdin)
                                  ^
                                   {
/datasets/git/run-command.c:793:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cmd->no_stderr)
                                   ^
                                    {
/datasets/git/run-command.c:803:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cmd->no_stdout)
                                   ^
                                    {
/datasets/git/run-command.c:805:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (cmd->stdout_to_stderr)
                                               ^
                                                {
/datasets/git/run-command.c:815:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cmd->dir && chdir(cmd->dir))
                                                ^
                                                 {
/datasets/git/run-command.c:822:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (sig = 1; sig < NSIG; sig++) {
                ^
/datasets/git/run-command.c:824:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (signal(sig, SIG_DFL) == SIG_IGN)
                                                            ^
                                                             {
/datasets/git/run-command.c:825:5: warning: the value returned by this function should be used [cert-err33-c]
                                signal(sig, SIG_IGN);
                                ^~~~~~~~~~~~~~~~~~~~
/datasets/git/run-command.c:825:5: note: cast the expression to void to silence this warning
/datasets/git/run-command.c:828:7: warning: function is not thread safe [concurrency-mt-unsafe]
                if (sigprocmask(SIG_SETMASK, &as.old, NULL) != 0)
                    ^
/datasets/git/run-command.c:828:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (sigprocmask(SIG_SETMASK, &as.old, NULL) != 0)
                                                                 ^
                                                                  {
/datasets/git/run-command.c:839:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (errno == ENOEXEC)
                                     ^
                                      {
/datasets/git/run-command.c:844:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (cmd->silent_exec_failure)
                                                     ^
                                                      {
/datasets/git/run-command.c:852:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cmd->pid < 0)
                         ^
                          {
/datasets/git/run-command.c:854:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (cmd->clean_on_exit)
                                    ^
                                     {
/datasets/git/run-command.c:877:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (null_fd >= 0)
                         ^
                          {
/datasets/git/run-command.c:941:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (need_in)
                            ^
                             {
/datasets/git/run-command.c:943:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (cmd->in)
                                 ^
                                  {
/datasets/git/run-command.c:945:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (need_out)
                             ^
                              {
/datasets/git/run-command.c:947:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (cmd->out)
                                  ^
                                   {
/datasets/git/run-command.c:949:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (need_err)
                             ^
                              {
/datasets/git/run-command.c:951:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (cmd->err)
                                  ^
                                   {
/datasets/git/run-command.c:958:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (need_in)
                    ^
                     {
/datasets/git/run-command.c:960:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (cmd->in)
                         ^
                          {
/datasets/git/run-command.c:963:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (need_out)
                     ^
                      {
/datasets/git/run-command.c:965:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (cmd->out)
                          ^
                           {
/datasets/git/run-command.c:968:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (need_err)
                     ^
                      {
/datasets/git/run-command.c:970:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (cmd->err)
                          ^
                           {
/datasets/git/run-command.c:988:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret != -1)
                      ^
                       {
/datasets/git/run-command.c:996:6: warning: variable 'code' is not initialized [cppcoreguidelines-init-variables]
        int code;
            ^
                 = 0
/datasets/git/run-command.c:998:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cmd->out < 0 || cmd->err < 0)
                                         ^
                                          {
/datasets/git/run-command.c:1002:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (code)
                 ^
                  {
/datasets/git/run-command.c:1008:18: warning: variable 'main_thread' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static pthread_t main_thread;
                 ^
/datasets/git/run-command.c:1009:12: warning: variable 'main_thread_set' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int main_thread_set;
           ^
/datasets/git/run-command.c:1010:22: warning: variable 'async_key' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static pthread_key_t async_key;
                     ^
/datasets/git/run-command.c:1011:22: warning: variable 'async_die_counter' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static pthread_key_t async_die_counter;
                     ^
/datasets/git/run-command.c:1016:11: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        intptr_t ret;
                 ^
                     = 0
/datasets/git/run-command.c:1022:47: warning: the comparison always evaluates to false because pthread_sigmask always returns non-negative values [bugprone-posix-return]
                if (pthread_sigmask(SIG_BLOCK, &mask, NULL) < 0) {
                                                            ^
                                                            >
/datasets/git/run-command.c:1024:11: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
                        return (void *)ret;
                               ^
/datasets/git/run-command.c:1030:9: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
        return (void *)ret;
               ^
/datasets/git/run-command.c:1041:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (async->proc_in >= 0)
                                        ^
                                         {
/datasets/git/run-command.c:1043:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (async->proc_out >= 0)
                                         ^
                                          {
/datasets/git/run-command.c:1045:24: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                pthread_exit((void *)128);
                                     ^
/datasets/git/run-command.c:1048:2: warning: function is not thread safe [concurrency-mt-unsafe]
        exit(128);
        ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/run-command.c:1060:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!main_thread_set)
                             ^
                              {
/datasets/git/run-command.c:1067:15: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
        pthread_exit((void *)(intptr_t)code);
                     ^
/datasets/git/run-command.c:1125:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (in_async())
                               ^
                                {
/datasets/git/run-command.c:1126:15: warning: 141 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        async_exit(141);
                                   ^
/datasets/git/run-command.c:1128:3: warning: the value returned by this function should be used [cert-err33-c]
                signal(SIGPIPE, SIG_DFL);
                ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/run-command.c:1128:3: note: cast the expression to void to silence this warning
/datasets/git/run-command.c:1129:3: warning: the value returned by this function should be used [cert-err33-c]
                raise(SIGPIPE);
                ^~~~~~~~~~~~~~
/datasets/git/run-command.c:1129:3: note: cast the expression to void to silence this warning
/datasets/git/run-command.c:1131:3: warning: function is not thread safe [concurrency-mt-unsafe]
                exit(141);
                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/run-command.c:1135:5: warning: function 'start_async' has cognitive complexity of 28 (threshold 25) [readability-function-cognitive-complexity]
int start_async(struct async *async)
    ^
/datasets/git/run-command.c:1142:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (need_in) {
        ^
/datasets/git/run-command.c:1143:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (pipe(fdin) < 0) {
                ^
/datasets/git/run-command.c:1144:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (async->out > 0)
                        ^
/datasets/git/run-command.c:1152:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (need_out) {
        ^
/datasets/git/run-command.c:1153:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (pipe(fdout) < 0) {
                ^
/datasets/git/run-command.c:1154:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (need_in)
                        ^
/datasets/git/run-command.c:1156:9: note: +1, nesting level increased to 3
                        else if (async->in)
                             ^
/datasets/git/run-command.c:1163:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (need_in)
        ^
/datasets/git/run-command.c:1165:7: note: +1, nesting level increased to 1
        else if (async->in)
             ^
/datasets/git/run-command.c:1167:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/run-command.c:1170:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (need_out)
        ^
/datasets/git/run-command.c:1172:7: note: +1, nesting level increased to 1
        else if (async->out)
             ^
/datasets/git/run-command.c:1174:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/run-command.c:1208:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!main_thread_set) {
        ^
/datasets/git/run-command.c:1221:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (proc_in >= 0)
        ^
/datasets/git/run-command.c:1223:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (proc_out >= 0)
        ^
/datasets/git/run-command.c:1229:3: note: +1, including nesting penalty of 0, nesting level increased to 1
                if (err) {
                ^
/datasets/git/run-command.c:1231:4: note: +1
                        goto error;
                        ^
/datasets/git/run-command.c:1238:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (need_in)
        ^
/datasets/git/run-command.c:1240:7: note: +1, nesting level increased to 1
        else if (async->in)
             ^
/datasets/git/run-command.c:1243:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (need_out)
        ^
/datasets/git/run-command.c:1245:7: note: +1, nesting level increased to 1
        else if (async->out)
             ^
/datasets/git/run-command.c:1137:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int need_in, need_out;
        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/run-command.c:1137:6: warning: variable 'need_in' is not initialized [cppcoreguidelines-init-variables]
        int need_in, need_out;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/run-command.c:1137:15: warning: variable 'need_out' is not initialized [cppcoreguidelines-init-variables]
        int need_in, need_out;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/run-command.c:1138:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int fdin[2], fdout[2];
        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/run-command.c:1139:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int proc_in, proc_out;
        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/run-command.c:1139:6: warning: variable 'proc_in' is not initialized [cppcoreguidelines-init-variables]
        int proc_in, proc_out;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/run-command.c:1139:15: warning: variable 'proc_out' is not initialized [cppcoreguidelines-init-variables]
        int proc_in, proc_out;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/run-command.c:1143:7: warning: prefer pipe2() with O_CLOEXEC to avoid leaking file descriptors to child processes [android-cloexec-pipe]
                if (pipe(fdin) < 0) {
                    ^~~~~~~~~~
                    pipe2(fdin, O_CLOEXEC)
/datasets/git/run-command.c:1144:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (async->out > 0)
                                           ^
                                            {
/datasets/git/run-command.c:1153:7: warning: prefer pipe2() with O_CLOEXEC to avoid leaking file descriptors to child processes [android-cloexec-pipe]
                if (pipe(fdout) < 0) {
                    ^~~~~~~~~~~
                    pipe2(fdout, O_CLOEXEC)
/datasets/git/run-command.c:1154:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (need_in)
                                    ^
                                     {
/datasets/git/run-command.c:1156:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (async->in)
                                           ^
                                            {
/datasets/git/run-command.c:1163:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (need_in)
                    ^
                     {
/datasets/git/run-command.c:1165:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (async->in)
                           ^
                            {
/datasets/git/run-command.c:1167:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/run-command.c:1170:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (need_out)
                     ^
                      {
/datasets/git/run-command.c:1172:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (async->out)
                            ^
                             {
/datasets/git/run-command.c:1174:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/run-command.c:1221:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (proc_in >= 0)
                         ^
                          {
/datasets/git/run-command.c:1223:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (proc_out >= 0)
                          ^
                           {
/datasets/git/run-command.c:1230:47: warning: function is not thread safe [concurrency-mt-unsafe]
                        error(_("cannot create async thread: %s"), strerror(err));
                                                                   ^
/datasets/git/run-command.c:1238:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (need_in)
                    ^
                     {
/datasets/git/run-command.c:1240:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (async->in)
                           ^
                            {
/datasets/git/run-command.c:1243:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (need_out)
                     ^
                      {
/datasets/git/run-command.c:1245:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (async->out)
                            ^
                             {
/datasets/git/run-command.c:1259:14: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
        void *ret = (void *)(intptr_t)(-1);
                    ^
/datasets/git/run-command.c:1261:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pthread_join(async->tid, &ret))
                                           ^
                                            {
/datasets/git/run-command.c:1278:8: warning: accessing fields in struct 'io_pump' is inefficient due to padding; only needs 36 bytes but is using 40 bytes [altera-struct-pack-align]
struct io_pump {
       ^
/datasets/git/run-command.c:1278:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'io_pump'
/datasets/git/run-command.c:1278:8: warning: accessing fields in struct 'io_pump' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct io_pump {
       ^
/datasets/git/run-command.c:1278:8: note: use "__attribute__((aligned(64)))" to align struct 'io_pump' to 64 bytes
/datasets/git/run-command.c:1283:3: warning: accessing fields in struct '' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
                struct {
                ^
/datasets/git/run-command.c:1283:3: note: use "__attribute__((aligned(16)))" to align struct '' to 16 bytes
/datasets/git/run-command.c:1287:3: warning: accessing fields in struct '' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
                struct {
                ^
/datasets/git/run-command.c:1287:3: note: use "__attribute__((aligned(16)))" to align struct '' to 16 bytes
/datasets/git/run-command.c:1300:12: warning: function 'pump_io_round' has cognitive complexity of 38 (threshold 25) [readability-function-cognitive-complexity]
static int pump_io_round(struct io_pump *slots, int nr, struct pollfd *pfd)
           ^
/datasets/git/run-command.c:1305:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < nr; i++) {
        ^
/datasets/git/run-command.c:1307:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (io->fd < 0)
                ^
/datasets/git/run-command.c:1314:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!pollsize)
        ^
/datasets/git/run-command.c:1317:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (poll(pfd, pollsize, -1) < 0) {
        ^
/datasets/git/run-command.c:1318:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (errno == EINTR)
                ^
/datasets/git/run-command.c:1323:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < nr; i++) {
        ^
/datasets/git/run-command.c:1326:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (io->fd < 0)
                ^
/datasets/git/run-command.c:1329:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!(io->pfd->revents & (POLLOUT|POLLIN|POLLHUP|POLLERR|POLLNVAL)))
                ^
/datasets/git/run-command.c:1332:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (io->type == POLLOUT) {
                ^
/datasets/git/run-command.c:1343:38: note: +3, including nesting penalty of 2, nesting level increased to 3
                                    io->u.out.len <= MAX_IO_SIZE ?
                                                                 ^
/datasets/git/run-command.c:1345:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (len < 0) {
                        ^
/datasets/git/run-command.c:1346:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (errno != EINTR && errno != EAGAIN &&
                                ^
/datasets/git/run-command.c:1346:43: note: +1
                                if (errno != EINTR && errno != EAGAIN &&
                                                                      ^
/datasets/git/run-command.c:1352:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/run-command.c:1355:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!io->u.out.len) {
                                ^
/datasets/git/run-command.c:1362:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (io->type == POLLIN) {
                ^
/datasets/git/run-command.c:1365:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (len < 0)
                        ^
/datasets/git/run-command.c:1367:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (len <= 0) {
                        ^
/datasets/git/run-command.c:1300:53: warning: parameter name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
static int pump_io_round(struct io_pump *slots, int nr, struct pollfd *pfd)
                                                    ^
/datasets/git/run-command.c:1303:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/run-command.c:1303:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/run-command.c:1305:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr; i++) {
        ^
/datasets/git/run-command.c:1306:19: warning: variable name 'io' is too short, expected at least 3 characters [readability-identifier-length]
                struct io_pump *io = &slots[i];
                                ^
/datasets/git/run-command.c:1307:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (io->fd < 0)
                               ^
                                {
/datasets/git/run-command.c:1310:26: warning: narrowing conversion from 'int' to signed type 'short' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                pfd[pollsize].events = io->type;
                                       ^
/datasets/git/run-command.c:1314:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!pollsize)
                      ^
                       {
/datasets/git/run-command.c:1318:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (errno == EINTR)
                                   ^
                                    {
/datasets/git/run-command.c:1323:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr; i++) {
        ^
/datasets/git/run-command.c:1324:19: warning: variable name 'io' is too short, expected at least 3 characters [readability-identifier-length]
                struct io_pump *io = &slots[i];
                                ^
/datasets/git/run-command.c:1326:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (io->fd < 0)
                               ^
                                {
/datasets/git/run-command.c:1329:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(io->pfd->revents & (POLLOUT|POLLIN|POLLHUP|POLLERR|POLLNVAL)))
                      ^~~~~~~~~~~~~~~~
/datasets/git/run-command.c:1329:71: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(io->pfd->revents & (POLLOUT|POLLIN|POLLHUP|POLLERR|POLLNVAL)))
                                                                                    ^
                                                                                     {
/datasets/git/run-command.c:1333:12: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
                        ssize_t len;
                                ^
                                    = 0
/datasets/git/run-command.c:1343:26: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                                    io->u.out.len <= MAX_IO_SIZE ?
                                                     ^
/datasets/git/./git-compat-util.h:1041:23: note: expanded from macro 'MAX_IO_SIZE'
#  define MAX_IO_SIZE MAX_IO_SIZE_DEFAULT
                      ^
/datasets/git/./git-compat-util.h:1037:31: note: expanded from macro 'MAX_IO_SIZE_DEFAULT'
# define MAX_IO_SIZE_DEFAULT (8*1024*1024)
                              ^
/datasets/git/run-command.c:1343:26: note: make conversion explicit to silence this warning
                                    io->u.out.len <= MAX_IO_SIZE ?
                                                     ^
/datasets/git/./git-compat-util.h:1041:23: note: expanded from macro 'MAX_IO_SIZE'
#  define MAX_IO_SIZE MAX_IO_SIZE_DEFAULT
                      ^~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1037:31: note: expanded from macro 'MAX_IO_SIZE_DEFAULT'
# define MAX_IO_SIZE_DEFAULT (8*1024*1024)
                              ^~~~~~~~~~~
/datasets/git/run-command.c:1343:26: note: perform multiplication in a wider type
                                    io->u.out.len <= MAX_IO_SIZE ?
                                                     ^
/datasets/git/./git-compat-util.h:1041:23: note: expanded from macro 'MAX_IO_SIZE'
#  define MAX_IO_SIZE MAX_IO_SIZE_DEFAULT
                      ^~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1037:31: note: expanded from macro 'MAX_IO_SIZE_DEFAULT'
# define MAX_IO_SIZE_DEFAULT (8*1024*1024)
                              ^~~~~~
/datasets/git/run-command.c:1344:25: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                                    io->u.out.len : MAX_IO_SIZE);
                                                    ^
/datasets/git/./git-compat-util.h:1041:23: note: expanded from macro 'MAX_IO_SIZE'
#  define MAX_IO_SIZE MAX_IO_SIZE_DEFAULT
                      ^
/datasets/git/./git-compat-util.h:1037:31: note: expanded from macro 'MAX_IO_SIZE_DEFAULT'
# define MAX_IO_SIZE_DEFAULT (8*1024*1024)
                              ^
/datasets/git/run-command.c:1344:25: note: make conversion explicit to silence this warning
                                    io->u.out.len : MAX_IO_SIZE);
                                                    ^
/datasets/git/./git-compat-util.h:1041:23: note: expanded from macro 'MAX_IO_SIZE'
#  define MAX_IO_SIZE MAX_IO_SIZE_DEFAULT
                      ^~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1037:31: note: expanded from macro 'MAX_IO_SIZE_DEFAULT'
# define MAX_IO_SIZE_DEFAULT (8*1024*1024)
                              ^~~~~~~~~~~
/datasets/git/run-command.c:1344:25: note: perform multiplication in a wider type
                                    io->u.out.len : MAX_IO_SIZE);
                                                    ^
/datasets/git/./git-compat-util.h:1041:23: note: expanded from macro 'MAX_IO_SIZE'
#  define MAX_IO_SIZE MAX_IO_SIZE_DEFAULT
                      ^~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1037:31: note: expanded from macro 'MAX_IO_SIZE_DEFAULT'
# define MAX_IO_SIZE_DEFAULT (8*1024*1024)
                              ^~~~~~
/datasets/git/run-command.c:1365:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (len < 0)
                                    ^
                                     {
/datasets/git/run-command.c:1377:47: warning: parameter name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
static int pump_io(struct io_pump *slots, int nr)
                                              ^
/datasets/git/run-command.c:1379:17: warning: variable 'pfd' is not initialized [cppcoreguidelines-init-variables]
        struct pollfd *pfd;
                       ^
                           = NULL
/datasets/git/run-command.c:1380:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/run-command.c:1380:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/run-command.c:1382:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr; i++)
        ^
/datasets/git/run-command.c:1382:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < nr; i++)
                                ^
                                 {
/datasets/git/run-command.c:1386:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (pump_io_round(slots, nr, pfd))
        ^
/datasets/git/run-command.c:1386:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (pump_io_round(slots, nr, pfd))
                                             ^
                                              {
/datasets/git/run-command.c:1391:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr; i++) {
        ^
/datasets/git/run-command.c:1402:16: warning: parameter name 'in' is too short, expected at least 3 characters [readability-identifier-length]
                 const char *in, size_t in_len,
                             ^
/datasets/git/run-command.c:1406:17: warning: variable name 'io' is too short, expected at least 3 characters [readability-identifier-length]
        struct io_pump io[3];
                       ^
/datasets/git/run-command.c:1407:6: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
        int nr = 0;
            ^
/datasets/git/run-command.c:1409:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (in)
               ^
                {
/datasets/git/run-command.c:1411:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (out)
                ^
                 {
/datasets/git/run-command.c:1413:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err)
                ^
                 {
/datasets/git/run-command.c:1416:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (start_command(cmd) < 0)
                                   ^
                                    {
/datasets/git/run-command.c:1423:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (out)
                                ^
                                 {
/datasets/git/run-command.c:1425:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (err)
                                ^
                                 {
/datasets/git/run-command.c:1464:8: warning: accessing fields in struct 'parallel_processes' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct parallel_processes {
       ^
/datasets/git/run-command.c:1464:8: note: use "__attribute__((aligned(64)))" to align struct 'parallel_processes' to 64 bytes
/datasets/git/run-command.c:1467:2: warning: accessing fields in struct '' is inefficient due to padding; only needs 156 bytes but is using 160 bytes [altera-struct-pack-align]
        struct {
        ^
/datasets/git/run-command.c:1467:2: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct ''
/datasets/git/run-command.c:1467:2: warning: accessing fields in struct '' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
        struct {
        ^
/datasets/git/run-command.c:1467:2: note: use "__attribute__((aligned(128)))" to align struct '' to 128 bytes
/datasets/git/run-command.c:1485:8: warning: accessing fields in struct 'parallel_processes_for_signal' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct parallel_processes_for_signal {
       ^
/datasets/git/run-command.c:1485:8: note: use "__attribute__((aligned(16)))" to align struct 'parallel_processes_for_signal' to 16 bytes
/datasets/git/run-command.c:1490:60: warning: parameter name 'pp' is too short, expected at least 3 characters [readability-identifier-length]
static void kill_children(const struct parallel_processes *pp,
                                                           ^
/datasets/git/run-command.c:1494:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (size_t i = 0; i < opts->processes; i++)
        ^
/datasets/git/run-command.c:1494:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (size_t i = 0; i < opts->processes; i++)
                                                    ^
                                                     {
/datasets/git/run-command.c:1495:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pp->children[i].state == GIT_CP_WORKING)
                                                            ^
                                                             {
/datasets/git/run-command.c:1505:46: warning: variable 'pp_for_signal' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct parallel_processes_for_signal *pp_for_signal;
                                             ^
/datasets/git/run-command.c:1505:46: warning: variable 'pp_for_signal' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/run-command.c:1511:2: warning: the value returned by this function should be used [cert-err33-c]
        raise(signo);
        ^~~~~~~~~~~~
/datasets/git/run-command.c:1511:2: note: cast the expression to void to silence this warning
/datasets/git/run-command.c:1514:48: warning: parameter name 'pp' is too short, expected at least 3 characters [readability-identifier-length]
static void pp_init(struct parallel_processes *pp,
                                               ^
/datasets/git/run-command.c:1518:15: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
        const size_t n = opts->processes;
                     ^
/datasets/git/run-command.c:1520:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!n)
               ^
                {
/datasets/git/run-command.c:1523:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf("run_processes_parallel: preparing to run up to %"PRIuMAX" tasks",
        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/run-command.c:1526:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opts->get_next_task)
                                 ^
                                  {
/datasets/git/run-command.c:1530:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opts->ungroup)
                           ^
                            {
/datasets/git/run-command.c:1533:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (size_t i = 0; i < n; i++) {
        ^
/datasets/git/run-command.c:1533:21: warning: backward branch (for loop) is ID-dependent due to variable reference to 'n' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (size_t i = 0; i < n; i++) {
                           ^
/datasets/git/run-command.c:1548:51: warning: parameter name 'pp' is too short, expected at least 3 characters [readability-identifier-length]
static void pp_cleanup(struct parallel_processes *pp,
                                                  ^
/datasets/git/run-command.c:1551:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf("run_processes_parallel: done");
        ^
/datasets/git/./trace.h:166:27: note: expanded from macro 'trace_printf'
#define trace_printf(...) trace_printf_key(&trace_default_key, __VA_ARGS__)
                          ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/run-command.c:1552:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (size_t i = 0; i < opts->processes; i++) {
        ^
/datasets/git/run-command.c:1577:52: warning: parameter name 'pp' is too short, expected at least 3 characters [readability-identifier-length]
static int pp_start_one(struct parallel_processes *pp,
                                                   ^
/datasets/git/run-command.c:1580:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i;
               ^
                 = 0
/datasets/git/run-command.c:1580:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/run-command.c:1581:6: warning: variable 'code' is not initialized [cppcoreguidelines-init-variables]
        int code;
            ^
                 = 0
/datasets/git/run-command.c:1583:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < opts->processes; i++)
        ^
/datasets/git/run-command.c:1583:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < opts->processes; i++)
                                             ^
                                              {
/datasets/git/run-command.c:1584:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pp->children[i].state == GIT_CP_FREE)
                                                         ^
                                                          {
/datasets/git/run-command.c:1586:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (i == opts->processes)
                                 ^
                                  {
/datasets/git/run-command.c:1607:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opts->start_failure)
                                        ^
                                         {
/datasets/git/run-command.c:1612:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/run-command.c:1619:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (code)
                         ^
                          {
/datasets/git/run-command.c:1626:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pp->pfd)
                    ^
                     {
/datasets/git/run-command.c:1631:57: warning: parameter name 'pp' is too short, expected at least 3 characters [readability-identifier-length]
static void pp_buffer_stderr(struct parallel_processes *pp,
                                                        ^
/datasets/git/run-command.c:1635:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int i;
        ^
/datasets/git/run-command.c:1635:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/run-command.c:1635:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/run-command.c:1637:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((i = poll(pp->pfd, opts->processes, output_timeout) < 0)) {
        ^
/datasets/git/run-command.c:1637:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((i = poll(pp->pfd, opts->processes, output_timeout) < 0)) {
               ^
/datasets/git/run-command.c:1637:10: warning: Although the value stored to 'i' is used in the enclosing expression, the value is never actually read from 'i' [clang-analyzer-deadcode.DeadStores]
        while ((i = poll(pp->pfd, opts->processes, output_timeout) < 0)) {
                ^   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/run-command.c:1637:10: note: Although the value stored to 'i' is used in the enclosing expression, the value is never actually read from 'i'
        while ((i = poll(pp->pfd, opts->processes, output_timeout) < 0)) {
                ^   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/run-command.c:1638:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (errno == EINTR)
                                   ^
                                    {
/datasets/git/run-command.c:1645:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (size_t i = 0; i < opts->processes; i++) {
        ^
/datasets/git/run-command.c:1647:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    pp->pfd[i].revents & (POLLIN | POLLHUP)) {
                    ^~~~~~~~~~~~~~~~~~
/datasets/git/run-command.c:1648:8: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
                        int n = strbuf_read_once(&pp->children[i].err,
                            ^
/datasets/git/run-command.c:1648:12: warning: narrowing conversion from 'ssize_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        int n = strbuf_read_once(&pp->children[i].err,
                                ^
/datasets/git/run-command.c:1653:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        } else if (n < 0)
                                         ^
                                          {
/datasets/git/run-command.c:1654:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (errno != EAGAIN)
                                                    ^
                                                     {
/datasets/git/run-command.c:1660:56: warning: parameter name 'pp' is too short, expected at least 3 characters [readability-identifier-length]
static void pp_output(const struct parallel_processes *pp)
                                                       ^
/datasets/git/run-command.c:1662:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        size_t i = pp->output_owner;
               ^
/datasets/git/run-command.c:1671:12: warning: function 'pp_collect_finished' has cognitive complexity of 31 (threshold 25) [readability-function-cognitive-complexity]
static int pp_collect_finished(struct parallel_processes *pp,
           ^
/datasets/git/run-command.c:1678:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (pp->nr_processes > 0) {
        ^
/datasets/git/run-command.c:1679:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < opts->processes; i++)
                ^
/datasets/git/run-command.c:1680:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (pp->children[i].state == GIT_CP_WAIT_CLEANUP)
                        ^
/datasets/git/run-command.c:1682:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (i == opts->processes)
                ^
/datasets/git/run-command.c:1687:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opts->task_finished)
                ^
/datasets/git/run-command.c:1688:51: note: +3, including nesting penalty of 2, nesting level increased to 3
                        code = opts->task_finished(code, opts->ungroup ? NULL :
                                                                       ^
/datasets/git/run-command.c:1691:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/run-command.c:1694:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (code)
                ^
/datasets/git/run-command.c:1696:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (code < 0)
                ^
/datasets/git/run-command.c:1701:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (pp->pfd)
                ^
/datasets/git/run-command.c:1705:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opts->ungroup) {
                ^
/datasets/git/run-command.c:1707:10: note: +1, nesting level increased to 2
                } else if (i != pp->output_owner) {
                       ^
/datasets/git/run-command.c:1710:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/run-command.c:1728:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (i = 0; i < n; i++)
                        ^
/datasets/git/run-command.c:1729:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (pp->children[(pp->output_owner + i) % n].state == GIT_CP_WORKING)
                                ^
/datasets/git/run-command.c:1671:59: warning: parameter name 'pp' is too short, expected at least 3 characters [readability-identifier-length]
static int pp_collect_finished(struct parallel_processes *pp,
                                                          ^
/datasets/git/run-command.c:1674:6: warning: variable 'code' is not initialized [cppcoreguidelines-init-variables]
        int code;
            ^
                 = 0
/datasets/git/run-command.c:1675:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i;
               ^
                 = 0
/datasets/git/run-command.c:1675:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/run-command.c:1679:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < opts->processes; i++)
                ^
/datasets/git/run-command.c:1679:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < opts->processes; i++)
                                                     ^
                                                      {
/datasets/git/run-command.c:1680:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (pp->children[i].state == GIT_CP_WAIT_CLEANUP)
                                                                         ^
                                                                          {
/datasets/git/run-command.c:1682:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (i == opts->processes)
                                         ^
                                          {
/datasets/git/run-command.c:1687:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opts->task_finished)
                                        ^
                                         {
/datasets/git/run-command.c:1691:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/run-command.c:1694:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (code)
                         ^
                          {
/datasets/git/run-command.c:1696:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (code < 0)
                             ^
                              {
/datasets/git/run-command.c:1701:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pp->pfd)
                            ^
                             {
/datasets/git/run-command.c:1711:17: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
                        const size_t n = opts->processes;
                                     ^
/datasets/git/run-command.c:1728:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = 0; i < n; i++)
                        ^
/datasets/git/run-command.c:1728:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'n' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (i = 0; i < n; i++)
                                    ^
/datasets/git/run-command.c:1728:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (i = 0; i < n; i++)
                                               ^
                                                {
/datasets/git/run-command.c:1729:74: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (pp->children[(pp->output_owner + i) % n].state == GIT_CP_WORKING)
                                                                                                     ^
                                                                                                      {
/datasets/git/run-command.c:1737:6: warning: function 'run_processes_parallel' has cognitive complexity of 26 (threshold 25) [readability-function-cognitive-complexity]
void run_processes_parallel(const struct run_process_parallel_opts *opts)
     ^
/datasets/git/run-command.c:1749:37: note: +1
        const int do_trace2 = tr2_category && tr2_label;
                                           ^
/datasets/git/run-command.c:1751:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (do_trace2)
        ^
/datasets/git/run-command.c:1756:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (1) {
        ^
/datasets/git/run-command.c:1757:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0;
                ^
/datasets/git/run-command.c:1758:37: note: +1
                    i < spawn_cap && !pp.shutdown &&
                                                  ^
/datasets/git/run-command.c:1762:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!code)
                        ^
/datasets/git/run-command.c:1764:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (code < 0) {
                        ^
/datasets/git/run-command.c:1770:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!pp.nr_processes)
                ^
/datasets/git/run-command.c:1772:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opts->ungroup) {
                ^
/datasets/git/run-command.c:1773:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (size_t i = 0; i < opts->processes; i++)
                        ^
/datasets/git/run-command.c:1775:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/run-command.c:1780:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (code) {
                ^
/datasets/git/run-command.c:1782:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (code < 0)
                        ^
/datasets/git/run-command.c:1789:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (do_trace2)
        ^
/datasets/git/run-command.c:1739:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, code;
        ^~~~~~~~~~~~
/datasets/git/run-command.c:1739:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, code;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/run-command.c:1739:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/run-command.c:1739:9: warning: variable 'code' is not initialized [cppcoreguidelines-init-variables]
        int i, code;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/run-command.c:1740:23: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        int output_timeout = 100;
                             ^
/datasets/git/run-command.c:1743:28: warning: variable name 'pp' is too short, expected at least 3 characters [readability-identifier-length]
        struct parallel_processes pp = {
                                  ^
/datasets/git/run-command.c:1743:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct parallel_processes pp = {
        ^
/datasets/git/run-command.c:1751:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (do_trace2)
                      ^
                       {
/datasets/git/run-command.c:1757:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0;
                ^
/datasets/git/run-command.c:1758:7: warning: backward branch (for loop) is ID-dependent due to variable reference to 'pp' and may cause performance degradation [altera-id-dependent-backward-branch]
                    i < spawn_cap && !pp.shutdown &&
                    ^
/datasets/git/run-command.c:1762:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!code)
                                  ^
                                   {
/datasets/git/run-command.c:1770:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!pp.nr_processes)
                                     ^
                                      {
/datasets/git/run-command.c:1773:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (size_t i = 0; i < opts->processes; i++)
                        ^
/datasets/git/run-command.c:1773:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (size_t i = 0; i < opts->processes; i++)
                                                                    ^
                                                                     {
/datasets/git/run-command.c:1782:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (code < 0)
                                     ^
                                      {
/datasets/git/run-command.c:1789:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (do_trace2)
                      ^
                       {
/datasets/git/run-command.c:1795:6: warning: variable 'enabled' is not initialized [cppcoreguidelines-init-variables]
        int enabled;
            ^
                    = 0
/datasets/git/run-command.c:1812:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        const char * const *var;
        ^
/datasets/git/run-command.c:1799:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !enabled)
                     ^
                      {
/datasets/git/run-command.c:1812:22: warning: variable 'var' is not initialized [cppcoreguidelines-init-variables]
        const char * const *var;
                            ^
                                = NULL
/datasets/git/run-command.c:1814:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (var = local_repo_env; *var; var++) {
        ^
/datasets/git/run-command.c:1814:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'var' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (var = local_repo_env; *var; var++) {
                                   ^
/datasets/git/run-command.c:1815:7: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (strcmp(*var, CONFIG_DATA_ENVIRONMENT) &&
                    ^
                                                          != 0
/datasets/git/run-command.c:1816:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    strcmp(*var, CONFIG_COUNT_ENVIRONMENT))
                                                           ^
                                                            {
/datasets/git/run-command.c:1828:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/run-command.c:1829:6: warning: variable 'wait_status' is not initialized [cppcoreguidelines-init-variables]
        int wait_status;
            ^
                        = 0
/datasets/git/run-command.c:1830:8: warning: variable 'pid_seen' is not initialized [cppcoreguidelines-init-variables]
        pid_t pid_seen;
              ^
                       = 0
/datasets/git/run-command.c:1831:9: warning: variable 'time_limit' is not initialized [cppcoreguidelines-init-variables]
        time_t time_limit;
               ^
                          = 0
/datasets/git/run-command.c:1839:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cmd->clean_on_exit)
                               ^
                                {
/datasets/git/run-command.c:1842:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!cmd->trace2_child_class)
                                     ^
                                      {
/datasets/git/run-command.c:1862:2: warning: the value returned by this function should be used [cert-err33-c]
        time(&time_limit);
        ^~~~~~~~~~~~~~~~~
/datasets/git/run-command.c:1862:2: note: cast the expression to void to silence this warning
/datasets/git/run-command.c:1887:11: warning: variable 'now' is not initialized [cppcoreguidelines-init-variables]
                        time_t now;
                               ^
                                   = 0
/datasets/git/run-command.c:1889:4: warning: the value returned by this function should be used [cert-err33-c]
                        time(&now);
                        ^~~~~~~~~~
/datasets/git/run-command.c:1889:4: note: cast the expression to void to silence this warning
/datasets/git/run-command.c:1890:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (now < time_limit)
                                             ^
                                              {
/datasets/git/run-command.c:1929:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (WIFEXITED(wait_status))
                                           ^
                                            {
/datasets/git/run-command.c:1931:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (WIFSIGNALED(wait_status))
                                                  ^
                                                   {
/datasets/git/run-command.c:1932:41: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        child_code = WTERMSIG(wait_status) + 128;
                                                             ^
/datasets/git/run-command.c:1939:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (pid_seen < 0 && errno == EINTR)
                                                ^
                                                 {
/datasets/git/send-pack.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "cache.h"
/datasets/git/send-pack.c:42:60: warning: parameter name 'fh' is too short, expected at least 3 characters [readability-identifier-length]
static void feed_object(const struct object_id *oid, FILE *fh, int negative)
                                                           ^
/datasets/git/send-pack.c:46:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        OBJECT_INFO_SKIP_FETCH_OBJECT |
                                        ^
/datasets/git/./object-store.h:443:39: note: expanded from macro 'OBJECT_INFO_SKIP_FETCH_OBJECT'
#define OBJECT_INFO_SKIP_FETCH_OBJECT 32
                                      ^~
/datasets/git/./object-store.h:336:101: note: expanded from macro 'has_object_file_with_flags'
#define has_object_file_with_flags(oid, flags) repo_has_object_file_with_flags(the_repository, oid, flags)
                                                                                                    ^~~~~
/datasets/git/send-pack.c:47:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        OBJECT_INFO_QUICK))
                                                           ^
                                                            {
/datasets/git/send-pack.c:50:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (negative)
                     ^
                      {
/datasets/git/send-pack.c:51:3: warning: the value returned by this function should be used [cert-err33-c]
                putc('^', fh);
                ^~~~~~~~~~~~~
/datasets/git/send-pack.c:51:3: note: cast the expression to void to silence this warning
/datasets/git/send-pack.c:52:2: warning: the value returned by this function should be used [cert-err33-c]
        fputs(oid_to_hex(oid), fh);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/send-pack.c:52:2: note: cast the expression to void to silence this warning
/datasets/git/send-pack.c:53:2: warning: the value returned by this function should be used [cert-err33-c]
        putc('\n', fh);
        ^~~~~~~~~~~~~~
/datasets/git/send-pack.c:53:2: note: cast the expression to void to silence this warning
/datasets/git/send-pack.c:59:12: warning: function 'pack_objects' has cognitive complexity of 27 (threshold 25) [readability-function-cognitive-complexity]
static int pack_objects(int fd, struct ref *refs, struct oid_array *advertised,
           ^
/datasets/git/send-pack.c:77:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (args->use_thin_pack)
        ^
/datasets/git/send-pack.c:79:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (args->use_ofs_delta)
        ^
/datasets/git/send-pack.c:81:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (args->quiet || !args->progress)
        ^
/datasets/git/send-pack.c:81:18: note: +1
        if (args->quiet || !args->progress)
                        ^
/datasets/git/send-pack.c:83:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (args->progress)
        ^
/datasets/git/send-pack.c:85:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (is_repository_shallow(the_repository))
        ^
/datasets/git/send-pack.c:87:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (args->disable_bitmaps)
        ^
/datasets/git/send-pack.c:90:31: note: +1, including nesting penalty of 0, nesting level increased to 1
        po.out = args->stateless_rpc ? -1 : fd;
                                     ^
/datasets/git/send-pack.c:93:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (start_command(&po))
        ^
/datasets/git/send-pack.c:101:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < advertised->nr; i++)
        ^
/datasets/git/send-pack.c:103:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < negotiated->nr; i++)
        ^
/datasets/git/send-pack.c:106:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (refs) {
        ^
/datasets/git/send-pack.c:107:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!is_null_oid(&refs->old_oid))
                ^
/datasets/git/send-pack.c:109:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!is_null_oid(&refs->new_oid))
                ^
/datasets/git/send-pack.c:115:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ferror(po_in))
        ^
/datasets/git/send-pack.c:119:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (args->stateless_rpc) {
        ^
/datasets/git/send-pack.c:121:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (1) {
                ^
/datasets/git/send-pack.c:123:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (n <= 0)
                        ^
/datasets/git/send-pack.c:133:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (rc) {
        ^
/datasets/git/send-pack.c:142:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (rc > 128 && rc != 141)
                ^
/datasets/git/send-pack.c:142:16: note: +1
                if (rc > 128 && rc != 141)
                             ^
/datasets/git/send-pack.c:59:29: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
static int pack_objects(int fd, struct ref *refs, struct oid_array *advertised,
                            ^
/datasets/git/send-pack.c:68:23: warning: variable name 'po' is too short, expected at least 3 characters [readability-identifier-length]
        struct child_process po = CHILD_PROCESS_INIT;
                             ^
/datasets/git/send-pack.c:69:8: warning: variable 'po_in' is not initialized [cppcoreguidelines-init-variables]
        FILE *po_in;
              ^
                    = NULL
/datasets/git/send-pack.c:70:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/send-pack.c:70:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/send-pack.c:71:6: warning: variable 'rc' is not initialized [cppcoreguidelines-init-variables]
        int rc;
            ^
               = 0
/datasets/git/send-pack.c:71:6: warning: variable name 'rc' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/send-pack.c:77:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (args->use_thin_pack)
                                ^
                                 {
/datasets/git/send-pack.c:79:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (args->use_ofs_delta)
                                ^
                                 {
/datasets/git/send-pack.c:81:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (args->quiet || !args->progress)
                                           ^
                                            {
/datasets/git/send-pack.c:83:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (args->progress)
                           ^
                            {
/datasets/git/send-pack.c:85:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_repository_shallow(the_repository))
                                                  ^
                                                   {
/datasets/git/send-pack.c:87:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (args->disable_bitmaps)
                                  ^
                                   {
/datasets/git/send-pack.c:93:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (start_command(&po))
                               ^
                                {
/datasets/git/send-pack.c:101:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < advertised->nr; i++)
        ^
/datasets/git/send-pack.c:101:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < advertised->nr; i++)
                                            ^
                                             {
/datasets/git/send-pack.c:103:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < negotiated->nr; i++)
        ^
/datasets/git/send-pack.c:59:33: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
static int pack_objects(int fd, struct ref *refs, struct oid_array *advertised,
                                ^
/datasets/git/send-pack.c:103:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < negotiated->nr; i++)
                                            ^
                                             {
/datasets/git/send-pack.c:106:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (refs) {
        ^
/datasets/git/send-pack.c:106:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'refs' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (refs) {
               ^
/datasets/git/send-pack.c:107:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!is_null_oid(&refs->old_oid))
                                                 ^
                                                  {
/datasets/git/send-pack.c:109:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!is_null_oid(&refs->new_oid))
                                                 ^
                                                  {
/datasets/git/send-pack.c:114:2: warning: the value returned by this function should be used [cert-err33-c]
        fflush(po_in);
        ^~~~~~~~~~~~~
/datasets/git/send-pack.c:114:2: note: cast the expression to void to silence this warning
/datasets/git/send-pack.c:115:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ferror(po_in))
                          ^
                           {
/datasets/git/send-pack.c:117:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(po_in);
        ^~~~~~~~~~~~~
/datasets/git/send-pack.c:117:2: note: cast the expression to void to silence this warning
/datasets/git/send-pack.c:121:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (1) {
                ^
/datasets/git/send-pack.c:122:12: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
                        ssize_t n = xread(po.out, buf, LARGE_PACKET_MAX);
                                ^
/datasets/git/send-pack.c:123:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (n <= 0)
                                   ^
                                    {
/datasets/git/send-pack.c:142:12: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (rc > 128 && rc != 141)
                         ^
/datasets/git/send-pack.c:142:25: warning: 141 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (rc > 128 && rc != 141)
                                      ^
/datasets/git/send-pack.c:142:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (rc > 128 && rc != 141)
                                          ^
                                           {
/datasets/git/send-pack.c:151:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (packet_reader_read(reader) != PACKET_READ_NORMAL)
                                                             ^
                                                              {
/datasets/git/send-pack.c:153:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!skip_prefix(reader->line, "unpack ", &reader->line))
                                                                 ^
                                                                  {
/datasets/git/send-pack.c:155:6: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (strcmp(reader->line, "ok"))
            ^
                                       != 0
/datasets/git/send-pack.c:155:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strcmp(reader->line, "ok"))
                                       ^
                                        {
/datasets/git/send-pack.c:160:12: warning: function 'receive_status' has cognitive complexity of 60 (threshold 25) [readability-function-cognitive-complexity]
static int receive_status(struct packet_reader *reader, struct ref *refs)
           ^
/datasets/git/send-pack.c:170:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (1) {
        ^
/datasets/git/send-pack.c:175:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (packet_reader_read(reader) != PACKET_READ_NORMAL)
                ^
/datasets/git/send-pack.c:179:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!p) {
                ^
/datasets/git/send-pack.c:186:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(head, "option")) {
                ^
/datasets/git/send-pack.c:189:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!hint || !(report || new_report)) {
                        ^
/datasets/git/send-pack.c:189:14: note: +1
                        if (!hint || !(report || new_report)) {
                                  ^
/datasets/git/send-pack.c:190:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!once++)
                                ^
/datasets/git/send-pack.c:195:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (new_report) {
                        ^
/datasets/git/send-pack.c:196:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!hint->report) {
                                ^
/datasets/git/send-pack.c:199:7: note: +1, nesting level increased to 4
                                } else {
                                  ^
/datasets/git/send-pack.c:201:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        while (report->next)
                                        ^
/datasets/git/send-pack.c:210:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (p)
                        ^
/datasets/git/send-pack.c:213:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!strcmp(key, "refname"))
                        ^
/datasets/git/send-pack.c:215:9: note: +1, nesting level increased to 3
                        else if (!strcmp(key, "old-oid") && val &&
                             ^
/datasets/git/send-pack.c:215:44: note: +1
                        else if (!strcmp(key, "old-oid") && val &&
                                                                ^
/datasets/git/send-pack.c:218:9: note: +1, nesting level increased to 3
                        else if (!strcmp(key, "new-oid") && val &&
                             ^
/datasets/git/send-pack.c:218:44: note: +1
                        else if (!strcmp(key, "new-oid") && val &&
                                                                ^
/datasets/git/send-pack.c:221:9: note: +1, nesting level increased to 3
                        else if (!strcmp(key, "forced-update"))
                             ^
/datasets/git/send-pack.c:228:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (strcmp(head, "ok") && strcmp(head, "ng")) {
                ^
/datasets/git/send-pack.c:228:26: note: +1
                if (strcmp(head, "ok") && strcmp(head, "ng")) {
                                       ^
/datasets/git/send-pack.c:235:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (p)
                ^
/datasets/git/send-pack.c:238:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (hint)
                ^
/datasets/git/send-pack.c:240:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!hint)
                ^
/datasets/git/send-pack.c:242:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!hint) {
                ^
/datasets/git/send-pack.c:247:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (hint->status != REF_STATUS_EXPECTING_REPORT &&
                ^
/datasets/git/send-pack.c:248:37: note: +1
                    hint->status != REF_STATUS_OK &&
                                                  ^
/datasets/git/send-pack.c:254:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(head, "ng")) {
                ^
/datasets/git/send-pack.c:256:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (p)
                        ^
/datasets/git/send-pack.c:258:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/send-pack.c:260:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/send-pack.c:162:14: warning: variable 'hint' is not initialized [cppcoreguidelines-init-variables]
        struct ref *hint;
                    ^
                         = NULL
/datasets/git/send-pack.c:163:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/send-pack.c:171:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                struct object_id old_oid, new_oid;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/send-pack.c:172:15: warning: variable 'head' is not initialized [cppcoreguidelines-init-variables]
                const char *head;
                            ^
                                 = NULL
/datasets/git/send-pack.c:173:15: warning: variable 'refname' is not initialized [cppcoreguidelines-init-variables]
                const char *refname;
                            ^
                                    = NULL
/datasets/git/send-pack.c:174:9: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                char *p;
                      ^
                        = NULL
/datasets/git/send-pack.c:174:9: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/send-pack.c:175:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (packet_reader_read(reader) != PACKET_READ_NORMAL)
                                                                     ^
                                                                      {
/datasets/git/send-pack.c:187:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        const char *key, *val;
                        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/send-pack.c:187:16: warning: variable 'key' is not initialized [cppcoreguidelines-init-variables]
                        const char *key, *val;
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/send-pack.c:187:22: warning: variable 'val' is not initialized [cppcoreguidelines-init-variables]
                        const char *key, *val;
                                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/send-pack.c:190:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!once++)
                                            ^
                                             {
/datasets/git/send-pack.c:201:6: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                        while (report->next)
                                        ^
/datasets/git/send-pack.c:201:13: warning: backward branch (while loop) is ID-dependent due to variable reference to 'report' and may cause performance degradation [altera-id-dependent-backward-branch]
                                        while (report->next)
                                               ^
/datasets/git/send-pack.c:201:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        while (report->next)
                                                            ^
                                                             {
/datasets/git/send-pack.c:210:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (p)
                              ^
                               {
/datasets/git/send-pack.c:213:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!strcmp(key, "refname"))
                                                    ^
                                                     {
/datasets/git/send-pack.c:216:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                 !parse_oid_hex(val, &old_oid, &val))
                                                                     ^
                                                                      {
/datasets/git/send-pack.c:219:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                 !parse_oid_hex(val, &new_oid, &val))
                                                                     ^
                                                                      {
/datasets/git/send-pack.c:221:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (!strcmp(key, "forced-update"))
                                                               ^
                                                                {
/datasets/git/send-pack.c:228:7: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (strcmp(head, "ok") && strcmp(head, "ng")) {
                    ^
                                       != 0
/datasets/git/send-pack.c:235:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (p)
                      ^
                       {
/datasets/git/send-pack.c:238:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (hint)
                         ^
                          {
/datasets/git/send-pack.c:240:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!hint)
                          ^
                           {
/datasets/git/send-pack.c:256:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (p)
                              ^
                               {
/datasets/git/send-pack.c:258:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/send-pack.c:269:27: warning: 2 adjacent parameters of 'sideband_demux' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int sideband_demux(int in UNUSED, int out, void *data)
                          ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/send-pack.c:269:31: note: the first parameter in the range is 'in'
static int sideband_demux(int in UNUSED, int out, void *data)
                              ^~
/datasets/git/send-pack.c:269:46: note: the last parameter in the range is 'out'
static int sideband_demux(int in UNUSED, int out, void *data)
                                             ^~~
/datasets/git/send-pack.c:269:31: warning: parameter name 'in' is too short, expected at least 3 characters [readability-identifier-length]
static int sideband_demux(int in UNUSED, int out, void *data)
                              ^
/datasets/git/send-pack.c:271:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int *fd = data, ret;
        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/send-pack.c:271:7: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
        int *fd = data, ret;
             ^
/datasets/git/send-pack.c:271:18: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int *fd = data, ret;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/send-pack.c:272:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (async_with_fork())
                              ^
                               {
/datasets/git/send-pack.c:279:80: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int advertise_shallow_grafts_cb(const struct commit_graft *graft, void *cb)
                                                                               ^
/datasets/git/send-pack.c:281:17: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf *sb = cb;
                       ^
/datasets/git/send-pack.c:282:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (graft->nr_parent == -1)
                                   ^
                                    {
/datasets/git/send-pack.c:287:57: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static void advertise_shallow_grafts_buf(struct strbuf *sb)
                                                        ^
/datasets/git/send-pack.c:289:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_repository_shallow(the_repository))
                                                   ^
                                                    {
/datasets/git/send-pack.c:294:1: warning: replace macro with enum [modernize-macro-to-enum]
#define CHECK_REF_NO_PUSH -1
^~~~~~~~
                          = ,
/datasets/git/send-pack.c:294:9: warning: macro 'CHECK_REF_NO_PUSH' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define CHECK_REF_NO_PUSH -1
        ^
/datasets/git/send-pack.c:294:27: warning: macro replacement list should be enclosed in parentheses [bugprone-macro-parentheses]
#define CHECK_REF_NO_PUSH -1
                          ^
                          ( )
/datasets/git/send-pack.c:295:9: warning: macro 'CHECK_REF_STATUS_REJECTED' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define CHECK_REF_STATUS_REJECTED -2
        ^
/datasets/git/send-pack.c:295:35: warning: macro replacement list should be enclosed in parentheses [bugprone-macro-parentheses]
#define CHECK_REF_STATUS_REJECTED -2
                                  ^
                                  ( )
/datasets/git/send-pack.c:296:9: warning: macro 'CHECK_REF_UPTODATE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define CHECK_REF_UPTODATE -3
        ^
/datasets/git/send-pack.c:296:28: warning: macro replacement list should be enclosed in parentheses [bugprone-macro-parentheses]
#define CHECK_REF_UPTODATE -3
                           ^
                           ( )
/datasets/git/send-pack.c:299:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ref->peer_ref && !args->send_mirror)
                                                 ^
                                                  {
/datasets/git/send-pack.c:332:14: warning: variable name 'nl' is too short, expected at least 3 characters [readability-identifier-length]
        const char *nl = memchr(line, '\n', len);
                    ^
/datasets/git/send-pack.c:333:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!nl)
                ^
                 {
/datasets/git/send-pack.c:341:10: warning: 2 adjacent parameters of 'generate_push_cert' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                              const char *cap_string,
                              ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/send-pack.c:341:22: note: the first parameter in the range is 'cap_string'
                              const char *cap_string,
                                          ^~~~~~~~~~
/datasets/git/send-pack.c:342:22: note: the last parameter in the range is 'push_cert_nonce'
                              const char *push_cert_nonce)
                                          ^~~~~~~~~~~~~~~
/datasets/git/send-pack.c:344:20: warning: variable 'ref' is not initialized [cppcoreguidelines-init-variables]
        const struct ref *ref;
                          ^
                              = NULL
/datasets/git/send-pack.c:345:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/send-pack.c:347:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *cp, *np;
        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/send-pack.c:347:14: warning: variable 'cp' is not initialized [cppcoreguidelines-init-variables]
        const char *cp, *np;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/send-pack.c:347:14: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/send-pack.c:347:19: warning: variable 'np' is not initialized [cppcoreguidelines-init-variables]
        const char *cp, *np;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/send-pack.c:347:19: warning: variable name 'np' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/send-pack.c:345:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct string_list_item *item;
        ^
/datasets/git/send-pack.c:360:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (push_cert_nonce[0])
                               ^
                                {
/datasets/git/send-pack.c:362:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (args->push_options)
                               ^
                                {
/datasets/git/send-pack.c:363:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for_each_string_list_item(item, args->push_options)
                ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/send-pack.c:363:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
                for_each_string_list_item(item, args->push_options)
                                          ^
/datasets/git/send-pack.c:367:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (ref = remote_refs; ref; ref = ref->next) {
        ^
/datasets/git/send-pack.c:367:26: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (ref = remote_refs; ref; ref = ref->next) {
                                ^
/datasets/git/send-pack.c:368:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (check_to_send_update(ref, args) < 0)
                                                        ^
                                                         {
/datasets/git/send-pack.c:376:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!update_seen)
                         ^
                          {
/datasets/git/send-pack.c:379:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (sign_buffer(&cert, &cert, get_signing_key()))
                                                         ^
                                                          {
/datasets/git/send-pack.c:383:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cp = cert.buf; cp < cert.buf + cert.len; cp = np) {
        ^
/datasets/git/send-pack.c:383:22: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cp' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (cp = cert.buf; cp < cert.buf + cert.len; cp = np) {
                            ^
/datasets/git/send-pack.c:396:1: warning: replace macro with enum [modernize-macro-to-enum]
#define NONCE_LEN_LIMIT 256
^~~~~~~~
                        =
/datasets/git/send-pack.c:396:9: warning: macro 'NONCE_LEN_LIMIT' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define NONCE_LEN_LIMIT 256
        ^
/datasets/git/send-pack.c:400:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0;
            ^
/datasets/git/send-pack.c:402:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (NONCE_LEN_LIMIT <= len)
                                   ^
                                    {
/datasets/git/send-pack.c:406:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < len; i++) {
        ^
/datasets/git/send-pack.c:407:7: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
                int ch = nonce[i] & 0xFF;
                    ^
/datasets/git/send-pack.c:407:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                int ch = nonce[i] & 0xFF;
                         ^~~~~~~~
/datasets/git/send-pack.c:407:23: warning: 0xFF is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                int ch = nonce[i] & 0xFF;
                                    ^
/datasets/git/send-pack.c:408:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (isalnum(ch) ||
                    ^
/datasets/git/./git-compat-util.h:1220:20: note: expanded from macro 'isalnum'
#define isalnum(x) sane_istest(x,GIT_ALPHA | GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/send-pack.c:411:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    ch == '=' || ch == '_')
                                           ^
                                            {
/datasets/git/send-pack.c:423:20: warning: variable 'ref' is not initialized [cppcoreguidelines-init-variables]
        const struct ref *ref;
                          ^
                              = NULL
/datasets/git/send-pack.c:430:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (ref = remote_refs; ref; ref = ref->next) {
        ^
/datasets/git/send-pack.c:430:26: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (ref = remote_refs; ref; ref = ref->next) {
                                ^
/datasets/git/send-pack.c:431:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!is_null_oid(&ref->new_oid))
                                                ^
                                                 {
/datasets/git/send-pack.c:436:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (start_command(&child))
                                  ^
                                   {
/datasets/git/send-pack.c:439:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        do {
        ^
/datasets/git/send-pack.c:441:18: warning: narrowing conversion from 'ssize_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int read_len = read_in_full(child.out, hex_hash, len);
                               ^
/datasets/git/send-pack.c:443:15: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
                const char *end;
                            ^
                                = NULL
/datasets/git/send-pack.c:445:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!read_len)
                              ^
                               {
/datasets/git/send-pack.c:447:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (read_len != len)
                                    ^
                                     {
/datasets/git/send-pack.c:449:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (parse_oid_hex(hex_hash, &oid, &end) || *end != '\n')
                                                                        ^
                                                                         {
/datasets/git/send-pack.c:463:5: warning: function 'send_pack' has cognitive complexity of 113 (threshold 25) [readability-function-cognitive-complexity]
int send_pack(struct send_pack_args *args,
    ^
/datasets/git/send-pack.c:494:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!remote_refs) {
        ^
/datasets/git/send-pack.c:501:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (push_negotiate)
        ^
/datasets/git/send-pack.c:504:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!git_config_get_bool("push.usebitmaps", &use_bitmaps))
        ^
/datasets/git/send-pack.c:510:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (server_supports("report-status-v2"))
        ^
/datasets/git/send-pack.c:512:7: note: +1, nesting level increased to 1
        else if (server_supports("report-status"))
             ^
/datasets/git/send-pack.c:514:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (server_supports("delete-refs"))
        ^
/datasets/git/send-pack.c:516:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (server_supports("ofs-delta"))
        ^
/datasets/git/send-pack.c:518:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (server_supports("side-band-64k"))
        ^
/datasets/git/send-pack.c:520:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (server_supports("quiet"))
        ^
/datasets/git/send-pack.c:522:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (server_supports("agent"))
        ^
/datasets/git/send-pack.c:524:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!server_supports("session-id"))
        ^
/datasets/git/send-pack.c:526:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (server_supports("no-thin"))
        ^
/datasets/git/send-pack.c:528:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (server_supports("atomic"))
        ^
/datasets/git/send-pack.c:530:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (server_supports("push-options"))
        ^
/datasets/git/send-pack.c:533:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!server_supports_hash(the_hash_algo->name, &object_format_supported))
        ^
/datasets/git/send-pack.c:536:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (args->push_cert != SEND_PACK_PUSH_CERT_NEVER) {
        ^
/datasets/git/send-pack.c:539:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (push_cert_nonce) {
                ^
/datasets/git/send-pack.c:542:10: note: +1, nesting level increased to 2
                } else if (args->push_cert == SEND_PACK_PUSH_CERT_ALWAYS) {
                       ^
/datasets/git/send-pack.c:544:10: note: +1, nesting level increased to 2
                } else if (args->push_cert == SEND_PACK_PUSH_CERT_IF_ASKED) {
                       ^
/datasets/git/send-pack.c:551:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (args->atomic && !atomic_supported)
        ^
/datasets/git/send-pack.c:551:19: note: +1
        if (args->atomic && !atomic_supported)
                         ^
/datasets/git/send-pack.c:554:32: note: +1
        use_atomic = atomic_supported && args->atomic;
                                      ^
/datasets/git/send-pack.c:556:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (args->push_options && !push_options_supported)
        ^
/datasets/git/send-pack.c:556:25: note: +1
        if (args->push_options && !push_options_supported)
                               ^
/datasets/git/send-pack.c:559:44: note: +1
        use_push_options = push_options_supported && args->push_options;
                                                  ^
/datasets/git/send-pack.c:561:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (status_report == 1)
        ^
/datasets/git/send-pack.c:563:7: note: +1, nesting level increased to 1
        else if (status_report == 2)
             ^
/datasets/git/send-pack.c:565:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (use_sideband)
        ^
/datasets/git/send-pack.c:567:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (quiet_supported && (args->quiet || !args->progress))
        ^
/datasets/git/send-pack.c:567:22: note: +1
        if (quiet_supported && (args->quiet || !args->progress))
                            ^
/datasets/git/send-pack.c:567:38: note: +1
        if (quiet_supported && (args->quiet || !args->progress))
                                            ^
/datasets/git/send-pack.c:569:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (use_atomic)
        ^
/datasets/git/send-pack.c:571:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (use_push_options)
        ^
/datasets/git/send-pack.c:573:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (object_format_supported)
        ^
/datasets/git/send-pack.c:575:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (agent_supported)
        ^
/datasets/git/send-pack.c:577:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (advertise_sid)
        ^
/datasets/git/send-pack.c:585:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (ref = remote_refs; ref; ref = ref->next)
        ^
/datasets/git/send-pack.c:586:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ref->deletion && !allow_deleting_refs)
                ^
/datasets/git/send-pack.c:586:21: note: +1
                if (ref->deletion && !allow_deleting_refs)
                                  ^
/datasets/git/send-pack.c:593:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (ref = remote_refs; ref; ref = ref->next) {
        ^
/datasets/git/send-pack.c:594:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                switch (check_to_send_update(ref, args)) {
                ^
/datasets/git/send-pack.c:603:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (use_atomic) {
                        ^
/datasets/git/send-pack.c:609:28: note: +4, including nesting penalty of 3, nesting level increased to 4
                                return args->porcelain ? 0 : -1;
                                                       ^
/datasets/git/send-pack.c:615:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!ref->deletion)
                ^
/datasets/git/send-pack.c:618:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (args->dry_run || !status_report)
                ^
/datasets/git/send-pack.c:618:21: note: +1
                if (args->dry_run || !status_report)
                                  ^
/datasets/git/send-pack.c:620:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/send-pack.c:624:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!args->dry_run)
        ^
/datasets/git/send-pack.c:630:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!args->dry_run && push_cert_nonce)
        ^
/datasets/git/send-pack.c:630:21: note: +1
        if (!args->dry_run && push_cert_nonce)
                           ^
/datasets/git/send-pack.c:633:7: note: +1, nesting level increased to 1
        else if (!args->dry_run)
             ^
/datasets/git/send-pack.c:637:4: note: +2, including nesting penalty of 1, nesting level increased to 2
                        if (check_to_send_update(ref, args) < 0)
                        ^
/datasets/git/send-pack.c:642:4: note: +2, including nesting penalty of 1, nesting level increased to 2
                        if (!cmds_sent) {
                        ^
/datasets/git/send-pack.c:648:6: note: +1, nesting level increased to 2
                        } else {
                          ^
/datasets/git/send-pack.c:654:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (use_push_options) {
        ^
/datasets/git/send-pack.c:658:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for_each_string_list_item(item, args->push_options)
                ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/send-pack.c:658:3: note: +1
                for_each_string_list_item(item, args->push_options)
                ^
/datasets/git/./string-list.h:152:12: note: expanded from macro 'for_each_string_list_item'
             item && item < (list)->items + (list)->nr; \
                  ^
/datasets/git/send-pack.c:662:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (args->stateless_rpc) {
        ^
/datasets/git/send-pack.c:663:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!args->dry_run && (cmds_sent || is_repository_shallow(the_repository))) {
                ^
/datasets/git/send-pack.c:663:22: note: +1
                if (!args->dry_run && (cmds_sent || is_repository_shallow(the_repository))) {
                                   ^
/datasets/git/send-pack.c:663:36: note: +1
                if (!args->dry_run && (cmds_sent || is_repository_shallow(the_repository))) {
                                                 ^
/datasets/git/send-pack.c:667:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/send-pack.c:674:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (use_sideband && cmds_sent) {
        ^
/datasets/git/send-pack.c:674:19: note: +1
        if (use_sideband && cmds_sent) {
                         ^
/datasets/git/send-pack.c:680:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (start_async(&demux))
                ^
/datasets/git/send-pack.c:689:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (need_pack_data && cmds_sent) {
        ^
/datasets/git/send-pack.c:689:21: note: +1
        if (need_pack_data && cmds_sent) {
                           ^
/datasets/git/send-pack.c:690:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (pack_objects(out, remote_refs, extra_have, &commons, args) < 0) {
                ^
/datasets/git/send-pack.c:691:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (args->stateless_rpc)
                        ^
/datasets/git/send-pack.c:693:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (git_connection_is_socket(conn))
                        ^
/datasets/git/send-pack.c:702:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (status_report)
                        ^
/datasets/git/send-pack.c:705:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (use_sideband) {
                        ^
/datasets/git/send-pack.c:712:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!args->stateless_rpc)
                ^
/datasets/git/send-pack.c:716:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (args->stateless_rpc && cmds_sent)
        ^
/datasets/git/send-pack.c:716:26: note: +1
        if (args->stateless_rpc && cmds_sent)
                                ^
/datasets/git/send-pack.c:719:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (status_report && cmds_sent)
        ^
/datasets/git/send-pack.c:719:20: note: +1
        if (status_report && cmds_sent)
                          ^
/datasets/git/send-pack.c:721:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/send-pack.c:723:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (args->stateless_rpc)
        ^
/datasets/git/send-pack.c:726:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (use_sideband && cmds_sent) {
        ^
/datasets/git/send-pack.c:726:19: note: +1
        if (use_sideband && cmds_sent) {
                         ^
/datasets/git/send-pack.c:728:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (finish_async(&demux)) {
                ^
/datasets/git/send-pack.c:734:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ret < 0)
        ^
/datasets/git/send-pack.c:737:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (args->porcelain)
        ^
/datasets/git/send-pack.c:740:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (ref = remote_refs; ref; ref = ref->next) {
        ^
/datasets/git/send-pack.c:741:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                switch (ref->status) {
                ^
/datasets/git/send-pack.c:464:12: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
              int fd[], struct child_process *conn,
                  ^
/datasets/git/send-pack.c:469:6: warning: variable name 'in' is too short, expected at least 3 characters [readability-identifier-length]
        int in = fd[0];
            ^
/datasets/git/send-pack.c:473:14: warning: variable 'ref' is not initialized [cppcoreguidelines-init-variables]
        struct ref *ref;
                    ^
                        = NULL
/datasets/git/send-pack.c:488:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/send-pack.c:492:6: warning: variable 'use_bitmaps' is not initialized [cppcoreguidelines-init-variables]
        int use_bitmaps;
            ^
                        = 0
/datasets/git/send-pack.c:495:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "No refs in common and none specified; doing nothing.\n"
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/send-pack.c:495:3: note: cast the expression to void to silence this warning
/datasets/git/send-pack.c:501:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (push_negotiate)
                           ^
                            {
/datasets/git/send-pack.c:504:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!git_config_get_bool("push.usebitmaps", &use_bitmaps))
                                                                  ^
                                                                   {
/datasets/git/send-pack.c:510:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (server_supports("report-status-v2"))
                                                ^
                                                 {
/datasets/git/send-pack.c:512:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (server_supports("report-status"))
                                                  ^
                                                   {
/datasets/git/send-pack.c:514:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (server_supports("delete-refs"))
                                           ^
                                            {
/datasets/git/send-pack.c:516:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (server_supports("ofs-delta"))
                                         ^
                                          {
/datasets/git/send-pack.c:518:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (server_supports("side-band-64k"))
                                             ^
                                              {
/datasets/git/send-pack.c:520:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (server_supports("quiet"))
                                     ^
                                      {
/datasets/git/send-pack.c:522:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (server_supports("agent"))
                                     ^
                                      {
/datasets/git/send-pack.c:524:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!server_supports("session-id"))
                                           ^
                                            {
/datasets/git/send-pack.c:526:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (server_supports("no-thin"))
                                       ^
                                        {
/datasets/git/send-pack.c:528:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (server_supports("atomic"))
                                      ^
                                       {
/datasets/git/send-pack.c:530:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (server_supports("push-options"))
                                            ^
                                             {
/datasets/git/send-pack.c:533:75: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!server_supports_hash(the_hash_algo->name, &object_format_supported))
                                                                                 ^
                                                                                  {
/datasets/git/send-pack.c:537:7: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
                int len;
                    ^
                        = 0
/datasets/git/send-pack.c:551:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (args->atomic && !atomic_supported)
                                              ^
                                               {
/datasets/git/send-pack.c:556:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (args->push_options && !push_options_supported)
                                                          ^
                                                           {
/datasets/git/send-pack.c:561:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (status_report == 1)
                               ^
                                {
/datasets/git/send-pack.c:563:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (status_report == 2)
                                    ^
                                     {
/datasets/git/send-pack.c:565:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (use_sideband)
                         ^
                          {
/datasets/git/send-pack.c:567:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (quiet_supported && (args->quiet || !args->progress))
                                                                ^
                                                                 {
/datasets/git/send-pack.c:569:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (use_atomic)
                       ^
                        {
/datasets/git/send-pack.c:571:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (use_push_options)
                             ^
                              {
/datasets/git/send-pack.c:573:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (object_format_supported)
                                    ^
                                     {
/datasets/git/send-pack.c:575:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (agent_supported)
                            ^
                             {
/datasets/git/send-pack.c:577:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (advertise_sid)
                          ^
                           {
/datasets/git/send-pack.c:585:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (ref = remote_refs; ref; ref = ref->next)
        ^
/datasets/git/send-pack.c:473:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct ref *ref;
        ^
/datasets/git/send-pack.c:585:26: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (ref = remote_refs; ref; ref = ref->next)
                                ^
/datasets/git/send-pack.c:585:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (ref = remote_refs; ref; ref = ref->next)
                                                     ^
                                                      {
/datasets/git/send-pack.c:586:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ref->deletion && !allow_deleting_refs)
                                                          ^
                                                           {
/datasets/git/send-pack.c:593:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (ref = remote_refs; ref; ref = ref->next) {
        ^
/datasets/git/send-pack.c:593:26: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (ref = remote_refs; ref; ref = ref->next) {
                                ^
/datasets/git/send-pack.c:615:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ref->deletion)
                                   ^
                                    {
/datasets/git/send-pack.c:618:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (args->dry_run || !status_report)
                                                    ^
                                                     {
/datasets/git/send-pack.c:620:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/send-pack.c:624:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!args->dry_run)
                           ^
                            {
/datasets/git/send-pack.c:630:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!args->dry_run && push_cert_nonce)
                                              ^
                                               {
/datasets/git/send-pack.c:633:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!args->dry_run)
                                ^
                                 {
/datasets/git/send-pack.c:634:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (ref = remote_refs; ref; ref = ref->next) {
                ^
/datasets/git/send-pack.c:634:27: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (ref = remote_refs; ref; ref = ref->next) {
                                        ^
/datasets/git/send-pack.c:635:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        char *old_hex, *new_hex;
                        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/send-pack.c:635:10: warning: variable 'old_hex' is not initialized [cppcoreguidelines-init-variables]
                        char *old_hex, *new_hex;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/send-pack.c:635:20: warning: variable 'new_hex' is not initialized [cppcoreguidelines-init-variables]
                        char *old_hex, *new_hex;
                                        ^
/datasets/git/send-pack.c:655:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                struct string_list_item *item;
                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/send-pack.c:637:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (check_to_send_update(ref, args) < 0)
                                                                ^
                                                                 {
/datasets/git/send-pack.c:655:28: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
                struct string_list_item *item;
                                         ^
                                              = NULL
/datasets/git/send-pack.c:658:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for_each_string_list_item(item, args->push_options)
                ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/send-pack.c:658:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
                for_each_string_list_item(item, args->push_options)
                                          ^
/datasets/git/send-pack.c:665:40: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'ssize_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        send_sideband(out, -1, req_buf.buf, req_buf.len, LARGE_PACKET_MAX);
                                                            ^
/datasets/git/send-pack.c:675:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(&demux, 0, sizeof(demux));
                ^~~~~~
/datasets/git/send-pack.c:675:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(&demux, 0, sizeof(demux));
                ^~~~~~
/datasets/git/send-pack.c:680:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (start_async(&demux))
                                        ^
                                         {
/datasets/git/send-pack.c:686:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                           PACKET_READ_CHOMP_NEWLINE |
                           ^
/datasets/git/./pkt-line.h:85:43: note: expanded from macro 'PACKET_READ_CHOMP_NEWLINE'
#define PACKET_READ_CHOMP_NEWLINE        (1u<<1)
                                          ^   ~
/datasets/git/send-pack.c:687:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                           PACKET_READ_DIE_ON_ERR_PACKET);
                           ^
/datasets/git/./pkt-line.h:86:43: note: expanded from macro 'PACKET_READ_DIE_ON_ERR_PACKET'
#define PACKET_READ_DIE_ON_ERR_PACKET    (1u<<2)
                                          ^   ~
/datasets/git/send-pack.c:691:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (args->stateless_rpc)
                                                ^
                                                 {
/datasets/git/send-pack.c:693:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (git_connection_is_socket(conn))
                                                           ^
                                                            {
/datasets/git/send-pack.c:702:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (status_report)
                                          ^
                                           {
/datasets/git/send-pack.c:712:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!args->stateless_rpc)
                                         ^
                                          {
/datasets/git/send-pack.c:716:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (args->stateless_rpc && cmds_sent)
                                             ^
                                              {
/datasets/git/send-pack.c:719:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (status_report && cmds_sent)
                                       ^
                                        {
/datasets/git/send-pack.c:721:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/send-pack.c:723:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (args->stateless_rpc)
                                ^
                                 {
/datasets/git/send-pack.c:734:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret < 0)
                    ^
                     {
/datasets/git/send-pack.c:737:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (args->porcelain)
                            ^
                             {
/datasets/git/send-pack.c:740:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (ref = remote_refs; ref; ref = ref->next) {
        ^
/datasets/git/send-pack.c:740:26: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (ref = remote_refs; ref; ref = ref->next) {
                                ^
sequencer.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:39:1: warning: duplicate include [readability-duplicate-include]
#include "log-tree.h"
^~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:46:1: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
GIT_PATH_FUNC(git_path_commit_editmsg, "COMMIT_EDITMSG")
^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/sequencer.c:48:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(git_path_seq_dir, "sequencer")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/sequencer.c:50:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(git_path_todo_file, "sequencer/todo")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/sequencer.c:51:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(git_path_opts_file, "sequencer/opts")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/sequencer.c:52:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(git_path_head_file, "sequencer/head")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/sequencer.c:53:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(git_path_abort_safety_file, "sequencer/abort-safety")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/sequencer.c:55:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(rebase_path, "rebase-merge")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/sequencer.c:62:1: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
GIT_PATH_FUNC(rebase_path_todo, "rebase-merge/git-rebase-todo")
^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/sequencer.c:63:1: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
GIT_PATH_FUNC(rebase_path_todo_backup, "rebase-merge/git-rebase-todo.backup")
^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/sequencer.c:65:1: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
GIT_PATH_FUNC(rebase_path_dropped, "rebase-merge/dropped")
^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/sequencer.c:72:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(rebase_path_done, "rebase-merge/done")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/sequencer.c:77:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(rebase_path_msgnum, "rebase-merge/msgnum")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/sequencer.c:82:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(rebase_path_msgtotal, "rebase-merge/end")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/sequencer.c:87:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(rebase_path_message, "rebase-merge/message")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/sequencer.c:96:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(rebase_path_squash_msg, "rebase-merge/message-squash")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/sequencer.c:104:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(rebase_path_fixup_msg, "rebase-merge/message-fixup")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/sequencer.c:109:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(rebase_path_current_fixups, "rebase-merge/current-fixups")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/sequencer.c:115:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(rebase_path_author_script, "rebase-merge/author-script")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/sequencer.c:124:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(rebase_path_amend, "rebase-merge/amend")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/sequencer.c:129:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(rebase_path_stopped_sha, "rebase-merge/stopped-sha")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/sequencer.c:136:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(rebase_path_rewritten_list, "rebase-merge/rewritten-list")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/sequencer.c:137:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(rebase_path_rewritten_pending,
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/sequencer.c:144:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(rebase_path_squash_onto, "rebase-merge/squash-onto")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/sequencer.c:150:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(rebase_path_refs_to_delete, "rebase-merge/refs-to-delete")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/sequencer.c:170:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(rebase_path_gpg_sign_opt, "rebase-merge/gpg_sign_opt")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/sequencer.c:171:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(rebase_path_cdate_is_adate, "rebase-merge/cdate_is_adate")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/sequencer.c:172:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(rebase_path_ignore_date, "rebase-merge/ignore_date")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/sequencer.c:173:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(rebase_path_orig_head, "rebase-merge/orig-head")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/sequencer.c:174:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(rebase_path_verbose, "rebase-merge/verbose")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/sequencer.c:175:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(rebase_path_quiet, "rebase-merge/quiet")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/sequencer.c:176:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(rebase_path_signoff, "rebase-merge/signoff")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/sequencer.c:177:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(rebase_path_head_name, "rebase-merge/head-name")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/sequencer.c:178:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(rebase_path_onto, "rebase-merge/onto")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/sequencer.c:179:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(rebase_path_autostash, "rebase-merge/autostash")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/sequencer.c:180:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(rebase_path_strategy, "rebase-merge/strategy")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/sequencer.c:181:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(rebase_path_strategy_opts, "rebase-merge/strategy_opts")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/sequencer.c:182:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(rebase_path_allow_rerere_autoupdate, "rebase-merge/allow_rerere_autoupdate")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/sequencer.c:183:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(rebase_path_reschedule_failed_exec, "rebase-merge/reschedule-failed-exec")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/sequencer.c:184:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(rebase_path_no_reschedule_failed_exec, "rebase-merge/no-reschedule-failed-exec")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/sequencer.c:185:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(rebase_path_drop_redundant_commits, "rebase-merge/drop_redundant_commits")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/sequencer.c:186:8: warning: variable 'ret' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
static GIT_PATH_FUNC(rebase_path_keep_redundant_commits, "rebase-merge/keep_redundant_commits")
       ^
/datasets/git/./path.h:158:16: note: expanded from macro 'GIT_PATH_FUNC'
                static char *ret; \
                             ^
/datasets/git/sequencer.c:192:8: warning: accessing fields in struct 'update_ref_record' is inefficient due to poor alignment; currently aligned to 4 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct update_ref_record {
       ^
/datasets/git/sequencer.c:192:8: note: use "__attribute__((aligned(128)))" to align struct 'update_ref_record' to 128 bytes
/datasets/git/sequencer.c:199:28: warning: variable 'rec' is not initialized [cppcoreguidelines-init-variables]
        struct update_ref_record *rec;
                                  ^
                                      = NULL
/datasets/git/sequencer.c:212:45: warning: parameter name 'k' is too short, expected at least 3 characters [readability-identifier-length]
static int git_sequencer_config(const char *k, const char *v, void *cb)
                                            ^
/datasets/git/sequencer.c:212:60: warning: parameter name 'v' is too short, expected at least 3 characters [readability-identifier-length]
static int git_sequencer_config(const char *k, const char *v, void *cb)
                                                           ^
/datasets/git/sequencer.c:212:69: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int git_sequencer_config(const char *k, const char *v, void *cb)
                                                                    ^
/datasets/git/sequencer.c:215:6: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int status;
            ^
                   = 0
/datasets/git/sequencer.c:218:15: warning: variable 's' is not initialized [cppcoreguidelines-init-variables]
                const char *s;
                            ^
                              = NULL
/datasets/git/sequencer.c:218:15: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:221:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (status)
                           ^
                            {
/datasets/git/sequencer.c:258:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (tmp)
                                ^
                                 {
/datasets/git/sequencer.c:264:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->action == REPLAY_REVERT && !strcmp(k, "revert.reference"))
                                                                            ^
                                                                             {
/datasets/git/sequencer.c:268:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (status)
                   ^
                    {
/datasets/git/sequencer.c:287:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_rebase_i(opts))
                              ^
                               {
/datasets/git/sequencer.c:294:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_rebase_i(opts))
                              ^
                               {
/datasets/git/sequencer.c:305:49: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static int has_conforming_footer(struct strbuf *sb, struct strbuf *sob,
                                                ^
/datasets/git/sequencer.c:310:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i;
               ^
                 = 0
/datasets/git/sequencer.c:310:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:311:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int found_sob = 0, found_sob_last = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:312:7: warning: variable 'saved_char' is not initialized [cppcoreguidelines-init-variables]
        char saved_char;
             ^
                        = 0
/datasets/git/sequencer.c:323:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ignore_footer)
                          ^
                           {
/datasets/git/sequencer.c:326:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (info.trailer_start == info.trailer_end)
                                                   ^
                                                    {
/datasets/git/sequencer.c:329:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < info.trailer_nr; i++)
        ^
/datasets/git/sequencer.c:329:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < info.trailer_nr; i++)
                                             ^
                                              {
/datasets/git/sequencer.c:332:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (i == info.trailer_nr - 1)
                                                     ^
                                                      {
/datasets/git/sequencer.c:338:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (found_sob_last)
                           ^
                            {
/datasets/git/sequencer.c:340:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (found_sob)
                      ^
                       {
/datasets/git/sequencer.c:350:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->gpg_sign)
                           ^
                            {
/datasets/git/sequencer.c:358:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, ret = 0;
        ^~~~~~~~~~~~~~~
/datasets/git/sequencer.c:358:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, ret = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:358:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:362:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                char *p = buf.buf;
                ^
/datasets/git/sequencer.c:362:9: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                char *p = buf.buf;
                      ^
/datasets/git/sequencer.c:363:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (*p) {
                ^
/datasets/git/sequencer.c:363:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (*p) {
                       ^
/datasets/git/sequencer.c:365:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (eol)
                                ^
                                 {
/datasets/git/sequencer.c:371:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!eol)
                                 ^
                                  {
/datasets/git/sequencer.c:381:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < opts->xopts_nr; i++)
        ^
/datasets/git/sequencer.c:381:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < opts->xopts_nr; i++)
                                            ^
                                             {
/datasets/git/sequencer.c:388:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (remove_dir_recursively(&buf, 0))
                                            ^
                                             {
/datasets/git/sequencer.c:408:8: warning: accessing fields in struct 'commit_message' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct commit_message {
       ^
/datasets/git/sequencer.c:408:8: note: use "__attribute__((aligned(32)))" to align struct 'commit_message' to 32 bytes
/datasets/git/sequencer.c:422:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *abbrev, *subject;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:422:14: warning: variable 'abbrev' is not initialized [cppcoreguidelines-init-variables]
        const char *abbrev, *subject;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:422:23: warning: variable 'subject' is not initialized [cppcoreguidelines-init-variables]
        const char *abbrev, *subject;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:423:6: warning: variable 'subject_len' is not initialized [cppcoreguidelines-init-variables]
        int subject_len;
            ^
                        = 0
/datasets/git/sequencer.c:445:45: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void print_advice(struct repository *r, int show_hint,
                                            ^
/datasets/git/sequencer.c:448:14: warning: function is not thread safe [concurrency-mt-unsafe]
        char *msg = getenv("GIT_CHERRY_PICK_HELP");
                    ^
/datasets/git/sequencer.c:463:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opts->no_commit)
                                    ^
                                     {
/datasets/git/sequencer.c:466:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (opts->action == REPLAY_PICK)
                                                     ^
                                                      {
/datasets/git/sequencer.c:473:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (opts->action == REPLAY_REVERT)
                                                       ^
                                                        {
/datasets/git/sequencer.c:480:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/sequencer.c:491:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (msg_fd < 0)
                       ^
                        {
/datasets/git/sequencer.c:503:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (commit_lock_file(&msg_file) < 0)
                                            ^
                                             {
/datasets/git/sequencer.c:512:17: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int orig_len = buf->len;
                       ^
/datasets/git/sequencer.c:515:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((flags & READ_ONELINER_WARN_MISSING) ||
                     ^
/datasets/git/sequencer.c:515:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((flags & READ_ONELINER_WARN_MISSING) ||
                             ^
/datasets/git/./sequencer.h:234:37: note: expanded from macro 'READ_ONELINER_WARN_MISSING'
#define READ_ONELINER_WARN_MISSING (1 << 1)
                                    ^
/datasets/git/sequencer.c:516:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    (errno != ENOENT && errno != ENOTDIR))
                                                          ^
                                                           {
/datasets/git/sequencer.c:522:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (--buf->len > orig_len && buf->buf[buf->len - 1] == '\r')
                                                                            ^
                                                                             {
/datasets/git/sequencer.c:527:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((flags & READ_ONELINER_SKIP_IF_EMPTY) && buf->len == orig_len)
             ^
/datasets/git/sequencer.c:527:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((flags & READ_ONELINER_SKIP_IF_EMPTY) && buf->len == orig_len)
                     ^
/datasets/git/./sequencer.h:233:38: note: expanded from macro 'READ_ONELINER_SKIP_IF_EMPTY'
#define READ_ONELINER_SKIP_IF_EMPTY (1 << 0)
                                     ^
/datasets/git/sequencer.c:527:68: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((flags & READ_ONELINER_SKIP_IF_EMPTY) && buf->len == orig_len)
                                                                          ^
                                                                           {
/datasets/git/sequencer.c:533:51: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static struct tree *empty_tree(struct repository *r)
                                                  ^
/datasets/git/sequencer.c:540:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_read_index_unmerged(repo))
                                           ^
                                            {
/datasets/git/sequencer.c:546:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (advice_enabled(ADVICE_COMMIT_BEFORE_MERGE))
                                                       ^
                                                        {
/datasets/git/sequencer.c:556:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!file_exists(git_path_seq_dir()))
                                             ^
                                              {
/datasets/git/sequencer.c:559:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!get_oid("HEAD", &head))
                                    ^
                                     {
/datasets/git/sequencer.c:561:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/sequencer.c:565:47: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int fast_forward_to(struct repository *r,
                                              ^
/datasets/git/sequencer.c:566:31: warning: parameter name 'to' is too short, expected at least 3 characters [readability-identifier-length]
                           const struct object_id *to,
                                                   ^
/datasets/git/sequencer.c:571:26: warning: variable 'transaction' is not initialized [cppcoreguidelines-init-variables]
        struct ref_transaction *transaction;
                                ^
                                            = NULL
/datasets/git/sequencer.c:572:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/sequencer.c:576:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (checkout_fast_forward(r, from, to, 1))
                                                  ^
                                                   {
/datasets/git/sequencer.c:605:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!cleanup_arg || !strcmp(cleanup_arg, "default"))
                                                            ^
                                                             {
/datasets/git/sequencer.c:608:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (!strcmp(cleanup_arg, "verbatim"))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:608:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(cleanup_arg, "verbatim"))
                                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:610:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(cleanup_arg, "whitespace"))
                                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:612:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(cleanup_arg, "strip"))
                                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:614:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(cleanup_arg, "scissors"))
                                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:617:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:633:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cleanup_mode < ARRAY_SIZE(modes))
                                             ^
                                              {
/datasets/git/sequencer.c:642:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/sequencer.c:642:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:653:29: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                const struct cache_entry *ce = istate->cache[i++];
                                          ^
/datasets/git/sequencer.c:654:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce_stage(ce)) {
                    ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/sequencer.c:656:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (i < istate->cache_nr &&
                        ^
/datasets/git/sequencer.c:656:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'ce' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (i < istate->cache_nr &&
                               ^
/datasets/git/sequencer.c:657:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                               !strcmp(ce->name, istate->cache[i]->name))
                                                                         ^
                                                                          {
/datasets/git/sequencer.c:663:50: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int do_recursive_merge(struct repository *r,
                                                 ^
/datasets/git/sequencer.c:665:10: warning: 2 adjacent parameters of 'do_recursive_merge' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                              const char *base_label, const char *next_label,
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:665:22: note: the first parameter in the range is 'base_label'
                              const char *base_label, const char *next_label,
                                          ^~~~~~~~~~
/datasets/git/sequencer.c:665:46: note: the last parameter in the range is 'next_label'
                              const char *base_label, const char *next_label,
                                                                  ^~~~~~~~~~
/datasets/git/sequencer.c:669:23: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
        struct merge_options o;
                             ^
/datasets/git/sequencer.c:671:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct tree *next_tree, *base_tree, *head_tree;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:671:15: warning: variable 'next_tree' is not initialized [cppcoreguidelines-init-variables]
        struct tree *next_tree, *base_tree, *head_tree;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:671:27: warning: variable 'base_tree' is not initialized [cppcoreguidelines-init-variables]
        struct tree *next_tree, *base_tree, *head_tree;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:671:39: warning: variable 'head_tree' is not initialized [cppcoreguidelines-init-variables]
        struct tree *next_tree, *base_tree, *head_tree;
                                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:672:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int clean, show_output;
        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:672:6: warning: variable 'clean' is not initialized [cppcoreguidelines-init-variables]
        int clean, show_output;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:672:13: warning: variable 'show_output' is not initialized [cppcoreguidelines-init-variables]
        int clean, show_output;
                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:673:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/sequencer.c:673:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:676:71: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_hold_locked_index(r, &index_lock, LOCK_REPORT_ON_ERROR) < 0)
                                                                             ^
                                                                              {
/datasets/git/sequencer.c:685:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_rebase_i(opts))
                              ^
                               {
/datasets/git/sequencer.c:693:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < opts->xopts_nr; i++)
        ^
/datasets/git/sequencer.c:693:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < opts->xopts_nr; i++)
                                            ^
                                             {
/datasets/git/sequencer.c:697:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(&result, 0, sizeof(result));
                ^~~~~~
/datasets/git/sequencer.c:697:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(&result, 0, sizeof(result));
                ^~~~~~
/datasets/git/sequencer.c:714:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_rebase_i(opts) && clean <= 0)
                                                    ^
                                                     {
/datasets/git/sequencer.c:715:4: warning: the value returned by this function should be used [cert-err33-c]
                        fputs(o.obuf.buf, stdout);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:715:4: note: cast the expression to void to silence this warning
/datasets/git/sequencer.c:724:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                               COMMIT_LOCK | SKIP_IF_UNCHANGED))
                               ^
/datasets/git/./refs/../cache.h:744:22: note: expanded from macro 'COMMIT_LOCK'
#define COMMIT_LOCK             (1 << 0)
                                ^~~~~~~~
/datasets/git/sequencer.c:724:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                               COMMIT_LOCK | SKIP_IF_UNCHANGED))
                                             ^
/datasets/git/./refs/../cache.h:745:28: note: expanded from macro 'SKIP_IF_UNCHANGED'
#define SKIP_IF_UNCHANGED       (1 << 1)
                                 ^
/datasets/git/sequencer.c:724:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                               COMMIT_LOCK | SKIP_IF_UNCHANGED))
                                                                ^
                                                                 {
/datasets/git/sequencer.c:732:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!clean)
                   ^
                    {
/datasets/git/sequencer.c:741:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!cache_tree_fully_valid(istate->cache_tree))
                                                        ^
                                                         {
/datasets/git/sequencer.c:750:50: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int is_index_unchanged(struct repository *r)
                                                 ^
/datasets/git/sequencer.c:752:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct object_id head_oid, *cache_tree_oid;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:752:30: warning: variable 'cache_tree_oid' is not initialized [cppcoreguidelines-init-variables]
        struct object_id head_oid, *cache_tree_oid;
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:753:17: warning: variable 'head_commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *head_commit;
                       ^
                                   = NULL
/datasets/git/sequencer.c:756:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!resolve_ref_unsafe("HEAD", RESOLVE_REF_READING, &head_oid, NULL))
                                                                              ^
                                                                               {
/datasets/git/sequencer.c:769:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_commit(head_commit))
                                      ^
                                       {
/datasets/git/sequencer.c:772:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if (!(cache_tree_oid = get_cache_tree_oid(istate)))
              ^
/datasets/git/sequencer.c:772:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/sequencer.c:772:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/sequencer.c:772:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(cache_tree_oid = get_cache_tree_oid(istate)))
                                                           ^
                                                            {
/datasets/git/sequencer.c:781:14: warning: variable 'eol' is not initialized [cppcoreguidelines-init-variables]
        const char *eol;
                    ^
                        = NULL
/datasets/git/sequencer.c:782:6: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        int res;
            ^
                = 0
/datasets/git/sequencer.c:784:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;)
        ^
/datasets/git/sequencer.c:784:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (;;)
                ^
                 {
/datasets/git/sequencer.c:790:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else if (skip_prefix(message, "author ", &message))
                                                                     ^
                                                                      {
/datasets/git/sequencer.c:792:13: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                else if ((eol = strchr(message, '\n')))
                          ^
/datasets/git/sequencer.c:792:13: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/sequencer.c:792:13: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/sequencer.c:792:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if ((eol = strchr(message, '\n')))
                                                       ^
                                                        {
/datasets/git/sequencer.c:794:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/sequencer.c:798:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*message && *message != '\n' && *message != '\r')
        ^
/datasets/git/sequencer.c:798:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'message' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (*message && *message != '\n' && *message != '\r')
               ^
/datasets/git/sequencer.c:798:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (*message && *message != '\n' && *message != '\r')
                                                                ^
                                                                 {
/datasets/git/sequencer.c:799:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (skip_prefix(message, " <", &message))
                                                         ^
                                                          {
/datasets/git/sequencer.c:801:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (*message != '\'')
                                          ^
                                           {
/datasets/git/sequencer.c:803:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/sequencer.c:806:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*message && *message != '\n' && *message != '\r')
        ^
/datasets/git/sequencer.c:806:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'message' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (*message && *message != '\n' && *message != '\r')
               ^
/datasets/git/sequencer.c:806:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (*message && *message != '\n' && *message != '\r')
                                                                ^
                                                                 {
/datasets/git/sequencer.c:807:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (skip_prefix(message, "> ", &message))
                                                         ^
                                                          {
/datasets/git/sequencer.c:809:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (*message != '\'')
                                          ^
                                           {
/datasets/git/sequencer.c:811:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/sequencer.c:814:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*message && *message != '\n' && *message != '\r')
        ^
/datasets/git/sequencer.c:814:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'message' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (*message && *message != '\n' && *message != '\r')
               ^
/datasets/git/sequencer.c:814:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (*message && *message != '\n' && *message != '\r')
                                                                ^
                                                                 {
/datasets/git/sequencer.c:815:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*message != '\'')
                                     ^
                                      {
/datasets/git/sequencer.c:817:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/sequencer.c:831:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*buf) {
        ^
/datasets/git/sequencer.c:831:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'buf' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (*buf) {
               ^
/datasets/git/sequencer.c:832:28: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
                struct string_list_item *item;
                                         ^
                                              = NULL
/datasets/git/sequencer.c:833:9: warning: variable 'np' is not initialized [cppcoreguidelines-init-variables]
                char *np;
                      ^
                         = NULL
/datasets/git/sequencer.c:833:9: warning: variable name 'np' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:834:9: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
                char *cp = strchr(buf, '=');
                      ^
/datasets/git/sequencer.c:847:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!cp)
                        ^
                         {
/datasets/git/sequencer.c:872:5: warning: function 'read_author_script' has cognitive complexity of 29 (threshold 25) [readability-function-cognitive-complexity]
int read_author_script(const char *path, char **name, char **email, char **date,
    ^
/datasets/git/sequencer.c:880:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (strbuf_read_file(&buf, path, 256) <= 0) {
        ^
/datasets/git/sequencer.c:882:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (errno == ENOENT && allow_missing)
                ^
/datasets/git/sequencer.c:882:23: note: +1
                if (errno == ENOENT && allow_missing)
                                    ^
/datasets/git/sequencer.c:884:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/sequencer.c:889:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (parse_key_value_squoted(buf.buf, &kv))
        ^
/datasets/git/sequencer.c:892:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < kv.nr; i++) {
        ^
/datasets/git/sequencer.c:893:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(kv.items[i].string, "GIT_AUTHOR_NAME")) {
                ^
/datasets/git/sequencer.c:894:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (name_i != -2)
                        ^
/datasets/git/sequencer.c:896:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/sequencer.c:898:10: note: +1, nesting level increased to 2
                } else if (!strcmp(kv.items[i].string, "GIT_AUTHOR_EMAIL")) {
                       ^
/datasets/git/sequencer.c:899:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (email_i != -2)
                        ^
/datasets/git/sequencer.c:901:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/sequencer.c:903:10: note: +1, nesting level increased to 2
                } else if (!strcmp(kv.items[i].string, "GIT_AUTHOR_DATE")) {
                       ^
/datasets/git/sequencer.c:904:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (date_i != -2)
                        ^
/datasets/git/sequencer.c:906:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/sequencer.c:908:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/sequencer.c:913:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (name_i == -2)
        ^
/datasets/git/sequencer.c:915:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (email_i == -2)
        ^
/datasets/git/sequencer.c:917:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (date_i == -2)
        ^
/datasets/git/sequencer.c:919:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (name_i < 0 || email_i < 0 || date_i < 0 || err)
        ^
/datasets/git/sequencer.c:919:46: note: +1
        if (name_i < 0 || email_i < 0 || date_i < 0 || err)
                                                    ^
/datasets/git/sequencer.c:872:42: warning: 3 adjacent parameters of 'read_author_script' of similar type ('char **') are easily swapped by mistake [bugprone-easily-swappable-parameters]
int read_author_script(const char *path, char **name, char **email, char **date,
                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:872:49: note: the first parameter in the range is 'name'
int read_author_script(const char *path, char **name, char **email, char **date,
                                                ^~~~
/datasets/git/sequencer.c:872:76: note: the last parameter in the range is 'date'
int read_author_script(const char *path, char **name, char **email, char **date,
                                                                           ^~~~
/datasets/git/sequencer.c:876:21: warning: variable name 'kv' is too short, expected at least 3 characters [readability-identifier-length]
        struct string_list kv = STRING_LIST_INIT_DUP;
                           ^
/datasets/git/sequencer.c:878:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, name_i = -2, email_i = -2, date_i = -2, err = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:878:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, name_i = -2, email_i = -2, date_i = -2, err = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:878:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:880:35: warning: 256 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (strbuf_read_file(&buf, path, 256) <= 0) {
                                         ^
/datasets/git/sequencer.c:882:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (errno == ENOENT && allow_missing)
                                                     ^
                                                      {
/datasets/git/sequencer.c:884:3: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                else
                ^~~~
                                        return error_errno
/datasets/git/sequencer.c:884:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:889:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_key_value_squoted(buf.buf, &kv))
                                                  ^
                                                   {
/datasets/git/sequencer.c:892:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < kv.nr; i++) {
        ^
/datasets/git/sequencer.c:894:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (name_i != -2)
                                         ^
                                          {
/datasets/git/sequencer.c:896:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/sequencer.c:899:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (email_i != -2)
                                          ^
                                           {
/datasets/git/sequencer.c:901:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/sequencer.c:904:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (date_i != -2)
                                         ^
                                          {
/datasets/git/sequencer.c:906:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/sequencer.c:913:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (name_i == -2)
                         ^
                          {
/datasets/git/sequencer.c:915:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (email_i == -2)
                          ^
                           {
/datasets/git/sequencer.c:917:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (date_i == -2)
                         ^
                          {
/datasets/git/sequencer.c:919:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (name_i < 0 || email_i < 0 || date_i < 0 || err)
                                                           ^
                                                            {
/datasets/git/sequencer.c:938:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *name, *email, *date;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:938:8: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
        char *name, *email, *date;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:938:15: warning: variable 'email' is not initialized [cppcoreguidelines-init-variables]
        char *name, *email, *date;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:938:23: warning: variable 'date' is not initialized [cppcoreguidelines-init-variables]
        char *name, *email, *date;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:941:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                               &name, &email, &date, 0))
                                                        ^
                                                         {
/datasets/git/sequencer.c:956:9: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        size_t len;
               ^
                   = 0
/datasets/git/sequencer.c:957:14: warning: variable 'a' is not initialized [cppcoreguidelines-init-variables]
        const char *a;
                    ^
                      = NULL
/datasets/git/sequencer.c:957:14: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:960:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (a)
              ^
               {
/datasets/git/sequencer.c:968:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/sequencer.c:968:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:969:14: warning: variable 'date' is not initialized [cppcoreguidelines-init-variables]
        const char *date;
                    ^
                         = NULL
/datasets/git/sequencer.c:971:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < env->nr; i++)
        ^
/datasets/git/sequencer.c:971:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < env->nr; i++)
                                     ^
                                      {
/datasets/git/sequencer.c:973:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                "GIT_AUTHOR_DATE=", &date))
                                                           ^
                                                            {
/datasets/git/sequencer.c:1007:6: warning: variable 'rc' is not initialized [cppcoreguidelines-init-variables]
        int rc;
            ^
               = 0
/datasets/git/sequencer.c:1007:6: warning: variable name 'rc' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:1015:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (rc)
               ^
                {
/datasets/git/sequencer.c:1016:3: warning: the value returned by this function should be used [cert-err33-c]
                fputs(buf.buf, stderr);
                ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:1016:3: note: cast the expression to void to silence this warning
/datasets/git/sequencer.c:1033:12: warning: function 'run_git_commit' has cognitive complexity of 27 (threshold 25) [readability-function-cognitive-complexity]
static int run_git_commit(const char *defmsg,
           ^
/datasets/git/sequencer.c:1039:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((flags & CLEANUP_MSG) && (flags & VERBATIM_MSG))
        ^
/datasets/git/sequencer.c:1039:28: note: +1
        if ((flags & CLEANUP_MSG) && (flags & VERBATIM_MSG))
                                  ^
/datasets/git/sequencer.c:1044:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (is_rebase_i(opts) &&
        ^
/datasets/git/sequencer.c:1046:42: note: +1
             !(!defmsg && (flags & AMEND_MSG))) &&
                                                ^
/datasets/git/sequencer.c:1045:67: note: +1
            ((opts->committer_date_is_author_date && !opts->ignore_date) ||
                                                                         ^
/datasets/git/sequencer.c:1045:44: note: +1
            ((opts->committer_date_is_author_date && !opts->ignore_date) ||
                                                  ^
/datasets/git/sequencer.c:1046:17: note: +1
             !(!defmsg && (flags & AMEND_MSG))) &&
                       ^
/datasets/git/sequencer.c:1056:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->committer_date_is_author_date)
        ^
/datasets/git/sequencer.c:1058:27: note: +2, including nesting penalty of 1, nesting level increased to 2
                             opts->ignore_date ?
                                               ^
/datasets/git/sequencer.c:1061:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->ignore_date)
        ^
/datasets/git/sequencer.c:1066:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!(flags & VERIFY_MSG))
        ^
/datasets/git/sequencer.c:1068:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((flags & AMEND_MSG))
        ^
/datasets/git/sequencer.c:1070:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->gpg_sign)
        ^
/datasets/git/sequencer.c:1072:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/sequencer.c:1074:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (defmsg)
        ^
/datasets/git/sequencer.c:1076:7: note: +1, nesting level increased to 1
        else if (!(flags & EDIT_MSG))
             ^
/datasets/git/sequencer.c:1078:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((flags & CLEANUP_MSG))
        ^
/datasets/git/sequencer.c:1080:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((flags & VERBATIM_MSG))
        ^
/datasets/git/sequencer.c:1082:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((flags & EDIT_MSG))
        ^
/datasets/git/sequencer.c:1084:7: note: +1, nesting level increased to 1
        else if (!(flags & CLEANUP_MSG) &&
             ^
/datasets/git/sequencer.c:1085:43: note: +1
                 !opts->signoff && !opts->record_origin &&
                                                        ^
/datasets/git/sequencer.c:1089:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((flags & ALLOW_EMPTY))
        ^
/datasets/git/sequencer.c:1092:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!(flags & EDIT_MSG))
        ^
/datasets/git/sequencer.c:1095:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (is_rebase_i(opts) && !(flags & EDIT_MSG))
        ^
/datasets/git/sequencer.c:1095:24: note: +1
        if (is_rebase_i(opts) && !(flags & EDIT_MSG))
                              ^
/datasets/git/sequencer.c:1097:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/sequencer.c:1039:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((flags & CLEANUP_MSG) && (flags & VERBATIM_MSG))
             ^
/datasets/git/sequencer.c:1039:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((flags & CLEANUP_MSG) && (flags & VERBATIM_MSG))
                     ^
/datasets/git/sequencer.c:999:22: note: expanded from macro 'CLEANUP_MSG'
#define CLEANUP_MSG (1<<3)
                     ^
/datasets/git/sequencer.c:1039:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((flags & CLEANUP_MSG) && (flags & VERBATIM_MSG))
                                      ^
/datasets/git/sequencer.c:1039:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((flags & CLEANUP_MSG) && (flags & VERBATIM_MSG))
                                              ^
/datasets/git/sequencer.c:1002:23: note: expanded from macro 'VERBATIM_MSG'
#define VERBATIM_MSG (1<<6)
                      ^
/datasets/git/sequencer.c:1039:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((flags & CLEANUP_MSG) && (flags & VERBATIM_MSG))
                                                            ^
                                                             {
/datasets/git/sequencer.c:1046:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
             !(!defmsg && (flags & AMEND_MSG))) &&
                           ^
/datasets/git/sequencer.c:1046:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
             !(!defmsg && (flags & AMEND_MSG))) &&
                                   ^
/datasets/git/sequencer.c:998:22: note: expanded from macro 'AMEND_MSG'
#define AMEND_MSG   (1<<2)
                     ^
/datasets/git/sequencer.c:1056:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->committer_date_is_author_date)
                                                ^
                                                 {
/datasets/git/sequencer.c:1061:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->ignore_date)
                              ^
                               {
/datasets/git/sequencer.c:1066:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & VERIFY_MSG))
              ^
/datasets/git/sequencer.c:1066:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & VERIFY_MSG))
                      ^
/datasets/git/sequencer.c:1000:22: note: expanded from macro 'VERIFY_MSG'
#define VERIFY_MSG  (1<<4)
                     ^
/datasets/git/sequencer.c:1066:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(flags & VERIFY_MSG))
                                  ^
                                   {
/datasets/git/sequencer.c:1068:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((flags & AMEND_MSG))
             ^
/datasets/git/sequencer.c:1068:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((flags & AMEND_MSG))
                     ^
/datasets/git/sequencer.c:998:22: note: expanded from macro 'AMEND_MSG'
#define AMEND_MSG   (1<<2)
                     ^
/datasets/git/sequencer.c:1068:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((flags & AMEND_MSG))
                                ^
                                 {
/datasets/git/sequencer.c:1070:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->gpg_sign)
                           ^
                            {
/datasets/git/sequencer.c:1072:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/sequencer.c:1074:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (defmsg)
                   ^
                    {
/datasets/git/sequencer.c:1076:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        else if (!(flags & EDIT_MSG))
                   ^
/datasets/git/sequencer.c:1076:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        else if (!(flags & EDIT_MSG))
                           ^
/datasets/git/sequencer.c:997:22: note: expanded from macro 'EDIT_MSG'
#define EDIT_MSG    (1<<1)
                     ^
/datasets/git/sequencer.c:1076:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!(flags & EDIT_MSG))
                                     ^
                                      {
/datasets/git/sequencer.c:1078:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((flags & CLEANUP_MSG))
             ^
/datasets/git/sequencer.c:1078:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((flags & CLEANUP_MSG))
                     ^
/datasets/git/sequencer.c:999:22: note: expanded from macro 'CLEANUP_MSG'
#define CLEANUP_MSG (1<<3)
                     ^
/datasets/git/sequencer.c:1078:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((flags & CLEANUP_MSG))
                                  ^
                                   {
/datasets/git/sequencer.c:1080:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((flags & VERBATIM_MSG))
             ^
/datasets/git/sequencer.c:1080:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((flags & VERBATIM_MSG))
                     ^
/datasets/git/sequencer.c:1002:23: note: expanded from macro 'VERBATIM_MSG'
#define VERBATIM_MSG (1<<6)
                      ^
/datasets/git/sequencer.c:1080:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((flags & VERBATIM_MSG))
                                   ^
                                    {
/datasets/git/sequencer.c:1082:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((flags & EDIT_MSG))
             ^
/datasets/git/sequencer.c:1082:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((flags & EDIT_MSG))
                     ^
/datasets/git/sequencer.c:997:22: note: expanded from macro 'EDIT_MSG'
#define EDIT_MSG    (1<<1)
                     ^
/datasets/git/sequencer.c:1082:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((flags & EDIT_MSG))
                               ^
                                {
/datasets/git/sequencer.c:1084:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        else if (!(flags & CLEANUP_MSG) &&
                   ^
/datasets/git/sequencer.c:1084:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        else if (!(flags & CLEANUP_MSG) &&
                           ^
/datasets/git/sequencer.c:999:22: note: expanded from macro 'CLEANUP_MSG'
#define CLEANUP_MSG (1<<3)
                     ^
/datasets/git/sequencer.c:1086:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                 !opts->explicit_cleanup)
                                         ^
                                          {
/datasets/git/sequencer.c:1089:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((flags & ALLOW_EMPTY))
             ^
/datasets/git/sequencer.c:1089:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((flags & ALLOW_EMPTY))
                     ^
/datasets/git/sequencer.c:996:22: note: expanded from macro 'ALLOW_EMPTY'
#define ALLOW_EMPTY (1<<0)
                     ^
/datasets/git/sequencer.c:1089:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((flags & ALLOW_EMPTY))
                                  ^
                                   {
/datasets/git/sequencer.c:1092:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & EDIT_MSG))
              ^
/datasets/git/sequencer.c:1092:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & EDIT_MSG))
                      ^
/datasets/git/sequencer.c:997:22: note: expanded from macro 'EDIT_MSG'
#define EDIT_MSG    (1<<1)
                     ^
/datasets/git/sequencer.c:1092:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(flags & EDIT_MSG))
                                ^
                                 {
/datasets/git/sequencer.c:1095:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (is_rebase_i(opts) && !(flags & EDIT_MSG))
                                   ^
/datasets/git/sequencer.c:1095:37: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (is_rebase_i(opts) && !(flags & EDIT_MSG))
                                           ^
/datasets/git/sequencer.c:997:22: note: expanded from macro 'EDIT_MSG'
#define EDIT_MSG    (1<<1)
                     ^
/datasets/git/sequencer.c:1095:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_rebase_i(opts) && !(flags & EDIT_MSG))
                                                     ^
                                                      {
/datasets/git/sequencer.c:1097:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else
        ^~~~
                        return run_command(&cmd)
/datasets/git/sequencer.c:1097:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:1101:47: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static int rest_is_empty(const struct strbuf *sb, int start)
                                              ^
/datasets/git/sequencer.c:1103:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, eol;
        ^~~~~~~~~~~
/datasets/git/sequencer.c:1103:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/sequencer.c:1103:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, eol;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:1103:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:1103:9: warning: variable 'eol' is not initialized [cppcoreguidelines-init-variables]
        int i, eol;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:1104:14: warning: variable 'nl' is not initialized [cppcoreguidelines-init-variables]
        const char *nl;
                    ^
                       = NULL
/datasets/git/sequencer.c:1104:14: warning: variable name 'nl' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:1107:18: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = start; i < sb->len; i++) {
                        ^
/datasets/git/sequencer.c:1109:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (nl)
                       ^
                        {
/datasets/git/sequencer.c:1110:10: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        eol = nl - sb->buf;
                              ^
/datasets/git/sequencer.c:1111:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/sequencer.c:1112:10: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        eol = sb->len;
                              ^
/datasets/git/sequencer.c:1119:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (i < eol)
                ^
/datasets/git/sequencer.c:1119:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (i < eol)
                       ^
/datasets/git/sequencer.c:1119:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (i < eol)
                               ^
                                {
/datasets/git/sequencer.c:1120:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!isspace(sb->buf[i++]))
                             ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/sequencer.c:1120:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!isspace(sb->buf[i++]))
                                                   ^
                                                    {
/datasets/git/sequencer.c:1131:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            cleanup_mode == COMMIT_MSG_CLEANUP_SCISSORS)
                                                        ^
                                                         {
/datasets/git/sequencer.c:1133:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cleanup_mode != COMMIT_MSG_CLEANUP_NONE)
                                                    ^
                                                     {
/datasets/git/sequencer.c:1141:43: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
int message_is_empty(const struct strbuf *sb,
                                          ^
/datasets/git/sequencer.c:1144:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cleanup_mode == COMMIT_MSG_CLEANUP_NONE && sb->len)
                                                               ^
                                                                {
/datasets/git/sequencer.c:1153:45: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
int template_untouched(const struct strbuf *sb, const char *template_file,
                                            ^
/datasets/git/sequencer.c:1157:14: warning: variable 'start' is not initialized [cppcoreguidelines-init-variables]
        const char *start;
                    ^
                          = NULL
/datasets/git/sequencer.c:1159:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cleanup_mode == COMMIT_MSG_CLEANUP_NONE && sb->len)
                                                               ^
                                                                {
/datasets/git/sequencer.c:1162:71: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!template_file || strbuf_read_file(&tmpl, template_file, 0) <= 0)
                                                                             ^
                                                                              {
/datasets/git/sequencer.c:1166:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!skip_prefix(sb->buf, tmpl.buf, &start))
                                                    ^
                                                     {
/datasets/git/sequencer.c:1169:27: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return rest_is_empty(sb, start - sb->buf);
                                 ^
/datasets/git/sequencer.c:1177:26: warning: variable 'transaction' is not initialized [cppcoreguidelines-init-variables]
        struct ref_transaction *transaction;
                                ^
                                            = NULL
/datasets/git/sequencer.c:1178:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/sequencer.c:1179:14: warning: variable 'nl' is not initialized [cppcoreguidelines-init-variables]
        const char *nl;
                    ^
                       = NULL
/datasets/git/sequencer.c:1179:14: warning: variable name 'nl' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:1213:6: warning: variable 'code' is not initialized [cppcoreguidelines-init-variables]
        int code;
            ^
                 = 0
/datasets/git/sequencer.c:1214:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/sequencer.c:1217:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!hook_path)
                       ^
                        {
/datasets/git/sequencer.c:1226:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (code)
                 ^
                  {
/datasets/git/sequencer.c:1237:45: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void commit_post_rewrite(struct repository *r,
                                            ^
/datasets/git/sequencer.c:1241:28: warning: variable 'cfg' is not initialized [cppcoreguidelines-init-variables]
        struct notes_rewrite_cfg *cfg;
                                  ^
                                      = NULL
/datasets/git/sequencer.c:1252:59: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int run_prepare_commit_msg_hook(struct repository *r,
                                                          ^
/datasets/git/sequencer.c:1257:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *name, *arg1 = NULL, *arg2 = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:1257:14: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
        const char *name, *arg1 = NULL, *arg2 = NULL;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:1260:20: warning: Access to field 'buf' results in a dereference of a null pointer (loaded from variable 'msg') [clang-analyzer-core.NullDereference]
        if (write_message(msg->buf, msg->len, name, 0))
                          ^
/datasets/git/sequencer.c:1630:6: note: Assuming the condition is true
        if (!(flags & EDIT_MSG) && !(flags & VERIFY_MSG)) {
            ^~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:1630:6: note: Left side of '&&' is true
/datasets/git/sequencer.c:1630:29: note: Assuming the condition is true
        if (!(flags & EDIT_MSG) && !(flags & VERIFY_MSG)) {
                                   ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:1630:2: note: Taking true branch
        if (!(flags & EDIT_MSG) && !(flags & VERIFY_MSG)) {
        ^
/datasets/git/sequencer.c:1634:7: note: Assuming 'msg_file' is null
                if (msg_file && strbuf_read_file(&sb, msg_file, 2048) < 0)
                    ^~~~~~~~
/datasets/git/sequencer.c:1634:16: note: Left side of '&&' is false
                if (msg_file && strbuf_read_file(&sb, msg_file, 2048) < 0)
                             ^
/datasets/git/sequencer.c:1639:26: note: 'msg_file' is null
                res = try_to_commit(r, msg_file ? &sb : NULL,
                                       ^~~~~~~~
/datasets/git/sequencer.c:1639:26: note: '?' condition is false
/datasets/git/sequencer.c:1639:26: note: Passing null pointer value via 2nd parameter 'msg'
                res = try_to_commit(r, msg_file ? &sb : NULL,
                                       ^~~~~~~~
/datasets/git/sequencer.c:1639:9: note: Calling 'try_to_commit'
                res = try_to_commit(r, msg_file ? &sb : NULL,
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:1448:7: note: Assuming the condition is false
        if ((flags & CLEANUP_MSG) && (flags & VERBATIM_MSG))
             ^~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:1448:28: note: Left side of '&&' is false
        if ((flags & CLEANUP_MSG) && (flags & VERBATIM_MSG))
                                  ^
/datasets/git/sequencer.c:1451:2: note: Taking false branch
        if (parse_head(r, &current_head))
        ^
/datasets/git/sequencer.c:1454:6: note: Assuming the condition is false
        if (flags & AMEND_MSG) {
            ^~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:1454:2: note: Taking false branch
        if (flags & AMEND_MSG) {
        ^
/datasets/git/sequencer.c:1476:13: note: 'current_head' is null
        } else if (current_head &&
                   ^~~~~~~~~~~~
/datasets/git/sequencer.c:1476:26: note: Left side of '&&' is false
        } else if (current_head &&
                                ^
/datasets/git/sequencer.c:1481:6: note: Assuming the condition is false
        if (write_index_as_tree(&tree, r->index, r->index_file, 0, NULL)) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:1481:2: note: Taking false branch
        if (write_index_as_tree(&tree, r->index, r->index_file, 0, NULL)) {
        ^
/datasets/git/sequencer.c:1486:6: note: Assuming the condition is false
        if (!(flags & ALLOW_EMPTY)) {
            ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:1486:2: note: Taking false branch
        if (!(flags & ALLOW_EMPTY)) {
        ^
/datasets/git/sequencer.c:1509:6: note: Assuming the condition is true
        if (hook_exists("prepare-commit-msg")) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:1509:2: note: Taking true branch
        if (hook_exists("prepare-commit-msg")) {
        ^
/datasets/git/sequencer.c:1510:40: note: Passing null pointer value via 2nd parameter 'msg'
                res = run_prepare_commit_msg_hook(r, msg, hook_commit);
                                                     ^~~
/datasets/git/sequencer.c:1510:9: note: Calling 'run_prepare_commit_msg_hook'
                res = run_prepare_commit_msg_hook(r, msg, hook_commit);
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:1260:20: note: Access to field 'buf' results in a dereference of a null pointer (loaded from variable 'msg')
        if (write_message(msg->buf, msg->len, name, 0))
                          ^~~
/datasets/git/sequencer.c:1260:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_message(msg->buf, msg->len, name, 0))
                                                       ^
                                                        {
/datasets/git/sequencer.c:1270:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            arg1, arg2, NULL))
                                              ^
                                               {
/datasets/git/sequencer.c:1310:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (config_exists)
                          ^
                           {
/datasets/git/sequencer.c:1312:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else
        ^~~~
                        return _(implicit_ident_advice_noconfig)
/datasets/git/sequencer.c:1312:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:1317:46: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void print_commit_summary(struct repository *r,
                                             ^
/datasets/git/sequencer.c:1323:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/sequencer.c:1325:14: warning: variable 'head' is not initialized [cppcoreguidelines-init-variables]
        const char *head;
                    ^
                         = NULL
/datasets/git/sequencer.c:1329:20: warning: variable 'refs' is not initialized [cppcoreguidelines-init-variables]
        struct ref_store *refs;
                          ^
                               = NULL
/datasets/git/sequencer.c:1332:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!commit)
                    ^
                     {
/datasets/git/sequencer.c:1334:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_commit(commit))
                                 ^
                                  {
/datasets/git/sequencer.c:1345:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & SUMMARY_SHOW_AUTHOR_DATE) {
            ^
/datasets/git/sequencer.c:1345:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & SUMMARY_SHOW_AUTHOR_DATE) {
                    ^
/datasets/git/./sequencer.h:227:35: note: expanded from macro 'SUMMARY_SHOW_AUTHOR_DATE'
#define SUMMARY_SHOW_AUTHOR_DATE (1 << 1)
                                  ^
/datasets/git/sequencer.c:1369:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                DIFF_FORMAT_SHORTSTAT | DIFF_FORMAT_SUMMARY;
                ^
/datasets/git/./diff.h:104:31: note: expanded from macro 'DIFF_FORMAT_SHORTSTAT'
#define DIFF_FORMAT_SHORTSTAT   0x0020
                                ^~~~~~
/datasets/git/sequencer.c:1380:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!head)
                  ^
                   {
/datasets/git/sequencer.c:1382:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(head, "HEAD"))
                                  ^
                                   {
/datasets/git/sequencer.c:1384:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/sequencer.c:1386:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        printf("[%s%s ", head, (flags & SUMMARY_INITIAL_COMMIT) ?
                                ^
/datasets/git/sequencer.c:1386:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        printf("[%s%s ", head, (flags & SUMMARY_INITIAL_COMMIT) ?
                                        ^
/datasets/git/./sequencer.h:226:35: note: expanded from macro 'SUMMARY_INITIAL_COMMIT'
#define SUMMARY_INITIAL_COMMIT   (1 << 0)
                                  ^
/datasets/git/sequencer.c:1399:42: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int parse_head(struct repository *r, struct commit **head)
                                         ^
/datasets/git/sequencer.c:1401:17: warning: variable 'current_head' is not initialized [cppcoreguidelines-init-variables]
        struct commit *current_head;
                       ^
                                    = NULL
/datasets/git/sequencer.c:1408:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!current_head)
                                  ^
                                   {
/datasets/git/sequencer.c:1414:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (parse_commit(current_head))
                                               ^
                                                {
/datasets/git/sequencer.c:1431:12: warning: function 'try_to_commit' has cognitive complexity of 71 (threshold 25) [readability-function-cognitive-complexity]
static int try_to_commit(struct repository *r,
           ^
/datasets/git/sequencer.c:1448:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((flags & CLEANUP_MSG) && (flags & VERBATIM_MSG))
        ^
/datasets/git/sequencer.c:1448:28: note: +1
        if ((flags & CLEANUP_MSG) && (flags & VERBATIM_MSG))
                                  ^
/datasets/git/sequencer.c:1451:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (parse_head(r, &current_head))
        ^
/datasets/git/sequencer.c:1454:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (flags & AMEND_MSG) {
        ^
/datasets/git/sequencer.c:1460:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!msg) {
                ^
/datasets/git/sequencer.c:1470:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!author) {
                ^
/datasets/git/sequencer.c:1472:4: note: +1
                        goto out;
                        ^
/datasets/git/sequencer.c:1476:9: note: +1, nesting level increased to 1
        } else if (current_head &&
               ^
/datasets/git/sequencer.c:1476:26: note: +1
        } else if (current_head &&
                                ^
/datasets/git/sequencer.c:1477:37: note: +1
                   (!(flags & CREATE_ROOT_COMMIT) || (flags & AMEND_MSG))) {
                                                  ^
/datasets/git/sequencer.c:1481:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (write_index_as_tree(&tree, r->index, r->index_file, 0, NULL)) {
        ^
/datasets/git/sequencer.c:1483:3: note: +1
                goto out;
                ^
/datasets/git/sequencer.c:1486:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!(flags & ALLOW_EMPTY)) {
        ^
/datasets/git/sequencer.c:1489:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (flags & AMEND_MSG) {
                ^
/datasets/git/sequencer.c:1490:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (current_head->parents) {
                        ^
/datasets/git/sequencer.c:1492:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (repo_parse_commit(r, first_parent)) {
                                ^
/datasets/git/sequencer.c:1494:6: note: +1
                                        goto out;
                                        ^
/datasets/git/sequencer.c:1496:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/sequencer.c:1500:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (oideq(first_parent
                ^
/datasets/git/sequencer.c:1501:6: note: +2, including nesting penalty of 1, nesting level increased to 2
                          ? get_commit_tree_oid(first_parent)
                          ^
/datasets/git/sequencer.c:1505:4: note: +1
                        goto out;
                        ^
/datasets/git/sequencer.c:1509:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (hook_exists("prepare-commit-msg")) {
        ^
/datasets/git/sequencer.c:1511:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (res)
                ^
/datasets/git/sequencer.c:1513:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (strbuf_read_file(&commit_msg, git_path_commit_editmsg(),
                ^
/datasets/git/sequencer.c:1518:4: note: +1
                        goto out;
                        ^
/datasets/git/sequencer.c:1523:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (flags & CLEANUP_MSG)
        ^
/datasets/git/sequencer.c:1525:7: note: +1, nesting level increased to 1
        else if (flags & VERBATIM_MSG)
             ^
/datasets/git/sequencer.c:1527:7: note: +1, nesting level increased to 1
        else if ((opts->signoff || opts->record_origin) &&
             ^
/datasets/git/sequencer.c:1527:50: note: +1
        else if ((opts->signoff || opts->record_origin) &&
                                                        ^
/datasets/git/sequencer.c:1527:26: note: +1
        else if ((opts->signoff || opts->record_origin) &&
                                ^
/datasets/git/sequencer.c:1530:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/sequencer.c:1533:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (cleanup != COMMIT_MSG_CLEANUP_NONE)
        ^
/datasets/git/sequencer.c:1535:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((flags & EDIT_MSG) && message_is_empty(msg, cleanup)) {
        ^
/datasets/git/sequencer.c:1535:25: note: +1
        if ((flags & EDIT_MSG) && message_is_empty(msg, cleanup)) {
                               ^
/datasets/git/sequencer.c:1537:3: note: +1
                goto out;
                ^
/datasets/git/sequencer.c:1540:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->committer_date_is_author_date) {
        ^
/datasets/git/sequencer.c:1544:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!opts->ignore_date) {
                ^
/datasets/git/sequencer.c:1545:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (split_ident_line(&id, author, (int)strlen(author)) < 0) {
                        ^
/datasets/git/sequencer.c:1548:5: note: +1
                                goto out;
                                ^
/datasets/git/sequencer.c:1550:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!id.date_begin) {
                        ^
/datasets/git/sequencer.c:1553:5: note: +1
                                goto out;
                                ^
/datasets/git/sequencer.c:1560:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/sequencer.c:1566:29: note: +2, including nesting penalty of 1, nesting level increased to 2
                                      opts->ignore_date ? NULL : date.buf,
                                                        ^
/datasets/git/sequencer.c:1569:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/sequencer.c:1573:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->ignore_date) {
        ^
/datasets/git/sequencer.c:1577:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (split_ident_line(&id, author, strlen(author)) < 0) {
                ^
/datasets/git/sequencer.c:1579:4: note: +1
                        goto out;
                        ^
/datasets/git/sequencer.c:1589:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (commit_tree_extended(msg->buf, msg->len, &tree, parents, oid,
        ^
/datasets/git/sequencer.c:1592:3: note: +1
                goto out;
                ^
/datasets/git/sequencer.c:1595:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (update_head_with_reflog(current_head, oid, opts->reflog_message,
        ^
/datasets/git/sequencer.c:1598:3: note: +1
                goto out;
                ^
/datasets/git/sequencer.c:1602:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (flags & AMEND_MSG)
        ^
/datasets/git/sequencer.c:1431:45: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int try_to_commit(struct repository *r,
                                            ^
/datasets/git/sequencer.c:1445:31: warning: variable 'cleanup' is not initialized [cppcoreguidelines-init-variables]
        enum commit_msg_cleanup_mode cleanup;
                                     ^
/datasets/git/sequencer.c:1448:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((flags & CLEANUP_MSG) && (flags & VERBATIM_MSG))
             ^
/datasets/git/sequencer.c:1448:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((flags & CLEANUP_MSG) && (flags & VERBATIM_MSG))
                     ^
/datasets/git/sequencer.c:999:22: note: expanded from macro 'CLEANUP_MSG'
#define CLEANUP_MSG (1<<3)
                     ^
/datasets/git/sequencer.c:1448:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((flags & CLEANUP_MSG) && (flags & VERBATIM_MSG))
                                      ^
/datasets/git/sequencer.c:1448:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((flags & CLEANUP_MSG) && (flags & VERBATIM_MSG))
                                              ^
/datasets/git/sequencer.c:1002:23: note: expanded from macro 'VERBATIM_MSG'
#define VERBATIM_MSG (1<<6)
                      ^
/datasets/git/sequencer.c:1448:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((flags & CLEANUP_MSG) && (flags & VERBATIM_MSG))
                                                            ^
                                                             {
/datasets/git/sequencer.c:1451:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_head(r, &current_head))
                                         ^
                                          {
/datasets/git/sequencer.c:1454:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & AMEND_MSG) {
            ^
/datasets/git/sequencer.c:1454:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & AMEND_MSG) {
                    ^
/datasets/git/sequencer.c:998:22: note: expanded from macro 'AMEND_MSG'
#define AMEND_MSG   (1<<2)
                     ^
/datasets/git/sequencer.c:1474:30: warning: Access to field 'parents' results in a dereference of a null pointer (loaded from variable 'current_head') [clang-analyzer-core.NullDereference]
                parents = copy_commit_list(current_head->parents);
                                           ^
/datasets/git/sequencer.c:1630:6: note: Assuming the condition is true
        if (!(flags & EDIT_MSG) && !(flags & VERIFY_MSG)) {
            ^~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:1630:6: note: Left side of '&&' is true
/datasets/git/sequencer.c:1630:29: note: Assuming the condition is true
        if (!(flags & EDIT_MSG) && !(flags & VERIFY_MSG)) {
                                   ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:1630:2: note: Taking true branch
        if (!(flags & EDIT_MSG) && !(flags & VERIFY_MSG)) {
        ^
/datasets/git/sequencer.c:1634:7: note: Assuming 'msg_file' is non-null
                if (msg_file && strbuf_read_file(&sb, msg_file, 2048) < 0)
                    ^~~~~~~~
/datasets/git/sequencer.c:1634:7: note: Left side of '&&' is true
/datasets/git/sequencer.c:1634:19: note: Assuming the condition is false
                if (msg_file && strbuf_read_file(&sb, msg_file, 2048) < 0)
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:1634:3: note: Taking false branch
                if (msg_file && strbuf_read_file(&sb, msg_file, 2048) < 0)
                ^
/datasets/git/sequencer.c:1639:26: note: 'msg_file' is non-null
                res = try_to_commit(r, msg_file ? &sb : NULL,
                                       ^~~~~~~~
/datasets/git/sequencer.c:1639:26: note: '?' condition is true
/datasets/git/sequencer.c:1639:9: note: Calling 'try_to_commit'
                res = try_to_commit(r, msg_file ? &sb : NULL,
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:1448:7: note: Assuming the condition is false
        if ((flags & CLEANUP_MSG) && (flags & VERBATIM_MSG))
             ^~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:1448:28: note: Left side of '&&' is false
        if ((flags & CLEANUP_MSG) && (flags & VERBATIM_MSG))
                                  ^
/datasets/git/sequencer.c:1451:6: note: Calling 'parse_head'
        if (parse_head(r, &current_head))
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:1404:6: note: Assuming the condition is true
        if (get_oid("HEAD", &oid)) {
            ^
/datasets/git/./refs/../cache.h:1487:28: note: expanded from macro 'get_oid'
#define get_oid(str, oid)               repo_get_oid(the_repository, str, oid)
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:1404:2: note: Taking true branch
        if (get_oid("HEAD", &oid)) {
        ^
/datasets/git/sequencer.c:1405:3: note: Null pointer value stored to 'current_head'
                current_head = NULL;
                ^~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:1417:2: note: Null pointer value stored to 'current_head'
        *head = current_head;
        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:1451:6: note: Returning from 'parse_head'
        if (parse_head(r, &current_head))
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:1451:2: note: Taking false branch
        if (parse_head(r, &current_head))
        ^
/datasets/git/sequencer.c:1454:6: note: Assuming the condition is true
        if (flags & AMEND_MSG) {
            ^~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:1454:2: note: Taking true branch
        if (flags & AMEND_MSG) {
        ^
/datasets/git/sequencer.c:1460:8: note: 'msg' is non-null
                if (!msg) {
                     ^~~
/datasets/git/sequencer.c:1460:3: note: Taking false branch
                if (!msg) {
                ^
/datasets/git/sequencer.c:1470:7: note: Assuming 'author' is non-null
                if (!author) {
                    ^~~~~~~
/datasets/git/sequencer.c:1470:3: note: Taking false branch
                if (!author) {
                ^
/datasets/git/sequencer.c:1474:30: note: Access to field 'parents' results in a dereference of a null pointer (loaded from variable 'current_head')
                parents = copy_commit_list(current_head->parents);
                                           ^~~~~~~~~~~~
/datasets/git/sequencer.c:1477:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                   (!(flags & CREATE_ROOT_COMMIT) || (flags & AMEND_MSG))) {
                      ^
/datasets/git/sequencer.c:1477:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                   (!(flags & CREATE_ROOT_COMMIT) || (flags & AMEND_MSG))) {
                              ^
/datasets/git/sequencer.c:1001:29: note: expanded from macro 'CREATE_ROOT_COMMIT'
#define CREATE_ROOT_COMMIT (1<<5)
                            ^
/datasets/git/sequencer.c:1477:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                   (!(flags & CREATE_ROOT_COMMIT) || (flags & AMEND_MSG))) {
                                                      ^
/datasets/git/sequencer.c:1477:49: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                   (!(flags & CREATE_ROOT_COMMIT) || (flags & AMEND_MSG))) {
                                                              ^
/datasets/git/sequencer.c:998:22: note: expanded from macro 'AMEND_MSG'
#define AMEND_MSG   (1<<2)
                     ^
/datasets/git/sequencer.c:1486:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & ALLOW_EMPTY)) {
              ^
/datasets/git/sequencer.c:1486:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & ALLOW_EMPTY)) {
                      ^
/datasets/git/sequencer.c:996:22: note: expanded from macro 'ALLOW_EMPTY'
#define ALLOW_EMPTY (1<<0)
                     ^
/datasets/git/sequencer.c:1489:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flags & AMEND_MSG) {
                    ^
/datasets/git/sequencer.c:1489:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flags & AMEND_MSG) {
                            ^
/datasets/git/sequencer.c:998:22: note: expanded from macro 'AMEND_MSG'
#define AMEND_MSG   (1<<2)
                     ^
/datasets/git/sequencer.c:1511:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (res)
                        ^
                         {
/datasets/git/sequencer.c:1514:10: warning: 2048 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                     2048) < 0) {
                                     ^
/datasets/git/sequencer.c:1523:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & CLEANUP_MSG)
            ^
/datasets/git/sequencer.c:1523:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & CLEANUP_MSG)
                    ^
/datasets/git/sequencer.c:999:22: note: expanded from macro 'CLEANUP_MSG'
#define CLEANUP_MSG (1<<3)
                     ^
/datasets/git/sequencer.c:1523:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & CLEANUP_MSG)
                                ^
                                 {
/datasets/git/sequencer.c:1525:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        else if (flags & VERBATIM_MSG)
                 ^
/datasets/git/sequencer.c:1525:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        else if (flags & VERBATIM_MSG)
                         ^
/datasets/git/sequencer.c:1002:23: note: expanded from macro 'VERBATIM_MSG'
#define VERBATIM_MSG (1<<6)
                      ^
/datasets/git/sequencer.c:1525:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (flags & VERBATIM_MSG)
                                      ^
                                       {
/datasets/git/sequencer.c:1528:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                 !opts->explicit_cleanup)
                                         ^
                                          {
/datasets/git/sequencer.c:1530:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/sequencer.c:1533:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cleanup != COMMIT_MSG_CLEANUP_NONE)
                                               ^
                                                {
/datasets/git/sequencer.c:1535:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((flags & EDIT_MSG) && message_is_empty(msg, cleanup)) {
             ^
/datasets/git/sequencer.c:1535:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((flags & EDIT_MSG) && message_is_empty(msg, cleanup)) {
                     ^
/datasets/git/sequencer.c:997:22: note: expanded from macro 'EDIT_MSG'
#define EDIT_MSG    (1<<1)
                     ^
/datasets/git/sequencer.c:1541:22: warning: variable name 'id' is too short, expected at least 3 characters [readability-identifier-length]
                struct ident_split id;
                                   ^
/datasets/git/sequencer.c:1563:25: warning: function is not thread safe [concurrency-mt-unsafe]
                committer = fmt_ident(getenv("GIT_COMMITTER_NAME"),
                                      ^
/datasets/git/sequencer.c:1564:11: warning: function is not thread safe [concurrency-mt-unsafe]
                                      getenv("GIT_COMMITTER_EMAIL"),
                                      ^
/datasets/git/sequencer.c:1574:22: warning: variable name 'id' is too short, expected at least 3 characters [readability-identifier-length]
                struct ident_split id;
                                   ^
/datasets/git/sequencer.c:1575:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                char *name, *email;
                ^~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:1575:9: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
                char *name, *email;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:1575:16: warning: variable 'email' is not initialized [cppcoreguidelines-init-variables]
                char *name, *email;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:1577:37: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                if (split_ident_line(&id, author, strlen(author)) < 0) {
                                                  ^
/datasets/git/sequencer.c:1589:27: warning: Access to field 'buf' results in a dereference of a null pointer (loaded from variable 'msg') [clang-analyzer-core.NullDereference]
        if (commit_tree_extended(msg->buf, msg->len, &tree, parents, oid,
                                 ^
/datasets/git/sequencer.c:1630:6: note: Assuming the condition is true
        if (!(flags & EDIT_MSG) && !(flags & VERIFY_MSG)) {
            ^~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:1630:6: note: Left side of '&&' is true
/datasets/git/sequencer.c:1630:29: note: Assuming the condition is true
        if (!(flags & EDIT_MSG) && !(flags & VERIFY_MSG)) {
                                   ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:1630:2: note: Taking true branch
        if (!(flags & EDIT_MSG) && !(flags & VERIFY_MSG)) {
        ^
/datasets/git/sequencer.c:1634:7: note: Assuming 'msg_file' is null
                if (msg_file && strbuf_read_file(&sb, msg_file, 2048) < 0)
                    ^~~~~~~~
/datasets/git/sequencer.c:1634:16: note: Left side of '&&' is false
                if (msg_file && strbuf_read_file(&sb, msg_file, 2048) < 0)
                             ^
/datasets/git/sequencer.c:1639:26: note: 'msg_file' is null
                res = try_to_commit(r, msg_file ? &sb : NULL,
                                       ^~~~~~~~
/datasets/git/sequencer.c:1639:26: note: '?' condition is false
/datasets/git/sequencer.c:1639:26: note: Passing null pointer value via 2nd parameter 'msg'
                res = try_to_commit(r, msg_file ? &sb : NULL,
                                       ^~~~~~~~
/datasets/git/sequencer.c:1639:9: note: Calling 'try_to_commit'
                res = try_to_commit(r, msg_file ? &sb : NULL,
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:1448:7: note: Assuming the condition is false
        if ((flags & CLEANUP_MSG) && (flags & VERBATIM_MSG))
             ^~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:1448:28: note: Left side of '&&' is false
        if ((flags & CLEANUP_MSG) && (flags & VERBATIM_MSG))
                                  ^
/datasets/git/sequencer.c:1451:2: note: Taking false branch
        if (parse_head(r, &current_head))
        ^
/datasets/git/sequencer.c:1454:6: note: Assuming the condition is false
        if (flags & AMEND_MSG) {
            ^~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:1454:2: note: Taking false branch
        if (flags & AMEND_MSG) {
        ^
/datasets/git/sequencer.c:1476:13: note: 'current_head' is null
        } else if (current_head &&
                   ^~~~~~~~~~~~
/datasets/git/sequencer.c:1476:26: note: Left side of '&&' is false
        } else if (current_head &&
                                ^
/datasets/git/sequencer.c:1481:6: note: Assuming the condition is false
        if (write_index_as_tree(&tree, r->index, r->index_file, 0, NULL)) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:1481:2: note: Taking false branch
        if (write_index_as_tree(&tree, r->index, r->index_file, 0, NULL)) {
        ^
/datasets/git/sequencer.c:1486:6: note: Assuming the condition is false
        if (!(flags & ALLOW_EMPTY)) {
            ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:1486:2: note: Taking false branch
        if (!(flags & ALLOW_EMPTY)) {
        ^
/datasets/git/sequencer.c:1509:6: note: Assuming the condition is false
        if (hook_exists("prepare-commit-msg")) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:1509:2: note: Taking false branch
        if (hook_exists("prepare-commit-msg")) {
        ^
/datasets/git/sequencer.c:1523:2: note: Taking false branch
        if (flags & CLEANUP_MSG)
        ^
/datasets/git/sequencer.c:1525:11: note: Assuming the condition is true
        else if (flags & VERBATIM_MSG)
                 ^~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:1525:7: note: Taking true branch
        else if (flags & VERBATIM_MSG)
             ^
/datasets/git/sequencer.c:1533:6: note: 'cleanup' is equal to COMMIT_MSG_CLEANUP_NONE
        if (cleanup != COMMIT_MSG_CLEANUP_NONE)
            ^~~~~~~
/datasets/git/sequencer.c:1533:2: note: Taking false branch
        if (cleanup != COMMIT_MSG_CLEANUP_NONE)
        ^
/datasets/git/sequencer.c:1535:25: note: Left side of '&&' is false
        if ((flags & EDIT_MSG) && message_is_empty(msg, cleanup)) {
                               ^
/datasets/git/sequencer.c:1540:6: note: Assuming field 'committer_date_is_author_date' is 0
        if (opts->committer_date_is_author_date) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:1540:2: note: Taking false branch
        if (opts->committer_date_is_author_date) {
        ^
/datasets/git/sequencer.c:1573:6: note: Assuming field 'ignore_date' is 0
        if (opts->ignore_date) {
            ^~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:1573:2: note: Taking false branch
        if (opts->ignore_date) {
        ^
/datasets/git/sequencer.c:1589:27: note: Access to field 'buf' results in a dereference of a null pointer (loaded from variable 'msg')
        if (commit_tree_extended(msg->buf, msg->len, &tree, parents, oid,
                                 ^~~
/datasets/git/sequencer.c:1602:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & AMEND_MSG)
            ^
/datasets/git/sequencer.c:1602:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & AMEND_MSG)
                    ^
/datasets/git/sequencer.c:998:22: note: expanded from macro 'AMEND_MSG'
#define AMEND_MSG   (1<<2)
                     ^
/datasets/git/sequencer.c:1602:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & AMEND_MSG)
                              ^
                               {
/datasets/git/sequencer.c:1617:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       NULL, REF_NO_DEREF, UPDATE_REFS_MSG_ON_ERR))
                             ^
/datasets/git/./refs/../refs.h:631:23: note: expanded from macro 'REF_NO_DEREF'
#define REF_NO_DEREF (1 << 0)
                      ^
/datasets/git/sequencer.c:1617:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                       NULL, REF_NO_DEREF, UPDATE_REFS_MSG_ON_ERR))
                                                                   ^
                                                                    {
/datasets/git/sequencer.c:1623:41: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int do_commit(struct repository *r,
                                        ^
/datasets/git/sequencer.c:1630:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & EDIT_MSG) && !(flags & VERIFY_MSG)) {
              ^
/datasets/git/sequencer.c:1630:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & EDIT_MSG) && !(flags & VERIFY_MSG)) {
                      ^
/datasets/git/sequencer.c:997:22: note: expanded from macro 'EDIT_MSG'
#define EDIT_MSG    (1<<1)
                     ^
/datasets/git/sequencer.c:1630:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & EDIT_MSG) && !(flags & VERIFY_MSG)) {
                                     ^
/datasets/git/sequencer.c:1630:39: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & EDIT_MSG) && !(flags & VERIFY_MSG)) {
                                             ^
/datasets/git/sequencer.c:1000:22: note: expanded from macro 'VERIFY_MSG'
#define VERIFY_MSG  (1<<4)
                     ^
/datasets/git/sequencer.c:1632:17: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                struct strbuf sb = STRBUF_INIT;
                              ^
/datasets/git/sequencer.c:1634:51: warning: 2048 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (msg_file && strbuf_read_file(&sb, msg_file, 2048) < 0)
                                                                ^
/datasets/git/sequencer.c:1634:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (msg_file && strbuf_read_file(&sb, msg_file, 2048) < 0)
                                                                          ^
                                                                           {
/datasets/git/sequencer.c:1646:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!is_rebase_i(opts))
                                               ^
                                                {
/datasets/git/sequencer.c:1648:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                                SUMMARY_SHOW_AUTHOR_DATE);
                                                ^
/datasets/git/./sequencer.h:227:35: note: expanded from macro 'SUMMARY_SHOW_AUTHOR_DATE'
#define SUMMARY_SHOW_AUTHOR_DATE (1 << 1)
                                  ^
/datasets/git/sequencer.c:1653:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_rebase_i(opts) && oid)
                                             ^
                                              {
/datasets/git/sequencer.c:1654:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (write_rebase_head(oid))
                                                   ^
                                                    {
/datasets/git/sequencer.c:1664:26: warning: variable 'ptree_oid' is not initialized [cppcoreguidelines-init-variables]
        const struct object_id *ptree_oid;
                                ^
                                          = NULL
/datasets/git/sequencer.c:1666:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_commit(commit))
                                 ^
                                  {
/datasets/git/sequencer.c:1671:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (parse_commit(parent))
                                         ^
                                          {
/datasets/git/sequencer.c:1689:43: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int allow_empty(struct repository *r,
                                          ^
/datasets/git/sequencer.c:1693:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int index_unchanged, originally_empty;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:1693:6: warning: variable 'index_unchanged' is not initialized [cppcoreguidelines-init-variables]
        int index_unchanged, originally_empty;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:1693:23: warning: variable 'originally_empty' is not initialized [cppcoreguidelines-init-variables]
        int index_unchanged, originally_empty;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:1708:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opts->allow_empty)
                               ^
                                {
/datasets/git/sequencer.c:1712:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (index_unchanged < 0)
                                ^
                                 {
/datasets/git/sequencer.c:1714:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!index_unchanged)
                             ^
                              {
/datasets/git/sequencer.c:1717:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->keep_redundant_commits)
                                         ^
                                          {
/datasets/git/sequencer.c:1721:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (originally_empty < 0)
                                 ^
                                  {
/datasets/git/sequencer.c:1723:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (originally_empty)
                             ^
                              {
/datasets/git/sequencer.c:1725:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (opts->drop_redundant_commits)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:1725:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (opts->drop_redundant_commits)
                                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:1727:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:1731:8: warning: accessing fields in struct '' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
static struct {
       ^
/datasets/git/sequencer.c:1731:8: note: use "__attribute__((aligned(16)))" to align struct '' to 16 bytes
/datasets/git/sequencer.c:1734:3: warning: variable 'todo_command_info' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} todo_command_info[] = {
  ^
/datasets/git/sequencer.c:1754:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (command < TODO_COMMENT)
                                   ^
                                    {
/datasets/git/sequencer.c:1761:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (command < TODO_COMMENT)
                                   ^
                                    {
/datasets/git/sequencer.c:1793:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        TODO_EDIT_MERGE_MSG    = (1 << 0),
                                  ^
/datasets/git/sequencer.c:1794:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        TODO_REPLACE_FIXUP_MSG = (1 << 1),
                                  ^
/datasets/git/sequencer.c:1795:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        TODO_EDIT_FIXUP_MSG    = (1 << 2),
                                  ^
/datasets/git/sequencer.c:1806:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return command == TODO_FIXUP && ((flag & TODO_REPLACE_FIXUP_MSG) ||
                                          ^      ~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:1807:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                         (flag & TODO_EDIT_FIXUP_MSG));
                                          ^      ~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:1814:70: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
static void add_commented_lines(struct strbuf *buf, const void *str, size_t len)
                                                                     ^
/datasets/git/sequencer.c:1816:14: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
        const char *s = str;
                    ^
/datasets/git/sequencer.c:1817:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (len > 0 && s[0] == comment_line_char) {
        ^
/datasets/git/sequencer.c:1817:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (len > 0 && s[0] == comment_line_char) {
               ^
/datasets/git/sequencer.c:1818:10: warning: variable 'count' is not initialized [cppcoreguidelines-init-variables]
                size_t count;
                       ^
                             = 0
/datasets/git/sequencer.c:1819:15: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
                const char *n = memchr(s, '\n', len);
                            ^
/datasets/git/sequencer.c:1820:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!n)
                       ^
                        {
/datasets/git/sequencer.c:1822:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/sequencer.c:1856:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct strbuf buf1 = STRBUF_INIT, buf2 = STRBUF_INIT;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:1857:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *s, *start;
        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:1857:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/sequencer.c:1857:14: warning: variable 's' is not initialized [cppcoreguidelines-init-variables]
        const char *s, *start;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:1857:14: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:1857:18: warning: variable 'start' is not initialized [cppcoreguidelines-init-variables]
        const char *s, *start;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:1858:8: warning: variable 'orig_msg' is not initialized [cppcoreguidelines-init-variables]
        char *orig_msg;
              ^
                       = NULL
/datasets/git/sequencer.c:1859:9: warning: variable 'orig_msg_len' is not initialized [cppcoreguidelines-init-variables]
        size_t orig_msg_len;
               ^
                            = 0
/datasets/git/sequencer.c:1860:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 1;
            ^
/datasets/git/sequencer.c:1865:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (s) {
        ^
/datasets/git/sequencer.c:1865:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 's' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (s) {
               ^
/datasets/git/sequencer.c:1866:15: warning: variable 'next' is not initialized [cppcoreguidelines-init-variables]
                const char *next;
                            ^
                                 = NULL
/datasets/git/sequencer.c:1867:10: warning: variable 'off' is not initialized [cppcoreguidelines-init-variables]
                size_t off;
                       ^
                           = 0
/datasets/git/sequencer.c:1875:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (off)
                                ^
                                 {
/datasets/git/sequencer.c:1883:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (*next == '\n')
                                          ^
                                           {
/datasets/git/sequencer.c:1897:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (s)
                              ^
                               {
/datasets/git/sequencer.c:1911:14: warning: variable 'fixup_msg' is not initialized [cppcoreguidelines-init-variables]
        const char *fixup_msg;
                    ^
                              = NULL
/datasets/git/sequencer.c:1912:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t commented_len = 0, fixup_off;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:1912:28: warning: variable 'fixup_off' is not initialized [cppcoreguidelines-init-variables]
        size_t commented_len = 0, fixup_off;
                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:1920:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
             (starts_with(body, "squash!") || starts_with(body, "fixup!"))))
                                                                            ^
                                                                             {
/datasets/git/sequencer.c:1939:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opts->signoff)
                                  ^
                                   {
/datasets/git/sequencer.c:1943:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (flag & TODO_REPLACE_FIXUP_MSG) &&
                     ^      ~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:1948:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        rebase_path_fixup_msg(), 0) < 0)
                                                                        ^
                                                                         {
/datasets/git/sequencer.c:1961:12: warning: function 'update_squash_messages' has cognitive complexity of 32 (threshold 25) [readability-function-cognitive-complexity]
static int update_squash_messages(struct repository *r,
           ^
/datasets/git/sequencer.c:1972:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->current_fixup_count > 0) {
        ^
/datasets/git/sequencer.c:1976:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (strbuf_read_file(&buf, rebase_path_squash_msg(), 9) <= 0)
                ^
/datasets/git/sequencer.c:1980:41: note: +2, including nesting penalty of 1, nesting level increased to 2
                eol = buf.buf[0] != comment_line_char ?
                                                      ^
/datasets/git/sequencer.c:1988:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (is_fixup_flag(command, flag) && !seen_squash(opts))
                ^
/datasets/git/sequencer.c:1988:36: note: +1
                if (is_fixup_flag(command, flag) && !seen_squash(opts))
                                                 ^
/datasets/git/sequencer.c:1990:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/sequencer.c:1995:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (get_oid("HEAD", &head))
                ^
/datasets/git/sequencer.c:1997:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!(head_commit = lookup_commit_reference(r, &head)))
                ^
/datasets/git/sequencer.c:1999:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!(head_message = logmsg_reencode(head_commit, NULL, encoding)))
                ^
/datasets/git/sequencer.c:2003:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (command == TODO_FIXUP && !flag && write_message(body, strlen(body),
                ^
/datasets/git/sequencer.c:2003:38: note: +1
                if (command == TODO_FIXUP && !flag && write_message(body, strlen(body),
                                                   ^
/datasets/git/sequencer.c:2011:52: note: +2, including nesting penalty of 1, nesting level increased to 2
                strbuf_addstr(&buf, is_fixup_flag(command, flag) ?
                                                                 ^
/datasets/git/sequencer.c:2015:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (is_fixup_flag(command, flag))
                ^
/datasets/git/sequencer.c:2017:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/sequencer.c:2023:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!(message = logmsg_reencode(commit, NULL, encoding)))
        ^
/datasets/git/sequencer.c:2028:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (command == TODO_SQUASH || is_fixup_flag(command, flag)) {
        ^
/datasets/git/sequencer.c:2028:29: note: +1
        if (command == TODO_SQUASH || is_fixup_flag(command, flag)) {
                                   ^
/datasets/git/sequencer.c:2030:9: note: +1, nesting level increased to 1
        } else if (command == TODO_FIXUP) {
               ^
/datasets/git/sequencer.c:2036:4: note: +1, nesting level increased to 1
        } else
          ^
/datasets/git/sequencer.c:2040:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!res)
        ^
/datasets/git/sequencer.c:2045:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!res) {
        ^
/datasets/git/sequencer.c:2047:33: note: +2, including nesting penalty of 1, nesting level increased to 2
                            opts->current_fixups.len ? "\n" : "",
                                                     ^
/datasets/git/sequencer.c:1961:54: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int update_squash_messages(struct repository *r,
                                                     ^
/datasets/git/sequencer.c:1969:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *message, *body;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:1969:14: warning: variable 'message' is not initialized [cppcoreguidelines-init-variables]
        const char *message, *body;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:1969:24: warning: variable 'body' is not initialized [cppcoreguidelines-init-variables]
        const char *message, *body;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:1974:9: warning: variable 'eol' is not initialized [cppcoreguidelines-init-variables]
                char *eol;
                      ^
                          = NULL
/datasets/git/sequencer.c:1976:56: warning: 9 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (strbuf_read_file(&buf, rebase_path_squash_msg(), 9) <= 0)
                                                                     ^
/datasets/git/sequencer.c:1976:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strbuf_read_file(&buf, rebase_path_squash_msg(), 9) <= 0)
                                                                             ^
                                                                              {
/datasets/git/sequencer.c:1988:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_fixup_flag(command, flag) && !seen_squash(opts))
                                                                       ^
                                                                        {
/datasets/git/sequencer.c:1992:18: warning: variable 'head_commit' is not initialized [cppcoreguidelines-init-variables]
                struct commit *head_commit;
                               ^
                                           = NULL
/datasets/git/sequencer.c:1993:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                const char *head_message, *body;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:1993:15: warning: variable 'head_message' is not initialized [cppcoreguidelines-init-variables]
                const char *head_message, *body;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:1993:30: warning: variable 'body' is not initialized [cppcoreguidelines-init-variables]
                const char *head_message, *body;
                                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:1995:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (get_oid("HEAD", &head))
                                           ^
                                            {
/datasets/git/sequencer.c:1997:9: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                if (!(head_commit = lookup_commit_reference(r, &head)))
                      ^
/datasets/git/sequencer.c:1997:9: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/sequencer.c:1997:9: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/sequencer.c:1997:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(head_commit = lookup_commit_reference(r, &head)))
                                                                       ^
                                                                        {
/datasets/git/sequencer.c:1999:9: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                if (!(head_message = logmsg_reencode(head_commit, NULL, encoding)))
                      ^
/datasets/git/sequencer.c:1999:9: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/sequencer.c:1999:9: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/sequencer.c:1999:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(head_message = logmsg_reencode(head_commit, NULL, encoding)))
                                                                                   ^
                                                                                    {
/datasets/git/sequencer.c:2015:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_fixup_flag(command, flag))
                                                 ^
                                                  {
/datasets/git/sequencer.c:2017:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/sequencer.c:2023:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if (!(message = logmsg_reencode(commit, NULL, encoding)))
              ^
/datasets/git/sequencer.c:2023:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/sequencer.c:2023:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/sequencer.c:2023:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(message = logmsg_reencode(commit, NULL, encoding)))
                                                                 ^
                                                                  {
/datasets/git/sequencer.c:2036:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/sequencer.c:2040:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!res)
                 ^
                  {
/datasets/git/sequencer.c:2062:8: warning: variable 'out' is not initialized [cppcoreguidelines-init-variables]
        FILE *out;
              ^
                  = NULL
/datasets/git/sequencer.c:2064:62: warning: performing an implicit widening conversion to type 'size_t' (aka 'unsigned long') of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        if (strbuf_read_file(&buf, rebase_path_rewritten_pending(), (GIT_MAX_HEXSZ + 1) * 2) > 0 &&
                                                                    ^
/datasets/git/sequencer.c:2064:62: note: make conversion explicit to silence this warning
        if (strbuf_read_file(&buf, rebase_path_rewritten_pending(), (GIT_MAX_HEXSZ + 1) * 2) > 0 &&
                                                                    ^~~~~~~~~~~~~~~~~~~~~~~
                                                                    (size_t)(             )
/datasets/git/sequencer.c:2064:62: note: perform multiplication in a wider type
        if (strbuf_read_file(&buf, rebase_path_rewritten_pending(), (GIT_MAX_HEXSZ + 1) * 2) > 0 &&
                                                                    ^
                                                                     (long)
/datasets/git/sequencer.c:2066:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
            (out = fopen_or_warn(rebase_path_rewritten_list(), "a"))) {
             ^
/datasets/git/sequencer.c:2066:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/sequencer.c:2066:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/sequencer.c:2067:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                char *bol = buf.buf, *eol;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:2067:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/sequencer.c:2067:25: warning: variable 'eol' is not initialized [cppcoreguidelines-init-variables]
                char *bol = buf.buf, *eol;
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:2069:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (*bol) {
                ^
/datasets/git/sequencer.c:2069:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'bol' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (*bol) {
                       ^
/datasets/git/sequencer.c:2071:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(out, "%.*s %s\n", (int)(eol - bol),
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:2071:4: note: cast the expression to void to silence this warning
/datasets/git/sequencer.c:2073:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!*eol)
                                  ^
                                   {
/datasets/git/sequencer.c:2077:3: warning: the value returned by this function should be used [cert-err33-c]
                fclose(out);
                ^~~~~~~~~~~
/datasets/git/sequencer.c:2077:3: note: cast the expression to void to silence this warning
/datasets/git/sequencer.c:2088:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!out)
                 ^
                  {
/datasets/git/sequencer.c:2091:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(out, "%s\n", oid_to_hex(oid));
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:2091:2: note: cast the expression to void to silence this warning
/datasets/git/sequencer.c:2092:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(out);
        ^~~~~~~~~~~
/datasets/git/sequencer.c:2092:2: note: cast the expression to void to silence this warning
/datasets/git/sequencer.c:2094:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_fixup(next_command))
                                    ^
                                     {
/datasets/git/sequencer.c:2099:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->edit < 0)
                           ^
                            {
/datasets/git/sequencer.c:2123:12: warning: function 'do_pick_commit' has cognitive complexity of 110 (threshold 25) [readability-function-cognitive-complexity]
static int do_pick_commit(struct repository *r,
           ^
/datasets/git/sequencer.c:2128:41: note: +1, including nesting penalty of 0, nesting level increased to 1
        unsigned int flags = should_edit(opts) ? EDIT_MSG : 0;
                                               ^
/datasets/git/sequencer.c:2129:43: note: +1, including nesting penalty of 0, nesting level increased to 1
        const char *msg_file = should_edit(opts) ? NULL : git_path_merge_msg(r);
                                                 ^
/datasets/git/sequencer.c:2140:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->no_commit) {
        ^
/datasets/git/sequencer.c:2147:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (write_index_as_tree(&head, r->index, r->index_file, 0, NULL))
                ^
/datasets/git/sequencer.c:2149:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/sequencer.c:2152:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (is_pick_or_similar(command) && opts->have_squash_onto &&
                ^
/datasets/git/sequencer.c:2152:61: note: +1
                if (is_pick_or_similar(command) && opts->have_squash_onto &&
                                                                          ^
/datasets/git/sequencer.c:2154:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (is_fixup(command))
                        ^
/datasets/git/sequencer.c:2158:10: note: +1, nesting level increased to 2
                } else if (unborn)
                       ^
/datasets/git/sequencer.c:2160:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (index_differs_from(r, unborn ? empty_tree_oid_hex() : "HEAD",
                ^
/datasets/git/sequencer.c:2160:36: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (index_differs_from(r, unborn ? empty_tree_oid_hex() : "HEAD",
                                                 ^
/datasets/git/sequencer.c:2166:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!commit->parents)
        ^
/datasets/git/sequencer.c:2168:7: note: +1, nesting level increased to 1
        else if (commit->parents->next) {
             ^
/datasets/git/sequencer.c:2173:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!opts->mainline)
                ^
/datasets/git/sequencer.c:2177:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (cnt = 1, p = commit->parents;
                ^
/datasets/git/sequencer.c:2178:30: note: +1
                     cnt != opts->mainline && p;
                                           ^
/datasets/git/sequencer.c:2181:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (cnt != opts->mainline || !p)
                ^
/datasets/git/sequencer.c:2181:29: note: +1
                if (cnt != opts->mainline || !p)
                                          ^
/datasets/git/sequencer.c:2185:9: note: +1, nesting level increased to 1
        } else if (1 < opts->mainline)
               ^
/datasets/git/sequencer.c:2192:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/sequencer.c:2195:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (get_message(commit, &msg) != 0)
        ^
/datasets/git/sequencer.c:2199:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->allow_ff && !is_fixup(command) &&
        ^
/datasets/git/sequencer.c:2199:43: note: +1
        if (opts->allow_ff && !is_fixup(command) &&
                                                 ^
/datasets/git/sequencer.c:2200:53: note: +1
            ((parent && oideq(&parent->object.oid, &head)) ||
                                                           ^
/datasets/git/sequencer.c:2200:15: note: +1
            ((parent && oideq(&parent->object.oid, &head)) ||
                     ^
/datasets/git/sequencer.c:2201:16: note: +1
             (!parent && unborn))) {
                      ^
/datasets/git/sequencer.c:2202:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (is_rebase_i(opts))
                ^
/datasets/git/sequencer.c:2206:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (res || command != TODO_REWORD)
                ^
/datasets/git/sequencer.c:2206:11: note: +1
                if (res || command != TODO_REWORD)
                        ^
/datasets/git/sequencer.c:2210:3: note: +1
                goto fast_forward_edit;
                ^
/datasets/git/sequencer.c:2212:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (parent && parse_commit(parent) < 0)
        ^
/datasets/git/sequencer.c:2212:13: note: +1
        if (parent && parse_commit(parent) < 0)
                   ^
/datasets/git/sequencer.c:2226:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (command == TODO_REVERT) {
        ^
/datasets/git/sequencer.c:2231:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opts->commit_use_reference) {
                ^
/datasets/git/sequencer.c:2234:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/sequencer.c:2242:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (commit->parents && commit->parents->next) {
                ^
/datasets/git/sequencer.c:2242:23: note: +1
                if (commit->parents && commit->parents->next) {
                                    ^
/datasets/git/sequencer.c:2247:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/sequencer.c:2256:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (find_commit_subject(msg.message, &p))
                ^
/datasets/git/sequencer.c:2259:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opts->record_origin) {
                ^
/datasets/git/sequencer.c:2261:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!has_conforming_footer(&msgbuf, NULL, 0))
                        ^
/datasets/git/sequencer.c:2267:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!is_fixup(command))
                ^
/datasets/git/sequencer.c:2271:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (command == TODO_REWORD)
        ^
/datasets/git/sequencer.c:2273:7: note: +1, nesting level increased to 1
        else if (is_fixup(command)) {
             ^
/datasets/git/sequencer.c:2274:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (update_squash_messages(r, command, commit,
                ^
/datasets/git/sequencer.c:2278:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!final_fixup)
                ^
/datasets/git/sequencer.c:2280:8: note: +1, nesting level increased to 2
                else if (file_exists(rebase_path_fixup_msg())) {
                     ^
/datasets/git/sequencer.c:2283:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/sequencer.c:2286:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (copy_file(dest, rebase_path_squash_msg(), 0666))
                        ^
/datasets/git/sequencer.c:2295:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->signoff && !is_fixup(command))
        ^
/datasets/git/sequencer.c:2295:20: note: +1
        if (opts->signoff && !is_fixup(command))
                          ^
/datasets/git/sequencer.c:2298:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (is_rebase_i(opts) && write_author_script(msg.message) < 0)
        ^
/datasets/git/sequencer.c:2298:24: note: +1
        if (is_rebase_i(opts) && write_author_script(msg.message) < 0)
                              ^
/datasets/git/sequencer.c:2300:7: note: +1, nesting level increased to 1
        else if (!opts->strategy ||
             ^
/datasets/git/sequencer.c:2302:35: note: +1
                 !strcmp(opts->strategy, "ort") ||
                                                ^
/datasets/git/sequencer.c:2306:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (res < 0)
                ^
/datasets/git/sequencer.c:2311:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/sequencer.c:2334:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((command == TODO_PICK || command == TODO_REWORD ||
        ^
/datasets/git/sequencer.c:2336:29: note: +1
            (res == 0 || res == 1) &&
                                   ^
/datasets/git/sequencer.c:2334:54: note: +1
        if ((command == TODO_PICK || command == TODO_REWORD ||
                                                            ^
/datasets/git/sequencer.c:2336:16: note: +1
            (res == 0 || res == 1) &&
                      ^
/datasets/git/sequencer.c:2340:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (command == TODO_REVERT && ((opts->no_commit && res == 0) || res == 1) &&
        ^
/datasets/git/sequencer.c:2340:76: note: +1
        if (command == TODO_REVERT && ((opts->no_commit && res == 0) || res == 1) &&
                                                                                  ^
/datasets/git/sequencer.c:2340:63: note: +1
        if (command == TODO_REVERT && ((opts->no_commit && res == 0) || res == 1) &&
                                                                     ^
/datasets/git/sequencer.c:2340:50: note: +1
        if (command == TODO_REVERT && ((opts->no_commit && res == 0) || res == 1) &&
                                                        ^
/datasets/git/sequencer.c:2345:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (res) {
        ^
/datasets/git/sequencer.c:2347:9: note: +2, including nesting penalty of 1, nesting level increased to 2
                      ? _("could not revert %s... %s")
                      ^
/datasets/git/sequencer.c:2352:3: note: +1
                goto leave;
                ^
/datasets/git/sequencer.c:2357:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (allow < 0) {
        ^
/datasets/git/sequencer.c:2359:3: note: +1
                goto leave;
                ^
/datasets/git/sequencer.c:2360:9: note: +1, nesting level increased to 1
        } else if (allow == 1) {
               ^
/datasets/git/sequencer.c:2362:9: note: +1, nesting level increased to 1
        } else if (allow == 2) {
               ^
/datasets/git/sequencer.c:2372:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!opts->no_commit && !drop_commit) {
        ^
/datasets/git/sequencer.c:2372:23: note: +1
        if (!opts->no_commit && !drop_commit) {
                             ^
/datasets/git/sequencer.c:2373:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (author || command == TODO_REVERT || (flags & AMEND_MSG))
                ^
/datasets/git/sequencer.c:2373:40: note: +1
                if (author || command == TODO_REVERT || (flags & AMEND_MSG))
                                                     ^
/datasets/git/sequencer.c:2375:12: note: +3, including nesting penalty of 2, nesting level increased to 3
                                        commit? &commit->object.oid : NULL);
                                              ^
/datasets/git/sequencer.c:2376:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/sequencer.c:2379:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!res && reword) {
                ^
/datasets/git/sequencer.c:2379:12: note: +1
                if (!res && reword) {
                         ^
/datasets/git/sequencer.c:2389:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!res && final_fixup) {
        ^
/datasets/git/sequencer.c:2389:11: note: +1
        if (!res && final_fixup) {
                 ^
/datasets/git/sequencer.c:2123:46: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int do_pick_commit(struct repository *r,
                                             ^
/datasets/git/sequencer.c:2128:43: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned int flags = should_edit(opts) ? EDIT_MSG : 0;
                                                 ^
/datasets/git/sequencer.c:997:22: note: expanded from macro 'EDIT_MSG'
#define EDIT_MSG    (1<<1)
                     ^
/datasets/git/sequencer.c:2131:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit *base, *next, *parent;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:2131:17: warning: variable 'base' is not initialized [cppcoreguidelines-init-variables]
        struct commit *base, *next, *parent;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:2131:24: warning: variable 'next' is not initialized [cppcoreguidelines-init-variables]
        struct commit *base, *next, *parent;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:2131:31: warning: variable 'parent' is not initialized [cppcoreguidelines-init-variables]
        struct commit *base, *next, *parent;
                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:2132:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *base_label, *next_label;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:2132:14: warning: variable 'base_label' is not initialized [cppcoreguidelines-init-variables]
        const char *base_label, *next_label;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:2132:27: warning: variable 'next_label' is not initialized [cppcoreguidelines-init-variables]
        const char *base_label, *next_label;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:2136:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int res, unborn = 0, reword = 0, allow, drop_commit;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:2136:6: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        int res, unborn = 0, reword = 0, allow, drop_commit;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:2136:35: warning: variable 'allow' is not initialized [cppcoreguidelines-init-variables]
        int res, unborn = 0, reword = 0, allow, drop_commit;
                                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:2136:42: warning: variable 'drop_commit' is not initialized [cppcoreguidelines-init-variables]
        int res, unborn = 0, reword = 0, allow, drop_commit;
                                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:2147:68: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (write_index_as_tree(&head, r->index, r->index_file, 0, NULL))
                                                                                 ^
                                                                                  {
/datasets/git/sequencer.c:2154:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (is_fixup(command))
                                              ^
                                               {
/datasets/git/sequencer.c:2156:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        flags |= CREATE_ROOT_COMMIT;
                        ^
/datasets/git/sequencer.c:2156:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        flags |= CREATE_ROOT_COMMIT;
                                 ^
/datasets/git/sequencer.c:1001:29: note: expanded from macro 'CREATE_ROOT_COMMIT'
#define CREATE_ROOT_COMMIT (1<<5)
                            ^
/datasets/git/sequencer.c:2158:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else if (unborn)
                                  ^
                                   {
/datasets/git/sequencer.c:2161:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                       NULL, 0))
                                                ^
                                                 {
/datasets/git/sequencer.c:2166:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!commit->parents)
                             ^
                              {
/datasets/git/sequencer.c:2170:7: warning: variable 'cnt' is not initialized [cppcoreguidelines-init-variables]
                int cnt;
                    ^
                        = 0
/datasets/git/sequencer.c:2171:23: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                struct commit_list *p;
                                    ^
                                      = NULL
/datasets/git/sequencer.c:2171:23: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:2173:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!opts->mainline)
                                    ^
                                     {
/datasets/git/sequencer.c:2177:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (cnt = 1, p = commit->parents;
                ^
/datasets/git/sequencer.c:2178:8: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                     cnt != opts->mainline && p;
                     ^
/datasets/git/sequencer.c:2179:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                     cnt++)
                           ^
                            {
/datasets/git/sequencer.c:2181:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cnt != opts->mainline || !p)
                                                ^
                                                 {
/datasets/git/sequencer.c:2185:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else if (1 < opts->mainline)
                                      ^
                                       {
/datasets/git/sequencer.c:2192:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/sequencer.c:2195:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_message(commit, &msg) != 0)
                                           ^
                                            {
/datasets/git/sequencer.c:2202:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_rebase_i(opts))
                                      ^
                                       {
/datasets/git/sequencer.c:2206:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (res || command != TODO_REWORD)
                                                  ^
                                                   {
/datasets/git/sequencer.c:2208:3: warning: Value stored to 'reword' is never read [clang-analyzer-deadcode.DeadStores]
                reword = 1;
                ^        ~
/datasets/git/sequencer.c:2208:3: note: Value stored to 'reword' is never read
                reword = 1;
                ^        ~
/datasets/git/sequencer.c:2212:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parent && parse_commit(parent) < 0)
                                               ^
                                                {
/datasets/git/sequencer.c:2248:15: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                const char *p;
                            ^
                              = NULL
/datasets/git/sequencer.c:2248:15: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:2256:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (find_commit_subject(msg.message, &p))
                                                         ^
                                                          {
/datasets/git/sequencer.c:2261:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!has_conforming_footer(&msgbuf, NULL, 0))
                                                                     ^
                                                                      {
/datasets/git/sequencer.c:2267:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!is_fixup(command))
                                       ^
                                        {
/datasets/git/sequencer.c:2271:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (command == TODO_REWORD)
                                   ^
                                    {
/datasets/git/sequencer.c:2275:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                           opts, item->flags))
                                                              ^
                                                               {
/datasets/git/sequencer.c:2277:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags |= AMEND_MSG;
                ^
/datasets/git/sequencer.c:2277:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags |= AMEND_MSG;
                         ^
/datasets/git/sequencer.c:998:22: note: expanded from macro 'AMEND_MSG'
#define AMEND_MSG   (1<<2)
                     ^
/datasets/git/sequencer.c:2278:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!final_fixup)
                                 ^
                                  {
/datasets/git/sequencer.c:2281:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        flags |= VERBATIM_MSG;
                        ^
/datasets/git/sequencer.c:2281:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        flags |= VERBATIM_MSG;
                                 ^
/datasets/git/sequencer.c:1002:23: note: expanded from macro 'VERBATIM_MSG'
#define VERBATIM_MSG (1<<6)
                      ^
/datasets/git/sequencer.c:2286:50: warning: 0666 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        if (copy_file(dest, rebase_path_squash_msg(), 0666))
                                                                      ^
/datasets/git/sequencer.c:2286:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (copy_file(dest, rebase_path_squash_msg(), 0666))
                                                                            ^
                                                                             {
/datasets/git/sequencer.c:2291:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        flags |= EDIT_MSG;
                        ^
/datasets/git/sequencer.c:2291:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        flags |= EDIT_MSG;
                                 ^
/datasets/git/sequencer.c:997:22: note: expanded from macro 'EDIT_MSG'
#define EDIT_MSG    (1<<1)
                     ^
/datasets/git/sequencer.c:2295:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->signoff && !is_fixup(command))
                                                ^
                                                 {
/datasets/git/sequencer.c:2298:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_rebase_i(opts) && write_author_script(msg.message) < 0)
                                                                      ^
                                                                       {
/datasets/git/sequencer.c:2306:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (res < 0)
                            ^
                             {
/datasets/git/sequencer.c:2309:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                res |= write_message(msgbuf.buf, msgbuf.len,
                ^~~
/datasets/git/sequencer.c:2320:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                res |= try_merge_command(r, opts->strategy,
                ^~~
/datasets/git/sequencer.c:2338:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       REF_NO_DEREF, UPDATE_REFS_MSG_ON_ERR))
                       ^
/datasets/git/./refs/../refs.h:631:23: note: expanded from macro 'REF_NO_DEREF'
#define REF_NO_DEREF (1 << 0)
                      ^
/datasets/git/sequencer.c:2338:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                       REF_NO_DEREF, UPDATE_REFS_MSG_ON_ERR))
                                                             ^
                                                              {
/datasets/git/sequencer.c:2342:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       REF_NO_DEREF, UPDATE_REFS_MSG_ON_ERR))
                       ^
/datasets/git/./refs/../refs.h:631:23: note: expanded from macro 'REF_NO_DEREF'
#define REF_NO_DEREF (1 << 0)
                      ^
/datasets/git/sequencer.c:2342:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                       REF_NO_DEREF, UPDATE_REFS_MSG_ON_ERR))
                                                             ^
                                                              {
/datasets/git/sequencer.c:2361:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags |= ALLOW_EMPTY;
                ^
/datasets/git/sequencer.c:2361:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags |= ALLOW_EMPTY;
                         ^
/datasets/git/sequencer.c:996:22: note: expanded from macro 'ALLOW_EMPTY'
#define ALLOW_EMPTY (1<<0)
                     ^
/datasets/git/sequencer.c:2368:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr,
                ^~~~~~~~~~~~~~~
/datasets/git/sequencer.c:2368:3: note: cast the expression to void to silence this warning
/datasets/git/sequencer.c:2373:44: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (author || command == TODO_REVERT || (flags & AMEND_MSG))
                                                         ^
/datasets/git/sequencer.c:2373:52: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (author || command == TODO_REVERT || (flags & AMEND_MSG))
                                                                 ^
/datasets/git/sequencer.c:998:22: note: expanded from macro 'AMEND_MSG'
#define AMEND_MSG   (1<<2)
                     ^
/datasets/git/sequencer.c:2373:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (author || command == TODO_REVERT || (flags & AMEND_MSG))
                                                                            ^
                                                                             {
/datasets/git/sequencer.c:2376:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/sequencer.c:2378:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                *check_todo = !!(flags & EDIT_MSG);
                                 ^
/datasets/git/sequencer.c:2378:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                *check_todo = !!(flags & EDIT_MSG);
                                         ^
/datasets/git/sequencer.c:997:22: note: expanded from macro 'EDIT_MSG'
#define EDIT_MSG    (1<<1)
                     ^
/datasets/git/sequencer.c:2381:37: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        res = run_git_commit(NULL, opts, EDIT_MSG |
                                                         ^
/datasets/git/sequencer.c:997:21: note: expanded from macro 'EDIT_MSG'
#define EDIT_MSG    (1<<1)
                    ^
/datasets/git/sequencer.c:2382:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                             VERIFY_MSG | AMEND_MSG |
                                             ^
/datasets/git/sequencer.c:1000:22: note: expanded from macro 'VERIFY_MSG'
#define VERIFY_MSG  (1<<4)
                     ^
/datasets/git/sequencer.c:2382:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                             VERIFY_MSG | AMEND_MSG |
                                                          ^
/datasets/git/sequencer.c:998:22: note: expanded from macro 'AMEND_MSG'
#define AMEND_MSG   (1<<2)
                     ^
/datasets/git/sequencer.c:2383:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                             (flags & ALLOW_EMPTY));
                                              ^
/datasets/git/sequencer.c:2383:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                             (flags & ALLOW_EMPTY));
                                                      ^
/datasets/git/sequencer.c:996:22: note: expanded from macro 'ALLOW_EMPTY'
#define ALLOW_EMPTY (1<<0)
                     ^
/datasets/git/sequencer.c:2411:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->action == REPLAY_PICK && !opts->revs->no_walk)
                                                                ^
                                                                 {
/datasets/git/sequencer.c:2412:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                opts->revs->reverse ^= 1;
                ^                      ~
/datasets/git/sequencer.c:2414:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prepare_revision_walk(opts->revs))
                                              ^
                                               {
/datasets/git/sequencer.c:2420:54: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int read_and_refresh_cache(struct repository *r,
                                                     ^
/datasets/git/sequencer.c:2430:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        refresh_index(r->index, REFRESH_QUIET|REFRESH_UNMERGED, NULL, NULL, NULL);
                                ^
/datasets/git/./refs/../cache.h:923:42: note: expanded from macro 'REFRESH_QUIET'
#define REFRESH_QUIET                    (1 << 2) /* be quiet about it */
                                         ^~~~~~~~
/datasets/git/sequencer.c:2430:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        refresh_index(r->index, REFRESH_QUIET|REFRESH_UNMERGED, NULL, NULL, NULL);
                                              ^
/datasets/git/./refs/../cache.h:922:43: note: expanded from macro 'REFRESH_UNMERGED'
#define REFRESH_UNMERGED                 (1 << 1) /* allow unmerged */
                                          ^
/datasets/git/sequencer.c:2434:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                       COMMIT_LOCK | SKIP_IF_UNCHANGED)) {
                                       ^
/datasets/git/./refs/../cache.h:744:22: note: expanded from macro 'COMMIT_LOCK'
#define COMMIT_LOCK             (1 << 0)
                                ^~~~~~~~
/datasets/git/sequencer.c:2434:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                       COMMIT_LOCK | SKIP_IF_UNCHANGED)) {
                                                     ^
/datasets/git/./refs/../cache.h:745:28: note: expanded from macro 'SKIP_IF_UNCHANGED'
#define SKIP_IF_UNCHANGED       (1 << 1)
                                 ^
/datasets/git/sequencer.c:2444:24: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (opts->strategy && strcmp(opts->strategy, "ort"))
                              ^
                                                            != 0
/datasets/git/sequencer.c:2444:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->strategy && strcmp(opts->strategy, "ort"))
                                                            ^
                                                             {
/datasets/git/sequencer.c:2452:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(todo_list->items);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/sequencer.c:2458:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(todo_list->items, todo_list->nr + 1, todo_list->alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/sequencer.c:2473:14: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        const char *p = *bol + 1;
                    ^
/datasets/git/sequencer.c:2481:12: warning: function 'parse_insn_line' has cognitive complexity of 29 (threshold 25) [readability-function-cognitive-complexity]
static int parse_insn_line(struct repository *r, struct todo_item *item,
           ^
/datasets/git/sequencer.c:2493:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (bol == eol || *bol == '\r' || *bol == comment_line_char) {
        ^
/datasets/git/sequencer.c:2493:33: note: +1
        if (bol == eol || *bol == '\r' || *bol == comment_line_char) {
                                       ^
/datasets/git/sequencer.c:2501:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < TODO_COMMENT; i++)
        ^
/datasets/git/sequencer.c:2502:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (is_command(i, &bol)) {
                ^
/datasets/git/sequencer.c:2506:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (i >= TODO_COMMENT)
        ^
/datasets/git/sequencer.c:2513:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (item->command == TODO_NOOP || item->command == TODO_BREAK) {
        ^
/datasets/git/sequencer.c:2513:33: note: +1
        if (item->command == TODO_NOOP || item->command == TODO_BREAK) {
                                       ^
/datasets/git/sequencer.c:2514:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (bol != eol)
                ^
/datasets/git/sequencer.c:2523:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!padding)
        ^
/datasets/git/sequencer.c:2527:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (item->command == TODO_EXEC || item->command == TODO_LABEL ||
        ^
/datasets/git/sequencer.c:2528:34: note: +1
            item->command == TODO_RESET || item->command == TODO_UPDATE_REF) {
                                        ^
/datasets/git/sequencer.c:2535:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (item->command == TODO_FIXUP) {
        ^
/datasets/git/sequencer.c:2536:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (skip_prefix(bol, "-C", &bol) &&
                ^
/datasets/git/sequencer.c:2536:36: note: +1
                if (skip_prefix(bol, "-C", &bol) &&
                                                 ^
/datasets/git/sequencer.c:2537:19: note: +1
                   (*bol == ' ' || *bol == '\t')) {
                                ^
/datasets/git/sequencer.c:2540:10: note: +1, nesting level increased to 2
                } else if (skip_prefix(bol, "-c", &bol) &&
                       ^
/datasets/git/sequencer.c:2540:43: note: +1
                } else if (skip_prefix(bol, "-c", &bol) &&
                                                        ^
/datasets/git/sequencer.c:2541:20: note: +1
                                  (*bol == ' ' || *bol == '\t')) {
                                               ^
/datasets/git/sequencer.c:2547:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (item->command == TODO_MERGE) {
        ^
/datasets/git/sequencer.c:2548:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (skip_prefix(bol, "-C", &bol))
                ^
/datasets/git/sequencer.c:2550:8: note: +1, nesting level increased to 2
                else if (skip_prefix(bol, "-c", &bol)) {
                     ^
/datasets/git/sequencer.c:2553:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/sequencer.c:2566:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (status < 0)
        ^
/datasets/git/sequencer.c:2574:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (status < 0)
        ^
/datasets/git/sequencer.c:2578:22: note: +1, including nesting penalty of 0, nesting level increased to 1
        return item->commit ? 0 : -1;
                            ^
/datasets/git/sequencer.c:2481:47: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int parse_insn_line(struct repository *r, struct todo_item *item,
                                              ^
/datasets/git/sequencer.c:2482:47: warning: pointer parameter 'eol' can be pointer to const [readability-non-const-parameter]
                           const char *buf, const char *bol, char *eol)
                                                                   ^
                                                             const 
/datasets/git/sequencer.c:2485:8: warning: variable 'end_of_object_name' is not initialized [cppcoreguidelines-init-variables]
        char *end_of_object_name;
              ^
                                 = NULL
/datasets/git/sequencer.c:2486:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, saved, status, padding;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:2486:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, saved, status, padding;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:2486:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:2486:9: warning: variable 'saved' is not initialized [cppcoreguidelines-init-variables]
        int i, saved, status, padding;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:2486:16: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int i, saved, status, padding;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:2486:24: warning: variable 'padding' is not initialized [cppcoreguidelines-init-variables]
        int i, saved, status, padding;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:2497:19: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                item->arg_len = eol - bol;
                                ^
/datasets/git/sequencer.c:2501:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < TODO_COMMENT; i++)
        ^
/datasets/git/sequencer.c:2501:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < TODO_COMMENT; i++)
                                          ^
                                           {
/datasets/git/sequencer.c:2506:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (i >= TODO_COMMENT)
                              ^
                               {
/datasets/git/sequencer.c:2510:12: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        padding = strspn(bol, " \t");
                  ^
/datasets/git/sequencer.c:2514:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (bol != eol)
                               ^
                                {
/datasets/git/sequencer.c:2519:19: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                item->arg_len = eol - bol;
                                ^
/datasets/git/sequencer.c:2523:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!padding)
                     ^
                      {
/datasets/git/sequencer.c:2539:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        item->flags |= TODO_REPLACE_FIXUP_MSG;
                        ^              ~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:2543:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        item->flags |= TODO_EDIT_FIXUP_MSG;
                        ^              ~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:2548:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (skip_prefix(bol, "-C", &bol))
                                                 ^
                                                  {
/datasets/git/sequencer.c:2552:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        item->flags |= TODO_EDIT_MERGE_MSG;
                        ^              ~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:2554:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        item->flags |= TODO_EDIT_MERGE_MSG;
                        ^              ~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:2563:10: warning: 'signed char' to 'int' conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse,cert-str34-c]
        saved = *end_of_object_name;
                ^
/datasets/git/sequencer.c:2566:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (status < 0)
                       ^
                        {
/datasets/git/sequencer.c:2568:24: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        *end_of_object_name = saved;
                              ^
/datasets/git/sequencer.c:2574:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (status < 0)
                       ^
                        {
/datasets/git/sequencer.c:2581:51: warning: parameter 'r' is unused [misc-unused-parameters]
int sequencer_get_last_command(struct repository *r, enum replay_action *action)
                                                  ^
/datasets/git/sequencer.c:2581:51: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:2583:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *todo_file, *bol;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:2583:14: warning: variable 'todo_file' is not initialized [cppcoreguidelines-init-variables]
        const char *todo_file, *bol;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:2583:26: warning: variable 'bol' is not initialized [cppcoreguidelines-init-variables]
        const char *todo_file, *bol;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:2589:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (errno == ENOENT || errno == ENOTDIR)
                                                        ^
                                                         {
/datasets/git/sequencer.c:2591:3: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                else
                ^~~~
                                        return error_errno
/datasets/git/sequencer.c:2591:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:2595:67: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_command(TODO_PICK, &bol) && (*bol == ' ' || *bol == '\t'))
                                                                         ^
                                                                          {
/datasets/git/sequencer.c:2598:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                 (*bol == ' ' || *bol == '\t'))
                                               ^
                                                {
/datasets/git/sequencer.c:2600:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/sequencer.c:2608:52: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int todo_list_parse_insn_buffer(struct repository *r, char *buf,
                                                   ^
/datasets/git/sequencer.c:2611:20: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct todo_item *item;
                          ^
                               = NULL
/datasets/git/sequencer.c:2612:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *p = buf, *next_p;
        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:2612:8: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        char *p = buf, *next_p;
              ^
/datasets/git/sequencer.c:2612:18: warning: variable 'next_p' is not initialized [cppcoreguidelines-init-variables]
        char *p = buf, *next_p;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:2613:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, res = 0, fixup_okay = file_exists(rebase_path_done());
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:2612:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        char *p = buf, *next_p;
        ^
/datasets/git/sequencer.c:2613:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, res = 0, fixup_okay = file_exists(rebase_path_done());
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:2613:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:2617:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 1; *p; i++, p = next_p) {
        ^
/datasets/git/sequencer.c:2617:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 1; *p; i++, p = next_p) {
                    ^
/datasets/git/sequencer.c:2622:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (p != eol && eol[-1] == '\r')
                                                ^
                                                 {
/datasets/git/sequencer.c:2636:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fixup_okay)
                               ^
                                {
/datasets/git/sequencer.c:2638:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (is_fixup(item->command))
                                                 ^
                                                  {
/datasets/git/sequencer.c:2641:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!is_noop(item->command))
                                                 ^
                                                  {
/datasets/git/sequencer.c:2650:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int count = 0, i;
        ^~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:2650:17: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int count = 0, i;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:2650:17: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:2652:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < todo_list->nr; i++)
        ^
/datasets/git/sequencer.c:2652:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < todo_list->nr; i++)
                    ^
/datasets/git/sequencer.c:2652:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < todo_list->nr; i++)
                                           ^
                                            {
/datasets/git/sequencer.c:2653:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (todo_list->items[i].command != TODO_COMMENT)
                                                                ^
                                                                 {
/datasets/git/sequencer.c:2662:3: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                todo_list->items[index].offset_in_buf : todo_list->buf.len;
                ^
/datasets/git/sequencer.c:2662:43: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                todo_list->items[index].offset_in_buf : todo_list->buf.len;
                                                        ^
/datasets/git/sequencer.c:2676:57: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static ssize_t strbuf_read_file_or_whine(struct strbuf *sb, const char *path)
                                                        ^
/datasets/git/sequencer.c:2678:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/sequencer.c:2678:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:2679:10: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        ssize_t len;
                ^
                    = 0
/datasets/git/sequencer.c:2681:26: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
        fd = open(path, O_RDONLY);
                                ^
                                 | O_CLOEXEC
/datasets/git/sequencer.c:2682:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fd < 0)
                   ^
                    {
/datasets/git/sequencer.c:2686:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len < 0)
                    ^
                     {
/datasets/git/sequencer.c:2694:14: warning: variable 'eol' is not initialized [cppcoreguidelines-init-variables]
        const char *eol;
                    ^
                        = NULL
/datasets/git/sequencer.c:2701:5: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                } else {
                  ^~~~~~
/datasets/git/sequencer.c:2708:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!eol || !eol[1])
                            ^
                             {
/datasets/git/sequencer.c:2716:55: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void sequencer_post_commit_cleanup(struct repository *r, int verbose)
                                                      ^
/datasets/git/sequencer.c:2724:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    verbose)
                            ^
                             {
/datasets/git/sequencer.c:2733:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    verbose)
                            ^
                             {
/datasets/git/sequencer.c:2741:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!need_cleanup)
                          ^
                           {
/datasets/git/sequencer.c:2744:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!have_finished_the_last_pick())
                                           ^
                                            {
/datasets/git/sequencer.c:2752:8: warning: variable name 'f' is too short, expected at least 3 characters [readability-identifier-length]
        FILE *f = fopen_or_warn(rebase_path_msgtotal(), "w");
              ^
/datasets/git/sequencer.c:2755:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(f, "%d\n", todo_list->total_nr);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:2755:3: note: cast the expression to void to silence this warning
/datasets/git/sequencer.c:2756:3: warning: the value returned by this function should be used [cert-err33-c]
                fclose(f);
                ^~~~~~~~~
/datasets/git/sequencer.c:2756:3: note: cast the expression to void to silence this warning
/datasets/git/sequencer.c:2760:50: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int read_populate_todo(struct repository *r,
                                                 ^
/datasets/git/sequencer.c:2765:6: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        int res;
            ^
                = 0
/datasets/git/sequencer.c:2768:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strbuf_read_file_or_whine(&todo_list->buf, todo_file) < 0)
                                                                      ^
                                                                       {
/datasets/git/sequencer.c:2773:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_rebase_i(opts))
                                      ^
                                       {
/datasets/git/sequencer.c:2780:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            (!is_rebase_i(opts) || !file_exists(rebase_path_done())))
                                                                     ^
                                                                      {
/datasets/git/sequencer.c:2786:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/sequencer.c:2786:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:2788:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < todo_list->nr; i++)
                ^
/datasets/git/sequencer.c:2788:15: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < todo_list->nr; i++)
                            ^
/datasets/git/sequencer.c:2788:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < todo_list->nr; i++)
                                                   ^
                                                    {
/datasets/git/sequencer.c:2789:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (valid == todo_list->items[i].command)
                                                                 ^
                                                                  {
/datasets/git/sequencer.c:2791:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (valid == TODO_PICK)
                                                    ^
                                                     {
/datasets/git/sequencer.c:2793:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/sequencer.c:2801:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !todo_list_parse_insn_buffer(r, done.buf.buf, &done))
                                                                         ^
                                                                          {
/datasets/git/sequencer.c:2803:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/sequencer.c:2817:6: warning: 2 adjacent parameters of 'git_config_string_dup' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                 const char *var, const char *value)
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:2817:18: note: the first parameter in the range is 'var'
                                 const char *var, const char *value)
                                             ^~~
/datasets/git/sequencer.c:2817:35: note: the last parameter in the range is 'value'
                                 const char *var, const char *value)
                                                              ^~~~~
/datasets/git/sequencer.c:2819:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!value)
                   ^
                    {
/datasets/git/sequencer.c:2826:12: warning: function 'populate_opts_cb' has cognitive complexity of 29 (threshold 25) [readability-function-cognitive-complexity]
static int populate_opts_cb(const char *key, const char *value, void *data)
           ^
/datasets/git/sequencer.c:2831:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!value)
        ^
/datasets/git/sequencer.c:2833:7: note: +1, nesting level increased to 1
        else if (!strcmp(key, "options.no-commit"))
             ^
/datasets/git/sequencer.c:2835:7: note: +1, nesting level increased to 1
        else if (!strcmp(key, "options.edit"))
             ^
/datasets/git/sequencer.c:2837:7: note: +1, nesting level increased to 1
        else if (!strcmp(key, "options.allow-empty"))
             ^
/datasets/git/sequencer.c:2840:7: note: +1, nesting level increased to 1
        else if (!strcmp(key, "options.allow-empty-message"))
             ^
/datasets/git/sequencer.c:2843:7: note: +1, nesting level increased to 1
        else if (!strcmp(key, "options.keep-redundant-commits"))
             ^
/datasets/git/sequencer.c:2846:7: note: +1, nesting level increased to 1
        else if (!strcmp(key, "options.signoff"))
             ^
/datasets/git/sequencer.c:2848:7: note: +1, nesting level increased to 1
        else if (!strcmp(key, "options.record-origin"))
             ^
/datasets/git/sequencer.c:2850:7: note: +1, nesting level increased to 1
        else if (!strcmp(key, "options.allow-ff"))
             ^
/datasets/git/sequencer.c:2852:7: note: +1, nesting level increased to 1
        else if (!strcmp(key, "options.mainline"))
             ^
/datasets/git/sequencer.c:2854:7: note: +1, nesting level increased to 1
        else if (!strcmp(key, "options.strategy"))
             ^
/datasets/git/sequencer.c:2856:7: note: +1, nesting level increased to 1
        else if (!strcmp(key, "options.gpg-sign"))
             ^
/datasets/git/sequencer.c:2858:7: note: +1, nesting level increased to 1
        else if (!strcmp(key, "options.strategy-option")) {
             ^
/datasets/git/sequencer.c:2859:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                ALLOC_GROW(opts->xopts, opts->xopts_nr + 1, opts->xopts_alloc);
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/sequencer.c:2859:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                ALLOC_GROW(opts->xopts, opts->xopts_nr + 1, opts->xopts_alloc);
                ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/sequencer.c:2859:3: note: +4, including nesting penalty of 3, nesting level increased to 4
                ALLOC_GROW(opts->xopts, opts->xopts_nr + 1, opts->xopts_alloc);
                ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/sequencer.c:2859:3: note: +1, nesting level increased to 4
                ALLOC_GROW(opts->xopts, opts->xopts_nr + 1, opts->xopts_alloc);
                ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/sequencer.c:2861:9: note: +1, nesting level increased to 1
        } else if (!strcmp(key, "options.allow-rerere-auto"))
               ^
/datasets/git/sequencer.c:2863:52: note: +2, including nesting penalty of 1, nesting level increased to 2
                        git_config_bool_or_int(key, value, &error_flag) ?
                                                                        ^
/datasets/git/sequencer.c:2865:7: note: +1, nesting level increased to 1
        else if (!strcmp(key, "options.default-msg-cleanup")) {
             ^
/datasets/git/sequencer.c:2868:4: note: +1, nesting level increased to 1
        } else
          ^
/datasets/git/sequencer.c:2871:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!error_flag)
        ^
/datasets/git/sequencer.c:2831:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!value)
                   ^
                    {
/datasets/git/sequencer.c:2833:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(key, "options.no-commit"))
                                                   ^
                                                    {
/datasets/git/sequencer.c:2835:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(key, "options.edit"))
                                              ^
                                               {
/datasets/git/sequencer.c:2837:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(key, "options.allow-empty"))
                                                     ^
                                                      {
/datasets/git/sequencer.c:2840:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(key, "options.allow-empty-message"))
                                                             ^
                                                              {
/datasets/git/sequencer.c:2843:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(key, "options.keep-redundant-commits"))
                                                                ^
                                                                 {
/datasets/git/sequencer.c:2846:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(key, "options.signoff"))
                                                 ^
                                                  {
/datasets/git/sequencer.c:2848:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(key, "options.record-origin"))
                                                       ^
                                                        {
/datasets/git/sequencer.c:2850:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(key, "options.allow-ff"))
                                                  ^
                                                   {
/datasets/git/sequencer.c:2852:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(key, "options.mainline"))
                                                  ^
                                                   {
/datasets/git/sequencer.c:2854:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(key, "options.strategy"))
                                                  ^
                                                   {
/datasets/git/sequencer.c:2856:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(key, "options.gpg-sign"))
                                                  ^
                                                   {
/datasets/git/sequencer.c:2859:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                ALLOC_GROW(opts->xopts, opts->xopts_nr + 1, opts->xopts_alloc);
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/sequencer.c:2861:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else if (!strcmp(key, "options.allow-rerere-auto"))
                                                             ^
                                                              {
/datasets/git/sequencer.c:2868:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/sequencer.c:2871:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!error_flag)
                        ^
                         {
/datasets/git/sequencer.c:2879:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/sequencer.c:2879:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:2882:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*strategy_opts_string == ' ')
                                         ^
                                          {
/datasets/git/sequencer.c:2887:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < opts->xopts_nr; i++) {
        ^
/datasets/git/sequencer.c:2887:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'xopts_nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < opts->xopts_nr; i++) {
                    ^
/datasets/git/sequencer.c:2898:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!read_oneliner(buf, rebase_path_strategy(), 0))
                                                           ^
                                                            {
/datasets/git/sequencer.c:2901:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!read_oneliner(buf, rebase_path_strategy_opts(), 0))
                                                                ^
                                                                 {
/datasets/git/sequencer.c:2907:12: warning: function 'read_populate_opts' has cognitive complexity of 43 (threshold 25) [readability-function-cognitive-complexity]
static int read_populate_opts(struct replay_opts *opts)
           ^
/datasets/git/sequencer.c:2909:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (is_rebase_i(opts)) {
        ^
/datasets/git/sequencer.c:2913:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (read_oneliner(&buf, rebase_path_gpg_sign_opt(),
                ^
/datasets/git/sequencer.c:2915:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!starts_with(buf.buf, "-S"))
                        ^
/datasets/git/sequencer.c:2917:4: note: +1, nesting level increased to 3
                        else {
                        ^
/datasets/git/sequencer.c:2924:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (read_oneliner(&buf, rebase_path_allow_rerere_autoupdate(),
                ^
/datasets/git/sequencer.c:2926:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!strcmp(buf.buf, "--rerere-autoupdate"))
                        ^
/datasets/git/sequencer.c:2928:9: note: +1, nesting level increased to 3
                        else if (!strcmp(buf.buf, "--no-rerere-autoupdate"))
                             ^
/datasets/git/sequencer.c:2933:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (file_exists(rebase_path_verbose()))
                ^
/datasets/git/sequencer.c:2936:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (file_exists(rebase_path_quiet()))
                ^
/datasets/git/sequencer.c:2939:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (file_exists(rebase_path_signoff())) {
                ^
/datasets/git/sequencer.c:2944:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (file_exists(rebase_path_cdate_is_adate())) {
                ^
/datasets/git/sequencer.c:2949:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (file_exists(rebase_path_ignore_date())) {
                ^
/datasets/git/sequencer.c:2954:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (file_exists(rebase_path_reschedule_failed_exec()))
                ^
/datasets/git/sequencer.c:2956:8: note: +1, nesting level increased to 2
                else if (file_exists(rebase_path_no_reschedule_failed_exec()))
                     ^
/datasets/git/sequencer.c:2959:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (file_exists(rebase_path_drop_redundant_commits()))
                ^
/datasets/git/sequencer.c:2962:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (file_exists(rebase_path_keep_redundant_commits()))
                ^
/datasets/git/sequencer.c:2968:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (read_oneliner(&opts->current_fixups,
                ^
/datasets/git/sequencer.c:2973:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while ((p = strchr(p, '\n'))) {
                        ^
/datasets/git/sequencer.c:2979:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (read_oneliner(&buf, rebase_path_squash_onto(), 0)) {
                ^
/datasets/git/sequencer.c:2980:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (get_oid_committish(buf.buf, &opts->squash_onto) < 0) {
                        ^
/datasets/git/sequencer.c:2982:5: note: +1
                                goto done_rebase_i;
                                ^
/datasets/git/sequencer.c:2992:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!file_exists(git_path_opts_file()))
        ^
/datasets/git/sequencer.c:3000:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (git_config_from_file(populate_opts_cb, git_path_opts_file(), opts) < 0)
        ^
/datasets/git/sequencer.c:2914:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                  READ_ONELINER_SKIP_IF_EMPTY)) {
                                  ^
/datasets/git/./sequencer.h:233:38: note: expanded from macro 'READ_ONELINER_SKIP_IF_EMPTY'
#define READ_ONELINER_SKIP_IF_EMPTY (1 << 0)
                                     ^
/datasets/git/sequencer.c:2915:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!starts_with(buf.buf, "-S"))
                                                        ^
                                                         {
/datasets/git/sequencer.c:2925:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                  READ_ONELINER_SKIP_IF_EMPTY)) {
                                  ^
/datasets/git/./sequencer.h:233:38: note: expanded from macro 'READ_ONELINER_SKIP_IF_EMPTY'
#define READ_ONELINER_SKIP_IF_EMPTY (1 << 0)
                                     ^
/datasets/git/sequencer.c:2926:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!strcmp(buf.buf, "--rerere-autoupdate"))
                                                                    ^
                                                                     {
/datasets/git/sequencer.c:2928:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (!strcmp(buf.buf, "--no-rerere-autoupdate"))
                                                                            ^
                                                                             {
/datasets/git/sequencer.c:2933:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (file_exists(rebase_path_verbose()))
                                                       ^
                                                        {
/datasets/git/sequencer.c:2936:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (file_exists(rebase_path_quiet()))
                                                     ^
                                                      {
/datasets/git/sequencer.c:2954:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (file_exists(rebase_path_reschedule_failed_exec()))
                                                                      ^
                                                                       {
/datasets/git/sequencer.c:2956:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (file_exists(rebase_path_no_reschedule_failed_exec()))
                                                                              ^
                                                                               {
/datasets/git/sequencer.c:2959:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (file_exists(rebase_path_drop_redundant_commits()))
                                                                      ^
                                                                       {
/datasets/git/sequencer.c:2962:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (file_exists(rebase_path_keep_redundant_commits()))
                                                                      ^
                                                                       {
/datasets/git/sequencer.c:2970:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                  READ_ONELINER_SKIP_IF_EMPTY)) {
                                  ^
/datasets/git/./sequencer.h:233:38: note: expanded from macro 'READ_ONELINER_SKIP_IF_EMPTY'
#define READ_ONELINER_SKIP_IF_EMPTY (1 << 0)
                                     ^
/datasets/git/sequencer.c:2971:4: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                        const char *p = opts->current_fixups.buf;
                        ^
/datasets/git/sequencer.c:2971:16: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                        const char *p = opts->current_fixups.buf;
                                    ^
/datasets/git/sequencer.c:2973:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while ((p = strchr(p, '\n'))) {
                        ^
/datasets/git/sequencer.c:2973:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while ((p = strchr(p, '\n'))) {
                               ^
/datasets/git/sequencer.c:2992:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!file_exists(git_path_opts_file()))
                                               ^
                                                {
/datasets/git/sequencer.c:3000:77: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (git_config_from_file(populate_opts_cb, git_path_opts_file(), opts) < 0)
                                                                                   ^
                                                                                    {
/datasets/git/sequencer.c:3008:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/sequencer.c:3008:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:3011:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < opts->xopts_nr; ++i)
        ^
/datasets/git/sequencer.c:3011:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'xopts_nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < opts->xopts_nr; ++i)
                    ^
/datasets/git/sequencer.c:3011:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < opts->xopts_nr; ++i)
                                            ^
                                             {
/datasets/git/sequencer.c:3021:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (head_name)
                      ^
                       {
/datasets/git/sequencer.c:3023:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (onto)
                 ^
                  {
/datasets/git/sequencer.c:3026:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (orig_head)
                      ^
                       {
/datasets/git/sequencer.c:3030:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->quiet)
                        ^
                         {
/datasets/git/sequencer.c:3032:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->verbose)
                          ^
                           {
/datasets/git/sequencer.c:3034:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->strategy)
                           ^
                            {
/datasets/git/sequencer.c:3036:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->xopts_nr > 0)
                               ^
                                {
/datasets/git/sequencer.c:3039:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->allow_rerere_auto == RERERE_AUTOUPDATE)
                                                         ^
                                                          {
/datasets/git/sequencer.c:3041:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (opts->allow_rerere_auto == RERERE_NOAUTOUPDATE)
                                                                ^
                                                                 {
/datasets/git/sequencer.c:3044:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->gpg_sign)
                           ^
                            {
/datasets/git/sequencer.c:3046:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->signoff)
                          ^
                           {
/datasets/git/sequencer.c:3048:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->drop_redundant_commits)
                                         ^
                                          {
/datasets/git/sequencer.c:3050:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->keep_redundant_commits)
                                         ^
                                          {
/datasets/git/sequencer.c:3052:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->committer_date_is_author_date)
                                                ^
                                                 {
/datasets/git/sequencer.c:3054:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->ignore_date)
                              ^
                               {
/datasets/git/sequencer.c:3056:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->reschedule_failed_exec)
                                         ^
                                          {
/datasets/git/sequencer.c:3058:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/sequencer.c:3070:14: warning: variable 'encoding' is not initialized [cppcoreguidelines-init-variables]
        const char *encoding;
                    ^
                             = NULL
/datasets/git/sequencer.c:3071:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/sequencer.c:3073:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prepare_revs(opts))
                               ^
                                {
/datasets/git/sequencer.c:3078:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((commit = get_revision(opts->revs))) {
        ^
/datasets/git/sequencer.c:3078:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'commit' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((commit = get_revision(opts->revs))) {
               ^
/datasets/git/sequencer.c:3081:15: warning: variable 'subject' is not initialized [cppcoreguidelines-init-variables]
                const char *subject;
                            ^
                                    = NULL
/datasets/git/sequencer.c:3082:7: warning: variable 'subject_len' is not initialized [cppcoreguidelines-init-variables]
                int subject_len;
                    ^
                                = 0
/datasets/git/sequencer.c:3095:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!todo_list->nr)
                           ^
                            {
/datasets/git/sequencer.c:3101:46: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int create_seq_dir(struct repository *r)
                                             ^
/datasets/git/sequencer.c:3103:21: warning: variable 'action' is not initialized [cppcoreguidelines-init-variables]
        enum replay_action action;
                           ^
/datasets/git/sequencer.c:3128:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (advice_enabled(ADVICE_SEQUENCER_IN_USE))
                                                            ^
                                                             {
/datasets/git/sequencer.c:3133:32: warning: 0777 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (mkdir(git_path_seq_dir(), 0777) < 0)
                                      ^
/datasets/git/sequencer.c:3133:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mkdir(git_path_seq_dir(), 0777) < 0)
                                                ^
                                                 {
/datasets/git/sequencer.c:3144:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/sequencer.c:3144:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:3145:10: warning: variable 'written' is not initialized [cppcoreguidelines-init-variables]
        ssize_t written;
                ^
                        = 0
/datasets/git/sequencer.c:3148:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fd < 0)
                   ^
                    {
/datasets/git/sequencer.c:3158:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (commit_lock_file(&head_lock) < 0)
                                             ^
                                              {
/datasets/git/sequencer.c:3165:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/sequencer.c:3166:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct object_id expected_head, actual_head;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:3176:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (errno == ENOENT)
                                 ^
                                  {
/datasets/git/sequencer.c:3178:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/sequencer.c:3181:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid("HEAD", &actual_head))
                                          ^
                                           {
/datasets/git/sequencer.c:3194:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_null_oid(oid))
                              ^
                               {
/datasets/git/sequencer.c:3200:52: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int rollback_single_pick(struct repository *r)
                                                   ^
/datasets/git/sequencer.c:3205:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !refs_ref_exists(get_main_ref_store(r), "REVERT_HEAD"))
                                                                   ^
                                                                    {
/datasets/git/sequencer.c:3207:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (read_ref_full("HEAD", 0, &head_oid, NULL))
                                                      ^
                                                       {
/datasets/git/sequencer.c:3209:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_null_oid(&head_oid))
                                   ^
                                    {
/datasets/git/sequencer.c:3218:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (read_ref_full("HEAD", 0, &head, NULL))
                                                  ^
                                                   {
/datasets/git/sequencer.c:3223:43: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int sequencer_rollback(struct repository *r, struct replay_opts *opts)
                                          ^
/datasets/git/sequencer.c:3225:8: warning: variable 'f' is not initialized [cppcoreguidelines-init-variables]
        FILE *f;
              ^
                = NULL
/datasets/git/sequencer.c:3225:8: warning: variable name 'f' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:3228:14: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        const char *p;
                    ^
                      = NULL
/datasets/git/sequencer.c:3228:14: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:3239:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!f)
               ^
                {
/datasets/git/sequencer.c:3243:22: warning: function is not thread safe [concurrency-mt-unsafe]
                      ferror(f) ?  strerror(errno) : _("unexpected end of file"));
                                   ^
/datasets/git/sequencer.c:3244:3: warning: the value returned by this function should be used [cert-err33-c]
                fclose(f);
                ^~~~~~~~~
/datasets/git/sequencer.c:3244:3: note: cast the expression to void to silence this warning
/datasets/git/sequencer.c:3247:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(f);
        ^~~~~~~~~
/datasets/git/sequencer.c:3247:2: note: cast the expression to void to silence this warning
/datasets/git/sequencer.c:3263:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (reset_merge(&oid))
                              ^
                               {
/datasets/git/sequencer.c:3265:2: warning: misleading indentation: statement is indented too deeply [readability-misleading-indentation]
        strbuf_release(&buf);
        ^
/datasets/git/sequencer.c:3258:2: note: did you mean this line to be inside this 'if'
        if (!rollback_is_safe()) {
        ^
/datasets/git/sequencer.c:3272:39: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int sequencer_skip(struct repository *r, struct replay_opts *opts)
                                      ^
/datasets/git/sequencer.c:3300:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (action != REPLAY_REVERT)
                                                    ^
                                                     {
/datasets/git/sequencer.c:3302:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!rollback_is_safe())
                                                ^
                                                 {
/datasets/git/sequencer.c:3309:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (action != REPLAY_PICK)
                                                  ^
                                                   {
/datasets/git/sequencer.c:3311:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!rollback_is_safe())
                                                ^
                                                 {
/datasets/git/sequencer.c:3319:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (skip_single_pick())
                               ^
                                {
/datasets/git/sequencer.c:3321:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_directory(git_path_seq_dir()))
                                              ^
                                               {
/datasets/git/sequencer.c:3341:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int next = todo_list->current, offset, fd;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:3341:33: warning: variable 'offset' is not initialized [cppcoreguidelines-init-variables]
        int next = todo_list->current, offset, fd;
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:3341:41: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int next = todo_list->current, offset, fd;
                                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:3341:41: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:3347:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_rebase_i(opts))
                              ^
                               {
/datasets/git/sequencer.c:3351:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fd < 0)
                   ^
                    {
/datasets/git/sequencer.c:3355:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        todo_list->buf.len - offset) < 0)
                                                         ^
                                                          {
/datasets/git/sequencer.c:3357:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (commit_lock_file(&todo_lock) < 0)
                                             ^
                                              {
/datasets/git/sequencer.c:3362:7: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
                int fd = open(done, O_CREAT | O_WRONLY | O_APPEND, 0666);
                    ^
/datasets/git/sequencer.c:3362:52: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
                int fd = open(done, O_CREAT | O_WRONLY | O_APPEND, 0666);
                                                                 ^
                                                                  | O_CLOEXEC
/datasets/git/sequencer.c:3362:54: warning: 0666 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                int fd = open(done, O_CREAT | O_WRONLY | O_APPEND, 0666);
                                                                   ^
/datasets/git/sequencer.c:3365:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fd < 0)
                           ^
                            {
/datasets/git/sequencer.c:3369:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    < 0)
                        ^
                         {
/datasets/git/sequencer.c:3371:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (close(fd) < 0)
                                  ^
                                   {
/datasets/git/sequencer.c:3383:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->no_commit)
                            ^
                             {
/datasets/git/sequencer.c:3384:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                res |= git_config_set_in_file_gently(opts_file,
                ^~~
/datasets/git/sequencer.c:3386:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->edit >= 0)
                            ^
                             {
/datasets/git/sequencer.c:3387:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                res |= git_config_set_in_file_gently(opts_file, "options.edit",
                ^~~
/datasets/git/sequencer.c:3389:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->allow_empty)
                              ^
                               {
/datasets/git/sequencer.c:3390:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                res |= git_config_set_in_file_gently(opts_file,
                ^~~
/datasets/git/sequencer.c:3392:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->allow_empty_message)
                                      ^
                                       {
/datasets/git/sequencer.c:3393:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                res |= git_config_set_in_file_gently(opts_file,
                ^~~
/datasets/git/sequencer.c:3395:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->keep_redundant_commits)
                                         ^
                                          {
/datasets/git/sequencer.c:3396:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                res |= git_config_set_in_file_gently(opts_file,
                ^~~
/datasets/git/sequencer.c:3398:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->signoff)
                          ^
                           {
/datasets/git/sequencer.c:3399:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                res |= git_config_set_in_file_gently(opts_file,
                ^~~
/datasets/git/sequencer.c:3401:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->record_origin)
                                ^
                                 {
/datasets/git/sequencer.c:3402:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                res |= git_config_set_in_file_gently(opts_file,
                ^~~
/datasets/git/sequencer.c:3404:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->allow_ff)
                           ^
                            {
/datasets/git/sequencer.c:3405:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                res |= git_config_set_in_file_gently(opts_file,
                ^~~
/datasets/git/sequencer.c:3410:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                res |= git_config_set_in_file_gently(opts_file,
                ^~~
/datasets/git/sequencer.c:3414:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->strategy)
                           ^
                            {
/datasets/git/sequencer.c:3415:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                res |= git_config_set_in_file_gently(opts_file,
                ^~~
/datasets/git/sequencer.c:3417:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->gpg_sign)
                           ^
                            {
/datasets/git/sequencer.c:3418:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                res |= git_config_set_in_file_gently(opts_file,
                ^~~
/datasets/git/sequencer.c:3421:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/sequencer.c:3421:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:3422:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < opts->xopts_nr; i++)
                ^
/datasets/git/sequencer.c:3422:15: warning: backward branch (for loop) is ID-dependent due to member reference to 'xopts_nr' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < opts->xopts_nr; i++)
                            ^
/datasets/git/sequencer.c:3422:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < opts->xopts_nr; i++)
                                                    ^
                                                     {
/datasets/git/sequencer.c:3423:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        res |= git_config_set_multivar_in_file_gently(opts_file,
                        ^~~
/datasets/git/sequencer.c:3427:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->allow_rerere_auto)
                                    ^
                                     {
/datasets/git/sequencer.c:3428:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                res |= git_config_set_in_file_gently(opts_file,
                ^~~
/datasets/git/sequencer.c:3433:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->explicit_cleanup)
                                   ^
                                    {
/datasets/git/sequencer.c:3434:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                res |= git_config_set_in_file_gently(opts_file,
                ^~~
/datasets/git/sequencer.c:3440:42: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int make_patch(struct repository *r,
                                         ^
/datasets/git/sequencer.c:3446:14: warning: variable 'subject' is not initialized [cppcoreguidelines-init-variables]
        const char *subject;
                    ^
                            = NULL
/datasets/git/sequencer.c:3451:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_message(hex, strlen(hex), rebase_path_stopped_sha(), 1) < 0)
                                                                              ^
                                                                               {
/datasets/git/sequencer.c:3453:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        res |= write_rebase_head(&commit->object.oid);
        ^~~
/datasets/git/sequencer.c:3456:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&log_tree_opt, 0, sizeof(log_tree_opt));
        ^~~~~~
/datasets/git/sequencer.c:3456:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&log_tree_opt, 0, sizeof(log_tree_opt));
        ^~~~~~
/datasets/git/sequencer.c:3465:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!log_tree_opt.diffopt.file)
                                       ^
                                        {
/datasets/git/sequencer.c:3466:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                res |= error_errno(_("could not open '%s'"), buf.buf);
                ^~~
/datasets/git/sequencer.c:3468:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                res |= log_tree_commit(&log_tree_opt, commit);
                ^~~
/datasets/git/sequencer.c:3469:3: warning: the value returned by this function should be used [cert-err33-c]
                fclose(log_tree_opt.diffopt.file);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:3469:3: note: cast the expression to void to silence this warning
/datasets/git/sequencer.c:3478:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                res |= write_message(subject, strlen(subject), buf.buf, 1);
                ^~~
/datasets/git/sequencer.c:3490:8: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        char *p;
              ^
                = NULL
/datasets/git/sequencer.c:3490:8: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:3492:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid("HEAD", &head))
                                   ^
                                    {
/datasets/git/sequencer.c:3499:48: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int error_with_patch(struct repository *r,
                                               ^
/datasets/git/sequencer.c:3503:8: warning: 2 adjacent parameters of 'error_with_patch' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                            int exit_code, int to_amend)
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:3503:12: note: the first parameter in the range is 'exit_code'
                            int exit_code, int to_amend)
                                ^~~~~~~~~
/datasets/git/sequencer.c:3503:27: note: the last parameter in the range is 'to_amend'
                            int exit_code, int to_amend)
                                               ^~~~~~~~
/datasets/git/sequencer.c:3506:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (make_patch(r, commit, opts))
                                                ^
                                                 {
/datasets/git/sequencer.c:3509:32: warning: 0666 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                             git_path_merge_msg(r), 0666))
                                                    ^
/datasets/git/sequencer.c:3509:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                             git_path_merge_msg(r), 0666))
                                                          ^
                                                           {
/datasets/git/sequencer.c:3514:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (intend_to_amend())
                                      ^
                                       {
/datasets/git/sequencer.c:3517:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr,
                ^~~~~~~~~~~~~~~
/datasets/git/sequencer.c:3517:3: note: cast the expression to void to silence this warning
/datasets/git/sequencer.c:3527:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (commit)
                           ^
                            {
/datasets/git/sequencer.c:3530:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/sequencer.c:3542:51: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int error_failed_squash(struct repository *r,
                                                  ^
/datasets/git/sequencer.c:3548:65: warning: 0666 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (copy_file(rebase_path_message(), rebase_path_squash_msg(), 0666))
                                                                       ^
/datasets/git/sequencer.c:3548:71: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (copy_file(rebase_path_message(), rebase_path_squash_msg(), 0666))
                                                                             ^
                                                                              {
/datasets/git/sequencer.c:3552:62: warning: 0666 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (copy_file(git_path_merge_msg(r), rebase_path_message(), 0666))
                                                                    ^
/datasets/git/sequencer.c:3552:68: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (copy_file(git_path_merge_msg(r), rebase_path_message(), 0666))
                                                                          ^
                                                                           {
/datasets/git/sequencer.c:3559:39: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int do_exec(struct repository *r, const char *command_line)
                                      ^
/datasets/git/sequencer.c:3562:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int dirty, status;
        ^~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:3562:6: warning: variable 'dirty' is not initialized [cppcoreguidelines-init-variables]
        int dirty, status;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:3562:13: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int dirty, status;
                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:3564:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(stderr, _("Executing: %s\n"), command_line);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:3564:2: note: cast the expression to void to silence this warning
/datasets/git/sequencer.c:3571:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_read_index(r) < 0)
                                   ^
                                    {
/datasets/git/sequencer.c:3585:17: warning: 127 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (status == 127)
                              ^
/datasets/git/sequencer.c:3585:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (status == 127)
                                  ^
                                   {
/datasets/git/sequencer.c:3602:24: warning: 2 adjacent parameters of 'safe_append' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int safe_append(const char *filename, const char *fmt, ...)
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:3602:36: note: the first parameter in the range is 'filename'
static int safe_append(const char *filename, const char *fmt, ...)
                                   ^~~~~~~~
/datasets/git/sequencer.c:3602:58: note: the last parameter in the range is 'fmt'
static int safe_append(const char *filename, const char *fmt, ...)
                                                         ^~~
/datasets/git/sequencer.c:3604:10: warning: variable name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
        va_list ap;
                ^
/datasets/git/sequencer.c:3606:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
        int fd = hold_lock_file_for_update(&lock, filename,
            ^
/datasets/git/sequencer.c:3610:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fd < 0)
                   ^
                    {
/datasets/git/sequencer.c:3639:40: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int do_label(struct repository *r, const char *name, int len)
                                       ^
/datasets/git/sequencer.c:3642:26: warning: variable 'transaction' is not initialized [cppcoreguidelines-init-variables]
        struct ref_transaction *transaction;
                                ^
                                            = NULL
/datasets/git/sequencer.c:3643:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct strbuf ref_name = STRBUF_INIT, err = STRBUF_INIT;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:3648:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len == 1 && *name == '#')
                                     ^
                                      {
/datasets/git/sequencer.c:3655:20: warning: repeated branch in conditional chain [bugprone-branch-clone]
        if (!transaction) {
                          ^
/datasets/git/sequencer.c:3658:3: note: end of the original
        } else if (get_oid("HEAD", &head_oid)) {
         ^
/datasets/git/sequencer.c:3663:49: note: clone 1 starts here
                   ref_transaction_commit(transaction, &err)) {
                                                              ^
/datasets/git/sequencer.c:3671:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ret)
                 ^
                  {
/datasets/git/sequencer.c:3682:25: warning: function is not thread safe [concurrency-mt-unsafe]
                opts->reflog_action = getenv(GIT_REFLOG_ACTION);
                                      ^
/datasets/git/sequencer.c:3693:2: warning: 2 adjacent parameters of 'reflog_message' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
        const char *sub_action, const char *fmt, ...)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:3693:14: note: the first parameter in the range is 'sub_action'
        const char *sub_action, const char *fmt, ...)
                    ^~~~~~~~~~
/datasets/git/sequencer.c:3693:38: note: the last parameter in the range is 'fmt'
        const char *sub_action, const char *fmt, ...)
                                            ^~~
/datasets/git/sequencer.c:3695:10: warning: variable name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
        va_list ap;
                ^
/datasets/git/sequencer.c:3701:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (sub_action)
                       ^
                        {
/datasets/git/sequencer.c:3712:55: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static struct commit *lookup_label(struct repository *r, const char *label,
                                                      ^
/datasets/git/sequencer.c:3715:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/sequencer.c:3728:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!commit)
                    ^
                     {
/datasets/git/sequencer.c:3734:12: warning: function 'do_reset' has cognitive complexity of 29 (threshold 25) [readability-function-cognitive-complexity]
static int do_reset(struct repository *r,
           ^
/datasets/git/sequencer.c:3746:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (repo_hold_locked_index(r, &lock, LOCK_REPORT_ON_ERROR) < 0)
        ^
/datasets/git/sequencer.c:3749:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (len == 10 && !strncmp("[new root]", name, len)) {
        ^
/datasets/git/sequencer.c:3749:16: note: +1
        if (len == 10 && !strncmp("[new root]", name, len)) {
                      ^
/datasets/git/sequencer.c:3750:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!opts->have_squash_onto) {
                ^
/datasets/git/sequencer.c:3752:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (commit_tree("", 0, the_hash_algo->empty_tree,
                        ^
/datasets/git/sequencer.c:3758:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (write_message(hex, strlen(hex),
                        ^
/datasets/git/sequencer.c:3763:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/sequencer.c:3768:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < len; i++)
                ^
/datasets/git/sequencer.c:3769:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (isspace(name[i]))
                        ^
/datasets/git/sequencer.c:3774:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!commit) {
                ^
/datasets/git/sequencer.c:3776:4: note: +1
                        goto cleanup;
                        ^
/datasets/git/sequencer.c:3792:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (repo_read_index_unmerged(r)) {
        ^
/datasets/git/sequencer.c:3794:3: note: +1
                goto cleanup;
                ^
/datasets/git/sequencer.c:3797:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!fill_tree_descriptor(r, &desc, &oid)) {
        ^
/datasets/git/sequencer.c:3799:3: note: +1
                goto cleanup;
                ^
/datasets/git/sequencer.c:3802:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (unpack_trees(1, &desc, &unpack_tree_opts)) {
        ^
/datasets/git/sequencer.c:3804:3: note: +1
                goto cleanup;
                ^
/datasets/git/sequencer.c:3810:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (write_locked_index(r->index, &lock, COMMIT_LOCK) < 0)
        ^
/datasets/git/sequencer.c:3813:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!ret)
        ^
/datasets/git/sequencer.c:3819:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ret < 0)
        ^
/datasets/git/sequencer.c:3734:40: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int do_reset(struct repository *r,
                                       ^
/datasets/git/sequencer.c:3742:15: warning: variable 'tree' is not initialized [cppcoreguidelines-init-variables]
        struct tree *tree;
                     ^
                          = NULL
/datasets/git/sequencer.c:3746:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_hold_locked_index(r, &lock, LOCK_REPORT_ON_ERROR) < 0)
                                                                       ^
                                                                        {
/datasets/git/sequencer.c:3749:13: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (len == 10 && !strncmp("[new root]", name, len)) {
                   ^
/datasets/git/sequencer.c:3751:16: warning: variable 'hex' is not initialized [cppcoreguidelines-init-variables]
                        const char *hex;
                                    ^
                                        = NULL
/datasets/git/sequencer.c:3754:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        NULL, NULL))
                                                    ^
                                                     {
/datasets/git/sequencer.c:3759:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                          rebase_path_squash_onto(), 0))
                                                                        ^
                                                                         {
/datasets/git/sequencer.c:3764:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/sequencer.c:3764:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:3765:18: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
                struct commit *commit;
                               ^
                                      = NULL
/datasets/git/sequencer.c:3768:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < len; i++)
                ^
/datasets/git/sequencer.c:3768:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < len; i++)
                            ^
/datasets/git/sequencer.c:3768:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < len; i++)
                                         ^
                                          {
/datasets/git/sequencer.c:3769:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (isspace(name[i]))
                            ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/sequencer.c:3769:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (isspace(name[i]))
                                             ^
                                              {
/datasets/git/sequencer.c:3810:42: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (write_locked_index(r->index, &lock, COMMIT_LOCK) < 0)
                                                ^
/datasets/git/./refs/../cache.h:744:23: note: expanded from macro 'COMMIT_LOCK'
#define COMMIT_LOCK             (1 << 0)
                                 ^
/datasets/git/sequencer.c:3810:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_locked_index(r->index, &lock, COMMIT_LOCK) < 0)
                                                                 ^
                                                                  {
/datasets/git/sequencer.c:3813:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ret)
                 ^
                  {
/datasets/git/sequencer.c:3819:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret < 0)
                    ^
                     {
/datasets/git/sequencer.c:3826:12: warning: function 'do_merge' has cognitive complexity of 107 (threshold 25) [readability-function-cognitive-complexity]
static int do_merge(struct repository *r,
           ^
/datasets/git/sequencer.c:3839:36: note: +1, including nesting penalty of 0, nesting level increased to 1
                 !strcmp(opts->strategy, "ort")) ?
                                                 ^
/datasets/git/sequencer.c:3836:41: note: +1
        const char *strategy = !opts->xopts_nr &&
                                               ^
/datasets/git/sequencer.c:3838:41: note: +1
                 !strcmp(opts->strategy, "recursive") ||
                                                      ^
/datasets/git/sequencer.c:3846:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (repo_hold_locked_index(r, &lock, LOCK_REPORT_ON_ERROR) < 0) {
        ^
/datasets/git/sequencer.c:3848:3: note: +1
                goto leave_merge;
                ^
/datasets/git/sequencer.c:3852:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!head_commit) {
        ^
/datasets/git/sequencer.c:3854:3: note: +1
                goto leave_merge;
                ^
/datasets/git/sequencer.c:3862:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (p = arg; p - arg < arg_len; p += strspn(p, " \t\n")) {
        ^
/datasets/git/sequencer.c:3863:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!*p)
                ^
/datasets/git/sequencer.c:3865:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*p == '#' && (!p[1] || isspace(p[1]))) {
                ^
/datasets/git/sequencer.c:3865:17: note: +1
                if (*p == '#' && (!p[1] || isspace(p[1]))) {
                              ^
/datasets/git/sequencer.c:3865:27: note: +1
                if (*p == '#' && (!p[1] || isspace(p[1]))) {
                                        ^
/datasets/git/sequencer.c:3871:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!k)
                ^
/datasets/git/sequencer.c:3874:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!merge_commit) {
                ^
/datasets/git/sequencer.c:3876:4: note: +1
                        goto leave_merge;
                        ^
/datasets/git/sequencer.c:3883:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!to_merge) {
        ^
/datasets/git/sequencer.c:3885:3: note: +1
                goto leave_merge;
                ^
/datasets/git/sequencer.c:3888:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->have_squash_onto &&
        ^
/datasets/git/sequencer.c:3888:29: note: +1
        if (opts->have_squash_onto &&
                                   ^
/datasets/git/sequencer.c:3895:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (to_merge->next)
                ^
/datasets/git/sequencer.c:3898:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/sequencer.c:3902:3: note: +1
                goto leave_merge;
                ^
/datasets/git/sequencer.c:3909:65: note: +1
        can_fast_forward = opts->allow_ff && commit && commit->parents &&
                                                                       ^
/datasets/git/sequencer.c:3917:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (can_fast_forward) {
        ^
/datasets/git/sequencer.c:3920:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (j = to_merge; j && p; j = j->next, p = p->next)
                ^
/datasets/git/sequencer.c:3920:24: note: +1
                for (j = to_merge; j && p; j = j->next, p = p->next)
                                     ^
/datasets/git/sequencer.c:3921:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!oideq(&j->item->object.oid,
                        ^
/datasets/git/sequencer.c:3930:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (j || p)
                ^
/datasets/git/sequencer.c:3930:9: note: +1
                if (j || p)
                      ^
/datasets/git/sequencer.c:3934:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (can_fast_forward) {
        ^
/datasets/git/sequencer.c:3938:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (flags & TODO_EDIT_MERGE_MSG)
                ^
/datasets/git/sequencer.c:3941:3: note: +1
                goto leave_merge;
                ^
/datasets/git/sequencer.c:3944:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (commit) {
        ^
/datasets/git/sequencer.c:3950:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!message) {
                ^
/datasets/git/sequencer.c:3953:4: note: +1
                        goto leave_merge;
                        ^
/datasets/git/sequencer.c:3960:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ret) {
                ^
/datasets/git/sequencer.c:3963:4: note: +1
                        goto leave_merge;
                        ^
/datasets/git/sequencer.c:3965:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/sequencer.c:3973:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (oneline_offset < arg_len) {
                ^
/datasets/git/sequencer.c:3976:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/sequencer.c:3978:24: note: +3, including nesting penalty of 2, nesting level increased to 3
                                    to_merge->next ? "branches" : "branch",
                                                   ^
/datasets/git/sequencer.c:3986:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ret) {
                ^
/datasets/git/sequencer.c:3989:4: note: +1
                        goto leave_merge;
                        ^
/datasets/git/sequencer.c:3993:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (strategy || to_merge->next) {
        ^
/datasets/git/sequencer.c:3993:15: note: +1
        if (strategy || to_merge->next) {
                     ^
/datasets/git/sequencer.c:3997:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (read_env_script(&cmd.env)) {
                ^
/datasets/git/sequencer.c:4001:4: note: +1
                        goto leave_merge;
                        ^
/datasets/git/sequencer.c:4004:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opts->committer_date_is_author_date)
                ^
/datasets/git/sequencer.c:4006:28: note: +3, including nesting penalty of 2, nesting level increased to 3
                                     opts->ignore_date ?
                                                       ^
/datasets/git/sequencer.c:4009:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opts->ignore_date)
                ^
/datasets/git/sequencer.c:4015:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strategy)
                ^
/datasets/git/sequencer.c:4017:3: note: +1, nesting level increased to 2
                else {
                ^
/datasets/git/sequencer.c:4019:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (k = 0; k < opts->xopts_nr; k++)
                        ^
/datasets/git/sequencer.c:4023:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!(flags & TODO_EDIT_MERGE_MSG))
                ^
/datasets/git/sequencer.c:4025:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/sequencer.c:4032:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opts->gpg_sign)
                ^
/datasets/git/sequencer.c:4034:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/sequencer.c:4038:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (j = to_merge; j; j = j->next)
                ^
/datasets/git/sequencer.c:4050:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!ret) {
                ^
/datasets/git/sequencer.c:4052:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (repo_read_index(r) < 0)
                        ^
/datasets/git/sequencer.c:4055:3: note: +1
                goto leave_merge;
                ^
/datasets/git/sequencer.c:4060:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (bases && oideq(&merge_commit->object.oid,
        ^
/datasets/git/sequencer.c:4060:12: note: +1
        if (bases && oideq(&merge_commit->object.oid,
                  ^
/datasets/git/sequencer.c:4064:3: note: +1
                goto leave_merge;
                ^
/datasets/git/sequencer.c:4079:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!opts->strategy || !strcmp(opts->strategy, "ort")) {
        ^
/datasets/git/sequencer.c:4079:22: note: +1
        if (!opts->strategy || !strcmp(opts->strategy, "ort")) {
                            ^
/datasets/git/sequencer.c:4089:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/sequencer.c:4093:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ret <= 0)
        ^
/datasets/git/sequencer.c:4096:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ret < 0) {
        ^
/datasets/git/sequencer.c:4099:3: note: +1
                goto leave_merge;
                ^
/datasets/git/sequencer.c:4111:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (r->index->cache_changed &&
        ^
/datasets/git/sequencer.c:4111:30: note: +1
        if (r->index->cache_changed &&
                                    ^
/datasets/git/sequencer.c:4114:3: note: +1
                goto leave_merge;
                ^
/datasets/git/sequencer.c:4118:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ret)
        ^
/datasets/git/sequencer.c:4120:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/sequencer.c:4129:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!ret && flags & TODO_EDIT_MERGE_MSG) {
        ^
/datasets/git/sequencer.c:4129:11: note: +1
        if (!ret && flags & TODO_EDIT_MERGE_MSG) {
                 ^
/datasets/git/sequencer.c:3826:40: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int do_merge(struct repository *r,
                                       ^
/datasets/git/sequencer.c:3828:24: warning: 2 adjacent parameters of 'do_merge' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                    const char *arg, int arg_len,
                                     ^~~~~~~~~~~~
/datasets/git/sequencer.c:3828:28: note: the first parameter in the range is 'arg_len'
                    const char *arg, int arg_len,
                                         ^~~~~~~
/datasets/git/sequencer.c:3829:11: note: the last parameter in the range is 'flags'
                    int flags, int *check_todo, struct replay_opts *opts)
                        ^~~~~
/datasets/git/sequencer.c:3833:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit *head_commit, *merge_commit, *i;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:3833:17: warning: variable 'head_commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *head_commit, *merge_commit, *i;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:3833:31: warning: variable 'merge_commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *head_commit, *merge_commit, *i;
                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:3833:46: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        struct commit *head_commit, *merge_commit, *i;
                                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:3833:46: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:3834:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit_list *bases, *j;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:3834:22: warning: variable 'bases' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *bases, *j;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:3834:30: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *bases, *j;
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:3834:30: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:3835:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit_list *to_merge = NULL, **tail = &to_merge;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:3841:23: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
        struct merge_options o;
                             ^
/datasets/git/sequencer.c:3842:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int merge_arg_len, oneline_offset, can_fast_forward, ret, k;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:3844:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        const char *p;
        ^
/datasets/git/sequencer.c:3842:6: warning: variable 'merge_arg_len' is not initialized [cppcoreguidelines-init-variables]
        int merge_arg_len, oneline_offset, can_fast_forward, ret, k;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:3842:21: warning: variable 'oneline_offset' is not initialized [cppcoreguidelines-init-variables]
        int merge_arg_len, oneline_offset, can_fast_forward, ret, k;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:3842:37: warning: variable 'can_fast_forward' is not initialized [cppcoreguidelines-init-variables]
        int merge_arg_len, oneline_offset, can_fast_forward, ret, k;
                                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:3842:55: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int merge_arg_len, oneline_offset, can_fast_forward, ret, k;
                                                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:3842:60: warning: variable 'k' is not initialized [cppcoreguidelines-init-variables]
        int merge_arg_len, oneline_offset, can_fast_forward, ret, k;
                                                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:3842:60: warning: variable name 'k' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:3844:14: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        const char *p;
                    ^
                      = NULL
/datasets/git/sequencer.c:3844:14: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:3862:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = arg; p - arg < arg_len; p += strspn(p, " \t\n")) {
        ^
/datasets/git/sequencer.c:3862:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = arg; p - arg < arg_len; p += strspn(p, " \t\n")) {
                      ^
/datasets/git/sequencer.c:3863:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!*p)
                        ^
                         {
/datasets/git/sequencer.c:3865:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (*p == '#' && (!p[1] || isspace(p[1]))) {
                                           ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/sequencer.c:3867:21: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        oneline_offset = p - arg;
                                         ^
/datasets/git/sequencer.c:3870:7: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                k = strcspn(p, " \t\n");
                    ^
/datasets/git/sequencer.c:3871:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!k)
                       ^
                        {
/datasets/git/sequencer.c:3880:19: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                merge_arg_len = p - arg;
                                ^
/datasets/git/sequencer.c:3895:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (to_merge->next)
                                   ^
                                    {
/datasets/git/sequencer.c:3898:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/sequencer.c:3918:23: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct commit_list *p = commit->parents->next;
                                    ^
/datasets/git/sequencer.c:3920:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (j = to_merge; j && p; j = j->next, p = p->next)
                ^
/datasets/git/sequencer.c:3920:22: warning: backward branch (for loop) is ID-dependent due to variable reference to 'j' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (j = to_merge; j && p; j = j->next, p = p->next)
                                   ^
/datasets/git/sequencer.c:3920:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (j = to_merge; j && p; j = j->next, p = p->next)
                                                                    ^
                                                                     {
/datasets/git/sequencer.c:3930:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (j || p)
                           ^
                            {
/datasets/git/sequencer.c:3938:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flags & TODO_EDIT_MERGE_MSG)
                    ^~~~~
/datasets/git/sequencer.c:3938:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (flags & TODO_EDIT_MERGE_MSG)
                                                ^
                                                 {
/datasets/git/sequencer.c:3947:15: warning: variable 'body' is not initialized [cppcoreguidelines-init-variables]
                const char *body;
                            ^
                                 = NULL
/datasets/git/sequencer.c:3948:7: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
                int len;
                    ^
                        = 0
/datasets/git/sequencer.c:3957:9: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                len = strlen(body);
                      ^
/datasets/git/sequencer.c:3967:7: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
                int len;
                    ^
                        = 0
/datasets/git/sequencer.c:3981:10: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        len = buf.len;
                              ^
/datasets/git/sequencer.c:4004:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opts->committer_date_is_author_date)
                                                        ^
                                                         {
/datasets/git/sequencer.c:4009:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opts->ignore_date)
                                      ^
                                       {
/datasets/git/sequencer.c:4015:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strategy)
                              ^
                               {
/datasets/git/sequencer.c:4019:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (k = 0; k < opts->xopts_nr; k++)
                        ^
/datasets/git/sequencer.c:4019:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'k' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (k = 0; k < opts->xopts_nr; k++)
                                    ^
/datasets/git/sequencer.c:4019:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (k = 0; k < opts->xopts_nr; k++)
                                                            ^
                                                             {
/datasets/git/sequencer.c:4023:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(flags & TODO_EDIT_MERGE_MSG))
                      ^~~~~
/datasets/git/sequencer.c:4023:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(flags & TODO_EDIT_MERGE_MSG))
                                                   ^
                                                    {
/datasets/git/sequencer.c:4025:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/sequencer.c:4032:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opts->gpg_sign)
                                   ^
                                    {
/datasets/git/sequencer.c:4034:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/sequencer.c:4038:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (j = to_merge; j; j = j->next)
                ^
/datasets/git/sequencer.c:4038:22: warning: backward branch (for loop) is ID-dependent due to variable reference to 'j' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (j = to_merge; j; j = j->next)
                                   ^
/datasets/git/sequencer.c:4038:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (j = to_merge; j; j = j->next)
                                                  ^
                                                   {
/datasets/git/sequencer.c:4052:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (repo_read_index(r) < 0)
                                                   ^
                                                    {
/datasets/git/sequencer.c:4069:25: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        write_message("no-ff", 5, git_path_merge_mode(r), 0);
                               ^
/datasets/git/sequencer.c:4093:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret <= 0)
                     ^
                      {
/datasets/git/sequencer.c:4094:3: warning: the value returned by this function should be used [cert-err33-c]
                fputs(o.obuf.buf, stdout);
                ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:4094:3: note: cast the expression to void to silence this warning
/datasets/git/sequencer.c:4112:42: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            write_locked_index(r->index, &lock, COMMIT_LOCK)) {
                                                ^
/datasets/git/./refs/../cache.h:744:23: note: expanded from macro 'COMMIT_LOCK'
#define COMMIT_LOCK             (1 << 0)
                                 ^
/datasets/git/sequencer.c:4118:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/sequencer.c:4120:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/sequencer.c:4129:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!ret && flags & TODO_EDIT_MERGE_MSG) {
                    ^~~~~
/datasets/git/sequencer.c:4132:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                run_commit_flags |= AMEND_MSG | EDIT_MSG | VERIFY_MSG;
                ^~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:4132:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                run_commit_flags |= AMEND_MSG | EDIT_MSG | VERIFY_MSG;
                                    ^
/datasets/git/sequencer.c:998:21: note: expanded from macro 'AMEND_MSG'
#define AMEND_MSG   (1<<2)
                    ^
/datasets/git/sequencer.c:4132:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                run_commit_flags |= AMEND_MSG | EDIT_MSG | VERIFY_MSG;
                                                ^
/datasets/git/sequencer.c:997:22: note: expanded from macro 'EDIT_MSG'
#define EDIT_MSG    (1<<1)
                     ^
/datasets/git/sequencer.c:4132:46: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                run_commit_flags |= AMEND_MSG | EDIT_MSG | VERIFY_MSG;
                                                           ^
/datasets/git/sequencer.c:1000:22: note: expanded from macro 'VERIFY_MSG'
#define VERIFY_MSG  (1<<4)
                     ^
/datasets/git/sequencer.c:4149:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct string_list_item *item;
        ^
/datasets/git/sequencer.c:4148:8: warning: variable name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
        FILE *fp = NULL;
              ^
/datasets/git/sequencer.c:4149:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/sequencer.c:4150:8: warning: variable 'path' is not initialized [cppcoreguidelines-init-variables]
        char *path;
              ^
                   = NULL
/datasets/git/sequencer.c:4155:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (unlink(path) && errno != ENOENT)
                                                    ^
                                                     {
/datasets/git/sequencer.c:4180:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(item, refs_to_oids) {
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/sequencer.c:4180:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(item, refs_to_oids) {
                                  ^
/datasets/git/sequencer.c:4182:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(fp, "%s\n%s\n%s\n", item->string,
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:4182:3: note: cast the expression to void to silence this warning
/datasets/git/sequencer.c:4202:54: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void todo_list_filter_update_refs(struct repository *r,
                                                     ^
/datasets/git/./sequencer.h:126:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        int done_nr, total_nr;
        ^
/datasets/git/sequencer.c:4205:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/sequencer.c:4205:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:4217:7: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
                int j;
                    ^
                      = 0
/datasets/git/sequencer.c:4217:7: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:4224:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!is_null_oid(&rec->after))
                                              ^
                                               {
/datasets/git/sequencer.c:4227:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (j = 0; !found && j < todo_list->total_nr; j++) {
                ^
/datasets/git/sequencer.c:4227:15: warning: backward branch (for loop) is ID-dependent due to member reference to 'total_nr' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (j = 0; !found && j < todo_list->total_nr; j++) {
                            ^
/datasets/git/sequencer.c:4231:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (item->command != TODO_UPDATE_REF)
                                                             ^
                                                              {
/datasets/git/sequencer.c:4235:8: warning: function 'strncmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                            strncmp(arg, ref, reflen))
                            ^
                                                      != 0
/datasets/git/sequencer.c:4235:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            strncmp(arg, ref, reflen))
                                                      ^
                                                       {
/datasets/git/sequencer.c:4257:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'total_nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < todo_list->total_nr; i++) {
                    ^
/datasets/git/sequencer.c:4260:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int j, found = 0;
                ^~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:4260:7: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
                int j, found = 0;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:4260:7: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:4262:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (item->command != TODO_UPDATE_REF)
                                                     ^
                                                      {
/datasets/git/sequencer.c:4265:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (j = 0; !found && j < update_refs.nr; j++) {
                ^
/datasets/git/sequencer.c:4265:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'found' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (j = 0; !found && j < update_refs.nr; j++) {
                            ^
/datasets/git/sequencer.c:4273:29: warning: variable 'inserted' is not initialized [cppcoreguidelines-init-variables]
                        struct string_list_item *inserted;
                                                 ^
                                                          = NULL
/datasets/git/sequencer.c:4284:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (updated)
                    ^
                     {
/datasets/git/sequencer.c:4289:45: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int do_update_ref(struct repository *r, const char *refname)
                                            ^
/datasets/git/sequencer.c:4291:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/sequencer.c:4294:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (sequencer_get_update_refs_state(r->gitdir, &list))
                                                              ^
                                                               {
/datasets/git/sequencer.c:4297:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(item, &list) {
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/sequencer.c:4297:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(item, &list) {
                                  ^
/datasets/git/sequencer.c:4300:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (read_ref("HEAD", &rec->after))
                                                          ^
                                                           {
/datasets/git/sequencer.c:4311:46: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int do_update_refs(struct repository *r, int quiet)
                                             ^
/datasets/git/sequencer.c:4314:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/sequencer.c:4320:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if ((res = sequencer_get_update_refs_state(r->gitdir, &refs_to_oids)))
             ^
/datasets/git/sequencer.c:4320:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/sequencer.c:4320:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/sequencer.c:4314:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct string_list_item *item;
        ^
/datasets/git/sequencer.c:4320:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((res = sequencer_get_update_refs_state(r->gitdir, &refs_to_oids)))
                                                                              ^
                                                                               {
/datasets/git/sequencer.c:4323:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(item, &refs_to_oids) {
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/sequencer.c:4323:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(item, &refs_to_oids) {
                                  ^
/datasets/git/sequencer.c:4325:7: warning: variable 'loop_res' is not initialized [cppcoreguidelines-init-variables]
                int loop_res;
                    ^
                             = 0
/datasets/git/sequencer.c:4331:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                res |= loop_res;
                ^~~
/datasets/git/sequencer.c:4333:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (quiet)
                          ^
                           {
/datasets/git/sequencer.c:4336:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (loop_res)
                             ^
                              {
/datasets/git/sequencer.c:4338:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/sequencer.c:4344:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr,
                ^~~~~~~~~~~~~~~
/datasets/git/sequencer.c:4344:3: note: cast the expression to void to silence this warning
/datasets/git/sequencer.c:4349:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (res)
                        ^
                         {
/datasets/git/sequencer.c:4350:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr,
                        ^~~~~~~~~~~~~~~
/datasets/git/sequencer.c:4350:4: note: cast the expression to void to silence this warning
/datasets/git/sequencer.c:4364:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = todo_list->current;
            ^
/datasets/git/sequencer.c:4366:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_fixup(todo_list->items[i].command))
                                                   ^
                                                    {
/datasets/git/sequencer.c:4369:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (++i < todo_list->nr)
        ^
/datasets/git/sequencer.c:4369:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (++i < todo_list->nr)
               ^
/datasets/git/sequencer.c:4369:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (++i < todo_list->nr)
                                   ^
                                    {
/datasets/git/sequencer.c:4370:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_fixup(todo_list->items[i].command))
                                                          ^
                                                           {
/datasets/git/sequencer.c:4372:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!is_noop(todo_list->items[i].command))
                                                               ^
                                                                {
/datasets/git/sequencer.c:4379:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/sequencer.c:4379:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:4381:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = todo_list->current + offset; i < todo_list->nr; i++)
        ^
/datasets/git/sequencer.c:4381:40: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = todo_list->current + offset; i < todo_list->nr; i++)
                                              ^
/datasets/git/sequencer.c:4381:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = todo_list->current + offset; i < todo_list->nr; i++)
                                                                     ^
                                                                      {
/datasets/git/sequencer.c:4382:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!is_noop(todo_list->items[i].command))
                                                          ^
                                                           {
/datasets/git/sequencer.c:4388:42: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void create_autostash(struct repository *r, const char *path)
                                         ^
/datasets/git/sequencer.c:4392:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/sequencer.c:4392:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:4395:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        refresh_index(r->index, REFRESH_QUIET, NULL, NULL, NULL);
                                ^
/datasets/git/./refs/../cache.h:923:43: note: expanded from macro 'REFRESH_QUIET'
#define REFRESH_QUIET                    (1 << 2) /* be quiet about it */
                                          ^
/datasets/git/sequencer.c:4396:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (0 <= fd)
                    ^
                     {
/datasets/git/sequencer.c:4403:45: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                struct reset_head_opts ropts = { .flags = RESET_HEAD_HARD };
                                                          ^
/datasets/git/./reset.h:12:26: note: expanded from macro 'RESET_HEAD_HARD'
#define RESET_HEAD_HARD (1<<1)
                         ^
/datasets/git/sequencer.c:4411:37: warning: performing an implicit widening conversion to type 'size_t' (aka 'unsigned long') of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                if (capture_command(&stash, &buf, GIT_MAX_HEXSZ))
                                                  ^
/datasets/git/./hash.h:118:23: note: expanded from macro 'GIT_MAX_HEXSZ'
#define GIT_MAX_HEXSZ GIT_SHA256_HEXSZ
                      ^
/datasets/git/./hash.h:112:27: note: expanded from macro 'GIT_SHA256_HEXSZ'
#define GIT_SHA256_HEXSZ (2 * GIT_SHA256_RAWSZ)
                          ^
/datasets/git/sequencer.c:4411:37: note: make conversion explicit to silence this warning
                if (capture_command(&stash, &buf, GIT_MAX_HEXSZ))
                                                  ^
/datasets/git/./hash.h:118:23: note: expanded from macro 'GIT_MAX_HEXSZ'
#define GIT_MAX_HEXSZ GIT_SHA256_HEXSZ
                      ^~~~~~~~~~~~~~~~
/datasets/git/./hash.h:112:27: note: expanded from macro 'GIT_SHA256_HEXSZ'
#define GIT_SHA256_HEXSZ (2 * GIT_SHA256_RAWSZ)
                          ^~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:4411:37: note: perform multiplication in a wider type
                if (capture_command(&stash, &buf, GIT_MAX_HEXSZ))
                                                  ^
/datasets/git/./hash.h:118:23: note: expanded from macro 'GIT_MAX_HEXSZ'
#define GIT_MAX_HEXSZ GIT_SHA256_HEXSZ
                      ^~~~~~~~~~~~~~~~
/datasets/git/./hash.h:112:27: note: expanded from macro 'GIT_SHA256_HEXSZ'
#define GIT_SHA256_HEXSZ (2 * GIT_SHA256_RAWSZ)
                          ^
/datasets/git/sequencer.c:4411:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (capture_command(&stash, &buf, GIT_MAX_HEXSZ))
                                                                 ^
                                                                  {
/datasets/git/sequencer.c:4414:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (get_oid(buf.buf, &oid))
                                           ^
                                            {
/datasets/git/sequencer.c:4420:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (safe_create_leading_directories_const(path))
                                                                ^
                                                                 {
/datasets/git/sequencer.c:4425:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (reset_head(r, &ropts) < 0)
                                              ^
                                               {
/datasets/git/sequencer.c:4428:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (repo_read_index(r) < 0)
                                           ^
                                            {
/datasets/git/sequencer.c:4449:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (attempt_apply && !ret)
                                  ^
                                   {
/datasets/git/sequencer.c:4450:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, _("Applied autostash.\n"));
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:4450:3: note: cast the expression to void to silence this warning
/datasets/git/sequencer.c:4461:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (run_command(&store))
                                        ^
                                         {
/datasets/git/sequencer.c:4463:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/sequencer.c:4464:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr,
                        ^~~~~~~~~~~~~~~
/datasets/git/sequencer.c:4464:4: note: cast the expression to void to silence this warning
/datasets/git/sequencer.c:4483:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                           READ_ONELINER_SKIP_IF_EMPTY)) {
                           ^
/datasets/git/./sequencer.h:233:38: note: expanded from macro 'READ_ONELINER_SKIP_IF_EMPTY'
#define READ_ONELINER_SKIP_IF_EMPTY (1 << 0)
                                     ^
/datasets/git/sequencer.c:4511:45: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int checkout_onto(struct repository *r, struct replay_opts *opts,
                                            ^
/datasets/git/sequencer.c:4518:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                .flags = RESET_HEAD_DETACH | RESET_ORIG_HEAD |
                         ^
/datasets/git/./reset.h:10:27: note: expanded from macro 'RESET_HEAD_DETACH'
#define RESET_HEAD_DETACH (1<<0)
                          ^
/datasets/git/sequencer.c:4518:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                .flags = RESET_HEAD_DETACH | RESET_ORIG_HEAD |
                                             ^
/datasets/git/./reset.h:18:26: note: expanded from macro 'RESET_ORIG_HEAD'
#define RESET_ORIG_HEAD (1<<4)
                         ^
/datasets/git/sequencer.c:4519:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                RESET_HEAD_RUN_POST_CHECKOUT_HOOK,
                                ^
/datasets/git/./reset.h:14:44: note: expanded from macro 'RESET_HEAD_RUN_POST_CHECKOUT_HOOK'
#define RESET_HEAD_RUN_POST_CHECKOUT_HOOK (1<<2)
                                           ^
/datasets/git/sequencer.c:4533:47: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int stopped_at_head(struct repository *r)
                                              ^
/datasets/git/sequencer.c:4536:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/sequencer.c:4540:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
            !(commit = lookup_commit(r, &head)) ||
              ^
/datasets/git/sequencer.c:4540:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/sequencer.c:4540:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/sequencer.c:4541:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            parse_commit(commit) || get_message(commit, &message))
                                                                  ^
                                                                   {
/datasets/git/sequencer.c:4542:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, _("Stopped at HEAD\n"));
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:4542:3: note: cast the expression to void to silence this warning
/datasets/git/sequencer.c:4544:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, _("Stopped at %s\n"), message.label);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:4544:3: note: cast the expression to void to silence this warning
/datasets/git/sequencer.c:4551:54: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int reread_todo_if_changed(struct repository *r,
                                                     ^
/datasets/git/sequencer.c:4555:6: warning: variable 'offset' is not initialized [cppcoreguidelines-init-variables]
        int offset;
            ^
                   = 0
/datasets/git/sequencer.c:4558:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strbuf_read_file_or_whine(&buf, get_todo_path(opts)) < 0)
                                                                     ^
                                                                      {
/datasets/git/sequencer.c:4562:6: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
            memcmp(buf.buf, todo_list->buf.buf + offset, buf.len)) {
            ^
                                                                  != 0
/datasets/git/sequencer.c:4565:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (read_populate_todo(r, todo_list, opts))
                                                           ^
                                                            {
/datasets/git/sequencer.c:4586:12: warning: function 'pick_commits' has cognitive complexity of 173 (threshold 25) [readability-function-cognitive-complexity]
static int pick_commits(struct repository *r,
           ^
/datasets/git/sequencer.c:4593:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->allow_ff)
        ^
/datasets/git/sequencer.c:4594:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                assert(!(opts->signoff || opts->no_commit ||
                ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/sequencer.c:4596:41: note: +1
                         opts->committer_date_is_author_date ||
                                                             ^
/datasets/git/sequencer.c:4594:3: note: nesting level increased to 2
                assert(!(opts->signoff || opts->no_commit ||
                ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/sequencer.c:4594:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                assert(!(opts->signoff || opts->no_commit ||
                ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/sequencer.c:4596:41: note: +1
                         opts->committer_date_is_author_date ||
                                                             ^
/datasets/git/sequencer.c:4594:3: note: +1, nesting level increased to 3
                assert(!(opts->signoff || opts->no_commit ||
                ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/sequencer.c:4598:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (read_and_refresh_cache(r, opts))
        ^
/datasets/git/sequencer.c:4601:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (todo_list->current < todo_list->nr) {
        ^
/datasets/git/sequencer.c:4606:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (save_todo(todo_list, opts))
                ^
/datasets/git/sequencer.c:4608:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (is_rebase_i(opts)) {
                ^
/datasets/git/sequencer.c:4609:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (item->command != TODO_COMMENT) {
                        ^
/datasets/git/sequencer.c:4614:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (f) {
                                ^
/datasets/git/sequencer.c:4618:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!opts->quiet)
                                ^
/datasets/git/sequencer.c:4622:21: note: +5, including nesting penalty of 4, nesting level increased to 5
                                                opts->verbose ? "\n" : "\r");
                                                              ^
/datasets/git/sequencer.c:4632:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (item->command == TODO_BREAK) {
                        ^
/datasets/git/sequencer.c:4633:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!opts->verbose)
                                ^
/datasets/git/sequencer.c:4638:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (item->command <= TODO_SQUASH) {
                ^
/datasets/git/sequencer.c:4639:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (is_rebase_i(opts))
                        ^
/datasets/git/sequencer.c:4646:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (is_rebase_i(opts) && res < 0) {
                        ^
/datasets/git/sequencer.c:4646:26: note: +1
                        if (is_rebase_i(opts) && res < 0) {
                                              ^
/datasets/git/sequencer.c:4654:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (save_todo(todo_list, opts))
                                ^
/datasets/git/sequencer.c:4657:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (item->command == TODO_EDIT) {
                        ^
/datasets/git/sequencer.c:4659:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!res) {
                                ^
/datasets/git/sequencer.c:4660:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (!opts->verbose)
                                        ^
/datasets/git/sequencer.c:4670:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (is_rebase_i(opts) && !res)
                        ^
/datasets/git/sequencer.c:4670:26: note: +1
                        if (is_rebase_i(opts) && !res)
                                              ^
/datasets/git/sequencer.c:4673:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (res && is_fixup(item->command)) {
                        ^
/datasets/git/sequencer.c:4673:12: note: +1
                        if (res && is_fixup(item->command)) {
                                ^
/datasets/git/sequencer.c:4674:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (res == 1)
                                ^
/datasets/git/sequencer.c:4678:11: note: +1, nesting level increased to 3
                        } else if (res && is_rebase_i(opts) && item->commit) {
                               ^
/datasets/git/sequencer.c:4678:40: note: +1
                        } else if (res && is_rebase_i(opts) && item->commit) {
                                                            ^
/datasets/git/sequencer.c:4688:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (item->command == TODO_REWORD &&
                                ^
/datasets/git/sequencer.c:4689:32: note: +1
                                    !get_oid("HEAD", &oid) &&
                                                           ^
/datasets/git/sequencer.c:4690:49: note: +1
                                    (oideq(&item->commit->object.oid, &oid) ||
                                                                            ^
/datasets/git/sequencer.c:4691:34: note: +1
                                     (opts->have_squash_onto &&
                                                             ^
/datasets/git/sequencer.c:4699:10: note: +1, nesting level increased to 2
                } else if (item->command == TODO_EXEC) {
                       ^
/datasets/git/sequencer.c:4703:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!opts->verbose)
                        ^
/datasets/git/sequencer.c:4709:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (res) {
                        ^
/datasets/git/sequencer.c:4710:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (opts->reschedule_failed_exec)
                                ^
/datasets/git/sequencer.c:4714:10: note: +1, nesting level increased to 2
                } else if (item->command == TODO_LABEL) {
                       ^
/datasets/git/sequencer.c:4715:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if ((res = do_label(r, arg, item->arg_len)))
                        ^
/datasets/git/sequencer.c:4717:10: note: +1, nesting level increased to 2
                } else if (item->command == TODO_RESET) {
                       ^
/datasets/git/sequencer.c:4718:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if ((res = do_reset(r, arg, item->arg_len, opts)))
                        ^
/datasets/git/sequencer.c:4720:10: note: +1, nesting level increased to 2
                } else if (item->command == TODO_MERGE) {
                       ^
/datasets/git/sequencer.c:4721:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if ((res = do_merge(r, item->commit, arg, item->arg_len,
                        ^
/datasets/git/sequencer.c:4724:9: note: +1, nesting level increased to 3
                        else if (item->commit)
                             ^
/datasets/git/sequencer.c:4727:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (res > 0)
                        ^
/datasets/git/sequencer.c:4732:10: note: +1, nesting level increased to 2
                } else if (item->command == TODO_UPDATE_REF) {
                       ^
/datasets/git/sequencer.c:4735:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if ((res = do_update_ref(r, ref.buf)))
                        ^
/datasets/git/sequencer.c:4738:10: note: +1, nesting level increased to 2
                } else if (!is_noop(item->command))
                       ^
/datasets/git/sequencer.c:4741:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (reschedule) {
                ^
/datasets/git/sequencer.c:4747:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (save_todo(todo_list, opts))
                        ^
/datasets/git/sequencer.c:4749:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (item->commit)
                        ^
/datasets/git/sequencer.c:4754:10: note: +1, nesting level increased to 2
                } else if (is_rebase_i(opts) && check_todo && !res &&
                       ^
/datasets/git/sequencer.c:4754:54: note: +1
                } else if (is_rebase_i(opts) && check_todo && !res &&
                                                                   ^
/datasets/git/sequencer.c:4760:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (res)
                ^
/datasets/git/sequencer.c:4764:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (is_rebase_i(opts)) {
        ^
/datasets/git/sequencer.c:4769:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (todo_list->current < todo_list->nr)
                ^
/datasets/git/sequencer.c:4772:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (read_oneliner(&head_ref, rebase_path_head_name(), 0) &&
                ^
/datasets/git/sequencer.c:4772:60: note: +1
                if (read_oneliner(&head_ref, rebase_path_head_name(), 0) &&
                                                                         ^
/datasets/git/sequencer.c:4778:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (get_oid("HEAD", &head)) {
                        ^
/datasets/git/sequencer.c:4785:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!read_oneliner(&buf, rebase_path_orig_head(), 0) ||
                        ^
/datasets/git/sequencer.c:4785:57: note: +1
                        if (!read_oneliner(&buf, rebase_path_orig_head(), 0) ||
                                                                             ^
/datasets/git/sequencer.c:4788:5: note: +1
                                goto cleanup_head_ref;
                                ^
/datasets/git/sequencer.c:4791:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!read_oneliner(&buf, rebase_path_onto(), 0)) {
                        ^
/datasets/git/sequencer.c:4793:5: note: +1
                                goto cleanup_head_ref;
                                ^
/datasets/git/sequencer.c:4797:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (update_ref(msg, head_ref.buf, &head, &orig,
                        ^
/datasets/git/sequencer.c:4801:5: note: +1
                                goto cleanup_head_ref;
                                ^
/datasets/git/sequencer.c:4805:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (create_symref("HEAD", head_ref.buf, msg)) {
                        ^
/datasets/git/sequencer.c:4808:5: note: +1
                                goto cleanup_head_ref;
                                ^
/datasets/git/sequencer.c:4813:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opts->verbose) {
                ^
/datasets/git/sequencer.c:4824:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (read_oneliner(&buf, rebase_path_orig_head(), 0) &&
                        ^
/datasets/git/sequencer.c:4825:33: note: +1
                            !get_oid(buf.buf, &orig) &&
                                                     ^
/datasets/git/sequencer.c:4834:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!stat(rebase_path_rewritten_list(), &st) &&
                ^
/datasets/git/sequencer.c:4834:48: note: +1
                if (!stat(rebase_path_rewritten_list(), &st) &&
                                                             ^
/datasets/git/sequencer.c:4848:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (post_rewrite_hook) {
                        ^
/datasets/git/sequencer.c:4863:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!opts->quiet) {
                ^
/datasets/git/sequencer.c:4864:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!opts->verbose)
                        ^
/datasets/git/sequencer.c:4874:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (do_update_refs(r, opts->quiet))
                ^
/datasets/git/sequencer.c:4586:44: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int pick_commits(struct repository *r,
                                           ^
/datasets/git/sequencer.c:4590:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int res = 0, reschedule = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:4593:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->allow_ff)
                           ^
                            {
/datasets/git/sequencer.c:4598:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (read_and_refresh_cache(r, opts))
                                            ^
                                             {
/datasets/git/sequencer.c:4601:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (todo_list->current < todo_list->nr) {
        ^
/datasets/git/sequencer.c:4601:9: warning: backward branch (while loop) is ID-dependent due to member reference to 'current' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (todo_list->current < todo_list->nr) {
               ^
/datasets/git/sequencer.c:4606:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (save_todo(todo_list, opts))
                                               ^
                                                {
/datasets/git/sequencer.c:4610:11: warning: variable name 'f' is too short, expected at least 3 characters [readability-identifier-length]
                                FILE *f = fopen(rebase_path_msgnum(), "w");
                                      ^
/datasets/git/sequencer.c:4615:6: warning: the value returned by this function should be used [cert-err33-c]
                                        fprintf(f, "%d\n", todo_list->done_nr);
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:4615:6: note: cast the expression to void to silence this warning
/datasets/git/sequencer.c:4616:6: warning: the value returned by this function should be used [cert-err33-c]
                                        fclose(f);
                                        ^~~~~~~~~
/datasets/git/sequencer.c:4616:6: note: cast the expression to void to silence this warning
/datasets/git/sequencer.c:4618:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!opts->quiet)
                                                 ^
                                                  {
/datasets/git/sequencer.c:4619:6: warning: the value returned by this function should be used [cert-err33-c]
                                        fprintf(stderr, _("Rebasing (%d/%d)%s"),
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:4619:6: note: cast the expression to void to silence this warning
/datasets/git/sequencer.c:4630:42: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        delete_ref(NULL, "REBASE_HEAD", NULL, REF_NO_DEREF);
                                                              ^
/datasets/git/./refs/../refs.h:631:23: note: expanded from macro 'REF_NO_DEREF'
#define REF_NO_DEREF (1 << 0)
                      ^
/datasets/git/sequencer.c:4633:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!opts->verbose)
                                                   ^
                                                    {
/datasets/git/sequencer.c:4639:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (is_rebase_i(opts))
                                              ^
                                               {
/datasets/git/sequencer.c:4654:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (save_todo(todo_list, opts))
                                                               ^
                                                                {
/datasets/git/sequencer.c:4660:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        if (!opts->verbose)
                                                           ^
                                                            {
/datasets/git/sequencer.c:4662:6: warning: the value returned by this function should be used [cert-err33-c]
                                        fprintf(stderr,
                                        ^~~~~~~~~~~~~~~
/datasets/git/sequencer.c:4662:6: note: cast the expression to void to silence this warning
/datasets/git/sequencer.c:4670:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (is_rebase_i(opts) && !res)
                                                      ^
                                                       {
/datasets/git/sequencer.c:4674:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (res == 1)
                                             ^
                                              {
/datasets/git/sequencer.c:4678:6: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                        } else if (res && is_rebase_i(opts) && item->commit) {
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:4692:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                      oideq(&opts->squash_onto, &oid))))
                                                                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:4695:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                return res | error_with_patch(r, item->commit,
                                       ^~~
/datasets/git/sequencer.c:4701:16: warning: 'signed char' to 'int' conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse,cert-str34-c]
                        int saved = *end_of_arg;
                                    ^
/datasets/git/sequencer.c:4703:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!opts->verbose)
                                           ^
                                            {
/datasets/git/sequencer.c:4707:18: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        *end_of_arg = saved;
                                      ^
/datasets/git/sequencer.c:4710:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (opts->reschedule_failed_exec)
                                                                 ^
                                                                  {
/datasets/git/sequencer.c:4715:9: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                        if ((res = do_label(r, arg, item->arg_len)))
                             ^
/datasets/git/sequencer.c:4715:9: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/sequencer.c:4715:9: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/sequencer.c:4715:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if ((res = do_label(r, arg, item->arg_len)))
                                                                    ^
                                                                     {
/datasets/git/sequencer.c:4718:9: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                        if ((res = do_reset(r, arg, item->arg_len, opts)))
                             ^
/datasets/git/sequencer.c:4718:9: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/sequencer.c:4718:9: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/sequencer.c:4718:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if ((res = do_reset(r, arg, item->arg_len, opts)))
                                                                          ^
                                                                           {
/datasets/git/sequencer.c:4721:9: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                        if ((res = do_merge(r, item->commit, arg, item->arg_len,
                             ^
/datasets/git/sequencer.c:4721:9: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/sequencer.c:4721:9: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/sequencer.c:4722:10: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                            item->flags, &check_todo, opts)) < 0)
                                            ^
/datasets/git/sequencer.c:4722:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                            item->flags, &check_todo, opts)) < 0)
                                                                                 ^
                                                                                  {
/datasets/git/sequencer.c:4724:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (item->commit)
                                              ^
                                               {
/datasets/git/sequencer.c:4727:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (res > 0)
                                    ^
                                     {
/datasets/git/sequencer.c:4735:9: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                        if ((res = do_update_ref(r, ref.buf)))
                             ^
/datasets/git/sequencer.c:4735:9: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/sequencer.c:4735:9: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/sequencer.c:4735:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if ((res = do_update_ref(r, ref.buf)))
                                                              ^
                                                               {
/datasets/git/sequencer.c:4738:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else if (!is_noop(item->command))
                                                   ^
                                                    {
/datasets/git/sequencer.c:4747:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (save_todo(todo_list, opts))
                                                       ^
                                                        {
/datasets/git/sequencer.c:4749:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (item->commit)
                                         ^
                                          {
/datasets/git/sequencer.c:4760:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (res)
                        ^
                         {
/datasets/git/sequencer.c:4765:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                struct strbuf head_ref = STRBUF_INIT, buf = STRBUF_INIT;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:4766:15: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                struct stat st;
                            ^
/datasets/git/sequencer.c:4769:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (todo_list->current < todo_list->nr)
                                                       ^
                                                        {
/datasets/git/sequencer.c:4774:16: warning: variable 'msg' is not initialized [cppcoreguidelines-init-variables]
                        const char *msg;
                                    ^
                                        = NULL
/datasets/git/sequencer.c:4775:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        struct object_id head, orig;
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:4776:8: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
                        int res;
                            ^
                                = 0
/datasets/git/sequencer.c:4798:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                       REF_NO_DEREF, UPDATE_REFS_MSG_ON_ERR)) {
                                       ^
/datasets/git/./refs/../refs.h:631:23: note: expanded from macro 'REF_NO_DEREF'
#define REF_NO_DEREF (1 << 0)
                      ^
/datasets/git/sequencer.c:4815:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        struct object_id orig, head;
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:4817:4: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memset(&log_tree_opt, 0, sizeof(log_tree_opt));
                        ^~~~~~
/datasets/git/sequencer.c:4817:4: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                        memset(&log_tree_opt, 0, sizeof(log_tree_opt));
                        ^~~~~~
/datasets/git/sequencer.c:4840:58: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
                        child.in = open(rebase_path_rewritten_list(), O_RDONLY);
                                                                              ^
                                                                               | O_CLOEXEC
/datasets/git/sequencer.c:4852:14: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
                                        O_RDONLY);
                                                ^
                                                 | O_CLOEXEC
/datasets/git/sequencer.c:4864:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!opts->verbose)
                                           ^
                                            {
/datasets/git/sequencer.c:4866:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr,
                        ^~~~~~~~~~~~~~~
/datasets/git/sequencer.c:4866:4: note: cast the expression to void to silence this warning
/datasets/git/sequencer.c:4874:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (do_update_refs(r, opts->quiet))
                                                   ^
                                                    {
/datasets/git/sequencer.c:4885:52: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int continue_single_pick(struct repository *r, struct replay_opts *opts)
                                                   ^
/datasets/git/sequencer.c:4890:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !refs_ref_exists(get_main_ref_store(r), "REVERT_HEAD"))
                                                                   ^
                                                                    {
/datasets/git/sequencer.c:4902:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opts->edit || (opts->edit < 0 && !isatty(0)))
                                                          ^
                                                           {
/datasets/git/sequencer.c:4912:12: warning: function 'commit_staged_changes' has cognitive complexity of 58 (threshold 25) [readability-function-cognitive-complexity]
static int commit_staged_changes(struct repository *r,
           ^
/datasets/git/sequencer.c:4919:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (has_unstaged_changes(r, 1))
        ^
/datasets/git/sequencer.c:4924:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (file_exists(rebase_path_amend())) {
        ^
/datasets/git/sequencer.c:4928:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (get_oid("HEAD", &head))
                ^
/datasets/git/sequencer.c:4930:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!read_oneliner(&rev, rebase_path_amend(), 0))
                ^
/datasets/git/sequencer.c:4932:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (get_oid_hex(rev.buf, &to_amend))
                ^
/datasets/git/sequencer.c:4935:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!is_clean && !oideq(&head, &to_amend))
                ^
/datasets/git/sequencer.c:4935:17: note: +1
                if (!is_clean && !oideq(&head, &to_amend))
                              ^
/datasets/git/sequencer.c:4947:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!is_clean || !opts->current_fixup_count)
                ^
/datasets/git/sequencer.c:4947:17: note: +1
                if (!is_clean || !opts->current_fixup_count)
                              ^
/datasets/git/sequencer.c:4949:8: note: +1, nesting level increased to 2
                else if (!oideq(&head, &to_amend) ||
                     ^
/datasets/git/sequencer.c:4949:37: note: +1
                else if (!oideq(&head, &to_amend) ||
                                                  ^
/datasets/git/sequencer.c:4952:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!is_fixup(peek_command(todo_list, 0))) {
                        ^
/datasets/git/sequencer.c:4959:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/sequencer.c:4965:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!len)
                        ^
/datasets/git/sequencer.c:4967:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (len && p[len - 1] != '\n')
                        ^
/datasets/git/sequencer.c:4967:15: note: +1
                        while (len && p[len - 1] != '\n')
                                   ^
/datasets/git/sequencer.c:4970:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (write_message(p, len, rebase_path_current_fixups(),
                        ^
/datasets/git/sequencer.c:4986:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (opts->current_fixup_count > 0 &&
                        ^
/datasets/git/sequencer.c:4986:38: note: +1
                        if (opts->current_fixup_count > 0 &&
                                                          ^
/datasets/git/sequencer.c:4995:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!starts_with(p, "squash ") &&
                                ^
/datasets/git/sequencer.c:4995:36: note: +1
                                if (!starts_with(p, "squash ") &&
                                                               ^
/datasets/git/sequencer.c:4998:11: note: +1, nesting level increased to 3
                        } else if (is_fixup(peek_command(todo_list, 0))) {
                               ^
/datasets/git/sequencer.c:5007:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (parse_head(r, &commit) ||
                                ^
/datasets/git/sequencer.c:5008:56: note: +1
                                    !(p = logmsg_reencode(commit, NULL, encoding)) ||
                                                                                   ^
/datasets/git/sequencer.c:5022:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (is_clean) {
        ^
/datasets/git/sequencer.c:5023:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (refs_ref_exists(get_main_ref_store(r),
                ^
/datasets/git/sequencer.c:5024:29: note: +1
                                    "CHERRY_PICK_HEAD") &&
                                                        ^
/datasets/git/sequencer.c:5028:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (unlink(git_path_merge_msg(r)) && errno != ENOENT)
                ^
/datasets/git/sequencer.c:5028:37: note: +1
                if (unlink(git_path_merge_msg(r)) && errno != ENOENT)
                                                  ^
/datasets/git/sequencer.c:5031:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!final_fixup)
                ^
/datasets/git/sequencer.c:5035:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (run_git_commit(final_fixup ? NULL : rebase_path_message(),
        ^
/datasets/git/sequencer.c:5035:33: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (run_git_commit(final_fixup ? NULL : rebase_path_message(),
                                       ^
/datasets/git/sequencer.c:5041:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (final_fixup) {
        ^
/datasets/git/sequencer.c:5045:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->current_fixup_count > 0) {
        ^
/datasets/git/sequencer.c:4912:53: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int commit_staged_changes(struct repository *r,
                                                    ^
/datasets/git/sequencer.c:4916:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned int flags = ALLOW_EMPTY | EDIT_MSG;
                             ^
/datasets/git/sequencer.c:996:21: note: expanded from macro 'ALLOW_EMPTY'
#define ALLOW_EMPTY (1<<0)
                    ^~~~~~
/datasets/git/sequencer.c:4916:37: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned int flags = ALLOW_EMPTY | EDIT_MSG;
                                           ^
/datasets/git/sequencer.c:997:22: note: expanded from macro 'EDIT_MSG'
#define EDIT_MSG    (1<<1)
                     ^
/datasets/git/sequencer.c:4917:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned int final_fixup = 0, is_clean;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:4917:32: warning: variable 'is_clean' is not initialized [cppcoreguidelines-init-variables]
        unsigned int final_fixup = 0, is_clean;
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:4919:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (has_unstaged_changes(r, 1))
                                       ^
                                        {
/datasets/git/sequencer.c:4926:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                struct object_id head, to_amend;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:4928:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (get_oid("HEAD", &head))
                                           ^
                                            {
/datasets/git/sequencer.c:4930:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!read_oneliner(&rev, rebase_path_amend(), 0))
                                                                 ^
                                                                  {
/datasets/git/sequencer.c:4932:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (get_oid_hex(rev.buf, &to_amend))
                                                    ^
                                                     {
/datasets/git/sequencer.c:4935:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!is_clean && !oideq(&head, &to_amend))
                                                          ^
                                                           {
/datasets/git/sequencer.c:4947:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!is_clean || !opts->current_fixup_count)
                                                            ^
                                                             {
/datasets/git/sequencer.c:4961:16: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                        const char *p = opts->current_fixups.buf;
                                    ^
/datasets/git/sequencer.c:4962:14: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        int len = opts->current_fixups.len;
                                  ^
/datasets/git/sequencer.c:4965:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!len)
                                 ^
                                  {
/datasets/git/sequencer.c:4967:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (len && p[len - 1] != '\n')
                        ^
/datasets/git/sequencer.c:4967:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (len && p[len - 1] != '\n')
                               ^
/datasets/git/sequencer.c:4967:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        while (len && p[len - 1] != '\n')
                                                         ^
                                                          {
/datasets/git/sequencer.c:4971:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                          0) < 0)
                                                 ^
                                                  {
/datasets/git/sequencer.c:4996:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                    !strstr(p, "\nsquash "))
                                                            ^
                                                             {
/datasets/git/sequencer.c:4997:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        flags = (flags & ~EDIT_MSG) | CLEANUP_MSG;
                                                ^
/datasets/git/sequencer.c:4997:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        flags = (flags & ~EDIT_MSG) | CLEANUP_MSG;
                                                 ^       ~~~~~~~~~
/datasets/git/sequencer.c:4997:23: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                                        flags = (flags & ~EDIT_MSG) | CLEANUP_MSG;
                                                         ^
/datasets/git/sequencer.c:4997:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        flags = (flags & ~EDIT_MSG) | CLEANUP_MSG;
                                                          ^
/datasets/git/sequencer.c:997:22: note: expanded from macro 'EDIT_MSG'
#define EDIT_MSG    (1<<1)
                     ^
/datasets/git/sequencer.c:4997:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        flags = (flags & ~EDIT_MSG) | CLEANUP_MSG;
                                                                      ^
/datasets/git/sequencer.c:999:22: note: expanded from macro 'CLEANUP_MSG'
#define CLEANUP_MSG (1<<3)
                     ^
/datasets/git/sequencer.c:5003:20: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
                                struct commit *commit;
                                               ^
                                                      = NULL
/datasets/git/sequencer.c:5008:11: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                                    !(p = logmsg_reencode(commit, NULL, encoding)) ||
                                      ^
/datasets/git/sequencer.c:5008:11: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/sequencer.c:5008:11: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/sequencer.c:5019:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags |= AMEND_MSG;
                ^
/datasets/git/sequencer.c:5019:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags |= AMEND_MSG;
                         ^
/datasets/git/sequencer.c:998:22: note: expanded from macro 'AMEND_MSG'
#define AMEND_MSG   (1<<2)
                     ^
/datasets/git/sequencer.c:5026:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                    "CHERRY_PICK_HEAD", NULL, 0))
                                                                 ^
                                                                  {
/datasets/git/sequencer.c:5028:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (unlink(git_path_merge_msg(r)) && errno != ENOENT)
                                                                     ^
                                                                      {
/datasets/git/sequencer.c:5031:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!final_fixup)
                                 ^
                                  {
/datasets/git/sequencer.c:5036:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                           opts, flags))
                                        ^
                                         {
/datasets/git/sequencer.c:5057:5: warning: function 'sequencer_continue' has cognitive complexity of 29 (threshold 25) [readability-function-cognitive-complexity]
int sequencer_continue(struct repository *r, struct replay_opts *opts)
    ^
/datasets/git/sequencer.c:5062:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (read_and_refresh_cache(r, opts))
        ^
/datasets/git/sequencer.c:5065:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (read_populate_opts(opts))
        ^
/datasets/git/sequencer.c:5067:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (is_rebase_i(opts)) {
        ^
/datasets/git/sequencer.c:5068:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((res = read_populate_todo(r, &todo_list, opts)))
                ^
/datasets/git/sequencer.c:5071:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (file_exists(rebase_path_dropped())) {
                ^
/datasets/git/sequencer.c:5072:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if ((res = todo_list_check_against_backup(r, &todo_list)))
                        ^
/datasets/git/sequencer.c:5079:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (commit_staged_changes(r, opts, &todo_list)) {
                ^
/datasets/git/sequencer.c:5081:4: note: +1
                        goto release_todo_list;
                        ^
/datasets/git/sequencer.c:5083:9: note: +1, nesting level increased to 1
        } else if (!file_exists(get_todo_path(opts)))
               ^
/datasets/git/sequencer.c:5085:7: note: +1, nesting level increased to 1
        else if ((res = read_populate_todo(r, &todo_list, opts)))
             ^
/datasets/git/sequencer.c:5088:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!is_rebase_i(opts)) {
        ^
/datasets/git/sequencer.c:5090:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (refs_ref_exists(get_main_ref_store(r),
                ^
/datasets/git/sequencer.c:5091:29: note: +1
                                    "CHERRY_PICK_HEAD") ||
                                                        ^
/datasets/git/sequencer.c:5094:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (res)
                        ^
/datasets/git/sequencer.c:5097:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (index_differs_from(r, "HEAD", NULL, 0)) {
                ^
/datasets/git/sequencer.c:5099:4: note: +1
                        goto release_todo_list;
                        ^
/datasets/git/sequencer.c:5102:9: note: +1, nesting level increased to 1
        } else if (file_exists(rebase_path_stopped_sha())) {
               ^
/datasets/git/sequencer.c:5106:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (read_oneliner(&buf, rebase_path_stopped_sha(),
                ^
/datasets/git/sequencer.c:5107:36: note: +1
                                  READ_ONELINER_SKIP_IF_EMPTY) &&
                                                               ^
/datasets/git/sequencer.c:5057:43: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int sequencer_continue(struct repository *r, struct replay_opts *opts)
                                          ^
/datasets/git/sequencer.c:5060:6: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        int res;
            ^
                = 0
/datasets/git/sequencer.c:5062:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (read_and_refresh_cache(r, opts))
                                            ^
                                             {
/datasets/git/sequencer.c:5065:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (read_populate_opts(opts))
                                     ^
                                      {
/datasets/git/sequencer.c:5068:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                if ((res = read_populate_todo(r, &todo_list, opts)))
                     ^
/datasets/git/sequencer.c:5068:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/sequencer.c:5068:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/sequencer.c:5068:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((res = read_populate_todo(r, &todo_list, opts)))
                                                                    ^
                                                                     {
/datasets/git/sequencer.c:5072:9: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                        if ((res = todo_list_check_against_backup(r, &todo_list)))
                             ^
/datasets/git/sequencer.c:5072:9: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/sequencer.c:5072:9: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/sequencer.c:5072:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if ((res = todo_list_check_against_backup(r, &todo_list)))
                                                                                  ^
                                                                                   {
/datasets/git/sequencer.c:5083:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else if (!file_exists(get_todo_path(opts)))
                                                     ^
                                                      {
/datasets/git/sequencer.c:5085:12: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        else if ((res = read_populate_todo(r, &todo_list, opts)))
                  ^
/datasets/git/sequencer.c:5085:12: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/sequencer.c:5085:12: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/sequencer.c:5085:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if ((res = read_populate_todo(r, &todo_list, opts)))
                                                                 ^
                                                                  {
/datasets/git/sequencer.c:5094:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (res)
                                ^
                                 {
/datasets/git/sequencer.c:5107:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                  READ_ONELINER_SKIP_IF_EMPTY) &&
                                  ^
/datasets/git/./sequencer.h:233:38: note: expanded from macro 'READ_ONELINER_SKIP_IF_EMPTY'
#define READ_ONELINER_SKIP_IF_EMPTY (1 << 0)
                                     ^
/datasets/git/sequencer.c:5108:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !get_oid_hex(buf.buf, &oid))
                                                ^
                                                 {
/datasets/git/sequencer.c:5119:43: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int single_pick(struct repository *r,
                                          ^
/datasets/git/sequencer.c:5123:6: warning: variable 'check_todo' is not initialized [cppcoreguidelines-init-variables]
        int check_todo;
            ^
                       = 0
/datasets/git/sequencer.c:5134:5: warning: function 'sequencer_pick_revisions' has cognitive complexity of 28 (threshold 25) [readability-function-cognitive-complexity]
int sequencer_pick_revisions(struct repository *r,
    ^
/datasets/git/sequencer.c:5141:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(opts->revs);
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/sequencer.c:5141:2: note: nesting level increased to 1
        assert(opts->revs);
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/sequencer.c:5141:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(opts->revs);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/sequencer.c:5141:2: note: +1, nesting level increased to 2
        assert(opts->revs);
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/sequencer.c:5142:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (read_and_refresh_cache(r, opts))
        ^
/datasets/git/sequencer.c:5145:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < opts->revs->pending.nr; i++) {
        ^
/datasets/git/sequencer.c:5150:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strlen(name))
                ^
/datasets/git/sequencer.c:5153:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!get_oid(name, &oid)) {
                ^
/datasets/git/sequencer.c:5154:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!lookup_commit_reference_gently(r, &oid, 1)) {
                        ^
/datasets/git/sequencer.c:5161:5: note: +1, nesting level increased to 2
                } else
                  ^
/datasets/git/sequencer.c:5172:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opts->revs->cmdline.nr == 1 &&
        ^
/datasets/git/sequencer.c:5174:26: note: +1
            opts->revs->no_walk &&
                                ^
/datasets/git/sequencer.c:5177:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (prepare_revision_walk(opts->revs))
                ^
/datasets/git/sequencer.c:5180:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!cmit)
                ^
/datasets/git/sequencer.c:5182:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (get_revision(opts->revs))
                ^
/datasets/git/sequencer.c:5193:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (walk_revs_populate_todo(&todo_list, opts) ||
        ^
/datasets/git/sequencer.c:5193:48: note: +1
        if (walk_revs_populate_todo(&todo_list, opts) ||
                                                      ^
/datasets/git/sequencer.c:5196:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (get_oid("HEAD", &oid) && (opts->action == REPLAY_REVERT))
        ^
/datasets/git/sequencer.c:5196:28: note: +1
        if (get_oid("HEAD", &oid) && (opts->action == REPLAY_REVERT))
                                  ^
/datasets/git/sequencer.c:5198:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (save_head(oid_to_hex(&oid)))
        ^
/datasets/git/sequencer.c:5200:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (save_opts(opts))
        ^
/datasets/git/sequencer.c:5134:49: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int sequencer_pick_revisions(struct repository *r,
                                                ^
/datasets/git/sequencer.c:5139:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, res;
        ^~~~~~~~~~~
/datasets/git/sequencer.c:5139:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, res;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:5139:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:5139:9: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        int i, res;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:5142:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (read_and_refresh_cache(r, opts))
                                            ^
                                             {
/datasets/git/sequencer.c:5145:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < opts->revs->pending.nr; i++) {
        ^
/datasets/git/sequencer.c:5150:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strlen(name))
                                  ^
                                   {
/datasets/git/sequencer.c:5161:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/sequencer.c:5176:18: warning: variable 'cmit' is not initialized [cppcoreguidelines-init-variables]
                struct commit *cmit;
                               ^
                                    = NULL
/datasets/git/sequencer.c:5177:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (prepare_revision_walk(opts->revs))
                                                      ^
                                                       {
/datasets/git/sequencer.c:5180:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!cmit)
                          ^
                           {
/datasets/git/sequencer.c:5182:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (get_revision(opts->revs))
                                             ^
                                              {
/datasets/git/sequencer.c:5194:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        create_seq_dir(r) < 0)
                                              ^
                                               {
/datasets/git/sequencer.c:5196:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid("HEAD", &oid) && (opts->action == REPLAY_REVERT))
                                                                     ^
                                                                      {
/datasets/git/sequencer.c:5198:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (save_head(oid_to_hex(&oid)))
                                        ^
                                         {
/datasets/git/sequencer.c:5200:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (save_opts(opts))
                            ^
                             {
/datasets/git/sequencer.c:5208:44: warning: 2 adjacent parameters of 'append_signoff' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
void append_signoff(struct strbuf *msgbuf, size_t ignore_footer, unsigned flag)
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:5208:51: note: the first parameter in the range is 'ignore_footer'
void append_signoff(struct strbuf *msgbuf, size_t ignore_footer, unsigned flag)
                                                  ^~~~~~~~~~~~~
/datasets/git/sequencer.c:5208:75: note: the last parameter in the range is 'flag'
void append_signoff(struct strbuf *msgbuf, size_t ignore_footer, unsigned flag)
                                                                          ^~~~
/datasets/git/sequencer.c:5208:44: note: 
void append_signoff(struct strbuf *msgbuf, size_t ignore_footer, unsigned flag)
                                           ^
/datasets/git/sequencer.c:5208:66: note: 'size_t' and 'unsigned int' may be implicitly converted: 'size_t' (as 'unsigned long') -> 'unsigned int', 'unsigned int' -> 'size_t' (as 'unsigned long')
void append_signoff(struct strbuf *msgbuf, size_t ignore_footer, unsigned flag)
                                                                 ^
/datasets/git/sequencer.c:5210:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned no_dup_sob = flag & APPEND_SIGNOFF_DEDUP;
                                     ^
/datasets/git/./sequencer.h:16:31: note: expanded from macro 'APPEND_SIGNOFF_DEDUP'
#define APPEND_SIGNOFF_DEDUP (1u << 0)
                              ^     ~
/datasets/git/sequencer.c:5212:6: warning: variable 'has_footer' is not initialized [cppcoreguidelines-init-variables]
        int has_footer;
            ^
                       = 0
/datasets/git/sequencer.c:5218:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ignore_footer)
                           ^
                            {
/datasets/git/sequencer.c:5226:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !strncmp(msgbuf->buf, sob.buf, sob.len))
                                                    ^
                                                     {
/datasets/git/sequencer.c:5228:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/sequencer.c:5241:24: warning: repeated branch in conditional chain [bugprone-branch-clone]
                } else if (len == 1) {
                                     ^
/datasets/git/sequencer.c:5247:4: note: end of the original
                } else if (msgbuf->buf[len - 2] != '\n') {
                 ^
/datasets/git/sequencer.c:5247:44: note: clone 1 starts here
                } else if (msgbuf->buf[len - 2] != '\n') {
                                                         ^
/datasets/git/sequencer.c:5256:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (append_newlines)
                                    ^
                                     {
/datasets/git/sequencer.c:5261:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (has_footer != 3 && (!no_dup_sob || has_footer != 2))
                                                                ^
                                                                 {
/datasets/git/sequencer.c:5274:9: warning: 2 adjacent parameters of 'labels_cmp' of similar type ('const struct hashmap_entry *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                      const struct hashmap_entry *eptr,
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:5274:37: note: the first parameter in the range is 'eptr'
                      const struct hashmap_entry *eptr,
                                                  ^~~~
/datasets/git/sequencer.c:5275:37: note: the last parameter in the range is 'entry_or_key'
                      const struct hashmap_entry *entry_or_key, const void *key)
                                                  ^~~~~~~~~~~~
/datasets/git/sequencer.c:5277:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const struct labels_entry *a, *b;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:5277:29: warning: variable 'a' is not initialized [cppcoreguidelines-init-variables]
        const struct labels_entry *a, *b;
                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:5277:29: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:5277:33: warning: variable 'b' is not initialized [cppcoreguidelines-init-variables]
        const struct labels_entry *a, *b;
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:5277:33: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:5290:8: warning: accessing fields in struct 'label_state' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct label_state {
       ^
/datasets/git/sequencer.c:5290:8: note: use "__attribute__((aligned(128)))" to align struct 'label_state' to 128 bytes
/datasets/git/sequencer.c:5296:20: warning: function 'label_oid' has cognitive complexity of 36 (threshold 25) [readability-function-cognitive-complexity]
static const char *label_oid(struct object_id *oid, const char *label,
                   ^
/datasets/git/sequencer.c:5305:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (string_entry)
        ^
/datasets/git/sequencer.c:5322:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!label) {
        ^
/datasets/git/sequencer.c:5334:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (hashmap_get_from_hash(&state->labels, strihash(p), p)) {
                ^
/datasets/git/sequencer.c:5338:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (; i < the_hash_algo->hexsz; i++) {
                        ^
/datasets/git/sequencer.c:5341:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!hashmap_get_from_hash(&state->labels,
                                ^
/datasets/git/sequencer.c:5347:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/sequencer.c:5360:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (; *label; label++)
                ^
/datasets/git/sequencer.c:5361:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if ((*label & 0x80) || isalnum(*label))
                        ^
/datasets/git/sequencer.c:5361:24: note: +1
                        if ((*label & 0x80) || isalnum(*label))
                                            ^
/datasets/git/sequencer.c:5364:9: note: +1, nesting level increased to 3
                        else if (buf->len && buf->buf[buf->len - 1] != '-')
                             ^
/datasets/git/sequencer.c:5364:22: note: +1
                        else if (buf->len && buf->buf[buf->len - 1] != '-')
                                          ^
/datasets/git/sequencer.c:5366:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!buf->len) {
                ^
/datasets/git/sequencer.c:5372:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((buf->len == the_hash_algo->hexsz &&
                ^
/datasets/git/sequencer.c:5374:40: note: +1
                    (buf->len == 1 && *label == '#') ||
                                                     ^
/datasets/git/sequencer.c:5372:41: note: +1
                if ((buf->len == the_hash_algo->hexsz &&
                                                      ^
/datasets/git/sequencer.c:5374:22: note: +1
                    (buf->len == 1 && *label == '#') ||
                                   ^
/datasets/git/sequencer.c:5385:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (i = 2; ; i++) {
                        ^
/datasets/git/sequencer.c:5388:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!hashmap_get_from_hash(&state->labels,
                                ^
/datasets/git/sequencer.c:5398:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        FLEX_ALLOC_STR(labels_entry, label, label);
        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^
/datasets/git/./git-compat-util.h:1151:47: note: expanded from macro 'FLEX_ALLOC_MEM'
#define FLEX_ALLOC_MEM(x, flexname, buf, len) do { \
                                              ^
/datasets/git/sequencer.c:5402:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        FLEX_ALLOC_STR(string_entry, string, label);
        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^
/datasets/git/./git-compat-util.h:1151:47: note: expanded from macro 'FLEX_ALLOC_MEM'
#define FLEX_ALLOC_MEM(x, flexname, buf, len) do { \
                                              ^
/datasets/git/sequencer.c:5299:23: warning: variable 'labels_entry' is not initialized [cppcoreguidelines-init-variables]
        struct labels_entry *labels_entry;
                             ^
                                          = NULL
/datasets/git/sequencer.c:5300:23: warning: variable 'string_entry' is not initialized [cppcoreguidelines-init-variables]
        struct string_entry *string_entry;
                             ^
                                          = NULL
/datasets/git/sequencer.c:5302:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/sequencer.c:5302:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:5305:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (string_entry)
                         ^
                          {
/datasets/git/sequencer.c:5323:9: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                char *p;
                      ^
                        = NULL
/datasets/git/sequencer.c:5323:9: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:5325:28: warning: performing an implicit widening conversion to type 'size_t' (aka 'unsigned long') of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                strbuf_grow(&state->buf, GIT_MAX_HEXSZ);
                                         ^
/datasets/git/./hash.h:118:23: note: expanded from macro 'GIT_MAX_HEXSZ'
#define GIT_MAX_HEXSZ GIT_SHA256_HEXSZ
                      ^
/datasets/git/./hash.h:112:27: note: expanded from macro 'GIT_SHA256_HEXSZ'
#define GIT_SHA256_HEXSZ (2 * GIT_SHA256_RAWSZ)
                          ^
/datasets/git/sequencer.c:5325:28: note: make conversion explicit to silence this warning
                strbuf_grow(&state->buf, GIT_MAX_HEXSZ);
                                         ^
/datasets/git/./hash.h:118:23: note: expanded from macro 'GIT_MAX_HEXSZ'
#define GIT_MAX_HEXSZ GIT_SHA256_HEXSZ
                      ^~~~~~~~~~~~~~~~
/datasets/git/./hash.h:112:27: note: expanded from macro 'GIT_SHA256_HEXSZ'
#define GIT_SHA256_HEXSZ (2 * GIT_SHA256_RAWSZ)
                          ^~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:5325:28: note: perform multiplication in a wider type
                strbuf_grow(&state->buf, GIT_MAX_HEXSZ);
                                         ^
/datasets/git/./hash.h:118:23: note: expanded from macro 'GIT_MAX_HEXSZ'
#define GIT_MAX_HEXSZ GIT_SHA256_HEXSZ
                      ^~~~~~~~~~~~~~~~
/datasets/git/./hash.h:112:27: note: expanded from macro 'GIT_SHA256_HEXSZ'
#define GIT_SHA256_HEXSZ (2 * GIT_SHA256_RAWSZ)
                          ^
/datasets/git/sequencer.c:5335:4: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                        size_t i = strlen(p) + 1;
                        ^
/datasets/git/sequencer.c:5335:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
                        size_t i = strlen(p) + 1;
                               ^
/datasets/git/sequencer.c:5338:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (; i < the_hash_algo->hexsz; i++) {
                        ^
/datasets/git/sequencer.c:5338:11: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (; i < the_hash_algo->hexsz; i++) {
                               ^
/datasets/git/sequencer.c:5342:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                           strihash(p), p))
                                                                           ^
                                                                            {
/datasets/git/sequencer.c:5360:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (; *label; label++)
                ^
/datasets/git/sequencer.c:5360:10: warning: backward branch (for loop) is ID-dependent due to variable reference to 'label' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (; *label; label++)
                       ^
/datasets/git/sequencer.c:5360:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (; *label; label++)
                                       ^
                                        {
/datasets/git/sequencer.c:5361:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if ((*label & 0x80) || isalnum(*label))
                             ^~~~~~
/datasets/git/sequencer.c:5361:18: warning: 0x80 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        if ((*label & 0x80) || isalnum(*label))
                                      ^
/datasets/git/sequencer.c:5361:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if ((*label & 0x80) || isalnum(*label))
                                               ^
/datasets/git/./git-compat-util.h:1220:20: note: expanded from macro 'isalnum'
#define isalnum(x) sane_istest(x,GIT_ALPHA | GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/sequencer.c:5361:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if ((*label & 0x80) || isalnum(*label))
                                                               ^
                                                                {
/datasets/git/sequencer.c:5364:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (buf->len && buf->buf[buf->len - 1] != '-')
                                                                           ^
                                                                            {
/datasets/git/sequencer.c:5385:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = 2; ; i++) {
                        ^
/datasets/git/sequencer.c:5390:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                           buf->buf))
                                                                     ^
                                                                      {
/datasets/git/sequencer.c:5398:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FLEX_ALLOC_STR(labels_entry, label, label);
        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^
/datasets/git/./git-compat-util.h:1151:47: note: expanded from macro 'FLEX_ALLOC_MEM'
#define FLEX_ALLOC_MEM(x, flexname, buf, len) do { \
                                              ^
/datasets/git/sequencer.c:5398:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        FLEX_ALLOC_STR(labels_entry, label, label);
        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/sequencer.c:5398:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        FLEX_ALLOC_STR(labels_entry, label, label);
        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/sequencer.c:5402:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FLEX_ALLOC_STR(string_entry, string, label);
        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^
/datasets/git/./git-compat-util.h:1151:47: note: expanded from macro 'FLEX_ALLOC_MEM'
#define FLEX_ALLOC_MEM(x, flexname, buf, len) do { \
                                              ^
/datasets/git/sequencer.c:5402:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        FLEX_ALLOC_STR(string_entry, string, label);
        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/sequencer.c:5402:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        FLEX_ALLOC_STR(string_entry, string, label);
        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/sequencer.c:5409:12: warning: function 'make_script_with_merges' has cognitive complexity of 91 (threshold 25) [readability-function-cognitive-complexity]
static int make_script_with_merges(struct pretty_print_context *pp,
           ^
/datasets/git/sequencer.c:5429:30: note: +1, including nesting penalty of 0, nesting level increased to 1
        const char *cmd_pick = abbr ? "p" : "pick",
                                    ^
/datasets/git/sequencer.c:5430:21: note: +1, including nesting penalty of 0, nesting level increased to 1
                *cmd_label = abbr ? "l" : "label",
                                  ^
/datasets/git/sequencer.c:5431:21: note: +1, including nesting penalty of 0, nesting level increased to 1
                *cmd_reset = abbr ? "t" : "reset",
                                  ^
/datasets/git/sequencer.c:5432:21: note: +1, including nesting penalty of 0, nesting level increased to 1
                *cmd_merge = abbr ? "m" : "merge";
                                  ^
/datasets/git/sequencer.c:5439:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (revs->cmdline.nr && (revs->cmdline.rev[0].flags & BOTTOM)) {
        ^
/datasets/git/sequencer.c:5439:23: note: +1
        if (revs->cmdline.nr && (revs->cmdline.rev[0].flags & BOTTOM)) {
                             ^
/datasets/git/sequencer.c:5442:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                FLEX_ALLOC_STR(entry, string, "onto");
                ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^
/datasets/git/./git-compat-util.h:1151:47: note: expanded from macro 'FLEX_ALLOC_MEM'
#define FLEX_ALLOC_MEM(x, flexname, buf, len) do { \
                                              ^
/datasets/git/sequencer.c:5446:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                FLEX_ALLOC_STR(onto_label_entry, label, "onto");
                ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^
/datasets/git/./git-compat-util.h:1151:47: note: expanded from macro 'FLEX_ALLOC_MEM'
#define FLEX_ALLOC_MEM(x, flexname, buf, len) do { \
                                              ^
/datasets/git/sequencer.c:5457:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while ((commit = get_revision(revs))) {
        ^
/datasets/git/sequencer.c:5467:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!is_empty && (commit->object.flags & PATCHSAME)) {
                ^
/datasets/git/sequencer.c:5467:17: note: +1
                if (!is_empty && (commit->object.flags & PATCHSAME)) {
                              ^
/datasets/git/sequencer.c:5468:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (flags & TODO_LIST_WARN_SKIPPED_CHERRY_PICKS)
                        ^
/datasets/git/sequencer.c:5474:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (is_empty && !keep_empty)
                ^
/datasets/git/sequencer.c:5474:16: note: +1
                if (is_empty && !keep_empty)
                             ^
/datasets/git/sequencer.c:5480:30: note: +2, including nesting penalty of 1, nesting level increased to 2
                to_merge = commit->parents ? commit->parents->next : NULL;
                                           ^
/datasets/git/sequencer.c:5481:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!to_merge) {
                ^
/datasets/git/sequencer.c:5487:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (is_empty)
                        ^
/datasets/git/sequencer.c:5491:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        FLEX_ALLOC_STR(entry, string, buf.buf);
                        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^
/datasets/git/./git-compat-util.h:1151:47: note: expanded from macro 'FLEX_ALLOC_MEM'
#define FLEX_ALLOC_MEM(x, flexname, buf, len) do { \
                                              ^
/datasets/git/sequencer.c:5500:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (skip_prefix(oneline.buf, "Merge ", &p1) &&
                ^
/datasets/git/sequencer.c:5501:31: note: +1
                    (p1 = strchr(p1, '\'')) &&
                                            ^
/datasets/git/sequencer.c:5504:8: note: +1, nesting level increased to 2
                else if (skip_prefix(oneline.buf, "Merge pull request ",
                     ^
/datasets/git/sequencer.c:5505:15: note: +1
                                     &p1) &&
                                          ^
/datasets/git/sequencer.c:5508:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/sequencer.c:5516:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (; to_merge; to_merge = to_merge->next) {
                ^
/datasets/git/sequencer.c:5520:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!oidset_contains(&interesting, oid)) {
                        ^
/datasets/git/sequencer.c:5533:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                FLEX_ALLOC_STR(entry, string, buf.buf);
                ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^
/datasets/git/./git-compat-util.h:1151:47: note: expanded from macro 'FLEX_ALLOC_MEM'
#define FLEX_ALLOC_MEM(x, flexname, buf, len) do { \
                                              ^
/datasets/git/sequencer.c:5537:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (skipped_commit)
        ^
/datasets/git/sequencer.c:5546:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (iter = commits; iter; iter = iter->next) {
        ^
/datasets/git/sequencer.c:5548:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (; parent; parent = parent->next) {
                ^
/datasets/git/sequencer.c:5550:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!oidset_contains(&interesting, oid))
                        ^
/datasets/git/sequencer.c:5552:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (oidset_insert(&child_seen, oid))
                        ^
/datasets/git/sequencer.c:5557:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!iter->next)
                ^
/datasets/git/sequencer.c:5570:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (iter = tips; iter; iter = iter->next) {
        ^
/datasets/git/sequencer.c:5574:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (oidset_contains(&shown, &commit->object.oid))
                ^
/datasets/git/sequencer.c:5578:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (entry)
                ^
/datasets/git/sequencer.c:5580:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/sequencer.c:5583:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (oidset_contains(&interesting, &commit->object.oid) &&
                ^
/datasets/git/sequencer.c:5583:61: note: +1
                while (oidset_contains(&interesting, &commit->object.oid) &&
                                                                          ^
/datasets/git/sequencer.c:5586:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!commit->parents) {
                        ^
/datasets/git/sequencer.c:5593:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!commit)
                ^
/datasets/git/sequencer.c:5595:42: note: +3, including nesting penalty of 2, nesting level increased to 3
                                    rebase_cousins || root_with_onto ?
                                                                     ^
/datasets/git/sequencer.c:5595:24: note: +1
                                    rebase_cousins || root_with_onto ?
                                                   ^
/datasets/git/sequencer.c:5597:3: note: +1, nesting level increased to 2
                else {
                ^
/datasets/git/sequencer.c:5602:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (entry)
                        ^
/datasets/git/sequencer.c:5604:9: note: +1, nesting level increased to 3
                        else if (!rebase_cousins)
                             ^
/datasets/git/sequencer.c:5608:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!to || !strcmp(to, "onto"))
                        ^
/datasets/git/sequencer.c:5608:12: note: +1
                        if (!to || !strcmp(to, "onto"))
                                ^
/datasets/git/sequencer.c:5610:4: note: +1, nesting level increased to 3
                        else {
                        ^
/datasets/git/sequencer.c:5618:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (iter2 = list; iter2; iter2 = iter2->next) {
                ^
/datasets/git/sequencer.c:5622:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (entry)
                        ^
/datasets/git/sequencer.c:5625:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (entry)
                        ^
/datasets/git/sequencer.c:5409:65: warning: parameter name 'pp' is too short, expected at least 3 characters [readability-identifier-length]
static int make_script_with_merges(struct pretty_print_context *pp,
                                                                ^
/datasets/git/sequencer.c:5413:19: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int keep_empty = flags & TODO_LIST_KEEP_EMPTY;
                         ^
/datasets/git/sequencer.c:5413:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int keep_empty = flags & TODO_LIST_KEEP_EMPTY;
                                 ^
/datasets/git/./sequencer.h:163:31: note: expanded from macro 'TODO_LIST_KEEP_EMPTY'
#define TODO_LIST_KEEP_EMPTY (1U << 0)
                              ^     ~
/datasets/git/sequencer.c:5414:23: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int rebase_cousins = flags & TODO_LIST_REBASE_COUSINS;
                             ^
/datasets/git/sequencer.c:5414:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int rebase_cousins = flags & TODO_LIST_REBASE_COUSINS;
                                     ^
/datasets/git/./sequencer.h:172:35: note: expanded from macro 'TODO_LIST_REBASE_COUSINS'
#define TODO_LIST_REBASE_COUSINS (1U << 4)
                                  ^     ~
/datasets/git/sequencer.c:5415:23: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int root_with_onto = flags & TODO_LIST_ROOT_WITH_ONTO;
                             ^
/datasets/git/sequencer.c:5415:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int root_with_onto = flags & TODO_LIST_ROOT_WITH_ONTO;
                                     ^
/datasets/git/./sequencer.h:178:35: note: expanded from macro 'TODO_LIST_ROOT_WITH_ONTO'
#define TODO_LIST_ROOT_WITH_ONTO (1U << 6)
                                  ^     ~
/datasets/git/sequencer.c:5417:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct strbuf buf = STRBUF_INIT, oneline = STRBUF_INIT;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:5419:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit_list *commits = NULL, **tail = &commits, *iter;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:5419:58: warning: variable 'iter' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *commits = NULL, **tail = &commits, *iter;
                                                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:5420:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit_list *tips = NULL, **tips_tail = &tips;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:5421:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/sequencer.c:5423:23: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
        struct string_entry *entry;
                             ^
                                   = NULL
/datasets/git/sequencer.c:5424:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct oidset interesting = OIDSET_INIT, child_seen = OIDSET_INIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:5428:13: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int abbr = flags & TODO_LIST_ABBREVIATE_CMDS;
                   ^
/datasets/git/sequencer.c:5428:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int abbr = flags & TODO_LIST_ABBREVIATE_CMDS;
                           ^
/datasets/git/./sequencer.h:165:36: note: expanded from macro 'TODO_LIST_ABBREVIATE_CMDS'
#define TODO_LIST_ABBREVIATE_CMDS (1U << 2)
                                   ^     ~
/datasets/git/sequencer.c:5429:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *cmd_pick = abbr ? "p" : "pick",
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:5421:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct commit *commit;
        ^
/datasets/git/sequencer.c:5437:26: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        strbuf_init(&state.buf, 32);
                                ^
/datasets/git/sequencer.c:5439:56: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (revs->cmdline.nr && (revs->cmdline.rev[0].flags & BOTTOM)) {
                                                              ^
/datasets/git/./revision.h:37:18: note: expanded from macro 'BOTTOM'
#define BOTTOM          (1u<<10)
                         ^   ~~
/datasets/git/sequencer.c:5440:24: warning: variable 'onto_label_entry' is not initialized [cppcoreguidelines-init-variables]
                struct labels_entry *onto_label_entry;
                                     ^
                                                      = NULL
/datasets/git/sequencer.c:5442:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FLEX_ALLOC_STR(entry, string, "onto");
                ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^
/datasets/git/./git-compat-util.h:1151:47: note: expanded from macro 'FLEX_ALLOC_MEM'
#define FLEX_ALLOC_MEM(x, flexname, buf, len) do { \
                                              ^
/datasets/git/sequencer.c:5442:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                FLEX_ALLOC_STR(entry, string, "onto");
                ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/sequencer.c:5442:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                FLEX_ALLOC_STR(entry, string, "onto");
                ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/sequencer.c:5446:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FLEX_ALLOC_STR(onto_label_entry, label, "onto");
                ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^
/datasets/git/./git-compat-util.h:1151:47: note: expanded from macro 'FLEX_ALLOC_MEM'
#define FLEX_ALLOC_MEM(x, flexname, buf, len) do { \
                                              ^
/datasets/git/sequencer.c:5446:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                FLEX_ALLOC_STR(onto_label_entry, label, "onto");
                ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/sequencer.c:5446:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                FLEX_ALLOC_STR(onto_label_entry, label, "onto");
                ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/sequencer.c:5457:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'commit' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((commit = get_revision(revs))) {
               ^
/datasets/git/sequencer.c:5458:23: warning: variable 'to_merge' is not initialized [cppcoreguidelines-init-variables]
                struct commit_list *to_merge;
                                    ^
                                             = NULL
/datasets/git/sequencer.c:5459:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                const char *p1, *p2;
                ^~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:5459:15: warning: variable 'p1' is not initialized [cppcoreguidelines-init-variables]
                const char *p1, *p2;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:5459:15: warning: variable name 'p1' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:5459:20: warning: variable 'p2' is not initialized [cppcoreguidelines-init-variables]
                const char *p1, *p2;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:5459:20: warning: variable name 'p2' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:5460:21: warning: variable 'oid' is not initialized [cppcoreguidelines-init-variables]
                struct object_id *oid;
                                  ^
                                      = NULL
/datasets/git/sequencer.c:5461:7: warning: variable 'is_empty' is not initialized [cppcoreguidelines-init-variables]
                int is_empty;
                    ^
                             = 0
/datasets/git/sequencer.c:5467:44: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!is_empty && (commit->object.flags & PATCHSAME)) {
                                                         ^
/datasets/git/./revision.h:36:20: note: expanded from macro 'PATCHSAME'
#define PATCHSAME       (1u<<9)
                         ^   ~
/datasets/git/sequencer.c:5468:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (flags & TODO_LIST_WARN_SKIPPED_CHERRY_PICKS)
                                    ^
/datasets/git/./sequencer.h:180:46: note: expanded from macro 'TODO_LIST_WARN_SKIPPED_CHERRY_PICKS'
#define TODO_LIST_WARN_SKIPPED_CHERRY_PICKS (1U << 8)
                                             ^     ~
/datasets/git/sequencer.c:5468:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (flags & TODO_LIST_WARN_SKIPPED_CHERRY_PICKS)
                                                                        ^
                                                                         {
/datasets/git/sequencer.c:5474:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_empty && !keep_empty)
                                            ^
                                             {
/datasets/git/sequencer.c:5487:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (is_empty)
                                     ^
                                      {
/datasets/git/sequencer.c:5491:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        FLEX_ALLOC_STR(entry, string, buf.buf);
                        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^
/datasets/git/./git-compat-util.h:1151:47: note: expanded from macro 'FLEX_ALLOC_MEM'
#define FLEX_ALLOC_MEM(x, flexname, buf, len) do { \
                                              ^
/datasets/git/sequencer.c:5491:4: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        FLEX_ALLOC_STR(entry, string, buf.buf);
                        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/sequencer.c:5491:4: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                        FLEX_ALLOC_STR(entry, string, buf.buf);
                        ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/sequencer.c:5501:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                    (p1 = strchr(p1, '\'')) &&
                     ^
/datasets/git/sequencer.c:5501:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/sequencer.c:5501:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/sequencer.c:5502:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                    (p2 = strchr(++p1, '\'')))
                     ^
/datasets/git/sequencer.c:5502:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/sequencer.c:5502:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/sequencer.c:5458:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                struct commit_list *to_merge;
                ^
/datasets/git/sequencer.c:5502:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    (p2 = strchr(++p1, '\'')))
                                              ^
                                               {
/datasets/git/sequencer.c:5506:6: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                         (p1 = strstr(p1, " from ")))
                          ^
/datasets/git/sequencer.c:5506:6: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/sequencer.c:5506:6: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/sequencer.c:5547:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                struct commit_list *parent = iter->item->parents;
                ^
/datasets/git/sequencer.c:5506:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                         (p1 = strstr(p1, " from ")))
                                                     ^
                                                      {
/datasets/git/sequencer.c:5508:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/sequencer.c:5516:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (; to_merge; to_merge = to_merge->next) {
                ^
/datasets/git/sequencer.c:5516:10: warning: backward branch (for loop) is ID-dependent due to variable reference to 'to_merge' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (; to_merge; to_merge = to_merge->next) {
                       ^
/datasets/git/sequencer.c:5533:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FLEX_ALLOC_STR(entry, string, buf.buf);
                ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^
/datasets/git/./git-compat-util.h:1151:47: note: expanded from macro 'FLEX_ALLOC_MEM'
#define FLEX_ALLOC_MEM(x, flexname, buf, len) do { \
                                              ^
/datasets/git/sequencer.c:5533:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                FLEX_ALLOC_STR(entry, string, buf.buf);
                ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/sequencer.c:5533:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                FLEX_ALLOC_STR(entry, string, buf.buf);
                ^
/datasets/git/./git-compat-util.h:1163:2: note: expanded from macro 'FLEX_ALLOC_STR'
        FLEX_ALLOC_MEM((x), flexname, (str), strlen(str))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/sequencer.c:5537:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (skipped_commit)
                           ^
                            {
/datasets/git/sequencer.c:5546:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 'iter' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (iter = commits; iter; iter = iter->next) {
                             ^
/datasets/git/sequencer.c:5419:2: note: inferred assignment of ID-dependent value from ID-dependent 
        struct commit_list *commits = NULL, **tail = &commits, *iter;
        ^
/datasets/git/sequencer.c:5548:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (; parent; parent = parent->next) {
                ^
/datasets/git/sequencer.c:5548:10: warning: backward branch (for loop) is ID-dependent due to variable reference to 'parent' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (; parent; parent = parent->next) {
                       ^
/datasets/git/sequencer.c:5550:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!oidset_contains(&interesting, oid))
                                                                ^
                                                                 {
/datasets/git/sequencer.c:5552:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (oidset_insert(&child_seen, oid))
                                                            ^
                                                             {
/datasets/git/sequencer.c:5557:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!iter->next)
                                ^
                                 {
/datasets/git/sequencer.c:5570:20: warning: backward branch (for loop) is ID-dependent due to variable reference to 'iter' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (iter = tips; iter; iter = iter->next) {
                          ^
/datasets/git/sequencer.c:5571:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                struct commit_list *list = NULL, *iter2;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:5571:37: warning: variable 'iter2' is not initialized [cppcoreguidelines-init-variables]
                struct commit_list *list = NULL, *iter2;
                                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:5574:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (oidset_contains(&shown, &commit->object.oid))
                                                                 ^
                                                                  {
/datasets/git/sequencer.c:5578:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (entry)
                          ^
                           {
/datasets/git/sequencer.c:5580:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/sequencer.c:5583:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (oidset_contains(&interesting, &commit->object.oid) &&
                ^
/datasets/git/sequencer.c:5583:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'commit' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (oidset_contains(&interesting, &commit->object.oid) &&
                       ^
/datasets/git/sequencer.c:5593:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!commit)
                            ^
                             {
/datasets/git/sequencer.c:5598:16: warning: variable name 'to' is too short, expected at least 3 characters [readability-identifier-length]
                        const char *to = NULL;
                                    ^
/datasets/git/sequencer.c:5602:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (entry)
                                  ^
                                   {
/datasets/git/sequencer.c:5604:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (!rebase_cousins)
                                                 ^
                                                  {
/datasets/git/sequencer.c:5608:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!to || !strcmp(to, "onto"))
                                                       ^
                                                        {
/datasets/git/sequencer.c:5618:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (iter2 = list; iter2; iter2 = iter2->next) {
                ^
/datasets/git/sequencer.c:5618:22: warning: backward branch (for loop) is ID-dependent due to variable reference to 'iter2' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (iter2 = list; iter2; iter2 = iter2->next) {
                                   ^
/datasets/git/sequencer.c:5622:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (entry)
                                  ^
                                   {
/datasets/git/sequencer.c:5625:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (entry)
                                  ^
                                   {
/datasets/git/sequencer.c:5649:46: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int sequencer_make_script(struct repository *r, struct strbuf *out, int argc,
                                             ^
/datasets/git/sequencer.c:5653:30: warning: variable name 'pp' is too short, expected at least 3 characters [readability-identifier-length]
        struct pretty_print_context pp = {0};
                                    ^
/datasets/git/sequencer.c:5655:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/sequencer.c:5656:19: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int keep_empty = flags & TODO_LIST_KEEP_EMPTY;
                         ^
/datasets/git/sequencer.c:5656:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int keep_empty = flags & TODO_LIST_KEEP_EMPTY;
                                 ^
/datasets/git/./sequencer.h:163:31: note: expanded from macro 'TODO_LIST_KEEP_EMPTY'
#define TODO_LIST_KEEP_EMPTY (1U << 0)
                              ^     ~
/datasets/git/sequencer.c:5657:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        const char *insn = flags & TODO_LIST_ABBREVIATE_CMDS ? "p" : "pick";
                                   ^
/datasets/git/./sequencer.h:165:36: note: expanded from macro 'TODO_LIST_ABBREVIATE_CMDS'
#define TODO_LIST_ABBREVIATE_CMDS (1U << 2)
                                   ^     ~
/datasets/git/sequencer.c:5658:22: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int rebase_merges = flags & TODO_LIST_REBASE_MERGES;
                            ^
/datasets/git/sequencer.c:5658:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int rebase_merges = flags & TODO_LIST_REBASE_MERGES;
                                    ^
/datasets/git/./sequencer.h:166:34: note: expanded from macro 'TODO_LIST_REBASE_MERGES'
#define TODO_LIST_REBASE_MERGES (1U << 3)
                                 ^     ~
/datasets/git/sequencer.c:5659:29: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int reapply_cherry_picks = flags & TODO_LIST_REAPPLY_CHERRY_PICKS;
                                   ^
/datasets/git/sequencer.c:5659:37: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int reapply_cherry_picks = flags & TODO_LIST_REAPPLY_CHERRY_PICKS;
                                           ^
/datasets/git/./sequencer.h:179:41: note: expanded from macro 'TODO_LIST_REAPPLY_CHERRY_PICKS'
#define TODO_LIST_REAPPLY_CHERRY_PICKS (1U << 7)
                                        ^     ~
/datasets/git/sequencer.c:5665:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!rebase_merges)
                           ^
                            {
/datasets/git/sequencer.c:5700:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((commit = get_revision(&revs))) {
        ^
/datasets/git/sequencer.c:5700:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'commit' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((commit = get_revision(&revs))) {
               ^
/datasets/git/sequencer.c:5703:44: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!is_empty && (commit->object.flags & PATCHSAME)) {
                                                         ^
/datasets/git/./revision.h:36:20: note: expanded from macro 'PATCHSAME'
#define PATCHSAME       (1u<<9)
                         ^   ~
/datasets/git/sequencer.c:5704:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (flags & TODO_LIST_WARN_SKIPPED_CHERRY_PICKS)
                                    ^
/datasets/git/./sequencer.h:180:46: note: expanded from macro 'TODO_LIST_WARN_SKIPPED_CHERRY_PICKS'
#define TODO_LIST_WARN_SKIPPED_CHERRY_PICKS (1U << 8)
                                             ^     ~
/datasets/git/sequencer.c:5704:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (flags & TODO_LIST_WARN_SKIPPED_CHERRY_PICKS)
                                                                        ^
                                                                         {
/datasets/git/sequencer.c:5710:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_empty && !keep_empty)
                                            ^
                                             {
/datasets/git/sequencer.c:5715:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_empty)
                             ^
                              {
/datasets/git/sequencer.c:5719:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (skipped_commit)
                           ^
                            {
/datasets/git/sequencer.c:5731:13: warning: function 'todo_list_add_exec_commands' has cognitive complexity of 43 (threshold 25) [readability-function-cognitive-complexity]
static void todo_list_add_exec_commands(struct todo_list *todo_list,
            ^
/datasets/git/sequencer.c:5740:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < commands->nr; i++) {
        ^
/datasets/git/sequencer.c:5767:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < todo_list->nr; i++) {
        ^
/datasets/git/sequencer.c:5769:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (insert && !is_fixup(command)) {
                ^
/datasets/git/sequencer.c:5769:14: note: +1
                if (insert && !is_fixup(command)) {
                           ^
/datasets/git/sequencer.c:5770:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        ALLOC_GROW(items, nr + commands->nr, alloc);
                        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/sequencer.c:5770:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        ALLOC_GROW(items, nr + commands->nr, alloc);
                        ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/sequencer.c:5770:4: note: +5, including nesting penalty of 4, nesting level increased to 5
                        ALLOC_GROW(items, nr + commands->nr, alloc);
                        ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/sequencer.c:5770:4: note: +1, nesting level increased to 5
                        ALLOC_GROW(items, nr + commands->nr, alloc);
                        ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/sequencer.c:5777:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                ALLOC_GROW(items, nr + 1, alloc);
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/sequencer.c:5777:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                ALLOC_GROW(items, nr + 1, alloc);
                ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/sequencer.c:5777:3: note: +4, including nesting penalty of 3, nesting level increased to 4
                ALLOC_GROW(items, nr + 1, alloc);
                ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/sequencer.c:5777:3: note: +1, nesting level increased to 4
                ALLOC_GROW(items, nr + 1, alloc);
                ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/sequencer.c:5780:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (command == TODO_PICK || command == TODO_MERGE)
                ^
/datasets/git/sequencer.c:5780:28: note: +1
                if (command == TODO_PICK || command == TODO_MERGE)
                                         ^
/datasets/git/sequencer.c:5785:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (insert) {
        ^
/datasets/git/sequencer.c:5786:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                ALLOC_GROW(items, nr + commands->nr, alloc);
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/sequencer.c:5786:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                ALLOC_GROW(items, nr + commands->nr, alloc);
                ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/sequencer.c:5786:3: note: +4, including nesting penalty of 3, nesting level increased to 4
                ALLOC_GROW(items, nr + commands->nr, alloc);
                ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/sequencer.c:5786:3: note: +1, nesting level increased to 4
                ALLOC_GROW(items, nr + commands->nr, alloc);
                ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/sequencer.c:5792:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        FREE_AND_NULL(todo_list->items);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/sequencer.c:5736:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, insert, nr = 0, alloc = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:5736:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, insert, nr = 0, alloc = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:5736:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:5736:9: warning: variable 'insert' is not initialized [cppcoreguidelines-init-variables]
        int i, insert, nr = 0, alloc = 0;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:5736:17: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
        int i, insert, nr = 0, alloc = 0;
                       ^
/datasets/git/sequencer.c:5737:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct todo_item *items = NULL, *base_items = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:5740:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < commands->nr; i++) {
        ^
/datasets/git/./sequencer.h:125:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        int nr, alloc, current;
        ^
/datasets/git/sequencer.c:5749:27: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                base_items[i].arg_len = command_len - strlen("exec ");
                                        ^
/datasets/git/sequencer.c:5767:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < todo_list->nr; i++) {
                    ^
/datasets/git/sequencer.c:5770:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        ALLOC_GROW(items, nr + commands->nr, alloc);
                        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/sequencer.c:5772:10: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        nr += commands->nr;
                              ^
/datasets/git/sequencer.c:5777:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                ALLOC_GROW(items, nr + 1, alloc);
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/sequencer.c:5780:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (command == TODO_PICK || command == TODO_MERGE)
                                                                  ^
                                                                   {
/datasets/git/sequencer.c:5786:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                ALLOC_GROW(items, nr + commands->nr, alloc);
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/sequencer.c:5788:9: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                nr += commands->nr;
                      ^
/datasets/git/sequencer.c:5792:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(todo_list->items);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/sequencer.c:5798:13: warning: function 'todo_list_to_strbuf' has cognitive complexity of 33 (threshold 25) [readability-function-cognitive-complexity]
static void todo_list_to_strbuf(struct repository *r, struct todo_list *todo_list,
            ^
/datasets/git/sequencer.c:5804:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (num > 0 && num < max)
        ^
/datasets/git/sequencer.c:5804:14: note: +1
        if (num > 0 && num < max)
                    ^
/datasets/git/sequencer.c:5807:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (item = todo_list->items, i = 0; i < max; i++, item++) {
        ^
/datasets/git/sequencer.c:5811:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (item->command >= TODO_COMMENT) {
                ^
/datasets/git/sequencer.c:5819:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((flags & TODO_LIST_ABBREVIATE_CMDS) && cmd)
                ^
/datasets/git/sequencer.c:5819:43: note: +1
                if ((flags & TODO_LIST_ABBREVIATE_CMDS) && cmd)
                                                        ^
/datasets/git/sequencer.c:5821:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/sequencer.c:5825:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (item->commit) {
                ^
/datasets/git/sequencer.c:5826:52: note: +3, including nesting penalty of 2, nesting level increased to 3
                        const char *oid = flags & TODO_LIST_SHORTEN_IDS ?
                                                                        ^
/datasets/git/sequencer.c:5830:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (item->command == TODO_FIXUP) {
                        ^
/datasets/git/sequencer.c:5831:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (item->flags & TODO_EDIT_FIXUP_MSG)
                                ^
/datasets/git/sequencer.c:5833:10: note: +1, nesting level increased to 4
                                else if (item->flags & TODO_REPLACE_FIXUP_MSG) {
                                     ^
/datasets/git/sequencer.c:5838:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (item->command == TODO_MERGE) {
                        ^
/datasets/git/sequencer.c:5839:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (item->flags & TODO_EDIT_MERGE_MSG)
                                ^
/datasets/git/sequencer.c:5841:5: note: +1, nesting level increased to 4
                                else
                                ^
/datasets/git/sequencer.c:5849:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!item->arg_len)
                ^
/datasets/git/sequencer.c:5851:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/sequencer.c:5798:52: warning: parameter 'r' is unused [misc-unused-parameters]
static void todo_list_to_strbuf(struct repository *r, struct todo_list *todo_list,
                                ~~~~~~~~~~~~~~~~~~~^~~
/datasets/git/sequencer.c:5798:52: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:5799:25: warning: 2 adjacent parameters of 'todo_list_to_strbuf' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                struct strbuf *buf, int num, unsigned flags)
                                                    ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:5799:29: note: the first parameter in the range is 'num'
                                struct strbuf *buf, int num, unsigned flags)
                                                        ^~~
/datasets/git/sequencer.c:5799:43: note: the last parameter in the range is 'flags'
                                struct strbuf *buf, int num, unsigned flags)
                                                                      ^~~~~
/datasets/git/sequencer.c:5799:34: note: 'int' and 'unsigned int' may be implicitly converted
                                struct strbuf *buf, int num, unsigned flags)
                                                             ^
/datasets/git/sequencer.c:5801:20: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct todo_item *item;
                          ^
                               = NULL
/datasets/git/sequencer.c:5802:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, max = todo_list->nr;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:5802:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, max = todo_list->nr;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:5802:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:5804:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (num > 0 && num < max)
                                 ^
                                  {
/datasets/git/sequencer.c:5807:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (item = todo_list->items, i = 0; i < max; i++, item++) {
        ^
/datasets/git/sequencer.c:5807:39: warning: backward branch (for loop) is ID-dependent due to variable reference to 'max' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (item = todo_list->items, i = 0; i < max; i++, item++) {
                                             ^
/datasets/git/sequencer.c:5808:8: warning: variable 'cmd' is not initialized [cppcoreguidelines-init-variables]
                char cmd;
                     ^
                         = 0
/datasets/git/sequencer.c:5819:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((flags & TODO_LIST_ABBREVIATE_CMDS) && cmd)
                             ^
/datasets/git/./sequencer.h:165:36: note: expanded from macro 'TODO_LIST_ABBREVIATE_CMDS'
#define TODO_LIST_ABBREVIATE_CMDS (1U << 2)
                                   ^     ~
/datasets/git/sequencer.c:5819:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((flags & TODO_LIST_ABBREVIATE_CMDS) && cmd)
                                                               ^
                                                                {
/datasets/git/sequencer.c:5821:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/sequencer.c:5826:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        const char *oid = flags & TODO_LIST_SHORTEN_IDS ?
                                                  ^
/datasets/git/./sequencer.h:164:32: note: expanded from macro 'TODO_LIST_SHORTEN_IDS'
#define TODO_LIST_SHORTEN_IDS (1U << 1)
                               ^     ~
/datasets/git/sequencer.c:5831:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (item->flags & TODO_EDIT_FIXUP_MSG)
                                    ^             ~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:5831:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (item->flags & TODO_EDIT_FIXUP_MSG)
                                                                      ^
                                                                       {
/datasets/git/sequencer.c:5833:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                else if (item->flags & TODO_REPLACE_FIXUP_MSG) {
                                         ^             ~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:5839:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (item->flags & TODO_EDIT_MERGE_MSG)
                                    ^             ~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:5839:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (item->flags & TODO_EDIT_MERGE_MSG)
                                                                      ^
                                                                       {
/datasets/git/sequencer.c:5841:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                else
                                    ^
                                     {
/datasets/git/sequencer.c:5849:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!item->arg_len)
                                   ^
                                    {
/datasets/git/sequencer.c:5851:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/sequencer.c:5857:48: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int todo_list_write_to_file(struct repository *r, struct todo_list *todo_list,
                                               ^
/datasets/git/sequencer.c:5858:8: warning: 2 adjacent parameters of 'todo_list_write_to_file' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                            const char *file, const char *shortrevisions,
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:5858:20: note: the first parameter in the range is 'file'
                            const char *file, const char *shortrevisions,
                                        ^~~~
/datasets/git/sequencer.c:5858:38: note: the last parameter in the range is 'shortrevisions'
                            const char *file, const char *shortrevisions,
                                                          ^~~~~~~~~~~~~~
/datasets/git/sequencer.c:5861:6: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        int res;
            ^
                = 0
/datasets/git/sequencer.c:5865:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & TODO_LIST_APPEND_TODO_HELP)
                    ^
/datasets/git/./sequencer.h:173:37: note: expanded from macro 'TODO_LIST_APPEND_TODO_HELP'
#define TODO_LIST_APPEND_TODO_HELP (1U << 5)
                                    ^     ~
/datasets/git/sequencer.c:5865:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & TODO_LIST_APPEND_TODO_HELP)
                                               ^
                                                {
/datasets/git/sequencer.c:5876:54: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int skip_unnecessary_picks(struct repository *r,
                                                     ^
/datasets/git/./sequencer.h:125:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        int nr, alloc, current;
        ^
/datasets/git/sequencer.c:5880:20: warning: variable 'parent_oid' is not initialized [cppcoreguidelines-init-variables]
        struct object_id *parent_oid;
                          ^
                                     = NULL
/datasets/git/sequencer.c:5881:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/sequencer.c:5881:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:5883:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < todo_list->nr; i++) {
        ^
/datasets/git/sequencer.c:5883:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < todo_list->nr; i++) {
                    ^
/datasets/git/sequencer.c:5886:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (item->command >= TODO_NOOP)
                                               ^
                                                {
/datasets/git/sequencer.c:5888:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (item->command != TODO_PICK)
                                               ^
                                                {
/datasets/git/sequencer.c:5894:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!item->commit->parents)
                                           ^
                                            {
/datasets/git/sequencer.c:5896:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (item->commit->parents->next)
                                                ^
                                                 {
/datasets/git/sequencer.c:5899:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!oideq(parent_oid, base_oid))
                                                 ^
                                                  {
/datasets/git/sequencer.c:5916:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_fixup(peek_command(todo_list, 0)))
                                                         ^
                                                          {
/datasets/git/sequencer.c:5923:8: warning: accessing fields in struct 'todo_add_branch_context' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct todo_add_branch_context {
       ^
/datasets/git/sequencer.c:5923:8: note: use "__attribute__((aligned(128)))" to align struct 'todo_add_branch_context' to 128 bytes
/datasets/git/sequencer.c:5935:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        const struct name_decoration *decoration = get_name_decoration(&commit->object);
        ^
/datasets/git/sequencer.c:5941:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'decoration' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (decoration) {
               ^
/datasets/git/sequencer.c:5942:21: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
                struct todo_item *item;
                                  ^
                                       = NULL
/datasets/git/sequencer.c:5943:15: warning: variable 'path' is not initialized [cppcoreguidelines-init-variables]
                const char *path;
                            ^
                                 = NULL
/datasets/git/sequencer.c:5955:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                ALLOC_GROW(ctx->items,
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/sequencer.c:5959:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(item, 0, sizeof(*item));
                ^~~~~~
/datasets/git/sequencer.c:5959:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(item, 0, sizeof(*item));
                ^~~~~~
/datasets/git/sequencer.c:5962:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                if ((path = branch_checked_out(decoration->name))) {
                     ^
/datasets/git/sequencer.c:5962:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/sequencer.c:5962:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/sequencer.c:5967:29: warning: variable 'sti' is not initialized [cppcoreguidelines-init-variables]
                        struct string_list_item *sti;
                                                 ^
                                                     = NULL
/datasets/git/sequencer.c:5978:19: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                item->arg_len = ctx->buf->len - base_offset;
                                ^
/datasets/git/sequencer.c:5993:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, res;
        ^~~~~~~~~~~
/datasets/git/./sequencer.h:125:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        int nr, alloc, current;
        ^
/datasets/git/sequencer.c:5993:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, res;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:5993:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:5993:9: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        int i, res;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:6013:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < todo_list->nr; ) {
                    ^
/datasets/git/sequencer.c:6017:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                ALLOC_GROW(ctx.items,
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/sequencer.c:6041:18: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        todo_list->nr = ctx.items_nr;
                        ^
/datasets/git/sequencer.c:6042:21: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        todo_list->alloc = ctx.items_alloc;
                           ^
/datasets/git/sequencer.c:6047:40: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int complete_action(struct repository *r, struct replay_opts *opts, unsigned flags,
                                       ^
/datasets/git/sequencer.c:6048:7: warning: 2 adjacent parameters of 'complete_action' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                    const char *shortrevisions, const char *onto_name,
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:6048:19: note: the first parameter in the range is 'shortrevisions'
                    const char *shortrevisions, const char *onto_name,
                                ^~~~~~~~~~~~~~
/datasets/git/sequencer.c:6048:47: note: the last parameter in the range is 'onto_name'
                    const char *shortrevisions, const char *onto_name,
                                                            ^~~~~~~~~
/datasets/git/sequencer.c:6050:37: warning: 2 adjacent parameters of 'complete_action' of similar type ('unsigned int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                    struct string_list *commands, unsigned autosquash,
                                                  ^~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:6050:46: note: the first parameter in the range is 'autosquash'
                    struct string_list *commands, unsigned autosquash,
                                                           ^~~~~~~~~~
/datasets/git/sequencer.c:6051:16: note: the last parameter in the range is 'update_refs'
                    unsigned update_refs,
                             ^~~~~~~~~~~
/datasets/git/sequencer.c:6057:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct strbuf *buf = &todo_list->buf, buf2 = STRBUF_INIT;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:6059:6: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        int res;
            ^
                = 0
/datasets/git/sequencer.c:6067:19: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                item->arg_len = item->arg_offset = item->flags = item->offset_in_buf = 0;
                                ^
/datasets/git/sequencer.c:6070:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (update_refs && todo_list_add_update_ref_commands(todo_list))
                                                                        ^
                                                                         {
/datasets/git/sequencer.c:6073:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (autosquash && todo_list_rearrange_squash(todo_list))
                                                                ^
                                                                 {
/datasets/git/sequencer.c:6076:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (commands->nr)
                         ^
                          {
/datasets/git/sequencer.c:6088:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (res == -1)
                      ^
                       {
/datasets/git/sequencer.c:6090:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (res == -2) {
        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:6113:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (todo_list_parse_insn_buffer(r, new_todo.buf.buf, &new_todo) < 0)
                                                                            ^
                                                                             {
/datasets/git/sequencer.c:6123:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                    flags & ~(TODO_LIST_SHORTEN_IDS))) {
                                              ^
/datasets/git/./sequencer.h:164:32: note: expanded from macro 'TODO_LIST_SHORTEN_IDS'
#define TODO_LIST_SHORTEN_IDS (1U << 1)
                               ^     ~
/datasets/git/sequencer.c:6130:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (checkout_onto(r, opts, onto_name, &oid, orig_head))
                                                               ^
                                                                {
/datasets/git/sequencer.c:6133:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (require_clean_work_tree(r, "rebase", "", 1, 1))
                                                           ^
                                                            {
/datasets/git/sequencer.c:6152:8: warning: 2 adjacent parameters of 'subject2item_cmp' of similar type ('const struct hashmap_entry *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                            const struct hashmap_entry *eptr,
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:6152:36: note: the first parameter in the range is 'eptr'
                            const struct hashmap_entry *eptr,
                                                        ^~~~
/datasets/git/sequencer.c:6153:36: note: the last parameter in the range is 'entry_or_key'
                            const struct hashmap_entry *entry_or_key,
                                                        ^~~~~~~~~~~~
/datasets/git/sequencer.c:6156:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const struct subject2item_entry *a, *b;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:6156:35: warning: variable 'a' is not initialized [cppcoreguidelines-init-variables]
        const struct subject2item_entry *a, *b;
                                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:6156:35: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:6156:39: warning: variable 'b' is not initialized [cppcoreguidelines-init-variables]
        const struct subject2item_entry *a, *b;
                                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:6156:39: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:6164:1: warning: backward branch (for loop) is ID-dependent due to member reference to 'slab_size' and may cause performance degradation [altera-id-dependent-backward-branch]
define_commit_slab(commit_todo_item, struct todo_item *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:48:15: note: expanded from macro 'implement_commit_slab'
                for (j = 0; j < s->slab_size; j++)                      \
                            ^
/datasets/git/sequencer.c:6164:1: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
define_commit_slab(commit_todo_item, struct todo_item *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:68:27: note: expanded from macro 'implement_commit_slab'
                for (i = s->slab_count; i <= nth_slab; i++)             \
                                        ^
/datasets/git/sequencer.c:6164:1: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
define_commit_slab(commit_todo_item, struct todo_item *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:35:2: note: expanded from macro 'implement_commit_slab'
        for (i = 0; i < s->slab_count; i++)                             \
        ^
/datasets/git/sequencer.c:6164:1: warning: result of multiplication in type 'unsigned int' is used as a pointer offset after an implicit widening conversion to type 'size_t' [bugprone-implicit-widening-of-multiplication-result]
define_commit_slab(commit_todo_item, struct todo_item *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:49:13: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                 ^
/datasets/git/sequencer.c:6164:1: note: make conversion explicit to silence this warning
define_commit_slab(commit_todo_item, struct todo_item *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:49:24: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                            ^~~~~~~~~~~~~
/datasets/git/sequencer.c:6164:1: note: perform multiplication in a wider type
define_commit_slab(commit_todo_item, struct todo_item *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:49:24: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                            ^
/datasets/git/sequencer.c:6164:1: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
define_commit_slab(commit_todo_item, struct todo_item *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:76:10: note: expanded from macro 'implement_commit_slab'
                                            sizeof(**s->slab) * s->stride);             \
                                            ^
/datasets/git/sequencer.c:6164:1: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(commit_todo_item, struct todo_item *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:55:30: note: expanded from macro 'implement_commit_slab'
                                                  const struct commit *c, \
                                                                       ^
/datasets/git/sequencer.c:6164:1: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(commit_todo_item, struct todo_item *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:14:61: note: expanded from macro 'implement_commit_slab'
scope void init_ ##slabname## _with_stride(struct slabname *s,          \
                                                            ^
/datasets/git/sequencer.c:6164:1: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(commit_todo_item, struct todo_item *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:34:15: note: expanded from macro 'implement_commit_slab'
        unsigned int i;                                                 \
                     ^
/datasets/git/sequencer.c:6164:1: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(commit_todo_item, struct todo_item *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:45:16: note: expanded from macro 'implement_commit_slab'
                unsigned int j;                                         \
                             ^
/datasets/git/sequencer.c:6164:1: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
define_commit_slab(commit_todo_item, struct todo_item *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:58:2: note: expanded from macro 'implement_commit_slab'
        unsigned int nth_slab, nth_slot;                                \
        ^
/datasets/git/sequencer.c:6164:1: note: inferred assignment of ID-dependent value from ID-dependent member slab_count [altera-id-dependent-backward-branch]
define_commit_slab(commit_todo_item, struct todo_item *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:64:3: note: expanded from macro 'implement_commit_slab'
                unsigned int i;                                         \
                ^
/datasets/git/sequencer.c:6164:20: warning: accessing fields in struct 'commit_todo_item' is inefficient due to padding; only needs 20 bytes but is using 24 bytes [altera-struct-pack-align]
define_commit_slab(commit_todo_item, struct todo_item *);
                   ^
/datasets/git/sequencer.c:6164:20: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'commit_todo_item'
/datasets/git/sequencer.c:6164:20: warning: accessing fields in struct 'commit_todo_item' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
define_commit_slab(commit_todo_item, struct todo_item *);
                   ^
/datasets/git/sequencer.c:6164:20: note: use "__attribute__((aligned(32)))" to align struct 'commit_todo_item' to 32 bytes
/datasets/git/sequencer.c:6166:60: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static int skip_fixupish(const char *subject, const char **p) {
                                                           ^
/datasets/git/sequencer.c:6181:5: warning: function 'todo_list_rearrange_squash' has cognitive complexity of 82 (threshold 25) [readability-function-cognitive-complexity]
int todo_list_rearrange_squash(struct todo_list *todo_list)
    ^
/datasets/git/sequencer.c:6203:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < todo_list->nr; i++) {
        ^
/datasets/git/sequencer.c:6212:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!item->commit || item->command == TODO_DROP) {
                ^
/datasets/git/sequencer.c:6212:21: note: +1
                if (!item->commit || item->command == TODO_DROP) {
                                  ^
/datasets/git/sequencer.c:6217:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (is_fixup(item->command)) {
                ^
/datasets/git/sequencer.c:6228:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (skip_fixupish(subject, &p)) {
                ^
/datasets/git/sequencer.c:6231:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (;;) {
                        ^
/datasets/git/sequencer.c:6232:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                while (isspace(*p))
                                ^
/datasets/git/sequencer.c:6234:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!skip_fixupish(p, &p))
                                ^
/datasets/git/sequencer.c:6242:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (entry)
                        ^
/datasets/git/sequencer.c:6245:9: note: +1, nesting level increased to 3
                        else if (!strchr(p, ' ') &&
                             ^
/datasets/git/sequencer.c:6247:43: note: +1
                                  lookup_commit_reference_by_name(p)) &&
                                                                      ^
/datasets/git/sequencer.c:6252:4: note: +1, nesting level increased to 3
                        else {
                        ^
/datasets/git/sequencer.c:6254:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                for (i2 = 0; i2 < i; i2++)
                                ^
/datasets/git/sequencer.c:6255:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (subjects[i2] &&
                                        ^
/datasets/git/sequencer.c:6255:23: note: +1
                                        if (subjects[i2] &&
                                                         ^
/datasets/git/sequencer.c:6258:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (i2 == i)
                                ^
/datasets/git/sequencer.c:6262:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (i2 >= 0) {
                ^
/datasets/git/sequencer.c:6264:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (starts_with(subject, "fixup!")) {
                        ^
/datasets/git/sequencer.c:6266:11: note: +1, nesting level increased to 3
                        } else if (starts_with(subject, "amend!")) {
                               ^
/datasets/git/sequencer.c:6269:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/sequencer.c:6272:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (tail[i2] < 0) {
                        ^
/datasets/git/sequencer.c:6275:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/sequencer.c:6280:10: note: +1, nesting level increased to 2
                } else if (!hashmap_get_from_hash(&subject2item,
                       ^
/datasets/git/sequencer.c:6282:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        FLEX_ALLOC_MEM(entry, subject, subject, subject_len);
                        ^
/datasets/git/./git-compat-util.h:1151:47: note: expanded from macro 'FLEX_ALLOC_MEM'
#define FLEX_ALLOC_MEM(x, flexname, buf, len) do { \
                                              ^
/datasets/git/sequencer.c:6292:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (rearranged) {
        ^
/datasets/git/sequencer.c:6293:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < todo_list->nr; i++) {
                ^
/datasets/git/sequencer.c:6301:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (is_fixup(command))
                        ^
/datasets/git/sequencer.c:6304:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (cur >= 0) {
                        ^
/datasets/git/sequencer.c:6305:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                ALLOC_GROW(items, nr + 1, alloc);
                                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/sequencer.c:6305:5: note: +5, including nesting penalty of 4, nesting level increased to 5
                                ALLOC_GROW(items, nr + 1, alloc);
                                ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/sequencer.c:6305:5: note: +6, including nesting penalty of 5, nesting level increased to 6
                                ALLOC_GROW(items, nr + 1, alloc);
                                ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/sequencer.c:6305:5: note: +1, nesting level increased to 6
                                ALLOC_GROW(items, nr + 1, alloc);
                                ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/sequencer.c:6311:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                FREE_AND_NULL(todo_list->items);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/sequencer.c:6319:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < todo_list->nr; i++)
        ^
/datasets/git/sequencer.c:6184:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int rearranged = 0, *next, *tail, i, nr = 0, alloc = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./sequencer.h:125:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        int nr, alloc, current;
        ^
/datasets/git/sequencer.c:6184:23: warning: variable 'next' is not initialized [cppcoreguidelines-init-variables]
        int rearranged = 0, *next, *tail, i, nr = 0, alloc = 0;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:6184:30: warning: variable 'tail' is not initialized [cppcoreguidelines-init-variables]
        int rearranged = 0, *next, *tail, i, nr = 0, alloc = 0;
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:6184:36: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int rearranged = 0, *next, *tail, i, nr = 0, alloc = 0;
                                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:6184:36: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:6184:39: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
        int rearranged = 0, *next, *tail, i, nr = 0, alloc = 0;
                                             ^
/datasets/git/sequencer.c:6185:9: warning: variable 'subjects' is not initialized [cppcoreguidelines-init-variables]
        char **subjects;
               ^
                        = NULL
/datasets/git/sequencer.c:6203:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < todo_list->nr; i++) {
                    ^
/datasets/git/sequencer.c:6206:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                const char *commit_buffer, *subject, *p;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:6206:15: warning: variable 'commit_buffer' is not initialized [cppcoreguidelines-init-variables]
                const char *commit_buffer, *subject, *p;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:6206:31: warning: variable 'subject' is not initialized [cppcoreguidelines-init-variables]
                const char *commit_buffer, *subject, *p;
                                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:6206:41: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                const char *commit_buffer, *subject, *p;
                                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sequencer.c:6206:41: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sequencer.c:6207:10: warning: variable 'subject_len' is not initialized [cppcoreguidelines-init-variables]
                size_t subject_len;
                       ^
                                   = 0
/datasets/git/sequencer.c:6208:7: warning: variable name 'i2' is too short, expected at least 3 characters [readability-identifier-length]
                int i2 = -1;
                    ^
/datasets/git/sequencer.c:6209:30: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
                struct subject2item_entry *entry;
                                           ^
                                                 = NULL
/datasets/git/sequencer.c:6229:19: warning: variable 'commit2' is not initialized [cppcoreguidelines-init-variables]
                        struct commit *commit2;
                                       ^
                                               = NULL
/datasets/git/sequencer.c:6232:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                while (isspace(*p))
                                ^
/datasets/git/sequencer.c:6232:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                while (isspace(*p))
                                       ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/sequencer.c:6232:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                while (isspace(*p))
                                                   ^
                                                    {
/datasets/git/sequencer.c:6234:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!skip_fixupish(p, &p))
                                                          ^
                                                           {
/datasets/git/sequencer.c:6242:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (entry)
                                  ^
                                   {
/datasets/git/sequencer.c:6246:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                                 (commit2 =
                                  ^
/datasets/git/sequencer.c:6246:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/sequencer.c:6246:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/sequencer.c:6248:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                 *commit_todo_item_at(&commit_todo, commit2))
                                                                             ^
                                                                              {
/datasets/git/sequencer.c:6250:10: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                i2 = *commit_todo_item_at(&commit_todo, commit2)
                                     ^
/datasets/git/sequencer.c:6254:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                for (i2 = 0; i2 < i; i2++)
                                ^
/datasets/git/sequencer.c:6254:18: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i2' and may cause performance degradation [altera-id-dependent-backward-branch]
                                for (i2 = 0; i2 < i; i2++)
                                             ^
/datasets/git/sequencer.c:6254:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                for (i2 = 0; i2 < i; i2++)
                                                          ^
                                                           {
/datasets/git/sequencer.c:6256:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                            starts_with(subjects[i2], p))
                                                                         ^
                                                                          {
/datasets/git/sequencer.c:6258:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (i2 == i)
                                            ^
                                             {
/datasets/git/sequencer.c:6282:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        FLEX_ALLOC_MEM(entry, subject, subject, subject_len);
                        ^
/datasets/git/./git-compat-util.h:1151:47: note: expanded from macro 'FLEX_ALLOC_MEM'
#define FLEX_ALLOC_MEM(x, flexname, buf, len) do { \
                                              ^
/datasets/git/./sequencer.h:125:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        int nr, alloc, current;
        ^
/datasets/git/sequencer.c:6282:4: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        FLEX_ALLOC_MEM(entry, subject, subject, subject_len);
                        ^
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/sequencer.c:6282:4: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                        FLEX_ALLOC_MEM(entry, subject, subject, subject_len);
                        ^
/datasets/git/./git-compat-util.h:1154:2: note: expanded from macro 'FLEX_ALLOC_MEM'
        memcpy((void *)(x)->flexname, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/sequencer.c:6293:15: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < todo_list->nr; i++) {
                            ^
/datasets/git/sequencer.c:6301:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (is_fixup(command))
                                              ^
                                               {
/datasets/git/sequencer.c:6304:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'cur' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (cur >= 0) {
                               ^
/datasets/git/sequencer.c:6305:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                ALLOC_GROW(items, nr + 1, alloc);
                                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/sequencer.c:6311:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FREE_AND_NULL(todo_list->items);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/sequencer.c:6319:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < todo_list->nr; i++)
        ^
/datasets/git/sequencer.c:6319:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < todo_list->nr; i++)
                    ^
/datasets/git/sequencer.c:6319:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < todo_list->nr; i++)
                                           ^
                                            {
/datasets/git/sequencer.c:6329:51: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int sequencer_determine_whence(struct repository *r, enum commit_whence *whence)
                                                  ^
/datasets/git/sequencer.c:6332:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                struct object_id cherry_pick_head, rebase_head;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sequencer.c:6334:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (file_exists(git_path_seq_dir()))
                                                    ^
                                                     {
/datasets/git/sequencer.c:6339:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    oideq(&rebase_head, &cherry_pick_head))
                                                           ^
                                                            {
/datasets/git/sequencer.c:6341:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/sequencer.c:6354:8: warning: variable name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
        FILE *fp = NULL;
              ^
/datasets/git/sequencer.c:6362:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!fp)
                ^
                 {
/datasets/git/sequencer.c:6365:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (strbuf_getline(&ref, fp) != EOF) {
        ^
/datasets/git/sequencer.c:6365:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (strbuf_getline(&ref, fp) != EOF) {
               ^
/datasets/git/sequencer.c:6366:28: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
                struct string_list_item *item;
                                         ^
                                              = NULL
/datasets/git/sequencer.c:6392:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fp)
               ^
                {
/datasets/git/sequencer.c:6393:3: warning: the value returned by this function should be used [cert-err33-c]
                fclose(fp);
                ^~~~~~~~~~
/datasets/git/sequencer.c:6393:3: note: cast the expression to void to silence this warning
/datasets/git/serve.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "repository.h"
^        ~~~~~~~~~~~~~~
         "config.h"
/datasets/git/serve.c:11:12: warning: variable 'advertise_sid' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int advertise_sid = -1;
           ^
/datasets/git/serve.c:12:12: warning: variable 'client_hash_algo' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int client_hash_algo = GIT_HASH_SHA1;
           ^
/datasets/git/serve.c:14:48: warning: parameter 'r' is unused [misc-unused-parameters]
static int always_advertise(struct repository *r,
                                               ^
/datasets/git/serve.c:14:48: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/serve.c:15:23: warning: parameter 'value' is unused [misc-unused-parameters]
                            struct strbuf *value)
                                           ^
/datasets/git/serve.c:20:47: warning: parameter 'r' is unused [misc-unused-parameters]
static int agent_advertise(struct repository *r,
                                              ^
/datasets/git/serve.c:20:47: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/serve.c:23:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (value)
                  ^
                   {
/datasets/git/serve.c:28:55: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int object_format_advertise(struct repository *r,
                                                      ^
/datasets/git/serve.c:31:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (value)
                  ^
                   {
/datasets/git/serve.c:36:54: warning: parameter 'r' is unused [misc-unused-parameters]
static void object_format_receive(struct repository *r,
                                                     ^
/datasets/git/serve.c:36:54: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/serve.c:39:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!algo_name)
                       ^
                        {
/datasets/git/serve.c:43:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (client_hash_algo == GIT_HASH_UNKNOWN)
                                                 ^
                                                  {
/datasets/git/serve.c:47:52: warning: parameter 'r' is unused [misc-unused-parameters]
static int session_id_advertise(struct repository *r, struct strbuf *value)
                                                   ^
/datasets/git/serve.c:47:52: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/serve.c:50:67: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            git_config_get_bool("transfer.advertisesid", &advertise_sid))
                                                                         ^
                                                                          {
/datasets/git/serve.c:52:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!advertise_sid)
                           ^
                            {
/datasets/git/serve.c:54:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (value)
                  ^
                   {
/datasets/git/serve.c:59:51: warning: parameter 'r' is unused [misc-unused-parameters]
static void session_id_receive(struct repository *r,
                                                  ^
/datasets/git/serve.c:59:51: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/serve.c:62:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!client_sid)
                        ^
                         {
/datasets/git/serve.c:67:8: warning: accessing fields in struct 'protocol_capability' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct protocol_capability {
       ^
/datasets/git/serve.c:67:8: note: use "__attribute__((aligned(32)))" to align struct 'protocol_capability' to 32 bytes
/datasets/git/serve.c:81:38: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        int (*advertise)(struct repository *r, struct strbuf *value);
                                            ^
/datasets/git/serve.c:91:36: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        int (*command)(struct repository *r, struct packet_reader *request);
                                          ^
/datasets/git/serve.c:101:37: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        void (*receive)(struct repository *r, const char *value);
                                           ^
/datasets/git/serve.c:104:35: warning: variable 'capabilities' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct protocol_capability capabilities[] = {
                                  ^
/datasets/git/serve.c:144:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/serve.c:144:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/serve.c:149:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ARRAY_SIZE(capabilities); i++) {
        ^
/datasets/git/serve.c:150:31: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                struct protocol_capability *c = &capabilities[i];
                                            ^
/datasets/git/serve.c:175:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/serve.c:175:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/serve.c:177:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!key)
                 ^
                  {
/datasets/git/serve.c:180:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ARRAY_SIZE(capabilities); i++) {
        ^
/datasets/git/serve.c:181:31: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                struct protocol_capability *c = &capabilities[i];
                                            ^
/datasets/git/serve.c:182:15: warning: variable 'out' is not initialized [cppcoreguidelines-init-variables]
                const char *out;
                            ^
                                = NULL
/datasets/git/serve.c:183:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!skip_prefix(key, c->name, &out))
                                                     ^
                                                      {
/datasets/git/serve.c:200:14: warning: variable 'value' is not initialized [cppcoreguidelines-init-variables]
        const char *value;
                    ^
                          = NULL
/datasets/git/serve.c:201:36: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        const struct protocol_capability *c = get_capability(key, &value);
                                          ^
/datasets/git/serve.c:203:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!c || c->command || !c->advertise(the_repository, NULL))
                                                                    ^
                                                                     {
/datasets/git/serve.c:206:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (c->receive)
                       ^
                        {
/datasets/git/serve.c:213:14: warning: variable 'out' is not initialized [cppcoreguidelines-init-variables]
        const char *out;
                    ^
                        = NULL
/datasets/git/serve.c:216:15: warning: variable 'value' is not initialized [cppcoreguidelines-init-variables]
                const char *value;
                            ^
                                  = NULL
/datasets/git/serve.c:219:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*command)
                             ^
                              {
/datasets/git/serve.c:222:79: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!cmd || !cmd->advertise(the_repository, NULL) || !cmd->command || value)
                                                                                            ^
                                                                                             {
/datasets/git/serve.c:245:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                           PACKET_READ_CHOMP_NEWLINE |
                           ^
/datasets/git/./pkt-line.h:85:43: note: expanded from macro 'PACKET_READ_CHOMP_NEWLINE'
#define PACKET_READ_CHOMP_NEWLINE        (1u<<1)
                                          ^   ~
/datasets/git/serve.c:246:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                           PACKET_READ_GENTLE_ON_EOF |
                           ^
/datasets/git/./pkt-line.h:84:43: note: expanded from macro 'PACKET_READ_GENTLE_ON_EOF'
#define PACKET_READ_GENTLE_ON_EOF        (1u<<0)
                                          ^   ~
/datasets/git/serve.c:247:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                           PACKET_READ_DIE_ON_ERR_PACKET);
                           ^
/datasets/git/./pkt-line.h:86:43: note: expanded from macro 'PACKET_READ_DIE_ON_ERR_PACKET'
#define PACKET_READ_DIE_ON_ERR_PACKET    (1u<<2)
                                          ^   ~
/datasets/git/serve.c:253:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (packet_reader_peek(&reader) == PACKET_READ_EOF)
                                                           ^
                                                            {
/datasets/git/serve.c:255:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        reader.options &= ~PACKET_READ_GENTLE_ON_EOF;
        ^~~~~~~~~~~~~~
/datasets/git/serve.c:255:20: warning: narrowing conversion from constant value 4294967294 (0xFFFFFFFE) of type 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        reader.options &= ~PACKET_READ_GENTLE_ON_EOF;
                          ^
/datasets/git/serve.c:255:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        reader.options &= ~PACKET_READ_GENTLE_ON_EOF;
                           ^
/datasets/git/./pkt-line.h:84:43: note: expanded from macro 'PACKET_READ_GENTLE_ON_EOF'
#define PACKET_READ_GENTLE_ON_EOF        (1u<<0)
                                          ^   ~
/datasets/git/serve.c:257:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (state != PROCESS_REQUEST_DONE) {
        ^
/datasets/git/serve.c:263:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            receive_client_capability(reader.line))
                                                                   ^
                                                                    {
/datasets/git/serve.c:265:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/serve.c:276:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!seen_capability_or_command)
                                                        ^
                                                         {
/datasets/git/serve.c:300:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!command)
                     ^
                      {
/datasets/git/serve.c:303:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (client_hash_algo != hash_algo_by_ptr(the_repository->hash_algo))
                                                                            ^
                                                                             {
/datasets/git/serve.c:315:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!stateless_rpc)
                           ^
                            {
/datasets/git/serve.c:325:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (;;)
                ^
/datasets/git/serve.c:325:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (;;)
                        ^
                         {
/datasets/git/serve.c:326:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (process_request())
                                              ^
                                               {
/datasets/git/server-info.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "dir.h"
^        ~~~~~~~
         "commit.h"
/datasets/git/server-info.c:12:8: warning: accessing fields in struct 'update_info_ctx' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct update_info_ctx {
       ^
/datasets/git/server-info.c:12:8: note: use "__attribute__((aligned(64)))" to align struct 'update_info_ctx' to 64 bytes
/datasets/git/server-info.c:21:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(uic->old_fp);
        ^~~~~~~~~~~~~~~~~~~
/datasets/git/server-info.c:21:2: note: cast the expression to void to silence this warning
/datasets/git/server-info.c:33:10: warning: variable name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
        va_list ap;
                ^
/datasets/git/server-info.c:39:9: warning: Function 'vfprintf' is called with an uninitialized va_list argument [clang-analyzer-valist.Uninitialized]
                ret = vfprintf(uic->cur_fp, fmt, ap);
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/server-info.c:38:2: note: Taking true branch
        if (uic_is_stale(uic)) {
        ^
/datasets/git/server-info.c:39:9: note: Function 'vfprintf' is called with an uninitialized va_list argument
                ret = vfprintf(uic->cur_fp, fmt, ap);
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/server-info.c:41:11: warning: variable 'r' is not initialized [cppcoreguidelines-init-variables]
                ssize_t r;
                        ^
                          = 0
/datasets/git/server-info.c:41:11: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/server-info.c:50:7: warning: narrowing conversion from 'unsigned long' to signed type 'ssize_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                r = fread(old->buf, 1, cur->len, uic->old_fp);
                    ^
/datasets/git/server-info.c:51:24: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (r != cur->len || memcmp(old->buf, cur->buf, r))
                                     ^
                                                                   != 0
/datasets/git/server-info.c:51:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (r != cur->len || memcmp(old->buf, cur->buf, r))
                                                                   ^
                                                                    {
/datasets/git/server-info.c:54:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fwrite(cur->buf, 1, cur->len, uic->cur_fp) == cur->len)
                                                                           ^
                                                                            {
/datasets/git/server-info.c:74:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
        int fd = -1;
            ^
/datasets/git/server-info.c:75:8: warning: variable 'to_close' is not initialized [cppcoreguidelines-init-variables]
        FILE *to_close;
              ^
                       = NULL
/datasets/git/server-info.c:84:29: warning: 0666 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        fd = git_mkstemp_mode(tmp, 0666);
                                   ^
/datasets/git/server-info.c:85:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fd < 0)
                   ^
                    {
/datasets/git/server-info.c:88:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!uic.cur_fp)
                        ^
                         {
/datasets/git/server-info.c:93:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!force)
                   ^
                    {
/datasets/git/server-info.c:101:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/server-info.c:106:15: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                struct stat st;
                            ^
/datasets/git/server-info.c:114:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fstat(old_fd, &st) || (st.st_size != (size_t)new_len))
                                                                          ^
                                                                           {
/datasets/git/server-info.c:119:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fclose(to_close))
                             ^
                              {
/datasets/git/server-info.c:123:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (adjust_shared_perm(tmp) < 0)
                                                ^
                                                 {
/datasets/git/server-info.c:125:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (rename(tmp, path) < 0)
                                          ^
                                           {
/datasets/git/server-info.c:135:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (uic.cur_fp)
                               ^
                                {
/datasets/git/server-info.c:136:4: warning: the value returned by this function should be used [cert-err33-c]
                        fclose(uic.cur_fp);
                        ^~~~~~~~~~~~~~~~~~
/datasets/git/server-info.c:136:4: note: cast the expression to void to silence this warning
/datasets/git/server-info.c:137:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (fd >= 0)
                                 ^
                                  {
/datasets/git/server-info.c:142:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (uic.old_fp)
                       ^
                        {
/datasets/git/server-info.c:143:3: warning: the value returned by this function should be used [cert-err33-c]
                fclose(uic.old_fp);
                ^~~~~~~~~~~~~~~~~~
/datasets/git/server-info.c:143:3: note: cast the expression to void to silence this warning
/datasets/git/server-info.c:154:17: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
        struct object *o = parse_object(the_repository, oid);
                       ^
/datasets/git/server-info.c:155:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!o)
               ^
                {
/datasets/git/server-info.c:158:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (uic_printf(uic, "%s %s\n", oid_to_hex(oid), path) < 0)
                                                                  ^
                                                                   {
/datasets/git/server-info.c:163:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (o)
                      ^
                       {
/datasets/git/server-info.c:165:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                oid_to_hex(&o->oid), path) < 0)
                                                               ^
                                                                {
/datasets/git/server-info.c:185:15: warning: accessing fields in struct 'pack_info' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
static struct pack_info {
              ^
/datasets/git/server-info.c:185:15: note: use "__attribute__((aligned(16)))" to align struct 'pack_info' to 16 bytes
/datasets/git/server-info.c:189:5: warning: variable 'info' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} **info;
    ^
/datasets/git/server-info.c:189:5: warning: variable 'info' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/server-info.c:190:12: warning: variable 'num_pack' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int num_pack;
           ^
/datasets/git/server-info.c:194:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/server-info.c:194:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/server-info.c:195:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < num_pack; i++) {
        ^
/datasets/git/server-info.c:196:22: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct packed_git *p = info[i]->p;
                                   ^
/datasets/git/server-info.c:197:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(pack_basename(p), name))
                                                    ^
                                                     {
/datasets/git/server-info.c:208:20: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        struct pack_info *i = find_pack_by_name(packname);
                          ^
/datasets/git/server-info.c:213:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else {
        ^~~~~~
/datasets/git/server-info.c:224:8: warning: variable 'fp' is not initialized [cppcoreguidelines-init-variables]
        FILE *fp;
              ^
                 = NULL
/datasets/git/server-info.c:224:8: warning: variable name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/server-info.c:230:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!fp)
                ^
                 {
/datasets/git/server-info.c:233:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (strbuf_getline(&line, fp) != EOF) {
        ^
/datasets/git/server-info.c:233:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'line' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (strbuf_getline(&line, fp) != EOF) {
               ^
/datasets/git/server-info.c:234:15: warning: variable 'arg' is not initialized [cppcoreguidelines-init-variables]
                const char *arg;
                            ^
                                = NULL
/datasets/git/server-info.c:236:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!line.len)
                              ^
                               {
/datasets/git/server-info.c:241:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (parse_pack_def(arg, old_cnt++))
                                                           ^
                                                            {
/datasets/git/server-info.c:243:34: warning: repeated branch in conditional chain [bugprone-branch-clone]
                } else if (line.buf[0] == 'D') {
                                               ^
/datasets/git/server-info.c:246:4: note: end of the original
                } else if (line.buf[0] == 'T') {
                 ^
/datasets/git/server-info.c:246:34: note: clone 1 starts here
                } else if (line.buf[0] == 'T') {
                                               ^
/datasets/git/server-info.c:257:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(fp);
        ^~~~~~~~~~
/datasets/git/server-info.c:257:2: note: cast the expression to void to silence this warning
/datasets/git/server-info.c:261:37: warning: parameter name 'a_' is too short, expected at least 3 characters [readability-identifier-length]
static int compare_info(const void *a_, const void *b_)
                                    ^
/datasets/git/server-info.c:261:53: warning: parameter name 'b_' is too short, expected at least 3 characters [readability-identifier-length]
static int compare_info(const void *a_, const void *b_)
                                                    ^
/datasets/git/server-info.c:263:27: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        struct pack_info *const *a = a_;
                                 ^
/datasets/git/server-info.c:264:27: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        struct pack_info *const *b = b_;
                                 ^
/datasets/git/server-info.c:266:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (0 <= (*a)->old_num && 0 <= (*b)->old_num)
                                                     ^
                                                      {
/datasets/git/server-info.c:269:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (0 <= (*a)->old_num)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/server-info.c:269:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (0 <= (*a)->old_num)
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/server-info.c:272:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (0 <= (*b)->old_num)
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/server-info.c:277:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((*a)->p == (*b)->p)
                               ^
                                {
/datasets/git/server-info.c:279:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if ((*a)->p < (*b)->p)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/server-info.c:279:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if ((*a)->p < (*b)->p)
                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/server-info.c:281:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/server-info.c:287:21: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct packed_git *p;
                           ^
                             = NULL
/datasets/git/server-info.c:287:21: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/server-info.c:288:6: warning: variable 'stale' is not initialized [cppcoreguidelines-init-variables]
        int stale;
            ^
                  = 0
/datasets/git/server-info.c:289:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/server-info.c:289:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/server-info.c:292:42: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = get_all_packs(the_repository); p; p = p->next) {
                                                ^
/datasets/git/server-info.c:296:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!p->pack_local || !file_exists(p->pack_name))
                                                                 ^
                                                                  {
/datasets/git/server-info.c:300:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                ALLOC_GROW(info, num_pack, alloc);
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/server-info.c:300:3: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                ALLOC_GROW(info, num_pack, alloc);
                ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/server-info.c:306:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (infofile && !force)
                               ^
                                {
/datasets/git/server-info.c:308:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/server-info.c:311:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < num_pack; i++)
        ^
/datasets/git/server-info.c:311:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < num_pack; i++)
                    ^
/datasets/git/server-info.c:311:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < num_pack; i++)
                                      ^
                                       {
/datasets/git/server-info.c:312:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (stale)
                          ^
                           {
/datasets/git/server-info.c:316:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        QSORT(info, num_pack, compare_info);
        ^
/datasets/git/./git-compat-util.h:1304:56: note: expanded from macro 'QSORT'
#define QSORT(base, n, compar) sane_qsort((base), (n), sizeof(*(base)), compar)
                                                       ^
/datasets/git/server-info.c:317:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < num_pack; i++)
        ^
/datasets/git/server-info.c:317:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < num_pack; i++)
                    ^
/datasets/git/server-info.c:317:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < num_pack; i++)
                                      ^
                                       {
/datasets/git/server-info.c:323:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/server-info.c:323:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/server-info.c:324:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < num_pack; i++)
        ^
/datasets/git/server-info.c:324:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < num_pack; i++)
                                      ^
                                       {
/datasets/git/server-info.c:331:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/server-info.c:331:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/server-info.c:332:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < num_pack; i++) {
        ^
/datasets/git/server-info.c:333:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (uic_printf(uic, "P %s\n", pack_basename(info[i]->p)) < 0)
                                                                             ^
                                                                              {
/datasets/git/server-info.c:336:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (uic_printf(uic, "\n") < 0)
                                      ^
                                       {
/datasets/git/server-info.c:344:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/server-info.c:362:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        errs = errs | update_info_refs(force);
               ^~~~
/datasets/git/server-info.c:363:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        errs = errs | update_info_packs(force);
               ^~~~
/datasets/git/setup.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "repository.h"
^        ~~~~~~~~~~~~~~
         "chdir-notify.h"
/datasets/git/setup.c:10:12: warning: variable 'inside_git_dir' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int inside_git_dir = -1;
           ^
/datasets/git/setup.c:11:12: warning: variable 'inside_work_tree' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int inside_work_tree = -1;
           ^
/datasets/git/setup.c:12:12: warning: variable 'work_tree_config_is_bogus' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int work_tree_config_is_bogus;
           ^
/datasets/git/setup.c:18:28: warning: variable 'the_startup_info' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct startup_info the_startup_info;
                           ^
/datasets/git/setup.c:19:22: warning: variable 'startup_info' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
struct startup_info *startup_info = &the_startup_info;
                     ^
/datasets/git/setup.c:19:22: warning: variable 'startup_info' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/setup.c:20:13: warning: variable 'tmp_original_cwd' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
const char *tmp_original_cwd;
            ^
/datasets/git/setup.c:36:9: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        size_t len;
               ^
                   = 0
/datasets/git/setup.c:37:9: warning: variable 'wtlen' is not initialized [cppcoreguidelines-init-variables]
        size_t wtlen;
               ^
                     = 0
/datasets/git/setup.c:38:8: warning: variable 'path0' is not initialized [cppcoreguidelines-init-variables]
        char *path0;
              ^
                    = NULL
/datasets/git/setup.c:39:6: warning: variable 'off' is not initialized [cppcoreguidelines-init-variables]
        int off;
            ^
                = 0
/datasets/git/setup.c:43:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!work_tree)
                       ^
                        {
/datasets/git/setup.c:52:4: warning: Call to function 'memmove' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memmove_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memmove(path, path + wtlen + 1, len - wtlen);
                        ^~~~~~~
/datasets/git/setup.c:52:4: note: Call to function 'memmove' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memmove_s' in case of C11
                        memmove(path, path + wtlen + 1, len - wtlen);
                        ^~~~~~~
/datasets/git/setup.c:54:5: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                } else if (path[wtlen - 1] == '/' || path[wtlen] == '\0') {
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/setup.c:56:4: warning: Call to function 'memmove' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memmove_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memmove(path, path + wtlen, len - wtlen + 1);
                        ^~~~~~~
/datasets/git/setup.c:56:4: note: Call to function 'memmove' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memmove_s' in case of C11
                        memmove(path, path + wtlen, len - wtlen + 1);
                        ^~~~~~~
/datasets/git/setup.c:60:9: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                off = wtlen;
                      ^
/datasets/git/setup.c:66:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*path) {
        ^
/datasets/git/setup.c:66:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'path' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (*path) {
               ^
/datasets/git/setup.c:72:5: warning: Call to function 'memmove' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memmove_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                                memmove(path0, path + 1, len - (path - path0));
                                ^~~~~~~
/datasets/git/setup.c:72:5: note: Call to function 'memmove' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memmove_s' in case of C11
                                memmove(path0, path + 1, len - (path - path0));
                                ^~~~~~~
/datasets/git/setup.c:107:8: warning: variable 'sanitized' is not initialized [cppcoreguidelines-init-variables]
        char *sanitized;
              ^
                        = NULL
/datasets/git/setup.c:110:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (remaining_prefix)
                                     ^
                                      {
/datasets/git/setup.c:122:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (remaining_prefix)
                                     ^
                                      {
/datasets/git/setup.c:134:8: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        char *r = prefix_path_gently(prefix, len, NULL, path);
              ^
/datasets/git/setup.c:137:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!hint_path)
                               ^
                                {
/datasets/git/setup.c:147:21: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int len = prefix ? strlen(prefix) : 0;
                           ^
/datasets/git/setup.c:148:8: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        char *r = prefix_path_gently(prefix, len, NULL, path);
              ^
/datasets/git/setup.c:159:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/setup.c:162:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!*arg) /* ":/" is root dir, always exists */
                          ^
                           {
/datasets/git/setup.c:167:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!*arg) /* excluding everything is silly, but allowed */
                          ^
                           {
/datasets/git/setup.c:171:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prefix)
                   ^
                    {
/datasets/git/setup.c:185:61: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void NORETURN die_verify_filename(struct repository *r,
                                                            ^
/datasets/git/setup.c:190:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!diagnose_misspelt_rev)
                                   ^
                                    {
/datasets/git/setup.c:200:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(arg[0] == ':' && !isalnum(arg[1])))
                                ^
/datasets/git/./git-compat-util.h:1220:20: note: expanded from macro 'isalnum'
#define isalnum(x) sane_istest(x,GIT_ALPHA | GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/setup.c:200:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(arg[0] == ':' && !isalnum(arg[1])))
                                                 ^
                                                  {
/datasets/git/setup.c:217:14: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        const char *p;
                    ^
                      = NULL
/datasets/git/setup.c:217:14: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/setup.c:227:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = arg; *p; p++) {
        ^
/datasets/git/setup.c:227:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = arg; *p; p++) {
                      ^
/datasets/git/setup.c:230:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                } else if (is_glob_special(*p)) {
                           ^
/datasets/git/./git-compat-util.h:1224:28: note: expanded from macro 'is_glob_special'
#define is_glob_special(x) sane_istest(x,GIT_GLOB_SPECIAL)
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/setup.c:231:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (*p == '\\')
                                       ^
                                        {
/datasets/git/setup.c:233:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/setup.c:239:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (starts_with(arg, ":("))
                                   ^
                                    {
/datasets/git/setup.c:269:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*arg == '-')
                        ^
                         {
/datasets/git/setup.c:271:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (looks_like_pathspec(arg) || check_filename(prefix, arg))
                                                                    ^
                                                                     {
/datasets/git/setup.c:283:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_inside_work_tree() || is_inside_git_dir())
                                                          ^
                                                           {
/datasets/git/setup.c:285:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*arg == '-')
                        ^
                         {
/datasets/git/setup.c:287:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!check_filename(prefix, arg))
                                         ^
                                          {
/datasets/git/setup.c:294:35: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
int get_common_dir(struct strbuf *sb, const char *gitdir)
                                  ^
/datasets/git/setup.c:296:35: warning: function is not thread safe [concurrency-mt-unsafe]
        const char *git_env_common_dir = getenv(GIT_COMMON_DIR_ENVIRONMENT);
                                         ^
/datasets/git/setup.c:300:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else {
          ^~~~~~
/datasets/git/setup.c:305:41: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
int get_common_dir_noenv(struct strbuf *sb, const char *gitdir)
                                        ^
/datasets/git/setup.c:313:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strbuf_read_file(&data, path.buf, 0) <= 0)
                                                              ^
                                                               {
/datasets/git/setup.c:315:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (data.len && (data.buf[data.len - 1] == '\n' ||
                ^
/datasets/git/setup.c:315:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'data' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (data.len && (data.buf[data.len - 1] == '\n' ||
                       ^
/datasets/git/setup.c:316:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                    data.buf[data.len - 1] == '\r'))
                                                                    ^
                                                                     {
/datasets/git/setup.c:320:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!is_absolute_path(data.buf))
                                                ^
                                                 {
/datasets/git/setup.c:349:9: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        size_t len;
               ^
                   = 0
/datasets/git/setup.c:355:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (validate_headref(path.buf))
                                       ^
                                        {
/datasets/git/setup.c:363:6: warning: function is not thread safe [concurrency-mt-unsafe]
        if (getenv(DB_ENVIRONMENT)) {
            ^
/datasets/git/setup.c:364:7: warning: Null pointer passed to 1st parameter expecting 'nonnull' [clang-analyzer-core.NonNullParamChecker]
                if (access(getenv(DB_ENVIRONMENT), X_OK))
                    ^
/datasets/git/setup.c:1664:6: note: Calling 'is_git_directory'
        if (is_git_directory(suspect))
            ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/setup.c:355:6: note: Assuming the condition is false
        if (validate_headref(path.buf))
            ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/setup.c:355:2: note: Taking false branch
        if (validate_headref(path.buf))
        ^
/datasets/git/setup.c:363:6: note: Assuming the environment variable exists
        if (getenv(DB_ENVIRONMENT)) {
            ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/setup.c:363:2: note: Taking true branch
        if (getenv(DB_ENVIRONMENT)) {
        ^
/datasets/git/setup.c:364:14: note: Assuming the environment variable does not exist
                if (access(getenv(DB_ENVIRONMENT), X_OK))
                           ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/setup.c:364:7: note: Null pointer passed to 1st parameter expecting 'nonnull'
                if (access(getenv(DB_ENVIRONMENT), X_OK))
                    ^      ~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/setup.c:364:14: warning: function is not thread safe [concurrency-mt-unsafe]
                if (access(getenv(DB_ENVIRONMENT), X_OK))
                           ^
/datasets/git/setup.c:364:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (access(getenv(DB_ENVIRONMENT), X_OK))
                                                         ^
                                                          {
/datasets/git/setup.c:370:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (access(path.buf, X_OK))
                                           ^
                                            {
/datasets/git/setup.c:376:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (access(path.buf, X_OK))
                                   ^
                                    {
/datasets/git/setup.c:388:6: warning: variable 'gitfile_error' is not initialized [cppcoreguidelines-init-variables]
        int gitfile_error;
            ^
                          = 0
/datasets/git/setup.c:393:84: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (read_gitfile_gently(path->buf, &gitfile_error) || is_git_directory(path->buf))
                                                                                          ^
                                                                                           {
/datasets/git/setup.c:396:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            gitfile_error == READ_GITFILE_ERR_READ_FAILED)
                                                          ^
                                                           {
/datasets/git/setup.c:404:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (inside_git_dir < 0)
                               ^
                                {
/datasets/git/setup.c:411:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (inside_work_tree < 0)
                                 ^
                                  {
/datasets/git/setup.c:418:14: warning: variable 'work_tree' is not initialized [cppcoreguidelines-init-variables]
        const char *work_tree;
                    ^
                              = NULL
/datasets/git/setup.c:421:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (initialized)
                        ^
                         {
/datasets/git/setup.c:424:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (work_tree_config_is_bogus)
                                      ^
                                       {
/datasets/git/setup.c:428:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!work_tree || chdir_notify(work_tree))
                                                  ^
                                                   {
/datasets/git/setup.c:435:6: warning: function is not thread safe [concurrency-mt-unsafe]
        if (getenv(GIT_WORK_TREE_ENVIRONMENT))
            ^
/datasets/git/setup.c:435:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (getenv(GIT_WORK_TREE_ENVIRONMENT))
                                              ^
                                               {
/datasets/git/setup.c:436:3: warning: function is not thread safe [concurrency-mt-unsafe]
                setenv(GIT_WORK_TREE_ENVIRONMENT, ".", 1);
                ^
/datasets/git/setup.c:447:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!tmp_original_cwd)
                              ^
                               {
/datasets/git/setup.c:470:28: warning: function is not thread safe [concurrency-mt-unsafe]
                                   "realpath-failure", strerror(errno));
                                                       ^
/datasets/git/setup.c:485:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!worktree)
                      ^
                       {
/datasets/git/setup.c:495:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!*(startup_info->original_cwd + offset))
                                                            ^
                                                             {
/datasets/git/setup.c:520:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
                            {
/datasets/git/setup.c:539:8: warning: 2 adjacent parameters of 'handle_extension_v0' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                                 const char *value,
                                                 ^~~~~~~~~~~~~~~~~~
/datasets/git/setup.c:539:20: note: the first parameter in the range is 'value'
                                                 const char *value,
                                                             ^~~~~
/datasets/git/setup.c:540:20: note: the last parameter in the range is 'ext'
                                                 const char *ext,
                                                             ^~~
/datasets/git/setup.c:545:5: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                } else if (!strcmp(ext, "preciousobjects")) {
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/setup.c:562:47: warning: 3 adjacent parameters of 'handle_extension' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static enum extension_result handle_extension(const char *var,
                                              ^~~~~~~~~~~~~~~~
/datasets/git/setup.c:562:59: note: the first parameter in the range is 'var'
static enum extension_result handle_extension(const char *var,
                                                          ^~~
/datasets/git/setup.c:564:24: note: the last parameter in the range is 'ext'
                                              const char *ext,
                                                          ^~~
/datasets/git/setup.c:569:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else if (!strcmp(ext, "objectformat")) {
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/setup.c:570:7: warning: variable 'format' is not initialized [cppcoreguidelines-init-variables]
                int format;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/setup.c:572:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/setup.c:575:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (format == GIT_HASH_UNKNOWN)
                                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/setup.c:587:14: warning: variable 'ext' is not initialized [cppcoreguidelines-init-variables]
        const char *ext;
                    ^
                        = NULL
/datasets/git/setup.c:589:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strcmp(var, "core.repositoryformatversion") == 0)
                                                             ^
                                                              {
/datasets/git/setup.c:618:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/setup.c:620:6: warning: variable 'has_common' is not initialized [cppcoreguidelines-init-variables]
        int has_common;
            ^
                       = 0
/datasets/git/setup.c:632:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (candidate->version < 0)
                                   ^
                                    {
/datasets/git/setup.c:664:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (is_bare_repository_cfg == 1)
                                                        ^
                                                         {
/datasets/git/setup.c:679:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/setup.c:688:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_fmt.version >= target_version)
                                               ^
                                                {
/datasets/git/setup.c:697:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!repo_fmt.version && repo_fmt.unknown_extensions.nr)
                                                                ^
                                                                 {
/datasets/git/setup.c:712:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(format, &fresh, sizeof(fresh));
        ^~~~~~
/datasets/git/setup.c:712:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(format, &fresh, sizeof(fresh));
        ^~~~~~
/datasets/git/setup.c:719:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (format->version == -1)
                                  ^
                                   {
/datasets/git/setup.c:743:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/setup.c:743:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/setup.c:749:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < format->unknown_extensions.nr; i++)
                ^
/datasets/git/setup.c:749:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < format->unknown_extensions.nr; i++)
                                                                   ^
                                                                    {
/datasets/git/setup.c:756:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/setup.c:756:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/setup.c:763:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < format->v1_only_extensions.nr; i++)
                ^
/datasets/git/setup.c:763:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < format->v1_only_extensions.nr; i++)
                                                                   ^
                                                                    {
/datasets/git/setup.c:772:45: warning: 2 adjacent parameters of 'read_gitfile_error_die' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
void read_gitfile_error_die(int error_code, const char *path, const char *dir)
                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/setup.c:772:57: note: the first parameter in the range is 'path'
void read_gitfile_error_die(int error_code, const char *path, const char *dir)
                                                        ^~~~
/datasets/git/setup.c:772:75: note: the last parameter in the range is 'dir'
void read_gitfile_error_die(int error_code, const char *path, const char *dir)
                                                                          ^~~
/datasets/git/setup.c:808:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        const int max_file_size = 1 << 20;  /* 1MB */
                                  ^
/datasets/git/setup.c:812:14: warning: variable 'slash' is not initialized [cppcoreguidelines-init-variables]
        const char *slash;
                    ^
                          = NULL
/datasets/git/setup.c:813:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/setup.c:814:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/setup.c:814:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/setup.c:815:10: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        ssize_t len;
                ^
                    = 0
/datasets/git/setup.c:831:26: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
        fd = open(path, O_RDONLY);
                                ^
                                 | O_CLOEXEC
/datasets/git/setup.c:847:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (buf[len - 1] == '\n' || buf[len - 1] == '\r')
        ^
/datasets/git/setup.c:847:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'buf' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (buf[len - 1] == '\n' || buf[len - 1] == '\r')
               ^
/datasets/git/setup.c:847:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (buf[len - 1] == '\n' || buf[len - 1] == '\r')
                                                            ^
                                                             {
/datasets/git/setup.c:849:12: warning: 9 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (len < 9) {
                  ^
/datasets/git/setup.c:854:14: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        dir = buf + 8;
                    ^
/datasets/git/setup.c:856:33: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if (!is_absolute_path(dir) && (slash = strrchr(path, '/'))) {
                                       ^
/datasets/git/setup.c:856:33: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/setup.c:856:33: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/setup.c:859:22: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                              (int)(len - 8), buf + 8);
                                          ^
/datasets/git/setup.c:859:32: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                              (int)(len - 8), buf + 8);
                                                    ^
/datasets/git/setup.c:872:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (return_error_code)
                              ^
                               {
/datasets/git/setup.c:874:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (error_code)
                            ^
                             {
/datasets/git/setup.c:881:20: warning: function 'setup_explicit_git_dir' has cognitive complexity of 29 (threshold 25) [readability-function-cognitive-complexity]
static const char *setup_explicit_git_dir(const char *gitdirenv,
                   ^
/datasets/git/setup.c:891:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (PATH_MAX - 40 < strlen(gitdirenv))
        ^
/datasets/git/setup.c:895:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (gitfile) {
        ^
/datasets/git/setup.c:900:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!is_git_directory(gitdirenv)) {
        ^
/datasets/git/setup.c:901:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (nongit_ok) {
                ^
/datasets/git/setup.c:909:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (check_repository_format_gently(gitdirenv, repo_fmt, nongit_ok)) {
        ^
/datasets/git/setup.c:915:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (work_tree_env)
        ^
/datasets/git/setup.c:917:7: note: +1, nesting level increased to 1
        else if (is_bare_repository_cfg > 0) {
             ^
/datasets/git/setup.c:918:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (git_work_tree_cfg) {
                ^
/datasets/git/setup.c:929:7: note: +1, nesting level increased to 1
        else if (git_work_tree_cfg) { /* #6, #14 */
             ^
/datasets/git/setup.c:930:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (is_absolute_path(git_work_tree_cfg))
                ^
/datasets/git/setup.c:932:3: note: +1, nesting level increased to 2
                else {
                ^
/datasets/git/setup.c:934:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (chdir(gitdirenv))
                        ^
/datasets/git/setup.c:936:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (chdir(git_work_tree_cfg))
                        ^
/datasets/git/setup.c:939:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (chdir(cwd->buf))
                        ^
/datasets/git/setup.c:945:7: note: +1, nesting level increased to 1
        else if (!git_env_bool(GIT_IMPLICIT_WORK_TREE_ENVIRONMENT, 1)) {
             ^
/datasets/git/setup.c:951:2: note: +1, nesting level increased to 1
        else /* #2, #10 */
        ^
/datasets/git/setup.c:958:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(cwd->buf, worktree)) { /* cwd == worktree */
        ^
/datasets/git/setup.c:965:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (offset >= 0) {      /* cwd inside worktree? */
        ^
/datasets/git/setup.c:967:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (chdir(worktree))
                ^
/datasets/git/setup.c:886:30: warning: function is not thread safe [concurrency-mt-unsafe]
        const char *work_tree_env = getenv(GIT_WORK_TREE_ENVIRONMENT);
                                    ^
/datasets/git/setup.c:887:14: warning: variable 'worktree' is not initialized [cppcoreguidelines-init-variables]
        const char *worktree;
                    ^
                             = NULL
/datasets/git/setup.c:888:8: warning: variable 'gitfile' is not initialized [cppcoreguidelines-init-variables]
        char *gitfile;
              ^
                      = NULL
/datasets/git/setup.c:889:6: warning: variable 'offset' is not initialized [cppcoreguidelines-init-variables]
        int offset;
            ^
                   = 0
/datasets/git/setup.c:891:17: warning: 40 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (PATH_MAX - 40 < strlen(gitdirenv))
                       ^
/datasets/git/setup.c:891:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (PATH_MAX - 40 < strlen(gitdirenv))
                                              ^
                                               {
/datasets/git/setup.c:915:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (work_tree_env)
                          ^
                           {
/datasets/git/setup.c:930:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_absolute_path(git_work_tree_cfg))
                                                        ^
                                                         {
/datasets/git/setup.c:933:10: warning: variable 'core_worktree' is not initialized [cppcoreguidelines-init-variables]
                        char *core_worktree;
                              ^
                                            = NULL
/datasets/git/setup.c:934:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (chdir(gitdirenv))
                                             ^
                                              {
/datasets/git/setup.c:936:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (chdir(git_work_tree_cfg))
                                                     ^
                                                      {
/datasets/git/setup.c:939:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (chdir(cwd->buf))
                                            ^
                                             {
/datasets/git/setup.c:951:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else /* #2, #10 */
            ^
             {
/datasets/git/setup.c:967:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (chdir(worktree))
                                    ^
                                     {
/datasets/git/setup.c:985:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (check_repository_format_gently(gitdir, repo_fmt, nongit_ok))
                                                                        ^
                                                                         {
/datasets/git/setup.c:989:6: warning: function is not thread safe [concurrency-mt-unsafe]
        if (getenv(GIT_WORK_TREE_ENVIRONMENT) || git_work_tree_cfg) {
            ^
/datasets/git/setup.c:991:15: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
                const char *ret;
                            ^
                                = NULL
/datasets/git/setup.c:993:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (offset != cwd->len && !is_absolute_path(gitdir))
                                                                    ^
                                                                     {
/datasets/git/setup.c:995:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (chdir(cwd->buf))
                                    ^
                                     {
/datasets/git/setup.c:1005:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (chdir(cwd->buf))
                                    ^
                                     {
/datasets/git/setup.c:1012:6: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (strcmp(gitdir, DEFAULT_GIT_DIR_ENVIRONMENT))
            ^
                                                        != 0
/datasets/git/setup.c:1012:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strcmp(gitdir, DEFAULT_GIT_DIR_ENVIRONMENT))
                                                        ^
                                                         {
/datasets/git/setup.c:1016:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (offset >= cwd->len)
                               ^
                                {
/datasets/git/setup.c:1020:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (offset != offset_1st_component(cwd->buf))
                                                     ^
                                                      {
/datasets/git/setup.c:1032:6: warning: variable 'root_len' is not initialized [cppcoreguidelines-init-variables]
        int root_len;
            ^
                     = 0
/datasets/git/setup.c:1034:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (check_repository_format_gently(".", repo_fmt, nongit_ok))
                                                                     ^
                                                                      {
/datasets/git/setup.c:1037:2: warning: function is not thread safe [concurrency-mt-unsafe]
        setenv(GIT_IMPLICIT_WORK_TREE_ENVIRONMENT, "0", 1);
        ^
/datasets/git/setup.c:1040:6: warning: function is not thread safe [concurrency-mt-unsafe]
        if (getenv(GIT_WORK_TREE_ENVIRONMENT) || git_work_tree_cfg) {
            ^
/datasets/git/setup.c:1044:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (chdir(cwd->buf))
                                    ^
                                     {
/datasets/git/setup.c:1052:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (chdir(cwd->buf))
                                    ^
                                     {
/datasets/git/setup.c:1058:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/setup.c:1091:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else if (!is_absolute_path(ceil)) {
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/setup.c:1107:8: warning: accessing fields in struct 'safe_directory_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct safe_directory_data {
       ^
/datasets/git/setup.c:1107:8: note: use "__attribute__((aligned(16)))" to align struct 'safe_directory_data' to 16 bytes
/datasets/git/setup.c:1112:72: warning: parameter name 'd' is too short, expected at least 3 characters [readability-identifier-length]
static int safe_directory_cb(const char *key, const char *value, void *d)
                                                                       ^
/datasets/git/setup.c:1116:6: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (strcmp(key, "safe.directory"))
            ^
                                          != 0
/datasets/git/setup.c:1116:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strcmp(key, "safe.directory"))
                                          ^
                                           {
/datasets/git/setup.c:1127:67: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !fspathcmp(data->path, interpolated ? interpolated : value))
                                                                                ^
                                                                                 {
/datasets/git/setup.c:1155:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            (!gitdir || is_path_owned_by_current_user(gitdir, report)))
                                                                       ^
                                                                        {
/datasets/git/setup.c:1168:33: warning: 2 adjacent parameters of 'allowed_bare_repo_cb' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int allowed_bare_repo_cb(const char *key, const char *value, void *d)
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/setup.c:1168:45: note: the first parameter in the range is 'key'
static int allowed_bare_repo_cb(const char *key, const char *value, void *d)
                                            ^~~
/datasets/git/setup.c:1168:62: note: the last parameter in the range is 'value'
static int allowed_bare_repo_cb(const char *key, const char *value, void *d)
                                                             ^~~~~
/datasets/git/setup.c:1168:75: warning: parameter name 'd' is too short, expected at least 3 characters [readability-identifier-length]
static int allowed_bare_repo_cb(const char *key, const char *value, void *d)
                                                                          ^
/datasets/git/setup.c:1172:6: warning: function 'strcasecmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (strcasecmp(key, "safe.bareRepository"))
            ^
                                                   != 0
/datasets/git/setup.c:1172:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strcasecmp(key, "safe.bareRepository"))
                                                   ^
                                                    {
/datasets/git/setup.c:1234:30: warning: function 'setup_git_directory_gently_1' has cognitive complexity of 52 (threshold 25) [readability-function-cognitive-complexity]
static enum discovery_result setup_git_directory_gently_1(struct strbuf *dir,
                             ^
/datasets/git/setup.c:1252:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (gitdirenv) {
        ^
/datasets/git/setup.c:1257:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (env_ceiling_dirs) {
        ^
/datasets/git/setup.c:1267:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ceil_offset < 0)
        ^
/datasets/git/setup.c:1270:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (min_offset && min_offset == dir->len &&
        ^
/datasets/git/setup.c:1270:43: note: +1
        if (min_offset && min_offset == dir->len &&
                                                 ^
/datasets/git/setup.c:1288:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (one_filesystem)
        ^
/datasets/git/setup.c:1290:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (;;) {
        ^
/datasets/git/setup.c:1295:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (offset > min_offset)
                ^
/datasets/git/setup.c:1298:58: note: +2, including nesting penalty of 1, nesting level increased to 2
                gitdirenv = read_gitfile_gently(dir->buf, die_on_error ?
                                                                       ^
/datasets/git/setup.c:1300:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!gitdirenv) {
                ^
/datasets/git/setup.c:1301:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (die_on_error ||
                        ^
/datasets/git/setup.c:1301:21: note: +1
                        if (die_on_error ||
                                         ^
/datasets/git/setup.c:1304:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (is_git_directory(dir->buf)) {
                                ^
/datasets/git/setup.c:1308:11: note: +1, nesting level increased to 3
                        } else if (error_code != READ_GITFILE_ERR_STAT_FAILED)
                               ^
/datasets/git/setup.c:1310:5: note: +1, nesting level increased to 2
                } else
                  ^
/datasets/git/setup.c:1319:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (gitdirenv) {
                ^
/datasets/git/setup.c:1322:17: note: +3, including nesting penalty of 2, nesting level increased to 3
                                gitdir_path ? gitdir_path : gitdirenv;
                                            ^
/datasets/git/setup.c:1324:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ensure_valid_ownership(gitfile, dir->buf,
                        ^
/datasets/git/setup.c:1328:6: note: +1, nesting level increased to 3
                        } else
                          ^
/datasets/git/setup.c:1347:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (is_git_directory(dir->buf)) {
                ^
/datasets/git/setup.c:1348:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (get_allowed_bare_repo() == ALLOWED_BARE_REPO_EXPLICIT)
                        ^
/datasets/git/setup.c:1350:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!ensure_valid_ownership(NULL, NULL, dir->buf, report))
                        ^
/datasets/git/setup.c:1356:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (offset <= min_offset)
                ^
/datasets/git/setup.c:1359:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (--offset > ceil_offset && !is_dir_sep(dir->buf[offset]))
                ^
/datasets/git/setup.c:1359:33: note: +1
                while (--offset > ceil_offset && !is_dir_sep(dir->buf[offset]))
                                              ^
/datasets/git/setup.c:1361:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (offset <= ceil_offset)
                ^
/datasets/git/setup.c:1364:42: note: +2, including nesting penalty of 1, nesting level increased to 2
                strbuf_setlen(dir, offset > min_offset ?  offset : min_offset);
                                                       ^
/datasets/git/setup.c:1365:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (one_filesystem &&
                ^
/datasets/git/setup.c:1365:22: note: +1
                if (one_filesystem &&
                                   ^
/datasets/git/setup.c:1235:10: warning: 2 adjacent parameters of 'setup_git_directory_gently_1' of similar type ('struct strbuf *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                                          struct strbuf *gitdir,
                                                          ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/setup.c:1235:25: note: the first parameter in the range is 'gitdir'
                                                          struct strbuf *gitdir,
                                                                         ^~~~~~
/datasets/git/setup.c:1236:25: note: the last parameter in the range is 'report'
                                                          struct strbuf *report,
                                                                         ^~~~~~
/datasets/git/setup.c:1239:33: warning: function is not thread safe [concurrency-mt-unsafe]
        const char *env_ceiling_dirs = getenv(CEILING_DIRECTORIES_ENVIRONMENT);
                                       ^
/datasets/git/setup.c:1241:14: warning: variable 'gitdirenv' is not initialized [cppcoreguidelines-init-variables]
        const char *gitdirenv;
                    ^
                              = NULL
/datasets/git/setup.c:1242:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int ceil_offset = -1, min_offset = offset_1st_component(dir->buf);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/setup.c:1251:14: warning: function is not thread safe [concurrency-mt-unsafe]
        gitdirenv = getenv(GIT_DIR_ENVIRONMENT);
                    ^
/datasets/git/setup.c:1267:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ceil_offset < 0)
                            ^
                             {
/datasets/git/setup.c:1288:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (one_filesystem)
                           ^
                            {
/datasets/git/setup.c:1291:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int offset = dir->len, error_code = 0;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/setup.c:1291:16: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int offset = dir->len, error_code = 0;
                             ^
/datasets/git/setup.c:1295:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (offset > min_offset)
                                        ^
                                         {
/datasets/git/setup.c:1308:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        } else if (error_code != READ_GITFILE_ERR_STAT_FAILED)
                                                                              ^
                                                                               {
/datasets/git/setup.c:1310:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/setup.c:1320:26: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
                        enum discovery_result ret;
                                              ^
/datasets/git/setup.c:1328:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        } else
                              ^
                               {
/datasets/git/setup.c:1348:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (get_allowed_bare_repo() == ALLOWED_BARE_REPO_EXPLICIT)
                                                                                  ^
                                                                                   {
/datasets/git/setup.c:1350:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!ensure_valid_ownership(NULL, NULL, dir->buf, report))
                                                                                  ^
                                                                                   {
/datasets/git/setup.c:1356:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (offset <= min_offset)
                                         ^
                                          {
/datasets/git/setup.c:1359:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (--offset > ceil_offset && !is_dir_sep(dir->buf[offset]))
                ^
/datasets/git/setup.c:1359:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'offset' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (--offset > ceil_offset && !is_dir_sep(dir->buf[offset]))
                       ^
/datasets/git/setup.c:1359:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (--offset > ceil_offset && !is_dir_sep(dir->buf[offset]))
                                                                               ^
                                                                                {
/datasets/git/setup.c:1361:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (offset <= ceil_offset)
                                          ^
                                           {
/datasets/git/setup.c:1366:67: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    current_device != get_device_or_die(dir->buf, NULL, offset))
                                                                                ^
                                                                                 {
/datasets/git/setup.c:1374:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct strbuf dir = STRBUF_INIT, err = STRBUF_INIT;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/setup.c:1375:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t gitdir_offset = gitdir->len, cwd_len;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/setup.c:1375:38: warning: variable 'cwd_len' is not initialized [cppcoreguidelines-init-variables]
        size_t gitdir_offset = gitdir->len, cwd_len;
                                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/setup.c:1379:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strbuf_getcwd(&dir))
                                ^
                                 {
/datasets/git/setup.c:1394:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(".", gitdir->buf + gitdir_offset))
                                                              ^
                                                               {
/datasets/git/setup.c:1396:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/setup.c:1427:13: warning: function 'setup_git_directory_gently' has cognitive complexity of 31 (threshold 25) [readability-function-cognitive-complexity]
const char *setup_git_directory_gently(int *nongit_ok)
            ^
/datasets/git/setup.c:1448:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (nongit_ok)
        ^
/datasets/git/setup.c:1451:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (strbuf_getcwd(&cwd))
        ^
/datasets/git/setup.c:1455:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        switch (setup_git_directory_gently_1(&dir, &gitdir, &report, 1)) {
        ^
/datasets/git/setup.c:1460:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (dir.len < cwd.len && chdir(dir.buf))
                ^
/datasets/git/setup.c:1460:25: note: +1
                if (dir.len < cwd.len && chdir(dir.buf))
                                      ^
/datasets/git/setup.c:1466:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (dir.len < cwd.len && chdir(dir.buf))
                ^
/datasets/git/setup.c:1466:25: note: +1
                if (dir.len < cwd.len && chdir(dir.buf))
                                      ^
/datasets/git/setup.c:1471:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!nongit_ok)
                ^
/datasets/git/setup.c:1477:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!nongit_ok)
                ^
/datasets/git/setup.c:1484:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!nongit_ok) {
                ^
/datasets/git/setup.c:1499:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!nongit_ok) {
                ^
/datasets/git/setup.c:1527:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (nongit_ok && *nongit_ok)
        ^
/datasets/git/setup.c:1527:16: note: +1
        if (nongit_ok && *nongit_ok)
                      ^
/datasets/git/setup.c:1529:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/setup.c:1543:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (/* GIT_DIR_EXPLICIT, GIT_DIR_DISCOVERED, GIT_DIR_BARE */
        ^
/datasets/git/setup.c:1544:36: note: +1
            startup_info->have_repository ||
                                          ^
/datasets/git/setup.c:1547:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!the_repository->gitdir) {
                ^
/datasets/git/setup.c:1549:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!gitdir)
                        ^
/datasets/git/setup.c:1553:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (startup_info->have_repository) {
                ^
/datasets/git/setup.c:1568:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (prefix) {
        ^
/datasets/git/setup.c:1572:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/setup.c:1430:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct strbuf dir = STRBUF_INIT, gitdir = STRBUF_INIT, report = STRBUF_INIT;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/setup.c:1448:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (nongit_ok)
                      ^
                       {
/datasets/git/setup.c:1451:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strbuf_getcwd(&cwd))
                                ^
                                 {
/datasets/git/setup.c:1460:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (dir.len < cwd.len && chdir(dir.buf))
                                                        ^
                                                         {
/datasets/git/setup.c:1462:55: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                prefix = setup_discovered_git_dir(gitdir.buf, &cwd, dir.len,
                                                                    ^
/datasets/git/setup.c:1466:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (dir.len < cwd.len && chdir(dir.buf))
                                                        ^
                                                         {
/datasets/git/setup.c:1468:37: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                prefix = setup_bare_git_dir(&cwd, dir.len, &repo_fmt, nongit_ok);
                                                  ^
/datasets/git/setup.c:1471:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!nongit_ok)
                               ^
                                {
/datasets/git/setup.c:1477:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!nongit_ok)
                               ^
                                {
/datasets/git/setup.c:1527:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (nongit_ok && *nongit_ok)
                                    ^
                                     {
/datasets/git/setup.c:1529:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/setup.c:1546:6: warning: function is not thread safe [concurrency-mt-unsafe]
            getenv(GIT_DIR_ENVIRONMENT)) {
            ^
/datasets/git/setup.c:1548:25: warning: function is not thread safe [concurrency-mt-unsafe]
                        const char *gitdir = getenv(GIT_DIR_ENVIRONMENT);
                                             ^
/datasets/git/setup.c:1549:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!gitdir)
                                    ^
                                     {
/datasets/git/setup.c:1571:3: warning: function is not thread safe [concurrency-mt-unsafe]
                setenv(GIT_PREFIX_ENVIRONMENT, prefix, 1);
                ^
/datasets/git/setup.c:1574:3: warning: function is not thread safe [concurrency-mt-unsafe]
                setenv(GIT_PREFIX_ENVIRONMENT, "", 1);
                ^
/datasets/git/setup.c:1589:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/setup.c:1589:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/setup.c:1590:8: warning: variable 'endptr' is not initialized [cppcoreguidelines-init-variables]
        char *endptr;
              ^
                     = NULL
/datasets/git/setup.c:1592:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!value)
                   ^
                    {
/datasets/git/setup.c:1595:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(value, "umask"))
                                    ^
                                     {
/datasets/git/setup.c:1597:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(value, "group"))
                                    ^
                                     {
/datasets/git/setup.c:1601:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !strcmp(value, "everybody"))
                                        ^
                                         {
/datasets/git/setup.c:1605:6: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        i = strtol(value, &endptr, 8);
            ^
/datasets/git/setup.c:1605:29: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        i = strtol(value, &endptr, 8);
                                   ^
/datasets/git/setup.c:1608:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*endptr != 0)
                         ^
                          {
/datasets/git/setup.c:1615:2: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
        switch (i) {
        ^
/datasets/git/setup.c:1626:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((i & 0600) != 0600)
             ^
/datasets/git/setup.c:1626:11: warning: 0600 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if ((i & 0600) != 0600)
                 ^
/datasets/git/setup.c:1626:20: warning: 0600 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if ((i & 0600) != 0600)
                          ^
/datasets/git/setup.c:1626:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((i & 0600) != 0600)
                               ^
                                {
/datasets/git/setup.c:1635:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return -(i & 0666);
                 ^
/datasets/git/setup.c:1635:15: warning: 0666 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        return -(i & 0666);
                     ^
/datasets/git/setup.c:1641:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!fmt)
                 ^
                  {
/datasets/git/setup.c:1664:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_git_directory(suspect))
                                      ^
                                       {
/datasets/git/setup.c:1672:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
        int fd = xopen("/dev/null", O_RDWR);
            ^
/datasets/git/setup.c:1673:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (fd < 2)
        ^
/datasets/git/setup.c:1673:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'fd' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (fd < 2)
               ^
/datasets/git/setup.c:1673:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (fd < 2)
                      ^
                       {
/datasets/git/setup.c:1675:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fd > 2)
                   ^
                    {
/datasets/git/setup.c:1691:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        exit(0);
                        ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/setup.c:1693:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (setsid() == -1)
                           ^
                            {
/datasets/git/sha1dc/sha1.c:137:3: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        {x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); x = (x << 16) | (x >> 16);}
         ^
         ()
/datasets/git/sha1dc/sha1.c:137:9: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        {x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); x = (x << 16) | (x >> 16);}
               ^
               ()
/datasets/git/sha1dc/sha1.c:137:35: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        {x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); x = (x << 16) | (x >> 16);}
                                         ^
                                         ()
/datasets/git/sha1dc/sha1.c:137:56: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        {x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); x = (x << 16) | (x >> 16);}
                                                              ^
                                                              ()
/datasets/git/sha1dc/sha1.c:137:61: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        {x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); x = (x << 16) | (x >> 16);}
                                                                   ^
                                                                   ()
/datasets/git/sha1dc/sha1.c:137:73: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        {x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); x = (x << 16) | (x >> 16);}
                                                                               ^
                                                                               ()
/datasets/git/sha1dc/sha1.c:139:38: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                                     ^
                                     ()
/datasets/git/sha1dc/sha1.c:139:40: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                                       ^
                                       ()
/datasets/git/sha1dc/sha1.c:139:49: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                                                ^
                                                ()
/datasets/git/sha1dc/sha1.c:139:51: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                                                  ^
                                                  ()
/datasets/git/sha1dc/sha1.c:139:60: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                                                           ^
                                                           ()
/datasets/git/sha1dc/sha1.c:139:62: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                                                             ^
                                                             ()
/datasets/git/sha1dc/sha1.c:139:72: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                                                                       ^
                                                                       ()
/datasets/git/sha1dc/sha1.c:139:74: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                                                                         ^
                                                                         ()
/datasets/git/sha1dc/sha1.c:144:35: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        #define sha1_load(m, t, temp)  { temp = m[t]; sha1_bswap32(temp); }
                                         ^
                                         (   )
/datasets/git/sha1dc/sha1.c:144:42: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        #define sha1_load(m, t, temp)  { temp = m[t]; sha1_bswap32(temp); }
                                                ^
                                                ()
/datasets/git/sha1dc/sha1.c:147:52: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
#define sha1_store(W, t, x)     *(volatile uint32_t *)&W[t] = x
                                                       ^
                                                       ()
/datasets/git/sha1dc/sha1.c:155:4: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        { e += rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999 + m[t]; b = rotate_left(b, 30); }
          ^
          ()
/datasets/git/sha1dc/sha1.c:155:59: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        { e += rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999 + m[t]; b = rotate_left(b, 30); }
                                                                 ^
                                                                 ()
/datasets/git/sha1dc/sha1.c:155:65: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        { e += rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999 + m[t]; b = rotate_left(b, 30); }
                                                                       ^
                                                                       ()
/datasets/git/sha1dc/sha1.c:157:4: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        { e += rotate_left(a, 5) + sha1_f2(b,c,d) + 0x6ED9EBA1 + m[t]; b = rotate_left(b, 30); }
          ^
          ()
/datasets/git/sha1dc/sha1.c:157:59: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        { e += rotate_left(a, 5) + sha1_f2(b,c,d) + 0x6ED9EBA1 + m[t]; b = rotate_left(b, 30); }
                                                                 ^
                                                                 ()
/datasets/git/sha1dc/sha1.c:157:65: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        { e += rotate_left(a, 5) + sha1_f2(b,c,d) + 0x6ED9EBA1 + m[t]; b = rotate_left(b, 30); }
                                                                       ^
                                                                       ()
/datasets/git/sha1dc/sha1.c:159:4: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        { e += rotate_left(a, 5) + sha1_f3(b,c,d) + 0x8F1BBCDC + m[t]; b = rotate_left(b, 30); }
          ^
          ()
/datasets/git/sha1dc/sha1.c:159:59: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        { e += rotate_left(a, 5) + sha1_f3(b,c,d) + 0x8F1BBCDC + m[t]; b = rotate_left(b, 30); }
                                                                 ^
                                                                 ()
/datasets/git/sha1dc/sha1.c:159:65: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        { e += rotate_left(a, 5) + sha1_f3(b,c,d) + 0x8F1BBCDC + m[t]; b = rotate_left(b, 30); }
                                                                       ^
                                                                       ()
/datasets/git/sha1dc/sha1.c:161:4: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        { e += rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6 + m[t]; b = rotate_left(b, 30); }
          ^
          ()
/datasets/git/sha1dc/sha1.c:161:59: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        { e += rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6 + m[t]; b = rotate_left(b, 30); }
                                                                 ^
                                                                 ()
/datasets/git/sha1dc/sha1.c:161:65: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        { e += rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6 + m[t]; b = rotate_left(b, 30); }
                                                                       ^
                                                                       ()
/datasets/git/sha1dc/sha1.c:164:4: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        { b = rotate_right(b, 30); e -= rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999 + m[t]; }
          ^
          ()
/datasets/git/sha1dc/sha1.c:164:29: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        { b = rotate_right(b, 30); e -= rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999 + m[t]; }
                                   ^
                                   ()
/datasets/git/sha1dc/sha1.c:164:84: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        { b = rotate_right(b, 30); e -= rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999 + m[t]; }
                                                                                          ^
                                                                                          ()
/datasets/git/sha1dc/sha1.c:166:4: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        { b = rotate_right(b, 30); e -= rotate_left(a, 5) + sha1_f2(b,c,d) + 0x6ED9EBA1 + m[t]; }
          ^
          ()
/datasets/git/sha1dc/sha1.c:166:29: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        { b = rotate_right(b, 30); e -= rotate_left(a, 5) + sha1_f2(b,c,d) + 0x6ED9EBA1 + m[t]; }
                                   ^
                                   ()
/datasets/git/sha1dc/sha1.c:166:84: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        { b = rotate_right(b, 30); e -= rotate_left(a, 5) + sha1_f2(b,c,d) + 0x6ED9EBA1 + m[t]; }
                                                                                          ^
                                                                                          ()
/datasets/git/sha1dc/sha1.c:168:4: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        { b = rotate_right(b, 30); e -= rotate_left(a, 5) + sha1_f3(b,c,d) + 0x8F1BBCDC + m[t]; }
          ^
          ()
/datasets/git/sha1dc/sha1.c:168:29: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        { b = rotate_right(b, 30); e -= rotate_left(a, 5) + sha1_f3(b,c,d) + 0x8F1BBCDC + m[t]; }
                                   ^
                                   ()
/datasets/git/sha1dc/sha1.c:168:84: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        { b = rotate_right(b, 30); e -= rotate_left(a, 5) + sha1_f3(b,c,d) + 0x8F1BBCDC + m[t]; }
                                                                                          ^
                                                                                          ()
/datasets/git/sha1dc/sha1.c:170:4: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        { b = rotate_right(b, 30); e -= rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6 + m[t]; }
          ^
          ()
/datasets/git/sha1dc/sha1.c:170:29: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        { b = rotate_right(b, 30); e -= rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6 + m[t]; }
                                   ^
                                   ()
/datasets/git/sha1dc/sha1.c:170:84: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        { b = rotate_right(b, 30); e -= rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6 + m[t]; }
                                                                                          ^
                                                                                          ()
/datasets/git/sha1dc/sha1.c:173:50: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        {sha1_load(m, t, temp); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999; b = rotate_left(b, 30);}
                                                        ^
                                                        ()
/datasets/git/sha1dc/sha1.c:173:55: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        {sha1_load(m, t, temp); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999; b = rotate_left(b, 30);}
                                                             ^
                                                             (   )
/datasets/git/sha1dc/sha1.c:173:111: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        {sha1_load(m, t, temp); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999; b = rotate_left(b, 30);}
                                                                                                                     ^
                                                                                                                     ()
/datasets/git/sha1dc/sha1.c:176:3: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999; b = rotate_left(b, 30); }
         ^
         (   )
/datasets/git/sha1dc/sha1.c:176:50: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999; b = rotate_left(b, 30); }
                                                        ^
                                                        ()
/datasets/git/sha1dc/sha1.c:176:55: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999; b = rotate_left(b, 30); }
                                                             ^
                                                             (   )
/datasets/git/sha1dc/sha1.c:176:111: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999; b = rotate_left(b, 30); }
                                                                                                                     ^
                                                                                                                     ()
/datasets/git/sha1dc/sha1.c:179:3: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f2(b,c,d) + 0x6ED9EBA1; b = rotate_left(b, 30); }
         ^
         (   )
/datasets/git/sha1dc/sha1.c:179:50: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f2(b,c,d) + 0x6ED9EBA1; b = rotate_left(b, 30); }
                                                        ^
                                                        ()
/datasets/git/sha1dc/sha1.c:179:55: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f2(b,c,d) + 0x6ED9EBA1; b = rotate_left(b, 30); }
                                                             ^
                                                             (   )
/datasets/git/sha1dc/sha1.c:179:111: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f2(b,c,d) + 0x6ED9EBA1; b = rotate_left(b, 30); }
                                                                                                                     ^
                                                                                                                     ()
/datasets/git/sha1dc/sha1.c:182:3: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f3(b,c,d) + 0x8F1BBCDC; b = rotate_left(b, 30); }
         ^
         (   )
/datasets/git/sha1dc/sha1.c:182:50: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f3(b,c,d) + 0x8F1BBCDC; b = rotate_left(b, 30); }
                                                        ^
                                                        ()
/datasets/git/sha1dc/sha1.c:182:55: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f3(b,c,d) + 0x8F1BBCDC; b = rotate_left(b, 30); }
                                                             ^
                                                             (   )
/datasets/git/sha1dc/sha1.c:182:111: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f3(b,c,d) + 0x8F1BBCDC; b = rotate_left(b, 30); }
                                                                                                                     ^
                                                                                                                     ()
/datasets/git/sha1dc/sha1.c:185:3: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6; b = rotate_left(b, 30); }
         ^
         (   )
/datasets/git/sha1dc/sha1.c:185:50: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6; b = rotate_left(b, 30); }
                                                        ^
                                                        ()
/datasets/git/sha1dc/sha1.c:185:55: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6; b = rotate_left(b, 30); }
                                                             ^
                                                             (   )
/datasets/git/sha1dc/sha1.c:185:111: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6; b = rotate_left(b, 30); }
                                                                                                                     ^
                                                                                                                     ()
/datasets/git/sha1dc/sha1.c:292:45: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
static void sha1_compression_W(uint32_t ihv[5], const uint32_t W[80])
                                            ^
/datasets/git/sha1dc/sha1.c:292:64: warning: parameter name 'W' is too short, expected at least 3 characters [readability-identifier-length]
static void sha1_compression_W(uint32_t ihv[5], const uint32_t W[80])
                                                               ^
/datasets/git/sha1dc/sha1.c:292:66: warning: 80 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
static void sha1_compression_W(uint32_t ihv[5], const uint32_t W[80])
                                                                 ^
/datasets/git/sha1dc/sha1.c:294:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        uint32_t a = ihv[0], b = ihv[1], c = ihv[2], d = ihv[3], e = ihv[4];
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:294:11: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        uint32_t a = ihv[0], b = ihv[1], c = ihv[2], d = ihv[3], e = ihv[4];
                 ^
/datasets/git/sha1dc/sha1.c:294:23: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        uint32_t a = ihv[0], b = ihv[1], c = ihv[2], d = ihv[3], e = ihv[4];
                             ^
/datasets/git/sha1dc/sha1.c:294:35: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        uint32_t a = ihv[0], b = ihv[1], c = ihv[2], d = ihv[3], e = ihv[4];
                                         ^
/datasets/git/sha1dc/sha1.c:294:47: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
        uint32_t a = ihv[0], b = ihv[1], c = ihv[2], d = ihv[3], e = ihv[4];
                                                     ^
/datasets/git/sha1dc/sha1.c:294:59: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
        uint32_t a = ihv[0], b = ihv[1], c = ihv[2], d = ihv[3], e = ihv[4];
                                                                 ^
/datasets/git/sha1dc/sha1.c:296:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND1_STEP(a, b, c, d, e, W, 0);
        ^
/datasets/git/sha1dc/sha1.c:155:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND1_STEP'
        { e += rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:297:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND1_STEP(e, a, b, c, d, W, 1);
        ^
/datasets/git/sha1dc/sha1.c:155:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND1_STEP'
        { e += rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:298:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND1_STEP(d, e, a, b, c, W, 2);
        ^
/datasets/git/sha1dc/sha1.c:155:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND1_STEP'
        { e += rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:299:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND1_STEP(c, d, e, a, b, W, 3);
        ^
/datasets/git/sha1dc/sha1.c:155:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND1_STEP'
        { e += rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:300:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND1_STEP(b, c, d, e, a, W, 4);
        ^
/datasets/git/sha1dc/sha1.c:155:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND1_STEP'
        { e += rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:301:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND1_STEP(a, b, c, d, e, W, 5);
        ^
/datasets/git/sha1dc/sha1.c:155:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND1_STEP'
        { e += rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:302:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND1_STEP(e, a, b, c, d, W, 6);
        ^
/datasets/git/sha1dc/sha1.c:155:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND1_STEP'
        { e += rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:303:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND1_STEP(d, e, a, b, c, W, 7);
        ^
/datasets/git/sha1dc/sha1.c:155:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND1_STEP'
        { e += rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:304:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND1_STEP(c, d, e, a, b, W, 8);
        ^
/datasets/git/sha1dc/sha1.c:155:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND1_STEP'
        { e += rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:305:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND1_STEP(b, c, d, e, a, W, 9);
        ^
/datasets/git/sha1dc/sha1.c:155:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND1_STEP'
        { e += rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:306:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND1_STEP(a, b, c, d, e, W, 10);
        ^
/datasets/git/sha1dc/sha1.c:155:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND1_STEP'
        { e += rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:307:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND1_STEP(e, a, b, c, d, W, 11);
        ^
/datasets/git/sha1dc/sha1.c:155:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND1_STEP'
        { e += rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:308:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND1_STEP(d, e, a, b, c, W, 12);
        ^
/datasets/git/sha1dc/sha1.c:155:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND1_STEP'
        { e += rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:309:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND1_STEP(c, d, e, a, b, W, 13);
        ^
/datasets/git/sha1dc/sha1.c:155:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND1_STEP'
        { e += rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:310:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND1_STEP(b, c, d, e, a, W, 14);
        ^
/datasets/git/sha1dc/sha1.c:155:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND1_STEP'
        { e += rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:311:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND1_STEP(a, b, c, d, e, W, 15);
        ^
/datasets/git/sha1dc/sha1.c:155:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND1_STEP'
        { e += rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:312:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND1_STEP(e, a, b, c, d, W, 16);
        ^
/datasets/git/sha1dc/sha1.c:155:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND1_STEP'
        { e += rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:313:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND1_STEP(d, e, a, b, c, W, 17);
        ^
/datasets/git/sha1dc/sha1.c:155:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND1_STEP'
        { e += rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:314:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND1_STEP(c, d, e, a, b, W, 18);
        ^
/datasets/git/sha1dc/sha1.c:155:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND1_STEP'
        { e += rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:315:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND1_STEP(b, c, d, e, a, W, 19);
        ^
/datasets/git/sha1dc/sha1.c:155:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND1_STEP'
        { e += rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:317:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND2_STEP(a, b, c, d, e, W, 20);
        ^
/datasets/git/sha1dc/sha1.c:157:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND2_STEP'
        { e += rotate_left(a, 5) + sha1_f2(b,c,d) + 0x6ED9EBA1 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:318:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND2_STEP(e, a, b, c, d, W, 21);
        ^
/datasets/git/sha1dc/sha1.c:157:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND2_STEP'
        { e += rotate_left(a, 5) + sha1_f2(b,c,d) + 0x6ED9EBA1 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:319:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND2_STEP(d, e, a, b, c, W, 22);
        ^
/datasets/git/sha1dc/sha1.c:157:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND2_STEP'
        { e += rotate_left(a, 5) + sha1_f2(b,c,d) + 0x6ED9EBA1 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:320:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND2_STEP(c, d, e, a, b, W, 23);
        ^
/datasets/git/sha1dc/sha1.c:157:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND2_STEP'
        { e += rotate_left(a, 5) + sha1_f2(b,c,d) + 0x6ED9EBA1 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:321:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND2_STEP(b, c, d, e, a, W, 24);
        ^
/datasets/git/sha1dc/sha1.c:157:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND2_STEP'
        { e += rotate_left(a, 5) + sha1_f2(b,c,d) + 0x6ED9EBA1 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:322:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND2_STEP(a, b, c, d, e, W, 25);
        ^
/datasets/git/sha1dc/sha1.c:157:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND2_STEP'
        { e += rotate_left(a, 5) + sha1_f2(b,c,d) + 0x6ED9EBA1 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:323:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND2_STEP(e, a, b, c, d, W, 26);
        ^
/datasets/git/sha1dc/sha1.c:157:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND2_STEP'
        { e += rotate_left(a, 5) + sha1_f2(b,c,d) + 0x6ED9EBA1 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:324:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND2_STEP(d, e, a, b, c, W, 27);
        ^
/datasets/git/sha1dc/sha1.c:157:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND2_STEP'
        { e += rotate_left(a, 5) + sha1_f2(b,c,d) + 0x6ED9EBA1 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:325:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND2_STEP(c, d, e, a, b, W, 28);
        ^
/datasets/git/sha1dc/sha1.c:157:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND2_STEP'
        { e += rotate_left(a, 5) + sha1_f2(b,c,d) + 0x6ED9EBA1 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:326:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND2_STEP(b, c, d, e, a, W, 29);
        ^
/datasets/git/sha1dc/sha1.c:157:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND2_STEP'
        { e += rotate_left(a, 5) + sha1_f2(b,c,d) + 0x6ED9EBA1 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:327:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND2_STEP(a, b, c, d, e, W, 30);
        ^
/datasets/git/sha1dc/sha1.c:157:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND2_STEP'
        { e += rotate_left(a, 5) + sha1_f2(b,c,d) + 0x6ED9EBA1 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:328:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND2_STEP(e, a, b, c, d, W, 31);
        ^
/datasets/git/sha1dc/sha1.c:157:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND2_STEP'
        { e += rotate_left(a, 5) + sha1_f2(b,c,d) + 0x6ED9EBA1 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:329:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND2_STEP(d, e, a, b, c, W, 32);
        ^
/datasets/git/sha1dc/sha1.c:157:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND2_STEP'
        { e += rotate_left(a, 5) + sha1_f2(b,c,d) + 0x6ED9EBA1 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:330:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND2_STEP(c, d, e, a, b, W, 33);
        ^
/datasets/git/sha1dc/sha1.c:157:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND2_STEP'
        { e += rotate_left(a, 5) + sha1_f2(b,c,d) + 0x6ED9EBA1 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:331:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND2_STEP(b, c, d, e, a, W, 34);
        ^
/datasets/git/sha1dc/sha1.c:157:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND2_STEP'
        { e += rotate_left(a, 5) + sha1_f2(b,c,d) + 0x6ED9EBA1 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:332:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND2_STEP(a, b, c, d, e, W, 35);
        ^
/datasets/git/sha1dc/sha1.c:157:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND2_STEP'
        { e += rotate_left(a, 5) + sha1_f2(b,c,d) + 0x6ED9EBA1 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:333:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND2_STEP(e, a, b, c, d, W, 36);
        ^
/datasets/git/sha1dc/sha1.c:157:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND2_STEP'
        { e += rotate_left(a, 5) + sha1_f2(b,c,d) + 0x6ED9EBA1 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:334:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND2_STEP(d, e, a, b, c, W, 37);
        ^
/datasets/git/sha1dc/sha1.c:157:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND2_STEP'
        { e += rotate_left(a, 5) + sha1_f2(b,c,d) + 0x6ED9EBA1 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:335:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND2_STEP(c, d, e, a, b, W, 38);
        ^
/datasets/git/sha1dc/sha1.c:157:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND2_STEP'
        { e += rotate_left(a, 5) + sha1_f2(b,c,d) + 0x6ED9EBA1 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:336:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND2_STEP(b, c, d, e, a, W, 39);
        ^
/datasets/git/sha1dc/sha1.c:157:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND2_STEP'
        { e += rotate_left(a, 5) + sha1_f2(b,c,d) + 0x6ED9EBA1 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:338:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND3_STEP(a, b, c, d, e, W, 40);
        ^
/datasets/git/sha1dc/sha1.c:159:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND3_STEP'
        { e += rotate_left(a, 5) + sha1_f3(b,c,d) + 0x8F1BBCDC + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:339:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND3_STEP(e, a, b, c, d, W, 41);
        ^
/datasets/git/sha1dc/sha1.c:159:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND3_STEP'
        { e += rotate_left(a, 5) + sha1_f3(b,c,d) + 0x8F1BBCDC + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:340:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND3_STEP(d, e, a, b, c, W, 42);
        ^
/datasets/git/sha1dc/sha1.c:159:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND3_STEP'
        { e += rotate_left(a, 5) + sha1_f3(b,c,d) + 0x8F1BBCDC + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:341:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND3_STEP(c, d, e, a, b, W, 43);
        ^
/datasets/git/sha1dc/sha1.c:159:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND3_STEP'
        { e += rotate_left(a, 5) + sha1_f3(b,c,d) + 0x8F1BBCDC + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:342:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND3_STEP(b, c, d, e, a, W, 44);
        ^
/datasets/git/sha1dc/sha1.c:159:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND3_STEP'
        { e += rotate_left(a, 5) + sha1_f3(b,c,d) + 0x8F1BBCDC + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:343:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND3_STEP(a, b, c, d, e, W, 45);
        ^
/datasets/git/sha1dc/sha1.c:159:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND3_STEP'
        { e += rotate_left(a, 5) + sha1_f3(b,c,d) + 0x8F1BBCDC + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:344:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND3_STEP(e, a, b, c, d, W, 46);
        ^
/datasets/git/sha1dc/sha1.c:159:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND3_STEP'
        { e += rotate_left(a, 5) + sha1_f3(b,c,d) + 0x8F1BBCDC + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:345:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND3_STEP(d, e, a, b, c, W, 47);
        ^
/datasets/git/sha1dc/sha1.c:159:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND3_STEP'
        { e += rotate_left(a, 5) + sha1_f3(b,c,d) + 0x8F1BBCDC + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:346:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND3_STEP(c, d, e, a, b, W, 48);
        ^
/datasets/git/sha1dc/sha1.c:159:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND3_STEP'
        { e += rotate_left(a, 5) + sha1_f3(b,c,d) + 0x8F1BBCDC + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:347:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND3_STEP(b, c, d, e, a, W, 49);
        ^
/datasets/git/sha1dc/sha1.c:159:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND3_STEP'
        { e += rotate_left(a, 5) + sha1_f3(b,c,d) + 0x8F1BBCDC + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:348:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND3_STEP(a, b, c, d, e, W, 50);
        ^
/datasets/git/sha1dc/sha1.c:159:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND3_STEP'
        { e += rotate_left(a, 5) + sha1_f3(b,c,d) + 0x8F1BBCDC + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:349:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND3_STEP(e, a, b, c, d, W, 51);
        ^
/datasets/git/sha1dc/sha1.c:159:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND3_STEP'
        { e += rotate_left(a, 5) + sha1_f3(b,c,d) + 0x8F1BBCDC + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:350:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND3_STEP(d, e, a, b, c, W, 52);
        ^
/datasets/git/sha1dc/sha1.c:159:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND3_STEP'
        { e += rotate_left(a, 5) + sha1_f3(b,c,d) + 0x8F1BBCDC + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:351:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND3_STEP(c, d, e, a, b, W, 53);
        ^
/datasets/git/sha1dc/sha1.c:159:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND3_STEP'
        { e += rotate_left(a, 5) + sha1_f3(b,c,d) + 0x8F1BBCDC + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:352:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND3_STEP(b, c, d, e, a, W, 54);
        ^
/datasets/git/sha1dc/sha1.c:159:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND3_STEP'
        { e += rotate_left(a, 5) + sha1_f3(b,c,d) + 0x8F1BBCDC + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:353:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND3_STEP(a, b, c, d, e, W, 55);
        ^
/datasets/git/sha1dc/sha1.c:159:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND3_STEP'
        { e += rotate_left(a, 5) + sha1_f3(b,c,d) + 0x8F1BBCDC + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:354:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND3_STEP(e, a, b, c, d, W, 56);
        ^
/datasets/git/sha1dc/sha1.c:159:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND3_STEP'
        { e += rotate_left(a, 5) + sha1_f3(b,c,d) + 0x8F1BBCDC + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:355:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND3_STEP(d, e, a, b, c, W, 57);
        ^
/datasets/git/sha1dc/sha1.c:159:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND3_STEP'
        { e += rotate_left(a, 5) + sha1_f3(b,c,d) + 0x8F1BBCDC + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:356:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND3_STEP(c, d, e, a, b, W, 58);
        ^
/datasets/git/sha1dc/sha1.c:159:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND3_STEP'
        { e += rotate_left(a, 5) + sha1_f3(b,c,d) + 0x8F1BBCDC + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:357:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND3_STEP(b, c, d, e, a, W, 59);
        ^
/datasets/git/sha1dc/sha1.c:159:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND3_STEP'
        { e += rotate_left(a, 5) + sha1_f3(b,c,d) + 0x8F1BBCDC + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:359:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND4_STEP(a, b, c, d, e, W, 60);
        ^
/datasets/git/sha1dc/sha1.c:161:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND4_STEP'
        { e += rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:360:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND4_STEP(e, a, b, c, d, W, 61);
        ^
/datasets/git/sha1dc/sha1.c:161:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND4_STEP'
        { e += rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:361:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND4_STEP(d, e, a, b, c, W, 62);
        ^
/datasets/git/sha1dc/sha1.c:161:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND4_STEP'
        { e += rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:362:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND4_STEP(c, d, e, a, b, W, 63);
        ^
/datasets/git/sha1dc/sha1.c:161:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND4_STEP'
        { e += rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:363:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND4_STEP(b, c, d, e, a, W, 64);
        ^
/datasets/git/sha1dc/sha1.c:161:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND4_STEP'
        { e += rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:364:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND4_STEP(a, b, c, d, e, W, 65);
        ^
/datasets/git/sha1dc/sha1.c:161:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND4_STEP'
        { e += rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:365:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND4_STEP(e, a, b, c, d, W, 66);
        ^
/datasets/git/sha1dc/sha1.c:161:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND4_STEP'
        { e += rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:366:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND4_STEP(d, e, a, b, c, W, 67);
        ^
/datasets/git/sha1dc/sha1.c:161:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND4_STEP'
        { e += rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:367:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND4_STEP(c, d, e, a, b, W, 68);
        ^
/datasets/git/sha1dc/sha1.c:161:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND4_STEP'
        { e += rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:368:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND4_STEP(b, c, d, e, a, W, 69);
        ^
/datasets/git/sha1dc/sha1.c:161:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND4_STEP'
        { e += rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:369:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND4_STEP(a, b, c, d, e, W, 70);
        ^
/datasets/git/sha1dc/sha1.c:161:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND4_STEP'
        { e += rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:370:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND4_STEP(e, a, b, c, d, W, 71);
        ^
/datasets/git/sha1dc/sha1.c:161:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND4_STEP'
        { e += rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:371:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND4_STEP(d, e, a, b, c, W, 72);
        ^
/datasets/git/sha1dc/sha1.c:161:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND4_STEP'
        { e += rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:372:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND4_STEP(c, d, e, a, b, W, 73);
        ^
/datasets/git/sha1dc/sha1.c:161:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND4_STEP'
        { e += rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:373:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND4_STEP(b, c, d, e, a, W, 74);
        ^
/datasets/git/sha1dc/sha1.c:161:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND4_STEP'
        { e += rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:374:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND4_STEP(a, b, c, d, e, W, 75);
        ^
/datasets/git/sha1dc/sha1.c:161:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND4_STEP'
        { e += rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:375:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND4_STEP(e, a, b, c, d, W, 76);
        ^
/datasets/git/sha1dc/sha1.c:161:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND4_STEP'
        { e += rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:376:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND4_STEP(d, e, a, b, c, W, 77);
        ^
/datasets/git/sha1dc/sha1.c:161:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND4_STEP'
        { e += rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:377:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND4_STEP(c, d, e, a, b, W, 78);
        ^
/datasets/git/sha1dc/sha1.c:161:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND4_STEP'
        { e += rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:378:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        HASHCLASH_SHA1COMPRESS_ROUND4_STEP(b, c, d, e, a, W, 79);
        ^
/datasets/git/sha1dc/sha1.c:161:9: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND4_STEP'
        { e += rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6 + m[t]; b = rotate_left(b, 30); }
               ^~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:385:43: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
void sha1_compression_states(uint32_t ihv[5], const uint32_t m[16], uint32_t W[80], uint32_t states[80][5])
                                          ^
/datasets/git/sha1dc/sha1.c:385:62: warning: parameter name 'm' is too short, expected at least 3 characters [readability-identifier-length]
void sha1_compression_states(uint32_t ihv[5], const uint32_t m[16], uint32_t W[80], uint32_t states[80][5])
                                                             ^
/datasets/git/sha1dc/sha1.c:385:64: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
void sha1_compression_states(uint32_t ihv[5], const uint32_t m[16], uint32_t W[80], uint32_t states[80][5])
                                                               ^
/datasets/git/sha1dc/sha1.c:385:78: warning: parameter name 'W' is too short, expected at least 3 characters [readability-identifier-length]
void sha1_compression_states(uint32_t ihv[5], const uint32_t m[16], uint32_t W[80], uint32_t states[80][5])
                                                                             ^
/datasets/git/sha1dc/sha1.c:385:80: warning: 80 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
void sha1_compression_states(uint32_t ihv[5], const uint32_t m[16], uint32_t W[80], uint32_t states[80][5])
                                                                               ^
/datasets/git/sha1dc/sha1.c:385:101: warning: 80 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
void sha1_compression_states(uint32_t ihv[5], const uint32_t m[16], uint32_t W[80], uint32_t states[80][5])
                                                                                                    ^
/datasets/git/sha1dc/sha1.c:385:105: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
void sha1_compression_states(uint32_t ihv[5], const uint32_t m[16], uint32_t W[80], uint32_t states[80][5])
                                                                                                        ^
/datasets/git/sha1dc/sha1.c:387:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        uint32_t a = ihv[0], b = ihv[1], c = ihv[2], d = ihv[3], e = ihv[4];
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:387:11: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        uint32_t a = ihv[0], b = ihv[1], c = ihv[2], d = ihv[3], e = ihv[4];
                 ^
/datasets/git/sha1dc/sha1.c:387:23: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        uint32_t a = ihv[0], b = ihv[1], c = ihv[2], d = ihv[3], e = ihv[4];
                             ^
/datasets/git/sha1dc/sha1.c:387:35: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        uint32_t a = ihv[0], b = ihv[1], c = ihv[2], d = ihv[3], e = ihv[4];
                                         ^
/datasets/git/sha1dc/sha1.c:387:47: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
        uint32_t a = ihv[0], b = ihv[1], c = ihv[2], d = ihv[3], e = ihv[4];
                                                     ^
/datasets/git/sha1dc/sha1.c:387:59: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
        uint32_t a = ihv[0], b = ihv[1], c = ihv[2], d = ihv[3], e = ihv[4];
                                                                 ^
/datasets/git/sha1dc/sha1.c:388:11: warning: variable 'temp' is not initialized [cppcoreguidelines-init-variables]
        uint32_t temp;
                 ^
                      = 0
/datasets/git/sha1dc/sha1.c:393:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(a, b, c, d, e, m, W, 0, temp);
        ^
/datasets/git/sha1dc/sha1.c:173:3: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND1_STEP_LOAD'
        {sha1_load(m, t, temp); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999; b = rotate_left(b, 30);}
         ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:144:48: note: expanded from macro 'sha1_load'
        #define sha1_load(m, t, temp)  { temp = m[t]; sha1_bswap32(temp); }
                                                      ^~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:137:34: note: expanded from macro 'sha1_bswap32'
        {x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); x = (x << 16) | (x >> 16);}
                                        ^          ~~~~~~~~
/datasets/git/sha1dc/sha1.c:393:61: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(a, b, c, d, e, m, W, 0, temp);
                                                                   ^
/datasets/git/sha1dc/sha1.c:173:19: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND1_STEP_LOAD'
        {sha1_load(m, t, temp); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999; b = rotate_left(b, 30);}
         ~~~~~~~~~~~~~~~~^~~~~
/datasets/git/sha1dc/sha1.c:144:61: note: expanded from macro 'sha1_load'
        #define sha1_load(m, t, temp)  { temp = m[t]; sha1_bswap32(temp); }
                                                      ~~~~~~~~~~~~~^~~~~
/datasets/git/sha1dc/sha1.c:137:9: note: expanded from macro 'sha1_bswap32'
        {x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); x = (x << 16) | (x >> 16);}
               ^    ~
/datasets/git/sha1dc/sha1.c:398:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(e, a, b, c, d, m, W, 1, temp);
        ^
/datasets/git/sha1dc/sha1.c:173:3: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND1_STEP_LOAD'
        {sha1_load(m, t, temp); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999; b = rotate_left(b, 30);}
         ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:144:48: note: expanded from macro 'sha1_load'
        #define sha1_load(m, t, temp)  { temp = m[t]; sha1_bswap32(temp); }
                                                      ^~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:137:34: note: expanded from macro 'sha1_bswap32'
        {x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); x = (x << 16) | (x >> 16);}
                                        ^          ~~~~~~~~
/datasets/git/sha1dc/sha1.c:398:61: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(e, a, b, c, d, m, W, 1, temp);
                                                                   ^
/datasets/git/sha1dc/sha1.c:173:19: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND1_STEP_LOAD'
        {sha1_load(m, t, temp); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999; b = rotate_left(b, 30);}
         ~~~~~~~~~~~~~~~~^~~~~
/datasets/git/sha1dc/sha1.c:144:61: note: expanded from macro 'sha1_load'
        #define sha1_load(m, t, temp)  { temp = m[t]; sha1_bswap32(temp); }
                                                      ~~~~~~~~~~~~~^~~~~
/datasets/git/sha1dc/sha1.c:137:9: note: expanded from macro 'sha1_bswap32'
        {x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); x = (x << 16) | (x >> 16);}
               ^    ~
/datasets/git/sha1dc/sha1.c:403:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(d, e, a, b, c, m, W, 2, temp);
        ^
/datasets/git/sha1dc/sha1.c:173:3: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND1_STEP_LOAD'
        {sha1_load(m, t, temp); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999; b = rotate_left(b, 30);}
         ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:144:48: note: expanded from macro 'sha1_load'
        #define sha1_load(m, t, temp)  { temp = m[t]; sha1_bswap32(temp); }
                                                      ^~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:137:34: note: expanded from macro 'sha1_bswap32'
        {x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); x = (x << 16) | (x >> 16);}
                                        ^          ~~~~~~~~
/datasets/git/sha1dc/sha1.c:403:61: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(d, e, a, b, c, m, W, 2, temp);
                                                                   ^
/datasets/git/sha1dc/sha1.c:173:19: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND1_STEP_LOAD'
        {sha1_load(m, t, temp); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999; b = rotate_left(b, 30);}
         ~~~~~~~~~~~~~~~~^~~~~
/datasets/git/sha1dc/sha1.c:144:61: note: expanded from macro 'sha1_load'
        #define sha1_load(m, t, temp)  { temp = m[t]; sha1_bswap32(temp); }
                                                      ~~~~~~~~~~~~~^~~~~
/datasets/git/sha1dc/sha1.c:137:9: note: expanded from macro 'sha1_bswap32'
        {x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); x = (x << 16) | (x >> 16);}
               ^    ~
/datasets/git/sha1dc/sha1.c:408:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(c, d, e, a, b, m, W, 3, temp);
        ^
/datasets/git/sha1dc/sha1.c:173:3: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND1_STEP_LOAD'
        {sha1_load(m, t, temp); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999; b = rotate_left(b, 30);}
         ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:144:48: note: expanded from macro 'sha1_load'
        #define sha1_load(m, t, temp)  { temp = m[t]; sha1_bswap32(temp); }
                                                      ^~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:137:34: note: expanded from macro 'sha1_bswap32'
        {x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); x = (x << 16) | (x >> 16);}
                                        ^          ~~~~~~~~
/datasets/git/sha1dc/sha1.c:408:61: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(c, d, e, a, b, m, W, 3, temp);
                                                                   ^
/datasets/git/sha1dc/sha1.c:173:19: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND1_STEP_LOAD'
        {sha1_load(m, t, temp); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999; b = rotate_left(b, 30);}
         ~~~~~~~~~~~~~~~~^~~~~
/datasets/git/sha1dc/sha1.c:144:61: note: expanded from macro 'sha1_load'
        #define sha1_load(m, t, temp)  { temp = m[t]; sha1_bswap32(temp); }
                                                      ~~~~~~~~~~~~~^~~~~
/datasets/git/sha1dc/sha1.c:137:9: note: expanded from macro 'sha1_bswap32'
        {x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); x = (x << 16) | (x >> 16);}
               ^    ~
/datasets/git/sha1dc/sha1.c:413:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(b, c, d, e, a, m, W, 4, temp);
        ^
/datasets/git/sha1dc/sha1.c:173:3: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND1_STEP_LOAD'
        {sha1_load(m, t, temp); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999; b = rotate_left(b, 30);}
         ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:144:48: note: expanded from macro 'sha1_load'
        #define sha1_load(m, t, temp)  { temp = m[t]; sha1_bswap32(temp); }
                                                      ^~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:137:34: note: expanded from macro 'sha1_bswap32'
        {x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); x = (x << 16) | (x >> 16);}
                                        ^          ~~~~~~~~
/datasets/git/sha1dc/sha1.c:413:61: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(b, c, d, e, a, m, W, 4, temp);
                                                                   ^
/datasets/git/sha1dc/sha1.c:173:19: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND1_STEP_LOAD'
        {sha1_load(m, t, temp); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999; b = rotate_left(b, 30);}
         ~~~~~~~~~~~~~~~~^~~~~
/datasets/git/sha1dc/sha1.c:144:61: note: expanded from macro 'sha1_load'
        #define sha1_load(m, t, temp)  { temp = m[t]; sha1_bswap32(temp); }
                                                      ~~~~~~~~~~~~~^~~~~
/datasets/git/sha1dc/sha1.c:137:9: note: expanded from macro 'sha1_bswap32'
        {x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); x = (x << 16) | (x >> 16);}
               ^    ~
/datasets/git/sha1dc/sha1.c:418:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(a, b, c, d, e, m, W, 5, temp);
        ^
/datasets/git/sha1dc/sha1.c:173:3: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND1_STEP_LOAD'
        {sha1_load(m, t, temp); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999; b = rotate_left(b, 30);}
         ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:144:48: note: expanded from macro 'sha1_load'
        #define sha1_load(m, t, temp)  { temp = m[t]; sha1_bswap32(temp); }
                                                      ^~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:137:34: note: expanded from macro 'sha1_bswap32'
        {x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); x = (x << 16) | (x >> 16);}
                                        ^          ~~~~~~~~
/datasets/git/sha1dc/sha1.c:418:61: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(a, b, c, d, e, m, W, 5, temp);
                                                                   ^
/datasets/git/sha1dc/sha1.c:173:19: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND1_STEP_LOAD'
        {sha1_load(m, t, temp); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999; b = rotate_left(b, 30);}
         ~~~~~~~~~~~~~~~~^~~~~
/datasets/git/sha1dc/sha1.c:144:61: note: expanded from macro 'sha1_load'
        #define sha1_load(m, t, temp)  { temp = m[t]; sha1_bswap32(temp); }
                                                      ~~~~~~~~~~~~~^~~~~
/datasets/git/sha1dc/sha1.c:137:9: note: expanded from macro 'sha1_bswap32'
        {x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); x = (x << 16) | (x >> 16);}
               ^    ~
/datasets/git/sha1dc/sha1.c:423:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(e, a, b, c, d, m, W, 6, temp);
        ^
/datasets/git/sha1dc/sha1.c:173:3: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND1_STEP_LOAD'
        {sha1_load(m, t, temp); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999; b = rotate_left(b, 30);}
         ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:144:48: note: expanded from macro 'sha1_load'
        #define sha1_load(m, t, temp)  { temp = m[t]; sha1_bswap32(temp); }
                                                      ^~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:137:34: note: expanded from macro 'sha1_bswap32'
        {x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); x = (x << 16) | (x >> 16);}
                                        ^          ~~~~~~~~
/datasets/git/sha1dc/sha1.c:423:61: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(e, a, b, c, d, m, W, 6, temp);
                                                                   ^
/datasets/git/sha1dc/sha1.c:173:19: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND1_STEP_LOAD'
        {sha1_load(m, t, temp); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999; b = rotate_left(b, 30);}
         ~~~~~~~~~~~~~~~~^~~~~
/datasets/git/sha1dc/sha1.c:144:61: note: expanded from macro 'sha1_load'
        #define sha1_load(m, t, temp)  { temp = m[t]; sha1_bswap32(temp); }
                                                      ~~~~~~~~~~~~~^~~~~
/datasets/git/sha1dc/sha1.c:137:9: note: expanded from macro 'sha1_bswap32'
        {x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); x = (x << 16) | (x >> 16);}
               ^    ~
/datasets/git/sha1dc/sha1.c:428:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(d, e, a, b, c, m, W, 7, temp);
        ^
/datasets/git/sha1dc/sha1.c:173:3: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND1_STEP_LOAD'
        {sha1_load(m, t, temp); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999; b = rotate_left(b, 30);}
         ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:144:48: note: expanded from macro 'sha1_load'
        #define sha1_load(m, t, temp)  { temp = m[t]; sha1_bswap32(temp); }
                                                      ^~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:137:34: note: expanded from macro 'sha1_bswap32'
        {x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); x = (x << 16) | (x >> 16);}
                                        ^          ~~~~~~~~
/datasets/git/sha1dc/sha1.c:428:61: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(d, e, a, b, c, m, W, 7, temp);
                                                                   ^
/datasets/git/sha1dc/sha1.c:173:19: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND1_STEP_LOAD'
        {sha1_load(m, t, temp); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999; b = rotate_left(b, 30);}
         ~~~~~~~~~~~~~~~~^~~~~
/datasets/git/sha1dc/sha1.c:144:61: note: expanded from macro 'sha1_load'
        #define sha1_load(m, t, temp)  { temp = m[t]; sha1_bswap32(temp); }
                                                      ~~~~~~~~~~~~~^~~~~
/datasets/git/sha1dc/sha1.c:137:9: note: expanded from macro 'sha1_bswap32'
        {x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); x = (x << 16) | (x >> 16);}
               ^    ~
/datasets/git/sha1dc/sha1.c:433:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(c, d, e, a, b, m, W, 8, temp);
        ^
/datasets/git/sha1dc/sha1.c:173:3: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND1_STEP_LOAD'
        {sha1_load(m, t, temp); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999; b = rotate_left(b, 30);}
         ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:144:48: note: expanded from macro 'sha1_load'
        #define sha1_load(m, t, temp)  { temp = m[t]; sha1_bswap32(temp); }
                                                      ^~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:137:34: note: expanded from macro 'sha1_bswap32'
        {x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); x = (x << 16) | (x >> 16);}
                                        ^          ~~~~~~~~
/datasets/git/sha1dc/sha1.c:433:61: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(c, d, e, a, b, m, W, 8, temp);
                                                                   ^
/datasets/git/sha1dc/sha1.c:173:19: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND1_STEP_LOAD'
        {sha1_load(m, t, temp); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999; b = rotate_left(b, 30);}
         ~~~~~~~~~~~~~~~~^~~~~
/datasets/git/sha1dc/sha1.c:144:61: note: expanded from macro 'sha1_load'
        #define sha1_load(m, t, temp)  { temp = m[t]; sha1_bswap32(temp); }
                                                      ~~~~~~~~~~~~~^~~~~
/datasets/git/sha1dc/sha1.c:137:9: note: expanded from macro 'sha1_bswap32'
        {x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); x = (x << 16) | (x >> 16);}
               ^    ~
/datasets/git/sha1dc/sha1.c:438:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(b, c, d, e, a, m, W, 9, temp);
        ^
/datasets/git/sha1dc/sha1.c:173:3: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND1_STEP_LOAD'
        {sha1_load(m, t, temp); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999; b = rotate_left(b, 30);}
         ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:144:48: note: expanded from macro 'sha1_load'
        #define sha1_load(m, t, temp)  { temp = m[t]; sha1_bswap32(temp); }
                                                      ^~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:137:34: note: expanded from macro 'sha1_bswap32'
        {x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); x = (x << 16) | (x >> 16);}
                                        ^          ~~~~~~~~
/datasets/git/sha1dc/sha1.c:438:61: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(b, c, d, e, a, m, W, 9, temp);
                                                                   ^
/datasets/git/sha1dc/sha1.c:173:19: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND1_STEP_LOAD'
        {sha1_load(m, t, temp); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999; b = rotate_left(b, 30);}
         ~~~~~~~~~~~~~~~~^~~~~
/datasets/git/sha1dc/sha1.c:144:61: note: expanded from macro 'sha1_load'
        #define sha1_load(m, t, temp)  { temp = m[t]; sha1_bswap32(temp); }
                                                      ~~~~~~~~~~~~~^~~~~
/datasets/git/sha1dc/sha1.c:137:9: note: expanded from macro 'sha1_bswap32'
        {x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); x = (x << 16) | (x >> 16);}
               ^    ~
/datasets/git/sha1dc/sha1.c:443:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(a, b, c, d, e, m, W, 10, temp);
        ^
/datasets/git/sha1dc/sha1.c:173:3: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND1_STEP_LOAD'
        {sha1_load(m, t, temp); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999; b = rotate_left(b, 30);}
         ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:144:48: note: expanded from macro 'sha1_load'
        #define sha1_load(m, t, temp)  { temp = m[t]; sha1_bswap32(temp); }
                                                      ^~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:137:34: note: expanded from macro 'sha1_bswap32'
        {x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); x = (x << 16) | (x >> 16);}
                                        ^          ~~~~~~~~
/datasets/git/sha1dc/sha1.c:443:62: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(a, b, c, d, e, m, W, 10, temp);
                                                                    ^
/datasets/git/sha1dc/sha1.c:173:19: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND1_STEP_LOAD'
        {sha1_load(m, t, temp); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999; b = rotate_left(b, 30);}
         ~~~~~~~~~~~~~~~~^~~~~
/datasets/git/sha1dc/sha1.c:144:61: note: expanded from macro 'sha1_load'
        #define sha1_load(m, t, temp)  { temp = m[t]; sha1_bswap32(temp); }
                                                      ~~~~~~~~~~~~~^~~~~
/datasets/git/sha1dc/sha1.c:137:9: note: expanded from macro 'sha1_bswap32'
        {x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); x = (x << 16) | (x >> 16);}
               ^    ~
/datasets/git/sha1dc/sha1.c:448:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(e, a, b, c, d, m, W, 11, temp);
        ^
/datasets/git/sha1dc/sha1.c:173:3: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND1_STEP_LOAD'
        {sha1_load(m, t, temp); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999; b = rotate_left(b, 30);}
         ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:144:48: note: expanded from macro 'sha1_load'
        #define sha1_load(m, t, temp)  { temp = m[t]; sha1_bswap32(temp); }
                                                      ^~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:137:34: note: expanded from macro 'sha1_bswap32'
        {x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); x = (x << 16) | (x >> 16);}
                                        ^          ~~~~~~~~
/datasets/git/sha1dc/sha1.c:448:62: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(e, a, b, c, d, m, W, 11, temp);
                                                                    ^
/datasets/git/sha1dc/sha1.c:173:19: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND1_STEP_LOAD'
        {sha1_load(m, t, temp); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999; b = rotate_left(b, 30);}
         ~~~~~~~~~~~~~~~~^~~~~
/datasets/git/sha1dc/sha1.c:144:61: note: expanded from macro 'sha1_load'
        #define sha1_load(m, t, temp)  { temp = m[t]; sha1_bswap32(temp); }
                                                      ~~~~~~~~~~~~~^~~~~
/datasets/git/sha1dc/sha1.c:137:9: note: expanded from macro 'sha1_bswap32'
        {x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); x = (x << 16) | (x >> 16);}
               ^    ~
/datasets/git/sha1dc/sha1.c:453:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(d, e, a, b, c, m, W, 12, temp);
        ^
/datasets/git/sha1dc/sha1.c:173:3: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND1_STEP_LOAD'
        {sha1_load(m, t, temp); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999; b = rotate_left(b, 30);}
         ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:144:48: note: expanded from macro 'sha1_load'
        #define sha1_load(m, t, temp)  { temp = m[t]; sha1_bswap32(temp); }
                                                      ^~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:137:34: note: expanded from macro 'sha1_bswap32'
        {x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); x = (x << 16) | (x >> 16);}
                                        ^          ~~~~~~~~
/datasets/git/sha1dc/sha1.c:453:62: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(d, e, a, b, c, m, W, 12, temp);
                                                                    ^
/datasets/git/sha1dc/sha1.c:173:19: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND1_STEP_LOAD'
        {sha1_load(m, t, temp); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999; b = rotate_left(b, 30);}
         ~~~~~~~~~~~~~~~~^~~~~
/datasets/git/sha1dc/sha1.c:144:61: note: expanded from macro 'sha1_load'
        #define sha1_load(m, t, temp)  { temp = m[t]; sha1_bswap32(temp); }
                                                      ~~~~~~~~~~~~~^~~~~
/datasets/git/sha1dc/sha1.c:137:9: note: expanded from macro 'sha1_bswap32'
        {x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); x = (x << 16) | (x >> 16);}
               ^    ~
/datasets/git/sha1dc/sha1.c:458:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(c, d, e, a, b, m, W, 13, temp);
        ^
/datasets/git/sha1dc/sha1.c:173:3: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND1_STEP_LOAD'
        {sha1_load(m, t, temp); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999; b = rotate_left(b, 30);}
         ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:144:48: note: expanded from macro 'sha1_load'
        #define sha1_load(m, t, temp)  { temp = m[t]; sha1_bswap32(temp); }
                                                      ^~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:137:34: note: expanded from macro 'sha1_bswap32'
        {x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); x = (x << 16) | (x >> 16);}
                                        ^          ~~~~~~~~
/datasets/git/sha1dc/sha1.c:458:62: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(c, d, e, a, b, m, W, 13, temp);
                                                                    ^
/datasets/git/sha1dc/sha1.c:173:19: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND1_STEP_LOAD'
        {sha1_load(m, t, temp); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999; b = rotate_left(b, 30);}
         ~~~~~~~~~~~~~~~~^~~~~
/datasets/git/sha1dc/sha1.c:144:61: note: expanded from macro 'sha1_load'
        #define sha1_load(m, t, temp)  { temp = m[t]; sha1_bswap32(temp); }
                                                      ~~~~~~~~~~~~~^~~~~
/datasets/git/sha1dc/sha1.c:137:9: note: expanded from macro 'sha1_bswap32'
        {x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); x = (x << 16) | (x >> 16);}
               ^    ~
/datasets/git/sha1dc/sha1.c:463:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(b, c, d, e, a, m, W, 14, temp);
        ^
/datasets/git/sha1dc/sha1.c:173:3: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND1_STEP_LOAD'
        {sha1_load(m, t, temp); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999; b = rotate_left(b, 30);}
         ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:144:48: note: expanded from macro 'sha1_load'
        #define sha1_load(m, t, temp)  { temp = m[t]; sha1_bswap32(temp); }
                                                      ^~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:137:34: note: expanded from macro 'sha1_bswap32'
        {x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); x = (x << 16) | (x >> 16);}
                                        ^          ~~~~~~~~
/datasets/git/sha1dc/sha1.c:463:62: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(b, c, d, e, a, m, W, 14, temp);
                                                                    ^
/datasets/git/sha1dc/sha1.c:173:19: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND1_STEP_LOAD'
        {sha1_load(m, t, temp); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999; b = rotate_left(b, 30);}
         ~~~~~~~~~~~~~~~~^~~~~
/datasets/git/sha1dc/sha1.c:144:61: note: expanded from macro 'sha1_load'
        #define sha1_load(m, t, temp)  { temp = m[t]; sha1_bswap32(temp); }
                                                      ~~~~~~~~~~~~~^~~~~
/datasets/git/sha1dc/sha1.c:137:9: note: expanded from macro 'sha1_bswap32'
        {x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); x = (x << 16) | (x >> 16);}
               ^    ~
/datasets/git/sha1dc/sha1.c:468:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(a, b, c, d, e, m, W, 15, temp);
        ^
/datasets/git/sha1dc/sha1.c:173:3: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND1_STEP_LOAD'
        {sha1_load(m, t, temp); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999; b = rotate_left(b, 30);}
         ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:144:48: note: expanded from macro 'sha1_load'
        #define sha1_load(m, t, temp)  { temp = m[t]; sha1_bswap32(temp); }
                                                      ^~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:137:34: note: expanded from macro 'sha1_bswap32'
        {x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); x = (x << 16) | (x >> 16);}
                                        ^          ~~~~~~~~
/datasets/git/sha1dc/sha1.c:468:62: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND1_STEP_LOAD(a, b, c, d, e, m, W, 15, temp);
                                                                    ^
/datasets/git/sha1dc/sha1.c:173:19: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND1_STEP_LOAD'
        {sha1_load(m, t, temp); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999; b = rotate_left(b, 30);}
         ~~~~~~~~~~~~~~~~^~~~~
/datasets/git/sha1dc/sha1.c:144:61: note: expanded from macro 'sha1_load'
        #define sha1_load(m, t, temp)  { temp = m[t]; sha1_bswap32(temp); }
                                                      ~~~~~~~~~~~~~^~~~~
/datasets/git/sha1dc/sha1.c:137:9: note: expanded from macro 'sha1_bswap32'
        {x = ((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF); x = (x << 16) | (x >> 16);}
               ^    ~
/datasets/git/sha1dc/sha1.c:473:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND1_STEP_EXPAND(e, a, b, c, d, W, 16, temp);
        ^
/datasets/git/sha1dc/sha1.c:176:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND1_STEP_EXPAND'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:478:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND1_STEP_EXPAND(d, e, a, b, c, W, 17, temp);
        ^
/datasets/git/sha1dc/sha1.c:176:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND1_STEP_EXPAND'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:483:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND1_STEP_EXPAND(c, d, e, a, b, W, 18, temp);
        ^
/datasets/git/sha1dc/sha1.c:176:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND1_STEP_EXPAND'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:488:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND1_STEP_EXPAND(b, c, d, e, a, W, 19, temp);
        ^
/datasets/git/sha1dc/sha1.c:176:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND1_STEP_EXPAND'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f1(b,c,d) + 0x5A827999; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:495:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND2_STEP(a, b, c, d, e, W, 20, temp);
        ^
/datasets/git/sha1dc/sha1.c:179:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND2_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f2(b,c,d) + 0x6ED9EBA1; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:500:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND2_STEP(e, a, b, c, d, W, 21, temp);
        ^
/datasets/git/sha1dc/sha1.c:179:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND2_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f2(b,c,d) + 0x6ED9EBA1; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:505:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND2_STEP(d, e, a, b, c, W, 22, temp);
        ^
/datasets/git/sha1dc/sha1.c:179:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND2_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f2(b,c,d) + 0x6ED9EBA1; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:510:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND2_STEP(c, d, e, a, b, W, 23, temp);
        ^
/datasets/git/sha1dc/sha1.c:179:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND2_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f2(b,c,d) + 0x6ED9EBA1; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:515:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND2_STEP(b, c, d, e, a, W, 24, temp);
        ^
/datasets/git/sha1dc/sha1.c:179:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND2_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f2(b,c,d) + 0x6ED9EBA1; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:520:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND2_STEP(a, b, c, d, e, W, 25, temp);
        ^
/datasets/git/sha1dc/sha1.c:179:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND2_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f2(b,c,d) + 0x6ED9EBA1; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:525:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND2_STEP(e, a, b, c, d, W, 26, temp);
        ^
/datasets/git/sha1dc/sha1.c:179:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND2_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f2(b,c,d) + 0x6ED9EBA1; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:530:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND2_STEP(d, e, a, b, c, W, 27, temp);
        ^
/datasets/git/sha1dc/sha1.c:179:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND2_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f2(b,c,d) + 0x6ED9EBA1; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:535:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND2_STEP(c, d, e, a, b, W, 28, temp);
        ^
/datasets/git/sha1dc/sha1.c:179:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND2_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f2(b,c,d) + 0x6ED9EBA1; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:540:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND2_STEP(b, c, d, e, a, W, 29, temp);
        ^
/datasets/git/sha1dc/sha1.c:179:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND2_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f2(b,c,d) + 0x6ED9EBA1; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:545:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND2_STEP(a, b, c, d, e, W, 30, temp);
        ^
/datasets/git/sha1dc/sha1.c:179:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND2_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f2(b,c,d) + 0x6ED9EBA1; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:550:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND2_STEP(e, a, b, c, d, W, 31, temp);
        ^
/datasets/git/sha1dc/sha1.c:179:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND2_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f2(b,c,d) + 0x6ED9EBA1; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:555:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND2_STEP(d, e, a, b, c, W, 32, temp);
        ^
/datasets/git/sha1dc/sha1.c:179:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND2_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f2(b,c,d) + 0x6ED9EBA1; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:560:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND2_STEP(c, d, e, a, b, W, 33, temp);
        ^
/datasets/git/sha1dc/sha1.c:179:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND2_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f2(b,c,d) + 0x6ED9EBA1; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:565:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND2_STEP(b, c, d, e, a, W, 34, temp);
        ^
/datasets/git/sha1dc/sha1.c:179:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND2_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f2(b,c,d) + 0x6ED9EBA1; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:570:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND2_STEP(a, b, c, d, e, W, 35, temp);
        ^
/datasets/git/sha1dc/sha1.c:179:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND2_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f2(b,c,d) + 0x6ED9EBA1; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:575:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND2_STEP(e, a, b, c, d, W, 36, temp);
        ^
/datasets/git/sha1dc/sha1.c:179:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND2_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f2(b,c,d) + 0x6ED9EBA1; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:580:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND2_STEP(d, e, a, b, c, W, 37, temp);
        ^
/datasets/git/sha1dc/sha1.c:179:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND2_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f2(b,c,d) + 0x6ED9EBA1; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:585:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND2_STEP(c, d, e, a, b, W, 38, temp);
        ^
/datasets/git/sha1dc/sha1.c:179:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND2_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f2(b,c,d) + 0x6ED9EBA1; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:590:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND2_STEP(b, c, d, e, a, W, 39, temp);
        ^
/datasets/git/sha1dc/sha1.c:179:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND2_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f2(b,c,d) + 0x6ED9EBA1; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:597:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND3_STEP(a, b, c, d, e, W, 40, temp);
        ^
/datasets/git/sha1dc/sha1.c:182:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND3_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f3(b,c,d) + 0x8F1BBCDC; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:602:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND3_STEP(e, a, b, c, d, W, 41, temp);
        ^
/datasets/git/sha1dc/sha1.c:182:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND3_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f3(b,c,d) + 0x8F1BBCDC; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:607:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND3_STEP(d, e, a, b, c, W, 42, temp);
        ^
/datasets/git/sha1dc/sha1.c:182:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND3_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f3(b,c,d) + 0x8F1BBCDC; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:612:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND3_STEP(c, d, e, a, b, W, 43, temp);
        ^
/datasets/git/sha1dc/sha1.c:182:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND3_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f3(b,c,d) + 0x8F1BBCDC; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:617:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND3_STEP(b, c, d, e, a, W, 44, temp);
        ^
/datasets/git/sha1dc/sha1.c:182:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND3_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f3(b,c,d) + 0x8F1BBCDC; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:622:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND3_STEP(a, b, c, d, e, W, 45, temp);
        ^
/datasets/git/sha1dc/sha1.c:182:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND3_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f3(b,c,d) + 0x8F1BBCDC; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:627:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND3_STEP(e, a, b, c, d, W, 46, temp);
        ^
/datasets/git/sha1dc/sha1.c:182:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND3_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f3(b,c,d) + 0x8F1BBCDC; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:632:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND3_STEP(d, e, a, b, c, W, 47, temp);
        ^
/datasets/git/sha1dc/sha1.c:182:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND3_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f3(b,c,d) + 0x8F1BBCDC; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:637:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND3_STEP(c, d, e, a, b, W, 48, temp);
        ^
/datasets/git/sha1dc/sha1.c:182:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND3_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f3(b,c,d) + 0x8F1BBCDC; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:642:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND3_STEP(b, c, d, e, a, W, 49, temp);
        ^
/datasets/git/sha1dc/sha1.c:182:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND3_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f3(b,c,d) + 0x8F1BBCDC; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:647:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND3_STEP(a, b, c, d, e, W, 50, temp);
        ^
/datasets/git/sha1dc/sha1.c:182:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND3_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f3(b,c,d) + 0x8F1BBCDC; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:652:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND3_STEP(e, a, b, c, d, W, 51, temp);
        ^
/datasets/git/sha1dc/sha1.c:182:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND3_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f3(b,c,d) + 0x8F1BBCDC; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:657:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND3_STEP(d, e, a, b, c, W, 52, temp);
        ^
/datasets/git/sha1dc/sha1.c:182:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND3_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f3(b,c,d) + 0x8F1BBCDC; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:662:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND3_STEP(c, d, e, a, b, W, 53, temp);
        ^
/datasets/git/sha1dc/sha1.c:182:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND3_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f3(b,c,d) + 0x8F1BBCDC; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:667:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND3_STEP(b, c, d, e, a, W, 54, temp);
        ^
/datasets/git/sha1dc/sha1.c:182:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND3_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f3(b,c,d) + 0x8F1BBCDC; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:672:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND3_STEP(a, b, c, d, e, W, 55, temp);
        ^
/datasets/git/sha1dc/sha1.c:182:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND3_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f3(b,c,d) + 0x8F1BBCDC; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:677:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND3_STEP(e, a, b, c, d, W, 56, temp);
        ^
/datasets/git/sha1dc/sha1.c:182:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND3_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f3(b,c,d) + 0x8F1BBCDC; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:682:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND3_STEP(d, e, a, b, c, W, 57, temp);
        ^
/datasets/git/sha1dc/sha1.c:182:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND3_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f3(b,c,d) + 0x8F1BBCDC; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:687:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND3_STEP(c, d, e, a, b, W, 58, temp);
        ^
/datasets/git/sha1dc/sha1.c:182:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND3_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f3(b,c,d) + 0x8F1BBCDC; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:692:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND3_STEP(b, c, d, e, a, W, 59, temp);
        ^
/datasets/git/sha1dc/sha1.c:182:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND3_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f3(b,c,d) + 0x8F1BBCDC; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:700:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND4_STEP(a, b, c, d, e, W, 60, temp);
        ^
/datasets/git/sha1dc/sha1.c:185:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND4_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:705:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND4_STEP(e, a, b, c, d, W, 61, temp);
        ^
/datasets/git/sha1dc/sha1.c:185:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND4_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:710:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND4_STEP(d, e, a, b, c, W, 62, temp);
        ^
/datasets/git/sha1dc/sha1.c:185:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND4_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:715:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND4_STEP(c, d, e, a, b, W, 63, temp);
        ^
/datasets/git/sha1dc/sha1.c:185:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND4_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:720:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND4_STEP(b, c, d, e, a, W, 64, temp);
        ^
/datasets/git/sha1dc/sha1.c:185:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND4_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:725:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND4_STEP(a, b, c, d, e, W, 65, temp);
        ^
/datasets/git/sha1dc/sha1.c:185:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND4_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:730:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND4_STEP(e, a, b, c, d, W, 66, temp);
        ^
/datasets/git/sha1dc/sha1.c:185:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND4_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:735:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND4_STEP(d, e, a, b, c, W, 67, temp);
        ^
/datasets/git/sha1dc/sha1.c:185:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND4_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:740:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND4_STEP(c, d, e, a, b, W, 68, temp);
        ^
/datasets/git/sha1dc/sha1.c:185:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND4_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:745:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND4_STEP(b, c, d, e, a, W, 69, temp);
        ^
/datasets/git/sha1dc/sha1.c:185:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND4_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:750:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND4_STEP(a, b, c, d, e, W, 70, temp);
        ^
/datasets/git/sha1dc/sha1.c:185:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND4_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:755:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND4_STEP(e, a, b, c, d, W, 71, temp);
        ^
/datasets/git/sha1dc/sha1.c:185:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND4_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:760:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND4_STEP(d, e, a, b, c, W, 72, temp);
        ^
/datasets/git/sha1dc/sha1.c:185:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND4_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:765:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND4_STEP(c, d, e, a, b, W, 73, temp);
        ^
/datasets/git/sha1dc/sha1.c:185:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND4_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:770:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND4_STEP(b, c, d, e, a, W, 74, temp);
        ^
/datasets/git/sha1dc/sha1.c:185:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND4_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:775:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND4_STEP(a, b, c, d, e, W, 75, temp);
        ^
/datasets/git/sha1dc/sha1.c:185:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND4_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:780:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND4_STEP(e, a, b, c, d, W, 76, temp);
        ^
/datasets/git/sha1dc/sha1.c:185:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND4_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:785:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND4_STEP(d, e, a, b, c, W, 77, temp);
        ^
/datasets/git/sha1dc/sha1.c:185:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND4_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:790:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND4_STEP(c, d, e, a, b, W, 78, temp);
        ^
/datasets/git/sha1dc/sha1.c:185:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND4_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:795:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        SHA1COMPRESS_FULL_ROUND4_STEP(b, c, d, e, a, W, 79, temp);
        ^
/datasets/git/sha1dc/sha1.c:185:10: note: expanded from macro 'SHA1COMPRESS_FULL_ROUND4_STEP'
        {temp = sha1_mix(W, t); sha1_store(W, t, temp); e += temp + rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6; b = rotate_left(b, 30); }
                ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:139:26: note: expanded from macro 'sha1_mix'
#define sha1_mix(W, t)  (rotate_left(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:134:29: note: expanded from macro 'rotate_left'
#define rotate_left(x,n)  (((x)<<(n))|((x)>>(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:809:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 79) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(b, c, d, e, a, me2, 79); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:810:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 78) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(c, d, e, a, b, me2, 78); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:811:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 77) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(d, e, a, b, c, me2, 77); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:812:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 76) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(e, a, b, c, d, me2, 76); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:813:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 75) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(a, b, c, d, e, me2, 75); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:814:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 74) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(b, c, d, e, a, me2, 74); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:815:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 73) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(c, d, e, a, b, me2, 73); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:816:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 72) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(d, e, a, b, c, me2, 72); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:817:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 71) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(e, a, b, c, d, me2, 71); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:818:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 70) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(a, b, c, d, e, me2, 70); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:819:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 69) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(b, c, d, e, a, me2, 69); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:820:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 68) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(c, d, e, a, b, me2, 68); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:821:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 67) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(d, e, a, b, c, me2, 67); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:822:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 66) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(e, a, b, c, d, me2, 66); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:823:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 65) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(a, b, c, d, e, me2, 65); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:824:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 64) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(b, c, d, e, a, me2, 64); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:825:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 63) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(c, d, e, a, b, me2, 63); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:826:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 62) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(d, e, a, b, c, me2, 62); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:827:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 61) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(e, a, b, c, d, me2, 61); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:828:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 60) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(a, b, c, d, e, me2, 60); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:829:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 59) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(b, c, d, e, a, me2, 59); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:830:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 58) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(c, d, e, a, b, me2, 58); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:831:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 57) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(d, e, a, b, c, me2, 57); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:832:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 56) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(e, a, b, c, d, me2, 56); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:833:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 55) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(a, b, c, d, e, me2, 55); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:834:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 54) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(b, c, d, e, a, me2, 54); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:835:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 53) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(c, d, e, a, b, me2, 53); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:836:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 52) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(d, e, a, b, c, me2, 52); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:837:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 51) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(e, a, b, c, d, me2, 51); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:838:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 50) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(a, b, c, d, e, me2, 50); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:839:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 49) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(b, c, d, e, a, me2, 49); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:840:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 48) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(c, d, e, a, b, me2, 48); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:841:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 47) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(d, e, a, b, c, me2, 47); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:842:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 46) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(e, a, b, c, d, me2, 46); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:843:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 45) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(a, b, c, d, e, me2, 45); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:844:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 44) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(b, c, d, e, a, me2, 44); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:845:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 43) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(c, d, e, a, b, me2, 43); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:846:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 42) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(d, e, a, b, c, me2, 42); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:847:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 41) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(e, a, b, c, d, me2, 41); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:848:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 40) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(a, b, c, d, e, me2, 40); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:849:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 39) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(b, c, d, e, a, me2, 39); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:850:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 38) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(c, d, e, a, b, me2, 38); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:851:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 37) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(d, e, a, b, c, me2, 37); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:852:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 36) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(e, a, b, c, d, me2, 36); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:853:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 35) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(a, b, c, d, e, me2, 35); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:854:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 34) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(b, c, d, e, a, me2, 34); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:855:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 33) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(c, d, e, a, b, me2, 33); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:856:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 32) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(d, e, a, b, c, me2, 32); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:857:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 31) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(e, a, b, c, d, me2, 31); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:858:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 30) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(a, b, c, d, e, me2, 30); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:859:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 29) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(b, c, d, e, a, me2, 29); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:860:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 28) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(c, d, e, a, b, me2, 28); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:861:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 27) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(d, e, a, b, c, me2, 27); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:862:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 26) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(e, a, b, c, d, me2, 26); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:863:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 25) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(a, b, c, d, e, me2, 25); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:864:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 24) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(b, c, d, e, a, me2, 24); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:865:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 23) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(c, d, e, a, b, me2, 23); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:866:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 22) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(d, e, a, b, c, me2, 22); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:867:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 21) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(e, a, b, c, d, me2, 21); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:868:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 20) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(a, b, c, d, e, me2, 20); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:869:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 19) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(b, c, d, e, a, me2, 19); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:870:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 18) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(c, d, e, a, b, me2, 18); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:871:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 17) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(d, e, a, b, c, me2, 17); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:872:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 16) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(e, a, b, c, d, me2, 16); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:873:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 15) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(a, b, c, d, e, me2, 15); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:874:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 14) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(b, c, d, e, a, me2, 14); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:875:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 13) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(c, d, e, a, b, me2, 13); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:876:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 12) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(d, e, a, b, c, me2, 12); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:877:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 11) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(e, a, b, c, d, me2, 11); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:878:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 10) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(a, b, c, d, e, me2, 10); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:879:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 9) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(b, c, d, e, a, me2, 9); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:880:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 8) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(c, d, e, a, b, me2, 8); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:881:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 7) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(d, e, a, b, c, me2, 7); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:882:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 6) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(e, a, b, c, d, me2, 6); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:883:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 5) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(a, b, c, d, e, me2, 5); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:884:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 4) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(b, c, d, e, a, me2, 4); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:885:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 3) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(c, d, e, a, b, me2, 3); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:886:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 2) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(d, e, a, b, c, me2, 2); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:887:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 1) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(e, a, b, c, d, me2, 1); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:888:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t > 0) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(a, b, c, d, e, me2, 0); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:891:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 0) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(a, b, c, d, e, me2, 0); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:892:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 1) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(e, a, b, c, d, me2, 1); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:893:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 2) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(d, e, a, b, c, me2, 2); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:894:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 3) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(c, d, e, a, b, me2, 3); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:895:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 4) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(b, c, d, e, a, me2, 4); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:896:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 5) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(a, b, c, d, e, me2, 5); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:897:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 6) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(e, a, b, c, d, me2, 6); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:898:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 7) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(d, e, a, b, c, me2, 7); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:899:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 8) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(c, d, e, a, b, me2, 8); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:900:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 9) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(b, c, d, e, a, me2, 9); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:901:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 10) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(a, b, c, d, e, me2, 10); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:902:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 11) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(e, a, b, c, d, me2, 11); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:903:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 12) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(d, e, a, b, c, me2, 12); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:904:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 13) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(c, d, e, a, b, me2, 13); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:905:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 14) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(b, c, d, e, a, me2, 14); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:906:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 15) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(a, b, c, d, e, me2, 15); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:907:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 16) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(e, a, b, c, d, me2, 16); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:908:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 17) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(d, e, a, b, c, me2, 17); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:909:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 18) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(c, d, e, a, b, me2, 18); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:910:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 19) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(b, c, d, e, a, me2, 19); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:911:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 20) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(a, b, c, d, e, me2, 20); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:912:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 21) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(e, a, b, c, d, me2, 21); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:913:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 22) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(d, e, a, b, c, me2, 22); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:914:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 23) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(c, d, e, a, b, me2, 23); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:915:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 24) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(b, c, d, e, a, me2, 24); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:916:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 25) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(a, b, c, d, e, me2, 25); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:917:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 26) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(e, a, b, c, d, me2, 26); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:918:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 27) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(d, e, a, b, c, me2, 27); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:919:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 28) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(c, d, e, a, b, me2, 28); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:920:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 29) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(b, c, d, e, a, me2, 29); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:921:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 30) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(a, b, c, d, e, me2, 30); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:922:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 31) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(e, a, b, c, d, me2, 31); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:923:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 32) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(d, e, a, b, c, me2, 32); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:924:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 33) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(c, d, e, a, b, me2, 33); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:925:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 34) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(b, c, d, e, a, me2, 34); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:926:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 35) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(a, b, c, d, e, me2, 35); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:927:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 36) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(e, a, b, c, d, me2, 36); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:928:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 37) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(d, e, a, b, c, me2, 37); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:929:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 38) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(c, d, e, a, b, me2, 38); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:930:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 39) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(b, c, d, e, a, me2, 39); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:931:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 40) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(a, b, c, d, e, me2, 40); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:932:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 41) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(e, a, b, c, d, me2, 41); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:933:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 42) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(d, e, a, b, c, me2, 42); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:934:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 43) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(c, d, e, a, b, me2, 43); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:935:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 44) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(b, c, d, e, a, me2, 44); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:936:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 45) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(a, b, c, d, e, me2, 45); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:937:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 46) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(e, a, b, c, d, me2, 46); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:938:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 47) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(d, e, a, b, c, me2, 47); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:939:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 48) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(c, d, e, a, b, me2, 48); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:940:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 49) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(b, c, d, e, a, me2, 49); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:941:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 50) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(a, b, c, d, e, me2, 50); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:942:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 51) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(e, a, b, c, d, me2, 51); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:943:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 52) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(d, e, a, b, c, me2, 52); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:944:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 53) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(c, d, e, a, b, me2, 53); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:945:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 54) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(b, c, d, e, a, me2, 54); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:946:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 55) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(a, b, c, d, e, me2, 55); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:947:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 56) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(e, a, b, c, d, me2, 56); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:948:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 57) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(d, e, a, b, c, me2, 57); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:949:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 58) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(c, d, e, a, b, me2, 58); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:950:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 59) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(b, c, d, e, a, me2, 59); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:951:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 60) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(a, b, c, d, e, me2, 60); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:952:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 61) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(e, a, b, c, d, me2, 61); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:953:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 62) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(d, e, a, b, c, me2, 62); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:954:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 63) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(c, d, e, a, b, me2, 63); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:955:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 64) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(b, c, d, e, a, me2, 64); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:956:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 65) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(a, b, c, d, e, me2, 65); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:957:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 66) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(e, a, b, c, d, me2, 66); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:958:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 67) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(d, e, a, b, c, me2, 67); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:959:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 68) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(c, d, e, a, b, me2, 68); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:960:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 69) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(b, c, d, e, a, me2, 69); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:961:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 70) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(a, b, c, d, e, me2, 70); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:962:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 71) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(e, a, b, c, d, me2, 71); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:963:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 72) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(d, e, a, b, c, me2, 72); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:964:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 73) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(c, d, e, a, b, me2, 73); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:965:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 74) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(b, c, d, e, a, me2, 74); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:966:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 75) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(a, b, c, d, e, me2, 75); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:967:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 76) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(e, a, b, c, d, me2, 76); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:968:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 77) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(d, e, a, b, c, me2, 77); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:969:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 78) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(c, d, e, a, b, me2, 78); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:970:6: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        if (t <= 79) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(b, c, d, e, a, me2, 79); \
            ^
            ()
/datasets/git/sha1dc/sha1.c:1212:1: warning: 2 adjacent parameters of 'sha1recompress_fast_58' of similar type ('const uint32_t *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:806:79: note: expanded from macro 'SHA1_RECOMPRESS'
static void sha1recompress_fast_ ## t (uint32_t ihvin[5], uint32_t ihvout[5], const uint32_t me2[80], const uint32_t state[5]) \
                                                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:1212:1: note: the first parameter in the range is 'me2'
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:806:94: note: expanded from macro 'SHA1_RECOMPRESS'
static void sha1recompress_fast_ ## t (uint32_t ihvin[5], uint32_t ihvout[5], const uint32_t me2[80], const uint32_t state[5]) \
                                                                                             ^~~
/datasets/git/sha1dc/sha1.c:1212:1: note: the last parameter in the range is 'state'
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:806:118: note: expanded from macro 'SHA1_RECOMPRESS'
static void sha1recompress_fast_ ## t (uint32_t ihvin[5], uint32_t ihvout[5], const uint32_t me2[80], const uint32_t state[5]) \
                                                                                                                     ^~~~~
/datasets/git/sha1dc/sha1.c:1212:1: warning: function 'sha1recompress_fast_58' exceeds recommended size/complexity thresholds [google-readability-function-size,hicpp-function-size,readability-function-size]
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:806:13: note: expanded from macro 'SHA1_RECOMPRESS'
static void sha1recompress_fast_ ## t (uint32_t ihvin[5], uint32_t ihvout[5], const uint32_t me2[80], const uint32_t state[5]) \
            ^
note: expanded from here
/datasets/git/sha1dc/sha1.c:1212:1: note: 816 statements (threshold 800)
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:806:13: note: expanded from macro 'SHA1_RECOMPRESS'
static void sha1recompress_fast_ ## t (uint32_t ihvin[5], uint32_t ihvout[5], const uint32_t me2[80], const uint32_t state[5]) \
            ^
note: expanded from here
/datasets/git/sha1dc/sha1.c:1212:1: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:809:14: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 79) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(b, c, d, e, a, me2, 79); \
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:170:8: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW'
        { b = rotate_right(b, 30); e -= rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6 + m[t]; }
              ^~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:133:29: note: expanded from macro 'rotate_right'
#define rotate_right(x,n) (((x)>>(n))|((x)<<(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:1212:1: warning: function 'sha1recompress_fast_58' has cognitive complexity of 160 (threshold 25) [readability-function-cognitive-complexity]
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:806:13: note: expanded from macro 'SHA1_RECOMPRESS'
static void sha1recompress_fast_ ## t (uint32_t ihvin[5], uint32_t ihvout[5], const uint32_t me2[80], const uint32_t state[5]) \
            ^
note: expanded from here
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:809:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 79) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(b, c, d, e, a, me2, 79); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:810:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 78) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(c, d, e, a, b, me2, 78); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:811:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 77) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(d, e, a, b, c, me2, 77); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:812:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 76) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(e, a, b, c, d, me2, 76); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:813:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 75) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(a, b, c, d, e, me2, 75); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:814:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 74) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(b, c, d, e, a, me2, 74); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:815:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 73) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(c, d, e, a, b, me2, 73); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:816:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 72) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(d, e, a, b, c, me2, 72); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:817:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 71) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(e, a, b, c, d, me2, 71); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:818:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 70) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(a, b, c, d, e, me2, 70); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:819:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 69) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(b, c, d, e, a, me2, 69); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:820:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 68) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(c, d, e, a, b, me2, 68); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:821:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 67) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(d, e, a, b, c, me2, 67); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:822:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 66) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(e, a, b, c, d, me2, 66); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:823:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 65) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(a, b, c, d, e, me2, 65); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:824:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 64) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(b, c, d, e, a, me2, 64); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:825:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 63) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(c, d, e, a, b, me2, 63); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:826:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 62) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(d, e, a, b, c, me2, 62); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:827:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 61) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(e, a, b, c, d, me2, 61); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:828:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 60) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(a, b, c, d, e, me2, 60); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:829:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 59) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(b, c, d, e, a, me2, 59); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:830:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 58) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(c, d, e, a, b, me2, 58); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:831:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 57) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(d, e, a, b, c, me2, 57); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:832:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 56) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(e, a, b, c, d, me2, 56); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:833:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 55) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(a, b, c, d, e, me2, 55); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:834:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 54) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(b, c, d, e, a, me2, 54); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:835:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 53) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(c, d, e, a, b, me2, 53); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:836:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 52) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(d, e, a, b, c, me2, 52); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:837:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 51) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(e, a, b, c, d, me2, 51); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:838:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 50) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(a, b, c, d, e, me2, 50); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:839:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 49) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(b, c, d, e, a, me2, 49); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:840:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 48) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(c, d, e, a, b, me2, 48); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:841:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 47) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(d, e, a, b, c, me2, 47); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:842:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 46) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(e, a, b, c, d, me2, 46); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:843:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 45) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(a, b, c, d, e, me2, 45); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:844:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 44) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(b, c, d, e, a, me2, 44); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:845:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 43) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(c, d, e, a, b, me2, 43); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:846:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 42) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(d, e, a, b, c, me2, 42); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:847:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 41) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(e, a, b, c, d, me2, 41); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:848:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 40) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(a, b, c, d, e, me2, 40); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:849:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 39) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(b, c, d, e, a, me2, 39); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:850:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 38) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(c, d, e, a, b, me2, 38); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:851:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 37) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(d, e, a, b, c, me2, 37); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:852:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 36) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(e, a, b, c, d, me2, 36); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:853:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 35) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(a, b, c, d, e, me2, 35); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:854:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 34) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(b, c, d, e, a, me2, 34); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:855:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 33) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(c, d, e, a, b, me2, 33); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:856:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 32) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(d, e, a, b, c, me2, 32); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:857:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 31) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(e, a, b, c, d, me2, 31); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:858:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 30) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(a, b, c, d, e, me2, 30); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:859:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 29) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(b, c, d, e, a, me2, 29); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:860:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 28) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(c, d, e, a, b, me2, 28); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:861:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 27) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(d, e, a, b, c, me2, 27); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:862:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 26) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(e, a, b, c, d, me2, 26); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:863:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 25) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(a, b, c, d, e, me2, 25); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:864:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 24) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(b, c, d, e, a, me2, 24); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:865:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 23) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(c, d, e, a, b, me2, 23); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:866:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 22) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(d, e, a, b, c, me2, 22); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:867:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 21) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(e, a, b, c, d, me2, 21); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:868:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 20) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(a, b, c, d, e, me2, 20); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:869:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 19) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(b, c, d, e, a, me2, 19); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:870:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 18) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(c, d, e, a, b, me2, 18); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:871:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 17) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(d, e, a, b, c, me2, 17); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:872:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 16) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(e, a, b, c, d, me2, 16); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:873:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 15) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(a, b, c, d, e, me2, 15); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:874:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 14) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(b, c, d, e, a, me2, 14); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:875:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 13) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(c, d, e, a, b, me2, 13); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:876:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 12) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(d, e, a, b, c, me2, 12); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:877:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 11) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(e, a, b, c, d, me2, 11); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:878:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 10) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(a, b, c, d, e, me2, 10); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:879:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 9) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(b, c, d, e, a, me2, 9); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:880:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 8) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(c, d, e, a, b, me2, 8); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:881:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 7) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(d, e, a, b, c, me2, 7); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:882:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 6) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(e, a, b, c, d, me2, 6); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:883:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 5) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(a, b, c, d, e, me2, 5); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:884:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 4) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(b, c, d, e, a, me2, 4); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:885:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 3) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(c, d, e, a, b, me2, 3); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:886:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 2) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(d, e, a, b, c, me2, 2); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:887:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 1) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(e, a, b, c, d, me2, 1); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:888:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 0) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(a, b, c, d, e, me2, 0); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:891:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 0) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(a, b, c, d, e, me2, 0); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:892:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 1) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(e, a, b, c, d, me2, 1); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:893:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 2) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(d, e, a, b, c, me2, 2); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:894:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 3) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(c, d, e, a, b, me2, 3); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:895:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 4) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(b, c, d, e, a, me2, 4); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:896:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 5) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(a, b, c, d, e, me2, 5); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:897:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 6) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(e, a, b, c, d, me2, 6); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:898:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 7) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(d, e, a, b, c, me2, 7); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:899:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 8) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(c, d, e, a, b, me2, 8); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:900:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 9) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(b, c, d, e, a, me2, 9); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:901:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 10) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(a, b, c, d, e, me2, 10); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:902:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 11) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(e, a, b, c, d, me2, 11); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:903:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 12) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(d, e, a, b, c, me2, 12); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:904:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 13) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(c, d, e, a, b, me2, 13); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:905:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 14) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(b, c, d, e, a, me2, 14); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:906:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 15) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(a, b, c, d, e, me2, 15); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:907:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 16) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(e, a, b, c, d, me2, 16); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:908:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 17) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(d, e, a, b, c, me2, 17); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:909:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 18) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(c, d, e, a, b, me2, 18); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:910:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 19) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(b, c, d, e, a, me2, 19); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:911:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 20) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(a, b, c, d, e, me2, 20); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:912:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 21) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(e, a, b, c, d, me2, 21); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:913:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 22) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(d, e, a, b, c, me2, 22); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:914:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 23) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(c, d, e, a, b, me2, 23); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:915:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 24) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(b, c, d, e, a, me2, 24); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:916:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 25) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(a, b, c, d, e, me2, 25); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:917:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 26) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(e, a, b, c, d, me2, 26); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:918:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 27) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(d, e, a, b, c, me2, 27); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:919:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 28) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(c, d, e, a, b, me2, 28); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:920:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 29) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(b, c, d, e, a, me2, 29); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:921:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 30) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(a, b, c, d, e, me2, 30); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:922:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 31) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(e, a, b, c, d, me2, 31); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:923:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 32) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(d, e, a, b, c, me2, 32); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:924:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 33) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(c, d, e, a, b, me2, 33); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:925:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 34) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(b, c, d, e, a, me2, 34); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:926:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 35) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(a, b, c, d, e, me2, 35); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:927:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 36) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(e, a, b, c, d, me2, 36); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:928:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 37) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(d, e, a, b, c, me2, 37); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:929:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 38) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(c, d, e, a, b, me2, 38); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:930:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 39) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(b, c, d, e, a, me2, 39); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:931:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 40) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(a, b, c, d, e, me2, 40); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:932:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 41) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(e, a, b, c, d, me2, 41); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:933:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 42) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(d, e, a, b, c, me2, 42); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:934:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 43) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(c, d, e, a, b, me2, 43); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:935:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 44) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(b, c, d, e, a, me2, 44); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:936:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 45) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(a, b, c, d, e, me2, 45); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:937:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 46) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(e, a, b, c, d, me2, 46); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:938:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 47) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(d, e, a, b, c, me2, 47); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:939:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 48) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(c, d, e, a, b, me2, 48); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:940:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 49) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(b, c, d, e, a, me2, 49); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:941:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 50) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(a, b, c, d, e, me2, 50); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:942:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 51) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(e, a, b, c, d, me2, 51); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:943:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 52) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(d, e, a, b, c, me2, 52); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:944:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 53) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(c, d, e, a, b, me2, 53); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:945:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 54) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(b, c, d, e, a, me2, 54); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:946:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 55) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(a, b, c, d, e, me2, 55); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:947:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 56) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(e, a, b, c, d, me2, 56); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:948:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 57) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(d, e, a, b, c, me2, 57); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:949:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 58) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(c, d, e, a, b, me2, 58); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:950:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 59) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(b, c, d, e, a, me2, 59); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:951:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 60) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(a, b, c, d, e, me2, 60); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:952:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 61) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(e, a, b, c, d, me2, 61); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:953:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 62) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(d, e, a, b, c, me2, 62); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:954:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 63) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(c, d, e, a, b, me2, 63); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:955:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 64) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(b, c, d, e, a, me2, 64); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:956:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 65) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(a, b, c, d, e, me2, 65); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:957:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 66) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(e, a, b, c, d, me2, 66); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:958:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 67) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(d, e, a, b, c, me2, 67); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:959:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 68) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(c, d, e, a, b, me2, 68); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:960:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 69) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(b, c, d, e, a, me2, 69); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:961:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 70) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(a, b, c, d, e, me2, 70); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:962:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 71) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(e, a, b, c, d, me2, 71); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:963:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 72) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(d, e, a, b, c, me2, 72); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:964:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 73) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(c, d, e, a, b, me2, 73); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:965:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 74) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(b, c, d, e, a, me2, 74); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:966:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 75) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(a, b, c, d, e, me2, 75); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:967:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 76) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(e, a, b, c, d, me2, 76); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:968:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 77) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(d, e, a, b, c, me2, 77); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:969:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 78) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(c, d, e, a, b, me2, 78); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:970:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 79) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(b, c, d, e, a, me2, 79); \
        ^
/datasets/git/sha1dc/sha1.c:1212:1: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:808:11: note: expanded from macro 'SHA1_RECOMPRESS'
        uint32_t a = state[0], b = state[1], c = state[2], d = state[3], e = state[4]; \
                 ^
/datasets/git/sha1dc/sha1.c:1212:1: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:808:25: note: expanded from macro 'SHA1_RECOMPRESS'
        uint32_t a = state[0], b = state[1], c = state[2], d = state[3], e = state[4]; \
                               ^
/datasets/git/sha1dc/sha1.c:1212:1: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:808:39: note: expanded from macro 'SHA1_RECOMPRESS'
        uint32_t a = state[0], b = state[1], c = state[2], d = state[3], e = state[4]; \
                                             ^
/datasets/git/sha1dc/sha1.c:1212:1: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:808:53: note: expanded from macro 'SHA1_RECOMPRESS'
        uint32_t a = state[0], b = state[1], c = state[2], d = state[3], e = state[4]; \
                                                           ^
/datasets/git/sha1dc/sha1.c:1212:1: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:808:67: note: expanded from macro 'SHA1_RECOMPRESS'
        uint32_t a = state[0], b = state[1], c = state[2], d = state[3], e = state[4]; \
                                                                         ^
/datasets/git/sha1dc/sha1.c:1212:1: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
SHA1_RECOMPRESS(58)
^
/datasets/git/sha1dc/sha1.c:808:2: note: expanded from macro 'SHA1_RECOMPRESS'
        uint32_t a = state[0], b = state[1], c = state[2], d = state[3], e = state[4]; \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: warning: 2 adjacent parameters of 'sha1recompress_fast_65' of similar type ('const uint32_t *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:806:79: note: expanded from macro 'SHA1_RECOMPRESS'
static void sha1recompress_fast_ ## t (uint32_t ihvin[5], uint32_t ihvout[5], const uint32_t me2[80], const uint32_t state[5]) \
                                                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:1240:1: note: the first parameter in the range is 'me2'
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:806:94: note: expanded from macro 'SHA1_RECOMPRESS'
static void sha1recompress_fast_ ## t (uint32_t ihvin[5], uint32_t ihvout[5], const uint32_t me2[80], const uint32_t state[5]) \
                                                                                             ^~~
/datasets/git/sha1dc/sha1.c:1240:1: note: the last parameter in the range is 'state'
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:806:118: note: expanded from macro 'SHA1_RECOMPRESS'
static void sha1recompress_fast_ ## t (uint32_t ihvin[5], uint32_t ihvout[5], const uint32_t me2[80], const uint32_t state[5]) \
                                                                                                                     ^~~~~
/datasets/git/sha1dc/sha1.c:1240:1: warning: function 'sha1recompress_fast_65' exceeds recommended size/complexity thresholds [google-readability-function-size,hicpp-function-size,readability-function-size]
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:806:13: note: expanded from macro 'SHA1_RECOMPRESS'
static void sha1recompress_fast_ ## t (uint32_t ihvin[5], uint32_t ihvout[5], const uint32_t me2[80], const uint32_t state[5]) \
            ^
note: expanded from here
/datasets/git/sha1dc/sha1.c:1240:1: note: 816 statements (threshold 800)
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:806:13: note: expanded from macro 'SHA1_RECOMPRESS'
static void sha1recompress_fast_ ## t (uint32_t ihvin[5], uint32_t ihvout[5], const uint32_t me2[80], const uint32_t state[5]) \
            ^
note: expanded from here
/datasets/git/sha1dc/sha1.c:1240:1: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:809:14: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 79) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(b, c, d, e, a, me2, 79); \
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:170:8: note: expanded from macro 'HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW'
        { b = rotate_right(b, 30); e -= rotate_left(a, 5) + sha1_f4(b,c,d) + 0xCA62C1D6 + m[t]; }
              ^~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:133:29: note: expanded from macro 'rotate_right'
#define rotate_right(x,n) (((x)>>(n))|((x)<<(32-(n))))
                            ^    ~~~
/datasets/git/sha1dc/sha1.c:1240:1: warning: function 'sha1recompress_fast_65' has cognitive complexity of 160 (threshold 25) [readability-function-cognitive-complexity]
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:806:13: note: expanded from macro 'SHA1_RECOMPRESS'
static void sha1recompress_fast_ ## t (uint32_t ihvin[5], uint32_t ihvout[5], const uint32_t me2[80], const uint32_t state[5]) \
            ^
note: expanded from here
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:809:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 79) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(b, c, d, e, a, me2, 79); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:810:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 78) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(c, d, e, a, b, me2, 78); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:811:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 77) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(d, e, a, b, c, me2, 77); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:812:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 76) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(e, a, b, c, d, me2, 76); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:813:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 75) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(a, b, c, d, e, me2, 75); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:814:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 74) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(b, c, d, e, a, me2, 74); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:815:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 73) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(c, d, e, a, b, me2, 73); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:816:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 72) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(d, e, a, b, c, me2, 72); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:817:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 71) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(e, a, b, c, d, me2, 71); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:818:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 70) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(a, b, c, d, e, me2, 70); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:819:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 69) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(b, c, d, e, a, me2, 69); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:820:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 68) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(c, d, e, a, b, me2, 68); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:821:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 67) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(d, e, a, b, c, me2, 67); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:822:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 66) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(e, a, b, c, d, me2, 66); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:823:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 65) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(a, b, c, d, e, me2, 65); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:824:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 64) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(b, c, d, e, a, me2, 64); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:825:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 63) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(c, d, e, a, b, me2, 63); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:826:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 62) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(d, e, a, b, c, me2, 62); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:827:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 61) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(e, a, b, c, d, me2, 61); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:828:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 60) HASHCLASH_SHA1COMPRESS_ROUND4_STEP_BW(a, b, c, d, e, me2, 60); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:829:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 59) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(b, c, d, e, a, me2, 59); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:830:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 58) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(c, d, e, a, b, me2, 58); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:831:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 57) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(d, e, a, b, c, me2, 57); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:832:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 56) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(e, a, b, c, d, me2, 56); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:833:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 55) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(a, b, c, d, e, me2, 55); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:834:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 54) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(b, c, d, e, a, me2, 54); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:835:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 53) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(c, d, e, a, b, me2, 53); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:836:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 52) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(d, e, a, b, c, me2, 52); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:837:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 51) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(e, a, b, c, d, me2, 51); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:838:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 50) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(a, b, c, d, e, me2, 50); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:839:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 49) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(b, c, d, e, a, me2, 49); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:840:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 48) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(c, d, e, a, b, me2, 48); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:841:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 47) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(d, e, a, b, c, me2, 47); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:842:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 46) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(e, a, b, c, d, me2, 46); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:843:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 45) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(a, b, c, d, e, me2, 45); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:844:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 44) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(b, c, d, e, a, me2, 44); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:845:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 43) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(c, d, e, a, b, me2, 43); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:846:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 42) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(d, e, a, b, c, me2, 42); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:847:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 41) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(e, a, b, c, d, me2, 41); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:848:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 40) HASHCLASH_SHA1COMPRESS_ROUND3_STEP_BW(a, b, c, d, e, me2, 40); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:849:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 39) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(b, c, d, e, a, me2, 39); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:850:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 38) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(c, d, e, a, b, me2, 38); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:851:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 37) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(d, e, a, b, c, me2, 37); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:852:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 36) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(e, a, b, c, d, me2, 36); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:853:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 35) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(a, b, c, d, e, me2, 35); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:854:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 34) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(b, c, d, e, a, me2, 34); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:855:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 33) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(c, d, e, a, b, me2, 33); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:856:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 32) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(d, e, a, b, c, me2, 32); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:857:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 31) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(e, a, b, c, d, me2, 31); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:858:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 30) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(a, b, c, d, e, me2, 30); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:859:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 29) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(b, c, d, e, a, me2, 29); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:860:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 28) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(c, d, e, a, b, me2, 28); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:861:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 27) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(d, e, a, b, c, me2, 27); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:862:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 26) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(e, a, b, c, d, me2, 26); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:863:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 25) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(a, b, c, d, e, me2, 25); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:864:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 24) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(b, c, d, e, a, me2, 24); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:865:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 23) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(c, d, e, a, b, me2, 23); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:866:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 22) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(d, e, a, b, c, me2, 22); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:867:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 21) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(e, a, b, c, d, me2, 21); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:868:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 20) HASHCLASH_SHA1COMPRESS_ROUND2_STEP_BW(a, b, c, d, e, me2, 20); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:869:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 19) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(b, c, d, e, a, me2, 19); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:870:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 18) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(c, d, e, a, b, me2, 18); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:871:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 17) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(d, e, a, b, c, me2, 17); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:872:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 16) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(e, a, b, c, d, me2, 16); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:873:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 15) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(a, b, c, d, e, me2, 15); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:874:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 14) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(b, c, d, e, a, me2, 14); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:875:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 13) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(c, d, e, a, b, me2, 13); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:876:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 12) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(d, e, a, b, c, me2, 12); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:877:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 11) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(e, a, b, c, d, me2, 11); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:878:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 10) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(a, b, c, d, e, me2, 10); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:879:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 9) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(b, c, d, e, a, me2, 9); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:880:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 8) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(c, d, e, a, b, me2, 8); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:881:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 7) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(d, e, a, b, c, me2, 7); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:882:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 6) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(e, a, b, c, d, me2, 6); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:883:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 5) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(a, b, c, d, e, me2, 5); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:884:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 4) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(b, c, d, e, a, me2, 4); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:885:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 3) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(c, d, e, a, b, me2, 3); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:886:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 2) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(d, e, a, b, c, me2, 2); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:887:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 1) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(e, a, b, c, d, me2, 1); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:888:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t > 0) HASHCLASH_SHA1COMPRESS_ROUND1_STEP_BW(a, b, c, d, e, me2, 0); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:891:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 0) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(a, b, c, d, e, me2, 0); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:892:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 1) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(e, a, b, c, d, me2, 1); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:893:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 2) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(d, e, a, b, c, me2, 2); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:894:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 3) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(c, d, e, a, b, me2, 3); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:895:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 4) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(b, c, d, e, a, me2, 4); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:896:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 5) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(a, b, c, d, e, me2, 5); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:897:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 6) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(e, a, b, c, d, me2, 6); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:898:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 7) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(d, e, a, b, c, me2, 7); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:899:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 8) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(c, d, e, a, b, me2, 8); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:900:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 9) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(b, c, d, e, a, me2, 9); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:901:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 10) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(a, b, c, d, e, me2, 10); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:902:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 11) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(e, a, b, c, d, me2, 11); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:903:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 12) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(d, e, a, b, c, me2, 12); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:904:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 13) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(c, d, e, a, b, me2, 13); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:905:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 14) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(b, c, d, e, a, me2, 14); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:906:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 15) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(a, b, c, d, e, me2, 15); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:907:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 16) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(e, a, b, c, d, me2, 16); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:908:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 17) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(d, e, a, b, c, me2, 17); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:909:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 18) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(c, d, e, a, b, me2, 18); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:910:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 19) HASHCLASH_SHA1COMPRESS_ROUND1_STEP(b, c, d, e, a, me2, 19); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:911:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 20) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(a, b, c, d, e, me2, 20); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:912:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 21) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(e, a, b, c, d, me2, 21); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:913:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 22) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(d, e, a, b, c, me2, 22); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:914:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 23) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(c, d, e, a, b, me2, 23); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:915:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 24) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(b, c, d, e, a, me2, 24); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:916:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 25) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(a, b, c, d, e, me2, 25); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:917:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 26) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(e, a, b, c, d, me2, 26); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:918:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 27) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(d, e, a, b, c, me2, 27); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:919:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 28) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(c, d, e, a, b, me2, 28); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:920:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 29) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(b, c, d, e, a, me2, 29); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:921:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 30) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(a, b, c, d, e, me2, 30); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:922:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 31) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(e, a, b, c, d, me2, 31); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:923:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 32) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(d, e, a, b, c, me2, 32); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:924:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 33) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(c, d, e, a, b, me2, 33); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:925:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 34) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(b, c, d, e, a, me2, 34); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:926:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 35) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(a, b, c, d, e, me2, 35); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:927:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 36) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(e, a, b, c, d, me2, 36); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:928:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 37) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(d, e, a, b, c, me2, 37); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:929:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 38) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(c, d, e, a, b, me2, 38); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:930:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 39) HASHCLASH_SHA1COMPRESS_ROUND2_STEP(b, c, d, e, a, me2, 39); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:931:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 40) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(a, b, c, d, e, me2, 40); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:932:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 41) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(e, a, b, c, d, me2, 41); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:933:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 42) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(d, e, a, b, c, me2, 42); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:934:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 43) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(c, d, e, a, b, me2, 43); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:935:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 44) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(b, c, d, e, a, me2, 44); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:936:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 45) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(a, b, c, d, e, me2, 45); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:937:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 46) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(e, a, b, c, d, me2, 46); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:938:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 47) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(d, e, a, b, c, me2, 47); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:939:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 48) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(c, d, e, a, b, me2, 48); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:940:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 49) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(b, c, d, e, a, me2, 49); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:941:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 50) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(a, b, c, d, e, me2, 50); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:942:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 51) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(e, a, b, c, d, me2, 51); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:943:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 52) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(d, e, a, b, c, me2, 52); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:944:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 53) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(c, d, e, a, b, me2, 53); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:945:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 54) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(b, c, d, e, a, me2, 54); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:946:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 55) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(a, b, c, d, e, me2, 55); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:947:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 56) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(e, a, b, c, d, me2, 56); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:948:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 57) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(d, e, a, b, c, me2, 57); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:949:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 58) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(c, d, e, a, b, me2, 58); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:950:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 59) HASHCLASH_SHA1COMPRESS_ROUND3_STEP(b, c, d, e, a, me2, 59); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:951:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 60) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(a, b, c, d, e, me2, 60); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:952:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 61) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(e, a, b, c, d, me2, 61); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:953:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 62) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(d, e, a, b, c, me2, 62); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:954:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 63) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(c, d, e, a, b, me2, 63); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:955:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 64) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(b, c, d, e, a, me2, 64); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:956:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 65) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(a, b, c, d, e, me2, 65); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:957:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 66) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(e, a, b, c, d, me2, 66); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:958:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 67) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(d, e, a, b, c, me2, 67); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:959:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 68) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(c, d, e, a, b, me2, 68); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:960:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 69) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(b, c, d, e, a, me2, 69); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:961:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 70) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(a, b, c, d, e, me2, 70); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:962:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 71) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(e, a, b, c, d, me2, 71); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:963:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 72) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(d, e, a, b, c, me2, 72); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:964:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 73) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(c, d, e, a, b, me2, 73); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:965:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 74) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(b, c, d, e, a, me2, 74); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:966:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 75) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(a, b, c, d, e, me2, 75); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:967:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 76) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(e, a, b, c, d, me2, 76); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:968:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 77) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(d, e, a, b, c, me2, 77); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:969:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 78) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(c, d, e, a, b, me2, 78); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: note: +1, including nesting penalty of 0, nesting level increased to 1
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:970:2: note: expanded from macro 'SHA1_RECOMPRESS'
        if (t <= 79) HASHCLASH_SHA1COMPRESS_ROUND4_STEP(b, c, d, e, a, me2, 79); \
        ^
/datasets/git/sha1dc/sha1.c:1240:1: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:808:11: note: expanded from macro 'SHA1_RECOMPRESS'
        uint32_t a = state[0], b = state[1], c = state[2], d = state[3], e = state[4]; \
                 ^
/datasets/git/sha1dc/sha1.c:1240:1: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:808:25: note: expanded from macro 'SHA1_RECOMPRESS'
        uint32_t a = state[0], b = state[1], c = state[2], d = state[3], e = state[4]; \
                               ^
/datasets/git/sha1dc/sha1.c:1240:1: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:808:39: note: expanded from macro 'SHA1_RECOMPRESS'
        uint32_t a = state[0], b = state[1], c = state[2], d = state[3], e = state[4]; \
                                             ^
/datasets/git/sha1dc/sha1.c:1240:1: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:808:53: note: expanded from macro 'SHA1_RECOMPRESS'
        uint32_t a = state[0], b = state[1], c = state[2], d = state[3], e = state[4]; \
                                                           ^
/datasets/git/sha1dc/sha1.c:1240:1: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:808:67: note: expanded from macro 'SHA1_RECOMPRESS'
        uint32_t a = state[0], b = state[1], c = state[2], d = state[3], e = state[4]; \
                                                                         ^
/datasets/git/sha1dc/sha1.c:1240:1: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
SHA1_RECOMPRESS(65)
^
/datasets/git/sha1dc/sha1.c:808:2: note: expanded from macro 'SHA1_RECOMPRESS'
        uint32_t a = state[0], b = state[1], c = state[2], d = state[3], e = state[4]; \
        ^
/datasets/git/sha1dc/sha1.c:1303:67: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
static void sha1_recompression_step(uint32_t step, uint32_t ihvin[5], uint32_t ihvout[5], const uint32_t me2[80], const uint32_t state[5])
                                                                  ^
/datasets/git/sha1dc/sha1.c:1303:87: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
static void sha1_recompression_step(uint32_t step, uint32_t ihvin[5], uint32_t ihvout[5], const uint32_t me2[80], const uint32_t state[5])
                                                                                      ^
/datasets/git/sha1dc/sha1.c:1303:110: warning: 80 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
static void sha1_recompression_step(uint32_t step, uint32_t ihvin[5], uint32_t ihvout[5], const uint32_t me2[80], const uint32_t state[5])
                                                                                                             ^
/datasets/git/sha1dc/sha1.c:1303:136: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
static void sha1_recompression_step(uint32_t step, uint32_t ihvin[5], uint32_t ihvout[5], const uint32_t me2[80], const uint32_t state[5])
                                                                                                                                       ^
/datasets/git/sha1dc/sha1.c:1598:7: warning: 58 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        case 58:
             ^
/datasets/git/sha1dc/sha1.c:1633:7: warning: 65 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        case 65:
             ^
/datasets/git/sha1dc/sha1.c:1715:13: warning: function 'sha1_process' has cognitive complexity of 30 (threshold 25) [readability-function-cognitive-complexity]
static void sha1_process(SHA1_CTX* ctx, const uint32_t block[16])
            ^
/datasets/git/sha1dc/sha1.c:1729:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ctx->detect_coll)
        ^
/datasets/git/sha1dc/sha1.c:1731:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ctx->ubc_check)
                ^
/datasets/git/sha1dc/sha1.c:1736:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ubc_dv_mask[0] != 0)
                ^
/datasets/git/sha1dc/sha1.c:1738:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (i = 0; sha1_dvs[i].dvType != 0; ++i)
                        ^
/datasets/git/sha1dc/sha1.c:1740:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (ubc_dv_mask[0] & ((uint32_t)(1) << sha1_dvs[i].maskb))
                                ^
/datasets/git/sha1dc/sha1.c:1742:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        for (j = 0; j < 80; ++j)
                                        ^
/datasets/git/sha1dc/sha1.c:1748:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if ((0 == ((ihvtmp[0] ^ ctx->ihv[0]) | (ihvtmp[1] ^ ctx->ihv[1]) | (ihvtmp[2] ^ ctx->ihv[2]) | (ihvtmp[3] ^ ctx->ihv[3]) | (ihvtmp[4] ^ ctx->ihv[4])))
                                        ^
/datasets/git/sha1dc/sha1.c:1749:7: note: +1
                                                || (ctx->reduced_round_coll && 0==((ctx->ihv1[0] ^ ctx->ihv2[0]) | (ctx->ihv1[1] ^ ctx->ihv2[1]) | (ctx->ihv1[2] ^ ctx->ihv2[2]) | (ctx->ihv1[3] ^ ctx->ihv2[3]) | (ctx->ihv1[4] ^ ctx->ihv2[4]))))
                                                ^
/datasets/git/sha1dc/sha1.c:1749:35: note: +1
                                                || (ctx->reduced_round_coll && 0==((ctx->ihv1[0] ^ ctx->ihv2[0]) | (ctx->ihv1[1] ^ ctx->ihv2[1]) | (ctx->ihv1[2] ^ ctx->ihv2[2]) | (ctx->ihv1[3] ^ ctx->ihv2[3]) | (ctx->ihv1[4] ^ ctx->ihv2[4]))))
                                                                            ^
/datasets/git/sha1dc/sha1.c:1753:7: note: +6, including nesting penalty of 5, nesting level increased to 6
                                                if (ctx->safe_hash)
                                                ^
/datasets/git/sha1dc/sha1.c:1715:62: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
static void sha1_process(SHA1_CTX* ctx, const uint32_t block[16])
                                                             ^
/datasets/git/sha1dc/sha1.c:1717:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned i, j;
        ^~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:1717:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned i, j;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sha1dc/sha1.c:1717:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sha1dc/sha1.c:1717:14: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        unsigned i, j;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sha1dc/sha1.c:1717:14: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sha1dc/sha1.c:1718:39: warning: 0xFFFFFFFF is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        uint32_t ubc_dv_mask[DVMASKSIZE] = { 0xFFFFFFFF };
                                             ^
/datasets/git/sha1dc/sha1.c:1719:18: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        uint32_t ihvtmp[5];
                        ^
/datasets/git/sha1dc/sha1.c:1740:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (ubc_dv_mask[0] & ((uint32_t)(1) << sha1_dvs[i].maskb))
                                                      ^                ~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:1742:6: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                        for (j = 0; j < 80; ++j)
                                        ^
/datasets/git/sha1dc/sha1.c:1742:22: warning: 80 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                        for (j = 0; j < 80; ++j)
                                                        ^
/datasets/git/sha1dc/sha1.c:1742:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        for (j = 0; j < 80; ++j)
                                                                ^
                                                                 {
/datasets/git/sha1dc/sha1.c:1770:16: warning: 0x67452301 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        ctx->ihv[0] = 0x67452301;
                      ^
/datasets/git/sha1dc/sha1.c:1771:16: warning: 0xEFCDAB89 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        ctx->ihv[1] = 0xEFCDAB89;
                      ^
/datasets/git/sha1dc/sha1.c:1772:16: warning: 0x98BADCFE is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        ctx->ihv[2] = 0x98BADCFE;
                      ^
/datasets/git/sha1dc/sha1.c:1773:16: warning: 0x10325476 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        ctx->ihv[3] = 0x10325476;
                      ^
/datasets/git/sha1dc/sha1.c:1774:16: warning: 0xC3D2E1F0 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        ctx->ihv[4] = 0xC3D2E1F0;
                      ^
/datasets/git/sha1dc/sha1.c:1785:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (safehash)
                     ^
                      {
/datasets/git/sha1dc/sha1.c:1787:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/sha1dc/sha1.c:1794:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ubc_check)
                      ^
                       {
/datasets/git/sha1dc/sha1.c:1796:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/sha1dc/sha1.c:1802:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (detect_coll)
                        ^
                         {
/datasets/git/sha1dc/sha1.c:1804:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/sha1dc/sha1.c:1810:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (reduced_round_coll)
                               ^
                                {
/datasets/git/sha1dc/sha1.c:1812:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/sha1dc/sha1.c:1823:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned left, fill;
        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/sha1dc/sha1.c:1823:11: warning: variable 'left' is not initialized [cppcoreguidelines-init-variables]
        unsigned left, fill;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sha1dc/sha1.c:1823:17: warning: variable 'fill' is not initialized [cppcoreguidelines-init-variables]
        unsigned left, fill;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sha1dc/sha1.c:1825:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len == 0)
                     ^
                      {
/datasets/git/sha1dc/sha1.c:1828:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        left = ctx->total & 63;
               ^            ~~
/datasets/git/sha1dc/sha1.c:1828:22: warning: 63 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        left = ctx->total & 63;
                            ^
/datasets/git/sha1dc/sha1.c:1829:9: warning: 64 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        fill = 64 - left;
               ^
/datasets/git/sha1dc/sha1.c:1834:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(ctx->buffer + left, buf, fill);
                ^~~~~~
/datasets/git/sha1dc/sha1.c:1834:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(ctx->buffer + left, buf, fill);
                ^~~~~~
/datasets/git/sha1dc/sha1.c:1840:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (len >= 64)
        ^
/datasets/git/sha1dc/sha1.c:1840:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (len >= 64)
               ^
/datasets/git/sha1dc/sha1.c:1840:16: warning: 64 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        while (len >= 64)
                      ^
/datasets/git/sha1dc/sha1.c:1842:17: warning: 64 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                ctx->total += 64;
                              ^
/datasets/git/sha1dc/sha1.c:1850:10: warning: 64 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                buf += 64;
                       ^
/datasets/git/sha1dc/sha1.c:1851:10: warning: 64 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                len -= 64;
                       ^
/datasets/git/sha1dc/sha1.c:1856:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(ctx->buffer + left, buf, len);
                ^~~~~~
/datasets/git/sha1dc/sha1.c:1856:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(ctx->buffer + left, buf, len);
                ^~~~~~
/datasets/git/sha1dc/sha1.c:1868:38: warning: 20 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
int SHA1DCFinal(unsigned char output[20], SHA1_CTX *ctx)
                                     ^
/datasets/git/sha1dc/sha1.c:1870:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        uint32_t last = ctx->total & 63;
                        ^            ~~
/datasets/git/sha1dc/sha1.c:1870:31: warning: 63 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        uint32_t last = ctx->total & 63;
                                     ^
/datasets/git/sha1dc/sha1.c:1871:26: warning: 56 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        uint32_t padn = (last < 56) ? (56 - last) : (120 - last);
                                ^
/datasets/git/sha1dc/sha1.c:1871:33: warning: 56 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        uint32_t padn = (last < 56) ? (56 - last) : (120 - last);
                                       ^
/datasets/git/sha1dc/sha1.c:1871:47: warning: 120 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        uint32_t padn = (last < 56) ? (56 - last) : (120 - last);
                                                     ^
/datasets/git/sha1dc/sha1.c:1872:11: warning: variable 'total' is not initialized [cppcoreguidelines-init-variables]
        uint64_t total;
                 ^
                       = 0
/datasets/git/sha1dc/sha1.c:1876:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        total <<= 3;
        ^         ~
/datasets/git/sha1dc/sha1.c:1877:14: warning: 56 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        ctx->buffer[56] = (unsigned char)(total >> 56);
                    ^
/datasets/git/sha1dc/sha1.c:1877:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ctx->buffer[56] = (unsigned char)(total >> 56);
                                          ^        ~~
/datasets/git/sha1dc/sha1.c:1877:45: warning: 56 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        ctx->buffer[56] = (unsigned char)(total >> 56);
                                                   ^
/datasets/git/sha1dc/sha1.c:1878:14: warning: 57 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        ctx->buffer[57] = (unsigned char)(total >> 48);
                    ^
/datasets/git/sha1dc/sha1.c:1878:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ctx->buffer[57] = (unsigned char)(total >> 48);
                                          ^        ~~
/datasets/git/sha1dc/sha1.c:1878:45: warning: 48 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        ctx->buffer[57] = (unsigned char)(total >> 48);
                                                   ^
/datasets/git/sha1dc/sha1.c:1879:14: warning: 58 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        ctx->buffer[58] = (unsigned char)(total >> 40);
                    ^
/datasets/git/sha1dc/sha1.c:1879:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ctx->buffer[58] = (unsigned char)(total >> 40);
                                          ^        ~~
/datasets/git/sha1dc/sha1.c:1879:45: warning: 40 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        ctx->buffer[58] = (unsigned char)(total >> 40);
                                                   ^
/datasets/git/sha1dc/sha1.c:1880:14: warning: 59 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        ctx->buffer[59] = (unsigned char)(total >> 32);
                    ^
/datasets/git/sha1dc/sha1.c:1880:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ctx->buffer[59] = (unsigned char)(total >> 32);
                                          ^        ~~
/datasets/git/sha1dc/sha1.c:1880:45: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        ctx->buffer[59] = (unsigned char)(total >> 32);
                                                   ^
/datasets/git/sha1dc/sha1.c:1881:14: warning: 60 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        ctx->buffer[60] = (unsigned char)(total >> 24);
                    ^
/datasets/git/sha1dc/sha1.c:1881:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ctx->buffer[60] = (unsigned char)(total >> 24);
                                          ^        ~~
/datasets/git/sha1dc/sha1.c:1881:45: warning: 24 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        ctx->buffer[60] = (unsigned char)(total >> 24);
                                                   ^
/datasets/git/sha1dc/sha1.c:1882:14: warning: 61 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        ctx->buffer[61] = (unsigned char)(total >> 16);
                    ^
/datasets/git/sha1dc/sha1.c:1882:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ctx->buffer[61] = (unsigned char)(total >> 16);
                                          ^        ~~
/datasets/git/sha1dc/sha1.c:1882:45: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        ctx->buffer[61] = (unsigned char)(total >> 16);
                                                   ^
/datasets/git/sha1dc/sha1.c:1883:14: warning: 62 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        ctx->buffer[62] = (unsigned char)(total >> 8);
                    ^
/datasets/git/sha1dc/sha1.c:1883:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ctx->buffer[62] = (unsigned char)(total >> 8);
                                          ^        ~
/datasets/git/sha1dc/sha1.c:1883:45: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        ctx->buffer[62] = (unsigned char)(total >> 8);
                                                   ^
/datasets/git/sha1dc/sha1.c:1884:14: warning: 63 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        ctx->buffer[63] = (unsigned char)(total);
                    ^
/datasets/git/sha1dc/sha1.c:1886:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        output[0] = (unsigned char)(ctx->ihv[0] >> 24);
                                    ^              ~~
/datasets/git/sha1dc/sha1.c:1886:45: warning: 24 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        output[0] = (unsigned char)(ctx->ihv[0] >> 24);
                                                   ^
/datasets/git/sha1dc/sha1.c:1887:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        output[1] = (unsigned char)(ctx->ihv[0] >> 16);
                                    ^              ~~
/datasets/git/sha1dc/sha1.c:1887:45: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        output[1] = (unsigned char)(ctx->ihv[0] >> 16);
                                                   ^
/datasets/git/sha1dc/sha1.c:1888:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        output[2] = (unsigned char)(ctx->ihv[0] >> 8);
                                    ^              ~
/datasets/git/sha1dc/sha1.c:1888:45: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        output[2] = (unsigned char)(ctx->ihv[0] >> 8);
                                                   ^
/datasets/git/sha1dc/sha1.c:1890:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        output[4] = (unsigned char)(ctx->ihv[1] >> 24);
                                    ^              ~~
/datasets/git/sha1dc/sha1.c:1890:45: warning: 24 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        output[4] = (unsigned char)(ctx->ihv[1] >> 24);
                                                   ^
/datasets/git/sha1dc/sha1.c:1891:9: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        output[5] = (unsigned char)(ctx->ihv[1] >> 16);
               ^
/datasets/git/sha1dc/sha1.c:1891:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        output[5] = (unsigned char)(ctx->ihv[1] >> 16);
                                    ^              ~~
/datasets/git/sha1dc/sha1.c:1891:45: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        output[5] = (unsigned char)(ctx->ihv[1] >> 16);
                                                   ^
/datasets/git/sha1dc/sha1.c:1892:9: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        output[6] = (unsigned char)(ctx->ihv[1] >> 8);
               ^
/datasets/git/sha1dc/sha1.c:1892:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        output[6] = (unsigned char)(ctx->ihv[1] >> 8);
                                    ^              ~
/datasets/git/sha1dc/sha1.c:1892:45: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        output[6] = (unsigned char)(ctx->ihv[1] >> 8);
                                                   ^
/datasets/git/sha1dc/sha1.c:1893:9: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        output[7] = (unsigned char)(ctx->ihv[1]);
               ^
/datasets/git/sha1dc/sha1.c:1894:9: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        output[8] = (unsigned char)(ctx->ihv[2] >> 24);
               ^
/datasets/git/sha1dc/sha1.c:1894:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        output[8] = (unsigned char)(ctx->ihv[2] >> 24);
                                    ^              ~~
/datasets/git/sha1dc/sha1.c:1894:45: warning: 24 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        output[8] = (unsigned char)(ctx->ihv[2] >> 24);
                                                   ^
/datasets/git/sha1dc/sha1.c:1895:9: warning: 9 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        output[9] = (unsigned char)(ctx->ihv[2] >> 16);
               ^
/datasets/git/sha1dc/sha1.c:1895:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        output[9] = (unsigned char)(ctx->ihv[2] >> 16);
                                    ^              ~~
/datasets/git/sha1dc/sha1.c:1895:45: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        output[9] = (unsigned char)(ctx->ihv[2] >> 16);
                                                   ^
/datasets/git/sha1dc/sha1.c:1896:9: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        output[10] = (unsigned char)(ctx->ihv[2] >> 8);
               ^
/datasets/git/sha1dc/sha1.c:1896:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        output[10] = (unsigned char)(ctx->ihv[2] >> 8);
                                     ^              ~
/datasets/git/sha1dc/sha1.c:1896:46: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        output[10] = (unsigned char)(ctx->ihv[2] >> 8);
                                                    ^
/datasets/git/sha1dc/sha1.c:1897:9: warning: 11 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        output[11] = (unsigned char)(ctx->ihv[2]);
               ^
/datasets/git/sha1dc/sha1.c:1898:9: warning: 12 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        output[12] = (unsigned char)(ctx->ihv[3] >> 24);
               ^
/datasets/git/sha1dc/sha1.c:1898:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        output[12] = (unsigned char)(ctx->ihv[3] >> 24);
                                     ^              ~~
/datasets/git/sha1dc/sha1.c:1898:46: warning: 24 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        output[12] = (unsigned char)(ctx->ihv[3] >> 24);
                                                    ^
/datasets/git/sha1dc/sha1.c:1899:9: warning: 13 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        output[13] = (unsigned char)(ctx->ihv[3] >> 16);
               ^
/datasets/git/sha1dc/sha1.c:1899:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        output[13] = (unsigned char)(ctx->ihv[3] >> 16);
                                     ^              ~~
/datasets/git/sha1dc/sha1.c:1899:46: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        output[13] = (unsigned char)(ctx->ihv[3] >> 16);
                                                    ^
/datasets/git/sha1dc/sha1.c:1900:9: warning: 14 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        output[14] = (unsigned char)(ctx->ihv[3] >> 8);
               ^
/datasets/git/sha1dc/sha1.c:1900:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        output[14] = (unsigned char)(ctx->ihv[3] >> 8);
                                     ^              ~
/datasets/git/sha1dc/sha1.c:1900:46: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        output[14] = (unsigned char)(ctx->ihv[3] >> 8);
                                                    ^
/datasets/git/sha1dc/sha1.c:1901:9: warning: 15 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        output[15] = (unsigned char)(ctx->ihv[3]);
               ^
/datasets/git/sha1dc/sha1.c:1902:9: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        output[16] = (unsigned char)(ctx->ihv[4] >> 24);
               ^
/datasets/git/sha1dc/sha1.c:1902:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        output[16] = (unsigned char)(ctx->ihv[4] >> 24);
                                     ^              ~~
/datasets/git/sha1dc/sha1.c:1902:46: warning: 24 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        output[16] = (unsigned char)(ctx->ihv[4] >> 24);
                                                    ^
/datasets/git/sha1dc/sha1.c:1903:9: warning: 17 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        output[17] = (unsigned char)(ctx->ihv[4] >> 16);
               ^
/datasets/git/sha1dc/sha1.c:1903:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        output[17] = (unsigned char)(ctx->ihv[4] >> 16);
                                     ^              ~~
/datasets/git/sha1dc/sha1.c:1903:46: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        output[17] = (unsigned char)(ctx->ihv[4] >> 16);
                                                    ^
/datasets/git/sha1dc/sha1.c:1904:9: warning: 18 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        output[18] = (unsigned char)(ctx->ihv[4] >> 8);
               ^
/datasets/git/sha1dc/sha1.c:1904:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        output[18] = (unsigned char)(ctx->ihv[4] >> 8);
                                     ^              ~
/datasets/git/sha1dc/sha1.c:1904:46: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        output[18] = (unsigned char)(ctx->ihv[4] >> 8);
                                                    ^
/datasets/git/sha1dc/sha1.c:1905:9: warning: 19 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        output[19] = (unsigned char)(ctx->ihv[4]);
               ^
/datasets/git/sha1dc/ubc_check.c:35:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
static const uint32_t DV_I_43_0_bit     = (uint32_t)(1) << 0;
                                          ^                ~
/datasets/git/sha1dc/ubc_check.c:36:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
static const uint32_t DV_I_44_0_bit     = (uint32_t)(1) << 1;
                                          ^                ~
/datasets/git/sha1dc/ubc_check.c:37:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
static const uint32_t DV_I_45_0_bit     = (uint32_t)(1) << 2;
                                          ^                ~
/datasets/git/sha1dc/ubc_check.c:38:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
static const uint32_t DV_I_46_0_bit     = (uint32_t)(1) << 3;
                                          ^                ~
/datasets/git/sha1dc/ubc_check.c:39:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
static const uint32_t DV_I_46_2_bit     = (uint32_t)(1) << 4;
                                          ^                ~
/datasets/git/sha1dc/ubc_check.c:40:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
static const uint32_t DV_I_47_0_bit     = (uint32_t)(1) << 5;
                                          ^                ~
/datasets/git/sha1dc/ubc_check.c:41:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
static const uint32_t DV_I_47_2_bit     = (uint32_t)(1) << 6;
                                          ^                ~
/datasets/git/sha1dc/ubc_check.c:42:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
static const uint32_t DV_I_48_0_bit     = (uint32_t)(1) << 7;
                                          ^                ~
/datasets/git/sha1dc/ubc_check.c:43:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
static const uint32_t DV_I_48_2_bit     = (uint32_t)(1) << 8;
                                          ^                ~
/datasets/git/sha1dc/ubc_check.c:44:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
static const uint32_t DV_I_49_0_bit     = (uint32_t)(1) << 9;
                                          ^                ~
/datasets/git/sha1dc/ubc_check.c:45:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
static const uint32_t DV_I_49_2_bit     = (uint32_t)(1) << 10;
                                          ^                ~~
/datasets/git/sha1dc/ubc_check.c:46:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
static const uint32_t DV_I_50_0_bit     = (uint32_t)(1) << 11;
                                          ^                ~~
/datasets/git/sha1dc/ubc_check.c:47:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
static const uint32_t DV_I_50_2_bit     = (uint32_t)(1) << 12;
                                          ^                ~~
/datasets/git/sha1dc/ubc_check.c:48:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
static const uint32_t DV_I_51_0_bit     = (uint32_t)(1) << 13;
                                          ^                ~~
/datasets/git/sha1dc/ubc_check.c:49:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
static const uint32_t DV_I_51_2_bit     = (uint32_t)(1) << 14;
                                          ^                ~~
/datasets/git/sha1dc/ubc_check.c:50:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
static const uint32_t DV_I_52_0_bit     = (uint32_t)(1) << 15;
                                          ^                ~~
/datasets/git/sha1dc/ubc_check.c:51:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
static const uint32_t DV_II_45_0_bit    = (uint32_t)(1) << 16;
                                          ^                ~~
/datasets/git/sha1dc/ubc_check.c:52:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
static const uint32_t DV_II_46_0_bit    = (uint32_t)(1) << 17;
                                          ^                ~~
/datasets/git/sha1dc/ubc_check.c:53:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
static const uint32_t DV_II_46_2_bit    = (uint32_t)(1) << 18;
                                          ^                ~~
/datasets/git/sha1dc/ubc_check.c:54:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
static const uint32_t DV_II_47_0_bit    = (uint32_t)(1) << 19;
                                          ^                ~~
/datasets/git/sha1dc/ubc_check.c:55:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
static const uint32_t DV_II_48_0_bit    = (uint32_t)(1) << 20;
                                          ^                ~~
/datasets/git/sha1dc/ubc_check.c:56:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
static const uint32_t DV_II_49_0_bit    = (uint32_t)(1) << 21;
                                          ^                ~~
/datasets/git/sha1dc/ubc_check.c:57:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
static const uint32_t DV_II_49_2_bit    = (uint32_t)(1) << 22;
                                          ^                ~~
/datasets/git/sha1dc/ubc_check.c:58:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
static const uint32_t DV_II_50_0_bit    = (uint32_t)(1) << 23;
                                          ^                ~~
/datasets/git/sha1dc/ubc_check.c:59:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
static const uint32_t DV_II_50_2_bit    = (uint32_t)(1) << 24;
                                          ^                ~~
/datasets/git/sha1dc/ubc_check.c:60:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
static const uint32_t DV_II_51_0_bit    = (uint32_t)(1) << 25;
                                          ^                ~~
/datasets/git/sha1dc/ubc_check.c:61:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
static const uint32_t DV_II_51_2_bit    = (uint32_t)(1) << 26;
                                          ^                ~~
/datasets/git/sha1dc/ubc_check.c:62:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
static const uint32_t DV_II_52_0_bit    = (uint32_t)(1) << 27;
                                          ^                ~~
/datasets/git/sha1dc/ubc_check.c:63:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
static const uint32_t DV_II_53_0_bit    = (uint32_t)(1) << 28;
                                          ^                ~~
/datasets/git/sha1dc/ubc_check.c:64:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
static const uint32_t DV_II_54_0_bit    = (uint32_t)(1) << 29;
                                          ^                ~~
/datasets/git/sha1dc/ubc_check.c:65:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
static const uint32_t DV_II_55_0_bit    = (uint32_t)(1) << 30;
                                          ^                ~~
/datasets/git/sha1dc/ubc_check.c:66:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
static const uint32_t DV_II_56_0_bit    = (uint32_t)(1) << 31;
                                          ^                ~~
/datasets/git/sha1dc/ubc_check.c:68:11: warning: variable 'sha1_dvs' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
dv_info_t sha1_dvs[] =
          ^
/datasets/git/sha1dc/ubc_check.c:70:6: warning: 43 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
     ^
/datasets/git/sha1dc/ubc_check.c:70:11: warning: 58 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
          ^
/datasets/git/sha1dc/ubc_check.c:70:21: warning: 0x08000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                    ^
/datasets/git/sha1dc/ubc_check.c:70:32: warning: 0x9800000c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                               ^
/datasets/git/sha1dc/ubc_check.c:70:43: warning: 0xd8000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                          ^
/datasets/git/sha1dc/ubc_check.c:70:54: warning: 0x08000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                     ^
/datasets/git/sha1dc/ubc_check.c:70:65: warning: 0xb8000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                ^
/datasets/git/sha1dc/ubc_check.c:70:76: warning: 0x98000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                           ^
/datasets/git/sha1dc/ubc_check.c:70:87: warning: 0x60000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:70:98: warning: 0x00000008 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:70:109: warning: 0xc0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:70:120: warning: 0x90000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:70:131: warning: 0x10000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:70:142: warning: 0xb8000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:70:153: warning: 0x28000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:70:164: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:70:175: warning: 0x48000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:70:186: warning: 0x08000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:70:197: warning: 0x60000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:70:208: warning: 0x90000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:70:219: warning: 0xf0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:70:230: warning: 0x90000008 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:70:241: warning: 0xc0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:70:252: warning: 0x90000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:70:263: warning: 0xf0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:70:274: warning: 0xb0000008 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:70:285: warning: 0x40000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:70:296: warning: 0x90000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:70:307: warning: 0xf0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:70:318: warning: 0x90000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:70:329: warning: 0x60000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:70:340: warning: 0x90000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:70:351: warning: 0x90000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:70:362: warning: 0x90000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:70:373: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:70:384: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:70:395: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:70:406: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:70:417: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:70:428: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:70:450: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:70:461: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:70:472: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:70:483: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:70:494: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:70:505: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:70:527: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:70:538: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:70:670: warning: 0x00000020 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:70:692: warning: 0x40000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:70:703: warning: 0x40000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:70:714: warning: 0x40000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:70:725: warning: 0x80000004 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:70:736: warning: 0x80000080 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:70:747: warning: 0x80000006 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:70:758: warning: 0x00000049 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:70:769: warning: 0x00000103 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:70:780: warning: 0x80000009 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:70:791: warning: 0x80000012 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:70:802: warning: 0x80000202 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:70:813: warning: 0x00000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:70:824: warning: 0x00000164 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:70:835: warning: 0x00000408 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:70:846: warning: 0x800000e6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:70:857: warning: 0x8000004c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:70:868: warning: 0x00000803 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:70:879: warning: 0x80000161 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:70:890: warning: 0x80000599 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
  {1,43,0,58,0,0, { 0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161,0x80000599 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:71:6: warning: 44 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
     ^
/datasets/git/sha1dc/ubc_check.c:71:11: warning: 58 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
          ^
/datasets/git/sha1dc/ubc_check.c:71:21: warning: 0xb4000008 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                    ^
/datasets/git/sha1dc/ubc_check.c:71:32: warning: 0x08000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                               ^
/datasets/git/sha1dc/ubc_check.c:71:43: warning: 0x9800000c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                          ^
/datasets/git/sha1dc/ubc_check.c:71:54: warning: 0xd8000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                     ^
/datasets/git/sha1dc/ubc_check.c:71:65: warning: 0x08000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                ^
/datasets/git/sha1dc/ubc_check.c:71:76: warning: 0xb8000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                           ^
/datasets/git/sha1dc/ubc_check.c:71:87: warning: 0x98000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:71:98: warning: 0x60000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:71:109: warning: 0x00000008 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:71:120: warning: 0xc0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:71:131: warning: 0x90000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:71:142: warning: 0x10000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:71:153: warning: 0xb8000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:71:164: warning: 0x28000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:71:175: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:71:186: warning: 0x48000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:71:197: warning: 0x08000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:71:208: warning: 0x60000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:71:219: warning: 0x90000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:71:230: warning: 0xf0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:71:241: warning: 0x90000008 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:71:252: warning: 0xc0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:71:263: warning: 0x90000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:71:274: warning: 0xf0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:71:285: warning: 0xb0000008 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:71:296: warning: 0x40000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:71:307: warning: 0x90000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:71:318: warning: 0xf0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:71:329: warning: 0x90000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:71:340: warning: 0x60000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:71:351: warning: 0x90000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:71:362: warning: 0x90000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:71:373: warning: 0x90000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:71:384: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:71:395: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:71:406: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:71:417: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:71:428: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:71:439: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:71:461: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:71:472: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:71:483: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:71:494: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:71:505: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:71:516: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:71:538: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:71:549: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:71:681: warning: 0x00000020 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:71:703: warning: 0x40000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:71:714: warning: 0x40000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:71:725: warning: 0x40000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:71:736: warning: 0x80000004 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:71:747: warning: 0x80000080 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:71:758: warning: 0x80000006 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:71:769: warning: 0x00000049 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:71:780: warning: 0x00000103 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:71:791: warning: 0x80000009 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:71:802: warning: 0x80000012 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:71:813: warning: 0x80000202 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:71:824: warning: 0x00000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:71:835: warning: 0x00000164 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:71:846: warning: 0x00000408 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:71:857: warning: 0x800000e6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:71:868: warning: 0x8000004c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:71:879: warning: 0x00000803 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:71:890: warning: 0x80000161 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,44,0,58,0,1, { 0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803,0x80000161 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:72:6: warning: 45 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
     ^
/datasets/git/sha1dc/ubc_check.c:72:11: warning: 58 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
          ^
/datasets/git/sha1dc/ubc_check.c:72:21: warning: 0xf4000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                    ^
/datasets/git/sha1dc/ubc_check.c:72:32: warning: 0xb4000008 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                               ^
/datasets/git/sha1dc/ubc_check.c:72:43: warning: 0x08000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                          ^
/datasets/git/sha1dc/ubc_check.c:72:54: warning: 0x9800000c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                     ^
/datasets/git/sha1dc/ubc_check.c:72:65: warning: 0xd8000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                ^
/datasets/git/sha1dc/ubc_check.c:72:76: warning: 0x08000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                           ^
/datasets/git/sha1dc/ubc_check.c:72:87: warning: 0xb8000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:72:98: warning: 0x98000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:72:109: warning: 0x60000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:72:120: warning: 0x00000008 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:72:131: warning: 0xc0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:72:142: warning: 0x90000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:72:153: warning: 0x10000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:72:164: warning: 0xb8000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:72:175: warning: 0x28000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:72:186: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:72:197: warning: 0x48000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:72:208: warning: 0x08000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:72:219: warning: 0x60000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:72:230: warning: 0x90000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:72:241: warning: 0xf0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:72:252: warning: 0x90000008 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:72:263: warning: 0xc0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:72:274: warning: 0x90000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:72:285: warning: 0xf0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:72:296: warning: 0xb0000008 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:72:307: warning: 0x40000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:72:318: warning: 0x90000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:72:329: warning: 0xf0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:72:340: warning: 0x90000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:72:351: warning: 0x60000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:72:362: warning: 0x90000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:72:373: warning: 0x90000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:72:384: warning: 0x90000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:72:395: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:72:406: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:72:417: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:72:428: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:72:439: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:72:450: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:72:472: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:72:483: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:72:494: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:72:505: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:72:516: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:72:527: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:72:549: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:72:560: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:72:692: warning: 0x00000020 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:72:714: warning: 0x40000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:72:725: warning: 0x40000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:72:736: warning: 0x40000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:72:747: warning: 0x80000004 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:72:758: warning: 0x80000080 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:72:769: warning: 0x80000006 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:72:780: warning: 0x00000049 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:72:791: warning: 0x00000103 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:72:802: warning: 0x80000009 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:72:813: warning: 0x80000012 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:72:824: warning: 0x80000202 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:72:835: warning: 0x00000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:72:846: warning: 0x00000164 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:72:857: warning: 0x00000408 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:72:868: warning: 0x800000e6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:72:879: warning: 0x8000004c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:72:890: warning: 0x00000803 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,45,0,58,0,2, { 0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c,0x00000803 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:73:6: warning: 46 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
     ^
/datasets/git/sha1dc/ubc_check.c:73:11: warning: 58 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
          ^
/datasets/git/sha1dc/ubc_check.c:73:21: warning: 0x2c000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                    ^
/datasets/git/sha1dc/ubc_check.c:73:32: warning: 0xf4000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                               ^
/datasets/git/sha1dc/ubc_check.c:73:43: warning: 0xb4000008 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                          ^
/datasets/git/sha1dc/ubc_check.c:73:54: warning: 0x08000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                     ^
/datasets/git/sha1dc/ubc_check.c:73:65: warning: 0x9800000c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                ^
/datasets/git/sha1dc/ubc_check.c:73:76: warning: 0xd8000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                           ^
/datasets/git/sha1dc/ubc_check.c:73:87: warning: 0x08000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:73:98: warning: 0xb8000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:73:109: warning: 0x98000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:73:120: warning: 0x60000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:73:131: warning: 0x00000008 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:73:142: warning: 0xc0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:73:153: warning: 0x90000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:73:164: warning: 0x10000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:73:175: warning: 0xb8000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:73:186: warning: 0x28000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:73:197: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:73:208: warning: 0x48000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:73:219: warning: 0x08000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:73:230: warning: 0x60000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:73:241: warning: 0x90000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:73:252: warning: 0xf0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:73:263: warning: 0x90000008 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:73:274: warning: 0xc0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:73:285: warning: 0x90000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:73:296: warning: 0xf0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:73:307: warning: 0xb0000008 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:73:318: warning: 0x40000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:73:329: warning: 0x90000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:73:340: warning: 0xf0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:73:351: warning: 0x90000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:73:362: warning: 0x60000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:73:373: warning: 0x90000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:73:384: warning: 0x90000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:73:395: warning: 0x90000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:73:406: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:73:417: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:73:428: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:73:439: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:73:450: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:73:461: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:73:483: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:73:494: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:73:505: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:73:516: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:73:527: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:73:538: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:73:560: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:73:571: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:73:703: warning: 0x00000020 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:73:725: warning: 0x40000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:73:736: warning: 0x40000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:73:747: warning: 0x40000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:73:758: warning: 0x80000004 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:73:769: warning: 0x80000080 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:73:780: warning: 0x80000006 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:73:791: warning: 0x00000049 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:73:802: warning: 0x00000103 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:73:813: warning: 0x80000009 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:73:824: warning: 0x80000012 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:73:835: warning: 0x80000202 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:73:846: warning: 0x00000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:73:857: warning: 0x00000164 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:73:868: warning: 0x00000408 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:73:879: warning: 0x800000e6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:73:890: warning: 0x8000004c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,0,58,0,3, { 0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6,0x8000004c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:74:6: warning: 46 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
     ^
/datasets/git/sha1dc/ubc_check.c:74:11: warning: 58 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
          ^
/datasets/git/sha1dc/ubc_check.c:74:21: warning: 0xb0000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                    ^
/datasets/git/sha1dc/ubc_check.c:74:32: warning: 0xd0000053 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                               ^
/datasets/git/sha1dc/ubc_check.c:74:43: warning: 0xd0000022 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                          ^
/datasets/git/sha1dc/ubc_check.c:74:54: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                     ^
/datasets/git/sha1dc/ubc_check.c:74:65: warning: 0x60000032 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                ^
/datasets/git/sha1dc/ubc_check.c:74:76: warning: 0x60000043 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                           ^
/datasets/git/sha1dc/ubc_check.c:74:87: warning: 0x20000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:74:98: warning: 0xe0000042 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:74:109: warning: 0x60000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:74:120: warning: 0x80000001 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:74:131: warning: 0x00000020 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:74:153: warning: 0x40000052 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:74:164: warning: 0x40000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:74:175: warning: 0xe0000052 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:74:186: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:74:197: warning: 0x80000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:74:208: warning: 0x20000001 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:74:219: warning: 0x20000060 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:74:230: warning: 0x80000001 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:74:241: warning: 0x40000042 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:74:252: warning: 0xc0000043 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:74:263: warning: 0x40000022 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:74:285: warning: 0x40000042 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:74:296: warning: 0xc0000043 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:74:307: warning: 0xc0000022 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:74:329: warning: 0x40000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:74:340: warning: 0xc0000043 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:74:351: warning: 0x40000062 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:74:362: warning: 0x80000001 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:74:373: warning: 0x40000042 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:74:384: warning: 0x40000042 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:74:395: warning: 0x40000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:74:417: warning: 0x00000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:74:428: warning: 0x80000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:74:439: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:74:450: warning: 0x80000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:74:461: warning: 0x80000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:74:483: warning: 0x80000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:74:494: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:74:505: warning: 0x00000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:74:516: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:74:527: warning: 0x00000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:74:538: warning: 0x80000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:74:560: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:74:571: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:74:703: warning: 0x00000080 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:74:725: warning: 0x00000009 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:74:736: warning: 0x00000101 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:74:747: warning: 0x00000009 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:74:758: warning: 0x00000012 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:74:769: warning: 0x00000202 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:74:780: warning: 0x0000001a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:74:791: warning: 0x00000124 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:74:802: warning: 0x0000040c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:74:813: warning: 0x00000026 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:74:824: warning: 0x0000004a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:74:835: warning: 0x0000080a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:74:846: warning: 0x00000060 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:74:857: warning: 0x00000590 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:74:868: warning: 0x00001020 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:74:879: warning: 0x0000039a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:74:890: warning: 0x00000132 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,46,2,58,0,4, { 0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a,0x00000132 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:75:6: warning: 47 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
     ^
/datasets/git/sha1dc/ubc_check.c:75:11: warning: 58 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
          ^
/datasets/git/sha1dc/ubc_check.c:75:16: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
               ^
/datasets/git/sha1dc/ubc_check.c:75:21: warning: 0xc8000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                    ^
/datasets/git/sha1dc/ubc_check.c:75:32: warning: 0x2c000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                               ^
/datasets/git/sha1dc/ubc_check.c:75:43: warning: 0xf4000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                          ^
/datasets/git/sha1dc/ubc_check.c:75:54: warning: 0xb4000008 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                     ^
/datasets/git/sha1dc/ubc_check.c:75:65: warning: 0x08000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                ^
/datasets/git/sha1dc/ubc_check.c:75:76: warning: 0x9800000c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                           ^
/datasets/git/sha1dc/ubc_check.c:75:87: warning: 0xd8000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:75:98: warning: 0x08000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:75:109: warning: 0xb8000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:75:120: warning: 0x98000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:75:131: warning: 0x60000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:75:142: warning: 0x00000008 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:75:153: warning: 0xc0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:75:164: warning: 0x90000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:75:175: warning: 0x10000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:75:186: warning: 0xb8000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:75:197: warning: 0x28000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:75:208: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:75:219: warning: 0x48000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:75:230: warning: 0x08000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:75:241: warning: 0x60000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:75:252: warning: 0x90000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:75:263: warning: 0xf0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:75:274: warning: 0x90000008 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:75:285: warning: 0xc0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:75:296: warning: 0x90000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:75:307: warning: 0xf0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:75:318: warning: 0xb0000008 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:75:329: warning: 0x40000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:75:340: warning: 0x90000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:75:351: warning: 0xf0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:75:362: warning: 0x90000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:75:373: warning: 0x60000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:75:384: warning: 0x90000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:75:395: warning: 0x90000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:75:406: warning: 0x90000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:75:417: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:75:428: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:75:439: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:75:450: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:75:461: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:75:472: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:75:494: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:75:505: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:75:516: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:75:527: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:75:538: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:75:549: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:75:571: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:75:582: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:75:714: warning: 0x00000020 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:75:736: warning: 0x40000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:75:747: warning: 0x40000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:75:758: warning: 0x40000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:75:769: warning: 0x80000004 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:75:780: warning: 0x80000080 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:75:791: warning: 0x80000006 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:75:802: warning: 0x00000049 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:75:813: warning: 0x00000103 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:75:824: warning: 0x80000009 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:75:835: warning: 0x80000012 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:75:846: warning: 0x80000202 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:75:857: warning: 0x00000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:75:868: warning: 0x00000164 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:75:879: warning: 0x00000408 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:75:890: warning: 0x800000e6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,0,58,0,5, { 0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408,0x800000e6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:76:6: warning: 47 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
     ^
/datasets/git/sha1dc/ubc_check.c:76:11: warning: 58 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
          ^
/datasets/git/sha1dc/ubc_check.c:76:16: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
               ^
/datasets/git/sha1dc/ubc_check.c:76:21: warning: 0x20000043 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                    ^
/datasets/git/sha1dc/ubc_check.c:76:32: warning: 0xb0000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                               ^
/datasets/git/sha1dc/ubc_check.c:76:43: warning: 0xd0000053 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                          ^
/datasets/git/sha1dc/ubc_check.c:76:54: warning: 0xd0000022 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                     ^
/datasets/git/sha1dc/ubc_check.c:76:65: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                ^
/datasets/git/sha1dc/ubc_check.c:76:76: warning: 0x60000032 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                           ^
/datasets/git/sha1dc/ubc_check.c:76:87: warning: 0x60000043 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:76:98: warning: 0x20000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:76:109: warning: 0xe0000042 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:76:120: warning: 0x60000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:76:131: warning: 0x80000001 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:76:142: warning: 0x00000020 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:76:164: warning: 0x40000052 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:76:175: warning: 0x40000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:76:186: warning: 0xe0000052 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:76:197: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:76:208: warning: 0x80000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:76:219: warning: 0x20000001 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:76:230: warning: 0x20000060 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:76:241: warning: 0x80000001 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:76:252: warning: 0x40000042 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:76:263: warning: 0xc0000043 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:76:274: warning: 0x40000022 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:76:296: warning: 0x40000042 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:76:307: warning: 0xc0000043 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:76:318: warning: 0xc0000022 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:76:340: warning: 0x40000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:76:351: warning: 0xc0000043 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:76:362: warning: 0x40000062 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:76:373: warning: 0x80000001 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:76:384: warning: 0x40000042 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:76:395: warning: 0x40000042 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:76:406: warning: 0x40000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:76:428: warning: 0x00000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:76:439: warning: 0x80000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:76:450: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:76:461: warning: 0x80000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:76:472: warning: 0x80000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:76:494: warning: 0x80000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:76:505: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:76:516: warning: 0x00000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:76:527: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:76:538: warning: 0x00000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:76:549: warning: 0x80000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:76:571: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:76:582: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:76:714: warning: 0x00000080 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:76:736: warning: 0x00000009 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:76:747: warning: 0x00000101 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:76:758: warning: 0x00000009 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:76:769: warning: 0x00000012 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:76:780: warning: 0x00000202 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:76:791: warning: 0x0000001a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:76:802: warning: 0x00000124 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:76:813: warning: 0x0000040c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:76:824: warning: 0x00000026 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:76:835: warning: 0x0000004a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:76:846: warning: 0x0000080a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:76:857: warning: 0x00000060 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:76:868: warning: 0x00000590 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:76:879: warning: 0x00001020 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:76:890: warning: 0x0000039a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,47,2,58,0,6, { 0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020,0x0000039a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:77:6: warning: 48 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
     ^
/datasets/git/sha1dc/ubc_check.c:77:11: warning: 58 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
          ^
/datasets/git/sha1dc/ubc_check.c:77:16: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
               ^
/datasets/git/sha1dc/ubc_check.c:77:21: warning: 0xb800000a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                    ^
/datasets/git/sha1dc/ubc_check.c:77:32: warning: 0xc8000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                               ^
/datasets/git/sha1dc/ubc_check.c:77:43: warning: 0x2c000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                          ^
/datasets/git/sha1dc/ubc_check.c:77:54: warning: 0xf4000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                     ^
/datasets/git/sha1dc/ubc_check.c:77:65: warning: 0xb4000008 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                ^
/datasets/git/sha1dc/ubc_check.c:77:76: warning: 0x08000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                           ^
/datasets/git/sha1dc/ubc_check.c:77:87: warning: 0x9800000c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:77:98: warning: 0xd8000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:77:109: warning: 0x08000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:77:120: warning: 0xb8000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:77:131: warning: 0x98000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:77:142: warning: 0x60000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:77:153: warning: 0x00000008 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:77:164: warning: 0xc0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:77:175: warning: 0x90000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:77:186: warning: 0x10000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:77:197: warning: 0xb8000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:77:208: warning: 0x28000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:77:219: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:77:230: warning: 0x48000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:77:241: warning: 0x08000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:77:252: warning: 0x60000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:77:263: warning: 0x90000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:77:274: warning: 0xf0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:77:285: warning: 0x90000008 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:77:296: warning: 0xc0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:77:307: warning: 0x90000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:77:318: warning: 0xf0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:77:329: warning: 0xb0000008 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:77:340: warning: 0x40000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:77:351: warning: 0x90000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:77:362: warning: 0xf0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:77:373: warning: 0x90000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:77:384: warning: 0x60000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:77:395: warning: 0x90000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:77:406: warning: 0x90000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:77:417: warning: 0x90000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:77:428: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:77:439: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:77:450: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:77:461: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:77:472: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:77:483: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:77:505: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:77:516: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:77:527: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:77:538: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:77:549: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:77:560: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:77:582: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:77:593: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:77:725: warning: 0x00000020 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:77:747: warning: 0x40000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:77:758: warning: 0x40000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:77:769: warning: 0x40000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:77:780: warning: 0x80000004 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:77:791: warning: 0x80000080 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:77:802: warning: 0x80000006 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:77:813: warning: 0x00000049 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:77:824: warning: 0x00000103 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:77:835: warning: 0x80000009 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:77:846: warning: 0x80000012 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:77:857: warning: 0x80000202 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:77:868: warning: 0x00000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:77:879: warning: 0x00000164 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:77:890: warning: 0x00000408 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,0,58,0,7, { 0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164,0x00000408 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:78:6: warning: 48 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
     ^
/datasets/git/sha1dc/ubc_check.c:78:11: warning: 58 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
          ^
/datasets/git/sha1dc/ubc_check.c:78:16: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
               ^
/datasets/git/sha1dc/ubc_check.c:78:21: warning: 0xe000002a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                    ^
/datasets/git/sha1dc/ubc_check.c:78:32: warning: 0x20000043 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                               ^
/datasets/git/sha1dc/ubc_check.c:78:43: warning: 0xb0000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                          ^
/datasets/git/sha1dc/ubc_check.c:78:54: warning: 0xd0000053 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                     ^
/datasets/git/sha1dc/ubc_check.c:78:65: warning: 0xd0000022 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                ^
/datasets/git/sha1dc/ubc_check.c:78:76: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                           ^
/datasets/git/sha1dc/ubc_check.c:78:87: warning: 0x60000032 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:78:98: warning: 0x60000043 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:78:109: warning: 0x20000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:78:120: warning: 0xe0000042 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:78:131: warning: 0x60000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:78:142: warning: 0x80000001 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:78:153: warning: 0x00000020 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:78:175: warning: 0x40000052 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:78:186: warning: 0x40000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:78:197: warning: 0xe0000052 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:78:208: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:78:219: warning: 0x80000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:78:230: warning: 0x20000001 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:78:241: warning: 0x20000060 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:78:252: warning: 0x80000001 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:78:263: warning: 0x40000042 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:78:274: warning: 0xc0000043 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:78:285: warning: 0x40000022 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:78:307: warning: 0x40000042 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:78:318: warning: 0xc0000043 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:78:329: warning: 0xc0000022 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:78:351: warning: 0x40000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:78:362: warning: 0xc0000043 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:78:373: warning: 0x40000062 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:78:384: warning: 0x80000001 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:78:395: warning: 0x40000042 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:78:406: warning: 0x40000042 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:78:417: warning: 0x40000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:78:439: warning: 0x00000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:78:450: warning: 0x80000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:78:461: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:78:472: warning: 0x80000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:78:483: warning: 0x80000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:78:505: warning: 0x80000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:78:516: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:78:527: warning: 0x00000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:78:538: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:78:549: warning: 0x00000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:78:560: warning: 0x80000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:78:582: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:78:593: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:78:725: warning: 0x00000080 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:78:747: warning: 0x00000009 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:78:758: warning: 0x00000101 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:78:769: warning: 0x00000009 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:78:780: warning: 0x00000012 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:78:791: warning: 0x00000202 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:78:802: warning: 0x0000001a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:78:813: warning: 0x00000124 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:78:824: warning: 0x0000040c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:78:835: warning: 0x00000026 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:78:846: warning: 0x0000004a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:78:857: warning: 0x0000080a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:78:868: warning: 0x00000060 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:78:879: warning: 0x00000590 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:78:890: warning: 0x00001020 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,48,2,58,0,8, { 0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590,0x00001020 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:79:6: warning: 49 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
     ^
/datasets/git/sha1dc/ubc_check.c:79:11: warning: 58 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
          ^
/datasets/git/sha1dc/ubc_check.c:79:16: warning: 9 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
               ^
/datasets/git/sha1dc/ubc_check.c:79:21: warning: 0x18000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                    ^
/datasets/git/sha1dc/ubc_check.c:79:32: warning: 0xb800000a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                               ^
/datasets/git/sha1dc/ubc_check.c:79:43: warning: 0xc8000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                          ^
/datasets/git/sha1dc/ubc_check.c:79:54: warning: 0x2c000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                     ^
/datasets/git/sha1dc/ubc_check.c:79:65: warning: 0xf4000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                ^
/datasets/git/sha1dc/ubc_check.c:79:76: warning: 0xb4000008 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                           ^
/datasets/git/sha1dc/ubc_check.c:79:87: warning: 0x08000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:79:98: warning: 0x9800000c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:79:109: warning: 0xd8000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:79:120: warning: 0x08000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:79:131: warning: 0xb8000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:79:142: warning: 0x98000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:79:153: warning: 0x60000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:79:164: warning: 0x00000008 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:79:175: warning: 0xc0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:79:186: warning: 0x90000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:79:197: warning: 0x10000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:79:208: warning: 0xb8000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:79:219: warning: 0x28000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:79:230: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:79:241: warning: 0x48000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:79:252: warning: 0x08000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:79:263: warning: 0x60000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:79:274: warning: 0x90000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:79:285: warning: 0xf0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:79:296: warning: 0x90000008 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:79:307: warning: 0xc0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:79:318: warning: 0x90000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:79:329: warning: 0xf0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:79:340: warning: 0xb0000008 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:79:351: warning: 0x40000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:79:362: warning: 0x90000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:79:373: warning: 0xf0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:79:384: warning: 0x90000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:79:395: warning: 0x60000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:79:406: warning: 0x90000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:79:417: warning: 0x90000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:79:428: warning: 0x90000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:79:439: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:79:450: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:79:461: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:79:472: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:79:483: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:79:494: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:79:516: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:79:527: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:79:538: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:79:549: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:79:560: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:79:571: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:79:593: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:79:604: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:79:736: warning: 0x00000020 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:79:758: warning: 0x40000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:79:769: warning: 0x40000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:79:780: warning: 0x40000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:79:791: warning: 0x80000004 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:79:802: warning: 0x80000080 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:79:813: warning: 0x80000006 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:79:824: warning: 0x00000049 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:79:835: warning: 0x00000103 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:79:846: warning: 0x80000009 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:79:857: warning: 0x80000012 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:79:868: warning: 0x80000202 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:79:879: warning: 0x00000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:79:890: warning: 0x00000164 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,0,58,0,9, { 0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018,0x00000164 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:80:6: warning: 49 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
     ^
/datasets/git/sha1dc/ubc_check.c:80:11: warning: 58 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
          ^
/datasets/git/sha1dc/ubc_check.c:80:16: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
               ^
/datasets/git/sha1dc/ubc_check.c:80:22: warning: 0x60000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                     ^
/datasets/git/sha1dc/ubc_check.c:80:33: warning: 0xe000002a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                ^
/datasets/git/sha1dc/ubc_check.c:80:44: warning: 0x20000043 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                           ^
/datasets/git/sha1dc/ubc_check.c:80:55: warning: 0xb0000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                      ^
/datasets/git/sha1dc/ubc_check.c:80:66: warning: 0xd0000053 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                 ^
/datasets/git/sha1dc/ubc_check.c:80:77: warning: 0xd0000022 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                            ^
/datasets/git/sha1dc/ubc_check.c:80:88: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:80:99: warning: 0x60000032 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:80:110: warning: 0x60000043 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:80:121: warning: 0x20000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:80:132: warning: 0xe0000042 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:80:143: warning: 0x60000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:80:154: warning: 0x80000001 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:80:165: warning: 0x00000020 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:80:187: warning: 0x40000052 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:80:198: warning: 0x40000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:80:209: warning: 0xe0000052 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:80:220: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:80:231: warning: 0x80000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:80:242: warning: 0x20000001 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:80:253: warning: 0x20000060 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:80:264: warning: 0x80000001 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:80:275: warning: 0x40000042 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:80:286: warning: 0xc0000043 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:80:297: warning: 0x40000022 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:80:319: warning: 0x40000042 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:80:330: warning: 0xc0000043 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:80:341: warning: 0xc0000022 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:80:363: warning: 0x40000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:80:374: warning: 0xc0000043 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:80:385: warning: 0x40000062 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:80:396: warning: 0x80000001 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:80:407: warning: 0x40000042 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:80:418: warning: 0x40000042 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:80:429: warning: 0x40000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:80:451: warning: 0x00000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:80:462: warning: 0x80000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:80:473: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:80:484: warning: 0x80000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:80:495: warning: 0x80000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:80:517: warning: 0x80000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:80:528: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:80:539: warning: 0x00000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:80:550: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:80:561: warning: 0x00000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:80:572: warning: 0x80000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:80:594: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:80:605: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:80:737: warning: 0x00000080 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:80:759: warning: 0x00000009 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:80:770: warning: 0x00000101 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:80:781: warning: 0x00000009 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:80:792: warning: 0x00000012 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:80:803: warning: 0x00000202 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:80:814: warning: 0x0000001a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:80:825: warning: 0x00000124 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:80:836: warning: 0x0000040c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:80:847: warning: 0x00000026 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:80:858: warning: 0x0000004a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:80:869: warning: 0x0000080a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:80:880: warning: 0x00000060 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:80:891: warning: 0x00000590 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,49,2,58,0,10, { 0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060,0x00000590 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:81:6: warning: 50 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
     ^
/datasets/git/sha1dc/ubc_check.c:81:11: warning: 65 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
          ^
/datasets/git/sha1dc/ubc_check.c:81:16: warning: 11 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
               ^
/datasets/git/sha1dc/ubc_check.c:81:22: warning: 0x0800000c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                     ^
/datasets/git/sha1dc/ubc_check.c:81:33: warning: 0x18000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                ^
/datasets/git/sha1dc/ubc_check.c:81:44: warning: 0xb800000a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                           ^
/datasets/git/sha1dc/ubc_check.c:81:55: warning: 0xc8000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                      ^
/datasets/git/sha1dc/ubc_check.c:81:66: warning: 0x2c000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                 ^
/datasets/git/sha1dc/ubc_check.c:81:77: warning: 0xf4000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                            ^
/datasets/git/sha1dc/ubc_check.c:81:88: warning: 0xb4000008 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:81:99: warning: 0x08000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:81:110: warning: 0x9800000c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:81:121: warning: 0xd8000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:81:132: warning: 0x08000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:81:143: warning: 0xb8000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:81:154: warning: 0x98000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:81:165: warning: 0x60000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:81:176: warning: 0x00000008 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:81:187: warning: 0xc0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:81:198: warning: 0x90000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:81:209: warning: 0x10000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:81:220: warning: 0xb8000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:81:231: warning: 0x28000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:81:242: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:81:253: warning: 0x48000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:81:264: warning: 0x08000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:81:275: warning: 0x60000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:81:286: warning: 0x90000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:81:297: warning: 0xf0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:81:308: warning: 0x90000008 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:81:319: warning: 0xc0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:81:330: warning: 0x90000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:81:341: warning: 0xf0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:81:352: warning: 0xb0000008 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:81:363: warning: 0x40000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:81:374: warning: 0x90000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:81:385: warning: 0xf0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:81:396: warning: 0x90000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:81:407: warning: 0x60000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:81:418: warning: 0x90000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:81:429: warning: 0x90000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:81:440: warning: 0x90000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:81:451: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:81:462: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:81:473: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:81:484: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:81:495: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:81:506: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:81:528: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:81:539: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:81:550: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:81:561: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:81:572: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:81:583: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:81:605: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:81:616: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:81:748: warning: 0x00000020 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:81:770: warning: 0x40000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:81:781: warning: 0x40000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:81:792: warning: 0x40000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:81:803: warning: 0x80000004 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:81:814: warning: 0x80000080 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:81:825: warning: 0x80000006 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:81:836: warning: 0x00000049 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:81:847: warning: 0x00000103 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:81:858: warning: 0x80000009 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:81:869: warning: 0x80000012 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:81:880: warning: 0x80000202 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:81:891: warning: 0x00000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,0,65,0,11, { 0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202,0x00000018 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:82:6: warning: 50 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
     ^
/datasets/git/sha1dc/ubc_check.c:82:11: warning: 65 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
          ^
/datasets/git/sha1dc/ubc_check.c:82:16: warning: 12 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
               ^
/datasets/git/sha1dc/ubc_check.c:82:22: warning: 0x20000030 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                     ^
/datasets/git/sha1dc/ubc_check.c:82:33: warning: 0x60000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                ^
/datasets/git/sha1dc/ubc_check.c:82:44: warning: 0xe000002a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                           ^
/datasets/git/sha1dc/ubc_check.c:82:55: warning: 0x20000043 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                      ^
/datasets/git/sha1dc/ubc_check.c:82:66: warning: 0xb0000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                 ^
/datasets/git/sha1dc/ubc_check.c:82:77: warning: 0xd0000053 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                            ^
/datasets/git/sha1dc/ubc_check.c:82:88: warning: 0xd0000022 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:82:99: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:82:110: warning: 0x60000032 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:82:121: warning: 0x60000043 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:82:132: warning: 0x20000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:82:143: warning: 0xe0000042 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:82:154: warning: 0x60000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:82:165: warning: 0x80000001 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:82:176: warning: 0x00000020 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:82:198: warning: 0x40000052 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:82:209: warning: 0x40000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:82:220: warning: 0xe0000052 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:82:231: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:82:242: warning: 0x80000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:82:253: warning: 0x20000001 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:82:264: warning: 0x20000060 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:82:275: warning: 0x80000001 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:82:286: warning: 0x40000042 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:82:297: warning: 0xc0000043 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:82:308: warning: 0x40000022 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:82:330: warning: 0x40000042 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:82:341: warning: 0xc0000043 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:82:352: warning: 0xc0000022 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:82:374: warning: 0x40000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:82:385: warning: 0xc0000043 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:82:396: warning: 0x40000062 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:82:407: warning: 0x80000001 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:82:418: warning: 0x40000042 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:82:429: warning: 0x40000042 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:82:440: warning: 0x40000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:82:462: warning: 0x00000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:82:473: warning: 0x80000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:82:484: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:82:495: warning: 0x80000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:82:506: warning: 0x80000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:82:528: warning: 0x80000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:82:539: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:82:550: warning: 0x00000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:82:561: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:82:572: warning: 0x00000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:82:583: warning: 0x80000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:82:605: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:82:616: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:82:748: warning: 0x00000080 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:82:770: warning: 0x00000009 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:82:781: warning: 0x00000101 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:82:792: warning: 0x00000009 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:82:803: warning: 0x00000012 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:82:814: warning: 0x00000202 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:82:825: warning: 0x0000001a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:82:836: warning: 0x00000124 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:82:847: warning: 0x0000040c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:82:858: warning: 0x00000026 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:82:869: warning: 0x0000004a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:82:880: warning: 0x0000080a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:82:891: warning: 0x00000060 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,50,2,65,0,12, { 0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a,0x00000060 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:83:6: warning: 51 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
     ^
/datasets/git/sha1dc/ubc_check.c:83:11: warning: 65 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
          ^
/datasets/git/sha1dc/ubc_check.c:83:16: warning: 13 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
               ^
/datasets/git/sha1dc/ubc_check.c:83:22: warning: 0xe8000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                     ^
/datasets/git/sha1dc/ubc_check.c:83:33: warning: 0x0800000c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                ^
/datasets/git/sha1dc/ubc_check.c:83:44: warning: 0x18000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                           ^
/datasets/git/sha1dc/ubc_check.c:83:55: warning: 0xb800000a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                      ^
/datasets/git/sha1dc/ubc_check.c:83:66: warning: 0xc8000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                 ^
/datasets/git/sha1dc/ubc_check.c:83:77: warning: 0x2c000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                            ^
/datasets/git/sha1dc/ubc_check.c:83:88: warning: 0xf4000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:83:99: warning: 0xb4000008 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:83:110: warning: 0x08000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:83:121: warning: 0x9800000c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:83:132: warning: 0xd8000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:83:143: warning: 0x08000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:83:154: warning: 0xb8000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:83:165: warning: 0x98000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:83:176: warning: 0x60000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:83:187: warning: 0x00000008 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:83:198: warning: 0xc0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:83:209: warning: 0x90000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:83:220: warning: 0x10000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:83:231: warning: 0xb8000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:83:242: warning: 0x28000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:83:253: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:83:264: warning: 0x48000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:83:275: warning: 0x08000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:83:286: warning: 0x60000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:83:297: warning: 0x90000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:83:308: warning: 0xf0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:83:319: warning: 0x90000008 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:83:330: warning: 0xc0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:83:341: warning: 0x90000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:83:352: warning: 0xf0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:83:363: warning: 0xb0000008 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:83:374: warning: 0x40000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:83:385: warning: 0x90000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:83:396: warning: 0xf0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:83:407: warning: 0x90000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:83:418: warning: 0x60000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:83:429: warning: 0x90000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:83:440: warning: 0x90000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:83:451: warning: 0x90000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:83:462: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:83:473: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:83:484: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:83:495: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:83:506: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:83:517: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:83:539: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:83:550: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:83:561: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:83:572: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:83:583: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:83:594: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:83:616: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:83:627: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:83:759: warning: 0x00000020 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:83:781: warning: 0x40000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:83:792: warning: 0x40000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:83:803: warning: 0x40000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:83:814: warning: 0x80000004 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:83:825: warning: 0x80000080 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:83:836: warning: 0x80000006 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:83:847: warning: 0x00000049 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:83:858: warning: 0x00000103 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:83:869: warning: 0x80000009 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:83:880: warning: 0x80000012 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:83:891: warning: 0x80000202 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,0,65,0,13, { 0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012,0x80000202 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:84:6: warning: 51 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
     ^
/datasets/git/sha1dc/ubc_check.c:84:11: warning: 65 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
          ^
/datasets/git/sha1dc/ubc_check.c:84:16: warning: 14 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
               ^
/datasets/git/sha1dc/ubc_check.c:84:22: warning: 0xa0000003 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                     ^
/datasets/git/sha1dc/ubc_check.c:84:33: warning: 0x20000030 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                ^
/datasets/git/sha1dc/ubc_check.c:84:44: warning: 0x60000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                           ^
/datasets/git/sha1dc/ubc_check.c:84:55: warning: 0xe000002a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                      ^
/datasets/git/sha1dc/ubc_check.c:84:66: warning: 0x20000043 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                 ^
/datasets/git/sha1dc/ubc_check.c:84:77: warning: 0xb0000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                            ^
/datasets/git/sha1dc/ubc_check.c:84:88: warning: 0xd0000053 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:84:99: warning: 0xd0000022 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:84:110: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:84:121: warning: 0x60000032 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:84:132: warning: 0x60000043 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:84:143: warning: 0x20000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:84:154: warning: 0xe0000042 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:84:165: warning: 0x60000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:84:176: warning: 0x80000001 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:84:187: warning: 0x00000020 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:84:209: warning: 0x40000052 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:84:220: warning: 0x40000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:84:231: warning: 0xe0000052 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:84:242: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:84:253: warning: 0x80000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:84:264: warning: 0x20000001 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:84:275: warning: 0x20000060 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:84:286: warning: 0x80000001 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:84:297: warning: 0x40000042 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:84:308: warning: 0xc0000043 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:84:319: warning: 0x40000022 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:84:341: warning: 0x40000042 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:84:352: warning: 0xc0000043 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:84:363: warning: 0xc0000022 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:84:385: warning: 0x40000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:84:396: warning: 0xc0000043 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:84:407: warning: 0x40000062 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:84:418: warning: 0x80000001 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:84:429: warning: 0x40000042 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:84:440: warning: 0x40000042 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:84:451: warning: 0x40000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:84:473: warning: 0x00000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:84:484: warning: 0x80000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:84:495: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:84:506: warning: 0x80000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:84:517: warning: 0x80000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:84:539: warning: 0x80000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:84:550: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:84:561: warning: 0x00000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:84:572: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:84:583: warning: 0x00000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:84:594: warning: 0x80000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:84:616: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:84:627: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:84:759: warning: 0x00000080 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:84:781: warning: 0x00000009 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:84:792: warning: 0x00000101 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:84:803: warning: 0x00000009 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:84:814: warning: 0x00000012 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:84:825: warning: 0x00000202 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:84:836: warning: 0x0000001a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:84:847: warning: 0x00000124 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:84:858: warning: 0x0000040c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:84:869: warning: 0x00000026 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:84:880: warning: 0x0000004a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:84:891: warning: 0x0000080a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,51,2,65,0,14, { 0xa0000003,0x20000030,0x60000000,0xe000002a,0x20000043,0xb0000040,0xd0000053,0xd0000022,0x20000000,0x60000032,0x60000043,0x20000040,0xe0000042,0x60000002,0x80000001,0x00000020,0x00000003,0x40000052,0x40000040,0xe0000052,0xa0000000,0x80000040,0x20000001,0x20000060,0x80000001,0x40000042,0xc0000043,0x40000022,0x00000003,0x40000042,0xc0000043,0xc0000022,0x00000001,0x40000002,0xc0000043,0x40000062,0x80000001,0x40000042,0x40000042,0x40000002,0x00000002,0x00000040,0x80000002,0x80000000,0x80000002,0x80000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000000,0x00000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000101,0x00000009,0x00000012,0x00000202,0x0000001a,0x00000124,0x0000040c,0x00000026,0x0000004a,0x0000080a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:85:6: warning: 52 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
     ^
/datasets/git/sha1dc/ubc_check.c:85:11: warning: 65 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
          ^
/datasets/git/sha1dc/ubc_check.c:85:16: warning: 15 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
               ^
/datasets/git/sha1dc/ubc_check.c:85:22: warning: 0x04000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                     ^
/datasets/git/sha1dc/ubc_check.c:85:33: warning: 0xe8000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                ^
/datasets/git/sha1dc/ubc_check.c:85:44: warning: 0x0800000c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                           ^
/datasets/git/sha1dc/ubc_check.c:85:55: warning: 0x18000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                      ^
/datasets/git/sha1dc/ubc_check.c:85:66: warning: 0xb800000a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                 ^
/datasets/git/sha1dc/ubc_check.c:85:77: warning: 0xc8000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                            ^
/datasets/git/sha1dc/ubc_check.c:85:88: warning: 0x2c000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:85:99: warning: 0xf4000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:85:110: warning: 0xb4000008 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:85:121: warning: 0x08000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:85:132: warning: 0x9800000c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:85:143: warning: 0xd8000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:85:154: warning: 0x08000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:85:165: warning: 0xb8000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:85:176: warning: 0x98000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:85:187: warning: 0x60000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:85:198: warning: 0x00000008 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:85:209: warning: 0xc0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:85:220: warning: 0x90000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:85:231: warning: 0x10000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:85:242: warning: 0xb8000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:85:253: warning: 0x28000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:85:264: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:85:275: warning: 0x48000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:85:286: warning: 0x08000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:85:297: warning: 0x60000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:85:308: warning: 0x90000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:85:319: warning: 0xf0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:85:330: warning: 0x90000008 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:85:341: warning: 0xc0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:85:352: warning: 0x90000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:85:363: warning: 0xf0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:85:374: warning: 0xb0000008 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:85:385: warning: 0x40000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:85:396: warning: 0x90000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:85:407: warning: 0xf0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:85:418: warning: 0x90000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:85:429: warning: 0x60000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:85:440: warning: 0x90000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:85:451: warning: 0x90000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:85:462: warning: 0x90000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:85:473: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:85:484: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:85:495: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:85:506: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:85:517: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:85:528: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:85:550: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:85:561: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:85:572: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:85:583: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:85:594: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:85:605: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:85:627: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:85:638: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:85:770: warning: 0x00000020 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:85:792: warning: 0x40000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:85:803: warning: 0x40000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:85:814: warning: 0x40000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:85:825: warning: 0x80000004 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:85:836: warning: 0x80000080 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:85:847: warning: 0x80000006 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:85:858: warning: 0x00000049 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:85:869: warning: 0x00000103 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:85:880: warning: 0x80000009 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:85:891: warning: 0x80000012 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {1,52,0,65,0,15, { 0x04000010,0xe8000000,0x0800000c,0x18000000,0xb800000a,0xc8000010,0x2c000010,0xf4000014,0xb4000008,0x08000000,0x9800000c,0xd8000010,0x08000010,0xb8000010,0x98000000,0x60000000,0x00000008,0xc0000000,0x90000014,0x10000010,0xb8000014,0x28000000,0x20000010,0x48000000,0x08000018,0x60000000,0x90000010,0xf0000010,0x90000008,0xc0000000,0x90000010,0xf0000010,0xb0000008,0x40000000,0x90000000,0xf0000010,0x90000018,0x60000000,0x90000010,0x90000010,0x90000000,0x80000000,0x00000010,0xa0000000,0x20000000,0xa0000000,0x20000010,0x00000000,0x20000010,0x20000000,0x00000010,0x20000000,0x00000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000040,0x40000002,0x80000004,0x80000080,0x80000006,0x00000049,0x00000103,0x80000009,0x80000012 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:86:6: warning: 45 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
     ^
/datasets/git/sha1dc/ubc_check.c:86:11: warning: 58 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
          ^
/datasets/git/sha1dc/ubc_check.c:86:16: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
               ^
/datasets/git/sha1dc/ubc_check.c:86:22: warning: 0xec000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                     ^
/datasets/git/sha1dc/ubc_check.c:86:33: warning: 0x0c000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                ^
/datasets/git/sha1dc/ubc_check.c:86:44: warning: 0xc0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                           ^
/datasets/git/sha1dc/ubc_check.c:86:55: warning: 0xb400001c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                      ^
/datasets/git/sha1dc/ubc_check.c:86:66: warning: 0x2c000004 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                 ^
/datasets/git/sha1dc/ubc_check.c:86:77: warning: 0xbc000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                            ^
/datasets/git/sha1dc/ubc_check.c:86:88: warning: 0xb0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:86:99: warning: 0x0000000c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:86:110: warning: 0xb8000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:86:121: warning: 0x08000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:86:132: warning: 0x78000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:86:143: warning: 0x08000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:86:154: warning: 0x70000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:86:165: warning: 0xb800001c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:86:176: warning: 0xe8000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:86:187: warning: 0xb0000004 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:86:198: warning: 0x58000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:86:209: warning: 0xb000000c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:86:220: warning: 0x48000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:86:231: warning: 0xb0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:86:242: warning: 0xb8000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:86:253: warning: 0x98000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:86:264: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:86:297: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:86:308: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:86:319: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:86:341: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:86:352: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:86:363: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:86:374: warning: 0x60000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:86:385: warning: 0x00000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:86:396: warning: 0xe0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:86:407: warning: 0x90000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:86:418: warning: 0x30000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:86:429: warning: 0xb0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:86:440: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:86:451: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:86:462: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:86:473: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:86:484: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:86:495: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:86:506: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:86:517: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:86:528: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:86:539: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:86:561: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:86:572: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:86:594: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:86:605: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:86:693: warning: 0x00000020 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:86:715: warning: 0x40000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:86:726: warning: 0x40000041 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:86:737: warning: 0x40000022 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:86:748: warning: 0x80000005 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:86:759: warning: 0xc0000082 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:86:770: warning: 0xc0000046 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:86:781: warning: 0x4000004b is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:86:792: warning: 0x80000107 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:86:803: warning: 0x00000089 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:86:814: warning: 0x00000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:86:825: warning: 0x8000024b is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:86:836: warning: 0x0000011b is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:86:847: warning: 0x8000016d is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:86:858: warning: 0x8000041a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:86:869: warning: 0x000002e4 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:86:880: warning: 0x80000054 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:86:891: warning: 0x00000967 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,45,0,58,0,16, { 0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054,0x00000967 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:87:6: warning: 46 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
     ^
/datasets/git/sha1dc/ubc_check.c:87:11: warning: 58 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
          ^
/datasets/git/sha1dc/ubc_check.c:87:16: warning: 17 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
               ^
/datasets/git/sha1dc/ubc_check.c:87:22: warning: 0x2400001c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                     ^
/datasets/git/sha1dc/ubc_check.c:87:33: warning: 0xec000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                ^
/datasets/git/sha1dc/ubc_check.c:87:44: warning: 0x0c000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                           ^
/datasets/git/sha1dc/ubc_check.c:87:55: warning: 0xc0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                      ^
/datasets/git/sha1dc/ubc_check.c:87:66: warning: 0xb400001c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                 ^
/datasets/git/sha1dc/ubc_check.c:87:77: warning: 0x2c000004 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                            ^
/datasets/git/sha1dc/ubc_check.c:87:88: warning: 0xbc000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:87:99: warning: 0xb0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:87:110: warning: 0x0000000c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:87:121: warning: 0xb8000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:87:132: warning: 0x08000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:87:143: warning: 0x78000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:87:154: warning: 0x08000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:87:165: warning: 0x70000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:87:176: warning: 0xb800001c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:87:187: warning: 0xe8000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:87:198: warning: 0xb0000004 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:87:209: warning: 0x58000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:87:220: warning: 0xb000000c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:87:231: warning: 0x48000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:87:242: warning: 0xb0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:87:253: warning: 0xb8000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:87:264: warning: 0x98000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:87:275: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:87:308: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:87:319: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:87:330: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:87:352: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:87:363: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:87:374: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:87:385: warning: 0x60000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:87:396: warning: 0x00000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:87:407: warning: 0xe0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:87:418: warning: 0x90000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:87:429: warning: 0x30000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:87:440: warning: 0xb0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:87:451: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:87:462: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:87:473: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:87:484: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:87:495: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:87:506: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:87:517: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:87:528: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:87:539: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:87:550: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:87:572: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:87:583: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:87:605: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:87:616: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:87:704: warning: 0x00000020 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:87:726: warning: 0x40000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:87:737: warning: 0x40000041 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:87:748: warning: 0x40000022 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:87:759: warning: 0x80000005 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:87:770: warning: 0xc0000082 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:87:781: warning: 0xc0000046 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:87:792: warning: 0x4000004b is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:87:803: warning: 0x80000107 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:87:814: warning: 0x00000089 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:87:825: warning: 0x00000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:87:836: warning: 0x8000024b is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:87:847: warning: 0x0000011b is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:87:858: warning: 0x8000016d is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:87:869: warning: 0x8000041a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:87:880: warning: 0x000002e4 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:87:891: warning: 0x80000054 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,0,58,0,17, { 0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4,0x80000054 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:88:6: warning: 46 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
     ^
/datasets/git/sha1dc/ubc_check.c:88:11: warning: 58 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
          ^
/datasets/git/sha1dc/ubc_check.c:88:16: warning: 18 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
               ^
/datasets/git/sha1dc/ubc_check.c:88:22: warning: 0x90000070 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                     ^
/datasets/git/sha1dc/ubc_check.c:88:33: warning: 0xb0000053 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                ^
/datasets/git/sha1dc/ubc_check.c:88:44: warning: 0x30000008 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                           ^
/datasets/git/sha1dc/ubc_check.c:88:55: warning: 0x00000043 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                      ^
/datasets/git/sha1dc/ubc_check.c:88:66: warning: 0xd0000072 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                 ^
/datasets/git/sha1dc/ubc_check.c:88:77: warning: 0xb0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                            ^
/datasets/git/sha1dc/ubc_check.c:88:88: warning: 0xf0000062 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:88:99: warning: 0xc0000042 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:88:110: warning: 0x00000030 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:88:121: warning: 0xe0000042 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:88:132: warning: 0x20000060 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:88:143: warning: 0xe0000041 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:88:154: warning: 0x20000050 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:88:165: warning: 0xc0000041 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:88:176: warning: 0xe0000072 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:88:187: warning: 0xa0000003 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:88:198: warning: 0xc0000012 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:88:209: warning: 0x60000041 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:88:220: warning: 0xc0000032 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:88:231: warning: 0x20000001 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:88:242: warning: 0xc0000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:88:253: warning: 0xe0000042 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:88:264: warning: 0x60000042 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:88:275: warning: 0x80000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:88:308: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:88:330: warning: 0x00000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:88:352: warning: 0x80000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:88:363: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:88:374: warning: 0x00000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:88:385: warning: 0x80000001 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:88:396: warning: 0x00000060 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:88:407: warning: 0x80000003 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:88:418: warning: 0x40000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:88:429: warning: 0xc0000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:88:440: warning: 0xc0000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:88:451: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:88:462: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:88:473: warning: 0x80000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:88:484: warning: 0x00000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:88:506: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:88:517: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:88:528: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:88:550: warning: 0x00000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:88:572: warning: 0x80000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:88:583: warning: 0x80000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:88:605: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:88:616: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:88:704: warning: 0x00000080 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:88:726: warning: 0x00000009 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:88:737: warning: 0x00000105 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:88:748: warning: 0x00000089 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:88:759: warning: 0x00000016 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:88:770: warning: 0x0000020b is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:88:781: warning: 0x0000011b is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:88:792: warning: 0x0000012d is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:88:803: warning: 0x0000041e is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:88:814: warning: 0x00000224 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:88:825: warning: 0x00000050 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:88:836: warning: 0x0000092e is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:88:847: warning: 0x0000046c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:88:858: warning: 0x000005b6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:88:869: warning: 0x0000106a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:88:880: warning: 0x00000b90 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:88:891: warning: 0x00000152 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,46,2,58,0,18, { 0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6,0x0000106a,0x00000b90,0x00000152 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:89:6: warning: 47 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
     ^
/datasets/git/sha1dc/ubc_check.c:89:11: warning: 58 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
          ^
/datasets/git/sha1dc/ubc_check.c:89:16: warning: 19 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
               ^
/datasets/git/sha1dc/ubc_check.c:89:22: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                     ^
/datasets/git/sha1dc/ubc_check.c:89:33: warning: 0x2400001c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                ^
/datasets/git/sha1dc/ubc_check.c:89:44: warning: 0xec000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                           ^
/datasets/git/sha1dc/ubc_check.c:89:55: warning: 0x0c000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                      ^
/datasets/git/sha1dc/ubc_check.c:89:66: warning: 0xc0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                 ^
/datasets/git/sha1dc/ubc_check.c:89:77: warning: 0xb400001c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                            ^
/datasets/git/sha1dc/ubc_check.c:89:88: warning: 0x2c000004 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:89:99: warning: 0xbc000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:89:110: warning: 0xb0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:89:121: warning: 0x0000000c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:89:132: warning: 0xb8000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:89:143: warning: 0x08000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:89:154: warning: 0x78000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:89:165: warning: 0x08000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:89:176: warning: 0x70000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:89:187: warning: 0xb800001c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:89:198: warning: 0xe8000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:89:209: warning: 0xb0000004 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:89:220: warning: 0x58000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:89:231: warning: 0xb000000c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:89:242: warning: 0x48000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:89:253: warning: 0xb0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:89:264: warning: 0xb8000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:89:275: warning: 0x98000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:89:286: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:89:319: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:89:330: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:89:341: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:89:363: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:89:374: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:89:385: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:89:396: warning: 0x60000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:89:407: warning: 0x00000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:89:418: warning: 0xe0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:89:429: warning: 0x90000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:89:440: warning: 0x30000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:89:451: warning: 0xb0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:89:462: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:89:473: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:89:484: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:89:495: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:89:506: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:89:517: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:89:528: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:89:539: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:89:550: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:89:561: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:89:583: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:89:594: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:89:616: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:89:627: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:89:715: warning: 0x00000020 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:89:737: warning: 0x40000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:89:748: warning: 0x40000041 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:89:759: warning: 0x40000022 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:89:770: warning: 0x80000005 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:89:781: warning: 0xc0000082 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:89:792: warning: 0xc0000046 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:89:803: warning: 0x4000004b is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:89:814: warning: 0x80000107 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:89:825: warning: 0x00000089 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:89:836: warning: 0x00000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:89:847: warning: 0x8000024b is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:89:858: warning: 0x0000011b is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:89:869: warning: 0x8000016d is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:89:880: warning: 0x8000041a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:89:891: warning: 0x000002e4 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,47,0,58,0,19, { 0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a,0x000002e4 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:90:6: warning: 48 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
     ^
/datasets/git/sha1dc/ubc_check.c:90:11: warning: 58 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
          ^
/datasets/git/sha1dc/ubc_check.c:90:16: warning: 20 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
               ^
/datasets/git/sha1dc/ubc_check.c:90:22: warning: 0xbc00001a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                     ^
/datasets/git/sha1dc/ubc_check.c:90:33: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                ^
/datasets/git/sha1dc/ubc_check.c:90:44: warning: 0x2400001c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                           ^
/datasets/git/sha1dc/ubc_check.c:90:55: warning: 0xec000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                      ^
/datasets/git/sha1dc/ubc_check.c:90:66: warning: 0x0c000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                 ^
/datasets/git/sha1dc/ubc_check.c:90:77: warning: 0xc0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                            ^
/datasets/git/sha1dc/ubc_check.c:90:88: warning: 0xb400001c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:90:99: warning: 0x2c000004 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:90:110: warning: 0xbc000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:90:121: warning: 0xb0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:90:132: warning: 0x0000000c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:90:143: warning: 0xb8000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:90:154: warning: 0x08000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:90:165: warning: 0x78000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:90:176: warning: 0x08000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:90:187: warning: 0x70000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:90:198: warning: 0xb800001c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:90:209: warning: 0xe8000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:90:220: warning: 0xb0000004 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:90:231: warning: 0x58000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:90:242: warning: 0xb000000c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:90:253: warning: 0x48000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:90:264: warning: 0xb0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:90:275: warning: 0xb8000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:90:286: warning: 0x98000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:90:297: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:90:330: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:90:341: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:90:352: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:90:374: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:90:385: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:90:396: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:90:407: warning: 0x60000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:90:418: warning: 0x00000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:90:429: warning: 0xe0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:90:440: warning: 0x90000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:90:451: warning: 0x30000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:90:462: warning: 0xb0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:90:473: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:90:484: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:90:495: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:90:506: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:90:517: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:90:528: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:90:539: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:90:550: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:90:561: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:90:572: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:90:594: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:90:605: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:90:627: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:90:638: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:90:726: warning: 0x00000020 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:90:748: warning: 0x40000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:90:759: warning: 0x40000041 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:90:770: warning: 0x40000022 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:90:781: warning: 0x80000005 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:90:792: warning: 0xc0000082 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:90:803: warning: 0xc0000046 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:90:814: warning: 0x4000004b is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:90:825: warning: 0x80000107 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:90:836: warning: 0x00000089 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:90:847: warning: 0x00000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:90:858: warning: 0x8000024b is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:90:869: warning: 0x0000011b is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:90:880: warning: 0x8000016d is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:90:891: warning: 0x8000041a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,48,0,58,0,20, { 0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d,0x8000041a } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:91:6: warning: 49 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
     ^
/datasets/git/sha1dc/ubc_check.c:91:11: warning: 58 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
          ^
/datasets/git/sha1dc/ubc_check.c:91:16: warning: 21 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
               ^
/datasets/git/sha1dc/ubc_check.c:91:22: warning: 0x3c000004 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                     ^
/datasets/git/sha1dc/ubc_check.c:91:33: warning: 0xbc00001a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                ^
/datasets/git/sha1dc/ubc_check.c:91:44: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                           ^
/datasets/git/sha1dc/ubc_check.c:91:55: warning: 0x2400001c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                      ^
/datasets/git/sha1dc/ubc_check.c:91:66: warning: 0xec000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                 ^
/datasets/git/sha1dc/ubc_check.c:91:77: warning: 0x0c000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                            ^
/datasets/git/sha1dc/ubc_check.c:91:88: warning: 0xc0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:91:99: warning: 0xb400001c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:91:110: warning: 0x2c000004 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:91:121: warning: 0xbc000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:91:132: warning: 0xb0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:91:143: warning: 0x0000000c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:91:154: warning: 0xb8000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:91:165: warning: 0x08000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:91:176: warning: 0x78000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:91:187: warning: 0x08000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:91:198: warning: 0x70000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:91:209: warning: 0xb800001c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:91:220: warning: 0xe8000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:91:231: warning: 0xb0000004 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:91:242: warning: 0x58000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:91:253: warning: 0xb000000c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:91:264: warning: 0x48000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:91:275: warning: 0xb0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:91:286: warning: 0xb8000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:91:297: warning: 0x98000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:91:308: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:91:341: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:91:352: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:91:363: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:91:385: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:91:396: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:91:407: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:91:418: warning: 0x60000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:91:429: warning: 0x00000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:91:440: warning: 0xe0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:91:451: warning: 0x90000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:91:462: warning: 0x30000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:91:473: warning: 0xb0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:91:484: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:91:495: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:91:506: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:91:517: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:91:528: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:91:539: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:91:550: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:91:561: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:91:572: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:91:583: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:91:605: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:91:616: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:91:638: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:91:649: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:91:737: warning: 0x00000020 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:91:759: warning: 0x40000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:91:770: warning: 0x40000041 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:91:781: warning: 0x40000022 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:91:792: warning: 0x80000005 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:91:803: warning: 0xc0000082 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:91:814: warning: 0xc0000046 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:91:825: warning: 0x4000004b is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:91:836: warning: 0x80000107 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:91:847: warning: 0x00000089 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:91:858: warning: 0x00000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:91:869: warning: 0x8000024b is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:91:880: warning: 0x0000011b is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:91:891: warning: 0x8000016d is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,0,58,0,21, { 0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b,0x8000016d } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:92:6: warning: 49 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
     ^
/datasets/git/sha1dc/ubc_check.c:92:11: warning: 58 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
          ^
/datasets/git/sha1dc/ubc_check.c:92:16: warning: 22 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
               ^
/datasets/git/sha1dc/ubc_check.c:92:22: warning: 0xf0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                     ^
/datasets/git/sha1dc/ubc_check.c:92:33: warning: 0xf000006a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                ^
/datasets/git/sha1dc/ubc_check.c:92:44: warning: 0x80000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                           ^
/datasets/git/sha1dc/ubc_check.c:92:55: warning: 0x90000070 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                      ^
/datasets/git/sha1dc/ubc_check.c:92:66: warning: 0xb0000053 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                 ^
/datasets/git/sha1dc/ubc_check.c:92:77: warning: 0x30000008 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                            ^
/datasets/git/sha1dc/ubc_check.c:92:88: warning: 0x00000043 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:92:99: warning: 0xd0000072 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:92:110: warning: 0xb0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:92:121: warning: 0xf0000062 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:92:132: warning: 0xc0000042 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:92:143: warning: 0x00000030 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:92:154: warning: 0xe0000042 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:92:165: warning: 0x20000060 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:92:176: warning: 0xe0000041 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:92:187: warning: 0x20000050 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:92:198: warning: 0xc0000041 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:92:209: warning: 0xe0000072 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:92:220: warning: 0xa0000003 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:92:231: warning: 0xc0000012 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:92:242: warning: 0x60000041 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:92:253: warning: 0xc0000032 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:92:264: warning: 0x20000001 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:92:275: warning: 0xc0000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:92:286: warning: 0xe0000042 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:92:297: warning: 0x60000042 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:92:308: warning: 0x80000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:92:341: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:92:363: warning: 0x00000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:92:385: warning: 0x80000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:92:396: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:92:407: warning: 0x00000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:92:418: warning: 0x80000001 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:92:429: warning: 0x00000060 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:92:440: warning: 0x80000003 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:92:451: warning: 0x40000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:92:462: warning: 0xc0000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:92:473: warning: 0xc0000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:92:484: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:92:495: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:92:506: warning: 0x80000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:92:517: warning: 0x00000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:92:539: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:92:550: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:92:561: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:92:583: warning: 0x00000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:92:605: warning: 0x80000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:92:616: warning: 0x80000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:92:638: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:92:649: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:92:737: warning: 0x00000080 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:92:759: warning: 0x00000009 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:92:770: warning: 0x00000105 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:92:781: warning: 0x00000089 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:92:792: warning: 0x00000016 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:92:803: warning: 0x0000020b is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:92:814: warning: 0x0000011b is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:92:825: warning: 0x0000012d is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:92:836: warning: 0x0000041e is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:92:847: warning: 0x00000224 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:92:858: warning: 0x00000050 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:92:869: warning: 0x0000092e is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:92:880: warning: 0x0000046c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:92:891: warning: 0x000005b6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,49,2,58,0,22, { 0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c,0x000005b6 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:93:6: warning: 50 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
     ^
/datasets/git/sha1dc/ubc_check.c:93:11: warning: 65 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
          ^
/datasets/git/sha1dc/ubc_check.c:93:16: warning: 23 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
               ^
/datasets/git/sha1dc/ubc_check.c:93:22: warning: 0xb400001c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                     ^
/datasets/git/sha1dc/ubc_check.c:93:33: warning: 0x3c000004 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                ^
/datasets/git/sha1dc/ubc_check.c:93:44: warning: 0xbc00001a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                           ^
/datasets/git/sha1dc/ubc_check.c:93:55: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                      ^
/datasets/git/sha1dc/ubc_check.c:93:66: warning: 0x2400001c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                 ^
/datasets/git/sha1dc/ubc_check.c:93:77: warning: 0xec000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                            ^
/datasets/git/sha1dc/ubc_check.c:93:88: warning: 0x0c000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:93:99: warning: 0xc0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:93:110: warning: 0xb400001c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:93:121: warning: 0x2c000004 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:93:132: warning: 0xbc000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:93:143: warning: 0xb0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:93:154: warning: 0x0000000c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:93:165: warning: 0xb8000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:93:176: warning: 0x08000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:93:187: warning: 0x78000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:93:198: warning: 0x08000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:93:209: warning: 0x70000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:93:220: warning: 0xb800001c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:93:231: warning: 0xe8000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:93:242: warning: 0xb0000004 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:93:253: warning: 0x58000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:93:264: warning: 0xb000000c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:93:275: warning: 0x48000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:93:286: warning: 0xb0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:93:297: warning: 0xb8000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:93:308: warning: 0x98000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:93:319: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:93:352: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:93:363: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:93:374: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:93:396: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:93:407: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:93:418: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:93:429: warning: 0x60000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:93:440: warning: 0x00000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:93:451: warning: 0xe0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:93:462: warning: 0x90000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:93:473: warning: 0x30000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:93:484: warning: 0xb0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:93:495: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:93:506: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:93:517: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:93:528: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:93:539: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:93:550: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:93:561: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:93:572: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:93:583: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:93:594: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:93:616: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:93:627: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:93:649: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:93:660: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:93:748: warning: 0x00000020 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:93:770: warning: 0x40000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:93:781: warning: 0x40000041 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:93:792: warning: 0x40000022 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:93:803: warning: 0x80000005 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:93:814: warning: 0xc0000082 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:93:825: warning: 0xc0000046 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:93:836: warning: 0x4000004b is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:93:847: warning: 0x80000107 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:93:858: warning: 0x00000089 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:93:869: warning: 0x00000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:93:880: warning: 0x8000024b is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:93:891: warning: 0x0000011b is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,0,65,0,23, { 0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b,0x0000011b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:94:6: warning: 50 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
     ^
/datasets/git/sha1dc/ubc_check.c:94:11: warning: 65 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
          ^
/datasets/git/sha1dc/ubc_check.c:94:16: warning: 24 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
               ^
/datasets/git/sha1dc/ubc_check.c:94:22: warning: 0xd0000072 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                     ^
/datasets/git/sha1dc/ubc_check.c:94:33: warning: 0xf0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                ^
/datasets/git/sha1dc/ubc_check.c:94:44: warning: 0xf000006a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                           ^
/datasets/git/sha1dc/ubc_check.c:94:55: warning: 0x80000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                      ^
/datasets/git/sha1dc/ubc_check.c:94:66: warning: 0x90000070 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                 ^
/datasets/git/sha1dc/ubc_check.c:94:77: warning: 0xb0000053 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                            ^
/datasets/git/sha1dc/ubc_check.c:94:88: warning: 0x30000008 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:94:99: warning: 0x00000043 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:94:110: warning: 0xd0000072 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:94:121: warning: 0xb0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:94:132: warning: 0xf0000062 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:94:143: warning: 0xc0000042 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:94:154: warning: 0x00000030 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:94:165: warning: 0xe0000042 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:94:176: warning: 0x20000060 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:94:187: warning: 0xe0000041 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:94:198: warning: 0x20000050 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:94:209: warning: 0xc0000041 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:94:220: warning: 0xe0000072 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:94:231: warning: 0xa0000003 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:94:242: warning: 0xc0000012 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:94:253: warning: 0x60000041 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:94:264: warning: 0xc0000032 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:94:275: warning: 0x20000001 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:94:286: warning: 0xc0000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:94:297: warning: 0xe0000042 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:94:308: warning: 0x60000042 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:94:319: warning: 0x80000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:94:352: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:94:374: warning: 0x00000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:94:396: warning: 0x80000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:94:407: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:94:418: warning: 0x00000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:94:429: warning: 0x80000001 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:94:440: warning: 0x00000060 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:94:451: warning: 0x80000003 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:94:462: warning: 0x40000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:94:473: warning: 0xc0000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:94:484: warning: 0xc0000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:94:495: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:94:506: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:94:517: warning: 0x80000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:94:528: warning: 0x00000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:94:550: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:94:561: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:94:572: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:94:594: warning: 0x00000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:94:616: warning: 0x80000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:94:627: warning: 0x80000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:94:649: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:94:660: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:94:748: warning: 0x00000080 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:94:770: warning: 0x00000009 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:94:781: warning: 0x00000105 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:94:792: warning: 0x00000089 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:94:803: warning: 0x00000016 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:94:814: warning: 0x0000020b is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:94:825: warning: 0x0000011b is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:94:836: warning: 0x0000012d is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:94:847: warning: 0x0000041e is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:94:858: warning: 0x00000224 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:94:869: warning: 0x00000050 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:94:880: warning: 0x0000092e is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:94:891: warning: 0x0000046c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,50,2,65,0,24, { 0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e,0x0000046c } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:95:6: warning: 51 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
     ^
/datasets/git/sha1dc/ubc_check.c:95:11: warning: 65 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
          ^
/datasets/git/sha1dc/ubc_check.c:95:16: warning: 25 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
               ^
/datasets/git/sha1dc/ubc_check.c:95:22: warning: 0xc0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                     ^
/datasets/git/sha1dc/ubc_check.c:95:33: warning: 0xb400001c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                ^
/datasets/git/sha1dc/ubc_check.c:95:44: warning: 0x3c000004 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                           ^
/datasets/git/sha1dc/ubc_check.c:95:55: warning: 0xbc00001a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                      ^
/datasets/git/sha1dc/ubc_check.c:95:66: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                 ^
/datasets/git/sha1dc/ubc_check.c:95:77: warning: 0x2400001c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                            ^
/datasets/git/sha1dc/ubc_check.c:95:88: warning: 0xec000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:95:99: warning: 0x0c000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:95:110: warning: 0xc0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:95:121: warning: 0xb400001c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:95:132: warning: 0x2c000004 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:95:143: warning: 0xbc000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:95:154: warning: 0xb0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:95:165: warning: 0x0000000c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:95:176: warning: 0xb8000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:95:187: warning: 0x08000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:95:198: warning: 0x78000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:95:209: warning: 0x08000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:95:220: warning: 0x70000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:95:231: warning: 0xb800001c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:95:242: warning: 0xe8000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:95:253: warning: 0xb0000004 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:95:264: warning: 0x58000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:95:275: warning: 0xb000000c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:95:286: warning: 0x48000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:95:297: warning: 0xb0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:95:308: warning: 0xb8000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:95:319: warning: 0x98000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:95:330: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:95:363: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:95:374: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:95:385: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:95:407: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:95:418: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:95:429: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:95:440: warning: 0x60000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:95:451: warning: 0x00000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:95:462: warning: 0xe0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:95:473: warning: 0x90000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:95:484: warning: 0x30000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:95:495: warning: 0xb0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:95:506: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:95:517: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:95:528: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:95:539: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:95:550: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:95:561: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:95:572: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:95:583: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:95:594: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:95:605: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:95:627: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:95:638: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:95:660: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:95:671: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:95:759: warning: 0x00000020 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:95:781: warning: 0x40000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:95:792: warning: 0x40000041 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:95:803: warning: 0x40000022 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:95:814: warning: 0x80000005 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:95:825: warning: 0xc0000082 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:95:836: warning: 0xc0000046 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:95:847: warning: 0x4000004b is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:95:858: warning: 0x80000107 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:95:869: warning: 0x00000089 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:95:880: warning: 0x00000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:95:891: warning: 0x8000024b is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,0,65,0,25, { 0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014,0x8000024b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:96:6: warning: 51 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
     ^
/datasets/git/sha1dc/ubc_check.c:96:11: warning: 65 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
          ^
/datasets/git/sha1dc/ubc_check.c:96:16: warning: 26 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
               ^
/datasets/git/sha1dc/ubc_check.c:96:22: warning: 0x00000043 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                     ^
/datasets/git/sha1dc/ubc_check.c:96:33: warning: 0xd0000072 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                ^
/datasets/git/sha1dc/ubc_check.c:96:44: warning: 0xf0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                           ^
/datasets/git/sha1dc/ubc_check.c:96:55: warning: 0xf000006a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                      ^
/datasets/git/sha1dc/ubc_check.c:96:66: warning: 0x80000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                 ^
/datasets/git/sha1dc/ubc_check.c:96:77: warning: 0x90000070 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                            ^
/datasets/git/sha1dc/ubc_check.c:96:88: warning: 0xb0000053 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:96:99: warning: 0x30000008 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:96:110: warning: 0x00000043 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:96:121: warning: 0xd0000072 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:96:132: warning: 0xb0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:96:143: warning: 0xf0000062 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:96:154: warning: 0xc0000042 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:96:165: warning: 0x00000030 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:96:176: warning: 0xe0000042 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:96:187: warning: 0x20000060 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:96:198: warning: 0xe0000041 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:96:209: warning: 0x20000050 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:96:220: warning: 0xc0000041 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:96:231: warning: 0xe0000072 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:96:242: warning: 0xa0000003 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:96:253: warning: 0xc0000012 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:96:264: warning: 0x60000041 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:96:275: warning: 0xc0000032 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:96:286: warning: 0x20000001 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:96:297: warning: 0xc0000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:96:308: warning: 0xe0000042 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:96:319: warning: 0x60000042 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:96:330: warning: 0x80000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:96:363: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:96:385: warning: 0x00000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:96:407: warning: 0x80000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:96:418: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:96:429: warning: 0x00000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:96:440: warning: 0x80000001 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:96:451: warning: 0x00000060 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:96:462: warning: 0x80000003 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:96:473: warning: 0x40000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:96:484: warning: 0xc0000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:96:495: warning: 0xc0000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:96:506: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:96:517: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:96:528: warning: 0x80000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:96:539: warning: 0x00000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:96:561: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:96:572: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:96:583: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:96:605: warning: 0x00000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:96:627: warning: 0x80000040 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:96:638: warning: 0x80000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:96:660: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:96:671: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:96:759: warning: 0x00000080 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:96:781: warning: 0x00000009 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:96:792: warning: 0x00000105 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:96:803: warning: 0x00000089 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:96:814: warning: 0x00000016 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:96:825: warning: 0x0000020b is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:96:836: warning: 0x0000011b is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:96:847: warning: 0x0000012d is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:96:858: warning: 0x0000041e is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:96:869: warning: 0x00000224 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:96:880: warning: 0x00000050 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:96:891: warning: 0x0000092e is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,51,2,65,0,26, { 0x00000043,0xd0000072,0xf0000010,0xf000006a,0x80000040,0x90000070,0xb0000053,0x30000008,0x00000043,0xd0000072,0xb0000010,0xf0000062,0xc0000042,0x00000030,0xe0000042,0x20000060,0xe0000041,0x20000050,0xc0000041,0xe0000072,0xa0000003,0xc0000012,0x60000041,0xc0000032,0x20000001,0xc0000002,0xe0000042,0x60000042,0x80000002,0x00000000,0x00000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000000,0x00000040,0x80000001,0x00000060,0x80000003,0x40000002,0xc0000040,0xc0000002,0x80000000,0x80000000,0x80000002,0x00000040,0x00000002,0x80000000,0x80000000,0x80000000,0x00000002,0x00000040,0x00000000,0x80000040,0x80000002,0x00000000,0x80000000,0x80000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000004,0x00000080,0x00000004,0x00000009,0x00000105,0x00000089,0x00000016,0x0000020b,0x0000011b,0x0000012d,0x0000041e,0x00000224,0x00000050,0x0000092e } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:97:6: warning: 52 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
     ^
/datasets/git/sha1dc/ubc_check.c:97:11: warning: 65 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
          ^
/datasets/git/sha1dc/ubc_check.c:97:16: warning: 27 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
               ^
/datasets/git/sha1dc/ubc_check.c:97:22: warning: 0x0c000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                     ^
/datasets/git/sha1dc/ubc_check.c:97:33: warning: 0xc0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                ^
/datasets/git/sha1dc/ubc_check.c:97:44: warning: 0xb400001c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                           ^
/datasets/git/sha1dc/ubc_check.c:97:55: warning: 0x3c000004 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                      ^
/datasets/git/sha1dc/ubc_check.c:97:66: warning: 0xbc00001a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                 ^
/datasets/git/sha1dc/ubc_check.c:97:77: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                            ^
/datasets/git/sha1dc/ubc_check.c:97:88: warning: 0x2400001c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:97:99: warning: 0xec000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:97:110: warning: 0x0c000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:97:121: warning: 0xc0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:97:132: warning: 0xb400001c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:97:143: warning: 0x2c000004 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:97:154: warning: 0xbc000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:97:165: warning: 0xb0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:97:176: warning: 0x0000000c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:97:187: warning: 0xb8000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:97:198: warning: 0x08000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:97:209: warning: 0x78000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:97:220: warning: 0x08000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:97:231: warning: 0x70000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:97:242: warning: 0xb800001c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:97:253: warning: 0xe8000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:97:264: warning: 0xb0000004 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:97:275: warning: 0x58000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:97:286: warning: 0xb000000c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:97:297: warning: 0x48000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:97:308: warning: 0xb0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:97:319: warning: 0xb8000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:97:330: warning: 0x98000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:97:341: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:97:374: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:97:385: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:97:396: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:97:418: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:97:429: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:97:440: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:97:451: warning: 0x60000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:97:462: warning: 0x00000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:97:473: warning: 0xe0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:97:484: warning: 0x90000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:97:495: warning: 0x30000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:97:506: warning: 0xb0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:97:517: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:97:528: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:97:539: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:97:550: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:97:561: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:97:572: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:97:583: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:97:594: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:97:605: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:97:616: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:97:638: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:97:649: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:97:671: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:97:682: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:97:770: warning: 0x00000020 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:97:792: warning: 0x40000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:97:803: warning: 0x40000041 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:97:814: warning: 0x40000022 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:97:825: warning: 0x80000005 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:97:836: warning: 0xc0000082 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:97:847: warning: 0xc0000046 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:97:858: warning: 0x4000004b is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:97:869: warning: 0x80000107 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:97:880: warning: 0x00000089 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:97:891: warning: 0x00000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,52,0,65,0,27, { 0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089,0x00000014 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:98:6: warning: 53 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
     ^
/datasets/git/sha1dc/ubc_check.c:98:11: warning: 65 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
          ^
/datasets/git/sha1dc/ubc_check.c:98:16: warning: 28 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
               ^
/datasets/git/sha1dc/ubc_check.c:98:22: warning: 0xcc000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                     ^
/datasets/git/sha1dc/ubc_check.c:98:33: warning: 0x0c000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                ^
/datasets/git/sha1dc/ubc_check.c:98:44: warning: 0xc0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                           ^
/datasets/git/sha1dc/ubc_check.c:98:55: warning: 0xb400001c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                      ^
/datasets/git/sha1dc/ubc_check.c:98:66: warning: 0x3c000004 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                 ^
/datasets/git/sha1dc/ubc_check.c:98:77: warning: 0xbc00001a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                            ^
/datasets/git/sha1dc/ubc_check.c:98:88: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:98:99: warning: 0x2400001c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:98:110: warning: 0xec000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:98:121: warning: 0x0c000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:98:132: warning: 0xc0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:98:143: warning: 0xb400001c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:98:154: warning: 0x2c000004 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:98:165: warning: 0xbc000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:98:176: warning: 0xb0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:98:187: warning: 0x0000000c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:98:198: warning: 0xb8000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:98:209: warning: 0x08000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:98:220: warning: 0x78000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:98:231: warning: 0x08000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:98:242: warning: 0x70000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:98:253: warning: 0xb800001c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:98:264: warning: 0xe8000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:98:275: warning: 0xb0000004 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:98:286: warning: 0x58000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:98:297: warning: 0xb000000c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:98:308: warning: 0x48000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:98:319: warning: 0xb0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:98:330: warning: 0xb8000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:98:341: warning: 0x98000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:98:352: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:98:385: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:98:396: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:98:407: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:98:429: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:98:440: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:98:451: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:98:462: warning: 0x60000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:98:473: warning: 0x00000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:98:484: warning: 0xe0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:98:495: warning: 0x90000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:98:506: warning: 0x30000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:98:517: warning: 0xb0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:98:528: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:98:539: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:98:550: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:98:561: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:98:572: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:98:583: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:98:594: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:98:605: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:98:616: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:98:627: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:98:649: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:98:660: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:98:682: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:98:693: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:98:781: warning: 0x00000020 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:98:803: warning: 0x40000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:98:814: warning: 0x40000041 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:98:825: warning: 0x40000022 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:98:836: warning: 0x80000005 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:98:847: warning: 0xc0000082 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:98:858: warning: 0xc0000046 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:98:869: warning: 0x4000004b is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:98:880: warning: 0x80000107 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:98:891: warning: 0x00000089 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,53,0,65,0,28, { 0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107,0x00000089 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:99:6: warning: 54 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
     ^
/datasets/git/sha1dc/ubc_check.c:99:11: warning: 65 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
          ^
/datasets/git/sha1dc/ubc_check.c:99:16: warning: 29 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
               ^
/datasets/git/sha1dc/ubc_check.c:99:22: warning: 0x0400001c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                     ^
/datasets/git/sha1dc/ubc_check.c:99:33: warning: 0xcc000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                ^
/datasets/git/sha1dc/ubc_check.c:99:44: warning: 0x0c000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                           ^
/datasets/git/sha1dc/ubc_check.c:99:55: warning: 0xc0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                      ^
/datasets/git/sha1dc/ubc_check.c:99:66: warning: 0xb400001c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                 ^
/datasets/git/sha1dc/ubc_check.c:99:77: warning: 0x3c000004 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                            ^
/datasets/git/sha1dc/ubc_check.c:99:88: warning: 0xbc00001a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:99:99: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:99:110: warning: 0x2400001c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:99:121: warning: 0xec000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:99:132: warning: 0x0c000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:99:143: warning: 0xc0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:99:154: warning: 0xb400001c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:99:165: warning: 0x2c000004 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:99:176: warning: 0xbc000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:99:187: warning: 0xb0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:99:198: warning: 0x0000000c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:99:209: warning: 0xb8000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:99:220: warning: 0x08000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:99:231: warning: 0x78000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:99:242: warning: 0x08000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:99:253: warning: 0x70000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:99:264: warning: 0xb800001c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:99:275: warning: 0xe8000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:99:286: warning: 0xb0000004 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:99:297: warning: 0x58000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:99:308: warning: 0xb000000c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:99:319: warning: 0x48000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:99:330: warning: 0xb0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:99:341: warning: 0xb8000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:99:352: warning: 0x98000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:99:363: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:99:396: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:99:407: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:99:418: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:99:440: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:99:451: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:99:462: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:99:473: warning: 0x60000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:99:484: warning: 0x00000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:99:495: warning: 0xe0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:99:506: warning: 0x90000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:99:517: warning: 0x30000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:99:528: warning: 0xb0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:99:539: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:99:550: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:99:561: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:99:572: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:99:583: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:99:594: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:99:605: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:99:616: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:99:627: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:99:638: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:99:660: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:99:671: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:99:693: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:99:704: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:99:792: warning: 0x00000020 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:99:814: warning: 0x40000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:99:825: warning: 0x40000041 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:99:836: warning: 0x40000022 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:99:847: warning: 0x80000005 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:99:858: warning: 0xc0000082 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:99:869: warning: 0xc0000046 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:99:880: warning: 0x4000004b is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:99:891: warning: 0x80000107 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,54,0,65,0,29, { 0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b,0x80000107 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:100:6: warning: 55 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
     ^
/datasets/git/sha1dc/ubc_check.c:100:11: warning: 65 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
          ^
/datasets/git/sha1dc/ubc_check.c:100:16: warning: 30 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
               ^
/datasets/git/sha1dc/ubc_check.c:100:22: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                     ^
/datasets/git/sha1dc/ubc_check.c:100:33: warning: 0x0400001c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                ^
/datasets/git/sha1dc/ubc_check.c:100:44: warning: 0xcc000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                           ^
/datasets/git/sha1dc/ubc_check.c:100:55: warning: 0x0c000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                      ^
/datasets/git/sha1dc/ubc_check.c:100:66: warning: 0xc0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                 ^
/datasets/git/sha1dc/ubc_check.c:100:77: warning: 0xb400001c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                            ^
/datasets/git/sha1dc/ubc_check.c:100:88: warning: 0x3c000004 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:100:99: warning: 0xbc00001a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:100:110: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:100:121: warning: 0x2400001c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:100:132: warning: 0xec000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:100:143: warning: 0x0c000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:100:154: warning: 0xc0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:100:165: warning: 0xb400001c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:100:176: warning: 0x2c000004 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:100:187: warning: 0xbc000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:100:198: warning: 0xb0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:100:209: warning: 0x0000000c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:100:220: warning: 0xb8000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:100:231: warning: 0x08000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:100:242: warning: 0x78000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:100:253: warning: 0x08000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:100:264: warning: 0x70000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:100:275: warning: 0xb800001c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:100:286: warning: 0xe8000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:100:297: warning: 0xb0000004 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:100:308: warning: 0x58000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:100:319: warning: 0xb000000c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:100:330: warning: 0x48000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:100:341: warning: 0xb0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:100:352: warning: 0xb8000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:100:363: warning: 0x98000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:100:374: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:100:407: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:100:418: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:100:429: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:100:451: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:100:462: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:100:473: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:100:484: warning: 0x60000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:100:495: warning: 0x00000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:100:506: warning: 0xe0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:100:517: warning: 0x90000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:100:528: warning: 0x30000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:100:539: warning: 0xb0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:100:550: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:100:561: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:100:572: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:100:583: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:100:594: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:100:605: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:100:616: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:100:627: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:100:638: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:100:649: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:100:671: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:100:682: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:100:704: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:100:715: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:100:803: warning: 0x00000020 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:100:825: warning: 0x40000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:100:836: warning: 0x40000041 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:100:847: warning: 0x40000022 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:100:858: warning: 0x80000005 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:100:869: warning: 0xc0000082 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:100:880: warning: 0xc0000046 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:100:891: warning: 0x4000004b is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,55,0,65,0,30, { 0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046,0x4000004b } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:101:6: warning: 56 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
     ^
/datasets/git/sha1dc/ubc_check.c:101:11: warning: 65 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
          ^
/datasets/git/sha1dc/ubc_check.c:101:16: warning: 31 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
               ^
/datasets/git/sha1dc/ubc_check.c:101:22: warning: 0x2600001a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                     ^
/datasets/git/sha1dc/ubc_check.c:101:33: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                ^
/datasets/git/sha1dc/ubc_check.c:101:44: warning: 0x0400001c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                           ^
/datasets/git/sha1dc/ubc_check.c:101:55: warning: 0xcc000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                      ^
/datasets/git/sha1dc/ubc_check.c:101:66: warning: 0x0c000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                 ^
/datasets/git/sha1dc/ubc_check.c:101:77: warning: 0xc0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                            ^
/datasets/git/sha1dc/ubc_check.c:101:88: warning: 0xb400001c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:101:99: warning: 0x3c000004 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:101:110: warning: 0xbc00001a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:101:121: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:101:132: warning: 0x2400001c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:101:143: warning: 0xec000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:101:154: warning: 0x0c000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:101:165: warning: 0xc0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:101:176: warning: 0xb400001c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:101:187: warning: 0x2c000004 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:101:198: warning: 0xbc000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:101:209: warning: 0xb0000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:101:220: warning: 0x0000000c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:101:231: warning: 0xb8000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:101:242: warning: 0x08000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:101:253: warning: 0x78000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:101:264: warning: 0x08000014 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:101:275: warning: 0x70000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:101:286: warning: 0xb800001c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:101:297: warning: 0xe8000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:101:308: warning: 0xb0000004 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:101:319: warning: 0x58000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:101:330: warning: 0xb000000c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:101:341: warning: 0x48000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:101:352: warning: 0xb0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:101:363: warning: 0xb8000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:101:374: warning: 0x98000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:101:385: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:101:418: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:101:429: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:101:440: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:101:462: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:101:473: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:101:484: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:101:495: warning: 0x60000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:101:506: warning: 0x00000018 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:101:517: warning: 0xe0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:101:528: warning: 0x90000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:101:539: warning: 0x30000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:101:550: warning: 0xb0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:101:561: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^
/datasets/git/sha1dc/ubc_check.c:101:572: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
/datasets/git/sha1dc/ubc_check.c:101:583: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^
/datasets/git/sha1dc/ubc_check.c:101:594: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
/datasets/git/sha1dc/ubc_check.c:101:605: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
/datasets/git/sha1dc/ubc_check.c:101:616: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
/datasets/git/sha1dc/ubc_check.c:101:627: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
/datasets/git/sha1dc/ubc_check.c:101:638: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:101:649: warning: 0x80000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
/datasets/git/sha1dc/ubc_check.c:101:660: warning: 0x00000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:101:682: warning: 0x20000010 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:101:693: warning: 0xa0000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:101:715: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:101:726: warning: 0x20000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ^
/datasets/git/sha1dc/ubc_check.c:101:814: warning: 0x00000020 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
/datasets/git/sha1dc/ubc_check.c:101:836: warning: 0x40000002 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
/datasets/git/sha1dc/ubc_check.c:101:847: warning: 0x40000041 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
/datasets/git/sha1dc/ubc_check.c:101:858: warning: 0x40000022 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
/datasets/git/sha1dc/ubc_check.c:101:869: warning: 0x80000005 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
/datasets/git/sha1dc/ubc_check.c:101:880: warning: 0xc0000082 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
/datasets/git/sha1dc/ubc_check.c:101:891: warning: 0xc0000046 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
, {2,56,0,65,0,31, { 0x2600001a,0x00000010,0x0400001c,0xcc000014,0x0c000002,0xc0000010,0xb400001c,0x3c000004,0xbc00001a,0x20000010,0x2400001c,0xec000014,0x0c000002,0xc0000010,0xb400001c,0x2c000004,0xbc000018,0xb0000010,0x0000000c,0xb8000010,0x08000018,0x78000010,0x08000014,0x70000010,0xb800001c,0xe8000000,0xb0000004,0x58000010,0xb000000c,0x48000000,0xb0000000,0xb8000010,0x98000010,0xa0000000,0x00000000,0x00000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0x20000000,0x00000010,0x60000000,0x00000018,0xe0000000,0x90000000,0x30000010,0xb0000000,0x20000000,0x20000000,0xa0000000,0x00000010,0x80000000,0x20000000,0x20000000,0x20000000,0x80000000,0x00000010,0x00000000,0x20000010,0xa0000000,0x00000000,0x20000000,0x20000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000001,0x00000020,0x00000001,0x40000002,0x40000041,0x40000022,0x80000005,0xc0000082,0xc0000046 } }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
/datasets/git/sha1dc/ubc_check.c:104:6: warning: function 'ubc_check' has cognitive complexity of 161 (threshold 25) [readability-function-cognitive-complexity]
void ubc_check(const uint32_t W[80], uint32_t dvmask[1])
     ^
/datasets/git/sha1dc/ubc_check.c:133:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mask & (DV_I_44_0_bit|DV_I_48_0_bit|DV_II_47_0_bit|DV_II_54_0_bit|DV_II_56_0_bit))
        ^
/datasets/git/sha1dc/ubc_check.c:136:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mask & (DV_I_52_0_bit|DV_II_48_0_bit|DV_II_51_0_bit|DV_II_56_0_bit))
        ^
/datasets/git/sha1dc/ubc_check.c:138:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mask & (DV_I_52_0_bit|DV_II_48_0_bit|DV_II_50_0_bit|DV_II_56_0_bit))
        ^
/datasets/git/sha1dc/ubc_check.c:140:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mask & (DV_I_51_0_bit|DV_II_47_0_bit|DV_II_49_0_bit|DV_II_55_0_bit))
        ^
/datasets/git/sha1dc/ubc_check.c:142:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mask & (DV_I_48_0_bit|DV_II_47_0_bit|DV_II_52_0_bit|DV_II_53_0_bit))
        ^
/datasets/git/sha1dc/ubc_check.c:144:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mask & (DV_I_46_0_bit|DV_I_49_0_bit|DV_II_45_0_bit|DV_II_48_0_bit))
        ^
/datasets/git/sha1dc/ubc_check.c:146:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mask & (DV_I_52_0_bit|DV_II_48_0_bit|DV_II_49_0_bit))
        ^
/datasets/git/sha1dc/ubc_check.c:148:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mask & (DV_I_50_0_bit|DV_II_46_0_bit|DV_II_47_0_bit))
        ^
/datasets/git/sha1dc/ubc_check.c:150:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mask & (DV_I_49_0_bit|DV_I_51_0_bit|DV_II_45_0_bit))
        ^
/datasets/git/sha1dc/ubc_check.c:152:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mask & (DV_I_48_0_bit|DV_I_50_0_bit|DV_I_52_0_bit))
        ^
/datasets/git/sha1dc/ubc_check.c:154:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mask & (DV_I_47_0_bit|DV_I_49_0_bit|DV_I_51_0_bit))
        ^
/datasets/git/sha1dc/ubc_check.c:156:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mask & (DV_I_46_0_bit|DV_I_48_0_bit|DV_I_50_0_bit))
        ^
/datasets/git/sha1dc/ubc_check.c:158:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mask & (DV_I_45_0_bit|DV_I_47_0_bit|DV_I_49_0_bit))
        ^
/datasets/git/sha1dc/ubc_check.c:161:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mask & (DV_I_44_0_bit|DV_I_46_0_bit|DV_I_48_0_bit))
        ^
/datasets/git/sha1dc/ubc_check.c:164:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mask & (DV_I_43_0_bit|DV_I_45_0_bit|DV_I_47_0_bit))
        ^
/datasets/git/sha1dc/ubc_check.c:168:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mask & (DV_I_44_0_bit|DV_I_46_0_bit|DV_II_56_0_bit))
        ^
/datasets/git/sha1dc/ubc_check.c:171:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mask & (DV_I_43_0_bit|DV_I_45_0_bit|DV_II_55_0_bit))
        ^
/datasets/git/sha1dc/ubc_check.c:173:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mask & (DV_I_44_0_bit|DV_II_54_0_bit|DV_II_56_0_bit))
        ^
/datasets/git/sha1dc/ubc_check.c:175:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mask & (DV_I_43_0_bit|DV_II_53_0_bit|DV_II_55_0_bit))
        ^
/datasets/git/sha1dc/ubc_check.c:178:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mask & (DV_I_45_0_bit|DV_I_48_0_bit|DV_II_47_0_bit))
        ^
/datasets/git/sha1dc/ubc_check.c:180:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mask & (DV_I_48_0_bit|DV_II_48_0_bit))
        ^
/datasets/git/sha1dc/ubc_check.c:182:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mask & (DV_I_45_0_bit|DV_II_45_0_bit))
        ^
/datasets/git/sha1dc/ubc_check.c:184:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mask & (DV_I_47_0_bit|DV_II_47_0_bit))
        ^
/datasets/git/sha1dc/ubc_check.c:186:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mask & (DV_I_46_0_bit|DV_II_46_0_bit))
        ^
/datasets/git/sha1dc/ubc_check.c:189:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mask & (DV_I_45_0_bit|DV_II_45_0_bit))
        ^
/datasets/git/sha1dc/ubc_check.c:191:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mask & (DV_II_51_0_bit|DV_II_54_0_bit))
        ^
/datasets/git/sha1dc/ubc_check.c:193:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mask & (DV_II_50_0_bit|DV_II_53_0_bit))
        ^
/datasets/git/sha1dc/ubc_check.c:195:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mask & (DV_II_52_0_bit|DV_II_54_0_bit))
        ^
/datasets/git/sha1dc/ubc_check.c:197:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mask & (DV_II_51_0_bit|DV_II_52_0_bit))
        ^
/datasets/git/sha1dc/ubc_check.c:199:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mask & (DV_II_49_0_bit|DV_II_52_0_bit))
        ^
/datasets/git/sha1dc/ubc_check.c:201:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mask & (DV_II_51_0_bit|DV_II_53_0_bit))
        ^
/datasets/git/sha1dc/ubc_check.c:203:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mask & (DV_II_50_0_bit|DV_II_52_0_bit))
        ^
/datasets/git/sha1dc/ubc_check.c:205:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mask & (DV_II_49_0_bit|DV_II_51_0_bit))
        ^
/datasets/git/sha1dc/ubc_check.c:209:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mask & (DV_I_51_0_bit|DV_I_52_0_bit))
        ^
/datasets/git/sha1dc/ubc_check.c:221:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mask & (DV_I_52_0_bit|DV_II_51_0_bit))
        ^
/datasets/git/sha1dc/ubc_check.c:223:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mask & (DV_I_51_0_bit|DV_II_50_0_bit))
        ^
/datasets/git/sha1dc/ubc_check.c:225:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mask & (DV_I_48_2_bit|DV_I_51_2_bit))
        ^
/datasets/git/sha1dc/ubc_check.c:227:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mask & (DV_I_50_0_bit|DV_II_49_0_bit))
        ^
/datasets/git/sha1dc/ubc_check.c:229:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mask & (DV_II_52_0_bit|DV_II_54_0_bit))
        ^
/datasets/git/sha1dc/ubc_check.c:232:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mask & (DV_I_51_0_bit|DV_II_47_0_bit))
        ^
/datasets/git/sha1dc/ubc_check.c:234:1: note: +1, including nesting penalty of 0, nesting level increased to 1
if (mask) {
^
/datasets/git/sha1dc/ubc_check.c:236:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        if (mask & DV_I_43_0_bit)
        ^
/datasets/git/sha1dc/ubc_check.c:237:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                 if (
                 ^
/datasets/git/sha1dc/ubc_check.c:240:5: note: +1
                         || !((W[58]^(W[63]>>30)) & (1<<0))
                         ^
/datasets/git/sha1dc/ubc_check.c:242:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        if (mask & DV_I_44_0_bit)
        ^
/datasets/git/sha1dc/ubc_check.c:243:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                 if (
                 ^
/datasets/git/sha1dc/ubc_check.c:246:5: note: +1
                         || !((W[59]^(W[64]>>30)) & (1<<0))
                         ^
/datasets/git/sha1dc/ubc_check.c:248:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        if (mask & DV_I_46_2_bit)
        ^
/datasets/git/sha1dc/ubc_check.c:250:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        if (mask & DV_I_47_2_bit)
        ^
/datasets/git/sha1dc/ubc_check.c:251:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                 if (
                 ^
/datasets/git/sha1dc/ubc_check.c:253:5: note: +1
                         || !(!((W[41]^W[43]) & (1<<6)))
                         ^
/datasets/git/sha1dc/ubc_check.c:255:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        if (mask & DV_I_48_2_bit)
        ^
/datasets/git/sha1dc/ubc_check.c:256:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                 if (
                 ^
/datasets/git/sha1dc/ubc_check.c:258:5: note: +1
                         || !(!((W[48]^(W[49]<<5)) & (1<<6)))
                         ^
/datasets/git/sha1dc/ubc_check.c:260:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        if (mask & DV_I_49_2_bit)
        ^
/datasets/git/sha1dc/ubc_check.c:261:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                 if (
                 ^
/datasets/git/sha1dc/ubc_check.c:265:5: note: +1
                         || !((W[38]^W[40]) & (1<<1))
                         ^
/datasets/git/sha1dc/ubc_check.c:267:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        if (mask & DV_I_50_0_bit)
        ^
/datasets/git/sha1dc/ubc_check.c:269:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        if (mask & DV_I_50_2_bit)
        ^
/datasets/git/sha1dc/ubc_check.c:271:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        if (mask & DV_I_51_0_bit)
        ^
/datasets/git/sha1dc/ubc_check.c:273:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        if (mask & DV_I_51_2_bit)
        ^
/datasets/git/sha1dc/ubc_check.c:274:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                 if (
                 ^
/datasets/git/sha1dc/ubc_check.c:278:5: note: +1
                         || !(!((W[35]^(W[39]>>25)) & (1<<5)))
                         ^
/datasets/git/sha1dc/ubc_check.c:280:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        if (mask & DV_I_52_0_bit)
        ^
/datasets/git/sha1dc/ubc_check.c:282:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        if (mask & DV_II_46_2_bit)
        ^
/datasets/git/sha1dc/ubc_check.c:284:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        if (mask & DV_II_48_0_bit)
        ^
/datasets/git/sha1dc/ubc_check.c:285:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                 if (
                 ^
/datasets/git/sha1dc/ubc_check.c:287:5: note: +1
                         || !((W[35]^(W[40]<<2)) & (1<<30))
                         ^
/datasets/git/sha1dc/ubc_check.c:289:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        if (mask & DV_II_49_0_bit)
        ^
/datasets/git/sha1dc/ubc_check.c:290:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                 if (
                 ^
/datasets/git/sha1dc/ubc_check.c:292:5: note: +1
                         || !((W[36]^(W[41]<<2)) & (1<<30))
                         ^
/datasets/git/sha1dc/ubc_check.c:294:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        if (mask & DV_II_49_2_bit)
        ^
/datasets/git/sha1dc/ubc_check.c:295:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                 if (
                 ^
/datasets/git/sha1dc/ubc_check.c:301:5: note: +1
                         || !((W[36]^(W[41]>>30)) & (1<<0))
                         ^
/datasets/git/sha1dc/ubc_check.c:303:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        if (mask & DV_II_50_0_bit)
        ^
/datasets/git/sha1dc/ubc_check.c:304:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                 if (
                 ^
/datasets/git/sha1dc/ubc_check.c:307:5: note: +1
                         || !((W[37]^(W[42]<<2)) & (1<<30))
                         ^
/datasets/git/sha1dc/ubc_check.c:309:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        if (mask & DV_II_50_2_bit)
        ^
/datasets/git/sha1dc/ubc_check.c:310:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                 if (
                 ^
/datasets/git/sha1dc/ubc_check.c:316:5: note: +1
                         || !((W[37]^(W[42]>>30)) & (1<<0))
                         ^
/datasets/git/sha1dc/ubc_check.c:318:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        if (mask & DV_II_51_0_bit)
        ^
/datasets/git/sha1dc/ubc_check.c:319:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                 if (
                 ^
/datasets/git/sha1dc/ubc_check.c:321:5: note: +1
                         || !((W[38]^(W[43]<<2)) & (1<<30))
                         ^
/datasets/git/sha1dc/ubc_check.c:323:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        if (mask & DV_II_51_2_bit)
        ^
/datasets/git/sha1dc/ubc_check.c:324:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                 if (
                 ^
/datasets/git/sha1dc/ubc_check.c:330:5: note: +1
                         || !((W[38]^(W[43]>>30)) & (1<<0))
                         ^
/datasets/git/sha1dc/ubc_check.c:332:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        if (mask & DV_II_52_0_bit)
        ^
/datasets/git/sha1dc/ubc_check.c:333:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                 if (
                 ^
/datasets/git/sha1dc/ubc_check.c:337:5: note: +1
                         || !((W[39]^(W[44]<<2)) & (1<<30))
                         ^
/datasets/git/sha1dc/ubc_check.c:339:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        if (mask & DV_II_53_0_bit)
        ^
/datasets/git/sha1dc/ubc_check.c:340:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                 if (
                 ^
/datasets/git/sha1dc/ubc_check.c:344:5: note: +1
                         || !(!((W[41]^(W[45]>>25)) & (1<<4)))
                         ^
/datasets/git/sha1dc/ubc_check.c:346:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        if (mask & DV_II_54_0_bit)
        ^
/datasets/git/sha1dc/ubc_check.c:347:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                 if (
                 ^
/datasets/git/sha1dc/ubc_check.c:350:5: note: +1
                         || !(!((W[42]^(W[46]>>25)) & (1<<4)))
                         ^
/datasets/git/sha1dc/ubc_check.c:352:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        if (mask & DV_II_55_0_bit)
        ^
/datasets/git/sha1dc/ubc_check.c:353:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                 if (
                 ^
/datasets/git/sha1dc/ubc_check.c:357:5: note: +1
                         || !(!((W[43]^(W[47]>>25)) & (1<<4)))
                         ^
/datasets/git/sha1dc/ubc_check.c:359:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        if (mask & DV_II_56_0_bit)
        ^
/datasets/git/sha1dc/ubc_check.c:360:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                 if (
                 ^
/datasets/git/sha1dc/ubc_check.c:363:5: note: +1
                         || !(!((W[44]^(W[48]>>25)) & (1<<4)))
                         ^
/datasets/git/sha1dc/ubc_check.c:104:31: warning: parameter name 'W' is too short, expected at least 3 characters [readability-identifier-length]
void ubc_check(const uint32_t W[80], uint32_t dvmask[1])
                              ^
/datasets/git/sha1dc/ubc_check.c:104:33: warning: 80 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
void ubc_check(const uint32_t W[80], uint32_t dvmask[1])
                                ^
/datasets/git/sha1dc/ubc_check.c:107:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[44]^W[45])>>29)&1)-1) | ~(DV_I_48_0_bit|DV_I_51_0_bit|DV_I_52_0_bit|DV_II_45_0_bit|DV_II_46_0_bit|DV_II_50_0_bit|DV_II_51_0_bit));
                   ^                   ~
/datasets/git/sha1dc/ubc_check.c:107:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[44]^W[45])>>29)&1)-1) | ~(DV_I_48_0_bit|DV_I_51_0_bit|DV_I_52_0_bit|DV_II_45_0_bit|DV_II_46_0_bit|DV_II_50_0_bit|DV_II_51_0_bit));
                    ^              ~~
/datasets/git/sha1dc/ubc_check.c:107:17: warning: 44 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[44]^W[45])>>29)&1)-1) | ~(DV_I_48_0_bit|DV_I_51_0_bit|DV_I_52_0_bit|DV_II_45_0_bit|DV_II_46_0_bit|DV_II_50_0_bit|DV_II_51_0_bit));
                       ^
/datasets/git/sha1dc/ubc_check.c:107:23: warning: 45 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[44]^W[45])>>29)&1)-1) | ~(DV_I_48_0_bit|DV_I_51_0_bit|DV_I_52_0_bit|DV_II_45_0_bit|DV_II_46_0_bit|DV_II_50_0_bit|DV_II_51_0_bit));
                             ^
/datasets/git/sha1dc/ubc_check.c:107:29: warning: 29 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[44]^W[45])>>29)&1)-1) | ~(DV_I_48_0_bit|DV_I_51_0_bit|DV_I_52_0_bit|DV_II_45_0_bit|DV_II_46_0_bit|DV_II_50_0_bit|DV_II_51_0_bit));
                                   ^
/datasets/git/sha1dc/ubc_check.c:108:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[49]^W[50])>>29)&1)-1) | ~(DV_I_46_0_bit|DV_II_45_0_bit|DV_II_50_0_bit|DV_II_51_0_bit|DV_II_55_0_bit|DV_II_56_0_bit));
                   ^                   ~
/datasets/git/sha1dc/ubc_check.c:108:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[49]^W[50])>>29)&1)-1) | ~(DV_I_46_0_bit|DV_II_45_0_bit|DV_II_50_0_bit|DV_II_51_0_bit|DV_II_55_0_bit|DV_II_56_0_bit));
                    ^              ~~
/datasets/git/sha1dc/ubc_check.c:108:17: warning: 49 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[49]^W[50])>>29)&1)-1) | ~(DV_I_46_0_bit|DV_II_45_0_bit|DV_II_50_0_bit|DV_II_51_0_bit|DV_II_55_0_bit|DV_II_56_0_bit));
                       ^
/datasets/git/sha1dc/ubc_check.c:108:23: warning: 50 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[49]^W[50])>>29)&1)-1) | ~(DV_I_46_0_bit|DV_II_45_0_bit|DV_II_50_0_bit|DV_II_51_0_bit|DV_II_55_0_bit|DV_II_56_0_bit));
                             ^
/datasets/git/sha1dc/ubc_check.c:108:29: warning: 29 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[49]^W[50])>>29)&1)-1) | ~(DV_I_46_0_bit|DV_II_45_0_bit|DV_II_50_0_bit|DV_II_51_0_bit|DV_II_55_0_bit|DV_II_56_0_bit));
                                   ^
/datasets/git/sha1dc/ubc_check.c:109:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[48]^W[49])>>29)&1)-1) | ~(DV_I_45_0_bit|DV_I_52_0_bit|DV_II_49_0_bit|DV_II_50_0_bit|DV_II_54_0_bit|DV_II_55_0_bit));
                   ^                   ~
/datasets/git/sha1dc/ubc_check.c:109:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[48]^W[49])>>29)&1)-1) | ~(DV_I_45_0_bit|DV_I_52_0_bit|DV_II_49_0_bit|DV_II_50_0_bit|DV_II_54_0_bit|DV_II_55_0_bit));
                    ^              ~~
/datasets/git/sha1dc/ubc_check.c:109:17: warning: 48 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[48]^W[49])>>29)&1)-1) | ~(DV_I_45_0_bit|DV_I_52_0_bit|DV_II_49_0_bit|DV_II_50_0_bit|DV_II_54_0_bit|DV_II_55_0_bit));
                       ^
/datasets/git/sha1dc/ubc_check.c:109:23: warning: 49 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[48]^W[49])>>29)&1)-1) | ~(DV_I_45_0_bit|DV_I_52_0_bit|DV_II_49_0_bit|DV_II_50_0_bit|DV_II_54_0_bit|DV_II_55_0_bit));
                             ^
/datasets/git/sha1dc/ubc_check.c:109:29: warning: 29 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[48]^W[49])>>29)&1)-1) | ~(DV_I_45_0_bit|DV_I_52_0_bit|DV_II_49_0_bit|DV_II_50_0_bit|DV_II_54_0_bit|DV_II_55_0_bit));
                                   ^
/datasets/git/sha1dc/ubc_check.c:110:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[47]^(W[50]>>25))&(1<<4))-(1<<4)) | ~(DV_I_47_0_bit|DV_I_49_0_bit|DV_I_51_0_bit|DV_II_45_0_bit|DV_II_51_0_bit|DV_II_56_0_bit));
                   ^                   ~~~~~~
/datasets/git/sha1dc/ubc_check.c:110:16: warning: 47 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((((W[47]^(W[50]>>25))&(1<<4))-(1<<4)) | ~(DV_I_47_0_bit|DV_I_49_0_bit|DV_I_51_0_bit|DV_II_45_0_bit|DV_II_51_0_bit|DV_II_56_0_bit));
                      ^
/datasets/git/sha1dc/ubc_check.c:110:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[47]^(W[50]>>25))&(1<<4))-(1<<4)) | ~(DV_I_47_0_bit|DV_I_49_0_bit|DV_I_51_0_bit|DV_II_45_0_bit|DV_II_51_0_bit|DV_II_56_0_bit));
                           ^      ~~
/datasets/git/sha1dc/ubc_check.c:110:23: warning: 50 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((((W[47]^(W[50]>>25))&(1<<4))-(1<<4)) | ~(DV_I_47_0_bit|DV_I_49_0_bit|DV_I_51_0_bit|DV_II_45_0_bit|DV_II_51_0_bit|DV_II_56_0_bit));
                             ^
/datasets/git/sha1dc/ubc_check.c:110:28: warning: 25 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((((W[47]^(W[50]>>25))&(1<<4))-(1<<4)) | ~(DV_I_47_0_bit|DV_I_49_0_bit|DV_I_51_0_bit|DV_II_45_0_bit|DV_II_51_0_bit|DV_II_56_0_bit));
                                  ^
/datasets/git/sha1dc/ubc_check.c:110:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[47]^(W[50]>>25))&(1<<4))-(1<<4)) | ~(DV_I_47_0_bit|DV_I_49_0_bit|DV_I_51_0_bit|DV_II_45_0_bit|DV_II_51_0_bit|DV_II_56_0_bit));
                                        ^
/datasets/git/sha1dc/ubc_check.c:110:42: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[47]^(W[50]>>25))&(1<<4))-(1<<4)) | ~(DV_I_47_0_bit|DV_I_49_0_bit|DV_I_51_0_bit|DV_II_45_0_bit|DV_II_51_0_bit|DV_II_56_0_bit));
                                                ^
/datasets/git/sha1dc/ubc_check.c:111:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[47]^W[48])>>29)&1)-1) | ~(DV_I_44_0_bit|DV_I_51_0_bit|DV_II_48_0_bit|DV_II_49_0_bit|DV_II_53_0_bit|DV_II_54_0_bit));
                   ^                   ~
/datasets/git/sha1dc/ubc_check.c:111:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[47]^W[48])>>29)&1)-1) | ~(DV_I_44_0_bit|DV_I_51_0_bit|DV_II_48_0_bit|DV_II_49_0_bit|DV_II_53_0_bit|DV_II_54_0_bit));
                    ^              ~~
/datasets/git/sha1dc/ubc_check.c:111:17: warning: 47 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[47]^W[48])>>29)&1)-1) | ~(DV_I_44_0_bit|DV_I_51_0_bit|DV_II_48_0_bit|DV_II_49_0_bit|DV_II_53_0_bit|DV_II_54_0_bit));
                       ^
/datasets/git/sha1dc/ubc_check.c:111:23: warning: 48 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[47]^W[48])>>29)&1)-1) | ~(DV_I_44_0_bit|DV_I_51_0_bit|DV_II_48_0_bit|DV_II_49_0_bit|DV_II_53_0_bit|DV_II_54_0_bit));
                             ^
/datasets/git/sha1dc/ubc_check.c:111:29: warning: 29 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[47]^W[48])>>29)&1)-1) | ~(DV_I_44_0_bit|DV_I_51_0_bit|DV_II_48_0_bit|DV_II_49_0_bit|DV_II_53_0_bit|DV_II_54_0_bit));
                                   ^
/datasets/git/sha1dc/ubc_check.c:112:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[46]>>4)^(W[49]>>29))&1)-1) | ~(DV_I_46_0_bit|DV_I_48_0_bit|DV_I_50_0_bit|DV_I_52_0_bit|DV_II_50_0_bit|DV_II_55_0_bit));
                   ^                        ~
/datasets/git/sha1dc/ubc_check.c:112:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[46]>>4)^(W[49]>>29))&1)-1) | ~(DV_I_46_0_bit|DV_I_48_0_bit|DV_I_50_0_bit|DV_I_52_0_bit|DV_II_50_0_bit|DV_II_55_0_bit));
                     ^      ~
/datasets/git/sha1dc/ubc_check.c:112:17: warning: 46 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[46]>>4)^(W[49]>>29))&1)-1) | ~(DV_I_46_0_bit|DV_I_48_0_bit|DV_I_50_0_bit|DV_I_52_0_bit|DV_II_50_0_bit|DV_II_55_0_bit));
                       ^
/datasets/git/sha1dc/ubc_check.c:112:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[46]>>4)^(W[49]>>29))&1)-1) | ~(DV_I_46_0_bit|DV_I_48_0_bit|DV_I_50_0_bit|DV_I_52_0_bit|DV_II_50_0_bit|DV_II_55_0_bit));
                                ^      ~~
/datasets/git/sha1dc/ubc_check.c:112:28: warning: 49 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[46]>>4)^(W[49]>>29))&1)-1) | ~(DV_I_46_0_bit|DV_I_48_0_bit|DV_I_50_0_bit|DV_I_52_0_bit|DV_II_50_0_bit|DV_II_55_0_bit));
                                  ^
/datasets/git/sha1dc/ubc_check.c:112:33: warning: 29 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[46]>>4)^(W[49]>>29))&1)-1) | ~(DV_I_46_0_bit|DV_I_48_0_bit|DV_I_50_0_bit|DV_I_52_0_bit|DV_II_50_0_bit|DV_II_55_0_bit));
                                       ^
/datasets/git/sha1dc/ubc_check.c:113:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[46]^W[47])>>29)&1)-1) | ~(DV_I_43_0_bit|DV_I_50_0_bit|DV_II_47_0_bit|DV_II_48_0_bit|DV_II_52_0_bit|DV_II_53_0_bit));
                   ^                   ~
/datasets/git/sha1dc/ubc_check.c:113:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[46]^W[47])>>29)&1)-1) | ~(DV_I_43_0_bit|DV_I_50_0_bit|DV_II_47_0_bit|DV_II_48_0_bit|DV_II_52_0_bit|DV_II_53_0_bit));
                    ^              ~~
/datasets/git/sha1dc/ubc_check.c:113:17: warning: 46 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[46]^W[47])>>29)&1)-1) | ~(DV_I_43_0_bit|DV_I_50_0_bit|DV_II_47_0_bit|DV_II_48_0_bit|DV_II_52_0_bit|DV_II_53_0_bit));
                       ^
/datasets/git/sha1dc/ubc_check.c:113:23: warning: 47 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[46]^W[47])>>29)&1)-1) | ~(DV_I_43_0_bit|DV_I_50_0_bit|DV_II_47_0_bit|DV_II_48_0_bit|DV_II_52_0_bit|DV_II_53_0_bit));
                             ^
/datasets/git/sha1dc/ubc_check.c:113:29: warning: 29 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[46]^W[47])>>29)&1)-1) | ~(DV_I_43_0_bit|DV_I_50_0_bit|DV_II_47_0_bit|DV_II_48_0_bit|DV_II_52_0_bit|DV_II_53_0_bit));
                                   ^
/datasets/git/sha1dc/ubc_check.c:114:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[45]>>4)^(W[48]>>29))&1)-1) | ~(DV_I_45_0_bit|DV_I_47_0_bit|DV_I_49_0_bit|DV_I_51_0_bit|DV_II_49_0_bit|DV_II_54_0_bit));
                   ^                        ~
/datasets/git/sha1dc/ubc_check.c:114:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[45]>>4)^(W[48]>>29))&1)-1) | ~(DV_I_45_0_bit|DV_I_47_0_bit|DV_I_49_0_bit|DV_I_51_0_bit|DV_II_49_0_bit|DV_II_54_0_bit));
                     ^      ~
/datasets/git/sha1dc/ubc_check.c:114:17: warning: 45 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[45]>>4)^(W[48]>>29))&1)-1) | ~(DV_I_45_0_bit|DV_I_47_0_bit|DV_I_49_0_bit|DV_I_51_0_bit|DV_II_49_0_bit|DV_II_54_0_bit));
                       ^
/datasets/git/sha1dc/ubc_check.c:114:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[45]>>4)^(W[48]>>29))&1)-1) | ~(DV_I_45_0_bit|DV_I_47_0_bit|DV_I_49_0_bit|DV_I_51_0_bit|DV_II_49_0_bit|DV_II_54_0_bit));
                                ^      ~~
/datasets/git/sha1dc/ubc_check.c:114:28: warning: 48 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[45]>>4)^(W[48]>>29))&1)-1) | ~(DV_I_45_0_bit|DV_I_47_0_bit|DV_I_49_0_bit|DV_I_51_0_bit|DV_II_49_0_bit|DV_II_54_0_bit));
                                  ^
/datasets/git/sha1dc/ubc_check.c:114:33: warning: 29 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[45]>>4)^(W[48]>>29))&1)-1) | ~(DV_I_45_0_bit|DV_I_47_0_bit|DV_I_49_0_bit|DV_I_51_0_bit|DV_II_49_0_bit|DV_II_54_0_bit));
                                       ^
/datasets/git/sha1dc/ubc_check.c:115:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[45]^W[46])>>29)&1)-1) | ~(DV_I_49_0_bit|DV_I_52_0_bit|DV_II_46_0_bit|DV_II_47_0_bit|DV_II_51_0_bit|DV_II_52_0_bit));
                   ^                   ~
/datasets/git/sha1dc/ubc_check.c:115:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[45]^W[46])>>29)&1)-1) | ~(DV_I_49_0_bit|DV_I_52_0_bit|DV_II_46_0_bit|DV_II_47_0_bit|DV_II_51_0_bit|DV_II_52_0_bit));
                    ^              ~~
/datasets/git/sha1dc/ubc_check.c:115:17: warning: 45 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[45]^W[46])>>29)&1)-1) | ~(DV_I_49_0_bit|DV_I_52_0_bit|DV_II_46_0_bit|DV_II_47_0_bit|DV_II_51_0_bit|DV_II_52_0_bit));
                       ^
/datasets/git/sha1dc/ubc_check.c:115:23: warning: 46 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[45]^W[46])>>29)&1)-1) | ~(DV_I_49_0_bit|DV_I_52_0_bit|DV_II_46_0_bit|DV_II_47_0_bit|DV_II_51_0_bit|DV_II_52_0_bit));
                             ^
/datasets/git/sha1dc/ubc_check.c:115:29: warning: 29 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[45]^W[46])>>29)&1)-1) | ~(DV_I_49_0_bit|DV_I_52_0_bit|DV_II_46_0_bit|DV_II_47_0_bit|DV_II_51_0_bit|DV_II_52_0_bit));
                                   ^
/datasets/git/sha1dc/ubc_check.c:116:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[44]>>4)^(W[47]>>29))&1)-1) | ~(DV_I_44_0_bit|DV_I_46_0_bit|DV_I_48_0_bit|DV_I_50_0_bit|DV_II_48_0_bit|DV_II_53_0_bit));
                   ^                        ~
/datasets/git/sha1dc/ubc_check.c:116:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[44]>>4)^(W[47]>>29))&1)-1) | ~(DV_I_44_0_bit|DV_I_46_0_bit|DV_I_48_0_bit|DV_I_50_0_bit|DV_II_48_0_bit|DV_II_53_0_bit));
                     ^      ~
/datasets/git/sha1dc/ubc_check.c:116:17: warning: 44 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[44]>>4)^(W[47]>>29))&1)-1) | ~(DV_I_44_0_bit|DV_I_46_0_bit|DV_I_48_0_bit|DV_I_50_0_bit|DV_II_48_0_bit|DV_II_53_0_bit));
                       ^
/datasets/git/sha1dc/ubc_check.c:116:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[44]>>4)^(W[47]>>29))&1)-1) | ~(DV_I_44_0_bit|DV_I_46_0_bit|DV_I_48_0_bit|DV_I_50_0_bit|DV_II_48_0_bit|DV_II_53_0_bit));
                                ^      ~~
/datasets/git/sha1dc/ubc_check.c:116:28: warning: 47 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[44]>>4)^(W[47]>>29))&1)-1) | ~(DV_I_44_0_bit|DV_I_46_0_bit|DV_I_48_0_bit|DV_I_50_0_bit|DV_II_48_0_bit|DV_II_53_0_bit));
                                  ^
/datasets/git/sha1dc/ubc_check.c:116:33: warning: 29 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[44]>>4)^(W[47]>>29))&1)-1) | ~(DV_I_44_0_bit|DV_I_46_0_bit|DV_I_48_0_bit|DV_I_50_0_bit|DV_II_48_0_bit|DV_II_53_0_bit));
                                       ^
/datasets/git/sha1dc/ubc_check.c:117:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[43]>>4)^(W[46]>>29))&1)-1) | ~(DV_I_43_0_bit|DV_I_45_0_bit|DV_I_47_0_bit|DV_I_49_0_bit|DV_II_47_0_bit|DV_II_52_0_bit));
                   ^                        ~
/datasets/git/sha1dc/ubc_check.c:117:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[43]>>4)^(W[46]>>29))&1)-1) | ~(DV_I_43_0_bit|DV_I_45_0_bit|DV_I_47_0_bit|DV_I_49_0_bit|DV_II_47_0_bit|DV_II_52_0_bit));
                     ^      ~
/datasets/git/sha1dc/ubc_check.c:117:17: warning: 43 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[43]>>4)^(W[46]>>29))&1)-1) | ~(DV_I_43_0_bit|DV_I_45_0_bit|DV_I_47_0_bit|DV_I_49_0_bit|DV_II_47_0_bit|DV_II_52_0_bit));
                       ^
/datasets/git/sha1dc/ubc_check.c:117:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[43]>>4)^(W[46]>>29))&1)-1) | ~(DV_I_43_0_bit|DV_I_45_0_bit|DV_I_47_0_bit|DV_I_49_0_bit|DV_II_47_0_bit|DV_II_52_0_bit));
                                ^      ~~
/datasets/git/sha1dc/ubc_check.c:117:28: warning: 46 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[43]>>4)^(W[46]>>29))&1)-1) | ~(DV_I_43_0_bit|DV_I_45_0_bit|DV_I_47_0_bit|DV_I_49_0_bit|DV_II_47_0_bit|DV_II_52_0_bit));
                                  ^
/datasets/git/sha1dc/ubc_check.c:117:33: warning: 29 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[43]>>4)^(W[46]>>29))&1)-1) | ~(DV_I_43_0_bit|DV_I_45_0_bit|DV_I_47_0_bit|DV_I_49_0_bit|DV_II_47_0_bit|DV_II_52_0_bit));
                                       ^
/datasets/git/sha1dc/ubc_check.c:118:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[43]^W[44])>>29)&1)-1) | ~(DV_I_47_0_bit|DV_I_50_0_bit|DV_I_51_0_bit|DV_II_45_0_bit|DV_II_49_0_bit|DV_II_50_0_bit));
                   ^                   ~
/datasets/git/sha1dc/ubc_check.c:118:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[43]^W[44])>>29)&1)-1) | ~(DV_I_47_0_bit|DV_I_50_0_bit|DV_I_51_0_bit|DV_II_45_0_bit|DV_II_49_0_bit|DV_II_50_0_bit));
                    ^              ~~
/datasets/git/sha1dc/ubc_check.c:118:17: warning: 43 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[43]^W[44])>>29)&1)-1) | ~(DV_I_47_0_bit|DV_I_50_0_bit|DV_I_51_0_bit|DV_II_45_0_bit|DV_II_49_0_bit|DV_II_50_0_bit));
                       ^
/datasets/git/sha1dc/ubc_check.c:118:23: warning: 44 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[43]^W[44])>>29)&1)-1) | ~(DV_I_47_0_bit|DV_I_50_0_bit|DV_I_51_0_bit|DV_II_45_0_bit|DV_II_49_0_bit|DV_II_50_0_bit));
                             ^
/datasets/git/sha1dc/ubc_check.c:118:29: warning: 29 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[43]^W[44])>>29)&1)-1) | ~(DV_I_47_0_bit|DV_I_50_0_bit|DV_I_51_0_bit|DV_II_45_0_bit|DV_II_49_0_bit|DV_II_50_0_bit));
                                   ^
/datasets/git/sha1dc/ubc_check.c:119:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[42]>>4)^(W[45]>>29))&1)-1) | ~(DV_I_44_0_bit|DV_I_46_0_bit|DV_I_48_0_bit|DV_I_52_0_bit|DV_II_46_0_bit|DV_II_51_0_bit));
                   ^                        ~
/datasets/git/sha1dc/ubc_check.c:119:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[42]>>4)^(W[45]>>29))&1)-1) | ~(DV_I_44_0_bit|DV_I_46_0_bit|DV_I_48_0_bit|DV_I_52_0_bit|DV_II_46_0_bit|DV_II_51_0_bit));
                     ^      ~
/datasets/git/sha1dc/ubc_check.c:119:17: warning: 42 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[42]>>4)^(W[45]>>29))&1)-1) | ~(DV_I_44_0_bit|DV_I_46_0_bit|DV_I_48_0_bit|DV_I_52_0_bit|DV_II_46_0_bit|DV_II_51_0_bit));
                       ^
/datasets/git/sha1dc/ubc_check.c:119:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[42]>>4)^(W[45]>>29))&1)-1) | ~(DV_I_44_0_bit|DV_I_46_0_bit|DV_I_48_0_bit|DV_I_52_0_bit|DV_II_46_0_bit|DV_II_51_0_bit));
                                ^      ~~
/datasets/git/sha1dc/ubc_check.c:119:28: warning: 45 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[42]>>4)^(W[45]>>29))&1)-1) | ~(DV_I_44_0_bit|DV_I_46_0_bit|DV_I_48_0_bit|DV_I_52_0_bit|DV_II_46_0_bit|DV_II_51_0_bit));
                                  ^
/datasets/git/sha1dc/ubc_check.c:119:33: warning: 29 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[42]>>4)^(W[45]>>29))&1)-1) | ~(DV_I_44_0_bit|DV_I_46_0_bit|DV_I_48_0_bit|DV_I_52_0_bit|DV_II_46_0_bit|DV_II_51_0_bit));
                                       ^
/datasets/git/sha1dc/ubc_check.c:120:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[41]>>4)^(W[44]>>29))&1)-1) | ~(DV_I_43_0_bit|DV_I_45_0_bit|DV_I_47_0_bit|DV_I_51_0_bit|DV_II_45_0_bit|DV_II_50_0_bit));
                   ^                        ~
/datasets/git/sha1dc/ubc_check.c:120:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[41]>>4)^(W[44]>>29))&1)-1) | ~(DV_I_43_0_bit|DV_I_45_0_bit|DV_I_47_0_bit|DV_I_51_0_bit|DV_II_45_0_bit|DV_II_50_0_bit));
                     ^      ~
/datasets/git/sha1dc/ubc_check.c:120:17: warning: 41 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[41]>>4)^(W[44]>>29))&1)-1) | ~(DV_I_43_0_bit|DV_I_45_0_bit|DV_I_47_0_bit|DV_I_51_0_bit|DV_II_45_0_bit|DV_II_50_0_bit));
                       ^
/datasets/git/sha1dc/ubc_check.c:120:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[41]>>4)^(W[44]>>29))&1)-1) | ~(DV_I_43_0_bit|DV_I_45_0_bit|DV_I_47_0_bit|DV_I_51_0_bit|DV_II_45_0_bit|DV_II_50_0_bit));
                                ^      ~~
/datasets/git/sha1dc/ubc_check.c:120:28: warning: 44 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[41]>>4)^(W[44]>>29))&1)-1) | ~(DV_I_43_0_bit|DV_I_45_0_bit|DV_I_47_0_bit|DV_I_51_0_bit|DV_II_45_0_bit|DV_II_50_0_bit));
                                  ^
/datasets/git/sha1dc/ubc_check.c:120:33: warning: 29 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[41]>>4)^(W[44]>>29))&1)-1) | ~(DV_I_43_0_bit|DV_I_45_0_bit|DV_I_47_0_bit|DV_I_51_0_bit|DV_II_45_0_bit|DV_II_50_0_bit));
                                       ^
/datasets/git/sha1dc/ubc_check.c:121:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[40]^W[41])>>29)&1)-1) | ~(DV_I_44_0_bit|DV_I_47_0_bit|DV_I_48_0_bit|DV_II_46_0_bit|DV_II_47_0_bit|DV_II_56_0_bit));
                   ^                   ~
/datasets/git/sha1dc/ubc_check.c:121:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[40]^W[41])>>29)&1)-1) | ~(DV_I_44_0_bit|DV_I_47_0_bit|DV_I_48_0_bit|DV_II_46_0_bit|DV_II_47_0_bit|DV_II_56_0_bit));
                    ^              ~~
/datasets/git/sha1dc/ubc_check.c:121:17: warning: 40 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[40]^W[41])>>29)&1)-1) | ~(DV_I_44_0_bit|DV_I_47_0_bit|DV_I_48_0_bit|DV_II_46_0_bit|DV_II_47_0_bit|DV_II_56_0_bit));
                       ^
/datasets/git/sha1dc/ubc_check.c:121:23: warning: 41 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[40]^W[41])>>29)&1)-1) | ~(DV_I_44_0_bit|DV_I_47_0_bit|DV_I_48_0_bit|DV_II_46_0_bit|DV_II_47_0_bit|DV_II_56_0_bit));
                             ^
/datasets/git/sha1dc/ubc_check.c:121:29: warning: 29 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[40]^W[41])>>29)&1)-1) | ~(DV_I_44_0_bit|DV_I_47_0_bit|DV_I_48_0_bit|DV_II_46_0_bit|DV_II_47_0_bit|DV_II_56_0_bit));
                                   ^
/datasets/git/sha1dc/ubc_check.c:122:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[54]^W[55])>>29)&1)-1) | ~(DV_I_51_0_bit|DV_II_47_0_bit|DV_II_50_0_bit|DV_II_55_0_bit|DV_II_56_0_bit));
                   ^                   ~
/datasets/git/sha1dc/ubc_check.c:122:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[54]^W[55])>>29)&1)-1) | ~(DV_I_51_0_bit|DV_II_47_0_bit|DV_II_50_0_bit|DV_II_55_0_bit|DV_II_56_0_bit));
                    ^              ~~
/datasets/git/sha1dc/ubc_check.c:122:17: warning: 54 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[54]^W[55])>>29)&1)-1) | ~(DV_I_51_0_bit|DV_II_47_0_bit|DV_II_50_0_bit|DV_II_55_0_bit|DV_II_56_0_bit));
                       ^
/datasets/git/sha1dc/ubc_check.c:122:23: warning: 55 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[54]^W[55])>>29)&1)-1) | ~(DV_I_51_0_bit|DV_II_47_0_bit|DV_II_50_0_bit|DV_II_55_0_bit|DV_II_56_0_bit));
                             ^
/datasets/git/sha1dc/ubc_check.c:122:29: warning: 29 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[54]^W[55])>>29)&1)-1) | ~(DV_I_51_0_bit|DV_II_47_0_bit|DV_II_50_0_bit|DV_II_55_0_bit|DV_II_56_0_bit));
                                   ^
/datasets/git/sha1dc/ubc_check.c:123:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[53]^W[54])>>29)&1)-1) | ~(DV_I_50_0_bit|DV_II_46_0_bit|DV_II_49_0_bit|DV_II_54_0_bit|DV_II_55_0_bit));
                   ^                   ~
/datasets/git/sha1dc/ubc_check.c:123:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[53]^W[54])>>29)&1)-1) | ~(DV_I_50_0_bit|DV_II_46_0_bit|DV_II_49_0_bit|DV_II_54_0_bit|DV_II_55_0_bit));
                    ^              ~~
/datasets/git/sha1dc/ubc_check.c:123:17: warning: 53 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[53]^W[54])>>29)&1)-1) | ~(DV_I_50_0_bit|DV_II_46_0_bit|DV_II_49_0_bit|DV_II_54_0_bit|DV_II_55_0_bit));
                       ^
/datasets/git/sha1dc/ubc_check.c:123:23: warning: 54 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[53]^W[54])>>29)&1)-1) | ~(DV_I_50_0_bit|DV_II_46_0_bit|DV_II_49_0_bit|DV_II_54_0_bit|DV_II_55_0_bit));
                             ^
/datasets/git/sha1dc/ubc_check.c:123:29: warning: 29 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[53]^W[54])>>29)&1)-1) | ~(DV_I_50_0_bit|DV_II_46_0_bit|DV_II_49_0_bit|DV_II_54_0_bit|DV_II_55_0_bit));
                                   ^
/datasets/git/sha1dc/ubc_check.c:124:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[52]^W[53])>>29)&1)-1) | ~(DV_I_49_0_bit|DV_II_45_0_bit|DV_II_48_0_bit|DV_II_53_0_bit|DV_II_54_0_bit));
                   ^                   ~
/datasets/git/sha1dc/ubc_check.c:124:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[52]^W[53])>>29)&1)-1) | ~(DV_I_49_0_bit|DV_II_45_0_bit|DV_II_48_0_bit|DV_II_53_0_bit|DV_II_54_0_bit));
                    ^              ~~
/datasets/git/sha1dc/ubc_check.c:124:17: warning: 52 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[52]^W[53])>>29)&1)-1) | ~(DV_I_49_0_bit|DV_II_45_0_bit|DV_II_48_0_bit|DV_II_53_0_bit|DV_II_54_0_bit));
                       ^
/datasets/git/sha1dc/ubc_check.c:124:23: warning: 53 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[52]^W[53])>>29)&1)-1) | ~(DV_I_49_0_bit|DV_II_45_0_bit|DV_II_48_0_bit|DV_II_53_0_bit|DV_II_54_0_bit));
                             ^
/datasets/git/sha1dc/ubc_check.c:124:29: warning: 29 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[52]^W[53])>>29)&1)-1) | ~(DV_I_49_0_bit|DV_II_45_0_bit|DV_II_48_0_bit|DV_II_53_0_bit|DV_II_54_0_bit));
                                   ^
/datasets/git/sha1dc/ubc_check.c:125:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[50]^(W[53]>>25))&(1<<4))-(1<<4)) | ~(DV_I_50_0_bit|DV_I_52_0_bit|DV_II_46_0_bit|DV_II_48_0_bit|DV_II_54_0_bit));
                   ^                   ~~~~~~
/datasets/git/sha1dc/ubc_check.c:125:16: warning: 50 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((((W[50]^(W[53]>>25))&(1<<4))-(1<<4)) | ~(DV_I_50_0_bit|DV_I_52_0_bit|DV_II_46_0_bit|DV_II_48_0_bit|DV_II_54_0_bit));
                      ^
/datasets/git/sha1dc/ubc_check.c:125:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[50]^(W[53]>>25))&(1<<4))-(1<<4)) | ~(DV_I_50_0_bit|DV_I_52_0_bit|DV_II_46_0_bit|DV_II_48_0_bit|DV_II_54_0_bit));
                           ^      ~~
/datasets/git/sha1dc/ubc_check.c:125:23: warning: 53 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((((W[50]^(W[53]>>25))&(1<<4))-(1<<4)) | ~(DV_I_50_0_bit|DV_I_52_0_bit|DV_II_46_0_bit|DV_II_48_0_bit|DV_II_54_0_bit));
                             ^
/datasets/git/sha1dc/ubc_check.c:125:28: warning: 25 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((((W[50]^(W[53]>>25))&(1<<4))-(1<<4)) | ~(DV_I_50_0_bit|DV_I_52_0_bit|DV_II_46_0_bit|DV_II_48_0_bit|DV_II_54_0_bit));
                                  ^
/datasets/git/sha1dc/ubc_check.c:125:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[50]^(W[53]>>25))&(1<<4))-(1<<4)) | ~(DV_I_50_0_bit|DV_I_52_0_bit|DV_II_46_0_bit|DV_II_48_0_bit|DV_II_54_0_bit));
                                        ^
/datasets/git/sha1dc/ubc_check.c:125:42: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[50]^(W[53]>>25))&(1<<4))-(1<<4)) | ~(DV_I_50_0_bit|DV_I_52_0_bit|DV_II_46_0_bit|DV_II_48_0_bit|DV_II_54_0_bit));
                                                ^
/datasets/git/sha1dc/ubc_check.c:126:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[50]^W[51])>>29)&1)-1) | ~(DV_I_47_0_bit|DV_II_46_0_bit|DV_II_51_0_bit|DV_II_52_0_bit|DV_II_56_0_bit));
                   ^                   ~
/datasets/git/sha1dc/ubc_check.c:126:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[50]^W[51])>>29)&1)-1) | ~(DV_I_47_0_bit|DV_II_46_0_bit|DV_II_51_0_bit|DV_II_52_0_bit|DV_II_56_0_bit));
                    ^              ~~
/datasets/git/sha1dc/ubc_check.c:126:17: warning: 50 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[50]^W[51])>>29)&1)-1) | ~(DV_I_47_0_bit|DV_II_46_0_bit|DV_II_51_0_bit|DV_II_52_0_bit|DV_II_56_0_bit));
                       ^
/datasets/git/sha1dc/ubc_check.c:126:23: warning: 51 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[50]^W[51])>>29)&1)-1) | ~(DV_I_47_0_bit|DV_II_46_0_bit|DV_II_51_0_bit|DV_II_52_0_bit|DV_II_56_0_bit));
                             ^
/datasets/git/sha1dc/ubc_check.c:126:29: warning: 29 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[50]^W[51])>>29)&1)-1) | ~(DV_I_47_0_bit|DV_II_46_0_bit|DV_II_51_0_bit|DV_II_52_0_bit|DV_II_56_0_bit));
                                   ^
/datasets/git/sha1dc/ubc_check.c:127:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[49]^(W[52]>>25))&(1<<4))-(1<<4)) | ~(DV_I_49_0_bit|DV_I_51_0_bit|DV_II_45_0_bit|DV_II_47_0_bit|DV_II_53_0_bit));
                   ^                   ~~~~~~
/datasets/git/sha1dc/ubc_check.c:127:16: warning: 49 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((((W[49]^(W[52]>>25))&(1<<4))-(1<<4)) | ~(DV_I_49_0_bit|DV_I_51_0_bit|DV_II_45_0_bit|DV_II_47_0_bit|DV_II_53_0_bit));
                      ^
/datasets/git/sha1dc/ubc_check.c:127:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[49]^(W[52]>>25))&(1<<4))-(1<<4)) | ~(DV_I_49_0_bit|DV_I_51_0_bit|DV_II_45_0_bit|DV_II_47_0_bit|DV_II_53_0_bit));
                           ^      ~~
/datasets/git/sha1dc/ubc_check.c:127:23: warning: 52 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((((W[49]^(W[52]>>25))&(1<<4))-(1<<4)) | ~(DV_I_49_0_bit|DV_I_51_0_bit|DV_II_45_0_bit|DV_II_47_0_bit|DV_II_53_0_bit));
                             ^
/datasets/git/sha1dc/ubc_check.c:127:28: warning: 25 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((((W[49]^(W[52]>>25))&(1<<4))-(1<<4)) | ~(DV_I_49_0_bit|DV_I_51_0_bit|DV_II_45_0_bit|DV_II_47_0_bit|DV_II_53_0_bit));
                                  ^
/datasets/git/sha1dc/ubc_check.c:127:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[49]^(W[52]>>25))&(1<<4))-(1<<4)) | ~(DV_I_49_0_bit|DV_I_51_0_bit|DV_II_45_0_bit|DV_II_47_0_bit|DV_II_53_0_bit));
                                        ^
/datasets/git/sha1dc/ubc_check.c:127:42: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[49]^(W[52]>>25))&(1<<4))-(1<<4)) | ~(DV_I_49_0_bit|DV_I_51_0_bit|DV_II_45_0_bit|DV_II_47_0_bit|DV_II_53_0_bit));
                                                ^
/datasets/git/sha1dc/ubc_check.c:128:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[48]^(W[51]>>25))&(1<<4))-(1<<4)) | ~(DV_I_48_0_bit|DV_I_50_0_bit|DV_I_52_0_bit|DV_II_46_0_bit|DV_II_52_0_bit));
                   ^                   ~~~~~~
/datasets/git/sha1dc/ubc_check.c:128:16: warning: 48 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((((W[48]^(W[51]>>25))&(1<<4))-(1<<4)) | ~(DV_I_48_0_bit|DV_I_50_0_bit|DV_I_52_0_bit|DV_II_46_0_bit|DV_II_52_0_bit));
                      ^
/datasets/git/sha1dc/ubc_check.c:128:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[48]^(W[51]>>25))&(1<<4))-(1<<4)) | ~(DV_I_48_0_bit|DV_I_50_0_bit|DV_I_52_0_bit|DV_II_46_0_bit|DV_II_52_0_bit));
                           ^      ~~
/datasets/git/sha1dc/ubc_check.c:128:23: warning: 51 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((((W[48]^(W[51]>>25))&(1<<4))-(1<<4)) | ~(DV_I_48_0_bit|DV_I_50_0_bit|DV_I_52_0_bit|DV_II_46_0_bit|DV_II_52_0_bit));
                             ^
/datasets/git/sha1dc/ubc_check.c:128:28: warning: 25 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((((W[48]^(W[51]>>25))&(1<<4))-(1<<4)) | ~(DV_I_48_0_bit|DV_I_50_0_bit|DV_I_52_0_bit|DV_II_46_0_bit|DV_II_52_0_bit));
                                  ^
/datasets/git/sha1dc/ubc_check.c:128:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[48]^(W[51]>>25))&(1<<4))-(1<<4)) | ~(DV_I_48_0_bit|DV_I_50_0_bit|DV_I_52_0_bit|DV_II_46_0_bit|DV_II_52_0_bit));
                                        ^
/datasets/git/sha1dc/ubc_check.c:128:42: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[48]^(W[51]>>25))&(1<<4))-(1<<4)) | ~(DV_I_48_0_bit|DV_I_50_0_bit|DV_I_52_0_bit|DV_II_46_0_bit|DV_II_52_0_bit));
                                                ^
/datasets/git/sha1dc/ubc_check.c:129:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[42]^W[43])>>29)&1)-1) | ~(DV_I_46_0_bit|DV_I_49_0_bit|DV_I_50_0_bit|DV_II_48_0_bit|DV_II_49_0_bit));
                   ^                   ~
/datasets/git/sha1dc/ubc_check.c:129:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[42]^W[43])>>29)&1)-1) | ~(DV_I_46_0_bit|DV_I_49_0_bit|DV_I_50_0_bit|DV_II_48_0_bit|DV_II_49_0_bit));
                    ^              ~~
/datasets/git/sha1dc/ubc_check.c:129:17: warning: 42 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[42]^W[43])>>29)&1)-1) | ~(DV_I_46_0_bit|DV_I_49_0_bit|DV_I_50_0_bit|DV_II_48_0_bit|DV_II_49_0_bit));
                       ^
/datasets/git/sha1dc/ubc_check.c:129:23: warning: 43 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[42]^W[43])>>29)&1)-1) | ~(DV_I_46_0_bit|DV_I_49_0_bit|DV_I_50_0_bit|DV_II_48_0_bit|DV_II_49_0_bit));
                             ^
/datasets/git/sha1dc/ubc_check.c:129:29: warning: 29 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[42]^W[43])>>29)&1)-1) | ~(DV_I_46_0_bit|DV_I_49_0_bit|DV_I_50_0_bit|DV_II_48_0_bit|DV_II_49_0_bit));
                                   ^
/datasets/git/sha1dc/ubc_check.c:130:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[41]^W[42])>>29)&1)-1) | ~(DV_I_45_0_bit|DV_I_48_0_bit|DV_I_49_0_bit|DV_II_47_0_bit|DV_II_48_0_bit));
                   ^                   ~
/datasets/git/sha1dc/ubc_check.c:130:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[41]^W[42])>>29)&1)-1) | ~(DV_I_45_0_bit|DV_I_48_0_bit|DV_I_49_0_bit|DV_II_47_0_bit|DV_II_48_0_bit));
                    ^              ~~
/datasets/git/sha1dc/ubc_check.c:130:17: warning: 41 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[41]^W[42])>>29)&1)-1) | ~(DV_I_45_0_bit|DV_I_48_0_bit|DV_I_49_0_bit|DV_II_47_0_bit|DV_II_48_0_bit));
                       ^
/datasets/git/sha1dc/ubc_check.c:130:23: warning: 42 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[41]^W[42])>>29)&1)-1) | ~(DV_I_45_0_bit|DV_I_48_0_bit|DV_I_49_0_bit|DV_II_47_0_bit|DV_II_48_0_bit));
                             ^
/datasets/git/sha1dc/ubc_check.c:130:29: warning: 29 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[41]^W[42])>>29)&1)-1) | ~(DV_I_45_0_bit|DV_I_48_0_bit|DV_I_49_0_bit|DV_II_47_0_bit|DV_II_48_0_bit));
                                   ^
/datasets/git/sha1dc/ubc_check.c:131:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[40]>>4)^(W[43]>>29))&1)-1) | ~(DV_I_44_0_bit|DV_I_46_0_bit|DV_I_50_0_bit|DV_II_49_0_bit|DV_II_56_0_bit));
                   ^                        ~
/datasets/git/sha1dc/ubc_check.c:131:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[40]>>4)^(W[43]>>29))&1)-1) | ~(DV_I_44_0_bit|DV_I_46_0_bit|DV_I_50_0_bit|DV_II_49_0_bit|DV_II_56_0_bit));
                     ^      ~
/datasets/git/sha1dc/ubc_check.c:131:17: warning: 40 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[40]>>4)^(W[43]>>29))&1)-1) | ~(DV_I_44_0_bit|DV_I_46_0_bit|DV_I_50_0_bit|DV_II_49_0_bit|DV_II_56_0_bit));
                       ^
/datasets/git/sha1dc/ubc_check.c:131:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[40]>>4)^(W[43]>>29))&1)-1) | ~(DV_I_44_0_bit|DV_I_46_0_bit|DV_I_50_0_bit|DV_II_49_0_bit|DV_II_56_0_bit));
                                ^      ~~
/datasets/git/sha1dc/ubc_check.c:131:28: warning: 43 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[40]>>4)^(W[43]>>29))&1)-1) | ~(DV_I_44_0_bit|DV_I_46_0_bit|DV_I_50_0_bit|DV_II_49_0_bit|DV_II_56_0_bit));
                                  ^
/datasets/git/sha1dc/ubc_check.c:131:33: warning: 29 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[40]>>4)^(W[43]>>29))&1)-1) | ~(DV_I_44_0_bit|DV_I_46_0_bit|DV_I_50_0_bit|DV_II_49_0_bit|DV_II_56_0_bit));
                                       ^
/datasets/git/sha1dc/ubc_check.c:132:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[39]>>4)^(W[42]>>29))&1)-1) | ~(DV_I_43_0_bit|DV_I_45_0_bit|DV_I_49_0_bit|DV_II_48_0_bit|DV_II_55_0_bit));
                   ^                        ~
/datasets/git/sha1dc/ubc_check.c:132:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[39]>>4)^(W[42]>>29))&1)-1) | ~(DV_I_43_0_bit|DV_I_45_0_bit|DV_I_49_0_bit|DV_II_48_0_bit|DV_II_55_0_bit));
                     ^      ~
/datasets/git/sha1dc/ubc_check.c:132:17: warning: 39 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[39]>>4)^(W[42]>>29))&1)-1) | ~(DV_I_43_0_bit|DV_I_45_0_bit|DV_I_49_0_bit|DV_II_48_0_bit|DV_II_55_0_bit));
                       ^
/datasets/git/sha1dc/ubc_check.c:132:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[39]>>4)^(W[42]>>29))&1)-1) | ~(DV_I_43_0_bit|DV_I_45_0_bit|DV_I_49_0_bit|DV_II_48_0_bit|DV_II_55_0_bit));
                                ^      ~~
/datasets/git/sha1dc/ubc_check.c:132:28: warning: 42 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[39]>>4)^(W[42]>>29))&1)-1) | ~(DV_I_43_0_bit|DV_I_45_0_bit|DV_I_49_0_bit|DV_II_48_0_bit|DV_II_55_0_bit));
                                  ^
/datasets/git/sha1dc/ubc_check.c:132:33: warning: 29 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[39]>>4)^(W[42]>>29))&1)-1) | ~(DV_I_43_0_bit|DV_I_45_0_bit|DV_I_49_0_bit|DV_II_48_0_bit|DV_II_55_0_bit));
                                       ^
/datasets/git/sha1dc/ubc_check.c:133:88: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & (DV_I_44_0_bit|DV_I_48_0_bit|DV_II_47_0_bit|DV_II_54_0_bit|DV_II_56_0_bit))
                                                                                              ^
                                                                                               {
/datasets/git/sha1dc/ubc_check.c:134:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= (((((W[38]>>4)^(W[41]>>29))&1)-1) | ~(DV_I_44_0_bit|DV_I_48_0_bit|DV_II_47_0_bit|DV_II_54_0_bit|DV_II_56_0_bit));
                           ^                        ~
/datasets/git/sha1dc/ubc_check.c:134:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= (((((W[38]>>4)^(W[41]>>29))&1)-1) | ~(DV_I_44_0_bit|DV_I_48_0_bit|DV_II_47_0_bit|DV_II_54_0_bit|DV_II_56_0_bit));
                             ^      ~
/datasets/git/sha1dc/ubc_check.c:134:18: warning: 38 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= (((((W[38]>>4)^(W[41]>>29))&1)-1) | ~(DV_I_44_0_bit|DV_I_48_0_bit|DV_II_47_0_bit|DV_II_54_0_bit|DV_II_56_0_bit));
                               ^
/datasets/git/sha1dc/ubc_check.c:134:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= (((((W[38]>>4)^(W[41]>>29))&1)-1) | ~(DV_I_44_0_bit|DV_I_48_0_bit|DV_II_47_0_bit|DV_II_54_0_bit|DV_II_56_0_bit));
                                        ^      ~~
/datasets/git/sha1dc/ubc_check.c:134:29: warning: 41 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= (((((W[38]>>4)^(W[41]>>29))&1)-1) | ~(DV_I_44_0_bit|DV_I_48_0_bit|DV_II_47_0_bit|DV_II_54_0_bit|DV_II_56_0_bit));
                                          ^
/datasets/git/sha1dc/ubc_check.c:134:34: warning: 29 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= (((((W[38]>>4)^(W[41]>>29))&1)-1) | ~(DV_I_44_0_bit|DV_I_48_0_bit|DV_II_47_0_bit|DV_II_54_0_bit|DV_II_56_0_bit));
                                               ^
/datasets/git/sha1dc/ubc_check.c:135:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[37]>>4)^(W[40]>>29))&1)-1) | ~(DV_I_43_0_bit|DV_I_47_0_bit|DV_II_46_0_bit|DV_II_53_0_bit|DV_II_55_0_bit));
                   ^                        ~
/datasets/git/sha1dc/ubc_check.c:135:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[37]>>4)^(W[40]>>29))&1)-1) | ~(DV_I_43_0_bit|DV_I_47_0_bit|DV_II_46_0_bit|DV_II_53_0_bit|DV_II_55_0_bit));
                     ^      ~
/datasets/git/sha1dc/ubc_check.c:135:17: warning: 37 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[37]>>4)^(W[40]>>29))&1)-1) | ~(DV_I_43_0_bit|DV_I_47_0_bit|DV_II_46_0_bit|DV_II_53_0_bit|DV_II_55_0_bit));
                       ^
/datasets/git/sha1dc/ubc_check.c:135:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[37]>>4)^(W[40]>>29))&1)-1) | ~(DV_I_43_0_bit|DV_I_47_0_bit|DV_II_46_0_bit|DV_II_53_0_bit|DV_II_55_0_bit));
                                ^      ~~
/datasets/git/sha1dc/ubc_check.c:135:28: warning: 40 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[37]>>4)^(W[40]>>29))&1)-1) | ~(DV_I_43_0_bit|DV_I_47_0_bit|DV_II_46_0_bit|DV_II_53_0_bit|DV_II_55_0_bit));
                                  ^
/datasets/git/sha1dc/ubc_check.c:135:33: warning: 29 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[37]>>4)^(W[40]>>29))&1)-1) | ~(DV_I_43_0_bit|DV_I_47_0_bit|DV_II_46_0_bit|DV_II_53_0_bit|DV_II_55_0_bit));
                                       ^
/datasets/git/sha1dc/ubc_check.c:136:74: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & (DV_I_52_0_bit|DV_II_48_0_bit|DV_II_51_0_bit|DV_II_56_0_bit))
                                                                                ^
                                                                                 {
/datasets/git/sha1dc/ubc_check.c:137:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= (((((W[55]^W[56])>>29)&1)-1) | ~(DV_I_52_0_bit|DV_II_48_0_bit|DV_II_51_0_bit|DV_II_56_0_bit));
                           ^                   ~
/datasets/git/sha1dc/ubc_check.c:137:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= (((((W[55]^W[56])>>29)&1)-1) | ~(DV_I_52_0_bit|DV_II_48_0_bit|DV_II_51_0_bit|DV_II_56_0_bit));
                            ^              ~~
/datasets/git/sha1dc/ubc_check.c:137:18: warning: 55 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= (((((W[55]^W[56])>>29)&1)-1) | ~(DV_I_52_0_bit|DV_II_48_0_bit|DV_II_51_0_bit|DV_II_56_0_bit));
                               ^
/datasets/git/sha1dc/ubc_check.c:137:24: warning: 56 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= (((((W[55]^W[56])>>29)&1)-1) | ~(DV_I_52_0_bit|DV_II_48_0_bit|DV_II_51_0_bit|DV_II_56_0_bit));
                                     ^
/datasets/git/sha1dc/ubc_check.c:137:30: warning: 29 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= (((((W[55]^W[56])>>29)&1)-1) | ~(DV_I_52_0_bit|DV_II_48_0_bit|DV_II_51_0_bit|DV_II_56_0_bit));
                                           ^
/datasets/git/sha1dc/ubc_check.c:138:74: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & (DV_I_52_0_bit|DV_II_48_0_bit|DV_II_50_0_bit|DV_II_56_0_bit))
                                                                                ^
                                                                                 {
/datasets/git/sha1dc/ubc_check.c:139:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((((W[52]^(W[55]>>25))&(1<<4))-(1<<4)) | ~(DV_I_52_0_bit|DV_II_48_0_bit|DV_II_50_0_bit|DV_II_56_0_bit));
                           ^                   ~~~~~~
/datasets/git/sha1dc/ubc_check.c:139:17: warning: 52 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((((W[52]^(W[55]>>25))&(1<<4))-(1<<4)) | ~(DV_I_52_0_bit|DV_II_48_0_bit|DV_II_50_0_bit|DV_II_56_0_bit));
                              ^
/datasets/git/sha1dc/ubc_check.c:139:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((((W[52]^(W[55]>>25))&(1<<4))-(1<<4)) | ~(DV_I_52_0_bit|DV_II_48_0_bit|DV_II_50_0_bit|DV_II_56_0_bit));
                                   ^      ~~
/datasets/git/sha1dc/ubc_check.c:139:24: warning: 55 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((((W[52]^(W[55]>>25))&(1<<4))-(1<<4)) | ~(DV_I_52_0_bit|DV_II_48_0_bit|DV_II_50_0_bit|DV_II_56_0_bit));
                                     ^
/datasets/git/sha1dc/ubc_check.c:139:29: warning: 25 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((((W[52]^(W[55]>>25))&(1<<4))-(1<<4)) | ~(DV_I_52_0_bit|DV_II_48_0_bit|DV_II_50_0_bit|DV_II_56_0_bit));
                                          ^
/datasets/git/sha1dc/ubc_check.c:139:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((((W[52]^(W[55]>>25))&(1<<4))-(1<<4)) | ~(DV_I_52_0_bit|DV_II_48_0_bit|DV_II_50_0_bit|DV_II_56_0_bit));
                                                ^
/datasets/git/sha1dc/ubc_check.c:139:43: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((((W[52]^(W[55]>>25))&(1<<4))-(1<<4)) | ~(DV_I_52_0_bit|DV_II_48_0_bit|DV_II_50_0_bit|DV_II_56_0_bit));
                                                        ^
/datasets/git/sha1dc/ubc_check.c:140:74: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & (DV_I_51_0_bit|DV_II_47_0_bit|DV_II_49_0_bit|DV_II_55_0_bit))
                                                                                ^
                                                                                 {
/datasets/git/sha1dc/ubc_check.c:141:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((((W[51]^(W[54]>>25))&(1<<4))-(1<<4)) | ~(DV_I_51_0_bit|DV_II_47_0_bit|DV_II_49_0_bit|DV_II_55_0_bit));
                           ^                   ~~~~~~
/datasets/git/sha1dc/ubc_check.c:141:17: warning: 51 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((((W[51]^(W[54]>>25))&(1<<4))-(1<<4)) | ~(DV_I_51_0_bit|DV_II_47_0_bit|DV_II_49_0_bit|DV_II_55_0_bit));
                              ^
/datasets/git/sha1dc/ubc_check.c:141:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((((W[51]^(W[54]>>25))&(1<<4))-(1<<4)) | ~(DV_I_51_0_bit|DV_II_47_0_bit|DV_II_49_0_bit|DV_II_55_0_bit));
                                   ^      ~~
/datasets/git/sha1dc/ubc_check.c:141:24: warning: 54 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((((W[51]^(W[54]>>25))&(1<<4))-(1<<4)) | ~(DV_I_51_0_bit|DV_II_47_0_bit|DV_II_49_0_bit|DV_II_55_0_bit));
                                     ^
/datasets/git/sha1dc/ubc_check.c:141:29: warning: 25 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((((W[51]^(W[54]>>25))&(1<<4))-(1<<4)) | ~(DV_I_51_0_bit|DV_II_47_0_bit|DV_II_49_0_bit|DV_II_55_0_bit));
                                          ^
/datasets/git/sha1dc/ubc_check.c:141:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((((W[51]^(W[54]>>25))&(1<<4))-(1<<4)) | ~(DV_I_51_0_bit|DV_II_47_0_bit|DV_II_49_0_bit|DV_II_55_0_bit));
                                                ^
/datasets/git/sha1dc/ubc_check.c:141:43: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((((W[51]^(W[54]>>25))&(1<<4))-(1<<4)) | ~(DV_I_51_0_bit|DV_II_47_0_bit|DV_II_49_0_bit|DV_II_55_0_bit));
                                                        ^
/datasets/git/sha1dc/ubc_check.c:142:74: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & (DV_I_48_0_bit|DV_II_47_0_bit|DV_II_52_0_bit|DV_II_53_0_bit))
                                                                                ^
                                                                                 {
/datasets/git/sha1dc/ubc_check.c:143:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= (((((W[51]^W[52])>>29)&1)-1) | ~(DV_I_48_0_bit|DV_II_47_0_bit|DV_II_52_0_bit|DV_II_53_0_bit));
                           ^                   ~
/datasets/git/sha1dc/ubc_check.c:143:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= (((((W[51]^W[52])>>29)&1)-1) | ~(DV_I_48_0_bit|DV_II_47_0_bit|DV_II_52_0_bit|DV_II_53_0_bit));
                            ^              ~~
/datasets/git/sha1dc/ubc_check.c:143:18: warning: 51 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= (((((W[51]^W[52])>>29)&1)-1) | ~(DV_I_48_0_bit|DV_II_47_0_bit|DV_II_52_0_bit|DV_II_53_0_bit));
                               ^
/datasets/git/sha1dc/ubc_check.c:143:24: warning: 52 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= (((((W[51]^W[52])>>29)&1)-1) | ~(DV_I_48_0_bit|DV_II_47_0_bit|DV_II_52_0_bit|DV_II_53_0_bit));
                                     ^
/datasets/git/sha1dc/ubc_check.c:143:30: warning: 29 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= (((((W[51]^W[52])>>29)&1)-1) | ~(DV_I_48_0_bit|DV_II_47_0_bit|DV_II_52_0_bit|DV_II_53_0_bit));
                                           ^
/datasets/git/sha1dc/ubc_check.c:144:73: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & (DV_I_46_0_bit|DV_I_49_0_bit|DV_II_45_0_bit|DV_II_48_0_bit))
                                                                               ^
                                                                                {
/datasets/git/sha1dc/ubc_check.c:145:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= (((((W[36]>>4)^(W[40]>>29))&1)-1) | ~(DV_I_46_0_bit|DV_I_49_0_bit|DV_II_45_0_bit|DV_II_48_0_bit));
                           ^                        ~
/datasets/git/sha1dc/ubc_check.c:145:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= (((((W[36]>>4)^(W[40]>>29))&1)-1) | ~(DV_I_46_0_bit|DV_I_49_0_bit|DV_II_45_0_bit|DV_II_48_0_bit));
                             ^      ~
/datasets/git/sha1dc/ubc_check.c:145:18: warning: 36 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= (((((W[36]>>4)^(W[40]>>29))&1)-1) | ~(DV_I_46_0_bit|DV_I_49_0_bit|DV_II_45_0_bit|DV_II_48_0_bit));
                               ^
/datasets/git/sha1dc/ubc_check.c:145:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= (((((W[36]>>4)^(W[40]>>29))&1)-1) | ~(DV_I_46_0_bit|DV_I_49_0_bit|DV_II_45_0_bit|DV_II_48_0_bit));
                                        ^      ~~
/datasets/git/sha1dc/ubc_check.c:145:29: warning: 40 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= (((((W[36]>>4)^(W[40]>>29))&1)-1) | ~(DV_I_46_0_bit|DV_I_49_0_bit|DV_II_45_0_bit|DV_II_48_0_bit));
                                          ^
/datasets/git/sha1dc/ubc_check.c:145:34: warning: 29 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= (((((W[36]>>4)^(W[40]>>29))&1)-1) | ~(DV_I_46_0_bit|DV_I_49_0_bit|DV_II_45_0_bit|DV_II_48_0_bit));
                                               ^
/datasets/git/sha1dc/ubc_check.c:146:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & (DV_I_52_0_bit|DV_II_48_0_bit|DV_II_49_0_bit))
                                                                 ^
                                                                  {
/datasets/git/sha1dc/ubc_check.c:147:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((0-(((W[53]^W[56])>>29)&1)) | ~(DV_I_52_0_bit|DV_II_48_0_bit|DV_II_49_0_bit));
                             ^                   ~
/datasets/git/sha1dc/ubc_check.c:147:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((0-(((W[53]^W[56])>>29)&1)) | ~(DV_I_52_0_bit|DV_II_48_0_bit|DV_II_49_0_bit));
                              ^              ~~
/datasets/git/sha1dc/ubc_check.c:147:20: warning: 53 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-(((W[53]^W[56])>>29)&1)) | ~(DV_I_52_0_bit|DV_II_48_0_bit|DV_II_49_0_bit));
                                 ^
/datasets/git/sha1dc/ubc_check.c:147:26: warning: 56 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-(((W[53]^W[56])>>29)&1)) | ~(DV_I_52_0_bit|DV_II_48_0_bit|DV_II_49_0_bit));
                                       ^
/datasets/git/sha1dc/ubc_check.c:147:32: warning: 29 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-(((W[53]^W[56])>>29)&1)) | ~(DV_I_52_0_bit|DV_II_48_0_bit|DV_II_49_0_bit));
                                             ^
/datasets/git/sha1dc/ubc_check.c:148:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & (DV_I_50_0_bit|DV_II_46_0_bit|DV_II_47_0_bit))
                                                                 ^
                                                                  {
/datasets/git/sha1dc/ubc_check.c:149:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((0-(((W[51]^W[54])>>29)&1)) | ~(DV_I_50_0_bit|DV_II_46_0_bit|DV_II_47_0_bit));
                             ^                   ~
/datasets/git/sha1dc/ubc_check.c:149:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((0-(((W[51]^W[54])>>29)&1)) | ~(DV_I_50_0_bit|DV_II_46_0_bit|DV_II_47_0_bit));
                              ^              ~~
/datasets/git/sha1dc/ubc_check.c:149:20: warning: 51 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-(((W[51]^W[54])>>29)&1)) | ~(DV_I_50_0_bit|DV_II_46_0_bit|DV_II_47_0_bit));
                                 ^
/datasets/git/sha1dc/ubc_check.c:149:26: warning: 54 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-(((W[51]^W[54])>>29)&1)) | ~(DV_I_50_0_bit|DV_II_46_0_bit|DV_II_47_0_bit));
                                       ^
/datasets/git/sha1dc/ubc_check.c:149:32: warning: 29 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-(((W[51]^W[54])>>29)&1)) | ~(DV_I_50_0_bit|DV_II_46_0_bit|DV_II_47_0_bit));
                                             ^
/datasets/git/sha1dc/ubc_check.c:150:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & (DV_I_49_0_bit|DV_I_51_0_bit|DV_II_45_0_bit))
                                                                ^
                                                                 {
/datasets/git/sha1dc/ubc_check.c:151:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((0-(((W[50]^W[52])>>29)&1)) | ~(DV_I_49_0_bit|DV_I_51_0_bit|DV_II_45_0_bit));
                             ^                   ~
/datasets/git/sha1dc/ubc_check.c:151:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((0-(((W[50]^W[52])>>29)&1)) | ~(DV_I_49_0_bit|DV_I_51_0_bit|DV_II_45_0_bit));
                              ^              ~~
/datasets/git/sha1dc/ubc_check.c:151:20: warning: 50 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-(((W[50]^W[52])>>29)&1)) | ~(DV_I_49_0_bit|DV_I_51_0_bit|DV_II_45_0_bit));
                                 ^
/datasets/git/sha1dc/ubc_check.c:151:26: warning: 52 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-(((W[50]^W[52])>>29)&1)) | ~(DV_I_49_0_bit|DV_I_51_0_bit|DV_II_45_0_bit));
                                       ^
/datasets/git/sha1dc/ubc_check.c:151:32: warning: 29 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-(((W[50]^W[52])>>29)&1)) | ~(DV_I_49_0_bit|DV_I_51_0_bit|DV_II_45_0_bit));
                                             ^
/datasets/git/sha1dc/ubc_check.c:152:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & (DV_I_48_0_bit|DV_I_50_0_bit|DV_I_52_0_bit))
                                                               ^
                                                                {
/datasets/git/sha1dc/ubc_check.c:153:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((0-(((W[49]^W[51])>>29)&1)) | ~(DV_I_48_0_bit|DV_I_50_0_bit|DV_I_52_0_bit));
                             ^                   ~
/datasets/git/sha1dc/ubc_check.c:153:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((0-(((W[49]^W[51])>>29)&1)) | ~(DV_I_48_0_bit|DV_I_50_0_bit|DV_I_52_0_bit));
                              ^              ~~
/datasets/git/sha1dc/ubc_check.c:153:20: warning: 49 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-(((W[49]^W[51])>>29)&1)) | ~(DV_I_48_0_bit|DV_I_50_0_bit|DV_I_52_0_bit));
                                 ^
/datasets/git/sha1dc/ubc_check.c:153:26: warning: 51 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-(((W[49]^W[51])>>29)&1)) | ~(DV_I_48_0_bit|DV_I_50_0_bit|DV_I_52_0_bit));
                                       ^
/datasets/git/sha1dc/ubc_check.c:153:32: warning: 29 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-(((W[49]^W[51])>>29)&1)) | ~(DV_I_48_0_bit|DV_I_50_0_bit|DV_I_52_0_bit));
                                             ^
/datasets/git/sha1dc/ubc_check.c:154:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & (DV_I_47_0_bit|DV_I_49_0_bit|DV_I_51_0_bit))
                                                               ^
                                                                {
/datasets/git/sha1dc/ubc_check.c:155:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((0-(((W[48]^W[50])>>29)&1)) | ~(DV_I_47_0_bit|DV_I_49_0_bit|DV_I_51_0_bit));
                             ^                   ~
/datasets/git/sha1dc/ubc_check.c:155:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((0-(((W[48]^W[50])>>29)&1)) | ~(DV_I_47_0_bit|DV_I_49_0_bit|DV_I_51_0_bit));
                              ^              ~~
/datasets/git/sha1dc/ubc_check.c:155:20: warning: 48 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-(((W[48]^W[50])>>29)&1)) | ~(DV_I_47_0_bit|DV_I_49_0_bit|DV_I_51_0_bit));
                                 ^
/datasets/git/sha1dc/ubc_check.c:155:26: warning: 50 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-(((W[48]^W[50])>>29)&1)) | ~(DV_I_47_0_bit|DV_I_49_0_bit|DV_I_51_0_bit));
                                       ^
/datasets/git/sha1dc/ubc_check.c:155:32: warning: 29 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-(((W[48]^W[50])>>29)&1)) | ~(DV_I_47_0_bit|DV_I_49_0_bit|DV_I_51_0_bit));
                                             ^
/datasets/git/sha1dc/ubc_check.c:156:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & (DV_I_46_0_bit|DV_I_48_0_bit|DV_I_50_0_bit))
                                                               ^
                                                                {
/datasets/git/sha1dc/ubc_check.c:157:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((0-(((W[47]^W[49])>>29)&1)) | ~(DV_I_46_0_bit|DV_I_48_0_bit|DV_I_50_0_bit));
                             ^                   ~
/datasets/git/sha1dc/ubc_check.c:157:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((0-(((W[47]^W[49])>>29)&1)) | ~(DV_I_46_0_bit|DV_I_48_0_bit|DV_I_50_0_bit));
                              ^              ~~
/datasets/git/sha1dc/ubc_check.c:157:20: warning: 47 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-(((W[47]^W[49])>>29)&1)) | ~(DV_I_46_0_bit|DV_I_48_0_bit|DV_I_50_0_bit));
                                 ^
/datasets/git/sha1dc/ubc_check.c:157:26: warning: 49 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-(((W[47]^W[49])>>29)&1)) | ~(DV_I_46_0_bit|DV_I_48_0_bit|DV_I_50_0_bit));
                                       ^
/datasets/git/sha1dc/ubc_check.c:157:32: warning: 29 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-(((W[47]^W[49])>>29)&1)) | ~(DV_I_46_0_bit|DV_I_48_0_bit|DV_I_50_0_bit));
                                             ^
/datasets/git/sha1dc/ubc_check.c:158:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & (DV_I_45_0_bit|DV_I_47_0_bit|DV_I_49_0_bit))
                                                               ^
                                                                {
/datasets/git/sha1dc/ubc_check.c:159:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((0-(((W[46]^W[48])>>29)&1)) | ~(DV_I_45_0_bit|DV_I_47_0_bit|DV_I_49_0_bit));
                             ^                   ~
/datasets/git/sha1dc/ubc_check.c:159:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((0-(((W[46]^W[48])>>29)&1)) | ~(DV_I_45_0_bit|DV_I_47_0_bit|DV_I_49_0_bit));
                              ^              ~~
/datasets/git/sha1dc/ubc_check.c:159:20: warning: 46 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-(((W[46]^W[48])>>29)&1)) | ~(DV_I_45_0_bit|DV_I_47_0_bit|DV_I_49_0_bit));
                                 ^
/datasets/git/sha1dc/ubc_check.c:159:26: warning: 48 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-(((W[46]^W[48])>>29)&1)) | ~(DV_I_45_0_bit|DV_I_47_0_bit|DV_I_49_0_bit));
                                       ^
/datasets/git/sha1dc/ubc_check.c:159:32: warning: 29 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-(((W[46]^W[48])>>29)&1)) | ~(DV_I_45_0_bit|DV_I_47_0_bit|DV_I_49_0_bit));
                                             ^
/datasets/git/sha1dc/ubc_check.c:160:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[45]^W[47])&(1<<6))-(1<<6)) | ~(DV_I_47_2_bit|DV_I_49_2_bit|DV_I_51_2_bit));
                   ^             ~~~~~~
/datasets/git/sha1dc/ubc_check.c:160:16: warning: 45 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((((W[45]^W[47])&(1<<6))-(1<<6)) | ~(DV_I_47_2_bit|DV_I_49_2_bit|DV_I_51_2_bit));
                      ^
/datasets/git/sha1dc/ubc_check.c:160:22: warning: 47 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((((W[45]^W[47])&(1<<6))-(1<<6)) | ~(DV_I_47_2_bit|DV_I_49_2_bit|DV_I_51_2_bit));
                            ^
/datasets/git/sha1dc/ubc_check.c:160:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[45]^W[47])&(1<<6))-(1<<6)) | ~(DV_I_47_2_bit|DV_I_49_2_bit|DV_I_51_2_bit));
                                  ^
/datasets/git/sha1dc/ubc_check.c:160:31: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((((W[45]^W[47])&(1<<6))-(1<<6)) | ~(DV_I_47_2_bit|DV_I_49_2_bit|DV_I_51_2_bit));
                                     ^
/datasets/git/sha1dc/ubc_check.c:160:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[45]^W[47])&(1<<6))-(1<<6)) | ~(DV_I_47_2_bit|DV_I_49_2_bit|DV_I_51_2_bit));
                                          ^
/datasets/git/sha1dc/ubc_check.c:160:39: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((((W[45]^W[47])&(1<<6))-(1<<6)) | ~(DV_I_47_2_bit|DV_I_49_2_bit|DV_I_51_2_bit));
                                             ^
/datasets/git/sha1dc/ubc_check.c:161:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & (DV_I_44_0_bit|DV_I_46_0_bit|DV_I_48_0_bit))
                                                               ^
                                                                {
/datasets/git/sha1dc/ubc_check.c:162:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((0-(((W[45]^W[47])>>29)&1)) | ~(DV_I_44_0_bit|DV_I_46_0_bit|DV_I_48_0_bit));
                             ^                   ~
/datasets/git/sha1dc/ubc_check.c:162:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((0-(((W[45]^W[47])>>29)&1)) | ~(DV_I_44_0_bit|DV_I_46_0_bit|DV_I_48_0_bit));
                              ^              ~~
/datasets/git/sha1dc/ubc_check.c:162:20: warning: 45 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-(((W[45]^W[47])>>29)&1)) | ~(DV_I_44_0_bit|DV_I_46_0_bit|DV_I_48_0_bit));
                                 ^
/datasets/git/sha1dc/ubc_check.c:162:26: warning: 47 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-(((W[45]^W[47])>>29)&1)) | ~(DV_I_44_0_bit|DV_I_46_0_bit|DV_I_48_0_bit));
                                       ^
/datasets/git/sha1dc/ubc_check.c:162:32: warning: 29 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-(((W[45]^W[47])>>29)&1)) | ~(DV_I_44_0_bit|DV_I_46_0_bit|DV_I_48_0_bit));
                                             ^
/datasets/git/sha1dc/ubc_check.c:163:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[44]^W[46])>>6)&1)-1) | ~(DV_I_46_2_bit|DV_I_48_2_bit|DV_I_50_2_bit));
                   ^                  ~
/datasets/git/sha1dc/ubc_check.c:163:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[44]^W[46])>>6)&1)-1) | ~(DV_I_46_2_bit|DV_I_48_2_bit|DV_I_50_2_bit));
                    ^              ~
/datasets/git/sha1dc/ubc_check.c:163:17: warning: 44 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[44]^W[46])>>6)&1)-1) | ~(DV_I_46_2_bit|DV_I_48_2_bit|DV_I_50_2_bit));
                       ^
/datasets/git/sha1dc/ubc_check.c:163:23: warning: 46 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[44]^W[46])>>6)&1)-1) | ~(DV_I_46_2_bit|DV_I_48_2_bit|DV_I_50_2_bit));
                             ^
/datasets/git/sha1dc/ubc_check.c:163:29: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[44]^W[46])>>6)&1)-1) | ~(DV_I_46_2_bit|DV_I_48_2_bit|DV_I_50_2_bit));
                                   ^
/datasets/git/sha1dc/ubc_check.c:164:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & (DV_I_43_0_bit|DV_I_45_0_bit|DV_I_47_0_bit))
                                                               ^
                                                                {
/datasets/git/sha1dc/ubc_check.c:165:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((0-(((W[44]^W[46])>>29)&1)) | ~(DV_I_43_0_bit|DV_I_45_0_bit|DV_I_47_0_bit));
                             ^                   ~
/datasets/git/sha1dc/ubc_check.c:165:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((0-(((W[44]^W[46])>>29)&1)) | ~(DV_I_43_0_bit|DV_I_45_0_bit|DV_I_47_0_bit));
                              ^              ~~
/datasets/git/sha1dc/ubc_check.c:165:20: warning: 44 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-(((W[44]^W[46])>>29)&1)) | ~(DV_I_43_0_bit|DV_I_45_0_bit|DV_I_47_0_bit));
                                 ^
/datasets/git/sha1dc/ubc_check.c:165:26: warning: 46 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-(((W[44]^W[46])>>29)&1)) | ~(DV_I_43_0_bit|DV_I_45_0_bit|DV_I_47_0_bit));
                                       ^
/datasets/git/sha1dc/ubc_check.c:165:32: warning: 29 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-(((W[44]^W[46])>>29)&1)) | ~(DV_I_43_0_bit|DV_I_45_0_bit|DV_I_47_0_bit));
                                             ^
/datasets/git/sha1dc/ubc_check.c:166:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((0-((W[41]^(W[42]>>5))&(1<<1))) | ~(DV_I_48_2_bit|DV_II_46_2_bit|DV_II_51_2_bit));
                     ^                  ~~~~~~
/datasets/git/sha1dc/ubc_check.c:166:18: warning: 41 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((0-((W[41]^(W[42]>>5))&(1<<1))) | ~(DV_I_48_2_bit|DV_II_46_2_bit|DV_II_51_2_bit));
                        ^
/datasets/git/sha1dc/ubc_check.c:166:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((0-((W[41]^(W[42]>>5))&(1<<1))) | ~(DV_I_48_2_bit|DV_II_46_2_bit|DV_II_51_2_bit));
                             ^      ~
/datasets/git/sha1dc/ubc_check.c:166:25: warning: 42 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((0-((W[41]^(W[42]>>5))&(1<<1))) | ~(DV_I_48_2_bit|DV_II_46_2_bit|DV_II_51_2_bit));
                               ^
/datasets/git/sha1dc/ubc_check.c:166:30: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((0-((W[41]^(W[42]>>5))&(1<<1))) | ~(DV_I_48_2_bit|DV_II_46_2_bit|DV_II_51_2_bit));
                                    ^
/datasets/git/sha1dc/ubc_check.c:166:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((0-((W[41]^(W[42]>>5))&(1<<1))) | ~(DV_I_48_2_bit|DV_II_46_2_bit|DV_II_51_2_bit));
                                         ^
/datasets/git/sha1dc/ubc_check.c:167:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((0-((W[40]^(W[41]>>5))&(1<<1))) | ~(DV_I_47_2_bit|DV_I_51_2_bit|DV_II_50_2_bit));
                     ^                  ~~~~~~
/datasets/git/sha1dc/ubc_check.c:167:18: warning: 40 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((0-((W[40]^(W[41]>>5))&(1<<1))) | ~(DV_I_47_2_bit|DV_I_51_2_bit|DV_II_50_2_bit));
                        ^
/datasets/git/sha1dc/ubc_check.c:167:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((0-((W[40]^(W[41]>>5))&(1<<1))) | ~(DV_I_47_2_bit|DV_I_51_2_bit|DV_II_50_2_bit));
                             ^      ~
/datasets/git/sha1dc/ubc_check.c:167:25: warning: 41 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((0-((W[40]^(W[41]>>5))&(1<<1))) | ~(DV_I_47_2_bit|DV_I_51_2_bit|DV_II_50_2_bit));
                               ^
/datasets/git/sha1dc/ubc_check.c:167:30: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((0-((W[40]^(W[41]>>5))&(1<<1))) | ~(DV_I_47_2_bit|DV_I_51_2_bit|DV_II_50_2_bit));
                                    ^
/datasets/git/sha1dc/ubc_check.c:167:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((0-((W[40]^(W[41]>>5))&(1<<1))) | ~(DV_I_47_2_bit|DV_I_51_2_bit|DV_II_50_2_bit));
                                         ^
/datasets/git/sha1dc/ubc_check.c:168:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & (DV_I_44_0_bit|DV_I_46_0_bit|DV_II_56_0_bit))
                                                                ^
                                                                 {
/datasets/git/sha1dc/ubc_check.c:169:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((0-(((W[40]^W[42])>>4)&1)) | ~(DV_I_44_0_bit|DV_I_46_0_bit|DV_II_56_0_bit));
                             ^                  ~
/datasets/git/sha1dc/ubc_check.c:169:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((0-(((W[40]^W[42])>>4)&1)) | ~(DV_I_44_0_bit|DV_I_46_0_bit|DV_II_56_0_bit));
                              ^              ~
/datasets/git/sha1dc/ubc_check.c:169:20: warning: 40 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-(((W[40]^W[42])>>4)&1)) | ~(DV_I_44_0_bit|DV_I_46_0_bit|DV_II_56_0_bit));
                                 ^
/datasets/git/sha1dc/ubc_check.c:169:26: warning: 42 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-(((W[40]^W[42])>>4)&1)) | ~(DV_I_44_0_bit|DV_I_46_0_bit|DV_II_56_0_bit));
                                       ^
/datasets/git/sha1dc/ubc_check.c:170:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((0-((W[39]^(W[40]>>5))&(1<<1))) | ~(DV_I_46_2_bit|DV_I_50_2_bit|DV_II_49_2_bit));
                     ^                  ~~~~~~
/datasets/git/sha1dc/ubc_check.c:170:18: warning: 39 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((0-((W[39]^(W[40]>>5))&(1<<1))) | ~(DV_I_46_2_bit|DV_I_50_2_bit|DV_II_49_2_bit));
                        ^
/datasets/git/sha1dc/ubc_check.c:170:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((0-((W[39]^(W[40]>>5))&(1<<1))) | ~(DV_I_46_2_bit|DV_I_50_2_bit|DV_II_49_2_bit));
                             ^      ~
/datasets/git/sha1dc/ubc_check.c:170:25: warning: 40 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((0-((W[39]^(W[40]>>5))&(1<<1))) | ~(DV_I_46_2_bit|DV_I_50_2_bit|DV_II_49_2_bit));
                               ^
/datasets/git/sha1dc/ubc_check.c:170:30: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((0-((W[39]^(W[40]>>5))&(1<<1))) | ~(DV_I_46_2_bit|DV_I_50_2_bit|DV_II_49_2_bit));
                                    ^
/datasets/git/sha1dc/ubc_check.c:170:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((0-((W[39]^(W[40]>>5))&(1<<1))) | ~(DV_I_46_2_bit|DV_I_50_2_bit|DV_II_49_2_bit));
                                         ^
/datasets/git/sha1dc/ubc_check.c:171:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & (DV_I_43_0_bit|DV_I_45_0_bit|DV_II_55_0_bit))
                                                                ^
                                                                 {
/datasets/git/sha1dc/ubc_check.c:172:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((0-(((W[39]^W[41])>>4)&1)) | ~(DV_I_43_0_bit|DV_I_45_0_bit|DV_II_55_0_bit));
                             ^                  ~
/datasets/git/sha1dc/ubc_check.c:172:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((0-(((W[39]^W[41])>>4)&1)) | ~(DV_I_43_0_bit|DV_I_45_0_bit|DV_II_55_0_bit));
                              ^              ~
/datasets/git/sha1dc/ubc_check.c:172:20: warning: 39 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-(((W[39]^W[41])>>4)&1)) | ~(DV_I_43_0_bit|DV_I_45_0_bit|DV_II_55_0_bit));
                                 ^
/datasets/git/sha1dc/ubc_check.c:172:26: warning: 41 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-(((W[39]^W[41])>>4)&1)) | ~(DV_I_43_0_bit|DV_I_45_0_bit|DV_II_55_0_bit));
                                       ^
/datasets/git/sha1dc/ubc_check.c:173:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & (DV_I_44_0_bit|DV_II_54_0_bit|DV_II_56_0_bit))
                                                                 ^
                                                                  {
/datasets/git/sha1dc/ubc_check.c:174:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((0-(((W[38]^W[40])>>4)&1)) | ~(DV_I_44_0_bit|DV_II_54_0_bit|DV_II_56_0_bit));
                             ^                  ~
/datasets/git/sha1dc/ubc_check.c:174:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((0-(((W[38]^W[40])>>4)&1)) | ~(DV_I_44_0_bit|DV_II_54_0_bit|DV_II_56_0_bit));
                              ^              ~
/datasets/git/sha1dc/ubc_check.c:174:20: warning: 38 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-(((W[38]^W[40])>>4)&1)) | ~(DV_I_44_0_bit|DV_II_54_0_bit|DV_II_56_0_bit));
                                 ^
/datasets/git/sha1dc/ubc_check.c:174:26: warning: 40 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-(((W[38]^W[40])>>4)&1)) | ~(DV_I_44_0_bit|DV_II_54_0_bit|DV_II_56_0_bit));
                                       ^
/datasets/git/sha1dc/ubc_check.c:175:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & (DV_I_43_0_bit|DV_II_53_0_bit|DV_II_55_0_bit))
                                                                 ^
                                                                  {
/datasets/git/sha1dc/ubc_check.c:176:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((0-(((W[37]^W[39])>>4)&1)) | ~(DV_I_43_0_bit|DV_II_53_0_bit|DV_II_55_0_bit));
                             ^                  ~
/datasets/git/sha1dc/ubc_check.c:176:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((0-(((W[37]^W[39])>>4)&1)) | ~(DV_I_43_0_bit|DV_II_53_0_bit|DV_II_55_0_bit));
                              ^              ~
/datasets/git/sha1dc/ubc_check.c:176:20: warning: 37 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-(((W[37]^W[39])>>4)&1)) | ~(DV_I_43_0_bit|DV_II_53_0_bit|DV_II_55_0_bit));
                                 ^
/datasets/git/sha1dc/ubc_check.c:176:26: warning: 39 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-(((W[37]^W[39])>>4)&1)) | ~(DV_I_43_0_bit|DV_II_53_0_bit|DV_II_55_0_bit));
                                       ^
/datasets/git/sha1dc/ubc_check.c:177:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((0-((W[36]^(W[37]>>5))&(1<<1))) | ~(DV_I_47_2_bit|DV_I_50_2_bit|DV_II_46_2_bit));
                     ^                  ~~~~~~
/datasets/git/sha1dc/ubc_check.c:177:18: warning: 36 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((0-((W[36]^(W[37]>>5))&(1<<1))) | ~(DV_I_47_2_bit|DV_I_50_2_bit|DV_II_46_2_bit));
                        ^
/datasets/git/sha1dc/ubc_check.c:177:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((0-((W[36]^(W[37]>>5))&(1<<1))) | ~(DV_I_47_2_bit|DV_I_50_2_bit|DV_II_46_2_bit));
                             ^      ~
/datasets/git/sha1dc/ubc_check.c:177:25: warning: 37 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((0-((W[36]^(W[37]>>5))&(1<<1))) | ~(DV_I_47_2_bit|DV_I_50_2_bit|DV_II_46_2_bit));
                               ^
/datasets/git/sha1dc/ubc_check.c:177:30: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((0-((W[36]^(W[37]>>5))&(1<<1))) | ~(DV_I_47_2_bit|DV_I_50_2_bit|DV_II_46_2_bit));
                                    ^
/datasets/git/sha1dc/ubc_check.c:177:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((0-((W[36]^(W[37]>>5))&(1<<1))) | ~(DV_I_47_2_bit|DV_I_50_2_bit|DV_II_46_2_bit));
                                         ^
/datasets/git/sha1dc/ubc_check.c:178:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & (DV_I_45_0_bit|DV_I_48_0_bit|DV_II_47_0_bit))
                                                                ^
                                                                 {
/datasets/git/sha1dc/ubc_check.c:179:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= (((((W[35]>>4)^(W[39]>>29))&1)-1) | ~(DV_I_45_0_bit|DV_I_48_0_bit|DV_II_47_0_bit));
                           ^                        ~
/datasets/git/sha1dc/ubc_check.c:179:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= (((((W[35]>>4)^(W[39]>>29))&1)-1) | ~(DV_I_45_0_bit|DV_I_48_0_bit|DV_II_47_0_bit));
                             ^      ~
/datasets/git/sha1dc/ubc_check.c:179:18: warning: 35 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= (((((W[35]>>4)^(W[39]>>29))&1)-1) | ~(DV_I_45_0_bit|DV_I_48_0_bit|DV_II_47_0_bit));
                               ^
/datasets/git/sha1dc/ubc_check.c:179:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= (((((W[35]>>4)^(W[39]>>29))&1)-1) | ~(DV_I_45_0_bit|DV_I_48_0_bit|DV_II_47_0_bit));
                                        ^      ~~
/datasets/git/sha1dc/ubc_check.c:179:29: warning: 39 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= (((((W[35]>>4)^(W[39]>>29))&1)-1) | ~(DV_I_45_0_bit|DV_I_48_0_bit|DV_II_47_0_bit));
                                          ^
/datasets/git/sha1dc/ubc_check.c:179:34: warning: 29 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= (((((W[35]>>4)^(W[39]>>29))&1)-1) | ~(DV_I_45_0_bit|DV_I_48_0_bit|DV_II_47_0_bit));
                                               ^
/datasets/git/sha1dc/ubc_check.c:180:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & (DV_I_48_0_bit|DV_II_48_0_bit))
                                                  ^
                                                   {
/datasets/git/sha1dc/ubc_check.c:181:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((0-((W[63]^(W[64]>>5))&(1<<0))) | ~(DV_I_48_0_bit|DV_II_48_0_bit));
                             ^                  ~~~~~~
/datasets/git/sha1dc/ubc_check.c:181:19: warning: 63 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-((W[63]^(W[64]>>5))&(1<<0))) | ~(DV_I_48_0_bit|DV_II_48_0_bit));
                                ^
/datasets/git/sha1dc/ubc_check.c:181:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((0-((W[63]^(W[64]>>5))&(1<<0))) | ~(DV_I_48_0_bit|DV_II_48_0_bit));
                                     ^      ~
/datasets/git/sha1dc/ubc_check.c:181:26: warning: 64 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-((W[63]^(W[64]>>5))&(1<<0))) | ~(DV_I_48_0_bit|DV_II_48_0_bit));
                                       ^
/datasets/git/sha1dc/ubc_check.c:181:31: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-((W[63]^(W[64]>>5))&(1<<0))) | ~(DV_I_48_0_bit|DV_II_48_0_bit));
                                            ^
/datasets/git/sha1dc/ubc_check.c:181:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((0-((W[63]^(W[64]>>5))&(1<<0))) | ~(DV_I_48_0_bit|DV_II_48_0_bit));
                                                 ^
/datasets/git/sha1dc/ubc_check.c:182:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & (DV_I_45_0_bit|DV_II_45_0_bit))
                                                  ^
                                                   {
/datasets/git/sha1dc/ubc_check.c:183:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((0-((W[63]^(W[64]>>5))&(1<<1))) | ~(DV_I_45_0_bit|DV_II_45_0_bit));
                             ^                  ~~~~~~
/datasets/git/sha1dc/ubc_check.c:183:19: warning: 63 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-((W[63]^(W[64]>>5))&(1<<1))) | ~(DV_I_45_0_bit|DV_II_45_0_bit));
                                ^
/datasets/git/sha1dc/ubc_check.c:183:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((0-((W[63]^(W[64]>>5))&(1<<1))) | ~(DV_I_45_0_bit|DV_II_45_0_bit));
                                     ^      ~
/datasets/git/sha1dc/ubc_check.c:183:26: warning: 64 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-((W[63]^(W[64]>>5))&(1<<1))) | ~(DV_I_45_0_bit|DV_II_45_0_bit));
                                       ^
/datasets/git/sha1dc/ubc_check.c:183:31: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-((W[63]^(W[64]>>5))&(1<<1))) | ~(DV_I_45_0_bit|DV_II_45_0_bit));
                                            ^
/datasets/git/sha1dc/ubc_check.c:183:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((0-((W[63]^(W[64]>>5))&(1<<1))) | ~(DV_I_45_0_bit|DV_II_45_0_bit));
                                                 ^
/datasets/git/sha1dc/ubc_check.c:184:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & (DV_I_47_0_bit|DV_II_47_0_bit))
                                                  ^
                                                   {
/datasets/git/sha1dc/ubc_check.c:185:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((0-((W[62]^(W[63]>>5))&(1<<0))) | ~(DV_I_47_0_bit|DV_II_47_0_bit));
                             ^                  ~~~~~~
/datasets/git/sha1dc/ubc_check.c:185:19: warning: 62 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-((W[62]^(W[63]>>5))&(1<<0))) | ~(DV_I_47_0_bit|DV_II_47_0_bit));
                                ^
/datasets/git/sha1dc/ubc_check.c:185:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((0-((W[62]^(W[63]>>5))&(1<<0))) | ~(DV_I_47_0_bit|DV_II_47_0_bit));
                                     ^      ~
/datasets/git/sha1dc/ubc_check.c:185:26: warning: 63 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-((W[62]^(W[63]>>5))&(1<<0))) | ~(DV_I_47_0_bit|DV_II_47_0_bit));
                                       ^
/datasets/git/sha1dc/ubc_check.c:185:31: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-((W[62]^(W[63]>>5))&(1<<0))) | ~(DV_I_47_0_bit|DV_II_47_0_bit));
                                            ^
/datasets/git/sha1dc/ubc_check.c:185:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((0-((W[62]^(W[63]>>5))&(1<<0))) | ~(DV_I_47_0_bit|DV_II_47_0_bit));
                                                 ^
/datasets/git/sha1dc/ubc_check.c:186:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & (DV_I_46_0_bit|DV_II_46_0_bit))
                                                  ^
                                                   {
/datasets/git/sha1dc/ubc_check.c:187:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((0-((W[61]^(W[62]>>5))&(1<<0))) | ~(DV_I_46_0_bit|DV_II_46_0_bit));
                             ^                  ~~~~~~
/datasets/git/sha1dc/ubc_check.c:187:19: warning: 61 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-((W[61]^(W[62]>>5))&(1<<0))) | ~(DV_I_46_0_bit|DV_II_46_0_bit));
                                ^
/datasets/git/sha1dc/ubc_check.c:187:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((0-((W[61]^(W[62]>>5))&(1<<0))) | ~(DV_I_46_0_bit|DV_II_46_0_bit));
                                     ^      ~
/datasets/git/sha1dc/ubc_check.c:187:26: warning: 62 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-((W[61]^(W[62]>>5))&(1<<0))) | ~(DV_I_46_0_bit|DV_II_46_0_bit));
                                       ^
/datasets/git/sha1dc/ubc_check.c:187:31: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-((W[61]^(W[62]>>5))&(1<<0))) | ~(DV_I_46_0_bit|DV_II_46_0_bit));
                                            ^
/datasets/git/sha1dc/ubc_check.c:187:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((0-((W[61]^(W[62]>>5))&(1<<0))) | ~(DV_I_46_0_bit|DV_II_46_0_bit));
                                                 ^
/datasets/git/sha1dc/ubc_check.c:188:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((0-((W[61]^(W[62]>>5))&(1<<2))) | ~(DV_I_46_2_bit|DV_II_46_2_bit));
                     ^                  ~~~~~~
/datasets/git/sha1dc/ubc_check.c:188:18: warning: 61 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((0-((W[61]^(W[62]>>5))&(1<<2))) | ~(DV_I_46_2_bit|DV_II_46_2_bit));
                        ^
/datasets/git/sha1dc/ubc_check.c:188:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((0-((W[61]^(W[62]>>5))&(1<<2))) | ~(DV_I_46_2_bit|DV_II_46_2_bit));
                             ^      ~
/datasets/git/sha1dc/ubc_check.c:188:25: warning: 62 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((0-((W[61]^(W[62]>>5))&(1<<2))) | ~(DV_I_46_2_bit|DV_II_46_2_bit));
                               ^
/datasets/git/sha1dc/ubc_check.c:188:30: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((0-((W[61]^(W[62]>>5))&(1<<2))) | ~(DV_I_46_2_bit|DV_II_46_2_bit));
                                    ^
/datasets/git/sha1dc/ubc_check.c:188:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((0-((W[61]^(W[62]>>5))&(1<<2))) | ~(DV_I_46_2_bit|DV_II_46_2_bit));
                                         ^
/datasets/git/sha1dc/ubc_check.c:189:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & (DV_I_45_0_bit|DV_II_45_0_bit))
                                                  ^
                                                   {
/datasets/git/sha1dc/ubc_check.c:190:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((0-((W[60]^(W[61]>>5))&(1<<0))) | ~(DV_I_45_0_bit|DV_II_45_0_bit));
                             ^                  ~~~~~~
/datasets/git/sha1dc/ubc_check.c:190:19: warning: 60 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-((W[60]^(W[61]>>5))&(1<<0))) | ~(DV_I_45_0_bit|DV_II_45_0_bit));
                                ^
/datasets/git/sha1dc/ubc_check.c:190:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((0-((W[60]^(W[61]>>5))&(1<<0))) | ~(DV_I_45_0_bit|DV_II_45_0_bit));
                                     ^      ~
/datasets/git/sha1dc/ubc_check.c:190:26: warning: 61 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-((W[60]^(W[61]>>5))&(1<<0))) | ~(DV_I_45_0_bit|DV_II_45_0_bit));
                                       ^
/datasets/git/sha1dc/ubc_check.c:190:31: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-((W[60]^(W[61]>>5))&(1<<0))) | ~(DV_I_45_0_bit|DV_II_45_0_bit));
                                            ^
/datasets/git/sha1dc/ubc_check.c:190:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((0-((W[60]^(W[61]>>5))&(1<<0))) | ~(DV_I_45_0_bit|DV_II_45_0_bit));
                                                 ^
/datasets/git/sha1dc/ubc_check.c:191:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & (DV_II_51_0_bit|DV_II_54_0_bit))
                                                   ^
                                                    {
/datasets/git/sha1dc/ubc_check.c:192:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= (((((W[58]^W[59])>>29)&1)-1) | ~(DV_II_51_0_bit|DV_II_54_0_bit));
                           ^                   ~
/datasets/git/sha1dc/ubc_check.c:192:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= (((((W[58]^W[59])>>29)&1)-1) | ~(DV_II_51_0_bit|DV_II_54_0_bit));
                            ^              ~~
/datasets/git/sha1dc/ubc_check.c:192:18: warning: 58 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= (((((W[58]^W[59])>>29)&1)-1) | ~(DV_II_51_0_bit|DV_II_54_0_bit));
                               ^
/datasets/git/sha1dc/ubc_check.c:192:24: warning: 59 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= (((((W[58]^W[59])>>29)&1)-1) | ~(DV_II_51_0_bit|DV_II_54_0_bit));
                                     ^
/datasets/git/sha1dc/ubc_check.c:192:30: warning: 29 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= (((((W[58]^W[59])>>29)&1)-1) | ~(DV_II_51_0_bit|DV_II_54_0_bit));
                                           ^
/datasets/git/sha1dc/ubc_check.c:193:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & (DV_II_50_0_bit|DV_II_53_0_bit))
                                                   ^
                                                    {
/datasets/git/sha1dc/ubc_check.c:194:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= (((((W[57]^W[58])>>29)&1)-1) | ~(DV_II_50_0_bit|DV_II_53_0_bit));
                           ^                   ~
/datasets/git/sha1dc/ubc_check.c:194:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= (((((W[57]^W[58])>>29)&1)-1) | ~(DV_II_50_0_bit|DV_II_53_0_bit));
                            ^              ~~
/datasets/git/sha1dc/ubc_check.c:194:18: warning: 57 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= (((((W[57]^W[58])>>29)&1)-1) | ~(DV_II_50_0_bit|DV_II_53_0_bit));
                               ^
/datasets/git/sha1dc/ubc_check.c:194:24: warning: 58 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= (((((W[57]^W[58])>>29)&1)-1) | ~(DV_II_50_0_bit|DV_II_53_0_bit));
                                     ^
/datasets/git/sha1dc/ubc_check.c:194:30: warning: 29 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= (((((W[57]^W[58])>>29)&1)-1) | ~(DV_II_50_0_bit|DV_II_53_0_bit));
                                           ^
/datasets/git/sha1dc/ubc_check.c:195:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & (DV_II_52_0_bit|DV_II_54_0_bit))
                                                   ^
                                                    {
/datasets/git/sha1dc/ubc_check.c:196:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((((W[56]^(W[59]>>25))&(1<<4))-(1<<4)) | ~(DV_II_52_0_bit|DV_II_54_0_bit));
                           ^                   ~~~~~~
/datasets/git/sha1dc/ubc_check.c:196:17: warning: 56 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((((W[56]^(W[59]>>25))&(1<<4))-(1<<4)) | ~(DV_II_52_0_bit|DV_II_54_0_bit));
                              ^
/datasets/git/sha1dc/ubc_check.c:196:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((((W[56]^(W[59]>>25))&(1<<4))-(1<<4)) | ~(DV_II_52_0_bit|DV_II_54_0_bit));
                                   ^      ~~
/datasets/git/sha1dc/ubc_check.c:196:24: warning: 59 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((((W[56]^(W[59]>>25))&(1<<4))-(1<<4)) | ~(DV_II_52_0_bit|DV_II_54_0_bit));
                                     ^
/datasets/git/sha1dc/ubc_check.c:196:29: warning: 25 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((((W[56]^(W[59]>>25))&(1<<4))-(1<<4)) | ~(DV_II_52_0_bit|DV_II_54_0_bit));
                                          ^
/datasets/git/sha1dc/ubc_check.c:196:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((((W[56]^(W[59]>>25))&(1<<4))-(1<<4)) | ~(DV_II_52_0_bit|DV_II_54_0_bit));
                                                ^
/datasets/git/sha1dc/ubc_check.c:196:43: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((((W[56]^(W[59]>>25))&(1<<4))-(1<<4)) | ~(DV_II_52_0_bit|DV_II_54_0_bit));
                                                        ^
/datasets/git/sha1dc/ubc_check.c:197:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & (DV_II_51_0_bit|DV_II_52_0_bit))
                                                   ^
                                                    {
/datasets/git/sha1dc/ubc_check.c:198:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((0-(((W[56]^W[59])>>29)&1)) | ~(DV_II_51_0_bit|DV_II_52_0_bit));
                             ^                   ~
/datasets/git/sha1dc/ubc_check.c:198:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((0-(((W[56]^W[59])>>29)&1)) | ~(DV_II_51_0_bit|DV_II_52_0_bit));
                              ^              ~~
/datasets/git/sha1dc/ubc_check.c:198:20: warning: 56 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-(((W[56]^W[59])>>29)&1)) | ~(DV_II_51_0_bit|DV_II_52_0_bit));
                                 ^
/datasets/git/sha1dc/ubc_check.c:198:26: warning: 59 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-(((W[56]^W[59])>>29)&1)) | ~(DV_II_51_0_bit|DV_II_52_0_bit));
                                       ^
/datasets/git/sha1dc/ubc_check.c:198:32: warning: 29 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-(((W[56]^W[59])>>29)&1)) | ~(DV_II_51_0_bit|DV_II_52_0_bit));
                                             ^
/datasets/git/sha1dc/ubc_check.c:199:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & (DV_II_49_0_bit|DV_II_52_0_bit))
                                                   ^
                                                    {
/datasets/git/sha1dc/ubc_check.c:200:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= (((((W[56]^W[57])>>29)&1)-1) | ~(DV_II_49_0_bit|DV_II_52_0_bit));
                           ^                   ~
/datasets/git/sha1dc/ubc_check.c:200:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= (((((W[56]^W[57])>>29)&1)-1) | ~(DV_II_49_0_bit|DV_II_52_0_bit));
                            ^              ~~
/datasets/git/sha1dc/ubc_check.c:200:18: warning: 56 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= (((((W[56]^W[57])>>29)&1)-1) | ~(DV_II_49_0_bit|DV_II_52_0_bit));
                               ^
/datasets/git/sha1dc/ubc_check.c:200:24: warning: 57 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= (((((W[56]^W[57])>>29)&1)-1) | ~(DV_II_49_0_bit|DV_II_52_0_bit));
                                     ^
/datasets/git/sha1dc/ubc_check.c:200:30: warning: 29 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= (((((W[56]^W[57])>>29)&1)-1) | ~(DV_II_49_0_bit|DV_II_52_0_bit));
                                           ^
/datasets/git/sha1dc/ubc_check.c:201:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & (DV_II_51_0_bit|DV_II_53_0_bit))
                                                   ^
                                                    {
/datasets/git/sha1dc/ubc_check.c:202:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((((W[55]^(W[58]>>25))&(1<<4))-(1<<4)) | ~(DV_II_51_0_bit|DV_II_53_0_bit));
                           ^                   ~~~~~~
/datasets/git/sha1dc/ubc_check.c:202:17: warning: 55 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((((W[55]^(W[58]>>25))&(1<<4))-(1<<4)) | ~(DV_II_51_0_bit|DV_II_53_0_bit));
                              ^
/datasets/git/sha1dc/ubc_check.c:202:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((((W[55]^(W[58]>>25))&(1<<4))-(1<<4)) | ~(DV_II_51_0_bit|DV_II_53_0_bit));
                                   ^      ~~
/datasets/git/sha1dc/ubc_check.c:202:24: warning: 58 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((((W[55]^(W[58]>>25))&(1<<4))-(1<<4)) | ~(DV_II_51_0_bit|DV_II_53_0_bit));
                                     ^
/datasets/git/sha1dc/ubc_check.c:202:29: warning: 25 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((((W[55]^(W[58]>>25))&(1<<4))-(1<<4)) | ~(DV_II_51_0_bit|DV_II_53_0_bit));
                                          ^
/datasets/git/sha1dc/ubc_check.c:202:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((((W[55]^(W[58]>>25))&(1<<4))-(1<<4)) | ~(DV_II_51_0_bit|DV_II_53_0_bit));
                                                ^
/datasets/git/sha1dc/ubc_check.c:202:43: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((((W[55]^(W[58]>>25))&(1<<4))-(1<<4)) | ~(DV_II_51_0_bit|DV_II_53_0_bit));
                                                        ^
/datasets/git/sha1dc/ubc_check.c:203:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & (DV_II_50_0_bit|DV_II_52_0_bit))
                                                   ^
                                                    {
/datasets/git/sha1dc/ubc_check.c:204:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((((W[54]^(W[57]>>25))&(1<<4))-(1<<4)) | ~(DV_II_50_0_bit|DV_II_52_0_bit));
                           ^                   ~~~~~~
/datasets/git/sha1dc/ubc_check.c:204:17: warning: 54 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((((W[54]^(W[57]>>25))&(1<<4))-(1<<4)) | ~(DV_II_50_0_bit|DV_II_52_0_bit));
                              ^
/datasets/git/sha1dc/ubc_check.c:204:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((((W[54]^(W[57]>>25))&(1<<4))-(1<<4)) | ~(DV_II_50_0_bit|DV_II_52_0_bit));
                                   ^      ~~
/datasets/git/sha1dc/ubc_check.c:204:24: warning: 57 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((((W[54]^(W[57]>>25))&(1<<4))-(1<<4)) | ~(DV_II_50_0_bit|DV_II_52_0_bit));
                                     ^
/datasets/git/sha1dc/ubc_check.c:204:29: warning: 25 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((((W[54]^(W[57]>>25))&(1<<4))-(1<<4)) | ~(DV_II_50_0_bit|DV_II_52_0_bit));
                                          ^
/datasets/git/sha1dc/ubc_check.c:204:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((((W[54]^(W[57]>>25))&(1<<4))-(1<<4)) | ~(DV_II_50_0_bit|DV_II_52_0_bit));
                                                ^
/datasets/git/sha1dc/ubc_check.c:204:43: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((((W[54]^(W[57]>>25))&(1<<4))-(1<<4)) | ~(DV_II_50_0_bit|DV_II_52_0_bit));
                                                        ^
/datasets/git/sha1dc/ubc_check.c:205:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & (DV_II_49_0_bit|DV_II_51_0_bit))
                                                   ^
                                                    {
/datasets/git/sha1dc/ubc_check.c:206:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((((W[53]^(W[56]>>25))&(1<<4))-(1<<4)) | ~(DV_II_49_0_bit|DV_II_51_0_bit));
                           ^                   ~~~~~~
/datasets/git/sha1dc/ubc_check.c:206:17: warning: 53 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((((W[53]^(W[56]>>25))&(1<<4))-(1<<4)) | ~(DV_II_49_0_bit|DV_II_51_0_bit));
                              ^
/datasets/git/sha1dc/ubc_check.c:206:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((((W[53]^(W[56]>>25))&(1<<4))-(1<<4)) | ~(DV_II_49_0_bit|DV_II_51_0_bit));
                                   ^      ~~
/datasets/git/sha1dc/ubc_check.c:206:24: warning: 56 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((((W[53]^(W[56]>>25))&(1<<4))-(1<<4)) | ~(DV_II_49_0_bit|DV_II_51_0_bit));
                                     ^
/datasets/git/sha1dc/ubc_check.c:206:29: warning: 25 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((((W[53]^(W[56]>>25))&(1<<4))-(1<<4)) | ~(DV_II_49_0_bit|DV_II_51_0_bit));
                                          ^
/datasets/git/sha1dc/ubc_check.c:206:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((((W[53]^(W[56]>>25))&(1<<4))-(1<<4)) | ~(DV_II_49_0_bit|DV_II_51_0_bit));
                                                ^
/datasets/git/sha1dc/ubc_check.c:206:43: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((((W[53]^(W[56]>>25))&(1<<4))-(1<<4)) | ~(DV_II_49_0_bit|DV_II_51_0_bit));
                                                        ^
/datasets/git/sha1dc/ubc_check.c:207:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[51]^(W[50]>>5))&(1<<1))-(1<<1)) | ~(DV_I_50_2_bit|DV_II_46_2_bit));
                   ^                  ~~~~~~
/datasets/git/sha1dc/ubc_check.c:207:16: warning: 51 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((((W[51]^(W[50]>>5))&(1<<1))-(1<<1)) | ~(DV_I_50_2_bit|DV_II_46_2_bit));
                      ^
/datasets/git/sha1dc/ubc_check.c:207:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[51]^(W[50]>>5))&(1<<1))-(1<<1)) | ~(DV_I_50_2_bit|DV_II_46_2_bit));
                           ^      ~
/datasets/git/sha1dc/ubc_check.c:207:23: warning: 50 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((((W[51]^(W[50]>>5))&(1<<1))-(1<<1)) | ~(DV_I_50_2_bit|DV_II_46_2_bit));
                             ^
/datasets/git/sha1dc/ubc_check.c:207:28: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((((W[51]^(W[50]>>5))&(1<<1))-(1<<1)) | ~(DV_I_50_2_bit|DV_II_46_2_bit));
                                  ^
/datasets/git/sha1dc/ubc_check.c:207:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[51]^(W[50]>>5))&(1<<1))-(1<<1)) | ~(DV_I_50_2_bit|DV_II_46_2_bit));
                                       ^
/datasets/git/sha1dc/ubc_check.c:207:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[51]^(W[50]>>5))&(1<<1))-(1<<1)) | ~(DV_I_50_2_bit|DV_II_46_2_bit));
                                               ^
/datasets/git/sha1dc/ubc_check.c:208:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[48]^W[50])&(1<<6))-(1<<6)) | ~(DV_I_50_2_bit|DV_II_46_2_bit));
                   ^             ~~~~~~
/datasets/git/sha1dc/ubc_check.c:208:16: warning: 48 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((((W[48]^W[50])&(1<<6))-(1<<6)) | ~(DV_I_50_2_bit|DV_II_46_2_bit));
                      ^
/datasets/git/sha1dc/ubc_check.c:208:22: warning: 50 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((((W[48]^W[50])&(1<<6))-(1<<6)) | ~(DV_I_50_2_bit|DV_II_46_2_bit));
                            ^
/datasets/git/sha1dc/ubc_check.c:208:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[48]^W[50])&(1<<6))-(1<<6)) | ~(DV_I_50_2_bit|DV_II_46_2_bit));
                                  ^
/datasets/git/sha1dc/ubc_check.c:208:31: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((((W[48]^W[50])&(1<<6))-(1<<6)) | ~(DV_I_50_2_bit|DV_II_46_2_bit));
                                     ^
/datasets/git/sha1dc/ubc_check.c:208:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[48]^W[50])&(1<<6))-(1<<6)) | ~(DV_I_50_2_bit|DV_II_46_2_bit));
                                          ^
/datasets/git/sha1dc/ubc_check.c:208:39: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((((W[48]^W[50])&(1<<6))-(1<<6)) | ~(DV_I_50_2_bit|DV_II_46_2_bit));
                                             ^
/datasets/git/sha1dc/ubc_check.c:209:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & (DV_I_51_0_bit|DV_I_52_0_bit))
                                                 ^
                                                  {
/datasets/git/sha1dc/ubc_check.c:210:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((0-(((W[48]^W[55])>>29)&1)) | ~(DV_I_51_0_bit|DV_I_52_0_bit));
                             ^                   ~
/datasets/git/sha1dc/ubc_check.c:210:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((0-(((W[48]^W[55])>>29)&1)) | ~(DV_I_51_0_bit|DV_I_52_0_bit));
                              ^              ~~
/datasets/git/sha1dc/ubc_check.c:210:20: warning: 48 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-(((W[48]^W[55])>>29)&1)) | ~(DV_I_51_0_bit|DV_I_52_0_bit));
                                 ^
/datasets/git/sha1dc/ubc_check.c:210:26: warning: 55 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-(((W[48]^W[55])>>29)&1)) | ~(DV_I_51_0_bit|DV_I_52_0_bit));
                                       ^
/datasets/git/sha1dc/ubc_check.c:210:32: warning: 29 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-(((W[48]^W[55])>>29)&1)) | ~(DV_I_51_0_bit|DV_I_52_0_bit));
                                             ^
/datasets/git/sha1dc/ubc_check.c:211:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[47]^W[49])&(1<<6))-(1<<6)) | ~(DV_I_49_2_bit|DV_I_51_2_bit));
                   ^             ~~~~~~
/datasets/git/sha1dc/ubc_check.c:211:16: warning: 47 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((((W[47]^W[49])&(1<<6))-(1<<6)) | ~(DV_I_49_2_bit|DV_I_51_2_bit));
                      ^
/datasets/git/sha1dc/ubc_check.c:211:22: warning: 49 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((((W[47]^W[49])&(1<<6))-(1<<6)) | ~(DV_I_49_2_bit|DV_I_51_2_bit));
                            ^
/datasets/git/sha1dc/ubc_check.c:211:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[47]^W[49])&(1<<6))-(1<<6)) | ~(DV_I_49_2_bit|DV_I_51_2_bit));
                                  ^
/datasets/git/sha1dc/ubc_check.c:211:31: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((((W[47]^W[49])&(1<<6))-(1<<6)) | ~(DV_I_49_2_bit|DV_I_51_2_bit));
                                     ^
/datasets/git/sha1dc/ubc_check.c:211:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[47]^W[49])&(1<<6))-(1<<6)) | ~(DV_I_49_2_bit|DV_I_51_2_bit));
                                          ^
/datasets/git/sha1dc/ubc_check.c:211:39: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((((W[47]^W[49])&(1<<6))-(1<<6)) | ~(DV_I_49_2_bit|DV_I_51_2_bit));
                                             ^
/datasets/git/sha1dc/ubc_check.c:212:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[48]^(W[47]>>5))&(1<<1))-(1<<1)) | ~(DV_I_47_2_bit|DV_II_51_2_bit));
                   ^                  ~~~~~~
/datasets/git/sha1dc/ubc_check.c:212:16: warning: 48 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((((W[48]^(W[47]>>5))&(1<<1))-(1<<1)) | ~(DV_I_47_2_bit|DV_II_51_2_bit));
                      ^
/datasets/git/sha1dc/ubc_check.c:212:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[48]^(W[47]>>5))&(1<<1))-(1<<1)) | ~(DV_I_47_2_bit|DV_II_51_2_bit));
                           ^      ~
/datasets/git/sha1dc/ubc_check.c:212:23: warning: 47 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((((W[48]^(W[47]>>5))&(1<<1))-(1<<1)) | ~(DV_I_47_2_bit|DV_II_51_2_bit));
                             ^
/datasets/git/sha1dc/ubc_check.c:212:28: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((((W[48]^(W[47]>>5))&(1<<1))-(1<<1)) | ~(DV_I_47_2_bit|DV_II_51_2_bit));
                                  ^
/datasets/git/sha1dc/ubc_check.c:212:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[48]^(W[47]>>5))&(1<<1))-(1<<1)) | ~(DV_I_47_2_bit|DV_II_51_2_bit));
                                       ^
/datasets/git/sha1dc/ubc_check.c:212:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[48]^(W[47]>>5))&(1<<1))-(1<<1)) | ~(DV_I_47_2_bit|DV_II_51_2_bit));
                                               ^
/datasets/git/sha1dc/ubc_check.c:213:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[46]^W[48])&(1<<6))-(1<<6)) | ~(DV_I_48_2_bit|DV_I_50_2_bit));
                   ^             ~~~~~~
/datasets/git/sha1dc/ubc_check.c:213:16: warning: 46 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((((W[46]^W[48])&(1<<6))-(1<<6)) | ~(DV_I_48_2_bit|DV_I_50_2_bit));
                      ^
/datasets/git/sha1dc/ubc_check.c:213:22: warning: 48 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((((W[46]^W[48])&(1<<6))-(1<<6)) | ~(DV_I_48_2_bit|DV_I_50_2_bit));
                            ^
/datasets/git/sha1dc/ubc_check.c:213:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[46]^W[48])&(1<<6))-(1<<6)) | ~(DV_I_48_2_bit|DV_I_50_2_bit));
                                  ^
/datasets/git/sha1dc/ubc_check.c:213:31: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((((W[46]^W[48])&(1<<6))-(1<<6)) | ~(DV_I_48_2_bit|DV_I_50_2_bit));
                                     ^
/datasets/git/sha1dc/ubc_check.c:213:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[46]^W[48])&(1<<6))-(1<<6)) | ~(DV_I_48_2_bit|DV_I_50_2_bit));
                                          ^
/datasets/git/sha1dc/ubc_check.c:213:39: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((((W[46]^W[48])&(1<<6))-(1<<6)) | ~(DV_I_48_2_bit|DV_I_50_2_bit));
                                             ^
/datasets/git/sha1dc/ubc_check.c:214:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[47]^(W[46]>>5))&(1<<1))-(1<<1)) | ~(DV_I_46_2_bit|DV_II_50_2_bit));
                   ^                  ~~~~~~
/datasets/git/sha1dc/ubc_check.c:214:16: warning: 47 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((((W[47]^(W[46]>>5))&(1<<1))-(1<<1)) | ~(DV_I_46_2_bit|DV_II_50_2_bit));
                      ^
/datasets/git/sha1dc/ubc_check.c:214:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[47]^(W[46]>>5))&(1<<1))-(1<<1)) | ~(DV_I_46_2_bit|DV_II_50_2_bit));
                           ^      ~
/datasets/git/sha1dc/ubc_check.c:214:23: warning: 46 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((((W[47]^(W[46]>>5))&(1<<1))-(1<<1)) | ~(DV_I_46_2_bit|DV_II_50_2_bit));
                             ^
/datasets/git/sha1dc/ubc_check.c:214:28: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((((W[47]^(W[46]>>5))&(1<<1))-(1<<1)) | ~(DV_I_46_2_bit|DV_II_50_2_bit));
                                  ^
/datasets/git/sha1dc/ubc_check.c:214:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[47]^(W[46]>>5))&(1<<1))-(1<<1)) | ~(DV_I_46_2_bit|DV_II_50_2_bit));
                                       ^
/datasets/git/sha1dc/ubc_check.c:214:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[47]^(W[46]>>5))&(1<<1))-(1<<1)) | ~(DV_I_46_2_bit|DV_II_50_2_bit));
                                               ^
/datasets/git/sha1dc/ubc_check.c:215:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((0-((W[44]^(W[45]>>5))&(1<<1))) | ~(DV_I_51_2_bit|DV_II_49_2_bit));
                     ^                  ~~~~~~
/datasets/git/sha1dc/ubc_check.c:215:18: warning: 44 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((0-((W[44]^(W[45]>>5))&(1<<1))) | ~(DV_I_51_2_bit|DV_II_49_2_bit));
                        ^
/datasets/git/sha1dc/ubc_check.c:215:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((0-((W[44]^(W[45]>>5))&(1<<1))) | ~(DV_I_51_2_bit|DV_II_49_2_bit));
                             ^      ~
/datasets/git/sha1dc/ubc_check.c:215:25: warning: 45 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((0-((W[44]^(W[45]>>5))&(1<<1))) | ~(DV_I_51_2_bit|DV_II_49_2_bit));
                               ^
/datasets/git/sha1dc/ubc_check.c:215:30: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((0-((W[44]^(W[45]>>5))&(1<<1))) | ~(DV_I_51_2_bit|DV_II_49_2_bit));
                                    ^
/datasets/git/sha1dc/ubc_check.c:215:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((0-((W[44]^(W[45]>>5))&(1<<1))) | ~(DV_I_51_2_bit|DV_II_49_2_bit));
                                         ^
/datasets/git/sha1dc/ubc_check.c:216:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[43]^W[45])&(1<<6))-(1<<6)) | ~(DV_I_47_2_bit|DV_I_49_2_bit));
                   ^             ~~~~~~
/datasets/git/sha1dc/ubc_check.c:216:16: warning: 43 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((((W[43]^W[45])&(1<<6))-(1<<6)) | ~(DV_I_47_2_bit|DV_I_49_2_bit));
                      ^
/datasets/git/sha1dc/ubc_check.c:216:22: warning: 45 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((((W[43]^W[45])&(1<<6))-(1<<6)) | ~(DV_I_47_2_bit|DV_I_49_2_bit));
                            ^
/datasets/git/sha1dc/ubc_check.c:216:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[43]^W[45])&(1<<6))-(1<<6)) | ~(DV_I_47_2_bit|DV_I_49_2_bit));
                                  ^
/datasets/git/sha1dc/ubc_check.c:216:31: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((((W[43]^W[45])&(1<<6))-(1<<6)) | ~(DV_I_47_2_bit|DV_I_49_2_bit));
                                     ^
/datasets/git/sha1dc/ubc_check.c:216:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[43]^W[45])&(1<<6))-(1<<6)) | ~(DV_I_47_2_bit|DV_I_49_2_bit));
                                          ^
/datasets/git/sha1dc/ubc_check.c:216:39: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((((W[43]^W[45])&(1<<6))-(1<<6)) | ~(DV_I_47_2_bit|DV_I_49_2_bit));
                                             ^
/datasets/git/sha1dc/ubc_check.c:217:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[42]^W[44])>>6)&1)-1) | ~(DV_I_46_2_bit|DV_I_48_2_bit));
                   ^                  ~
/datasets/git/sha1dc/ubc_check.c:217:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= (((((W[42]^W[44])>>6)&1)-1) | ~(DV_I_46_2_bit|DV_I_48_2_bit));
                    ^              ~
/datasets/git/sha1dc/ubc_check.c:217:17: warning: 42 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[42]^W[44])>>6)&1)-1) | ~(DV_I_46_2_bit|DV_I_48_2_bit));
                       ^
/datasets/git/sha1dc/ubc_check.c:217:23: warning: 44 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[42]^W[44])>>6)&1)-1) | ~(DV_I_46_2_bit|DV_I_48_2_bit));
                             ^
/datasets/git/sha1dc/ubc_check.c:217:29: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= (((((W[42]^W[44])>>6)&1)-1) | ~(DV_I_46_2_bit|DV_I_48_2_bit));
                                   ^
/datasets/git/sha1dc/ubc_check.c:218:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[43]^(W[42]>>5))&(1<<1))-(1<<1)) | ~(DV_II_46_2_bit|DV_II_51_2_bit));
                   ^                  ~~~~~~
/datasets/git/sha1dc/ubc_check.c:218:16: warning: 43 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((((W[43]^(W[42]>>5))&(1<<1))-(1<<1)) | ~(DV_II_46_2_bit|DV_II_51_2_bit));
                      ^
/datasets/git/sha1dc/ubc_check.c:218:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[43]^(W[42]>>5))&(1<<1))-(1<<1)) | ~(DV_II_46_2_bit|DV_II_51_2_bit));
                           ^      ~
/datasets/git/sha1dc/ubc_check.c:218:23: warning: 42 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((((W[43]^(W[42]>>5))&(1<<1))-(1<<1)) | ~(DV_II_46_2_bit|DV_II_51_2_bit));
                             ^
/datasets/git/sha1dc/ubc_check.c:218:28: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((((W[43]^(W[42]>>5))&(1<<1))-(1<<1)) | ~(DV_II_46_2_bit|DV_II_51_2_bit));
                                  ^
/datasets/git/sha1dc/ubc_check.c:218:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[43]^(W[42]>>5))&(1<<1))-(1<<1)) | ~(DV_II_46_2_bit|DV_II_51_2_bit));
                                       ^
/datasets/git/sha1dc/ubc_check.c:218:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[43]^(W[42]>>5))&(1<<1))-(1<<1)) | ~(DV_II_46_2_bit|DV_II_51_2_bit));
                                               ^
/datasets/git/sha1dc/ubc_check.c:219:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[42]^(W[41]>>5))&(1<<1))-(1<<1)) | ~(DV_I_51_2_bit|DV_II_50_2_bit));
                   ^                  ~~~~~~
/datasets/git/sha1dc/ubc_check.c:219:16: warning: 42 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((((W[42]^(W[41]>>5))&(1<<1))-(1<<1)) | ~(DV_I_51_2_bit|DV_II_50_2_bit));
                      ^
/datasets/git/sha1dc/ubc_check.c:219:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[42]^(W[41]>>5))&(1<<1))-(1<<1)) | ~(DV_I_51_2_bit|DV_II_50_2_bit));
                           ^      ~
/datasets/git/sha1dc/ubc_check.c:219:23: warning: 41 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((((W[42]^(W[41]>>5))&(1<<1))-(1<<1)) | ~(DV_I_51_2_bit|DV_II_50_2_bit));
                             ^
/datasets/git/sha1dc/ubc_check.c:219:28: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((((W[42]^(W[41]>>5))&(1<<1))-(1<<1)) | ~(DV_I_51_2_bit|DV_II_50_2_bit));
                                  ^
/datasets/git/sha1dc/ubc_check.c:219:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[42]^(W[41]>>5))&(1<<1))-(1<<1)) | ~(DV_I_51_2_bit|DV_II_50_2_bit));
                                       ^
/datasets/git/sha1dc/ubc_check.c:219:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[42]^(W[41]>>5))&(1<<1))-(1<<1)) | ~(DV_I_51_2_bit|DV_II_50_2_bit));
                                               ^
/datasets/git/sha1dc/ubc_check.c:220:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[41]^(W[40]>>5))&(1<<1))-(1<<1)) | ~(DV_I_50_2_bit|DV_II_49_2_bit));
                   ^                  ~~~~~~
/datasets/git/sha1dc/ubc_check.c:220:16: warning: 41 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((((W[41]^(W[40]>>5))&(1<<1))-(1<<1)) | ~(DV_I_50_2_bit|DV_II_49_2_bit));
                      ^
/datasets/git/sha1dc/ubc_check.c:220:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[41]^(W[40]>>5))&(1<<1))-(1<<1)) | ~(DV_I_50_2_bit|DV_II_49_2_bit));
                           ^      ~
/datasets/git/sha1dc/ubc_check.c:220:23: warning: 40 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((((W[41]^(W[40]>>5))&(1<<1))-(1<<1)) | ~(DV_I_50_2_bit|DV_II_49_2_bit));
                             ^
/datasets/git/sha1dc/ubc_check.c:220:28: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((((W[41]^(W[40]>>5))&(1<<1))-(1<<1)) | ~(DV_I_50_2_bit|DV_II_49_2_bit));
                                  ^
/datasets/git/sha1dc/ubc_check.c:220:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[41]^(W[40]>>5))&(1<<1))-(1<<1)) | ~(DV_I_50_2_bit|DV_II_49_2_bit));
                                       ^
/datasets/git/sha1dc/ubc_check.c:220:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((((W[41]^(W[40]>>5))&(1<<1))-(1<<1)) | ~(DV_I_50_2_bit|DV_II_49_2_bit));
                                               ^
/datasets/git/sha1dc/ubc_check.c:221:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & (DV_I_52_0_bit|DV_II_51_0_bit))
                                                  ^
                                                   {
/datasets/git/sha1dc/ubc_check.c:222:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((((W[39]^(W[43]>>25))&(1<<4))-(1<<4)) | ~(DV_I_52_0_bit|DV_II_51_0_bit));
                           ^                   ~~~~~~
/datasets/git/sha1dc/ubc_check.c:222:17: warning: 39 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((((W[39]^(W[43]>>25))&(1<<4))-(1<<4)) | ~(DV_I_52_0_bit|DV_II_51_0_bit));
                              ^
/datasets/git/sha1dc/ubc_check.c:222:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((((W[39]^(W[43]>>25))&(1<<4))-(1<<4)) | ~(DV_I_52_0_bit|DV_II_51_0_bit));
                                   ^      ~~
/datasets/git/sha1dc/ubc_check.c:222:24: warning: 43 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((((W[39]^(W[43]>>25))&(1<<4))-(1<<4)) | ~(DV_I_52_0_bit|DV_II_51_0_bit));
                                     ^
/datasets/git/sha1dc/ubc_check.c:222:29: warning: 25 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((((W[39]^(W[43]>>25))&(1<<4))-(1<<4)) | ~(DV_I_52_0_bit|DV_II_51_0_bit));
                                          ^
/datasets/git/sha1dc/ubc_check.c:222:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((((W[39]^(W[43]>>25))&(1<<4))-(1<<4)) | ~(DV_I_52_0_bit|DV_II_51_0_bit));
                                                ^
/datasets/git/sha1dc/ubc_check.c:222:43: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((((W[39]^(W[43]>>25))&(1<<4))-(1<<4)) | ~(DV_I_52_0_bit|DV_II_51_0_bit));
                                                        ^
/datasets/git/sha1dc/ubc_check.c:223:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & (DV_I_51_0_bit|DV_II_50_0_bit))
                                                  ^
                                                   {
/datasets/git/sha1dc/ubc_check.c:224:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((((W[38]^(W[42]>>25))&(1<<4))-(1<<4)) | ~(DV_I_51_0_bit|DV_II_50_0_bit));
                           ^                   ~~~~~~
/datasets/git/sha1dc/ubc_check.c:224:17: warning: 38 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((((W[38]^(W[42]>>25))&(1<<4))-(1<<4)) | ~(DV_I_51_0_bit|DV_II_50_0_bit));
                              ^
/datasets/git/sha1dc/ubc_check.c:224:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((((W[38]^(W[42]>>25))&(1<<4))-(1<<4)) | ~(DV_I_51_0_bit|DV_II_50_0_bit));
                                   ^      ~~
/datasets/git/sha1dc/ubc_check.c:224:24: warning: 42 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((((W[38]^(W[42]>>25))&(1<<4))-(1<<4)) | ~(DV_I_51_0_bit|DV_II_50_0_bit));
                                     ^
/datasets/git/sha1dc/ubc_check.c:224:29: warning: 25 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((((W[38]^(W[42]>>25))&(1<<4))-(1<<4)) | ~(DV_I_51_0_bit|DV_II_50_0_bit));
                                          ^
/datasets/git/sha1dc/ubc_check.c:224:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((((W[38]^(W[42]>>25))&(1<<4))-(1<<4)) | ~(DV_I_51_0_bit|DV_II_50_0_bit));
                                                ^
/datasets/git/sha1dc/ubc_check.c:224:43: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((((W[38]^(W[42]>>25))&(1<<4))-(1<<4)) | ~(DV_I_51_0_bit|DV_II_50_0_bit));
                                                        ^
/datasets/git/sha1dc/ubc_check.c:225:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & (DV_I_48_2_bit|DV_I_51_2_bit))
                                                 ^
                                                  {
/datasets/git/sha1dc/ubc_check.c:226:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((0-((W[37]^(W[38]>>5))&(1<<1))) | ~(DV_I_48_2_bit|DV_I_51_2_bit));
                             ^                  ~~~~~~
/datasets/git/sha1dc/ubc_check.c:226:19: warning: 37 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-((W[37]^(W[38]>>5))&(1<<1))) | ~(DV_I_48_2_bit|DV_I_51_2_bit));
                                ^
/datasets/git/sha1dc/ubc_check.c:226:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((0-((W[37]^(W[38]>>5))&(1<<1))) | ~(DV_I_48_2_bit|DV_I_51_2_bit));
                                     ^      ~
/datasets/git/sha1dc/ubc_check.c:226:26: warning: 38 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-((W[37]^(W[38]>>5))&(1<<1))) | ~(DV_I_48_2_bit|DV_I_51_2_bit));
                                       ^
/datasets/git/sha1dc/ubc_check.c:226:31: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-((W[37]^(W[38]>>5))&(1<<1))) | ~(DV_I_48_2_bit|DV_I_51_2_bit));
                                            ^
/datasets/git/sha1dc/ubc_check.c:226:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((0-((W[37]^(W[38]>>5))&(1<<1))) | ~(DV_I_48_2_bit|DV_I_51_2_bit));
                                                 ^
/datasets/git/sha1dc/ubc_check.c:227:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & (DV_I_50_0_bit|DV_II_49_0_bit))
                                                  ^
                                                   {
/datasets/git/sha1dc/ubc_check.c:228:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((((W[37]^(W[41]>>25))&(1<<4))-(1<<4)) | ~(DV_I_50_0_bit|DV_II_49_0_bit));
                           ^                   ~~~~~~
/datasets/git/sha1dc/ubc_check.c:228:17: warning: 37 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((((W[37]^(W[41]>>25))&(1<<4))-(1<<4)) | ~(DV_I_50_0_bit|DV_II_49_0_bit));
                              ^
/datasets/git/sha1dc/ubc_check.c:228:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((((W[37]^(W[41]>>25))&(1<<4))-(1<<4)) | ~(DV_I_50_0_bit|DV_II_49_0_bit));
                                   ^      ~~
/datasets/git/sha1dc/ubc_check.c:228:24: warning: 41 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((((W[37]^(W[41]>>25))&(1<<4))-(1<<4)) | ~(DV_I_50_0_bit|DV_II_49_0_bit));
                                     ^
/datasets/git/sha1dc/ubc_check.c:228:29: warning: 25 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((((W[37]^(W[41]>>25))&(1<<4))-(1<<4)) | ~(DV_I_50_0_bit|DV_II_49_0_bit));
                                          ^
/datasets/git/sha1dc/ubc_check.c:228:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((((W[37]^(W[41]>>25))&(1<<4))-(1<<4)) | ~(DV_I_50_0_bit|DV_II_49_0_bit));
                                                ^
/datasets/git/sha1dc/ubc_check.c:228:43: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((((W[37]^(W[41]>>25))&(1<<4))-(1<<4)) | ~(DV_I_50_0_bit|DV_II_49_0_bit));
                                                        ^
/datasets/git/sha1dc/ubc_check.c:229:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & (DV_II_52_0_bit|DV_II_54_0_bit))
                                                   ^
                                                    {
/datasets/git/sha1dc/ubc_check.c:230:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((0-((W[36]^W[38])&(1<<4))) | ~(DV_II_52_0_bit|DV_II_54_0_bit));
                             ^             ~~~~~~
/datasets/git/sha1dc/ubc_check.c:230:19: warning: 36 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-((W[36]^W[38])&(1<<4))) | ~(DV_II_52_0_bit|DV_II_54_0_bit));
                                ^
/datasets/git/sha1dc/ubc_check.c:230:25: warning: 38 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((0-((W[36]^W[38])&(1<<4))) | ~(DV_II_52_0_bit|DV_II_54_0_bit));
                                      ^
/datasets/git/sha1dc/ubc_check.c:230:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((0-((W[36]^W[38])&(1<<4))) | ~(DV_II_52_0_bit|DV_II_54_0_bit));
                                            ^
/datasets/git/sha1dc/ubc_check.c:231:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((0-((W[35]^(W[36]>>5))&(1<<1))) | ~(DV_I_46_2_bit|DV_I_49_2_bit));
                     ^                  ~~~~~~
/datasets/git/sha1dc/ubc_check.c:231:18: warning: 35 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((0-((W[35]^(W[36]>>5))&(1<<1))) | ~(DV_I_46_2_bit|DV_I_49_2_bit));
                        ^
/datasets/git/sha1dc/ubc_check.c:231:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((0-((W[35]^(W[36]>>5))&(1<<1))) | ~(DV_I_46_2_bit|DV_I_49_2_bit));
                             ^      ~
/datasets/git/sha1dc/ubc_check.c:231:25: warning: 36 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((0-((W[35]^(W[36]>>5))&(1<<1))) | ~(DV_I_46_2_bit|DV_I_49_2_bit));
                               ^
/datasets/git/sha1dc/ubc_check.c:231:30: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        mask &= ((0-((W[35]^(W[36]>>5))&(1<<1))) | ~(DV_I_46_2_bit|DV_I_49_2_bit));
                                    ^
/datasets/git/sha1dc/ubc_check.c:231:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        mask &= ((0-((W[35]^(W[36]>>5))&(1<<1))) | ~(DV_I_46_2_bit|DV_I_49_2_bit));
                                         ^
/datasets/git/sha1dc/ubc_check.c:232:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & (DV_I_51_0_bit|DV_II_47_0_bit))
                                                  ^
                                                   {
/datasets/git/sha1dc/ubc_check.c:233:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((((W[35]^(W[39]>>25))&(1<<3))-(1<<3)) | ~(DV_I_51_0_bit|DV_II_47_0_bit));
                           ^                   ~~~~~~
/datasets/git/sha1dc/ubc_check.c:233:17: warning: 35 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((((W[35]^(W[39]>>25))&(1<<3))-(1<<3)) | ~(DV_I_51_0_bit|DV_II_47_0_bit));
                              ^
/datasets/git/sha1dc/ubc_check.c:233:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((((W[35]^(W[39]>>25))&(1<<3))-(1<<3)) | ~(DV_I_51_0_bit|DV_II_47_0_bit));
                                   ^      ~~
/datasets/git/sha1dc/ubc_check.c:233:24: warning: 39 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((((W[35]^(W[39]>>25))&(1<<3))-(1<<3)) | ~(DV_I_51_0_bit|DV_II_47_0_bit));
                                     ^
/datasets/git/sha1dc/ubc_check.c:233:29: warning: 25 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((((W[35]^(W[39]>>25))&(1<<3))-(1<<3)) | ~(DV_I_51_0_bit|DV_II_47_0_bit));
                                          ^
/datasets/git/sha1dc/ubc_check.c:233:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((((W[35]^(W[39]>>25))&(1<<3))-(1<<3)) | ~(DV_I_51_0_bit|DV_II_47_0_bit));
                                                ^
/datasets/git/sha1dc/ubc_check.c:233:43: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((((W[35]^(W[39]>>25))&(1<<3))-(1<<3)) | ~(DV_I_51_0_bit|DV_II_47_0_bit));
                                                        ^
/datasets/git/sha1dc/ubc_check.c:236:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & DV_I_43_0_bit)
                                 ^
                                  {
/datasets/git/sha1dc/ubc_check.c:238:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !((W[61]^(W[62]>>5)) & (1<<1))
                              ^                    ~~~~~~
/datasets/git/sha1dc/ubc_check.c:238:13: warning: 61 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !((W[61]^(W[62]>>5)) & (1<<1))
                                 ^
/datasets/git/sha1dc/ubc_check.c:238:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !((W[61]^(W[62]>>5)) & (1<<1))
                                      ^      ~
/datasets/git/sha1dc/ubc_check.c:238:20: warning: 62 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !((W[61]^(W[62]>>5)) & (1<<1))
                                        ^
/datasets/git/sha1dc/ubc_check.c:238:25: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !((W[61]^(W[62]>>5)) & (1<<1))
                                             ^
/datasets/git/sha1dc/ubc_check.c:238:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !((W[61]^(W[62]>>5)) & (1<<1))
                                                    ^
/datasets/git/sha1dc/ubc_check.c:239:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[59]^(W[63]>>25)) & (1<<5)))
                                ^                     ~~~~~~
/datasets/git/sha1dc/ubc_check.c:239:15: warning: 59 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[59]^(W[63]>>25)) & (1<<5)))
                                   ^
/datasets/git/sha1dc/ubc_check.c:239:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[59]^(W[63]>>25)) & (1<<5)))
                                        ^      ~~
/datasets/git/sha1dc/ubc_check.c:239:22: warning: 63 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[59]^(W[63]>>25)) & (1<<5)))
                                          ^
/datasets/git/sha1dc/ubc_check.c:239:27: warning: 25 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[59]^(W[63]>>25)) & (1<<5)))
                                               ^
/datasets/git/sha1dc/ubc_check.c:239:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[59]^(W[63]>>25)) & (1<<5)))
                                                       ^
/datasets/git/sha1dc/ubc_check.c:239:38: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[59]^(W[63]>>25)) & (1<<5)))
                                                          ^
/datasets/git/sha1dc/ubc_check.c:240:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !((W[58]^(W[63]>>30)) & (1<<0))
                              ^                     ~~~~~~
/datasets/git/sha1dc/ubc_check.c:240:13: warning: 58 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !((W[58]^(W[63]>>30)) & (1<<0))
                                 ^
/datasets/git/sha1dc/ubc_check.c:240:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !((W[58]^(W[63]>>30)) & (1<<0))
                                      ^      ~~
/datasets/git/sha1dc/ubc_check.c:240:20: warning: 63 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !((W[58]^(W[63]>>30)) & (1<<0))
                                        ^
/datasets/git/sha1dc/ubc_check.c:240:25: warning: 30 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !((W[58]^(W[63]>>30)) & (1<<0))
                                             ^
/datasets/git/sha1dc/ubc_check.c:240:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !((W[58]^(W[63]>>30)) & (1<<0))
                                                     ^
/datasets/git/sha1dc/ubc_check.c:241:5: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                 )  mask &= ~DV_I_43_0_bit;
                  ^
                   {
/datasets/git/sha1dc/ubc_check.c:242:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & DV_I_44_0_bit)
                                 ^
                                  {
/datasets/git/sha1dc/ubc_check.c:244:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !((W[62]^(W[63]>>5)) & (1<<1))
                              ^                    ~~~~~~
/datasets/git/sha1dc/ubc_check.c:244:13: warning: 62 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !((W[62]^(W[63]>>5)) & (1<<1))
                                 ^
/datasets/git/sha1dc/ubc_check.c:244:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !((W[62]^(W[63]>>5)) & (1<<1))
                                      ^      ~
/datasets/git/sha1dc/ubc_check.c:244:20: warning: 63 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !((W[62]^(W[63]>>5)) & (1<<1))
                                        ^
/datasets/git/sha1dc/ubc_check.c:244:25: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !((W[62]^(W[63]>>5)) & (1<<1))
                                             ^
/datasets/git/sha1dc/ubc_check.c:244:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !((W[62]^(W[63]>>5)) & (1<<1))
                                                    ^
/datasets/git/sha1dc/ubc_check.c:245:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[60]^(W[64]>>25)) & (1<<5)))
                                ^                     ~~~~~~
/datasets/git/sha1dc/ubc_check.c:245:15: warning: 60 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[60]^(W[64]>>25)) & (1<<5)))
                                   ^
/datasets/git/sha1dc/ubc_check.c:245:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[60]^(W[64]>>25)) & (1<<5)))
                                        ^      ~~
/datasets/git/sha1dc/ubc_check.c:245:22: warning: 64 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[60]^(W[64]>>25)) & (1<<5)))
                                          ^
/datasets/git/sha1dc/ubc_check.c:245:27: warning: 25 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[60]^(W[64]>>25)) & (1<<5)))
                                               ^
/datasets/git/sha1dc/ubc_check.c:245:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[60]^(W[64]>>25)) & (1<<5)))
                                                       ^
/datasets/git/sha1dc/ubc_check.c:245:38: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[60]^(W[64]>>25)) & (1<<5)))
                                                          ^
/datasets/git/sha1dc/ubc_check.c:246:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !((W[59]^(W[64]>>30)) & (1<<0))
                              ^                     ~~~~~~
/datasets/git/sha1dc/ubc_check.c:246:13: warning: 59 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !((W[59]^(W[64]>>30)) & (1<<0))
                                 ^
/datasets/git/sha1dc/ubc_check.c:246:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !((W[59]^(W[64]>>30)) & (1<<0))
                                      ^      ~~
/datasets/git/sha1dc/ubc_check.c:246:20: warning: 64 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !((W[59]^(W[64]>>30)) & (1<<0))
                                        ^
/datasets/git/sha1dc/ubc_check.c:246:25: warning: 30 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !((W[59]^(W[64]>>30)) & (1<<0))
                                             ^
/datasets/git/sha1dc/ubc_check.c:246:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !((W[59]^(W[64]>>30)) & (1<<0))
                                                     ^
/datasets/git/sha1dc/ubc_check.c:247:5: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                 )  mask &= ~DV_I_44_0_bit;
                  ^
                   {
/datasets/git/sha1dc/ubc_check.c:248:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & DV_I_46_2_bit)
                                 ^
                                  {
/datasets/git/sha1dc/ubc_check.c:249:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((~((W[40]^W[42])>>2)) | ~DV_I_46_2_bit);
                            ^              ~
/datasets/git/sha1dc/ubc_check.c:249:18: warning: 40 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((~((W[40]^W[42])>>2)) | ~DV_I_46_2_bit);
                               ^
/datasets/git/sha1dc/ubc_check.c:249:24: warning: 42 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((~((W[40]^W[42])>>2)) | ~DV_I_46_2_bit);
                                     ^
/datasets/git/sha1dc/ubc_check.c:250:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & DV_I_47_2_bit)
                                 ^
                                  {
/datasets/git/sha1dc/ubc_check.c:252:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !((W[62]^(W[63]>>5)) & (1<<2))
                              ^                    ~~~~~~
/datasets/git/sha1dc/ubc_check.c:252:13: warning: 62 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !((W[62]^(W[63]>>5)) & (1<<2))
                                 ^
/datasets/git/sha1dc/ubc_check.c:252:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !((W[62]^(W[63]>>5)) & (1<<2))
                                      ^      ~
/datasets/git/sha1dc/ubc_check.c:252:20: warning: 63 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !((W[62]^(W[63]>>5)) & (1<<2))
                                        ^
/datasets/git/sha1dc/ubc_check.c:252:25: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !((W[62]^(W[63]>>5)) & (1<<2))
                                             ^
/datasets/git/sha1dc/ubc_check.c:252:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !((W[62]^(W[63]>>5)) & (1<<2))
                                                    ^
/datasets/git/sha1dc/ubc_check.c:253:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[41]^W[43]) & (1<<6)))
                                ^               ~~~~~~
/datasets/git/sha1dc/ubc_check.c:253:15: warning: 41 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[41]^W[43]) & (1<<6)))
                                   ^
/datasets/git/sha1dc/ubc_check.c:253:21: warning: 43 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[41]^W[43]) & (1<<6)))
                                         ^
/datasets/git/sha1dc/ubc_check.c:253:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[41]^W[43]) & (1<<6)))
                                                 ^
/datasets/git/sha1dc/ubc_check.c:253:32: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[41]^W[43]) & (1<<6)))
                                                    ^
/datasets/git/sha1dc/ubc_check.c:254:5: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                 )  mask &= ~DV_I_47_2_bit;
                  ^
                   {
/datasets/git/sha1dc/ubc_check.c:255:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & DV_I_48_2_bit)
                                 ^
                                  {
/datasets/git/sha1dc/ubc_check.c:257:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !((W[63]^(W[64]>>5)) & (1<<2))
                              ^                    ~~~~~~
/datasets/git/sha1dc/ubc_check.c:257:13: warning: 63 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !((W[63]^(W[64]>>5)) & (1<<2))
                                 ^
/datasets/git/sha1dc/ubc_check.c:257:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !((W[63]^(W[64]>>5)) & (1<<2))
                                      ^      ~
/datasets/git/sha1dc/ubc_check.c:257:20: warning: 64 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !((W[63]^(W[64]>>5)) & (1<<2))
                                        ^
/datasets/git/sha1dc/ubc_check.c:257:25: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !((W[63]^(W[64]>>5)) & (1<<2))
                                             ^
/datasets/git/sha1dc/ubc_check.c:257:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !((W[63]^(W[64]>>5)) & (1<<2))
                                                    ^
/datasets/git/sha1dc/ubc_check.c:258:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[48]^(W[49]<<5)) & (1<<6)))
                                ^                    ~~~~~~
/datasets/git/sha1dc/ubc_check.c:258:15: warning: 48 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[48]^(W[49]<<5)) & (1<<6)))
                                   ^
/datasets/git/sha1dc/ubc_check.c:258:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[48]^(W[49]<<5)) & (1<<6)))
                                        ^      ~
/datasets/git/sha1dc/ubc_check.c:258:22: warning: 49 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[48]^(W[49]<<5)) & (1<<6)))
                                          ^
/datasets/git/sha1dc/ubc_check.c:258:27: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[48]^(W[49]<<5)) & (1<<6)))
                                               ^
/datasets/git/sha1dc/ubc_check.c:258:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[48]^(W[49]<<5)) & (1<<6)))
                                                      ^
/datasets/git/sha1dc/ubc_check.c:258:37: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[48]^(W[49]<<5)) & (1<<6)))
                                                         ^
/datasets/git/sha1dc/ubc_check.c:259:5: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                 )  mask &= ~DV_I_48_2_bit;
                  ^
                   {
/datasets/git/sha1dc/ubc_check.c:260:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & DV_I_49_2_bit)
                                 ^
                                  {
/datasets/git/sha1dc/ubc_check.c:262:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !(!((W[49]^(W[50]<<5)) & (1<<6)))
                                ^                    ~~~~~~
/datasets/git/sha1dc/ubc_check.c:262:15: warning: 49 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !(!((W[49]^(W[50]<<5)) & (1<<6)))
                                   ^
/datasets/git/sha1dc/ubc_check.c:262:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !(!((W[49]^(W[50]<<5)) & (1<<6)))
                                        ^      ~
/datasets/git/sha1dc/ubc_check.c:262:22: warning: 50 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !(!((W[49]^(W[50]<<5)) & (1<<6)))
                                          ^
/datasets/git/sha1dc/ubc_check.c:262:27: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !(!((W[49]^(W[50]<<5)) & (1<<6)))
                                               ^
/datasets/git/sha1dc/ubc_check.c:262:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !(!((W[49]^(W[50]<<5)) & (1<<6)))
                                                      ^
/datasets/git/sha1dc/ubc_check.c:262:37: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !(!((W[49]^(W[50]<<5)) & (1<<6)))
                                                         ^
/datasets/git/sha1dc/ubc_check.c:263:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !((W[42]^W[50]) & (1<<1))
                              ^               ~~~~~~
/datasets/git/sha1dc/ubc_check.c:263:13: warning: 42 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !((W[42]^W[50]) & (1<<1))
                                 ^
/datasets/git/sha1dc/ubc_check.c:263:19: warning: 50 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !((W[42]^W[50]) & (1<<1))
                                       ^
/datasets/git/sha1dc/ubc_check.c:263:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !((W[42]^W[50]) & (1<<1))
                                               ^
/datasets/git/sha1dc/ubc_check.c:264:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[39]^(W[40]<<5)) & (1<<6)))
                                ^                    ~~~~~~
/datasets/git/sha1dc/ubc_check.c:264:15: warning: 39 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[39]^(W[40]<<5)) & (1<<6)))
                                   ^
/datasets/git/sha1dc/ubc_check.c:264:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[39]^(W[40]<<5)) & (1<<6)))
                                        ^      ~
/datasets/git/sha1dc/ubc_check.c:264:22: warning: 40 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[39]^(W[40]<<5)) & (1<<6)))
                                          ^
/datasets/git/sha1dc/ubc_check.c:264:27: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[39]^(W[40]<<5)) & (1<<6)))
                                               ^
/datasets/git/sha1dc/ubc_check.c:264:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[39]^(W[40]<<5)) & (1<<6)))
                                                      ^
/datasets/git/sha1dc/ubc_check.c:264:37: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[39]^(W[40]<<5)) & (1<<6)))
                                                         ^
/datasets/git/sha1dc/ubc_check.c:265:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !((W[38]^W[40]) & (1<<1))
                              ^               ~~~~~~
/datasets/git/sha1dc/ubc_check.c:265:13: warning: 38 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !((W[38]^W[40]) & (1<<1))
                                 ^
/datasets/git/sha1dc/ubc_check.c:265:19: warning: 40 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !((W[38]^W[40]) & (1<<1))
                                       ^
/datasets/git/sha1dc/ubc_check.c:265:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !((W[38]^W[40]) & (1<<1))
                                               ^
/datasets/git/sha1dc/ubc_check.c:266:5: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                 )  mask &= ~DV_I_49_2_bit;
                  ^
                   {
/datasets/git/sha1dc/ubc_check.c:267:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & DV_I_50_0_bit)
                                 ^
                                  {
/datasets/git/sha1dc/ubc_check.c:268:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((((W[36]^W[37])<<7)) | ~DV_I_50_0_bit);
                           ^              ~
/datasets/git/sha1dc/ubc_check.c:268:17: warning: 36 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((((W[36]^W[37])<<7)) | ~DV_I_50_0_bit);
                              ^
/datasets/git/sha1dc/ubc_check.c:268:23: warning: 37 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((((W[36]^W[37])<<7)) | ~DV_I_50_0_bit);
                                    ^
/datasets/git/sha1dc/ubc_check.c:268:29: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((((W[36]^W[37])<<7)) | ~DV_I_50_0_bit);
                                          ^
/datasets/git/sha1dc/ubc_check.c:269:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & DV_I_50_2_bit)
                                 ^
                                  {
/datasets/git/sha1dc/ubc_check.c:270:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((((W[43]^W[51])<<11)) | ~DV_I_50_2_bit);
                           ^              ~~
/datasets/git/sha1dc/ubc_check.c:270:17: warning: 43 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((((W[43]^W[51])<<11)) | ~DV_I_50_2_bit);
                              ^
/datasets/git/sha1dc/ubc_check.c:270:23: warning: 51 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((((W[43]^W[51])<<11)) | ~DV_I_50_2_bit);
                                    ^
/datasets/git/sha1dc/ubc_check.c:270:29: warning: 11 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((((W[43]^W[51])<<11)) | ~DV_I_50_2_bit);
                                          ^
/datasets/git/sha1dc/ubc_check.c:271:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & DV_I_51_0_bit)
                                 ^
                                  {
/datasets/git/sha1dc/ubc_check.c:272:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((((W[37]^W[38])<<9)) | ~DV_I_51_0_bit);
                           ^              ~
/datasets/git/sha1dc/ubc_check.c:272:17: warning: 37 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((((W[37]^W[38])<<9)) | ~DV_I_51_0_bit);
                              ^
/datasets/git/sha1dc/ubc_check.c:272:23: warning: 38 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((((W[37]^W[38])<<9)) | ~DV_I_51_0_bit);
                                    ^
/datasets/git/sha1dc/ubc_check.c:272:29: warning: 9 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((((W[37]^W[38])<<9)) | ~DV_I_51_0_bit);
                                          ^
/datasets/git/sha1dc/ubc_check.c:273:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & DV_I_51_2_bit)
                                 ^
                                  {
/datasets/git/sha1dc/ubc_check.c:275:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !(!((W[51]^(W[52]<<5)) & (1<<6)))
                                ^                    ~~~~~~
/datasets/git/sha1dc/ubc_check.c:275:15: warning: 51 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !(!((W[51]^(W[52]<<5)) & (1<<6)))
                                   ^
/datasets/git/sha1dc/ubc_check.c:275:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !(!((W[51]^(W[52]<<5)) & (1<<6)))
                                        ^      ~
/datasets/git/sha1dc/ubc_check.c:275:22: warning: 52 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !(!((W[51]^(W[52]<<5)) & (1<<6)))
                                          ^
/datasets/git/sha1dc/ubc_check.c:275:27: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !(!((W[51]^(W[52]<<5)) & (1<<6)))
                                               ^
/datasets/git/sha1dc/ubc_check.c:275:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !(!((W[51]^(W[52]<<5)) & (1<<6)))
                                                      ^
/datasets/git/sha1dc/ubc_check.c:275:37: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !(!((W[51]^(W[52]<<5)) & (1<<6)))
                                                         ^
/datasets/git/sha1dc/ubc_check.c:276:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[49]^W[51]) & (1<<6)))
                                ^               ~~~~~~
/datasets/git/sha1dc/ubc_check.c:276:15: warning: 49 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[49]^W[51]) & (1<<6)))
                                   ^
/datasets/git/sha1dc/ubc_check.c:276:21: warning: 51 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[49]^W[51]) & (1<<6)))
                                         ^
/datasets/git/sha1dc/ubc_check.c:276:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[49]^W[51]) & (1<<6)))
                                                 ^
/datasets/git/sha1dc/ubc_check.c:276:32: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[49]^W[51]) & (1<<6)))
                                                    ^
/datasets/git/sha1dc/ubc_check.c:277:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[37]^(W[37]>>5)) & (1<<1)))
                                ^                    ~~~~~~
/datasets/git/sha1dc/ubc_check.c:277:15: warning: 37 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[37]^(W[37]>>5)) & (1<<1)))
                                   ^
/datasets/git/sha1dc/ubc_check.c:277:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[37]^(W[37]>>5)) & (1<<1)))
                                        ^      ~
/datasets/git/sha1dc/ubc_check.c:277:22: warning: 37 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[37]^(W[37]>>5)) & (1<<1)))
                                          ^
/datasets/git/sha1dc/ubc_check.c:277:27: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[37]^(W[37]>>5)) & (1<<1)))
                                               ^
/datasets/git/sha1dc/ubc_check.c:277:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[37]^(W[37]>>5)) & (1<<1)))
                                                      ^
/datasets/git/sha1dc/ubc_check.c:278:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[35]^(W[39]>>25)) & (1<<5)))
                                ^                     ~~~~~~
/datasets/git/sha1dc/ubc_check.c:278:15: warning: 35 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[35]^(W[39]>>25)) & (1<<5)))
                                   ^
/datasets/git/sha1dc/ubc_check.c:278:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[35]^(W[39]>>25)) & (1<<5)))
                                        ^      ~~
/datasets/git/sha1dc/ubc_check.c:278:22: warning: 39 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[35]^(W[39]>>25)) & (1<<5)))
                                          ^
/datasets/git/sha1dc/ubc_check.c:278:27: warning: 25 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[35]^(W[39]>>25)) & (1<<5)))
                                               ^
/datasets/git/sha1dc/ubc_check.c:278:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[35]^(W[39]>>25)) & (1<<5)))
                                                       ^
/datasets/git/sha1dc/ubc_check.c:278:38: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[35]^(W[39]>>25)) & (1<<5)))
                                                          ^
/datasets/git/sha1dc/ubc_check.c:279:5: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                 )  mask &= ~DV_I_51_2_bit;
                  ^
                   {
/datasets/git/sha1dc/ubc_check.c:280:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & DV_I_52_0_bit)
                                 ^
                                  {
/datasets/git/sha1dc/ubc_check.c:281:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((((W[38]^W[39])<<11)) | ~DV_I_52_0_bit);
                           ^              ~~
/datasets/git/sha1dc/ubc_check.c:281:17: warning: 38 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((((W[38]^W[39])<<11)) | ~DV_I_52_0_bit);
                              ^
/datasets/git/sha1dc/ubc_check.c:281:23: warning: 39 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((((W[38]^W[39])<<11)) | ~DV_I_52_0_bit);
                                    ^
/datasets/git/sha1dc/ubc_check.c:281:29: warning: 11 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((((W[38]^W[39])<<11)) | ~DV_I_52_0_bit);
                                          ^
/datasets/git/sha1dc/ubc_check.c:282:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & DV_II_46_2_bit)
                                  ^
                                   {
/datasets/git/sha1dc/ubc_check.c:283:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask &= ((((W[47]^W[51])<<17)) | ~DV_II_46_2_bit);
                           ^              ~~
/datasets/git/sha1dc/ubc_check.c:283:17: warning: 47 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((((W[47]^W[51])<<17)) | ~DV_II_46_2_bit);
                              ^
/datasets/git/sha1dc/ubc_check.c:283:23: warning: 51 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((((W[47]^W[51])<<17)) | ~DV_II_46_2_bit);
                                    ^
/datasets/git/sha1dc/ubc_check.c:283:29: warning: 17 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                mask &= ((((W[47]^W[51])<<17)) | ~DV_II_46_2_bit);
                                          ^
/datasets/git/sha1dc/ubc_check.c:284:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & DV_II_48_0_bit)
                                  ^
                                   {
/datasets/git/sha1dc/ubc_check.c:286:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !(!((W[36]^(W[40]>>25)) & (1<<3)))
                                ^                     ~~~~~~
/datasets/git/sha1dc/ubc_check.c:286:15: warning: 36 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !(!((W[36]^(W[40]>>25)) & (1<<3)))
                                   ^
/datasets/git/sha1dc/ubc_check.c:286:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !(!((W[36]^(W[40]>>25)) & (1<<3)))
                                        ^      ~~
/datasets/git/sha1dc/ubc_check.c:286:22: warning: 40 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !(!((W[36]^(W[40]>>25)) & (1<<3)))
                                          ^
/datasets/git/sha1dc/ubc_check.c:286:27: warning: 25 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !(!((W[36]^(W[40]>>25)) & (1<<3)))
                                               ^
/datasets/git/sha1dc/ubc_check.c:286:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !(!((W[36]^(W[40]>>25)) & (1<<3)))
                                                       ^
/datasets/git/sha1dc/ubc_check.c:287:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !((W[35]^(W[40]<<2)) & (1<<30))
                              ^                    ~~~~~~~
/datasets/git/sha1dc/ubc_check.c:287:13: warning: 35 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !((W[35]^(W[40]<<2)) & (1<<30))
                                 ^
/datasets/git/sha1dc/ubc_check.c:287:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !((W[35]^(W[40]<<2)) & (1<<30))
                                      ^      ~
/datasets/git/sha1dc/ubc_check.c:287:20: warning: 40 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !((W[35]^(W[40]<<2)) & (1<<30))
                                        ^
/datasets/git/sha1dc/ubc_check.c:287:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !((W[35]^(W[40]<<2)) & (1<<30))
                                                    ^
/datasets/git/sha1dc/ubc_check.c:287:35: warning: 30 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !((W[35]^(W[40]<<2)) & (1<<30))
                                                       ^
/datasets/git/sha1dc/ubc_check.c:288:5: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                 )  mask &= ~DV_II_48_0_bit;
                  ^
                   {
/datasets/git/sha1dc/ubc_check.c:289:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & DV_II_49_0_bit)
                                  ^
                                   {
/datasets/git/sha1dc/ubc_check.c:291:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !(!((W[37]^(W[41]>>25)) & (1<<3)))
                                ^                     ~~~~~~
/datasets/git/sha1dc/ubc_check.c:291:15: warning: 37 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !(!((W[37]^(W[41]>>25)) & (1<<3)))
                                   ^
/datasets/git/sha1dc/ubc_check.c:291:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !(!((W[37]^(W[41]>>25)) & (1<<3)))
                                        ^      ~~
/datasets/git/sha1dc/ubc_check.c:291:22: warning: 41 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !(!((W[37]^(W[41]>>25)) & (1<<3)))
                                          ^
/datasets/git/sha1dc/ubc_check.c:291:27: warning: 25 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !(!((W[37]^(W[41]>>25)) & (1<<3)))
                                               ^
/datasets/git/sha1dc/ubc_check.c:291:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !(!((W[37]^(W[41]>>25)) & (1<<3)))
                                                       ^
/datasets/git/sha1dc/ubc_check.c:292:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !((W[36]^(W[41]<<2)) & (1<<30))
                              ^                    ~~~~~~~
/datasets/git/sha1dc/ubc_check.c:292:13: warning: 36 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !((W[36]^(W[41]<<2)) & (1<<30))
                                 ^
/datasets/git/sha1dc/ubc_check.c:292:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !((W[36]^(W[41]<<2)) & (1<<30))
                                      ^      ~
/datasets/git/sha1dc/ubc_check.c:292:20: warning: 41 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !((W[36]^(W[41]<<2)) & (1<<30))
                                        ^
/datasets/git/sha1dc/ubc_check.c:292:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !((W[36]^(W[41]<<2)) & (1<<30))
                                                    ^
/datasets/git/sha1dc/ubc_check.c:292:35: warning: 30 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !((W[36]^(W[41]<<2)) & (1<<30))
                                                       ^
/datasets/git/sha1dc/ubc_check.c:293:5: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                 )  mask &= ~DV_II_49_0_bit;
                  ^
                   {
/datasets/git/sha1dc/ubc_check.c:294:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & DV_II_49_2_bit)
                                  ^
                                   {
/datasets/git/sha1dc/ubc_check.c:296:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !(!((W[53]^(W[54]<<5)) & (1<<6)))
                                ^                    ~~~~~~
/datasets/git/sha1dc/ubc_check.c:296:15: warning: 53 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !(!((W[53]^(W[54]<<5)) & (1<<6)))
                                   ^
/datasets/git/sha1dc/ubc_check.c:296:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !(!((W[53]^(W[54]<<5)) & (1<<6)))
                                        ^      ~
/datasets/git/sha1dc/ubc_check.c:296:22: warning: 54 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !(!((W[53]^(W[54]<<5)) & (1<<6)))
                                          ^
/datasets/git/sha1dc/ubc_check.c:296:27: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !(!((W[53]^(W[54]<<5)) & (1<<6)))
                                               ^
/datasets/git/sha1dc/ubc_check.c:296:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !(!((W[53]^(W[54]<<5)) & (1<<6)))
                                                      ^
/datasets/git/sha1dc/ubc_check.c:296:37: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !(!((W[53]^(W[54]<<5)) & (1<<6)))
                                                         ^
/datasets/git/sha1dc/ubc_check.c:297:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[51]^W[53]) & (1<<6)))
                                ^               ~~~~~~
/datasets/git/sha1dc/ubc_check.c:297:15: warning: 51 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[51]^W[53]) & (1<<6)))
                                   ^
/datasets/git/sha1dc/ubc_check.c:297:21: warning: 53 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[51]^W[53]) & (1<<6)))
                                         ^
/datasets/git/sha1dc/ubc_check.c:297:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[51]^W[53]) & (1<<6)))
                                                 ^
/datasets/git/sha1dc/ubc_check.c:297:32: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[51]^W[53]) & (1<<6)))
                                                    ^
/datasets/git/sha1dc/ubc_check.c:298:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !((W[50]^W[54]) & (1<<1))
                              ^               ~~~~~~
/datasets/git/sha1dc/ubc_check.c:298:13: warning: 50 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !((W[50]^W[54]) & (1<<1))
                                 ^
/datasets/git/sha1dc/ubc_check.c:298:19: warning: 54 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !((W[50]^W[54]) & (1<<1))
                                       ^
/datasets/git/sha1dc/ubc_check.c:298:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !((W[50]^W[54]) & (1<<1))
                                               ^
/datasets/git/sha1dc/ubc_check.c:299:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[45]^(W[46]<<5)) & (1<<6)))
                                ^                    ~~~~~~
/datasets/git/sha1dc/ubc_check.c:299:15: warning: 45 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[45]^(W[46]<<5)) & (1<<6)))
                                   ^
/datasets/git/sha1dc/ubc_check.c:299:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[45]^(W[46]<<5)) & (1<<6)))
                                        ^      ~
/datasets/git/sha1dc/ubc_check.c:299:22: warning: 46 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[45]^(W[46]<<5)) & (1<<6)))
                                          ^
/datasets/git/sha1dc/ubc_check.c:299:27: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[45]^(W[46]<<5)) & (1<<6)))
                                               ^
/datasets/git/sha1dc/ubc_check.c:299:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[45]^(W[46]<<5)) & (1<<6)))
                                                      ^
/datasets/git/sha1dc/ubc_check.c:299:37: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[45]^(W[46]<<5)) & (1<<6)))
                                                         ^
/datasets/git/sha1dc/ubc_check.c:300:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[37]^(W[41]>>25)) & (1<<5)))
                                ^                     ~~~~~~
/datasets/git/sha1dc/ubc_check.c:300:15: warning: 37 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[37]^(W[41]>>25)) & (1<<5)))
                                   ^
/datasets/git/sha1dc/ubc_check.c:300:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[37]^(W[41]>>25)) & (1<<5)))
                                        ^      ~~
/datasets/git/sha1dc/ubc_check.c:300:22: warning: 41 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[37]^(W[41]>>25)) & (1<<5)))
                                          ^
/datasets/git/sha1dc/ubc_check.c:300:27: warning: 25 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[37]^(W[41]>>25)) & (1<<5)))
                                               ^
/datasets/git/sha1dc/ubc_check.c:300:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[37]^(W[41]>>25)) & (1<<5)))
                                                       ^
/datasets/git/sha1dc/ubc_check.c:300:38: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[37]^(W[41]>>25)) & (1<<5)))
                                                          ^
/datasets/git/sha1dc/ubc_check.c:301:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !((W[36]^(W[41]>>30)) & (1<<0))
                              ^                     ~~~~~~
/datasets/git/sha1dc/ubc_check.c:301:13: warning: 36 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !((W[36]^(W[41]>>30)) & (1<<0))
                                 ^
/datasets/git/sha1dc/ubc_check.c:301:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !((W[36]^(W[41]>>30)) & (1<<0))
                                      ^      ~~
/datasets/git/sha1dc/ubc_check.c:301:20: warning: 41 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !((W[36]^(W[41]>>30)) & (1<<0))
                                        ^
/datasets/git/sha1dc/ubc_check.c:301:25: warning: 30 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !((W[36]^(W[41]>>30)) & (1<<0))
                                             ^
/datasets/git/sha1dc/ubc_check.c:301:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !((W[36]^(W[41]>>30)) & (1<<0))
                                                     ^
/datasets/git/sha1dc/ubc_check.c:302:5: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                 )  mask &= ~DV_II_49_2_bit;
                  ^
                   {
/datasets/git/sha1dc/ubc_check.c:303:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & DV_II_50_0_bit)
                                  ^
                                   {
/datasets/git/sha1dc/ubc_check.c:305:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !((W[55]^W[58]) & (1<<29))
                              ^               ~~~~~~~
/datasets/git/sha1dc/ubc_check.c:305:13: warning: 55 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !((W[55]^W[58]) & (1<<29))
                                 ^
/datasets/git/sha1dc/ubc_check.c:305:19: warning: 58 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !((W[55]^W[58]) & (1<<29))
                                       ^
/datasets/git/sha1dc/ubc_check.c:305:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !((W[55]^W[58]) & (1<<29))
                                               ^
/datasets/git/sha1dc/ubc_check.c:305:30: warning: 29 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !((W[55]^W[58]) & (1<<29))
                                                  ^
/datasets/git/sha1dc/ubc_check.c:306:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[38]^(W[42]>>25)) & (1<<3)))
                                ^                     ~~~~~~
/datasets/git/sha1dc/ubc_check.c:306:15: warning: 38 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[38]^(W[42]>>25)) & (1<<3)))
                                   ^
/datasets/git/sha1dc/ubc_check.c:306:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[38]^(W[42]>>25)) & (1<<3)))
                                        ^      ~~
/datasets/git/sha1dc/ubc_check.c:306:22: warning: 42 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[38]^(W[42]>>25)) & (1<<3)))
                                          ^
/datasets/git/sha1dc/ubc_check.c:306:27: warning: 25 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[38]^(W[42]>>25)) & (1<<3)))
                                               ^
/datasets/git/sha1dc/ubc_check.c:306:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[38]^(W[42]>>25)) & (1<<3)))
                                                       ^
/datasets/git/sha1dc/ubc_check.c:307:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !((W[37]^(W[42]<<2)) & (1<<30))
                              ^                    ~~~~~~~
/datasets/git/sha1dc/ubc_check.c:307:13: warning: 37 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !((W[37]^(W[42]<<2)) & (1<<30))
                                 ^
/datasets/git/sha1dc/ubc_check.c:307:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !((W[37]^(W[42]<<2)) & (1<<30))
                                      ^      ~
/datasets/git/sha1dc/ubc_check.c:307:20: warning: 42 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !((W[37]^(W[42]<<2)) & (1<<30))
                                        ^
/datasets/git/sha1dc/ubc_check.c:307:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !((W[37]^(W[42]<<2)) & (1<<30))
                                                    ^
/datasets/git/sha1dc/ubc_check.c:307:35: warning: 30 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !((W[37]^(W[42]<<2)) & (1<<30))
                                                       ^
/datasets/git/sha1dc/ubc_check.c:308:5: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                 )  mask &= ~DV_II_50_0_bit;
                  ^
                   {
/datasets/git/sha1dc/ubc_check.c:309:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & DV_II_50_2_bit)
                                  ^
                                   {
/datasets/git/sha1dc/ubc_check.c:311:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !(!((W[54]^(W[55]<<5)) & (1<<6)))
                                ^                    ~~~~~~
/datasets/git/sha1dc/ubc_check.c:311:15: warning: 54 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !(!((W[54]^(W[55]<<5)) & (1<<6)))
                                   ^
/datasets/git/sha1dc/ubc_check.c:311:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !(!((W[54]^(W[55]<<5)) & (1<<6)))
                                        ^      ~
/datasets/git/sha1dc/ubc_check.c:311:22: warning: 55 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !(!((W[54]^(W[55]<<5)) & (1<<6)))
                                          ^
/datasets/git/sha1dc/ubc_check.c:311:27: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !(!((W[54]^(W[55]<<5)) & (1<<6)))
                                               ^
/datasets/git/sha1dc/ubc_check.c:311:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !(!((W[54]^(W[55]<<5)) & (1<<6)))
                                                      ^
/datasets/git/sha1dc/ubc_check.c:311:37: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !(!((W[54]^(W[55]<<5)) & (1<<6)))
                                                         ^
/datasets/git/sha1dc/ubc_check.c:312:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[52]^W[54]) & (1<<6)))
                                ^               ~~~~~~
/datasets/git/sha1dc/ubc_check.c:312:15: warning: 52 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[52]^W[54]) & (1<<6)))
                                   ^
/datasets/git/sha1dc/ubc_check.c:312:21: warning: 54 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[52]^W[54]) & (1<<6)))
                                         ^
/datasets/git/sha1dc/ubc_check.c:312:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[52]^W[54]) & (1<<6)))
                                                 ^
/datasets/git/sha1dc/ubc_check.c:312:32: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[52]^W[54]) & (1<<6)))
                                                    ^
/datasets/git/sha1dc/ubc_check.c:313:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !((W[51]^W[55]) & (1<<1))
                              ^               ~~~~~~
/datasets/git/sha1dc/ubc_check.c:313:13: warning: 51 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !((W[51]^W[55]) & (1<<1))
                                 ^
/datasets/git/sha1dc/ubc_check.c:313:19: warning: 55 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !((W[51]^W[55]) & (1<<1))
                                       ^
/datasets/git/sha1dc/ubc_check.c:313:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !((W[51]^W[55]) & (1<<1))
                                               ^
/datasets/git/sha1dc/ubc_check.c:314:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !((W[45]^W[47]) & (1<<1))
                              ^               ~~~~~~
/datasets/git/sha1dc/ubc_check.c:314:13: warning: 45 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !((W[45]^W[47]) & (1<<1))
                                 ^
/datasets/git/sha1dc/ubc_check.c:314:19: warning: 47 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !((W[45]^W[47]) & (1<<1))
                                       ^
/datasets/git/sha1dc/ubc_check.c:314:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !((W[45]^W[47]) & (1<<1))
                                               ^
/datasets/git/sha1dc/ubc_check.c:315:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[38]^(W[42]>>25)) & (1<<5)))
                                ^                     ~~~~~~
/datasets/git/sha1dc/ubc_check.c:315:15: warning: 38 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[38]^(W[42]>>25)) & (1<<5)))
                                   ^
/datasets/git/sha1dc/ubc_check.c:315:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[38]^(W[42]>>25)) & (1<<5)))
                                        ^      ~~
/datasets/git/sha1dc/ubc_check.c:315:22: warning: 42 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[38]^(W[42]>>25)) & (1<<5)))
                                          ^
/datasets/git/sha1dc/ubc_check.c:315:27: warning: 25 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[38]^(W[42]>>25)) & (1<<5)))
                                               ^
/datasets/git/sha1dc/ubc_check.c:315:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[38]^(W[42]>>25)) & (1<<5)))
                                                       ^
/datasets/git/sha1dc/ubc_check.c:315:38: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[38]^(W[42]>>25)) & (1<<5)))
                                                          ^
/datasets/git/sha1dc/ubc_check.c:316:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !((W[37]^(W[42]>>30)) & (1<<0))
                              ^                     ~~~~~~
/datasets/git/sha1dc/ubc_check.c:316:13: warning: 37 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !((W[37]^(W[42]>>30)) & (1<<0))
                                 ^
/datasets/git/sha1dc/ubc_check.c:316:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !((W[37]^(W[42]>>30)) & (1<<0))
                                      ^      ~~
/datasets/git/sha1dc/ubc_check.c:316:20: warning: 42 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !((W[37]^(W[42]>>30)) & (1<<0))
                                        ^
/datasets/git/sha1dc/ubc_check.c:316:25: warning: 30 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !((W[37]^(W[42]>>30)) & (1<<0))
                                             ^
/datasets/git/sha1dc/ubc_check.c:316:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !((W[37]^(W[42]>>30)) & (1<<0))
                                                     ^
/datasets/git/sha1dc/ubc_check.c:317:5: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                 )  mask &= ~DV_II_50_2_bit;
                  ^
                   {
/datasets/git/sha1dc/ubc_check.c:318:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & DV_II_51_0_bit)
                                  ^
                                   {
/datasets/git/sha1dc/ubc_check.c:320:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !(!((W[39]^(W[43]>>25)) & (1<<3)))
                                ^                     ~~~~~~
/datasets/git/sha1dc/ubc_check.c:320:15: warning: 39 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !(!((W[39]^(W[43]>>25)) & (1<<3)))
                                   ^
/datasets/git/sha1dc/ubc_check.c:320:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !(!((W[39]^(W[43]>>25)) & (1<<3)))
                                        ^      ~~
/datasets/git/sha1dc/ubc_check.c:320:22: warning: 43 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !(!((W[39]^(W[43]>>25)) & (1<<3)))
                                          ^
/datasets/git/sha1dc/ubc_check.c:320:27: warning: 25 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !(!((W[39]^(W[43]>>25)) & (1<<3)))
                                               ^
/datasets/git/sha1dc/ubc_check.c:320:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !(!((W[39]^(W[43]>>25)) & (1<<3)))
                                                       ^
/datasets/git/sha1dc/ubc_check.c:321:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !((W[38]^(W[43]<<2)) & (1<<30))
                              ^                    ~~~~~~~
/datasets/git/sha1dc/ubc_check.c:321:13: warning: 38 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !((W[38]^(W[43]<<2)) & (1<<30))
                                 ^
/datasets/git/sha1dc/ubc_check.c:321:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !((W[38]^(W[43]<<2)) & (1<<30))
                                      ^      ~
/datasets/git/sha1dc/ubc_check.c:321:20: warning: 43 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !((W[38]^(W[43]<<2)) & (1<<30))
                                        ^
/datasets/git/sha1dc/ubc_check.c:321:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !((W[38]^(W[43]<<2)) & (1<<30))
                                                    ^
/datasets/git/sha1dc/ubc_check.c:321:35: warning: 30 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !((W[38]^(W[43]<<2)) & (1<<30))
                                                       ^
/datasets/git/sha1dc/ubc_check.c:322:5: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                 )  mask &= ~DV_II_51_0_bit;
                  ^
                   {
/datasets/git/sha1dc/ubc_check.c:323:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & DV_II_51_2_bit)
                                  ^
                                   {
/datasets/git/sha1dc/ubc_check.c:325:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !(!((W[55]^(W[56]<<5)) & (1<<6)))
                                ^                    ~~~~~~
/datasets/git/sha1dc/ubc_check.c:325:15: warning: 55 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !(!((W[55]^(W[56]<<5)) & (1<<6)))
                                   ^
/datasets/git/sha1dc/ubc_check.c:325:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !(!((W[55]^(W[56]<<5)) & (1<<6)))
                                        ^      ~
/datasets/git/sha1dc/ubc_check.c:325:22: warning: 56 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !(!((W[55]^(W[56]<<5)) & (1<<6)))
                                          ^
/datasets/git/sha1dc/ubc_check.c:325:27: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !(!((W[55]^(W[56]<<5)) & (1<<6)))
                                               ^
/datasets/git/sha1dc/ubc_check.c:325:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !(!((W[55]^(W[56]<<5)) & (1<<6)))
                                                      ^
/datasets/git/sha1dc/ubc_check.c:325:37: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !(!((W[55]^(W[56]<<5)) & (1<<6)))
                                                         ^
/datasets/git/sha1dc/ubc_check.c:326:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[53]^W[55]) & (1<<6)))
                                ^               ~~~~~~
/datasets/git/sha1dc/ubc_check.c:326:15: warning: 53 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[53]^W[55]) & (1<<6)))
                                   ^
/datasets/git/sha1dc/ubc_check.c:326:21: warning: 55 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[53]^W[55]) & (1<<6)))
                                         ^
/datasets/git/sha1dc/ubc_check.c:326:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[53]^W[55]) & (1<<6)))
                                                 ^
/datasets/git/sha1dc/ubc_check.c:326:32: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[53]^W[55]) & (1<<6)))
                                                    ^
/datasets/git/sha1dc/ubc_check.c:327:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !((W[52]^W[56]) & (1<<1))
                              ^               ~~~~~~
/datasets/git/sha1dc/ubc_check.c:327:13: warning: 52 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !((W[52]^W[56]) & (1<<1))
                                 ^
/datasets/git/sha1dc/ubc_check.c:327:19: warning: 56 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !((W[52]^W[56]) & (1<<1))
                                       ^
/datasets/git/sha1dc/ubc_check.c:327:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !((W[52]^W[56]) & (1<<1))
                                               ^
/datasets/git/sha1dc/ubc_check.c:328:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !((W[46]^W[48]) & (1<<1))
                              ^               ~~~~~~
/datasets/git/sha1dc/ubc_check.c:328:13: warning: 46 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !((W[46]^W[48]) & (1<<1))
                                 ^
/datasets/git/sha1dc/ubc_check.c:328:19: warning: 48 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !((W[46]^W[48]) & (1<<1))
                                       ^
/datasets/git/sha1dc/ubc_check.c:328:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !((W[46]^W[48]) & (1<<1))
                                               ^
/datasets/git/sha1dc/ubc_check.c:329:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[39]^(W[43]>>25)) & (1<<5)))
                                ^                     ~~~~~~
/datasets/git/sha1dc/ubc_check.c:329:15: warning: 39 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[39]^(W[43]>>25)) & (1<<5)))
                                   ^
/datasets/git/sha1dc/ubc_check.c:329:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[39]^(W[43]>>25)) & (1<<5)))
                                        ^      ~~
/datasets/git/sha1dc/ubc_check.c:329:22: warning: 43 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[39]^(W[43]>>25)) & (1<<5)))
                                          ^
/datasets/git/sha1dc/ubc_check.c:329:27: warning: 25 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[39]^(W[43]>>25)) & (1<<5)))
                                               ^
/datasets/git/sha1dc/ubc_check.c:329:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[39]^(W[43]>>25)) & (1<<5)))
                                                       ^
/datasets/git/sha1dc/ubc_check.c:329:38: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[39]^(W[43]>>25)) & (1<<5)))
                                                          ^
/datasets/git/sha1dc/ubc_check.c:330:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !((W[38]^(W[43]>>30)) & (1<<0))
                              ^                     ~~~~~~
/datasets/git/sha1dc/ubc_check.c:330:13: warning: 38 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !((W[38]^(W[43]>>30)) & (1<<0))
                                 ^
/datasets/git/sha1dc/ubc_check.c:330:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !((W[38]^(W[43]>>30)) & (1<<0))
                                      ^      ~~
/datasets/git/sha1dc/ubc_check.c:330:20: warning: 43 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !((W[38]^(W[43]>>30)) & (1<<0))
                                        ^
/datasets/git/sha1dc/ubc_check.c:330:25: warning: 30 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !((W[38]^(W[43]>>30)) & (1<<0))
                                             ^
/datasets/git/sha1dc/ubc_check.c:330:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !((W[38]^(W[43]>>30)) & (1<<0))
                                                     ^
/datasets/git/sha1dc/ubc_check.c:331:5: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                 )  mask &= ~DV_II_51_2_bit;
                  ^
                   {
/datasets/git/sha1dc/ubc_check.c:332:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & DV_II_52_0_bit)
                                  ^
                                   {
/datasets/git/sha1dc/ubc_check.c:334:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !(!((W[59]^W[60]) & (1<<29)))
                                ^               ~~~~~~~
/datasets/git/sha1dc/ubc_check.c:334:15: warning: 59 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !(!((W[59]^W[60]) & (1<<29)))
                                   ^
/datasets/git/sha1dc/ubc_check.c:334:21: warning: 60 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !(!((W[59]^W[60]) & (1<<29)))
                                         ^
/datasets/git/sha1dc/ubc_check.c:334:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !(!((W[59]^W[60]) & (1<<29)))
                                                 ^
/datasets/git/sha1dc/ubc_check.c:334:32: warning: 29 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !(!((W[59]^W[60]) & (1<<29)))
                                                    ^
/datasets/git/sha1dc/ubc_check.c:335:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[40]^(W[44]>>25)) & (1<<3)))
                                ^                     ~~~~~~
/datasets/git/sha1dc/ubc_check.c:335:15: warning: 40 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[40]^(W[44]>>25)) & (1<<3)))
                                   ^
/datasets/git/sha1dc/ubc_check.c:335:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[40]^(W[44]>>25)) & (1<<3)))
                                        ^      ~~
/datasets/git/sha1dc/ubc_check.c:335:22: warning: 44 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[40]^(W[44]>>25)) & (1<<3)))
                                          ^
/datasets/git/sha1dc/ubc_check.c:335:27: warning: 25 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[40]^(W[44]>>25)) & (1<<3)))
                                               ^
/datasets/git/sha1dc/ubc_check.c:335:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[40]^(W[44]>>25)) & (1<<3)))
                                                       ^
/datasets/git/sha1dc/ubc_check.c:336:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[40]^(W[44]>>25)) & (1<<4)))
                                ^                     ~~~~~~
/datasets/git/sha1dc/ubc_check.c:336:15: warning: 40 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[40]^(W[44]>>25)) & (1<<4)))
                                   ^
/datasets/git/sha1dc/ubc_check.c:336:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[40]^(W[44]>>25)) & (1<<4)))
                                        ^      ~~
/datasets/git/sha1dc/ubc_check.c:336:22: warning: 44 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[40]^(W[44]>>25)) & (1<<4)))
                                          ^
/datasets/git/sha1dc/ubc_check.c:336:27: warning: 25 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[40]^(W[44]>>25)) & (1<<4)))
                                               ^
/datasets/git/sha1dc/ubc_check.c:336:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[40]^(W[44]>>25)) & (1<<4)))
                                                       ^
/datasets/git/sha1dc/ubc_check.c:337:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !((W[39]^(W[44]<<2)) & (1<<30))
                              ^                    ~~~~~~~
/datasets/git/sha1dc/ubc_check.c:337:13: warning: 39 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !((W[39]^(W[44]<<2)) & (1<<30))
                                 ^
/datasets/git/sha1dc/ubc_check.c:337:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !((W[39]^(W[44]<<2)) & (1<<30))
                                      ^      ~
/datasets/git/sha1dc/ubc_check.c:337:20: warning: 44 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !((W[39]^(W[44]<<2)) & (1<<30))
                                        ^
/datasets/git/sha1dc/ubc_check.c:337:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !((W[39]^(W[44]<<2)) & (1<<30))
                                                    ^
/datasets/git/sha1dc/ubc_check.c:337:35: warning: 30 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !((W[39]^(W[44]<<2)) & (1<<30))
                                                       ^
/datasets/git/sha1dc/ubc_check.c:338:5: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                 )  mask &= ~DV_II_52_0_bit;
                  ^
                   {
/datasets/git/sha1dc/ubc_check.c:339:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & DV_II_53_0_bit)
                                  ^
                                   {
/datasets/git/sha1dc/ubc_check.c:341:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !((W[58]^W[61]) & (1<<29))
                              ^               ~~~~~~~
/datasets/git/sha1dc/ubc_check.c:341:13: warning: 58 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !((W[58]^W[61]) & (1<<29))
                                 ^
/datasets/git/sha1dc/ubc_check.c:341:19: warning: 61 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !((W[58]^W[61]) & (1<<29))
                                       ^
/datasets/git/sha1dc/ubc_check.c:341:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !((W[58]^W[61]) & (1<<29))
                                               ^
/datasets/git/sha1dc/ubc_check.c:341:30: warning: 29 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !((W[58]^W[61]) & (1<<29))
                                                  ^
/datasets/git/sha1dc/ubc_check.c:342:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[57]^(W[61]>>25)) & (1<<4)))
                                ^                     ~~~~~~
/datasets/git/sha1dc/ubc_check.c:342:15: warning: 57 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[57]^(W[61]>>25)) & (1<<4)))
                                   ^
/datasets/git/sha1dc/ubc_check.c:342:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[57]^(W[61]>>25)) & (1<<4)))
                                        ^      ~~
/datasets/git/sha1dc/ubc_check.c:342:22: warning: 61 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[57]^(W[61]>>25)) & (1<<4)))
                                          ^
/datasets/git/sha1dc/ubc_check.c:342:27: warning: 25 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[57]^(W[61]>>25)) & (1<<4)))
                                               ^
/datasets/git/sha1dc/ubc_check.c:342:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[57]^(W[61]>>25)) & (1<<4)))
                                                       ^
/datasets/git/sha1dc/ubc_check.c:343:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[41]^(W[45]>>25)) & (1<<3)))
                                ^                     ~~~~~~
/datasets/git/sha1dc/ubc_check.c:343:15: warning: 41 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[41]^(W[45]>>25)) & (1<<3)))
                                   ^
/datasets/git/sha1dc/ubc_check.c:343:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[41]^(W[45]>>25)) & (1<<3)))
                                        ^      ~~
/datasets/git/sha1dc/ubc_check.c:343:22: warning: 45 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[41]^(W[45]>>25)) & (1<<3)))
                                          ^
/datasets/git/sha1dc/ubc_check.c:343:27: warning: 25 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[41]^(W[45]>>25)) & (1<<3)))
                                               ^
/datasets/git/sha1dc/ubc_check.c:343:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[41]^(W[45]>>25)) & (1<<3)))
                                                       ^
/datasets/git/sha1dc/ubc_check.c:344:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[41]^(W[45]>>25)) & (1<<4)))
                                ^                     ~~~~~~
/datasets/git/sha1dc/ubc_check.c:344:15: warning: 41 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[41]^(W[45]>>25)) & (1<<4)))
                                   ^
/datasets/git/sha1dc/ubc_check.c:344:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[41]^(W[45]>>25)) & (1<<4)))
                                        ^      ~~
/datasets/git/sha1dc/ubc_check.c:344:22: warning: 45 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[41]^(W[45]>>25)) & (1<<4)))
                                          ^
/datasets/git/sha1dc/ubc_check.c:344:27: warning: 25 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[41]^(W[45]>>25)) & (1<<4)))
                                               ^
/datasets/git/sha1dc/ubc_check.c:344:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[41]^(W[45]>>25)) & (1<<4)))
                                                       ^
/datasets/git/sha1dc/ubc_check.c:345:5: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                 )  mask &= ~DV_II_53_0_bit;
                  ^
                   {
/datasets/git/sha1dc/ubc_check.c:346:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & DV_II_54_0_bit)
                                  ^
                                   {
/datasets/git/sha1dc/ubc_check.c:348:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !(!((W[58]^(W[62]>>25)) & (1<<4)))
                                ^                     ~~~~~~
/datasets/git/sha1dc/ubc_check.c:348:15: warning: 58 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !(!((W[58]^(W[62]>>25)) & (1<<4)))
                                   ^
/datasets/git/sha1dc/ubc_check.c:348:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !(!((W[58]^(W[62]>>25)) & (1<<4)))
                                        ^      ~~
/datasets/git/sha1dc/ubc_check.c:348:22: warning: 62 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !(!((W[58]^(W[62]>>25)) & (1<<4)))
                                          ^
/datasets/git/sha1dc/ubc_check.c:348:27: warning: 25 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !(!((W[58]^(W[62]>>25)) & (1<<4)))
                                               ^
/datasets/git/sha1dc/ubc_check.c:348:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !(!((W[58]^(W[62]>>25)) & (1<<4)))
                                                       ^
/datasets/git/sha1dc/ubc_check.c:349:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[42]^(W[46]>>25)) & (1<<3)))
                                ^                     ~~~~~~
/datasets/git/sha1dc/ubc_check.c:349:15: warning: 42 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[42]^(W[46]>>25)) & (1<<3)))
                                   ^
/datasets/git/sha1dc/ubc_check.c:349:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[42]^(W[46]>>25)) & (1<<3)))
                                        ^      ~~
/datasets/git/sha1dc/ubc_check.c:349:22: warning: 46 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[42]^(W[46]>>25)) & (1<<3)))
                                          ^
/datasets/git/sha1dc/ubc_check.c:349:27: warning: 25 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[42]^(W[46]>>25)) & (1<<3)))
                                               ^
/datasets/git/sha1dc/ubc_check.c:349:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[42]^(W[46]>>25)) & (1<<3)))
                                                       ^
/datasets/git/sha1dc/ubc_check.c:350:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[42]^(W[46]>>25)) & (1<<4)))
                                ^                     ~~~~~~
/datasets/git/sha1dc/ubc_check.c:350:15: warning: 42 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[42]^(W[46]>>25)) & (1<<4)))
                                   ^
/datasets/git/sha1dc/ubc_check.c:350:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[42]^(W[46]>>25)) & (1<<4)))
                                        ^      ~~
/datasets/git/sha1dc/ubc_check.c:350:22: warning: 46 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[42]^(W[46]>>25)) & (1<<4)))
                                          ^
/datasets/git/sha1dc/ubc_check.c:350:27: warning: 25 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[42]^(W[46]>>25)) & (1<<4)))
                                               ^
/datasets/git/sha1dc/ubc_check.c:350:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[42]^(W[46]>>25)) & (1<<4)))
                                                       ^
/datasets/git/sha1dc/ubc_check.c:351:5: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                 )  mask &= ~DV_II_54_0_bit;
                  ^
                   {
/datasets/git/sha1dc/ubc_check.c:352:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & DV_II_55_0_bit)
                                  ^
                                   {
/datasets/git/sha1dc/ubc_check.c:354:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !(!((W[59]^(W[63]>>25)) & (1<<4)))
                                ^                     ~~~~~~
/datasets/git/sha1dc/ubc_check.c:354:15: warning: 59 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !(!((W[59]^(W[63]>>25)) & (1<<4)))
                                   ^
/datasets/git/sha1dc/ubc_check.c:354:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !(!((W[59]^(W[63]>>25)) & (1<<4)))
                                        ^      ~~
/datasets/git/sha1dc/ubc_check.c:354:22: warning: 63 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !(!((W[59]^(W[63]>>25)) & (1<<4)))
                                          ^
/datasets/git/sha1dc/ubc_check.c:354:27: warning: 25 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !(!((W[59]^(W[63]>>25)) & (1<<4)))
                                               ^
/datasets/git/sha1dc/ubc_check.c:354:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !(!((W[59]^(W[63]>>25)) & (1<<4)))
                                                       ^
/datasets/git/sha1dc/ubc_check.c:355:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[57]^(W[59]>>25)) & (1<<4)))
                                ^                     ~~~~~~
/datasets/git/sha1dc/ubc_check.c:355:15: warning: 57 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[57]^(W[59]>>25)) & (1<<4)))
                                   ^
/datasets/git/sha1dc/ubc_check.c:355:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[57]^(W[59]>>25)) & (1<<4)))
                                        ^      ~~
/datasets/git/sha1dc/ubc_check.c:355:22: warning: 59 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[57]^(W[59]>>25)) & (1<<4)))
                                          ^
/datasets/git/sha1dc/ubc_check.c:355:27: warning: 25 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[57]^(W[59]>>25)) & (1<<4)))
                                               ^
/datasets/git/sha1dc/ubc_check.c:355:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[57]^(W[59]>>25)) & (1<<4)))
                                                       ^
/datasets/git/sha1dc/ubc_check.c:356:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[43]^(W[47]>>25)) & (1<<3)))
                                ^                     ~~~~~~
/datasets/git/sha1dc/ubc_check.c:356:15: warning: 43 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[43]^(W[47]>>25)) & (1<<3)))
                                   ^
/datasets/git/sha1dc/ubc_check.c:356:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[43]^(W[47]>>25)) & (1<<3)))
                                        ^      ~~
/datasets/git/sha1dc/ubc_check.c:356:22: warning: 47 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[43]^(W[47]>>25)) & (1<<3)))
                                          ^
/datasets/git/sha1dc/ubc_check.c:356:27: warning: 25 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[43]^(W[47]>>25)) & (1<<3)))
                                               ^
/datasets/git/sha1dc/ubc_check.c:356:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[43]^(W[47]>>25)) & (1<<3)))
                                                       ^
/datasets/git/sha1dc/ubc_check.c:357:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[43]^(W[47]>>25)) & (1<<4)))
                                ^                     ~~~~~~
/datasets/git/sha1dc/ubc_check.c:357:15: warning: 43 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[43]^(W[47]>>25)) & (1<<4)))
                                   ^
/datasets/git/sha1dc/ubc_check.c:357:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[43]^(W[47]>>25)) & (1<<4)))
                                        ^      ~~
/datasets/git/sha1dc/ubc_check.c:357:22: warning: 47 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[43]^(W[47]>>25)) & (1<<4)))
                                          ^
/datasets/git/sha1dc/ubc_check.c:357:27: warning: 25 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[43]^(W[47]>>25)) & (1<<4)))
                                               ^
/datasets/git/sha1dc/ubc_check.c:357:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[43]^(W[47]>>25)) & (1<<4)))
                                                       ^
/datasets/git/sha1dc/ubc_check.c:358:5: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                 )  mask &= ~DV_II_55_0_bit;
                  ^
                   {
/datasets/git/sha1dc/ubc_check.c:359:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mask & DV_II_56_0_bit)
                                  ^
                                   {
/datasets/git/sha1dc/ubc_check.c:361:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !(!((W[60]^(W[64]>>25)) & (1<<4)))
                                ^                     ~~~~~~
/datasets/git/sha1dc/ubc_check.c:361:15: warning: 60 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !(!((W[60]^(W[64]>>25)) & (1<<4)))
                                   ^
/datasets/git/sha1dc/ubc_check.c:361:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !(!((W[60]^(W[64]>>25)) & (1<<4)))
                                        ^      ~~
/datasets/git/sha1dc/ubc_check.c:361:22: warning: 64 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !(!((W[60]^(W[64]>>25)) & (1<<4)))
                                          ^
/datasets/git/sha1dc/ubc_check.c:361:27: warning: 25 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            !(!((W[60]^(W[64]>>25)) & (1<<4)))
                                               ^
/datasets/git/sha1dc/ubc_check.c:361:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !(!((W[60]^(W[64]>>25)) & (1<<4)))
                                                       ^
/datasets/git/sha1dc/ubc_check.c:362:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[44]^(W[48]>>25)) & (1<<3)))
                                ^                     ~~~~~~
/datasets/git/sha1dc/ubc_check.c:362:15: warning: 44 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[44]^(W[48]>>25)) & (1<<3)))
                                   ^
/datasets/git/sha1dc/ubc_check.c:362:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[44]^(W[48]>>25)) & (1<<3)))
                                        ^      ~~
/datasets/git/sha1dc/ubc_check.c:362:22: warning: 48 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[44]^(W[48]>>25)) & (1<<3)))
                                          ^
/datasets/git/sha1dc/ubc_check.c:362:27: warning: 25 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[44]^(W[48]>>25)) & (1<<3)))
                                               ^
/datasets/git/sha1dc/ubc_check.c:362:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[44]^(W[48]>>25)) & (1<<3)))
                                                       ^
/datasets/git/sha1dc/ubc_check.c:363:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[44]^(W[48]>>25)) & (1<<4)))
                                ^                     ~~~~~~
/datasets/git/sha1dc/ubc_check.c:363:15: warning: 44 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[44]^(W[48]>>25)) & (1<<4)))
                                   ^
/datasets/git/sha1dc/ubc_check.c:363:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[44]^(W[48]>>25)) & (1<<4)))
                                        ^      ~~
/datasets/git/sha1dc/ubc_check.c:363:22: warning: 48 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[44]^(W[48]>>25)) & (1<<4)))
                                          ^
/datasets/git/sha1dc/ubc_check.c:363:27: warning: 25 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                         || !(!((W[44]^(W[48]>>25)) & (1<<4)))
                                               ^
/datasets/git/sha1dc/ubc_check.c:363:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                         || !(!((W[44]^(W[48]>>25)) & (1<<4)))
                                                       ^
/datasets/git/sha1dc/ubc_check.c:364:5: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                 )  mask &= ~DV_II_56_0_bit;
                  ^
                   {
sha1dc_git.c:17:41: warning: 20 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
void git_SHA1DCFinal(unsigned char hash[20], SHA1_CTX *ctx)
                                        ^
/datasets/git/sha1dc_git.c:19:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!SHA1DCFinal(hash, ctx))
                                    ^
                                     {
/datasets/git/sha1dc_git.c:32:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (len > INT_MAX) {
        ^
sha256/block/sha256.c:13:18: warning: 0x6a09e667ul is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        ctx->state[0] = 0x6a09e667ul;
                        ^
/datasets/git/sha256/block/sha256.c:13:18: warning: integer literal has suffix 'ul', which is not uppercase [hicpp-uppercase-literal-suffix,readability-uppercase-literal-suffix]
        ctx->state[0] = 0x6a09e667ul;
                        ^         ~~
                                  UL
/datasets/git/sha256/block/sha256.c:14:18: warning: 0xbb67ae85ul is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        ctx->state[1] = 0xbb67ae85ul;
                        ^
/datasets/git/sha256/block/sha256.c:14:18: warning: integer literal has suffix 'ul', which is not uppercase [hicpp-uppercase-literal-suffix,readability-uppercase-literal-suffix]
        ctx->state[1] = 0xbb67ae85ul;
                        ^         ~~
                                  UL
/datasets/git/sha256/block/sha256.c:15:18: warning: 0x3c6ef372ul is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        ctx->state[2] = 0x3c6ef372ul;
                        ^
/datasets/git/sha256/block/sha256.c:15:18: warning: integer literal has suffix 'ul', which is not uppercase [hicpp-uppercase-literal-suffix,readability-uppercase-literal-suffix]
        ctx->state[2] = 0x3c6ef372ul;
                        ^         ~~
                                  UL
/datasets/git/sha256/block/sha256.c:16:18: warning: 0xa54ff53aul is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        ctx->state[3] = 0xa54ff53aul;
                        ^
/datasets/git/sha256/block/sha256.c:16:18: warning: integer literal has suffix 'ul', which is not uppercase [hicpp-uppercase-literal-suffix,readability-uppercase-literal-suffix]
        ctx->state[3] = 0xa54ff53aul;
                        ^         ~~
                                  UL
/datasets/git/sha256/block/sha256.c:17:18: warning: 0x510e527ful is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        ctx->state[4] = 0x510e527ful;
                        ^
/datasets/git/sha256/block/sha256.c:17:18: warning: integer literal has suffix 'ul', which is not uppercase [hicpp-uppercase-literal-suffix,readability-uppercase-literal-suffix]
        ctx->state[4] = 0x510e527ful;
                        ^         ~~
                                  UL
/datasets/git/sha256/block/sha256.c:18:13: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        ctx->state[5] = 0x9b05688cul;
                   ^
/datasets/git/sha256/block/sha256.c:18:18: warning: 0x9b05688cul is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        ctx->state[5] = 0x9b05688cul;
                        ^
/datasets/git/sha256/block/sha256.c:18:18: warning: integer literal has suffix 'ul', which is not uppercase [hicpp-uppercase-literal-suffix,readability-uppercase-literal-suffix]
        ctx->state[5] = 0x9b05688cul;
                        ^         ~~
                                  UL
/datasets/git/sha256/block/sha256.c:19:13: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        ctx->state[6] = 0x1f83d9abul;
                   ^
/datasets/git/sha256/block/sha256.c:19:18: warning: 0x1f83d9abul is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        ctx->state[6] = 0x1f83d9abul;
                        ^
/datasets/git/sha256/block/sha256.c:19:18: warning: integer literal has suffix 'ul', which is not uppercase [hicpp-uppercase-literal-suffix,readability-uppercase-literal-suffix]
        ctx->state[6] = 0x1f83d9abul;
                        ^         ~~
                                  UL
/datasets/git/sha256/block/sha256.c:20:13: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        ctx->state[7] = 0x5be0cd19ul;
                   ^
/datasets/git/sha256/block/sha256.c:20:18: warning: 0x5be0cd19ul is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        ctx->state[7] = 0x5be0cd19ul;
                        ^
/datasets/git/sha256/block/sha256.c:20:18: warning: integer literal has suffix 'ul', which is not uppercase [hicpp-uppercase-literal-suffix,readability-uppercase-literal-suffix]
        ctx->state[7] = 0x5be0cd19ul;
                        ^         ~~
                                  UL
/datasets/git/sha256/block/sha256.c:23:37: warning: parameter name 'x' is too short, expected at least 3 characters [readability-identifier-length]
static inline uint32_t ror(uint32_t x, unsigned n)
                                    ^
/datasets/git/sha256/block/sha256.c:25:27: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        return (x >> n) | (x << (32 - n));
                                 ^
/datasets/git/sha256/block/sha256.c:28:36: warning: parameter name 'x' is too short, expected at least 3 characters [readability-identifier-length]
static inline uint32_t ch(uint32_t x, uint32_t y, uint32_t z)
                                   ^
/datasets/git/sha256/block/sha256.c:28:48: warning: parameter name 'y' is too short, expected at least 3 characters [readability-identifier-length]
static inline uint32_t ch(uint32_t x, uint32_t y, uint32_t z)
                                               ^
/datasets/git/sha256/block/sha256.c:28:60: warning: parameter name 'z' is too short, expected at least 3 characters [readability-identifier-length]
static inline uint32_t ch(uint32_t x, uint32_t y, uint32_t z)
                                                           ^
/datasets/git/sha256/block/sha256.c:33:37: warning: parameter name 'x' is too short, expected at least 3 characters [readability-identifier-length]
static inline uint32_t maj(uint32_t x, uint32_t y, uint32_t z)
                                    ^
/datasets/git/sha256/block/sha256.c:33:49: warning: parameter name 'y' is too short, expected at least 3 characters [readability-identifier-length]
static inline uint32_t maj(uint32_t x, uint32_t y, uint32_t z)
                                                ^
/datasets/git/sha256/block/sha256.c:33:61: warning: parameter name 'z' is too short, expected at least 3 characters [readability-identifier-length]
static inline uint32_t maj(uint32_t x, uint32_t y, uint32_t z)
                                                            ^
/datasets/git/sha256/block/sha256.c:38:40: warning: parameter name 'x' is too short, expected at least 3 characters [readability-identifier-length]
static inline uint32_t sigma0(uint32_t x)
                                       ^
/datasets/git/sha256/block/sha256.c:40:28: warning: 13 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        return ror(x, 2) ^ ror(x, 13) ^ ror(x, 22);
                                  ^
/datasets/git/sha256/block/sha256.c:40:41: warning: 22 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        return ror(x, 2) ^ ror(x, 13) ^ ror(x, 22);
                                               ^
/datasets/git/sha256/block/sha256.c:43:40: warning: parameter name 'x' is too short, expected at least 3 characters [readability-identifier-length]
static inline uint32_t sigma1(uint32_t x)
                                       ^
/datasets/git/sha256/block/sha256.c:45:16: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        return ror(x, 6) ^ ror(x, 11) ^ ror(x, 25);
                      ^
/datasets/git/sha256/block/sha256.c:45:28: warning: 11 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        return ror(x, 6) ^ ror(x, 11) ^ ror(x, 25);
                                  ^
/datasets/git/sha256/block/sha256.c:45:41: warning: 25 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        return ror(x, 6) ^ ror(x, 11) ^ ror(x, 25);
                                               ^
/datasets/git/sha256/block/sha256.c:48:40: warning: parameter name 'x' is too short, expected at least 3 characters [readability-identifier-length]
static inline uint32_t gamma0(uint32_t x)
                                       ^
/datasets/git/sha256/block/sha256.c:50:16: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        return ror(x, 7) ^ ror(x, 18) ^ (x >> 3);
                      ^
/datasets/git/sha256/block/sha256.c:50:28: warning: 18 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        return ror(x, 7) ^ ror(x, 18) ^ (x >> 3);
                                  ^
/datasets/git/sha256/block/sha256.c:50:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return ror(x, 7) ^ ror(x, 18) ^ (x >> 3);
                                         ^    ~
/datasets/git/sha256/block/sha256.c:53:40: warning: parameter name 'x' is too short, expected at least 3 characters [readability-identifier-length]
static inline uint32_t gamma1(uint32_t x)
                                       ^
/datasets/git/sha256/block/sha256.c:55:16: warning: 17 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        return ror(x, 17) ^ ror(x, 19) ^ (x >> 10);
                      ^
/datasets/git/sha256/block/sha256.c:55:29: warning: 19 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        return ror(x, 17) ^ ror(x, 19) ^ (x >> 10);
                                   ^
/datasets/git/sha256/block/sha256.c:55:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return ror(x, 17) ^ ror(x, 19) ^ (x >> 10);
                                          ^    ~~
/datasets/git/sha256/block/sha256.c:55:41: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        return ror(x, 17) ^ ror(x, 19) ^ (x >> 10);
                                               ^
/datasets/git/sha256/block/sha256.c:61:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        uint32_t S[8], W[64], t0, t1;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sha256/block/sha256.c:61:11: warning: variable name 'S' is too short, expected at least 3 characters [readability-identifier-length]
        uint32_t S[8], W[64], t0, t1;
                 ^
/datasets/git/sha256/block/sha256.c:61:13: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        uint32_t S[8], W[64], t0, t1;
                   ^
/datasets/git/sha256/block/sha256.c:61:17: warning: variable name 'W' is too short, expected at least 3 characters [readability-identifier-length]
        uint32_t S[8], W[64], t0, t1;
                       ^
/datasets/git/sha256/block/sha256.c:61:19: warning: 64 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        uint32_t S[8], W[64], t0, t1;
                         ^
/datasets/git/sha256/block/sha256.c:61:24: warning: variable 't0' is not initialized [cppcoreguidelines-init-variables]
        uint32_t S[8], W[64], t0, t1;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sha256/block/sha256.c:61:24: warning: variable name 't0' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sha256/block/sha256.c:61:28: warning: variable 't1' is not initialized [cppcoreguidelines-init-variables]
        uint32_t S[8], W[64], t0, t1;
                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sha256/block/sha256.c:61:28: warning: variable name 't1' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sha256/block/sha256.c:62:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/sha256/block/sha256.c:62:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sha256/block/sha256.c:65:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < 8; i++)
        ^
/datasets/git/sha256/block/sha256.c:65:18: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        for (i = 0; i < 8; i++)
                        ^
/datasets/git/sha256/block/sha256.c:65:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < 8; i++)
                               ^
                                {
/datasets/git/sha256/block/sha256.c:69:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < 16; i++, buf += sizeof(uint32_t))
        ^
/datasets/git/sha256/block/sha256.c:69:18: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        for (i = 0; i < 16; i++, buf += sizeof(uint32_t))
                        ^
/datasets/git/sha256/block/sha256.c:69:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < 16; i++, buf += sizeof(uint32_t))
                                                         ^
                                                          {
/datasets/git/sha256/block/sha256.c:73:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 16; i < 64; i++)
        ^
/datasets/git/sha256/block/sha256.c:73:11: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        for (i = 16; i < 64; i++)
                 ^
/datasets/git/sha256/block/sha256.c:73:19: warning: 64 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        for (i = 16; i < 64; i++)
                         ^
/datasets/git/sha256/block/sha256.c:73:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 16; i < 64; i++)
                                 ^
                                  {
/datasets/git/sha256/block/sha256.c:74:35: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                W[i] = gamma1(W[i - 2]) + W[i - 7] + gamma0(W[i - 15]) + W[i - 16];
                                                ^
/datasets/git/sha256/block/sha256.c:74:53: warning: 15 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                W[i] = gamma1(W[i - 2]) + W[i - 7] + gamma0(W[i - 15]) + W[i - 16];
                                                                  ^
/datasets/git/sha256/block/sha256.c:74:66: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                W[i] = gamma1(W[i - 2]) + W[i - 7] + gamma0(W[i - 15]) + W[i - 16];
                                                                               ^
/datasets/git/sha256/block/sha256.c:77:7: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        t0 = h + sigma1(e) + ch(e, f, g) + ki + W[i];   \
             ^
             ()
/datasets/git/sha256/block/sha256.c:77:37: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        t0 = h + sigma1(e) + ch(e, f, g) + ki + W[i];   \
                                           ^
                                           ( )
/datasets/git/sha256/block/sha256.c:79:2: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        d += t0;                                        \
        ^
        ()
/datasets/git/sha256/block/sha256.c:80:2: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        h  = t0 + t1;
        ^
        ()
/datasets/git/sha256/block/sha256.c:147:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < 8; i++)
        ^
/datasets/git/sha256/block/sha256.c:147:18: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        for (i = 0; i < 8; i++)
                        ^
/datasets/git/sha256/block/sha256.c:147:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < 8; i++)
                               ^
                                {
/datasets/git/sha256/block/sha256.c:153:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned int len_buf = ctx->size & 63;
                               ^           ~~
/datasets/git/sha256/block/sha256.c:153:37: warning: 63 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        unsigned int len_buf = ctx->size & 63;
                                           ^
/datasets/git/sha256/block/sha256.c:159:23: warning: 64 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                unsigned int left = 64 - len_buf;
                                    ^
/datasets/git/sha256/block/sha256.c:160:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (len < left)
                               ^
                                {
/datasets/git/sha256/block/sha256.c:162:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(len_buf + ctx->buf, data, left);
                ^~~~~~
/datasets/git/sha256/block/sha256.c:162:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(len_buf + ctx->buf, data, left);
                ^~~~~~
/datasets/git/sha256/block/sha256.c:163:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                len_buf = (len_buf + left) & 63;
                          ^                  ~~
/datasets/git/sha256/block/sha256.c:163:32: warning: 63 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                len_buf = (len_buf + left) & 63;
                                             ^
/datasets/git/sha256/block/sha256.c:166:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (len_buf)
                            ^
                             {
/datasets/git/sha256/block/sha256.c:170:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (len >= 64) {
        ^
/datasets/git/sha256/block/sha256.c:170:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (len >= 64) {
               ^
/datasets/git/sha256/block/sha256.c:170:16: warning: 64 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        while (len >= 64) {
                      ^
/datasets/git/sha256/block/sha256.c:172:32: warning: 64 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                data = ((const char *)data + 64);
                                             ^
/datasets/git/sha256/block/sha256.c:173:10: warning: 64 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                len -= 64;
                       ^
/datasets/git/sha256/block/sha256.c:175:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len)
                ^
                 {
/datasets/git/sha256/block/sha256.c:176:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(ctx->buf, data, len);
                ^~~~~~
/datasets/git/sha256/block/sha256.c:176:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(ctx->buf, data, len);
                ^~~~~~
/datasets/git/sha256/block/sha256.c:183:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/sha256/block/sha256.c:183:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sha256/block/sha256.c:186:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        padlen[0] = htonl((uint32_t)(ctx->size >> 29));
                                     ^
/datasets/git/./compat/bswap.h:91:26: note: expanded from macro 'htonl'
#define htonl(x) bswap32(x)
                         ^
/datasets/git/sha256/block/sha256.c:187:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        padlen[1] = htonl((uint32_t)(ctx->size << 3));
                                     ^
/datasets/git/./compat/bswap.h:91:26: note: expanded from macro 'htonl'
#define htonl(x) bswap32(x)
                         ^
/datasets/git/sha256/block/sha256.c:189:6: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        i = ctx->size & 63;
            ^
/datasets/git/sha256/block/sha256.c:189:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        i = ctx->size & 63;
            ^           ~~
/datasets/git/sha256/block/sha256.c:189:18: warning: 63 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        i = ctx->size & 63;
                        ^
/datasets/git/sha256/block/sha256.c:190:35: warning: 63 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        blk_SHA256_Update(ctx, pad, 1 + (63 & (55 - i)));
                                         ^
/datasets/git/sha256/block/sha256.c:190:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        blk_SHA256_Update(ctx, pad, 1 + (63 & (55 - i)));
                                         ^~
/datasets/git/sha256/block/sha256.c:190:41: warning: 55 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        blk_SHA256_Update(ctx, pad, 1 + (63 & (55 - i)));
                                               ^
/datasets/git/sha256/block/sha256.c:191:33: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        blk_SHA256_Update(ctx, padlen, 8);
                                       ^
/datasets/git/sha256/block/sha256.c:194:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < 8; i++, digest += sizeof(uint32_t))
        ^
/datasets/git/sha256/block/sha256.c:194:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < 8; i++, digest += sizeof(uint32_t))
                    ^
/datasets/git/sha256/block/sha256.c:194:18: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        for (i = 0; i < 8; i++, digest += sizeof(uint32_t))
                        ^
/datasets/git/sha256/block/sha256.c:194:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < 8; i++, digest += sizeof(uint32_t))
                                                           ^
                                                            {
/datasets/git/shallow.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "repository.h"
^        ~~~~~~~~~~~~~~
         "commit-reach.h"
/datasets/git/shallow.c:19:52: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void set_alternate_shallow_file(struct repository *r, const char *path, int override)
                                                   ^
/datasets/git/shallow.c:21:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (r->parsed_objects->is_shallow != -1)
                                                ^
                                                 {
/datasets/git/shallow.c:23:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (r->parsed_objects->alternate_shallow_file && !override)
                                                                   ^
                                                                    {
/datasets/git/shallow.c:29:41: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int register_shallow(struct repository *r, const struct object_id *oid)
                                        ^
/datasets/git/shallow.c:37:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (commit && commit->object.parsed)
                                            ^
                                             {
/datasets/git/shallow.c:45:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pos < 0)
                    ^
                     {
/datasets/git/shallow.c:47:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pos + 1 < the_repository->parsed_objects->grafts_nr)
                                                                ^
                                                                 {
/datasets/git/shallow.c:48:3: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                MOVE_ARRAY(the_repository->parsed_objects->grafts + pos,
                ^
/datasets/git/./git-compat-util.h:1102:63: note: expanded from macro 'MOVE_ARRAY'
#define MOVE_ARRAY(dst, src, n) move_array((dst), (src), (n), sizeof(*(dst)) + \
                                                              ^
/datasets/git/shallow.c:55:46: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int is_repository_shallow(struct repository *r)
                                             ^
/datasets/git/shallow.c:57:8: warning: variable 'fp' is not initialized [cppcoreguidelines-init-variables]
        FILE *fp;
              ^
                 = NULL
/datasets/git/shallow.c:57:8: warning: variable name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/shallow.c:58:11: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        char buf[1024];
                 ^
/datasets/git/shallow.c:61:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (r->parsed_objects->is_shallow >= 0)
                                               ^
                                                {
/datasets/git/shallow.c:64:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!path)
                  ^
                   {
/datasets/git/shallow.c:71:17: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if (!*path || (fp = fopen(path, "r")) == NULL) {
                       ^
/datasets/git/shallow.c:71:17: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/shallow.c:71:17: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/shallow.c:57:2: note: inferred assignment of ID-dependent value from ID-dependent variable path [altera-id-dependent-backward-branch]
        FILE *fp;
        ^
/datasets/git/shallow.c:79:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (fgets(buf, sizeof(buf), fp)) {
        ^
/datasets/git/shallow.c:79:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'fp' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (fgets(buf, sizeof(buf), fp)) {
               ^
/datasets/git/shallow.c:81:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (get_oid_hex(buf, &oid))
                                           ^
                                            {
/datasets/git/shallow.c:85:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(fp);
        ^~~~~~~~~~
/datasets/git/shallow.c:85:2: note: cast the expression to void to silence this warning
/datasets/git/shallow.c:89:57: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void reset_repository_shallow(struct repository *r)
                                                        ^
/datasets/git/shallow.c:96:44: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int commit_shallow_file(struct repository *r, struct shallow_lock *lk)
                                           ^
/datasets/git/shallow.c:96:68: warning: parameter name 'lk' is too short, expected at least 3 characters [readability-identifier-length]
int commit_shallow_file(struct repository *r, struct shallow_lock *lk)
                                                                   ^
/datasets/git/shallow.c:110:47: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void rollback_shallow_file(struct repository *r, struct shallow_lock *lk)
                                              ^
/datasets/git/shallow.c:110:71: warning: parameter name 'lk' is too short, expected at least 3 characters [readability-identifier-length]
void rollback_shallow_file(struct repository *r, struct shallow_lock *lk)
                                                                      ^
/datasets/git/shallow.c:120:1: warning: backward branch (for loop) is ID-dependent due to member reference to 'slab_size' and may cause performance degradation [altera-id-dependent-backward-branch]
define_commit_slab(commit_depth, int *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:48:15: note: expanded from macro 'implement_commit_slab'
                for (j = 0; j < s->slab_size; j++)                      \
                            ^
/datasets/git/shallow.c:120:1: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
define_commit_slab(commit_depth, int *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:68:27: note: expanded from macro 'implement_commit_slab'
                for (i = s->slab_count; i <= nth_slab; i++)             \
                                        ^
/datasets/git/shallow.c:120:1: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
define_commit_slab(commit_depth, int *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:35:2: note: expanded from macro 'implement_commit_slab'
        for (i = 0; i < s->slab_count; i++)                             \
        ^
/datasets/git/shallow.c:120:1: warning: result of multiplication in type 'unsigned int' is used as a pointer offset after an implicit widening conversion to type 'size_t' [bugprone-implicit-widening-of-multiplication-result]
define_commit_slab(commit_depth, int *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:49:13: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                 ^
/datasets/git/shallow.c:120:1: note: make conversion explicit to silence this warning
define_commit_slab(commit_depth, int *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:49:24: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                            ^~~~~~~~~~~~~
/datasets/git/shallow.c:120:1: note: perform multiplication in a wider type
define_commit_slab(commit_depth, int *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:49:24: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                            ^
/datasets/git/shallow.c:120:1: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(commit_depth, int *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:55:30: note: expanded from macro 'implement_commit_slab'
                                                  const struct commit *c, \
                                                                       ^
/datasets/git/shallow.c:120:1: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(commit_depth, int *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:14:61: note: expanded from macro 'implement_commit_slab'
scope void init_ ##slabname## _with_stride(struct slabname *s,          \
                                                            ^
/datasets/git/shallow.c:120:1: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(commit_depth, int *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:34:15: note: expanded from macro 'implement_commit_slab'
        unsigned int i;                                                 \
                     ^
/datasets/git/shallow.c:120:1: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(commit_depth, int *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:45:16: note: expanded from macro 'implement_commit_slab'
                unsigned int j;                                         \
                             ^
/datasets/git/shallow.c:120:1: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
define_commit_slab(commit_depth, int *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:58:2: note: expanded from macro 'implement_commit_slab'
        unsigned int nth_slab, nth_slot;                                \
        ^
/datasets/git/shallow.c:120:1: note: inferred assignment of ID-dependent value from ID-dependent member slab_count [altera-id-dependent-backward-branch]
define_commit_slab(commit_depth, int *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:64:3: note: expanded from macro 'implement_commit_slab'
                unsigned int i;                                         \
                ^
/datasets/git/shallow.c:120:20: warning: accessing fields in struct 'commit_depth' is inefficient due to padding; only needs 20 bytes but is using 24 bytes [altera-struct-pack-align]
define_commit_slab(commit_depth, int *);
                   ^
/datasets/git/shallow.c:120:20: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'commit_depth'
/datasets/git/shallow.c:120:20: warning: accessing fields in struct 'commit_depth' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
define_commit_slab(commit_depth, int *);
                   ^
/datasets/git/shallow.c:120:20: note: use "__attribute__((aligned(32)))" to align struct 'commit_depth' to 32 bytes
/datasets/git/shallow.c:123:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(*ptr);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/shallow.c:125:21: warning: function 'get_shallow_commits' has cognitive complexity of 36 (threshold 25) [readability-function-cognitive-complexity]
struct commit_list *get_shallow_commits(struct object_array *heads, int depth,
                    ^
/datasets/git/shallow.c:136:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (commit || i < heads->nr || stack.nr) {
        ^
/datasets/git/shallow.c:136:33: note: +1
        while (commit || i < heads->nr || stack.nr) {
                                       ^
/datasets/git/shallow.c:138:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!commit) {
                ^
/datasets/git/shallow.c:139:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (i < heads->nr) {
                        ^
/datasets/git/shallow.c:145:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!commit || commit->object.type != OBJ_COMMIT) {
                                ^
/datasets/git/shallow.c:145:17: note: +1
                                if (!commit || commit->object.type != OBJ_COMMIT) {
                                            ^
/datasets/git/shallow.c:150:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!*depth_slot)
                                ^
/datasets/git/shallow.c:154:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/shallow.c:162:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((depth != INFINITE_DEPTH && cur_depth >= depth) ||
                ^
/datasets/git/shallow.c:162:55: note: +1
                if ((depth != INFINITE_DEPTH && cur_depth >= depth) ||
                                                                    ^
/datasets/git/shallow.c:162:32: note: +1
                if ((depth != INFINITE_DEPTH && cur_depth >= depth) ||
                                             ^
/datasets/git/shallow.c:164:83: note: +1
                     (graft = lookup_commit_graft(the_repository, &commit->object.oid)) != NULL &&
                                                                                                ^
/datasets/git/shallow.c:172:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (p = commit->parents, commit = NULL; p; p = p->next) {
                ^
/datasets/git/shallow.c:174:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!*depth_slot) {
                        ^
/datasets/git/shallow.c:177:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/shallow.c:178:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (cur_depth >= **depth_slot)
                                ^
/datasets/git/shallow.c:182:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (p->next)
                        ^
/datasets/git/shallow.c:185:4: note: +1, nesting level increased to 3
                        else {
                        ^
/datasets/git/shallow.c:125:69: warning: 3 adjacent parameters of 'get_shallow_commits' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
struct commit_list *get_shallow_commits(struct object_array *heads, int depth,
                                                                    ^~~~~~~~~~
/datasets/git/shallow.c:125:73: note: the first parameter in the range is 'depth'
struct commit_list *get_shallow_commits(struct object_array *heads, int depth,
                                                                        ^~~~~
/datasets/git/shallow.c:126:25: note: the last parameter in the range is 'not_shallow_flag'
                int shallow_flag, int not_shallow_flag)
                                      ^~~~~~~~~~~~~~~~
/datasets/git/shallow.c:128:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i = 0, cur_depth = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/shallow.c:131:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct commit *commit = NULL;
        ^
/datasets/git/shallow.c:128:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0, cur_depth = 0;
            ^
/datasets/git/shallow.c:132:23: warning: variable 'graft' is not initialized [cppcoreguidelines-init-variables]
        struct commit_graft *graft;
                             ^
                                   = NULL
/datasets/git/shallow.c:136:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'commit' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (commit || i < heads->nr || stack.nr) {
               ^
/datasets/git/shallow.c:137:23: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                struct commit_list *p;
                                    ^
                                      = NULL
/datasets/git/shallow.c:137:23: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/shallow.c:140:11: warning: variable 'depth_slot' is not initialized [cppcoreguidelines-init-variables]
                                int **depth_slot;
                                      ^
                                                 = NULL
/datasets/git/shallow.c:150:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!*depth_slot)
                                                 ^
                                                  {
/datasets/git/shallow.c:164:9: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                     (graft = lookup_commit_graft(the_repository, &commit->object.oid)) != NULL &&
                      ^
/datasets/git/shallow.c:164:9: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/shallow.c:164:9: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/shallow.c:167:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        commit->object.flags |= shallow_flag;
                        ^                       ~~~~~~~~~~~~
/datasets/git/shallow.c:171:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                commit->object.flags |= not_shallow_flag;
                ^                       ~~~~~~~~~~~~~~~~
/datasets/git/shallow.c:137:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                struct commit_list *p;
                ^
/datasets/git/shallow.c:172:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (p = commit->parents, commit = NULL; p; p = p->next) {
                ^
/datasets/git/shallow.c:172:44: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (p = commit->parents, commit = NULL; p; p = p->next) {
                                                         ^
/datasets/git/shallow.c:178:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (cur_depth >= **depth_slot)
                                                              ^
                                                               {
/datasets/git/shallow.c:182:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (p->next)
                                    ^
                                     {
/datasets/git/shallow.c:207:57: warning: parameter name 'ac' is too short, expected at least 3 characters [readability-identifier-length]
struct commit_list *get_shallow_commits_by_rev_list(int ac, const char **av,
                                                        ^
/datasets/git/shallow.c:207:74: warning: parameter name 'av' is too short, expected at least 3 characters [readability-identifier-length]
struct commit_list *get_shallow_commits_by_rev_list(int ac, const char **av,
                                                                         ^
/datasets/git/shallow.c:211:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit_list *result = NULL, *p;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/shallow.c:211:38: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *result = NULL, *p;
                                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/shallow.c:211:38: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/shallow.c:214:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int both_flags = shallow_flag | not_shallow_flag;
                         ^~~~~~~~~~~~
/datasets/git/shallow.c:228:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prepare_revision_walk(&revs))
                                         ^
                                          {
/datasets/git/shallow.c:232:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!not_shallow_list)
                              ^
                               {
/datasets/git/shallow.c:236:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = not_shallow_list; p; p = p->next)
        ^
/datasets/git/shallow.c:211:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct commit_list *result = NULL, *p;
        ^
/datasets/git/shallow.c:236:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = not_shallow_list; p; p = p->next)
                                   ^
/datasets/git/shallow.c:236:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (p = not_shallow_list; p; p = p->next)
                                                  ^
                                                   {
/datasets/git/shallow.c:237:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                p->item->object.flags |= not_shallow_flag;
                ^                        ~~~~~~~~~~~~~~~~
/datasets/git/shallow.c:246:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = not_shallow_list; p; p = p->next) {
                                   ^
/datasets/git/shallow.c:211:2: note: inferred assignment of ID-dependent value from ID-dependent 
        struct commit_list *result = NULL, *p;
        ^
/datasets/git/shallow.c:247:18: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                struct commit *c = p->item;
                               ^
/datasets/git/shallow.c:248:23: warning: variable 'parent' is not initialized [cppcoreguidelines-init-variables]
                struct commit_list *parent;
                                    ^
                                           = NULL
/datasets/git/shallow.c:250:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (parse_commit(c))
                                    ^
                                     {
/datasets/git/shallow.c:254:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (parent = c->parents; parent; parent = parent->next)
                ^
/datasets/git/shallow.c:254:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'parent' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (parent = c->parents; parent; parent = parent->next)
                                          ^
/datasets/git/shallow.c:254:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (parent = c->parents; parent; parent = parent->next)
                                                                        ^
                                                                         {
/datasets/git/shallow.c:255:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!(parent->item->object.flags & not_shallow_flag)) {
                              ^                            ~~~~~~~~~~~~~~~~
/datasets/git/shallow.c:256:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                c->object.flags |= shallow_flag;
                                ^                  ~~~~~~~~~~~~
/datasets/git/shallow.c:267:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = result; p; p = p->next) {
        ^
/datasets/git/shallow.c:267:19: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = result; p; p = p->next) {
                         ^
/datasets/git/shallow.c:268:18: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                struct object *o = &p->item->object;
                               ^
/datasets/git/shallow.c:269:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((o->flags & both_flags) == both_flags)
                     ^          ~~~~~~~~~~
/datasets/git/shallow.c:269:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((o->flags & both_flags) == both_flags)
                                                          ^
                                                           {
/datasets/git/shallow.c:270:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        o->flags &= ~not_shallow_flag;
                        ^           ~~~~~~~~~~~~~~~~~
/datasets/git/shallow.c:270:16: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                        o->flags &= ~not_shallow_flag;
                                    ^~~~~~~~~~~~~~~~~
/datasets/git/shallow.c:276:62: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void check_shallow_file_for_update(struct repository *r)
                                                             ^
/datasets/git/shallow.c:278:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (r->parsed_objects->is_shallow == -1)
                                                ^
                                                 {
/datasets/git/shallow.c:282:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                 git_path_shallow(r)))
                                                      ^
                                                       {
/datasets/git/shallow.c:286:1: warning: replace macro with enum [modernize-macro-to-enum]
#define SEEN_ONLY 1
^~~~~~~~
                  =,
/datasets/git/shallow.c:286:9: warning: macro 'SEEN_ONLY' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define SEEN_ONLY 1
        ^
/datasets/git/shallow.c:287:9: warning: macro 'VERBOSE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define VERBOSE   2
        ^
/datasets/git/shallow.c:288:9: warning: macro 'QUICK' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define QUICK 4
        ^
/datasets/git/shallow.c:290:8: warning: accessing fields in struct 'write_shallow_data' is inefficient due to padding; only needs 20 bytes but is using 24 bytes [altera-struct-pack-align]
struct write_shallow_data {
       ^
/datasets/git/shallow.c:290:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'write_shallow_data'
/datasets/git/shallow.c:290:8: warning: accessing fields in struct 'write_shallow_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct write_shallow_data {
       ^
/datasets/git/shallow.c:290:8: note: use "__attribute__((aligned(32)))" to align struct 'write_shallow_data' to 32 bytes
/datasets/git/shallow.c:301:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (graft->nr_parent != -1)
                                   ^
                                    {
/datasets/git/shallow.c:303:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (data->flags & QUICK) {
            ^
/datasets/git/shallow.c:304:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!has_object_file(&graft->oid))
                                                  ^
                                                   {
/datasets/git/shallow.c:306:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        } else if (data->flags & SEEN_ONLY) {
                   ^
/datasets/git/shallow.c:307:18: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                struct commit *c = lookup_commit(the_repository, &graft->oid);
                               ^
/datasets/git/shallow.c:308:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!c || !(c->object.flags & SEEN)) {
                                              ^
/datasets/git/./revision.h:27:16: note: expanded from macro 'SEEN'
#define SEEN            (1u<<0)
                         ^   ~
/datasets/git/shallow.c:309:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (data->flags & VERBOSE)
                            ^
/datasets/git/shallow.c:309:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (data->flags & VERBOSE)
                                                  ^
                                                   {
/datasets/git/shallow.c:316:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (data->use_pack_protocol)
                                    ^
                                     {
/datasets/git/shallow.c:330:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/shallow.c:330:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/shallow.c:336:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!extra)
                   ^
                    {
/datasets/git/shallow.c:338:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < extra->nr; i++) {
        ^
/datasets/git/shallow.c:354:19: warning: variable 'temp' is not initialized [cppcoreguidelines-init-variables]
        struct tempfile *temp;
                         ^
                              = NULL
/datasets/git/shallow.c:355:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/shallow.c:361:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    close_tempfile_gently(temp) < 0)
                                                    ^
                                                     {
/datasets/git/shallow.c:378:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/shallow.c:379:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/shallow.c:379:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/shallow.c:386:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (write_in_full(fd, sb.buf, sb.len) < 0)
                                                          ^
                                                           {
/datasets/git/shallow.c:390:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/shallow.c:399:80: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int advertise_shallow_grafts_cb(const struct commit_graft *graft, void *cb)
                                                                               ^
/datasets/git/shallow.c:401:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
        int fd = *(int *)cb;
            ^
/datasets/git/shallow.c:402:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (graft->nr_parent == -1)
                                   ^
                                    {
/datasets/git/shallow.c:407:35: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
void advertise_shallow_grafts(int fd)
                                  ^
/datasets/git/shallow.c:409:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_repository_shallow(the_repository))
                                                   ^
                                                    {
/datasets/git/shallow.c:423:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/shallow.c:425:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/shallow.c:425:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/shallow.c:427:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (options & PRUNE_QUICK)
            ^
/datasets/git/shallow.c:427:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (options & PRUNE_QUICK)
                                  ^
                                   {
/datasets/git/shallow.c:428:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags |= QUICK;
                ^
/datasets/git/shallow.c:430:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (options & PRUNE_SHOW_ONLY) {
            ^
/datasets/git/shallow.c:431:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags |= VERBOSE;
                ^
/datasets/git/shallow.c:441:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (write_in_full(fd, sb.buf, sb.len) < 0)
                                                          ^
                                                           {
/datasets/git/shallow.c:452:18: warning: variable 'trace_shallow' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
struct trace_key trace_shallow = TRACE_KEY_INIT(SHALLOW);
                 ^
/datasets/git/shallow.c:458:72: warning: parameter name 'sa' is too short, expected at least 3 characters [readability-identifier-length]
void prepare_shallow_info(struct shallow_info *info, struct oid_array *sa)
                                                                       ^
/datasets/git/shallow.c:460:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/shallow.c:460:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/shallow.c:461:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf_key(&trace_shallow, "shallow: prepare_shallow_info\n");
        ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/shallow.c:462:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(info, 0, sizeof(*info));
        ^~~~~~
/datasets/git/shallow.c:462:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(info, 0, sizeof(*info));
        ^~~~~~
/datasets/git/shallow.c:464:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!sa)
                ^
                 {
/datasets/git/shallow.c:468:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < sa->nr; i++) {
        ^
/datasets/git/shallow.c:470:25: warning: variable 'graft' is not initialized [cppcoreguidelines-init-variables]
                        struct commit_graft *graft;
                                             ^
                                                   = NULL
/datasets/git/shallow.c:473:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (graft && graft->nr_parent < 0)
                                                          ^
                                                           {
/datasets/git/shallow.c:476:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/shallow.c:492:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, dst;
        ^~~~~~~~~~~
/datasets/git/shallow.c:492:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, dst;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/shallow.c:492:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/shallow.c:492:9: warning: variable 'dst' is not initialized [cppcoreguidelines-init-variables]
        int i, dst;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/shallow.c:493:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf_key(&trace_shallow, "shallow: remove_nonexistent_theirs_shallow\n");
        ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/shallow.c:492:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int i, dst;
        ^
/datasets/git/shallow.c:494:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = dst = 0; i < info->nr_theirs; i++) {
        ^
/datasets/git/shallow.c:494:20: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = dst = 0; i < info->nr_theirs; i++) {
                          ^
/datasets/git/shallow.c:495:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (i != dst)
                             ^
                              {
/datasets/git/shallow.c:497:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (has_object_file(oid + info->theirs[i]))
                                                           ^
                                                            {
/datasets/git/shallow.c:503:1: warning: backward branch (for loop) is ID-dependent due to member reference to 'slab_size' and may cause performance degradation [altera-id-dependent-backward-branch]
define_commit_slab(ref_bitmap, uint32_t *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:48:15: note: expanded from macro 'implement_commit_slab'
                for (j = 0; j < s->slab_size; j++)                      \
                            ^
/datasets/git/shallow.c:503:1: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
define_commit_slab(ref_bitmap, uint32_t *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:68:27: note: expanded from macro 'implement_commit_slab'
                for (i = s->slab_count; i <= nth_slab; i++)             \
                                        ^
/datasets/git/shallow.c:503:1: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
define_commit_slab(ref_bitmap, uint32_t *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:35:2: note: expanded from macro 'implement_commit_slab'
        for (i = 0; i < s->slab_count; i++)                             \
        ^
/datasets/git/shallow.c:503:1: warning: result of multiplication in type 'unsigned int' is used as a pointer offset after an implicit widening conversion to type 'size_t' [bugprone-implicit-widening-of-multiplication-result]
define_commit_slab(ref_bitmap, uint32_t *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:49:13: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                 ^
/datasets/git/shallow.c:503:1: note: make conversion explicit to silence this warning
define_commit_slab(ref_bitmap, uint32_t *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:49:24: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                            ^~~~~~~~~~~~~
/datasets/git/shallow.c:503:1: note: perform multiplication in a wider type
define_commit_slab(ref_bitmap, uint32_t *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./commit-slab-impl.h:49:24: note: expanded from macro 'implement_commit_slab'
                        free_fn(&s->slab[i][j * s->stride]);            \
                                            ^
/datasets/git/shallow.c:503:1: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(ref_bitmap, uint32_t *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:55:30: note: expanded from macro 'implement_commit_slab'
                                                  const struct commit *c, \
                                                                       ^
/datasets/git/shallow.c:503:1: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(ref_bitmap, uint32_t *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:14:61: note: expanded from macro 'implement_commit_slab'
scope void init_ ##slabname## _with_stride(struct slabname *s,          \
                                                            ^
/datasets/git/shallow.c:503:1: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(ref_bitmap, uint32_t *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:34:15: note: expanded from macro 'implement_commit_slab'
        unsigned int i;                                                 \
                     ^
/datasets/git/shallow.c:503:1: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
define_commit_slab(ref_bitmap, uint32_t *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:45:16: note: expanded from macro 'implement_commit_slab'
                unsigned int j;                                         \
                             ^
/datasets/git/shallow.c:503:1: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
define_commit_slab(ref_bitmap, uint32_t *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:58:2: note: expanded from macro 'implement_commit_slab'
        unsigned int nth_slab, nth_slot;                                \
        ^
/datasets/git/shallow.c:503:1: note: inferred assignment of ID-dependent value from ID-dependent member slab_count [altera-id-dependent-backward-branch]
define_commit_slab(ref_bitmap, uint32_t *);
^
/datasets/git/./commit-slab.h:64:2: note: expanded from macro 'define_commit_slab'
        implement_static_commit_slab(slabname, elemtype)
        ^
/datasets/git/./commit-slab-impl.h:7:2: note: expanded from macro 'implement_static_commit_slab'
        implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static)
        ^
/datasets/git/./commit-slab-impl.h:64:3: note: expanded from macro 'implement_commit_slab'
                unsigned int i;                                         \
                ^
/datasets/git/shallow.c:503:20: warning: accessing fields in struct 'ref_bitmap' is inefficient due to padding; only needs 20 bytes but is using 24 bytes [altera-struct-pack-align]
define_commit_slab(ref_bitmap, uint32_t *);
                   ^
/datasets/git/shallow.c:503:20: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'ref_bitmap'
/datasets/git/shallow.c:503:20: warning: accessing fields in struct 'ref_bitmap' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
define_commit_slab(ref_bitmap, uint32_t *);
                   ^
/datasets/git/shallow.c:503:20: note: use "__attribute__((aligned(32)))" to align struct 'ref_bitmap' to 32 bytes
/datasets/git/shallow.c:507:8: warning: accessing fields in struct 'paint_info' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct paint_info {
       ^
/datasets/git/shallow.c:507:8: note: use "__attribute__((aligned(64)))" to align struct 'paint_info' to 64 bytes
/datasets/git/shallow.c:517:11: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned nr = DIV_ROUND_UP(info->nr_bits, 32);
                 ^
/datasets/git/shallow.c:519:8: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        void *p;
              ^
                = NULL
/datasets/git/shallow.c:519:8: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/shallow.c:521:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (size > POOL_SIZE)
                                     ^
                                      {
/datasets/git/shallow.c:526:24: warning: performing an implicit widening conversion to type 'size_t' (aka 'unsigned long') of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                info->free = xmalloc(POOL_SIZE);
                                     ^
/datasets/git/shallow.c:505:20: note: expanded from macro 'POOL_SIZE'
#define POOL_SIZE (512 * 1024)
                   ^
/datasets/git/shallow.c:526:24: note: make conversion explicit to silence this warning
                info->free = xmalloc(POOL_SIZE);
                                     ^
/datasets/git/shallow.c:505:20: note: expanded from macro 'POOL_SIZE'
#define POOL_SIZE (512 * 1024)
                   ^~~~~~~~~~
/datasets/git/shallow.c:526:24: note: perform multiplication in a wider type
                info->free = xmalloc(POOL_SIZE);
                                     ^
/datasets/git/shallow.c:505:20: note: expanded from macro 'POOL_SIZE'
#define POOL_SIZE (512 * 1024)
                   ^~~
/datasets/git/shallow.c:528:15: warning: result of multiplication in type 'int' is used as a pointer offset after an implicit widening conversion to type 'ptrdiff_t' [bugprone-implicit-widening-of-multiplication-result]
                info->end = info->free + POOL_SIZE;
                            ^
/datasets/git/shallow.c:528:28: note: make conversion explicit to silence this warning
                info->end = info->free + POOL_SIZE;
                                         ^
/datasets/git/shallow.c:505:20: note: expanded from macro 'POOL_SIZE'
#define POOL_SIZE (512 * 1024)
                   ^~~~~~~~~~
/datasets/git/shallow.c:528:28: note: perform multiplication in a wider type
                info->end = info->free + POOL_SIZE;
                                         ^
/datasets/git/shallow.c:505:20: note: expanded from macro 'POOL_SIZE'
#define POOL_SIZE (512 * 1024)
                   ^~~
/datasets/git/shallow.c:540:13: warning: function 'paint_down' has cognitive complexity of 27 (threshold 25) [readability-function-cognitive-complexity]
static void paint_down(struct paint_info *info, const struct object_id *oid,
            ^
/datasets/git/shallow.c:552:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!c)
        ^
/datasets/git/shallow.c:560:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (head) {
        ^
/datasets/git/shallow.c:566:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (c->object.flags & (SEEN | UNINTERESTING))
                ^
/datasets/git/shallow.c:568:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/shallow.c:571:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!*refs)
                ^
/datasets/git/shallow.c:573:3: note: +1, nesting level increased to 2
                else {
                ^
/datasets/git/shallow.c:575:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (i = 0; i < bitmap_nr; i++)
                        ^
/datasets/git/shallow.c:577:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (memcmp(tmp, *refs, bitmap_size)) {
                        ^
/datasets/git/shallow.c:583:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (c->object.flags & BOTTOM)
                ^
/datasets/git/shallow.c:586:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (parse_commit(c))
                ^
/datasets/git/shallow.c:590:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (p = c->parents; p; p = p->next) {
                ^
/datasets/git/shallow.c:591:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (p->item->object.flags & SEEN)
                        ^
/datasets/git/shallow.c:598:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < nr; i++) {
        ^
/datasets/git/shallow.c:600:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (o && o->type == OBJ_COMMIT)
                ^
/datasets/git/shallow.c:600:9: note: +1
                if (o && o->type == OBJ_COMMIT)
                      ^
/datasets/git/shallow.c:541:23: warning: parameter name 'id' is too short, expected at least 3 characters [readability-identifier-length]
                       unsigned int id)
                                    ^
/datasets/git/shallow.c:543:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned int i, nr;
        ^~~~~~~~~~~~~~~~~~~
/datasets/git/shallow.c:543:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i, nr;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/shallow.c:543:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/shallow.c:543:18: warning: variable 'nr' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i, nr;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/shallow.c:543:18: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/shallow.c:547:17: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        struct commit *c = lookup_commit_reference_gently(the_repository, oid,
                       ^
/datasets/git/shallow.c:549:12: warning: variable 'tmp' is not initialized [cppcoreguidelines-init-variables]
        uint32_t *tmp; /* to be freed before return */
                  ^
                      = NULL
/datasets/git/shallow.c:550:12: warning: variable 'bitmap' is not initialized [cppcoreguidelines-init-variables]
        uint32_t *bitmap;
                  ^
                         = NULL
/datasets/git/shallow.c:552:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!c)
               ^
                {
/datasets/git/shallow.c:557:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(bitmap, 0, bitmap_size);
        ^~~~~~
/datasets/git/shallow.c:557:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(bitmap, 0, bitmap_size);
        ^~~~~~
/datasets/git/shallow.c:558:14: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        bitmap[id / 32] |= (1U << (id % 32));
                    ^
/datasets/git/shallow.c:558:34: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        bitmap[id / 32] |= (1U << (id % 32));
                                        ^
/datasets/git/shallow.c:561:23: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                struct commit_list *p;
                                    ^
                                      = NULL
/datasets/git/shallow.c:561:23: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/shallow.c:562:18: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                struct commit *c = pop_commit(&head);
                               ^
/datasets/git/shallow.c:566:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (c->object.flags & (SEEN | UNINTERESTING))
                                       ^
/datasets/git/./revision.h:27:16: note: expanded from macro 'SEEN'
#define SEEN            (1u<<0)
                         ^   ~
/datasets/git/shallow.c:566:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (c->object.flags & (SEEN | UNINTERESTING))
                                              ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/shallow.c:566:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (c->object.flags & (SEEN | UNINTERESTING))
                                                             ^
                                                              {
/datasets/git/shallow.c:568:3: warning: do not use 'else' after 'continue' [llvm-else-after-return,readability-else-after-return]
                else
                ^~~~
                                        c->object.flags |= SEEN
/datasets/git/shallow.c:568:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/shallow.c:569:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        c->object.flags |= SEEN;
                                           ^
/datasets/git/./revision.h:27:16: note: expanded from macro 'SEEN'
#define SEEN            (1u<<0)
                         ^   ~
/datasets/git/shallow.c:571:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!*refs)
                           ^
                            {
/datasets/git/shallow.c:574:4: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memcpy(tmp, *refs, bitmap_size);
                        ^~~~~~
/datasets/git/shallow.c:574:4: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                        memcpy(tmp, *refs, bitmap_size);
                        ^~~~~~
/datasets/git/shallow.c:575:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = 0; i < bitmap_nr; i++)
                        ^
/datasets/git/shallow.c:575:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'bitmap_nr' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (i = 0; i < bitmap_nr; i++)
                                    ^
/datasets/git/shallow.c:575:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (i = 0; i < bitmap_nr; i++)
                                                       ^
                                                        {
/datasets/git/shallow.c:577:8: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                        if (memcmp(tmp, *refs, bitmap_size)) {
                            ^
                                                            != 0
/datasets/git/shallow.c:579:5: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                                memcpy(*refs, tmp, bitmap_size);
                                ^~~~~~
/datasets/git/shallow.c:579:5: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                                memcpy(*refs, tmp, bitmap_size);
                                ^~~~~~
/datasets/git/shallow.c:583:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (c->object.flags & BOTTOM)
                                      ^
/datasets/git/./revision.h:37:18: note: expanded from macro 'BOTTOM'
#define BOTTOM          (1u<<10)
                         ^   ~~
/datasets/git/shallow.c:583:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (c->object.flags & BOTTOM)
                                             ^
                                              {
/datasets/git/shallow.c:586:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (parse_commit(c))
                                    ^
                                     {
/datasets/git/shallow.c:590:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (p = c->parents; p; p = p->next) {
                ^
/datasets/git/shallow.c:590:24: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (p = c->parents; p; p = p->next) {
                                     ^
/datasets/git/shallow.c:591:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (p->item->object.flags & SEEN)
                                                    ^
/datasets/git/./revision.h:27:16: note: expanded from macro 'SEEN'
#define SEEN            (1u<<0)
                         ^   ~
/datasets/git/shallow.c:591:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (p->item->object.flags & SEEN)
                                                         ^
                                                          {
/datasets/git/shallow.c:598:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr; i++) {
        ^
/datasets/git/shallow.c:599:18: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                struct object *o = get_indexed_object(i);
                               ^
/datasets/git/shallow.c:600:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (o && o->type == OBJ_COMMIT)
                                               ^
                                                {
/datasets/git/shallow.c:601:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        o->flags &= ~SEEN;
                                     ^
/datasets/git/./revision.h:27:16: note: expanded from macro 'SEEN'
#define SEEN            (1u<<0)
                         ^   ~
/datasets/git/shallow.c:614:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!commit)
                    ^
                     {
/datasets/git/shallow.c:616:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        commit->object.flags |= UNINTERESTING;
                                ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/shallow.c:643:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned int i, nr;
        ^~~~~~~~~~~~~~~~~~~
/datasets/git/shallow.c:643:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i, nr;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/shallow.c:643:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/shallow.c:643:18: warning: variable 'nr' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i, nr;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/shallow.c:643:18: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/shallow.c:644:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int *shallow, nr_shallow = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/shallow.c:644:7: warning: variable 'shallow' is not initialized [cppcoreguidelines-init-variables]
        int *shallow, nr_shallow = 0;
             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/shallow.c:645:20: warning: variable name 'pi' is too short, expected at least 3 characters [readability-identifier-length]
        struct paint_info pi;
                          ^
/datasets/git/shallow.c:647:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf_key(&trace_shallow, "shallow: assign_shallow_commits_to_refs\n");
        ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/shallow.c:649:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < info->nr_ours; i++)
        ^
/datasets/git/shallow.c:649:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < info->nr_ours; i++)
                                           ^
                                            {
/datasets/git/shallow.c:651:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < info->nr_theirs; i++)
        ^
/datasets/git/shallow.c:651:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr_theirs' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < info->nr_theirs; i++)
                    ^
/datasets/git/shallow.c:651:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < info->nr_theirs; i++)
                                             ^
                                              {
/datasets/git/shallow.c:659:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr; i++) {
        ^
/datasets/git/shallow.c:660:18: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                struct object *o = get_indexed_object(i);
                               ^
/datasets/git/shallow.c:661:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!o || o->type != OBJ_COMMIT)
                                                ^
                                                 {
/datasets/git/shallow.c:664:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                o->flags &= ~(UNINTERESTING | BOTTOM | SEEN);
                              ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/shallow.c:664:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                o->flags &= ~(UNINTERESTING | BOTTOM | SEEN);
                                              ^
/datasets/git/./revision.h:37:18: note: expanded from macro 'BOTTOM'
#define BOTTOM          (1u<<10)
                         ^   ~~
/datasets/git/shallow.c:664:42: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                o->flags &= ~(UNINTERESTING | BOTTOM | SEEN);
                                                       ^
/datasets/git/./revision.h:27:16: note: expanded from macro 'SEEN'
#define SEEN            (1u<<0)
                         ^   ~
/datasets/git/shallow.c:667:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&pi, 0, sizeof(pi));
        ^~~~~~
/datasets/git/shallow.c:667:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&pi, 0, sizeof(pi));
        ^~~~~~
/datasets/git/shallow.c:680:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr_shallow; i++) {
        ^
/datasets/git/shallow.c:681:18: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                struct commit *c = lookup_commit(the_repository,
                               ^
/datasets/git/shallow.c:683:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                c->object.flags |= BOTTOM;
                                   ^
/datasets/git/./revision.h:37:18: note: expanded from macro 'BOTTOM'
#define BOTTOM          (1u<<10)
                         ^   ~~
/datasets/git/shallow.c:686:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ref->nr; i++)
        ^
/datasets/git/shallow.c:686:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < ref->nr; i++)
                    ^
/datasets/git/shallow.c:686:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < ref->nr; i++)
                                     ^
                                      {
/datasets/git/shallow.c:691:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(used, 0, sizeof(*used) * info->shallow->nr);
                ^~~~~~
/datasets/git/shallow.c:691:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(used, 0, sizeof(*used) * info->shallow->nr);
                ^~~~~~
/datasets/git/shallow.c:692:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < nr_shallow; i++) {
                ^
/datasets/git/shallow.c:693:25: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                        const struct commit *c = lookup_commit(the_repository,
                                             ^
/datasets/git/shallow.c:696:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (*map)
                                 ^
                                  {
/datasets/git/shallow.c:705:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/shallow.c:709:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < pi.pool_count; i++)
        ^
/datasets/git/shallow.c:709:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < pi.pool_count; i++)
                                           ^
                                            {
/datasets/git/shallow.c:715:8: warning: accessing fields in struct 'commit_array' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct commit_array {
       ^
/datasets/git/shallow.c:715:8: note: use "__attribute__((aligned(16)))" to align struct 'commit_array' to 16 bytes
/datasets/git/shallow.c:725:23: warning: variable name 'ca' is too short, expected at least 3 characters [readability-identifier-length]
        struct commit_array *ca = cb_data;
                             ^
/datasets/git/shallow.c:726:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(ca->commits, ca->nr + 1, ca->alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/shallow.c:726:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_GROW(ca->commits, ca->nr + 1, ca->alloc);
        ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/shallow.c:729:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ca->commits[ca->nr])
                                ^
                                 {
/datasets/git/shallow.c:734:51: warning: parameter name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
static void update_refstatus(int *ref_status, int nr, uint32_t *bitmap)
                                                  ^
/datasets/git/shallow.c:734:65: warning: pointer parameter 'bitmap' can be pointer to const [readability-non-const-parameter]
static void update_refstatus(int *ref_status, int nr, uint32_t *bitmap)
                                                                ^
                                                      const 
/datasets/git/shallow.c:736:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i;
                     ^
                       = 0
/datasets/git/shallow.c:736:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/shallow.c:737:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ref_status)
                        ^
                         {
/datasets/git/shallow.c:739:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr; i++)
        ^
/datasets/git/shallow.c:739:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < nr; i++)
                                ^
                                 {
/datasets/git/shallow.c:740:18: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (bitmap[i / 32] & (1U << (i % 32)))
                               ^
/datasets/git/shallow.c:740:36: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (bitmap[i / 32] & (1U << (i % 32)))
                                                 ^
/datasets/git/shallow.c:740:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (bitmap[i / 32] & (1U << (i % 32)))
                                                      ^
                                                       {
/datasets/git/shallow.c:752:17: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        struct commit *c;
                       ^
                         = NULL
/datasets/git/shallow.c:752:17: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/shallow.c:753:13: warning: variable 'bitmap' is not initialized [cppcoreguidelines-init-variables]
        uint32_t **bitmap;
                   ^
                          = NULL
/datasets/git/shallow.c:754:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int dst, i, j;
        ^~~~~~~~~~~~~~
/datasets/git/shallow.c:754:6: warning: variable 'dst' is not initialized [cppcoreguidelines-init-variables]
        int dst, i, j;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/shallow.c:754:11: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int dst, i, j;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/shallow.c:754:11: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/shallow.c:754:14: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int dst, i, j;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/shallow.c:754:14: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/shallow.c:756:22: warning: variable name 'ca' is too short, expected at least 3 characters [readability-identifier-length]
        struct commit_array ca;
                            ^
/datasets/git/shallow.c:758:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf_key(&trace_shallow, "shallow: post_assign_shallow\n");
        ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/shallow.c:759:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ref_status)
                       ^
                        {
/datasets/git/shallow.c:760:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(ref_status, 0, sizeof(*ref_status) * info->ref->nr);
                ^~~~~~
/datasets/git/shallow.c:760:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(ref_status, 0, sizeof(*ref_status) * info->ref->nr);
                ^~~~~~
/datasets/git/shallow.c:763:20: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = dst = 0; i < info->nr_theirs; i++) {
                          ^
/datasets/git/shallow.c:754:2: note: inferred assignment of ID-dependent value from ID-dependent 
        int dst, i, j;
        ^
/datasets/git/shallow.c:764:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (i != dst)
                             ^
                              {
/datasets/git/shallow.c:768:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!*bitmap)
                             ^
                              {
/datasets/git/shallow.c:770:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (j = 0; j < bitmap_nr; j++)
                ^
/datasets/git/shallow.c:770:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'bitmap_nr' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (j = 0; j < bitmap_nr; j++)
                            ^
/datasets/git/shallow.c:770:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (j = 0; j < bitmap_nr; j++)
                                               ^
                                                {
/datasets/git/shallow.c:772:34: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                update_refstatus(ref_status, info->ref->nr, *bitmap);
                                                             ^
/datasets/git/shallow.c:779:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&ca, 0, sizeof(ca));
        ^~~~~~
/datasets/git/shallow.c:779:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&ca, 0, sizeof(ca));
        ^~~~~~
/datasets/git/shallow.c:784:20: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = dst = 0; i < info->nr_ours; i++) {
                          ^
/datasets/git/shallow.c:785:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (i != dst)
                             ^
                              {
/datasets/git/shallow.c:789:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!*bitmap)
                             ^
                              {
/datasets/git/shallow.c:791:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (j = 0; j < bitmap_nr; j++)
                ^
/datasets/git/shallow.c:791:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'bitmap_nr' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (j = 0; j < bitmap_nr; j++)
                            ^
/datasets/git/shallow.c:791:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (j = 0; j < bitmap_nr; j++)
                                               ^
                                                {
/datasets/git/shallow.c:795:34: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                update_refstatus(ref_status, info->ref->nr, *bitmap);
                                                             ^
/datasets/git/shallow.c:806:52: warning: parameter name 'si' is too short, expected at least 3 characters [readability-identifier-length]
int delayed_reachability_test(struct shallow_info *si, int c)
                                                   ^
/datasets/git/shallow.c:806:60: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
int delayed_reachability_test(struct shallow_info *si, int c)
                                                           ^
/datasets/git/shallow.c:813:24: warning: variable name 'ca' is too short, expected at least 3 characters [readability-identifier-length]
                        struct commit_array ca;
                                            ^
/datasets/git/shallow.c:815:4: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memset(&ca, 0, sizeof(ca));
                        ^~~~~~
/datasets/git/shallow.c:815:4: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                        memset(&ca, 0, sizeof(ca));
                        ^~~~~~
/datasets/git/sideband.c:4:1: warning: #includes are not sorted properly [llvm-include-order]
#include "sideband.h"
^        ~~~~~~~~~~~~
         "help.h"
/datasets/git/sideband.c:8:8: warning: accessing fields in struct 'keyword_entry' is inefficient due to padding; only needs 83 bytes but is using 88 bytes [altera-struct-pack-align]
struct keyword_entry {
       ^
/datasets/git/sideband.c:8:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'keyword_entry'
/datasets/git/sideband.c:8:8: warning: accessing fields in struct 'keyword_entry' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct keyword_entry {
       ^
/datasets/git/sideband.c:8:8: note: use "__attribute__((aligned(128)))" to align struct 'keyword_entry' to 128 bytes
/datasets/git/sideband.c:16:29: warning: variable 'keywords' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct keyword_entry keywords[] = {
                            ^
/datasets/git/sideband.c:29:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/sideband.c:30:8: warning: variable 'value' is not initialized [cppcoreguidelines-init-variables]
        char *value;
              ^
                    = NULL
/datasets/git/sideband.c:31:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/sideband.c:31:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sideband.c:33:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (use_sideband_colors_cached >= 0)
                                            ^
                                             {
/datasets/git/sideband.c:44:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ARRAY_SIZE(keywords); i++) {
        ^
/datasets/git/sideband.c:47:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (git_config_get_string(sb.buf, &value))
                                                          ^
                                                           {
/datasets/git/sideband.c:49:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (color_parse(value, keywords[i].color))
                                                          ^
                                                           {
/datasets/git/sideband.c:58:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/sideband.c:58:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sideband.c:71:75: note: inferred assignment of ID-dependent value from ID-dependent variable len [altera-id-dependent-backward-branch]
static void maybe_colorize_sideband(struct strbuf *dest, const char *src, int n)
                                                                          ^
/datasets/git/sideband.c:60:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ARRAY_SIZE(keywords); i++)
        ^
/datasets/git/sideband.c:60:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < ARRAY_SIZE(keywords); i++)
                                                  ^
                                                   {
/datasets/git/sideband.c:73:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/sideband.c:73:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sideband.c:80:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (0 < n && isspace(*src)) {
        ^
/datasets/git/sideband.c:80:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'n' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (0 < n && isspace(*src)) {
               ^
/datasets/git/sideband.c:80:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        while (0 < n && isspace(*src)) {
                        ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/sideband.c:86:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ARRAY_SIZE(keywords); i++) {
        ^
/datasets/git/sideband.c:87:25: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct keyword_entry *p = keywords + i;
                                      ^
/datasets/git/sideband.c:88:13: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int len = strlen(p->keyword);
                          ^
/datasets/git/sideband.c:90:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (n < len)
                            ^
                             {
/datasets/git/sideband.c:99:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (len == n || !isalnum(src[len]))) {
                                  ^
/datasets/git/./git-compat-util.h:1220:20: note: expanded from macro 'isalnum'
#define isalnum(x) sane_istest(x,GIT_ALPHA | GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/sideband.c:118:5: warning: function 'demultiplex_sideband' has cognitive complexity of 45 (threshold 25) [readability-function-cognitive-complexity]
int demultiplex_sideband(const char *me, int status,
    ^
/datasets/git/sideband.c:128:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!suffix) {
        ^
/datasets/git/sideband.c:129:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (isatty(2) && !is_terminal_dumb())
                ^
/datasets/git/sideband.c:129:17: note: +1
                if (isatty(2) && !is_terminal_dumb())
                              ^
/datasets/git/sideband.c:131:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/sideband.c:135:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (status == PACKET_READ_EOF) {
        ^
/datasets/git/sideband.c:138:21: note: +2, including nesting penalty of 1, nesting level increased to 2
                            scratch->len ? "\n" : "", me);
                                         ^
/datasets/git/sideband.c:140:3: note: +1
                goto cleanup;
                ^
/datasets/git/sideband.c:143:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (len < 0)
        ^
/datasets/git/sideband.c:146:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (len == 0) {
        ^
/datasets/git/sideband.c:147:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (status == PACKET_READ_NORMAL) {
                ^
/datasets/git/sideband.c:150:22: note: +3, including nesting penalty of 2, nesting level increased to 3
                                    scratch->len ? "\n" : "", me);
                                                 ^
/datasets/git/sideband.c:152:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/sideband.c:156:3: note: +1
                goto cleanup;
                ^
/datasets/git/sideband.c:162:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        switch (band) {
        ^
/datasets/git/sideband.c:164:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (die_on_error)
                ^
/datasets/git/sideband.c:166:45: note: +2, including nesting penalty of 1, nesting level increased to 2
                strbuf_addf(scratch, "%s%s", scratch->len ? "\n" : "",
                                                          ^
/datasets/git/sideband.c:183:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while ((brk = strpbrk(b, "\n\r"))) {
                ^
/datasets/git/sideband.c:194:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (scratch->len && !linelen)
                        ^
/datasets/git/sideband.c:194:21: note: +1
                        if (scratch->len && !linelen)
                                         ^
/datasets/git/sideband.c:197:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!scratch->len)
                        ^
/datasets/git/sideband.c:211:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (linelen > 0) {
                        ^
/datasets/git/sideband.c:223:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*b) {
                ^
/datasets/git/sideband.c:224:40: note: +3, including nesting penalty of 2, nesting level increased to 3
                        strbuf_addstr(scratch, scratch->len ?
                                                            ^
/datasets/git/sideband.c:234:21: note: +2, including nesting penalty of 1, nesting level increased to 2
                            scratch->len ? "\n" : "", me, band);
                                         ^
/datasets/git/sideband.c:240:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (die_on_error && *sideband_type == SIDEBAND_PROTOCOL_ERROR)
        ^
/datasets/git/sideband.c:240:19: note: +1
        if (die_on_error && *sideband_type == SIDEBAND_PROTOCOL_ERROR)
                         ^
/datasets/git/sideband.c:242:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (scratch->len) {
        ^
/datasets/git/sideband.c:118:38: warning: parameter name 'me' is too short, expected at least 3 characters [readability-identifier-length]
int demultiplex_sideband(const char *me, int status,
                                     ^
/datasets/git/sideband.c:119:16: warning: 2 adjacent parameters of 'demultiplex_sideband' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                         char *buf, int len,
                                    ^~~~~~~~
/datasets/git/sideband.c:119:20: note: the first parameter in the range is 'len'
                         char *buf, int len,
                                        ^~~
/datasets/git/sideband.c:120:9: note: the last parameter in the range is 'die_on_error'
                         int die_on_error,
                             ^~~~~~~~~~~~
/datasets/git/sideband.c:125:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *b, *brk;
        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/sideband.c:125:14: warning: variable 'b' is not initialized [cppcoreguidelines-init-variables]
        const char *b, *brk;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sideband.c:125:14: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sideband.c:125:18: warning: variable 'brk' is not initialized [cppcoreguidelines-init-variables]
        const char *b, *brk;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sideband.c:126:6: warning: variable 'band' is not initialized [cppcoreguidelines-init-variables]
        int band;
            ^
                 = 0
/datasets/git/sideband.c:129:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (isatty(2) && !is_terminal_dumb())
                                                     ^
                                                      {
/datasets/git/sideband.c:131:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/sideband.c:143:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len < 0)
                    ^
                     {
/datasets/git/sideband.c:159:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        band = buf[0] & 0xff;
               ^~~~~~
/datasets/git/sideband.c:159:18: warning: 0xff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        band = buf[0] & 0xff;
                        ^
/datasets/git/sideband.c:164:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (die_on_error)
                                 ^
                                  {
/datasets/git/sideband.c:183:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while ((brk = strpbrk(b, "\n\r"))) {
                ^
/datasets/git/sideband.c:183:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'brk' and may cause performance degradation [altera-id-dependent-backward-branch]
                while ((brk = strpbrk(b, "\n\r"))) {
                       ^
/datasets/git/sideband.c:184:18: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        int linelen = brk - b;
                                      ^
/datasets/git/sideband.c:194:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (scratch->len && !linelen)
                                                     ^
                                                      {
/datasets/git/sideband.c:197:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!scratch->len)
                                          ^
                                           {
/datasets/git/sideband.c:226:40: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        maybe_colorize_sideband(scratch, b, strlen(b));
                                                            ^
/datasets/git/sideband.c:240:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (die_on_error && *sideband_type == SIDEBAND_PROTOCOL_ERROR)
                                                                      ^
                                                                       {
/datasets/git/sideband.c:254:20: warning: 2 adjacent parameters of 'send_sideband' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
void send_sideband(int fd, int band, const char *data, ssize_t sz, int packet_max)
                   ^~~~~~~~~~~~~~~~
/datasets/git/sideband.c:254:24: note: the first parameter in the range is 'fd'
void send_sideband(int fd, int band, const char *data, ssize_t sz, int packet_max)
                       ^~
/datasets/git/sideband.c:254:32: note: the last parameter in the range is 'band'
void send_sideband(int fd, int band, const char *data, ssize_t sz, int packet_max)
                               ^~~~
/datasets/git/sideband.c:254:24: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
void send_sideband(int fd, int band, const char *data, ssize_t sz, int packet_max)
                       ^
/datasets/git/sideband.c:254:56: warning: 2 adjacent parameters of 'send_sideband' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
void send_sideband(int fd, int band, const char *data, ssize_t sz, int packet_max)
                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sideband.c:254:64: note: the first parameter in the range is 'sz'
void send_sideband(int fd, int band, const char *data, ssize_t sz, int packet_max)
                                                               ^~
/datasets/git/sideband.c:254:72: note: the last parameter in the range is 'packet_max'
void send_sideband(int fd, int band, const char *data, ssize_t sz, int packet_max)
                                                                       ^~~~~~~~~~
/datasets/git/sideband.c:254:56: note: 
void send_sideband(int fd, int band, const char *data, ssize_t sz, int packet_max)
                                                       ^
/datasets/git/sideband.c:254:68: note: 'ssize_t' and 'int' may be implicitly converted: 'ssize_t' (as 'long') -> 'int', 'int' -> 'ssize_t' (as 'long')
void send_sideband(int fd, int band, const char *data, ssize_t sz, int packet_max)
                                                                   ^
/datasets/git/sideband.c:254:64: warning: parameter name 'sz' is too short, expected at least 3 characters [readability-identifier-length]
void send_sideband(int fd, int band, const char *data, ssize_t sz, int packet_max)
                                                               ^
/datasets/git/sideband.c:254:56: note: inferred assignment of ID-dependent value from ID-dependent variable n [altera-id-dependent-backward-branch]
void send_sideband(int fd, int band, const char *data, ssize_t sz, int packet_max)
                                                       ^
/datasets/git/sideband.c:256:14: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        const char *p = data;
                    ^
/datasets/git/sideband.c:258:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (sz) {
        ^
/datasets/git/sideband.c:258:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'sz' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (sz) {
               ^
/datasets/git/sideband.c:259:12: warning: variable 'n' is not initialized [cppcoreguidelines-init-variables]
                unsigned n;
                         ^
                           = 0
/datasets/git/sideband.c:259:12: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sideband.c:260:12: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                char hdr[5];
                         ^
/datasets/git/sideband.c:263:20: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (packet_max - 5 < n)
                                 ^
/datasets/git/sideband.c:263:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (packet_max - 5 < n)
                                       ^
                                        {
/datasets/git/sideband.c:264:21: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        n = packet_max - 5;
                                         ^
/datasets/git/sideband.c:266:44: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        xsnprintf(hdr, sizeof(hdr), "%04x", n + 5);
                                                                ^
/datasets/git/sideband.c:267:13: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        hdr[4] = band;
                                 ^
/datasets/git/sideband.c:268:26: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        write_or_die(fd, hdr, 5);
                                              ^
/datasets/git/sigchain.c:4:1: warning: replace macro with enum [modernize-macro-to-enum]
#define SIGCHAIN_MAX_SIGNALS 32
^~~~~~~~
                             =
/datasets/git/sigchain.c:4:9: warning: macro 'SIGCHAIN_MAX_SIGNALS' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define SIGCHAIN_MAX_SIGNALS 32
        ^
/datasets/git/sigchain.c:6:8: warning: accessing fields in struct 'sigchain_signal' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct sigchain_signal {
       ^
/datasets/git/sigchain.c:6:8: note: use "__attribute__((aligned(16)))" to align struct 'sigchain_signal' to 16 bytes
/datasets/git/sigchain.c:11:31: warning: variable 'signals' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct sigchain_signal signals[SIGCHAIN_MAX_SIGNALS];
                              ^
/datasets/git/sigchain.c:15:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (sig < 1 || sig >= SIGCHAIN_MAX_SIGNALS)
                                                   ^
                                                    {
/datasets/git/sigchain.c:19:41: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
int sigchain_push(int sig, sigchain_fun f)
                                        ^
/datasets/git/sigchain.c:21:26: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
        struct sigchain_signal *s = signals + sig;
                                ^
/datasets/git/sigchain.c:24:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(s->old, s->n + 1, s->alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/sigchain.c:26:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (s->old[s->n] == SIG_ERR)
                                    ^
                                     {
/datasets/git/sigchain.c:34:26: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
        struct sigchain_signal *s = signals + sig;
                                ^
/datasets/git/sigchain.c:36:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (s->n < 1)
                     ^
                      {
/datasets/git/sigchain.c:39:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (signal(sig, s->old[s->n - 1]) == SIG_ERR)
                                                     ^
                                                      {
/datasets/git/sigchain.c:45:40: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
void sigchain_push_common(sigchain_fun f)
                                       ^
/datasets/git/sparse-index.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "repository.h"
^        ~~~~~~~~~~~~~~
         "cache-tree.h"
/datasets/git/sparse-index.c:12:8: warning: accessing fields in struct 'modify_index_context' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct modify_index_context {
       ^
/datasets/git/sparse-index.c:12:8: note: use "__attribute__((aligned(16)))" to align struct 'modify_index_context' to 16 bytes
/datasets/git/sparse-index.c:22:22: warning: variable 'de' is not initialized [cppcoreguidelines-init-variables]
        struct cache_entry *de;
                            ^
                               = NULL
/datasets/git/sparse-index.c:22:22: warning: variable name 'de' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sparse-index.c:26:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        de->ce_flags |= CE_SKIP_WORKTREE;
        ^
/datasets/git/sparse-index.c:26:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        de->ce_flags |= CE_SKIP_WORKTREE;
                        ^
/datasets/git/./refs/../cache.h:190:31: note: expanded from macro 'CE_SKIP_WORKTREE'
#define CE_SKIP_WORKTREE     (1 << 30)
                              ^
/datasets/git/sparse-index.c:33:12: warning: function 'convert_to_sparse_rec' is within a recursive call chain [misc-no-recursion]
static int convert_to_sparse_rec(struct index_state *istate,
           ^
/datasets/git/sparse-index.c:33:12: note: example recursive call chain, starting from function 'convert_to_sparse_rec'
/datasets/git/sparse-index.c:93:11: note: Frame #1: function 'convert_to_sparse_rec' calls function 'convert_to_sparse_rec' here:
                count = convert_to_sparse_rec(istate,
                        ^
/datasets/git/sparse-index.c:93:11: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/sparse-index.c:34:6: warning: 2 adjacent parameters of 'convert_to_sparse_rec' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                 int num_converted,
                                 ^~~~~~~~~~~~~~~~~~
/datasets/git/sparse-index.c:34:10: note: the first parameter in the range is 'num_converted'
                                 int num_converted,
                                     ^~~~~~~~~~~~~
/datasets/git/sparse-index.c:35:10: note: the last parameter in the range is 'start'
                                 int start, int end,
                                     ^~~~~
/datasets/git/sparse-index.c:37:25: warning: parameter name 'ct' is too short, expected at least 3 characters [readability-identifier-length]
                                 struct cache_tree *ct)
                                                    ^
/datasets/git/sparse-index.c:39:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, can_convert = 1;
        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sparse-index.c:39:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, can_convert = 1;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sparse-index.c:39:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sparse-index.c:48:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (path_in_sparse_checkout(ct_path, istate))
                                                     ^
                                                      {
/datasets/git/sparse-index.c:51:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = start; can_convert && i < end; i++) {
        ^
/datasets/git/sparse-index.c:39:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int i, can_convert = 1;
        ^
/datasets/git/sparse-index.c:51:18: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = start; can_convert && i < end; i++) {
                        ^
/datasets/git/sparse-index.c:52:23: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                struct cache_entry *ce = istate->cache[i];
                                    ^
/datasets/git/sparse-index.c:54:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce_stage(ce) ||
                    ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/sparse-index.c:55:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    S_ISGITLINK(ce->ce_mode) ||
                    ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/sparse-index.c:56:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    !(ce->ce_flags & CE_SKIP_WORKTREE))
                      ^
/datasets/git/sparse-index.c:56:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    !(ce->ce_flags & CE_SKIP_WORKTREE))
                                     ^
/datasets/git/./refs/../cache.h:190:31: note: expanded from macro 'CE_SKIP_WORKTREE'
#define CE_SKIP_WORKTREE     (1 << 30)
                              ^
/datasets/git/sparse-index.c:56:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !(ce->ce_flags & CE_SKIP_WORKTREE))
                                                       ^
                                                        {
/datasets/git/sparse-index.c:61:23: warning: variable 'se' is not initialized [cppcoreguidelines-init-variables]
                struct cache_entry *se;
                                    ^
                                       = NULL
/datasets/git/sparse-index.c:61:23: warning: variable name 'se' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sparse-index.c:68:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = start; i < end; ) {
        ^
/datasets/git/sparse-index.c:68:18: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = start; i < end; ) {
                        ^
/datasets/git/sparse-index.c:69:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int count, span, pos = -1;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sparse-index.c:69:7: warning: variable 'count' is not initialized [cppcoreguidelines-init-variables]
                int count, span, pos = -1;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sparse-index.c:69:14: warning: variable 'span' is not initialized [cppcoreguidelines-init-variables]
                int count, span, pos = -1;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sparse-index.c:70:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                const char *base, *slash;
                ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sparse-index.c:70:15: warning: variable 'base' is not initialized [cppcoreguidelines-init-variables]
                const char *base, *slash;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sparse-index.c:70:22: warning: variable 'slash' is not initialized [cppcoreguidelines-init-variables]
                const char *base, *slash;
                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sparse-index.c:71:23: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                struct cache_entry *ce = istate->cache[i];
                                    ^
/datasets/git/sparse-index.c:80:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (slash)
                          ^
                           {
/datasets/git/sparse-index.c:81:43: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        pos = cache_tree_subtree_pos(ct, base, slash - base);
                                                               ^
/datasets/git/sparse-index.c:117:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/sparse-index.c:117:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sparse-index.c:118:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < istate->cache_nr; i++) {
        ^
/datasets/git/sparse-index.c:119:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce_stage(istate->cache[i]))
                    ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/sparse-index.c:119:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ce_stage(istate->cache[i]))
                                               ^
                                                {
/datasets/git/sparse-index.c:128:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!core_apply_sparse_checkout || !core_sparse_checkout_cone)
                                                                      ^
                                                                       {
/datasets/git/sparse-index.c:131:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!istate->repo)
                          ^
                           {
/datasets/git/sparse-index.c:134:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & SPARSE_INDEX_MEMORY_ONLY)) {
              ^~~~~
/datasets/git/sparse-index.c:134:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & SPARSE_INDEX_MEMORY_ONLY)) {
                      ^
/datasets/git/./sparse-index.h:5:35: note: expanded from macro 'SPARSE_INDEX_MEMORY_ONLY'
#define SPARSE_INDEX_MEMORY_ONLY (1 << 0)
                                  ^
/datasets/git/sparse-index.c:135:7: warning: variable 'test_env' is not initialized [cppcoreguidelines-init-variables]
                int test_env;
                    ^
                             = 0
/datasets/git/sparse-index.c:140:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (istate->split_index || git_env_bool("GIT_TEST_SPLIT_INDEX", 0))
                                                                                   ^
                                                                                    {
/datasets/git/sparse-index.c:147:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (test_env >= 0)
                                  ^
                                   {
/datasets/git/sparse-index.c:154:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!istate->repo->settings.sparse_index)
                                                         ^
                                                          {
/datasets/git/sparse-index.c:158:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (init_sparse_checkout_patterns(istate))
                                                  ^
                                                   {
/datasets/git/sparse-index.c:169:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!istate->sparse_checkout_patterns->use_cone_patterns)
                                                                 ^
                                                                  {
/datasets/git/sparse-index.c:182:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !is_sparse_index_allowed(istate, flags))
                                                    ^
                                                     {
/datasets/git/sparse-index.c:189:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (index_has_unmerged_entries(istate))
                                               ^
                                                {
/datasets/git/sparse-index.c:203:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cache_tree_update(istate, WRITE_TREE_MISSING_OK))
                                                                     ^
                                                                      {
/datasets/git/sparse-index.c:211:14: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                                 0, 0, istate->cache_nr,
                                                       ^
/datasets/git/sparse-index.c:219:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(istate->fsmonitor_dirty);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/sparse-index.c:220:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(istate->fsmonitor_last_update);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/sparse-index.c:227:61: warning: parameter name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
static void set_index_entry(struct index_state *istate, int nr, struct cache_entry *ce)
                                                            ^
/datasets/git/sparse-index.c:227:85: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static void set_index_entry(struct index_state *istate, int nr, struct cache_entry *ce)
                                                                                    ^
/datasets/git/sparse-index.c:229:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(istate->cache, nr + 1, istate->cache_alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/sparse-index.c:229:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_GROW(istate->cache, nr + 1, istate->cache_alloc);
        ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/sparse-index.c:240:22: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
        struct cache_entry *ce;
                            ^
                               = NULL
/datasets/git/sparse-index.c:240:22: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sparse-index.c:244:7: warning: variable 'dtype' is not initialized [cppcoreguidelines-init-variables]
                int dtype;
                    ^
                          = 0
/datasets/git/sparse-index.c:246:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ctx->pl)
                             ^
                              {
/datasets/git/sparse-index.c:266:44: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                if (path_matches_pattern_list(base->buf, base->len,
                                                         ^
/datasets/git/sparse-index.c:283:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ce->ce_flags |= CE_SKIP_WORKTREE | CE_EXTENDED;
        ^
/datasets/git/sparse-index.c:283:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ce->ce_flags |= CE_SKIP_WORKTREE | CE_EXTENDED;
                        ^
/datasets/git/./refs/../cache.h:190:30: note: expanded from macro 'CE_SKIP_WORKTREE'
#define CE_SKIP_WORKTREE     (1 << 30)
                             ^~~~~~~~~
/datasets/git/sparse-index.c:284:30: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        set_index_entry(ctx->write, ctx->write->cache_nr++, ce);
                                    ^
/datasets/git/sparse-index.c:290:68: warning: parameter name 'pl' is too short, expected at least 3 characters [readability-identifier-length]
void expand_index(struct index_state *istate, struct pattern_list *pl)
                                                                   ^
/datasets/git/sparse-index.c:292:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/sparse-index.c:292:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sparse-index.c:293:22: warning: variable 'full' is not initialized [cppcoreguidelines-init-variables]
        struct index_state *full;
                            ^
                                 = NULL
/datasets/git/sparse-index.c:295:14: warning: variable 'tr_region' is not initialized [cppcoreguidelines-init-variables]
        const char *tr_region;
                    ^
                              = NULL
/datasets/git/sparse-index.c:302:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!istate || istate->sparse_index == INDEX_EXPANDED)
                                                              ^
                                                               {
/datasets/git/sparse-index.c:326:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cache_tree_update(istate, 0))
                                                 ^
                                                  {
/datasets/git/sparse-index.c:330:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!istate->repo)
                          ^
                           {
/datasets/git/sparse-index.c:344:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(full, istate, sizeof(struct index_state));
        ^~~~~~
/datasets/git/sparse-index.c:344:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(full, istate, sizeof(struct index_state));
        ^~~~~~
/datasets/git/sparse-index.c:356:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_ARRAY(full->cache, full->cache_alloc);
        ^
/datasets/git/./git-compat-util.h:1090:53: note: expanded from macro 'ALLOC_ARRAY'
#define ALLOC_ARRAY(x, alloc) (x) = xmalloc(st_mult(sizeof(*(x)), (alloc)))
                                                    ^
/datasets/git/sparse-index.c:361:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < istate->cache_nr; i++) {
        ^
/datasets/git/sparse-index.c:361:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'cache_nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < istate->cache_nr; i++) {
                    ^
/datasets/git/sparse-index.c:362:23: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                struct cache_entry *ce = istate->cache[i];
                                    ^
/datasets/git/sparse-index.c:363:16: warning: variable 'tree' is not initialized [cppcoreguidelines-init-variables]
                struct tree *tree;
                             ^
                                  = NULL
/datasets/git/sparse-index.c:364:19: warning: variable name 'ps' is too short, expected at least 3 characters [readability-identifier-length]
                struct pathspec ps;
                                ^
/datasets/git/sparse-index.c:365:7: warning: variable 'dtype' is not initialized [cppcoreguidelines-init-variables]
                int dtype;
                    ^
                          = 0
/datasets/git/sparse-index.c:368:26: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        set_index_entry(full, full->cache_nr++, ce);
                                              ^
/datasets/git/sparse-index.c:374:43: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                    path_matches_pattern_list(ce->name, ce->ce_namelen,
                                                        ^
/datasets/git/sparse-index.c:377:26: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        set_index_entry(full, full->cache_nr++, ce);
                                              ^
/datasets/git/sparse-index.c:381:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(ce->ce_flags & CE_SKIP_WORKTREE))
                      ^
/datasets/git/sparse-index.c:381:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(ce->ce_flags & CE_SKIP_WORKTREE))
                                     ^
/datasets/git/./refs/../cache.h:190:31: note: expanded from macro 'CE_SKIP_WORKTREE'
#define CE_SKIP_WORKTREE     (1 << 30)
                              ^
/datasets/git/sparse-index.c:381:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(ce->ce_flags & CE_SKIP_WORKTREE))
                                                       ^
                                                        {
/datasets/git/sparse-index.c:388:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(&ps, 0, sizeof(ps));
                ^~~~~~
/datasets/git/sparse-index.c:388:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(&ps, 0, sizeof(ps));
                ^~~~~~
/datasets/git/sparse-index.c:404:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(&istate->name_hash, &full->name_hash, sizeof(full->name_hash));
        ^~~~~~
/datasets/git/sparse-index.c:404:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(&istate->name_hash, &full->name_hash, sizeof(full->name_hash));
        ^~~~~~
/datasets/git/sparse-index.c:405:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(&istate->dir_hash, &full->dir_hash, sizeof(full->dir_hash));
        ^~~~~~
/datasets/git/sparse-index.c:405:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(&istate->dir_hash, &full->dir_hash, sizeof(full->dir_hash));
        ^~~~~~
/datasets/git/sparse-index.c:412:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(istate->fsmonitor_dirty);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/sparse-index.c:413:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(istate->fsmonitor_last_update);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/sparse-index.c:436:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_sparse_index_allowed(istate, 0))
                                               ^
                                                {
/datasets/git/sparse-index.c:438:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/sparse-index.c:445:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/sparse-index.c:446:8: warning: variable 'newdir' is not initialized [cppcoreguidelines-init-variables]
        char *newdir;
              ^
                     = NULL
/datasets/git/sparse-index.c:447:8: warning: variable 'tmp' is not initialized [cppcoreguidelines-init-variables]
        char *tmp;
              ^
                  = NULL
/datasets/git/sparse-index.c:453:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!*dir_found && !memcmp(path, *dirname, *dir_len))
                                                             ^
                                                              {
/datasets/git/sparse-index.c:459:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!lstat(path, &st))
                              ^
                               {
/datasets/git/sparse-index.c:468:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!newdir)
                    ^
                     {
/datasets/git/sparse-index.c:475:32: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (*dir_found && *dirname && memcmp(path, *dirname, *dir_len))
                                      ^
                                                                       != 0
/datasets/git/sparse-index.c:475:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*dir_found && *dirname && memcmp(path, *dirname, *dir_len))
                                                                       ^
                                                                        {
/datasets/git/sparse-index.c:495:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/sparse-index.c:495:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/./refs/../cache.h:339:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        unsigned int cache_nr, cache_alloc, cache_changed;
        ^
/datasets/git/sparse-index.c:500:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            sparse_expect_files_outside_of_patterns)
                                                    ^
                                                     {
/datasets/git/sparse-index.c:506:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < istate->cache_nr; i++) {
        ^
/datasets/git/sparse-index.c:506:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'cache_nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < istate->cache_nr; i++) {
                    ^
/datasets/git/sparse-index.c:507:23: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                struct cache_entry *ce = istate->cache[i];
                                    ^
/datasets/git/sparse-index.c:509:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce_skip_worktree(ce)) {
                    ^
/datasets/git/./refs/../cache.h:244:31: note: expanded from macro 'ce_skip_worktree'
#define ce_skip_worktree(ce) ((ce)->ce_flags & CE_SKIP_WORKTREE)
                              ^                ~~~~~~~~~~~~~~~~
/datasets/git/sparse-index.c:513:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        if (restarted)
                                                      ^
                                                       {
/datasets/git/sparse-index.c:519:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                ce->ce_flags &= ~CE_SKIP_WORKTREE;
                                ^               ~~~~~~~~~~~~~~~~~
/datasets/git/sparse-index.c:519:21: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                                ce->ce_flags &= ~CE_SKIP_WORKTREE;
                                                ^
/datasets/git/sparse-index.c:519:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                ce->ce_flags &= ~CE_SKIP_WORKTREE;
                                                 ^
/datasets/git/./refs/../cache.h:190:31: note: expanded from macro 'CE_SKIP_WORKTREE'
#define CE_SKIP_WORKTREE     (1 << 30)
                              ^
/datasets/git/sparse-index.c:524:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (path_count[0])
                          ^
                           {
/datasets/git/sparse-index.c:527:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (restarted)
                      ^
                       {
/datasets/git/sparse-index.c:538:12: warning: variable 'in_expand_to_path' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int in_expand_to_path = 0;
           ^
/datasets/git/sparse-index.c:544:9: warning: variable 'substr_len' is not initialized [cppcoreguidelines-init-variables]
        size_t substr_len;
               ^
                          = 0
/datasets/git/sparse-index.c:547:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (in_expand_to_path)
                              ^
                               {
/datasets/git/sparse-index.c:550:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!istate || !istate->sparse_index)
                                             ^
                                              {
/datasets/git/sparse-index.c:553:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!istate->repo)
                          ^
                           {
/datasets/git/sparse-index.c:566:38: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        if (index_file_exists(istate, path, pathlen, icase))
                                            ^
/datasets/git/sparse-index.c:566:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (index_file_exists(istate, path, pathlen, icase))
                                                            ^
                                                             {
/datasets/git/sparse-index.c:574:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (substr_len < pathlen) {
        ^
/datasets/git/sparse-index.c:574:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'substr_len' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (substr_len < pathlen) {
               ^
/datasets/git/sparse-index.c:575:8: warning: variable 'temp' is not initialized [cppcoreguidelines-init-variables]
                char temp;
                     ^
                          = 0
/datasets/git/sparse-index.c:578:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!replace)
                             ^
                              {
/datasets/git/sparse-index.c:586:11: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                      path_mutable.len, icase)) {
                                      ^
/datasets/git/split-index.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "split-index.h"
^        ~~~~~~~~~~~~~~~
         "ewah/ewok.h"
/datasets/git/split-index.c:8:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (istate->sparse_index)
                                         ^
                                          {
/datasets/git/split-index.c:18:38: warning: parameter name 'sz' is too short, expected at least 3 characters [readability-identifier-length]
                         const void *data_, unsigned long sz)
                                                          ^
/datasets/git/split-index.c:21:22: warning: variable 'si' is not initialized [cppcoreguidelines-init-variables]
        struct split_index *si;
                            ^
                               = NULL
/datasets/git/split-index.c:21:22: warning: variable name 'si' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/split-index.c:22:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/split-index.c:24:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (sz < the_hash_algo->rawsz)
                                      ^
                                       {
/datasets/git/split-index.c:30:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!sz)
                ^
                 {
/datasets/git/split-index.c:33:8: warning: narrowing conversion from 'ssize_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        ret = ewah_read_mmap(si->delete_bitmap, data, sz);
              ^
/datasets/git/split-index.c:34:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret < 0)
                    ^
                     {
/datasets/git/split-index.c:39:8: warning: narrowing conversion from 'ssize_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        ret = ewah_read_mmap(si->replace_bitmap, data, sz);
              ^
/datasets/git/split-index.c:40:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret < 0)
                    ^
                     {
/datasets/git/split-index.c:42:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret != sz)
                      ^
                       {
/datasets/git/split-index.c:47:41: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
int write_link_extension(struct strbuf *sb,
                                        ^
/datasets/git/split-index.c:50:22: warning: variable name 'si' is too short, expected at least 3 characters [readability-identifier-length]
        struct split_index *si = istate->split_index;
                            ^
/datasets/git/split-index.c:52:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!si->delete_bitmap && !si->replace_bitmap)
                                                      ^
                                                       {
/datasets/git/split-index.c:61:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/split-index.c:61:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/split-index.c:69:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < base->cache_nr; i++)
        ^
/datasets/git/split-index.c:69:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < base->cache_nr; i++)
                                            ^
                                             {
/datasets/git/split-index.c:75:22: warning: variable name 'si' is too short, expected at least 3 characters [readability-identifier-length]
        struct split_index *si = istate->split_index;
                            ^
/datasets/git/split-index.c:76:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/split-index.c:76:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/split-index.c:97:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(si->base->cache, istate->cache_nr, si->base->cache_alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/split-index.c:97:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_GROW(si->base->cache, istate->cache_nr, si->base->cache_alloc);
        ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/split-index.c:106:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        COPY_ARRAY(si->base->cache, istate->cache, istate->cache_nr);
        ^
/datasets/git/./git-compat-util.h:1094:63: note: expanded from macro 'COPY_ARRAY'
#define COPY_ARRAY(dst, src, n) copy_array((dst), (src), (n), sizeof(*(dst)) + \
                                                              ^
/datasets/git/split-index.c:108:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < si->base->cache_nr; i++)
        ^
/datasets/git/split-index.c:108:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'si' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < si->base->cache_nr; i++)
                    ^
/datasets/git/split-index.c:108:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < si->base->cache_nr; i++)
                                                ^
                                                 {
/datasets/git/split-index.c:109:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                si->base->cache[i]->ce_flags &= ~CE_UPDATE_IN_BASE;
                ^                               ~~~~~~~~~~~~~~~~~~
/datasets/git/split-index.c:109:35: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                si->base->cache[i]->ce_flags &= ~CE_UPDATE_IN_BASE;
                                                ^
/datasets/git/split-index.c:109:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                si->base->cache[i]->ce_flags &= ~CE_UPDATE_IN_BASE;
                                                 ^
/datasets/git/./refs/../cache.h:183:31: note: expanded from macro 'CE_UPDATE_IN_BASE'
#define CE_UPDATE_IN_BASE    (1 << 27)
                              ^
/datasets/git/split-index.c:115:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pos >= istate->cache_nr)
                                    ^
                                     {
/datasets/git/split-index.c:118:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        istate->cache[pos]->ce_flags |= CE_REMOVE;
        ^
/datasets/git/split-index.c:118:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        istate->cache[pos]->ce_flags |= CE_REMOVE;
                                        ^
/datasets/git/./refs/../cache.h:168:31: note: expanded from macro 'CE_REMOVE'
#define CE_REMOVE            (1 << 17)
                              ^
/datasets/git/split-index.c:125:22: warning: variable name 'si' is too short, expected at least 3 characters [readability-identifier-length]
        struct split_index *si = istate->split_index;
                            ^
/datasets/git/split-index.c:126:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct cache_entry *dst, *src;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/split-index.c:126:22: warning: variable 'dst' is not initialized [cppcoreguidelines-init-variables]
        struct cache_entry *dst, *src;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/split-index.c:126:28: warning: variable 'src' is not initialized [cppcoreguidelines-init-variables]
        struct cache_entry *dst, *src;
                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/split-index.c:128:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pos >= istate->cache_nr)
                                    ^
                                     {
/datasets/git/split-index.c:131:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (si->nr_replacements >= si->saved_cache_nr)
                                                      ^
                                                       {
/datasets/git/split-index.c:135:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (dst->ce_flags & CE_REMOVE)
            ^
/datasets/git/split-index.c:135:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (dst->ce_flags & CE_REMOVE)
                            ^
/datasets/git/./refs/../cache.h:168:31: note: expanded from macro 'CE_REMOVE'
#define CE_REMOVE            (1 << 17)
                              ^
/datasets/git/split-index.c:135:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (dst->ce_flags & CE_REMOVE)
                                      ^
                                       {
/datasets/git/split-index.c:139:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ce_namelen(src))
                            ^
                             {
/datasets/git/split-index.c:143:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        src->ce_flags |= CE_UPDATE_IN_BASE;
        ^
/datasets/git/split-index.c:143:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        src->ce_flags |= CE_UPDATE_IN_BASE;
                         ^
/datasets/git/./refs/../cache.h:183:31: note: expanded from macro 'CE_UPDATE_IN_BASE'
#define CE_UPDATE_IN_BASE    (1 << 27)
                              ^
/datasets/git/split-index.c:152:22: warning: variable name 'si' is too short, expected at least 3 characters [readability-identifier-length]
        struct split_index *si = istate->split_index;
                            ^
/datasets/git/split-index.c:153:15: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        unsigned int i;
                     ^
                       = 0
/datasets/git/split-index.c:153:15: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/split-index.c:162:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(istate->cache, istate->cache_nr, istate->cache_alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/split-index.c:162:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_GROW(istate->cache, istate->cache_nr, istate->cache_alloc);
        ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/split-index.c:163:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        COPY_ARRAY(istate->cache, si->base->cache, istate->cache_nr);
        ^
/datasets/git/./git-compat-util.h:1094:63: note: expanded from macro 'COPY_ARRAY'
#define COPY_ARRAY(dst, src, n) copy_array((dst), (src), (n), sizeof(*(dst)) + \
                                                              ^
/datasets/git/split-index.c:169:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (si->nr_deletions)
                             ^
                              {
/datasets/git/split-index.c:172:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = si->nr_replacements; i < si->saved_cache_nr; i++) {
        ^
/datasets/git/split-index.c:172:32: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = si->nr_replacements; i < si->saved_cache_nr; i++) {
                                      ^
/datasets/git/split-index.c:173:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ce_namelen(si->saved_cache[i]))
                                                    ^
                                                     {
/datasets/git/split-index.c:177:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                ADD_CACHE_OK_TO_ADD |
                                ^
/datasets/git/./refs/../cache.h:840:29: note: expanded from macro 'ADD_CACHE_OK_TO_ADD'
#define ADD_CACHE_OK_TO_ADD 1           /* Ok to add */
                            ^
/datasets/git/split-index.c:190:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(si->saved_cache);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/split-index.c:200:51: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static int compare_ce_content(struct cache_entry *a, struct cache_entry *b)
                                                  ^
/datasets/git/split-index.c:200:74: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static int compare_ce_content(struct cache_entry *a, struct cache_entry *b)
                                                                         ^
/datasets/git/split-index.c:202:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        const unsigned int ondisk_flags = CE_STAGEMASK | CE_VALID |
                                          ^
/datasets/git/./refs/../cache.h:153:22: note: expanded from macro 'CE_STAGEMASK'
#define CE_STAGEMASK (0x3000)
                     ^
/datasets/git/split-index.c:203:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                          CE_EXTENDED_FLAGS;
                                          ^
/datasets/git/./refs/../cache.h:194:28: note: expanded from macro 'CE_EXTENDED_FLAGS'
#define CE_EXTENDED_FLAGS (CE_INTENT_TO_ADD | CE_SKIP_WORKTREE)
                           ^~~~~~~~~~~~~~~~
/datasets/git/./refs/../cache.h:189:30: note: expanded from macro 'CE_INTENT_TO_ADD'
#define CE_INTENT_TO_ADD     (1 << 29)
                             ^~~~~~~~~
/datasets/git/split-index.c:206:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/split-index.c:211:8: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        ret = memcmp(&a->ce_stat_data, &b->ce_stat_data,
              ^
/datasets/git/split-index.c:221:6: warning: function 'prepare_to_write_split_index' has cognitive complexity of 85 (threshold 25) [readability-function-cognitive-complexity]
void prepare_to_write_split_index(struct index_state *istate)
     ^
/datasets/git/split-index.c:230:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (si->base) {
        ^
/datasets/git/split-index.c:238:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < istate->cache_nr; i++) {
                ^
/datasets/git/split-index.c:241:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!ce->index) {
                        ^
/datasets/git/split-index.c:262:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ce->index > si->base->cache_nr) {
                        ^
/datasets/git/split-index.c:268:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ce == base) {
                        ^
/datasets/git/split-index.c:270:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (ce->ce_flags & CE_UPDATE_IN_BASE) {
                                ^
/datasets/git/split-index.c:281:12: note: +1, nesting level increased to 4
                                } else if (!ce_uptodate(ce) &&
                                       ^
/datasets/git/split-index.c:281:33: note: +1
                                } else if (!ce_uptodate(ce) &&
                                                            ^
/datasets/git/split-index.c:291:7: note: +1, nesting level increased to 4
                                } else {
                                  ^
/datasets/git/split-index.c:301:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ce->ce_namelen != base->ce_namelen ||
                        ^
/datasets/git/split-index.c:301:43: note: +1
                        if (ce->ce_namelen != base->ce_namelen ||
                                                               ^
/datasets/git/split-index.c:311:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ce->ce_flags & CE_UPDATE_IN_BASE) {
                        ^
/datasets/git/split-index.c:321:11: note: +1, nesting level increased to 3
                        } else if (!ce_uptodate(ce) &&
                               ^
/datasets/git/split-index.c:321:32: note: +1
                        } else if (!ce_uptodate(ce) &&
                                                    ^
/datasets/git/split-index.c:330:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/split-index.c:340:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (compare_ce_content(ce, base))
                                ^
/datasets/git/split-index.c:346:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < si->base->cache_nr; i++) {
                ^
/datasets/git/split-index.c:348:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if ((ce->ce_flags & CE_REMOVE) ||
                        ^
/datasets/git/split-index.c:348:35: note: +1
                        if ((ce->ce_flags & CE_REMOVE) ||
                                                       ^
/datasets/git/split-index.c:351:9: note: +1, nesting level increased to 3
                        else if (ce->ce_flags & CE_UPDATE_IN_BASE) {
                             ^
/datasets/git/split-index.c:354:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                ALLOC_GROW(entries, nr_entries+1, nr_alloc);
                                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/split-index.c:354:5: note: +5, including nesting penalty of 4, nesting level increased to 5
                                ALLOC_GROW(entries, nr_entries+1, nr_alloc);
                                ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/split-index.c:354:5: note: +6, including nesting penalty of 5, nesting level increased to 6
                                ALLOC_GROW(entries, nr_entries+1, nr_alloc);
                                ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/split-index.c:354:5: note: +1, nesting level increased to 6
                                ALLOC_GROW(entries, nr_entries+1, nr_alloc);
                                ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/split-index.c:357:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (is_null_oid(&ce->oid))
                        ^
/datasets/git/split-index.c:362:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < istate->cache_nr; i++) {
        ^
/datasets/git/split-index.c:364:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((!si->base || !ce->index) && !(ce->ce_flags & CE_REMOVE)) {
                ^
/datasets/git/split-index.c:364:33: note: +1
                if ((!si->base || !ce->index) && !(ce->ce_flags & CE_REMOVE)) {
                                              ^
/datasets/git/split-index.c:364:18: note: +1
                if ((!si->base || !ce->index) && !(ce->ce_flags & CE_REMOVE)) {
                               ^
/datasets/git/split-index.c:365:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        assert(!(ce->ce_flags & CE_STRIP_NAME));
                        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/split-index.c:365:4: note: nesting level increased to 3
                        assert(!(ce->ce_flags & CE_STRIP_NAME));
                        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/split-index.c:365:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        assert(!(ce->ce_flags & CE_STRIP_NAME));
                        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/split-index.c:365:4: note: +1, nesting level increased to 4
                        assert(!(ce->ce_flags & CE_STRIP_NAME));
                        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/split-index.c:366:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        ALLOC_GROW(entries, nr_entries+1, nr_alloc);
                        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/split-index.c:366:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        ALLOC_GROW(entries, nr_entries+1, nr_alloc);
                        ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/split-index.c:366:4: note: +5, including nesting penalty of 4, nesting level increased to 5
                        ALLOC_GROW(entries, nr_entries+1, nr_alloc);
                        ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/split-index.c:366:4: note: +1, nesting level increased to 5
                        ALLOC_GROW(entries, nr_entries+1, nr_alloc);
                        ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/split-index.c:223:22: warning: variable name 'si' is too short, expected at least 3 characters [readability-identifier-length]
        struct split_index *si = init_split_index(istate);
                            ^
/datasets/git/split-index.c:224:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct cache_entry **entries = NULL, *ce;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/split-index.c:224:40: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
        struct cache_entry **entries = NULL, *ce;
                                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/split-index.c:224:40: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/split-index.c:225:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, nr_entries = 0, nr_alloc = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./refs/../cache.h:339:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        unsigned int cache_nr, cache_alloc, cache_changed;
        ^
/datasets/git/split-index.c:225:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, nr_entries = 0, nr_alloc = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/split-index.c:225:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/./refs/../cache.h:339:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        unsigned int cache_nr, cache_alloc, cache_changed;
        ^
/datasets/git/split-index.c:238:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < istate->cache_nr; i++) {
                ^
/datasets/git/split-index.c:223:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct split_index *si = init_split_index(istate);
        ^
/datasets/git/split-index.c:238:15: warning: backward branch (for loop) is ID-dependent due to member reference to 'cache_nr' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < istate->cache_nr; i++) {
                            ^
/datasets/git/split-index.c:239:24: warning: variable 'base' is not initialized [cppcoreguidelines-init-variables]
                        struct cache_entry *base;
                                            ^
                                                 = NULL
/datasets/git/split-index.c:266:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ce->ce_flags |= CE_MATCHED; /* or "shared" */
                        ^
/datasets/git/split-index.c:266:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ce->ce_flags |= CE_MATCHED; /* or "shared" */
                                        ^
/datasets/git/./refs/../cache.h:181:31: note: expanded from macro 'CE_MATCHED'
#define CE_MATCHED           (1 << 26)
                              ^
/datasets/git/split-index.c:270:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (ce->ce_flags & CE_UPDATE_IN_BASE) {
                                    ^
/datasets/git/split-index.c:270:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (ce->ce_flags & CE_UPDATE_IN_BASE) {
                                                   ^
/datasets/git/./refs/../cache.h:183:31: note: expanded from macro 'CE_UPDATE_IN_BASE'
#define CE_UPDATE_IN_BASE    (1 << 27)
                              ^
/datasets/git/split-index.c:270:43: warning: repeated branch in conditional chain [bugprone-branch-clone]
                                if (ce->ce_flags & CE_UPDATE_IN_BASE) {
                                                                      ^
/datasets/git/split-index.c:281:6: note: end of the original
                                } else if (!ce_uptodate(ce) &&
                                 ^
/datasets/git/split-index.c:291:12: note: clone 1 starts here
                                } else {
                                       ^
/datasets/git/split-index.c:281:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                } else if (!ce_uptodate(ce) &&
                                            ^
/datasets/git/./refs/../cache.h:243:26: note: expanded from macro 'ce_uptodate'
#define ce_uptodate(ce) ((ce)->ce_flags & CE_UPTODATE)
                         ^                ~~~~~~~~~~~
/datasets/git/split-index.c:290:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        ce->ce_flags |= CE_UPDATE_IN_BASE;
                                        ^
/datasets/git/split-index.c:290:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        ce->ce_flags |= CE_UPDATE_IN_BASE;
                                                        ^
/datasets/git/./refs/../cache.h:183:31: note: expanded from macro 'CE_UPDATE_IN_BASE'
#define CE_UPDATE_IN_BASE    (1 << 27)
                              ^
/datasets/git/split-index.c:302:8: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                            strcmp(ce->name, base->name)) {
                            ^
                                                         != 0
/datasets/git/split-index.c:311:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (ce->ce_flags & CE_UPDATE_IN_BASE) {
                            ^
/datasets/git/split-index.c:311:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (ce->ce_flags & CE_UPDATE_IN_BASE) {
                                           ^
/datasets/git/./refs/../cache.h:183:31: note: expanded from macro 'CE_UPDATE_IN_BASE'
#define CE_UPDATE_IN_BASE    (1 << 27)
                              ^
/datasets/git/split-index.c:321:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        } else if (!ce_uptodate(ce) &&
                                    ^
/datasets/git/./refs/../cache.h:243:26: note: expanded from macro 'ce_uptodate'
#define ce_uptodate(ce) ((ce)->ce_flags & CE_UPTODATE)
                         ^                ~~~~~~~~~~~
/datasets/git/split-index.c:329:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                ce->ce_flags |= CE_UPDATE_IN_BASE;
                                ^
/datasets/git/split-index.c:329:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                ce->ce_flags |= CE_UPDATE_IN_BASE;
                                                ^
/datasets/git/./refs/../cache.h:183:31: note: expanded from macro 'CE_UPDATE_IN_BASE'
#define CE_UPDATE_IN_BASE    (1 << 27)
                              ^
/datasets/git/split-index.c:340:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (compare_ce_content(ce, base))
                                                                 ^
                                                                  {
/datasets/git/split-index.c:341:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        ce->ce_flags |= CE_UPDATE_IN_BASE;
                                        ^
/datasets/git/split-index.c:341:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        ce->ce_flags |= CE_UPDATE_IN_BASE;
                                                        ^
/datasets/git/./refs/../cache.h:183:31: note: expanded from macro 'CE_UPDATE_IN_BASE'
#define CE_UPDATE_IN_BASE    (1 << 27)
                              ^
/datasets/git/split-index.c:346:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'si' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < si->base->cache_nr; i++) {
                            ^
/datasets/git/split-index.c:348:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if ((ce->ce_flags & CE_REMOVE) ||
                             ^
/datasets/git/split-index.c:348:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if ((ce->ce_flags & CE_REMOVE) ||
                                            ^
/datasets/git/./refs/../cache.h:168:31: note: expanded from macro 'CE_REMOVE'
#define CE_REMOVE            (1 << 17)
                              ^
/datasets/git/split-index.c:349:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !(ce->ce_flags & CE_MATCHED))
                              ^
/datasets/git/split-index.c:349:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !(ce->ce_flags & CE_MATCHED))
                                             ^
/datasets/git/./refs/../cache.h:181:31: note: expanded from macro 'CE_MATCHED'
#define CE_MATCHED           (1 << 26)
                              ^
/datasets/git/split-index.c:349:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            !(ce->ce_flags & CE_MATCHED))
                                                         ^
                                                          {
/datasets/git/split-index.c:351:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        else if (ce->ce_flags & CE_UPDATE_IN_BASE) {
                                 ^
/datasets/git/split-index.c:351:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        else if (ce->ce_flags & CE_UPDATE_IN_BASE) {
                                                ^
/datasets/git/./refs/../cache.h:183:31: note: expanded from macro 'CE_UPDATE_IN_BASE'
#define CE_UPDATE_IN_BASE    (1 << 27)
                              ^
/datasets/git/split-index.c:353:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                ce->ce_flags |= CE_STRIP_NAME;
                                ^
/datasets/git/split-index.c:353:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                ce->ce_flags |= CE_STRIP_NAME;
                                                ^
/datasets/git/./refs/../cache.h:184:31: note: expanded from macro 'CE_STRIP_NAME'
#define CE_STRIP_NAME        (1 << 28)
                              ^
/datasets/git/split-index.c:354:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                ALLOC_GROW(entries, nr_entries+1, nr_alloc);
                                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/split-index.c:354:5: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                                ALLOC_GROW(entries, nr_entries+1, nr_alloc);
                                ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/split-index.c:357:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (is_null_oid(&ce->oid))
                                                  ^
                                                   {
/datasets/git/split-index.c:362:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'cache_nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < istate->cache_nr; i++) {
                    ^
/datasets/git/split-index.c:364:38: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((!si->base || !ce->index) && !(ce->ce_flags & CE_REMOVE)) {
                                                   ^
/datasets/git/split-index.c:364:53: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((!si->base || !ce->index) && !(ce->ce_flags & CE_REMOVE)) {
                                                                  ^
/datasets/git/./refs/../cache.h:168:31: note: expanded from macro 'CE_REMOVE'
#define CE_REMOVE            (1 << 17)
                              ^
/datasets/git/split-index.c:365:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        assert(!(ce->ce_flags & CE_STRIP_NAME));
                                 ^
/usr/include/assert.h:108:20: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                   ^~~~
/datasets/git/split-index.c:365:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        assert(!(ce->ce_flags & CE_STRIP_NAME));
                                                ^
/datasets/git/./refs/../cache.h:184:31: note: expanded from macro 'CE_STRIP_NAME'
#define CE_STRIP_NAME        (1 << 28)
                              ^
/usr/include/assert.h:108:20: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                   ^~~~
/datasets/git/split-index.c:366:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        ALLOC_GROW(entries, nr_entries+1, nr_alloc);
                        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/split-index.c:366:4: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                        ALLOC_GROW(entries, nr_entries+1, nr_alloc);
                        ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/split-index.c:369:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ce->ce_flags &= ~CE_MATCHED;
                ^               ~~~~~~~~~~~
/datasets/git/split-index.c:369:19: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                ce->ce_flags &= ~CE_MATCHED;
                                ^
/datasets/git/split-index.c:369:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ce->ce_flags &= ~CE_MATCHED;
                                 ^
/datasets/git/./refs/../cache.h:181:31: note: expanded from macro 'CE_MATCHED'
#define CE_MATCHED           (1 << 26)
                              ^
/datasets/git/split-index.c:384:22: warning: variable name 'si' is too short, expected at least 3 characters [readability-identifier-length]
        struct split_index *si = init_split_index(istate);
                            ^
/datasets/git/split-index.c:397:22: warning: variable name 'si' is too short, expected at least 3 characters [readability-identifier-length]
        struct split_index *si = istate->split_index;
                            ^
/datasets/git/split-index.c:398:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!si)
                ^
                 {
/datasets/git/split-index.c:402:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (si->refcount)
                         ^
                          {
/datasets/git/split-index.c:411:79: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
void save_or_free_index_entry(struct index_state *istate, struct cache_entry *ce)
                                                                              ^
/datasets/git/split-index.c:417:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            ce == istate->split_index->base->cache[ce->index - 1])
                                                                  ^
                                                                   {
/datasets/git/split-index.c:418:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ce->ce_flags |= CE_REMOVE;
                ^
/datasets/git/split-index.c:418:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ce->ce_flags |= CE_REMOVE;
                                ^
/datasets/git/./refs/../cache.h:168:31: note: expanded from macro 'CE_REMOVE'
#define CE_REMOVE            (1 << 17)
                              ^
/datasets/git/split-index.c:419:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/split-index.c:432:75: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (old_entry != istate->split_index->base->cache[new_entry->index - 1])
                                                                                        ^
                                                                                         {
/datasets/git/split-index.c:442:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                istate->cache_changed |= SPLIT_INDEX_ORDERED;
                ^
/datasets/git/split-index.c:442:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                istate->cache_changed |= SPLIT_INDEX_ORDERED;
                                         ^
/datasets/git/./refs/../cache.h:304:30: note: expanded from macro 'SPLIT_INDEX_ORDERED'
#define SPLIT_INDEX_ORDERED     (1 << 6)
                                 ^
/datasets/git/split-index.c:477:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                istate->cache_changed |= SOMETHING_CHANGED;
                ^
/datasets/git/split-index.c:477:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                istate->cache_changed |= SOMETHING_CHANGED;
                                         ^
/datasets/git/./refs/../cache.h:298:28: note: expanded from macro 'SOMETHING_CHANGED'
#define SOMETHING_CHANGED       (1 << 0) /* unclassified changes go here */
                                 ^
stable-qsort.c:8:13: warning: function 'msort_with_tmp' is within a recursive call chain [misc-no-recursion]
static void msort_with_tmp(void *b, size_t n, size_t s,
            ^
stable-qsort.c:8:13: note: example recursive call chain, starting from function 'msort_with_tmp'
stable-qsort.c:24:2: note: Frame #1: function 'msort_with_tmp' calls function 'msort_with_tmp' here:
        msort_with_tmp(b1, n1, s, cmp, t);
        ^
stable-qsort.c:24:2: note: ... which was the starting point of the recursive call chain; there may be other cycles
stable-qsort.c:8:34: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static void msort_with_tmp(void *b, size_t n, size_t s,
                                 ^
stable-qsort.c:8:54: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void msort_with_tmp(void *b, size_t n, size_t s,
                                                     ^
stable-qsort.c:10:13: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
                           char *t)
                                 ^
/datasets/git/stable-qsort.c:12:8: warning: variable 'tmp' is not initialized [cppcoreguidelines-init-variables]
        char *tmp;
              ^
                  = NULL
/datasets/git/stable-qsort.c:13:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *b1, *b2;
        ^~~~~~~~~~~~~~
/datasets/git/stable-qsort.c:13:8: warning: variable 'b1' is not initialized [cppcoreguidelines-init-variables]
        char *b1, *b2;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/stable-qsort.c:13:8: warning: variable name 'b1' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/stable-qsort.c:13:13: warning: variable 'b2' is not initialized [cppcoreguidelines-init-variables]
        char *b1, *b2;
                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/stable-qsort.c:13:13: warning: variable name 'b2' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/stable-qsort.c:14:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t n1, n2;
        ^~~~~~~~~~~~~~
/datasets/git/stable-qsort.c:14:9: warning: variable 'n1' is not initialized [cppcoreguidelines-init-variables]
        size_t n1, n2;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/stable-qsort.c:14:9: warning: variable name 'n1' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/stable-qsort.c:14:13: warning: variable 'n2' is not initialized [cppcoreguidelines-init-variables]
        size_t n1, n2;
                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/stable-qsort.c:14:13: warning: variable name 'n2' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/stable-qsort.c:16:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (n <= 1)
                   ^
                    {
/datasets/git/stable-qsort.c:29:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (n1 > 0 && n2 > 0) {
        ^
/datasets/git/stable-qsort.c:29:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'n1' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (n1 > 0 && n2 > 0) {
               ^
/datasets/git/stable-qsort.c:31:4: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memcpy(tmp, b1, s);
                        ^~~~~~
/datasets/git/stable-qsort.c:31:4: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                        memcpy(tmp, b1, s);
                        ^~~~~~
/datasets/git/stable-qsort.c:36:4: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memcpy(tmp, b2, s);
                        ^~~~~~
/datasets/git/stable-qsort.c:36:4: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                        memcpy(tmp, b2, s);
                        ^~~~~~
/datasets/git/stable-qsort.c:42:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (n1 > 0)
                   ^
                    {
/datasets/git/stable-qsort.c:43:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(tmp, b1, n1 * s);
                ^~~~~~
/datasets/git/stable-qsort.c:43:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(tmp, b1, n1 * s);
                ^~~~~~
/datasets/git/stable-qsort.c:44:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(b, t, (n - n2) * s);
        ^~~~~~
/datasets/git/stable-qsort.c:44:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(b, t, (n - n2) * s);
        ^~~~~~
/datasets/git/stable-qsort.c:47:29: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
void git_stable_qsort(void *b, size_t n, size_t s,
                            ^
/datasets/git/stable-qsort.c:47:49: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
void git_stable_qsort(void *b, size_t n, size_t s,
                                                ^
/datasets/git/stable-qsort.c:51:8: warning: variable 'tmp' is not initialized [cppcoreguidelines-init-variables]
        char *tmp;
              ^
                  = NULL
/datasets/git/strbuf.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "refs.h"
^        ~~~~~~~~
         "date.h"
/datasets/git/strbuf.c:9:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; ; str++, prefix++)
        ^
/datasets/git/strbuf.c:9:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (; ; str++, prefix++)
                                 ^
                                  {
/datasets/git/strbuf.c:10:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!*prefix)
                             ^
                              {
/datasets/git/strbuf.c:12:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (*str != *prefix)
                                         ^
                                          {
/datasets/git/strbuf.c:18:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; ; str++, prefix++)
        ^
/datasets/git/strbuf.c:18:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (; ; str++, prefix++)
                                 ^
                                  {
/datasets/git/strbuf.c:19:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!*prefix)
                             ^
                              {
/datasets/git/strbuf.c:21:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (tolower(*str) != tolower(*prefix))
                                                           ^
                                                            {
/datasets/git/strbuf.c:28:14: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        const char *p;
                    ^
                      = NULL
/datasets/git/strbuf.c:28:14: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/strbuf.c:30:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!skip_prefix(str, prefix, &p))
                                          ^
                                           {
/datasets/git/strbuf.c:34:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (arg)
                        ^
                         {
/datasets/git/strbuf.c:39:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*p != '=')
                      ^
                       {
/datasets/git/strbuf.c:42:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (arg)
                ^
                 {
/datasets/git/strbuf.c:52:6: warning: variable 'strbuf_slopbuf' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
char strbuf_slopbuf[1];
     ^
/datasets/git/strbuf.c:54:33: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void strbuf_init(struct strbuf *sb, size_t hint)
                                ^
/datasets/git/strbuf.c:57:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(sb, &blank, sizeof(*sb));
        ^~~~~~
/datasets/git/strbuf.c:57:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(sb, &blank, sizeof(*sb));
        ^~~~~~
/datasets/git/strbuf.c:58:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (hint)
                 ^
                  {
/datasets/git/strbuf.c:62:36: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void strbuf_release(struct strbuf *sb)
                                   ^
/datasets/git/strbuf.c:70:36: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
char *strbuf_detach(struct strbuf *sb, size_t *sz)
                                   ^
/datasets/git/strbuf.c:70:48: warning: parameter name 'sz' is too short, expected at least 3 characters [readability-identifier-length]
char *strbuf_detach(struct strbuf *sb, size_t *sz)
                                               ^
/datasets/git/strbuf.c:72:8: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        char *res;
              ^
                  = NULL
/datasets/git/strbuf.c:75:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (sz)
               ^
                {
/datasets/git/strbuf.c:81:35: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void strbuf_attach(struct strbuf *sb, void *buf, size_t len, size_t alloc)
                                  ^
/datasets/git/strbuf.c:81:50: warning: 2 adjacent parameters of 'strbuf_attach' of similar type ('size_t') are easily swapped by mistake [bugprone-easily-swappable-parameters]
void strbuf_attach(struct strbuf *sb, void *buf, size_t len, size_t alloc)
                                                 ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/strbuf.c:81:57: note: the first parameter in the range is 'len'
void strbuf_attach(struct strbuf *sb, void *buf, size_t len, size_t alloc)
                                                        ^~~
/datasets/git/strbuf.c:81:69: note: the last parameter in the range is 'alloc'
void strbuf_attach(struct strbuf *sb, void *buf, size_t len, size_t alloc)
                                                                    ^~~~~
/datasets/git/strbuf.c:91:33: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void strbuf_grow(struct strbuf *sb, size_t extra)
                                ^
/datasets/git/strbuf.c:95:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            unsigned_add_overflows(sb->len, extra + 1))
                                                       ^
                                                        {
/datasets/git/strbuf.c:97:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (new_buf)
                    ^
                     {
/datasets/git/strbuf.c:99:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(sb->buf, sb->len + extra + 1, sb->alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/strbuf.c:100:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (new_buf)
                    ^
                     {
/datasets/git/strbuf.c:101:14: warning: Array access (via field 'buf') results in a null pointer dereference [clang-analyzer-core.NullDereference]
                sb->buf[0] = '\0';
                           ^
/datasets/git/strbuf.c:1005:6: note: Assuming the condition is false
        if (!*fmt)
            ^~~~~
/datasets/git/strbuf.c:1005:2: note: Taking false branch
        if (!*fmt)
        ^
/datasets/git/strbuf.c:1017:2: note: Loop condition is true.  Entering loop body
        for (;;) {
        ^
/datasets/git/strbuf.c:1019:3: note: Calling 'strbuf_add'
                strbuf_add(&munged_fmt, fmt, percent - fmt);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/strbuf.c:298:2: note: Calling 'strbuf_grow'
        strbuf_grow(sb, len);
        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/strbuf.c:94:6: note: Assuming the condition is false
        if (unsigned_add_overflows(extra, 1) ||
            ^
/datasets/git/./git-compat-util.h:131:6: note: expanded from macro 'unsigned_add_overflows'
    ((b) > maximum_unsigned_value_of_type(a) - (a))
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/strbuf.c:94:6: note: Left side of '||' is false
        if (unsigned_add_overflows(extra, 1) ||
            ^
/datasets/git/./git-compat-util.h:131:5: note: expanded from macro 'unsigned_add_overflows'
    ((b) > maximum_unsigned_value_of_type(a) - (a))
    ^
/datasets/git/strbuf.c:95:6: note: Assuming the condition is false
            unsigned_add_overflows(sb->len, extra + 1))
            ^
/datasets/git/./git-compat-util.h:131:6: note: expanded from macro 'unsigned_add_overflows'
    ((b) > maximum_unsigned_value_of_type(a) - (a))
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/strbuf.c:94:2: note: Taking false branch
        if (unsigned_add_overflows(extra, 1) ||
        ^
/datasets/git/strbuf.c:97:6: note: 'new_buf' is 1
        if (new_buf)
            ^~~~~~~
/datasets/git/strbuf.c:97:2: note: Taking true branch
        if (new_buf)
        ^
/datasets/git/strbuf.c:99:2: note: Assuming the condition is true
        ALLOC_GROW(sb->buf, sb->len + extra + 1, sb->alloc);
        ^
/datasets/git/./refs/../cache.h:702:7: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                    ^~~~~~~~~~~~
/datasets/git/strbuf.c:99:2: note: Taking true branch
        ALLOC_GROW(sb->buf, sb->len + extra + 1, sb->alloc);
        ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/strbuf.c:99:2: note: Assuming the condition is false
        ALLOC_GROW(sb->buf, sb->len + extra + 1, sb->alloc);
        ^
/datasets/git/./refs/../cache.h:703:8: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                            ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./refs/../cache.h:655:21: note: expanded from macro 'alloc_nr'
#define alloc_nr(x) (((x)+16)*3/2)
                    ^
/datasets/git/strbuf.c:99:2: note: Taking false branch
        ALLOC_GROW(sb->buf, sb->len + extra + 1, sb->alloc);
        ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/strbuf.c:99:2: note: Loop condition is false.  Exiting loop
        ALLOC_GROW(sb->buf, sb->len + extra + 1, sb->alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/strbuf.c:100:6: note: 'new_buf' is 1
        if (new_buf)
            ^~~~~~~
/datasets/git/strbuf.c:100:2: note: Taking true branch
        if (new_buf)
        ^
/datasets/git/strbuf.c:298:2: note: Returning from 'strbuf_grow'
        strbuf_grow(sb, len);
        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/strbuf.c:300:2: note: Calling 'strbuf_setlen'
        strbuf_setlen(sb, sb->len + len);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./strbuf.h:162:17: note: Field 'alloc' is 24
        if (len > (sb->alloc ? sb->alloc - 1 : 0))
                       ^
/datasets/git/./strbuf.h:162:13: note: '?' condition is true
        if (len > (sb->alloc ? sb->alloc - 1 : 0))
                   ^
/datasets/git/./strbuf.h:162:2: note: Taking false branch
        if (len > (sb->alloc ? sb->alloc - 1 : 0))
        ^
/datasets/git/./strbuf.h:165:6: note: Assuming 'strbuf_slopbuf' is not equal to field 'buf'
        if (sb->buf != strbuf_slopbuf)
            ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./strbuf.h:165:2: note: Taking true branch
        if (sb->buf != strbuf_slopbuf)
        ^
/datasets/git/./strbuf.h:169:1: note: Returning without writing to 'sb->alloc', which participates in a condition later
}
^
/datasets/git/./strbuf.h:169:1: note: Returning without writing to 'sb->buf'
/datasets/git/strbuf.c:300:2: note: Returning from 'strbuf_setlen'
        strbuf_setlen(sb, sb->len + len);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/strbuf.c:1019:3: note: Returning from 'strbuf_add'
                strbuf_add(&munged_fmt, fmt, percent - fmt);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/strbuf.c:1020:7: note: Assuming the condition is false
                if (!*percent)
                    ^~~~~~~~~
/datasets/git/strbuf.c:1020:3: note: Taking false branch
                if (!*percent)
                ^
/datasets/git/strbuf.c:1023:3: note: Control jumps to 'case 122:'  at line 1035
                switch (*fmt) {
                ^
/datasets/git/strbuf.c:1038:4: note:  Execution continues on line 1017
                        break;
                        ^
/datasets/git/strbuf.c:1017:2: note: Loop condition is true.  Entering loop body
        for (;;) {
        ^
/datasets/git/strbuf.c:1019:3: note: Calling 'strbuf_add'
                strbuf_add(&munged_fmt, fmt, percent - fmt);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/strbuf.c:298:2: note: Calling 'strbuf_grow'
        strbuf_grow(sb, len);
        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/strbuf.c:93:16: note: Assuming field 'alloc' is 0
        int new_buf = !sb->alloc;
                      ^~~~~~~~~~
/datasets/git/strbuf.c:94:6: note: Assuming the condition is false
        if (unsigned_add_overflows(extra, 1) ||
            ^
/datasets/git/./git-compat-util.h:131:6: note: expanded from macro 'unsigned_add_overflows'
    ((b) > maximum_unsigned_value_of_type(a) - (a))
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/strbuf.c:94:6: note: Left side of '||' is false
        if (unsigned_add_overflows(extra, 1) ||
            ^
/datasets/git/./git-compat-util.h:131:5: note: expanded from macro 'unsigned_add_overflows'
    ((b) > maximum_unsigned_value_of_type(a) - (a))
    ^
/datasets/git/strbuf.c:95:6: note: Assuming the condition is false
            unsigned_add_overflows(sb->len, extra + 1))
            ^
/datasets/git/./git-compat-util.h:131:6: note: expanded from macro 'unsigned_add_overflows'
    ((b) > maximum_unsigned_value_of_type(a) - (a))
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/strbuf.c:94:2: note: Taking false branch
        if (unsigned_add_overflows(extra, 1) ||
        ^
/datasets/git/strbuf.c:97:6: note: 'new_buf' is 1
        if (new_buf)
            ^~~~~~~
/datasets/git/strbuf.c:97:2: note: Taking true branch
        if (new_buf)
        ^
/datasets/git/strbuf.c:98:3: note: Null pointer value stored to 'munged_fmt.buf'
                sb->buf = NULL;
                ^~~~~~~~~~~~~~
/datasets/git/strbuf.c:99:2: note: Assuming the condition is false
        ALLOC_GROW(sb->buf, sb->len + extra + 1, sb->alloc);
        ^
/datasets/git/./refs/../cache.h:702:7: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                    ^~~~~~~~~~~~
/datasets/git/strbuf.c:99:2: note: Taking false branch
        ALLOC_GROW(sb->buf, sb->len + extra + 1, sb->alloc);
        ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/strbuf.c:99:2: note: Loop condition is false.  Exiting loop
        ALLOC_GROW(sb->buf, sb->len + extra + 1, sb->alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/strbuf.c:100:6: note: 'new_buf' is 1
        if (new_buf)
            ^~~~~~~
/datasets/git/strbuf.c:100:2: note: Taking true branch
        if (new_buf)
        ^
/datasets/git/strbuf.c:101:14: note: Array access (via field 'buf') results in a null pointer dereference
                sb->buf[0] = '\0';
                    ~~~    ^
/datasets/git/strbuf.c:104:33: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void strbuf_trim(struct strbuf *sb)
                                ^
/datasets/git/strbuf.c:110:34: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void strbuf_rtrim(struct strbuf *sb)
                                 ^
/datasets/git/strbuf.c:112:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (sb->len > 0 && isspace((unsigned char)sb->buf[sb->len - 1]))
        ^
/datasets/git/strbuf.c:112:9: warning: backward branch (while loop) is ID-dependent due to member reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (sb->len > 0 && isspace((unsigned char)sb->buf[sb->len - 1]))
               ^
/datasets/git/strbuf.c:112:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        while (sb->len > 0 && isspace((unsigned char)sb->buf[sb->len - 1]))
                              ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/strbuf.c:112:69: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (sb->len > 0 && isspace((unsigned char)sb->buf[sb->len - 1]))
                                                                           ^
                                                                            {
/datasets/git/strbuf.c:117:50: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void strbuf_trim_trailing_dir_sep(struct strbuf *sb)
                                                 ^
/datasets/git/strbuf.c:119:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (sb->len > 0 && is_dir_sep((unsigned char)sb->buf[sb->len - 1]))
        ^
/datasets/git/strbuf.c:119:9: warning: backward branch (while loop) is ID-dependent due to member reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (sb->len > 0 && is_dir_sep((unsigned char)sb->buf[sb->len - 1]))
               ^
/datasets/git/strbuf.c:119:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (sb->len > 0 && is_dir_sep((unsigned char)sb->buf[sb->len - 1]))
                                                                              ^
                                                                               {
/datasets/git/strbuf.c:124:50: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void strbuf_trim_trailing_newline(struct strbuf *sb)
                                                 ^
/datasets/git/strbuf.c:127:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (--sb->len > 0 && sb->buf[sb->len - 1] == '\r')
                                                                  ^
                                                                   {
/datasets/git/strbuf.c:133:34: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void strbuf_ltrim(struct strbuf *sb)
                                 ^
/datasets/git/strbuf.c:135:2: note: inferred assignment of ID-dependent value from ID-dependent member buf [altera-id-dependent-backward-branch]
        char *b = sb->buf;
        ^
/datasets/git/strbuf.c:135:8: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        char *b = sb->buf;
              ^
/datasets/git/strbuf.c:136:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (sb->len > 0 && isspace(*b)) {
        ^
/datasets/git/strbuf.c:136:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'b' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (sb->len > 0 && isspace(*b)) {
               ^
/datasets/git/strbuf.c:136:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        while (sb->len > 0 && isspace(*b)) {
                              ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/strbuf.c:140:2: warning: Call to function 'memmove' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memmove_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memmove(sb->buf, b, sb->len);
        ^~~~~~~
/datasets/git/strbuf.c:140:2: note: Call to function 'memmove' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memmove_s' in case of C11
        memmove(sb->buf, b, sb->len);
        ^~~~~~~
/datasets/git/strbuf.c:144:36: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
int strbuf_reencode(struct strbuf *sb, const char *from, const char *to)
                                   ^
/datasets/git/strbuf.c:144:70: warning: parameter name 'to' is too short, expected at least 3 characters [readability-identifier-length]
int strbuf_reencode(struct strbuf *sb, const char *from, const char *to)
                                                                     ^
/datasets/git/strbuf.c:146:8: warning: variable 'out' is not initialized [cppcoreguidelines-init-variables]
        char *out;
              ^
                  = NULL
/datasets/git/strbuf.c:147:9: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        size_t len;
               ^
                   = 0
/datasets/git/strbuf.c:149:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (same_encoding(from, to))
                                    ^
                                     {
/datasets/git/strbuf.c:153:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!out)
                 ^
                  {
/datasets/git/strbuf.c:160:36: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void strbuf_tolower(struct strbuf *sb)
                                   ^
/datasets/git/strbuf.c:162:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *p = sb->buf, *end = sb->buf + sb->len;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/strbuf.c:162:8: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        char *p = sb->buf, *end = sb->buf + sb->len;
              ^
/datasets/git/strbuf.c:163:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; p < end; p++)
        ^
/datasets/git/strbuf.c:163:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; p < end; p++)
               ^
/datasets/git/strbuf.c:163:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (; p < end; p++)
                            ^
                             {
/datasets/git/strbuf.c:168:6: warning: 2 adjacent parameters of 'strbuf_split_buf' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                 int terminator, int max)
                                 ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/strbuf.c:168:10: note: the first parameter in the range is 'terminator'
                                 int terminator, int max)
                                     ^~~~~~~~~~
/datasets/git/strbuf.c:168:26: note: the last parameter in the range is 'max'
                                 int terminator, int max)
                                                     ^~~
/datasets/git/strbuf.c:171:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t nr = 0, alloc = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/strbuf.c:167:51: note: inferred assignment of ID-dependent value from ID-dependent variable len [altera-id-dependent-backward-branch]
struct strbuf **strbuf_split_buf(const char *str, size_t slen,
                                                  ^
/datasets/git/strbuf.c:171:9: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
        size_t nr = 0, alloc = 0;
               ^
/datasets/git/strbuf.c:172:17: warning: variable 't' is not initialized [cppcoreguidelines-init-variables]
        struct strbuf *t;
                       ^
                         = NULL
/datasets/git/strbuf.c:172:17: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/strbuf.c:174:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'slen' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (slen) {
               ^
/datasets/git/strbuf.c:175:13: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int len = slen;
                          ^
/datasets/git/strbuf.c:178:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (end)
                                ^
                                 {
/datasets/git/strbuf.c:179:11: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                len = end - str + 1;
                                      ^
/datasets/git/strbuf.c:184:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                ALLOC_GROW(ret, nr + 2, alloc);
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/strbuf.c:184:3: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                ALLOC_GROW(ret, nr + 2, alloc);
                ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/strbuf.c:189:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(ret, nr + 1, alloc); /* In case string was empty */
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/strbuf.c:189:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_GROW(ret, nr + 1, alloc); /* In case string was empty */
        ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/strbuf.c:198:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct string_list_item *item;
        ^
/datasets/git/strbuf.c:198:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/strbuf.c:201:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(item, slist) {
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/strbuf.c:201:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(item, slist) {
                                  ^
/datasets/git/strbuf.c:202:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (sep_needed)
                               ^
                                {
/datasets/git/strbuf.c:211:18: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf **s = sbs;
                        ^
/datasets/git/strbuf.c:213:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!s)
               ^
                {
/datasets/git/strbuf.c:215:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*s) {
        ^
/datasets/git/strbuf.c:215:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 's' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (*s) {
               ^
/datasets/git/strbuf.c:222:37: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
int strbuf_cmp(const struct strbuf *a, const struct strbuf *b)
                                    ^
/datasets/git/strbuf.c:222:61: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
int strbuf_cmp(const struct strbuf *a, const struct strbuf *b)
                                                            ^
/datasets/git/strbuf.c:226:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cmp)
                ^
                 {
/datasets/git/strbuf.c:231:35: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void strbuf_splice(struct strbuf *sb, size_t pos, size_t len,
                                  ^
/datasets/git/strbuf.c:234:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unsigned_add_overflows(pos, len))
                                             ^
                                              {
/datasets/git/strbuf.c:236:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pos > sb->len)
                          ^
                           {
/datasets/git/strbuf.c:238:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pos + len > sb->len)
                                ^
                                 {
/datasets/git/strbuf.c:241:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (dlen >= len)
                        ^
                         {
/datasets/git/strbuf.c:243:2: warning: Call to function 'memmove' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memmove_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memmove(sb->buf + pos + dlen,
        ^~~~~~~
/datasets/git/strbuf.c:243:2: note: Call to function 'memmove' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memmove_s' in case of C11
        memmove(sb->buf + pos + dlen,
        ^~~~~~~
/datasets/git/strbuf.c:246:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(sb->buf + pos, data, dlen);
        ^~~~~~
/datasets/git/strbuf.c:246:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(sb->buf + pos, data, dlen);
        ^~~~~~
/datasets/git/strbuf.c:250:35: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void strbuf_insert(struct strbuf *sb, size_t pos, const void *data, size_t len)
                                  ^
/datasets/git/strbuf.c:255:37: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void strbuf_vinsertf(struct strbuf *sb, size_t pos, const char *fmt, va_list ap)
                                    ^
/datasets/git/strbuf.c:255:78: warning: parameter name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
void strbuf_vinsertf(struct strbuf *sb, size_t pos, const char *fmt, va_list ap)
                                                                             ^
/datasets/git/strbuf.c:257:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int len, len2;
        ^~~~~~~~~~~~~~
/datasets/git/strbuf.c:257:6: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int len, len2;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/strbuf.c:257:11: warning: variable 'len2' is not initialized [cppcoreguidelines-init-variables]
        int len, len2;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/strbuf.c:258:7: warning: variable 'save' is not initialized [cppcoreguidelines-init-variables]
        char save;
             ^
                  = 0
/datasets/git/strbuf.c:259:10: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
        va_list cp;
                ^
/datasets/git/strbuf.c:261:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pos > sb->len)
                          ^
                           {
/datasets/git/strbuf.c:264:8: warning: Call to function 'vsnprintf' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'vsnprintf_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        len = vsnprintf(sb->buf + sb->len, 0, fmt, cp);
              ^~~~~~~~~
/datasets/git/strbuf.c:264:8: note: Call to function 'vsnprintf' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'vsnprintf_s' in case of C11
        len = vsnprintf(sb->buf + sb->len, 0, fmt, cp);
              ^~~~~~~~~
/datasets/git/strbuf.c:264:8: warning: Function 'vsnprintf' is called with an uninitialized va_list argument [clang-analyzer-valist.Uninitialized]
        len = vsnprintf(sb->buf + sb->len, 0, fmt, cp);
              ^
/datasets/git/strbuf.c:287:2: note: Calling 'strbuf_vinsertf'
        strbuf_vinsertf(sb, pos, fmt, ap);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/strbuf.c:261:6: note: Assuming 'pos' is <= field 'len'
        if (pos > sb->len)
            ^~~~~~~~~~~~~
/datasets/git/strbuf.c:261:2: note: Taking false branch
        if (pos > sb->len)
        ^
/datasets/git/strbuf.c:264:8: note: Function 'vsnprintf' is called with an uninitialized va_list argument
        len = vsnprintf(sb->buf + sb->len, 0, fmt, cp);
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/strbuf.c:266:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len < 0)
                    ^
                     {
/datasets/git/strbuf.c:268:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!len)
                 ^
                  {
/datasets/git/strbuf.c:270:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unsigned_add_overflows(sb->len, len))
                                                 ^
                                                  {
/datasets/git/strbuf.c:273:2: warning: Call to function 'memmove' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memmove_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memmove(sb->buf + pos + len, sb->buf + pos, sb->len - pos);
        ^~~~~~~
/datasets/git/strbuf.c:273:2: note: Call to function 'memmove' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memmove_s' in case of C11
        memmove(sb->buf + pos + len, sb->buf + pos, sb->len - pos);
        ^~~~~~~
/datasets/git/strbuf.c:276:9: warning: Call to function 'vsnprintf' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'vsnprintf_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        len2 = vsnprintf(sb->buf + pos, len + 1, fmt, ap);
               ^~~~~~~~~
/datasets/git/strbuf.c:276:9: note: Call to function 'vsnprintf' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'vsnprintf_s' in case of C11
        len2 = vsnprintf(sb->buf + pos, len + 1, fmt, ap);
               ^~~~~~~~~
/datasets/git/strbuf.c:278:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len2 != len)
                        ^
                         {
/datasets/git/strbuf.c:283:36: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void strbuf_insertf(struct strbuf *sb, size_t pos, const char *fmt, ...)
                                   ^
/datasets/git/strbuf.c:285:10: warning: variable name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
        va_list ap;
                ^
/datasets/git/strbuf.c:291:35: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void strbuf_remove(struct strbuf *sb, size_t pos, size_t len)
                                  ^
/datasets/git/strbuf.c:296:32: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void strbuf_add(struct strbuf *sb, const void *data, size_t len)
                               ^
/datasets/git/strbuf.c:299:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(sb->buf + sb->len, data, len);
        ^~~~~~
/datasets/git/strbuf.c:299:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(sb->buf + sb->len, data, len);
        ^~~~~~
/datasets/git/strbuf.c:303:35: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void strbuf_addbuf(struct strbuf *sb, const struct strbuf *sb2)
                                  ^
/datasets/git/strbuf.c:306:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(sb->buf + sb->len, sb2->buf, sb2->len);
        ^~~~~~
/datasets/git/strbuf.c:306:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(sb->buf + sb->len, sb2->buf, sb2->len);
        ^~~~~~
/datasets/git/strbuf.c:313:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!argc)
                  ^
                   {
/datasets/git/strbuf.c:317:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (--argc) {
        ^
/datasets/git/strbuf.c:325:37: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void strbuf_addchars(struct strbuf *sb, int c, size_t n)
                                    ^
/datasets/git/strbuf.c:325:45: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
void strbuf_addchars(struct strbuf *sb, int c, size_t n)
                                            ^
/datasets/git/strbuf.c:328:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(sb->buf + sb->len, c, n);
        ^~~~~~
/datasets/git/strbuf.c:328:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(sb->buf + sb->len, c, n);
        ^~~~~~
/datasets/git/strbuf.c:332:33: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void strbuf_addf(struct strbuf *sb, const char *fmt, ...)
                                ^
/datasets/git/strbuf.c:334:10: warning: variable name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
        va_list ap;
                ^
/datasets/git/strbuf.c:343:21: note: inferred assignment of ID-dependent value from ID-dependent variable next [altera-id-dependent-backward-branch]
                        const char *buf, size_t size)
                                         ^
/datasets/git/strbuf.c:345:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (size) {
        ^
/datasets/git/strbuf.c:345:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'size' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (size) {
               ^
/datasets/git/strbuf.c:346:15: warning: variable 'prefix' is not initialized [cppcoreguidelines-init-variables]
                const char *prefix;
                            ^
                                   = NULL
/datasets/git/strbuf.c:372:43: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void strbuf_commented_addf(struct strbuf *sb, const char *fmt, ...)
                                          ^
/datasets/git/strbuf.c:383:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (incomplete_line)
                            ^
                             {
/datasets/git/strbuf.c:389:34: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void strbuf_vaddf(struct strbuf *sb, const char *fmt, va_list ap)
                                 ^
/datasets/git/strbuf.c:389:63: warning: parameter name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
void strbuf_vaddf(struct strbuf *sb, const char *fmt, va_list ap)
                                                              ^
/datasets/git/strbuf.c:391:6: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int len;
            ^
                = 0
/datasets/git/strbuf.c:392:10: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
        va_list cp;
                ^
/datasets/git/strbuf.c:394:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strbuf_avail(sb))
                              ^
                               {
/datasets/git/strbuf.c:395:19: warning: 64 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                strbuf_grow(sb, 64);
                                ^
/datasets/git/strbuf.c:397:8: warning: Call to function 'vsnprintf' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'vsnprintf_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        len = vsnprintf(sb->buf + sb->len, sb->alloc - sb->len, fmt, cp);
              ^~~~~~~~~
/datasets/git/strbuf.c:397:8: note: Call to function 'vsnprintf' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'vsnprintf_s' in case of C11
        len = vsnprintf(sb->buf + sb->len, sb->alloc - sb->len, fmt, cp);
              ^~~~~~~~~
/datasets/git/strbuf.c:397:8: warning: Function 'vsnprintf' is called with an uninitialized va_list argument [clang-analyzer-valist.Uninitialized]
        len = vsnprintf(sb->buf + sb->len, sb->alloc - sb->len, fmt, cp);
              ^
/datasets/git/strbuf.c:992:8: note: Calling 'xstrvfmt'
        ret = xstrvfmt(fmt, ap);
              ^~~~~~~~~~~~~~~~~
/datasets/git/strbuf.c:982:2: note: Calling 'strbuf_vaddf'
        strbuf_vaddf(&buf, fmt, ap);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/strbuf.c:394:2: note: Taking true branch
        if (!strbuf_avail(sb))
        ^
/datasets/git/strbuf.c:397:8: note: Function 'vsnprintf' is called with an uninitialized va_list argument
        len = vsnprintf(sb->buf + sb->len, sb->alloc - sb->len, fmt, cp);
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/strbuf.c:399:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len < 0)
                    ^
                     {
/datasets/git/strbuf.c:403:9: warning: Call to function 'vsnprintf' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'vsnprintf_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                len = vsnprintf(sb->buf + sb->len, sb->alloc - sb->len, fmt, ap);
                      ^~~~~~~~~
/datasets/git/strbuf.c:403:9: note: Call to function 'vsnprintf' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'vsnprintf_s' in case of C11
                len = vsnprintf(sb->buf + sb->len, sb->alloc - sb->len, fmt, ap);
                      ^~~~~~~~~
/datasets/git/strbuf.c:404:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (len > strbuf_avail(sb))
                                           ^
                                            {
/datasets/git/strbuf.c:410:35: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void strbuf_expand(struct strbuf *sb, const char *format, expand_fn_t fn,
                                  ^
/datasets/git/strbuf.c:410:71: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
void strbuf_expand(struct strbuf *sb, const char *format, expand_fn_t fn,
                                                                      ^
/datasets/git/strbuf.c:413:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/strbuf.c:414:15: warning: variable 'percent' is not initialized [cppcoreguidelines-init-variables]
                const char *percent;
                            ^
                                    = NULL
/datasets/git/strbuf.c:415:10: warning: variable 'consumed' is not initialized [cppcoreguidelines-init-variables]
                size_t consumed;
                       ^
                                = 0
/datasets/git/strbuf.c:419:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!*percent)
                              ^
                               {
/datasets/git/strbuf.c:430:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (consumed)
                             ^
                              {
/datasets/git/strbuf.c:432:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/strbuf.c:437:48: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
size_t strbuf_expand_literal_cb(struct strbuf *sb,
                                               ^
/datasets/git/strbuf.c:441:6: warning: variable 'ch' is not initialized [cppcoreguidelines-init-variables]
        int ch;
            ^
               = 0
/datasets/git/strbuf.c:441:6: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/strbuf.c:450:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ch < 0)
                           ^
                            {
/datasets/git/strbuf.c:458:45: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
size_t strbuf_expand_dict_cb(struct strbuf *sb, const char *placeholder,
                                            ^
/datasets/git/strbuf.c:461:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct strbuf_expand_dict_entry *e = context;
        ^
/datasets/git/strbuf.c:461:35: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf_expand_dict_entry *e = context;
                                         ^
/datasets/git/strbuf.c:462:9: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        size_t len;
               ^
                   = 0
/datasets/git/strbuf.c:464:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; e->placeholder && (len = strlen(e->placeholder)); e++) {
        ^
/datasets/git/strbuf.c:464:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'e' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; e->placeholder && (len = strlen(e->placeholder)); e++) {
               ^
/datasets/git/strbuf.c:466:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (e->value)
                                     ^
                                      {
/datasets/git/strbuf.c:476:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t i, len = src->len;
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/strbuf.c:476:2: note: inferred assignment of ID-dependent value from ID-dependent member len [altera-id-dependent-backward-branch]
/datasets/git/strbuf.c:476:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i, len = src->len;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/strbuf.c:476:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/strbuf.c:478:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < len; i++) {
        ^
/datasets/git/strbuf.c:478:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < len; i++) {
                    ^
/datasets/git/strbuf.c:479:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (src->buf[i] == '%')
                                       ^
                                        {
/datasets/git/strbuf.c:489:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t i, len = strlen(src);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/strbuf.c:489:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/strbuf.c:489:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i, len = strlen(src);
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/strbuf.c:489:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/strbuf.c:491:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < len; i++) {
        ^
/datasets/git/strbuf.c:491:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < len; i++) {
                    ^
/datasets/git/strbuf.c:492:17: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
                unsigned char ch = src[i];
                              ^
/datasets/git/strbuf.c:493:13: warning: 0x1F is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (ch <= 0x1F || ch >= 0x7F ||
                          ^
/datasets/git/strbuf.c:493:27: warning: 0x7F is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (ch <= 0x1F || ch >= 0x7F ||
                                        ^
/datasets/git/strbuf.c:494:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (ch == '/' && (flags & STRBUF_ENCODE_SLASH)) ||
                                   ^~~~~
/datasets/git/strbuf.c:495:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    strchr(URL_UNSAFE_CHARS, ch))
                                                 ^
                                                  {
/datasets/git/strbuf.c:496:31: warning: redundant cast to the same type [google-readability-casting]
                        strbuf_addf(dst, "%%%02X", (unsigned char)ch);
                                                   ^~~~~~~~~~~~~~~
/datasets/git/strbuf.c:497:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/strbuf.c:502:36: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
size_t strbuf_fread(struct strbuf *sb, size_t size, FILE *f)
                                   ^
/datasets/git/strbuf.c:502:59: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
size_t strbuf_fread(struct strbuf *sb, size_t size, FILE *f)
                                                          ^
/datasets/git/strbuf.c:504:9: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        size_t res;
               ^
                   = 0
/datasets/git/strbuf.c:509:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (res > 0)
                    ^
                     {
/datasets/git/strbuf.c:511:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (oldalloc == 0)
                               ^
                                {
/datasets/git/strbuf.c:516:36: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
ssize_t strbuf_read(struct strbuf *sb, int fd, size_t hint)
                                   ^
/datasets/git/strbuf.c:516:40: warning: 2 adjacent parameters of 'strbuf_read' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
ssize_t strbuf_read(struct strbuf *sb, int fd, size_t hint)
                                       ^~~~~~~~~~~~~~~~~~~
/datasets/git/strbuf.c:516:44: note: the first parameter in the range is 'fd'
ssize_t strbuf_read(struct strbuf *sb, int fd, size_t hint)
                                           ^~
/datasets/git/strbuf.c:516:55: note: the last parameter in the range is 'hint'
ssize_t strbuf_read(struct strbuf *sb, int fd, size_t hint)
                                                      ^~~~
/datasets/git/strbuf.c:516:40: note: 
ssize_t strbuf_read(struct strbuf *sb, int fd, size_t hint)
                                       ^
/datasets/git/strbuf.c:516:48: note: 'int' and 'size_t' may be implicitly converted: 'int' -> 'size_t' (as 'unsigned long'), 'size_t' (as 'unsigned long') -> 'int'
ssize_t strbuf_read(struct strbuf *sb, int fd, size_t hint)
                                               ^
/datasets/git/strbuf.c:516:44: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
ssize_t strbuf_read(struct strbuf *sb, int fd, size_t hint)
                                           ^
/datasets/git/strbuf.c:521:32: warning: 8192 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        strbuf_grow(sb, hint ? hint : 8192);
                                      ^
/datasets/git/strbuf.c:522:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/strbuf.c:523:18: warning: narrowing conversion from 'unsigned long' to signed type 'ssize_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                ssize_t want = sb->alloc - sb->len - 1;
                               ^
/datasets/git/strbuf.c:527:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (oldalloc == 0)
                                          ^
                                           {
/datasets/git/strbuf.c:529:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/strbuf.c:534:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (got < want)
                               ^
                                {
/datasets/git/strbuf.c:536:19: warning: 8192 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                strbuf_grow(sb, 8192);
                                ^
/datasets/git/strbuf.c:540:9: warning: narrowing conversion from 'unsigned long' to signed type 'ssize_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return sb->len - oldlen;
               ^
/datasets/git/strbuf.c:543:41: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
ssize_t strbuf_read_once(struct strbuf *sb, int fd, size_t hint)
                                        ^
/datasets/git/strbuf.c:543:45: warning: 2 adjacent parameters of 'strbuf_read_once' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
ssize_t strbuf_read_once(struct strbuf *sb, int fd, size_t hint)
                                            ^~~~~~~~~~~~~~~~~~~
/datasets/git/strbuf.c:543:49: note: the first parameter in the range is 'fd'
ssize_t strbuf_read_once(struct strbuf *sb, int fd, size_t hint)
                                                ^~
/datasets/git/strbuf.c:543:60: note: the last parameter in the range is 'hint'
ssize_t strbuf_read_once(struct strbuf *sb, int fd, size_t hint)
                                                           ^~~~
/datasets/git/strbuf.c:543:45: note: 
ssize_t strbuf_read_once(struct strbuf *sb, int fd, size_t hint)
                                            ^
/datasets/git/strbuf.c:543:53: note: 'int' and 'size_t' may be implicitly converted: 'int' -> 'size_t' (as 'unsigned long'), 'size_t' (as 'unsigned long') -> 'int'
ssize_t strbuf_read_once(struct strbuf *sb, int fd, size_t hint)
                                                    ^
/datasets/git/strbuf.c:543:49: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
ssize_t strbuf_read_once(struct strbuf *sb, int fd, size_t hint)
                                                ^
/datasets/git/strbuf.c:546:10: warning: variable 'cnt' is not initialized [cppcoreguidelines-init-variables]
        ssize_t cnt;
                ^
                    = 0
/datasets/git/strbuf.c:548:32: warning: 8192 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        strbuf_grow(sb, hint ? hint : 8192);
                                      ^
/datasets/git/strbuf.c:550:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cnt > 0)
                    ^
                     {
/datasets/git/strbuf.c:552:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (oldalloc == 0)
                               ^
                                {
/datasets/git/strbuf.c:557:37: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
ssize_t strbuf_write(struct strbuf *sb, FILE *f)
                                    ^
/datasets/git/strbuf.c:557:47: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
ssize_t strbuf_write(struct strbuf *sb, FILE *f)
                                              ^
/datasets/git/strbuf.c:559:19: warning: narrowing conversion from 'unsigned long' to signed type 'ssize_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return sb->len ? fwrite(sb->buf, 1, sb->len, f) : 0;
                         ^
/datasets/git/strbuf.c:564:36: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
int strbuf_readlink(struct strbuf *sb, const char *path, size_t hint)
                                   ^
/datasets/git/strbuf.c:568:13: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (hint < 32)
                   ^
/datasets/git/strbuf.c:568:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (hint < 32)
                      ^
                       {
/datasets/git/strbuf.c:569:10: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                hint = 32;
                       ^
/datasets/git/strbuf.c:571:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (hint < STRBUF_MAXLINK) {
        ^
/datasets/git/strbuf.c:571:16: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        while (hint < STRBUF_MAXLINK) {
                      ^
/datasets/git/strbuf.c:562:25: note: expanded from macro 'STRBUF_MAXLINK'
#define STRBUF_MAXLINK (2*PATH_MAX)
                        ^
/datasets/git/strbuf.c:571:16: note: make conversion explicit to silence this warning
        while (hint < STRBUF_MAXLINK) {
                      ^
/datasets/git/strbuf.c:562:25: note: expanded from macro 'STRBUF_MAXLINK'
#define STRBUF_MAXLINK (2*PATH_MAX)
                        ^~~~~~~~~~
/datasets/git/strbuf.c:571:16: note: perform multiplication in a wider type
        while (hint < STRBUF_MAXLINK) {
                      ^
/datasets/git/strbuf.c:562:25: note: expanded from macro 'STRBUF_MAXLINK'
#define STRBUF_MAXLINK (2*PATH_MAX)
                        ^
/datasets/git/strbuf.c:572:11: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
                ssize_t len;
                        ^
                            = 0
/datasets/git/strbuf.c:577:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (errno != ERANGE)
                                            ^
                                             {
/datasets/git/strbuf.c:587:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oldalloc == 0)
                          ^
                           {
/datasets/git/strbuf.c:592:34: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
int strbuf_getcwd(struct strbuf *sb)
                                 ^
/datasets/git/strbuf.c:595:23: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        size_t guessed_len = 128;
                             ^
/datasets/git/strbuf.c:597:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;; guessed_len *= 2) {
        ^
/datasets/git/strbuf.c:611:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (errno == EACCES && guessed_len < PATH_MAX)
                                                              ^
                                                               {
/datasets/git/strbuf.c:614:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (errno != ERANGE)
                                    ^
                                     {
/datasets/git/strbuf.c:617:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oldalloc == 0)
                          ^
                           {
/datasets/git/strbuf.c:619:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/strbuf.c:625:40: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
int strbuf_getwholeline(struct strbuf *sb, FILE *fp, int term)
                                       ^
/datasets/git/strbuf.c:625:50: warning: parameter name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
int strbuf_getwholeline(struct strbuf *sb, FILE *fp, int term)
                                                 ^
/datasets/git/strbuf.c:627:10: warning: variable 'r' is not initialized [cppcoreguidelines-init-variables]
        ssize_t r;
                ^
                  = 0
/datasets/git/strbuf.c:627:10: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/strbuf.c:629:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (feof(fp))
                     ^
                      {
/datasets/git/strbuf.c:635:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!sb->alloc)
                       ^
                        {
/datasets/git/strbuf.c:657:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (errno == ENOMEM)
                            ^
                             {
/datasets/git/strbuf.c:665:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!sb->buf)
                     ^
                      {
/datasets/git/strbuf.c:667:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/strbuf.c:697:43: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
int strbuf_appendwholeline(struct strbuf *sb, FILE *fp, int term)
                                          ^
/datasets/git/strbuf.c:697:53: warning: parameter name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
int strbuf_appendwholeline(struct strbuf *sb, FILE *fp, int term)
                                                    ^
/datasets/git/strbuf.c:700:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strbuf_getwholeline(&line, fp, term))
                                                 ^
                                                  {
/datasets/git/strbuf.c:707:43: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static int strbuf_getdelim(struct strbuf *sb, FILE *fp, int term)
                                          ^
/datasets/git/strbuf.c:707:53: warning: parameter name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
static int strbuf_getdelim(struct strbuf *sb, FILE *fp, int term)
                                                    ^
/datasets/git/strbuf.c:709:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strbuf_getwholeline(sb, fp, term))
                                              ^
                                               {
/datasets/git/strbuf.c:711:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (sb->buf[sb->len - 1] == term)
                                         ^
                                          {
/datasets/git/strbuf.c:716:35: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
int strbuf_getline(struct strbuf *sb, FILE *fp)
                                  ^
/datasets/git/strbuf.c:716:45: warning: parameter name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
int strbuf_getline(struct strbuf *sb, FILE *fp)
                                            ^
/datasets/git/strbuf.c:718:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strbuf_getwholeline(sb, fp, '\n'))
                                              ^
                                               {
/datasets/git/strbuf.c:722:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (sb->len && sb->buf[sb->len - 1] == '\r')
                                                            ^
                                                             {
/datasets/git/strbuf.c:728:38: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
int strbuf_getline_lf(struct strbuf *sb, FILE *fp)
                                     ^
/datasets/git/strbuf.c:728:48: warning: parameter name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
int strbuf_getline_lf(struct strbuf *sb, FILE *fp)
                                               ^
/datasets/git/strbuf.c:733:39: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
int strbuf_getline_nul(struct strbuf *sb, FILE *fp)
                                      ^
/datasets/git/strbuf.c:733:49: warning: parameter name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
int strbuf_getline_nul(struct strbuf *sb, FILE *fp)
                                                ^
/datasets/git/strbuf.c:738:43: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
int strbuf_getwholeline_fd(struct strbuf *sb, int fd, int term)
                                          ^
/datasets/git/strbuf.c:738:47: warning: 2 adjacent parameters of 'strbuf_getwholeline_fd' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
int strbuf_getwholeline_fd(struct strbuf *sb, int fd, int term)
                                              ^~~~~~~~~~~~~~~~
/datasets/git/strbuf.c:738:51: note: the first parameter in the range is 'fd'
int strbuf_getwholeline_fd(struct strbuf *sb, int fd, int term)
                                                  ^~
/datasets/git/strbuf.c:738:59: note: the last parameter in the range is 'term'
int strbuf_getwholeline_fd(struct strbuf *sb, int fd, int term)
                                                          ^~~~
/datasets/git/strbuf.c:738:51: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
int strbuf_getwholeline_fd(struct strbuf *sb, int fd, int term)
                                                  ^
/datasets/git/strbuf.c:742:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/strbuf.c:743:8: warning: variable 'ch' is not initialized [cppcoreguidelines-init-variables]
                char ch;
                     ^
                        = 0
/datasets/git/strbuf.c:743:8: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/strbuf.c:745:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (len <= 0)
                             ^
                              {
/datasets/git/strbuf.c:748:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ch == term)
                               ^
                                {
/datasets/git/strbuf.c:754:41: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
ssize_t strbuf_read_file(struct strbuf *sb, const char *path, size_t hint)
                                        ^
/datasets/git/strbuf.c:756:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/strbuf.c:756:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/strbuf.c:757:10: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        ssize_t len;
                ^
                    = 0
/datasets/git/strbuf.c:758:6: warning: variable 'saved_errno' is not initialized [cppcoreguidelines-init-variables]
        int saved_errno;
            ^
                        = 0
/datasets/git/strbuf.c:760:26: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
        fd = open(path, O_RDONLY);
                                ^
                                 | O_CLOEXEC
/datasets/git/strbuf.c:761:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fd < 0)
                   ^
                    {
/datasets/git/strbuf.c:780:63: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
void strbuf_addstr_xml_quoted(struct strbuf *buf, const char *s)
                                                              ^
/datasets/git/strbuf.c:780:51: note: inferred assignment of ID-dependent value from ID-dependent variable len [altera-id-dependent-backward-branch]
void strbuf_addstr_xml_quoted(struct strbuf *buf, const char *s)
                                                  ^
/datasets/git/strbuf.c:782:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*s) {
        ^
/datasets/git/strbuf.c:782:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 's' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (*s) {
               ^
/datasets/git/strbuf.c:806:44: warning: parameter name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
int is_rfc3986_reserved_or_unreserved(char ch)
                                           ^
/datasets/git/strbuf.c:808:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_rfc3986_unreserved(ch))
                                      ^
                                       {
/datasets/git/strbuf.c:810:2: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
        switch (ch) {
        ^
/datasets/git/strbuf.c:819:32: warning: parameter name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
int is_rfc3986_unreserved(char ch)
                               ^
/datasets/git/strbuf.c:821:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return isalnum(ch) ||
               ^
/datasets/git/./git-compat-util.h:1220:20: note: expanded from macro 'isalnum'
#define isalnum(x) sane_istest(x,GIT_ALPHA | GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/strbuf.c:825:49: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static void strbuf_add_urlencode(struct strbuf *sb, const char *s, size_t len,
                                                ^
/datasets/git/strbuf.c:825:65: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void strbuf_add_urlencode(struct strbuf *sb, const char *s, size_t len,
                                                                ^
/datasets/git/strbuf.c:829:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (len--) {
        ^
/datasets/git/strbuf.c:830:8: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
                char ch = *s++;
                     ^
/datasets/git/strbuf.c:831:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (allow_unencoded_fn(ch))
                                           ^
                                            {
/datasets/git/strbuf.c:833:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/strbuf.c:838:45: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void strbuf_addstr_urlencode(struct strbuf *sb, const char *s,
                                            ^
/datasets/git/strbuf.c:838:61: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
void strbuf_addstr_urlencode(struct strbuf *sb, const char *s,
                                                            ^
/datasets/git/strbuf.c:847:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (bytes > 1 << 30) {
                    ^
/datasets/git/strbuf.c:847:19: warning: 30 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (bytes > 1 << 30) {
                         ^
/datasets/git/strbuf.c:854:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            (unsigned)(bytes >> 30),
                                       ^~~~~
/datasets/git/strbuf.c:854:28: warning: 30 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            (unsigned)(bytes >> 30),
                                                ^
/datasets/git/strbuf.c:855:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            (unsigned)(bytes & ((1 << 30) - 1)) / 10737419);
                                       ^~~~~
/datasets/git/strbuf.c:855:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            (unsigned)(bytes & ((1 << 30) - 1)) / 10737419);
                                                 ^
/datasets/git/strbuf.c:855:34: warning: 30 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            (unsigned)(bytes & ((1 << 30) - 1)) / 10737419);
                                                      ^
/datasets/git/strbuf.c:855:46: warning: 10737419 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            (unsigned)(bytes & ((1 << 30) - 1)) / 10737419);
                                                                  ^
/datasets/git/strbuf.c:856:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        } else if (bytes > 1 << 20) {
                           ^
/datasets/git/strbuf.c:856:26: warning: 20 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        } else if (bytes > 1 << 20) {
                                ^
/datasets/git/strbuf.c:857:12: warning: variable name 'x' is too short, expected at least 3 characters [readability-identifier-length]
                unsigned x = bytes + 5243;  /* for rounding */
                         ^
/datasets/git/strbuf.c:857:24: warning: 5243 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                unsigned x = bytes + 5243;  /* for rounding */
                                     ^
/datasets/git/strbuf.c:864:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            x >> 20, ((x & ((1 << 20) - 1)) * 100) >> 20);
                            ^    ~~
/datasets/git/strbuf.c:864:13: warning: 20 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            x >> 20, ((x & ((1 << 20) - 1)) * 100) >> 20);
                                 ^
/datasets/git/strbuf.c:864:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            x >> 20, ((x & ((1 << 20) - 1)) * 100) >> 20);
                                     ^                                ~~
/datasets/git/strbuf.c:864:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            x >> 20, ((x & ((1 << 20) - 1)) * 100) >> 20);
                                       ^   ~~~~~~~~~~~~~~~
/datasets/git/strbuf.c:864:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            x >> 20, ((x & ((1 << 20) - 1)) * 100) >> 20);
                                             ^
/datasets/git/strbuf.c:864:30: warning: 20 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            x >> 20, ((x & ((1 << 20) - 1)) * 100) >> 20);
                                                  ^
/datasets/git/strbuf.c:864:42: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            x >> 20, ((x & ((1 << 20) - 1)) * 100) >> 20);
                                                              ^
/datasets/git/strbuf.c:864:50: warning: 20 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            x >> 20, ((x & ((1 << 20) - 1)) * 100) >> 20);
                                                                      ^
/datasets/git/strbuf.c:865:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        } else if (bytes > 1 << 10) {
                           ^
/datasets/git/strbuf.c:865:26: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        } else if (bytes > 1 << 10) {
                                ^
/datasets/git/strbuf.c:866:12: warning: variable name 'x' is too short, expected at least 3 characters [readability-identifier-length]
                unsigned x = bytes + 5;  /* for rounding */
                         ^
/datasets/git/strbuf.c:866:24: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                unsigned x = bytes + 5;  /* for rounding */
                                     ^
/datasets/git/strbuf.c:873:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            x >> 10, ((x & ((1 << 10) - 1)) * 100) >> 10);
                            ^    ~~
/datasets/git/strbuf.c:873:13: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            x >> 10, ((x & ((1 << 10) - 1)) * 100) >> 10);
                                 ^
/datasets/git/strbuf.c:873:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            x >> 10, ((x & ((1 << 10) - 1)) * 100) >> 10);
                                     ^                                ~~
/datasets/git/strbuf.c:873:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            x >> 10, ((x & ((1 << 10) - 1)) * 100) >> 10);
                                       ^   ~~~~~~~~~~~~~~~
/datasets/git/strbuf.c:873:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            x >> 10, ((x & ((1 << 10) - 1)) * 100) >> 10);
                                             ^
/datasets/git/strbuf.c:873:30: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            x >> 10, ((x & ((1 << 10) - 1)) * 100) >> 10);
                                                  ^
/datasets/git/strbuf.c:873:42: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            x >> 10, ((x & ((1 << 10) - 1)) * 100) >> 10);
                                                              ^
/datasets/git/strbuf.c:873:50: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            x >> 10, ((x & ((1 << 10) - 1)) * 100) >> 10);
                                                                      ^
/datasets/git/strbuf.c:895:46: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void strbuf_add_absolute_path(struct strbuf *sb, const char *path)
                                             ^
/datasets/git/strbuf.c:897:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!*path)
                   ^
                    {
/datasets/git/strbuf.c:900:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                struct stat cwd_stat, pwd_stat;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/strbuf.c:903:15: warning: function is not thread safe [concurrency-mt-unsafe]
                char *pwd = getenv("PWD");
                            ^
/datasets/git/strbuf.c:904:14: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (pwd && strcmp(pwd, cwd) &&
                           ^
                                            != 0
/datasets/git/strbuf.c:909:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    pwd_stat.st_ino == cwd_stat.st_ino)
                                                       ^
                                                        {
/datasets/git/strbuf.c:911:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/strbuf.c:913:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (sb->len > orig_len && !is_dir_sep(sb->buf[sb->len - 1]))
                                                                            ^
                                                                             {
/datasets/git/strbuf.c:920:42: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void strbuf_add_real_path(struct strbuf *sb, const char *path)
                                         ^
/datasets/git/strbuf.c:927:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/strbuf.c:933:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/strbuf.c:934:10: warning: variable name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
        va_list ap;
                ^
/datasets/git/strbuf.c:936:8: warning: Function 'vprintf' is called with an uninitialized va_list argument [clang-analyzer-valist.Uninitialized]
        ret = vprintf(fmt, ap);
              ^~~~~~~~~~~~~~~~
/datasets/git/strbuf.c:936:8: note: Function 'vprintf' is called with an uninitialized va_list argument
        ret = vprintf(fmt, ap);
              ^~~~~~~~~~~~~~~~
/datasets/git/strbuf.c:938:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret < 0 || putchar('\n') == EOF)
                                            ^
                                             {
/datasets/git/strbuf.c:943:22: warning: parameter name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
int fprintf_ln(FILE *fp, const char *fmt, ...)
                     ^
/datasets/git/strbuf.c:945:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/strbuf.c:946:10: warning: variable name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
        va_list ap;
                ^
/datasets/git/strbuf.c:948:8: warning: Function 'vfprintf' is called with an uninitialized va_list argument [clang-analyzer-valist.Uninitialized]
        ret = vfprintf(fp, fmt, ap);
              ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/strbuf.c:948:8: note: Function 'vfprintf' is called with an uninitialized va_list argument
        ret = vfprintf(fp, fmt, ap);
              ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/strbuf.c:950:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret < 0 || putc('\n', fp) == EOF)
                                             ^
                                              {
/datasets/git/strbuf.c:957:8: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        char *result;
              ^
                     = NULL
/datasets/git/strbuf.c:958:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t len, i;
        ^~~~~~~~~~~~~~
/datasets/git/strbuf.c:958:9: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        size_t len, i;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/strbuf.c:958:14: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t len, i;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/strbuf.c:958:14: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/strbuf.c:962:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < len; i++)
        ^
/datasets/git/strbuf.c:962:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < len; i++)
                    ^
/datasets/git/strbuf.c:962:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < len; i++)
                                 ^
                                  {
/datasets/git/strbuf.c:969:8: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        char *result;
              ^
                     = NULL
/datasets/git/strbuf.c:970:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t len, i;
        ^~~~~~~~~~~~~~
/datasets/git/strbuf.c:970:9: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        size_t len, i;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/strbuf.c:970:14: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t len, i;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/strbuf.c:970:14: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/strbuf.c:974:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < len; i++)
        ^
/datasets/git/strbuf.c:974:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < len; i++)
                    ^
/datasets/git/strbuf.c:974:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < len; i++)
                                 ^
                                  {
/datasets/git/strbuf.c:979:41: warning: parameter name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
char *xstrvfmt(const char *fmt, va_list ap)
                                        ^
/datasets/git/strbuf.c:988:10: warning: variable name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
        va_list ap;
                ^
/datasets/git/strbuf.c:989:8: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        char *ret;
              ^
                  = NULL
/datasets/git/strbuf.c:998:37: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void strbuf_addftime(struct strbuf *sb, const char *fmt, const struct tm *tm,
                                    ^
/datasets/git/strbuf.c:998:75: warning: parameter name 'tm' is too short, expected at least 3 characters [readability-identifier-length]
void strbuf_addftime(struct strbuf *sb, const char *fmt, const struct tm *tm,
                                                                          ^
/datasets/git/strbuf.c:999:8: warning: 2 adjacent parameters of 'strbuf_addftime' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                     int tz_offset, int suppress_tz_name)
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/strbuf.c:999:12: note: the first parameter in the range is 'tz_offset'
                     int tz_offset, int suppress_tz_name)
                         ^~~~~~~~~
/datasets/git/strbuf.c:999:27: note: the last parameter in the range is 'suppress_tz_name'
                     int tz_offset, int suppress_tz_name)
                                        ^~~~~~~~~~~~~~~~
/datasets/git/strbuf.c:1002:16: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        size_t hint = 128;
                      ^
/datasets/git/strbuf.c:1003:9: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        size_t len;
               ^
                   = 0
/datasets/git/strbuf.c:1005:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!*fmt)
                  ^
                   {
/datasets/git/strbuf.c:1017:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/strbuf.c:1020:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!*percent)
                              ^
                               {
/datasets/git/strbuf.c:1031:9: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                                    3600 * (tz_offset / 100) -
                                    ^
/datasets/git/strbuf.c:1031:9: note: make conversion explicit to silence this warning
                                    3600 * (tz_offset / 100) -
                                    ^~~~~~~~~~~~~~~~~~~~~~~~
                                    (unsigned long)(       )
/datasets/git/strbuf.c:1031:9: note: perform multiplication in a wider type
                                    3600 * (tz_offset / 100) -
                                    ^~~~
                                    (long)
/datasets/git/strbuf.c:1031:9: warning: 3600 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                    3600 * (tz_offset / 100) -
                                    ^
/datasets/git/strbuf.c:1031:29: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                    3600 * (tz_offset / 100) -
                                                        ^
/datasets/git/strbuf.c:1032:9: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                                    60 * (tz_offset % 100));
                                    ^
/datasets/git/strbuf.c:1032:9: note: make conversion explicit to silence this warning
                                    60 * (tz_offset % 100));
                                    ^~~~~~~~~~~~~~~~~~~~~~
                                    (unsigned long)(     )
/datasets/git/strbuf.c:1032:9: note: perform multiplication in a wider type
                                    60 * (tz_offset % 100));
                                    ^~
                                    (long)
/datasets/git/strbuf.c:1032:9: warning: 60 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                    60 * (tz_offset % 100));
                                    ^
/datasets/git/strbuf.c:1032:27: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                    60 * (tz_offset % 100));
                                                      ^
/datasets/git/strbuf.c:1063:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (!len) {
                ^
/datasets/git/strbuf.c:1063:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (!len) {
                       ^
/datasets/git/strbuf.c:1075:51: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void strbuf_repo_add_unique_abbrev(struct strbuf *sb, struct repository *repo,
                                                  ^
/datasets/git/strbuf.c:1078:6: warning: variable 'r' is not initialized [cppcoreguidelines-init-variables]
        int r;
            ^
              = 0
/datasets/git/strbuf.c:1078:6: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/strbuf.c:1084:46: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void strbuf_add_unique_abbrev(struct strbuf *sb, const struct object_id *oid,
                                             ^
/datasets/git/strbuf.c:1095:29: warning: pointer parameter 'line' can be pointer to const [readability-non-const-parameter]
static size_t cleanup(char *line, size_t len)
                            ^
                      const 
/datasets/git/strbuf.c:1097:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (len) {
        ^
/datasets/git/strbuf.c:1098:17: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                unsigned char c = line[len - 1];
                              ^
/datasets/git/strbuf.c:1099:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!isspace(c))
                     ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/strbuf.c:1099:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!isspace(c))
                                ^
                                 {
/datasets/git/strbuf.c:1122:39: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
void strbuf_stripspace(struct strbuf *sb, int skip_comments)
                                      ^
/datasets/git/strbuf.c:1125:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t i, j, len, newlen;
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/strbuf.c:1125:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/strbuf.c:1125:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i, j, len, newlen;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/strbuf.c:1125:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/strbuf.c:1125:12: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        size_t i, j, len, newlen;
                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/strbuf.c:1125:12: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/strbuf.c:1125:15: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        size_t i, j, len, newlen;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/strbuf.c:1125:20: warning: variable 'newlen' is not initialized [cppcoreguidelines-init-variables]
        size_t i, j, len, newlen;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/strbuf.c:1126:8: warning: variable 'eol' is not initialized [cppcoreguidelines-init-variables]
        char *eol;
              ^
                  = NULL
/datasets/git/strbuf.c:1131:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = j = 0; i < sb->len; i += len, j += newlen) {
        ^
/datasets/git/strbuf.c:1131:18: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = j = 0; i < sb->len; i += len, j += newlen) {
                        ^
/datasets/git/strbuf.c:1143:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (empties > 0 && j > 0)
                                                 ^
                                                  {
/datasets/git/strbuf.c:1146:4: warning: Call to function 'memmove' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memmove_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memmove(sb->buf + j, sb->buf + i, newlen);
                        ^~~~~~~
/datasets/git/strbuf.c:1146:4: note: Call to function 'memmove' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memmove_s' in case of C11
                        memmove(sb->buf + j, sb->buf + i, newlen);
                        ^~~~~~~
/datasets/git/strbuf.c:1180:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int fd, res = 0;
        ^~~~~~~~~~~~~~~~
/datasets/git/strbuf.c:1180:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd, res = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/strbuf.c:1180:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/strbuf.c:1182:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_absolute_path(path))
                                    ^
                                     {
/datasets/git/strbuf.c:1185:46: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
        fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, 0666);
                                                    ^
                                                     | O_CLOEXEC
/datasets/git/strbuf.c:1185:48: warning: 0666 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, 0666);
                                                      ^
/datasets/git/strbuf.c:1186:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fd < 0)
                   ^
                    {
/datasets/git/strbuf.c:1191:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else if (close(fd) < 0)
                                 ^
                                  {
/datasets/git/strbuf.c:1195:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (launch_editor(path, buffer, env) < 0)
                                                         ^
                                                          {
/datasets/git/streaming.c:5:1: warning: #includes are not sorted properly [llvm-include-order]
#include "streaming.h"
^        ~~~~~~~~~~~~~
         "object-store.h"
/datasets/git/streaming.c:18:1: warning: replace macro with enum [modernize-macro-to-enum]
#define FILTER_BUFFER (1024*16)
^~~~~~~~
                      =
/datasets/git/streaming.c:18:9: warning: macro 'FILTER_BUFFER' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define FILTER_BUFFER (1024*16)
        ^
/datasets/git/streaming.c:20:8: warning: accessing fields in struct 'filtered_istream' is inefficient due to padding; only needs 32804 bytes but is using 32808 bytes [altera-struct-pack-align]
struct filtered_istream {
       ^
/datasets/git/streaming.c:20:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'filtered_istream'
/datasets/git/streaming.c:20:8: warning: accessing fields in struct 'filtered_istream' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct filtered_istream {
       ^
/datasets/git/streaming.c:20:8: note: use "__attribute__((aligned(128)))" to align struct 'filtered_istream' to 128 bytes
/datasets/git/streaming.c:30:8: warning: accessing fields in struct 'git_istream' is inefficient due to padding; only needs 33004 bytes but is using 33008 bytes [altera-struct-pack-align]
struct git_istream {
       ^
/datasets/git/streaming.c:30:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'git_istream'
/datasets/git/streaming.c:30:8: warning: accessing fields in struct 'git_istream' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct git_istream {
       ^
/datasets/git/streaming.c:30:8: note: use "__attribute__((aligned(128)))" to align struct 'git_istream' to 128 bytes
/datasets/git/streaming.c:40:3: warning: accessing fields in struct '' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
                struct {
                ^
/datasets/git/streaming.c:40:3: note: use "__attribute__((aligned(16)))" to align struct '' to 16 bytes
/datasets/git/streaming.c:45:3: warning: accessing fields in struct '' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
                struct {
                ^
/datasets/git/streaming.c:45:3: note: use "__attribute__((aligned(64)))" to align struct '' to 64 bytes
/datasets/git/streaming.c:48:13: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        char hdr[32];
                                 ^
/datasets/git/streaming.c:53:3: warning: accessing fields in struct '' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
                struct {
                ^
/datasets/git/streaming.c:53:3: note: use "__attribute__((aligned(16)))" to align struct '' to 16 bytes
/datasets/git/streaming.c:68:55: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
static void close_deflated_stream(struct git_istream *st)
                                                      ^
/datasets/git/streaming.c:70:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (st->z_state == z_used)
                                  ^
                                   {
/datasets/git/streaming.c:81:55: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
static int close_istream_filtered(struct git_istream *st)
                                                      ^
/datasets/git/streaming.c:87:16: warning: function 'read_istream_filtered' has cognitive complexity of 27 (threshold 25) [readability-function-cognitive-complexity]
static ssize_t read_istream_filtered(struct git_istream *st, char *buf,
               ^
/datasets/git/streaming.c:93:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (sz) {
        ^
/datasets/git/streaming.c:95:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (fs->o_ptr < fs->o_end) {
                ^
/datasets/git/streaming.c:97:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (sz < to_move)
                        ^
/datasets/git/streaming.c:108:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (fs->i_ptr < fs->i_end) {
                ^
/datasets/git/streaming.c:111:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (stream_filter(fs->filter,
                        ^
/datasets/git/streaming.c:121:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (fs->input_finished) {
                ^
/datasets/git/streaming.c:123:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (stream_filter(fs->filter,
                        ^
/datasets/git/streaming.c:128:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!fs->o_end)
                        ^
/datasets/git/streaming.c:135:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!fs->input_finished) {
                ^
/datasets/git/streaming.c:137:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (fs->i_end < 0)
                        ^
/datasets/git/streaming.c:139:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (fs->i_end)
                        ^
/datasets/git/streaming.c:87:58: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
static ssize_t read_istream_filtered(struct git_istream *st, char *buf,
                                                         ^
/datasets/git/streaming.c:88:17: warning: parameter name 'sz' is too short, expected at least 3 characters [readability-identifier-length]
                                     size_t sz)
                                            ^
/datasets/git/streaming.c:88:10: note: inferred assignment of ID-dependent value from ID-dependent variable to_move [altera-id-dependent-backward-branch]
                                     size_t sz)
                                     ^
/datasets/git/streaming.c:90:27: warning: variable name 'fs' is too short, expected at least 3 characters [readability-identifier-length]
        struct filtered_istream *fs = &(st->u.filtered);
                                 ^
/datasets/git/streaming.c:93:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (sz) {
        ^
/datasets/git/streaming.c:93:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'sz' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (sz) {
               ^
/datasets/git/streaming.c:97:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (sz < to_move)
                                         ^
                                          {
/datasets/git/streaming.c:99:4: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memcpy(buf + filled, fs->obuf + fs->o_ptr, to_move);
                        ^~~~~~
/datasets/git/streaming.c:99:4: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                        memcpy(buf + filled, fs->obuf + fs->o_ptr, to_move);
                        ^~~~~~
/datasets/git/streaming.c:100:17: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        fs->o_ptr += to_move;
                                     ^
/datasets/git/streaming.c:110:24: warning: performing an implicit widening conversion to type 'size_t' (aka 'unsigned long') of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                        size_t to_receive = FILTER_BUFFER;
                                            ^
/datasets/git/streaming.c:18:24: note: expanded from macro 'FILTER_BUFFER'
#define FILTER_BUFFER (1024*16)
                       ^
/datasets/git/streaming.c:110:24: note: make conversion explicit to silence this warning
                        size_t to_receive = FILTER_BUFFER;
                                            ^
/datasets/git/streaming.c:18:24: note: expanded from macro 'FILTER_BUFFER'
#define FILTER_BUFFER (1024*16)
                       ^~~~~~~
/datasets/git/streaming.c:110:24: note: perform multiplication in a wider type
                        size_t to_receive = FILTER_BUFFER;
                                            ^
/datasets/git/streaming.c:18:24: note: expanded from macro 'FILTER_BUFFER'
#define FILTER_BUFFER (1024*16)
                       ^~~~
/datasets/git/streaming.c:113:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                          fs->obuf, &to_receive))
                                                                 ^
                                                                  {
/datasets/git/streaming.c:115:16: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        fs->i_ptr = fs->i_end - to_feed;
                                    ^
/datasets/git/streaming.c:116:16: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                        fs->o_end = FILTER_BUFFER - to_receive;
                                    ^
/datasets/git/streaming.c:18:24: note: expanded from macro 'FILTER_BUFFER'
#define FILTER_BUFFER (1024*16)
                       ^
/datasets/git/streaming.c:116:16: note: make conversion explicit to silence this warning
                        fs->o_end = FILTER_BUFFER - to_receive;
                                    ^
/datasets/git/streaming.c:18:24: note: expanded from macro 'FILTER_BUFFER'
#define FILTER_BUFFER (1024*16)
                       ^~~~~~~
/datasets/git/streaming.c:116:16: note: perform multiplication in a wider type
                        fs->o_end = FILTER_BUFFER - to_receive;
                                    ^
/datasets/git/streaming.c:18:24: note: expanded from macro 'FILTER_BUFFER'
#define FILTER_BUFFER (1024*16)
                       ^~~~
/datasets/git/streaming.c:122:24: warning: performing an implicit widening conversion to type 'size_t' (aka 'unsigned long') of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                        size_t to_receive = FILTER_BUFFER;
                                            ^
/datasets/git/streaming.c:18:24: note: expanded from macro 'FILTER_BUFFER'
#define FILTER_BUFFER (1024*16)
                       ^
/datasets/git/streaming.c:122:24: note: make conversion explicit to silence this warning
                        size_t to_receive = FILTER_BUFFER;
                                            ^
/datasets/git/streaming.c:18:24: note: expanded from macro 'FILTER_BUFFER'
#define FILTER_BUFFER (1024*16)
                       ^~~~~~~
/datasets/git/streaming.c:122:24: note: perform multiplication in a wider type
                        size_t to_receive = FILTER_BUFFER;
                                            ^
/datasets/git/streaming.c:18:24: note: expanded from macro 'FILTER_BUFFER'
#define FILTER_BUFFER (1024*16)
                       ^~~~
/datasets/git/streaming.c:125:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                          fs->obuf, &to_receive))
                                                                 ^
                                                                  {
/datasets/git/streaming.c:127:16: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                        fs->o_end = FILTER_BUFFER - to_receive;
                                    ^
/datasets/git/streaming.c:18:24: note: expanded from macro 'FILTER_BUFFER'
#define FILTER_BUFFER (1024*16)
                       ^
/datasets/git/streaming.c:127:16: note: make conversion explicit to silence this warning
                        fs->o_end = FILTER_BUFFER - to_receive;
                                    ^
/datasets/git/streaming.c:18:24: note: expanded from macro 'FILTER_BUFFER'
#define FILTER_BUFFER (1024*16)
                       ^~~~~~~
/datasets/git/streaming.c:127:16: note: perform multiplication in a wider type
                        fs->o_end = FILTER_BUFFER - to_receive;
                                    ^
/datasets/git/streaming.c:18:24: note: expanded from macro 'FILTER_BUFFER'
#define FILTER_BUFFER (1024*16)
                       ^~~~
/datasets/git/streaming.c:128:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!fs->o_end)
                                       ^
                                        {
/datasets/git/streaming.c:136:16: warning: narrowing conversion from 'ssize_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        fs->i_end = read_istream(fs->upstream, fs->ibuf, FILTER_BUFFER);
                                    ^
/datasets/git/streaming.c:136:53: warning: performing an implicit widening conversion to type 'size_t' (aka 'unsigned long') of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                        fs->i_end = read_istream(fs->upstream, fs->ibuf, FILTER_BUFFER);
                                                                         ^
/datasets/git/streaming.c:18:24: note: expanded from macro 'FILTER_BUFFER'
#define FILTER_BUFFER (1024*16)
                       ^
/datasets/git/streaming.c:136:53: note: make conversion explicit to silence this warning
                        fs->i_end = read_istream(fs->upstream, fs->ibuf, FILTER_BUFFER);
                                                                         ^
/datasets/git/streaming.c:18:24: note: expanded from macro 'FILTER_BUFFER'
#define FILTER_BUFFER (1024*16)
                       ^~~~~~~
/datasets/git/streaming.c:136:53: note: perform multiplication in a wider type
                        fs->i_end = read_istream(fs->upstream, fs->ibuf, FILTER_BUFFER);
                                                                         ^
/datasets/git/streaming.c:18:24: note: expanded from macro 'FILTER_BUFFER'
#define FILTER_BUFFER (1024*16)
                       ^~~~
/datasets/git/streaming.c:137:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (fs->i_end < 0)
                                          ^
                                           {
/datasets/git/streaming.c:139:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (fs->i_end)
                                      ^
                                       {
/datasets/git/streaming.c:144:9: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'ssize_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return filled;
               ^
/datasets/git/streaming.c:147:69: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
static struct git_istream *attach_stream_filter(struct git_istream *st,
                                                                    ^
/datasets/git/streaming.c:151:27: warning: variable name 'fs' is too short, expected at least 3 characters [readability-identifier-length]
        struct filtered_istream *fs = &(ifs->u.filtered);
                                 ^
/datasets/git/streaming.c:170:55: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
static ssize_t read_istream_loose(struct git_istream *st, char *buf, size_t sz)
                                                      ^
/datasets/git/streaming.c:170:77: warning: parameter name 'sz' is too short, expected at least 3 characters [readability-identifier-length]
static ssize_t read_istream_loose(struct git_istream *st, char *buf, size_t sz)
                                                                            ^
/datasets/git/streaming.c:172:2: note: inferred assignment of ID-dependent value from ID-dependent variable to_copy [altera-id-dependent-backward-branch]
        size_t total_read = 0;
        ^
/datasets/git/streaming.c:185:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (sz < to_copy)
                                 ^
                                  {
/datasets/git/streaming.c:187:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(buf, st->u.loose.hdr + st->u.loose.hdr_used, to_copy);
                ^~~~~~
/datasets/git/streaming.c:187:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(buf, st->u.loose.hdr + st->u.loose.hdr_used, to_copy);
                ^~~~~~
/datasets/git/streaming.c:188:27: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                st->u.loose.hdr_used += to_copy;
                                        ^
/datasets/git/streaming.c:192:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (total_read < sz) {
        ^
/datasets/git/streaming.c:192:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'total_read' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (total_read < sz) {
               ^
/datasets/git/streaming.c:193:7: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
                int status;
                    ^
                           = 0
/datasets/git/streaming.c:212:9: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'ssize_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return total_read;
               ^
/datasets/git/streaming.c:215:52: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
static int close_istream_loose(struct git_istream *st)
                                                   ^
/datasets/git/streaming.c:222:51: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
static int open_istream_loose(struct git_istream *st, struct repository *r,
                                                  ^
/datasets/git/streaming.c:222:74: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int open_istream_loose(struct git_istream *st, struct repository *r,
                                                                         ^
/datasets/git/streaming.c:226:21: warning: variable name 'oi' is too short, expected at least 3 characters [readability-identifier-length]
        struct object_info oi = OBJECT_INFO_INIT;
                           ^
/datasets/git/streaming.c:231:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!st->u.loose.mapped)
                                ^
                                 {
/datasets/git/streaming.c:242:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_loose_header(st->u.loose.hdr, &oi) < 0 || *type < 0)
                                                                      ^
                                                                       {
/datasets/git/streaming.c:245:25: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        st->u.loose.hdr_used = strlen(st->u.loose.hdr) + 1;
                               ^
/datasets/git/streaming.c:246:26: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        st->u.loose.hdr_avail = st->z.total_out;
                                ^
/datasets/git/streaming.c:265:64: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
static ssize_t read_istream_pack_non_delta(struct git_istream *st, char *buf,
                                                               ^
/datasets/git/streaming.c:266:16: warning: parameter name 'sz' is too short, expected at least 3 characters [readability-identifier-length]
                                           size_t sz)
                                                  ^
/datasets/git/streaming.c:268:2: note: inferred assignment of ID-dependent value from ID-dependent member next_out [altera-id-dependent-backward-branch]
        size_t total_read = 0;
        ^
/datasets/git/streaming.c:272:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(&st->z, 0, sizeof(st->z));
                ^~~~~~
/datasets/git/streaming.c:272:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(&st->z, 0, sizeof(st->z));
                ^~~~~~
/datasets/git/streaming.c:284:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (total_read < sz) {
        ^
/datasets/git/streaming.c:284:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'total_read' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (total_read < sz) {
               ^
/datasets/git/streaming.c:285:7: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
                int status;
                    ^
                           = 0
/datasets/git/streaming.c:287:18: warning: variable 'mapped' is not initialized [cppcoreguidelines-init-variables]
                unsigned char *mapped;
                               ^
                                      = NULL
/datasets/git/streaming.c:321:9: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'ssize_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return total_read;
               ^
/datasets/git/streaming.c:324:61: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
static int close_istream_pack_non_delta(struct git_istream *st)
                                                            ^
/datasets/git/streaming.c:330:60: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
static int open_istream_pack_non_delta(struct git_istream *st,
                                                           ^
/datasets/git/streaming.c:331:31: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
                                       struct repository *r UNUSED,
                                                          ^
/datasets/git/streaming.c:335:22: warning: variable 'window' is not initialized [cppcoreguidelines-init-variables]
        struct pack_window *window;
                            ^
                                   = NULL
/datasets/git/streaming.c:336:19: warning: variable 'in_pack_type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type in_pack_type;
                         ^
/datasets/git/streaming.c:368:53: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
static int close_istream_incore(struct git_istream *st)
                                                    ^
/datasets/git/streaming.c:374:56: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
static ssize_t read_istream_incore(struct git_istream *st, char *buf, size_t sz)
                                                       ^
/datasets/git/streaming.c:374:78: warning: parameter name 'sz' is too short, expected at least 3 characters [readability-identifier-length]
static ssize_t read_istream_incore(struct git_istream *st, char *buf, size_t sz)
                                                                             ^
/datasets/git/streaming.c:379:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (remainder <= read_size)
                                   ^
                                    {
/datasets/git/streaming.c:382:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(buf, st->u.incore.buf + st->u.incore.read_ptr, read_size);
                ^~~~~~
/datasets/git/streaming.c:382:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(buf, st->u.incore.buf + st->u.incore.read_ptr, read_size);
                ^~~~~~
/datasets/git/streaming.c:385:9: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'ssize_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return read_size;
               ^
/datasets/git/streaming.c:388:52: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
static int open_istream_incore(struct git_istream *st, struct repository *r,
                                                   ^
/datasets/git/streaming.c:388:75: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int open_istream_incore(struct git_istream *st, struct repository *r,
                                                                          ^
/datasets/git/streaming.c:403:47: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
static int istream_source(struct git_istream *st,
                                              ^
/datasets/git/streaming.c:404:25: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
                          struct repository *r,
                                             ^
/datasets/git/streaming.c:408:16: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size;
                      ^
                           = 0
/datasets/git/streaming.c:409:6: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int status;
            ^
                   = 0
/datasets/git/streaming.c:410:21: warning: variable name 'oi' is too short, expected at least 3 characters [readability-identifier-length]
        struct object_info oi = OBJECT_INFO_INIT;
                           ^
/datasets/git/streaming.c:415:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (status < 0)
                       ^
                        {
/datasets/git/streaming.c:440:39: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
int close_istream(struct git_istream *st)
                                      ^
/datasets/git/streaming.c:442:6: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        int r = st->close(st);
            ^
/datasets/git/streaming.c:447:42: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
ssize_t read_istream(struct git_istream *st, void *buf, size_t sz)
                                         ^
/datasets/git/streaming.c:447:64: warning: parameter name 'sz' is too short, expected at least 3 characters [readability-identifier-length]
ssize_t read_istream(struct git_istream *st, void *buf, size_t sz)
                                                               ^
/datasets/git/streaming.c:452:53: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
struct git_istream *open_istream(struct repository *r,
                                                    ^
/datasets/git/streaming.c:458:22: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct git_istream *st = xmalloc(sizeof(*st));
                            ^
/datasets/git/streaming.c:487:5: warning: function 'stream_blob_to_fd' has cognitive complexity of 31 (threshold 25) [readability-function-cognitive-complexity]
int stream_blob_to_fd(int fd, const struct object_id *oid, struct stream_filter *filter,
    ^
/datasets/git/streaming.c:497:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!st) {
        ^
/datasets/git/streaming.c:498:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (filter)
                ^
/datasets/git/streaming.c:502:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (type != OBJ_BLOB)
        ^
/datasets/git/streaming.c:504:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (;;) {
        ^
/datasets/git/streaming.c:509:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (readlen < 0)
                ^
/datasets/git/streaming.c:511:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!readlen)
                ^
/datasets/git/streaming.c:513:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (can_seek && sizeof(buf) == readlen) {
                ^
/datasets/git/streaming.c:513:16: note: +1
                if (can_seek && sizeof(buf) == readlen) {
                             ^
/datasets/git/streaming.c:514:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (holeto = 0; holeto < readlen; holeto++)
                        ^
/datasets/git/streaming.c:515:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (buf[holeto])
                                ^
/datasets/git/streaming.c:517:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (readlen == holeto) {
                        ^
/datasets/git/streaming.c:523:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (kept && lseek(fd, kept, SEEK_CUR) == (off_t) -1)
                ^
/datasets/git/streaming.c:523:12: note: +1
                if (kept && lseek(fd, kept, SEEK_CUR) == (off_t) -1)
                         ^
/datasets/git/streaming.c:525:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/streaming.c:529:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (wrote < 0)
                ^
/datasets/git/streaming.c:532:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (kept && (lseek(fd, kept - 1, SEEK_CUR) == (off_t) -1 ||
        ^
/datasets/git/streaming.c:532:11: note: +1
        if (kept && (lseek(fd, kept - 1, SEEK_CUR) == (off_t) -1 ||
                 ^
/datasets/git/streaming.c:532:59: note: +1
        if (kept && (lseek(fd, kept - 1, SEEK_CUR) == (off_t) -1 ||
                                                                 ^
/datasets/git/streaming.c:487:27: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
int stream_blob_to_fd(int fd, const struct object_id *oid, struct stream_filter *filter,
                          ^
/datasets/git/streaming.c:490:22: warning: variable 'st' is not initialized [cppcoreguidelines-init-variables]
        struct git_istream *st;
                            ^
                               = NULL
/datasets/git/streaming.c:490:22: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/streaming.c:491:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/streaming.c:492:16: warning: variable 'sz' is not initialized [cppcoreguidelines-init-variables]
        unsigned long sz;
                      ^
                         = 0
/datasets/git/streaming.c:492:16: warning: variable name 'sz' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/streaming.c:498:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (filter)
                           ^
                            {
/datasets/git/streaming.c:502:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (type != OBJ_BLOB)
                             ^
                              {
/datasets/git/streaming.c:505:12: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                char buf[1024 * 16];
                         ^
/datasets/git/streaming.c:505:19: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                char buf[1024 * 16];
                                ^
/datasets/git/streaming.c:506:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                ssize_t wrote, holeto;
                ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/streaming.c:506:11: warning: variable 'wrote' is not initialized [cppcoreguidelines-init-variables]
                ssize_t wrote, holeto;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/streaming.c:506:18: warning: variable 'holeto' is not initialized [cppcoreguidelines-init-variables]
                ssize_t wrote, holeto;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/streaming.c:509:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (readlen < 0)
                                ^
                                 {
/datasets/git/streaming.c:511:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!readlen)
                             ^
                              {
/datasets/git/streaming.c:514:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (holeto = 0; holeto < readlen; holeto++)
                        ^
/datasets/git/streaming.c:514:21: warning: backward branch (for loop) is ID-dependent due to variable reference to 'readlen' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (holeto = 0; holeto < readlen; holeto++)
                                         ^
/datasets/git/streaming.c:514:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (holeto = 0; holeto < readlen; holeto++)
                                                                    ^
                                                                     {
/datasets/git/streaming.c:515:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (buf[holeto])
                                                ^
                                                 {
/datasets/git/streaming.c:523:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (kept && lseek(fd, kept, SEEK_CUR) == (off_t) -1)
                                                                    ^
                                                                     {
/datasets/git/streaming.c:525:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/streaming.c:529:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (wrote < 0)
                              ^
                               {
/datasets/git/streaming.c:533:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                     xwrite(fd, "", 1) != 1))
                                             ^
                                              {
/datasets/git/string-list.c:7:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(list, &blank, sizeof(*list));
        ^~~~~~
/datasets/git/string-list.c:7:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(list, &blank, sizeof(*list));
        ^~~~~~
/datasets/git/string-list.c:13:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(list, &blank, sizeof(*list));
        ^~~~~~
/datasets/git/string-list.c:13:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(list, &blank, sizeof(*list));
        ^~~~~~
/datasets/git/string-list.c:21:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int left = -1, right = list->nr;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/string-list.c:21:2: note: inferred assignment of ID-dependent value from ID-dependent variable middle [altera-id-dependent-backward-branch]
/datasets/git/string-list.c:21:25: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int left = -1, right = list->nr;
                               ^
/datasets/git/string-list.c:24:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (left + 1 < right) {
        ^
/datasets/git/string-list.c:24:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'left' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (left + 1 < right) {
               ^
/datasets/git/string-list.c:27:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (compare < 0)
                                ^
                                 {
/datasets/git/string-list.c:29:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (compare > 0)
                                     ^
                                      {
/datasets/git/string-list.c:47:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (exact_match)
                        ^
                         {
/datasets/git/string-list.c:50:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(list->items, list->nr+1, list->alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/string-list.c:51:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (index < list->nr)
                             ^
                              {
/datasets/git/string-list.c:66:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (index < 0)
                      ^
                       {
/datasets/git/string-list.c:75:6: warning: variable 'exact_match' is not initialized [cppcoreguidelines-init-variables]
        int exact_match;
            ^
                        = 0
/datasets/git/string-list.c:76:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = get_entry_index(list, string, &exact_match);
            ^
/datasets/git/string-list.c:79:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (list->strdup_strings)
                                         ^
                                          {
/datasets/git/string-list.c:81:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (free_util)
                              ^
                               {
/datasets/git/string-list.c:91:6: warning: variable 'exact_match' is not initialized [cppcoreguidelines-init-variables]
        int exact_match;
            ^
                        = 0
/datasets/git/string-list.c:99:6: warning: variable 'exact_match' is not initialized [cppcoreguidelines-init-variables]
        int exact_match;
            ^
                        = 0
/datasets/git/string-list.c:101:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (exact_match)
                        ^
                         {
/datasets/git/string-list.c:108:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int exact_match, i = get_entry_index(list, string, &exact_match);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/string-list.c:108:6: warning: variable 'exact_match' is not initialized [cppcoreguidelines-init-variables]
        int exact_match, i = get_entry_index(list, string, &exact_match);
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/string-list.c:108:19: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int exact_match, i = get_entry_index(list, string, &exact_match);
                         ^
/datasets/git/string-list.c:109:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!exact_match)
                         ^
                          {
/datasets/git/string-list.c:117:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int src, dst;
                ^~~~~~~~~~~~~
/datasets/git/string-list.c:117:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/string-list.c:117:7: warning: variable 'src' is not initialized [cppcoreguidelines-init-variables]
                int src, dst;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/string-list.c:117:12: warning: variable 'dst' is not initialized [cppcoreguidelines-init-variables]
                int src, dst;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/string-list.c:119:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (src = dst = 1; src < list->nr; src++) {
                ^
/datasets/git/string-list.c:119:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 'src' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (src = dst = 1; src < list->nr; src++) {
                                    ^
/datasets/git/string-list.c:121:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (list->strdup_strings)
                                                         ^
                                                          {
/datasets/git/string-list.c:123:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (free_util)
                                              ^
                                               {
/datasets/git/string-list.c:125:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        } else
                              ^
                               {
/datasets/git/string-list.c:133:29: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
                         string_list_each_func_t fn, void *cb_data)
                                                 ^
/datasets/git/string-list.c:135:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, ret = 0;
        ^~~~~~~~~~~~~~~
/datasets/git/string-list.c:135:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, ret = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/string-list.c:135:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/string-list.c:136:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < list->nr; i++)
        ^
/datasets/git/string-list.c:136:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < list->nr; i++)
                    ^
/datasets/git/string-list.c:136:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < list->nr; i++)
                                      ^
                                       {
/datasets/git/string-list.c:137:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                if ((ret = fn(&list->items[i], cb_data)))
                     ^
/datasets/git/string-list.c:137:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/string-list.c:137:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/string-list.c:137:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((ret = fn(&list->items[i], cb_data)))
                                                         ^
                                                          {
/datasets/git/string-list.c:145:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int src, dst = 0;
        ^~~~~~~~~~~~~~~~~
/datasets/git/./string-list.h:89:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        size_t nr;
        ^
/datasets/git/string-list.c:145:6: warning: variable 'src' is not initialized [cppcoreguidelines-init-variables]
        int src, dst = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/string-list.c:146:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (src = 0; src < list->nr; src++) {
        ^
/datasets/git/string-list.c:146:16: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (src = 0; src < list->nr; src++) {
                      ^
/datasets/git/string-list.c:150:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (list->strdup_strings)
                                                 ^
                                                  {
/datasets/git/string-list.c:152:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (free_util)
                                      ^
                                       {
/datasets/git/string-list.c:172:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/string-list.c:172:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/string-list.c:174:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = 0; i < list->nr; i++)
                        ^
/datasets/git/string-list.c:174:16: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (i = 0; i < list->nr; i++)
                                    ^
/datasets/git/string-list.c:174:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (i = 0; i < list->nr; i++)
                                                      ^
                                                       {
/datasets/git/string-list.c:178:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = 0; i < list->nr; i++)
                        ^
/datasets/git/string-list.c:178:16: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (i = 0; i < list->nr; i++)
                                    ^
/datasets/git/string-list.c:178:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (i = 0; i < list->nr; i++)
                                                      ^
                                                       {
/datasets/git/string-list.c:190:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/string-list.c:190:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/string-list.c:192:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = 0; i < list->nr; i++)
                        ^
/datasets/git/string-list.c:192:16: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (i = 0; i < list->nr; i++)
                                    ^
/datasets/git/string-list.c:192:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (i = 0; i < list->nr; i++)
                                                      ^
                                                       {
/datasets/git/string-list.c:196:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = 0; i < list->nr; i++)
                        ^
/datasets/git/string-list.c:196:16: warning: backward branch (for loop) is ID-dependent due to member reference to 'nr' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (i = 0; i < list->nr; i++)
                                    ^
/datasets/git/string-list.c:196:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (i = 0; i < list->nr; i++)
                                                      ^
                                                       {
/datasets/git/string-list.c:208:27: warning: variable 'retval' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *retval;
                                 ^
                                        = NULL
/datasets/git/string-list.c:209:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(list->items, list->nr + 1, list->alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/string-list.c:233:22: warning: 3 adjacent parameters of 'cmp_items' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int cmp_items(const void *a, const void *b, void *ctx)
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/string-list.c:233:34: note: the first parameter in the range is 'a'
static int cmp_items(const void *a, const void *b, void *ctx)
                                 ^
/datasets/git/string-list.c:233:58: note: the last parameter in the range is 'ctx'
static int cmp_items(const void *a, const void *b, void *ctx)
                                                         ^~~
/datasets/git/string-list.c:233:52: note: 'const void *' and 'void *' may be implicitly converted
static int cmp_items(const void *a, const void *b, void *ctx)
                                                   ^
/datasets/git/string-list.c:233:34: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static int cmp_items(const void *a, const void *b, void *ctx)
                                 ^
/datasets/git/string-list.c:233:49: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static int cmp_items(const void *a, const void *b, void *ctx)
                                                ^
/datasets/git/string-list.c:245:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        QSORT_S(list->items, list->nr, cmp_items, &sort_ctx);
        ^
/datasets/git/./git-compat-util.h:1321:39: note: expanded from macro 'QSORT_S'
#define QSORT_S(base, n, compar, ctx) do {                      \
                                      ^
/datasets/git/string-list.c:251:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct string_list_item *item;
        ^
/datasets/git/string-list.c:251:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/string-list.c:254:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(item, list)
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/string-list.c:254:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(item, list)
                                  ^
/datasets/git/string-list.c:255:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!cmp(string, item->string))
                                               ^
                                                {
/datasets/git/string-list.c:266:65: warning: 2 adjacent parameters of 'unsorted_string_list_delete_item' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
void unsorted_string_list_delete_item(struct string_list *list, int i, int free_util)
                                                                ^~~~~~~~~~~~~~~~~~~~
/datasets/git/string-list.c:266:69: note: the first parameter in the range is 'i'
void unsorted_string_list_delete_item(struct string_list *list, int i, int free_util)
                                                                    ^
/datasets/git/string-list.c:266:76: note: the last parameter in the range is 'free_util'
void unsorted_string_list_delete_item(struct string_list *list, int i, int free_util)
                                                                           ^~~~~~~~~
/datasets/git/string-list.c:266:69: warning: parameter name 'i' is too short, expected at least 3 characters [readability-identifier-length]
void unsorted_string_list_delete_item(struct string_list *list, int i, int free_util)
                                                                    ^
/datasets/git/string-list.c:268:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (list->strdup_strings)
                                 ^
                                  {
/datasets/git/string-list.c:270:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (free_util)
                      ^
                       {
/datasets/git/string-list.c:277:9: warning: 2 adjacent parameters of 'string_list_split' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                      int delim, int maxsplit)
                      ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/string-list.c:277:13: note: the first parameter in the range is 'delim'
                      int delim, int maxsplit)
                          ^~~~~
/datasets/git/string-list.c:277:24: note: the last parameter in the range is 'maxsplit'
                      int delim, int maxsplit)
                                     ^~~~~~~~
/datasets/git/string-list.c:280:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *p = string, *end;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/string-list.c:280:14: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        const char *p = string, *end;
                    ^
/datasets/git/string-list.c:280:27: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
        const char *p = string, *end;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/string-list.c:282:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!list->strdup_strings)
                                  ^
                                   {
/datasets/git/string-list.c:285:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/string-list.c:303:11: warning: 2 adjacent parameters of 'string_list_split_in_place' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                               int delim, int maxsplit)
                               ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/string-list.c:303:15: note: the first parameter in the range is 'delim'
                               int delim, int maxsplit)
                                   ^~~~~
/datasets/git/string-list.c:303:26: note: the last parameter in the range is 'maxsplit'
                               int delim, int maxsplit)
                                              ^~~~~~~~
/datasets/git/string-list.c:306:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *p = string, *end;
        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/string-list.c:306:8: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        char *p = string, *end;
              ^
/datasets/git/string-list.c:306:21: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
        char *p = string, *end;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/string-list.c:308:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (list->strdup_strings)
                                 ^
                                  {
/datasets/git/string-list.c:311:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/strmap.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "strmap.h"
^        ~~~~~~~~~~
         "mem-pool.h"
/datasets/git/strmap.c:10:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const struct strmap_entry *e1, *e2;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/strmap.c:10:29: warning: variable 'e1' is not initialized [cppcoreguidelines-init-variables]
        const struct strmap_entry *e1, *e2;
                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/strmap.c:10:29: warning: variable name 'e1' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/strmap.c:10:34: warning: variable 'e2' is not initialized [cppcoreguidelines-init-variables]
        const struct strmap_entry *e1, *e2;
                                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/strmap.c:10:34: warning: variable name 'e2' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/strmap.c:29:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(map, &blank, sizeof(*map));
        ^~~~~~
/datasets/git/strmap.c:29:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(map, &blank, sizeof(*map));
        ^~~~~~
/datasets/git/strmap.c:44:23: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        struct strmap_entry *e;
                             ^
                               = NULL
/datasets/git/strmap.c:44:23: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/strmap.c:46:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!map)
                 ^
                  {
/datasets/git/strmap.c:49:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!free_values && map->pool)
                                      ^
                                       {
/datasets/git/strmap.c:60:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        hashmap_for_each_entry(&map->map, &iter, e, ent) {
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/strmap.c:60:43: warning: backward branch (for loop) is ID-dependent due to variable reference to 'e' and may cause performance degradation [altera-id-dependent-backward-branch]
        hashmap_for_each_entry(&map->map, &iter, e, ent) {
                                                 ^
/datasets/git/strmap.c:61:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (free_values)
                                ^
                                 {
/datasets/git/strmap.c:63:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!map->pool)
                               ^
                                {
/datasets/git/strmap.c:84:23: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
        struct strmap_entry *entry;
                             ^
                                   = NULL
/datasets/git/strmap.c:88:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        FLEXPTR_ALLOC_STR(entry, key, str);
                        ^
/datasets/git/./git-compat-util.h:1165:2: note: expanded from macro 'FLEXPTR_ALLOC_STR'
        FLEXPTR_ALLOC_MEM((x), ptrname, (str), strlen(str))
        ^
/datasets/git/./git-compat-util.h:1156:49: note: expanded from macro 'FLEXPTR_ALLOC_MEM'
#define FLEXPTR_ALLOC_MEM(x, ptrname, buf, len) do { \
                                                ^
/datasets/git/strmap.c:88:4: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        FLEXPTR_ALLOC_STR(entry, key, str);
                        ^
/datasets/git/./git-compat-util.h:1165:2: note: expanded from macro 'FLEXPTR_ALLOC_STR'
        FLEXPTR_ALLOC_MEM((x), ptrname, (str), strlen(str))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1159:2: note: expanded from macro 'FLEXPTR_ALLOC_MEM'
        memcpy((x) + 1, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/strmap.c:88:4: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                        FLEXPTR_ALLOC_STR(entry, key, str);
                        ^
/datasets/git/./git-compat-util.h:1165:2: note: expanded from macro 'FLEXPTR_ALLOC_STR'
        FLEXPTR_ALLOC_MEM((x), ptrname, (str), strlen(str))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1159:2: note: expanded from macro 'FLEXPTR_ALLOC_MEM'
        memcpy((x) + 1, (buf), flex_array_len_); \
        ^~~~~~
/datasets/git/strmap.c:93:4: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memcpy(entry + 1, str, len);
                        ^~~~~~
/datasets/git/strmap.c:93:4: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                        memcpy(entry + 1, str, len);
                        ^~~~~~
/datasets/git/strmap.c:102:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!map->strdup_strings)
                                 ^
                                  {
/datasets/git/strmap.c:141:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct strmap_entry entry, *ret;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/strmap.c:141:30: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        struct strmap_entry entry, *ret;
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/strmap.c:145:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ret)
                 ^
                  {
/datasets/git/strmap.c:147:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (free_value)
                       ^
                        {
/datasets/git/strmap.c:149:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!map->pool)
                       ^
                        {
/datasets/git/strmap.c:160:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/strmap.c:173:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (entry)
                  ^
                   {
/datasets/git/strvec.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "strvec.h"
^        ~~~~~~~~~~
         "strbuf.h"
/datasets/git/strvec.c:5:13: warning: variable 'empty_strvec' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
const char *empty_strvec[] = { NULL };
            ^
/datasets/git/strvec.c:10:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(array, &blank, sizeof(*array));
        ^~~~~~
/datasets/git/strvec.c:10:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(array, &blank, sizeof(*array));
        ^~~~~~
/datasets/git/strvec.c:15:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (array->v == empty_strvec)
                                     ^
                                      {
/datasets/git/strvec.c:18:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(array->v, array->nr + 2, array->alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/strvec.c:19:24: warning: Array access (via field 'v') results in a null pointer dereference [clang-analyzer-core.NullDereference]
        array->v[array->nr++] = value;
                              ^
/datasets/git/strvec.c:38:2: note: Calling 'strvec_push_nodup'
        strvec_push_nodup(array, strbuf_detach(&v, NULL));
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/strvec.c:15:6: note: Assuming 'empty_strvec' is equal to field 'v'
        if (array->v == empty_strvec)
            ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/strvec.c:15:2: note: Taking true branch
        if (array->v == empty_strvec)
        ^
/datasets/git/strvec.c:16:3: note: Null pointer value stored to field 'v'
                array->v = NULL;
                ^~~~~~~~~~~~~~~
/datasets/git/strvec.c:18:2: note: Assuming the condition is false
        ALLOC_GROW(array->v, array->nr + 2, array->alloc);
        ^
/datasets/git/./refs/../cache.h:702:7: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                    ^~~~~~~~~~~~
/datasets/git/strvec.c:18:2: note: Taking false branch
        ALLOC_GROW(array->v, array->nr + 2, array->alloc);
        ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/strvec.c:18:2: note: Loop condition is false.  Exiting loop
        ALLOC_GROW(array->v, array->nr + 2, array->alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/strvec.c:19:24: note: Array access (via field 'v') results in a null pointer dereference
        array->v[array->nr++] = value;
               ~              ^
/datasets/git/strvec.c:31:10: warning: variable name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
        va_list ap;
                ^
/datasets/git/strvec.c:32:16: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf v = STRBUF_INIT;
                      ^
/datasets/git/strvec.c:44:10: warning: variable name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
        va_list ap;
                ^
/datasets/git/strvec.c:45:14: warning: variable 'arg' is not initialized [cppcoreguidelines-init-variables]
        const char *arg;
                    ^
                        = NULL
/datasets/git/strvec.c:48:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((arg = va_arg(ap, const char *)))
        ^
/datasets/git/strvec.c:48:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'arg' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((arg = va_arg(ap, const char *)))
               ^
/datasets/git/strvec.c:48:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while ((arg = va_arg(ap, const char *)))
                                                ^
                                                 {
/datasets/git/strvec.c:55:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; *items; items++)
        ^
/datasets/git/strvec.c:55:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (; *items; items++)
                               ^
                                {
/datasets/git/strvec.c:61:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!array->nr)
                       ^
                        {
/datasets/git/strvec.c:70:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (isspace(*to_split))
        ^
/datasets/git/strvec.c:70:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'to_split' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (isspace(*to_split))
               ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^
/datasets/git/./git-compat-util.h:1215:29: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                            ^
/datasets/git/strvec.c:70:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        while (isspace(*to_split))
               ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/strvec.c:70:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (isspace(*to_split))
                                  ^
                                   {
/datasets/git/strvec.c:73:15: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                const char *p = to_split;
                            ^
/datasets/git/strvec.c:75:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!*p)
                        ^
                         {
/datasets/git/strvec.c:78:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (*p && !isspace(*p))
                ^
/datasets/git/strvec.c:78:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (*p && !isspace(*p))
                       ^
/datasets/git/strvec.c:78:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                while (*p && !isspace(*p))
                              ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/strvec.c:78:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (*p && !isspace(*p))
                                          ^
                                           {
/datasets/git/strvec.c:82:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (isspace(*p))
                ^
/datasets/git/strvec.c:82:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (isspace(*p))
                       ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^
/datasets/git/./git-compat-util.h:1215:29: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                            ^
/datasets/git/strvec.c:82:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                while (isspace(*p))
                       ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/strvec.c:82:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (isspace(*p))
                                   ^
                                    {
/datasets/git/strvec.c:91:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/strvec.c:91:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/strvec.c:92:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < array->nr; i++)
                ^
/datasets/git/strvec.c:92:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < array->nr; i++)
                                               ^
                                                {
/datasets/git/strvec.c:101:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (array->v == empty_strvec)
                                     ^
                                      {
/datasets/git/strvec.c:103:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else {
        ^~~~~~
/datasets/git/sub-process.c:5:1: warning: #includes are not sorted properly [llvm-include-order]
#include "sigchain.h"
^        ~~~~~~~~~~~~
         "pkt-line.h"
/datasets/git/sub-process.c:9:7: warning: 2 adjacent parameters of 'cmd2process_cmp' of similar type ('const struct hashmap_entry *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                    const struct hashmap_entry *eptr,
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sub-process.c:9:35: note: the first parameter in the range is 'eptr'
                    const struct hashmap_entry *eptr,
                                                ^~~~
/datasets/git/sub-process.c:10:35: note: the last parameter in the range is 'entry_or_key'
                    const struct hashmap_entry *entry_or_key,
                                                ^~~~~~~~~~~~
/datasets/git/sub-process.c:13:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const struct subprocess_entry *e1, *e2;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/sub-process.c:13:33: warning: variable 'e1' is not initialized [cppcoreguidelines-init-variables]
        const struct subprocess_entry *e1, *e2;
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sub-process.c:13:33: warning: variable name 'e1' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sub-process.c:13:38: warning: variable 'e2' is not initialized [cppcoreguidelines-init-variables]
        const struct subprocess_entry *e1, *e2;
                                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/sub-process.c:13:38: warning: variable name 'e2' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sub-process.c:30:32: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
int subprocess_read_status(int fd, struct strbuf *status)
                               ^
/datasets/git/sub-process.c:32:18: warning: variable 'pair' is not initialized [cppcoreguidelines-init-variables]
        struct strbuf **pair;
                        ^
                             = NULL
/datasets/git/sub-process.c:33:8: warning: variable 'line' is not initialized [cppcoreguidelines-init-variables]
        char *line;
              ^
                   = NULL
/datasets/git/sub-process.c:34:6: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int len;
            ^
                = 0
/datasets/git/sub-process.c:36:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/sub-process.c:38:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((len < 0) || !line)
                                       ^
                                        {
/datasets/git/sub-process.c:56:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!entry)
                   ^
                    {
/datasets/git/sub-process.c:80:6: warning: variable 'err' is not initialized [cppcoreguidelines-init-variables]
        int err;
            ^
                = 0
/datasets/git/sub-process.c:81:24: warning: variable 'process' is not initialized [cppcoreguidelines-init-variables]
        struct child_process *process;
                              ^
                                      = NULL
/datasets/git/sub-process.c:118:6: warning: variable 'version_scratch' is not initialized [cppcoreguidelines-init-variables]
        int version_scratch;
            ^
                            = 0
/datasets/git/sub-process.c:119:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/sub-process.c:119:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sub-process.c:120:8: warning: variable 'line' is not initialized [cppcoreguidelines-init-variables]
        char *line;
              ^
                   = NULL
/datasets/git/sub-process.c:121:14: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        const char *p;
                    ^
                      = NULL
/datasets/git/sub-process.c:121:14: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sub-process.c:123:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!chosen_version)
                            ^
                             {
/datasets/git/sub-process.c:127:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                    welcome_prefix))
                                                    ^
                                                     {
/datasets/git/sub-process.c:129:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; versions[i]; i++) {
        ^
/datasets/git/sub-process.c:131:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                            versions[i]))
                                                         ^
                                                          {
/datasets/git/sub-process.c:134:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (packet_flush_gently(process->in))
                                             ^
                                              {
/datasets/git/sub-process.c:137:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if (!(line = packet_read_line(process->out, NULL)) ||
              ^
/datasets/git/sub-process.c:137:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/sub-process.c:137:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/sub-process.c:139:6: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
            strcmp(p, "-server"))
            ^
                                 != 0
/datasets/git/sub-process.c:139:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            strcmp(p, "-server"))
                                 ^
                                  {
/datasets/git/sub-process.c:142:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if (!(line = packet_read_line(process->out, NULL)) ||
              ^
/datasets/git/sub-process.c:142:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/sub-process.c:142:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/sub-process.c:144:18: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
            strtol_i(p, 10, chosen_version))
                        ^
/datasets/git/sub-process.c:144:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            strtol_i(p, 10, chosen_version))
                                            ^
                                             {
/datasets/git/sub-process.c:147:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if ((line = packet_read_line(process->out, NULL)))
             ^
/datasets/git/sub-process.c:147:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/sub-process.c:147:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/sub-process.c:147:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((line = packet_read_line(process->out, NULL)))
                                                          ^
                                                           {
/datasets/git/sub-process.c:151:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; versions[i]; i++) {
        ^
/datasets/git/sub-process.c:152:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (versions[i] == *chosen_version)
                                                   ^
                                                    {
/datasets/git/sub-process.c:155:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!versions[i])
                         ^
                          {
/datasets/git/sub-process.c:165:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/sub-process.c:165:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sub-process.c:166:8: warning: variable 'line' is not initialized [cppcoreguidelines-init-variables]
        char *line;
              ^
                   = NULL
/datasets/git/sub-process.c:168:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; capabilities[i].name; i++) {
        ^
/datasets/git/sub-process.c:170:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                            capabilities[i].name))
                                                                  ^
                                                                   {
/datasets/git/sub-process.c:173:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (packet_flush_gently(process->in))
                                             ^
                                              {
/datasets/git/sub-process.c:176:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'line' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((line = packet_read_line(process->out, NULL))) {
               ^
/datasets/git/sub-process.c:177:15: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                const char *p;
                            ^
                              = NULL
/datasets/git/sub-process.c:177:15: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/sub-process.c:178:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!skip_prefix(line, "capability=", &p))
                                                          ^
                                                           {
/datasets/git/sub-process.c:181:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0;
                ^
/datasets/git/sub-process.c:182:32: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                     capabilities[i].name && strcmp(p, capabilities[i].name);
                                             ^
                                                                             != 0
/datasets/git/sub-process.c:183:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                     i++)
                         ^
                          {
/datasets/git/sub-process.c:186:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (supported_capabilities)
                                                   ^
                                                    {
/datasets/git/sub-process.c:204:6: warning: variable 'retval' is not initialized [cppcoreguidelines-init-variables]
        int retval;
            ^
                   = 0
/datasets/git/submodule-config.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "dir.h"
^        ~~~~~~~
         "config.h"
/datasets/git/submodule-config.c:20:8: warning: accessing fields in struct 'submodule_cache' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct submodule_cache {
       ^
/datasets/git/submodule-config.c:20:8: note: use "__attribute__((aligned(128)))" to align struct 'submodule_cache' to 128 bytes
/datasets/git/submodule-config.c:31:8: warning: accessing fields in struct 'submodule_entry' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct submodule_entry {
       ^
/datasets/git/submodule-config.c:31:8: note: use "__attribute__((aligned(32)))" to align struct 'submodule_entry' to 32 bytes
/datasets/git/submodule-config.c:42:7: warning: 2 adjacent parameters of 'config_path_cmp' of similar type ('const struct hashmap_entry *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                           const struct hashmap_entry *eptr,
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/submodule-config.c:42:35: note: the first parameter in the range is 'eptr'
                           const struct hashmap_entry *eptr,
                                                       ^~~~
/datasets/git/submodule-config.c:43:35: note: the last parameter in the range is 'entry_or_key'
                           const struct hashmap_entry *entry_or_key,
                                                       ^~~~~~~~~~~~
/datasets/git/submodule-config.c:46:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const struct submodule_entry *a, *b;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/submodule-config.c:46:32: warning: variable 'a' is not initialized [cppcoreguidelines-init-variables]
        const struct submodule_entry *a, *b;
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/submodule-config.c:46:32: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/submodule-config.c:46:36: warning: variable 'b' is not initialized [cppcoreguidelines-init-variables]
        const struct submodule_entry *a, *b;
                                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/submodule-config.c:46:36: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/submodule-config.c:51:9: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        return strcmp(a->config->path, b->config->path) ||
               ^
                                                        != 0
/datasets/git/submodule-config.c:56:7: warning: 2 adjacent parameters of 'config_name_cmp' of similar type ('const struct hashmap_entry *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                           const struct hashmap_entry *eptr,
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/submodule-config.c:56:35: note: the first parameter in the range is 'eptr'
                           const struct hashmap_entry *eptr,
                                                       ^~~~
/datasets/git/submodule-config.c:57:35: note: the last parameter in the range is 'entry_or_key'
                           const struct hashmap_entry *entry_or_key,
                                                       ^~~~~~~~~~~~
/datasets/git/submodule-config.c:60:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const struct submodule_entry *a, *b;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/submodule-config.c:60:32: warning: variable 'a' is not initialized [cppcoreguidelines-init-variables]
        const struct submodule_entry *a, *b;
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/submodule-config.c:60:32: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/submodule-config.c:60:36: warning: variable 'b' is not initialized [cppcoreguidelines-init-variables]
        const struct submodule_entry *a, *b;
                                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/submodule-config.c:60:36: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/submodule-config.c:65:9: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        return strcmp(a->config->name, b->config->name) ||
               ^
                                                        != 0
/datasets/git/submodule-config.c:93:26: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
        struct submodule_entry *entry;
                                ^
                                      = NULL
/datasets/git/submodule-config.c:95:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!cache->initialized)
                                ^
                                 {
/datasets/git/submodule-config.c:103:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        hashmap_for_each_entry(&cache->for_name, &iter, entry,
        ^
/datasets/git/./hashmap.h:503:2: note: expanded from macro 'hashmap_for_each_entry'
        for (var = NULL, /* for systems without typeof */ \
        ^
/datasets/git/submodule-config.c:103:50: warning: backward branch (for loop) is ID-dependent due to variable reference to 'entry' and may cause performance degradation [altera-id-dependent-backward-branch]
        hashmap_for_each_entry(&cache->for_name, &iter, entry,
                                                        ^
/datasets/git/submodule-config.c:130:26: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
        struct submodule_entry *e = xmalloc(sizeof(*e));
                                ^
/datasets/git/submodule-config.c:141:25: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
        struct submodule_entry e;
                               ^
/datasets/git/submodule-config.c:142:26: warning: variable 'removed' is not initialized [cppcoreguidelines-init-variables]
        struct submodule_entry *removed;
                                ^
                                        = NULL
/datasets/git/submodule-config.c:154:26: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
        struct submodule_entry *e = xmalloc(sizeof(*e));
                                ^
/datasets/git/submodule-config.c:163:26: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
        struct submodule_entry *entry;
                                ^
                                      = NULL
/datasets/git/submodule-config.c:175:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (entry)
                  ^
                   {
/datasets/git/submodule-config.c:183:26: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
        struct submodule_entry *entry;
                                ^
                                      = NULL
/datasets/git/submodule-config.c:195:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (entry)
                  ^
                   {
/datasets/git/submodule-config.c:203:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!*name)
                   ^
                    {
/datasets/git/submodule-config.c:212:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*name) {
        ^
/datasets/git/submodule-config.c:213:8: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                char c = *name++;
                     ^
/datasets/git/submodule-config.c:217:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            (!name[2] || is_xplatform_dir_sep(name[2])))
                                                                        ^
                                                                         {
/datasets/git/submodule-config.c:225:52: warning: 2 adjacent parameters of 'name_and_item_from_var' of similar type ('struct strbuf *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int name_and_item_from_var(const char *var, struct strbuf *name,
                                                   ^~~~~~~~~~~~~~~~~~~~
/datasets/git/submodule-config.c:225:67: note: the first parameter in the range is 'name'
static int name_and_item_from_var(const char *var, struct strbuf *name,
                                                                  ^~~~
/datasets/git/submodule-config.c:226:22: note: the last parameter in the range is 'item'
                                  struct strbuf *item)
                                                 ^~~~
/datasets/git/submodule-config.c:228:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *subsection, *key;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/submodule-config.c:228:14: warning: variable 'subsection' is not initialized [cppcoreguidelines-init-variables]
        const char *subsection, *key;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/submodule-config.c:228:27: warning: variable 'key' is not initialized [cppcoreguidelines-init-variables]
        const char *subsection, *key;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/submodule-config.c:229:9: warning: variable 'subsection_len' is not initialized [cppcoreguidelines-init-variables]
        size_t subsection_len;
               ^
                              = 0
/datasets/git/submodule-config.c:230:6: warning: variable 'parse' is not initialized [cppcoreguidelines-init-variables]
        int parse;
            ^
                  = 0
/datasets/git/submodule-config.c:233:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse < 0 || !subsection)
                                     ^
                                      {
/datasets/git/submodule-config.c:251:20: warning: variable 'submodule' is not initialized [cppcoreguidelines-init-variables]
        struct submodule *submodule;
                          ^
                                    = NULL
/datasets/git/submodule-config.c:255:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (submodule)
                      ^
                       {
/datasets/git/submodule-config.c:288:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(arg, "on-demand"))
                                              ^
                                               {
/datasets/git/submodule-config.c:294:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (die_on_error)
                                 ^
                                  {
/datasets/git/submodule-config.c:296:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/submodule-config.c:304:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fetchjobs < 0)
                          ^
                           {
/datasets/git/submodule-config.c:306:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!fetchjobs)
                       ^
                        {
/datasets/git/submodule-config.c:319:7: warning: variable 'v' is not initialized [cppcoreguidelines-init-variables]
        int *v;
             ^
               = NULL
/datasets/git/submodule-config.c:319:7: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/submodule-config.c:321:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opt->value)
                        ^
                         {
/datasets/git/submodule-config.c:329:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (arg)
                        ^
                         {
/datasets/git/submodule-config.c:331:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/submodule-config.c:346:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (die_on_error)
                                 ^
                                  {
/datasets/git/submodule-config.c:363:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (die_on_error)
                                 ^
                                  {
/datasets/git/submodule-config.c:365:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/submodule-config.c:370:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(arg, "on-demand"))
                                              ^
                                               {
/datasets/git/submodule-config.c:372:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(arg, "check"))
                                               ^
                                                {
/datasets/git/submodule-config.c:374:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(arg, "only"))
                                              ^
                                               {
/datasets/git/submodule-config.c:380:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (die_on_error)
                                      ^
                                       {
/datasets/git/submodule-config.c:382:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/submodule-config.c:396:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (treeish_name)
                         ^
                          {
/datasets/git/submodule-config.c:409:8: warning: accessing fields in struct 'parse_config_parameter' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct parse_config_parameter {
       ^
/datasets/git/submodule-config.c:409:8: note: use "__attribute__((aligned(32)))" to align struct 'parse_config_parameter' to 32 bytes
/datasets/git/submodule-config.c:423:12: warning: function 'parse_config' has cognitive complexity of 48 (threshold 25) [readability-function-cognitive-complexity]
static int parse_config(const char *var, const char *value, void *data)
           ^
/datasets/git/submodule-config.c:431:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!name_and_item_from_var(var, &name, &item))
        ^
/datasets/git/submodule-config.c:438:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(item.buf, "path")) {
        ^
/datasets/git/submodule-config.c:439:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!value)
                ^
/datasets/git/submodule-config.c:441:8: note: +1, nesting level increased to 2
                else if (looks_like_command_line_option(value))
                     ^
/datasets/git/submodule-config.c:443:8: note: +1, nesting level increased to 2
                else if (!me->overwrite && submodule->path)
                     ^
/datasets/git/submodule-config.c:443:27: note: +1
                else if (!me->overwrite && submodule->path)
                                        ^
/datasets/git/submodule-config.c:446:3: note: +1, nesting level increased to 2
                else {
                ^
/datasets/git/submodule-config.c:447:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (submodule->path)
                        ^
/datasets/git/submodule-config.c:453:9: note: +1, nesting level increased to 1
        } else if (!strcmp(item.buf, "fetchrecursesubmodules")) {
               ^
/datasets/git/submodule-config.c:456:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!me->overwrite &&
                ^
/datasets/git/submodule-config.c:456:22: note: +1
                if (!me->overwrite &&
                                   ^
/datasets/git/submodule-config.c:460:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/submodule-config.c:464:9: note: +1, nesting level increased to 1
        } else if (!strcmp(item.buf, "ignore")) {
               ^
/datasets/git/submodule-config.c:465:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!value)
                ^
/datasets/git/submodule-config.c:467:8: note: +1, nesting level increased to 2
                else if (!me->overwrite && submodule->ignore)
                     ^
/datasets/git/submodule-config.c:467:27: note: +1
                else if (!me->overwrite && submodule->ignore)
                                        ^
/datasets/git/submodule-config.c:470:8: note: +1, nesting level increased to 2
                else if (strcmp(value, "untracked") &&
                     ^
/datasets/git/submodule-config.c:472:26: note: +1
                         strcmp(value, "all") &&
                                              ^
/datasets/git/submodule-config.c:476:3: note: +1, nesting level increased to 2
                else {
                ^
/datasets/git/submodule-config.c:480:9: note: +1, nesting level increased to 1
        } else if (!strcmp(item.buf, "url")) {
               ^
/datasets/git/submodule-config.c:481:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!value) {
                ^
/datasets/git/submodule-config.c:483:10: note: +1, nesting level increased to 2
                } else if (looks_like_command_line_option(value)) {
                       ^
/datasets/git/submodule-config.c:485:10: note: +1, nesting level increased to 2
                } else if (!me->overwrite && submodule->url) {
                       ^
/datasets/git/submodule-config.c:485:29: note: +1
                } else if (!me->overwrite && submodule->url) {
                                          ^
/datasets/git/submodule-config.c:488:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/submodule-config.c:492:9: note: +1, nesting level increased to 1
        } else if (!strcmp(item.buf, "update")) {
               ^
/datasets/git/submodule-config.c:493:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!value)
                ^
/datasets/git/submodule-config.c:495:8: note: +1, nesting level increased to 2
                else if (!me->overwrite &&
                     ^
/datasets/git/submodule-config.c:495:27: note: +1
                else if (!me->overwrite &&
                                        ^
/datasets/git/submodule-config.c:499:8: note: +1, nesting level increased to 2
                else if (parse_submodule_update_strategy(value,
                     ^
/datasets/git/submodule-config.c:500:38: note: +1
                         &submodule->update_strategy) < 0 ||
                                                          ^
/datasets/git/submodule-config.c:503:9: note: +1, nesting level increased to 1
        } else if (!strcmp(item.buf, "shallow")) {
               ^
/datasets/git/submodule-config.c:504:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!me->overwrite && submodule->recommend_shallow != -1)
                ^
/datasets/git/submodule-config.c:504:22: note: +1
                if (!me->overwrite && submodule->recommend_shallow != -1)
                                   ^
/datasets/git/submodule-config.c:507:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/submodule-config.c:510:9: note: +1, nesting level increased to 1
        } else if (!strcmp(item.buf, "branch")) {
               ^
/datasets/git/submodule-config.c:511:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!me->overwrite && submodule->branch)
                ^
/datasets/git/submodule-config.c:511:22: note: +1
                if (!me->overwrite && submodule->branch)
                                   ^
/datasets/git/submodule-config.c:514:3: note: +1, nesting level increased to 2
                else {
                ^
/datasets/git/submodule-config.c:425:33: warning: variable name 'me' is too short, expected at least 3 characters [readability-identifier-length]
        struct parse_config_parameter *me = data;
                                       ^
/datasets/git/submodule-config.c:426:20: warning: variable 'submodule' is not initialized [cppcoreguidelines-init-variables]
        struct submodule *submodule;
                          ^
                                    = NULL
/datasets/git/submodule-config.c:427:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct strbuf name = STRBUF_INIT, item = STRBUF_INIT;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/submodule-config.c:431:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!name_and_item_from_var(var, &name, &item))
                                                       ^
                                                        {
/datasets/git/submodule-config.c:439:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
                            {
/datasets/git/submodule-config.c:441:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (looks_like_command_line_option(value))
                                                               ^
                                                                {
/datasets/git/submodule-config.c:443:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!me->overwrite && submodule->path)
                                                           ^
                                                            {
/datasets/git/submodule-config.c:447:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (submodule->path)
                                            ^
                                             {
/datasets/git/submodule-config.c:457:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    submodule->fetch_recurse != RECURSE_SUBMODULES_NONE)
                                                                        ^
                                                                         {
/datasets/git/submodule-config.c:460:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/submodule-config.c:461:31: warning: 1st argument 'var' (passed to 'opt') looks like it might be swapped with the 2nd, 'value' (passed to 'arg') [readability-suspicious-call-argument]
                        submodule->fetch_recurse = parse_fetch_recurse(
                                                   ^
/datasets/git/submodule-config.c:279:12: note: in the call to 'parse_fetch_recurse', declared here
static int parse_fetch_recurse(const char *opt, const char *arg,
           ^                               ~~~              ~~~
/datasets/git/submodule-config.c:465:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
                            {
/datasets/git/submodule-config.c:467:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!me->overwrite && submodule->ignore)
                                                             ^
                                                              {
/datasets/git/submodule-config.c:470:12: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                else if (strcmp(value, "untracked") &&
                         ^
                                                    != 0
/datasets/git/submodule-config.c:472:5: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                         strcmp(value, "all") &&
                         ^
                                              != 0
/datasets/git/submodule-config.c:473:5: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                         strcmp(value, "none"))
                         ^
                                               != 0
/datasets/git/submodule-config.c:473:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                         strcmp(value, "none"))
                                               ^
                                                {
/datasets/git/submodule-config.c:493:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
                            {
/datasets/git/submodule-config.c:496:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                         submodule->update_strategy.type != SM_UPDATE_UNSPECIFIED)
                                                                                  ^
                                                                                   {
/datasets/git/submodule-config.c:501:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                         submodule->update_strategy.type == SM_UPDATE_COMMAND)
                                                                              ^
                                                                               {
/datasets/git/submodule-config.c:504:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!me->overwrite && submodule->recommend_shallow != -1)
                                                                         ^
                                                                          {
/datasets/git/submodule-config.c:507:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/submodule-config.c:511:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!me->overwrite && submodule->branch)
                                                        ^
                                                         {
/datasets/git/submodule-config.c:538:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid(rev->buf, gitmodules_oid) >= 0)
                                                   ^
                                                    {
/datasets/git/submodule-config.c:553:16: warning: variable 'config_size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long config_size;
                      ^
                                  = 0
/datasets/git/submodule-config.c:556:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/submodule-config.c:567:27: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
                struct submodule_entry *entry;
                                        ^
                                              = NULL
/datasets/git/submodule-config.c:572:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!entry)
                           ^
                            {
/datasets/git/submodule-config.c:577:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!gitmodule_oid_from_commit(treeish_name, &oid, &rev))
                                                                 ^
                                                                  {
/datasets/git/submodule-config.c:580:2: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
        switch (lookup_type) {
        ^
/datasets/git/submodule-config.c:588:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (submodule)
                      ^
                       {
/datasets/git/submodule-config.c:592:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!config || type != OBJ_BLOB)
                                        ^
                                         {
/datasets/git/submodule-config.c:622:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo->submodule_cache && repo->submodule_cache->initialized)
                                                                        ^
                                                                         {
/datasets/git/submodule-config.c:625:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!repo->submodule_cache)
                                   ^
                                    {
/datasets/git/submodule-config.c:639:48: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
static void config_from_gitmodules(config_fn_t fn, struct repository *repo, void *data)
                                               ^
/datasets/git/submodule-config.c:647:9: warning: variable 'file' is not initialized [cppcoreguidelines-init-variables]
                char *file;
                      ^
                           = NULL
/datasets/git/submodule-config.c:657:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (repo != the_repository)
                                                   ^
                                                    {
/datasets/git/submodule-config.c:688:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo->submodule_cache->gitmodules_read && skip_if_read)
                                                                   ^
                                                                    {
/datasets/git/submodule-config.c:691:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_read_index(repo) < 0)
                                      ^
                                       {
/datasets/git/submodule-config.c:694:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_gitmodules_unmerged(repo->index))
                                                 ^
                                                  {
/datasets/git/submodule-config.c:716:64: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
const struct submodule *submodule_from_name(struct repository *r,
                                                               ^
/datasets/git/submodule-config.c:724:64: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
const struct submodule *submodule_from_path(struct repository *r,
                                                               ^
/datasets/git/submodule-config.c:738:13: warning: function 'traverse_tree_submodules' is within a recursive call chain [misc-no-recursion]
static void traverse_tree_submodules(struct repository *r,
            ^
/datasets/git/submodule-config.c:738:13: note: example recursive call chain, starting from function 'traverse_tree_submodules'
/datasets/git/submodule-config.c:775:4: note: Frame #1: function 'traverse_tree_submodules' calls function 'traverse_tree_submodules' here:
                        traverse_tree_submodules(r, root_tree, tree_path,
                        ^
/datasets/git/submodule-config.c:775:4: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/submodule-config.c:738:57: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void traverse_tree_submodules(struct repository *r,
                                                        ^
/datasets/git/submodule-config.c:746:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct name_entry *name_entry;
        ^
/datasets/git/submodule-config.c:745:31: warning: variable 'st_entry' is not initialized [cppcoreguidelines-init-variables]
        struct submodule_tree_entry *st_entry;
                                     ^
                                              = NULL
/datasets/git/submodule-config.c:746:21: warning: variable 'name_entry' is not initialized [cppcoreguidelines-init-variables]
        struct name_entry *name_entry;
                           ^
                                      = NULL
/datasets/git/submodule-config.c:752:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'name_entry' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (tree_entry(&tree, name_entry)) {
               ^
/datasets/git/submodule-config.c:753:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (prefix)
                           ^
                            {
/datasets/git/submodule-config.c:756:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/submodule-config.c:759:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (S_ISGITLINK(name_entry->mode) &&
                    ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/submodule-config.c:761:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        ALLOC_GROW(out->entries, out->entry_nr + 1,
                        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/submodule-config.c:771:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                root_tree))
                                                           ^
                                                            {
/datasets/git/submodule-config.c:772:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                FREE_AND_NULL(st_entry->repo);
                                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/submodule-config.c:774:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else if (S_ISDIR(name_entry->mode))
                                                     ^
                                                      {
/datasets/git/submodule-config.c:781:44: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void submodules_of_tree(struct repository *r,
                                           ^
/datasets/git/submodule-config.c:792:40: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void submodule_free(struct repository *r)
                                       ^
/datasets/git/submodule-config.c:794:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (r->submodule_cache)
                               ^
                                {
/datasets/git/submodule-config.c:798:34: warning: 2 adjacent parameters of 'config_print_callback' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int config_print_callback(const char *var, const char *value, void *cb_data)
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/submodule-config.c:798:46: note: the first parameter in the range is 'var'
static int config_print_callback(const char *var, const char *value, void *cb_data)
                                             ^~~
/datasets/git/submodule-config.c:798:63: note: the last parameter in the range is 'value'
static int config_print_callback(const char *var, const char *value, void *cb_data)
                                                              ^~~~~
/datasets/git/submodule-config.c:802:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(wanted_key, var))
                                     ^
                                      {
/datasets/git/submodule-config.c:810:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/submodule-config.c:811:8: warning: variable 'store_key' is not initialized [cppcoreguidelines-init-variables]
        char *store_key;
              ^
                        = NULL
/datasets/git/submodule-config.c:814:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret < 0)
                    ^
                     {
/datasets/git/submodule-config.c:825:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/submodule-config.c:828:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret < 0)
                    ^
                     {
/datasets/git/submodule-config.c:835:8: warning: accessing fields in struct 'fetch_config' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct fetch_config {
       ^
/datasets/git/submodule-config.c:835:8: note: use "__attribute__((aligned(16)))" to align struct 'fetch_config' to 16 bytes
/datasets/git/submodule-config.c:840:78: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
static int gitmodules_fetch_config(const char *var, const char *value, void *cb)
                                                                             ^
/datasets/git/submodule-config.c:844:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (config->max_children)
                                         ^
                                          {
/datasets/git/submodule-config.c:848:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else if (!strcmp(var, "fetch.recursesubmodules")) {
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/submodule-config.c:849:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (config->recurse_submodules)
                                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/submodule-config.c:851:5: warning: 1st argument 'var' (passed to 'opt') looks like it might be swapped with the 2nd, 'value' (passed to 'arg') [readability-suspicious-call-argument]
                                parse_fetch_recurse_submodules_arg(var, value);
                                ^                                  ~~~  ~~~~~
/datasets/git/submodule-config.c:311:5: note: in the call to 'parse_fetch_recurse_submodules_arg', declared here
int parse_fetch_recurse_submodules_arg(const char *opt, const char *arg)
    ^                                              ~~~              ~~~
/datasets/git/submodule-config.c:858:40: warning: pointer parameter 'max_children' can be pointer to const [readability-non-const-parameter]
void fetch_config_from_gitmodules(int *max_children, int *recurse_submodules)
                                       ^
                                  const 
/datasets/git/submodule-config.c:858:59: warning: pointer parameter 'recurse_submodules' can be pointer to const [readability-non-const-parameter]
void fetch_config_from_gitmodules(int *max_children, int *recurse_submodules)
                                                          ^
                                                     const 
/datasets/git/submodule-config.c:868:14: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
                                          void *cb)
                                                ^
/datasets/git/submodule-config.c:871:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(var, "submodule.fetchjobs"))
                                                ^
                                                 {
/datasets/git/submodule.c:3:1: warning: #includes are not sorted properly [llvm-include-order]
#include "repository.h"
^        ~~~~~~~~~~~~~~
         "blob.h"
/datasets/git/submodule.c:27:12: warning: variable 'config_update_recurse_submodules' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int config_update_recurse_submodules = RECURSE_SUBMODULES_OFF;
           ^
/datasets/git/submodule.c:28:12: warning: variable 'initialized_fetch_ref_tips' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int initialized_fetch_ref_tips;
           ^
/datasets/git/submodule.c:29:25: warning: variable 'ref_tips_before_fetch' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct oid_array ref_tips_before_fetch;
                        ^
/datasets/git/submodule.c:30:25: warning: variable 'ref_tips_after_fetch' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct oid_array ref_tips_after_fetch;
                        ^
/datasets/git/submodule.c:43:30: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                        const struct cache_entry *ce = istate->cache[pos];
                                                  ^
/datasets/git/submodule.c:45:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            !strcmp(ce->name, GITMODULES_FILE))
                                                               ^
                                                                {
/datasets/git/submodule.c:84:15: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                struct stat st;
                            ^
/datasets/git/submodule.c:86:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    ie_modified(istate, istate->cache[pos], &st, 0) & DATA_CHANGED)
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/submodule.c:86:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    ie_modified(istate, istate->cache[pos], &st, 0) & DATA_CHANGED)
                                                                                   ^
                                                                                    {
/datasets/git/submodule.c:94:19: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
                                         each_ref_fn fn, void *cb_data)
                                                     ^
/datasets/git/submodule.c:105:31: warning: 2 adjacent parameters of 'update_path_in_gitmodules' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
int update_path_in_gitmodules(const char *oldpath, const char *newpath)
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/submodule.c:105:43: note: the first parameter in the range is 'oldpath'
int update_path_in_gitmodules(const char *oldpath, const char *newpath)
                                          ^~~~~~~
/datasets/git/submodule.c:105:64: note: the last parameter in the range is 'newpath'
int update_path_in_gitmodules(const char *oldpath, const char *newpath)
                                                               ^~~~~~~
/datasets/git/submodule.c:108:26: warning: variable 'submodule' is not initialized [cppcoreguidelines-init-variables]
        const struct submodule *submodule;
                                ^
                                          = NULL
/datasets/git/submodule.c:109:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/submodule.c:111:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!file_exists(GITMODULES_FILE)) /* Do nothing without .gitmodules */
                                          ^
                                           {
/datasets/git/submodule.c:114:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_gitmodules_unmerged(the_repository->index))
                                                          ^
                                                           {
/datasets/git/submodule.c:138:26: warning: variable 'submodule' is not initialized [cppcoreguidelines-init-variables]
        const struct submodule *submodule;
                                ^
                                          = NULL
/datasets/git/submodule.c:140:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!file_exists(GITMODULES_FILE)) /* Do nothing without .gitmodules */
                                          ^
                                           {
/datasets/git/submodule.c:143:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_gitmodules_unmerged(the_repository->index))
                                                          ^
                                                           {
/datasets/git/submodule.c:165:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (add_file_to_index(istate, GITMODULES_FILE, 0))
                                                          ^
                                                           {
/datasets/git/submodule.c:169:27: warning: variable 'added_submodule_odb_paths' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct string_list added_submodule_odb_paths = STRING_LIST_INIT_NODUP;
                          ^
/datasets/git/submodule.c:178:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/submodule.c:178:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/submodule.c:179:12: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int ret = added_submodule_odb_paths.nr;
                  ^
/datasets/git/submodule.c:181:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < added_submodule_odb_paths.nr; i++)
        ^
/datasets/git/submodule.c:181:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < added_submodule_odb_paths.nr; i++)
                                                          ^
                                                           {
/datasets/git/submodule.c:187:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (git_env_bool("GIT_TEST_FATAL_REGISTER_SUBMODULE_ODB", 0))
                                                                             ^
                                                                              {
/datasets/git/submodule.c:200:15: warning: variable 'ignore' is not initialized [cppcoreguidelines-init-variables]
                const char *ignore;
                            ^
                                   = NULL
/datasets/git/submodule.c:201:9: warning: variable 'key' is not initialized [cppcoreguidelines-init-variables]
                char *key;
                      ^
                          = NULL
/datasets/git/submodule.c:204:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (repo_config_get_string_tmp(the_repository, key, &ignore))
                                                                             ^
                                                                              {
/datasets/git/submodule.c:208:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ignore)
                           ^
                            {
/datasets/git/submodule.c:210:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (is_gitmodules_unmerged(the_repository->index))
                                                                       ^
                                                                        {
/datasets/git/submodule.c:217:12: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
                                 void *cb UNUSED)
                                       ^
/datasets/git/submodule.c:220:7: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
                int v = git_config_bool(var, value) ?
                    ^
/datasets/git/submodule.c:234:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (arg)
                ^
                 {
/datasets/git/submodule.c:238:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/submodule.c:259:28: warning: variable 'sl' is not initialized [cppcoreguidelines-init-variables]
        const struct string_list *sl;
                                  ^
                                     = NULL
/datasets/git/submodule.c:259:28: warning: variable name 'sl' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/submodule.c:260:26: warning: variable 'module' is not initialized [cppcoreguidelines-init-variables]
        const struct submodule *module;
                                ^
                                       = NULL
/datasets/git/submodule.c:281:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                const struct string_list_item *item;
                ^
/datasets/git/submodule.c:265:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!module)
                    ^
                     {
/datasets/git/submodule.c:279:19: warning: variable name 'ps' is too short, expected at least 3 characters [readability-identifier-length]
                struct pathspec ps;
                                ^
/datasets/git/submodule.c:281:34: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
                const struct string_list_item *item;
                                               ^
                                                    = NULL
/datasets/git/submodule.c:283:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for_each_string_list_item(item, sl) {
                ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/submodule.c:283:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
                for_each_string_list_item(item, sl) {
                                          ^
/datasets/git/submodule.c:288:48: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                ret = match_pathspec(repo->index, &ps, path, strlen(path), 0, NULL, 1);
                                                             ^
/datasets/git/submodule.c:314:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (resolve_gitdir_gently(gitdir, return_error_code))
                                                             ^
                                                              {
/datasets/git/submodule.c:327:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, prefixlen;
        ^~~~~~~~~~~~~~~~~
/datasets/git/submodule.c:327:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, prefixlen;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/submodule.c:327:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/submodule.c:327:9: warning: variable 'prefixlen' is not initialized [cppcoreguidelines-init-variables]
        int i, prefixlen;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/submodule.c:329:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!prefix)
                    ^
                     {
/datasets/git/submodule.c:332:14: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        prefixlen = strlen(prefix);
                    ^
/datasets/git/submodule.c:334:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < istate->cache_nr; i++) {
        ^
/datasets/git/submodule.c:335:23: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                struct cache_entry *ce = istate->cache[i];
                                    ^
/datasets/git/submodule.c:338:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!S_ISGITLINK(ce->ce_mode))
                     ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/submodule.c:338:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!S_ISGITLINK(ce->ce_mode))
                                              ^
                                               {
/datasets/git/submodule.c:340:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (prefixlen <= ce_len)
                                        ^
                                         {
/datasets/git/submodule.c:342:7: warning: function 'strncmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (strncmp(ce->name, prefix, ce_len))
                    ^
                                                      != 0
/datasets/git/submodule.c:342:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strncmp(ce->name, prefix, ce_len))
                                                      ^
                                                       {
/datasets/git/submodule.c:344:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (prefix[ce_len] != '/')
                                          ^
                                           {
/datasets/git/submodule.c:355:34: warning: parameter name 'ps' is too short, expected at least 3 characters [readability-identifier-length]
                               const struct pathspec *ps)
                                                      ^
/datasets/git/submodule.c:357:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, j;
        ^~~~~~~~~
/datasets/git/submodule.c:357:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, j;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/submodule.c:357:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/submodule.c:357:9: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int i, j;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/submodule.c:357:9: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/submodule.c:360:23: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                struct cache_entry *ce = istate->cache[i];
                                    ^
/datasets/git/submodule.c:363:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!S_ISGITLINK(ce->ce_mode))
                     ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/submodule.c:363:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!S_ISGITLINK(ce->ce_mode))
                                              ^
                                               {
/datasets/git/submodule.c:366:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (j = 0; j < ps->nr ; j++) {
                ^
/datasets/git/submodule.c:369:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (item->len <= ce_len)
                                                ^
                                                 {
/datasets/git/submodule.c:371:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (item->match[ce_len] != '/')
                                                       ^
                                                        {
/datasets/git/submodule.c:373:8: warning: function 'strncmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                        if (strncmp(ce->name, item->match, ce_len))
                            ^
                                                                   != 0
/datasets/git/submodule.c:373:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (strncmp(ce->name, item->match, ce_len))
                                                                   ^
                                                                    {
/datasets/git/submodule.c:375:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (item->len == ce_len + 1)
                                                    ^
                                                     {
/datasets/git/submodule.c:386:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(value, "none"))
                                   ^
                                    {
/datasets/git/submodule.c:388:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (!strcmp(value, "checkout"))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/submodule.c:388:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(value, "checkout"))
                                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/submodule.c:390:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(value, "rebase"))
                                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/submodule.c:392:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(value, "merge"))
                                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/submodule.c:394:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (*value == '!')
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/submodule.c:396:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/submodule.c:403:29: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum submodule_update_type type;
                                   ^
/datasets/git/submodule.c:409:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (type == SM_UPDATE_UNSPECIFIED)
                                          ^
                                           {
/datasets/git/submodule.c:413:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (type == SM_UPDATE_COMMAND)
                                      ^
                                       {
/datasets/git/submodule.c:446:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(arg, "all"))
                                ^
                                 {
/datasets/git/submodule.c:448:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(arg, "untracked"))
                                           ^
                                            {
/datasets/git/submodule.c:450:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(arg, "dirty"))
                                       ^
                                        {
/datasets/git/submodule.c:452:11: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        else if (strcmp(arg, "none"))
                 ^
                                     != 0
/datasets/git/submodule.c:452:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (strcmp(arg, "none"))
                                     ^
                                      {
/datasets/git/submodule.c:460:62: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int prepare_submodule_diff_summary(struct repository *r, struct rev_info *rev,
                                                             ^
/datasets/git/submodule.c:465:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct commit_list *list;
        ^
/datasets/git/submodule.c:465:22: warning: variable 'list' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *list;
                            ^
                                 = NULL
/datasets/git/submodule.c:471:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        left->object.flags |= SYMMETRIC_LEFT;
                              ^
/datasets/git/./revision.h:35:25: note: expanded from macro 'SYMMETRIC_LEFT'
#define SYMMETRIC_LEFT  (1u<<8)
                         ^   ~
/datasets/git/submodule.c:474:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (list = merge_bases; list; list = list->next) {
        ^
/datasets/git/submodule.c:474:27: warning: backward branch (for loop) is ID-dependent due to variable reference to 'list' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (list = merge_bases; list; list = list->next) {
                                 ^
/datasets/git/submodule.c:475:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                list->item->object.flags |= UNINTERESTING;
                                            ^
/datasets/git/./revision.h:28:26: note: expanded from macro 'UNINTERESTING'
#define UNINTERESTING   (1u<<1)
                         ^   ~
/datasets/git/submodule.c:482:61: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void print_submodule_diff_summary(struct repository *r, struct rev_info *rev, struct diff_options *o)
                                                            ^
/datasets/git/submodule.c:482:107: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static void print_submodule_diff_summary(struct repository *r, struct rev_info *rev, struct diff_options *o)
                                                                                                          ^
/datasets/git/submodule.c:486:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct commit *commit;
        ^
/datasets/git/submodule.c:485:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/submodule.c:486:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/submodule.c:488:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((commit = get_revision(rev))) {
        ^
/datasets/git/submodule.c:488:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'commit' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((commit = get_revision(rev))) {
               ^
/datasets/git/submodule.c:496:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (commit->object.flags & SYMMETRIC_LEFT)
                                           ^
/datasets/git/./revision.h:35:25: note: expanded from macro 'SYMMETRIC_LEFT'
#define SYMMETRIC_LEFT  (1u<<8)
                         ^   ~
/datasets/git/submodule.c:496:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (commit->object.flags & SYMMETRIC_LEFT)
                                                          ^
                                                           {
/datasets/git/submodule.c:498:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/submodule.c:522:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/submodule.c:546:56: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static void show_submodule_header(struct diff_options *o,
                                                       ^
/datasets/git/submodule.c:555:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/submodule.c:556:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int fast_forward = 0, fast_backward = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/submodule.c:558:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (dirty_submodule & DIRTY_SUBMODULE_UNTRACKED)
            ^
/datasets/git/submodule.c:558:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (dirty_submodule & DIRTY_SUBMODULE_UNTRACKED)
                                                        ^
                                                         {
/datasets/git/submodule.c:561:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (dirty_submodule & DIRTY_SUBMODULE_MODIFIED)
            ^
/datasets/git/submodule.c:561:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (dirty_submodule & DIRTY_SUBMODULE_MODIFIED)
                                                       ^
                                                        {
/datasets/git/submodule.c:564:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_null_oid(one))
                             ^
                              {
/datasets/git/submodule.c:566:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (is_null_oid(two))
                                  ^
                                   {
/datasets/git/submodule.c:570:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!message)
                             ^
                              {
/datasets/git/submodule.c:587:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
             (!is_null_oid(two) && !*right))
                                            ^
                                             {
/datasets/git/submodule.c:592:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((*merge_bases)->item == *left)
                                                  ^
                                                   {
/datasets/git/submodule.c:594:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if ((*merge_bases)->item == *right)
                                                        ^
                                                         {
/datasets/git/submodule.c:608:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (message)
                    ^
                     {
/datasets/git/submodule.c:610:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/submodule.c:617:55: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
void show_submodule_diff_summary(struct diff_options *o, const char *path,
                                                      ^
/datasets/git/submodule.c:622:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit *left = NULL, *right = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/submodule.c:624:21: warning: variable 'sub' is not initialized [cppcoreguidelines-init-variables]
        struct repository *sub;
                           ^
                               = NULL
/datasets/git/submodule.c:635:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!left || !right || !sub)
                                    ^
                                     {
/datasets/git/submodule.c:649:27: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
        clear_commit_marks(left, ~0);
                                 ^~
/datasets/git/submodule.c:650:28: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
        clear_commit_marks(right, ~0);
                                  ^~
/datasets/git/submodule.c:657:54: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
void show_submodule_inline_diff(struct diff_options *o, const char *path,
                                                     ^
/datasets/git/submodule.c:661:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const struct object_id *old_oid = the_hash_algo->empty_tree, *new_oid = the_hash_algo->empty_tree;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/submodule.c:662:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct commit *left = NULL, *right = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/submodule.c:664:23: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
        struct child_process cp = CHILD_PROCESS_INIT;
                             ^
/datasets/git/submodule.c:665:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/submodule.c:666:21: warning: variable 'sub' is not initialized [cppcoreguidelines-init-variables]
        struct repository *sub;
                           ^
                               = NULL
/datasets/git/submodule.c:674:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !(right || is_null_oid(two)))
                                         ^
                                          {
/datasets/git/submodule.c:677:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (left)
                 ^
                  {
/datasets/git/submodule.c:679:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (right)
                  ^
                   {
/datasets/git/submodule.c:710:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(dirty_submodule & DIRTY_SUBMODULE_MODIFIED))
              ^
/datasets/git/submodule.c:710:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(dirty_submodule & DIRTY_SUBMODULE_MODIFIED))
                                                          ^
                                                           {
/datasets/git/submodule.c:717:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!sub)
                         ^
                          {
/datasets/git/submodule.c:729:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (strbuf_getwholeline_fd(&sb, cp.out, '\n') != EOF)
        ^
/datasets/git/submodule.c:729:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'sb' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (strbuf_getwholeline_fd(&sb, cp.out, '\n') != EOF)
               ^
/datasets/git/submodule.c:729:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (strbuf_getwholeline_fd(&sb, cp.out, '\n') != EOF)
                                                                ^
                                                                 {
/datasets/git/submodule.c:730:46: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                diff_emit_submodule_pipethrough(o, sb.buf, sb.len);
                                                           ^
/datasets/git/submodule.c:732:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (finish_command(&cp))
                                ^
                                 {
/datasets/git/submodule.c:738:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (left)
                 ^
                  {
/datasets/git/submodule.c:739:28: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                clear_commit_marks(left, ~0);
                                         ^~
/datasets/git/submodule.c:740:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (right)
                  ^
                   {
/datasets/git/submodule.c:741:29: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                clear_commit_marks(right, ~0);
                                          ^~
/datasets/git/submodule.c:753:69: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
const struct submodule *submodule_from_ce(const struct cache_entry *ce)
                                                                    ^
/datasets/git/submodule.c:755:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!S_ISGITLINK(ce->ce_mode))
             ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/submodule.c:755:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!S_ISGITLINK(ce->ce_mode))
                                      ^
                                       {
/datasets/git/submodule.c:758:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!should_update_submodules())
                                        ^
                                         {
/datasets/git/submodule.c:765:8: warning: accessing fields in struct 'collect_changed_submodules_cb_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct collect_changed_submodules_cb_data {
       ^
/datasets/git/submodule.c:765:8: note: use "__attribute__((aligned(32)))" to align struct 'collect_changed_submodules_cb_data' to 32 bytes
/datasets/git/submodule.c:780:6: warning: variable 'error_code' is not initialized [cppcoreguidelines-init-variables]
        int error_code;
            ^
                       = 0
/datasets/git/submodule.c:782:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_submodule_populated_gently(path_or_name, &error_code))
                                                                      ^
                                                                       {
/datasets/git/submodule.c:813:8: warning: accessing fields in struct 'changed_submodule_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct changed_submodule_data {
       ^
/datasets/git/submodule.c:813:8: note: use "__attribute__((aligned(64)))" to align struct 'changed_submodule_data' to 64 bytes
/datasets/git/submodule.c:834:69: warning: parameter name 'q' is too short, expected at least 3 characters [readability-identifier-length]
static void collect_changed_submodules_cb(struct diff_queue_struct *q,
                                                                    ^
/datasets/git/submodule.c:835:29: warning: parameter 'options' is unused [misc-unused-parameters]
                                          struct diff_options *options,
                                                               ^
/datasets/git/submodule.c:838:45: warning: variable name 'me' is too short, expected at least 3 characters [readability-identifier-length]
        struct collect_changed_submodules_cb_data *me = data;
                                                   ^
/datasets/git/submodule.c:841:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/submodule.c:841:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/submodule.c:843:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < q->nr; i++) {
        ^
/datasets/git/submodule.c:844:25: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct diff_filepair *p = q->queue[i];
                                      ^
/datasets/git/submodule.c:845:27: warning: variable 'submodule' is not initialized [cppcoreguidelines-init-variables]
                const struct submodule *submodule;
                                        ^
                                                  = NULL
/datasets/git/submodule.c:846:15: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
                const char *name;
                            ^
                                 = NULL
/datasets/git/submodule.c:847:28: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
                struct string_list_item *item;
                                         ^
                                              = NULL
/datasets/git/submodule.c:848:34: warning: variable 'cs_data' is not initialized [cppcoreguidelines-init-variables]
                struct changed_submodule_data *cs_data;
                                               ^
                                                       = NULL
/datasets/git/submodule.c:850:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!S_ISGITLINK(p->two->mode))
                     ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/submodule.c:850:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!S_ISGITLINK(p->two->mode))
                                               ^
                                                {
/datasets/git/submodule.c:855:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (submodule)
                              ^
                               {
/datasets/git/submodule.c:860:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (name)
                                 ^
                                  {
/datasets/git/submodule.c:872:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!name)
                          ^
                           {
/datasets/git/submodule.c:876:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (item->util)
                               ^
                                {
/datasets/git/submodule.c:894:59: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void collect_changed_submodules(struct repository *r,
                                                          ^
/datasets/git/submodule.c:899:23: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        const struct commit *commit;
                             ^
                                    = NULL
/datasets/git/submodule.c:900:6: warning: variable 'save_warning' is not initialized [cppcoreguidelines-init-variables]
        int save_warning;
            ^
                         = 0
/datasets/git/submodule.c:908:18: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        setup_revisions(argv->nr, argv->v, &rev, &s_r_opt);
                        ^
/datasets/git/submodule.c:910:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prepare_revision_walk(&rev))
                                        ^
                                         {
/datasets/git/submodule.c:913:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((commit = get_revision(&rev))) {
        ^
/datasets/git/submodule.c:913:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'commit' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((commit = get_revision(&rev))) {
               ^
/datasets/git/submodule.c:921:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                diff_rev.diffopt.output_format |= DIFF_FORMAT_CALLBACK;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/submodule.c:935:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct string_list_item *item;
        ^
/datasets/git/submodule.c:935:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/submodule.c:936:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(item, submodules)
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/submodule.c:936:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(item, submodules)
                                  ^
/datasets/git/submodule.c:956:8: warning: accessing fields in struct 'has_commit_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct has_commit_data {
       ^
/datasets/git/submodule.c:956:8: note: use "__attribute__((aligned(32)))" to align struct 'has_commit_data' to 32 bytes
/datasets/git/submodule.c:965:26: warning: variable name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
        struct has_commit_data *cb = data;
                                ^
/datasets/git/submodule.c:967:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/submodule.c:996:53: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int submodule_has_commits(struct repository *r,
                                                    ^
/datasets/git/submodule.c:1016:24: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
                struct child_process cp = CHILD_PROCESS_INIT;
                                     ^
/datasets/git/submodule.c:1028:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (capture_command(&cp, &out, GIT_MAX_HEXSZ + 1) || out.len)
                                                                             ^
                                                                              {
/datasets/git/submodule.c:1037:55: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int submodule_needs_pushing(struct repository *r,
                                                      ^
/datasets/git/submodule.c:1041:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!submodule_has_commits(r, path, null_oid(), commits))
                                                                 ^
                                                                  {
/datasets/git/submodule.c:1056:24: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
                struct child_process cp = CHILD_PROCESS_INIT;
                                     ^
/datasets/git/submodule.c:1069:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (start_command(&cp))
                                       ^
                                        {
/datasets/git/submodule.c:1072:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strbuf_read(&buf, cp.out, the_hash_algo->hexsz + 1))
                                                                        ^
                                                                         {
/datasets/git/submodule.c:1083:49: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int find_unpushed_submodules(struct repository *r,
                                                ^
/datasets/git/submodule.c:1089:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct string_list_item *name;
        ^
/datasets/git/submodule.c:1089:27: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *name;
                                 ^
                                      = NULL
/datasets/git/submodule.c:1100:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(name, &submodules) {
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/submodule.c:1100:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'name' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(name, &submodules) {
                                  ^
/datasets/git/submodule.c:1102:27: warning: variable 'submodule' is not initialized [cppcoreguidelines-init-variables]
                const struct submodule *submodule;
                                        ^
                                                  = NULL
/datasets/git/submodule.c:1106:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (submodule)
                              ^
                               {
/datasets/git/submodule.c:1108:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/submodule.c:1111:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!path)
                          ^
                           {
/datasets/git/submodule.c:1114:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (submodule_needs_pushing(r, path, &cs_data->new_commits))
                                                                            ^
                                                                             {
/datasets/git/submodule.c:1121:9: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return needs_pushing->nr;
               ^
/datasets/git/submodule.c:1126:28: warning: parameter name 'rs' is too short, expected at least 3 characters [readability-identifier-length]
                          const struct refspec *rs,
                                                ^
/datasets/git/submodule.c:1131:24: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
                struct child_process cp = CHILD_PROCESS_INIT;
                                     ^
/datasets/git/submodule.c:1143:4: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                        const struct string_list_item *item;
                        ^
/datasets/git/submodule.c:1139:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (dry_run)
                            ^
                             {
/datasets/git/submodule.c:1143:35: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
                        const struct string_list_item *item;
                                                       ^
                                                            = NULL
/datasets/git/submodule.c:1144:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for_each_string_list_item(item, push_options)
                        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/submodule.c:1144:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for_each_string_list_item(item, push_options)
                                                  ^
/datasets/git/submodule.c:1150:8: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                        int i;
                            ^
                              = 0
/datasets/git/submodule.c:1150:8: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/submodule.c:1152:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = 0; i < rs->raw_nr; i++)
                        ^
/datasets/git/submodule.c:1152:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (i = 0; i < rs->raw_nr; i++)
                                                        ^
                                                         {
/datasets/git/submodule.c:1160:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (run_command(&cp))
                                     ^
                                      {
/datasets/git/submodule.c:1172:34: warning: 2 adjacent parameters of 'submodule_push_check' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void submodule_push_check(const char *path, const char *head,
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/submodule.c:1172:46: note: the first parameter in the range is 'path'
static void submodule_push_check(const char *path, const char *head,
                                             ^~~~
/datasets/git/submodule.c:1172:64: note: the last parameter in the range is 'head'
static void submodule_push_check(const char *path, const char *head,
                                                               ^~~~
/datasets/git/submodule.c:1174:28: warning: parameter name 'rs' is too short, expected at least 3 characters [readability-identifier-length]
                                 const struct refspec *rs)
                                                       ^
/datasets/git/submodule.c:1176:23: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
        struct child_process cp = CHILD_PROCESS_INIT;
                             ^
/datasets/git/submodule.c:1177:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/submodule.c:1177:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/submodule.c:1184:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < rs->raw_nr; i++)
        ^
/datasets/git/submodule.c:1184:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < rs->raw_nr; i++)
                                        ^
                                         {
/datasets/git/submodule.c:1198:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (run_command(&cp))
                             ^
                              {
/datasets/git/submodule.c:1202:49: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int push_unpushed_submodules(struct repository *r,
                                                ^
/datasets/git/submodule.c:1205:31: warning: parameter name 'rs' is too short, expected at least 3 characters [readability-identifier-length]
                             const struct refspec *rs,
                                                   ^
/datasets/git/submodule.c:1209:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, ret = 1;
        ^~~~~~~~~~~~~~~
/datasets/git/submodule.c:1209:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, ret = 1;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/submodule.c:1209:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/submodule.c:1213:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                      remote->name, &needs_pushing))
                                                                    ^
                                                                     {
/datasets/git/submodule.c:1223:9: warning: variable 'head' is not initialized [cppcoreguidelines-init-variables]
                char *head;
                      ^
                           = NULL
/datasets/git/submodule.c:1227:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!head)
                          ^
                           {
/datasets/git/submodule.c:1230:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < needs_pushing.nr; i++)
                ^
/datasets/git/submodule.c:1230:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < needs_pushing.nr; i++)
                                                      ^
                                                       {
/datasets/git/submodule.c:1237:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < needs_pushing.nr; i++) {
        ^
/datasets/git/submodule.c:1239:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, _("Pushing submodule '%s'\n"), path);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/submodule.c:1239:3: note: cast the expression to void to silence this warning
/datasets/git/submodule.c:1242:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, _("Unable to push submodule '%s'\n"), path);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/submodule.c:1242:4: note: cast the expression to void to silence this warning
/datasets/git/submodule.c:1281:60: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int repo_has_absorbed_submodules(struct repository *r)
                                                           ^
/datasets/git/submodule.c:1283:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/submodule.c:1292:66: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void calculate_changed_submodule_paths(struct repository *r,
                                                                 ^
/datasets/git/submodule.c:1296:27: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *name;
                                 ^
                                      = NULL
/datasets/git/submodule.c:1300:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !repo_has_absorbed_submodules(r))
                                             ^
                                              {
/datasets/git/submodule.c:1316:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(name, changed_submodule_names) {
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/submodule.c:1316:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'name' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(name, changed_submodule_names) {
                                  ^
/datasets/git/submodule.c:1318:27: warning: variable 'submodule' is not initialized [cppcoreguidelines-init-variables]
                const struct submodule *submodule;
                                        ^
                                                  = NULL
/datasets/git/submodule.c:1322:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (submodule)
                              ^
                               {
/datasets/git/submodule.c:1324:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/submodule.c:1327:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!path)
                          ^
                           {
/datasets/git/submodule.c:1344:51: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int submodule_touches_in_range(struct repository *r,
                                                  ^
/datasets/git/submodule.c:1350:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/submodule.c:1353:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!submodule_from_path(r, NULL, NULL))
                                                ^
                                                 {
/datasets/git/submodule.c:1364:8: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        ret = subs.nr;
              ^
/datasets/git/submodule.c:1372:8: warning: accessing fields in struct 'submodule_parallel_fetch' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct submodule_parallel_fetch {
       ^
/datasets/git/submodule.c:1372:8: note: use "__attribute__((aligned(128)))" to align struct 'submodule_parallel_fetch' to 128 bytes
/datasets/git/submodule.c:1418:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (spf->command_line_option != RECURSE_SUBMODULES_DEFAULT)
                                                                   ^
                                                                    {
/datasets/git/submodule.c:1422:9: warning: variable 'key' is not initialized [cppcoreguidelines-init-variables]
                char *key;
                      ^
                          = NULL
/datasets/git/submodule.c:1423:15: warning: variable 'value' is not initialized [cppcoreguidelines-init-variables]
                const char *value;
                            ^
                                  = NULL
/datasets/git/submodule.c:1432:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fetch_recurse != RECURSE_SUBMODULES_NONE)
                                                             ^
                                                              {
/datasets/git/submodule.c:1444:8: warning: accessing fields in struct 'fetch_task' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct fetch_task {
       ^
/datasets/git/submodule.c:1444:8: note: use "__attribute__((aligned(64)))" to align struct 'fetch_task' to 64 bytes
/datasets/git/submodule.c:1464:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!name)
                  ^
                   {
/datasets/git/submodule.c:1468:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(ret, 0, sizeof(*ret));
        ^~~~~~
/datasets/git/submodule.c:1468:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(ret, 0, sizeof(*ret));
        ^~~~~~
/datasets/git/submodule.c:1475:51: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static void fetch_task_release(struct fetch_task *p)
                                                  ^
/datasets/git/submodule.c:1477:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (p->free_sub)
                        ^
                         {
/datasets/git/submodule.c:1482:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (p->repo)
                    ^
                     {
/datasets/git/submodule.c:1484:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(p->repo);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/submodule.c:1489:69: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static struct repository *get_submodule_repo_for(struct repository *r,
                                                                    ^
/datasets/git/submodule.c:1508:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(task, 0, sizeof(*task));
        ^~~~~~
/datasets/git/submodule.c:1508:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(task, 0, sizeof(*task));
        ^~~~~~
/datasets/git/submodule.c:1519:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!task->sub)
                               ^
                                {
/datasets/git/submodule.c:1525:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (string_list_lookup(&spf->seen_submodule_names, task->sub->name))
                                                                            ^
                                                                             {
/datasets/git/submodule.c:1536:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                task->sub->name))
                                                 ^
                                                  {
/datasets/git/submodule.c:1561:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; spf->index_count < spf->r->index->cache_nr; spf->index_count++) {
        ^
/datasets/git/submodule.c:1562:29: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                const struct cache_entry *ce =
                                          ^
/datasets/git/submodule.c:1564:22: warning: variable 'task' is not initialized [cppcoreguidelines-init-variables]
                struct fetch_task *task;
                                   ^
                                        = NULL
/datasets/git/submodule.c:1566:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!S_ISGITLINK(ce->ce_mode))
                     ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/submodule.c:1566:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!S_ISGITLINK(ce->ce_mode))
                                              ^
                                               {
/datasets/git/submodule.c:1570:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!task)
                          ^
                           {
/datasets/git/submodule.c:1574:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!spf->quiet)
                                        ^
                                         {
/datasets/git/submodule.c:1580:5: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                } else {
                  ^~~~~~
/datasets/git/submodule.c:1593:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (S_ISGITLINK(ce->ce_mode) &&
                            ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/submodule.c:1610:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; spf->changed_count < spf->changed_submodule_names.nr;
        ^
/datasets/git/submodule.c:1615:22: warning: variable 'task' is not initialized [cppcoreguidelines-init-variables]
                struct fetch_task *task;
                                   ^
                                        = NULL
/datasets/git/submodule.c:1617:75: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!is_tree_submodule_active(spf->r, cs_data->super_oid,cs_data->path))
                                                                                        ^
                                                                                         {
/datasets/git/submodule.c:1622:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!task)
                          ^
                           {
/datasets/git/submodule.c:1635:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!spf->quiet)
                                ^
                                 {
/datasets/git/submodule.c:1675:53: warning: parameter name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
static int get_next_submodule(struct child_process *cp, struct strbuf *err,
                                                    ^
/datasets/git/submodule.c:1681:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!task)
                  ^
                   {
/datasets/git/submodule.c:1692:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (task->git_args.nr)
                                      ^
                                       {
/datasets/git/submodule.c:1742:47: warning: parameter 'err' is unused [misc-unused-parameters]
static int fetch_start_failure(struct strbuf *err,
                                              ^
/datasets/git/submodule.c:1743:11: warning: 2 adjacent parameters of 'fetch_start_failure' of similar type ('void *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                               void *cb, void *task_cb)
                               ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/submodule.c:1743:17: note: the first parameter in the range is 'cb'
                               void *cb, void *task_cb)
                                     ^~
/datasets/git/submodule.c:1743:27: note: the last parameter in the range is 'task_cb'
                               void *cb, void *task_cb)
                                               ^~~~~~~
/datasets/git/submodule.c:1743:17: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
                               void *cb, void *task_cb)
                                     ^
/datasets/git/submodule.c:1763:54: warning: parameter 'err' is unused [misc-unused-parameters]
static int fetch_finish(int retvalue, struct strbuf *err,
                                                     ^
/datasets/git/submodule.c:1764:4: warning: 2 adjacent parameters of 'fetch_finish' of similar type ('void *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                        void *cb, void *task_cb)
                        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/submodule.c:1764:10: note: the first parameter in the range is 'cb'
                        void *cb, void *task_cb)
                              ^~
/datasets/git/submodule.c:1764:20: note: the last parameter in the range is 'task_cb'
                        void *cb, void *task_cb)
                                        ^~~~~~~
/datasets/git/submodule.c:1764:10: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
                        void *cb, void *task_cb)
                              ^
/datasets/git/submodule.c:1769:27: warning: variable 'it' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *it;
                                 ^
                                    = NULL
/datasets/git/submodule.c:1769:27: warning: variable name 'it' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/submodule.c:1770:33: warning: variable 'cs_data' is not initialized [cppcoreguidelines-init-variables]
        struct changed_submodule_data *cs_data;
                                       ^
                                               = NULL
/datasets/git/submodule.c:1772:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!task || !task->sub)
                                ^
                                 {
/datasets/git/submodule.c:1790:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (task->commits)
                          ^
                           {
/datasets/git/submodule.c:1794:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!it)
                ^
                 {
/datasets/git/submodule.c:1806:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                ALLOC_GROW(spf->oid_fetch_tasks,
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/submodule.c:1806:3: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                ALLOC_GROW(spf->oid_fetch_tasks,
                ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/submodule.c:1820:41: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int fetch_submodules(struct repository *r,
                                        ^
/datasets/git/submodule.c:1822:28: warning: 4 adjacent parameters of 'fetch_submodules' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                     const char *prefix, int command_line_option,
                                         ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/submodule.c:1822:32: note: the first parameter in the range is 'command_line_option'
                     const char *prefix, int command_line_option,
                                             ^~~~~~~~~~~~~~~~~~~
/datasets/git/submodule.c:1824:23: note: the last parameter in the range is 'max_parallel_jobs'
                     int quiet, int max_parallel_jobs)
                                    ^~~~~~~~~~~~~~~~~
/datasets/git/submodule.c:1826:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/submodule.c:1826:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/submodule.c:1846:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!r->worktree)
                         ^
                          {
/datasets/git/submodule.c:1849:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo_read_index(r) < 0)
                                   ^
                                    {
/datasets/git/submodule.c:1853:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < options->nr; i++)
        ^
/datasets/git/submodule.c:1853:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < options->nr; i++)
                                         ^
                                          {
/datasets/git/submodule.c:1862:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (spf.submodules_with_errors.len > 0)
                                               ^
                                                {
/datasets/git/submodule.c:1863:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, _("Errors during submodule fetch:\n%s"),
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/submodule.c:1863:3: note: cast the expression to void to silence this warning
/datasets/git/submodule.c:1873:10: warning: function 'is_submodule_modified' has cognitive complexity of 29 (threshold 25) [readability-function-cognitive-complexity]
unsigned is_submodule_modified(const char *path, int ignore_untracked)
         ^
/datasets/git/submodule.c:1884:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!git_dir)
        ^
/datasets/git/submodule.c:1886:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!is_git_directory(git_dir)) {
        ^
/datasets/git/submodule.c:1887:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (is_directory(git_dir))
                ^
/datasets/git/submodule.c:1896:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ignore_untracked)
        ^
/datasets/git/submodule.c:1904:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (start_command(&cp))
        ^
/datasets/git/submodule.c:1908:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (strbuf_getwholeline(&buf, fp, '\n') != EOF) {
        ^
/datasets/git/submodule.c:1910:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (buf.buf[0] == '?')
                ^
/datasets/git/submodule.c:1913:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (buf.buf[0] == 'u' ||
                ^
/datasets/git/submodule.c:1914:25: note: +1
                    buf.buf[0] == '1' ||
                                      ^
/datasets/git/submodule.c:1917:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (buf.len < strlen("T XY SSSS"))
                        ^
/datasets/git/submodule.c:1921:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (buf.buf[5] == 'S' && buf.buf[8] == 'U')
                        ^
/datasets/git/submodule.c:1921:26: note: +1
                        if (buf.buf[5] == 'S' && buf.buf[8] == 'U')
                                              ^
/datasets/git/submodule.c:1925:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (buf.buf[0] == 'u' ||
                        ^
/datasets/git/submodule.c:1926:26: note: +1
                            buf.buf[0] == '2' ||
                                              ^
/datasets/git/submodule.c:1932:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((dirty_submodule & DIRTY_SUBMODULE_MODIFIED) &&
                ^
/datasets/git/submodule.c:1932:52: note: +1
                if ((dirty_submodule & DIRTY_SUBMODULE_MODIFIED) &&
                                                                 ^
/datasets/git/submodule.c:1933:54: note: +1
                    ((dirty_submodule & DIRTY_SUBMODULE_UNTRACKED) ||
                                                                   ^
/datasets/git/submodule.c:1945:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (finish_command(&cp) && !ignore_cp_exit_code)
        ^
/datasets/git/submodule.c:1945:26: note: +1
        if (finish_command(&cp) && !ignore_cp_exit_code)
                                ^
/datasets/git/submodule.c:1875:23: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
        struct child_process cp = CHILD_PROCESS_INIT;
                             ^
/datasets/git/submodule.c:1877:8: warning: variable 'fp' is not initialized [cppcoreguidelines-init-variables]
        FILE *fp;
              ^
                 = NULL
/datasets/git/submodule.c:1877:8: warning: variable name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/submodule.c:1879:14: warning: variable 'git_dir' is not initialized [cppcoreguidelines-init-variables]
        const char *git_dir;
                    ^
                            = NULL
/datasets/git/submodule.c:1884:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!git_dir)
                     ^
                      {
/datasets/git/submodule.c:1887:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_directory(git_dir))
                                          ^
                                           {
/datasets/git/submodule.c:1896:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ignore_untracked)
                             ^
                              {
/datasets/git/submodule.c:1904:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (start_command(&cp))
                               ^
                                {
/datasets/git/submodule.c:1908:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (strbuf_getwholeline(&buf, fp, '\n') != EOF) {
        ^
/datasets/git/submodule.c:1908:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'buf' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (strbuf_getwholeline(&buf, fp, '\n') != EOF) {
               ^
/datasets/git/submodule.c:1910:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (buf.buf[0] == '?')
                                      ^
                                       {
/datasets/git/submodule.c:1911:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        dirty_submodule |= DIRTY_SUBMODULE_UNTRACKED;
                        ^
/datasets/git/submodule.c:1917:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (buf.len < strlen("T XY SSSS"))
                                                          ^
                                                           {
/datasets/git/submodule.c:1921:16: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        if (buf.buf[5] == 'S' && buf.buf[8] == 'U')
                                    ^
/datasets/git/submodule.c:1921:37: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        if (buf.buf[5] == 'S' && buf.buf[8] == 'U')
                                                         ^
/datasets/git/submodule.c:1921:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (buf.buf[5] == 'S' && buf.buf[8] == 'U')
                                                                   ^
                                                                    {
/datasets/git/submodule.c:1923:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                dirty_submodule |= DIRTY_SUBMODULE_UNTRACKED;
                                ^
/datasets/git/submodule.c:1927:8: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                            memcmp(buf.buf + 5, "S..U", 4))
                            ^
                                                           != 0
/datasets/git/submodule.c:1927:25: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            memcmp(buf.buf + 5, "S..U", 4))
                                             ^
/datasets/git/submodule.c:1927:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            memcmp(buf.buf + 5, "S..U", 4))
                                                           ^
                                                            {
/datasets/git/submodule.c:1929:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                dirty_submodule |= DIRTY_SUBMODULE_MODIFIED;
                                ^
/datasets/git/submodule.c:1932:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((dirty_submodule & DIRTY_SUBMODULE_MODIFIED) &&
                     ^
/datasets/git/submodule.c:1933:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    ((dirty_submodule & DIRTY_SUBMODULE_UNTRACKED) ||
                      ^
/datasets/git/submodule.c:1943:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(fp);
        ^~~~~~~~~~
/datasets/git/submodule.c:1943:2: note: cast the expression to void to silence this warning
/datasets/git/submodule.c:1945:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (finish_command(&cp) && !ignore_cp_exit_code)
                                                        ^
                                                         {
/datasets/git/submodule.c:1954:23: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
        struct child_process cp = CHILD_PROCESS_INIT;
                             ^
/datasets/git/submodule.c:1956:14: warning: variable 'git_dir' is not initialized [cppcoreguidelines-init-variables]
        const char *git_dir;
                    ^
                            = NULL
/datasets/git/submodule.c:1977:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (run_command(&cp))
                             ^
                              {
/datasets/git/submodule.c:1992:10: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        ssize_t len;
                ^
                    = 0
/datasets/git/submodule.c:1993:23: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
        struct child_process cp = CHILD_PROCESS_INIT;
                             ^
/datasets/git/submodule.c:1997:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!file_exists(path) || is_empty_dir(path))
                                                     ^
                                                      {
/datasets/git/submodule.c:2000:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!submodule_uses_gitfile(path))
                                          ^
                                           {
/datasets/git/submodule.c:2006:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & SUBMODULE_REMOVAL_IGNORE_UNTRACKED)
            ^
/datasets/git/submodule.c:2006:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & SUBMODULE_REMOVAL_IGNORE_UNTRACKED)
                    ^
/datasets/git/./submodule.h:101:45: note: expanded from macro 'SUBMODULE_REMOVAL_IGNORE_UNTRACKED'
#define SUBMODULE_REMOVAL_IGNORE_UNTRACKED (1<<1)
                                            ^
/datasets/git/submodule.c:2006:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & SUBMODULE_REMOVAL_IGNORE_UNTRACKED)
                                                       ^
                                                        {
/datasets/git/submodule.c:2008:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/submodule.c:2011:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & SUBMODULE_REMOVAL_IGNORE_IGNORED_UNTRACKED))
              ^
/datasets/git/submodule.c:2011:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & SUBMODULE_REMOVAL_IGNORE_IGNORED_UNTRACKED))
                      ^
/datasets/git/./submodule.h:102:53: note: expanded from macro 'SUBMODULE_REMOVAL_IGNORE_IGNORED_UNTRACKED'
#define SUBMODULE_REMOVAL_IGNORE_IGNORED_UNTRACKED (1<<2)
                                                    ^
/datasets/git/submodule.c:2011:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(flags & SUBMODULE_REMOVAL_IGNORE_IGNORED_UNTRACKED))
                                                                  ^
                                                                   {
/datasets/git/submodule.c:2020:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flags & SUBMODULE_REMOVAL_DIE_ON_ERROR)
                    ^
/datasets/git/submodule.c:2020:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flags & SUBMODULE_REMOVAL_DIE_ON_ERROR)
                            ^
/datasets/git/./submodule.h:100:41: note: expanded from macro 'SUBMODULE_REMOVAL_DIE_ON_ERROR'
#define SUBMODULE_REMOVAL_DIE_ON_ERROR (1<<0)
                                        ^
/datasets/git/submodule.c:2020:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (flags & SUBMODULE_REMOVAL_DIE_ON_ERROR)
                                                           ^
                                                            {
/datasets/git/submodule.c:2027:34: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        len = strbuf_read(&buf, cp.out, 1024);
                                        ^
/datasets/git/submodule.c:2028:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len > 2)
                    ^
                     {
/datasets/git/submodule.c:2033:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flags & SUBMODULE_REMOVAL_DIE_ON_ERROR)
                    ^
/datasets/git/submodule.c:2033:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flags & SUBMODULE_REMOVAL_DIE_ON_ERROR)
                            ^
/datasets/git/./submodule.h:100:41: note: expanded from macro 'SUBMODULE_REMOVAL_DIE_ON_ERROR'
#define SUBMODULE_REMOVAL_DIE_ON_ERROR (1<<0)
                                        ^
/datasets/git/submodule.c:2033:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (flags & SUBMODULE_REMOVAL_DIE_ON_ERROR)
                                                           ^
                                                            {
/datasets/git/submodule.c:2050:76: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (git_config_set_in_file_gently(config_path.buf, "core.worktree", NULL))
                                                                                  ^
                                                                                   {
/datasets/git/submodule.c:2059:14: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
        const char *s = get_super_prefix();
                    ^
/datasets/git/submodule.c:2060:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!s)
               ^
                {
/datasets/git/submodule.c:2067:23: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
        struct child_process cp = CHILD_PROCESS_INIT;
                             ^
/datasets/git/submodule.c:2077:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (start_command(&cp))
                               ^
                                {
/datasets/git/submodule.c:2085:23: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
        struct child_process cp = CHILD_PROCESS_INIT;
                             ^
/datasets/git/submodule.c:2099:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (run_command(&cp))
                             ^
                              {
/datasets/git/submodule.c:2108:5: warning: function 'submodule_move_head' has cognitive complexity of 41 (threshold 25) [readability-function-cognitive-complexity]
int submodule_move_head(const char *path,
    ^
/datasets/git/submodule.c:2118:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!is_submodule_active(the_repository, path))
        ^
/datasets/git/submodule.c:2121:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (flags & SUBMODULE_MOVE_HEAD_FORCE)
        ^
/datasets/git/submodule.c:2128:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/submodule.c:2131:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (old_head && !is_submodule_populated_gently(path, error_code_ptr))
        ^
/datasets/git/submodule.c:2131:15: note: +1
        if (old_head && !is_submodule_populated_gently(path, error_code_ptr))
                     ^
/datasets/git/submodule.c:2136:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!sub)
        ^
/datasets/git/submodule.c:2139:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (old_head && !(flags & SUBMODULE_MOVE_HEAD_FORCE)) {
        ^
/datasets/git/submodule.c:2139:15: note: +1
        if (old_head && !(flags & SUBMODULE_MOVE_HEAD_FORCE)) {
                     ^
/datasets/git/submodule.c:2141:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (submodule_has_dirty_index(sub))
                ^
/datasets/git/submodule.c:2145:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!(flags & SUBMODULE_MOVE_HEAD_DRY_RUN)) {
        ^
/datasets/git/submodule.c:2146:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (old_head) {
                ^
/datasets/git/submodule.c:2147:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!submodule_uses_gitfile(path))
                        ^
/datasets/git/submodule.c:2149:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/submodule.c:2160:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (old_head && (flags & SUBMODULE_MOVE_HEAD_FORCE)) {
                ^
/datasets/git/submodule.c:2160:16: note: +1
                if (old_head && (flags & SUBMODULE_MOVE_HEAD_FORCE)) {
                             ^
/datasets/git/submodule.c:2179:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (flags & SUBMODULE_MOVE_HEAD_DRY_RUN)
        ^
/datasets/git/submodule.c:2181:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/submodule.c:2184:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (flags & SUBMODULE_MOVE_HEAD_FORCE)
        ^
/datasets/git/submodule.c:2186:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/submodule.c:2189:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!(flags & SUBMODULE_MOVE_HEAD_FORCE))
        ^
/datasets/git/submodule.c:2190:34: note: +2, including nesting penalty of 1, nesting level increased to 2
                strvec_push(&cp.args, old_head ? old_head : empty_tree_oid_hex());
                                               ^
/datasets/git/submodule.c:2192:33: note: +1, including nesting penalty of 0, nesting level increased to 1
        strvec_push(&cp.args, new_head ? new_head : empty_tree_oid_hex());
                                       ^
/datasets/git/submodule.c:2194:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (run_command(&cp)) {
        ^
/datasets/git/submodule.c:2196:3: note: +1
                goto out;
                ^
/datasets/git/submodule.c:2199:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!(flags & SUBMODULE_MOVE_HEAD_DRY_RUN)) {
        ^
/datasets/git/submodule.c:2200:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (new_head) {
                ^
/datasets/git/submodule.c:2211:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (run_command(&cp)) {
                        ^
/datasets/git/submodule.c:2213:5: note: +1
                                goto out;
                                ^
/datasets/git/submodule.c:2215:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/submodule.c:2222:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (is_empty_dir(path))
                        ^
/datasets/git/submodule.c:2109:5: warning: 2 adjacent parameters of 'submodule_move_head' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                         const char *old_head,
                         ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/submodule.c:2109:17: note: the first parameter in the range is 'old_head'
                         const char *old_head,
                                     ^~~~~~~~
/datasets/git/submodule.c:2110:17: note: the last parameter in the range is 'new_head'
                         const char *new_head,
                                     ^~~~~~~~
/datasets/git/submodule.c:2114:23: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
        struct child_process cp = CHILD_PROCESS_INIT;
                             ^
/datasets/git/submodule.c:2115:26: warning: variable 'sub' is not initialized [cppcoreguidelines-init-variables]
        const struct submodule *sub;
                                ^
                                    = NULL
/datasets/git/submodule.c:2116:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int *error_code_ptr, error_code;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/submodule.c:2116:7: warning: variable 'error_code_ptr' is not initialized [cppcoreguidelines-init-variables]
        int *error_code_ptr, error_code;
             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/submodule.c:2116:23: warning: variable 'error_code' is not initialized [cppcoreguidelines-init-variables]
        int *error_code_ptr, error_code;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/submodule.c:2118:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_submodule_active(the_repository, path))
                                                       ^
                                                        {
/datasets/git/submodule.c:2121:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & SUBMODULE_MOVE_HEAD_FORCE)
            ^
/datasets/git/submodule.c:2121:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & SUBMODULE_MOVE_HEAD_FORCE)
                    ^
/datasets/git/./submodule.h:152:38: note: expanded from macro 'SUBMODULE_MOVE_HEAD_FORCE'
#define SUBMODULE_MOVE_HEAD_FORCE   (1<<1)
                                     ^
/datasets/git/submodule.c:2121:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & SUBMODULE_MOVE_HEAD_FORCE)
                                              ^
                                               {
/datasets/git/submodule.c:2128:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/submodule.c:2131:71: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (old_head && !is_submodule_populated_gently(path, error_code_ptr))
                                                                             ^
                                                                              {
/datasets/git/submodule.c:2136:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!sub)
                 ^
                  {
/datasets/git/submodule.c:2139:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (old_head && !(flags & SUBMODULE_MOVE_HEAD_FORCE)) {
                          ^
/datasets/git/submodule.c:2139:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (old_head && !(flags & SUBMODULE_MOVE_HEAD_FORCE)) {
                                  ^
/datasets/git/./submodule.h:152:38: note: expanded from macro 'SUBMODULE_MOVE_HEAD_FORCE'
#define SUBMODULE_MOVE_HEAD_FORCE   (1<<1)
                                     ^
/datasets/git/submodule.c:2141:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (submodule_has_dirty_index(sub))
                                                   ^
                                                    {
/datasets/git/submodule.c:2145:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & SUBMODULE_MOVE_HEAD_DRY_RUN)) {
              ^
/datasets/git/submodule.c:2145:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & SUBMODULE_MOVE_HEAD_DRY_RUN)) {
                      ^
/datasets/git/./submodule.h:151:38: note: expanded from macro 'SUBMODULE_MOVE_HEAD_DRY_RUN'
#define SUBMODULE_MOVE_HEAD_DRY_RUN (1<<0)
                                     ^
/datasets/git/submodule.c:2147:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!submodule_uses_gitfile(path))
                                                          ^
                                                           {
/datasets/git/submodule.c:2160:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (old_head && (flags & SUBMODULE_MOVE_HEAD_FORCE)) {
                                 ^
/datasets/git/submodule.c:2160:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (old_head && (flags & SUBMODULE_MOVE_HEAD_FORCE)) {
                                         ^
/datasets/git/./submodule.h:152:38: note: expanded from macro 'SUBMODULE_MOVE_HEAD_FORCE'
#define SUBMODULE_MOVE_HEAD_FORCE   (1<<1)
                                     ^
/datasets/git/submodule.c:2179:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & SUBMODULE_MOVE_HEAD_DRY_RUN)
            ^
/datasets/git/submodule.c:2179:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & SUBMODULE_MOVE_HEAD_DRY_RUN)
                    ^
/datasets/git/./submodule.h:151:38: note: expanded from macro 'SUBMODULE_MOVE_HEAD_DRY_RUN'
#define SUBMODULE_MOVE_HEAD_DRY_RUN (1<<0)
                                     ^
/datasets/git/submodule.c:2179:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & SUBMODULE_MOVE_HEAD_DRY_RUN)
                                                ^
                                                 {
/datasets/git/submodule.c:2181:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/submodule.c:2184:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & SUBMODULE_MOVE_HEAD_FORCE)
            ^
/datasets/git/submodule.c:2184:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & SUBMODULE_MOVE_HEAD_FORCE)
                    ^
/datasets/git/./submodule.h:152:38: note: expanded from macro 'SUBMODULE_MOVE_HEAD_FORCE'
#define SUBMODULE_MOVE_HEAD_FORCE   (1<<1)
                                     ^
/datasets/git/submodule.c:2184:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & SUBMODULE_MOVE_HEAD_FORCE)
                                              ^
                                               {
/datasets/git/submodule.c:2186:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/submodule.c:2189:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & SUBMODULE_MOVE_HEAD_FORCE))
              ^
/datasets/git/submodule.c:2189:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & SUBMODULE_MOVE_HEAD_FORCE))
                      ^
/datasets/git/./submodule.h:152:38: note: expanded from macro 'SUBMODULE_MOVE_HEAD_FORCE'
#define SUBMODULE_MOVE_HEAD_FORCE   (1<<1)
                                     ^
/datasets/git/submodule.c:2189:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(flags & SUBMODULE_MOVE_HEAD_FORCE))
                                                 ^
                                                  {
/datasets/git/submodule.c:2199:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & SUBMODULE_MOVE_HEAD_DRY_RUN)) {
              ^
/datasets/git/submodule.c:2199:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & SUBMODULE_MOVE_HEAD_DRY_RUN)) {
                      ^
/datasets/git/./submodule.h:151:38: note: expanded from macro 'SUBMODULE_MOVE_HEAD_DRY_RUN'
#define SUBMODULE_MOVE_HEAD_DRY_RUN (1<<0)
                                     ^
/datasets/git/submodule.c:2216:18: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                        struct strbuf sb = STRBUF_INIT;
                                      ^
/datasets/git/submodule.c:2222:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (is_empty_dir(path))
                                               ^
                                                {
/datasets/git/submodule.c:2234:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t len = strlen(git_dir), suffix_len = strlen(submodule_name);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/submodule.c:2235:8: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        char *p;
              ^
                = NULL
/datasets/git/submodule.c:2235:8: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/submodule.c:2238:28: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if (len <= suffix_len || (p = git_dir + len - suffix_len)[-1] != '/' ||
                                  ^
/datasets/git/submodule.c:2238:28: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/submodule.c:2238:28: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/submodule.c:2235:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        char *p;
        ^
/datasets/git/submodule.c:2239:6: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
            strcmp(p, submodule_name))
            ^
                                      != 0
/datasets/git/submodule.c:2239:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            strcmp(p, submodule_name))
                                      ^
                                       {
/datasets/git/submodule.c:2253:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; *p; p++) {
        ^
/datasets/git/submodule.c:2253:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; *p; p++) {
               ^
/datasets/git/submodule.c:2255:9: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                        char c = *p;
                             ^
/datasets/git/submodule.c:2258:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (is_git_directory(git_dir))
                                                      ^
                                                       {
/datasets/git/submodule.c:2262:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ret < 0)
                                    ^
                                     {
/datasets/git/submodule.c:2279:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *old_git_dir = NULL, *real_old_git_dir = NULL, *real_new_git_dir = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/submodule.c:2281:26: warning: variable 'sub' is not initialized [cppcoreguidelines-init-variables]
        const struct submodule *sub;
                                ^
                                    = NULL
/datasets/git/submodule.c:2283:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (submodule_uses_worktrees(path))
                                           ^
                                            {
/datasets/git/submodule.c:2288:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (read_gitfile(old_git_dir))
                                      ^
                                       {
/datasets/git/submodule.c:2295:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!sub)
                 ^
                  {
/datasets/git/submodule.c:2299:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (validate_submodule_git_dir(new_gitdir.buf, sub->name) < 0)
                                                                      ^
                                                                       {
/datasets/git/submodule.c:2302:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (safe_create_leading_directories_const(new_gitdir.buf) < 0)
                                                                      ^
                                                                       {
/datasets/git/submodule.c:2306:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(stderr, _("Migrating git directory of '%s%s' from\n'%s' to\n'%s'\n"),
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/submodule.c:2306:2: note: cast the expression to void to silence this warning
/datasets/git/submodule.c:2321:23: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
        struct child_process cp = CHILD_PROCESS_INIT;
                             ^
/datasets/git/submodule.c:2331:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (run_command(&cp))
                             ^
                              {
/datasets/git/submodule.c:2342:6: warning: variable 'err_code' is not initialized [cppcoreguidelines-init-variables]
        int err_code;
            ^
                     = 0
/datasets/git/submodule.c:2343:14: warning: variable 'sub_git_dir' is not initialized [cppcoreguidelines-init-variables]
        const char *sub_git_dir;
                    ^
                                = NULL
/datasets/git/submodule.c:2350:27: warning: variable 'sub' is not initialized [cppcoreguidelines-init-variables]
                const struct submodule *sub;
                                        ^
                                            = NULL
/datasets/git/submodule.c:2359:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err_code != READ_GITFILE_ERR_NOT_A_REPO)
                                                            ^
                                                             {
/datasets/git/submodule.c:2371:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!sub)
                         ^
                          {
/datasets/git/submodule.c:2381:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!starts_with(real_sub_git_dir, real_common_git_dir))
                                                                        ^
                                                                         {
/datasets/git/submodule.c:2394:23: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
        struct child_process cp = CHILD_PROCESS_INIT;
                             ^
/datasets/git/submodule.c:2395:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/submodule.c:2399:14: warning: variable 'subpath' is not initialized [cppcoreguidelines-init-variables]
        const char *subpath;
                    ^
                            = NULL
/datasets/git/submodule.c:2400:6: warning: variable 'code' is not initialized [cppcoreguidelines-init-variables]
        int code;
            ^
                 = 0
/datasets/git/submodule.c:2401:10: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        ssize_t len;
                ^
                    = 0
/datasets/git/submodule.c:2403:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_inside_work_tree())
                                   ^
                                    {
/datasets/git/submodule.c:2411:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strbuf_realpath(&one_up, "../", 0))
                                                ^
                                                 {
/datasets/git/submodule.c:2430:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (start_command(&cp))
                               ^
                                {
/datasets/git/submodule.c:2437:7: warning: variable 'super_sub_len' is not initialized [cppcoreguidelines-init-variables]
                int super_sub_len;
                    ^
                                  = 0
/datasets/git/submodule.c:2438:17: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int cwd_len = strlen(cwd);
                              ^
/datasets/git/submodule.c:2439:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                char *super_sub, *super_wt;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/submodule.c:2439:9: warning: variable 'super_sub' is not initialized [cppcoreguidelines-init-variables]
                char *super_sub, *super_wt;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/submodule.c:2439:21: warning: variable 'super_wt' is not initialized [cppcoreguidelines-init-variables]
                char *super_sub, *super_wt;
                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/submodule.c:2447:19: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                super_sub_len = strlen(super_sub);
                                ^
/datasets/git/submodule.c:2450:7: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                    strcmp(&cwd[cwd_len - super_sub_len], super_sub))
                    ^
                                                                     != 0
/datasets/git/submodule.c:2450:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    strcmp(&cwd[cwd_len - super_sub_len], super_sub))
                                                                     ^
                                                                      {
/datasets/git/submodule.c:2465:14: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (code == 128)
                    ^
/datasets/git/submodule.c:2465:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (code == 128)
                        ^
                         {
/datasets/git/submodule.c:2468:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (code == 0 && len == 0)
                                  ^
                                   {
/datasets/git/submodule.c:2471:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (code)
                 ^
                  {
/datasets/git/submodule.c:2483:26: warning: variable 'sub' is not initialized [cppcoreguidelines-init-variables]
        const struct submodule *sub;
                                ^
                                    = NULL
/datasets/git/submodule.c:2484:14: warning: variable 'git_dir' is not initialized [cppcoreguidelines-init-variables]
        const char *git_dir;
                    ^
                            = NULL
/datasets/git/submodule.c:2512:70: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void submodule_name_to_gitdir(struct strbuf *buf, struct repository *r,
                                                                     ^
/datasets/git/symlinks.c:15:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int max_len, match_len = 0, match_len_prev = 0, i = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/symlinks.c:15:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/symlinks.c:15:6: warning: variable 'max_len' is not initialized [cppcoreguidelines-init-variables]
        int max_len, match_len = 0, match_len_prev = 0, i = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/symlinks.c:15:50: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int max_len, match_len = 0, match_len_prev = 0, i = 0;
                                                        ^
/datasets/git/symlinks.c:18:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (i < max_len && name_a[i] == name_b[i]) {
        ^
/datasets/git/symlinks.c:18:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'max_len' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (i < max_len && name_a[i] == name_b[i]) {
               ^
/datasets/git/symlinks.c:39:25: warning: variable 'default_cache' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct cache_def default_cache = CACHE_DEF_INIT;
                        ^
/datasets/git/symlinks.c:39:25: warning: initializing non-local variable with non-const expression depending on uninitialized non-local variable 'strbuf_slopbuf' [cppcoreguidelines-interfaces-global-init]
/datasets/git/symlinks.c:70:12: warning: function 'lstat_cache_matchlen' has cognitive complexity of 37 (threshold 25) [readability-function-cognitive-complexity]
static int lstat_cache_matchlen(struct cache_def *cache,
           ^
/datasets/git/symlinks.c:79:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (cache->track_flags != track_flags ||
        ^
/datasets/git/symlinks.c:79:40: note: +1
        if (cache->track_flags != track_flags ||
                                              ^
/datasets/git/symlinks.c:90:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/symlinks.c:100:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!(track_flags & FL_FULLPATH) && match_len == len)
                ^
/datasets/git/symlinks.c:100:36: note: +1
                if (!(track_flags & FL_FULLPATH) && match_len == len)
                                                 ^
/datasets/git/symlinks.c:103:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*ret_flags && match_len == cache->path.len)
                ^
/datasets/git/symlinks.c:103:18: note: +1
                if (*ret_flags && match_len == cache->path.len)
                               ^
/datasets/git/symlinks.c:114:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*ret_flags && len == match_len)
                ^
/datasets/git/symlinks.c:114:18: note: +1
                if (*ret_flags && len == match_len)
                               ^
/datasets/git/symlinks.c:124:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (len > cache->path.len)
        ^
/datasets/git/symlinks.c:126:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (match_len < len) {
        ^
/datasets/git/symlinks.c:127:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                do {
                ^
/datasets/git/symlinks.c:130:28: note: +1
                } while (match_len < len && name[match_len] != '/');
                                         ^
/datasets/git/symlinks.c:131:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (match_len >= len && !(track_flags & FL_FULLPATH))
                ^
/datasets/git/symlinks.c:131:24: note: +1
                if (match_len >= len && !(track_flags & FL_FULLPATH))
                                     ^
/datasets/git/symlinks.c:136:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (last_slash <= prefix_len_stat_func)
                ^
/datasets/git/symlinks.c:138:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/symlinks.c:141:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ret) {
                ^
/datasets/git/symlinks.c:144:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (errno == ENOENT)
                        ^
/datasets/git/symlinks.c:146:10: note: +1, nesting level increased to 2
                } else if (S_ISDIR(st.st_mode)) {
                       ^
/datasets/git/symlinks.c:149:10: note: +1, nesting level increased to 2
                } else if (S_ISLNK(st.st_mode)) {
                       ^
/datasets/git/symlinks.c:151:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/symlinks.c:163:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (save_flags && last_slash > 0) {
        ^
/datasets/git/symlinks.c:163:17: note: +1
        if (save_flags && last_slash > 0) {
                       ^
/datasets/git/symlinks.c:167:9: note: +1, nesting level increased to 1
        } else if ((track_flags & FL_DIR) && last_slash_dir > 0) {
               ^
/datasets/git/symlinks.c:167:36: note: +1
        } else if ((track_flags & FL_DIR) && last_slash_dir > 0) {
                                          ^
/datasets/git/symlinks.c:182:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/symlinks.c:185:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (saved_errno)
        ^
/datasets/git/symlinks.c:75:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int match_len, last_slash, last_slash_dir, previous_slash;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/symlinks.c:75:6: warning: variable 'match_len' is not initialized [cppcoreguidelines-init-variables]
        int match_len, last_slash, last_slash_dir, previous_slash;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/symlinks.c:75:17: warning: variable 'last_slash' is not initialized [cppcoreguidelines-init-variables]
        int match_len, last_slash, last_slash_dir, previous_slash;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/symlinks.c:75:29: warning: variable 'last_slash_dir' is not initialized [cppcoreguidelines-init-variables]
        int match_len, last_slash, last_slash_dir, previous_slash;
                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/symlinks.c:75:45: warning: variable 'previous_slash' is not initialized [cppcoreguidelines-init-variables]
        int match_len, last_slash, last_slash_dir, previous_slash;
                                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/symlinks.c:76:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int save_flags, ret, saved_errno = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/symlinks.c:76:6: warning: variable 'save_flags' is not initialized [cppcoreguidelines-init-variables]
        int save_flags, ret, saved_errno = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/symlinks.c:76:18: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int save_flags, ret, saved_errno = 0;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/symlinks.c:77:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/symlinks.c:97:9: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                           cache->path.len, &previous_slash);
                                           ^
/datasets/git/symlinks.c:98:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                *ret_flags = cache->flags & track_flags & (FL_NOENT|FL_SYMLINK);
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/symlinks.c:98:46: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                *ret_flags = cache->flags & track_flags & (FL_NOENT|FL_SYMLINK);
                                                           ^
/datasets/git/symlinks.c:52:21: note: expanded from macro 'FL_NOENT'
#define FL_NOENT    (1 << 1)
                    ^~~~~~~~
/datasets/git/symlinks.c:98:55: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                *ret_flags = cache->flags & track_flags & (FL_NOENT|FL_SYMLINK);
                                                                    ^
/datasets/git/symlinks.c:53:22: note: expanded from macro 'FL_SYMLINK'
#define FL_SYMLINK  (1 << 2)
                     ^
/datasets/git/symlinks.c:100:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(track_flags & FL_FULLPATH) && match_len == len)
                      ^~~~~~~~~~~
/datasets/git/symlinks.c:100:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(track_flags & FL_FULLPATH) && match_len == len)
                                    ^
/datasets/git/symlinks.c:56:22: note: expanded from macro 'FL_FULLPATH'
#define FL_FULLPATH (1 << 5)
                     ^
/datasets/git/symlinks.c:100:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(track_flags & FL_FULLPATH) && match_len == len)
                                                                     ^
                                                                      {
/datasets/git/symlinks.c:103:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*ret_flags && match_len == cache->path.len)
                                                               ^
                                                                {
/datasets/git/symlinks.c:113:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                *ret_flags = track_flags & FL_DIR;
                             ^~~~~~~~~~~
/datasets/git/symlinks.c:113:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                *ret_flags = track_flags & FL_DIR;
                                           ^
/datasets/git/symlinks.c:51:22: note: expanded from macro 'FL_DIR'
#define FL_DIR      (1 << 0)
                     ^
/datasets/git/symlinks.c:114:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*ret_flags && len == match_len)
                                                   ^
                                                    {
/datasets/git/symlinks.c:122:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        *ret_flags = FL_DIR;
                     ^
/datasets/git/symlinks.c:51:22: note: expanded from macro 'FL_DIR'
#define FL_DIR      (1 << 0)
                     ^
/datasets/git/symlinks.c:75:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int match_len, last_slash, last_slash_dir, previous_slash;
        ^
/datasets/git/symlinks.c:124:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len > cache->path.len)
                                  ^
                                   {
/datasets/git/symlinks.c:126:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'match_len' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (match_len < len) {
               ^
/datasets/git/symlinks.c:127:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                do {
                ^
/datasets/git/symlinks.c:130:12: warning: backward branch (do loop) is ID-dependent due to variable reference to 'match_len' and may cause performance degradation [altera-id-dependent-backward-branch]
                } while (match_len < len && name[match_len] != '/');
                         ^
/datasets/git/symlinks.c:131:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (match_len >= len && !(track_flags & FL_FULLPATH))
                                          ^~~~~~~~~~~
/datasets/git/symlinks.c:131:43: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (match_len >= len && !(track_flags & FL_FULLPATH))
                                                        ^
/datasets/git/symlinks.c:56:22: note: expanded from macro 'FL_FULLPATH'
#define FL_FULLPATH (1 << 5)
                     ^
/datasets/git/symlinks.c:131:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (match_len >= len && !(track_flags & FL_FULLPATH))
                                                                     ^
                                                                      {
/datasets/git/symlinks.c:136:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (last_slash <= prefix_len_stat_func)
                                                       ^
                                                        {
/datasets/git/symlinks.c:138:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/symlinks.c:142:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        *ret_flags = FL_LSTATERR;
                                     ^
/datasets/git/symlinks.c:54:22: note: expanded from macro 'FL_LSTATERR'
#define FL_LSTATERR (1 << 3)
                     ^
/datasets/git/symlinks.c:144:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (errno == ENOENT)
                                            ^
                                             {
/datasets/git/symlinks.c:145:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                *ret_flags |= FL_NOENT;
                                ^~~~~~~~~~
/datasets/git/symlinks.c:145:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                *ret_flags |= FL_NOENT;
                                              ^
/datasets/git/symlinks.c:52:22: note: expanded from macro 'FL_NOENT'
#define FL_NOENT    (1 << 1)
                     ^
/datasets/git/symlinks.c:150:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        *ret_flags = FL_SYMLINK;
                                     ^
/datasets/git/symlinks.c:53:22: note: expanded from macro 'FL_SYMLINK'
#define FL_SYMLINK  (1 << 2)
                     ^
/datasets/git/symlinks.c:152:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        *ret_flags = FL_ERR;
                                     ^
/datasets/git/symlinks.c:55:22: note: expanded from macro 'FL_ERR'
#define FL_ERR      (1 << 4)
                     ^
/datasets/git/symlinks.c:162:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        save_flags = *ret_flags & track_flags & (FL_NOENT|FL_SYMLINK);
                     ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/symlinks.c:162:43: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        save_flags = *ret_flags & track_flags & (FL_NOENT|FL_SYMLINK);
                                                 ^
/datasets/git/symlinks.c:52:21: note: expanded from macro 'FL_NOENT'
#define FL_NOENT    (1 << 1)
                    ^~~~~~~~
/datasets/git/symlinks.c:162:52: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        save_flags = *ret_flags & track_flags & (FL_NOENT|FL_SYMLINK);
                                                          ^
/datasets/git/symlinks.c:53:22: note: expanded from macro 'FL_SYMLINK'
#define FL_SYMLINK  (1 << 2)
                     ^
/datasets/git/symlinks.c:167:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        } else if ((track_flags & FL_DIR) && last_slash_dir > 0) {
                    ^~~~~~~~~~~
/datasets/git/symlinks.c:167:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        } else if ((track_flags & FL_DIR) && last_slash_dir > 0) {
                                  ^
/datasets/git/symlinks.c:51:22: note: expanded from macro 'FL_DIR'
#define FL_DIR      (1 << 0)
                     ^
/datasets/git/symlinks.c:181:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                cache->flags = FL_DIR;
                               ^
/datasets/git/symlinks.c:51:22: note: expanded from macro 'FL_DIR'
#define FL_DIR      (1 << 0)
                     ^
/datasets/git/symlinks.c:185:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (saved_errno)
                        ^
                         {
/datasets/git/symlinks.c:193:6: warning: variable 'flags' is not initialized [cppcoreguidelines-init-variables]
        int flags;
            ^
                  = 0
/datasets/git/symlinks.c:206:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return lstat_cache(cache, name, len, FL_SYMLINK|FL_DIR, USE_ONLY_LSTAT) & FL_SYMLINK;
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/symlinks.c:206:39: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return lstat_cache(cache, name, len, FL_SYMLINK|FL_DIR, USE_ONLY_LSTAT) & FL_SYMLINK;
                                             ^
/datasets/git/symlinks.c:53:21: note: expanded from macro 'FL_SYMLINK'
#define FL_SYMLINK  (1 << 2)
                    ^~~~~~~~
/datasets/git/symlinks.c:206:50: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return lstat_cache(cache, name, len, FL_SYMLINK|FL_DIR, USE_ONLY_LSTAT) & FL_SYMLINK;
                                                        ^
/datasets/git/symlinks.c:51:22: note: expanded from macro 'FL_DIR'
#define FL_DIR      (1 << 0)
                     ^
/datasets/git/symlinks.c:206:76: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return lstat_cache(cache, name, len, FL_SYMLINK|FL_DIR, USE_ONLY_LSTAT) & FL_SYMLINK;
                                                                                  ^
/datasets/git/symlinks.c:53:22: note: expanded from macro 'FL_SYMLINK'
#define FL_SYMLINK  (1 << 2)
                     ^
/datasets/git/symlinks.c:230:12: warning: 2 adjacent parameters of 'threaded_check_leading_path' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                       int len, int warn_on_lstat_err)
                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/symlinks.c:230:16: note: the first parameter in the range is 'len'
                                       int len, int warn_on_lstat_err)
                                           ^~~
/datasets/git/symlinks.c:230:25: note: the last parameter in the range is 'warn_on_lstat_err'
                                       int len, int warn_on_lstat_err)
                                                    ^~~~~~~~~~~~~~~~~
/datasets/git/symlinks.c:232:6: warning: variable 'flags' is not initialized [cppcoreguidelines-init-variables]
        int flags;
            ^
                  = 0
/datasets/git/symlinks.c:234:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                           FL_SYMLINK|FL_NOENT|FL_DIR, USE_ONLY_LSTAT);
                           ^
/datasets/git/symlinks.c:53:21: note: expanded from macro 'FL_SYMLINK'
#define FL_SYMLINK  (1 << 2)
                    ^
/datasets/git/symlinks.c:234:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                           FL_SYMLINK|FL_NOENT|FL_DIR, USE_ONLY_LSTAT);
                                      ^
/datasets/git/symlinks.c:52:22: note: expanded from macro 'FL_NOENT'
#define FL_NOENT    (1 << 1)
                     ^
/datasets/git/symlinks.c:234:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                           FL_SYMLINK|FL_NOENT|FL_DIR, USE_ONLY_LSTAT);
                                               ^
/datasets/git/symlinks.c:51:22: note: expanded from macro 'FL_DIR'
#define FL_DIR      (1 << 0)
                     ^
/datasets/git/symlinks.c:237:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & FL_NOENT)
            ^~~~~
/datasets/git/symlinks.c:237:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & FL_NOENT)
                    ^
/datasets/git/symlinks.c:52:22: note: expanded from macro 'FL_NOENT'
#define FL_NOENT    (1 << 1)
                     ^
/datasets/git/symlinks.c:237:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & FL_NOENT)
                             ^
                              {
/datasets/git/symlinks.c:239:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (flags & FL_DIR)
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/symlinks.c:239:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        else if (flags & FL_DIR)
                 ^~~~~
/datasets/git/symlinks.c:239:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        else if (flags & FL_DIR)
                         ^
/datasets/git/symlinks.c:51:22: note: expanded from macro 'FL_DIR'
#define FL_DIR      (1 << 0)
                     ^
/datasets/git/symlinks.c:239:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (flags & FL_DIR)
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/symlinks.c:241:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (warn_on_lstat_err && (flags & FL_LSTATERR)) {
                                  ^~~~~
/datasets/git/symlinks.c:241:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (warn_on_lstat_err && (flags & FL_LSTATERR)) {
                                          ^
/datasets/git/symlinks.c:54:22: note: expanded from macro 'FL_LSTATERR'
#define FL_LSTATERR (1 << 3)
                     ^
/datasets/git/symlinks.c:271:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return lstat_cache(cache, name, len,
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/symlinks.c:272:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                           FL_DIR|FL_FULLPATH, prefix_len) &
                           ^
/datasets/git/symlinks.c:51:21: note: expanded from macro 'FL_DIR'
#define FL_DIR      (1 << 0)
                    ^~~~~~~~
/datasets/git/symlinks.c:272:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                           FL_DIR|FL_FULLPATH, prefix_len) &
                                  ^
/datasets/git/symlinks.c:56:22: note: expanded from macro 'FL_FULLPATH'
#define FL_FULLPATH (1 << 5)
                     ^
/datasets/git/symlinks.c:273:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                FL_DIR;
                ^
/datasets/git/symlinks.c:51:22: note: expanded from macro 'FL_DIR'
#define FL_DIR      (1 << 0)
                     ^
/datasets/git/symlinks.c:276:22: warning: variable 'removal' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct strbuf removal = STRBUF_INIT;
                     ^
/datasets/git/symlinks.c:276:22: warning: initializing non-local variable with non-const expression depending on uninitialized non-local variable 'strbuf_slopbuf' [cppcoreguidelines-interfaces-global-init]
/datasets/git/./strbuf.h:68:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        size_t len;
        ^
/datasets/git/symlinks.c:280:9: warning: backward branch (while loop) is ID-dependent due to member reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (removal.len > new_len) {
               ^
/datasets/git/symlinks.c:284:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    rmdir(removal.buf))
                                       ^
                                        {
/datasets/git/symlinks.c:286:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                do {
                ^
/datasets/git/symlinks.c:288:12: warning: backward branch (do loop) is ID-dependent due to member reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
                } while (removal.len > new_len &&
                         ^
/datasets/git/symlinks.c:296:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int match_len, last_slash, i, previous_slash;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/symlinks.c:296:6: warning: variable 'match_len' is not initialized [cppcoreguidelines-init-variables]
        int match_len, last_slash, i, previous_slash;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/symlinks.c:296:17: warning: variable 'last_slash' is not initialized [cppcoreguidelines-init-variables]
        int match_len, last_slash, i, previous_slash;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/symlinks.c:296:29: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int match_len, last_slash, i, previous_slash;
                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/symlinks.c:296:29: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/symlinks.c:296:32: warning: variable 'previous_slash' is not initialized [cppcoreguidelines-init-variables]
        int match_len, last_slash, i, previous_slash;
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/symlinks.c:299:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !strcmp(name, startup_info->original_cwd))
                                                      ^
                                                       {
/datasets/git/symlinks.c:303:46: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                longest_path_match(name, len, removal.buf, removal.len,
                                                           ^
/datasets/git/symlinks.c:306:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (i < len) {
        ^
/datasets/git/symlinks.c:306:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (i < len) {
               ^
/datasets/git/symlinks.c:307:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (name[i] == '/')
                                   ^
                                    {
/datasets/git/symlinks.c:317:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (match_len < last_slash && match_len < removal.len)
                                                              ^
                                                               {
/datasets/git/symlinks.c:323:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (match_len < last_slash)
                                   ^
                                    {
/datasets/git/symlinks.c:343:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ret)
                 ^
                  {
/datasets/git/tag.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "tag.h"
^        ~~~~~~~
         "alloc.h"
/datasets/git/tag.c:11:13: warning: variable 'tag_type' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
const char *tag_type = "tag";
            ^
/datasets/git/tag.c:13:44: warning: 2 adjacent parameters of 'run_gpg_verify' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int run_gpg_verify(const char *buf, unsigned long size, unsigned flags)
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/tag.c:13:58: note: the first parameter in the range is 'size'
static int run_gpg_verify(const char *buf, unsigned long size, unsigned flags)
                                                         ^~~~
/datasets/git/tag.c:13:73: note: the last parameter in the range is 'flags'
static int run_gpg_verify(const char *buf, unsigned long size, unsigned flags)
                                                                        ^~~~~
/datasets/git/tag.c:13:64: note: 'unsigned long' and 'unsigned int' may be implicitly converted
static int run_gpg_verify(const char *buf, unsigned long size, unsigned flags)
                                                               ^
/datasets/git/tag.c:18:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/tag.c:20:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&sigc, 0, sizeof(sigc));
        ^~~~~~
/datasets/git/tag.c:20:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&sigc, 0, sizeof(sigc));
        ^~~~~~
/datasets/git/tag.c:23:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (flags & GPG_VERIFY_VERBOSE)
                    ^
/datasets/git/tag.c:23:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (flags & GPG_VERIFY_VERBOSE)
                                               ^
                                                {
/datasets/git/tag.c:32:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & GPG_VERIFY_OMIT_STATUS))
              ^
/datasets/git/tag.c:32:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(flags & GPG_VERIFY_OMIT_STATUS))
                                              ^
                                               {
/datasets/git/tag.c:44:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/tag.c:45:8: warning: variable 'buf' is not initialized [cppcoreguidelines-init-variables]
        char *buf;
              ^
                  = NULL
/datasets/git/tag.c:46:16: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size;
                      ^
                           = 0
/datasets/git/tag.c:47:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/tag.c:50:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (type != OBJ_TAG)
                            ^
                             {
/datasets/git/tag.c:58:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!buf)
                 ^
                  {
/datasets/git/tag.c:70:45: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
struct object *deref_tag(struct repository *r, struct object *o, const char *warn, int warnlen)
                                            ^
/datasets/git/tag.c:70:63: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
struct object *deref_tag(struct repository *r, struct object *o, const char *warn, int warnlen)
                                                              ^
/datasets/git/tag.c:73:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (o && o->type == OBJ_TAG)
        ^
/datasets/git/tag.c:73:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'o' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (o && o->type == OBJ_TAG)
               ^
/datasets/git/tag.c:73:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (o && o->type == OBJ_TAG)
                                       ^
                                        {
/datasets/git/tag.c:82:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (last_oid && is_promisor_object(last_oid))
                                                             ^
                                                              {
/datasets/git/tag.c:84:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!warnlen)
                             ^
                              {
/datasets/git/tag.c:85:14: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        warnlen = strlen(warn);
                                  ^
/datasets/git/tag.c:91:50: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
struct object *deref_tag_noverify(struct object *o)
                                                 ^
/datasets/git/tag.c:91:35: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
struct object *deref_tag_noverify(struct object *o)
                                  ^
/datasets/git/tag.c:93:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (o && o->type == OBJ_TAG) {
        ^
/datasets/git/tag.c:93:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'o' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (o && o->type == OBJ_TAG) {
               ^
/datasets/git/tag.c:95:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (o && o->type == OBJ_TAG && ((struct tag *)o)->tagged)
                                                                         ^
                                                                          {
/datasets/git/tag.c:97:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/tag.c:103:43: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
struct tag *lookup_tag(struct repository *r, const struct object_id *oid)
                                          ^
/datasets/git/tag.c:106:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!obj)
                 ^
                  {
/datasets/git/tag.c:113:14: warning: variable 'dateptr' is not initialized [cppcoreguidelines-init-variables]
        const char *dateptr;
                    ^
                            = NULL
/datasets/git/tag.c:115:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (buf < tail && *buf++ != '>')
        ^
/datasets/git/tag.c:115:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (buf < tail && *buf++ != '>')
                                           ^
                                            {
/datasets/git/tag.c:117:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (buf >= tail)
                        ^
                         {
/datasets/git/tag.c:120:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (buf < tail && *buf++ != '\n')
        ^
/datasets/git/tag.c:120:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (buf < tail && *buf++ != '\n')
                                            ^
                                             {
/datasets/git/tag.c:122:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (buf >= tail)
                        ^
                         {
/datasets/git/tag.c:125:40: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        return parse_timestamp(dateptr, NULL, 10);
                                              ^
/datasets/git/tag.c:128:37: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
void release_tag_memory(struct tag *t)
                                    ^
/datasets/git/tag.c:136:41: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int parse_tag_buffer(struct repository *r, struct tag *item, const void *data, unsigned long size)
                                        ^
/datasets/git/tag.c:139:12: warning: 20 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        char type[20];
                  ^
/datasets/git/tag.c:142:14: warning: variable 'nl' is not initialized [cppcoreguidelines-init-variables]
        const char *nl;
                    ^
                       = NULL
/datasets/git/tag.c:142:14: warning: variable name 'nl' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/tag.c:144:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (item->object.parsed)
                                ^
                                 {
/datasets/git/tag.c:154:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FREE_AND_NULL(item->tag);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/tag.c:157:36: warning: 24 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (size < the_hash_algo->hexsz + 24)
                                          ^
/datasets/git/tag.c:157:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (size < the_hash_algo->hexsz + 24)
                                             ^
                                              {
/datasets/git/tag.c:159:6: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (memcmp("object ", bufptr, 7) || parse_oid_hex(bufptr + 7, &oid, &bufptr) || *bufptr++ != '\n')
            ^
                                         != 0
/datasets/git/tag.c:159:32: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (memcmp("object ", bufptr, 7) || parse_oid_hex(bufptr + 7, &oid, &bufptr) || *bufptr++ != '\n')
                                      ^
/datasets/git/tag.c:159:61: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (memcmp("object ", bufptr, 7) || parse_oid_hex(bufptr + 7, &oid, &bufptr) || *bufptr++ != '\n')
                                                                   ^
/datasets/git/tag.c:159:100: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (memcmp("object ", bufptr, 7) || parse_oid_hex(bufptr + 7, &oid, &bufptr) || *bufptr++ != '\n')
                                                                                                          ^
                                                                                                           {
/datasets/git/tag.c:162:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!starts_with(bufptr, "type "))
                                          ^
                                           {
/datasets/git/tag.c:164:12: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        bufptr += 5;
                  ^
/datasets/git/tag.c:166:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!nl || sizeof(type) <= (nl - bufptr))
                                                 ^
                                                  {
/datasets/git/tag.c:168:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(type, bufptr, nl - bufptr);
        ^~~~~~
/datasets/git/tag.c:168:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(type, bufptr, nl - bufptr);
        ^~~~~~
/datasets/git/tag.c:185:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!item->tagged)
                          ^
                           {
/datasets/git/tag.c:190:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (bufptr + 4 < tail && starts_with(bufptr, "tag "))
                                                             ^
                                                              {
/datasets/git/tag.c:192:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/tag.c:196:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!nl)
                ^
                 {
/datasets/git/tag.c:201:15: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (bufptr + 7 < tail && starts_with(bufptr, "tagger "))
                     ^
/datasets/git/tag.c:201:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (bufptr + 7 < tail && starts_with(bufptr, "tagger "))
                                                                ^
                                                                 {
/datasets/git/tag.c:203:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/tag.c:212:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/tag.c:213:8: warning: variable 'data' is not initialized [cppcoreguidelines-init-variables]
        void *data;
              ^
                   = NULL
/datasets/git/tag.c:214:16: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size;
                      ^
                           = 0
/datasets/git/tag.c:215:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/tag.c:217:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (item->object.parsed)
                                ^
                                 {
/datasets/git/tag.c:220:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!data)
                  ^
                   {
/datasets/git/tag.c:235:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!tag->tagged)
                         ^
                          {
/datasets/git/tempfile.c:46:1: warning: #includes are not sorted properly [llvm-include-order]
#include "tempfile.h"
^        ~~~~~~~~~~~~
         "sigchain.h"
/datasets/git/tempfile.c:49:27: warning: variable 'tempfile_list' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static VOLATILE_LIST_HEAD(tempfile_list);
                          ^
/datasets/git/tempfile.c:55:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (in_signal_handler)
                                      ^
                                       {
/datasets/git/tempfile.c:57:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/tempfile.c:64:8: warning: variable name 'me' is too short, expected at least 3 characters [readability-identifier-length]
        pid_t me = getpid();
              ^
/datasets/git/tempfile.c:65:38: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        volatile struct volatile_list_head *pos;
                                            ^
                                                = NULL
/datasets/git/tempfile.c:67:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        list_for_each(pos, &tempfile_list) {
        ^
./list.h:130:2: note: expanded from macro 'list_for_each'
        for (pos = (head)->next; pos != (head); pos = pos->next)
        ^
/datasets/git/tempfile.c:67:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'pos' and may cause performance degradation [altera-id-dependent-backward-branch]
        list_for_each(pos, &tempfile_list) {
                      ^
/datasets/git/tempfile.c:68:20: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct tempfile *p = list_entry(pos, struct tempfile, list);
                                 ^
/datasets/git/tempfile.c:70:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!is_tempfile_active(p) || p->owner != me)
                                                             ^
                                                              {
/datasets/git/tempfile.c:73:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (p->fd >= 0)
                               ^
                                {
/datasets/git/tempfile.c:76:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (in_signal_handler)
                                      ^
                                       {
/datasets/git/tempfile.c:78:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/tempfile.c:93:2: warning: the value returned by this function should be used [cert-err33-c]
        raise(signo);
        ^~~~~~~~~~~~
/datasets/git/tempfile.c:93:2: note: cast the expression to void to silence this warning
/datasets/git/tempfile.c:114:3: warning: the value returned by this function should be used [cert-err33-c]
                atexit(remove_tempfiles_on_exit);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/tempfile.c:114:3: note: cast the expression to void to silence this warning
/datasets/git/tempfile.c:138:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (O_CLOEXEC && tempfile->fd < 0 && errno == EINVAL)
                                                             ^
                                                              {
/datasets/git/tempfile.c:141:34: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
                                    O_RDWR | O_CREAT | O_EXCL, mode);
                                                             ^
                                                              | O_CLOEXEC
/datasets/git/tempfile.c:183:14: warning: variable 'tmpdir' is not initialized [cppcoreguidelines-init-variables]
        const char *tmpdir;
                    ^
                           = NULL
/datasets/git/tempfile.c:185:11: warning: function is not thread safe [concurrency-mt-unsafe]
        tmpdir = getenv("TMPDIR");
                 ^
/datasets/git/tempfile.c:186:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!tmpdir)
                    ^
                     {
/datasets/git/tempfile.c:199:34: warning: 2 adjacent parameters of 'mks_tempfile_dt' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
struct tempfile *mks_tempfile_dt(const char *directory_template,
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/tempfile.c:199:46: note: the first parameter in the range is 'directory_template'
struct tempfile *mks_tempfile_dt(const char *directory_template,
                                             ^~~~~~~~~~~~~~~~~~
/datasets/git/tempfile.c:200:18: note: the last parameter in the range is 'filename'
                                 const char *filename)
                                             ^~~~~~~~
/datasets/git/tempfile.c:202:19: warning: variable 'tempfile' is not initialized [cppcoreguidelines-init-variables]
        struct tempfile *tempfile;
                         ^
                                  = NULL
/datasets/git/tempfile.c:203:14: warning: variable 'tmpdir' is not initialized [cppcoreguidelines-init-variables]
        const char *tmpdir;
                    ^
                           = NULL
/datasets/git/tempfile.c:204:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/tempfile.c:205:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/tempfile.c:205:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/tempfile.c:206:9: warning: variable 'directorylen' is not initialized [cppcoreguidelines-init-variables]
        size_t directorylen;
               ^
                            = 0
/datasets/git/tempfile.c:213:11: warning: function is not thread safe [concurrency-mt-unsafe]
        tmpdir = getenv("TMPDIR");
                 ^
/datasets/git/tempfile.c:214:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!tmpdir)
                    ^
                     {
/datasets/git/tempfile.c:227:45: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
        fd = open(sb.buf, O_CREAT | O_EXCL | O_RDWR, 0600);
                                                   ^
                                                    | O_CLOEXEC
/datasets/git/tempfile.c:227:47: warning: 0600 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        fd = open(sb.buf, O_CREAT | O_EXCL | O_RDWR, 0600);
                                                     ^
/datasets/git/tempfile.c:247:19: warning: variable 'tempfile' is not initialized [cppcoreguidelines-init-variables]
        struct tempfile *tempfile;
                         ^
                                  = NULL
/datasets/git/tempfile.c:252:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!tempfile)
                      ^
                       {
/datasets/git/tempfile.c:262:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_tempfile_active(tempfile))
                                          ^
                                           {
/datasets/git/tempfile.c:264:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (tempfile->fp)
                         ^
                          {
/datasets/git/tempfile.c:273:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_tempfile_active(tempfile))
                                          ^
                                           {
/datasets/git/tempfile.c:280:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_tempfile_active(tempfile))
                                          ^
                                           {
/datasets/git/tempfile.c:287:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_tempfile_active(tempfile))
                                          ^
                                           {
/datasets/git/tempfile.c:294:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/tempfile.c:294:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/tempfile.c:295:8: warning: variable 'fp' is not initialized [cppcoreguidelines-init-variables]
        FILE *fp;
              ^
                 = NULL
/datasets/git/tempfile.c:295:8: warning: variable name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/tempfile.c:296:6: warning: variable 'err' is not initialized [cppcoreguidelines-init-variables]
        int err;
            ^
                = 0
/datasets/git/tempfile.c:298:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_tempfile_active(tempfile) || tempfile->fd < 0)
                                                              ^
                                                               {
/datasets/git/tempfile.c:308:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!fclose(fp))
                                        ^
                                         {
/datasets/git/tempfile.c:322:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_tempfile_active(tempfile))
                                          ^
                                           {
/datasets/git/tempfile.c:324:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (0 <= tempfile->fd)
                              ^
                               {
/datasets/git/tempfile.c:326:62: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
        tempfile->fd = open(tempfile->filename.buf, O_WRONLY|O_TRUNC);
                                                                    ^
                                                                     | O_CLOEXEC
/datasets/git/tempfile.c:334:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_tempfile_active(tempfile))
                                          ^
                                           {
/datasets/git/tempfile.c:358:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_tempfile_active(tempfile))
                                          ^
                                           {
/datasets/git/thread-utils.c:27:7: warning: variable 'ncpus' is not initialized [cppcoreguidelines-init-variables]
        long ncpus;
             ^
                   = 0
/datasets/git/thread-utils.c:60:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if ((ncpus = (long)sysconf(_SC_NPROCESSORS_ONLN)) > 0)
             ^
/datasets/git/thread-utils.c:60:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/thread-utils.c:60:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/thread-utils.c:60:15: warning: redundant cast to the same type [google-readability-casting]
        if ((ncpus = (long)sysconf(_SC_NPROCESSORS_ONLN)) > 0)
                     ^~~~~~
/datasets/git/thread-utils.c:60:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((ncpus = (long)sysconf(_SC_NPROCESSORS_ONLN)) > 0)
                                                              ^
                                                               {
/datasets/git/thread-utils.c:68:43: warning: parameter name 'm' is too short, expected at least 3 characters [readability-identifier-length]
int init_recursive_mutex(pthread_mutex_t *m)
                                          ^
/datasets/git/thread-utils.c:71:22: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        pthread_mutexattr_t a;
                            ^
/datasets/git/thread-utils.c:72:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/thread-utils.c:77:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ret)
                         ^
                          {
/datasets/git/tmp-objdir.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "tmp-objdir.h"
^        ~~~~~~~~~~~~~~
         "chdir-notify.h"
/datasets/git/tmp-objdir.c:12:8: warning: accessing fields in struct 'tmp_objdir' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct tmp_objdir {
       ^
/datasets/git/tmp-objdir.c:12:8: note: use "__attribute__((aligned(64)))" to align struct 'tmp_objdir' to 64 bytes
/datasets/git/tmp-objdir.c:25:27: warning: variable 'the_tmp_objdir' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct tmp_objdir *the_tmp_objdir;
                          ^
/datasets/git/tmp-objdir.c:25:27: warning: variable 'the_tmp_objdir' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/tmp-objdir.c:27:48: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
static void tmp_objdir_free(struct tmp_objdir *t)
                                               ^
/datasets/git/tmp-objdir.c:34:43: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
int tmp_objdir_destroy(struct tmp_objdir *t)
                                          ^
/datasets/git/tmp-objdir.c:36:6: warning: variable 'err' is not initialized [cppcoreguidelines-init-variables]
        int err;
            ^
                = 0
/datasets/git/tmp-objdir.c:38:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!t)
               ^
                {
/datasets/git/tmp-objdir.c:41:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (t == the_tmp_objdir)
                                ^
                                 {
/datasets/git/tmp-objdir.c:44:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (t->prev_odb)
                        ^
                         {
/datasets/git/tmp-objdir.c:59:52: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
void tmp_objdir_discard_objects(struct tmp_objdir *t)
                                                   ^
/datasets/git/tmp-objdir.c:74:14: warning: variable 'old' is not initialized [cppcoreguidelines-init-variables]
        const char *old;
                    ^
                        = NULL
/datasets/git/tmp-objdir.c:87:8: warning: function is not thread safe [concurrency-mt-unsafe]
        old = getenv(key);
              ^
/datasets/git/tmp-objdir.c:88:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!old)
                 ^
                  {
/datasets/git/tmp-objdir.c:90:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/tmp-objdir.c:103:8: warning: variable 'path' is not initialized [cppcoreguidelines-init-variables]
        char *path;
              ^
                   = NULL
/datasets/git/tmp-objdir.c:107:20: warning: 0777 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        ret = mkdir(path, 0777);
                          ^
/datasets/git/tmp-objdir.c:116:21: warning: variable 't' is not initialized [cppcoreguidelines-init-variables]
        struct tmp_objdir *t;
                           ^
                             = NULL
/datasets/git/tmp-objdir.c:116:21: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/tmp-objdir.c:118:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (the_tmp_objdir)
                           ^
                            {
/datasets/git/tmp-objdir.c:140:3: warning: the value returned by this function should be used [cert-err33-c]
                atexit(remove_tmp_objdir);
                ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/tmp-objdir.c:140:3: note: cast the expression to void to silence this warning
/datasets/git/tmp-objdir.c:167:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!starts_with(name, "pack"))
                                       ^
                                        {
/datasets/git/tmp-objdir.c:169:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ends_with(name, ".keep"))
                                     ^
                                      {
/datasets/git/tmp-objdir.c:171:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ends_with(name, ".pack"))
                                     ^
                                      {
/datasets/git/tmp-objdir.c:173:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ends_with(name, ".rev"))
                                    ^
                                     {
/datasets/git/tmp-objdir.c:175:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ends_with(name, ".idx"))
                                    ^
                                     {
/datasets/git/tmp-objdir.c:177:9: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        return 5;
               ^
/datasets/git/tmp-objdir.c:180:38: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static int pack_copy_cmp(const char *a, const char *b)
                                     ^
/datasets/git/tmp-objdir.c:180:53: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static int pack_copy_cmp(const char *a, const char *b)
                                                    ^
/datasets/git/tmp-objdir.c:187:7: warning: variable 'dh' is not initialized [cppcoreguidelines-init-variables]
        DIR *dh;
             ^
                = NULL
/datasets/git/tmp-objdir.c:187:7: warning: variable name 'dh' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/tmp-objdir.c:188:17: warning: variable 'de' is not initialized [cppcoreguidelines-init-variables]
        struct dirent *de;
                       ^
                          = NULL
/datasets/git/tmp-objdir.c:188:17: warning: variable name 'de' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/tmp-objdir.c:191:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!dh)
                ^
                 {
/datasets/git/tmp-objdir.c:194:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((de = readdir(dh)))
        ^
/datasets/git/tmp-objdir.c:194:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'de' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((de = readdir(dh)))
               ^
/datasets/git/tmp-objdir.c:194:15: warning: function is not thread safe [concurrency-mt-unsafe]
        while ((de = readdir(dh)))
                     ^
/datasets/git/tmp-objdir.c:194:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while ((de = readdir(dh)))
                                  ^
                                   {
/datasets/git/tmp-objdir.c:195:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (de->d_name[0] != '.')
                                         ^
                                          {
/datasets/git/tmp-objdir.c:204:12: warning: function 'migrate_one' is within a recursive call chain [misc-no-recursion]
static int migrate_one(struct strbuf *src, struct strbuf *dst)
           ^
/datasets/git/tmp-objdir.c:221:12: note: example recursive call chain, starting from function 'migrate_paths'
static int migrate_paths(struct strbuf *src, struct strbuf *dst)
           ^
/datasets/git/tmp-objdir.c:239:10: note: Frame #1: function 'migrate_paths' calls function 'migrate_one' here:
                ret |= migrate_one(src, dst);
                       ^
/datasets/git/tmp-objdir.c:216:10: note: Frame #2: function 'migrate_one' calls function 'migrate_paths' here:
                return migrate_paths(src, dst);
                       ^
/datasets/git/tmp-objdir.c:216:10: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/tmp-objdir.c:206:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/tmp-objdir.c:208:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (stat(src->buf, &st) < 0)
                                    ^
                                     {
/datasets/git/tmp-objdir.c:211:24: warning: 0777 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (!mkdir(dst->buf, 0777)) {
                                     ^
/datasets/git/tmp-objdir.c:212:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (adjust_shared_perm(dst->buf))
                                                         ^
                                                          {
/datasets/git/tmp-objdir.c:214:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else if (errno != EEXIST)
                                           ^
                                            {
/datasets/git/tmp-objdir.c:221:12: warning: function 'migrate_paths' is within a recursive call chain [misc-no-recursion]
static int migrate_paths(struct strbuf *src, struct strbuf *dst)
           ^
/datasets/git/tmp-objdir.c:223:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t src_len = src->len, dst_len = dst->len;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/tmp-objdir.c:225:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/tmp-objdir.c:225:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/tmp-objdir.c:228:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (read_dir_paths(&paths, src->buf) < 0)
                                                 ^
                                                  {
/datasets/git/tmp-objdir.c:233:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < paths.nr; i++) {
        ^
/datasets/git/tmp-objdir.c:239:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ret |= migrate_one(src, dst);
                ^~~
/datasets/git/tmp-objdir.c:249:43: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
int tmp_objdir_migrate(struct tmp_objdir *t)
                                          ^
/datasets/git/tmp-objdir.c:251:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct strbuf src = STRBUF_INIT, dst = STRBUF_INIT;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/tmp-objdir.c:252:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/tmp-objdir.c:254:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!t)
               ^
                {
/datasets/git/tmp-objdir.c:258:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (the_repository->objects->odb->will_destroy)
                                                               ^
                                                                {
/datasets/git/tmp-objdir.c:276:54: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
const char **tmp_objdir_env(const struct tmp_objdir *t)
                                                     ^
/datasets/git/tmp-objdir.c:278:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!t)
               ^
                {
/datasets/git/tmp-objdir.c:283:59: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
void tmp_objdir_add_as_alternate(const struct tmp_objdir *t)
                                                          ^
/datasets/git/tmp-objdir.c:288:56: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
void tmp_objdir_replace_primary_odb(struct tmp_objdir *t, int will_destroy)
                                                       ^
/datasets/git/tmp-objdir.c:290:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (t->prev_odb)
                        ^
                         {
/datasets/git/tmp-objdir.c:298:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!the_tmp_objdir || !the_tmp_objdir->prev_odb)
                                                         ^
                                                          {
/datasets/git/tmp-objdir.c:306:56: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
void tmp_objdir_reapply_primary_odb(struct tmp_objdir *t, const char *old_cwd,
                                                       ^
/datasets/git/tmp-objdir.c:309:8: warning: variable 'path' is not initialized [cppcoreguidelines-init-variables]
        char *path;
              ^
                   = NULL
trace.c:27:18: warning: variable 'trace_default_key' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
struct trace_key trace_default_key = { "GIT_TRACE", 0, 0, 0 };
                 ^
trace.c:28:18: warning: variable 'trace_perf_key' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
struct trace_key trace_perf_key = TRACE_KEY_INIT(PERFORMANCE);
                 ^
trace.c:29:18: warning: variable 'trace_setup_key' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
struct trace_key trace_setup_key = TRACE_KEY_INIT(SETUP);
                 ^
/datasets/git/trace.c:34:14: warning: variable 'trace' is not initialized [cppcoreguidelines-init-variables]
        const char *trace;
                    ^
                          = NULL
/datasets/git/trace.c:37:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (key->initialized)
                             ^
                              {
/datasets/git/trace.c:40:46: warning: function is not thread safe [concurrency-mt-unsafe]
        trace = override_envvar ? override_envvar : getenv(key->key);
                                                    ^
/datasets/git/trace.c:43:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !strcmp(trace, "0") || !strcasecmp(trace, "false"))
                                                               ^
                                                                {
/datasets/git/trace.c:45:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(trace, "1") || !strcasecmp(trace, "true"))
                                                                   ^
                                                                    {
/datasets/git/trace.c:47:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        else if (strlen(trace) == 1 && isdigit(*trace))
                                       ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/trace.c:47:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (strlen(trace) == 1 && isdigit(*trace))
                                                       ^
                                                        {
/datasets/git/trace.c:48:13: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c]
                key->fd = atoi(trace);
                          ^
/datasets/git/trace.c:50:7: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
                int fd = open(trace, O_WRONLY | O_APPEND | O_CREAT, 0666);
                    ^
/datasets/git/trace.c:50:53: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
                int fd = open(trace, O_WRONLY | O_APPEND | O_CREAT, 0666);
                                                                  ^
                                                                   | O_CLOEXEC
/datasets/git/trace.c:50:55: warning: 0666 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                int fd = open(trace, O_WRONLY | O_APPEND | O_CREAT, 0666);
                                                                    ^
/datasets/git/trace.c:53:12: warning: function is not thread safe [concurrency-mt-unsafe]
                                trace, strerror(errno));
                                       ^
/datasets/git/trace.c:85:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (key->need_close)
                            ^
                             {
/datasets/git/trace.c:96:17: warning: variable name 'tv' is too short, expected at least 3 characters [readability-identifier-length]
        struct timeval tv;
                       ^
/datasets/git/trace.c:97:12: warning: variable name 'tm' is too short, expected at least 3 characters [readability-identifier-length]
        struct tm tm;
                  ^
/datasets/git/trace.c:98:9: warning: variable 'secs' is not initialized [cppcoreguidelines-init-variables]
        time_t secs;
               ^
                    = 0
/datasets/git/trace.c:100:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!trace_want(key))
                             ^
                              {
/datasets/git/trace.c:104:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (trace_want(&trace_bare))
                                    ^
                                     {
/datasets/git/trace.c:114:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (buf->len < 40)
        ^
/datasets/git/trace.c:114:9: warning: backward branch (while loop) is ID-dependent due to member reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (buf->len < 40)
               ^
/datasets/git/trace.c:114:20: warning: 40 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        while (buf->len < 40)
                          ^
/datasets/git/trace.c:114:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (buf->len < 40)
                             ^
                              {
/datasets/git/trace.c:124:14: warning: function is not thread safe [concurrency-mt-unsafe]
                        key->key, strerror(errno));
                                  ^
/datasets/git/trace.c:131:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!trace_want(key))
                             ^
                              {
/datasets/git/trace.c:143:37: warning: parameter name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
                             const char *format, va_list ap)
                                                         ^
/datasets/git/trace.c:147:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!prepare_trace_line(file, line, key, &buf))
                                                       ^
                                                        {
/datasets/git/trace.c:157:15: warning: parameter name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
                                  va_list ap)
                                          ^
/datasets/git/trace.c:161:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!prepare_trace_line(file, line, &trace_default_key, &buf))
                                                                      ^
                                                                       {
/datasets/git/trace.c:176:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!prepare_trace_line(file, line, key, &buf))
                                                       ^
                                                        {
/datasets/git/trace.c:184:17: warning: variable 'perf_start_times' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static uint64_t perf_start_times[10];
                ^
/datasets/git/trace.c:184:34: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
static uint64_t perf_start_times[10];
                                 ^
/datasets/git/trace.c:185:12: warning: variable 'perf_indent' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int perf_indent;
           ^
/datasets/git/trace.c:189:11: warning: variable 'now' is not initialized [cppcoreguidelines-init-variables]
        uint64_t now;
                 ^
                     = 0
/datasets/git/trace.c:191:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!trace_want(&trace_perf_key))
                                         ^
                                          {
/datasets/git/trace.c:196:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (perf_indent + 1 < ARRAY_SIZE(perf_start_times))
                                                           ^
                                                            {
/datasets/git/trace.c:198:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/trace.c:203:60: warning: 2 adjacent parameters of 'trace_performance_vprintf_fl' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void trace_performance_vprintf_fl(const char *file, int line,
                                                           ^~~~~~~~~
/datasets/git/trace.c:203:64: note: the first parameter in the range is 'line'
static void trace_performance_vprintf_fl(const char *file, int line,
                                                               ^~~~
/datasets/git/trace.c:204:16: note: the last parameter in the range is 'nanos'
                                         uint64_t nanos, const char *format,
                                                  ^~~~~
/datasets/git/trace.c:203:60: note: 
static void trace_performance_vprintf_fl(const char *file, int line,
                                                           ^
/datasets/git/trace.c:204:7: note: 'int' and 'uint64_t' may be implicitly converted: 'int' -> 'uint64_t' (as 'unsigned long'), 'uint64_t' (as 'unsigned long') -> 'int'
                                         uint64_t nanos, const char *format,
                                         ^
/datasets/git/trace.c:205:15: warning: parameter name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
                                         va_list ap)
                                                 ^
/datasets/git/trace.c:210:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!prepare_trace_line(file, line, &trace_perf_key, &buf))
                                                                   ^
                                                                    {
/datasets/git/trace.c:213:60: warning: 1000000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        strbuf_addf(&buf, "performance: %.9f s", (double) nanos / 1000000000);
                                                                  ^
/datasets/git/trace.c:216:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (perf_indent >= strlen(space))
                                                 ^
                                                  {
/datasets/git/trace.c:230:10: warning: variable name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
        va_list ap;
                ^
/datasets/git/trace.c:239:10: warning: variable name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
        va_list ap;
                ^
/datasets/git/trace.c:248:10: warning: variable name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
        va_list ap;
                ^
/datasets/git/trace.c:257:10: warning: variable name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
        va_list ap;
                ^
/datasets/git/trace.c:258:11: warning: variable 'since' is not initialized [cppcoreguidelines-init-variables]
        uint64_t since;
                 ^
                       = 0
/datasets/git/trace.c:260:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (perf_indent)
                        ^
                         {
/datasets/git/trace.c:263:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!format) /* Allow callers to leave without tracing anything */
                    ^
                     {
/datasets/git/trace.c:276:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!path)
                  ^
                   {
/datasets/git/trace.c:281:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*path) {
        ^
/datasets/git/trace.c:297:14: warning: variable 'git_work_tree' is not initialized [cppcoreguidelines-init-variables]
        const char *git_work_tree;
                    ^
                                  = NULL
/datasets/git/trace.c:298:8: warning: variable 'cwd' is not initialized [cppcoreguidelines-init-variables]
        char *cwd;
              ^
                  = NULL
/datasets/git/trace.c:300:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!trace_want(&trace_setup_key))
                                          ^
                                           {
/datasets/git/trace.c:305:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if (!(git_work_tree = get_git_work_tree()))
              ^
/datasets/git/trace.c:305:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/trace.c:305:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/trace.c:305:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(git_work_tree = get_git_work_tree()))
                                                   ^
                                                    {
/datasets/git/trace.c:308:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!prefix)
                    ^
                     {
/datasets/git/trace.c:311:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf_key(&trace_setup_key, "setup: git_dir: %s\n", quote_crnl(get_git_dir()));
        ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/trace.c:312:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf_key(&trace_setup_key, "setup: git_common_dir: %s\n", quote_crnl(get_git_common_dir()));
        ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/trace.c:313:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf_key(&trace_setup_key, "setup: worktree: %s\n", quote_crnl(git_work_tree));
        ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/trace.c:314:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf_key(&trace_setup_key, "setup: cwd: %s\n", quote_crnl(cwd));
        ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/trace.c:315:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_printf_key(&trace_setup_key, "setup: prefix: %s\n", quote_crnl(prefix));
        ^
/datasets/git/./trace.h:172:2: note: expanded from macro 'trace_printf_key'
        do {                                                                \
        ^
/datasets/git/trace.c:329:18: warning: variable name 'ts' is too short, expected at least 3 characters [readability-identifier-length]
        struct timespec ts;
                        ^
/datasets/git/trace.c:330:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (clock_gettime(CLOCK_MONOTONIC, &ts))
                                                ^
                                                 {
/datasets/git/trace.c:332:32: warning: 1000000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        return (uint64_t) ts.tv_sec * 1000000000 + ts.tv_nsec;
                                      ^
/datasets/git/trace.c:377:17: warning: variable name 'tv' is too short, expected at least 3 characters [readability-identifier-length]
        struct timeval tv;
                       ^
/datasets/git/trace.c:379:32: warning: 1000000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        return (uint64_t) tv.tv_sec * 1000000000 + tv.tv_usec * 1000;
                                      ^
/datasets/git/trace.c:379:58: warning: 1000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        return (uint64_t) tv.tv_sec * 1000000000 + tv.tv_usec * 1000;
                                                                ^
/datasets/git/trace.c:392:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else if (offset == 1) {
          ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/trace.c:399:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (highres)
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/trace.c:401:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/trace.c:407:22: warning: variable 'command_line' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct strbuf command_line = STRBUF_INIT;
                     ^
/datasets/git/trace.c:407:22: warning: initializing non-local variable with non-const expression depending on uninitialized non-local variable 'strbuf_slopbuf' [cppcoreguidelines-interfaces-global-init]
/datasets/git/trace.c:411:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_performance_leave("git command:%s", command_line.buf);
        ^
/datasets/git/./trace.h:251:2: note: expanded from macro 'trace_performance_leave'
        do {                                                                \
        ^
/datasets/git/trace.c:416:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!trace_want(&trace_perf_key))
                                         ^
                                          {
/datasets/git/trace.c:419:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!command_line.len)
                              ^
                               {
/datasets/git/trace.c:420:3: warning: the value returned by this function should be used [cert-err33-c]
                atexit(print_command_performance_atexit);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/trace.c:420:3: note: cast the expression to void to silence this warning
/datasets/git/trace2.c:8:1: warning: #includes are not sorted properly [llvm-include-order]
#include "version.h"
^        ~~~~~~~~~~~
         "trace2/tr2_cfg.h"
/datasets/git/trace2.c:19:12: warning: variable 'trace2_enabled' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int trace2_enabled;
           ^
/datasets/git/trace2.c:21:12: warning: variable 'tr2_next_child_id' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int tr2_next_child_id; /* modify under lock */
           ^
/datasets/git/trace2.c:22:12: warning: variable 'tr2_next_exec_id' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int tr2_next_exec_id; /* modify under lock */
           ^
/datasets/git/trace2.c:23:12: warning: variable 'tr2_next_repo_id' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int tr2_next_repo_id = 1; /* modify under lock. zero is reserved */
           ^
/datasets/git/trace2.c:31:24: warning: variable 'tr2_tgt_builtins' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct tr2_tgt *tr2_tgt_builtins[] =
                       ^
/datasets/git/trace2.c:31:24: warning: initializing non-local variable with non-const expression depending on uninitialized non-local variable 'tr2_tgt_normal' [cppcoreguidelines-interfaces-global-init]
/datasets/git/trace2.c:63:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct tr2_tgt *tgt_j;
        ^
/datasets/git/trace2.c:42:7: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        for (j = 0, tgt_j = tr2_tgt_builtins[j];        \
             ^
             ()
/datasets/git/trace2.c:42:14: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        for (j = 0, tgt_j = tr2_tgt_builtins[j];        \
                    ^
                    (    )
/datasets/git/trace2.c:44:7: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
             j++, tgt_j = tr2_tgt_builtins[j])
             ^
             ()
/datasets/git/trace2.c:44:12: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
             j++, tgt_j = tr2_tgt_builtins[j])
                  ^
                  (    )
/datasets/git/trace2.c:50:26: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
                if (tr2_dst_trace_want(tgt_j->pdst))
                                       ^
                                       (    )
/datasets/git/trace2.c:63:18: warning: variable 'tgt_j' is not initialized [cppcoreguidelines-init-variables]
        struct tr2_tgt *tgt_j;
                        ^
                              = NULL
/datasets/git/trace2.c:64:6: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int j;
            ^
              = 0
/datasets/git/trace2.c:64:6: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trace2.c:67:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_builtin (j, tgt_j)
        ^
/datasets/git/trace2.c:42:2: note: expanded from macro 'for_each_builtin'
        for (j = 0, tgt_j = tr2_tgt_builtins[j];        \
        ^
/datasets/git/trace2.c:67:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 'tgt_j' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_builtin (j, tgt_j)
                             ^
/datasets/git/trace2.c:68:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (tgt_j->pfn_init())
                                      ^
                                       {
/datasets/git/trace2.c:81:18: warning: variable 'tgt_j' is not initialized [cppcoreguidelines-init-variables]
        struct tr2_tgt *tgt_j;
                        ^
                              = NULL
/datasets/git/trace2.c:82:6: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int j;
            ^
              = 0
/datasets/git/trace2.c:82:6: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trace2.c:97:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct tr2_tgt *tgt_j;
        ^
/datasets/git/trace2.c:84:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_builtin (j, tgt_j)
        ^
/datasets/git/trace2.c:42:2: note: expanded from macro 'for_each_builtin'
        for (j = 0, tgt_j = tr2_tgt_builtins[j];        \
        ^
/datasets/git/trace2.c:84:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 'tgt_j' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_builtin (j, tgt_j)
                             ^
/datasets/git/trace2.c:97:18: warning: variable 'tgt_j' is not initialized [cppcoreguidelines-init-variables]
        struct tr2_tgt *tgt_j;
                        ^
                              = NULL
/datasets/git/trace2.c:98:6: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int j;
            ^
              = 0
/datasets/git/trace2.c:98:6: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trace2.c:100:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_wanted_builtin (j, tgt_j)
        ^
/datasets/git/trace2.c:49:2: note: expanded from macro 'for_each_wanted_builtin'
        for_each_builtin(j, tgt_j)                   \
        ^
/datasets/git/trace2.c:42:2: note: expanded from macro 'for_each_builtin'
        for (j = 0, tgt_j = tr2_tgt_builtins[j];        \
        ^
/datasets/git/trace2.c:100:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'tgt_j' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_wanted_builtin (j, tgt_j)
                                    ^
/datasets/git/trace2.c:101:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (tgt_j->pfn_timer)
                                     ^
                                      {
/datasets/git/trace2.c:113:18: warning: variable 'tgt_j' is not initialized [cppcoreguidelines-init-variables]
        struct tr2_tgt *tgt_j;
                        ^
                              = NULL
/datasets/git/trace2.c:114:6: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int j;
            ^
              = 0
/datasets/git/trace2.c:114:6: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trace2.c:116:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_wanted_builtin (j, tgt_j)
        ^
/datasets/git/trace2.c:49:2: note: expanded from macro 'for_each_wanted_builtin'
        for_each_builtin(j, tgt_j)                   \
        ^
/datasets/git/trace2.c:42:2: note: expanded from macro 'for_each_builtin'
        for (j = 0, tgt_j = tr2_tgt_builtins[j];        \
        ^
/datasets/git/trace2.c:116:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'tgt_j' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_wanted_builtin (j, tgt_j)
                                    ^
/datasets/git/trace2.c:117:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (tgt_j->pfn_counter)
                                       ^
                                        {
/datasets/git/trace2.c:121:12: warning: variable 'tr2main_exit_code' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int tr2main_exit_code;
           ^
/datasets/git/trace2.c:133:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct tr2_tgt *tgt_j;
        ^
/datasets/git/trace2.c:133:18: warning: variable 'tgt_j' is not initialized [cppcoreguidelines-init-variables]
        struct tr2_tgt *tgt_j;
                        ^
                              = NULL
/datasets/git/trace2.c:134:6: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int j;
            ^
              = 0
/datasets/git/trace2.c:134:6: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trace2.c:135:11: warning: variable 'us_now' is not initialized [cppcoreguidelines-init-variables]
        uint64_t us_now;
                 ^
                        = 0
/datasets/git/trace2.c:136:11: warning: variable 'us_elapsed_absolute' is not initialized [cppcoreguidelines-init-variables]
        uint64_t us_elapsed_absolute;
                 ^
                                     = 0
/datasets/git/trace2.c:138:27: warning: 1000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        us_now = getnanotime() / 1000;
                                 ^
/datasets/git/trace2.c:174:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_wanted_builtin (j, tgt_j)
        ^
/datasets/git/trace2.c:49:2: note: expanded from macro 'for_each_wanted_builtin'
        for_each_builtin(j, tgt_j)                   \
        ^
/datasets/git/trace2.c:42:2: note: expanded from macro 'for_each_builtin'
        for (j = 0, tgt_j = tr2_tgt_builtins[j];        \
        ^
/datasets/git/trace2.c:174:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'tgt_j' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_wanted_builtin (j, tgt_j)
                                    ^
/datasets/git/trace2.c:175:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (tgt_j->pfn_atexit)
                                      ^
                                       {
/datasets/git/trace2.c:193:18: warning: variable 'tgt_j' is not initialized [cppcoreguidelines-init-variables]
        struct tr2_tgt *tgt_j;
                        ^
                              = NULL
/datasets/git/trace2.c:194:6: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int j;
            ^
              = 0
/datasets/git/trace2.c:194:6: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trace2.c:195:11: warning: variable 'us_now' is not initialized [cppcoreguidelines-init-variables]
        uint64_t us_now;
                 ^
                        = 0
/datasets/git/trace2.c:196:11: warning: variable 'us_elapsed_absolute' is not initialized [cppcoreguidelines-init-variables]
        uint64_t us_elapsed_absolute;
                 ^
                                     = 0
/datasets/git/trace2.c:198:27: warning: 1000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        us_now = getnanotime() / 1000;
                                 ^
/datasets/git/trace2.c:201:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_wanted_builtin (j, tgt_j)
        ^
/datasets/git/trace2.c:49:2: note: expanded from macro 'for_each_wanted_builtin'
        for_each_builtin(j, tgt_j)                   \
        ^
/datasets/git/trace2.c:42:2: note: expanded from macro 'for_each_builtin'
        for (j = 0, tgt_j = tr2_tgt_builtins[j];        \
        ^
/datasets/git/trace2.c:201:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'tgt_j' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_wanted_builtin (j, tgt_j)
                                    ^
/datasets/git/trace2.c:202:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (tgt_j->pfn_signal)
                                      ^
                                       {
/datasets/git/trace2.c:206:2: warning: the value returned by this function should be used [cert-err33-c]
        raise(signo);
        ^~~~~~~~~~~~
/datasets/git/trace2.c:206:2: note: cast the expression to void to silence this warning
/datasets/git/trace2.c:193:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct tr2_tgt *tgt_j;
        ^
/datasets/git/trace2.c:216:18: warning: variable 'tgt_j' is not initialized [cppcoreguidelines-init-variables]
        struct tr2_tgt *tgt_j;
                        ^
                              = NULL
/datasets/git/trace2.c:217:6: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int j;
            ^
              = 0
/datasets/git/trace2.c:217:6: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trace2.c:219:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (trace2_enabled)
                           ^
                            {
/datasets/git/trace2.c:224:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!tr2_tgt_want_builtins())
                                     ^
                                      {
/datasets/git/trace2.c:230:2: warning: the value returned by this function should be used [cert-err33-c]
        atexit(tr2main_atexit_handler);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/trace2.c:230:2: note: cast the expression to void to silence this warning
/datasets/git/trace2.c:237:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_wanted_builtin (j, tgt_j)
        ^
/datasets/git/trace2.c:49:2: note: expanded from macro 'for_each_wanted_builtin'
        for_each_builtin(j, tgt_j)                   \
        ^
/datasets/git/trace2.c:42:2: note: expanded from macro 'for_each_builtin'
        for (j = 0, tgt_j = tr2_tgt_builtins[j];        \
        ^
/datasets/git/trace2.c:237:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'tgt_j' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_wanted_builtin (j, tgt_j)
                                    ^
/datasets/git/trace2.c:238:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (tgt_j->pfn_version_fl)
                                          ^
                                           {
/datasets/git/trace2.c:249:18: warning: variable 'tgt_j' is not initialized [cppcoreguidelines-init-variables]
        struct tr2_tgt *tgt_j;
                        ^
                              = NULL
/datasets/git/trace2.c:250:6: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int j;
            ^
              = 0
/datasets/git/trace2.c:250:6: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trace2.c:251:11: warning: variable 'us_now' is not initialized [cppcoreguidelines-init-variables]
        uint64_t us_now;
                 ^
                        = 0
/datasets/git/trace2.c:252:11: warning: variable 'us_elapsed_absolute' is not initialized [cppcoreguidelines-init-variables]
        uint64_t us_elapsed_absolute;
                 ^
                                     = 0
/datasets/git/trace2.c:254:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!trace2_enabled)
                            ^
                             {
/datasets/git/trace2.c:257:27: warning: 1000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        us_now = getnanotime() / 1000;
                                 ^
/datasets/git/trace2.c:260:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_wanted_builtin (j, tgt_j)
        ^
/datasets/git/trace2.c:49:2: note: expanded from macro 'for_each_wanted_builtin'
        for_each_builtin(j, tgt_j)                   \
        ^
/datasets/git/trace2.c:42:2: note: expanded from macro 'for_each_builtin'
        for (j = 0, tgt_j = tr2_tgt_builtins[j];        \
        ^
/datasets/git/trace2.c:260:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'tgt_j' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_wanted_builtin (j, tgt_j)
                                    ^
/datasets/git/trace2.c:261:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (tgt_j->pfn_start_fl)
                                        ^
                                         {
/datasets/git/trace2.c:268:18: warning: variable 'tgt_j' is not initialized [cppcoreguidelines-init-variables]
        struct tr2_tgt *tgt_j;
                        ^
                              = NULL
/datasets/git/trace2.c:269:6: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int j;
            ^
              = 0
/datasets/git/trace2.c:269:6: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trace2.c:270:11: warning: variable 'us_now' is not initialized [cppcoreguidelines-init-variables]
        uint64_t us_now;
                 ^
                        = 0
/datasets/git/trace2.c:271:11: warning: variable 'us_elapsed_absolute' is not initialized [cppcoreguidelines-init-variables]
        uint64_t us_elapsed_absolute;
                 ^
                                     = 0
/datasets/git/trace2.c:273:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!trace2_enabled)
                            ^
                             {
/datasets/git/trace2.c:281:27: warning: 1000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        us_now = getnanotime() / 1000;
                                 ^
/datasets/git/trace2.c:284:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_wanted_builtin (j, tgt_j)
        ^
/datasets/git/trace2.c:49:2: note: expanded from macro 'for_each_wanted_builtin'
        for_each_builtin(j, tgt_j)                   \
        ^
/datasets/git/trace2.c:42:2: note: expanded from macro 'for_each_builtin'
        for (j = 0, tgt_j = tr2_tgt_builtins[j];        \
        ^
/datasets/git/trace2.c:284:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'tgt_j' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_wanted_builtin (j, tgt_j)
                                    ^
/datasets/git/trace2.c:285:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (tgt_j->pfn_exit_fl)
                                       ^
                                        {
/datasets/git/trace2.c:291:16: warning: parameter name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
                            va_list ap)
                                    ^
/datasets/git/trace2.c:293:18: warning: variable 'tgt_j' is not initialized [cppcoreguidelines-init-variables]
        struct tr2_tgt *tgt_j;
                        ^
                              = NULL
/datasets/git/trace2.c:294:6: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int j;
            ^
              = 0
/datasets/git/trace2.c:294:6: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trace2.c:296:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!trace2_enabled)
                            ^
                             {
/datasets/git/trace2.c:303:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_wanted_builtin (j, tgt_j)
        ^
/datasets/git/trace2.c:49:2: note: expanded from macro 'for_each_wanted_builtin'
        for_each_builtin(j, tgt_j)                   \
        ^
/datasets/git/trace2.c:42:2: note: expanded from macro 'for_each_builtin'
        for (j = 0, tgt_j = tr2_tgt_builtins[j];        \
        ^
/datasets/git/trace2.c:303:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'tgt_j' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_wanted_builtin (j, tgt_j)
                                    ^
/datasets/git/trace2.c:304:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (tgt_j->pfn_error_va_fl)
                                           ^
                                            {
/datasets/git/trace2.c:310:18: warning: variable 'tgt_j' is not initialized [cppcoreguidelines-init-variables]
        struct tr2_tgt *tgt_j;
                        ^
                              = NULL
/datasets/git/trace2.c:311:6: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int j;
            ^
              = 0
/datasets/git/trace2.c:311:6: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trace2.c:313:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!trace2_enabled)
                            ^
                             {
/datasets/git/trace2.c:316:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_wanted_builtin (j, tgt_j)
        ^
/datasets/git/trace2.c:49:2: note: expanded from macro 'for_each_wanted_builtin'
        for_each_builtin(j, tgt_j)                   \
        ^
/datasets/git/trace2.c:42:2: note: expanded from macro 'for_each_builtin'
        for (j = 0, tgt_j = tr2_tgt_builtins[j];        \
        ^
/datasets/git/trace2.c:316:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'tgt_j' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_wanted_builtin (j, tgt_j)
                                    ^
/datasets/git/trace2.c:317:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (tgt_j->pfn_command_path_fl)
                                               ^
                                                {
/datasets/git/trace2.c:323:18: warning: variable 'tgt_j' is not initialized [cppcoreguidelines-init-variables]
        struct tr2_tgt *tgt_j;
                        ^
                              = NULL
/datasets/git/trace2.c:324:6: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int j;
            ^
              = 0
/datasets/git/trace2.c:324:6: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trace2.c:326:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!trace2_enabled)
                            ^
                             {
/datasets/git/trace2.c:329:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_wanted_builtin (j, tgt_j)
        ^
/datasets/git/trace2.c:49:2: note: expanded from macro 'for_each_wanted_builtin'
        for_each_builtin(j, tgt_j)                   \
        ^
/datasets/git/trace2.c:42:2: note: expanded from macro 'for_each_builtin'
        for (j = 0, tgt_j = tr2_tgt_builtins[j];        \
        ^
/datasets/git/trace2.c:329:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'tgt_j' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_wanted_builtin (j, tgt_j)
                                    ^
/datasets/git/trace2.c:330:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (tgt_j->pfn_command_ancestry_fl)
                                                   ^
                                                    {
/datasets/git/trace2.c:336:18: warning: variable 'tgt_j' is not initialized [cppcoreguidelines-init-variables]
        struct tr2_tgt *tgt_j;
                        ^
                              = NULL
/datasets/git/trace2.c:337:14: warning: variable 'hierarchy' is not initialized [cppcoreguidelines-init-variables]
        const char *hierarchy;
                    ^
                              = NULL
/datasets/git/trace2.c:338:6: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int j;
            ^
              = 0
/datasets/git/trace2.c:338:6: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trace2.c:340:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!trace2_enabled)
                            ^
                             {
/datasets/git/trace2.c:346:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_wanted_builtin (j, tgt_j)
        ^
/datasets/git/trace2.c:49:2: note: expanded from macro 'for_each_wanted_builtin'
        for_each_builtin(j, tgt_j)                   \
        ^
/datasets/git/trace2.c:42:2: note: expanded from macro 'for_each_builtin'
        for (j = 0, tgt_j = tr2_tgt_builtins[j];        \
        ^
/datasets/git/trace2.c:346:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'tgt_j' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_wanted_builtin (j, tgt_j)
                                    ^
/datasets/git/trace2.c:347:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (tgt_j->pfn_command_name_fl)
                                               ^
                                                {
/datasets/git/trace2.c:353:18: warning: variable 'tgt_j' is not initialized [cppcoreguidelines-init-variables]
        struct tr2_tgt *tgt_j;
                        ^
                              = NULL
/datasets/git/trace2.c:354:6: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int j;
            ^
              = 0
/datasets/git/trace2.c:354:6: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trace2.c:356:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!trace2_enabled)
                            ^
                             {
/datasets/git/trace2.c:359:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_wanted_builtin (j, tgt_j)
        ^
/datasets/git/trace2.c:49:2: note: expanded from macro 'for_each_wanted_builtin'
        for_each_builtin(j, tgt_j)                   \
        ^
/datasets/git/trace2.c:42:2: note: expanded from macro 'for_each_builtin'
        for (j = 0, tgt_j = tr2_tgt_builtins[j];        \
        ^
/datasets/git/trace2.c:359:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'tgt_j' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_wanted_builtin (j, tgt_j)
                                    ^
/datasets/git/trace2.c:360:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (tgt_j->pfn_command_mode_fl)
                                               ^
                                                {
/datasets/git/trace2.c:367:18: warning: variable 'tgt_j' is not initialized [cppcoreguidelines-init-variables]
        struct tr2_tgt *tgt_j;
                        ^
                              = NULL
/datasets/git/trace2.c:368:6: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int j;
            ^
              = 0
/datasets/git/trace2.c:368:6: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trace2.c:370:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!trace2_enabled)
                            ^
                             {
/datasets/git/trace2.c:373:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_wanted_builtin (j, tgt_j)
        ^
/datasets/git/trace2.c:49:2: note: expanded from macro 'for_each_wanted_builtin'
        for_each_builtin(j, tgt_j)                   \
        ^
/datasets/git/trace2.c:42:2: note: expanded from macro 'for_each_builtin'
        for (j = 0, tgt_j = tr2_tgt_builtins[j];        \
        ^
/datasets/git/trace2.c:373:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'tgt_j' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_wanted_builtin (j, tgt_j)
                                    ^
/datasets/git/trace2.c:374:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (tgt_j->pfn_alias_fl)
                                        ^
                                         {
/datasets/git/trace2.c:380:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!trace2_enabled)
                            ^
                             {
/datasets/git/trace2.c:388:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!trace2_enabled)
                            ^
                             {
/datasets/git/trace2.c:397:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!trace2_enabled)
                            ^
                             {
/datasets/git/trace2.c:406:18: warning: variable 'tgt_j' is not initialized [cppcoreguidelines-init-variables]
        struct tr2_tgt *tgt_j;
                        ^
                              = NULL
/datasets/git/trace2.c:407:6: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int j;
            ^
              = 0
/datasets/git/trace2.c:407:6: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trace2.c:408:11: warning: variable 'us_now' is not initialized [cppcoreguidelines-init-variables]
        uint64_t us_now;
                 ^
                        = 0
/datasets/git/trace2.c:409:11: warning: variable 'us_elapsed_absolute' is not initialized [cppcoreguidelines-init-variables]
        uint64_t us_elapsed_absolute;
                 ^
                                     = 0
/datasets/git/trace2.c:411:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!trace2_enabled)
                            ^
                             {
/datasets/git/trace2.c:414:27: warning: 1000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        us_now = getnanotime() / 1000;
                                 ^
/datasets/git/trace2.c:420:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_wanted_builtin (j, tgt_j)
        ^
/datasets/git/trace2.c:49:2: note: expanded from macro 'for_each_wanted_builtin'
        for_each_builtin(j, tgt_j)                   \
        ^
/datasets/git/trace2.c:42:2: note: expanded from macro 'for_each_builtin'
        for (j = 0, tgt_j = tr2_tgt_builtins[j];        \
        ^
/datasets/git/trace2.c:420:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'tgt_j' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_wanted_builtin (j, tgt_j)
                                    ^
/datasets/git/trace2.c:421:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (tgt_j->pfn_child_start_fl)
                                              ^
                                               {
/datasets/git/trace2.c:429:18: warning: variable 'tgt_j' is not initialized [cppcoreguidelines-init-variables]
        struct tr2_tgt *tgt_j;
                        ^
                              = NULL
/datasets/git/trace2.c:430:6: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int j;
            ^
              = 0
/datasets/git/trace2.c:430:6: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trace2.c:431:11: warning: variable 'us_now' is not initialized [cppcoreguidelines-init-variables]
        uint64_t us_now;
                 ^
                        = 0
/datasets/git/trace2.c:432:11: warning: variable 'us_elapsed_absolute' is not initialized [cppcoreguidelines-init-variables]
        uint64_t us_elapsed_absolute;
                 ^
                                     = 0
/datasets/git/trace2.c:433:11: warning: variable 'us_elapsed_child' is not initialized [cppcoreguidelines-init-variables]
        uint64_t us_elapsed_child;
                 ^
                                  = 0
/datasets/git/trace2.c:435:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!trace2_enabled)
                            ^
                             {
/datasets/git/trace2.c:438:27: warning: 1000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        us_now = getnanotime() / 1000;
                                 ^
/datasets/git/trace2.c:441:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cmd->trace2_child_us_start)
                                       ^
                                        {
/datasets/git/trace2.c:443:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/trace2.c:446:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_wanted_builtin (j, tgt_j)
        ^
/datasets/git/trace2.c:49:2: note: expanded from macro 'for_each_wanted_builtin'
        for_each_builtin(j, tgt_j)                   \
        ^
/datasets/git/trace2.c:42:2: note: expanded from macro 'for_each_builtin'
        for (j = 0, tgt_j = tr2_tgt_builtins[j];        \
        ^
/datasets/git/trace2.c:446:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'tgt_j' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_wanted_builtin (j, tgt_j)
                                    ^
/datasets/git/trace2.c:447:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (tgt_j->pfn_child_exit_fl)
                                             ^
                                              {
/datasets/git/trace2.c:459:18: warning: variable 'tgt_j' is not initialized [cppcoreguidelines-init-variables]
        struct tr2_tgt *tgt_j;
                        ^
                              = NULL
/datasets/git/trace2.c:460:6: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int j;
            ^
              = 0
/datasets/git/trace2.c:460:6: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trace2.c:461:11: warning: variable 'us_now' is not initialized [cppcoreguidelines-init-variables]
        uint64_t us_now;
                 ^
                        = 0
/datasets/git/trace2.c:462:11: warning: variable 'us_elapsed_absolute' is not initialized [cppcoreguidelines-init-variables]
        uint64_t us_elapsed_absolute;
                 ^
                                     = 0
/datasets/git/trace2.c:463:11: warning: variable 'us_elapsed_child' is not initialized [cppcoreguidelines-init-variables]
        uint64_t us_elapsed_child;
                 ^
                                  = 0
/datasets/git/trace2.c:465:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!trace2_enabled)
                            ^
                             {
/datasets/git/trace2.c:468:27: warning: 1000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        us_now = getnanotime() / 1000;
                                 ^
/datasets/git/trace2.c:471:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cmd->trace2_child_us_start)
                                       ^
                                        {
/datasets/git/trace2.c:473:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/trace2.c:476:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_wanted_builtin (j, tgt_j)
        ^
/datasets/git/trace2.c:49:2: note: expanded from macro 'for_each_wanted_builtin'
        for_each_builtin(j, tgt_j)                   \
        ^
/datasets/git/trace2.c:42:2: note: expanded from macro 'for_each_builtin'
        for (j = 0, tgt_j = tr2_tgt_builtins[j];        \
        ^
/datasets/git/trace2.c:476:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'tgt_j' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_wanted_builtin (j, tgt_j)
                                    ^
/datasets/git/trace2.c:477:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (tgt_j->pfn_child_ready_fl)
                                              ^
                                               {
/datasets/git/trace2.c:489:18: warning: variable 'tgt_j' is not initialized [cppcoreguidelines-init-variables]
        struct tr2_tgt *tgt_j;
                        ^
                              = NULL
/datasets/git/trace2.c:490:6: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int j;
            ^
              = 0
/datasets/git/trace2.c:490:6: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trace2.c:491:6: warning: variable 'exec_id' is not initialized [cppcoreguidelines-init-variables]
        int exec_id;
            ^
                    = 0
/datasets/git/trace2.c:492:11: warning: variable 'us_now' is not initialized [cppcoreguidelines-init-variables]
        uint64_t us_now;
                 ^
                        = 0
/datasets/git/trace2.c:493:11: warning: variable 'us_elapsed_absolute' is not initialized [cppcoreguidelines-init-variables]
        uint64_t us_elapsed_absolute;
                 ^
                                     = 0
/datasets/git/trace2.c:495:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!trace2_enabled)
                            ^
                             {
/datasets/git/trace2.c:498:27: warning: 1000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        us_now = getnanotime() / 1000;
                                 ^
/datasets/git/trace2.c:503:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_wanted_builtin (j, tgt_j)
        ^
/datasets/git/trace2.c:49:2: note: expanded from macro 'for_each_wanted_builtin'
        for_each_builtin(j, tgt_j)                   \
        ^
/datasets/git/trace2.c:42:2: note: expanded from macro 'for_each_builtin'
        for (j = 0, tgt_j = tr2_tgt_builtins[j];        \
        ^
/datasets/git/trace2.c:503:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'tgt_j' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_wanted_builtin (j, tgt_j)
                                    ^
/datasets/git/trace2.c:504:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (tgt_j->pfn_exec_fl)
                                       ^
                                        {
/datasets/git/trace2.c:513:18: warning: variable 'tgt_j' is not initialized [cppcoreguidelines-init-variables]
        struct tr2_tgt *tgt_j;
                        ^
                              = NULL
/datasets/git/trace2.c:514:6: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int j;
            ^
              = 0
/datasets/git/trace2.c:514:6: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trace2.c:515:11: warning: variable 'us_now' is not initialized [cppcoreguidelines-init-variables]
        uint64_t us_now;
                 ^
                        = 0
/datasets/git/trace2.c:516:11: warning: variable 'us_elapsed_absolute' is not initialized [cppcoreguidelines-init-variables]
        uint64_t us_elapsed_absolute;
                 ^
                                     = 0
/datasets/git/trace2.c:518:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!trace2_enabled)
                            ^
                             {
/datasets/git/trace2.c:521:27: warning: 1000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        us_now = getnanotime() / 1000;
                                 ^
/datasets/git/trace2.c:524:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_wanted_builtin (j, tgt_j)
        ^
/datasets/git/trace2.c:49:2: note: expanded from macro 'for_each_wanted_builtin'
        for_each_builtin(j, tgt_j)                   \
        ^
/datasets/git/trace2.c:42:2: note: expanded from macro 'for_each_builtin'
        for (j = 0, tgt_j = tr2_tgt_builtins[j];        \
        ^
/datasets/git/trace2.c:524:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'tgt_j' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_wanted_builtin (j, tgt_j)
                                    ^
/datasets/git/trace2.c:525:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (tgt_j->pfn_exec_result_fl)
                                              ^
                                               {
/datasets/git/trace2.c:532:18: warning: variable 'tgt_j' is not initialized [cppcoreguidelines-init-variables]
        struct tr2_tgt *tgt_j;
                        ^
                              = NULL
/datasets/git/trace2.c:533:6: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int j;
            ^
              = 0
/datasets/git/trace2.c:533:6: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trace2.c:534:11: warning: variable 'us_now' is not initialized [cppcoreguidelines-init-variables]
        uint64_t us_now;
                 ^
                        = 0
/datasets/git/trace2.c:535:11: warning: variable 'us_elapsed_absolute' is not initialized [cppcoreguidelines-init-variables]
        uint64_t us_elapsed_absolute;
                 ^
                                     = 0
/datasets/git/trace2.c:537:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!trace2_enabled)
                            ^
                             {
/datasets/git/trace2.c:556:27: warning: 1000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        us_now = getnanotime() / 1000;
                                 ^
/datasets/git/trace2.c:561:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_wanted_builtin (j, tgt_j)
        ^
/datasets/git/trace2.c:49:2: note: expanded from macro 'for_each_wanted_builtin'
        for_each_builtin(j, tgt_j)                   \
        ^
/datasets/git/trace2.c:42:2: note: expanded from macro 'for_each_builtin'
        for (j = 0, tgt_j = tr2_tgt_builtins[j];        \
        ^
/datasets/git/trace2.c:561:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'tgt_j' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_wanted_builtin (j, tgt_j)
                                    ^
/datasets/git/trace2.c:562:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (tgt_j->pfn_thread_start_fl)
                                               ^
                                                {
/datasets/git/trace2.c:569:18: warning: variable 'tgt_j' is not initialized [cppcoreguidelines-init-variables]
        struct tr2_tgt *tgt_j;
                        ^
                              = NULL
/datasets/git/trace2.c:570:6: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int j;
            ^
              = 0
/datasets/git/trace2.c:570:6: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trace2.c:571:11: warning: variable 'us_now' is not initialized [cppcoreguidelines-init-variables]
        uint64_t us_now;
                 ^
                        = 0
/datasets/git/trace2.c:572:11: warning: variable 'us_elapsed_absolute' is not initialized [cppcoreguidelines-init-variables]
        uint64_t us_elapsed_absolute;
                 ^
                                     = 0
/datasets/git/trace2.c:573:11: warning: variable 'us_elapsed_thread' is not initialized [cppcoreguidelines-init-variables]
        uint64_t us_elapsed_thread;
                 ^
                                   = 0
/datasets/git/trace2.c:575:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!trace2_enabled)
                            ^
                             {
/datasets/git/trace2.c:594:27: warning: 1000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        us_now = getnanotime() / 1000;
                                 ^
/datasets/git/trace2.c:624:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_wanted_builtin (j, tgt_j)
        ^
/datasets/git/trace2.c:49:2: note: expanded from macro 'for_each_wanted_builtin'
        for_each_builtin(j, tgt_j)                   \
        ^
/datasets/git/trace2.c:42:2: note: expanded from macro 'for_each_builtin'
        for (j = 0, tgt_j = tr2_tgt_builtins[j];        \
        ^
/datasets/git/trace2.c:624:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'tgt_j' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_wanted_builtin (j, tgt_j)
                                    ^
/datasets/git/trace2.c:625:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (tgt_j->pfn_thread_exit_fl)
                                              ^
                                               {
/datasets/git/trace2.c:636:18: warning: variable 'tgt_j' is not initialized [cppcoreguidelines-init-variables]
        struct tr2_tgt *tgt_j;
                        ^
                              = NULL
/datasets/git/trace2.c:637:6: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int j;
            ^
              = 0
/datasets/git/trace2.c:637:6: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trace2.c:639:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!trace2_enabled)
                            ^
                             {
/datasets/git/trace2.c:642:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_wanted_builtin (j, tgt_j)
        ^
/datasets/git/trace2.c:49:2: note: expanded from macro 'for_each_wanted_builtin'
        for_each_builtin(j, tgt_j)                   \
        ^
/datasets/git/trace2.c:42:2: note: expanded from macro 'for_each_builtin'
        for (j = 0, tgt_j = tr2_tgt_builtins[j];        \
        ^
/datasets/git/trace2.c:642:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'tgt_j' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_wanted_builtin (j, tgt_j)
                                    ^
/datasets/git/trace2.c:643:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (tgt_j->pfn_param_fl)
                                        ^
                                         {
/datasets/git/trace2.c:649:18: warning: variable 'tgt_j' is not initialized [cppcoreguidelines-init-variables]
        struct tr2_tgt *tgt_j;
                        ^
                              = NULL
/datasets/git/trace2.c:650:6: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int j;
            ^
              = 0
/datasets/git/trace2.c:650:6: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trace2.c:652:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!trace2_enabled)
                            ^
                             {
/datasets/git/trace2.c:655:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo->trace2_repo_id)
                                 ^
                                  {
/datasets/git/trace2.c:660:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_wanted_builtin (j, tgt_j)
        ^
/datasets/git/trace2.c:49:2: note: expanded from macro 'for_each_wanted_builtin'
        for_each_builtin(j, tgt_j)                   \
        ^
/datasets/git/trace2.c:42:2: note: expanded from macro 'for_each_builtin'
        for (j = 0, tgt_j = tr2_tgt_builtins[j];        \
        ^
/datasets/git/trace2.c:660:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'tgt_j' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_wanted_builtin (j, tgt_j)
                                    ^
/datasets/git/trace2.c:661:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (tgt_j->pfn_repo_fl)
                                       ^
                                        {
/datasets/git/trace2.c:668:36: warning: parameter name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
                                      const char *fmt, va_list ap)
                                                               ^
/datasets/git/trace2.c:670:18: warning: variable 'tgt_j' is not initialized [cppcoreguidelines-init-variables]
        struct tr2_tgt *tgt_j;
                        ^
                              = NULL
/datasets/git/trace2.c:671:6: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int j;
            ^
              = 0
/datasets/git/trace2.c:671:6: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trace2.c:672:11: warning: variable 'us_now' is not initialized [cppcoreguidelines-init-variables]
        uint64_t us_now;
                 ^
                        = 0
/datasets/git/trace2.c:673:11: warning: variable 'us_elapsed_absolute' is not initialized [cppcoreguidelines-init-variables]
        uint64_t us_elapsed_absolute;
                 ^
                                     = 0
/datasets/git/trace2.c:675:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!trace2_enabled)
                            ^
                             {
/datasets/git/trace2.c:678:27: warning: 1000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        us_now = getnanotime() / 1000;
                                 ^
/datasets/git/trace2.c:688:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_wanted_builtin (j, tgt_j)
        ^
/datasets/git/trace2.c:49:2: note: expanded from macro 'for_each_wanted_builtin'
        for_each_builtin(j, tgt_j)                   \
        ^
/datasets/git/trace2.c:42:2: note: expanded from macro 'for_each_builtin'
        for (j = 0, tgt_j = tr2_tgt_builtins[j];        \
        ^
/datasets/git/trace2.c:688:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'tgt_j' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_wanted_builtin (j, tgt_j)
                                    ^
/datasets/git/trace2.c:689:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (tgt_j->pfn_region_enter_printf_va_fl)
                                                         ^
                                                          {
/datasets/git/trace2.c:700:10: warning: variable name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
        va_list ap;
                ^
/datasets/git/trace2.c:713:10: warning: variable name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
        va_list ap;
                ^
/datasets/git/trace2.c:724:36: warning: parameter name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
                                      const char *fmt, va_list ap)
                                                               ^
/datasets/git/trace2.c:726:18: warning: variable 'tgt_j' is not initialized [cppcoreguidelines-init-variables]
        struct tr2_tgt *tgt_j;
                        ^
                              = NULL
/datasets/git/trace2.c:727:6: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int j;
            ^
              = 0
/datasets/git/trace2.c:727:6: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trace2.c:728:11: warning: variable 'us_now' is not initialized [cppcoreguidelines-init-variables]
        uint64_t us_now;
                 ^
                        = 0
/datasets/git/trace2.c:729:11: warning: variable 'us_elapsed_absolute' is not initialized [cppcoreguidelines-init-variables]
        uint64_t us_elapsed_absolute;
                 ^
                                     = 0
/datasets/git/trace2.c:730:11: warning: variable 'us_elapsed_region' is not initialized [cppcoreguidelines-init-variables]
        uint64_t us_elapsed_region;
                 ^
                                   = 0
/datasets/git/trace2.c:732:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!trace2_enabled)
                            ^
                             {
/datasets/git/trace2.c:735:27: warning: 1000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        us_now = getnanotime() / 1000;
                                 ^
/datasets/git/trace2.c:752:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_wanted_builtin (j, tgt_j)
        ^
/datasets/git/trace2.c:49:2: note: expanded from macro 'for_each_wanted_builtin'
        for_each_builtin(j, tgt_j)                   \
        ^
/datasets/git/trace2.c:42:2: note: expanded from macro 'for_each_builtin'
        for (j = 0, tgt_j = tr2_tgt_builtins[j];        \
        ^
/datasets/git/trace2.c:752:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'tgt_j' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_wanted_builtin (j, tgt_j)
                                    ^
/datasets/git/trace2.c:753:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (tgt_j->pfn_region_leave_printf_va_fl)
                                                         ^
                                                          {
/datasets/git/trace2.c:763:10: warning: variable name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
        va_list ap;
                ^
/datasets/git/trace2.c:775:10: warning: variable name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
        va_list ap;
                ^
/datasets/git/trace2.c:787:18: warning: variable 'tgt_j' is not initialized [cppcoreguidelines-init-variables]
        struct tr2_tgt *tgt_j;
                        ^
                              = NULL
/datasets/git/trace2.c:788:6: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int j;
            ^
              = 0
/datasets/git/trace2.c:788:6: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trace2.c:789:11: warning: variable 'us_now' is not initialized [cppcoreguidelines-init-variables]
        uint64_t us_now;
                 ^
                        = 0
/datasets/git/trace2.c:790:11: warning: variable 'us_elapsed_absolute' is not initialized [cppcoreguidelines-init-variables]
        uint64_t us_elapsed_absolute;
                 ^
                                     = 0
/datasets/git/trace2.c:791:11: warning: variable 'us_elapsed_region' is not initialized [cppcoreguidelines-init-variables]
        uint64_t us_elapsed_region;
                 ^
                                   = 0
/datasets/git/trace2.c:793:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!trace2_enabled)
                            ^
                             {
/datasets/git/trace2.c:796:27: warning: 1000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        us_now = getnanotime() / 1000;
                                 ^
/datasets/git/trace2.c:800:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_wanted_builtin (j, tgt_j)
        ^
/datasets/git/trace2.c:49:2: note: expanded from macro 'for_each_wanted_builtin'
        for_each_builtin(j, tgt_j)                   \
        ^
/datasets/git/trace2.c:42:2: note: expanded from macro 'for_each_builtin'
        for (j = 0, tgt_j = tr2_tgt_builtins[j];        \
        ^
/datasets/git/trace2.c:800:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'tgt_j' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_wanted_builtin (j, tgt_j)
                                    ^
/datasets/git/trace2.c:801:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (tgt_j->pfn_data_fl)
                                       ^
                                        {
/datasets/git/trace2.c:813:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!trace2_enabled)
                            ^
                             {
/datasets/git/trace2.c:825:18: warning: variable 'tgt_j' is not initialized [cppcoreguidelines-init-variables]
        struct tr2_tgt *tgt_j;
                        ^
                              = NULL
/datasets/git/trace2.c:826:6: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int j;
            ^
              = 0
/datasets/git/trace2.c:826:6: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trace2.c:827:11: warning: variable 'us_now' is not initialized [cppcoreguidelines-init-variables]
        uint64_t us_now;
                 ^
                        = 0
/datasets/git/trace2.c:828:11: warning: variable 'us_elapsed_absolute' is not initialized [cppcoreguidelines-init-variables]
        uint64_t us_elapsed_absolute;
                 ^
                                     = 0
/datasets/git/trace2.c:829:11: warning: variable 'us_elapsed_region' is not initialized [cppcoreguidelines-init-variables]
        uint64_t us_elapsed_region;
                 ^
                                   = 0
/datasets/git/trace2.c:831:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!trace2_enabled)
                            ^
                             {
/datasets/git/trace2.c:834:27: warning: 1000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        us_now = getnanotime() / 1000;
                                 ^
/datasets/git/trace2.c:838:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_wanted_builtin (j, tgt_j)
        ^
/datasets/git/trace2.c:49:2: note: expanded from macro 'for_each_wanted_builtin'
        for_each_builtin(j, tgt_j)                   \
        ^
/datasets/git/trace2.c:42:2: note: expanded from macro 'for_each_builtin'
        for (j = 0, tgt_j = tr2_tgt_builtins[j];        \
        ^
/datasets/git/trace2.c:838:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'tgt_j' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_wanted_builtin (j, tgt_j)
                                    ^
/datasets/git/trace2.c:839:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (tgt_j->pfn_data_json_fl)
                                            ^
                                             {
/datasets/git/trace2.c:846:13: warning: parameter name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
                         va_list ap)
                                 ^
/datasets/git/trace2.c:848:18: warning: variable 'tgt_j' is not initialized [cppcoreguidelines-init-variables]
        struct tr2_tgt *tgt_j;
                        ^
                              = NULL
/datasets/git/trace2.c:849:6: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int j;
            ^
              = 0
/datasets/git/trace2.c:849:6: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trace2.c:850:11: warning: variable 'us_now' is not initialized [cppcoreguidelines-init-variables]
        uint64_t us_now;
                 ^
                        = 0
/datasets/git/trace2.c:851:11: warning: variable 'us_elapsed_absolute' is not initialized [cppcoreguidelines-init-variables]
        uint64_t us_elapsed_absolute;
                 ^
                                     = 0
/datasets/git/trace2.c:853:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!trace2_enabled)
                            ^
                             {
/datasets/git/trace2.c:856:27: warning: 1000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        us_now = getnanotime() / 1000;
                                 ^
/datasets/git/trace2.c:863:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_wanted_builtin (j, tgt_j)
        ^
/datasets/git/trace2.c:49:2: note: expanded from macro 'for_each_wanted_builtin'
        for_each_builtin(j, tgt_j)                   \
        ^
/datasets/git/trace2.c:42:2: note: expanded from macro 'for_each_builtin'
        for (j = 0, tgt_j = tr2_tgt_builtins[j];        \
        ^
/datasets/git/trace2.c:863:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'tgt_j' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_wanted_builtin (j, tgt_j)
                                    ^
/datasets/git/trace2.c:864:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (tgt_j->pfn_printf_va_fl)
                                            ^
                                             {
/datasets/git/trace2.c:871:10: warning: variable name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
        va_list ap;
                ^
/datasets/git/trace2.c:880:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!trace2_enabled)
                            ^
                             {
/datasets/git/trace2.c:883:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (tid < 0 || tid >= TRACE2_NUMBER_OF_TIMERS)
                                                      ^
                                                       {
/datasets/git/trace2.c:891:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!trace2_enabled)
                            ^
                             {
/datasets/git/trace2.c:894:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (tid < 0 || tid >= TRACE2_NUMBER_OF_TIMERS)
                                                      ^
                                                       {
/datasets/git/trace2.c:902:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!trace2_enabled)
                            ^
                             {
/datasets/git/trace2.c:905:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cid < 0 || cid >= TRACE2_NUMBER_OF_COUNTERS)
                                                        ^
                                                         {
trace2/tr2_cfg.c:6:24: warning: variable 'tr2_cfg_patterns' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct strbuf **tr2_cfg_patterns;
                       ^
trace2/tr2_cfg.c:6:24: warning: variable 'tr2_cfg_patterns' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
trace2/tr2_cfg.c:7:12: warning: variable 'tr2_cfg_count_patterns' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int tr2_cfg_count_patterns;
           ^
trace2/tr2_cfg.c:8:12: warning: variable 'tr2_cfg_loaded' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int tr2_cfg_loaded;
           ^
trace2/tr2_cfg.c:10:24: warning: variable 'tr2_cfg_env_vars' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct strbuf **tr2_cfg_env_vars;
                       ^
trace2/tr2_cfg.c:10:24: warning: variable 'tr2_cfg_env_vars' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
trace2/tr2_cfg.c:11:12: warning: variable 'tr2_cfg_env_vars_count' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int tr2_cfg_env_vars_count;
           ^
trace2/tr2_cfg.c:12:12: warning: variable 'tr2_cfg_env_vars_loaded' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int tr2_cfg_env_vars_loaded;
           ^
/datasets/git/trace2/tr2_cfg.c:20:18: warning: variable 's' is not initialized [cppcoreguidelines-init-variables]
        struct strbuf **s;
                        ^
                          = NULL
/datasets/git/trace2/tr2_cfg.c:20:18: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trace2/tr2_cfg.c:21:14: warning: variable 'envvar' is not initialized [cppcoreguidelines-init-variables]
        const char *envvar;
                    ^
                           = NULL
/datasets/git/trace2/tr2_cfg.c:23:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (tr2_cfg_loaded)
                           ^
                            {
/datasets/git/trace2/tr2_cfg.c:28:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!envvar || !*envvar)
                                ^
                                 {
/datasets/git/trace2/tr2_cfg.c:32:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (s = tr2_cfg_patterns; *s; s++) {
        ^
/datasets/git/trace2/tr2_cfg.c:32:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 's' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (s = tr2_cfg_patterns; *s; s++) {
                                   ^
/datasets/git/trace2/tr2_cfg.c:35:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (buf->len && buf->buf[buf->len - 1] == ',')
                                                              ^
                                                               {
/datasets/git/trace2/tr2_cfg.c:41:27: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        tr2_cfg_count_patterns = s - tr2_cfg_patterns;
                                 ^
/datasets/git/trace2/tr2_cfg.c:47:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (tr2_cfg_patterns)
                             ^
                              {
/datasets/git/trace2/tr2_cfg.c:59:18: warning: variable 's' is not initialized [cppcoreguidelines-init-variables]
        struct strbuf **s;
                        ^
                          = NULL
/datasets/git/trace2/tr2_cfg.c:59:18: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trace2/tr2_cfg.c:60:14: warning: variable 'varlist' is not initialized [cppcoreguidelines-init-variables]
        const char *varlist;
                    ^
                            = NULL
/datasets/git/trace2/tr2_cfg.c:62:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (tr2_cfg_env_vars_loaded)
                                    ^
                                     {
/datasets/git/trace2/tr2_cfg.c:67:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!varlist || !*varlist)
                                  ^
                                   {
/datasets/git/trace2/tr2_cfg.c:71:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (s = tr2_cfg_env_vars; *s; s++) {
        ^
/datasets/git/trace2/tr2_cfg.c:71:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 's' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (s = tr2_cfg_env_vars; *s; s++) {
                                   ^
/datasets/git/trace2/tr2_cfg.c:74:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (buf->len && buf->buf[buf->len - 1] == ',')
                                                              ^
                                                               {
/datasets/git/trace2/tr2_cfg.c:80:27: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        tr2_cfg_env_vars_count = s - tr2_cfg_env_vars;
                                 ^
/datasets/git/trace2/tr2_cfg.c:86:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (tr2_cfg_env_vars)
                             ^
                              {
/datasets/git/trace2/tr2_cfg.c:92:8: warning: accessing fields in struct 'tr2_cfg_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct tr2_cfg_data {
       ^
/datasets/git/trace2/tr2_cfg.c:92:8: note: use "__attribute__((aligned(16)))" to align struct 'tr2_cfg_data' to 16 bytes
/datasets/git/trace2/tr2_cfg.c:100:65: warning: parameter name 'd' is too short, expected at least 3 characters [readability-identifier-length]
static int tr2_cfg_cb(const char *key, const char *value, void *d)
                                                                ^
/datasets/git/trace2/tr2_cfg.c:102:2: note: inferred assignment of ID-dependent value from ID-dependent variable tr2_cfg_patterns [altera-id-dependent-backward-branch]
        struct strbuf **s;
        ^
/datasets/git/trace2/tr2_cfg.c:102:18: warning: variable 's' is not initialized [cppcoreguidelines-init-variables]
        struct strbuf **s;
                        ^
                          = NULL
/datasets/git/trace2/tr2_cfg.c:102:18: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trace2/tr2_cfg.c:105:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (s = tr2_cfg_patterns; *s; s++) {
        ^
/datasets/git/trace2/tr2_cfg.c:105:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 's' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (s = tr2_cfg_patterns; *s; s++) {
                                   ^
/datasets/git/trace2/tr2_cfg.c:107:7: warning: variable name 'wm' is too short, expected at least 3 characters [readability-identifier-length]
                int wm = wildmatch(buf->buf, key, WM_CASEFOLD);
                    ^
/datasets/git/trace2/tr2_cfg.c:121:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (tr2_cfg_load_patterns() > 0)
                                        ^
                                         {
/datasets/git/trace2/tr2_cfg.c:127:18: warning: variable 's' is not initialized [cppcoreguidelines-init-variables]
        struct strbuf **s;
                        ^
                          = NULL
/datasets/git/trace2/tr2_cfg.c:127:18: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trace2/tr2_cfg.c:129:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (tr2_load_env_vars() <= 0)
                                     ^
                                      {
/datasets/git/trace2/tr2_cfg.c:132:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (s = tr2_cfg_env_vars; *s; s++) {
        ^
/datasets/git/trace2/tr2_cfg.c:132:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 's' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (s = tr2_cfg_env_vars; *s; s++) {
                                   ^
/datasets/git/trace2/tr2_cfg.c:134:21: warning: function is not thread safe [concurrency-mt-unsafe]
                const char *val = getenv(buf->buf);
                                  ^
/datasets/git/trace2/tr2_cfg.c:135:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (val && *val)
                                ^
                                 {
/datasets/git/trace2/tr2_cfg.c:145:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (tr2_cfg_load_patterns() > 0)
                                        ^
                                         {
trace2/tr2_cmd_name.c:6:22: warning: variable 'tr2cmdname_hierarchy' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct strbuf tr2cmdname_hierarchy = STRBUF_INIT;
                     ^
trace2/tr2_cmd_name.c:6:22: warning: initializing non-local variable with non-const expression depending on uninitialized non-local variable 'strbuf_slopbuf' [cppcoreguidelines-interfaces-global-init]
trace2/tr2_cmd_name.c:10:28: warning: function is not thread safe [concurrency-mt-unsafe]
        const char *parent_name = getenv(TR2_ENVVAR_PARENT_NAME);
                                  ^
trace2/tr2_cmd_name.c:19:2: warning: function is not thread safe [concurrency-mt-unsafe]
        setenv(TR2_ENVVAR_PARENT_NAME, tr2cmdname_hierarchy.buf, 1);
        ^
/datasets/git/trace2/tr2_ctr.c:3:1: warning: #includes are not sorted properly [llvm-include-order]
#include "trace2/tr2_tgt.h"
^        ~~~~~~~~~~~~~~~~~~
         "trace2/tr2_ctr.h"
/datasets/git/trace2/tr2_ctr.c:11:33: warning: variable 'final_counter_block' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct tr2_counter_block final_counter_block; /* access under tr2tls_mutex */
                                ^
/datasets/git/trace2/tr2_ctr.c:19:36: warning: variable 'tr2_counter_metadata' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct tr2_counter_metadata tr2_counter_metadata[TRACE2_NUMBER_OF_COUNTERS] = {
                                   ^
/datasets/git/trace2/tr2_ctr.c:34:28: warning: 2 adjacent parameters of 'tr2_counter_increment' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
void tr2_counter_increment(enum trace2_counter_id cid, uint64_t value)
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_ctr.c:34:51: note: the first parameter in the range is 'cid'
void tr2_counter_increment(enum trace2_counter_id cid, uint64_t value)
                                                  ^~~
/datasets/git/trace2/tr2_ctr.c:34:65: note: the last parameter in the range is 'value'
void tr2_counter_increment(enum trace2_counter_id cid, uint64_t value)
                                                                ^~~~~
/datasets/git/trace2/tr2_ctr.c:34:28: note: 
void tr2_counter_increment(enum trace2_counter_id cid, uint64_t value)
                           ^
/datasets/git/trace2/tr2_ctr.c:34:56: note: 'enum trace2_counter_id' and 'uint64_t' may be implicitly converted: 'enum trace2_counter_id' -> 'uint64_t' (as 'unsigned long'), 'uint64_t' (as 'unsigned long') -> 'enum trace2_counter_id'
void tr2_counter_increment(enum trace2_counter_id cid, uint64_t value)
                                                       ^
/datasets/git/trace2/tr2_ctr.c:37:22: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        struct tr2_counter *c = &ctx->counter_block.counter[cid];
                            ^
/datasets/git/trace2/tr2_ctr.c:42:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (tr2_counter_metadata[cid].want_per_thread_events)
                                                             ^
                                                              {
/datasets/git/trace2/tr2_ctr.c:49:25: warning: variable 'cid' is not initialized [cppcoreguidelines-init-variables]
        enum trace2_counter_id cid;
                               ^
/datasets/git/trace2/tr2_ctr.c:51:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ctx->used_any_counter)
                                   ^
                                    {
/datasets/git/trace2/tr2_ctr.c:59:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cid = 0; cid < TRACE2_NUMBER_OF_COUNTERS; cid++) {
        ^
/datasets/git/trace2/tr2_ctr.c:61:29: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                const struct tr2_counter *c = &ctx->counter_block.counter[cid];
                                          ^
/datasets/git/trace2/tr2_ctr.c:70:25: warning: variable 'cid' is not initialized [cppcoreguidelines-init-variables]
        enum trace2_counter_id cid;
                               ^
/datasets/git/trace2/tr2_ctr.c:72:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ctx->used_any_per_thread_counter)
                                              ^
                                               {
/datasets/git/trace2/tr2_ctr.c:79:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cid = 0; cid < TRACE2_NUMBER_OF_COUNTERS; cid++)
        ^
/datasets/git/trace2/tr2_ctr.c:79:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (cid = 0; cid < TRACE2_NUMBER_OF_COUNTERS; cid++)
                                                             ^
                                                              {
/datasets/git/trace2/tr2_ctr.c:81:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    ctx->counter_block.counter[cid].value)
                                                          ^
                                                           {
/datasets/git/trace2/tr2_ctr.c:89:25: warning: variable 'cid' is not initialized [cppcoreguidelines-init-variables]
        enum trace2_counter_id cid;
                               ^
/datasets/git/trace2/tr2_ctr.c:96:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cid = 0; cid < TRACE2_NUMBER_OF_COUNTERS; cid++)
        ^
/datasets/git/trace2/tr2_ctr.c:96:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (cid = 0; cid < TRACE2_NUMBER_OF_COUNTERS; cid++)
                                                             ^
                                                              {
/datasets/git/trace2/tr2_ctr.c:97:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (final_counter_block.counter[cid].value)
                                                           ^
                                                            {
/datasets/git/trace2/tr2_dst.c:10:1: warning: replace macro with enum [modernize-macro-to-enum]
#define MAX_AUTO_ATTEMPTS 10
^~~~~~~~
                          =
/datasets/git/trace2/tr2_dst.c:10:9: warning: macro 'MAX_AUTO_ATTEMPTS' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define MAX_AUTO_ATTEMPTS 10
        ^
/datasets/git/trace2/tr2_dst.c:23:12: warning: variable 'tr2env_max_files' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int tr2env_max_files = 0;
           ^
/datasets/git/trace2/tr2_dst.c:31:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!env_value || !*env_value)
                                              ^
                                               {
/datasets/git/trace2/tr2_dst.c:33:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/trace2/tr2_dst.c:34:23: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c]
                        tr2env_dst_debug = atoi(env_value) > 0;
                                           ^
/datasets/git/trace2/tr2_dst.c:42:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (dst->need_close)
                            ^
                             {
/datasets/git/trace2/tr2_dst.c:66:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int file_count = 0, max_files = 0, ret = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_dst.c:67:14: warning: variable 'max_files_var' is not initialized [cppcoreguidelines-init-variables]
        const char *max_files_var;
                    ^
                                  = NULL
/datasets/git/trace2/tr2_dst.c:68:7: warning: variable 'dirp' is not initialized [cppcoreguidelines-init-variables]
        DIR *dirp;
             ^
                  = NULL
/datasets/git/trace2/tr2_dst.c:69:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct strbuf path = STRBUF_INIT, sentinel_path = STRBUF_INIT;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_dst.c:74:43: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if (max_files_var && *max_files_var && ((max_files = atoi(max_files_var)) >= 0))
                                                 ^
/datasets/git/trace2/tr2_dst.c:74:43: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/trace2/tr2_dst.c:74:43: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/trace2/tr2_dst.c:74:55: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c]
        if (max_files_var && *max_files_var && ((max_files = atoi(max_files_var)) >= 0))
                                                             ^
/datasets/git/trace2/tr2_dst.c:74:82: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (max_files_var && *max_files_var && ((max_files = atoi(max_files_var)) >= 0))
                                                                                        ^
                                                                                         {
/datasets/git/trace2/tr2_dst.c:97:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (file_count < tr2env_max_files && dirp && readdir(dirp))
        ^
/datasets/git/trace2/tr2_dst.c:97:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'tr2env_max_files' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (file_count < tr2env_max_files && dirp && readdir(dirp))
               ^
/datasets/git/trace2/tr2_dst.c:97:50: warning: function is not thread safe [concurrency-mt-unsafe]
        while (file_count < tr2env_max_files && dirp && readdir(dirp))
                                                        ^
/datasets/git/trace2/tr2_dst.c:97:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (file_count < tr2env_max_files && dirp && readdir(dirp))
                                                                      ^
                                                                       {
/datasets/git/trace2/tr2_dst.c:99:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (dirp)
                 ^
                  {
/datasets/git/trace2/tr2_dst.c:104:64: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
                dst->fd = open(sentinel_path.buf, O_WRONLY | O_CREAT | O_EXCL, 0666);
                                                                             ^
                                                                              | O_CLOEXEC
/datasets/git/trace2/tr2_dst.c:104:66: warning: 0666 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                dst->fd = open(sentinel_path.buf, O_WRONLY | O_CREAT | O_EXCL, 0666);
                                                                               ^
/datasets/git/trace2/tr2_dst.c:117:6: warning: variable 'too_many_files' is not initialized [cppcoreguidelines-init-variables]
        int too_many_files;
            ^
                           = 0
/datasets/git/trace2/tr2_dst.c:118:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *last_slash, *sid = tr2_sid_get();
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_dst.c:118:14: warning: variable 'last_slash' is not initialized [cppcoreguidelines-init-variables]
        const char *last_slash, *sid = tr2_sid_get();
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/trace2/tr2_dst.c:120:9: warning: variable 'base_path_len' is not initialized [cppcoreguidelines-init-variables]
        size_t base_path_len;
               ^
                             = 0
/datasets/git/trace2/tr2_dst.c:121:11: warning: variable 'attempt_count' is not initialized [cppcoreguidelines-init-variables]
        unsigned attempt_count;
                 ^
                               = 0
/datasets/git/trace2/tr2_dst.c:124:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (last_slash)
                       ^
                        {
/datasets/git/trace2/tr2_dst.c:128:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_dir_sep(path.buf[path.len - 1]))
                                                ^
                                                 {
/datasets/git/trace2/tr2_dst.c:135:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (attempt_count = 0; attempt_count < MAX_AUTO_ATTEMPTS; attempt_count++) {
                ^
/datasets/git/trace2/tr2_dst.c:141:56: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
                        dst->fd = open(path.buf, O_WRONLY | O_CREAT | O_EXCL, 0666);
                                                                            ^
                                                                             | O_CLOEXEC
/datasets/git/trace2/tr2_dst.c:141:58: warning: 0666 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        dst->fd = open(path.buf, O_WRONLY | O_CREAT | O_EXCL, 0666);
                                                                              ^
/datasets/git/trace2/tr2_dst.c:142:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (dst->fd != -1)
                                          ^
                                           {
/datasets/git/trace2/tr2_dst.c:147:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (tr2_dst_want_warning())
                                           ^
                                            {
/datasets/git/trace2/tr2_dst.c:156:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (tr2_dst_want_warning())
                                           ^
                                            {
/datasets/git/trace2/tr2_dst.c:160:5: warning: function is not thread safe [concurrency-mt-unsafe]
                                strerror(errno));
                                ^
/datasets/git/trace2/tr2_dst.c:177:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
        int fd = open(tgt_value, O_WRONLY | O_APPEND | O_CREAT, 0666);
            ^
/datasets/git/trace2/tr2_dst.c:177:56: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
        int fd = open(tgt_value, O_WRONLY | O_APPEND | O_CREAT, 0666);
                                                              ^
                                                               | O_CLOEXEC
/datasets/git/trace2/tr2_dst.c:177:58: warning: 0666 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        int fd = open(tgt_value, O_WRONLY | O_APPEND | O_CREAT, 0666);
                                                                ^
/datasets/git/trace2/tr2_dst.c:179:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (tr2_dst_want_warning())
                                           ^
                                            {
/datasets/git/trace2/tr2_dst.c:183:5: warning: function is not thread safe [concurrency-mt-unsafe]
                                strerror(errno));
                                ^
/datasets/git/trace2/tr2_dst.c:203:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/trace2/tr2_dst.c:203:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trace2/tr2_dst.c:204:21: warning: variable name 'sa' is too short, expected at least 3 characters [readability-identifier-length]
        struct sockaddr_un sa;
                           ^
/datasets/git/trace2/tr2_dst.c:207:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fd == -1)
                     ^
                      {
/datasets/git/trace2/tr2_dst.c:231:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/trace2/tr2_dst.c:231:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trace2/tr2_dst.c:245:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (skip_prefix(tgt_value, PREFIX_AF_UNIX_STREAM, &path))
                                                                 ^
                                                                  {
/datasets/git/trace2/tr2_dst.c:246:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                uds_try |= TR2_DST_UDS_TRY_STREAM;
                ^
/datasets/git/trace2/tr2_dst.c:246:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                uds_try |= TR2_DST_UDS_TRY_STREAM;
                           ^
/datasets/git/trace2/tr2_dst.c:224:33: note: expanded from macro 'TR2_DST_UDS_TRY_STREAM'
#define TR2_DST_UDS_TRY_STREAM (1 << 0)
                                ^
/datasets/git/trace2/tr2_dst.c:248:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (skip_prefix(tgt_value, PREFIX_AF_UNIX_DGRAM, &path))
                                                                     ^
                                                                      {
/datasets/git/trace2/tr2_dst.c:249:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                uds_try |= TR2_DST_UDS_TRY_DGRAM;
                ^
/datasets/git/trace2/tr2_dst.c:249:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                uds_try |= TR2_DST_UDS_TRY_DGRAM;
                           ^
/datasets/git/trace2/tr2_dst.c:225:33: note: expanded from macro 'TR2_DST_UDS_TRY_DGRAM'
#define TR2_DST_UDS_TRY_DGRAM  (1 << 1)
                                ^
/datasets/git/trace2/tr2_dst.c:251:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (skip_prefix(tgt_value, PREFIX_AF_UNIX, &path))
                                                               ^
                                                                {
/datasets/git/trace2/tr2_dst.c:252:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                uds_try |= TR2_DST_UDS_TRY_STREAM | TR2_DST_UDS_TRY_DGRAM;
                ^
/datasets/git/trace2/tr2_dst.c:252:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                uds_try |= TR2_DST_UDS_TRY_STREAM | TR2_DST_UDS_TRY_DGRAM;
                           ^
/datasets/git/trace2/tr2_dst.c:224:32: note: expanded from macro 'TR2_DST_UDS_TRY_STREAM'
#define TR2_DST_UDS_TRY_STREAM (1 << 0)
                               ^~~~~~~~
/datasets/git/trace2/tr2_dst.c:252:39: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                uds_try |= TR2_DST_UDS_TRY_STREAM | TR2_DST_UDS_TRY_DGRAM;
                                                    ^
/datasets/git/trace2/tr2_dst.c:225:33: note: expanded from macro 'TR2_DST_UDS_TRY_DGRAM'
#define TR2_DST_UDS_TRY_DGRAM  (1 << 1)
                                ^
/datasets/git/trace2/tr2_dst.c:255:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (tr2_dst_want_warning())
                                           ^
                                            {
/datasets/git/trace2/tr2_dst.c:266:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (tr2_dst_want_warning())
                                           ^
                                            {
/datasets/git/trace2/tr2_dst.c:274:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (uds_try & TR2_DST_UDS_TRY_STREAM) {
            ^
/datasets/git/trace2/tr2_dst.c:274:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (uds_try & TR2_DST_UDS_TRY_STREAM) {
                      ^
/datasets/git/trace2/tr2_dst.c:224:33: note: expanded from macro 'TR2_DST_UDS_TRY_STREAM'
#define TR2_DST_UDS_TRY_STREAM (1 << 0)
                                ^
/datasets/git/trace2/tr2_dst.c:275:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!tr2_dst_try_uds_connect(path, SOCK_STREAM, &fd))
                                                                     ^
                                                                      {
/datasets/git/trace2/tr2_dst.c:277:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (errno != EPROTOTYPE)
                                        ^
                                         {
/datasets/git/trace2/tr2_dst.c:280:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (uds_try & TR2_DST_UDS_TRY_DGRAM) {
            ^
/datasets/git/trace2/tr2_dst.c:280:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (uds_try & TR2_DST_UDS_TRY_DGRAM) {
                      ^
/datasets/git/trace2/tr2_dst.c:225:33: note: expanded from macro 'TR2_DST_UDS_TRY_DGRAM'
#define TR2_DST_UDS_TRY_DGRAM  (1 << 1)
                                ^
/datasets/git/trace2/tr2_dst.c:281:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!tr2_dst_try_uds_connect(path, SOCK_DGRAM, &fd))
                                                                    ^
                                                                     {
/datasets/git/trace2/tr2_dst.c:286:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (tr2_dst_want_warning())
                                   ^
                                    {
/datasets/git/trace2/tr2_dst.c:289:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        strerror(errno));
                        ^
/datasets/git/trace2/tr2_dst.c:312:14: warning: variable 'tgt_value' is not initialized [cppcoreguidelines-init-variables]
        const char *tgt_value;
                    ^
                              = NULL
/datasets/git/trace2/tr2_dst.c:315:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (dst->initialized)
                             ^
                              {
/datasets/git/trace2/tr2_dst.c:333:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (strlen(tgt_value) == 1 && isdigit(*tgt_value)) {
                                      ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/trace2/tr2_dst.c:334:13: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c]
                dst->fd = atoi(tgt_value);
                          ^
/datasets/git/trace2/tr2_dst.c:339:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_directory(tgt_value))
                                            ^
                                             {
/datasets/git/trace2/tr2_dst.c:341:3: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                else
                ^~~~
                                        return tr2_dst_try_path(dst, tgt_value)
/datasets/git/trace2/tr2_dst.c:341:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/trace2/tr2_dst.c:346:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (starts_with(tgt_value, PREFIX_AF_UNIX))
                                                   ^
                                                    {
/datasets/git/trace2/tr2_dst.c:363:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
        int fd = tr2_dst_get_trace_fd(dst);
            ^
/datasets/git/trace2/tr2_dst.c:364:10: warning: variable 'bytes' is not initialized [cppcoreguidelines-init-variables]
        ssize_t bytes;
                ^
                      = 0
/datasets/git/trace2/tr2_dst.c:386:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (bytes >= 0)
                       ^
                        {
/datasets/git/trace2/tr2_dst.c:390:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (tr2_dst_want_warning())
                                   ^
                                    {
/datasets/git/trace2/tr2_dst.c:393:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        strerror(errno));
                        ^
/datasets/git/trace2/tr2_sid.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "trace2/tr2_tbuf.h"
^        ~~~~~~~~~~~~~~~~~~~
         "trace2/tr2_sid.h"
/datasets/git/trace2/tr2_sid.c:7:22: warning: variable 'tr2sid_buf' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct strbuf tr2sid_buf = STRBUF_INIT;
                     ^
/datasets/git/trace2/tr2_sid.c:7:22: warning: initializing non-local variable with non-const expression depending on uninitialized non-local variable 'strbuf_slopbuf' [cppcoreguidelines-interfaces-global-init]
/datasets/git/trace2/tr2_sid.c:8:12: warning: variable 'tr2sid_nr_git_parents' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int tr2sid_nr_git_parents;
           ^
/datasets/git/trace2/tr2_sid.c:43:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (xgethostname(hostname, sizeof(hostname)))
                                                     ^
                                                      {
/datasets/git/trace2/tr2_sid.c:44:40: warning: 9 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                strbuf_add(&tr2sid_buf, "Localhost", 9);
                                                     ^
/datasets/git/trace2/tr2_sid.c:51:32: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                strbuf_add(&tr2sid_buf, hex, 8);
                                             ^
/datasets/git/trace2/tr2_sid.c:71:14: warning: variable 'parent_sid' is not initialized [cppcoreguidelines-init-variables]
        const char *parent_sid;
                    ^
                               = NULL
/datasets/git/trace2/tr2_sid.c:73:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (tr2sid_buf.len)
                           ^
                            {
/datasets/git/trace2/tr2_sid.c:76:15: warning: function is not thread safe [concurrency-mt-unsafe]
        parent_sid = getenv(TR2_ENVVAR_PARENT_SID);
                     ^
/datasets/git/trace2/tr2_sid.c:78:15: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                const char *p;
                            ^
                              = NULL
/datasets/git/trace2/tr2_sid.c:78:15: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trace2/tr2_sid.c:79:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (p = parent_sid; *p; p++)
                ^
/datasets/git/trace2/tr2_sid.c:79:24: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (p = parent_sid; *p; p++)
                                     ^
/datasets/git/trace2/tr2_sid.c:79:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (p = parent_sid; *p; p++)
                                             ^
                                              {
/datasets/git/trace2/tr2_sid.c:80:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (*p == '/')
                                      ^
                                       {
/datasets/git/trace2/tr2_sid.c:90:2: warning: function is not thread safe [concurrency-mt-unsafe]
        setenv(TR2_ENVVAR_PARENT_SID, tr2sid_buf.buf, 1);
        ^
/datasets/git/trace2/tr2_sid.c:95:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!tr2sid_buf.len)
                            ^
                             {
/datasets/git/trace2/tr2_sid.c:103:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!tr2sid_buf.len)
                            ^
                             {
/datasets/git/trace2/tr2_sysenv.c:10:8: warning: accessing fields in struct 'tr2_sysenv_entry' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct tr2_sysenv_entry {
       ^
/datasets/git/trace2/tr2_sysenv.c:10:8: note: use "__attribute__((aligned(32)))" to align struct 'tr2_sysenv_entry' to 32 bytes
/datasets/git/trace2/tr2_sysenv.c:29:32: warning: variable 'tr2_sysenv_settings' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct tr2_sysenv_entry tr2_sysenv_settings[] = {
                               ^
/datasets/git/trace2/tr2_sysenv.c:60:26: warning: 2 adjacent parameters of 'tr2_sysenv_cb' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int tr2_sysenv_cb(const char *key, const char *value, void *d)
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_sysenv.c:60:38: note: the first parameter in the range is 'key'
static int tr2_sysenv_cb(const char *key, const char *value, void *d)
                                     ^~~
/datasets/git/trace2/tr2_sysenv.c:60:55: note: the last parameter in the range is 'value'
static int tr2_sysenv_cb(const char *key, const char *value, void *d)
                                                      ^~~~~
/datasets/git/trace2/tr2_sysenv.c:60:68: warning: parameter 'd' is unused [misc-unused-parameters]
static int tr2_sysenv_cb(const char *key, const char *value, void *d)
                                                                   ^
/datasets/git/trace2/tr2_sysenv.c:60:68: warning: parameter name 'd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trace2/tr2_sysenv.c:62:6: warning: variable 'k' is not initialized [cppcoreguidelines-init-variables]
        int k;
            ^
              = 0
/datasets/git/trace2/tr2_sysenv.c:62:6: warning: variable name 'k' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trace2/tr2_sysenv.c:64:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!starts_with(key, "trace2."))
                                         ^
                                          {
/datasets/git/trace2/tr2_sysenv.c:67:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (k = 0; k < ARRAY_SIZE(tr2_sysenv_settings); k++) {
        ^
/datasets/git/trace2/tr2_sysenv.c:87:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ARRAY_SIZE(tr2_sysenv_settings) != TR2_SYSENV_MUST_BE_LAST)
                                                                       ^
                                                                        {
/datasets/git/trace2/tr2_sysenv.c:99:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (var >= TR2_SYSENV_MUST_BE_LAST)
                                           ^
                                            {
/datasets/git/trace2/tr2_sysenv.c:103:15: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
                const char *v = getenv(tr2_sysenv_settings[var].env_var_name);
                            ^
/datasets/git/trace2/tr2_sysenv.c:103:19: warning: function is not thread safe [concurrency-mt-unsafe]
                const char *v = getenv(tr2_sysenv_settings[var].env_var_name);
                                ^
/datasets/git/trace2/tr2_sysenv.c:120:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (var >= TR2_SYSENV_MUST_BE_LAST)
                                           ^
                                            {
/datasets/git/trace2/tr2_sysenv.c:128:6: warning: variable 'k' is not initialized [cppcoreguidelines-init-variables]
        int k;
            ^
              = 0
/datasets/git/trace2/tr2_sysenv.c:128:6: warning: variable name 'k' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trace2/tr2_sysenv.c:130:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (k = 0; k < ARRAY_SIZE(tr2_sysenv_settings); k++)
        ^
/datasets/git/trace2/tr2_sysenv.c:130:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (k = 0; k < ARRAY_SIZE(tr2_sysenv_settings); k++)
                                                             ^
                                                              {
trace2/tr2_tbuf.c:4:43: warning: parameter name 'tb' is too short, expected at least 3 characters [readability-identifier-length]
void tr2_tbuf_local_time(struct tr2_tbuf *tb)
                                          ^
trace2/tr2_tbuf.c:6:17: warning: variable name 'tv' is too short, expected at least 3 characters [readability-identifier-length]
        struct timeval tv;
                       ^
trace2/tr2_tbuf.c:7:12: warning: variable name 'tm' is too short, expected at least 3 characters [readability-identifier-length]
        struct tm tm;
                  ^
/datasets/git/trace2/tr2_tbuf.c:8:9: warning: variable 'secs' is not initialized [cppcoreguidelines-init-variables]
        time_t secs;
               ^
                    = 0
/datasets/git/trace2/tr2_tbuf.c:18:54: warning: parameter name 'tb' is too short, expected at least 3 characters [readability-identifier-length]
void tr2_tbuf_utc_datetime_extended(struct tr2_tbuf *tb)
                                                     ^
/datasets/git/trace2/tr2_tbuf.c:20:17: warning: variable name 'tv' is too short, expected at least 3 characters [readability-identifier-length]
        struct timeval tv;
                       ^
/datasets/git/trace2/tr2_tbuf.c:21:12: warning: variable name 'tm' is too short, expected at least 3 characters [readability-identifier-length]
        struct tm tm;
                  ^
/datasets/git/trace2/tr2_tbuf.c:22:9: warning: variable 'secs' is not initialized [cppcoreguidelines-init-variables]
        time_t secs;
               ^
                    = 0
/datasets/git/trace2/tr2_tbuf.c:29:57: warning: 1900 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                  "%4d-%02d-%02dT%02d:%02d:%02d.%06ldZ", tm.tm_year + 1900,
                                                                      ^
/datasets/git/trace2/tr2_tbuf.c:34:45: warning: parameter name 'tb' is too short, expected at least 3 characters [readability-identifier-length]
void tr2_tbuf_utc_datetime(struct tr2_tbuf *tb)
                                            ^
/datasets/git/trace2/tr2_tbuf.c:36:17: warning: variable name 'tv' is too short, expected at least 3 characters [readability-identifier-length]
        struct timeval tv;
                       ^
/datasets/git/trace2/tr2_tbuf.c:37:12: warning: variable name 'tm' is too short, expected at least 3 characters [readability-identifier-length]
        struct tm tm;
                  ^
/datasets/git/trace2/tr2_tbuf.c:38:9: warning: variable 'secs' is not initialized [cppcoreguidelines-init-variables]
        time_t secs;
               ^
                    = 0
/datasets/git/trace2/tr2_tbuf.c:45:18: warning: 1900 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                  tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday, tm.tm_hour,
                               ^
/datasets/git/trace2/tr2_tgt_event.c:5:1: warning: #includes are not sorted properly [llvm-include-order]
#include "version.h"
^        ~~~~~~~~~~~
         "trace2/tr2_dst.h"
/datasets/git/trace2/tr2_tgt_event.c:14:23: warning: variable 'tr2dst_event' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct tr2_dst tr2dst_event = {
                      ^
/datasets/git/trace2/tr2_tgt_event.c:39:12: warning: variable 'tr2env_event_max_nesting_levels' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int tr2env_event_max_nesting_levels = 2;
           ^
/datasets/git/trace2/tr2_tgt_event.c:45:12: warning: variable 'tr2env_event_be_brief' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int tr2env_event_be_brief;
           ^
/datasets/git/trace2/tr2_tgt_event.c:50:6: warning: variable 'max_nesting' is not initialized [cppcoreguidelines-init-variables]
        int max_nesting;
            ^
                        = 0
/datasets/git/trace2/tr2_tgt_event.c:51:6: warning: variable 'want_brief' is not initialized [cppcoreguidelines-init-variables]
        int want_brief;
            ^
                       = 0
/datasets/git/trace2/tr2_tgt_event.c:52:14: warning: variable 'nesting' is not initialized [cppcoreguidelines-init-variables]
        const char *nesting;
                    ^
                            = NULL
/datasets/git/trace2/tr2_tgt_event.c:53:14: warning: variable 'brief' is not initialized [cppcoreguidelines-init-variables]
        const char *brief;
                    ^
                          = NULL
/datasets/git/trace2/tr2_tgt_event.c:55:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!want)
                  ^
                   {
/datasets/git/trace2/tr2_tgt_event.c:59:31: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if (nesting && *nesting && ((max_nesting = atoi(nesting)) > 0))
                                     ^
/datasets/git/trace2/tr2_tgt_event.c:59:31: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/trace2/tr2_tgt_event.c:59:31: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/trace2/tr2_tgt_event.c:59:45: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c]
        if (nesting && *nesting && ((max_nesting = atoi(nesting)) > 0))
                                                   ^
/datasets/git/trace2/tr2_tgt_event.c:59:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (nesting && *nesting && ((max_nesting = atoi(nesting)) > 0))
                                                                       ^
                                                                        {
/datasets/git/trace2/tr2_tgt_event.c:64:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
            ((want_brief = git_parse_maybe_bool(brief)) != -1))
              ^
/datasets/git/trace2/tr2_tgt_event.c:64:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/trace2/tr2_tgt_event.c:64:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/trace2/tr2_tgt_event.c:64:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            ((want_brief = git_parse_maybe_bool(brief)) != -1))
                                                               ^
                                                                {
/datasets/git/trace2/tr2_tgt_event.c:87:30: warning: parameter name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
                              struct json_writer *jw)
                                                  ^
/datasets/git/trace2/tr2_tgt_event.c:110:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo)
                 ^
                  {
/datasets/git/trace2/tr2_tgt_event.c:117:21: warning: variable name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
        struct json_writer jw = JSON_WRITER_INIT;
                           ^
/datasets/git/trace2/tr2_tgt_event.c:130:21: warning: variable name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
        struct json_writer jw = JSON_WRITER_INIT;
                           ^
/datasets/git/trace2/tr2_tgt_event.c:141:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (tr2dst_event.too_many_files)
                                        ^
                                         {
/datasets/git/trace2/tr2_tgt_event.c:145:43: warning: 2 adjacent parameters of 'fn_start_fl' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void fn_start_fl(const char *file, int line,
                                          ^~~~~~~~~
/datasets/git/trace2/tr2_tgt_event.c:145:47: note: the first parameter in the range is 'line'
static void fn_start_fl(const char *file, int line,
                                              ^~~~
/datasets/git/trace2/tr2_tgt_event.c:146:13: note: the last parameter in the range is 'us_elapsed_absolute'
                        uint64_t us_elapsed_absolute, const char **argv)
                                 ^~~~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_tgt_event.c:145:43: note: 
static void fn_start_fl(const char *file, int line,
                                          ^
/datasets/git/trace2/tr2_tgt_event.c:146:4: note: 'int' and 'uint64_t' may be implicitly converted: 'int' -> 'uint64_t' (as 'unsigned long'), 'uint64_t' (as 'unsigned long') -> 'int'
                        uint64_t us_elapsed_absolute, const char **argv)
                        ^
/datasets/git/trace2/tr2_tgt_event.c:149:21: warning: variable name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
        struct json_writer jw = JSON_WRITER_INIT;
                           ^
/datasets/git/trace2/tr2_tgt_event.c:150:47: warning: 1000000.0 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        double t_abs = (double)us_elapsed_absolute / 1000000.0;
                                                     ^
/datasets/git/trace2/tr2_tgt_event.c:154:33: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        jw_object_double(&jw, "t_abs", 6, t_abs);
                                       ^
/datasets/git/trace2/tr2_tgt_event.c:164:42: warning: 3 adjacent parameters of 'fn_exit_fl' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void fn_exit_fl(const char *file, int line, uint64_t us_elapsed_absolute,
                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_tgt_event.c:164:46: note: the first parameter in the range is 'line'
static void fn_exit_fl(const char *file, int line, uint64_t us_elapsed_absolute,
                                             ^~~~
/datasets/git/trace2/tr2_tgt_event.c:165:14: note: the last parameter in the range is 'code'
                       int code)
                           ^~~~
/datasets/git/trace2/tr2_tgt_event.c:164:42: note: 
static void fn_exit_fl(const char *file, int line, uint64_t us_elapsed_absolute,
                                         ^
/datasets/git/trace2/tr2_tgt_event.c:164:52: note: 'int' and 'uint64_t' may be implicitly converted: 'int' -> 'uint64_t' (as 'unsigned long'), 'uint64_t' (as 'unsigned long') -> 'int'
static void fn_exit_fl(const char *file, int line, uint64_t us_elapsed_absolute,
                                                   ^
/datasets/git/trace2/tr2_tgt_event.c:168:21: warning: variable name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
        struct json_writer jw = JSON_WRITER_INIT;
                           ^
/datasets/git/trace2/tr2_tgt_event.c:169:47: warning: 1000000.0 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        double t_abs = (double)us_elapsed_absolute / 1000000.0;
                                                     ^
/datasets/git/trace2/tr2_tgt_event.c:173:33: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        jw_object_double(&jw, "t_abs", 6, t_abs);
                                       ^
/datasets/git/trace2/tr2_tgt_event.c:181:23: warning: 2 adjacent parameters of 'fn_signal' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void fn_signal(uint64_t us_elapsed_absolute, int signo)
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_tgt_event.c:181:32: note: the first parameter in the range is 'us_elapsed_absolute'
static void fn_signal(uint64_t us_elapsed_absolute, int signo)
                               ^~~~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_tgt_event.c:181:57: note: the last parameter in the range is 'signo'
static void fn_signal(uint64_t us_elapsed_absolute, int signo)
                                                        ^~~~~
/datasets/git/trace2/tr2_tgt_event.c:181:23: note: 
static void fn_signal(uint64_t us_elapsed_absolute, int signo)
                      ^
/datasets/git/trace2/tr2_tgt_event.c:181:53: note: 'uint64_t' and 'int' may be implicitly converted: 'uint64_t' (as 'unsigned long') -> 'int', 'int' -> 'uint64_t' (as 'unsigned long')
static void fn_signal(uint64_t us_elapsed_absolute, int signo)
                                                    ^
/datasets/git/trace2/tr2_tgt_event.c:184:21: warning: variable name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
        struct json_writer jw = JSON_WRITER_INIT;
                           ^
/datasets/git/trace2/tr2_tgt_event.c:185:47: warning: 1000000.0 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        double t_abs = (double)us_elapsed_absolute / 1000000.0;
                                                     ^
/datasets/git/trace2/tr2_tgt_event.c:189:33: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        jw_object_double(&jw, "t_abs", 6, t_abs);
                                       ^
/datasets/git/trace2/tr2_tgt_event.c:197:23: warning: 2 adjacent parameters of 'fn_atexit' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void fn_atexit(uint64_t us_elapsed_absolute, int code)
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_tgt_event.c:197:32: note: the first parameter in the range is 'us_elapsed_absolute'
static void fn_atexit(uint64_t us_elapsed_absolute, int code)
                               ^~~~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_tgt_event.c:197:57: note: the last parameter in the range is 'code'
static void fn_atexit(uint64_t us_elapsed_absolute, int code)
                                                        ^~~~
/datasets/git/trace2/tr2_tgt_event.c:197:23: note: 
static void fn_atexit(uint64_t us_elapsed_absolute, int code)
                      ^
/datasets/git/trace2/tr2_tgt_event.c:197:53: note: 'uint64_t' and 'int' may be implicitly converted: 'uint64_t' (as 'unsigned long') -> 'int', 'int' -> 'uint64_t' (as 'unsigned long')
static void fn_atexit(uint64_t us_elapsed_absolute, int code)
                                                    ^
/datasets/git/trace2/tr2_tgt_event.c:200:21: warning: variable name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
        struct json_writer jw = JSON_WRITER_INIT;
                           ^
/datasets/git/trace2/tr2_tgt_event.c:201:47: warning: 1000000.0 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        double t_abs = (double)us_elapsed_absolute / 1000000.0;
                                                     ^
/datasets/git/trace2/tr2_tgt_event.c:205:33: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        jw_object_double(&jw, "t_abs", 6, t_abs);
                                       ^
/datasets/git/trace2/tr2_tgt_event.c:213:53: warning: parameter name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
static void maybe_add_string_va(struct json_writer *jw, const char *field_name,
                                                    ^
/datasets/git/trace2/tr2_tgt_event.c:213:57: warning: 2 adjacent parameters of 'maybe_add_string_va' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void maybe_add_string_va(struct json_writer *jw, const char *field_name,
                                                        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_tgt_event.c:213:69: note: the first parameter in the range is 'field_name'
static void maybe_add_string_va(struct json_writer *jw, const char *field_name,
                                                                    ^~~~~~~~~~
/datasets/git/trace2/tr2_tgt_event.c:214:17: note: the last parameter in the range is 'fmt'
                                const char *fmt, va_list ap)
                                            ^~~
/datasets/git/trace2/tr2_tgt_event.c:214:30: warning: parameter name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
                                const char *fmt, va_list ap)
                                                         ^
/datasets/git/trace2/tr2_tgt_event.c:231:15: warning: parameter name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
                           va_list ap)
                                   ^
/datasets/git/trace2/tr2_tgt_event.c:234:21: warning: variable name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
        struct json_writer jw = JSON_WRITER_INIT;
                           ^
/datasets/git/trace2/tr2_tgt_event.c:245:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fmt && *fmt)
                        ^
                         {
/datasets/git/trace2/tr2_tgt_event.c:256:21: warning: variable name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
        struct json_writer jw = JSON_WRITER_INIT;
                           ^
/datasets/git/trace2/tr2_tgt_event.c:271:21: warning: variable name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
        struct json_writer jw = JSON_WRITER_INIT;
                           ^
/datasets/git/trace2/tr2_tgt_event.c:277:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((parent_name = *parent_names++))
        ^
/datasets/git/trace2/tr2_tgt_event.c:277:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'parent_name' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((parent_name = *parent_names++))
               ^
/datasets/git/trace2/tr2_tgt_event.c:277:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while ((parent_name = *parent_names++))
                                               ^
                                                {
/datasets/git/trace2/tr2_tgt_event.c:291:21: warning: variable name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
        struct json_writer jw = JSON_WRITER_INIT;
                           ^
/datasets/git/trace2/tr2_tgt_event.c:296:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (hierarchy && *hierarchy)
                                    ^
                                     {
/datasets/git/trace2/tr2_tgt_event.c:307:21: warning: variable name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
        struct json_writer jw = JSON_WRITER_INIT;
                           ^
/datasets/git/trace2/tr2_tgt_event.c:322:21: warning: variable name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
        struct json_writer jw = JSON_WRITER_INIT;
                           ^
/datasets/git/trace2/tr2_tgt_event.c:336:49: warning: 2 adjacent parameters of 'fn_child_start_fl' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void fn_child_start_fl(const char *file, int line,
                                                ^~~~~~~~~
/datasets/git/trace2/tr2_tgt_event.c:336:53: note: the first parameter in the range is 'line'
static void fn_child_start_fl(const char *file, int line,
                                                    ^~~~
/datasets/git/trace2/tr2_tgt_event.c:337:19: note: the last parameter in the range is 'us_elapsed_absolute'
                              uint64_t us_elapsed_absolute,
                                       ^~~~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_tgt_event.c:336:49: note: 
static void fn_child_start_fl(const char *file, int line,
                                                ^
/datasets/git/trace2/tr2_tgt_event.c:337:10: note: 'int' and 'uint64_t' may be implicitly converted: 'int' -> 'uint64_t' (as 'unsigned long'), 'uint64_t' (as 'unsigned long') -> 'int'
                              uint64_t us_elapsed_absolute,
                              ^
/datasets/git/trace2/tr2_tgt_event.c:337:19: warning: parameter 'us_elapsed_absolute' is unused [misc-unused-parameters]
                              uint64_t us_elapsed_absolute,
                                       ^
/datasets/git/trace2/tr2_tgt_event.c:341:21: warning: variable name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
        struct json_writer jw = JSON_WRITER_INIT;
                           ^
/datasets/git/trace2/tr2_tgt_event.c:354:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cmd->dir)
                     ^
                      {
/datasets/git/trace2/tr2_tgt_event.c:358:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cmd->git_cmd)
                         ^
                          {
/datasets/git/trace2/tr2_tgt_event.c:368:48: warning: 3 adjacent parameters of 'fn_child_exit_fl' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void fn_child_exit_fl(const char *file, int line,
                                               ^~~~~~~~~
/datasets/git/trace2/tr2_tgt_event.c:368:52: note: the first parameter in the range is 'line'
static void fn_child_exit_fl(const char *file, int line,
                                                   ^~~~
/datasets/git/trace2/tr2_tgt_event.c:369:43: note: the last parameter in the range is 'cid'
                             uint64_t us_elapsed_absolute, int cid, int pid,
                                                               ^~~
/datasets/git/trace2/tr2_tgt_event.c:368:48: note: 
static void fn_child_exit_fl(const char *file, int line,
                                               ^
/datasets/git/trace2/tr2_tgt_event.c:369:9: note: 'int' and 'uint64_t' may be implicitly converted: 'int' -> 'uint64_t' (as 'unsigned long'), 'uint64_t' (as 'unsigned long') -> 'int'
                             uint64_t us_elapsed_absolute, int cid, int pid,
                             ^
/datasets/git/trace2/tr2_tgt_event.c:369:18: warning: parameter 'us_elapsed_absolute' is unused [misc-unused-parameters]
                             uint64_t us_elapsed_absolute, int cid, int pid,
                                      ^
/datasets/git/trace2/tr2_tgt_event.c:370:9: warning: 2 adjacent parameters of 'fn_child_exit_fl' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                             int code, uint64_t us_elapsed_child)
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_tgt_event.c:370:13: note: the first parameter in the range is 'code'
                             int code, uint64_t us_elapsed_child)
                                 ^~~~
/datasets/git/trace2/tr2_tgt_event.c:370:28: note: the last parameter in the range is 'us_elapsed_child'
                             int code, uint64_t us_elapsed_child)
                                                ^~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_tgt_event.c:370:9: note: 
                             int code, uint64_t us_elapsed_child)
                             ^
/datasets/git/trace2/tr2_tgt_event.c:370:19: note: 'int' and 'uint64_t' may be implicitly converted: 'int' -> 'uint64_t' (as 'unsigned long'), 'uint64_t' (as 'unsigned long') -> 'int'
                             int code, uint64_t us_elapsed_child)
                                       ^
/datasets/git/trace2/tr2_tgt_event.c:373:21: warning: variable name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
        struct json_writer jw = JSON_WRITER_INIT;
                           ^
/datasets/git/trace2/tr2_tgt_event.c:374:44: warning: 1000000.0 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        double t_rel = (double)us_elapsed_child / 1000000.0;
                                                  ^
/datasets/git/trace2/tr2_tgt_event.c:381:33: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        jw_object_double(&jw, "t_rel", 6, t_rel);
                                       ^
/datasets/git/trace2/tr2_tgt_event.c:389:49: warning: 3 adjacent parameters of 'fn_child_ready_fl' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void fn_child_ready_fl(const char *file, int line,
                                                ^~~~~~~~~
/datasets/git/trace2/tr2_tgt_event.c:389:53: note: the first parameter in the range is 'line'
static void fn_child_ready_fl(const char *file, int line,
                                                    ^~~~
/datasets/git/trace2/tr2_tgt_event.c:390:44: note: the last parameter in the range is 'cid'
                              uint64_t us_elapsed_absolute, int cid, int pid,
                                                                ^~~
/datasets/git/trace2/tr2_tgt_event.c:389:49: note: 
static void fn_child_ready_fl(const char *file, int line,
                                                ^
/datasets/git/trace2/tr2_tgt_event.c:390:10: note: 'int' and 'uint64_t' may be implicitly converted: 'int' -> 'uint64_t' (as 'unsigned long'), 'uint64_t' (as 'unsigned long') -> 'int'
                              uint64_t us_elapsed_absolute, int cid, int pid,
                              ^
/datasets/git/trace2/tr2_tgt_event.c:390:19: warning: parameter 'us_elapsed_absolute' is unused [misc-unused-parameters]
                              uint64_t us_elapsed_absolute, int cid, int pid,
                                       ^
/datasets/git/trace2/tr2_tgt_event.c:394:21: warning: variable name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
        struct json_writer jw = JSON_WRITER_INIT;
                           ^
/datasets/git/trace2/tr2_tgt_event.c:395:44: warning: 1000000.0 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        double t_rel = (double)us_elapsed_child / 1000000.0;
                                                  ^
/datasets/git/trace2/tr2_tgt_event.c:402:33: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        jw_object_double(&jw, "t_rel", 6, t_rel);
                                       ^
/datasets/git/trace2/tr2_tgt_event.c:410:50: warning: 2 adjacent parameters of 'fn_thread_start_fl' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void fn_thread_start_fl(const char *file, int line,
                                                 ^~~~~~~~~
/datasets/git/trace2/tr2_tgt_event.c:410:54: note: the first parameter in the range is 'line'
static void fn_thread_start_fl(const char *file, int line,
                                                     ^~~~
/datasets/git/trace2/tr2_tgt_event.c:411:20: note: the last parameter in the range is 'us_elapsed_absolute'
                               uint64_t us_elapsed_absolute)
                                        ^~~~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_tgt_event.c:410:50: note: 
static void fn_thread_start_fl(const char *file, int line,
                                                 ^
/datasets/git/trace2/tr2_tgt_event.c:411:11: note: 'int' and 'uint64_t' may be implicitly converted: 'int' -> 'uint64_t' (as 'unsigned long'), 'uint64_t' (as 'unsigned long') -> 'int'
                               uint64_t us_elapsed_absolute)
                               ^
/datasets/git/trace2/tr2_tgt_event.c:411:20: warning: parameter 'us_elapsed_absolute' is unused [misc-unused-parameters]
                               uint64_t us_elapsed_absolute)
                                        ^
/datasets/git/trace2/tr2_tgt_event.c:414:21: warning: variable name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
        struct json_writer jw = JSON_WRITER_INIT;
                           ^
/datasets/git/trace2/tr2_tgt_event.c:424:49: warning: 3 adjacent parameters of 'fn_thread_exit_fl' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void fn_thread_exit_fl(const char *file, int line,
                                                ^~~~~~~~~
/datasets/git/trace2/tr2_tgt_event.c:424:53: note: the first parameter in the range is 'line'
static void fn_thread_exit_fl(const char *file, int line,
                                                    ^~~~
/datasets/git/trace2/tr2_tgt_event.c:426:19: note: the last parameter in the range is 'us_elapsed_thread'
                              uint64_t us_elapsed_thread)
                                       ^~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_tgt_event.c:424:49: note: 
static void fn_thread_exit_fl(const char *file, int line,
                                                ^
/datasets/git/trace2/tr2_tgt_event.c:425:10: note: 'int' and 'uint64_t' may be implicitly converted: 'int' -> 'uint64_t' (as 'unsigned long'), 'uint64_t' (as 'unsigned long') -> 'int'
                              uint64_t us_elapsed_absolute,
                              ^
/datasets/git/trace2/tr2_tgt_event.c:425:19: warning: parameter 'us_elapsed_absolute' is unused [misc-unused-parameters]
                              uint64_t us_elapsed_absolute,
                                       ^
/datasets/git/trace2/tr2_tgt_event.c:429:21: warning: variable name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
        struct json_writer jw = JSON_WRITER_INIT;
                           ^
/datasets/git/trace2/tr2_tgt_event.c:430:45: warning: 1000000.0 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        double t_rel = (double)us_elapsed_thread / 1000000.0;
                                                   ^
/datasets/git/trace2/tr2_tgt_event.c:434:33: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        jw_object_double(&jw, "t_rel", 6, t_rel);
                                       ^
/datasets/git/trace2/tr2_tgt_event.c:441:42: warning: 3 adjacent parameters of 'fn_exec_fl' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void fn_exec_fl(const char *file, int line, uint64_t us_elapsed_absolute,
                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_tgt_event.c:441:46: note: the first parameter in the range is 'line'
static void fn_exec_fl(const char *file, int line, uint64_t us_elapsed_absolute,
                                             ^~~~
/datasets/git/trace2/tr2_tgt_event.c:442:14: note: the last parameter in the range is 'exec_id'
                       int exec_id, const char *exe, const char **argv)
                           ^~~~~~~
/datasets/git/trace2/tr2_tgt_event.c:441:42: note: 
static void fn_exec_fl(const char *file, int line, uint64_t us_elapsed_absolute,
                                         ^
/datasets/git/trace2/tr2_tgt_event.c:441:52: note: 'int' and 'uint64_t' may be implicitly converted: 'int' -> 'uint64_t' (as 'unsigned long'), 'uint64_t' (as 'unsigned long') -> 'int'
static void fn_exec_fl(const char *file, int line, uint64_t us_elapsed_absolute,
                                                   ^
/datasets/git/trace2/tr2_tgt_event.c:441:61: warning: parameter 'us_elapsed_absolute' is unused [misc-unused-parameters]
static void fn_exec_fl(const char *file, int line, uint64_t us_elapsed_absolute,
                                                            ^
/datasets/git/trace2/tr2_tgt_event.c:445:21: warning: variable name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
        struct json_writer jw = JSON_WRITER_INIT;
                           ^
/datasets/git/trace2/tr2_tgt_event.c:450:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (exe)
                ^
                 {
/datasets/git/trace2/tr2_tgt_event.c:461:49: warning: 3 adjacent parameters of 'fn_exec_result_fl' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void fn_exec_result_fl(const char *file, int line,
                                                ^~~~~~~~~
/datasets/git/trace2/tr2_tgt_event.c:461:53: note: the first parameter in the range is 'line'
static void fn_exec_result_fl(const char *file, int line,
                                                    ^~~~
/datasets/git/trace2/tr2_tgt_event.c:462:44: note: the last parameter in the range is 'exec_id'
                              uint64_t us_elapsed_absolute, int exec_id,
                                                                ^~~~~~~
/datasets/git/trace2/tr2_tgt_event.c:461:49: note: 
static void fn_exec_result_fl(const char *file, int line,
                                                ^
/datasets/git/trace2/tr2_tgt_event.c:462:10: note: 'int' and 'uint64_t' may be implicitly converted: 'int' -> 'uint64_t' (as 'unsigned long'), 'uint64_t' (as 'unsigned long') -> 'int'
                              uint64_t us_elapsed_absolute, int exec_id,
                              ^
/datasets/git/trace2/tr2_tgt_event.c:462:19: warning: parameter 'us_elapsed_absolute' is unused [misc-unused-parameters]
                              uint64_t us_elapsed_absolute, int exec_id,
                                       ^
/datasets/git/trace2/tr2_tgt_event.c:466:21: warning: variable name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
        struct json_writer jw = JSON_WRITER_INIT;
                           ^
/datasets/git/trace2/tr2_tgt_event.c:482:21: warning: variable name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
        struct json_writer jw = JSON_WRITER_INIT;
                           ^
/datasets/git/trace2/tr2_tgt_event.c:501:21: warning: variable name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
        struct json_writer jw = JSON_WRITER_INIT;
                           ^
/datasets/git/trace2/tr2_tgt_event.c:512:60: warning: 2 adjacent parameters of 'fn_region_enter_printf_va_fl' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void fn_region_enter_printf_va_fl(const char *file, int line,
                                                           ^~~~~~~~~
/datasets/git/trace2/tr2_tgt_event.c:512:64: note: the first parameter in the range is 'line'
static void fn_region_enter_printf_va_fl(const char *file, int line,
                                                               ^~~~
/datasets/git/trace2/tr2_tgt_event.c:513:16: note: the last parameter in the range is 'us_elapsed_absolute'
                                         uint64_t us_elapsed_absolute,
                                                  ^~~~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_tgt_event.c:512:60: note: 
static void fn_region_enter_printf_va_fl(const char *file, int line,
                                                           ^
/datasets/git/trace2/tr2_tgt_event.c:513:7: note: 'int' and 'uint64_t' may be implicitly converted: 'int' -> 'uint64_t' (as 'unsigned long'), 'uint64_t' (as 'unsigned long') -> 'int'
                                         uint64_t us_elapsed_absolute,
                                         ^
/datasets/git/trace2/tr2_tgt_event.c:513:16: warning: parameter 'us_elapsed_absolute' is unused [misc-unused-parameters]
                                         uint64_t us_elapsed_absolute,
                                                  ^
/datasets/git/trace2/tr2_tgt_event.c:517:32: warning: parameter name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
                                         const char *fmt, va_list ap)
                                                                  ^
/datasets/git/trace2/tr2_tgt_event.c:522:22: warning: variable name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
                struct json_writer jw = JSON_WRITER_INIT;
                                   ^
/datasets/git/trace2/tr2_tgt_event.c:526:36: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'intmax_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                jw_object_intmax(&jw, "nesting", ctx->nr_open_regions);
                                                 ^
/datasets/git/trace2/tr2_tgt_event.c:527:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (category)
                             ^
                              {
/datasets/git/trace2/tr2_tgt_event.c:529:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (label)
                          ^
                           {
/datasets/git/trace2/tr2_tgt_event.c:540:20: warning: 3 adjacent parameters of 'fn_region_leave_printf_va_fl' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
        const char *file, int line, uint64_t us_elapsed_absolute,
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_tgt_event.c:540:24: note: the first parameter in the range is 'line'
        const char *file, int line, uint64_t us_elapsed_absolute,
                              ^~~~
/datasets/git/trace2/tr2_tgt_event.c:541:11: note: the last parameter in the range is 'us_elapsed_region'
        uint64_t us_elapsed_region, const char *category, const char *label,
                 ^~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_tgt_event.c:540:20: note: 
        const char *file, int line, uint64_t us_elapsed_absolute,
                          ^
/datasets/git/trace2/tr2_tgt_event.c:540:30: note: 'int' and 'uint64_t' may be implicitly converted: 'int' -> 'uint64_t' (as 'unsigned long'), 'uint64_t' (as 'unsigned long') -> 'int'
        const char *file, int line, uint64_t us_elapsed_absolute,
                                    ^
/datasets/git/trace2/tr2_tgt_event.c:540:39: warning: parameter 'us_elapsed_absolute' is unused [misc-unused-parameters]
        const char *file, int line, uint64_t us_elapsed_absolute,
                                             ^
/datasets/git/trace2/tr2_tgt_event.c:542:58: warning: parameter name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
        const struct repository *repo, const char *fmt, va_list ap)
                                                                ^
/datasets/git/trace2/tr2_tgt_event.c:547:22: warning: variable name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
                struct json_writer jw = JSON_WRITER_INIT;
                                   ^
/datasets/git/trace2/tr2_tgt_event.c:548:46: warning: 1000000.0 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                double t_rel = (double)us_elapsed_region / 1000000.0;
                                                           ^
/datasets/git/trace2/tr2_tgt_event.c:552:34: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                jw_object_double(&jw, "t_rel", 6, t_rel);
                                               ^
/datasets/git/trace2/tr2_tgt_event.c:553:36: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'intmax_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                jw_object_intmax(&jw, "nesting", ctx->nr_open_regions);
                                                 ^
/datasets/git/trace2/tr2_tgt_event.c:554:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (category)
                             ^
                              {
/datasets/git/trace2/tr2_tgt_event.c:556:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (label)
                          ^
                           {
/datasets/git/trace2/tr2_tgt_event.c:566:42: warning: 3 adjacent parameters of 'fn_data_fl' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void fn_data_fl(const char *file, int line, uint64_t us_elapsed_absolute,
                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_tgt_event.c:566:46: note: the first parameter in the range is 'line'
static void fn_data_fl(const char *file, int line, uint64_t us_elapsed_absolute,
                                             ^~~~
/datasets/git/trace2/tr2_tgt_event.c:567:19: note: the last parameter in the range is 'us_elapsed_region'
                       uint64_t us_elapsed_region, const char *category,
                                ^~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_tgt_event.c:566:42: note: 
static void fn_data_fl(const char *file, int line, uint64_t us_elapsed_absolute,
                                         ^
/datasets/git/trace2/tr2_tgt_event.c:566:52: note: 'int' and 'uint64_t' may be implicitly converted: 'int' -> 'uint64_t' (as 'unsigned long'), 'uint64_t' (as 'unsigned long') -> 'int'
static void fn_data_fl(const char *file, int line, uint64_t us_elapsed_absolute,
                                                   ^
/datasets/git/trace2/tr2_tgt_event.c:574:22: warning: variable name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
                struct json_writer jw = JSON_WRITER_INIT;
                                   ^
/datasets/git/trace2/tr2_tgt_event.c:575:48: warning: 1000000.0 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                double t_abs = (double)us_elapsed_absolute / 1000000.0;
                                                             ^
/datasets/git/trace2/tr2_tgt_event.c:576:46: warning: 1000000.0 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                double t_rel = (double)us_elapsed_region / 1000000.0;
                                                           ^
/datasets/git/trace2/tr2_tgt_event.c:580:34: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                jw_object_double(&jw, "t_abs", 6, t_abs);
                                               ^
/datasets/git/trace2/tr2_tgt_event.c:581:34: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                jw_object_double(&jw, "t_rel", 6, t_rel);
                                               ^
/datasets/git/trace2/tr2_tgt_event.c:582:36: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'intmax_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                jw_object_intmax(&jw, "nesting", ctx->nr_open_regions);
                                                 ^
/datasets/git/trace2/tr2_tgt_event.c:593:47: warning: 3 adjacent parameters of 'fn_data_json_fl' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void fn_data_json_fl(const char *file, int line,
                                              ^~~~~~~~~
/datasets/git/trace2/tr2_tgt_event.c:593:51: note: the first parameter in the range is 'line'
static void fn_data_json_fl(const char *file, int line,
                                                  ^~~~
/datasets/git/trace2/tr2_tgt_event.c:595:17: note: the last parameter in the range is 'us_elapsed_region'
                            uint64_t us_elapsed_region, const char *category,
                                     ^~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_tgt_event.c:593:47: note: 
static void fn_data_json_fl(const char *file, int line,
                                              ^
/datasets/git/trace2/tr2_tgt_event.c:594:8: note: 'int' and 'uint64_t' may be implicitly converted: 'int' -> 'uint64_t' (as 'unsigned long'), 'uint64_t' (as 'unsigned long') -> 'int'
                            uint64_t us_elapsed_absolute,
                            ^
/datasets/git/trace2/tr2_tgt_event.c:602:22: warning: variable name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
                struct json_writer jw = JSON_WRITER_INIT;
                                   ^
/datasets/git/trace2/tr2_tgt_event.c:603:48: warning: 1000000.0 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                double t_abs = (double)us_elapsed_absolute / 1000000.0;
                                                             ^
/datasets/git/trace2/tr2_tgt_event.c:604:46: warning: 1000000.0 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                double t_rel = (double)us_elapsed_region / 1000000.0;
                                                           ^
/datasets/git/trace2/tr2_tgt_event.c:608:34: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                jw_object_double(&jw, "t_abs", 6, t_abs);
                                               ^
/datasets/git/trace2/tr2_tgt_event.c:609:34: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                jw_object_double(&jw, "t_rel", 6, t_rel);
                                               ^
/datasets/git/trace2/tr2_tgt_event.c:610:36: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'intmax_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                jw_object_intmax(&jw, "nesting", ctx->nr_open_regions);
                                                 ^
/datasets/git/trace2/tr2_tgt_event.c:626:21: warning: variable name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
        struct json_writer jw = JSON_WRITER_INIT;
                           ^
/datasets/git/trace2/tr2_tgt_event.c:635:37: warning: narrowing conversion from 'uint64_t' (aka 'unsigned long') to signed type 'intmax_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        jw_object_intmax(&jw, "intervals", timer->interval_count);
                                           ^
/datasets/git/trace2/tr2_tgt_event.c:636:35: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        jw_object_double(&jw, "t_total", 6, t_total);
                                         ^
/datasets/git/trace2/tr2_tgt_event.c:637:33: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        jw_object_double(&jw, "t_min", 6, t_min);
                                       ^
/datasets/git/trace2/tr2_tgt_event.c:638:33: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        jw_object_double(&jw, "t_max", 6, t_max);
                                       ^
/datasets/git/trace2/tr2_tgt_event.c:650:21: warning: variable name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
        struct json_writer jw = JSON_WRITER_INIT;
                           ^
/datasets/git/trace2/tr2_tgt_event.c:656:33: warning: narrowing conversion from 'uint64_t' (aka 'unsigned long') to signed type 'intmax_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        jw_object_intmax(&jw, "count", counter->value);
                                       ^
/datasets/git/trace2/tr2_tgt_event.c:663:16: warning: variable 'tr2_tgt_event' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
struct tr2_tgt tr2_tgt_event = {
               ^
/datasets/git/trace2/tr2_tgt_normal.c:3:1: warning: #includes are not sorted properly [llvm-include-order]
#include "run-command.h"
^        ~~~~~~~~~~~~~~~
         "quote.h"
/datasets/git/trace2/tr2_tgt_normal.c:13:23: warning: variable 'tr2dst_normal' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct tr2_dst tr2dst_normal = {
                      ^
/datasets/git/trace2/tr2_tgt_normal.c:23:12: warning: variable 'tr2env_normal_be_brief' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int tr2env_normal_be_brief;
           ^
/datasets/git/trace2/tr2_tgt_normal.c:25:1: warning: replace macro with enum [modernize-macro-to-enum]
#define TR2FMT_NORMAL_FL_WIDTH (50)
^~~~~~~~
                               =
/datasets/git/trace2/tr2_tgt_normal.c:25:9: warning: macro 'TR2FMT_NORMAL_FL_WIDTH' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define TR2FMT_NORMAL_FL_WIDTH (50)
        ^
/datasets/git/trace2/tr2_tgt_normal.c:30:6: warning: variable 'want_brief' is not initialized [cppcoreguidelines-init-variables]
        int want_brief;
            ^
                       = 0
/datasets/git/trace2/tr2_tgt_normal.c:31:14: warning: variable 'brief' is not initialized [cppcoreguidelines-init-variables]
        const char *brief;
                    ^
                          = NULL
/datasets/git/trace2/tr2_tgt_normal.c:33:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!want)
                  ^
                   {
/datasets/git/trace2/tr2_tgt_normal.c:38:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
            ((want_brief = git_parse_maybe_bool(brief)) != -1))
              ^
/datasets/git/trace2/tr2_tgt_normal.c:38:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/trace2/tr2_tgt_normal.c:38:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/trace2/tr2_tgt_normal.c:38:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            ((want_brief = git_parse_maybe_bool(brief)) != -1))
                                                               ^
                                                                {
/datasets/git/trace2/tr2_tgt_normal.c:60:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (file && *file)
                                  ^
                                   {
/datasets/git/trace2/tr2_tgt_normal.c:62:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (buf->len < TR2FMT_NORMAL_FL_WIDTH)
                ^
/datasets/git/trace2/tr2_tgt_normal.c:62:10: warning: backward branch (while loop) is ID-dependent due to member reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (buf->len < TR2FMT_NORMAL_FL_WIDTH)
                       ^
/datasets/git/trace2/tr2_tgt_normal.c:62:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (buf->len < TR2FMT_NORMAL_FL_WIDTH)
                                                         ^
                                                          {
/datasets/git/trace2/tr2_tgt_normal.c:87:43: warning: 2 adjacent parameters of 'fn_start_fl' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void fn_start_fl(const char *file, int line,
                                          ^~~~~~~~~
/datasets/git/trace2/tr2_tgt_normal.c:87:47: note: the first parameter in the range is 'line'
static void fn_start_fl(const char *file, int line,
                                              ^~~~
/datasets/git/trace2/tr2_tgt_normal.c:88:13: note: the last parameter in the range is 'us_elapsed_absolute'
                        uint64_t us_elapsed_absolute, const char **argv)
                                 ^~~~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_tgt_normal.c:87:43: note: 
static void fn_start_fl(const char *file, int line,
                                          ^
/datasets/git/trace2/tr2_tgt_normal.c:88:4: note: 'int' and 'uint64_t' may be implicitly converted: 'int' -> 'uint64_t' (as 'unsigned long'), 'uint64_t' (as 'unsigned long') -> 'int'
                        uint64_t us_elapsed_absolute, const char **argv)
                        ^
/datasets/git/trace2/tr2_tgt_normal.c:88:13: warning: parameter 'us_elapsed_absolute' is unused [misc-unused-parameters]
                        uint64_t us_elapsed_absolute, const char **argv)
                                 ^
/datasets/git/trace2/tr2_tgt_normal.c:98:42: warning: 3 adjacent parameters of 'fn_exit_fl' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void fn_exit_fl(const char *file, int line, uint64_t us_elapsed_absolute,
                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_tgt_normal.c:98:46: note: the first parameter in the range is 'line'
static void fn_exit_fl(const char *file, int line, uint64_t us_elapsed_absolute,
                                             ^~~~
/datasets/git/trace2/tr2_tgt_normal.c:99:14: note: the last parameter in the range is 'code'
                       int code)
                           ^~~~
/datasets/git/trace2/tr2_tgt_normal.c:98:42: note: 
static void fn_exit_fl(const char *file, int line, uint64_t us_elapsed_absolute,
                                         ^
/datasets/git/trace2/tr2_tgt_normal.c:98:52: note: 'int' and 'uint64_t' may be implicitly converted: 'int' -> 'uint64_t' (as 'unsigned long'), 'uint64_t' (as 'unsigned long') -> 'int'
static void fn_exit_fl(const char *file, int line, uint64_t us_elapsed_absolute,
                                                   ^
/datasets/git/trace2/tr2_tgt_normal.c:102:49: warning: 1000000.0 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        double elapsed = (double)us_elapsed_absolute / 1000000.0;
                                                       ^
/datasets/git/trace2/tr2_tgt_normal.c:109:23: warning: 2 adjacent parameters of 'fn_signal' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void fn_signal(uint64_t us_elapsed_absolute, int signo)
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_tgt_normal.c:109:32: note: the first parameter in the range is 'us_elapsed_absolute'
static void fn_signal(uint64_t us_elapsed_absolute, int signo)
                               ^~~~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_tgt_normal.c:109:57: note: the last parameter in the range is 'signo'
static void fn_signal(uint64_t us_elapsed_absolute, int signo)
                                                        ^~~~~
/datasets/git/trace2/tr2_tgt_normal.c:109:23: note: 
static void fn_signal(uint64_t us_elapsed_absolute, int signo)
                      ^
/datasets/git/trace2/tr2_tgt_normal.c:109:53: note: 'uint64_t' and 'int' may be implicitly converted: 'uint64_t' (as 'unsigned long') -> 'int', 'int' -> 'uint64_t' (as 'unsigned long')
static void fn_signal(uint64_t us_elapsed_absolute, int signo)
                                                    ^
/datasets/git/trace2/tr2_tgt_normal.c:112:49: warning: 1000000.0 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        double elapsed = (double)us_elapsed_absolute / 1000000.0;
                                                       ^
/datasets/git/trace2/tr2_tgt_normal.c:120:23: warning: 2 adjacent parameters of 'fn_atexit' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void fn_atexit(uint64_t us_elapsed_absolute, int code)
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_tgt_normal.c:120:32: note: the first parameter in the range is 'us_elapsed_absolute'
static void fn_atexit(uint64_t us_elapsed_absolute, int code)
                               ^~~~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_tgt_normal.c:120:57: note: the last parameter in the range is 'code'
static void fn_atexit(uint64_t us_elapsed_absolute, int code)
                                                        ^~~~
/datasets/git/trace2/tr2_tgt_normal.c:120:23: note: 
static void fn_atexit(uint64_t us_elapsed_absolute, int code)
                      ^
/datasets/git/trace2/tr2_tgt_normal.c:120:53: note: 'uint64_t' and 'int' may be implicitly converted: 'uint64_t' (as 'unsigned long') -> 'int', 'int' -> 'uint64_t' (as 'unsigned long')
static void fn_atexit(uint64_t us_elapsed_absolute, int code)
                                                    ^
/datasets/git/trace2/tr2_tgt_normal.c:123:49: warning: 1000000.0 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        double elapsed = (double)us_elapsed_absolute / 1000000.0;
                                                       ^
/datasets/git/trace2/tr2_tgt_normal.c:131:16: warning: parameter name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
                                   va_list ap)
                                           ^
/datasets/git/trace2/tr2_tgt_normal.c:144:15: warning: parameter name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
                           va_list ap)
                                   ^
/datasets/git/trace2/tr2_tgt_normal.c:168:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        const char *parent_name = NULL;
        ^
/datasets/git/trace2/tr2_tgt_normal.c:173:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((parent_name = *parent_names++)) {
        ^
/datasets/git/trace2/tr2_tgt_normal.c:173:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'parent_name' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((parent_name = *parent_names++)) {
               ^
/datasets/git/trace2/tr2_tgt_normal.c:176:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (parent_names && *parent_names)
                                                  ^
                                                   {
/datasets/git/trace2/tr2_tgt_normal.c:184:60: warning: 2 adjacent parameters of 'fn_command_name_fl' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void fn_command_name_fl(const char *file, int line, const char *name,
                                                           ^~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_tgt_normal.c:184:72: note: the first parameter in the range is 'name'
static void fn_command_name_fl(const char *file, int line, const char *name,
                                                                       ^~~~
/datasets/git/trace2/tr2_tgt_normal.c:185:23: note: the last parameter in the range is 'hierarchy'
                               const char *hierarchy)
                                           ^~~~~~~~~
/datasets/git/trace2/tr2_tgt_normal.c:190:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (hierarchy && *hierarchy)
                                    ^
                                     {
/datasets/git/trace2/tr2_tgt_normal.c:216:49: warning: 2 adjacent parameters of 'fn_child_start_fl' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void fn_child_start_fl(const char *file, int line,
                                                ^~~~~~~~~
/datasets/git/trace2/tr2_tgt_normal.c:216:53: note: the first parameter in the range is 'line'
static void fn_child_start_fl(const char *file, int line,
                                                    ^~~~
/datasets/git/trace2/tr2_tgt_normal.c:217:19: note: the last parameter in the range is 'us_elapsed_absolute'
                              uint64_t us_elapsed_absolute,
                                       ^~~~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_tgt_normal.c:216:49: note: 
static void fn_child_start_fl(const char *file, int line,
                                                ^
/datasets/git/trace2/tr2_tgt_normal.c:217:10: note: 'int' and 'uint64_t' may be implicitly converted: 'int' -> 'uint64_t' (as 'unsigned long'), 'uint64_t' (as 'unsigned long') -> 'int'
                              uint64_t us_elapsed_absolute,
                              ^
/datasets/git/trace2/tr2_tgt_normal.c:217:19: warning: parameter 'us_elapsed_absolute' is unused [misc-unused-parameters]
                              uint64_t us_elapsed_absolute,
                                       ^
/datasets/git/trace2/tr2_tgt_normal.c:236:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cmd->git_cmd)
                         ^
                          {
/datasets/git/trace2/tr2_tgt_normal.c:244:48: warning: 3 adjacent parameters of 'fn_child_exit_fl' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void fn_child_exit_fl(const char *file, int line,
                                               ^~~~~~~~~
/datasets/git/trace2/tr2_tgt_normal.c:244:52: note: the first parameter in the range is 'line'
static void fn_child_exit_fl(const char *file, int line,
                                                   ^~~~
/datasets/git/trace2/tr2_tgt_normal.c:245:43: note: the last parameter in the range is 'cid'
                             uint64_t us_elapsed_absolute, int cid, int pid,
                                                               ^~~
/datasets/git/trace2/tr2_tgt_normal.c:244:48: note: 
static void fn_child_exit_fl(const char *file, int line,
                                               ^
/datasets/git/trace2/tr2_tgt_normal.c:245:9: note: 'int' and 'uint64_t' may be implicitly converted: 'int' -> 'uint64_t' (as 'unsigned long'), 'uint64_t' (as 'unsigned long') -> 'int'
                             uint64_t us_elapsed_absolute, int cid, int pid,
                             ^
/datasets/git/trace2/tr2_tgt_normal.c:245:18: warning: parameter 'us_elapsed_absolute' is unused [misc-unused-parameters]
                             uint64_t us_elapsed_absolute, int cid, int pid,
                                      ^
/datasets/git/trace2/tr2_tgt_normal.c:246:9: warning: 2 adjacent parameters of 'fn_child_exit_fl' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                             int code, uint64_t us_elapsed_child)
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_tgt_normal.c:246:13: note: the first parameter in the range is 'code'
                             int code, uint64_t us_elapsed_child)
                                 ^~~~
/datasets/git/trace2/tr2_tgt_normal.c:246:28: note: the last parameter in the range is 'us_elapsed_child'
                             int code, uint64_t us_elapsed_child)
                                                ^~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_tgt_normal.c:246:9: note: 
                             int code, uint64_t us_elapsed_child)
                             ^
/datasets/git/trace2/tr2_tgt_normal.c:246:19: note: 'int' and 'uint64_t' may be implicitly converted: 'int' -> 'uint64_t' (as 'unsigned long'), 'uint64_t' (as 'unsigned long') -> 'int'
                             int code, uint64_t us_elapsed_child)
                                       ^
/datasets/git/trace2/tr2_tgt_normal.c:249:46: warning: 1000000.0 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        double elapsed = (double)us_elapsed_child / 1000000.0;
                                                    ^
/datasets/git/trace2/tr2_tgt_normal.c:257:49: warning: 3 adjacent parameters of 'fn_child_ready_fl' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void fn_child_ready_fl(const char *file, int line,
                                                ^~~~~~~~~
/datasets/git/trace2/tr2_tgt_normal.c:257:53: note: the first parameter in the range is 'line'
static void fn_child_ready_fl(const char *file, int line,
                                                    ^~~~
/datasets/git/trace2/tr2_tgt_normal.c:258:44: note: the last parameter in the range is 'cid'
                              uint64_t us_elapsed_absolute, int cid, int pid,
                                                                ^~~
/datasets/git/trace2/tr2_tgt_normal.c:257:49: note: 
static void fn_child_ready_fl(const char *file, int line,
                                                ^
/datasets/git/trace2/tr2_tgt_normal.c:258:10: note: 'int' and 'uint64_t' may be implicitly converted: 'int' -> 'uint64_t' (as 'unsigned long'), 'uint64_t' (as 'unsigned long') -> 'int'
                              uint64_t us_elapsed_absolute, int cid, int pid,
                              ^
/datasets/git/trace2/tr2_tgt_normal.c:258:19: warning: parameter 'us_elapsed_absolute' is unused [misc-unused-parameters]
                              uint64_t us_elapsed_absolute, int cid, int pid,
                                       ^
/datasets/git/trace2/tr2_tgt_normal.c:262:46: warning: 1000000.0 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        double elapsed = (double)us_elapsed_child / 1000000.0;
                                                    ^
/datasets/git/trace2/tr2_tgt_normal.c:270:42: warning: 3 adjacent parameters of 'fn_exec_fl' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void fn_exec_fl(const char *file, int line, uint64_t us_elapsed_absolute,
                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_tgt_normal.c:270:46: note: the first parameter in the range is 'line'
static void fn_exec_fl(const char *file, int line, uint64_t us_elapsed_absolute,
                                             ^~~~
/datasets/git/trace2/tr2_tgt_normal.c:271:14: note: the last parameter in the range is 'exec_id'
                       int exec_id, const char *exe, const char **argv)
                           ^~~~~~~
/datasets/git/trace2/tr2_tgt_normal.c:270:42: note: 
static void fn_exec_fl(const char *file, int line, uint64_t us_elapsed_absolute,
                                         ^
/datasets/git/trace2/tr2_tgt_normal.c:270:52: note: 'int' and 'uint64_t' may be implicitly converted: 'int' -> 'uint64_t' (as 'unsigned long'), 'uint64_t' (as 'unsigned long') -> 'int'
static void fn_exec_fl(const char *file, int line, uint64_t us_elapsed_absolute,
                                                   ^
/datasets/git/trace2/tr2_tgt_normal.c:270:61: warning: parameter 'us_elapsed_absolute' is unused [misc-unused-parameters]
static void fn_exec_fl(const char *file, int line, uint64_t us_elapsed_absolute,
                                                            ^
/datasets/git/trace2/tr2_tgt_normal.c:285:49: warning: 3 adjacent parameters of 'fn_exec_result_fl' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void fn_exec_result_fl(const char *file, int line,
                                                ^~~~~~~~~
/datasets/git/trace2/tr2_tgt_normal.c:285:53: note: the first parameter in the range is 'line'
static void fn_exec_result_fl(const char *file, int line,
                                                    ^~~~
/datasets/git/trace2/tr2_tgt_normal.c:286:44: note: the last parameter in the range is 'exec_id'
                              uint64_t us_elapsed_absolute, int exec_id,
                                                                ^~~~~~~
/datasets/git/trace2/tr2_tgt_normal.c:285:49: note: 
static void fn_exec_result_fl(const char *file, int line,
                                                ^
/datasets/git/trace2/tr2_tgt_normal.c:286:10: note: 'int' and 'uint64_t' may be implicitly converted: 'int' -> 'uint64_t' (as 'unsigned long'), 'uint64_t' (as 'unsigned long') -> 'int'
                              uint64_t us_elapsed_absolute, int exec_id,
                              ^
/datasets/git/trace2/tr2_tgt_normal.c:286:19: warning: parameter 'us_elapsed_absolute' is unused [misc-unused-parameters]
                              uint64_t us_elapsed_absolute, int exec_id,
                                       ^
/datasets/git/trace2/tr2_tgt_normal.c:292:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (code > 0)
                     ^
                      {
/datasets/git/trace2/tr2_tgt_normal.c:293:40: warning: function is not thread safe [concurrency-mt-unsafe]
                strbuf_addf(&buf_payload, " err:%s", strerror(code));
                                                     ^
/datasets/git/trace2/tr2_tgt_normal.c:322:47: warning: 2 adjacent parameters of 'fn_printf_va_fl' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void fn_printf_va_fl(const char *file, int line,
                                              ^~~~~~~~~
/datasets/git/trace2/tr2_tgt_normal.c:322:51: note: the first parameter in the range is 'line'
static void fn_printf_va_fl(const char *file, int line,
                                                  ^~~~
/datasets/git/trace2/tr2_tgt_normal.c:323:17: note: the last parameter in the range is 'us_elapsed_absolute'
                            uint64_t us_elapsed_absolute, const char *fmt,
                                     ^~~~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_tgt_normal.c:322:47: note: 
static void fn_printf_va_fl(const char *file, int line,
                                              ^
/datasets/git/trace2/tr2_tgt_normal.c:323:8: note: 'int' and 'uint64_t' may be implicitly converted: 'int' -> 'uint64_t' (as 'unsigned long'), 'uint64_t' (as 'unsigned long') -> 'int'
                            uint64_t us_elapsed_absolute, const char *fmt,
                            ^
/datasets/git/trace2/tr2_tgt_normal.c:323:17: warning: parameter 'us_elapsed_absolute' is unused [misc-unused-parameters]
                            uint64_t us_elapsed_absolute, const char *fmt,
                                     ^
/datasets/git/trace2/tr2_tgt_normal.c:324:16: warning: parameter name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
                            va_list ap)
                                    ^
/datasets/git/trace2/tr2_tgt_normal.c:369:16: warning: variable 'tr2_tgt_normal' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
struct tr2_tgt tr2_tgt_normal = {
               ^
/datasets/git/trace2/tr2_tgt_perf.c:3:1: warning: #includes are not sorted properly [llvm-include-order]
#include "run-command.h"
^        ~~~~~~~~~~~~~~~
         "json-writer.h"
/datasets/git/trace2/tr2_tgt_perf.c:15:23: warning: variable 'tr2dst_perf' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct tr2_dst tr2dst_perf = {
                      ^
/datasets/git/trace2/tr2_tgt_perf.c:25:12: warning: variable 'tr2env_perf_be_brief' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int tr2env_perf_be_brief;
           ^
/datasets/git/trace2/tr2_tgt_perf.c:27:1: warning: replace macro with enum [modernize-macro-to-enum]
#define TR2FMT_PERF_FL_WIDTH (28)
^~~~~~~~
                             =   ,
/datasets/git/trace2/tr2_tgt_perf.c:27:9: warning: macro 'TR2FMT_PERF_FL_WIDTH' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define TR2FMT_PERF_FL_WIDTH (28)
        ^
/datasets/git/trace2/tr2_tgt_perf.c:28:9: warning: macro 'TR2FMT_PERF_MAX_EVENT_NAME' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define TR2FMT_PERF_MAX_EVENT_NAME (12)
        ^
/datasets/git/trace2/tr2_tgt_perf.c:29:9: warning: macro 'TR2FMT_PERF_REPO_WIDTH' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define TR2FMT_PERF_REPO_WIDTH (3)
        ^
/datasets/git/trace2/tr2_tgt_perf.c:30:9: warning: macro 'TR2FMT_PERF_CATEGORY_WIDTH' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define TR2FMT_PERF_CATEGORY_WIDTH (12)
        ^
/datasets/git/trace2/tr2_tgt_perf.c:38:6: warning: variable 'want_brief' is not initialized [cppcoreguidelines-init-variables]
        int want_brief;
            ^
                       = 0
/datasets/git/trace2/tr2_tgt_perf.c:39:14: warning: variable 'brief' is not initialized [cppcoreguidelines-init-variables]
        const char *brief;
                    ^
                          = NULL
/datasets/git/trace2/tr2_tgt_perf.c:41:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!want)
                  ^
                   {
/datasets/git/trace2/tr2_tgt_perf.c:46:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
            ((want_brief = git_parse_maybe_bool(brief)) != -1))
              ^
/datasets/git/trace2/tr2_tgt_perf.c:46:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/trace2/tr2_tgt_perf.c:46:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/trace2/tr2_tgt_perf.c:46:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            ((want_brief = git_parse_maybe_bool(brief)) != -1))
                                                               ^
                                                                {
/datasets/git/trace2/tr2_tgt_perf.c:68:9: warning: 2 adjacent parameters of 'perf_fmt_prepare' of similar type ('uint64_t *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                             uint64_t *p_us_elapsed_absolute,
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_tgt_perf.c:68:19: note: the first parameter in the range is 'p_us_elapsed_absolute'
                             uint64_t *p_us_elapsed_absolute,
                                       ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_tgt_perf.c:69:19: note: the last parameter in the range is 'p_us_elapsed_relative'
                             uint64_t *p_us_elapsed_relative,
                                       ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_tgt_perf.c:68:19: warning: pointer parameter 'p_us_elapsed_absolute' can be pointer to const [readability-non-const-parameter]
                             uint64_t *p_us_elapsed_absolute,
                                       ^
                             const 
/datasets/git/trace2/tr2_tgt_perf.c:69:19: warning: pointer parameter 'p_us_elapsed_relative' can be pointer to const [readability-non-const-parameter]
                             uint64_t *p_us_elapsed_relative,
                                       ^
                             const 
/datasets/git/trace2/tr2_tgt_perf.c:72:6: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int len;
            ^
                = 0
/datasets/git/trace2/tr2_tgt_perf.c:78:10: warning: variable 'fl_end_col' is not initialized [cppcoreguidelines-init-variables]
                size_t fl_end_col;
                       ^
                                  = 0
/datasets/git/trace2/tr2_tgt_perf.c:91:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (buf_fl.len <= TR2FMT_PERF_FL_WIDTH)
                                                               ^
                                                                {
/datasets/git/trace2/tr2_tgt_perf.c:104:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (buf->len < fl_end_col)
                ^
/datasets/git/trace2/tr2_tgt_perf.c:104:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'fl_end_col' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (buf->len < fl_end_col)
                       ^
/datasets/git/trace2/tr2_tgt_perf.c:104:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (buf->len < fl_end_col)
                                             ^
                                              {
/datasets/git/trace2/tr2_tgt_perf.c:115:8: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        len = buf->len + TR2FMT_PERF_REPO_WIDTH;
              ^
/datasets/git/trace2/tr2_tgt_perf.c:116:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repo)
                 ^
                  {
/datasets/git/trace2/tr2_tgt_perf.c:118:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (buf->len < len)
        ^
/datasets/git/trace2/tr2_tgt_perf.c:118:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (buf->len < len)
               ^
/datasets/git/trace2/tr2_tgt_perf.c:118:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (buf->len < len)
                              ^
                               {
/datasets/git/trace2/tr2_tgt_perf.c:122:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (p_us_elapsed_absolute)
                                  ^
                                   {
/datasets/git/trace2/tr2_tgt_perf.c:124:45: warning: 1000000.0 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            ((double)(*p_us_elapsed_absolute)) / 1000000.0);
                                                                 ^
/datasets/git/trace2/tr2_tgt_perf.c:125:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/trace2/tr2_tgt_perf.c:128:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (p_us_elapsed_relative)
                                  ^
                                   {
/datasets/git/trace2/tr2_tgt_perf.c:130:45: warning: 1000000.0 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                            ((double)(*p_us_elapsed_relative)) / 1000000.0);
                                                                 ^
/datasets/git/trace2/tr2_tgt_perf.c:131:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/trace2/tr2_tgt_perf.c:137:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ctx->nr_open_regions > 0)
                                     ^
                                      {
/datasets/git/trace2/tr2_tgt_perf.c:184:52: warning: 2 adjacent parameters of 'fn_exit_fl' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void fn_exit_fl(const char *file, int line, uint64_t us_elapsed_absolute,
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_tgt_perf.c:184:61: note: the first parameter in the range is 'us_elapsed_absolute'
static void fn_exit_fl(const char *file, int line, uint64_t us_elapsed_absolute,
                                                            ^~~~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_tgt_perf.c:185:14: note: the last parameter in the range is 'code'
                       int code)
                           ^~~~
/datasets/git/trace2/tr2_tgt_perf.c:184:52: note: 
static void fn_exit_fl(const char *file, int line, uint64_t us_elapsed_absolute,
                                                   ^
/datasets/git/trace2/tr2_tgt_perf.c:185:10: note: 'uint64_t' and 'int' may be implicitly converted: 'uint64_t' (as 'unsigned long') -> 'int', 'int' -> 'uint64_t' (as 'unsigned long')
                       int code)
                       ^
/datasets/git/trace2/tr2_tgt_perf.c:197:23: warning: 2 adjacent parameters of 'fn_signal' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void fn_signal(uint64_t us_elapsed_absolute, int signo)
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_tgt_perf.c:197:32: note: the first parameter in the range is 'us_elapsed_absolute'
static void fn_signal(uint64_t us_elapsed_absolute, int signo)
                               ^~~~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_tgt_perf.c:197:57: note: the last parameter in the range is 'signo'
static void fn_signal(uint64_t us_elapsed_absolute, int signo)
                                                        ^~~~~
/datasets/git/trace2/tr2_tgt_perf.c:197:23: note: 
static void fn_signal(uint64_t us_elapsed_absolute, int signo)
                      ^
/datasets/git/trace2/tr2_tgt_perf.c:197:53: note: 'uint64_t' and 'int' may be implicitly converted: 'uint64_t' (as 'unsigned long') -> 'int', 'int' -> 'uint64_t' (as 'unsigned long')
static void fn_signal(uint64_t us_elapsed_absolute, int signo)
                                                    ^
/datasets/git/trace2/tr2_tgt_perf.c:209:23: warning: 2 adjacent parameters of 'fn_atexit' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void fn_atexit(uint64_t us_elapsed_absolute, int code)
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_tgt_perf.c:209:32: note: the first parameter in the range is 'us_elapsed_absolute'
static void fn_atexit(uint64_t us_elapsed_absolute, int code)
                               ^~~~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_tgt_perf.c:209:57: note: the last parameter in the range is 'code'
static void fn_atexit(uint64_t us_elapsed_absolute, int code)
                                                        ^~~~
/datasets/git/trace2/tr2_tgt_perf.c:209:23: note: 
static void fn_atexit(uint64_t us_elapsed_absolute, int code)
                      ^
/datasets/git/trace2/tr2_tgt_perf.c:209:53: note: 'uint64_t' and 'int' may be implicitly converted: 'uint64_t' (as 'unsigned long') -> 'int', 'int' -> 'uint64_t' (as 'unsigned long')
static void fn_atexit(uint64_t us_elapsed_absolute, int code)
                                                    ^
/datasets/git/trace2/tr2_tgt_perf.c:222:16: warning: parameter name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
                                   va_list ap)
                                           ^
/datasets/git/trace2/tr2_tgt_perf.c:235:15: warning: parameter name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
                           va_list ap)
                                   ^
/datasets/git/trace2/tr2_tgt_perf.c:274:60: warning: 2 adjacent parameters of 'fn_command_name_fl' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void fn_command_name_fl(const char *file, int line, const char *name,
                                                           ^~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_tgt_perf.c:274:72: note: the first parameter in the range is 'name'
static void fn_command_name_fl(const char *file, int line, const char *name,
                                                                       ^~~~
/datasets/git/trace2/tr2_tgt_perf.c:275:23: note: the last parameter in the range is 'hierarchy'
                               const char *hierarchy)
                                           ^~~~~~~~~
/datasets/git/trace2/tr2_tgt_perf.c:281:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (hierarchy && *hierarchy)
                                    ^
                                     {
/datasets/git/trace2/tr2_tgt_perf.c:341:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cmd->args.nr)
                                 ^
                                  {
/datasets/git/trace2/tr2_tgt_perf.c:353:9: warning: 2 adjacent parameters of 'fn_child_exit_fl' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                             uint64_t us_elapsed_absolute, int cid, int pid,
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_tgt_perf.c:353:18: note: the first parameter in the range is 'us_elapsed_absolute'
                             uint64_t us_elapsed_absolute, int cid, int pid,
                                      ^~~~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_tgt_perf.c:353:43: note: the last parameter in the range is 'cid'
                             uint64_t us_elapsed_absolute, int cid, int pid,
                                                               ^~~
/datasets/git/trace2/tr2_tgt_perf.c:353:9: note: 
                             uint64_t us_elapsed_absolute, int cid, int pid,
                             ^
/datasets/git/trace2/tr2_tgt_perf.c:353:39: note: 'uint64_t' and 'int' may be implicitly converted: 'uint64_t' (as 'unsigned long') -> 'int', 'int' -> 'uint64_t' (as 'unsigned long')
                             uint64_t us_elapsed_absolute, int cid, int pid,
                                                           ^
/datasets/git/trace2/tr2_tgt_perf.c:354:9: warning: 2 adjacent parameters of 'fn_child_exit_fl' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                             int code, uint64_t us_elapsed_child)
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_tgt_perf.c:354:13: note: the first parameter in the range is 'code'
                             int code, uint64_t us_elapsed_child)
                                 ^~~~
/datasets/git/trace2/tr2_tgt_perf.c:354:28: note: the last parameter in the range is 'us_elapsed_child'
                             int code, uint64_t us_elapsed_child)
                                                ^~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_tgt_perf.c:354:9: note: 
                             int code, uint64_t us_elapsed_child)
                             ^
/datasets/git/trace2/tr2_tgt_perf.c:354:19: note: 'int' and 'uint64_t' may be implicitly converted: 'int' -> 'uint64_t' (as 'unsigned long'), 'uint64_t' (as 'unsigned long') -> 'int'
                             int code, uint64_t us_elapsed_child)
                                       ^
/datasets/git/trace2/tr2_tgt_perf.c:367:10: warning: 2 adjacent parameters of 'fn_child_ready_fl' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                              uint64_t us_elapsed_absolute, int cid, int pid,
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_tgt_perf.c:367:19: note: the first parameter in the range is 'us_elapsed_absolute'
                              uint64_t us_elapsed_absolute, int cid, int pid,
                                       ^~~~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_tgt_perf.c:367:44: note: the last parameter in the range is 'cid'
                              uint64_t us_elapsed_absolute, int cid, int pid,
                                                                ^~~
/datasets/git/trace2/tr2_tgt_perf.c:367:10: note: 
                              uint64_t us_elapsed_absolute, int cid, int pid,
                              ^
/datasets/git/trace2/tr2_tgt_perf.c:367:40: note: 'uint64_t' and 'int' may be implicitly converted: 'uint64_t' (as 'unsigned long') -> 'int', 'int' -> 'uint64_t' (as 'unsigned long')
                              uint64_t us_elapsed_absolute, int cid, int pid,
                                                            ^
/datasets/git/trace2/tr2_tgt_perf.c:403:52: warning: 2 adjacent parameters of 'fn_exec_fl' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void fn_exec_fl(const char *file, int line, uint64_t us_elapsed_absolute,
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_tgt_perf.c:403:61: note: the first parameter in the range is 'us_elapsed_absolute'
static void fn_exec_fl(const char *file, int line, uint64_t us_elapsed_absolute,
                                                            ^~~~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_tgt_perf.c:404:14: note: the last parameter in the range is 'exec_id'
                       int exec_id, const char *exe, const char **argv)
                           ^~~~~~~
/datasets/git/trace2/tr2_tgt_perf.c:403:52: note: 
static void fn_exec_fl(const char *file, int line, uint64_t us_elapsed_absolute,
                                                   ^
/datasets/git/trace2/tr2_tgt_perf.c:404:10: note: 'uint64_t' and 'int' may be implicitly converted: 'uint64_t' (as 'unsigned long') -> 'int', 'int' -> 'uint64_t' (as 'unsigned long')
                       int exec_id, const char *exe, const char **argv)
                       ^
/datasets/git/trace2/tr2_tgt_perf.c:413:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (argv[0])
                            ^
                             {
/datasets/git/trace2/tr2_tgt_perf.c:425:10: warning: 2 adjacent parameters of 'fn_exec_result_fl' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                              uint64_t us_elapsed_absolute, int exec_id,
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_tgt_perf.c:425:19: note: the first parameter in the range is 'us_elapsed_absolute'
                              uint64_t us_elapsed_absolute, int exec_id,
                                       ^~~~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_tgt_perf.c:425:44: note: the last parameter in the range is 'exec_id'
                              uint64_t us_elapsed_absolute, int exec_id,
                                                                ^~~~~~~
/datasets/git/trace2/tr2_tgt_perf.c:425:10: note: 
                              uint64_t us_elapsed_absolute, int exec_id,
                              ^
/datasets/git/trace2/tr2_tgt_perf.c:425:40: note: 'uint64_t' and 'int' may be implicitly converted: 'uint64_t' (as 'unsigned long') -> 'int', 'int' -> 'uint64_t' (as 'unsigned long')
                              uint64_t us_elapsed_absolute, int exec_id,
                                                            ^
/datasets/git/trace2/tr2_tgt_perf.c:432:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (code > 0)
                     ^
                      {
/datasets/git/trace2/tr2_tgt_perf.c:433:40: warning: function is not thread safe [concurrency-mt-unsafe]
                strbuf_addf(&buf_payload, " err:%s", strerror(code));
                                                     ^
/datasets/git/trace2/tr2_tgt_perf.c:474:7: warning: 2 adjacent parameters of 'fn_region_enter_printf_va_fl' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                         const char *category,
                                         ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_tgt_perf.c:474:19: note: the first parameter in the range is 'category'
                                         const char *category,
                                                     ^~~~~~~~
/datasets/git/trace2/tr2_tgt_perf.c:475:19: note: the last parameter in the range is 'label'
                                         const char *label,
                                                     ^~~~~
/datasets/git/trace2/tr2_tgt_perf.c:477:32: warning: parameter name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
                                         const char *fmt, va_list ap)
                                                                  ^
/datasets/git/trace2/tr2_tgt_perf.c:482:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (label)
                  ^
                   {
/datasets/git/trace2/tr2_tgt_perf.c:496:30: warning: 2 adjacent parameters of 'fn_region_leave_printf_va_fl' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
        uint64_t us_elapsed_region, const char *category, const char *label,
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/trace2/tr2_tgt_perf.c:496:42: note: the first parameter in the range is 'category'
        uint64_t us_elapsed_region, const char *category, const char *label,
                                                ^~~~~~~~
/datasets/git/trace2/tr2_tgt_perf.c:496:64: note: the last parameter in the range is 'label'
        uint64_t us_elapsed_region, const char *category, const char *label,
                                                                      ^~~~~
/datasets/git/trace2/tr2_tgt_perf.c:497:58: warning: parameter name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
        const struct repository *repo, const char *fmt, va_list ap)
                                                                ^
/datasets/git/trace2/tr2_tgt_perf.c:502:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (label)
                  ^
                   {
/datasets/git/trace2/tr2_tgt_perf.c:547:16: warning: parameter name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
                            va_list ap)
                                    ^
/datasets/git/trace2/tr2_tgt_perf.c:597:16: warning: variable 'tr2_tgt_perf' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
struct tr2_tgt tr2_tgt_perf = {
               ^
/datasets/git/trace2/tr2_tls.c:10:1: warning: replace macro with enum [modernize-macro-to-enum]
#define TR2_REGION_NESTING_INITIAL_SIZE (100)
^~~~~~~~
                                        =
/datasets/git/trace2/tr2_tls.c:10:9: warning: macro 'TR2_REGION_NESTING_INITIAL_SIZE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define TR2_REGION_NESTING_INITIAL_SIZE (100)
        ^
/datasets/git/trace2/tr2_tls.c:12:34: warning: variable 'tr2tls_thread_main' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct tr2tls_thread_ctx *tr2tls_thread_main;
                                 ^
/datasets/git/trace2/tr2_tls.c:12:34: warning: variable 'tr2tls_thread_main' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/trace2/tr2_tls.c:13:17: warning: variable 'tr2tls_us_start_process' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static uint64_t tr2tls_us_start_process;
                ^
/datasets/git/trace2/tr2_tls.c:15:24: warning: variable 'tr2tls_mutex' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static pthread_mutex_t tr2tls_mutex;
                       ^
/datasets/git/trace2/tr2_tls.c:16:22: warning: variable 'tr2tls_key' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static pthread_key_t tr2tls_key;
                     ^
/datasets/git/trace2/tr2_tls.c:18:12: warning: variable 'tr2_next_thread_id' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int tr2_next_thread_id; /* modify under lock */
           ^
/datasets/git/trace2/tr2_tls.c:22:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (tr2tls_us_start_process)
                                    ^
                                     {
/datasets/git/trace2/tr2_tls.c:31:44: warning: 1000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        tr2tls_us_start_process = getnanotime() / 1000;
                                                  ^
/datasets/git/trace2/tr2_tls.c:52:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ctx->thread_id)
                           ^
                            {
/datasets/git/trace2/tr2_tls.c:55:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (buf.len > TR2_MAX_THREAD_NAME)
                                          ^
                                           {
/datasets/git/trace2/tr2_tls.c:66:28: warning: variable 'ctx' is not initialized [cppcoreguidelines-init-variables]
        struct tr2tls_thread_ctx *ctx;
                                  ^
                                      = NULL
/datasets/git/trace2/tr2_tls.c:68:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!HAVE_THREADS)
                          ^
                           {
/datasets/git/trace2/tr2_tls.c:78:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ctx)
                 ^
                  {
/datasets/git/trace2/tr2_tls.c:79:55: warning: 1000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                ctx = tr2tls_create_self("unknown", getnanotime() / 1000);
                                                                    ^
/datasets/git/trace2/tr2_tls.c:86:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!HAVE_THREADS)
                          ^
                           {
/datasets/git/trace2/tr2_tls.c:94:28: warning: variable 'ctx' is not initialized [cppcoreguidelines-init-variables]
        struct tr2tls_thread_ctx *ctx;
                                  ^
                                      = NULL
/datasets/git/trace2/tr2_tls.c:109:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(ctx->array_us_start, ctx->nr_open_regions + 1, ctx->alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/trace2/tr2_tls.c:117:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ctx->nr_open_regions)
                                  ^
                                   {
/datasets/git/trace2/tr2_tls.c:127:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (ctx->nr_open_regions > 1)
        ^
/datasets/git/trace2/tr2_tls.c:127:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (ctx->nr_open_regions > 1)
                                        ^
                                         {
/datasets/git/trace2/tr2_tls.c:131:46: warning: parameter name 'us' is too short, expected at least 3 characters [readability-identifier-length]
uint64_t tr2tls_region_elasped_self(uint64_t us)
                                             ^
/datasets/git/trace2/tr2_tls.c:133:28: warning: variable 'ctx' is not initialized [cppcoreguidelines-init-variables]
        struct tr2tls_thread_ctx *ctx;
                                  ^
                                      = NULL
/datasets/git/trace2/tr2_tls.c:134:11: warning: variable 'us_start' is not initialized [cppcoreguidelines-init-variables]
        uint64_t us_start;
                 ^
                          = 0
/datasets/git/trace2/tr2_tls.c:137:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ctx->nr_open_regions)
                                  ^
                                   {
/datasets/git/trace2/tr2_tls.c:145:43: warning: parameter name 'us' is too short, expected at least 3 characters [readability-identifier-length]
uint64_t tr2tls_absolute_elapsed(uint64_t us)
                                          ^
/datasets/git/trace2/tr2_tls.c:147:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!tr2tls_thread_main)
                                ^
                                 {
/datasets/git/trace2/tr2_tls.c:173:34: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
int tr2tls_locked_increment(int *p)
                                 ^
/datasets/git/trace2/tr2_tls.c:175:6: warning: variable 'current_value' is not initialized [cppcoreguidelines-init-variables]
        int current_value;
            ^
                          = 0
trace2/tr2_tmr.c:14:31: warning: variable 'final_timer_block' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct tr2_timer_block final_timer_block; /* access under tr2tls_mutex */
                              ^
trace2/tr2_tmr.c:22:34: warning: variable 'tr2_timer_metadata' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct tr2_timer_metadata tr2_timer_metadata[TRACE2_NUMBER_OF_TIMERS] = {
                                 ^
trace2/tr2_tmr.c:40:20: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
        struct tr2_timer *t = &ctx->timer_block.timer[tid];
                          ^
/datasets/git/trace2/tr2_tmr.c:43:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (t->recursion_count > 1)
                                   ^
                                    {
/datasets/git/trace2/tr2_tmr.c:52:20: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
        struct tr2_timer *t = &ctx->timer_block.timer[tid];
                          ^
/datasets/git/trace2/tr2_tmr.c:53:11: warning: variable 'ns_now' is not initialized [cppcoreguidelines-init-variables]
        uint64_t ns_now;
                 ^
                        = 0
/datasets/git/trace2/tr2_tmr.c:54:11: warning: variable 'ns_interval' is not initialized [cppcoreguidelines-init-variables]
        uint64_t ns_interval;
                 ^
                             = 0
/datasets/git/trace2/tr2_tmr.c:59:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (t->recursion_count)
                               ^
                                {
/datasets/git/trace2/tr2_tmr.c:84:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (tr2_timer_metadata[tid].want_per_thread_events)
                                                           ^
                                                            {
/datasets/git/trace2/tr2_tmr.c:91:23: warning: variable 'tid' is not initialized [cppcoreguidelines-init-variables]
        enum trace2_timer_id tid;
                             ^
/datasets/git/trace2/tr2_tmr.c:93:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ctx->used_any_timer)
                                 ^
                                  {
/datasets/git/trace2/tr2_tmr.c:101:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (tid = 0; tid < TRACE2_NUMBER_OF_TIMERS; tid++) {
        ^
/datasets/git/trace2/tr2_tmr.c:103:21: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
                struct tr2_timer *t = &ctx->timer_block.timer[tid];
                                  ^
/datasets/git/trace2/tr2_tmr.c:125:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!t->interval_count)
                                       ^
                                        {
/datasets/git/trace2/tr2_tmr.c:151:23: warning: variable 'tid' is not initialized [cppcoreguidelines-init-variables]
        enum trace2_timer_id tid;
                             ^
/datasets/git/trace2/tr2_tmr.c:153:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ctx->used_any_per_thread_timer)
                                            ^
                                             {
/datasets/git/trace2/tr2_tmr.c:160:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (tid = 0; tid < TRACE2_NUMBER_OF_TIMERS; tid++)
        ^
/datasets/git/trace2/tr2_tmr.c:160:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (tid = 0; tid < TRACE2_NUMBER_OF_TIMERS; tid++)
                                                           ^
                                                            {
/datasets/git/trace2/tr2_tmr.c:162:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    ctx->timer_block.timer[tid].interval_count)
                                                               ^
                                                                {
/datasets/git/trace2/tr2_tmr.c:170:23: warning: variable 'tid' is not initialized [cppcoreguidelines-init-variables]
        enum trace2_timer_id tid;
                             ^
/datasets/git/trace2/tr2_tmr.c:177:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (tid = 0; tid < TRACE2_NUMBER_OF_TIMERS; tid++)
        ^
/datasets/git/trace2/tr2_tmr.c:177:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (tid = 0; tid < TRACE2_NUMBER_OF_TIMERS; tid++)
                                                           ^
                                                            {
/datasets/git/trace2/tr2_tmr.c:178:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (final_timer_block.timer[tid].interval_count)
                                                                ^
                                                                 {
/datasets/git/trailer.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "commit.h"
/datasets/git/trailer.c:13:8: warning: accessing fields in struct 'conf_info' is inefficient due to padding; only needs 44 bytes but is using 48 bytes [altera-struct-pack-align]
struct conf_info {
       ^
/datasets/git/trailer.c:13:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'conf_info'
/datasets/git/trailer.c:13:8: warning: accessing fields in struct 'conf_info' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct conf_info {
       ^
/datasets/git/trailer.c:13:8: note: use "__attribute__((aligned(64)))" to align struct 'conf_info' to 64 bytes
/datasets/git/trailer.c:23:25: warning: variable 'default_conf_info' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct conf_info default_conf_info;
                        ^
/datasets/git/trailer.c:25:8: warning: accessing fields in struct 'trailer_item' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct trailer_item {
       ^
/datasets/git/trailer.c:25:8: note: use "__attribute__((aligned(32)))" to align struct 'trailer_item' to 32 bytes
/datasets/git/trailer.c:35:8: warning: accessing fields in struct 'arg_item' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct arg_item {
       ^
/datasets/git/trailer.c:35:8: note: use "__attribute__((aligned(128)))" to align struct 'arg_item' to 128 bytes
/datasets/git/trailer.c:42:18: warning: variable 'conf_head' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static LIST_HEAD(conf_head);
                 ^
/datasets/git/trailer.c:44:14: warning: variable 'separators' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char *separators = ":";
             ^
/datasets/git/trailer.c:44:14: warning: variable 'separators' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/trailer.c:46:12: warning: variable 'configured' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int configured;
           ^
/datasets/git/trailer.c:50:20: warning: variable 'git_generated_prefixes' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *git_generated_prefixes[] = {
                   ^
/datasets/git/trailer.c:58:7: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        for (pos = is_reverse ? (head)->prev : (head)->next; \
             ^
             (  )
/datasets/git/trailer.c:58:13: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        for (pos = is_reverse ? (head)->prev : (head)->next; \
                   ^
                   (         )
/datasets/git/trailer.c:59:3: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
                pos != (head); \
                ^
                (  )
/datasets/git/trailer.c:60:3: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
                pos = is_reverse ? pos->prev : pos->next)
                ^
                (  )
/datasets/git/trailer.c:60:9: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
                pos = is_reverse ? pos->prev : pos->next)
                      ^
                      (         )
/datasets/git/trailer.c:60:22: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
                pos = is_reverse ? pos->prev : pos->next)
                                   ^
                                   (  )
/datasets/git/trailer.c:60:34: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
                pos = is_reverse ? pos->prev : pos->next)
                                               ^
                                               (  )
/datasets/git/trailer.c:75:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (len > 0 && !isalnum(token[len - 1]))
        ^
/datasets/git/trailer.c:75:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        while (len > 0 && !isalnum(token[len - 1]))
                           ^
/datasets/git/./git-compat-util.h:1220:20: note: expanded from macro 'isalnum'
#define isalnum(x) sane_istest(x,GIT_ALPHA | GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/trailer.c:75:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (len > 0 && !isalnum(token[len - 1]))
                                                   ^
                                                    {
/datasets/git/trailer.c:80:44: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static int same_token(struct trailer_item *a, struct arg_item *b)
                                           ^
/datasets/git/trailer.c:80:64: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static int same_token(struct trailer_item *a, struct arg_item *b)
                                                               ^
/datasets/git/trailer.c:82:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t a_len, b_len, min_len;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/trailer.c:82:9: warning: variable 'a_len' is not initialized [cppcoreguidelines-init-variables]
        size_t a_len, b_len, min_len;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/trailer.c:82:16: warning: variable 'b_len' is not initialized [cppcoreguidelines-init-variables]
        size_t a_len, b_len, min_len;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/trailer.c:82:23: warning: variable 'min_len' is not initialized [cppcoreguidelines-init-variables]
        size_t a_len, b_len, min_len;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/trailer.c:84:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!a->token)
                      ^
                       {
/datasets/git/trailer.c:94:44: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static int same_value(struct trailer_item *a, struct arg_item *b)
                                           ^
/datasets/git/trailer.c:94:64: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static int same_value(struct trailer_item *a, struct arg_item *b)
                                                               ^
/datasets/git/trailer.c:99:46: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static int same_trailer(struct trailer_item *a, struct arg_item *b)
                                             ^
/datasets/git/trailer.c:99:66: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static int same_trailer(struct trailer_item *a, struct arg_item *b)
                                                                 ^
/datasets/git/trailer.c:106:14: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
        const char *s = str;
                    ^
/datasets/git/trailer.c:107:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*s && *s != '\n' && isspace(*s))
        ^
/datasets/git/trailer.c:107:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 's' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (*s && *s != '\n' && isspace(*s))
               ^
/datasets/git/trailer.c:107:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        while (*s && *s != '\n' && isspace(*s))
                                   ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/trailer.c:107:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (*s && *s != '\n' && isspace(*s))
                                               ^
                                                {
/datasets/git/trailer.c:112:50: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static inline void strbuf_replace(struct strbuf *sb, const char *a, const char *b)
                                                 ^
/datasets/git/trailer.c:112:66: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static inline void strbuf_replace(struct strbuf *sb, const char *a, const char *b)
                                                                 ^
/datasets/git/trailer.c:112:81: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static inline void strbuf_replace(struct strbuf *sb, const char *a, const char *b)
                                                                                ^
/datasets/git/trailer.c:115:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ptr)
                ^
                 {
/datasets/git/trailer.c:137:45: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static char last_non_space_char(const char *s)
                                            ^
/datasets/git/trailer.c:139:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/trailer.c:139:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trailer.c:140:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = strlen(s) - 1; i >= 0; i--)
        ^
/datasets/git/trailer.c:140:11: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        for (i = strlen(s) - 1; i >= 0; i--)
                 ^
/datasets/git/trailer.c:140:26: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = strlen(s) - 1; i >= 0; i--)
                                ^
/datasets/git/trailer.c:140:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = strlen(s) - 1; i >= 0; i--)
                                            ^
                                             {
/datasets/git/trailer.c:141:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!isspace(s[i]))
                     ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/trailer.c:141:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!isspace(s[i]))
                                   ^
                                    {
/datasets/git/trailer.c:148:7: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        char c;
             ^
               = 0
/datasets/git/trailer.c:148:7: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trailer.c:151:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(outfile, "%s\n", val);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/trailer.c:151:3: note: cast the expression to void to silence this warning
/datasets/git/trailer.c:167:2: note: inferred assignment of ID-dependent value from ID-dependent member next [altera-id-dependent-backward-branch]
        struct list_head *pos;
        ^
/datasets/git/trailer.c:156:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!c)
               ^
                {
/datasets/git/trailer.c:158:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strchr(separators, c))
                                  ^
                                   {
/datasets/git/trailer.c:159:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(outfile, "%s%s\n", tok, val);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/trailer.c:159:3: note: cast the expression to void to silence this warning
/datasets/git/trailer.c:160:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/trailer.c:161:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(outfile, "%s%c %s\n", tok, separators[0], val);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/trailer.c:161:3: note: cast the expression to void to silence this warning
/datasets/git/trailer.c:167:20: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        struct list_head *pos;
                          ^
                              = NULL
/datasets/git/trailer.c:168:23: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct trailer_item *item;
                             ^
                                  = NULL
/datasets/git/trailer.c:169:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        list_for_each(pos, head) {
        ^
./list.h:130:2: note: expanded from macro 'list_for_each'
        for (pos = (head)->next; pos != (head); pos = pos->next)
        ^
/datasets/git/trailer.c:169:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'pos' and may cause performance degradation [altera-id-dependent-backward-branch]
        list_for_each(pos, head) {
                      ^
/datasets/git/trailer.c:172:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    (!opts->only_trailers || item->token))
                                                          ^
                                                           {
/datasets/git/trailer.c:192:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (aoe)
                ^
                 {
/datasets/git/trailer.c:194:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/trailer.c:204:20: warning: variable 'next_head' is not initialized [cppcoreguidelines-init-variables]
        struct list_head *next_head;
                          ^
                                    = NULL
/datasets/git/trailer.c:205:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        do {
        ^
/datasets/git/trailer.c:206:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (same_trailer(in_tok, arg_tok))
                                                  ^
                                                   {
/datasets/git/trailer.c:214:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (next_head == head)
                                      ^
                                       {
/datasets/git/trailer.c:225:23: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
        struct child_process cp = CHILD_PROCESS_INIT;
                             ^
/datasets/git/trailer.c:226:8: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        char *result;
              ^
                     = NULL
/datasets/git/trailer.c:231:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (arg)
                        ^
                         {
/datasets/git/trailer.c:235:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (arg)
                        ^
                         {
/datasets/git/trailer.c:243:33: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (capture_command(&cp, &buf, 1024)) {
                                       ^
/datasets/git/trailer.c:259:15: warning: variable 'arg' is not initialized [cppcoreguidelines-init-variables]
                const char *arg;
                            ^
                                = NULL
/datasets/git/trailer.c:263:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (in_tok && in_tok->value)
                                                    ^
                                                     {
/datasets/git/trailer.c:265:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/trailer.c:294:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (check_if_different(in_tok, arg_tok, 1, head))
                                                                 ^
                                                                  {
/datasets/git/trailer.c:296:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/trailer.c:301:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (check_if_different(on_tok, arg_tok, 0, head))
                                                                 ^
                                                                  {
/datasets/git/trailer.c:303:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/trailer.c:315:21: warning: variable 'where' is not initialized [cppcoreguidelines-init-variables]
        enum trailer_where where;
                           ^
/datasets/git/trailer.c:316:23: warning: variable 'to_add' is not initialized [cppcoreguidelines-init-variables]
        struct trailer_item *to_add;
                             ^
                                    = NULL
/datasets/git/trailer.c:326:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (after_or_end(where))
                                        ^
                                         {
/datasets/git/trailer.c:328:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/trailer.c:340:20: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        struct list_head *pos;
                          ^
                              = NULL
/datasets/git/trailer.c:341:23: warning: variable 'in_tok' is not initialized [cppcoreguidelines-init-variables]
        struct trailer_item *in_tok;
                             ^
                                    = NULL
/datasets/git/trailer.c:342:23: warning: variable 'on_tok' is not initialized [cppcoreguidelines-init-variables]
        struct trailer_item *on_tok;
                             ^
                                    = NULL
/datasets/git/trailer.c:347:23: warning: variable 'start_tok' is not initialized [cppcoreguidelines-init-variables]
        struct trailer_item *start_tok;
                             ^
                                       = NULL
/datasets/git/trailer.c:349:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (list_empty(head))
                             ^
                              {
/datasets/git/trailer.c:356:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        list_for_each_dir(pos, head, backwards) {
        ^
/datasets/git/trailer.c:58:2: note: expanded from macro 'list_for_each_dir'
        for (pos = is_reverse ? (head)->prev : (head)->next; \
        ^
/datasets/git/trailer.c:356:20: warning: backward branch (for loop) is ID-dependent due to variable reference to 'pos' and may cause performance degradation [altera-id-dependent-backward-branch]
        list_for_each_dir(pos, head, backwards) {
                          ^
/datasets/git/trailer.c:358:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!same_token(in_tok, arg_tok))
                                                 ^
                                                  {
/datasets/git/trailer.c:367:36: warning: 2 adjacent parameters of 'process_trailers_lists' of similar type ('struct list_head *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void process_trailers_lists(struct list_head *head,
                                   ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/trailer.c:367:54: note: the first parameter in the range is 'head'
static void process_trailers_lists(struct list_head *head,
                                                     ^~~~
/datasets/git/trailer.c:368:26: note: the last parameter in the range is 'arg_head'
                                   struct list_head *arg_head)
                                                     ^~~~~~~~
/datasets/git/trailer.c:370:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct list_head *pos, *p;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/trailer.c:370:2: note: inferred assignment of ID-dependent value from ID-dependent member next [altera-id-dependent-backward-branch]
/datasets/git/trailer.c:370:20: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        struct list_head *pos, *p;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/trailer.c:370:26: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct list_head *pos, *p;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/trailer.c:370:26: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trailer.c:371:19: warning: variable 'arg_tok' is not initialized [cppcoreguidelines-init-variables]
        struct arg_item *arg_tok;
                         ^
                                 = NULL
/datasets/git/trailer.c:373:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        list_for_each_safe(pos, p, arg_head) {
        ^
./list.h:137:2: note: expanded from macro 'list_for_each_safe'
        for (pos = (head)->next, p = pos->next; \
        ^
/datasets/git/trailer.c:373:21: warning: backward branch (for loop) is ID-dependent due to variable reference to 'pos' and may cause performance degradation [altera-id-dependent-backward-branch]
        list_for_each_safe(pos, p, arg_head) {
                           ^
/datasets/git/trailer.c:381:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!applied)
                             ^
                              {
/datasets/git/trailer.c:388:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!value)
                   ^
                    {
/datasets/git/trailer.c:390:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcasecmp("after", value))
                                             ^
                                              {
/datasets/git/trailer.c:392:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcasecmp("before", value))
                                              ^
                                               {
/datasets/git/trailer.c:394:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcasecmp("end", value))
                                           ^
                                            {
/datasets/git/trailer.c:396:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcasecmp("start", value))
                                             ^
                                              {
/datasets/git/trailer.c:398:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/trailer.c:405:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!value)
                   ^
                    {
/datasets/git/trailer.c:407:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcasecmp("addIfDifferent", value))
                                                      ^
                                                       {
/datasets/git/trailer.c:409:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcasecmp("addIfDifferentNeighbor", value))
                                                              ^
                                                               {
/datasets/git/trailer.c:411:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcasecmp("add", value))
                                           ^
                                            {
/datasets/git/trailer.c:413:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcasecmp("replace", value))
                                               ^
                                                {
/datasets/git/trailer.c:415:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcasecmp("doNothing", value))
                                                 ^
                                                  {
/datasets/git/trailer.c:417:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/trailer.c:424:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!value)
                   ^
                    {
/datasets/git/trailer.c:426:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcasecmp("doNothing", value))
                                                 ^
                                                  {
/datasets/git/trailer.c:428:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcasecmp("add", value))
                                           ^
                                            {
/datasets/git/trailer.c:430:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/trailer.c:446:20: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        struct list_head *pos;
                          ^
                              = NULL
/datasets/git/trailer.c:447:19: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct arg_item *item;
                         ^
                              = NULL
/datasets/git/trailer.c:450:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        list_for_each(pos, &conf_head) {
        ^
./list.h:130:2: note: expanded from macro 'list_for_each'
        for (pos = (head)->next; pos != (head); pos = pos->next)
        ^
/datasets/git/trailer.c:450:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'pos' and may cause performance degradation [altera-id-dependent-backward-branch]
        list_for_each(pos, &conf_head) {
                      ^
/datasets/git/trailer.c:452:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcasecmp(item->conf.name, name))
                                                       ^
                                                        {
/datasets/git/trailer.c:469:8: warning: accessing fields in struct '' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
static struct {
       ^
/datasets/git/trailer.c:469:8: note: use "__attribute__((aligned(16)))" to align struct '' to 16 bytes
/datasets/git/trailer.c:472:3: warning: variable 'trailer_config_items' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} trailer_config_items[] = {
  ^
/datasets/git/trailer.c:482:17: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
                                      void *cb UNUSED)
                                            ^
/datasets/git/trailer.c:484:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *trailer_item, *variable_name;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/trailer.c:484:14: warning: variable 'trailer_item' is not initialized [cppcoreguidelines-init-variables]
        const char *trailer_item, *variable_name;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/trailer.c:484:29: warning: variable 'variable_name' is not initialized [cppcoreguidelines-init-variables]
        const char *trailer_item, *variable_name;
                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/trailer.c:486:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!skip_prefix(conf_key, "trailer.", &trailer_item))
                                                              ^
                                                               {
/datasets/git/trailer.c:493:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                              value) < 0)
                                                         ^
                                                          {
/datasets/git/trailer.c:498:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                  value) < 0)
                                                             ^
                                                              {
/datasets/git/trailer.c:503:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                   value) < 0)
                                                              ^
                                                               {
/datasets/git/trailer.c:514:16: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
                              void *cb UNUSED)
                                    ^
/datasets/git/trailer.c:516:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *trailer_item, *variable_name;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/trailer.c:516:14: warning: variable 'trailer_item' is not initialized [cppcoreguidelines-init-variables]
        const char *trailer_item, *variable_name;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/trailer.c:516:29: warning: variable 'variable_name' is not initialized [cppcoreguidelines-init-variables]
        const char *trailer_item, *variable_name;
                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/trailer.c:517:19: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct arg_item *item;
                         ^
                              = NULL
/datasets/git/trailer.c:518:20: warning: variable 'conf' is not initialized [cppcoreguidelines-init-variables]
        struct conf_info *conf;
                          ^
                               = NULL
/datasets/git/trailer.c:520:25: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum trailer_info_type type;
                               ^
/datasets/git/trailer.c:521:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/trailer.c:521:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trailer.c:523:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!skip_prefix(conf_key, "trailer.", &trailer_item))
                                                              ^
                                                               {
/datasets/git/trailer.c:527:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!variable_name)
                           ^
                            {
/datasets/git/trailer.c:531:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ARRAY_SIZE(trailer_config_items); i++) {
        ^
/datasets/git/trailer.c:532:7: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (strcmp(trailer_config_items[i].name, variable_name))
                    ^
                                                                        != 0
/datasets/git/trailer.c:532:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strcmp(trailer_config_items[i].name, variable_name))
                                                                        ^
                                                                         {
/datasets/git/trailer.c:539:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!name)
                  ^
                   {
/datasets/git/trailer.c:548:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (conf->key)
                              ^
                               {
/datasets/git/trailer.c:553:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (conf->command)
                                  ^
                                   {
/datasets/git/trailer.c:558:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (conf->cmd)
                              ^
                               {
/datasets/git/trailer.c:563:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (trailer_set_where(&conf->where, value))
                                                           ^
                                                            {
/datasets/git/trailer.c:567:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (trailer_set_if_exists(&conf->if_exists, value))
                                                                   ^
                                                                    {
/datasets/git/trailer.c:571:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (trailer_set_if_missing(&conf->if_missing, value))
                                                                     ^
                                                                      {
/datasets/git/trailer.c:582:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (configured)
                       ^
                        {
/datasets/git/trailer.c:594:65: warning: pointer parameter 'tok' can be pointer to const [readability-non-const-parameter]
static const char *token_from_item(struct arg_item *item, char *tok)
                                                                ^
                                                          const 
/datasets/git/trailer.c:596:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (item->conf.key)
                           ^
                            {
/datasets/git/trailer.c:598:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (tok)
                ^
                 {
/datasets/git/trailer.c:605:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strncasecmp(tok, item->conf.name, tok_len))
                                                        ^
                                                         {
/datasets/git/trailer.c:621:31: warning: 2 adjacent parameters of 'find_separator' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static ssize_t find_separator(const char *line, const char *separators)
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/trailer.c:621:43: note: the first parameter in the range is 'line'
static ssize_t find_separator(const char *line, const char *separators)
                                          ^~~~
/datasets/git/trailer.c:621:61: note: the last parameter in the range is 'separators'
static ssize_t find_separator(const char *line, const char *separators)
                                                            ^~~~~~~~~~
/datasets/git/trailer.c:624:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        const char *c;
        ^
/datasets/git/trailer.c:624:14: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        const char *c;
                    ^
                      = NULL
/datasets/git/trailer.c:624:14: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trailer.c:625:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (c = line; *c; c++) {
        ^
/datasets/git/trailer.c:625:17: warning: backward branch (for loop) is ID-dependent due to variable reference to 'c' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (c = line; *c; c++) {
                       ^
/datasets/git/trailer.c:626:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strchr(separators, *c))
                                           ^
                                            {
/datasets/git/trailer.c:628:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!whitespace_found && (isalnum(*c) || *c == '-'))
                                          ^
/datasets/git/./git-compat-util.h:1220:20: note: expanded from macro 'isalnum'
#define isalnum(x) sane_istest(x,GIT_ALPHA | GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/trailer.c:628:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!whitespace_found && (isalnum(*c) || *c == '-'))
                                                                    ^
                                                                     {
/datasets/git/trailer.c:650:19: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct arg_item *item;
                         ^
                              = NULL
/datasets/git/trailer.c:651:9: warning: variable 'tok_len' is not initialized [cppcoreguidelines-init-variables]
        size_t tok_len;
               ^
                       = 0
/datasets/git/trailer.c:652:20: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        struct list_head *pos;
                          ^
                              = NULL
/datasets/git/trailer.c:666:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (conf)
                 ^
                  {
/datasets/git/trailer.c:668:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        list_for_each(pos, &conf_head) {
        ^
./list.h:130:2: note: expanded from macro 'list_for_each'
        for (pos = (head)->next; pos != (head); pos = pos->next)
        ^
/datasets/git/trailer.c:668:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'pos' and may cause performance degradation [altera-id-dependent-backward-branch]
        list_for_each(pos, &conf_head) {
                      ^
/datasets/git/trailer.c:672:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (conf)
                                 ^
                                  {
/datasets/git/trailer.c:681:70: warning: 2 adjacent parameters of 'add_trailer_item' of similar type ('char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static struct trailer_item *add_trailer_item(struct list_head *head, char *tok,
                                                                     ^~~~~~~~~~
/datasets/git/trailer.c:681:76: note: the first parameter in the range is 'tok'
static struct trailer_item *add_trailer_item(struct list_head *head, char *tok,
                                                                           ^~~
/datasets/git/trailer.c:682:17: note: the last parameter in the range is 'val'
                                             char *val)
                                                   ^~~
/datasets/git/trailer.c:691:54: warning: 2 adjacent parameters of 'add_arg_item' of similar type ('char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void add_arg_item(struct list_head *arg_head, char *tok, char *val,
                                                     ^~~~~~~~~~~~~~~~~~~~
/datasets/git/trailer.c:691:60: note: the first parameter in the range is 'tok'
static void add_arg_item(struct list_head *arg_head, char *tok, char *val,
                                                           ^~~
/datasets/git/trailer.c:691:71: note: the last parameter in the range is 'val'
static void add_arg_item(struct list_head *arg_head, char *tok, char *val,
                                                                      ^~~
/datasets/git/trailer.c:700:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (new_trailer_item->where != WHERE_DEFAULT)
                                                             ^
                                                              {
/datasets/git/trailer.c:702:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (new_trailer_item->if_exists != EXISTS_DEFAULT)
                                                                  ^
                                                                   {
/datasets/git/trailer.c:704:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (new_trailer_item->if_missing != MISSING_DEFAULT)
                                                                    ^
                                                                     {
/datasets/git/trailer.c:710:39: warning: 2 adjacent parameters of 'process_command_line_args' of similar type ('struct list_head *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void process_command_line_args(struct list_head *arg_head,
                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/trailer.c:710:57: note: the first parameter in the range is 'arg_head'
static void process_command_line_args(struct list_head *arg_head,
                                                        ^~~~~~~~
/datasets/git/trailer.c:711:29: note: the last parameter in the range is 'new_trailer_head'
                                      struct list_head *new_trailer_head)
                                                        ^~~~~~~~~~~~~~~~
/datasets/git/trailer.c:717:2: note: inferred assignment of ID-dependent value from ID-dependent member next [altera-id-dependent-backward-branch]
        struct list_head *pos;
        ^
/datasets/git/trailer.c:713:19: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct arg_item *item;
                         ^
                              = NULL
/datasets/git/trailer.c:716:26: warning: variable 'conf' is not initialized [cppcoreguidelines-init-variables]
        const struct conf_info *conf;
                                ^
                                     = NULL
/datasets/git/trailer.c:717:20: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        struct list_head *pos;
                          ^
                              = NULL
/datasets/git/trailer.c:726:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        list_for_each(pos, &conf_head) {
        ^
./list.h:130:2: note: expanded from macro 'list_for_each'
        for (pos = (head)->next; pos != (head); pos = pos->next)
        ^
/datasets/git/trailer.c:717:2: note: inferred assignment of ID-dependent value from ID-dependent member next [altera-id-dependent-backward-branch]
        struct list_head *pos;
        ^
/datasets/git/trailer.c:726:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'pos' and may cause performance degradation [altera-id-dependent-backward-branch]
        list_for_each(pos, &conf_head) {
                      ^
/datasets/git/trailer.c:728:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (item->conf.command)
                                       ^
                                        {
/datasets/git/trailer.c:736:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        list_for_each(pos, new_trailer_head) {
        ^
./list.h:130:2: note: expanded from macro 'list_for_each'
        for (pos = (head)->next; pos != (head); pos = pos->next)
        ^
/datasets/git/trailer.c:736:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'pos' and may cause performance degradation [altera-id-dependent-backward-branch]
        list_for_each(pos, new_trailer_head) {
                      ^
/datasets/git/trailer.c:737:28: warning: variable name 'tr' is too short, expected at least 3 characters [readability-identifier-length]
                struct new_trailer_item *tr =
                                         ^
/datasets/git/trailer.c:742:18: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                        struct strbuf sb = STRBUF_INIT;
                                      ^
/datasets/git/trailer.c:761:44: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
static void read_input_file(struct strbuf *sb, const char *file)
                                           ^
/datasets/git/trailer.c:764:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strbuf_read_file(sb, file, 0) < 0)
                                                      ^
                                                       {
/datasets/git/trailer.c:767:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strbuf_read(sb, fileno(stdin), 0) < 0)
                                                          ^
                                                           {
/datasets/git/trailer.c:774:14: warning: variable name 'nl' is too short, expected at least 3 characters [readability-identifier-length]
        const char *nl = strchrnul(str, '\n');
                    ^
/datasets/git/trailer.c:783:10: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        ssize_t i;
                ^
                  = 0
/datasets/git/trailer.c:783:10: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trailer.c:784:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len == 0)
                     ^
                      {
/datasets/git/trailer.c:786:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len == 1)
                     ^
                      {
/datasets/git/trailer.c:793:6: warning: narrowing conversion from 'unsigned long' to signed type 'ssize_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        i = len - 2;
            ^
/datasets/git/trailer.c:795:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; i >= 0; i--) {
        ^
/datasets/git/trailer.c:795:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; i >= 0; i--) {
               ^
/datasets/git/trailer.c:796:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (buf[i] == '\n')
                                   ^
                                    {
/datasets/git/trailer.c:808:14: warning: variable 's' is not initialized [cppcoreguidelines-init-variables]
        const char *s;
                    ^
                      = NULL
/datasets/git/trailer.c:808:14: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trailer.c:810:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (s = str; *s; s = next_line(s)) {
        ^
/datasets/git/trailer.c:810:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 's' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (s = str; *s; s = next_line(s)) {
                      ^
/datasets/git/trailer.c:811:15: warning: variable 'v' is not initialized [cppcoreguidelines-init-variables]
                const char *v;
                            ^
                              = NULL
/datasets/git/trailer.c:811:15: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trailer.c:813:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (skip_prefix(s, "---", &v) && isspace(*v))
                                                 ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/trailer.c:813:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (skip_prefix(s, "---", &v) && isspace(*v))
                                                             ^
                                                              {
/datasets/git/trailer.c:824:15: warning: function 'find_trailer_start' has cognitive complexity of 40 (threshold 25) [readability-function-cognitive-complexity]
static size_t find_trailer_start(const char *buf, size_t len)
              ^
/datasets/git/trailer.c:840:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (s = buf; s < buf + len; s = next_line(s)) {
        ^
/datasets/git/trailer.c:841:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (s[0] == comment_line_char)
                ^
/datasets/git/trailer.c:843:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (is_blank_line(s))
                ^
/datasets/git/trailer.c:854:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (l = last_line(buf, len);
        ^
/datasets/git/trailer.c:861:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (bol[0] == comment_line_char) {
                ^
/datasets/git/trailer.c:866:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (is_blank_line(bol)) {
                ^
/datasets/git/trailer.c:867:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (only_spaces)
                        ^
/datasets/git/trailer.c:870:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (recognized_prefix &&
                        ^
/datasets/git/trailer.c:870:26: note: +1
                        if (recognized_prefix &&
                                              ^
/datasets/git/trailer.c:873:9: note: +1, nesting level increased to 3
                        else if (trailer_lines && !non_trailer_lines)
                             ^
/datasets/git/trailer.c:873:27: note: +1
                        else if (trailer_lines && !non_trailer_lines)
                                               ^
/datasets/git/trailer.c:879:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (p = git_generated_prefixes; *p; p++) {
                ^
/datasets/git/trailer.c:880:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (starts_with(bol, *p)) {
                        ^
/datasets/git/trailer.c:884:5: note: +1
                                goto continue_outer_loop;
                                ^
/datasets/git/trailer.c:889:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (separator_pos >= 1 && !isspace(bol[0])) {
                ^
/datasets/git/trailer.c:889:26: note: +1
                if (separator_pos >= 1 && !isspace(bol[0])) {
                                       ^
/datasets/git/trailer.c:894:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (recognized_prefix)
                        ^
/datasets/git/trailer.c:896:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        list_for_each(pos, &conf_head) {
                        ^
./list.h:130:2: note: expanded from macro 'list_for_each'
        for (pos = (head)->next; pos != (head); pos = pos->next)
        ^
/datasets/git/trailer.c:899:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (token_matches_item(bol, item,
                                ^
/datasets/git/trailer.c:905:10: note: +1, nesting level increased to 2
                } else if (isspace(bol[0]))
                       ^
/datasets/git/trailer.c:907:3: note: +1, nesting level increased to 2
                else {
                ^
/datasets/git/trailer.c:826:14: warning: variable 's' is not initialized [cppcoreguidelines-init-variables]
        const char *s;
                    ^
                      = NULL
/datasets/git/trailer.c:826:14: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trailer.c:827:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        ssize_t end_of_title, l;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/trailer.c:827:10: warning: variable 'end_of_title' is not initialized [cppcoreguidelines-init-variables]
        ssize_t end_of_title, l;
                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/trailer.c:827:24: warning: variable 'l' is not initialized [cppcoreguidelines-init-variables]
        ssize_t end_of_title, l;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/trailer.c:827:24: warning: variable name 'l' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trailer.c:829:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int recognized_prefix = 0, trailer_lines = 0, non_trailer_lines = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/trailer.c:826:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        const char *s;
        ^
/datasets/git/trailer.c:840:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (s = buf; s < buf + len; s = next_line(s)) {
        ^
/datasets/git/trailer.c:827:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        ssize_t end_of_title, l;
        ^
/datasets/git/trailer.c:840:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 's' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (s = buf; s < buf + len; s = next_line(s)) {
                      ^
/datasets/git/trailer.c:841:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (s[0] == comment_line_char)
                                              ^
                                               {
/datasets/git/trailer.c:843:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_blank_line(s))
                                     ^
                                      {
/datasets/git/trailer.c:855:7: warning: backward branch (for loop) is ID-dependent due to variable reference to 'l' and may cause performance degradation [altera-id-dependent-backward-branch]
             l >= end_of_title;
             ^
/datasets/git/trailer.c:858:16: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                const char **p;
                             ^
                               = NULL
/datasets/git/trailer.c:858:16: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trailer.c:859:11: warning: variable 'separator_pos' is not initialized [cppcoreguidelines-init-variables]
                ssize_t separator_pos;
                        ^
                                      = 0
/datasets/git/trailer.c:867:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (only_spaces)
                                        ^
                                         {
/datasets/git/trailer.c:871:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            trailer_lines * 3 >= non_trailer_lines)
                                                                   ^
                                                                    {
/datasets/git/trailer.c:872:5: warning: repeated branch in conditional chain [bugprone-branch-clone]
                                return next_line(bol) - buf;
                                ^
/datasets/git/trailer.c:872:32: note: end of the original
                                return next_line(bol) - buf;
                                                           ^
/datasets/git/trailer.c:874:5: note: clone 1 starts here
                                return next_line(bol) - buf;
                                ^
/datasets/git/trailer.c:873:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                        else if (trailer_lines && !non_trailer_lines)
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/trailer.c:873:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (trailer_lines && !non_trailer_lines)
                                                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/trailer.c:879:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (p = git_generated_prefixes; *p; p++) {
                ^
/datasets/git/trailer.c:879:36: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (p = git_generated_prefixes; *p; p++) {
                                                 ^
/datasets/git/trailer.c:889:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (separator_pos >= 1 && !isspace(bol[0])) {
                                           ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/trailer.c:890:22: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
                        struct list_head *pos;
                                          ^
                                              = NULL
/datasets/git/trailer.c:894:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (recognized_prefix)
                                              ^
                                               {
/datasets/git/trailer.c:896:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        list_for_each(pos, &conf_head) {
                        ^
./list.h:130:2: note: expanded from macro 'list_for_each'
        for (pos = (head)->next; pos != (head); pos = pos->next)
        ^
/datasets/git/trailer.c:896:18: warning: backward branch (for loop) is ID-dependent due to variable reference to 'pos' and may cause performance degradation [altera-id-dependent-backward-branch]
                        list_for_each(pos, &conf_head) {
                                      ^
/datasets/git/trailer.c:897:22: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
                                struct arg_item *item;
                                                 ^
                                                      = NULL
/datasets/git/trailer.c:905:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                } else if (isspace(bol[0]))
                           ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/trailer.c:905:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else if (isspace(bol[0]))
                                           ^
                                            {
/datasets/git/trailer.c:927:10: warning: variable name 'll' is too short, expected at least 3 characters [readability-identifier-length]
        ssize_t ll = last_line(buf, len);
                ^
/datasets/git/./strbuf.h:68:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        size_t len;
        ^
/datasets/git/trailer.c:928:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ll < 0)
                   ^
                    {
/datasets/git/trailer.c:936:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i;
               ^
                 = 0
/datasets/git/trailer.c:936:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trailer.c:940:9: warning: backward branch (while loop) is ID-dependent due to member reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (i < val->len) {
               ^
/datasets/git/trailer.c:941:8: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                char c = val->buf[i++];
                     ^
/datasets/git/trailer.c:944:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (i < val->len && isspace(val->buf[i]))
                        ^
/datasets/git/trailer.c:944:11: warning: backward branch (while loop) is ID-dependent due to member reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (i < val->len && isspace(val->buf[i]))
                               ^
/datasets/git/trailer.c:944:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        while (i < val->len && isspace(val->buf[i]))
                                               ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/trailer.c:944:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        while (i < val->len && isspace(val->buf[i]))
                                                                    ^
                                                                     {
/datasets/git/trailer.c:968:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i;
               ^
                 = 0
/datasets/git/trailer.c:968:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trailer.c:973:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opts->only_trailers)
                                 ^
                                  {
/datasets/git/trailer.c:974:3: warning: the value returned by this function should be used [cert-err33-c]
                fwrite(str, 1, info.trailer_start - str, outfile);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/trailer.c:974:3: note: cast the expression to void to silence this warning
/datasets/git/trailer.c:976:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opts->only_trailers && !info.blank_line_before_trailer)
                                                                    ^
                                                                     {
/datasets/git/trailer.c:977:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(outfile, "\n");
                ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/trailer.c:977:3: note: cast the expression to void to silence this warning
/datasets/git/trailer.c:979:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < info.trailer_nr; i++) {
        ^
/datasets/git/trailer.c:980:7: warning: variable 'separator_pos' is not initialized [cppcoreguidelines-init-variables]
                int separator_pos;
                    ^
                                  = 0
/datasets/git/trailer.c:982:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (trailer[0] == comment_line_char)
                                                    ^
                                                     {
/datasets/git/trailer.c:984:19: warning: narrowing conversion from 'ssize_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                separator_pos = find_separator(trailer, separators);
                                ^
/datasets/git/trailer.c:988:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (opts->unfold)
                                         ^
                                          {
/datasets/git/trailer.c:1009:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct list_head *pos, *p;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/trailer.c:1009:2: note: inferred assignment of ID-dependent value from ID-dependent member next [altera-id-dependent-backward-branch]
/datasets/git/trailer.c:1009:20: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        struct list_head *pos, *p;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/trailer.c:1009:26: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct list_head *pos, *p;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/trailer.c:1009:26: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trailer.c:1010:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        list_for_each_safe(pos, p, head) {
        ^
./list.h:137:2: note: expanded from macro 'list_for_each_safe'
        for (pos = (head)->next, p = pos->next; \
        ^
/datasets/git/trailer.c:1010:21: warning: backward branch (for loop) is ID-dependent due to variable reference to 'pos' and may cause performance degradation [altera-id-dependent-backward-branch]
        list_for_each_safe(pos, p, head) {
                           ^
/datasets/git/trailer.c:1016:25: warning: variable 'trailers_tempfile' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct tempfile *trailers_tempfile;
                        ^
/datasets/git/trailer.c:1016:25: warning: variable 'trailers_tempfile' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/trailer.c:1020:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/trailer.c:1022:14: warning: variable 'tail' is not initialized [cppcoreguidelines-init-variables]
        const char *tail;
                    ^
                         = NULL
/datasets/git/trailer.c:1023:8: warning: variable 'outfile' is not initialized [cppcoreguidelines-init-variables]
        FILE *outfile;
              ^
                      = NULL
/datasets/git/trailer.c:1025:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (stat(file, &st))
                            ^
                             {
/datasets/git/trailer.c:1027:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!S_ISREG(st.st_mode))
                                 ^
                                  {
/datasets/git/trailer.c:1029:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(st.st_mode & S_IWUSR))
              ^
/datasets/git/trailer.c:1029:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(st.st_mode & S_IWUSR))
                                    ^
                                     {
/datasets/git/trailer.c:1034:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (tail)
                 ^
                  {
/datasets/git/trailer.c:1038:61: warning: narrowing conversion from '__mode_t' (aka 'unsigned int') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        trailers_tempfile = xmks_tempfile_m(filename_template.buf, st.st_mode);
                                                                   ^
/datasets/git/trailer.c:1041:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!outfile)
                     ^
                      {
/datasets/git/trailer.c:1052:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/trailer.c:1053:9: warning: variable 'trailer_end' is not initialized [cppcoreguidelines-init-variables]
        size_t trailer_end;
               ^
                           = 0
/datasets/git/trailer.c:1060:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->in_place)
                           ^
                            {
/datasets/git/trailer.c:1077:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!opts->only_trailers)
                                 ^
                                  {
/datasets/git/trailer.c:1078:3: warning: the value returned by this function should be used [cert-err33-c]
                fwrite(sb.buf + trailer_end, 1, sb.len - trailer_end, outfile);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/trailer.c:1078:3: note: cast the expression to void to silence this warning
/datasets/git/trailer.c:1080:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->in_place)
                           ^
                            {
/datasets/git/trailer.c:1081:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (rename_tempfile(&trailers_tempfile, file))
                                                              ^
                                                               {
/datasets/git/trailer.c:1090:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int patch_start, trailer_end, trailer_start;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/trailer.c:1090:6: warning: variable 'patch_start' is not initialized [cppcoreguidelines-init-variables]
        int patch_start, trailer_end, trailer_start;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/trailer.c:1090:19: warning: variable 'trailer_end' is not initialized [cppcoreguidelines-init-variables]
        int patch_start, trailer_end, trailer_start;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/trailer.c:1090:32: warning: variable 'trailer_start' is not initialized [cppcoreguidelines-init-variables]
        int patch_start, trailer_end, trailer_start;
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/trailer.c:1091:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct strbuf **trailer_lines, **ptr;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/trailer.c:1091:18: warning: variable 'trailer_lines' is not initialized [cppcoreguidelines-init-variables]
        struct strbuf **trailer_lines, **ptr;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/trailer.c:1091:35: warning: variable 'ptr' is not initialized [cppcoreguidelines-init-variables]
        struct strbuf **trailer_lines, **ptr;
                                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/trailer.c:1093:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t nr = 0, alloc = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/trailer.c:1093:9: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
        size_t nr = 0, alloc = 0;
               ^
/datasets/git/trailer.c:1098:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->no_divider)
                             ^
                              {
/datasets/git/trailer.c:1099:17: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                patch_start = strlen(str);
                              ^
/datasets/git/trailer.c:1100:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/trailer.c:1101:17: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                patch_start = find_patch_start(str);
                              ^
/datasets/git/trailer.c:1103:16: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        trailer_end = find_trailer_end(str, patch_start);
                      ^
/datasets/git/trailer.c:1104:18: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        trailer_start = find_trailer_start(str, trailer_end);
                        ^
/datasets/git/trailer.c:1110:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ptr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (ptr = trailer_lines; *ptr; ptr++) {
                                  ^
/datasets/git/trailer.c:1111:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (last && isspace((*ptr)->buf[0])) {
                            ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/trailer.c:1112:18: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                        struct strbuf sb = STRBUF_INIT;
                                      ^
/datasets/git/trailer.c:1118:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                ALLOC_GROW(trailer_strings, nr + 1, alloc);
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/trailer.c:1137:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i;
               ^
                 = 0
/datasets/git/trailer.c:1137:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trailer.c:1138:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < info->trailer_nr; i++)
        ^
/datasets/git/trailer.c:1138:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'trailer_nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < info->trailer_nr; i++)
                    ^
/datasets/git/trailer.c:1138:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < info->trailer_nr; i++)
                                              ^
                                               {
/datasets/git/trailer.c:1143:13: warning: function 'format_trailer_info' has cognitive complexity of 49 (threshold 25) [readability-function-cognitive-complexity]
static void format_trailer_info(struct strbuf *out,
            ^
/datasets/git/trailer.c:1151:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!opts->only_trailers && !opts->unfold && !opts->filter &&
        ^
/datasets/git/trailer.c:1152:63: note: +1
            !opts->separator && !opts->key_only && !opts->value_only &&
                                                                     ^
/datasets/git/trailer.c:1159:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < info->trailer_nr; i++) {
        ^
/datasets/git/trailer.c:1163:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (separator_pos >= 1) {
                ^
/datasets/git/trailer.c:1168:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!opts->filter || opts->filter(&tok, opts->filter_data)) {
                        ^
/datasets/git/trailer.c:1168:22: note: +1
                        if (!opts->filter || opts->filter(&tok, opts->filter_data)) {
                                          ^
/datasets/git/trailer.c:1169:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (opts->unfold)
                                ^
/datasets/git/trailer.c:1172:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (opts->separator && out->len != origlen)
                                ^
/datasets/git/trailer.c:1172:25: note: +1
                                if (opts->separator && out->len != origlen)
                                                    ^
/datasets/git/trailer.c:1174:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!opts->value_only)
                                ^
/datasets/git/trailer.c:1176:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!opts->key_only && !opts->value_only) {
                                ^
/datasets/git/trailer.c:1176:25: note: +1
                                if (!opts->key_only && !opts->value_only) {
                                                    ^
/datasets/git/trailer.c:1177:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (opts->key_value_separator)
                                        ^
/datasets/git/trailer.c:1179:6: note: +1, nesting level increased to 5
                                        else
                                        ^
/datasets/git/trailer.c:1182:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!opts->key_only)
                                ^
/datasets/git/trailer.c:1184:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!opts->separator)
                                ^
/datasets/git/trailer.c:1190:10: note: +1, nesting level increased to 2
                } else if (!opts->only_trailers) {
                       ^
/datasets/git/trailer.c:1191:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (opts->separator && out->len != origlen) {
                        ^
/datasets/git/trailer.c:1191:24: note: +1
                        if (opts->separator && out->len != origlen) {
                                            ^
/datasets/git/trailer.c:1195:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (opts->separator) {
                        ^
./trailer.h:50:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        size_t trailer_nr;
        ^
/datasets/git/trailer.c:1148:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i;
               ^
                 = 0
/datasets/git/trailer.c:1148:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/trailer.c:1159:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < info->trailer_nr; i++) {
        ^
/datasets/git/trailer.c:1159:14: warning: backward branch (for loop) is ID-dependent due to member reference to 'trailer_nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < info->trailer_nr; i++) {
                    ^
/datasets/git/trailer.c:1169:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (opts->unfold)
                                                 ^
                                                  {
/datasets/git/trailer.c:1172:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (opts->separator && out->len != origlen)
                                                                           ^
                                                                            {
/datasets/git/trailer.c:1174:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!opts->value_only)
                                                      ^
                                                       {
/datasets/git/trailer.c:1177:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        if (opts->key_value_separator)
                                                                      ^
                                                                       {
/datasets/git/trailer.c:1179:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        else
                                            ^
                                             {
/datasets/git/trailer.c:1182:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!opts->key_only)
                                                    ^
                                                     {
/datasets/git/trailer.c:1184:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!opts->separator)
                                                     ^
                                                      {
/datasets/git/trailer.c:1225:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (iter->cur < iter->info.trailer_nr) {
        ^
/datasets/git/trailer.c:1225:9: warning: backward branch (while loop) is ID-dependent due to member reference to 'trailer_nr' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (iter->cur < iter->info.trailer_nr) {
               ^
/datasets/git/trailer.c:1227:23: warning: narrowing conversion from 'ssize_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int separator_pos = find_separator(trailer, separators);
                                    ^
/datasets/git/trailer.c:1229:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (separator_pos < 1)
                                      ^
                                       {
/datasets/git/transport-helper.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "transport.h"
^        ~~~~~~~~~~~~~
         "commit.h"
/datasets/git/transport-helper.c:18:12: warning: variable 'debug' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int debug;
           ^
/datasets/git/transport-helper.c:20:8: warning: accessing fields in struct 'helper_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct helper_data {
       ^
/datasets/git/transport-helper.c:20:8: note: use "__attribute__((aligned(128)))" to align struct 'helper_data' to 128 bytes
/datasets/git/transport-helper.c:59:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (debug)
                  ^
                   {
/datasets/git/transport-helper.c:60:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "Debug: Remote helper: -> %s", buffer->buf);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport-helper.c:60:3: note: cast the expression to void to silence this warning
/datasets/git/transport-helper.c:61:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_in_full(helper->helper->in, buffer->buf, buffer->len) < 0)
                                                                            ^
                                                                             {
/datasets/git/transport-helper.c:68:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (debug)
                  ^
                   {
/datasets/git/transport-helper.c:69:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "Debug: Remote helper: Waiting...\n");
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport-helper.c:69:3: note: cast the expression to void to silence this warning
/datasets/git/transport-helper.c:71:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (debug)
                          ^
                           {
/datasets/git/transport-helper.c:72:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, "Debug: Remote helper quit.\n");
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport-helper.c:72:4: note: cast the expression to void to silence this warning
/datasets/git/transport-helper.c:76:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (debug)
                  ^
                   {
/datasets/git/transport-helper.c:77:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "Debug: Remote helper: <- %s\n", buffer->buf);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport-helper.c:77:3: note: cast the expression to void to silence this warning
/datasets/git/transport-helper.c:86:32: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
static void write_constant(int fd, const char *str)
                               ^
/datasets/git/transport-helper.c:88:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (debug)
                  ^
                   {
/datasets/git/transport-helper.c:89:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "Debug: Remote helper: -> %s", str);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport-helper.c:89:3: note: cast the expression to void to silence this warning
/datasets/git/transport-helper.c:90:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_in_full(fd, str, strlen(str)) < 0)
                                                    ^
                                                     {
/datasets/git/transport-helper.c:98:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (colon && colon[1] == ':')
                                             ^
                                              {
/datasets/git/transport-helper.c:106:22: warning: variable 'data' is not initialized [cppcoreguidelines-init-variables]
        struct helper_data *data;
                            ^
                                 = NULL
/datasets/git/transport-helper.c:109:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(data->out);
        ^~~~~~~~~~~~~~~~~
/datasets/git/transport-helper.c:109:2: note: cast the expression to void to silence this warning
/datasets/git/transport-helper.c:113:48: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
static void standard_options(struct transport *t);
                                               ^
/datasets/git/transport-helper.c:115:30: warning: function 'get_helper' is within a recursive call chain [misc-no-recursion]
static struct child_process *get_helper(struct transport *transport)
                             ^
/datasets/git/transport-helper.c:313:12: note: example recursive call chain, starting from function 'set_helper_option'
static int set_helper_option(struct transport *transport,
           ^
/datasets/git/transport-helper.c:320:2: note: Frame #1: function 'set_helper_option' calls function 'get_helper' here:
        get_helper(transport);
        ^
/datasets/git/transport-helper.c:225:2: note: Frame #2: function 'get_helper' calls function 'standard_options' here:
        standard_options(transport);
        ^
/datasets/git/transport-helper.c:358:2: note: Frame #3: function 'standard_options' calls function 'set_helper_option' here:
        set_helper_option(t, "progress", t->progress ? "true" : "false");
        ^
/datasets/git/transport-helper.c:358:2: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/transport-helper.c:115:30: warning: function 'get_helper' has cognitive complexity of 37 (threshold 25) [readability-function-cognitive-complexity]
static struct child_process *get_helper(struct transport *transport)
                             ^
/datasets/git/transport-helper.c:123:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (data->helper)
        ^
/datasets/git/transport-helper.c:137:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (have_git_dir())
        ^
/datasets/git/transport-helper.c:144:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (code < 0 && errno == ENOENT)
        ^
/datasets/git/transport-helper.c:144:15: note: +1
        if (code < 0 && errno == ENOENT)
                     ^
/datasets/git/transport-helper.c:146:7: note: +1, nesting level increased to 1
        else if (code != 0)
             ^
/datasets/git/transport-helper.c:160:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (duped < 0)
        ^
/datasets/git/transport-helper.c:166:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (1) {
        ^
/datasets/git/transport-helper.c:169:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (recvline(data, &buf))
                ^
/datasets/git/transport-helper.c:172:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!*buf.buf)
                ^
/datasets/git/transport-helper.c:175:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*buf.buf == '*') {
                ^
/datasets/git/transport-helper.c:178:5: note: +1, nesting level increased to 2
                } else
                  ^
/datasets/git/transport-helper.c:181:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (debug)
                ^
/datasets/git/transport-helper.c:183:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(capname, "fetch"))
                ^
/datasets/git/transport-helper.c:185:8: note: +1, nesting level increased to 2
                else if (!strcmp(capname, "option"))
                     ^
/datasets/git/transport-helper.c:187:8: note: +1, nesting level increased to 2
                else if (!strcmp(capname, "push"))
                     ^
/datasets/git/transport-helper.c:189:8: note: +1, nesting level increased to 2
                else if (!strcmp(capname, "import"))
                     ^
/datasets/git/transport-helper.c:191:8: note: +1, nesting level increased to 2
                else if (!strcmp(capname, "bidi-import"))
                     ^
/datasets/git/transport-helper.c:193:8: note: +1, nesting level increased to 2
                else if (!strcmp(capname, "export"))
                     ^
/datasets/git/transport-helper.c:195:8: note: +1, nesting level increased to 2
                else if (!strcmp(capname, "check-connectivity"))
                     ^
/datasets/git/transport-helper.c:197:8: note: +1, nesting level increased to 2
                else if (skip_prefix(capname, "refspec ", &arg)) {
                     ^
/datasets/git/transport-helper.c:199:10: note: +1, nesting level increased to 2
                } else if (!strcmp(capname, "connect")) {
                       ^
/datasets/git/transport-helper.c:201:10: note: +1, nesting level increased to 2
                } else if (!strcmp(capname, "stateless-connect")) {
                       ^
/datasets/git/transport-helper.c:203:10: note: +1, nesting level increased to 2
                } else if (!strcmp(capname, "signed-tags")) {
                       ^
/datasets/git/transport-helper.c:205:10: note: +1, nesting level increased to 2
                } else if (skip_prefix(capname, "export-marks ", &arg)) {
                       ^
/datasets/git/transport-helper.c:207:10: note: +1, nesting level increased to 2
                } else if (skip_prefix(capname, "import-marks ", &arg)) {
                       ^
/datasets/git/transport-helper.c:209:10: note: +1, nesting level increased to 2
                } else if (starts_with(capname, "no-private-update")) {
                       ^
/datasets/git/transport-helper.c:211:10: note: +1, nesting level increased to 2
                } else if (starts_with(capname, "object-format")) {
                       ^
/datasets/git/transport-helper.c:213:10: note: +1, nesting level increased to 2
                } else if (mandatory) {
                       ^
/datasets/git/transport-helper.c:219:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!data->rs.nr && (data->import || data->bidi_import || data->export)) {
        ^
/datasets/git/transport-helper.c:219:19: note: +1
        if (!data->rs.nr && (data->import || data->bidi_import || data->export)) {
                         ^
/datasets/git/transport-helper.c:219:57: note: +1
        if (!data->rs.nr && (data->import || data->bidi_import || data->export)) {
                                                               ^
/datasets/git/transport-helper.c:223:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (debug)
        ^
/datasets/git/transport-helper.c:119:24: warning: variable 'helper' is not initialized [cppcoreguidelines-init-variables]
        struct child_process *helper;
                              ^
                                     = NULL
/datasets/git/transport-helper.c:120:6: warning: variable 'duped' is not initialized [cppcoreguidelines-init-variables]
        int duped;
            ^
                  = 0
/datasets/git/transport-helper.c:121:6: warning: variable 'code' is not initialized [cppcoreguidelines-init-variables]
        int code;
            ^
                 = 0
/datasets/git/transport-helper.c:123:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (data->helper)
                         ^
                          {
/datasets/git/transport-helper.c:137:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (have_git_dir())
                           ^
                            {
/datasets/git/transport-helper.c:144:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (code < 0 && errno == ENOENT)
                                        ^
                                         {
/datasets/git/transport-helper.c:146:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (code != 0)
                           ^
                            {
/datasets/git/transport-helper.c:147:3: warning: function is not thread safe [concurrency-mt-unsafe]
                exit(code);
                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/transport-helper.c:159:10: warning: prefer fcntl() to dup() because fcntl() allows F_DUPFD_CLOEXEC [android-cloexec-dup]
        duped = dup(helper->out);
                ^~~~~~~~~~~~~~~~
                fcntl(helper->out, F_DUPFD_CLOEXEC)
/datasets/git/transport-helper.c:160:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (duped < 0)
                      ^
                       {
/datasets/git/transport-helper.c:166:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/transport-helper.c:167:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                const char *capname, *arg;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport-helper.c:167:15: warning: variable 'capname' is not initialized [cppcoreguidelines-init-variables]
                const char *capname, *arg;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/transport-helper.c:167:25: warning: variable 'arg' is not initialized [cppcoreguidelines-init-variables]
                const char *capname, *arg;
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/transport-helper.c:169:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (recvline(data, &buf))
                                         ^
                                          {
/datasets/git/transport-helper.c:170:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        exit(128);
                        ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/transport-helper.c:172:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!*buf.buf)
                              ^
                               {
/datasets/git/transport-helper.c:178:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/transport-helper.c:181:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (debug)
                          ^
                           {
/datasets/git/transport-helper.c:182:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, "Debug: Got cap %s\n", capname);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport-helper.c:182:4: note: cast the expression to void to silence this warning
/datasets/git/transport-helper.c:183:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(capname, "fetch"))
                                              ^
                                               {
/datasets/git/transport-helper.c:185:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(capname, "option"))
                                                    ^
                                                     {
/datasets/git/transport-helper.c:187:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(capname, "push"))
                                                  ^
                                                   {
/datasets/git/transport-helper.c:189:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(capname, "import"))
                                                    ^
                                                     {
/datasets/git/transport-helper.c:191:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(capname, "bidi-import"))
                                                         ^
                                                          {
/datasets/git/transport-helper.c:193:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(capname, "export"))
                                                    ^
                                                     {
/datasets/git/transport-helper.c:195:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(capname, "check-connectivity"))
                                                                ^
                                                                 {
/datasets/git/transport-helper.c:223:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (debug)
                  ^
                   {
/datasets/git/transport-helper.c:224:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "Debug: Capabilities complete.\n");
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport-helper.c:224:3: note: cast the expression to void to silence this warning
/datasets/git/transport-helper.c:235:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (debug)
                          ^
                           {
/datasets/git/transport-helper.c:236:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, "Debug: Disconnecting.\n");
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport-helper.c:236:4: note: cast the expression to void to silence this warning
/datasets/git/transport-helper.c:250:3: warning: the value returned by this function should be used [cert-err33-c]
                fclose(data->out);
                ^~~~~~~~~~~~~~~~~
/datasets/git/transport-helper.c:250:3: note: cast the expression to void to silence this warning
/datasets/git/transport-helper.c:252:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FREE_AND_NULL(data->helper);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/transport-helper.c:257:20: warning: variable 'unsupported_options' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *unsupported_options[] = {
                   ^
/datasets/git/transport-helper.c:264:20: warning: variable 'boolean_options' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *boolean_options[] = {
                   ^
/datasets/git/transport-helper.c:274:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/transport-helper.c:277:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (recvline(data, buf))
                                ^
                                 {
/datasets/git/transport-helper.c:278:3: warning: function is not thread safe [concurrency-mt-unsafe]
                exit(128);
                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/transport-helper.c:280:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(buf->buf, "ok"))
                                    ^
                                     {
/datasets/git/transport-helper.c:282:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (starts_with(buf->buf, "error"))
                                                ^
                                                 {
/datasets/git/transport-helper.c:284:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(buf->buf, "unsupported"))
                                                  ^
                                                   {
/datasets/git/transport-helper.c:298:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, ret = 0;
        ^~~~~~~~~~~~~~~
/datasets/git/transport-helper.c:298:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, ret = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/transport-helper.c:298:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/transport-helper.c:300:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < list->nr; i++) {
        ^
/datasets/git/transport-helper.c:305:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                if ((ret = strbuf_set_helper_option(data, &buf)))
                     ^
/datasets/git/transport-helper.c:305:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/transport-helper.c:305:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/transport-helper.c:305:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((ret = strbuf_set_helper_option(data, &buf)))
                                                                 ^
                                                                  {
/datasets/git/transport-helper.c:313:12: warning: function 'set_helper_option' is within a recursive call chain [misc-no-recursion]
static int set_helper_option(struct transport *transport,
           ^
/datasets/git/transport-helper.c:318:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, ret, is_bool = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport-helper.c:318:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, ret, is_bool = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/transport-helper.c:318:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/transport-helper.c:318:9: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int i, ret, is_bool = 0;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/transport-helper.c:322:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!data->option)
                          ^
                           {
/datasets/git/transport-helper.c:325:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(name, "deepen-not"))
                                        ^
                                         {
/datasets/git/transport-helper.c:329:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ARRAY_SIZE(unsupported_options); i++) {
        ^
/datasets/git/transport-helper.c:330:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(name, unsupported_options[i]))
                                                          ^
                                                           {
/datasets/git/transport-helper.c:334:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ARRAY_SIZE(boolean_options); i++) {
        ^
/datasets/git/transport-helper.c:342:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_bool)
                    ^
                     {
/datasets/git/transport-helper.c:344:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/transport-helper.c:353:13: warning: function 'standard_options' is within a recursive call chain [misc-no-recursion]
static void standard_options(struct transport *t)
            ^
/datasets/git/transport-helper.c:353:48: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
static void standard_options(struct transport *t)
                                               ^
/datasets/git/transport-helper.c:355:11: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        char buf[16];
                 ^
/datasets/git/transport-helper.c:356:6: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
        int v = t->verbose;
            ^
/datasets/git/transport-helper.c:393:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/transport-helper.c:393:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/transport-helper.c:396:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr_heads; i++) {
        ^
/datasets/git/transport-helper.c:398:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (posn->status & REF_STATUS_UPTODATE)
                    ^              ~~~~~~~~~~~~~~~~~~~
/datasets/git/transport-helper.c:398:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (posn->status & REF_STATUS_UPTODATE)
                                                       ^
                                                        {
/datasets/git/transport-helper.c:409:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/transport-helper.c:410:15: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
                const char *name;
                            ^
                                 = NULL
/datasets/git/transport-helper.c:412:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (recvline(data, &buf))
                                         ^
                                          {
/datasets/git/transport-helper.c:413:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        exit(128);
                        ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/transport-helper.c:416:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (transport->pack_lockfiles.nr)
                                                         ^
                                                          {
/datasets/git/transport-helper.c:418:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/transport-helper.c:424:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                         !strcmp(buf.buf, "connectivity-ok"))
                                                             ^
                                                              {
/datasets/git/transport-helper.c:426:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!buf.len)
                                  ^
                                   {
/datasets/git/transport-helper.c:428:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/transport-helper.c:439:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int cat_blob_fd, code;
        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport-helper.c:439:6: warning: variable 'cat_blob_fd' is not initialized [cppcoreguidelines-init-variables]
        int cat_blob_fd, code;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/transport-helper.c:439:19: warning: variable 'code' is not initialized [cppcoreguidelines-init-variables]
        int cat_blob_fd, code;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/transport-helper.c:462:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/transport-helper.c:462:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/transport-helper.c:468:20: warning: prefer fcntl() to dup() because fcntl() allows F_DUPFD_CLOEXEC [android-cloexec-dup]
        fastexport->out = dup(helper->in);
                          ^~~~~~~~~~~~~~~
                          fcntl(helper->in, F_DUPFD_CLOEXEC)
/datasets/git/transport-helper.c:473:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (data->export_marks)
                               ^
                                {
/datasets/git/transport-helper.c:475:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (data->import_marks)
                               ^
                                {
/datasets/git/transport-helper.c:478:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < revlist_args->nr; i++)
        ^
/datasets/git/transport-helper.c:478:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < revlist_args->nr; i++)
                                              ^
                                               {
/datasets/git/transport-helper.c:490:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/transport-helper.c:490:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/transport-helper.c:491:14: warning: variable 'posn' is not initialized [cppcoreguidelines-init-variables]
        struct ref *posn;
                    ^
                         = NULL
/datasets/git/transport-helper.c:496:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_importer(transport, &fastimport))
                                                 ^
                                                  {
/datasets/git/transport-helper.c:499:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr_heads; i++) {
        ^
/datasets/git/transport-helper.c:501:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (posn->status & REF_STATUS_UPTODATE)
                    ^              ~~~~~~~~~~~~~~~~~~~
/datasets/git/transport-helper.c:501:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (posn->status & REF_STATUS_UPTODATE)
                                                       ^
                                                        {
/datasets/git/transport-helper.c:519:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (finish_command(&fastimport))
                                        ^
                                         {
/datasets/git/transport-helper.c:537:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr_heads; i++) {
        ^
/datasets/git/transport-helper.c:538:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                char *private, *name;
                ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport-helper.c:538:9: warning: variable 'private' is not initialized [cppcoreguidelines-init-variables]
                char *private, *name;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/transport-helper.c:538:19: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
                char *private, *name;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/transport-helper.c:540:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (posn->status & REF_STATUS_UPTODATE)
                    ^              ~~~~~~~~~~~~~~~~~~~
/datasets/git/transport-helper.c:540:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (posn->status & REF_STATUS_UPTODATE)
                                                       ^
                                                        {
/datasets/git/transport-helper.c:543:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (data->rs.nr)
                                ^
                                 {
/datasets/git/transport-helper.c:545:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/transport-helper.c:548:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (read_ref(private, &posn->old_oid) < 0)
                                                                  ^
                                                                   {
/datasets/git/transport-helper.c:561:6: warning: variable 'duped' is not initialized [cppcoreguidelines-init-variables]
        int duped;
            ^
                  = 0
/datasets/git/transport-helper.c:562:8: warning: variable 'input' is not initialized [cppcoreguidelines-init-variables]
        FILE *input;
              ^
                    = NULL
/datasets/git/transport-helper.c:563:24: warning: variable 'helper' is not initialized [cppcoreguidelines-init-variables]
        struct child_process *helper;
                              ^
                                     = NULL
/datasets/git/transport-helper.c:573:10: warning: prefer fcntl() to dup() because fcntl() allows F_DUPFD_CLOEXEC [android-cloexec-dup]
        duped = dup(helper->out);
                ^~~~~~~~~~~~~~~~
                fcntl(helper->out, F_DUPFD_CLOEXEC)
/datasets/git/transport-helper.c:574:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (duped < 0)
                      ^
                       {
/datasets/git/transport-helper.c:577:2: warning: the value returned by this function should be used [cert-err33-c]
        setvbuf(input, NULL, _IONBF, 0);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport-helper.c:577:2: note: cast the expression to void to silence this warning
/datasets/git/transport-helper.c:580:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (recvline_fh(input, cmdbuf))
                                       ^
                                        {
/datasets/git/transport-helper.c:581:3: warning: function is not thread safe [concurrency-mt-unsafe]
                exit(128);
                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/transport-helper.c:585:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (debug)
                          ^
                           {
/datasets/git/transport-helper.c:586:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, "Debug: Smart transport connection "
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport-helper.c:586:4: note: cast the expression to void to silence this warning
/datasets/git/transport-helper.c:590:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (debug)
                          ^
                           {
/datasets/git/transport-helper.c:591:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, "Debug: Falling back to dumb "
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport-helper.c:591:4: note: cast the expression to void to silence this warning
/datasets/git/transport-helper.c:598:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(input);
        ^~~~~~~~~~~~~
/datasets/git/transport-helper.c:598:2: note: cast the expression to void to silence this warning
/datasets/git/transport-helper.c:613:6: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (strcmp(name, exec)) {
            ^
                               != 0
/datasets/git/transport-helper.c:614:7: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
                int r = set_helper_option(transport, "servpath", exec);
                    ^
/datasets/git/transport-helper.c:615:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (r > 0)
                          ^
                           {
/datasets/git/transport-helper.c:617:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (r < 0)
                               ^
                                {
/datasets/git/transport-helper.c:629:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret)
                        ^
                         {
/datasets/git/transport-helper.c:641:14: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
        const char *name;
                    ^
                         = NULL
/datasets/git/transport-helper.c:642:14: warning: variable 'exec' is not initialized [cppcoreguidelines-init-variables]
        const char *exec;
                    ^
                         = NULL
/datasets/git/transport-helper.c:645:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (for_push)
                     ^
                      {
/datasets/git/transport-helper.c:647:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/transport-helper.c:654:28: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
                   const char *exec, int fd[2])
                                         ^
/datasets/git/transport-helper.c:660:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!data->connect)
                           ^
                            {
/datasets/git/transport-helper.c:663:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!process_connect_service(transport, name, exec))
                                                            ^
                                                             {
/datasets/git/transport-helper.c:678:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, count;
        ^~~~~~~~~~~~~
/datasets/git/transport-helper.c:678:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, count;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/transport-helper.c:678:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/transport-helper.c:678:9: warning: variable 'count' is not initialized [cppcoreguidelines-init-variables]
        int i, count;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/transport-helper.c:697:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!data->get_refs_list_called)
                                        ^
                                         {
/datasets/git/transport-helper.c:701:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr_heads; i++)
        ^
/datasets/git/transport-helper.c:701:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < nr_heads; i++)
                                      ^
                                       {
/datasets/git/transport-helper.c:702:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(to_fetch[i]->status & REF_STATUS_UPTODATE))
                      ^                     ~~~~~~~~~~~~~~~~~~~
/datasets/git/transport-helper.c:702:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(to_fetch[i]->status & REF_STATUS_UPTODATE))
                                                                 ^
                                                                  {
/datasets/git/transport-helper.c:705:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!count)
                   ^
                    {
/datasets/git/transport-helper.c:709:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            data->transport_options.check_self_contained_and_connected)
                                                                       ^
                                                                        {
/datasets/git/transport-helper.c:712:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (transport->cloning)
                               ^
                                {
/datasets/git/transport-helper.c:715:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (data->transport_options.update_shallow)
                                                   ^
                                                    {
/datasets/git/transport-helper.c:718:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (data->transport_options.refetch)
                                            ^
                                             {
/datasets/git/transport-helper.c:727:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (data->transport_options.negotiation_tips)
                                                     ^
                                                      {
/datasets/git/transport-helper.c:730:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (data->fetch)
                        ^
                         {
/datasets/git/transport-helper.c:733:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (data->import)
                         ^
                          {
/datasets/git/transport-helper.c:739:8: warning: accessing fields in struct 'push_update_ref_state' is inefficient due to padding; only needs 20 bytes but is using 24 bytes [altera-struct-pack-align]
struct push_update_ref_state {
       ^
/datasets/git/transport-helper.c:739:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'push_update_ref_state'
/datasets/git/transport-helper.c:739:8: warning: accessing fields in struct 'push_update_ref_state' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct push_update_ref_state {
       ^
/datasets/git/transport-helper.c:739:8: note: use "__attribute__((aligned(32)))" to align struct 'push_update_ref_state' to 32 bytes
/datasets/git/transport-helper.c:745:12: warning: function 'push_update_ref_status' has cognitive complexity of 78 (threshold 25) [readability-function-cognitive-complexity]
static int push_update_ref_status(struct strbuf *buf,
           ^
/datasets/git/transport-helper.c:752:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (starts_with(buf->buf, "option ")) {
        ^
/datasets/git/transport-helper.c:757:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!state->hint || !(state->report || state->new_report))
                ^
/datasets/git/transport-helper.c:757:20: note: +1
                if (!state->hint || !(state->report || state->new_report))
                                 ^
/datasets/git/transport-helper.c:759:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (state->new_report) {
                ^
/datasets/git/transport-helper.c:760:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!state->hint->report) {
                        ^
/datasets/git/transport-helper.c:763:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/transport-helper.c:765:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                while (state->report->next)
                                ^
/datasets/git/transport-helper.c:774:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (p)
                ^
/datasets/git/transport-helper.c:777:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(key, "refname"))
                ^
/datasets/git/transport-helper.c:779:8: note: +1, nesting level increased to 2
                else if (!strcmp(key, "old-oid") && val &&
                     ^
/datasets/git/transport-helper.c:779:43: note: +1
                else if (!strcmp(key, "old-oid") && val &&
                                                        ^
/datasets/git/transport-helper.c:782:8: note: +1, nesting level increased to 2
                else if (!strcmp(key, "new-oid") && val &&
                     ^
/datasets/git/transport-helper.c:782:43: note: +1
                else if (!strcmp(key, "new-oid") && val &&
                                                        ^
/datasets/git/transport-helper.c:785:8: note: +1, nesting level increased to 2
                else if (!strcmp(key, "forced-update"))
                     ^
/datasets/git/transport-helper.c:794:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (starts_with(buf->buf, "ok ")) {
        ^
/datasets/git/transport-helper.c:797:9: note: +1, nesting level increased to 1
        } else if (starts_with(buf->buf, "error ")) {
               ^
/datasets/git/transport-helper.c:800:4: note: +1, nesting level increased to 1
        } else
          ^
/datasets/git/transport-helper.c:804:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (msg) {
        ^
/datasets/git/transport-helper.c:809:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!unquote_c_style(&msg_buf, msg, &end))
                ^
/datasets/git/transport-helper.c:811:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/transport-helper.c:815:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(msg, "no match")) {
                ^
/datasets/git/transport-helper.c:817:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        FREE_AND_NULL(msg);
                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/transport-helper.c:819:8: note: +1, nesting level increased to 2
                else if (!strcmp(msg, "up to date")) {
                     ^
/datasets/git/transport-helper.c:821:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        FREE_AND_NULL(msg);
                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/transport-helper.c:823:8: note: +1, nesting level increased to 2
                else if (!strcmp(msg, "non-fast forward")) {
                     ^
/datasets/git/transport-helper.c:825:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        FREE_AND_NULL(msg);
                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/transport-helper.c:827:8: note: +1, nesting level increased to 2
                else if (!strcmp(msg, "already exists")) {
                     ^
/datasets/git/transport-helper.c:829:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        FREE_AND_NULL(msg);
                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/transport-helper.c:831:8: note: +1, nesting level increased to 2
                else if (!strcmp(msg, "fetch first")) {
                     ^
/datasets/git/transport-helper.c:833:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        FREE_AND_NULL(msg);
                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/transport-helper.c:835:8: note: +1, nesting level increased to 2
                else if (!strcmp(msg, "needs force")) {
                     ^
/datasets/git/transport-helper.c:837:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        FREE_AND_NULL(msg);
                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/transport-helper.c:839:8: note: +1, nesting level increased to 2
                else if (!strcmp(msg, "stale info")) {
                     ^
/datasets/git/transport-helper.c:841:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        FREE_AND_NULL(msg);
                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/transport-helper.c:843:8: note: +1, nesting level increased to 2
                else if (!strcmp(msg, "remote ref updated since checkout")) {
                     ^
/datasets/git/transport-helper.c:845:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        FREE_AND_NULL(msg);
                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/transport-helper.c:847:8: note: +1, nesting level increased to 2
                else if (!strcmp(msg, "forced update")) {
                     ^
/datasets/git/transport-helper.c:849:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        FREE_AND_NULL(msg);
                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/transport-helper.c:851:8: note: +1, nesting level increased to 2
                else if (!strcmp(msg, "expecting report")) {
                     ^
/datasets/git/transport-helper.c:853:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        FREE_AND_NULL(msg);
                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/transport-helper.c:857:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (state->hint)
        ^
/datasets/git/transport-helper.c:859:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!state->hint)
        ^
/datasets/git/transport-helper.c:861:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!state->hint) {
        ^
/datasets/git/transport-helper.c:866:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (state->hint->status != REF_STATUS_NONE) {
        ^
/datasets/git/transport-helper.c:871:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (status == REF_STATUS_NONE)
                ^
/datasets/git/transport-helper.c:875:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (status == REF_STATUS_OK)
        ^
/datasets/git/transport-helper.c:749:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *refname, *msg;
        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/transport-helper.c:749:8: warning: variable 'refname' is not initialized [cppcoreguidelines-init-variables]
        char *refname, *msg;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/transport-helper.c:749:18: warning: variable 'msg' is not initialized [cppcoreguidelines-init-variables]
        char *refname, *msg;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/transport-helper.c:750:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int status, forced = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport-helper.c:750:6: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int status, forced = 0;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/transport-helper.c:753:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                struct object_id old_oid, new_oid;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport-helper.c:754:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                const char *key, *val;
                ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport-helper.c:754:15: warning: variable 'key' is not initialized [cppcoreguidelines-init-variables]
                const char *key, *val;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/transport-helper.c:754:21: warning: variable 'val' is not initialized [cppcoreguidelines-init-variables]
                const char *key, *val;
                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/transport-helper.c:755:9: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                char *p;
                      ^
                        = NULL
/datasets/git/transport-helper.c:755:9: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/transport-helper.c:757:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!state->hint || !(state->report || state->new_report))
                                                                          ^
                                                                           {
/datasets/git/transport-helper.c:765:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                while (state->report->next)
                                ^
/datasets/git/transport-helper.c:765:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                while (state->report->next)
                                                           ^
                                                            {
/datasets/git/transport-helper.c:772:20: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                key = buf->buf + 7;
                                 ^
/datasets/git/transport-helper.c:774:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (p)
                      ^
                       {
/datasets/git/transport-helper.c:777:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(key, "refname"))
                                            ^
                                             {
/datasets/git/transport-helper.c:780:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                         !parse_oid_hex(val, &old_oid, &val))
                                                             ^
                                                              {
/datasets/git/transport-helper.c:783:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                         !parse_oid_hex(val, &new_oid, &val))
                                                             ^
                                                              {
/datasets/git/transport-helper.c:785:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(key, "forced-update"))
                                                       ^
                                                        {
/datasets/git/transport-helper.c:799:24: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                refname = buf->buf + 6;
                                     ^
/datasets/git/transport-helper.c:800:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/transport-helper.c:806:15: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
                const char *end;
                            ^
                                = NULL
/datasets/git/transport-helper.c:809:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!unquote_c_style(&msg_buf, msg, &end))
                                                          ^
                                                           {
/datasets/git/transport-helper.c:811:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/transport-helper.c:817:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        FREE_AND_NULL(msg);
                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/transport-helper.c:821:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        FREE_AND_NULL(msg);
                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/transport-helper.c:825:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        FREE_AND_NULL(msg);
                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/transport-helper.c:829:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        FREE_AND_NULL(msg);
                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/transport-helper.c:833:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        FREE_AND_NULL(msg);
                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/transport-helper.c:837:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        FREE_AND_NULL(msg);
                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/transport-helper.c:841:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        FREE_AND_NULL(msg);
                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/transport-helper.c:845:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        FREE_AND_NULL(msg);
                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/transport-helper.c:849:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        FREE_AND_NULL(msg);
                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/transport-helper.c:853:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        FREE_AND_NULL(msg);
                        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/transport-helper.c:857:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (state->hint)
                        ^
                         {
/datasets/git/transport-helper.c:859:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!state->hint)
                         ^
                          {
/datasets/git/transport-helper.c:871:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (status == REF_STATUS_NONE)
                                              ^
                                               {
/datasets/git/transport-helper.c:875:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (status == REF_STATUS_OK)
                                    ^
                                     {
/datasets/git/transport-helper.c:878:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        state->hint->forced_update |= forced;
        ^                             ~~~~~~
/datasets/git/transport-helper.c:883:12: warning: function 'push_update_refs_status' has cognitive complexity of 31 (threshold 25) [readability-function-cognitive-complexity]
static int push_update_refs_status(struct helper_data *data,
           ^
/datasets/git/transport-helper.c:892:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (;;) {
        ^
/datasets/git/transport-helper.c:893:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (recvline(data, &buf)) {
                ^
/datasets/git/transport-helper.c:897:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!buf.len)
                ^
/datasets/git/transport-helper.c:903:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (flags & TRANSPORT_PUSH_DRY_RUN || !data->rs.nr || data->no_private_update)
        ^
/datasets/git/transport-helper.c:903:53: note: +1
        if (flags & TRANSPORT_PUSH_DRY_RUN || !data->rs.nr || data->no_private_update)
                                                           ^
/datasets/git/transport-helper.c:907:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (ref = remote_refs; ref; ref = ref->next) {
        ^
/datasets/git/transport-helper.c:910:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ref->status != REF_STATUS_OK)
                ^
/datasets/git/transport-helper.c:913:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!ref->report) {
                ^
/datasets/git/transport-helper.c:915:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!private)
                        ^
/datasets/git/transport-helper.c:920:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/transport-helper.c:921:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (report = ref->report; report; report = report->next) {
                        ^
/datasets/git/transport-helper.c:924:9: note: +4, including nesting penalty of 3, nesting level increased to 4
                                                         ? report->ref_name
                                                         ^
/datasets/git/transport-helper.c:926:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!private)
                                ^
/datasets/git/transport-helper.c:930:9: note: +4, including nesting penalty of 3, nesting level increased to 4
                                           ? report->new_oid
                                           ^
/datasets/git/transport-helper.c:887:14: warning: variable 'ref' is not initialized [cppcoreguidelines-init-variables]
        struct ref *ref;
                    ^
                        = NULL
/datasets/git/transport-helper.c:888:26: warning: variable 'report' is not initialized [cppcoreguidelines-init-variables]
        struct ref_push_report *report;
                                ^
                                       = NULL
/datasets/git/transport-helper.c:892:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/transport-helper.c:897:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!buf.len)
                             ^
                              {
/datasets/git/transport-helper.c:903:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & TRANSPORT_PUSH_DRY_RUN || !data->rs.nr || data->no_private_update)
            ^~~~~
/datasets/git/transport-helper.c:903:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & TRANSPORT_PUSH_DRY_RUN || !data->rs.nr || data->no_private_update)
                    ^
/datasets/git/./transport.h:133:35: note: expanded from macro 'TRANSPORT_PUSH_DRY_RUN'
#define TRANSPORT_PUSH_DRY_RUN                  (1<<2)
                                                 ^
/datasets/git/transport-helper.c:903:80: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & TRANSPORT_PUSH_DRY_RUN || !data->rs.nr || data->no_private_update)
                                                                                      ^
                                                                                       {
/datasets/git/transport-helper.c:907:26: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (ref = remote_refs; ref; ref = ref->next) {
                                ^
/datasets/git/transport-helper.c:908:9: warning: variable 'private' is not initialized [cppcoreguidelines-init-variables]
                char *private;
                      ^
                              = NULL
/datasets/git/transport-helper.c:910:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ref->status != REF_STATUS_OK)
                                                 ^
                                                  {
/datasets/git/transport-helper.c:915:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!private)
                                     ^
                                      {
/datasets/git/transport-helper.c:921:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (report = ref->report; report; report = report->next) {
                        ^
/datasets/git/transport-helper.c:921:31: warning: backward branch (for loop) is ID-dependent due to variable reference to 'report' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (report = ref->report; report; report = report->next) {
                                                   ^
/datasets/git/transport-helper.c:926:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!private)
                                             ^
                                              {
/datasets/git/transport-helper.c:943:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & TRANSPORT_PUSH_DRY_RUN) {
            ^~~~~
/datasets/git/transport-helper.c:943:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & TRANSPORT_PUSH_DRY_RUN) {
                    ^
/datasets/git/./transport.h:133:35: note: expanded from macro 'TRANSPORT_PUSH_DRY_RUN'
#define TRANSPORT_PUSH_DRY_RUN                  (1<<2)
                                                 ^
/datasets/git/transport-helper.c:944:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (set_helper_option(transport, "dry-run", "true") != 0)
                                                                         ^
                                                                          {
/datasets/git/transport-helper.c:946:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        } else if (flags & TRANSPORT_PUSH_CERT_ALWAYS) {
                   ^~~~~
/datasets/git/transport-helper.c:946:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        } else if (flags & TRANSPORT_PUSH_CERT_ALWAYS) {
                           ^
/datasets/git/./transport.h:142:38: note: expanded from macro 'TRANSPORT_PUSH_CERT_ALWAYS'
#define TRANSPORT_PUSH_CERT_ALWAYS              (1<<11)
                                                 ^
/datasets/git/transport-helper.c:947:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (set_helper_option(transport, TRANS_OPT_PUSH_CERT, "true") != 0)
                                                                                   ^
                                                                                    {
/datasets/git/transport-helper.c:949:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        } else if (flags & TRANSPORT_PUSH_CERT_IF_ASKED) {
                   ^~~~~
/datasets/git/transport-helper.c:949:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        } else if (flags & TRANSPORT_PUSH_CERT_IF_ASKED) {
                           ^
/datasets/git/./transport.h:143:40: note: expanded from macro 'TRANSPORT_PUSH_CERT_IF_ASKED'
#define TRANSPORT_PUSH_CERT_IF_ASKED            (1<<12)
                                                 ^
/datasets/git/transport-helper.c:950:74: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (set_helper_option(transport, TRANS_OPT_PUSH_CERT, "if-asked") != 0)
                                                                                       ^
                                                                                        {
/datasets/git/transport-helper.c:954:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & TRANSPORT_PUSH_ATOMIC)
            ^~~~~
/datasets/git/transport-helper.c:954:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & TRANSPORT_PUSH_ATOMIC)
                    ^
/datasets/git/./transport.h:144:34: note: expanded from macro 'TRANSPORT_PUSH_ATOMIC'
#define TRANSPORT_PUSH_ATOMIC                   (1<<13)
                                                 ^
/datasets/git/transport-helper.c:954:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & TRANSPORT_PUSH_ATOMIC)
                                          ^
                                           {
/datasets/git/transport-helper.c:955:67: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (set_helper_option(transport, TRANS_OPT_ATOMIC, "true") != 0)
                                                                                ^
                                                                                 {
/datasets/git/transport-helper.c:958:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & TRANSPORT_PUSH_FORCE_IF_INCLUDES)
            ^~~~~
/datasets/git/transport-helper.c:958:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & TRANSPORT_PUSH_FORCE_IF_INCLUDES)
                    ^
/datasets/git/./transport.h:147:43: note: expanded from macro 'TRANSPORT_PUSH_FORCE_IF_INCLUDES'
#define TRANSPORT_PUSH_FORCE_IF_INCLUDES        (1<<16)
                                                 ^
/datasets/git/transport-helper.c:958:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & TRANSPORT_PUSH_FORCE_IF_INCLUDES)
                                                     ^
                                                      {
/datasets/git/transport-helper.c:959:78: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (set_helper_option(transport, TRANS_OPT_FORCE_IF_INCLUDES, "true") != 0)
                                                                                           ^
                                                                                            {
/datasets/git/transport-helper.c:963:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & TRANSPORT_PUSH_OPTIONS) {
            ^~~~~
/datasets/git/transport-helper.c:963:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & TRANSPORT_PUSH_OPTIONS) {
                    ^
/datasets/git/./transport.h:145:35: note: expanded from macro 'TRANSPORT_PUSH_OPTIONS'
#define TRANSPORT_PUSH_OPTIONS                  (1<<14)
                                                 ^
/datasets/git/transport-helper.c:964:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                struct string_list_item *item;
                ^
/datasets/git/transport-helper.c:964:28: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
                struct string_list_item *item;
                                         ^
                                              = NULL
/datasets/git/transport-helper.c:965:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for_each_string_list_item(item, transport->push_options)
                ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/transport-helper.c:965:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
                for_each_string_list_item(item, transport->push_options)
                                          ^
/datasets/git/transport-helper.c:966:71: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (set_helper_option(transport, "push-option", item->string) != 0)
                                                                                           ^
                                                                                            {
/datasets/git/transport-helper.c:971:12: warning: function 'push_refs_with_push' has cognitive complexity of 27 (threshold 25) [readability-function-cognitive-complexity]
static int push_refs_with_push(struct transport *transport,
           ^
/datasets/git/transport-helper.c:984:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!data->push)
        ^
/datasets/git/transport-helper.c:987:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (ref = remote_refs; ref; ref = ref->next) {
        ^
/datasets/git/transport-helper.c:988:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!ref->peer_ref && !mirror)
                ^
/datasets/git/transport-helper.c:988:22: note: +1
                if (!ref->peer_ref && !mirror)
                                   ^
/datasets/git/transport-helper.c:992:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                switch (ref->status) {
                ^
/datasets/git/transport-helper.c:997:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (atomic) {
                        ^
/datasets/git/transport-helper.c:1001:6: note: +1, nesting level increased to 3
                        } else
                          ^
/datasets/git/transport-helper.c:1009:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (force_all)
                ^
/datasets/git/transport-helper.c:1013:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!ref->deletion) {
                ^
/datasets/git/transport-helper.c:1014:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ref->force)
                        ^
/datasets/git/transport-helper.c:1016:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ref->peer_ref)
                        ^
/datasets/git/transport-helper.c:1018:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/transport-helper.c:1032:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ref->expect_old_sha1) {
                ^
/datasets/git/transport-helper.c:1040:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (buf.len == 0) {
        ^
/datasets/git/transport-helper.c:1045:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for_each_string_list_item(cas_option, &cas_options)
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/transport-helper.c:1045:2: note: +1
        for_each_string_list_item(cas_option, &cas_options)
        ^
/datasets/git/./string-list.h:152:12: note: expanded from macro 'for_each_string_list_item'
             item && item < (list)->items + (list)->nr; \
                  ^
/datasets/git/transport-helper.c:974:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int force_all = flags & TRANSPORT_PUSH_FORCE;
                        ^~~~~
/datasets/git/transport-helper.c:974:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int force_all = flags & TRANSPORT_PUSH_FORCE;
                                ^
/datasets/git/./transport.h:132:33: note: expanded from macro 'TRANSPORT_PUSH_FORCE'
#define TRANSPORT_PUSH_FORCE                    (1<<1)
                                                 ^
/datasets/git/transport-helper.c:975:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int mirror = flags & TRANSPORT_PUSH_MIRROR;
                     ^~~~~
/datasets/git/transport-helper.c:975:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int mirror = flags & TRANSPORT_PUSH_MIRROR;
                             ^
/datasets/git/./transport.h:134:34: note: expanded from macro 'TRANSPORT_PUSH_MIRROR'
#define TRANSPORT_PUSH_MIRROR                   (1<<3)
                                                 ^
/datasets/git/transport-helper.c:976:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int atomic = flags & TRANSPORT_PUSH_ATOMIC;
                     ^~~~~
/datasets/git/transport-helper.c:976:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int atomic = flags & TRANSPORT_PUSH_ATOMIC;
                             ^
/datasets/git/./transport.h:144:34: note: expanded from macro 'TRANSPORT_PUSH_ATOMIC'
#define TRANSPORT_PUSH_ATOMIC                   (1<<13)
                                                 ^
/datasets/git/transport-helper.c:979:14: warning: variable 'ref' is not initialized [cppcoreguidelines-init-variables]
        struct ref *ref;
                    ^
                        = NULL
/datasets/git/transport-helper.c:981:27: warning: variable 'cas_option' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *cas_option;
                                 ^
                                            = NULL
/datasets/git/transport-helper.c:984:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!data->push)
                        ^
                         {
/datasets/git/transport-helper.c:987:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (ref = remote_refs; ref; ref = ref->next) {
        ^
/datasets/git/transport-helper.c:981:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct string_list_item *cas_option;
        ^
/datasets/git/transport-helper.c:987:26: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (ref = remote_refs; ref; ref = ref->next) {
                                ^
/datasets/git/transport-helper.c:988:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ref->peer_ref && !mirror)
                                              ^
                                               {
/datasets/git/transport-helper.c:1001:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        } else
                              ^
                               {
/datasets/git/transport-helper.c:1009:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (force_all)
                              ^
                               {
/datasets/git/transport-helper.c:1014:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ref->force)
                                       ^
                                        {
/datasets/git/transport-helper.c:1016:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ref->peer_ref)
                                          ^
                                           {
/datasets/git/transport-helper.c:1018:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/transport-helper.c:1045:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(cas_option, &cas_options)
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/transport-helper.c:1045:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cas_option' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(cas_option, &cas_options)
                                  ^
/datasets/git/transport-helper.c:1057:12: warning: function 'push_refs_with_export' has cognitive complexity of 31 (threshold 25) [readability-function-cognitive-complexity]
static int push_refs_with_export(struct transport *transport,
           ^
/datasets/git/transport-helper.c:1066:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!data->rs.nr)
        ^
/datasets/git/transport-helper.c:1070:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (flags & TRANSPORT_PUSH_FORCE) {
        ^
/datasets/git/transport-helper.c:1071:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (set_helper_option(transport, "force", "true") != 0)
                ^
/datasets/git/transport-helper.c:1079:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (ref = remote_refs; ref; ref = ref->next) {
        ^
/datasets/git/transport-helper.c:1084:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (private && !get_oid(private, &oid)) {
                ^
/datasets/git/transport-helper.c:1084:15: note: +1
                if (private && !get_oid(private, &oid)) {
                            ^
/datasets/git/transport-helper.c:1092:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ref->peer_ref) {
                ^
/datasets/git/transport-helper.c:1093:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (strcmp(ref->name, ref->peer_ref->name)) {
                        ^
/datasets/git/transport-helper.c:1094:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!ref->deletion) {
                                ^
/datasets/git/transport-helper.c:1102:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (!name || !(flag & REF_ISSYMREF))
                                        ^
/datasets/git/transport-helper.c:1102:16: note: +1
                                        if (!name || !(flag & REF_ISSYMREF))
                                                  ^
/datasets/git/transport-helper.c:1106:7: note: +1, nesting level increased to 4
                                } else
                                  ^
/datasets/git/transport-helper.c:1113:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!ref->deletion)
                        ^
/datasets/git/transport-helper.c:1118:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (get_exporter(transport, &exporter, &revlist_args))
        ^
/datasets/git/transport-helper.c:1123:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (finish_command(&exporter))
        ^
/datasets/git/transport-helper.c:1125:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (push_update_refs_status(data, remote_refs, flags))
        ^
/datasets/git/transport-helper.c:1128:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (data->export_marks) {
        ^
/datasets/git/transport-helper.c:1060:14: warning: variable 'ref' is not initialized [cppcoreguidelines-init-variables]
        struct ref *ref;
                    ^
                        = NULL
/datasets/git/transport-helper.c:1061:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct child_process *helper, exporter;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport-helper.c:1061:24: warning: variable 'helper' is not initialized [cppcoreguidelines-init-variables]
        struct child_process *helper, exporter;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/transport-helper.c:1066:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!data->rs.nr)
                         ^
                          {
/datasets/git/transport-helper.c:1070:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & TRANSPORT_PUSH_FORCE) {
            ^~~~~
/datasets/git/transport-helper.c:1070:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & TRANSPORT_PUSH_FORCE) {
                    ^
/datasets/git/./transport.h:132:33: note: expanded from macro 'TRANSPORT_PUSH_FORCE'
#define TRANSPORT_PUSH_FORCE                    (1<<1)
                                                 ^
/datasets/git/transport-helper.c:1071:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (set_helper_option(transport, "force", "true") != 0)
                                                                       ^
                                                                        {
/datasets/git/transport-helper.c:1079:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (ref = remote_refs; ref; ref = ref->next) {
        ^
/datasets/git/transport-helper.c:1079:26: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (ref = remote_refs; ref; ref = ref->next) {
                                ^
/datasets/git/transport-helper.c:1080:9: warning: variable 'private' is not initialized [cppcoreguidelines-init-variables]
                char *private;
                      ^
                              = NULL
/datasets/git/transport-helper.c:1093:8: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                        if (strcmp(ref->name, ref->peer_ref->name)) {
                            ^
                                                                   != 0
/datasets/git/transport-helper.c:1095:18: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
                                        const char *name;
                                                    ^
                                                         = NULL
/datasets/git/transport-helper.c:1096:10: warning: variable 'flag' is not initialized [cppcoreguidelines-init-variables]
                                        int flag;
                                            ^
                                                 = 0
/datasets/git/transport-helper.c:1102:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        if (!name || !(flag & REF_ISSYMREF))
                                                       ^~~~
/datasets/git/transport-helper.c:1102:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        if (!name || !(flag & REF_ISSYMREF))
                                                                            ^
                                                                             {
/datasets/git/transport-helper.c:1106:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                } else
                                      ^
                                       {
/datasets/git/transport-helper.c:1113:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!ref->deletion)
                                           ^
                                            {
/datasets/git/transport-helper.c:1118:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_exporter(transport, &exporter, &revlist_args))
                                                              ^
                                                               {
/datasets/git/transport-helper.c:1123:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (finish_command(&exporter))
                                      ^
                                       {
/datasets/git/transport-helper.c:1125:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (push_update_refs_status(data, remote_refs, flags))
                                                              ^
                                                               {
/datasets/git/transport-helper.c:1130:3: warning: the value returned by this function should be used [cert-err33-c]
                rename(buf.buf, data->export_marks);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport-helper.c:1130:3: note: cast the expression to void to silence this warning
/datasets/git/transport-helper.c:1148:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr,
                ^~~~~~~~~~~~~~~
/datasets/git/transport-helper.c:1148:3: note: cast the expression to void to silence this warning
/datasets/git/transport-helper.c:1154:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (data->push)
                       ^
                        {
/datasets/git/transport-helper.c:1157:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (data->export)
                         ^
                          {
/datasets/git/transport-helper.c:1166:6: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int len;
            ^
                = 0
/datasets/git/transport-helper.c:1167:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!attrs)
                   ^
                    {
/datasets/git/transport-helper.c:1170:8: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        len = strlen(attr);
              ^
/datasets/git/transport-helper.c:1171:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/transport-helper.c:1173:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (len == space - attrs && !strncmp(attrs, attr, len))
                                                                       ^
                                                                        {
/datasets/git/transport-helper.c:1175:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!*space)
                            ^
                             {
/datasets/git/transport-helper.c:1195:20: warning: function 'get_refs_list_using_list' has cognitive complexity of 38 (threshold 25) [readability-function-cognitive-complexity]
static struct ref *get_refs_list_using_list(struct transport *transport,
                   ^
/datasets/git/transport-helper.c:1208:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (data->object_format) {
        ^
/datasets/git/transport-helper.c:1210:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (recvline(data, &buf) || strcmp(buf.buf, "ok"))
                ^
/datasets/git/transport-helper.c:1210:28: note: +1
                if (recvline(data, &buf) || strcmp(buf.buf, "ok"))
                                         ^
/datasets/git/transport-helper.c:1214:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (data->push && for_push)
        ^
/datasets/git/transport-helper.c:1214:17: note: +1
        if (data->push && for_push)
                       ^
/datasets/git/transport-helper.c:1216:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/transport-helper.c:1219:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (1) {
        ^
/datasets/git/transport-helper.c:1221:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (recvline(data, &buf))
                ^
/datasets/git/transport-helper.c:1224:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!*buf.buf)
                ^
/datasets/git/transport-helper.c:1226:8: note: +1, nesting level increased to 2
                else if (buf.buf[0] == ':') {
                     ^
/datasets/git/transport-helper.c:1228:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (skip_prefix(buf.buf, ":object-format ", &value)) {
                        ^
/datasets/git/transport-helper.c:1230:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (algo == GIT_HASH_UNKNOWN)
                                ^
/datasets/git/transport-helper.c:1239:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!eov)
                ^
/datasets/git/transport-helper.c:1243:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (eon)
                ^
/datasets/git/transport-helper.c:1246:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (buf.buf[0] == '@')
                ^
/datasets/git/transport-helper.c:1248:8: note: +1, nesting level increased to 2
                else if (buf.buf[0] != '?')
                     ^
/datasets/git/transport-helper.c:1250:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (eon) {
                ^
/datasets/git/transport-helper.c:1251:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (has_attribute(eon + 1, "unchanged")) {
                        ^
/datasets/git/transport-helper.c:1253:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (read_ref((*tail)->name, &(*tail)->old_oid) < 0)
                                ^
/datasets/git/transport-helper.c:1260:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (debug)
        ^
/datasets/git/transport-helper.c:1264:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (posn = ret; posn; posn = posn->next)
        ^
/datasets/git/transport-helper.c:1199:24: warning: variable 'helper' is not initialized [cppcoreguidelines-init-variables]
        struct child_process *helper;
                              ^
                                     = NULL
/datasets/git/transport-helper.c:1202:14: warning: variable 'posn' is not initialized [cppcoreguidelines-init-variables]
        struct ref *posn;
                    ^
                         = NULL
/datasets/git/transport-helper.c:1210:31: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (recvline(data, &buf) || strcmp(buf.buf, "ok"))
                                            ^
                                                                  != 0
/datasets/git/transport-helper.c:1210:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (recvline(data, &buf) || strcmp(buf.buf, "ok"))
                                                                  ^
                                                                   {
/datasets/git/transport-helper.c:1211:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        exit(128);
                        ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/transport-helper.c:1214:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (data->push && for_push)
                                   ^
                                    {
/datasets/git/transport-helper.c:1216:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/transport-helper.c:1219:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/transport-helper.c:1220:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                char *eov, *eon;
                ^~~~~~~~~~~~~~~~
/datasets/git/transport-helper.c:1220:9: warning: variable 'eov' is not initialized [cppcoreguidelines-init-variables]
                char *eov, *eon;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/transport-helper.c:1220:15: warning: variable 'eon' is not initialized [cppcoreguidelines-init-variables]
                char *eov, *eon;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/transport-helper.c:1221:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (recvline(data, &buf))
                                         ^
                                          {
/datasets/git/transport-helper.c:1222:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        exit(128);
                        ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/transport-helper.c:1224:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!*buf.buf)
                              ^
                               {
/datasets/git/transport-helper.c:1226:3: warning: do not use 'else' after 'break' [llvm-else-after-return,readability-else-after-return]
                else if (buf.buf[0] == ':') {
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport-helper.c:1227:16: warning: variable 'value' is not initialized [cppcoreguidelines-init-variables]
                        const char *value;
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/transport-helper.c:1230:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (algo == GIT_HASH_UNKNOWN)
                                                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/transport-helper.c:1239:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!eov)
                         ^
                          {
/datasets/git/transport-helper.c:1243:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (eon)
                        ^
                         {
/datasets/git/transport-helper.c:1246:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (buf.buf[0] == '@')
                                      ^
                                       {
/datasets/git/transport-helper.c:1248:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (buf.buf[0] != '?')
                                           ^
                                            {
/datasets/git/transport-helper.c:1252:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                (*tail)->status |= REF_STATUS_UPTODATE;
                                ^                  ~~~~~~~~~~~~~~~~~~~
/datasets/git/transport-helper.c:1253:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (read_ref((*tail)->name, &(*tail)->old_oid) < 0)
                                                                                   ^
                                                                                    {
/datasets/git/transport-helper.c:1260:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (debug)
                  ^
                   {
/datasets/git/transport-helper.c:1261:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "Debug: Read ref listing.\n");
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport-helper.c:1261:3: note: cast the expression to void to silence this warning
/datasets/git/transport-helper.c:1264:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (posn = ret; posn; posn = posn->next)
        ^
/datasets/git/transport-helper.c:1264:19: warning: backward branch (for loop) is ID-dependent due to variable reference to 'posn' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (posn = ret; posn; posn = posn->next)
                         ^
/datasets/git/transport-helper.c:1264:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (posn = ret; posn; posn = posn->next)
                                                 ^
                                                  {
/datasets/git/transport-helper.c:1265:3: warning: 1st argument 'posn' (passed to 'ref') looks like it might be swapped with the 2nd, 'ret' (passed to 'list') [readability-suspicious-call-argument]
                resolve_remote_symref(posn, ret);
                ^                     ~~~~  ~~~
/datasets/git/./remote.h:237:5: note: in the call to 'resolve_remote_symref', declared here
int resolve_remote_symref(struct ref *ref, struct ref *list);
    ^                                 ~~~              ~~~~
/datasets/git/transport-helper.c:1270:32: warning: variable 'vtable' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct transport_vtable vtable = {
                               ^
/datasets/git/transport-helper.c:1286:6: warning: function is not thread safe [concurrency-mt-unsafe]
        if (getenv("GIT_TRANSPORT_HELPER_DEBUG"))
            ^
/datasets/git/transport-helper.c:1286:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (getenv("GIT_TRANSPORT_HELPER_DEBUG"))
                                                 ^
                                                  {
/datasets/git/transport-helper.c:1301:1: warning: replace macro with enum [modernize-macro-to-enum]
#define BUFFERSIZE 65536
^~~~~~~~
                   =    ,
/datasets/git/transport-helper.c:1301:9: warning: macro 'BUFFERSIZE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define BUFFERSIZE 65536
        ^
/datasets/git/transport-helper.c:1303:9: warning: macro 'PBUFFERSIZE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define PBUFFERSIZE 8192
        ^
/datasets/git/transport-helper.c:1320:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (debug_enabled < 0)
                              ^
                               {
/datasets/git/transport-helper.c:1321:19: warning: function is not thread safe [concurrency-mt-unsafe]
                debug_enabled = getenv("GIT_TRANSLOOP_DEBUG") ? 1 : 0;
                                ^
/datasets/git/transport-helper.c:1322:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!debug_enabled)
                           ^
                            {
/datasets/git/transport-helper.c:1326:2: warning: the value returned by this function should be used [cert-err33-c]
        vsnprintf(msgbuf, PBUFFERSIZE, fmt, args);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport-helper.c:1326:2: note: cast the expression to void to silence this warning
/datasets/git/transport-helper.c:1326:2: warning: Call to function 'vsnprintf' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'vsnprintf_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        vsnprintf(msgbuf, PBUFFERSIZE, fmt, args);
        ^~~~~~~~~
/datasets/git/transport-helper.c:1326:2: note: Call to function 'vsnprintf' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'vsnprintf_s' in case of C11
        vsnprintf(msgbuf, PBUFFERSIZE, fmt, args);
        ^~~~~~~~~
/datasets/git/transport-helper.c:1326:2: warning: Function 'vsnprintf' is called with an uninitialized va_list argument [clang-analyzer-valist.Uninitialized]
        vsnprintf(msgbuf, PBUFFERSIZE, fmt, args);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport-helper.c:1320:6: note: 'debug_enabled' is < 0
        if (debug_enabled < 0)
            ^~~~~~~~~~~~~
/datasets/git/transport-helper.c:1320:2: note: Taking true branch
        if (debug_enabled < 0)
        ^
/datasets/git/transport-helper.c:1321:19: note: Assuming the environment variable exists
                debug_enabled = getenv("GIT_TRANSLOOP_DEBUG") ? 1 : 0;
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport-helper.c:1321:19: note: '?' condition is true
/datasets/git/transport-helper.c:1322:7: note: 'debug_enabled' is 1
        if (!debug_enabled)
             ^~~~~~~~~~~~~
/datasets/git/transport-helper.c:1322:2: note: Taking false branch
        if (!debug_enabled)
        ^
/datasets/git/transport-helper.c:1326:2: note: Function 'vsnprintf' is called with an uninitialized va_list argument
        vsnprintf(msgbuf, PBUFFERSIZE, fmt, args);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport-helper.c:1328:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(stderr, "Transfer loop debugging: %s\n", msgbuf);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport-helper.c:1328:2: note: cast the expression to void to silence this warning
/datasets/git/transport-helper.c:1346:8: warning: accessing fields in struct 'unidirectional_transfer' is inefficient due to padding; only needs 65580 bytes but is using 65584 bytes [altera-struct-pack-align]
struct unidirectional_transfer {
       ^
/datasets/git/transport-helper.c:1346:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'unidirectional_transfer'
/datasets/git/transport-helper.c:1346:8: warning: accessing fields in struct 'unidirectional_transfer' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct unidirectional_transfer {
       ^
/datasets/git/transport-helper.c:1346:8: note: use "__attribute__((aligned(128)))" to align struct 'unidirectional_transfer' to 128 bytes
/datasets/git/transport-helper.c:1368:67: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
static void udt_close_if_finished(struct unidirectional_transfer *t)
                                                                  ^
/datasets/git/transport-helper.c:1372:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (t->dest_is_sock)
                                    ^
                                     {
/datasets/git/transport-helper.c:1374:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/transport-helper.c:1384:56: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
static int udt_do_read(struct unidirectional_transfer *t)
                                                       ^
/datasets/git/transport-helper.c:1386:10: warning: variable 'bytes' is not initialized [cppcoreguidelines-init-variables]
        ssize_t bytes;
                ^
                      = 0
/datasets/git/transport-helper.c:1388:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (t->bufuse == BUFFERSIZE)
                                    ^
                                     {
/datasets/git/transport-helper.c:1396:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else if (bytes == 0) {
          ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport-helper.c:1411:57: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
static int udt_do_write(struct unidirectional_transfer *t)
                                                        ^
/datasets/git/transport-helper.c:1413:10: warning: variable 'bytes' is not initialized [cppcoreguidelines-init-variables]
        ssize_t bytes;
                ^
                      = 0
/datasets/git/transport-helper.c:1415:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (t->bufuse == 0)
                           ^
                            {
/datasets/git/transport-helper.c:1423:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else if (bytes > 0) {
          ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport-helper.c:1425:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (t->bufuse)
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/transport-helper.c:1426:4: warning: Call to function 'memmove' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memmove_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memmove(t->buf, t->buf + bytes, t->bufuse);
                        ^~~~~~~
/datasets/git/transport-helper.c:1426:4: note: Call to function 'memmove' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memmove_s' in case of C11
                        memmove(t->buf, t->buf + bytes, t->bufuse);
                        ^~~~~~~
/datasets/git/transport-helper.c:1435:8: warning: accessing fields in struct 'bidirectional_transfer_state' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct bidirectional_transfer_state {
       ^
/datasets/git/transport-helper.c:1435:8: note: use "__attribute__((aligned(128)))" to align struct 'bidirectional_transfer_state' to 128 bytes
/datasets/git/transport-helper.c:1444:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct unidirectional_transfer *t = (struct unidirectional_transfer *)udt;
        ^
/datasets/git/transport-helper.c:1444:34: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
        struct unidirectional_transfer *t = (struct unidirectional_transfer *)udt;
                                        ^
/datasets/git/transport-helper.c:1445:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (t->state != SSTATE_FINISHED) {
        ^
/datasets/git/transport-helper.c:1445:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 't' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (t->state != SSTATE_FINISHED) {
               ^
/datasets/git/transport-helper.c:1446:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (STATE_NEEDS_READING(t->state))
                                                  ^
                                                   {
/datasets/git/transport-helper.c:1447:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (udt_do_read(t))
                                           ^
                                            {
/datasets/git/transport-helper.c:1449:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (STATE_NEEDS_WRITING(t->state))
                                                  ^
                                                   {
/datasets/git/transport-helper.c:1450:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (udt_do_write(t))
                                            ^
                                             {
/datasets/git/transport-helper.c:1452:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (STATE_NEEDS_CLOSING(t->state))
                                                  ^
                                                   {
/datasets/git/transport-helper.c:1466:6: warning: variable 'err' is not initialized [cppcoreguidelines-init-variables]
        int err;
            ^
                = 0
/datasets/git/transport-helper.c:1467:8: warning: variable 'tret' is not initialized [cppcoreguidelines-init-variables]
        void *tret;
              ^
                   = NULL
/datasets/git/transport-helper.c:1474:50: warning: function is not thread safe [concurrency-mt-unsafe]
                error(_("%s thread failed to join: %s"), name, strerror(err));
                                                               ^
/datasets/git/transport-helper.c:1484:71: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static int tloop_spawnwait_tasks(struct bidirectional_transfer_state *s)
                                                                      ^
/datasets/git/transport-helper.c:1486:12: warning: variable 'gtp_thread' is not initialized [cppcoreguidelines-init-variables]
        pthread_t gtp_thread;
                  ^
                             = 0
/datasets/git/transport-helper.c:1487:12: warning: variable 'ptg_thread' is not initialized [cppcoreguidelines-init-variables]
        pthread_t ptg_thread;
                  ^
                             = 0
/datasets/git/transport-helper.c:1488:6: warning: variable 'err' is not initialized [cppcoreguidelines-init-variables]
        int err;
            ^
                = 0
/datasets/git/transport-helper.c:1492:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err)
                ^
                 {
/datasets/git/transport-helper.c:1493:53: warning: function is not thread safe [concurrency-mt-unsafe]
                die(_("can't start thread for copying data: %s"), strerror(err));
                                                                  ^
/datasets/git/transport-helper.c:1496:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err)
                ^
                 {
/datasets/git/transport-helper.c:1497:53: warning: function is not thread safe [concurrency-mt-unsafe]
                die(_("can't start thread for copying data: %s"), strerror(err));
                                                                  ^
/datasets/git/transport-helper.c:1499:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ret |= tloop_join(gtp_thread, "Git to program copy");
        ^~~
/datasets/git/transport-helper.c:1500:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ret |= tloop_join(ptg_thread, "Program to git copy");
        ^~~
/datasets/git/transport-helper.c:1616:14: warning: variable 'ref' is not initialized [cppcoreguidelines-init-variables]
        struct ref *ref;
                    ^
                        = NULL
/datasets/git/transport-helper.c:1619:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (ref = remote_refs; ref; ref = ref->next) {
        ^
/datasets/git/transport-helper.c:1619:26: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (ref = remote_refs; ref; ref = ref->next) {
                                ^
/datasets/git/transport-helper.c:1620:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ref->peer_ref && !mirror_mode)
                                                   ^
                                                    {
/datasets/git/transport-helper.c:1633:2: warning: redundant return statement at the end of a function with a void return type [readability-redundant-control-flow]
        return;
        ^~~~~~~
/datasets/git/transport-helper.c:1616:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct ref *ref;
        ^
/datasets/git/transport.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "branch.h"
/datasets/git/transport.c:26:12: warning: variable 'transport_use_color' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int transport_use_color = -1;
           ^
/datasets/git/transport.c:27:13: warning: variable 'transport_colors' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char transport_colors[][COLOR_MAXLEN] = {
            ^
/datasets/git/transport.c:39:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *keys[] = {
        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport.c:43:8: warning: variable 'value' is not initialized [cppcoreguidelines-init-variables]
        char *value;
              ^
                    = NULL
/datasets/git/transport.c:44:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/transport.c:44:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/transport.c:47:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (initialized)
                        ^
                         {
/datasets/git/transport.c:51:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!git_config_get_string(key, &value))
                                                ^
                                                 {
/datasets/git/transport.c:54:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!want_color_stderr(transport_use_color))
                                                    ^
                                                     {
/datasets/git/transport.c:57:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ARRAY_SIZE(keys); i++)
        ^
/datasets/git/transport.c:57:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < ARRAY_SIZE(keys); i++)
                                              ^
                                               {
/datasets/git/transport.c:59:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!value)
                                   ^
                                    {
/datasets/git/transport.c:61:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (color_parse(value, transport_colors[i]) < 0)
                                                                        ^
                                                                         {
/datasets/git/transport.c:68:61: warning: parameter name 'ix' is too short, expected at least 3 characters [readability-identifier-length]
static const char *transport_get_color(enum color_transport ix)
                                                            ^
/datasets/git/transport.c:70:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (want_color_stderr(transport_use_color))
                                                   ^
                                                    {
/datasets/git/transport.c:78:14: warning: variable 'ref' is not initialized [cppcoreguidelines-init-variables]
        struct ref *ref;
                    ^
                        = NULL
/datasets/git/transport.c:79:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (ref = refs; ref; ref = ref->next) {
        ^
/datasets/git/transport.c:79:19: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (ref = refs; ref; ref = ref->next) {
                         ^
/datasets/git/transport.c:80:15: warning: variable 'localname' is not initialized [cppcoreguidelines-init-variables]
                const char *localname;
                            ^
                                      = NULL
/datasets/git/transport.c:81:15: warning: variable 'tmp' is not initialized [cppcoreguidelines-init-variables]
                const char *tmp;
                            ^
                                = NULL
/datasets/git/transport.c:82:15: warning: variable 'remotename' is not initialized [cppcoreguidelines-init-variables]
                const char *remotename;
                            ^
                                       = NULL
/datasets/git/transport.c:89:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        ref->status != REF_STATUS_UPTODATE)
                                                           ^
                                                            {
/datasets/git/transport.c:91:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ref->peer_ref)
                                   ^
                                    {
/datasets/git/transport.c:93:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_null_oid(&ref->new_oid))
                                               ^
                                                {
/datasets/git/transport.c:101:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (tmp && flag & REF_ISSYMREF &&
                           ^~~~
/datasets/git/transport.c:102:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        starts_with(tmp, "refs/heads/"))
                                                        ^
                                                         {
/datasets/git/transport.c:106:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!localname || !starts_with(localname, "refs/heads/"))
                                                                         ^
                                                                          {
/datasets/git/transport.c:108:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!remotename || !starts_with(remotename, "refs/heads/"))
                                                                           ^
                                                                            {
/datasets/git/transport.c:113:44: warning: 11 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        install_branch_config(flag, localname + 11,
                                                                ^
/datasets/git/transport.c:115:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else if (transport->verbose >= 0)
                                                   ^
                                                    {
/datasets/git/transport.c:117:17: warning: 11 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                localname + 11, remotename + 11,
                                            ^
/datasets/git/transport.c:117:34: warning: 11 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                localname + 11, remotename + 11,
                                                             ^
/datasets/git/transport.c:122:8: warning: accessing fields in struct 'bundle_transport_data' is inefficient due to padding; only needs 192 bytes but is using 200 bytes [altera-struct-pack-align]
struct bundle_transport_data {
       ^
/datasets/git/transport.c:122:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'bundle_transport_data'
/datasets/git/transport.c:122:8: warning: accessing fields in struct 'bundle_transport_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct bundle_transport_data {
       ^
/datasets/git/transport.c:122:8: note: use "__attribute__((aligned(128)))" to align struct 'bundle_transport_data' to 128 bytes
/datasets/git/transport.c:134:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (data->fd > 0)
                         ^
                          {
/datasets/git/transport.c:137:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (data->fd < 0)
                         ^
                          {
/datasets/git/transport.c:149:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/transport.c:149:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/transport.c:151:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (for_push)
                     ^
                      {
/datasets/git/transport.c:156:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < data->header.references.nr; i++) {
        ^
/datasets/git/transport.c:156:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'data' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < data->header.references.nr; i++) {
                    ^
/datasets/git/transport.c:157:28: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                struct string_list_item *e = data->header.references.items + i;
                                         ^
/datasets/git/transport.c:169:15: warning: parameter 'nr_heads' is unused [misc-unused-parameters]
                               int nr_heads, struct ref **to_fetch)
                                   ^
/datasets/git/transport.c:169:38: warning: parameter 'to_fetch' is unused [misc-unused-parameters]
                               int nr_heads, struct ref **to_fetch)
                                                          ^
/datasets/git/transport.c:173:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/transport.c:175:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (transport->progress)
                                ^
                                 {
/datasets/git/transport.c:178:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!data->get_refs_from_bundle_called)
                                               ^
                                                {
/datasets/git/transport.c:189:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (data->fd > 0)
                         ^
                          {
/datasets/git/transport.c:196:8: warning: accessing fields in struct 'git_transport_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct git_transport_data {
       ^
/datasets/git/transport.c:196:8: note: use "__attribute__((aligned(128)))" to align struct 'git_transport_data' to 128 bytes
/datasets/git/transport.c:207:6: warning: 2 adjacent parameters of 'set_git_option' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                          const char *name, const char *value)
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport.c:207:18: note: the first parameter in the range is 'name'
                          const char *name, const char *value)
                                      ^~~~
/datasets/git/transport.c:207:36: note: the last parameter in the range is 'value'
                          const char *name, const char *value)
                                                        ^~~~~
/datasets/git/transport.c:212:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else if (!strcmp(name, TRANS_OPT_RECEIVEPACK)) {
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport.c:228:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/transport.c:231:10: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
                        char *end;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/transport.c:232:18: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        opts->depth = strtol(value, &end, 0);
                                      ^
/datasets/git/transport.c:233:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (*end)
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/transport.c:266:39: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int flags = transport->verbose > 0 ? CONNECT_VERBOSE : 0;
                                             ^
/datasets/git/./connect.h:6:32: note: expanded from macro 'CONNECT_VERBOSE'
#define CONNECT_VERBOSE       (1u << 0)
                               ^     ~
/datasets/git/transport.c:268:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (data->conn)
                       ^
                        {
/datasets/git/transport.c:273:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        case TRANSPORT_FAMILY_IPV4: flags |= CONNECT_IPV4; break;
                                    ^~~~~
/datasets/git/transport.c:273:39: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        case TRANSPORT_FAMILY_IPV4: flags |= CONNECT_IPV4; break;
                                             ^
/datasets/git/./connect.h:8:32: note: expanded from macro 'CONNECT_IPV4'
#define CONNECT_IPV4          (1u << 2)
                               ^     ~
/datasets/git/transport.c:274:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        case TRANSPORT_FAMILY_IPV6: flags |= CONNECT_IPV6; break;
                                    ^~~~~
/datasets/git/transport.c:274:39: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        case TRANSPORT_FAMILY_IPV6: flags |= CONNECT_IPV6; break;
                                             ^
/datasets/git/./connect.h:9:32: note: expanded from macro 'CONNECT_IPV6'
#define CONNECT_IPV6          (1u << 3)
                               ^     ~
/datasets/git/transport.c:287:67: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!transport->server_options || !transport->server_options->nr)
                                                                         ^
                                                                          {
/datasets/git/transport.c:309:6: warning: variable 'sid_len' is not initialized [cppcoreguidelines-init-variables]
        int sid_len;
            ^
                    = 0
/datasets/git/transport.c:310:14: warning: variable 'server_sid' is not initialized [cppcoreguidelines-init-variables]
        const char *server_sid;
                    ^
                               = NULL
/datasets/git/transport.c:315:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                           PACKET_READ_CHOMP_NEWLINE |
                           ^
/datasets/git/./pkt-line.h:85:43: note: expanded from macro 'PACKET_READ_CHOMP_NEWLINE'
#define PACKET_READ_CHOMP_NEWLINE        (1u<<1)
                                          ^   ~
/datasets/git/transport.c:316:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                           PACKET_READ_GENTLE_ON_EOF |
                           ^
/datasets/git/./pkt-line.h:84:43: note: expanded from macro 'PACKET_READ_GENTLE_ON_EOF'
#define PACKET_READ_GENTLE_ON_EOF        (1u<<0)
                                          ^   ~
/datasets/git/transport.c:317:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                           PACKET_READ_DIE_ON_ERR_PACKET);
                           ^
/datasets/git/./pkt-line.h:86:43: note: expanded from macro 'PACKET_READ_DIE_ON_ERR_PACKET'
#define PACKET_READ_DIE_ON_ERR_PACKET    (1u<<2)
                                          ^   ~
/datasets/git/transport.c:322:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (server_feature_v2("session-id", &server_sid))
                                                                 ^
                                                                  {
/datasets/git/transport.c:324:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (must_list_refs)
                                   ^
                                    {
/datasets/git/transport.c:334:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                 for_push ? REF_NORMAL : 0,
                                            ^
/datasets/git/./remote.h:201:21: note: expanded from macro 'REF_NORMAL'
#define REF_NORMAL      (1u << 0)
                         ^     ~
/datasets/git/transport.c:350:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (reader.line_peeked)
                               ^
                                {
/datasets/git/transport.c:371:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&args, 0, sizeof(args));
        ^~~~~~
/datasets/git/transport.c:371:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&args, 0, sizeof(args));
        ^~~~~~
/datasets/git/transport.c:398:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/transport.c:398:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/transport.c:400:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < nr_heads; i++) {
                ^
/datasets/git/transport.c:409:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (data->version == protocol_unknown_version)
                                                      ^
                                                       {
/datasets/git/transport.c:411:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (data->version <= protocol_v1)
                                              ^
                                               {
/datasets/git/transport.c:442:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!refs)
                  ^
                   {
/datasets/git/transport.c:444:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (report_unmatched_refs(to_fetch, nr_heads))
                                                      ^
                                                       {
/datasets/git/transport.c:449:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (data->fd[1] >= 0)
                             ^
                              {
/datasets/git/transport.c:451:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (finish_connect(data->conn))
                                       ^
                                        {
/datasets/git/transport.c:463:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; ref; ref = ref->next) {
        ^
/datasets/git/transport.c:476:27: note: inferred assignment of ID-dependent value from ID-dependent member next [altera-id-dependent-backward-branch]
int transport_refs_pushed(struct ref *ref)
                          ^
/datasets/git/transport.c:463:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; ref; ref = ref->next) {
               ^
/datasets/git/transport.c:478:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; ref; ref = ref->next) {
        ^
/datasets/git/transport.c:478:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; ref; ref = ref->next) {
               ^
/datasets/git/transport.c:491:36: warning: 2 adjacent parameters of 'update_one_tracking_ref' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                    struct object_id *new_oid, int deletion,
                                                               ^~~~~~~~~~~~~
/datasets/git/transport.c:491:40: note: the first parameter in the range is 'deletion'
                                    struct object_id *new_oid, int deletion,
                                                                   ^~~~~~~~
/datasets/git/transport.c:492:13: note: the last parameter in the range is 'verbose'
                                    int verbose)
                                        ^~~~~~~
/datasets/git/transport.c:494:22: warning: variable name 'rs' is too short, expected at least 3 characters [readability-identifier-length]
        struct refspec_item rs;
                            ^
/datasets/git/transport.c:496:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&rs, 0, sizeof(rs));
        ^~~~~~
/datasets/git/transport.c:496:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&rs, 0, sizeof(rs));
        ^~~~~~
/datasets/git/transport.c:501:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (verbose)
                            ^
                             {
/datasets/git/transport.c:502:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, "updating local tracking ref '%s'\n", rs.dst);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport.c:502:4: note: cast the expression to void to silence this warning
/datasets/git/transport.c:503:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (deletion)
                             ^
                              {
/datasets/git/transport.c:505:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/transport.c:514:8: warning: variable 'refname' is not initialized [cppcoreguidelines-init-variables]
        char *refname;
              ^
                      = NULL
/datasets/git/transport.c:515:20: warning: variable 'new_oid' is not initialized [cppcoreguidelines-init-variables]
        struct object_id *new_oid;
                          ^
                                  = NULL
/datasets/git/transport.c:516:26: warning: variable 'report' is not initialized [cppcoreguidelines-init-variables]
        struct ref_push_report *report;
                                ^
                                       = NULL
/datasets/git/transport.c:516:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct ref_push_report *report;
        ^
/datasets/git/transport.c:518:73: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ref->status != REF_STATUS_OK && ref->status != REF_STATUS_UPTODATE)
                                                                               ^
                                                                                {
/datasets/git/transport.c:522:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!report)
                    ^
                     {
/datasets/git/transport.c:525:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/transport.c:526:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (; report; report = report->next) {
                ^
/datasets/git/transport.c:526:10: warning: backward branch (for loop) is ID-dependent due to variable reference to 'report' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (; report; report = report->next) {
                       ^
/datasets/git/transport.c:535:21: warning: parameter name 'to' is too short, expected at least 3 characters [readability-identifier-length]
                             struct ref *to, struct ref *from, const char *msg,
                                         ^
/datasets/git/transport.c:537:9: warning: 2 adjacent parameters of 'print_ref_status' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                             int porcelain, int summary_width)
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport.c:537:13: note: the first parameter in the range is 'porcelain'
                             int porcelain, int summary_width)
                                 ^~~~~~~~~
/datasets/git/transport.c:537:28: note: the last parameter in the range is 'summary_width'
                             int porcelain, int summary_width)
                                                ^~~~~~~~~~~~~
/datasets/git/transport.c:539:14: warning: variable 'to_name' is not initialized [cppcoreguidelines-init-variables]
        const char *to_name;
                    ^
                            = NULL
/datasets/git/transport.c:541:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (report && report->ref_name)
                                       ^
                                        {
/datasets/git/transport.c:543:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/transport.c:547:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (from)
                         ^
                          {
/datasets/git/transport.c:548:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stdout, "%c\t%s:%s\t", flag, from->name, to_name);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport.c:548:4: note: cast the expression to void to silence this warning
/datasets/git/transport.c:549:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/transport.c:550:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stdout, "%c\t:%s\t", flag, to_name);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport.c:550:4: note: cast the expression to void to silence this warning
/datasets/git/transport.c:551:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (msg)
                        ^
                         {
/datasets/git/transport.c:552:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stdout, "%s (%s)\n", summary, msg);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport.c:552:4: note: cast the expression to void to silence this warning
/datasets/git/transport.c:553:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/transport.c:554:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stdout, "%s\n", summary);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport.c:554:4: note: cast the expression to void to silence this warning
/datasets/git/transport.c:556:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                const char *red = "", *reset = "";
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport.c:561:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, " %s%c %-*s%s ", red, flag, summary_width,
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport.c:561:3: note: cast the expression to void to silence this warning
/datasets/git/transport.c:563:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (from)
                         ^
                          {
/datasets/git/transport.c:564:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, "%s -> %s",
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport.c:564:4: note: cast the expression to void to silence this warning
/datasets/git/transport.c:567:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/transport.c:568:4: warning: the value returned by this function should be used [cert-err33-c]
                        fputs(prettify_refname(to_name), stderr);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport.c:568:4: note: cast the expression to void to silence this warning
/datasets/git/transport.c:570:4: warning: the value returned by this function should be used [cert-err33-c]
                        fputs(" (", stderr);
                        ^~~~~~~~~~~~~~~~~~~
/datasets/git/transport.c:570:4: note: cast the expression to void to silence this warning
/datasets/git/transport.c:571:4: warning: the value returned by this function should be used [cert-err33-c]
                        fputs(msg, stderr);
                        ^~~~~~~~~~~~~~~~~~
/datasets/git/transport.c:571:4: note: cast the expression to void to silence this warning
/datasets/git/transport.c:572:4: warning: the value returned by this function should be used [cert-err33-c]
                        fputc(')', stderr);
                        ^~~~~~~~~~~~~~~~~~
/datasets/git/transport.c:572:4: note: cast the expression to void to silence this warning
/datasets/git/transport.c:574:3: warning: the value returned by this function should be used [cert-err33-c]
                fputc('\n', stderr);
                ^~~~~~~~~~~~~~~~~~~
/datasets/git/transport.c:574:3: note: cast the expression to void to silence this warning
/datasets/git/transport.c:582:20: warning: variable 'old_oid' is not initialized [cppcoreguidelines-init-variables]
        struct object_id *old_oid;
                          ^
                                  = NULL
/datasets/git/transport.c:583:20: warning: variable 'new_oid' is not initialized [cppcoreguidelines-init-variables]
        struct object_id *new_oid;
                          ^
                                  = NULL
/datasets/git/transport.c:584:14: warning: variable 'ref_name' is not initialized [cppcoreguidelines-init-variables]
        const char *ref_name;
                    ^
                             = NULL
/datasets/git/transport.c:585:6: warning: variable 'forced_update' is not initialized [cppcoreguidelines-init-variables]
        int forced_update;
            ^
                          = 0
/datasets/git/transport.c:587:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (report && report->old_oid)
                                      ^
                                       {
/datasets/git/transport.c:589:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/transport.c:591:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (report && report->new_oid)
                                      ^
                                       {
/datasets/git/transport.c:593:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/transport.c:595:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (report && report->forced_update)
                                            ^
                                             {
/datasets/git/transport.c:597:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/transport.c:599:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (report && report->ref_name)
                                       ^
                                        {
/datasets/git/transport.c:601:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/transport.c:604:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ref->deletion)
                          ^
                           {
/datasets/git/transport.c:607:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (is_null_oid(old_oid))
                                      ^
                                       {
/datasets/git/transport.c:618:8: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
                char type;
                     ^
                          = 0
/datasets/git/transport.c:619:15: warning: variable 'msg' is not initialized [cppcoreguidelines-init-variables]
                const char *msg;
                            ^
                                = NULL
/datasets/git/transport.c:647:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(porcelain ? stdout : stderr, "To %s\n", url);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport.c:647:3: note: cast the expression to void to silence this warning
/datasets/git/transport.c:729:26: warning: variable 'report' is not initialized [cppcoreguidelines-init-variables]
        struct ref_push_report *report;
                                ^
                                       = NULL
/datasets/git/transport.c:730:6: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
        int n = 0;
            ^
/datasets/git/transport.c:732:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ref->report)
                         ^
                          {
/datasets/git/transport.c:736:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (report = ref->report; report; report = report->next)
        ^
/datasets/git/transport.c:736:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'report' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (report = ref->report; report; report = report->next)
                                   ^
/datasets/git/transport.c:736:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (report = ref->report; report; report = report->next)
                                                                 ^
                                                                  {
/datasets/git/transport.c:745:6: warning: variable name 'w' is too short, expected at least 3 characters [readability-identifier-length]
        int w = find_unique_abbrev_r(hex, oid, DEFAULT_ABBREV);
            ^
/datasets/git/transport.c:750:29: note: inferred assignment of ID-dependent value from ID-dependent member next [altera-id-dependent-backward-branch]
int transport_summary_width(const struct ref *refs)
                            ^
/datasets/git/transport.c:754:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; refs; refs = refs->next) {
        ^
/datasets/git/transport.c:754:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'refs' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; refs; refs = refs->next) {
               ^
/datasets/git/transport.c:758:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (maxw < 0)
                     ^
                      {
/datasets/git/transport.c:764:7: warning: 2 adjacent parameters of 'transport_print_push_status' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                  int verbose, int porcelain, unsigned int *reject_reasons)
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport.c:764:11: note: the first parameter in the range is 'verbose'
                                  int verbose, int porcelain, unsigned int *reject_reasons)
                                      ^~~~~~~
/datasets/git/transport.c:764:24: note: the last parameter in the range is 'porcelain'
                                  int verbose, int porcelain, unsigned int *reject_reasons)
                                                   ^~~~~~~~~
/datasets/git/transport.c:766:14: warning: variable 'ref' is not initialized [cppcoreguidelines-init-variables]
        struct ref *ref;
                    ^
                        = NULL
/datasets/git/transport.c:767:6: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
        int n = 0;
            ^
/datasets/git/transport.c:768:8: warning: variable 'head' is not initialized [cppcoreguidelines-init-variables]
        char *head;
              ^
                   = NULL
/datasets/git/transport.c:771:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (transport_color_config() < 0)
                                         ^
                                          {
/datasets/git/transport.c:777:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (ref = refs; ref; ref = ref->next)
                ^
/datasets/git/transport.c:777:20: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (ref = refs; ref; ref = ref->next)
                                 ^
/datasets/git/transport.c:777:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (ref = refs; ref; ref = ref->next)
                                                      ^
                                                       {
/datasets/git/transport.c:778:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ref->status == REF_STATUS_UPTODATE)
                                                               ^
                                                                {
/datasets/git/transport.c:783:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (ref = refs; ref; ref = ref->next)
        ^
/datasets/git/transport.c:766:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct ref *ref;
        ^
/datasets/git/transport.c:783:19: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (ref = refs; ref; ref = ref->next)
                         ^
/datasets/git/transport.c:783:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (ref = refs; ref; ref = ref->next)
                                              ^
                                               {
/datasets/git/transport.c:784:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ref->status == REF_STATUS_OK)
                                                 ^
                                                  {
/datasets/git/transport.c:789:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (ref = refs; ref; ref = ref->next) {
        ^
/datasets/git/transport.c:789:19: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (ref = refs; ref; ref = ref->next) {
                         ^
/datasets/git/transport.c:792:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    ref->status != REF_STATUS_OK)
                                                 ^
                                                  {
/datasets/git/transport.c:796:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (head != NULL && !strcmp(head, ref->name))
                                                                     ^
                                                                      {
/datasets/git/transport.c:797:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                *reject_reasons |= REJECT_NON_FF_HEAD;
                                ^
/datasets/git/transport.c:798:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/transport.c:799:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                *reject_reasons |= REJECT_NON_FF_OTHER;
                                ^
/datasets/git/transport.c:801:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        *reject_reasons |= REJECT_ALREADY_EXISTS;
                        ^
/datasets/git/transport.c:803:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        *reject_reasons |= REJECT_FETCH_FIRST;
                        ^
/datasets/git/transport.c:805:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        *reject_reasons |= REJECT_NEEDS_FORCE;
                        ^
/datasets/git/transport.c:807:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        *reject_reasons |= REJECT_REF_NEEDS_UPDATE;
                        ^
/datasets/git/transport.c:819:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (transport_color_config() < 0)
                                         ^
                                          {
/datasets/git/transport.c:822:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!data->got_remote_heads)
                                    ^
                                     {
/datasets/git/transport.c:825:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&args, 0, sizeof(args));
        ^~~~~~
/datasets/git/transport.c:825:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&args, 0, sizeof(args));
        ^~~~~~
/datasets/git/transport.c:826:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        args.send_mirror = !!(flags & TRANSPORT_PUSH_MIRROR);
                              ^~~~~
/datasets/git/transport.c:826:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        args.send_mirror = !!(flags & TRANSPORT_PUSH_MIRROR);
                                      ^
/datasets/git/./transport.h:134:34: note: expanded from macro 'TRANSPORT_PUSH_MIRROR'
#define TRANSPORT_PUSH_MIRROR                   (1<<3)
                                                 ^
/datasets/git/transport.c:827:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        args.force_update = !!(flags & TRANSPORT_PUSH_FORCE);
                               ^~~~~
/datasets/git/transport.c:827:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        args.force_update = !!(flags & TRANSPORT_PUSH_FORCE);
                                       ^
/datasets/git/./transport.h:132:33: note: expanded from macro 'TRANSPORT_PUSH_FORCE'
#define TRANSPORT_PUSH_FORCE                    (1<<1)
                                                 ^
/datasets/git/transport.c:832:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        args.dry_run = !!(flags & TRANSPORT_PUSH_DRY_RUN);
                          ^~~~~
/datasets/git/transport.c:832:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        args.dry_run = !!(flags & TRANSPORT_PUSH_DRY_RUN);
                                  ^
/datasets/git/./transport.h:133:35: note: expanded from macro 'TRANSPORT_PUSH_DRY_RUN'
#define TRANSPORT_PUSH_DRY_RUN                  (1<<2)
                                                 ^
/datasets/git/transport.c:833:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        args.porcelain = !!(flags & TRANSPORT_PUSH_PORCELAIN);
                            ^~~~~
/datasets/git/transport.c:833:30: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        args.porcelain = !!(flags & TRANSPORT_PUSH_PORCELAIN);
                                    ^
/datasets/git/./transport.h:135:36: note: expanded from macro 'TRANSPORT_PUSH_PORCELAIN'
#define TRANSPORT_PUSH_PORCELAIN                (1<<4)
                                                 ^
/datasets/git/transport.c:834:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        args.atomic = !!(flags & TRANSPORT_PUSH_ATOMIC);
                         ^~~~~
/datasets/git/transport.c:834:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        args.atomic = !!(flags & TRANSPORT_PUSH_ATOMIC);
                                 ^
/datasets/git/./transport.h:144:34: note: expanded from macro 'TRANSPORT_PUSH_ATOMIC'
#define TRANSPORT_PUSH_ATOMIC                   (1<<13)
                                                 ^
/datasets/git/transport.c:838:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & TRANSPORT_PUSH_CERT_ALWAYS)
            ^~~~~
/datasets/git/transport.c:838:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & TRANSPORT_PUSH_CERT_ALWAYS)
                    ^
/datasets/git/./transport.h:142:38: note: expanded from macro 'TRANSPORT_PUSH_CERT_ALWAYS'
#define TRANSPORT_PUSH_CERT_ALWAYS              (1<<11)
                                                 ^
/datasets/git/transport.c:838:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & TRANSPORT_PUSH_CERT_ALWAYS)
                                               ^
                                                {
/datasets/git/transport.c:840:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        else if (flags & TRANSPORT_PUSH_CERT_IF_ASKED)
                 ^~~~~
/datasets/git/transport.c:840:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        else if (flags & TRANSPORT_PUSH_CERT_IF_ASKED)
                         ^
/datasets/git/./transport.h:143:40: note: expanded from macro 'TRANSPORT_PUSH_CERT_IF_ASKED'
#define TRANSPORT_PUSH_CERT_IF_ASKED            (1<<12)
                                                 ^
/datasets/git/transport.c:840:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (flags & TRANSPORT_PUSH_CERT_IF_ASKED)
                                                      ^
                                                       {
/datasets/git/transport.c:842:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/transport.c:865:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret || args.atomic)
                               ^
                                {
/datasets/git/transport.c:867:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/transport.c:875:53: warning: 2 adjacent parameters of 'connect_git' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int connect_git(struct transport *transport, const char *name,
                                                    ^~~~~~~~~~~~~~~~~
/datasets/git/transport.c:875:65: note: the first parameter in the range is 'name'
static int connect_git(struct transport *transport, const char *name,
                                                                ^~~~
/datasets/git/transport.c:876:22: note: the last parameter in the range is 'executable'
                       const char *executable, int fd[2])
                                   ^~~~~~~~~~
/datasets/git/transport.c:875:65: warning: parameter 'name' is unused [misc-unused-parameters]
static int connect_git(struct transport *transport, const char *name,
                                                                ^
/datasets/git/transport.c:876:38: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
                       const char *executable, int fd[2])
                                                   ^
/datasets/git/transport.c:890:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (data->got_remote_heads && !transport->stateless_rpc)
                                                                        ^
                                                                         {
/datasets/git/transport.c:893:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (data->fd[1] >= 0)
                                     ^
                                      {
/datasets/git/transport.c:903:32: warning: variable 'taken_over_vtable' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct transport_vtable taken_over_vtable = {
                               ^
/datasets/git/transport.c:913:29: warning: variable 'data' is not initialized [cppcoreguidelines-init-variables]
        struct git_transport_data *data;
                                   ^
                                        = NULL
/datasets/git/transport.c:915:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!transport->smart_options)
                                      ^
                                       {
/datasets/git/transport.c:936:6: warning: Null pointer passed to 1st parameter expecting 'nonnull' [clang-analyzer-core.NonNullParamChecker]
        if (stat(url, &buf))
            ^
/datasets/git/transport.c:1071:6: note: Assuming 'remote' is non-null
        if (!remote)
            ^~~~~~~
/datasets/git/transport.c:1071:2: note: Taking false branch
        if (!remote)
        ^
/datasets/git/transport.c:1078:6: note: Assuming 'url' is null
        if (!url && remote->url)
            ^~~~
/datasets/git/transport.c:1078:6: note: Left side of '&&' is true
/datasets/git/transport.c:1078:14: note: Assuming field 'url' is null
        if (!url && remote->url)
                    ^~~~~~~~~~~
/datasets/git/transport.c:1078:2: note: Taking false branch
        if (!url && remote->url)
        ^
/datasets/git/transport.c:1083:6: note: 'url' is null
        if (url) {
            ^~~
/datasets/git/transport.c:1083:2: note: Taking false branch
        if (url) {
        ^
/datasets/git/transport.c:1092:6: note: Assuming 'helper' is null
        if (helper) {
            ^~~~~~
/datasets/git/transport.c:1092:2: note: Taking false branch
        if (helper) {
        ^
/datasets/git/transport.c:1094:13: note: Assuming the condition is false
        } else if (starts_with(url, "rsync:")) {
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport.c:1094:9: note: Taking false branch
        } else if (starts_with(url, "rsync:")) {
               ^
/datasets/git/transport.c:1096:13: note: Assuming the condition is true
        } else if (url_is_local_not_ssh(url) && is_file(url) && is_bundle(url, 1)) {
                   ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport.c:1096:13: note: Left side of '&&' is true
/datasets/git/transport.c:1096:50: note: Passing null pointer value via 1st parameter 'url'
        } else if (url_is_local_not_ssh(url) && is_file(url) && is_bundle(url, 1)) {
                                                        ^~~
/datasets/git/transport.c:1096:42: note: Calling 'is_file'
        } else if (url_is_local_not_ssh(url) && is_file(url) && is_bundle(url, 1)) {
                                                ^~~~~~~~~~~~
/datasets/git/transport.c:936:6: note: Null pointer passed to 1st parameter expecting 'nonnull'
        if (stat(url, &buf))
            ^    ~~~
/datasets/git/transport.c:936:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (stat(url, &buf))
                            ^
                             {
/datasets/git/transport.c:943:9: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return strchr(url, ':') - url;
               ^
/datasets/git/transport.c:943:9: warning: Null pointer passed to 1st parameter expecting 'nonnull' [clang-analyzer-core.NonNullParamChecker]
/datasets/git/transport.c:1071:6: note: Assuming 'remote' is non-null
        if (!remote)
            ^~~~~~~
/datasets/git/transport.c:1071:2: note: Taking false branch
        if (!remote)
        ^
/datasets/git/transport.c:1078:6: note: Assuming 'url' is null
        if (!url && remote->url)
            ^~~~
/datasets/git/transport.c:1078:6: note: Left side of '&&' is true
/datasets/git/transport.c:1078:14: note: Assuming field 'url' is null
        if (!url && remote->url)
                    ^~~~~~~~~~~
/datasets/git/transport.c:1078:2: note: Taking false branch
        if (!url && remote->url)
        ^
/datasets/git/transport.c:1083:6: note: 'url' is null
        if (url) {
            ^~~
/datasets/git/transport.c:1083:2: note: Taking false branch
        if (url) {
        ^
/datasets/git/transport.c:1092:6: note: Assuming 'helper' is null
        if (helper) {
            ^~~~~~
/datasets/git/transport.c:1092:2: note: Taking false branch
        if (helper) {
        ^
/datasets/git/transport.c:1094:13: note: Assuming the condition is false
        } else if (starts_with(url, "rsync:")) {
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport.c:1094:9: note: Taking false branch
        } else if (starts_with(url, "rsync:")) {
               ^
/datasets/git/transport.c:1096:13: note: Assuming the condition is false
        } else if (url_is_local_not_ssh(url) && is_file(url) && is_bundle(url, 1)) {
                   ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport.c:1096:39: note: Left side of '&&' is false
        } else if (url_is_local_not_ssh(url) && is_file(url) && is_bundle(url, 1)) {
                                             ^
/datasets/git/transport.c:1103:13: note: Assuming the condition is false
        } else if (!is_url(url)
                   ^~~~~~~~~~~~
/datasets/git/transport.c:1103:13: note: Left side of '||' is false
/datasets/git/transport.c:1104:6: note: Assuming the condition is false
                || starts_with(url, "file://")
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport.c:1103:13: note: Left side of '||' is false
        } else if (!is_url(url)
                   ^
/datasets/git/transport.c:1105:6: note: Assuming the condition is false
                || starts_with(url, "git://")
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport.c:1103:13: note: Left side of '||' is false
        } else if (!is_url(url)
                   ^
/datasets/git/transport.c:1106:6: note: Assuming the condition is false
                || starts_with(url, "ssh://")
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport.c:1103:13: note: Left side of '||' is false
        } else if (!is_url(url)
                   ^
/datasets/git/transport.c:1107:6: note: Assuming the condition is false
                || starts_with(url, "git+ssh://") /* deprecated - do not use */
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport.c:1103:13: note: Left side of '||' is false
        } else if (!is_url(url)
                   ^
/datasets/git/transport.c:1108:6: note: Assuming the condition is false
                || starts_with(url, "ssh+git://") /* deprecated - do not use */
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport.c:1103:9: note: Taking false branch
        } else if (!is_url(url)
               ^
/datasets/git/transport.c:1124:40: note: Passing null pointer value via 1st parameter 'url'
                int len = external_specification_len(url);
                                                     ^~~
/datasets/git/transport.c:1124:13: note: Calling 'external_specification_len'
                int len = external_specification_len(url);
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport.c:943:9: note: Null pointer passed to 1st parameter expecting 'nonnull'
        return strchr(url, ':') - url;
               ^      ~~~
/datasets/git/transport.c:952:15: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
                const char *v = getenv("GIT_ALLOW_PROTOCOL");
                            ^
/datasets/git/transport.c:952:19: warning: function is not thread safe [concurrency-mt-unsafe]
                const char *v = getenv("GIT_ALLOW_PROTOCOL");
                                ^
/datasets/git/transport.c:974:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcasecmp(value, "always"))
                                         ^
                                          {
/datasets/git/transport.c:976:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (!strcasecmp(value, "never"))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport.c:976:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcasecmp(value, "never"))
                                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/transport.c:978:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcasecmp(value, "user"))
                                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/transport.c:987:8: warning: variable 'value' is not initialized [cppcoreguidelines-init-variables]
        char *value;
              ^
                    = NULL
/datasets/git/transport.c:1012:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !strcmp(type, "ssh"))
                                 ^
                                  {
/datasets/git/transport.c:1016:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(type, "ext"))
                                 ^
                                  {
/datasets/git/transport.c:1026:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (allow_list)
                       ^
                        {
/datasets/git/transport.c:1035:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (from_user < 0)
                                  ^
                                   {
/datasets/git/transport.c:1045:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_transport_allowed(type, -1))
                                            ^
                                             {
/datasets/git/transport.c:1049:32: warning: variable 'bundle_vtable' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct transport_vtable bundle_vtable = {
                               ^
/datasets/git/transport.c:1055:32: warning: variable 'builtin_smart_vtable' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct transport_vtable builtin_smart_vtable = {
                               ^
/datasets/git/transport.c:1065:14: warning: variable 'helper' is not initialized [cppcoreguidelines-init-variables]
        const char *helper;
                    ^
                           = NULL
/datasets/git/transport.c:1071:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!remote)
                    ^
                     {
/datasets/git/transport.c:1078:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!url && remote->url)
                                ^
                                 {
/datasets/git/transport.c:1084:15: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                const char *p = url;
                            ^
/datasets/git/transport.c:1086:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (is_urlschemechar(p == url, *p))
                ^
/datasets/git/transport.c:1086:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (is_urlschemechar(p == url, *p))
                       ^
/datasets/git/transport.c:1086:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (is_urlschemechar(p == url, *p))
                                                      ^
                                                       {
/datasets/git/transport.c:1088:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (starts_with(p, "::"))
                                         ^
                                          {
/datasets/git/transport.c:1132:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (remote->uploadpack)
                                       ^
                                        {
/datasets/git/transport.c:1135:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (remote->receivepack)
                                        ^
                                         {
/datasets/git/transport.c:1152:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int git_reports = 1, protocol_reports = 1;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport.c:1154:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (transport->smart_options)
                                     ^
                                      {
/datasets/git/transport.c:1158:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (transport->vtable->set_option)
                                          ^
                                           {
/datasets/git/transport.c:1163:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!git_reports || !protocol_reports)
                                              ^
                                               {
/datasets/git/transport.c:1166:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((git_reports == -1) || (protocol_reports == -1))
                                                            ^
                                                             {
/datasets/git/transport.c:1172:59: warning: 2 adjacent parameters of 'transport_set_verbosity' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
void transport_set_verbosity(struct transport *transport, int verbosity,
                                                          ^~~~~~~~~~~~~~
/datasets/git/transport.c:1172:63: note: the first parameter in the range is 'verbosity'
void transport_set_verbosity(struct transport *transport, int verbosity,
                                                              ^~~~~~~~~
/datasets/git/transport.c:1173:6: note: the last parameter in the range is 'force_progress'
        int force_progress)
            ^~~~~~~~~~~~~~
/datasets/git/transport.c:1175:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (verbosity >= 1)
                           ^
                            {
/datasets/git/transport.c:1177:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (verbosity < 0)
                          ^
                           {
/datasets/git/transport.c:1189:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (force_progress >= 0)
                                ^
                                 {
/datasets/git/transport.c:1191:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/transport.c:1197:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/transport.c:1197:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/transport.c:1199:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(stderr, _("The following submodule paths contain changes that can\n"
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport.c:1199:2: note: cast the expression to void to silence this warning
/datasets/git/transport.c:1201:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < needs_pushing->nr; i++)
        ^
/datasets/git/transport.c:1201:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < needs_pushing->nr; i++)
                                               ^
                                                {
/datasets/git/transport.c:1202:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "  %s\n", needs_pushing->items[i].string);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport.c:1202:3: note: cast the expression to void to silence this warning
/datasets/git/transport.c:1203:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(stderr, _("\nPlease try\n\n"
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport.c:1203:2: note: cast the expression to void to silence this warning
/datasets/git/transport.c:1217:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int ret = 0, x;
        ^~~~~~~~~~~~~~~
/datasets/git/transport.c:1217:15: warning: variable 'x' is not initialized [cppcoreguidelines-init-variables]
        int ret = 0, x;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/transport.c:1217:15: warning: variable name 'x' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/transport.c:1218:14: warning: variable 'r' is not initialized [cppcoreguidelines-init-variables]
        struct ref *r;
                    ^
                      = NULL
/datasets/git/transport.c:1218:14: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/transport.c:1223:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!hook_path)
                       ^
                        {
/datasets/git/transport.c:1240:20: warning: 256 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        strbuf_init(&buf, 256);
                          ^
/datasets/git/transport.c:1242:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (r = remote_refs; r; r = r->next) {
        ^
/datasets/git/transport.c:1242:24: warning: backward branch (for loop) is ID-dependent due to variable reference to 'r' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (r = remote_refs; r; r = r->next) {
                              ^
/datasets/git/transport.c:1243:20: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                if (!r->peer_ref) continue;
                                 ^
                                  {
/datasets/git/transport.c:1244:53: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                if (r->status == REF_STATUS_REJECT_NONFASTFORWARD) continue;
                                                                  ^
                                                                   {
/datasets/git/transport.c:1245:44: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                if (r->status == REF_STATUS_REJECT_STALE) continue;
                                                         ^
                                                          {
/datasets/git/transport.c:1246:53: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                if (r->status == REF_STATUS_REJECT_REMOTE_UPDATED) continue;
                                                                  ^
                                                                   {
/datasets/git/transport.c:1247:40: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                if (r->status == REF_STATUS_UPTODATE) continue;
                                                     ^
                                                      {
/datasets/git/transport.c:1256:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (errno != EPIPE)
                                           ^
                                            {
/datasets/git/transport.c:1265:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ret)
                 ^
                  {
/datasets/git/transport.c:1271:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ret)
                 ^
                  {
/datasets/git/transport.c:1277:5: warning: function 'transport_push' has cognitive complexity of 45 (threshold 25) [readability-function-cognitive-complexity]
int transport_push(struct repository *r,
    ^
/datasets/git/transport.c:1296:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (transport_color_config() < 0)
        ^
/datasets/git/transport.c:1299:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!transport->vtable->push_refs)
        ^
/datasets/git/transport.c:1304:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (check_push_refs(local_refs, rs) < 0)
        ^
/datasets/git/transport.c:1316:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (flags & TRANSPORT_PUSH_ALL)
        ^
/datasets/git/transport.c:1318:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (flags & TRANSPORT_PUSH_MIRROR)
        ^
/datasets/git/transport.c:1320:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (flags & TRANSPORT_PUSH_PRUNE)
        ^
/datasets/git/transport.c:1322:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (flags & TRANSPORT_PUSH_FOLLOW_TAGS)
        ^
/datasets/git/transport.c:1325:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (match_push_refs(local_refs, &remote_refs, rs, match_flags))
        ^
/datasets/git/transport.c:1328:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (transport->smart_options &&
        ^
/datasets/git/transport.c:1329:36: note: +1
            transport->smart_options->cas &&
                                          ^
/datasets/git/transport.c:1338:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!(flags & TRANSPORT_PUSH_NO_HOOK))
        ^
/datasets/git/transport.c:1339:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (run_pre_push_hook(transport, remote_refs))
                ^
/datasets/git/transport.c:1342:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((flags & (TRANSPORT_RECURSE_SUBMODULES_ON_DEMAND |
        ^
/datasets/git/transport.c:1343:45: note: +1
                      TRANSPORT_RECURSE_SUBMODULES_ONLY)) &&
                                                          ^
/datasets/git/transport.c:1349:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (; ref; ref = ref->next)
                ^
/datasets/git/transport.c:1350:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!is_null_oid(&ref->new_oid))
                        ^
/datasets/git/transport.c:1354:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!push_unpushed_submodules(r,
                ^
/datasets/git/transport.c:1368:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (((flags & TRANSPORT_RECURSE_SUBMODULES_CHECK) ||
        ^
/datasets/git/transport.c:1371:19: note: +1
              !pretend)) && !is_bare_repository()) {
                         ^
/datasets/git/transport.c:1368:52: note: +1
        if (((flags & TRANSPORT_RECURSE_SUBMODULES_CHECK) ||
                                                          ^
/datasets/git/transport.c:1370:40: note: +1
                        TRANSPORT_RECURSE_SUBMODULES_ONLY)) &&
                                                            ^
/datasets/git/transport.c:1377:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (; ref; ref = ref->next)
                ^
/datasets/git/transport.c:1378:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!is_null_oid(&ref->new_oid))
                        ^
/datasets/git/transport.c:1382:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (find_unpushed_submodules(r,
                ^
/datasets/git/transport.c:1395:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!(flags & TRANSPORT_RECURSE_SUBMODULES_ONLY)) {
        ^
/datasets/git/transport.c:1399:4: note: +1, nesting level increased to 1
        } else
          ^
/datasets/git/transport.c:1404:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!quiet || err)
        ^
/datasets/git/transport.c:1404:13: note: +1
        if (!quiet || err)
                   ^
/datasets/git/transport.c:1409:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (flags & TRANSPORT_PUSH_SET_UPSTREAM)
        ^
/datasets/git/transport.c:1412:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!(flags & (TRANSPORT_PUSH_DRY_RUN |
        ^
/datasets/git/transport.c:1415:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (ref = remote_refs; ref; ref = ref->next)
                ^
/datasets/git/transport.c:1419:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (porcelain && !push_ret)
        ^
/datasets/git/transport.c:1419:16: note: +1
        if (porcelain && !push_ret)
                      ^
/datasets/git/transport.c:1421:7: note: +1, nesting level increased to 1
        else if (!quiet && !ret && !transport_refs_pushed(remote_refs))
             ^
/datasets/git/transport.c:1421:26: note: +1
        else if (!quiet && !ret && !transport_refs_pushed(remote_refs))
                                ^
/datasets/git/transport.c:1277:39: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int transport_push(struct repository *r,
                                      ^
/datasets/git/transport.c:1279:22: warning: parameter name 'rs' is too short, expected at least 3 characters [readability-identifier-length]
                   struct refspec *rs, int flags,
                                   ^
/datasets/git/transport.c:1287:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int porcelain = flags & TRANSPORT_PUSH_PORCELAIN;
                        ^~~~~
/datasets/git/transport.c:1287:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int porcelain = flags & TRANSPORT_PUSH_PORCELAIN;
                                ^
/datasets/git/./transport.h:135:36: note: expanded from macro 'TRANSPORT_PUSH_PORCELAIN'
#define TRANSPORT_PUSH_PORCELAIN                (1<<4)
                                                 ^
/datasets/git/transport.c:1288:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int pretend = flags & TRANSPORT_PUSH_DRY_RUN;
                      ^~~~~
/datasets/git/transport.c:1288:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int pretend = flags & TRANSPORT_PUSH_DRY_RUN;
                              ^
/datasets/git/./transport.h:133:35: note: expanded from macro 'TRANSPORT_PUSH_DRY_RUN'
#define TRANSPORT_PUSH_DRY_RUN                  (1<<2)
                                                 ^
/datasets/git/transport.c:1289:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int push_ret, err;
        ^~~~~~~~~~~~~~~~~~
/datasets/git/transport.c:1289:6: warning: variable 'push_ret' is not initialized [cppcoreguidelines-init-variables]
        int push_ret, err;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/transport.c:1289:16: warning: variable 'err' is not initialized [cppcoreguidelines-init-variables]
        int push_ret, err;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/transport.c:1296:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (transport_color_config() < 0)
                                         ^
                                          {
/datasets/git/transport.c:1299:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!transport->vtable->push_refs)
                                          ^
                                           {
/datasets/git/transport.c:1304:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (check_push_refs(local_refs, rs) < 0)
                                                ^
                                                 {
/datasets/git/transport.c:1316:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & TRANSPORT_PUSH_ALL)
            ^~~~~
/datasets/git/transport.c:1316:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & TRANSPORT_PUSH_ALL)
                    ^
/datasets/git/./transport.h:131:31: note: expanded from macro 'TRANSPORT_PUSH_ALL'
#define TRANSPORT_PUSH_ALL                      (1<<0)
                                                 ^
/datasets/git/transport.c:1316:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & TRANSPORT_PUSH_ALL)
                                       ^
                                        {
/datasets/git/transport.c:1317:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                match_flags |= MATCH_REFS_ALL;
                ^~~~~~~~~~~
/datasets/git/transport.c:1318:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & TRANSPORT_PUSH_MIRROR)
            ^~~~~
/datasets/git/transport.c:1318:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & TRANSPORT_PUSH_MIRROR)
                    ^
/datasets/git/./transport.h:134:34: note: expanded from macro 'TRANSPORT_PUSH_MIRROR'
#define TRANSPORT_PUSH_MIRROR                   (1<<3)
                                                 ^
/datasets/git/transport.c:1318:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & TRANSPORT_PUSH_MIRROR)
                                          ^
                                           {
/datasets/git/transport.c:1319:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                match_flags |= MATCH_REFS_MIRROR;
                ^~~~~~~~~~~
/datasets/git/transport.c:1320:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & TRANSPORT_PUSH_PRUNE)
            ^~~~~
/datasets/git/transport.c:1320:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & TRANSPORT_PUSH_PRUNE)
                    ^
/datasets/git/./transport.h:138:33: note: expanded from macro 'TRANSPORT_PUSH_PRUNE'
#define TRANSPORT_PUSH_PRUNE                    (1<<7)
                                                 ^
/datasets/git/transport.c:1320:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & TRANSPORT_PUSH_PRUNE)
                                         ^
                                          {
/datasets/git/transport.c:1321:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                match_flags |= MATCH_REFS_PRUNE;
                ^~~~~~~~~~~
/datasets/git/transport.c:1322:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & TRANSPORT_PUSH_FOLLOW_TAGS)
            ^~~~~
/datasets/git/transport.c:1322:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & TRANSPORT_PUSH_FOLLOW_TAGS)
                    ^
/datasets/git/./transport.h:141:38: note: expanded from macro 'TRANSPORT_PUSH_FOLLOW_TAGS'
#define TRANSPORT_PUSH_FOLLOW_TAGS              (1<<10)
                                                 ^
/datasets/git/transport.c:1322:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & TRANSPORT_PUSH_FOLLOW_TAGS)
                                               ^
                                                {
/datasets/git/transport.c:1323:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                match_flags |= MATCH_REFS_FOLLOW_TAGS;
                ^~~~~~~~~~~
/datasets/git/transport.c:1325:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (match_push_refs(local_refs, &remote_refs, rs, match_flags))
                                                                       ^
                                                                        {
/datasets/git/transport.c:1330:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !is_empty_cas(transport->smart_options->cas))
                                                         ^
                                                          {
/datasets/git/transport.c:1335:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags & TRANSPORT_PUSH_MIRROR,
                ^~~~~
/datasets/git/transport.c:1335:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags & TRANSPORT_PUSH_MIRROR,
                        ^
/datasets/git/./transport.h:134:34: note: expanded from macro 'TRANSPORT_PUSH_MIRROR'
#define TRANSPORT_PUSH_MIRROR                   (1<<3)
                                                 ^
/datasets/git/transport.c:1336:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags & TRANSPORT_PUSH_FORCE);
                ^~~~~
/datasets/git/transport.c:1336:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags & TRANSPORT_PUSH_FORCE);
                        ^
/datasets/git/./transport.h:132:33: note: expanded from macro 'TRANSPORT_PUSH_FORCE'
#define TRANSPORT_PUSH_FORCE                    (1<<1)
                                                 ^
/datasets/git/transport.c:1338:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & TRANSPORT_PUSH_NO_HOOK))
              ^~~~~
/datasets/git/transport.c:1338:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & TRANSPORT_PUSH_NO_HOOK))
                      ^
/datasets/git/./transport.h:140:35: note: expanded from macro 'TRANSPORT_PUSH_NO_HOOK'
#define TRANSPORT_PUSH_NO_HOOK                  (1<<9)
                                                 ^
/datasets/git/transport.c:1338:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(flags & TRANSPORT_PUSH_NO_HOOK))
                                              ^
                                               {
/datasets/git/transport.c:1339:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (run_pre_push_hook(transport, remote_refs))
                                                              ^
                                                               {
/datasets/git/transport.c:1342:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((flags & (TRANSPORT_RECURSE_SUBMODULES_ON_DEMAND |
             ^~~~~
/datasets/git/transport.c:1342:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((flags & (TRANSPORT_RECURSE_SUBMODULES_ON_DEMAND |
                      ^
/datasets/git/./transport.h:139:48: note: expanded from macro 'TRANSPORT_RECURSE_SUBMODULES_ON_DEMAND'
#define TRANSPORT_RECURSE_SUBMODULES_ON_DEMAND  (1<<8)
                                                ^~~~~~
/datasets/git/transport.c:1343:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                      TRANSPORT_RECURSE_SUBMODULES_ONLY)) &&
                      ^
/datasets/git/./transport.h:146:44: note: expanded from macro 'TRANSPORT_RECURSE_SUBMODULES_ONLY'
#define TRANSPORT_RECURSE_SUBMODULES_ONLY       (1<<15)
                                                 ^
/datasets/git/transport.c:1349:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (; ref; ref = ref->next)
                ^
/datasets/git/transport.c:1349:10: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (; ref; ref = ref->next)
                       ^
/datasets/git/transport.c:1349:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (; ref; ref = ref->next)
                                            ^
                                             {
/datasets/git/transport.c:1350:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!is_null_oid(&ref->new_oid))
                                                        ^
                                                         {
/datasets/git/transport.c:1368:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (((flags & TRANSPORT_RECURSE_SUBMODULES_CHECK) ||
              ^~~~~
/datasets/git/transport.c:1368:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (((flags & TRANSPORT_RECURSE_SUBMODULES_CHECK) ||
                      ^
/datasets/git/./transport.h:137:45: note: expanded from macro 'TRANSPORT_RECURSE_SUBMODULES_CHECK'
#define TRANSPORT_RECURSE_SUBMODULES_CHECK      (1<<6)
                                                 ^
/datasets/git/transport.c:1369:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
             ((flags & (TRANSPORT_RECURSE_SUBMODULES_ON_DEMAND |
               ^~~~~
/datasets/git/transport.c:1369:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
             ((flags & (TRANSPORT_RECURSE_SUBMODULES_ON_DEMAND |
                        ^
/datasets/git/./transport.h:139:48: note: expanded from macro 'TRANSPORT_RECURSE_SUBMODULES_ON_DEMAND'
#define TRANSPORT_RECURSE_SUBMODULES_ON_DEMAND  (1<<8)
                                                ^~~~~~
/datasets/git/transport.c:1370:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        TRANSPORT_RECURSE_SUBMODULES_ONLY)) &&
                        ^
/datasets/git/./transport.h:146:44: note: expanded from macro 'TRANSPORT_RECURSE_SUBMODULES_ONLY'
#define TRANSPORT_RECURSE_SUBMODULES_ONLY       (1<<15)
                                                 ^
/datasets/git/transport.c:1377:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (; ref; ref = ref->next)
                ^
/datasets/git/transport.c:1377:10: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (; ref; ref = ref->next)
                       ^
/datasets/git/transport.c:1377:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (; ref; ref = ref->next)
                                            ^
                                             {
/datasets/git/transport.c:1378:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!is_null_oid(&ref->new_oid))
                                                        ^
                                                         {
/datasets/git/transport.c:1395:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & TRANSPORT_RECURSE_SUBMODULES_ONLY)) {
              ^~~~~
/datasets/git/transport.c:1395:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & TRANSPORT_RECURSE_SUBMODULES_ONLY)) {
                      ^
/datasets/git/./transport.h:146:44: note: expanded from macro 'TRANSPORT_RECURSE_SUBMODULES_ONLY'
#define TRANSPORT_RECURSE_SUBMODULES_ONLY       (1<<15)
                                                 ^
/datasets/git/transport.c:1399:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/transport.c:1402:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ret = push_ret | err;
              ^~~~~~~~
/datasets/git/transport.c:1404:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!quiet || err)
                          ^
                           {
/datasets/git/transport.c:1406:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                verbose | porcelain, porcelain,
                                ^~~~~~~
/datasets/git/transport.c:1409:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & TRANSPORT_PUSH_SET_UPSTREAM)
            ^~~~~
/datasets/git/transport.c:1409:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & TRANSPORT_PUSH_SET_UPSTREAM)
                    ^
/datasets/git/./transport.h:136:39: note: expanded from macro 'TRANSPORT_PUSH_SET_UPSTREAM'
#define TRANSPORT_PUSH_SET_UPSTREAM             (1<<5)
                                                 ^
/datasets/git/transport.c:1409:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & TRANSPORT_PUSH_SET_UPSTREAM)
                                                ^
                                                 {
/datasets/git/transport.c:1412:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & (TRANSPORT_PUSH_DRY_RUN |
              ^~~~~
/datasets/git/transport.c:1412:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & (TRANSPORT_PUSH_DRY_RUN |
                       ^
/datasets/git/./transport.h:133:34: note: expanded from macro 'TRANSPORT_PUSH_DRY_RUN'
#define TRANSPORT_PUSH_DRY_RUN                  (1<<2)
                                                ^~~~~~
/datasets/git/transport.c:1413:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       TRANSPORT_RECURSE_SUBMODULES_ONLY))) {
                       ^
/datasets/git/./transport.h:146:44: note: expanded from macro 'TRANSPORT_RECURSE_SUBMODULES_ONLY'
#define TRANSPORT_RECURSE_SUBMODULES_ONLY       (1<<15)
                                                 ^
/datasets/git/transport.c:1414:15: warning: variable 'ref' is not initialized [cppcoreguidelines-init-variables]
                struct ref *ref;
                            ^
                                = NULL
/datasets/git/transport.c:1415:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (ref = remote_refs; ref; ref = ref->next)
                ^
/datasets/git/transport.c:1415:27: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ref' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (ref = remote_refs; ref; ref = ref->next)
                                        ^
/datasets/git/transport.c:1415:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (ref = remote_refs; ref; ref = ref->next)
                                                             ^
                                                              {
/datasets/git/transport.c:1419:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (porcelain && !push_ret)
                                   ^
                                    {
/datasets/git/transport.c:1421:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!quiet && !ret && !transport_refs_pushed(remote_refs))
                                                                       ^
                                                                        {
/datasets/git/transport.c:1422:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "Everything up-to-date\n");
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport.c:1422:3: note: cast the expression to void to silence this warning
/datasets/git/transport.c:1451:6: warning: variable 'rc' is not initialized [cppcoreguidelines-init-variables]
        int rc;
            ^
               = 0
/datasets/git/transport.c:1451:6: warning: variable name 'rc' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/transport.c:1452:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int nr_heads = 0, nr_alloc = 0, nr_refs = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport.c:1454:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct ref *rm;
        ^
/datasets/git/transport.c:1454:14: warning: variable 'rm' is not initialized [cppcoreguidelines-init-variables]
        struct ref *rm;
                    ^
                       = NULL
/datasets/git/transport.c:1454:14: warning: variable name 'rm' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/transport.c:1456:18: warning: backward branch (for loop) is ID-dependent due to variable reference to 'rm' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (rm = refs; rm; rm = rm->next) {
                        ^
/datasets/git/transport.c:1460:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    oideq(&rm->peer_ref->old_oid, &rm->old_oid))
                                                                ^
                                                                 {
/datasets/git/transport.c:1462:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                ALLOC_GROW(heads, nr_heads + 1, nr_alloc);
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/transport.c:1462:3: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                ALLOC_GROW(heads, nr_heads + 1, nr_alloc);
                ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/transport.c:1474:3: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                ALLOC_ARRAY(heads, nr_refs);
                ^
/datasets/git/./git-compat-util.h:1090:53: note: expanded from macro 'ALLOC_ARRAY'
#define ALLOC_ARRAY(x, alloc) (x) = xmalloc(st_mult(sizeof(*(x)), (alloc)))
                                                    ^
/datasets/git/transport.c:1475:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (rm = refs; rm; rm = rm->next)
                ^
/datasets/git/transport.c:1475:19: warning: backward branch (for loop) is ID-dependent due to variable reference to 'rm' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (rm = refs; rm; rm = rm->next)
                                ^
/datasets/git/transport.c:1475:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (rm = refs; rm; rm = rm->next)
                                                  ^
                                                   {
/datasets/git/transport.c:1487:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int in_signal_handler = !!(flags & TRANSPORT_UNLOCK_PACK_IN_SIGNAL_HANDLER);
                                   ^
/datasets/git/transport.c:1487:37: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int in_signal_handler = !!(flags & TRANSPORT_UNLOCK_PACK_IN_SIGNAL_HANDLER);
                                           ^
/datasets/git/./transport.h:297:50: note: expanded from macro 'TRANSPORT_UNLOCK_PACK_IN_SIGNAL_HANDLER'
#define TRANSPORT_UNLOCK_PACK_IN_SIGNAL_HANDLER (1 << 0)
                                                 ^
/datasets/git/transport.c:1488:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/transport.c:1488:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/transport.c:1490:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < transport->pack_lockfiles.nr; i++)
        ^
/datasets/git/transport.c:1490:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < transport->pack_lockfiles.nr; i++)
                                                          ^
                                                           {
/datasets/git/transport.c:1491:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (in_signal_handler)
                                      ^
                                       {
/datasets/git/transport.c:1493:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/transport.c:1495:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!in_signal_handler)
                               ^
                                {
/datasets/git/transport.c:1500:31: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
                      const char *exec, int fd[2])
                                            ^
/datasets/git/transport.c:1502:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (transport->vtable->connect)
                                       ^
                                        {
/datasets/git/transport.c:1504:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else
        ^~~~
                        die(_("operation not supported by protocol"))
/datasets/git/transport.c:1504:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/transport.c:1511:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (transport->vtable->disconnect)
                                          ^
                                           {
/datasets/git/transport.c:1513:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (transport->got_remote_refs)
                                       ^
                                        {
/datasets/git/transport.c:1525:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *scheme_prefix, *anon_part;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport.c:1525:8: warning: variable 'scheme_prefix' is not initialized [cppcoreguidelines-init-variables]
        char *scheme_prefix, *anon_part;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/transport.c:1525:24: warning: variable 'anon_part' is not initialized [cppcoreguidelines-init-variables]
        char *scheme_prefix, *anon_part;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/transport.c:1526:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t anon_len, prefix_len = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/transport.c:1526:9: warning: variable 'anon_len' is not initialized [cppcoreguidelines-init-variables]
        size_t anon_len, prefix_len = 0;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/transport.c:1529:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (url_is_local_not_ssh(url) || !anon_part)
                                                    ^
                                                     {
/datasets/git/transport.c:1535:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strchr(anon_part, ':'))
                                            ^
                                             {
/datasets/git/transport.c:1539:15: warning: variable 'cp' is not initialized [cppcoreguidelines-init-variables]
                const char *cp;
                            ^
                               = NULL
/datasets/git/transport.c:1539:15: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/transport.c:1541:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (cp = url; cp < scheme_prefix; cp++) {
                ^
/datasets/git/transport.c:1541:18: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cp' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (cp = url; cp < scheme_prefix; cp++) {
                               ^
/datasets/git/transport.c:1547:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (isalnum(*cp))
                                    ^
/datasets/git/./git-compat-util.h:1220:20: note: expanded from macro 'isalnum'
#define isalnum(x) sane_istest(x,GIT_ALPHA | GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/transport.c:1547:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (isalnum(*cp))
                                                 ^
                                                  {
/datasets/git/transport.c:1555:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cp && cp < anon_part)
                                         ^
                                          {
tree-diff.c:31:28: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        struct combine_diff_path *p, const struct object_id *oid,
                                  ^
tree-diff.c:51:49: warning: parameter name 't1' is too short, expected at least 3 characters [readability-identifier-length]
static int tree_entry_pathcmp(struct tree_desc *t1, struct tree_desc *t2)
                                                ^
tree-diff.c:51:71: warning: parameter name 't2' is too short, expected at least 3 characters [readability-identifier-length]
static int tree_entry_pathcmp(struct tree_desc *t1, struct tree_desc *t2)
                                                                      ^
/datasets/git/tree-diff.c:53:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct name_entry *e1, *e2;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/tree-diff.c:53:21: warning: variable 'e1' is not initialized [cppcoreguidelines-init-variables]
        struct name_entry *e1, *e2;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/tree-diff.c:53:21: warning: variable name 'e1' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/tree-diff.c:53:26: warning: variable 'e2' is not initialized [cppcoreguidelines-init-variables]
        struct name_entry *e1, *e2;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/tree-diff.c:53:26: warning: variable name 'e2' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/tree-diff.c:54:6: warning: variable 'cmp' is not initialized [cppcoreguidelines-init-variables]
        int cmp;
            ^
                = 0
/datasets/git/tree-diff.c:57:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!t1->size)
                      ^
                       {
/datasets/git/tree-diff.c:59:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (!t2->size)
        ^~~~~~~~~~~~~~~~~~~
/datasets/git/tree-diff.c:59:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!t2->size)
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/tree-diff.c:64:56: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        cmp = base_name_compare(e1->path, tree_entry_len(e1), e1->mode,
                                                              ^
/datasets/git/tree-diff.c:65:35: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                e2->path, tree_entry_len(e2), e2->mode);
                                                              ^
/datasets/git/tree-diff.c:76:92: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static int emit_diff_first_parent_only(struct diff_options *opt, struct combine_diff_path *p)
                                                                                           ^
/datasets/git/tree-diff.c:78:30: warning: variable name 'p0' is too short, expected at least 3 characters [readability-identifier-length]
        struct combine_diff_parent *p0 = &p->parent[0];
                                    ^
/datasets/git/tree-diff.c:84:27: warning: variable 'oid' is not initialized [cppcoreguidelines-init-variables]
                const struct object_id *oid;
                                        ^
                                            = NULL
/datasets/git/tree-diff.c:85:16: warning: variable 'mode' is not initialized [cppcoreguidelines-init-variables]
                unsigned int mode;
                             ^
                                  = 0
/datasets/git/tree-diff.c:86:7: warning: variable 'addremove' is not initialized [cppcoreguidelines-init-variables]
                int addremove;
                    ^
                              = 0
/datasets/git/tree-diff.c:136:60: warning: 2 adjacent parameters of 'path_appendnew' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
        int nparent, const struct strbuf *base, const char *path, int pathlen,
                                                                  ^~~~~~~~~~~~
/datasets/git/tree-diff.c:136:64: note: the first parameter in the range is 'pathlen'
        int nparent, const struct strbuf *base, const char *path, int pathlen,
                                                                      ^~~~~~~
/datasets/git/tree-diff.c:137:11: note: the last parameter in the range is 'mode'
        unsigned mode, const struct object_id *oid)
                 ^~~~
/datasets/git/tree-diff.c:137:2: note: 'int' and 'unsigned int' may be implicitly converted
        unsigned mode, const struct object_id *oid)
        ^
/datasets/git/tree-diff.c:139:28: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct combine_diff_path *p;
                                  ^
                                    = NULL
/datasets/git/tree-diff.c:139:28: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/tree-diff.c:146:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FREE_AND_NULL(p);
                ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/tree-diff.c:156:13: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
                p->next = (struct combine_diff_path *)(intptr_t)alloclen;
                          ^
/datasets/git/tree-diff.c:162:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(p->path, base->buf, base->len);
        ^~~~~~
/datasets/git/tree-diff.c:162:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(p->path, base->buf, base->len);
        ^~~~~~
/datasets/git/tree-diff.c:163:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(p->path + base->len, path, pathlen);
        ^~~~~~
/datasets/git/tree-diff.c:163:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(p->path + base->len, path, pathlen);
        ^~~~~~
/datasets/git/tree-diff.c:181:34: warning: function 'emit_path' is within a recursive call chain [misc-no-recursion]
static struct combine_diff_path *emit_path(struct combine_diff_path *p,
                                 ^
/datasets/git/tree-diff.c:408:34: note: example recursive call chain, starting from function 'll_diff_tree_paths'
static struct combine_diff_path *ll_diff_tree_paths(
                                 ^
/datasets/git/tree-diff.c:509:8: note: Frame #1: function 'll_diff_tree_paths' calls function 'emit_path' here:
                        p = emit_path(p, base, opt, nparent,
                            ^
/datasets/git/tree-diff.c:290:7: note: Frame #2: function 'emit_path' calls function 'll_diff_tree_paths' here:
                p = ll_diff_tree_paths(p, oid, parents_oid, nparent, base, opt);
                    ^
/datasets/git/tree-diff.c:290:7: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/tree-diff.c:181:34: warning: function 'emit_path' has cognitive complexity of 49 (threshold 25) [readability-function-cognitive-complexity]
static struct combine_diff_path *emit_path(struct combine_diff_path *p,
                                 ^
/datasets/git/tree-diff.c:194:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        assert(t || tp);
        ^
/usr/include/assert.h:108:26: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                         ^
/datasets/git/tree-diff.c:194:11: note: +1
        assert(t || tp);
                 ^
/datasets/git/tree-diff.c:194:2: note: nesting level increased to 1
        assert(t || tp);
        ^
/usr/include/assert.h:108:50: note: expanded from macro 'assert'
  ((void) sizeof ((expr) ? 1 : 0), __extension__ ({                     \
                                                 ^
/datasets/git/tree-diff.c:194:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        assert(t || tp);
        ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
      if (expr)                                                         \
      ^
/datasets/git/tree-diff.c:194:11: note: +1
        assert(t || tp);
                 ^
/datasets/git/tree-diff.c:194:2: note: +1, nesting level increased to 2
        assert(t || tp);
        ^
/usr/include/assert.h:111:7: note: expanded from macro 'assert'
      else                                                              \
      ^
/datasets/git/tree-diff.c:196:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (t) {
        ^
/datasets/git/tree-diff.c:201:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/tree-diff.c:217:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (opt->flags.recursive && isdir) {
        ^
/datasets/git/tree-diff.c:217:27: note: +1
        if (opt->flags.recursive && isdir) {
                                 ^
/datasets/git/tree-diff.c:222:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (emitthis) {
        ^
/datasets/git/tree-diff.c:227:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < nparent; ++i) {
                ^
/datasets/git/tree-diff.c:232:23: note: +1
                        int tpi_valid = tp && !(tp[i].entry.mode & S_IFXMIN_NEQ);
                                           ^
/datasets/git/tree-diff.c:238:8: note: +3, including nesting penalty of 2, nesting level increased to 3
                                !t ? DIFF_STATUS_DELETED :
                                   ^
/datasets/git/tree-diff.c:239:16: note: +4, including nesting penalty of 3, nesting level increased to 4
                                        tpi_valid ?
                                                  ^
/datasets/git/tree-diff.c:243:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (tpi_valid) {
                        ^
/datasets/git/tree-diff.c:247:4: note: +1, nesting level increased to 3
                        else {
                        ^
/datasets/git/tree-diff.c:257:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opt->pathchange)
                ^
/datasets/git/tree-diff.c:271:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!keep)
                ^
/datasets/git/tree-diff.c:273:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/tree-diff.c:277:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (recurse) {
        ^
/datasets/git/tree-diff.c:280:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                FAST_ARRAY_ALLOC(parents_oid, nparent);
                ^
/datasets/git/tree-diff.c:17:33: note: expanded from macro 'FAST_ARRAY_ALLOC'
#define FAST_ARRAY_ALLOC(x, nr) do { \
                                ^
/datasets/git/tree-diff.c:280:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                FAST_ARRAY_ALLOC(parents_oid, nparent);
                ^
/datasets/git/tree-diff.c:18:2: note: expanded from macro 'FAST_ARRAY_ALLOC'
        if ((nr) <= 2) \
        ^
/datasets/git/tree-diff.c:280:3: note: +1, nesting level increased to 3
                FAST_ARRAY_ALLOC(parents_oid, nparent);
                ^
/datasets/git/tree-diff.c:20:2: note: expanded from macro 'FAST_ARRAY_ALLOC'
        else \
        ^
/datasets/git/tree-diff.c:281:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < nparent; ++i) {
                ^
/datasets/git/tree-diff.c:283:23: note: +1
                        int tpi_valid = tp && !(tp[i].entry.mode & S_IFXMIN_NEQ);
                                           ^
/datasets/git/tree-diff.c:285:31: note: +3, including nesting penalty of 2, nesting level increased to 3
                        parents_oid[i] = tpi_valid ? &tp[i].entry.oid : NULL;
                                                   ^
/datasets/git/tree-diff.c:291:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                FAST_ARRAY_FREE(parents_oid, nparent);
                ^
/datasets/git/tree-diff.c:23:32: note: expanded from macro 'FAST_ARRAY_FREE'
#define FAST_ARRAY_FREE(x, nr) do { \
                               ^
/datasets/git/tree-diff.c:291:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                FAST_ARRAY_FREE(parents_oid, nparent);
                ^
/datasets/git/tree-diff.c:24:2: note: expanded from macro 'FAST_ARRAY_FREE'
        if ((nr) <= 2) \
        ^
/datasets/git/tree-diff.c:291:3: note: +1, nesting level increased to 3
                FAST_ARRAY_FREE(parents_oid, nparent);
                ^
/datasets/git/tree-diff.c:26:2: note: expanded from macro 'FAST_ARRAY_FREE'
        else \
        ^
/datasets/git/tree-diff.c:181:70: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static struct combine_diff_path *emit_path(struct combine_diff_path *p,
                                                                     ^
/datasets/git/tree-diff.c:183:20: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
        struct tree_desc *t, struct tree_desc *tp,
                          ^
/datasets/git/tree-diff.c:183:41: warning: parameter name 'tp' is too short, expected at least 3 characters [readability-identifier-length]
        struct tree_desc *t, struct tree_desc *tp,
                                               ^
/datasets/git/tree-diff.c:186:17: warning: variable 'mode' is not initialized [cppcoreguidelines-init-variables]
        unsigned short mode;
                       ^
                            = 0
/datasets/git/tree-diff.c:187:14: warning: variable 'path' is not initialized [cppcoreguidelines-init-variables]
        const char *path;
                    ^
                         = NULL
/datasets/git/tree-diff.c:188:26: warning: variable 'oid' is not initialized [cppcoreguidelines-init-variables]
        const struct object_id *oid;
                                ^
                                    = NULL
/datasets/git/tree-diff.c:189:6: warning: variable 'pathlen' is not initialized [cppcoreguidelines-init-variables]
        int pathlen;
            ^
                    = 0
/datasets/git/tree-diff.c:190:20: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int old_baselen = base->len;
                          ^
/datasets/git/tree-diff.c:191:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, isdir, recurse = 0, emitthis = 1;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/tree-diff.c:191:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, isdir, recurse = 0, emitthis = 1;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/tree-diff.c:191:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/tree-diff.c:191:9: warning: variable 'isdir' is not initialized [cppcoreguidelines-init-variables]
        int i, isdir, recurse = 0, emitthis = 1;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/tree-diff.c:219:14: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                emitthis = opt->flags.tree_in_recursive;
                           ^
/datasets/git/tree-diff.c:223:7: warning: variable 'keep' is not initialized [cppcoreguidelines-init-variables]
                int keep;
                    ^
                         = 0
/datasets/git/tree-diff.c:227:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < nparent; ++i) {
                ^
/datasets/git/tree-diff.c:234:28: warning: variable 'oid_i' is not initialized [cppcoreguidelines-init-variables]
                        const struct object_id *oid_i;
                                                ^
                                                      = NULL
/datasets/git/tree-diff.c:235:13: warning: variable 'mode_i' is not initialized [cppcoreguidelines-init-variables]
                        unsigned mode_i;
                                 ^
                                        = 0
/datasets/git/tree-diff.c:239:6: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                        tpi_valid ?
                                        ^
/datasets/git/tree-diff.c:257:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opt->pathchange)
                                    ^
                                     {
/datasets/git/tree-diff.c:271:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!keep)
                          ^
                           {
/datasets/git/tree-diff.c:273:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/tree-diff.c:278:28: warning: variable 'parents_oid' is not initialized [cppcoreguidelines-init-variables]
                const struct object_id **parents_oid;
                                         ^
                                                     = NULL
/datasets/git/tree-diff.c:280:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FAST_ARRAY_ALLOC(parents_oid, nparent);
                ^
/datasets/git/tree-diff.c:17:33: note: expanded from macro 'FAST_ARRAY_ALLOC'
#define FAST_ARRAY_ALLOC(x, nr) do { \
                                ^
/datasets/git/tree-diff.c:280:3: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                FAST_ARRAY_ALLOC(parents_oid, nparent);
                ^
/datasets/git/tree-diff.c:19:24: note: expanded from macro 'FAST_ARRAY_ALLOC'
                (x) = xalloca((nr) * sizeof(*(x))); \
                                     ^
/datasets/git/tree-diff.c:281:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < nparent; ++i) {
                ^
/datasets/git/tree-diff.c:291:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                FAST_ARRAY_FREE(parents_oid, nparent);
                ^
/datasets/git/tree-diff.c:25:3: note: expanded from macro 'FAST_ARRAY_FREE'
                xalloca_free((x)); \
                ^
/datasets/git/./git-compat-util.h:1048:29: note: expanded from macro 'xalloca_free'
# define xalloca_free(p)    do {} while (0)
                            ^
/datasets/git/tree-diff.c:298:50: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
static void skip_uninteresting(struct tree_desc *t, struct strbuf *base,
                                                 ^
/datasets/git/tree-diff.c:301:19: warning: variable 'match' is not initialized [cppcoreguidelines-init-variables]
        enum interesting match;
                         ^
/datasets/git/tree-diff.c:303:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (t->size) {
        ^
/datasets/git/tree-diff.c:307:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (match == all_entries_not_interesting)
                                                                 ^
                                                                  {
/datasets/git/tree-diff.c:400:56: warning: parameter name 'tp' is too short, expected at least 3 characters [readability-identifier-length]
static inline void update_tp_entries(struct tree_desc *tp, int nparent)
                                                       ^
/datasets/git/tree-diff.c:402:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/tree-diff.c:402:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/tree-diff.c:403:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nparent; ++i)
        ^
/datasets/git/tree-diff.c:403:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < nparent; ++i)
                                     ^
                                      {
/datasets/git/tree-diff.c:404:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(tp[i].entry.mode & S_IFXMIN_NEQ))
                                                       ^
                                                        {
/datasets/git/tree-diff.c:408:34: warning: function 'll_diff_tree_paths' is within a recursive call chain [misc-no-recursion]
static struct combine_diff_path *ll_diff_tree_paths(
                                 ^
/datasets/git/tree-diff.c:408:34: warning: function 'll_diff_tree_paths' has cognitive complexity of 85 (threshold 25) [readability-function-cognitive-complexity]
/datasets/git/tree-diff.c:417:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        FAST_ARRAY_ALLOC(tp, nparent);
        ^
/datasets/git/tree-diff.c:17:33: note: expanded from macro 'FAST_ARRAY_ALLOC'
#define FAST_ARRAY_ALLOC(x, nr) do { \
                                ^
/datasets/git/tree-diff.c:417:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        FAST_ARRAY_ALLOC(tp, nparent);
        ^
/datasets/git/tree-diff.c:18:2: note: expanded from macro 'FAST_ARRAY_ALLOC'
        if ((nr) <= 2) \
        ^
/datasets/git/tree-diff.c:417:2: note: +1, nesting level increased to 2
        FAST_ARRAY_ALLOC(tp, nparent);
        ^
/datasets/git/tree-diff.c:20:2: note: expanded from macro 'FAST_ARRAY_ALLOC'
        else \
        ^
/datasets/git/tree-diff.c:418:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        FAST_ARRAY_ALLOC(tptree, nparent);
        ^
/datasets/git/tree-diff.c:17:33: note: expanded from macro 'FAST_ARRAY_ALLOC'
#define FAST_ARRAY_ALLOC(x, nr) do { \
                                ^
/datasets/git/tree-diff.c:418:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        FAST_ARRAY_ALLOC(tptree, nparent);
        ^
/datasets/git/tree-diff.c:18:2: note: expanded from macro 'FAST_ARRAY_ALLOC'
        if ((nr) <= 2) \
        ^
/datasets/git/tree-diff.c:418:2: note: +1, nesting level increased to 2
        FAST_ARRAY_ALLOC(tptree, nparent);
        ^
/datasets/git/tree-diff.c:20:2: note: expanded from macro 'FAST_ARRAY_ALLOC'
        else \
        ^
/datasets/git/tree-diff.c:426:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < nparent; ++i)
        ^
/datasets/git/tree-diff.c:433:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (;;) {
        ^
/datasets/git/tree-diff.c:436:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (diff_can_quit_early(opt))
                ^
/datasets/git/tree-diff.c:439:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opt->max_changes && diff_queued_diff.nr > opt->max_changes)
                ^
/datasets/git/tree-diff.c:439:24: note: +1
                if (opt->max_changes && diff_queued_diff.nr > opt->max_changes)
                                     ^
/datasets/git/tree-diff.c:442:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (opt->pathspec.nr) {
                ^
/datasets/git/tree-diff.c:444:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (i = 0; i < nparent; i++)
                        ^
/datasets/git/tree-diff.c:449:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!t.size) {
                ^
/datasets/git/tree-diff.c:451:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (i = 0; i < nparent; ++i)
                        ^
/datasets/git/tree-diff.c:452:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (tp[i].size) {
                                ^
/datasets/git/tree-diff.c:456:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (done)
                        ^
/datasets/git/tree-diff.c:467:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 1; i < nparent; ++i) {
                ^
/datasets/git/tree-diff.c:469:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (cmp < 0) {
                        ^
/datasets/git/tree-diff.c:473:9: note: +1, nesting level increased to 3
                        else if (cmp == 0) {
                             ^
/datasets/git/tree-diff.c:476:4: note: +1, nesting level increased to 3
                        else {
                        ^
/datasets/git/tree-diff.c:482:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < imin; ++i)
                ^
/datasets/git/tree-diff.c:491:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (cmp == 0) {
                ^
/datasets/git/tree-diff.c:493:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!opt->flags.find_copies_harder) {
                        ^
/datasets/git/tree-diff.c:494:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                for (i = 0; i < nparent; ++i) {
                                ^
/datasets/git/tree-diff.c:496:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (tp[i].entry.mode & S_IFXMIN_NEQ)
                                        ^
/datasets/git/tree-diff.c:500:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (!oideq(&t.entry.oid, &tp[i].entry.oid) ||
                                        ^
/datasets/git/tree-diff.c:500:49: note: +1
                                        if (!oideq(&t.entry.oid, &tp[i].entry.oid) ||
                                                                                   ^
/datasets/git/tree-diff.c:504:6: note: +1
                                        goto skip_emit_t_tp;
                                        ^
/datasets/git/tree-diff.c:519:8: note: +1, nesting level increased to 2
                else if (cmp < 0) {
                     ^
/datasets/git/tree-diff.c:529:3: note: +1, nesting level increased to 2
                else {
                ^
/datasets/git/tree-diff.c:531:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!opt->flags.find_copies_harder) {
                        ^
/datasets/git/tree-diff.c:532:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                for (i = 0; i < nparent; ++i)
                                ^
/datasets/git/tree-diff.c:533:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (tp[i].entry.mode & S_IFXMIN_NEQ)
                                        ^
/datasets/git/tree-diff.c:547:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = nparent-1; i >= 0; i--)
        ^
/datasets/git/tree-diff.c:549:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        FAST_ARRAY_FREE(tptree, nparent);
        ^
/datasets/git/tree-diff.c:23:32: note: expanded from macro 'FAST_ARRAY_FREE'
#define FAST_ARRAY_FREE(x, nr) do { \
                               ^
/datasets/git/tree-diff.c:549:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        FAST_ARRAY_FREE(tptree, nparent);
        ^
/datasets/git/tree-diff.c:24:2: note: expanded from macro 'FAST_ARRAY_FREE'
        if ((nr) <= 2) \
        ^
/datasets/git/tree-diff.c:549:2: note: +1, nesting level increased to 2
        FAST_ARRAY_FREE(tptree, nparent);
        ^
/datasets/git/tree-diff.c:26:2: note: expanded from macro 'FAST_ARRAY_FREE'
        else \
        ^
/datasets/git/tree-diff.c:550:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        FAST_ARRAY_FREE(tp, nparent);
        ^
/datasets/git/tree-diff.c:23:32: note: expanded from macro 'FAST_ARRAY_FREE'
#define FAST_ARRAY_FREE(x, nr) do { \
                               ^
/datasets/git/tree-diff.c:550:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        FAST_ARRAY_FREE(tp, nparent);
        ^
/datasets/git/tree-diff.c:24:2: note: expanded from macro 'FAST_ARRAY_FREE'
        if ((nr) <= 2) \
        ^
/datasets/git/tree-diff.c:550:2: note: +1, nesting level increased to 2
        FAST_ARRAY_FREE(tp, nparent);
        ^
/datasets/git/tree-diff.c:26:2: note: expanded from macro 'FAST_ARRAY_FREE'
        else \
        ^
/datasets/git/tree-diff.c:409:28: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        struct combine_diff_path *p, const struct object_id *oid,
                                  ^
/datasets/git/tree-diff.c:413:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct tree_desc t, *tp;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/tree-diff.c:413:19: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
        struct tree_desc t, *tp;
                         ^
/datasets/git/tree-diff.c:413:23: warning: variable 'tp' is not initialized [cppcoreguidelines-init-variables]
        struct tree_desc t, *tp;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/tree-diff.c:413:23: warning: variable name 'tp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/tree-diff.c:414:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        void *ttree, **tptree;
        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/tree-diff.c:414:8: warning: variable 'ttree' is not initialized [cppcoreguidelines-init-variables]
        void *ttree, **tptree;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/tree-diff.c:414:17: warning: variable 'tptree' is not initialized [cppcoreguidelines-init-variables]
        void *ttree, **tptree;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/tree-diff.c:415:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/tree-diff.c:415:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/tree-diff.c:417:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FAST_ARRAY_ALLOC(tp, nparent);
        ^
/datasets/git/tree-diff.c:17:33: note: expanded from macro 'FAST_ARRAY_ALLOC'
#define FAST_ARRAY_ALLOC(x, nr) do { \
                                ^
/datasets/git/tree-diff.c:418:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FAST_ARRAY_ALLOC(tptree, nparent);
        ^
/datasets/git/tree-diff.c:17:33: note: expanded from macro 'FAST_ARRAY_ALLOC'
#define FAST_ARRAY_ALLOC(x, nr) do { \
                                ^
/datasets/git/tree-diff.c:426:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nparent; ++i)
        ^
/datasets/git/tree-diff.c:426:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < nparent; ++i)
                    ^
/datasets/git/tree-diff.c:426:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < nparent; ++i)
                                     ^
                                      {
/datasets/git/tree-diff.c:434:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int imin, cmp;
                ^~~~~~~~~~~~~~
/datasets/git/tree-diff.c:434:7: warning: variable 'imin' is not initialized [cppcoreguidelines-init-variables]
                int imin, cmp;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/tree-diff.c:434:13: warning: variable 'cmp' is not initialized [cppcoreguidelines-init-variables]
                int imin, cmp;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/tree-diff.c:436:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (diff_can_quit_early(opt))
                                             ^
                                              {
/datasets/git/tree-diff.c:439:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (opt->max_changes && diff_queued_diff.nr > opt->max_changes)
                                                                               ^
                                                                                {
/datasets/git/tree-diff.c:444:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = 0; i < nparent; i++)
                        ^
/datasets/git/tree-diff.c:444:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (i = 0; i < nparent; i++)
                                    ^
/datasets/git/tree-diff.c:444:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (i = 0; i < nparent; i++)
                                                     ^
                                                      {
/datasets/git/tree-diff.c:451:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = 0; i < nparent; ++i)
                        ^
/datasets/git/tree-diff.c:451:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (i = 0; i < nparent; ++i)
                                    ^
/datasets/git/tree-diff.c:451:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (i = 0; i < nparent; ++i)
                                                     ^
                                                      {
/datasets/git/tree-diff.c:456:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (done)
                                 ^
                                  {
/datasets/git/tree-diff.c:467:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 1; i < nparent; ++i) {
                ^
/datasets/git/tree-diff.c:467:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 1; i < nparent; ++i) {
                            ^
/datasets/git/tree-diff.c:482:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < imin; ++i)
                ^
/datasets/git/tree-diff.c:482:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < imin; ++i)
                            ^
/datasets/git/tree-diff.c:482:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < imin; ++i)
                                          ^
                                           {
/datasets/git/tree-diff.c:494:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                for (i = 0; i < nparent; ++i) {
                                ^
/datasets/git/tree-diff.c:494:17: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                                for (i = 0; i < nparent; ++i) {
                                            ^
/datasets/git/tree-diff.c:496:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        if (tp[i].entry.mode & S_IFXMIN_NEQ)
                                                                            ^
                                                                             {
/datasets/git/tree-diff.c:501:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                            (t.entry.mode != tp[i].entry.mode))
                                                                               ^
                                                                                {
/datasets/git/tree-diff.c:532:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                for (i = 0; i < nparent; ++i)
                                ^
/datasets/git/tree-diff.c:532:17: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                                for (i = 0; i < nparent; ++i)
                                            ^
/datasets/git/tree-diff.c:532:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                for (i = 0; i < nparent; ++i)
                                                             ^
                                                              {
/datasets/git/tree-diff.c:533:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        if (tp[i].entry.mode & S_IFXMIN_NEQ)
                                                                            ^
                                                                             {
/datasets/git/tree-diff.c:547:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = nparent-1; i >= 0; i--)
        ^
/datasets/git/tree-diff.c:547:22: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = nparent-1; i >= 0; i--)
                            ^
/datasets/git/tree-diff.c:547:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = nparent-1; i >= 0; i--)
                                        ^
                                         {
/datasets/git/tree-diff.c:549:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FAST_ARRAY_FREE(tptree, nparent);
        ^
/datasets/git/tree-diff.c:25:3: note: expanded from macro 'FAST_ARRAY_FREE'
                xalloca_free((x)); \
                ^
/datasets/git/./git-compat-util.h:1048:29: note: expanded from macro 'xalloca_free'
# define xalloca_free(p)    do {} while (0)
                            ^
/datasets/git/tree-diff.c:550:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FAST_ARRAY_FREE(tp, nparent);
        ^
/datasets/git/tree-diff.c:25:3: note: expanded from macro 'FAST_ARRAY_FREE'
                xalloca_free((x)); \
                ^
/datasets/git/./git-compat-util.h:1048:29: note: expanded from macro 'xalloca_free'
# define xalloca_free(p)    do {} while (0)
                            ^
/datasets/git/tree-diff.c:556:28: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        struct combine_diff_path *p, const struct object_id *oid,
                                  ^
/datasets/git/tree-diff.c:566:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(p->next);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/tree-diff.c:587:28: warning: variable name 'q' is too short, expected at least 3 characters [readability-identifier-length]
        struct diff_queue_struct *q = &diff_queued_diff;
                                  ^
/datasets/git/tree-diff.c:588:24: warning: variable 'choice' is not initialized [cppcoreguidelines-init-variables]
        struct diff_filepair *choice;
                              ^
                                     = NULL
/datasets/git/tree-diff.c:589:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/tree-diff.c:589:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/tree-diff.c:596:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        GUARD_PATHSPEC(&opt->pathspec, PATHSPEC_FROMTOP | PATHSPEC_LITERAL);
        ^
/datasets/git/./pathspec.h:59:2: note: expanded from macro 'GUARD_PATHSPEC'
        do { \
        ^
/datasets/git/tree-diff.c:587:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct diff_queue_struct *q = &diff_queued_diff;
        ^
/datasets/git/tree-diff.c:596:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        GUARD_PATHSPEC(&opt->pathspec, PATHSPEC_FROMTOP | PATHSPEC_LITERAL);
        ^
/datasets/git/./pathspec.h:60:7: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                    ^             ~~~~~~~
/datasets/git/tree-diff.c:596:2: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
        GUARD_PATHSPEC(&opt->pathspec, PATHSPEC_FROMTOP | PATHSPEC_LITERAL);
        ^
/datasets/git/./pathspec.h:60:21: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                                  ^~~~~~~
/datasets/git/tree-diff.c:596:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        GUARD_PATHSPEC(&opt->pathspec, PATHSPEC_FROMTOP | PATHSPEC_LITERAL);
                                       ^
/datasets/git/./pathspec.h:7:26: note: expanded from macro 'PATHSPEC_FROMTOP'
#define PATHSPEC_FROMTOP        (1<<0)
                                ^~~~~~
/datasets/git/./pathspec.h:60:23: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                                    ^~~~
/datasets/git/tree-diff.c:596:52: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        GUARD_PATHSPEC(&opt->pathspec, PATHSPEC_FROMTOP | PATHSPEC_LITERAL);
                                                          ^
/datasets/git/./pathspec.h:9:27: note: expanded from macro 'PATHSPEC_LITERAL'
#define PATHSPEC_LITERAL        (1<<2)
                                 ^
/datasets/git/./pathspec.h:60:23: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                                    ^~~~
/datasets/git/tree-diff.c:627:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < q->nr; i++) {
        ^
/datasets/git/tree-diff.c:587:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct diff_queue_struct *q = &diff_queued_diff;
        ^
/datasets/git/tree-diff.c:627:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'q' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < q->nr; i++) {
                    ^
/datasets/git/tree-diff.c:628:25: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct diff_filepair *p = q->queue[i];
                                      ^
/datasets/git/tree-diff.c:648:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                       PATHSPEC_ALL_MAGIC & ~PATHSPEC_LITERAL,
                                       ^
/datasets/git/./pathspec.h:15:2: note: expanded from macro 'PATHSPEC_ALL_MAGIC'
        (PATHSPEC_FROMTOP       | \
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/tree-diff.c:648:33: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                                       PATHSPEC_ALL_MAGIC & ~PATHSPEC_LITERAL,
                                                            ^
/datasets/git/tree-diff.c:648:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                       PATHSPEC_ALL_MAGIC & ~PATHSPEC_LITERAL,
                                                             ^
/datasets/git/./pathspec.h:9:27: note: expanded from macro 'PATHSPEC_LITERAL'
#define PATHSPEC_LITERAL        (1<<2)
                                 ^
/datasets/git/tree-diff.c:649:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                       PATHSPEC_LITERAL_PATH, "", path);
                                       ^
/datasets/git/./pathspec.h:78:32: note: expanded from macro 'PATHSPEC_LITERAL_PATH'
#define PATHSPEC_LITERAL_PATH (1<<6)
                               ^
/datasets/git/tree-diff.c:667:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < q->nr; i++) {
        ^
/datasets/git/tree-diff.c:667:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'q' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < q->nr; i++) {
                    ^
/datasets/git/tree-diff.c:668:25: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                struct diff_filepair *p = q->queue[i];
                                      ^
/datasets/git/tree-diff.c:684:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct combine_diff_path phead, *p;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/tree-diff.c:684:2: note: inferred assignment of ID-dependent value from ID-dependent member next [altera-id-dependent-backward-branch]
/datasets/git/tree-diff.c:684:35: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct combine_diff_path phead, *p;
                                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/tree-diff.c:684:35: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/tree-diff.c:691:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = phead.next; p;) {
        ^
/datasets/git/tree-diff.c:691:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = phead.next; p;) {
                             ^
/datasets/git/tree-diff.c:710:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!*base_str && opt->flags.follow_renames && diff_might_be_rename())
                                                                              ^
                                                                               {
/datasets/git/tree-walk.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "tree-walk.h"
^        ~~~~~~~~~~~~~
         "dir.h"
/datasets/git/tree-walk.c:11:16: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        unsigned char c;
                      ^
                        = 0
/datasets/git/tree-walk.c:11:16: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/tree-walk.c:14:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*str == ' ')
                        ^
                         {
/datasets/git/tree-walk.c:17:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((c = *str++) != ' ') {
        ^
/datasets/git/tree-walk.c:17:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'c' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((c = *str++) != ' ') {
               ^
/datasets/git/tree-walk.c:18:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (c < '0' || c > '7')
                                       ^
                                        {
/datasets/git/tree-walk.c:20:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mode = (mode << 3) + (c - '0');
                        ^       ~
/datasets/git/tree-walk.c:28:14: warning: variable 'path' is not initialized [cppcoreguidelines-init-variables]
        const char *path;
                    ^
                         = NULL
/datasets/git/tree-walk.c:29:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned int mode, len;
        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/tree-walk.c:29:15: warning: variable 'mode' is not initialized [cppcoreguidelines-init-variables]
        unsigned int mode, len;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/tree-walk.c:29:21: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        unsigned int mode, len;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/tree-walk.c:50:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        desc->entry.mode = (desc->flags & TREE_DESC_RAW_MODES) ? mode : canon_mode(mode);
                            ^             ~~~~~~~~~~~~~~~~~~~
/datasets/git/tree-walk.c:51:24: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        desc->entry.pathlen = len - 1;
                              ^
/datasets/git/tree-walk.c:64:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (size)
                 ^
                  {
/datasets/git/tree-walk.c:72:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (init_tree_desc_internal(desc, buffer, size, &err, 0))
                                                                 ^
                                                                  {
/datasets/git/tree-walk.c:82:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (result)
                   ^
                    {
/datasets/git/tree-walk.c:88:47: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void *fill_tree_descriptor(struct repository *r,
                                              ^
/datasets/git/tree-walk.c:97:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!buf)
                         ^
                          {
/datasets/git/tree-walk.c:104:44: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static void entry_clear(struct name_entry *a)
                                           ^
/datasets/git/tree-walk.c:106:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(a, 0, sizeof(*a));
        ^~~~~~
/datasets/git/tree-walk.c:106:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(a, 0, sizeof(*a));
        ^~~~~~
/datasets/git/tree-walk.c:109:45: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
static void entry_extract(struct tree_desc *t, struct name_entry *a)
                                            ^
/datasets/git/tree-walk.c:109:67: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static void entry_extract(struct tree_desc *t, struct name_entry *a)
                                                                  ^
/datasets/git/tree-walk.c:121:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (size < len)
                       ^
                        {
/datasets/git/tree-walk.c:127:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (size)
                 ^
                  {
/datasets/git/tree-walk.c:135:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (update_tree_entry_internal(desc, &err))
                                                   ^
                                                    {
/datasets/git/tree-walk.c:156:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!desc->size)
                        ^
                         {
/datasets/git/tree-walk.c:166:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!desc->size)
                        ^
                         {
/datasets/git/tree-walk.c:170:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (update_tree_entry_gently(desc))
                                           ^
                                            {
/datasets/git/tree-walk.c:175:12: warning: variable 'traverse_trees_atexit_registered' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int traverse_trees_atexit_registered;
           ^
/datasets/git/tree-walk.c:176:12: warning: variable 'traverse_trees_count' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int traverse_trees_count;
           ^
/datasets/git/tree-walk.c:177:12: warning: variable 'traverse_trees_cur_depth' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int traverse_trees_cur_depth;
           ^
/datasets/git/tree-walk.c:178:12: warning: variable 'traverse_trees_max_depth' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int traverse_trees_max_depth;
           ^
/datasets/git/tree-walk.c:182:21: warning: variable name 'jw' is too short, expected at least 3 characters [readability-identifier-length]
        struct json_writer jw = JSON_WRITER_INIT;
                           ^
/datasets/git/tree-walk.c:199:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(info, 0, sizeof(*info));
        ^~~~~~
/datasets/git/tree-walk.c:199:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(info, 0, sizeof(*info));
        ^~~~~~
/datasets/git/tree-walk.c:200:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pathlen && base[pathlen-1] == '/')
                                              ^
                                               {
/datasets/git/tree-walk.c:205:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pathlen)
                    ^
                     {
/datasets/git/tree-walk.c:209:3: warning: the value returned by this function should be used [cert-err33-c]
                atexit(trace2_traverse_trees_statistics_atexit);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/tree-walk.c:209:3: note: cast the expression to void to silence this warning
/datasets/git/tree-walk.c:221:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pos >= pathlen)
                           ^
                            {
/datasets/git/tree-walk.c:225:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/tree-walk.c:226:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pos < namelen)
                                  ^
                                   {
/datasets/git/tree-walk.c:229:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(path + pos, name, namelen);
                ^~~~~~
/datasets/git/tree-walk.c:229:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(path + pos, name, namelen);
                ^~~~~~
/datasets/git/tree-walk.c:231:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!pos)
                         ^
                          {
/datasets/git/tree-walk.c:235:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!info)
                          ^
                           {
/datasets/git/tree-walk.c:256:8: warning: accessing fields in struct 'tree_desc_skip' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct tree_desc_skip {
       ^
/datasets/git/tree-walk.c:256:8: note: use "__attribute__((aligned(16)))" to align struct 'tree_desc_skip' to 16 bytes
/datasets/git/tree-walk.c:261:8: warning: accessing fields in struct 'tree_desc_x' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct tree_desc_x {
       ^
/datasets/git/tree-walk.c:261:8: note: use "__attribute__((aligned(128)))" to align struct 'tree_desc_x' to 128 bytes
/datasets/git/tree-walk.c:266:42: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static int check_entry_match(const char *a, int a_len, const char *b, int b_len)
                                         ^
/datasets/git/tree-walk.c:266:68: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static int check_entry_match(const char *a, int a_len, const char *b, int b_len)
                                                                   ^
/datasets/git/tree-walk.c:289:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!cmp)
                 ^
                  {
/datasets/git/tree-walk.c:301:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (a_len < b_len && !memcmp(a, b, a_len) && b[a_len] < '/')
                                                                    ^
                                                                     {
/datasets/git/tree-walk.c:330:56: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
static void extended_entry_extract(struct tree_desc_x *t,
                                                       ^
/datasets/git/tree-walk.c:331:27: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
                                   struct name_entry *a,
                                                      ^
/datasets/git/tree-walk.c:335:14: warning: variable 'path' is not initialized [cppcoreguidelines-init-variables]
        const char *path;
                    ^
                         = NULL
/datasets/git/tree-walk.c:336:6: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int len;
            ^
                = 0
/datasets/git/tree-walk.c:338:25: warning: variable 'skip' is not initialized [cppcoreguidelines-init-variables]
        struct tree_desc_skip *skip;
                               ^
                                    = NULL
/datasets/git/tree-walk.c:350:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (skip = t->skip; skip; skip = skip->prev)
                ^
/datasets/git/tree-walk.c:350:24: warning: backward branch (for loop) is ID-dependent due to variable reference to 'skip' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (skip = t->skip; skip; skip = skip->prev)
                                     ^
/datasets/git/tree-walk.c:350:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (skip = t->skip; skip; skip = skip->prev)
                                                             ^
                                                              {
/datasets/git/tree-walk.c:351:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (a->path == skip->ptr)
                                                 ^
                                                  {
/datasets/git/tree-walk.c:353:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!skip)
                          ^
                           {
/datasets/git/tree-walk.c:359:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!first || !a->path)
                               ^
                                {
/datasets/git/tree-walk.c:381:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (probe.size) {
        ^
/datasets/git/tree-walk.c:381:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'probe' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (probe.size) {
               ^
/datasets/git/tree-walk.c:399:55: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
static void update_extended_entry(struct tree_desc_x *t, struct name_entry *a)
                                                      ^
/datasets/git/tree-walk.c:399:77: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static void update_extended_entry(struct tree_desc_x *t, struct name_entry *a)
                                                                            ^
/datasets/git/tree-walk.c:412:53: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
static void free_extended_entry(struct tree_desc_x *t)
                                                    ^
/datasets/git/tree-walk.c:414:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct tree_desc_skip *p, *s;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/tree-walk.c:414:2: note: inferred assignment of ID-dependent value from ID-dependent member skip [altera-id-dependent-backward-branch]
/datasets/git/tree-walk.c:414:25: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct tree_desc_skip *p, *s;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/tree-walk.c:414:25: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/tree-walk.c:414:29: warning: variable 's' is not initialized [cppcoreguidelines-init-variables]
        struct tree_desc_skip *p, *s;
                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/tree-walk.c:414:29: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/tree-walk.c:416:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (s = t->skip; s; s = p) {
        ^
/datasets/git/tree-walk.c:416:20: warning: backward branch (for loop) is ID-dependent due to variable reference to 's' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (s = t->skip; s; s = p) {
                          ^
/datasets/git/tree-walk.c:423:26: warning: parameter name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                                  struct name_entry *e,
                                                     ^
/datasets/git/tree-walk.c:428:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!info->pathspec || still_interesting == 2)
                                                      ^
                                                       {
/datasets/git/tree-walk.c:430:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (still_interesting < 0)
                                  ^
                                   {
/datasets/git/tree-walk.c:436:5: warning: function 'traverse_trees' has cognitive complexity of 59 (threshold 25) [readability-function-cognitive-complexity]
int traverse_trees(struct index_state *istate,
    ^
/datasets/git/tree-walk.c:451:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (traverse_trees_cur_depth > traverse_trees_max_depth)
        ^
/datasets/git/tree-walk.c:454:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (n >= ARRAY_SIZE(entry))
        ^
/datasets/git/tree-walk.c:457:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < n; i++) {
        ^
/datasets/git/tree-walk.c:462:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (info->prev) {
        ^
/datasets/git/tree-walk.c:467:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/tree-walk.c:471:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (;;) {
        ^
/datasets/git/tree-walk.c:479:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < n; i++) {
                ^
/datasets/git/tree-walk.c:490:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < n; i++) {
                ^
/datasets/git/tree-walk.c:492:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!e->path)
                        ^
/datasets/git/tree-walk.c:495:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!first) {
                        ^
/datasets/git/tree-walk.c:500:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (name_compare(e->path, len, first, first_len) < 0) {
                        ^
/datasets/git/tree-walk.c:506:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (first) {
                ^
/datasets/git/tree-walk.c:507:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (i = 0; i < n; i++) {
                        ^
/datasets/git/tree-walk.c:511:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!e->path)
                                ^
/datasets/git/tree-walk.c:514:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (name_compare(e->path, len, first, first_len))
                                ^
/datasets/git/tree-walk.c:522:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < n; i++) {
                ^
/datasets/git/tree-walk.c:523:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!entry[i].path)
                        ^
/datasets/git/tree-walk.c:526:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (S_ISDIR(entry[i].mode))
                        ^
/datasets/git/tree-walk.c:530:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!mask)
                ^
/datasets/git/tree-walk.c:533:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (interesting < 0)
                ^
/datasets/git/tree-walk.c:535:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (interesting) {
                ^
/datasets/git/tree-walk.c:537:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (trees_used < 0) {
                        ^
/datasets/git/tree-walk.c:539:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!info->show_all_errors)
                                ^
/datasets/git/tree-walk.c:544:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < n; i++)
                ^
/datasets/git/tree-walk.c:545:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (mask & (1ul << i))
                        ^
/datasets/git/tree-walk.c:548:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < n; i++)
        ^
/datasets/git/tree-walk.c:437:31: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
                   int n, struct tree_desc *t,
                                            ^
/datasets/git/tree-walk.c:442:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/tree-walk.c:442:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/tree-walk.c:443:21: warning: variable name 'tx' is too short, expected at least 3 characters [readability-identifier-length]
        struct tree_desc_x tx[ARRAY_SIZE(entry)];
                           ^
/datasets/git/tree-walk.c:446:8: warning: variable 'traverse_path' is not initialized [cppcoreguidelines-init-variables]
        char *traverse_path;
              ^
                            = NULL
/datasets/git/tree-walk.c:451:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (traverse_trees_cur_depth > traverse_trees_max_depth)
                                                                ^
                                                                 {
/datasets/git/tree-walk.c:454:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (n >= ARRAY_SIZE(entry))
                                   ^
                                    {
/datasets/git/tree-walk.c:457:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < n; i++) {
        ^
/datasets/git/tree-walk.c:472:7: warning: variable 'trees_used' is not initialized [cppcoreguidelines-init-variables]
                int trees_used;
                    ^
                               = 0
/datasets/git/tree-walk.c:473:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                unsigned long mask, dirmask;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/tree-walk.c:473:17: warning: variable 'mask' is not initialized [cppcoreguidelines-init-variables]
                unsigned long mask, dirmask;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/tree-walk.c:473:23: warning: variable 'dirmask' is not initialized [cppcoreguidelines-init-variables]
                unsigned long mask, dirmask;
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/tree-walk.c:476:22: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                struct name_entry *e = NULL;
                                   ^
/datasets/git/tree-walk.c:477:7: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
                int len;
                    ^
                        = 0
/datasets/git/tree-walk.c:479:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < n; i++) {
                ^
/datasets/git/tree-walk.c:490:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < n; i++) {
                ^
/datasets/git/tree-walk.c:492:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!e->path)
                                     ^
                                      {
/datasets/git/tree-walk.c:507:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = 0; i < n; i++) {
                        ^
/datasets/git/tree-walk.c:511:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!e->path)
                                             ^
                                              {
/datasets/git/tree-walk.c:514:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (name_compare(e->path, len, first, first_len))
                                                                                 ^
                                                                                  {
/datasets/git/tree-walk.c:522:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < n; i++) {
                ^
/datasets/git/tree-walk.c:523:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!entry[i].path)
                                           ^
                                            {
/datasets/git/tree-walk.c:525:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        mask |= 1ul << i;
                                ^      ~
/datasets/git/tree-walk.c:525:12: warning: integer literal has suffix 'ul', which is not uppercase [hicpp-uppercase-literal-suffix,readability-uppercase-literal-suffix]
                        mask |= 1ul << i;
                                ^~~
                                 UL
/datasets/git/tree-walk.c:526:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (S_ISDIR(entry[i].mode))
                                                   ^
                                                    {
/datasets/git/tree-walk.c:527:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                dirmask |= 1ul << i;
                                           ^      ~
/datasets/git/tree-walk.c:527:16: warning: integer literal has suffix 'ul', which is not uppercase [hicpp-uppercase-literal-suffix,readability-uppercase-literal-suffix]
                                dirmask |= 1ul << i;
                                           ^~~
                                            UL
/datasets/git/tree-walk.c:530:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!mask)
                          ^
                           {
/datasets/git/tree-walk.c:533:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (interesting < 0)
                                    ^
                                     {
/datasets/git/tree-walk.c:539:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!info->show_all_errors)
                                                           ^
                                                            {
/datasets/git/tree-walk.c:542:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        mask &= trees_used;
                        ^       ~~~~~~~~~~
/datasets/git/tree-walk.c:544:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < n; i++)
                ^
/datasets/git/tree-walk.c:544:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < n; i++)
                                       ^
                                        {
/datasets/git/tree-walk.c:545:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (mask & (1ul << i))
                                    ^      ~
/datasets/git/tree-walk.c:545:16: warning: integer literal has suffix 'ul', which is not uppercase [hicpp-uppercase-literal-suffix,readability-uppercase-literal-suffix]
                        if (mask & (1ul << i))
                                    ^~~
                                     UL
/datasets/git/tree-walk.c:545:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (mask & (1ul << i))
                                              ^
                                               {
/datasets/git/tree-walk.c:548:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < n; i++)
        ^
/datasets/git/tree-walk.c:548:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < n; i++)
                               ^
                                {
/datasets/git/tree-walk.c:558:8: warning: accessing fields in struct 'dir_state' is inefficient due to padding; only needs 52 bytes but is using 56 bytes [altera-struct-pack-align]
struct dir_state {
       ^
/datasets/git/tree-walk.c:558:8: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'dir_state'
/datasets/git/tree-walk.c:558:8: warning: accessing fields in struct 'dir_state' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct dir_state {
       ^
/datasets/git/tree-walk.c:558:8: note: use "__attribute__((aligned(64)))" to align struct 'dir_state' to 64 bytes
/datasets/git/tree-walk.c:564:12: warning: function 'find_tree_entry' is within a recursive call chain [misc-no-recursion]
static int find_tree_entry(struct repository *r, struct tree_desc *t,
           ^
/datasets/git/tree-walk.c:601:5: note: example recursive call chain, starting from function 'get_tree_entry'
int get_tree_entry(struct repository *r,
    ^
/datasets/git/tree-walk.c:627:12: note: Frame #1: function 'get_tree_entry' calls function 'find_tree_entry' here:
                retval = find_tree_entry(r, &t, name, oid, mode);
                         ^
/datasets/git/tree-walk.c:596:10: note: Frame #2: function 'find_tree_entry' calls function 'get_tree_entry' here:
                return get_tree_entry(r, &oid, name + entrylen, result, mode);
                       ^
/datasets/git/tree-walk.c:596:10: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/tree-walk.c:564:47: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static int find_tree_entry(struct repository *r, struct tree_desc *t,
                                              ^
/datasets/git/tree-walk.c:564:68: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
static int find_tree_entry(struct repository *r, struct tree_desc *t,
                                                                   ^
./tree-walk.h:36:2: note: inferred assignment of ID-dependent member from ID-dependent  [altera-id-dependent-backward-branch]
        unsigned int size;
        ^
/datasets/git/tree-walk.c:568:16: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int namelen = strlen(name);
                      ^
/datasets/git/tree-walk.c:569:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (t->size) {
        ^
/datasets/git/tree-walk.c:569:9: warning: backward branch (while loop) is ID-dependent due to member reference to 'size' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (t->size) {
               ^
/datasets/git/tree-walk.c:570:15: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
                const char *entry;
                            ^
                                  = NULL
/datasets/git/tree-walk.c:572:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int entrylen, cmp;
                ^~~~~~~~~~~~~~~~~~
/datasets/git/tree-walk.c:572:7: warning: variable 'entrylen' is not initialized [cppcoreguidelines-init-variables]
                int entrylen, cmp;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/tree-walk.c:572:17: warning: variable 'cmp' is not initialized [cppcoreguidelines-init-variables]
                int entrylen, cmp;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/tree-walk.c:577:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (entrylen > namelen)
                                       ^
                                        {
/datasets/git/tree-walk.c:580:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cmp > 0)
                            ^
                             {
/datasets/git/tree-walk.c:582:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cmp < 0)
                            ^
                             {
/datasets/git/tree-walk.c:588:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (name[entrylen] != '/')
                                          ^
                                           {
/datasets/git/tree-walk.c:590:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!S_ISDIR(*mode))
                                    ^
                                     {
/datasets/git/tree-walk.c:601:5: warning: function 'get_tree_entry' is within a recursive call chain [misc-no-recursion]
int get_tree_entry(struct repository *r,
    ^
/datasets/git/tree-walk.c:601:39: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int get_tree_entry(struct repository *r,
                                      ^
/datasets/git/tree-walk.c:607:6: warning: variable 'retval' is not initialized [cppcoreguidelines-init-variables]
        int retval;
            ^
                   = 0
/datasets/git/tree-walk.c:608:8: warning: variable 'tree' is not initialized [cppcoreguidelines-init-variables]
        void *tree;
              ^
                   = NULL
/datasets/git/tree-walk.c:609:16: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size;
                      ^
                           = 0
/datasets/git/tree-walk.c:613:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!tree)
                  ^
                   {
/datasets/git/tree-walk.c:625:20: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
                struct tree_desc t;
                                 ^
/datasets/git/tree-walk.c:638:1: warning: replace macro with enum [modernize-macro-to-enum]
#define GET_TREE_ENTRY_FOLLOW_SYMLINKS_MAX_LINKS 40
^~~~~~~~
                                                 =
/datasets/git/tree-walk.c:638:9: warning: macro 'GET_TREE_ENTRY_FOLLOW_SYMLINKS_MAX_LINKS' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define GET_TREE_ENTRY_FOLLOW_SYMLINKS_MAX_LINKS 40
        ^
/datasets/git/tree-walk.c:655:21: warning: function 'get_tree_entry_follow_symlinks' has cognitive complexity of 81 (threshold 25) [readability-function-cognitive-complexity]
enum get_oid_result get_tree_entry_follow_symlinks(struct repository *r,
                    ^
/datasets/git/tree-walk.c:673:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (1) {
        ^
/datasets/git/tree-walk.c:678:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!t.buffer) {
                ^
/datasets/git/tree-walk.c:686:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!tree)
                        ^
/datasets/git/tree-walk.c:689:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        ALLOC_GROW(parents, parents_nr + 1, parents_alloc);
                        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/tree-walk.c:689:4: note: +4, including nesting penalty of 3, nesting level increased to 4
                        ALLOC_GROW(parents, parents_nr + 1, parents_alloc);
                        ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/tree-walk.c:689:4: note: +5, including nesting penalty of 4, nesting level increased to 5
                        ALLOC_GROW(parents, parents_nr + 1, parents_alloc);
                        ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/tree-walk.c:689:4: note: +1, nesting level increased to 5
                        ALLOC_GROW(parents, parents_nr + 1, parents_alloc);
                        ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/tree-walk.c:695:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (namebuf.buf[0] == '\0') {
                        ^
/datasets/git/tree-walk.c:698:5: note: +1
                                goto done;
                                ^
/datasets/git/tree-walk.c:701:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!size)
                        ^
/datasets/git/tree-walk.c:709:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (namebuf.buf[0] == '/') {
                ^
/datasets/git/tree-walk.c:714:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((first_slash = strchr(namebuf.buf, '/'))) {
                ^
/datasets/git/tree-walk.c:719:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(namebuf.buf, "..")) {
                ^
/datasets/git/tree-walk.c:726:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (parents_nr == 1) {
                        ^
/datasets/git/tree-walk.c:727:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (remainder)
                                ^
/datasets/git/tree-walk.c:733:5: note: +1
                                goto done;
                                ^
/datasets/git/tree-walk.c:740:41: note: +3, including nesting penalty of 2, nesting level increased to 3
                        strbuf_remove(&namebuf, 0, remainder ? 3 : 2);
                                                             ^
/datasets/git/tree-walk.c:745:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (namebuf.buf[0] == '\0') {
                ^
/datasets/git/tree-walk.c:748:4: note: +1
                        goto done;
                        ^
/datasets/git/tree-walk.c:754:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (find_result) {
                ^
/datasets/git/tree-walk.c:755:4: note: +1
                        goto done;
                        ^
/datasets/git/tree-walk.c:758:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (S_ISDIR(*mode)) {
                ^
/datasets/git/tree-walk.c:759:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!remainder) {
                        ^
/datasets/git/tree-walk.c:762:5: note: +1
                                goto done;
                                ^
/datasets/git/tree-walk.c:768:10: note: +1, nesting level increased to 2
                } else if (S_ISREG(*mode)) {
                       ^
/datasets/git/tree-walk.c:769:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!remainder) {
                        ^
/datasets/git/tree-walk.c:772:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/tree-walk.c:775:4: note: +1
                        goto done;
                        ^
/datasets/git/tree-walk.c:776:10: note: +1, nesting level increased to 2
                } else if (S_ISLNK(*mode)) {
                       ^
/datasets/git/tree-walk.c:784:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (follows_remaining-- == 0) {
                        ^
/datasets/git/tree-walk.c:787:5: note: +1
                                goto done;
                                ^
/datasets/git/tree-walk.c:800:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!contents)
                        ^
/datasets/git/tree-walk.c:803:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (contents[0] == '/') {
                        ^
/datasets/git/tree-walk.c:808:5: note: +1
                                goto done;
                                ^
/datasets/git/tree-walk.c:811:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (remainder)
                        ^
/datasets/git/tree-walk.c:813:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/tree-walk.c:822:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (remainder)
                        ^
/datasets/git/tree-walk.c:828:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < parents_nr; i++)
        ^
/datasets/git/tree-walk.c:655:71: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
enum get_oid_result get_tree_entry_follow_symlinks(struct repository *r,
                                                                      ^
/datasets/git/tree-walk.c:663:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t i, parents_nr = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/tree-walk.c:663:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i, parents_nr = 0;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/tree-walk.c:663:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/tree-walk.c:666:19: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
        struct tree_desc t;
                         ^
/datasets/git/tree-walk.c:665:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct strbuf namebuf = STRBUF_INIT;
        ^
/datasets/git/tree-walk.c:674:7: warning: variable 'find_result' is not initialized [cppcoreguidelines-init-variables]
                int find_result;
                    ^
                                = 0
/datasets/git/tree-walk.c:675:9: warning: variable 'first_slash' is not initialized [cppcoreguidelines-init-variables]
                char *first_slash;
                      ^
                                  = NULL
/datasets/git/tree-walk.c:679:10: warning: variable 'tree' is not initialized [cppcoreguidelines-init-variables]
                        void *tree;
                              ^
                                   = NULL
/datasets/git/tree-walk.c:681:18: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
                        unsigned long size;
                                      ^
                                           = 0
/datasets/git/tree-walk.c:686:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!tree)
                                  ^
                                   {
/datasets/git/tree-walk.c:689:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        ALLOC_GROW(parents, parents_nr + 1, parents_alloc);
                        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/tree-walk.c:701:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!size)
                                  ^
                                   {
/datasets/git/tree-walk.c:709:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (namebuf.buf[0] == '/') {
                ^
/datasets/git/tree-walk.c:709:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'namebuf' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (namebuf.buf[0] == '/') {
                       ^
/datasets/git/tree-walk.c:714:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                if ((first_slash = strchr(namebuf.buf, '/'))) {
                     ^
/datasets/git/tree-walk.c:714:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/tree-walk.c:714:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/tree-walk.c:720:22: warning: variable 'parent' is not initialized [cppcoreguidelines-init-variables]
                        struct dir_state *parent;
                                          ^
                                                 = NULL
/datasets/git/tree-walk.c:727:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (remainder)
                                              ^
                                               {
/datasets/git/tree-walk.c:778:18: warning: variable 'link_len' is not initialized [cppcoreguidelines-init-variables]
                        unsigned long link_len;
                                      ^
                                               = 0
/datasets/git/tree-walk.c:779:11: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
                        size_t len;
                               ^
                                   = 0
/datasets/git/tree-walk.c:780:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        char *contents, *contents_start;
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/tree-walk.c:780:10: warning: variable 'contents' is not initialized [cppcoreguidelines-init-variables]
                        char *contents, *contents_start;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/tree-walk.c:780:21: warning: variable 'contents_start' is not initialized [cppcoreguidelines-init-variables]
                        char *contents, *contents_start;
                                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/tree-walk.c:781:22: warning: variable 'parent' is not initialized [cppcoreguidelines-init-variables]
                        struct dir_state *parent;
                                          ^
                                                 = NULL
/datasets/git/tree-walk.c:782:21: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
                        enum object_type type;
                                         ^
/datasets/git/tree-walk.c:800:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!contents)
                                      ^
                                       {
/datasets/git/tree-walk.c:811:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (remainder)
                                      ^
                                       {
/datasets/git/tree-walk.c:813:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/tree-walk.c:822:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (remainder)
                                      ^
                                       {
/datasets/git/tree-walk.c:828:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < parents_nr; i++)
        ^
/datasets/git/tree-walk.c:828:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < parents_nr; i++)
                                        ^
                                         {
/datasets/git/tree-walk.c:841:6: warning: variable name 'm' is too short, expected at least 3 characters [readability-identifier-length]
        int m = -1; /* signals that we haven't called strncmp() */
            ^
/datasets/git/tree-walk.c:843:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (item->magic & PATHSPEC_ICASE)
            ^
/datasets/git/tree-walk.c:843:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (item->magic & PATHSPEC_ICASE)
                          ^
/datasets/git/./pathspec.h:11:26: note: expanded from macro 'PATHSPEC_ICASE'
#define PATHSPEC_ICASE          (1<<4)
                                 ^
/datasets/git/tree-walk.c:843:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (item->magic & PATHSPEC_ICASE)
                                         ^
                                          {
/datasets/git/tree-walk.c:866:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (m < 0)
                          ^
                           {
/datasets/git/tree-walk.c:885:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pathlen > matchlen)
                               ^
                                {
/datasets/git/tree-walk.c:889:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (match[pathlen] != '/')
                                          ^
                                           {
/datasets/git/tree-walk.c:898:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (!S_ISGITLINK(entry->mode) || matchlen > pathlen + 1))
                      ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/tree-walk.c:898:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    (!S_ISGITLINK(entry->mode) || matchlen > pathlen + 1))
                                                                          ^
                                                                           {
/datasets/git/tree-walk.c:902:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (m == -1)
                    ^
                     {
/datasets/git/tree-walk.c:914:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!m)
               ^
                {
/datasets/git/tree-walk.c:931:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (item->magic & PATHSPEC_ICASE) {
            ^
/datasets/git/tree-walk.c:931:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (item->magic & PATHSPEC_ICASE) {
                          ^
/datasets/git/./pathspec.h:11:26: note: expanded from macro 'PATHSPEC_ICASE'
#define PATHSPEC_ICASE          (1<<4)
                                 ^
/datasets/git/tree-walk.c:932:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int ret, n = len > item->prefix ? item->prefix : len;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/tree-walk.c:932:7: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
                int ret, n = len > item->prefix ? item->prefix : len;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/tree-walk.c:932:12: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
                int ret, n = len > item->prefix ? item->prefix : len;
                         ^
/datasets/git/tree-walk.c:934:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret)
                        ^
                         {
/datasets/git/tree-walk.c:947:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (basecmp(item, base, match, matchlen))
                                                 ^
                                                  {
/datasets/git/tree-walk.c:956:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            match[matchlen - 1] == '/')
                                       ^
                                        {
/datasets/git/tree-walk.c:977:7: warning: variable 'dirlen' is not initialized [cppcoreguidelines-init-variables]
                int dirlen;
                    ^
                           = 0
/datasets/git/tree-walk.c:988:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (dirlen && match[dirlen - 1] != '/')
                ^
/datasets/git/tree-walk.c:988:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'dirlen' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (dirlen && match[dirlen - 1] != '/')
                       ^
/datasets/git/tree-walk.c:988:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (dirlen && match[dirlen - 1] != '/')
                                                          ^
                                                           {
/datasets/git/tree-walk.c:997:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (basecmp(item, base, match, baselen))
                                                        ^
                                                         {
/datasets/git/tree-walk.c:1000:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/tree-walk.c:1017:25: warning: function 'do_match' has cognitive complexity of 80 (threshold 25) [readability-function-cognitive-complexity]
static enum interesting do_match(struct index_state *istate,
                        ^
/datasets/git/tree-walk.c:1025:56: note: +1, including nesting penalty of 0, nesting level increased to 1
        enum interesting never_interesting = ps->has_wildcard ?
                                                              ^
/datasets/git/tree-walk.c:1028:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        GUARD_PATHSPEC(ps,
        ^
/datasets/git/./pathspec.h:59:2: note: expanded from macro 'GUARD_PATHSPEC'
        do { \
        ^
/datasets/git/tree-walk.c:1028:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        GUARD_PATHSPEC(ps,
        ^
/datasets/git/./pathspec.h:60:3: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                ^
/datasets/git/tree-walk.c:1037:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!ps->nr) {
        ^
/datasets/git/tree-walk.c:1038:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!ps->recursive ||
                ^
/datasets/git/tree-walk.c:1039:40: note: +1
                    !(ps->magic & PATHSPEC_MAXDEPTH) ||
                                                     ^
/datasets/git/tree-walk.c:1044:24: note: +2, including nesting penalty of 1, nesting level increased to 2
                                    ps->max_depth) ?
                                                   ^
/datasets/git/tree-walk.c:1050:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = ps->nr - 1; i >= 0; i--) {
        ^
/datasets/git/tree-walk.c:1056:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((!exclude &&   item->magic & PATHSPEC_EXCLUDE) ||
                ^
/datasets/git/tree-walk.c:1056:54: note: +1
                if ((!exclude &&   item->magic & PATHSPEC_EXCLUDE) ||
                                                                   ^
/datasets/git/tree-walk.c:1056:17: note: +1
                if ((!exclude &&   item->magic & PATHSPEC_EXCLUDE) ||
                              ^
/datasets/git/tree-walk.c:1057:17: note: +1
                    ( exclude && !(item->magic & PATHSPEC_EXCLUDE)))
                              ^
/datasets/git/tree-walk.c:1060:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (baselen >= matchlen) {
                ^
/datasets/git/tree-walk.c:1062:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!match_dir_prefix(item, base_str, match, matchlen))
                        ^
/datasets/git/tree-walk.c:1065:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!ps->recursive ||
                        ^
/datasets/git/tree-walk.c:1066:41: note: +1
                            !(ps->magic & PATHSPEC_MAXDEPTH) ||
                                                             ^
/datasets/git/tree-walk.c:1068:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!item->attr_match_nr)
                                ^
/datasets/git/tree-walk.c:1070:5: note: +1, nesting level increased to 4
                                else
                                ^
/datasets/git/tree-walk.c:1074:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (within_depth(base_str + matchlen + 1,
                        ^
/datasets/git/tree-walk.c:1079:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/tree-walk.c:1084:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (baselen == 0 || !basecmp(item, base_str, match, baselen)) {
                ^
/datasets/git/tree-walk.c:1084:20: note: +1
                if (baselen == 0 || !basecmp(item, base_str, match, baselen)) {
                                 ^
/datasets/git/tree-walk.c:1085:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (match_entry(item, entry, pathlen,
                        ^
/datasets/git/tree-walk.c:1090:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (item->nowildcard_len < item->len) {
                        ^
/datasets/git/tree-walk.c:1091:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!git_fnmatch(item, match + baselen, entry->path,
                                ^
/datasets/git/tree-walk.c:1099:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (ps->recursive && S_ISDIR(entry->mode))
                                ^
/datasets/git/tree-walk.c:1099:23: note: +1
                                if (ps->recursive && S_ISDIR(entry->mode))
                                                  ^
/datasets/git/tree-walk.c:1109:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (ps->recurse_submodules &&
                                ^
/datasets/git/tree-walk.c:1110:34: note: +1
                                    S_ISGITLINK(entry->mode) &&
                                                             ^
/datasets/git/tree-walk.c:1121:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (item->nowildcard_len == item->len)
                ^
/datasets/git/tree-walk.c:1124:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (item->nowildcard_len &&
                ^
/datasets/git/tree-walk.c:1124:28: note: +1
                if (item->nowildcard_len &&
                                         ^
/datasets/git/tree-walk.c:1146:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!git_fnmatch(item, match, base->buf + base_offset,
                ^
/datasets/git/tree-walk.c:1149:4: note: +1
                        goto interesting;
                        ^
/datasets/git/tree-walk.c:1159:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ps->recurse_submodules && S_ISGITLINK(entry->mode) &&
                ^
/datasets/git/tree-walk.c:1159:58: note: +1
                if (ps->recurse_submodules && S_ISGITLINK(entry->mode) &&
                                                                       ^
/datasets/git/tree-walk.c:1163:4: note: +1
                        goto interesting;
                        ^
/datasets/git/tree-walk.c:1175:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ps->recursive && S_ISDIR(entry->mode))
                ^
/datasets/git/tree-walk.c:1175:21: note: +1
                if (ps->recursive && S_ISDIR(entry->mode))
                                  ^
/datasets/git/tree-walk.c:1179:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (item->attr_match_nr) {
                ^
/datasets/git/tree-walk.c:1198:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (S_ISDIR(entry->mode))
                        ^
/datasets/git/tree-walk.c:1205:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!ret)
                        ^
/datasets/git/tree-walk.c:1020:29: warning: parameter name 'ps' is too short, expected at least 3 characters [readability-identifier-length]
                                 const struct pathspec *ps,
                                                        ^
/datasets/git/tree-walk.c:1023:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/tree-walk.c:1023:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/tree-walk.c:1024:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int pathlen, baselen = base->len - base_offset;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/tree-walk.c:1024:6: warning: variable 'pathlen' is not initialized [cppcoreguidelines-init-variables]
        int pathlen, baselen = base->len - base_offset;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/tree-walk.c:1024:25: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int pathlen, baselen = base->len - base_offset;
                               ^
/datasets/git/tree-walk.c:1028:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        GUARD_PATHSPEC(ps,
        ^
/datasets/git/./pathspec.h:59:2: note: expanded from macro 'GUARD_PATHSPEC'
        do { \
        ^
/datasets/git/tree-walk.c:1023:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int i;
        ^
/datasets/git/tree-walk.c:1028:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        GUARD_PATHSPEC(ps,
        ^
/datasets/git/./pathspec.h:60:7: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                    ^             ~~~~~~~
/datasets/git/tree-walk.c:1028:2: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
        GUARD_PATHSPEC(ps,
        ^
/datasets/git/./pathspec.h:60:21: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                                  ^~~~~~~
/datasets/git/tree-walk.c:1029:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_FROMTOP |
                       ^
/datasets/git/./pathspec.h:7:26: note: expanded from macro 'PATHSPEC_FROMTOP'
#define PATHSPEC_FROMTOP        (1<<0)
                                ^
/datasets/git/./pathspec.h:60:23: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                                    ^~~~
/datasets/git/tree-walk.c:1030:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_MAXDEPTH |
                       ^
/datasets/git/./pathspec.h:8:28: note: expanded from macro 'PATHSPEC_MAXDEPTH'
#define PATHSPEC_MAXDEPTH       (1<<1)
                                 ^
/datasets/git/./pathspec.h:60:23: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                                    ^~~~
/datasets/git/tree-walk.c:1031:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_LITERAL |
                       ^
/datasets/git/./pathspec.h:9:27: note: expanded from macro 'PATHSPEC_LITERAL'
#define PATHSPEC_LITERAL        (1<<2)
                                 ^
/datasets/git/./pathspec.h:60:23: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                                    ^~~~
/datasets/git/tree-walk.c:1032:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_GLOB |
                       ^
/datasets/git/./pathspec.h:10:25: note: expanded from macro 'PATHSPEC_GLOB'
#define PATHSPEC_GLOB           (1<<3)
                                 ^
/datasets/git/./pathspec.h:60:23: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                                    ^~~~
/datasets/git/tree-walk.c:1033:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_ICASE |
                       ^
/datasets/git/./pathspec.h:11:26: note: expanded from macro 'PATHSPEC_ICASE'
#define PATHSPEC_ICASE          (1<<4)
                                 ^
/datasets/git/./pathspec.h:60:23: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                                    ^~~~
/datasets/git/tree-walk.c:1034:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_EXCLUDE |
                       ^
/datasets/git/./pathspec.h:12:27: note: expanded from macro 'PATHSPEC_EXCLUDE'
#define PATHSPEC_EXCLUDE        (1<<5)
                                 ^
/datasets/git/./pathspec.h:60:23: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                                    ^~~~
/datasets/git/tree-walk.c:1035:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       PATHSPEC_ATTR);
                       ^
/datasets/git/./pathspec.h:13:25: note: expanded from macro 'PATHSPEC_ATTR'
#define PATHSPEC_ATTR           (1<<6)
                                 ^
/datasets/git/./pathspec.h:60:23: note: expanded from macro 'GUARD_PATHSPEC'
                if ((ps)->magic & ~(mask))             \
                                    ^~~~
/datasets/git/tree-walk.c:1039:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    !(ps->magic & PATHSPEC_MAXDEPTH) ||
                      ^
/datasets/git/tree-walk.c:1039:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    !(ps->magic & PATHSPEC_MAXDEPTH) ||
                                  ^
/datasets/git/./pathspec.h:8:28: note: expanded from macro 'PATHSPEC_MAXDEPTH'
#define PATHSPEC_MAXDEPTH       (1<<1)
                                 ^
/datasets/git/tree-walk.c:1040:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    ps->max_depth == -1)
                                        ^
                                         {
/datasets/git/tree-walk.c:1050:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = ps->nr - 1; i >= 0; i--) {
        ^
/datasets/git/tree-walk.c:1050:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = ps->nr - 1; i >= 0; i--) {
                             ^
/datasets/git/tree-walk.c:1054:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int matchlen = item->len, matched = 0;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/tree-walk.c:1056:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((!exclude &&   item->magic & PATHSPEC_EXCLUDE) ||
                                   ^
/datasets/git/tree-walk.c:1056:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((!exclude &&   item->magic & PATHSPEC_EXCLUDE) ||
                                                 ^
/datasets/git/./pathspec.h:12:27: note: expanded from macro 'PATHSPEC_EXCLUDE'
#define PATHSPEC_EXCLUDE        (1<<5)
                                 ^
/datasets/git/tree-walk.c:1057:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    ( exclude && !(item->magic & PATHSPEC_EXCLUDE)))
                                   ^
/datasets/git/tree-walk.c:1057:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    ( exclude && !(item->magic & PATHSPEC_EXCLUDE)))
                                                 ^
/datasets/git/./pathspec.h:12:27: note: expanded from macro 'PATHSPEC_EXCLUDE'
#define PATHSPEC_EXCLUDE        (1<<5)
                                 ^
/datasets/git/tree-walk.c:1057:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    ( exclude && !(item->magic & PATHSPEC_EXCLUDE)))
                                                                    ^
                                                                     {
/datasets/git/tree-walk.c:1062:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!match_dir_prefix(item, base_str, match, matchlen))
                                                                               ^
                                                                                {
/datasets/git/tree-walk.c:1066:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !(ps->magic & PATHSPEC_MAXDEPTH) ||
                              ^
/datasets/git/tree-walk.c:1066:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            !(ps->magic & PATHSPEC_MAXDEPTH) ||
                                          ^
/datasets/git/./pathspec.h:8:28: note: expanded from macro 'PATHSPEC_MAXDEPTH'
#define PATHSPEC_MAXDEPTH       (1<<1)
                                 ^
/datasets/git/tree-walk.c:1068:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!item->attr_match_nr)
                                                         ^
                                                          {
/datasets/git/tree-walk.c:1070:5: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                                else
                                ^~~~
                                                                        goto interesting
/datasets/git/tree-walk.c:1070:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                else
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/tree-walk.c:1077:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                         ps->max_depth))
                                                        ^
                                                         {
/datasets/git/tree-walk.c:1079:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/tree-walk.c:1087:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        &never_interesting))
                                                            ^
                                                             {
/datasets/git/tree-walk.c:1092:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                 item->nowildcard_len - baselen))
                                                                                 ^
                                                                                  {
/datasets/git/tree-walk.c:1099:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (ps->recursive && S_ISDIR(entry->mode))
                                                                          ^
                                                                           {
/datasets/git/tree-walk.c:1110:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                    S_ISGITLINK(entry->mode) &&
                                    ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/tree-walk.c:1113:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                item->nowildcard_len - baselen))
                                                                                ^
                                                                                 {
/datasets/git/tree-walk.c:1121:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (item->nowildcard_len == item->len)
                                                      ^
                                                       {
/datasets/git/tree-walk.c:1125:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !match_wildcard_base(item, base_str, baselen, &matched))
                                                                            ^
                                                                             {
/datasets/git/tree-walk.c:1159:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ps->recurse_submodules && S_ISGITLINK(entry->mode) &&
                                              ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/tree-walk.c:1175:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ps->recursive && S_ISDIR(entry->mode))
                                                          ^
                                                           {
/datasets/git/tree-walk.c:1180:8: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
                        int ret;
                            ^
                                = 0
/datasets/git/tree-walk.c:1198:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (S_ISDIR(entry->mode))
                                                 ^
                                                  {
/datasets/git/tree-walk.c:1203:10: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                                   base->len - base_offset, item);
                                                   ^
/datasets/git/tree-walk.c:1205:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!ret)
                                 ^
                                  {
/datasets/git/tree-walk.c:1222:29: warning: parameter name 'ps' is too short, expected at least 3 characters [readability-identifier-length]
                                        const struct pathspec *ps)
                                                               ^
/datasets/git/tree-walk.c:1224:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        enum interesting positive, negative;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/tree-walk.c:1224:19: warning: variable 'positive' is not initialized [cppcoreguidelines-init-variables]
        enum interesting positive, negative;
                         ^
/datasets/git/tree-walk.c:1224:29: warning: variable 'negative' is not initialized [cppcoreguidelines-init-variables]
        enum interesting positive, negative;
                                   ^
/datasets/git/tree-walk.c:1258:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(ps->magic & PATHSPEC_EXCLUDE) ||
              ^
/datasets/git/tree-walk.c:1258:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(ps->magic & PATHSPEC_EXCLUDE) ||
                          ^
/datasets/git/./pathspec.h:12:27: note: expanded from macro 'PATHSPEC_EXCLUDE'
#define PATHSPEC_EXCLUDE        (1<<5)
                                 ^
/datasets/git/tree-walk.c:1259:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            positive <= entry_not_interesting) /* #1, #2, #11, #12 */
                                              ^
                                               {
/datasets/git/tree-walk.c:1266:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            negative == entry_not_interesting)
                                              ^
                                               {
/datasets/git/tree-walk.c:1270:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (negative <= entry_not_interesting)
                                              ^
                                               {
/datasets/git/tree-walk.c:1276:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            negative == entry_interesting)
                                          ^
                                           {
/datasets/git/tree-walk.c:1282:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
             negative == entry_interesting)) /* #9 */
                                            ^
                                             {
/datasets/git/tree.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "cache-tree.h"
^        ~~~~~~~~~~~~~~
         "alloc.h"
/datasets/git/tree.c:12:13: warning: variable 'tree_type' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
const char *tree_type = "tree";
            ^
/datasets/git/tree.c:14:5: warning: function 'read_tree_at' is within a recursive call chain [misc-no-recursion]
int read_tree_at(struct repository *r,
    ^
/datasets/git/tree.c:14:5: note: example recursive call chain, starting from function 'read_tree_at'
/datasets/git/tree.c:74:12: note: Frame #1: function 'read_tree_at' calls function 'read_tree_at' here:
                retval = read_tree_at(r, lookup_tree(r, &oid),
                         ^
/datasets/git/tree.c:74:12: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/tree.c:14:37: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int read_tree_at(struct repository *r,
                                    ^
/datasets/git/tree.c:17:19: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
                 read_tree_fn_t fn, void *context)
                                ^
/datasets/git/tree.c:22:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int len, oldlen = base->len;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/tree.c:22:6: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int len, oldlen = base->len;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/tree.c:22:20: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int len, oldlen = base->len;
                          ^
/datasets/git/tree.c:25:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_tree(tree))
                             ^
                              {
/datasets/git/tree.c:30:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (tree_entry(&desc, &entry)) {
        ^
/datasets/git/tree.c:34:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (retval == all_entries_not_interesting)
                                                                  ^
                                                                   {
/datasets/git/tree.c:36:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (retval == entry_not_interesting)
                                                            ^
                                                             {
/datasets/git/tree.c:50:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (S_ISDIR(entry.mode))
                                        ^
                                         {
/datasets/git/tree.c:52:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                else if (S_ISGITLINK(entry.mode)) {
                         ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/tree.c:53:19: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
                        struct commit *commit;
                                       ^
                                              = NULL
/datasets/git/tree.c:56:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!commit)
                                    ^
                                     {
/datasets/git/tree.c:61:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (parse_commit(commit))
                                                 ^
                                                  {
/datasets/git/tree.c:68:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/tree.c:78:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (retval)
                           ^
                            {
/datasets/git/tree.c:84:34: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int read_tree(struct repository *r,
                                 ^
/datasets/git/tree.c:87:23: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
              read_tree_fn_t fn, void *context)
                             ^
/datasets/git/tree.c:89:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/tree.c:95:40: warning: parameter name 'a_' is too short, expected at least 3 characters [readability-identifier-length]
int cmp_cache_name_compare(const void *a_, const void *b_)
                                       ^
/datasets/git/tree.c:95:56: warning: parameter name 'b_' is too short, expected at least 3 characters [readability-identifier-length]
int cmp_cache_name_compare(const void *a_, const void *b_)
                                                       ^
/datasets/git/tree.c:97:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const struct cache_entry *ce1, *ce2;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/tree.c:97:28: warning: variable 'ce1' is not initialized [cppcoreguidelines-init-variables]
        const struct cache_entry *ce1, *ce2;
                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/tree.c:97:34: warning: variable 'ce2' is not initialized [cppcoreguidelines-init-variables]
        const struct cache_entry *ce1, *ce2;
                                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/tree.c:101:45: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return cache_name_stage_compare(ce1->name, ce1->ce_namelen, ce_stage(ce1),
                                                   ^
/datasets/git/tree.c:101:62: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return cache_name_stage_compare(ce1->name, ce1->ce_namelen, ce_stage(ce1),
                                                                    ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/tree.c:102:18: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                  ce2->name, ce2->ce_namelen, ce_stage(ce2));
                                             ^
/datasets/git/tree.c:102:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                  ce2->name, ce2->ce_namelen, ce_stage(ce2));
                                                              ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/tree.c:105:45: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
struct tree *lookup_tree(struct repository *r, const struct object_id *oid)
                                            ^
/datasets/git/tree.c:108:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!obj)
                 ^
                  {
/datasets/git/tree.c:115:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (item->object.parsed)
                                ^
                                 {
/datasets/git/tree.c:126:20: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
         enum object_type type;
                          ^
/datasets/git/tree.c:127:9: warning: variable 'buffer' is not initialized [cppcoreguidelines-init-variables]
         void *buffer;
               ^
                      = NULL
/datasets/git/tree.c:128:17: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
         unsigned long size;
                       ^
                            = 0
/datasets/git/tree.c:130:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (item->object.parsed)
                                ^
                                 {
/datasets/git/tree.c:133:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!buffer)
                    ^
                     {
/datasets/git/tree.c:147:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(tree->buffer);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/tree.c:154:21: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        struct repository *r = the_repository;
                           ^
/datasets/git/unix-socket.c:4:1: warning: replace macro with enum [modernize-macro-to-enum]
#define DEFAULT_UNIX_STREAM_LISTEN_BACKLOG (5)
^~~~~~~~
                                           =
/datasets/git/unix-socket.c:4:9: warning: macro 'DEFAULT_UNIX_STREAM_LISTEN_BACKLOG' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define DEFAULT_UNIX_STREAM_LISTEN_BACKLOG (5)
        ^
/datasets/git/unix-socket.c:9:6: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        int r = chdir(path);
            ^
/datasets/git/unix-socket.c:20:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ctx->orig_dir)
                           ^
                            {
/datasets/git/unix-socket.c:27:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (chdir(ctx->orig_dir) < 0)
                                     ^
                                      {
/datasets/git/unix-socket.c:32:51: warning: parameter name 'sa' is too short, expected at least 3 characters [readability-identifier-length]
static int unix_sockaddr_init(struct sockaddr_un *sa, const char *path,
                                                  ^
/datasets/git/unix-socket.c:36:13: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int size = strlen(path) + 1;
                   ^
/datasets/git/unix-socket.c:40:15: warning: variable 'slash' is not initialized [cppcoreguidelines-init-variables]
                const char *slash;
                            ^
                                  = NULL
/datasets/git/unix-socket.c:41:15: warning: variable 'dir' is not initialized [cppcoreguidelines-init-variables]
                const char *dir;
                            ^
                                = NULL
/datasets/git/unix-socket.c:57:10: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                size = strlen(path) + 1;
                       ^
/datasets/git/unix-socket.c:62:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strbuf_getcwd(&cwd))
                                        ^
                                         {
/datasets/git/unix-socket.c:65:22: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                if (chdir_len(dir, slash - dir) < 0)
                                   ^
/datasets/git/unix-socket.c:65:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (chdir_len(dir, slash - dir) < 0)
                                                    ^
                                                     {
/datasets/git/unix-socket.c:69:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(sa, 0, sizeof(*sa));
        ^~~~~~
/datasets/git/unix-socket.c:69:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(sa, 0, sizeof(*sa));
        ^~~~~~
/datasets/git/unix-socket.c:71:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(sa->sun_path, path, size);
        ^~~~~~
/datasets/git/unix-socket.c:71:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(sa->sun_path, path, size);
        ^~~~~~
/datasets/git/unix-socket.c:77:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int fd = -1, saved_errno;
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/unix-socket.c:77:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
        int fd = -1, saved_errno;
            ^
/datasets/git/unix-socket.c:77:15: warning: variable 'saved_errno' is not initialized [cppcoreguidelines-init-variables]
        int fd = -1, saved_errno;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/unix-socket.c:78:21: warning: variable name 'sa' is too short, expected at least 3 characters [readability-identifier-length]
        struct sockaddr_un sa;
                           ^
/datasets/git/unix-socket.c:81:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unix_sockaddr_init(&sa, path, &ctx, disallow_chdir) < 0)
                                                                    ^
                                                                     {
/datasets/git/unix-socket.c:84:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fd < 0)
                   ^
                    {
/datasets/git/unix-socket.c:87:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (connect(fd, (struct sockaddr *)&sa, sizeof(sa)) < 0)
                                                                ^
                                                                 {
/datasets/git/unix-socket.c:94:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fd != -1)
                     ^
                      {
/datasets/git/unix-socket.c:104:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int fd = -1, saved_errno;
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/unix-socket.c:104:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
        int fd = -1, saved_errno;
            ^
/datasets/git/unix-socket.c:104:15: warning: variable 'saved_errno' is not initialized [cppcoreguidelines-init-variables]
        int fd = -1, saved_errno;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/unix-socket.c:105:6: warning: variable 'backlog' is not initialized [cppcoreguidelines-init-variables]
        int backlog;
            ^
                    = 0
/datasets/git/unix-socket.c:106:21: warning: variable name 'sa' is too short, expected at least 3 characters [readability-identifier-length]
        struct sockaddr_un sa;
                           ^
/datasets/git/unix-socket.c:111:68: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unix_sockaddr_init(&sa, path, &ctx, opts->disallow_chdir) < 0)
                                                                          ^
                                                                           {
/datasets/git/unix-socket.c:114:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fd < 0)
                   ^
                    {
/datasets/git/unix-socket.c:117:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (bind(fd, (struct sockaddr *)&sa, sizeof(sa)) < 0)
                                                             ^
                                                              {
/datasets/git/unix-socket.c:121:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (backlog <= 0)
                         ^
                          {
/datasets/git/unix-socket.c:123:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (listen(fd, backlog) < 0)
                                    ^
                                     {
/datasets/git/unix-socket.c:131:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fd != -1)
                     ^
                      {
/datasets/git/unix-stream-server.c:6:1: warning: replace macro with enum [modernize-macro-to-enum]
#define DEFAULT_LOCK_TIMEOUT (100)
^~~~~~~~
                             =
/datasets/git/unix-stream-server.c:6:9: warning: macro 'DEFAULT_LOCK_TIMEOUT' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define DEFAULT_LOCK_TIMEOUT (100)
        ^
/datasets/git/unix-stream-server.c:24:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
        int fd = unix_stream_connect(path, opts->disallow_chdir);
            ^
/datasets/git/unix-stream-server.c:39:6: warning: variable 'fd_socket' is not initialized [cppcoreguidelines-init-variables]
        int fd_socket;
            ^
                      = 0
/datasets/git/unix-stream-server.c:40:25: warning: variable 'server_socket' is not initialized [cppcoreguidelines-init-variables]
        struct unix_ss_socket *server_socket;
                               ^
                                             = NULL
/datasets/git/unix-stream-server.c:44:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (timeout_ms < 0)
                           ^
                            {
/datasets/git/unix-stream-server.c:50:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (hold_lock_file_for_update_timeout(&lock, path, 0, timeout_ms) < 0)
                                                                              ^
                                                                               {
/datasets/git/unix-stream-server.c:93:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!server_socket)
                           ^
                            {
/datasets/git/unix-stream-server.c:97:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!unix_ss_was_stolen(server_socket))
                                                       ^
                                                        {
/datasets/git/unix-stream-server.c:110:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!server_socket)
                           ^
                            {
/datasets/git/unix-stream-server.c:113:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (lstat(server_socket->path_socket, &st_now) == -1)
                                                             ^
                                                              {
/datasets/git/unix-stream-server.c:116:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (st_now.st_ino != server_socket->st_socket.st_ino)
                                                             ^
                                                              {
/datasets/git/unix-stream-server.c:118:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (st_now.st_dev != server_socket->st_socket.st_dev)
                                                             ^
                                                              {
/datasets/git/unix-stream-server.c:121:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!S_ISSOCK(st_now.st_mode))
                                      ^
                                       {
unpack-trees.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "strvec.h"
^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/unpack-trees.c:22:1: warning: duplicate include [readability-duplicate-include]
#include "sparse-index.h"
^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:31:20: warning: variable 'unpack_plumbing_errors' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const char *unpack_plumbing_errors[NB_UNPACK_TREES_WARNING_TYPES] = {
                   ^
/datasets/git/unpack-trees.c:90:8: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                        int i;
                            ^
                              = 0
/datasets/git/unpack-trees.c:90:8: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/unpack-trees.c:91:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = 0; i < ARRAY_SIZE(buf); i++)
                        ^
/datasets/git/unpack-trees.c:91:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'buf' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (i = 0; i < ARRAY_SIZE(buf); i++)
                                    ^
/datasets/git/unpack-trees.c:91:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (i = 0; i < ARRAY_SIZE(buf); i++)
                                                             ^
                                                              {
/datasets/git/unpack-trees.c:93:23: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        super_prefix_len = buf[0].len;
                                           ^
/datasets/git/unpack-trees.c:97:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!super_prefix_len)
                              ^
                               {
/datasets/git/unpack-trees.c:100:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (++idx >= ARRAY_SIZE(buf))
                                     ^
                                      {
/datasets/git/unpack-trees.c:109:6: warning: function 'setup_unpack_trees_porcelain' has cognitive complexity of 28 (threshold 25) [readability-function-cognitive-complexity]
void setup_unpack_trees_porcelain(struct unpack_trees_options *opts,
     ^
/datasets/git/unpack-trees.c:118:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(cmd, "checkout"))
        ^
/datasets/git/unpack-trees.c:120:9: note: +2, including nesting penalty of 1, nesting level increased to 2
                      ? _("Your local changes to the following files would be overwritten by checkout:\n%%s"
                      ^
/datasets/git/unpack-trees.c:123:7: note: +1, nesting level increased to 1
        else if (!strcmp(cmd, "merge"))
             ^
/datasets/git/unpack-trees.c:125:9: note: +2, including nesting penalty of 1, nesting level increased to 2
                      ? _("Your local changes to the following files would be overwritten by merge:\n%%s"
                      ^
/datasets/git/unpack-trees.c:128:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/unpack-trees.c:130:9: note: +2, including nesting penalty of 1, nesting level increased to 2
                      ? _("Your local changes to the following files would be overwritten by %s:\n%%s"
                      ^
/datasets/git/unpack-trees.c:142:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(cmd, "checkout"))
        ^
/datasets/git/unpack-trees.c:144:9: note: +2, including nesting penalty of 1, nesting level increased to 2
                      ? _("The following untracked working tree files would be removed by checkout:\n%%s"
                      ^
/datasets/git/unpack-trees.c:147:7: note: +1, nesting level increased to 1
        else if (!strcmp(cmd, "merge"))
             ^
/datasets/git/unpack-trees.c:149:9: note: +2, including nesting penalty of 1, nesting level increased to 2
                      ? _("The following untracked working tree files would be removed by merge:\n%%s"
                      ^
/datasets/git/unpack-trees.c:152:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/unpack-trees.c:154:9: note: +2, including nesting penalty of 1, nesting level increased to 2
                      ? _("The following untracked working tree files would be removed by %s:\n%%s"
                      ^
/datasets/git/unpack-trees.c:160:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(cmd, "checkout"))
        ^
/datasets/git/unpack-trees.c:162:9: note: +2, including nesting penalty of 1, nesting level increased to 2
                      ? _("The following untracked working tree files would be overwritten by checkout:\n%%s"
                      ^
/datasets/git/unpack-trees.c:165:7: note: +1, nesting level increased to 1
        else if (!strcmp(cmd, "merge"))
             ^
/datasets/git/unpack-trees.c:167:9: note: +2, including nesting penalty of 1, nesting level increased to 2
                      ? _("The following untracked working tree files would be overwritten by merge:\n%%s"
                      ^
/datasets/git/unpack-trees.c:170:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/unpack-trees.c:172:9: note: +2, including nesting penalty of 1, nesting level increased to 2
                      ? _("The following untracked working tree files would be overwritten by %s:\n%%s"
                      ^
/datasets/git/unpack-trees.c:196:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < ARRAY_SIZE(opts->unpack_rejects); i++)
        ^
/datasets/git/unpack-trees.c:112:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/unpack-trees.c:112:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/unpack-trees.c:114:14: warning: variable 'msg' is not initialized [cppcoreguidelines-init-variables]
        const char *msg;
                    ^
                        = NULL
/datasets/git/unpack-trees.c:118:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(cmd, "checkout"))
                                     ^
                                      {
/datasets/git/unpack-trees.c:123:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(cmd, "merge"))
                                       ^
                                        {
/datasets/git/unpack-trees.c:128:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/unpack-trees.c:142:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(cmd, "checkout"))
                                     ^
                                      {
/datasets/git/unpack-trees.c:147:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(cmd, "merge"))
                                       ^
                                        {
/datasets/git/unpack-trees.c:152:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/unpack-trees.c:160:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(cmd, "checkout"))
                                     ^
                                      {
/datasets/git/unpack-trees.c:165:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(cmd, "merge"))
                                       ^
                                        {
/datasets/git/unpack-trees.c:170:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/unpack-trees.c:196:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < ARRAY_SIZE(opts->unpack_rejects); i++)
        ^
/datasets/git/unpack-trees.c:196:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < ARRAY_SIZE(opts->unpack_rejects); i++)
                                                              ^
                                                               {
/datasets/git/unpack-trees.c:203:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(opts->msgs, 0, sizeof(opts->msgs));
        ^~~~~~
/datasets/git/unpack-trees.c:203:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(opts->msgs, 0, sizeof(opts->msgs));
        ^~~~~~
/datasets/git/unpack-trees.c:206:54: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static int do_add_entry(struct unpack_trees_options *o, struct cache_entry *ce,
                                                     ^
/datasets/git/unpack-trees.c:206:77: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static int do_add_entry(struct unpack_trees_options *o, struct cache_entry *ce,
                                                                            ^
/datasets/git/unpack-trees.c:209:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        clear |= CE_HASHED;
        ^
/datasets/git/unpack-trees.c:209:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        clear |= CE_HASHED;
                 ^
/datasets/git/./refs/../cache.h:172:31: note: expanded from macro 'CE_HASHED'
#define CE_HASHED            (1 << 20)
                              ^
/datasets/git/unpack-trees.c:211:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (set & CE_REMOVE)
            ^
/datasets/git/unpack-trees.c:211:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (set & CE_REMOVE)
                  ^
/datasets/git/./refs/../cache.h:168:31: note: expanded from macro 'CE_REMOVE'
#define CE_REMOVE            (1 << 17)
                              ^
/datasets/git/unpack-trees.c:211:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (set & CE_REMOVE)
                            ^
                             {
/datasets/git/unpack-trees.c:212:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                set |= CE_WT_REMOVE;
                ^
/datasets/git/unpack-trees.c:212:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                set |= CE_WT_REMOVE;
                       ^
/datasets/git/./refs/../cache.h:174:31: note: expanded from macro 'CE_WT_REMOVE'
#define CE_WT_REMOVE         (1 << 22) /* remove in work directory */
                              ^
/datasets/git/unpack-trees.c:216:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                               ADD_CACHE_OK_TO_ADD | ADD_CACHE_OK_TO_REPLACE);
                               ^
/datasets/git/./refs/../cache.h:840:29: note: expanded from macro 'ADD_CACHE_OK_TO_ADD'
#define ADD_CACHE_OK_TO_ADD 1           /* Ok to add */
                            ^
/datasets/git/unpack-trees.c:219:52: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static void add_entry(struct unpack_trees_options *o,
                                                   ^
/datasets/git/unpack-trees.c:220:35: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                      const struct cache_entry *ce,
                                                ^
/datasets/git/unpack-trees.c:231:59: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static int add_rejected_path(struct unpack_trees_options *o,
                                                          ^
/datasets/git/unpack-trees.c:232:39: warning: parameter name 'e' is too short, expected at least 3 characters [readability-identifier-length]
                             enum unpack_trees_error_types e,
                                                           ^
/datasets/git/unpack-trees.c:235:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (o->quiet)
                     ^
                      {
/datasets/git/unpack-trees.c:238:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!o->show_all_errors)
                                ^
                                 {
/datasets/git/unpack-trees.c:252:61: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static void display_error_msgs(struct unpack_trees_options *o)
                                                            ^
/datasets/git/unpack-trees.c:254:6: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        int e;
            ^
              = 0
/datasets/git/unpack-trees.c:254:6: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/unpack-trees.c:260:8: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                        int i;
                            ^
                              = 0
/datasets/git/unpack-trees.c:260:8: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/unpack-trees.c:264:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = 0; i < rejects->nr; i++)
                        ^
/datasets/git/unpack-trees.c:264:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'rejects' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (i = 0; i < rejects->nr; i++)
                                    ^
/datasets/git/unpack-trees.c:264:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (i = 0; i < rejects->nr; i++)
                                                         ^
                                                          {
/datasets/git/unpack-trees.c:271:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (error_displayed)
                            ^
                             {
/datasets/git/unpack-trees.c:272:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, _("Aborting\n"));
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:272:3: note: cast the expression to void to silence this warning
/datasets/git/unpack-trees.c:278:63: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static void display_warning_msgs(struct unpack_trees_options *o)
                                                              ^
/datasets/git/unpack-trees.c:280:6: warning: variable 'e' is not initialized [cppcoreguidelines-init-variables]
        int e;
            ^
              = 0
/datasets/git/unpack-trees.c:280:6: warning: variable name 'e' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/unpack-trees.c:287:8: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                        int i;
                            ^
                              = 0
/datasets/git/unpack-trees.c:287:8: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/unpack-trees.c:291:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = 0; i < rejects->nr; i++)
                        ^
/datasets/git/unpack-trees.c:291:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'rejects' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (i = 0; i < rejects->nr; i++)
                                    ^
/datasets/git/unpack-trees.c:291:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (i = 0; i < rejects->nr; i++)
                                                         ^
                                                          {
/datasets/git/unpack-trees.c:298:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (warning_displayed)
                              ^
                               {
/datasets/git/unpack-trees.c:299:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, _("After fixing the above paths, you may want to run `git sparse-checkout reapply`.\n"));
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:299:3: note: cast the expression to void to silence this warning
/datasets/git/unpack-trees.c:301:64: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static int check_submodule_move_head(const struct cache_entry *ce,
                                                               ^
/datasets/git/unpack-trees.c:304:39: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                                     struct unpack_trees_options *o)
                                                                  ^
/datasets/git/unpack-trees.c:306:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned flags = SUBMODULE_MOVE_HEAD_DRY_RUN;
                         ^
/datasets/git/./submodule.h:151:38: note: expanded from macro 'SUBMODULE_MOVE_HEAD_DRY_RUN'
#define SUBMODULE_MOVE_HEAD_DRY_RUN (1<<0)
                                     ^
/datasets/git/unpack-trees.c:309:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!sub)
                 ^
                  {
/datasets/git/unpack-trees.c:312:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (o->reset)
                     ^
                      {
/datasets/git/unpack-trees.c:313:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags |= SUBMODULE_MOVE_HEAD_FORCE;
                ^
/datasets/git/unpack-trees.c:313:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                flags |= SUBMODULE_MOVE_HEAD_FORCE;
                         ^
/datasets/git/./submodule.h:152:38: note: expanded from macro 'SUBMODULE_MOVE_HEAD_FORCE'
#define SUBMODULE_MOVE_HEAD_FORCE   (1<<1)
                                     ^
/datasets/git/unpack-trees.c:315:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (submodule_move_head(ce->name, old_id, new_id, flags))
                                                                 ^
                                                                  {
/datasets/git/unpack-trees.c:335:23: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                struct cache_entry *ce = index->cache[pos];
                                    ^
/datasets/git/unpack-trees.c:336:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!state && ce->ce_flags & CE_WT_REMOVE) {
                              ^
/datasets/git/unpack-trees.c:336:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!state && ce->ce_flags & CE_WT_REMOVE) {
                                             ^
/datasets/git/./refs/../cache.h:174:31: note: expanded from macro 'CE_WT_REMOVE'
#define CE_WT_REMOVE         (1 << 22) /* remove in work directory */
                              ^
/datasets/git/unpack-trees.c:338:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                } else if (state && (ce->ce_flags & CE_UPDATE)) {
                                     ^
/datasets/git/unpack-trees.c:338:39: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                } else if (state && (ce->ce_flags & CE_UPDATE)) {
                                                    ^
/datasets/git/./refs/../cache.h:167:31: note: expanded from macro 'CE_UPDATE'
#define CE_UPDATE            (1 << 16)
                              ^
/datasets/git/unpack-trees.c:346:67: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static struct progress *get_progress(struct unpack_trees_options *o,
                                                                  ^
/datasets/git/unpack-trees.c:349:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned cnt = 0, total = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:351:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!o->update || !o->verbose_update)
                                             ^
                                              {
/datasets/git/unpack-trees.c:354:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; cnt < index->cache_nr; cnt++) {
        ^
/datasets/git/unpack-trees.c:355:29: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                const struct cache_entry *ce = index->cache[cnt];
                                          ^
/datasets/git/unpack-trees.c:356:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce->ce_flags & (CE_UPDATE | CE_WT_REMOVE))
                    ^              ~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:356:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce->ce_flags & (CE_UPDATE | CE_WT_REMOVE))
                                    ^
/datasets/git/./refs/../cache.h:167:30: note: expanded from macro 'CE_UPDATE'
#define CE_UPDATE            (1 << 16)
                             ^~~~~~~~~
/datasets/git/unpack-trees.c:356:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce->ce_flags & (CE_UPDATE | CE_WT_REMOVE))
                                                ^
/datasets/git/./refs/../cache.h:174:31: note: expanded from macro 'CE_WT_REMOVE'
#define CE_WT_REMOVE         (1 << 22) /* remove in work directory */
                              ^
/datasets/git/unpack-trees.c:356:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ce->ce_flags & (CE_UPDATE | CE_WT_REMOVE))
                                                              ^
                                                               {
/datasets/git/unpack-trees.c:366:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/unpack-trees.c:366:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/unpack-trees.c:369:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < index->cache_nr; i++)
        ^
/datasets/git/unpack-trees.c:369:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < index->cache_nr; i++)
                                             ^
                                              {
/datasets/git/unpack-trees.c:370:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                index->cache[i]->ce_flags &= ~CE_MATCHED;
                ^                            ~~~~~~~~~~~
/datasets/git/unpack-trees.c:370:32: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                index->cache[i]->ce_flags &= ~CE_MATCHED;
                                             ^
/datasets/git/unpack-trees.c:370:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                index->cache[i]->ce_flags &= ~CE_MATCHED;
                                              ^
/datasets/git/./refs/../cache.h:181:31: note: expanded from macro 'CE_MATCHED'
#define CE_MATCHED           (1 << 26)
                              ^
/datasets/git/unpack-trees.c:376:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/unpack-trees.c:376:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/unpack-trees.c:378:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < index->cache_nr; i++) {
        ^
/datasets/git/unpack-trees.c:379:23: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                struct cache_entry *ce = index->cache[i];
                                    ^
/datasets/git/unpack-trees.c:381:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(ce->ce_flags & CE_MATCHED))
                      ^
/datasets/git/unpack-trees.c:381:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(ce->ce_flags & CE_MATCHED))
                                     ^
/datasets/git/./refs/../cache.h:181:31: note: expanded from macro 'CE_MATCHED'
#define CE_MATCHED           (1 << 26)
                              ^
/datasets/git/unpack-trees.c:381:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(ce->ce_flags & CE_MATCHED))
                                                 ^
                                                  {
/datasets/git/unpack-trees.c:385:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ce->ce_flags &= ~CE_MATCHED;
                ^               ~~~~~~~~~~~
/datasets/git/unpack-trees.c:385:19: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                ce->ce_flags &= ~CE_MATCHED;
                                ^
/datasets/git/unpack-trees.c:385:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ce->ce_flags &= ~CE_MATCHED;
                                 ^
/datasets/git/./refs/../cache.h:181:31: note: expanded from macro 'CE_MATCHED'
#define CE_MATCHED           (1 << 26)
                              ^
/datasets/git/unpack-trees.c:396:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < list.nr; i++)
                ^
/datasets/git/unpack-trees.c:396:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < list.nr; i++)
                                             ^
                                              {
/datasets/git/unpack-trees.c:397:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(stderr, "  '%s'\n", list.items[i].string);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:397:4: note: cast the expression to void to silence this warning
/datasets/git/unpack-trees.c:403:52: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static int must_checkout(const struct cache_entry *ce)
                                                   ^
/datasets/git/unpack-trees.c:405:9: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return ce->ce_flags & CE_UPDATE;
               ^
/datasets/git/unpack-trees.c:405:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
/datasets/git/unpack-trees.c:405:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return ce->ce_flags & CE_UPDATE;
                              ^
/datasets/git/./refs/../cache.h:167:31: note: expanded from macro 'CE_UPDATE'
#define CE_UPDATE            (1 << 16)
                              ^
/datasets/git/unpack-trees.c:408:12: warning: function 'check_updates' has cognitive complexity of 29 (threshold 25) [readability-function-cognitive-complexity]
static int check_updates(struct unpack_trees_options *o,
           ^
/datasets/git/unpack-trees.c:424:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!o->update || o->dry_run) {
        ^
/datasets/git/unpack-trees.c:424:17: note: +1
        if (!o->update || o->dry_run) {
                       ^
/datasets/git/unpack-trees.c:426:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                trace_performance_leave("check_updates");
                ^
/datasets/git/./trace.h:251:2: note: expanded from macro 'trace_performance_leave'
        do {                                                                \
        ^
/datasets/git/unpack-trees.c:426:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                trace_performance_leave("check_updates");
                ^
/datasets/git/./trace.h:252:3: note: expanded from macro 'trace_performance_leave'
                if (trace_pass_fl(&trace_perf_key))                         \
                ^
/datasets/git/unpack-trees.c:430:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (o->clone)
        ^
/datasets/git/unpack-trees.c:440:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (should_update_submodules())
        ^
/datasets/git/unpack-trees.c:443:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < index->cache_nr; i++) {
        ^
/datasets/git/unpack-trees.c:446:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ce->ce_flags & CE_WT_REMOVE) {
                ^
/datasets/git/unpack-trees.c:455:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (should_update_submodules())
        ^
/datasets/git/unpack-trees.c:458:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (has_promisor_remote())
        ^
/datasets/git/unpack-trees.c:468:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (pc_workers > 1)
        ^
/datasets/git/unpack-trees.c:470:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < index->cache_nr; i++) {
        ^
/datasets/git/unpack-trees.c:473:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (must_checkout(ce)) {
                ^
/datasets/git/unpack-trees.c:476:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ce->ce_flags & CE_WT_REMOVE)
                        ^
/datasets/git/unpack-trees.c:482:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (last_pc_queue_size == pc_queue_size())
                        ^
/datasets/git/unpack-trees.c:486:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (pc_workers > 1)
        ^
/datasets/git/unpack-trees.c:493:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (o->clone)
        ^
/datasets/git/unpack-trees.c:496:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        trace_performance_leave("check_updates");
        ^
/datasets/git/./trace.h:251:2: note: expanded from macro 'trace_performance_leave'
        do {                                                                \
        ^
/datasets/git/unpack-trees.c:496:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        trace_performance_leave("check_updates");
        ^
/datasets/git/./trace.h:252:3: note: expanded from macro 'trace_performance_leave'
                if (trace_pass_fl(&trace_perf_key))                         \
                ^
/datasets/git/unpack-trees.c:408:55: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static int check_updates(struct unpack_trees_options *o,
                                                      ^
/datasets/git/unpack-trees.c:413:19: warning: variable 'progress' is not initialized [cppcoreguidelines-init-variables]
        struct progress *progress;
                         ^
                                  = NULL
/datasets/git/unpack-trees.c:415:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, pc_workers, pc_threshold;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:415:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, pc_workers, pc_threshold;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/unpack-trees.c:415:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/unpack-trees.c:415:9: warning: variable 'pc_workers' is not initialized [cppcoreguidelines-init-variables]
        int i, pc_workers, pc_threshold;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/unpack-trees.c:415:21: warning: variable 'pc_threshold' is not initialized [cppcoreguidelines-init-variables]
        int i, pc_workers, pc_threshold;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/unpack-trees.c:426:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                trace_performance_leave("check_updates");
                ^
/datasets/git/./trace.h:251:2: note: expanded from macro 'trace_performance_leave'
        do {                                                                \
        ^
/datasets/git/unpack-trees.c:430:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (o->clone)
                     ^
                      {
/datasets/git/unpack-trees.c:440:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (should_update_submodules())
                                       ^
                                        {
/datasets/git/unpack-trees.c:443:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < index->cache_nr; i++) {
        ^
/datasets/git/unpack-trees.c:444:29: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                const struct cache_entry *ce = index->cache[i];
                                          ^
/datasets/git/unpack-trees.c:446:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce->ce_flags & CE_WT_REMOVE) {
                    ^
/datasets/git/unpack-trees.c:446:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce->ce_flags & CE_WT_REMOVE) {
                                   ^
/datasets/git/./refs/../cache.h:174:31: note: expanded from macro 'CE_WT_REMOVE'
#define CE_WT_REMOVE         (1 << 22) /* remove in work directory */
                              ^
/datasets/git/unpack-trees.c:455:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (should_update_submodules())
                                       ^
                                        {
/datasets/git/unpack-trees.c:458:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (has_promisor_remote())
                                  ^
                                   {
/datasets/git/unpack-trees.c:468:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pc_workers > 1)
                           ^
                            {
/datasets/git/unpack-trees.c:470:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < index->cache_nr; i++) {
        ^
/datasets/git/unpack-trees.c:471:23: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                struct cache_entry *ce = index->cache[i];
                                    ^
/datasets/git/unpack-trees.c:476:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (ce->ce_flags & CE_WT_REMOVE)
                            ^
/datasets/git/unpack-trees.c:476:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (ce->ce_flags & CE_WT_REMOVE)
                                           ^
/datasets/git/./refs/../cache.h:174:31: note: expanded from macro 'CE_WT_REMOVE'
#define CE_WT_REMOVE         (1 << 22) /* remove in work directory */
                              ^
/datasets/git/unpack-trees.c:476:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ce->ce_flags & CE_WT_REMOVE)
                                                        ^
                                                         {
/datasets/git/unpack-trees.c:479:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ce->ce_flags &= ~CE_UPDATE;
                        ^               ~~~~~~~~~~
/datasets/git/unpack-trees.c:479:20: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                        ce->ce_flags &= ~CE_UPDATE;
                                        ^
/datasets/git/unpack-trees.c:479:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ce->ce_flags &= ~CE_UPDATE;
                                         ^
/datasets/git/./refs/../cache.h:167:31: note: expanded from macro 'CE_UPDATE'
#define CE_UPDATE            (1 << 16)
                              ^
/datasets/git/unpack-trees.c:480:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        errs |= checkout_entry(ce, &state, NULL, NULL);
                        ^~~~
/datasets/git/unpack-trees.c:482:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (last_pc_queue_size == pc_queue_size())
                                                                  ^
                                                                   {
/datasets/git/unpack-trees.c:486:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pc_workers > 1)
                           ^
                            {
/datasets/git/unpack-trees.c:487:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                errs |= run_parallel_checkout(&state, pc_workers, pc_threshold,
                ^~~~
/datasets/git/unpack-trees.c:490:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        errs |= finish_delayed_checkout(&state, o->verbose_update);
        ^~~~
/datasets/git/unpack-trees.c:490:42: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        errs |= finish_delayed_checkout(&state, o->verbose_update);
                                                ^
/datasets/git/unpack-trees.c:493:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (o->clone)
                     ^
                      {
/datasets/git/unpack-trees.c:496:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_performance_leave("check_updates");
        ^
/datasets/git/./trace.h:251:2: note: expanded from macro 'trace_performance_leave'
        do {                                                                \
        ^
/datasets/git/unpack-trees.c:500:61: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static int verify_uptodate_sparse(const struct cache_entry *ce,
                                                            ^
/datasets/git/unpack-trees.c:501:36: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                                  struct unpack_trees_options *o);
                                                               ^
/datasets/git/unpack-trees.c:502:59: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static int verify_absent_sparse(const struct cache_entry *ce,
                                                          ^
/datasets/git/unpack-trees.c:503:34: warning: all parameters should be named in a function [hicpp-named-parameter,readability-named-parameter]
                                enum unpack_trees_error_types,
                                                             ^
                                                              /*error_type*/
/datasets/git/unpack-trees.c:504:34: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                                struct unpack_trees_options *o);
                                                             ^
/datasets/git/unpack-trees.c:507:26: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                                 struct cache_entry *ce,
                                                     ^
/datasets/git/unpack-trees.c:508:35: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                                 struct unpack_trees_options *o)
                                                              ^
/datasets/git/unpack-trees.c:510:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int was_skip_worktree = ce_skip_worktree(ce);
                                ^
/datasets/git/./refs/../cache.h:244:31: note: expanded from macro 'ce_skip_worktree'
#define ce_skip_worktree(ce) ((ce)->ce_flags & CE_SKIP_WORKTREE)
                              ^                ~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:512:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (ce->ce_flags & CE_NEW_SKIP_WORKTREE)
            ^
/datasets/git/unpack-trees.c:512:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (ce->ce_flags & CE_NEW_SKIP_WORKTREE)
                           ^
/datasets/git/./refs/../cache.h:178:31: note: expanded from macro 'CE_NEW_SKIP_WORKTREE'
#define CE_NEW_SKIP_WORKTREE (1 << 25)
                              ^
/datasets/git/unpack-trees.c:512:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ce->ce_flags & CE_NEW_SKIP_WORKTREE)
                                                ^
                                                 {
/datasets/git/unpack-trees.c:513:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ce->ce_flags |= CE_SKIP_WORKTREE;
                ^
/datasets/git/unpack-trees.c:513:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ce->ce_flags |= CE_SKIP_WORKTREE;
                                ^
/datasets/git/./refs/../cache.h:190:31: note: expanded from macro 'CE_SKIP_WORKTREE'
#define CE_SKIP_WORKTREE     (1 << 30)
                              ^
/datasets/git/unpack-trees.c:514:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/unpack-trees.c:515:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ce->ce_flags &= ~CE_SKIP_WORKTREE;
                ^               ~~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:515:19: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                ce->ce_flags &= ~CE_SKIP_WORKTREE;
                                ^
/datasets/git/unpack-trees.c:515:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ce->ce_flags &= ~CE_SKIP_WORKTREE;
                                 ^
/datasets/git/./refs/../cache.h:190:31: note: expanded from macro 'CE_SKIP_WORKTREE'
#define CE_SKIP_WORKTREE     (1 << 30)
                              ^
/datasets/git/unpack-trees.c:516:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (was_skip_worktree != ce_skip_worktree(ce)) {
                                 ^
/datasets/git/./refs/../cache.h:244:31: note: expanded from macro 'ce_skip_worktree'
#define ce_skip_worktree(ce) ((ce)->ce_flags & CE_SKIP_WORKTREE)
                              ^                ~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:517:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ce->ce_flags |= CE_UPDATE_IN_BASE;
                ^
/datasets/git/unpack-trees.c:517:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ce->ce_flags |= CE_UPDATE_IN_BASE;
                                ^
/datasets/git/./refs/../cache.h:183:31: note: expanded from macro 'CE_UPDATE_IN_BASE'
#define CE_UPDATE_IN_BASE    (1 << 27)
                              ^
/datasets/git/unpack-trees.c:519:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                istate->cache_changed |= CE_ENTRY_CHANGED;
                ^
/datasets/git/unpack-trees.c:519:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                istate->cache_changed |= CE_ENTRY_CHANGED;
                                         ^
/datasets/git/./refs/../cache.h:299:27: note: expanded from macro 'CE_ENTRY_CHANGED'
#define CE_ENTRY_CHANGED        (1 << 1)
                                 ^
/datasets/git/unpack-trees.c:535:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (was_skip_worktree && ce_skip_worktree(ce)) {
                                 ^
/datasets/git/./refs/../cache.h:244:31: note: expanded from macro 'ce_skip_worktree'
#define ce_skip_worktree(ce) ((ce)->ce_flags & CE_SKIP_WORKTREE)
                              ^                ~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:536:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ce->ce_flags &= ~CE_UPDATE;
                ^               ~~~~~~~~~~
/datasets/git/unpack-trees.c:536:19: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                ce->ce_flags &= ~CE_UPDATE;
                                ^
/datasets/git/unpack-trees.c:536:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ce->ce_flags &= ~CE_UPDATE;
                                 ^
/datasets/git/./refs/../cache.h:167:31: note: expanded from macro 'CE_UPDATE'
#define CE_UPDATE            (1 << 16)
                              ^
/datasets/git/unpack-trees.c:544:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce->ce_flags & CE_REMOVE)
                    ^
/datasets/git/unpack-trees.c:544:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce->ce_flags & CE_REMOVE)
                                   ^
/datasets/git/./refs/../cache.h:168:31: note: expanded from macro 'CE_REMOVE'
#define CE_REMOVE            (1 << 17)
                              ^
/datasets/git/unpack-trees.c:544:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ce->ce_flags & CE_REMOVE)
                                             ^
                                              {
/datasets/git/unpack-trees.c:545:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ce->ce_flags &= ~CE_WT_REMOVE;
                        ^               ~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:545:20: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                        ce->ce_flags &= ~CE_WT_REMOVE;
                                        ^
/datasets/git/unpack-trees.c:545:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ce->ce_flags &= ~CE_WT_REMOVE;
                                         ^
/datasets/git/./refs/../cache.h:174:31: note: expanded from macro 'CE_WT_REMOVE'
#define CE_WT_REMOVE         (1 << 22) /* remove in work directory */
                              ^
/datasets/git/unpack-trees.c:548:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!was_skip_worktree && ce_skip_worktree(ce)) {
                                  ^
/datasets/git/./refs/../cache.h:244:31: note: expanded from macro 'ce_skip_worktree'
#define ce_skip_worktree(ce) ((ce)->ce_flags & CE_SKIP_WORKTREE)
                              ^                ~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:554:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(ce->ce_flags & CE_UPDATE) &&
                      ^
/datasets/git/unpack-trees.c:554:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(ce->ce_flags & CE_UPDATE) &&
                                     ^
/datasets/git/./refs/../cache.h:167:31: note: expanded from macro 'CE_UPDATE'
#define CE_UPDATE            (1 << 16)
                              ^
/datasets/git/unpack-trees.c:556:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ce->ce_flags &= ~CE_SKIP_WORKTREE;
                        ^               ~~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:556:20: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                        ce->ce_flags &= ~CE_SKIP_WORKTREE;
                                        ^
/datasets/git/unpack-trees.c:556:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ce->ce_flags &= ~CE_SKIP_WORKTREE;
                                         ^
/datasets/git/./refs/../cache.h:190:31: note: expanded from macro 'CE_SKIP_WORKTREE'
#define CE_SKIP_WORKTREE     (1 << 30)
                              ^
/datasets/git/unpack-trees.c:559:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ce->ce_flags |= CE_WT_REMOVE;
                ^
/datasets/git/unpack-trees.c:559:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ce->ce_flags |= CE_WT_REMOVE;
                                ^
/datasets/git/./refs/../cache.h:174:31: note: expanded from macro 'CE_WT_REMOVE'
#define CE_WT_REMOVE         (1 << 22) /* remove in work directory */
                              ^
/datasets/git/unpack-trees.c:560:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ce->ce_flags &= ~CE_UPDATE;
                ^               ~~~~~~~~~~
/datasets/git/unpack-trees.c:560:19: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                ce->ce_flags &= ~CE_UPDATE;
                                ^
/datasets/git/unpack-trees.c:560:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ce->ce_flags &= ~CE_UPDATE;
                                 ^
/datasets/git/./refs/../cache.h:167:31: note: expanded from macro 'CE_UPDATE'
#define CE_UPDATE            (1 << 16)
                              ^
/datasets/git/unpack-trees.c:562:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (was_skip_worktree && !ce_skip_worktree(ce)) {
                                  ^
/datasets/git/./refs/../cache.h:244:31: note: expanded from macro 'ce_skip_worktree'
#define ce_skip_worktree(ce) ((ce)->ce_flags & CE_SKIP_WORKTREE)
                              ^                ~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:563:76: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (verify_absent_sparse(ce, WARNING_SPARSE_ORPHANED_NOT_OVERWRITTEN, o))
                                                                                         ^
                                                                                          {
/datasets/git/unpack-trees.c:565:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ce->ce_flags |= CE_UPDATE;
                ^
/datasets/git/unpack-trees.c:565:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ce->ce_flags |= CE_UPDATE;
                                ^
/datasets/git/./refs/../cache.h:167:31: note: expanded from macro 'CE_UPDATE'
#define CE_UPDATE            (1 << 16)
                              ^
/datasets/git/unpack-trees.c:571:9: warning: parameter name 'i' is too short, expected at least 3 characters [readability-identifier-length]
                                int i,
                                    ^
/datasets/git/unpack-trees.c:572:34: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                                struct unpack_trees_options *o)
                                                             ^
/datasets/git/unpack-trees.c:580:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((++count) + i < istate->cache_nr &&
        ^
/datasets/git/unpack-trees.c:580:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'conflicting_path' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((++count) + i < istate->cache_nr &&
               ^
/datasets/git/unpack-trees.c:581:67: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
               !strcmp(conflicting_path, istate->cache[count + i]->name))
                                                                         ^
                                                                          {
/datasets/git/unpack-trees.c:588:35: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                                 struct unpack_trees_options *o)
                                                              ^
/datasets/git/unpack-trees.c:591:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret > 0)
                    ^
                     {
/datasets/git/unpack-trees.c:596:46: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static void mark_ce_used(struct cache_entry *ce, struct unpack_trees_options *o)
                                             ^
/datasets/git/unpack-trees.c:596:79: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static void mark_ce_used(struct cache_entry *ce, struct unpack_trees_options *o)
                                                                              ^
/datasets/git/unpack-trees.c:598:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ce->ce_flags |= CE_UNPACKED;
        ^
/datasets/git/unpack-trees.c:598:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ce->ce_flags |= CE_UNPACKED;
                        ^
/datasets/git/./refs/../cache.h:177:31: note: expanded from macro 'CE_UNPACKED'
#define CE_UNPACKED          (1 << 24)
                              ^
/datasets/git/unpack-trees.c:603:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (bottom < o->src_index->cache_nr &&
                ^
/datasets/git/unpack-trees.c:603:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'bottom' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (bottom < o->src_index->cache_nr &&
                       ^
/datasets/git/unpack-trees.c:604:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       o->src_index->cache[bottom]->ce_flags & CE_UNPACKED)
                       ^
/datasets/git/unpack-trees.c:604:50: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                       o->src_index->cache[bottom]->ce_flags & CE_UNPACKED)
                                                               ^
/datasets/git/./refs/../cache.h:177:31: note: expanded from macro 'CE_UNPACKED'
#define CE_UNPACKED          (1 << 24)
                              ^
/datasets/git/unpack-trees.c:604:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                       o->src_index->cache[bottom]->ce_flags & CE_UNPACKED)
                                                                           ^
                                                                            {
/datasets/git/unpack-trees.c:612:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/unpack-trees.c:612:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/unpack-trees.c:613:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < index->cache_nr; i++)
        ^
/datasets/git/unpack-trees.c:613:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < index->cache_nr; i++)
                                             ^
                                              {
/datasets/git/unpack-trees.c:614:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                index->cache[i]->ce_flags &= ~(CE_UNPACKED | CE_ADDED | CE_NEW_SKIP_WORKTREE);
                ^                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:614:32: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                index->cache[i]->ce_flags &= ~(CE_UNPACKED | CE_ADDED | CE_NEW_SKIP_WORKTREE);
                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:614:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                index->cache[i]->ce_flags &= ~(CE_UNPACKED | CE_ADDED | CE_NEW_SKIP_WORKTREE);
                                               ^
/datasets/git/./refs/../cache.h:177:30: note: expanded from macro 'CE_UNPACKED'
#define CE_UNPACKED          (1 << 24)
                             ^
/datasets/git/unpack-trees.c:614:48: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                index->cache[i]->ce_flags &= ~(CE_UNPACKED | CE_ADDED | CE_NEW_SKIP_WORKTREE);
                                                             ^
/datasets/git/./refs/../cache.h:170:31: note: expanded from macro 'CE_ADDED'
#define CE_ADDED             (1 << 19)
                              ^
/datasets/git/unpack-trees.c:614:59: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                index->cache[i]->ce_flags &= ~(CE_UNPACKED | CE_ADDED | CE_NEW_SKIP_WORKTREE);
                                                                        ^
/datasets/git/./refs/../cache.h:178:31: note: expanded from macro 'CE_NEW_SKIP_WORKTREE'
#define CE_NEW_SKIP_WORKTREE (1 << 25)
                              ^
/datasets/git/unpack-trees.c:617:58: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static int locate_in_src_index(const struct cache_entry *ce,
                                                         ^
/datasets/git/unpack-trees.c:618:40: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                               struct unpack_trees_options *o)
                                                            ^
/datasets/git/unpack-trees.c:623:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pos < 0)
                    ^
                     {
/datasets/git/unpack-trees.c:633:56: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static void mark_ce_used_same_name(struct cache_entry *ce,
                                                       ^
/datasets/git/unpack-trees.c:634:37: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                                   struct unpack_trees_options *o)
                                                                ^
/datasets/git/unpack-trees.c:638:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int pos;
        ^
/datasets/git/unpack-trees.c:638:6: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        int pos;
            ^
                = 0
/datasets/git/unpack-trees.c:640:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (pos = locate_in_src_index(ce, o); pos < index->cache_nr; pos++) {
        ^
/datasets/git/unpack-trees.c:640:41: warning: backward branch (for loop) is ID-dependent due to variable reference to 'pos' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (pos = locate_in_src_index(ce, o); pos < index->cache_nr; pos++) {
                                               ^
/datasets/git/unpack-trees.c:643:7: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                    memcmp(ce->name, next->name, len))
                    ^
                                                      != 0
/datasets/git/unpack-trees.c:643:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    memcmp(ce->name, next->name, len))
                                                      ^
                                                       {
/datasets/git/unpack-trees.c:649:74: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static struct cache_entry *next_cache_entry(struct unpack_trees_options *o)
                                                                         ^
/datasets/git/unpack-trees.c:652:2: note: inferred assignment of ID-dependent value from ID-dependent member cache_bottom [altera-id-dependent-backward-branch]
        int pos = o->cache_bottom;
        ^
/datasets/git/unpack-trees.c:654:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (pos < index->cache_nr) {
        ^
/datasets/git/unpack-trees.c:654:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'pos' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (pos < index->cache_nr) {
               ^
/datasets/git/unpack-trees.c:655:23: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                struct cache_entry *ce = index->cache[pos];
                                    ^
/datasets/git/unpack-trees.c:656:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(ce->ce_flags & CE_UNPACKED))
                      ^
/datasets/git/unpack-trees.c:656:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(ce->ce_flags & CE_UNPACKED))
                                     ^
/datasets/git/./refs/../cache.h:177:31: note: expanded from macro 'CE_UNPACKED'
#define CE_UNPACKED          (1 << 24)
                              ^
/datasets/git/unpack-trees.c:656:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(ce->ce_flags & CE_UNPACKED))
                                                  ^
                                                   {
/datasets/git/unpack-trees.c:663:57: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static void add_same_unmerged(const struct cache_entry *ce,
                                                        ^
/datasets/git/unpack-trees.c:664:39: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                              struct unpack_trees_options *o)
                                                           ^
/datasets/git/unpack-trees.c:670:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (0 <= pos)
                     ^
                      {
/datasets/git/unpack-trees.c:672:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (pos = -pos - 1; pos < index->cache_nr; pos++) {
        ^
/datasets/git/unpack-trees.c:672:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 'pos' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (pos = -pos - 1; pos < index->cache_nr; pos++) {
                             ^
/datasets/git/unpack-trees.c:675:7: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                    memcmp(ce->name, next->name, len))
                    ^
                                                      != 0
/datasets/git/unpack-trees.c:675:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    memcmp(ce->name, next->name, len))
                                                      ^
                                                       {
/datasets/git/unpack-trees.c:682:51: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static int unpack_index_entry(struct cache_entry *ce,
                                                  ^
/datasets/git/unpack-trees.c:683:39: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                              struct unpack_trees_options *o)
                                                           ^
/datasets/git/unpack-trees.c:686:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/unpack-trees.c:691:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (ce_stage(ce)) {
            ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:698:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (ce_stage(ce))
            ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:698:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ce_stage(ce))
                         ^
                          {
/datasets/git/unpack-trees.c:703:49: warning: all parameters should be named in a function [hicpp-named-parameter,readability-named-parameter]
static int find_cache_pos(struct traverse_info *, const char *p, size_t len);
                                                ^
                                                 /*info*/
/datasets/git/unpack-trees.c:703:63: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static int find_cache_pos(struct traverse_info *, const char *p, size_t len);
                                                              ^
/datasets/git/unpack-trees.c:707:31: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
        struct unpack_trees_options *o = info->data;
                                     ^
/datasets/git/unpack-trees.c:709:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (o->diff_index_cached)
                                 ^
                                  {
/datasets/git/unpack-trees.c:716:31: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
        struct unpack_trees_options *o = info->data;
                                     ^
/datasets/git/unpack-trees.c:717:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int ret, pos;
        ^~~~~~~~~~~~~
/datasets/git/unpack-trees.c:717:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret, pos;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/unpack-trees.c:717:11: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        int ret, pos;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/unpack-trees.c:719:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (o->diff_index_cached)
                                 ^
                                  {
/datasets/git/unpack-trees.c:724:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pos < -1)
                     ^
                      {
/datasets/git/unpack-trees.c:726:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (pos < 0)
                         ^
                          {
/datasets/git/unpack-trees.c:727:21: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                o->cache_bottom = o->src_index->cache_nr;
                                  ^
/datasets/git/unpack-trees.c:740:31: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
        struct unpack_trees_options *o = info->data;
                                     ^
/datasets/git/unpack-trees.c:741:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/unpack-trees.c:741:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/unpack-trees.c:743:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!o->merge || dirmask != ((1 << n) - 1))
                                      ^
/datasets/git/unpack-trees.c:743:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!o->merge || dirmask != ((1 << n) - 1))
                                                   ^
                                                    {
/datasets/git/unpack-trees.c:746:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 1; i < n; i++)
        ^
/datasets/git/unpack-trees.c:746:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 1; i < n; i++)
                               ^
                                {
/datasets/git/unpack-trees.c:747:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!are_same_oid(names, names + i))
                                                    ^
                                                     {
/datasets/git/unpack-trees.c:756:31: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
        struct unpack_trees_options *o = info->data;
                                     ^
/datasets/git/unpack-trees.c:758:6: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        int pos;
            ^
                = 0
/datasets/git/unpack-trees.c:762:47: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        pos = index_name_pos(o->src_index, name.buf, name.len);
                                                     ^
/datasets/git/unpack-trees.c:765:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    !(o->src_index->cache[pos]->ce_flags & CE_SKIP_WORKTREE))
                      ^
/datasets/git/unpack-trees.c:765:46: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    !(o->src_index->cache[pos]->ce_flags & CE_SKIP_WORKTREE))
                                                           ^
/datasets/git/./refs/../cache.h:190:31: note: expanded from macro 'CE_SKIP_WORKTREE'
#define CE_SKIP_WORKTREE     (1 << 30)
                              ^
/datasets/git/unpack-trees.c:765:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !(o->src_index->cache[pos]->ce_flags & CE_SKIP_WORKTREE))
                                                                             ^
                                                                              {
/datasets/git/unpack-trees.c:772:75: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            (pos > 0 && starts_with(o->src_index->cache[pos-1]->name, name.buf)))
                                                                                 ^
                                                                                  {
/datasets/git/unpack-trees.c:784:44: warning: 2 adjacent parameters of 'traverse_by_cache_tree' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int traverse_by_cache_tree(int pos, int nr_entries, int nr_names,
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:784:48: note: the first parameter in the range is 'nr_entries'
static int traverse_by_cache_tree(int pos, int nr_entries, int nr_names,
                                               ^~~~~~~~~~
/datasets/git/unpack-trees.c:784:64: note: the last parameter in the range is 'nr_names'
static int traverse_by_cache_tree(int pos, int nr_entries, int nr_names,
                                                               ^~~~~~~~
/datasets/git/unpack-trees.c:788:31: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
        struct unpack_trees_options *o = info->data;
                                     ^
/datasets/git/unpack-trees.c:791:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, d;
        ^~~~~~~~~
/datasets/git/unpack-trees.c:791:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, d;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/unpack-trees.c:791:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/unpack-trees.c:791:9: warning: variable 'd' is not initialized [cppcoreguidelines-init-variables]
        int i, d;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/unpack-trees.c:791:9: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/unpack-trees.c:793:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!o->merge)
                      ^
                       {
/datasets/git/unpack-trees.c:805:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int new_ce_len, len, rc;
                ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:805:7: warning: variable 'new_ce_len' is not initialized [cppcoreguidelines-init-variables]
                int new_ce_len, len, rc;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/unpack-trees.c:805:19: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
                int new_ce_len, len, rc;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/unpack-trees.c:805:24: warning: variable 'rc' is not initialized [cppcoreguidelines-init-variables]
                int new_ce_len, len, rc;
                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/unpack-trees.c:805:24: warning: variable name 'rc' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/unpack-trees.c:813:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        new_ce_len <<= 1;
                        ^~~~~~~~~~
/datasets/git/unpack-trees.c:815:4: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memset(tree_ce, 0, new_ce_len);
                        ^~~~~~
/datasets/git/unpack-trees.c:815:4: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                        memset(tree_ce, 0, new_ce_len);
                        ^~~~~~
/datasets/git/unpack-trees.c:820:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (d = 1; d <= nr_names; d++)
                        ^
/datasets/git/unpack-trees.c:820:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (d = 1; d <= nr_names; d++)
                                                       ^
                                                        {
/datasets/git/unpack-trees.c:827:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(tree_ce->name, src[0]->name, len + 1);
                ^~~~~~
/datasets/git/unpack-trees.c:827:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(tree_ce->name, src[0]->name, len + 1);
                ^~~~~~
/datasets/git/unpack-trees.c:838:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (o->debug_unpack)
                            ^
                             {
/datasets/git/unpack-trees.c:846:44: warning: 2 adjacent parameters of 'traverse_trees_recursive' of similar type ('unsigned long') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int traverse_trees_recursive(int n, unsigned long dirmask,
                                           ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:846:58: note: the first parameter in the range is 'dirmask'
static int traverse_trees_recursive(int n, unsigned long dirmask,
                                                         ^~~~~~~
/datasets/git/unpack-trees.c:847:23: note: the last parameter in the range is 'df_conflicts'
                                    unsigned long df_conflicts,
                                                  ^~~~~~~~~~~~
/datasets/git/unpack-trees.c:851:31: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
        struct unpack_trees_options *o = info->data;
                                     ^
/datasets/git/unpack-trees.c:852:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, ret, bottom;
        ^~~~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:852:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, ret, bottom;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/unpack-trees.c:852:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/unpack-trees.c:852:9: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int i, ret, bottom;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/unpack-trees.c:852:14: warning: variable 'bottom' is not initialized [cppcoreguidelines-init-variables]
        int i, ret, bottom;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/unpack-trees.c:854:19: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
        struct tree_desc t[MAX_UNPACK_TREES];
                         ^
/datasets/git/unpack-trees.c:857:21: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct name_entry *p;
                           ^
                             = NULL
/datasets/git/unpack-trees.c:857:21: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/unpack-trees.c:858:6: warning: variable 'nr_entries' is not initialized [cppcoreguidelines-init-variables]
        int nr_entries;
            ^
                       = 0
/datasets/git/unpack-trees.c:864:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!o->merge || df_conflicts)
                                              ^
                                               {
/datasets/git/unpack-trees.c:880:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (!p->mode)
        ^
/datasets/git/unpack-trees.c:880:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (!p->mode)
               ^
/datasets/git/unpack-trees.c:880:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (!p->mode)
                        ^
                         {
/datasets/git/unpack-trees.c:908:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < n; i++, dirmask >>= 1) {
        ^
/datasets/git/unpack-trees.c:908:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        for (i = 0; i < n; i++, dirmask >>= 1) {
                                ^           ~
/datasets/git/unpack-trees.c:909:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (i > 0 && are_same_oid(&names[i], &names[i - 1]))
                                                                    ^
                                                                     {
/datasets/git/unpack-trees.c:911:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (i > 1 && are_same_oid(&names[i], &names[i - 2]))
                                                                         ^
                                                                          {
/datasets/git/unpack-trees.c:915:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (dirmask & 1)
                            ^         ~
/datasets/git/unpack-trees.c:915:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (dirmask & 1)
                                        ^
                                         {
/datasets/git/unpack-trees.c:925:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nr_buf; i++)
        ^
/datasets/git/unpack-trees.c:925:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < nr_buf; i++)
                                    ^
                                     {
/datasets/git/unpack-trees.c:940:12: warning: function 'do_compare_entry_piecewise' is within a recursive call chain [misc-no-recursion]
static int do_compare_entry_piecewise(const struct cache_entry *ce,
           ^
/datasets/git/unpack-trees.c:940:12: note: example recursive call chain, starting from function 'do_compare_entry_piecewise'
/datasets/git/unpack-trees.c:949:13: note: Frame #1: function 'do_compare_entry_piecewise' calls function 'do_compare_entry_piecewise' here:
                int cmp = do_compare_entry_piecewise(ce, info->prev,
                          ^
/datasets/git/unpack-trees.c:949:13: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/unpack-trees.c:940:65: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static int do_compare_entry_piecewise(const struct cache_entry *ce,
                                                                ^
/datasets/git/unpack-trees.c:945:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int pathlen, ce_len;
        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:945:6: warning: variable 'pathlen' is not initialized [cppcoreguidelines-init-variables]
        int pathlen, ce_len;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/unpack-trees.c:945:15: warning: variable 'ce_len' is not initialized [cppcoreguidelines-init-variables]
        int pathlen, ce_len;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/unpack-trees.c:946:14: warning: variable 'ce_name' is not initialized [cppcoreguidelines-init-variables]
        const char *ce_name;
                    ^
                            = NULL
/datasets/git/unpack-trees.c:952:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cmp)
                        ^
                         {
/datasets/git/unpack-trees.c:955:12: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        pathlen = info->pathlen;
                  ^
/datasets/git/unpack-trees.c:959:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ce_len < pathlen)
                             ^
                              {
/datasets/git/unpack-trees.c:965:57: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return df_name_compare(ce_name, ce_len, S_IFREG, name, namelen, mode);
                                                               ^
/datasets/git/unpack-trees.c:965:66: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return df_name_compare(ce_name, ce_len, S_IFREG, name, namelen, mode);
                                                                        ^
/datasets/git/unpack-trees.c:968:55: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static int do_compare_entry(const struct cache_entry *ce,
                                                      ^
/datasets/git/unpack-trees.c:973:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int pathlen, ce_len;
        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:973:6: warning: variable 'pathlen' is not initialized [cppcoreguidelines-init-variables]
        int pathlen, ce_len;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/unpack-trees.c:973:15: warning: variable 'ce_len' is not initialized [cppcoreguidelines-init-variables]
        int pathlen, ce_len;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/unpack-trees.c:974:14: warning: variable 'ce_name' is not initialized [cppcoreguidelines-init-variables]
        const char *ce_name;
                    ^
                            = NULL
/datasets/git/unpack-trees.c:975:6: warning: variable 'cmp' is not initialized [cppcoreguidelines-init-variables]
        int cmp;
            ^
                = 0
/datasets/git/unpack-trees.c:976:11: warning: variable 'ce_mode' is not initialized [cppcoreguidelines-init-variables]
        unsigned ce_mode;
                 ^
                         = 0
/datasets/git/unpack-trees.c:983:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!info->traverse_path)
                                 ^
                                  {
/datasets/git/unpack-trees.c:987:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cmp)
                ^
                 {
/datasets/git/unpack-trees.c:990:12: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        pathlen = info->pathlen;
                  ^
/datasets/git/unpack-trees.c:993:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ce_len < pathlen)
                             ^
                              {
/datasets/git/unpack-trees.c:1000:42: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return df_name_compare(ce_name, ce_len, ce_mode, name, namelen, mode);
                                                ^
/datasets/git/unpack-trees.c:1000:57: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return df_name_compare(ce_name, ce_len, ce_mode, name, namelen, mode);
                                                               ^
/datasets/git/unpack-trees.c:1000:66: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return df_name_compare(ce_name, ce_len, ce_mode, name, namelen, mode);
                                                                        ^
/datasets/git/unpack-trees.c:1003:52: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static int compare_entry(const struct cache_entry *ce, const struct traverse_info *info, const struct name_entry *n)
                                                   ^
/datasets/git/unpack-trees.c:1006:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cmp)
                ^
                 {
/datasets/git/unpack-trees.c:1016:71: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            ce->ce_namelen == traverse_path_len(info, tree_entry_len(n)) + 1)
                                                                             ^
                                                                              {
/datasets/git/unpack-trees.c:1026:58: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static int ce_in_traverse_path(const struct cache_entry *ce,
                                                         ^
/datasets/git/unpack-trees.c:1029:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!info->prev)
                        ^
                         {
/datasets/git/unpack-trees.c:1032:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                             info->name, info->namelen, info->mode))
                                                                    ^
                                                                     {
/datasets/git/unpack-trees.c:1045:2: warning: 2 adjacent parameters of 'create_ce_entry' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
        int is_transient,
        ^~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:1045:6: note: the first parameter in the range is 'is_transient'
        int is_transient,
            ^~~~~~~~~~~~
/datasets/git/unpack-trees.c:1046:6: note: the last parameter in the range is 'is_sparse_directory'
        int is_sparse_directory)
            ^~~~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:1050:22: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
        struct cache_entry *ce =
                            ^
/datasets/git/unpack-trees.c:1066:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ce->ce_flags |= CE_SKIP_WORKTREE;
                ^
/datasets/git/unpack-trees.c:1066:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ce->ce_flags |= CE_SKIP_WORKTREE;
                                ^
/datasets/git/./refs/../cache.h:190:31: note: expanded from macro 'CE_SKIP_WORKTREE'
#define CE_SKIP_WORKTREE     (1 << 30)
                              ^
/datasets/git/unpack-trees.c:1083:33: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                                   const struct name_entry *p)
                                                            ^
/datasets/git/unpack-trees.c:1085:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int res, pos;
        ^~~~~~~~~~~~~
/datasets/git/unpack-trees.c:1085:6: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        int res, pos;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/unpack-trees.c:1085:11: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        int res, pos;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/unpack-trees.c:1087:31: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
        struct unpack_trees_options *o = info->data;
                                     ^
/datasets/git/unpack-trees.c:1089:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!S_ISDIR(p->mode))
                              ^
                               {
/datasets/git/unpack-trees.c:1103:57: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        pos = index_name_pos_sparse(o->src_index, dirpath.buf, dirpath.len);
                                                               ^
/datasets/git/unpack-trees.c:1138:12: warning: function 'unpack_single_entry' has cognitive complexity of 35 (threshold 25) [readability-function-cognitive-complexity]
static int unpack_single_entry(int n, unsigned long mask,
           ^
/datasets/git/unpack-trees.c:1151:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mask == dirmask && !src[0]) {
        ^
/datasets/git/unpack-trees.c:1151:22: note: +1
        if (mask == dirmask && !src[0]) {
                            ^
/datasets/git/unpack-trees.c:1156:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!o->src_index->sparse_index)
                ^
/datasets/git/unpack-trees.c:1160:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (!p->mode)
                ^
/datasets/git/unpack-trees.c:1170:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!*is_new_sparse_dir)
                ^
/datasets/git/unpack-trees.c:1178:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (mask == dirmask &&
        ^
/datasets/git/unpack-trees.c:1178:22: note: +1
        if (mask == dirmask &&
                            ^
/datasets/git/unpack-trees.c:1179:26: note: +1
            (*is_new_sparse_dir || (src[0] && S_ISSPARSEDIR(src[0]->ce_mode))))
                                ^
/datasets/git/unpack-trees.c:1179:37: note: +1
            (*is_new_sparse_dir || (src[0] && S_ISSPARSEDIR(src[0]->ce_mode))))
                                           ^
/datasets/git/unpack-trees.c:1186:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < n; i++) {
        ^
/datasets/git/unpack-trees.c:1189:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (conflicts & bit) {
                ^
/datasets/git/unpack-trees.c:1193:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!(mask & bit))
                ^
/datasets/git/unpack-trees.c:1195:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!o->merge)
                ^
/datasets/git/unpack-trees.c:1197:8: note: +1, nesting level increased to 2
                else if (i + 1 < o->head_idx)
                     ^
/datasets/git/unpack-trees.c:1199:8: note: +1, nesting level increased to 2
                else if (i + 1 > o->head_idx)
                     ^
/datasets/git/unpack-trees.c:1201:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/unpack-trees.c:1216:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (o->merge) {
        ^
/datasets/git/unpack-trees.c:1219:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < n; i++) {
                ^
/datasets/git/unpack-trees.c:1221:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ce != o->df_conflict_entry)
                        ^
/datasets/git/unpack-trees.c:1227:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < n; i++)
        ^
/datasets/git/unpack-trees.c:1228:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (src[i] && src[i] != o->df_conflict_entry)
                ^
/datasets/git/unpack-trees.c:1228:14: note: +1
                if (src[i] && src[i] != o->df_conflict_entry)
                           ^
/datasets/git/unpack-trees.c:1229:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (do_add_entry(o, src[i], 0, 0))
                        ^
/datasets/git/unpack-trees.c:1138:32: warning: 2 adjacent parameters of 'unpack_single_entry' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int unpack_single_entry(int n, unsigned long mask,
                               ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:1138:36: note: the first parameter in the range is 'n'
static int unpack_single_entry(int n, unsigned long mask,
                                   ^
/datasets/git/unpack-trees.c:1138:53: note: the last parameter in the range is 'mask'
static int unpack_single_entry(int n, unsigned long mask,
                                                    ^~~~
/datasets/git/unpack-trees.c:1138:39: note: 'int' and 'unsigned long' may be implicitly converted
static int unpack_single_entry(int n, unsigned long mask,
                                      ^
/datasets/git/unpack-trees.c:1145:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/unpack-trees.c:1145:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/unpack-trees.c:1146:31: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
        struct unpack_trees_options *o = info->data;
                                     ^
/datasets/git/unpack-trees.c:1148:27: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        const struct name_entry *p = names;
                                 ^
/datasets/git/unpack-trees.c:1156:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!o->src_index->sparse_index)
                                                ^
                                                 {
/datasets/git/unpack-trees.c:1160:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (!p->mode)
                ^
/datasets/git/unpack-trees.c:1160:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (!p->mode)
                       ^
/datasets/git/unpack-trees.c:1160:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (!p->mode)
                                ^
                                 {
/datasets/git/unpack-trees.c:1170:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!*is_new_sparse_dir)
                                        ^
                                         {
/datasets/git/unpack-trees.c:1179:73: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            (*is_new_sparse_dir || (src[0] && S_ISSPARSEDIR(src[0]->ce_mode))))
                                                                               ^
                                                                                {
/datasets/git/unpack-trees.c:1186:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < n; i++) {
        ^
/datasets/git/unpack-trees.c:1187:7: warning: variable 'stage' is not initialized [cppcoreguidelines-init-variables]
                int stage;
                    ^
                          = 0
/datasets/git/unpack-trees.c:1188:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                unsigned int bit = 1ul << i;
                                   ^      ~
/datasets/git/unpack-trees.c:1188:22: warning: integer literal has suffix 'ul', which is not uppercase [hicpp-uppercase-literal-suffix,readability-uppercase-literal-suffix]
                unsigned int bit = 1ul << i;
                                   ^~~
                                    UL
/datasets/git/unpack-trees.c:1193:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(mask & bit))
                                  ^
                                   {
/datasets/git/unpack-trees.c:1195:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!o->merge)
                              ^
                               {
/datasets/git/unpack-trees.c:1197:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (i + 1 < o->head_idx)
                                             ^
                                              {
/datasets/git/unpack-trees.c:1199:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (i + 1 > o->head_idx)
                                             ^
                                              {
/datasets/git/unpack-trees.c:1201:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/unpack-trees.c:1212:23: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                                    &o->result, o->merge,
                                                                ^
/datasets/git/unpack-trees.c:1213:11: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                                    bit & dirmask);
                                                    ^
/datasets/git/unpack-trees.c:1217:7: warning: variable name 'rc' is too short, expected at least 3 characters [readability-identifier-length]
                int rc = call_unpack_fn((const struct cache_entry * const *)src,
                    ^
/datasets/git/unpack-trees.c:1219:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < n; i++) {
                ^
/datasets/git/unpack-trees.c:1220:24: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                        struct cache_entry *ce = src[i + o->merge];
                                            ^
/datasets/git/unpack-trees.c:1221:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ce != o->df_conflict_entry)
                                                       ^
                                                        {
/datasets/git/unpack-trees.c:1227:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < n; i++)
        ^
/datasets/git/unpack-trees.c:1227:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < n; i++)
                               ^
                                {
/datasets/git/unpack-trees.c:1228:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (src[i] && src[i] != o->df_conflict_entry)
                                                             ^
                                                              {
/datasets/git/unpack-trees.c:1229:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (do_add_entry(o, src[i], 0, 0))
                                                          ^
                                                           {
/datasets/git/unpack-trees.c:1235:55: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static int unpack_failed(struct unpack_trees_options *o, const char *message)
                                                      ^
/datasets/git/unpack-trees.c:1239:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (message)
                            ^
                             {
/datasets/git/unpack-trees.c:1252:12: warning: function 'find_cache_pos' has cognitive complexity of 28 (threshold 25) [readability-function-cognitive-complexity]
static int find_cache_pos(struct traverse_info *info,
           ^
/datasets/git/unpack-trees.c:1260:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (pos = o->cache_bottom; pos < index->cache_nr; pos++) {
        ^
/datasets/git/unpack-trees.c:1265:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ce->ce_flags & CE_UNPACKED) {
                ^
/datasets/git/unpack-trees.c:1271:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (pos == o->cache_bottom)
                        ^
/datasets/git/unpack-trees.c:1275:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!ce_in_traverse_path(ce, info)) {
                ^
/datasets/git/unpack-trees.c:1281:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (info->traverse_path) {
                        ^
/datasets/git/unpack-trees.c:1282:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (strncmp(ce->name, info->traverse_path,
                                ^
/datasets/git/unpack-trees.c:1290:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ce_slash)
                ^
/datasets/git/unpack-trees.c:1292:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/unpack-trees.c:1299:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!cmp)
                ^
/datasets/git/unpack-trees.c:1300:20: note: +3, including nesting penalty of 2, nesting level increased to 3
                        return ce_slash ? -2 - pos : pos;
                                        ^
/datasets/git/unpack-trees.c:1301:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (0 < cmp)
                ^
/datasets/git/unpack-trees.c:1309:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (p_len < ce_len && !memcmp(ce_name, p, p_len) &&
                ^
/datasets/git/unpack-trees.c:1309:52: note: +1
                if (p_len < ce_len && !memcmp(ce_name, p, p_len) &&
                                                                 ^
/datasets/git/unpack-trees.c:1253:18: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                          const char *p, size_t p_len)
                                      ^
/datasets/git/unpack-trees.c:1255:2: note: inferred assignment of ID-dependent value from ID-dependent member cache_bottom [altera-id-dependent-backward-branch]
        int pos;
        ^
/datasets/git/unpack-trees.c:1255:6: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        int pos;
            ^
                = 0
/datasets/git/unpack-trees.c:1256:31: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
        struct unpack_trees_options *o = info->data;
                                     ^
/datasets/git/unpack-trees.c:1258:15: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int pfxlen = info->pathlen;
                     ^
/datasets/git/unpack-trees.c:1260:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (pos = o->cache_bottom; pos < index->cache_nr; pos++) {
        ^
/datasets/git/unpack-trees.c:1260:30: warning: backward branch (for loop) is ID-dependent due to variable reference to 'pos' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (pos = o->cache_bottom; pos < index->cache_nr; pos++) {
                                    ^
/datasets/git/unpack-trees.c:1261:29: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                const struct cache_entry *ce = index->cache[pos];
                                          ^
/datasets/git/unpack-trees.c:1262:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                const char *ce_name, *ce_slash;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:1262:15: warning: variable 'ce_name' is not initialized [cppcoreguidelines-init-variables]
                const char *ce_name, *ce_slash;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/unpack-trees.c:1262:25: warning: variable 'ce_slash' is not initialized [cppcoreguidelines-init-variables]
                const char *ce_name, *ce_slash;
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/unpack-trees.c:1263:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int cmp, ce_len;
                ^~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:1263:7: warning: variable 'cmp' is not initialized [cppcoreguidelines-init-variables]
                int cmp, ce_len;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/unpack-trees.c:1263:12: warning: variable 'ce_len' is not initialized [cppcoreguidelines-init-variables]
                int cmp, ce_len;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/unpack-trees.c:1265:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce->ce_flags & CE_UNPACKED) {
                    ^
/datasets/git/unpack-trees.c:1265:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce->ce_flags & CE_UNPACKED) {
                                   ^
/datasets/git/./refs/../cache.h:177:31: note: expanded from macro 'CE_UNPACKED'
#define CE_UNPACKED          (1 << 24)
                              ^
/datasets/git/unpack-trees.c:1271:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (pos == o->cache_bottom)
                                                   ^
                                                    {
/datasets/git/unpack-trees.c:1283:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                            info->pathlen) > 0)
                                                               ^
                                                                {
/datasets/git/unpack-trees.c:1290:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ce_slash)
                             ^
                              {
/datasets/git/unpack-trees.c:1291:13: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        ce_len = ce_slash - ce_name;
                                 ^
/datasets/git/unpack-trees.c:1292:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/unpack-trees.c:1299:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!cmp)
                         ^
                          {
/datasets/git/unpack-trees.c:1301:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (0 < cmp)
                            ^
                             {
/datasets/git/unpack-trees.c:1310:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    ce_name[p_len] < '/')
                                         ^
                                          {
/datasets/git/unpack-trees.c:1326:62: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static int sparse_dir_matches_path(const struct cache_entry *ce,
                                                             ^
/datasets/git/unpack-trees.c:1328:33: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                                   const struct name_entry *p)
                                                            ^
/datasets/git/unpack-trees.c:1333:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (info->pathlen)
                          ^
                           {
/datasets/git/unpack-trees.c:1343:35: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
                                            const struct name_entry *p)
                                                                     ^
/datasets/git/unpack-trees.c:1345:14: warning: variable 'path' is not initialized [cppcoreguidelines-init-variables]
        const char *path;
                    ^
                         = NULL
/datasets/git/unpack-trees.c:1347:31: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
        struct unpack_trees_options *o = info->data;
                                     ^
/datasets/git/unpack-trees.c:1349:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (0 <= pos)
                     ^
                      {
/datasets/git/unpack-trees.c:1360:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pos < 0 || pos >= o->src_index->cache_nr)
                                                     ^
                                                      {
/datasets/git/unpack-trees.c:1370:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (pos >= 0) {
        ^
/datasets/git/unpack-trees.c:1370:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'pos' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (pos >= 0) {
               ^
/datasets/git/unpack-trees.c:1371:23: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                struct cache_entry *ce = o->src_index->cache[pos];
                                    ^
/datasets/git/unpack-trees.c:1374:7: warning: function 'strncmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                    strncmp(path, p->path, p->pathlen) ||
                    ^
                                                       != 0
/datasets/git/unpack-trees.c:1375:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    path[p->pathlen] != '/')
                                            ^
                                             {
/datasets/git/unpack-trees.c:1379:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    sparse_dir_matches_path(ce, info, p))
                                                         ^
                                                          {
/datasets/git/unpack-trees.c:1388:13: warning: function 'debug_path' is within a recursive call chain [misc-no-recursion]
static void debug_path(struct traverse_info *info)
            ^
/datasets/git/unpack-trees.c:1388:13: note: example recursive call chain, starting from function 'debug_path'
/datasets/git/unpack-trees.c:1391:3: note: Frame #1: function 'debug_path' calls function 'debug_path' here:
                debug_path(info->prev);
                ^
/datasets/git/unpack-trees.c:1391:3: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/unpack-trees.c:1392:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*info->prev->name)
                                      ^
                                       {
/datasets/git/unpack-trees.c:1398:34: warning: parameter name 'i' is too short, expected at least 3 characters [readability-identifier-length]
static void debug_name_entry(int i, struct name_entry *n)
                                 ^
/datasets/git/unpack-trees.c:1411:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/unpack-trees.c:1411:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/unpack-trees.c:1416:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < n; i++)
        ^
/datasets/git/unpack-trees.c:1416:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < n; i++)
                               ^
                                {
/datasets/git/unpack-trees.c:1425:58: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static int is_sparse_directory_entry(struct cache_entry *ce,
                                                         ^
/datasets/git/unpack-trees.c:1429:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ce || !name || !S_ISSPARSEDIR(ce->ce_mode))
                                                        ^
                                                         {
/datasets/git/unpack-trees.c:1438:31: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
        struct unpack_trees_options *o = info->data;
                                     ^
/datasets/git/unpack-trees.c:1439:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int ret, is_new_sparse_dir;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:1439:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret, is_new_sparse_dir;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/unpack-trees.c:1439:11: warning: variable 'is_new_sparse_dir' is not initialized [cppcoreguidelines-init-variables]
        int ret, is_new_sparse_dir;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/unpack-trees.c:1451:6: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                        dirmask & (1ul << 0));
                                        ^
/datasets/git/unpack-trees.c:1451:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        dirmask & (1ul << 0));
                                                   ^      ~
/datasets/git/unpack-trees.c:1451:17: warning: integer literal has suffix 'ul', which is not uppercase [hicpp-uppercase-literal-suffix,readability-uppercase-literal-suffix]
                                        dirmask & (1ul << 0));
                                                   ^~~
                                                    UL
/datasets/git/unpack-trees.c:1452:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                src[0]->ce_flags |= (CE_SKIP_WORKTREE | CE_NEW_SKIP_WORKTREE);
                ^                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:1452:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                src[0]->ce_flags |= (CE_SKIP_WORKTREE | CE_NEW_SKIP_WORKTREE);
                                     ^
/datasets/git/./refs/../cache.h:190:30: note: expanded from macro 'CE_SKIP_WORKTREE'
#define CE_SKIP_WORKTREE     (1 << 30)
                             ^~~~~~~~~
/datasets/git/unpack-trees.c:1452:43: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                src[0]->ce_flags |= (CE_SKIP_WORKTREE | CE_NEW_SKIP_WORKTREE);
                                                        ^
/datasets/git/./refs/../cache.h:178:31: note: expanded from macro 'CE_NEW_SKIP_WORKTREE'
#define CE_NEW_SKIP_WORKTREE (1 << 25)
                              ^
/datasets/git/unpack-trees.c:1463:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ret = unpack_single_entry(n - 1, mask >> 1, dirmask >> 1, src, names + 1, info, &is_new_sparse_dir);
                                         ^       ~
/datasets/git/unpack-trees.c:1463:46: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        ret = unpack_single_entry(n - 1, mask >> 1, dirmask >> 1, src, names + 1, info, &is_new_sparse_dir);
                                                    ^          ~
/datasets/git/unpack-trees.c:1465:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (src[0])
                   ^
                    {
/datasets/git/unpack-trees.c:1468:20: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return ret >= 0 ? mask : -1;
                          ^
/datasets/git/unpack-trees.c:1468:27: warning: narrowing conversion from constant value 18446744073709551615 (0xFFFFFFFFFFFFFFFF) of type 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return ret >= 0 ? mask : -1;
                                 ^
/datasets/git/unpack-trees.c:1476:12: warning: function 'unpack_callback' has cognitive complexity of 52 (threshold 25) [readability-function-cognitive-complexity]
static int unpack_callback(int n, unsigned long mask, unsigned long dirmask, struct name_entry *names, struct traverse_info *info)
           ^
/datasets/git/unpack-trees.c:1484:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (!p->mode)
        ^
/datasets/git/unpack-trees.c:1487:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (o->debug_unpack)
        ^
/datasets/git/unpack-trees.c:1491:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (o->merge) {
        ^
/datasets/git/unpack-trees.c:1492:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (1) {
                ^
/datasets/git/unpack-trees.c:1496:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (o->diff_index_cached)
                        ^
/datasets/git/unpack-trees.c:1498:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/unpack-trees.c:1501:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!ce)
                        ^
/datasets/git/unpack-trees.c:1504:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (cmp < 0) {
                        ^
/datasets/git/unpack-trees.c:1505:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (unpack_index_entry(ce, o) < 0)
                                ^
/datasets/git/unpack-trees.c:1509:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!cmp) {
                        ^
/datasets/git/unpack-trees.c:1510:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (ce_stage(ce)) {
                                ^
/datasets/git/unpack-trees.c:1517:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (o->skip_unmerged) {
                                        ^
/datasets/git/unpack-trees.c:1528:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (unpack_single_entry(n, mask, dirmask, src, names, info, &is_new_sparse_dir))
        ^
/datasets/git/unpack-trees.c:1531:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (o->merge && src[0]) {
        ^
/datasets/git/unpack-trees.c:1531:15: note: +1
        if (o->merge && src[0]) {
                     ^
/datasets/git/unpack-trees.c:1532:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ce_stage(src[0]))
                ^
/datasets/git/unpack-trees.c:1534:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/unpack-trees.c:1539:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (dirmask) {
        ^
/datasets/git/unpack-trees.c:1541:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (o->diff_index_cached &&
                ^
/datasets/git/unpack-trees.c:1542:30: note: +1
                    n == 1 && dirmask == 1 && S_ISDIR(names->mode)) {
                                           ^
/datasets/git/unpack-trees.c:1552:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (matches) {
                        ^
/datasets/git/unpack-trees.c:1559:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!src[0] || !S_ISSPARSEDIR(src[0]->ce_mode))
                                ^
/datasets/git/unpack-trees.c:1559:17: note: +1
                                if (!src[0] || !S_ISSPARSEDIR(src[0]->ce_mode))
                                            ^
/datasets/git/unpack-trees.c:1565:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!is_sparse_directory_entry(src[0], p, info) &&
                ^
/datasets/git/unpack-trees.c:1566:26: note: +1
                    !is_new_sparse_dir &&
                                       ^
/datasets/git/unpack-trees.c:1479:31: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
        struct unpack_trees_options *o = info->data;
                                     ^
/datasets/git/unpack-trees.c:1480:27: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        const struct name_entry *p = names;
                                 ^
/datasets/git/unpack-trees.c:1481:6: warning: variable 'is_new_sparse_dir' is not initialized [cppcoreguidelines-init-variables]
        int is_new_sparse_dir;
            ^
                              = 0
/datasets/git/unpack-trees.c:1484:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (!p->mode)
        ^
/datasets/git/unpack-trees.c:1484:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (!p->mode)
               ^
/datasets/git/unpack-trees.c:1484:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (!p->mode)
                        ^
                         {
/datasets/git/unpack-trees.c:1487:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (o->debug_unpack)
                            ^
                             {
/datasets/git/unpack-trees.c:1492:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (1) {
                ^
/datasets/git/unpack-trees.c:1493:8: warning: variable 'cmp' is not initialized [cppcoreguidelines-init-variables]
                        int cmp;
                            ^
                                = 0
/datasets/git/unpack-trees.c:1494:24: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
                        struct cache_entry *ce;
                                            ^
                                               = NULL
/datasets/git/unpack-trees.c:1494:24: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/unpack-trees.c:1496:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (o->diff_index_cached)
                                                 ^
                                                  {
/datasets/git/unpack-trees.c:1498:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/unpack-trees.c:1501:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!ce)
                                ^
                                 {
/datasets/git/unpack-trees.c:1505:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (unpack_index_entry(ce, o) < 0)
                                                                  ^
                                                                   {
/datasets/git/unpack-trees.c:1510:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (ce_stage(ce)) {
                                    ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:1519:14: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                                return mask;
                                                       ^
/datasets/git/unpack-trees.c:1528:82: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unpack_single_entry(n, mask, dirmask, src, names, info, &is_new_sparse_dir))
                                                                                        ^
                                                                                         {
/datasets/git/unpack-trees.c:1532:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce_stage(src[0]))
                    ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:1532:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ce_stage(src[0]))
                                     ^
                                      {
/datasets/git/unpack-trees.c:1534:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/unpack-trees.c:1543:8: warning: variable 'matches' is not initialized [cppcoreguidelines-init-variables]
                        int matches;
                            ^
                                    = 0
/datasets/git/unpack-trees.c:1559:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!src[0] || !S_ISSPARSEDIR(src[0]->ce_mode))
                                                                               ^
                                                                                {
/datasets/git/unpack-trees.c:1561:12: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                return mask;
                                       ^
/datasets/git/unpack-trees.c:1572:10: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                return mask;
                       ^
/datasets/git/unpack-trees.c:1575:9: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return mask;
               ^
/datasets/git/unpack-trees.c:1579:40: warning: parameter name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
                            struct cache_entry **cache, int nr,
                                                            ^
/datasets/git/unpack-trees.c:1582:29: warning: parameter name 'pl' is too short, expected at least 3 characters [readability-identifier-length]
                            struct pattern_list *pl,
                                                 ^
/datasets/git/unpack-trees.c:1587:12: warning: function 'clear_ce_flags_dir' is within a recursive call chain [misc-no-recursion]
static int clear_ce_flags_dir(struct index_state *istate,
           ^
/datasets/git/unpack-trees.c:1654:12: note: example recursive call chain, starting from function 'clear_ce_flags_1'
static int clear_ce_flags_1(struct index_state *istate,
           ^
/datasets/git/unpack-trees.c:1695:16: note: Frame #1: function 'clear_ce_flags_1' calls function 'clear_ce_flags_dir' here:
                        processed = clear_ce_flags_dir(istate, cache, cache_end - cache,
                                    ^
/datasets/git/unpack-trees.c:1628:8: note: Frame #2: function 'clear_ce_flags_dir' calls function 'clear_ce_flags_1' here:
                rc = clear_ce_flags_1(istate, cache, cache_end - cache,
                     ^
/datasets/git/unpack-trees.c:1628:8: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/unpack-trees.c:1588:42: warning: parameter name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
                              struct cache_entry **cache, int nr,
                                                              ^
/datasets/git/unpack-trees.c:1592:31: warning: parameter name 'pl' is too short, expected at least 3 characters [readability-identifier-length]
                              struct pattern_list *pl,
                                                   ^
/datasets/git/unpack-trees.c:1593:10: warning: 2 adjacent parameters of 'clear_ce_flags_dir' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                              enum pattern_match_result default_match,
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:1593:36: note: the first parameter in the range is 'default_match'
                              enum pattern_match_result default_match,
                                                        ^~~~~~~~~~~~~
/datasets/git/unpack-trees.c:1594:14: note: the last parameter in the range is 'progress_nr'
                              int progress_nr)
                                  ^~~~~~~~~~~
/datasets/git/unpack-trees.c:1594:10: note: 'enum pattern_match_result' and 'int' may be implicitly converted
                              int progress_nr)
                              ^
/datasets/git/unpack-trees.c:1596:23: warning: variable 'cache_end' is not initialized [cppcoreguidelines-init-variables]
        struct cache_entry **cache_end;
                             ^
                                       = NULL
/datasets/git/unpack-trees.c:1598:6: warning: variable 'rc' is not initialized [cppcoreguidelines-init-variables]
        int rc;
            ^
               = 0
/datasets/git/unpack-trees.c:1598:6: warning: variable name 'rc' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/unpack-trees.c:1599:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        enum pattern_match_result ret, orig_ret;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:1599:28: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        enum pattern_match_result ret, orig_ret;
                                  ^
/datasets/git/unpack-trees.c:1599:33: warning: variable 'orig_ret' is not initialized [cppcoreguidelines-init-variables]
        enum pattern_match_result ret, orig_ret;
                                       ^
/datasets/git/unpack-trees.c:1600:52: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        orig_ret = path_matches_pattern_list(prefix->buf, prefix->len,
                                                          ^
/datasets/git/unpack-trees.c:1606:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (orig_ret == UNDECIDED)
                                  ^
                                   {
/datasets/git/unpack-trees.c:1608:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/unpack-trees.c:1611:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cache_end = cache; cache_end != cache + nr; cache_end++) {
        ^
/datasets/git/unpack-trees.c:1611:26: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cache_end' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (cache_end = cache; cache_end != cache + nr; cache_end++) {
                                ^
/datasets/git/unpack-trees.c:1612:23: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                struct cache_entry *ce = *cache_end;
                                    ^
/datasets/git/unpack-trees.c:1618:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                struct cache_entry **ce = cache;
                ^
/datasets/git/unpack-trees.c:1613:7: warning: function 'strncmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (strncmp(ce->name, prefix->buf, prefix->len))
                    ^
                                                                != 0
/datasets/git/unpack-trees.c:1613:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strncmp(ce->name, prefix->buf, prefix->len))
                                                                ^
                                                                 {
/datasets/git/unpack-trees.c:1618:24: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                struct cache_entry **ce = cache;
                                     ^
/datasets/git/unpack-trees.c:1619:8: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                rc = cache_end - cache;
                     ^
/datasets/git/unpack-trees.c:1621:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (ce < cache_end) {
                ^
/datasets/git/unpack-trees.c:1621:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'ce' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (ce < cache_end) {
                       ^
/datasets/git/unpack-trees.c:1622:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        (*ce)->ce_flags &= ~clear_mask;
                        ^                  ~~~~~~~~~~~
/datasets/git/unpack-trees.c:1622:23: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                        (*ce)->ce_flags &= ~clear_mask;
                                           ^~~~~~~~~~~
/datasets/git/unpack-trees.c:1626:8: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                rc = cache_end - cache;
                     ^
/datasets/git/unpack-trees.c:1628:40: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                rc = clear_ce_flags_1(istate, cache, cache_end - cache,
                                                     ^
/datasets/git/unpack-trees.c:1654:12: warning: function 'clear_ce_flags_1' is within a recursive call chain [misc-no-recursion]
static int clear_ce_flags_1(struct index_state *istate,
           ^
/datasets/git/unpack-trees.c:1655:40: warning: parameter name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
                            struct cache_entry **cache, int nr,
                                                            ^
/datasets/git/unpack-trees.c:1658:29: warning: parameter name 'pl' is too short, expected at least 3 characters [readability-identifier-length]
                            struct pattern_list *pl,
                                                 ^
/datasets/git/unpack-trees.c:1655:8: note: inferred assignment of ID-dependent value from ID-dependent variable processed [altera-id-dependent-backward-branch]
                            struct cache_entry **cache, int nr,
                            ^
/datasets/git/unpack-trees.c:1668:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while(cache != cache_end) {
        ^
/datasets/git/unpack-trees.c:1668:8: warning: backward branch (while loop) is ID-dependent due to variable reference to 'cache' and may cause performance degradation [altera-id-dependent-backward-branch]
        while(cache != cache_end) {
              ^
/datasets/git/unpack-trees.c:1669:23: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                struct cache_entry *ce = *cache;
                                    ^
/datasets/git/unpack-trees.c:1670:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                const char *name, *slash;
                ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:1670:15: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
                const char *name, *slash;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/unpack-trees.c:1670:22: warning: variable 'slash' is not initialized [cppcoreguidelines-init-variables]
                const char *name, *slash;
                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/unpack-trees.c:1671:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int len, dtype;
                ^~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:1671:7: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
                int len, dtype;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/unpack-trees.c:1671:12: warning: variable 'dtype' is not initialized [cppcoreguidelines-init-variables]
                int len, dtype;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/unpack-trees.c:1672:29: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
                enum pattern_match_result ret;
                                          ^
/datasets/git/unpack-trees.c:1676:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (select_mask && !(ce->ce_flags & select_mask)) {
                                     ^              ~~~~~~~~~~~
/datasets/git/unpack-trees.c:1682:22: warning: function 'strncmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (prefix->len && strncmp(ce->name, prefix->buf, prefix->len))
                                   ^
                                                                               != 0
/datasets/git/unpack-trees.c:1682:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (prefix->len && strncmp(ce->name, prefix->buf, prefix->len))
                                                                               ^
                                                                                {
/datasets/git/unpack-trees.c:1690:8: warning: variable 'processed' is not initialized [cppcoreguidelines-init-variables]
                        int processed;
                            ^
                                      = 0
/datasets/git/unpack-trees.c:1692:10: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        len = slash - name;
                              ^
/datasets/git/unpack-trees.c:1695:50: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        processed = clear_ce_flags_dir(istate, cache, cache_end - cache,
                                                                      ^
/datasets/git/unpack-trees.c:1711:48: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        processed = clear_ce_flags_1(istate, cache, cache_end - cache,
                                                                    ^
/datasets/git/unpack-trees.c:1728:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret == UNDECIDED)
                                     ^
                                      {
/datasets/git/unpack-trees.c:1730:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret == MATCHED || ret == MATCHED_RECURSIVE)
                                                               ^
                                                                {
/datasets/git/unpack-trees.c:1731:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ce->ce_flags &= ~clear_mask;
                        ^               ~~~~~~~~~~~
/datasets/git/unpack-trees.c:1731:20: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                        ce->ce_flags &= ~clear_mask;
                                        ^~~~~~~~~~~
/datasets/git/unpack-trees.c:1737:9: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return nr - (cache_end - cache);
               ^
/datasets/git/unpack-trees.c:1742:27: warning: parameter name 'pl' is too short, expected at least 3 characters [readability-identifier-length]
                          struct pattern_list *pl,
                                               ^
/datasets/git/unpack-trees.c:1746:13: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        char label[100];
                   ^
/datasets/git/unpack-trees.c:1747:6: warning: variable 'rval' is not initialized [cppcoreguidelines-init-variables]
        int rval;
            ^
                 = 0
/datasets/git/unpack-trees.c:1750:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (show_progress)
                          ^
                           {
/datasets/git/unpack-trees.c:1760:5: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                istate->cache_nr,
                                ^
/datasets/git/unpack-trees.c:1773:57: warning: parameter name 'pl' is too short, expected at least 3 characters [readability-identifier-length]
static void mark_new_skip_worktree(struct pattern_list *pl,
                                                        ^
/datasets/git/unpack-trees.c:1778:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/unpack-trees.c:1778:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/unpack-trees.c:1784:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < istate->cache_nr; i++) {
        ^
/datasets/git/unpack-trees.c:1785:23: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                struct cache_entry *ce = istate->cache[i];
                                    ^
/datasets/git/unpack-trees.c:1787:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (select_flag && !(ce->ce_flags & select_flag))
                                     ^              ~~~~~~~~~~~
/datasets/git/unpack-trees.c:1787:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (select_flag && !(ce->ce_flags & select_flag))
                                                                 ^
                                                                  {
/datasets/git/unpack-trees.c:1790:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!ce_stage(ce) && !(ce->ce_flags & CE_CONFLICTED))
                     ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:1790:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!ce_stage(ce) && !(ce->ce_flags & CE_CONFLICTED))
                                       ^
/datasets/git/unpack-trees.c:1790:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!ce_stage(ce) && !(ce->ce_flags & CE_CONFLICTED))
                                                      ^
/datasets/git/./refs/../cache.h:175:31: note: expanded from macro 'CE_CONFLICTED'
#define CE_CONFLICTED        (1 << 23)
                              ^
/datasets/git/unpack-trees.c:1790:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ce_stage(ce) && !(ce->ce_flags & CE_CONFLICTED))
                                                                     ^
                                                                      {
/datasets/git/unpack-trees.c:1791:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ce->ce_flags |= skip_wt_flag;
                        ^               ~~~~~~~~~~~~
/datasets/git/unpack-trees.c:1792:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/unpack-trees.c:1793:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ce->ce_flags &= ~skip_wt_flag;
                        ^               ~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:1793:20: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                        ce->ce_flags &= ~skip_wt_flag;
                                        ^~~~~~~~~~~~~
/datasets/git/unpack-trees.c:1803:74: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static void populate_from_existing_patterns(struct unpack_trees_options *o,
                                                                         ^
/datasets/git/unpack-trees.c:1804:31: warning: parameter name 'pl' is too short, expected at least 3 characters [readability-identifier-length]
                                            struct pattern_list *pl)
                                                                 ^
/datasets/git/unpack-trees.c:1806:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_sparse_checkout_patterns(pl) < 0)
                                                 ^
                                                  {
/datasets/git/unpack-trees.c:1808:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/unpack-trees.c:1815:19: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int prefix_len = strlen(prefix);
                         ^
/datasets/git/unpack-trees.c:1818:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!istate->sparse_index)
                                  ^
                                   {
/datasets/git/unpack-trees.c:1821:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (prefix_len > 0 && prefix[prefix_len - 1] == '/')
        ^
/datasets/git/unpack-trees.c:1821:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'prefix_len' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (prefix_len > 0 && prefix[prefix_len - 1] == '/')
               ^
/datasets/git/unpack-trees.c:1821:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (prefix_len > 0 && prefix[prefix_len - 1] == '/')
                                                               ^
                                                                {
/datasets/git/unpack-trees.c:1824:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prefix_len <= 0)
                            ^
                             {
/datasets/git/unpack-trees.c:1842:44: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
            index_name_pos(istate, ce_prefix.buf, ce_prefix.len) >= 0)
                                                  ^
/datasets/git/unpack-trees.c:1842:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            index_name_pos(istate, ce_prefix.buf, ce_prefix.len) >= 0)
                                                                      ^
                                                                       {
/datasets/git/unpack-trees.c:1848:52: warning: all parameters should be named in a function [hicpp-named-parameter,readability-named-parameter]
static int verify_absent(const struct cache_entry *,
                                                   ^
                                                    /*ce*/
/datasets/git/unpack-trees.c:1857:5: warning: function 'unpack_trees' has cognitive complexity of 93 (threshold 25) [readability-function-cognitive-complexity]
int unpack_trees(unsigned len, struct tree_desc *t, struct unpack_trees_options *o)
    ^
/datasets/git/unpack-trees.c:1866:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (o->reset == UNPACK_RESET_INVALID)
        ^
/datasets/git/unpack-trees.c:1869:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (len > MAX_UNPACK_TREES)
        ^
/datasets/git/unpack-trees.c:1871:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (o->dir)
        ^
/datasets/git/unpack-trees.c:1878:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (repo->settings.command_requires_full_index) {
        ^
/datasets/git/unpack-trees.c:1883:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (o->reset == UNPACK_RESET_OVERWRITE_UNTRACKED &&
        ^
/datasets/git/unpack-trees.c:1883:51: note: +1
        if (o->reset == UNPACK_RESET_OVERWRITE_UNTRACKED &&
                                                         ^
/datasets/git/unpack-trees.c:1887:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!o->preserve_ignored) {
        ^
/datasets/git/unpack-trees.c:1893:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (o->prefix)
        ^
/datasets/git/unpack-trees.c:1896:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!core_apply_sparse_checkout || !o->update)
        ^
/datasets/git/unpack-trees.c:1896:34: note: +1
        if (!core_apply_sparse_checkout || !o->update)
                                        ^
/datasets/git/unpack-trees.c:1898:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!o->skip_sparse_checkout && !o->pl) {
        ^
/datasets/git/unpack-trees.c:1898:31: note: +1
        if (!o->skip_sparse_checkout && !o->pl) {
                                     ^
/datasets/git/unpack-trees.c:1909:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!o->src_index->split_index) {
        ^
/datasets/git/unpack-trees.c:1911:9: note: +1, nesting level increased to 1
        } else if (o->src_index == o->dst_index) {
               ^
/datasets/git/unpack-trees.c:1920:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/unpack-trees.c:1931:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!o->src_index->initialized &&
        ^
/datasets/git/unpack-trees.c:1932:50: note: +1
            !repo->settings.command_requires_full_index &&
                                                        ^
/datasets/git/unpack-trees.c:1939:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!o->skip_sparse_checkout)
        ^
/datasets/git/unpack-trees.c:1943:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!dfc)
        ^
/datasets/git/unpack-trees.c:1947:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (len) {
        ^
/datasets/git/unpack-trees.c:1948:34: note: +2, including nesting penalty of 1, nesting level increased to 2
                const char *prefix = o->prefix ? o->prefix : "";
                                               ^
/datasets/git/unpack-trees.c:1957:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (o->prefix) {
                ^
/datasets/git/unpack-trees.c:1963:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (1) {
                        ^
/datasets/git/unpack-trees.c:1965:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!ce)
                                ^
/datasets/git/unpack-trees.c:1967:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (ce_in_traverse_path(ce, &info))
                                ^
/datasets/git/unpack-trees.c:1969:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (unpack_index_entry(ce, o) < 0)
                                ^
/datasets/git/unpack-trees.c:1978:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                trace_performance_leave("traverse_trees");
                ^
/datasets/git/./trace.h:251:2: note: expanded from macro 'trace_performance_leave'
        do {                                                                \
        ^
/datasets/git/unpack-trees.c:1978:3: note: +3, including nesting penalty of 2, nesting level increased to 3
                trace_performance_leave("traverse_trees");
                ^
/datasets/git/./trace.h:252:3: note: expanded from macro 'trace_performance_leave'
                if (trace_pass_fl(&trace_perf_key))                         \
                ^
/datasets/git/unpack-trees.c:1979:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ret < 0)
                ^
/datasets/git/unpack-trees.c:1984:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (o->merge) {
        ^
/datasets/git/unpack-trees.c:1985:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (1) {
                ^
/datasets/git/unpack-trees.c:1987:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!ce)
                        ^
/datasets/git/unpack-trees.c:1989:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (unpack_index_entry(ce, o) < 0)
                        ^
/datasets/git/unpack-trees.c:1995:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (o->trivial_merges_only && o->nontrivial_merge) {
        ^
/datasets/git/unpack-trees.c:1995:29: note: +1
        if (o->trivial_merges_only && o->nontrivial_merge) {
                                   ^
/datasets/git/unpack-trees.c:1997:3: note: +1
                goto done;
                ^
/datasets/git/unpack-trees.c:2000:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!o->skip_sparse_checkout) {
        ^
/datasets/git/unpack-trees.c:2011:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < o->result.cache_nr; i++) {
                ^
/datasets/git/unpack-trees.c:2022:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ce->ce_flags & CE_ADDED &&
                        ^
/datasets/git/unpack-trees.c:2022:32: note: +1
                        if (ce->ce_flags & CE_ADDED &&
                                                    ^
/datasets/git/unpack-trees.c:2026:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (apply_sparse_checkout(&o->result, ce, o))
                        ^
/datasets/git/unpack-trees.c:2029:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ret == 1) {
                ^
/datasets/git/unpack-trees.c:2034:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (o->show_all_errors)
                        ^
/datasets/git/unpack-trees.c:2040:37: note: +1, including nesting penalty of 0, nesting level increased to 1
        ret = check_updates(o, &o->result) ? (-2) : 0;
                                           ^
/datasets/git/unpack-trees.c:2041:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (o->dst_index) {
        ^
/datasets/git/unpack-trees.c:2043:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!ret) {
                ^
/datasets/git/unpack-trees.c:2044:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (git_env_bool("GIT_TEST_CHECK_CACHE_TREE", 0))
                        ^
/datasets/git/unpack-trees.c:2046:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!o->skip_cache_tree_update &&
                        ^
/datasets/git/unpack-trees.c:2046:35: note: +1
                        if (!o->skip_cache_tree_update &&
                                                       ^
/datasets/git/unpack-trees.c:2056:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/unpack-trees.c:2062:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (free_pattern_list)
        ^
/datasets/git/unpack-trees.c:2064:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (o->dir) {
        ^
/datasets/git/unpack-trees.c:2069:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        trace_performance_leave("unpack_trees");
        ^
/datasets/git/./trace.h:251:2: note: expanded from macro 'trace_performance_leave'
        do {                                                                \
        ^
/datasets/git/unpack-trees.c:2069:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        trace_performance_leave("unpack_trees");
        ^
/datasets/git/./trace.h:252:3: note: expanded from macro 'trace_performance_leave'
                if (trace_pass_fl(&trace_perf_key))                         \
                ^
/datasets/git/unpack-trees.c:2073:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (o->show_all_errors)
        ^
/datasets/git/unpack-trees.c:2077:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (o->exiting_early)
        ^
/datasets/git/unpack-trees.c:2079:2: note: +1
        goto done;
        ^
/datasets/git/unpack-trees.c:1857:50: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
int unpack_trees(unsigned len, struct tree_desc *t, struct unpack_trees_options *o)
                                                 ^
/datasets/git/unpack-trees.c:1857:82: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
int unpack_trees(unsigned len, struct tree_desc *t, struct unpack_trees_options *o)
                                                                                 ^
/datasets/git/unpack-trees.c:1860:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, ret;
        ^~~~~~~~~~~
/datasets/git/unpack-trees.c:1860:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, ret;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/unpack-trees.c:1860:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/unpack-trees.c:1860:9: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int i, ret;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/unpack-trees.c:1861:29: warning: variable 'dfc' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
        static struct cache_entry *dfc;
                                   ^
/datasets/git/unpack-trees.c:1862:22: warning: variable name 'pl' is too short, expected at least 3 characters [readability-identifier-length]
        struct pattern_list pl;
                            ^
/datasets/git/unpack-trees.c:1866:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (o->reset == UNPACK_RESET_INVALID)
                                             ^
                                              {
/datasets/git/unpack-trees.c:1869:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len > MAX_UNPACK_TREES)
                                   ^
                                    {
/datasets/git/unpack-trees.c:1871:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (o->dir)
                   ^
                    {
/datasets/git/unpack-trees.c:1884:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            o->preserve_ignored)
                                ^
                                 {
/datasets/git/unpack-trees.c:1889:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                o->dir->flags |= DIR_SHOW_IGNORED;
                ^                ~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:1893:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (o->prefix)
                      ^
                       {
/datasets/git/unpack-trees.c:1896:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!core_apply_sparse_checkout || !o->update)
                                                      ^
                                                       {
/datasets/git/unpack-trees.c:1899:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(&pl, 0, sizeof(pl));
                ^~~~~~
/datasets/git/unpack-trees.c:1899:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(&pl, 0, sizeof(pl));
                ^~~~~~
/datasets/git/unpack-trees.c:1904:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&o->result, 0, sizeof(o->result));
        ^~~~~~
/datasets/git/unpack-trees.c:1904:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&o->result, 0, sizeof(o->result));
        ^~~~~~
/datasets/git/unpack-trees.c:1924:18: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        o->merge_size = len;
                        ^
/datasets/git/unpack-trees.c:1933:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            is_sparse_index_allowed(&o->result, 0))
                                                   ^
                                                    {
/datasets/git/unpack-trees.c:1939:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!o->skip_sparse_checkout)
                                     ^
                                      {
/datasets/git/unpack-trees.c:1941:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                       CE_NEW_SKIP_WORKTREE, o->verbose_update);
                                       ^
/datasets/git/./refs/../cache.h:178:31: note: expanded from macro 'CE_NEW_SKIP_WORKTREE'
#define CE_NEW_SKIP_WORKTREE (1 << 25)
                              ^
/datasets/git/unpack-trees.c:1941:34: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                       CE_NEW_SKIP_WORKTREE, o->verbose_update);
                                                             ^
/datasets/git/unpack-trees.c:1943:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!dfc)
                 ^
                  {
/datasets/git/unpack-trees.c:1954:26: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                info.show_all_errors = o->show_all_errors;
                                       ^
/datasets/git/unpack-trees.c:1963:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (1) {
                        ^
/datasets/git/unpack-trees.c:1964:25: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                                struct cache_entry *ce = next_cache_entry(o);
                                                    ^
/datasets/git/unpack-trees.c:1965:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!ce)
                                        ^
                                         {
/datasets/git/unpack-trees.c:1967:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (ce_in_traverse_path(ce, &info))
                                                                   ^
                                                                    {
/datasets/git/unpack-trees.c:1969:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (unpack_index_entry(ce, o) < 0)
                                                                  ^
                                                                   {
/datasets/git/unpack-trees.c:1976:38: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                ret = traverse_trees(o->src_index, len, t, &info);
                                                   ^
/datasets/git/unpack-trees.c:1978:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                trace_performance_leave("traverse_trees");
                ^
/datasets/git/./trace.h:251:2: note: expanded from macro 'trace_performance_leave'
        do {                                                                \
        ^
/datasets/git/unpack-trees.c:1979:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret < 0)
                            ^
                             {
/datasets/git/unpack-trees.c:1985:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (1) {
                ^
/datasets/git/unpack-trees.c:1986:24: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                        struct cache_entry *ce = next_cache_entry(o);
                                            ^
/datasets/git/unpack-trees.c:1987:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!ce)
                                ^
                                 {
/datasets/git/unpack-trees.c:1989:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (unpack_index_entry(ce, o) < 0)
                                                          ^
                                                           {
/datasets/git/unpack-trees.c:2007:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                       CE_ADDED, CE_SKIP_WORKTREE | CE_NEW_SKIP_WORKTREE,
                                       ^
/datasets/git/./refs/../cache.h:170:31: note: expanded from macro 'CE_ADDED'
#define CE_ADDED             (1 << 19)
                              ^
/datasets/git/unpack-trees.c:2007:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                       CE_ADDED, CE_SKIP_WORKTREE | CE_NEW_SKIP_WORKTREE,
                                                 ^
/datasets/git/./refs/../cache.h:190:30: note: expanded from macro 'CE_SKIP_WORKTREE'
#define CE_SKIP_WORKTREE     (1 << 30)
                             ^~~~~~~~~
/datasets/git/unpack-trees.c:2007:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                       CE_ADDED, CE_SKIP_WORKTREE | CE_NEW_SKIP_WORKTREE,
                                                                    ^
/datasets/git/./refs/../cache.h:178:31: note: expanded from macro 'CE_NEW_SKIP_WORKTREE'
#define CE_NEW_SKIP_WORKTREE (1 << 25)
                              ^
/datasets/git/unpack-trees.c:2008:12: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                       o->verbose_update);
                                       ^
/datasets/git/unpack-trees.c:2011:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < o->result.cache_nr; i++) {
                ^
/datasets/git/unpack-trees.c:2012:24: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                        struct cache_entry *ce = o->result.cache[i];
                                            ^
/datasets/git/unpack-trees.c:2022:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (ce->ce_flags & CE_ADDED &&
                            ^
/datasets/git/unpack-trees.c:2022:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (ce->ce_flags & CE_ADDED &&
                                           ^
/datasets/git/./refs/../cache.h:170:31: note: expanded from macro 'CE_ADDED'
#define CE_ADDED             (1 << 19)
                              ^
/datasets/git/unpack-trees.c:2023:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            verify_absent(ce, WARNING_SPARSE_ORPHANED_NOT_OVERWRITTEN, o))
                                                                                          ^
                                                                                           {
/datasets/git/unpack-trees.c:2026:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (apply_sparse_checkout(&o->result, ce, o))
                                                                     ^
                                                                      {
/datasets/git/unpack-trees.c:2034:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (o->show_all_errors)
                                               ^
                                                {
/datasets/git/unpack-trees.c:2036:4: warning: Value stored to 'ret' is never read [clang-analyzer-deadcode.DeadStores]
                        ret = 0;
                        ^     ~
/datasets/git/unpack-trees.c:2036:4: note: Value stored to 'ret' is never read
                        ret = 0;
                        ^     ~
/datasets/git/unpack-trees.c:2044:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (git_env_bool("GIT_TEST_CHECK_CACHE_TREE", 0))
                                                                         ^
                                                                          {
/datasets/git/unpack-trees.c:2047:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            !cache_tree_fully_valid(o->result.cache_tree))
                                                                          ^
                                                                           {
/datasets/git/unpack-trees.c:2049:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                                  WRITE_TREE_SILENT |
                                                  ^
/datasets/git/./cache-tree.h:43:27: note: expanded from macro 'WRITE_TREE_SILENT'
#define WRITE_TREE_SILENT 8
                          ^
/datasets/git/unpack-trees.c:2062:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (free_pattern_list)
                              ^
                               {
/datasets/git/unpack-trees.c:2069:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_performance_leave("unpack_trees");
        ^
/datasets/git/./trace.h:251:2: note: expanded from macro 'trace_performance_leave'
        do {                                                                \
        ^
/datasets/git/unpack-trees.c:2073:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (o->show_all_errors)
                               ^
                                {
/datasets/git/unpack-trees.c:2077:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (o->exiting_early)
                             ^
                              {
/datasets/git/unpack-trees.c:2088:74: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
enum update_sparsity_result update_sparsity(struct unpack_trees_options *o)
                                                                         ^
/datasets/git/unpack-trees.c:2091:22: warning: variable name 'pl' is too short, expected at least 3 characters [readability-identifier-length]
        struct pattern_list pl;
                            ^
/datasets/git/unpack-trees.c:2092:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/unpack-trees.c:2092:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/unpack-trees.c:2093:11: warning: variable 'old_show_all_errors' is not initialized [cppcoreguidelines-init-variables]
        unsigned old_show_all_errors;
                 ^
                                     = 0
/datasets/git/unpack-trees.c:2100:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!o->update || o->index_only || o->skip_sparse_checkout)
                                                                   ^
                                                                    {
/datasets/git/unpack-trees.c:2102:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (o->src_index != o->dst_index || o->fn)
                                                  ^
                                                   {
/datasets/git/unpack-trees.c:2109:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(&pl, 0, sizeof(pl));
                ^~~~~~
/datasets/git/unpack-trees.c:2109:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(&pl, 0, sizeof(pl));
                ^~~~~~
/datasets/git/unpack-trees.c:2112:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (o->skip_sparse_checkout)
                                            ^
                                             {
/datasets/git/unpack-trees.c:2122:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                               CE_NEW_SKIP_WORKTREE, o->verbose_update);
                               ^
/datasets/git/./refs/../cache.h:178:31: note: expanded from macro 'CE_NEW_SKIP_WORKTREE'
#define CE_NEW_SKIP_WORKTREE (1 << 25)
                              ^
/datasets/git/unpack-trees.c:2122:33: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                               CE_NEW_SKIP_WORKTREE, o->verbose_update);
                                                     ^
/datasets/git/unpack-trees.c:2126:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < o->src_index->cache_nr; i++) {
        ^
/datasets/git/unpack-trees.c:2126:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < o->src_index->cache_nr; i++) {
                    ^
/datasets/git/unpack-trees.c:2127:23: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                struct cache_entry *ce = o->src_index->cache[i];
                                    ^
/datasets/git/unpack-trees.c:2130:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce_stage(ce)) {
                    ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:2137:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (apply_sparse_checkout(o->src_index, ce, o))
                                                               ^
                                                                {
/datasets/git/unpack-trees.c:2142:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (check_updates(o, o->src_index))
                                           ^
                                            {
/datasets/git/unpack-trees.c:2147:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (free_pattern_list)
                              ^
                               {
/datasets/git/unpack-trees.c:2149:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        trace_performance_leave("update_sparsity");
        ^
/datasets/git/./trace.h:251:2: note: expanded from macro 'trace_performance_leave'
        do {                                                                \
        ^
/datasets/git/unpack-trees.c:2155:51: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static int reject_merge(const struct cache_entry *ce,
                                                  ^
/datasets/git/unpack-trees.c:2156:33: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                        struct unpack_trees_options *o)
                                                     ^
/datasets/git/unpack-trees.c:2161:43: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static int same(const struct cache_entry *a, const struct cache_entry *b)
                                          ^
/datasets/git/unpack-trees.c:2161:72: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static int same(const struct cache_entry *a, const struct cache_entry *b)
                                                                       ^
/datasets/git/unpack-trees.c:2163:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!!a != !!b)
                       ^
                        {
/datasets/git/unpack-trees.c:2165:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!a && !b)
                     ^
                      {
/datasets/git/unpack-trees.c:2167:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((a->ce_flags | b->ce_flags) & CE_CONFLICTED)
            ^
/datasets/git/unpack-trees.c:2167:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((a->ce_flags | b->ce_flags) & CE_CONFLICTED)
                                          ^
/datasets/git/./refs/../cache.h:175:31: note: expanded from macro 'CE_CONFLICTED'
#define CE_CONFLICTED        (1 << 23)
                              ^
/datasets/git/unpack-trees.c:2167:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((a->ce_flags | b->ce_flags) & CE_CONFLICTED)
                                                        ^
                                                         {
/datasets/git/unpack-trees.c:2178:56: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static int verify_uptodate_1(const struct cache_entry *ce,
                                                       ^
/datasets/git/unpack-trees.c:2179:38: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                             struct unpack_trees_options *o,
                                                          ^
/datasets/git/unpack-trees.c:2182:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/unpack-trees.c:2184:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (o->index_only)
                          ^
                           {
/datasets/git/unpack-trees.c:2192:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((ce->ce_flags & CE_VALID) || ce_skip_worktree(ce))
             ^
/datasets/git/unpack-trees.c:2192:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((ce->ce_flags & CE_VALID) || ce_skip_worktree(ce))
                                         ^
/datasets/git/./refs/../cache.h:244:31: note: expanded from macro 'ce_skip_worktree'
#define ce_skip_worktree(ce) ((ce)->ce_flags & CE_SKIP_WORKTREE)
                              ^                ~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:2192:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((ce->ce_flags & CE_VALID) || ce_skip_worktree(ce))
                                                              ^
                                                               {
/datasets/git/unpack-trees.c:2194:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        else if (o->reset || ce_uptodate(ce))
                             ^
/datasets/git/./refs/../cache.h:243:26: note: expanded from macro 'ce_uptodate'
#define ce_uptodate(ce) ((ce)->ce_flags & CE_UPTODATE)
                         ^                ~~~~~~~~~~~
/datasets/git/unpack-trees.c:2194:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (o->reset || ce_uptodate(ce))
                                             ^
                                              {
/datasets/git/unpack-trees.c:2198:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                int flags = CE_MATCH_IGNORE_VALID|CE_MATCH_IGNORE_SKIP_WORKTREE;
                            ^
/datasets/git/./refs/../cache.h:879:32: note: expanded from macro 'CE_MATCH_IGNORE_VALID'
#define CE_MATCH_IGNORE_VALID           01
                                        ^~
/datasets/git/unpack-trees.c:2202:8: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
                        int r = check_submodule_move_head(ce,
                            ^
/datasets/git/unpack-trees.c:2204:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (r)
                              ^
                               {
/datasets/git/unpack-trees.c:2209:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!changed)
                             ^
                              {
/datasets/git/unpack-trees.c:2216:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (S_ISGITLINK(ce->ce_mode))
                    ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/unpack-trees.c:2216:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (S_ISGITLINK(ce->ce_mode))
                                             ^
                                              {
/datasets/git/unpack-trees.c:2221:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (errno == ENOENT)
                            ^
                             {
/datasets/git/unpack-trees.c:2226:47: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
int verify_uptodate(const struct cache_entry *ce,
                                              ^
/datasets/git/unpack-trees.c:2227:36: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                    struct unpack_trees_options *o)
                                                 ^
/datasets/git/unpack-trees.c:2230:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            (ce->ce_flags & CE_SKIP_WORKTREE) &&
             ^
/datasets/git/unpack-trees.c:2230:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            (ce->ce_flags & CE_SKIP_WORKTREE) &&
                            ^
/datasets/git/./refs/../cache.h:190:31: note: expanded from macro 'CE_SKIP_WORKTREE'
#define CE_SKIP_WORKTREE     (1 << 30)
                              ^
/datasets/git/unpack-trees.c:2231:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            (ce->ce_flags & CE_NEW_SKIP_WORKTREE))
             ^
/datasets/git/unpack-trees.c:2231:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            (ce->ce_flags & CE_NEW_SKIP_WORKTREE))
                            ^
/datasets/git/./refs/../cache.h:178:31: note: expanded from macro 'CE_NEW_SKIP_WORKTREE'
#define CE_NEW_SKIP_WORKTREE (1 << 25)
                              ^
/datasets/git/unpack-trees.c:2231:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            (ce->ce_flags & CE_NEW_SKIP_WORKTREE))
                                                  ^
                                                   {
/datasets/git/unpack-trees.c:2236:61: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static int verify_uptodate_sparse(const struct cache_entry *ce,
                                                            ^
/datasets/git/unpack-trees.c:2237:36: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                                  struct unpack_trees_options *o)
                                                               ^
/datasets/git/unpack-trees.c:2253:58: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static void invalidate_ce_path(const struct cache_entry *ce,
                                                         ^
/datasets/git/unpack-trees.c:2254:40: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                               struct unpack_trees_options *o)
                                                            ^
/datasets/git/unpack-trees.c:2256:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ce)
                ^
                 {
/datasets/git/unpack-trees.c:2267:33: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                                  const struct cache_entry *ce,
                                                            ^
/datasets/git/unpack-trees.c:2268:36: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                                  struct unpack_trees_options *o)
                                                               ^
/datasets/git/unpack-trees.c:2270:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!submodule_from_ce(ce))
                                   ^
                                    {
/datasets/git/unpack-trees.c:2277:64: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static int verify_clean_subdirectory(const struct cache_entry *ce,
                                                               ^
/datasets/git/unpack-trees.c:2278:39: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                                     struct unpack_trees_options *o)
                                                                  ^
/datasets/git/unpack-trees.c:2285:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int i;
        ^
/datasets/git/unpack-trees.c:2284:6: warning: variable 'namelen' is not initialized [cppcoreguidelines-init-variables]
        int namelen;
            ^
                    = 0
/datasets/git/unpack-trees.c:2285:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/unpack-trees.c:2285:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/unpack-trees.c:2286:20: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
        struct dir_struct d;
                          ^
/datasets/git/unpack-trees.c:2287:8: warning: variable 'pathbuf' is not initialized [cppcoreguidelines-init-variables]
        char *pathbuf;
              ^
                      = NULL
/datasets/git/unpack-trees.c:2290:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (S_ISGITLINK(ce->ce_mode)) {
            ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/unpack-trees.c:2297:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!sub_head && oideq(&oid, &ce->oid))
                                                       ^
                                                        {
/datasets/git/unpack-trees.c:2308:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = locate_in_src_index(ce, o);
        ^
/datasets/git/unpack-trees.c:2309:7: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
             i < o->src_index->cache_nr;
             ^
/datasets/git/unpack-trees.c:2314:7: warning: function 'strncmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                    strncmp(ce->name, ce2->name, namelen) ||
                    ^
                                                          != 0
/datasets/git/unpack-trees.c:2315:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    ce2->name[namelen] != '/')
                                              ^
                                               {
/datasets/git/unpack-trees.c:2321:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!ce_stage(ce2)) {
                     ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:2322:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (verify_uptodate(ce2, o))
                                                    ^
                                                     {
/datasets/git/unpack-trees.c:2324:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        add_entry(o, ce2, CE_REMOVE, 0);
                                          ^
/datasets/git/./refs/../cache.h:168:31: note: expanded from macro 'CE_REMOVE'
#define CE_REMOVE            (1 << 17)
                              ^
/datasets/git/unpack-trees.c:2334:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&d, 0, sizeof(d));
        ^~~~~~
/datasets/git/unpack-trees.c:2334:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&d, 0, sizeof(d));
        ^~~~~~
/datasets/git/unpack-trees.c:2335:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (o->dir)
                   ^
                    {
/datasets/git/unpack-trees.c:2340:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (i)
              ^
               {
/datasets/git/unpack-trees.c:2345:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !strcmp(startup_info->original_cwd, ce->name))
                                                          ^
                                                           {
/datasets/git/unpack-trees.c:2359:54: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static int icase_exists(struct unpack_trees_options *o, const char *name, int len, struct stat *st)
                                                     ^
/datasets/git/unpack-trees.c:2359:97: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
static int icase_exists(struct unpack_trees_options *o, const char *name, int len, struct stat *st)
                                                                                                ^
/datasets/git/unpack-trees.c:2361:28: warning: variable 'src' is not initialized [cppcoreguidelines-init-variables]
        const struct cache_entry *src;
                                  ^
                                      = NULL
/datasets/git/unpack-trees.c:2364:54: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return src && !ie_match_stat(o->src_index, src, st, CE_MATCH_IGNORE_VALID|CE_MATCH_IGNORE_SKIP_WORKTREE);
                                                            ^
/datasets/git/./refs/../cache.h:879:32: note: expanded from macro 'CE_MATCH_IGNORE_VALID'
#define CE_MATCH_IGNORE_VALID           01
                                        ^~
/datasets/git/unpack-trees.c:2372:49: warning: 2 adjacent parameters of 'check_ok_to_remove' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int check_ok_to_remove(const char *name, int len, int dtype,
                                                ^~~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:2372:53: note: the first parameter in the range is 'len'
static int check_ok_to_remove(const char *name, int len, int dtype,
                                                    ^~~
/datasets/git/unpack-trees.c:2372:62: note: the last parameter in the range is 'dtype'
static int check_ok_to_remove(const char *name, int len, int dtype,
                                                             ^~~~~
/datasets/git/unpack-trees.c:2373:36: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                              const struct cache_entry *ce, struct stat *st,
                                                        ^
/datasets/git/unpack-trees.c:2373:53: warning: parameter name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                              const struct cache_entry *ce, struct stat *st,
                                                                         ^
/datasets/git/unpack-trees.c:2376:39: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                              struct unpack_trees_options *o)
                                                           ^
/datasets/git/unpack-trees.c:2378:28: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        const struct cache_entry *result;
                                  ^
                                         = NULL
/datasets/git/unpack-trees.c:2387:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ignore_case && icase_exists(o, name, len, st))
                                                          ^
                                                           {
/datasets/git/unpack-trees.c:2391:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            is_excluded(o->dir, o->src_index, name, &dtype))
                                                            ^
                                                             {
/datasets/git/unpack-trees.c:2405:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (verify_clean_subdirectory(ce, o) < 0)
                                                         ^
                                                          {
/datasets/git/unpack-trees.c:2411:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (absent_type == ABSENT_ANY_DIRECTORY)
                                                ^
                                                 {
/datasets/git/unpack-trees.c:2421:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (result->ce_flags & CE_REMOVE)
                    ^
/datasets/git/unpack-trees.c:2421:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (result->ce_flags & CE_REMOVE)
                                       ^
/datasets/git/./refs/../cache.h:168:31: note: expanded from macro 'CE_REMOVE'
#define CE_REMOVE            (1 << 17)
                              ^
/datasets/git/unpack-trees.c:2421:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (result->ce_flags & CE_REMOVE)
                                                 ^
                                                  {
/datasets/git/unpack-trees.c:2432:54: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static int verify_absent_1(const struct cache_entry *ce,
                                                     ^
/datasets/git/unpack-trees.c:2435:36: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                           struct unpack_trees_options *o)
                                                        ^
/datasets/git/unpack-trees.c:2437:6: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int len;
            ^
                = 0
/datasets/git/unpack-trees.c:2438:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/unpack-trees.c:2440:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (o->index_only || !o->update)
                                        ^
                                         {
/datasets/git/unpack-trees.c:2446:8: warning: Null pointer passed to 2nd parameter expecting 'nonnull' [clang-analyzer-core.NonNullParamChecker]
                    !strcmp(startup_info->original_cwd, ce->name))
                     ^
/datasets/git/unpack-trees.c:2982:6: note: Assuming field 'merge_size' is equal to 1
        if (o->merge_size != 1)
            ^~~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:2982:2: note: Taking false branch
        if (o->merge_size != 1)
        ^
/datasets/git/unpack-trees.c:2986:6: note: Assuming 'a' is null
        if (!a || a == o->df_conflict_entry)
            ^~
/datasets/git/unpack-trees.c:2986:9: note: Left side of '||' is true
        if (!a || a == o->df_conflict_entry)
               ^
/datasets/git/unpack-trees.c:2987:10: note: Calling 'deleted_entry'
                return deleted_entry(old, old, o);
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:2636:6: note: Assuming 'old' is null
        if (!old) {
            ^~~~
/datasets/git/unpack-trees.c:2636:2: note: Taking true branch
        if (!old) {
        ^
/datasets/git/unpack-trees.c:2637:7: note: Calling 'verify_absent'
                if (verify_absent(ce, ERROR_WOULD_LOSE_UNTRACKED_REMOVED, o))
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:2494:6: note: Assuming field 'skip_sparse_checkout' is not equal to 0
        if (!o->skip_sparse_checkout && (ce->ce_flags & CE_NEW_SKIP_WORKTREE))
            ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:2494:31: note: Left side of '&&' is false
        if (!o->skip_sparse_checkout && (ce->ce_flags & CE_NEW_SKIP_WORKTREE))
                                     ^
/datasets/git/unpack-trees.c:2496:9: note: Calling 'verify_absent_1'
        return verify_absent_1(ce, error_type, COMPLETELY_ABSENT, o);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:2440:6: note: Assuming field 'index_only' is 0
        if (o->index_only || !o->update)
            ^~~~~~~~~~~~~
/datasets/git/unpack-trees.c:2440:6: note: Left side of '||' is false
/datasets/git/unpack-trees.c:2440:23: note: Assuming field 'update' is not equal to 0
        if (o->index_only || !o->update)
                             ^~~~~~~~~~
/datasets/git/unpack-trees.c:2440:2: note: Taking false branch
        if (o->index_only || !o->update)
        ^
/datasets/git/unpack-trees.c:2443:6: note: Assuming field 'reset' is equal to UNPACK_RESET_OVERWRITE_UNTRACKED
        if (o->reset == UNPACK_RESET_OVERWRITE_UNTRACKED) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:2443:2: note: Taking true branch
        if (o->reset == UNPACK_RESET_OVERWRITE_UNTRACKED) {
        ^
/datasets/git/unpack-trees.c:2445:7: note: Assuming field 'original_cwd' is non-null
                if (startup_info->original_cwd &&
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:2445:7: note: Left side of '&&' is true
/datasets/git/unpack-trees.c:2446:8: note: Null pointer passed to 2nd parameter expecting 'nonnull'
                    !strcmp(startup_info->original_cwd, ce->name))
                     ^                                  ~~~~~~~~
/datasets/git/unpack-trees.c:2446:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    !strcmp(startup_info->original_cwd, ce->name))
                                                                  ^
                                                                   {
/datasets/git/unpack-trees.c:2453:37: warning: Access to field 'ce_namelen' results in a dereference of a null pointer (loaded from variable 'ce') [clang-analyzer-core.NullDereference]
        len = check_leading_path(ce->name, ce_namelen(ce), 0);
                                           ^
/datasets/git/./refs/../cache.h:240:24: note: expanded from macro 'ce_namelen'
#define ce_namelen(ce) ((ce)->ce_namelen)
                       ^
/datasets/git/unpack-trees.c:2979:2: note: 'old' initialized here
        const struct cache_entry *old = src[0];
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:2982:6: note: Assuming field 'merge_size' is equal to 1
        if (o->merge_size != 1)
            ^~~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:2982:2: note: Taking false branch
        if (o->merge_size != 1)
        ^
/datasets/git/unpack-trees.c:2986:6: note: Assuming 'a' is null
        if (!a || a == o->df_conflict_entry)
            ^~
/datasets/git/unpack-trees.c:2986:9: note: Left side of '||' is true
        if (!a || a == o->df_conflict_entry)
               ^
/datasets/git/unpack-trees.c:2987:24: note: Passing value via 1st parameter 'ce'
                return deleted_entry(old, old, o);
                                     ^~~
/datasets/git/unpack-trees.c:2987:10: note: Calling 'deleted_entry'
                return deleted_entry(old, old, o);
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:2636:6: note: Assuming 'old' is null
        if (!old) {
            ^~~~
/datasets/git/unpack-trees.c:2636:2: note: Taking true branch
        if (!old) {
        ^
/datasets/git/unpack-trees.c:2637:21: note: Passing null pointer value via 1st parameter 'ce'
                if (verify_absent(ce, ERROR_WOULD_LOSE_UNTRACKED_REMOVED, o))
                                  ^~
/datasets/git/unpack-trees.c:2637:7: note: Calling 'verify_absent'
                if (verify_absent(ce, ERROR_WOULD_LOSE_UNTRACKED_REMOVED, o))
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:2494:6: note: Assuming field 'skip_sparse_checkout' is not equal to 0
        if (!o->skip_sparse_checkout && (ce->ce_flags & CE_NEW_SKIP_WORKTREE))
            ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:2494:31: note: Left side of '&&' is false
        if (!o->skip_sparse_checkout && (ce->ce_flags & CE_NEW_SKIP_WORKTREE))
                                     ^
/datasets/git/unpack-trees.c:2496:25: note: Passing null pointer value via 1st parameter 'ce'
        return verify_absent_1(ce, error_type, COMPLETELY_ABSENT, o);
                               ^~
/datasets/git/unpack-trees.c:2496:9: note: Calling 'verify_absent_1'
        return verify_absent_1(ce, error_type, COMPLETELY_ABSENT, o);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:2440:6: note: Assuming field 'index_only' is 0
        if (o->index_only || !o->update)
            ^~~~~~~~~~~~~
/datasets/git/unpack-trees.c:2440:6: note: Left side of '||' is false
/datasets/git/unpack-trees.c:2440:23: note: Assuming field 'update' is not equal to 0
        if (o->index_only || !o->update)
                             ^~~~~~~~~~
/datasets/git/unpack-trees.c:2440:2: note: Taking false branch
        if (o->index_only || !o->update)
        ^
/datasets/git/unpack-trees.c:2443:6: note: Assuming field 'reset' is not equal to UNPACK_RESET_OVERWRITE_UNTRACKED
        if (o->reset == UNPACK_RESET_OVERWRITE_UNTRACKED) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:2443:2: note: Taking false branch
        if (o->reset == UNPACK_RESET_OVERWRITE_UNTRACKED) {
        ^
/datasets/git/unpack-trees.c:2453:37: note: Access to field 'ce_namelen' results in a dereference of a null pointer (loaded from variable 'ce')
        len = check_leading_path(ce->name, ce_namelen(ce), 0);
                                           ^
/datasets/git/./refs/../cache.h:240:24: note: expanded from macro 'ce_namelen'
#define ce_namelen(ce) ((ce)->ce_namelen)
                       ^ ~~
/datasets/git/unpack-trees.c:2454:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!len)
                 ^
                  {
/datasets/git/unpack-trees.c:2456:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (len > 0) {
        ^~~~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:2457:9: warning: variable 'path' is not initialized [cppcoreguidelines-init-variables]
                char *path;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/unpack-trees.c:2458:7: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
                int ret;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/unpack-trees.c:2461:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (lstat(path, &st))
                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/unpack-trees.c:2464:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (submodule_from_ce(ce))
                                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/unpack-trees.c:2468:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/unpack-trees.c:2476:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (errno != ENOENT)
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/unpack-trees.c:2480:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (submodule_from_ce(ce))
                                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/unpack-trees.c:2490:52: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static int verify_absent(const struct cache_entry *ce,
                                                   ^
/datasets/git/unpack-trees.c:2492:34: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                         struct unpack_trees_options *o)
                                                      ^
/datasets/git/unpack-trees.c:2494:35: warning: Access to field 'ce_flags' results in a dereference of a null pointer (loaded from variable 'ce') [clang-analyzer-core.NullDereference]
        if (!o->skip_sparse_checkout && (ce->ce_flags & CE_NEW_SKIP_WORKTREE))
                                         ^
/datasets/git/unpack-trees.c:2979:2: note: 'old' initialized here
        const struct cache_entry *old = src[0];
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:2982:6: note: Assuming field 'merge_size' is equal to 1
        if (o->merge_size != 1)
            ^~~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:2982:2: note: Taking false branch
        if (o->merge_size != 1)
        ^
/datasets/git/unpack-trees.c:2986:6: note: Assuming 'a' is null
        if (!a || a == o->df_conflict_entry)
            ^~
/datasets/git/unpack-trees.c:2986:9: note: Left side of '||' is true
        if (!a || a == o->df_conflict_entry)
               ^
/datasets/git/unpack-trees.c:2987:24: note: Passing value via 1st parameter 'ce'
                return deleted_entry(old, old, o);
                                     ^~~
/datasets/git/unpack-trees.c:2987:10: note: Calling 'deleted_entry'
                return deleted_entry(old, old, o);
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:2636:6: note: Assuming 'old' is null
        if (!old) {
            ^~~~
/datasets/git/unpack-trees.c:2636:2: note: Taking true branch
        if (!old) {
        ^
/datasets/git/unpack-trees.c:2637:21: note: Passing null pointer value via 1st parameter 'ce'
                if (verify_absent(ce, ERROR_WOULD_LOSE_UNTRACKED_REMOVED, o))
                                  ^~
/datasets/git/unpack-trees.c:2637:7: note: Calling 'verify_absent'
                if (verify_absent(ce, ERROR_WOULD_LOSE_UNTRACKED_REMOVED, o))
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:2494:6: note: Assuming field 'skip_sparse_checkout' is 0
        if (!o->skip_sparse_checkout && (ce->ce_flags & CE_NEW_SKIP_WORKTREE))
            ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:2494:6: note: Left side of '&&' is true
/datasets/git/unpack-trees.c:2494:35: note: Access to field 'ce_flags' results in a dereference of a null pointer (loaded from variable 'ce')
        if (!o->skip_sparse_checkout && (ce->ce_flags & CE_NEW_SKIP_WORKTREE))
                                         ^~
/datasets/git/unpack-trees.c:2494:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!o->skip_sparse_checkout && (ce->ce_flags & CE_NEW_SKIP_WORKTREE))
                                         ^
/datasets/git/unpack-trees.c:2494:50: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!o->skip_sparse_checkout && (ce->ce_flags & CE_NEW_SKIP_WORKTREE))
                                                        ^
/datasets/git/./refs/../cache.h:178:31: note: expanded from macro 'CE_NEW_SKIP_WORKTREE'
#define CE_NEW_SKIP_WORKTREE (1 << 25)
                              ^
/datasets/git/unpack-trees.c:2494:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!o->skip_sparse_checkout && (ce->ce_flags & CE_NEW_SKIP_WORKTREE))
                                                                              ^
                                                                               {
/datasets/git/unpack-trees.c:2499:65: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static int verify_absent_if_directory(const struct cache_entry *ce,
                                                                ^
/datasets/git/unpack-trees.c:2501:40: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                                      struct unpack_trees_options *o)
                                                                   ^
/datasets/git/unpack-trees.c:2503:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!o->skip_sparse_checkout && (ce->ce_flags & CE_NEW_SKIP_WORKTREE))
                                         ^
/datasets/git/unpack-trees.c:2503:50: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!o->skip_sparse_checkout && (ce->ce_flags & CE_NEW_SKIP_WORKTREE))
                                                        ^
/datasets/git/./refs/../cache.h:178:31: note: expanded from macro 'CE_NEW_SKIP_WORKTREE'
#define CE_NEW_SKIP_WORKTREE (1 << 25)
                              ^
/datasets/git/unpack-trees.c:2503:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!o->skip_sparse_checkout && (ce->ce_flags & CE_NEW_SKIP_WORKTREE))
                                                                              ^
                                                                               {
/datasets/git/unpack-trees.c:2508:59: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static int verify_absent_sparse(const struct cache_entry *ce,
                                                          ^
/datasets/git/unpack-trees.c:2510:34: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                                struct unpack_trees_options *o)
                                                             ^
/datasets/git/unpack-trees.c:2515:12: warning: function 'merged_entry' has cognitive complexity of 26 (threshold 25) [readability-function-cognitive-complexity]
static int merged_entry(const struct cache_entry *ce,
           ^
/datasets/git/unpack-trees.c:2522:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!old) {
        ^
/datasets/git/unpack-trees.c:2538:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (verify_absent(merge,
                ^
/datasets/git/unpack-trees.c:2545:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (submodule_from_ce(ce) && file_exists(ce->name)) {
                ^
/datasets/git/unpack-trees.c:2545:29: note: +1
                if (submodule_from_ce(ce) && file_exists(ce->name)) {
                                          ^
/datasets/git/unpack-trees.c:2549:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ret)
                        ^
/datasets/git/unpack-trees.c:2553:9: note: +1, nesting level increased to 1
        } else if (!(old->ce_flags & CE_CONFLICTED)) {
               ^
/datasets/git/unpack-trees.c:2561:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (same(old, merge)) {
                ^
/datasets/git/unpack-trees.c:2564:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/unpack-trees.c:2565:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (verify_uptodate(old, o)) {
                        ^
/datasets/git/unpack-trees.c:2574:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (submodule_from_ce(ce) && file_exists(ce->name)) {
                ^
/datasets/git/unpack-trees.c:2574:29: note: +1
                if (submodule_from_ce(ce) && file_exists(ce->name)) {
                                          ^
/datasets/git/unpack-trees.c:2578:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ret)
                        ^
/datasets/git/unpack-trees.c:2581:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/unpack-trees.c:2586:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (verify_absent_if_directory(merge,
                ^
/datasets/git/unpack-trees.c:2595:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (do_add_entry(o, merge, update, CE_STAGEMASK) < 0)
        ^
/datasets/git/unpack-trees.c:2515:51: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static int merged_entry(const struct cache_entry *ce,
                                                  ^
/datasets/git/unpack-trees.c:2517:33: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                        struct unpack_trees_options *o)
                                                     ^
/datasets/git/unpack-trees.c:2519:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int update = CE_UPDATE;
                     ^
/datasets/git/./refs/../cache.h:167:31: note: expanded from macro 'CE_UPDATE'
#define CE_UPDATE            (1 << 16)
                              ^
/datasets/git/unpack-trees.c:2535:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                update |= CE_ADDED;
                ^~~~~~
/datasets/git/unpack-trees.c:2535:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                update |= CE_ADDED;
                          ^
/datasets/git/./refs/../cache.h:170:31: note: expanded from macro 'CE_ADDED'
#define CE_ADDED             (1 << 19)
                              ^
/datasets/git/unpack-trees.c:2536:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                merge->ce_flags |= CE_NEW_SKIP_WORKTREE;
                ^
/datasets/git/unpack-trees.c:2536:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                merge->ce_flags |= CE_NEW_SKIP_WORKTREE;
                                   ^
/datasets/git/./refs/../cache.h:178:31: note: expanded from macro 'CE_NEW_SKIP_WORKTREE'
#define CE_NEW_SKIP_WORKTREE (1 << 25)
                              ^
/datasets/git/unpack-trees.c:2549:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ret)
                                ^
                                 {
/datasets/git/unpack-trees.c:2553:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        } else if (!(old->ce_flags & CE_CONFLICTED)) {
                     ^
/datasets/git/unpack-trees.c:2553:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        } else if (!(old->ce_flags & CE_CONFLICTED)) {
                                     ^
/datasets/git/./refs/../cache.h:175:31: note: expanded from macro 'CE_CONFLICTED'
#define CE_CONFLICTED        (1 << 23)
                              ^
/datasets/git/unpack-trees.c:2570:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        update |= old->ce_flags & (CE_SKIP_WORKTREE | CE_NEW_SKIP_WORKTREE);
                        ^~~~~~
/datasets/git/unpack-trees.c:2570:14: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        update |= old->ce_flags & (CE_SKIP_WORKTREE | CE_NEW_SKIP_WORKTREE);
                                  ^
/datasets/git/unpack-trees.c:2570:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        update |= old->ce_flags & (CE_SKIP_WORKTREE | CE_NEW_SKIP_WORKTREE);
                                  ^               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:2570:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        update |= old->ce_flags & (CE_SKIP_WORKTREE | CE_NEW_SKIP_WORKTREE);
                                                   ^
/datasets/git/./refs/../cache.h:190:30: note: expanded from macro 'CE_SKIP_WORKTREE'
#define CE_SKIP_WORKTREE     (1 << 30)
                             ^~~~~~~~~
/datasets/git/unpack-trees.c:2570:50: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        update |= old->ce_flags & (CE_SKIP_WORKTREE | CE_NEW_SKIP_WORKTREE);
                                                                      ^
/datasets/git/./refs/../cache.h:178:31: note: expanded from macro 'CE_NEW_SKIP_WORKTREE'
#define CE_NEW_SKIP_WORKTREE (1 << 25)
                              ^
/datasets/git/unpack-trees.c:2578:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ret)
                                ^
                                 {
/datasets/git/unpack-trees.c:2595:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (do_add_entry(o, merge, update, CE_STAGEMASK) < 0)
                                                             ^
                                                              {
/datasets/git/unpack-trees.c:2601:38: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                             struct unpack_trees_options *o)
                                                          ^
/datasets/git/unpack-trees.c:2603:19: warning: variable name 't' is too short, expected at least 3 characters [readability-identifier-length]
        struct tree_desc t[MAX_UNPACK_TREES + 1];
                         ^
/datasets/git/unpack-trees.c:2606:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, ret;
        ^~~~~~~~~~~
/datasets/git/unpack-trees.c:2606:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, ret;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/unpack-trees.c:2606:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/unpack-trees.c:2606:9: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int i, ret;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/unpack-trees.c:2615:25: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        info.show_all_errors = o->show_all_errors;
                               ^
/datasets/git/unpack-trees.c:2619:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < n; i++)
        ^
/datasets/git/unpack-trees.c:2619:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < n; i++)
                               ^
                                {
/datasets/git/unpack-trees.c:2625:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < n; i++)
        ^
/datasets/git/unpack-trees.c:2625:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < n; i++)
                               ^
                                {
/datasets/git/unpack-trees.c:2631:26: warning: 2 adjacent parameters of 'deleted_entry' of similar type ('const struct cache_entry *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int deleted_entry(const struct cache_entry *ce,
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:2631:52: note: the first parameter in the range is 'ce'
static int deleted_entry(const struct cache_entry *ce,
                                                   ^~
/datasets/git/unpack-trees.c:2632:31: note: the last parameter in the range is 'old'
                         const struct cache_entry *old,
                                                   ^~~
/datasets/git/unpack-trees.c:2631:52: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static int deleted_entry(const struct cache_entry *ce,
                                                   ^
/datasets/git/unpack-trees.c:2633:34: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                         struct unpack_trees_options *o)
                                                      ^
/datasets/git/unpack-trees.c:2637:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (verify_absent(ce, ERROR_WOULD_LOSE_UNTRACKED_REMOVED, o))
                                                                             ^
                                                                              {
/datasets/git/unpack-trees.c:2640:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else if (verify_absent_if_directory(ce, ERROR_WOULD_LOSE_UNTRACKED_REMOVED, o)) {
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:2644:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(old->ce_flags & CE_CONFLICTED) && verify_uptodate(old, o))
              ^
/datasets/git/unpack-trees.c:2644:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(old->ce_flags & CE_CONFLICTED) && verify_uptodate(old, o))
                              ^
/datasets/git/./refs/../cache.h:175:31: note: expanded from macro 'CE_CONFLICTED'
#define CE_CONFLICTED        (1 << 23)
                              ^
/datasets/git/unpack-trees.c:2644:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(old->ce_flags & CE_CONFLICTED) && verify_uptodate(old, o))
                                                                        ^
                                                                         {
/datasets/git/unpack-trees.c:2646:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        add_entry(o, ce, CE_REMOVE, 0);
                         ^
/datasets/git/./refs/../cache.h:168:31: note: expanded from macro 'CE_REMOVE'
#define CE_REMOVE            (1 << 17)
                              ^
/datasets/git/unpack-trees.c:2651:49: warning: parameter name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
static int keep_entry(const struct cache_entry *ce,
                                                ^
/datasets/git/unpack-trees.c:2652:38: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                      struct unpack_trees_options *o)
                                                   ^
/datasets/git/unpack-trees.c:2655:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (ce_stage(ce))
            ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:2655:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ce_stage(ce))
                         ^
                          {
/datasets/git/unpack-trees.c:2676:5: warning: function 'threeway_merge' has cognitive complexity of 87 (threshold 25) [readability-function-cognitive-complexity]
int threeway_merge(const struct cache_entry * const *stages,
    ^
/datasets/git/unpack-trees.c:2693:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 1; i < o->head_idx; i++) {
        ^
/datasets/git/unpack-trees.c:2694:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!stages[i] || stages[i] == o->df_conflict_entry)
                ^
/datasets/git/unpack-trees.c:2694:18: note: +1
                if (!stages[i] || stages[i] == o->df_conflict_entry)
                               ^
/datasets/git/unpack-trees.c:2696:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/unpack-trees.c:2703:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (head == o->df_conflict_entry) {
        ^
/datasets/git/unpack-trees.c:2708:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (remote == o->df_conflict_entry) {
        ^
/datasets/git/unpack-trees.c:2717:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!same(remote, head)) {
        ^
/datasets/git/unpack-trees.c:2718:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 1; i < o->head_idx; i++) {
                ^
/datasets/git/unpack-trees.c:2719:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (same(stages[i], head)) {
                        ^
/datasets/git/unpack-trees.c:2722:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (same(stages[i], remote)) {
                        ^
/datasets/git/unpack-trees.c:2734:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (remote && !df_conflict_head && head_match && !remote_match) {
        ^
/datasets/git/unpack-trees.c:2734:48: note: +1
        if (remote && !df_conflict_head && head_match && !remote_match) {
                                                      ^
/datasets/git/unpack-trees.c:2735:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (index && !same(index, remote) && !same(index, head)) {
                ^
/datasets/git/unpack-trees.c:2735:37: note: +1
                if (index && !same(index, remote) && !same(index, head)) {
                                                  ^
/datasets/git/unpack-trees.c:2736:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (S_ISSPARSEDIR(index->ce_mode))
                        ^
/datasets/git/unpack-trees.c:2738:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/unpack-trees.c:2747:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (index && !same(index, head)) {
        ^
/datasets/git/unpack-trees.c:2747:12: note: +1
        if (index && !same(index, head)) {
                  ^
/datasets/git/unpack-trees.c:2748:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (S_ISSPARSEDIR(index->ce_mode))
                ^
/datasets/git/unpack-trees.c:2750:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/unpack-trees.c:2754:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (head) {
        ^
/datasets/git/unpack-trees.c:2756:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (same(head, remote))
                ^
/datasets/git/unpack-trees.c:2759:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!df_conflict_remote && remote_match && !head_match)
                ^
/datasets/git/unpack-trees.c:2759:43: note: +1
                if (!df_conflict_remote && remote_match && !head_match)
                                                        ^
/datasets/git/unpack-trees.c:2764:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!head && !remote && any_anc_missing)
        ^
/datasets/git/unpack-trees.c:2764:23: note: +1
        if (!head && !remote && any_anc_missing)
                             ^
/datasets/git/unpack-trees.c:2771:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (o->aggressive) {
        ^
/datasets/git/unpack-trees.c:2776:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (index)
                ^
/datasets/git/unpack-trees.c:2778:8: note: +1, nesting level increased to 2
                else if (head)
                     ^
/datasets/git/unpack-trees.c:2780:8: note: +1, nesting level increased to 2
                else if (remote)
                     ^
/datasets/git/unpack-trees.c:2782:3: note: +1, nesting level increased to 2
                else {
                ^
/datasets/git/unpack-trees.c:2783:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (i = 1; i < o->head_idx; i++) {
                        ^
/datasets/git/unpack-trees.c:2784:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (stages[i] && stages[i] != o->df_conflict_entry) {
                                ^
/datasets/git/unpack-trees.c:2784:19: note: +1
                                if (stages[i] && stages[i] != o->df_conflict_entry) {
                                              ^
/datasets/git/unpack-trees.c:2795:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((head_deleted && remote_deleted) ||
                ^
/datasets/git/unpack-trees.c:2796:48: note: +1
                    (head_deleted && remote && remote_match) ||
                                                             ^
/datasets/git/unpack-trees.c:2795:21: note: +1
                if ((head_deleted && remote_deleted) ||
                                  ^
/datasets/git/unpack-trees.c:2796:31: note: +1
                    (head_deleted && remote && remote_match) ||
                                            ^
/datasets/git/unpack-trees.c:2797:31: note: +1
                    (remote_deleted && head && head_match)) {
                                            ^
/datasets/git/unpack-trees.c:2798:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (index)
                        ^
/datasets/git/unpack-trees.c:2800:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ce && !head_deleted) {
                        ^
/datasets/git/unpack-trees.c:2800:11: note: +1
                        if (ce && !head_deleted) {
                               ^
/datasets/git/unpack-trees.c:2801:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (verify_absent(ce, ERROR_WOULD_LOSE_UNTRACKED_REMOVED, o))
                                ^
/datasets/git/unpack-trees.c:2809:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (no_anc_exists && head && remote && same(head, remote))
                ^
/datasets/git/unpack-trees.c:2809:39: note: +1
                if (no_anc_exists && head && remote && same(head, remote))
                                                    ^
/datasets/git/unpack-trees.c:2815:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (index) {
        ^
/datasets/git/unpack-trees.c:2821:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (S_ISSPARSEDIR(index->ce_mode))
                ^
/datasets/git/unpack-trees.c:2829:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (verify_uptodate(index, o))
                ^
/datasets/git/unpack-trees.c:2837:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!head_match || !remote_match) {
        ^
/datasets/git/unpack-trees.c:2837:18: note: +1
        if (!head_match || !remote_match) {
                        ^
/datasets/git/unpack-trees.c:2838:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 1; i < o->head_idx; i++) {
                ^
/datasets/git/unpack-trees.c:2839:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (stages[i] && stages[i] != o->df_conflict_entry) {
                        ^
/datasets/git/unpack-trees.c:2839:18: note: +1
                        if (stages[i] && stages[i] != o->df_conflict_entry) {
                                      ^
/datasets/git/unpack-trees.c:2853:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (head) { count += keep_entry(head, o); }
        ^
/datasets/git/unpack-trees.c:2854:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (remote) { count += keep_entry(remote, o); }
        ^
/datasets/git/unpack-trees.c:2677:35: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                   struct unpack_trees_options *o)
                                                ^
/datasets/git/unpack-trees.c:2679:28: warning: variable 'index' is not initialized [cppcoreguidelines-init-variables]
        const struct cache_entry *index;
                                  ^
                                        = NULL
/datasets/git/unpack-trees.c:2680:28: warning: variable 'head' is not initialized [cppcoreguidelines-init-variables]
        const struct cache_entry *head;
                                  ^
                                       = NULL
/datasets/git/unpack-trees.c:2682:6: warning: variable 'count' is not initialized [cppcoreguidelines-init-variables]
        int count;
            ^
                  = 0
/datasets/git/unpack-trees.c:2691:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/unpack-trees.c:2691:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/unpack-trees.c:2693:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 1; i < o->head_idx; i++) {
        ^
/datasets/git/unpack-trees.c:2694:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!stages[i] || stages[i] == o->df_conflict_entry)
                                                                    ^
                                                                     {
/datasets/git/unpack-trees.c:2696:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/unpack-trees.c:2718:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 1; i < o->head_idx; i++) {
                ^
/datasets/git/unpack-trees.c:2736:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (S_ISSPARSEDIR(index->ce_mode))
                                                          ^
                                                           {
/datasets/git/unpack-trees.c:2738:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                        else
                        ^~~~
                                                        return reject_merge(index, o)
/datasets/git/unpack-trees.c:2738:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/unpack-trees.c:2748:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (S_ISSPARSEDIR(index->ce_mode))
                                                  ^
                                                   {
/datasets/git/unpack-trees.c:2750:3: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                else
                ^~~~
                                        return reject_merge(index, o)
/datasets/git/unpack-trees.c:2750:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/unpack-trees.c:2756:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (same(head, remote))
                                       ^
                                        {
/datasets/git/unpack-trees.c:2759:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!df_conflict_remote && remote_match && !head_match)
                                                                       ^
                                                                        {
/datasets/git/unpack-trees.c:2764:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!head && !remote && any_anc_missing)
                                                ^
                                                 {
/datasets/git/unpack-trees.c:2774:29: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                const struct cache_entry *ce = NULL;
                                          ^
/datasets/git/unpack-trees.c:2776:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (index)
                          ^
                           {
/datasets/git/unpack-trees.c:2778:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (head)
                              ^
                               {
/datasets/git/unpack-trees.c:2780:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (remote)
                                ^
                                 {
/datasets/git/unpack-trees.c:2783:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = 1; i < o->head_idx; i++) {
                        ^
/datasets/git/unpack-trees.c:2798:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (index)
                                  ^
                                   {
/datasets/git/unpack-trees.c:2801:66: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (verify_absent(ce, ERROR_WOULD_LOSE_UNTRACKED_REMOVED, o))
                                                                                             ^
                                                                                              {
/datasets/git/unpack-trees.c:2809:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (no_anc_exists && head && remote && same(head, remote))
                                                                          ^
                                                                           {
/datasets/git/unpack-trees.c:2821:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (S_ISSPARSEDIR(index->ce_mode))
                                                  ^
                                                   {
/datasets/git/unpack-trees.c:2829:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (verify_uptodate(index, o))
                                              ^
                                               {
/datasets/git/unpack-trees.c:2838:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 1; i < o->head_idx; i++) {
                ^
/datasets/git/unpack-trees.c:2867:5: warning: function 'twoway_merge' has cognitive complexity of 36 (threshold 25) [readability-function-cognitive-complexity]
int twoway_merge(const struct cache_entry * const *src,
    ^
/datasets/git/unpack-trees.c:2874:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (o->merge_size != 2)
        ^
/datasets/git/unpack-trees.c:2878:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (oldtree == o->df_conflict_entry)
        ^
/datasets/git/unpack-trees.c:2880:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (newtree == o->df_conflict_entry)
        ^
/datasets/git/unpack-trees.c:2883:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (current) {
        ^
/datasets/git/unpack-trees.c:2884:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (current->ce_flags & CE_CONFLICTED) {
                ^
/datasets/git/unpack-trees.c:2885:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (same(oldtree, newtree) || o->reset) {
                        ^
/datasets/git/unpack-trees.c:2885:31: note: +1
                        if (same(oldtree, newtree) || o->reset) {
                                                   ^
/datasets/git/unpack-trees.c:2886:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!newtree)
                                ^
/datasets/git/unpack-trees.c:2888:5: note: +1, nesting level increased to 4
                                else
                                ^
/datasets/git/unpack-trees.c:2892:10: note: +1, nesting level increased to 2
                } else if ((!oldtree && !newtree) || /* 4 and 5 */
                       ^
/datasets/git/unpack-trees.c:2896:30: note: +1
                          same(oldtree, newtree)) || /* 14 and 15 */
                                                  ^
/datasets/git/unpack-trees.c:2892:24: note: +1
                } else if ((!oldtree && !newtree) || /* 4 and 5 */
                                     ^
/datasets/git/unpack-trees.c:2893:26: note: +1
                         (!oldtree && newtree &&
                                              ^
/datasets/git/unpack-trees.c:2895:25: note: +1
                         (oldtree && newtree &&
                                             ^
/datasets/git/unpack-trees.c:2898:30: note: +1
                          !same(oldtree, newtree) && /* 18 and 19 */
                                                  ^
/datasets/git/unpack-trees.c:2901:10: note: +1, nesting level increased to 2
                } else if (oldtree && !newtree && same(current, oldtree)) {
                       ^
/datasets/git/unpack-trees.c:2901:34: note: +1
                } else if (oldtree && !newtree && same(current, oldtree)) {
                                               ^
/datasets/git/unpack-trees.c:2904:10: note: +1, nesting level increased to 2
                } else if (oldtree && newtree &&
                       ^
/datasets/git/unpack-trees.c:2905:28: note: +1
                         same(current, oldtree) && !same(current, newtree)) {
                                                ^
/datasets/git/unpack-trees.c:2908:10: note: +1, nesting level increased to 2
                } else if (current && !oldtree && newtree &&
                       ^
/datasets/git/unpack-trees.c:2909:74: note: +1
                           S_ISSPARSEDIR(current->ce_mode) != S_ISSPARSEDIR(newtree->ce_mode) &&
                                                                                              ^
/datasets/git/unpack-trees.c:2919:10: note: +1, nesting level increased to 2
                } else if (S_ISSPARSEDIR(current->ce_mode)) {
                       ^
/datasets/git/unpack-trees.c:2927:5: note: +1, nesting level increased to 2
                } else
                  ^
/datasets/git/unpack-trees.c:2930:7: note: +1, nesting level increased to 1
        else if (newtree) {
             ^
/datasets/git/unpack-trees.c:2931:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (oldtree && !o->initial_checkout) {
                ^
/datasets/git/unpack-trees.c:2931:15: note: +1
                if (oldtree && !o->initial_checkout) {
                            ^
/datasets/git/unpack-trees.c:2935:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (same(oldtree, newtree))
                        ^
/datasets/git/unpack-trees.c:2868:33: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                 struct unpack_trees_options *o)
                                              ^
/datasets/git/unpack-trees.c:2874:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (o->merge_size != 2)
                               ^
                                {
/datasets/git/unpack-trees.c:2878:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oldtree == o->df_conflict_entry)
                                            ^
                                             {
/datasets/git/unpack-trees.c:2880:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (newtree == o->df_conflict_entry)
                                            ^
                                             {
/datasets/git/unpack-trees.c:2884:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (current->ce_flags & CE_CONFLICTED) {
                    ^
/datasets/git/unpack-trees.c:2884:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (current->ce_flags & CE_CONFLICTED) {
                                        ^
/datasets/git/./refs/../cache.h:175:31: note: expanded from macro 'CE_CONFLICTED'
#define CE_CONFLICTED        (1 << 23)
                              ^
/datasets/git/unpack-trees.c:2886:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!newtree)
                                             ^
                                              {
/datasets/git/unpack-trees.c:2888:5: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                                else
                                ^~~~
                                                                        return merged_entry(newtree, current, o)
/datasets/git/unpack-trees.c:2888:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                else
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/unpack-trees.c:2892:5: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                } else if ((!oldtree && !newtree) || /* 4 and 5 */
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:2905:56: warning: repeated branch in conditional chain [bugprone-branch-clone]
                         same(current, oldtree) && !same(current, newtree)) {
                                                                            ^
/datasets/git/unpack-trees.c:2908:4: note: end of the original
                } else if (current && !oldtree && newtree &&
                 ^
/datasets/git/unpack-trees.c:2910:31: note: clone 1 starts here
                           ce_stage(current) == 0) {
                                                   ^
/datasets/git/unpack-trees.c:2910:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                           ce_stage(current) == 0) {
                           ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:2927:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/unpack-trees.c:2935:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (same(oldtree, newtree))
                                                   ^
                                                    {
/datasets/git/unpack-trees.c:2951:38: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
               struct unpack_trees_options *o)
                                            ^
/datasets/git/unpack-trees.c:2954:28: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        const struct cache_entry *a = src[1];
                                  ^
/datasets/git/unpack-trees.c:2956:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (o->merge_size != 1)
                               ^
                                {
/datasets/git/unpack-trees.c:2959:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (a && old)
                     ^
                      {
/datasets/git/unpack-trees.c:2964:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!a)
               ^
                {
/datasets/git/unpack-trees.c:2966:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else
        ^~~~
                        return merged_entry(a, NULL, o)
/datasets/git/unpack-trees.c:2966:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/unpack-trees.c:2977:33: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                 struct unpack_trees_options *o)
                                              ^
/datasets/git/unpack-trees.c:2980:28: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        const struct cache_entry *a = src[1];
                                  ^
/datasets/git/unpack-trees.c:2982:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (o->merge_size != 1)
                               ^
                                {
/datasets/git/unpack-trees.c:2986:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!a || a == o->df_conflict_entry)
                                            ^
                                             {
/datasets/git/unpack-trees.c:2991:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (o->reset && o->update && !ce_uptodate(old) && !ce_skip_worktree(old) &&
                                              ^
/datasets/git/./refs/../cache.h:243:26: note: expanded from macro 'ce_uptodate'
#define ce_uptodate(ce) ((ce)->ce_flags & CE_UPTODATE)
                         ^                ~~~~~~~~~~~
/datasets/git/unpack-trees.c:2991:54: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (o->reset && o->update && !ce_uptodate(old) && !ce_skip_worktree(old) &&
                                                                   ^
/datasets/git/./refs/../cache.h:244:31: note: expanded from macro 'ce_skip_worktree'
#define ce_skip_worktree(ce) ((ce)->ce_flags & CE_SKIP_WORKTREE)
                              ^                ~~~~~~~~~~~~~~~~
/datasets/git/unpack-trees.c:2992:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        !(old->ce_flags & CE_FSMONITOR_VALID)) {
                          ^
/datasets/git/unpack-trees.c:2992:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        !(old->ce_flags & CE_FSMONITOR_VALID)) {
                                          ^
/datasets/git/./refs/../cache.h:173:31: note: expanded from macro 'CE_FSMONITOR_VALID'
#define CE_FSMONITOR_VALID   (1 << 21)
                              ^
/datasets/git/unpack-trees.c:2993:16: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
                        struct stat st;
                                    ^
/datasets/git/unpack-trees.c:2995:46: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            ie_match_stat(o->src_index, old, &st, CE_MATCH_IGNORE_VALID|CE_MATCH_IGNORE_SKIP_WORKTREE))
                                                                  ^
/datasets/git/./refs/../cache.h:879:32: note: expanded from macro 'CE_MATCH_IGNORE_VALID'
#define CE_MATCH_IGNORE_VALID           01
                                        ^~
/datasets/git/unpack-trees.c:2995:99: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            ie_match_stat(o->src_index, old, &st, CE_MATCH_IGNORE_VALID|CE_MATCH_IGNORE_SKIP_WORKTREE))
                                                                                                                       ^
                                                                                                                        {
/datasets/git/unpack-trees.c:2996:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                update |= CE_UPDATE;
                                ^~~~~~
/datasets/git/unpack-trees.c:2996:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                update |= CE_UPDATE;
                                          ^
/datasets/git/./refs/../cache.h:167:31: note: expanded from macro 'CE_UPDATE'
#define CE_UPDATE            (1 << 16)
                              ^
/datasets/git/unpack-trees.c:2998:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (o->update && S_ISGITLINK(old->ce_mode) &&
                                 ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/unpack-trees.c:2999:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    should_update_submodules() && !verify_uptodate(old, o))
                                                                           ^
                                                                            {
/datasets/git/unpack-trees.c:3000:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        update |= CE_UPDATE;
                        ^~~~~~
/datasets/git/unpack-trees.c:3000:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        update |= CE_UPDATE;
                                  ^
/datasets/git/./refs/../cache.h:167:31: note: expanded from macro 'CE_UPDATE'
#define CE_UPDATE            (1 << 16)
                              ^
/datasets/git/unpack-trees.c:3014:37: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                                   struct unpack_trees_options *o)
                                                                ^
/datasets/git/unpack-trees.c:3019:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (o->merge_size != 2)
                               ^
                                {
/datasets/git/unpack-trees.c:3022:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (worktree && untracked)
                                  ^
                                   {
/datasets/git/upload-pack.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "commit-graph.h"
/datasets/git/upload-pack.c:32:1: warning: replace macro with enum [modernize-macro-to-enum]
#define THEY_HAVE       (1u << 11)
^~~~~~~~
                  =               ,
/datasets/git/upload-pack.c:32:9: warning: macro 'THEY_HAVE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define THEY_HAVE       (1u << 11)
        ^
/datasets/git/upload-pack.c:33:9: warning: macro 'OUR_REF' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define OUR_REF         (1u << 12)
        ^
/datasets/git/upload-pack.c:34:9: warning: macro 'WANTED' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define WANTED          (1u << 13)
        ^
/datasets/git/upload-pack.c:35:9: warning: macro 'COMMON_KNOWN' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define COMMON_KNOWN    (1u << 14)
        ^
/datasets/git/upload-pack.c:37:1: warning: replace macro with enum [modernize-macro-to-enum]
#define SHALLOW         (1u << 16)
^~~~~~~~
                =                 ,
/datasets/git/upload-pack.c:37:9: warning: macro 'SHALLOW' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define SHALLOW         (1u << 16)
        ^
/datasets/git/upload-pack.c:38:9: warning: macro 'NOT_SHALLOW' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define NOT_SHALLOW     (1u << 17)
        ^
/datasets/git/upload-pack.c:39:9: warning: macro 'CLIENT_SHALLOW' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define CLIENT_SHALLOW  (1u << 18)
        ^
/datasets/git/upload-pack.c:40:9: warning: macro 'HIDDEN_REF' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define HIDDEN_REF      (1u << 19)
        ^
/datasets/git/upload-pack.c:59:8: warning: accessing fields in struct 'upload_pack_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct upload_pack_data {
       ^
/datasets/git/upload-pack.c:59:8: note: use "__attribute__((aligned(128)))" to align struct 'upload_pack_data' to 128 bytes
/datasets/git/upload-pack.c:132:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(data, 0, sizeof(*data));
        ^~~~~~
/datasets/git/upload-pack.c:132:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(data, 0, sizeof(*data));
        ^~~~~~
/datasets/git/upload-pack.c:149:20: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        data->keepalive = 5;
                          ^
/datasets/git/upload-pack.c:175:34: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
static void send_client_data(int fd, const char *data, ssize_t sz,
                                 ^
/datasets/git/upload-pack.c:175:64: warning: parameter name 'sz' is too short, expected at least 3 characters [readability-identifier-length]
static void send_client_data(int fd, const char *data, ssize_t sz,
                                                               ^
/datasets/git/upload-pack.c:182:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fd == 3)
                    ^
                     {
/datasets/git/upload-pack.c:195:8: warning: variable name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
        FILE *fp = cb_data;
              ^
/datasets/git/upload-pack.c:196:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (graft->nr_parent == -1)
                                   ^
                                    {
/datasets/git/upload-pack.c:197:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(fp, "--shallow %s\n", oid_to_hex(&graft->oid));
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/upload-pack.c:197:3: note: cast the expression to void to silence this warning
/datasets/git/upload-pack.c:201:8: warning: accessing fields in struct 'output_state' is inefficient due to poor alignment; currently aligned to 4 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct output_state {
       ^
/datasets/git/upload-pack.c:201:8: note: use "__attribute__((aligned(128)))" to align struct 'output_state' to 128 bytes
/datasets/git/upload-pack.c:214:71: warning: parameter name 'os' is too short, expected at least 3 characters [readability-identifier-length]
static int relay_pack_data(int pack_objects_out, struct output_state *os,
                                                                      ^
/datasets/git/upload-pack.c:215:7: warning: 2 adjacent parameters of 'relay_pack_data' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                           int use_sideband, int write_packfile_line)
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/upload-pack.c:215:11: note: the first parameter in the range is 'use_sideband'
                           int use_sideband, int write_packfile_line)
                               ^~~~~~~~~~~~
/datasets/git/upload-pack.c:215:29: note: the last parameter in the range is 'write_packfile_line'
                           int use_sideband, int write_packfile_line)
                                                 ^~~~~~~~~~~~~~~~~~~
/datasets/git/upload-pack.c:227:10: warning: variable 'readsz' is not initialized [cppcoreguidelines-init-variables]
        ssize_t readsz;
                ^
                       = 0
/datasets/git/upload-pack.c:232:10: warning: narrowing conversion from 'ssize_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                return readsz;
                       ^
/datasets/git/upload-pack.c:234:14: warning: narrowing conversion from 'ssize_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        os->used += readsz;
                    ^
/datasets/git/upload-pack.c:236:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (!os->packfile_started) {
        ^
/datasets/git/upload-pack.c:237:9: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                char *p;
                      ^
                        = NULL
/datasets/git/upload-pack.c:237:9: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/upload-pack.c:241:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (os->packfile_uris_started)
                                                              ^
                                                               {
/datasets/git/upload-pack.c:247:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                if ((p = memchr(os->buffer, '\n', os->used))) {
                     ^
/datasets/git/upload-pack.c:247:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/upload-pack.c:247:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/upload-pack.c:250:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!write_packfile_line)
                                                         ^
                                                          {
/datasets/git/upload-pack.c:257:16: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        os->used -= p - os->buffer + 1;
                                    ^
/datasets/git/upload-pack.c:258:4: warning: Call to function 'memmove' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memmove_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memmove(os->buffer, p + 1, os->used);
                        ^~~~~~~
/datasets/git/upload-pack.c:258:4: note: Call to function 'memmove' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memmove_s' in case of C11
                        memmove(os->buffer, p + 1, os->used);
                        ^~~~~~~
/datasets/git/upload-pack.c:263:11: warning: narrowing conversion from 'ssize_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        return readsz;
                               ^
/datasets/git/upload-pack.c:276:9: warning: narrowing conversion from 'ssize_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return readsz;
               ^
/datasets/git/upload-pack.c:279:13: warning: function 'create_pack_file' has cognitive complexity of 54 (threshold 25) [readability-function-cognitive-complexity]
static void create_pack_file(struct upload_pack_data *pack_data,
            ^
/datasets/git/upload-pack.c:291:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!pack_data->pack_objects_hook)
        ^
/datasets/git/upload-pack.c:293:2: note: +1, nesting level increased to 1
        else {
        ^
/datasets/git/upload-pack.c:299:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (pack_data->shallow_nr) {
        ^
/datasets/git/upload-pack.c:305:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (pack_data->use_thin_pack)
        ^
/datasets/git/upload-pack.c:309:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (pack_data->shallow_nr)
        ^
/datasets/git/upload-pack.c:311:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!pack_data->no_progress)
        ^
/datasets/git/upload-pack.c:313:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (pack_data->use_ofs_delta)
        ^
/datasets/git/upload-pack.c:315:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (pack_data->use_include_tag)
        ^
/datasets/git/upload-pack.c:317:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (pack_data->filter_options.choice) {
        ^
/datasets/git/upload-pack.c:322:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (uri_protocols) {
        ^
/datasets/git/upload-pack.c:323:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < uri_protocols->nr; i++)
                ^
/datasets/git/upload-pack.c:333:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (start_command(&pack_objects))
        ^
/datasets/git/upload-pack.c:338:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (pack_data->shallow_nr)
        ^
/datasets/git/upload-pack.c:341:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < pack_data->want_obj.nr; i++)
        ^
/datasets/git/upload-pack.c:345:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < pack_data->have_obj.nr; i++)
        ^
/datasets/git/upload-pack.c:348:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < pack_data->extra_edge_obj.nr; i++)
        ^
/datasets/git/upload-pack.c:359:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (1) {
        ^
/datasets/git/upload-pack.c:369:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (0 <= pack_objects.out) {
                ^
/datasets/git/upload-pack.c:375:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (0 <= pack_objects.err) {
                ^
/datasets/git/upload-pack.c:382:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!pollsize)
                ^
/datasets/git/upload-pack.c:386:4: note: +2, including nesting penalty of 1, nesting level increased to 2
                        ? -1
                        ^
/datasets/git/upload-pack.c:391:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ret < 0) {
                ^
/datasets/git/upload-pack.c:392:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (errno != EINTR) {
                        ^
/datasets/git/upload-pack.c:398:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (0 <= pe && (pfd[pe].revents & (POLLIN|POLLHUP))) {
                ^
/datasets/git/upload-pack.c:398:15: note: +1
                if (0 <= pe && (pfd[pe].revents & (POLLIN|POLLHUP))) {
                            ^
/datasets/git/upload-pack.c:404:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (0 < sz)
                        ^
/datasets/git/upload-pack.c:407:9: note: +1, nesting level increased to 3
                        else if (sz == 0) {
                             ^
/datasets/git/upload-pack.c:411:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/upload-pack.c:416:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (0 <= pu && (pfd[pu].revents & (POLLIN|POLLHUP))) {
                ^
/datasets/git/upload-pack.c:416:15: note: +1
                if (0 <= pu && (pfd[pu].revents & (POLLIN|POLLHUP))) {
                            ^
/datasets/git/upload-pack.c:422:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (result == 0) {
                        ^
/datasets/git/upload-pack.c:425:11: note: +1, nesting level increased to 3
                        } else if (result < 0) {
                               ^
/datasets/git/upload-pack.c:426:5: note: +1
                                goto fail;
                                ^
/datasets/git/upload-pack.c:440:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!ret && pack_data->use_sideband) {
                ^
/datasets/git/upload-pack.c:440:12: note: +1
                if (!ret && pack_data->use_sideband) {
                         ^
/datasets/git/upload-pack.c:446:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (finish_command(&pack_objects)) {
        ^
/datasets/git/upload-pack.c:448:3: note: +1
                goto fail;
                ^
/datasets/git/upload-pack.c:452:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (output_state->used > 0) {
        ^
/datasets/git/upload-pack.c:458:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (pack_data->use_sideband)
        ^
/datasets/git/upload-pack.c:284:16: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        char progress[128];
                      ^
/datasets/git/upload-pack.c:287:10: warning: variable 'sz' is not initialized [cppcoreguidelines-init-variables]
        ssize_t sz;
                ^
                   = 0
/datasets/git/upload-pack.c:287:10: warning: variable name 'sz' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/upload-pack.c:288:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/upload-pack.c:288:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/upload-pack.c:289:8: warning: variable 'pipe_fd' is not initialized [cppcoreguidelines-init-variables]
        FILE *pipe_fd;
              ^
                      = NULL
/datasets/git/upload-pack.c:291:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!pack_data->pack_objects_hook)
                                          ^
                                           {
/datasets/git/upload-pack.c:305:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pack_data->use_thin_pack)
                                     ^
                                      {
/datasets/git/upload-pack.c:309:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pack_data->shallow_nr)
                                  ^
                                   {
/datasets/git/upload-pack.c:311:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!pack_data->no_progress)
                                    ^
                                     {
/datasets/git/upload-pack.c:313:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pack_data->use_ofs_delta)
                                     ^
                                      {
/datasets/git/upload-pack.c:315:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pack_data->use_include_tag)
                                       ^
                                        {
/datasets/git/upload-pack.c:323:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < uri_protocols->nr; i++)
                ^
/datasets/git/upload-pack.c:323:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < uri_protocols->nr; i++)
                                                       ^
                                                        {
/datasets/git/upload-pack.c:333:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (start_command(&pack_objects))
                                         ^
                                          {
/datasets/git/upload-pack.c:338:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pack_data->shallow_nr)
                                  ^
                                   {
/datasets/git/upload-pack.c:341:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < pack_data->want_obj.nr; i++)
        ^
/datasets/git/upload-pack.c:341:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < pack_data->want_obj.nr; i++)
                                                    ^
                                                     {
/datasets/git/upload-pack.c:342:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(pipe_fd, "%s\n",
                ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/upload-pack.c:342:3: note: cast the expression to void to silence this warning
/datasets/git/upload-pack.c:344:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(pipe_fd, "--not\n");
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/upload-pack.c:344:2: note: cast the expression to void to silence this warning
/datasets/git/upload-pack.c:345:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < pack_data->have_obj.nr; i++)
        ^
/datasets/git/upload-pack.c:345:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < pack_data->have_obj.nr; i++)
                                                    ^
                                                     {
/datasets/git/upload-pack.c:346:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(pipe_fd, "%s\n",
                ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/upload-pack.c:346:3: note: cast the expression to void to silence this warning
/datasets/git/upload-pack.c:348:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < pack_data->extra_edge_obj.nr; i++)
        ^
/datasets/git/upload-pack.c:348:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < pack_data->extra_edge_obj.nr; i++)
                                                          ^
                                                           {
/datasets/git/upload-pack.c:349:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(pipe_fd, "%s\n",
                ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/upload-pack.c:349:3: note: cast the expression to void to silence this warning
/datasets/git/upload-pack.c:351:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(pipe_fd, "\n");
        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/upload-pack.c:351:2: note: cast the expression to void to silence this warning
/datasets/git/upload-pack.c:352:2: warning: the value returned by this function should be used [cert-err33-c]
        fflush(pipe_fd);
        ^~~~~~~~~~~~~~~
/datasets/git/upload-pack.c:352:2: note: cast the expression to void to silence this warning
/datasets/git/upload-pack.c:353:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(pipe_fd);
        ^~~~~~~~~~~~~~~
/datasets/git/upload-pack.c:353:2: note: cast the expression to void to silence this warning
/datasets/git/upload-pack.c:359:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/upload-pack.c:361:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int pe, pu, pollsize, polltimeout;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/upload-pack.c:361:7: warning: variable 'pe' is not initialized [cppcoreguidelines-init-variables]
                int pe, pu, pollsize, polltimeout;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/upload-pack.c:361:7: warning: variable name 'pe' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/upload-pack.c:361:11: warning: variable 'pu' is not initialized [cppcoreguidelines-init-variables]
                int pe, pu, pollsize, polltimeout;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/upload-pack.c:361:11: warning: variable name 'pu' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/upload-pack.c:361:15: warning: variable 'pollsize' is not initialized [cppcoreguidelines-init-variables]
                int pe, pu, pollsize, polltimeout;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/upload-pack.c:361:25: warning: variable 'polltimeout' is not initialized [cppcoreguidelines-init-variables]
                int pe, pu, pollsize, polltimeout;
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/upload-pack.c:362:7: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
                int ret;
                    ^
                        = 0
/datasets/git/upload-pack.c:382:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!pollsize)
                              ^
                               {
/datasets/git/upload-pack.c:387:6: warning: 1000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        : 1000 * pack_data->keepalive;
                          ^
/datasets/git/upload-pack.c:394:5: warning: function is not thread safe [concurrency-mt-unsafe]
                                sleep(1);
                                ^
/datasets/git/upload-pack.c:398:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (0 <= pe && (pfd[pe].revents & (POLLIN|POLLHUP))) {
                                ^~~~~~~~~~~~~~~
/datasets/git/upload-pack.c:404:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (0 < sz)
                                   ^
                                    {
/datasets/git/upload-pack.c:411:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/upload-pack.c:416:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (0 <= pu && (pfd[pu].revents & (POLLIN|POLLHUP))) {
                                ^~~~~~~~~~~~~~~
/datasets/git/upload-pack.c:442:25: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        write_or_die(1, buf, 5);
                                             ^
/datasets/git/upload-pack.c:455:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "flushed.\n");
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/upload-pack.c:455:3: note: cast the expression to void to silence this warning
/datasets/git/upload-pack.c:458:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pack_data->use_sideband)
                                    ^
                                     {
/datasets/git/upload-pack.c:472:17: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
        struct object *o = parse_object(the_repository, oid);
                       ^
/datasets/git/upload-pack.c:474:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!o)
               ^
                {
/datasets/git/upload-pack.c:477:23: warning: variable 'parents' is not initialized [cppcoreguidelines-init-variables]
                struct commit_list *parents;
                                    ^
                                            = NULL
/datasets/git/upload-pack.c:479:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (o->flags & THEY_HAVE)
                               ^
/datasets/git/upload-pack.c:32:20: note: expanded from macro 'THEY_HAVE'
#define THEY_HAVE       (1u << 11)
                         ^     ~~
/datasets/git/upload-pack.c:479:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (o->flags & THEY_HAVE)
                                         ^
                                          {
/datasets/git/upload-pack.c:481:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/upload-pack.c:482:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        o->flags |= THEY_HAVE;
                                    ^
/datasets/git/upload-pack.c:32:20: note: expanded from macro 'THEY_HAVE'
#define THEY_HAVE       (1u << 11)
                         ^     ~~
/datasets/git/upload-pack.c:483:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!data->oldest_have || (commit->date < data->oldest_have))
                                                                             ^
                                                                              {
/datasets/git/upload-pack.c:485:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (parents = commit->parents;
                ^
/datasets/git/upload-pack.c:486:8: warning: backward branch (for loop) is ID-dependent due to variable reference to 'parents' and may cause performance degradation [altera-id-dependent-backward-branch]
                     parents;
                     ^
/datasets/git/upload-pack.c:487:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                     parents = parents->next)
                                             ^
                                              {
/datasets/git/upload-pack.c:488:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        parents->item->object.flags |= THEY_HAVE;
                                                       ^
/datasets/git/upload-pack.c:32:20: note: expanded from macro 'THEY_HAVE'
#define THEY_HAVE       (1u << 11)
                         ^     ~~
/datasets/git/upload-pack.c:500:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_oid_hex(hex, oid))
                                  ^
                                   {
/datasets/git/upload-pack.c:503:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        OBJECT_INFO_QUICK | OBJECT_INFO_SKIP_FETCH_OBJECT))
                                        ^
/datasets/git/./object-store.h:436:27: note: expanded from macro 'OBJECT_INFO_QUICK'
#define OBJECT_INFO_QUICK 8
                          ^
/datasets/git/./object-store.h:336:101: note: expanded from macro 'has_object_file_with_flags'
#define has_object_file_with_flags(oid, flags) repo_has_object_file_with_flags(the_repository, oid, flags)
                                                                                                    ^~~~~
/datasets/git/upload-pack.c:503:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        OBJECT_INFO_QUICK | OBJECT_INFO_SKIP_FETCH_OBJECT))
                                                                                           ^
                                                                                            {
/datasets/git/upload-pack.c:512:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!data->have_obj.nr)
                               ^
                                {
/datasets/git/upload-pack.c:515:55: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return can_all_from_reach_with_flag(&data->want_obj, THEY_HAVE,
                                                             ^
/datasets/git/upload-pack.c:32:20: note: expanded from macro 'THEY_HAVE'
#define THEY_HAVE       (1u << 11)
                         ^     ~~
/datasets/git/upload-pack.c:516:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                            COMMON_KNOWN, data->oldest_have,
                                            ^
/datasets/git/upload-pack.c:35:23: note: expanded from macro 'COMMON_KNOWN'
#define COMMON_KNOWN    (1u << 14)
                         ^     ~~
/datasets/git/upload-pack.c:516:24: warning: narrowing conversion from 'timestamp_t' (aka 'unsigned long') to signed type 'time_t' (aka 'long') is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                            COMMON_KNOWN, data->oldest_have,
                                                          ^
/datasets/git/upload-pack.c:520:12: warning: function 'get_common_commits' has cognitive complexity of 49 (threshold 25) [readability-function-cognitive-complexity]
static int get_common_commits(struct upload_pack_data *data,
           ^
/datasets/git/upload-pack.c:531:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (;;) {
        ^
/datasets/git/upload-pack.c:536:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (packet_reader_read(reader) != PACKET_READ_NORMAL) {
                ^
/datasets/git/upload-pack.c:537:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (data->multi_ack == MULTI_ACK_DETAILED
                        ^
/datasets/git/upload-pack.c:540:8: note: +1
                            && ok_to_give_up(data)) {
                            ^
/datasets/git/upload-pack.c:544:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (data->have_obj.nr == 0 || data->multi_ack)
                        ^
/datasets/git/upload-pack.c:544:31: note: +1
                        if (data->have_obj.nr == 0 || data->multi_ack)
                                                   ^
/datasets/git/upload-pack.c:547:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (data->no_done && sent_ready) {
                        ^
/datasets/git/upload-pack.c:547:22: note: +1
                        if (data->no_done && sent_ready) {
                                          ^
/datasets/git/upload-pack.c:551:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (data->stateless_rpc)
                        ^
/datasets/git/upload-pack.c:557:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (skip_prefix(reader->line, "have ", &arg)) {
                ^
/datasets/git/upload-pack.c:558:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        switch (got_oid(data, arg, &oid)) {
                        ^
/datasets/git/upload-pack.c:561:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (data->multi_ack
                                ^
/datasets/git/upload-pack.c:562:9: note: +1
                                    && ok_to_give_up(data)) {
                                    ^
/datasets/git/upload-pack.c:564:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (data->multi_ack == MULTI_ACK_DETAILED) {
                                        ^
/datasets/git/upload-pack.c:567:8: note: +1, nesting level increased to 5
                                        } else
                                          ^
/datasets/git/upload-pack.c:574:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (data->multi_ack == MULTI_ACK_DETAILED)
                                ^
/datasets/git/upload-pack.c:576:10: note: +1, nesting level increased to 4
                                else if (data->multi_ack)
                                     ^
/datasets/git/upload-pack.c:578:10: note: +1, nesting level increased to 4
                                else if (data->have_obj.nr == 1)
                                     ^
/datasets/git/upload-pack.c:584:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(reader->line, "done")) {
                ^
/datasets/git/upload-pack.c:585:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (data->have_obj.nr > 0) {
                        ^
/datasets/git/upload-pack.c:586:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (data->multi_ack)
                                ^
/datasets/git/upload-pack.c:531:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/upload-pack.c:532:15: warning: variable 'arg' is not initialized [cppcoreguidelines-init-variables]
                const char *arg;
                            ^
                                = NULL
/datasets/git/upload-pack.c:544:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (data->have_obj.nr == 0 || data->multi_ack)
                                                                      ^
                                                                       {
/datasets/git/upload-pack.c:551:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (data->stateless_rpc)
                                                ^
                                                 {
/datasets/git/upload-pack.c:552:5: warning: function is not thread safe [concurrency-mt-unsafe]
                                exit(0);
                                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/upload-pack.c:567:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        } else
                                              ^
                                               {
/datasets/git/upload-pack.c:574:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (data->multi_ack == MULTI_ACK_DETAILED)
                                                                          ^
                                                                           {
/datasets/git/upload-pack.c:576:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                else if (data->multi_ack)
                                                         ^
                                                          {
/datasets/git/upload-pack.c:578:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                else if (data->have_obj.nr == 1)
                                                                ^
                                                                 {
/datasets/git/upload-pack.c:586:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (data->multi_ack)
                                                    ^
                                                     {
/datasets/git/upload-pack.c:597:38: warning: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length]
static int is_our_ref(struct object *o, enum allow_uor allow_uor)
                                     ^
/datasets/git/upload-pack.c:599:25: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int allow_hidden_ref = (allow_uor &
                               ^
/datasets/git/upload-pack.c:599:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int allow_hidden_ref = (allow_uor &
                                ^
/datasets/git/upload-pack.c:600:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                (ALLOW_TIP_SHA1 | ALLOW_REACHABLE_SHA1));
                                 ^~~~~~~~~~~~~~
/datasets/git/upload-pack.c:601:9: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return o->flags & ((allow_hidden_ref ? HIDDEN_REF : 0) | OUR_REF);
               ^
/datasets/git/upload-pack.c:601:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return o->flags & ((allow_hidden_ref ? HIDDEN_REF : 0) | OUR_REF);
                                               ^
/datasets/git/upload-pack.c:40:21: note: expanded from macro 'HIDDEN_REF'
#define HIDDEN_REF      (1u << 19)
                         ^     ~~
/datasets/git/upload-pack.c:601:59: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return o->flags & ((allow_hidden_ref ? HIDDEN_REF : 0) | OUR_REF);
                                                                 ^
/datasets/git/upload-pack.c:33:19: note: expanded from macro 'OUR_REF'
#define OUR_REF         (1u << 12)
                         ^     ~~
/datasets/git/upload-pack.c:607:12: warning: function 'do_reachable_revlist' has cognitive complexity of 26 (threshold 25) [readability-function-cognitive-complexity]
static int do_reachable_revlist(struct child_process *cmd,
           ^
/datasets/git/upload-pack.c:629:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (start_command(cmd))
        ^
/datasets/git/upload-pack.c:634:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = get_max_object_index(); 0 < i; ) {
        ^
/datasets/git/upload-pack.c:636:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!o)
                ^
/datasets/git/upload-pack.c:638:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (reachable && o->type == OBJ_COMMIT)
                ^
/datasets/git/upload-pack.c:638:17: note: +1
                if (reachable && o->type == OBJ_COMMIT)
                              ^
/datasets/git/upload-pack.c:640:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!is_our_ref(o, allow_uor))
                ^
/datasets/git/upload-pack.c:642:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (fprintf(cmd_in, "^%s\n", oid_to_hex(&o->oid)) < 0)
                ^
/datasets/git/upload-pack.c:645:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < src->nr; i++) {
        ^
/datasets/git/upload-pack.c:647:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (is_our_ref(o, allow_uor)) {
                ^
/datasets/git/upload-pack.c:648:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (reachable)
                        ^
/datasets/git/upload-pack.c:652:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (reachable && o->type == OBJ_COMMIT)
                ^
/datasets/git/upload-pack.c:652:17: note: +1
                if (reachable && o->type == OBJ_COMMIT)
                              ^
/datasets/git/upload-pack.c:654:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (fprintf(cmd_in, "%s\n", oid_to_hex(&o->oid)) < 0)
                ^
/datasets/git/upload-pack.c:657:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ferror(cmd_in) || fflush(cmd_in))
        ^
/datasets/git/upload-pack.c:657:21: note: +1
        if (ferror(cmd_in) || fflush(cmd_in))
                           ^
/datasets/git/upload-pack.c:668:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (cmd_in)
        ^
/datasets/git/upload-pack.c:670:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (cmd->out >= 0)
        ^
/datasets/git/upload-pack.c:608:5: warning: 2 adjacent parameters of 'do_reachable_revlist' of similar type ('struct object_array *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                struct object_array *src,
                                ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/upload-pack.c:608:26: note: the first parameter in the range is 'src'
                                struct object_array *src,
                                                     ^~~
/datasets/git/upload-pack.c:609:26: note: the last parameter in the range is 'reachable'
                                struct object_array *reachable,
                                                     ^~~~~~~~~
/datasets/git/upload-pack.c:612:17: warning: variable 'o' is not initialized [cppcoreguidelines-init-variables]
        struct object *o;
                       ^
                         = NULL
/datasets/git/upload-pack.c:612:17: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/upload-pack.c:614:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/upload-pack.c:614:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/upload-pack.c:629:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (start_command(cmd))
                               ^
                                {
/datasets/git/upload-pack.c:634:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = get_max_object_index(); 0 < i; ) {
        ^
/datasets/git/upload-pack.c:634:11: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        for (i = get_max_object_index(); 0 < i; ) {
                 ^
/datasets/git/upload-pack.c:636:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!o)
                       ^
                        {
/datasets/git/upload-pack.c:638:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (reachable && o->type == OBJ_COMMIT)
                                                       ^
                                                        {
/datasets/git/upload-pack.c:639:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        o->flags &= ~TMP_MARK;
                                     ^
/datasets/git/./revision.h:31:19: note: expanded from macro 'TMP_MARK'
#define TMP_MARK        (1u<<4) /* for isolated cases; clean after use */
                         ^   ~
/datasets/git/upload-pack.c:640:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!is_our_ref(o, allow_uor))
                                              ^
                                               {
/datasets/git/upload-pack.c:642:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fprintf(cmd_in, "^%s\n", oid_to_hex(&o->oid)) < 0)
                                                                      ^
                                                                       {
/datasets/git/upload-pack.c:645:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < src->nr; i++) {
        ^
/datasets/git/upload-pack.c:648:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (reachable)
                                      ^
                                       {
/datasets/git/upload-pack.c:652:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (reachable && o->type == OBJ_COMMIT)
                                                       ^
                                                        {
/datasets/git/upload-pack.c:653:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        o->flags |= TMP_MARK;
                                    ^
/datasets/git/./revision.h:31:19: note: expanded from macro 'TMP_MARK'
#define TMP_MARK        (1u<<4) /* for isolated cases; clean after use */
                         ^   ~
/datasets/git/upload-pack.c:654:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fprintf(cmd_in, "%s\n", oid_to_hex(&o->oid)) < 0)
                                                                     ^
                                                                      {
/datasets/git/upload-pack.c:657:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ferror(cmd_in) || fflush(cmd_in))
                                             ^
                                              {
/datasets/git/upload-pack.c:659:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(cmd_in);
        ^~~~~~~~~~~~~~
/datasets/git/upload-pack.c:659:2: note: cast the expression to void to silence this warning
/datasets/git/upload-pack.c:668:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cmd_in)
                   ^
                    {
/datasets/git/upload-pack.c:669:3: warning: the value returned by this function should be used [cert-err33-c]
                fclose(cmd_in);
                ^~~~~~~~~~~~~~
/datasets/git/upload-pack.c:669:3: note: cast the expression to void to silence this warning
/datasets/git/upload-pack.c:670:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cmd->out >= 0)
                          ^
                           {
/datasets/git/upload-pack.c:679:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/upload-pack.c:679:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/upload-pack.c:680:17: warning: variable 'o' is not initialized [cppcoreguidelines-init-variables]
        struct object *o;
                       ^
                         = NULL
/datasets/git/upload-pack.c:680:17: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/upload-pack.c:685:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                 data->allow_uor) < 0)
                                                      ^
                                                       {
/datasets/git/upload-pack.c:688:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((i = read_in_full(cmd.out, namebuf, hexsz + 1)) == hexsz + 1) {
        ^
/datasets/git/upload-pack.c:679:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int i;
        ^
/datasets/git/upload-pack.c:688:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((i = read_in_full(cmd.out, namebuf, hexsz + 1)) == hexsz + 1) {
               ^
/datasets/git/upload-pack.c:688:10: warning: Although the value stored to 'i' is used in the enclosing expression, the value is never actually read from 'i' [clang-analyzer-deadcode.DeadStores]
        while ((i = read_in_full(cmd.out, namebuf, hexsz + 1)) == hexsz + 1) {
                ^   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/upload-pack.c:688:10: note: Although the value stored to 'i' is used in the enclosing expression, the value is never actually read from 'i'
        while ((i = read_in_full(cmd.out, namebuf, hexsz + 1)) == hexsz + 1) {
                ^   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/upload-pack.c:688:14: warning: narrowing conversion from 'ssize_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        while ((i = read_in_full(cmd.out, namebuf, hexsz + 1)) == hexsz + 1) {
                    ^
/datasets/git/upload-pack.c:690:15: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                const char *p;
                            ^
                              = NULL
/datasets/git/upload-pack.c:690:15: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/upload-pack.c:692:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (parse_oid_hex(namebuf, &oid, &p) || *p != '\n')
                                                                   ^
                                                                    {
/datasets/git/upload-pack.c:697:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        o->flags &= ~TMP_MARK;
                                     ^
/datasets/git/./revision.h:31:19: note: expanded from macro 'TMP_MARK'
#define TMP_MARK        (1u<<4) /* for isolated cases; clean after use */
                         ^   ~
/datasets/git/upload-pack.c:700:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = get_max_object_index(); 0 < i; i--) {
        ^
/datasets/git/upload-pack.c:700:11: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        for (i = get_max_object_index(); 0 < i; i--) {
                 ^
/datasets/git/upload-pack.c:700:35: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = get_max_object_index(); 0 < i; i--) {
                                         ^
/datasets/git/upload-pack.c:703:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (o->flags & TMP_MARK)) {
                                ^
/datasets/git/./revision.h:31:19: note: expanded from macro 'TMP_MARK'
#define TMP_MARK        (1u<<4) /* for isolated cases; clean after use */
                         ^   ~
/datasets/git/upload-pack.c:705:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                o->flags &= ~TMP_MARK;
                                             ^
/datasets/git/./revision.h:31:19: note: expanded from macro 'TMP_MARK'
#define TMP_MARK        (1u<<4) /* for isolated cases; clean after use */
                         ^   ~
/datasets/git/upload-pack.c:710:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (finish_command(&cmd))
                                 ^
                                  {
/datasets/git/upload-pack.c:720:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/upload-pack.c:720:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/upload-pack.c:722:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (do_reachable_revlist(&cmd, src, NULL, allow_uor) < 0)
                                                                 ^
                                                                  {
/datasets/git/upload-pack.c:729:6: warning: narrowing conversion from 'ssize_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        i = read_in_full(cmd.out, buf, 1);
            ^
/datasets/git/upload-pack.c:730:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (i)
              ^
               {
/datasets/git/upload-pack.c:740:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (finish_command(&cmd))
                                 ^
                                  {
/datasets/git/upload-pack.c:747:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (cmd.out >= 0)
                         ^
                          {
/datasets/git/upload-pack.c:754:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/upload-pack.c:754:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/upload-pack.c:761:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!data->stateless_rpc && !(data->allow_uor & ALLOW_REACHABLE_SHA1))
                                      ^                 ~~~~~~~~~~~~~~~~~~~~
/datasets/git/upload-pack.c:761:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!data->stateless_rpc && !(data->allow_uor & ALLOW_REACHABLE_SHA1))
                                                                              ^
                                                                               {
/datasets/git/upload-pack.c:763:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!has_unreachable(&data->want_obj, data->allow_uor))
                                                               ^
                                                                {
/datasets/git/upload-pack.c:769:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < data->want_obj.nr; i++) {
        ^
/datasets/git/upload-pack.c:770:18: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                struct object *o = data->want_obj.objects[i].item;
                               ^
/datasets/git/upload-pack.c:782:5: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                         struct commit_list *result)
                         ^
/datasets/git/upload-pack.c:784:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (result) {
        ^
/datasets/git/upload-pack.c:784:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'result' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (result) {
               ^
/datasets/git/upload-pack.c:786:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(object->flags & (CLIENT_SHALLOW|NOT_SHALLOW))) {
                                       ^
/datasets/git/upload-pack.c:39:25: note: expanded from macro 'CLIENT_SHALLOW'
#define CLIENT_SHALLOW  (1u << 18)
                         ^     ~~
/datasets/git/upload-pack.c:786:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(object->flags & (CLIENT_SHALLOW|NOT_SHALLOW))) {
                                                      ^
/datasets/git/upload-pack.c:38:22: note: expanded from macro 'NOT_SHALLOW'
#define NOT_SHALLOW     (1u << 17)
                         ^     ~~
/datasets/git/upload-pack.c:798:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/upload-pack.c:798:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/upload-pack.c:802:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (object->flags & NOT_SHALLOW) {
                                    ^
/datasets/git/upload-pack.c:38:22: note: expanded from macro 'NOT_SHALLOW'
#define NOT_SHALLOW     (1u << 17)
                         ^     ~~
/datasets/git/upload-pack.c:803:4: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                        struct commit_list *parents;
                        ^
/datasets/git/upload-pack.c:803:24: warning: variable 'parents' is not initialized [cppcoreguidelines-init-variables]
                        struct commit_list *parents;
                                            ^
                                                    = NULL
/datasets/git/upload-pack.c:806:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        object->flags &= ~CLIENT_SHALLOW;
                                          ^
/datasets/git/upload-pack.c:39:25: note: expanded from macro 'CLIENT_SHALLOW'
#define CLIENT_SHALLOW  (1u << 18)
                         ^     ~~
/datasets/git/upload-pack.c:818:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (parents) {
                        ^
/datasets/git/upload-pack.c:818:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'parents' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (parents) {
                               ^
/datasets/git/upload-pack.c:835:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/upload-pack.c:835:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/upload-pack.c:837:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < data->shallows.nr; i++) {
                ^
/datasets/git/upload-pack.c:839:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        object->flags |= NOT_SHALLOW;
                                         ^
/datasets/git/upload-pack.c:38:22: note: expanded from macro 'NOT_SHALLOW'
#define NOT_SHALLOW     (1u << 17)
                         ^     ~~
/datasets/git/upload-pack.c:843:23: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
                struct commit_list *result;
                                    ^
                                           = NULL
/datasets/git/upload-pack.c:855:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                             SHALLOW, NOT_SHALLOW);
                                             ^
/datasets/git/upload-pack.c:37:19: note: expanded from macro 'SHALLOW'
#define SHALLOW         (1u << 16)
                         ^     ~~
/datasets/git/upload-pack.c:855:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                             SHALLOW, NOT_SHALLOW);
                                                      ^
/datasets/git/upload-pack.c:38:22: note: expanded from macro 'NOT_SHALLOW'
#define NOT_SHALLOW     (1u << 17)
                         ^     ~~
/datasets/git/upload-pack.c:860:23: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
                struct commit_list *result;
                                    ^
                                           = NULL
/datasets/git/upload-pack.c:863:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                             SHALLOW, NOT_SHALLOW);
                                             ^
/datasets/git/upload-pack.c:37:19: note: expanded from macro 'SHALLOW'
#define SHALLOW         (1u << 16)
                         ^     ~~
/datasets/git/upload-pack.c:863:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                             SHALLOW, NOT_SHALLOW);
                                                      ^
/datasets/git/upload-pack.c:38:22: note: expanded from macro 'NOT_SHALLOW'
#define NOT_SHALLOW     (1u << 17)
                         ^     ~~
/datasets/git/upload-pack.c:872:15: warning: parameter name 'ac' is too short, expected at least 3 characters [readability-identifier-length]
                               int ac,
                                   ^
/datasets/git/upload-pack.c:873:24: warning: parameter name 'av' is too short, expected at least 3 characters [readability-identifier-length]
                               const char **av)
                                            ^
/datasets/git/upload-pack.c:875:22: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *result;
                            ^
                                   = NULL
/datasets/git/upload-pack.c:878:51: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        result = get_shallow_commits_by_rev_list(ac, av, SHALLOW, NOT_SHALLOW);
                                                         ^
/datasets/git/upload-pack.c:37:19: note: expanded from macro 'SHALLOW'
#define SHALLOW         (1u << 16)
                         ^     ~~
/datasets/git/upload-pack.c:878:60: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        result = get_shallow_commits_by_rev_list(ac, av, SHALLOW, NOT_SHALLOW);
                                                                  ^
/datasets/git/upload-pack.c:38:22: note: expanded from macro 'NOT_SHALLOW'
#define NOT_SHALLOW     (1u << 17)
                         ^     ~~
/datasets/git/upload-pack.c:889:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (data->depth > 0 && data->deepen_rev_list)
                                                     ^
                                                      {
/datasets/git/upload-pack.c:895:17: warning: variable name 'av' is too short, expected at least 3 characters [readability-identifier-length]
                struct strvec av = STRVEC_INIT;
                              ^
/datasets/git/upload-pack.c:896:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/upload-pack.c:896:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/upload-pack.c:899:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (data->deepen_since)
                                       ^
                                        {
/datasets/git/upload-pack.c:903:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = 0; i < data->deepen_not.nr; i++) {
                        ^
/datasets/git/upload-pack.c:904:30: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
                                struct string_list_item *s = data->deepen_not.items + i;
                                                         ^
/datasets/git/upload-pack.c:909:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < data->want_obj.nr; i++) {
                ^
/datasets/git/upload-pack.c:910:19: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                        struct object *o = data->want_obj.objects[i].item;
                                       ^
/datasets/git/upload-pack.c:913:28: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                deepen_by_rev_list(data, av.nr, av.v);
                                         ^
/datasets/git/upload-pack.c:918:8: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                        int i;
                            ^
                              = 0
/datasets/git/upload-pack.c:918:8: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/upload-pack.c:919:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = 0; i < data->shallows.nr; i++)
                        ^
/datasets/git/upload-pack.c:919:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (i = 0; i < data->shallows.nr; i++)
                                                               ^
                                                                {
/datasets/git/upload-pack.c:925:22: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        data->shallow_nr += data->shallows.nr;
                            ^
/datasets/git/upload-pack.c:931:14: warning: variable 'arg' is not initialized [cppcoreguidelines-init-variables]
        const char *arg;
                    ^
                        = NULL
/datasets/git/upload-pack.c:934:18: warning: variable 'object' is not initialized [cppcoreguidelines-init-variables]
                struct object *object;
                               ^
                                      = NULL
/datasets/git/upload-pack.c:935:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (get_oid_hex(arg, &oid))
                                           ^
                                            {
/datasets/git/upload-pack.c:938:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!object)
                            ^
                             {
/datasets/git/upload-pack.c:940:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (object->type != OBJ_COMMIT)
                                               ^
                                                {
/datasets/git/upload-pack.c:942:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(object->flags & CLIENT_SHALLOW)) {
                                      ^
/datasets/git/upload-pack.c:39:25: note: expanded from macro 'CLIENT_SHALLOW'
#define CLIENT_SHALLOW  (1u << 18)
                         ^     ~~
/datasets/git/upload-pack.c:943:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        object->flags |= CLIENT_SHALLOW;
                                         ^
/datasets/git/upload-pack.c:39:25: note: expanded from macro 'CLIENT_SHALLOW'
#define CLIENT_SHALLOW  (1u << 18)
                         ^     ~~
/datasets/git/upload-pack.c:954:14: warning: variable 'arg' is not initialized [cppcoreguidelines-init-variables]
        const char *arg;
                    ^
                        = NULL
/datasets/git/upload-pack.c:958:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!end || *end || *depth <= 0)
                                                ^
                                                 {
/datasets/git/upload-pack.c:968:14: warning: variable 'arg' is not initialized [cppcoreguidelines-init-variables]
        const char *arg;
                    ^
                        = NULL
/datasets/git/upload-pack.c:974:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    *deepen_since == -1)
                                        ^
                                         {
/datasets/git/upload-pack.c:984:14: warning: variable 'arg' is not initialized [cppcoreguidelines-init-variables]
        const char *arg;
                    ^
                        = NULL
/datasets/git/upload-pack.c:988:39: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                if (expand_ref(the_repository, arg, strlen(arg), &oid, &ref) != 1)
                                                    ^
/datasets/git/upload-pack.c:988:69: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (expand_ref(the_repository, arg, strlen(arg), &oid, &ref) != 1)
                                                                                  ^
                                                                                   {
/datasets/git/upload-pack.c:1003:10: warning: variable name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
        va_list ap;
                ^
/datasets/git/upload-pack.c:1019:6: warning: variable 'allowed' is not initialized [cppcoreguidelines-init-variables]
        int allowed;
            ^
                    = 0
/datasets/git/upload-pack.c:1021:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (item)
                 ^
                  {
/datasets/git/upload-pack.c:1022:13: warning: narrowing conversion from 'intptr_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                allowed = (intptr_t)item->util;
                          ^
/datasets/git/upload-pack.c:1023:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/upload-pack.c:1026:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!allowed)
                     ^
                      {
/datasets/git/upload-pack.c:1030:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            opts->tree_exclude_depth > data->tree_filter_max_depth)
                                                                   ^
                                                                    {
/datasets/git/upload-pack.c:1037:13: warning: function 'check_filter_recurse' is within a recursive call chain [misc-no-recursion]
static void check_filter_recurse(struct upload_pack_data *data,
            ^
/datasets/git/upload-pack.c:1037:13: note: example recursive call chain, starting from function 'check_filter_recurse'
/datasets/git/upload-pack.c:1047:3: note: Frame #1: function 'check_filter_recurse' calls function 'check_filter_recurse' here:
                check_filter_recurse(data, &opts->sub[i]);
                ^
/datasets/git/upload-pack.c:1047:3: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/upload-pack.c:1040:9: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        size_t i;
               ^
                 = 0
/datasets/git/upload-pack.c:1040:9: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/upload-pack.c:1043:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (opts->choice != LOFC_COMBINE)
                                         ^
                                          {
/datasets/git/upload-pack.c:1046:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < opts->sub_nr; i++)
        ^
/datasets/git/upload-pack.c:1046:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < opts->sub_nr; i++)
                                          ^
                                           {
/datasets/git/upload-pack.c:1055:13: warning: function 'receive_needs' has cognitive complexity of 56 (threshold 25) [readability-function-cognitive-complexity]
static void receive_needs(struct upload_pack_data *data,
            ^
/datasets/git/upload-pack.c:1061:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (;;) {
        ^
/datasets/git/upload-pack.c:1069:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (packet_reader_read(reader) != PACKET_READ_NORMAL)
                ^
/datasets/git/upload-pack.c:1072:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (process_shallow(reader->line, &data->shallows))
                ^
/datasets/git/upload-pack.c:1074:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (process_deepen(reader->line, &data->depth))
                ^
/datasets/git/upload-pack.c:1076:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (process_deepen_since(reader->line, &data->deepen_since, &data->deepen_rev_list))
                ^
/datasets/git/upload-pack.c:1078:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (process_deepen_not(reader->line, &data->deepen_not, &data->deepen_rev_list))
                ^
/datasets/git/upload-pack.c:1081:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (skip_prefix(reader->line, "filter ", &arg)) {
                ^
/datasets/git/upload-pack.c:1082:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!data->filter_capability_requested)
                        ^
/datasets/git/upload-pack.c:1090:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!skip_prefix(reader->line, "want ", &arg) ||
                ^
/datasets/git/upload-pack.c:1090:49: note: +1
                if (!skip_prefix(reader->line, "want ", &arg) ||
                                                              ^
/datasets/git/upload-pack.c:1095:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (parse_feature_request(features, "deepen-relative"))
                ^
/datasets/git/upload-pack.c:1097:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (parse_feature_request(features, "multi_ack_detailed"))
                ^
/datasets/git/upload-pack.c:1099:8: note: +1, nesting level increased to 2
                else if (parse_feature_request(features, "multi_ack"))
                     ^
/datasets/git/upload-pack.c:1101:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (parse_feature_request(features, "no-done"))
                ^
/datasets/git/upload-pack.c:1103:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (parse_feature_request(features, "thin-pack"))
                ^
/datasets/git/upload-pack.c:1105:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (parse_feature_request(features, "ofs-delta"))
                ^
/datasets/git/upload-pack.c:1107:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (parse_feature_request(features, "side-band-64k"))
                ^
/datasets/git/upload-pack.c:1109:8: note: +1, nesting level increased to 2
                else if (parse_feature_request(features, "side-band"))
                     ^
/datasets/git/upload-pack.c:1111:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (parse_feature_request(features, "no-progress"))
                ^
/datasets/git/upload-pack.c:1113:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (parse_feature_request(features, "include-tag"))
                ^
/datasets/git/upload-pack.c:1115:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (data->allow_filter &&
                ^
/datasets/git/upload-pack.c:1115:26: note: +1
                if (data->allow_filter &&
                                       ^
/datasets/git/upload-pack.c:1120:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (arg) {
                ^
/datasets/git/upload-pack.c:1127:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!o) {
                ^
/datasets/git/upload-pack.c:1134:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!(o->flags & WANTED)) {
                ^
/datasets/git/upload-pack.c:1136:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!((data->allow_uor & ALLOW_ANY_SHA1) == ALLOW_ANY_SHA1
                        ^
/datasets/git/upload-pack.c:1137:10: note: +1
                              || is_our_ref(o, data->allow_uor)))
                              ^
/datasets/git/upload-pack.c:1150:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (has_non_tip)
        ^
/datasets/git/upload-pack.c:1153:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!data->use_sideband && data->daemon_mode)
        ^
/datasets/git/upload-pack.c:1153:26: note: +1
        if (!data->use_sideband && data->daemon_mode)
                                ^
/datasets/git/upload-pack.c:1156:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (data->depth == 0 && !data->deepen_rev_list && data->shallows.nr == 0)
        ^
/datasets/git/upload-pack.c:1156:49: note: +1
        if (data->depth == 0 && !data->deepen_rev_list && data->shallows.nr == 0)
                                                       ^
/datasets/git/upload-pack.c:1159:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (send_shallow_list(data))
        ^
/datasets/git/upload-pack.c:1061:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/upload-pack.c:1062:18: warning: variable 'o' is not initialized [cppcoreguidelines-init-variables]
                struct object *o;
                               ^
                                 = NULL
/datasets/git/upload-pack.c:1062:18: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/upload-pack.c:1063:15: warning: variable 'features' is not initialized [cppcoreguidelines-init-variables]
                const char *features;
                            ^
                                     = NULL
/datasets/git/upload-pack.c:1065:15: warning: variable 'arg' is not initialized [cppcoreguidelines-init-variables]
                const char *arg;
                            ^
                                = NULL
/datasets/git/upload-pack.c:1066:7: warning: variable 'feature_len' is not initialized [cppcoreguidelines-init-variables]
                int feature_len;
                    ^
                                = 0
/datasets/git/upload-pack.c:1069:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (packet_reader_read(reader) != PACKET_READ_NORMAL)
                                                                     ^
                                                                      {
/datasets/git/upload-pack.c:1072:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (process_shallow(reader->line, &data->shallows))
                                                                   ^
                                                                    {
/datasets/git/upload-pack.c:1074:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (process_deepen(reader->line, &data->depth))
                                                               ^
                                                                {
/datasets/git/upload-pack.c:1076:87: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (process_deepen_since(reader->line, &data->deepen_since, &data->deepen_rev_list))
                                                                                                    ^
                                                                                                     {
/datasets/git/upload-pack.c:1078:83: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (process_deepen_not(reader->line, &data->deepen_not, &data->deepen_rev_list))
                                                                                                ^
                                                                                                 {
/datasets/git/upload-pack.c:1082:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!data->filter_capability_requested)
                                                               ^
                                                                {
/datasets/git/upload-pack.c:1091:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    parse_oid_hex(arg, &oid_buf, &features))
                                                            ^
                                                             {
/datasets/git/upload-pack.c:1095:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (parse_feature_request(features, "deepen-relative"))
                                                                       ^
                                                                        {
/datasets/git/upload-pack.c:1097:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (parse_feature_request(features, "multi_ack_detailed"))
                                                                          ^
                                                                           {
/datasets/git/upload-pack.c:1099:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (parse_feature_request(features, "multi_ack"))
                                                                      ^
                                                                       {
/datasets/git/upload-pack.c:1101:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (parse_feature_request(features, "no-done"))
                                                               ^
                                                                {
/datasets/git/upload-pack.c:1103:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (parse_feature_request(features, "thin-pack"))
                                                                 ^
                                                                  {
/datasets/git/upload-pack.c:1105:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (parse_feature_request(features, "ofs-delta"))
                                                                 ^
                                                                  {
/datasets/git/upload-pack.c:1107:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (parse_feature_request(features, "side-band-64k"))
                                                                     ^
                                                                      {
/datasets/git/upload-pack.c:1109:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (parse_feature_request(features, "side-band"))
                                                                      ^
                                                                       {
/datasets/git/upload-pack.c:1111:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (parse_feature_request(features, "no-progress"))
                                                                   ^
                                                                    {
/datasets/git/upload-pack.c:1113:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (parse_feature_request(features, "include-tag"))
                                                                   ^
                                                                    {
/datasets/git/upload-pack.c:1116:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    parse_feature_request(features, "filter"))
                                                              ^
                                                               {
/datasets/git/upload-pack.c:1134:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(o->flags & WANTED)) {
                                 ^
/datasets/git/upload-pack.c:34:18: note: expanded from macro 'WANTED'
#define WANTED          (1u << 13)
                         ^     ~~
/datasets/git/upload-pack.c:1135:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        o->flags |= WANTED;
                                    ^
/datasets/git/upload-pack.c:34:18: note: expanded from macro 'WANTED'
#define WANTED          (1u << 13)
                         ^     ~~
/datasets/git/upload-pack.c:1136:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!((data->allow_uor & ALLOW_ANY_SHA1) == ALLOW_ANY_SHA1
                               ^                 ~~~~~~~~~~~~~~
/datasets/git/upload-pack.c:1137:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                              || is_our_ref(o, data->allow_uor)))
                                                                 ^
                                                                  {
/datasets/git/upload-pack.c:1150:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (has_non_tip)
                        ^
                         {
/datasets/git/upload-pack.c:1153:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!data->use_sideband && data->daemon_mode)
                                                     ^
                                                      {
/datasets/git/upload-pack.c:1156:75: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (data->depth == 0 && !data->deepen_rev_list && data->shallows.nr == 0)
                                                                                 ^
                                                                                  {
/datasets/git/upload-pack.c:1159:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (send_shallow_list(data))
                                    ^
                                     {
/datasets/git/upload-pack.c:1167:17: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
        struct object *o = lookup_unknown_object(the_repository, oid);
                       ^
/datasets/git/upload-pack.c:1170:15: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                o->flags |= HIDDEN_REF;
                            ^
/datasets/git/upload-pack.c:40:21: note: expanded from macro 'HIDDEN_REF'
#define HIDDEN_REF      (1u << 19)
                         ^     ~~
/datasets/git/upload-pack.c:1173:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        o->flags |= OUR_REF;
                    ^
/datasets/git/upload-pack.c:33:19: note: expanded from macro 'OUR_REF'
#define OUR_REF         (1u << 12)
                         ^     ~~
/datasets/git/upload-pack.c:1189:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/upload-pack.c:1191:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!symref->nr)
                        ^
                         {
/datasets/git/upload-pack.c:1193:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(item, symref)
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/upload-pack.c:1193:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(item, symref)
                                  ^
/datasets/git/upload-pack.c:1197:76: warning: parameter name 'd' is too short, expected at least 3 characters [readability-identifier-length]
static void format_session_id(struct strbuf *buf, struct upload_pack_data *d) {
                                                                           ^
/datasets/git/upload-pack.c:1198:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (d->advertise_sid)
                             ^
                              {
/datasets/git/upload-pack.c:1212:6: warning: 1st argument 'refname_nons' (passed to 'refname') looks like it might be swapped with the 2nd, 'refname' (passed to 'refname_full') [readability-suspicious-call-argument]
        if (mark_our_ref(refname_nons, refname, oid, &data->hidden_refs))
            ^            ~~~~~~~~~~~~  ~~~~~~~
/datasets/git/upload-pack.c:1164:12: note: in the call to 'mark_our_ref', declared here
static int mark_our_ref(const char *refname, const char *refname_full,
           ^                        ~~~~~~~              ~~~~~~~~~~~~
/datasets/git/upload-pack.c:1212:67: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mark_our_ref(refname_nons, refname, oid, &data->hidden_refs))
                                                                         ^
                                                                          {
/datasets/git/upload-pack.c:1224:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                             (data->allow_uor & ALLOW_TIP_SHA1) ?
                              ^                 ~~~~~~~~~~~~~~
/datasets/git/upload-pack.c:1226:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                             (data->allow_uor & ALLOW_REACHABLE_SHA1) ?
                              ^                 ~~~~~~~~~~~~~~~~~~~~
/datasets/git/upload-pack.c:1240:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!peel_iterated_oid(oid, &peeled))
                                             ^
                                              {
/datasets/git/upload-pack.c:1249:14: warning: variable 'symref_target' is not initialized [cppcoreguidelines-init-variables]
        const char *symref_target;
                    ^
                                  = NULL
/datasets/git/upload-pack.c:1250:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/upload-pack.c:1252:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((flag & REF_ISSYMREF) == 0)
             ^~~~
/datasets/git/upload-pack.c:1252:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((flag & REF_ISSYMREF) == 0)
                                       ^
                                        {
/datasets/git/upload-pack.c:1255:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!symref_target || (flag & REF_ISSYMREF) == 0)
                               ^~~~
/datasets/git/upload-pack.c:1255:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!symref_target || (flag & REF_ISSYMREF) == 0)
                                                         ^
                                                          {
/datasets/git/upload-pack.c:1266:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *sub, *key;
        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/upload-pack.c:1266:14: warning: variable 'sub' is not initialized [cppcoreguidelines-init-variables]
        const char *sub, *key;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/upload-pack.c:1266:20: warning: variable 'key' is not initialized [cppcoreguidelines-init-variables]
        const char *sub, *key;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/upload-pack.c:1267:9: warning: variable 'sub_len' is not initialized [cppcoreguidelines-init-variables]
        size_t sub_len;
               ^
                       = 0
/datasets/git/upload-pack.c:1269:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_config_key(var, "uploadpackfilter", &sub, &sub_len, &key))
                                                                            ^
                                                                             {
/datasets/git/upload-pack.c:1273:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(key, "allow"))
                                          ^
                                           {
/datasets/git/upload-pack.c:1280:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(key, "allow"))
                                  ^
                                   {
/datasets/git/upload-pack.c:1282:4: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
                        (void *)(intptr_t)git_config_bool(var, value);
                        ^
/datasets/git/upload-pack.c:1289:4: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
                        (void *)(intptr_t)1;
                        ^
/datasets/git/upload-pack.c:1302:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (git_config_bool(var, value))
                                                ^
                                                 {
/datasets/git/upload-pack.c:1303:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        data->allow_uor |= ALLOW_TIP_SHA1;
                        ^                  ~~~~~~~~~~~~~~
/datasets/git/upload-pack.c:1304:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/upload-pack.c:1305:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        data->allow_uor &= ~ALLOW_TIP_SHA1;
                        ^                  ~~~~~~~~~~~~~~~
/datasets/git/upload-pack.c:1305:23: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                        data->allow_uor &= ~ALLOW_TIP_SHA1;
                                           ^~~~~~~~~~~~~~~
/datasets/git/upload-pack.c:1307:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (git_config_bool(var, value))
                                                ^
                                                 {
/datasets/git/upload-pack.c:1308:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        data->allow_uor |= ALLOW_REACHABLE_SHA1;
                        ^                  ~~~~~~~~~~~~~~~~~~~~
/datasets/git/upload-pack.c:1309:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/upload-pack.c:1310:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        data->allow_uor &= ~ALLOW_REACHABLE_SHA1;
                        ^                  ~~~~~~~~~~~~~~~~~~~~~
/datasets/git/upload-pack.c:1310:23: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                        data->allow_uor &= ~ALLOW_REACHABLE_SHA1;
                                           ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/upload-pack.c:1312:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (git_config_bool(var, value))
                                                ^
                                                 {
/datasets/git/upload-pack.c:1313:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        data->allow_uor |= ALLOW_ANY_SHA1;
                        ^                  ~~~~~~~~~~~~~~
/datasets/git/upload-pack.c:1314:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/upload-pack.c:1315:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        data->allow_uor &= ~ALLOW_ANY_SHA1;
                        ^                  ~~~~~~~~~~~~~~~
/datasets/git/upload-pack.c:1315:23: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                        data->allow_uor &= ~ALLOW_ANY_SHA1;
                                           ^~~~~~~~~~~~~~~
/datasets/git/upload-pack.c:1318:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!data->keepalive)
                                     ^
                                      {
/datasets/git/upload-pack.c:1332:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_object_filter_config(var, value, data) < 0)
                                                             ^
                                                              {
/datasets/git/upload-pack.c:1342:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp("uploadpack.packobjectshook", var))
                                                       ^
                                                        {
/datasets/git/upload-pack.c:1353:18: warning: 3 adjacent parameters of 'upload_pack' of similar type ('const int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
void upload_pack(const int advertise_refs, const int stateless_rpc,
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/upload-pack.c:1353:28: note: the first parameter in the range is 'advertise_refs'
void upload_pack(const int advertise_refs, const int stateless_rpc,
                           ^~~~~~~~~~~~~~
/datasets/git/upload-pack.c:1354:14: note: the last parameter in the range is 'timeout'
                 const int timeout)
                           ^~~~~~~
/datasets/git/upload-pack.c:1364:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (data.timeout)
                         ^
                          {
/datasets/git/upload-pack.c:1371:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (advertise_refs)
                                   ^
                                    {
/datasets/git/upload-pack.c:1389:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                   PACKET_READ_CHOMP_NEWLINE |
                                   ^
/datasets/git/./pkt-line.h:85:43: note: expanded from macro 'PACKET_READ_CHOMP_NEWLINE'
#define PACKET_READ_CHOMP_NEWLINE        (1u<<1)
                                          ^   ~
/datasets/git/upload-pack.c:1390:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                   PACKET_READ_DIE_ON_ERR_PACKET);
                                   ^
/datasets/git/./pkt-line.h:86:43: note: expanded from macro 'PACKET_READ_DIE_ON_ERR_PACKET'
#define PACKET_READ_DIE_ON_ERR_PACKET    (1u<<2)
                                          ^   ~
/datasets/git/upload-pack.c:1399:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (data.stateless_rpc)
                                       ^
                                        {
/datasets/git/upload-pack.c:1400:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        reader.options |= PACKET_READ_GENTLE_ON_EOF;
                        ^~~~~~~~~~~~~~
/datasets/git/upload-pack.c:1400:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        reader.options |= PACKET_READ_GENTLE_ON_EOF;
                                          ^
/datasets/git/./pkt-line.h:84:43: note: expanded from macro 'PACKET_READ_GENTLE_ON_EOF'
#define PACKET_READ_GENTLE_ON_EOF        (1u<<0)
                                          ^   ~
/datasets/git/upload-pack.c:1404:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        reader.options &= ~PACKET_READ_GENTLE_ON_EOF;
                        ^~~~~~~~~~~~~~
/datasets/git/upload-pack.c:1404:22: warning: narrowing conversion from constant value 4294967294 (0xFFFFFFFE) of type 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        reader.options &= ~PACKET_READ_GENTLE_ON_EOF;
                                          ^
/datasets/git/upload-pack.c:1404:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        reader.options &= ~PACKET_READ_GENTLE_ON_EOF;
                                           ^
/datasets/git/./pkt-line.h:84:43: note: expanded from macro 'PACKET_READ_GENTLE_ON_EOF'
#define PACKET_READ_GENTLE_ON_EOF        (1u<<0)
                                          ^   ~
/datasets/git/upload-pack.c:1416:14: warning: variable 'arg' is not initialized [cppcoreguidelines-init-variables]
        const char *arg;
                    ^
                        = NULL
/datasets/git/upload-pack.c:1419:18: warning: variable 'o' is not initialized [cppcoreguidelines-init-variables]
                struct object *o;
                               ^
                                 = NULL
/datasets/git/upload-pack.c:1419:18: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/upload-pack.c:1421:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (get_oid_hex(arg, &oid))
                                           ^
                                            {
/datasets/git/upload-pack.c:1436:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(o->flags & WANTED)) {
                                 ^
/datasets/git/upload-pack.c:34:18: note: expanded from macro 'WANTED'
#define WANTED          (1u << 13)
                         ^     ~~
/datasets/git/upload-pack.c:1437:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        o->flags |= WANTED;
                                    ^
/datasets/git/upload-pack.c:34:18: note: expanded from macro 'WANTED'
#define WANTED          (1u << 13)
                         ^     ~~
/datasets/git/upload-pack.c:1448:6: warning: 2 adjacent parameters of 'parse_want_ref' of similar type ('struct string_list *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                          struct string_list *wanted_refs,
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/upload-pack.c:1448:26: note: the first parameter in the range is 'wanted_refs'
                          struct string_list *wanted_refs,
                                              ^~~~~~~~~~~
/datasets/git/upload-pack.c:1449:26: note: the last parameter in the range is 'hidden_refs'
                          struct string_list *hidden_refs,
                                              ^~~~~~~~~~~
/datasets/git/upload-pack.c:1452:14: warning: variable 'refname_nons' is not initialized [cppcoreguidelines-init-variables]
        const char *refname_nons;
                    ^
                                 = NULL
/datasets/git/upload-pack.c:1455:28: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
                struct string_list_item *item;
                                         ^
                                              = NULL
/datasets/git/upload-pack.c:1456:18: warning: variable name 'o' is too short, expected at least 3 characters [readability-identifier-length]
                struct object *o = NULL;
                               ^
/datasets/git/upload-pack.c:1472:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (commit)
                                   ^
                                    {
/datasets/git/upload-pack.c:1476:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!o)
                       ^
                        {
/datasets/git/upload-pack.c:1479:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(o->flags & WANTED)) {
                                 ^
/datasets/git/upload-pack.c:34:18: note: expanded from macro 'WANTED'
#define WANTED          (1u << 13)
                         ^     ~~
/datasets/git/upload-pack.c:1480:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        o->flags |= WANTED;
                                    ^
/datasets/git/upload-pack.c:34:18: note: expanded from macro 'WANTED'
#define WANTED          (1u << 13)
                         ^     ~~
/datasets/git/upload-pack.c:1492:14: warning: variable 'arg' is not initialized [cppcoreguidelines-init-variables]
        const char *arg;
                    ^
                        = NULL
/datasets/git/upload-pack.c:1496:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (get_oid_hex(arg, &oid))
                                           ^
                                            {
/datasets/git/upload-pack.c:1505:13: warning: function 'process_args' has cognitive complexity of 42 (threshold 25) [readability-function-cognitive-complexity]
static void process_args(struct packet_reader *request,
            ^
/datasets/git/upload-pack.c:1508:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (packet_reader_read(request) == PACKET_READ_NORMAL) {
        ^
/datasets/git/upload-pack.c:1513:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (parse_want(&data->writer, arg, &data->want_obj))
                ^
/datasets/git/upload-pack.c:1515:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (data->allow_ref_in_want &&
                ^
/datasets/git/upload-pack.c:1515:31: note: +1
                if (data->allow_ref_in_want &&
                                            ^
/datasets/git/upload-pack.c:1520:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (parse_have(arg, &data->haves))
                ^
/datasets/git/upload-pack.c:1524:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(arg, "thin-pack")) {
                ^
/datasets/git/upload-pack.c:1528:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(arg, "ofs-delta")) {
                ^
/datasets/git/upload-pack.c:1532:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(arg, "no-progress")) {
                ^
/datasets/git/upload-pack.c:1536:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(arg, "include-tag")) {
                ^
/datasets/git/upload-pack.c:1540:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(arg, "done")) {
                ^
/datasets/git/upload-pack.c:1544:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(arg, "wait-for-done")) {
                ^
/datasets/git/upload-pack.c:1550:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (process_shallow(arg, &data->shallows))
                ^
/datasets/git/upload-pack.c:1552:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (process_deepen(arg, &data->depth))
                ^
/datasets/git/upload-pack.c:1554:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (process_deepen_since(arg, &data->deepen_since,
                ^
/datasets/git/upload-pack.c:1557:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (process_deepen_not(arg, &data->deepen_not,
                ^
/datasets/git/upload-pack.c:1560:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(arg, "deepen-relative")) {
                ^
/datasets/git/upload-pack.c:1565:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (data->allow_filter && skip_prefix(arg, "filter ", &p)) {
                ^
/datasets/git/upload-pack.c:1565:26: note: +1
                if (data->allow_filter && skip_prefix(arg, "filter ", &p)) {
                                       ^
/datasets/git/upload-pack.c:1572:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((git_env_bool("GIT_TEST_SIDEBAND_ALL", 0) ||
                ^
/datasets/git/upload-pack.c:1573:34: note: +1
                     data->allow_sideband_all) &&
                                               ^
/datasets/git/upload-pack.c:1572:49: note: +1
                if ((git_env_bool("GIT_TEST_SIDEBAND_ALL", 0) ||
                                                              ^
/datasets/git/upload-pack.c:1579:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (skip_prefix(arg, "packfile-uris ", &p)) {
                ^
/datasets/git/upload-pack.c:1588:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (data->uri_protocols.nr && !data->writer.use_sideband)
        ^
/datasets/git/upload-pack.c:1588:29: note: +1
        if (data->uri_protocols.nr && !data->writer.use_sideband)
                                   ^
/datasets/git/upload-pack.c:1591:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (request->status != PACKET_READ_FLUSH)
        ^
/datasets/git/upload-pack.c:1508:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (packet_reader_read(request) == PACKET_READ_NORMAL) {
        ^
/datasets/git/upload-pack.c:1510:15: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                const char *p;
                            ^
                              = NULL
/datasets/git/upload-pack.c:1510:15: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/upload-pack.c:1513:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (parse_want(&data->writer, arg, &data->want_obj))
                                                                    ^
                                                                     {
/datasets/git/upload-pack.c:1517:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                   &data->hidden_refs, &data->want_obj))
                                                                        ^
                                                                         {
/datasets/git/upload-pack.c:1520:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (parse_have(arg, &data->haves))
                                                  ^
                                                   {
/datasets/git/upload-pack.c:1550:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (process_shallow(arg, &data->shallows))
                                                          ^
                                                           {
/datasets/git/upload-pack.c:1552:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (process_deepen(arg, &data->depth))
                                                      ^
                                                       {
/datasets/git/upload-pack.c:1555:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                         &data->deepen_rev_list))
                                                                 ^
                                                                  {
/datasets/git/upload-pack.c:1558:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                       &data->deepen_rev_list))
                                                               ^
                                                                {
/datasets/git/upload-pack.c:1588:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (data->uri_protocols.nr && !data->writer.use_sideband)
                                                                 ^
                                                                  {
/datasets/git/upload-pack.c:1591:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (request->status != PACKET_READ_FLUSH)
                                                 ^
                                                  {
/datasets/git/upload-pack.c:1597:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/upload-pack.c:1597:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/upload-pack.c:1600:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < data->haves.nr; i++) {
        ^
/datasets/git/upload-pack.c:1604:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                                OBJECT_INFO_QUICK | OBJECT_INFO_SKIP_FETCH_OBJECT))
                                                ^
/datasets/git/./object-store.h:436:27: note: expanded from macro 'OBJECT_INFO_QUICK'
#define OBJECT_INFO_QUICK 8
                          ^
/datasets/git/./object-store.h:336:101: note: expanded from macro 'has_object_file_with_flags'
#define has_object_file_with_flags(oid, flags) repo_has_object_file_with_flags(the_repository, oid, flags)
                                                                                                    ^~~~~
/datasets/git/upload-pack.c:1604:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                OBJECT_INFO_QUICK | OBJECT_INFO_SKIP_FETCH_OBJECT))
                                                                                                   ^
                                                                                                    {
/datasets/git/upload-pack.c:1617:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/upload-pack.c:1617:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/upload-pack.c:1622:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!acks->nr)
                      ^
                       {
/datasets/git/upload-pack.c:1625:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < acks->nr; i++) {
        ^
/datasets/git/upload-pack.c:1663:33: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        const struct string_list_item *item;
                                       ^
                                            = NULL
/datasets/git/upload-pack.c:1665:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!data->wanted_refs.nr)
                                  ^
                                   {
/datasets/git/upload-pack.c:1670:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(item, &data->wanted_refs) {
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/upload-pack.c:1670:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'item' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(item, &data->wanted_refs) {
                                  ^
/datasets/git/upload-pack.c:1683:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !is_repository_shallow(the_repository))
                                                   ^
                                                    {
/datasets/git/upload-pack.c:1689:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            is_repository_shallow(the_repository))
                                                  ^
                                                   {
/datasets/git/upload-pack.c:1702:39: warning: parameter 'r' is unused [misc-unused-parameters]
int upload_pack_v2(struct repository *r, struct packet_reader *request)
                                      ^
/datasets/git/upload-pack.c:1702:39: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/upload-pack.c:1707:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        clear_object_flags(ALL_FLAGS);
                           ^
/datasets/git/upload-pack.c:42:20: note: expanded from macro 'ALL_FLAGS'
#define ALL_FLAGS (THEY_HAVE | OUR_REF | WANTED | COMMON_KNOWN | SHALLOW | \
                   ^~~~~~~~~
/datasets/git/upload-pack.c:32:20: note: expanded from macro 'THEY_HAVE'
#define THEY_HAVE       (1u << 11)
                         ^     ~~
/datasets/git/upload-pack.c:1713:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (state != FETCH_DONE) {
        ^
/datasets/git/upload-pack.c:1714:3: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
                switch (state) {
                ^
/datasets/git/upload-pack.c:1741:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (process_haves_and_send_acks(&data))
                                                               ^
                                                                {
/datasets/git/upload-pack.c:1743:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/upload-pack.c:1767:46: warning: parameter 'r' is unused [misc-unused-parameters]
int upload_pack_advertise(struct repository *r,
                                             ^
/datasets/git/upload-pack.c:1767:46: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/upload-pack.c:1771:7: warning: variable 'allow_filter_value' is not initialized [cppcoreguidelines-init-variables]
                int allow_filter_value;
                    ^
                                       = 0
/datasets/git/upload-pack.c:1772:7: warning: variable 'allow_ref_in_want' is not initialized [cppcoreguidelines-init-variables]
                int allow_ref_in_want;
                    ^
                                      = 0
/datasets/git/upload-pack.c:1773:7: warning: variable 'allow_sideband_all_value' is not initialized [cppcoreguidelines-init-variables]
                int allow_sideband_all_value;
                    ^
                                             = 0
/datasets/git/upload-pack.c:1781:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    allow_filter_value)
                                       ^
                                        {
/datasets/git/upload-pack.c:1787:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    allow_ref_in_want)
                                      ^
                                       {
/datasets/git/upload-pack.c:1794:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                     allow_sideband_all_value))
                                               ^
                                                {
/datasets/git/url.c:4:22: warning: 2 adjacent parameters of 'is_urlschemechar' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
int is_urlschemechar(int first_flag, int ch)
                     ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/url.c:4:26: note: the first parameter in the range is 'first_flag'
int is_urlschemechar(int first_flag, int ch)
                         ^~~~~~~~~~
/datasets/git/url.c:4:42: note: the last parameter in the range is 'ch'
int is_urlschemechar(int first_flag, int ch)
                                         ^~
/datasets/git/url.c:4:42: warning: parameter name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
int is_urlschemechar(int first_flag, int ch)
                                         ^
/datasets/git/url.c:13:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int alphanumeric, special;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/url.c:13:6: warning: variable 'alphanumeric' is not initialized [cppcoreguidelines-init-variables]
        int alphanumeric, special;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/url.c:13:20: warning: variable 'special' is not initialized [cppcoreguidelines-init-variables]
        int alphanumeric, special;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/url.c:14:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        alphanumeric = ch > 0 && isalnum(ch);
                                 ^
/datasets/git/./git-compat-util.h:1220:20: note: expanded from macro 'isalnum'
#define isalnum(x) sane_istest(x,GIT_ALPHA | GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/url.c:22:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!url || !is_urlschemechar(1, *url++))
                                                 ^
                                                  {
/datasets/git/url.c:24:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*url && *url != ':') {
        ^
/datasets/git/url.c:25:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!is_urlschemechar(0, *url++))
                                                 ^
                                                  {
/datasets/git/url.c:36:14: warning: variable name 'q' is too short, expected at least 3 characters [readability-identifier-length]
        const char *q = *query;
                    ^
/datasets/git/url.c:38:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (len) {
        ^
/datasets/git/url.c:39:17: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                unsigned char c = *q;
                              ^
/datasets/git/url.c:41:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!c)
                       ^
                        {
/datasets/git/url.c:59:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (decode_plus && c == '+')
                                            ^
                                             {
/datasets/git/url.c:61:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/url.c:72:29: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return url_decode_mem(url, strlen(url));
                                   ^
/datasets/git/url.c:83:10: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                len -= colon - url;
                       ^
/datasets/git/url.c:92:39: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return url_decode_internal(&encoded, strlen(encoded), NULL, &out, 0);
                                             ^
urlmatch.c:39:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (from_len) {
        ^
urlmatch.c:40:7: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
                int ch = *from++;
                    ^
urlmatch.c:40:12: warning: 'signed char' to 'int' conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse,cert-str34-c]
                int ch = *from++;
                         ^
/datasets/git/urlmatch.c:45:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (from_len < 2)
                                         ^
                                          {
/datasets/git/urlmatch.c:48:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (ch < 0)
                                   ^
                                    {
/datasets/git/urlmatch.c:54:28: warning: 0x1F is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if ((unsigned char)ch <= 0x1F || (unsigned char)ch >= 0x7F ||
                                         ^
/datasets/git/urlmatch.c:54:57: warning: 0x7F is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if ((unsigned char)ch <= 0x1F || (unsigned char)ch >= 0x7F ||
                                                                      ^
/datasets/git/urlmatch.c:57:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    (was_esc && strchr(esc_ok, ch)))
                                                    ^
                                                     {
/datasets/git/urlmatch.c:59:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/urlmatch.c:66:45: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static const char *end_of_token(const char *s, int c, size_t n)
                                            ^
/datasets/git/urlmatch.c:66:52: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static const char *end_of_token(const char *s, int c, size_t n)
                                                   ^
/datasets/git/urlmatch.c:69:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!next)
                  ^
                   {
/datasets/git/urlmatch.c:79:16: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int url_len = url_info->host_len;
                      ^
/datasets/git/urlmatch.c:80:16: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int pat_len = pattern_info->host_len;
                      ^
/datasets/git/urlmatch.c:82:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (url_len && pat_len) {
        ^
/datasets/git/urlmatch.c:82:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'url_len' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (url_len && pat_len) {
               ^
/datasets/git/urlmatch.c:86:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pat_next == pat + 1 && pat[0] == '*')
                                                         ^
                                                          {
/datasets/git/urlmatch.c:88:4: warning: repeated branch in conditional chain [bugprone-branch-clone]
                        ;
                        ^
/datasets/git/urlmatch.c:88:5: note: end of the original
                        ;
                         ^
/datasets/git/urlmatch.c:92:4: note: clone 1 starts here
                        ;
                        ^
/datasets/git/urlmatch.c:90:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                         !memcmp(url, pat, url_next - url))
                                                           ^
                                                            {
/datasets/git/urlmatch.c:93:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/urlmatch.c:96:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (url_next < url + url_len)
                                             ^
                                              {
/datasets/git/urlmatch.c:98:14: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                url_len -= url_next - url;
                           ^
/datasets/git/urlmatch.c:100:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pat_next < pat + pat_len)
                                             ^
                                              {
/datasets/git/urlmatch.c:102:14: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                pat_len -= pat_next - pat;
                           ^
/datasets/git/urlmatch.c:109:14: warning: function 'url_normalize_1' has cognitive complexity of 112 (threshold 25) [readability-function-cognitive-complexity]
static char *url_normalize_1(const char *url, struct url_info *out_info, char allow_globs)
             ^
/datasets/git/urlmatch.c:159:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!spanned || !isalpha(url[0]) || spanned + 3 > url_len ||
        ^
/datasets/git/urlmatch.c:160:51: note: +1
            url[spanned] != ':' || url[spanned+1] != '/' || url[spanned+2] != '/') {
                                                         ^
/datasets/git/urlmatch.c:161:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (out_info) {
                ^
/datasets/git/urlmatch.c:171:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (spanned--)
        ^
/datasets/git/urlmatch.c:180:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (at_ptr && at_ptr < slash_ptr) {
        ^
/datasets/git/urlmatch.c:180:13: note: +1
        if (at_ptr && at_ptr < slash_ptr) {
                   ^
/datasets/git/urlmatch.c:182:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (at_ptr > url) {
                ^
/datasets/git/urlmatch.c:183:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!append_normalized_escapes(&norm, url, at_ptr - url,
                        ^
/datasets/git/urlmatch.c:185:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (out_info) {
                                ^
/datasets/git/urlmatch.c:193:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (colon_ptr) {
                        ^
/datasets/git/urlmatch.c:197:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/urlmatch.c:210:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!url_len || strchr(":/?#", *url)) {
        ^
/datasets/git/urlmatch.c:210:15: note: +1
        if (!url_len || strchr(":/?#", *url)) {
                     ^
/datasets/git/urlmatch.c:212:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (strncmp(norm.buf, "file:", 5)) {
                ^
/datasets/git/urlmatch.c:213:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (out_info) {
                        ^
/datasets/git/urlmatch.c:220:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/urlmatch.c:224:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (colon_ptr > url && *colon_ptr != ':' && *colon_ptr != ']')
        ^
/datasets/git/urlmatch.c:224:46: note: +1
        while (colon_ptr > url && *colon_ptr != ':' && *colon_ptr != ']')
                                                    ^
/datasets/git/urlmatch.c:226:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (*colon_ptr != ':') {
        ^
/datasets/git/urlmatch.c:228:9: note: +1, nesting level increased to 1
        } else if (!host_off && colon_ptr < slash_ptr && colon_ptr + 1 != slash_ptr) {
               ^
/datasets/git/urlmatch.c:228:48: note: +1
        } else if (!host_off && colon_ptr < slash_ptr && colon_ptr + 1 != slash_ptr) {
                                                      ^
/datasets/git/urlmatch.c:230:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (out_info) {
                ^
/datasets/git/urlmatch.c:238:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (allow_globs)
        ^
/datasets/git/urlmatch.c:240:2: note: +1, nesting level increased to 1
        else
        ^
/datasets/git/urlmatch.c:243:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (spanned < colon_ptr - url) {
        ^
/datasets/git/urlmatch.c:245:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (out_info) {
                ^
/datasets/git/urlmatch.c:252:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (url < colon_ptr) {
        ^
/datasets/git/urlmatch.c:262:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (colon_ptr < slash_ptr) {
        ^
/datasets/git/urlmatch.c:266:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (url == slash_ptr && url[-1] == '0')
                ^
/datasets/git/urlmatch.c:266:24: note: +1
                if (url == slash_ptr && url[-1] == '0')
                                     ^
/datasets/git/urlmatch.c:268:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (url == slash_ptr) {
                ^
/datasets/git/urlmatch.c:270:10: note: +1, nesting level increased to 2
                } else if (slash_ptr - url == 2 &&
                       ^
/datasets/git/urlmatch.c:271:38: note: +1
                           !strncmp(norm.buf, "http:", 5) &&
                                                          ^
/datasets/git/urlmatch.c:274:10: note: +1, nesting level increased to 2
                } else if (slash_ptr - url == 3 &&
                       ^
/datasets/git/urlmatch.c:275:39: note: +1
                           !strncmp(norm.buf, "https:", 6) &&
                                                           ^
/datasets/git/urlmatch.c:278:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/urlmatch.c:288:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (spanned < slash_ptr - url) {
                        ^
/datasets/git/urlmatch.c:290:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (out_info) {
                                ^
/datasets/git/urlmatch.c:297:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (slash_ptr - url <= 5)
                        ^
/datasets/git/urlmatch.c:299:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (pnum == 0 || pnum > 65535) {
                        ^
/datasets/git/urlmatch.c:299:18: note: +1
                        if (pnum == 0 || pnum > 65535) {
                                      ^
/datasets/git/urlmatch.c:301:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (out_info) {
                                ^
/datasets/git/urlmatch.c:316:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (host_off)
        ^
/datasets/git/urlmatch.c:317:46: note: +2, including nesting penalty of 1, nesting level increased to 2
                host_len = norm.len - host_off - (port_len ? port_len + 1 : 0);
                                                           ^
/datasets/git/urlmatch.c:328:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (*url == '/') {
        ^
/datasets/git/urlmatch.c:332:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (;;) {
        ^
/datasets/git/urlmatch.c:342:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!append_normalized_escapes(&norm, url, next_slash - url, "",
                ^
/datasets/git/urlmatch.c:344:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (out_info) {
                        ^
/datasets/git/urlmatch.c:353:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(seg_start, ".")) {
                ^
/datasets/git/urlmatch.c:355:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (seg_start == path_start + 1) {
                        ^
/datasets/git/urlmatch.c:358:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/urlmatch.c:361:10: note: +1, nesting level increased to 2
                } else if (!strcmp(seg_start, "..")) {
                       ^
/datasets/git/urlmatch.c:367:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (prev_slash == path_start) {
                        ^
/datasets/git/urlmatch.c:369:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (out_info) {
                                ^
/datasets/git/urlmatch.c:376:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (*--prev_slash != '/') {}
                        ^
/datasets/git/urlmatch.c:377:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (prev_slash == path_start) {
                        ^
/datasets/git/urlmatch.c:380:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/urlmatch.c:387:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (*url != '/')
                ^
/datasets/git/urlmatch.c:391:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!skip_add_slash)
                ^
/datasets/git/urlmatch.c:401:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (*url) {
        ^
/datasets/git/urlmatch.c:402:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!append_normalized_escapes(&norm, url, url_len, "", URL_RESERVED)) {
                ^
/datasets/git/urlmatch.c:403:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (out_info) {
                        ^
/datasets/git/urlmatch.c:414:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (out_info) {
        ^
/datasets/git/urlmatch.c:148:9: warning: variable 'spanned' is not initialized [cppcoreguidelines-init-variables]
        size_t spanned;
               ^
                       = 0
/datasets/git/urlmatch.c:149:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t scheme_len, user_off=0, user_len=0, passwd_off=0, passwd_len=0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/urlmatch.c:149:9: warning: variable 'scheme_len' is not initialized [cppcoreguidelines-init-variables]
        size_t scheme_len, user_off=0, user_len=0, passwd_off=0, passwd_len=0;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/urlmatch.c:150:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t host_off=0, host_len=0, port_off=0, port_len=0, path_off, path_len, result_len;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/urlmatch.c:150:57: warning: variable 'path_off' is not initialized [cppcoreguidelines-init-variables]
        size_t host_off=0, host_len=0, port_off=0, port_len=0, path_off, path_len, result_len;
                                                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/urlmatch.c:150:67: warning: variable 'path_len' is not initialized [cppcoreguidelines-init-variables]
        size_t host_off=0, host_len=0, port_off=0, port_len=0, path_off, path_len, result_len;
                                                                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/urlmatch.c:150:77: warning: variable 'result_len' is not initialized [cppcoreguidelines-init-variables]
        size_t host_off=0, host_len=0, port_off=0, port_len=0, path_off, path_len, result_len;
                                                                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/urlmatch.c:151:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *slash_ptr, *at_ptr, *colon_ptr, *path_start;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/urlmatch.c:151:14: warning: variable 'slash_ptr' is not initialized [cppcoreguidelines-init-variables]
        const char *slash_ptr, *at_ptr, *colon_ptr, *path_start;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/urlmatch.c:151:26: warning: variable 'at_ptr' is not initialized [cppcoreguidelines-init-variables]
        const char *slash_ptr, *at_ptr, *colon_ptr, *path_start;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/urlmatch.c:151:35: warning: variable 'colon_ptr' is not initialized [cppcoreguidelines-init-variables]
        const char *slash_ptr, *at_ptr, *colon_ptr, *path_start;
                                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/urlmatch.c:151:47: warning: variable 'path_start' is not initialized [cppcoreguidelines-init-variables]
        const char *slash_ptr, *at_ptr, *colon_ptr, *path_start;
                                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/urlmatch.c:152:8: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        char *result;
              ^
                     = NULL
/datasets/git/urlmatch.c:159:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!spanned || !isalpha(url[0]) || spanned + 3 > url_len ||
                         ^
/datasets/git/./git-compat-util.h:1219:20: note: expanded from macro 'isalpha'
#define isalpha(x) sane_istest(x,GIT_ALPHA)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/urlmatch.c:171:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (spanned--)
        ^
/datasets/git/urlmatch.c:171:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'spanned' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (spanned--)
               ^
/datasets/git/urlmatch.c:171:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (spanned--)
                         ^
                          {
/datasets/git/urlmatch.c:212:7: warning: function 'strncmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (strncmp(norm.buf, "file:", 5)) {
                    ^
                                                  != 0
/datasets/git/urlmatch.c:212:34: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (strncmp(norm.buf, "file:", 5)) {
                                               ^
/datasets/git/urlmatch.c:224:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (colon_ptr > url && *colon_ptr != ':' && *colon_ptr != ']')
        ^
/datasets/git/urlmatch.c:224:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'colon_ptr' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (colon_ptr > url && *colon_ptr != ':' && *colon_ptr != ']')
               ^
/datasets/git/urlmatch.c:224:67: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (colon_ptr > url && *colon_ptr != ':' && *colon_ptr != ']')
                                                                         ^
                                                                          {
/datasets/git/urlmatch.c:238:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (allow_globs)
                        ^
                         {
/datasets/git/urlmatch.c:240:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/urlmatch.c:252:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (url < colon_ptr) {
        ^
/datasets/git/urlmatch.c:252:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'url' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (url < colon_ptr) {
               ^
/datasets/git/urlmatch.c:266:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (url == slash_ptr && url[-1] == '0')
                                                       ^
                                                        {
/datasets/git/urlmatch.c:268:25: warning: repeated branch in conditional chain [bugprone-branch-clone]
                if (url == slash_ptr) {
                                      ^
/datasets/git/urlmatch.c:270:4: note: end of the original
                } else if (slash_ptr - url == 2 &&
                 ^
/datasets/git/urlmatch.c:272:31: note: clone 1 starts here
                           !strncmp(url, "80", 2)) {
                                                   ^
/datasets/git/urlmatch.c:276:32: note: clone 2 starts here
                           !strncmp(url, "443", 3)) {
                                                    ^
/datasets/git/urlmatch.c:271:35: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                           !strncmp(norm.buf, "http:", 5) &&
                                                       ^
/datasets/git/urlmatch.c:275:36: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                           !strncmp(norm.buf, "https:", 6) &&
                                                        ^
/datasets/git/urlmatch.c:297:27: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        if (slash_ptr - url <= 5)
                                               ^
/datasets/git/urlmatch.c:297:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (slash_ptr - url <= 5)
                                                 ^
                                                  {
/datasets/git/urlmatch.c:298:31: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                pnum = strtoul(url, NULL, 10);
                                                          ^
/datasets/git/urlmatch.c:299:28: warning: 65535 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        if (pnum == 0 || pnum > 65535) {
                                                ^
/datasets/git/urlmatch.c:316:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (host_off)
                     ^
                      {
/datasets/git/urlmatch.c:333:15: warning: variable 'seg_start' is not initialized [cppcoreguidelines-init-variables]
                const char *seg_start;
                            ^
                                      = NULL
/datasets/git/urlmatch.c:366:4: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                        const char *prev_slash = norm.buf + norm.len - 3;
                        ^
/datasets/git/urlmatch.c:376:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (*--prev_slash != '/') {}
                        ^
/datasets/git/urlmatch.c:376:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'prev_slash' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (*--prev_slash != '/') {}
                               ^
/datasets/git/urlmatch.c:387:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*url != '/')
                                ^
                                 {
/datasets/git/urlmatch.c:391:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!skip_add_slash)
                                    ^
                                     {
/datasets/git/urlmatch.c:457:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!url || !url_prefix)
                                ^
                                 {
/datasets/git/urlmatch.c:459:69: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!url_prefix_len || (url_prefix_len == 1 && *url_prefix == '/'))
                                                                           ^
                                                                            {
/datasets/git/urlmatch.c:461:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (url_prefix[url_prefix_len - 1] == '/')
                                                  ^
                                                   {
/datasets/git/urlmatch.c:463:6: warning: function 'strncmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (strncmp(url, url_prefix, url_prefix_len))
            ^
                                                     != 0
/datasets/git/urlmatch.c:463:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strncmp(url, url_prefix, url_prefix_len))
                                                     ^
                                                      {
/datasets/git/urlmatch.c:465:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((strlen(url) == url_prefix_len) || (url[url_prefix_len] == '/'))
                                                                            ^
                                                                             {
/datasets/git/urlmatch.c:492:9: warning: variable 'pathmatchlen' is not initialized [cppcoreguidelines-init-variables]
        size_t pathmatchlen;
               ^
                            = 0
/datasets/git/urlmatch.c:494:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!url || !url_prefix || !url->url || !url_prefix->url)
                                                                 ^
                                                                  {
/datasets/git/urlmatch.c:499:6: warning: function 'strncmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
            strncmp(url->url, url_prefix->url, url->scheme_len))
            ^
                                                                != 0
/datasets/git/urlmatch.c:499:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            strncmp(url->url, url_prefix->url, url->scheme_len))
                                                                ^
                                                                 {
/datasets/git/urlmatch.c:505:7: warning: function 'strncmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                    strncmp(url->url + url->user_off,
                    ^
/datasets/git/urlmatch.c:507:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            url->user_len))
                                           ^
                                            {
/datasets/git/urlmatch.c:513:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!match_host(url, url_prefix))
                                         ^
                                          {
/datasets/git/urlmatch.c:518:6: warning: function 'strncmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
            strncmp(url->url + url->port_off,
            ^
/datasets/git/urlmatch.c:519:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    url_prefix->url + url_prefix->port_off, url->port_len))
                                                                           ^
                                                                            {
/datasets/git/urlmatch.c:527:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!pathmatchlen)
                          ^
                           {
/datasets/git/urlmatch.c:539:52: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static int cmp_matches(const struct urlmatch_item *a,
                                                   ^
/datasets/git/urlmatch.c:540:38: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
                       const struct urlmatch_item *b)
                                                   ^
/datasets/git/urlmatch.c:542:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (a->hostmatch_len != b->hostmatch_len)
                                                 ^
                                                  {
/datasets/git/urlmatch.c:544:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (a->pathmatch_len != b->pathmatch_len)
                                                 ^
                                                  {
/datasets/git/urlmatch.c:546:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (a->user_matched != b->user_matched)
                                               ^
                                                {
/datasets/git/urlmatch.c:551:69: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
int urlmatch_config_entry(const char *var, const char *value, void *cb)
                                                                    ^
/datasets/git/urlmatch.c:553:27: warning: variable 'item' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *item;
                                 ^
                                      = NULL
/datasets/git/urlmatch.c:557:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *key, *dot;
        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/urlmatch.c:557:14: warning: variable 'key' is not initialized [cppcoreguidelines-init-variables]
        const char *key, *dot;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/urlmatch.c:557:20: warning: variable 'dot' is not initialized [cppcoreguidelines-init-variables]
        const char *key, *dot;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/urlmatch.c:559:6: warning: variable 'retval' is not initialized [cppcoreguidelines-init-variables]
        int retval;
            ^
                   = 0
/datasets/git/urlmatch.c:560:47: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        int (*select_fn)(const struct urlmatch_item *a, const struct urlmatch_item *b) =
                                                     ^
/datasets/git/urlmatch.c:560:78: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        int (*select_fn)(const struct urlmatch_item *a, const struct urlmatch_item *b) =
                                                                                    ^
/datasets/git/urlmatch.c:564:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (collect->cascade_fn)
                                        ^
                                         {
/datasets/git/urlmatch.c:570:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                char *config_url, *norm_url;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/urlmatch.c:570:9: warning: variable 'config_url' is not initialized [cppcoreguidelines-init-variables]
                char *config_url, *norm_url;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/urlmatch.c:570:22: warning: variable 'norm_url' is not initialized [cppcoreguidelines-init-variables]
                char *config_url, *norm_url;
                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/urlmatch.c:575:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (norm_url)
                             ^
                              {
/datasets/git/urlmatch.c:577:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (collect->fallback_match_fn)
                                                    ^
                                                     {
/datasets/git/urlmatch.c:580:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/urlmatch.c:584:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!retval)
                            ^
                             {
/datasets/git/urlmatch.c:589:22: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (collect->key && strcmp(key, collect->key))
                            ^
                                                      != 0
/datasets/git/urlmatch.c:589:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (collect->key && strcmp(key, collect->key))
                                                      ^
                                                       {
/datasets/git/urlmatch.c:596:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (select_fn(&matched, item->util) < 0)
                                                        ^
                                                         {
/datasets/git/urlmatch.c:605:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(item->util, &matched, sizeof(matched));
        ^~~~~~
/datasets/git/urlmatch.c:605:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(item->util, &matched, sizeof(matched));
        ^~~~~~
/datasets/git/usage.c:9:22: warning: 2 adjacent parameters of 'vreportf' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void vreportf(const char *prefix, const char *err, va_list params)
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/usage.c:9:34: note: the first parameter in the range is 'prefix'
static void vreportf(const char *prefix, const char *err, va_list params)
                                 ^~~~~~
/datasets/git/usage.c:9:54: note: the last parameter in the range is 'err'
static void vreportf(const char *prefix, const char *err, va_list params)
                                                     ^~~
/datasets/git/usage.c:11:11: warning: 4096 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        char msg[4096];
                 ^
/datasets/git/usage.c:12:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *p, *pend = msg + sizeof(msg);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/usage.c:12:8: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        char *p, *pend = msg + sizeof(msg);
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/usage.c:12:8: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/usage.c:16:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "BUG!!! too long a prefix '%s'\n", prefix);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/usage.c:16:3: note: cast the expression to void to silence this warning
/datasets/git/usage.c:19:2: warning: the result from calling 'memcpy' is not null-terminated [bugprone-not-null-terminated-result]
        memcpy(msg, prefix, prefix_len);
        ^~~~~~            ~~~~~~~~~~~~
        strcpy
/datasets/git/usage.c:19:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(msg, prefix, prefix_len);
        ^~~~~~
/datasets/git/usage.c:19:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(msg, prefix, prefix_len);
        ^~~~~~
/datasets/git/usage.c:21:6: warning: Call to function 'vsnprintf' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'vsnprintf_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        if (vsnprintf(p, pend - p, err, params) < 0)
            ^~~~~~~~~
/datasets/git/usage.c:21:6: note: Call to function 'vsnprintf' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'vsnprintf_s' in case of C11
        if (vsnprintf(p, pend - p, err, params) < 0)
            ^~~~~~~~~
/datasets/git/usage.c:21:6: warning: Function 'vsnprintf' is called with an uninitialized va_list argument [clang-analyzer-valist.Uninitialized]
        if (vsnprintf(p, pend - p, err, params) < 0)
            ^
/datasets/git/usage.c:342:2: note: Calling 'BUG_vfl_common'
        BUG_vfl_common(file, line, fmt, ap);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/usage.c:301:2: note: Calling 'vreportf'
        vreportf(prefix, fmt, params);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/usage.c:15:6: note: Assuming the condition is false
        if (sizeof(msg) <= prefix_len) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/usage.c:15:2: note: Taking false branch
        if (sizeof(msg) <= prefix_len) {
        ^
/datasets/git/usage.c:21:6: note: Function 'vsnprintf' is called with an uninitialized va_list argument
        if (vsnprintf(p, pend - p, err, params) < 0)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/usage.c:21:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (vsnprintf(p, pend - p, err, params) < 0)
                                                    ^
                                                     {
/datasets/git/usage.c:24:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; p != pend - 1 && *p; p++) {
        ^
/datasets/git/usage.c:24:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; p != pend - 1 && *p; p++) {
               ^
/datasets/git/usage.c:25:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (iscntrl(*p) && *p != '\t' && *p != '\n')
                    ^
/datasets/git/./git-compat-util.h:1226:21: note: expanded from macro 'iscntrl'
#define iscntrl(x) (sane_istest(x,GIT_CNTRL))
                    ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/usage.c:25:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (iscntrl(*p) && *p != '\t' && *p != '\n')
                                                            ^
                                                             {
/datasets/git/usage.c:30:2: warning: the value returned by this function should be used [cert-err33-c]
        fflush(stderr);
        ^~~~~~~~~~~~~~
/datasets/git/usage.c:30:2: note: cast the expression to void to silence this warning
/datasets/git/usage.c:55:2: warning: function is not thread safe [concurrency-mt-unsafe]
        exit(129);
        ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/usage.c:74:2: warning: function is not thread safe [concurrency-mt-unsafe]
        exit(128);
        ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/usage.c:105:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else if (dying == 2) {
          ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/usage.c:115:31: warning: variable 'usage_routine' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static NORETURN_PTR report_fn usage_routine = usage_builtin;
                              ^
/datasets/git/usage.c:115:31: warning: variable 'usage_routine' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/usage.c:116:31: warning: variable 'die_routine' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static NORETURN_PTR report_fn die_routine = die_builtin;
                              ^
/datasets/git/usage.c:116:31: warning: variable 'die_routine' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/usage.c:117:18: warning: variable 'die_message_routine' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static report_fn die_message_routine = die_message_builtin;
                 ^
/datasets/git/usage.c:118:18: warning: variable 'error_routine' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static report_fn error_routine = error_builtin;
                 ^
/datasets/git/usage.c:119:18: warning: variable 'warn_routine' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static report_fn warn_routine = warn_builtin;
                 ^
/datasets/git/usage.c:120:14: warning: variable 'die_is_recursing' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int (*die_is_recursing)(void) = die_is_recursing_builtin;
             ^
/datasets/git/usage.c:120:14: warning: variable 'die_is_recursing' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/usage.c:176:3: warning: the value returned by this function should be used [cert-err33-c]
                fputs("fatal: recursion detected in die handler\n", stderr);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/usage.c:176:3: note: cast the expression to void to silence this warning
/datasets/git/usage.c:177:3: warning: function is not thread safe [concurrency-mt-unsafe]
                exit(128);
                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/usage.c:187:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char str_error[256], *err;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/usage.c:187:17: warning: 256 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        char str_error[256], *err;
                       ^
/datasets/git/usage.c:187:24: warning: variable 'err' is not initialized [cppcoreguidelines-init-variables]
        char str_error[256], *err;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/usage.c:188:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, j;
        ^~~~~~~~~
/datasets/git/usage.c:188:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/usage.c:188:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, j;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/usage.c:188:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/usage.c:188:9: warning: variable 'j' is not initialized [cppcoreguidelines-init-variables]
        int i, j;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/usage.c:188:9: warning: variable name 'j' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/usage.c:190:8: warning: function is not thread safe [concurrency-mt-unsafe]
        err = strerror(errno);
              ^
/datasets/git/usage.c:191:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = j = 0; err[i] && j < sizeof(str_error) - 1; ) {
        ^
/datasets/git/usage.c:191:18: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = j = 0; err[i] && j < sizeof(str_error) - 1; ) {
                        ^
/datasets/git/usage.c:192:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                if ((str_error[j++] = err[i++]) != '%')
                     ^
/datasets/git/usage.c:192:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/usage.c:192:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/usage.c:192:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((str_error[j++] = err[i++]) != '%')
                                                       ^
                                                        {
/datasets/git/usage.c:205:2: warning: the value returned by this function should be used [cert-err33-c]
        snprintf(buf, n, "%s: %s", fmt, str_error);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/usage.c:205:2: note: cast the expression to void to silence this warning
/datasets/git/usage.c:205:2: warning: Call to function 'snprintf' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        snprintf(buf, n, "%s: %s", fmt, str_error);
        ^~~~~~~~
/datasets/git/usage.c:205:2: note: Call to function 'snprintf' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'snprintf_s' in case of C11
        snprintf(buf, n, "%s: %s", fmt, str_error);
        ^~~~~~~~
/datasets/git/usage.c:211:11: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        char buf[1024];
                 ^
/datasets/git/usage.c:215:3: warning: the value returned by this function should be used [cert-err33-c]
                fputs("fatal: recursion detected in die_errno handler\n",
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/usage.c:215:3: note: cast the expression to void to silence this warning
/datasets/git/usage.c:217:3: warning: function is not thread safe [concurrency-mt-unsafe]
                exit(128);
                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/usage.c:233:9: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        return 128;
               ^
/datasets/git/usage.c:239:11: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        char buf[1024];
                 ^
/datasets/git/usage.c:245:9: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        return 128;
               ^
/datasets/git/usage.c:251:11: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        char buf[1024];
                 ^
/datasets/git/usage.c:273:11: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        char buf[1024];
                 ^
/datasets/git/usage.c:291:5: warning: variable 'BUG_exit_code' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
int BUG_exit_code;
    ^
/datasets/git/usage.c:296:14: warning: 256 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        char prefix[256];
                    ^
/datasets/git/usage.c:299:2: warning: the value returned by this function should be used [cert-err33-c]
        snprintf(prefix, sizeof(prefix), "BUG: %s:%d: ", file, line);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/usage.c:299:2: note: cast the expression to void to silence this warning
/datasets/git/usage.c:299:2: warning: Call to function 'snprintf' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        snprintf(prefix, sizeof(prefix), "BUG: %s:%d: ", file, line);
        ^~~~~~~~
/datasets/git/usage.c:299:2: note: Call to function 'snprintf' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'snprintf_s' in case of C11
        snprintf(prefix, sizeof(prefix), "BUG: %s:%d: ", file, line);
        ^~~~~~~~
/datasets/git/usage.c:312:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (in_bug)
                   ^
                    {
/datasets/git/usage.c:318:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (BUG_exit_code)
                          ^
                           {
/datasets/git/usage.c:319:3: warning: function is not thread safe [concurrency-mt-unsafe]
                exit(BUG_exit_code);
                ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/usage.c:325:10: warning: variable name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
        va_list ap;
                ^
/datasets/git/usage.c:334:5: warning: variable 'bug_called_must_BUG' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
int bug_called_must_BUG;
    ^
/datasets/git/usage.c:337:10: warning: variable name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
        va_list ap;
                ^
/datasets/git/userdiff.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "config.h"
^        ~~~~~~~~~~
         "attr.h"
/datasets/git/userdiff.c:6:32: warning: variable 'drivers' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct userdiff_driver *drivers;
                               ^
/datasets/git/userdiff.c:6:32: warning: variable 'drivers' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/userdiff.c:7:12: warning: variable 'ndrivers' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int ndrivers;
           ^
/datasets/git/userdiff.c:8:12: warning: variable 'drivers_alloc' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int drivers_alloc;
           ^
/datasets/git/userdiff.c:11:10: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        .name = lang, \
                ^
                (   )
/datasets/git/userdiff.c:14:14: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
                .pattern = rx, \
                           ^
                           ( )
/datasets/git/userdiff.c:20:10: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        .name = lang, \
                ^
                (   )
/datasets/git/userdiff.c:23:14: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
                .pattern = rx, \
                           ^
                           ( )
/datasets/git/userdiff.c:38:31: warning: variable 'builtin_drivers' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct userdiff_driver builtin_drivers[] = {
                              ^
/datasets/git/userdiff.c:301:31: warning: variable 'driver_true' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct userdiff_driver driver_true = {
                              ^
/datasets/git/userdiff.c:306:31: warning: variable 'driver_false' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct userdiff_driver driver_false = {
                              ^
/datasets/git/userdiff.c:311:8: warning: accessing fields in struct 'find_by_namelen_data' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct find_by_namelen_data {
       ^
/datasets/git/userdiff.c:311:8: note: use "__attribute__((aligned(32)))" to align struct 'find_by_namelen_data' to 32 bytes
/datasets/git/userdiff.c:318:38: warning: parameter 'type' is unused [misc-unused-parameters]
                                       enum userdiff_driver_type type, void *priv)
                                                                 ^
/datasets/git/userdiff.c:340:53: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
static int parse_funcname(struct userdiff_funcname *f, const char *k,
                                                    ^
/datasets/git/userdiff.c:340:68: warning: parameter name 'k' is too short, expected at least 3 characters [readability-identifier-length]
static int parse_funcname(struct userdiff_funcname *f, const char *k,
                                                                   ^
/datasets/git/userdiff.c:341:15: warning: parameter name 'v' is too short, expected at least 3 characters [readability-identifier-length]
                const char *v, int cflags)
                            ^
/datasets/git/userdiff.c:343:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (git_config_string(&f->pattern, k, v) < 0)
                                                     ^
                                                      {
/datasets/git/userdiff.c:349:32: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static int parse_tristate(int *b, const char *k, const char *v)
                               ^
/datasets/git/userdiff.c:349:47: warning: parameter name 'k' is too short, expected at least 3 characters [readability-identifier-length]
static int parse_tristate(int *b, const char *k, const char *v)
                                              ^
/datasets/git/userdiff.c:349:62: warning: parameter name 'v' is too short, expected at least 3 characters [readability-identifier-length]
static int parse_tristate(int *b, const char *k, const char *v)
                                                             ^
/datasets/git/userdiff.c:351:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (v && !strcasecmp(v, "auto"))
                                        ^
                                         {
/datasets/git/userdiff.c:353:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/userdiff.c:358:28: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static int parse_bool(int *b, const char *k, const char *v)
                           ^
/datasets/git/userdiff.c:358:43: warning: parameter name 'k' is too short, expected at least 3 characters [readability-identifier-length]
static int parse_bool(int *b, const char *k, const char *v)
                                          ^
/datasets/git/userdiff.c:358:58: warning: parameter name 'v' is too short, expected at least 3 characters [readability-identifier-length]
static int parse_bool(int *b, const char *k, const char *v)
                                                         ^
/datasets/git/userdiff.c:364:33: warning: parameter name 'k' is too short, expected at least 3 characters [readability-identifier-length]
int userdiff_config(const char *k, const char *v)
                                ^
/datasets/git/userdiff.c:364:48: warning: parameter name 'v' is too short, expected at least 3 characters [readability-identifier-length]
int userdiff_config(const char *k, const char *v)
                                               ^
/datasets/git/userdiff.c:366:26: warning: variable 'drv' is not initialized [cppcoreguidelines-init-variables]
        struct userdiff_driver *drv;
                                ^
                                    = NULL
/datasets/git/userdiff.c:367:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *name, *type;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/userdiff.c:367:14: warning: variable 'name' is not initialized [cppcoreguidelines-init-variables]
        const char *name, *type;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/userdiff.c:367:21: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        const char *name, *type;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/userdiff.c:368:9: warning: variable 'namelen' is not initialized [cppcoreguidelines-init-variables]
        size_t namelen;
               ^
                       = 0
/datasets/git/userdiff.c:370:67: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_config_key(k, "diff", &name, &namelen, &type) || !name)
                                                                         ^
                                                                          {
/datasets/git/userdiff.c:375:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                ALLOC_GROW(drivers, ndrivers+1, drivers_alloc);
                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/userdiff.c:377:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(drv, 0, sizeof(*drv));
                ^~~~~~
/datasets/git/userdiff.c:377:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(drv, 0, sizeof(*drv));
                ^~~~~~
/datasets/git/userdiff.c:382:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(type, "funcname"))
                                      ^
                                       {
/datasets/git/userdiff.c:384:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(type, "xfuncname"))
                                       ^
                                        {
/datasets/git/userdiff.c:386:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(type, "binary"))
                                    ^
                                     {
/datasets/git/userdiff.c:388:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(type, "command"))
                                     ^
                                      {
/datasets/git/userdiff.c:390:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(type, "textconv"))
                                      ^
                                       {
/datasets/git/userdiff.c:392:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(type, "cachetextconv"))
                                           ^
                                            {
/datasets/git/userdiff.c:394:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcmp(type, "wordregex"))
                                       ^
                                        {
/datasets/git/userdiff.c:402:12: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int len = strlen(name);
                  ^
/datasets/git/userdiff.c:409:28: warning: variable 'check' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
        static struct attr_check *check;
                                  ^
/datasets/git/userdiff.c:411:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!check)
                   ^
                    {
/datasets/git/userdiff.c:413:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!path)
                  ^
                   {
/datasets/git/userdiff.c:417:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ATTR_TRUE(check->items[0].value))
                                             ^
                                              {
/datasets/git/userdiff.c:419:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ATTR_FALSE(check->items[0].value))
                                              ^
                                               {
/datasets/git/userdiff.c:421:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ATTR_UNSET(check->items[0].value))
                                              ^
                                               {
/datasets/git/userdiff.c:426:66: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
struct userdiff_driver *userdiff_get_textconv(struct repository *r,
                                                                 ^
/datasets/git/userdiff.c:429:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!driver->textconv)
                              ^
                               {
/datasets/git/userdiff.c:433:23: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                struct notes_cache *c = xmalloc(sizeof(*c));
                                    ^
/datasets/git/userdiff.c:445:66: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
static int for_each_userdiff_driver_list(each_userdiff_driver_fn fn,
                                                                 ^
/datasets/git/userdiff.c:450:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/userdiff.c:450:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/userdiff.c:451:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/userdiff.c:452:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < drv_size; i++) {
        ^
/datasets/git/userdiff.c:454:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                if ((ret = fn(item, type, cb_data)))
                     ^
/datasets/git/userdiff.c:454:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/userdiff.c:454:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/userdiff.c:454:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((ret = fn(item, type, cb_data)))
                                                    ^
                                                     {
/datasets/git/userdiff.c:460:54: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
int for_each_userdiff_driver(each_userdiff_driver_fn fn, void *cb_data)
                                                     ^
/datasets/git/userdiff.c:462:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/userdiff.c:466:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/userdiff.c:472:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/utf8.c:12:8: warning: accessing fields in struct 'interval' is inefficient due to poor alignment; currently aligned to 4 bytes, but recommended alignment is 8 bytes [altera-struct-pack-align]
struct interval {
       ^
/datasets/git/utf8.c:12:8: note: use "__attribute__((aligned(8)))" to align struct 'interval' to 8 bytes
/datasets/git/utf8.c:17:50: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
size_t display_mode_esc_sequence_len(const char *s)
                                                 ^
/datasets/git/utf8.c:19:14: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        const char *p = s;
                    ^
/datasets/git/utf8.c:20:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*p++ != '\033')
                           ^
                            {
/datasets/git/utf8.c:22:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*p++ != '[')
                        ^
                         {
/datasets/git/utf8.c:24:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (isdigit(*p) || *p == ';')
        ^
/datasets/git/utf8.c:24:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (isdigit(*p) || *p == ';')
               ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^
/datasets/git/./git-compat-util.h:1215:29: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                            ^
/datasets/git/utf8.c:24:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        while (isdigit(*p) || *p == ';')
               ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/utf8.c:24:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (isdigit(*p) || *p == ';')
                                        ^
                                         {
/datasets/git/utf8.c:26:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*p++ != 'm')
                        ^
                         {
/datasets/git/utf8.c:35:6: warning: variable 'mid' is not initialized [cppcoreguidelines-init-variables]
        int mid;
            ^
                = 0
/datasets/git/utf8.c:37:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ucs < table[0].first || ucs > table[max].last)
                                                          ^
                                                           {
/datasets/git/utf8.c:39:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (max >= min) {
        ^
/datasets/git/utf8.c:39:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'max' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (max >= min) {
               ^
/datasets/git/utf8.c:41:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ucs > table[mid].last)
                                          ^
                                           {
/datasets/git/utf8.c:43:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (ucs < table[mid].first)
                                                ^
                                                 {
/datasets/git/utf8.c:45:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/utf8.c:84:35: warning: parameter name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
static int git_wcwidth(ucs_char_t ch)
                                  ^
/datasets/git/utf8.c:92:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ch == 0)
                    ^
                     {
/datasets/git/utf8.c:94:11: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (ch < 32 || (ch >= 0x7f && ch < 0xa0))
                 ^
/datasets/git/utf8.c:94:24: warning: 0x7f is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (ch < 32 || (ch >= 0x7f && ch < 0xa0))
                              ^
/datasets/git/utf8.c:94:37: warning: 0xa0 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        if (ch < 32 || (ch >= 0x7f && ch < 0xa0))
                                           ^
/datasets/git/utf8.c:94:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ch < 32 || (ch >= 0x7f && ch < 0xa0))
                                                 ^
                                                  {
/datasets/git/utf8.c:98:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (bisearch(ch, zero_width, ARRAY_SIZE(zero_width) - 1))
                                                                 ^
                                                                  {
/datasets/git/utf8.c:102:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (bisearch(ch, double_width, ARRAY_SIZE(double_width) - 1))
                                                                     ^
                                                                      {
/datasets/git/utf8.c:122:17: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned char *s = (unsigned char *)*start;
                       ^
/datasets/git/utf8.c:123:13: warning: variable 'ch' is not initialized [cppcoreguidelines-init-variables]
        ucs_char_t ch;
                   ^
                      = 0
/datasets/git/utf8.c:123:13: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/utf8.c:124:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t remainder, incr;
        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/utf8.c:124:9: warning: variable 'remainder' is not initialized [cppcoreguidelines-init-variables]
        size_t remainder, incr;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/utf8.c:124:20: warning: variable 'incr' is not initialized [cppcoreguidelines-init-variables]
        size_t remainder, incr;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/utf8.c:131:44: warning: 999 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        remainder = (remainder_p ? *remainder_p : 999);
                                                  ^
/datasets/git/utf8.c:135:18: warning: 0x80 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        } else if (*s < 0x80) {
                        ^
/datasets/git/utf8.c:139:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        } else if ((s[0] & 0xe0) == 0xc0) {
                    ^      ~~~~
/datasets/git/utf8.c:139:21: warning: 0xe0 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        } else if ((s[0] & 0xe0) == 0xc0) {
                           ^
/datasets/git/utf8.c:139:30: warning: 0xc0 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        } else if ((s[0] & 0xe0) == 0xc0) {
                                    ^
/datasets/git/utf8.c:142:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (s[1] & 0xc0) != 0x80 ||
                     ^      ~~~~
/datasets/git/utf8.c:142:15: warning: 0xc0 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                    (s[1] & 0xc0) != 0x80 ||
                            ^
/datasets/git/utf8.c:142:24: warning: 0x80 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                    (s[1] & 0xc0) != 0x80 ||
                                     ^
/datasets/git/utf8.c:143:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (s[0] & 0xfe) == 0xc0)
                     ^      ~~~~
/datasets/git/utf8.c:143:15: warning: 0xfe is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                    (s[0] & 0xfe) == 0xc0)
                            ^
/datasets/git/utf8.c:143:24: warning: 0xc0 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                    (s[0] & 0xfe) == 0xc0)
                                     ^
/datasets/git/utf8.c:143:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    (s[0] & 0xfe) == 0xc0)
                                          ^
                                           {
/datasets/git/utf8.c:145:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ch = ((s[0] & 0x1f) << 6) | (s[1] & 0x3f);
                     ^~~~~~~~~~~~~~~~~~~~
/datasets/git/utf8.c:145:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ch = ((s[0] & 0x1f) << 6) | (s[1] & 0x3f);
                      ^~~~~~~~~~~~~
/datasets/git/utf8.c:145:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ch = ((s[0] & 0x1f) << 6) | (s[1] & 0x3f);
                       ^      ~~~~
/datasets/git/utf8.c:145:17: warning: 0x1f is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                ch = ((s[0] & 0x1f) << 6) | (s[1] & 0x3f);
                              ^
/datasets/git/utf8.c:145:26: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                ch = ((s[0] & 0x1f) << 6) | (s[1] & 0x3f);
                                       ^
/datasets/git/utf8.c:145:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ch = ((s[0] & 0x1f) << 6) | (s[1] & 0x3f);
                                             ^      ~~~~
/datasets/git/utf8.c:145:39: warning: 0x3f is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                ch = ((s[0] & 0x1f) << 6) | (s[1] & 0x3f);
                                                    ^
/datasets/git/utf8.c:147:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        } else if ((s[0] & 0xf0) == 0xe0) {
                    ^      ~~~~
/datasets/git/utf8.c:147:21: warning: 0xf0 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        } else if ((s[0] & 0xf0) == 0xe0) {
                           ^
/datasets/git/utf8.c:147:30: warning: 0xe0 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        } else if ((s[0] & 0xf0) == 0xe0) {
                                    ^
/datasets/git/utf8.c:150:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (s[1] & 0xc0) != 0x80 ||
                     ^      ~~~~
/datasets/git/utf8.c:150:15: warning: 0xc0 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                    (s[1] & 0xc0) != 0x80 ||
                            ^
/datasets/git/utf8.c:150:24: warning: 0x80 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                    (s[1] & 0xc0) != 0x80 ||
                                     ^
/datasets/git/utf8.c:151:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (s[2] & 0xc0) != 0x80 ||
                     ^      ~~~~
/datasets/git/utf8.c:151:15: warning: 0xc0 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                    (s[2] & 0xc0) != 0x80 ||
                            ^
/datasets/git/utf8.c:151:24: warning: 0x80 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                    (s[2] & 0xc0) != 0x80 ||
                                     ^
/datasets/git/utf8.c:153:16: warning: 0xe0 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                    (s[0] == 0xe0 && (s[1] & 0xe0) == 0x80) ||
                             ^
/datasets/git/utf8.c:153:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (s[0] == 0xe0 && (s[1] & 0xe0) == 0x80) ||
                                      ^      ~~~~
/datasets/git/utf8.c:153:32: warning: 0xe0 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                    (s[0] == 0xe0 && (s[1] & 0xe0) == 0x80) ||
                                             ^
/datasets/git/utf8.c:153:41: warning: 0x80 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                    (s[0] == 0xe0 && (s[1] & 0xe0) == 0x80) ||
                                                      ^
/datasets/git/utf8.c:155:16: warning: 0xed is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                    (s[0] == 0xed && (s[1] & 0xe0) == 0xa0) ||
                             ^
/datasets/git/utf8.c:155:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (s[0] == 0xed && (s[1] & 0xe0) == 0xa0) ||
                                      ^      ~~~~
/datasets/git/utf8.c:155:32: warning: 0xe0 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                    (s[0] == 0xed && (s[1] & 0xe0) == 0xa0) ||
                                             ^
/datasets/git/utf8.c:155:41: warning: 0xa0 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                    (s[0] == 0xed && (s[1] & 0xe0) == 0xa0) ||
                                                      ^
/datasets/git/utf8.c:157:16: warning: 0xef is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                    (s[0] == 0xef && s[1] == 0xbf &&
                             ^
/datasets/git/utf8.c:157:32: warning: 0xbf is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                    (s[0] == 0xef && s[1] == 0xbf &&
                                             ^
/datasets/git/utf8.c:158:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                     (s[2] & 0xfe) == 0xbe))
                      ^      ~~~~
/datasets/git/utf8.c:158:16: warning: 0xfe is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                     (s[2] & 0xfe) == 0xbe))
                             ^
/datasets/git/utf8.c:158:25: warning: 0xbe is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                     (s[2] & 0xfe) == 0xbe))
                                      ^
/datasets/git/utf8.c:158:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                     (s[2] & 0xfe) == 0xbe))
                                            ^
                                             {
/datasets/git/utf8.c:160:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ch = ((s[0] & 0x0f) << 12) |
                     ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/utf8.c:160:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ch = ((s[0] & 0x0f) << 12) |
                      ^~~~~~~~~~~~~
/datasets/git/utf8.c:160:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ch = ((s[0] & 0x0f) << 12) |
                       ^      ~~~~
/datasets/git/utf8.c:160:17: warning: 0x0f is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                ch = ((s[0] & 0x0f) << 12) |
                              ^
/datasets/git/utf8.c:160:26: warning: 12 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                ch = ((s[0] & 0x0f) << 12) |
                                       ^
/datasets/git/utf8.c:161:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ((s[1] & 0x3f) << 6) | (s[2] & 0x3f);
                         ^~~~~~~~~~~~~
/datasets/git/utf8.c:161:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ((s[1] & 0x3f) << 6) | (s[2] & 0x3f);
                          ^      ~~~~
/datasets/git/utf8.c:161:13: warning: 0x3f is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        ((s[1] & 0x3f) << 6) | (s[2] & 0x3f);
                                 ^
/datasets/git/utf8.c:161:22: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        ((s[1] & 0x3f) << 6) | (s[2] & 0x3f);
                                          ^
/datasets/git/utf8.c:161:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ((s[1] & 0x3f) << 6) | (s[2] & 0x3f);
                                                ^      ~~~~
/datasets/git/utf8.c:161:35: warning: 0x3f is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        ((s[1] & 0x3f) << 6) | (s[2] & 0x3f);
                                                       ^
/datasets/git/utf8.c:163:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        } else if ((s[0] & 0xf8) == 0xf0) {
                    ^      ~~~~
/datasets/git/utf8.c:163:21: warning: 0xf8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        } else if ((s[0] & 0xf8) == 0xf0) {
                           ^
/datasets/git/utf8.c:163:30: warning: 0xf0 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        } else if ((s[0] & 0xf8) == 0xf0) {
                                    ^
/datasets/git/utf8.c:166:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (s[1] & 0xc0) != 0x80 ||
                     ^      ~~~~
/datasets/git/utf8.c:166:15: warning: 0xc0 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                    (s[1] & 0xc0) != 0x80 ||
                            ^
/datasets/git/utf8.c:166:24: warning: 0x80 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                    (s[1] & 0xc0) != 0x80 ||
                                     ^
/datasets/git/utf8.c:167:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (s[2] & 0xc0) != 0x80 ||
                     ^      ~~~~
/datasets/git/utf8.c:167:15: warning: 0xc0 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                    (s[2] & 0xc0) != 0x80 ||
                            ^
/datasets/git/utf8.c:167:24: warning: 0x80 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                    (s[2] & 0xc0) != 0x80 ||
                                     ^
/datasets/git/utf8.c:168:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (s[3] & 0xc0) != 0x80 ||
                     ^      ~~~~
/datasets/git/utf8.c:168:15: warning: 0xc0 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                    (s[3] & 0xc0) != 0x80 ||
                            ^
/datasets/git/utf8.c:168:24: warning: 0x80 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                    (s[3] & 0xc0) != 0x80 ||
                                     ^
/datasets/git/utf8.c:170:16: warning: 0xf0 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                    (s[0] == 0xf0 && (s[1] & 0xf0) == 0x80) ||
                             ^
/datasets/git/utf8.c:170:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                    (s[0] == 0xf0 && (s[1] & 0xf0) == 0x80) ||
                                      ^      ~~~~
/datasets/git/utf8.c:170:32: warning: 0xf0 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                    (s[0] == 0xf0 && (s[1] & 0xf0) == 0x80) ||
                                             ^
/datasets/git/utf8.c:170:41: warning: 0x80 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                    (s[0] == 0xf0 && (s[1] & 0xf0) == 0x80) ||
                                                      ^
/datasets/git/utf8.c:172:16: warning: 0xf4 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                    (s[0] == 0xf4 && s[1] > 0x8f) || s[0] > 0xf4)
                             ^
/datasets/git/utf8.c:172:31: warning: 0x8f is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                    (s[0] == 0xf4 && s[1] > 0x8f) || s[0] > 0xf4)
                                            ^
/datasets/git/utf8.c:172:47: warning: 0xf4 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                    (s[0] == 0xf4 && s[1] > 0x8f) || s[0] > 0xf4)
                                                            ^
/datasets/git/utf8.c:172:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    (s[0] == 0xf4 && s[1] > 0x8f) || s[0] > 0xf4)
                                                                 ^
                                                                  {
/datasets/git/utf8.c:174:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ch = ((s[0] & 0x07) << 18) | ((s[1] & 0x3f) << 12) |
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/utf8.c:174:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ch = ((s[0] & 0x07) << 18) | ((s[1] & 0x3f) << 12) |
                      ^~~~~~~~~~~~~
/datasets/git/utf8.c:174:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ch = ((s[0] & 0x07) << 18) | ((s[1] & 0x3f) << 12) |
                       ^      ~~~~
/datasets/git/utf8.c:174:17: warning: 0x07 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                ch = ((s[0] & 0x07) << 18) | ((s[1] & 0x3f) << 12) |
                              ^
/datasets/git/utf8.c:174:26: warning: 18 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                ch = ((s[0] & 0x07) << 18) | ((s[1] & 0x3f) << 12) |
                                       ^
/datasets/git/utf8.c:174:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ch = ((s[0] & 0x07) << 18) | ((s[1] & 0x3f) << 12) |
                                              ^~~~~~~~~~~~~
/datasets/git/utf8.c:174:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ch = ((s[0] & 0x07) << 18) | ((s[1] & 0x3f) << 12) |
                                               ^      ~~~~
/datasets/git/utf8.c:174:41: warning: 0x3f is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                ch = ((s[0] & 0x07) << 18) | ((s[1] & 0x3f) << 12) |
                                                      ^
/datasets/git/utf8.c:174:50: warning: 12 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                ch = ((s[0] & 0x07) << 18) | ((s[1] & 0x3f) << 12) |
                                                               ^
/datasets/git/utf8.c:175:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ((s[2] & 0x3f) << 6) | (s[3] & 0x3f);
                         ^~~~~~~~~~~~~
/datasets/git/utf8.c:175:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ((s[2] & 0x3f) << 6) | (s[3] & 0x3f);
                          ^      ~~~~
/datasets/git/utf8.c:175:13: warning: 0x3f is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        ((s[2] & 0x3f) << 6) | (s[3] & 0x3f);
                                 ^
/datasets/git/utf8.c:175:22: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        ((s[2] & 0x3f) << 6) | (s[3] & 0x3f);
                                          ^
/datasets/git/utf8.c:175:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        ((s[2] & 0x3f) << 6) | (s[3] & 0x3f);
                                                ^      ~~~~
/datasets/git/utf8.c:175:35: warning: 0x3f is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        ((s[2] & 0x3f) << 6) | (s[3] & 0x3f);
                                                       ^
/datasets/git/utf8.c:184:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (remainder_p)
                        ^
                         {
/datasets/git/utf8.c:198:13: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
        ucs_char_t ch = pick_one_utf8_char(start, remainder_p);
                   ^
/datasets/git/utf8.c:199:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!*start)
                    ^
                     {
/datasets/git/utf8.c:209:40: warning: 2 adjacent parameters of 'utf8_strnwidth' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
int utf8_strnwidth(const char *string, int len, int skip_ansi)
                                       ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/utf8.c:209:44: note: the first parameter in the range is 'len'
int utf8_strnwidth(const char *string, int len, int skip_ansi)
                                           ^~~
/datasets/git/utf8.c:209:53: note: the last parameter in the range is 'skip_ansi'
int utf8_strnwidth(const char *string, int len, int skip_ansi)
                                                    ^~~~~~~~~
/datasets/git/utf8.c:214:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len == -1)
                      ^
                       {
/datasets/git/utf8.c:215:9: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                len = strlen(string);
                      ^
/datasets/git/utf8.c:216:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'string' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (string && string < orig + len) {
               ^
/datasets/git/utf8.c:217:7: warning: variable 'skip' is not initialized [cppcoreguidelines-init-variables]
                int skip;
                    ^
                         = 0
/datasets/git/utf8.c:218:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (skip_ansi &&
                ^
/datasets/git/utf8.c:218:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'skip' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (skip_ansi &&
                       ^
/datasets/git/utf8.c:219:18: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                       (skip = display_mode_esc_sequence_len(string)) != 0)
                               ^
/datasets/git/utf8.c:219:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                       (skip = display_mode_esc_sequence_len(string)) != 0)
                                                                           ^
                                                                            {
/datasets/git/utf8.c:233:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*text) {
        ^
/datasets/git/utf8.c:239:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!text)
                          ^
                           {
/datasets/git/utf8.c:248:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (indent < 0)
                       ^
                        {
/datasets/git/utf8.c:250:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (*text) {
        ^
/datasets/git/utf8.c:250:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'text' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (*text) {
               ^
/datasets/git/utf8.c:252:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*eol == '\n')
                                 ^
                                  {
/datasets/git/utf8.c:267:6: warning: function 'strbuf_add_wrapped_text' has cognitive complexity of 47 (threshold 25) [readability-function-cognitive-complexity]
void strbuf_add_wrapped_text(struct strbuf *buf,
     ^
/datasets/git/utf8.c:274:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (width <= 0) {
        ^
/datasets/git/utf8.c:283:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (indent < 0) {
        ^
/datasets/git/utf8.c:288:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (;;) {
        ^
/datasets/git/utf8.c:292:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while ((skip = display_mode_esc_sequence_len(text)))
                ^
/datasets/git/utf8.c:296:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!c || isspace(c)) {
                ^
/datasets/git/utf8.c:296:10: note: +1
                if (!c || isspace(c)) {
                       ^
/datasets/git/utf8.c:297:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (w <= width || !space) {
                        ^
/datasets/git/utf8.c:297:19: note: +1
                        if (w <= width || !space) {
                                       ^
/datasets/git/utf8.c:299:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!c && text == start)
                                ^
/datasets/git/utf8.c:299:12: note: +1
                                if (!c && text == start)
                                       ^
/datasets/git/utf8.c:301:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (space)
                                ^
/datasets/git/utf8.c:303:5: note: +1, nesting level increased to 4
                                else
                                ^
/datasets/git/utf8.c:306:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!c)
                                ^
/datasets/git/utf8.c:309:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (c == '\t')
                                ^
/datasets/git/utf8.c:311:10: note: +1, nesting level increased to 4
                                else if (c == '\n') {
                                     ^
/datasets/git/utf8.c:313:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (*space == '\n') {
                                        ^
/datasets/git/utf8.c:315:7: note: +1
                                                goto new_line;
                                                ^
/datasets/git/utf8.c:317:11: note: +1, nesting level increased to 5
                                        else if (!isalnum(*space))
                                             ^
/datasets/git/utf8.c:319:6: note: +1, nesting level increased to 5
                                        else
                                        ^
/datasets/git/utf8.c:325:4: note: +1, nesting level increased to 3
                        else {
                        ^
/datasets/git/utf8.c:334:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (assume_utf8) {
                ^
/datasets/git/utf8.c:336:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!text) {
                        ^
/datasets/git/utf8.c:340:5: note: +1
                                goto retry;
                                ^
/datasets/git/utf8.c:342:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/utf8.c:268:34: warning: 2 adjacent parameters of 'strbuf_add_wrapped_text' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                const char *text, int indent1, int indent2, int width)
                                               ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/utf8.c:268:38: note: the first parameter in the range is 'indent2'
                const char *text, int indent1, int indent2, int width)
                                                   ^~~~~~~
/datasets/git/utf8.c:268:51: note: the last parameter in the range is 'width'
                const char *text, int indent1, int indent2, int width)
                                                                ^~~~~
/datasets/git/utf8.c:270:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int indent, w, assume_utf8 = 1;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/utf8.c:270:6: warning: variable 'indent' is not initialized [cppcoreguidelines-init-variables]
        int indent, w, assume_utf8 = 1;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/utf8.c:270:14: warning: variable 'w' is not initialized [cppcoreguidelines-init-variables]
        int indent, w, assume_utf8 = 1;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/utf8.c:270:14: warning: variable name 'w' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/utf8.c:271:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *bol, *space, *start = text;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/utf8.c:271:14: warning: variable 'bol' is not initialized [cppcoreguidelines-init-variables]
        const char *bol, *space, *start = text;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/utf8.c:271:20: warning: variable 'space' is not initialized [cppcoreguidelines-init-variables]
        const char *bol, *space, *start = text;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/utf8.c:289:8: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
                char c;
                     ^
                       = 0
/datasets/git/utf8.c:289:8: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/utf8.c:290:10: warning: variable 'skip' is not initialized [cppcoreguidelines-init-variables]
                size_t skip;
                       ^
                            = 0
/datasets/git/utf8.c:292:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while ((skip = display_mode_esc_sequence_len(text)))
                ^
/datasets/git/utf8.c:292:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'skip' and may cause performance degradation [altera-id-dependent-backward-branch]
                while ((skip = display_mode_esc_sequence_len(text)))
                       ^
/datasets/git/utf8.c:292:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while ((skip = display_mode_esc_sequence_len(text)))
                                                                    ^
                                                                     {
/datasets/git/utf8.c:296:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!c || isspace(c)) {
                          ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/utf8.c:299:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!c && text == start)
                                                        ^
                                                         {
/datasets/git/utf8.c:301:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (space)
                                          ^
                                           {
/datasets/git/utf8.c:303:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                else
                                    ^
                                     {
/datasets/git/utf8.c:306:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!c)
                                       ^
                                        {
/datasets/git/utf8.c:309:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (c == '\t')
                                              ^
                                               {
/datasets/git/utf8.c:310:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        w |= 0x07;
                                        ^
/datasets/git/utf8.c:310:11: warning: 0x07 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                        w |= 0x07;
                                             ^
/datasets/git/utf8.c:317:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        else if (!isalnum(*space))
                                                  ^
/datasets/git/./git-compat-util.h:1220:20: note: expanded from macro 'isalnum'
#define isalnum(x) sane_istest(x,GIT_ALPHA | GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/utf8.c:317:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        else if (!isalnum(*space))
                                                                  ^
                                                                   {
/datasets/git/utf8.c:319:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        else
                                            ^
                                             {
/datasets/git/utf8.c:328:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                text = bol = space + isspace(*space);
                                                     ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/utf8.c:349:69: warning: 2 adjacent parameters of 'strbuf_add_wrapped_bytes' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
void strbuf_add_wrapped_bytes(struct strbuf *buf, const char *data, int len,
                                                                    ^~~~~~~~
/datasets/git/utf8.c:349:73: note: the first parameter in the range is 'len'
void strbuf_add_wrapped_bytes(struct strbuf *buf, const char *data, int len,
                                                                        ^~~
/datasets/git/utf8.c:350:13: note: the last parameter in the range is 'indent'
                             int indent, int indent2, int width)
                                 ^~~~~~
/datasets/git/utf8.c:363:8: warning: variable 'dst' is not initialized [cppcoreguidelines-init-variables]
        char *dst;
              ^
                  = NULL
/datasets/git/utf8.c:364:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int w = 0, subst_len = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/utf8.c:364:6: warning: variable name 'w' is too short, expected at least 3 characters [readability-identifier-length]
        int w = 0, subst_len = 0;
            ^
/datasets/git/utf8.c:366:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (subst)
                  ^
                   {
/datasets/git/utf8.c:367:15: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                subst_len = strlen(subst);
                            ^
/datasets/git/utf8.c:371:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'src' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (src < end) {
               ^
/datasets/git/utf8.c:372:9: warning: variable 'old' is not initialized [cppcoreguidelines-init-variables]
                char *old;
                      ^
                          = NULL
/datasets/git/utf8.c:373:10: warning: variable 'n' is not initialized [cppcoreguidelines-init-variables]
                size_t n;
                       ^
                         = 0
/datasets/git/utf8.c:373:10: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/utf8.c:375:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while ((n = display_mode_esc_sequence_len(src))) {
                ^
/datasets/git/utf8.c:375:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'n' and may cause performance degradation [altera-id-dependent-backward-branch]
                while ((n = display_mode_esc_sequence_len(src))) {
                       ^
/datasets/git/utf8.c:376:4: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memcpy(dst, src, n);
                        ^~~~~~
/datasets/git/utf8.c:376:4: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                        memcpy(dst, src, n);
                        ^~~~~~
/datasets/git/utf8.c:381:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (src >= end)
                               ^
                                {
/datasets/git/utf8.c:386:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!src)       /* broken utf-8, do nothing */
                         ^
                          {
/datasets/git/utf8.c:390:5: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                                memcpy(dst, subst, subst_len);
                                ^~~~~~
/datasets/git/utf8.c:390:5: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                                memcpy(dst, subst, subst_len);
                                ^~~~~~
/datasets/git/utf8.c:394:9: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        w += n;
                             ^
/datasets/git/utf8.c:397:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(dst, old, src - old);
                ^~~~~~
/datasets/git/utf8.c:397:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(dst, old, src - old);
                ^~~~~~
/datasets/git/utf8.c:399:8: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                w += n;
                     ^
/datasets/git/utf8.c:424:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!name)
                  ^
                   {
/datasets/git/utf8.c:426:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (same_utf_encoding("utf-8", name))
                                             ^
                                              {
/datasets/git/utf8.c:435:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!src)
                 ^
                  {
/datasets/git/utf8.c:437:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!dst)
                 ^
                  {
/datasets/git/utf8.c:439:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (same_utf_encoding(src, dst))
                                        ^
                                         {
/datasets/git/utf8.c:452:6: warning: variable 'columns' is not initialized [cppcoreguidelines-init-variables]
        int columns;
            ^
                    = 0
/datasets/git/utf8.c:459:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (0 <= columns) /* keep the error from the I/O */
                         ^
                          {
/datasets/git/utf8.c:475:41: warning: parameter name 'in' is too short, expected at least 3 characters [readability-identifier-length]
char *reencode_string_iconv(const char *in, size_t insz, iconv_t conv,
                                        ^
/datasets/git/utf8.c:478:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        size_t outsz, outalloc;
        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/utf8.c:478:9: warning: variable 'outsz' is not initialized [cppcoreguidelines-init-variables]
        size_t outsz, outalloc;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/utf8.c:478:16: warning: variable 'outalloc' is not initialized [cppcoreguidelines-init-variables]
        size_t outsz, outalloc;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/utf8.c:479:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *out, *outpos;
        ^~~~~~~~~~~~~~~~~~~
/datasets/git/utf8.c:479:8: warning: variable 'out' is not initialized [cppcoreguidelines-init-variables]
        char *out, *outpos;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/utf8.c:479:14: warning: variable 'outpos' is not initialized [cppcoreguidelines-init-variables]
        char *out, *outpos;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/utf8.c:480:12: warning: variable 'cp' is not initialized [cppcoreguidelines-init-variables]
        iconv_ibp cp;
                  ^
                     = NULL
/datasets/git/utf8.c:480:12: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/utf8.c:488:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/utf8.c:492:11: warning: variable 'sofar' is not initialized [cppcoreguidelines-init-variables]
                        size_t sofar;
                               ^
                                     = 0
/datasets/git/utf8.c:510:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (outsz_p)
                                    ^
                                     {
/datasets/git/utf8.c:527:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_encoding_utf8(name))
                                   ^
                                    {
/datasets/git/utf8.c:534:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!strcasecmp(name, "latin-1"))
                                         ^
                                          {
/datasets/git/utf8.c:540:39: warning: parameter name 'in' is too short, expected at least 3 characters [readability-identifier-length]
char *reencode_string_len(const char *in, size_t insz,
                                      ^
/datasets/git/utf8.c:544:10: warning: variable 'conv' is not initialized [cppcoreguidelines-init-variables]
        iconv_t conv;
                ^
                     = NULL
/datasets/git/utf8.c:545:8: warning: variable 'out' is not initialized [cppcoreguidelines-init-variables]
        char *out;
              ^
                  = NULL
/datasets/git/utf8.c:549:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!in_encoding)
                         ^
                          {
/datasets/git/utf8.c:553:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (same_utf_encoding("UTF-16LE-BOM", in_encoding))
                                                           ^
                                                            {
/datasets/git/utf8.c:585:14: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
        if (conv == (iconv_t) -1) {
                    ^
/datasets/git/utf8.c:590:15: warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]
                if (conv == (iconv_t) -1)
                            ^
/datasets/git/utf8.c:590:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (conv == (iconv_t) -1)
                                         ^
                                          {
/datasets/git/utf8.c:595:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (out && bom_str && bom_len)
                                      ^
                                       {
/datasets/git/utf8.c:596:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(out, bom_str, bom_len);
                ^~~~~~
/datasets/git/utf8.c:596:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(out, bom_str, bom_len);
                ^~~~~~
/datasets/git/utf8.c:646:6: warning: variable 'chrlen' is not initialized [cppcoreguidelines-init-variables]
        int chrlen;
            ^
                   = 0
/datasets/git/utf8.c:647:14: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        const char *p = *text;
                    ^
/datasets/git/utf8.c:648:9: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
        size_t r = (remainder_p ? *remainder_p : SIZE_MAX);
               ^
/datasets/git/utf8.c:650:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (r < 1)
                  ^
                   {
/datasets/git/utf8.c:656:16: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                chrlen = p ? (p - *text)
                             ^
/datasets/git/utf8.c:668:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (remainder_p)
                        ^
                         {
/datasets/git/utf8.c:679:46: warning: parameter name 'in' is too short, expected at least 3 characters [readability-identifier-length]
static ucs_char_t next_hfs_char(const char **in)
                                             ^
/datasets/git/utf8.c:681:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/utf8.c:689:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!*in)
                         ^
                          {
/datasets/git/utf8.c:693:3: warning: potential uncovered code path; add a default label [hicpp-multiway-paths-covered]
                switch (out) {
                ^
/datasets/git/utf8.c:694:8: warning: 0x200c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                case 0x200c: /* ZERO WIDTH NON-JOINER */
                     ^
/datasets/git/utf8.c:695:8: warning: 0x200d is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                case 0x200d: /* ZERO WIDTH JOINER */
                     ^
/datasets/git/utf8.c:696:8: warning: 0x200e is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                case 0x200e: /* LEFT-TO-RIGHT MARK */
                     ^
/datasets/git/utf8.c:697:8: warning: 0x200f is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                case 0x200f: /* RIGHT-TO-LEFT MARK */
                     ^
/datasets/git/utf8.c:698:8: warning: 0x202a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                case 0x202a: /* LEFT-TO-RIGHT EMBEDDING */
                     ^
/datasets/git/utf8.c:699:8: warning: 0x202b is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                case 0x202b: /* RIGHT-TO-LEFT EMBEDDING */
                     ^
/datasets/git/utf8.c:700:8: warning: 0x202c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                case 0x202c: /* POP DIRECTIONAL FORMATTING */
                     ^
/datasets/git/utf8.c:701:8: warning: 0x202d is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                case 0x202d: /* LEFT-TO-RIGHT OVERRIDE */
                     ^
/datasets/git/utf8.c:702:8: warning: 0x202e is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                case 0x202e: /* RIGHT-TO-LEFT OVERRIDE */
                     ^
/datasets/git/utf8.c:703:8: warning: 0x206a is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                case 0x206a: /* INHIBIT SYMMETRIC SWAPPING */
                     ^
/datasets/git/utf8.c:704:8: warning: 0x206b is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                case 0x206b: /* ACTIVATE SYMMETRIC SWAPPING */
                     ^
/datasets/git/utf8.c:705:8: warning: 0x206c is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                case 0x206c: /* INHIBIT ARABIC FORM SHAPING */
                     ^
/datasets/git/utf8.c:706:8: warning: 0x206d is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                case 0x206d: /* ACTIVATE ARABIC FORM SHAPING */
                     ^
/datasets/git/utf8.c:707:8: warning: 0x206e is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                case 0x206e: /* NATIONAL DIGIT SHAPES */
                     ^
/datasets/git/utf8.c:708:8: warning: 0x206f is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                case 0x206f: /* NOMINAL DIGIT SHAPES */
                     ^
/datasets/git/utf8.c:709:8: warning: 0xfeff is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                case 0xfeff: /* ZERO WIDTH NO-BREAK SPACE */
                     ^
/datasets/git/utf8.c:717:31: warning: 2 adjacent parameters of 'is_hfs_dot_generic' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int is_hfs_dot_generic(const char *path,
                              ^~~~~~~~~~~~~~~~~
/datasets/git/utf8.c:717:43: note: the first parameter in the range is 'path'
static int is_hfs_dot_generic(const char *path,
                                          ^~~~
/datasets/git/utf8.c:718:22: note: the last parameter in the range is 'needle'
                              const char *needle, size_t needle_len)
                                          ^~~~~~
/datasets/git/utf8.c:720:13: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        ucs_char_t c;
                   ^
                     = 0
/datasets/git/utf8.c:720:13: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/utf8.c:723:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (c != '.')
                     ^
                      {
/datasets/git/utf8.c:731:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; needle_len > 0; needle++, needle_len--) {
        ^
/datasets/git/utf8.c:738:11: warning: 127 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (c > 127)
                        ^
/datasets/git/utf8.c:738:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (c > 127)
                            ^
                             {
/datasets/git/utf8.c:740:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (tolower(c) != *needle)
                                          ^
                                           {
/datasets/git/utf8.c:745:23: warning: narrowing conversion from 'ucs_char_t' (aka 'unsigned int') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        if (c && !is_dir_sep(c))
                             ^
/datasets/git/utf8.c:745:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (c && !is_dir_sep(c))
                                ^
                                 {
/datasets/git/utf8.c:790:6: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
            memcmp(*text, utf8_bom, strlen(utf8_bom)))
            ^
                                                      != 0
/datasets/git/utf8.c:790:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            memcmp(*text, utf8_bom, strlen(utf8_bom)))
                                                      ^
                                                       {
/datasets/git/utf8.c:796:44: warning: 2 adjacent parameters of 'strbuf_utf8_align' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
void strbuf_utf8_align(struct strbuf *buf, align_type position, unsigned int width,
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/utf8.c:796:55: note: the first parameter in the range is 'position'
void strbuf_utf8_align(struct strbuf *buf, align_type position, unsigned int width,
                                                      ^~~~~~~~
/datasets/git/utf8.c:796:78: note: the last parameter in the range is 'width'
void strbuf_utf8_align(struct strbuf *buf, align_type position, unsigned int width,
                                                                             ^~~~~
/datasets/git/utf8.c:796:44: note: 
void strbuf_utf8_align(struct strbuf *buf, align_type position, unsigned int width,
                                           ^
/datasets/git/utf8.c:796:65: note: 'align_type' and 'unsigned int' may be implicitly converted
void strbuf_utf8_align(struct strbuf *buf, align_type position, unsigned int width,
                                                                ^
/datasets/git/utf8.c:797:22: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
                       const char *s)
                                   ^
/datasets/git/utf8.c:799:13: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int slen = strlen(s);
                   ^
/datasets/git/utf8.c:808:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (position == ALIGN_LEFT)
                                   ^
                                    {
/datasets/git/utf8.c:811:14: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int left = (width - display_len) / 2;
                           ^
/datasets/git/utf8.c:813:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else if (position == ALIGN_RIGHT)
                                           ^
                                            {
varint.c:7:16: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned char c = *buf++;
                      ^
/datasets/git/varint.c:8:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        uintmax_t val = c & 127;
                        ^   ~~~
/datasets/git/varint.c:8:22: warning: 127 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        uintmax_t val = c & 127;
                            ^
/datasets/git/varint.c:9:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (c & 128) {
        ^
/datasets/git/varint.c:9:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'c' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (c & 128) {
               ^
/datasets/git/varint.c:9:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        while (c & 128) {
               ^   ~~~
/datasets/git/varint.c:9:13: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        while (c & 128) {
                   ^
/datasets/git/varint.c:11:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!val || MSB(val, 7))
                                        ^
                                         {
/datasets/git/varint.c:14:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                val = (val << 7) + (c & 127);
                       ^      ~
/datasets/git/varint.c:14:17: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                val = (val << 7) + (c & 127);
                              ^
/datasets/git/varint.c:14:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                val = (val << 7) + (c & 127);
                                    ^   ~~~
/datasets/git/varint.c:14:27: warning: 127 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                val = (val << 7) + (c & 127);
                                        ^
/datasets/git/varint.c:22:23: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        unsigned char varint[16];
                             ^
/datasets/git/varint.c:24:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        varint[pos] = value & 127;
                      ^       ~~~
/datasets/git/varint.c:24:24: warning: 127 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        varint[pos] = value & 127;
                              ^
/datasets/git/varint.c:25:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (value >>= 7)
        ^
/datasets/git/varint.c:25:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        while (value >>= 7)
               ^         ~
/datasets/git/varint.c:25:19: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        while (value >>= 7)
                         ^
/datasets/git/varint.c:25:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (value >>= 7)
                           ^
                            {
/datasets/git/varint.c:26:19: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                varint[--pos] = 128 | (--value & 127);
                                ^
/datasets/git/varint.c:26:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                varint[--pos] = 128 | (--value & 127);
                                ^~~
/datasets/git/varint.c:26:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                varint[--pos] = 128 | (--value & 127);
                                       ^         ~~~
/datasets/git/varint.c:26:36: warning: 127 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                varint[--pos] = 128 | (--value & 127);
                                                 ^
/datasets/git/varint.c:27:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (buf)
                ^
                 {
/datasets/git/varint.c:28:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(buf, varint + pos, sizeof(varint) - pos);
                ^~~~~~
/datasets/git/varint.c:28:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(buf, varint + pos, sizeof(varint) - pos);
                ^~~~~~
/datasets/git/varint.c:29:9: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return sizeof(varint) - pos;
               ^
/datasets/git/version.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "version.h"
^        ~~~~~~~~~~~
         "strbuf.h"
/datasets/git/version.c:13:11: warning: function is not thread safe [concurrency-mt-unsafe]
                agent = getenv("GIT_USER_AGENT");
                        ^
/datasets/git/version.c:26:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                struct strbuf buf = STRBUF_INIT;
                ^
/datasets/git/version.c:14:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!agent)
                           ^
                            {
/datasets/git/version.c:27:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/version.c:27:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/version.c:31:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < buf.len; i++) {
                ^
/datasets/git/version.c:31:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'buf' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < buf.len; i++) {
                            ^
/datasets/git/version.c:32:22: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        if (buf.buf[i] <= 32 || buf.buf[i] >= 127)
                                          ^
/datasets/git/version.c:32:42: warning: 127 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        if (buf.buf[i] <= 32 || buf.buf[i] >= 127)
                                                              ^
/datasets/git/version.c:32:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (buf.buf[i] <= 32 || buf.buf[i] >= 127)
                                                                  ^
                                                                   {
/datasets/git/versioncmp.c:16:1: warning: replace macro with enum [modernize-macro-to-enum]
#define  S_N    0x0
^~~~~~~~~
             =     ,
/datasets/git/versioncmp.c:16:10: warning: macro 'S_N' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define  S_N    0x0
         ^
/datasets/git/versioncmp.c:17:10: warning: macro 'S_I' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define  S_I    0x3
         ^
/datasets/git/versioncmp.c:18:10: warning: macro 'S_F' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define  S_F    0x6
         ^
/datasets/git/versioncmp.c:19:10: warning: macro 'S_Z' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define  S_Z    0x9
         ^
/datasets/git/versioncmp.c:22:1: warning: replace macro with enum [modernize-macro-to-enum]
#define  CMP    2
^~~~~~~~~
             =   ,
/datasets/git/versioncmp.c:22:10: warning: macro 'CMP' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define  CMP    2
         ^
/datasets/git/versioncmp.c:23:10: warning: macro 'LEN' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define  LEN    3
         ^
/datasets/git/versioncmp.c:25:34: warning: variable 'prereleases' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static const struct string_list *prereleases;
                                 ^
/datasets/git/versioncmp.c:26:12: warning: variable 'initialized' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static int initialized;
           ^
/datasets/git/versioncmp.c:28:8: warning: accessing fields in struct 'suffix_match' is inefficient due to poor alignment; currently aligned to 4 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct suffix_match {
       ^
/datasets/git/versioncmp.c:28:8: note: use "__attribute__((aligned(16)))" to align struct 'suffix_match' to 16 bytes
/datasets/git/versioncmp.c:35:6: warning: 3 adjacent parameters of 'find_better_matching_suffix' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                        int suffix_len, int start, int conf_pos,
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/versioncmp.c:35:10: note: the first parameter in the range is 'suffix_len'
                                        int suffix_len, int start, int conf_pos,
                                            ^~~~~~~~~~
/datasets/git/versioncmp.c:35:37: note: the last parameter in the range is 'conf_pos'
                                        int suffix_len, int start, int conf_pos,
                                                                       ^~~~~~~~
/datasets/git/versioncmp.c:43:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/versioncmp.c:43:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/versioncmp.c:44:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = start; i <= end; i++)
        ^
/datasets/git/versioncmp.c:44:18: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = start; i <= end; i++)
                        ^
/datasets/git/versioncmp.c:44:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = start; i <= end; i++)
                                      ^
                                       {
/datasets/git/versioncmp.c:71:41: warning: parameter name 's1' is too short, expected at least 3 characters [readability-identifier-length]
static int swap_prereleases(const char *s1,
                                        ^
/datasets/git/versioncmp.c:72:20: warning: parameter name 's2' is too short, expected at least 3 characters [readability-identifier-length]
                            const char *s2,
                                        ^
/datasets/git/versioncmp.c:76:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/versioncmp.c:76:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/versioncmp.c:80:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < prereleases->nr; i++) {
        ^
/datasets/git/versioncmp.c:82:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int start, suffix_len = strlen(suffix);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/versioncmp.c:82:7: warning: variable 'start' is not initialized [cppcoreguidelines-init-variables]
                int start, suffix_len = strlen(suffix);
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/versioncmp.c:82:27: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int start, suffix_len = strlen(suffix);
                                        ^
/datasets/git/versioncmp.c:83:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (suffix_len < off)
                                     ^
                                      {
/datasets/git/versioncmp.c:85:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/versioncmp.c:92:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (match1.conf_pos == -1 && match2.conf_pos == -1)
                                                           ^
                                                            {
/datasets/git/versioncmp.c:94:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (match1.conf_pos == match2.conf_pos)
                                               ^
                                                {
/datasets/git/versioncmp.c:100:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (match1.conf_pos >= 0 && match2.conf_pos >= 0)
                                                         ^
                                                          {
/datasets/git/versioncmp.c:102:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (match1.conf_pos >= 0)
                                      ^
                                       {
/datasets/git/versioncmp.c:104:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else /* if (match2.conf_pos >= 0) */
            ^
             {
/datasets/git/versioncmp.c:116:28: warning: parameter name 's1' is too short, expected at least 3 characters [readability-identifier-length]
int versioncmp(const char *s1, const char *s2)
                           ^
/datasets/git/versioncmp.c:116:44: warning: parameter name 's2' is too short, expected at least 3 characters [readability-identifier-length]
int versioncmp(const char *s1, const char *s2)
                                           ^
/datasets/git/versioncmp.c:118:23: warning: variable name 'p1' is too short, expected at least 3 characters [readability-identifier-length]
        const unsigned char *p1 = (const unsigned char *) s1;
                             ^
/datasets/git/versioncmp.c:119:23: warning: variable name 'p2' is too short, expected at least 3 characters [readability-identifier-length]
        const unsigned char *p2 = (const unsigned char *) s2;
                             ^
/datasets/git/versioncmp.c:120:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned char c1, c2;
        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/versioncmp.c:120:16: warning: variable 'c1' is not initialized [cppcoreguidelines-init-variables]
        unsigned char c1, c2;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/versioncmp.c:120:16: warning: variable name 'c1' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/versioncmp.c:120:20: warning: variable 'c2' is not initialized [cppcoreguidelines-init-variables]
        unsigned char c1, c2;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/versioncmp.c:120:20: warning: variable name 'c2' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/versioncmp.c:121:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int state, diff;
        ^~~~~~~~~~~~~~~~
/datasets/git/versioncmp.c:121:6: warning: variable 'state' is not initialized [cppcoreguidelines-init-variables]
        int state, diff;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/versioncmp.c:121:13: warning: variable 'diff' is not initialized [cppcoreguidelines-init-variables]
        int state, diff;
                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/versioncmp.c:144:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (p1 == p2)
                     ^
                      {
/datasets/git/versioncmp.c:150:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        state = S_N + ((c1 == '0') + (isdigit (c1) != 0));
                                      ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/versioncmp.c:152:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((diff = c1 - c2) == 0) {
        ^
/datasets/git/versioncmp.c:152:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'diff' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((diff = c1 - c2) == 0) {
               ^
/datasets/git/versioncmp.c:153:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (c1 == '\0')
                               ^
                                {
/datasets/git/versioncmp.c:159:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                state += (c1 == '0') + (isdigit (c1) != 0);
                                        ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/versioncmp.c:163:29: warning: variable 'deprecated_prereleases' is not initialized [cppcoreguidelines-init-variables]
                const struct string_list *deprecated_prereleases;
                                          ^
                                                                 = NULL
/datasets/git/versioncmp.c:168:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (deprecated_prereleases)
                                                   ^
                                                    {
/datasets/git/versioncmp.c:170:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/versioncmp.c:173:46: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        if (prereleases && swap_prereleases(s1, s2, (const char *) p1 - s1 - 1,
                                                    ^
/datasets/git/versioncmp.c:174:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                            &diff))
                                                   ^
                                                    {
/datasets/git/versioncmp.c:177:10: warning: 'signed char' to 'int' conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse,cert-str34-c]
        state = result_type[state * 3 + (((c2 == '0') + (isdigit (c2) != 0)))];
                ^
/datasets/git/versioncmp.c:177:51: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        state = result_type[state * 3 + (((c2 == '0') + (isdigit (c2) != 0)))];
                                                         ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/versioncmp.c:184:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (isdigit (*p1++))
                ^
/datasets/git/versioncmp.c:184:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p1' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (isdigit (*p1++))
                       ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^
/datasets/git/./git-compat-util.h:1215:29: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                            ^
/datasets/git/versioncmp.c:184:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                while (isdigit (*p1++))
                       ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/versioncmp.c:184:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (isdigit (*p1++))
                                       ^
                                        {
/datasets/git/versioncmp.c:185:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (!isdigit (*p2++))
                             ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/versioncmp.c:185:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!isdigit (*p2++))
                                             ^
                                              {
/datasets/git/versioncmp.c:188:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                return isdigit (*p2) ? -1 : diff;
                       ^
/datasets/git/./git-compat-util.h:1218:20: note: expanded from macro 'isdigit'
#define isdigit(x) sane_istest(x,GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/walker.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "walker.h"
^        ~~~~~~~~~~
         "blob.h"
/datasets/git/walker.c:13:25: warning: variable 'current_commit_oid' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct object_id current_commit_oid;
                        ^
/datasets/git/walker.c:18:11: warning: variable name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
                va_list ap;
                        ^
/datasets/git/walker.c:20:3: warning: the value returned by this function should be used [cert-err33-c]
                vfprintf(stderr, fmt, ap);
                ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/walker.c:20:3: note: cast the expression to void to silence this warning
/datasets/git/walker.c:20:3: warning: Function 'vfprintf' is called with an uninitialized va_list argument [clang-analyzer-valist.Uninitialized]
                vfprintf(stderr, fmt, ap);
                ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/walker.c:17:6: note: Assuming field 'get_verbosely' is not equal to 0
        if (walker->get_verbosely) {
            ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/walker.c:17:2: note: Taking true branch
        if (walker->get_verbosely) {
        ^
/datasets/git/walker.c:20:3: note: Function 'vfprintf' is called with an uninitialized va_list argument
                vfprintf(stderr, fmt, ap);
                ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/walker.c:27:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(stderr, "Cannot obtain needed %s %s\n",
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/walker.c:27:2: note: cast the expression to void to silence this warning
/datasets/git/walker.c:30:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_null_oid(&current_commit_oid))
                                              ^
                                               {
/datasets/git/walker.c:31:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(stderr, "while processing commit %s.\n",
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/walker.c:31:3: note: cast the expression to void to silence this warning
/datasets/git/walker.c:42:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_tree(tree))
                             ^
                              {
/datasets/git/walker.c:46:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (tree_entry(&desc, &entry)) {
        ^
/datasets/git/walker.c:50:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (S_ISGITLINK(entry.mode))
                    ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/walker.c:50:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (S_ISGITLINK(entry.mode))
                                            ^
                                             {
/datasets/git/walker.c:55:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (tree)
                                 ^
                                  {
/datasets/git/walker.c:61:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (blob)
                                 ^
                                  {
/datasets/git/walker.c:64:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!obj || process(walker, obj))
                                                 ^
                                                  {
/datasets/git/walker.c:72:1: warning: replace macro with enum [modernize-macro-to-enum]
#define COMPLETE        (1U << 0)
^~~~~~~~
                 =               ,
/datasets/git/walker.c:72:9: warning: macro 'COMPLETE' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define COMPLETE        (1U << 0)
        ^
/datasets/git/walker.c:73:9: warning: macro 'SEEN' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define SEEN            (1U << 1)
        ^
/datasets/git/walker.c:74:9: warning: macro 'TO_SCAN' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define TO_SCAN         (1U << 2)
        ^
/datasets/git/walker.c:76:28: warning: variable 'complete' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct commit_list *complete = NULL;
                           ^
/datasets/git/walker.c:76:28: warning: variable 'complete' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/walker.c:80:22: warning: variable 'parents' is not initialized [cppcoreguidelines-init-variables]
        struct commit_list *parents;
                            ^
                                    = NULL
/datasets/git/walker.c:82:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_commit(commit))
                                 ^
                                  {
/datasets/git/walker.c:85:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (complete && complete->item->date >= commit->date) {
        ^
/datasets/git/walker.c:86:37: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                pop_most_recent_commit(&complete, COMPLETE);
                                                  ^
/datasets/git/walker.c:72:19: note: expanded from macro 'COMPLETE'
#define COMPLETE        (1U << 0)
                         ^     ~
/datasets/git/walker.c:89:29: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (commit->object.flags & COMPLETE)
                                   ^
/datasets/git/walker.c:72:19: note: expanded from macro 'COMPLETE'
#define COMPLETE        (1U << 0)
                         ^     ~
/datasets/git/walker.c:89:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (commit->object.flags & COMPLETE)
                                            ^
                                             {
/datasets/git/walker.c:96:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (process(walker, &get_commit_tree(commit)->object))
                                                              ^
                                                               {
/datasets/git/walker.c:99:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (parents = commit->parents; parents; parents = parents->next) {
        ^
/datasets/git/walker.c:99:34: warning: backward branch (for loop) is ID-dependent due to variable reference to 'parents' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (parents = commit->parents; parents; parents = parents->next) {
                                        ^
/datasets/git/walker.c:100:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (process(walker, &parents->item->object))
                                                            ^
                                                             {
/datasets/git/walker.c:109:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (parse_tag(tag))
                           ^
                            {
/datasets/git/walker.c:114:28: warning: variable 'process_queue' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct object_list *process_queue = NULL;
                           ^
/datasets/git/walker.c:114:28: warning: variable 'process_queue' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/walker.c:115:29: warning: variable 'process_queue_end' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static struct object_list **process_queue_end = &process_queue;
                            ^
/datasets/git/walker.c:115:29: warning: variable 'process_queue_end' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
/datasets/git/walker.c:120:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (process_commit(walker, (struct commit *)obj))
                                                                 ^
                                                                  {
/datasets/git/walker.c:125:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (process_tree(walker, (struct tree *)obj))
                                                             ^
                                                              {
/datasets/git/walker.c:133:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (process_tag(walker, (struct tag *)obj))
                                                           ^
                                                            {
/datasets/git/walker.c:144:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (obj->flags & SEEN)
                         ^
/datasets/git/walker.c:73:16: note: expanded from macro 'SEEN'
#define SEEN            (1U << 1)
                         ^     ~
/datasets/git/walker.c:144:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (obj->flags & SEEN)
                              ^
                               {
/datasets/git/walker.c:146:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        obj->flags |= SEEN;
                      ^
/datasets/git/walker.c:73:16: note: expanded from macro 'SEEN'
#define SEEN            (1U << 1)
                         ^     ~
/datasets/git/walker.c:150:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                obj->flags |= TO_SCAN;
                              ^
/datasets/git/walker.c:74:19: note: expanded from macro 'TO_SCAN'
#define TO_SCAN         (1U << 2)
                         ^     ~
/datasets/git/walker.c:153:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (obj->flags & COMPLETE)
                                 ^
/datasets/git/walker.c:72:19: note: expanded from macro 'COMPLETE'
#define COMPLETE        (1U << 0)
                         ^     ~
/datasets/git/walker.c:153:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (obj->flags & COMPLETE)
                                          ^
                                           {
/datasets/git/walker.c:165:22: warning: variable 'elem' is not initialized [cppcoreguidelines-init-variables]
        struct object_list *elem;
                            ^
                                 = NULL
/datasets/git/walker.c:167:11: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
        uint64_t nr = 0;
                 ^
/datasets/git/walker.c:169:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (walker->get_progress)
                                 ^
                                  {
/datasets/git/walker.c:172:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (process_queue) {
        ^
/datasets/git/walker.c:172:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'process_queue' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (process_queue) {
               ^
/datasets/git/walker.c:177:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!process_queue)
                                   ^
                                    {
/datasets/git/walker.c:183:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (! (obj->flags & TO_SCAN)) {
                                    ^
/datasets/git/walker.c:74:19: note: expanded from macro 'TO_SCAN'
#define TO_SCAN         (1U << 2)
                         ^     ~
/datasets/git/walker.c:190:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!obj->type)
                               ^
                                {
/datasets/git/walker.c:204:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!get_oid_hex(target, oid))
                                      ^
                                       {
/datasets/git/walker.c:227:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                commit->object.flags |= COMPLETE;
                                        ^
/datasets/git/walker.c:72:19: note: expanded from macro 'COMPLETE'
#define COMPLETE        (1U << 0)
                         ^     ~
/datasets/git/walker.c:235:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int targets = 0, targets_alloc = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/walker.c:238:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/walker.c:240:9: warning: variable 'tg_one' is not initialized [cppcoreguidelines-init-variables]
                char *tg_one;
                      ^
                             = NULL
/datasets/git/walker.c:242:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strbuf_getline_lf(&buf, stdin) == EOF)
                                                          ^
                                                           {
/datasets/git/walker.c:246:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (rf_one)
                           ^
                            {
/datasets/git/walker.c:250:56: warning: 64 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        targets_alloc = targets_alloc ? targets_alloc * 2 : 64;
                                                                            ^
/datasets/git/walker.c:264:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (targets--) {
        ^
/datasets/git/walker.c:266:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (write_ref)
                              ^
                               {
/datasets/git/walker.c:271:5: warning: function 'walker_fetch' has cognitive complexity of 26 (threshold 25) [readability-function-cognitive-complexity]
int walker_fetch(struct walker *walker, int targets, char **target,
    ^
/datasets/git/walker.c:285:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (write_ref) {
        ^
/datasets/git/walker.c:287:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!transaction) {
                ^
/datasets/git/walker.c:289:4: note: +1
                        goto done;
                        ^
/datasets/git/walker.c:293:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!walker->get_recover) {
        ^
/datasets/git/walker.c:298:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < targets; i++) {
        ^
/datasets/git/walker.c:299:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (interpret_target(walker, target[i], oids + i)) {
                ^
/datasets/git/walker.c:301:4: note: +1
                        goto done;
                        ^
/datasets/git/walker.c:303:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (process(walker, lookup_unknown_object(the_repository, &oids[i])))
                ^
/datasets/git/walker.c:307:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (loop(walker))
        ^
/datasets/git/walker.c:309:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!write_ref) {
        ^
/datasets/git/walker.c:311:3: note: +1
                goto done;
                ^
/datasets/git/walker.c:313:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (write_ref_log_details) {
        ^
/datasets/git/walker.c:315:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/walker.c:318:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < targets; i++) {
        ^
/datasets/git/walker.c:319:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!write_ref[i])
                ^
/datasets/git/walker.c:323:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ref_transaction_update(transaction, refname.buf,
                ^
/datasets/git/walker.c:325:13: note: +2, including nesting penalty of 1, nesting level increased to 2
                                           msg ? msg : "fetch (unknown)",
                                               ^
/datasets/git/walker.c:328:4: note: +1
                        goto done;
                        ^
/datasets/git/walker.c:331:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ref_transaction_commit(transaction, &err)) {
        ^
/datasets/git/walker.c:333:3: note: +1
                goto done;
                ^
/datasets/git/walker.c:277:20: warning: variable 'oids' is not initialized [cppcoreguidelines-init-variables]
        struct object_id *oids;
                          ^
                               = NULL
/datasets/git/walker.c:279:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, ret = -1;
        ^~~~~~~~~~~~~~~~
/datasets/git/walker.c:279:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, ret = -1;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/walker.c:279:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/walker.c:298:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < targets; i++) {
        ^
/datasets/git/walker.c:303:72: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (process(walker, lookup_unknown_object(the_repository, &oids[i])))
                                                                                     ^
                                                                                      {
/datasets/git/walker.c:307:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (loop(walker))
                         ^
                          {
/datasets/git/walker.c:318:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < targets; i++) {
        ^
/datasets/git/walker.c:319:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!write_ref[i])
                                  ^
                                   {
/datasets/git/wildmatch.c:23:27: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
                                    && strncmp((char*)class, litmatch, len) == 0)
                                                      ^
                                                      (    )
/datasets/git/wildmatch.c:55:12: warning: function 'dowild' is within a recursive call chain [misc-no-recursion]
static int dowild(const uchar *p, const uchar *text, unsigned int flags)
           ^
/datasets/git/wildmatch.c:55:12: note: example recursive call chain, starting from function 'dowild'
/datasets/git/wildmatch.c:104:10: note: Frame #1: function 'dowild' calls function 'dowild' here:
                                            dowild(p + 1, text, flags) == WM_MATCH)
                                            ^
/datasets/git/wildmatch.c:104:10: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/wildmatch.c:55:12: warning: function 'dowild' has cognitive complexity of 324 (threshold 25) [readability-function-cognitive-complexity]
static int dowild(const uchar *p, const uchar *text, unsigned int flags)
           ^
/datasets/git/wildmatch.c:60:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for ( ; (p_ch = *p) != '\0'; text++, p++) {
        ^
/datasets/git/wildmatch.c:63:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((t_ch = *text) == '\0' && p_ch != '*')
                ^
/datasets/git/wildmatch.c:63:30: note: +1
                if ((t_ch = *text) == '\0' && p_ch != '*')
                                           ^
/datasets/git/wildmatch.c:65:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((flags & WM_CASEFOLD) && ISUPPER(t_ch))
                ^
/datasets/git/wildmatch.c:65:29: note: +1
                if ((flags & WM_CASEFOLD) && ISUPPER(t_ch))
                                          ^
/datasets/git/wildmatch.c:67:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((flags & WM_CASEFOLD) && ISUPPER(p_ch))
                ^
/datasets/git/wildmatch.c:67:29: note: +1
                if ((flags & WM_CASEFOLD) && ISUPPER(p_ch))
                                          ^
/datasets/git/wildmatch.c:69:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                switch (p_ch) {
                ^
/datasets/git/wildmatch.c:76:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (t_ch != p_ch)
                        ^
/datasets/git/wildmatch.c:81:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if ((flags & WM_PATHNAME) && t_ch == '/')
                        ^
/datasets/git/wildmatch.c:81:30: note: +1
                        if ((flags & WM_PATHNAME) && t_ch == '/')
                                                  ^
/datasets/git/wildmatch.c:85:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (*++p == '*') {
                        ^
/datasets/git/wildmatch.c:87:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                while (*++p == '*') {}
                                ^
/datasets/git/wildmatch.c:88:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!(flags & WM_PATHNAME))
                                ^
/datasets/git/wildmatch.c:91:10: note: +1, nesting level increased to 4
                                else if ((prev_p < pattern || *prev_p == '/') &&
                                     ^
/datasets/git/wildmatch.c:91:51: note: +1
                                else if ((prev_p < pattern || *prev_p == '/') &&
                                                                              ^
/datasets/git/wildmatch.c:91:32: note: +1
                                else if ((prev_p < pattern || *prev_p == '/') &&
                                                           ^
/datasets/git/wildmatch.c:92:34: note: +1
                                    (*p == '\0' || *p == '/' ||
                                                             ^
/datasets/git/wildmatch.c:93:24: note: +1
                                     (p[0] == '\\' && p[1] == '/'))) {
                                                   ^
/datasets/git/wildmatch.c:103:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (p[0] == '/' &&
                                        ^
/datasets/git/wildmatch.c:103:22: note: +1
                                        if (p[0] == '/' &&
                                                        ^
/datasets/git/wildmatch.c:107:7: note: +1, nesting level increased to 4
                                } else /* WM_PATHNAME is set */
                                  ^
/datasets/git/wildmatch.c:109:6: note: +1, nesting level increased to 3
                        } else
                          ^
/datasets/git/wildmatch.c:111:39: note: +4, including nesting penalty of 3, nesting level increased to 4
                                match_slash = flags & WM_PATHNAME ? 0 : 1;
                                                                  ^
/datasets/git/wildmatch.c:112:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (*p == '\0') {
                        ^
/datasets/git/wildmatch.c:115:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!match_slash) {
                                ^
/datasets/git/wildmatch.c:116:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (strchr((char *)text, '/'))
                                        ^
/datasets/git/wildmatch.c:120:11: note: +1, nesting level increased to 3
                        } else if (!match_slash && *p == '/') {
                               ^
/datasets/git/wildmatch.c:120:28: note: +1
                        } else if (!match_slash && *p == '/') {
                                                ^
/datasets/git/wildmatch.c:127:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!slash)
                                ^
/datasets/git/wildmatch.c:133:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (1) {
                        ^
/datasets/git/wildmatch.c:134:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (t_ch == '\0')
                                ^
/datasets/git/wildmatch.c:144:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!is_glob_special(*p)) {
                                ^
/datasets/git/wildmatch.c:146:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if ((flags & WM_CASEFOLD) && ISUPPER(p_ch))
                                        ^
/datasets/git/wildmatch.c:146:32: note: +1
                                        if ((flags & WM_CASEFOLD) && ISUPPER(p_ch))
                                                                  ^
/datasets/git/wildmatch.c:148:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        while ((t_ch = *text) != '\0' &&
                                        ^
/datasets/git/wildmatch.c:148:36: note: +1
                                        while ((t_ch = *text) != '\0' &&
                                                                      ^
/datasets/git/wildmatch.c:149:26: note: +1
                                               (match_slash || t_ch != '/')) {
                                                            ^
/datasets/git/wildmatch.c:150:7: note: +6, including nesting penalty of 5, nesting level increased to 6
                                                if ((flags & WM_CASEFOLD) && ISUPPER(t_ch))
                                                ^
/datasets/git/wildmatch.c:150:33: note: +1
                                                if ((flags & WM_CASEFOLD) && ISUPPER(t_ch))
                                                                          ^
/datasets/git/wildmatch.c:152:7: note: +6, including nesting penalty of 5, nesting level increased to 6
                                                if (t_ch == p_ch)
                                                ^
/datasets/git/wildmatch.c:156:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (t_ch != p_ch)
                                        ^
/datasets/git/wildmatch.c:159:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if ((matched = dowild(p, text, flags)) != WM_NOMATCH) {
                                ^
/datasets/git/wildmatch.c:160:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (!match_slash || matched != WM_ABORT_TO_STARSTAR)
                                        ^
/datasets/git/wildmatch.c:160:23: note: +1
                                        if (!match_slash || matched != WM_ABORT_TO_STARSTAR)
                                                         ^
/datasets/git/wildmatch.c:162:12: note: +1, nesting level increased to 4
                                } else if (!match_slash && t_ch == '/')
                                       ^
/datasets/git/wildmatch.c:162:29: note: +1
                                } else if (!match_slash && t_ch == '/')
                                                        ^
/datasets/git/wildmatch.c:170:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (p_ch == NEGATE_CLASS2)
                        ^
/datasets/git/wildmatch.c:174:35: note: +3, including nesting penalty of 2, nesting level increased to 3
                        negated = p_ch == NEGATE_CLASS ? 1 : 0;
                                                       ^
/datasets/git/wildmatch.c:175:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (negated) {
                        ^
/datasets/git/wildmatch.c:181:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        do {
                        ^
/datasets/git/wildmatch.c:182:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (!p_ch)
                                ^
/datasets/git/wildmatch.c:184:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (p_ch == '\\') {
                                ^
/datasets/git/wildmatch.c:186:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (!p_ch)
                                        ^
/datasets/git/wildmatch.c:188:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (t_ch == p_ch)
                                        ^
/datasets/git/wildmatch.c:190:12: note: +1, nesting level increased to 4
                                } else if (p_ch == '-' && prev_ch && p[1] && p[1] != ']') {
                                       ^
/datasets/git/wildmatch.c:190:47: note: +1
                                } else if (p_ch == '-' && prev_ch && p[1] && p[1] != ']') {
                                                                          ^
/datasets/git/wildmatch.c:192:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (p_ch == '\\') {
                                        ^
/datasets/git/wildmatch.c:194:7: note: +6, including nesting penalty of 5, nesting level increased to 6
                                                if (!p_ch)
                                                ^
/datasets/git/wildmatch.c:197:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (t_ch <= p_ch && t_ch >= prev_ch)
                                        ^
/datasets/git/wildmatch.c:197:23: note: +1
                                        if (t_ch <= p_ch && t_ch >= prev_ch)
                                                         ^
/datasets/git/wildmatch.c:199:11: note: +1, nesting level increased to 5
                                        else if ((flags & WM_CASEFOLD) && ISLOWER(t_ch)) {
                                             ^
/datasets/git/wildmatch.c:199:37: note: +1
                                        else if ((flags & WM_CASEFOLD) && ISLOWER(t_ch)) {
                                                                       ^
/datasets/git/wildmatch.c:201:7: note: +6, including nesting penalty of 5, nesting level increased to 6
                                                if (t_ch_upper <= p_ch && t_ch_upper >= prev_ch)
                                                ^
/datasets/git/wildmatch.c:201:30: note: +1
                                                if (t_ch_upper <= p_ch && t_ch_upper >= prev_ch)
                                                                       ^
/datasets/git/wildmatch.c:205:12: note: +1, nesting level increased to 4
                                } else if (p_ch == '[' && p[1] == ':') {
                                       ^
/datasets/git/wildmatch.c:205:28: note: +1
                                } else if (p_ch == '[' && p[1] == ':') {
                                                       ^
/datasets/git/wildmatch.c:208:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        for (s = p += 2; (p_ch = *p) && p_ch != ']'; p++) {} /*SHARED ITERATOR*/
                                        ^
/datasets/git/wildmatch.c:208:35: note: +1
                                        for (s = p += 2; (p_ch = *p) && p_ch != ']'; p++) {} /*SHARED ITERATOR*/
                                                                     ^
/datasets/git/wildmatch.c:209:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (!p_ch)
                                        ^
/datasets/git/wildmatch.c:212:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (i < 0 || p[-1] != ':') {
                                        ^
/datasets/git/wildmatch.c:212:16: note: +1
                                        if (i < 0 || p[-1] != ':') {
                                                  ^
/datasets/git/wildmatch.c:216:7: note: +6, including nesting penalty of 5, nesting level increased to 6
                                                if (t_ch == p_ch)
                                                ^
/datasets/git/wildmatch.c:220:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (CC_EQ(s,i, "alnum")) {
                                        ^
/datasets/git/wildmatch.c:220:10: note: +1
                                        if (CC_EQ(s,i, "alnum")) {
                                            ^
/datasets/git/wildmatch.c:23:9: note: expanded from macro 'CC_EQ'
                                    && strncmp((char*)class, litmatch, len) == 0)
                                    ^
/datasets/git/wildmatch.c:221:7: note: +6, including nesting penalty of 5, nesting level increased to 6
                                                if (ISALNUM(t_ch))
                                                ^
/datasets/git/wildmatch.c:221:11: note: +1
                                                if (ISALNUM(t_ch))
                                                    ^
/datasets/git/wildmatch.c:45:32: note: expanded from macro 'ISALNUM'
#define ISALNUM(c) (ISASCII(c) && isalnum(c))
                               ^
/datasets/git/wildmatch.c:223:13: note: +1, nesting level increased to 5
                                        } else if (CC_EQ(s,i, "alpha")) {
                                               ^
/datasets/git/wildmatch.c:223:17: note: +1
                                        } else if (CC_EQ(s,i, "alpha")) {
                                                   ^
/datasets/git/wildmatch.c:23:9: note: expanded from macro 'CC_EQ'
                                    && strncmp((char*)class, litmatch, len) == 0)
                                    ^
/datasets/git/wildmatch.c:224:7: note: +6, including nesting penalty of 5, nesting level increased to 6
                                                if (ISALPHA(t_ch))
                                                ^
/datasets/git/wildmatch.c:224:11: note: +1
                                                if (ISALPHA(t_ch))
                                                    ^
/datasets/git/wildmatch.c:46:32: note: expanded from macro 'ISALPHA'
#define ISALPHA(c) (ISASCII(c) && isalpha(c))
                               ^
/datasets/git/wildmatch.c:226:13: note: +1, nesting level increased to 5
                                        } else if (CC_EQ(s,i, "blank")) {
                                               ^
/datasets/git/wildmatch.c:226:17: note: +1
                                        } else if (CC_EQ(s,i, "blank")) {
                                                   ^
/datasets/git/wildmatch.c:23:9: note: expanded from macro 'CC_EQ'
                                    && strncmp((char*)class, litmatch, len) == 0)
                                    ^
/datasets/git/wildmatch.c:227:7: note: +6, including nesting penalty of 5, nesting level increased to 6
                                                if (ISBLANK(t_ch))
                                                ^
/datasets/git/wildmatch.c:227:11: note: +1
                                                if (ISBLANK(t_ch))
                                                    ^
/datasets/git/wildmatch.c:34:33: note: expanded from macro 'ISBLANK'
# define ISBLANK(c) ((c) == ' ' || (c) == '\t')
                                ^
/datasets/git/wildmatch.c:229:13: note: +1, nesting level increased to 5
                                        } else if (CC_EQ(s,i, "cntrl")) {
                                               ^
/datasets/git/wildmatch.c:229:17: note: +1
                                        } else if (CC_EQ(s,i, "cntrl")) {
                                                   ^
/datasets/git/wildmatch.c:23:9: note: expanded from macro 'CC_EQ'
                                    && strncmp((char*)class, litmatch, len) == 0)
                                    ^
/datasets/git/wildmatch.c:230:7: note: +6, including nesting penalty of 5, nesting level increased to 6
                                                if (ISCNTRL(t_ch))
                                                ^
/datasets/git/wildmatch.c:230:11: note: +1
                                                if (ISCNTRL(t_ch))
                                                    ^
/datasets/git/wildmatch.c:47:32: note: expanded from macro 'ISCNTRL'
#define ISCNTRL(c) (ISASCII(c) && iscntrl(c))
                               ^
/datasets/git/wildmatch.c:232:13: note: +1, nesting level increased to 5
                                        } else if (CC_EQ(s,i, "digit")) {
                                               ^
/datasets/git/wildmatch.c:232:17: note: +1
                                        } else if (CC_EQ(s,i, "digit")) {
                                                   ^
/datasets/git/wildmatch.c:23:9: note: expanded from macro 'CC_EQ'
                                    && strncmp((char*)class, litmatch, len) == 0)
                                    ^
/datasets/git/wildmatch.c:233:7: note: +6, including nesting penalty of 5, nesting level increased to 6
                                                if (ISDIGIT(t_ch))
                                                ^
/datasets/git/wildmatch.c:233:11: note: +1
                                                if (ISDIGIT(t_ch))
                                                    ^
/datasets/git/wildmatch.c:44:32: note: expanded from macro 'ISDIGIT'
#define ISDIGIT(c) (ISASCII(c) && isdigit(c))
                               ^
/datasets/git/wildmatch.c:235:13: note: +1, nesting level increased to 5
                                        } else if (CC_EQ(s,i, "graph")) {
                                               ^
/datasets/git/wildmatch.c:235:17: note: +1
                                        } else if (CC_EQ(s,i, "graph")) {
                                                   ^
/datasets/git/wildmatch.c:23:9: note: expanded from macro 'CC_EQ'
                                    && strncmp((char*)class, litmatch, len) == 0)
                                    ^
/datasets/git/wildmatch.c:236:7: note: +6, including nesting penalty of 5, nesting level increased to 6
                                                if (ISGRAPH(t_ch))
                                                ^
/datasets/git/wildmatch.c:236:11: note: +1
                                                if (ISGRAPH(t_ch))
                                                    ^
/datasets/git/wildmatch.c:40:47: note: expanded from macro 'ISGRAPH'
# define ISGRAPH(c) (ISASCII(c) && isprint(c) && !isspace(c))
                                              ^
/datasets/git/wildmatch.c:238:13: note: +1, nesting level increased to 5
                                        } else if (CC_EQ(s,i, "lower")) {
                                               ^
/datasets/git/wildmatch.c:238:17: note: +1
                                        } else if (CC_EQ(s,i, "lower")) {
                                                   ^
/datasets/git/wildmatch.c:23:9: note: expanded from macro 'CC_EQ'
                                    && strncmp((char*)class, litmatch, len) == 0)
                                    ^
/datasets/git/wildmatch.c:239:7: note: +6, including nesting penalty of 5, nesting level increased to 6
                                                if (ISLOWER(t_ch))
                                                ^
/datasets/git/wildmatch.c:239:11: note: +1
                                                if (ISLOWER(t_ch))
                                                    ^
/datasets/git/wildmatch.c:48:32: note: expanded from macro 'ISLOWER'
#define ISLOWER(c) (ISASCII(c) && islower(c))
                               ^
/datasets/git/wildmatch.c:241:13: note: +1, nesting level increased to 5
                                        } else if (CC_EQ(s,i, "print")) {
                                               ^
/datasets/git/wildmatch.c:241:17: note: +1
                                        } else if (CC_EQ(s,i, "print")) {
                                                   ^
/datasets/git/wildmatch.c:23:9: note: expanded from macro 'CC_EQ'
                                    && strncmp((char*)class, litmatch, len) == 0)
                                    ^
/datasets/git/wildmatch.c:242:7: note: +6, including nesting penalty of 5, nesting level increased to 6
                                                if (ISPRINT(t_ch))
                                                ^
/datasets/git/wildmatch.c:242:11: note: +1
                                                if (ISPRINT(t_ch))
                                                    ^
/datasets/git/wildmatch.c:43:32: note: expanded from macro 'ISPRINT'
#define ISPRINT(c) (ISASCII(c) && isprint(c))
                               ^
/datasets/git/wildmatch.c:244:13: note: +1, nesting level increased to 5
                                        } else if (CC_EQ(s,i, "punct")) {
                                               ^
/datasets/git/wildmatch.c:244:17: note: +1
                                        } else if (CC_EQ(s,i, "punct")) {
                                                   ^
/datasets/git/wildmatch.c:23:9: note: expanded from macro 'CC_EQ'
                                    && strncmp((char*)class, litmatch, len) == 0)
                                    ^
/datasets/git/wildmatch.c:245:7: note: +6, including nesting penalty of 5, nesting level increased to 6
                                                if (ISPUNCT(t_ch))
                                                ^
/datasets/git/wildmatch.c:245:11: note: +1
                                                if (ISPUNCT(t_ch))
                                                    ^
/datasets/git/wildmatch.c:49:32: note: expanded from macro 'ISPUNCT'
#define ISPUNCT(c) (ISASCII(c) && ispunct(c))
                               ^
/datasets/git/wildmatch.c:247:13: note: +1, nesting level increased to 5
                                        } else if (CC_EQ(s,i, "space")) {
                                               ^
/datasets/git/wildmatch.c:247:17: note: +1
                                        } else if (CC_EQ(s,i, "space")) {
                                                   ^
/datasets/git/wildmatch.c:23:9: note: expanded from macro 'CC_EQ'
                                    && strncmp((char*)class, litmatch, len) == 0)
                                    ^
/datasets/git/wildmatch.c:248:7: note: +6, including nesting penalty of 5, nesting level increased to 6
                                                if (ISSPACE(t_ch))
                                                ^
/datasets/git/wildmatch.c:248:11: note: +1
                                                if (ISSPACE(t_ch))
                                                    ^
/datasets/git/wildmatch.c:50:32: note: expanded from macro 'ISSPACE'
#define ISSPACE(c) (ISASCII(c) && isspace(c))
                               ^
/datasets/git/wildmatch.c:250:13: note: +1, nesting level increased to 5
                                        } else if (CC_EQ(s,i, "upper")) {
                                               ^
/datasets/git/wildmatch.c:250:17: note: +1
                                        } else if (CC_EQ(s,i, "upper")) {
                                                   ^
/datasets/git/wildmatch.c:23:9: note: expanded from macro 'CC_EQ'
                                    && strncmp((char*)class, litmatch, len) == 0)
                                    ^
/datasets/git/wildmatch.c:251:7: note: +6, including nesting penalty of 5, nesting level increased to 6
                                                if (ISUPPER(t_ch))
                                                ^
/datasets/git/wildmatch.c:251:11: note: +1
                                                if (ISUPPER(t_ch))
                                                    ^
/datasets/git/wildmatch.c:51:32: note: expanded from macro 'ISUPPER'
#define ISUPPER(c) (ISASCII(c) && isupper(c))
                               ^
/datasets/git/wildmatch.c:253:12: note: +1, nesting level increased to 6
                                                else if ((flags & WM_CASEFOLD) && ISLOWER(t_ch))
                                                     ^
/datasets/git/wildmatch.c:253:38: note: +1
                                                else if ((flags & WM_CASEFOLD) && ISLOWER(t_ch))
                                                                               ^
/datasets/git/wildmatch.c:255:13: note: +1, nesting level increased to 5
                                        } else if (CC_EQ(s,i, "xdigit")) {
                                               ^
/datasets/git/wildmatch.c:255:17: note: +1
                                        } else if (CC_EQ(s,i, "xdigit")) {
                                                   ^
/datasets/git/wildmatch.c:23:9: note: expanded from macro 'CC_EQ'
                                    && strncmp((char*)class, litmatch, len) == 0)
                                    ^
/datasets/git/wildmatch.c:256:7: note: +6, including nesting penalty of 5, nesting level increased to 6
                                                if (ISXDIGIT(t_ch))
                                                ^
/datasets/git/wildmatch.c:256:11: note: +1
                                                if (ISXDIGIT(t_ch))
                                                    ^
/datasets/git/wildmatch.c:52:33: note: expanded from macro 'ISXDIGIT'
#define ISXDIGIT(c) (ISASCII(c) && isxdigit(c))
                                ^
/datasets/git/wildmatch.c:258:8: note: +1, nesting level increased to 5
                                        } else /* malformed [:class:] string */
                                          ^
/datasets/git/wildmatch.c:261:12: note: +1, nesting level increased to 4
                                } else if (t_ch == p_ch)
                                       ^
/datasets/git/wildmatch.c:264:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (matched == negated ||
                        ^
/datasets/git/wildmatch.c:264:27: note: +1
                        if (matched == negated ||
                                               ^
/datasets/git/wildmatch.c:265:31: note: +1
                            ((flags & WM_PATHNAME) && t_ch == '/'))
                                                   ^
/datasets/git/wildmatch.c:271:15: note: +1, including nesting penalty of 0, nesting level increased to 1
        return *text ? WM_NOMATCH : WM_MATCH;
                     ^
/datasets/git/wildmatch.c:55:32: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
static int dowild(const uchar *p, const uchar *text, unsigned int flags)
                               ^
/datasets/git/wildmatch.c:57:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        uchar p_ch;
        ^
/datasets/git/wildmatch.c:57:8: warning: variable 'p_ch' is not initialized [cppcoreguidelines-init-variables]
        uchar p_ch;
              ^
                   = 0
/datasets/git/wildmatch.c:60:10: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p_ch' and may cause performance degradation [altera-id-dependent-backward-branch]
        for ( ; (p_ch = *p) != '\0'; text++, p++) {
                ^
/datasets/git/wildmatch.c:61:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int matched, match_slash, negated;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wildmatch.c:61:7: warning: variable 'matched' is not initialized [cppcoreguidelines-init-variables]
                int matched, match_slash, negated;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/wildmatch.c:61:16: warning: variable 'match_slash' is not initialized [cppcoreguidelines-init-variables]
                int matched, match_slash, negated;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/wildmatch.c:61:29: warning: variable 'negated' is not initialized [cppcoreguidelines-init-variables]
                int matched, match_slash, negated;
                                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/wildmatch.c:62:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                uchar t_ch, prev_ch;
                ^~~~~~~~~~~~~~~~~~~~
/datasets/git/wildmatch.c:62:9: warning: variable 't_ch' is not initialized [cppcoreguidelines-init-variables]
                uchar t_ch, prev_ch;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/wildmatch.c:62:15: warning: variable 'prev_ch' is not initialized [cppcoreguidelines-init-variables]
                uchar t_ch, prev_ch;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/wildmatch.c:63:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                if ((t_ch = *text) == '\0' && p_ch != '*')
                     ^
/datasets/git/wildmatch.c:63:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/wildmatch.c:63:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/wildmatch.c:63:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((t_ch = *text) == '\0' && p_ch != '*')
                                                          ^
                                                           {
/datasets/git/wildmatch.c:65:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((flags & WM_CASEFOLD) && ISUPPER(t_ch))
                     ^
/datasets/git/wildmatch.c:65:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((flags & WM_CASEFOLD) && ISUPPER(t_ch))
                                             ^
/datasets/git/wildmatch.c:51:21: note: expanded from macro 'ISUPPER'
#define ISUPPER(c) (ISASCII(c) && isupper(c))
                    ^~~~~~~~~~
/datasets/git/wildmatch.c:28:21: note: expanded from macro 'ISASCII'
# define ISASCII(c) isascii(c)
                    ^~~~~~~~~~
/datasets/git/./git-compat-util.h:1216:22: note: expanded from macro 'isascii'
#define isascii(x) (((x) & ~0x7f) == 0)
                     ^     ~~~~~
/datasets/git/wildmatch.c:65:32: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                if ((flags & WM_CASEFOLD) && ISUPPER(t_ch))
                                             ^
/datasets/git/wildmatch.c:51:21: note: expanded from macro 'ISUPPER'
#define ISUPPER(c) (ISASCII(c) && isupper(c))
                    ^~~~~~~~~~
/datasets/git/wildmatch.c:28:21: note: expanded from macro 'ISASCII'
# define ISASCII(c) isascii(c)
                    ^~~~~~~~~~
/datasets/git/./git-compat-util.h:1216:28: note: expanded from macro 'isascii'
#define isascii(x) (((x) & ~0x7f) == 0)
                           ^~~~~
/datasets/git/wildmatch.c:65:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((flags & WM_CASEFOLD) && ISUPPER(t_ch))
                                                           ^
                                                            {
/datasets/git/wildmatch.c:67:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((flags & WM_CASEFOLD) && ISUPPER(p_ch))
                     ^
/datasets/git/wildmatch.c:67:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((flags & WM_CASEFOLD) && ISUPPER(p_ch))
                                             ^
/datasets/git/wildmatch.c:51:21: note: expanded from macro 'ISUPPER'
#define ISUPPER(c) (ISASCII(c) && isupper(c))
                    ^~~~~~~~~~
/datasets/git/wildmatch.c:28:21: note: expanded from macro 'ISASCII'
# define ISASCII(c) isascii(c)
                    ^~~~~~~~~~
/datasets/git/./git-compat-util.h:1216:22: note: expanded from macro 'isascii'
#define isascii(x) (((x) & ~0x7f) == 0)
                     ^     ~~~~~
/datasets/git/wildmatch.c:67:32: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                if ((flags & WM_CASEFOLD) && ISUPPER(p_ch))
                                             ^
/datasets/git/wildmatch.c:51:21: note: expanded from macro 'ISUPPER'
#define ISUPPER(c) (ISASCII(c) && isupper(c))
                    ^~~~~~~~~~
/datasets/git/wildmatch.c:28:21: note: expanded from macro 'ISASCII'
# define ISASCII(c) isascii(c)
                    ^~~~~~~~~~
/datasets/git/./git-compat-util.h:1216:28: note: expanded from macro 'isascii'
#define isascii(x) (((x) & ~0x7f) == 0)
                           ^~~~~
/datasets/git/wildmatch.c:67:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((flags & WM_CASEFOLD) && ISUPPER(p_ch))
                                                           ^
                                                            {
/datasets/git/wildmatch.c:76:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (t_ch != p_ch)
                                         ^
                                          {
/datasets/git/wildmatch.c:81:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if ((flags & WM_PATHNAME) && t_ch == '/')
                             ^
/datasets/git/wildmatch.c:81:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if ((flags & WM_PATHNAME) && t_ch == '/')
                                                                 ^
                                                                  {
/datasets/git/wildmatch.c:87:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                while (*++p == '*') {}
                                ^
/datasets/git/wildmatch.c:87:12: warning: backward branch (while loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
                                while (*++p == '*') {}
                                       ^
/datasets/git/wildmatch.c:88:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (!(flags & WM_PATHNAME))
                                      ^
/datasets/git/wildmatch.c:88:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!(flags & WM_PATHNAME))
                                                           ^
                                                            {
/datasets/git/wildmatch.c:104:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                            dowild(p + 1, text, flags) == WM_MATCH)
                                                                                   ^
                                                                                    {
/datasets/git/wildmatch.c:107:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                } else /* WM_PATHNAME is set */
                                      ^
                                       {
/datasets/git/wildmatch.c:109:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        } else
                              ^
                               {
/datasets/git/wildmatch.c:111:19: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                match_slash = flags & WM_PATHNAME ? 0 : 1;
                                              ^
/datasets/git/wildmatch.c:116:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        if (strchr((char *)text, '/'))
                                                                      ^
                                                                       {
/datasets/git/wildmatch.c:120:6: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                        } else if (!match_slash && *p == '/') {
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wildmatch.c:127:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!slash)
                                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/wildmatch.c:134:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (t_ch == '\0')
                                                 ^
                                                  {
/datasets/git/wildmatch.c:144:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (!is_glob_special(*p)) {
                                     ^
/datasets/git/./git-compat-util.h:1224:28: note: expanded from macro 'is_glob_special'
#define is_glob_special(x) sane_istest(x,GIT_GLOB_SPECIAL)
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/wildmatch.c:146:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        if ((flags & WM_CASEFOLD) && ISUPPER(p_ch))
                                             ^
/datasets/git/wildmatch.c:146:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        if ((flags & WM_CASEFOLD) && ISUPPER(p_ch))
                                                                     ^
/datasets/git/wildmatch.c:51:21: note: expanded from macro 'ISUPPER'
#define ISUPPER(c) (ISASCII(c) && isupper(c))
                    ^~~~~~~~~~
/datasets/git/wildmatch.c:28:21: note: expanded from macro 'ISASCII'
# define ISASCII(c) isascii(c)
                    ^~~~~~~~~~
/datasets/git/./git-compat-util.h:1216:22: note: expanded from macro 'isascii'
#define isascii(x) (((x) & ~0x7f) == 0)
                     ^     ~~~~~
/datasets/git/wildmatch.c:146:35: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                                        if ((flags & WM_CASEFOLD) && ISUPPER(p_ch))
                                                                     ^
/datasets/git/wildmatch.c:51:21: note: expanded from macro 'ISUPPER'
#define ISUPPER(c) (ISASCII(c) && isupper(c))
                    ^~~~~~~~~~
/datasets/git/wildmatch.c:28:21: note: expanded from macro 'ISASCII'
# define ISASCII(c) isascii(c)
                    ^~~~~~~~~~
/datasets/git/./git-compat-util.h:1216:28: note: expanded from macro 'isascii'
#define isascii(x) (((x) & ~0x7f) == 0)
                           ^~~~~
/datasets/git/wildmatch.c:146:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        if ((flags & WM_CASEFOLD) && ISUPPER(p_ch))
                                                                                   ^
                                                                                    {
/datasets/git/wildmatch.c:148:6: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                        while ((t_ch = *text) != '\0' &&
                                        ^
/datasets/git/wildmatch.c:148:13: warning: backward branch (while loop) is ID-dependent due to variable reference to 't_ch' and may cause performance degradation [altera-id-dependent-backward-branch]
                                        while ((t_ch = *text) != '\0' &&
                                               ^
/datasets/git/wildmatch.c:150:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                                if ((flags & WM_CASEFOLD) && ISUPPER(t_ch))
                                                     ^
/datasets/git/wildmatch.c:150:36: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                                if ((flags & WM_CASEFOLD) && ISUPPER(t_ch))
                                                                             ^
/datasets/git/wildmatch.c:51:21: note: expanded from macro 'ISUPPER'
#define ISUPPER(c) (ISASCII(c) && isupper(c))
                    ^~~~~~~~~~
/datasets/git/wildmatch.c:28:21: note: expanded from macro 'ISASCII'
# define ISASCII(c) isascii(c)
                    ^~~~~~~~~~
/datasets/git/./git-compat-util.h:1216:22: note: expanded from macro 'isascii'
#define isascii(x) (((x) & ~0x7f) == 0)
                     ^     ~~~~~
/datasets/git/wildmatch.c:150:36: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                                                if ((flags & WM_CASEFOLD) && ISUPPER(t_ch))
                                                                             ^
/datasets/git/wildmatch.c:51:21: note: expanded from macro 'ISUPPER'
#define ISUPPER(c) (ISASCII(c) && isupper(c))
                    ^~~~~~~~~~
/datasets/git/wildmatch.c:28:21: note: expanded from macro 'ISASCII'
# define ISASCII(c) isascii(c)
                    ^~~~~~~~~~
/datasets/git/./git-compat-util.h:1216:28: note: expanded from macro 'isascii'
#define isascii(x) (((x) & ~0x7f) == 0)
                           ^~~~~
/datasets/git/wildmatch.c:150:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                if ((flags & WM_CASEFOLD) && ISUPPER(t_ch))
                                                                                           ^
                                                                                            {
/datasets/git/wildmatch.c:152:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                if (t_ch == p_ch)
                                                                 ^
                                                                  {
/datasets/git/wildmatch.c:156:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        if (t_ch != p_ch)
                                                         ^
                                                          {
/datasets/git/wildmatch.c:159:10: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                                if ((matched = dowild(p, text, flags)) != WM_NOMATCH) {
                                     ^
/datasets/git/wildmatch.c:159:10: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/wildmatch.c:159:10: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/wildmatch.c:160:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        if (!match_slash || matched != WM_ABORT_TO_STARSTAR)
                                                                                            ^
                                                                                             {
/datasets/git/wildmatch.c:162:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                } else if (!match_slash && t_ch == '/')
                                                                       ^
                                                                        {
/datasets/git/wildmatch.c:170:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (p_ch == NEGATE_CLASS2)
                                                  ^
                                                   {
/datasets/git/wildmatch.c:182:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (!p_ch)
                                          ^
                                           {
/datasets/git/wildmatch.c:186:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        if (!p_ch)
                                                  ^
                                                   {
/datasets/git/wildmatch.c:188:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        if (t_ch == p_ch)
                                                         ^
                                                          {
/datasets/git/wildmatch.c:194:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                if (!p_ch)
                                                          ^
                                                           {
/datasets/git/wildmatch.c:197:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        if (t_ch <= p_ch && t_ch >= prev_ch)
                                                                            ^
                                                                             {
/datasets/git/wildmatch.c:199:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        else if ((flags & WM_CASEFOLD) && ISLOWER(t_ch)) {
                                                  ^
/datasets/git/wildmatch.c:199:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        else if ((flags & WM_CASEFOLD) && ISLOWER(t_ch)) {
                                                                          ^
/datasets/git/wildmatch.c:48:21: note: expanded from macro 'ISLOWER'
#define ISLOWER(c) (ISASCII(c) && islower(c))
                    ^~~~~~~~~~
/datasets/git/wildmatch.c:28:21: note: expanded from macro 'ISASCII'
# define ISASCII(c) isascii(c)
                    ^~~~~~~~~~
/datasets/git/./git-compat-util.h:1216:22: note: expanded from macro 'isascii'
#define isascii(x) (((x) & ~0x7f) == 0)
                     ^     ~~~~~
/datasets/git/wildmatch.c:199:40: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                                        else if ((flags & WM_CASEFOLD) && ISLOWER(t_ch)) {
                                                                          ^
/datasets/git/wildmatch.c:48:21: note: expanded from macro 'ISLOWER'
#define ISLOWER(c) (ISASCII(c) && islower(c))
                    ^~~~~~~~~~
/datasets/git/wildmatch.c:28:21: note: expanded from macro 'ISASCII'
# define ISASCII(c) isascii(c)
                    ^~~~~~~~~~
/datasets/git/./git-compat-util.h:1216:28: note: expanded from macro 'isascii'
#define isascii(x) (((x) & ~0x7f) == 0)
                           ^~~~~
/datasets/git/wildmatch.c:201:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                if (t_ch_upper <= p_ch && t_ch_upper >= prev_ch)
                                                                                                ^
                                                                                                 {
/datasets/git/wildmatch.c:206:19: warning: variable 's' is not initialized [cppcoreguidelines-init-variables]
                                        const uchar *s;
                                                     ^
                                                       = NULL
/datasets/git/wildmatch.c:206:19: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wildmatch.c:207:10: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                                        int i;
                                            ^
                                              = 0
/datasets/git/wildmatch.c:207:10: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wildmatch.c:208:6: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                        for (s = p += 2; (p_ch = *p) && p_ch != ']'; p++) {} /*SHARED ITERATOR*/
                                        ^
/datasets/git/wildmatch.c:208:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p_ch' and may cause performance degradation [altera-id-dependent-backward-branch]
                                        for (s = p += 2; (p_ch = *p) && p_ch != ']'; p++) {} /*SHARED ITERATOR*/
                                                         ^
/datasets/git/wildmatch.c:209:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        if (!p_ch)
                                                  ^
                                                   {
/datasets/git/wildmatch.c:211:10: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                        i = p - s - 1;
                                            ^
/datasets/git/wildmatch.c:216:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                if (t_ch == p_ch)
                                                                 ^
                                                                  {
/datasets/git/wildmatch.c:221:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                                if (ISALNUM(t_ch))
                                                    ^
/datasets/git/wildmatch.c:45:21: note: expanded from macro 'ISALNUM'
#define ISALNUM(c) (ISASCII(c) && isalnum(c))
                    ^~~~~~~~~~
/datasets/git/wildmatch.c:28:21: note: expanded from macro 'ISASCII'
# define ISASCII(c) isascii(c)
                    ^~~~~~~~~~
/datasets/git/./git-compat-util.h:1216:22: note: expanded from macro 'isascii'
#define isascii(x) (((x) & ~0x7f) == 0)
                     ^     ~~~~~
/datasets/git/wildmatch.c:221:11: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                                                if (ISALNUM(t_ch))
                                                    ^
/datasets/git/wildmatch.c:45:21: note: expanded from macro 'ISALNUM'
#define ISALNUM(c) (ISASCII(c) && isalnum(c))
                    ^~~~~~~~~~
/datasets/git/wildmatch.c:28:21: note: expanded from macro 'ISASCII'
# define ISASCII(c) isascii(c)
                    ^~~~~~~~~~
/datasets/git/./git-compat-util.h:1216:28: note: expanded from macro 'isascii'
#define isascii(x) (((x) & ~0x7f) == 0)
                           ^~~~~
/datasets/git/wildmatch.c:221:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                if (ISALNUM(t_ch))
                                                                  ^
                                                                   {
/datasets/git/wildmatch.c:224:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                                if (ISALPHA(t_ch))
                                                    ^
/datasets/git/wildmatch.c:46:21: note: expanded from macro 'ISALPHA'
#define ISALPHA(c) (ISASCII(c) && isalpha(c))
                    ^~~~~~~~~~
/datasets/git/wildmatch.c:28:21: note: expanded from macro 'ISASCII'
# define ISASCII(c) isascii(c)
                    ^~~~~~~~~~
/datasets/git/./git-compat-util.h:1216:22: note: expanded from macro 'isascii'
#define isascii(x) (((x) & ~0x7f) == 0)
                     ^     ~~~~~
/datasets/git/wildmatch.c:224:11: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                                                if (ISALPHA(t_ch))
                                                    ^
/datasets/git/wildmatch.c:46:21: note: expanded from macro 'ISALPHA'
#define ISALPHA(c) (ISASCII(c) && isalpha(c))
                    ^~~~~~~~~~
/datasets/git/wildmatch.c:28:21: note: expanded from macro 'ISASCII'
# define ISASCII(c) isascii(c)
                    ^~~~~~~~~~
/datasets/git/./git-compat-util.h:1216:28: note: expanded from macro 'isascii'
#define isascii(x) (((x) & ~0x7f) == 0)
                           ^~~~~
/datasets/git/wildmatch.c:224:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                if (ISALPHA(t_ch))
                                                                  ^
                                                                   {
/datasets/git/wildmatch.c:227:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                if (ISBLANK(t_ch))
                                                                  ^
                                                                   {
/datasets/git/wildmatch.c:230:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                                if (ISCNTRL(t_ch))
                                                    ^
/datasets/git/wildmatch.c:47:21: note: expanded from macro 'ISCNTRL'
#define ISCNTRL(c) (ISASCII(c) && iscntrl(c))
                    ^~~~~~~~~~
/datasets/git/wildmatch.c:28:21: note: expanded from macro 'ISASCII'
# define ISASCII(c) isascii(c)
                    ^~~~~~~~~~
/datasets/git/./git-compat-util.h:1216:22: note: expanded from macro 'isascii'
#define isascii(x) (((x) & ~0x7f) == 0)
                     ^     ~~~~~
/datasets/git/wildmatch.c:230:11: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                                                if (ISCNTRL(t_ch))
                                                    ^
/datasets/git/wildmatch.c:47:21: note: expanded from macro 'ISCNTRL'
#define ISCNTRL(c) (ISASCII(c) && iscntrl(c))
                    ^~~~~~~~~~
/datasets/git/wildmatch.c:28:21: note: expanded from macro 'ISASCII'
# define ISASCII(c) isascii(c)
                    ^~~~~~~~~~
/datasets/git/./git-compat-util.h:1216:28: note: expanded from macro 'isascii'
#define isascii(x) (((x) & ~0x7f) == 0)
                           ^~~~~
/datasets/git/wildmatch.c:230:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                if (ISCNTRL(t_ch))
                                                                  ^
                                                                   {
/datasets/git/wildmatch.c:233:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                                if (ISDIGIT(t_ch))
                                                    ^
/datasets/git/wildmatch.c:44:21: note: expanded from macro 'ISDIGIT'
#define ISDIGIT(c) (ISASCII(c) && isdigit(c))
                    ^~~~~~~~~~
/datasets/git/wildmatch.c:28:21: note: expanded from macro 'ISASCII'
# define ISASCII(c) isascii(c)
                    ^~~~~~~~~~
/datasets/git/./git-compat-util.h:1216:22: note: expanded from macro 'isascii'
#define isascii(x) (((x) & ~0x7f) == 0)
                     ^     ~~~~~
/datasets/git/wildmatch.c:233:11: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                                                if (ISDIGIT(t_ch))
                                                    ^
/datasets/git/wildmatch.c:44:21: note: expanded from macro 'ISDIGIT'
#define ISDIGIT(c) (ISASCII(c) && isdigit(c))
                    ^~~~~~~~~~
/datasets/git/wildmatch.c:28:21: note: expanded from macro 'ISASCII'
# define ISASCII(c) isascii(c)
                    ^~~~~~~~~~
/datasets/git/./git-compat-util.h:1216:28: note: expanded from macro 'isascii'
#define isascii(x) (((x) & ~0x7f) == 0)
                           ^~~~~
/datasets/git/wildmatch.c:233:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                if (ISDIGIT(t_ch))
                                                                  ^
                                                                   {
/datasets/git/wildmatch.c:236:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                                if (ISGRAPH(t_ch))
                                                    ^
/datasets/git/wildmatch.c:40:22: note: expanded from macro 'ISGRAPH'
# define ISGRAPH(c) (ISASCII(c) && isprint(c) && !isspace(c))
                     ^~~~~~~~~~
/datasets/git/wildmatch.c:28:21: note: expanded from macro 'ISASCII'
# define ISASCII(c) isascii(c)
                    ^~~~~~~~~~
/datasets/git/./git-compat-util.h:1216:22: note: expanded from macro 'isascii'
#define isascii(x) (((x) & ~0x7f) == 0)
                     ^     ~~~~~
/datasets/git/wildmatch.c:236:11: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                                                if (ISGRAPH(t_ch))
                                                    ^
/datasets/git/wildmatch.c:40:22: note: expanded from macro 'ISGRAPH'
# define ISGRAPH(c) (ISASCII(c) && isprint(c) && !isspace(c))
                     ^~~~~~~~~~
/datasets/git/wildmatch.c:28:21: note: expanded from macro 'ISASCII'
# define ISASCII(c) isascii(c)
                    ^~~~~~~~~~
/datasets/git/./git-compat-util.h:1216:28: note: expanded from macro 'isascii'
#define isascii(x) (((x) & ~0x7f) == 0)
                           ^~~~~
/datasets/git/wildmatch.c:236:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                if (ISGRAPH(t_ch))
                                                                  ^
                                                                   {
/datasets/git/wildmatch.c:239:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                                if (ISLOWER(t_ch))
                                                    ^
/datasets/git/wildmatch.c:48:21: note: expanded from macro 'ISLOWER'
#define ISLOWER(c) (ISASCII(c) && islower(c))
                    ^~~~~~~~~~
/datasets/git/wildmatch.c:28:21: note: expanded from macro 'ISASCII'
# define ISASCII(c) isascii(c)
                    ^~~~~~~~~~
/datasets/git/./git-compat-util.h:1216:22: note: expanded from macro 'isascii'
#define isascii(x) (((x) & ~0x7f) == 0)
                     ^     ~~~~~
/datasets/git/wildmatch.c:239:11: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                                                if (ISLOWER(t_ch))
                                                    ^
/datasets/git/wildmatch.c:48:21: note: expanded from macro 'ISLOWER'
#define ISLOWER(c) (ISASCII(c) && islower(c))
                    ^~~~~~~~~~
/datasets/git/wildmatch.c:28:21: note: expanded from macro 'ISASCII'
# define ISASCII(c) isascii(c)
                    ^~~~~~~~~~
/datasets/git/./git-compat-util.h:1216:28: note: expanded from macro 'isascii'
#define isascii(x) (((x) & ~0x7f) == 0)
                           ^~~~~
/datasets/git/wildmatch.c:239:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                if (ISLOWER(t_ch))
                                                                  ^
                                                                   {
/datasets/git/wildmatch.c:242:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                                if (ISPRINT(t_ch))
                                                    ^
/datasets/git/wildmatch.c:43:21: note: expanded from macro 'ISPRINT'
#define ISPRINT(c) (ISASCII(c) && isprint(c))
                    ^~~~~~~~~~
/datasets/git/wildmatch.c:28:21: note: expanded from macro 'ISASCII'
# define ISASCII(c) isascii(c)
                    ^~~~~~~~~~
/datasets/git/./git-compat-util.h:1216:22: note: expanded from macro 'isascii'
#define isascii(x) (((x) & ~0x7f) == 0)
                     ^     ~~~~~
/datasets/git/wildmatch.c:242:11: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                                                if (ISPRINT(t_ch))
                                                    ^
/datasets/git/wildmatch.c:43:21: note: expanded from macro 'ISPRINT'
#define ISPRINT(c) (ISASCII(c) && isprint(c))
                    ^~~~~~~~~~
/datasets/git/wildmatch.c:28:21: note: expanded from macro 'ISASCII'
# define ISASCII(c) isascii(c)
                    ^~~~~~~~~~
/datasets/git/./git-compat-util.h:1216:28: note: expanded from macro 'isascii'
#define isascii(x) (((x) & ~0x7f) == 0)
                           ^~~~~
/datasets/git/wildmatch.c:242:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                if (ISPRINT(t_ch))
                                                                  ^
                                                                   {
/datasets/git/wildmatch.c:245:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                                if (ISPUNCT(t_ch))
                                                    ^
/datasets/git/wildmatch.c:49:21: note: expanded from macro 'ISPUNCT'
#define ISPUNCT(c) (ISASCII(c) && ispunct(c))
                    ^~~~~~~~~~
/datasets/git/wildmatch.c:28:21: note: expanded from macro 'ISASCII'
# define ISASCII(c) isascii(c)
                    ^~~~~~~~~~
/datasets/git/./git-compat-util.h:1216:22: note: expanded from macro 'isascii'
#define isascii(x) (((x) & ~0x7f) == 0)
                     ^     ~~~~~
/datasets/git/wildmatch.c:245:11: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                                                if (ISPUNCT(t_ch))
                                                    ^
/datasets/git/wildmatch.c:49:21: note: expanded from macro 'ISPUNCT'
#define ISPUNCT(c) (ISASCII(c) && ispunct(c))
                    ^~~~~~~~~~
/datasets/git/wildmatch.c:28:21: note: expanded from macro 'ISASCII'
# define ISASCII(c) isascii(c)
                    ^~~~~~~~~~
/datasets/git/./git-compat-util.h:1216:28: note: expanded from macro 'isascii'
#define isascii(x) (((x) & ~0x7f) == 0)
                           ^~~~~
/datasets/git/wildmatch.c:245:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                if (ISPUNCT(t_ch))
                                                                  ^
                                                                   {
/datasets/git/wildmatch.c:248:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                                if (ISSPACE(t_ch))
                                                    ^
/datasets/git/wildmatch.c:50:21: note: expanded from macro 'ISSPACE'
#define ISSPACE(c) (ISASCII(c) && isspace(c))
                    ^~~~~~~~~~
/datasets/git/wildmatch.c:28:21: note: expanded from macro 'ISASCII'
# define ISASCII(c) isascii(c)
                    ^~~~~~~~~~
/datasets/git/./git-compat-util.h:1216:22: note: expanded from macro 'isascii'
#define isascii(x) (((x) & ~0x7f) == 0)
                     ^     ~~~~~
/datasets/git/wildmatch.c:248:11: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                                                if (ISSPACE(t_ch))
                                                    ^
/datasets/git/wildmatch.c:50:21: note: expanded from macro 'ISSPACE'
#define ISSPACE(c) (ISASCII(c) && isspace(c))
                    ^~~~~~~~~~
/datasets/git/wildmatch.c:28:21: note: expanded from macro 'ISASCII'
# define ISASCII(c) isascii(c)
                    ^~~~~~~~~~
/datasets/git/./git-compat-util.h:1216:28: note: expanded from macro 'isascii'
#define isascii(x) (((x) & ~0x7f) == 0)
                           ^~~~~
/datasets/git/wildmatch.c:248:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                if (ISSPACE(t_ch))
                                                                  ^
                                                                   {
/datasets/git/wildmatch.c:251:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                                if (ISUPPER(t_ch))
                                                    ^
/datasets/git/wildmatch.c:51:21: note: expanded from macro 'ISUPPER'
#define ISUPPER(c) (ISASCII(c) && isupper(c))
                    ^~~~~~~~~~
/datasets/git/wildmatch.c:28:21: note: expanded from macro 'ISASCII'
# define ISASCII(c) isascii(c)
                    ^~~~~~~~~~
/datasets/git/./git-compat-util.h:1216:22: note: expanded from macro 'isascii'
#define isascii(x) (((x) & ~0x7f) == 0)
                     ^     ~~~~~
/datasets/git/wildmatch.c:251:11: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                                                if (ISUPPER(t_ch))
                                                    ^
/datasets/git/wildmatch.c:51:21: note: expanded from macro 'ISUPPER'
#define ISUPPER(c) (ISASCII(c) && isupper(c))
                    ^~~~~~~~~~
/datasets/git/wildmatch.c:28:21: note: expanded from macro 'ISASCII'
# define ISASCII(c) isascii(c)
                    ^~~~~~~~~~
/datasets/git/./git-compat-util.h:1216:28: note: expanded from macro 'isascii'
#define isascii(x) (((x) & ~0x7f) == 0)
                           ^~~~~
/datasets/git/wildmatch.c:251:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                if (ISUPPER(t_ch))
                                                                  ^
                                                                   {
/datasets/git/wildmatch.c:252:8: warning: repeated branch in conditional chain [bugprone-branch-clone]
                                                        matched = 1;
                                                        ^
/datasets/git/wildmatch.c:252:19: note: end of the original
                                                        matched = 1;
                                                                   ^
/datasets/git/wildmatch.c:254:8: note: clone 1 starts here
                                                        matched = 1;
                                                        ^
/datasets/git/wildmatch.c:253:17: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                                else if ((flags & WM_CASEFOLD) && ISLOWER(t_ch))
                                                          ^
/datasets/git/wildmatch.c:253:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                                else if ((flags & WM_CASEFOLD) && ISLOWER(t_ch))
                                                                                  ^
/datasets/git/wildmatch.c:48:21: note: expanded from macro 'ISLOWER'
#define ISLOWER(c) (ISASCII(c) && islower(c))
                    ^~~~~~~~~~
/datasets/git/wildmatch.c:28:21: note: expanded from macro 'ISASCII'
# define ISASCII(c) isascii(c)
                    ^~~~~~~~~~
/datasets/git/./git-compat-util.h:1216:22: note: expanded from macro 'isascii'
#define isascii(x) (((x) & ~0x7f) == 0)
                     ^     ~~~~~
/datasets/git/wildmatch.c:253:41: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                                                else if ((flags & WM_CASEFOLD) && ISLOWER(t_ch))
                                                                                  ^
/datasets/git/wildmatch.c:48:21: note: expanded from macro 'ISLOWER'
#define ISLOWER(c) (ISASCII(c) && islower(c))
                    ^~~~~~~~~~
/datasets/git/wildmatch.c:28:21: note: expanded from macro 'ISASCII'
# define ISASCII(c) isascii(c)
                    ^~~~~~~~~~
/datasets/git/./git-compat-util.h:1216:28: note: expanded from macro 'isascii'
#define isascii(x) (((x) & ~0x7f) == 0)
                           ^~~~~
/datasets/git/wildmatch.c:253:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                else if ((flags & WM_CASEFOLD) && ISLOWER(t_ch))
                                                                                                ^
                                                                                                 {
/datasets/git/wildmatch.c:256:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                                if (ISXDIGIT(t_ch))
                                                    ^
/datasets/git/wildmatch.c:52:22: note: expanded from macro 'ISXDIGIT'
#define ISXDIGIT(c) (ISASCII(c) && isxdigit(c))
                     ^~~~~~~~~~
/datasets/git/wildmatch.c:28:21: note: expanded from macro 'ISASCII'
# define ISASCII(c) isascii(c)
                    ^~~~~~~~~~
/datasets/git/./git-compat-util.h:1216:22: note: expanded from macro 'isascii'
#define isascii(x) (((x) & ~0x7f) == 0)
                     ^     ~~~~~
/datasets/git/wildmatch.c:256:11: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                                                if (ISXDIGIT(t_ch))
                                                    ^
/datasets/git/wildmatch.c:52:22: note: expanded from macro 'ISXDIGIT'
#define ISXDIGIT(c) (ISASCII(c) && isxdigit(c))
                     ^~~~~~~~~~
/datasets/git/wildmatch.c:28:21: note: expanded from macro 'ISASCII'
# define ISASCII(c) isascii(c)
                    ^~~~~~~~~~
/datasets/git/./git-compat-util.h:1216:28: note: expanded from macro 'isascii'
#define isascii(x) (((x) & ~0x7f) == 0)
                           ^~~~~
/datasets/git/wildmatch.c:256:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                                if (ISXDIGIT(t_ch))
                                                                   ^
                                                                    {
/datasets/git/wildmatch.c:258:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        } else /* malformed [:class:] string */
                                              ^
                                               {
/datasets/git/wildmatch.c:261:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                } else if (t_ch == p_ch)
                                                        ^
                                                         {
/datasets/git/wildmatch.c:263:13: warning: backward branch (do loop) is ID-dependent due to variable reference to 'prev_ch' and may cause performance degradation [altera-id-dependent-backward-branch]
                        } while (prev_ch = p_ch, (p_ch = *++p) != ']');
                                 ^
/datasets/git/wildmatch.c:265:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            ((flags & WM_PATHNAME) && t_ch == '/'))
                              ^
/datasets/git/wildmatch.c:265:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            ((flags & WM_PATHNAME) && t_ch == '/'))
                                                                   ^
                                                                    {
/datasets/git/worktree.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "repository.h"
^        ~~~~~~~~~~~~~~
         "config.h"
/datasets/git/worktree.c:12:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0;
            ^
/datasets/git/worktree.c:14:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; worktrees[i]; i++) {
        ^
/datasets/git/worktree.c:28:44: warning: parameter name 'wt' is too short, expected at least 3 characters [readability-identifier-length]
static void add_head_info(struct worktree *wt)
                                           ^
/datasets/git/worktree.c:30:6: warning: variable 'flags' is not initialized [cppcoreguidelines-init-variables]
        int flags;
            ^
                  = 0
/datasets/git/worktree.c:31:14: warning: variable 'target' is not initialized [cppcoreguidelines-init-variables]
        const char *target;
                    ^
                           = NULL
/datasets/git/worktree.c:37:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!target)
                    ^
                     {
/datasets/git/worktree.c:40:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & REF_ISSYMREF)
            ^~~~~
/datasets/git/worktree.c:40:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & REF_ISSYMREF)
                                 ^
                                  {
/datasets/git/worktree.c:42:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/worktree.c:72:57: warning: parameter name 'id' is too short, expected at least 3 characters [readability-identifier-length]
static struct worktree *get_linked_worktree(const char *id)
                                                        ^
/datasets/git/worktree.c:78:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!id)
                ^
                 {
/datasets/git/worktree.c:82:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strbuf_read_file(&worktree_path, path.buf, 0) <= 0)
                                                               ^
                                                                {
/datasets/git/worktree.c:102:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/worktree.c:102:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/worktree.c:104:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; worktrees[i]; i++) {
        ^
/datasets/git/worktree.c:105:20: warning: variable name 'wt' is too short, expected at least 3 characters [readability-identifier-length]
                struct worktree *wt = worktrees[i];
                                 ^
/datasets/git/worktree.c:116:19: warning: function 'get_worktrees' has cognitive complexity of 29 (threshold 25) [readability-function-cognitive-complexity]
struct worktree **get_worktrees(void)
                  ^
/datasets/git/worktree.c:131:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (dir) {
        ^
/datasets/git/worktree.c:132:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while ((d = readdir_skip_dot_and_dotdot(dir)) != NULL) {
                ^
/datasets/git/worktree.c:135:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if ((linked = get_linked_worktree(d->d_name))) {
                        ^
/datasets/git/worktree.c:136:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                ALLOC_GROW(list, counter + 1, alloc);
                                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/worktree.c:136:5: note: +5, including nesting penalty of 4, nesting level increased to 5
                                ALLOC_GROW(list, counter + 1, alloc);
                                ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/worktree.c:136:5: note: +6, including nesting penalty of 5, nesting level increased to 6
                                ALLOC_GROW(list, counter + 1, alloc);
                                ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/worktree.c:136:5: note: +1, nesting level increased to 6
                                ALLOC_GROW(list, counter + 1, alloc);
                                ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/worktree.c:142:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        ALLOC_GROW(list, counter + 1, alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/worktree.c:142:2: note: +2, including nesting penalty of 1, nesting level increased to 2
        ALLOC_GROW(list, counter + 1, alloc);
        ^
/datasets/git/./refs/../cache.h:702:3: note: expanded from macro 'ALLOC_GROW'
                if ((nr) > alloc) { \
                ^
/datasets/git/worktree.c:142:2: note: +3, including nesting penalty of 2, nesting level increased to 3
        ALLOC_GROW(list, counter + 1, alloc);
        ^
/datasets/git/./refs/../cache.h:703:4: note: expanded from macro 'ALLOC_GROW'
                        if (alloc_nr(alloc) < (nr)) \
                        ^
/datasets/git/worktree.c:142:2: note: +1, nesting level increased to 3
        ALLOC_GROW(list, counter + 1, alloc);
        ^
/datasets/git/./refs/../cache.h:705:4: note: expanded from macro 'ALLOC_GROW'
                        else \
                        ^
/datasets/git/worktree.c:120:7: warning: variable 'dir' is not initialized [cppcoreguidelines-init-variables]
        DIR *dir;
             ^
                 = NULL
/datasets/git/worktree.c:121:17: warning: variable 'd' is not initialized [cppcoreguidelines-init-variables]
        struct dirent *d;
                       ^
                         = NULL
/datasets/git/worktree.c:121:17: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/worktree.c:122:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int counter = 0, alloc = 2;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/worktree.c:124:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_ARRAY(list, alloc);
        ^
/datasets/git/./git-compat-util.h:1090:53: note: expanded from macro 'ALLOC_ARRAY'
#define ALLOC_ARRAY(x, alloc) (x) = xmalloc(st_mult(sizeof(*(x)), (alloc)))
                                                    ^
/datasets/git/worktree.c:121:2: note: inferred assignment of ID-dependent value from ID-dependent variable dir [altera-id-dependent-backward-branch]
        struct dirent *d;
        ^
/datasets/git/worktree.c:132:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'd' and may cause performance degradation [altera-id-dependent-backward-branch]
                while ((d = readdir_skip_dot_and_dotdot(dir)) != NULL) {
                       ^
/datasets/git/worktree.c:135:9: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                        if ((linked = get_linked_worktree(d->d_name))) {
                             ^
/datasets/git/worktree.c:135:9: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/worktree.c:135:9: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/worktree.c:136:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                ALLOC_GROW(list, counter + 1, alloc);
                                ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/worktree.c:136:5: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                                ALLOC_GROW(list, counter + 1, alloc);
                                ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/worktree.c:142:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        ALLOC_GROW(list, counter + 1, alloc);
        ^
/datasets/git/./refs/../cache.h:701:2: note: expanded from macro 'ALLOC_GROW'
        do { \
        ^
/datasets/git/worktree.c:142:2: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        ALLOC_GROW(list, counter + 1, alloc);
        ^
/datasets/git/./refs/../cache.h:707:4: note: expanded from macro 'ALLOC_GROW'
                        REALLOC_ARRAY(x, alloc); \
                        ^
/datasets/git/./git-compat-util.h:1092:61: note: expanded from macro 'REALLOC_ARRAY'
#define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))
                                                            ^
/datasets/git/worktree.c:149:57: warning: parameter name 'wt' is too short, expected at least 3 characters [readability-identifier-length]
const char *get_worktree_git_dir(const struct worktree *wt)
                                                        ^
/datasets/git/worktree.c:151:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!wt)
                ^
                 {
/datasets/git/worktree.c:153:2: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        else if (!wt->id)
        ^~~~~~~~~~~~~~~~~
/datasets/git/worktree.c:153:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!wt->id)
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/worktree.c:155:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/worktree.c:163:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int nr_found = 0, suffixlen;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/worktree.c:163:20: warning: variable 'suffixlen' is not initialized [cppcoreguidelines-init-variables]
        int nr_found = 0, suffixlen;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/worktree.c:165:14: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        suffixlen = strlen(suffix);
                    ^
/datasets/git/worktree.c:166:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!suffixlen)
                       ^
                        {
/datasets/git/worktree.c:169:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; *list && nr_found < 2; list++) {
        ^
/datasets/git/worktree.c:171:19: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int              pathlen = strlen(path);
                                           ^
/datasets/git/worktree.c:188:19: warning: variable 'wt' is not initialized [cppcoreguidelines-init-variables]
        struct worktree *wt;
                         ^
                            = NULL
/datasets/git/worktree.c:188:19: warning: variable name 'wt' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/worktree.c:191:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if ((wt = find_worktree_by_suffix(list, arg)))
             ^
/datasets/git/worktree.c:191:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/worktree.c:191:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/worktree.c:191:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((wt = find_worktree_by_suffix(list, arg)))
                                                      ^
                                                       {
/datasets/git/worktree.c:194:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (prefix)
                   ^
                    {
/datasets/git/worktree.c:201:76: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
struct worktree *find_worktree_by_path(struct worktree **list, const char *p)
                                                                           ^
/datasets/git/worktree.c:206:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!path)
                  ^
                   {
/datasets/git/worktree.c:208:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; *list; list++) {
        ^
/datasets/git/worktree.c:209:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strbuf_realpath(&wt_path, (*list)->path, 0))
                                                                 ^
                                                                  {
/datasets/git/worktree.c:212:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!fspathcmp(path, wt_path.buf))
                                                  ^
                                                   {
/datasets/git/worktree.c:220:45: warning: parameter name 'wt' is too short, expected at least 3 characters [readability-identifier-length]
int is_main_worktree(const struct worktree *wt)
                                            ^
/datasets/git/worktree.c:225:51: warning: parameter name 'wt' is too short, expected at least 3 characters [readability-identifier-length]
const char *worktree_lock_reason(struct worktree *wt)
                                                  ^
/datasets/git/worktree.c:227:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_main_worktree(wt))
                                 ^
                                  {
/datasets/git/worktree.c:236:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (strbuf_read_file(&lock_reason, path.buf, 0) < 0)
                                                                            ^
                                                                             {
/datasets/git/worktree.c:240:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/worktree.c:249:52: warning: parameter name 'wt' is too short, expected at least 3 characters [readability-identifier-length]
const char *worktree_prune_reason(struct worktree *wt, timestamp_t expire)
                                                   ^
/datasets/git/worktree.c:254:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_main_worktree(wt))
                                 ^
                                  {
/datasets/git/worktree.c:256:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (wt->prune_reason_valid)
                                   ^
                                    {
/datasets/git/worktree.c:259:60: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (should_prune_worktree(wt->id, &reason, &path, expire))
                                                                  ^
                                                                   {
/datasets/git/worktree.c:274:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!buf)
                 ^
                  {
/datasets/git/worktree.c:282:46: warning: parameter name 'wt' is too short, expected at least 3 characters [readability-identifier-length]
int validate_worktree(const struct worktree *wt, struct strbuf *errmsg,
                                             ^
/datasets/git/worktree.c:288:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int err, ret = -1;
        ^~~~~~~~~~~~~~~~~~
/datasets/git/worktree.c:288:6: warning: variable 'err' is not initialized [cppcoreguidelines-init-variables]
        int err, ret = -1;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/worktree.c:320:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & WT_VALIDATE_WORKTREE_MISSING_OK &&
            ^
/datasets/git/worktree.c:320:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & WT_VALIDATE_WORKTREE_MISSING_OK &&
                    ^
/datasets/git/./worktree.h:99:42: note: expanded from macro 'WT_VALIDATE_WORKTREE_MISSING_OK'
#define WT_VALIDATE_WORKTREE_MISSING_OK (1 << 0)
                                         ^
/datasets/git/worktree.c:341:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/worktree.c:351:48: warning: parameter name 'wt' is too short, expected at least 3 characters [readability-identifier-length]
void update_worktree_location(struct worktree *wt, const char *path_)
                                               ^
/datasets/git/worktree.c:355:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_main_worktree(wt))
                                 ^
                                  {
/datasets/git/worktree.c:368:54: warning: parameter name 'wt' is too short, expected at least 3 characters [readability-identifier-length]
int is_worktree_being_rebased(const struct worktree *wt,
                                                     ^
/datasets/git/worktree.c:372:6: warning: variable 'found_rebase' is not initialized [cppcoreguidelines-init-variables]
        int found_rebase;
            ^
                         = 0
/datasets/git/worktree.c:374:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&state, 0, sizeof(state));
        ^~~~~~
/datasets/git/worktree.c:374:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&state, 0, sizeof(state));
        ^~~~~~
/datasets/git/worktree.c:385:55: warning: parameter name 'wt' is too short, expected at least 3 characters [readability-identifier-length]
int is_worktree_being_bisected(const struct worktree *wt,
                                                      ^
/datasets/git/worktree.c:389:6: warning: variable 'found_bisect' is not initialized [cppcoreguidelines-init-variables]
        int found_bisect;
            ^
                         = 0
/datasets/git/worktree.c:391:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&state, 0, sizeof(state));
        ^~~~~~
/datasets/git/worktree.c:391:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&state, 0, sizeof(state));
        ^~~~~~
/datasets/git/worktree.c:407:8: warning: 2 adjacent parameters of 'find_shared_symref' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                          const char *symref,
                                          ^~~~~~~~~~~~~~~~~~~
/datasets/git/worktree.c:407:20: note: the first parameter in the range is 'symref'
                                          const char *symref,
                                                      ^~~~~~
/datasets/git/worktree.c:408:20: note: the last parameter in the range is 'target'
                                          const char *target)
                                                      ^~~~~~
/datasets/git/worktree.c:411:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 0;
            ^
/datasets/git/worktree.c:413:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; worktrees[i]; i++) {
        ^
/datasets/git/worktree.c:414:20: warning: variable name 'wt' is too short, expected at least 3 characters [readability-identifier-length]
                struct worktree *wt = worktrees[i];
                                 ^
/datasets/git/worktree.c:415:15: warning: variable 'symref_target' is not initialized [cppcoreguidelines-init-variables]
                const char *symref_target;
                            ^
                                          = NULL
/datasets/git/worktree.c:416:21: warning: variable 'refs' is not initialized [cppcoreguidelines-init-variables]
                struct ref_store *refs;
                                  ^
                                       = NULL
/datasets/git/worktree.c:417:7: warning: variable 'flags' is not initialized [cppcoreguidelines-init-variables]
                int flags;
                    ^
                          = 0
/datasets/git/worktree.c:419:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (wt->is_bare)
                                ^
                                 {
/datasets/git/worktree.c:436:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((flags & REF_ISSYMREF) &&
                     ^~~~~
/datasets/git/worktree.c:448:8: warning: variable 'submodule_gitdir' is not initialized [cppcoreguidelines-init-variables]
        char *submodule_gitdir;
              ^
                               = NULL
/datasets/git/worktree.c:449:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct strbuf sb = STRBUF_INIT, err = STRBUF_INIT;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/worktree.c:449:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT, err = STRBUF_INIT;
                      ^
/datasets/git/worktree.c:450:7: warning: variable 'dir' is not initialized [cppcoreguidelines-init-variables]
        DIR *dir;
             ^
                 = NULL
/datasets/git/worktree.c:451:17: warning: variable 'd' is not initialized [cppcoreguidelines-init-variables]
        struct dirent *d;
                       ^
                         = NULL
/datasets/git/worktree.c:451:17: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/worktree.c:456:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!submodule_gitdir)
                              ^
                               {
/datasets/git/worktree.c:482:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!dir)
                 ^
                  {
/datasets/git/worktree.c:486:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (d)
              ^
               {
/datasets/git/worktree.c:492:49: warning: parameter name 'wt' is too short, expected at least 3 characters [readability-identifier-length]
void strbuf_worktree_ref(const struct worktree *wt,
                                                ^
/datasets/git/worktree.c:493:20: warning: parameter name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
                         struct strbuf *sb,
                                        ^
/datasets/git/worktree.c:499:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (is_main_worktree(wt))
                                         ^
                                          {
/datasets/git/worktree.c:501:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/worktree.c:507:33: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
int other_head_refs(each_ref_fn fn, void *cb_data)
                                ^
/datasets/git/worktree.c:509:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct worktree **worktrees, **p;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/worktree.c:509:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/worktree.c:509:20: warning: variable 'worktrees' is not initialized [cppcoreguidelines-init-variables]
        struct worktree **worktrees, **p;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/worktree.c:509:33: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        struct worktree **worktrees, **p;
                                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/worktree.c:509:33: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/worktree.c:514:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (p = worktrees; *p; p++) {
        ^
/datasets/git/worktree.c:514:22: warning: backward branch (for loop) is ID-dependent due to variable reference to 'p' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (p = worktrees; *p; p++) {
                            ^
/datasets/git/worktree.c:515:20: warning: variable name 'wt' is too short, expected at least 3 characters [readability-identifier-length]
                struct worktree *wt = *p;
                                 ^
/datasets/git/worktree.c:517:7: warning: variable 'flag' is not initialized [cppcoreguidelines-init-variables]
                int flag;
                    ^
                         = 0
/datasets/git/worktree.c:519:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (wt->is_current)
                                   ^
                                    {
/datasets/git/worktree.c:527:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                            &oid, &flag))
                                                         ^
                                                          {
/datasets/git/worktree.c:529:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret)
                        ^
                         {
/datasets/git/worktree.c:541:45: warning: parameter name 'wt' is too short, expected at least 3 characters [readability-identifier-length]
static void repair_gitfile(struct worktree *wt,
                                            ^
/datasets/git/worktree.c:542:26: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
                           worktree_repair_fn fn, void *cb_data)
                                              ^
/datasets/git/worktree.c:546:8: warning: variable 'backlink' is not initialized [cppcoreguidelines-init-variables]
        char *backlink;
              ^
                       = NULL
/datasets/git/worktree.c:548:6: warning: variable 'err' is not initialized [cppcoreguidelines-init-variables]
        int err;
            ^
                = 0
/datasets/git/worktree.c:551:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!file_exists(wt->path))
                                   ^
                                    {
/datasets/git/worktree.c:563:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err == READ_GITFILE_ERR_NOT_A_FILE)
                                               ^
                                                {
/datasets/git/worktree.c:565:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (err)
                     ^
                      {
/datasets/git/worktree.c:567:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (fspathcmp(backlink, repo.buf))
                                               ^
                                                {
/datasets/git/worktree.c:580:36: warning: 2 adjacent parameters of 'repair_noop' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void repair_noop(int iserr, const char *path, const char *msg,
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/worktree.c:580:48: note: the first parameter in the range is 'path'
static void repair_noop(int iserr, const char *path, const char *msg,
                                               ^~~~
/datasets/git/worktree.c:580:66: note: the last parameter in the range is 'msg'
static void repair_noop(int iserr, const char *path, const char *msg,
                                                                 ^~~
/datasets/git/worktree.c:586:42: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
void repair_worktrees(worktree_repair_fn fn, void *cb_data)
                                         ^
/datasets/git/worktree.c:589:20: warning: variable name 'wt' is too short, expected at least 3 characters [readability-identifier-length]
        struct worktree **wt = worktrees + 1; /* +1 skips main worktree */
                          ^
/datasets/git/worktree.c:591:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!fn)
                ^
                 {
/datasets/git/worktree.c:593:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; *wt; wt++)
        ^
/datasets/git/worktree.c:593:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'wt' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; *wt; wt++)
               ^
/datasets/git/worktree.c:593:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (; *wt; wt++)
                         ^
                          {
/datasets/git/worktree.c:602:6: warning: variable 'cmp' is not initialized [cppcoreguidelines-init-variables]
        int cmp;
            ^
                = 0
/datasets/git/worktree.c:626:14: warning: variable 'id' is not initialized [cppcoreguidelines-init-variables]
        const char *id;
                    ^
                       = NULL
/datasets/git/worktree.c:626:14: warning: variable name 'id' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/worktree.c:628:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strbuf_read_file(&actual, gitfile, 0) < 0)
                                                      ^
                                                       {
/datasets/git/worktree.c:630:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!starts_with(actual.buf, "gitdir:"))
                                                ^
                                                 {
/datasets/git/worktree.c:632:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if (!(id = find_last_dir_sep(actual.buf)))
              ^
/datasets/git/worktree.c:632:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/worktree.c:632:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/worktree.c:632:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(id = find_last_dir_sep(actual.buf)))
                                                  ^
                                                   {
/datasets/git/worktree.c:636:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!*id)
                 ^
                  {
/datasets/git/worktree.c:639:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!is_directory(inferred.buf))
                                        ^
                                         {
/datasets/git/worktree.c:656:28: warning: parameter name 'fn' is too short, expected at least 3 characters [readability-identifier-length]
                             worktree_repair_fn fn, void *cb_data)
                                                ^
/datasets/git/worktree.c:664:6: warning: variable 'err' is not initialized [cppcoreguidelines-init-variables]
        int err;
            ^
                = 0
/datasets/git/worktree.c:666:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!fn)
                ^
                 {
/datasets/git/worktree.c:669:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_main_worktree_path(path))
                                        ^
                                         {
/datasets/git/worktree.c:683:9: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                if (!(backlink = infer_backlink(realdotgit.buf))) {
                      ^
/datasets/git/worktree.c:683:9: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/worktree.c:683:9: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/worktree.c:693:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strbuf_read_file(&olddotgit, gitdir.buf, 0) < 0)
                                                            ^
                                                             {
/datasets/git/worktree.c:697:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fspathcmp(olddotgit.buf, realdotgit.buf))
                                                             ^
                                                              {
/datasets/git/worktree.c:713:39: warning: parameter name 'id' is too short, expected at least 3 characters [readability-identifier-length]
int should_prune_worktree(const char *id, struct strbuf *reason, char **wtpath, timestamp_t expire)
                                      ^
/datasets/git/worktree.c:715:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/worktree.c:716:8: warning: variable 'path' is not initialized [cppcoreguidelines-init-variables]
        char *path;
              ^
                   = NULL
/datasets/git/worktree.c:717:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/worktree.c:717:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/worktree.c:718:9: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        size_t len;
               ^
                   = 0
/datasets/git/worktree.c:719:10: warning: variable 'read_result' is not initialized [cppcoreguidelines-init-variables]
        ssize_t read_result;
                ^
                            = 0
/datasets/git/worktree.c:726:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (file_exists(git_path("worktrees/%s/locked", id)))
                                                             ^
                                                              {
/datasets/git/worktree.c:732:57: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
        fd = open(git_path("worktrees/%s/gitdir", id), O_RDONLY);
                                                               ^
                                                                | O_CLOEXEC
/datasets/git/worktree.c:735:8: warning: function is not thread safe [concurrency-mt-unsafe]
                            strerror(errno));
                            ^
/datasets/git/worktree.c:744:8: warning: function is not thread safe [concurrency-mt-unsafe]
                            strerror(errno));
                            ^
/datasets/git/worktree.c:758:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (len && (path[len - 1] == '\n' || path[len - 1] == '\r'))
        ^
/datasets/git/worktree.c:758:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (len && (path[len - 1] == '\n' || path[len - 1] == '\r'))
               ^
/datasets/git/worktree.c:758:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (len && (path[len - 1] == '\n' || path[len - 1] == '\r'))
                                                                       ^
                                                                        {
/datasets/git/worktree.c:772:5: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                } else {
                  ^~~~~~
/datasets/git/worktree.c:781:49: warning: 2 adjacent parameters of 'move_config_setting' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int move_config_setting(const char *key, const char *value,
                                                ^~~~~~~~~~~~~~~~~~
/datasets/git/worktree.c:781:61: note: the first parameter in the range is 'value'
static int move_config_setting(const char *key, const char *value,
                                                            ^~~~~
/datasets/git/worktree.c:782:23: note: the last parameter in the range is 'from_file'
                               const char *from_file, const char *to_file)
                                           ^~~~~~~~~
/datasets/git/worktree.c:784:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (git_config_set_in_file_gently(to_file, key, value))
                                                               ^
                                                                {
/datasets/git/worktree.c:786:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (git_config_set_in_file_gently(from_file, key, NULL))
                                                                ^
                                                                 {
/datasets/git/worktree.c:791:45: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int init_worktree_config(struct repository *r)
                                            ^
/datasets/git/worktree.c:795:20: warning: variable name 'cs' is too short, expected at least 3 characters [readability-identifier-length]
        struct config_set cs = { { 0 } };
                          ^
/datasets/git/worktree.c:796:14: warning: variable 'core_worktree' is not initialized [cppcoreguidelines-init-variables]
        const char *core_worktree;
                    ^
                                  = NULL
/datasets/git/worktree.c:797:8: warning: variable 'common_config_file' is not initialized [cppcoreguidelines-init-variables]
        char *common_config_file;
              ^
                                 = NULL
/datasets/git/worktree.c:798:8: warning: variable 'main_worktree_file' is not initialized [cppcoreguidelines-init-variables]
        char *main_worktree_file;
              ^
                                 = NULL
/datasets/git/worktree.c:804:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (repository_format_worktree_config)
                                              ^
                                               {
/datasets/git/worktree.c:806:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if ((res = git_config_set_gently("extensions.worktreeConfig", "true")))
             ^
/datasets/git/worktree.c:806:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/worktree.c:806:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/worktree.c:806:73: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((res = git_config_set_gently("extensions.worktreeConfig", "true")))
                                                                               ^
                                                                                {
/datasets/git/worktree.c:822:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                if ((res = move_config_setting("core.bare", "true",
                     ^
/datasets/git/worktree.c:822:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/worktree.c:822:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/worktree.c:824:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                               main_worktree_file)))
                                                                    ^
                                                                     {
/datasets/git/worktree.c:834:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                if ((res = move_config_setting("core.worktree", core_worktree,
                     ^
/datasets/git/worktree.c:834:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/worktree.c:834:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/worktree.c:836:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                               main_worktree_file)))
                                                                    ^
                                                                     {
wrapper.c:7:17: warning: variable 'count_fsync_writeout_only' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static intmax_t count_fsync_writeout_only;
                ^
wrapper.c:8:17: warning: variable 'count_fsync_hardware_flush' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static intmax_t count_fsync_hardware_flush;
                ^
/datasets/git/wrapper.c:17:31: warning: 2 adjacent parameters of 'memory_limit_check' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int memory_limit_check(size_t size, int gentle)
                              ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wrapper.c:17:38: note: the first parameter in the range is 'size'
static int memory_limit_check(size_t size, int gentle)
                                     ^~~~
/datasets/git/wrapper.c:17:48: note: the last parameter in the range is 'gentle'
static int memory_limit_check(size_t size, int gentle)
                                               ^~~~~~
/datasets/git/wrapper.c:17:31: note: 
static int memory_limit_check(size_t size, int gentle)
                              ^
/datasets/git/wrapper.c:17:44: note: 'size_t' and 'int' may be implicitly converted: 'size_t' (as 'unsigned long') -> 'int', 'int' -> 'size_t' (as 'unsigned long')
static int memory_limit_check(size_t size, int gentle)
                                           ^
/datasets/git/wrapper.c:22:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!limit)
                           ^
                            {
/datasets/git/wrapper.c:30:5: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                } else
                  ^~~~
/datasets/git/wrapper.c:30:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/wrapper.c:40:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ret)
                 ^
                  {
/datasets/git/wrapper.c:47:8: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        void *ret;
              ^
                  = NULL
/datasets/git/wrapper.c:49:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (memory_limit_check(size, gentle))
                                             ^
                                              {
/datasets/git/wrapper.c:51:8: warning: Call to 'malloc' has an allocation size of 0 bytes [clang-analyzer-optin.portability.UnixAPI]
        ret = malloc(size);
              ^
/datasets/git/wrapper.c:130:6: note: Assuming 'size' is 0
        if (!size) {
            ^~~~~
/datasets/git/wrapper.c:130:2: note: Taking true branch
        if (!size) {
        ^
/datasets/git/wrapper.c:132:18: note: Passing the value 0 via 1st parameter 'size'
                return xmalloc(0);
                               ^
/datasets/git/wrapper.c:132:10: note: Calling 'xmalloc'
                return xmalloc(0);
                       ^~~~~~~~~~
/datasets/git/wrapper.c:72:20: note: Passing the value 0 via 1st parameter 'size'
        return do_xmalloc(size, 0);
                          ^~~~
/datasets/git/wrapper.c:72:9: note: Calling 'do_xmalloc'
        return do_xmalloc(size, 0);
               ^~~~~~~~~~~~~~~~~~~
/datasets/git/wrapper.c:49:2: note: Taking false branch
        if (memory_limit_check(size, gentle))
        ^
/datasets/git/wrapper.c:51:8: note: Call to 'malloc' has an allocation size of 0 bytes
        ret = malloc(size);
              ^      ~~~~
/datasets/git/wrapper.c:52:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ret && !size)
                          ^
                           {
/datasets/git/wrapper.c:55:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!gentle)
                            ^
                             {
/datasets/git/wrapper.c:77:8: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        void *ret;
              ^
                  = NULL
/datasets/git/wrapper.c:82:5: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                } else
                  ^~~~
                                        die("Data too large to fit into virtual memory space.")
/datasets/git/wrapper.c:82:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/wrapper.c:86:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret)
                ^
                 {
/datasets/git/wrapper.c:109:9: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        return memcpy(xmallocz(len), data, len);
               ^~~~~~
/datasets/git/wrapper.c:109:9: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        return memcpy(xmallocz(len), data, len);
               ^~~~~~
/datasets/git/wrapper.c:114:8: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        char *p = memchr(str, '\0', len);
              ^
/datasets/git/wrapper.c:118:27: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
int xstrncmpz(const char *s, const char *t, size_t len)
                          ^
/datasets/git/wrapper.c:118:42: warning: parameter name 't' is too short, expected at least 3 characters [readability-identifier-length]
int xstrncmpz(const char *s, const char *t, size_t len)
                                         ^
/datasets/git/wrapper.c:121:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (res)
                ^
                 {
/datasets/git/wrapper.c:128:8: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        void *ret;
              ^
                  = NULL
/datasets/git/wrapper.c:137:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ret)
                 ^
                  {
/datasets/git/wrapper.c:144:8: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        void *ret;
              ^
                  = NULL
/datasets/git/wrapper.c:146:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (unsigned_mult_overflows(nmemb, size))
                                                 ^
                                                  {
/datasets/git/wrapper.c:151:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ret && (!nmemb || !size))
                                      ^
                                       {
/datasets/git/wrapper.c:153:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ret)
                 ^
                  {
/datasets/git/wrapper.c:160:6: warning: function is not thread safe [concurrency-mt-unsafe]
        if (setenv(name, value, overwrite))
            ^
/datasets/git/wrapper.c:160:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (setenv(name, value, overwrite))
                                           ^
                                            {
/datasets/git/wrapper.c:170:10: warning: variable name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
        va_list ap;
                ^
/datasets/git/wrapper.c:179:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (oflag & O_CREAT)
            ^~~~~
/datasets/git/wrapper.c:179:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (oflag & O_CREAT)
                            ^
                             {
/datasets/git/wrapper.c:180:10: warning: va_arg() is called on an uninitialized va_list [clang-analyzer-valist.Uninitialized]
                mode = va_arg(ap, int);
                       ^
/usr/lib/llvm-15/lib/clang/15.0.2/include/stdarg.h:19:29: note: expanded from macro 'va_arg'
#define va_arg(ap, type)    __builtin_va_arg(ap, type)
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wrapper.c:179:6: note: Assuming the condition is true
        if (oflag & O_CREAT)
            ^~~~~~~~~~~~~~~
/datasets/git/wrapper.c:179:2: note: Taking true branch
        if (oflag & O_CREAT)
        ^
/datasets/git/wrapper.c:180:10: note: va_arg() is called on an uninitialized va_list
                mode = va_arg(ap, int);
                       ^
/usr/lib/llvm-15/lib/clang/15.0.2/include/stdarg.h:19:29: note: expanded from macro 'va_arg'
#define va_arg(ap, type)    __builtin_va_arg(ap, type)
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wrapper.c:183:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/wrapper.c:184:7: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
                int fd = open(path, oflag, mode);
                    ^
/datasets/git/wrapper.c:185:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fd >= 0)
                            ^
                             {
/datasets/git/wrapper.c:187:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (errno == EINTR)
                                   ^
                                    {
/datasets/git/wrapper.c:190:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((oflag & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL))
                     ^~~~~
/datasets/git/wrapper.c:190:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((oflag & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL))
                                                                       ^
                                                                        {
/datasets/git/wrapper.c:192:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                else if ((oflag & O_RDWR) == O_RDWR)
                          ^~~~~
/datasets/git/wrapper.c:192:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if ((oflag & O_RDWR) == O_RDWR)
                                                    ^
                                                     {
/datasets/git/wrapper.c:194:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                else if ((oflag & O_WRONLY) == O_WRONLY)
                          ^~~~~
/datasets/git/wrapper.c:194:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if ((oflag & O_WRONLY) == O_WRONLY)
                                                        ^
                                                         {
/datasets/git/wrapper.c:196:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/wrapper.c:201:28: warning: 3 adjacent parameters of 'handle_nonblock' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int handle_nonblock(int fd, short poll_events, int err)
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wrapper.c:201:32: note: the first parameter in the range is 'fd'
static int handle_nonblock(int fd, short poll_events, int err)
                               ^~
/datasets/git/wrapper.c:201:59: note: the last parameter in the range is 'err'
static int handle_nonblock(int fd, short poll_events, int err)
                                                          ^~~
/datasets/git/wrapper.c:201:36: note: 'int' and 'short' may be implicitly converted
static int handle_nonblock(int fd, short poll_events, int err)
                                   ^
/datasets/git/wrapper.c:201:32: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
static int handle_nonblock(int fd, short poll_events, int err)
                               ^
/datasets/git/wrapper.c:205:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (err != EAGAIN && err != EWOULDBLOCK)
                                                ^
                                                 {
/datasets/git/wrapper.c:224:19: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
ssize_t xread(int fd, void *buf, size_t len)
                  ^
/datasets/git/wrapper.c:226:10: warning: variable 'nr' is not initialized [cppcoreguidelines-init-variables]
        ssize_t nr;
                ^
                   = 0
/datasets/git/wrapper.c:226:10: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wrapper.c:227:12: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        if (len > MAX_IO_SIZE)
                  ^
/datasets/git/./git-compat-util.h:1041:23: note: expanded from macro 'MAX_IO_SIZE'
#  define MAX_IO_SIZE MAX_IO_SIZE_DEFAULT
                      ^
/datasets/git/./git-compat-util.h:1037:31: note: expanded from macro 'MAX_IO_SIZE_DEFAULT'
# define MAX_IO_SIZE_DEFAULT (8*1024*1024)
                              ^
/datasets/git/wrapper.c:227:12: note: make conversion explicit to silence this warning
        if (len > MAX_IO_SIZE)
                  ^
/datasets/git/./git-compat-util.h:1041:23: note: expanded from macro 'MAX_IO_SIZE'
#  define MAX_IO_SIZE MAX_IO_SIZE_DEFAULT
                      ^~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1037:31: note: expanded from macro 'MAX_IO_SIZE_DEFAULT'
# define MAX_IO_SIZE_DEFAULT (8*1024*1024)
                              ^~~~~~~~~~~
/datasets/git/wrapper.c:227:12: note: perform multiplication in a wider type
        if (len > MAX_IO_SIZE)
                  ^
/datasets/git/./git-compat-util.h:1041:23: note: expanded from macro 'MAX_IO_SIZE'
#  define MAX_IO_SIZE MAX_IO_SIZE_DEFAULT
                      ^~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1037:31: note: expanded from macro 'MAX_IO_SIZE_DEFAULT'
# define MAX_IO_SIZE_DEFAULT (8*1024*1024)
                              ^~~~~~
/datasets/git/wrapper.c:227:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len > MAX_IO_SIZE)
                              ^
                               {
/datasets/git/wrapper.c:228:9: warning: performing an implicit widening conversion to type 'size_t' (aka 'unsigned long') of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                len = MAX_IO_SIZE;
                      ^
/datasets/git/./git-compat-util.h:1041:23: note: expanded from macro 'MAX_IO_SIZE'
#  define MAX_IO_SIZE MAX_IO_SIZE_DEFAULT
                      ^
/datasets/git/./git-compat-util.h:1037:31: note: expanded from macro 'MAX_IO_SIZE_DEFAULT'
# define MAX_IO_SIZE_DEFAULT (8*1024*1024)
                              ^
/datasets/git/wrapper.c:228:9: note: make conversion explicit to silence this warning
                len = MAX_IO_SIZE;
                      ^
/datasets/git/./git-compat-util.h:1041:23: note: expanded from macro 'MAX_IO_SIZE'
#  define MAX_IO_SIZE MAX_IO_SIZE_DEFAULT
                      ^~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1037:31: note: expanded from macro 'MAX_IO_SIZE_DEFAULT'
# define MAX_IO_SIZE_DEFAULT (8*1024*1024)
                              ^~~~~~~~~~~
/datasets/git/wrapper.c:228:9: note: perform multiplication in a wider type
                len = MAX_IO_SIZE;
                      ^
/datasets/git/./git-compat-util.h:1041:23: note: expanded from macro 'MAX_IO_SIZE'
#  define MAX_IO_SIZE MAX_IO_SIZE_DEFAULT
                      ^~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1037:31: note: expanded from macro 'MAX_IO_SIZE_DEFAULT'
# define MAX_IO_SIZE_DEFAULT (8*1024*1024)
                              ^~~~~~
/datasets/git/wrapper.c:229:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/wrapper.c:232:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (errno == EINTR)
                                           ^
                                            {
/datasets/git/wrapper.c:234:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (handle_nonblock(fd, POLLIN, errno))
                                                               ^
                                                                {
/datasets/git/wrapper.c:246:20: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
ssize_t xwrite(int fd, const void *buf, size_t len)
                   ^
/datasets/git/wrapper.c:248:10: warning: variable 'nr' is not initialized [cppcoreguidelines-init-variables]
        ssize_t nr;
                ^
                   = 0
/datasets/git/wrapper.c:248:10: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wrapper.c:249:12: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        if (len > MAX_IO_SIZE)
                  ^
/datasets/git/./git-compat-util.h:1041:23: note: expanded from macro 'MAX_IO_SIZE'
#  define MAX_IO_SIZE MAX_IO_SIZE_DEFAULT
                      ^
/datasets/git/./git-compat-util.h:1037:31: note: expanded from macro 'MAX_IO_SIZE_DEFAULT'
# define MAX_IO_SIZE_DEFAULT (8*1024*1024)
                              ^
/datasets/git/wrapper.c:249:12: note: make conversion explicit to silence this warning
        if (len > MAX_IO_SIZE)
                  ^
/datasets/git/./git-compat-util.h:1041:23: note: expanded from macro 'MAX_IO_SIZE'
#  define MAX_IO_SIZE MAX_IO_SIZE_DEFAULT
                      ^~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1037:31: note: expanded from macro 'MAX_IO_SIZE_DEFAULT'
# define MAX_IO_SIZE_DEFAULT (8*1024*1024)
                              ^~~~~~~~~~~
/datasets/git/wrapper.c:249:12: note: perform multiplication in a wider type
        if (len > MAX_IO_SIZE)
                  ^
/datasets/git/./git-compat-util.h:1041:23: note: expanded from macro 'MAX_IO_SIZE'
#  define MAX_IO_SIZE MAX_IO_SIZE_DEFAULT
                      ^~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1037:31: note: expanded from macro 'MAX_IO_SIZE_DEFAULT'
# define MAX_IO_SIZE_DEFAULT (8*1024*1024)
                              ^~~~~~
/datasets/git/wrapper.c:249:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len > MAX_IO_SIZE)
                              ^
                               {
/datasets/git/wrapper.c:250:9: warning: performing an implicit widening conversion to type 'size_t' (aka 'unsigned long') of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                len = MAX_IO_SIZE;
                      ^
/datasets/git/./git-compat-util.h:1041:23: note: expanded from macro 'MAX_IO_SIZE'
#  define MAX_IO_SIZE MAX_IO_SIZE_DEFAULT
                      ^
/datasets/git/./git-compat-util.h:1037:31: note: expanded from macro 'MAX_IO_SIZE_DEFAULT'
# define MAX_IO_SIZE_DEFAULT (8*1024*1024)
                              ^
/datasets/git/wrapper.c:250:9: note: make conversion explicit to silence this warning
                len = MAX_IO_SIZE;
                      ^
/datasets/git/./git-compat-util.h:1041:23: note: expanded from macro 'MAX_IO_SIZE'
#  define MAX_IO_SIZE MAX_IO_SIZE_DEFAULT
                      ^~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1037:31: note: expanded from macro 'MAX_IO_SIZE_DEFAULT'
# define MAX_IO_SIZE_DEFAULT (8*1024*1024)
                              ^~~~~~~~~~~
/datasets/git/wrapper.c:250:9: note: perform multiplication in a wider type
                len = MAX_IO_SIZE;
                      ^
/datasets/git/./git-compat-util.h:1041:23: note: expanded from macro 'MAX_IO_SIZE'
#  define MAX_IO_SIZE MAX_IO_SIZE_DEFAULT
                      ^~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1037:31: note: expanded from macro 'MAX_IO_SIZE_DEFAULT'
# define MAX_IO_SIZE_DEFAULT (8*1024*1024)
                              ^~~~~~
/datasets/git/wrapper.c:251:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/wrapper.c:254:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (errno == EINTR)
                                           ^
                                            {
/datasets/git/wrapper.c:256:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (handle_nonblock(fd, POLLOUT, errno))
                                                                ^
                                                                 {
/datasets/git/wrapper.c:269:20: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
ssize_t xpread(int fd, void *buf, size_t len, off_t offset)
                   ^
/datasets/git/wrapper.c:271:10: warning: variable 'nr' is not initialized [cppcoreguidelines-init-variables]
        ssize_t nr;
                ^
                   = 0
/datasets/git/wrapper.c:271:10: warning: variable name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wrapper.c:272:12: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
        if (len > MAX_IO_SIZE)
                  ^
/datasets/git/./git-compat-util.h:1041:23: note: expanded from macro 'MAX_IO_SIZE'
#  define MAX_IO_SIZE MAX_IO_SIZE_DEFAULT
                      ^
/datasets/git/./git-compat-util.h:1037:31: note: expanded from macro 'MAX_IO_SIZE_DEFAULT'
# define MAX_IO_SIZE_DEFAULT (8*1024*1024)
                              ^
/datasets/git/wrapper.c:272:12: note: make conversion explicit to silence this warning
        if (len > MAX_IO_SIZE)
                  ^
/datasets/git/./git-compat-util.h:1041:23: note: expanded from macro 'MAX_IO_SIZE'
#  define MAX_IO_SIZE MAX_IO_SIZE_DEFAULT
                      ^~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1037:31: note: expanded from macro 'MAX_IO_SIZE_DEFAULT'
# define MAX_IO_SIZE_DEFAULT (8*1024*1024)
                              ^~~~~~~~~~~
/datasets/git/wrapper.c:272:12: note: perform multiplication in a wider type
        if (len > MAX_IO_SIZE)
                  ^
/datasets/git/./git-compat-util.h:1041:23: note: expanded from macro 'MAX_IO_SIZE'
#  define MAX_IO_SIZE MAX_IO_SIZE_DEFAULT
                      ^~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1037:31: note: expanded from macro 'MAX_IO_SIZE_DEFAULT'
# define MAX_IO_SIZE_DEFAULT (8*1024*1024)
                              ^~~~~~
/datasets/git/wrapper.c:272:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len > MAX_IO_SIZE)
                              ^
                               {
/datasets/git/wrapper.c:273:9: warning: performing an implicit widening conversion to type 'size_t' (aka 'unsigned long') of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                len = MAX_IO_SIZE;
                      ^
/datasets/git/./git-compat-util.h:1041:23: note: expanded from macro 'MAX_IO_SIZE'
#  define MAX_IO_SIZE MAX_IO_SIZE_DEFAULT
                      ^
/datasets/git/./git-compat-util.h:1037:31: note: expanded from macro 'MAX_IO_SIZE_DEFAULT'
# define MAX_IO_SIZE_DEFAULT (8*1024*1024)
                              ^
/datasets/git/wrapper.c:273:9: note: make conversion explicit to silence this warning
                len = MAX_IO_SIZE;
                      ^
/datasets/git/./git-compat-util.h:1041:23: note: expanded from macro 'MAX_IO_SIZE'
#  define MAX_IO_SIZE MAX_IO_SIZE_DEFAULT
                      ^~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1037:31: note: expanded from macro 'MAX_IO_SIZE_DEFAULT'
# define MAX_IO_SIZE_DEFAULT (8*1024*1024)
                              ^~~~~~~~~~~
/datasets/git/wrapper.c:273:9: note: perform multiplication in a wider type
                len = MAX_IO_SIZE;
                      ^
/datasets/git/./git-compat-util.h:1041:23: note: expanded from macro 'MAX_IO_SIZE'
#  define MAX_IO_SIZE MAX_IO_SIZE_DEFAULT
                      ^~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1037:31: note: expanded from macro 'MAX_IO_SIZE_DEFAULT'
# define MAX_IO_SIZE_DEFAULT (8*1024*1024)
                              ^~~~~~
/datasets/git/wrapper.c:274:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (1) {
        ^
/datasets/git/wrapper.c:276:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((nr < 0) && (errno == EAGAIN || errno == EINTR))
                                                                    ^
                                                                     {
/datasets/git/wrapper.c:282:26: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
ssize_t read_in_full(int fd, void *buf, size_t count)
                         ^
/datasets/git/wrapper.c:282:41: note: inferred assignment of ID-dependent value from ID-dependent variable loaded [altera-id-dependent-backward-branch]
ssize_t read_in_full(int fd, void *buf, size_t count)
                                        ^
/datasets/git/wrapper.c:284:8: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        char *p = buf;
              ^
/datasets/git/wrapper.c:287:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (count > 0) {
        ^
/datasets/git/wrapper.c:287:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'count' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (count > 0) {
               ^
/datasets/git/wrapper.c:289:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (loaded < 0)
                               ^
                                {
/datasets/git/wrapper.c:291:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (loaded == 0)
                                ^
                                 {
/datasets/git/wrapper.c:301:27: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
ssize_t write_in_full(int fd, const void *buf, size_t count)
                          ^
/datasets/git/wrapper.c:301:48: note: inferred assignment of ID-dependent value from ID-dependent variable written [altera-id-dependent-backward-branch]
ssize_t write_in_full(int fd, const void *buf, size_t count)
                                               ^
/datasets/git/wrapper.c:303:14: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        const char *p = buf;
                    ^
/datasets/git/wrapper.c:306:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (count > 0) {
        ^
/datasets/git/wrapper.c:306:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'count' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (count > 0) {
               ^
/datasets/git/wrapper.c:308:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (written < 0)
                                ^
                                 {
/datasets/git/wrapper.c:322:27: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
ssize_t pread_in_full(int fd, void *buf, size_t count, off_t offset)
                          ^
/datasets/git/wrapper.c:322:42: note: inferred assignment of ID-dependent value from ID-dependent variable loaded [altera-id-dependent-backward-branch]
ssize_t pread_in_full(int fd, void *buf, size_t count, off_t offset)
                                         ^
/datasets/git/wrapper.c:324:8: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        char *p = buf;
              ^
/datasets/git/wrapper.c:327:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (count > 0) {
        ^
/datasets/git/wrapper.c:327:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'count' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (count > 0) {
               ^
/datasets/git/wrapper.c:329:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (loaded < 0)
                               ^
                                {
/datasets/git/wrapper.c:331:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (loaded == 0)
                                ^
                                 {
/datasets/git/wrapper.c:342:14: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
int xdup(int fd)
             ^
/datasets/git/wrapper.c:344:12: warning: prefer fcntl() to dup() because fcntl() allows F_DUPFD_CLOEXEC [android-cloexec-dup]
        int ret = dup(fd);
                  ^~~~~~~
                  fcntl(fd, F_DUPFD_CLOEXEC)
/datasets/git/wrapper.c:345:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret < 0)
                    ^
                     {
/datasets/git/wrapper.c:355:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/wrapper.c:356:9: warning: variable name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
                FILE *fp = fopen(path, mode);
                      ^
/datasets/git/wrapper.c:357:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fp)
                       ^
                        {
/datasets/git/wrapper.c:359:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (errno == EINTR)
                                   ^
                                    {
/datasets/git/wrapper.c:362:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*mode && mode[1] == '+')
                                            ^
                                             {
/datasets/git/wrapper.c:364:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (*mode == 'w' || *mode == 'a')
                                                      ^
                                                       {
/datasets/git/wrapper.c:366:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/wrapper.c:371:19: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
FILE *xfdopen(int fd, const char *mode)
                  ^
/datasets/git/wrapper.c:374:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!stream)
                    ^
                     {
/datasets/git/wrapper.c:384:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!unlink(path))
                                  ^
                                   {
/datasets/git/wrapper.c:386:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/wrapper.c:409:8: warning: variable name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
        FILE *fp = fopen(path, mode);
              ^
/datasets/git/wrapper.c:411:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fp)
               ^
                {
/datasets/git/wrapper.c:420:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/wrapper.c:420:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wrapper.c:427:15: warning: variable 'nonrelative_template' is not initialized [cppcoreguidelines-init-variables]
                const char *nonrelative_template;
                            ^
                                                 = NULL
/datasets/git/wrapper.c:429:57: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strlen(filename_template) != strlen(origtemplate))
                                                                      ^
                                                                       {
/datasets/git/wrapper.c:445:38: warning: 2 adjacent parameters of 'git_mkstemps_mode' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
int git_mkstemps_mode(char *pattern, int suffix_len, int mode)
                                     ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wrapper.c:445:42: note: the first parameter in the range is 'suffix_len'
int git_mkstemps_mode(char *pattern, int suffix_len, int mode)
                                         ^~~~~~~~~~
/datasets/git/wrapper.c:445:58: note: the last parameter in the range is 'mode'
int git_mkstemps_mode(char *pattern, int suffix_len, int mode)
                                                         ^~~~
/datasets/git/wrapper.c:454:8: warning: variable 'filename_template' is not initialized [cppcoreguidelines-init-variables]
        char *filename_template;
              ^
                                = NULL
/datasets/git/wrapper.c:455:9: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        size_t len;
               ^
                   = 0
/datasets/git/wrapper.c:456:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int fd, count;
        ^~~~~~~~~~~~~~
/datasets/git/wrapper.c:456:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd, count;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/wrapper.c:456:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wrapper.c:456:10: warning: variable 'count' is not initialized [cppcoreguidelines-init-variables]
        int fd, count;
                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/wrapper.c:465:6: warning: function 'strncmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        if (strncmp(&pattern[len - num_x - suffix_len], x_pattern, num_x)) {
            ^
                                                                          != 0
/datasets/git/wrapper.c:476:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/wrapper.c:476:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wrapper.c:477:12: warning: variable 'v' is not initialized [cppcoreguidelines-init-variables]
                uint64_t v;
                         ^
                           = 0
/datasets/git/wrapper.c:477:12: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wrapper.c:478:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (csprng_bytes(&v, sizeof(v)) < 0)
                                                    ^
                                                     {
/datasets/git/wrapper.c:482:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < num_x; i++) {
                ^
/datasets/git/wrapper.c:482:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'num_x' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < num_x; i++) {
                            ^
/datasets/git/wrapper.c:487:47: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
                fd = open(pattern, O_CREAT | O_EXCL | O_RDWR, mode);
                                                            ^
                                                             | O_CLOEXEC
/datasets/git/wrapper.c:488:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fd >= 0)
                            ^
                             {
/datasets/git/wrapper.c:494:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (errno != EEXIST)
                                    ^
                                     {
/datasets/git/wrapper.c:510:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd;
            ^
               = 0
/datasets/git/wrapper.c:510:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wrapper.c:517:15: warning: variable 'nonrelative_template' is not initialized [cppcoreguidelines-init-variables]
                const char *nonrelative_template;
                            ^
                                                 = NULL
/datasets/git/wrapper.c:519:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!filename_template[0])
                                          ^
                                           {
/datasets/git/wrapper.c:534:27: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
static int fsync_loop(int fd)
                          ^
/datasets/git/wrapper.c:536:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int err;
        ^
/datasets/git/wrapper.c:536:6: warning: variable 'err' is not initialized [cppcoreguidelines-init-variables]
        int err;
            ^
                = 0
/datasets/git/wrapper.c:538:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        do {
        ^
/datasets/git/wrapper.c:540:11: warning: backward branch (do loop) is ID-dependent due to variable reference to 'err' and may cause performance degradation [altera-id-dependent-backward-branch]
        } while (err < 0 && errno == EINTR);
                 ^
/datasets/git/wrapper.c:544:15: warning: 2 adjacent parameters of 'git_fsync' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
int git_fsync(int fd, enum fsync_action action)
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wrapper.c:544:19: note: the first parameter in the range is 'fd'
int git_fsync(int fd, enum fsync_action action)
                  ^~
/datasets/git/wrapper.c:544:41: note: the last parameter in the range is 'action'
int git_fsync(int fd, enum fsync_action action)
                                        ^~~~~~
/datasets/git/wrapper.c:544:23: note: 'int' and 'enum fsync_action' may be implicitly converted
int git_fsync(int fd, enum fsync_action action)
                      ^
/datasets/git/wrapper.c:544:19: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
int git_fsync(int fd, enum fsync_action action)
                  ^
/datasets/git/wrapper.c:599:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (value)
                  ^
                   {
/datasets/git/wrapper.c:609:44: warning: parameter name 'op' is too short, expected at least 3 characters [readability-identifier-length]
static int warn_if_unremovable(const char *op, const char *file, int rc)
                                           ^
/datasets/git/wrapper.c:609:70: warning: parameter name 'rc' is too short, expected at least 3 characters [readability-identifier-length]
static int warn_if_unremovable(const char *op, const char *file, int rc)
                                                                     ^
/datasets/git/wrapper.c:611:6: warning: variable 'err' is not initialized [cppcoreguidelines-init-variables]
        int err;
            ^
                = 0
/datasets/git/wrapper.c:612:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!rc || errno == ENOENT)
                                   ^
                                    {
/datasets/git/wrapper.c:622:6: warning: variable name 'rc' is too short, expected at least 3 characters [readability-identifier-length]
        int rc = unlink(file);
            ^
/datasets/git/wrapper.c:626:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!rc || errno == ENOENT)
                                   ^
                                    {
/datasets/git/wrapper.c:630:13: warning: function is not thread safe [concurrency-mt-unsafe]
                    file, strerror(errno));
                          ^
/datasets/git/wrapper.c:646:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return S_ISGITLINK(mode) ? rmdir_or_warn(file) : unlink_or_warn(file);
               ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/wrapper.c:652:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ((flag & ACCESS_EACCES_OK) && err == EACCES));
                         ^
/datasets/git/./git-compat-util.h:1455:27: note: expanded from macro 'ACCESS_EACCES_OK'
#define ACCESS_EACCES_OK (1U << 0)
                          ^     ~
/datasets/git/wrapper.c:655:38: warning: 2 adjacent parameters of 'access_or_warn' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
int access_or_warn(const char *path, int mode, unsigned flag)
                                     ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wrapper.c:655:42: note: the first parameter in the range is 'mode'
int access_or_warn(const char *path, int mode, unsigned flag)
                                         ^~~~
/datasets/git/wrapper.c:655:57: note: the last parameter in the range is 'flag'
int access_or_warn(const char *path, int mode, unsigned flag)
                                                        ^~~~
/datasets/git/wrapper.c:655:48: note: 'int' and 'unsigned int' may be implicitly converted
int access_or_warn(const char *path, int mode, unsigned flag)
                                               ^
/datasets/git/wrapper.c:658:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret && !access_error_is_ok(errno, flag))
                                                    ^
                                                     {
/datasets/git/wrapper.c:663:37: warning: 2 adjacent parameters of 'access_or_die' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
int access_or_die(const char *path, int mode, unsigned flag)
                                    ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wrapper.c:663:41: note: the first parameter in the range is 'mode'
int access_or_die(const char *path, int mode, unsigned flag)
                                        ^~~~
/datasets/git/wrapper.c:663:56: note: the last parameter in the range is 'flag'
int access_or_die(const char *path, int mode, unsigned flag)
                                                       ^~~~
/datasets/git/wrapper.c:663:47: note: 'int' and 'unsigned int' may be implicitly converted
int access_or_die(const char *path, int mode, unsigned flag)
                                              ^
/datasets/git/wrapper.c:666:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ret && !access_error_is_ok(errno, flag))
                                                    ^
                                                     {
/datasets/git/wrapper.c:673:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/wrapper.c:674:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strbuf_getcwd(&sb))
                               ^
                                {
/datasets/git/wrapper.c:681:10: warning: variable name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
        va_list ap;
                ^
/datasets/git/wrapper.c:682:6: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int len;
            ^
                = 0
/datasets/git/wrapper.c:685:8: warning: Call to function 'vsnprintf' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'vsnprintf_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        len = vsnprintf(dst, max, fmt, ap);
              ^~~~~~~~~
/datasets/git/wrapper.c:685:8: note: Call to function 'vsnprintf' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'vsnprintf_s' in case of C11
        len = vsnprintf(dst, max, fmt, ap);
              ^~~~~~~~~
/datasets/git/wrapper.c:685:8: warning: Function 'vsnprintf' is called with an uninitialized va_list argument [clang-analyzer-valist.Uninitialized]
        len = vsnprintf(dst, max, fmt, ap);
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wrapper.c:685:8: note: Function 'vsnprintf' is called with an uninitialized va_list argument
        len = vsnprintf(dst, max, fmt, ap);
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wrapper.c:688:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len < 0)
                    ^
                     {
/datasets/git/wrapper.c:690:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (len >= max)
                       ^
                        {
/datasets/git/wrapper.c:695:21: warning: 2 adjacent parameters of 'write_file_buf' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
void write_file_buf(const char *path, const char *buf, size_t len)
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wrapper.c:695:33: note: the first parameter in the range is 'path'
void write_file_buf(const char *path, const char *buf, size_t len)
                                ^~~~
/datasets/git/wrapper.c:695:51: note: the last parameter in the range is 'buf'
void write_file_buf(const char *path, const char *buf, size_t len)
                                                  ^~~
/datasets/git/wrapper.c:697:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
        int fd = xopen(path, O_WRONLY | O_CREAT | O_TRUNC, 0666);
            ^
/datasets/git/wrapper.c:697:53: warning: 0666 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        int fd = xopen(path, O_WRONLY | O_CREAT | O_TRUNC, 0666);
                                                           ^
/datasets/git/wrapper.c:698:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (write_in_full(fd, buf, len) < 0)
                                            ^
                                             {
/datasets/git/wrapper.c:700:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (close(fd))
                      ^
                       {
/datasets/git/wrapper.c:704:17: warning: 2 adjacent parameters of 'write_file' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
void write_file(const char *path, const char *fmt, ...)
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wrapper.c:704:29: note: the first parameter in the range is 'path'
void write_file(const char *path, const char *fmt, ...)
                            ^~~~
/datasets/git/wrapper.c:704:47: note: the last parameter in the range is 'fmt'
void write_file(const char *path, const char *fmt, ...)
                                              ^~~
/datasets/git/wrapper.c:707:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/wrapper.c:732:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ret)
                 ^
                  {
/datasets/git/wrapper.c:739:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/wrapper.c:742:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (errno == ENOENT)
                                    ^
                                     {
/datasets/git/wrapper.c:753:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        return open(path, flags | O_NOFOLLOW);
                          ^~~~~
/datasets/git/wrapper.c:810:10: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        ssize_t res;
                ^
                    = 0
/datasets/git/wrapper.c:811:8: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
        char *p = buf;
              ^
/datasets/git/wrapper.c:812:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int fd, err;
        ^~~~~~~~~~~~
/datasets/git/wrapper.c:812:6: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int fd, err;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/wrapper.c:812:6: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wrapper.c:812:10: warning: variable 'err' is not initialized [cppcoreguidelines-init-variables]
        int fd, err;
                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/wrapper.c:813:36: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open]
        fd = open("/dev/urandom", O_RDONLY);
                                          ^
                                           | O_CLOEXEC
/datasets/git/wrapper.c:814:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fd < 0)
                   ^
                    {
/datasets/git/wrapper.c:816:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (len) {
        ^
/datasets/git/wrapper.c:816:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (len) {
               ^
write-or-die.c:18:31: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
void maybe_flush_or_die(FILE *f, const char *desc)
                              ^
write-or-die.c:21:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/write-or-die.c:22:8: warning: variable 'cp' is not initialized [cppcoreguidelines-init-variables]
        char *cp;
              ^
                 = NULL
/datasets/git/write-or-die.c:22:8: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/write-or-die.c:27:9: warning: function is not thread safe [concurrency-mt-unsafe]
                        cp = getenv("GIT_FLUSH");
                             ^
/datasets/git/write-or-die.c:28:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (cp)
                               ^
                                {
/datasets/git/write-or-die.c:29:26: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c]
                                skip_stdout_flush = (atoi(cp) == 0);
                                                     ^
/datasets/git/write-or-die.c:31:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                 S_ISREG(st.st_mode))
                                                     ^
                                                      {
/datasets/git/write-or-die.c:33:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/write-or-die.c:36:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (skip_stdout_flush && !ferror(f))
                                                    ^
                                                     {
/datasets/git/write-or-die.c:45:27: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
void fprintf_or_die(FILE *f, const char *fmt, ...)
                          ^
/datasets/git/write-or-die.c:47:10: warning: variable name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
        va_list ap;
                ^
/datasets/git/write-or-die.c:48:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/write-or-die.c:51:8: warning: Function 'vfprintf' is called with an uninitialized va_list argument [clang-analyzer-valist.Uninitialized]
        ret = vfprintf(f, fmt, ap);
              ^~~~~~~~~~~~~~~~~~~~
/datasets/git/write-or-die.c:51:8: note: Function 'vfprintf' is called with an uninitialized va_list argument
        ret = vfprintf(f, fmt, ap);
              ^~~~~~~~~~~~~~~~~~~~
/datasets/git/write-or-die.c:60:28: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
static int maybe_fsync(int fd)
                           ^
/datasets/git/write-or-die.c:62:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (use_fsync < 0)
                          ^
                           {
/datasets/git/write-or-die.c:64:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!use_fsync)
                       ^
                        {
/datasets/git/write-or-die.c:68:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            git_fsync(fd, FSYNC_WRITEOUT_ONLY) >= 0)
                                                    ^
                                                     {
/datasets/git/write-or-die.c:74:23: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
void fsync_or_die(int fd, const char *msg)
                      ^
/datasets/git/write-or-die.c:76:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (maybe_fsync(fd) < 0)
                                ^
                                 {
/datasets/git/write-or-die.c:80:21: warning: 2 adjacent parameters of 'fsync_component' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
int fsync_component(enum fsync_component component, int fd)
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/write-or-die.c:80:42: note: the first parameter in the range is 'component'
int fsync_component(enum fsync_component component, int fd)
                                         ^~~~~~~~~
/datasets/git/write-or-die.c:80:57: note: the last parameter in the range is 'fd'
int fsync_component(enum fsync_component component, int fd)
                                                        ^~
/datasets/git/write-or-die.c:80:53: note: 'enum fsync_component' and 'int' may be implicitly converted
int fsync_component(enum fsync_component component, int fd)
                                                    ^
/datasets/git/write-or-die.c:80:57: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
int fsync_component(enum fsync_component component, int fd)
                                                        ^
/datasets/git/write-or-die.c:82:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fsync_components & component)
                                         ^
                                          {
/datasets/git/write-or-die.c:87:29: warning: 2 adjacent parameters of 'fsync_component_or_die' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
void fsync_component_or_die(enum fsync_component component, int fd, const char *msg)
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/write-or-die.c:87:50: note: the first parameter in the range is 'component'
void fsync_component_or_die(enum fsync_component component, int fd, const char *msg)
                                                 ^~~~~~~~~
/datasets/git/write-or-die.c:87:65: note: the last parameter in the range is 'fd'
void fsync_component_or_die(enum fsync_component component, int fd, const char *msg)
                                                                ^~
/datasets/git/write-or-die.c:87:61: note: 'enum fsync_component' and 'int' may be implicitly converted
void fsync_component_or_die(enum fsync_component component, int fd, const char *msg)
                                                            ^
/datasets/git/write-or-die.c:87:65: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
void fsync_component_or_die(enum fsync_component component, int fd, const char *msg)
                                                                ^
/datasets/git/write-or-die.c:89:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fsync_components & component)
                                         ^
                                          {
/datasets/git/write-or-die.c:93:23: warning: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
void write_or_die(int fd, const void *buf, size_t count)
                      ^
/datasets/git/write-or-die.c:101:26: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
void fwrite_or_die(FILE *f, const void *buf, size_t count)
                         ^
/datasets/git/write-or-die.c:103:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fwrite(buf, 1, count, f) != count)
                                              ^
                                               {
/datasets/git/write-or-die.c:107:26: warning: parameter name 'f' is too short, expected at least 3 characters [readability-identifier-length]
void fflush_or_die(FILE *f)
                         ^
/datasets/git/write-or-die.c:109:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fflush(f))
                      ^
                       {
/datasets/git/ws.c:9:15: warning: accessing fields in struct 'whitespace_rule' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
static struct whitespace_rule {
              ^
/datasets/git/ws.c:9:15: note: use "__attribute__((aligned(32)))" to align struct 'whitespace_rule' to 32 bytes
/datasets/git/ws.c:14:3: warning: variable 'whitespace_rule_names' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
} whitespace_rule_names[] = {
  ^
/datasets/git/ws.c:15:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        { "trailing-space", WS_TRAILING_SPACE, 0 },
                            ^
/datasets/git/./refs/../cache.h:1856:33: note: expanded from macro 'WS_TRAILING_SPACE'
#define WS_TRAILING_SPACE      (WS_BLANK_AT_EOL|WS_BLANK_AT_EOF)
                                ^~~~~~~~~~~~~~~
/datasets/git/./refs/../cache.h:1850:33: note: expanded from macro 'WS_BLANK_AT_EOL'
#define WS_BLANK_AT_EOL         0100
                                ^~~~
/datasets/git/ws.c:26:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        unsigned rule = WS_DEFAULT_RULE;
                        ^
/datasets/git/./refs/../cache.h:1857:26: note: expanded from macro 'WS_DEFAULT_RULE'
#define WS_DEFAULT_RULE (WS_TRAILING_SPACE|WS_SPACE_BEFORE_TAB|8)
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./refs/../cache.h:1856:32: note: expanded from macro 'WS_TRAILING_SPACE'
#define WS_TRAILING_SPACE      (WS_BLANK_AT_EOL|WS_BLANK_AT_EOF)
                               ^
/datasets/git/ws.c:28:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'string' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (string) {
               ^
/datasets/git/ws.c:29:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/ws.c:29:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ws.c:30:10: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
                size_t len;
                       ^
                           = 0
/datasets/git/ws.c:31:15: warning: variable 'ep' is not initialized [cppcoreguidelines-init-variables]
                const char *ep;
                            ^
                               = NULL
/datasets/git/ws.c:31:15: warning: variable name 'ep' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ws.c:43:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!len)
                         ^
                          {
/datasets/git/ws.c:45:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < ARRAY_SIZE(whitespace_rule_names); i++) {
                ^
/datasets/git/ws.c:46:8: warning: function 'strncmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                        if (strncmp(whitespace_rule_names[i].rule_name,
                            ^
/datasets/git/ws.c:47:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                    string, len))
                                                 ^
                                                  {
/datasets/git/ws.c:49:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (negated)
                                    ^
                                     {
/datasets/git/ws.c:51:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/ws.c:55:36: warning: 9 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (strncmp(string, "tabwidth=", 9) == 0) {
                                                 ^
/datasets/git/ws.c:56:24: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c]
                        unsigned tabwidth = atoi(string + 9);
                                            ^
/datasets/git/ws.c:56:38: warning: 9 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        unsigned tabwidth = atoi(string + 9);
                                                          ^
/datasets/git/ws.c:57:35: warning: 0100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        if (0 < tabwidth && tabwidth < 0100) {
                                                       ^
/datasets/git/ws.c:58:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                rule &= ~WS_TAB_WIDTH_MASK;
                                ^       ~~~~~~~~~~~~~~~~~~
/datasets/git/ws.c:58:13: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
                                rule &= ~WS_TAB_WIDTH_MASK;
                                        ^
/datasets/git/ws.c:61:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/ws.c:63:18: warning: 9 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                        (int)(len - 9), string + 9);
                                                    ^
/datasets/git/ws.c:63:31: warning: 9 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                        (int)(len - 9), string + 9);
                                                                 ^
/datasets/git/ws.c:68:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (rule & WS_TAB_IN_INDENT && rule & WS_INDENT_WITH_NON_TAB)
            ^
/datasets/git/ws.c:68:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (rule & WS_TAB_IN_INDENT && rule & WS_INDENT_WITH_NON_TAB)
                                       ^
/datasets/git/ws.c:68:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (rule & WS_TAB_IN_INDENT && rule & WS_INDENT_WITH_NON_TAB)
                                                                     ^
                                                                      {
/datasets/git/ws.c:75:28: warning: variable 'attr_whitespace_rule' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
        static struct attr_check *attr_whitespace_rule;
                                  ^
/datasets/git/ws.c:76:14: warning: variable 'value' is not initialized [cppcoreguidelines-init-variables]
        const char *value;
                    ^
                          = NULL
/datasets/git/ws.c:78:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!attr_whitespace_rule)
                                  ^
                                   {
/datasets/git/ws.c:85:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                unsigned all_rule = ws_tab_width(whitespace_rule_cfg);
                                    ^
/datasets/git/./refs/../cache.h:1869:33: note: expanded from macro 'ws_tab_width'
#define ws_tab_width(rule)     ((rule) & WS_TAB_WIDTH_MASK)
                                ^        ~~~~~~~~~~~~~~~~~
/datasets/git/ws.c:86:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/ws.c:86:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ws.c:87:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < ARRAY_SIZE(whitespace_rule_names); i++)
                ^
/datasets/git/ws.c:87:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < ARRAY_SIZE(whitespace_rule_names); i++)
                                                                       ^
                                                                        {
/datasets/git/ws.c:89:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            !whitespace_rule_names[i].exclude_default)
                                                                      ^
                                                                       {
/datasets/git/ws.c:92:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else if (ATTR_FALSE(value)) {
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ws.c:94:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                return ws_tab_width(whitespace_rule_cfg);
                       ^
/datasets/git/./refs/../cache.h:1869:33: note: expanded from macro 'ws_tab_width'
#define ws_tab_width(rule)     ((rule) & WS_TAB_WIDTH_MASK)
                                ^        ~~~~~~~~~~~~~~~~~
/datasets/git/ws.c:105:40: warning: parameter name 'ws' is too short, expected at least 3 characters [readability-identifier-length]
char *whitespace_error_string(unsigned ws)
                                       ^
/datasets/git/ws.c:108:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((ws & WS_TRAILING_SPACE) == WS_TRAILING_SPACE)
             ^
/datasets/git/ws.c:108:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((ws & WS_TRAILING_SPACE) == WS_TRAILING_SPACE)
                  ^
/datasets/git/./refs/../cache.h:1856:33: note: expanded from macro 'WS_TRAILING_SPACE'
#define WS_TRAILING_SPACE      (WS_BLANK_AT_EOL|WS_BLANK_AT_EOF)
                                ^~~~~~~~~~~~~~~
/datasets/git/./refs/../cache.h:1850:33: note: expanded from macro 'WS_BLANK_AT_EOL'
#define WS_BLANK_AT_EOL         0100
                                ^~~~
/datasets/git/ws.c:108:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((ws & WS_TRAILING_SPACE) == WS_TRAILING_SPACE)
                                        ^
/datasets/git/./refs/../cache.h:1856:33: note: expanded from macro 'WS_TRAILING_SPACE'
#define WS_TRAILING_SPACE      (WS_BLANK_AT_EOL|WS_BLANK_AT_EOF)
                                ^~~~~~~~~~~~~~~
/datasets/git/./refs/../cache.h:1850:33: note: expanded from macro 'WS_BLANK_AT_EOL'
#define WS_BLANK_AT_EOL         0100
                                ^~~~
/datasets/git/ws.c:108:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((ws & WS_TRAILING_SPACE) == WS_TRAILING_SPACE)
                                                          ^
                                                           {
/datasets/git/ws.c:111:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ws & WS_BLANK_AT_EOL)
                    ^
/datasets/git/ws.c:111:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ws & WS_BLANK_AT_EOL)
                                         ^
                                          {
/datasets/git/ws.c:113:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ws & WS_BLANK_AT_EOF) {
                    ^
/datasets/git/ws.c:114:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (err.len)
                                    ^
                                     {
/datasets/git/ws.c:119:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (ws & WS_SPACE_BEFORE_TAB) {
            ^
/datasets/git/ws.c:120:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err.len)
                            ^
                             {
/datasets/git/ws.c:124:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (ws & WS_INDENT_WITH_NON_TAB) {
            ^
/datasets/git/ws.c:125:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err.len)
                            ^
                             {
/datasets/git/ws.c:129:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (ws & WS_TAB_IN_INDENT) {
            ^
/datasets/git/ws.c:130:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err.len)
                            ^
                             {
/datasets/git/ws.c:138:17: warning: function 'ws_check_emit_1' has cognitive complexity of 41 (threshold 25) [readability-function-cognitive-complexity]
static unsigned ws_check_emit_1(const char *line, int len, unsigned ws_rule,
                ^
/datasets/git/ws.c:150:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (len > 0 && line[len - 1] == '\n') {
        ^
/datasets/git/ws.c:150:14: note: +1
        if (len > 0 && line[len - 1] == '\n') {
                    ^
/datasets/git/ws.c:154:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((ws_rule & WS_CR_AT_EOL) &&
        ^
/datasets/git/ws.c:155:14: note: +1
            len > 0 && line[len - 1] == '\r') {
                    ^
/datasets/git/ws.c:161:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ws_rule & WS_BLANK_AT_EOL) {
        ^
/datasets/git/ws.c:162:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = len - 1; i >= 0; i--) {
                ^
/datasets/git/ws.c:163:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (isspace(line[i])) {
                        ^
/datasets/git/ws.c:167:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/ws.c:172:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (trailing_whitespace == -1)
        ^
/datasets/git/ws.c:176:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < trailing_whitespace; i++) {
        ^
/datasets/git/ws.c:177:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (line[i] == ' ')
                ^
/datasets/git/ws.c:179:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (line[i] != '\t')
                ^
/datasets/git/ws.c:181:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if ((ws_rule & WS_SPACE_BEFORE_TAB) && written < i) {
                ^
/datasets/git/ws.c:181:39: note: +1
                if ((ws_rule & WS_SPACE_BEFORE_TAB) && written < i) {
                                                    ^
/datasets/git/ws.c:183:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (stream) {
                        ^
/datasets/git/ws.c:189:10: note: +1, nesting level increased to 2
                } else if (ws_rule & WS_TAB_IN_INDENT) {
                       ^
/datasets/git/ws.c:191:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (stream) {
                        ^
/datasets/git/ws.c:197:10: note: +1, nesting level increased to 2
                } else if (stream) {
                       ^
/datasets/git/ws.c:204:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((ws_rule & WS_INDENT_WITH_NON_TAB) && i - written >= ws_tab_width(ws_rule)) {
        ^
/datasets/git/ws.c:204:41: note: +1
        if ((ws_rule & WS_INDENT_WITH_NON_TAB) && i - written >= ws_tab_width(ws_rule)) {
                                               ^
/datasets/git/ws.c:206:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (stream) {
                ^
/datasets/git/ws.c:214:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (stream) {
        ^
/datasets/git/ws.c:221:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (trailing_whitespace - written > 0) {
                ^
/datasets/git/ws.c:229:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (trailing_whitespace != len) {
                ^
/datasets/git/ws.c:235:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (trailing_carriage_return)
                ^
/datasets/git/ws.c:237:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (trailing_newline)
                ^
/datasets/git/ws.c:140:36: warning: parameter name 'ws' is too short, expected at least 3 characters [readability-identifier-length]
                                const char *reset, const char *ws)
                                                               ^
/datasets/git/ws.c:147:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/ws.c:147:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ws.c:154:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((ws_rule & WS_CR_AT_EOL) &&
             ^
/datasets/git/ws.c:161:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (ws_rule & WS_BLANK_AT_EOL) {
            ^
/datasets/git/ws.c:147:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int i;
        ^
/datasets/git/ws.c:162:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = len - 1; i >= 0; i--) {
                ^
/datasets/git/ws.c:162:21: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = len - 1; i >= 0; i--) {
                                  ^
/datasets/git/ws.c:163:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (isspace(line[i])) {
                            ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/ws.c:165:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                result |= WS_BLANK_AT_EOL;
                                ^
/datasets/git/ws.c:167:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/ws.c:172:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (trailing_whitespace == -1)
                                      ^
                                       {
/datasets/git/ws.c:176:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < trailing_whitespace; i++) {
        ^
/datasets/git/ws.c:176:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < trailing_whitespace; i++) {
                    ^
/datasets/git/ws.c:177:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (line[i] == ' ')
                                   ^
                                    {
/datasets/git/ws.c:179:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (line[i] != '\t')
                                    ^
                                     {
/datasets/git/ws.c:181:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if ((ws_rule & WS_SPACE_BEFORE_TAB) && written < i) {
                     ^
/datasets/git/ws.c:182:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        result |= WS_SPACE_BEFORE_TAB;
                        ^
/datasets/git/ws.c:184:5: warning: the value returned by this function should be used [cert-err33-c]
                                fputs(ws, stream);
                                ^~~~~~~~~~~~~~~~~
/datasets/git/ws.c:184:5: note: cast the expression to void to silence this warning
/datasets/git/ws.c:185:5: warning: the value returned by this function should be used [cert-err33-c]
                                fwrite(line + written, i - written, 1, stream);
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ws.c:185:5: note: cast the expression to void to silence this warning
/datasets/git/ws.c:186:5: warning: the value returned by this function should be used [cert-err33-c]
                                fputs(reset, stream);
                                ^~~~~~~~~~~~~~~~~~~~
/datasets/git/ws.c:186:5: note: cast the expression to void to silence this warning
/datasets/git/ws.c:187:5: warning: the value returned by this function should be used [cert-err33-c]
                                fwrite(line + i, 1, 1, stream);
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ws.c:187:5: note: cast the expression to void to silence this warning
/datasets/git/ws.c:189:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                } else if (ws_rule & WS_TAB_IN_INDENT) {
                           ^
/datasets/git/ws.c:190:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        result |= WS_TAB_IN_INDENT;
                        ^
/datasets/git/ws.c:192:5: warning: the value returned by this function should be used [cert-err33-c]
                                fwrite(line + written, i - written, 1, stream);
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ws.c:192:5: note: cast the expression to void to silence this warning
/datasets/git/ws.c:193:5: warning: the value returned by this function should be used [cert-err33-c]
                                fputs(ws, stream);
                                ^~~~~~~~~~~~~~~~~
/datasets/git/ws.c:193:5: note: cast the expression to void to silence this warning
/datasets/git/ws.c:194:5: warning: the value returned by this function should be used [cert-err33-c]
                                fwrite(line + i, 1, 1, stream);
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ws.c:194:5: note: cast the expression to void to silence this warning
/datasets/git/ws.c:195:5: warning: the value returned by this function should be used [cert-err33-c]
                                fputs(reset, stream);
                                ^~~~~~~~~~~~~~~~~~~~
/datasets/git/ws.c:195:5: note: cast the expression to void to silence this warning
/datasets/git/ws.c:198:4: warning: the value returned by this function should be used [cert-err33-c]
                        fwrite(line + written, i - written + 1, 1, stream);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ws.c:198:4: note: cast the expression to void to silence this warning
/datasets/git/ws.c:204:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((ws_rule & WS_INDENT_WITH_NON_TAB) && i - written >= ws_tab_width(ws_rule)) {
             ^
/datasets/git/ws.c:204:59: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((ws_rule & WS_INDENT_WITH_NON_TAB) && i - written >= ws_tab_width(ws_rule)) {
                                                                 ^
/datasets/git/./refs/../cache.h:1869:33: note: expanded from macro 'ws_tab_width'
#define ws_tab_width(rule)     ((rule) & WS_TAB_WIDTH_MASK)
                                ^        ~~~~~~~~~~~~~~~~~
/datasets/git/ws.c:205:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                result |= WS_INDENT_WITH_NON_TAB;
                ^
/datasets/git/ws.c:207:4: warning: the value returned by this function should be used [cert-err33-c]
                        fputs(ws, stream);
                        ^~~~~~~~~~~~~~~~~
/datasets/git/ws.c:207:4: note: cast the expression to void to silence this warning
/datasets/git/ws.c:208:4: warning: the value returned by this function should be used [cert-err33-c]
                        fwrite(line + written, i - written, 1, stream);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ws.c:208:4: note: cast the expression to void to silence this warning
/datasets/git/ws.c:209:4: warning: the value returned by this function should be used [cert-err33-c]
                        fputs(reset, stream);
                        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/ws.c:209:4: note: cast the expression to void to silence this warning
/datasets/git/ws.c:222:4: warning: the value returned by this function should be used [cert-err33-c]
                        fputs(set, stream);
                        ^~~~~~~~~~~~~~~~~~
/datasets/git/ws.c:222:4: note: cast the expression to void to silence this warning
/datasets/git/ws.c:223:4: warning: the value returned by this function should be used [cert-err33-c]
                        fwrite(line + written,
                        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ws.c:223:4: note: cast the expression to void to silence this warning
/datasets/git/ws.c:225:4: warning: the value returned by this function should be used [cert-err33-c]
                        fputs(reset, stream);
                        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/ws.c:225:4: note: cast the expression to void to silence this warning
/datasets/git/ws.c:230:4: warning: the value returned by this function should be used [cert-err33-c]
                        fputs(ws, stream);
                        ^~~~~~~~~~~~~~~~~
/datasets/git/ws.c:230:4: note: cast the expression to void to silence this warning
/datasets/git/ws.c:231:4: warning: the value returned by this function should be used [cert-err33-c]
                        fwrite(line + trailing_whitespace,
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ws.c:231:4: note: cast the expression to void to silence this warning
/datasets/git/ws.c:233:4: warning: the value returned by this function should be used [cert-err33-c]
                        fputs(reset, stream);
                        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/ws.c:233:4: note: cast the expression to void to silence this warning
/datasets/git/ws.c:235:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (trailing_carriage_return)
                                             ^
                                              {
/datasets/git/ws.c:236:4: warning: the value returned by this function should be used [cert-err33-c]
                        fputc('\r', stream);
                        ^~~~~~~~~~~~~~~~~~~
/datasets/git/ws.c:236:4: note: cast the expression to void to silence this warning
/datasets/git/ws.c:237:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (trailing_newline)
                                     ^
                                      {
/datasets/git/ws.c:238:4: warning: the value returned by this function should be used [cert-err33-c]
                        fputc('\n', stream);
                        ^~~~~~~~~~~~~~~~~~~
/datasets/git/ws.c:238:4: note: cast the expression to void to silence this warning
/datasets/git/ws.c:245:37: warning: parameter name 'ws' is too short, expected at least 3 characters [readability-identifier-length]
                   const char *reset, const char *ws)
                                                  ^
/datasets/git/ws.c:255:37: warning: 2 adjacent parameters of 'ws_blank_line' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
int ws_blank_line(const char *line, int len, unsigned ws_rule)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ws.c:255:41: note: the first parameter in the range is 'len'
int ws_blank_line(const char *line, int len, unsigned ws_rule)
                                        ^~~
/datasets/git/ws.c:255:55: note: the last parameter in the range is 'ws_rule'
int ws_blank_line(const char *line, int len, unsigned ws_rule)
                                                      ^~~~~~~
/datasets/git/ws.c:255:46: note: 'int' and 'unsigned int' may be implicitly converted
int ws_blank_line(const char *line, int len, unsigned ws_rule)
                                             ^
/datasets/git/ws.c:255:55: warning: parameter 'ws_rule' is unused [misc-unused-parameters]
int ws_blank_line(const char *line, int len, unsigned ws_rule)
                                                      ^
/datasets/git/ws.c:262:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (len-- > 0) {
        ^
/datasets/git/ws.c:263:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!isspace(*line))
                     ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/ws.c:263:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!isspace(*line))
                                    ^
                                     {
/datasets/git/ws.c:271:6: warning: function 'ws_fix_copy' has cognitive complexity of 59 (threshold 25) [readability-function-cognitive-complexity]
void ws_fix_copy(struct strbuf *dst, const char *src, int len, unsigned ws_rule, int *error_count)
     ^
/datasets/git/ws.c:289:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (ws_rule & WS_BLANK_AT_EOL) {
        ^
/datasets/git/ws.c:290:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (0 < len && src[len - 1] == '\n') {
                ^
/datasets/git/ws.c:290:15: note: +1
                if (0 < len && src[len - 1] == '\n') {
                            ^
/datasets/git/ws.c:293:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (0 < len && src[len - 1] == '\r') {
                        ^
/datasets/git/ws.c:293:16: note: +1
                        if (0 < len && src[len - 1] == '\r') {
                                    ^
/datasets/git/ws.c:298:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (0 < len && isspace(src[len - 1])) {
                ^
/datasets/git/ws.c:298:15: note: +1
                if (0 < len && isspace(src[len - 1])) {
                            ^
/datasets/git/ws.c:299:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (0 < len && isspace(src[len-1]))
                        ^
/datasets/git/ws.c:299:19: note: +1
                        while (0 < len && isspace(src[len-1]))
                                       ^
/datasets/git/ws.c:308:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = 0; i < len; i++) {
        ^
/datasets/git/ws.c:310:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ch == '\t') {
                ^
/datasets/git/ws.c:312:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if ((ws_rule & WS_SPACE_BEFORE_TAB) &&
                        ^
/datasets/git/ws.c:312:40: note: +1
                        if ((ws_rule & WS_SPACE_BEFORE_TAB) &&
                                                            ^
/datasets/git/ws.c:315:10: note: +1, nesting level increased to 2
                } else if (ch == ' ') {
                       ^
/datasets/git/ws.c:317:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if ((ws_rule & WS_INDENT_WITH_NON_TAB) &&
                        ^
/datasets/git/ws.c:317:43: note: +1
                        if ((ws_rule & WS_INDENT_WITH_NON_TAB) &&
                                                               ^
/datasets/git/ws.c:320:5: note: +1, nesting level increased to 2
                } else
                  ^
/datasets/git/ws.c:324:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (need_fix_leading_space) {
        ^
/datasets/git/ws.c:329:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ws_rule & WS_INDENT_WITH_NON_TAB) {
                ^
/datasets/git/ws.c:331:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (last_tab_in_indent < last_space_in_indent)
                        ^
/datasets/git/ws.c:333:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/ws.c:341:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < last; i++) {
                ^
/datasets/git/ws.c:343:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ch != ' ') {
                        ^
/datasets/git/ws.c:346:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/ws.c:348:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (consecutive_spaces == ws_tab_width(ws_rule)) {
                                ^
/datasets/git/ws.c:354:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (0 < consecutive_spaces--)
                ^
/datasets/git/ws.c:359:9: note: +1, nesting level increased to 1
        } else if ((ws_rule & WS_TAB_IN_INDENT) && last_tab_in_indent >= 0) {
               ^
/datasets/git/ws.c:359:42: note: +1
        } else if ((ws_rule & WS_TAB_IN_INDENT) && last_tab_in_indent >= 0) {
                                                ^
/datasets/git/ws.c:363:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (i = 0; i < last; i++) {
                ^
/datasets/git/ws.c:364:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (src[i] == '\t')
                        ^
/datasets/git/ws.c:368:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/ws.c:377:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (add_cr_to_tail)
        ^
/datasets/git/ws.c:379:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (add_nl_to_tail)
        ^
/datasets/git/ws.c:381:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (fixed && error_count)
        ^
/datasets/git/ws.c:381:12: note: +1
        if (fixed && error_count)
                  ^
/datasets/git/ws.c:271:55: warning: 2 adjacent parameters of 'ws_fix_copy' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
void ws_fix_copy(struct strbuf *dst, const char *src, int len, unsigned ws_rule, int *error_count)
                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/ws.c:271:59: note: the first parameter in the range is 'len'
void ws_fix_copy(struct strbuf *dst, const char *src, int len, unsigned ws_rule, int *error_count)
                                                          ^~~
/datasets/git/ws.c:271:73: note: the last parameter in the range is 'ws_rule'
void ws_fix_copy(struct strbuf *dst, const char *src, int len, unsigned ws_rule, int *error_count)
                                                                        ^~~~~~~
/datasets/git/ws.c:271:64: note: 'int' and 'unsigned int' may be implicitly converted
void ws_fix_copy(struct strbuf *dst, const char *src, int len, unsigned ws_rule, int *error_count)
                                                               ^
/datasets/git/ws.c:271:55: note: inferred assignment of ID-dependent value from ID-dependent variable last [altera-id-dependent-backward-branch]
void ws_fix_copy(struct strbuf *dst, const char *src, int len, unsigned ws_rule, int *error_count)
                                                      ^
/datasets/git/ws.c:278:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/ws.c:278:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/ws.c:289:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (ws_rule & WS_BLANK_AT_EOL) {
            ^
/datasets/git/ws.c:294:25: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                add_cr_to_tail = !!(ws_rule & WS_CR_AT_EOL);
                                                    ^
/datasets/git/ws.c:298:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (0 < len && isspace(src[len - 1])) {
                               ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/ws.c:299:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (0 < len && isspace(src[len-1]))
                        ^
/datasets/git/ws.c:299:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (0 < len && isspace(src[len-1]))
                               ^
/datasets/git/ws.c:299:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        while (0 < len && isspace(src[len-1]))
                                          ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/ws.c:299:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        while (0 < len && isspace(src[len-1]))
                                                              ^
                                                               {
/datasets/git/ws.c:308:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < len; i++) {
        ^
/datasets/git/ws.c:308:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < len; i++) {
                    ^
/datasets/git/ws.c:309:8: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
                char ch = src[i];
                     ^
/datasets/git/ws.c:312:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if ((ws_rule & WS_SPACE_BEFORE_TAB) &&
                             ^
/datasets/git/ws.c:313:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            0 <= last_space_in_indent)
                                                      ^
                                                       {
/datasets/git/ws.c:317:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if ((ws_rule & WS_INDENT_WITH_NON_TAB) &&
                             ^
/datasets/git/ws.c:318:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                            ws_tab_width(ws_rule) <= i - last_tab_in_indent)
                            ^
/datasets/git/./refs/../cache.h:1869:33: note: expanded from macro 'ws_tab_width'
#define ws_tab_width(rule)     ((rule) & WS_TAB_WIDTH_MASK)
                                ^        ~~~~~~~~~~~~~~~~~
/datasets/git/ws.c:327:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                int last = last_tab_in_indent + 1;
                ^
/datasets/git/ws.c:318:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            ws_tab_width(ws_rule) <= i - last_tab_in_indent)
                                                                            ^
                                                                             {
/datasets/git/ws.c:320:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/ws.c:329:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ws_rule & WS_INDENT_WITH_NON_TAB) {
                    ^
/datasets/git/ws.c:331:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (last_tab_in_indent < last_space_in_indent)
                                                                      ^
                                                                       {
/datasets/git/ws.c:333:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/ws.c:341:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < last; i++) {
                ^
/datasets/git/ws.c:341:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'last' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < last; i++) {
                            ^
/datasets/git/ws.c:342:9: warning: variable name 'ch' is too short, expected at least 3 characters [readability-identifier-length]
                        char ch = src[i];
                             ^
/datasets/git/ws.c:348:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                if (consecutive_spaces == ws_tab_width(ws_rule)) {
                                                          ^
/datasets/git/./refs/../cache.h:1869:33: note: expanded from macro 'ws_tab_width'
#define ws_tab_width(rule)     ((rule) & WS_TAB_WIDTH_MASK)
                                ^        ~~~~~~~~~~~~~~~~~
/datasets/git/ws.c:354:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (0 < consecutive_spaces--)
                ^
/datasets/git/ws.c:354:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (0 < consecutive_spaces--)
                                                ^
                                                 {
/datasets/git/ws.c:359:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        } else if ((ws_rule & WS_TAB_IN_INDENT) && last_tab_in_indent >= 0) {
                    ^
/datasets/git/ws.c:362:3: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                int last = last_tab_in_indent + 1;
                ^
/datasets/git/ws.c:361:15: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int start = dst->len;
                            ^
/datasets/git/ws.c:363:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'last' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < last; i++) {
                            ^
/datasets/git/ws.c:364:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (src[i] == '\t')
                                           ^
                                            {
/datasets/git/ws.c:365:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                do {
                                ^
/datasets/git/ws.c:367:14: warning: backward branch (do loop) is ID-dependent due to variable reference to 'start' and may cause performance degradation [altera-id-dependent-backward-branch]
                                } while ((dst->len - start) % ws_tab_width(ws_rule));
                                         ^
/datasets/git/ws.c:367:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                } while ((dst->len - start) % ws_tab_width(ws_rule));
                                                              ^
/datasets/git/./refs/../cache.h:1869:33: note: expanded from macro 'ws_tab_width'
#define ws_tab_width(rule)     ((rule) & WS_TAB_WIDTH_MASK)
                                ^        ~~~~~~~~~~~~~~~~~
/datasets/git/ws.c:368:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/ws.c:377:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (add_cr_to_tail)
                           ^
                            {
/datasets/git/ws.c:379:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (add_nl_to_tail)
                           ^
                            {
/datasets/git/ws.c:381:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (fixed && error_count)
                                 ^
                                  {
/datasets/git/wt-status.c:2:1: warning: #includes are not sorted properly [llvm-include-order]
#include "wt-status.h"
^        ~~~~~~~~~~~~~
         "column.h"
/datasets/git/wt-status.c:22:1: warning: replace macro with enum [modernize-macro-to-enum]
#define AB_DELAY_WARNING_IN_MS (2 * 1000)
^~~~~~~~
                               =
/datasets/git/wt-status.c:22:9: warning: macro 'AB_DELAY_WARNING_IN_MS' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define AB_DELAY_WARNING_IN_MS (2 * 1000)
        ^
/datasets/git/wt-status.c:27:13: warning: variable 'default_wt_status_colors' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
static char default_wt_status_colors[][COLOR_MAXLEN] = {
            ^
/datasets/git/wt-status.c:39:54: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static const char *color(int slot, struct wt_status *s)
                                                     ^
/datasets/git/wt-status.c:41:14: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        const char *c = "";
                    ^
/datasets/git/wt-status.c:42:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (want_color(s->use_color))
                                     ^
                                      {
/datasets/git/wt-status.c:44:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (slot == WT_STATUS_ONBRANCH && color_is_nil(c))
                                                          ^
                                                           {
/datasets/git/wt-status.c:49:46: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void status_vprintf(struct wt_status *s, int at_bol, const char *color,
                                             ^
/datasets/git/wt-status.c:49:61: warning: 2 adjacent parameters of 'status_vprintf' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static void status_vprintf(struct wt_status *s, int at_bol, const char *color,
                                                            ^~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:49:73: note: the first parameter in the range is 'color'
static void status_vprintf(struct wt_status *s, int at_bol, const char *color,
                                                                        ^~~~~
/datasets/git/wt-status.c:50:15: note: the last parameter in the range is 'fmt'
                const char *fmt, va_list ap, const char *trail)
                            ^~~
/datasets/git/wt-status.c:50:28: warning: parameter name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
                const char *fmt, va_list ap, const char *trail)
                                         ^
/datasets/git/wt-status.c:52:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/wt-status.c:54:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *line, *eol;
        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:54:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/wt-status.c:54:14: warning: variable 'line' is not initialized [cppcoreguidelines-init-variables]
        const char *line, *eol;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/wt-status.c:54:21: warning: variable 'eol' is not initialized [cppcoreguidelines-init-variables]
        const char *line, *eol;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/wt-status.c:60:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!trail)
                                   ^
                                    {
/datasets/git/wt-status.c:64:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (trail)
                          ^
                           {
/datasets/git/wt-status.c:65:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(s->fp, "%s", trail);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:65:4: note: cast the expression to void to silence this warning
/datasets/git/wt-status.c:69:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (line = sb.buf; *line; line = eol + 1) {
        ^
/datasets/git/wt-status.c:69:22: warning: backward branch (for loop) is ID-dependent due to variable reference to 'line' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (line = sb.buf; *line; line = eol + 1) {
                            ^
/datasets/git/wt-status.c:75:39: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (*line != '\n' && *line != '\t')
                                                           ^
                                                            {
/datasets/git/wt-status.c:78:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (eol)
                        ^
                         {
/datasets/git/wt-status.c:80:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/wt-status.c:83:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (eol)
                        ^
                         {
/datasets/git/wt-status.c:84:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(s->fp, "\n");
                        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:84:4: note: cast the expression to void to silence this warning
/datasets/git/wt-status.c:85:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/wt-status.c:89:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (trail)
                  ^
                   {
/datasets/git/wt-status.c:90:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(s->fp, "%s", trail);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:90:3: note: cast the expression to void to silence this warning
/datasets/git/wt-status.c:95:41: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
void status_printf_ln(struct wt_status *s, const char *color,
                                        ^
/datasets/git/wt-status.c:98:10: warning: variable name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
        va_list ap;
                ^
/datasets/git/wt-status.c:105:38: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
void status_printf(struct wt_status *s, const char *color,
                                     ^
/datasets/git/wt-status.c:108:10: warning: variable name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
        va_list ap;
                ^
/datasets/git/wt-status.c:115:50: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void status_printf_more(struct wt_status *s, const char *color,
                                                 ^
/datasets/git/wt-status.c:118:10: warning: variable name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
        va_list ap;
                ^
/datasets/git/wt-status.c:125:43: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void wt_status_prepare(struct repository *r, struct wt_status *s)
                                          ^
/datasets/git/wt-status.c:125:64: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
void wt_status_prepare(struct repository *r, struct wt_status *s)
                                                               ^
/datasets/git/wt-status.c:127:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(s, 0, sizeof(*s));
        ^~~~~~
/datasets/git/wt-status.c:127:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(s, 0, sizeof(*s));
        ^~~~~~
/datasets/git/wt-status.c:129:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(s->color_palette, default_wt_status_colors,
        ^~~~~~
/datasets/git/wt-status.c:129:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(s->color_palette, default_wt_status_colors,
        ^~~~~~
/datasets/git/wt-status.c:150:67: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void wt_longstatus_print_unmerged_header(struct wt_status *s)
                                                                  ^
/datasets/git/wt-status.c:152:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/wt-status.c:152:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wt-status.c:156:14: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        const char *c = color(WT_STATUS_HEADER, s);
                    ^
/datasets/git/wt-status.c:160:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < s->change.nr; i++) {
        ^
/datasets/git/wt-status.c:161:28: warning: variable name 'it' is too short, expected at least 3 characters [readability-identifier-length]
                struct string_list_item *it = &(s->change.items[i]);
                                         ^
/datasets/git/wt-status.c:162:33: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
                struct wt_status_change_data *d = it->util;
                                              ^
/datasets/git/wt-status.c:171:8: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                case 5:
                     ^
/datasets/git/wt-status.c:180:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!s->hints)
                      ^
                       {
/datasets/git/wt-status.c:182:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (s->whence != FROM_COMMIT)
                                     ^
                                      {
/datasets/git/wt-status.c:185:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(s->reference, "HEAD"))
                                                  ^
                                                   {
/datasets/git/wt-status.c:188:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/wt-status.c:192:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/wt-status.c:196:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!del_mod_conflict)
                                      ^
                                       {
/datasets/git/wt-status.c:198:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/wt-status.c:207:65: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void wt_longstatus_print_cached_header(struct wt_status *s)
                                                                ^
/datasets/git/wt-status.c:209:14: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        const char *c = color(WT_STATUS_HEADER, s);
                    ^
/datasets/git/wt-status.c:212:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!s->hints)
                      ^
                       {
/datasets/git/wt-status.c:214:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (s->whence != FROM_COMMIT)
                                     ^
                                      {
/datasets/git/wt-status.c:217:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(s->reference, "HEAD"))
                                                  ^
                                                   {
/datasets/git/wt-status.c:220:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/wt-status.c:224:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/wt-status.c:228:64: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void wt_longstatus_print_dirty_header(struct wt_status *s,
                                                               ^
/datasets/git/wt-status.c:229:11: warning: 2 adjacent parameters of 'wt_longstatus_print_dirty_header' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                             int has_deleted,
                                             ^~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:229:15: note: the first parameter in the range is 'has_deleted'
                                             int has_deleted,
                                                 ^~~~~~~~~~~
/datasets/git/wt-status.c:230:15: note: the last parameter in the range is 'has_dirty_submodules'
                                             int has_dirty_submodules)
                                                 ^~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:232:14: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        const char *c = color(WT_STATUS_HEADER, s);
                    ^
/datasets/git/wt-status.c:235:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!s->hints)
                      ^
                       {
/datasets/git/wt-status.c:237:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!has_deleted)
                         ^
                          {
/datasets/git/wt-status.c:239:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/wt-status.c:242:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (has_dirty_submodules)
                                 ^
                                  {
/datasets/git/wt-status.c:246:64: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void wt_longstatus_print_other_header(struct wt_status *s,
                                                               ^
/datasets/git/wt-status.c:247:11: warning: 2 adjacent parameters of 'wt_longstatus_print_other_header' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                                             const char *what,
                                             ^~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:247:23: note: the first parameter in the range is 'what'
                                             const char *what,
                                                         ^~~~
/datasets/git/wt-status.c:248:23: note: the last parameter in the range is 'how'
                                             const char *how)
                                                         ^~~
/datasets/git/wt-status.c:250:14: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        const char *c = color(WT_STATUS_HEADER, s);
                    ^
/datasets/git/wt-status.c:252:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!s->hints)
                      ^
                       {
/datasets/git/wt-status.c:257:59: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void wt_longstatus_print_trailer(struct wt_status *s)
                                                          ^
/datasets/git/wt-status.c:273:7: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        case 5:
             ^
/datasets/git/wt-status.c:275:7: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        case 6:
             ^
/datasets/git/wt-status.c:277:7: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        case 7:
             ^
/datasets/git/wt-status.c:308:48: warning: 2 adjacent parameters of 'maxwidth' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int maxwidth(const char *(*label)(int), int minval, int maxval)
                                               ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:308:52: note: the first parameter in the range is 'minval'
static int maxwidth(const char *(*label)(int), int minval, int maxval)
                                                   ^~~~~~
/datasets/git/wt-status.c:308:64: note: the last parameter in the range is 'maxval'
static int maxwidth(const char *(*label)(int), int minval, int maxval)
                                                               ^~~~~~
/datasets/git/wt-status.c:310:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int result = 0, i;
        ^~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:310:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/wt-status.c:310:18: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int result = 0, i;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/wt-status.c:310:18: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wt-status.c:312:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = minval; i <= maxval; i++) {
        ^
/datasets/git/wt-status.c:312:19: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = minval; i <= maxval; i++) {
                         ^
/datasets/git/wt-status.c:313:15: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
                const char *s = label(i);
                            ^
/datasets/git/wt-status.c:315:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (len > result)
                                 ^
                                  {
/datasets/git/wt-status.c:321:65: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void wt_longstatus_print_unmerged_data(struct wt_status *s,
                                                                ^
/datasets/git/wt-status.c:322:37: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
                                              struct string_list_item *it)
                                                                       ^
/datasets/git/wt-status.c:324:14: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        const char *c = color(WT_STATUS_UNMERGED, s);
                    ^
/datasets/git/wt-status.c:325:32: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
        struct wt_status_change_data *d = it->util;
                                      ^
/datasets/git/wt-status.c:327:15: warning: variable 'padding' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
        static char *padding;
                     ^
/datasets/git/wt-status.c:329:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *one, *how;
        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:329:14: warning: variable 'one' is not initialized [cppcoreguidelines-init-variables]
        const char *one, *how;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/wt-status.c:329:20: warning: variable 'how' is not initialized [cppcoreguidelines-init-variables]
        const char *one, *how;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/wt-status.c:330:6: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int len;
            ^
                = 0
/datasets/git/wt-status.c:333:63: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                label_width = maxwidth(wt_status_unmerged_status_string, 1, 7);
                                                                            ^
/datasets/git/wt-status.c:336:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(padding, ' ', label_width);
                ^~~~~~
/datasets/git/wt-status.c:336:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(padding, ' ', label_width);
                ^~~~~~
/datasets/git/wt-status.c:348:63: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void wt_longstatus_print_change_data(struct wt_status *s,
                                                              ^
/datasets/git/wt-status.c:350:35: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
                                            struct string_list_item *it)
                                                                     ^
/datasets/git/wt-status.c:352:32: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
        struct wt_status_change_data *d = it->util;
                                      ^
/datasets/git/wt-status.c:353:14: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        const char *c = color(change_type, s);
                    ^
/datasets/git/wt-status.c:354:6: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int status;
            ^
                   = 0
/datasets/git/wt-status.c:355:8: warning: variable 'one_name' is not initialized [cppcoreguidelines-init-variables]
        char *one_name;
              ^
                       = NULL
/datasets/git/wt-status.c:356:8: warning: variable 'two_name' is not initialized [cppcoreguidelines-init-variables]
        char *two_name;
              ^
                       = NULL
/datasets/git/wt-status.c:357:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *one, *two;
        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:357:14: warning: variable 'one' is not initialized [cppcoreguidelines-init-variables]
        const char *one, *two;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/wt-status.c:357:20: warning: variable 'two' is not initialized [cppcoreguidelines-init-variables]
        const char *one, *two;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/wt-status.c:358:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct strbuf onebuf = STRBUF_INIT, twobuf = STRBUF_INIT;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:360:15: warning: variable 'padding' provides global access to a non-const object; consider making the pointed-to data 'const' [cppcoreguidelines-avoid-non-const-global-variables]
        static char *padding;
                     ^
/datasets/git/wt-status.c:362:14: warning: variable 'what' is not initialized [cppcoreguidelines-init-variables]
        const char *what;
                    ^
                         = NULL
/datasets/git/wt-status.c:363:6: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
        int len;
            ^
                = 0
/datasets/git/wt-status.c:370:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(padding, ' ', label_width);
                ^~~~~~
/datasets/git/wt-status.c:370:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(padding, ' ', label_width);
                ^~~~~~
/datasets/git/wt-status.c:381:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (d->new_submodule_commits)
                                                     ^
                                                      {
/datasets/git/wt-status.c:383:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (d->dirty_submodule & DIRTY_SUBMODULE_MODIFIED)
                            ^
/datasets/git/wt-status.c:383:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (d->dirty_submodule & DIRTY_SUBMODULE_MODIFIED)
                                                                          ^
                                                                           {
/datasets/git/wt-status.c:385:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (d->dirty_submodule & DIRTY_SUBMODULE_UNTRACKED)
                            ^
/datasets/git/wt-status.c:385:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (d->dirty_submodule & DIRTY_SUBMODULE_UNTRACKED)
                                                                           ^
                                                                            {
/datasets/git/wt-status.c:402:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (d->rename_status == status)
                                       ^
                                        {
/datasets/git/wt-status.c:410:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!what)
                  ^
                   {
/datasets/git/wt-status.c:414:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (one_name != two_name)
                                 ^
                                  {
/datasets/git/wt-status.c:417:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/wt-status.c:429:66: warning: parameter name 'd' is too short, expected at least 3 characters [readability-identifier-length]
static char short_submodule_status(struct wt_status_change_data *d)
                                                                 ^
/datasets/git/wt-status.c:431:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (d->new_submodule_commits)
                                     ^
                                      {
/datasets/git/wt-status.c:433:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (d->dirty_submodule & DIRTY_SUBMODULE_MODIFIED)
            ^
/datasets/git/wt-status.c:433:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (d->dirty_submodule & DIRTY_SUBMODULE_MODIFIED)
                                                          ^
                                                           {
/datasets/git/wt-status.c:435:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (d->dirty_submodule & DIRTY_SUBMODULE_UNTRACKED)
            ^
/datasets/git/wt-status.c:435:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (d->dirty_submodule & DIRTY_SUBMODULE_UNTRACKED)
                                                           ^
                                                            {
/datasets/git/wt-status.c:437:9: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return d->worktree_status;
               ^
/datasets/git/wt-status.c:440:68: warning: parameter name 'q' is too short, expected at least 3 characters [readability-identifier-length]
static void wt_status_collect_changed_cb(struct diff_queue_struct *q,
                                                                   ^
/datasets/git/wt-status.c:441:28: warning: parameter 'options' is unused [misc-unused-parameters]
                                         struct diff_options *options,
                                                              ^
/datasets/git/wt-status.c:444:20: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
        struct wt_status *s = data;
                          ^
/datasets/git/wt-status.c:445:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/wt-status.c:445:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wt-status.c:447:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!q->nr)
                   ^
                    {
/datasets/git/wt-status.c:450:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < q->nr; i++) {
        ^
/datasets/git/wt-status.c:451:25: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                struct diff_filepair *p;
                                      ^
                                        = NULL
/datasets/git/wt-status.c:451:25: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wt-status.c:452:28: warning: variable 'it' is not initialized [cppcoreguidelines-init-variables]
                struct string_list_item *it;
                                         ^
                                            = NULL
/datasets/git/wt-status.c:452:28: warning: variable name 'it' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wt-status.c:453:33: warning: variable 'd' is not initialized [cppcoreguidelines-init-variables]
                struct wt_status_change_data *d;
                                              ^
                                                = NULL
/datasets/git/wt-status.c:453:33: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wt-status.c:462:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!d->worktree_status)
                                        ^
                                         {
/datasets/git/wt-status.c:463:25: warning: 'signed char' to 'int' conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse,cert-str34-c]
                        d->worktree_status = p->status;
                                             ^
/datasets/git/wt-status.c:464:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (S_ISGITLINK(p->two->mode)) {
                    ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^     ~~~~~~
/datasets/git/wt-status.c:468:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (s->status_format == STATUS_FORMAT_SHORT)
                                                                    ^
                                                                     {
/datasets/git/wt-status.c:469:26: warning: 'signed char' to 'int' conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse,cert-str34-c]
                                d->worktree_status = short_submodule_status(d);
                                                     ^
/datasets/git/wt-status.c:485:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (d->rename_status)
                                             ^
                                              {
/datasets/git/wt-status.c:488:22: warning: narrowing conversion from 'double' to 'int' [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        d->rename_score = p->score * 100 / MAX_SCORE;
                                          ^
/datasets/git/wt-status.c:488:33: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        d->rename_score = p->score * 100 / MAX_SCORE;
                                                     ^
/datasets/git/wt-status.c:489:23: warning: 'signed char' to 'int' conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse,cert-str34-c]
                        d->rename_status = p->status;
                                           ^
/datasets/git/wt-status.c:509:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int pos, mask;
        ^~~~~~~~~~~~~~
/datasets/git/wt-status.c:509:6: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        int pos, mask;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/wt-status.c:509:11: warning: variable 'mask' is not initialized [cppcoreguidelines-init-variables]
        int pos, mask;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/wt-status.c:510:28: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
        const struct cache_entry *ce;
                                  ^
                                     = NULL
/datasets/git/wt-status.c:510:28: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wt-status.c:512:37: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        pos = index_name_pos(istate, path, strlen(path));
                                           ^
/datasets/git/wt-status.c:513:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (0 <= pos)
                     ^
                      {
/datasets/git/wt-status.c:518:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (pos < istate->cache_nr) {
        ^
/datasets/git/wt-status.c:518:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'pos' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (pos < istate->cache_nr) {
               ^
/datasets/git/wt-status.c:520:7: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (strcmp(ce->name, path) || !ce_stage(ce))
                    ^
                                           != 0
/datasets/git/wt-status.c:520:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (strcmp(ce->name, path) || !ce_stage(ce))
                                               ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/wt-status.c:520:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strcmp(ce->name, path) || !ce_stage(ce))
                                                            ^
                                                             {
/datasets/git/wt-status.c:522:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask |= (1 << (ce_stage(ce) - 1));
                ^~~~
/datasets/git/wt-status.c:522:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask |= (1 << (ce_stage(ce) - 1));
                         ^
/datasets/git/wt-status.c:522:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                mask |= (1 << (ce_stage(ce) - 1));
                               ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/wt-status.c:527:68: warning: parameter name 'q' is too short, expected at least 3 characters [readability-identifier-length]
static void wt_status_collect_updated_cb(struct diff_queue_struct *q,
                                                                   ^
/datasets/git/wt-status.c:528:28: warning: parameter 'options' is unused [misc-unused-parameters]
                                         struct diff_options *options,
                                                              ^
/datasets/git/wt-status.c:531:20: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
        struct wt_status *s = data;
                          ^
/datasets/git/wt-status.c:532:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/wt-status.c:532:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wt-status.c:534:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < q->nr; i++) {
        ^
/datasets/git/wt-status.c:535:25: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
                struct diff_filepair *p;
                                      ^
                                        = NULL
/datasets/git/wt-status.c:535:25: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wt-status.c:536:28: warning: variable 'it' is not initialized [cppcoreguidelines-init-variables]
                struct string_list_item *it;
                                         ^
                                            = NULL
/datasets/git/wt-status.c:536:28: warning: variable name 'it' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wt-status.c:537:33: warning: variable 'd' is not initialized [cppcoreguidelines-init-variables]
                struct wt_status_change_data *d;
                                              ^
                                                = NULL
/datasets/git/wt-status.c:537:33: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wt-status.c:546:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!d->index_status)
                                     ^
                                      {
/datasets/git/wt-status.c:547:22: warning: 'signed char' to 'int' conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse,cert-str34-c]
                        d->index_status = p->status;
                                          ^
/datasets/git/wt-status.c:564:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (d->rename_status)
                                             ^
                                              {
/datasets/git/wt-status.c:567:22: warning: narrowing conversion from 'double' to 'int' [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        d->rename_score = p->score * 100 / MAX_SCORE;
                                          ^
/datasets/git/wt-status.c:567:33: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        d->rename_score = p->score * 100 / MAX_SCORE;
                                                     ^
/datasets/git/wt-status.c:568:23: warning: 'signed char' to 'int' conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse,cert-str34-c]
                        d->rename_status = p->status;
                                           ^
/datasets/git/wt-status.c:595:66: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void wt_status_collect_changes_worktree(struct wt_status *s)
                                                                 ^
/datasets/git/wt-status.c:601:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        rev.diffopt.output_format |= DIFF_FORMAT_CALLBACK;
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:604:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!s->show_untracked_files)
                                     ^
                                      {
/datasets/git/wt-status.c:610:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        s->show_untracked_files != SHOW_NO_UNTRACKED_FILES)
                                                                           ^
                                                                            {
/datasets/git/wt-status.c:622:63: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void wt_status_collect_changes_index(struct wt_status *s)
                                                              ^
/datasets/git/wt-status.c:628:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&opt, 0, sizeof(opt));
        ^~~~~~
/datasets/git/wt-status.c:628:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&opt, 0, sizeof(opt));
        ^~~~~~
/datasets/git/wt-status.c:648:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        rev.diffopt.output_format |= DIFF_FORMAT_CALLBACK;
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:672:27: warning: variable 'it' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *it;
                                 ^
                                    = NULL
/datasets/git/wt-status.c:672:27: warning: variable name 'it' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wt-status.c:673:32: warning: variable 'd' is not initialized [cppcoreguidelines-init-variables]
        struct wt_status_change_data *d;
                                      ^
                                        = NULL
/datasets/git/wt-status.c:673:32: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wt-status.c:674:20: warning: variable name 's' is too short, expected at least 3 characters [readability-identifier-length]
        struct wt_status *s = context;
                          ^
/datasets/git/wt-status.c:677:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (S_ISDIR(mode))
                          ^
                           {
/datasets/git/wt-status.c:691:18: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        d->mode_index = mode;
                        ^
/datasets/git/wt-status.c:698:65: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void wt_status_collect_changes_initial(struct wt_status *s)
                                                                ^
/datasets/git/wt-status.c:700:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct index_state *istate = s->repo->index;
        ^
/datasets/git/wt-status.c:701:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/wt-status.c:701:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wt-status.c:703:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < istate->cache_nr; i++) {
        ^
/datasets/git/wt-status.c:703:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'istate' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < istate->cache_nr; i++) {
                    ^
/datasets/git/wt-status.c:704:28: warning: variable 'it' is not initialized [cppcoreguidelines-init-variables]
                struct string_list_item *it;
                                         ^
                                            = NULL
/datasets/git/wt-status.c:704:28: warning: variable name 'it' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wt-status.c:705:33: warning: variable 'd' is not initialized [cppcoreguidelines-init-variables]
                struct wt_status_change_data *d;
                                              ^
                                                = NULL
/datasets/git/wt-status.c:705:33: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wt-status.c:706:29: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                const struct cache_entry *ce = istate->cache[i];
                                          ^
/datasets/git/wt-status.c:708:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!ce_path_match(istate, ce, &s->pathspec, NULL))
                                                                   ^
                                                                    {
/datasets/git/wt-status.c:710:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce_intent_to_add(ce))
                    ^
/datasets/git/./refs/../cache.h:246:31: note: expanded from macro 'ce_intent_to_add'
#define ce_intent_to_add(ce) ((ce)->ce_flags & CE_INTENT_TO_ADD)
                              ^                ~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:710:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ce_intent_to_add(ce))
                                         ^
                                          {
/datasets/git/wt-status.c:720:20: warning: variable name 'ps' is too short, expected at least 3 characters [readability-identifier-length]
                        struct pathspec ps = { 0 };
                                        ^
/datasets/git/wt-status.c:739:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce_stage(ce)) {
                    ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/wt-status.c:741:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        d->stagemask |= (1 << (ce_stage(ce) - 1));
                        ^~~~~~~~~~~~
/datasets/git/wt-status.c:741:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        d->stagemask |= (1 << (ce_stage(ce) - 1));
                                         ^
/datasets/git/wt-status.c:741:27: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        d->stagemask |= (1 << (ce_stage(ce) - 1));
                                               ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/wt-status.c:751:20: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        d->mode_index = ce->ce_mode;
                                        ^
/datasets/git/wt-status.c:758:59: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void wt_status_collect_untracked(struct wt_status *s)
                                                          ^
/datasets/git/wt-status.c:760:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/wt-status.c:760:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wt-status.c:765:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!s->show_untracked_files)
                                     ^
                                      {
/datasets/git/wt-status.c:768:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (s->show_untracked_files != SHOW_ALL_UNTRACKED_FILES)
                                                                ^
                                                                 {
/datasets/git/wt-status.c:769:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                dir.flags |=
                ^
/datasets/git/wt-status.c:770:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        DIR_SHOW_OTHER_DIRECTORIES | DIR_HIDE_EMPTY_DIRECTORIES;
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:772:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                dir.flags |= DIR_SHOW_IGNORED_TOO;
                ^            ~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:774:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (s->show_ignored_mode == SHOW_MATCHING_IGNORED)
                                                                  ^
                                                                   {
/datasets/git/wt-status.c:775:4: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        dir.flags |= DIR_SHOW_IGNORED_TOO_MODE_MATCHING;
                        ^            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:784:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < dir.nr; i++) {
        ^
/datasets/git/wt-status.c:786:46: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                if (index_name_is_other(istate, ent->name, ent->len))
                                                           ^
/datasets/git/wt-status.c:786:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (index_name_is_other(istate, ent->name, ent->len))
                                                                     ^
                                                                      {
/datasets/git/wt-status.c:790:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < dir.ignored_nr; i++) {
        ^
/datasets/git/wt-status.c:792:46: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                if (index_name_is_other(istate, ent->name, ent->len))
                                                           ^
/datasets/git/wt-status.c:792:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (index_name_is_other(istate, ent->name, ent->len))
                                                                     ^
                                                                      {
/datasets/git/wt-status.c:798:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (advice_enabled(ADVICE_STATUS_U_OPTION))
                                                   ^
                                                    {
/datasets/git/wt-status.c:799:52: warning: 1000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                s->untracked_in_ms = (getnanotime() - t_begin) / 1000000;
                                                                 ^
/datasets/git/wt-status.c:802:43: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static int has_unmerged(struct wt_status *s)
                                          ^
/datasets/git/wt-status.c:804:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/wt-status.c:804:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wt-status.c:806:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < s->change.nr; i++) {
        ^
/datasets/git/wt-status.c:807:33: warning: variable 'd' is not initialized [cppcoreguidelines-init-variables]
                struct wt_status_change_data *d;
                                              ^
                                                = NULL
/datasets/git/wt-status.c:807:33: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wt-status.c:809:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (d->stagemask)
                                 ^
                                  {
/datasets/git/wt-status.c:815:42: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
void wt_status_collect(struct wt_status *s)
                                         ^
/datasets/git/wt-status.c:836:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (s->state.merge_in_progress && !has_unmerged(s))
                                                           ^
                                                            {
/datasets/git/wt-status.c:840:55: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
void wt_status_collect_free_buffers(struct wt_status *s)
                                                      ^
/datasets/git/wt-status.c:847:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(state->branch);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/wt-status.c:848:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(state->onto);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/wt-status.c:849:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        FREE_AND_NULL(state->detached_from);
        ^
/datasets/git/./git-compat-util.h:1088:26: note: expanded from macro 'FREE_AND_NULL'
#define FREE_AND_NULL(p) do { free(p); (p) = NULL; } while (0)
                         ^
/datasets/git/wt-status.c:852:60: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void wt_longstatus_print_unmerged(struct wt_status *s)
                                                           ^
/datasets/git/wt-status.c:855:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/wt-status.c:855:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wt-status.c:857:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < s->change.nr; i++) {
        ^
/datasets/git/wt-status.c:858:33: warning: variable 'd' is not initialized [cppcoreguidelines-init-variables]
                struct wt_status_change_data *d;
                                              ^
                                                = NULL
/datasets/git/wt-status.c:858:33: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wt-status.c:859:28: warning: variable 'it' is not initialized [cppcoreguidelines-init-variables]
                struct string_list_item *it;
                                         ^
                                            = NULL
/datasets/git/wt-status.c:859:28: warning: variable name 'it' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wt-status.c:862:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!d->stagemask)
                                  ^
                                   {
/datasets/git/wt-status.c:870:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (shown_header)
                         ^
                          {
/datasets/git/wt-status.c:875:59: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void wt_longstatus_print_updated(struct wt_status *s)
                                                          ^
/datasets/git/wt-status.c:878:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/wt-status.c:878:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wt-status.c:880:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < s->change.nr; i++) {
        ^
/datasets/git/wt-status.c:881:33: warning: variable 'd' is not initialized [cppcoreguidelines-init-variables]
                struct wt_status_change_data *d;
                                              ^
                                                = NULL
/datasets/git/wt-status.c:881:33: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wt-status.c:882:28: warning: variable 'it' is not initialized [cppcoreguidelines-init-variables]
                struct string_list_item *it;
                                         ^
                                            = NULL
/datasets/git/wt-status.c:882:28: warning: variable name 'it' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wt-status.c:886:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    d->index_status == DIFF_STATUS_UNMERGED)
                                                            ^
                                                             {
/datasets/git/wt-status.c:894:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (shown_header)
                         ^
                          {
/datasets/git/wt-status.c:903:63: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static int wt_status_check_worktree_changes(struct wt_status *s,
                                                              ^
/datasets/git/wt-status.c:906:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/wt-status.c:906:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wt-status.c:911:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < s->change.nr; i++) {
        ^
/datasets/git/wt-status.c:912:33: warning: variable 'd' is not initialized [cppcoreguidelines-init-variables]
                struct wt_status_change_data *d;
                                              ^
                                                = NULL
/datasets/git/wt-status.c:912:33: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wt-status.c:915:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    d->worktree_status == DIFF_STATUS_UNMERGED)
                                                               ^
                                                                {
/datasets/git/wt-status.c:917:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!changes)
                             ^
                              {
/datasets/git/wt-status.c:919:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (d->dirty_submodule)
                                       ^
                                        {
/datasets/git/wt-status.c:921:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (d->worktree_status == DIFF_STATUS_DELETED)
                                                              ^
                                                               {
/datasets/git/wt-status.c:927:59: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void wt_longstatus_print_changed(struct wt_status *s)
                                                          ^
/datasets/git/wt-status.c:929:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i, dirty_submodules;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:929:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i, dirty_submodules;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/wt-status.c:929:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wt-status.c:929:9: warning: variable 'dirty_submodules' is not initialized [cppcoreguidelines-init-variables]
        int i, dirty_submodules;
               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/wt-status.c:932:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!worktree_changes)
                              ^
                               {
/datasets/git/wt-status.c:937:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < s->change.nr; i++) {
        ^
/datasets/git/wt-status.c:938:33: warning: variable 'd' is not initialized [cppcoreguidelines-init-variables]
                struct wt_status_change_data *d;
                                              ^
                                                = NULL
/datasets/git/wt-status.c:938:33: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wt-status.c:939:28: warning: variable 'it' is not initialized [cppcoreguidelines-init-variables]
                struct string_list_item *it;
                                         ^
                                            = NULL
/datasets/git/wt-status.c:939:28: warning: variable name 'it' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wt-status.c:943:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    d->worktree_status == DIFF_STATUS_UNMERGED)
                                                               ^
                                                                {
/datasets/git/wt-status.c:953:8: warning: 2 adjacent parameters of 'stash_count_refs' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                            timestamp_t timestamp UNUSED, int tz UNUSED,
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:953:20: note: the first parameter in the range is 'timestamp'
                            timestamp_t timestamp UNUSED, int tz UNUSED,
                                        ^~~~~~~~~
/datasets/git/wt-status.c:953:42: note: the last parameter in the range is 'tz'
                            timestamp_t timestamp UNUSED, int tz UNUSED,
                                                              ^~
/datasets/git/wt-status.c:953:8: note: 
                            timestamp_t timestamp UNUSED, int tz UNUSED,
                            ^
/datasets/git/wt-status.c:953:38: note: 'timestamp_t' and 'int' may be implicitly converted: 'timestamp_t' (as 'unsigned long') -> 'int', 'int' -> 'timestamp_t' (as 'unsigned long')
                            timestamp_t timestamp UNUSED, int tz UNUSED,
                                                          ^
/datasets/git/wt-status.c:953:42: warning: parameter name 'tz' is too short, expected at least 3 characters [readability-identifier-length]
                            timestamp_t timestamp UNUSED, int tz UNUSED,
                                                              ^
/datasets/git/wt-status.c:956:7: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        int *c = cb_data;
             ^
/datasets/git/wt-status.c:963:6: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
        int n = 0;
            ^
/datasets/git/wt-status.c:968:65: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void wt_longstatus_print_stash_summary(struct wt_status *s)
                                                                ^
/datasets/git/wt-status.c:972:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (stash_count > 0)
                            ^
                             {
/datasets/git/wt-status.c:979:69: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void wt_longstatus_print_submodule_summary(struct wt_status *s, int uncommitted)
                                                                    ^
/datasets/git/wt-status.c:984:8: warning: variable 'summary_content' is not initialized [cppcoreguidelines-init-variables]
        char *summary_content;
              ^
                              = NULL
/datasets/git/wt-status.c:994:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!uncommitted)
                         ^
                          {
/datasets/git/wt-status.c:1000:44: warning: 1024 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        capture_command(&sm_summary, &cmd_stdout, 1024);
                                                  ^
/datasets/git/wt-status.c:1004:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (uncommitted)
                                ^
                                 {
/datasets/git/wt-status.c:1006:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/wt-status.c:1014:10: warning: variable 'len' is not initialized [cppcoreguidelines-init-variables]
                size_t len;
                       ^
                           = 0
/datasets/git/wt-status.c:1020:2: warning: the value returned by this function should be used [cert-err33-c]
        fputs(summary.buf, s->fp);
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:1020:2: note: cast the expression to void to silence this warning
/datasets/git/wt-status.c:1024:57: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void wt_longstatus_print_other(struct wt_status *s,
                                                        ^
/datasets/git/wt-status.c:1025:31: warning: parameter name 'l' is too short, expected at least 3 characters [readability-identifier-length]
                                      struct string_list *l,
                                                          ^
/datasets/git/wt-status.c:1029:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/wt-status.c:1029:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wt-status.c:1034:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!l->nr)
                   ^
                    {
/datasets/git/wt-status.c:1039:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < l->nr; i++) {
        ^
/datasets/git/wt-status.c:1040:28: warning: variable 'it' is not initialized [cppcoreguidelines-init-variables]
                struct string_list_item *it;
                                         ^
                                            = NULL
/datasets/git/wt-status.c:1040:28: warning: variable name 'it' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wt-status.c:1041:15: warning: variable 'path' is not initialized [cppcoreguidelines-init-variables]
                const char *path;
                            ^
                                 = NULL
/datasets/git/wt-status.c:1054:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!column_active(s->colopts))
                                       ^
                                        {
/datasets/git/wt-status.c:1061:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&copts, 0, sizeof(copts));
        ^~~~~~
/datasets/git/wt-status.c:1061:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&copts, 0, sizeof(copts));
        ^~~~~~
/datasets/git/wt-status.c:1064:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (want_color(s->use_color))
                                     ^
                                      {
/datasets/git/wt-status.c:1073:41: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
size_t wt_status_locate_end(const char *s, size_t len)
                                        ^
/datasets/git/wt-status.c:1075:14: warning: variable 'p' is not initialized [cppcoreguidelines-init-variables]
        const char *p;
                    ^
                      = NULL
/datasets/git/wt-status.c:1075:14: warning: variable name 'p' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wt-status.c:1079:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (starts_with(s, pattern.buf + 1))
                                            ^
                                             {
/datasets/git/wt-status.c:1081:12: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        else if ((p = strstr(s, pattern.buf)))
                  ^
/datasets/git/wt-status.c:1081:12: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/wt-status.c:1081:12: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/wt-status.c:1081:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if ((p = strstr(s, pattern.buf)))
                                              ^
                                               {
/datasets/git/wt-status.c:1095:35: warning: parameter name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
void wt_status_add_cut_line(FILE *fp)
                                  ^
/datasets/git/wt-status.c:1100:2: warning: the value returned by this function should be used [cert-err33-c]
        fputs(buf.buf, fp);
        ^~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:1100:2: note: cast the expression to void to silence this warning
/datasets/git/wt-status.c:1104:59: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void wt_longstatus_print_verbose(struct wt_status *s)
                                                          ^
/datasets/git/wt-status.c:1108:6: warning: variable 'dirty_submodules' is not initialized [cppcoreguidelines-init-variables]
        int dirty_submodules;
            ^
                             = 0
/datasets/git/wt-status.c:1109:14: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
        const char *c = color(WT_STATUS_HEADER, s);
                    ^
/datasets/git/wt-status.c:1115:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&opt, 0, sizeof(opt));
        ^~~~~~
/datasets/git/wt-status.c:1115:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&opt, 0, sizeof(opt));
        ^~~~~~
/datasets/git/wt-status.c:1119:2: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        rev.diffopt.output_format |= DIFF_FORMAT_PATCH;
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:1139:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (s->fp != stdout)
                                    ^
                                     {
/datasets/git/wt-status.c:1159:60: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void wt_longstatus_print_tracking(struct wt_status *s)
                                                           ^
/datasets/git/wt-status.c:1161:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/wt-status.c:1162:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *cp, *ep, *branch_name;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:1162:14: warning: variable 'cp' is not initialized [cppcoreguidelines-init-variables]
        const char *cp, *ep, *branch_name;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/wt-status.c:1162:14: warning: variable name 'cp' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wt-status.c:1162:19: warning: variable 'ep' is not initialized [cppcoreguidelines-init-variables]
        const char *cp, *ep, *branch_name;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/wt-status.c:1162:19: warning: variable name 'ep' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wt-status.c:1162:24: warning: variable 'branch_name' is not initialized [cppcoreguidelines-init-variables]
        const char *cp, *ep, *branch_name;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/wt-status.c:1163:17: warning: variable 'branch' is not initialized [cppcoreguidelines-init-variables]
        struct branch *branch;
                       ^
                              = NULL
/datasets/git/wt-status.c:1165:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/wt-status.c:1165:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wt-status.c:1169:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!skip_prefix(s->branch, "refs/heads/", &branch_name))
                                                                 ^
                                                                  {
/datasets/git/wt-status.c:1175:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!format_tracking_info(branch, &sb, s->ahead_behind_flags))
                                                                      ^
                                                                       {
/datasets/git/wt-status.c:1180:56: warning: 1000000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                uint64_t t_delta_in_ms = (getnanotime() - t_begin) / 1000000;
                                                                     ^
/datasets/git/wt-status.c:1181:23: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
                if (t_delta_in_ms > AB_DELAY_WARNING_IN_MS) {
                                    ^
/datasets/git/wt-status.c:22:33: note: expanded from macro 'AB_DELAY_WARNING_IN_MS'
#define AB_DELAY_WARNING_IN_MS (2 * 1000)
                                ^
/datasets/git/wt-status.c:1181:23: note: make conversion explicit to silence this warning
                if (t_delta_in_ms > AB_DELAY_WARNING_IN_MS) {
                                    ^
/datasets/git/wt-status.c:22:33: note: expanded from macro 'AB_DELAY_WARNING_IN_MS'
#define AB_DELAY_WARNING_IN_MS (2 * 1000)
                                ^~~~~~~~
/datasets/git/wt-status.c:1181:23: note: perform multiplication in a wider type
                if (t_delta_in_ms > AB_DELAY_WARNING_IN_MS) {
                                    ^
/datasets/git/wt-status.c:22:33: note: expanded from macro 'AB_DELAY_WARNING_IN_MS'
#define AB_DELAY_WARNING_IN_MS (2 * 1000)
                                ^
/datasets/git/wt-status.c:1185:9: warning: narrowing conversion from 'uint64_t' (aka 'unsigned long') to 'double' [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                    t_delta_in_ms / 1000.0);
                                    ^
/datasets/git/wt-status.c:1185:25: warning: 1000.0 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                    t_delta_in_ms / 1000.0);
                                                    ^
/datasets/git/wt-status.c:1196:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cp = sb.buf; (ep = strchr(cp, '\n')) != NULL; cp = ep + 1)
        ^
/datasets/git/wt-status.c:1196:20: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ep' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (cp = sb.buf; (ep = strchr(cp, '\n')) != NULL; cp = ep + 1)
                          ^
/datasets/git/wt-status.c:1196:65: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (cp = sb.buf; (ep = strchr(cp, '\n')) != NULL; cp = ep + 1)
                                                                       ^
                                                                        {
/datasets/git/wt-status.c:1200:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (s->display_comment_prefix)
                                      ^
                                       {
/datasets/git/wt-status.c:1203:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/wt-status.c:1204:3: warning: the value returned by this function should be used [cert-err33-c]
                fputs("\n", s->fp);
                ^~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:1204:3: note: cast the expression to void to silence this warning
/datasets/git/wt-status.c:1208:54: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void show_merge_in_progress(struct wt_status *s,
                                                     ^
/datasets/git/wt-status.c:1222:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (s->hints)
                             ^
                              {
/datasets/git/wt-status.c:1229:51: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void show_am_in_progress(struct wt_status *s,
                                                  ^
/datasets/git/wt-status.c:1232:6: warning: variable 'am_empty_patch' is not initialized [cppcoreguidelines-init-variables]
        int am_empty_patch;
            ^
                           = 0
/datasets/git/wt-status.c:1236:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (s->state.am_empty_patch)
                                    ^
                                     {
/datasets/git/wt-status.c:1241:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!am_empty_patch)
                                    ^
                                     {
/datasets/git/wt-status.c:1246:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (am_empty_patch)
                                   ^
                                    {
/datasets/git/wt-status.c:1258:8: warning: variable name 'fp' is too short, expected at least 3 characters [readability-identifier-length]
        FILE *fp = fopen_or_warn(git_path("%s", filename), "r");
              ^
/datasets/git/wt-status.c:1267:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else {
          ^~~~~~
/datasets/git/wt-status.c:1273:55: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static int split_commit_in_progress(struct wt_status *s)
                                                      ^
/datasets/git/wt-status.c:1276:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *head, *orig_head, *rebase_amend, *rebase_orig_head;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:1276:8: warning: variable 'head' is not initialized [cppcoreguidelines-init-variables]
        char *head, *orig_head, *rebase_amend, *rebase_orig_head;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/wt-status.c:1276:15: warning: variable 'orig_head' is not initialized [cppcoreguidelines-init-variables]
        char *head, *orig_head, *rebase_amend, *rebase_orig_head;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/wt-status.c:1276:27: warning: variable 'rebase_amend' is not initialized [cppcoreguidelines-init-variables]
        char *head, *orig_head, *rebase_amend, *rebase_orig_head;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/wt-status.c:1276:42: warning: variable 'rebase_orig_head' is not initialized [cppcoreguidelines-init-variables]
        char *head, *orig_head, *rebase_amend, *rebase_orig_head;
                                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/wt-status.c:1279:20: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
            !s->branch || strcmp(s->branch, "HEAD"))
                          ^
                                                    != 0
/datasets/git/wt-status.c:1279:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            !s->branch || strcmp(s->branch, "HEAD"))
                                                    ^
                                                     {
/datasets/git/wt-status.c:1287:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!head || !orig_head || !rebase_amend || !rebase_orig_head)
                                                                      ^
                                                                       {
/datasets/git/wt-status.c:1289:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (!strcmp(rebase_amend, rebase_orig_head))
                                                         ^
                                                          {
/datasets/git/wt-status.c:1291:11: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
        else if (strcmp(orig_head, rebase_orig_head))
                 ^
                                                     != 0
/datasets/git/wt-status.c:1291:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (strcmp(orig_head, rebase_orig_head))
                                                     ^
                                                      {
/datasets/git/wt-status.c:1313:18: warning: variable 'split' is not initialized [cppcoreguidelines-init-variables]
        struct strbuf **split;
                        ^
                              = NULL
/datasets/git/wt-status.c:1314:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/wt-status.c:1314:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wt-status.c:1319:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            starts_with(line->buf, "l "))
                                         ^
                                          {
/datasets/git/wt-status.c:1337:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = 0; split[i]; i++)
                        ^
/datasets/git/wt-status.c:1337:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'split' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (i = 0; split[i]; i++)
                                    ^
/datasets/git/wt-status.c:1337:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (i = 0; split[i]; i++)
                                                  ^
                                                   {
/datasets/git/wt-status.c:1347:8: warning: variable name 'f' is too short, expected at least 3 characters [readability-identifier-length]
        FILE *f = fopen(git_path("%s", fname), "r");
              ^
/datasets/git/wt-status.c:1350:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (errno == ENOENT)
                                    ^
                                     {
/datasets/git/wt-status.c:1355:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (!strbuf_getline_lf(&line, f)) {
        ^
/datasets/git/wt-status.c:1355:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'line' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (!strbuf_getline_lf(&line, f)) {
               ^
/datasets/git/wt-status.c:1356:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (line.len && line.buf[0] == comment_line_char)
                                                                 ^
                                                                  {
/datasets/git/wt-status.c:1359:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!line.len)
                              ^
                               {
/datasets/git/wt-status.c:1364:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(f);
        ^~~~~~~~~
/datasets/git/wt-status.c:1364:2: note: cast the expression to void to silence this warning
/datasets/git/wt-status.c:1346:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct strbuf line = STRBUF_INIT;
        ^
/datasets/git/wt-status.c:1369:13: warning: function 'show_rebase_information' has cognitive complexity of 27 (threshold 25) [readability-function-cognitive-complexity]
static void show_rebase_information(struct wt_status *s,
            ^
/datasets/git/wt-status.c:1372:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (s->state.rebase_interactive_in_progress) {
        ^
/datasets/git/wt-status.c:1380:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (read_rebase_todolist("rebase-merge/git-rebase-todo",
                ^
/datasets/git/wt-status.c:1384:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (have_done.nr == 0)
                ^
/datasets/git/wt-status.c:1386:3: note: +1, nesting level increased to 2
                else {
                ^
/datasets/git/wt-status.c:1392:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (i = (have_done.nr > nr_lines_to_show)
                        ^
/datasets/git/wt-status.c:1393:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                ? have_done.nr - nr_lines_to_show : 0;
                                ^
/datasets/git/wt-status.c:1397:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (have_done.nr > nr_lines_to_show && s->hints)
                        ^
/datasets/git/wt-status.c:1397:40: note: +1
                        if (have_done.nr > nr_lines_to_show && s->hints)
                                                            ^
/datasets/git/wt-status.c:1402:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (yet_to_do.nr == 0)
                ^
/datasets/git/wt-status.c:1405:3: note: +1, nesting level increased to 2
                else {
                ^
/datasets/git/wt-status.c:1411:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (i = 0; i < nr_lines_to_show && i < yet_to_do.nr; i++)
                        ^
/datasets/git/wt-status.c:1411:37: note: +1
                        for (i = 0; i < nr_lines_to_show && i < yet_to_do.nr; i++)
                                                         ^
/datasets/git/wt-status.c:1413:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (s->hints)
                        ^
/datasets/git/wt-status.c:1369:55: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void show_rebase_information(struct wt_status *s,
                                                      ^
/datasets/git/wt-status.c:1373:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/wt-status.c:1373:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wt-status.c:1381:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                         &yet_to_do))
                                                     ^
                                                      {
/datasets/git/wt-status.c:1384:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (have_done.nr == 0)
                                      ^
                                       {
/datasets/git/wt-status.c:1392:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = (have_done.nr > nr_lines_to_show)
                        ^
/datasets/git/wt-status.c:1393:20: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                ? have_done.nr - nr_lines_to_show : 0;
                                               ^
/datasets/git/wt-status.c:1394:5: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                                i < have_done.nr;
                                ^
/datasets/git/wt-status.c:1395:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                i++)
                                    ^
                                     {
/datasets/git/wt-status.c:1397:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (have_done.nr > nr_lines_to_show && s->hints)
                                                                        ^
                                                                         {
/datasets/git/wt-status.c:1402:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (yet_to_do.nr == 0)
                                      ^
                                       {
/datasets/git/wt-status.c:1411:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (i = 0; i < nr_lines_to_show && i < yet_to_do.nr; i++)
                        ^
/datasets/git/wt-status.c:1411:16: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (i = 0; i < nr_lines_to_show && i < yet_to_do.nr; i++)
                                    ^
/datasets/git/wt-status.c:1411:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (i = 0; i < nr_lines_to_show && i < yet_to_do.nr; i++)
                                                                                  ^
                                                                                   {
/datasets/git/wt-status.c:1413:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (s->hints)
                                     ^
                                      {
/datasets/git/wt-status.c:1422:50: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void print_rebase_state(struct wt_status *s,
                                                 ^
/datasets/git/wt-status.c:1425:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (s->state.branch)
                            ^
                             {
/datasets/git/wt-status.c:1430:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/wt-status.c:1435:55: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void show_rebase_in_progress(struct wt_status *s,
                                                      ^
/datasets/git/wt-status.c:1438:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/wt-status.c:1454:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (s->hints)
                             ^
                              {
/datasets/git/wt-status.c:1458:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (s->state.branch)
                                    ^
                                     {
/datasets/git/wt-status.c:1463:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/wt-status.c:1466:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (s->hints)
                             ^
                              {
/datasets/git/wt-status.c:1470:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (s->state.branch)
                                    ^
                                     {
/datasets/git/wt-status.c:1475:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/wt-status.c:1488:60: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void show_cherry_pick_in_progress(struct wt_status *s,
                                                           ^
/datasets/git/wt-status.c:1491:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_null_oid(&s->state.cherry_pick_head_oid))
                                                        ^
                                                         {
/datasets/git/wt-status.c:1494:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/wt-status.c:1501:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (has_unmerged(s))
                                    ^
                                     {
/datasets/git/wt-status.c:1504:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (is_null_oid(&s->state.cherry_pick_head_oid))
                                                                     ^
                                                                      {
/datasets/git/wt-status.c:1507:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/wt-status.c:1518:55: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void show_revert_in_progress(struct wt_status *s,
                                                      ^
/datasets/git/wt-status.c:1521:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_null_oid(&s->state.revert_head_oid))
                                                   ^
                                                    {
/datasets/git/wt-status.c:1524:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/wt-status.c:1530:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (has_unmerged(s))
                                    ^
                                     {
/datasets/git/wt-status.c:1533:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (is_null_oid(&s->state.revert_head_oid))
                                                                ^
                                                                 {
/datasets/git/wt-status.c:1536:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/wt-status.c:1547:55: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void show_bisect_in_progress(struct wt_status *s,
                                                      ^
/datasets/git/wt-status.c:1550:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (s->state.branch)
                            ^
                             {
/datasets/git/wt-status.c:1554:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/wt-status.c:1557:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (s->hints)
                     ^
                      {
/datasets/git/wt-status.c:1563:59: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void show_sparse_checkout_in_use(struct wt_status *s,
                                                          ^
/datasets/git/wt-status.c:1566:70: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (s->state.sparse_checkout_percentage == SPARSE_CHECKOUT_DISABLED)
                                                                            ^
                                                                             {
/datasets/git/wt-status.c:1569:74: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (s->state.sparse_checkout_percentage == SPARSE_CHECKOUT_SPARSE_INDEX)
                                                                                ^
                                                                                 {
/datasets/git/wt-status.c:1571:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/wt-status.c:1581:48: warning: parameter name 'wt' is too short, expected at least 3 characters [readability-identifier-length]
static char *get_branch(const struct worktree *wt, const char *path)
                                               ^
/datasets/git/wt-status.c:1583:16: warning: variable name 'sb' is too short, expected at least 3 characters [readability-identifier-length]
        struct strbuf sb = STRBUF_INIT;
                      ^
/datasets/git/wt-status.c:1585:14: warning: variable 'branch_name' is not initialized [cppcoreguidelines-init-variables]
        const char *branch_name;
                    ^
                                = NULL
/datasets/git/wt-status.c:1587:71: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (strbuf_read_file(&sb, worktree_git_path(wt, "%s", path), 0) <= 0)
                                                                             ^
                                                                              {
/datasets/git/wt-status.c:1590:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (sb.len && sb.buf[sb.len - 1] == '\n')
        ^
/datasets/git/wt-status.c:1590:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'sb' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (sb.len && sb.buf[sb.len - 1] == '\n')
               ^
/datasets/git/wt-status.c:1590:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (sb.len && sb.buf[sb.len - 1] == '\n')
                                                    ^
                                                     {
/datasets/git/wt-status.c:1592:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!sb.len)
                    ^
                     {
/datasets/git/wt-status.c:1594:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (skip_prefix(sb.buf, "refs/heads/", &branch_name))
                                                             ^
                                                              {
/datasets/git/wt-status.c:1596:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (starts_with(sb.buf, "refs/"))
                                              ^
                                               {
/datasets/git/wt-status.c:1597:3: warning: repeated branch in conditional chain [bugprone-branch-clone]
                ;
                ^
/datasets/git/wt-status.c:1597:4: note: end of the original
                ;
                 ^
/datasets/git/wt-status.c:1604:3: note: clone 1 starts here
                ;
                ^
/datasets/git/wt-status.c:1601:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else if (!strcmp(sb.buf, "detached HEAD")) /* rebase */
                                                    ^
                                                     {
/datasets/git/wt-status.c:1603:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else                    /* bisect */
            ^
             {
/datasets/git/wt-status.c:1612:8: warning: accessing fields in struct 'grab_1st_switch_cbdata' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct grab_1st_switch_cbdata {
       ^
/datasets/git/wt-status.c:1612:8: note: use "__attribute__((aligned(64)))" to align struct 'grab_1st_switch_cbdata' to 64 bytes
/datasets/git/wt-status.c:1620:7: warning: 2 adjacent parameters of 'grab_1st_switch' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
                           timestamp_t timestamp UNUSED, int tz UNUSED,
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:1620:19: note: the first parameter in the range is 'timestamp'
                           timestamp_t timestamp UNUSED, int tz UNUSED,
                                       ^~~~~~~~~
/datasets/git/wt-status.c:1620:41: note: the last parameter in the range is 'tz'
                           timestamp_t timestamp UNUSED, int tz UNUSED,
                                                             ^~
/datasets/git/wt-status.c:1620:7: note: 
                           timestamp_t timestamp UNUSED, int tz UNUSED,
                           ^
/datasets/git/wt-status.c:1620:37: note: 'timestamp_t' and 'int' may be implicitly converted: 'timestamp_t' (as 'unsigned long') -> 'int', 'int' -> 'timestamp_t' (as 'unsigned long')
                           timestamp_t timestamp UNUSED, int tz UNUSED,
                                                         ^
/datasets/git/wt-status.c:1620:41: warning: parameter name 'tz' is too short, expected at least 3 characters [readability-identifier-length]
                           timestamp_t timestamp UNUSED, int tz UNUSED,
                                                             ^
/datasets/git/wt-status.c:1623:33: warning: variable name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
        struct grab_1st_switch_cbdata *cb = cb_data;
                                       ^
/datasets/git/wt-status.c:1624:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        const char *target = NULL, *end;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:1624:30: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
        const char *target = NULL, *end;
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/wt-status.c:1626:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!skip_prefix(message, "checkout: moving from ", &message))
                                                                      ^
                                                                       {
/datasets/git/wt-status.c:1629:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!target)
                    ^
                     {
/datasets/git/wt-status.c:1644:60: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void wt_status_get_detached_from(struct repository *r,
                                                           ^
/datasets/git/wt-status.c:1647:32: warning: variable name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
        struct grab_1st_switch_cbdata cb;
                                      ^
/datasets/git/wt-status.c:1648:17: warning: variable 'commit' is not initialized [cppcoreguidelines-init-variables]
        struct commit *commit;
                       ^
                              = NULL
/datasets/git/wt-status.c:1658:27: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        if (dwim_ref(cb.buf.buf, cb.buf.len, &oid, &ref, 1) == 1 &&
                                 ^
/datasets/git/wt-status.c:1662:9: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
             ((commit = lookup_commit_reference_gently(r, &oid, 1)) != NULL &&
               ^
/datasets/git/wt-status.c:1662:9: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/wt-status.c:1662:9: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/wt-status.c:1665:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!skip_prefix(from, "refs/tags/", &from))
                                                            ^
                                                             {
/datasets/git/wt-status.c:1668:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/wt-status.c:1679:51: warning: parameter name 'wt' is too short, expected at least 3 characters [readability-identifier-length]
int wt_status_check_rebase(const struct worktree *wt,
                                                  ^
/datasets/git/wt-status.c:1682:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/wt-status.c:1687:79: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!stat(worktree_git_path(wt, "rebase-apply/patch"), &st) && !st.st_size)
                                                                                                   ^
                                                                                                    {
/datasets/git/wt-status.c:1695:69: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!stat(worktree_git_path(wt, "rebase-merge/interactive"), &st))
                                                                                  ^
                                                                                   {
/datasets/git/wt-status.c:1697:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/wt-status.c:1701:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else
              ^
               {
/datasets/git/wt-status.c:1706:51: warning: parameter name 'wt' is too short, expected at least 3 characters [readability-identifier-length]
int wt_status_check_bisect(const struct worktree *wt,
                                                  ^
/datasets/git/wt-status.c:1709:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/wt-status.c:1719:64: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
static void wt_status_check_sparse_checkout(struct repository *r,
                                                               ^
/datasets/git/wt-status.c:1723:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/wt-status.c:1723:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wt-status.c:1739:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < r->index->cache_nr; i++) {
        ^
/datasets/git/wt-status.c:1740:23: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
                struct cache_entry *ce = r->index->cache[i];
                                    ^
/datasets/git/wt-status.c:1741:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (ce_skip_worktree(ce))
                    ^
/datasets/git/./refs/../cache.h:244:31: note: expanded from macro 'ce_skip_worktree'
#define ce_skip_worktree(ce) ((ce)->ce_flags & CE_SKIP_WORKTREE)
                              ^                ~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:1741:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ce_skip_worktree(ce))
                                         ^
                                          {
/datasets/git/wt-status.c:1746:3: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                100 - (100 * skip_worktree)/r->index->cache_nr;
                ^
/datasets/git/wt-status.c:1746:3: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
/datasets/git/wt-status.c:1746:10: warning: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                100 - (100 * skip_worktree)/r->index->cache_nr;
                       ^
/datasets/git/wt-status.c:1749:45: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
void wt_status_get_state(struct repository *r,
                                            ^
/datasets/git/wt-status.c:1753:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/wt-status.c:1755:21: warning: variable 'action' is not initialized [cppcoreguidelines-init-variables]
        enum replay_action action;
                           ^
/datasets/git/wt-status.c:1782:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (get_detached_from)
                              ^
                               {
/datasets/git/wt-status.c:1787:57: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void wt_longstatus_print_state(struct wt_status *s)
                                                        ^
/datasets/git/wt-status.c:1795:4: warning: the value returned by this function should be used [cert-err33-c]
                        fputs("\n", s->fp);
                        ^~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:1795:4: note: cast the expression to void to silence this warning
/datasets/git/wt-status.c:1798:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else if (state->am_in_progress)
                                         ^
                                          {
/datasets/git/wt-status.c:1800:78: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (state->rebase_in_progress || state->rebase_interactive_in_progress)
                                                                                    ^
                                                                                     {
/datasets/git/wt-status.c:1802:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (state->cherry_pick_in_progress)
                                                ^
                                                 {
/datasets/git/wt-status.c:1804:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (state->revert_in_progress)
                                           ^
                                            {
/datasets/git/wt-status.c:1806:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (state->bisect_in_progress)
                                      ^
                                       {
/datasets/git/wt-status.c:1809:68: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (state->sparse_checkout_percentage != SPARSE_CHECKOUT_DISABLED)
                                                                          ^
                                                                           {
/datasets/git/wt-status.c:1813:13: warning: function 'wt_longstatus_print' has cognitive complexity of 64 (threshold 25) [readability-function-cognitive-complexity]
static void wt_longstatus_print(struct wt_status *s)
            ^
/datasets/git/wt-status.c:1818:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (s->branch) {
        ^
/datasets/git/wt-status.c:1821:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!strcmp(branch_name, "HEAD")) {
                ^
/datasets/git/wt-status.c:1823:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (s->state.rebase_in_progress ||
                        ^
/datasets/git/wt-status.c:1823:36: note: +1
                        if (s->state.rebase_in_progress ||
                                                        ^
/datasets/git/wt-status.c:1825:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (s->state.rebase_interactive_in_progress)
                                ^
/datasets/git/wt-status.c:1827:5: note: +1, nesting level increased to 4
                                else
                                ^
/datasets/git/wt-status.c:1830:11: note: +1, nesting level increased to 3
                        } else if (s->state.detached_from) {
                               ^
/datasets/git/wt-status.c:1832:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (s->state.detached_at)
                                ^
/datasets/git/wt-status.c:1834:5: note: +1, nesting level increased to 4
                                else
                                ^
/datasets/git/wt-status.c:1836:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/wt-status.c:1840:5: note: +1, nesting level increased to 2
                } else
                  ^
/datasets/git/wt-status.c:1845:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!s->is_initial)
                ^
/datasets/git/wt-status.c:1851:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (s->is_initial) {
        ^
/datasets/git/wt-status.c:1855:6: note: +2, including nesting penalty of 1, nesting level increased to 2
                                 ? _("Initial commit")
                                 ^
/datasets/git/wt-status.c:1863:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (s->submodule_summary &&
        ^
/datasets/git/wt-status.c:1863:27: note: +1
        if (s->submodule_summary &&
                                 ^
/datasets/git/wt-status.c:1864:32: note: +1
            (!s->ignore_submodule_arg ||
                                      ^
/datasets/git/wt-status.c:1869:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (s->show_untracked_files) {
        ^
/datasets/git/wt-status.c:1871:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (s->show_ignored_mode)
                ^
/datasets/git/wt-status.c:1873:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (advice_enabled(ADVICE_STATUS_U_OPTION) && 2000 < s->untracked_in_ms) {
                ^
/datasets/git/wt-status.c:1873:46: note: +1
                if (advice_enabled(ADVICE_STATUS_U_OPTION) && 2000 < s->untracked_in_ms) {
                                                           ^
/datasets/git/wt-status.c:1881:9: note: +1, nesting level increased to 1
        } else if (s->committable)
               ^
/datasets/git/wt-status.c:1884:4: note: +2, including nesting penalty of 1, nesting level increased to 2
                        ? _(" (use -u option to show untracked files)") : "");
                        ^
/datasets/git/wt-status.c:1886:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (s->verbose)
        ^
/datasets/git/wt-status.c:1888:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!s->committable) {
        ^
/datasets/git/wt-status.c:1889:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (s->amend)
                ^
/datasets/git/wt-status.c:1891:8: note: +1, nesting level increased to 2
                else if (s->nowarn)
                     ^
/datasets/git/wt-status.c:1893:8: note: +1, nesting level increased to 2
                else if (s->workdir_dirty) {
                     ^
/datasets/git/wt-status.c:1894:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (s->hints)
                        ^
/datasets/git/wt-status.c:1898:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/wt-status.c:1901:10: note: +1, nesting level increased to 2
                } else if (s->untracked.nr) {
                       ^
/datasets/git/wt-status.c:1902:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (s->hints)
                        ^
/datasets/git/wt-status.c:1906:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/wt-status.c:1909:10: note: +1, nesting level increased to 2
                } else if (s->is_initial) {
                       ^
/datasets/git/wt-status.c:1910:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (s->hints)
                        ^
/datasets/git/wt-status.c:1914:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/wt-status.c:1916:10: note: +1, nesting level increased to 2
                } else if (!s->show_untracked_files) {
                       ^
/datasets/git/wt-status.c:1917:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (s->hints)
                        ^
/datasets/git/wt-status.c:1920:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/wt-status.c:1922:5: note: +1, nesting level increased to 2
                } else
                  ^
/datasets/git/wt-status.c:1926:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if(s->show_stash)
        ^
/datasets/git/wt-status.c:1813:51: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void wt_longstatus_print(struct wt_status *s)
                                                  ^
/datasets/git/wt-status.c:1825:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (s->state.rebase_interactive_in_progress)
                                                                            ^
                                                                             {
/datasets/git/wt-status.c:1827:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                else
                                    ^
                                     {
/datasets/git/wt-status.c:1832:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (s->state.detached_at)
                                                         ^
                                                          {
/datasets/git/wt-status.c:1834:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                else
                                    ^
                                     {
/datasets/git/wt-status.c:1840:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/wt-status.c:1845:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!s->is_initial)
                                   ^
                                    {
/datasets/git/wt-status.c:1865:7: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
             strcmp(s->ignore_submodule_arg, "all"))) {
             ^
                                                    != 0
/datasets/git/wt-status.c:1871:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (s->show_ignored_mode)
                                         ^
                                          {
/datasets/git/wt-status.c:1873:49: warning: 2000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                if (advice_enabled(ADVICE_STATUS_U_OPTION) && 2000 < s->untracked_in_ms) {
                                                              ^
/datasets/git/wt-status.c:1879:28: warning: 1000.0 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                         s->untracked_in_ms / 1000.0);
                                                              ^
/datasets/git/wt-status.c:1881:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        } else if (s->committable)
                                  ^
                                   {
/datasets/git/wt-status.c:1886:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (s->verbose)
                       ^
                        {
/datasets/git/wt-status.c:1889:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (s->amend)
                             ^
                              {
/datasets/git/wt-status.c:1891:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (s->nowarn)
                                   ^
                                    {
/datasets/git/wt-status.c:1894:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (s->hints)
                                     ^
                                      {
/datasets/git/wt-status.c:1895:5: warning: the value returned by this function should be used [cert-err33-c]
                                fprintf(s->fp, _("no changes added to commit "
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:1895:5: note: cast the expression to void to silence this warning
/datasets/git/wt-status.c:1898:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/wt-status.c:1899:5: warning: the value returned by this function should be used [cert-err33-c]
                                fprintf(s->fp, _("no changes added to "
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:1899:5: note: cast the expression to void to silence this warning
/datasets/git/wt-status.c:1902:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (s->hints)
                                     ^
                                      {
/datasets/git/wt-status.c:1903:5: warning: the value returned by this function should be used [cert-err33-c]
                                fprintf(s->fp, _("nothing added to commit but "
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:1903:5: note: cast the expression to void to silence this warning
/datasets/git/wt-status.c:1906:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/wt-status.c:1907:5: warning: the value returned by this function should be used [cert-err33-c]
                                fprintf(s->fp, _("nothing added to commit but "
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:1907:5: note: cast the expression to void to silence this warning
/datasets/git/wt-status.c:1910:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (s->hints)
                                     ^
                                      {
/datasets/git/wt-status.c:1911:5: warning: the value returned by this function should be used [cert-err33-c]
                                fprintf(s->fp, _("nothing to commit (create/"
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:1911:5: note: cast the expression to void to silence this warning
/datasets/git/wt-status.c:1914:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/wt-status.c:1915:5: warning: the value returned by this function should be used [cert-err33-c]
                                fprintf(s->fp, _("nothing to commit\n"));
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:1915:5: note: cast the expression to void to silence this warning
/datasets/git/wt-status.c:1917:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (s->hints)
                                     ^
                                      {
/datasets/git/wt-status.c:1918:5: warning: the value returned by this function should be used [cert-err33-c]
                                fprintf(s->fp, _("nothing to commit (use -u to "
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:1918:5: note: cast the expression to void to silence this warning
/datasets/git/wt-status.c:1920:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/wt-status.c:1921:5: warning: the value returned by this function should be used [cert-err33-c]
                                fprintf(s->fp, _("nothing to commit\n"));
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:1921:5: note: cast the expression to void to silence this warning
/datasets/git/wt-status.c:1922:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/wt-status.c:1923:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(s->fp, _("nothing to commit, working tree "
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:1923:4: note: cast the expression to void to silence this warning
/datasets/git/wt-status.c:1926:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if(s->show_stash)
                         ^
                          {
/datasets/git/wt-status.c:1930:62: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
static void wt_shortstatus_unmerged(struct string_list_item *it,
                                                             ^
/datasets/git/wt-status.c:1931:25: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
                           struct wt_status *s)
                                             ^
/datasets/git/wt-status.c:1933:32: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
        struct wt_status_change_data *d = it->util;
                                      ^
/datasets/git/wt-status.c:1941:7: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        case 5: how = "DU"; break; /* deleted by us */
             ^
/datasets/git/wt-status.c:1942:7: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        case 6: how = "AA"; break; /* both added */
             ^
/datasets/git/wt-status.c:1943:7: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        case 7: how = "UU"; break; /* both modified */
             ^
/datasets/git/wt-status.c:1947:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(s->fp, " %s%c", it->string, 0);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:1947:3: note: cast the expression to void to silence this warning
/datasets/git/wt-status.c:1950:15: warning: variable 'one' is not initialized [cppcoreguidelines-init-variables]
                const char *one;
                            ^
                                = NULL
/datasets/git/wt-status.c:1952:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(s->fp, " %s\n", one);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:1952:3: note: cast the expression to void to silence this warning
/datasets/git/wt-status.c:1957:60: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
static void wt_shortstatus_status(struct string_list_item *it,
                                                           ^
/datasets/git/wt-status.c:1958:23: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
                         struct wt_status *s)
                                           ^
/datasets/git/wt-status.c:1960:32: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
        struct wt_status_change_data *d = it->util;
                                      ^
/datasets/git/wt-status.c:1962:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (d->index_status)
                            ^
                             {
/datasets/git/wt-status.c:1964:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/wt-status.c:1965:3: warning: the value returned by this function should be used [cert-err33-c]
                fputc(' ', s->fp);
                ^~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:1965:3: note: cast the expression to void to silence this warning
/datasets/git/wt-status.c:1966:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (d->worktree_status)
                               ^
                                {
/datasets/git/wt-status.c:1968:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/wt-status.c:1969:3: warning: the value returned by this function should be used [cert-err33-c]
                fputc(' ', s->fp);
                ^~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:1969:3: note: cast the expression to void to silence this warning
/datasets/git/wt-status.c:1970:2: warning: the value returned by this function should be used [cert-err33-c]
        fputc(' ', s->fp);
        ^~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:1970:2: note: cast the expression to void to silence this warning
/datasets/git/wt-status.c:1972:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(s->fp, "%s%c", it->string, 0);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:1972:3: note: cast the expression to void to silence this warning
/datasets/git/wt-status.c:1973:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (d->rename_source)
                                     ^
                                      {
/datasets/git/wt-status.c:1974:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(s->fp, "%s%c", d->rename_source, 0);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:1974:4: note: cast the expression to void to silence this warning
/datasets/git/wt-status.c:1977:15: warning: variable 'one' is not initialized [cppcoreguidelines-init-variables]
                const char *one;
                            ^
                                = NULL
/datasets/git/wt-status.c:1982:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(s->fp, "%s -> ", one);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:1982:4: note: cast the expression to void to silence this warning
/datasets/git/wt-status.c:1986:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(s->fp, "%s\n", one);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:1986:3: note: cast the expression to void to silence this warning
/datasets/git/wt-status.c:1991:59: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
static void wt_shortstatus_other(struct string_list_item *it,
                                                          ^
/datasets/git/wt-status.c:1992:24: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
                                 struct wt_status *s, const char *sign)
                                                   ^
/datasets/git/wt-status.c:1995:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(s->fp, "%s %s%c", sign, it->string, 0);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:1995:3: note: cast the expression to void to silence this warning
/datasets/git/wt-status.c:1998:15: warning: variable 'one' is not initialized [cppcoreguidelines-init-variables]
                const char *one;
                            ^
                                = NULL
/datasets/git/wt-status.c:2001:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(s->fp, " %s\n", one);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:2001:3: note: cast the expression to void to silence this warning
/datasets/git/wt-status.c:2006:13: warning: function 'wt_shortstatus_print_tracking' has cognitive complexity of 31 (threshold 25) [readability-function-cognitive-complexity]
static void wt_shortstatus_print_tracking(struct wt_status *s)
            ^
/datasets/git/wt-status.c:2021:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!s->branch)
        ^
/datasets/git/wt-status.c:2027:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (s->is_initial)
        ^
/datasets/git/wt-status.c:2028:38: note: +2, including nesting penalty of 1, nesting level increased to 2
                color_fprintf(s->fp, header_color, LABEL(N_("No commits yet on ")));
                                                   ^
/datasets/git/wt-status.c:2025:38: note: expanded from macro 'LABEL'
#define LABEL(string) (s->no_gettext ? (string) : _(string))
                                     ^
/datasets/git/wt-status.c:2030:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!strcmp(s->branch, "HEAD")) {
        ^
/datasets/git/wt-status.c:2032:10: note: +2, including nesting penalty of 1, nesting level increased to 2
                              LABEL(N_("HEAD (no branch)")));
                              ^
/datasets/git/wt-status.c:2025:38: note: expanded from macro 'LABEL'
#define LABEL(string) (s->no_gettext ? (string) : _(string))
                                     ^
/datasets/git/wt-status.c:2033:3: note: +1
                goto conclude;
                ^
/datasets/git/wt-status.c:2044:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (sti < 0) {
        ^
/datasets/git/wt-status.c:2045:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!base)
                ^
/datasets/git/wt-status.c:2056:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!upstream_is_gone && !sti)
        ^
/datasets/git/wt-status.c:2056:24: note: +1
        if (!upstream_is_gone && !sti)
                              ^
/datasets/git/wt-status.c:2060:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (upstream_is_gone) {
        ^
/datasets/git/wt-status.c:2061:38: note: +2, including nesting penalty of 1, nesting level increased to 2
                color_fprintf(s->fp, header_color, LABEL(N_("gone")));
                                                   ^
/datasets/git/wt-status.c:2025:38: note: expanded from macro 'LABEL'
#define LABEL(string) (s->no_gettext ? (string) : _(string))
                                     ^
/datasets/git/wt-status.c:2062:9: note: +1, nesting level increased to 1
        } else if (s->ahead_behind_flags == AHEAD_BEHIND_QUICK) {
               ^
/datasets/git/wt-status.c:2063:38: note: +2, including nesting penalty of 1, nesting level increased to 2
                color_fprintf(s->fp, header_color, LABEL(N_("different")));
                                                   ^
/datasets/git/wt-status.c:2025:38: note: expanded from macro 'LABEL'
#define LABEL(string) (s->no_gettext ? (string) : _(string))
                                     ^
/datasets/git/wt-status.c:2064:9: note: +1, nesting level increased to 1
        } else if (!num_ours) {
               ^
/datasets/git/wt-status.c:2065:38: note: +2, including nesting penalty of 1, nesting level increased to 2
                color_fprintf(s->fp, header_color, LABEL(N_("behind ")));
                                                   ^
/datasets/git/wt-status.c:2025:38: note: expanded from macro 'LABEL'
#define LABEL(string) (s->no_gettext ? (string) : _(string))
                                     ^
/datasets/git/wt-status.c:2067:9: note: +1, nesting level increased to 1
        } else if (!num_theirs) {
               ^
/datasets/git/wt-status.c:2068:38: note: +2, including nesting penalty of 1, nesting level increased to 2
                color_fprintf(s->fp, header_color, LABEL(N_("ahead ")));
                                                   ^
/datasets/git/wt-status.c:2025:38: note: expanded from macro 'LABEL'
#define LABEL(string) (s->no_gettext ? (string) : _(string))
                                     ^
/datasets/git/wt-status.c:2070:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/wt-status.c:2071:38: note: +2, including nesting penalty of 1, nesting level increased to 2
                color_fprintf(s->fp, header_color, LABEL(N_("ahead ")));
                                                   ^
/datasets/git/wt-status.c:2025:38: note: expanded from macro 'LABEL'
#define LABEL(string) (s->no_gettext ? (string) : _(string))
                                     ^
/datasets/git/wt-status.c:2073:46: note: +2, including nesting penalty of 1, nesting level increased to 2
                color_fprintf(s->fp, header_color, ", %s", LABEL(N_("behind ")));
                                                           ^
/datasets/git/wt-status.c:2025:38: note: expanded from macro 'LABEL'
#define LABEL(string) (s->no_gettext ? (string) : _(string))
                                     ^
/datasets/git/wt-status.c:2079:28: note: +1, including nesting penalty of 0, nesting level increased to 1
        fputc(s->null_termination ? '\0' : '\n', s->fp);
                                  ^
/datasets/git/wt-status.c:2006:61: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void wt_shortstatus_print_tracking(struct wt_status *s)
                                                            ^
/datasets/git/wt-status.c:2008:17: warning: variable 'branch' is not initialized [cppcoreguidelines-init-variables]
        struct branch *branch;
                       ^
                              = NULL
/datasets/git/wt-status.c:2013:14: warning: variable 'base' is not initialized [cppcoreguidelines-init-variables]
        const char *base;
                    ^
                         = NULL
/datasets/git/wt-status.c:2014:8: warning: variable 'short_base' is not initialized [cppcoreguidelines-init-variables]
        char *short_base;
              ^
                         = NULL
/datasets/git/wt-status.c:2015:14: warning: variable 'branch_name' is not initialized [cppcoreguidelines-init-variables]
        const char *branch_name;
                    ^
                                = NULL
/datasets/git/wt-status.c:2016:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int num_ours, num_theirs, sti;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:2016:6: warning: variable 'num_ours' is not initialized [cppcoreguidelines-init-variables]
        int num_ours, num_theirs, sti;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/wt-status.c:2016:16: warning: variable 'num_theirs' is not initialized [cppcoreguidelines-init-variables]
        int num_ours, num_theirs, sti;
                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/wt-status.c:2016:28: warning: variable 'sti' is not initialized [cppcoreguidelines-init-variables]
        int num_ours, num_theirs, sti;
                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/wt-status.c:2021:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!s->branch)
                       ^
                        {
/datasets/git/wt-status.c:2027:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (s->is_initial)
                          ^
                           {
/datasets/git/wt-status.c:2045:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!base)
                          ^
                           {
/datasets/git/wt-status.c:2056:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!upstream_is_gone && !sti)
                                      ^
                                       {
/datasets/git/wt-status.c:2082:52: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void wt_shortstatus_print(struct wt_status *s)
                                                   ^
/datasets/git/wt-status.c:2084:27: warning: variable 'it' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *it;
                                 ^
                                    = NULL
/datasets/git/wt-status.c:2084:27: warning: variable name 'it' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wt-status.c:2086:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (s->show_branch)
                           ^
                            {
/datasets/git/wt-status.c:2089:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(it, &s->change) {
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/wt-status.c:2084:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct string_list_item *it;
        ^
/datasets/git/wt-status.c:2089:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'it' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(it, &s->change) {
                                  ^
/datasets/git/wt-status.c:2090:33: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
                struct wt_status_change_data *d = it->util;
                                              ^
/datasets/git/wt-status.c:2092:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (d->stagemask)
                                 ^
                                  {
/datasets/git/wt-status.c:2094:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/wt-status.c:2097:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(it, &s->untracked)
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/wt-status.c:2084:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct string_list_item *it;
        ^
/datasets/git/wt-status.c:2097:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'it' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(it, &s->untracked)
                                  ^
/datasets/git/wt-status.c:2100:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for_each_string_list_item(it, &s->ignored)
        ^
/datasets/git/./string-list.h:151:2: note: expanded from macro 'for_each_string_list_item'
        for (item = (list)->items;                      \
        ^
/datasets/git/wt-status.c:2100:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'it' and may cause performance degradation [altera-id-dependent-backward-branch]
        for_each_string_list_item(it, &s->ignored)
                                  ^
/datasets/git/wt-status.c:2104:50: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void wt_porcelain_print(struct wt_status *s)
                                                 ^
/datasets/git/wt-status.c:2146:62: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void wt_porcelain_v2_print_tracking(struct wt_status *s)
                                                             ^
/datasets/git/wt-status.c:2148:17: warning: variable 'branch' is not initialized [cppcoreguidelines-init-variables]
        struct branch *branch;
                       ^
                              = NULL
/datasets/git/wt-status.c:2149:14: warning: variable 'base' is not initialized [cppcoreguidelines-init-variables]
        const char *base;
                    ^
                         = NULL
/datasets/git/wt-status.c:2150:14: warning: variable 'branch_name' is not initialized [cppcoreguidelines-init-variables]
        const char *branch_name;
                    ^
                                = NULL
/datasets/git/wt-status.c:2151:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int ab_info, nr_ahead, nr_behind;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:2151:6: warning: variable 'ab_info' is not initialized [cppcoreguidelines-init-variables]
        int ab_info, nr_ahead, nr_behind;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/wt-status.c:2151:15: warning: variable 'nr_ahead' is not initialized [cppcoreguidelines-init-variables]
        int ab_info, nr_ahead, nr_behind;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/wt-status.c:2151:25: warning: variable 'nr_behind' is not initialized [cppcoreguidelines-init-variables]
        int ab_info, nr_ahead, nr_behind;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/wt-status.c:2154:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(s->fp, "# branch.oid %s%c",
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:2154:2: note: cast the expression to void to silence this warning
/datasets/git/wt-status.c:2158:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!s->branch)
                       ^
                        {
/datasets/git/wt-status.c:2159:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(s->fp, "# branch.head %s%c", "(unknown)", eol);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:2159:3: note: cast the expression to void to silence this warning
/datasets/git/wt-status.c:2162:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(s->fp, "# branch.head %s%c", "(detached)", eol);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:2162:4: note: cast the expression to void to silence this warning
/datasets/git/wt-status.c:2165:48: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            s->state.rebase_interactive_in_progress)
                                                                    ^
                                                                     {
/datasets/git/wt-status.c:2167:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else if (s->state.detached_from)
                                                        ^
                                                         {
/datasets/git/wt-status.c:2169:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/wt-status.c:2175:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(s->fp, "# branch.head %s%c", branch_name, eol);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:2175:4: note: cast the expression to void to silence this warning
/datasets/git/wt-status.c:2185:4: warning: the value returned by this function should be used [cert-err33-c]
                        fprintf(s->fp, "# branch.upstream %s%c", base, eol);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:2185:4: note: cast the expression to void to silence this warning
/datasets/git/wt-status.c:2190:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (nr_ahead || nr_behind)
                                                          ^
                                                           {
/datasets/git/wt-status.c:2191:6: warning: the value returned by this function should be used [cert-err33-c]
                                        fprintf(s->fp, "# branch.ab +%d -%d%c",
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:2191:6: note: cast the expression to void to silence this warning
/datasets/git/wt-status.c:2193:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                else
                                    ^
                                     {
/datasets/git/wt-status.c:2194:6: warning: the value returned by this function should be used [cert-err33-c]
                                        fprintf(s->fp, "# branch.ab +? -?%c",
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:2194:6: note: cast the expression to void to silence this warning
/datasets/git/wt-status.c:2198:5: warning: the value returned by this function should be used [cert-err33-c]
                                fprintf(s->fp, "# branch.ab +0 -0%c", eol);
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:2198:5: note: cast the expression to void to silence this warning
/datasets/git/wt-status.c:2207:59: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void wt_porcelain_v2_print_stash(struct wt_status *s)
                                                          ^
/datasets/git/wt-status.c:2212:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (stash_count > 0)
                            ^
                             {
/datasets/git/wt-status.c:2213:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(s->fp, "# stash %d%c", stash_count, eol);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:2213:3: note: cast the expression to void to silence this warning
/datasets/git/wt-status.c:2221:32: warning: parameter name 'd' is too short, expected at least 3 characters [readability-identifier-length]
        struct wt_status_change_data *d,
                                      ^
/datasets/git/wt-status.c:2222:11: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        char sub[5])
                 ^
/datasets/git/wt-status.c:2224:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (S_ISGITLINK(d->mode_head) ||
            ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^~~
/datasets/git/wt-status.c:2225:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                S_ISGITLINK(d->mode_index) ||
                ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^~~
/datasets/git/wt-status.c:2226:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                S_ISGITLINK(d->mode_worktree)) {
                ^
/datasets/git/./refs/../cache.h:69:26: note: expanded from macro 'S_ISGITLINK'
#define S_ISGITLINK(m)  (((m) & S_IFMT) == S_IFGITLINK)
                          ^~~
/datasets/git/wt-status.c:2229:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                sub[2] = (d->dirty_submodule & DIRTY_SUBMODULE_MODIFIED) ? 'M' : '.';
                          ^
/datasets/git/wt-status.c:2230:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                sub[3] = (d->dirty_submodule & DIRTY_SUBMODULE_UNTRACKED) ? 'U' : '.';
                          ^
/datasets/git/wt-status.c:2243:69: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
static void wt_porcelain_v2_fix_up_changed(struct string_list_item *it)
                                                                    ^
/datasets/git/wt-status.c:2245:32: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
        struct wt_status_change_data *d = it->util;
                                      ^
/datasets/git/wt-status.c:2291:27: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
        struct string_list_item *it,
                                 ^
/datasets/git/wt-status.c:2292:20: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
        struct wt_status *s)
                          ^
/datasets/git/wt-status.c:2294:32: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
        struct wt_status_change_data *d = it->util;
                                      ^
/datasets/git/wt-status.c:2300:23: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        char submodule_token[5];
                             ^
/datasets/git/wt-status.c:2301:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char sep_char, eol_char;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:2301:7: warning: variable 'sep_char' is not initialized [cppcoreguidelines-init-variables]
        char sep_char, eol_char;
             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/wt-status.c:2301:17: warning: variable 'eol_char' is not initialized [cppcoreguidelines-init-variables]
        char sep_char, eol_char;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/wt-status.c:2306:29: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        key[0] = d->index_status ? d->index_status : '.';
                                   ^
/datasets/git/wt-status.c:2307:32: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        key[1] = d->worktree_status ? d->worktree_status : '.';
                                      ^
/datasets/git/wt-status.c:2329:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (d->rename_source)
                                     ^
                                      {
/datasets/git/wt-status.c:2333:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (path_from)
                      ^
                       {
/datasets/git/wt-status.c:2334:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(s->fp, "2 %s %s %06o %06o %06o %s %s %c%d %s%c%s%c",
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:2334:3: note: cast the expression to void to silence this warning
/datasets/git/wt-status.c:2340:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/wt-status.c:2341:3: warning: the value returned by this function should be used [cert-err33-c]
                fprintf(s->fp, "1 %s %s %06o %06o %06o %s %s %s%c",
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:2341:3: note: cast the expression to void to silence this warning
/datasets/git/wt-status.c:2355:27: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
        struct string_list_item *it,
                                 ^
/datasets/git/wt-status.c:2356:20: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
        struct wt_status *s)
                          ^
/datasets/git/wt-status.c:2358:32: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
        struct wt_status_change_data *d = it->util;
                                      ^
/datasets/git/wt-status.c:2360:28: warning: variable 'ce' is not initialized [cppcoreguidelines-init-variables]
        const struct cache_entry *ce;
                                  ^
                                     = NULL
/datasets/git/wt-status.c:2360:28: warning: variable name 'ce' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wt-status.c:2363:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int pos, stage, sum;
        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:2363:2: note: inferred assignment of ID-dependent value from ID-dependent variable istate [altera-id-dependent-backward-branch]
/datasets/git/wt-status.c:2363:6: warning: variable 'pos' is not initialized [cppcoreguidelines-init-variables]
        int pos, stage, sum;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/wt-status.c:2363:11: warning: variable 'stage' is not initialized [cppcoreguidelines-init-variables]
        int pos, stage, sum;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/wt-status.c:2363:18: warning: variable 'sum' is not initialized [cppcoreguidelines-init-variables]
        int pos, stage, sum;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/wt-status.c:2364:2: warning: accessing fields in struct '' is inefficient due to poor alignment; currently aligned to 4 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
        struct {
        ^
/datasets/git/wt-status.c:2364:2: note: use "__attribute__((aligned(64)))" to align struct '' to 64 bytes
/datasets/git/wt-status.c:2368:8: warning: variable 'key' is not initialized [cppcoreguidelines-init-variables]
        char *key;
              ^
                  = NULL
/datasets/git/wt-status.c:2369:23: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        char submodule_token[5];
                             ^
/datasets/git/wt-status.c:2380:7: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        case 5: key = "DU"; break; /* deleted by us */
             ^
/datasets/git/wt-status.c:2381:7: warning: 6 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        case 6: key = "AA"; break; /* both added */
             ^
/datasets/git/wt-status.c:2382:7: warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        case 7: key = "UU"; break; /* both modified */
             ^
/datasets/git/wt-status.c:2396:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(stages, 0, sizeof(stages));
        ^~~~~~
/datasets/git/wt-status.c:2396:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(stages, 0, sizeof(stages));
        ^~~~~~
/datasets/git/wt-status.c:2398:43: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        pos = index_name_pos(istate, it->string, strlen(it->string));
                                                 ^
/datasets/git/wt-status.c:2401:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (pos < istate->cache_nr) {
        ^
/datasets/git/wt-status.c:2401:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'pos' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (pos < istate->cache_nr) {
               ^
/datasets/git/wt-status.c:2403:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                stage = ce_stage(ce);
                        ^
/datasets/git/./refs/../cache.h:242:23: note: expanded from macro 'ce_stage'
#define ce_stage(ce) ((CE_STAGEMASK & (ce)->ce_flags) >> CE_STAGESHIFT)
                      ^                                  ~~~~~~~~~~~~~
/datasets/git/wt-status.c:2404:7: warning: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare]
                if (strcmp(ce->name, it->string) || !stage)
                    ^
                                                 != 0
/datasets/git/wt-status.c:2404:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (strcmp(ce->name, it->string) || !stage)
                                                           ^
                                                            {
/datasets/git/wt-status.c:2406:28: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                stages[stage - 1].mode = ce->ce_mode;
                                         ^
/datasets/git/wt-status.c:2408:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                sum |= (1 << (stage - 1));
                ^~~
/datasets/git/wt-status.c:2408:11: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                sum |= (1 << (stage - 1));
                        ^
/datasets/git/wt-status.c:2410:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (sum != d->stagemask)
                                ^
                                 {
/datasets/git/wt-status.c:2413:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (s->null_termination)
                                ^
                                 {
/datasets/git/wt-status.c:2415:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/wt-status.c:2418:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(s->fp, "%c %s %s %06o %06o %06o %06o %s %s %s %s%c",
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:2418:2: note: cast the expression to void to silence this warning
/datasets/git/wt-status.c:2437:27: warning: parameter name 'it' is too short, expected at least 3 characters [readability-identifier-length]
        struct string_list_item *it,
                                 ^
/datasets/git/wt-status.c:2438:20: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
        struct wt_status *s,
                          ^
/datasets/git/wt-status.c:2442:14: warning: variable 'path' is not initialized [cppcoreguidelines-init-variables]
        const char *path;
                    ^
                         = NULL
/datasets/git/wt-status.c:2443:7: warning: variable 'eol_char' is not initialized [cppcoreguidelines-init-variables]
        char eol_char;
             ^
                      = 0
/datasets/git/wt-status.c:2453:2: warning: the value returned by this function should be used [cert-err33-c]
        fprintf(s->fp, "%c %s%c", prefix, path, eol_char);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:2453:2: note: cast the expression to void to silence this warning
/datasets/git/wt-status.c:2468:53: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void wt_porcelain_v2_print(struct wt_status *s)
                                                    ^
/datasets/git/wt-status.c:2470:32: warning: variable 'd' is not initialized [cppcoreguidelines-init-variables]
        struct wt_status_change_data *d;
                                      ^
                                        = NULL
/datasets/git/wt-status.c:2470:32: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wt-status.c:2471:27: warning: variable 'it' is not initialized [cppcoreguidelines-init-variables]
        struct string_list_item *it;
                                 ^
                                    = NULL
/datasets/git/wt-status.c:2471:27: warning: variable name 'it' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wt-status.c:2472:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/wt-status.c:2472:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wt-status.c:2474:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (s->show_branch)
                           ^
                            {
/datasets/git/wt-status.c:2477:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (s->show_stash)
                          ^
                           {
/datasets/git/wt-status.c:2480:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < s->change.nr; i++) {
        ^
/datasets/git/wt-status.c:2483:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!d->stagemask)
                                  ^
                                   {
/datasets/git/wt-status.c:2487:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < s->change.nr; i++) {
        ^
/datasets/git/wt-status.c:2490:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (d->stagemask)
                                 ^
                                  {
/datasets/git/wt-status.c:2494:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < s->untracked.nr; i++) {
        ^
/datasets/git/wt-status.c:2499:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < s->ignored.nr; i++) {
        ^
/datasets/git/wt-status.c:2505:40: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
void wt_status_print(struct wt_status *s)
                                       ^
/datasets/git/wt-status.c:2539:45: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int has_unstaged_changes(struct repository *r, int ignore_submodules)
                                            ^
/datasets/git/wt-status.c:2542:6: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        int result;
            ^
                   = 0
/datasets/git/wt-status.c:2560:48: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int has_uncommitted_changes(struct repository *r,
                                               ^
/datasets/git/wt-status.c:2564:6: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        int result;
            ^
                   = 0
/datasets/git/wt-status.c:2566:32: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (is_index_unborn(r->index))
                                      ^
                                       {
/datasets/git/wt-status.c:2570:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ignore_submodules)
                              ^
                               {
/datasets/git/wt-status.c:2595:48: warning: parameter name 'r' is too short, expected at least 3 characters [readability-identifier-length]
int require_clean_work_tree(struct repository *r,
                                               ^
/datasets/git/wt-status.c:2596:8: warning: 2 adjacent parameters of 'require_clean_work_tree' of similar type ('const char *') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                            const char *action,
                            ^~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:2596:20: note: the first parameter in the range is 'action'
                            const char *action,
                                        ^~~~~~
/datasets/git/wt-status.c:2597:20: note: the last parameter in the range is 'hint'
                            const char *hint,
                                        ^~~~
/datasets/git/wt-status.c:2598:8: warning: 2 adjacent parameters of 'require_clean_work_tree' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                            int ignore_submodules,
                            ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:2598:12: note: the first parameter in the range is 'ignore_submodules'
                            int ignore_submodules,
                                ^~~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:2599:12: note: the last parameter in the range is 'gently'
                            int gently)
                                ^~~~~~
/datasets/git/wt-status.c:2602:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int err = 0, fd;
        ^~~~~~~~~~~~~~~~
/datasets/git/wt-status.c:2602:15: warning: variable 'fd' is not initialized [cppcoreguidelines-init-variables]
        int err = 0, fd;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/wt-status.c:2602:15: warning: variable name 'fd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/wt-status.c:2605:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        refresh_index(r->index, REFRESH_QUIET, NULL, NULL, NULL);
                                ^
/datasets/git/./refs/../cache.h:923:43: note: expanded from macro 'REFRESH_QUIET'
#define REFRESH_QUIET                    (1 << 2) /* be quiet about it */
                                          ^
/datasets/git/wt-status.c:2606:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (0 <= fd)
                    ^
                     {
/datasets/git/wt-status.c:2617:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (err)
                        ^
                         {
/datasets/git/wt-status.c:2619:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/wt-status.c:2626:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (hint)
                         ^
                          {
/datasets/git/wt-status.c:2628:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!gently)
                            ^
                             {
/datasets/git/wt-status.c:2629:4: warning: function is not thread safe [concurrency-mt-unsafe]
                        exit(128);
                        ^
/datasets/git/./git-compat-util.h:1525:20: note: expanded from macro 'exit'
#define exit(code) exit(common_exit(__FILE__, __LINE__, (code)))
                   ^
/datasets/git/xdiff-interface.c:5:1: warning: #includes are not sorted properly [llvm-include-order]
#include "xdiff/xtypes.h"
^        ~~~~~~~~~~~~~~~~
         "xdiff/xdiffi.h"
/datasets/git/xdiff-interface.c:11:8: warning: accessing fields in struct 'xdiff_emit_state' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct xdiff_emit_state {
       ^
/datasets/git/xdiff-interface.c:11:8: note: use "__attribute__((aligned(64)))" to align struct 'xdiff_emit_state' to 64 bytes
/datasets/git/xdiff-interface.c:25:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (priv->remainder.len)
                                ^
                                 {
/datasets/git/xdiff-interface.c:34:43: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static int consume_one(void *priv_, char *s, unsigned long size)
                                          ^
/datasets/git/xdiff-interface.c:34:46: note: inferred assignment of ID-dependent value from ID-dependent variable this_size [altera-id-dependent-backward-branch]
static int consume_one(void *priv_, char *s, unsigned long size)
                                             ^
/datasets/git/xdiff-interface.c:37:8: warning: variable 'ep' is not initialized [cppcoreguidelines-init-variables]
        char *ep;
              ^
                 = NULL
/datasets/git/xdiff-interface.c:37:8: warning: variable name 'ep' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff-interface.c:38:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (size) {
        ^
/datasets/git/xdiff-interface.c:38:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'size' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (size) {
               ^
/datasets/git/xdiff-interface.c:39:17: warning: variable 'this_size' is not initialized [cppcoreguidelines-init-variables]
                unsigned long this_size;
                              ^
                                        = 0
/datasets/git/xdiff-interface.c:40:7: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
                int ret;
                    ^
                        = 0
/datasets/git/xdiff-interface.c:44:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret)
                        ^
                         {
/datasets/git/xdiff-interface.c:52:48: warning: parameter name 'mb' is too short, expected at least 3 characters [readability-identifier-length]
static int xdiff_outf(void *priv_, mmbuffer_t *mb, int nbuf)
                                               ^
/datasets/git/xdiff-interface.c:55:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/xdiff-interface.c:55:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff-interface.c:58:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!priv->line_fn)
                           ^
                            {
/datasets/git/xdiff-interface.c:61:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < nbuf; i++) {
        ^
/datasets/git/xdiff-interface.c:62:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (stop)
                         ^
                          {
/datasets/git/xdiff-interface.c:79:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (stop)
                 ^
                  {
/datasets/git/xdiff-interface.c:85:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (stop)
                 ^
                  {
/datasets/git/xdiff-interface.c:94:40: warning: parameter name 'a' is too short, expected at least 3 characters [readability-identifier-length]
static void trim_common_tail(mmfile_t *a, mmfile_t *b)
                                       ^
/datasets/git/xdiff-interface.c:94:53: warning: parameter name 'b' is too short, expected at least 3 characters [readability-identifier-length]
static void trim_common_tail(mmfile_t *a, mmfile_t *b)
                                                    ^
/datasets/git/xdiff-interface.c:97:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        long trimmed = 0, recovered = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff-interface.c:97:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/xdiff-interface.c:98:8: warning: variable name 'ap' is too short, expected at least 3 characters [readability-identifier-length]
        char *ap = a->size ? a->ptr + a->size : a->ptr;
              ^
/datasets/git/xdiff-interface.c:99:8: warning: variable name 'bp' is too short, expected at least 3 characters [readability-identifier-length]
        char *bp = b->size ? b->ptr + b->size : b->ptr;
              ^
/datasets/git/xdiff-interface.c:102:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (blk + trimmed <= smaller && !memcmp(ap - blk, bp - blk, blk)) {
        ^
/datasets/git/xdiff-interface.c:102:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'trimmed' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (blk + trimmed <= smaller && !memcmp(ap - blk, bp - blk, blk)) {
               ^
/datasets/git/xdiff-interface.c:108:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (recovered < trimmed)
        ^
/datasets/git/xdiff-interface.c:108:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'trimmed' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (recovered < trimmed)
               ^
/datasets/git/xdiff-interface.c:108:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (recovered < trimmed)
                                   ^
                                    {
/datasets/git/xdiff-interface.c:109:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ap[recovered++] == '\n')
                                            ^
                                             {
/datasets/git/xdiff-interface.c:117:11: warning: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length]
        mmfile_t a = *mf1;
                 ^
/datasets/git/xdiff-interface.c:118:11: warning: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length]
        mmfile_t b = *mf2;
                 ^
/datasets/git/xdiff-interface.c:120:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (mf1->size > MAX_XDIFF_SIZE || mf2->size > MAX_XDIFF_SIZE)
                                                                     ^
                                                                      {
/datasets/git/xdiff-interface.c:123:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!xecfg->ctxlen && !(xecfg->flags & XDL_EMIT_FUNCCONTEXT))
                                ^
/datasets/git/xdiff-interface.c:123:41: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!xecfg->ctxlen && !(xecfg->flags & XDL_EMIT_FUNCCONTEXT))
                                               ^
/datasets/git/./xdiff/xdiff.h:54:31: note: expanded from macro 'XDL_EMIT_FUNCCONTEXT'
#define XDL_EMIT_FUNCCONTEXT (1 << 2)
                              ^
/datasets/git/xdiff-interface.c:123:63: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!xecfg->ctxlen && !(xecfg->flags & XDL_EMIT_FUNCCONTEXT))
                                                                     ^
                                                                      {
/datasets/git/xdiff-interface.c:135:6: warning: variable 'ret' is not initialized [cppcoreguidelines-init-variables]
        int ret;
            ^
                = 0
/datasets/git/xdiff-interface.c:139:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&state, 0, sizeof(state));
        ^~~~~~
/datasets/git/xdiff-interface.c:139:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&state, 0, sizeof(state));
        ^~~~~~
/datasets/git/xdiff-interface.c:143:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&ecb, 0, sizeof(ecb));
        ^~~~~~
/datasets/git/xdiff-interface.c:143:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&ecb, 0, sizeof(ecb));
        ^~~~~~
/datasets/git/xdiff-interface.c:144:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (hunk_fn)
                    ^
                     {
/datasets/git/xdiff-interface.c:156:14: warning: variable name 'st' is too short, expected at least 3 characters [readability-identifier-length]
        struct stat st;
                    ^
/datasets/git/xdiff-interface.c:157:8: warning: variable 'f' is not initialized [cppcoreguidelines-init-variables]
        FILE *f;
              ^
                = NULL
/datasets/git/xdiff-interface.c:157:8: warning: variable name 'f' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff-interface.c:158:9: warning: variable 'sz' is not initialized [cppcoreguidelines-init-variables]
        size_t sz;
               ^
                  = 0
/datasets/git/xdiff-interface.c:158:9: warning: variable name 'sz' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff-interface.c:160:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (stat(filename, &st))
                                ^
                                 {
/datasets/git/xdiff-interface.c:162:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if (!(f = fopen(filename, "rb")))
              ^
/datasets/git/xdiff-interface.c:162:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/xdiff-interface.c:162:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/xdiff-interface.c:162:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(f = fopen(filename, "rb")))
                                         ^
                                          {
/datasets/git/xdiff-interface.c:167:3: warning: the value returned by this function should be used [cert-err33-c]
                fclose(f);
                ^~~~~~~~~
/datasets/git/xdiff-interface.c:167:3: note: cast the expression to void to silence this warning
/datasets/git/xdiff-interface.c:170:2: warning: the value returned by this function should be used [cert-err33-c]
        fclose(f);
        ^~~~~~~~~
/datasets/git/xdiff-interface.c:170:2: note: cast the expression to void to silence this warning
/datasets/git/xdiff-interface.c:171:14: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'long' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        ptr->size = sz;
                    ^
/datasets/git/xdiff-interface.c:177:16: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        unsigned long size;
                      ^
                           = 0
/datasets/git/xdiff-interface.c:178:19: warning: variable 'type' is not initialized [cppcoreguidelines-init-variables]
        enum object_type type;
                         ^
/datasets/git/xdiff-interface.c:187:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ptr->ptr || type != OBJ_BLOB)
                                          ^
                                           {
/datasets/git/xdiff-interface.c:189:14: warning: narrowing conversion from 'unsigned long' to signed type 'long' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        ptr->size = size;
                    ^
/datasets/git/xdiff-interface.c:192:1: warning: replace macro with enum [modernize-macro-to-enum]
#define FIRST_FEW_BYTES 8000
^~~~~~~~
                        =
/datasets/git/xdiff-interface.c:192:9: warning: macro 'FIRST_FEW_BYTES' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define FIRST_FEW_BYTES 8000
        ^
/datasets/git/xdiff-interface.c:195:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (FIRST_FEW_BYTES < size)
                                   ^
                                    {
/datasets/git/xdiff-interface.c:200:8: warning: accessing fields in struct 'ff_regs' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct ff_regs {
       ^
/datasets/git/xdiff-interface.c:200:8: note: use "__attribute__((aligned(16)))" to align struct 'ff_regs' to 16 bytes
/datasets/git/xdiff-interface.c:202:9: warning: accessing fields in struct 'ff_reg' is inefficient due to padding; only needs 68 bytes but is using 72 bytes [altera-struct-pack-align]
        struct ff_reg {
               ^
/datasets/git/xdiff-interface.c:202:9: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'ff_reg'
/datasets/git/xdiff-interface.c:202:9: warning: accessing fields in struct 'ff_reg' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
        struct ff_reg {
               ^
/datasets/git/xdiff-interface.c:202:9: note: use "__attribute__((aligned(128)))" to align struct 'ff_reg' to 128 bytes
/datasets/git/xdiff-interface.c:213:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        int i;
        ^
/datasets/git/xdiff-interface.c:213:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/xdiff-interface.c:213:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff-interface.c:214:6: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        int result;
            ^
                   = 0
/datasets/git/xdiff-interface.c:218:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (len > 1 && line[len-2] == '\r')
                                                   ^
                                                    {
/datasets/git/xdiff-interface.c:220:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/xdiff-interface.c:224:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < regs->nr; i++) {
        ^
/datasets/git/xdiff-interface.c:224:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < regs->nr; i++) {
                    ^
/datasets/git/xdiff-interface.c:227:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (reg->negate)
                                        ^
                                         {
/datasets/git/xdiff-interface.c:232:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (regs->nr <= i)
                          ^
                           {
/datasets/git/xdiff-interface.c:237:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (result > buffer_size)
                                 ^
                                  {
/datasets/git/xdiff-interface.c:238:12: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                result = buffer_size;
                         ^
/datasets/git/xdiff-interface.c:239:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (result > 0 && (isspace(line[result - 1])))
        ^
/datasets/git/xdiff-interface.c:239:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'result' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (result > 0 && (isspace(line[result - 1])))
               ^
/datasets/git/xdiff-interface.c:239:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        while (result > 0 && (isspace(line[result - 1])))
                              ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/xdiff-interface.c:239:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (result > 0 && (isspace(line[result - 1])))
                                                         ^
                                                          {
/datasets/git/xdiff-interface.c:241:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(buffer, line, result);
        ^~~~~~
/datasets/git/xdiff-interface.c:241:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(buffer, line, result);
        ^~~~~~
/datasets/git/xdiff-interface.c:247:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/xdiff-interface.c:247:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff-interface.c:248:18: warning: variable 'regs' is not initialized [cppcoreguidelines-init-variables]
        struct ff_regs *regs;
                        ^
                             = NULL
/datasets/git/xdiff-interface.c:252:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0, regs->nr = 1; value[i]; i++)
        ^
/datasets/git/xdiff-interface.c:248:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct ff_regs *regs;
        ^
/datasets/git/xdiff-interface.c:252:28: warning: backward branch (for loop) is ID-dependent due to variable reference to 'value' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0, regs->nr = 1; value[i]; i++)
                                  ^
/datasets/git/xdiff-interface.c:252:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0, regs->nr = 1; value[i]; i++)
                                                ^
                                                 {
/datasets/git/xdiff-interface.c:253:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (value[i] == '\n')
                                     ^
                                      {
/datasets/git/xdiff-interface.c:256:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < regs->nr; i++) {
        ^
/datasets/git/xdiff-interface.c:256:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'regs' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < regs->nr; i++) {
                    ^
/datasets/git/xdiff-interface.c:258:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                const char *ep, *expression;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff-interface.c:258:15: warning: variable 'ep' is not initialized [cppcoreguidelines-init-variables]
                const char *ep, *expression;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff-interface.c:258:15: warning: variable name 'ep' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff-interface.c:258:20: warning: variable 'expression' is not initialized [cppcoreguidelines-init-variables]
                const char *ep, *expression;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff-interface.c:261:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
                            {
/datasets/git/xdiff-interface.c:266:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (reg->negate && i == regs->nr - 1)
                                                     ^
                                                      {
/datasets/git/xdiff-interface.c:268:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*value == '!')
                                  ^
                                   {
/datasets/git/xdiff-interface.c:270:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ep)
                       ^
                        {
/datasets/git/xdiff-interface.c:272:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/xdiff-interface.c:274:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (regcomp(&reg->re, expression, cflags))
                                                          ^
                                                           {
/datasets/git/xdiff-interface.c:284:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                int i;
                    ^
                      = 0
/datasets/git/xdiff-interface.c:284:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff-interface.c:287:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < regs->nr; i++)
                ^
/datasets/git/xdiff-interface.c:287:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'regs' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < regs->nr; i++)
                            ^
/datasets/git/xdiff-interface.c:287:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < regs->nr; i++)
                                              ^
                                               {
/datasets/git/xdiff-interface.c:296:45: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
unsigned long xdiff_hash_string(const char *s, size_t len, long flags)
                                            ^
/datasets/git/xdiff-interface.c:301:37: warning: parameter name 'l1' is too short, expected at least 3 characters [readability-identifier-length]
int xdiff_compare_lines(const char *l1, long s1,
                                    ^
/datasets/git/xdiff-interface.c:301:46: warning: parameter name 's1' is too short, expected at least 3 characters [readability-identifier-length]
int xdiff_compare_lines(const char *l1, long s1,
                                             ^
/datasets/git/xdiff-interface.c:302:16: warning: parameter name 'l2' is too short, expected at least 3 characters [readability-identifier-length]
                        const char *l2, long s2, long flags)
                                    ^
/datasets/git/xdiff-interface.c:302:25: warning: parameter name 's2' is too short, expected at least 3 characters [readability-identifier-length]
                        const char *l2, long s2, long flags)
                                             ^
/datasets/git/xdiff-interface.c:307:5: warning: variable 'git_xmerge_style' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]
int git_xmerge_style = -1;
    ^
/datasets/git/xdiff-interface.c:309:65: warning: parameter name 'cb' is too short, expected at least 3 characters [readability-identifier-length]
int git_xmerge_config(const char *var, const char *value, void *cb)
                                                                ^
/datasets/git/xdiff-interface.c:312:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!value)
                           ^
                            {
/datasets/git/xdiff-interface.c:314:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strcmp(value, "diff3"))
                                            ^
                                             {
/datasets/git/xdiff-interface.c:316:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(value, "zdiff3"))
                                                  ^
                                                   {
/datasets/git/xdiff-interface.c:318:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (!strcmp(value, "merge"))
                                                 ^
                                                  {
/datasets/git/xdiff-interface.c:324:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/xdiff/xdiffi.c:25:1: warning: replace macro with enum [modernize-macro-to-enum]
#define XDL_MAX_COST_MIN 256
^~~~~~~~
                         =  ,
/datasets/git/xdiff/xdiffi.c:25:9: warning: macro 'XDL_MAX_COST_MIN' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define XDL_MAX_COST_MIN 256
        ^
/datasets/git/xdiff/xdiffi.c:26:9: warning: macro 'XDL_HEUR_MIN_COST' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define XDL_HEUR_MIN_COST 256
        ^
/datasets/git/xdiff/xdiffi.c:28:1: warning: replace macro with enum [modernize-macro-to-enum]
#define XDL_SNAKE_CNT 20
^~~~~~~~
                      = ,
/datasets/git/xdiff/xdiffi.c:28:9: warning: macro 'XDL_SNAKE_CNT' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define XDL_SNAKE_CNT 20
        ^
/datasets/git/xdiff/xdiffi.c:29:9: warning: macro 'XDL_K_HEUR' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define XDL_K_HEUR 4
        ^
/datasets/git/xdiff/xdiffi.c:31:16: warning: accessing fields in struct 's_xdpsplit' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
typedef struct s_xdpsplit {
               ^
/datasets/git/xdiff/xdiffi.c:31:16: note: use "__attribute__((aligned(32)))" to align struct 's_xdpsplit' to 32 bytes
/datasets/git/xdiff/xdiffi.c:45:13: warning: function 'xdl_split' has cognitive complexity of 140 (threshold 25) [readability-function-cognitive-complexity]
static long xdl_split(unsigned long const *ha1, long off1, long lim1,
            ^
/datasets/git/xdiff/xdiffi.c:62:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (ec = 1;; ec++) {
        ^
/datasets/git/xdiff/xdiffi.c:74:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (fmin > dmin)
                ^
/datasets/git/xdiff/xdiffi.c:76:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/xdiff/xdiffi.c:78:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (fmax < dmax)
                ^
/datasets/git/xdiff/xdiffi.c:80:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/xdiff/xdiffi.c:83:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (d = fmax; d >= fmin; d -= 2) {
                ^
/datasets/git/xdiff/xdiffi.c:84:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (kvdf[d - 1] >= kvdf[d + 1])
                        ^
/datasets/git/xdiff/xdiffi.c:86:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/xdiff/xdiffi.c:90:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (; i1 < lim1 && i2 < lim2 && ha1[i1] == ha2[i2]; i1++, i2++);
                        ^
/datasets/git/xdiff/xdiffi.c:90:34: note: +1
                        for (; i1 < lim1 && i2 < lim2 && ha1[i1] == ha2[i2]; i1++, i2++);
                                                      ^
/datasets/git/xdiff/xdiffi.c:91:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (i1 - prev1 > xenv->snake_cnt)
                        ^
/datasets/git/xdiff/xdiffi.c:94:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (odd && bmin <= d && d <= bmax && kvdb[d] <= i1) {
                        ^
/datasets/git/xdiff/xdiffi.c:94:38: note: +1
                        if (odd && bmin <= d && d <= bmax && kvdb[d] <= i1) {
                                                          ^
/datasets/git/xdiff/xdiffi.c:111:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (bmin > dmin)
                ^
/datasets/git/xdiff/xdiffi.c:113:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/xdiff/xdiffi.c:115:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (bmax < dmax)
                ^
/datasets/git/xdiff/xdiffi.c:117:3: note: +1, nesting level increased to 2
                else
                ^
/datasets/git/xdiff/xdiffi.c:120:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (d = bmax; d >= bmin; d -= 2) {
                ^
/datasets/git/xdiff/xdiffi.c:121:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (kvdb[d - 1] < kvdb[d + 1])
                        ^
/datasets/git/xdiff/xdiffi.c:123:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/xdiff/xdiffi.c:127:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (; i1 > off1 && i2 > off2 && ha1[i1 - 1] == ha2[i2 - 1]; i1--, i2--);
                        ^
/datasets/git/xdiff/xdiffi.c:127:34: note: +1
                        for (; i1 > off1 && i2 > off2 && ha1[i1 - 1] == ha2[i2 - 1]; i1--, i2--);
                                                      ^
/datasets/git/xdiff/xdiffi.c:128:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (prev1 - i1 > xenv->snake_cnt)
                        ^
/datasets/git/xdiff/xdiffi.c:131:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!odd && fmin <= d && d <= fmax && i1 <= kvdf[d]) {
                        ^
/datasets/git/xdiff/xdiffi.c:131:39: note: +1
                        if (!odd && fmin <= d && d <= fmax && i1 <= kvdf[d]) {
                                                           ^
/datasets/git/xdiff/xdiffi.c:139:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (need_min)
                ^
/datasets/git/xdiff/xdiffi.c:152:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (got_snake && ec > xenv->heur_min) {
                ^
/datasets/git/xdiff/xdiffi.c:152:17: note: +1
                if (got_snake && ec > xenv->heur_min) {
                              ^
/datasets/git/xdiff/xdiffi.c:153:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (best = 0, d = fmax; d >= fmin; d -= 2) {
                        ^
/datasets/git/xdiff/xdiffi.c:154:19: note: +4, including nesting penalty of 3, nesting level increased to 4
                                dd = d > fmid ? d - fmid: fmid - d;
                                              ^
/datasets/git/xdiff/xdiffi.c:159:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (v > XDL_K_HEUR * ec && v > best &&
                                ^
/datasets/git/xdiff/xdiffi.c:161:38: note: +1
                                    off2 + xenv->snake_cnt <= i2 && i2 < lim2) {
                                                                 ^
/datasets/git/xdiff/xdiffi.c:162:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        for (k = 1; ha1[i1 - k] == ha2[i2 - k]; k++)
                                        ^
/datasets/git/xdiff/xdiffi.c:163:7: note: +6, including nesting penalty of 5, nesting level increased to 6
                                                if (k == xenv->snake_cnt) {
                                                ^
/datasets/git/xdiff/xdiffi.c:171:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (best > 0) {
                        ^
/datasets/git/xdiff/xdiffi.c:177:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (best = 0, d = bmax; d >= bmin; d -= 2) {
                        ^
/datasets/git/xdiff/xdiffi.c:178:19: note: +4, including nesting penalty of 3, nesting level increased to 4
                                dd = d > bmid ? d - bmid: bmid - d;
                                              ^
/datasets/git/xdiff/xdiffi.c:183:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (v > XDL_K_HEUR * ec && v > best &&
                                ^
/datasets/git/xdiff/xdiffi.c:185:19: note: +1
                                    off2 < i2 && i2 <= lim2 - xenv->snake_cnt) {
                                              ^
/datasets/git/xdiff/xdiffi.c:186:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        for (k = 0; ha1[i1 + k] == ha2[i2 + k]; k++)
                                        ^
/datasets/git/xdiff/xdiffi.c:187:7: note: +6, including nesting penalty of 5, nesting level increased to 6
                                                if (k == xenv->snake_cnt - 1) {
                                                ^
/datasets/git/xdiff/xdiffi.c:195:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (best > 0) {
                        ^
/datasets/git/xdiff/xdiffi.c:207:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (ec >= xenv->mxcost) {
                ^
/datasets/git/xdiff/xdiffi.c:211:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (d = fmax; d >= fmin; d -= 2) {
                        ^
/datasets/git/xdiff/xdiffi.c:212:10: note: +4, including nesting penalty of 3, nesting level increased to 4
                                i1 = XDL_MIN(kvdf[d], lim1);
                                     ^
/datasets/git/./xdiff/xmacros.h:29:34: note: expanded from macro 'XDL_MIN'
#define XDL_MIN(a, b) ((a) < (b) ? (a): (b))
                                 ^
/datasets/git/xdiff/xdiffi.c:214:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (lim2 < i2)
                                ^
/datasets/git/xdiff/xdiffi.c:216:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (fbest < i1 + i2) {
                                ^
/datasets/git/xdiff/xdiffi.c:223:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (d = bmax; d >= bmin; d -= 2) {
                        ^
/datasets/git/xdiff/xdiffi.c:224:10: note: +4, including nesting penalty of 3, nesting level increased to 4
                                i1 = XDL_MAX(off1, kvdb[d]);
                                     ^
/datasets/git/./xdiff/xmacros.h:30:34: note: expanded from macro 'XDL_MAX'
#define XDL_MAX(a, b) ((a) > (b) ? (a): (b))
                                 ^
/datasets/git/xdiff/xdiffi.c:226:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (i2 < off2)
                                ^
/datasets/git/xdiff/xdiffi.c:228:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (i1 + i2 < bbest) {
                                ^
/datasets/git/xdiff/xdiffi.c:234:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if ((lim1 + lim2) - bbest < fbest - (off1 + off2)) {
                        ^
/datasets/git/xdiff/xdiffi.c:239:6: note: +1, nesting level increased to 3
                        } else {
                          ^
/datasets/git/xdiff/xdiffi.c:49:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        long dmin = off1 - lim2, dmax = lim1 - off2;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xdiffi.c:50:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        long fmid = off1 - off2, bmid = lim1 - lim2;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xdiffi.c:51:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        long odd = (fmid - bmid) & 1;
                   ^~~~~~~~~~~~~
/datasets/git/xdiff/xdiffi.c:52:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        long fmin = fmid, fmax = fmid;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xdiffi.c:53:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        long bmin = bmid, bmax = bmid;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xdiffi.c:54:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        long ec, d, i1, i2, prev1, best, dd, v, k;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xdiffi.c:54:7: warning: variable 'ec' is not initialized [cppcoreguidelines-init-variables]
        long ec, d, i1, i2, prev1, best, dd, v, k;
             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xdiffi.c:54:7: warning: variable name 'ec' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff/xdiffi.c:54:11: warning: variable 'd' is not initialized [cppcoreguidelines-init-variables]
        long ec, d, i1, i2, prev1, best, dd, v, k;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xdiffi.c:54:11: warning: variable name 'd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff/xdiffi.c:54:14: warning: variable 'i1' is not initialized [cppcoreguidelines-init-variables]
        long ec, d, i1, i2, prev1, best, dd, v, k;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xdiffi.c:54:14: warning: variable name 'i1' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff/xdiffi.c:54:18: warning: variable 'i2' is not initialized [cppcoreguidelines-init-variables]
        long ec, d, i1, i2, prev1, best, dd, v, k;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xdiffi.c:54:18: warning: variable name 'i2' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff/xdiffi.c:54:22: warning: variable 'prev1' is not initialized [cppcoreguidelines-init-variables]
        long ec, d, i1, i2, prev1, best, dd, v, k;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xdiffi.c:54:29: warning: variable 'best' is not initialized [cppcoreguidelines-init-variables]
        long ec, d, i1, i2, prev1, best, dd, v, k;
                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xdiffi.c:54:35: warning: variable 'dd' is not initialized [cppcoreguidelines-init-variables]
        long ec, d, i1, i2, prev1, best, dd, v, k;
                                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xdiffi.c:54:35: warning: variable name 'dd' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff/xdiffi.c:54:39: warning: variable 'v' is not initialized [cppcoreguidelines-init-variables]
        long ec, d, i1, i2, prev1, best, dd, v, k;
                                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xdiffi.c:54:39: warning: variable name 'v' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff/xdiffi.c:54:42: warning: variable 'k' is not initialized [cppcoreguidelines-init-variables]
        long ec, d, i1, i2, prev1, best, dd, v, k;
                                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xdiffi.c:54:42: warning: variable name 'k' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff/xdiffi.c:74:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fmin > dmin)
                                ^
                                 {
/datasets/git/xdiff/xdiffi.c:76:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/xdiff/xdiffi.c:78:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (fmax < dmax)
                                ^
                                 {
/datasets/git/xdiff/xdiffi.c:80:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/xdiff/xdiffi.c:83:18: warning: backward branch (for loop) is ID-dependent due to variable reference to 'd' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (d = fmax; d >= fmin; d -= 2) {
                               ^
/datasets/git/xdiff/xdiffi.c:84:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (kvdf[d - 1] >= kvdf[d + 1])
                                                       ^
                                                        {
/datasets/git/xdiff/xdiffi.c:86:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/xdiff/xdiffi.c:90:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (; i1 < lim1 && i2 < lim2 && ha1[i1] == ha2[i2]; i1++, i2++);
                        ^
/datasets/git/xdiff/xdiffi.c:90:11: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i1' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (; i1 < lim1 && i2 < lim2 && ha1[i1] == ha2[i2]; i1++, i2++);
                               ^
/datasets/git/xdiff/xdiffi.c:90:68: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                        for (; i1 < lim1 && i2 < lim2 && ha1[i1] == ha2[i2]; i1++, i2++);
                                                                                        ^
                                                                                         {
/datasets/git/xdiff/xdiffi.c:54:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        long ec, d, i1, i2, prev1, best, dd, v, k;
        ^
/datasets/git/xdiff/xdiffi.c:91:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (i1 - prev1 > xenv->snake_cnt)
                                                         ^
                                                          {
/datasets/git/xdiff/xdiffi.c:111:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (bmin > dmin)
                                ^
                                 {
/datasets/git/xdiff/xdiffi.c:113:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/xdiff/xdiffi.c:115:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (bmax < dmax)
                                ^
                                 {
/datasets/git/xdiff/xdiffi.c:117:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/xdiff/xdiffi.c:120:18: warning: backward branch (for loop) is ID-dependent due to variable reference to 'd' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (d = bmax; d >= bmin; d -= 2) {
                               ^
/datasets/git/xdiff/xdiffi.c:121:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (kvdb[d - 1] < kvdb[d + 1])
                                                      ^
                                                       {
/datasets/git/xdiff/xdiffi.c:123:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/xdiff/xdiffi.c:127:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (; i1 > off1 && i2 > off2 && ha1[i1 - 1] == ha2[i2 - 1]; i1--, i2--);
                        ^
/datasets/git/xdiff/xdiffi.c:127:11: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i1' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (; i1 > off1 && i2 > off2 && ha1[i1 - 1] == ha2[i2 - 1]; i1--, i2--);
                               ^
/datasets/git/xdiff/xdiffi.c:127:76: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                        for (; i1 > off1 && i2 > off2 && ha1[i1 - 1] == ha2[i2 - 1]; i1--, i2--);
                                                                                                ^
                                                                                                 {
/datasets/git/xdiff/xdiffi.c:54:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        long ec, d, i1, i2, prev1, best, dd, v, k;
        ^
/datasets/git/xdiff/xdiffi.c:128:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (prev1 - i1 > xenv->snake_cnt)
                                                         ^
                                                          {
/datasets/git/xdiff/xdiffi.c:139:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (need_min)
                             ^
                              {
/datasets/git/xdiff/xdiffi.c:153:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'd' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (best = 0, d = fmax; d >= fmin; d -= 2) {
                                                 ^
/datasets/git/xdiff/xdiffi.c:54:2: note: inferred assignment of ID-dependent value from ID-dependent variable fmax
        long ec, d, i1, i2, prev1, best, dd, v, k;
        ^
/datasets/git/xdiff/xdiffi.c:162:6: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                        for (k = 1; ha1[i1 - k] == ha2[i2 - k]; k++)
                                        ^
/datasets/git/xdiff/xdiffi.c:162:18: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i1' and may cause performance degradation [altera-id-dependent-backward-branch]
                                        for (k = 1; ha1[i1 - k] == ha2[i2 - k]; k++)
                                                    ^
/datasets/git/xdiff/xdiffi.c:162:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        for (k = 1; ha1[i1 - k] == ha2[i2 - k]; k++)
                                                                                    ^
                                                                                     {
/datasets/git/xdiff/xdiffi.c:177:29: warning: backward branch (for loop) is ID-dependent due to variable reference to 'd' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (best = 0, d = bmax; d >= bmin; d -= 2) {
                                                 ^
/datasets/git/xdiff/xdiffi.c:186:6: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                        for (k = 0; ha1[i1 + k] == ha2[i2 + k]; k++)
                                        ^
/datasets/git/xdiff/xdiffi.c:186:18: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i1' and may cause performance degradation [altera-id-dependent-backward-branch]
                                        for (k = 0; ha1[i1 + k] == ha2[i2 + k]; k++)
                                                    ^
/datasets/git/xdiff/xdiffi.c:186:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        for (k = 0; ha1[i1 + k] == ha2[i2 + k]; k++)
                                                                                    ^
                                                                                     {
/datasets/git/xdiff/xdiffi.c:208:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        long fbest, fbest1, bbest, bbest1;
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xdiffi.c:54:2: note: inferred assignment of ID-dependent value from ID-dependent variable fmax [altera-id-dependent-backward-branch]
        long ec, d, i1, i2, prev1, best, dd, v, k;
        ^
/datasets/git/xdiff/xdiffi.c:208:9: warning: variable 'fbest' is not initialized [cppcoreguidelines-init-variables]
                        long fbest, fbest1, bbest, bbest1;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xdiffi.c:208:16: warning: variable 'fbest1' is not initialized [cppcoreguidelines-init-variables]
                        long fbest, fbest1, bbest, bbest1;
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xdiffi.c:208:24: warning: variable 'bbest' is not initialized [cppcoreguidelines-init-variables]
                        long fbest, fbest1, bbest, bbest1;
                                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xdiffi.c:208:31: warning: variable 'bbest1' is not initialized [cppcoreguidelines-init-variables]
                        long fbest, fbest1, bbest, bbest1;
                                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xdiffi.c:211:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (d = fmax; d >= fmin; d -= 2) {
                        ^
/datasets/git/xdiff/xdiffi.c:54:2: note: inferred assignment of ID-dependent value from ID-dependent variable fmax [altera-id-dependent-backward-branch]
        long ec, d, i1, i2, prev1, best, dd, v, k;
        ^
/datasets/git/xdiff/xdiffi.c:211:19: warning: backward branch (for loop) is ID-dependent due to variable reference to 'd' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (d = fmax; d >= fmin; d -= 2) {
                                       ^
/datasets/git/xdiff/xdiffi.c:214:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (lim2 < i2)
                                              ^
                                               {
/datasets/git/xdiff/xdiffi.c:223:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (d = bmax; d >= bmin; d -= 2) {
                        ^
/datasets/git/xdiff/xdiffi.c:223:19: warning: backward branch (for loop) is ID-dependent due to variable reference to 'd' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (d = bmax; d >= bmin; d -= 2) {
                                       ^
/datasets/git/xdiff/xdiffi.c:226:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (i2 < off2)
                                              ^
                                               {
/datasets/git/xdiff/xdiffi.c:256:5: warning: function 'xdl_recs_cmp' is within a recursive call chain [misc-no-recursion]
int xdl_recs_cmp(diffdata_t *dd1, long off1, long lim1,
    ^
/datasets/git/xdiff/xdiffi.c:256:5: note: example recursive call chain, starting from function 'xdl_recs_cmp'
/datasets/git/xdiff/xdiffi.c:299:7: note: Frame #1: function 'xdl_recs_cmp' calls function 'xdl_recs_cmp' here:
                if (xdl_recs_cmp(dd1, off1, spl.i1, dd2, off2, spl.i2,
                    ^
/datasets/git/xdiff/xdiffi.c:299:7: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/xdiff/xdiffi.c:259:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned long const *ha1 = dd1->ha, *ha2 = dd2->ha;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xdiffi.c:264:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; off1 < lim1 && off2 < lim2 && ha1[off1] == ha2[off2]; off1++, off2++);
        ^
/datasets/git/xdiff/xdiffi.c:264:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ha1' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; off1 < lim1 && off2 < lim2 && ha1[off1] == ha2[off2]; off1++, off2++);
               ^
/datasets/git/xdiff/xdiffi.c:264:78: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
        for (; off1 < lim1 && off2 < lim2 && ha1[off1] == ha2[off2]; off1++, off2++);
                                                                                    ^
                                                                                     {
/datasets/git/xdiff/xdiffi.c:259:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        unsigned long const *ha1 = dd1->ha, *ha2 = dd2->ha;
        ^
/datasets/git/xdiff/xdiffi.c:265:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; off1 < lim1 && off2 < lim2 && ha1[lim1 - 1] == ha2[lim2 - 1]; lim1--, lim2--);
        ^
/datasets/git/xdiff/xdiffi.c:265:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ha1' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; off1 < lim1 && off2 < lim2 && ha1[lim1 - 1] == ha2[lim2 - 1]; lim1--, lim2--);
               ^
/datasets/git/xdiff/xdiffi.c:265:86: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
        for (; off1 < lim1 && off2 < lim2 && ha1[lim1 - 1] == ha2[lim2 - 1]; lim1--, lim2--);
                                                                                            ^
                                                                                             {
/datasets/git/xdiff/xdiffi.c:259:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        unsigned long const *ha1 = dd1->ha, *ha2 = dd2->ha;
        ^
/datasets/git/xdiff/xdiffi.c:275:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (; off2 < lim2; off2++)
                ^
/datasets/git/xdiff/xdiffi.c:275:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (; off2 < lim2; off2++)
                                           ^
                                            {
/datasets/git/xdiff/xdiffi.c:281:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (; off1 < lim1; off1++)
                ^
/datasets/git/xdiff/xdiffi.c:281:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (; off1 < lim1; off1++)
                                           ^
                                            {
/datasets/git/xdiff/xdiffi.c:313:13: warning: parameter name 'xe' is too short, expected at least 3 characters [readability-identifier-length]
                xdfenv_t *xe) {
                          ^
/datasets/git/xdiff/xdiffi.c:314:7: warning: variable 'ndiags' is not initialized [cppcoreguidelines-init-variables]
        long ndiags;
             ^
                    = 0
/datasets/git/xdiff/xdiffi.c:315:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        long *kvd, *kvdf, *kvdb;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xdiffi.c:315:8: warning: variable 'kvd' is not initialized [cppcoreguidelines-init-variables]
        long *kvd, *kvdf, *kvdb;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xdiffi.c:315:14: warning: variable 'kvdf' is not initialized [cppcoreguidelines-init-variables]
        long *kvd, *kvdf, *kvdb;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xdiffi.c:315:21: warning: variable 'kvdb' is not initialized [cppcoreguidelines-init-variables]
        long *kvd, *kvdf, *kvdb;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xdiffi.c:317:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        diffdata_t dd1, dd2;
        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xdiffi.c:318:6: warning: variable 'res' is not initialized [cppcoreguidelines-init-variables]
        int res;
            ^
                = 0
/datasets/git/xdiff/xdiffi.c:320:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (xdl_prepare_env(mf1, mf2, xpp, xe) < 0)
                                                   ^
                                                    {
/datasets/git/xdiff/xdiffi.c:323:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (XDF_DIFF_ALG(xpp->flags) == XDF_PATIENCE_DIFF) {
            ^
/datasets/git/./xdiff/xdiff.h:47:26: note: expanded from macro 'XDF_DIFF_ALG'
#define XDF_DIFF_ALG(x) ((x) & XDF_DIFF_ALGORITHM_MASK)
                         ^     ~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xdiffi.c:323:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (XDF_DIFF_ALG(xpp->flags) == XDF_PATIENCE_DIFF) {
                                        ^
/datasets/git/./xdiff/xdiff.h:44:28: note: expanded from macro 'XDF_PATIENCE_DIFF'
#define XDF_PATIENCE_DIFF (1 << 14)
                           ^
/datasets/git/xdiff/xdiffi.c:328:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (XDF_DIFF_ALG(xpp->flags) == XDF_HISTOGRAM_DIFF) {
            ^
/datasets/git/./xdiff/xdiff.h:47:26: note: expanded from macro 'XDF_DIFF_ALG'
#define XDF_DIFF_ALG(x) ((x) & XDF_DIFF_ALGORITHM_MASK)
                         ^     ~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xdiffi.c:328:34: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (XDF_DIFF_ALG(xpp->flags) == XDF_HISTOGRAM_DIFF) {
                                        ^
/datasets/git/./xdiff/xdiff.h:45:29: note: expanded from macro 'XDF_HISTOGRAM_DIFF'
#define XDF_HISTOGRAM_DIFF (1 << 15)
                            ^
/datasets/git/xdiff/xdiffi.c:340:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if (!XDL_ALLOC_ARRAY(kvd, 2 * ndiags + 2)) {
             ^
/datasets/git/./xdiff/xmacros.h:54:3: note: expanded from macro 'XDL_ALLOC_ARRAY'
        ((p) = SIZE_MAX / sizeof(*(p)) >= (size_t)(nr)  \
         ^
/datasets/git/xdiff/xdiffi.c:340:7: note: if it should be an assignment, move it out of the 'if' condition
        if (!XDL_ALLOC_ARRAY(kvd, 2 * ndiags + 2)) {
             ^
/datasets/git/./xdiff/xmacros.h:54:3: note: expanded from macro 'XDL_ALLOC_ARRAY'
        ((p) = SIZE_MAX / sizeof(*(p)) >= (size_t)(nr)  \
         ^
/datasets/git/xdiff/xdiffi.c:340:7: note: if it is meant to be an equality check, change '=' to '=='
        if (!XDL_ALLOC_ARRAY(kvd, 2 * ndiags + 2)) {
             ^
/datasets/git/./xdiff/xmacros.h:54:3: note: expanded from macro 'XDL_ALLOC_ARRAY'
        ((p) = SIZE_MAX / sizeof(*(p)) >= (size_t)(nr)  \
         ^
/datasets/git/xdiff/xdiffi.c:351:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (xenv.mxcost < XDL_MAX_COST_MIN)
                                           ^
                                            {
/datasets/git/xdiff/xdiffi.c:366:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                           kvdf, kvdb, (xpp->flags & XDF_NEED_MINIMAL) != 0,
                                        ^
/datasets/git/xdiff/xdiffi.c:366:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                           kvdf, kvdb, (xpp->flags & XDF_NEED_MINIMAL) != 0,
                                                     ^
/datasets/git/./xdiff/xdiff.h:31:27: note: expanded from macro 'XDF_NEED_MINIMAL'
#define XDF_NEED_MINIMAL (1 << 0)
                          ^
/datasets/git/xdiff/xdiffi.c:370:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (res < 0)
                    ^
                     {
/datasets/git/xdiff/xdiffi.c:377:58: warning: parameter name 'i1' is too short, expected at least 3 characters [readability-identifier-length]
static xdchange_t *xdl_add_change(xdchange_t *xscr, long i1, long i2, long chg1, long chg2) {
                                                         ^
/datasets/git/xdiff/xdiffi.c:377:62: warning: 2 adjacent parameters of 'xdl_add_change' of similar type ('long') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static xdchange_t *xdl_add_change(xdchange_t *xscr, long i1, long i2, long chg1, long chg2) {
                                                             ^~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xdiffi.c:377:67: note: the first parameter in the range is 'i2'
static xdchange_t *xdl_add_change(xdchange_t *xscr, long i1, long i2, long chg1, long chg2) {
                                                                  ^~
/datasets/git/xdiff/xdiffi.c:377:76: note: the last parameter in the range is 'chg1'
static xdchange_t *xdl_add_change(xdchange_t *xscr, long i1, long i2, long chg1, long chg2) {
                                                                           ^~~~
/datasets/git/xdiff/xdiffi.c:377:67: warning: parameter name 'i2' is too short, expected at least 3 characters [readability-identifier-length]
static xdchange_t *xdl_add_change(xdchange_t *xscr, long i1, long i2, long chg1, long chg2) {
                                                                  ^
/datasets/git/xdiff/xdiffi.c:378:14: warning: variable 'xch' is not initialized [cppcoreguidelines-init-variables]
        xdchange_t *xch;
                    ^
                        = NULL
/datasets/git/xdiff/xdiffi.c:380:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if (!(xch = (xdchange_t *) xdl_malloc(sizeof(xdchange_t))))
              ^
/datasets/git/xdiff/xdiffi.c:380:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/xdiff/xdiffi.c:380:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/xdiff/xdiffi.c:380:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(xch = (xdchange_t *) xdl_malloc(sizeof(xdchange_t))))
                                                                   ^
                                                                    {
/datasets/git/xdiff/xdiffi.c:405:1: warning: replace macro with enum [modernize-macro-to-enum]
#define MAX_INDENT 200
^~~~~~~~
                   =
/datasets/git/xdiff/xdiffi.c:405:9: warning: macro 'MAX_INDENT' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define MAX_INDENT 200
        ^
/datasets/git/xdiff/xdiffi.c:414:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        long i;
             ^
               = 0
/datasets/git/xdiff/xdiffi.c:414:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff/xdiffi.c:417:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < rec->size; i++) {
        ^
/datasets/git/xdiff/xdiffi.c:418:8: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
                char c = rec->ptr[i];
                     ^
/datasets/git/xdiff/xdiffi.c:420:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!XDL_ISSPACE(c))
                     ^
/datasets/git/./xdiff/xmacros.h:33:25: note: expanded from macro 'XDL_ISSPACE'
#define XDL_ISSPACE(c) (isspace((unsigned char)(c)))
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/xdiff/xdiffi.c:420:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!XDL_ISSPACE(c))
                                    ^
                                     {
/datasets/git/xdiff/xdiffi.c:422:3: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
                else if (c == ' ')
                ^~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xdiffi.c:422:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (c == ' ')
                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xdiffi.c:424:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (c == '\t')
                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xdiffi.c:425:11: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        ret += 8 - ret % 8;
                               ^
/datasets/git/xdiff/xdiffi.c:425:21: warning: 8 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                        ret += 8 - ret % 8;
                                         ^
/datasets/git/xdiff/xdiffi.c:428:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (ret >= MAX_INDENT)
                                      ^
                                       {
/datasets/git/xdiff/xdiffi.c:441:1: warning: replace macro with enum [modernize-macro-to-enum]
#define MAX_BLANKS 20
^~~~~~~~
                   =
/datasets/git/xdiff/xdiffi.c:441:9: warning: macro 'MAX_BLANKS' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define MAX_BLANKS 20
        ^
/datasets/git/xdiff/xdiffi.c:444:8: warning: accessing fields in struct 'split_measurement' is inefficient due to poor alignment; currently aligned to 4 bytes, but recommended alignment is 32 bytes [altera-struct-pack-align]
struct split_measurement {
       ^
/datasets/git/xdiff/xdiffi.c:444:8: note: use "__attribute__((aligned(32)))" to align struct 'split_measurement' to 32 bytes
/datasets/git/xdiff/xdiffi.c:479:8: warning: accessing fields in struct 'split_score' is inefficient due to poor alignment; currently aligned to 4 bytes, but recommended alignment is 8 bytes [altera-struct-pack-align]
struct split_score {
       ^
/datasets/git/xdiff/xdiffi.c:479:8: note: use "__attribute__((aligned(8)))" to align struct 'split_score' to 8 bytes
/datasets/git/xdiff/xdiffi.c:491:32: warning: parameter name 'm' is too short, expected at least 3 characters [readability-identifier-length]
                          struct split_measurement *m)
                                                    ^
/datasets/git/xdiff/xdiffi.c:493:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        long i;
        ^
/datasets/git/xdiff/xdiffi.c:493:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        long i;
             ^
               = 0
/datasets/git/xdiff/xdiffi.c:493:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff/xdiffi.c:505:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = split - 1; i >= 0; i--) {
        ^
/datasets/git/xdiff/xdiffi.c:493:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        long i;
        ^
/datasets/git/xdiff/xdiffi.c:505:22: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = split - 1; i >= 0; i--) {
                            ^
/datasets/git/xdiff/xdiffi.c:507:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (m->pre_indent != -1)
                                        ^
                                         {
/datasets/git/xdiff/xdiffi.c:518:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = split + 1; i < xdf->nrec; i++) {
        ^
/datasets/git/xdiff/xdiffi.c:518:22: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = split + 1; i < xdf->nrec; i++) {
                            ^
/datasets/git/xdiff/xdiffi.c:520:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (m->post_indent != -1)
                                         ^
                                          {
/datasets/git/xdiff/xdiffi.c:543:1: warning: replace macro with enum [modernize-macro-to-enum]
#define START_OF_FILE_PENALTY 1
^~~~~~~~
                              =
/datasets/git/xdiff/xdiffi.c:543:9: warning: macro 'START_OF_FILE_PENALTY' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define START_OF_FILE_PENALTY 1
        ^
/datasets/git/xdiff/xdiffi.c:546:1: warning: replace macro with enum [modernize-macro-to-enum]
#define END_OF_FILE_PENALTY 21
^~~~~~~~
                            =
/datasets/git/xdiff/xdiffi.c:546:9: warning: macro 'END_OF_FILE_PENALTY' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define END_OF_FILE_PENALTY 21
        ^
/datasets/git/xdiff/xdiffi.c:549:1: warning: replace macro with enum [modernize-macro-to-enum]
#define TOTAL_BLANK_WEIGHT (-30)
^~~~~~~~
                           =
/datasets/git/xdiff/xdiffi.c:549:9: warning: macro 'TOTAL_BLANK_WEIGHT' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define TOTAL_BLANK_WEIGHT (-30)
        ^
/datasets/git/xdiff/xdiffi.c:552:1: warning: replace macro with enum [modernize-macro-to-enum]
#define POST_BLANK_WEIGHT 6
^~~~~~~~
                          =
/datasets/git/xdiff/xdiffi.c:552:9: warning: macro 'POST_BLANK_WEIGHT' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define POST_BLANK_WEIGHT 6
        ^
/datasets/git/xdiff/xdiffi.c:557:1: warning: replace macro with enum [modernize-macro-to-enum]
#define RELATIVE_INDENT_PENALTY (-4)
^~~~~~~~
                                =   ,
/datasets/git/xdiff/xdiffi.c:557:9: warning: macro 'RELATIVE_INDENT_PENALTY' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define RELATIVE_INDENT_PENALTY (-4)
        ^
/datasets/git/xdiff/xdiffi.c:558:9: warning: macro 'RELATIVE_INDENT_WITH_BLANK_PENALTY' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define RELATIVE_INDENT_WITH_BLANK_PENALTY 10
        ^
/datasets/git/xdiff/xdiffi.c:564:1: warning: replace macro with enum [modernize-macro-to-enum]
#define RELATIVE_OUTDENT_PENALTY 24
^~~~~~~~
                                 = ,
/datasets/git/xdiff/xdiffi.c:564:9: warning: macro 'RELATIVE_OUTDENT_PENALTY' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define RELATIVE_OUTDENT_PENALTY 24
        ^
/datasets/git/xdiff/xdiffi.c:565:9: warning: macro 'RELATIVE_OUTDENT_WITH_BLANK_PENALTY' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define RELATIVE_OUTDENT_WITH_BLANK_PENALTY 17
        ^
/datasets/git/xdiff/xdiffi.c:571:1: warning: replace macro with enum [modernize-macro-to-enum]
#define RELATIVE_DEDENT_PENALTY 23
^~~~~~~~
                                = ,
/datasets/git/xdiff/xdiffi.c:571:9: warning: macro 'RELATIVE_DEDENT_PENALTY' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define RELATIVE_DEDENT_PENALTY 23
        ^
/datasets/git/xdiff/xdiffi.c:572:9: warning: macro 'RELATIVE_DEDENT_WITH_BLANK_PENALTY' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define RELATIVE_DEDENT_WITH_BLANK_PENALTY 17
        ^
/datasets/git/xdiff/xdiffi.c:580:1: warning: replace macro with enum [modernize-macro-to-enum]
#define INDENT_WEIGHT 60
^~~~~~~~
                      =
/datasets/git/xdiff/xdiffi.c:580:9: warning: macro 'INDENT_WEIGHT' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define INDENT_WEIGHT 60
        ^
/datasets/git/xdiff/xdiffi.c:585:1: warning: replace macro with enum [modernize-macro-to-enum]
#define INDENT_HEURISTIC_MAX_SLIDING 100
^~~~~~~~
                                     =
/datasets/git/xdiff/xdiffi.c:585:9: warning: macro 'INDENT_HEURISTIC_MAX_SLIDING' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define INDENT_HEURISTIC_MAX_SLIDING 100
        ^
/datasets/git/xdiff/xdiffi.c:597:61: warning: parameter name 'm' is too short, expected at least 3 characters [readability-identifier-length]
static void score_add_split(const struct split_measurement *m, struct split_score *s)
                                                            ^
/datasets/git/xdiff/xdiffi.c:597:84: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void score_add_split(const struct split_measurement *m, struct split_score *s)
                                                                                   ^
/datasets/git/xdiff/xdiffi.c:603:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int post_blank, total_blank, indent, any_blanks;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xdiffi.c:603:6: warning: variable 'post_blank' is not initialized [cppcoreguidelines-init-variables]
        int post_blank, total_blank, indent, any_blanks;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xdiffi.c:603:18: warning: variable 'total_blank' is not initialized [cppcoreguidelines-init-variables]
        int post_blank, total_blank, indent, any_blanks;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xdiffi.c:603:31: warning: variable 'indent' is not initialized [cppcoreguidelines-init-variables]
        int post_blank, total_blank, indent, any_blanks;
                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xdiffi.c:603:39: warning: variable 'any_blanks' is not initialized [cppcoreguidelines-init-variables]
        int post_blank, total_blank, indent, any_blanks;
                                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xdiffi.c:605:47: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (m->pre_indent == -1 && m->pre_blank == 0)
                                                     ^
                                                      {
/datasets/git/xdiff/xdiffi.c:608:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (m->end_of_file)
                           ^
                            {
/datasets/git/xdiff/xdiffi.c:622:22: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (m->indent != -1)
                            ^
                             {
/datasets/git/xdiff/xdiffi.c:624:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/xdiff/xdiffi.c:632:20: warning: repeated branch in conditional chain [bugprone-branch-clone]
        if (indent == -1) {
                          ^
/datasets/git/xdiff/xdiffi.c:634:3: note: end of the original
        } else if (m->pre_indent == -1) {
         ^
/datasets/git/xdiff/xdiffi.c:634:34: note: clone 1 starts here
        } else if (m->pre_indent == -1) {
                                        ^
/datasets/git/xdiff/xdiffi.c:643:38: note: clone 2 starts here
        } else if (indent == m->pre_indent) {
                                            ^
/datasets/git/xdiff/xdiffi.c:675:42: warning: parameter name 's1' is too short, expected at least 3 characters [readability-identifier-length]
static int score_cmp(struct split_score *s1, struct split_score *s2)
                                         ^
/datasets/git/xdiff/xdiffi.c:675:66: warning: parameter name 's2' is too short, expected at least 3 characters [readability-identifier-length]
static int score_cmp(struct split_score *s1, struct split_score *s2)
                                                                 ^
/datasets/git/xdiff/xdiffi.c:699:8: warning: accessing fields in struct 'xdlgroup' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct xdlgroup {
       ^
/datasets/git/xdiff/xdiffi.c:699:8: note: use "__attribute__((aligned(16)))" to align struct 'xdlgroup' to 16 bytes
/datasets/git/xdiff/xdiffi.c:716:56: warning: parameter name 'g' is too short, expected at least 3 characters [readability-identifier-length]
static void group_init(xdfile_t *xdf, struct xdlgroup *g)
                                                       ^
/datasets/git/xdiff/xdiffi.c:719:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (xdf->rchg[g->end])
        ^
/datasets/git/xdiff/xdiffi.c:719:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (xdf->rchg[g->end])
                                 ^
                                  {
/datasets/git/xdiff/xdiffi.c:727:62: warning: parameter name 'g' is too short, expected at least 3 characters [readability-identifier-length]
static inline int group_next(xdfile_t *xdf, struct xdlgroup *g)
                                                             ^
/datasets/git/xdiff/xdiffi.c:729:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (g->end == xdf->nrec)
                                ^
                                 {
/datasets/git/xdiff/xdiffi.c:733:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (g->end = g->start; xdf->rchg[g->end]; g->end++)
        ^
/datasets/git/xdiff/xdiffi.c:733:26: warning: backward branch (for loop) is ID-dependent due to member reference to 'end' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (g->end = g->start; xdf->rchg[g->end]; g->end++)
                                ^
/datasets/git/xdiff/xdiffi.c:733:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (g->end = g->start; xdf->rchg[g->end]; g->end++)
                                                            ^
                                                             {
/datasets/git/xdiff/xdiffi.c:743:66: warning: parameter name 'g' is too short, expected at least 3 characters [readability-identifier-length]
static inline int group_previous(xdfile_t *xdf, struct xdlgroup *g)
                                                                 ^
/datasets/git/xdiff/xdiffi.c:745:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (g->start == 0)
                          ^
                           {
/datasets/git/xdiff/xdiffi.c:749:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (g->start = g->end; xdf->rchg[g->start - 1]; g->start--)
        ^
/datasets/git/xdiff/xdiffi.c:749:26: warning: backward branch (for loop) is ID-dependent due to member reference to 'start' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (g->start = g->end; xdf->rchg[g->start - 1]; g->start--)
                                ^
/datasets/git/xdiff/xdiffi.c:749:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (g->start = g->end; xdf->rchg[g->start - 1]; g->start--)
                                                                    ^
                                                                     {
/datasets/git/xdiff/xdiffi.c:760:61: warning: parameter name 'g' is too short, expected at least 3 characters [readability-identifier-length]
static int group_slide_down(xdfile_t *xdf, struct xdlgroup *g)
                                                            ^
/datasets/git/xdiff/xdiffi.c:767:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (xdf->rchg[g->end])
                ^
/datasets/git/xdiff/xdiffi.c:767:10: warning: backward branch (while loop) is ID-dependent due to member reference to 'end' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (xdf->rchg[g->end])
                       ^
/datasets/git/xdiff/xdiffi.c:767:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (xdf->rchg[g->end])
                                         ^
                                          {
/datasets/git/xdiff/xdiffi.c:771:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else {
          ^~~~~~
/datasets/git/xdiff/xdiffi.c:781:59: warning: parameter name 'g' is too short, expected at least 3 characters [readability-identifier-length]
static int group_slide_up(xdfile_t *xdf, struct xdlgroup *g)
                                                          ^
/datasets/git/xdiff/xdiffi.c:788:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (xdf->rchg[g->start - 1])
                ^
/datasets/git/xdiff/xdiffi.c:788:10: warning: backward branch (while loop) is ID-dependent due to member reference to 'start' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (xdf->rchg[g->start - 1])
                       ^
/datasets/git/xdiff/xdiffi.c:788:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (xdf->rchg[g->start - 1])
                                               ^
                                                {
/datasets/git/xdiff/xdiffi.c:792:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else {
          ^~~~~~
/datasets/git/xdiff/xdiffi.c:802:5: warning: function 'xdl_change_compact' has cognitive complexity of 75 (threshold 25) [readability-function-cognitive-complexity]
int xdl_change_compact(xdfile_t *xdf, xdfile_t *xdfo, long flags) {
    ^
/datasets/git/xdiff/xdiffi.c:810:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (1) {
        ^
/datasets/git/xdiff/xdiffi.c:814:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (g.end == g.start)
                ^
/datasets/git/xdiff/xdiffi.c:822:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                do {
                ^
/datasets/git/xdiff/xdiffi.c:834:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (!group_slide_up(xdf, &g))
                        ^
/datasets/git/xdiff/xdiffi.c:835:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (group_previous(xdfo, &go))
                                ^
/datasets/git/xdiff/xdiffi.c:844:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (go.end > go.start)
                        ^
/datasets/git/xdiff/xdiffi.c:848:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (1) {
                        ^
/datasets/git/xdiff/xdiffi.c:849:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (group_slide_down(xdf, &g))
                                ^
/datasets/git/xdiff/xdiffi.c:851:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (group_next(xdfo, &go))
                                ^
/datasets/git/xdiff/xdiffi.c:854:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (go.end > go.start)
                                ^
/datasets/git/xdiff/xdiffi.c:867:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (g.end == earliest_end) {
                ^
/datasets/git/xdiff/xdiffi.c:869:10: note: +1, nesting level increased to 2
                } else if (end_matching_other != -1) {
                       ^
/datasets/git/xdiff/xdiffi.c:875:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (go.end == go.start) {
                        ^
/datasets/git/xdiff/xdiffi.c:876:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (group_slide_up(xdf, &g))
                                ^
/datasets/git/xdiff/xdiffi.c:878:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (group_previous(xdfo, &go))
                                ^
/datasets/git/xdiff/xdiffi.c:881:10: note: +1, nesting level increased to 2
                } else if (flags & XDF_INDENT_HEURISTIC) {
                       ^
/datasets/git/xdiff/xdiffi.c:898:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (g.end - groupsize - 1 > shift)
                        ^
/datasets/git/xdiff/xdiffi.c:900:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (g.end - INDENT_HEURISTIC_MAX_SLIDING > shift)
                        ^
/datasets/git/xdiff/xdiffi.c:902:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (; shift <= g.end; shift++) {
                        ^
/datasets/git/xdiff/xdiffi.c:910:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (best_shift == -1 ||
                                ^
/datasets/git/xdiff/xdiffi.c:910:26: note: +1
                                if (best_shift == -1 ||
                                                     ^
/datasets/git/xdiff/xdiffi.c:918:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (g.end > best_shift) {
                        ^
/datasets/git/xdiff/xdiffi.c:919:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (group_slide_up(xdf, &g))
                                ^
/datasets/git/xdiff/xdiffi.c:921:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (group_previous(xdfo, &go))
                                ^
/datasets/git/xdiff/xdiffi.c:928:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (group_next(xdf, &g))
                ^
/datasets/git/xdiff/xdiffi.c:930:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (group_next(xdfo, &go))
                ^
/datasets/git/xdiff/xdiffi.c:934:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!group_next(xdfo, &go))
        ^
/datasets/git/xdiff/xdiffi.c:803:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct xdlgroup g, go;
        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xdiffi.c:803:18: warning: variable name 'g' is too short, expected at least 3 characters [readability-identifier-length]
        struct xdlgroup g, go;
                        ^
/datasets/git/xdiff/xdiffi.c:803:21: warning: variable name 'go' is too short, expected at least 3 characters [readability-identifier-length]
        struct xdlgroup g, go;
                           ^
/datasets/git/xdiff/xdiffi.c:804:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        long earliest_end, end_matching_other;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xdiffi.c:804:7: warning: variable 'earliest_end' is not initialized [cppcoreguidelines-init-variables]
        long earliest_end, end_matching_other;
             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xdiffi.c:804:21: warning: variable 'end_matching_other' is not initialized [cppcoreguidelines-init-variables]
        long earliest_end, end_matching_other;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xdiffi.c:805:7: warning: variable 'groupsize' is not initialized [cppcoreguidelines-init-variables]
        long groupsize;
             ^
                       = 0
/datasets/git/xdiff/xdiffi.c:814:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (g.end == g.start)
                                     ^
                                      {
/datasets/git/xdiff/xdiffi.c:834:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (!group_slide_up(xdf, &g))
                        ^
/datasets/git/xdiff/xdiffi.c:834:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        while (!group_slide_up(xdf, &g))
                                                        ^
                                                         {
/datasets/git/xdiff/xdiffi.c:835:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (group_previous(xdfo, &go))
                                                              ^
                                                               {
/datasets/git/xdiff/xdiffi.c:844:26: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (go.end > go.start)
                                              ^
                                               {
/datasets/git/xdiff/xdiffi.c:848:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (1) {
                        ^
/datasets/git/xdiff/xdiffi.c:849:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (group_slide_down(xdf, &g))
                                                              ^
                                                               {
/datasets/git/xdiff/xdiffi.c:851:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (group_next(xdfo, &go))
                                                          ^
                                                           {
/datasets/git/xdiff/xdiffi.c:854:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (go.end > go.start)
                                                      ^
                                                       {
/datasets/git/xdiff/xdiffi.c:857:12: warning: backward branch (do loop) is ID-dependent due to variable reference to 'groupsize' and may cause performance degradation [altera-id-dependent-backward-branch]
                } while (groupsize != g.end - g.start);
                         ^
/datasets/git/xdiff/xdiffi.c:875:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (go.end == go.start) {
                        ^
/datasets/git/xdiff/xdiffi.c:875:11: warning: backward branch (while loop) is ID-dependent due to member reference to 'end' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (go.end == go.start) {
                               ^
/datasets/git/xdiff/xdiffi.c:876:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (group_slide_up(xdf, &g))
                                                            ^
                                                             {
/datasets/git/xdiff/xdiffi.c:878:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (group_previous(xdfo, &go))
                                                              ^
                                                               {
/datasets/git/xdiff/xdiffi.c:881:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                } else if (flags & XDF_INDENT_HEURISTIC) {
                           ^~~~~
/datasets/git/xdiff/xdiffi.c:881:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                } else if (flags & XDF_INDENT_HEURISTIC) {
                                   ^
/datasets/git/./xdiff/xdiff.h:49:31: note: expanded from macro 'XDF_INDENT_HEURISTIC'
#define XDF_INDENT_HEURISTIC (1 << 23)
                              ^
/datasets/git/xdiff/xdiffi.c:894:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        long shift, best_shift = -1;
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xdiffi.c:894:9: warning: variable 'shift' is not initialized [cppcoreguidelines-init-variables]
                        long shift, best_shift = -1;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xdiffi.c:898:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (g.end - groupsize - 1 > shift)
                                                          ^
                                                           {
/datasets/git/xdiff/xdiffi.c:900:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (g.end - INDENT_HEURISTIC_MAX_SLIDING > shift)
                                                                         ^
                                                                          {
/datasets/git/xdiff/xdiffi.c:902:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (; shift <= g.end; shift++) {
                        ^
/datasets/git/xdiff/xdiffi.c:894:4: note: inferred assignment of ID-dependent value from ID-dependent variable shift [altera-id-dependent-backward-branch]
                        long shift, best_shift = -1;
                        ^
/datasets/git/xdiff/xdiffi.c:902:11: warning: backward branch (for loop) is ID-dependent due to variable reference to 'shift' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (; shift <= g.end; shift++) {
                               ^
/datasets/git/xdiff/xdiffi.c:903:30: warning: variable name 'm' is too short, expected at least 3 characters [readability-identifier-length]
                                struct split_measurement m;
                                                         ^
/datasets/git/xdiff/xdiffi.c:918:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (g.end > best_shift) {
                        ^
/datasets/git/xdiff/xdiffi.c:918:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'best_shift' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (g.end > best_shift) {
                               ^
/datasets/git/xdiff/xdiffi.c:919:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (group_slide_up(xdf, &g))
                                                            ^
                                                             {
/datasets/git/xdiff/xdiffi.c:921:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (group_previous(xdfo, &go))
                                                              ^
                                                               {
/datasets/git/xdiff/xdiffi.c:928:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (group_next(xdf, &g))
                                        ^
                                         {
/datasets/git/xdiff/xdiffi.c:930:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (group_next(xdfo, &go))
                                          ^
                                           {
/datasets/git/xdiff/xdiffi.c:934:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!group_next(xdfo, &go))
                                   ^
                                    {
/datasets/git/xdiff/xdiffi.c:941:32: warning: parameter name 'xe' is too short, expected at least 3 characters [readability-identifier-length]
int xdl_build_script(xdfenv_t *xe, xdchange_t **xscr) {
                               ^
/datasets/git/xdiff/xdiffi.c:942:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        xdchange_t *cscr = NULL, *xch;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xdiffi.c:942:28: warning: variable 'xch' is not initialized [cppcoreguidelines-init-variables]
        xdchange_t *cscr = NULL, *xch;
                                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xdiffi.c:943:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *rchg1 = xe->xdf1.rchg, *rchg2 = xe->xdf2.rchg;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xdiffi.c:944:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        long i1, i2, l1, l2;
        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xdiffi.c:944:7: warning: variable 'i1' is not initialized [cppcoreguidelines-init-variables]
        long i1, i2, l1, l2;
             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xdiffi.c:944:7: warning: variable name 'i1' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff/xdiffi.c:944:11: warning: variable 'i2' is not initialized [cppcoreguidelines-init-variables]
        long i1, i2, l1, l2;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xdiffi.c:944:11: warning: variable name 'i2' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff/xdiffi.c:944:15: warning: variable 'l1' is not initialized [cppcoreguidelines-init-variables]
        long i1, i2, l1, l2;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xdiffi.c:944:15: warning: variable name 'l1' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff/xdiffi.c:944:19: warning: variable 'l2' is not initialized [cppcoreguidelines-init-variables]
        long i1, i2, l1, l2;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xdiffi.c:944:19: warning: variable name 'l2' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff/xdiffi.c:949:47: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i1' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i1 = xe->xdf1.nrec, i2 = xe->xdf2.nrec; i1 >= 0 || i2 >= 0; i1--, i2--)
                                                     ^
/datasets/git/xdiff/xdiffi.c:949:78: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i1 = xe->xdf1.nrec, i2 = xe->xdf2.nrec; i1 >= 0 || i2 >= 0; i1--, i2--)
                                                                                    ^
                                                                                     {
/datasets/git/xdiff/xdiffi.c:951:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (l1 = i1; rchg1[i1 - 1]; i1--);
                        ^
/datasets/git/xdiff/xdiffi.c:951:18: warning: backward branch (for loop) is ID-dependent due to variable reference to 'rchg1' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (l1 = i1; rchg1[i1 - 1]; i1--);
                                      ^
/datasets/git/xdiff/xdiffi.c:951:38: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                        for (l1 = i1; rchg1[i1 - 1]; i1--);
                                                          ^
                                                           {
/datasets/git/xdiff/xdiffi.c:943:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        char *rchg1 = xe->xdf1.rchg, *rchg2 = xe->xdf2.rchg;
        ^
/datasets/git/xdiff/xdiffi.c:952:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (l2 = i2; rchg2[i2 - 1]; i2--);
                        ^
/datasets/git/xdiff/xdiffi.c:952:18: warning: backward branch (for loop) is ID-dependent due to variable reference to 'rchg2' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (l2 = i2; rchg2[i2 - 1]; i2--);
                                      ^
/datasets/git/xdiff/xdiffi.c:952:38: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
                        for (l2 = i2; rchg2[i2 - 1]; i2--);
                                                          ^
                                                           {
/datasets/git/xdiff/xdiffi.c:943:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        char *rchg1 = xe->xdf1.rchg, *rchg2 = xe->xdf2.rchg;
        ^
/datasets/git/xdiff/xdiffi.c:954:10: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                        if (!(xch = xdl_add_change(cscr, i1, i2, l1 - i1, l2 - i2))) {
                              ^
/datasets/git/xdiff/xdiffi.c:954:10: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/xdiff/xdiffi.c:954:10: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/xdiff/xdiffi.c:968:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        xdchange_t *xch;
        ^
/datasets/git/xdiff/xdiffi.c:968:14: warning: variable 'xch' is not initialized [cppcoreguidelines-init-variables]
        xdchange_t *xch;
                    ^
                        = NULL
/datasets/git/xdiff/xdiffi.c:970:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while ((xch = xscr) != NULL) {
        ^
/datasets/git/xdiff/xdiffi.c:970:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'xch' and may cause performance degradation [altera-id-dependent-backward-branch]
        while ((xch = xscr) != NULL) {
               ^
/datasets/git/xdiff/xdiffi.c:976:41: warning: parameter 'xe' is unused [misc-unused-parameters]
static int xdl_call_hunk_func(xdfenv_t *xe, xdchange_t *xscr, xdemitcb_t *ecb,
                                        ^
/datasets/git/xdiff/xdiffi.c:976:41: warning: parameter name 'xe' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff/xdiffi.c:979:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        xdchange_t *xch, *xche;
        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xdiffi.c:979:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/xdiff/xdiffi.c:979:14: warning: variable 'xch' is not initialized [cppcoreguidelines-init-variables]
        xdchange_t *xch, *xche;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xdiffi.c:979:20: warning: variable 'xche' is not initialized [cppcoreguidelines-init-variables]
        xdchange_t *xch, *xche;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xdiffi.c:981:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (xch = xscr; xch; xch = xche->next) {
        ^
/datasets/git/xdiff/xdiffi.c:981:19: warning: backward branch (for loop) is ID-dependent due to variable reference to 'xch' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (xch = xscr; xch; xch = xche->next) {
                         ^
/datasets/git/xdiff/xdiffi.c:983:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!xch)
                         ^
                          {
/datasets/git/xdiff/xdiffi.c:987:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                     ecb->priv) < 0)
                                                    ^
                                                     {
/datasets/git/xdiff/xdiffi.c:993:66: warning: parameter name 'xe' is too short, expected at least 3 characters [readability-identifier-length]
static void xdl_mark_ignorable_lines(xdchange_t *xscr, xdfenv_t *xe, long flags)
                                                                 ^
/datasets/git/xdiff/xdiffi.c:995:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        xdchange_t *xch;
        ^
/datasets/git/xdiff/xdiffi.c:995:14: warning: variable 'xch' is not initialized [cppcoreguidelines-init-variables]
        xdchange_t *xch;
                    ^
                        = NULL
/datasets/git/xdiff/xdiffi.c:997:19: warning: backward branch (for loop) is ID-dependent due to variable reference to 'xch' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (xch = xscr; xch; xch = xch->next) {
                         ^
/datasets/git/xdiff/xdiffi.c:999:15: warning: variable 'rec' is not initialized [cppcoreguidelines-init-variables]
                xrecord_t **rec;
                            ^
                                = NULL
/datasets/git/xdiff/xdiffi.c:1000:8: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                long i;
                     ^
                       = 0
/datasets/git/xdiff/xdiffi.c:1000:8: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff/xdiffi.c:1003:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < xch->chg1 && ignore; i++)
                ^
/datasets/git/xdiff/xdiffi.c:1003:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'xch' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < xch->chg1 && ignore; i++)
                            ^
/datasets/git/xdiff/xdiffi.c:1003:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < xch->chg1 && ignore; i++)
                                                         ^
                                                          {
/datasets/git/xdiff/xdiffi.c:1007:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < xch->chg2 && ignore; i++)
                ^
/datasets/git/xdiff/xdiffi.c:1007:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'xch' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < xch->chg2 && ignore; i++)
                            ^
/datasets/git/xdiff/xdiffi.c:1007:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < xch->chg2 && ignore; i++)
                                                         ^
                                                          {
/datasets/git/xdiff/xdiffi.c:1016:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/xdiff/xdiffi.c:1016:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff/xdiffi.c:1018:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < xpp->ignore_regex_nr; i++)
        ^
/datasets/git/xdiff/xdiffi.c:1018:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < xpp->ignore_regex_nr; i++)
                                                  ^
                                                   {
/datasets/git/xdiff/xdiffi.c:1020:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                 &regmatch, 0))
                                               ^
                                                {
/datasets/git/xdiff/xdiffi.c:1026:72: warning: parameter name 'xe' is too short, expected at least 3 characters [readability-identifier-length]
static void xdl_mark_ignorable_regex(xdchange_t *xscr, const xdfenv_t *xe,
                                                                       ^
/datasets/git/xdiff/xdiffi.c:1029:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        xdchange_t *xch;
        ^
/datasets/git/xdiff/xdiffi.c:1029:14: warning: variable 'xch' is not initialized [cppcoreguidelines-init-variables]
        xdchange_t *xch;
                    ^
                        = NULL
/datasets/git/xdiff/xdiffi.c:1031:19: warning: backward branch (for loop) is ID-dependent due to variable reference to 'xch' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (xch = xscr; xch; xch = xch->next) {
                         ^
/datasets/git/xdiff/xdiffi.c:1032:15: warning: variable 'rec' is not initialized [cppcoreguidelines-init-variables]
                xrecord_t **rec;
                            ^
                                = NULL
/datasets/git/xdiff/xdiffi.c:1034:8: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
                long i;
                     ^
                       = 0
/datasets/git/xdiff/xdiffi.c:1034:8: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff/xdiffi.c:1039:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (xch->ignore)
                                ^
                                 {
/datasets/git/xdiff/xdiffi.c:1043:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < xch->chg1 && ignore; i++)
                ^
/datasets/git/xdiff/xdiffi.c:1043:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'xch' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < xch->chg1 && ignore; i++)
                            ^
/datasets/git/xdiff/xdiffi.c:1043:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < xch->chg1 && ignore; i++)
                                                         ^
                                                          {
/datasets/git/xdiff/xdiffi.c:1047:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (i = 0; i < xch->chg2 && ignore; i++)
                ^
/datasets/git/xdiff/xdiffi.c:1047:15: warning: backward branch (for loop) is ID-dependent due to variable reference to 'xch' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (i = 0; i < xch->chg2 && ignore; i++)
                            ^
/datasets/git/xdiff/xdiffi.c:1047:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (i = 0; i < xch->chg2 && ignore; i++)
                                                         ^
                                                          {
/datasets/git/xdiff/xdiffi.c:1056:14: warning: variable 'xscr' is not initialized [cppcoreguidelines-init-variables]
        xdchange_t *xscr;
                    ^
                         = NULL
/datasets/git/xdiff/xdiffi.c:1057:11: warning: variable name 'xe' is too short, expected at least 3 characters [readability-identifier-length]
        xdfenv_t xe;
                 ^
/datasets/git/xdiff/xdiffi.c:1058:14: warning: variable name 'ef' is too short, expected at least 3 characters [readability-identifier-length]
        emit_func_t ef = xecfg->hunk_func ? xdl_call_hunk_func : xdl_emit_diff;
                    ^
/datasets/git/xdiff/xdiffi.c:1064:45: warning: narrowing conversion from 'unsigned long' to signed type 'long' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        if (xdl_change_compact(&xe.xdf1, &xe.xdf2, xpp->flags) < 0 ||
                                                   ^
/datasets/git/xdiff/xdiffi.c:1065:45: warning: narrowing conversion from 'unsigned long' to signed type 'long' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
            xdl_change_compact(&xe.xdf2, &xe.xdf1, xpp->flags) < 0 ||
                                                   ^
/datasets/git/xdiff/xdiffi.c:1072:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (xpp->flags & XDF_IGNORE_BLANK_LINES)
                    ^
/datasets/git/xdiff/xdiffi.c:1072:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (xpp->flags & XDF_IGNORE_BLANK_LINES)
                                 ^
/datasets/git/./xdiff/xdiff.h:42:33: note: expanded from macro 'XDF_IGNORE_BLANK_LINES'
#define XDF_IGNORE_BLANK_LINES (1 << 7)
                                ^
/datasets/git/xdiff/xdiffi.c:1072:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (xpp->flags & XDF_IGNORE_BLANK_LINES)
                                                        ^
                                                         {
/datasets/git/xdiff/xdiffi.c:1073:40: warning: narrowing conversion from 'unsigned long' to signed type 'long' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        xdl_mark_ignorable_lines(xscr, &xe, xpp->flags);
                                                            ^
/datasets/git/xdiff/xdiffi.c:1075:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (xpp->ignore_regex)
                                      ^
                                       {
xdiff/xemit.c:25:45: warning: parameter name 'ri' is too short, expected at least 3 characters [readability-identifier-length]
static long xdl_get_rec(xdfile_t *xdf, long ri, char const **rec) {
                                            ^
xdiff/xemit.c:33:48: warning: parameter name 'ri' is too short, expected at least 3 characters [readability-identifier-length]
static int xdl_emit_record(xdfile_t *xdf, long ri, char const *pre, xdemitcb_t *ecb) {
                                               ^
/datasets/git/xdiff/xemit.c:34:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        long size, psize = strlen(pre);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xemit.c:34:7: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        long size, psize = strlen(pre);
             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xemit.c:34:21: warning: narrowing conversion from 'unsigned long' to signed type 'long' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        long size, psize = strlen(pre);
                           ^
/datasets/git/xdiff/xemit.c:35:14: warning: variable 'rec' is not initialized [cppcoreguidelines-init-variables]
        char const *rec;
                    ^
                        = NULL
/datasets/git/xdiff/xemit.c:54:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        xdchange_t *xch, *xchp, *lxch;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xemit.c:54:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/xdiff/xemit.c:54:14: warning: variable 'xch' is not initialized [cppcoreguidelines-init-variables]
        xdchange_t *xch, *xchp, *lxch;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xemit.c:54:20: warning: variable 'xchp' is not initialized [cppcoreguidelines-init-variables]
        xdchange_t *xch, *xchp, *lxch;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xemit.c:54:27: warning: variable 'lxch' is not initialized [cppcoreguidelines-init-variables]
        xdchange_t *xch, *xchp, *lxch;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xemit.c:60:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (xchp = *xscr; xchp && xchp->ignore; xchp = xchp->next) {
        ^
/datasets/git/xdiff/xemit.c:60:21: warning: backward branch (for loop) is ID-dependent due to variable reference to 'xchp' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (xchp = *xscr; xchp && xchp->ignore; xchp = xchp->next) {
                           ^
/datasets/git/xdiff/xemit.c:64:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    xch->i1 - (xchp->i1 + xchp->chg1) >= max_ignorable)
                                                                       ^
                                                                        {
/datasets/git/xdiff/xemit.c:68:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!*xscr)
                   ^
                    {
/datasets/git/xdiff/xemit.c:73:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (xchp = *xscr, xch = xchp->next; xch; xchp = xch, xch = xch->next) {
        ^
/datasets/git/xdiff/xemit.c:73:39: warning: backward branch (for loop) is ID-dependent due to variable reference to 'xch' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (xchp = *xscr, xch = xchp->next; xch; xchp = xch, xch = xch->next) {
                                             ^
/datasets/git/xdiff/xemit.c:75:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (distance > max_common)
                                          ^
                                           {
/datasets/git/xdiff/xemit.c:78:67: warning: repeated branch in conditional chain [bugprone-branch-clone]
                if (distance < max_ignorable && (!xch->ignore || lxch == xchp)) {
                                                                                ^
/datasets/git/xdiff/xemit.c:81:4: note: end of the original
                } else if (distance < max_ignorable && xch->ignore) {
                 ^
/datasets/git/xdiff/xemit.c:86:28: note: clone 1 starts here
                } else if (!xch->ignore) {
                                         ^
/datasets/git/xdiff/xemit.c:81:55: warning: repeated branch in conditional chain [bugprone-branch-clone]
                } else if (distance < max_ignorable && xch->ignore) {
                                                                    ^
/datasets/git/xdiff/xemit.c:83:4: note: end of the original
                } else if (lxch != xchp &&
                 ^
/datasets/git/xdiff/xemit.c:89:10: note: clone 1 starts here
                } else {
                       ^
/datasets/git/xdiff/xemit.c:98:63: warning: parameter name 'sz' is too short, expected at least 3 characters [readability-identifier-length]
static long def_ff(const char *rec, long len, char *buf, long sz, void *priv)
                                                              ^
/datasets/git/xdiff/xemit.c:98:73: warning: parameter 'priv' is unused [misc-unused-parameters]
static long def_ff(const char *rec, long len, char *buf, long sz, void *priv)
                                                                ~~~~~~~~^~~~
/datasets/git/xdiff/xemit.c:101:5: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        (isalpha((unsigned char)*rec) || /* identifier? */
                         ^
/datasets/git/./git-compat-util.h:1219:20: note: expanded from macro 'isalpha'
#define isalpha(x) sane_istest(x,GIT_ALPHA)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/xdiff/xemit.c:104:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (len > sz)
                             ^
                              {
/datasets/git/xdiff/xemit.c:106:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (0 < len && isspace((unsigned char)rec[len - 1]))
                ^
/datasets/git/xdiff/xemit.c:106:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (0 < len && isspace((unsigned char)rec[len - 1]))
                       ^
/datasets/git/xdiff/xemit.c:106:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                while (0 < len && isspace((unsigned char)rec[len - 1]))
                                  ^
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/xdiff/xemit.c:106:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (0 < len && isspace((unsigned char)rec[len - 1]))
                                                                       ^
                                                                        {
/datasets/git/xdiff/xemit.c:108:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(buf, rec, len);
                ^~~~~~
/datasets/git/xdiff/xemit.c:108:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(buf, rec, len);
                ^~~~~~
/datasets/git/xdiff/xemit.c:114:75: warning: parameter name 'ri' is too short, expected at least 3 characters [readability-identifier-length]
static long match_func_rec(xdfile_t *xdf, xdemitconf_t const *xecfg, long ri,
                                                                          ^
/datasets/git/xdiff/xemit.c:115:23: warning: parameter name 'sz' is too short, expected at least 3 characters [readability-identifier-length]
                           char *buf, long sz)
                                           ^
/datasets/git/xdiff/xemit.c:117:14: warning: variable 'rec' is not initialized [cppcoreguidelines-init-variables]
        const char *rec;
                    ^
                        = NULL
/datasets/git/xdiff/xemit.c:119:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!xecfg->find_func)
                              ^
                               {
/datasets/git/xdiff/xemit.c:124:71: warning: parameter name 'ri' is too short, expected at least 3 characters [readability-identifier-length]
static int is_func_rec(xdfile_t *xdf, xdemitconf_t const *xecfg, long ri)
                                                                      ^
/datasets/git/xdiff/xemit.c:130:8: warning: accessing fields in struct 'func_line' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct func_line {
       ^
/datasets/git/xdiff/xemit.c:130:8: note: use "__attribute__((aligned(128)))" to align struct 'func_line' to 128 bytes
/datasets/git/xdiff/xemit.c:132:11: warning: 80 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        char buf[80];
                 ^
/datasets/git/xdiff/xemit.c:135:37: warning: parameter name 'xe' is too short, expected at least 3 characters [readability-identifier-length]
static long get_func_line(xdfenv_t *xe, xdemitconf_t const *xecfg,
                                    ^
/datasets/git/xdiff/xemit.c:138:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        long l, size, step = (start > limit) ? -1 : 1;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xemit.c:138:7: warning: variable 'l' is not initialized [cppcoreguidelines-init-variables]
        long l, size, step = (start > limit) ? -1 : 1;
             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xemit.c:138:7: warning: variable name 'l' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff/xemit.c:138:10: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        long l, size, step = (start > limit) ? -1 : 1;
                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xemit.c:139:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *buf, dummy[1];
        ^~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xemit.c:138:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        long l, size, step = (start > limit) ? -1 : 1;
        ^
/datasets/git/xdiff/xemit.c:139:8: warning: variable 'buf' is not initialized [cppcoreguidelines-init-variables]
        char *buf, dummy[1];
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xemit.c:144:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (l = start; l != limit && 0 <= l && l < xe->xdf1.nrec; l += step) {
        ^
/datasets/git/xdiff/xemit.c:144:18: warning: backward branch (for loop) is ID-dependent due to variable reference to 'l' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (l = start; l != limit && 0 <= l && l < xe->xdf1.nrec; l += step) {
                        ^
/datasets/git/xdiff/xemit.c:147:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (func_line)
                                      ^
                                       {
/datasets/git/xdiff/xemit.c:155:45: warning: parameter name 'ri' is too short, expected at least 3 characters [readability-identifier-length]
static int is_empty_rec(xdfile_t *xdf, long ri)
                                            ^
/datasets/git/xdiff/xemit.c:158:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        long len = xdl_get_rec(xdf, ri, &rec);
        ^
/datasets/git/xdiff/xemit.c:157:14: warning: variable 'rec' is not initialized [cppcoreguidelines-init-variables]
        const char *rec;
                    ^
                        = NULL
/datasets/git/xdiff/xemit.c:160:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (len > 0 && XDL_ISSPACE(*rec)) {
        ^
/datasets/git/xdiff/xemit.c:160:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'len' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (len > 0 && XDL_ISSPACE(*rec)) {
               ^
/datasets/git/xdiff/xemit.c:160:20: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        while (len > 0 && XDL_ISSPACE(*rec)) {
                          ^
/datasets/git/./xdiff/xmacros.h:33:25: note: expanded from macro 'XDL_ISSPACE'
#define XDL_ISSPACE(c) (isspace((unsigned char)(c)))
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/xdiff/xemit.c:167:5: warning: function 'xdl_emit_diff' has cognitive complexity of 120 (threshold 25) [readability-function-cognitive-complexity]
int xdl_emit_diff(xdfenv_t *xe, xdchange_t *xscr, xdemitcb_t *ecb,
    ^
/datasets/git/xdiff/xemit.c:174:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (xch = xscr; xch; xch = xche->next) {
        ^
/datasets/git/xdiff/xemit.c:177:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!xch)
                ^
/datasets/git/xdiff/xemit.c:181:8: note: +2, including nesting penalty of 1, nesting level increased to 2
                s1 = XDL_MAX(xch->i1 - xecfg->ctxlen, 0);
                     ^
/datasets/git/./xdiff/xmacros.h:30:34: note: expanded from macro 'XDL_MAX'
#define XDL_MAX(a, b) ((a) > (b) ? (a): (b))
                                 ^
/datasets/git/xdiff/xemit.c:182:8: note: +2, including nesting penalty of 1, nesting level increased to 2
                s2 = XDL_MAX(xch->i2 - xecfg->ctxlen, 0);
                     ^
/datasets/git/./xdiff/xmacros.h:30:34: note: expanded from macro 'XDL_MAX'
#define XDL_MAX(a, b) ((a) > (b) ? (a): (b))
                                 ^
/datasets/git/xdiff/xemit.c:184:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (xecfg->flags & XDL_EMIT_FUNCCONTEXT) {
                ^
/datasets/git/xdiff/xemit.c:188:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (i1 >= xe->xdf1.nrec) {
                        ^
/datasets/git/xdiff/xemit.c:195:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                while (i2 < xe->xdf2.nrec) {
                                ^
/datasets/git/xdiff/xemit.c:196:6: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        if (is_func_rec(&xe->xdf2, xecfg, i2))
                                        ^
/datasets/git/xdiff/xemit.c:209:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (fs1 > 0 && !is_empty_rec(&xe->xdf1, fs1 - 1) &&
                        ^
/datasets/git/xdiff/xemit.c:209:56: note: +1
                        while (fs1 > 0 && !is_empty_rec(&xe->xdf1, fs1 - 1) &&
                                                                            ^
/datasets/git/xdiff/xemit.c:212:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (fs1 < 0)
                        ^
/datasets/git/xdiff/xemit.c:214:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (fs1 < s1) {
                        ^
/datasets/git/xdiff/xemit.c:215:10: note: +4, including nesting penalty of 3, nesting level increased to 4
                                s2 = XDL_MAX(s2 - (s1 - fs1), 0);
                                     ^
/datasets/git/./xdiff/xmacros.h:30:34: note: expanded from macro 'XDL_MAX'
#define XDL_MAX(a, b) ((a) > (b) ? (a): (b))
                                 ^
/datasets/git/xdiff/xemit.c:222:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                while (xchp != xch &&
                                ^
/datasets/git/xdiff/xemit.c:223:40: note: +1
                                       xchp->i1 + xchp->chg1 <= s1 &&
                                                                   ^
/datasets/git/xdiff/xemit.c:228:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (xchp != xch) {
                                ^
/datasets/git/xdiff/xemit.c:230:6: note: +1
                                        goto pre_context_calculation;
                                        ^
/datasets/git/xdiff/xemit.c:237:10: note: +2, including nesting penalty of 1, nesting level increased to 2
                lctx = XDL_MIN(lctx, xe->xdf1.nrec - (xche->i1 + xche->chg1));
                       ^
/datasets/git/./xdiff/xmacros.h:29:34: note: expanded from macro 'XDL_MIN'
#define XDL_MIN(a, b) ((a) < (b) ? (a): (b))
                                 ^
/datasets/git/xdiff/xemit.c:238:10: note: +2, including nesting penalty of 1, nesting level increased to 2
                lctx = XDL_MIN(lctx, xe->xdf2.nrec - (xche->i2 + xche->chg2));
                       ^
/datasets/git/./xdiff/xmacros.h:29:34: note: expanded from macro 'XDL_MIN'
#define XDL_MIN(a, b) ((a) < (b) ? (a): (b))
                                 ^
/datasets/git/xdiff/xemit.c:243:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (xecfg->flags & XDL_EMIT_FUNCCONTEXT) {
                ^
/datasets/git/xdiff/xemit.c:247:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (fe1 > 0 && is_empty_rec(&xe->xdf1, fe1 - 1))
                        ^
/datasets/git/xdiff/xemit.c:247:19: note: +1
                        while (fe1 > 0 && is_empty_rec(&xe->xdf1, fe1 - 1))
                                       ^
/datasets/git/xdiff/xemit.c:249:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (fe1 < 0)
                        ^
/datasets/git/xdiff/xemit.c:251:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (fe1 > e1) {
                        ^
/datasets/git/xdiff/xemit.c:252:10: note: +4, including nesting penalty of 3, nesting level increased to 4
                                e2 = XDL_MIN(e2 + (fe1 - e1), xe->xdf2.nrec);
                                     ^
/datasets/git/./xdiff/xmacros.h:29:34: note: expanded from macro 'XDL_MIN'
#define XDL_MIN(a, b) ((a) < (b) ? (a): (b))
                                 ^
/datasets/git/xdiff/xemit.c:261:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (xche->next) {
                        ^
/datasets/git/xdiff/xemit.c:262:14: note: +4, including nesting penalty of 3, nesting level increased to 4
                                long l = XDL_MIN(xche->next->i1,
                                         ^
/datasets/git/./xdiff/xmacros.h:29:34: note: expanded from macro 'XDL_MIN'
#define XDL_MIN(a, b) ((a) < (b) ? (a): (b))
                                 ^
/datasets/git/xdiff/xemit.c:264:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (l - xecfg->ctxlen <= e1 ||
                                ^
/datasets/git/xdiff/xemit.c:264:33: note: +1
                                if (l - xecfg->ctxlen <= e1 ||
                                                            ^
/datasets/git/xdiff/xemit.c:267:6: note: +1
                                        goto post_context_calculation;
                                        ^
/datasets/git/xdiff/xemit.c:276:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (xecfg->flags & XDL_EMIT_FUNCNAMES) {
                ^
/datasets/git/xdiff/xemit.c:281:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!(xecfg->flags & XDL_EMIT_NO_HUNK_HDR) &&
                ^
/datasets/git/xdiff/xemit.c:281:46: note: +1
                if (!(xecfg->flags & XDL_EMIT_NO_HUNK_HDR) &&
                                                           ^
/datasets/git/xdiff/xemit.c:289:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (; s2 < xch->i2; s2++)
                ^
/datasets/git/xdiff/xemit.c:290:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (xdl_emit_record(&xe->xdf2, s2, " ", ecb) < 0)
                        ^
/datasets/git/xdiff/xemit.c:293:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (s1 = xch->i1, s2 = xch->i2;; xch = xch->next) {
                ^
/datasets/git/xdiff/xemit.c:297:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (; s1 < xch->i1 && s2 < xch->i2; s1++, s2++)
                        ^
/datasets/git/xdiff/xemit.c:297:24: note: +1
                        for (; s1 < xch->i1 && s2 < xch->i2; s1++, s2++)
                                            ^
/datasets/git/xdiff/xemit.c:298:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (xdl_emit_record(&xe->xdf2, s2, " ", ecb) < 0)
                                ^
/datasets/git/xdiff/xemit.c:304:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (s1 = xch->i1; s1 < xch->i1 + xch->chg1; s1++)
                        ^
/datasets/git/xdiff/xemit.c:305:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (xdl_emit_record(&xe->xdf1, s1, "-", ecb) < 0)
                                ^
/datasets/git/xdiff/xemit.c:311:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        for (s2 = xch->i2; s2 < xch->i2 + xch->chg2; s2++)
                        ^
/datasets/git/xdiff/xemit.c:312:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (xdl_emit_record(&xe->xdf2, s2, "+", ecb) < 0)
                                ^
/datasets/git/xdiff/xemit.c:315:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (xch == xche)
                        ^
/datasets/git/xdiff/xemit.c:324:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (s2 = xche->i2 + xche->chg2; s2 < e2; s2++)
                ^
/datasets/git/xdiff/xemit.c:325:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (xdl_emit_record(&xe->xdf2, s2, " ", ecb) < 0)
                        ^
/datasets/git/xdiff/xemit.c:167:29: warning: parameter name 'xe' is too short, expected at least 3 characters [readability-identifier-length]
int xdl_emit_diff(xdfenv_t *xe, xdchange_t *xscr, xdemitcb_t *ecb,
                            ^
/datasets/git/xdiff/xemit.c:169:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        long s1, s2, e1, e2, lctx;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xemit.c:169:7: warning: variable 's1' is not initialized [cppcoreguidelines-init-variables]
        long s1, s2, e1, e2, lctx;
             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xemit.c:169:7: warning: variable name 's1' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff/xemit.c:169:11: warning: variable 's2' is not initialized [cppcoreguidelines-init-variables]
        long s1, s2, e1, e2, lctx;
                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xemit.c:169:11: warning: variable name 's2' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff/xemit.c:169:15: warning: variable 'e1' is not initialized [cppcoreguidelines-init-variables]
        long s1, s2, e1, e2, lctx;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xemit.c:169:15: warning: variable name 'e1' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff/xemit.c:169:19: warning: variable 'e2' is not initialized [cppcoreguidelines-init-variables]
        long s1, s2, e1, e2, lctx;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xemit.c:169:19: warning: variable name 'e2' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff/xemit.c:169:23: warning: variable 'lctx' is not initialized [cppcoreguidelines-init-variables]
        long s1, s2, e1, e2, lctx;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xemit.c:170:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        xdchange_t *xch, *xche;
        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xemit.c:170:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
/datasets/git/xdiff/xemit.c:170:14: warning: variable 'xch' is not initialized [cppcoreguidelines-init-variables]
        xdchange_t *xch, *xche;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xemit.c:170:20: warning: variable 'xche' is not initialized [cppcoreguidelines-init-variables]
        xdchange_t *xch, *xche;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xemit.c:174:19: warning: backward branch (for loop) is ID-dependent due to variable reference to 'xch' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (xch = xscr; xch; xch = xche->next) {
                         ^
/datasets/git/xdiff/xemit.c:177:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!xch)
                         ^
                          {
/datasets/git/xdiff/xemit.c:184:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (xecfg->flags & XDL_EMIT_FUNCCONTEXT) {
                    ^
/datasets/git/xdiff/xemit.c:184:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (xecfg->flags & XDL_EMIT_FUNCCONTEXT) {
                                   ^
/datasets/git/./xdiff/xdiff.h:54:31: note: expanded from macro 'XDL_EMIT_FUNCCONTEXT'
#define XDL_EMIT_FUNCCONTEXT (1 << 2)
                              ^
/datasets/git/xdiff/xemit.c:185:4: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                        long fs1, i1 = xch->i1;
                        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xemit.c:185:9: warning: variable 'fs1' is not initialized [cppcoreguidelines-init-variables]
                        long fs1, i1 = xch->i1;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xemit.c:185:14: warning: variable name 'i1' is too short, expected at least 3 characters [readability-identifier-length]
                        long fs1, i1 = xch->i1;
                                  ^
/datasets/git/xdiff/xemit.c:189:5: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                                long i2 = xch->i2;
                                ^
/datasets/git/xdiff/xemit.c:189:10: warning: variable name 'i2' is too short, expected at least 3 characters [readability-identifier-length]
                                long i2 = xch->i2;
                                     ^
/datasets/git/xdiff/xemit.c:195:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                while (i2 < xe->xdf2.nrec) {
                                ^
/datasets/git/xdiff/xemit.c:195:12: warning: backward branch (while loop) is ID-dependent due to variable reference to 'i2' and may cause performance degradation [altera-id-dependent-backward-branch]
                                while (i2 < xe->xdf2.nrec) {
                                       ^
/datasets/git/xdiff/xemit.c:196:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        if (is_func_rec(&xe->xdf2, xecfg, i2))
                                                                              ^
                                                                               {
/datasets/git/xdiff/xemit.c:209:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (fs1 > 0 && !is_empty_rec(&xe->xdf1, fs1 - 1) &&
                        ^
/datasets/git/xdiff/xemit.c:209:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'fs1' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (fs1 > 0 && !is_empty_rec(&xe->xdf1, fs1 - 1) &&
                               ^
/datasets/git/xdiff/xemit.c:210:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                               !is_func_rec(&xe->xdf1, xecfg, fs1 - 1))
                                                                       ^
                                                                        {
/datasets/git/xdiff/xemit.c:212:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (fs1 < 0)
                                    ^
                                     {
/datasets/git/xdiff/xemit.c:222:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                while (xchp != xch &&
                                ^
/datasets/git/xdiff/xemit.c:222:12: warning: backward branch (while loop) is ID-dependent due to variable reference to 'xchp' and may cause performance degradation [altera-id-dependent-backward-branch]
                                while (xchp != xch &&
                                       ^
/datasets/git/xdiff/xemit.c:224:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                       xchp->i2 + xchp->chg2 <= s2)
                                                                   ^
                                                                    {
/datasets/git/xdiff/xemit.c:243:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (xecfg->flags & XDL_EMIT_FUNCCONTEXT) {
                    ^
/datasets/git/xdiff/xemit.c:243:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (xecfg->flags & XDL_EMIT_FUNCCONTEXT) {
                                   ^
/datasets/git/./xdiff/xdiff.h:54:31: note: expanded from macro 'XDL_EMIT_FUNCCONTEXT'
#define XDL_EMIT_FUNCCONTEXT (1 << 2)
                              ^
/datasets/git/xdiff/xemit.c:247:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (fe1 > 0 && is_empty_rec(&xe->xdf1, fe1 - 1))
                        ^
/datasets/git/xdiff/xemit.c:247:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'fe1' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (fe1 > 0 && is_empty_rec(&xe->xdf1, fe1 - 1))
                               ^
/datasets/git/xdiff/xemit.c:247:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        while (fe1 > 0 && is_empty_rec(&xe->xdf1, fe1 - 1))
                                                                           ^
                                                                            {
/datasets/git/xdiff/xemit.c:249:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (fe1 < 0)
                                    ^
                                     {
/datasets/git/xdiff/xemit.c:262:10: warning: variable name 'l' is too short, expected at least 3 characters [readability-identifier-length]
                                long l = XDL_MIN(xche->next->i1,
                                     ^
/datasets/git/xdiff/xemit.c:276:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (xecfg->flags & XDL_EMIT_FUNCNAMES) {
                    ^
/datasets/git/xdiff/xemit.c:276:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (xecfg->flags & XDL_EMIT_FUNCNAMES) {
                                   ^
/datasets/git/./xdiff/xdiff.h:52:29: note: expanded from macro 'XDL_EMIT_FUNCNAMES'
#define XDL_EMIT_FUNCNAMES (1 << 0)
                            ^
/datasets/git/xdiff/xemit.c:281:9: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(xecfg->flags & XDL_EMIT_NO_HUNK_HDR) &&
                      ^
/datasets/git/xdiff/xemit.c:281:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (!(xecfg->flags & XDL_EMIT_NO_HUNK_HDR) &&
                                     ^
/datasets/git/./xdiff/xdiff.h:53:31: note: expanded from macro 'XDL_EMIT_NO_HUNK_HDR'
#define XDL_EMIT_NO_HUNK_HDR (1 << 1)
                              ^
/datasets/git/xdiff/xemit.c:283:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                      func_line.buf, func_line.len, ecb) < 0)
                                                                             ^
                                                                              {
/datasets/git/xdiff/xemit.c:289:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (; s2 < xch->i2; s2++)
                ^
/datasets/git/xdiff/xemit.c:289:10: warning: backward branch (for loop) is ID-dependent due to variable reference to 's2' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (; s2 < xch->i2; s2++)
                       ^
/datasets/git/xdiff/xemit.c:289:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (; s2 < xch->i2; s2++)
                                          ^
                                           {
/datasets/git/xdiff/xemit.c:290:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (xdl_emit_record(&xe->xdf2, s2, " ", ecb) < 0)
                                                                         ^
                                                                          {
/datasets/git/xdiff/xemit.c:297:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (; s1 < xch->i1 && s2 < xch->i2; s1++, s2++)
                        ^
/datasets/git/xdiff/xemit.c:297:11: warning: backward branch (for loop) is ID-dependent due to variable reference to 's1' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (; s1 < xch->i1 && s2 < xch->i2; s1++, s2++)
                               ^
/datasets/git/xdiff/xemit.c:297:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (; s1 < xch->i1 && s2 < xch->i2; s1++, s2++)
                                                                        ^
                                                                         {
/datasets/git/xdiff/xemit.c:298:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (xdl_emit_record(&xe->xdf2, s2, " ", ecb) < 0)
                                                                                 ^
                                                                                  {
/datasets/git/xdiff/xemit.c:304:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (s1 = xch->i1; s1 < xch->i1 + xch->chg1; s1++)
                        ^
/datasets/git/xdiff/xemit.c:304:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 's1' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (s1 = xch->i1; s1 < xch->i1 + xch->chg1; s1++)
                                           ^
/datasets/git/xdiff/xemit.c:304:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (s1 = xch->i1; s1 < xch->i1 + xch->chg1; s1++)
                                                                          ^
                                                                           {
/datasets/git/xdiff/xemit.c:305:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (xdl_emit_record(&xe->xdf1, s1, "-", ecb) < 0)
                                                                                 ^
                                                                                  {
/datasets/git/xdiff/xemit.c:311:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        for (s2 = xch->i2; s2 < xch->i2 + xch->chg2; s2++)
                        ^
/datasets/git/xdiff/xemit.c:311:23: warning: backward branch (for loop) is ID-dependent due to variable reference to 's2' and may cause performance degradation [altera-id-dependent-backward-branch]
                        for (s2 = xch->i2; s2 < xch->i2 + xch->chg2; s2++)
                                           ^
/datasets/git/xdiff/xemit.c:311:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        for (s2 = xch->i2; s2 < xch->i2 + xch->chg2; s2++)
                                                                          ^
                                                                           {
/datasets/git/xdiff/xemit.c:312:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (xdl_emit_record(&xe->xdf2, s2, "+", ecb) < 0)
                                                                                 ^
                                                                                  {
/datasets/git/xdiff/xemit.c:315:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (xch == xche)
                                        ^
                                         {
/datasets/git/xdiff/xemit.c:324:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (s2 = xche->i2 + xche->chg2; s2 < e2; s2++)
                ^
/datasets/git/xdiff/xemit.c:324:36: warning: backward branch (for loop) is ID-dependent due to variable reference to 's2' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (s2 = xche->i2 + xche->chg2; s2 < e2; s2++)
                                                 ^
/datasets/git/xdiff/xemit.c:324:50: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (s2 = xche->i2 + xche->chg2; s2 < e2; s2++)
                                                               ^
                                                                {
/datasets/git/xdiff/xemit.c:325:53: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (xdl_emit_record(&xe->xdf2, s2, " ", ecb) < 0)
                                                                         ^
                                                                          {
/datasets/git/xdiff/xhistogram.c:52:8: warning: accessing fields in struct 'histindex' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
struct histindex {
       ^
/datasets/git/xdiff/xhistogram.c:52:8: note: use "__attribute__((aligned(128)))" to align struct 'histindex' to 128 bytes
/datasets/git/xdiff/xhistogram.c:53:9: warning: accessing fields in struct 'record' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
        struct record {
               ^
/datasets/git/xdiff/xhistogram.c:53:9: note: use "__attribute__((aligned(16)))" to align struct 'record' to 16 bytes
/datasets/git/xdiff/xhistogram.c:75:8: warning: accessing fields in struct 'region' is inefficient due to poor alignment; currently aligned to 4 bytes, but recommended alignment is 16 bytes [altera-struct-pack-align]
struct region {
       ^
/datasets/git/xdiff/xhistogram.c:75:8: note: use "__attribute__((aligned(16)))" to align struct 'region' to 16 bytes
/datasets/git/xdiff/xhistogram.c:80:25: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
#define LINE_MAP(i, a) (i->line_map[(a) - i->ptr_shift])
                        ^
                        ()
/datasets/git/xdiff/xhistogram.c:80:43: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
#define LINE_MAP(i, a) (i->line_map[(a) - i->ptr_shift])
                                          ^
                                          ()
/datasets/git/xdiff/xhistogram.c:83:3: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        (index->next_ptrs[(ptr) - index->ptr_shift])
         ^
         (    )
/datasets/git/xdiff/xhistogram.c:83:28: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        (index->next_ptrs[(ptr) - index->ptr_shift])
                                  ^
                                  (    )
/datasets/git/xdiff/xhistogram.c:89:3: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        (env->xdf##s.recs[l - 1])
         ^
         (  )
/datasets/git/xdiff/xhistogram.c:89:20: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        (env->xdf##s.recs[l - 1])
                          ^
                          ()
/datasets/git/xdiff/xhistogram.c:91:32: warning: parameter name 'r1' is too short, expected at least 3 characters [readability-identifier-length]
static int cmp_recs(xrecord_t *r1, xrecord_t *r2)
                               ^
/datasets/git/xdiff/xhistogram.c:91:47: warning: parameter name 'r2' is too short, expected at least 3 characters [readability-identifier-length]
static int cmp_recs(xrecord_t *r1, xrecord_t *r2)
                                              ^
/datasets/git/xdiff/xhistogram.c:98:16: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        (cmp_recs(REC(i->env, s1, l1), REC(i->env, s2, l2)))
                      ^
                      ()
/datasets/git/xdiff/xhistogram.c:98:37: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        (cmp_recs(REC(i->env, s1, l1), REC(i->env, s2, l2)))
                                           ^
                                           ()
/datasets/git/xdiff/xhistogram.c:101:20: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        XDL_HASHLONG((REC(index->env, side, line))->ha, index->table_bits)
                          ^
                          (    )
/datasets/git/xdiff/xhistogram.c:101:50: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
        XDL_HASHLONG((REC(index->env, side, line))->ha, index->table_bits)
                                                        ^
                                                        (    )
/datasets/git/xdiff/xhistogram.c:105:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned int ptr, tbl_idx;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xhistogram.c:105:15: warning: variable 'ptr' is not initialized [cppcoreguidelines-init-variables]
        unsigned int ptr, tbl_idx;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xhistogram.c:105:20: warning: variable 'tbl_idx' is not initialized [cppcoreguidelines-init-variables]
        unsigned int ptr, tbl_idx;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xhistogram.c:106:15: warning: variable 'chain_len' is not initialized [cppcoreguidelines-init-variables]
        unsigned int chain_len;
                     ^
                               = 0
/datasets/git/xdiff/xhistogram.c:107:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        struct record **rec_chain, *rec;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xhistogram.c:105:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        unsigned int ptr, tbl_idx;
        ^
/datasets/git/xdiff/xhistogram.c:107:18: warning: variable 'rec_chain' is not initialized [cppcoreguidelines-init-variables]
        struct record **rec_chain, *rec;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xhistogram.c:107:30: warning: variable 'rec' is not initialized [cppcoreguidelines-init-variables]
        struct record **rec_chain, *rec;
                                    ^
/datasets/git/xdiff/xhistogram.c:107:2: note: inferred assignment of ID-dependent value from ID-dependent variable rec_chain [altera-id-dependent-backward-branch]
        struct record **rec_chain, *rec;
        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xhistogram.c:109:26: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ptr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (ptr = LINE_END(1); line1 <= ptr; ptr--) {
                                ^
/datasets/git/xdiff/xhistogram.c:115:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (rec) {
                ^
/datasets/git/xdiff/xhistogram.c:115:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'rec' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (rec) {
                       ^
/datasets/git/xdiff/xhistogram.c:134:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (chain_len == index->max_chain_length)
                                                         ^
                                                          {
/datasets/git/xdiff/xhistogram.c:141:9: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                if (!(rec = xdl_cha_alloc(&index->rcha)))
                      ^
/datasets/git/xdiff/xhistogram.c:141:9: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/xdiff/xhistogram.c:141:9: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/xdiff/xhistogram.c:141:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!(rec = xdl_cha_alloc(&index->rcha)))
                                                         ^
                                                          {
/datasets/git/xdiff/xhistogram.c:156:12: warning: function 'try_lcs' has cognitive complexity of 56 (threshold 25) [readability-function-cognitive-complexity]
static int try_lcs(struct histindex *index, struct region *lcs, int b_ptr,
           ^
/datasets/git/xdiff/xhistogram.c:164:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (; rec; rec = rec->next) {
        ^
/datasets/git/xdiff/xhistogram.c:165:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (rec->cnt > index->cnt) {
                ^
/datasets/git/xdiff/xhistogram.c:166:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!index->has_common)
                        ^
/datasets/git/xdiff/xhistogram.c:172:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!CMP(index, 1, as, 2, b_ptr))
                ^
/datasets/git/xdiff/xhistogram.c:176:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (;;) {
                ^
/datasets/git/xdiff/xhistogram.c:184:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (line1 < as && line2 < bs
                        ^
/datasets/git/xdiff/xhistogram.c:185:5: note: +1
                                && CMP(index, 1, as - 1, 2, bs - 1)) {
                                ^
/datasets/git/xdiff/xhistogram.c:188:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (1 < rc)
                                ^
/datasets/git/xdiff/xhistogram.c:189:11: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        rc = XDL_MIN(rc, CNT(index, as));
                                             ^
/datasets/git/./xdiff/xmacros.h:29:34: note: expanded from macro 'XDL_MIN'
#define XDL_MIN(a, b) ((a) < (b) ? (a): (b))
                                 ^
/datasets/git/xdiff/xhistogram.c:191:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (ae < LINE_END(1) && be < LINE_END(2)
                        ^
/datasets/git/xdiff/xhistogram.c:192:5: note: +1
                                && CMP(index, 1, ae + 1, 2, be + 1)) {
                                ^
/datasets/git/xdiff/xhistogram.c:195:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (1 < rc)
                                ^
/datasets/git/xdiff/xhistogram.c:196:11: note: +5, including nesting penalty of 4, nesting level increased to 5
                                        rc = XDL_MIN(rc, CNT(index, ae));
                                             ^
/datasets/git/./xdiff/xmacros.h:29:34: note: expanded from macro 'XDL_MIN'
#define XDL_MIN(a, b) ((a) < (b) ? (a): (b))
                                 ^
/datasets/git/xdiff/xhistogram.c:199:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (b_next <= be)
                        ^
/datasets/git/xdiff/xhistogram.c:201:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (lcs->end1 - lcs->begin1 < ae - as || rc < index->cnt) {
                        ^
/datasets/git/xdiff/xhistogram.c:201:42: note: +1
                        if (lcs->end1 - lcs->begin1 < ae - as || rc < index->cnt) {
                                                              ^
/datasets/git/xdiff/xhistogram.c:209:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (np == 0)
                        ^
/datasets/git/xdiff/xhistogram.c:212:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (np <= ae) {
                        ^
/datasets/git/xdiff/xhistogram.c:214:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                if (np == 0) {
                                ^
/datasets/git/xdiff/xhistogram.c:220:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (should_break)
                        ^
/datasets/git/xdiff/xhistogram.c:156:65: warning: 2 adjacent parameters of 'try_lcs' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int try_lcs(struct histindex *index, struct region *lcs, int b_ptr,
                                                                ^~~~~~~~~~
/datasets/git/xdiff/xhistogram.c:156:69: note: the first parameter in the range is 'b_ptr'
static int try_lcs(struct histindex *index, struct region *lcs, int b_ptr,
                                                                    ^~~~~
/datasets/git/xdiff/xhistogram.c:157:6: note: the last parameter in the range is 'line1'
        int line1, int count1, int line2, int count2)
            ^~~~~
/datasets/git/xdiff/xhistogram.c:161:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned int as, ae, bs, be, np, rc;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xhistogram.c:160:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        struct record *rec = index->records[TABLE_HASH(index, 2, b_ptr)];
        ^
/datasets/git/xdiff/xhistogram.c:161:15: warning: variable 'as' is not initialized [cppcoreguidelines-init-variables]
        unsigned int as, ae, bs, be, np, rc;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xhistogram.c:161:15: warning: variable name 'as' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff/xhistogram.c:161:19: warning: variable 'ae' is not initialized [cppcoreguidelines-init-variables]
        unsigned int as, ae, bs, be, np, rc;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xhistogram.c:161:19: warning: variable name 'ae' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff/xhistogram.c:161:23: warning: variable 'bs' is not initialized [cppcoreguidelines-init-variables]
        unsigned int as, ae, bs, be, np, rc;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xhistogram.c:161:23: warning: variable name 'bs' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff/xhistogram.c:161:27: warning: variable 'be' is not initialized [cppcoreguidelines-init-variables]
        unsigned int as, ae, bs, be, np, rc;
                                 ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xhistogram.c:161:27: warning: variable name 'be' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff/xhistogram.c:161:31: warning: variable 'np' is not initialized [cppcoreguidelines-init-variables]
        unsigned int as, ae, bs, be, np, rc;
                                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xhistogram.c:161:31: warning: variable name 'np' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff/xhistogram.c:161:35: warning: variable 'rc' is not initialized [cppcoreguidelines-init-variables]
        unsigned int as, ae, bs, be, np, rc;
                                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xhistogram.c:161:35: warning: variable name 'rc' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff/xhistogram.c:162:6: warning: variable 'should_break' is not initialized [cppcoreguidelines-init-variables]
        int should_break;
            ^
                         = 0
/datasets/git/xdiff/xhistogram.c:164:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'rec' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; rec; rec = rec->next) {
               ^
/datasets/git/xdiff/xhistogram.c:166:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!index->has_common)
                                               ^
                                                {
/datasets/git/xdiff/xhistogram.c:172:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!CMP(index, 1, as, 2, b_ptr))
                                                 ^
                                                  {
/datasets/git/xdiff/xhistogram.c:184:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (line1 < as && line2 < bs
                        ^
/datasets/git/xdiff/xhistogram.c:161:2: note: inferred assignment of ID-dependent value from ID-dependent variable as [altera-id-dependent-backward-branch]
        unsigned int as, ae, bs, be, np, rc;
        ^
/datasets/git/xdiff/xhistogram.c:184:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'as' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (line1 < as && line2 < bs
                               ^
/datasets/git/xdiff/xhistogram.c:188:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (1 < rc)
                                           ^
                                            {
/datasets/git/xdiff/xhistogram.c:191:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (ae < LINE_END(1) && be < LINE_END(2)
                        ^
/datasets/git/xdiff/xhistogram.c:191:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'ae' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (ae < LINE_END(1) && be < LINE_END(2)
                               ^
/datasets/git/xdiff/xhistogram.c:195:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (1 < rc)
                                           ^
                                            {
/datasets/git/xdiff/xhistogram.c:199:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (b_next <= be)
                                         ^
                                          {
/datasets/git/xdiff/xhistogram.c:209:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (np == 0)
                                    ^
                                     {
/datasets/git/xdiff/xhistogram.c:212:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (np <= ae) {
                        ^
/datasets/git/xdiff/xhistogram.c:212:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'np' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (np <= ae) {
                               ^
/datasets/git/xdiff/xhistogram.c:220:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (should_break)
                                         ^
                                          {
/datasets/git/xdiff/xhistogram.c:226:9: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return b_next;
               ^
/datasets/git/xdiff/xhistogram.c:234:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&xpparam, 0, sizeof(xpparam));
        ^~~~~~
/datasets/git/xdiff/xhistogram.c:234:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&xpparam, 0, sizeof(xpparam));
        ^~~~~~
/datasets/git/xdiff/xhistogram.c:235:18: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        xpparam.flags = xpp->flags & ~XDF_DIFF_ALGORITHM_MASK;
                        ^            ~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xhistogram.c:235:31: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
        xpparam.flags = xpp->flags & ~XDF_DIFF_ALGORITHM_MASK;
                                     ^
/datasets/git/xdiff/xhistogram.c:235:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        xpparam.flags = xpp->flags & ~XDF_DIFF_ALGORITHM_MASK;
                                      ^
/datasets/git/./xdiff/xdiff.h:46:34: note: expanded from macro 'XDF_DIFF_ALGORITHM_MASK'
#define XDF_DIFF_ALGORITHM_MASK (XDF_PATIENCE_DIFF | XDF_HISTOGRAM_DIFF)
                                 ^~~~~~~~~~~~~~~~~
/datasets/git/./xdiff/xdiff.h:44:27: note: expanded from macro 'XDF_PATIENCE_DIFF'
#define XDF_PATIENCE_DIFF (1 << 14)
                          ^~~~~~~~~
/datasets/git/xdiff/xhistogram.c:253:6: warning: variable 'b_ptr' is not initialized [cppcoreguidelines-init-variables]
        int b_ptr;
            ^
                  = 0
/datasets/git/xdiff/xhistogram.c:257:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&index, 0, sizeof(index));
        ^~~~~~
/datasets/git/xdiff/xhistogram.c:257:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&index, 0, sizeof(index));
        ^~~~~~
/datasets/git/xdiff/xhistogram.c:268:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        index.records_size = 1 << index.table_bits;
                             ^
/datasets/git/xdiff/xhistogram.c:269:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if (!XDL_CALLOC_ARRAY(index.records, index.records_size))
             ^
/datasets/git/./xdiff/xmacros.h:59:34: note: expanded from macro 'XDL_CALLOC_ARRAY'
#define XDL_CALLOC_ARRAY(p, nr) ((p) = xdl_calloc(nr, sizeof(*(p))))
                                 ^
/datasets/git/xdiff/xhistogram.c:269:7: note: if it should be an assignment, move it out of the 'if' condition
        if (!XDL_CALLOC_ARRAY(index.records, index.records_size))
             ^
/datasets/git/./xdiff/xmacros.h:59:34: note: expanded from macro 'XDL_CALLOC_ARRAY'
#define XDL_CALLOC_ARRAY(p, nr) ((p) = xdl_calloc(nr, sizeof(*(p))))
                                 ^
/datasets/git/xdiff/xhistogram.c:269:7: note: if it is meant to be an equality check, change '=' to '=='
        if (!XDL_CALLOC_ARRAY(index.records, index.records_size))
             ^
/datasets/git/./xdiff/xmacros.h:59:34: note: expanded from macro 'XDL_CALLOC_ARRAY'
#define XDL_CALLOC_ARRAY(p, nr) ((p) = xdl_calloc(nr, sizeof(*(p))))
                                 ^
/datasets/git/xdiff/xhistogram.c:269:7: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        if (!XDL_CALLOC_ARRAY(index.records, index.records_size))
             ^
/datasets/git/./xdiff/xmacros.h:59:55: note: expanded from macro 'XDL_CALLOC_ARRAY'
#define XDL_CALLOC_ARRAY(p, nr) ((p) = xdl_calloc(nr, sizeof(*(p))))
                                                      ^
/datasets/git/xdiff/xhistogram.c:269:59: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!XDL_CALLOC_ARRAY(index.records, index.records_size))
                                                                 ^
                                                                  {
/datasets/git/xdiff/xhistogram.c:273:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if (!XDL_CALLOC_ARRAY(index.line_map, index.line_map_size))
             ^
/datasets/git/./xdiff/xmacros.h:59:34: note: expanded from macro 'XDL_CALLOC_ARRAY'
#define XDL_CALLOC_ARRAY(p, nr) ((p) = xdl_calloc(nr, sizeof(*(p))))
                                 ^
/datasets/git/xdiff/xhistogram.c:273:7: note: if it should be an assignment, move it out of the 'if' condition
        if (!XDL_CALLOC_ARRAY(index.line_map, index.line_map_size))
             ^
/datasets/git/./xdiff/xmacros.h:59:34: note: expanded from macro 'XDL_CALLOC_ARRAY'
#define XDL_CALLOC_ARRAY(p, nr) ((p) = xdl_calloc(nr, sizeof(*(p))))
                                 ^
/datasets/git/xdiff/xhistogram.c:273:7: note: if it is meant to be an equality check, change '=' to '=='
        if (!XDL_CALLOC_ARRAY(index.line_map, index.line_map_size))
             ^
/datasets/git/./xdiff/xmacros.h:59:34: note: expanded from macro 'XDL_CALLOC_ARRAY'
#define XDL_CALLOC_ARRAY(p, nr) ((p) = xdl_calloc(nr, sizeof(*(p))))
                                 ^
/datasets/git/xdiff/xhistogram.c:273:7: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        if (!XDL_CALLOC_ARRAY(index.line_map, index.line_map_size))
             ^
/datasets/git/./xdiff/xmacros.h:59:55: note: expanded from macro 'XDL_CALLOC_ARRAY'
#define XDL_CALLOC_ARRAY(p, nr) ((p) = xdl_calloc(nr, sizeof(*(p))))
                                                      ^
/datasets/git/xdiff/xhistogram.c:273:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!XDL_CALLOC_ARRAY(index.line_map, index.line_map_size))
                                                                   ^
                                                                    {
/datasets/git/xdiff/xhistogram.c:276:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if (!XDL_CALLOC_ARRAY(index.next_ptrs, index.line_map_size))
             ^
/datasets/git/./xdiff/xmacros.h:59:34: note: expanded from macro 'XDL_CALLOC_ARRAY'
#define XDL_CALLOC_ARRAY(p, nr) ((p) = xdl_calloc(nr, sizeof(*(p))))
                                 ^
/datasets/git/xdiff/xhistogram.c:276:7: note: if it should be an assignment, move it out of the 'if' condition
        if (!XDL_CALLOC_ARRAY(index.next_ptrs, index.line_map_size))
             ^
/datasets/git/./xdiff/xmacros.h:59:34: note: expanded from macro 'XDL_CALLOC_ARRAY'
#define XDL_CALLOC_ARRAY(p, nr) ((p) = xdl_calloc(nr, sizeof(*(p))))
                                 ^
/datasets/git/xdiff/xhistogram.c:276:7: note: if it is meant to be an equality check, change '=' to '=='
        if (!XDL_CALLOC_ARRAY(index.next_ptrs, index.line_map_size))
             ^
/datasets/git/./xdiff/xmacros.h:59:34: note: expanded from macro 'XDL_CALLOC_ARRAY'
#define XDL_CALLOC_ARRAY(p, nr) ((p) = xdl_calloc(nr, sizeof(*(p))))
                                 ^
/datasets/git/xdiff/xhistogram.c:276:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!XDL_CALLOC_ARRAY(index.next_ptrs, index.line_map_size))
                                                                    ^
                                                                     {
/datasets/git/xdiff/xhistogram.c:280:75: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (xdl_cha_init(&index.rcha, sizeof(struct record), count1 / 4 + 1) < 0)
                                                                                 ^
                                                                                  {
/datasets/git/xdiff/xhistogram.c:284:27: warning: 64 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        index.max_chain_length = 64;
                                 ^
/datasets/git/xdiff/xhistogram.c:286:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (scanA(&index, line1, count1))
                                         ^
                                          {
/datasets/git/xdiff/xhistogram.c:291:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (b_ptr = line2; b_ptr <= LINE_END(2); )
        ^
/datasets/git/xdiff/xhistogram.c:291:22: warning: backward branch (for loop) is ID-dependent due to variable reference to 'b_ptr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (b_ptr = line2; b_ptr <= LINE_END(2); )
                            ^
/datasets/git/xdiff/xhistogram.c:291:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (b_ptr = line2; b_ptr <= LINE_END(2); )
                                                   ^
                                                    {
/datasets/git/xdiff/xhistogram.c:294:61: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (index.has_common && index.max_chain_length < index.cnt)
                                                                   ^
                                                                    {
/datasets/git/xdiff/xhistogram.c:296:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/xdiff/xhistogram.c:304:12: warning: function 'histogram_diff' is within a recursive call chain [misc-no-recursion]
static int histogram_diff(xpparam_t const *xpp, xdfenv_t *env,
           ^
/datasets/git/xdiff/xhistogram.c:304:12: note: example recursive call chain, starting from function 'histogram_diff'
/datasets/git/xdiff/xhistogram.c:343:13: note: Frame #1: function 'histogram_diff' calls function 'histogram_diff' here:
                        result = histogram_diff(xpp, env,
                                 ^
/datasets/git/xdiff/xhistogram.c:343:13: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/xdiff/xhistogram.c:304:12: warning: function 'histogram_diff' has cognitive complexity of 26 (threshold 25) [readability-function-cognitive-complexity]
static int histogram_diff(xpparam_t const *xpp, xdfenv_t *env,
           ^
/datasets/git/xdiff/xhistogram.c:313:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (count1 <= 0 && count2 <= 0)
        ^
/datasets/git/xdiff/xhistogram.c:313:18: note: +1
        if (count1 <= 0 && count2 <= 0)
                        ^
/datasets/git/xdiff/xhistogram.c:316:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (LINE_END(1) >= MAX_PTR)
        ^
/datasets/git/xdiff/xhistogram.c:319:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!count1) {
        ^
/datasets/git/xdiff/xhistogram.c:320:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while(count2--)
                ^
/datasets/git/xdiff/xhistogram.c:323:9: note: +1, nesting level increased to 1
        } else if (!count2) {
               ^
/datasets/git/xdiff/xhistogram.c:324:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while(count1--)
                ^
/datasets/git/xdiff/xhistogram.c:331:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (lcs_found < 0)
        ^
/datasets/git/xdiff/xhistogram.c:333:7: note: +1, nesting level increased to 1
        else if (lcs_found)
             ^
/datasets/git/xdiff/xhistogram.c:335:2: note: +1, nesting level increased to 1
        else {
        ^
/datasets/git/xdiff/xhistogram.c:336:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (lcs.begin1 == 0 && lcs.begin2 == 0) {
                ^
/datasets/git/xdiff/xhistogram.c:336:23: note: +1
                if (lcs.begin1 == 0 && lcs.begin2 == 0) {
                                    ^
/datasets/git/xdiff/xhistogram.c:337:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (count1--)
                        ^
/datasets/git/xdiff/xhistogram.c:339:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (count2--)
                        ^
/datasets/git/xdiff/xhistogram.c:342:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/xdiff/xhistogram.c:346:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (result)
                        ^
/datasets/git/xdiff/xhistogram.c:358:4: note: +1
                        goto redo;
                        ^
/datasets/git/xdiff/xhistogram.c:308:6: warning: variable 'lcs_found' is not initialized [cppcoreguidelines-init-variables]
        int lcs_found;
            ^
                      = 0
/datasets/git/xdiff/xhistogram.c:309:6: warning: variable 'result' is not initialized [cppcoreguidelines-init-variables]
        int result;
            ^
                   = 0
/datasets/git/xdiff/xhistogram.c:313:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (count1 <= 0 && count2 <= 0)
                                       ^
                                        {
/datasets/git/xdiff/xhistogram.c:316:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (LINE_END(1) >= MAX_PTR)
                                   ^
                                    {
/datasets/git/xdiff/xhistogram.c:320:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while(count2--)
                ^
/datasets/git/xdiff/xhistogram.c:320:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'count2' and may cause performance degradation [altera-id-dependent-backward-branch]
                while(count2--)
                      ^
/datasets/git/xdiff/xhistogram.c:320:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while(count2--)
                               ^
                                {
/datasets/git/xdiff/xhistogram.c:323:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else if (!count2) {
          ^~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xhistogram.c:324:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while(count1--)
                ^
/datasets/git/xdiff/xhistogram.c:324:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'count1' and may cause performance degradation [altera-id-dependent-backward-branch]
                while(count1--)
                      ^
/datasets/git/xdiff/xhistogram.c:324:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while(count1--)
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xhistogram.c:329:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&lcs, 0, sizeof(lcs));
        ^~~~~~
/datasets/git/xdiff/xhistogram.c:329:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&lcs, 0, sizeof(lcs));
        ^~~~~~
/datasets/git/xdiff/xhistogram.c:331:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (lcs_found < 0)
                          ^
                           {
/datasets/git/xdiff/xhistogram.c:333:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else if (lcs_found)
                           ^
                            {
/datasets/git/xdiff/xhistogram.c:337:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (count1--)
                        ^
/datasets/git/xdiff/xhistogram.c:337:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'count1' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (count1--)
                               ^
/datasets/git/xdiff/xhistogram.c:337:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        while (count1--)
                                        ^
                                         {
/datasets/git/xdiff/xhistogram.c:339:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (count2--)
                        ^
/datasets/git/xdiff/xhistogram.c:339:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'count2' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (count2--)
                               ^
/datasets/git/xdiff/xhistogram.c:339:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        while (count2--)
                                        ^
                                         {
/datasets/git/xdiff/xhistogram.c:344:14: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                                line1, lcs.begin1 - line1,
                                                       ^
/datasets/git/xdiff/xhistogram.c:345:14: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                                line2, lcs.begin2 - line2);
                                                       ^
/datasets/git/xdiff/xhistogram.c:346:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (result)
                                   ^
                                    {
/datasets/git/xdiff/xhistogram.c:355:12: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        line1 = lcs.end1 + 1;
                                ^
/datasets/git/xdiff/xhistogram.c:357:12: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        line2 = lcs.end2 + 1;
                                ^
/datasets/git/xdiff/xhistogram.c:368:3: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                env->xdf1.dstart + 1, env->xdf1.dend - env->xdf1.dstart + 1,
                ^
/datasets/git/xdiff/xhistogram.c:368:25: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                env->xdf1.dstart + 1, env->xdf1.dend - env->xdf1.dstart + 1,
                                      ^
/datasets/git/xdiff/xhistogram.c:369:3: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                env->xdf2.dstart + 1, env->xdf2.dend - env->xdf2.dstart + 1);
                ^
/datasets/git/xdiff/xhistogram.c:369:25: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                env->xdf2.dstart + 1, env->xdf2.dend - env->xdf2.dstart + 1);
                                      ^
/datasets/git/xdiff/xmerge.c:25:16: warning: accessing fields in struct 's_xdmerge' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
typedef struct s_xdmerge {
               ^
/datasets/git/xdiff/xmerge.c:25:16: note: use "__attribute__((aligned(64)))" to align struct 's_xdmerge' to 64 bytes
/datasets/git/xdiff/xmerge.c:50:48: warning: 2 adjacent parameters of 'xdl_append_merge' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int xdl_append_merge(xdmerge_t **merge, int mode,
                                               ^~~~~~~~~
/datasets/git/xdiff/xmerge.c:50:52: note: the first parameter in the range is 'mode'
static int xdl_append_merge(xdmerge_t **merge, int mode,
                                                   ^~~~
/datasets/git/xdiff/xmerge.c:51:13: note: the last parameter in the range is 'i0'
                            long i0, long chg0,
                                 ^~
/datasets/git/xdiff/xmerge.c:51:8: note: 'int' and 'long' may be implicitly converted
                            long i0, long chg0,
                            ^
/datasets/git/xdiff/xmerge.c:51:13: warning: parameter name 'i0' is too short, expected at least 3 characters [readability-identifier-length]
                            long i0, long chg0,
                                 ^
/datasets/git/xdiff/xmerge.c:51:17: warning: 2 adjacent parameters of 'xdl_append_merge' of similar type ('long') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                            long i0, long chg0,
                                     ^~~~~~~~~~
/datasets/git/xdiff/xmerge.c:51:22: note: the first parameter in the range is 'chg0'
                            long i0, long chg0,
                                          ^~~~
/datasets/git/xdiff/xmerge.c:52:13: note: the last parameter in the range is 'i1'
                            long i1, long chg1,
                                 ^~
/datasets/git/xdiff/xmerge.c:52:13: warning: parameter name 'i1' is too short, expected at least 3 characters [readability-identifier-length]
                            long i1, long chg1,
                                 ^
/datasets/git/xdiff/xmerge.c:52:17: warning: 2 adjacent parameters of 'xdl_append_merge' of similar type ('long') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                            long i1, long chg1,
                                     ^~~~~~~~~~
/datasets/git/xdiff/xmerge.c:52:22: note: the first parameter in the range is 'chg1'
                            long i1, long chg1,
                                          ^~~~
/datasets/git/xdiff/xmerge.c:53:13: note: the last parameter in the range is 'i2'
                            long i2, long chg2)
                                 ^~
/datasets/git/xdiff/xmerge.c:53:13: warning: parameter name 'i2' is too short, expected at least 3 characters [readability-identifier-length]
                            long i2, long chg2)
                                 ^
/datasets/git/xdiff/xmerge.c:55:13: warning: variable name 'm' is too short, expected at least 3 characters [readability-identifier-length]
        xdmerge_t *m = *merge;
                   ^
/datasets/git/xdiff/xmerge.c:57:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (mode != m->mode)
                                    ^
                                     {
/datasets/git/xdiff/xmerge.c:64:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!m)
                       ^
                        {
/datasets/git/xdiff/xmerge.c:74:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (*merge)
                           ^
                            {
/datasets/git/xdiff/xmerge.c:81:41: warning: parameter name 'c' is too short, expected at least 3 characters [readability-identifier-length]
static int xdl_cleanup_merge(xdmerge_t *c)
                                        ^
/datasets/git/xdiff/xmerge.c:81:30: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
static int xdl_cleanup_merge(xdmerge_t *c)
                             ^
/datasets/git/xdiff/xmerge.c:84:13: warning: variable 'next_c' is not initialized [cppcoreguidelines-init-variables]
        xdmerge_t *next_c;
                   ^
                          = NULL
/datasets/git/xdiff/xmerge.c:87:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; c; c = next_c) {
        ^
/datasets/git/xdiff/xmerge.c:87:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'c' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; c; c = next_c) {
               ^
/datasets/git/xdiff/xmerge.c:88:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (c->mode == 0)
                                 ^
                                  {
/datasets/git/xdiff/xmerge.c:96:51: warning: parameter name 'i1' is too short, expected at least 3 characters [readability-identifier-length]
static int xdl_merge_cmp_lines(xdfenv_t *xe1, int i1, xdfenv_t *xe2, int i2,
                                                  ^
/datasets/git/xdiff/xmerge.c:96:70: warning: 3 adjacent parameters of 'xdl_merge_cmp_lines' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int xdl_merge_cmp_lines(xdfenv_t *xe1, int i1, xdfenv_t *xe2, int i2,
                                                                     ^~~~~~~
/datasets/git/xdiff/xmerge.c:96:74: note: the first parameter in the range is 'i2'
static int xdl_merge_cmp_lines(xdfenv_t *xe1, int i1, xdfenv_t *xe2, int i2,
                                                                         ^~
/datasets/git/xdiff/xmerge.c:97:24: note: the last parameter in the range is 'flags'
                int line_count, long flags)
                                     ^~~~~
/datasets/git/xdiff/xmerge.c:97:19: note: 'int' and 'long' may be implicitly converted
                int line_count, long flags)
                                ^
/datasets/git/xdiff/xmerge.c:96:74: warning: parameter name 'i2' is too short, expected at least 3 characters [readability-identifier-length]
static int xdl_merge_cmp_lines(xdfenv_t *xe1, int i1, xdfenv_t *xe2, int i2,
                                                                         ^
/datasets/git/xdiff/xmerge.c:99:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/xdiff/xmerge.c:99:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff/xmerge.c:103:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < line_count; i++) {
        ^
/datasets/git/xdiff/xmerge.c:106:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!result)
                            ^
                             {
/datasets/git/xdiff/xmerge.c:112:52: warning: parameter name 'xe' is too short, expected at least 3 characters [readability-identifier-length]
static int xdl_recs_copy_0(int use_orig, xdfenv_t *xe, int i, int count, int needs_cr, int add_nl, char *dest)
                                                   ^
/datasets/git/xdiff/xmerge.c:112:60: warning: parameter name 'i' is too short, expected at least 3 characters [readability-identifier-length]
static int xdl_recs_copy_0(int use_orig, xdfenv_t *xe, int i, int count, int needs_cr, int add_nl, char *dest)
                                                           ^
/datasets/git/xdiff/xmerge.c:112:63: warning: 3 adjacent parameters of 'xdl_recs_copy_0' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int xdl_recs_copy_0(int use_orig, xdfenv_t *xe, int i, int count, int needs_cr, int add_nl, char *dest)
                                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xmerge.c:112:67: note: the first parameter in the range is 'count'
static int xdl_recs_copy_0(int use_orig, xdfenv_t *xe, int i, int count, int needs_cr, int add_nl, char *dest)
                                                                  ^~~~~
/datasets/git/xdiff/xmerge.c:112:92: note: the last parameter in the range is 'add_nl'
static int xdl_recs_copy_0(int use_orig, xdfenv_t *xe, int i, int count, int needs_cr, int add_nl, char *dest)
                                                                                           ^~~~~~
/datasets/git/xdiff/xmerge.c:114:14: warning: variable 'recs' is not initialized [cppcoreguidelines-init-variables]
        xrecord_t **recs;
                    ^
                         = NULL
/datasets/git/xdiff/xmerge.c:119:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (count < 1)
                      ^
                       {
/datasets/git/xdiff/xmerge.c:122:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < count; size += recs[i++]->size)
        ^
/datasets/git/xdiff/xmerge.c:122:14: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0; i < count; size += recs[i++]->size)
                    ^
/datasets/git/xdiff/xmerge.c:122:33: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        for (i = 0; i < count; size += recs[i++]->size)
                                       ^
/datasets/git/xdiff/xmerge.c:122:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < count; size += recs[i++]->size)
                                                       ^
                                                        {
/datasets/git/xdiff/xmerge.c:123:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (dest)
                         ^
                          {
/datasets/git/xdiff/xmerge.c:124:4: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memcpy(dest + size, recs[i]->ptr, recs[i]->size);
                        ^~~~~~
/datasets/git/xdiff/xmerge.c:124:4: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                        memcpy(dest + size, recs[i]->ptr, recs[i]->size);
                        ^~~~~~
/datasets/git/xdiff/xmerge.c:126:7: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                i = recs[count - 1]->size;
                    ^
/datasets/git/xdiff/xmerge.c:129:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                if (dest)
                                         ^
                                          {
/datasets/git/xdiff/xmerge.c:134:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (dest)
                                 ^
                                  {
/datasets/git/xdiff/xmerge.c:142:36: warning: parameter name 'xe' is too short, expected at least 3 characters [readability-identifier-length]
static int xdl_recs_copy(xdfenv_t *xe, int i, int count, int needs_cr, int add_nl, char *dest)
                                   ^
/datasets/git/xdiff/xmerge.c:142:44: warning: parameter name 'i' is too short, expected at least 3 characters [readability-identifier-length]
static int xdl_recs_copy(xdfenv_t *xe, int i, int count, int needs_cr, int add_nl, char *dest)
                                           ^
/datasets/git/xdiff/xmerge.c:147:36: warning: parameter name 'xe' is too short, expected at least 3 characters [readability-identifier-length]
static int xdl_orig_copy(xdfenv_t *xe, int i, int count, int needs_cr, int add_nl, char *dest)
                                   ^
/datasets/git/xdiff/xmerge.c:147:44: warning: parameter name 'i' is too short, expected at least 3 characters [readability-identifier-length]
static int xdl_orig_copy(xdfenv_t *xe, int i, int count, int needs_cr, int add_nl, char *dest)
                                           ^
/datasets/git/xdiff/xmerge.c:157:44: warning: parameter name 'i' is too short, expected at least 3 characters [readability-identifier-length]
static int is_eol_crlf(xdfile_t *file, int i)
                                           ^
/datasets/git/xdiff/xmerge.c:159:7: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        long size;
             ^
                  = 0
/datasets/git/xdiff/xmerge.c:161:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (i < file->nrec - 1)
                               ^
                                {
/datasets/git/xdiff/xmerge.c:165:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!file->nrec)
                        ^
                         {
/datasets/git/xdiff/xmerge.c:168:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if ((size = file->recs[i]->size) &&
             ^
/datasets/git/xdiff/xmerge.c:168:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/xdiff/xmerge.c:168:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/xdiff/xmerge.c:169:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        file->recs[i]->ptr[size - 1] == '\n')
                                                             ^
                                                              {
/datasets/git/xdiff/xmerge.c:173:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!i)
               ^
                {
/datasets/git/xdiff/xmerge.c:181:66: warning: parameter name 'm' is too short, expected at least 3 characters [readability-identifier-length]
static int is_cr_needed(xdfenv_t *xe1, xdfenv_t *xe2, xdmerge_t *m)
                                                                 ^
/datasets/git/xdiff/xmerge.c:183:6: warning: variable 'needs_cr' is not initialized [cppcoreguidelines-init-variables]
        int needs_cr;
            ^
                     = 0
/datasets/git/xdiff/xmerge.c:186:51: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        needs_cr = is_eol_crlf(&xe1->xdf2, m->i1 ? m->i1 - 1 : 0);
                                                         ^
/datasets/git/xdiff/xmerge.c:187:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (needs_cr)
                     ^
                      {
/datasets/git/xdiff/xmerge.c:188:52: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                needs_cr = is_eol_crlf(&xe2->xdf2, m->i2 ? m->i2 - 1 : 0);
                                                                 ^
/datasets/git/xdiff/xmerge.c:190:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (needs_cr)
                     ^
                      {
/datasets/git/xdiff/xmerge.c:196:12: warning: function 'fill_conflict_hunk' has cognitive complexity of 36 (threshold 25) [readability-function-cognitive-complexity]
static int fill_conflict_hunk(xdfenv_t *xe1, const char *name1,
           ^
/datasets/git/xdiff/xmerge.c:202:28: note: +1, including nesting penalty of 0, nesting level increased to 1
        int marker1_size = (name1 ? strlen(name1) + 1 : 0);
                                  ^
/datasets/git/xdiff/xmerge.c:203:28: note: +1, including nesting penalty of 0, nesting level increased to 1
        int marker2_size = (name2 ? strlen(name2) + 1 : 0);
                                  ^
/datasets/git/xdiff/xmerge.c:204:28: note: +1, including nesting penalty of 0, nesting level increased to 1
        int marker3_size = (name3 ? strlen(name3) + 1 : 0);
                                  ^
/datasets/git/xdiff/xmerge.c:207:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (marker_size <= 0)
        ^
/datasets/git/xdiff/xmerge.c:212:15: note: +1, including nesting penalty of 0, nesting level increased to 1
                              dest ? dest + size : NULL);
                                   ^
/datasets/git/xdiff/xmerge.c:214:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!dest) {
        ^
/datasets/git/xdiff/xmerge.c:216:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/xdiff/xmerge.c:219:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (marker1_size) {
                ^
/datasets/git/xdiff/xmerge.c:224:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (needs_cr)
                ^
/datasets/git/xdiff/xmerge.c:231:15: note: +1, including nesting penalty of 0, nesting level increased to 1
                              dest ? dest + size : NULL);
                                   ^
/datasets/git/xdiff/xmerge.c:233:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (style == XDL_MERGE_DIFF3 || style == XDL_MERGE_ZEALOUS_DIFF3) {
        ^
/datasets/git/xdiff/xmerge.c:233:31: note: +1
        if (style == XDL_MERGE_DIFF3 || style == XDL_MERGE_ZEALOUS_DIFF3) {
                                     ^
/datasets/git/xdiff/xmerge.c:235:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!dest) {
                ^
/datasets/git/xdiff/xmerge.c:237:5: note: +1, nesting level increased to 2
                } else {
                  ^
/datasets/git/xdiff/xmerge.c:240:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (marker3_size) {
                        ^
/datasets/git/xdiff/xmerge.c:245:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (needs_cr)
                        ^
/datasets/git/xdiff/xmerge.c:250:16: note: +2, including nesting penalty of 1, nesting level increased to 2
                                      dest ? dest + size : NULL);
                                           ^
/datasets/git/xdiff/xmerge.c:253:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!dest) {
        ^
/datasets/git/xdiff/xmerge.c:255:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/xdiff/xmerge.c:258:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (needs_cr)
                ^
/datasets/git/xdiff/xmerge.c:265:15: note: +1, including nesting penalty of 0, nesting level increased to 1
                              dest ? dest + size : NULL);
                                   ^
/datasets/git/xdiff/xmerge.c:266:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!dest) {
        ^
/datasets/git/xdiff/xmerge.c:268:4: note: +1, nesting level increased to 1
        } else {
          ^
/datasets/git/xdiff/xmerge.c:271:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (marker2_size) {
                ^
/datasets/git/xdiff/xmerge.c:276:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (needs_cr)
                ^
/datasets/git/xdiff/xmerge.c:199:20: warning: 2 adjacent parameters of 'fill_conflict_hunk' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                              int size, int i, int style,
                                        ^~~~~~~~~~~~~~~~
/datasets/git/xdiff/xmerge.c:199:24: note: the first parameter in the range is 'i'
                              int size, int i, int style,
                                            ^
/datasets/git/xdiff/xmerge.c:199:31: note: the last parameter in the range is 'style'
                              int size, int i, int style,
                                                   ^~~~~
/datasets/git/xdiff/xmerge.c:199:24: warning: parameter name 'i' is too short, expected at least 3 characters [readability-identifier-length]
                              int size, int i, int style,
                                            ^
/datasets/git/xdiff/xmerge.c:200:21: warning: parameter name 'm' is too short, expected at least 3 characters [readability-identifier-length]
                              xdmerge_t *m, char *dest, int marker_size)
                                         ^
/datasets/git/xdiff/xmerge.c:202:21: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int marker1_size = (name1 ? strlen(name1) + 1 : 0);
                           ^
/datasets/git/xdiff/xmerge.c:203:21: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int marker2_size = (name2 ? strlen(name2) + 1 : 0);
                           ^
/datasets/git/xdiff/xmerge.c:204:21: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        int marker3_size = (name3 ? strlen(name3) + 1 : 0);
                           ^
/datasets/git/xdiff/xmerge.c:207:23: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (marker_size <= 0)
                             ^
                              {
/datasets/git/xdiff/xmerge.c:211:32: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        size += xdl_recs_copy(xe1, i, m->i1 - i, 0, 0,
                                      ^
/datasets/git/xdiff/xmerge.c:217:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(dest + size, '<', marker_size);
                ^~~~~~
/datasets/git/xdiff/xmerge.c:217:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(dest + size, '<', marker_size);
                ^~~~~~
/datasets/git/xdiff/xmerge.c:221:4: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memcpy(dest + size + 1, name1, marker1_size - 1);
                        ^~~~~~
/datasets/git/xdiff/xmerge.c:221:4: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                        memcpy(dest + size + 1, name1, marker1_size - 1);
                        ^~~~~~
/datasets/git/xdiff/xmerge.c:224:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (needs_cr)
                             ^
                              {
/datasets/git/xdiff/xmerge.c:230:29: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        size += xdl_recs_copy(xe1, m->i1, m->chg1, needs_cr, 1,
                                   ^
/datasets/git/xdiff/xmerge.c:230:36: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        size += xdl_recs_copy(xe1, m->i1, m->chg1, needs_cr, 1,
                                          ^
/datasets/git/xdiff/xmerge.c:238:4: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memset(dest + size, '|', marker_size);
                        ^~~~~~
/datasets/git/xdiff/xmerge.c:238:4: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                        memset(dest + size, '|', marker_size);
                        ^~~~~~
/datasets/git/xdiff/xmerge.c:242:5: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                                memcpy(dest + size + 1, name3, marker3_size - 1);
                                ^~~~~~
/datasets/git/xdiff/xmerge.c:242:5: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                                memcpy(dest + size + 1, name3, marker3_size - 1);
                                ^~~~~~
/datasets/git/xdiff/xmerge.c:245:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (needs_cr)
                                     ^
                                      {
/datasets/git/xdiff/xmerge.c:249:30: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                size += xdl_orig_copy(xe1, m->i0, m->chg0, needs_cr, 1,
                                           ^
/datasets/git/xdiff/xmerge.c:249:37: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                size += xdl_orig_copy(xe1, m->i0, m->chg0, needs_cr, 1,
                                                  ^
/datasets/git/xdiff/xmerge.c:256:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(dest + size, '=', marker_size);
                ^~~~~~
/datasets/git/xdiff/xmerge.c:256:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(dest + size, '=', marker_size);
                ^~~~~~
/datasets/git/xdiff/xmerge.c:258:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (needs_cr)
                             ^
                              {
/datasets/git/xdiff/xmerge.c:264:29: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        size += xdl_recs_copy(xe2, m->i2, m->chg2, needs_cr, 1,
                                   ^
/datasets/git/xdiff/xmerge.c:264:36: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        size += xdl_recs_copy(xe2, m->i2, m->chg2, needs_cr, 1,
                                          ^
/datasets/git/xdiff/xmerge.c:269:3: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memset(dest + size, '>', marker_size);
                ^~~~~~
/datasets/git/xdiff/xmerge.c:269:3: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
                memset(dest + size, '>', marker_size);
                ^~~~~~
/datasets/git/xdiff/xmerge.c:273:4: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                        memcpy(dest + size + 1, name2, marker2_size - 1);
                        ^~~~~~
/datasets/git/xdiff/xmerge.c:273:4: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                        memcpy(dest + size + 1, name2, marker2_size - 1);
                        ^~~~~~
/datasets/git/xdiff/xmerge.c:276:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (needs_cr)
                             ^
                              {
/datasets/git/xdiff/xmerge.c:283:12: warning: function 'xdl_fill_merge_buffer' has cognitive complexity of 26 (threshold 25) [readability-function-cognitive-complexity]
static int xdl_fill_merge_buffer(xdfenv_t *xe1, const char *name1,
           ^
/datasets/git/xdiff/xmerge.c:292:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (size = i = 0; m; m = m->next) {
        ^
/datasets/git/xdiff/xmerge.c:293:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (favor && !m->mode)
                ^
/datasets/git/xdiff/xmerge.c:293:13: note: +1
                if (favor && !m->mode)
                          ^
/datasets/git/xdiff/xmerge.c:296:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (m->mode == 0)
                ^
/datasets/git/xdiff/xmerge.c:301:8: note: +1, nesting level increased to 2
                else if (m->mode & 3) {
                     ^
/datasets/git/xdiff/xmerge.c:304:17: note: +3, including nesting penalty of 2, nesting level increased to 3
                                              dest ? dest + size : NULL);
                                                   ^
/datasets/git/xdiff/xmerge.c:306:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (m->mode & 1) {
                        ^
/datasets/git/xdiff/xmerge.c:310:18: note: +4, including nesting penalty of 3, nesting level increased to 4
                                                      dest ? dest + size : NULL);
                                                           ^
/datasets/git/xdiff/xmerge.c:313:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (m->mode & 2)
                        ^
/datasets/git/xdiff/xmerge.c:315:18: note: +4, including nesting penalty of 3, nesting level increased to 4
                                                      dest ? dest + size : NULL);
                                                           ^
/datasets/git/xdiff/xmerge.c:316:5: note: +1, nesting level increased to 2
                } else
                  ^
/datasets/git/xdiff/xmerge.c:321:15: note: +1, including nesting penalty of 0, nesting level increased to 1
                              dest ? dest + size : NULL);
                                   ^
/datasets/git/xdiff/xmerge.c:287:17: warning: parameter name 'm' is too short, expected at least 3 characters [readability-identifier-length]
                                 xdmerge_t *m, char *dest, int style,
                                            ^
/datasets/git/xdiff/xmerge.c:290:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int size, i;
        ^~~~~~~~~~~~
/datasets/git/xdiff/xmerge.c:287:6: note: inferred assignment of ID-dependent value from ID-dependent member next [altera-id-dependent-backward-branch]
                                 xdmerge_t *m, char *dest, int style,
                                 ^
/datasets/git/xdiff/xmerge.c:290:6: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        int size, i;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xmerge.c:290:12: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int size, i;
                  ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xmerge.c:290:12: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff/xmerge.c:292:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (size = i = 0; m; m = m->next) {
        ^
/datasets/git/xdiff/xmerge.c:292:21: warning: backward branch (for loop) is ID-dependent due to variable reference to 'm' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (size = i = 0; m; m = m->next) {
                           ^
/datasets/git/xdiff/xmerge.c:293:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (favor && !m->mode)
                                      ^
                                       {
/datasets/git/xdiff/xmerge.c:296:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (m->mode == 0)
                                 ^
                                  {
/datasets/git/xdiff/xmerge.c:301:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                else if (m->mode & 3) {
                         ^~~~~~~
/datasets/git/xdiff/xmerge.c:303:34: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        size += xdl_recs_copy(xe1, i, m->i1 - i, 0, 0,
                                                      ^
/datasets/git/xdiff/xmerge.c:306:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (m->mode & 1) {
                            ^~~~~~~
/datasets/git/xdiff/xmerge.c:309:32: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                size += xdl_recs_copy(xe1, m->i1, m->chg1, needs_cr, (m->mode & 2),
                                                           ^
/datasets/git/xdiff/xmerge.c:309:39: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                size += xdl_recs_copy(xe1, m->i1, m->chg1, needs_cr, (m->mode & 2),
                                                                  ^
/datasets/git/xdiff/xmerge.c:309:59: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                size += xdl_recs_copy(xe1, m->i1, m->chg1, needs_cr, (m->mode & 2),
                                                                                      ^~~~~~~
/datasets/git/xdiff/xmerge.c:313:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (m->mode & 2)
                            ^~~~~~~
/datasets/git/xdiff/xmerge.c:313:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (m->mode & 2)
                                        ^
                                         {
/datasets/git/xdiff/xmerge.c:314:32: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                size += xdl_recs_copy(xe2, m->i2, m->chg2, 0, 0,
                                                           ^
/datasets/git/xdiff/xmerge.c:314:39: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                size += xdl_recs_copy(xe2, m->i2, m->chg2, 0, 0,
                                                                  ^
/datasets/git/xdiff/xmerge.c:316:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/xdiff/xmerge.c:318:7: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                i = m->i1 + m->chg1;
                    ^
/datasets/git/xdiff/xmerge.c:320:32: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        size += xdl_recs_copy(xe1, i, xe1->xdf2.nrec - i, 0, 0,
                                      ^
/datasets/git/xdiff/xmerge.c:328:31: warning: narrowing conversion from 'unsigned long' to signed type 'long' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                            rec2->ptr, rec2->size, flags);
                                                   ^
/datasets/git/xdiff/xmerge.c:334:82: warning: parameter name 'm' is too short, expected at least 3 characters [readability-identifier-length]
static void xdl_refine_zdiff3_conflicts(xdfenv_t *xe1, xdfenv_t *xe2, xdmerge_t *m,
                                                                                 ^
/datasets/git/xdiff/xmerge.c:337:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        xrecord_t **rec1 = xe1->xdf2.recs, **rec2 = xe2->xdf2.recs;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xmerge.c:334:71: note: inferred assignment of ID-dependent value from ID-dependent member next [altera-id-dependent-backward-branch]
static void xdl_refine_zdiff3_conflicts(xdfenv_t *xe1, xdfenv_t *xe2, xdmerge_t *m,
                                                                      ^
/datasets/git/xdiff/xmerge.c:338:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'm' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; m; m = m->next) {
               ^
/datasets/git/xdiff/xmerge.c:340:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (m->mode)
                            ^
                             {
/datasets/git/xdiff/xmerge.c:343:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while(m->chg1 && m->chg2 &&
                ^
/datasets/git/xdiff/xmerge.c:334:71: note: inferred assignment of ID-dependent value from ID-dependent member next [altera-id-dependent-backward-branch]
static void xdl_refine_zdiff3_conflicts(xdfenv_t *xe1, xdfenv_t *xe2, xdmerge_t *m,
                                                                      ^
/datasets/git/xdiff/xmerge.c:343:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'm' and may cause performance degradation [altera-id-dependent-backward-branch]
                while(m->chg1 && m->chg2 &&
                      ^
/datasets/git/xdiff/xmerge.c:350:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (m->chg1 && m->chg2 &&
                ^
/datasets/git/xdiff/xmerge.c:350:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'm' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (m->chg1 && m->chg2 &&
                       ^
/datasets/git/xdiff/xmerge.c:363:74: warning: parameter name 'm' is too short, expected at least 3 characters [readability-identifier-length]
static int xdl_refine_conflicts(xdfenv_t *xe1, xdfenv_t *xe2, xdmerge_t *m,
                                                                         ^
/datasets/git/xdiff/xmerge.c:363:63: note: inferred assignment of ID-dependent value from ID-dependent member next [altera-id-dependent-backward-branch]
static int xdl_refine_conflicts(xdfenv_t *xe1, xdfenv_t *xe2, xdmerge_t *m,
                                                              ^
/datasets/git/xdiff/xmerge.c:366:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'm' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; m; m = m->next) {
               ^
/datasets/git/xdiff/xmerge.c:367:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                mmfile_t t1, t2;
                ^~~~~~~~~~~~~~~~
/datasets/git/xdiff/xmerge.c:367:12: warning: variable name 't1' is too short, expected at least 3 characters [readability-identifier-length]
                mmfile_t t1, t2;
                         ^
/datasets/git/xdiff/xmerge.c:367:16: warning: variable name 't2' is too short, expected at least 3 characters [readability-identifier-length]
                mmfile_t t1, t2;
                             ^
/datasets/git/xdiff/xmerge.c:368:12: warning: variable name 'xe' is too short, expected at least 3 characters [readability-identifier-length]
                xdfenv_t xe;
                         ^
/datasets/git/xdiff/xmerge.c:369:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                xdchange_t *xscr, *x;
                ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xmerge.c:369:15: warning: variable 'xscr' is not initialized [cppcoreguidelines-init-variables]
                xdchange_t *xscr, *x;
                            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xmerge.c:369:22: warning: variable 'x' is not initialized [cppcoreguidelines-init-variables]
                xdchange_t *xscr, *x;
                                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xmerge.c:369:22: warning: variable name 'x' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff/xmerge.c:370:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int i1 = m->i1, i2 = m->i2;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xmerge.c:370:7: warning: variable name 'i1' is too short, expected at least 3 characters [readability-identifier-length]
                int i1 = m->i1, i2 = m->i2;
                    ^
/datasets/git/xdiff/xmerge.c:370:12: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int i1 = m->i1, i2 = m->i2;
                         ^
/datasets/git/xdiff/xmerge.c:370:19: warning: variable name 'i2' is too short, expected at least 3 characters [readability-identifier-length]
                int i1 = m->i1, i2 = m->i2;
                                ^
/datasets/git/xdiff/xmerge.c:370:24: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                int i1 = m->i1, i2 = m->i2;
                                     ^
/datasets/git/xdiff/xmerge.c:373:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (m->mode)
                            ^
                             {
/datasets/git/xdiff/xmerge.c:377:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (m->chg1 == 0 || m->chg2 == 0)
                                                 ^
                                                  {
/datasets/git/xdiff/xmerge.c:390:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (xdl_do_diff(&t1, &t2, xpp, &xe) < 0)
                                                        ^
                                                         {
/datasets/git/xdiff/xmerge.c:392:46: warning: narrowing conversion from 'unsigned long' to signed type 'long' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                if (xdl_change_compact(&xe.xdf1, &xe.xdf2, xpp->flags) < 0 ||
                                                           ^
/datasets/git/xdiff/xmerge.c:393:46: warning: narrowing conversion from 'unsigned long' to signed type 'long' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                    xdl_change_compact(&xe.xdf2, &xe.xdf1, xpp->flags) < 0 ||
                                                           ^
/datasets/git/xdiff/xmerge.c:409:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (xscr->next) {
                ^
/datasets/git/xdiff/xmerge.c:409:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'xscr' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (xscr->next) {
                       ^
/datasets/git/xdiff/xmerge.c:410:15: warning: variable name 'm2' is too short, expected at least 3 characters [readability-identifier-length]
                        xdmerge_t *m2 = xdl_malloc(sizeof(xdmerge_t));
                                   ^
/datasets/git/xdiff/xmerge.c:434:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (size--)
        ^
/datasets/git/xdiff/xmerge.c:434:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (size--)
                      ^
                       {
/datasets/git/xdiff/xmerge.c:435:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                if (isalnum((unsigned char)*(ptr++)))
                    ^
/datasets/git/./git-compat-util.h:1220:20: note: expanded from macro 'isalnum'
#define isalnum(x) sane_istest(x,GIT_ALPHA | GIT_DIGIT)
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/xdiff/xmerge.c:435:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (isalnum((unsigned char)*(ptr++)))
                                                     ^
                                                      {
/datasets/git/xdiff/xmerge.c:440:42: warning: parameter name 'xe' is too short, expected at least 3 characters [readability-identifier-length]
static int lines_contain_alnum(xdfenv_t *xe, int i, int chg)
                                         ^
/datasets/git/xdiff/xmerge.c:440:50: warning: parameter name 'i' is too short, expected at least 3 characters [readability-identifier-length]
static int lines_contain_alnum(xdfenv_t *xe, int i, int chg)
                                                 ^
/datasets/git/xdiff/xmerge.c:442:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; chg; chg--, i++)
        ^
/datasets/git/xdiff/xmerge.c:442:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (; chg; chg--, i++)
                               ^
                                {
/datasets/git/xdiff/xmerge.c:444:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                xe->xdf2.recs[i]->size))
                                                        ^
                                                         {
/datasets/git/xdiff/xmerge.c:453:48: warning: parameter name 'm' is too short, expected at least 3 characters [readability-identifier-length]
static void xdl_merge_two_conflicts(xdmerge_t *m)
                                               ^
/datasets/git/xdiff/xmerge.c:467:65: warning: parameter name 'm' is too short, expected at least 3 characters [readability-identifier-length]
static int xdl_simplify_non_conflicts(xdfenv_t *xe1, xdmerge_t *m,
                                                                ^
/datasets/git/xdiff/xmerge.c:472:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!m)
               ^
                {
/datasets/git/xdiff/xmerge.c:474:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/xdiff/xmerge.c:476:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
                int begin, end;
                ^~~~~~~~~~~~~~~
/datasets/git/xdiff/xmerge.c:476:7: warning: variable 'begin' is not initialized [cppcoreguidelines-init-variables]
                int begin, end;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xmerge.c:476:14: warning: variable 'end' is not initialized [cppcoreguidelines-init-variables]
                int begin, end;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xmerge.c:478:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!next_m)
                            ^
                             {
/datasets/git/xdiff/xmerge.c:481:11: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                begin = m->i1 + m->chg1;
                        ^
/datasets/git/xdiff/xmerge.c:482:9: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                end = next_m->i1;
                      ^
/datasets/git/xdiff/xmerge.c:505:12: warning: function 'xdl_do_merge' has cognitive complexity of 54 (threshold 25) [readability-function-cognitive-complexity]
static int xdl_do_merge(xdfenv_t *xe1, xdchange_t *xscr1,
           ^
/datasets/git/xdiff/xmerge.c:534:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (style == XDL_MERGE_DIFF3 || style == XDL_MERGE_ZEALOUS_DIFF3) {
        ^
/datasets/git/xdiff/xmerge.c:534:31: note: +1
        if (style == XDL_MERGE_DIFF3 || style == XDL_MERGE_ZEALOUS_DIFF3) {
                                     ^
/datasets/git/xdiff/xmerge.c:539:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (XDL_MERGE_EAGER < level)
                ^
/datasets/git/xdiff/xmerge.c:545:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (xscr1 && xscr2) {
        ^
/datasets/git/xdiff/xmerge.c:545:15: note: +1
        while (xscr1 && xscr2) {
                     ^
/datasets/git/xdiff/xmerge.c:546:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!changes)
                ^
/datasets/git/xdiff/xmerge.c:548:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (xscr1->i1 + xscr1->chg1 < xscr2->i1) {
                ^
/datasets/git/xdiff/xmerge.c:555:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (xdl_append_merge(&c, 1,
                        ^
/datasets/git/xdiff/xmerge.c:563:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (xscr2->i1 + xscr2->chg1 < xscr1->i1) {
                ^
/datasets/git/xdiff/xmerge.c:570:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (xdl_append_merge(&c, 2,
                        ^
/datasets/git/xdiff/xmerge.c:578:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (level == XDL_MERGE_MINIMAL || xscr1->i1 != xscr2->i1 ||
                ^
/datasets/git/xdiff/xmerge.c:580:32: note: +1
                                xscr1->chg2 != xscr2->chg2 ||
                                                           ^
/datasets/git/xdiff/xmerge.c:591:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (off > 0) {
                        ^
/datasets/git/xdiff/xmerge.c:595:4: note: +1, nesting level increased to 3
                        else
                        ^
/datasets/git/xdiff/xmerge.c:600:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (ffo < 0) {
                        ^
/datasets/git/xdiff/xmerge.c:603:6: note: +1, nesting level increased to 3
                        } else
                          ^
/datasets/git/xdiff/xmerge.c:605:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (xdl_append_merge(&c, 0,
                        ^
/datasets/git/xdiff/xmerge.c:615:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (i1 >= i2)
                ^
/datasets/git/xdiff/xmerge.c:617:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (i2 >= i1)
                ^
/datasets/git/xdiff/xmerge.c:620:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (xscr1) {
        ^
/datasets/git/xdiff/xmerge.c:621:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!changes)
                ^
/datasets/git/xdiff/xmerge.c:629:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (xdl_append_merge(&c, 1,
                ^
/datasets/git/xdiff/xmerge.c:636:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        while (xscr2) {
        ^
/datasets/git/xdiff/xmerge.c:637:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!changes)
                ^
/datasets/git/xdiff/xmerge.c:645:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (xdl_append_merge(&c, 2,
                ^
/datasets/git/xdiff/xmerge.c:652:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!changes)
        ^
/datasets/git/xdiff/xmerge.c:655:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (style == XDL_MERGE_ZEALOUS_DIFF3) {
        ^
/datasets/git/xdiff/xmerge.c:657:9: note: +1, nesting level increased to 1
        } else if (XDL_MERGE_ZEALOUS <= level &&
               ^
/datasets/git/xdiff/xmerge.c:657:40: note: +1
        } else if (XDL_MERGE_ZEALOUS <= level &&
                                              ^
/datasets/git/xdiff/xmerge.c:658:56: note: +1
                   (xdl_refine_conflicts(xe1, xe2, changes, xpp) < 0 ||
                                                                     ^
/datasets/git/xdiff/xmerge.c:665:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (result) {
        ^
/datasets/git/xdiff/xmerge.c:672:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!result->ptr) {
                ^
/datasets/git/xdiff/xmerge.c:509:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        xdmerge_t *changes, *c;
        ^~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xmerge.c:509:13: warning: variable 'changes' is not initialized [cppcoreguidelines-init-variables]
        xdmerge_t *changes, *c;
                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xmerge.c:509:23: warning: variable 'c' is not initialized [cppcoreguidelines-init-variables]
        xdmerge_t *changes, *c;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xmerge.c:509:23: warning: variable name 'c' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff/xmerge.c:514:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i0, i1, i2, chg0, chg1, chg2;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xmerge.c:505:40: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
static int xdl_do_merge(xdfenv_t *xe1, xdchange_t *xscr1,
                                       ^
/datasets/git/xdiff/xmerge.c:514:6: warning: variable 'i0' is not initialized [cppcoreguidelines-init-variables]
        int i0, i1, i2, chg0, chg1, chg2;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xmerge.c:514:6: warning: variable name 'i0' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff/xmerge.c:514:10: warning: variable 'i1' is not initialized [cppcoreguidelines-init-variables]
        int i0, i1, i2, chg0, chg1, chg2;
                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xmerge.c:514:10: warning: variable name 'i1' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff/xmerge.c:514:14: warning: variable 'i2' is not initialized [cppcoreguidelines-init-variables]
        int i0, i1, i2, chg0, chg1, chg2;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xmerge.c:514:14: warning: variable name 'i2' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff/xmerge.c:514:18: warning: variable 'chg0' is not initialized [cppcoreguidelines-init-variables]
        int i0, i1, i2, chg0, chg1, chg2;
                        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xmerge.c:514:24: warning: variable 'chg1' is not initialized [cppcoreguidelines-init-variables]
        int i0, i1, i2, chg0, chg1, chg2;
                              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xmerge.c:514:30: warning: variable 'chg2' is not initialized [cppcoreguidelines-init-variables]
        int i0, i1, i2, chg0, chg1, chg2;
                                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xmerge.c:539:31: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (XDL_MERGE_EAGER < level)
                                            ^
                                             {
/datasets/git/xdiff/xmerge.c:545:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (xscr1 && xscr2) {
        ^
/datasets/git/xdiff/xmerge.c:505:40: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
static int xdl_do_merge(xdfenv_t *xe1, xdchange_t *xscr1,
                                       ^
/datasets/git/xdiff/xmerge.c:545:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'xscr1' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (xscr1 && xscr2) {
               ^
/datasets/git/xdiff/xmerge.c:546:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!changes)
                             ^
                              {
/datasets/git/xdiff/xmerge.c:549:9: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        i0 = xscr1->i1;
                             ^
/datasets/git/xdiff/xmerge.c:550:9: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        i1 = xscr1->i2;
                             ^
/datasets/git/xdiff/xmerge.c:551:9: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        i2 = xscr2->i2 - xscr2->i1 + xscr1->i1;
                             ^
/datasets/git/xdiff/xmerge.c:552:11: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        chg0 = xscr1->chg1;
                               ^
/datasets/git/xdiff/xmerge.c:553:11: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        chg1 = xscr1->chg2;
                               ^
/datasets/git/xdiff/xmerge.c:554:11: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        chg2 = xscr1->chg1;
                               ^
/datasets/git/xdiff/xmerge.c:564:9: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        i0 = xscr2->i1;
                             ^
/datasets/git/xdiff/xmerge.c:565:9: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        i1 = xscr1->i2 - xscr1->i1 + xscr2->i1;
                             ^
/datasets/git/xdiff/xmerge.c:566:9: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        i2 = xscr2->i2;
                             ^
/datasets/git/xdiff/xmerge.c:567:11: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        chg0 = xscr2->chg1;
                               ^
/datasets/git/xdiff/xmerge.c:568:11: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        chg1 = xscr2->chg1;
                               ^
/datasets/git/xdiff/xmerge.c:569:11: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        chg2 = xscr2->chg2;
                               ^
/datasets/git/xdiff/xmerge.c:581:30: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                xdl_merge_cmp_lines(xe1, xscr1->i2,
                                                         ^
/datasets/git/xdiff/xmerge.c:582:11: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                        xe2, xscr2->i2,
                                             ^
/datasets/git/xdiff/xmerge.c:583:6: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                        xscr1->chg2, xpp->flags)) {
                                        ^
/datasets/git/xdiff/xmerge.c:583:19: warning: narrowing conversion from 'unsigned long' to signed type 'long' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                                        xscr1->chg2, xpp->flags)) {
                                                     ^
/datasets/git/xdiff/xmerge.c:585:14: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        int off = xscr1->i1 - xscr2->i1;
                                  ^
/datasets/git/xdiff/xmerge.c:586:14: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        int ffo = off + xscr1->chg1 - xscr2->chg1;
                                  ^
/datasets/git/xdiff/xmerge.c:588:9: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        i0 = xscr1->i1;
                             ^
/datasets/git/xdiff/xmerge.c:589:9: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        i1 = xscr1->i2;
                             ^
/datasets/git/xdiff/xmerge.c:590:9: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        i2 = xscr2->i2;
                             ^
/datasets/git/xdiff/xmerge.c:595:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/xdiff/xmerge.c:597:11: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        chg0 = xscr1->i1 + xscr1->chg1 - i0;
                               ^
/datasets/git/xdiff/xmerge.c:598:11: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        chg1 = xscr1->i2 + xscr1->chg2 - i1;
                               ^
/datasets/git/xdiff/xmerge.c:599:11: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        chg2 = xscr2->i2 + xscr2->chg2 - i2;
                               ^
/datasets/git/xdiff/xmerge.c:603:10: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        } else
                              ^
                               {
/datasets/git/xdiff/xmerge.c:612:8: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                i1 = xscr1->i1 + xscr1->chg1;
                     ^
/datasets/git/xdiff/xmerge.c:613:8: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                i2 = xscr2->i1 + xscr2->chg1;
                     ^
/datasets/git/xdiff/xmerge.c:615:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (i1 >= i2)
                             ^
                              {
/datasets/git/xdiff/xmerge.c:617:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (i2 >= i1)
                             ^
                              {
/datasets/git/xdiff/xmerge.c:620:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (xscr1) {
        ^
/datasets/git/xdiff/xmerge.c:506:18: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
                xdfenv_t *xe2, xdchange_t *xscr2,
                               ^
/datasets/git/xdiff/xmerge.c:620:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'xscr1' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (xscr1) {
               ^
/datasets/git/xdiff/xmerge.c:621:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!changes)
                             ^
                              {
/datasets/git/xdiff/xmerge.c:623:8: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                i0 = xscr1->i1;
                     ^
/datasets/git/xdiff/xmerge.c:624:8: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                i1 = xscr1->i2;
                     ^
/datasets/git/xdiff/xmerge.c:625:8: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                i2 = xscr1->i1 + xe2->xdf2.nrec - xe2->xdf1.nrec;
                     ^
/datasets/git/xdiff/xmerge.c:626:10: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                chg0 = xscr1->chg1;
                       ^
/datasets/git/xdiff/xmerge.c:627:10: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                chg1 = xscr1->chg2;
                       ^
/datasets/git/xdiff/xmerge.c:628:10: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                chg2 = xscr1->chg1;
                       ^
/datasets/git/xdiff/xmerge.c:636:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (xscr2) {
        ^
/datasets/git/xdiff/xmerge.c:636:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'xscr2' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (xscr2) {
               ^
/datasets/git/xdiff/xmerge.c:637:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!changes)
                             ^
                              {
/datasets/git/xdiff/xmerge.c:639:8: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                i0 = xscr2->i1;
                     ^
/datasets/git/xdiff/xmerge.c:640:8: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                i1 = xscr2->i1 + xe1->xdf2.nrec - xe1->xdf1.nrec;
                     ^
/datasets/git/xdiff/xmerge.c:641:8: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                i2 = xscr2->i2;
                     ^
/datasets/git/xdiff/xmerge.c:642:10: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                chg0 = xscr2->chg1;
                       ^
/datasets/git/xdiff/xmerge.c:643:10: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                chg1 = xscr2->chg1;
                       ^
/datasets/git/xdiff/xmerge.c:644:10: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                chg2 = xscr2->chg2;
                       ^
/datasets/git/xdiff/xmerge.c:652:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!changes)
                     ^
                      {
/datasets/git/xdiff/xmerge.c:687:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        xdchange_t *xscr1 = NULL, *xscr2 = NULL;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xmerge.c:688:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        xdfenv_t xe1, xe2;
        ^~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xmerge.c:695:6: warning: 1st argument 'orig' (passed to 'mf1') looks like it might be swapped with the 2nd, 'mf1' (passed to 'mf2') [readability-suspicious-call-argument]
        if (xdl_do_diff(orig, mf1, xpp, &xe1) < 0)
            ^           ~~~~  ~~~
/datasets/git/./xdiff/xdiffi.h:52:5: note: in the call to 'xdl_do_diff', declared here
int xdl_do_diff(mmfile_t *mf1, mmfile_t *mf2, xpparam_t const *xpp,
    ^                     ~~~            ~~~
/datasets/git/xdiff/xmerge.c:695:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (xdl_do_diff(orig, mf1, xpp, &xe1) < 0)
                                                  ^
                                                   {
/datasets/git/xdiff/xmerge.c:698:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (xdl_do_diff(orig, mf2, xpp, &xe2) < 0)
                                                  ^
                                                   {
/datasets/git/xdiff/xmerge.c:701:47: warning: narrowing conversion from 'unsigned long' to signed type 'long' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        if (xdl_change_compact(&xe1.xdf1, &xe1.xdf2, xpp->flags) < 0 ||
                                                     ^
/datasets/git/xdiff/xmerge.c:702:47: warning: narrowing conversion from 'unsigned long' to signed type 'long' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
            xdl_change_compact(&xe1.xdf2, &xe1.xdf1, xpp->flags) < 0 ||
                                                     ^
/datasets/git/xdiff/xmerge.c:703:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            xdl_build_script(&xe1, &xscr1) < 0)
                                               ^
                                                {
/datasets/git/xdiff/xmerge.c:706:47: warning: narrowing conversion from 'unsigned long' to signed type 'long' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        if (xdl_change_compact(&xe2.xdf1, &xe2.xdf2, xpp->flags) < 0 ||
                                                     ^
/datasets/git/xdiff/xmerge.c:707:47: warning: narrowing conversion from 'unsigned long' to signed type 'long' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
            xdl_change_compact(&xe2.xdf2, &xe2.xdf1, xpp->flags) < 0 ||
                                                     ^
/datasets/git/xdiff/xmerge.c:708:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
            xdl_build_script(&xe2, &xscr2) < 0)
                                               ^
                                                {
/datasets/git/xdiff/xmerge.c:713:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!result->ptr)
                                 ^
                                  {
/datasets/git/xdiff/xmerge.c:716:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(result->ptr, mf2->ptr, mf2->size);
                ^~~~~~
/datasets/git/xdiff/xmerge.c:716:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(result->ptr, mf2->ptr, mf2->size);
                ^~~~~~
/datasets/git/xdiff/xmerge.c:720:20: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!result->ptr)
                                 ^
                                  {
/datasets/git/xdiff/xmerge.c:723:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(result->ptr, mf1->ptr, mf1->size);
                ^~~~~~
/datasets/git/xdiff/xmerge.c:723:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(result->ptr, mf1->ptr, mf1->size);
                ^~~~~~
/datasets/git/xdiff/xpatience.c:47:8: warning: accessing fields in struct 'hashmap' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
struct hashmap {
       ^
/datasets/git/xdiff/xpatience.c:47:8: note: use "__attribute__((aligned(64)))" to align struct 'hashmap' to 64 bytes
/datasets/git/xdiff/xpatience.c:49:9: warning: accessing fields in struct 'entry' is inefficient due to padding; only needs 44 bytes but is using 48 bytes [altera-struct-pack-align]
        struct entry {
               ^
/datasets/git/xdiff/xpatience.c:49:9: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 'entry'
/datasets/git/xdiff/xpatience.c:49:9: warning: accessing fields in struct 'entry' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
        struct entry {
               ^
/datasets/git/xdiff/xpatience.c:49:9: note: use "__attribute__((aligned(64)))" to align struct 'entry' to 64 bytes
/datasets/git/xdiff/xpatience.c:78:6: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int i;
            ^
              = 0
/datasets/git/xdiff/xpatience.c:78:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff/xpatience.c:79:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < xpp->anchors_nr; i++) {
        ^
/datasets/git/xdiff/xpatience.c:80:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!strncmp(line, xpp->anchors[i], strlen(xpp->anchors[i])))
                                                                             ^
                                                                              {
/datasets/git/xdiff/xpatience.c:103:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int index = (int)((record->ha << 1) % map->alloc);
                           ^             ~
/datasets/git/xdiff/xpatience.c:105:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (map->entries[index].line1) {
        ^
/datasets/git/xdiff/xpatience.c:105:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'index' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (map->entries[index].line1) {
               ^
/datasets/git/xdiff/xpatience.c:107:30: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (++index >= map->alloc)
                                                  ^
                                                   {
/datasets/git/xdiff/xpatience.c:111:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pass == 2)
                              ^
                               {
/datasets/git/xdiff/xpatience.c:113:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (pass == 1 || map->entries[index].line2)
                                                           ^
                                                            {
/datasets/git/xdiff/xpatience.c:115:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/xdiff/xpatience.c:119:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (pass == 2)
                      ^
                       {
/datasets/git/xdiff/xpatience.c:124:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!map->first)
                        ^
                         {
/datasets/git/xdiff/xpatience.c:143:3: warning: 4 adjacent parameters of 'fill_hashmap' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                int line1, int count1, int line2, int count2)
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xpatience.c:143:7: note: the first parameter in the range is 'line1'
                int line1, int count1, int line2, int count2)
                    ^~~~~
/datasets/git/xdiff/xpatience.c:143:41: note: the last parameter in the range is 'count2'
                int line1, int count1, int line2, int count2)
                                                      ^~~~~~
/datasets/git/xdiff/xpatience.c:150:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if (!XDL_CALLOC_ARRAY(result->entries, result->alloc))
             ^
/datasets/git/./xdiff/xmacros.h:59:34: note: expanded from macro 'XDL_CALLOC_ARRAY'
#define XDL_CALLOC_ARRAY(p, nr) ((p) = xdl_calloc(nr, sizeof(*(p))))
                                 ^
/datasets/git/xdiff/xpatience.c:150:7: note: if it should be an assignment, move it out of the 'if' condition
        if (!XDL_CALLOC_ARRAY(result->entries, result->alloc))
             ^
/datasets/git/./xdiff/xmacros.h:59:34: note: expanded from macro 'XDL_CALLOC_ARRAY'
#define XDL_CALLOC_ARRAY(p, nr) ((p) = xdl_calloc(nr, sizeof(*(p))))
                                 ^
/datasets/git/xdiff/xpatience.c:150:7: note: if it is meant to be an equality check, change '=' to '=='
        if (!XDL_CALLOC_ARRAY(result->entries, result->alloc))
             ^
/datasets/git/./xdiff/xmacros.h:59:34: note: expanded from macro 'XDL_CALLOC_ARRAY'
#define XDL_CALLOC_ARRAY(p, nr) ((p) = xdl_calloc(nr, sizeof(*(p))))
                                 ^
/datasets/git/xdiff/xpatience.c:150:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!XDL_CALLOC_ARRAY(result->entries, result->alloc))
                                                              ^
                                                               {
/datasets/git/xdiff/xpatience.c:154:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (count1--)
        ^
/datasets/git/xdiff/xpatience.c:154:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (count1--)
                        ^
                         {
/datasets/git/xdiff/xpatience.c:158:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (count2--)
        ^
/datasets/git/xdiff/xpatience.c:158:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        while (count2--)
                        ^
                         {
/datasets/git/xdiff/xpatience.c:171:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int left = -1, right = longest;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xpatience.c:171:2: note: inferred assignment of ID-dependent value from ID-dependent variable middle [altera-id-dependent-backward-branch]
/datasets/git/xdiff/xpatience.c:173:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (left + 1 < right) {
        ^
/datasets/git/xdiff/xpatience.c:173:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'left' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (left + 1 < right) {
               ^
/datasets/git/xdiff/xpatience.c:176:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (sequence[middle]->line2 > entry->line2)
                                                           ^
                                                            {
/datasets/git/xdiff/xpatience.c:178:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/xdiff/xpatience.c:196:17: warning: variable 'sequence' is not initialized [cppcoreguidelines-init-variables]
        struct entry **sequence;
                       ^
                                = NULL
/datasets/git/xdiff/xpatience.c:197:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int longest = 0, i;
        ^~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xpatience.c:197:19: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        int longest = 0, i;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xpatience.c:197:19: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff/xpatience.c:198:16: warning: variable 'entry' is not initialized [cppcoreguidelines-init-variables]
        struct entry *entry;
                      ^
                            = NULL
/datasets/git/xdiff/xpatience.c:207:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if (!XDL_ALLOC_ARRAY(sequence, map->nr))
             ^
/datasets/git/./xdiff/xmacros.h:54:3: note: expanded from macro 'XDL_ALLOC_ARRAY'
        ((p) = SIZE_MAX / sizeof(*(p)) >= (size_t)(nr)  \
         ^
/datasets/git/xdiff/xpatience.c:207:7: note: if it should be an assignment, move it out of the 'if' condition
        if (!XDL_ALLOC_ARRAY(sequence, map->nr))
             ^
/datasets/git/./xdiff/xmacros.h:54:3: note: expanded from macro 'XDL_ALLOC_ARRAY'
        ((p) = SIZE_MAX / sizeof(*(p)) >= (size_t)(nr)  \
         ^
/datasets/git/xdiff/xpatience.c:207:7: note: if it is meant to be an equality check, change '=' to '=='
        if (!XDL_ALLOC_ARRAY(sequence, map->nr))
             ^
/datasets/git/./xdiff/xmacros.h:54:3: note: expanded from macro 'XDL_ALLOC_ARRAY'
        ((p) = SIZE_MAX / sizeof(*(p)) >= (size_t)(nr)  \
         ^
/datasets/git/xdiff/xpatience.c:198:2: note: inferred assignment of ID-dependent value from ID-dependent member first [altera-id-dependent-backward-branch]
        struct entry *entry;
        ^
/datasets/git/xdiff/xpatience.c:207:7: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        if (!XDL_ALLOC_ARRAY(sequence, map->nr))
             ^
/datasets/git/./xdiff/xmacros.h:54:20: note: expanded from macro 'XDL_ALLOC_ARRAY'
        ((p) = SIZE_MAX / sizeof(*(p)) >= (size_t)(nr)  \
                          ^
/datasets/git/xdiff/xpatience.c:207:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!XDL_ALLOC_ARRAY(sequence, map->nr))
                                                ^
                                                 {
/datasets/git/xdiff/xpatience.c:210:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (entry = map->first; entry; entry = entry->next) {
        ^
/datasets/git/xdiff/xpatience.c:198:2: note: inferred assignment of ID-dependent value from ID-dependent member first [altera-id-dependent-backward-branch]
        struct entry *entry;
        ^
/datasets/git/xdiff/xpatience.c:210:27: warning: backward branch (for loop) is ID-dependent due to variable reference to 'entry' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (entry = map->first; entry; entry = entry->next) {
                                 ^
/datasets/git/xdiff/xpatience.c:211:51: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!entry->line2 || entry->line2 == NON_UNIQUE)
                                                                ^
                                                                 {
/datasets/git/xdiff/xpatience.c:216:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (i <= anchor_i)
                                  ^
                                   {
/datasets/git/xdiff/xpatience.c:237:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        while (entry->previous) {
        ^
/datasets/git/xdiff/xpatience.c:237:9: warning: backward branch (while loop) is ID-dependent due to variable reference to 'entry' and may cause performance degradation [altera-id-dependent-backward-branch]
        while (entry->previous) {
               ^
/datasets/git/xdiff/xpatience.c:256:12: warning: function 'walk_common_sequence' is within a recursive call chain [misc-no-recursion]
static int walk_common_sequence(struct hashmap *map, struct entry *first,
           ^
/datasets/git/xdiff/xpatience.c:323:12: note: example recursive call chain, starting from function 'patience_diff'
static int patience_diff(xpparam_t const *xpp, xdfenv_t *env,
           ^
/datasets/git/xdiff/xpatience.c:360:12: note: Frame #1: function 'patience_diff' calls function 'walk_common_sequence' here:
                result = walk_common_sequence(&map, first,
                         ^
/datasets/git/xdiff/xpatience.c:284:8: note: Frame #2: function 'walk_common_sequence' calls function 'patience_diff' here:
                        if (patience_diff(map->xpp, map->env,
                            ^
/datasets/git/xdiff/xpatience.c:284:8: note: ... which was the starting point of the recursive call chain; there may be other cycles
/datasets/git/xdiff/xpatience.c:257:14: warning: 2 adjacent parameters of 'walk_common_sequence' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                int line1, int count1, int line2, int count2)
                           ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xpatience.c:257:18: note: the first parameter in the range is 'count1'
                int line1, int count1, int line2, int count2)
                               ^~~~~~
/datasets/git/xdiff/xpatience.c:257:30: note: the last parameter in the range is 'line2'
                int line1, int count1, int line2, int count2)
                                           ^~~~~
/datasets/git/xdiff/xpatience.c:259:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int end1 = line1 + count1, end2 = line2 + count2;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xpatience.c:260:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int next1, next2;
        ^~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xpatience.c:260:6: warning: variable 'next1' is not initialized [cppcoreguidelines-init-variables]
        int next1, next2;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xpatience.c:260:13: warning: variable 'next2' is not initialized [cppcoreguidelines-init-variables]
        int next1, next2;
                   ^
/datasets/git/xdiff/xpatience.c:257:3: note: inferred assignment of ID-dependent value from ID-dependent member line1 [altera-id-dependent-backward-branch]
                int line1, int count1, int line2, int count2)
                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xpatience.c:265:12: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        next1 = first->line1;
                                ^
/datasets/git/xdiff/xpatience.c:266:12: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        next2 = first->line2;
                                ^
/datasets/git/xdiff/xpatience.c:267:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (next1 > line1 && next2 > line2 &&
                        ^
/datasets/git/xdiff/xpatience.c:267:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'next1' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (next1 > line1 && next2 > line2 &&
                               ^
/datasets/git/xdiff/xpatience.c:276:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (line1 < next1 && line2 < next2 &&
                ^
/datasets/git/xdiff/xpatience.c:276:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'line1' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (line1 < next1 && line2 < next2 &&
                       ^
/datasets/git/xdiff/xpatience.c:286:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        line2, next2 - line2))
                                                              ^
                                                               {
/datasets/git/xdiff/xpatience.c:290:14: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!first)
                           ^
                            {
/datasets/git/xdiff/xpatience.c:293:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (first->next &&
                ^
/datasets/git/xdiff/xpatience.c:260:2: note: inferred assignment of ID-dependent value from ID-dependent member line1 [altera-id-dependent-backward-branch]
        int next1, next2;
        ^
/datasets/git/xdiff/xpatience.c:293:10: warning: backward branch (while loop) is ID-dependent due to variable reference to 'first' and may cause performance degradation [altera-id-dependent-backward-branch]
                while (first->next &&
                       ^
/datasets/git/xdiff/xpatience.c:295:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                first->next->line2 == first->line2 + 1)
                                                                       ^
                                                                        {
/datasets/git/xdiff/xpatience.c:298:11: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                line1 = first->line1 + 1;
                        ^
/datasets/git/xdiff/xpatience.c:299:11: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                line2 = first->line2 + 1;
                        ^
/datasets/git/xdiff/xpatience.c:310:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&xpp, 0, sizeof(xpp));
        ^~~~~~
/datasets/git/xdiff/xpatience.c:310:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&xpp, 0, sizeof(xpp));
        ^~~~~~
/datasets/git/xdiff/xpatience.c:311:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        xpp.flags = map->xpp->flags & ~XDF_DIFF_ALGORITHM_MASK;
                    ^                 ~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xpatience.c:311:32: warning: use of a signed integer operand with a unary bitwise operator [hicpp-signed-bitwise]
        xpp.flags = map->xpp->flags & ~XDF_DIFF_ALGORITHM_MASK;
                                      ^
/datasets/git/xdiff/xpatience.c:311:33: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        xpp.flags = map->xpp->flags & ~XDF_DIFF_ALGORITHM_MASK;
                                       ^
/datasets/git/./xdiff/xdiff.h:46:34: note: expanded from macro 'XDF_DIFF_ALGORITHM_MASK'
#define XDF_DIFF_ALGORITHM_MASK (XDF_PATIENCE_DIFF | XDF_HISTOGRAM_DIFF)
                                 ^~~~~~~~~~~~~~~~~
/datasets/git/./xdiff/xdiff.h:44:27: note: expanded from macro 'XDF_PATIENCE_DIFF'
#define XDF_PATIENCE_DIFF (1 << 14)
                          ^~~~~~~~~
/datasets/git/xdiff/xpatience.c:323:12: warning: function 'patience_diff' is within a recursive call chain [misc-no-recursion]
static int patience_diff(xpparam_t const *xpp, xdfenv_t *env,
           ^
/datasets/git/xdiff/xpatience.c:327:16: warning: variable 'first' is not initialized [cppcoreguidelines-init-variables]
        struct entry *first;
                      ^
                            = NULL
/datasets/git/xdiff/xpatience.c:332:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while(count2--)
                ^
/datasets/git/xdiff/xpatience.c:332:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while(count2--)
                               ^
                                {
/datasets/git/xdiff/xpatience.c:335:4: warning: do not use 'else' after 'return' [llvm-else-after-return,readability-else-after-return]
        } else if (!count2) {
          ^~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xpatience.c:336:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while(count1--)
                ^
/datasets/git/xdiff/xpatience.c:336:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while(count1--)
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xpatience.c:341:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&map, 0, sizeof(map));
        ^~~~~~
/datasets/git/xdiff/xpatience.c:341:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&map, 0, sizeof(map));
        ^~~~~~
/datasets/git/xdiff/xpatience.c:343:34: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        line1, count1, line2, count2))
                                                      ^
                                                       {
/datasets/git/xdiff/xpatience.c:348:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while(count1--)
                ^
/datasets/git/xdiff/xpatience.c:348:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while(count1--)
                               ^
                                {
/datasets/git/xdiff/xpatience.c:350:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while(count2--)
                ^
/datasets/git/xdiff/xpatience.c:350:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while(count2--)
                               ^
                                {
/datasets/git/xdiff/xpatience.c:357:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (result)
                   ^
                    {
/datasets/git/xdiff/xpatience.c:359:12: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (first)
                  ^
                   {
/datasets/git/xdiff/xpatience.c:362:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/xdiff/xpatience.c:372:36: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return patience_diff(xpp, env, 1, env->xdf1.nrec, 1, env->xdf2.nrec);
                                          ^
/datasets/git/xdiff/xpatience.c:372:55: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return patience_diff(xpp, env, 1, env->xdf1.nrec, 1, env->xdf2.nrec);
                                                             ^
/datasets/git/xdiff/xprepare.c:26:1: warning: replace macro with enum [modernize-macro-to-enum]
#define XDL_KPDIS_RUN 4
^~~~~~~~
                      =,
/datasets/git/xdiff/xprepare.c:26:9: warning: macro 'XDL_KPDIS_RUN' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define XDL_KPDIS_RUN 4
        ^
/datasets/git/xdiff/xprepare.c:27:9: warning: macro 'XDL_MAX_EQLIMIT' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define XDL_MAX_EQLIMIT 1024
        ^
/datasets/git/xdiff/xprepare.c:28:9: warning: macro 'XDL_SIMSCAN_WINDOW' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define XDL_SIMSCAN_WINDOW 100
        ^
/datasets/git/xdiff/xprepare.c:29:9: warning: macro 'XDL_GUESS_NLINES1' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define XDL_GUESS_NLINES1 256
        ^
/datasets/git/xdiff/xprepare.c:30:9: warning: macro 'XDL_GUESS_NLINES2' defines an integral constant; prefer an enum instead [modernize-macro-to-enum]
#define XDL_GUESS_NLINES2 20
        ^
/datasets/git/xdiff/xprepare.c:33:16: warning: accessing fields in struct 's_xdlclass' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 64 bytes [altera-struct-pack-align]
typedef struct s_xdlclass {
               ^
/datasets/git/xdiff/xprepare.c:33:16: note: use "__attribute__((aligned(64)))" to align struct 's_xdlclass' to 64 bytes
/datasets/git/xdiff/xprepare.c:42:16: warning: accessing fields in struct 's_xdlclassifier' is inefficient due to padding; only needs 108 bytes but is using 112 bytes [altera-struct-pack-align]
typedef struct s_xdlclassifier {
               ^
/datasets/git/xdiff/xprepare.c:42:16: note: use "__attribute__((packed))" to reduce the amount of padding applied to struct 's_xdlclassifier'
/datasets/git/xdiff/xprepare.c:42:16: warning: accessing fields in struct 's_xdlclassifier' is inefficient due to poor alignment; currently aligned to 8 bytes, but recommended alignment is 128 bytes [altera-struct-pack-align]
typedef struct s_xdlclassifier {
               ^
/datasets/git/xdiff/xprepare.c:42:16: note: use "__attribute__((aligned(128)))" to align struct 's_xdlclassifier' to 128 bytes
/datasets/git/xdiff/xprepare.c:56:49: warning: parameter name 'cf' is too short, expected at least 3 characters [readability-identifier-length]
static int xdl_init_classifier(xdlclassifier_t *cf, long size, long flags);
                                                ^
/datasets/git/xdiff/xprepare.c:57:50: warning: parameter name 'cf' is too short, expected at least 3 characters [readability-identifier-length]
static void xdl_free_classifier(xdlclassifier_t *cf);
                                                 ^
/datasets/git/xdiff/xprepare.c:58:68: warning: parameter name 'cf' is too short, expected at least 3 characters [readability-identifier-length]
static int xdl_classify_record(unsigned int pass, xdlclassifier_t *cf, xrecord_t **rhash,
                                                                   ^
/datasets/git/xdiff/xprepare.c:60:57: warning: parameter name 'mf' is too short, expected at least 3 characters [readability-identifier-length]
static int xdl_prepare_ctx(unsigned int pass, mmfile_t *mf, long narec, xpparam_t const *xpp,
                                                        ^
/datasets/git/xdiff/xprepare.c:61:24: warning: parameter name 'cf' is too short, expected at least 3 characters [readability-identifier-length]
                           xdlclassifier_t *cf, xdfile_t *xdf);
                                            ^
/datasets/git/xdiff/xprepare.c:63:51: warning: parameter name 'i' is too short, expected at least 3 characters [readability-identifier-length]
static int xdl_clean_mmatch(char const *dis, long i, long s, long e);
                                                  ^
/datasets/git/xdiff/xprepare.c:63:59: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static int xdl_clean_mmatch(char const *dis, long i, long s, long e);
                                                          ^
/datasets/git/xdiff/xprepare.c:63:67: warning: parameter name 'e' is too short, expected at least 3 characters [readability-identifier-length]
static int xdl_clean_mmatch(char const *dis, long i, long s, long e);
                                                                  ^
/datasets/git/xdiff/xprepare.c:64:49: warning: parameter name 'cf' is too short, expected at least 3 characters [readability-identifier-length]
static int xdl_cleanup_records(xdlclassifier_t *cf, xdfile_t *xdf1, xdfile_t *xdf2);
                                                ^
/datasets/git/xdiff/xprepare.c:66:47: warning: parameter name 'cf' is too short, expected at least 3 characters [readability-identifier-length]
static int xdl_optimize_ctxs(xdlclassifier_t *cf, xdfile_t *xdf1, xdfile_t *xdf2);
                                              ^
/datasets/git/xdiff/xprepare.c:71:49: warning: parameter name 'cf' is too short, expected at least 3 characters [readability-identifier-length]
static int xdl_init_classifier(xdlclassifier_t *cf, long size, long flags) {
                                                ^
/datasets/git/xdiff/xprepare.c:71:53: warning: 2 adjacent parameters of 'xdl_init_classifier' of similar type ('long') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int xdl_init_classifier(xdlclassifier_t *cf, long size, long flags) {
                                                    ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xprepare.c:71:58: note: the first parameter in the range is 'size'
static int xdl_init_classifier(xdlclassifier_t *cf, long size, long flags) {
                                                         ^~~~
/datasets/git/xdiff/xprepare.c:71:69: note: the last parameter in the range is 'flags'
static int xdl_init_classifier(xdlclassifier_t *cf, long size, long flags) {
                                                                    ^~~~~
/datasets/git/xdiff/xprepare.c:75:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        cf->hsize = 1 << cf->hbits;
                    ^
/datasets/git/xdiff/xprepare.c:81:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if (!XDL_CALLOC_ARRAY(cf->rchash, cf->hsize)) {
             ^
/datasets/git/./xdiff/xmacros.h:59:34: note: expanded from macro 'XDL_CALLOC_ARRAY'
#define XDL_CALLOC_ARRAY(p, nr) ((p) = xdl_calloc(nr, sizeof(*(p))))
                                 ^
/datasets/git/xdiff/xprepare.c:81:7: note: if it should be an assignment, move it out of the 'if' condition
        if (!XDL_CALLOC_ARRAY(cf->rchash, cf->hsize)) {
             ^
/datasets/git/./xdiff/xmacros.h:59:34: note: expanded from macro 'XDL_CALLOC_ARRAY'
#define XDL_CALLOC_ARRAY(p, nr) ((p) = xdl_calloc(nr, sizeof(*(p))))
                                 ^
/datasets/git/xdiff/xprepare.c:81:7: note: if it is meant to be an equality check, change '=' to '=='
        if (!XDL_CALLOC_ARRAY(cf->rchash, cf->hsize)) {
             ^
/datasets/git/./xdiff/xmacros.h:59:34: note: expanded from macro 'XDL_CALLOC_ARRAY'
#define XDL_CALLOC_ARRAY(p, nr) ((p) = xdl_calloc(nr, sizeof(*(p))))
                                 ^
/datasets/git/xdiff/xprepare.c:81:7: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        if (!XDL_CALLOC_ARRAY(cf->rchash, cf->hsize)) {
             ^
/datasets/git/./xdiff/xmacros.h:59:55: note: expanded from macro 'XDL_CALLOC_ARRAY'
#define XDL_CALLOC_ARRAY(p, nr) ((p) = xdl_calloc(nr, sizeof(*(p))))
                                                      ^
/datasets/git/xdiff/xprepare.c:88:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if (!XDL_ALLOC_ARRAY(cf->rcrecs, cf->alloc)) {
             ^
/datasets/git/./xdiff/xmacros.h:54:3: note: expanded from macro 'XDL_ALLOC_ARRAY'
        ((p) = SIZE_MAX / sizeof(*(p)) >= (size_t)(nr)  \
         ^
/datasets/git/xdiff/xprepare.c:88:7: note: if it should be an assignment, move it out of the 'if' condition
        if (!XDL_ALLOC_ARRAY(cf->rcrecs, cf->alloc)) {
             ^
/datasets/git/./xdiff/xmacros.h:54:3: note: expanded from macro 'XDL_ALLOC_ARRAY'
        ((p) = SIZE_MAX / sizeof(*(p)) >= (size_t)(nr)  \
         ^
/datasets/git/xdiff/xprepare.c:88:7: note: if it is meant to be an equality check, change '=' to '=='
        if (!XDL_ALLOC_ARRAY(cf->rcrecs, cf->alloc)) {
             ^
/datasets/git/./xdiff/xmacros.h:54:3: note: expanded from macro 'XDL_ALLOC_ARRAY'
        ((p) = SIZE_MAX / sizeof(*(p)) >= (size_t)(nr)  \
         ^
/datasets/git/xdiff/xprepare.c:88:7: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        if (!XDL_ALLOC_ARRAY(cf->rcrecs, cf->alloc)) {
             ^
/datasets/git/./xdiff/xmacros.h:54:20: note: expanded from macro 'XDL_ALLOC_ARRAY'
        ((p) = SIZE_MAX / sizeof(*(p)) >= (size_t)(nr)  \
                          ^
/datasets/git/xdiff/xprepare.c:101:50: warning: parameter name 'cf' is too short, expected at least 3 characters [readability-identifier-length]
static void xdl_free_classifier(xdlclassifier_t *cf) {
                                                 ^
/datasets/git/xdiff/xprepare.c:109:68: warning: parameter name 'cf' is too short, expected at least 3 characters [readability-identifier-length]
static int xdl_classify_record(unsigned int pass, xdlclassifier_t *cf, xrecord_t **rhash,
                                                                   ^
/datasets/git/xdiff/xprepare.c:111:7: warning: variable 'hi' is not initialized [cppcoreguidelines-init-variables]
        long hi;
             ^
                = 0
/datasets/git/xdiff/xprepare.c:111:7: warning: variable name 'hi' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff/xprepare.c:112:14: warning: variable 'line' is not initialized [cppcoreguidelines-init-variables]
        char const *line;
                    ^
                         = NULL
/datasets/git/xdiff/xprepare.c:113:14: warning: variable 'rcrec' is not initialized [cppcoreguidelines-init-variables]
        xdlclass_t *rcrec;
                    ^
                          = NULL
/datasets/git/xdiff/xprepare.c:117:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (rcrec = cf->rchash[hi]; rcrec; rcrec = rcrec->next)
        ^
/datasets/git/xdiff/xprepare.c:117:31: warning: backward branch (for loop) is ID-dependent due to variable reference to 'rcrec' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (rcrec = cf->rchash[hi]; rcrec; rcrec = rcrec->next)
                                     ^
/datasets/git/xdiff/xprepare.c:117:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (rcrec = cf->rchash[hi]; rcrec; rcrec = rcrec->next)
                                                                ^
                                                                 {
/datasets/git/xdiff/xprepare.c:120:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        rec->ptr, rec->size, cf->flags))
                                                                        ^
                                                                         {
/datasets/git/xdiff/xprepare.c:124:9: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                if (!(rcrec = xdl_cha_alloc(&cf->ncha))) {
                      ^
/datasets/git/xdiff/xprepare.c:124:9: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/xdiff/xprepare.c:124:9: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/xdiff/xprepare.c:129:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                if (XDL_ALLOC_GROW(cf->rcrecs, cf->count, cf->alloc))
                    ^
/datasets/git/./xdiff/xmacros.h:69:7: note: expanded from macro 'XDL_ALLOC_GROW'
            ((p) = xdl_alloc_grow_helper((p), (nr), &(alloc), sizeof(*(p))))))
             ^
/datasets/git/xdiff/xprepare.c:129:7: note: if it should be an assignment, move it out of the 'if' condition
                if (XDL_ALLOC_GROW(cf->rcrecs, cf->count, cf->alloc))
                    ^
/datasets/git/./xdiff/xmacros.h:69:7: note: expanded from macro 'XDL_ALLOC_GROW'
            ((p) = xdl_alloc_grow_helper((p), (nr), &(alloc), sizeof(*(p))))))
             ^
/datasets/git/xdiff/xprepare.c:129:7: note: if it is meant to be an equality check, change '=' to '=='
                if (XDL_ALLOC_GROW(cf->rcrecs, cf->count, cf->alloc))
                    ^
/datasets/git/./xdiff/xmacros.h:69:7: note: expanded from macro 'XDL_ALLOC_GROW'
            ((p) = xdl_alloc_grow_helper((p), (nr), &(alloc), sizeof(*(p))))))
             ^
/datasets/git/xdiff/xprepare.c:129:7: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                if (XDL_ALLOC_GROW(cf->rcrecs, cf->count, cf->alloc))
                    ^
/datasets/git/./xdiff/xmacros.h:69:56: note: expanded from macro 'XDL_ALLOC_GROW'
            ((p) = xdl_alloc_grow_helper((p), (nr), &(alloc), sizeof(*(p))))))
                                                              ^
/datasets/git/xdiff/xprepare.c:129:56: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (XDL_ALLOC_GROW(cf->rcrecs, cf->count, cf->alloc))
                                                                     ^
                                                                      {
/datasets/git/xdiff/xprepare.c:152:12: warning: function 'xdl_prepare_ctx' has cognitive complexity of 28 (threshold 25) [readability-function-cognitive-complexity]
static int xdl_prepare_ctx(unsigned int pass, mmfile_t *mf, long narec, xpparam_t const *xpp,
           ^
/datasets/git/xdiff/xprepare.c:171:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (xdl_cha_init(&xdf->rcha, sizeof(xrecord_t), narec / 4 + 1) < 0)
        ^
/datasets/git/xdiff/xprepare.c:173:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!XDL_ALLOC_ARRAY(recs, narec))
        ^
/datasets/git/xdiff/xprepare.c:173:7: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!XDL_ALLOC_ARRAY(recs, narec))
             ^
/datasets/git/./xdiff/xmacros.h:55:3: note: expanded from macro 'XDL_ALLOC_ARRAY'
                ? xdl_malloc((nr) * sizeof(*(p)))       \
                ^
/datasets/git/xdiff/xprepare.c:178:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!XDL_CALLOC_ARRAY(rhash, hsize))
        ^
/datasets/git/xdiff/xprepare.c:182:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((cur = blk = xdl_mmfile_first(mf, &bsize))) {
        ^
/datasets/git/xdiff/xprepare.c:183:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                for (top = blk + bsize; cur < top; ) {
                ^
/datasets/git/xdiff/xprepare.c:186:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (XDL_ALLOC_GROW(recs, nrec + 1, narec))
                        ^
/datasets/git/xdiff/xprepare.c:186:8: note: +1
                        if (XDL_ALLOC_GROW(recs, nrec + 1, narec))
                            ^
/datasets/git/./xdiff/xmacros.h:68:22: note: expanded from macro 'XDL_ALLOC_GROW'
        (-!((nr) <= (alloc) ||          \
                            ^
/datasets/git/xdiff/xprepare.c:188:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (!(crec = xdl_cha_alloc(&xdf->rcha)))
                        ^
/datasets/git/xdiff/xprepare.c:194:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (xdl_classify_record(pass, cf, rhash, hbits, crec) < 0)
                        ^
/datasets/git/xdiff/xprepare.c:199:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!XDL_CALLOC_ARRAY(rchg, nrec + 2))
        ^
/datasets/git/xdiff/xprepare.c:202:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((XDF_DIFF_ALG(xpp->flags) != XDF_PATIENCE_DIFF) &&
        ^
/datasets/git/xdiff/xprepare.c:202:54: note: +1
        if ((XDF_DIFF_ALG(xpp->flags) != XDF_PATIENCE_DIFF) &&
                                                            ^
/datasets/git/xdiff/xprepare.c:204:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!XDL_ALLOC_ARRAY(rindex, nrec + 1))
                ^
/datasets/git/xdiff/xprepare.c:204:8: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!XDL_ALLOC_ARRAY(rindex, nrec + 1))
                     ^
/datasets/git/./xdiff/xmacros.h:55:3: note: expanded from macro 'XDL_ALLOC_ARRAY'
                ? xdl_malloc((nr) * sizeof(*(p)))       \
                ^
/datasets/git/xdiff/xprepare.c:206:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!XDL_ALLOC_ARRAY(ha, nrec + 1))
                ^
/datasets/git/xdiff/xprepare.c:206:8: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (!XDL_ALLOC_ARRAY(ha, nrec + 1))
                     ^
/datasets/git/./xdiff/xmacros.h:55:3: note: expanded from macro 'XDL_ALLOC_ARRAY'
                ? xdl_malloc((nr) * sizeof(*(p)))       \
                ^
/datasets/git/xdiff/xprepare.c:152:57: warning: parameter name 'mf' is too short, expected at least 3 characters [readability-identifier-length]
static int xdl_prepare_ctx(unsigned int pass, mmfile_t *mf, long narec, xpparam_t const *xpp,
                                                        ^
/datasets/git/xdiff/xprepare.c:153:24: warning: parameter name 'cf' is too short, expected at least 3 characters [readability-identifier-length]
                           xdlclassifier_t *cf, xdfile_t *xdf) {
                                            ^
/datasets/git/xdiff/xprepare.c:154:15: warning: variable 'hbits' is not initialized [cppcoreguidelines-init-variables]
        unsigned int hbits;
                     ^
                           = 0
/datasets/git/xdiff/xprepare.c:155:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        long nrec, hsize, bsize;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xprepare.c:155:7: warning: variable 'nrec' is not initialized [cppcoreguidelines-init-variables]
        long nrec, hsize, bsize;
             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xprepare.c:155:13: warning: variable 'hsize' is not initialized [cppcoreguidelines-init-variables]
        long nrec, hsize, bsize;
                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xprepare.c:155:20: warning: variable 'bsize' is not initialized [cppcoreguidelines-init-variables]
        long nrec, hsize, bsize;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xprepare.c:156:16: warning: variable 'hav' is not initialized [cppcoreguidelines-init-variables]
        unsigned long hav;
                      ^
                          = 0
/datasets/git/xdiff/xprepare.c:157:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char const *blk, *cur, *top, *prev;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xprepare.c:157:14: warning: variable 'blk' is not initialized [cppcoreguidelines-init-variables]
        char const *blk, *cur, *top, *prev;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xprepare.c:157:20: warning: variable 'cur' is not initialized [cppcoreguidelines-init-variables]
        char const *blk, *cur, *top, *prev;
                          ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xprepare.c:157:26: warning: variable 'top' is not initialized [cppcoreguidelines-init-variables]
        char const *blk, *cur, *top, *prev;
                                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xprepare.c:157:32: warning: variable 'prev' is not initialized [cppcoreguidelines-init-variables]
        char const *blk, *cur, *top, *prev;
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xprepare.c:158:13: warning: variable 'crec' is not initialized [cppcoreguidelines-init-variables]
        xrecord_t *crec;
                   ^
                        = NULL
/datasets/git/xdiff/xprepare.c:159:14: warning: variable 'recs' is not initialized [cppcoreguidelines-init-variables]
        xrecord_t **recs;
                    ^
                         = NULL
/datasets/git/xdiff/xprepare.c:160:14: warning: variable 'rhash' is not initialized [cppcoreguidelines-init-variables]
        xrecord_t **rhash;
                    ^
                          = NULL
/datasets/git/xdiff/xprepare.c:161:17: warning: variable 'ha' is not initialized [cppcoreguidelines-init-variables]
        unsigned long *ha;
                       ^
                          = NULL
/datasets/git/xdiff/xprepare.c:161:17: warning: variable name 'ha' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff/xprepare.c:162:8: warning: variable 'rchg' is not initialized [cppcoreguidelines-init-variables]
        char *rchg;
              ^
                   = NULL
/datasets/git/xdiff/xprepare.c:163:8: warning: variable 'rindex' is not initialized [cppcoreguidelines-init-variables]
        long *rindex;
              ^
                     = NULL
/datasets/git/xdiff/xprepare.c:171:69: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (xdl_cha_init(&xdf->rcha, sizeof(xrecord_t), narec / 4 + 1) < 0)
                                                                           ^
                                                                            {
/datasets/git/xdiff/xprepare.c:173:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if (!XDL_ALLOC_ARRAY(recs, narec))
             ^
/datasets/git/./xdiff/xmacros.h:54:3: note: expanded from macro 'XDL_ALLOC_ARRAY'
        ((p) = SIZE_MAX / sizeof(*(p)) >= (size_t)(nr)  \
         ^
/datasets/git/xdiff/xprepare.c:173:7: note: if it should be an assignment, move it out of the 'if' condition
        if (!XDL_ALLOC_ARRAY(recs, narec))
             ^
/datasets/git/./xdiff/xmacros.h:54:3: note: expanded from macro 'XDL_ALLOC_ARRAY'
        ((p) = SIZE_MAX / sizeof(*(p)) >= (size_t)(nr)  \
         ^
/datasets/git/xdiff/xprepare.c:173:7: note: if it is meant to be an equality check, change '=' to '=='
        if (!XDL_ALLOC_ARRAY(recs, narec))
             ^
/datasets/git/./xdiff/xmacros.h:54:3: note: expanded from macro 'XDL_ALLOC_ARRAY'
        ((p) = SIZE_MAX / sizeof(*(p)) >= (size_t)(nr)  \
         ^
/datasets/git/xdiff/xprepare.c:173:7: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        if (!XDL_ALLOC_ARRAY(recs, narec))
             ^
/datasets/git/./xdiff/xmacros.h:54:20: note: expanded from macro 'XDL_ALLOC_ARRAY'
        ((p) = SIZE_MAX / sizeof(*(p)) >= (size_t)(nr)  \
                          ^
/datasets/git/xdiff/xprepare.c:173:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!XDL_ALLOC_ARRAY(recs, narec))
                                          ^
                                           {
/datasets/git/xdiff/xprepare.c:177:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        hsize = 1 << hbits;
                ^
/datasets/git/xdiff/xprepare.c:178:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if (!XDL_CALLOC_ARRAY(rhash, hsize))
             ^
/datasets/git/./xdiff/xmacros.h:59:34: note: expanded from macro 'XDL_CALLOC_ARRAY'
#define XDL_CALLOC_ARRAY(p, nr) ((p) = xdl_calloc(nr, sizeof(*(p))))
                                 ^
/datasets/git/xdiff/xprepare.c:178:7: note: if it should be an assignment, move it out of the 'if' condition
        if (!XDL_CALLOC_ARRAY(rhash, hsize))
             ^
/datasets/git/./xdiff/xmacros.h:59:34: note: expanded from macro 'XDL_CALLOC_ARRAY'
#define XDL_CALLOC_ARRAY(p, nr) ((p) = xdl_calloc(nr, sizeof(*(p))))
                                 ^
/datasets/git/xdiff/xprepare.c:178:7: note: if it is meant to be an equality check, change '=' to '=='
        if (!XDL_CALLOC_ARRAY(rhash, hsize))
             ^
/datasets/git/./xdiff/xmacros.h:59:34: note: expanded from macro 'XDL_CALLOC_ARRAY'
#define XDL_CALLOC_ARRAY(p, nr) ((p) = xdl_calloc(nr, sizeof(*(p))))
                                 ^
/datasets/git/xdiff/xprepare.c:178:7: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
        if (!XDL_CALLOC_ARRAY(rhash, hsize))
             ^
/datasets/git/./xdiff/xmacros.h:59:55: note: expanded from macro 'XDL_CALLOC_ARRAY'
#define XDL_CALLOC_ARRAY(p, nr) ((p) = xdl_calloc(nr, sizeof(*(p))))
                                                      ^
/datasets/git/xdiff/xprepare.c:157:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        char const *blk, *cur, *top, *prev;
        ^
/datasets/git/xdiff/xprepare.c:178:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!XDL_CALLOC_ARRAY(rhash, hsize))
                                            ^
                                             {
/datasets/git/xdiff/xprepare.c:182:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if ((cur = blk = xdl_mmfile_first(mf, &bsize))) {
             ^
/datasets/git/xdiff/xprepare.c:182:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/xdiff/xprepare.c:182:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/xdiff/xprepare.c:182:13: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if ((cur = blk = xdl_mmfile_first(mf, &bsize))) {
                   ^
/datasets/git/xdiff/xprepare.c:182:13: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/xdiff/xprepare.c:182:13: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/xdiff/xprepare.c:183:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (top = blk + bsize; cur < top; ) {
                ^
/datasets/git/xdiff/xprepare.c:183:27: warning: backward branch (for loop) is ID-dependent due to variable reference to 'cur' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (top = blk + bsize; cur < top; ) {
                                        ^
/datasets/git/xdiff/xprepare.c:185:37: warning: narrowing conversion from 'unsigned long' to signed type 'long' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        hav = xdl_hash_record(&cur, top, xpp->flags);
                                                         ^
/datasets/git/xdiff/xprepare.c:186:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                        if (XDL_ALLOC_GROW(recs, nrec + 1, narec))
                            ^
/datasets/git/./xdiff/xmacros.h:69:7: note: expanded from macro 'XDL_ALLOC_GROW'
            ((p) = xdl_alloc_grow_helper((p), (nr), &(alloc), sizeof(*(p))))))
             ^
/datasets/git/xdiff/xprepare.c:186:8: note: if it should be an assignment, move it out of the 'if' condition
                        if (XDL_ALLOC_GROW(recs, nrec + 1, narec))
                            ^
/datasets/git/./xdiff/xmacros.h:69:7: note: expanded from macro 'XDL_ALLOC_GROW'
            ((p) = xdl_alloc_grow_helper((p), (nr), &(alloc), sizeof(*(p))))))
             ^
/datasets/git/xdiff/xprepare.c:186:8: note: if it is meant to be an equality check, change '=' to '=='
                        if (XDL_ALLOC_GROW(recs, nrec + 1, narec))
                            ^
/datasets/git/./xdiff/xmacros.h:69:7: note: expanded from macro 'XDL_ALLOC_GROW'
            ((p) = xdl_alloc_grow_helper((p), (nr), &(alloc), sizeof(*(p))))))
             ^
/datasets/git/xdiff/xprepare.c:186:8: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression]
                        if (XDL_ALLOC_GROW(recs, nrec + 1, narec))
                            ^
/datasets/git/./xdiff/xmacros.h:69:56: note: expanded from macro 'XDL_ALLOC_GROW'
            ((p) = xdl_alloc_grow_helper((p), (nr), &(alloc), sizeof(*(p))))))
                                                              ^
/datasets/git/xdiff/xprepare.c:186:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (XDL_ALLOC_GROW(recs, nrec + 1, narec))
                                                                  ^
                                                                   {
/datasets/git/xdiff/xprepare.c:188:10: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                        if (!(crec = xdl_cha_alloc(&xdf->rcha)))
                              ^
/datasets/git/xdiff/xprepare.c:188:10: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/xdiff/xprepare.c:188:10: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/xdiff/xprepare.c:188:44: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!(crec = xdl_cha_alloc(&xdf->rcha)))
                                                                ^
                                                                 {
/datasets/git/xdiff/xprepare.c:191:17: warning: redundant cast to the same type [google-readability-casting]
                        crec->size = (long) (cur - prev);
                                     ^~~~~~~
/datasets/git/xdiff/xprepare.c:194:62: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (xdl_classify_record(pass, cf, rhash, hbits, crec) < 0)
                                                                                  ^
                                                                                   {
/datasets/git/xdiff/xprepare.c:199:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if (!XDL_CALLOC_ARRAY(rchg, nrec + 2))
             ^
/datasets/git/./xdiff/xmacros.h:59:34: note: expanded from macro 'XDL_CALLOC_ARRAY'
#define XDL_CALLOC_ARRAY(p, nr) ((p) = xdl_calloc(nr, sizeof(*(p))))
                                 ^
/datasets/git/xdiff/xprepare.c:199:7: note: if it should be an assignment, move it out of the 'if' condition
        if (!XDL_CALLOC_ARRAY(rchg, nrec + 2))
             ^
/datasets/git/./xdiff/xmacros.h:59:34: note: expanded from macro 'XDL_CALLOC_ARRAY'
#define XDL_CALLOC_ARRAY(p, nr) ((p) = xdl_calloc(nr, sizeof(*(p))))
                                 ^
/datasets/git/xdiff/xprepare.c:199:7: note: if it is meant to be an equality check, change '=' to '=='
        if (!XDL_CALLOC_ARRAY(rchg, nrec + 2))
             ^
/datasets/git/./xdiff/xmacros.h:59:34: note: expanded from macro 'XDL_CALLOC_ARRAY'
#define XDL_CALLOC_ARRAY(p, nr) ((p) = xdl_calloc(nr, sizeof(*(p))))
                                 ^
/datasets/git/xdiff/xprepare.c:199:40: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!XDL_CALLOC_ARRAY(rchg, nrec + 2))
                                              ^
                                               {
/datasets/git/xdiff/xprepare.c:202:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((XDF_DIFF_ALG(xpp->flags) != XDF_PATIENCE_DIFF) &&
             ^
/datasets/git/./xdiff/xdiff.h:47:26: note: expanded from macro 'XDF_DIFF_ALG'
#define XDF_DIFF_ALG(x) ((x) & XDF_DIFF_ALGORITHM_MASK)
                         ^     ~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xprepare.c:202:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((XDF_DIFF_ALG(xpp->flags) != XDF_PATIENCE_DIFF) &&
                                         ^
/datasets/git/./xdiff/xdiff.h:44:28: note: expanded from macro 'XDF_PATIENCE_DIFF'
#define XDF_PATIENCE_DIFF (1 << 14)
                           ^
/datasets/git/xdiff/xprepare.c:203:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            (XDF_DIFF_ALG(xpp->flags) != XDF_HISTOGRAM_DIFF)) {
             ^
/datasets/git/./xdiff/xdiff.h:47:26: note: expanded from macro 'XDF_DIFF_ALG'
#define XDF_DIFF_ALG(x) ((x) & XDF_DIFF_ALGORITHM_MASK)
                         ^     ~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xprepare.c:203:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            (XDF_DIFF_ALG(xpp->flags) != XDF_HISTOGRAM_DIFF)) {
                                         ^
/datasets/git/./xdiff/xdiff.h:45:29: note: expanded from macro 'XDF_HISTOGRAM_DIFF'
#define XDF_HISTOGRAM_DIFF (1 << 15)
                            ^
/datasets/git/xdiff/xprepare.c:204:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                if (!XDL_ALLOC_ARRAY(rindex, nrec + 1))
                     ^
/datasets/git/./xdiff/xmacros.h:54:3: note: expanded from macro 'XDL_ALLOC_ARRAY'
        ((p) = SIZE_MAX / sizeof(*(p)) >= (size_t)(nr)  \
         ^
/datasets/git/xdiff/xprepare.c:204:8: note: if it should be an assignment, move it out of the 'if' condition
                if (!XDL_ALLOC_ARRAY(rindex, nrec + 1))
                     ^
/datasets/git/./xdiff/xmacros.h:54:3: note: expanded from macro 'XDL_ALLOC_ARRAY'
        ((p) = SIZE_MAX / sizeof(*(p)) >= (size_t)(nr)  \
         ^
/datasets/git/xdiff/xprepare.c:204:8: note: if it is meant to be an equality check, change '=' to '=='
                if (!XDL_ALLOC_ARRAY(rindex, nrec + 1))
                     ^
/datasets/git/./xdiff/xmacros.h:54:3: note: expanded from macro 'XDL_ALLOC_ARRAY'
        ((p) = SIZE_MAX / sizeof(*(p)) >= (size_t)(nr)  \
         ^
/datasets/git/xdiff/xprepare.c:204:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!XDL_ALLOC_ARRAY(rindex, nrec + 1))
                                                       ^
                                                        {
/datasets/git/xdiff/xprepare.c:206:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                if (!XDL_ALLOC_ARRAY(ha, nrec + 1))
                     ^
/datasets/git/./xdiff/xmacros.h:54:3: note: expanded from macro 'XDL_ALLOC_ARRAY'
        ((p) = SIZE_MAX / sizeof(*(p)) >= (size_t)(nr)  \
         ^
/datasets/git/xdiff/xprepare.c:206:8: note: if it should be an assignment, move it out of the 'if' condition
                if (!XDL_ALLOC_ARRAY(ha, nrec + 1))
                     ^
/datasets/git/./xdiff/xmacros.h:54:3: note: expanded from macro 'XDL_ALLOC_ARRAY'
        ((p) = SIZE_MAX / sizeof(*(p)) >= (size_t)(nr)  \
         ^
/datasets/git/xdiff/xprepare.c:206:8: note: if it is meant to be an equality check, change '=' to '=='
                if (!XDL_ALLOC_ARRAY(ha, nrec + 1))
                     ^
/datasets/git/./xdiff/xmacros.h:54:3: note: expanded from macro 'XDL_ALLOC_ARRAY'
        ((p) = SIZE_MAX / sizeof(*(p)) >= (size_t)(nr)  \
         ^
/datasets/git/xdiff/xprepare.c:206:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!XDL_ALLOC_ARRAY(ha, nrec + 1))
                                                   ^
                                                    {
/datasets/git/xdiff/xprepare.c:246:17: warning: parameter name 'xe' is too short, expected at least 3 characters [readability-identifier-length]
                    xdfenv_t *xe) {
                              ^
/datasets/git/xdiff/xprepare.c:247:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        long enl1, enl2, sample;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xprepare.c:247:7: warning: variable 'enl1' is not initialized [cppcoreguidelines-init-variables]
        long enl1, enl2, sample;
             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xprepare.c:247:13: warning: variable 'enl2' is not initialized [cppcoreguidelines-init-variables]
        long enl1, enl2, sample;
                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xprepare.c:247:19: warning: variable 'sample' is not initialized [cppcoreguidelines-init-variables]
        long enl1, enl2, sample;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xprepare.c:248:18: warning: variable name 'cf' is too short, expected at least 3 characters [readability-identifier-length]
        xdlclassifier_t cf;
                        ^
/datasets/git/xdiff/xprepare.c:250:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(&cf, 0, sizeof(cf));
        ^~~~~~
/datasets/git/xdiff/xprepare.c:250:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(&cf, 0, sizeof(cf));
        ^~~~~~
/datasets/git/xdiff/xprepare.c:259:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        sample = (XDF_DIFF_ALG(xpp->flags) == XDF_HISTOGRAM_DIFF
                  ^
/datasets/git/./xdiff/xdiff.h:47:26: note: expanded from macro 'XDF_DIFF_ALG'
#define XDF_DIFF_ALG(x) ((x) & XDF_DIFF_ALGORITHM_MASK)
                         ^     ~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xprepare.c:259:40: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        sample = (XDF_DIFF_ALG(xpp->flags) == XDF_HISTOGRAM_DIFF
                                              ^
/datasets/git/./xdiff/xdiff.h:45:29: note: expanded from macro 'XDF_HISTOGRAM_DIFF'
#define XDF_HISTOGRAM_DIFF (1 << 15)
                            ^
/datasets/git/xdiff/xprepare.c:265:48: warning: narrowing conversion from 'unsigned long' to signed type 'long' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        if (xdl_init_classifier(&cf, enl1 + enl2 + 1, xpp->flags) < 0)
                                                      ^
/datasets/git/xdiff/xprepare.c:265:64: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (xdl_init_classifier(&cf, enl1 + enl2 + 1, xpp->flags) < 0)
                                                                      ^
                                                                       {
/datasets/git/xdiff/xprepare.c:280:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((XDF_DIFF_ALG(xpp->flags) != XDF_PATIENCE_DIFF) &&
             ^
/datasets/git/./xdiff/xdiff.h:47:26: note: expanded from macro 'XDF_DIFF_ALG'
#define XDF_DIFF_ALG(x) ((x) & XDF_DIFF_ALGORITHM_MASK)
                         ^     ~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xprepare.c:280:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if ((XDF_DIFF_ALG(xpp->flags) != XDF_PATIENCE_DIFF) &&
                                         ^
/datasets/git/./xdiff/xdiff.h:44:28: note: expanded from macro 'XDF_PATIENCE_DIFF'
#define XDF_PATIENCE_DIFF (1 << 14)
                           ^
/datasets/git/xdiff/xprepare.c:281:7: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            (XDF_DIFF_ALG(xpp->flags) != XDF_HISTOGRAM_DIFF) &&
             ^
/datasets/git/./xdiff/xdiff.h:47:26: note: expanded from macro 'XDF_DIFF_ALG'
#define XDF_DIFF_ALG(x) ((x) & XDF_DIFF_ALGORITHM_MASK)
                         ^     ~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xprepare.c:281:35: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
            (XDF_DIFF_ALG(xpp->flags) != XDF_HISTOGRAM_DIFF) &&
                                         ^
/datasets/git/./xdiff/xdiff.h:45:29: note: expanded from macro 'XDF_HISTOGRAM_DIFF'
#define XDF_HISTOGRAM_DIFF (1 << 15)
                            ^
/datasets/git/xdiff/xprepare.c:296:29: warning: parameter name 'xe' is too short, expected at least 3 characters [readability-identifier-length]
void xdl_free_env(xdfenv_t *xe) {
                            ^
/datasets/git/xdiff/xprepare.c:303:51: warning: parameter name 'i' is too short, expected at least 3 characters [readability-identifier-length]
static int xdl_clean_mmatch(char const *dis, long i, long s, long e) {
                                                  ^
/datasets/git/xdiff/xprepare.c:303:54: warning: 2 adjacent parameters of 'xdl_clean_mmatch' of similar type ('long') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int xdl_clean_mmatch(char const *dis, long i, long s, long e) {
                                                     ^~~~~~~~~~~~~~
/datasets/git/xdiff/xprepare.c:303:59: note: the first parameter in the range is 's'
static int xdl_clean_mmatch(char const *dis, long i, long s, long e) {
                                                          ^
/datasets/git/xdiff/xprepare.c:303:67: note: the last parameter in the range is 'e'
static int xdl_clean_mmatch(char const *dis, long i, long s, long e) {
                                                                  ^
/datasets/git/xdiff/xprepare.c:303:59: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static int xdl_clean_mmatch(char const *dis, long i, long s, long e) {
                                                          ^
/datasets/git/xdiff/xprepare.c:303:67: warning: parameter name 'e' is too short, expected at least 3 characters [readability-identifier-length]
static int xdl_clean_mmatch(char const *dis, long i, long s, long e) {
                                                                  ^
/datasets/git/xdiff/xprepare.c:304:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        long r, rdis0, rpdis0, rdis1, rpdis1;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xprepare.c:304:7: warning: variable 'r' is not initialized [cppcoreguidelines-init-variables]
        long r, rdis0, rpdis0, rdis1, rpdis1;
             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xprepare.c:304:7: warning: variable name 'r' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff/xprepare.c:304:10: warning: variable 'rdis0' is not initialized [cppcoreguidelines-init-variables]
        long r, rdis0, rpdis0, rdis1, rpdis1;
                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xprepare.c:304:17: warning: variable 'rpdis0' is not initialized [cppcoreguidelines-init-variables]
        long r, rdis0, rpdis0, rdis1, rpdis1;
                       ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xprepare.c:304:25: warning: variable 'rdis1' is not initialized [cppcoreguidelines-init-variables]
        long r, rdis0, rpdis0, rdis1, rpdis1;
                               ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xprepare.c:304:32: warning: variable 'rpdis1' is not initialized [cppcoreguidelines-init-variables]
        long r, rdis0, rpdis0, rdis1, rpdis1;
                                      ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xprepare.c:313:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (i - s > XDL_SIMSCAN_WINDOW)
                                       ^
                                        {
/datasets/git/xdiff/xprepare.c:315:33: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (e - i > XDL_SIMSCAN_WINDOW)
                                       ^
                                        {
/datasets/git/xdiff/xprepare.c:324:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (r = 1, rdis0 = 0, rpdis0 = 1; (i - r) >= s; r++) {
        ^
/datasets/git/xdiff/xprepare.c:324:37: warning: backward branch (for loop) is ID-dependent due to variable reference to 's' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (r = 1, rdis0 = 0, rpdis0 = 1; (i - r) >= s; r++) {
                                           ^
/datasets/git/xdiff/xprepare.c:325:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!dis[i - r])
                                ^
                                 {
/datasets/git/xdiff/xprepare.c:327:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (dis[i - r] == 2)
                                         ^
                                          {
/datasets/git/xdiff/xprepare.c:329:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/xdiff/xprepare.c:338:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (rdis0 == 0)
                       ^
                        {
/datasets/git/xdiff/xprepare.c:340:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (r = 1, rdis1 = 0, rpdis1 = 1; (i + r) <= e; r++) {
        ^
/datasets/git/xdiff/xprepare.c:340:37: warning: backward branch (for loop) is ID-dependent due to variable reference to 'e' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (r = 1, rdis1 = 0, rpdis1 = 1; (i + r) <= e; r++) {
                                           ^
/datasets/git/xdiff/xprepare.c:341:19: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!dis[i + r])
                                ^
                                 {
/datasets/git/xdiff/xprepare.c:343:28: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else if (dis[i + r] == 2)
                                         ^
                                          {
/datasets/git/xdiff/xprepare.c:345:7: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                else
                    ^
                     {
/datasets/git/xdiff/xprepare.c:352:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (rdis1 == 0)
                       ^
                        {
/datasets/git/xdiff/xprepare.c:366:12: warning: function 'xdl_cleanup_records' has cognitive complexity of 31 (threshold 25) [readability-function-cognitive-complexity]
static int xdl_cleanup_records(xdlclassifier_t *cf, xdfile_t *xdf1, xdfile_t *xdf2) {
           ^
/datasets/git/xdiff/xprepare.c:372:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!XDL_CALLOC_ARRAY(dis, xdf1->nrec + xdf2->nrec + 2))
        ^
/datasets/git/xdiff/xprepare.c:377:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((mlim = xdl_bogosqrt(xdf1->nrec)) > XDL_MAX_EQLIMIT)
        ^
/datasets/git/xdiff/xprepare.c:379:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = xdf1->dstart, recs = &xdf1->recs[xdf1->dstart]; i <= xdf1->dend; i++, recs++) {
        ^
/datasets/git/xdiff/xprepare.c:381:14: note: +2, including nesting penalty of 1, nesting level increased to 2
                nm = rcrec ? rcrec->len2 : 0;
                           ^
/datasets/git/xdiff/xprepare.c:382:23: note: +2, including nesting penalty of 1, nesting level increased to 2
                dis1[i] = (nm == 0) ? 0: (nm >= mlim) ? 2: 1;
                                    ^
/datasets/git/xdiff/xprepare.c:382:41: note: +3, including nesting penalty of 2, nesting level increased to 3
                dis1[i] = (nm == 0) ? 0: (nm >= mlim) ? 2: 1;
                                                      ^
/datasets/git/xdiff/xprepare.c:385:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if ((mlim = xdl_bogosqrt(xdf2->nrec)) > XDL_MAX_EQLIMIT)
        ^
/datasets/git/xdiff/xprepare.c:387:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (i = xdf2->dstart, recs = &xdf2->recs[xdf2->dstart]; i <= xdf2->dend; i++, recs++) {
        ^
/datasets/git/xdiff/xprepare.c:389:14: note: +2, including nesting penalty of 1, nesting level increased to 2
                nm = rcrec ? rcrec->len1 : 0;
                           ^
/datasets/git/xdiff/xprepare.c:390:23: note: +2, including nesting penalty of 1, nesting level increased to 2
                dis2[i] = (nm == 0) ? 0: (nm >= mlim) ? 2: 1;
                                    ^
/datasets/git/xdiff/xprepare.c:390:41: note: +3, including nesting penalty of 2, nesting level increased to 3
                dis2[i] = (nm == 0) ? 0: (nm >= mlim) ? 2: 1;
                                                      ^
/datasets/git/xdiff/xprepare.c:393:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (nreff = 0, i = xdf1->dstart, recs = &xdf1->recs[xdf1->dstart];
        ^
/datasets/git/xdiff/xprepare.c:395:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (dis1[i] == 1 ||
                ^
/datasets/git/xdiff/xprepare.c:395:20: note: +1
                if (dis1[i] == 1 ||
                                 ^
/datasets/git/xdiff/xprepare.c:396:21: note: +1
                    (dis1[i] == 2 && !xdl_clean_mmatch(dis1, i, xdf1->dstart, xdf1->dend))) {
                                  ^
/datasets/git/xdiff/xprepare.c:400:5: note: +1, nesting level increased to 2
                } else
                  ^
/datasets/git/xdiff/xprepare.c:405:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (nreff = 0, i = xdf2->dstart, recs = &xdf2->recs[xdf2->dstart];
        ^
/datasets/git/xdiff/xprepare.c:407:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (dis2[i] == 1 ||
                ^
/datasets/git/xdiff/xprepare.c:407:20: note: +1
                if (dis2[i] == 1 ||
                                 ^
/datasets/git/xdiff/xprepare.c:408:21: note: +1
                    (dis2[i] == 2 && !xdl_clean_mmatch(dis2, i, xdf2->dstart, xdf2->dend))) {
                                  ^
/datasets/git/xdiff/xprepare.c:412:5: note: +1, nesting level increased to 2
                } else
                  ^
/datasets/git/xdiff/xprepare.c:366:49: warning: parameter name 'cf' is too short, expected at least 3 characters [readability-identifier-length]
static int xdl_cleanup_records(xdlclassifier_t *cf, xdfile_t *xdf1, xdfile_t *xdf2) {
                                                ^
/datasets/git/xdiff/xprepare.c:367:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        long i, nm, nreff, mlim;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xprepare.c:367:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        long i, nm, nreff, mlim;
             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xprepare.c:367:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff/xprepare.c:367:10: warning: variable 'nm' is not initialized [cppcoreguidelines-init-variables]
        long i, nm, nreff, mlim;
                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xprepare.c:367:10: warning: variable name 'nm' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff/xprepare.c:367:14: warning: variable 'nreff' is not initialized [cppcoreguidelines-init-variables]
        long i, nm, nreff, mlim;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xprepare.c:367:21: warning: variable 'mlim' is not initialized [cppcoreguidelines-init-variables]
        long i, nm, nreff, mlim;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xprepare.c:368:14: warning: variable 'recs' is not initialized [cppcoreguidelines-init-variables]
        xrecord_t **recs;
                    ^
                         = NULL
/datasets/git/xdiff/xprepare.c:369:14: warning: variable 'rcrec' is not initialized [cppcoreguidelines-init-variables]
        xdlclass_t *rcrec;
                    ^
                          = NULL
/datasets/git/xdiff/xprepare.c:370:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *dis, *dis1, *dis2;
        ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xprepare.c:370:8: warning: variable 'dis' is not initialized [cppcoreguidelines-init-variables]
        char *dis, *dis1, *dis2;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xprepare.c:370:14: warning: variable 'dis1' is not initialized [cppcoreguidelines-init-variables]
        char *dis, *dis1, *dis2;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xprepare.c:370:21: warning: variable 'dis2' is not initialized [cppcoreguidelines-init-variables]
        char *dis, *dis1, *dis2;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xprepare.c:372:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if (!XDL_CALLOC_ARRAY(dis, xdf1->nrec + xdf2->nrec + 2))
             ^
/datasets/git/./xdiff/xmacros.h:59:34: note: expanded from macro 'XDL_CALLOC_ARRAY'
#define XDL_CALLOC_ARRAY(p, nr) ((p) = xdl_calloc(nr, sizeof(*(p))))
                                 ^
/datasets/git/xdiff/xprepare.c:372:7: note: if it should be an assignment, move it out of the 'if' condition
        if (!XDL_CALLOC_ARRAY(dis, xdf1->nrec + xdf2->nrec + 2))
             ^
/datasets/git/./xdiff/xmacros.h:59:34: note: expanded from macro 'XDL_CALLOC_ARRAY'
#define XDL_CALLOC_ARRAY(p, nr) ((p) = xdl_calloc(nr, sizeof(*(p))))
                                 ^
/datasets/git/xdiff/xprepare.c:372:7: note: if it is meant to be an equality check, change '=' to '=='
        if (!XDL_CALLOC_ARRAY(dis, xdf1->nrec + xdf2->nrec + 2))
             ^
/datasets/git/./xdiff/xmacros.h:59:34: note: expanded from macro 'XDL_CALLOC_ARRAY'
#define XDL_CALLOC_ARRAY(p, nr) ((p) = xdl_calloc(nr, sizeof(*(p))))
                                 ^
/datasets/git/xdiff/xprepare.c:372:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!XDL_CALLOC_ARRAY(dis, xdf1->nrec + xdf2->nrec + 2))
                                                                ^
                                                                 {
/datasets/git/xdiff/xprepare.c:377:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if ((mlim = xdl_bogosqrt(xdf1->nrec)) > XDL_MAX_EQLIMIT)
             ^
/datasets/git/xdiff/xprepare.c:377:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/xdiff/xprepare.c:377:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/xdiff/xprepare.c:367:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        long i, nm, nreff, mlim;
        ^
/datasets/git/xdiff/xprepare.c:377:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((mlim = xdl_bogosqrt(xdf1->nrec)) > XDL_MAX_EQLIMIT)
                                                                ^
                                                                 {
/datasets/git/xdiff/xprepare.c:379:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = xdf1->dstart, recs = &xdf1->recs[xdf1->dstart]; i <= xdf1->dend; i++, recs++) {
        ^
/datasets/git/xdiff/xprepare.c:379:59: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = xdf1->dstart, recs = &xdf1->recs[xdf1->dstart]; i <= xdf1->dend; i++, recs++) {
                                                                 ^
/datasets/git/xdiff/xprepare.c:382:28: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                dis1[i] = (nm == 0) ? 0: (nm >= mlim) ? 2: 1;
                                         ^
/datasets/git/xdiff/xprepare.c:385:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if ((mlim = xdl_bogosqrt(xdf2->nrec)) > XDL_MAX_EQLIMIT)
             ^
/datasets/git/xdiff/xprepare.c:385:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/xdiff/xprepare.c:385:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/xdiff/xprepare.c:367:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        long i, nm, nreff, mlim;
        ^
/datasets/git/xdiff/xprepare.c:385:58: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if ((mlim = xdl_bogosqrt(xdf2->nrec)) > XDL_MAX_EQLIMIT)
                                                                ^
                                                                 {
/datasets/git/xdiff/xprepare.c:387:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = xdf2->dstart, recs = &xdf2->recs[xdf2->dstart]; i <= xdf2->dend; i++, recs++) {
        ^
/datasets/git/xdiff/xprepare.c:367:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        long i, nm, nreff, mlim;
        ^
/datasets/git/xdiff/xprepare.c:387:59: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = xdf2->dstart, recs = &xdf2->recs[xdf2->dstart]; i <= xdf2->dend; i++, recs++) {
                                                                 ^
/datasets/git/xdiff/xprepare.c:390:28: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                dis2[i] = (nm == 0) ? 0: (nm >= mlim) ? 2: 1;
                                         ^
/datasets/git/xdiff/xprepare.c:393:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (nreff = 0, i = xdf1->dstart, recs = &xdf1->recs[xdf1->dstart];
        ^
/datasets/git/xdiff/xprepare.c:367:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        long i, nm, nreff, mlim;
        ^
/datasets/git/xdiff/xprepare.c:394:7: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
             i <= xdf1->dend; i++, recs++) {
             ^
/datasets/git/xdiff/xprepare.c:400:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/xdiff/xprepare.c:405:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (nreff = 0, i = xdf2->dstart, recs = &xdf2->recs[xdf2->dstart];
        ^
/datasets/git/xdiff/xprepare.c:406:7: warning: backward branch (for loop) is ID-dependent due to variable reference to 'i' and may cause performance degradation [altera-id-dependent-backward-branch]
             i <= xdf2->dend; i++, recs++) {
             ^
/datasets/git/xdiff/xprepare.c:412:9: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                } else
                      ^
                       {
/datasets/git/xdiff/xprepare.c:427:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        long i, lim;
        ^~~~~~~~~~~~
/datasets/git/xdiff/xprepare.c:427:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        long i, lim;
             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xprepare.c:427:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff/xprepare.c:427:10: warning: variable 'lim' is not initialized [cppcoreguidelines-init-variables]
        long i, lim;
                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xprepare.c:428:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        xrecord_t **recs1, **recs2;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xprepare.c:428:14: warning: variable 'recs1' is not initialized [cppcoreguidelines-init-variables]
        xrecord_t **recs1, **recs2;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xprepare.c:428:23: warning: variable 'recs2' is not initialized [cppcoreguidelines-init-variables]
        xrecord_t **recs1, **recs2;
                             ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xprepare.c:432:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0, lim = XDL_MIN(xdf1->nrec, xdf2->nrec); i < lim;
        ^
/datasets/git/xdiff/xprepare.c:432:53: warning: backward branch (for loop) is ID-dependent due to variable reference to 'lim' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (i = 0, lim = XDL_MIN(xdf1->nrec, xdf2->nrec); i < lim;
                                                           ^
/datasets/git/xdiff/xprepare.c:433:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
             i++, recs1++, recs2++)
                                   ^
                                    {
/datasets/git/xdiff/xprepare.c:434:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((*recs1)->ha != (*recs2)->ha)
                                                 ^
                                                  {
/datasets/git/xdiff/xprepare.c:441:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (lim -= i, i = 0; i < lim; i++, recs1--, recs2--)
        ^
/datasets/git/xdiff/xprepare.c:441:24: warning: backward branch (for loop) is ID-dependent due to variable reference to 'lim' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (lim -= i, i = 0; i < lim; i++, recs1--, recs2--)
                              ^
/datasets/git/xdiff/xprepare.c:441:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (lim -= i, i = 0; i < lim; i++, recs1--, recs2--)
                                                             ^
                                                              {
/datasets/git/xdiff/xprepare.c:442:36: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if ((*recs1)->ha != (*recs2)->ha)
                                                 ^
                                                  {
/datasets/git/xdiff/xprepare.c:452:47: warning: parameter name 'cf' is too short, expected at least 3 characters [readability-identifier-length]
static int xdl_optimize_ctxs(xdlclassifier_t *cf, xdfile_t *xdf1, xdfile_t *xdf2) {
                                              ^
/datasets/git/xdiff/xutils.c:27:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        long i;
             ^
               = 0
/datasets/git/xdiff/xutils.c:27:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff/xutils.c:32:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 1; n > 0; n >>= 2)
        ^
/datasets/git/xdiff/xutils.c:32:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        for (i = 1; n > 0; n >>= 2)
                           ^
/datasets/git/xdiff/xutils.c:32:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 1; n > 0; n >>= 2)
                                   ^
                                    {
/datasets/git/xdiff/xutils.c:33:3: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                i <<= 1;
                ^
/datasets/git/xdiff/xutils.c:41:6: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
        int i = 2;
            ^
/datasets/git/xdiff/xutils.c:42:13: warning: variable name 'mb' is too short, expected at least 3 characters [readability-identifier-length]
        mmbuffer_t mb[3];
                   ^
/datasets/git/xdiff/xutils.c:50:16: warning: narrowing conversion from 'unsigned long' to signed type 'long' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                mb[2].size = strlen(mb[2].ptr);
                             ^
/datasets/git/xdiff/xutils.c:87:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        chanode_t *cur, *tmp;
        ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xutils.c:87:2: note: inferred assignment of ID-dependent value from ID-dependent variable cur [altera-id-dependent-backward-branch]
/datasets/git/xdiff/xutils.c:87:13: warning: variable 'cur' is not initialized [cppcoreguidelines-init-variables]
        chanode_t *cur, *tmp;
                   ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xutils.c:87:19: warning: variable 'tmp' is not initialized [cppcoreguidelines-init-variables]
        chanode_t *cur, *tmp;
                         ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xutils.c:89:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (cur = cha->head; (tmp = cur) != NULL;) {
        ^
/datasets/git/xdiff/xutils.c:89:24: warning: backward branch (for loop) is ID-dependent due to variable reference to 'tmp' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (cur = cha->head; (tmp = cur) != NULL;) {
                              ^
/datasets/git/xdiff/xutils.c:97:13: warning: variable 'ancur' is not initialized [cppcoreguidelines-init-variables]
        chanode_t *ancur;
                   ^
                         = NULL
/datasets/git/xdiff/xutils.c:98:8: warning: variable 'data' is not initialized [cppcoreguidelines-init-variables]
        void *data;
              ^
                   = NULL
/datasets/git/xdiff/xutils.c:100:8: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if (!(ancur = cha->ancur) || ancur->icurr == cha->nsize) {
              ^
/datasets/git/xdiff/xutils.c:100:8: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/xdiff/xutils.c:100:8: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/xdiff/xutils.c:101:9: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                if (!(ancur = (chanode_t *) xdl_malloc(sizeof(chanode_t) + cha->nsize))) {
                      ^
/datasets/git/xdiff/xutils.c:101:9: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/xdiff/xutils.c:101:9: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/xdiff/xutils.c:107:17: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (cha->tail)
                              ^
                               {
/datasets/git/xdiff/xutils.c:109:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (!cha->head)
                               ^
                                {
/datasets/git/xdiff/xutils.c:121:32: warning: parameter name 'mf' is too short, expected at least 3 characters [readability-identifier-length]
long xdl_guess_lines(mmfile_t *mf, long sample) {
                               ^
/datasets/git/xdiff/xutils.c:122:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        long nl = 0, size, tsize = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xutils.c:122:7: warning: variable name 'nl' is too short, expected at least 3 characters [readability-identifier-length]
        long nl = 0, size, tsize = 0;
             ^
/datasets/git/xdiff/xutils.c:122:15: warning: variable 'size' is not initialized [cppcoreguidelines-init-variables]
        long nl = 0, size, tsize = 0;
                     ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xutils.c:123:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char const *data, *cur, *top;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xutils.c:123:14: warning: variable 'data' is not initialized [cppcoreguidelines-init-variables]
        char const *data, *cur, *top;
                    ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xutils.c:123:21: warning: variable 'cur' is not initialized [cppcoreguidelines-init-variables]
        char const *data, *cur, *top;
                           ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xutils.c:123:27: warning: variable 'top' is not initialized [cppcoreguidelines-init-variables]
        char const *data, *cur, *top;
                                 ^
/datasets/git/xdiff/xutils.c:122:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        long nl = 0, size, tsize = 0;
        ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xutils.c:125:7: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if ((cur = data = xdl_mmfile_first(mf, &size))) {
             ^
/datasets/git/xdiff/xutils.c:125:7: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/xdiff/xutils.c:125:7: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/xdiff/xutils.c:125:13: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
        if ((cur = data = xdl_mmfile_first(mf, &size))) {
                   ^
/datasets/git/xdiff/xutils.c:125:13: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/xdiff/xutils.c:125:13: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/xdiff/xutils.c:126:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (top = data + size; nl < sample && cur < top; ) {
                ^
/datasets/git/xdiff/xutils.c:126:27: warning: backward branch (for loop) is ID-dependent due to variable reference to 'nl' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (top = data + size; nl < sample && cur < top; ) {
                                        ^
/datasets/git/xdiff/xutils.c:128:10: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
                        if (!(cur = memchr(cur, '\n', top - cur)))
                              ^
/datasets/git/xdiff/xutils.c:128:10: note: if it should be an assignment, move it out of the 'if' condition
/datasets/git/xdiff/xutils.c:128:10: note: if it is meant to be an equality check, change '=' to '=='
/datasets/git/xdiff/xutils.c:128:46: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (!(cur = memchr(cur, '\n', top - cur)))
                                                                  ^
                                                                   {
/datasets/git/xdiff/xutils.c:130:8: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        else
                            ^
                             {
/datasets/git/xdiff/xutils.c:133:12: warning: redundant cast to the same type [google-readability-casting]
                tsize += (long) (cur - data);
                         ^~~~~~~
/datasets/git/xdiff/xutils.c:136:18: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (nl && tsize)
                        ^
                         {
/datasets/git/xdiff/xutils.c:142:37: warning: 2 adjacent parameters of 'xdl_blankline' of similar type ('long') are easily swapped by mistake [bugprone-easily-swappable-parameters]
int xdl_blankline(const char *line, long size, long flags)
                                    ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xutils.c:142:42: note: the first parameter in the range is 'size'
int xdl_blankline(const char *line, long size, long flags)
                                         ^~~~
/datasets/git/xdiff/xutils.c:142:53: note: the last parameter in the range is 'flags'
int xdl_blankline(const char *line, long size, long flags)
                                                    ^~~~~
/datasets/git/xdiff/xutils.c:144:7: warning: variable 'i' is not initialized [cppcoreguidelines-init-variables]
        long i;
             ^
               = 0
/datasets/git/xdiff/xutils.c:144:7: warning: variable name 'i' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff/xutils.c:146:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & XDF_WHITESPACE_FLAGS))
              ^~~~~
/datasets/git/xdiff/xutils.c:146:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & XDF_WHITESPACE_FLAGS))
                      ^
/datasets/git/./xdiff/xdiff.h:37:31: note: expanded from macro 'XDF_WHITESPACE_FLAGS'
#define XDF_WHITESPACE_FLAGS (XDF_IGNORE_WHITESPACE | \
                              ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./xdiff/xdiff.h:33:31: note: expanded from macro 'XDF_IGNORE_WHITESPACE'
#define XDF_IGNORE_WHITESPACE (1 << 1)
                              ^
/datasets/git/xdiff/xutils.c:146:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(flags & XDF_WHITESPACE_FLAGS))
                                            ^
                                             {
/datasets/git/xdiff/xutils.c:149:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (i = 0; i < size && XDL_ISSPACE(line[i]); i++)
        ^
/datasets/git/xdiff/xutils.c:149:26: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        for (i = 0; i < size && XDL_ISSPACE(line[i]); i++)
                                ^
/datasets/git/./xdiff/xmacros.h:33:25: note: expanded from macro 'XDL_ISSPACE'
#define XDL_ISSPACE(c) (isspace((unsigned char)(c)))
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/xdiff/xutils.c:149:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (i = 0; i < size && XDL_ISSPACE(line[i]); i++)
                                                          ^
                                                           {
/datasets/git/xdiff/xutils.c:159:46: warning: parameter name 'l' is too short, expected at least 3 characters [readability-identifier-length]
static int ends_with_optional_cr(const char *l, long s, long i)
                                             ^
/datasets/git/xdiff/xutils.c:159:54: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static int ends_with_optional_cr(const char *l, long s, long i)
                                                     ^
/datasets/git/xdiff/xutils.c:159:62: warning: parameter name 'i' is too short, expected at least 3 characters [readability-identifier-length]
static int ends_with_optional_cr(const char *l, long s, long i)
                                                             ^
/datasets/git/xdiff/xutils.c:163:15: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (complete)
                     ^
                      {
/datasets/git/xdiff/xutils.c:165:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (s == i)
                   ^
                    {
/datasets/git/xdiff/xutils.c:168:45: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (complete && s == i + 1 && l[i] == '\r')
                                                   ^
                                                    {
/datasets/git/xdiff/xutils.c:173:5: warning: function 'xdl_recmatch' has cognitive complexity of 59 (threshold 25) [readability-function-cognitive-complexity]
int xdl_recmatch(const char *l1, long s1, const char *l2, long s2, long flags)
    ^
/datasets/git/xdiff/xutils.c:177:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (s1 == s2 && !memcmp(l1, l2, s1))
        ^
/datasets/git/xdiff/xutils.c:177:15: note: +1
        if (s1 == s2 && !memcmp(l1, l2, s1))
                     ^
/datasets/git/xdiff/xutils.c:179:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (!(flags & XDF_WHITESPACE_FLAGS))
        ^
/datasets/git/xdiff/xutils.c:193:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (flags & XDF_IGNORE_WHITESPACE) {
        ^
/datasets/git/xdiff/xutils.c:194:3: note: +1
                goto skip_ws;
                ^
/datasets/git/xdiff/xutils.c:195:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (i1 < s1 && i2 < s2) {
                ^
/datasets/git/xdiff/xutils.c:195:18: note: +1
                while (i1 < s1 && i2 < s2) {
                               ^
/datasets/git/xdiff/xutils.c:196:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (l1[i1++] != l2[i2++])
                        ^
/datasets/git/xdiff/xutils.c:199:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (i1 < s1 && XDL_ISSPACE(l1[i1]))
                        ^
/datasets/git/xdiff/xutils.c:199:19: note: +1
                        while (i1 < s1 && XDL_ISSPACE(l1[i1]))
                                       ^
/datasets/git/xdiff/xutils.c:201:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (i2 < s2 && XDL_ISSPACE(l2[i2]))
                        ^
/datasets/git/xdiff/xutils.c:201:19: note: +1
                        while (i2 < s2 && XDL_ISSPACE(l2[i2]))
                                       ^
/datasets/git/xdiff/xutils.c:204:9: note: +1, nesting level increased to 1
        } else if (flags & XDF_IGNORE_WHITESPACE_CHANGE) {
               ^
/datasets/git/xdiff/xutils.c:205:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (i1 < s1 && i2 < s2) {
                ^
/datasets/git/xdiff/xutils.c:205:18: note: +1
                while (i1 < s1 && i2 < s2) {
                               ^
/datasets/git/xdiff/xutils.c:206:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (XDL_ISSPACE(l1[i1]) && XDL_ISSPACE(l2[i2])) {
                        ^
/datasets/git/xdiff/xutils.c:206:28: note: +1
                        if (XDL_ISSPACE(l1[i1]) && XDL_ISSPACE(l2[i2])) {
                                                ^
/datasets/git/xdiff/xutils.c:208:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                while (i1 < s1 && XDL_ISSPACE(l1[i1]))
                                ^
/datasets/git/xdiff/xutils.c:208:20: note: +1
                                while (i1 < s1 && XDL_ISSPACE(l1[i1]))
                                               ^
/datasets/git/xdiff/xutils.c:210:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                while (i2 < s2 && XDL_ISSPACE(l2[i2]))
                                ^
/datasets/git/xdiff/xutils.c:210:20: note: +1
                                while (i2 < s2 && XDL_ISSPACE(l2[i2]))
                                               ^
/datasets/git/xdiff/xutils.c:214:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (l1[i1++] != l2[i2++])
                        ^
/datasets/git/xdiff/xutils.c:217:9: note: +1, nesting level increased to 1
        } else if (flags & XDF_IGNORE_WHITESPACE_AT_EOL) {
               ^
/datasets/git/xdiff/xutils.c:218:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (i1 < s1 && i2 < s2 && l1[i1] == l2[i2]) {
                ^
/datasets/git/xdiff/xutils.c:218:29: note: +1
                while (i1 < s1 && i2 < s2 && l1[i1] == l2[i2]) {
                                          ^
/datasets/git/xdiff/xutils.c:222:9: note: +1, nesting level increased to 1
        } else if (flags & XDF_IGNORE_CR_AT_EOL) {
               ^
/datasets/git/xdiff/xutils.c:224:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (i1 < s1 && i2 < s2 && l1[i1] == l2[i2]) {
                ^
/datasets/git/xdiff/xutils.c:224:29: note: +1
                while (i1 < s1 && i2 < s2 && l1[i1] == l2[i2]) {
                                          ^
/datasets/git/xdiff/xutils.c:228:45: note: +1
                return (ends_with_optional_cr(l1, s1, i1) &&
                                                          ^
/datasets/git/xdiff/xutils.c:238:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (i1 < s1) {
        ^
/datasets/git/xdiff/xutils.c:239:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (i1 < s1 && XDL_ISSPACE(l1[i1]))
                ^
/datasets/git/xdiff/xutils.c:239:18: note: +1
                while (i1 < s1 && XDL_ISSPACE(l1[i1]))
                               ^
/datasets/git/xdiff/xutils.c:241:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (s1 != i1)
                ^
/datasets/git/xdiff/xutils.c:244:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        if (i2 < s2) {
        ^
/datasets/git/xdiff/xutils.c:245:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                while (i2 < s2 && XDL_ISSPACE(l2[i2]))
                ^
/datasets/git/xdiff/xutils.c:245:18: note: +1
                while (i2 < s2 && XDL_ISSPACE(l2[i2]))
                               ^
/datasets/git/xdiff/xutils.c:173:30: warning: parameter name 'l1' is too short, expected at least 3 characters [readability-identifier-length]
int xdl_recmatch(const char *l1, long s1, const char *l2, long s2, long flags)
                             ^
/datasets/git/xdiff/xutils.c:173:39: warning: parameter name 's1' is too short, expected at least 3 characters [readability-identifier-length]
int xdl_recmatch(const char *l1, long s1, const char *l2, long s2, long flags)
                                      ^
/datasets/git/xdiff/xutils.c:173:55: warning: parameter name 'l2' is too short, expected at least 3 characters [readability-identifier-length]
int xdl_recmatch(const char *l1, long s1, const char *l2, long s2, long flags)
                                                      ^
/datasets/git/xdiff/xutils.c:173:59: warning: 2 adjacent parameters of 'xdl_recmatch' of similar type ('long') are easily swapped by mistake [bugprone-easily-swappable-parameters]
int xdl_recmatch(const char *l1, long s1, const char *l2, long s2, long flags)
                                                          ^~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xutils.c:173:64: note: the first parameter in the range is 's2'
int xdl_recmatch(const char *l1, long s1, const char *l2, long s2, long flags)
                                                               ^~
/datasets/git/xdiff/xutils.c:173:73: note: the last parameter in the range is 'flags'
int xdl_recmatch(const char *l1, long s1, const char *l2, long s2, long flags)
                                                                        ^~~~~
/datasets/git/xdiff/xutils.c:173:64: warning: parameter name 's2' is too short, expected at least 3 characters [readability-identifier-length]
int xdl_recmatch(const char *l1, long s1, const char *l2, long s2, long flags)
                                                               ^
/datasets/git/xdiff/xutils.c:175:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        int i1, i2;
        ^~~~~~~~~~~
/datasets/git/xdiff/xutils.c:175:6: warning: variable 'i1' is not initialized [cppcoreguidelines-init-variables]
        int i1, i2;
            ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xutils.c:175:6: warning: variable name 'i1' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff/xutils.c:175:10: warning: variable 'i2' is not initialized [cppcoreguidelines-init-variables]
        int i1, i2;
                ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xutils.c:175:10: warning: variable name 'i2' is too short, expected at least 3 characters [readability-identifier-length]
/datasets/git/xdiff/xutils.c:177:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (s1 == s2 && !memcmp(l1, l2, s1))
                                            ^
                                             {
/datasets/git/xdiff/xutils.c:179:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & XDF_WHITESPACE_FLAGS))
              ^~~~~
/datasets/git/xdiff/xutils.c:179:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (!(flags & XDF_WHITESPACE_FLAGS))
                      ^
/datasets/git/./xdiff/xdiff.h:37:31: note: expanded from macro 'XDF_WHITESPACE_FLAGS'
#define XDF_WHITESPACE_FLAGS (XDF_IGNORE_WHITESPACE | \
                              ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./xdiff/xdiff.h:33:31: note: expanded from macro 'XDF_IGNORE_WHITESPACE'
#define XDF_IGNORE_WHITESPACE (1 << 1)
                              ^
/datasets/git/xdiff/xutils.c:179:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!(flags & XDF_WHITESPACE_FLAGS))
                                            ^
                                             {
/datasets/git/xdiff/xutils.c:193:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & XDF_IGNORE_WHITESPACE) {
            ^~~~~
/datasets/git/xdiff/xutils.c:193:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & XDF_IGNORE_WHITESPACE) {
                    ^
/datasets/git/./xdiff/xdiff.h:33:32: note: expanded from macro 'XDF_IGNORE_WHITESPACE'
#define XDF_IGNORE_WHITESPACE (1 << 1)
                               ^
/datasets/git/xdiff/xutils.c:196:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (l1[i1++] != l2[i2++])
                                                 ^
                                                  {
/datasets/git/xdiff/xutils.c:199:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (i1 < s1 && XDL_ISSPACE(l1[i1]))
                        ^
/datasets/git/xdiff/xutils.c:199:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        while (i1 < s1 && XDL_ISSPACE(l1[i1]))
                                          ^
/datasets/git/./xdiff/xmacros.h:33:25: note: expanded from macro 'XDL_ISSPACE'
#define XDL_ISSPACE(c) (isspace((unsigned char)(c)))
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/xdiff/xutils.c:199:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        while (i1 < s1 && XDL_ISSPACE(l1[i1]))
                                                              ^
                                                               {
/datasets/git/xdiff/xutils.c:201:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (i2 < s2 && XDL_ISSPACE(l2[i2]))
                        ^
/datasets/git/xdiff/xutils.c:201:22: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        while (i2 < s2 && XDL_ISSPACE(l2[i2]))
                                          ^
/datasets/git/./xdiff/xmacros.h:33:25: note: expanded from macro 'XDL_ISSPACE'
#define XDL_ISSPACE(c) (isspace((unsigned char)(c)))
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/xdiff/xutils.c:201:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        while (i2 < s2 && XDL_ISSPACE(l2[i2]))
                                                              ^
                                                               {
/datasets/git/xdiff/xutils.c:204:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        } else if (flags & XDF_IGNORE_WHITESPACE_CHANGE) {
                   ^~~~~
/datasets/git/xdiff/xutils.c:204:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        } else if (flags & XDF_IGNORE_WHITESPACE_CHANGE) {
                           ^
/datasets/git/./xdiff/xdiff.h:34:39: note: expanded from macro 'XDF_IGNORE_WHITESPACE_CHANGE'
#define XDF_IGNORE_WHITESPACE_CHANGE (1 << 2)
                                      ^
/datasets/git/xdiff/xutils.c:206:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (XDL_ISSPACE(l1[i1]) && XDL_ISSPACE(l2[i2])) {
                            ^
/datasets/git/./xdiff/xmacros.h:33:25: note: expanded from macro 'XDL_ISSPACE'
#define XDL_ISSPACE(c) (isspace((unsigned char)(c)))
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/xdiff/xutils.c:206:31: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (XDL_ISSPACE(l1[i1]) && XDL_ISSPACE(l2[i2])) {
                                                   ^
/datasets/git/./xdiff/xmacros.h:33:25: note: expanded from macro 'XDL_ISSPACE'
#define XDL_ISSPACE(c) (isspace((unsigned char)(c)))
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/xdiff/xutils.c:208:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                while (i1 < s1 && XDL_ISSPACE(l1[i1]))
                                ^
/datasets/git/xdiff/xutils.c:208:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                while (i1 < s1 && XDL_ISSPACE(l1[i1]))
                                                  ^
/datasets/git/./xdiff/xmacros.h:33:25: note: expanded from macro 'XDL_ISSPACE'
#define XDL_ISSPACE(c) (isspace((unsigned char)(c)))
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/xdiff/xutils.c:208:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                while (i1 < s1 && XDL_ISSPACE(l1[i1]))
                                                                      ^
                                                                       {
/datasets/git/xdiff/xutils.c:210:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                while (i2 < s2 && XDL_ISSPACE(l2[i2]))
                                ^
/datasets/git/xdiff/xutils.c:210:23: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                while (i2 < s2 && XDL_ISSPACE(l2[i2]))
                                                  ^
/datasets/git/./xdiff/xmacros.h:33:25: note: expanded from macro 'XDL_ISSPACE'
#define XDL_ISSPACE(c) (isspace((unsigned char)(c)))
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/xdiff/xutils.c:210:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                while (i2 < s2 && XDL_ISSPACE(l2[i2]))
                                                                      ^
                                                                       {
/datasets/git/xdiff/xutils.c:214:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (l1[i1++] != l2[i2++])
                                                 ^
                                                  {
/datasets/git/xdiff/xutils.c:217:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        } else if (flags & XDF_IGNORE_WHITESPACE_AT_EOL) {
                   ^~~~~
/datasets/git/xdiff/xutils.c:217:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        } else if (flags & XDF_IGNORE_WHITESPACE_AT_EOL) {
                           ^
/datasets/git/./xdiff/xdiff.h:35:39: note: expanded from macro 'XDF_IGNORE_WHITESPACE_AT_EOL'
#define XDF_IGNORE_WHITESPACE_AT_EOL (1 << 3)
                                      ^
/datasets/git/xdiff/xutils.c:218:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (i1 < s1 && i2 < s2 && l1[i1] == l2[i2]) {
                ^
/datasets/git/xdiff/xutils.c:222:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        } else if (flags & XDF_IGNORE_CR_AT_EOL) {
                   ^~~~~
/datasets/git/xdiff/xutils.c:222:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        } else if (flags & XDF_IGNORE_CR_AT_EOL) {
                           ^
/datasets/git/./xdiff/xdiff.h:36:31: note: expanded from macro 'XDF_IGNORE_CR_AT_EOL'
#define XDF_IGNORE_CR_AT_EOL (1 << 4)
                              ^
/datasets/git/xdiff/xutils.c:224:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (i1 < s1 && i2 < s2 && l1[i1] == l2[i2]) {
                ^
/datasets/git/xdiff/xutils.c:239:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (i1 < s1 && XDL_ISSPACE(l1[i1]))
                ^
/datasets/git/xdiff/xutils.c:239:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                while (i1 < s1 && XDL_ISSPACE(l1[i1]))
                                  ^
/datasets/git/./xdiff/xmacros.h:33:25: note: expanded from macro 'XDL_ISSPACE'
#define XDL_ISSPACE(c) (isspace((unsigned char)(c)))
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/xdiff/xutils.c:239:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (i1 < s1 && XDL_ISSPACE(l1[i1]))
                                                      ^
                                                       {
/datasets/git/xdiff/xutils.c:241:16: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (s1 != i1)
                             ^
                              {
/datasets/git/xdiff/xutils.c:245:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                while (i2 < s2 && XDL_ISSPACE(l2[i2]))
                ^
/datasets/git/xdiff/xutils.c:245:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                while (i2 < s2 && XDL_ISSPACE(l2[i2]))
                                  ^
/datasets/git/./xdiff/xmacros.h:33:25: note: expanded from macro 'XDL_ISSPACE'
#define XDL_ISSPACE(c) (isspace((unsigned char)(c)))
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/xdiff/xutils.c:245:41: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                while (i2 < s2 && XDL_ISSPACE(l2[i2]))
                                                      ^
                                                       {
/datasets/git/xdiff/xutils.c:252:22: warning: function 'xdl_hash_record_with_whitespace' has cognitive complexity of 26 (threshold 25) [readability-function-cognitive-complexity]
static unsigned long xdl_hash_record_with_whitespace(char const **data,
                     ^
/datasets/git/xdiff/xutils.c:258:2: note: +1, including nesting penalty of 0, nesting level increased to 1
        for (; ptr < top && *ptr != '\n'; ptr++) {
        ^
/datasets/git/xdiff/xutils.c:258:19: note: +1
        for (; ptr < top && *ptr != '\n'; ptr++) {
                         ^
/datasets/git/xdiff/xutils.c:259:3: note: +2, including nesting penalty of 1, nesting level increased to 2
                if (cr_at_eol_only) {
                ^
/datasets/git/xdiff/xutils.c:261:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (*ptr == '\r' &&
                        ^
/datasets/git/xdiff/xutils.c:261:21: note: +1
                        if (*ptr == '\r' &&
                                         ^
/datasets/git/xdiff/xutils.c:265:8: note: +1, nesting level increased to 2
                else if (XDL_ISSPACE(*ptr)) {
                     ^
/datasets/git/xdiff/xutils.c:268:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        while (ptr + 1 < top && XDL_ISSPACE(ptr[1])
                        ^
/datasets/git/xdiff/xutils.c:269:6: note: +1
                                        && ptr[1] != '\n')
                                        ^
/datasets/git/xdiff/xutils.c:271:29: note: +1
                        at_eol = (top <= ptr + 1 || ptr[1] == '\n');
                                                 ^
/datasets/git/xdiff/xutils.c:272:4: note: +3, including nesting penalty of 2, nesting level increased to 3
                        if (flags & XDF_IGNORE_WHITESPACE)
                        ^
/datasets/git/xdiff/xutils.c:274:9: note: +1, nesting level increased to 3
                        else if (flags & XDF_IGNORE_WHITESPACE_CHANGE
                             ^
/datasets/git/xdiff/xutils.c:275:6: note: +1
                                 && !at_eol) {
                                 ^
/datasets/git/xdiff/xutils.c:279:9: note: +1, nesting level increased to 3
                        else if (flags & XDF_IGNORE_WHITESPACE_AT_EOL
                             ^
/datasets/git/xdiff/xutils.c:280:6: note: +1
                                 && !at_eol) {
                                 ^
/datasets/git/xdiff/xutils.c:281:5: note: +4, including nesting penalty of 3, nesting level increased to 4
                                while (ptr2 != ptr + 1) {
                                ^
/datasets/git/xdiff/xutils.c:292:20: note: +1, including nesting penalty of 0, nesting level increased to 1
        *data = ptr < top ? ptr + 1: ptr;
                          ^
/datasets/git/xdiff/xutils.c:255:2: note: inferred assignment of ID-dependent value from ID-dependent  [altera-id-dependent-backward-branch]
        char const *ptr = *data;
        ^
/datasets/git/xdiff/xutils.c:254:16: warning: variable name 'ha' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned long ha = 5381;
                      ^
/datasets/git/xdiff/xutils.c:254:21: warning: 5381 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        unsigned long ha = 5381;
                           ^
/datasets/git/xdiff/xutils.c:256:24: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int cr_at_eol_only = (flags & XDF_WHITESPACE_FLAGS) == XDF_IGNORE_CR_AT_EOL;
                              ^~~~~
/datasets/git/xdiff/xutils.c:256:32: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int cr_at_eol_only = (flags & XDF_WHITESPACE_FLAGS) == XDF_IGNORE_CR_AT_EOL;
                                      ^
/datasets/git/./xdiff/xdiff.h:37:31: note: expanded from macro 'XDF_WHITESPACE_FLAGS'
#define XDF_WHITESPACE_FLAGS (XDF_IGNORE_WHITESPACE | \
                              ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./xdiff/xdiff.h:33:31: note: expanded from macro 'XDF_IGNORE_WHITESPACE'
#define XDF_IGNORE_WHITESPACE (1 << 1)
                              ^
/datasets/git/xdiff/xutils.c:256:57: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        int cr_at_eol_only = (flags & XDF_WHITESPACE_FLAGS) == XDF_IGNORE_CR_AT_EOL;
                                                               ^
/datasets/git/./xdiff/xdiff.h:36:31: note: expanded from macro 'XDF_IGNORE_CR_AT_EOL'
#define XDF_IGNORE_CR_AT_EOL (1 << 4)
                              ^
/datasets/git/xdiff/xutils.c:258:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ptr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; ptr < top && *ptr != '\n'; ptr++) {
               ^
/datasets/git/xdiff/xutils.c:262:42: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                            (ptr + 1 < top && ptr[1] == '\n'))
                                                              ^
                                                               {
/datasets/git/xdiff/xutils.c:265:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                else if (XDL_ISSPACE(*ptr)) {
                         ^
/datasets/git/./xdiff/xmacros.h:33:25: note: expanded from macro 'XDL_ISSPACE'
#define XDL_ISSPACE(c) (isspace((unsigned char)(c)))
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/xdiff/xutils.c:267:8: warning: variable 'at_eol' is not initialized [cppcoreguidelines-init-variables]
                        int at_eol;
                            ^
                                   = 0
/datasets/git/xdiff/xutils.c:268:4: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                        while (ptr + 1 < top && XDL_ISSPACE(ptr[1])
                        ^
/datasets/git/xdiff/xutils.c:268:11: warning: backward branch (while loop) is ID-dependent due to variable reference to 'ptr' and may cause performance degradation [altera-id-dependent-backward-branch]
                        while (ptr + 1 < top && XDL_ISSPACE(ptr[1])
                               ^
/datasets/git/xdiff/xutils.c:268:28: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        while (ptr + 1 < top && XDL_ISSPACE(ptr[1])
                                                ^
/datasets/git/./xdiff/xmacros.h:33:25: note: expanded from macro 'XDL_ISSPACE'
#define XDL_ISSPACE(c) (isspace((unsigned char)(c)))
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1217:20: note: expanded from macro 'isspace'
#define isspace(x) sane_istest(x,GIT_SPACE)
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./git-compat-util.h:1215:31: note: expanded from macro 'sane_istest'
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
                              ^                                ~~~~~~
/datasets/git/xdiff/xutils.c:269:24: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                                        && ptr[1] != '\n')
                                                          ^
                                                           {
/datasets/git/xdiff/xutils.c:272:8: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (flags & XDF_IGNORE_WHITESPACE)
                            ^~~~~
/datasets/git/xdiff/xutils.c:272:16: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        if (flags & XDF_IGNORE_WHITESPACE)
                                    ^
/datasets/git/./xdiff/xdiff.h:33:32: note: expanded from macro 'XDF_IGNORE_WHITESPACE'
#define XDF_IGNORE_WHITESPACE (1 << 1)
                               ^
/datasets/git/xdiff/xutils.c:272:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                        if (flags & XDF_IGNORE_WHITESPACE)
                                                          ^
                                                           {
/datasets/git/xdiff/xutils.c:274:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        else if (flags & XDF_IGNORE_WHITESPACE_CHANGE
                                 ^~~~~
/datasets/git/xdiff/xutils.c:274:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        else if (flags & XDF_IGNORE_WHITESPACE_CHANGE
                                         ^
/datasets/git/./xdiff/xdiff.h:34:39: note: expanded from macro 'XDF_IGNORE_WHITESPACE_CHANGE'
#define XDF_IGNORE_WHITESPACE_CHANGE (1 << 2)
                                      ^
/datasets/git/xdiff/xutils.c:276:12: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                ha += (ha << 5);
                                       ^     ~
/datasets/git/xdiff/xutils.c:276:18: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                ha += (ha << 5);
                                             ^
/datasets/git/xdiff/xutils.c:279:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        else if (flags & XDF_IGNORE_WHITESPACE_AT_EOL
                                 ^~~~~
/datasets/git/xdiff/xutils.c:279:21: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                        else if (flags & XDF_IGNORE_WHITESPACE_AT_EOL
                                         ^
/datasets/git/./xdiff/xdiff.h:35:39: note: expanded from macro 'XDF_IGNORE_WHITESPACE_AT_EOL'
#define XDF_IGNORE_WHITESPACE_AT_EOL (1 << 3)
                                      ^
/datasets/git/xdiff/xutils.c:266:4: note: inferred assignment of ID-dependent value from ID-dependent variable ptr [altera-id-dependent-backward-branch]
                        const char *ptr2 = ptr;
                        ^
/datasets/git/xdiff/xutils.c:281:5: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                                while (ptr2 != ptr + 1) {
                                ^
/datasets/git/xdiff/xutils.c:281:12: warning: backward branch (while loop) is ID-dependent due to variable reference to 'ptr2' and may cause performance degradation [altera-id-dependent-backward-branch]
                                while (ptr2 != ptr + 1) {
                                       ^
/datasets/git/xdiff/xutils.c:282:13: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                                        ha += (ha << 5);
                                               ^     ~
/datasets/git/xdiff/xutils.c:282:19: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                                        ha += (ha << 5);
                                                     ^
/datasets/git/xdiff/xutils.c:289:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ha += (ha << 5);
                       ^     ~
/datasets/git/xdiff/xutils.c:289:16: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                ha += (ha << 5);
                             ^
/datasets/git/xdiff/xutils.c:298:16: warning: variable name 'ha' is too short, expected at least 3 characters [readability-identifier-length]
        unsigned long ha = 5381;
                      ^
/datasets/git/xdiff/xutils.c:298:21: warning: 5381 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        unsigned long ha = 5381;
                           ^
/datasets/git/xdiff/xutils.c:301:6: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & XDF_WHITESPACE_FLAGS)
            ^~~~~
/datasets/git/xdiff/xutils.c:301:14: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        if (flags & XDF_WHITESPACE_FLAGS)
                    ^
/datasets/git/./xdiff/xdiff.h:37:31: note: expanded from macro 'XDF_WHITESPACE_FLAGS'
#define XDF_WHITESPACE_FLAGS (XDF_IGNORE_WHITESPACE | \
                              ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/./xdiff/xdiff.h:33:31: note: expanded from macro 'XDF_IGNORE_WHITESPACE'
#define XDF_IGNORE_WHITESPACE (1 << 1)
                              ^
/datasets/git/xdiff/xutils.c:301:35: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (flags & XDF_WHITESPACE_FLAGS)
                                         ^
                                          {
/datasets/git/xdiff/xutils.c:304:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; ptr < top && *ptr != '\n'; ptr++) {
        ^
/datasets/git/xdiff/xutils.c:304:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ptr' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; ptr < top && *ptr != '\n'; ptr++) {
               ^
/datasets/git/xdiff/xutils.c:305:10: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
                ha += (ha << 5);
                       ^     ~
/datasets/git/xdiff/xutils.c:305:16: warning: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                ha += (ha << 5);
                             ^
/datasets/git/xdiff/xutils.c:314:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        unsigned int val = 1, bits = 0;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xutils.c:316:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; val < size && bits < CHAR_BIT * sizeof(unsigned int); val <<= 1, bits++);
        ^
/datasets/git/xdiff/xutils.c:316:63: warning: use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
        for (; val < size && bits < CHAR_BIT * sizeof(unsigned int); val <<= 1, bits++);
                                                                     ^       ~
/datasets/git/xdiff/xutils.c:316:81: warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements]
        for (; val < size && bits < CHAR_BIT * sizeof(unsigned int); val <<= 1, bits++);
                                                                                       ^
                                                                                        {
/datasets/git/xdiff/xutils.c:322:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        char *ptr, *str = out;
        ^~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xutils.c:322:8: warning: variable 'ptr' is not initialized [cppcoreguidelines-init-variables]
        char *ptr, *str = out;
              ^
note: this fix will not be applied because it overlaps with another fix
/datasets/git/xdiff/xutils.c:323:11: warning: 32 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        char buf[32];
                 ^
/datasets/git/xdiff/xutils.c:331:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (; val && ptr > buf; val /= 10)
        ^
/datasets/git/xdiff/xutils.c:331:9: warning: backward branch (for loop) is ID-dependent due to variable reference to 'val' and may cause performance degradation [altera-id-dependent-backward-branch]
        for (; val && ptr > buf; val /= 10)
               ^
/datasets/git/xdiff/xutils.c:331:34: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        for (; val && ptr > buf; val /= 10)
                                        ^
/datasets/git/xdiff/xutils.c:331:37: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        for (; val && ptr > buf; val /= 10)
                                           ^
                                            {
/datasets/git/xdiff/xutils.c:332:31: warning: 10 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
                *--ptr = "0123456789"[val % 10];
                                            ^
/datasets/git/xdiff/xutils.c:333:11: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (*ptr)
                 ^
                  {
/datasets/git/xdiff/xutils.c:334:3: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
                for (; *ptr; ptr++, str++)
                ^
/datasets/git/xdiff/xutils.c:334:10: warning: backward branch (for loop) is ID-dependent due to variable reference to 'ptr' and may cause performance degradation [altera-id-dependent-backward-branch]
                for (; *ptr; ptr++, str++)
                       ^
/datasets/git/xdiff/xutils.c:334:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                for (; *ptr; ptr++, str++)
                                          ^
                                           {
/datasets/git/xdiff/xutils.c:336:6: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        else
            ^
             {
/datasets/git/xdiff/xutils.c:340:9: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
        return str - out;
               ^
/datasets/git/xdiff/xutils.c:343:37: warning: parameter name 's1' is too short, expected at least 3 characters [readability-identifier-length]
static int xdl_format_hunk_hdr(long s1, long c1, long s2, long c2,
                                    ^
/datasets/git/xdiff/xutils.c:343:41: warning: 2 adjacent parameters of 'xdl_format_hunk_hdr' of similar type ('long') are easily swapped by mistake [bugprone-easily-swappable-parameters]
static int xdl_format_hunk_hdr(long s1, long c1, long s2, long c2,
                                        ^~~~~~~~~~~~~~~~
/datasets/git/xdiff/xutils.c:343:46: note: the first parameter in the range is 'c1'
static int xdl_format_hunk_hdr(long s1, long c1, long s2, long c2,
                                             ^~
/datasets/git/xdiff/xutils.c:343:55: note: the last parameter in the range is 's2'
static int xdl_format_hunk_hdr(long s1, long c1, long s2, long c2,
                                                      ^~
/datasets/git/xdiff/xutils.c:343:46: warning: parameter name 'c1' is too short, expected at least 3 characters [readability-identifier-length]
static int xdl_format_hunk_hdr(long s1, long c1, long s2, long c2,
                                             ^
/datasets/git/xdiff/xutils.c:343:55: warning: parameter name 's2' is too short, expected at least 3 characters [readability-identifier-length]
static int xdl_format_hunk_hdr(long s1, long c1, long s2, long c2,
                                                      ^
/datasets/git/xdiff/xutils.c:343:64: warning: parameter name 'c2' is too short, expected at least 3 characters [readability-identifier-length]
static int xdl_format_hunk_hdr(long s1, long c1, long s2, long c2,
                                                               ^
/datasets/git/xdiff/xutils.c:346:6: warning: variable name 'nb' is too short, expected at least 3 characters [readability-identifier-length]
        int nb = 0;
            ^
/datasets/git/xdiff/xutils.c:347:13: warning: variable name 'mb' is too short, expected at least 3 characters [readability-identifier-length]
        mmbuffer_t mb;
                   ^
/datasets/git/xdiff/xutils.c:348:11: warning: 128 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        char buf[128];
                 ^
/datasets/git/xdiff/xutils.c:350:2: warning: the result from calling 'memcpy' is not null-terminated [bugprone-not-null-terminated-result]
        memcpy(buf, "@@ -", 4);
        ^~~~~~            ~~~
        strcpy
/datasets/git/xdiff/xutils.c:350:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(buf, "@@ -", 4);
        ^~~~~~
/datasets/git/xdiff/xutils.c:350:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(buf, "@@ -", 4);
        ^~~~~~
/datasets/git/xdiff/xutils.c:356:3: warning: the result from calling 'memcpy' is not null-terminated [bugprone-not-null-terminated-result]
                memcpy(buf + nb, ",", 1);
                ^~~~~~              ~~~
                strcpy
/datasets/git/xdiff/xutils.c:356:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(buf + nb, ",", 1);
                ^~~~~~
/datasets/git/xdiff/xutils.c:356:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(buf + nb, ",", 1);
                ^~~~~~
/datasets/git/xdiff/xutils.c:362:2: warning: the result from calling 'memcpy' is not null-terminated [bugprone-not-null-terminated-result]
        memcpy(buf + nb, " +", 2);
        ^~~~~~               ~~~
        strcpy
/datasets/git/xdiff/xutils.c:362:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(buf + nb, " +", 2);
        ^~~~~~
/datasets/git/xdiff/xutils.c:362:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(buf + nb, " +", 2);
        ^~~~~~
/datasets/git/xdiff/xutils.c:368:3: warning: the result from calling 'memcpy' is not null-terminated [bugprone-not-null-terminated-result]
                memcpy(buf + nb, ",", 1);
                ^~~~~~              ~~~
                strcpy
/datasets/git/xdiff/xutils.c:368:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(buf + nb, ",", 1);
                ^~~~~~
/datasets/git/xdiff/xutils.c:368:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(buf + nb, ",", 1);
                ^~~~~~
/datasets/git/xdiff/xutils.c:374:2: warning: the result from calling 'memcpy' is not null-terminated [bugprone-not-null-terminated-result]
        memcpy(buf + nb, " @@", 3);
        ^~~~~~                ~~~
        strcpy
/datasets/git/xdiff/xutils.c:374:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(buf + nb, " @@", 3);
        ^~~~~~
/datasets/git/xdiff/xutils.c:374:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(buf + nb, " @@", 3);
        ^~~~~~
/datasets/git/xdiff/xutils.c:378:38: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (funclen > sizeof(buf) - nb - 1)
                                                   ^
                                                    {
/datasets/git/xdiff/xutils.c:379:14: warning: narrowing conversion from 'unsigned long' to signed type 'long' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                        funclen = sizeof(buf) - nb - 1;
                                  ^
/datasets/git/xdiff/xutils.c:380:3: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
                memcpy(buf + nb, func, funclen);
                ^~~~~~
/datasets/git/xdiff/xutils.c:380:3: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
                memcpy(buf + nb, func, funclen);
                ^~~~~~
/datasets/git/xdiff/xutils.c:381:9: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                nb += funclen;
                      ^
/datasets/git/xdiff/xutils.c:387:43: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (ecb->out_line(ecb->priv, &mb, 1) < 0)
                                                 ^
                                                  {
/datasets/git/xdiff/xutils.c:392:28: warning: parameter name 's1' is too short, expected at least 3 characters [readability-identifier-length]
int xdl_emit_hunk_hdr(long s1, long c1, long s2, long c2,
                           ^
/datasets/git/xdiff/xutils.c:392:37: warning: parameter name 'c1' is too short, expected at least 3 characters [readability-identifier-length]
int xdl_emit_hunk_hdr(long s1, long c1, long s2, long c2,
                                    ^
/datasets/git/xdiff/xutils.c:392:46: warning: parameter name 's2' is too short, expected at least 3 characters [readability-identifier-length]
int xdl_emit_hunk_hdr(long s1, long c1, long s2, long c2,
                                             ^
/datasets/git/xdiff/xutils.c:392:55: warning: parameter name 'c2' is too short, expected at least 3 characters [readability-identifier-length]
int xdl_emit_hunk_hdr(long s1, long c1, long s2, long c2,
                                                      ^
/datasets/git/xdiff/xutils.c:395:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (!ecb->out_hunk)
                           ^
                            {
/datasets/git/xdiff/xutils.c:400:25: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                          func, funclen) < 0)
                                             ^
                                              {
/datasets/git/xdiff/xutils.c:406:14: warning: 2 adjacent parameters of 'xdl_fall_back_diff' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters]
                int line1, int count1, int line2, int count2)
                           ^~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xutils.c:406:18: note: the first parameter in the range is 'count1'
                int line1, int count1, int line2, int count2)
                               ^~~~~~
/datasets/git/xdiff/xutils.c:406:30: note: the last parameter in the range is 'line2'
                int line1, int count1, int line2, int count2)
                                           ^~~~~
/datasets/git/xdiff/xutils.c:416:2: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
        mmfile_t subfile1, subfile2;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/xdiff/xutils.c:425:55: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (xdl_do_diff(&subfile1, &subfile2, xpp, &env) < 0)
                                                             ^
                                                              {
/datasets/git/xdiff/xutils.c:428:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(diff_env->xdf1.rchg + line1 - 1, env.xdf1.rchg, count1);
        ^~~~~~
/datasets/git/xdiff/xutils.c:428:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(diff_env->xdf1.rchg + line1 - 1, env.xdf1.rchg, count1);
        ^~~~~~
/datasets/git/xdiff/xutils.c:429:2: warning: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memcpy(diff_env->xdf2.rchg + line2 - 1, env.xdf2.rchg, count2);
        ^~~~~~
/datasets/git/xdiff/xutils.c:429:2: note: Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
        memcpy(diff_env->xdf2.rchg + line2 - 1, env.xdf2.rchg, count2);
        ^~~~~~
/datasets/git/xdiff/xutils.c:436:35: warning: parameter name 'p' is too short, expected at least 3 characters [readability-identifier-length]
void* xdl_alloc_grow_helper(void *p, long nr, long *alloc, size_t size)
                                  ^
/datasets/git/xdiff/xutils.c:436:43: warning: parameter name 'nr' is too short, expected at least 3 characters [readability-identifier-length]
void* xdl_alloc_grow_helper(void *p, long nr, long *alloc, size_t size)
                                          ^
/datasets/git/xdiff/xutils.c:439:9: warning: variable name 'n' is too short, expected at least 3 characters [readability-identifier-length]
        size_t n = ((LONG_MAX - 16) / 2 >= *alloc) ? 2 * *alloc + 16 : LONG_MAX;
               ^
/datasets/git/xdiff/xutils.c:439:26: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        size_t n = ((LONG_MAX - 16) / 2 >= *alloc) ? 2 * *alloc + 16 : LONG_MAX;
                                ^
/datasets/git/xdiff/xutils.c:439:60: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        size_t n = ((LONG_MAX - 16) / 2 >= *alloc) ? 2 * *alloc + 16 : LONG_MAX;
                                                                  ^
/datasets/git/xdiff/xutils.c:440:13: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (nr > n)
                   ^
                    {
/datasets/git/xdiff/xutils.c:442:27: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (SIZE_MAX / size >= n)
                                 ^
                                  {
/datasets/git/xdiff/xutils.c:445:12: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'long' is implementation-defined [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions]
                *alloc = n;
                         ^
zlib.c:34:10: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'unsigned int' [bugprone-implicit-widening-of-multiplication-result]
        return (ZLIB_BUF_MAX < len) ? ZLIB_BUF_MAX : len;
                ^
zlib.c:31:23: note: expanded from macro 'ZLIB_BUF_MAX'
#define ZLIB_BUF_MAX ((uInt) 1024 * 1024 * 1024) /* 1GB */
                      ^
zlib.c:34:10: note: make conversion explicit to silence this warning
        return (ZLIB_BUF_MAX < len) ? ZLIB_BUF_MAX : len;
                ^
/datasets/git/zlib.c:31:23: note: expanded from macro 'ZLIB_BUF_MAX'
#define ZLIB_BUF_MAX ((uInt) 1024 * 1024 * 1024) /* 1GB */
                      ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/zlib.c:34:10: note: perform multiplication in a wider type
        return (ZLIB_BUF_MAX < len) ? ZLIB_BUF_MAX : len;
                ^
/datasets/git/zlib.c:31:23: note: expanded from macro 'ZLIB_BUF_MAX'
#define ZLIB_BUF_MAX ((uInt) 1024 * 1024 * 1024) /* 1GB */
                      ^~~~~~~~~~~~~~~~~~
/datasets/git/zlib.c:34:32: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'unsigned int' [bugprone-implicit-widening-of-multiplication-result]
        return (ZLIB_BUF_MAX < len) ? ZLIB_BUF_MAX : len;
                                      ^
/datasets/git/zlib.c:31:23: note: expanded from macro 'ZLIB_BUF_MAX'
#define ZLIB_BUF_MAX ((uInt) 1024 * 1024 * 1024) /* 1GB */
                      ^
/datasets/git/zlib.c:34:32: note: make conversion explicit to silence this warning
        return (ZLIB_BUF_MAX < len) ? ZLIB_BUF_MAX : len;
                                      ^
/datasets/git/zlib.c:31:23: note: expanded from macro 'ZLIB_BUF_MAX'
#define ZLIB_BUF_MAX ((uInt) 1024 * 1024 * 1024) /* 1GB */
                      ^~~~~~~~~~~~~~~~~~~~~~~~~
/datasets/git/zlib.c:34:32: note: perform multiplication in a wider type
        return (ZLIB_BUF_MAX < len) ? ZLIB_BUF_MAX : len;
                                      ^
/datasets/git/zlib.c:31:23: note: expanded from macro 'ZLIB_BUF_MAX'
#define ZLIB_BUF_MAX ((uInt) 1024 * 1024 * 1024) /* 1GB */
                      ^~~~~~~~~~~~~~~~~~
/datasets/git/zlib.c:37:40: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void zlib_pre_call(git_zstream *s)
                                       ^
/datasets/git/zlib.c:47:41: warning: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length]
static void zlib_post_call(git_zstream *s)
                                        ^
/datasets/git/zlib.c:49:16: warning: variable 'bytes_consumed' is not initialized [cppcoreguidelines-init-variables]
        unsigned long bytes_consumed;
                      ^
                                     = 0
/datasets/git/zlib.c:50:16: warning: variable 'bytes_produced' is not initialized [cppcoreguidelines-init-variables]
        unsigned long bytes_produced;
                      ^
                                     = 0
/datasets/git/zlib.c:54:54: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (s->z.total_out != s->total_out + bytes_produced)
                                                            ^
                                                             {
/datasets/git/zlib.c:56:52: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (s->z.total_in != s->total_in + bytes_consumed)
                                                          ^
                                                           {
/datasets/git/zlib.c:69:6: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int status;
            ^
                   = 0
/datasets/git/zlib.c:74:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (status == Z_OK)
                           ^
                            {
/datasets/git/zlib.c:87:6: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int status;
            ^
                   = 0
/datasets/git/zlib.c:92:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (status == Z_OK)
                           ^
                            {
/datasets/git/zlib.c:100:6: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int status;
            ^
                   = 0
/datasets/git/zlib.c:105:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (status == Z_OK)
                           ^
                            {
/datasets/git/zlib.c:113:6: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int status;
            ^
                   = 0
/datasets/git/zlib.c:115:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/zlib.c:121:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (status == Z_MEM_ERROR)
                                          ^
                                           {
/datasets/git/zlib.c:130:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    (status == Z_OK || status == Z_BUF_ERROR))
                                                              ^
                                                               {
/datasets/git/zlib.c:160:6: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int status;
            ^
                   = 0
/datasets/git/zlib.c:162:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(strm, 0, sizeof(*strm));
        ^~~~~~
/datasets/git/zlib.c:162:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(strm, 0, sizeof(*strm));
        ^~~~~~
/datasets/git/zlib.c:166:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (status == Z_OK)
                           ^
                            {
/datasets/git/zlib.c:174:6: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int status;
            ^
                   = 0
/datasets/git/zlib.c:176:2: warning: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
        memset(strm, 0, sizeof(*strm));
        ^~~~~~
/datasets/git/zlib.c:176:2: note: Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
        memset(strm, 0, sizeof(*strm));
        ^~~~~~
/datasets/git/zlib.c:182:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (status == Z_OK)
                           ^
                            {
/datasets/git/zlib.c:194:35: warning: 15 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        do_git_deflate_init(strm, level, 15 + 16);
                                         ^
/datasets/git/zlib.c:194:40: warning: 16 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        do_git_deflate_init(strm, level, 15 + 16);
                                              ^
/datasets/git/zlib.c:203:36: warning: 15 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers]
        do_git_deflate_init(strm, level, -15);
                                          ^
/datasets/git/zlib.c:208:6: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int status;
            ^
                   = 0
/datasets/git/zlib.c:220:21: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
        if (status == Z_OK)
                           ^
                            {
/datasets/git/zlib.c:228:6: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int status;
            ^
                   = 0
/datasets/git/zlib.c:238:6: warning: variable 'status' is not initialized [cppcoreguidelines-init-variables]
        int status;
            ^
                   = 0
/datasets/git/zlib.c:240:2: warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops]
        for (;;) {
        ^
/datasets/git/zlib.c:247:29: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                if (status == Z_MEM_ERROR)
                                          ^
                                           {
/datasets/git/zlib.c:256:49: warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements]
                    (status == Z_OK || status == Z_BUF_ERROR))
                                                              ^
                                                               {
